From c8bb0f68d4bf32a5d0425bd3beacc346b0041933 Mon Sep 17 00:00:00 2001 From: Arie Date: Tue, 17 Feb 2015 09:26:49 -0800 Subject: [PATCH 0001/2363] Create LICENSE --- java-pubsub/LICENSE | 201 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 java-pubsub/LICENSE diff --git a/java-pubsub/LICENSE b/java-pubsub/LICENSE new file mode 100644 index 000000000000..4eedc0116add --- /dev/null +++ b/java-pubsub/LICENSE @@ -0,0 +1,201 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. From 0ec2a329fff5eec628a0bdbc66e531842fee506b Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Mon, 30 Apr 2018 20:53:04 -0700 Subject: [PATCH 0002/2363] Move grpc/proto pacckages to google-cloud-java from api-client-staging. (#3212) --- .../grpc-google-cloud-pubsub-v1/pom.xml | 31 + .../com/google/pubsub/v1/PublisherGrpc.java | 914 ++++++++ .../com/google/pubsub/v1/SubscriberGrpc.java | 1804 ++++++++++++++++ .../proto-google-cloud-pubsub-v1/pom.xml | 36 + .../google/pubsub/v1/AcknowledgeRequest.java | 799 +++++++ .../v1/AcknowledgeRequestOrBuilder.java | 68 + .../pubsub/v1/CreateSnapshotRequest.java | 791 +++++++ .../v1/CreateSnapshotRequestOrBuilder.java | 69 + .../pubsub/v1/DeleteSnapshotRequest.java | 559 +++++ .../v1/DeleteSnapshotRequestOrBuilder.java | 29 + .../pubsub/v1/DeleteSubscriptionRequest.java | 559 +++++ .../DeleteSubscriptionRequestOrBuilder.java | 29 + .../google/pubsub/v1/DeleteTopicRequest.java | 559 +++++ .../v1/DeleteTopicRequestOrBuilder.java | 29 + .../com/google/pubsub/v1/DeletedTopic.java | 68 + .../pubsub/v1/GetSubscriptionRequest.java | 559 +++++ .../v1/GetSubscriptionRequestOrBuilder.java | 29 + .../com/google/pubsub/v1/GetTopicRequest.java | 559 +++++ .../pubsub/v1/GetTopicRequestOrBuilder.java | 29 + .../pubsub/v1/ListSnapshotsRequest.java | 802 +++++++ .../v1/ListSnapshotsRequestOrBuilder.java | 60 + .../pubsub/v1/ListSnapshotsResponse.java | 999 +++++++++ .../v1/ListSnapshotsResponseOrBuilder.java | 73 + .../pubsub/v1/ListSubscriptionsRequest.java | 802 +++++++ .../v1/ListSubscriptionsRequestOrBuilder.java | 60 + .../pubsub/v1/ListSubscriptionsResponse.java | 1006 +++++++++ .../ListSubscriptionsResponseOrBuilder.java | 75 + .../v1/ListTopicSubscriptionsRequest.java | 802 +++++++ ...istTopicSubscriptionsRequestOrBuilder.java | 60 + .../v1/ListTopicSubscriptionsResponse.java | 793 +++++++ ...stTopicSubscriptionsResponseOrBuilder.java | 66 + .../google/pubsub/v1/ListTopicsRequest.java | 802 +++++++ .../pubsub/v1/ListTopicsRequestOrBuilder.java | 60 + .../google/pubsub/v1/ListTopicsResponse.java | 999 +++++++++ .../v1/ListTopicsResponseOrBuilder.java | 73 + .../pubsub/v1/ModifyAckDeadlineRequest.java | 884 ++++++++ .../v1/ModifyAckDeadlineRequestOrBuilder.java | 79 + .../pubsub/v1/ModifyPushConfigRequest.java | 836 ++++++++ .../v1/ModifyPushConfigRequestOrBuilder.java | 66 + .../com/google/pubsub/v1/ProjectName.java | 175 ++ .../google/pubsub/v1/ProjectSnapshotName.java | 198 ++ .../pubsub/v1/ProjectSubscriptionName.java | 198 ++ .../google/pubsub/v1/ProjectTopicName.java | 198 ++ .../com/google/pubsub/v1/PublishRequest.java | 999 +++++++++ .../pubsub/v1/PublishRequestOrBuilder.java | 73 + .../com/google/pubsub/v1/PublishResponse.java | 647 ++++++ .../pubsub/v1/PublishResponseOrBuilder.java | 52 + .../com/google/pubsub/v1/PubsubMessage.java | 1226 +++++++++++ .../pubsub/v1/PubsubMessageOrBuilder.java | 127 ++ .../com/google/pubsub/v1/PubsubProto.java | 657 ++++++ .../com/google/pubsub/v1/PullRequest.java | 732 +++++++ .../pubsub/v1/PullRequestOrBuilder.java | 53 + .../com/google/pubsub/v1/PullResponse.java | 903 ++++++++ .../pubsub/v1/PullResponseOrBuilder.java | 68 + .../java/com/google/pubsub/v1/PushConfig.java | 1045 ++++++++++ .../google/pubsub/v1/PushConfigOrBuilder.java | 158 ++ .../com/google/pubsub/v1/ReceivedMessage.java | 781 +++++++ .../pubsub/v1/ReceivedMessageOrBuilder.java | 52 + .../com/google/pubsub/v1/SeekRequest.java | 1188 +++++++++++ .../pubsub/v1/SeekRequestOrBuilder.java | 106 + .../com/google/pubsub/v1/SeekResponse.java | 388 ++++ .../pubsub/v1/SeekResponseOrBuilder.java | 9 + .../java/com/google/pubsub/v1/Snapshot.java | 1353 ++++++++++++ .../google/pubsub/v1/SnapshotOrBuilder.java | 148 ++ .../pubsub/v1/StreamingPullRequest.java | 1515 ++++++++++++++ .../v1/StreamingPullRequestOrBuilder.java | 202 ++ .../pubsub/v1/StreamingPullResponse.java | 836 ++++++++ .../v1/StreamingPullResponseOrBuilder.java | 53 + .../com/google/pubsub/v1/Subscription.java | 1847 +++++++++++++++++ .../pubsub/v1/SubscriptionOrBuilder.java | 222 ++ .../main/java/com/google/pubsub/v1/Topic.java | 908 ++++++++ .../java/com/google/pubsub/v1/TopicName.java | 23 + .../java/com/google/pubsub/v1/TopicNames.java | 33 + .../com/google/pubsub/v1/TopicOrBuilder.java | 91 + .../google/pubsub/v1/UntypedTopicName.java | 112 + .../pubsub/v1/UpdateSnapshotRequest.java | 867 ++++++++ .../v1/UpdateSnapshotRequestOrBuilder.java | 62 + .../pubsub/v1/UpdateSubscriptionRequest.java | 867 ++++++++ .../UpdateSubscriptionRequestOrBuilder.java | 62 + .../google/pubsub/v1/UpdateTopicRequest.java | 867 ++++++++ .../v1/UpdateTopicRequestOrBuilder.java | 62 + .../main/proto/google/pubsub/v1/pubsub.proto | 791 +++++++ 82 files changed, 37871 insertions(+) create mode 100644 java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml create mode 100644 java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java create mode 100644 java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/pom.xml create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml new file mode 100644 index 000000000000..59b104028970 --- /dev/null +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -0,0 +1,31 @@ + + 4.0.0 + grpc-google-cloud-pubsub-v1 + 0.11.1-SNAPSHOT + grpc-google-cloud-pubsub-v1 + GRPC library for grpc-google-cloud-pubsub-v1 + + com.google.api.grpc + google-api-grpc-pom + 0.11.1-SNAPSHOT + + + + io.grpc + grpc-stub + compile + + + io.grpc + grpc-protobuf + compile + + + com.google.api.grpc + proto-google-cloud-pubsub-v1 + compile + + + \ No newline at end of file diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java new file mode 100644 index 000000000000..6a09dc7801a4 --- /dev/null +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -0,0 +1,914 @@ +package com.google.pubsub.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * The service that an application uses to manipulate topics, and to send
+ * messages to a topic.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/pubsub/v1/pubsub.proto") +public final class PublisherGrpc { + + private PublisherGrpc() {} + + public static final String SERVICE_NAME = "google.pubsub.v1.Publisher"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateTopicMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_CREATE_TOPIC = getCreateTopicMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCreateTopicMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCreateTopicMethod() { + return getCreateTopicMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCreateTopicMethodHelper() { + io.grpc.MethodDescriptor getCreateTopicMethod; + if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) { + synchronized (PublisherGrpc.class) { + if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) { + PublisherGrpc.getCreateTopicMethod = getCreateTopicMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Publisher", "CreateTopic")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Topic.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Topic.getDefaultInstance())) + .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("CreateTopic")) + .build(); + } + } + } + return getCreateTopicMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateTopicMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_UPDATE_TOPIC = getUpdateTopicMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getUpdateTopicMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getUpdateTopicMethod() { + return getUpdateTopicMethodHelper(); + } + + private static io.grpc.MethodDescriptor getUpdateTopicMethodHelper() { + io.grpc.MethodDescriptor getUpdateTopicMethod; + if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) { + synchronized (PublisherGrpc.class) { + if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) { + PublisherGrpc.getUpdateTopicMethod = getUpdateTopicMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Publisher", "UpdateTopic")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Topic.getDefaultInstance())) + .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("UpdateTopic")) + .build(); + } + } + } + return getUpdateTopicMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getPublishMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_PUBLISH = getPublishMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getPublishMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getPublishMethod() { + return getPublishMethodHelper(); + } + + private static io.grpc.MethodDescriptor getPublishMethodHelper() { + io.grpc.MethodDescriptor getPublishMethod; + if ((getPublishMethod = PublisherGrpc.getPublishMethod) == null) { + synchronized (PublisherGrpc.class) { + if ((getPublishMethod = PublisherGrpc.getPublishMethod) == null) { + PublisherGrpc.getPublishMethod = getPublishMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Publisher", "Publish")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.PublishRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.PublishResponse.getDefaultInstance())) + .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("Publish")) + .build(); + } + } + } + return getPublishMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetTopicMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_TOPIC = getGetTopicMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetTopicMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetTopicMethod() { + return getGetTopicMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetTopicMethodHelper() { + io.grpc.MethodDescriptor getGetTopicMethod; + if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) { + synchronized (PublisherGrpc.class) { + if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) { + PublisherGrpc.getGetTopicMethod = getGetTopicMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Publisher", "GetTopic")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.GetTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Topic.getDefaultInstance())) + .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("GetTopic")) + .build(); + } + } + } + return getGetTopicMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListTopicsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_TOPICS = getListTopicsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListTopicsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListTopicsMethod() { + return getListTopicsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListTopicsMethodHelper() { + io.grpc.MethodDescriptor getListTopicsMethod; + if ((getListTopicsMethod = PublisherGrpc.getListTopicsMethod) == null) { + synchronized (PublisherGrpc.class) { + if ((getListTopicsMethod = PublisherGrpc.getListTopicsMethod) == null) { + PublisherGrpc.getListTopicsMethod = getListTopicsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Publisher", "ListTopics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance())) + .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopics")) + .build(); + } + } + } + return getListTopicsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListTopicSubscriptionsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_TOPIC_SUBSCRIPTIONS = getListTopicSubscriptionsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListTopicSubscriptionsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListTopicSubscriptionsMethod() { + return getListTopicSubscriptionsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListTopicSubscriptionsMethodHelper() { + io.grpc.MethodDescriptor getListTopicSubscriptionsMethod; + if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod) == null) { + synchronized (PublisherGrpc.class) { + if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod) == null) { + PublisherGrpc.getListTopicSubscriptionsMethod = getListTopicSubscriptionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Publisher", "ListTopicSubscriptions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopicSubscriptions")) + .build(); + } + } + } + return getListTopicSubscriptionsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteTopicMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_DELETE_TOPIC = getDeleteTopicMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getDeleteTopicMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getDeleteTopicMethod() { + return getDeleteTopicMethodHelper(); + } + + private static io.grpc.MethodDescriptor getDeleteTopicMethodHelper() { + io.grpc.MethodDescriptor getDeleteTopicMethod; + if ((getDeleteTopicMethod = PublisherGrpc.getDeleteTopicMethod) == null) { + synchronized (PublisherGrpc.class) { + if ((getDeleteTopicMethod = PublisherGrpc.getDeleteTopicMethod) == null) { + PublisherGrpc.getDeleteTopicMethod = getDeleteTopicMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Publisher", "DeleteTopic")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("DeleteTopic")) + .build(); + } + } + } + return getDeleteTopicMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static PublisherStub newStub(io.grpc.Channel channel) { + return new PublisherStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static PublisherBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new PublisherBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static PublisherFutureStub newFutureStub( + io.grpc.Channel channel) { + return new PublisherFutureStub(channel); + } + + /** + *
+   * The service that an application uses to manipulate topics, and to send
+   * messages to a topic.
+   * 
+ */ + public static abstract class PublisherImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates the given topic with the given name.
+     * 
+ */ + public void createTopic(com.google.pubsub.v1.Topic request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateTopicMethodHelper(), responseObserver); + } + + /** + *
+     * Updates an existing topic. Note that certain properties of a topic are not
+     * modifiable.  Options settings follow the style guide:
+     * NOTE:  The style guide requires body: "topic" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateTopicMethodHelper(), responseObserver); + } + + /** + *
+     * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
+     * does not exist. The message payload must not be empty; it must contain
+     *  either a non-empty data field, or at least one attribute.
+     * 
+ */ + public void publish(com.google.pubsub.v1.PublishRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getPublishMethodHelper(), responseObserver); + } + + /** + *
+     * Gets the configuration of a topic.
+     * 
+ */ + public void getTopic(com.google.pubsub.v1.GetTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTopicMethodHelper(), responseObserver); + } + + /** + *
+     * Lists matching topics.
+     * 
+ */ + public void listTopics(com.google.pubsub.v1.ListTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListTopicsMethodHelper(), responseObserver); + } + + /** + *
+     * Lists the name of the subscriptions for this topic.
+     * 
+ */ + public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethodHelper(), responseObserver); + } + + /** + *
+     * 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_`.
+     * 
+ */ + public void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteTopicMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateTopicMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic>( + this, METHODID_CREATE_TOPIC))) + .addMethod( + getUpdateTopicMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateTopicRequest, + com.google.pubsub.v1.Topic>( + this, METHODID_UPDATE_TOPIC))) + .addMethod( + getPublishMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PublishRequest, + com.google.pubsub.v1.PublishResponse>( + this, METHODID_PUBLISH))) + .addMethod( + getGetTopicMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetTopicRequest, + com.google.pubsub.v1.Topic>( + this, METHODID_GET_TOPIC))) + .addMethod( + getListTopicsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicsRequest, + com.google.pubsub.v1.ListTopicsResponse>( + this, METHODID_LIST_TOPICS))) + .addMethod( + getListTopicSubscriptionsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicSubscriptionsRequest, + com.google.pubsub.v1.ListTopicSubscriptionsResponse>( + this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) + .addMethod( + getDeleteTopicMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteTopicRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_TOPIC))) + .build(); + } + } + + /** + *
+   * The service that an application uses to manipulate topics, and to send
+   * messages to a topic.
+   * 
+ */ + public static final class PublisherStub extends io.grpc.stub.AbstractStub { + private PublisherStub(io.grpc.Channel channel) { + super(channel); + } + + private PublisherStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PublisherStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new PublisherStub(channel, callOptions); + } + + /** + *
+     * Creates the given topic with the given name.
+     * 
+ */ + public void createTopic(com.google.pubsub.v1.Topic request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateTopicMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing topic. Note that certain properties of a topic are not
+     * modifiable.  Options settings follow the style guide:
+     * NOTE:  The style guide requires body: "topic" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateTopicMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
+     * does not exist. The message payload must not be empty; it must contain
+     *  either a non-empty data field, or at least one attribute.
+     * 
+ */ + public void publish(com.google.pubsub.v1.PublishRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getPublishMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the configuration of a topic.
+     * 
+ */ + public void getTopic(com.google.pubsub.v1.GetTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTopicMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists matching topics.
+     * 
+ */ + public void listTopics(com.google.pubsub.v1.ListTopicsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListTopicsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the name of the subscriptions for this topic.
+     * 
+ */ + public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListTopicSubscriptionsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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_`.
+     * 
+ */ + public void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteTopicMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The service that an application uses to manipulate topics, and to send
+   * messages to a topic.
+   * 
+ */ + public static final class PublisherBlockingStub extends io.grpc.stub.AbstractStub { + private PublisherBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private PublisherBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PublisherBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new PublisherBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates the given topic with the given name.
+     * 
+ */ + public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { + return blockingUnaryCall( + getChannel(), getCreateTopicMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing topic. Note that certain properties of a topic are not
+     * modifiable.  Options settings follow the style guide:
+     * NOTE:  The style guide requires body: "topic" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateTopicMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
+     * does not exist. The message payload must not be empty; it must contain
+     *  either a non-empty data field, or at least one attribute.
+     * 
+ */ + public com.google.pubsub.v1.PublishResponse publish(com.google.pubsub.v1.PublishRequest request) { + return blockingUnaryCall( + getChannel(), getPublishMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Gets the configuration of a topic.
+     * 
+ */ + public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request) { + return blockingUnaryCall( + getChannel(), getGetTopicMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists matching topics.
+     * 
+ */ + public com.google.pubsub.v1.ListTopicsResponse listTopics(com.google.pubsub.v1.ListTopicsRequest request) { + return blockingUnaryCall( + getChannel(), getListTopicsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists the name of the subscriptions for this topic.
+     * 
+ */ + public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + return blockingUnaryCall( + getChannel(), getListTopicSubscriptionsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * 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_`.
+     * 
+ */ + public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteTopicMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * The service that an application uses to manipulate topics, and to send
+   * messages to a topic.
+   * 
+ */ + public static final class PublisherFutureStub extends io.grpc.stub.AbstractStub { + private PublisherFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private PublisherFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PublisherFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new PublisherFutureStub(channel, callOptions); + } + + /** + *
+     * Creates the given topic with the given name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createTopic( + com.google.pubsub.v1.Topic request) { + return futureUnaryCall( + getChannel().newCall(getCreateTopicMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing topic. Note that certain properties of a topic are not
+     * modifiable.  Options settings follow the style guide:
+     * NOTE:  The style guide requires body: "topic" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateTopic( + com.google.pubsub.v1.UpdateTopicRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateTopicMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
+     * does not exist. The message payload must not be empty; it must contain
+     *  either a non-empty data field, or at least one attribute.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture publish( + com.google.pubsub.v1.PublishRequest request) { + return futureUnaryCall( + getChannel().newCall(getPublishMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Gets the configuration of a topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getTopic( + com.google.pubsub.v1.GetTopicRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetTopicMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists matching topics.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTopics( + com.google.pubsub.v1.ListTopicsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListTopicsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists the name of the subscriptions for this topic.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListTopicSubscriptionsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * 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_`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteTopic( + com.google.pubsub.v1.DeleteTopicRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteTopicMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_TOPIC = 0; + private static final int METHODID_UPDATE_TOPIC = 1; + private static final int METHODID_PUBLISH = 2; + private static final int METHODID_GET_TOPIC = 3; + private static final int METHODID_LIST_TOPICS = 4; + private static final int METHODID_LIST_TOPIC_SUBSCRIPTIONS = 5; + private static final int METHODID_DELETE_TOPIC = 6; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final PublisherImplBase serviceImpl; + private final int methodId; + + MethodHandlers(PublisherImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_TOPIC: + serviceImpl.createTopic((com.google.pubsub.v1.Topic) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_TOPIC: + serviceImpl.updateTopic((com.google.pubsub.v1.UpdateTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PUBLISH: + serviceImpl.publish((com.google.pubsub.v1.PublishRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TOPIC: + serviceImpl.getTopic((com.google.pubsub.v1.GetTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TOPICS: + serviceImpl.listTopics((com.google.pubsub.v1.ListTopicsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TOPIC_SUBSCRIPTIONS: + serviceImpl.listTopicSubscriptions((com.google.pubsub.v1.ListTopicSubscriptionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_TOPIC: + serviceImpl.deleteTopic((com.google.pubsub.v1.DeleteTopicRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class PublisherBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + PublisherBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.pubsub.v1.PubsubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Publisher"); + } + } + + private static final class PublisherFileDescriptorSupplier + extends PublisherBaseDescriptorSupplier { + PublisherFileDescriptorSupplier() {} + } + + private static final class PublisherMethodDescriptorSupplier + extends PublisherBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + PublisherMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (PublisherGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PublisherFileDescriptorSupplier()) + .addMethod(getCreateTopicMethodHelper()) + .addMethod(getUpdateTopicMethodHelper()) + .addMethod(getPublishMethodHelper()) + .addMethod(getGetTopicMethodHelper()) + .addMethod(getListTopicsMethodHelper()) + .addMethod(getListTopicSubscriptionsMethodHelper()) + .addMethod(getDeleteTopicMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java new file mode 100644 index 000000000000..0868ccb28b75 --- /dev/null +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -0,0 +1,1804 @@ +package com.google.pubsub.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * The service that an application uses to manipulate subscriptions and to
+ * consume messages from a subscription via the `Pull` method.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/pubsub/v1/pubsub.proto") +public final class SubscriberGrpc { + + private SubscriberGrpc() {} + + public static final String SERVICE_NAME = "google.pubsub.v1.Subscriber"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateSubscriptionMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_CREATE_SUBSCRIPTION = getCreateSubscriptionMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCreateSubscriptionMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCreateSubscriptionMethod() { + return getCreateSubscriptionMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCreateSubscriptionMethodHelper() { + io.grpc.MethodDescriptor getCreateSubscriptionMethod; + if ((getCreateSubscriptionMethod = SubscriberGrpc.getCreateSubscriptionMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getCreateSubscriptionMethod = SubscriberGrpc.getCreateSubscriptionMethod) == null) { + SubscriberGrpc.getCreateSubscriptionMethod = getCreateSubscriptionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "CreateSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Subscription.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Subscription.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSubscription")) + .build(); + } + } + } + return getCreateSubscriptionMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetSubscriptionMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_SUBSCRIPTION = getGetSubscriptionMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetSubscriptionMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetSubscriptionMethod() { + return getGetSubscriptionMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetSubscriptionMethodHelper() { + io.grpc.MethodDescriptor getGetSubscriptionMethod; + if ((getGetSubscriptionMethod = SubscriberGrpc.getGetSubscriptionMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getGetSubscriptionMethod = SubscriberGrpc.getGetSubscriptionMethod) == null) { + SubscriberGrpc.getGetSubscriptionMethod = getGetSubscriptionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "GetSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Subscription.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSubscription")) + .build(); + } + } + } + return getGetSubscriptionMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateSubscriptionMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_UPDATE_SUBSCRIPTION = getUpdateSubscriptionMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getUpdateSubscriptionMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getUpdateSubscriptionMethod() { + return getUpdateSubscriptionMethodHelper(); + } + + private static io.grpc.MethodDescriptor getUpdateSubscriptionMethodHelper() { + io.grpc.MethodDescriptor getUpdateSubscriptionMethod; + if ((getUpdateSubscriptionMethod = SubscriberGrpc.getUpdateSubscriptionMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getUpdateSubscriptionMethod = SubscriberGrpc.getUpdateSubscriptionMethod) == null) { + SubscriberGrpc.getUpdateSubscriptionMethod = getUpdateSubscriptionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "UpdateSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Subscription.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSubscription")) + .build(); + } + } + } + return getUpdateSubscriptionMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListSubscriptionsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_SUBSCRIPTIONS = getListSubscriptionsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListSubscriptionsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListSubscriptionsMethod() { + return getListSubscriptionsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListSubscriptionsMethodHelper() { + io.grpc.MethodDescriptor getListSubscriptionsMethod; + if ((getListSubscriptionsMethod = SubscriberGrpc.getListSubscriptionsMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getListSubscriptionsMethod = SubscriberGrpc.getListSubscriptionsMethod) == null) { + SubscriberGrpc.getListSubscriptionsMethod = getListSubscriptionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "ListSubscriptions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSubscriptions")) + .build(); + } + } + } + return getListSubscriptionsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteSubscriptionMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_DELETE_SUBSCRIPTION = getDeleteSubscriptionMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getDeleteSubscriptionMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getDeleteSubscriptionMethod() { + return getDeleteSubscriptionMethodHelper(); + } + + private static io.grpc.MethodDescriptor getDeleteSubscriptionMethodHelper() { + io.grpc.MethodDescriptor getDeleteSubscriptionMethod; + if ((getDeleteSubscriptionMethod = SubscriberGrpc.getDeleteSubscriptionMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getDeleteSubscriptionMethod = SubscriberGrpc.getDeleteSubscriptionMethod) == null) { + SubscriberGrpc.getDeleteSubscriptionMethod = getDeleteSubscriptionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "DeleteSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSubscription")) + .build(); + } + } + } + return getDeleteSubscriptionMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getModifyAckDeadlineMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_MODIFY_ACK_DEADLINE = getModifyAckDeadlineMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getModifyAckDeadlineMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getModifyAckDeadlineMethod() { + return getModifyAckDeadlineMethodHelper(); + } + + private static io.grpc.MethodDescriptor getModifyAckDeadlineMethodHelper() { + io.grpc.MethodDescriptor getModifyAckDeadlineMethod; + if ((getModifyAckDeadlineMethod = SubscriberGrpc.getModifyAckDeadlineMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getModifyAckDeadlineMethod = SubscriberGrpc.getModifyAckDeadlineMethod) == null) { + SubscriberGrpc.getModifyAckDeadlineMethod = getModifyAckDeadlineMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "ModifyAckDeadline")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ModifyAckDeadline")) + .build(); + } + } + } + return getModifyAckDeadlineMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getAcknowledgeMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_ACKNOWLEDGE = getAcknowledgeMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getAcknowledgeMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getAcknowledgeMethod() { + return getAcknowledgeMethodHelper(); + } + + private static io.grpc.MethodDescriptor getAcknowledgeMethodHelper() { + io.grpc.MethodDescriptor getAcknowledgeMethod; + if ((getAcknowledgeMethod = SubscriberGrpc.getAcknowledgeMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getAcknowledgeMethod = SubscriberGrpc.getAcknowledgeMethod) == null) { + SubscriberGrpc.getAcknowledgeMethod = getAcknowledgeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "Acknowledge")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Acknowledge")) + .build(); + } + } + } + return getAcknowledgeMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getPullMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_PULL = getPullMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getPullMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getPullMethod() { + return getPullMethodHelper(); + } + + private static io.grpc.MethodDescriptor getPullMethodHelper() { + io.grpc.MethodDescriptor getPullMethod; + if ((getPullMethod = SubscriberGrpc.getPullMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getPullMethod = SubscriberGrpc.getPullMethod) == null) { + SubscriberGrpc.getPullMethod = getPullMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "Pull")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.PullRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.PullResponse.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Pull")) + .build(); + } + } + } + return getPullMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getStreamingPullMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_STREAMING_PULL = getStreamingPullMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getStreamingPullMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getStreamingPullMethod() { + return getStreamingPullMethodHelper(); + } + + private static io.grpc.MethodDescriptor getStreamingPullMethodHelper() { + io.grpc.MethodDescriptor getStreamingPullMethod; + if ((getStreamingPullMethod = SubscriberGrpc.getStreamingPullMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getStreamingPullMethod = SubscriberGrpc.getStreamingPullMethod) == null) { + SubscriberGrpc.getStreamingPullMethod = getStreamingPullMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "StreamingPull")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("StreamingPull")) + .build(); + } + } + } + return getStreamingPullMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getModifyPushConfigMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_MODIFY_PUSH_CONFIG = getModifyPushConfigMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getModifyPushConfigMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getModifyPushConfigMethod() { + return getModifyPushConfigMethodHelper(); + } + + private static io.grpc.MethodDescriptor getModifyPushConfigMethodHelper() { + io.grpc.MethodDescriptor getModifyPushConfigMethod; + if ((getModifyPushConfigMethod = SubscriberGrpc.getModifyPushConfigMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getModifyPushConfigMethod = SubscriberGrpc.getModifyPushConfigMethod) == null) { + SubscriberGrpc.getModifyPushConfigMethod = getModifyPushConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "ModifyPushConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ModifyPushConfig")) + .build(); + } + } + } + return getModifyPushConfigMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListSnapshotsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_SNAPSHOTS = getListSnapshotsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListSnapshotsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListSnapshotsMethod() { + return getListSnapshotsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListSnapshotsMethodHelper() { + io.grpc.MethodDescriptor getListSnapshotsMethod; + if ((getListSnapshotsMethod = SubscriberGrpc.getListSnapshotsMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getListSnapshotsMethod = SubscriberGrpc.getListSnapshotsMethod) == null) { + SubscriberGrpc.getListSnapshotsMethod = getListSnapshotsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "ListSnapshots")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSnapshots")) + .build(); + } + } + } + return getListSnapshotsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getCreateSnapshotMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_CREATE_SNAPSHOT = getCreateSnapshotMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getCreateSnapshotMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getCreateSnapshotMethod() { + return getCreateSnapshotMethodHelper(); + } + + private static io.grpc.MethodDescriptor getCreateSnapshotMethodHelper() { + io.grpc.MethodDescriptor getCreateSnapshotMethod; + if ((getCreateSnapshotMethod = SubscriberGrpc.getCreateSnapshotMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getCreateSnapshotMethod = SubscriberGrpc.getCreateSnapshotMethod) == null) { + SubscriberGrpc.getCreateSnapshotMethod = getCreateSnapshotMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "CreateSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Snapshot.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSnapshot")) + .build(); + } + } + } + return getCreateSnapshotMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateSnapshotMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_UPDATE_SNAPSHOT = getUpdateSnapshotMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getUpdateSnapshotMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getUpdateSnapshotMethod() { + return getUpdateSnapshotMethodHelper(); + } + + private static io.grpc.MethodDescriptor getUpdateSnapshotMethodHelper() { + io.grpc.MethodDescriptor getUpdateSnapshotMethod; + if ((getUpdateSnapshotMethod = SubscriberGrpc.getUpdateSnapshotMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getUpdateSnapshotMethod = SubscriberGrpc.getUpdateSnapshotMethod) == null) { + SubscriberGrpc.getUpdateSnapshotMethod = getUpdateSnapshotMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "UpdateSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Snapshot.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSnapshot")) + .build(); + } + } + } + return getUpdateSnapshotMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getDeleteSnapshotMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_DELETE_SNAPSHOT = getDeleteSnapshotMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getDeleteSnapshotMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getDeleteSnapshotMethod() { + return getDeleteSnapshotMethodHelper(); + } + + private static io.grpc.MethodDescriptor getDeleteSnapshotMethodHelper() { + io.grpc.MethodDescriptor getDeleteSnapshotMethod; + if ((getDeleteSnapshotMethod = SubscriberGrpc.getDeleteSnapshotMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getDeleteSnapshotMethod = SubscriberGrpc.getDeleteSnapshotMethod) == null) { + SubscriberGrpc.getDeleteSnapshotMethod = getDeleteSnapshotMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "DeleteSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSnapshot")) + .build(); + } + } + } + return getDeleteSnapshotMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getSeekMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_SEEK = getSeekMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getSeekMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getSeekMethod() { + return getSeekMethodHelper(); + } + + private static io.grpc.MethodDescriptor getSeekMethodHelper() { + io.grpc.MethodDescriptor getSeekMethod; + if ((getSeekMethod = SubscriberGrpc.getSeekMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getSeekMethod = SubscriberGrpc.getSeekMethod) == null) { + SubscriberGrpc.getSeekMethod = getSeekMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "Seek")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.SeekRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.SeekResponse.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Seek")) + .build(); + } + } + } + return getSeekMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SubscriberStub newStub(io.grpc.Channel channel) { + return new SubscriberStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SubscriberBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new SubscriberBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SubscriberFutureStub newFutureStub( + io.grpc.Channel channel) { + return new SubscriberFutureStub(channel); + } + + /** + *
+   * The service that an application uses to manipulate subscriptions and to
+   * consume messages from a subscription via the `Pull` method.
+   * 
+ */ + public static abstract class SubscriberImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a subscription to a given topic.
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated name is populated in the returned Subscription object.
+     * Note that for REST API requests, you must specify a name in the request.
+     * 
+ */ + public void createSubscription(com.google.pubsub.v1.Subscription request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateSubscriptionMethodHelper(), responseObserver); + } + + /** + *
+     * Gets the configuration details of a subscription.
+     * 
+ */ + public void getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetSubscriptionMethodHelper(), responseObserver); + } + + /** + *
+     * Updates an existing subscription. Note that certain properties of a
+     * subscription, such as its topic, are not modifiable.
+     * NOTE:  The style guide requires body: "subscription" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public void updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateSubscriptionMethodHelper(), responseObserver); + } + + /** + *
+     * Lists matching subscriptions.
+     * 
+ */ + public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListSubscriptionsMethodHelper(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteSubscriptionMethodHelper(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getModifyAckDeadlineMethodHelper(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void acknowledge(com.google.pubsub.v1.AcknowledgeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getAcknowledgeMethodHelper(), responseObserver); + } + + /** + *
+     * Pulls messages from the server. Returns an empty list if there are no
+     * messages available in the backlog. The server may return `UNAVAILABLE` if
+     * there are too many concurrent pull requests pending for the given
+     * subscription.
+     * 
+ */ + public void pull(com.google.pubsub.v1.PullRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getPullMethodHelper(), responseObserver); + } + + /** + *
+     * (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will
+     * respond with UNIMPLEMENTED errors unless you have been invited to test
+     * this feature. Contact cloud-pubsub@google.com with any questions.
+     * 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 `OK` to reassign
+     * server-side resources, in which case, the client should re-establish the
+     * stream. `UNAVAILABLE` may also be returned in the case of a transient error
+     * (e.g., a server restart). These should also be retried by the client. Flow
+     * control can be achieved by configuring the underlying RPC channel.
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingPull( + io.grpc.stub.StreamObserver responseObserver) { + return asyncUnimplementedStreamingCall(getStreamingPullMethodHelper(), responseObserver); + } + + /** + *
+     * Modifies the `PushConfig` for a specified subscription.
+     * 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`.
+     * 
+ */ + public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getModifyPushConfigMethodHelper(), responseObserver); + } + + /** + *
+     * Lists the existing snapshots.
+     * 
+ */ + public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListSnapshotsMethodHelper(), responseObserver); + } + + /** + *
+     * Creates a snapshot from the requested subscription.
+     * If the snapshot already exists, returns `ALREADY_EXISTS`.
+     * If the requested subscription doesn't exist, returns `NOT_FOUND`.
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated name is populated in the returned Snapshot object.
+     * Note that for REST API requests, you must specify a name in the request.
+     * 
+ */ + public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateSnapshotMethodHelper(), responseObserver); + } + + /** + *
+     * Updates an existing snapshot. Note that certain properties of a snapshot
+     * are not modifiable.
+     * NOTE:  The style guide requires body: "snapshot" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateSnapshotMethodHelper(), responseObserver); + } + + /** + *
+     * Removes an existing snapshot. All messages retained in the snapshot
+     * are immediately dropped. After a snapshot is deleted, a new one may be
+     * created with the same name, but the new one has no association with the old
+     * snapshot or its subscription, unless the same subscription is specified.
+     * 
+ */ + public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteSnapshotMethodHelper(), responseObserver); + } + + /** + *
+     * Seeks an existing subscription to a point in time or to a given snapshot,
+     * whichever is provided in the request.
+     * 
+ */ + public void seek(com.google.pubsub.v1.SeekRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSeekMethodHelper(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSubscriptionMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription>( + this, METHODID_CREATE_SUBSCRIPTION))) + .addMethod( + getGetSubscriptionMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSubscriptionRequest, + com.google.pubsub.v1.Subscription>( + this, METHODID_GET_SUBSCRIPTION))) + .addMethod( + getUpdateSubscriptionMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSubscriptionRequest, + com.google.pubsub.v1.Subscription>( + this, METHODID_UPDATE_SUBSCRIPTION))) + .addMethod( + getListSubscriptionsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSubscriptionsRequest, + com.google.pubsub.v1.ListSubscriptionsResponse>( + this, METHODID_LIST_SUBSCRIPTIONS))) + .addMethod( + getDeleteSubscriptionMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSubscriptionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SUBSCRIPTION))) + .addMethod( + getModifyAckDeadlineMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyAckDeadlineRequest, + com.google.protobuf.Empty>( + this, METHODID_MODIFY_ACK_DEADLINE))) + .addMethod( + getAcknowledgeMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.AcknowledgeRequest, + com.google.protobuf.Empty>( + this, METHODID_ACKNOWLEDGE))) + .addMethod( + getPullMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PullRequest, + com.google.pubsub.v1.PullResponse>( + this, METHODID_PULL))) + .addMethod( + getStreamingPullMethodHelper(), + asyncBidiStreamingCall( + new MethodHandlers< + com.google.pubsub.v1.StreamingPullRequest, + com.google.pubsub.v1.StreamingPullResponse>( + this, METHODID_STREAMING_PULL))) + .addMethod( + getModifyPushConfigMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyPushConfigRequest, + com.google.protobuf.Empty>( + this, METHODID_MODIFY_PUSH_CONFIG))) + .addMethod( + getListSnapshotsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSnapshotsRequest, + com.google.pubsub.v1.ListSnapshotsResponse>( + this, METHODID_LIST_SNAPSHOTS))) + .addMethod( + getCreateSnapshotMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CreateSnapshotRequest, + com.google.pubsub.v1.Snapshot>( + this, METHODID_CREATE_SNAPSHOT))) + .addMethod( + getUpdateSnapshotMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSnapshotRequest, + com.google.pubsub.v1.Snapshot>( + this, METHODID_UPDATE_SNAPSHOT))) + .addMethod( + getDeleteSnapshotMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSnapshotRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SNAPSHOT))) + .addMethod( + getSeekMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.SeekRequest, + com.google.pubsub.v1.SeekResponse>( + this, METHODID_SEEK))) + .build(); + } + } + + /** + *
+   * The service that an application uses to manipulate subscriptions and to
+   * consume messages from a subscription via the `Pull` method.
+   * 
+ */ + public static final class SubscriberStub extends io.grpc.stub.AbstractStub { + private SubscriberStub(io.grpc.Channel channel) { + super(channel); + } + + private SubscriberStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SubscriberStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new SubscriberStub(channel, callOptions); + } + + /** + *
+     * Creates a subscription to a given topic.
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated name is populated in the returned Subscription object.
+     * Note that for REST API requests, you must specify a name in the request.
+     * 
+ */ + public void createSubscription(com.google.pubsub.v1.Subscription request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateSubscriptionMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the configuration details of a subscription.
+     * 
+ */ + public void getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetSubscriptionMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing subscription. Note that certain properties of a
+     * subscription, such as its topic, are not modifiable.
+     * NOTE:  The style guide requires body: "subscription" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public void updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateSubscriptionMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists matching subscriptions.
+     * 
+ */ + public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListSubscriptionsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteSubscriptionMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getModifyAckDeadlineMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void acknowledge(com.google.pubsub.v1.AcknowledgeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getAcknowledgeMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Pulls messages from the server. Returns an empty list if there are no
+     * messages available in the backlog. The server may return `UNAVAILABLE` if
+     * there are too many concurrent pull requests pending for the given
+     * subscription.
+     * 
+ */ + public void pull(com.google.pubsub.v1.PullRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getPullMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will
+     * respond with UNIMPLEMENTED errors unless you have been invited to test
+     * this feature. Contact cloud-pubsub@google.com with any questions.
+     * 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 `OK` to reassign
+     * server-side resources, in which case, the client should re-establish the
+     * stream. `UNAVAILABLE` may also be returned in the case of a transient error
+     * (e.g., a server restart). These should also be retried by the client. Flow
+     * control can be achieved by configuring the underlying RPC channel.
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingPull( + io.grpc.stub.StreamObserver responseObserver) { + return asyncBidiStreamingCall( + getChannel().newCall(getStreamingPullMethodHelper(), getCallOptions()), responseObserver); + } + + /** + *
+     * Modifies the `PushConfig` for a specified subscription.
+     * 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`.
+     * 
+ */ + public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getModifyPushConfigMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the existing snapshots.
+     * 
+ */ + public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListSnapshotsMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a snapshot from the requested subscription.
+     * If the snapshot already exists, returns `ALREADY_EXISTS`.
+     * If the requested subscription doesn't exist, returns `NOT_FOUND`.
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated name is populated in the returned Snapshot object.
+     * Note that for REST API requests, you must specify a name in the request.
+     * 
+ */ + public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateSnapshotMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing snapshot. Note that certain properties of a snapshot
+     * are not modifiable.
+     * NOTE:  The style guide requires body: "snapshot" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateSnapshotMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Removes an existing snapshot. All messages retained in the snapshot
+     * are immediately dropped. After a snapshot is deleted, a new one may be
+     * created with the same name, but the new one has no association with the old
+     * snapshot or its subscription, unless the same subscription is specified.
+     * 
+ */ + public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteSnapshotMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Seeks an existing subscription to a point in time or to a given snapshot,
+     * whichever is provided in the request.
+     * 
+ */ + public void seek(com.google.pubsub.v1.SeekRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSeekMethodHelper(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The service that an application uses to manipulate subscriptions and to
+   * consume messages from a subscription via the `Pull` method.
+   * 
+ */ + public static final class SubscriberBlockingStub extends io.grpc.stub.AbstractStub { + private SubscriberBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private SubscriberBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SubscriberBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new SubscriberBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a subscription to a given topic.
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated name is populated in the returned Subscription object.
+     * Note that for REST API requests, you must specify a name in the request.
+     * 
+ */ + public com.google.pubsub.v1.Subscription createSubscription(com.google.pubsub.v1.Subscription request) { + return blockingUnaryCall( + getChannel(), getCreateSubscriptionMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Gets the configuration details of a subscription.
+     * 
+ */ + public com.google.pubsub.v1.Subscription getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request) { + return blockingUnaryCall( + getChannel(), getGetSubscriptionMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing subscription. Note that certain properties of a
+     * subscription, such as its topic, are not modifiable.
+     * NOTE:  The style guide requires body: "subscription" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public com.google.pubsub.v1.Subscription updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateSubscriptionMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists matching subscriptions.
+     * 
+ */ + public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { + return blockingUnaryCall( + getChannel(), getListSubscriptionsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.protobuf.Empty deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteSubscriptionMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.protobuf.Empty modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request) { + return blockingUnaryCall( + getChannel(), getModifyAckDeadlineMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { + return blockingUnaryCall( + getChannel(), getAcknowledgeMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Pulls messages from the server. Returns an empty list if there are no
+     * messages available in the backlog. The server may return `UNAVAILABLE` if
+     * there are too many concurrent pull requests pending for the given
+     * subscription.
+     * 
+ */ + public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) { + return blockingUnaryCall( + getChannel(), getPullMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Modifies the `PushConfig` for a specified subscription.
+     * 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`.
+     * 
+ */ + public com.google.protobuf.Empty modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request) { + return blockingUnaryCall( + getChannel(), getModifyPushConfigMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists the existing snapshots.
+     * 
+ */ + public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) { + return blockingUnaryCall( + getChannel(), getListSnapshotsMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Creates a snapshot from the requested subscription.
+     * If the snapshot already exists, returns `ALREADY_EXISTS`.
+     * If the requested subscription doesn't exist, returns `NOT_FOUND`.
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated name is populated in the returned Snapshot object.
+     * Note that for REST API requests, you must specify a name in the request.
+     * 
+ */ + public com.google.pubsub.v1.Snapshot createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request) { + return blockingUnaryCall( + getChannel(), getCreateSnapshotMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing snapshot. Note that certain properties of a snapshot
+     * are not modifiable.
+     * NOTE:  The style guide requires body: "snapshot" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public com.google.pubsub.v1.Snapshot updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateSnapshotMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Removes an existing snapshot. All messages retained in the snapshot
+     * are immediately dropped. After a snapshot is deleted, a new one may be
+     * created with the same name, but the new one has no association with the old
+     * snapshot or its subscription, unless the same subscription is specified.
+     * 
+ */ + public com.google.protobuf.Empty deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteSnapshotMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Seeks an existing subscription to a point in time or to a given snapshot,
+     * whichever is provided in the request.
+     * 
+ */ + public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { + return blockingUnaryCall( + getChannel(), getSeekMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+   * The service that an application uses to manipulate subscriptions and to
+   * consume messages from a subscription via the `Pull` method.
+   * 
+ */ + public static final class SubscriberFutureStub extends io.grpc.stub.AbstractStub { + private SubscriberFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private SubscriberFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SubscriberFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new SubscriberFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a subscription to a given topic.
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated name is populated in the returned Subscription object.
+     * Note that for REST API requests, you must specify a name in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSubscription( + com.google.pubsub.v1.Subscription request) { + return futureUnaryCall( + getChannel().newCall(getCreateSubscriptionMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Gets the configuration details of a subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getSubscription( + com.google.pubsub.v1.GetSubscriptionRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetSubscriptionMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing subscription. Note that certain properties of a
+     * subscription, such as its topic, are not modifiable.
+     * NOTE:  The style guide requires body: "subscription" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSubscription( + com.google.pubsub.v1.UpdateSubscriptionRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateSubscriptionMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists matching subscriptions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSubscriptions( + com.google.pubsub.v1.ListSubscriptionsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListSubscriptionsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSubscription( + com.google.pubsub.v1.DeleteSubscriptionRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteSubscriptionMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture modifyAckDeadline( + com.google.pubsub.v1.ModifyAckDeadlineRequest request) { + return futureUnaryCall( + getChannel().newCall(getModifyAckDeadlineMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture acknowledge( + com.google.pubsub.v1.AcknowledgeRequest request) { + return futureUnaryCall( + getChannel().newCall(getAcknowledgeMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Pulls messages from the server. Returns an empty list if there are no
+     * messages available in the backlog. The server may return `UNAVAILABLE` if
+     * there are too many concurrent pull requests pending for the given
+     * subscription.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture pull( + com.google.pubsub.v1.PullRequest request) { + return futureUnaryCall( + getChannel().newCall(getPullMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Modifies the `PushConfig` for a specified subscription.
+     * 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`.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture modifyPushConfig( + com.google.pubsub.v1.ModifyPushConfigRequest request) { + return futureUnaryCall( + getChannel().newCall(getModifyPushConfigMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists the existing snapshots.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listSnapshots( + com.google.pubsub.v1.ListSnapshotsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListSnapshotsMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Creates a snapshot from the requested subscription.
+     * If the snapshot already exists, returns `ALREADY_EXISTS`.
+     * If the requested subscription doesn't exist, returns `NOT_FOUND`.
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated name is populated in the returned Snapshot object.
+     * Note that for REST API requests, you must specify a name in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createSnapshot( + com.google.pubsub.v1.CreateSnapshotRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateSnapshotMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing snapshot. Note that certain properties of a snapshot
+     * are not modifiable.
+     * NOTE:  The style guide requires body: "snapshot" instead of body: "*".
+     * Keeping the latter for internal consistency in V1, however it should be
+     * corrected in V2.  See
+     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateSnapshot( + com.google.pubsub.v1.UpdateSnapshotRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateSnapshotMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Removes an existing snapshot. All messages retained in the snapshot
+     * are immediately dropped. After a snapshot is deleted, a new one may be
+     * created with the same name, but the new one has no association with the old
+     * snapshot or its subscription, unless the same subscription is specified.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSnapshot( + com.google.pubsub.v1.DeleteSnapshotRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteSnapshotMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Seeks an existing subscription to a point in time or to a given snapshot,
+     * whichever is provided in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture seek( + com.google.pubsub.v1.SeekRequest request) { + return futureUnaryCall( + getChannel().newCall(getSeekMethodHelper(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SUBSCRIPTION = 0; + private static final int METHODID_GET_SUBSCRIPTION = 1; + private static final int METHODID_UPDATE_SUBSCRIPTION = 2; + private static final int METHODID_LIST_SUBSCRIPTIONS = 3; + private static final int METHODID_DELETE_SUBSCRIPTION = 4; + private static final int METHODID_MODIFY_ACK_DEADLINE = 5; + private static final int METHODID_ACKNOWLEDGE = 6; + private static final int METHODID_PULL = 7; + private static final int METHODID_MODIFY_PUSH_CONFIG = 8; + private static final int METHODID_LIST_SNAPSHOTS = 9; + private static final int METHODID_CREATE_SNAPSHOT = 10; + private static final int METHODID_UPDATE_SNAPSHOT = 11; + private static final int METHODID_DELETE_SNAPSHOT = 12; + private static final int METHODID_SEEK = 13; + private static final int METHODID_STREAMING_PULL = 14; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SubscriberImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SubscriberImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SUBSCRIPTION: + serviceImpl.createSubscription((com.google.pubsub.v1.Subscription) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SUBSCRIPTION: + serviceImpl.getSubscription((com.google.pubsub.v1.GetSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SUBSCRIPTION: + serviceImpl.updateSubscription((com.google.pubsub.v1.UpdateSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SUBSCRIPTIONS: + serviceImpl.listSubscriptions((com.google.pubsub.v1.ListSubscriptionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SUBSCRIPTION: + serviceImpl.deleteSubscription((com.google.pubsub.v1.DeleteSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MODIFY_ACK_DEADLINE: + serviceImpl.modifyAckDeadline((com.google.pubsub.v1.ModifyAckDeadlineRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ACKNOWLEDGE: + serviceImpl.acknowledge((com.google.pubsub.v1.AcknowledgeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PULL: + serviceImpl.pull((com.google.pubsub.v1.PullRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_MODIFY_PUSH_CONFIG: + serviceImpl.modifyPushConfig((com.google.pubsub.v1.ModifyPushConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SNAPSHOTS: + serviceImpl.listSnapshots((com.google.pubsub.v1.ListSnapshotsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SNAPSHOT: + serviceImpl.createSnapshot((com.google.pubsub.v1.CreateSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SNAPSHOT: + serviceImpl.updateSnapshot((com.google.pubsub.v1.UpdateSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SNAPSHOT: + serviceImpl.deleteSnapshot((com.google.pubsub.v1.DeleteSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEEK: + serviceImpl.seek((com.google.pubsub.v1.SeekRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_PULL: + return (io.grpc.stub.StreamObserver) serviceImpl.streamingPull( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class SubscriberBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SubscriberBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.pubsub.v1.PubsubProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Subscriber"); + } + } + + private static final class SubscriberFileDescriptorSupplier + extends SubscriberBaseDescriptorSupplier { + SubscriberFileDescriptorSupplier() {} + } + + private static final class SubscriberMethodDescriptorSupplier + extends SubscriberBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SubscriberMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SubscriberGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SubscriberFileDescriptorSupplier()) + .addMethod(getCreateSubscriptionMethodHelper()) + .addMethod(getGetSubscriptionMethodHelper()) + .addMethod(getUpdateSubscriptionMethodHelper()) + .addMethod(getListSubscriptionsMethodHelper()) + .addMethod(getDeleteSubscriptionMethodHelper()) + .addMethod(getModifyAckDeadlineMethodHelper()) + .addMethod(getAcknowledgeMethodHelper()) + .addMethod(getPullMethodHelper()) + .addMethod(getStreamingPullMethodHelper()) + .addMethod(getModifyPushConfigMethodHelper()) + .addMethod(getListSnapshotsMethodHelper()) + .addMethod(getCreateSnapshotMethodHelper()) + .addMethod(getUpdateSnapshotMethodHelper()) + .addMethod(getDeleteSnapshotMethodHelper()) + .addMethod(getSeekMethodHelper()) + .build(); + } + } + } + return result; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml new file mode 100644 index 000000000000..4f6013c4b52e --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -0,0 +1,36 @@ + + 4.0.0 + proto-google-cloud-pubsub-v1 + 0.11.1-SNAPSHOT + proto-google-cloud-pubsub-v1 + PROTO library for proto-google-cloud-pubsub-v1 + + com.google.api.grpc + google-api-grpc-pom + 0.11.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + compile + + + com.google.api + api-common + compile + + + com.google.api.grpc + proto-google-common-protos + compile + + + com.google.api.grpc + proto-google-iam-v1 + compile + + + \ No newline at end of file diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java new file mode 100644 index 000000000000..b6f38ea1d079 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -0,0 +1,799 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the Acknowledge method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.AcknowledgeRequest} + */ +public final class AcknowledgeRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.AcknowledgeRequest) + AcknowledgeRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AcknowledgeRequest.newBuilder() to construct. + private AcknowledgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AcknowledgeRequest() { + subscription_ = ""; + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AcknowledgeRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + ackIds_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = ackIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.AcknowledgeRequest.class, com.google.pubsub.v1.AcknowledgeRequest.Builder.class); + } + + private int bitField0_; + public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object subscription_; + /** + *
+   * The subscription whose message is being acknowledged.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + *
+   * The subscription whose message is being acknowledged.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACK_IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList ackIds_; + /** + *
+   * The acknowledgment ID for the messages being acknowledged that was returned
+   * by the Pub/Sub system in the `Pull` response. Must not be empty.
+   * 
+ * + * repeated string ack_ids = 2; + */ + public com.google.protobuf.ProtocolStringList + getAckIdsList() { + return ackIds_; + } + /** + *
+   * The acknowledgment ID for the messages being acknowledged that was returned
+   * by the Pub/Sub system in the `Pull` response. Must not be empty.
+   * 
+ * + * repeated string ack_ids = 2; + */ + public int getAckIdsCount() { + return ackIds_.size(); + } + /** + *
+   * The acknowledgment ID for the messages being acknowledged that was returned
+   * by the Pub/Sub system in the `Pull` response. Must not be empty.
+   * 
+ * + * repeated string ack_ids = 2; + */ + public java.lang.String getAckIds(int index) { + return ackIds_.get(index); + } + /** + *
+   * The acknowledgment ID for the messages being acknowledged that was returned
+   * by the Pub/Sub system in the `Pull` response. Must not be empty.
+   * 
+ * + * repeated string ack_ids = 2; + */ + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { + return ackIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSubscriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + } + for (int i = 0; i < ackIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ackIds_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubscriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + } + { + int dataSize = 0; + for (int i = 0; i < ackIds_.size(); i++) { + dataSize += computeStringSizeNoTag(ackIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getAckIdsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.AcknowledgeRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.AcknowledgeRequest other = (com.google.pubsub.v1.AcknowledgeRequest) obj; + + boolean result = true; + result = result && getSubscription() + .equals(other.getSubscription()); + result = result && getAckIdsList() + .equals(other.getAckIdsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + if (getAckIdsCount() > 0) { + hash = (37 * hash) + ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getAckIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.AcknowledgeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the Acknowledge method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.AcknowledgeRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.AcknowledgeRequest) + com.google.pubsub.v1.AcknowledgeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.AcknowledgeRequest.class, com.google.pubsub.v1.AcknowledgeRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.AcknowledgeRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subscription_ = ""; + + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + } + + public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.AcknowledgeRequest build() { + com.google.pubsub.v1.AcknowledgeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { + com.google.pubsub.v1.AcknowledgeRequest result = new com.google.pubsub.v1.AcknowledgeRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.subscription_ = subscription_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = ackIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ackIds_ = ackIds_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.AcknowledgeRequest) { + return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.AcknowledgeRequest other) { + if (other == com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance()) return this; + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + onChanged(); + } + if (!other.ackIds_.isEmpty()) { + if (ackIds_.isEmpty()) { + ackIds_ = other.ackIds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAckIdsIsMutable(); + ackIds_.addAll(other.ackIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.AcknowledgeRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.AcknowledgeRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object subscription_ = ""; + /** + *
+     * The subscription whose message is being acknowledged.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The subscription whose message is being acknowledged.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The subscription whose message is being acknowledged.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subscription_ = value; + onChanged(); + return this; + } + /** + *
+     * The subscription whose message is being acknowledged.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder clearSubscription() { + + subscription_ = getDefaultInstance().getSubscription(); + onChanged(); + return this; + } + /** + *
+     * The subscription whose message is being acknowledged.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subscription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAckIdsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * The acknowledgment ID for the messages being acknowledged that was returned
+     * by the Pub/Sub system in the `Pull` response. Must not be empty.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public com.google.protobuf.ProtocolStringList + getAckIdsList() { + return ackIds_.getUnmodifiableView(); + } + /** + *
+     * The acknowledgment ID for the messages being acknowledged that was returned
+     * by the Pub/Sub system in the `Pull` response. Must not be empty.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public int getAckIdsCount() { + return ackIds_.size(); + } + /** + *
+     * The acknowledgment ID for the messages being acknowledged that was returned
+     * by the Pub/Sub system in the `Pull` response. Must not be empty.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public java.lang.String getAckIds(int index) { + return ackIds_.get(index); + } + /** + *
+     * The acknowledgment ID for the messages being acknowledged that was returned
+     * by the Pub/Sub system in the `Pull` response. Must not be empty.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { + return ackIds_.getByteString(index); + } + /** + *
+     * The acknowledgment ID for the messages being acknowledged that was returned
+     * by the Pub/Sub system in the `Pull` response. Must not be empty.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public Builder setAckIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); + ackIds_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The acknowledgment ID for the messages being acknowledged that was returned
+     * by the Pub/Sub system in the `Pull` response. Must not be empty.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public Builder addAckIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); + ackIds_.add(value); + onChanged(); + return this; + } + /** + *
+     * The acknowledgment ID for the messages being acknowledged that was returned
+     * by the Pub/Sub system in the `Pull` response. Must not be empty.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public Builder addAllAckIds( + java.lang.Iterable values) { + ensureAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ackIds_); + onChanged(); + return this; + } + /** + *
+     * The acknowledgment ID for the messages being acknowledged that was returned
+     * by the Pub/Sub system in the `Pull` response. Must not be empty.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public Builder clearAckIds() { + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * The acknowledgment ID for the messages being acknowledged that was returned
+     * by the Pub/Sub system in the `Pull` response. Must not be empty.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAckIdsIsMutable(); + ackIds_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.AcknowledgeRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.AcknowledgeRequest) + private static final com.google.pubsub.v1.AcknowledgeRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.AcknowledgeRequest(); + } + + public static com.google.pubsub.v1.AcknowledgeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public AcknowledgeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AcknowledgeRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java new file mode 100644 index 000000000000..e30756788943 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface AcknowledgeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.AcknowledgeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The subscription whose message is being acknowledged.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + java.lang.String getSubscription(); + /** + *
+   * The subscription whose message is being acknowledged.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); + + /** + *
+   * The acknowledgment ID for the messages being acknowledged that was returned
+   * by the Pub/Sub system in the `Pull` response. Must not be empty.
+   * 
+ * + * repeated string ack_ids = 2; + */ + java.util.List + getAckIdsList(); + /** + *
+   * The acknowledgment ID for the messages being acknowledged that was returned
+   * by the Pub/Sub system in the `Pull` response. Must not be empty.
+   * 
+ * + * repeated string ack_ids = 2; + */ + int getAckIdsCount(); + /** + *
+   * The acknowledgment ID for the messages being acknowledged that was returned
+   * by the Pub/Sub system in the `Pull` response. Must not be empty.
+   * 
+ * + * repeated string ack_ids = 2; + */ + java.lang.String getAckIds(int index); + /** + *
+   * The acknowledgment ID for the messages being acknowledged that was returned
+   * by the Pub/Sub system in the `Pull` response. Must not be empty.
+   * 
+ * + * repeated string ack_ids = 2; + */ + com.google.protobuf.ByteString + getAckIdsBytes(int index); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java new file mode 100644 index 000000000000..f6374d302c9a --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -0,0 +1,791 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the `CreateSnapshot` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} + */ +public final class CreateSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSnapshotRequest) + CreateSnapshotRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateSnapshotRequest.newBuilder() to construct. + private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateSnapshotRequest() { + name_ = ""; + subscription_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateSnapshotRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CreateSnapshotRequest.class, com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Optional 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.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Optional 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.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBSCRIPTION_FIELD_NUMBER = 2; + private volatile java.lang.Object subscription_; + /** + *
+   * 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}`.
+   * 
+ * + * string subscription = 2; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + *
+   * 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}`.
+   * 
+ * + * string subscription = 2; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getSubscriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getSubscriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.CreateSnapshotRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.CreateSnapshotRequest other = (com.google.pubsub.v1.CreateSnapshotRequest) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getSubscription() + .equals(other.getSubscription()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.CreateSnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `CreateSnapshot` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CreateSnapshotRequest) + com.google.pubsub.v1.CreateSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CreateSnapshotRequest.class, com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.CreateSnapshotRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + subscription_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + } + + public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.CreateSnapshotRequest build() { + com.google.pubsub.v1.CreateSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { + com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this); + result.name_ = name_; + result.subscription_ = subscription_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.CreateSnapshotRequest) { + return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { + if (other == com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.CreateSnapshotRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.CreateSnapshotRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Optional 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.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional 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.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional 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.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional 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.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Optional 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.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object subscription_ = ""; + /** + *
+     * 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}`.
+     * 
+ * + * string subscription = 2; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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}`.
+     * 
+ * + * string subscription = 2; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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}`.
+     * 
+ * + * string subscription = 2; + */ + public Builder setSubscription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subscription_ = value; + onChanged(); + return this; + } + /** + *
+     * 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}`.
+     * 
+ * + * string subscription = 2; + */ + public Builder clearSubscription() { + + subscription_ = getDefaultInstance().getSubscription(); + onChanged(); + return this; + } + /** + *
+     * 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}`.
+     * 
+ * + * string subscription = 2; + */ + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subscription_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CreateSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSnapshotRequest) + private static final com.google.pubsub.v1.CreateSnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.CreateSnapshotRequest(); + } + + public static com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CreateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSnapshotRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..8749f67aa2a9 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface CreateSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CreateSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional 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.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * Optional 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.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * 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}`.
+   * 
+ * + * string subscription = 2; + */ + java.lang.String getSubscription(); + /** + *
+   * 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}`.
+   * 
+ * + * string subscription = 2; + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java new file mode 100644 index 000000000000..6b92fdcea2b9 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the `DeleteSnapshot` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} + */ +public final class DeleteSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSnapshotRequest) + DeleteSnapshotRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteSnapshotRequest.newBuilder() to construct. + private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteSnapshotRequest() { + snapshot_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteSnapshotRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + snapshot_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeleteSnapshotRequest.class, com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class); + } + + public static final int SNAPSHOT_FIELD_NUMBER = 1; + private volatile java.lang.Object snapshot_; + /** + *
+   * The name of the snapshot to delete.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1; + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshot_ = s; + return s; + } + } + /** + *
+   * The name of the snapshot to delete.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1; + */ + public com.google.protobuf.ByteString + getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSnapshotBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSnapshotBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.DeleteSnapshotRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.DeleteSnapshotRequest other = (com.google.pubsub.v1.DeleteSnapshotRequest) obj; + + boolean result = true; + result = result && getSnapshot() + .equals(other.getSnapshot()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.DeleteSnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `DeleteSnapshot` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSnapshotRequest) + com.google.pubsub.v1.DeleteSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeleteSnapshotRequest.class, com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.DeleteSnapshotRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + snapshot_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + } + + public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.DeleteSnapshotRequest build() { + com.google.pubsub.v1.DeleteSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { + com.google.pubsub.v1.DeleteSnapshotRequest result = new com.google.pubsub.v1.DeleteSnapshotRequest(this); + result.snapshot_ = snapshot_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.DeleteSnapshotRequest) { + return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.DeleteSnapshotRequest other) { + if (other == com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance()) return this; + if (!other.getSnapshot().isEmpty()) { + snapshot_ = other.snapshot_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.DeleteSnapshotRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.DeleteSnapshotRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object snapshot_ = ""; + /** + *
+     * The name of the snapshot to delete.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string snapshot = 1; + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the snapshot to delete.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string snapshot = 1; + */ + public com.google.protobuf.ByteString + getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the snapshot to delete.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string snapshot = 1; + */ + public Builder setSnapshot( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + snapshot_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the snapshot to delete.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string snapshot = 1; + */ + public Builder clearSnapshot() { + + snapshot_ = getDefaultInstance().getSnapshot(); + onChanged(); + return this; + } + /** + *
+     * The name of the snapshot to delete.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string snapshot = 1; + */ + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + snapshot_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSnapshotRequest) + private static final com.google.pubsub.v1.DeleteSnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSnapshotRequest(); + } + + public static com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DeleteSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteSnapshotRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..43cd3ccb251d --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface DeleteSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the snapshot to delete.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1; + */ + java.lang.String getSnapshot(); + /** + *
+   * The name of the snapshot to delete.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1; + */ + com.google.protobuf.ByteString + getSnapshotBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java new file mode 100644 index 000000000000..67c8fe3977f4 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the DeleteSubscription method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.DeleteSubscriptionRequest} + */ +public final class DeleteSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSubscriptionRequest) + DeleteSubscriptionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteSubscriptionRequest.newBuilder() to construct. + private DeleteSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteSubscriptionRequest() { + subscription_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteSubscriptionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeleteSubscriptionRequest.class, com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); + } + + public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object subscription_; + /** + *
+   * The subscription to delete.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + *
+   * The subscription to delete.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSubscriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubscriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.DeleteSubscriptionRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.DeleteSubscriptionRequest other = (com.google.pubsub.v1.DeleteSubscriptionRequest) obj; + + boolean result = true; + result = result && getSubscription() + .equals(other.getSubscription()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.DeleteSubscriptionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the DeleteSubscription method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.DeleteSubscriptionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSubscriptionRequest) + com.google.pubsub.v1.DeleteSubscriptionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeleteSubscriptionRequest.class, com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.DeleteSubscriptionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subscription_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + } + + public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.DeleteSubscriptionRequest build() { + com.google.pubsub.v1.DeleteSubscriptionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { + com.google.pubsub.v1.DeleteSubscriptionRequest result = new com.google.pubsub.v1.DeleteSubscriptionRequest(this); + result.subscription_ = subscription_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.DeleteSubscriptionRequest) { + return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.DeleteSubscriptionRequest other) { + if (other == com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance()) return this; + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.DeleteSubscriptionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.DeleteSubscriptionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object subscription_ = ""; + /** + *
+     * The subscription to delete.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The subscription to delete.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The subscription to delete.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subscription_ = value; + onChanged(); + return this; + } + /** + *
+     * The subscription to delete.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder clearSubscription() { + + subscription_ = getDefaultInstance().getSubscription(); + onChanged(); + return this; + } + /** + *
+     * The subscription to delete.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subscription_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSubscriptionRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSubscriptionRequest) + private static final com.google.pubsub.v1.DeleteSubscriptionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSubscriptionRequest(); + } + + public static com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DeleteSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteSubscriptionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000000..c18217da235c --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface DeleteSubscriptionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The subscription to delete.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + java.lang.String getSubscription(); + /** + *
+   * The subscription to delete.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java new file mode 100644 index 000000000000..31e7001affad --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the `DeleteTopic` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.DeleteTopicRequest} + */ +public final class DeleteTopicRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteTopicRequest) + DeleteTopicRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteTopicRequest.newBuilder() to construct. + private DeleteTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteTopicRequest() { + topic_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteTopicRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeleteTopicRequest.class, com.google.pubsub.v1.DeleteTopicRequest.Builder.class); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + private volatile java.lang.Object topic_; + /** + *
+   * Name of the topic to delete.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + *
+   * Name of the topic to delete.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.DeleteTopicRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.DeleteTopicRequest other = (com.google.pubsub.v1.DeleteTopicRequest) obj; + + boolean result = true; + result = result && getTopic() + .equals(other.getTopic()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.DeleteTopicRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `DeleteTopic` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.DeleteTopicRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteTopicRequest) + com.google.pubsub.v1.DeleteTopicRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeleteTopicRequest.class, com.google.pubsub.v1.DeleteTopicRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.DeleteTopicRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + topic_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + } + + public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.DeleteTopicRequest build() { + com.google.pubsub.v1.DeleteTopicRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { + com.google.pubsub.v1.DeleteTopicRequest result = new com.google.pubsub.v1.DeleteTopicRequest(this); + result.topic_ = topic_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.DeleteTopicRequest) { + return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.DeleteTopicRequest other) { + if (other == com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.DeleteTopicRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.DeleteTopicRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object topic_ = ""; + /** + *
+     * Name of the topic to delete.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Name of the topic to delete.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Name of the topic to delete.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder setTopic( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + *
+     * Name of the topic to delete.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + *
+     * Name of the topic to delete.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteTopicRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteTopicRequest) + private static final com.google.pubsub.v1.DeleteTopicRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteTopicRequest(); + } + + public static com.google.pubsub.v1.DeleteTopicRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DeleteTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteTopicRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java new file mode 100644 index 000000000000..511474f7f1c2 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface DeleteTopicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Name of the topic to delete.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + java.lang.String getTopic(); + /** + *
+   * Name of the topic to delete.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + com.google.protobuf.ByteString + getTopicBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java new file mode 100644 index 000000000000..b8026eb550c2 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java @@ -0,0 +1,68 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.pubsub.v1; + +import com.google.api.resourcenames.ResourceName; +import com.google.api.resourcenames.ResourceNameType; +import com.google.common.collect.ImmutableMap; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class DeletedTopic extends TopicName { + + private static final String FIXED_VALUE = "_deleted-topic_"; + private static final Map valueMap = ImmutableMap.of("", FIXED_VALUE); + + private static final DeletedTopic instance = new DeletedTopic(); + + private DeletedTopic() {} + + public static DeletedTopic instance() { + return instance; + } + + public static boolean matches(String value) { + return FIXED_VALUE.equals(value); + } + + /** + * Return a map with a single value FIXED_VALUE keyed on an empty String "". + */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** + * Return the FIXED_VALUE if @param fieldName is an empty String "", else return null. + */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + /** + * @deprecated This method is only present to satisfy the ResourceName interface. + */ + @Deprecated + public ResourceNameType getType() { + throw new UnsupportedOperationException("DeletedTopic.getType() not supported"); + } + + @Override + public String toString() { + return FIXED_VALUE; + } +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java new file mode 100644 index 000000000000..37448712e4db --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the GetSubscription method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.GetSubscriptionRequest} + */ +public final class GetSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSubscriptionRequest) + GetSubscriptionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetSubscriptionRequest.newBuilder() to construct. + private GetSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetSubscriptionRequest() { + subscription_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetSubscriptionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.GetSubscriptionRequest.class, com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); + } + + public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object subscription_; + /** + *
+   * The name of the subscription to get.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + *
+   * The name of the subscription to get.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSubscriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubscriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.GetSubscriptionRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.GetSubscriptionRequest other = (com.google.pubsub.v1.GetSubscriptionRequest) obj; + + boolean result = true; + result = result && getSubscription() + .equals(other.getSubscription()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.GetSubscriptionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the GetSubscription method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.GetSubscriptionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSubscriptionRequest) + com.google.pubsub.v1.GetSubscriptionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.GetSubscriptionRequest.class, com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.GetSubscriptionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subscription_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + } + + public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.GetSubscriptionRequest build() { + com.google.pubsub.v1.GetSubscriptionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { + com.google.pubsub.v1.GetSubscriptionRequest result = new com.google.pubsub.v1.GetSubscriptionRequest(this); + result.subscription_ = subscription_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.GetSubscriptionRequest) { + return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.GetSubscriptionRequest other) { + if (other == com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance()) return this; + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.GetSubscriptionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.GetSubscriptionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object subscription_ = ""; + /** + *
+     * The name of the subscription to get.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the subscription to get.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the subscription to get.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subscription_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the subscription to get.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder clearSubscription() { + + subscription_ = getDefaultInstance().getSubscription(); + onChanged(); + return this; + } + /** + *
+     * The name of the subscription to get.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subscription_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSubscriptionRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSubscriptionRequest) + private static final com.google.pubsub.v1.GetSubscriptionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSubscriptionRequest(); + } + + public static com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public GetSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSubscriptionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000000..24432eba6b36 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface GetSubscriptionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the subscription to get.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + java.lang.String getSubscription(); + /** + *
+   * The name of the subscription to get.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java new file mode 100644 index 000000000000..ee0049e46ff7 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the GetTopic method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.GetTopicRequest} + */ +public final class GetTopicRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetTopicRequest) + GetTopicRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetTopicRequest.newBuilder() to construct. + private GetTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetTopicRequest() { + topic_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetTopicRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.GetTopicRequest.class, com.google.pubsub.v1.GetTopicRequest.Builder.class); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + private volatile java.lang.Object topic_; + /** + *
+   * The name of the topic to get.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + *
+   * The name of the topic to get.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.GetTopicRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.GetTopicRequest other = (com.google.pubsub.v1.GetTopicRequest) obj; + + boolean result = true; + result = result && getTopic() + .equals(other.getTopic()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.GetTopicRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.GetTopicRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.GetTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.GetTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.GetTopicRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.GetTopicRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.GetTopicRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the GetTopic method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.GetTopicRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetTopicRequest) + com.google.pubsub.v1.GetTopicRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.GetTopicRequest.class, com.google.pubsub.v1.GetTopicRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.GetTopicRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + topic_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + } + + public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.GetTopicRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.GetTopicRequest build() { + com.google.pubsub.v1.GetTopicRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.GetTopicRequest buildPartial() { + com.google.pubsub.v1.GetTopicRequest result = new com.google.pubsub.v1.GetTopicRequest(this); + result.topic_ = topic_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.GetTopicRequest) { + return mergeFrom((com.google.pubsub.v1.GetTopicRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.GetTopicRequest other) { + if (other == com.google.pubsub.v1.GetTopicRequest.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.GetTopicRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.GetTopicRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object topic_ = ""; + /** + *
+     * The name of the topic to get.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the topic to get.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the topic to get.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder setTopic( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the topic to get.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + *
+     * The name of the topic to get.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetTopicRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetTopicRequest) + private static final com.google.pubsub.v1.GetTopicRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.GetTopicRequest(); + } + + public static com.google.pubsub.v1.GetTopicRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public GetTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTopicRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java new file mode 100644 index 000000000000..05fb4515af6f --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface GetTopicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the topic to get.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + java.lang.String getTopic(); + /** + *
+   * The name of the topic to get.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + com.google.protobuf.ByteString + getTopicBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java new file mode 100644 index 000000000000..cdee470682ec --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -0,0 +1,802 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the `ListSnapshots` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} + */ +public final class ListSnapshotsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsRequest) + ListSnapshotsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSnapshotsRequest.newBuilder() to construct. + private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSnapshotsRequest() { + project_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListSnapshotsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSnapshotsRequest.class, com.google.pubsub.v1.ListSnapshotsRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+   * The name of the cloud project that snapshots belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+   * The name of the cloud project that snapshots belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * Maximum number of snapshots to return.
+   * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The value returned by the last `ListSnapshotsResponse`; indicates that this
+   * is a continuation of a prior `ListSnapshots` call, and that the system
+   * should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * The value returned by the last `ListSnapshotsResponse`; indicates that this
+   * is a continuation of a prior `ListSnapshots` call, and that the system
+   * should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListSnapshotsRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListSnapshotsRequest other = (com.google.pubsub.v1.ListSnapshotsRequest) obj; + + boolean result = true; + result = result && getProject() + .equals(other.getProject()); + result = result && (getPageSize() + == other.getPageSize()); + result = result && getPageToken() + .equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `ListSnapshots` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSnapshotsRequest) + com.google.pubsub.v1.ListSnapshotsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSnapshotsRequest.class, com.google.pubsub.v1.ListSnapshotsRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListSnapshotsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + project_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + } + + public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.ListSnapshotsRequest build() { + com.google.pubsub.v1.ListSnapshotsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { + com.google.pubsub.v1.ListSnapshotsRequest result = new com.google.pubsub.v1.ListSnapshotsRequest(this); + result.project_ = project_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListSnapshotsRequest) { + return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsRequest other) { + if (other == com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListSnapshotsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListSnapshotsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+     * The name of the cloud project that snapshots belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the cloud project that snapshots belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the cloud project that snapshots belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the cloud project that snapshots belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+     * The name of the cloud project that snapshots belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of snapshots to return.
+     * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of snapshots to return.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of snapshots to return.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The value returned by the last `ListSnapshotsResponse`; indicates that this
+     * is a continuation of a prior `ListSnapshots` call, and that the system
+     * should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The value returned by the last `ListSnapshotsResponse`; indicates that this
+     * is a continuation of a prior `ListSnapshots` call, and that the system
+     * should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The value returned by the last `ListSnapshotsResponse`; indicates that this
+     * is a continuation of a prior `ListSnapshots` call, and that the system
+     * should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * The value returned by the last `ListSnapshotsResponse`; indicates that this
+     * is a continuation of a prior `ListSnapshots` call, and that the system
+     * should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The value returned by the last `ListSnapshotsResponse`; indicates that this
+     * is a continuation of a prior `ListSnapshots` call, and that the system
+     * should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSnapshotsRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsRequest) + private static final com.google.pubsub.v1.ListSnapshotsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSnapshotsRequest(); + } + + public static com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListSnapshotsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSnapshotsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java new file mode 100644 index 000000000000..a1c61568c93e --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ListSnapshotsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the cloud project that snapshots belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+   * The name of the cloud project that snapshots belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+   * Maximum number of snapshots to return.
+   * 
+ * + * int32 page_size = 2; + */ + int getPageSize(); + + /** + *
+   * The value returned by the last `ListSnapshotsResponse`; indicates that this
+   * is a continuation of a prior `ListSnapshots` call, and that the system
+   * should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + java.lang.String getPageToken(); + /** + *
+   * The value returned by the last `ListSnapshotsResponse`; indicates that this
+   * is a continuation of a prior `ListSnapshots` call, and that the system
+   * should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java new file mode 100644 index 000000000000..3b313dfe5f30 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -0,0 +1,999 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Response for the `ListSnapshots` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} + */ +public final class ListSnapshotsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsResponse) + ListSnapshotsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSnapshotsResponse.newBuilder() to construct. + private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSnapshotsResponse() { + snapshots_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListSnapshotsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + snapshots_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + snapshots_.add( + input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + snapshots_ = java.util.Collections.unmodifiableList(snapshots_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSnapshotsResponse.class, com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); + } + + private int bitField0_; + public static final int SNAPSHOTS_FIELD_NUMBER = 1; + private java.util.List snapshots_; + /** + *
+   * The resulting snapshots.
+   * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public java.util.List getSnapshotsList() { + return snapshots_; + } + /** + *
+   * The resulting snapshots.
+   * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public java.util.List + getSnapshotsOrBuilderList() { + return snapshots_; + } + /** + *
+   * The resulting snapshots.
+   * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public int getSnapshotsCount() { + return snapshots_.size(); + } + /** + *
+   * The resulting snapshots.
+   * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public com.google.pubsub.v1.Snapshot getSnapshots(int index) { + return snapshots_.get(index); + } + /** + *
+   * The resulting snapshots.
+   * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index) { + return snapshots_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * If not empty, indicates that there may be more snapshot that match the
+   * request; this value should be passed in a new `ListSnapshotsRequest`.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * If not empty, indicates that there may be more snapshot that match the
+   * request; this value should be passed in a new `ListSnapshotsRequest`.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < snapshots_.size(); i++) { + output.writeMessage(1, snapshots_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < snapshots_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, snapshots_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListSnapshotsResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListSnapshotsResponse other = (com.google.pubsub.v1.ListSnapshotsResponse) obj; + + boolean result = true; + result = result && getSnapshotsList() + .equals(other.getSnapshotsList()); + result = result && getNextPageToken() + .equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSnapshotsCount() > 0) { + hash = (37 * hash) + SNAPSHOTS_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for the `ListSnapshots` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSnapshotsResponse) + com.google.pubsub.v1.ListSnapshotsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSnapshotsResponse.class, com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListSnapshotsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSnapshotsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (snapshotsBuilder_ == null) { + snapshots_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + snapshotsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + } + + public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance(); + } + + public com.google.pubsub.v1.ListSnapshotsResponse build() { + com.google.pubsub.v1.ListSnapshotsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { + com.google.pubsub.v1.ListSnapshotsResponse result = new com.google.pubsub.v1.ListSnapshotsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (snapshotsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + snapshots_ = java.util.Collections.unmodifiableList(snapshots_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.snapshots_ = snapshots_; + } else { + result.snapshots_ = snapshotsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListSnapshotsResponse) { + return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsResponse other) { + if (other == com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance()) return this; + if (snapshotsBuilder_ == null) { + if (!other.snapshots_.isEmpty()) { + if (snapshots_.isEmpty()) { + snapshots_ = other.snapshots_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSnapshotsIsMutable(); + snapshots_.addAll(other.snapshots_); + } + onChanged(); + } + } else { + if (!other.snapshots_.isEmpty()) { + if (snapshotsBuilder_.isEmpty()) { + snapshotsBuilder_.dispose(); + snapshotsBuilder_ = null; + snapshots_ = other.snapshots_; + bitField0_ = (bitField0_ & ~0x00000001); + snapshotsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSnapshotsFieldBuilder() : null; + } else { + snapshotsBuilder_.addAllMessages(other.snapshots_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListSnapshotsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListSnapshotsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List snapshots_ = + java.util.Collections.emptyList(); + private void ensureSnapshotsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + snapshots_ = new java.util.ArrayList(snapshots_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotsBuilder_; + + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public java.util.List getSnapshotsList() { + if (snapshotsBuilder_ == null) { + return java.util.Collections.unmodifiableList(snapshots_); + } else { + return snapshotsBuilder_.getMessageList(); + } + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public int getSnapshotsCount() { + if (snapshotsBuilder_ == null) { + return snapshots_.size(); + } else { + return snapshotsBuilder_.getCount(); + } + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public com.google.pubsub.v1.Snapshot getSnapshots(int index) { + if (snapshotsBuilder_ == null) { + return snapshots_.get(index); + } else { + return snapshotsBuilder_.getMessage(index); + } + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public Builder setSnapshots( + int index, com.google.pubsub.v1.Snapshot value) { + if (snapshotsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); + snapshots_.set(index, value); + onChanged(); + } else { + snapshotsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public Builder setSnapshots( + int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.set(index, builderForValue.build()); + onChanged(); + } else { + snapshotsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { + if (snapshotsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); + snapshots_.add(value); + onChanged(); + } else { + snapshotsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public Builder addSnapshots( + int index, com.google.pubsub.v1.Snapshot value) { + if (snapshotsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); + snapshots_.add(index, value); + onChanged(); + } else { + snapshotsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public Builder addSnapshots( + com.google.pubsub.v1.Snapshot.Builder builderForValue) { + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.add(builderForValue.build()); + onChanged(); + } else { + snapshotsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public Builder addSnapshots( + int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.add(index, builderForValue.build()); + onChanged(); + } else { + snapshotsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public Builder addAllSnapshots( + java.lang.Iterable values) { + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, snapshots_); + onChanged(); + } else { + snapshotsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public Builder clearSnapshots() { + if (snapshotsBuilder_ == null) { + snapshots_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + snapshotsBuilder_.clear(); + } + return this; + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public Builder removeSnapshots(int index) { + if (snapshotsBuilder_ == null) { + ensureSnapshotsIsMutable(); + snapshots_.remove(index); + onChanged(); + } else { + snapshotsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder( + int index) { + return getSnapshotsFieldBuilder().getBuilder(index); + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index) { + if (snapshotsBuilder_ == null) { + return snapshots_.get(index); } else { + return snapshotsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public java.util.List + getSnapshotsOrBuilderList() { + if (snapshotsBuilder_ != null) { + return snapshotsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(snapshots_); + } + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { + return getSnapshotsFieldBuilder().addBuilder( + com.google.pubsub.v1.Snapshot.getDefaultInstance()); + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder( + int index) { + return getSnapshotsFieldBuilder().addBuilder( + index, com.google.pubsub.v1.Snapshot.getDefaultInstance()); + } + /** + *
+     * The resulting snapshots.
+     * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + public java.util.List + getSnapshotsBuilderList() { + return getSnapshotsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> + getSnapshotsFieldBuilder() { + if (snapshotsBuilder_ == null) { + snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( + snapshots_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + snapshots_ = null; + } + return snapshotsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * If not empty, indicates that there may be more snapshot that match the
+     * request; this value should be passed in a new `ListSnapshotsRequest`.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If not empty, indicates that there may be more snapshot that match the
+     * request; this value should be passed in a new `ListSnapshotsRequest`.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If not empty, indicates that there may be more snapshot that match the
+     * request; this value should be passed in a new `ListSnapshotsRequest`.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * If not empty, indicates that there may be more snapshot that match the
+     * request; this value should be passed in a new `ListSnapshotsRequest`.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * If not empty, indicates that there may be more snapshot that match the
+     * request; this value should be passed in a new `ListSnapshotsRequest`.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSnapshotsResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsResponse) + private static final com.google.pubsub.v1.ListSnapshotsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSnapshotsResponse(); + } + + public static com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListSnapshotsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSnapshotsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java new file mode 100644 index 000000000000..14850ca689e6 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ListSnapshotsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resulting snapshots.
+   * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + java.util.List + getSnapshotsList(); + /** + *
+   * The resulting snapshots.
+   * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + com.google.pubsub.v1.Snapshot getSnapshots(int index); + /** + *
+   * The resulting snapshots.
+   * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + int getSnapshotsCount(); + /** + *
+   * The resulting snapshots.
+   * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + java.util.List + getSnapshotsOrBuilderList(); + /** + *
+   * The resulting snapshots.
+   * 
+ * + * repeated .google.pubsub.v1.Snapshot snapshots = 1; + */ + com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( + int index); + + /** + *
+   * If not empty, indicates that there may be more snapshot that match the
+   * request; this value should be passed in a new `ListSnapshotsRequest`.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + *
+   * If not empty, indicates that there may be more snapshot that match the
+   * request; this value should be passed in a new `ListSnapshotsRequest`.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java new file mode 100644 index 000000000000..006c976c8b4c --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -0,0 +1,802 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the `ListSubscriptions` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ListSubscriptionsRequest} + */ +public final class ListSubscriptionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsRequest) + ListSubscriptionsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSubscriptionsRequest.newBuilder() to construct. + private ListSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSubscriptionsRequest() { + project_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListSubscriptionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSubscriptionsRequest.class, com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+   * The name of the cloud project that subscriptions belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+   * The name of the cloud project that subscriptions belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * Maximum number of subscriptions to return.
+   * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The value returned by the last `ListSubscriptionsResponse`; indicates that
+   * this is a continuation of a prior `ListSubscriptions` call, and that the
+   * system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * The value returned by the last `ListSubscriptionsResponse`; indicates that
+   * this is a continuation of a prior `ListSubscriptions` call, and that the
+   * system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListSubscriptionsRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListSubscriptionsRequest other = (com.google.pubsub.v1.ListSubscriptionsRequest) obj; + + boolean result = true; + result = result && getProject() + .equals(other.getProject()); + result = result && (getPageSize() + == other.getPageSize()); + result = result && getPageToken() + .equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `ListSubscriptions` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ListSubscriptionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSubscriptionsRequest) + com.google.pubsub.v1.ListSubscriptionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSubscriptionsRequest.class, com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListSubscriptionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + project_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + } + + public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.ListSubscriptionsRequest build() { + com.google.pubsub.v1.ListSubscriptionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { + com.google.pubsub.v1.ListSubscriptionsRequest result = new com.google.pubsub.v1.ListSubscriptionsRequest(this); + result.project_ = project_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListSubscriptionsRequest) { + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsRequest other) { + if (other == com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListSubscriptionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListSubscriptionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+     * The name of the cloud project that subscriptions belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the cloud project that subscriptions belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the cloud project that subscriptions belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the cloud project that subscriptions belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+     * The name of the cloud project that subscriptions belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of subscriptions to return.
+     * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of subscriptions to return.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of subscriptions to return.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The value returned by the last `ListSubscriptionsResponse`; indicates that
+     * this is a continuation of a prior `ListSubscriptions` call, and that the
+     * system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The value returned by the last `ListSubscriptionsResponse`; indicates that
+     * this is a continuation of a prior `ListSubscriptions` call, and that the
+     * system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The value returned by the last `ListSubscriptionsResponse`; indicates that
+     * this is a continuation of a prior `ListSubscriptions` call, and that the
+     * system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * The value returned by the last `ListSubscriptionsResponse`; indicates that
+     * this is a continuation of a prior `ListSubscriptions` call, and that the
+     * system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The value returned by the last `ListSubscriptionsResponse`; indicates that
+     * this is a continuation of a prior `ListSubscriptions` call, and that the
+     * system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSubscriptionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsRequest) + private static final com.google.pubsub.v1.ListSubscriptionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSubscriptionsRequest(); + } + + public static com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListSubscriptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSubscriptionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java new file mode 100644 index 000000000000..a527b79c0f1a --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ListSubscriptionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSubscriptionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the cloud project that subscriptions belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+   * The name of the cloud project that subscriptions belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+   * Maximum number of subscriptions to return.
+   * 
+ * + * int32 page_size = 2; + */ + int getPageSize(); + + /** + *
+   * The value returned by the last `ListSubscriptionsResponse`; indicates that
+   * this is a continuation of a prior `ListSubscriptions` call, and that the
+   * system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + java.lang.String getPageToken(); + /** + *
+   * The value returned by the last `ListSubscriptionsResponse`; indicates that
+   * this is a continuation of a prior `ListSubscriptions` call, and that the
+   * system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java new file mode 100644 index 000000000000..504ee6f7c8a3 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -0,0 +1,1006 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Response for the `ListSubscriptions` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ListSubscriptionsResponse} + */ +public final class ListSubscriptionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsResponse) + ListSubscriptionsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListSubscriptionsResponse.newBuilder() to construct. + private ListSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListSubscriptionsResponse() { + subscriptions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListSubscriptionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + subscriptions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subscriptions_.add( + input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSubscriptionsResponse.class, com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); + } + + private int bitField0_; + public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; + private java.util.List subscriptions_; + /** + *
+   * The subscriptions that match the request.
+   * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public java.util.List getSubscriptionsList() { + return subscriptions_; + } + /** + *
+   * The subscriptions that match the request.
+   * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public java.util.List + getSubscriptionsOrBuilderList() { + return subscriptions_; + } + /** + *
+   * The subscriptions that match the request.
+   * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public int getSubscriptionsCount() { + return subscriptions_.size(); + } + /** + *
+   * The subscriptions that match the request.
+   * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public com.google.pubsub.v1.Subscription getSubscriptions(int index) { + return subscriptions_.get(index); + } + /** + *
+   * The subscriptions that match the request.
+   * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( + int index) { + return subscriptions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * If not empty, indicates that there may be more subscriptions that match
+   * the request; this value should be passed in a new
+   * `ListSubscriptionsRequest` to get more subscriptions.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * If not empty, indicates that there may be more subscriptions that match
+   * the request; this value should be passed in a new
+   * `ListSubscriptionsRequest` to get more subscriptions.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < subscriptions_.size(); i++) { + output.writeMessage(1, subscriptions_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < subscriptions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, subscriptions_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListSubscriptionsResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListSubscriptionsResponse other = (com.google.pubsub.v1.ListSubscriptionsResponse) obj; + + boolean result = true; + result = result && getSubscriptionsList() + .equals(other.getSubscriptionsList()); + result = result && getNextPageToken() + .equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubscriptionsCount() > 0) { + hash = (37 * hash) + SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSubscriptionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for the `ListSubscriptions` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ListSubscriptionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSubscriptionsResponse) + com.google.pubsub.v1.ListSubscriptionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSubscriptionsResponse.class, com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListSubscriptionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubscriptionsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (subscriptionsBuilder_ == null) { + subscriptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + subscriptionsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + } + + public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance(); + } + + public com.google.pubsub.v1.ListSubscriptionsResponse build() { + com.google.pubsub.v1.ListSubscriptionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { + com.google.pubsub.v1.ListSubscriptionsResponse result = new com.google.pubsub.v1.ListSubscriptionsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (subscriptionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subscriptions_ = subscriptions_; + } else { + result.subscriptions_ = subscriptionsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListSubscriptionsResponse) { + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsResponse other) { + if (other == com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance()) return this; + if (subscriptionsBuilder_ == null) { + if (!other.subscriptions_.isEmpty()) { + if (subscriptions_.isEmpty()) { + subscriptions_ = other.subscriptions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubscriptionsIsMutable(); + subscriptions_.addAll(other.subscriptions_); + } + onChanged(); + } + } else { + if (!other.subscriptions_.isEmpty()) { + if (subscriptionsBuilder_.isEmpty()) { + subscriptionsBuilder_.dispose(); + subscriptionsBuilder_ = null; + subscriptions_ = other.subscriptions_; + bitField0_ = (bitField0_ & ~0x00000001); + subscriptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubscriptionsFieldBuilder() : null; + } else { + subscriptionsBuilder_.addAllMessages(other.subscriptions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListSubscriptionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListSubscriptionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List subscriptions_ = + java.util.Collections.emptyList(); + private void ensureSubscriptionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + subscriptions_ = new java.util.ArrayList(subscriptions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> subscriptionsBuilder_; + + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public java.util.List getSubscriptionsList() { + if (subscriptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subscriptions_); + } else { + return subscriptionsBuilder_.getMessageList(); + } + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public int getSubscriptionsCount() { + if (subscriptionsBuilder_ == null) { + return subscriptions_.size(); + } else { + return subscriptionsBuilder_.getCount(); + } + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public com.google.pubsub.v1.Subscription getSubscriptions(int index) { + if (subscriptionsBuilder_ == null) { + return subscriptions_.get(index); + } else { + return subscriptionsBuilder_.getMessage(index); + } + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public Builder setSubscriptions( + int index, com.google.pubsub.v1.Subscription value) { + if (subscriptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); + subscriptions_.set(index, value); + onChanged(); + } else { + subscriptionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public Builder setSubscriptions( + int index, com.google.pubsub.v1.Subscription.Builder builderForValue) { + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + subscriptions_.set(index, builderForValue.build()); + onChanged(); + } else { + subscriptionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { + if (subscriptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); + subscriptions_.add(value); + onChanged(); + } else { + subscriptionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public Builder addSubscriptions( + int index, com.google.pubsub.v1.Subscription value) { + if (subscriptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); + subscriptions_.add(index, value); + onChanged(); + } else { + subscriptionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public Builder addSubscriptions( + com.google.pubsub.v1.Subscription.Builder builderForValue) { + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + subscriptions_.add(builderForValue.build()); + onChanged(); + } else { + subscriptionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public Builder addSubscriptions( + int index, com.google.pubsub.v1.Subscription.Builder builderForValue) { + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + subscriptions_.add(index, builderForValue.build()); + onChanged(); + } else { + subscriptionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public Builder addAllSubscriptions( + java.lang.Iterable values) { + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subscriptions_); + onChanged(); + } else { + subscriptionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public Builder clearSubscriptions() { + if (subscriptionsBuilder_ == null) { + subscriptions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + subscriptionsBuilder_.clear(); + } + return this; + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public Builder removeSubscriptions(int index) { + if (subscriptionsBuilder_ == null) { + ensureSubscriptionsIsMutable(); + subscriptions_.remove(index); + onChanged(); + } else { + subscriptionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder( + int index) { + return getSubscriptionsFieldBuilder().getBuilder(index); + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( + int index) { + if (subscriptionsBuilder_ == null) { + return subscriptions_.get(index); } else { + return subscriptionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public java.util.List + getSubscriptionsOrBuilderList() { + if (subscriptionsBuilder_ != null) { + return subscriptionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subscriptions_); + } + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { + return getSubscriptionsFieldBuilder().addBuilder( + com.google.pubsub.v1.Subscription.getDefaultInstance()); + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder( + int index) { + return getSubscriptionsFieldBuilder().addBuilder( + index, com.google.pubsub.v1.Subscription.getDefaultInstance()); + } + /** + *
+     * The subscriptions that match the request.
+     * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + public java.util.List + getSubscriptionsBuilderList() { + return getSubscriptionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> + getSubscriptionsFieldBuilder() { + if (subscriptionsBuilder_ == null) { + subscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( + subscriptions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + subscriptions_ = null; + } + return subscriptionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * If not empty, indicates that there may be more subscriptions that match
+     * the request; this value should be passed in a new
+     * `ListSubscriptionsRequest` to get more subscriptions.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If not empty, indicates that there may be more subscriptions that match
+     * the request; this value should be passed in a new
+     * `ListSubscriptionsRequest` to get more subscriptions.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If not empty, indicates that there may be more subscriptions that match
+     * the request; this value should be passed in a new
+     * `ListSubscriptionsRequest` to get more subscriptions.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * If not empty, indicates that there may be more subscriptions that match
+     * the request; this value should be passed in a new
+     * `ListSubscriptionsRequest` to get more subscriptions.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * If not empty, indicates that there may be more subscriptions that match
+     * the request; this value should be passed in a new
+     * `ListSubscriptionsRequest` to get more subscriptions.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSubscriptionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsResponse) + private static final com.google.pubsub.v1.ListSubscriptionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSubscriptionsResponse(); + } + + public static com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListSubscriptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSubscriptionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java new file mode 100644 index 000000000000..decc608e932f --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ListSubscriptionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSubscriptionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The subscriptions that match the request.
+   * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + java.util.List + getSubscriptionsList(); + /** + *
+   * The subscriptions that match the request.
+   * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + com.google.pubsub.v1.Subscription getSubscriptions(int index); + /** + *
+   * The subscriptions that match the request.
+   * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + int getSubscriptionsCount(); + /** + *
+   * The subscriptions that match the request.
+   * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + java.util.List + getSubscriptionsOrBuilderList(); + /** + *
+   * The subscriptions that match the request.
+   * 
+ * + * repeated .google.pubsub.v1.Subscription subscriptions = 1; + */ + com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( + int index); + + /** + *
+   * If not empty, indicates that there may be more subscriptions that match
+   * the request; this value should be passed in a new
+   * `ListSubscriptionsRequest` to get more subscriptions.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + *
+   * If not empty, indicates that there may be more subscriptions that match
+   * the request; this value should be passed in a new
+   * `ListSubscriptionsRequest` to get more subscriptions.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java new file mode 100644 index 000000000000..ad2c68df8b0a --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -0,0 +1,802 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the `ListTopicSubscriptions` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsRequest} + */ +public final class ListTopicSubscriptionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsRequest) + ListTopicSubscriptionsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListTopicSubscriptionsRequest.newBuilder() to construct. + private ListTopicSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTopicSubscriptionsRequest() { + topic_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListTopicSubscriptionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + private volatile java.lang.Object topic_; + /** + *
+   * The name of the topic that subscriptions are attached to.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + *
+   * The name of the topic that subscriptions are attached to.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * Maximum number of subscription names to return.
+   * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
+   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
+   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListTopicSubscriptionsRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListTopicSubscriptionsRequest other = (com.google.pubsub.v1.ListTopicSubscriptionsRequest) obj; + + boolean result = true; + result = result && getTopic() + .equals(other.getTopic()); + result = result && (getPageSize() + == other.getPageSize()); + result = result && getPageToken() + .equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `ListTopicSubscriptions` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSubscriptionsRequest) + com.google.pubsub.v1.ListTopicSubscriptionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListTopicSubscriptionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + topic_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + } + + public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { + com.google.pubsub.v1.ListTopicSubscriptionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { + com.google.pubsub.v1.ListTopicSubscriptionsRequest result = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); + result.topic_ = topic_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsRequest) { + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsRequest other) { + if (other == com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListTopicSubscriptionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListTopicSubscriptionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object topic_ = ""; + /** + *
+     * The name of the topic that subscriptions are attached to.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the topic that subscriptions are attached to.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the topic that subscriptions are attached to.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder setTopic( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the topic that subscriptions are attached to.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + *
+     * The name of the topic that subscriptions are attached to.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of subscription names to return.
+     * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of subscription names to return.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of subscription names to return.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
+     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
+     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
+     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
+     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
+     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSubscriptionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsRequest) + private static final com.google.pubsub.v1.ListTopicSubscriptionsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(); + } + + public static com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListTopicSubscriptionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTopicSubscriptionsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java new file mode 100644 index 000000000000..9debee6dd6e5 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ListTopicSubscriptionsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSubscriptionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the topic that subscriptions are attached to.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + java.lang.String getTopic(); + /** + *
+   * The name of the topic that subscriptions are attached to.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+   * Maximum number of subscription names to return.
+   * 
+ * + * int32 page_size = 2; + */ + int getPageSize(); + + /** + *
+   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
+   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + java.lang.String getPageToken(); + /** + *
+   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
+   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java new file mode 100644 index 000000000000..b4065286bf25 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -0,0 +1,793 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Response for the `ListTopicSubscriptions` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsResponse} + */ +public final class ListTopicSubscriptionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsResponse) + ListTopicSubscriptionsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListTopicSubscriptionsResponse.newBuilder() to construct. + private ListTopicSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTopicSubscriptionsResponse() { + subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListTopicSubscriptionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + subscriptions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subscriptions_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + subscriptions_ = subscriptions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); + } + + private int bitField0_; + public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList subscriptions_; + /** + *
+   * The names of the subscriptions that match the request.
+   * 
+ * + * repeated string subscriptions = 1; + */ + public com.google.protobuf.ProtocolStringList + getSubscriptionsList() { + return subscriptions_; + } + /** + *
+   * The names of the subscriptions that match the request.
+   * 
+ * + * repeated string subscriptions = 1; + */ + public int getSubscriptionsCount() { + return subscriptions_.size(); + } + /** + *
+   * The names of the subscriptions that match the request.
+   * 
+ * + * repeated string subscriptions = 1; + */ + public java.lang.String getSubscriptions(int index) { + return subscriptions_.get(index); + } + /** + *
+   * The names of the subscriptions that match the request.
+   * 
+ * + * repeated string subscriptions = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionsBytes(int index) { + return subscriptions_.getByteString(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * If not empty, indicates that there may be more subscriptions that match
+   * the request; this value should be passed in a new
+   * `ListTopicSubscriptionsRequest` to get more subscriptions.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * If not empty, indicates that there may be more subscriptions that match
+   * the request; this value should be passed in a new
+   * `ListTopicSubscriptionsRequest` to get more subscriptions.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < subscriptions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscriptions_.getRaw(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < subscriptions_.size(); i++) { + dataSize += computeStringSizeNoTag(subscriptions_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubscriptionsList().size(); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListTopicSubscriptionsResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListTopicSubscriptionsResponse other = (com.google.pubsub.v1.ListTopicSubscriptionsResponse) obj; + + boolean result = true; + result = result && getSubscriptionsList() + .equals(other.getSubscriptionsList()); + result = result && getNextPageToken() + .equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubscriptionsCount() > 0) { + hash = (37 * hash) + SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSubscriptionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for the `ListTopicSubscriptions` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSubscriptionsResponse) + com.google.pubsub.v1.ListTopicSubscriptionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListTopicSubscriptionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + } + + public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance(); + } + + public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { + com.google.pubsub.v1.ListTopicSubscriptionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { + com.google.pubsub.v1.ListTopicSubscriptionsResponse result = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subscriptions_ = subscriptions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subscriptions_ = subscriptions_; + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsResponse) { + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsResponse other) { + if (other == com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance()) return this; + if (!other.subscriptions_.isEmpty()) { + if (subscriptions_.isEmpty()) { + subscriptions_ = other.subscriptions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubscriptionsIsMutable(); + subscriptions_.addAll(other.subscriptions_); + } + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListTopicSubscriptionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListTopicSubscriptionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSubscriptionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * The names of the subscriptions that match the request.
+     * 
+ * + * repeated string subscriptions = 1; + */ + public com.google.protobuf.ProtocolStringList + getSubscriptionsList() { + return subscriptions_.getUnmodifiableView(); + } + /** + *
+     * The names of the subscriptions that match the request.
+     * 
+ * + * repeated string subscriptions = 1; + */ + public int getSubscriptionsCount() { + return subscriptions_.size(); + } + /** + *
+     * The names of the subscriptions that match the request.
+     * 
+ * + * repeated string subscriptions = 1; + */ + public java.lang.String getSubscriptions(int index) { + return subscriptions_.get(index); + } + /** + *
+     * The names of the subscriptions that match the request.
+     * 
+ * + * repeated string subscriptions = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionsBytes(int index) { + return subscriptions_.getByteString(index); + } + /** + *
+     * The names of the subscriptions that match the request.
+     * 
+ * + * repeated string subscriptions = 1; + */ + public Builder setSubscriptions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); + subscriptions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The names of the subscriptions that match the request.
+     * 
+ * + * repeated string subscriptions = 1; + */ + public Builder addSubscriptions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); + subscriptions_.add(value); + onChanged(); + return this; + } + /** + *
+     * The names of the subscriptions that match the request.
+     * 
+ * + * repeated string subscriptions = 1; + */ + public Builder addAllSubscriptions( + java.lang.Iterable values) { + ensureSubscriptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subscriptions_); + onChanged(); + return this; + } + /** + *
+     * The names of the subscriptions that match the request.
+     * 
+ * + * repeated string subscriptions = 1; + */ + public Builder clearSubscriptions() { + subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The names of the subscriptions that match the request.
+     * 
+ * + * repeated string subscriptions = 1; + */ + public Builder addSubscriptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubscriptionsIsMutable(); + subscriptions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * If not empty, indicates that there may be more subscriptions that match
+     * the request; this value should be passed in a new
+     * `ListTopicSubscriptionsRequest` to get more subscriptions.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If not empty, indicates that there may be more subscriptions that match
+     * the request; this value should be passed in a new
+     * `ListTopicSubscriptionsRequest` to get more subscriptions.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If not empty, indicates that there may be more subscriptions that match
+     * the request; this value should be passed in a new
+     * `ListTopicSubscriptionsRequest` to get more subscriptions.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * If not empty, indicates that there may be more subscriptions that match
+     * the request; this value should be passed in a new
+     * `ListTopicSubscriptionsRequest` to get more subscriptions.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * If not empty, indicates that there may be more subscriptions that match
+     * the request; this value should be passed in a new
+     * `ListTopicSubscriptionsRequest` to get more subscriptions.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSubscriptionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsResponse) + private static final com.google.pubsub.v1.ListTopicSubscriptionsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(); + } + + public static com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListTopicSubscriptionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTopicSubscriptionsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java new file mode 100644 index 000000000000..754c921ebd96 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ListTopicSubscriptionsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSubscriptionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The names of the subscriptions that match the request.
+   * 
+ * + * repeated string subscriptions = 1; + */ + java.util.List + getSubscriptionsList(); + /** + *
+   * The names of the subscriptions that match the request.
+   * 
+ * + * repeated string subscriptions = 1; + */ + int getSubscriptionsCount(); + /** + *
+   * The names of the subscriptions that match the request.
+   * 
+ * + * repeated string subscriptions = 1; + */ + java.lang.String getSubscriptions(int index); + /** + *
+   * The names of the subscriptions that match the request.
+   * 
+ * + * repeated string subscriptions = 1; + */ + com.google.protobuf.ByteString + getSubscriptionsBytes(int index); + + /** + *
+   * If not empty, indicates that there may be more subscriptions that match
+   * the request; this value should be passed in a new
+   * `ListTopicSubscriptionsRequest` to get more subscriptions.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + *
+   * If not empty, indicates that there may be more subscriptions that match
+   * the request; this value should be passed in a new
+   * `ListTopicSubscriptionsRequest` to get more subscriptions.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java new file mode 100644 index 000000000000..3d3f28c59587 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -0,0 +1,802 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the `ListTopics` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicsRequest} + */ +public final class ListTopicsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsRequest) + ListTopicsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListTopicsRequest.newBuilder() to construct. + private ListTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTopicsRequest() { + project_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListTopicsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicsRequest.class, com.google.pubsub.v1.ListTopicsRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + private volatile java.lang.Object project_; + /** + *
+   * The name of the cloud project that topics belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + *
+   * The name of the cloud project that topics belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * Maximum number of topics to return.
+   * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * 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.
+   * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * 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.
+   * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getProjectBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getProjectBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListTopicsRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListTopicsRequest other = (com.google.pubsub.v1.ListTopicsRequest) obj; + + boolean result = true; + result = result && getProject() + .equals(other.getProject()); + result = result && (getPageSize() + == other.getPageSize()); + result = result && getPageToken() + .equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `ListTopics` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicsRequest) + com.google.pubsub.v1.ListTopicsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicsRequest.class, com.google.pubsub.v1.ListTopicsRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListTopicsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + project_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + } + + public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.ListTopicsRequest build() { + com.google.pubsub.v1.ListTopicsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ListTopicsRequest buildPartial() { + com.google.pubsub.v1.ListTopicsRequest result = new com.google.pubsub.v1.ListTopicsRequest(this); + result.project_ = project_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListTopicsRequest) { + return mergeFrom((com.google.pubsub.v1.ListTopicsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListTopicsRequest other) { + if (other == com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance()) return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListTopicsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListTopicsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object project_ = ""; + /** + *
+     * The name of the cloud project that topics belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the cloud project that topics belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public com.google.protobuf.ByteString + getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the cloud project that topics belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public Builder setProject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + project_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the cloud project that topics belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public Builder clearProject() { + + project_ = getDefaultInstance().getProject(); + onChanged(); + return this; + } + /** + *
+     * The name of the cloud project that topics belong to.
+     * Format is `projects/{project}`.
+     * 
+ * + * string project = 1; + */ + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + project_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of topics to return.
+     * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of topics to return.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of topics to return.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * 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.
+     * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string page_token = 3; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicsRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsRequest) + private static final com.google.pubsub.v1.ListTopicsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicsRequest(); + } + + public static com.google.pubsub.v1.ListTopicsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListTopicsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTopicsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java new file mode 100644 index 000000000000..b7d977ad9a83 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ListTopicsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the cloud project that topics belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + java.lang.String getProject(); + /** + *
+   * The name of the cloud project that topics belong to.
+   * Format is `projects/{project}`.
+   * 
+ * + * string project = 1; + */ + com.google.protobuf.ByteString + getProjectBytes(); + + /** + *
+   * Maximum number of topics to return.
+   * 
+ * + * int32 page_size = 2; + */ + int getPageSize(); + + /** + *
+   * 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.
+   * 
+ * + * string page_token = 3; + */ + java.lang.String getPageToken(); + /** + *
+   * 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.
+   * 
+ * + * string page_token = 3; + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java new file mode 100644 index 000000000000..e0666d18ae08 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -0,0 +1,999 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Response for the `ListTopics` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicsResponse} + */ +public final class ListTopicsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsResponse) + ListTopicsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListTopicsResponse.newBuilder() to construct. + private ListTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTopicsResponse() { + topics_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListTopicsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + topics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + topics_.add( + input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + topics_ = java.util.Collections.unmodifiableList(topics_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicsResponse.class, com.google.pubsub.v1.ListTopicsResponse.Builder.class); + } + + private int bitField0_; + public static final int TOPICS_FIELD_NUMBER = 1; + private java.util.List topics_; + /** + *
+   * The resulting topics.
+   * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public java.util.List getTopicsList() { + return topics_; + } + /** + *
+   * The resulting topics.
+   * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public java.util.List + getTopicsOrBuilderList() { + return topics_; + } + /** + *
+   * The resulting topics.
+   * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public int getTopicsCount() { + return topics_.size(); + } + /** + *
+   * The resulting topics.
+   * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public com.google.pubsub.v1.Topic getTopics(int index) { + return topics_.get(index); + } + /** + *
+   * The resulting topics.
+   * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( + int index) { + return topics_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * If not empty, indicates that there may be more topics that match the
+   * request; this value should be passed in a new `ListTopicsRequest`.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * If not empty, indicates that there may be more topics that match the
+   * request; this value should be passed in a new `ListTopicsRequest`.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < topics_.size(); i++) { + output.writeMessage(1, topics_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < topics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, topics_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListTopicsResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListTopicsResponse other = (com.google.pubsub.v1.ListTopicsResponse) obj; + + boolean result = true; + result = result && getTopicsList() + .equals(other.getTopicsList()); + result = result && getNextPageToken() + .equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTopicsCount() > 0) { + hash = (37 * hash) + TOPICS_FIELD_NUMBER; + hash = (53 * hash) + getTopicsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for the `ListTopics` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicsResponse) + com.google.pubsub.v1.ListTopicsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicsResponse.class, com.google.pubsub.v1.ListTopicsResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListTopicsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTopicsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (topicsBuilder_ == null) { + topics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + topicsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + } + + public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance(); + } + + public com.google.pubsub.v1.ListTopicsResponse build() { + com.google.pubsub.v1.ListTopicsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ListTopicsResponse buildPartial() { + com.google.pubsub.v1.ListTopicsResponse result = new com.google.pubsub.v1.ListTopicsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (topicsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + topics_ = java.util.Collections.unmodifiableList(topics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.topics_ = topics_; + } else { + result.topics_ = topicsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListTopicsResponse) { + return mergeFrom((com.google.pubsub.v1.ListTopicsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListTopicsResponse other) { + if (other == com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance()) return this; + if (topicsBuilder_ == null) { + if (!other.topics_.isEmpty()) { + if (topics_.isEmpty()) { + topics_ = other.topics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTopicsIsMutable(); + topics_.addAll(other.topics_); + } + onChanged(); + } + } else { + if (!other.topics_.isEmpty()) { + if (topicsBuilder_.isEmpty()) { + topicsBuilder_.dispose(); + topicsBuilder_ = null; + topics_ = other.topics_; + bitField0_ = (bitField0_ & ~0x00000001); + topicsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTopicsFieldBuilder() : null; + } else { + topicsBuilder_.addAllMessages(other.topics_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListTopicsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListTopicsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List topics_ = + java.util.Collections.emptyList(); + private void ensureTopicsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + topics_ = new java.util.ArrayList(topics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicsBuilder_; + + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public java.util.List getTopicsList() { + if (topicsBuilder_ == null) { + return java.util.Collections.unmodifiableList(topics_); + } else { + return topicsBuilder_.getMessageList(); + } + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public int getTopicsCount() { + if (topicsBuilder_ == null) { + return topics_.size(); + } else { + return topicsBuilder_.getCount(); + } + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public com.google.pubsub.v1.Topic getTopics(int index) { + if (topicsBuilder_ == null) { + return topics_.get(index); + } else { + return topicsBuilder_.getMessage(index); + } + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public Builder setTopics( + int index, com.google.pubsub.v1.Topic value) { + if (topicsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.set(index, value); + onChanged(); + } else { + topicsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public Builder setTopics( + int index, com.google.pubsub.v1.Topic.Builder builderForValue) { + if (topicsBuilder_ == null) { + ensureTopicsIsMutable(); + topics_.set(index, builderForValue.build()); + onChanged(); + } else { + topicsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public Builder addTopics(com.google.pubsub.v1.Topic value) { + if (topicsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.add(value); + onChanged(); + } else { + topicsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public Builder addTopics( + int index, com.google.pubsub.v1.Topic value) { + if (topicsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopicsIsMutable(); + topics_.add(index, value); + onChanged(); + } else { + topicsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public Builder addTopics( + com.google.pubsub.v1.Topic.Builder builderForValue) { + if (topicsBuilder_ == null) { + ensureTopicsIsMutable(); + topics_.add(builderForValue.build()); + onChanged(); + } else { + topicsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public Builder addTopics( + int index, com.google.pubsub.v1.Topic.Builder builderForValue) { + if (topicsBuilder_ == null) { + ensureTopicsIsMutable(); + topics_.add(index, builderForValue.build()); + onChanged(); + } else { + topicsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public Builder addAllTopics( + java.lang.Iterable values) { + if (topicsBuilder_ == null) { + ensureTopicsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topics_); + onChanged(); + } else { + topicsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public Builder clearTopics() { + if (topicsBuilder_ == null) { + topics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + topicsBuilder_.clear(); + } + return this; + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public Builder removeTopics(int index) { + if (topicsBuilder_ == null) { + ensureTopicsIsMutable(); + topics_.remove(index); + onChanged(); + } else { + topicsBuilder_.remove(index); + } + return this; + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public com.google.pubsub.v1.Topic.Builder getTopicsBuilder( + int index) { + return getTopicsFieldBuilder().getBuilder(index); + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( + int index) { + if (topicsBuilder_ == null) { + return topics_.get(index); } else { + return topicsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public java.util.List + getTopicsOrBuilderList() { + if (topicsBuilder_ != null) { + return topicsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(topics_); + } + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { + return getTopicsFieldBuilder().addBuilder( + com.google.pubsub.v1.Topic.getDefaultInstance()); + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public com.google.pubsub.v1.Topic.Builder addTopicsBuilder( + int index) { + return getTopicsFieldBuilder().addBuilder( + index, com.google.pubsub.v1.Topic.getDefaultInstance()); + } + /** + *
+     * The resulting topics.
+     * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + public java.util.List + getTopicsBuilderList() { + return getTopicsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> + getTopicsFieldBuilder() { + if (topicsBuilder_ == null) { + topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>( + topics_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + topics_ = null; + } + return topicsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * If not empty, indicates that there may be more topics that match the
+     * request; this value should be passed in a new `ListTopicsRequest`.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If not empty, indicates that there may be more topics that match the
+     * request; this value should be passed in a new `ListTopicsRequest`.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If not empty, indicates that there may be more topics that match the
+     * request; this value should be passed in a new `ListTopicsRequest`.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * If not empty, indicates that there may be more topics that match the
+     * request; this value should be passed in a new `ListTopicsRequest`.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * If not empty, indicates that there may be more topics that match the
+     * request; this value should be passed in a new `ListTopicsRequest`.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicsResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsResponse) + private static final com.google.pubsub.v1.ListTopicsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicsResponse(); + } + + public static com.google.pubsub.v1.ListTopicsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListTopicsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTopicsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java new file mode 100644 index 000000000000..55aeecb5fab4 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ListTopicsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The resulting topics.
+   * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + java.util.List + getTopicsList(); + /** + *
+   * The resulting topics.
+   * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + com.google.pubsub.v1.Topic getTopics(int index); + /** + *
+   * The resulting topics.
+   * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + int getTopicsCount(); + /** + *
+   * The resulting topics.
+   * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + java.util.List + getTopicsOrBuilderList(); + /** + *
+   * The resulting topics.
+   * 
+ * + * repeated .google.pubsub.v1.Topic topics = 1; + */ + com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( + int index); + + /** + *
+   * If not empty, indicates that there may be more topics that match the
+   * request; this value should be passed in a new `ListTopicsRequest`.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + *
+   * If not empty, indicates that there may be more topics that match the
+   * request; this value should be passed in a new `ListTopicsRequest`.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java new file mode 100644 index 000000000000..a33954d319a8 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -0,0 +1,884 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the ModifyAckDeadline method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ModifyAckDeadlineRequest} + */ +public final class ModifyAckDeadlineRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyAckDeadlineRequest) + ModifyAckDeadlineRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ModifyAckDeadlineRequest.newBuilder() to construct. + private ModifyAckDeadlineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ModifyAckDeadlineRequest() { + subscription_ = ""; + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + ackDeadlineSeconds_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ModifyAckDeadlineRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } + case 24: { + + ackDeadlineSeconds_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + ackIds_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = ackIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ModifyAckDeadlineRequest.class, com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); + } + + private int bitField0_; + public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object subscription_; + /** + *
+   * The name of the subscription.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + *
+   * The name of the subscription.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACK_IDS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList ackIds_; + /** + *
+   * List of acknowledgment IDs.
+   * 
+ * + * repeated string ack_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getAckIdsList() { + return ackIds_; + } + /** + *
+   * List of acknowledgment IDs.
+   * 
+ * + * repeated string ack_ids = 4; + */ + public int getAckIdsCount() { + return ackIds_.size(); + } + /** + *
+   * List of acknowledgment IDs.
+   * 
+ * + * repeated string ack_ids = 4; + */ + public java.lang.String getAckIds(int index) { + return ackIds_.get(index); + } + /** + *
+   * List of acknowledgment IDs.
+   * 
+ * + * repeated string ack_ids = 4; + */ + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { + return ackIds_.getByteString(index); + } + + public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 3; + private int ackDeadlineSeconds_; + /** + *
+   * 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 may immediately make the message available for
+   * another pull request.
+   * The minimum deadline you can specify is 0 seconds.
+   * The maximum deadline you can specify is 600 seconds (10 minutes).
+   * 
+ * + * int32 ack_deadline_seconds = 3; + */ + public int getAckDeadlineSeconds() { + return ackDeadlineSeconds_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSubscriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + } + if (ackDeadlineSeconds_ != 0) { + output.writeInt32(3, ackDeadlineSeconds_); + } + for (int i = 0; i < ackIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ackIds_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubscriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + } + if (ackDeadlineSeconds_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, ackDeadlineSeconds_); + } + { + int dataSize = 0; + for (int i = 0; i < ackIds_.size(); i++) { + dataSize += computeStringSizeNoTag(ackIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getAckIdsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ModifyAckDeadlineRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ModifyAckDeadlineRequest other = (com.google.pubsub.v1.ModifyAckDeadlineRequest) obj; + + boolean result = true; + result = result && getSubscription() + .equals(other.getSubscription()); + result = result && getAckIdsList() + .equals(other.getAckIdsList()); + result = result && (getAckDeadlineSeconds() + == other.getAckDeadlineSeconds()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + if (getAckIdsCount() > 0) { + hash = (37 * hash) + ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getAckIdsList().hashCode(); + } + hash = (37 * hash) + ACK_DEADLINE_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getAckDeadlineSeconds(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ModifyAckDeadlineRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the ModifyAckDeadline method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ModifyAckDeadlineRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ModifyAckDeadlineRequest) + com.google.pubsub.v1.ModifyAckDeadlineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ModifyAckDeadlineRequest.class, com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ModifyAckDeadlineRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subscription_ = ""; + + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + ackDeadlineSeconds_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + } + + public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.ModifyAckDeadlineRequest build() { + com.google.pubsub.v1.ModifyAckDeadlineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { + com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.subscription_ = subscription_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = ackIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ackIds_ = ackIds_; + result.ackDeadlineSeconds_ = ackDeadlineSeconds_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ModifyAckDeadlineRequest) { + return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ModifyAckDeadlineRequest other) { + if (other == com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance()) return this; + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + onChanged(); + } + if (!other.ackIds_.isEmpty()) { + if (ackIds_.isEmpty()) { + ackIds_ = other.ackIds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAckIdsIsMutable(); + ackIds_.addAll(other.ackIds_); + } + onChanged(); + } + if (other.getAckDeadlineSeconds() != 0) { + setAckDeadlineSeconds(other.getAckDeadlineSeconds()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ModifyAckDeadlineRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ModifyAckDeadlineRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object subscription_ = ""; + /** + *
+     * The name of the subscription.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the subscription.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the subscription.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subscription_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the subscription.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder clearSubscription() { + + subscription_ = getDefaultInstance().getSubscription(); + onChanged(); + return this; + } + /** + *
+     * The name of the subscription.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subscription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAckIdsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * List of acknowledgment IDs.
+     * 
+ * + * repeated string ack_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getAckIdsList() { + return ackIds_.getUnmodifiableView(); + } + /** + *
+     * List of acknowledgment IDs.
+     * 
+ * + * repeated string ack_ids = 4; + */ + public int getAckIdsCount() { + return ackIds_.size(); + } + /** + *
+     * List of acknowledgment IDs.
+     * 
+ * + * repeated string ack_ids = 4; + */ + public java.lang.String getAckIds(int index) { + return ackIds_.get(index); + } + /** + *
+     * List of acknowledgment IDs.
+     * 
+ * + * repeated string ack_ids = 4; + */ + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { + return ackIds_.getByteString(index); + } + /** + *
+     * List of acknowledgment IDs.
+     * 
+ * + * repeated string ack_ids = 4; + */ + public Builder setAckIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); + ackIds_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * List of acknowledgment IDs.
+     * 
+ * + * repeated string ack_ids = 4; + */ + public Builder addAckIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); + ackIds_.add(value); + onChanged(); + return this; + } + /** + *
+     * List of acknowledgment IDs.
+     * 
+ * + * repeated string ack_ids = 4; + */ + public Builder addAllAckIds( + java.lang.Iterable values) { + ensureAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ackIds_); + onChanged(); + return this; + } + /** + *
+     * List of acknowledgment IDs.
+     * 
+ * + * repeated string ack_ids = 4; + */ + public Builder clearAckIds() { + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * List of acknowledgment IDs.
+     * 
+ * + * repeated string ack_ids = 4; + */ + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAckIdsIsMutable(); + ackIds_.add(value); + onChanged(); + return this; + } + + private int ackDeadlineSeconds_ ; + /** + *
+     * 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 may immediately make the message available for
+     * another pull request.
+     * The minimum deadline you can specify is 0 seconds.
+     * The maximum deadline you can specify is 600 seconds (10 minutes).
+     * 
+ * + * int32 ack_deadline_seconds = 3; + */ + public int getAckDeadlineSeconds() { + return ackDeadlineSeconds_; + } + /** + *
+     * 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 may immediately make the message available for
+     * another pull request.
+     * The minimum deadline you can specify is 0 seconds.
+     * The maximum deadline you can specify is 600 seconds (10 minutes).
+     * 
+ * + * int32 ack_deadline_seconds = 3; + */ + public Builder setAckDeadlineSeconds(int value) { + + ackDeadlineSeconds_ = value; + onChanged(); + return this; + } + /** + *
+     * 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 may immediately make the message available for
+     * another pull request.
+     * The minimum deadline you can specify is 0 seconds.
+     * The maximum deadline you can specify is 600 seconds (10 minutes).
+     * 
+ * + * int32 ack_deadline_seconds = 3; + */ + public Builder clearAckDeadlineSeconds() { + + ackDeadlineSeconds_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyAckDeadlineRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyAckDeadlineRequest) + private static final com.google.pubsub.v1.ModifyAckDeadlineRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ModifyAckDeadlineRequest(); + } + + public static com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ModifyAckDeadlineRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModifyAckDeadlineRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java new file mode 100644 index 000000000000..d1deaa86303a --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ModifyAckDeadlineRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ModifyAckDeadlineRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the subscription.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + java.lang.String getSubscription(); + /** + *
+   * The name of the subscription.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); + + /** + *
+   * List of acknowledgment IDs.
+   * 
+ * + * repeated string ack_ids = 4; + */ + java.util.List + getAckIdsList(); + /** + *
+   * List of acknowledgment IDs.
+   * 
+ * + * repeated string ack_ids = 4; + */ + int getAckIdsCount(); + /** + *
+   * List of acknowledgment IDs.
+   * 
+ * + * repeated string ack_ids = 4; + */ + java.lang.String getAckIds(int index); + /** + *
+   * List of acknowledgment IDs.
+   * 
+ * + * repeated string ack_ids = 4; + */ + com.google.protobuf.ByteString + getAckIdsBytes(int index); + + /** + *
+   * 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 may immediately make the message available for
+   * another pull request.
+   * The minimum deadline you can specify is 0 seconds.
+   * The maximum deadline you can specify is 600 seconds (10 minutes).
+   * 
+ * + * int32 ack_deadline_seconds = 3; + */ + int getAckDeadlineSeconds(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java new file mode 100644 index 000000000000..f448e439183c --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -0,0 +1,836 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the ModifyPushConfig method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest} + */ +public final class ModifyPushConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyPushConfigRequest) + ModifyPushConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ModifyPushConfigRequest.newBuilder() to construct. + private ModifyPushConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ModifyPushConfigRequest() { + subscription_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ModifyPushConfigRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } + case 18: { + com.google.pubsub.v1.PushConfig.Builder subBuilder = null; + if (pushConfig_ != null) { + subBuilder = pushConfig_.toBuilder(); + } + pushConfig_ = input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushConfig_); + pushConfig_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ModifyPushConfigRequest.class, com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); + } + + public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object subscription_; + /** + *
+   * The name of the subscription.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + *
+   * The name of the subscription.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUSH_CONFIG_FIELD_NUMBER = 2; + private com.google.pubsub.v1.PushConfig pushConfig_; + /** + *
+   * 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` is not called.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public boolean hasPushConfig() { + return pushConfig_ != null; + } + /** + *
+   * 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` is not called.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public com.google.pubsub.v1.PushConfig getPushConfig() { + return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; + } + /** + *
+   * 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` is not called.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { + return getPushConfig(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSubscriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + } + if (pushConfig_ != null) { + output.writeMessage(2, getPushConfig()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubscriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + } + if (pushConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPushConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ModifyPushConfigRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ModifyPushConfigRequest other = (com.google.pubsub.v1.ModifyPushConfigRequest) obj; + + boolean result = true; + result = result && getSubscription() + .equals(other.getSubscription()); + result = result && (hasPushConfig() == other.hasPushConfig()); + if (hasPushConfig()) { + result = result && getPushConfig() + .equals(other.getPushConfig()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + if (hasPushConfig()) { + hash = (37 * hash) + PUSH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPushConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ModifyPushConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the ModifyPushConfig method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ModifyPushConfigRequest) + com.google.pubsub.v1.ModifyPushConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ModifyPushConfigRequest.class, com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ModifyPushConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subscription_ = ""; + + if (pushConfigBuilder_ == null) { + pushConfig_ = null; + } else { + pushConfig_ = null; + pushConfigBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + } + + public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.ModifyPushConfigRequest build() { + com.google.pubsub.v1.ModifyPushConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { + com.google.pubsub.v1.ModifyPushConfigRequest result = new com.google.pubsub.v1.ModifyPushConfigRequest(this); + result.subscription_ = subscription_; + if (pushConfigBuilder_ == null) { + result.pushConfig_ = pushConfig_; + } else { + result.pushConfig_ = pushConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ModifyPushConfigRequest) { + return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ModifyPushConfigRequest other) { + if (other == com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()) return this; + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + onChanged(); + } + if (other.hasPushConfig()) { + mergePushConfig(other.getPushConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ModifyPushConfigRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ModifyPushConfigRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object subscription_ = ""; + /** + *
+     * The name of the subscription.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the subscription.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the subscription.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subscription_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the subscription.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder clearSubscription() { + + subscription_ = getDefaultInstance().getSubscription(); + onChanged(); + return this; + } + /** + *
+     * The name of the subscription.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subscription_ = value; + onChanged(); + return this; + } + + private com.google.pubsub.v1.PushConfig pushConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_; + /** + *
+     * 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` is not called.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public boolean hasPushConfig() { + return pushConfigBuilder_ != null || pushConfig_ != null; + } + /** + *
+     * 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` is not called.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public com.google.pubsub.v1.PushConfig getPushConfig() { + if (pushConfigBuilder_ == null) { + return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; + } else { + return pushConfigBuilder_.getMessage(); + } + } + /** + *
+     * 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` is not called.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { + if (pushConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pushConfig_ = value; + onChanged(); + } else { + pushConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * 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` is not called.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public Builder setPushConfig( + com.google.pubsub.v1.PushConfig.Builder builderForValue) { + if (pushConfigBuilder_ == null) { + pushConfig_ = builderForValue.build(); + onChanged(); + } else { + pushConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * 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` is not called.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { + if (pushConfigBuilder_ == null) { + if (pushConfig_ != null) { + pushConfig_ = + com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_).mergeFrom(value).buildPartial(); + } else { + pushConfig_ = value; + } + onChanged(); + } else { + pushConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * 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` is not called.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public Builder clearPushConfig() { + if (pushConfigBuilder_ == null) { + pushConfig_ = null; + onChanged(); + } else { + pushConfig_ = null; + pushConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * 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` is not called.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { + + onChanged(); + return getPushConfigFieldBuilder().getBuilder(); + } + /** + *
+     * 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` is not called.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { + if (pushConfigBuilder_ != null) { + return pushConfigBuilder_.getMessageOrBuilder(); + } else { + return pushConfig_ == null ? + com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; + } + } + /** + *
+     * 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` is not called.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> + getPushConfigFieldBuilder() { + if (pushConfigBuilder_ == null) { + pushConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder>( + getPushConfig(), + getParentForChildren(), + isClean()); + pushConfig_ = null; + } + return pushConfigBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyPushConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyPushConfigRequest) + private static final com.google.pubsub.v1.ModifyPushConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ModifyPushConfigRequest(); + } + + public static com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ModifyPushConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModifyPushConfigRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java new file mode 100644 index 000000000000..411fdae60771 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ModifyPushConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ModifyPushConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the subscription.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + java.lang.String getSubscription(); + /** + *
+   * The name of the subscription.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); + + /** + *
+   * 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` is not called.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + boolean hasPushConfig(); + /** + *
+   * 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` is not called.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + com.google.pubsub.v1.PushConfig getPushConfig(); + /** + *
+   * 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` is not called.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 2; + */ + com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java new file mode 100644 index 000000000000..f9ef6a4eab23 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -0,0 +1,175 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.pubsub.v1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.api.resourcenames.ResourceNameType; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + + private volatile Map fieldValuesMap; + + private final String project; + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public static ProjectName of(String project) { + return newBuilder() + .setProject(project) + .build(); + } + + public static String format(String project) { + return newBuilder() + .setProject(project) + .build() + .toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + /** + * @deprecated This method is only present to satisfy the ResourceName interface. + */ + @Deprecated + public ResourceNameType getType() { + throw new UnsupportedOperationException("ProjectName.getType() not supported"); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project); + } + + /** Builder for ProjectName. */ + public static class Builder { + + private String project; + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder() { + } + + private Builder(ProjectName projectName) { + project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectName) { + ProjectName that = (ProjectName) o; + return (this.project.equals(that.project)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + return h; + } +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java new file mode 100644 index 000000000000..7ee9e5a041cb --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.pubsub.v1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.api.resourcenames.ResourceNameType; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectSnapshotName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/snapshots/{snapshot}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String snapshot; + + public String getProject() { + return project; + } + + public String getSnapshot() { + return snapshot; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectSnapshotName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + snapshot = Preconditions.checkNotNull(builder.getSnapshot()); + } + + public static ProjectSnapshotName of(String project, String snapshot) { + return newBuilder() + .setProject(project) + .setSnapshot(snapshot) + .build(); + } + + public static String format(String project, String snapshot) { + return newBuilder() + .setProject(project) + .setSnapshot(snapshot) + .build() + .toString(); + } + + public static ProjectSnapshotName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ProjectSnapshotName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("snapshot")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectSnapshotName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("snapshot", snapshot); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + /** + * @deprecated This method is only present to satisfy the ResourceName interface. + */ + @Deprecated + public ResourceNameType getType() { + throw new UnsupportedOperationException("ProjectSnapshotName.getType() not supported"); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "snapshot", snapshot); + } + + /** Builder for ProjectSnapshotName. */ + public static class Builder { + + private String project; + private String snapshot; + + public String getProject() { + return project; + } + + public String getSnapshot() { + return snapshot; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setSnapshot(String snapshot) { + this.snapshot = snapshot; + return this; + } + + private Builder() { + } + + private Builder(ProjectSnapshotName projectSnapshotName) { + project = projectSnapshotName.project; + snapshot = projectSnapshotName.snapshot; + } + + public ProjectSnapshotName build() { + return new ProjectSnapshotName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectSnapshotName) { + ProjectSnapshotName that = (ProjectSnapshotName) o; + return (this.project.equals(that.project)) + && (this.snapshot.equals(that.snapshot)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= snapshot.hashCode(); + return h; + } +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java new file mode 100644 index 000000000000..203e4360f83f --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.pubsub.v1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.api.resourcenames.ResourceNameType; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectSubscriptionName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/subscriptions/{subscription}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String subscription; + + public String getProject() { + return project; + } + + public String getSubscription() { + return subscription; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectSubscriptionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + subscription = Preconditions.checkNotNull(builder.getSubscription()); + } + + public static ProjectSubscriptionName of(String project, String subscription) { + return newBuilder() + .setProject(project) + .setSubscription(subscription) + .build(); + } + + public static String format(String project, String subscription) { + return newBuilder() + .setProject(project) + .setSubscription(subscription) + .build() + .toString(); + } + + public static ProjectSubscriptionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ProjectSubscriptionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("subscription")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectSubscriptionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("subscription", subscription); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + /** + * @deprecated This method is only present to satisfy the ResourceName interface. + */ + @Deprecated + public ResourceNameType getType() { + throw new UnsupportedOperationException("ProjectSubscriptionName.getType() not supported"); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "subscription", subscription); + } + + /** Builder for ProjectSubscriptionName. */ + public static class Builder { + + private String project; + private String subscription; + + public String getProject() { + return project; + } + + public String getSubscription() { + return subscription; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setSubscription(String subscription) { + this.subscription = subscription; + return this; + } + + private Builder() { + } + + private Builder(ProjectSubscriptionName projectSubscriptionName) { + project = projectSubscriptionName.project; + subscription = projectSubscriptionName.subscription; + } + + public ProjectSubscriptionName build() { + return new ProjectSubscriptionName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectSubscriptionName) { + ProjectSubscriptionName that = (ProjectSubscriptionName) o; + return (this.project.equals(that.project)) + && (this.subscription.equals(that.subscription)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= subscription.hashCode(); + return h; + } +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java new file mode 100644 index 000000000000..5438e96e5cb7 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java @@ -0,0 +1,198 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.pubsub.v1; + +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.api.resourcenames.ResourceNameType; +import java.util.Map; +import java.util.ArrayList; +import java.util.List; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class ProjectTopicName extends TopicName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/topics/{topic}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String topic; + + public String getProject() { + return project; + } + + public String getTopic() { + return topic; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private ProjectTopicName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + topic = Preconditions.checkNotNull(builder.getTopic()); + } + + public static ProjectTopicName of(String project, String topic) { + return newBuilder() + .setProject(project) + .setTopic(topic) + .build(); + } + + public static String format(String project, String topic) { + return newBuilder() + .setProject(project) + .setTopic(topic) + .build() + .toString(); + } + + public static ProjectTopicName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch(formattedString, "ProjectTopicName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("topic")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (ProjectTopicName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("topic", topic); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + /** + * @deprecated This method is only present to satisfy the ResourceName interface. + */ + @Deprecated + public ResourceNameType getType() { + throw new UnsupportedOperationException("ProjectTopicName.getType() not supported"); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "topic", topic); + } + + /** Builder for ProjectTopicName. */ + public static class Builder { + + private String project; + private String topic; + + public String getProject() { + return project; + } + + public String getTopic() { + return topic; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTopic(String topic) { + this.topic = topic; + return this; + } + + private Builder() { + } + + private Builder(ProjectTopicName projectTopicName) { + project = projectTopicName.project; + topic = projectTopicName.topic; + } + + public ProjectTopicName build() { + return new ProjectTopicName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof ProjectTopicName) { + ProjectTopicName that = (ProjectTopicName) o; + return (this.project.equals(that.project)) + && (this.topic.equals(that.topic)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= topic.hashCode(); + return h; + } +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java new file mode 100644 index 000000000000..a95e30a40df7 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -0,0 +1,999 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the Publish method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.PublishRequest} + */ +public final class PublishRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishRequest) + PublishRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use PublishRequest.newBuilder() to construct. + private PublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PublishRequest() { + topic_ = ""; + messages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PublishRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + messages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + messages_.add( + input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PublishRequest.class, com.google.pubsub.v1.PublishRequest.Builder.class); + } + + private int bitField0_; + public static final int TOPIC_FIELD_NUMBER = 1; + private volatile java.lang.Object topic_; + /** + *
+   * The messages in the request will be published on this topic.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + *
+   * The messages in the request will be published on this topic.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGES_FIELD_NUMBER = 2; + private java.util.List messages_; + /** + *
+   * The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public java.util.List getMessagesList() { + return messages_; + } + /** + *
+   * The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + /** + *
+   * The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public int getMessagesCount() { + return messages_.size(); + } + /** + *
+   * The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public com.google.pubsub.v1.PubsubMessage getMessages(int index) { + return messages_.get(index); + } + /** + *
+   * The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( + int index) { + return messages_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(2, messages_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, messages_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.PublishRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.PublishRequest other = (com.google.pubsub.v1.PublishRequest) obj; + + boolean result = true; + result = result && getTopic() + .equals(other.getTopic()); + result = result && getMessagesList() + .equals(other.getMessagesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.PublishRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PublishRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PublishRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PublishRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PublishRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PublishRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PublishRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PublishRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PublishRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PublishRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PublishRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PublishRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.PublishRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the Publish method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.PublishRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PublishRequest) + com.google.pubsub.v1.PublishRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PublishRequest.class, com.google.pubsub.v1.PublishRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.PublishRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMessagesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + topic_ = ""; + + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + messagesBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; + } + + public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.PublishRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.PublishRequest build() { + com.google.pubsub.v1.PublishRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.PublishRequest buildPartial() { + com.google.pubsub.v1.PublishRequest result = new com.google.pubsub.v1.PublishRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.topic_ = topic_; + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.PublishRequest) { + return mergeFrom((com.google.pubsub.v1.PublishRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { + if (other == com.google.pubsub.v1.PublishRequest.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000002); + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessagesFieldBuilder() : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.PublishRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.PublishRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object topic_ = ""; + /** + *
+     * The messages in the request will be published on this topic.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The messages in the request will be published on this topic.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The messages in the request will be published on this topic.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder setTopic( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + *
+     * The messages in the request will be published on this topic.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + *
+     * The messages in the request will be published on this topic.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + + private java.util.List messages_ = + java.util.Collections.emptyList(); + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + messages_ = new java.util.ArrayList(messages_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> messagesBuilder_; + + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public com.google.pubsub.v1.PubsubMessage getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public Builder setMessages( + int index, com.google.pubsub.v1.PubsubMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public Builder setMessages( + int index, com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public Builder addMessages(com.google.pubsub.v1.PubsubMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public Builder addMessages( + int index, com.google.pubsub.v1.PubsubMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public Builder addMessages( + com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public Builder addMessages( + int index, com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public Builder addAllMessages( + java.lang.Iterable values) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messages_); + onChanged(); + } else { + messagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder( + int index) { + return getMessagesFieldBuilder().getBuilder(index); + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( + int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder() { + return getMessagesFieldBuilder().addBuilder( + com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder( + int index) { + return getMessagesFieldBuilder().addBuilder( + index, com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); + } + /** + *
+     * The messages to publish.
+     * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + public java.util.List + getMessagesBuilderList() { + return getMessagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> + getMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( + messages_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + messages_ = null; + } + return messagesBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PublishRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishRequest) + private static final com.google.pubsub.v1.PublishRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PublishRequest(); + } + + public static com.google.pubsub.v1.PublishRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java new file mode 100644 index 000000000000..272501fa4db3 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface PublishRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The messages in the request will be published on this topic.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + java.lang.String getTopic(); + /** + *
+   * The messages in the request will be published on this topic.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+   * The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + java.util.List + getMessagesList(); + /** + *
+   * The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + com.google.pubsub.v1.PubsubMessage getMessages(int index); + /** + *
+   * The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + int getMessagesCount(); + /** + *
+   * The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + java.util.List + getMessagesOrBuilderList(); + /** + *
+   * The messages to publish.
+   * 
+ * + * repeated .google.pubsub.v1.PubsubMessage messages = 2; + */ + com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( + int index); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java new file mode 100644 index 000000000000..d59fd9694aaf --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -0,0 +1,647 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Response for the `Publish` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.PublishResponse} + */ +public final class PublishResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishResponse) + PublishResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use PublishResponse.newBuilder() to construct. + private PublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PublishResponse() { + messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PublishResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + messageIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + messageIds_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + messageIds_ = messageIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PublishResponse.class, com.google.pubsub.v1.PublishResponse.Builder.class); + } + + public static final int MESSAGE_IDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList messageIds_; + /** + *
+   * The server-assigned ID of each published message, in the same order as
+   * the messages in the request. IDs are guaranteed to be unique within
+   * the topic.
+   * 
+ * + * repeated string message_ids = 1; + */ + public com.google.protobuf.ProtocolStringList + getMessageIdsList() { + return messageIds_; + } + /** + *
+   * The server-assigned ID of each published message, in the same order as
+   * the messages in the request. IDs are guaranteed to be unique within
+   * the topic.
+   * 
+ * + * repeated string message_ids = 1; + */ + public int getMessageIdsCount() { + return messageIds_.size(); + } + /** + *
+   * The server-assigned ID of each published message, in the same order as
+   * the messages in the request. IDs are guaranteed to be unique within
+   * the topic.
+   * 
+ * + * repeated string message_ids = 1; + */ + public java.lang.String getMessageIds(int index) { + return messageIds_.get(index); + } + /** + *
+   * The server-assigned ID of each published message, in the same order as
+   * the messages in the request. IDs are guaranteed to be unique within
+   * the topic.
+   * 
+ * + * repeated string message_ids = 1; + */ + public com.google.protobuf.ByteString + getMessageIdsBytes(int index) { + return messageIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < messageIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, messageIds_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < messageIds_.size(); i++) { + dataSize += computeStringSizeNoTag(messageIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getMessageIdsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.PublishResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.PublishResponse other = (com.google.pubsub.v1.PublishResponse) obj; + + boolean result = true; + result = result && getMessageIdsList() + .equals(other.getMessageIdsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMessageIdsCount() > 0) { + hash = (37 * hash) + MESSAGE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getMessageIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.PublishResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PublishResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PublishResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PublishResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PublishResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PublishResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PublishResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PublishResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PublishResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PublishResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PublishResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PublishResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.PublishResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for the `Publish` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.PublishResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PublishResponse) + com.google.pubsub.v1.PublishResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PublishResponse.class, com.google.pubsub.v1.PublishResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.PublishResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; + } + + public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.PublishResponse.getDefaultInstance(); + } + + public com.google.pubsub.v1.PublishResponse build() { + com.google.pubsub.v1.PublishResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.PublishResponse buildPartial() { + com.google.pubsub.v1.PublishResponse result = new com.google.pubsub.v1.PublishResponse(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + messageIds_ = messageIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.messageIds_ = messageIds_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.PublishResponse) { + return mergeFrom((com.google.pubsub.v1.PublishResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PublishResponse other) { + if (other == com.google.pubsub.v1.PublishResponse.getDefaultInstance()) return this; + if (!other.messageIds_.isEmpty()) { + if (messageIds_.isEmpty()) { + messageIds_ = other.messageIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessageIdsIsMutable(); + messageIds_.addAll(other.messageIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.PublishResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.PublishResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMessageIdsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + messageIds_ = new com.google.protobuf.LazyStringArrayList(messageIds_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * The server-assigned ID of each published message, in the same order as
+     * the messages in the request. IDs are guaranteed to be unique within
+     * the topic.
+     * 
+ * + * repeated string message_ids = 1; + */ + public com.google.protobuf.ProtocolStringList + getMessageIdsList() { + return messageIds_.getUnmodifiableView(); + } + /** + *
+     * The server-assigned ID of each published message, in the same order as
+     * the messages in the request. IDs are guaranteed to be unique within
+     * the topic.
+     * 
+ * + * repeated string message_ids = 1; + */ + public int getMessageIdsCount() { + return messageIds_.size(); + } + /** + *
+     * The server-assigned ID of each published message, in the same order as
+     * the messages in the request. IDs are guaranteed to be unique within
+     * the topic.
+     * 
+ * + * repeated string message_ids = 1; + */ + public java.lang.String getMessageIds(int index) { + return messageIds_.get(index); + } + /** + *
+     * The server-assigned ID of each published message, in the same order as
+     * the messages in the request. IDs are guaranteed to be unique within
+     * the topic.
+     * 
+ * + * repeated string message_ids = 1; + */ + public com.google.protobuf.ByteString + getMessageIdsBytes(int index) { + return messageIds_.getByteString(index); + } + /** + *
+     * The server-assigned ID of each published message, in the same order as
+     * the messages in the request. IDs are guaranteed to be unique within
+     * the topic.
+     * 
+ * + * repeated string message_ids = 1; + */ + public Builder setMessageIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIdsIsMutable(); + messageIds_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The server-assigned ID of each published message, in the same order as
+     * the messages in the request. IDs are guaranteed to be unique within
+     * the topic.
+     * 
+ * + * repeated string message_ids = 1; + */ + public Builder addMessageIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIdsIsMutable(); + messageIds_.add(value); + onChanged(); + return this; + } + /** + *
+     * The server-assigned ID of each published message, in the same order as
+     * the messages in the request. IDs are guaranteed to be unique within
+     * the topic.
+     * 
+ * + * repeated string message_ids = 1; + */ + public Builder addAllMessageIds( + java.lang.Iterable values) { + ensureMessageIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messageIds_); + onChanged(); + return this; + } + /** + *
+     * The server-assigned ID of each published message, in the same order as
+     * the messages in the request. IDs are guaranteed to be unique within
+     * the topic.
+     * 
+ * + * repeated string message_ids = 1; + */ + public Builder clearMessageIds() { + messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The server-assigned ID of each published message, in the same order as
+     * the messages in the request. IDs are guaranteed to be unique within
+     * the topic.
+     * 
+ * + * repeated string message_ids = 1; + */ + public Builder addMessageIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMessageIdsIsMutable(); + messageIds_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PublishResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishResponse) + private static final com.google.pubsub.v1.PublishResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PublishResponse(); + } + + public static com.google.pubsub.v1.PublishResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PublishResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java new file mode 100644 index 000000000000..6b2ba66651c3 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface PublishResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The server-assigned ID of each published message, in the same order as
+   * the messages in the request. IDs are guaranteed to be unique within
+   * the topic.
+   * 
+ * + * repeated string message_ids = 1; + */ + java.util.List + getMessageIdsList(); + /** + *
+   * The server-assigned ID of each published message, in the same order as
+   * the messages in the request. IDs are guaranteed to be unique within
+   * the topic.
+   * 
+ * + * repeated string message_ids = 1; + */ + int getMessageIdsCount(); + /** + *
+   * The server-assigned ID of each published message, in the same order as
+   * the messages in the request. IDs are guaranteed to be unique within
+   * the topic.
+   * 
+ * + * repeated string message_ids = 1; + */ + java.lang.String getMessageIds(int index); + /** + *
+   * The server-assigned ID of each published message, in the same order as
+   * the messages in the request. IDs are guaranteed to be unique within
+   * the topic.
+   * 
+ * + * repeated string message_ids = 1; + */ + com.google.protobuf.ByteString + getMessageIdsBytes(int index); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java new file mode 100644 index 000000000000..4910321a2293 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -0,0 +1,1226 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * A message data and its attributes. The message payload must not be empty;
+ * it must contain either a non-empty data field, or at least one attribute.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.PubsubMessage} + */ +public final class PubsubMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PubsubMessage) + PubsubMessageOrBuilder { +private static final long serialVersionUID = 0L; + // Use PubsubMessage.newBuilder() to construct. + private PubsubMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PubsubMessage() { + data_ = com.google.protobuf.ByteString.EMPTY; + messageId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PubsubMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + + data_ = input.readBytes(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + attributes_.getMutableMap().put( + attributes__.getKey(), attributes__.getValue()); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + messageId_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (publishTime_ != null) { + subBuilder = publishTime_.toBuilder(); + } + publishTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(publishTime_); + publishTime_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PubsubMessage.class, com.google.pubsub.v1.PubsubMessage.Builder.class); + } + + private int bitField0_; + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString data_; + /** + *
+   * The message payload.
+   * 
+ * + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 2; + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+   * Optional attributes for this message.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+   * Optional attributes for this message.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+   * Optional attributes for this message.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + public java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Optional attributes for this message.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + public java.lang.String getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MESSAGE_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object messageId_; + /** + *
+   * 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.
+   * 
+ * + * string message_id = 3; + */ + public java.lang.String getMessageId() { + java.lang.Object ref = messageId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + messageId_ = s; + return s; + } + } + /** + *
+   * 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.
+   * 
+ * + * string message_id = 3; + */ + public com.google.protobuf.ByteString + getMessageIdBytes() { + java.lang.Object ref = messageId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + messageId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLISH_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp publishTime_; + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public boolean hasPublishTime() { + return publishTime_ != null; + } + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public com.google.protobuf.Timestamp getPublishTime() { + return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; + } + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { + return getPublishTime(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!data_.isEmpty()) { + output.writeBytes(1, data_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 2); + if (!getMessageIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageId_); + } + if (publishTime_ != null) { + output.writeMessage(4, getPublishTime()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, data_); + } + for (java.util.Map.Entry entry + : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, attributes__); + } + if (!getMessageIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageId_); + } + if (publishTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPublishTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.PubsubMessage)) { + return super.equals(obj); + } + com.google.pubsub.v1.PubsubMessage other = (com.google.pubsub.v1.PubsubMessage) obj; + + boolean result = true; + result = result && getData() + .equals(other.getData()); + result = result && internalGetAttributes().equals( + other.internalGetAttributes()); + result = result && getMessageId() + .equals(other.getMessageId()); + result = result && (hasPublishTime() == other.hasPublishTime()); + if (hasPublishTime()) { + result = result && getPublishTime() + .equals(other.getPublishTime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + if (!internalGetAttributes().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributes().hashCode(); + } + hash = (37 * hash) + MESSAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + getMessageId().hashCode(); + if (hasPublishTime()) { + hash = (37 * hash) + PUBLISH_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPublishTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.PubsubMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PubsubMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PubsubMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PubsubMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PubsubMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PubsubMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PubsubMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PubsubMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PubsubMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PubsubMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PubsubMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PubsubMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.PubsubMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A message data and its attributes. The message payload must not be empty;
+   * it must contain either a non-empty data field, or at least one attribute.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.PubsubMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PubsubMessage) + com.google.pubsub.v1.PubsubMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PubsubMessage.class, com.google.pubsub.v1.PubsubMessage.Builder.class); + } + + // Construct using com.google.pubsub.v1.PubsubMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = com.google.protobuf.ByteString.EMPTY; + + internalGetMutableAttributes().clear(); + messageId_ = ""; + + if (publishTimeBuilder_ == null) { + publishTime_ = null; + } else { + publishTime_ = null; + publishTimeBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor; + } + + public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { + return com.google.pubsub.v1.PubsubMessage.getDefaultInstance(); + } + + public com.google.pubsub.v1.PubsubMessage build() { + com.google.pubsub.v1.PubsubMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.PubsubMessage buildPartial() { + com.google.pubsub.v1.PubsubMessage result = new com.google.pubsub.v1.PubsubMessage(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.data_ = data_; + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + result.messageId_ = messageId_; + if (publishTimeBuilder_ == null) { + result.publishTime_ = publishTime_; + } else { + result.publishTime_ = publishTimeBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.PubsubMessage) { + return mergeFrom((com.google.pubsub.v1.PubsubMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) { + if (other == com.google.pubsub.v1.PubsubMessage.getDefaultInstance()) return this; + if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + setData(other.getData()); + } + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); + if (!other.getMessageId().isEmpty()) { + messageId_ = other.messageId_; + onChanged(); + } + if (other.hasPublishTime()) { + mergePublishTime(other.getPublishTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.PubsubMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.PubsubMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** + *
+     * The message payload.
+     * 
+ * + * bytes data = 1; + */ + public com.google.protobuf.ByteString getData() { + return data_; + } + /** + *
+     * The message payload.
+     * 
+ * + * bytes data = 1; + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + data_ = value; + onChanged(); + return this; + } + /** + *
+     * The message payload.
+     * 
+ * + * bytes data = 1; + */ + public Builder clearData() { + + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + private com.google.protobuf.MapField + internalGetMutableAttributes() { + onChanged();; + if (attributes_ == null) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + if (!attributes_.isMutable()) { + attributes_ = attributes_.copy(); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+     * Optional attributes for this message.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+     * Optional attributes for this message.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+     * Optional attributes for this message.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Optional attributes for this message.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public java.lang.String getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttributes() { + internalGetMutableAttributes().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Optional attributes for this message.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public Builder removeAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAttributes() { + return internalGetMutableAttributes().getMutableMap(); + } + /** + *
+     * Optional attributes for this message.
+     * 
+ * + * map<string, string> attributes = 2; + */ + public Builder putAttributes( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Optional attributes for this message.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public Builder putAllAttributes( + java.util.Map values) { + internalGetMutableAttributes().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object messageId_ = ""; + /** + *
+     * 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.
+     * 
+ * + * string message_id = 3; + */ + public java.lang.String getMessageId() { + java.lang.Object ref = messageId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + messageId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string message_id = 3; + */ + public com.google.protobuf.ByteString + getMessageIdBytes() { + java.lang.Object ref = messageId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + messageId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string message_id = 3; + */ + public Builder setMessageId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + messageId_ = value; + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string message_id = 3; + */ + public Builder clearMessageId() { + + messageId_ = getDefaultInstance().getMessageId(); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string message_id = 3; + */ + public Builder setMessageIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + messageId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp publishTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> publishTimeBuilder_; + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public boolean hasPublishTime() { + return publishTimeBuilder_ != null || publishTime_ != null; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public com.google.protobuf.Timestamp getPublishTime() { + if (publishTimeBuilder_ == null) { + return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; + } else { + return publishTimeBuilder_.getMessage(); + } + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public Builder setPublishTime(com.google.protobuf.Timestamp value) { + if (publishTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publishTime_ = value; + onChanged(); + } else { + publishTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public Builder setPublishTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (publishTimeBuilder_ == null) { + publishTime_ = builderForValue.build(); + onChanged(); + } else { + publishTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public Builder mergePublishTime(com.google.protobuf.Timestamp value) { + if (publishTimeBuilder_ == null) { + if (publishTime_ != null) { + publishTime_ = + com.google.protobuf.Timestamp.newBuilder(publishTime_).mergeFrom(value).buildPartial(); + } else { + publishTime_ = value; + } + onChanged(); + } else { + publishTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public Builder clearPublishTime() { + if (publishTimeBuilder_ == null) { + publishTime_ = null; + onChanged(); + } else { + publishTime_ = null; + publishTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() { + + onChanged(); + return getPublishTimeFieldBuilder().getBuilder(); + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { + if (publishTimeBuilder_ != null) { + return publishTimeBuilder_.getMessageOrBuilder(); + } else { + return publishTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; + } + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getPublishTimeFieldBuilder() { + if (publishTimeBuilder_ == null) { + publishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getPublishTime(), + getParentForChildren(), + isClean()); + publishTime_ = null; + } + return publishTimeBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PubsubMessage) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PubsubMessage) + private static final com.google.pubsub.v1.PubsubMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PubsubMessage(); + } + + public static com.google.pubsub.v1.PubsubMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PubsubMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PubsubMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java new file mode 100644 index 000000000000..ce0a79744db7 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -0,0 +1,127 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface PubsubMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PubsubMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The message payload.
+   * 
+ * + * bytes data = 1; + */ + com.google.protobuf.ByteString getData(); + + /** + *
+   * Optional attributes for this message.
+   * 
+ * + * map<string, string> attributes = 2; + */ + int getAttributesCount(); + /** + *
+   * Optional attributes for this message.
+   * 
+ * + * map<string, string> attributes = 2; + */ + boolean containsAttributes( + java.lang.String key); + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAttributes(); + /** + *
+   * Optional attributes for this message.
+   * 
+ * + * map<string, string> attributes = 2; + */ + java.util.Map + getAttributesMap(); + /** + *
+   * Optional attributes for this message.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Optional attributes for this message.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + java.lang.String getAttributesOrThrow( + java.lang.String key); + + /** + *
+   * 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.
+   * 
+ * + * string message_id = 3; + */ + java.lang.String getMessageId(); + /** + *
+   * 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.
+   * 
+ * + * string message_id = 3; + */ + com.google.protobuf.ByteString + getMessageIdBytes(); + + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + boolean hasPublishTime(); + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + com.google.protobuf.Timestamp getPublishTime(); + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp publish_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java new file mode 100644 index 000000000000..707fe8b41799 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -0,0 +1,657 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public final class PubsubProto { + private PubsubProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Topic_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Topic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PubsubMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PublishRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PublishResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Subscription_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Subscription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PullRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PullResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Snapshot_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_SeekRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_SeekResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\035google/pubsub/v1/pubsub.proto\022\020google." + + "pubsub.v1\032\034google/api/annotations.proto\032" + + "\036google/protobuf/duration.proto\032\033google/" + + "protobuf/empty.proto\032 google/protobuf/fi" + + "eld_mask.proto\032\037google/protobuf/timestam" + + "p.proto\"y\n\005Topic\022\014\n\004name\030\001 \001(\t\0223\n\006labels" + + "\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEn" + + "try\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"\333\001\n\rPubsubMessage\022\014\n\004data\030\001 \001" + + "(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub.v" + + "1.PubsubMessage.AttributesEntry\022\022\n\nmessa" + + "ge_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.goog" + + "le.protobuf.Timestamp\0321\n\017AttributesEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\017GetT" + + "opicRequest\022\r\n\005topic\030\001 \001(\t\"m\n\022UpdateTopi" + + "cRequest\022&\n\005topic\030\001 \001(\0132\027.google.pubsub." + + "v1.Topic\022/\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMask\"R\n\016PublishRequest\022\r\n\005t" + + "opic\030\001 \001(\t\0221\n\010messages\030\002 \003(\0132\037.google.pu" + + "bsub.v1.PubsubMessage\"&\n\017PublishResponse" + + "\022\023\n\013message_ids\030\001 \003(\t\"K\n\021ListTopicsReque" + + "st\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"V\n\022ListTopicsResponse" + + "\022\'\n\006topics\030\001 \003(\0132\027.google.pubsub.v1.Topi" + + "c\022\027\n\017next_page_token\030\002 \001(\t\"U\n\035ListTopicS" + + "ubscriptionsRequest\022\r\n\005topic\030\001 \001(\t\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036Lis" + + "tTopicSubscriptionsResponse\022\025\n\rsubscript" + + "ions\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n\022D" + + "eleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\305\002\n\014Sub" + + "scription\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\0221" + + "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" + + "ushConfig\022\034\n\024ack_deadline_seconds\030\005 \001(\005\022" + + "\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032messag" + + "e_retention_duration\030\010 \001(\0132\031.google.prot" + + "obuf.Duration\022:\n\006labels\030\t \003(\0132*.google.p" + + "ubsub.v1.Subscription.LabelsEntry\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"\230\001\n\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@" + + "\n\nattributes\030\002 \003(\0132,.google.pubsub.v1.Pu" + + "shConfig.AttributesEntry\0321\n\017AttributesEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\017R" + + "eceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007messag" + + "e\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessage" + + "\".\n\026GetSubscriptionRequest\022\024\n\014subscripti" + + "on\030\001 \001(\t\"\202\001\n\031UpdateSubscriptionRequest\0224" + + "\n\014subscription\030\001 \001(\0132\036.google.pubsub.v1." + + "Subscription\022/\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMask\"R\n\030ListSubscriptio" + + "nsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubscri" + + "ptionsResponse\0225\n\rsubscriptions\030\001 \003(\0132\036." + + "google.pubsub.v1.Subscription\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"1\n\031DeleteSubscriptionRequ" + + "est\022\024\n\014subscription\030\001 \001(\t\"b\n\027ModifyPushC" + + "onfigRequest\022\024\n\014subscription\030\001 \001(\t\0221\n\013pu" + + "sh_config\030\002 \001(\0132\034.google.pubsub.v1.PushC" + + "onfig\"U\n\013PullRequest\022\024\n\014subscription\030\001 \001" + + "(\t\022\032\n\022return_immediately\030\002 \001(\010\022\024\n\014max_me" + + "ssages\030\003 \001(\005\"L\n\014PullResponse\022<\n\021received" + + "_messages\030\001 \003(\0132!.google.pubsub.v1.Recei" + + "vedMessage\"_\n\030ModifyAckDeadlineRequest\022\024" + + "\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t\022\034\n" + + "\024ack_deadline_seconds\030\003 \001(\005\";\n\022Acknowled" + + "geRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_i" + + "ds\030\002 \003(\t\"\244\001\n\024StreamingPullRequest\022\024\n\014sub" + + "scription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modi" + + "fy_deadline_seconds\030\003 \003(\005\022\037\n\027modify_dead" + + "line_ack_ids\030\004 \003(\t\022#\n\033stream_ack_deadlin" + + "e_seconds\030\005 \001(\005\"U\n\025StreamingPullResponse" + + "\022<\n\021received_messages\030\001 \003(\0132!.google.pub" + + "sub.v1.ReceivedMessage\";\n\025CreateSnapshot" + + "Request\022\014\n\004name\030\001 \001(\t\022\024\n\014subscription\030\002 " + + "\001(\t\"v\n\025UpdateSnapshotRequest\022,\n\010snapshot" + + "\030\001 \001(\0132\032.google.pubsub.v1.Snapshot\022/\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030" + + "\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.google.prot" + + "obuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.google." + + "pubsub.v1.Snapshot.LabelsEntry\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"N\n" + + "\024ListSnapshotsRequest\022\017\n\007project\030\001 \001(\t\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n" + + "\025ListSnapshotsResponse\022-\n\tsnapshots\030\001 \003(" + + "\0132\032.google.pubsub.v1.Snapshot\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\")\n\025DeleteSnapshotRequest\022" + + "\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest\022\024\n\014subs" + + "cription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampH\000\022\022\n\010snapshot\030\003 \001(\tH\000B\010" + + "\n\006target\"\016\n\014SeekResponse2\367\020\n\nSubscriber\022" + + "\206\001\n\022CreateSubscription\022\036.google.pubsub.v" + + "1.Subscription\032\036.google.pubsub.v1.Subscr" + + "iption\"0\202\323\344\223\002*\032%/v1/{name=projects/*/sub" + + "scriptions/*}:\001*\022\222\001\n\017GetSubscription\022(.g" + + "oogle.pubsub.v1.GetSubscriptionRequest\032\036" + + ".google.pubsub.v1.Subscription\"5\202\323\344\223\002/\022-" + + "/v1/{subscription=projects/*/subscriptio" + + "ns/*}\022\240\001\n\022UpdateSubscription\022+.google.pu" + + "bsub.v1.UpdateSubscriptionRequest\032\036.goog" + + "le.pubsub.v1.Subscription\"=\202\323\344\223\002722/v1/{" + + "subscription.name=projects/*/subscriptio" + + "ns/*}:\001*\022\234\001\n\021ListSubscriptions\022*.google." + + "pubsub.v1.ListSubscriptionsRequest\032+.goo" + + "gle.pubsub.v1.ListSubscriptionsResponse\"" + + ".\202\323\344\223\002(\022&/v1/{project=projects/*}/subscr" + + "iptions\022\220\001\n\022DeleteSubscription\022+.google." + + "pubsub.v1.DeleteSubscriptionRequest\032\026.go" + + "ogle.protobuf.Empty\"5\202\323\344\223\002/*-/v1/{subscr" + + "iption=projects/*/subscriptions/*}\022\243\001\n\021M" + + "odifyAckDeadline\022*.google.pubsub.v1.Modi" + + "fyAckDeadlineRequest\032\026.google.protobuf.E" + + "mpty\"J\202\323\344\223\002D\"?/v1/{subscription=projects" + + "/*/subscriptions/*}:modifyAckDeadline:\001*" + + "\022\221\001\n\013Acknowledge\022$.google.pubsub.v1.Ackn" + + "owledgeRequest\032\026.google.protobuf.Empty\"D" + + "\202\323\344\223\002>\"9/v1/{subscription=projects/*/sub" + + "scriptions/*}:acknowledge:\001*\022\204\001\n\004Pull\022\035." + + "google.pubsub.v1.PullRequest\032\036.google.pu" + + "bsub.v1.PullResponse\"=\202\323\344\223\0027\"2/v1/{subsc" + + "ription=projects/*/subscriptions/*}:pull" + + ":\001*\022d\n\rStreamingPull\022&.google.pubsub.v1." + + "StreamingPullRequest\032\'.google.pubsub.v1." + + "StreamingPullResponse(\0010\001\022\240\001\n\020ModifyPush" + + "Config\022).google.pubsub.v1.ModifyPushConf" + + "igRequest\032\026.google.protobuf.Empty\"I\202\323\344\223\002" + + "C\">/v1/{subscription=projects/*/subscrip" + + "tions/*}:modifyPushConfig:\001*\022\214\001\n\rListSna" + + "pshots\022&.google.pubsub.v1.ListSnapshotsR" + + "equest\032\'.google.pubsub.v1.ListSnapshotsR" + + "esponse\"*\202\323\344\223\002$\022\"/v1/{project=projects/*" + + "}/snapshots\022\203\001\n\016CreateSnapshot\022\'.google." + + "pubsub.v1.CreateSnapshotRequest\032\032.google" + + ".pubsub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=p" + + "rojects/*/snapshots/*}:\001*\022\214\001\n\016UpdateSnap" + + "shot\022\'.google.pubsub.v1.UpdateSnapshotRe" + + "quest\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002" + + "/2*/v1/{snapshot.name=projects/*/snapsho" + + "ts/*}:\001*\022\200\001\n\016DeleteSnapshot\022\'.google.pub" + + "sub.v1.DeleteSnapshotRequest\032\026.google.pr" + + "otobuf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=proj" + + "ects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pu" + + "bsub.v1.SeekRequest\032\036.google.pubsub.v1.S" + + "eekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=p" + + "rojects/*/subscriptions/*}:seek:\001*2\232\007\n\tP" + + "ublisher\022j\n\013CreateTopic\022\027.google.pubsub." + + "v1.Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223\002" + + "#\032\036/v1/{name=projects/*/topics/*}:\001*\022}\n\013" + + "UpdateTopic\022$.google.pubsub.v1.UpdateTop" + + "icRequest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223" + + "\002)2$/v1/{topic.name=projects/*/topics/*}" + + ":\001*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publi" + + "shRequest\032!.google.pubsub.v1.PublishResp" + + "onse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topi" + + "cs/*}:publish:\001*\022o\n\010GetTopic\022!.google.pu" + + "bsub.v1.GetTopicRequest\032\027.google.pubsub." + + "v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*/" + + "topics/*}\022\200\001\n\nListTopics\022#.google.pubsub" + + ".v1.ListTopicsRequest\032$.google.pubsub.v1" + + ".ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{projec" + + "t=projects/*}/topics\022\262\001\n\026ListTopicSubscr" + + "iptions\022/.google.pubsub.v1.ListTopicSubs" + + "criptionsRequest\0320.google.pubsub.v1.List" + + "TopicSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/" + + "{topic=projects/*/topics/*}/subscription" + + "s\022t\n\013DeleteTopic\022$.google.pubsub.v1.Dele" + + "teTopicRequest\032\026.google.protobuf.Empty\"\'" + + "\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}B" + + "\222\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z" + + "6google.golang.org/genproto/googleapis/p" + + "ubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub" + + ".V1\312\002\026Google\\Cloud\\PubSub\\V1b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }, assigner); + internal_static_google_pubsub_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Topic_descriptor, + new java.lang.String[] { "Name", "Labels", }); + internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_PubsubMessage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PubsubMessage_descriptor, + new java.lang.String[] { "Data", "Attributes", "MessageId", "PublishTime", }); + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PubsubMessage_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_GetTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetTopicRequest_descriptor, + new java.lang.String[] { "Topic", }); + internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, + new java.lang.String[] { "Topic", "UpdateMask", }); + internal_static_google_pubsub_v1_PublishRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PublishRequest_descriptor, + new java.lang.String[] { "Topic", "Messages", }); + internal_static_google_pubsub_v1_PublishResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PublishResponse_descriptor, + new java.lang.String[] { "MessageIds", }); + internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, + new java.lang.String[] { "Project", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, + new java.lang.String[] { "Topics", "NextPageToken", }); + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, + new java.lang.String[] { "Topic", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, + new java.lang.String[] { "Subscriptions", "NextPageToken", }); + internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, + new java.lang.String[] { "Topic", }); + internal_static_google_pubsub_v1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Subscription_descriptor, + new java.lang.String[] { "Name", "Topic", "PushConfig", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", "Labels", }); + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_PushConfig_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_descriptor, + new java.lang.String[] { "PushEndpoint", "Attributes", }); + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_ReceivedMessage_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ReceivedMessage_descriptor, + new java.lang.String[] { "AckId", "Message", }); + internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, + new java.lang.String[] { "Subscription", }); + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, + new java.lang.String[] { "Subscription", "UpdateMask", }); + internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, + new java.lang.String[] { "Project", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, + new java.lang.String[] { "Subscriptions", "NextPageToken", }); + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, + new java.lang.String[] { "Subscription", }); + internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, + new java.lang.String[] { "Subscription", "PushConfig", }); + internal_static_google_pubsub_v1_PullRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PullRequest_descriptor, + new java.lang.String[] { "Subscription", "ReturnImmediately", "MaxMessages", }); + internal_static_google_pubsub_v1_PullResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PullResponse_descriptor, + new java.lang.String[] { "ReceivedMessages", }); + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, + new java.lang.String[] { "Subscription", "AckIds", "AckDeadlineSeconds", }); + internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, + new java.lang.String[] { "Subscription", "AckIds", }); + internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, + new java.lang.String[] { "Subscription", "AckIds", "ModifyDeadlineSeconds", "ModifyDeadlineAckIds", "StreamAckDeadlineSeconds", }); + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, + new java.lang.String[] { "ReceivedMessages", }); + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, + new java.lang.String[] { "Name", "Subscription", }); + internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, + new java.lang.String[] { "Snapshot", "UpdateMask", }); + internal_static_google_pubsub_v1_Snapshot_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Snapshot_descriptor, + new java.lang.String[] { "Name", "Topic", "ExpireTime", "Labels", }); + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Snapshot_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, + new java.lang.String[] { "Project", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, + new java.lang.String[] { "Snapshots", "NextPageToken", }); + internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, + new java.lang.String[] { "Snapshot", }); + internal_static_google_pubsub_v1_SeekRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_SeekRequest_descriptor, + new java.lang.String[] { "Subscription", "Time", "Snapshot", "Target", }); + internal_static_google_pubsub_v1_SeekResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_SeekResponse_descriptor, + new java.lang.String[] { }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.AnnotationsProto.http); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java new file mode 100644 index 000000000000..c01a02625b10 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -0,0 +1,732 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the `Pull` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.PullRequest} + */ +public final class PullRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullRequest) + PullRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use PullRequest.newBuilder() to construct. + private PullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PullRequest() { + subscription_ = ""; + returnImmediately_ = false; + maxMessages_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PullRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } + case 16: { + + returnImmediately_ = input.readBool(); + break; + } + case 24: { + + maxMessages_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PullRequest.class, com.google.pubsub.v1.PullRequest.Builder.class); + } + + public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object subscription_; + /** + *
+   * The subscription from which messages should be pulled.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + *
+   * The subscription from which messages should be pulled.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RETURN_IMMEDIATELY_FIELD_NUMBER = 2; + private boolean returnImmediately_; + /** + *
+   * 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. The
+   * client may cancel the request if it does not wish to wait any longer for
+   * the response.
+   * 
+ * + * bool return_immediately = 2; + */ + public boolean getReturnImmediately() { + return returnImmediately_; + } + + public static final int MAX_MESSAGES_FIELD_NUMBER = 3; + private int maxMessages_; + /** + *
+   * The maximum number of messages returned for this request. The Pub/Sub
+   * system may return fewer than the number specified.
+   * 
+ * + * int32 max_messages = 3; + */ + public int getMaxMessages() { + return maxMessages_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSubscriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + } + if (returnImmediately_ != false) { + output.writeBool(2, returnImmediately_); + } + if (maxMessages_ != 0) { + output.writeInt32(3, maxMessages_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubscriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + } + if (returnImmediately_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, returnImmediately_); + } + if (maxMessages_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxMessages_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.PullRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.PullRequest other = (com.google.pubsub.v1.PullRequest) obj; + + boolean result = true; + result = result && getSubscription() + .equals(other.getSubscription()); + result = result && (getReturnImmediately() + == other.getReturnImmediately()); + result = result && (getMaxMessages() + == other.getMaxMessages()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + hash = (37 * hash) + RETURN_IMMEDIATELY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReturnImmediately()); + hash = (37 * hash) + MAX_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMaxMessages(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.PullRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PullRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PullRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PullRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PullRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PullRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PullRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PullRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PullRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PullRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PullRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PullRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.PullRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `Pull` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.PullRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PullRequest) + com.google.pubsub.v1.PullRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PullRequest.class, com.google.pubsub.v1.PullRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.PullRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subscription_ = ""; + + returnImmediately_ = false; + + maxMessages_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; + } + + public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.PullRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.PullRequest build() { + com.google.pubsub.v1.PullRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.PullRequest buildPartial() { + com.google.pubsub.v1.PullRequest result = new com.google.pubsub.v1.PullRequest(this); + result.subscription_ = subscription_; + result.returnImmediately_ = returnImmediately_; + result.maxMessages_ = maxMessages_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.PullRequest) { + return mergeFrom((com.google.pubsub.v1.PullRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PullRequest other) { + if (other == com.google.pubsub.v1.PullRequest.getDefaultInstance()) return this; + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + onChanged(); + } + if (other.getReturnImmediately() != false) { + setReturnImmediately(other.getReturnImmediately()); + } + if (other.getMaxMessages() != 0) { + setMaxMessages(other.getMaxMessages()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.PullRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.PullRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object subscription_ = ""; + /** + *
+     * The subscription from which messages should be pulled.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The subscription from which messages should be pulled.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The subscription from which messages should be pulled.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subscription_ = value; + onChanged(); + return this; + } + /** + *
+     * The subscription from which messages should be pulled.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder clearSubscription() { + + subscription_ = getDefaultInstance().getSubscription(); + onChanged(); + return this; + } + /** + *
+     * The subscription from which messages should be pulled.
+     * Format is `projects/{project}/subscriptions/{sub}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subscription_ = value; + onChanged(); + return this; + } + + private boolean returnImmediately_ ; + /** + *
+     * 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. The
+     * client may cancel the request if it does not wish to wait any longer for
+     * the response.
+     * 
+ * + * bool return_immediately = 2; + */ + public boolean getReturnImmediately() { + return returnImmediately_; + } + /** + *
+     * 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. The
+     * client may cancel the request if it does not wish to wait any longer for
+     * the response.
+     * 
+ * + * bool return_immediately = 2; + */ + public Builder setReturnImmediately(boolean value) { + + returnImmediately_ = value; + onChanged(); + return this; + } + /** + *
+     * 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. The
+     * client may cancel the request if it does not wish to wait any longer for
+     * the response.
+     * 
+ * + * bool return_immediately = 2; + */ + public Builder clearReturnImmediately() { + + returnImmediately_ = false; + onChanged(); + return this; + } + + private int maxMessages_ ; + /** + *
+     * The maximum number of messages returned for this request. The Pub/Sub
+     * system may return fewer than the number specified.
+     * 
+ * + * int32 max_messages = 3; + */ + public int getMaxMessages() { + return maxMessages_; + } + /** + *
+     * The maximum number of messages returned for this request. The Pub/Sub
+     * system may return fewer than the number specified.
+     * 
+ * + * int32 max_messages = 3; + */ + public Builder setMaxMessages(int value) { + + maxMessages_ = value; + onChanged(); + return this; + } + /** + *
+     * The maximum number of messages returned for this request. The Pub/Sub
+     * system may return fewer than the number specified.
+     * 
+ * + * int32 max_messages = 3; + */ + public Builder clearMaxMessages() { + + maxMessages_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PullRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PullRequest) + private static final com.google.pubsub.v1.PullRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PullRequest(); + } + + public static com.google.pubsub.v1.PullRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PullRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PullRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java new file mode 100644 index 000000000000..963030348343 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface PullRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PullRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The subscription from which messages should be pulled.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + java.lang.String getSubscription(); + /** + *
+   * The subscription from which messages should be pulled.
+   * Format is `projects/{project}/subscriptions/{sub}`.
+   * 
+ * + * string subscription = 1; + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); + + /** + *
+   * 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. The
+   * client may cancel the request if it does not wish to wait any longer for
+   * the response.
+   * 
+ * + * bool return_immediately = 2; + */ + boolean getReturnImmediately(); + + /** + *
+   * The maximum number of messages returned for this request. The Pub/Sub
+   * system may return fewer than the number specified.
+   * 
+ * + * int32 max_messages = 3; + */ + int getMaxMessages(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java new file mode 100644 index 000000000000..3a4694f88ce5 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -0,0 +1,903 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Response for the `Pull` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.PullResponse} + */ +public final class PullResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullResponse) + PullResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use PullResponse.newBuilder() to construct. + private PullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PullResponse() { + receivedMessages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PullResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + receivedMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + receivedMessages_.add( + input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PullResponse.class, com.google.pubsub.v1.PullResponse.Builder.class); + } + + public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; + private java.util.List receivedMessages_; + /** + *
+   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+   * there are no more available in the backlog. The Pub/Sub system may return
+   * fewer than the `maxMessages` requested even if there are more messages
+   * available in the backlog.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List getReceivedMessagesList() { + return receivedMessages_; + } + /** + *
+   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+   * there are no more available in the backlog. The Pub/Sub system may return
+   * fewer than the `maxMessages` requested even if there are more messages
+   * available in the backlog.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List + getReceivedMessagesOrBuilderList() { + return receivedMessages_; + } + /** + *
+   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+   * there are no more available in the backlog. The Pub/Sub system may return
+   * fewer than the `maxMessages` requested even if there are more messages
+   * available in the backlog.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public int getReceivedMessagesCount() { + return receivedMessages_.size(); + } + /** + *
+   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+   * there are no more available in the backlog. The Pub/Sub system may return
+   * fewer than the `maxMessages` requested even if there are more messages
+   * available in the backlog.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { + return receivedMessages_.get(index); + } + /** + *
+   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+   * there are no more available in the backlog. The Pub/Sub system may return
+   * fewer than the `maxMessages` requested even if there are more messages
+   * available in the backlog.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( + int index) { + return receivedMessages_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < receivedMessages_.size(); i++) { + output.writeMessage(1, receivedMessages_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < receivedMessages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, receivedMessages_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.PullResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.PullResponse other = (com.google.pubsub.v1.PullResponse) obj; + + boolean result = true; + result = result && getReceivedMessagesList() + .equals(other.getReceivedMessagesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReceivedMessagesCount() > 0) { + hash = (37 * hash) + RECEIVED_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getReceivedMessagesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.PullResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PullResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PullResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PullResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PullResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PullResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PullResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PullResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PullResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PullResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PullResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PullResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.PullResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for the `Pull` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.PullResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PullResponse) + com.google.pubsub.v1.PullResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PullResponse.class, com.google.pubsub.v1.PullResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.PullResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getReceivedMessagesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (receivedMessagesBuilder_ == null) { + receivedMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + receivedMessagesBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; + } + + public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.PullResponse.getDefaultInstance(); + } + + public com.google.pubsub.v1.PullResponse build() { + com.google.pubsub.v1.PullResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.PullResponse buildPartial() { + com.google.pubsub.v1.PullResponse result = new com.google.pubsub.v1.PullResponse(this); + int from_bitField0_ = bitField0_; + if (receivedMessagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.receivedMessages_ = receivedMessages_; + } else { + result.receivedMessages_ = receivedMessagesBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.PullResponse) { + return mergeFrom((com.google.pubsub.v1.PullResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PullResponse other) { + if (other == com.google.pubsub.v1.PullResponse.getDefaultInstance()) return this; + if (receivedMessagesBuilder_ == null) { + if (!other.receivedMessages_.isEmpty()) { + if (receivedMessages_.isEmpty()) { + receivedMessages_ = other.receivedMessages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReceivedMessagesIsMutable(); + receivedMessages_.addAll(other.receivedMessages_); + } + onChanged(); + } + } else { + if (!other.receivedMessages_.isEmpty()) { + if (receivedMessagesBuilder_.isEmpty()) { + receivedMessagesBuilder_.dispose(); + receivedMessagesBuilder_ = null; + receivedMessages_ = other.receivedMessages_; + bitField0_ = (bitField0_ & ~0x00000001); + receivedMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReceivedMessagesFieldBuilder() : null; + } else { + receivedMessagesBuilder_.addAllMessages(other.receivedMessages_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.PullResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.PullResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List receivedMessages_ = + java.util.Collections.emptyList(); + private void ensureReceivedMessagesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + receivedMessages_ = new java.util.ArrayList(receivedMessages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> receivedMessagesBuilder_; + + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List getReceivedMessagesList() { + if (receivedMessagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(receivedMessages_); + } else { + return receivedMessagesBuilder_.getMessageList(); + } + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public int getReceivedMessagesCount() { + if (receivedMessagesBuilder_ == null) { + return receivedMessages_.size(); + } else { + return receivedMessagesBuilder_.getCount(); + } + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { + if (receivedMessagesBuilder_ == null) { + return receivedMessages_.get(index); + } else { + return receivedMessagesBuilder_.getMessage(index); + } + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder setReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage value) { + if (receivedMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceivedMessagesIsMutable(); + receivedMessages_.set(index, value); + onChanged(); + } else { + receivedMessagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder setReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.set(index, builderForValue.build()); + onChanged(); + } else { + receivedMessagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { + if (receivedMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(value); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage value) { + if (receivedMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(index, value); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages( + com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(builderForValue.build()); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(index, builderForValue.build()); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addAllReceivedMessages( + java.lang.Iterable values) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, receivedMessages_); + onChanged(); + } else { + receivedMessagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder clearReceivedMessages() { + if (receivedMessagesBuilder_ == null) { + receivedMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + receivedMessagesBuilder_.clear(); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder removeReceivedMessages(int index) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.remove(index); + onChanged(); + } else { + receivedMessagesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder( + int index) { + return getReceivedMessagesFieldBuilder().getBuilder(index); + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( + int index) { + if (receivedMessagesBuilder_ == null) { + return receivedMessages_.get(index); } else { + return receivedMessagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List + getReceivedMessagesOrBuilderList() { + if (receivedMessagesBuilder_ != null) { + return receivedMessagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(receivedMessages_); + } + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { + return getReceivedMessagesFieldBuilder().addBuilder( + com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( + int index) { + return getReceivedMessagesFieldBuilder().addBuilder( + index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + } + /** + *
+     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+     * there are no more available in the backlog. The Pub/Sub system may return
+     * fewer than the `maxMessages` requested even if there are more messages
+     * available in the backlog.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List + getReceivedMessagesBuilderList() { + return getReceivedMessagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> + getReceivedMessagesFieldBuilder() { + if (receivedMessagesBuilder_ == null) { + receivedMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>( + receivedMessages_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + receivedMessages_ = null; + } + return receivedMessagesBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PullResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PullResponse) + private static final com.google.pubsub.v1.PullResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PullResponse(); + } + + public static com.google.pubsub.v1.PullResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PullResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PullResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java new file mode 100644 index 000000000000..2271de7e17f6 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface PullResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PullResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+   * there are no more available in the backlog. The Pub/Sub system may return
+   * fewer than the `maxMessages` requested even if there are more messages
+   * available in the backlog.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + java.util.List + getReceivedMessagesList(); + /** + *
+   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+   * there are no more available in the backlog. The Pub/Sub system may return
+   * fewer than the `maxMessages` requested even if there are more messages
+   * available in the backlog.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); + /** + *
+   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+   * there are no more available in the backlog. The Pub/Sub system may return
+   * fewer than the `maxMessages` requested even if there are more messages
+   * available in the backlog.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + int getReceivedMessagesCount(); + /** + *
+   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+   * there are no more available in the backlog. The Pub/Sub system may return
+   * fewer than the `maxMessages` requested even if there are more messages
+   * available in the backlog.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + java.util.List + getReceivedMessagesOrBuilderList(); + /** + *
+   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
+   * there are no more available in the backlog. The Pub/Sub system may return
+   * fewer than the `maxMessages` requested even if there are more messages
+   * available in the backlog.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( + int index); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java new file mode 100644 index 000000000000..fbb7e018afa9 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -0,0 +1,1045 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Configuration for a push delivery endpoint.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.PushConfig} + */ +public final class PushConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig) + PushConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use PushConfig.newBuilder() to construct. + private PushConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PushConfig() { + pushEndpoint_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PushConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + pushEndpoint_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + attributes_.getMutableMap().put( + attributes__.getKey(), attributes__.getValue()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PushConfig.class, com.google.pubsub.v1.PushConfig.Builder.class); + } + + private int bitField0_; + public static final int PUSH_ENDPOINT_FIELD_NUMBER = 1; + private volatile java.lang.Object pushEndpoint_; + /** + *
+   * A URL locating the endpoint to which messages should be pushed.
+   * For example, a Webhook endpoint might use "https://example.com/push".
+   * 
+ * + * string push_endpoint = 1; + */ + public java.lang.String getPushEndpoint() { + java.lang.Object ref = pushEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pushEndpoint_ = s; + return s; + } + } + /** + *
+   * A URL locating the endpoint to which messages should be pushed.
+   * For example, a Webhook endpoint might use "https://example.com/push".
+   * 
+ * + * string push_endpoint = 1; + */ + public com.google.protobuf.ByteString + getPushEndpointBytes() { + java.lang.Object ref = pushEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pushEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 2; + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+   * Endpoint configuration attributes.
+   * Every endpoint has a set of API supported attributes that can be used to
+   * control different aspects of the message delivery.
+   * The currently supported attribute is `x-goog-version`, which you can
+   * use to change the format of the pushed message. This attribute
+   * indicates the version of the data expected by the endpoint. This
+   * controls the shape of the pushed message (i.e., its fields and metadata).
+   * The endpoint version is based on the version of the Pub/Sub API.
+   * If not present during the `CreateSubscription` call, it will default to
+   * the version of the API used to make such call. If not present during a
+   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+   * calls will always return a valid version, even if the subscription was
+   * created without this attribute.
+   * The possible values for this attribute are:
+   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+   * Endpoint configuration attributes.
+   * Every endpoint has a set of API supported attributes that can be used to
+   * control different aspects of the message delivery.
+   * The currently supported attribute is `x-goog-version`, which you can
+   * use to change the format of the pushed message. This attribute
+   * indicates the version of the data expected by the endpoint. This
+   * controls the shape of the pushed message (i.e., its fields and metadata).
+   * The endpoint version is based on the version of the Pub/Sub API.
+   * If not present during the `CreateSubscription` call, it will default to
+   * the version of the API used to make such call. If not present during a
+   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+   * calls will always return a valid version, even if the subscription was
+   * created without this attribute.
+   * The possible values for this attribute are:
+   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+   * Endpoint configuration attributes.
+   * Every endpoint has a set of API supported attributes that can be used to
+   * control different aspects of the message delivery.
+   * The currently supported attribute is `x-goog-version`, which you can
+   * use to change the format of the pushed message. This attribute
+   * indicates the version of the data expected by the endpoint. This
+   * controls the shape of the pushed message (i.e., its fields and metadata).
+   * The endpoint version is based on the version of the Pub/Sub API.
+   * If not present during the `CreateSubscription` call, it will default to
+   * the version of the API used to make such call. If not present during a
+   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+   * calls will always return a valid version, even if the subscription was
+   * created without this attribute.
+   * The possible values for this attribute are:
+   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + public java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Endpoint configuration attributes.
+   * Every endpoint has a set of API supported attributes that can be used to
+   * control different aspects of the message delivery.
+   * The currently supported attribute is `x-goog-version`, which you can
+   * use to change the format of the pushed message. This attribute
+   * indicates the version of the data expected by the endpoint. This
+   * controls the shape of the pushed message (i.e., its fields and metadata).
+   * The endpoint version is based on the version of the Pub/Sub API.
+   * If not present during the `CreateSubscription` call, it will default to
+   * the version of the API used to make such call. If not present during a
+   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+   * calls will always return a valid version, even if the subscription was
+   * created without this attribute.
+   * The possible values for this attribute are:
+   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + public java.lang.String getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getPushEndpointBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pushEndpoint_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 2); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getPushEndpointBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pushEndpoint_); + } + for (java.util.Map.Entry entry + : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, attributes__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.PushConfig)) { + return super.equals(obj); + } + com.google.pubsub.v1.PushConfig other = (com.google.pubsub.v1.PushConfig) obj; + + boolean result = true; + result = result && getPushEndpoint() + .equals(other.getPushEndpoint()); + result = result && internalGetAttributes().equals( + other.internalGetAttributes()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PUSH_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getPushEndpoint().hashCode(); + if (!internalGetAttributes().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.PushConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PushConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PushConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PushConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PushConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.PushConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.PushConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PushConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PushConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PushConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.PushConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.PushConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.PushConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Configuration for a push delivery endpoint.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.PushConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig) + com.google.pubsub.v1.PushConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PushConfig.class, com.google.pubsub.v1.PushConfig.Builder.class); + } + + // Construct using com.google.pubsub.v1.PushConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + pushEndpoint_ = ""; + + internalGetMutableAttributes().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; + } + + public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() { + return com.google.pubsub.v1.PushConfig.getDefaultInstance(); + } + + public com.google.pubsub.v1.PushConfig build() { + com.google.pubsub.v1.PushConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.PushConfig buildPartial() { + com.google.pubsub.v1.PushConfig result = new com.google.pubsub.v1.PushConfig(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.pushEndpoint_ = pushEndpoint_; + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.PushConfig) { + return mergeFrom((com.google.pubsub.v1.PushConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { + if (other == com.google.pubsub.v1.PushConfig.getDefaultInstance()) return this; + if (!other.getPushEndpoint().isEmpty()) { + pushEndpoint_ = other.pushEndpoint_; + onChanged(); + } + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.PushConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.PushConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object pushEndpoint_ = ""; + /** + *
+     * A URL locating the endpoint to which messages should be pushed.
+     * For example, a Webhook endpoint might use "https://example.com/push".
+     * 
+ * + * string push_endpoint = 1; + */ + public java.lang.String getPushEndpoint() { + java.lang.Object ref = pushEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pushEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A URL locating the endpoint to which messages should be pushed.
+     * For example, a Webhook endpoint might use "https://example.com/push".
+     * 
+ * + * string push_endpoint = 1; + */ + public com.google.protobuf.ByteString + getPushEndpointBytes() { + java.lang.Object ref = pushEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pushEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A URL locating the endpoint to which messages should be pushed.
+     * For example, a Webhook endpoint might use "https://example.com/push".
+     * 
+ * + * string push_endpoint = 1; + */ + public Builder setPushEndpoint( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pushEndpoint_ = value; + onChanged(); + return this; + } + /** + *
+     * A URL locating the endpoint to which messages should be pushed.
+     * For example, a Webhook endpoint might use "https://example.com/push".
+     * 
+ * + * string push_endpoint = 1; + */ + public Builder clearPushEndpoint() { + + pushEndpoint_ = getDefaultInstance().getPushEndpoint(); + onChanged(); + return this; + } + /** + *
+     * A URL locating the endpoint to which messages should be pushed.
+     * For example, a Webhook endpoint might use "https://example.com/push".
+     * 
+ * + * string push_endpoint = 1; + */ + public Builder setPushEndpointBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pushEndpoint_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + private com.google.protobuf.MapField + internalGetMutableAttributes() { + onChanged();; + if (attributes_ == null) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + if (!attributes_.isMutable()) { + attributes_ = attributes_.copy(); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+     * Endpoint configuration attributes.
+     * Every endpoint has a set of API supported attributes that can be used to
+     * control different aspects of the message delivery.
+     * The currently supported attribute is `x-goog-version`, which you can
+     * use to change the format of the pushed message. This attribute
+     * indicates the version of the data expected by the endpoint. This
+     * controls the shape of the pushed message (i.e., its fields and metadata).
+     * The endpoint version is based on the version of the Pub/Sub API.
+     * If not present during the `CreateSubscription` call, it will default to
+     * the version of the API used to make such call. If not present during a
+     * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+     * calls will always return a valid version, even if the subscription was
+     * created without this attribute.
+     * The possible values for this attribute are:
+     * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+     * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+     * Endpoint configuration attributes.
+     * Every endpoint has a set of API supported attributes that can be used to
+     * control different aspects of the message delivery.
+     * The currently supported attribute is `x-goog-version`, which you can
+     * use to change the format of the pushed message. This attribute
+     * indicates the version of the data expected by the endpoint. This
+     * controls the shape of the pushed message (i.e., its fields and metadata).
+     * The endpoint version is based on the version of the Pub/Sub API.
+     * If not present during the `CreateSubscription` call, it will default to
+     * the version of the API used to make such call. If not present during a
+     * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+     * calls will always return a valid version, even if the subscription was
+     * created without this attribute.
+     * The possible values for this attribute are:
+     * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+     * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+     * Endpoint configuration attributes.
+     * Every endpoint has a set of API supported attributes that can be used to
+     * control different aspects of the message delivery.
+     * The currently supported attribute is `x-goog-version`, which you can
+     * use to change the format of the pushed message. This attribute
+     * indicates the version of the data expected by the endpoint. This
+     * controls the shape of the pushed message (i.e., its fields and metadata).
+     * The endpoint version is based on the version of the Pub/Sub API.
+     * If not present during the `CreateSubscription` call, it will default to
+     * the version of the API used to make such call. If not present during a
+     * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+     * calls will always return a valid version, even if the subscription was
+     * created without this attribute.
+     * The possible values for this attribute are:
+     * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+     * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Endpoint configuration attributes.
+     * Every endpoint has a set of API supported attributes that can be used to
+     * control different aspects of the message delivery.
+     * The currently supported attribute is `x-goog-version`, which you can
+     * use to change the format of the pushed message. This attribute
+     * indicates the version of the data expected by the endpoint. This
+     * controls the shape of the pushed message (i.e., its fields and metadata).
+     * The endpoint version is based on the version of the Pub/Sub API.
+     * If not present during the `CreateSubscription` call, it will default to
+     * the version of the API used to make such call. If not present during a
+     * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+     * calls will always return a valid version, even if the subscription was
+     * created without this attribute.
+     * The possible values for this attribute are:
+     * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+     * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public java.lang.String getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttributes() { + internalGetMutableAttributes().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Endpoint configuration attributes.
+     * Every endpoint has a set of API supported attributes that can be used to
+     * control different aspects of the message delivery.
+     * The currently supported attribute is `x-goog-version`, which you can
+     * use to change the format of the pushed message. This attribute
+     * indicates the version of the data expected by the endpoint. This
+     * controls the shape of the pushed message (i.e., its fields and metadata).
+     * The endpoint version is based on the version of the Pub/Sub API.
+     * If not present during the `CreateSubscription` call, it will default to
+     * the version of the API used to make such call. If not present during a
+     * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+     * calls will always return a valid version, even if the subscription was
+     * created without this attribute.
+     * The possible values for this attribute are:
+     * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+     * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public Builder removeAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAttributes() { + return internalGetMutableAttributes().getMutableMap(); + } + /** + *
+     * Endpoint configuration attributes.
+     * Every endpoint has a set of API supported attributes that can be used to
+     * control different aspects of the message delivery.
+     * The currently supported attribute is `x-goog-version`, which you can
+     * use to change the format of the pushed message. This attribute
+     * indicates the version of the data expected by the endpoint. This
+     * controls the shape of the pushed message (i.e., its fields and metadata).
+     * The endpoint version is based on the version of the Pub/Sub API.
+     * If not present during the `CreateSubscription` call, it will default to
+     * the version of the API used to make such call. If not present during a
+     * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+     * calls will always return a valid version, even if the subscription was
+     * created without this attribute.
+     * The possible values for this attribute are:
+     * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+     * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+     * 
+ * + * map<string, string> attributes = 2; + */ + public Builder putAttributes( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Endpoint configuration attributes.
+     * Every endpoint has a set of API supported attributes that can be used to
+     * control different aspects of the message delivery.
+     * The currently supported attribute is `x-goog-version`, which you can
+     * use to change the format of the pushed message. This attribute
+     * indicates the version of the data expected by the endpoint. This
+     * controls the shape of the pushed message (i.e., its fields and metadata).
+     * The endpoint version is based on the version of the Pub/Sub API.
+     * If not present during the `CreateSubscription` call, it will default to
+     * the version of the API used to make such call. If not present during a
+     * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+     * calls will always return a valid version, even if the subscription was
+     * created without this attribute.
+     * The possible values for this attribute are:
+     * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+     * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+     * 
+ * + * map<string, string> attributes = 2; + */ + + public Builder putAllAttributes( + java.util.Map values) { + internalGetMutableAttributes().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig) + private static final com.google.pubsub.v1.PushConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig(); + } + + public static com.google.pubsub.v1.PushConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PushConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java new file mode 100644 index 000000000000..10eecfe1060d --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -0,0 +1,158 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface PushConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A URL locating the endpoint to which messages should be pushed.
+   * For example, a Webhook endpoint might use "https://example.com/push".
+   * 
+ * + * string push_endpoint = 1; + */ + java.lang.String getPushEndpoint(); + /** + *
+   * A URL locating the endpoint to which messages should be pushed.
+   * For example, a Webhook endpoint might use "https://example.com/push".
+   * 
+ * + * string push_endpoint = 1; + */ + com.google.protobuf.ByteString + getPushEndpointBytes(); + + /** + *
+   * Endpoint configuration attributes.
+   * Every endpoint has a set of API supported attributes that can be used to
+   * control different aspects of the message delivery.
+   * The currently supported attribute is `x-goog-version`, which you can
+   * use to change the format of the pushed message. This attribute
+   * indicates the version of the data expected by the endpoint. This
+   * controls the shape of the pushed message (i.e., its fields and metadata).
+   * The endpoint version is based on the version of the Pub/Sub API.
+   * If not present during the `CreateSubscription` call, it will default to
+   * the version of the API used to make such call. If not present during a
+   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+   * calls will always return a valid version, even if the subscription was
+   * created without this attribute.
+   * The possible values for this attribute are:
+   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+   * 
+ * + * map<string, string> attributes = 2; + */ + int getAttributesCount(); + /** + *
+   * Endpoint configuration attributes.
+   * Every endpoint has a set of API supported attributes that can be used to
+   * control different aspects of the message delivery.
+   * The currently supported attribute is `x-goog-version`, which you can
+   * use to change the format of the pushed message. This attribute
+   * indicates the version of the data expected by the endpoint. This
+   * controls the shape of the pushed message (i.e., its fields and metadata).
+   * The endpoint version is based on the version of the Pub/Sub API.
+   * If not present during the `CreateSubscription` call, it will default to
+   * the version of the API used to make such call. If not present during a
+   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+   * calls will always return a valid version, even if the subscription was
+   * created without this attribute.
+   * The possible values for this attribute are:
+   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+   * 
+ * + * map<string, string> attributes = 2; + */ + boolean containsAttributes( + java.lang.String key); + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAttributes(); + /** + *
+   * Endpoint configuration attributes.
+   * Every endpoint has a set of API supported attributes that can be used to
+   * control different aspects of the message delivery.
+   * The currently supported attribute is `x-goog-version`, which you can
+   * use to change the format of the pushed message. This attribute
+   * indicates the version of the data expected by the endpoint. This
+   * controls the shape of the pushed message (i.e., its fields and metadata).
+   * The endpoint version is based on the version of the Pub/Sub API.
+   * If not present during the `CreateSubscription` call, it will default to
+   * the version of the API used to make such call. If not present during a
+   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+   * calls will always return a valid version, even if the subscription was
+   * created without this attribute.
+   * The possible values for this attribute are:
+   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+   * 
+ * + * map<string, string> attributes = 2; + */ + java.util.Map + getAttributesMap(); + /** + *
+   * Endpoint configuration attributes.
+   * Every endpoint has a set of API supported attributes that can be used to
+   * control different aspects of the message delivery.
+   * The currently supported attribute is `x-goog-version`, which you can
+   * use to change the format of the pushed message. This attribute
+   * indicates the version of the data expected by the endpoint. This
+   * controls the shape of the pushed message (i.e., its fields and metadata).
+   * The endpoint version is based on the version of the Pub/Sub API.
+   * If not present during the `CreateSubscription` call, it will default to
+   * the version of the API used to make such call. If not present during a
+   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+   * calls will always return a valid version, even if the subscription was
+   * created without this attribute.
+   * The possible values for this attribute are:
+   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + java.lang.String getAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Endpoint configuration attributes.
+   * Every endpoint has a set of API supported attributes that can be used to
+   * control different aspects of the message delivery.
+   * The currently supported attribute is `x-goog-version`, which you can
+   * use to change the format of the pushed message. This attribute
+   * indicates the version of the data expected by the endpoint. This
+   * controls the shape of the pushed message (i.e., its fields and metadata).
+   * The endpoint version is based on the version of the Pub/Sub API.
+   * If not present during the `CreateSubscription` call, it will default to
+   * the version of the API used to make such call. If not present during a
+   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
+   * calls will always return a valid version, even if the subscription was
+   * created without this attribute.
+   * The possible values for this attribute are:
+   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
+   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
+   * 
+ * + * map<string, string> attributes = 2; + */ + + java.lang.String getAttributesOrThrow( + java.lang.String key); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java new file mode 100644 index 000000000000..dec18356e9b0 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -0,0 +1,781 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * A message and its corresponding acknowledgment ID.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ReceivedMessage} + */ +public final class ReceivedMessage extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ReceivedMessage) + ReceivedMessageOrBuilder { +private static final long serialVersionUID = 0L; + // Use ReceivedMessage.newBuilder() to construct. + private ReceivedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ReceivedMessage() { + ackId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ReceivedMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + ackId_ = s; + break; + } + case 18: { + com.google.pubsub.v1.PubsubMessage.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); + } + message_ = input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ReceivedMessage.class, com.google.pubsub.v1.ReceivedMessage.Builder.class); + } + + public static final int ACK_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object ackId_; + /** + *
+   * This ID can be used to acknowledge the received message.
+   * 
+ * + * string ack_id = 1; + */ + public java.lang.String getAckId() { + java.lang.Object ref = ackId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ackId_ = s; + return s; + } + } + /** + *
+   * This ID can be used to acknowledge the received message.
+   * 
+ * + * string ack_id = 1; + */ + public com.google.protobuf.ByteString + getAckIdBytes() { + java.lang.Object ref = ackId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ackId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private com.google.pubsub.v1.PubsubMessage message_; + /** + *
+   * The message.
+   * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public boolean hasMessage() { + return message_ != null; + } + /** + *
+   * The message.
+   * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public com.google.pubsub.v1.PubsubMessage getMessage() { + return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; + } + /** + *
+   * The message.
+   * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { + return getMessage(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getAckIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackId_); + } + if (message_ != null) { + output.writeMessage(2, getMessage()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAckIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ackId_); + } + if (message_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMessage()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ReceivedMessage)) { + return super.equals(obj); + } + com.google.pubsub.v1.ReceivedMessage other = (com.google.pubsub.v1.ReceivedMessage) obj; + + boolean result = true; + result = result && getAckId() + .equals(other.getAckId()); + result = result && (hasMessage() == other.hasMessage()); + if (hasMessage()) { + result = result && getMessage() + .equals(other.getMessage()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ACK_ID_FIELD_NUMBER; + hash = (53 * hash) + getAckId().hashCode(); + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ReceivedMessage parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ReceivedMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ReceivedMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ReceivedMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ReceivedMessage parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ReceivedMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A message and its corresponding acknowledgment ID.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ReceivedMessage} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ReceivedMessage) + com.google.pubsub.v1.ReceivedMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ReceivedMessage.class, com.google.pubsub.v1.ReceivedMessage.Builder.class); + } + + // Construct using com.google.pubsub.v1.ReceivedMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + ackId_ = ""; + + if (messageBuilder_ == null) { + message_ = null; + } else { + message_ = null; + messageBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + } + + public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { + return com.google.pubsub.v1.ReceivedMessage.getDefaultInstance(); + } + + public com.google.pubsub.v1.ReceivedMessage build() { + com.google.pubsub.v1.ReceivedMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ReceivedMessage buildPartial() { + com.google.pubsub.v1.ReceivedMessage result = new com.google.pubsub.v1.ReceivedMessage(this); + result.ackId_ = ackId_; + if (messageBuilder_ == null) { + result.message_ = message_; + } else { + result.message_ = messageBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ReceivedMessage) { + return mergeFrom((com.google.pubsub.v1.ReceivedMessage)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ReceivedMessage other) { + if (other == com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()) return this; + if (!other.getAckId().isEmpty()) { + ackId_ = other.ackId_; + onChanged(); + } + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ReceivedMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ReceivedMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object ackId_ = ""; + /** + *
+     * This ID can be used to acknowledge the received message.
+     * 
+ * + * string ack_id = 1; + */ + public java.lang.String getAckId() { + java.lang.Object ref = ackId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ackId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * This ID can be used to acknowledge the received message.
+     * 
+ * + * string ack_id = 1; + */ + public com.google.protobuf.ByteString + getAckIdBytes() { + java.lang.Object ref = ackId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ackId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * This ID can be used to acknowledge the received message.
+     * 
+ * + * string ack_id = 1; + */ + public Builder setAckId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ackId_ = value; + onChanged(); + return this; + } + /** + *
+     * This ID can be used to acknowledge the received message.
+     * 
+ * + * string ack_id = 1; + */ + public Builder clearAckId() { + + ackId_ = getDefaultInstance().getAckId(); + onChanged(); + return this; + } + /** + *
+     * This ID can be used to acknowledge the received message.
+     * 
+ * + * string ack_id = 1; + */ + public Builder setAckIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ackId_ = value; + onChanged(); + return this; + } + + private com.google.pubsub.v1.PubsubMessage message_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> messageBuilder_; + /** + *
+     * The message.
+     * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public boolean hasMessage() { + return messageBuilder_ != null || message_ != null; + } + /** + *
+     * The message.
+     * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public com.google.pubsub.v1.PubsubMessage getMessage() { + if (messageBuilder_ == null) { + return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; + } else { + return messageBuilder_.getMessage(); + } + } + /** + *
+     * The message.
+     * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + messageBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The message.
+     * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public Builder setMessage( + com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The message.
+     * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { + if (messageBuilder_ == null) { + if (message_ != null) { + message_ = + com.google.pubsub.v1.PubsubMessage.newBuilder(message_).mergeFrom(value).buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + messageBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The message.
+     * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public Builder clearMessage() { + if (messageBuilder_ == null) { + message_ = null; + onChanged(); + } else { + message_ = null; + messageBuilder_ = null; + } + + return this; + } + /** + *
+     * The message.
+     * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { + + onChanged(); + return getMessageFieldBuilder().getBuilder(); + } + /** + *
+     * The message.
+     * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_ == null ? + com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; + } + } + /** + *
+     * The message.
+     * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> + getMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( + getMessage(), + getParentForChildren(), + isClean()); + message_ = null; + } + return messageBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ReceivedMessage) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ReceivedMessage) + private static final com.google.pubsub.v1.ReceivedMessage DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ReceivedMessage(); + } + + public static com.google.pubsub.v1.ReceivedMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ReceivedMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceivedMessage(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java new file mode 100644 index 000000000000..eba13b5290f6 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ReceivedMessageOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ReceivedMessage) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * This ID can be used to acknowledge the received message.
+   * 
+ * + * string ack_id = 1; + */ + java.lang.String getAckId(); + /** + *
+   * This ID can be used to acknowledge the received message.
+   * 
+ * + * string ack_id = 1; + */ + com.google.protobuf.ByteString + getAckIdBytes(); + + /** + *
+   * The message.
+   * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + boolean hasMessage(); + /** + *
+   * The message.
+   * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + com.google.pubsub.v1.PubsubMessage getMessage(); + /** + *
+   * The message.
+   * 
+ * + * .google.pubsub.v1.PubsubMessage message = 2; + */ + com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java new file mode 100644 index 000000000000..9d12081522f7 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -0,0 +1,1188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the `Seek` method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.SeekRequest} + */ +public final class SeekRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekRequest) + SeekRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SeekRequest.newBuilder() to construct. + private SeekRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SeekRequest() { + subscription_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SeekRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (targetCase_ == 2) { + subBuilder = ((com.google.protobuf.Timestamp) target_).toBuilder(); + } + target_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Timestamp) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 2; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 3; + target_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.SeekRequest.class, com.google.pubsub.v1.SeekRequest.Builder.class); + } + + private int targetCase_ = 0; + private java.lang.Object target_; + public enum TargetCase + implements com.google.protobuf.Internal.EnumLite { + TIME(2), + SNAPSHOT(3), + TARGET_NOT_SET(0); + private final int value; + private TargetCase(int value) { + this.value = value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 2: return TIME; + case 3: return SNAPSHOT; + case 0: return TARGET_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object subscription_; + /** + *
+   * The subscription to affect.
+   * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + *
+   * The subscription to affect.
+   * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_FIELD_NUMBER = 2; + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public boolean hasTime() { + return targetCase_ == 2; + } + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public com.google.protobuf.Timestamp getTime() { + if (targetCase_ == 2) { + return (com.google.protobuf.Timestamp) target_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { + if (targetCase_ == 2) { + return (com.google.protobuf.Timestamp) target_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + + public static final int SNAPSHOT_FIELD_NUMBER = 3; + /** + *
+   * 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}`.
+   * 
+ * + * string snapshot = 3; + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 3) { + target_ = s; + } + return s; + } + } + /** + *
+   * 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}`.
+   * 
+ * + * string snapshot = 3; + */ + public com.google.protobuf.ByteString + getSnapshotBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (targetCase_ == 3) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSubscriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + } + if (targetCase_ == 2) { + output.writeMessage(2, (com.google.protobuf.Timestamp) target_); + } + if (targetCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubscriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + } + if (targetCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.Timestamp) target_); + } + if (targetCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.SeekRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.SeekRequest other = (com.google.pubsub.v1.SeekRequest) obj; + + boolean result = true; + result = result && getSubscription() + .equals(other.getSubscription()); + result = result && getTargetCase().equals( + other.getTargetCase()); + if (!result) return false; + switch (targetCase_) { + case 2: + result = result && getTime() + .equals(other.getTime()); + break; + case 3: + result = result && getSnapshot() + .equals(other.getSnapshot()); + break; + case 0: + default: + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + switch (targetCase_) { + case 2: + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + getTime().hashCode(); + break; + case 3: + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.SeekRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.SeekRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.SeekRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.SeekRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.SeekRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.SeekRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.SeekRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.SeekRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.SeekRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.SeekRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.SeekRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.SeekRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.SeekRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `Seek` method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.SeekRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SeekRequest) + com.google.pubsub.v1.SeekRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.SeekRequest.class, com.google.pubsub.v1.SeekRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.SeekRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subscription_ = ""; + + targetCase_ = 0; + target_ = null; + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; + } + + public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.SeekRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.SeekRequest build() { + com.google.pubsub.v1.SeekRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.SeekRequest buildPartial() { + com.google.pubsub.v1.SeekRequest result = new com.google.pubsub.v1.SeekRequest(this); + result.subscription_ = subscription_; + if (targetCase_ == 2) { + if (timeBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = timeBuilder_.build(); + } + } + if (targetCase_ == 3) { + result.target_ = target_; + } + result.targetCase_ = targetCase_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.SeekRequest) { + return mergeFrom((com.google.pubsub.v1.SeekRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.SeekRequest other) { + if (other == com.google.pubsub.v1.SeekRequest.getDefaultInstance()) return this; + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + onChanged(); + } + switch (other.getTargetCase()) { + case TIME: { + mergeTime(other.getTime()); + break; + } + case SNAPSHOT: { + targetCase_ = 3; + target_ = other.target_; + onChanged(); + break; + } + case TARGET_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.SeekRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.SeekRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + + private java.lang.Object subscription_ = ""; + /** + *
+     * The subscription to affect.
+     * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The subscription to affect.
+     * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The subscription to affect.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subscription_ = value; + onChanged(); + return this; + } + /** + *
+     * The subscription to affect.
+     * 
+ * + * string subscription = 1; + */ + public Builder clearSubscription() { + + subscription_ = getDefaultInstance().getSubscription(); + onChanged(); + return this; + } + /** + *
+     * The subscription to affect.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subscription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public boolean hasTime() { + return targetCase_ == 2; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public com.google.protobuf.Timestamp getTime() { + if (timeBuilder_ == null) { + if (targetCase_ == 2) { + return (com.google.protobuf.Timestamp) target_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } else { + if (targetCase_ == 2) { + return timeBuilder_.getMessage(); + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public Builder setTime(com.google.protobuf.Timestamp value) { + if (timeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + timeBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public Builder setTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (timeBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + timeBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 2; + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public Builder mergeTime(com.google.protobuf.Timestamp value) { + if (timeBuilder_ == null) { + if (targetCase_ == 2 && + target_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + target_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) target_) + .mergeFrom(value).buildPartial(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 2) { + timeBuilder_.mergeFrom(value); + } + timeBuilder_.setMessage(value); + } + targetCase_ = 2; + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public Builder clearTime() { + if (timeBuilder_ == null) { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + } + timeBuilder_.clear(); + } + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public com.google.protobuf.Timestamp.Builder getTimeBuilder() { + return getTimeFieldBuilder().getBuilder(); + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { + if ((targetCase_ == 2) && (timeBuilder_ != null)) { + return timeBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 2) { + return (com.google.protobuf.Timestamp) target_; + } + return com.google.protobuf.Timestamp.getDefaultInstance(); + } + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getTimeFieldBuilder() { + if (timeBuilder_ == null) { + if (!(targetCase_ == 2)) { + target_ = com.google.protobuf.Timestamp.getDefaultInstance(); + } + timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + (com.google.protobuf.Timestamp) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 2; + onChanged();; + return timeBuilder_; + } + + /** + *
+     * 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}`.
+     * 
+ * + * string snapshot = 3; + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 3) { + target_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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}`.
+     * 
+ * + * string snapshot = 3; + */ + public com.google.protobuf.ByteString + getSnapshotBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + if (targetCase_ == 3) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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}`.
+     * 
+ * + * string snapshot = 3; + */ + public Builder setSnapshot( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetCase_ = 3; + target_ = value; + onChanged(); + return this; + } + /** + *
+     * 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}`.
+     * 
+ * + * string snapshot = 3; + */ + public Builder clearSnapshot() { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + return this; + } + /** + *
+     * 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}`.
+     * 
+ * + * string snapshot = 3; + */ + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetCase_ = 3; + target_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SeekRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekRequest) + private static final com.google.pubsub.v1.SeekRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.SeekRequest(); + } + + public static com.google.pubsub.v1.SeekRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SeekRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SeekRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java new file mode 100644 index 000000000000..16b0c9df8945 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -0,0 +1,106 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface SeekRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The subscription to affect.
+   * 
+ * + * string subscription = 1; + */ + java.lang.String getSubscription(); + /** + *
+   * The subscription to affect.
+   * 
+ * + * string subscription = 1; + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); + + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + boolean hasTime(); + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + com.google.protobuf.Timestamp getTime(); + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp time = 2; + */ + com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); + + /** + *
+   * 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}`.
+   * 
+ * + * string snapshot = 3; + */ + java.lang.String getSnapshot(); + /** + *
+   * 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}`.
+   * 
+ * + * string snapshot = 3; + */ + com.google.protobuf.ByteString + getSnapshotBytes(); + + public com.google.pubsub.v1.SeekRequest.TargetCase getTargetCase(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java new file mode 100644 index 000000000000..7a3eda234ba4 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -0,0 +1,388 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + * Protobuf type {@code google.pubsub.v1.SeekResponse} + */ +public final class SeekResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekResponse) + SeekResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use SeekResponse.newBuilder() to construct. + private SeekResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SeekResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SeekResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.SeekResponse.class, com.google.pubsub.v1.SeekResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.SeekResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.SeekResponse other = (com.google.pubsub.v1.SeekResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.SeekResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.SeekResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.SeekResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.SeekResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.SeekResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.SeekResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.SeekResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.SeekResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.SeekResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.SeekResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.SeekResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.SeekResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.SeekResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.pubsub.v1.SeekResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SeekResponse) + com.google.pubsub.v1.SeekResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.SeekResponse.class, com.google.pubsub.v1.SeekResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.SeekResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; + } + + public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.SeekResponse.getDefaultInstance(); + } + + public com.google.pubsub.v1.SeekResponse build() { + com.google.pubsub.v1.SeekResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.SeekResponse buildPartial() { + com.google.pubsub.v1.SeekResponse result = new com.google.pubsub.v1.SeekResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.SeekResponse) { + return mergeFrom((com.google.pubsub.v1.SeekResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.SeekResponse other) { + if (other == com.google.pubsub.v1.SeekResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.SeekResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.SeekResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SeekResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekResponse) + private static final com.google.pubsub.v1.SeekResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.SeekResponse(); + } + + public static com.google.pubsub.v1.SeekResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SeekResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SeekResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java new file mode 100644 index 000000000000..df6f6dd5c616 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface SeekResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java new file mode 100644 index 000000000000..65f04e684884 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -0,0 +1,1353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * A snapshot resource.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.Snapshot} + */ +public final class Snapshot extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.Snapshot) + SnapshotOrBuilder { +private static final long serialVersionUID = 0L; + // Use Snapshot.newBuilder() to construct. + private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Snapshot() { + name_ = ""; + topic_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Snapshot( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); + } + expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); + } + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000008; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * The name of the snapshot.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * The name of the snapshot.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOPIC_FIELD_NUMBER = 2; + private volatile java.lang.Object topic_; + /** + *
+   * The name of the topic from which this snapshot is retaining messages.
+   * 
+ * + * string topic = 2; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + *
+   * The name of the topic from which this snapshot is retaining messages.
+   * 
+ * + * string topic = 2; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp expireTime_; + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public boolean hasExpireTime() { + return expireTime_ != null; + } + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return getExpireTime(); + } + + public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + } + if (expireTime_ != null) { + output.writeMessage(3, getExpireTime()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExpireTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.Snapshot)) { + return super.equals(obj); + } + com.google.pubsub.v1.Snapshot other = (com.google.pubsub.v1.Snapshot) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getTopic() + .equals(other.getTopic()); + result = result && (hasExpireTime() == other.hasExpireTime()); + if (hasExpireTime()) { + result = result && getExpireTime() + .equals(other.getExpireTime()); + } + result = result && internalGetLabels().equals( + other.internalGetLabels()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.Snapshot parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.Snapshot parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.Snapshot parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.Snapshot parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.Snapshot parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.Snapshot parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.Snapshot parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.Snapshot parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.Snapshot parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.Snapshot parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.Snapshot parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.Snapshot parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.Snapshot prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A snapshot resource.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.Snapshot} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Snapshot) + com.google.pubsub.v1.SnapshotOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class); + } + + // Construct using com.google.pubsub.v1.Snapshot.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + topic_ = ""; + + if (expireTimeBuilder_ == null) { + expireTime_ = null; + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor; + } + + public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() { + return com.google.pubsub.v1.Snapshot.getDefaultInstance(); + } + + public com.google.pubsub.v1.Snapshot build() { + com.google.pubsub.v1.Snapshot result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.Snapshot buildPartial() { + com.google.pubsub.v1.Snapshot result = new com.google.pubsub.v1.Snapshot(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.topic_ = topic_; + if (expireTimeBuilder_ == null) { + result.expireTime_ = expireTime_; + } else { + result.expireTime_ = expireTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.Snapshot) { + return mergeFrom((com.google.pubsub.v1.Snapshot)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) { + if (other == com.google.pubsub.v1.Snapshot.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.Snapshot parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.Snapshot) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * The name of the snapshot.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the snapshot.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the snapshot.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the snapshot.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * The name of the snapshot.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object topic_ = ""; + /** + *
+     * The name of the topic from which this snapshot is retaining messages.
+     * 
+ * + * string topic = 2; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the topic from which this snapshot is retaining messages.
+     * 
+ * + * string topic = 2; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the topic from which this snapshot is retaining messages.
+     * 
+ * + * string topic = 2; + */ + public Builder setTopic( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the topic from which this snapshot is retaining messages.
+     * 
+ * + * string topic = 2; + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + *
+     * The name of the topic from which this snapshot is retaining messages.
+     * 
+ * + * string topic = 2; + */ + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public boolean hasExpireTime() { + return expireTimeBuilder_ != null || expireTime_ != null; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (expireTime_ != null) { + expireTime_ = + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + } else { + expireTime_ = value; + } + onChanged(); + } else { + expireTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + expireTime_ = null; + onChanged(); + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Snapshot) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.Snapshot) + private static final com.google.pubsub.v1.Snapshot DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.Snapshot(); + } + + public static com.google.pubsub.v1.Snapshot getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Snapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Snapshot(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java new file mode 100644 index 000000000000..36b1b1de618c --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -0,0 +1,148 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface SnapshotOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Snapshot) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the snapshot.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * The name of the snapshot.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * The name of the topic from which this snapshot is retaining messages.
+   * 
+ * + * string topic = 2; + */ + java.lang.String getTopic(); + /** + *
+   * The name of the topic from which this snapshot is retaining messages.
+   * 
+ * + * string topic = 2; + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + boolean hasExpireTime(); + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java new file mode 100644 index 000000000000..1c9fff29b171 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -0,0 +1,1515 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * 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.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.StreamingPullRequest} + */ +public final class StreamingPullRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullRequest) + StreamingPullRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use StreamingPullRequest.newBuilder() to construct. + private StreamingPullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StreamingPullRequest() { + subscription_ = ""; + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + modifyDeadlineSeconds_ = java.util.Collections.emptyList(); + modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + streamAckDeadlineSeconds_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StreamingPullRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + ackIds_.add(s); + break; + } + case 24: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + modifyDeadlineSeconds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + modifyDeadlineSeconds_.add(input.readInt32()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { + modifyDeadlineSeconds_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + while (input.getBytesUntilLimit() > 0) { + modifyDeadlineSeconds_.add(input.readInt32()); + } + input.popLimit(limit); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + modifyDeadlineAckIds_.add(s); + break; + } + case 40: { + + streamAckDeadlineSeconds_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = ackIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + modifyDeadlineSeconds_ = java.util.Collections.unmodifiableList(modifyDeadlineSeconds_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + modifyDeadlineAckIds_ = modifyDeadlineAckIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullRequest.class, com.google.pubsub.v1.StreamingPullRequest.Builder.class); + } + + private int bitField0_; + public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object subscription_; + /** + *
+   * 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}`.
+   * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + *
+   * 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}`.
+   * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACK_IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList ackIds_; + /** + *
+   * 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`.
+   * 
+ * + * repeated string ack_ids = 2; + */ + public com.google.protobuf.ProtocolStringList + getAckIdsList() { + return ackIds_; + } + /** + *
+   * 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`.
+   * 
+ * + * repeated string ack_ids = 2; + */ + public int getAckIdsCount() { + return ackIds_.size(); + } + /** + *
+   * 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`.
+   * 
+ * + * repeated string ack_ids = 2; + */ + public java.lang.String getAckIds(int index) { + return ackIds_.get(index); + } + /** + *
+   * 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`.
+   * 
+ * + * repeated string ack_ids = 2; + */ + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { + return ackIds_.getByteString(index); + } + + public static final int MODIFY_DEADLINE_SECONDS_FIELD_NUMBER = 3; + private java.util.List modifyDeadlineSeconds_; + /** + *
+   * The list of new ack deadlines for the IDs listed in
+   * `modify_deadline_ack_ids`. The size of this list must be the same as the
+   * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+   * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+   * element in the same position in `modify_deadline_ack_ids`. The new ack
+   * deadline is with respect to the time this request was sent to the Pub/Sub
+   * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+   * will expire 10 seconds after this request is received. If the value is 0,
+   * the message is immediately made available for another streaming or
+   * non-streaming pull request. If the value is < 0 (an error), the stream will
+   * be aborted with status `INVALID_ARGUMENT`.
+   * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + public java.util.List + getModifyDeadlineSecondsList() { + return modifyDeadlineSeconds_; + } + /** + *
+   * The list of new ack deadlines for the IDs listed in
+   * `modify_deadline_ack_ids`. The size of this list must be the same as the
+   * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+   * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+   * element in the same position in `modify_deadline_ack_ids`. The new ack
+   * deadline is with respect to the time this request was sent to the Pub/Sub
+   * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+   * will expire 10 seconds after this request is received. If the value is 0,
+   * the message is immediately made available for another streaming or
+   * non-streaming pull request. If the value is < 0 (an error), the stream will
+   * be aborted with status `INVALID_ARGUMENT`.
+   * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + public int getModifyDeadlineSecondsCount() { + return modifyDeadlineSeconds_.size(); + } + /** + *
+   * The list of new ack deadlines for the IDs listed in
+   * `modify_deadline_ack_ids`. The size of this list must be the same as the
+   * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+   * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+   * element in the same position in `modify_deadline_ack_ids`. The new ack
+   * deadline is with respect to the time this request was sent to the Pub/Sub
+   * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+   * will expire 10 seconds after this request is received. If the value is 0,
+   * the message is immediately made available for another streaming or
+   * non-streaming pull request. If the value is < 0 (an error), the stream will
+   * be aborted with status `INVALID_ARGUMENT`.
+   * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + public int getModifyDeadlineSeconds(int index) { + return modifyDeadlineSeconds_.get(index); + } + private int modifyDeadlineSecondsMemoizedSerializedSize = -1; + + public static final int MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList modifyDeadlineAckIds_; + /** + *
+   * 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.
+   * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getModifyDeadlineAckIdsList() { + return modifyDeadlineAckIds_; + } + /** + *
+   * 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.
+   * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public int getModifyDeadlineAckIdsCount() { + return modifyDeadlineAckIds_.size(); + } + /** + *
+   * 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.
+   * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public java.lang.String getModifyDeadlineAckIds(int index) { + return modifyDeadlineAckIds_.get(index); + } + /** + *
+   * 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.
+   * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public com.google.protobuf.ByteString + getModifyDeadlineAckIdsBytes(int index) { + return modifyDeadlineAckIds_.getByteString(index); + } + + public static final int STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; + private int streamAckDeadlineSeconds_; + /** + *
+   * The ack deadline to use for the stream. This must be provided in the
+   * first request on the stream, but it can also be updated on subsequent
+   * requests from client to server. The minimum deadline you can specify is 10
+   * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
+   * 
+ * + * int32 stream_ack_deadline_seconds = 5; + */ + public int getStreamAckDeadlineSeconds() { + return streamAckDeadlineSeconds_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!getSubscriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + } + for (int i = 0; i < ackIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ackIds_.getRaw(i)); + } + if (getModifyDeadlineSecondsList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(modifyDeadlineSecondsMemoizedSerializedSize); + } + for (int i = 0; i < modifyDeadlineSeconds_.size(); i++) { + output.writeInt32NoTag(modifyDeadlineSeconds_.get(i)); + } + for (int i = 0; i < modifyDeadlineAckIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modifyDeadlineAckIds_.getRaw(i)); + } + if (streamAckDeadlineSeconds_ != 0) { + output.writeInt32(5, streamAckDeadlineSeconds_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubscriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + } + { + int dataSize = 0; + for (int i = 0; i < ackIds_.size(); i++) { + dataSize += computeStringSizeNoTag(ackIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getAckIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < modifyDeadlineSeconds_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(modifyDeadlineSeconds_.get(i)); + } + size += dataSize; + if (!getModifyDeadlineSecondsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + modifyDeadlineSecondsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < modifyDeadlineAckIds_.size(); i++) { + dataSize += computeStringSizeNoTag(modifyDeadlineAckIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getModifyDeadlineAckIdsList().size(); + } + if (streamAckDeadlineSeconds_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, streamAckDeadlineSeconds_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.StreamingPullRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.StreamingPullRequest other = (com.google.pubsub.v1.StreamingPullRequest) obj; + + boolean result = true; + result = result && getSubscription() + .equals(other.getSubscription()); + result = result && getAckIdsList() + .equals(other.getAckIdsList()); + result = result && getModifyDeadlineSecondsList() + .equals(other.getModifyDeadlineSecondsList()); + result = result && getModifyDeadlineAckIdsList() + .equals(other.getModifyDeadlineAckIdsList()); + result = result && (getStreamAckDeadlineSeconds() + == other.getStreamAckDeadlineSeconds()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + if (getAckIdsCount() > 0) { + hash = (37 * hash) + ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getAckIdsList().hashCode(); + } + if (getModifyDeadlineSecondsCount() > 0) { + hash = (37 * hash) + MODIFY_DEADLINE_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getModifyDeadlineSecondsList().hashCode(); + } + if (getModifyDeadlineAckIdsCount() > 0) { + hash = (37 * hash) + MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getModifyDeadlineAckIdsList().hashCode(); + } + hash = (37 * hash) + STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getStreamAckDeadlineSeconds(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.StreamingPullRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.StreamingPullRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * 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.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.StreamingPullRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullRequest) + com.google.pubsub.v1.StreamingPullRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullRequest.class, com.google.pubsub.v1.StreamingPullRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.StreamingPullRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + subscription_ = ""; + + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + modifyDeadlineSeconds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + streamAckDeadlineSeconds_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; + } + + public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.StreamingPullRequest build() { + com.google.pubsub.v1.StreamingPullRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.StreamingPullRequest buildPartial() { + com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.subscription_ = subscription_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = ackIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ackIds_ = ackIds_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + modifyDeadlineSeconds_ = java.util.Collections.unmodifiableList(modifyDeadlineSeconds_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.modifyDeadlineSeconds_ = modifyDeadlineSeconds_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + modifyDeadlineAckIds_ = modifyDeadlineAckIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.modifyDeadlineAckIds_ = modifyDeadlineAckIds_; + result.streamAckDeadlineSeconds_ = streamAckDeadlineSeconds_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.StreamingPullRequest) { + return mergeFrom((com.google.pubsub.v1.StreamingPullRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { + if (other == com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance()) return this; + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + onChanged(); + } + if (!other.ackIds_.isEmpty()) { + if (ackIds_.isEmpty()) { + ackIds_ = other.ackIds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAckIdsIsMutable(); + ackIds_.addAll(other.ackIds_); + } + onChanged(); + } + if (!other.modifyDeadlineSeconds_.isEmpty()) { + if (modifyDeadlineSeconds_.isEmpty()) { + modifyDeadlineSeconds_ = other.modifyDeadlineSeconds_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureModifyDeadlineSecondsIsMutable(); + modifyDeadlineSeconds_.addAll(other.modifyDeadlineSeconds_); + } + onChanged(); + } + if (!other.modifyDeadlineAckIds_.isEmpty()) { + if (modifyDeadlineAckIds_.isEmpty()) { + modifyDeadlineAckIds_ = other.modifyDeadlineAckIds_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureModifyDeadlineAckIdsIsMutable(); + modifyDeadlineAckIds_.addAll(other.modifyDeadlineAckIds_); + } + onChanged(); + } + if (other.getStreamAckDeadlineSeconds() != 0) { + setStreamAckDeadlineSeconds(other.getStreamAckDeadlineSeconds()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.StreamingPullRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.StreamingPullRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object subscription_ = ""; + /** + *
+     * 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}`.
+     * 
+ * + * string subscription = 1; + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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}`.
+     * 
+ * + * string subscription = 1; + */ + public com.google.protobuf.ByteString + getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subscription_ = value; + onChanged(); + return this; + } + /** + *
+     * 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}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder clearSubscription() { + + subscription_ = getDefaultInstance().getSubscription(); + onChanged(); + return this; + } + /** + *
+     * 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}`.
+     * 
+ * + * string subscription = 1; + */ + public Builder setSubscriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subscription_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAckIdsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); + bitField0_ |= 0x00000002; + } + } + /** + *
+     * 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`.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public com.google.protobuf.ProtocolStringList + getAckIdsList() { + return ackIds_.getUnmodifiableView(); + } + /** + *
+     * 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`.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public int getAckIdsCount() { + return ackIds_.size(); + } + /** + *
+     * 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`.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public java.lang.String getAckIds(int index) { + return ackIds_.get(index); + } + /** + *
+     * 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`.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public com.google.protobuf.ByteString + getAckIdsBytes(int index) { + return ackIds_.getByteString(index); + } + /** + *
+     * 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`.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public Builder setAckIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); + ackIds_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * 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`.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public Builder addAckIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); + ackIds_.add(value); + onChanged(); + return this; + } + /** + *
+     * 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`.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public Builder addAllAckIds( + java.lang.Iterable values) { + ensureAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ackIds_); + onChanged(); + return this; + } + /** + *
+     * 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`.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public Builder clearAckIds() { + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * 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`.
+     * 
+ * + * repeated string ack_ids = 2; + */ + public Builder addAckIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAckIdsIsMutable(); + ackIds_.add(value); + onChanged(); + return this; + } + + private java.util.List modifyDeadlineSeconds_ = java.util.Collections.emptyList(); + private void ensureModifyDeadlineSecondsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + modifyDeadlineSeconds_ = new java.util.ArrayList(modifyDeadlineSeconds_); + bitField0_ |= 0x00000004; + } + } + /** + *
+     * The list of new ack deadlines for the IDs listed in
+     * `modify_deadline_ack_ids`. The size of this list must be the same as the
+     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+     * element in the same position in `modify_deadline_ack_ids`. The new ack
+     * deadline is with respect to the time this request was sent to the Pub/Sub
+     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+     * will expire 10 seconds after this request is received. If the value is 0,
+     * the message is immediately made available for another streaming or
+     * non-streaming pull request. If the value is < 0 (an error), the stream will
+     * be aborted with status `INVALID_ARGUMENT`.
+     * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + public java.util.List + getModifyDeadlineSecondsList() { + return java.util.Collections.unmodifiableList(modifyDeadlineSeconds_); + } + /** + *
+     * The list of new ack deadlines for the IDs listed in
+     * `modify_deadline_ack_ids`. The size of this list must be the same as the
+     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+     * element in the same position in `modify_deadline_ack_ids`. The new ack
+     * deadline is with respect to the time this request was sent to the Pub/Sub
+     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+     * will expire 10 seconds after this request is received. If the value is 0,
+     * the message is immediately made available for another streaming or
+     * non-streaming pull request. If the value is < 0 (an error), the stream will
+     * be aborted with status `INVALID_ARGUMENT`.
+     * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + public int getModifyDeadlineSecondsCount() { + return modifyDeadlineSeconds_.size(); + } + /** + *
+     * The list of new ack deadlines for the IDs listed in
+     * `modify_deadline_ack_ids`. The size of this list must be the same as the
+     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+     * element in the same position in `modify_deadline_ack_ids`. The new ack
+     * deadline is with respect to the time this request was sent to the Pub/Sub
+     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+     * will expire 10 seconds after this request is received. If the value is 0,
+     * the message is immediately made available for another streaming or
+     * non-streaming pull request. If the value is < 0 (an error), the stream will
+     * be aborted with status `INVALID_ARGUMENT`.
+     * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + public int getModifyDeadlineSeconds(int index) { + return modifyDeadlineSeconds_.get(index); + } + /** + *
+     * The list of new ack deadlines for the IDs listed in
+     * `modify_deadline_ack_ids`. The size of this list must be the same as the
+     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+     * element in the same position in `modify_deadline_ack_ids`. The new ack
+     * deadline is with respect to the time this request was sent to the Pub/Sub
+     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+     * will expire 10 seconds after this request is received. If the value is 0,
+     * the message is immediately made available for another streaming or
+     * non-streaming pull request. If the value is < 0 (an error), the stream will
+     * be aborted with status `INVALID_ARGUMENT`.
+     * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + public Builder setModifyDeadlineSeconds( + int index, int value) { + ensureModifyDeadlineSecondsIsMutable(); + modifyDeadlineSeconds_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The list of new ack deadlines for the IDs listed in
+     * `modify_deadline_ack_ids`. The size of this list must be the same as the
+     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+     * element in the same position in `modify_deadline_ack_ids`. The new ack
+     * deadline is with respect to the time this request was sent to the Pub/Sub
+     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+     * will expire 10 seconds after this request is received. If the value is 0,
+     * the message is immediately made available for another streaming or
+     * non-streaming pull request. If the value is < 0 (an error), the stream will
+     * be aborted with status `INVALID_ARGUMENT`.
+     * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + public Builder addModifyDeadlineSeconds(int value) { + ensureModifyDeadlineSecondsIsMutable(); + modifyDeadlineSeconds_.add(value); + onChanged(); + return this; + } + /** + *
+     * The list of new ack deadlines for the IDs listed in
+     * `modify_deadline_ack_ids`. The size of this list must be the same as the
+     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+     * element in the same position in `modify_deadline_ack_ids`. The new ack
+     * deadline is with respect to the time this request was sent to the Pub/Sub
+     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+     * will expire 10 seconds after this request is received. If the value is 0,
+     * the message is immediately made available for another streaming or
+     * non-streaming pull request. If the value is < 0 (an error), the stream will
+     * be aborted with status `INVALID_ARGUMENT`.
+     * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + public Builder addAllModifyDeadlineSeconds( + java.lang.Iterable values) { + ensureModifyDeadlineSecondsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modifyDeadlineSeconds_); + onChanged(); + return this; + } + /** + *
+     * The list of new ack deadlines for the IDs listed in
+     * `modify_deadline_ack_ids`. The size of this list must be the same as the
+     * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+     * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+     * element in the same position in `modify_deadline_ack_ids`. The new ack
+     * deadline is with respect to the time this request was sent to the Pub/Sub
+     * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+     * will expire 10 seconds after this request is received. If the value is 0,
+     * the message is immediately made available for another streaming or
+     * non-streaming pull request. If the value is < 0 (an error), the stream will
+     * be aborted with status `INVALID_ARGUMENT`.
+     * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + public Builder clearModifyDeadlineSeconds() { + modifyDeadlineSeconds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureModifyDeadlineAckIdsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(modifyDeadlineAckIds_); + bitField0_ |= 0x00000008; + } + } + /** + *
+     * 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.
+     * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public com.google.protobuf.ProtocolStringList + getModifyDeadlineAckIdsList() { + return modifyDeadlineAckIds_.getUnmodifiableView(); + } + /** + *
+     * 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.
+     * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public int getModifyDeadlineAckIdsCount() { + return modifyDeadlineAckIds_.size(); + } + /** + *
+     * 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.
+     * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public java.lang.String getModifyDeadlineAckIds(int index) { + return modifyDeadlineAckIds_.get(index); + } + /** + *
+     * 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.
+     * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public com.google.protobuf.ByteString + getModifyDeadlineAckIdsBytes(int index) { + return modifyDeadlineAckIds_.getByteString(index); + } + /** + *
+     * 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.
+     * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public Builder setModifyDeadlineAckIds( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureModifyDeadlineAckIdsIsMutable(); + modifyDeadlineAckIds_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public Builder addModifyDeadlineAckIds( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureModifyDeadlineAckIdsIsMutable(); + modifyDeadlineAckIds_.add(value); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public Builder addAllModifyDeadlineAckIds( + java.lang.Iterable values) { + ensureModifyDeadlineAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modifyDeadlineAckIds_); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public Builder clearModifyDeadlineAckIds() { + modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + public Builder addModifyDeadlineAckIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureModifyDeadlineAckIdsIsMutable(); + modifyDeadlineAckIds_.add(value); + onChanged(); + return this; + } + + private int streamAckDeadlineSeconds_ ; + /** + *
+     * The ack deadline to use for the stream. This must be provided in the
+     * first request on the stream, but it can also be updated on subsequent
+     * requests from client to server. The minimum deadline you can specify is 10
+     * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
+     * 
+ * + * int32 stream_ack_deadline_seconds = 5; + */ + public int getStreamAckDeadlineSeconds() { + return streamAckDeadlineSeconds_; + } + /** + *
+     * The ack deadline to use for the stream. This must be provided in the
+     * first request on the stream, but it can also be updated on subsequent
+     * requests from client to server. The minimum deadline you can specify is 10
+     * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
+     * 
+ * + * int32 stream_ack_deadline_seconds = 5; + */ + public Builder setStreamAckDeadlineSeconds(int value) { + + streamAckDeadlineSeconds_ = value; + onChanged(); + return this; + } + /** + *
+     * The ack deadline to use for the stream. This must be provided in the
+     * first request on the stream, but it can also be updated on subsequent
+     * requests from client to server. The minimum deadline you can specify is 10
+     * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
+     * 
+ * + * int32 stream_ack_deadline_seconds = 5; + */ + public Builder clearStreamAckDeadlineSeconds() { + + streamAckDeadlineSeconds_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullRequest) + private static final com.google.pubsub.v1.StreamingPullRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullRequest(); + } + + public static com.google.pubsub.v1.StreamingPullRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StreamingPullRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingPullRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java new file mode 100644 index 000000000000..a3188111606a --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -0,0 +1,202 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface StreamingPullRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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}`.
+   * 
+ * + * string subscription = 1; + */ + java.lang.String getSubscription(); + /** + *
+   * 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}`.
+   * 
+ * + * string subscription = 1; + */ + com.google.protobuf.ByteString + getSubscriptionBytes(); + + /** + *
+   * 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`.
+   * 
+ * + * repeated string ack_ids = 2; + */ + java.util.List + getAckIdsList(); + /** + *
+   * 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`.
+   * 
+ * + * repeated string ack_ids = 2; + */ + int getAckIdsCount(); + /** + *
+   * 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`.
+   * 
+ * + * repeated string ack_ids = 2; + */ + java.lang.String getAckIds(int index); + /** + *
+   * 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`.
+   * 
+ * + * repeated string ack_ids = 2; + */ + com.google.protobuf.ByteString + getAckIdsBytes(int index); + + /** + *
+   * The list of new ack deadlines for the IDs listed in
+   * `modify_deadline_ack_ids`. The size of this list must be the same as the
+   * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+   * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+   * element in the same position in `modify_deadline_ack_ids`. The new ack
+   * deadline is with respect to the time this request was sent to the Pub/Sub
+   * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+   * will expire 10 seconds after this request is received. If the value is 0,
+   * the message is immediately made available for another streaming or
+   * non-streaming pull request. If the value is < 0 (an error), the stream will
+   * be aborted with status `INVALID_ARGUMENT`.
+   * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + java.util.List getModifyDeadlineSecondsList(); + /** + *
+   * The list of new ack deadlines for the IDs listed in
+   * `modify_deadline_ack_ids`. The size of this list must be the same as the
+   * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+   * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+   * element in the same position in `modify_deadline_ack_ids`. The new ack
+   * deadline is with respect to the time this request was sent to the Pub/Sub
+   * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+   * will expire 10 seconds after this request is received. If the value is 0,
+   * the message is immediately made available for another streaming or
+   * non-streaming pull request. If the value is < 0 (an error), the stream will
+   * be aborted with status `INVALID_ARGUMENT`.
+   * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + int getModifyDeadlineSecondsCount(); + /** + *
+   * The list of new ack deadlines for the IDs listed in
+   * `modify_deadline_ack_ids`. The size of this list must be the same as the
+   * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
+   * with `INVALID_ARGUMENT`. Each element in this list is applied to the
+   * element in the same position in `modify_deadline_ack_ids`. The new ack
+   * deadline is with respect to the time this request was sent to the Pub/Sub
+   * system. Must be >= 0. For example, if the value is 10, the new ack deadline
+   * will expire 10 seconds after this request is received. If the value is 0,
+   * the message is immediately made available for another streaming or
+   * non-streaming pull request. If the value is < 0 (an error), the stream will
+   * be aborted with status `INVALID_ARGUMENT`.
+   * 
+ * + * repeated int32 modify_deadline_seconds = 3; + */ + int getModifyDeadlineSeconds(int index); + + /** + *
+   * 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.
+   * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + java.util.List + getModifyDeadlineAckIdsList(); + /** + *
+   * 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.
+   * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + int getModifyDeadlineAckIdsCount(); + /** + *
+   * 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.
+   * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + java.lang.String getModifyDeadlineAckIds(int index); + /** + *
+   * 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.
+   * 
+ * + * repeated string modify_deadline_ack_ids = 4; + */ + com.google.protobuf.ByteString + getModifyDeadlineAckIdsBytes(int index); + + /** + *
+   * The ack deadline to use for the stream. This must be provided in the
+   * first request on the stream, but it can also be updated on subsequent
+   * requests from client to server. The minimum deadline you can specify is 10
+   * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
+   * 
+ * + * int32 stream_ack_deadline_seconds = 5; + */ + int getStreamAckDeadlineSeconds(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java new file mode 100644 index 000000000000..6f32fa1685f3 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -0,0 +1,836 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Response for the `StreamingPull` method. This response is used to stream
+ * messages from the server to the client.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.StreamingPullResponse} + */ +public final class StreamingPullResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse) + StreamingPullResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use StreamingPullResponse.newBuilder() to construct. + private StreamingPullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StreamingPullResponse() { + receivedMessages_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StreamingPullResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + receivedMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + receivedMessages_.add( + input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullResponse.class, com.google.pubsub.v1.StreamingPullResponse.Builder.class); + } + + public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; + private java.util.List receivedMessages_; + /** + *
+   * Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List getReceivedMessagesList() { + return receivedMessages_; + } + /** + *
+   * Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List + getReceivedMessagesOrBuilderList() { + return receivedMessages_; + } + /** + *
+   * Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public int getReceivedMessagesCount() { + return receivedMessages_.size(); + } + /** + *
+   * Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { + return receivedMessages_.get(index); + } + /** + *
+   * Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( + int index) { + return receivedMessages_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < receivedMessages_.size(); i++) { + output.writeMessage(1, receivedMessages_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < receivedMessages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, receivedMessages_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.StreamingPullResponse other = (com.google.pubsub.v1.StreamingPullResponse) obj; + + boolean result = true; + result = result && getReceivedMessagesList() + .equals(other.getReceivedMessagesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReceivedMessagesCount() > 0) { + hash = (37 * hash) + RECEIVED_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getReceivedMessagesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for the `StreamingPull` method. This response is used to stream
+   * messages from the server to the client.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.StreamingPullResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse) + com.google.pubsub.v1.StreamingPullResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullResponse.class, com.google.pubsub.v1.StreamingPullResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.StreamingPullResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getReceivedMessagesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (receivedMessagesBuilder_ == null) { + receivedMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + receivedMessagesBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; + } + + public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance(); + } + + public com.google.pubsub.v1.StreamingPullResponse build() { + com.google.pubsub.v1.StreamingPullResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.StreamingPullResponse buildPartial() { + com.google.pubsub.v1.StreamingPullResponse result = new com.google.pubsub.v1.StreamingPullResponse(this); + int from_bitField0_ = bitField0_; + if (receivedMessagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.receivedMessages_ = receivedMessages_; + } else { + result.receivedMessages_ = receivedMessagesBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.StreamingPullResponse) { + return mergeFrom((com.google.pubsub.v1.StreamingPullResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) { + if (other == com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance()) return this; + if (receivedMessagesBuilder_ == null) { + if (!other.receivedMessages_.isEmpty()) { + if (receivedMessages_.isEmpty()) { + receivedMessages_ = other.receivedMessages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReceivedMessagesIsMutable(); + receivedMessages_.addAll(other.receivedMessages_); + } + onChanged(); + } + } else { + if (!other.receivedMessages_.isEmpty()) { + if (receivedMessagesBuilder_.isEmpty()) { + receivedMessagesBuilder_.dispose(); + receivedMessagesBuilder_ = null; + receivedMessages_ = other.receivedMessages_; + bitField0_ = (bitField0_ & ~0x00000001); + receivedMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReceivedMessagesFieldBuilder() : null; + } else { + receivedMessagesBuilder_.addAllMessages(other.receivedMessages_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.StreamingPullResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.StreamingPullResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List receivedMessages_ = + java.util.Collections.emptyList(); + private void ensureReceivedMessagesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + receivedMessages_ = new java.util.ArrayList(receivedMessages_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> receivedMessagesBuilder_; + + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List getReceivedMessagesList() { + if (receivedMessagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(receivedMessages_); + } else { + return receivedMessagesBuilder_.getMessageList(); + } + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public int getReceivedMessagesCount() { + if (receivedMessagesBuilder_ == null) { + return receivedMessages_.size(); + } else { + return receivedMessagesBuilder_.getCount(); + } + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { + if (receivedMessagesBuilder_ == null) { + return receivedMessages_.get(index); + } else { + return receivedMessagesBuilder_.getMessage(index); + } + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder setReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage value) { + if (receivedMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceivedMessagesIsMutable(); + receivedMessages_.set(index, value); + onChanged(); + } else { + receivedMessagesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder setReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.set(index, builderForValue.build()); + onChanged(); + } else { + receivedMessagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { + if (receivedMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(value); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage value) { + if (receivedMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(index, value); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages( + com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(builderForValue.build()); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(index, builderForValue.build()); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addAllReceivedMessages( + java.lang.Iterable values) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, receivedMessages_); + onChanged(); + } else { + receivedMessagesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder clearReceivedMessages() { + if (receivedMessagesBuilder_ == null) { + receivedMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + receivedMessagesBuilder_.clear(); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder removeReceivedMessages(int index) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.remove(index); + onChanged(); + } else { + receivedMessagesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder( + int index) { + return getReceivedMessagesFieldBuilder().getBuilder(index); + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( + int index) { + if (receivedMessagesBuilder_ == null) { + return receivedMessages_.get(index); } else { + return receivedMessagesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List + getReceivedMessagesOrBuilderList() { + if (receivedMessagesBuilder_ != null) { + return receivedMessagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(receivedMessages_); + } + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { + return getReceivedMessagesFieldBuilder().addBuilder( + com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( + int index) { + return getReceivedMessagesFieldBuilder().addBuilder( + index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + } + /** + *
+     * Received Pub/Sub messages. This will not be empty.
+     * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List + getReceivedMessagesBuilderList() { + return getReceivedMessagesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> + getReceivedMessagesFieldBuilder() { + if (receivedMessagesBuilder_ == null) { + receivedMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>( + receivedMessages_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + receivedMessages_ = null; + } + return receivedMessagesBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse) + private static final com.google.pubsub.v1.StreamingPullResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse(); + } + + public static com.google.pubsub.v1.StreamingPullResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StreamingPullResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingPullResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java new file mode 100644 index 000000000000..7cead0de31ec --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface StreamingPullResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + java.util.List + getReceivedMessagesList(); + /** + *
+   * Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); + /** + *
+   * Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + int getReceivedMessagesCount(); + /** + *
+   * Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + java.util.List + getReceivedMessagesOrBuilderList(); + /** + *
+   * Received Pub/Sub messages. This will not be empty.
+   * 
+ * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( + int index); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java new file mode 100644 index 000000000000..fad189d8082b --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -0,0 +1,1847 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * A subscription resource.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.Subscription} + */ +public final class Subscription extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription) + SubscriptionOrBuilder { +private static final long serialVersionUID = 0L; + // Use Subscription.newBuilder() to construct. + private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Subscription() { + name_ = ""; + topic_ = ""; + ackDeadlineSeconds_ = 0; + retainAckedMessages_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Subscription( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + case 34: { + com.google.pubsub.v1.PushConfig.Builder subBuilder = null; + if (pushConfig_ != null) { + subBuilder = pushConfig_.toBuilder(); + } + pushConfig_ = input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushConfig_); + pushConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 40: { + + ackDeadlineSeconds_ = input.readInt32(); + break; + } + case 56: { + + retainAckedMessages_ = input.readBool(); + break; + } + case 66: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (messageRetentionDuration_ != null) { + subBuilder = messageRetentionDuration_.toBuilder(); + } + messageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageRetentionDuration_); + messageRetentionDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 74: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000040; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Subscription.class, com.google.pubsub.v1.Subscription.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * 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"`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * 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"`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOPIC_FIELD_NUMBER = 2; + private volatile java.lang.Object topic_; + /** + *
+   * 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.
+   * 
+ * + * string topic = 2; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + *
+   * 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.
+   * 
+ * + * string topic = 2; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUSH_CONFIG_FIELD_NUMBER = 4; + private com.google.pubsub.v1.PushConfig 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.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public boolean hasPushConfig() { + return pushConfig_ != null; + } + /** + *
+   * 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.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public com.google.pubsub.v1.PushConfig getPushConfig() { + return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : 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.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { + return getPushConfig(); + } + + public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; + private int ackDeadlineSeconds_; + /** + *
+   * This value is the maximum time after a subscriber receives a message
+   * before the subscriber should acknowledge the message. After message
+   * delivery but before the ack deadline expires and before the message is
+   * acknowledged, it is an outstanding message and will not be delivered
+   * again during that time (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
+   * 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.
+   * 
+ * + * int32 ack_deadline_seconds = 5; + */ + public int getAckDeadlineSeconds() { + return ackDeadlineSeconds_; + } + + public static final int RETAIN_ACKED_MESSAGES_FIELD_NUMBER = 7; + private boolean retainAckedMessages_; + /** + *
+   * 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.
+   * 
+ * + * bool retain_acked_messages = 7; + */ + public boolean getRetainAckedMessages() { + return retainAckedMessages_; + } + + public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; + private com.google.protobuf.Duration messageRetentionDuration_; + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public boolean hasMessageRetentionDuration() { + return messageRetentionDuration_ != null; + } + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public com.google.protobuf.Duration getMessageRetentionDuration() { + return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + } + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { + return getMessageRetentionDuration(); + } + + public static final int LABELS_FIELD_NUMBER = 9; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 9; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 9; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 9; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 9; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + } + if (pushConfig_ != null) { + output.writeMessage(4, getPushConfig()); + } + if (ackDeadlineSeconds_ != 0) { + output.writeInt32(5, ackDeadlineSeconds_); + } + if (retainAckedMessages_ != false) { + output.writeBool(7, retainAckedMessages_); + } + if (messageRetentionDuration_ != null) { + output.writeMessage(8, getMessageRetentionDuration()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 9); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); + } + if (pushConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getPushConfig()); + } + if (ackDeadlineSeconds_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, ackDeadlineSeconds_); + } + if (retainAckedMessages_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, retainAckedMessages_); + } + if (messageRetentionDuration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getMessageRetentionDuration()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, labels__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.Subscription)) { + return super.equals(obj); + } + com.google.pubsub.v1.Subscription other = (com.google.pubsub.v1.Subscription) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && getTopic() + .equals(other.getTopic()); + result = result && (hasPushConfig() == other.hasPushConfig()); + if (hasPushConfig()) { + result = result && getPushConfig() + .equals(other.getPushConfig()); + } + result = result && (getAckDeadlineSeconds() + == other.getAckDeadlineSeconds()); + result = result && (getRetainAckedMessages() + == other.getRetainAckedMessages()); + result = result && (hasMessageRetentionDuration() == other.hasMessageRetentionDuration()); + if (hasMessageRetentionDuration()) { + result = result && getMessageRetentionDuration() + .equals(other.getMessageRetentionDuration()); + } + result = result && internalGetLabels().equals( + other.internalGetLabels()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + if (hasPushConfig()) { + hash = (37 * hash) + PUSH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPushConfig().hashCode(); + } + hash = (37 * hash) + ACK_DEADLINE_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + getAckDeadlineSeconds(); + hash = (37 * hash) + RETAIN_ACKED_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRetainAckedMessages()); + if (hasMessageRetentionDuration()) { + hash = (37 * hash) + MESSAGE_RETENTION_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMessageRetentionDuration().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.Subscription parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.Subscription parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.Subscription parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.Subscription parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.Subscription parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.Subscription parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.Subscription parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.Subscription parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.Subscription parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.Subscription parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.Subscription parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.Subscription parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.Subscription prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A subscription resource.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.Subscription} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Subscription) + com.google.pubsub.v1.SubscriptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 9: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 9: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Subscription.class, com.google.pubsub.v1.Subscription.Builder.class); + } + + // Construct using com.google.pubsub.v1.Subscription.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + topic_ = ""; + + if (pushConfigBuilder_ == null) { + pushConfig_ = null; + } else { + pushConfig_ = null; + pushConfigBuilder_ = null; + } + ackDeadlineSeconds_ = 0; + + retainAckedMessages_ = false; + + if (messageRetentionDurationBuilder_ == null) { + messageRetentionDuration_ = null; + } else { + messageRetentionDuration_ = null; + messageRetentionDurationBuilder_ = null; + } + internalGetMutableLabels().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; + } + + public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { + return com.google.pubsub.v1.Subscription.getDefaultInstance(); + } + + public com.google.pubsub.v1.Subscription build() { + com.google.pubsub.v1.Subscription result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.Subscription buildPartial() { + com.google.pubsub.v1.Subscription result = new com.google.pubsub.v1.Subscription(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.topic_ = topic_; + if (pushConfigBuilder_ == null) { + result.pushConfig_ = pushConfig_; + } else { + result.pushConfig_ = pushConfigBuilder_.build(); + } + result.ackDeadlineSeconds_ = ackDeadlineSeconds_; + result.retainAckedMessages_ = retainAckedMessages_; + if (messageRetentionDurationBuilder_ == null) { + result.messageRetentionDuration_ = messageRetentionDuration_; + } else { + result.messageRetentionDuration_ = messageRetentionDurationBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.Subscription) { + return mergeFrom((com.google.pubsub.v1.Subscription)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { + if (other == com.google.pubsub.v1.Subscription.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + if (other.hasPushConfig()) { + mergePushConfig(other.getPushConfig()); + } + if (other.getAckDeadlineSeconds() != 0) { + setAckDeadlineSeconds(other.getAckDeadlineSeconds()); + } + if (other.getRetainAckedMessages() != false) { + setRetainAckedMessages(other.getRetainAckedMessages()); + } + if (other.hasMessageRetentionDuration()) { + mergeMessageRetentionDuration(other.getMessageRetentionDuration()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.Subscription parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.Subscription) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * 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"`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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"`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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"`.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * 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"`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * 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"`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object topic_ = ""; + /** + *
+     * 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.
+     * 
+ * + * string topic = 2; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string topic = 2; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string topic = 2; + */ + public Builder setTopic( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string topic = 2; + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string topic = 2; + */ + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + + private com.google.pubsub.v1.PushConfig pushConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_; + /** + *
+     * 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.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public boolean hasPushConfig() { + return pushConfigBuilder_ != null || pushConfig_ != null; + } + /** + *
+     * 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.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public com.google.pubsub.v1.PushConfig getPushConfig() { + if (pushConfigBuilder_ == null) { + return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; + } else { + return pushConfigBuilder_.getMessage(); + } + } + /** + *
+     * 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.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { + if (pushConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pushConfig_ = value; + onChanged(); + } else { + pushConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public Builder setPushConfig( + com.google.pubsub.v1.PushConfig.Builder builderForValue) { + if (pushConfigBuilder_ == null) { + pushConfig_ = builderForValue.build(); + onChanged(); + } else { + pushConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { + if (pushConfigBuilder_ == null) { + if (pushConfig_ != null) { + pushConfig_ = + com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_).mergeFrom(value).buildPartial(); + } else { + pushConfig_ = value; + } + onChanged(); + } else { + pushConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public Builder clearPushConfig() { + if (pushConfigBuilder_ == null) { + pushConfig_ = null; + onChanged(); + } else { + pushConfig_ = null; + pushConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { + + onChanged(); + return getPushConfigFieldBuilder().getBuilder(); + } + /** + *
+     * 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.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { + if (pushConfigBuilder_ != null) { + return pushConfigBuilder_.getMessageOrBuilder(); + } else { + return pushConfig_ == null ? + com.google.pubsub.v1.PushConfig.getDefaultInstance() : 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.
+     * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> + getPushConfigFieldBuilder() { + if (pushConfigBuilder_ == null) { + pushConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder>( + getPushConfig(), + getParentForChildren(), + isClean()); + pushConfig_ = null; + } + return pushConfigBuilder_; + } + + private int ackDeadlineSeconds_ ; + /** + *
+     * This value is the maximum time after a subscriber receives a message
+     * before the subscriber should acknowledge the message. After message
+     * delivery but before the ack deadline expires and before the message is
+     * acknowledged, it is an outstanding message and will not be delivered
+     * again during that time (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
+     * 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.
+     * 
+ * + * int32 ack_deadline_seconds = 5; + */ + public int getAckDeadlineSeconds() { + return ackDeadlineSeconds_; + } + /** + *
+     * This value is the maximum time after a subscriber receives a message
+     * before the subscriber should acknowledge the message. After message
+     * delivery but before the ack deadline expires and before the message is
+     * acknowledged, it is an outstanding message and will not be delivered
+     * again during that time (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
+     * 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.
+     * 
+ * + * int32 ack_deadline_seconds = 5; + */ + public Builder setAckDeadlineSeconds(int value) { + + ackDeadlineSeconds_ = value; + onChanged(); + return this; + } + /** + *
+     * This value is the maximum time after a subscriber receives a message
+     * before the subscriber should acknowledge the message. After message
+     * delivery but before the ack deadline expires and before the message is
+     * acknowledged, it is an outstanding message and will not be delivered
+     * again during that time (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
+     * 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.
+     * 
+ * + * int32 ack_deadline_seconds = 5; + */ + public Builder clearAckDeadlineSeconds() { + + ackDeadlineSeconds_ = 0; + onChanged(); + return this; + } + + private boolean retainAckedMessages_ ; + /** + *
+     * 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.
+     * 
+ * + * bool retain_acked_messages = 7; + */ + public boolean getRetainAckedMessages() { + return retainAckedMessages_; + } + /** + *
+     * 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.
+     * 
+ * + * bool retain_acked_messages = 7; + */ + public Builder setRetainAckedMessages(boolean value) { + + retainAckedMessages_ = value; + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * bool retain_acked_messages = 7; + */ + public Builder clearRetainAckedMessages() { + + retainAckedMessages_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration messageRetentionDuration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> messageRetentionDurationBuilder_; + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public boolean hasMessageRetentionDuration() { + return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public com.google.protobuf.Duration getMessageRetentionDuration() { + if (messageRetentionDurationBuilder_ == null) { + return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + } else { + return messageRetentionDurationBuilder_.getMessage(); + } + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { + if (messageRetentionDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageRetentionDuration_ = value; + onChanged(); + } else { + messageRetentionDurationBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public Builder setMessageRetentionDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (messageRetentionDurationBuilder_ == null) { + messageRetentionDuration_ = builderForValue.build(); + onChanged(); + } else { + messageRetentionDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { + if (messageRetentionDurationBuilder_ == null) { + if (messageRetentionDuration_ != null) { + messageRetentionDuration_ = + com.google.protobuf.Duration.newBuilder(messageRetentionDuration_).mergeFrom(value).buildPartial(); + } else { + messageRetentionDuration_ = value; + } + onChanged(); + } else { + messageRetentionDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public Builder clearMessageRetentionDuration() { + if (messageRetentionDurationBuilder_ == null) { + messageRetentionDuration_ = null; + onChanged(); + } else { + messageRetentionDuration_ = null; + messageRetentionDurationBuilder_ = null; + } + + return this; + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { + + onChanged(); + return getMessageRetentionDurationFieldBuilder().getBuilder(); + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { + if (messageRetentionDurationBuilder_ != null) { + return messageRetentionDurationBuilder_.getMessageOrBuilder(); + } else { + return messageRetentionDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; + } + } + /** + *
+     * 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.
+     * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getMessageRetentionDurationFieldBuilder() { + if (messageRetentionDurationBuilder_ == null) { + messageRetentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getMessageRetentionDuration(), + getParentForChildren(), + isClean()); + messageRetentionDuration_ = null; + } + return messageRetentionDurationBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 9; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 9; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 9; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 9; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 9; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 9; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 9; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Subscription) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription) + private static final com.google.pubsub.v1.Subscription DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.Subscription(); + } + + public static com.google.pubsub.v1.Subscription getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Subscription parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Subscription(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java new file mode 100644 index 000000000000..2b792b047690 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -0,0 +1,222 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface SubscriptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Subscription) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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"`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * 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"`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * 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.
+   * 
+ * + * string topic = 2; + */ + java.lang.String getTopic(); + /** + *
+   * 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.
+   * 
+ * + * string topic = 2; + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+   * 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.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + boolean hasPushConfig(); + /** + *
+   * 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.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + com.google.pubsub.v1.PushConfig getPushConfig(); + /** + *
+   * 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.
+   * 
+ * + * .google.pubsub.v1.PushConfig push_config = 4; + */ + com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder(); + + /** + *
+   * This value is the maximum time after a subscriber receives a message
+   * before the subscriber should acknowledge the message. After message
+   * delivery but before the ack deadline expires and before the message is
+   * acknowledged, it is an outstanding message and will not be delivered
+   * again during that time (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
+   * 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.
+   * 
+ * + * int32 ack_deadline_seconds = 5; + */ + int getAckDeadlineSeconds(); + + /** + *
+   * 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.
+   * 
+ * + * bool retain_acked_messages = 7; + */ + boolean getRetainAckedMessages(); + + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + boolean hasMessageRetentionDuration(); + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + com.google.protobuf.Duration getMessageRetentionDuration(); + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Duration message_retention_duration = 8; + */ + com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder(); + + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 9; + */ + int getLabelsCount(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 9; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 9; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 9; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 9; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java new file mode 100644 index 000000000000..6ebdc7c1d2e5 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -0,0 +1,908 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * A topic resource.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.Topic} + */ +public final class Topic extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.Topic) + TopicOrBuilder { +private static final long serialVersionUID = 0L; + // Use Topic.newBuilder() to construct. + private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Topic() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Topic( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * 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"`.
+   * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * 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"`.
+   * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 2; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 2; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 2; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 2; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 2); + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, labels__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.Topic)) { + return super.equals(obj); + } + com.google.pubsub.v1.Topic other = (com.google.pubsub.v1.Topic) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && internalGetLabels().equals( + other.internalGetLabels()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.Topic parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.Topic parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.Topic parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.Topic parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.Topic parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.Topic parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.Topic parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.Topic parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.Topic parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.Topic parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.Topic parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.Topic parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.Topic prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A topic resource.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.Topic} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Topic) + com.google.pubsub.v1.TopicOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); + } + + // Construct using com.google.pubsub.v1.Topic.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + internalGetMutableLabels().clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; + } + + public com.google.pubsub.v1.Topic getDefaultInstanceForType() { + return com.google.pubsub.v1.Topic.getDefaultInstance(); + } + + public com.google.pubsub.v1.Topic build() { + com.google.pubsub.v1.Topic result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.Topic buildPartial() { + com.google.pubsub.v1.Topic result = new com.google.pubsub.v1.Topic(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.Topic) { + return mergeFrom((com.google.pubsub.v1.Topic)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.Topic other) { + if (other == com.google.pubsub.v1.Topic.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.Topic parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.Topic) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * 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"`.
+     * 
+ * + * string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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"`.
+     * 
+ * + * string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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"`.
+     * 
+ * + * string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * 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"`.
+     * 
+ * + * string name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * 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"`.
+     * 
+ * + * string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 2; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 2; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 2; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 2; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 2; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 2; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 2; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Topic) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.Topic) + private static final com.google.pubsub.v1.Topic DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.Topic(); + } + + public static com.google.pubsub.v1.Topic getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Topic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Topic(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.Topic getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java new file mode 100644 index 000000000000..96eca07d026c --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -0,0 +1,23 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.pubsub.v1; + +import com.google.api.resourcenames.ResourceName; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public abstract class TopicName implements ResourceName { + protected TopicName() {} +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java new file mode 100644 index 000000000000..2d88a884a848 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java @@ -0,0 +1,33 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.pubsub.v1; + +import com.google.api.resourcenames.ResourceName; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class TopicNames { + private TopicNames() {} + + public static TopicName parse(String resourceNameString) { + if (ProjectTopicName.isParsableFrom(resourceNameString)) { + return ProjectTopicName.parse(resourceNameString); + } + if (DeletedTopic.matches(resourceNameString)) { + return DeletedTopic.instance(); + } + return UntypedTopicName.parse(resourceNameString); + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java new file mode 100644 index 000000000000..7ae28923e135 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -0,0 +1,91 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface TopicOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Topic) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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"`.
+   * 
+ * + * string name = 1; + */ + java.lang.String getName(); + /** + *
+   * 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"`.
+   * 
+ * + * string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 2; + */ + int getLabelsCount(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 2; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 2; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 2; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 2; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java new file mode 100644 index 000000000000..7197c0348d87 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java @@ -0,0 +1,112 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ + +package com.google.pubsub.v1; + +import com.google.common.base.Preconditions; +import com.google.api.resourcenames.ResourceName; +import com.google.api.resourcenames.ResourceNameType; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +@javax.annotation.Generated("by GAPIC protoc plugin") +public class UntypedTopicName extends TopicName { + + private final String rawValue; + private Map valueMap; + + private UntypedTopicName(String rawValue) { + this.rawValue = Preconditions.checkNotNull(rawValue); + this.valueMap = ImmutableMap.of("", rawValue); + } + + public static UntypedTopicName from(ResourceName resourceName) { + return new UntypedTopicName(resourceName.toString()); + } + + public static UntypedTopicName parse(String formattedString) { + return new UntypedTopicName(formattedString); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (UntypedTopicName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return true; + } + + /** + * Return a map with a single value rawValue keyed on an empty String "". + */ + public Map getFieldValuesMap() { + return valueMap; + } + + /** + * Return the initial rawValue if @param fieldName is an empty String, else return null. + */ + public String getFieldValue(String fieldName) { + return valueMap.get(fieldName); + } + + /** + * @deprecated This method is only present to satisfy the ResourceName interface. + */ + @Deprecated + public ResourceNameType getType() { + throw new UnsupportedOperationException("UntypedTopicName.getType() not supported"); + } + + @Override + public String toString() { + return rawValue; + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof UntypedTopicName) { + UntypedTopicName that = (UntypedTopicName) o; + return this.rawValue.equals(that.rawValue); + } + return false; + } + + @Override + public int hashCode() { + return rawValue.hashCode(); + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java new file mode 100644 index 000000000000..865b574fe79d --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -0,0 +1,867 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the UpdateSnapshot method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} + */ +public final class UpdateSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSnapshotRequest) + UpdateSnapshotRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateSnapshotRequest.newBuilder() to construct. + private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateSnapshotRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateSnapshotRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.pubsub.v1.Snapshot.Builder subBuilder = null; + if (snapshot_ != null) { + subBuilder = snapshot_.toBuilder(); + } + snapshot_ = input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(snapshot_); + snapshot_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.UpdateSnapshotRequest.class, com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); + } + + public static final int SNAPSHOT_FIELD_NUMBER = 1; + private com.google.pubsub.v1.Snapshot snapshot_; + /** + *
+   * The updated snpashot object.
+   * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public boolean hasSnapshot() { + return snapshot_ != null; + } + /** + *
+   * The updated snpashot object.
+   * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public com.google.pubsub.v1.Snapshot getSnapshot() { + return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; + } + /** + *
+   * The updated snpashot object.
+   * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { + return getSnapshot(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Indicates which fields in the provided snapshot to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Indicates which fields in the provided snapshot to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Indicates which fields in the provided snapshot to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (snapshot_ != null) { + output.writeMessage(1, getSnapshot()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (snapshot_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnapshot()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.UpdateSnapshotRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.UpdateSnapshotRequest other = (com.google.pubsub.v1.UpdateSnapshotRequest) obj; + + boolean result = true; + result = result && (hasSnapshot() == other.hasSnapshot()); + if (hasSnapshot()) { + result = result && getSnapshot() + .equals(other.getSnapshot()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask() + .equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.UpdateSnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the UpdateSnapshot method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateSnapshotRequest) + com.google.pubsub.v1.UpdateSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.UpdateSnapshotRequest.class, com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.UpdateSnapshotRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (snapshotBuilder_ == null) { + snapshot_ = null; + } else { + snapshot_ = null; + snapshotBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; + } + + public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.UpdateSnapshotRequest build() { + com.google.pubsub.v1.UpdateSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { + com.google.pubsub.v1.UpdateSnapshotRequest result = new com.google.pubsub.v1.UpdateSnapshotRequest(this); + if (snapshotBuilder_ == null) { + result.snapshot_ = snapshot_; + } else { + result.snapshot_ = snapshotBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.UpdateSnapshotRequest) { + return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.UpdateSnapshotRequest other) { + if (other == com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance()) return this; + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.UpdateSnapshotRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.UpdateSnapshotRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.pubsub.v1.Snapshot snapshot_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotBuilder_; + /** + *
+     * The updated snpashot object.
+     * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public boolean hasSnapshot() { + return snapshotBuilder_ != null || snapshot_ != null; + } + /** + *
+     * The updated snpashot object.
+     * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public com.google.pubsub.v1.Snapshot getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + /** + *
+     * The updated snpashot object.
+     * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + onChanged(); + } else { + snapshotBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The updated snpashot object.
+     * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public Builder setSnapshot( + com.google.pubsub.v1.Snapshot.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + onChanged(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The updated snpashot object.
+     * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { + if (snapshotBuilder_ == null) { + if (snapshot_ != null) { + snapshot_ = + com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); + } else { + snapshot_ = value; + } + onChanged(); + } else { + snapshotBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The updated snpashot object.
+     * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public Builder clearSnapshot() { + if (snapshotBuilder_ == null) { + snapshot_ = null; + onChanged(); + } else { + snapshot_ = null; + snapshotBuilder_ = null; + } + + return this; + } + /** + *
+     * The updated snpashot object.
+     * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { + + onChanged(); + return getSnapshotFieldBuilder().getBuilder(); + } + /** + *
+     * The updated snpashot object.
+     * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null ? + com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; + } + } + /** + *
+     * The updated snpashot object.
+     * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> + getSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( + getSnapshot(), + getParentForChildren(), + isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + *
+     * Indicates which fields in the provided snapshot to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * Indicates which fields in the provided snapshot to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Indicates which fields in the provided snapshot to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Indicates which fields in the provided snapshot to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Indicates which fields in the provided snapshot to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Indicates which fields in the provided snapshot to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * Indicates which fields in the provided snapshot to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Indicates which fields in the provided snapshot to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * Indicates which fields in the provided snapshot to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSnapshotRequest) + private static final com.google.pubsub.v1.UpdateSnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateSnapshotRequest(); + } + + public static com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UpdateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSnapshotRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..13c36c3a2f82 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface UpdateSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The updated snpashot object.
+   * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + boolean hasSnapshot(); + /** + *
+   * The updated snpashot object.
+   * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + com.google.pubsub.v1.Snapshot getSnapshot(); + /** + *
+   * The updated snpashot object.
+   * 
+ * + * .google.pubsub.v1.Snapshot snapshot = 1; + */ + com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder(); + + /** + *
+   * Indicates which fields in the provided snapshot to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + *
+   * Indicates which fields in the provided snapshot to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Indicates which fields in the provided snapshot to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java new file mode 100644 index 000000000000..44bc150560ba --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -0,0 +1,867 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the UpdateSubscription method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.UpdateSubscriptionRequest} + */ +public final class UpdateSubscriptionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSubscriptionRequest) + UpdateSubscriptionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateSubscriptionRequest.newBuilder() to construct. + private UpdateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateSubscriptionRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateSubscriptionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.pubsub.v1.Subscription.Builder subBuilder = null; + if (subscription_ != null) { + subBuilder = subscription_.toBuilder(); + } + subscription_ = input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subscription_); + subscription_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.UpdateSubscriptionRequest.class, com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); + } + + public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + private com.google.pubsub.v1.Subscription subscription_; + /** + *
+   * The updated subscription object.
+   * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public boolean hasSubscription() { + return subscription_ != null; + } + /** + *
+   * The updated subscription object.
+   * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public com.google.pubsub.v1.Subscription getSubscription() { + return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; + } + /** + *
+   * The updated subscription object.
+   * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { + return getSubscription(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Indicates which fields in the provided subscription to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Indicates which fields in the provided subscription to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Indicates which fields in the provided subscription to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (subscription_ != null) { + output.writeMessage(1, getSubscription()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (subscription_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSubscription()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.UpdateSubscriptionRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.UpdateSubscriptionRequest other = (com.google.pubsub.v1.UpdateSubscriptionRequest) obj; + + boolean result = true; + result = result && (hasSubscription() == other.hasSubscription()); + if (hasSubscription()) { + result = result && getSubscription() + .equals(other.getSubscription()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask() + .equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSubscription()) { + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.UpdateSubscriptionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the UpdateSubscription method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.UpdateSubscriptionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateSubscriptionRequest) + com.google.pubsub.v1.UpdateSubscriptionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.UpdateSubscriptionRequest.class, com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.UpdateSubscriptionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (subscriptionBuilder_ == null) { + subscription_ = null; + } else { + subscription_ = null; + subscriptionBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + } + + public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.UpdateSubscriptionRequest build() { + com.google.pubsub.v1.UpdateSubscriptionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { + com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); + if (subscriptionBuilder_ == null) { + result.subscription_ = subscription_; + } else { + result.subscription_ = subscriptionBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.UpdateSubscriptionRequest) { + return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.UpdateSubscriptionRequest other) { + if (other == com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance()) return this; + if (other.hasSubscription()) { + mergeSubscription(other.getSubscription()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.UpdateSubscriptionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.UpdateSubscriptionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.pubsub.v1.Subscription subscription_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> subscriptionBuilder_; + /** + *
+     * The updated subscription object.
+     * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public boolean hasSubscription() { + return subscriptionBuilder_ != null || subscription_ != null; + } + /** + *
+     * The updated subscription object.
+     * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public com.google.pubsub.v1.Subscription getSubscription() { + if (subscriptionBuilder_ == null) { + return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; + } else { + return subscriptionBuilder_.getMessage(); + } + } + /** + *
+     * The updated subscription object.
+     * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public Builder setSubscription(com.google.pubsub.v1.Subscription value) { + if (subscriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subscription_ = value; + onChanged(); + } else { + subscriptionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The updated subscription object.
+     * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public Builder setSubscription( + com.google.pubsub.v1.Subscription.Builder builderForValue) { + if (subscriptionBuilder_ == null) { + subscription_ = builderForValue.build(); + onChanged(); + } else { + subscriptionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The updated subscription object.
+     * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { + if (subscriptionBuilder_ == null) { + if (subscription_ != null) { + subscription_ = + com.google.pubsub.v1.Subscription.newBuilder(subscription_).mergeFrom(value).buildPartial(); + } else { + subscription_ = value; + } + onChanged(); + } else { + subscriptionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The updated subscription object.
+     * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public Builder clearSubscription() { + if (subscriptionBuilder_ == null) { + subscription_ = null; + onChanged(); + } else { + subscription_ = null; + subscriptionBuilder_ = null; + } + + return this; + } + /** + *
+     * The updated subscription object.
+     * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { + + onChanged(); + return getSubscriptionFieldBuilder().getBuilder(); + } + /** + *
+     * The updated subscription object.
+     * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { + if (subscriptionBuilder_ != null) { + return subscriptionBuilder_.getMessageOrBuilder(); + } else { + return subscription_ == null ? + com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; + } + } + /** + *
+     * The updated subscription object.
+     * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> + getSubscriptionFieldBuilder() { + if (subscriptionBuilder_ == null) { + subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( + getSubscription(), + getParentForChildren(), + isClean()); + subscription_ = null; + } + return subscriptionBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + *
+     * Indicates which fields in the provided subscription to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * Indicates which fields in the provided subscription to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Indicates which fields in the provided subscription to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Indicates which fields in the provided subscription to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Indicates which fields in the provided subscription to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Indicates which fields in the provided subscription to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * Indicates which fields in the provided subscription to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Indicates which fields in the provided subscription to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * Indicates which fields in the provided subscription to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateSubscriptionRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSubscriptionRequest) + private static final com.google.pubsub.v1.UpdateSubscriptionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateSubscriptionRequest(); + } + + public static com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UpdateSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSubscriptionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000000..a9b6ad38c6ad --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface UpdateSubscriptionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The updated subscription object.
+   * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + boolean hasSubscription(); + /** + *
+   * The updated subscription object.
+   * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + com.google.pubsub.v1.Subscription getSubscription(); + /** + *
+   * The updated subscription object.
+   * 
+ * + * .google.pubsub.v1.Subscription subscription = 1; + */ + com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder(); + + /** + *
+   * Indicates which fields in the provided subscription to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + *
+   * Indicates which fields in the provided subscription to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Indicates which fields in the provided subscription to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java new file mode 100644 index 000000000000..cbe32588bc66 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -0,0 +1,867 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the UpdateTopic method.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.UpdateTopicRequest} + */ +public final class UpdateTopicRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateTopicRequest) + UpdateTopicRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateTopicRequest.newBuilder() to construct. + private UpdateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateTopicRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateTopicRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.google.pubsub.v1.Topic.Builder subBuilder = null; + if (topic_ != null) { + subBuilder = topic_.toBuilder(); + } + topic_ = input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topic_); + topic_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.UpdateTopicRequest.class, com.google.pubsub.v1.UpdateTopicRequest.Builder.class); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + private com.google.pubsub.v1.Topic topic_; + /** + *
+   * The topic to update.
+   * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public boolean hasTopic() { + return topic_ != null; + } + /** + *
+   * The topic to update.
+   * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public com.google.pubsub.v1.Topic getTopic() { + return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; + } + /** + *
+   * The topic to update.
+   * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { + return getTopic(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+   * Indicates which fields in the provided topic to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + *
+   * Indicates which fields in the provided topic to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + *
+   * Indicates which fields in the provided topic to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (topic_ != null) { + output.writeMessage(1, getTopic()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (topic_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTopic()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.UpdateTopicRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.UpdateTopicRequest other = (com.google.pubsub.v1.UpdateTopicRequest) obj; + + boolean result = true; + result = result && (hasTopic() == other.hasTopic()); + if (hasTopic()) { + result = result && getTopic() + .equals(other.getTopic()); + } + result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask()) { + result = result && getUpdateMask() + .equals(other.getUpdateMask()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTopic()) { + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.UpdateTopicRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the UpdateTopic method.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.UpdateTopicRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateTopicRequest) + com.google.pubsub.v1.UpdateTopicRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.UpdateTopicRequest.class, com.google.pubsub.v1.UpdateTopicRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.UpdateTopicRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (topicBuilder_ == null) { + topic_ = null; + } else { + topic_ = null; + topicBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + } + + public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.UpdateTopicRequest build() { + com.google.pubsub.v1.UpdateTopicRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { + com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); + if (topicBuilder_ == null) { + result.topic_ = topic_; + } else { + result.topic_ = topicBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.UpdateTopicRequest) { + return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.UpdateTopicRequest other) { + if (other == com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance()) return this; + if (other.hasTopic()) { + mergeTopic(other.getTopic()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.UpdateTopicRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.UpdateTopicRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.pubsub.v1.Topic topic_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicBuilder_; + /** + *
+     * The topic to update.
+     * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public boolean hasTopic() { + return topicBuilder_ != null || topic_ != null; + } + /** + *
+     * The topic to update.
+     * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public com.google.pubsub.v1.Topic getTopic() { + if (topicBuilder_ == null) { + return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; + } else { + return topicBuilder_.getMessage(); + } + } + /** + *
+     * The topic to update.
+     * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public Builder setTopic(com.google.pubsub.v1.Topic value) { + if (topicBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + onChanged(); + } else { + topicBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The topic to update.
+     * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public Builder setTopic( + com.google.pubsub.v1.Topic.Builder builderForValue) { + if (topicBuilder_ == null) { + topic_ = builderForValue.build(); + onChanged(); + } else { + topicBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The topic to update.
+     * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public Builder mergeTopic(com.google.pubsub.v1.Topic value) { + if (topicBuilder_ == null) { + if (topic_ != null) { + topic_ = + com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); + } else { + topic_ = value; + } + onChanged(); + } else { + topicBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The topic to update.
+     * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public Builder clearTopic() { + if (topicBuilder_ == null) { + topic_ = null; + onChanged(); + } else { + topic_ = null; + topicBuilder_ = null; + } + + return this; + } + /** + *
+     * The topic to update.
+     * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { + + onChanged(); + return getTopicFieldBuilder().getBuilder(); + } + /** + *
+     * The topic to update.
+     * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { + if (topicBuilder_ != null) { + return topicBuilder_.getMessageOrBuilder(); + } else { + return topic_ == null ? + com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; + } + } + /** + *
+     * The topic to update.
+     * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> + getTopicFieldBuilder() { + if (topicBuilder_ == null) { + topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>( + getTopic(), + getParentForChildren(), + isClean()); + topic_ = null; + } + return topicBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** + *
+     * Indicates which fields in the provided topic to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + *
+     * Indicates which fields in the provided topic to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + *
+     * Indicates which fields in the provided topic to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Indicates which fields in the provided topic to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Indicates which fields in the provided topic to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Indicates which fields in the provided topic to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * Indicates which fields in the provided topic to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + *
+     * Indicates which fields in the provided topic to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + } + /** + *
+     * Indicates which fields in the provided topic to update.
+     * Must be specified and non-empty.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateTopicRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateTopicRequest) + private static final com.google.pubsub.v1.UpdateTopicRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateTopicRequest(); + } + + public static com.google.pubsub.v1.UpdateTopicRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UpdateTopicRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateTopicRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java new file mode 100644 index 000000000000..dfe961eaed42 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -0,0 +1,62 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface UpdateTopicRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateTopicRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The topic to update.
+   * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + boolean hasTopic(); + /** + *
+   * The topic to update.
+   * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + com.google.pubsub.v1.Topic getTopic(); + /** + *
+   * The topic to update.
+   * 
+ * + * .google.pubsub.v1.Topic topic = 1; + */ + com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder(); + + /** + *
+   * Indicates which fields in the provided topic to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + boolean hasUpdateMask(); + /** + *
+   * Indicates which fields in the provided topic to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + *
+   * Indicates which fields in the provided topic to update.
+   * Must be specified and non-empty.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto new file mode 100644 index 000000000000..058e0ee1776e --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -0,0 +1,791 @@ +// Copyright 2017 Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.pubsub.v1; + +import "google/api/annotations.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.PubSub.V1"; +option go_package = "google.golang.org/genproto/googleapis/pubsub/v1;pubsub"; +option java_multiple_files = true; +option java_outer_classname = "PubsubProto"; +option java_package = "com.google.pubsub.v1"; +option php_namespace = "Google\\Cloud\\PubSub\\V1"; + + +// The service that an application uses to manipulate subscriptions and to +// consume messages from a subscription via the `Pull` method. +service Subscriber { + // Creates a subscription to a given topic. + // 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](https://cloud.google.com/pubsub/docs/overview#names). + // The generated name is populated in the returned Subscription object. + // Note that for REST API requests, you must specify a name in the request. + rpc CreateSubscription(Subscription) returns (Subscription) { + option (google.api.http) = { + put: "/v1/{name=projects/*/subscriptions/*}" + body: "*" }; + } + + // Gets the configuration details of a subscription. + rpc GetSubscription(GetSubscriptionRequest) returns (Subscription) { + option (google.api.http) = { + get: "/v1/{subscription=projects/*/subscriptions/*}" + }; + } + + // Updates an existing subscription. Note that certain properties of a + // subscription, such as its topic, are not modifiable. + // NOTE: The style guide requires body: "subscription" instead of body: "*". + // Keeping the latter for internal consistency in V1, however it should be + // corrected in V2. See + // https://cloud.google.com/apis/design/standard_methods#update for details. + rpc UpdateSubscription(UpdateSubscriptionRequest) returns (Subscription) { + option (google.api.http) = { + patch: "/v1/{subscription.name=projects/*/subscriptions/*}" + body: "*" + }; + } + + // Lists matching subscriptions. + rpc ListSubscriptions(ListSubscriptionsRequest) returns (ListSubscriptionsResponse) { + option (google.api.http) = { + get: "/v1/{project=projects/*}/subscriptions" + }; + } + + // 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. + rpc DeleteSubscription(DeleteSubscriptionRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{subscription=projects/*/subscriptions/*}" + }; + } + + // 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. + rpc ModifyAckDeadline(ModifyAckDeadlineRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline" + body: "*" + }; + } + + // 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. + rpc Acknowledge(AcknowledgeRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{subscription=projects/*/subscriptions/*}:acknowledge" + body: "*" + }; + } + + // Pulls messages from the server. Returns an empty list if there are no + // messages available in the backlog. The server may return `UNAVAILABLE` if + // there are too many concurrent pull requests pending for the given + // subscription. + rpc Pull(PullRequest) returns (PullResponse) { + option (google.api.http) = { + post: "/v1/{subscription=projects/*/subscriptions/*}:pull" + body: "*" + }; + } + + // (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will + // respond with UNIMPLEMENTED errors unless you have been invited to test + // this feature. Contact cloud-pubsub@google.com with any questions. + // + // 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 `OK` to reassign + // server-side resources, in which case, the client should re-establish the + // stream. `UNAVAILABLE` may also be returned in the case of a transient error + // (e.g., a server restart). These should also be retried by the client. Flow + // control can be achieved by configuring the underlying RPC channel. + rpc StreamingPull(stream StreamingPullRequest) returns (stream StreamingPullResponse); + + // Modifies the `PushConfig` for a specified subscription. + // + // 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`. + rpc ModifyPushConfig(ModifyPushConfigRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig" + body: "*" }; + } + + // Lists the existing snapshots. + rpc ListSnapshots(ListSnapshotsRequest) returns (ListSnapshotsResponse) { + option (google.api.http) = { + get: "/v1/{project=projects/*}/snapshots" + }; + } + + // Creates a snapshot from the requested subscription. + // If the snapshot already exists, returns `ALREADY_EXISTS`. + // If the requested subscription doesn't exist, returns `NOT_FOUND`. + // + // 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](https://cloud.google.com/pubsub/docs/overview#names). + // The generated name is populated in the returned Snapshot object. + // Note that for REST API requests, you must specify a name in the request. + rpc CreateSnapshot(CreateSnapshotRequest) returns (Snapshot) { + option (google.api.http) = { + put: "/v1/{name=projects/*/snapshots/*}" + body: "*" + }; + } + + // Updates an existing snapshot. Note that certain properties of a snapshot + // are not modifiable. + // NOTE: The style guide requires body: "snapshot" instead of body: "*". + // Keeping the latter for internal consistency in V1, however it should be + // corrected in V2. See + // https://cloud.google.com/apis/design/standard_methods#update for details. + rpc UpdateSnapshot(UpdateSnapshotRequest) returns (Snapshot) { + option (google.api.http) = { + patch: "/v1/{snapshot.name=projects/*/snapshots/*}" + body: "*" }; + } + + // Removes an existing snapshot. All messages retained in the snapshot + // are immediately dropped. After a snapshot is deleted, a new one may be + // created with the same name, but the new one has no association with the old + // snapshot or its subscription, unless the same subscription is specified. + rpc DeleteSnapshot(DeleteSnapshotRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{snapshot=projects/*/snapshots/*}" + }; + } + + // Seeks an existing subscription to a point in time or to a given snapshot, + // whichever is provided in the request. + rpc Seek(SeekRequest) returns (SeekResponse) { + option (google.api.http) = { + post: "/v1/{subscription=projects/*/subscriptions/*}:seek" + body: "*" + }; + } +} + +// The service that an application uses to manipulate topics, and to send +// messages to a topic. +service Publisher { + // Creates the given topic with the given name. + rpc CreateTopic(Topic) returns (Topic) { + option (google.api.http) = { + put: "/v1/{name=projects/*/topics/*}" + body: "*" + }; + } + + // Updates an existing topic. Note that certain properties of a topic are not + // modifiable. Options settings follow the style guide: + // NOTE: The style guide requires body: "topic" instead of body: "*". + // Keeping the latter for internal consistency in V1, however it should be + // corrected in V2. See + // https://cloud.google.com/apis/design/standard_methods#update for details. + rpc UpdateTopic(UpdateTopicRequest) returns (Topic) { + option (google.api.http) = { + patch: "/v1/{topic.name=projects/*/topics/*}" + body: "*" }; + } + + // Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic + // does not exist. The message payload must not be empty; it must contain + // either a non-empty data field, or at least one attribute. + rpc Publish(PublishRequest) returns (PublishResponse) { + option (google.api.http) = { + post: "/v1/{topic=projects/*/topics/*}:publish" + body: "*" + }; + } + + // Gets the configuration of a topic. + rpc GetTopic(GetTopicRequest) returns (Topic) { + option (google.api.http) = { + get: "/v1/{topic=projects/*/topics/*}" + }; + } + + // Lists matching topics. + rpc ListTopics(ListTopicsRequest) returns (ListTopicsResponse) { + option (google.api.http) = { + get: "/v1/{project=projects/*}/topics" + }; + } + + // Lists the name of the subscriptions for this topic. + rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) returns (ListTopicSubscriptionsResponse) { + option (google.api.http) = { + get: "/v1/{topic=projects/*/topics/*}/subscriptions" + }; + } + + // 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_`. + rpc DeleteTopic(DeleteTopicRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{topic=projects/*/topics/*}" + }; + } +} + +// A topic resource. +message Topic { + // 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"`. + string name = 1; + + // User labels. + map labels = 2; +} + +// A message data and its attributes. The message payload must not be empty; +// it must contain either a non-empty data field, or at least one attribute. +message PubsubMessage { + // The message payload. + bytes data = 1; + + // Optional attributes for this message. + map attributes = 2; + + // 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. + string message_id = 3; + + // 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. + google.protobuf.Timestamp publish_time = 4; +} + +// Request for the GetTopic method. +message GetTopicRequest { + // The name of the topic to get. + // Format is `projects/{project}/topics/{topic}`. + string topic = 1; +} + +// Request for the UpdateTopic method. +message UpdateTopicRequest { + // The topic to update. + Topic topic = 1; + + // Indicates which fields in the provided topic to update. + // Must be specified and non-empty. + google.protobuf.FieldMask update_mask = 2; +} + +// Request for the Publish method. +message PublishRequest { + // The messages in the request will be published on this topic. + // Format is `projects/{project}/topics/{topic}`. + string topic = 1; + + // The messages to publish. + repeated PubsubMessage messages = 2; +} + +// Response for the `Publish` method. +message PublishResponse { + // The server-assigned ID of each published message, in the same order as + // the messages in the request. IDs are guaranteed to be unique within + // the topic. + repeated string message_ids = 1; +} + +// Request for the `ListTopics` method. +message ListTopicsRequest { + // The name of the cloud project that topics belong to. + // Format is `projects/{project}`. + string project = 1; + + // Maximum number of topics to return. + int32 page_size = 2; + + // 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. + string page_token = 3; +} + +// Response for the `ListTopics` method. +message ListTopicsResponse { + // The resulting topics. + repeated Topic topics = 1; + + // If not empty, indicates that there may be more topics that match the + // request; this value should be passed in a new `ListTopicsRequest`. + string next_page_token = 2; +} + +// Request for the `ListTopicSubscriptions` method. +message ListTopicSubscriptionsRequest { + // The name of the topic that subscriptions are attached to. + // Format is `projects/{project}/topics/{topic}`. + string topic = 1; + + // Maximum number of subscription names to return. + int32 page_size = 2; + + // The value returned by the last `ListTopicSubscriptionsResponse`; indicates + // that this is a continuation of a prior `ListTopicSubscriptions` call, and + // that the system should return the next page of data. + string page_token = 3; +} + +// Response for the `ListTopicSubscriptions` method. +message ListTopicSubscriptionsResponse { + // The names of the subscriptions that match the request. + repeated string subscriptions = 1; + + // If not empty, indicates that there may be more subscriptions that match + // the request; this value should be passed in a new + // `ListTopicSubscriptionsRequest` to get more subscriptions. + string next_page_token = 2; +} + +// Request for the `DeleteTopic` method. +message DeleteTopicRequest { + // Name of the topic to delete. + // Format is `projects/{project}/topics/{topic}`. + string topic = 1; +} + +// A subscription resource. +message Subscription { + // 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"`. + string name = 1; + + // 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. + string topic = 2; + + // 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. + PushConfig push_config = 4; + + // This value is the maximum time after a subscriber receives a message + // before the subscriber should acknowledge the message. After message + // delivery but before the ack deadline expires and before the message is + // acknowledged, it is an outstanding message and will not be delivered + // again during that time (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 + // 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. + int32 ack_deadline_seconds = 5; + + // 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. + bool retain_acked_messages = 7; + + // 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. + google.protobuf.Duration message_retention_duration = 8; + + // User labels. + map labels = 9; +} + +// Configuration for a push delivery endpoint. +message PushConfig { + // A URL locating the endpoint to which messages should be pushed. + // For example, a Webhook endpoint might use "https://example.com/push". + string push_endpoint = 1; + + // Endpoint configuration attributes. + // + // Every endpoint has a set of API supported attributes that can be used to + // control different aspects of the message delivery. + // + // The currently supported attribute is `x-goog-version`, which you can + // use to change the format of the pushed message. This attribute + // indicates the version of the data expected by the endpoint. This + // controls the shape of the pushed message (i.e., its fields and metadata). + // The endpoint version is based on the version of the Pub/Sub API. + // + // If not present during the `CreateSubscription` call, it will default to + // the version of the API used to make such call. If not present during a + // `ModifyPushConfig` call, its value will not be changed. `GetSubscription` + // calls will always return a valid version, even if the subscription was + // created without this attribute. + // + // The possible values for this attribute are: + // + // * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. + // * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. + map attributes = 2; +} + +// A message and its corresponding acknowledgment ID. +message ReceivedMessage { + // This ID can be used to acknowledge the received message. + string ack_id = 1; + + // The message. + PubsubMessage message = 2; +} + +// Request for the GetSubscription method. +message GetSubscriptionRequest { + // The name of the subscription to get. + // Format is `projects/{project}/subscriptions/{sub}`. + string subscription = 1; +} + +// Request for the UpdateSubscription method. +message UpdateSubscriptionRequest { + // The updated subscription object. + Subscription subscription = 1; + + // Indicates which fields in the provided subscription to update. + // Must be specified and non-empty. + google.protobuf.FieldMask update_mask = 2; +} + +// Request for the `ListSubscriptions` method. +message ListSubscriptionsRequest { + // The name of the cloud project that subscriptions belong to. + // Format is `projects/{project}`. + string project = 1; + + // Maximum number of subscriptions to return. + int32 page_size = 2; + + // The value returned by the last `ListSubscriptionsResponse`; indicates that + // this is a continuation of a prior `ListSubscriptions` call, and that the + // system should return the next page of data. + string page_token = 3; +} + +// Response for the `ListSubscriptions` method. +message ListSubscriptionsResponse { + // The subscriptions that match the request. + repeated Subscription subscriptions = 1; + + // If not empty, indicates that there may be more subscriptions that match + // the request; this value should be passed in a new + // `ListSubscriptionsRequest` to get more subscriptions. + string next_page_token = 2; +} + +// Request for the DeleteSubscription method. +message DeleteSubscriptionRequest { + // The subscription to delete. + // Format is `projects/{project}/subscriptions/{sub}`. + string subscription = 1; +} + +// Request for the ModifyPushConfig method. +message ModifyPushConfigRequest { + // The name of the subscription. + // Format is `projects/{project}/subscriptions/{sub}`. + string subscription = 1; + + // 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` is not called. + PushConfig push_config = 2; +} + +// Request for the `Pull` method. +message PullRequest { + // The subscription from which messages should be pulled. + // Format is `projects/{project}/subscriptions/{sub}`. + string subscription = 1; + + // 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. The + // client may cancel the request if it does not wish to wait any longer for + // the response. + bool return_immediately = 2; + + // The maximum number of messages returned for this request. The Pub/Sub + // system may return fewer than the number specified. + int32 max_messages = 3; +} + +// Response for the `Pull` method. +message PullResponse { + // Received Pub/Sub messages. The Pub/Sub system will return zero messages if + // there are no more available in the backlog. The Pub/Sub system may return + // fewer than the `maxMessages` requested even if there are more messages + // available in the backlog. + repeated ReceivedMessage received_messages = 1; +} + +// Request for the ModifyAckDeadline method. +message ModifyAckDeadlineRequest { + // The name of the subscription. + // Format is `projects/{project}/subscriptions/{sub}`. + string subscription = 1; + + // List of acknowledgment IDs. + repeated string ack_ids = 4; + + // 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 may immediately make the message available for + // another pull request. + // The minimum deadline you can specify is 0 seconds. + // The maximum deadline you can specify is 600 seconds (10 minutes). + int32 ack_deadline_seconds = 3; +} + +// Request for the Acknowledge method. +message AcknowledgeRequest { + // The subscription whose message is being acknowledged. + // Format is `projects/{project}/subscriptions/{sub}`. + string subscription = 1; + + // The acknowledgment ID for the messages being acknowledged that was returned + // by the Pub/Sub system in the `Pull` response. Must not be empty. + repeated string ack_ids = 2; +} + +// 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. +message StreamingPullRequest { + // 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}`. + string subscription = 1; + + // 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`. + repeated string ack_ids = 2; + + // The list of new ack deadlines for the IDs listed in + // `modify_deadline_ack_ids`. The size of this list must be the same as the + // size of `modify_deadline_ack_ids`. If it differs the stream will be aborted + // with `INVALID_ARGUMENT`. Each element in this list is applied to the + // element in the same position in `modify_deadline_ack_ids`. The new ack + // deadline is with respect to the time this request was sent to the Pub/Sub + // system. Must be >= 0. For example, if the value is 10, the new ack deadline + // will expire 10 seconds after this request is received. If the value is 0, + // the message is immediately made available for another streaming or + // non-streaming pull request. If the value is < 0 (an error), the stream will + // be aborted with status `INVALID_ARGUMENT`. + repeated int32 modify_deadline_seconds = 3; + + // 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. + repeated string modify_deadline_ack_ids = 4; + + // The ack deadline to use for the stream. This must be provided in the + // first request on the stream, but it can also be updated on subsequent + // requests from client to server. The minimum deadline you can specify is 10 + // seconds. The maximum deadline you can specify is 600 seconds (10 minutes). + int32 stream_ack_deadline_seconds = 5; +} + +// Response for the `StreamingPull` method. This response is used to stream +// messages from the server to the client. +message StreamingPullResponse { + // Received Pub/Sub messages. This will not be empty. + repeated ReceivedMessage received_messages = 1; +} + +// Request for the `CreateSnapshot` method. +message CreateSnapshotRequest { + // Optional 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. + // Format is `projects/{project}/snapshots/{snap}`. + string name = 1; + + // 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}`. + string subscription = 2; +} + +// Request for the UpdateSnapshot method. +message UpdateSnapshotRequest { + // The updated snpashot object. + Snapshot snapshot = 1; + + // Indicates which fields in the provided snapshot to update. + // Must be specified and non-empty. + google.protobuf.FieldMask update_mask = 2; +} + +// A snapshot resource. +message Snapshot { + // The name of the snapshot. + string name = 1; + + // The name of the topic from which this snapshot is retaining messages. + string topic = 2; + + // 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. + google.protobuf.Timestamp expire_time = 3; + + // User labels. + map labels = 4; +} + +// Request for the `ListSnapshots` method. +message ListSnapshotsRequest { + // The name of the cloud project that snapshots belong to. + // Format is `projects/{project}`. + string project = 1; + + // Maximum number of snapshots to return. + int32 page_size = 2; + + // The value returned by the last `ListSnapshotsResponse`; indicates that this + // is a continuation of a prior `ListSnapshots` call, and that the system + // should return the next page of data. + string page_token = 3; +} + +// Response for the `ListSnapshots` method. +message ListSnapshotsResponse { + // The resulting snapshots. + repeated Snapshot snapshots = 1; + + // If not empty, indicates that there may be more snapshot that match the + // request; this value should be passed in a new `ListSnapshotsRequest`. + string next_page_token = 2; +} + +// Request for the `DeleteSnapshot` method. +message DeleteSnapshotRequest { + // The name of the snapshot to delete. + // Format is `projects/{project}/snapshots/{snap}`. + string snapshot = 1; +} + +// Request for the `Seek` method. +message SeekRequest { + // The subscription to affect. + string subscription = 1; + + oneof target { + // 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. + google.protobuf.Timestamp time = 2; + + // 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}`. + string snapshot = 3; + } +} + +message SeekResponse { + +} From fdfee81e74e80d8abb327e919686d98749035b0a Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Thu, 10 May 2018 10:54:50 -0700 Subject: [PATCH 0003/2363] Move grpc and proto artifacts to google-cloud-java from api-client-staging (second part) (#3251) 1) Radically change the structure of the repo. Now the root `pom.xml` file is not deployed to maven and is not a parent pom for any of the other modules, but is simply an aggregator pom, which aggregates other mostly independent of each other modules. 2) Update proto and grpc artifact to the latest generated versions as of time of this PR. 3) Add `cloudiot-v1` and `websecurityscanner-v1alpha` proto and grp artifacts (not released yet even in api-client-staging). Note, gapic clients for this apis are not added yet. 4) Rename `google-cloud-pom` parent artifact (for manual and gapic clients) to `google-cloud-clients`. 5) Move all manual and gapic clients from root directory to `google-cloud-clients` sub directory. 6) Make `google-cloud-bom` not a child of `google-cloud-clients` (former `google-cloud-pom`) anymore, keep it on root level so it becomes a sibling of `google-cloud-clients` (module which used to be its parent). 7) Similarly make `google-cloud-examples`, `google-cloud-testing` and `google-cloud-util` not children of `google-cloud-clients` and keep them on root level. Make these three modules also excluded from maven deployment (they will not be published to maven anymore). After this PR is done, additional work is required to fix circleci individual IT tests runs (should be trivial). Also deployment and documentation scripts must be modified accordingly (will be done right after pushing this PR). --- java-pubsub/google-cloud-pubsub/README.md | 249 ++ java-pubsub/google-cloud-pubsub/pom.xml | 92 + .../cloud/pubsub/v1/AckReplyConsumer.java | 34 + .../cloud/pubsub/v1/MessageDispatcher.java | 496 ++++ .../cloud/pubsub/v1/MessageReceiver.java | 48 + .../google/cloud/pubsub/v1/MessageWaiter.java | 67 + .../com/google/cloud/pubsub/v1/Publisher.java | 610 +++++ .../cloud/pubsub/v1/PublisherStats.java | 55 + .../google/cloud/pubsub/v1/StatusUtil.java | 50 + .../v1/StreamingSubscriberConnection.java | 359 +++ .../google/cloud/pubsub/v1/Subscriber.java | 604 +++++ .../cloud/pubsub/v1/SubscriberStats.java | 78 + .../pubsub/v1/SubscriptionAdminClient.java | 2295 +++++++++++++++++ .../pubsub/v1/SubscriptionAdminSettings.java | 393 +++ .../cloud/pubsub/v1/TopicAdminClient.java | 1375 ++++++++++ .../cloud/pubsub/v1/TopicAdminSettings.java | 296 +++ .../google/cloud/pubsub/v1/package-info.java | 61 + .../v1/stub/GrpcPublisherCallableFactory.java | 114 + .../pubsub/v1/stub/GrpcPublisherStub.java | 366 +++ .../stub/GrpcSubscriberCallableFactory.java | 114 + .../pubsub/v1/stub/GrpcSubscriberStub.java | 562 ++++ .../cloud/pubsub/v1/stub/PublisherStub.java | 106 + .../pubsub/v1/stub/PublisherStubSettings.java | 746 ++++++ .../cloud/pubsub/v1/stub/SubscriberStub.java | 151 ++ .../v1/stub/SubscriberStubSettings.java | 861 +++++++ .../google/cloud/pubsub/it/ITPubSubTest.java | 184 ++ .../com/google/cloud/pubsub/v1/FakeClock.java | 42 + .../pubsub/v1/FakePublisherServiceImpl.java | 108 + .../v1/FakeScheduledExecutorService.java | 352 +++ .../pubsub/v1/FakeSubscriberServiceImpl.java | 426 +++ .../pubsub/v1/MessageDispatcherTest.java | 197 ++ .../cloud/pubsub/v1/MessageWaiterTest.java | 55 + .../google/cloud/pubsub/v1/MockIAMPolicy.java | 57 + .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 107 + .../google/cloud/pubsub/v1/MockPublisher.java | 57 + .../cloud/pubsub/v1/MockPublisherImpl.java | 170 ++ .../cloud/pubsub/v1/MockSubscriber.java | 57 + .../cloud/pubsub/v1/MockSubscriberImpl.java | 318 +++ .../cloud/pubsub/v1/PublisherImplTest.java | 569 ++++ .../cloud/pubsub/v1/StatusUtilTest.java | 18 + .../v1/StreamingSubscriberConnectionTest.java | 111 + .../cloud/pubsub/v1/SubscriberTest.java | 158 ++ .../v1/SubscriptionAdminClientTest.java | 820 ++++++ .../cloud/pubsub/v1/TopicAdminClientTest.java | 497 ++++ .../cloud/pubsub/v1/TopicAdminSmokeTest.java | 65 + .../grpc-google-cloud-pubsub-v1/pom.xml | 6 +- .../proto-google-cloud-pubsub-v1/pom.xml | 6 +- 47 files changed, 14556 insertions(+), 6 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/README.md create mode 100644 java-pubsub/google-cloud-pubsub/pom.xml create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md new file mode 100644 index 000000000000..dd6cb3b0b6c3 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -0,0 +1,249 @@ +Google Cloud Java Client for Pub/Sub +==================================== + +Java idiomatic client for [Google Cloud Pub/Sub][cloud-pubsub]. + +[![CircleCI](https://circleci.com/gh/GoogleCloudPlatform/google-cloud-java/tree/master.svg?style=shield)](https://circleci.com/gh/GoogleCloudPlatform/google-cloud-java/tree/master) +[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/google-cloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/google-cloud-java?branch=master) +[![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg)]( https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg) +[![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/google-cloud-java) +[![Dependency Status](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772/badge.svg?style=flat)](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772) + +- [Product Documentation][pubsub-product-docs] +- [Client Library Documentation][pubsub-client-lib-docs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + +Quickstart +---------- + +[//]: # ({x-version-update-start:google-cloud-pubsub:released}) +Add this to your pom.xml file +```xml + + com.google.cloud + google-cloud-pubsub + 0.47.0-beta + +``` +If you are using Gradle, add this to your dependencies +```Groovy +compile 'com.google.cloud:google-cloud-pubsub:0.47.0-beta' +``` +If you are using SBT, add this to your dependencies +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "0.47.0-beta" +``` +[//]: # ({x-version-update-end}) + +Authentication +-------------- + +See the [Authentication](https://github.com/GoogleCloudPlatform/google-cloud-java#authentication) section in the base directory's README. + +About Google Cloud Pub/Sub +-------------------------- + +[Google Cloud Pub/Sub][cloud-pubsub] is designed to provide reliable, +many-to-many, asynchronous messaging between applications. Publisher +applications can send messages to a topic and other applications can +subscribe to that topic to receive the messages. By decoupling senders and +receivers, Google Cloud Pub/Sub allows developers to communicate between +independently written applications. + +See the [Google Cloud Pub/Sub docs][cloud-pubsub-quickstart] for more details on how to activate +Cloud Pub/Sub for your project. + +See the [Pub/Sub client library docs][pubsub-client-lib-docs] to learn how to interact with the +Cloud Pub/Sub using this Client Library. + +Getting Started +--------------- +#### Prerequisites +For this tutorial, you will need a +[Google Developers Console](https://console.developers.google.com/) project with the Pub/Sub API +enabled. You will need to [enable billing](https://support.google.com/cloud/answer/6158867?hl=en) to +use Google Cloud Pub/Sub. +[Follow these instructions](https://cloud.google.com/docs/authentication#preparation) to get your +project set up. You will also need to set up the local development environment by [installing the +Google Cloud SDK](https://cloud.google.com/sdk/) and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +#### Installation and setup +You'll need to obtain the `google-cloud-pubsub` library. See the [Quickstart](#quickstart) section +to add `google-cloud-pubsub` as a dependency in your code. + +#### Creating an authorized service object +To make authenticated requests to Google Cloud Pub/Sub, you must create a service object with +credentials. You can then make API calls by calling methods on the Pub/Sub service object. The +simplest way to authenticate is to use +[Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials). +These credentials are automatically inferred from your environment. + +For other authentication options, see the +[Authentication](https://github.com/GoogleCloudPlatform/google-cloud-java#authentication) page. + +#### Creating a topic +With Pub/Sub you can create topics. A topic is a named resource to which messages are sent by +publishers. Add the following imports at the top of your file: + +```java +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ProjectTopicName; +``` +Then, to create the topic, use the following code: + +```java +ProjectTopicName topic = ProjectTopicName.of("test-project", "test-topic"); +try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + topicAdminClient.createTopic(topic); +} +``` + +#### Publishing messages +With Pub/Sub you can publish messages to a topic. Add the following import at the top of your file: + +```java +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +``` +Then, to publish messages asynchronously, use the following code: + +```java +Publisher publisher = null; +try { + publisher = Publisher.newBuilder(topic).build(); + ByteString data = ByteString.copyFromUtf8("my-message"); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); +} finally { + if (publisher != null) { + publisher.shutdown(); + } +} +``` + +#### Creating a subscription +With Pub/Sub you can create subscriptions. A subscription represents the stream of messages from a +single, specific topic. Add the following imports at the top of your file: + +```java +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +``` +Then, to create the subscription, use the following code: + +```java +ProjectTopicName topic = ProjectTopicName.of("test-project", "test-topic"); +ProjectSubscriptionName subscription = ProjectSubscriptionName.of("test-project", "test-subscription"); + +try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + subscriptionAdminClient.createSubscription(subscription, topic, PushConfig.getDefaultInstance(), 0); +} +``` + +#### Pulling messages +With Pub/Sub you can pull messages from a subscription. Add the following imports at the top of your +file: + +```java +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +``` +Then, to pull messages asynchronously, use the following code: + +```java +ProjectSubscriptionName subscription = ProjectSubscriptionName.of("test-project", "test-subscription"); + +MessageReceiver receiver = + new MessageReceiver() { + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + System.out.println("got message: " + message.getData().toStringUtf8()); + consumer.ack(); + } + }; + +Subscriber subscriber = null; +try { + subscriber = Subscriber.newBuilder(subscription, receiver).build(); + subscriber.addListener( + new Subscriber.Listener() { + @Override + public void failed(Subscriber.State from, Throwable failure) { + // Handle failure. This is called when the Subscriber encountered a fatal error and is shutting down. + System.err.println(failure); + } + }, + MoreExecutors.directExecutor()); + subscriber.startAsync().awaitRunning(); + //... +} finally { + if (subscriber != null) { + subscriber.stopAsync(); + } +} +``` +#### Complete source code + +In [CreateTopicAndPublishMessages.java](../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. + +Transport +--------- +Pub/Sub uses gRPC for the transport layer. + +Java Versions +------------- + +Java 7 or above is required for using this client. + +Testing +------- + +This library has tools to help make tests for code using Cloud Pub/Sub. + +See [TESTING] to read more about testing. + +Versioning +---------- + +This library follows [Semantic Versioning](http://semver.org/). + +It is currently in major version zero (``0.y.z``), which means that anything +may change at any time and the public API should not be considered +stable. + +Contributing +------------ + +Contributions to this library are always welcome and highly encouraged. + +See `google-cloud`'s [CONTRIBUTING] documentation and the [shared documentation](https://github.com/GoogleCloudPlatform/gcloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + +License +------- + +Apache 2.0 - See [LICENSE] for more information. + + +[CONTRIBUTING]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CONTRIBUTING.md +[code-of-conduct]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[LICENSE]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/LICENSE +[TESTING]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/TESTING.md#testing-code-that-uses-pubsub + +[cloud-pubsub]: https://cloud.google.com/pubsub/ +[cloud-pubsub-quickstart]: https://cloud.google.com/pubsub/quickstart-console#before-you-begin +[pubsub-product-docs]: https://cloud.google.com/pubsub/docs/ +[pubsub-client-lib-docs]: https://googlecloudplatform.github.io/google-cloud-java/latest/apidocs/index.html?com/google/cloud/pubsub/v1/package-summary.html diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml new file mode 100644 index 000000000000..9df6d8835a7f --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -0,0 +1,92 @@ + + + 4.0.0 + google-cloud-pubsub + 0.47.1-beta-SNAPSHOT + jar + Google Cloud Pub/Sub + https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub + + Java idiomatic client for Google Cloud Pub/Sub. + + + com.google.cloud + google-cloud-clients + 0.47.1-alpha-SNAPSHOT + + + google-cloud-pubsub + + + + ${project.groupId} + google-cloud-core + + + ${project.groupId} + google-cloud-core-grpc + + + com.google.api.grpc + proto-google-cloud-pubsub-v1 + + + com.google.api.grpc + grpc-google-cloud-pubsub-v1 + + + io.grpc + grpc-netty-shaded + + + io.grpc + grpc-stub + + + io.grpc + grpc-auth + + + com.google.auto.value + auto-value + compile + + + ${project.groupId} + google-cloud-core + test-jar + test + + + junit + junit + test + + + org.easymock + easymock + test + + + org.objenesis + objenesis + test + + + com.google.truth + truth + test + + + com.google.api.grpc + grpc-google-iam-v1 + test + + + com.google.api + gax-grpc + testlib + test + + + diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java new file mode 100644 index 000000000000..d659563f9cef --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java @@ -0,0 +1,34 @@ +/* + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +/** + * Accepts a reply, sending it to the service. + */ +public interface AckReplyConsumer { + /** + * Acknowledges that the message has been successfully processed. The service will not send the + * message again. + */ + void ack(); + + /** + * Signals that the message has not been successfully processed. The service should resend the + * message. + */ + void nack(); +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java new file mode 100644 index 000000000000..e41a2ed4f794 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -0,0 +1,496 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiClock; +import com.google.api.core.InternalApi; +import com.google.api.gax.batching.FlowController; +import com.google.api.gax.batching.FlowController.FlowControlException; +import com.google.api.gax.core.Distribution; +import com.google.cloud.pubsub.v1.MessageDispatcher.OutstandingMessageBatch.OutstandingMessage; +import com.google.common.collect.ArrayListMultimap; +import com.google.common.primitives.Ints; +import com.google.common.util.concurrent.FutureCallback; +import com.google.common.util.concurrent.Futures; +import com.google.common.util.concurrent.SettableFuture; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.ReceivedMessage; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; +import java.util.Deque; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.Executor; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReentrantLock; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.threeten.bp.Duration; +import org.threeten.bp.Instant; +import org.threeten.bp.temporal.ChronoUnit; + +/** + * Dispatches messages to a message receiver while handling the messages acking and lease + * extensions. + */ +class MessageDispatcher { + private static final Logger logger = Logger.getLogger(MessageDispatcher.class.getName()); + private static final double PERCENTILE_FOR_ACK_DEADLINE_UPDATES = 99.9; + + @InternalApi static final Duration PENDING_ACKS_SEND_DELAY = Duration.ofMillis(100); + + private final Executor executor; + private final ScheduledExecutorService systemExecutor; + private final ApiClock clock; + + private final Duration ackExpirationPadding; + private final Duration maxAckExtensionPeriod; + private final MessageReceiver receiver; + private final AckProcessor ackProcessor; + + private final FlowController flowController; + private final MessageWaiter messagesWaiter; + + // Maps ID to "total expiration time". If it takes longer than this, stop extending. + private final ConcurrentMap pendingMessages = new ConcurrentHashMap<>(); + + private final LinkedBlockingQueue pendingAcks = new LinkedBlockingQueue<>(); + private final LinkedBlockingQueue pendingNacks = new LinkedBlockingQueue<>(); + private final LinkedBlockingQueue pendingReceipts = new LinkedBlockingQueue<>(); + + // The deadline should be set before use. Here, set it to something unreasonable, + // so we fail loudly if we mess up. + private final AtomicInteger messageDeadlineSeconds = new AtomicInteger(60); + private final AtomicBoolean extendDeadline = new AtomicBoolean(true); + private final Lock jobLock; + private ScheduledFuture backgroundJob; + + private final Deque outstandingMessageBatches; + + // To keep track of number of seconds the receiver takes to process messages. + private final Distribution ackLatencyDistribution; + + /** Stores the data needed to asynchronously modify acknowledgement deadlines. */ + static class PendingModifyAckDeadline { + final List ackIds; + final int deadlineExtensionSeconds; + + PendingModifyAckDeadline(int deadlineExtensionSeconds, String... ackIds) { + this(deadlineExtensionSeconds, Arrays.asList(ackIds)); + } + + private PendingModifyAckDeadline(int deadlineExtensionSeconds, Collection ackIds) { + this.ackIds = new ArrayList(ackIds); + this.deadlineExtensionSeconds = deadlineExtensionSeconds; + } + + public void addAckId(String ackId) { + ackIds.add(ackId); + } + + @Override + public String toString() { + return String.format( + "PendingModifyAckDeadline{extension: %d sec, ackIds: %s}", + deadlineExtensionSeconds, ackIds); + } + } + + /** Internal representation of a reply to a Pubsub message, to be sent back to the service. */ + public enum AckReply { + ACK, + NACK + } + + /** Handles callbacks for acking/nacking messages from the {@link MessageReceiver}. */ + private class AckHandler implements FutureCallback { + private final String ackId; + private final int outstandingBytes; + private final long receivedTimeMillis; + + AckHandler(String ackId, int outstandingBytes) { + this.ackId = ackId; + this.outstandingBytes = outstandingBytes; + receivedTimeMillis = clock.millisTime(); + } + + private void onBoth(LinkedBlockingQueue destination) { + pendingMessages.remove(ackId); + destination.add(ackId); + flowController.release(1, outstandingBytes); + messagesWaiter.incrementPendingMessages(-1); + processOutstandingBatches(); + } + + @Override + public void onFailure(Throwable t) { + logger.log( + Level.WARNING, + "MessageReceiver failed to processes ack ID: " + ackId + ", the message will be nacked.", + t); + onBoth(pendingNacks); + } + + @Override + public void onSuccess(AckReply reply) { + LinkedBlockingQueue destination; + switch (reply) { + case ACK: + destination = pendingAcks; + // Record the latency rounded to the next closest integer. + ackLatencyDistribution.record( + Ints.saturatedCast( + (long) Math.ceil((clock.millisTime() - receivedTimeMillis) / 1000D))); + break; + case NACK: + destination = pendingNacks; + break; + default: + throw new IllegalArgumentException(String.format("AckReply: %s not supported", reply)); + } + onBoth(destination); + } + } + + public interface AckProcessor { + void sendAckOperations( + List acksToSend, List ackDeadlineExtensions); + } + + MessageDispatcher( + MessageReceiver receiver, + AckProcessor ackProcessor, + Duration ackExpirationPadding, + Duration maxAckExtensionPeriod, + Distribution ackLatencyDistribution, + FlowController flowController, + Deque outstandingMessageBatches, + Executor executor, + ScheduledExecutorService systemExecutor, + ApiClock clock) { + this.executor = executor; + this.systemExecutor = systemExecutor; + this.ackExpirationPadding = ackExpirationPadding; + this.maxAckExtensionPeriod = maxAckExtensionPeriod; + this.receiver = receiver; + this.ackProcessor = ackProcessor; + this.flowController = flowController; + this.outstandingMessageBatches = outstandingMessageBatches; + // 601 buckets of 1s resolution from 0s to MAX_ACK_DEADLINE_SECONDS + this.ackLatencyDistribution = ackLatencyDistribution; + jobLock = new ReentrantLock(); + messagesWaiter = new MessageWaiter(); + this.clock = clock; + } + + public void start() { + final Runnable setExtendDeadline = + new Runnable() { + @Override + public void run() { + extendDeadline.set(true); + } + }; + + jobLock.lock(); + try { + // Do not adjust deadline concurrently with extendDeadline or processOutstandingAckOperations. + // The following sequence can happen: + // 0. Initially, deadline = 1 min + // 1. Thread A (TA) wants to send receipts, reads deadline = 1m, but stalls before actually + // sending request + // 2. Thread B (TB) adjusts deadline to 2m + // 3. TB calls extendDeadline, modack all messages to 2m, schedules next extension in 2m + // 4. TA sends request, modacking messages to 1m. + // Then messages will expire too early. + // This can be resolved by adding locks in the right places, but at that point, + // we might as well do things sequentially. + backgroundJob = + systemExecutor.scheduleWithFixedDelay( + new Runnable() { + @Override + public void run() { + try { + if (extendDeadline.getAndSet(false)) { + int newDeadlineSec = computeDeadlineSeconds(); + messageDeadlineSeconds.set(newDeadlineSec); + extendDeadlines(); + // Don't bother cancelling this when we stop. It'd just set an atomic boolean. + systemExecutor.schedule( + setExtendDeadline, + newDeadlineSec - ackExpirationPadding.getSeconds(), + TimeUnit.SECONDS); + } + processOutstandingAckOperations(); + } catch (Throwable t) { + // Catch everything so that one run failing doesn't prevent subsequent runs. + logger.log(Level.WARNING, "failed to run periodic job", t); + } + } + }, + PENDING_ACKS_SEND_DELAY.toMillis(), + PENDING_ACKS_SEND_DELAY.toMillis(), + TimeUnit.MILLISECONDS); + } finally { + jobLock.unlock(); + } + } + + public void stop() { + messagesWaiter.waitNoMessages(); + jobLock.lock(); + try { + if (backgroundJob != null) { + backgroundJob.cancel(false); + backgroundJob = null; + } + } finally { + jobLock.unlock(); + } + processOutstandingAckOperations(); + } + + @InternalApi + void setMessageDeadlineSeconds(int sec) { + messageDeadlineSeconds.set(sec); + } + + @InternalApi + int getMessageDeadlineSeconds() { + return messageDeadlineSeconds.get(); + } + + static class OutstandingMessageBatch { + private final Deque messages; + private final Runnable doneCallback; + + static class OutstandingMessage { + private final ReceivedMessage receivedMessage; + private final AckHandler ackHandler; + + public OutstandingMessage(ReceivedMessage receivedMessage, AckHandler ackHandler) { + this.receivedMessage = receivedMessage; + this.ackHandler = ackHandler; + } + + public ReceivedMessage receivedMessage() { + return receivedMessage; + } + + public AckHandler ackHandler() { + return ackHandler; + } + } + + public OutstandingMessageBatch(Runnable doneCallback) { + this.messages = new LinkedList<>(); + this.doneCallback = doneCallback; + } + + public void addMessage(ReceivedMessage receivedMessage, AckHandler ackHandler) { + this.messages.add(new OutstandingMessage(receivedMessage, ackHandler)); + } + + public Deque messages() { + return messages; + } + } + + public void processReceivedMessages(List messages, Runnable doneCallback) { + if (messages.isEmpty()) { + doneCallback.run(); + return; + } + messagesWaiter.incrementPendingMessages(messages.size()); + + Instant totalExpiration = now().plus(maxAckExtensionPeriod); + for (ReceivedMessage message : messages) { + pendingReceipts.add(message.getAckId()); + pendingMessages.put(message.getAckId(), totalExpiration); + } + + OutstandingMessageBatch outstandingBatch = new OutstandingMessageBatch(doneCallback); + for (ReceivedMessage message : messages) { + AckHandler ackHandler = + new AckHandler(message.getAckId(), message.getMessage().getSerializedSize()); + outstandingBatch.addMessage(message, ackHandler); + } + synchronized (outstandingMessageBatches) { + outstandingMessageBatches.add(outstandingBatch); + } + processOutstandingBatches(); + } + + public void processOutstandingBatches() { + while (true) { + boolean batchDone = false; + Runnable batchCallback = null; + OutstandingMessage outstandingMessage; + synchronized (outstandingMessageBatches) { + OutstandingMessageBatch nextBatch = outstandingMessageBatches.peek(); + if (nextBatch == null) { + return; + } + outstandingMessage = nextBatch.messages.peek(); + if (outstandingMessage == null) { + return; + } + try { + // This is a non-blocking flow controller. + flowController.reserve( + 1, outstandingMessage.receivedMessage().getMessage().getSerializedSize()); + } catch (FlowController.MaxOutstandingElementCountReachedException + | FlowController.MaxOutstandingRequestBytesReachedException flowControlException) { + return; + } catch (FlowControlException unexpectedException) { + throw new IllegalStateException("Flow control unexpected exception", unexpectedException); + } + nextBatch.messages.poll(); // We got a hold to the message already. + batchDone = nextBatch.messages.isEmpty(); + if (batchDone) { + outstandingMessageBatches.poll(); + batchCallback = nextBatch.doneCallback; + } + } + + final PubsubMessage message = outstandingMessage.receivedMessage().getMessage(); + final AckHandler ackHandler = outstandingMessage.ackHandler(); + final SettableFuture response = SettableFuture.create(); + final AckReplyConsumer consumer = + new AckReplyConsumer() { + @Override + public void ack() { + response.set(AckReply.ACK); + } + + @Override + public void nack() { + response.set(AckReply.NACK); + } + }; + Futures.addCallback(response, ackHandler); + executor.execute( + new Runnable() { + @Override + public void run() { + try { + receiver.receiveMessage(message, consumer); + } catch (Exception e) { + response.setException(e); + } + } + }); + if (batchDone) { + batchCallback.run(); + } + } + } + + /** Compute the ideal deadline, set subsequent modacks to this deadline, and return it. */ + @InternalApi + int computeDeadlineSeconds() { + long secLong = ackLatencyDistribution.getNthPercentile(PERCENTILE_FOR_ACK_DEADLINE_UPDATES); + int sec = Ints.saturatedCast(secLong); + + // Use Ints.constrainToRange when we get guava 21. + if (sec < Subscriber.MIN_ACK_DEADLINE_SECONDS) { + sec = Subscriber.MIN_ACK_DEADLINE_SECONDS; + } else if (sec > Subscriber.MAX_ACK_DEADLINE_SECONDS) { + sec = Subscriber.MAX_ACK_DEADLINE_SECONDS; + } + return sec; + } + + @InternalApi + void extendDeadlines() { + int extendSeconds = getMessageDeadlineSeconds(); + List modacks = new ArrayList<>(); + PendingModifyAckDeadline modack = new PendingModifyAckDeadline(extendSeconds); + Instant now = now(); + Instant extendTo = now.plusSeconds(extendSeconds); + + int count = 0; + Iterator> it = pendingMessages.entrySet().iterator(); + while (it.hasNext()) { + Map.Entry entry = it.next(); + String ackId = entry.getKey(); + Instant totalExpiration = entry.getValue(); + // TODO(pongad): PendingModifyAckDeadline is created to dance around polling pull, + // since one modack RPC only takes one expiration. + // Whenever we delete polling pull, we should also delete PendingModifyAckDeadline, + // and just construct StreamingPullRequest directly. + if (totalExpiration.isAfter(extendTo)) { + modack.ackIds.add(ackId); + count++; + continue; + } + it.remove(); + if (totalExpiration.isAfter(now)) { + int sec = Math.max(1, (int) now.until(totalExpiration, ChronoUnit.SECONDS)); + modacks.add(new PendingModifyAckDeadline(sec, ackId)); + count++; + } + } + modacks.add(modack); + logger.log(Level.FINER, "Sending {0} modacks", count); + + List acksToSend = Collections.emptyList(); + ackProcessor.sendAckOperations(acksToSend, modacks); + } + + @InternalApi + void processOutstandingAckOperations() { + List modifyAckDeadlinesToSend = new ArrayList<>(); + + List acksToSend = new ArrayList<>(); + pendingAcks.drainTo(acksToSend); + logger.log(Level.FINER, "Sending {0} acks", acksToSend.size()); + + PendingModifyAckDeadline nacksToSend = new PendingModifyAckDeadline(0); + pendingNacks.drainTo(nacksToSend.ackIds); + logger.log(Level.FINER, "Sending {0} nacks", nacksToSend.ackIds.size()); + if (!nacksToSend.ackIds.isEmpty()) { + modifyAckDeadlinesToSend.add(nacksToSend); + } + + PendingModifyAckDeadline receiptsToSend = + new PendingModifyAckDeadline(getMessageDeadlineSeconds()); + pendingReceipts.drainTo(receiptsToSend.ackIds); + logger.log(Level.FINER, "Sending {0} receipts", receiptsToSend.ackIds.size()); + if (!receiptsToSend.ackIds.isEmpty()) { + modifyAckDeadlinesToSend.add(receiptsToSend); + } + + ackProcessor.sendAckOperations(acksToSend, modifyAckDeadlinesToSend); + } + + private Instant now() { + return Instant.ofEpochMilli(clock.millisTime()); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java new file mode 100644 index 000000000000..c247260d3831 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java @@ -0,0 +1,48 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.pubsub.v1.PubsubMessage; + +/** This interface can be implemented by users of {@link Subscriber} to receive messages. */ +public interface MessageReceiver { + /** + * Called when a message is received by the subscriber. The implementation must arrange for {@link + * AckReplyConsumer#ack()} or {@link + * AckReplyConsumer#nack()} to be called after processing the {@code message}. + * + *

This {@code MessageReceiver} passes all messages to a {@code BlockingQueue}. + * This method can be called concurrently from multiple threads, + * so it is important that the queue be thread-safe. + * + * This example is for illustration. Implementations may directly process messages + * instead of sending them to queues. + *

 {@code
+   * MessageReceiver receiver = new MessageReceiver() {
+   *   public void receiveMessage(final PubsubMessage message, final AckReplyConsumer consumer) {
+   *     if (blockingQueue.offer(message)) {
+   *       consumer.ack();
+   *     } else {
+   *       consumer.nack();
+   *     }
+   *   }
+   * };
+   * }
+ * + */ + void receiveMessage(final PubsubMessage message, final AckReplyConsumer consumer); +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java new file mode 100644 index 000000000000..1fc2cf7a7720 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java @@ -0,0 +1,67 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.InternalApi; +import java.util.concurrent.atomic.AtomicBoolean; + +/** + * A barrier kind of object that helps to keep track and synchronously wait on pending messages. + */ +class MessageWaiter { + private int pendingMessages; + + MessageWaiter() { + pendingMessages = 0; + } + + public synchronized void incrementPendingMessages(int messages) { + this.pendingMessages += messages; + if (pendingMessages == 0) { + notifyAll(); + } + } + + public synchronized void waitNoMessages() { + waitNoMessages(new AtomicBoolean()); + } + + @InternalApi + synchronized void waitNoMessages(AtomicBoolean waitReached) { + boolean interrupted = false; + try { + while (pendingMessages > 0) { + try { + waitReached.set(true); + wait(); + } catch (InterruptedException e) { + // Ignored, uninterruptibly. + interrupted = true; + } + } + } finally { + if (interrupted) { + Thread.currentThread().interrupt(); + } + } + } + + @InternalApi + public int pendingMessages() { + return pendingMessages; + } +} \ No newline at end of file diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java new file mode 100644 index 000000000000..55434aa17775 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -0,0 +1,610 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.core.SettableApiFuture; +import com.google.api.gax.batching.BatchingSettings; +import com.google.api.gax.core.CredentialsProvider; +import com.google.api.gax.core.ExecutorAsBackgroundResource; +import com.google.api.gax.core.ExecutorProvider; +import com.google.api.gax.core.FixedExecutorProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GrpcStatusCode; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.HeaderProvider; +import com.google.api.gax.rpc.NoHeaderProvider; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.auth.oauth2.GoogleCredentials; +import com.google.cloud.pubsub.v1.stub.GrpcPublisherStub; +import com.google.cloud.pubsub.v1.stub.PublisherStub; +import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableList; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.TopicNames; +import io.grpc.Status; +import java.io.IOException; +import java.util.Collections; +import java.util.Iterator; +import java.util.LinkedList; +import java.util.List; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReentrantLock; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.threeten.bp.Duration; + +/** + * A Cloud Pub/Sub publisher, that is + * associated with a specific topic at creation. + * + *

A {@link Publisher} provides built-in capabilities to automatically handle batching of + * messages, controlling memory utilization, and retrying API calls on transient errors. + * + *

With customizable options that control: + * + *

    + *
  • Message batching: such as number of messages or max batch byte size. + *
  • Retries: such as the maximum duration of retries for a failing batch of messages. + *
+ * + *

{@link Publisher} will use the credentials set on the channel, which uses + * application default credentials through {@link GoogleCredentials#getApplicationDefault} + * by default. + */ +public class Publisher { + private static final Logger logger = Logger.getLogger(Publisher.class.getName()); + + private final String topicName; + + private final BatchingSettings batchingSettings; + + private final Lock messagesBatchLock; + private List messagesBatch; + private int batchedBytes; + + private final AtomicBoolean activeAlarm; + + private final PublisherStub publisherStub; + + private final ScheduledExecutorService executor; + private final AtomicBoolean shutdown; + private final List closeables; + private final MessageWaiter messagesWaiter; + private ScheduledFuture currentAlarmFuture; + + /** The maximum number of messages in one request. Defined by the API. */ + public static long getApiMaxRequestElementCount() { + return 1000L; + } + + /** The maximum size of one request. Defined by the API. */ + public static long getApiMaxRequestBytes() { + return 10L * 1000L * 1000L; // 10 megabytes (https://en.wikipedia.org/wiki/Megabyte) + } + + private Publisher(Builder builder) throws IOException { + topicName = builder.topicName; + + this.batchingSettings = builder.batchingSettings; + + messagesBatch = new LinkedList<>(); + messagesBatchLock = new ReentrantLock(); + activeAlarm = new AtomicBoolean(false); + executor = builder.executorProvider.getExecutor(); + if (builder.executorProvider.shouldAutoClose()) { + closeables = + Collections.singletonList(new ExecutorAsBackgroundResource(executor)); + } else { + closeables = Collections.emptyList(); + } + + // Publisher used to take maxAttempt == 0 to mean infinity, but to GAX it means don't retry. + // We post-process this here to keep backward-compatibility. + RetrySettings retrySettings = builder.retrySettings; + if (retrySettings.getMaxAttempts() == 0) { + retrySettings = retrySettings.toBuilder().setMaxAttempts(Integer.MAX_VALUE).build(); + } + + PublisherStubSettings.Builder stubSettings = + PublisherStubSettings.newBuilder() + .setCredentialsProvider(builder.credentialsProvider) + .setExecutorProvider(FixedExecutorProvider.create(executor)) + .setTransportChannelProvider(builder.channelProvider); + stubSettings + .publishSettings() + .setRetryableCodes( + StatusCode.Code.ABORTED, + StatusCode.Code.CANCELLED, + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.INTERNAL, + StatusCode.Code.RESOURCE_EXHAUSTED, + StatusCode.Code.UNKNOWN, + StatusCode.Code.UNAVAILABLE) + .setRetrySettings(retrySettings) + .setBatchingSettings(BatchingSettings.newBuilder().setIsEnabled(false).build()); + this.publisherStub = GrpcPublisherStub.create(stubSettings.build()); + + shutdown = new AtomicBoolean(false); + messagesWaiter = new MessageWaiter(); + } + + /** Topic which the publisher publishes to. */ + public TopicName getTopicName() { + return TopicNames.parse(topicName); + } + + /** Topic which the publisher publishes to. */ + public String getTopicNameString() { + return topicName; + } + + /** + * Schedules the publishing of a message. The publishing of the message may occur immediately or + * be delayed based on the publisher batching options. + * + *

Example of publishing a message. + * + *

{@code
+   * String message = "my_message";
+   * ByteString data = ByteString.copyFromUtf8(message);
+   * PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build();
+   * ApiFuture messageIdFuture = publisher.publish(pubsubMessage);
+   * ApiFutures.addCallback(messageIdFuture, new ApiFutureCallback() {
+   *   public void onSuccess(String messageId) {
+   *     System.out.println("published with message id: " + messageId);
+   *   }
+   *
+   *   public void onFailure(Throwable t) {
+   *     System.out.println("failed to publish: " + t);
+   *   }
+   * });
+   * }
+ * + * @param message the message to publish. + * @return the message ID wrapped in a future. + */ + public ApiFuture publish(PubsubMessage message) { + if (shutdown.get()) { + throw new IllegalStateException("Cannot publish on a shut-down publisher."); + } + + final int messageSize = message.getSerializedSize(); + OutstandingBatch batchToSend = null; + SettableApiFuture publishResult = SettableApiFuture.create(); + final OutstandingPublish outstandingPublish = new OutstandingPublish(publishResult, message); + messagesBatchLock.lock(); + try { + // Check if the next message makes the batch exceed the current batch byte size. + if (!messagesBatch.isEmpty() + && hasBatchingBytes() + && batchedBytes + messageSize >= getMaxBatchBytes()) { + batchToSend = new OutstandingBatch(messagesBatch, batchedBytes); + messagesBatch = new LinkedList<>(); + batchedBytes = 0; + } + + // Border case if the message to send is greater equals to the max batch size then can't be + // included in the current batch and instead sent immediately. + if (!hasBatchingBytes() || messageSize < getMaxBatchBytes()) { + batchedBytes += messageSize; + messagesBatch.add(outstandingPublish); + + // If after adding the message we have reached the batch max messages then we have a batch + // to send. + if (messagesBatch.size() == getBatchingSettings().getElementCountThreshold()) { + batchToSend = new OutstandingBatch(messagesBatch, batchedBytes); + messagesBatch = new LinkedList<>(); + batchedBytes = 0; + } + } + // Setup the next duration based delivery alarm if there are messages batched. + if (!messagesBatch.isEmpty()) { + setupDurationBasedPublishAlarm(); + } else if (currentAlarmFuture != null) { + logger.log(Level.FINER, "Cancelling alarm, no more messages"); + if (activeAlarm.getAndSet(false)) { + currentAlarmFuture.cancel(false); + } + } + } finally { + messagesBatchLock.unlock(); + } + + messagesWaiter.incrementPendingMessages(1); + + if (batchToSend != null) { + logger.log(Level.FINER, "Scheduling a batch for immediate sending."); + final OutstandingBatch finalBatchToSend = batchToSend; + executor.execute( + new Runnable() { + @Override + public void run() { + publishOutstandingBatch(finalBatchToSend); + } + }); + } + + // If the message is over the size limit, it was not added to the pending messages and it will + // be sent in its own batch immediately. + if (hasBatchingBytes() && messageSize >= getMaxBatchBytes()) { + logger.log( + Level.FINER, "Message exceeds the max batch bytes, scheduling it for immediate send."); + executor.execute( + new Runnable() { + @Override + public void run() { + publishOutstandingBatch( + new OutstandingBatch(ImmutableList.of(outstandingPublish), messageSize)); + } + }); + } + + return publishResult; + } + + private void setupDurationBasedPublishAlarm() { + if (!activeAlarm.getAndSet(true)) { + long delayThresholdMs = getBatchingSettings().getDelayThreshold().toMillis(); + logger.log(Level.FINER, "Setting up alarm for the next {0} ms.", delayThresholdMs); + currentAlarmFuture = + executor.schedule( + new Runnable() { + @Override + public void run() { + logger.log(Level.FINER, "Sending messages based on schedule."); + activeAlarm.getAndSet(false); + publishAllOutstanding(); + } + }, + delayThresholdMs, + TimeUnit.MILLISECONDS); + } + } + + /** + * Publish any outstanding batches if non-empty. This method sends buffered messages, but does + * not wait for the send operations to complete. To wait for messages to send, call {@code get} + * on the futures returned from {@code publish}. + */ + public void publishAllOutstanding() { + messagesBatchLock.lock(); + OutstandingBatch batchToSend; + try { + if (messagesBatch.isEmpty()) { + return; + } + batchToSend = new OutstandingBatch(messagesBatch, batchedBytes); + messagesBatch = new LinkedList<>(); + batchedBytes = 0; + } finally { + messagesBatchLock.unlock(); + } + publishOutstandingBatch(batchToSend); + } + + private void publishOutstandingBatch(final OutstandingBatch outstandingBatch) { + PublishRequest.Builder publishRequest = PublishRequest.newBuilder(); + publishRequest.setTopic(topicName); + for (OutstandingPublish outstandingPublish : outstandingBatch.outstandingPublishes) { + publishRequest.addMessages(outstandingPublish.message); + } + + ApiFutures.addCallback( + publisherStub.publishCallable().futureCall(publishRequest.build()), + new ApiFutureCallback() { + @Override + public void onSuccess(PublishResponse result) { + try { + if (result.getMessageIdsCount() != outstandingBatch.size()) { + Throwable t = + new IllegalStateException( + String.format( + "The publish result count %s does not match " + + "the expected %s results. Please contact Cloud Pub/Sub support " + + "if this frequently occurs", + result.getMessageIdsCount(), outstandingBatch.size())); + for (OutstandingPublish oustandingMessage : outstandingBatch.outstandingPublishes) { + oustandingMessage.publishResult.setException(t); + } + return; + } + + Iterator messagesResultsIt = + outstandingBatch.outstandingPublishes.iterator(); + for (String messageId : result.getMessageIdsList()) { + messagesResultsIt.next().publishResult.set(messageId); + } + } finally { + messagesWaiter.incrementPendingMessages(-outstandingBatch.size()); + } + } + + @Override + public void onFailure(Throwable t) { + try { + for (OutstandingPublish outstandingPublish : outstandingBatch.outstandingPublishes) { + outstandingPublish.publishResult.setException(t); + } + } finally { + messagesWaiter.incrementPendingMessages(-outstandingBatch.size()); + } + } + }); + } + + private static final class OutstandingBatch { + final List outstandingPublishes; + final long creationTime; + int attempt; + int batchSizeBytes; + + OutstandingBatch(List outstandingPublishes, int batchSizeBytes) { + this.outstandingPublishes = outstandingPublishes; + attempt = 1; + creationTime = System.currentTimeMillis(); + this.batchSizeBytes = batchSizeBytes; + } + + public int getAttempt() { + return attempt; + } + + public int size() { + return outstandingPublishes.size(); + } + } + + private static final class OutstandingPublish { + SettableApiFuture publishResult; + PubsubMessage message; + + OutstandingPublish(SettableApiFuture publishResult, PubsubMessage message) { + this.publishResult = publishResult; + this.message = message; + } + } + + /** The batching settings configured on this {@code Publisher}. */ + public BatchingSettings getBatchingSettings() { + return batchingSettings; + } + + private long getMaxBatchBytes() { + return getBatchingSettings().getRequestByteThreshold(); + } + + /** + * Schedules immediate publishing of any outstanding messages and waits until all are processed. + * + *

Sends remaining outstanding messages and prevents future calls to publish. This method + * should be invoked prior to deleting the {@link Publisher} object in order to ensure that no + * pending messages are lost. + */ + public void shutdown() throws Exception { + if (shutdown.getAndSet(true)) { + throw new IllegalStateException("Cannot shut down a publisher already shut-down."); + } + if (currentAlarmFuture != null && activeAlarm.getAndSet(false)) { + currentAlarmFuture.cancel(false); + } + publishAllOutstanding(); + messagesWaiter.waitNoMessages(); + for (AutoCloseable closeable : closeables) { + closeable.close(); + } + publisherStub.shutdown(); + } + + private boolean hasBatchingBytes() { + return getMaxBatchBytes() > 0; + } + + /** + * Constructs a new {@link Builder} using the given topic. + * + *

Example of creating a {@code Publisher}. + * + *

{@code
+   * String projectName = "my_project";
+   * String topicName = "my_topic";
+   * ProjectTopicName topic = ProjectTopicName.create(projectName, topicName);
+   * Publisher publisher = Publisher.newBuilder(topic).build();
+   * try {
+   *   // ...
+   * } finally {
+   *   // When finished with the publisher, make sure to shutdown to free up resources.
+   *   publisher.shutdown();
+   * }
+   * }
+ */ + public static Builder newBuilder(TopicName topicName) { + return newBuilder(topicName.toString()); + } + + /** + * Constructs a new {@link Builder} using the given topic. + * + *

Example of creating a {@code Publisher}. + * + *

{@code
+   * String topic = "projects/my_project/topics/my_topic";
+   * Publisher publisher = Publisher.newBuilder(topic).build();
+   * try {
+   *   // ...
+   * } finally {
+   *   // When finished with the publisher, make sure to shutdown to free up resources.
+   *   publisher.shutdown();
+   * }
+   * }
+ */ + public static Builder newBuilder(String topicName) { + return new Builder(topicName); + } + + /** A builder of {@link Publisher}s. */ + public static final class Builder { + static final Duration MIN_TOTAL_TIMEOUT = Duration.ofSeconds(10); + static final Duration MIN_RPC_TIMEOUT = Duration.ofMillis(10); + + // Meaningful defaults. + static final long DEFAULT_ELEMENT_COUNT_THRESHOLD = 100L; + static final long DEFAULT_REQUEST_BYTES_THRESHOLD = 1000L; // 1 kB + static final Duration DEFAULT_DELAY_THRESHOLD = Duration.ofMillis(1); + static final Duration DEFAULT_RPC_TIMEOUT = Duration.ofSeconds(10); + static final Duration DEFAULT_TOTAL_TIMEOUT = MIN_TOTAL_TIMEOUT; + static final BatchingSettings DEFAULT_BATCHING_SETTINGS = + BatchingSettings.newBuilder() + .setDelayThreshold(DEFAULT_DELAY_THRESHOLD) + .setRequestByteThreshold(DEFAULT_REQUEST_BYTES_THRESHOLD) + .setElementCountThreshold(DEFAULT_ELEMENT_COUNT_THRESHOLD) + .build(); + static final RetrySettings DEFAULT_RETRY_SETTINGS = + RetrySettings.newBuilder() + .setTotalTimeout(DEFAULT_TOTAL_TIMEOUT) + .setInitialRetryDelay(Duration.ofMillis(5)) + .setRetryDelayMultiplier(2) + .setMaxRetryDelay(Duration.ofMillis(Long.MAX_VALUE)) + .setInitialRpcTimeout(DEFAULT_RPC_TIMEOUT) + .setRpcTimeoutMultiplier(2) + .setMaxRpcTimeout(DEFAULT_RPC_TIMEOUT) + .build(); + + private static final int THREADS_PER_CPU = 5; + static final ExecutorProvider DEFAULT_EXECUTOR_PROVIDER = + InstantiatingExecutorProvider.newBuilder() + .setExecutorThreadCount(THREADS_PER_CPU * Runtime.getRuntime().availableProcessors()) + .build(); + + String topicName; + + // Batching options + BatchingSettings batchingSettings = DEFAULT_BATCHING_SETTINGS; + + RetrySettings retrySettings = DEFAULT_RETRY_SETTINGS; + + TransportChannelProvider channelProvider = + TopicAdminSettings.defaultGrpcTransportProviderBuilder().setChannelsPerCpu(1).build(); + + HeaderProvider headerProvider = new NoHeaderProvider(); + HeaderProvider internalHeaderProvider = + TopicAdminSettings.defaultApiClientHeaderProviderBuilder().build(); + ExecutorProvider executorProvider = DEFAULT_EXECUTOR_PROVIDER; + CredentialsProvider credentialsProvider = + TopicAdminSettings.defaultCredentialsProviderBuilder().build(); + + private Builder(String topic) { + this.topicName = Preconditions.checkNotNull(topic); + } + + /** + * {@code ChannelProvider} to use to create Channels, which must point at Cloud Pub/Sub + * endpoint. + * + *

For performance, this client benefits from having multiple underlying connections. See + * {@link com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder#setPoolSize(int)}. + */ + public Builder setChannelProvider(TransportChannelProvider channelProvider) { + this.channelProvider = Preconditions.checkNotNull(channelProvider); + return this; + } + + /** + * Sets the static header provider. The header provider will be called during client + * construction only once. The headers returned by the provider will be cached and supplied as + * is for each request issued by the constructed client. Some reserved headers can be overridden + * (e.g. Content-Type) or merged with the default value (e.g. User-Agent) by the underlying + * transport layer. + * + * @param headerProvider the header provider + * @return the builder + */ + @BetaApi + public Builder setHeaderProvider(HeaderProvider headerProvider) { + this.headerProvider = Preconditions.checkNotNull(headerProvider); + return this; + } + + /** + * Sets the static header provider for getting internal (library-defined) headers. The header + * provider will be called during client construction only once. The headers returned by the + * provider will be cached and supplied as is for each request issued by the constructed client. + * Some reserved headers can be overridden (e.g. Content-Type) or merged with the default value + * (e.g. User-Agent) by the underlying transport layer. + * + * @param internalHeaderProvider the internal header provider + * @return the builder + */ + Builder setInternalHeaderProvider(HeaderProvider internalHeaderProvider) { + this.internalHeaderProvider = Preconditions.checkNotNull(internalHeaderProvider); + return this; + } + + /** {@code CredentialsProvider} to use to create Credentials to authenticate calls. */ + public Builder setCredentialsProvider(CredentialsProvider credentialsProvider) { + this.credentialsProvider = Preconditions.checkNotNull(credentialsProvider); + return this; + } + + // Batching options + public Builder setBatchingSettings(BatchingSettings batchingSettings) { + Preconditions.checkNotNull(batchingSettings); + Preconditions.checkNotNull(batchingSettings.getElementCountThreshold()); + Preconditions.checkArgument(batchingSettings.getElementCountThreshold() > 0); + Preconditions.checkNotNull(batchingSettings.getRequestByteThreshold()); + Preconditions.checkArgument(batchingSettings.getRequestByteThreshold() > 0); + Preconditions.checkNotNull(batchingSettings.getDelayThreshold()); + Preconditions.checkArgument(batchingSettings.getDelayThreshold().toMillis() > 0); + this.batchingSettings = batchingSettings; + return this; + } + + /** Configures the Publisher's retry parameters. */ + public Builder setRetrySettings(RetrySettings retrySettings) { + Preconditions.checkArgument( + retrySettings.getTotalTimeout().compareTo(MIN_TOTAL_TIMEOUT) >= 0); + Preconditions.checkArgument( + retrySettings.getInitialRpcTimeout().compareTo(MIN_RPC_TIMEOUT) >= 0); + this.retrySettings = retrySettings; + return this; + } + + /** Gives the ability to set a custom executor to be used by the library. */ + public Builder setExecutorProvider(ExecutorProvider executorProvider) { + this.executorProvider = Preconditions.checkNotNull(executorProvider); + return this; + } + + public Publisher build() throws IOException { + return new Publisher(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java new file mode 100644 index 000000000000..a208bebb6cd1 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java @@ -0,0 +1,55 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.auto.value.AutoValue; + +/** + * A snapshot of the publisher statistics at the time they were requested from the {@link + * Publisher}. + */ +@AutoValue +abstract class PublisherStats { + /** Number of successfully published messages. */ + public abstract long getAckedMessages(); + + /** Number of messages that failed to publish. */ + public abstract long getFailedMessages(); + + /** Number of messages pending to publish, includes message in-flight. */ + public abstract long getPendingMessages(); + + /** Total messages sent, equal to pending + acked + failed messages. */ + public abstract long getSentMessages(); + + public static Builder newBuilder() { + return new AutoValue_PublisherStats.Builder(); + } + + @AutoValue.Builder + public static abstract class Builder { + public abstract Builder setAckedMessages(long value); + + public abstract Builder setFailedMessages(long value); + + public abstract Builder setPendingMessages(long value); + + public abstract Builder setSentMessages(long value); + + public abstract PublisherStats build(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java new file mode 100644 index 000000000000..7002901256d7 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java @@ -0,0 +1,50 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import io.grpc.Status; +import io.grpc.StatusRuntimeException; + +/** Utilities for handling gRPC {@link Status}. */ +final class StatusUtil { + private StatusUtil() { + // Static class, not instantiable. + } + + public static boolean isRetryable(Throwable error) { + if (!(error instanceof StatusRuntimeException)) { + return true; + } + StatusRuntimeException statusRuntimeException = (StatusRuntimeException) error; + switch (statusRuntimeException.getStatus().getCode()) { + case DEADLINE_EXCEEDED: + case INTERNAL: + case CANCELLED: + case RESOURCE_EXHAUSTED: + case ABORTED: + return true; + case UNAVAILABLE: + if (statusRuntimeException.getMessage().contains("Server shutdownNow invoked")) { + return false; + } else { + return true; + } + default: + return false; + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java new file mode 100644 index 000000000000..b9854fe5f683 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -0,0 +1,359 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.AbstractApiService; +import com.google.api.core.ApiClock; +import com.google.api.core.InternalApi; +import com.google.api.gax.batching.FlowController; +import com.google.api.gax.core.Distribution; +import com.google.api.gax.grpc.GrpcStatusCode; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.cloud.pubsub.v1.MessageDispatcher.AckProcessor; +import com.google.cloud.pubsub.v1.MessageDispatcher.PendingModifyAckDeadline; +import com.google.common.collect.Lists; +import com.google.common.util.concurrent.FutureCallback; +import com.google.common.util.concurrent.Futures; +import com.google.common.util.concurrent.SettableFuture; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.SubscriberGrpc.SubscriberStub; +import io.grpc.Status; +import io.grpc.stub.ClientCallStreamObserver; +import io.grpc.stub.ClientResponseObserver; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.Deque; +import java.util.List; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicLong; +import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReentrantLock; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.annotation.Nullable; +import org.threeten.bp.Duration; + +/** Implementation of {@link AckProcessor} based on Cloud Pub/Sub streaming pull. */ +final class StreamingSubscriberConnection extends AbstractApiService implements AckProcessor { + private static final Logger logger = + Logger.getLogger(StreamingSubscriberConnection.class.getName()); + + private static final Duration INITIAL_CHANNEL_RECONNECT_BACKOFF = Duration.ofMillis(100); + private static final Duration MAX_CHANNEL_RECONNECT_BACKOFF = Duration.ofSeconds(10); + private static final int MAX_PER_REQUEST_CHANGES = 1000; + private static final Duration UNARY_TIMEOUT = Duration.ofSeconds(60); + + private final SubscriberStub stub; + private final String subscription; + private final ScheduledExecutorService systemExecutor; + private final MessageDispatcher messageDispatcher; + + private final AtomicLong channelReconnectBackoffMillis = + new AtomicLong(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); + + private final Lock lock = new ReentrantLock(); + private ClientCallStreamObserver requestObserver; + + public StreamingSubscriberConnection( + String subscription, + MessageReceiver receiver, + Duration ackExpirationPadding, + Duration maxAckExtensionPeriod, + Distribution ackLatencyDistribution, + SubscriberStub stub, + FlowController flowController, + Deque outstandingMessageBatches, + ScheduledExecutorService executor, + ScheduledExecutorService systemExecutor, + ApiClock clock) { + this.subscription = subscription; + this.systemExecutor = systemExecutor; + this.stub = stub; + this.messageDispatcher = + new MessageDispatcher( + receiver, + this, + ackExpirationPadding, + maxAckExtensionPeriod, + ackLatencyDistribution, + flowController, + outstandingMessageBatches, + executor, + systemExecutor, + clock); + } + + @Override + protected void doStart() { + logger.config("Starting subscriber."); + messageDispatcher.start(); + initialize(); + notifyStarted(); + } + + @Override + protected void doStop() { + messageDispatcher.stop(); + + lock.lock(); + try { + requestObserver.onError(Status.CANCELLED.asException()); + } finally { + lock.unlock(); + notifyStopped(); + } + } + + private class StreamingPullResponseObserver + implements ClientResponseObserver { + + final SettableFuture errorFuture; + + /** + * When a batch finsihes processing, we want to request one more batch from the server. But by + * the time this happens, our stream might have already errored, and new stream created. We + * don't want to request more batches from the new stream -- that might pull more messages than + * the user can deal with -- so we save the request observer this response observer is "paired + * with". If the stream has already errored, requesting more messages is a no-op. + */ + ClientCallStreamObserver thisRequestObserver; + + StreamingPullResponseObserver(SettableFuture errorFuture) { + this.errorFuture = errorFuture; + } + + @Override + public void beforeStart(ClientCallStreamObserver requestObserver) { + thisRequestObserver = requestObserver; + requestObserver.disableAutoInboundFlowControl(); + } + + @Override + public void onNext(StreamingPullResponse response) { + channelReconnectBackoffMillis.set(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); + messageDispatcher.processReceivedMessages( + response.getReceivedMessagesList(), + new Runnable() { + @Override + public void run() { + // Only request more if we're not shutdown. + // If errorFuture is done, the stream has either failed or hung up, + // and we don't need to request. + if (isAlive() && !errorFuture.isDone()) { + lock.lock(); + try { + thisRequestObserver.request(1); + } catch (Exception e) { + logger.log(Level.WARNING, "cannot request more messages", e); + } finally { + lock.unlock(); + } + } + } + }); + } + + @Override + public void onError(Throwable t) { + errorFuture.setException(t); + } + + @Override + public void onCompleted() { + logger.fine("Streaming pull terminated successfully!"); + errorFuture.set(null); + } + } + + private void initialize() { + final SettableFuture errorFuture = SettableFuture.create(); + final ClientResponseObserver responseObserver = + new StreamingPullResponseObserver(errorFuture); + final ClientCallStreamObserver requestObserver = + (ClientCallStreamObserver) (stub.streamingPull(responseObserver)); + logger.log( + Level.FINER, + "Initializing stream to subscription {0}",subscription); + // We need to set streaming ack deadline, but it's not useful since we'll modack to send receipt anyway. + // Set to some big-ish value in case we modack late. + requestObserver.onNext( + StreamingPullRequest.newBuilder() + .setSubscription(subscription) + .setStreamAckDeadlineSeconds(60) + .build()); + requestObserver.request(1); + + /** + * Must make sure we do this after sending the subscription name and deadline. Otherwise, some + * other thread might use this stream to do something else before we could send the first + * request. + */ + lock.lock(); + try { + this.requestObserver = requestObserver; + } finally { + lock.unlock(); + } + + Futures.addCallback( + errorFuture, + new FutureCallback() { + @Override + public void onSuccess(@Nullable Void result) { + if (!isAlive()) { + return; + } + channelReconnectBackoffMillis.set(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); + // The stream was closed. And any case we want to reopen it to continue receiving + // messages. + initialize(); + } + + @Override + public void onFailure(Throwable cause) { + if (!isAlive()) { + // we don't care about subscription failures when we're no longer running. + logger.log(Level.FINE, "pull failure after service no longer running", cause); + return; + } + if (!StatusUtil.isRetryable(cause)) { + ApiException gaxException = + ApiExceptionFactory.createException( + cause, GrpcStatusCode.of(Status.fromThrowable(cause).getCode()), false); + logger.log(Level.SEVERE, "terminated streaming with exception", gaxException); + notifyFailed(gaxException); + return; + } + logger.log(Level.FINE, "stream closed with retryable exception; will reconnect", cause); + long backoffMillis = channelReconnectBackoffMillis.get(); + long newBackoffMillis = + Math.min(backoffMillis * 2, MAX_CHANNEL_RECONNECT_BACKOFF.toMillis()); + channelReconnectBackoffMillis.set(newBackoffMillis); + + systemExecutor.schedule( + new Runnable() { + @Override + public void run() { + initialize(); + } + }, + backoffMillis, + TimeUnit.MILLISECONDS); + } + }); + } + + private boolean isAlive() { + State state = state(); // Read the state only once. + return state == State.RUNNING || state == State.STARTING; + } + + @Override + public void sendAckOperations( + List acksToSend, List ackDeadlineExtensions) { + SubscriberStub timeoutStub = + stub.withDeadlineAfter(UNARY_TIMEOUT.toMillis(), TimeUnit.MILLISECONDS); + StreamObserver loggingObserver = new StreamObserver() { + @Override + public void onCompleted() { + // noop + } + + @Override + public void onNext(Empty e) { + // noop + } + + @Override + public void onError(Throwable t) { + Level level = isAlive() ? Level.WARNING : Level.FINER; + logger.log(level, "failed to send operations", t); + } + }; + + for (PendingModifyAckDeadline modack : ackDeadlineExtensions) { + for (List idChunk : Lists.partition(modack.ackIds, MAX_PER_REQUEST_CHANGES)) { + timeoutStub.modifyAckDeadline( + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(subscription) + .addAllAckIds(idChunk) + .setAckDeadlineSeconds(modack.deadlineExtensionSeconds) + .build(), + loggingObserver); + } + } + + for (List idChunk : Lists.partition(acksToSend, MAX_PER_REQUEST_CHANGES)) { + timeoutStub.acknowledge( + AcknowledgeRequest.newBuilder() + .setSubscription(subscription) + .addAllAckIds(idChunk) + .build(), + loggingObserver); + } + } + + @InternalApi + static List partitionAckOperations( + List acksToSend, List ackDeadlineExtensions, int size) { + int numExtensions = 0; + for (PendingModifyAckDeadline modify : ackDeadlineExtensions) { + numExtensions += modify.ackIds.size(); + } + int numChanges = Math.max(numExtensions, acksToSend.size()); + int numRequests = numChanges / size + (numChanges % size == 0 ? 0 : 1); + + List requests = new ArrayList<>(numRequests); + for (int i = 0; i < numRequests; i++) { + requests.add(StreamingPullRequest.newBuilder()); + } + + int reqCount = 0; + for (List acksChunk : Lists.partition(acksToSend, size)) { + requests.get(reqCount).addAllAckIds(acksChunk); + reqCount++; + } + + reqCount = 0; + int ackCount = 0; + for (PendingModifyAckDeadline modify : ackDeadlineExtensions) { + for (String ackId : modify.ackIds) { + requests + .get(reqCount) + .addModifyDeadlineSeconds(modify.deadlineExtensionSeconds) + .addModifyDeadlineAckIds(ackId); + ackCount++; + if (ackCount == size) { + reqCount++; + ackCount = 0; + } + } + } + + List ret = new ArrayList<>(requests.size()); + for (StreamingPullRequest.Builder builder : requests) { + ret.add(builder.build()); + } + return ret; + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java new file mode 100644 index 000000000000..8669682e727c --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -0,0 +1,604 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.AbstractApiService; +import com.google.api.core.ApiClock; +import com.google.api.core.ApiService; +import com.google.api.core.BetaApi; +import com.google.api.core.CurrentMillisClock; +import com.google.api.core.InternalApi; +import com.google.api.gax.batching.FlowControlSettings; +import com.google.api.gax.batching.FlowController; +import com.google.api.gax.batching.FlowController.LimitExceededBehavior; +import com.google.api.gax.core.CredentialsProvider; +import com.google.api.gax.core.Distribution; +import com.google.api.gax.core.ExecutorProvider; +import com.google.api.gax.core.FixedExecutorProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.rpc.HeaderProvider; +import com.google.api.gax.rpc.NoHeaderProvider; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.auth.Credentials; +import com.google.auth.oauth2.GoogleCredentials; +import com.google.common.base.Optional; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.SubscriberGrpc; +import com.google.pubsub.v1.SubscriberGrpc.SubscriberStub; +import io.grpc.CallCredentials; +import io.grpc.Channel; +import io.grpc.auth.MoreCallCredentials; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Deque; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.annotation.Nullable; +import org.threeten.bp.Duration; + +/** + * A Cloud Pub/Sub subscriber that is + * associated with a specific subscription at creation. + * + *

A {@link Subscriber} allows you to provide an implementation of a {@link MessageReceiver + * receiver} to which messages are going to be delivered as soon as they are received by the + * subscriber. The delivered messages then can be {@link AckReplyConsumer#ack() acked} or {@link + * AckReplyConsumer#nack() nacked} at will as they get processed by the receiver. Nacking a messages + * implies a later redelivery of such message. + * + *

The subscriber handles the ack management, by automatically extending the ack deadline while + * the message is being processed, to then issue the ack or nack of such message when the processing + * is done. Note: message redelivery is still possible. + * + *

It also provides customizable options that control: + * + *

    + *
  • Ack deadline extension: such as the amount of time ahead to trigger the extension of + * message acknowledgement expiration. + *
  • Flow control: such as the maximum outstanding messages or maximum outstanding bytes to keep + * in memory before the receiver either ack or nack them. + *
+ * + *

{@link Subscriber} will use the credentials set on the channel, which uses application default + * credentials through {@link GoogleCredentials#getApplicationDefault} by default. + * + *

{@code Subscriber} is implemented using Guava's + * Service and provides the same methods. See Guava documentation for more + * details. + */ +public class Subscriber extends AbstractApiService { + private static final int THREADS_PER_CHANNEL = 5; + private static final int MAX_INBOUND_MESSAGE_SIZE = + 20 * 1024 * 1024; // 20MB API maximum message size. + @InternalApi static final int MAX_ACK_DEADLINE_SECONDS = 600; + @InternalApi static final int MIN_ACK_DEADLINE_SECONDS = 10; + + private static final ScheduledExecutorService SHARED_SYSTEM_EXECUTOR = + InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(6).build().getExecutor(); + + private static final Logger logger = Logger.getLogger(Subscriber.class.getName()); + + private final String subscriptionName; + private final FlowControlSettings flowControlSettings; + private final Duration ackExpirationPadding; + private final Duration maxAckExtensionPeriod; + private final ScheduledExecutorService executor; + @Nullable private final ScheduledExecutorService alarmsExecutor; + private final Distribution ackLatencyDistribution = + new Distribution(MAX_ACK_DEADLINE_SECONDS + 1); + private final int numChannels; + private final FlowController flowController; + private final TransportChannelProvider channelProvider; + private final CredentialsProvider credentialsProvider; + private final List channels; + private final MessageReceiver receiver; + private final List streamingSubscriberConnections; + private final Deque outstandingMessageBatches = + new LinkedList<>(); + private final ApiClock clock; + private final List closeables = new ArrayList<>(); + private ScheduledFuture ackDeadlineUpdater; + + private Subscriber(Builder builder) { + receiver = builder.receiver; + flowControlSettings = builder.flowControlSettings; + subscriptionName = builder.subscriptionName; + + Preconditions.checkArgument( + builder.ackExpirationPadding.compareTo(Duration.ZERO) > 0, "padding must be positive"); + Preconditions.checkArgument( + builder.ackExpirationPadding.compareTo(Duration.ofSeconds(MIN_ACK_DEADLINE_SECONDS)) < 0, + "padding must be less than %s seconds", + MIN_ACK_DEADLINE_SECONDS); + ackExpirationPadding = builder.ackExpirationPadding; + maxAckExtensionPeriod = builder.maxAckExtensionPeriod; + clock = builder.clock.isPresent() ? builder.clock.get() : CurrentMillisClock.getDefaultClock(); + + flowController = + new FlowController( + builder + .flowControlSettings + .toBuilder() + .setLimitExceededBehavior(LimitExceededBehavior.ThrowException) + .build()); + + executor = builder.executorProvider.getExecutor(); + if (builder.executorProvider.shouldAutoClose()) { + closeables.add( + new AutoCloseable() { + @Override + public void close() throws IOException { + executor.shutdown(); + } + }); + } + alarmsExecutor = builder.systemExecutorProvider.getExecutor(); + if (builder.systemExecutorProvider.shouldAutoClose()) { + closeables.add( + new AutoCloseable() { + @Override + public void close() throws IOException { + alarmsExecutor.shutdown(); + } + }); + } + + TransportChannelProvider channelProvider = builder.channelProvider; + if (channelProvider.needsExecutor()) { + channelProvider = channelProvider.withExecutor(executor); + } + if (channelProvider.needsHeaders()) { + Map headers = + ImmutableMap.builder() + .putAll(builder.headerProvider.getHeaders()) + .putAll(builder.internalHeaderProvider.getHeaders()) + .build(); + channelProvider = channelProvider.withHeaders(headers); + } + if (channelProvider.needsEndpoint()) { + channelProvider = channelProvider.withEndpoint(SubscriptionAdminSettings.getDefaultEndpoint()); + } + this.channelProvider = channelProvider; + credentialsProvider = builder.credentialsProvider; + + numChannels = builder.parallelPullCount; + channels = new ArrayList<>(numChannels); + streamingSubscriberConnections = new ArrayList(numChannels); + } + + /** + * Constructs a new {@link Builder}. + * + * @param subscription Cloud Pub/Sub subscription to bind the subscriber to + * @param receiver an implementation of {@link MessageReceiver} used to process the received + * messages + */ + public static Builder newBuilder(ProjectSubscriptionName subscription, MessageReceiver receiver) { + return newBuilder(subscription.toString(), receiver); + } + + /** + * Constructs a new {@link Builder}. + * + * @param subscription Cloud Pub/Sub subscription to bind the subscriber to + * @param receiver an implementation of {@link MessageReceiver} used to process the received + * messages + */ + public static Builder newBuilder(String subscription, MessageReceiver receiver) { + return new Builder(subscription, receiver); + } + + /** Subscription which the subscriber is subscribed to. */ + public String getSubscriptionNameString() { + return subscriptionName; + } + + /** Acknowledgement expiration padding. See {@link Builder#setAckExpirationPadding}. */ + @InternalApi + Duration getAckExpirationPadding() { + return ackExpirationPadding; + } + + /** The flow control settings the Subscriber is configured with. */ + public FlowControlSettings getFlowControlSettings() { + return flowControlSettings; + } + + /** + * Initiates service startup and returns immediately. + * + *

Example of receiving a specific number of messages. + * + *

{@code
+   * Subscriber subscriber = Subscriber.newBuilder(subscription, receiver).build();
+   * subscriber.addListener(new Subscriber.Listener() {
+   *   public void failed(Subscriber.State from, Throwable failure) {
+   *     // Handle error.
+   *   }
+   * }, executor);
+   * subscriber.startAsync();
+   *
+   * // Wait for a stop signal.
+   * // In a server, this might be a signal to stop serving.
+   * // In this example, the signal is just a dummy Future.
+   * //
+   * // By default, Subscriber uses daemon threads (see
+   * // https://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html).
+   * // Consequently, once other threads have terminated, Subscriber will not stop the JVM from
+   * // exiting.
+   * // If the Subscriber should simply run forever, either use the setExecutorProvider method in
+   * // Subscriber.Builder
+   * // to use non-daemon threads or run
+   * //   for (;;) {
+   * //     Thread.sleep(Long.MAX_VALUE);
+   * //   }
+   * // at the end of main() to previent the main thread from exiting.
+   * done.get();
+   * subscriber.stopAsync().awaitTerminated();
+   * }
+ */ + @Override + public ApiService startAsync() { + // Override only for the docs. + return super.startAsync(); + } + + @Override + protected void doStart() { + logger.log(Level.FINE, "Starting subscriber group."); + + try { + for (int i = 0; i < numChannels; i++) { + GrpcTransportChannel transportChannel = + (GrpcTransportChannel) channelProvider.getTransportChannel(); + channels.add(transportChannel.getChannel()); + if (channelProvider.shouldAutoClose()) { + closeables.add(transportChannel); + } + } + } catch (IOException e) { + // doesn't matter what we throw, the Service will just catch it and fail to start. + throw new IllegalStateException(e); + } + + // When started, connections submit tasks to the executor. + // These tasks must finish before the connections can declare themselves running. + // If we have a single-thread executor and call startStreamingConnections from the + // same executor, it will deadlock: the thread will be stuck waiting for connections + // to start but cannot start the connections. + // For this reason, we spawn a dedicated thread. Starting subscriber should be rare. + new Thread( + new Runnable() { + @Override + public void run() { + try { + startStreamingConnections(); + notifyStarted(); + } catch (Throwable t) { + notifyFailed(t); + } + } + }) + .start(); + } + + @Override + protected void doStop() { + new Thread( + new Runnable() { + @Override + public void run() { + try { + // stop connection is no-op if connections haven't been started. + stopAllStreamingConnections(); + for (AutoCloseable closeable : closeables) { + closeable.close(); + } + notifyStopped(); + } catch (Exception e) { + notifyFailed(e); + } + } + }) + .start(); + } + + private void startStreamingConnections() throws IOException { + synchronized (streamingSubscriberConnections) { + Credentials credentials = credentialsProvider.getCredentials(); + CallCredentials callCredentials = + credentials == null ? null : MoreCallCredentials.from(credentials); + + for (Channel channel : channels) { + SubscriberStub stub = SubscriberGrpc.newStub(channel); + if (callCredentials != null) { + stub = stub.withCallCredentials(callCredentials); + } + streamingSubscriberConnections.add( + new StreamingSubscriberConnection( + subscriptionName, + receiver, + ackExpirationPadding, + maxAckExtensionPeriod, + ackLatencyDistribution, + stub, + flowController, + outstandingMessageBatches, + executor, + alarmsExecutor, + clock)); + } + startConnections( + streamingSubscriberConnections, + new Listener() { + @Override + public void failed(State from, Throwable failure) { + // If a connection failed is because of a fatal error, we should fail the + // whole subscriber. + stopAllStreamingConnections(); + try { + notifyFailed(failure); + } catch (IllegalStateException e) { + if (isRunning()) { + throw e; + } + // It could happen that we are shutting down while some channels fail. + } + } + }); + } + } + + private void stopAllStreamingConnections() { + stopConnections(streamingSubscriberConnections); + if (ackDeadlineUpdater != null) { + ackDeadlineUpdater.cancel(true); + } + } + + private void startConnections( + List connections, final ApiService.Listener connectionsListener) { + for (ApiService subscriber : connections) { + subscriber.addListener(connectionsListener, executor); + subscriber.startAsync(); + } + for (ApiService subscriber : connections) { + subscriber.awaitRunning(); + } + } + + private void stopConnections(List connections) { + ArrayList liveConnections; + synchronized (connections) { + liveConnections = new ArrayList(connections); + connections.clear(); + } + for (ApiService subscriber : liveConnections) { + subscriber.stopAsync(); + } + for (ApiService subscriber : liveConnections) { + try { + subscriber.awaitTerminated(); + } catch (IllegalStateException e) { + // If the service fails, awaitTerminated will throw an exception. + // However, we could be stopping services because at least one + // has already failed, so we just ignore this exception. + } + } + } + + /** Builder of {@link Subscriber Subscribers}. */ + public static final class Builder { + private static final Duration MIN_ACK_EXPIRATION_PADDING = Duration.ofMillis(100); + private static final Duration DEFAULT_ACK_EXPIRATION_PADDING = Duration.ofSeconds(5); + private static final Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); + + static final ExecutorProvider DEFAULT_EXECUTOR_PROVIDER = + InstantiatingExecutorProvider.newBuilder() + .setExecutorThreadCount( + THREADS_PER_CHANNEL + * Runtime.getRuntime().availableProcessors()) + .build(); + + String subscriptionName; + MessageReceiver receiver; + + Duration ackExpirationPadding = DEFAULT_ACK_EXPIRATION_PADDING; + Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; + + FlowControlSettings flowControlSettings = + FlowControlSettings.newBuilder().setMaxOutstandingElementCount(1000L).build(); + + ExecutorProvider executorProvider = DEFAULT_EXECUTOR_PROVIDER; + ExecutorProvider systemExecutorProvider = FixedExecutorProvider.create(SHARED_SYSTEM_EXECUTOR); + TransportChannelProvider channelProvider = + SubscriptionAdminSettings.defaultGrpcTransportProviderBuilder() + .setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE) + .setKeepAliveTime(Duration.ofMinutes(5)) + .build(); + HeaderProvider headerProvider = new NoHeaderProvider(); + HeaderProvider internalHeaderProvider = + SubscriptionAdminSettings.defaultApiClientHeaderProviderBuilder().build(); + CredentialsProvider credentialsProvider = + SubscriptionAdminSettings.defaultCredentialsProviderBuilder().build(); + Optional clock = Optional.absent(); + int parallelPullCount = 1; + + Builder(String subscriptionName, MessageReceiver receiver) { + this.subscriptionName = subscriptionName; + this.receiver = receiver; + } + + /** + * {@code ChannelProvider} to use to create Channels, which must point at Cloud Pub/Sub + * endpoint. + * + *

For performance, this client benefits from having multiple channels open at once. Users + * are encouraged to provide instances of {@code ChannelProvider} that creates new channels + * instead of returning pre-initialized ones. + */ + public Builder setChannelProvider(TransportChannelProvider channelProvider) { + this.channelProvider = Preconditions.checkNotNull(channelProvider); + return this; + } + + /** + * Sets the static header provider. The header provider will be called during client + * construction only once. The headers returned by the provider will be cached and supplied as + * is for each request issued by the constructed client. Some reserved headers can be overridden + * (e.g. Content-Type) or merged with the default value (e.g. User-Agent) by the underlying + * transport layer. + * + * @param headerProvider the header provider + * @return the builder + */ + @BetaApi + public Builder setHeaderProvider(HeaderProvider headerProvider) { + this.headerProvider = Preconditions.checkNotNull(headerProvider); + return this; + } + + /** + * Sets the static header provider for getting internal (library-defined) headers. The header + * provider will be called during client construction only once. The headers returned by the + * provider will be cached and supplied as is for each request issued by the constructed client. + * Some reserved headers can be overridden (e.g. Content-Type) or merged with the default value + * (e.g. User-Agent) by the underlying transport layer. + * + * @param internalHeaderProvider the internal header provider + * @return the builder + */ + Builder setInternalHeaderProvider(HeaderProvider internalHeaderProvider) { + this.internalHeaderProvider = Preconditions.checkNotNull(internalHeaderProvider); + return this; + } + + /** + * Sets the flow control settings. + * + *

In the example below, the {@link Subscriber} will make sure that + * + *

    + *
  • there are at most ten thousand outstanding messages, and + *
  • the combined size of outstanding messages does not exceed 1GB. + *
+ * + * "Outstanding messages" here means the messages that have already been given to {@link + * MessageReceiver} but not yet {@code acked()} or {@code nacked()}. + * + *
{@code
+     * FlowControlSettings flowControlSettings =
+     *  FlowControlSettings.newBuilder()
+     *      .setMaxOutstandingElementCount(10_000L)
+     *      .setMaxOutstandingRequestBytes(1_000_000_000L)
+     *      .build();
+     * Subscriber subscriber =
+     *     Subscriber.newBuilder(subscriptionName, receiver)
+     *         .setFlowControlSettings(flowControlSettings)
+     *         .build();
+     * }
+ */ + public Builder setFlowControlSettings(FlowControlSettings flowControlSettings) { + this.flowControlSettings = Preconditions.checkNotNull(flowControlSettings); + return this; + } + + /** + * Set acknowledgement expiration padding. + * + *

This is the time accounted before a message expiration is to happen, so the {@link + * Subscriber} is able to send an ack extension beforehand. + * + *

This padding duration is configurable so you can account for network latency. A reasonable + * number must be provided so messages don't expire because of network latency between when the + * ack extension is required and when it reaches the Pub/Sub service. + * + * @param ackExpirationPadding must be greater or equal to {@link #MIN_ACK_EXPIRATION_PADDING} + */ + @InternalApi + Builder setAckExpirationPadding(Duration ackExpirationPadding) { + Preconditions.checkArgument(ackExpirationPadding.compareTo(MIN_ACK_EXPIRATION_PADDING) >= 0); + this.ackExpirationPadding = ackExpirationPadding; + return this; + } + + /** + * Set the maximum period a message ack deadline will be extended. + * + *

It is recommended to set this value to a reasonable upper bound of the subscriber time to + * process any message. This maximum period avoids messages to be locked by a subscriber + * in cases when the ack reply is lost. + * + *

A zero duration effectively disables auto deadline extensions. + */ + public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { + Preconditions.checkArgument(maxAckExtensionPeriod.toMillis() >= 0); + this.maxAckExtensionPeriod = maxAckExtensionPeriod; + return this; + } + + /** Gives the ability to set a custom executor. */ + public Builder setExecutorProvider(ExecutorProvider executorProvider) { + this.executorProvider = Preconditions.checkNotNull(executorProvider); + return this; + } + + /** {@code CredentialsProvider} to use to create Credentials to authenticate calls. */ + public Builder setCredentialsProvider(CredentialsProvider credentialsProvider) { + this.credentialsProvider = Preconditions.checkNotNull(credentialsProvider); + return this; + } + + /** + * Gives the ability to set a custom executor for managing lease extensions. If none + * is provided a shared one will be used by all {@link Subscriber} instances. + */ + public Builder setSystemExecutorProvider(ExecutorProvider executorProvider) { + this.systemExecutorProvider = Preconditions.checkNotNull(executorProvider); + return this; + } + + /** + * Sets the number of pullers used to pull messages from the subscription. Defaults to the + * number of available processors. + */ + public Builder setParallelPullCount(int parallelPullCount) { + this.parallelPullCount = parallelPullCount; + return this; + } + + /** Gives the ability to set a custom clock. */ + Builder setClock(ApiClock clock) { + this.clock = Optional.of(clock); + return this; + } + + public Subscriber build() { + return new Subscriber(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java new file mode 100644 index 000000000000..21151493e186 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java @@ -0,0 +1,78 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.auto.value.AutoValue; + +/** + * A snapshot of the subscriber statistics at the time they were requested from the {@link + * Subscriber}. + */ +@AutoValue +abstract class SubscriberStats { + + @AutoValue + //TODO: Finish implementation. + public abstract static class Stats {} + + /** Number of successfully published messages. */ + public abstract long getReceivedMessages(); + + /** Number of successfully published messages. */ + public abstract long getAckedMessages(); + + /** Number of received messages. */ + public abstract long getTotalReceivedMessages(); + + /** Number messages acked. */ + public abstract long getTotalAckedMessages(); + + /** End to end latency. */ + public abstract Stats getEndToEndLatency(); + + /** + * Acknowledgement latency; time in between the message has been received and then acknowledged or + * rejected. + */ + public abstract Stats getAckLatency(); + + /** Number of messages for which we have auto extended its acknowledgement deadline. */ + public abstract long getNumberOfAutoExtendedAckDeadlines(); + + public static Builder newBuilder() { + return new AutoValue_SubscriberStats.Builder(); + } + + @AutoValue.Builder + public static abstract class Builder { + public abstract Builder setReceivedMessages(long value); + + public abstract Builder setAckedMessages(long value); + + public abstract Builder setTotalReceivedMessages(long value); + + public abstract Builder setTotalAckedMessages(long value); + + public abstract Builder setEndToEndLatency(Stats value); + + public abstract Builder setAckLatency(Stats value); + + public abstract Builder setNumberOfAutoExtendedAckDeadlines(long value); + + public abstract SubscriberStats build(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java new file mode 100644 index 000000000000..8cf94516900c --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -0,0 +1,2295 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.pubsub.v1.stub.SubscriberStub; +import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.DeleteSnapshotRequest; +import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ListSnapshotsResponse; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.ModifyPushConfigRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.ProjectSnapshotName; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.UpdateSnapshotRequest; +import com.google.pubsub.v1.UpdateSubscriptionRequest; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: The service that an application uses to manipulate subscriptions and to + * consume messages from a subscription via the `Pull` method. + * + *

To retrieve messages from a subscription, see the Subscriber class. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+ *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+ *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+ *   PushConfig pushConfig = PushConfig.newBuilder().build();
+ *   int ackDeadlineSeconds = 0;
+ *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the subscriptionAdminClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of SubscriptionAdminSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * SubscriptionAdminSettings subscriptionAdminSettings =
+ *     SubscriptionAdminSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * SubscriptionAdminClient subscriptionAdminClient =
+ *     SubscriptionAdminClient.create(subscriptionAdminSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * SubscriptionAdminSettings subscriptionAdminSettings =
+ *     SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SubscriptionAdminClient subscriptionAdminClient =
+ *     SubscriptionAdminClient.create(subscriptionAdminSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class SubscriptionAdminClient implements BackgroundResource { + private final SubscriptionAdminSettings settings; + private final SubscriberStub stub; + + /** Constructs an instance of SubscriptionAdminClient with default settings. */ + public static final SubscriptionAdminClient create() throws IOException { + return create(SubscriptionAdminSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SubscriptionAdminClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SubscriptionAdminClient create(SubscriptionAdminSettings settings) + throws IOException { + return new SubscriptionAdminClient(settings); + } + + /** + * Constructs an instance of SubscriptionAdminClient, using the given stub for making calls. This + * is for advanced usage - prefer to use SubscriptionAdminSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final SubscriptionAdminClient create(SubscriberStub stub) { + return new SubscriptionAdminClient(stub); + } + + /** + * Constructs an instance of SubscriptionAdminClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected SubscriptionAdminClient(SubscriptionAdminSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SubscriberStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected SubscriptionAdminClient(SubscriberStub stub) { + this.settings = null; + this.stub = stub; + } + + public final SubscriptionAdminSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public SubscriberStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a subscription to a given topic. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated + * in the returned Subscription object. Note that for REST API requests, you must specify a name + * in the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   int ackDeadlineSeconds = 0;
+   *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
+   * }
+   * 
+ * + * @param name 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"` + * @param topic 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. + * @param 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. + * @param ackDeadlineSeconds This value is the maximum time after a subscriber receives a message + * before the subscriber should acknowledge the message. After message delivery but before the + * ack deadline expires and before the message is acknowledged, it is an outstanding message + * and will not be delivered again during that time (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 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subscription createSubscription( + ProjectSubscriptionName name, + ProjectTopicName topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { + + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic == null ? null : topic.toString()) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a subscription to a given topic. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated + * in the returned Subscription object. Note that for REST API requests, you must specify a name + * in the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   int ackDeadlineSeconds = 0;
+   *   Subscription response = subscriptionAdminClient.createSubscription(name.toString(), topic.toString(), pushConfig, ackDeadlineSeconds);
+   * }
+   * 
+ * + * @param name 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"` + * @param topic 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. + * @param 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. + * @param ackDeadlineSeconds This value is the maximum time after a subscriber receives a message + * before the subscriber should acknowledge the message. After message delivery but before the + * ack deadline expires and before the message is acknowledged, it is an outstanding message + * and will not be delivered again during that time (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 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subscription createSubscription( + String name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) { + + Subscription request = + Subscription.newBuilder() + .setName(name) + .setTopic(topic) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a subscription to a given topic. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated + * in the returned Subscription object. Note that for REST API requests, you must specify a name + * in the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   TopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   Subscription request = Subscription.newBuilder()
+   *     .setName(name.toString())
+   *     .setTopic(topic.toString())
+   *     .build();
+   *   Subscription response = subscriptionAdminClient.createSubscription(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subscription createSubscription(Subscription request) { + return createSubscriptionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a subscription to a given topic. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated + * in the returned Subscription object. Note that for REST API requests, you must specify a name + * in the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   TopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   Subscription request = Subscription.newBuilder()
+   *     .setName(name.toString())
+   *     .setTopic(topic.toString())
+   *     .build();
+   *   ApiFuture<Subscription> future = subscriptionAdminClient.createSubscriptionCallable().futureCall(request);
+   *   // Do something
+   *   Subscription response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createSubscriptionCallable() { + return stub.createSubscriptionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration details of a subscription. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
+   * }
+   * 
+ * + * @param subscription The name of the subscription to get. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subscription getSubscription(ProjectSubscriptionName subscription) { + + GetSubscriptionRequest request = + GetSubscriptionRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return getSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration details of a subscription. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   Subscription response = subscriptionAdminClient.getSubscription(subscription.toString());
+   * }
+   * 
+ * + * @param subscription The name of the subscription to get. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subscription getSubscription(String subscription) { + + GetSubscriptionRequest request = + GetSubscriptionRequest.newBuilder().setSubscription(subscription).build(); + return getSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration details of a subscription. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .build();
+   *   Subscription response = subscriptionAdminClient.getSubscription(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + private final Subscription getSubscription(GetSubscriptionRequest request) { + return getSubscriptionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration details of a subscription. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .build();
+   *   ApiFuture<Subscription> future = subscriptionAdminClient.getSubscriptionCallable().futureCall(request);
+   *   // Do something
+   *   Subscription response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getSubscriptionCallable() { + return stub.getSubscriptionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an existing subscription. Note that certain properties of a subscription, such as its + * topic, are not modifiable. NOTE: The style guide requires body: "subscription" instead of body: + * "*". Keeping the latter for internal consistency in V1, however it should be corrected in + * V2. See https://cloud.google.com/apis/design/standard_methods#update for details. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   int ackDeadlineSeconds = 42;
+   *   Subscription subscription = Subscription.newBuilder()
+   *     .setAckDeadlineSeconds(ackDeadlineSeconds)
+   *     .build();
+   *   String pathsElement = "ack_deadline_seconds";
+   *   List<String> paths = Arrays.asList(pathsElement);
+   *   FieldMask updateMask = FieldMask.newBuilder()
+   *     .addAllPaths(paths)
+   *     .build();
+   *   UpdateSubscriptionRequest request = UpdateSubscriptionRequest.newBuilder()
+   *     .setSubscription(subscription)
+   *     .setUpdateMask(updateMask)
+   *     .build();
+   *   Subscription response = subscriptionAdminClient.updateSubscription(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subscription updateSubscription(UpdateSubscriptionRequest request) { + return updateSubscriptionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an existing subscription. Note that certain properties of a subscription, such as its + * topic, are not modifiable. NOTE: The style guide requires body: "subscription" instead of body: + * "*". Keeping the latter for internal consistency in V1, however it should be corrected in + * V2. See https://cloud.google.com/apis/design/standard_methods#update for details. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   int ackDeadlineSeconds = 42;
+   *   Subscription subscription = Subscription.newBuilder()
+   *     .setAckDeadlineSeconds(ackDeadlineSeconds)
+   *     .build();
+   *   String pathsElement = "ack_deadline_seconds";
+   *   List<String> paths = Arrays.asList(pathsElement);
+   *   FieldMask updateMask = FieldMask.newBuilder()
+   *     .addAllPaths(paths)
+   *     .build();
+   *   UpdateSubscriptionRequest request = UpdateSubscriptionRequest.newBuilder()
+   *     .setSubscription(subscription)
+   *     .setUpdateMask(updateMask)
+   *     .build();
+   *   ApiFuture<Subscription> future = subscriptionAdminClient.updateSubscriptionCallable().futureCall(request);
+   *   // Do something
+   *   Subscription response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateSubscriptionCallable() { + return stub.updateSubscriptionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists matching subscriptions. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param project The name of the cloud project that subscriptions belong to. Format is + * `projects/{project}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName project) { + ListSubscriptionsRequest request = + ListSubscriptionsRequest.newBuilder() + .setProject(project == null ? null : project.toString()) + .build(); + return listSubscriptions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists matching subscriptions. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param project The name of the cloud project that subscriptions belong to. Format is + * `projects/{project}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSubscriptionsPagedResponse listSubscriptions(String project) { + ListSubscriptionsRequest request = + ListSubscriptionsRequest.newBuilder().setProject(project).build(); + return listSubscriptions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists matching subscriptions. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ListSubscriptionsRequest request = ListSubscriptionsRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   for (Subscription element : subscriptionAdminClient.listSubscriptions(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsRequest request) { + return listSubscriptionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists matching subscriptions. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ListSubscriptionsRequest request = ListSubscriptionsRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   ApiFuture<ListSubscriptionsPagedResponse> future = subscriptionAdminClient.listSubscriptionsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Subscription element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listSubscriptionsPagedCallable() { + return stub.listSubscriptionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists matching subscriptions. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ListSubscriptionsRequest request = ListSubscriptionsRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   while (true) {
+   *     ListSubscriptionsResponse response = subscriptionAdminClient.listSubscriptionsCallable().call(request);
+   *     for (Subscription element : response.getSubscriptionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listSubscriptionsCallable() { + return stub.listSubscriptionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   subscriptionAdminClient.deleteSubscription(subscription);
+   * }
+   * 
+ * + * @param subscription The subscription to delete. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSubscription(ProjectSubscriptionName subscription) { + + DeleteSubscriptionRequest request = + DeleteSubscriptionRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + deleteSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   subscriptionAdminClient.deleteSubscription(subscription.toString());
+   * }
+   * 
+ * + * @param subscription The subscription to delete. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSubscription(String subscription) { + + DeleteSubscriptionRequest request = + DeleteSubscriptionRequest.newBuilder().setSubscription(subscription).build(); + deleteSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .build();
+   *   subscriptionAdminClient.deleteSubscription(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + private final void deleteSubscription(DeleteSubscriptionRequest request) { + deleteSubscriptionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .build();
+   *   ApiFuture<Void> future = subscriptionAdminClient.deleteSubscriptionCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteSubscriptionCallable() { + return stub.deleteSubscriptionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> ackIds = new ArrayList<>();
+   *   int ackDeadlineSeconds = 0;
+   *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
+   * }
+   * 
+ * + * @param subscription The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds List of acknowledgment IDs. + * @param ackDeadlineSeconds 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 may immediately make + * the message available for another pull request. The minimum deadline you can specify is 0 + * seconds. The maximum deadline you can specify is 600 seconds (10 minutes). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final void modifyAckDeadline( + ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { + + ModifyAckDeadlineRequest request = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .addAllAckIds(ackIds) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + modifyAckDeadline(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> ackIds = new ArrayList<>();
+   *   int ackDeadlineSeconds = 0;
+   *   subscriptionAdminClient.modifyAckDeadline(subscription.toString(), ackIds, ackDeadlineSeconds);
+   * }
+   * 
+ * + * @param subscription The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds List of acknowledgment IDs. + * @param ackDeadlineSeconds 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 may immediately make + * the message available for another pull request. The minimum deadline you can specify is 0 + * seconds. The maximum deadline you can specify is 600 seconds (10 minutes). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final void modifyAckDeadline( + String subscription, List ackIds, int ackDeadlineSeconds) { + + ModifyAckDeadlineRequest request = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(subscription) + .addAllAckIds(ackIds) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + modifyAckDeadline(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> ackIds = new ArrayList<>();
+   *   int ackDeadlineSeconds = 0;
+   *   ModifyAckDeadlineRequest request = ModifyAckDeadlineRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .addAllAckIds(ackIds)
+   *     .setAckDeadlineSeconds(ackDeadlineSeconds)
+   *     .build();
+   *   subscriptionAdminClient.modifyAckDeadline(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final void modifyAckDeadline(ModifyAckDeadlineRequest request) { + modifyAckDeadlineCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> ackIds = new ArrayList<>();
+   *   int ackDeadlineSeconds = 0;
+   *   ModifyAckDeadlineRequest request = ModifyAckDeadlineRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .addAllAckIds(ackIds)
+   *     .setAckDeadlineSeconds(ackDeadlineSeconds)
+   *     .build();
+   *   ApiFuture<Void> future = subscriptionAdminClient.modifyAckDeadlineCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + /* package-private */ final UnaryCallable + modifyAckDeadlineCallable() { + return stub.modifyAckDeadlineCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> ackIds = new ArrayList<>();
+   *   subscriptionAdminClient.acknowledge(subscription, ackIds);
+   * }
+   * 
+ * + * @param subscription The subscription whose message is being acknowledged. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds The acknowledgment ID for the messages being acknowledged that was returned by + * the Pub/Sub system in the `Pull` response. Must not be empty. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final void acknowledge( + ProjectSubscriptionName subscription, List ackIds) { + + AcknowledgeRequest request = + AcknowledgeRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .addAllAckIds(ackIds) + .build(); + acknowledge(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> ackIds = new ArrayList<>();
+   *   subscriptionAdminClient.acknowledge(subscription.toString(), ackIds);
+   * }
+   * 
+ * + * @param subscription The subscription whose message is being acknowledged. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds The acknowledgment ID for the messages being acknowledged that was returned by + * the Pub/Sub system in the `Pull` response. Must not be empty. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final void acknowledge(String subscription, List ackIds) { + + AcknowledgeRequest request = + AcknowledgeRequest.newBuilder().setSubscription(subscription).addAllAckIds(ackIds).build(); + acknowledge(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> ackIds = new ArrayList<>();
+   *   AcknowledgeRequest request = AcknowledgeRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .addAllAckIds(ackIds)
+   *     .build();
+   *   subscriptionAdminClient.acknowledge(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final void acknowledge(AcknowledgeRequest request) { + acknowledgeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> ackIds = new ArrayList<>();
+   *   AcknowledgeRequest request = AcknowledgeRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .addAllAckIds(ackIds)
+   *     .build();
+   *   ApiFuture<Void> future = subscriptionAdminClient.acknowledgeCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + /* package-private */ final UnaryCallable acknowledgeCallable() { + return stub.acknowledgeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pulls messages from the server. Returns an empty list if there are no messages available in the + * backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests + * pending for the given subscription. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   boolean returnImmediately = false;
+   *   int maxMessages = 0;
+   *   PullResponse response = subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages);
+   * }
+   * 
+ * + * @param subscription The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param returnImmediately 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. The client may cancel the request if it does not wish to wait + * any longer for the response. + * @param maxMessages The maximum number of messages returned for this request. The Pub/Sub system + * may return fewer than the number specified. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final PullResponse pull( + ProjectSubscriptionName subscription, boolean returnImmediately, int maxMessages) { + + PullRequest request = + PullRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setReturnImmediately(returnImmediately) + .setMaxMessages(maxMessages) + .build(); + return pull(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pulls messages from the server. Returns an empty list if there are no messages available in the + * backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests + * pending for the given subscription. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   boolean returnImmediately = false;
+   *   int maxMessages = 0;
+   *   PullResponse response = subscriptionAdminClient.pull(subscription.toString(), returnImmediately, maxMessages);
+   * }
+   * 
+ * + * @param subscription The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param returnImmediately 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. The client may cancel the request if it does not wish to wait + * any longer for the response. + * @param maxMessages The maximum number of messages returned for this request. The Pub/Sub system + * may return fewer than the number specified. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final PullResponse pull( + String subscription, boolean returnImmediately, int maxMessages) { + + PullRequest request = + PullRequest.newBuilder() + .setSubscription(subscription) + .setReturnImmediately(returnImmediately) + .setMaxMessages(maxMessages) + .build(); + return pull(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pulls messages from the server. Returns an empty list if there are no messages available in the + * backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests + * pending for the given subscription. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   int maxMessages = 0;
+   *   PullRequest request = PullRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .setMaxMessages(maxMessages)
+   *     .build();
+   *   PullResponse response = subscriptionAdminClient.pull(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final PullResponse pull(PullRequest request) { + return pullCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Pulls messages from the server. Returns an empty list if there are no messages available in the + * backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests + * pending for the given subscription. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   int maxMessages = 0;
+   *   PullRequest request = PullRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .setMaxMessages(maxMessages)
+   *     .build();
+   *   ApiFuture<PullResponse> future = subscriptionAdminClient.pullCallable().futureCall(request);
+   *   // Do something
+   *   PullResponse response = future.get();
+   * }
+   * 
+ */ + /* package-private */ final UnaryCallable pullCallable() { + return stub.pullCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will respond with + * UNIMPLEMENTED errors unless you have been invited to test this feature. Contact + * cloud-pubsub{@literal @}google.com with any questions. + * + *

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 `OK` to reassign server-side resources, in which case, the client should re-establish + * the stream. `UNAVAILABLE` may also be returned in the case of a transient error (e.g., a server + * restart). These should also be retried by the client. Flow control can be achieved by + * configuring the underlying RPC channel. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ApiStreamObserver<StreamingPullResponse> responseObserver =
+   *       new ApiStreamObserver<StreamingPullResponse>() {
+   *         {@literal @}Override
+   *         public void onNext(StreamingPullResponse response) {
+   *           // Do something when receive a response
+   *         }
+   *
+   *         {@literal @}Override
+   *         public void onError(Throwable t) {
+   *           // Add error-handling
+   *         }
+   *
+   *         {@literal @}Override
+   *         public void onCompleted() {
+   *           // Do something when complete.
+   *         }
+   *       };
+   *   ApiStreamObserver<StreamingRecognizeRequest> requestObserver =
+   *       subscriptionAdminClient.streamingPullCallable().bidiStreamingCall(responseObserver));
+   *
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   int streamAckDeadlineSeconds = 0;
+   *   StreamingPullRequest request = StreamingPullRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .setStreamAckDeadlineSeconds(streamAckDeadlineSeconds)
+   *     .build();
+   *   requestObserver.onNext(request);
+   * }
+   * 
+ */ + /* package-private */ final BidiStreamingCallable + streamingPullCallable() { + return stub.streamingPullCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Modifies the `PushConfig` for a specified subscription. + * + *

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`. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
+   * }
+   * 
+ * + * @param subscription The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param pushConfig 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` is not called. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void modifyPushConfig(ProjectSubscriptionName subscription, PushConfig pushConfig) { + + ModifyPushConfigRequest request = + ModifyPushConfigRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setPushConfig(pushConfig) + .build(); + modifyPushConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Modifies the `PushConfig` for a specified subscription. + * + *

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`. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   subscriptionAdminClient.modifyPushConfig(subscription.toString(), pushConfig);
+   * }
+   * 
+ * + * @param subscription The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param pushConfig 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` is not called. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void modifyPushConfig(String subscription, PushConfig pushConfig) { + + ModifyPushConfigRequest request = + ModifyPushConfigRequest.newBuilder() + .setSubscription(subscription) + .setPushConfig(pushConfig) + .build(); + modifyPushConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Modifies the `PushConfig` for a specified subscription. + * + *

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`. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   ModifyPushConfigRequest request = ModifyPushConfigRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .setPushConfig(pushConfig)
+   *     .build();
+   *   subscriptionAdminClient.modifyPushConfig(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void modifyPushConfig(ModifyPushConfigRequest request) { + modifyPushConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Modifies the `PushConfig` for a specified subscription. + * + *

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`. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   PushConfig pushConfig = PushConfig.newBuilder().build();
+   *   ModifyPushConfigRequest request = ModifyPushConfigRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .setPushConfig(pushConfig)
+   *     .build();
+   *   ApiFuture<Void> future = subscriptionAdminClient.modifyPushConfigCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable modifyPushConfigCallable() { + return stub.modifyPushConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the existing snapshots. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param project The name of the cloud project that snapshots belong to. Format is + * `projects/{project}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { + ListSnapshotsRequest request = + ListSnapshotsRequest.newBuilder() + .setProject(project == null ? null : project.toString()) + .build(); + return listSnapshots(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the existing snapshots. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param project The name of the cloud project that snapshots belong to. Format is + * `projects/{project}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSnapshotsPagedResponse listSnapshots(String project) { + ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder().setProject(project).build(); + return listSnapshots(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the existing snapshots. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   for (Snapshot element : subscriptionAdminClient.listSnapshots(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest request) { + return listSnapshotsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the existing snapshots. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   ApiFuture<ListSnapshotsPagedResponse> future = subscriptionAdminClient.listSnapshotsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Snapshot element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listSnapshotsPagedCallable() { + return stub.listSnapshotsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the existing snapshots. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   while (true) {
+   *     ListSnapshotsResponse response = subscriptionAdminClient.listSnapshotsCallable().call(request);
+   *     for (Snapshot element : response.getSnapshotsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listSnapshotsCallable() { + return stub.listSnapshotsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a snapshot from the requested subscription. If the snapshot already exists, returns + * `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. + * + *

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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated + * in the returned Snapshot object. Note that for REST API requests, you must specify a name in + * the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
+   * }
+   * 
+ * + * @param name Optional 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. Format is + * `projects/{project}/snapshots/{snap}`. + * @param subscription 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}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot createSnapshot( + ProjectSnapshotName name, ProjectSubscriptionName subscription) { + + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return createSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a snapshot from the requested subscription. If the snapshot already exists, returns + * `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. + * + *

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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated + * in the returned Snapshot object. Note that for REST API requests, you must specify a name in + * the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   Snapshot response = subscriptionAdminClient.createSnapshot(name.toString(), subscription.toString());
+   * }
+   * 
+ * + * @param name Optional 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. Format is + * `projects/{project}/snapshots/{snap}`. + * @param subscription 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}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot createSnapshot(String name, String subscription) { + + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder().setName(name).setSubscription(subscription).build(); + return createSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a snapshot from the requested subscription. If the snapshot already exists, returns + * `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. + * + *

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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated + * in the returned Snapshot object. Note that for REST API requests, you must specify a name in + * the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setSubscription(subscription.toString())
+   *     .build();
+   *   Snapshot response = subscriptionAdminClient.createSnapshot(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot createSnapshot(CreateSnapshotRequest request) { + return createSnapshotCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a snapshot from the requested subscription. If the snapshot already exists, returns + * `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. + * + *

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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated + * in the returned Snapshot object. Note that for REST API requests, you must specify a name in + * the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder()
+   *     .setName(name.toString())
+   *     .setSubscription(subscription.toString())
+   *     .build();
+   *   ApiFuture<Snapshot> future = subscriptionAdminClient.createSnapshotCallable().futureCall(request);
+   *   // Do something
+   *   Snapshot response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createSnapshotCallable() { + return stub.createSnapshotCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an existing snapshot. Note that certain properties of a snapshot are not modifiable. + * NOTE: The style guide requires body: "snapshot" instead of body: "*". Keeping the latter + * for internal consistency in V1, however it should be corrected in V2. See + * https://cloud.google.com/apis/design/standard_methods#update for details. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   long seconds = 123456L;
+   *   Timestamp expireTime = Timestamp.newBuilder()
+   *     .setSeconds(seconds)
+   *     .build();
+   *   Snapshot snapshot = Snapshot.newBuilder()
+   *     .setExpireTime(expireTime)
+   *     .build();
+   *   String pathsElement = "expire_time";
+   *   List<String> paths = Arrays.asList(pathsElement);
+   *   FieldMask updateMask = FieldMask.newBuilder()
+   *     .addAllPaths(paths)
+   *     .build();
+   *   UpdateSnapshotRequest request = UpdateSnapshotRequest.newBuilder()
+   *     .setSnapshot(snapshot)
+   *     .setUpdateMask(updateMask)
+   *     .build();
+   *   Snapshot response = subscriptionAdminClient.updateSnapshot(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot updateSnapshot(UpdateSnapshotRequest request) { + return updateSnapshotCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an existing snapshot. Note that certain properties of a snapshot are not modifiable. + * NOTE: The style guide requires body: "snapshot" instead of body: "*". Keeping the latter + * for internal consistency in V1, however it should be corrected in V2. See + * https://cloud.google.com/apis/design/standard_methods#update for details. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   long seconds = 123456L;
+   *   Timestamp expireTime = Timestamp.newBuilder()
+   *     .setSeconds(seconds)
+   *     .build();
+   *   Snapshot snapshot = Snapshot.newBuilder()
+   *     .setExpireTime(expireTime)
+   *     .build();
+   *   String pathsElement = "expire_time";
+   *   List<String> paths = Arrays.asList(pathsElement);
+   *   FieldMask updateMask = FieldMask.newBuilder()
+   *     .addAllPaths(paths)
+   *     .build();
+   *   UpdateSnapshotRequest request = UpdateSnapshotRequest.newBuilder()
+   *     .setSnapshot(snapshot)
+   *     .setUpdateMask(updateMask)
+   *     .build();
+   *   ApiFuture<Snapshot> future = subscriptionAdminClient.updateSnapshotCallable().futureCall(request);
+   *   // Do something
+   *   Snapshot response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateSnapshotCallable() { + return stub.updateSnapshotCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Removes an existing snapshot. All messages retained in the snapshot are immediately dropped. + * After a snapshot is deleted, a new one may be created with the same name, but the new one has + * no association with the old snapshot or its subscription, unless the same subscription is + * specified. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   subscriptionAdminClient.deleteSnapshot(snapshot);
+   * }
+   * 
+ * + * @param snapshot The name of the snapshot to delete. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSnapshot(ProjectSnapshotName snapshot) { + + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder() + .setSnapshot(snapshot == null ? null : snapshot.toString()) + .build(); + deleteSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Removes an existing snapshot. All messages retained in the snapshot are immediately dropped. + * After a snapshot is deleted, a new one may be created with the same name, but the new one has + * no association with the old snapshot or its subscription, unless the same subscription is + * specified. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   subscriptionAdminClient.deleteSnapshot(snapshot.toString());
+   * }
+   * 
+ * + * @param snapshot The name of the snapshot to delete. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSnapshot(String snapshot) { + + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder().setSnapshot(snapshot).build(); + deleteSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Removes an existing snapshot. All messages retained in the snapshot are immediately dropped. + * After a snapshot is deleted, a new one may be created with the same name, but the new one has + * no association with the old snapshot or its subscription, unless the same subscription is + * specified. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder()
+   *     .setSnapshot(snapshot.toString())
+   *     .build();
+   *   subscriptionAdminClient.deleteSnapshot(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + private final void deleteSnapshot(DeleteSnapshotRequest request) { + deleteSnapshotCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Removes an existing snapshot. All messages retained in the snapshot are immediately dropped. + * After a snapshot is deleted, a new one may be created with the same name, but the new one has + * no association with the old snapshot or its subscription, unless the same subscription is + * specified. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
+   *   DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder()
+   *     .setSnapshot(snapshot.toString())
+   *     .build();
+   *   ApiFuture<Void> future = subscriptionAdminClient.deleteSnapshotCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteSnapshotCallable() { + return stub.deleteSnapshotCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided + * in the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SeekRequest request = SeekRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .build();
+   *   SeekResponse response = subscriptionAdminClient.seek(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SeekResponse seek(SeekRequest request) { + return seekCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided + * in the request. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+   *   SeekRequest request = SeekRequest.newBuilder()
+   *     .setSubscription(subscription.toString())
+   *     .build();
+   *   ApiFuture<SeekResponse> future = subscriptionAdminClient.seekCallable().futureCall(request);
+   *   // Do something
+   *   SeekResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable seekCallable() { + return stub.seekCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   Policy response = subscriptionAdminClient.setIamPolicy(formattedResource, policy);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. `resource` is + * usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @param 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(String resource, Policy policy) { + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); + return setIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .setPolicy(policy)
+   *     .build();
+   *   Policy response = subscriptionAdminClient.setIamPolicy(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .setPolicy(policy)
+   *     .build();
+   *   ApiFuture<Policy> future = subscriptionAdminClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something
+   *   Policy response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
+   *   Policy response = subscriptionAdminClient.getIamPolicy(formattedResource);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. `resource` is + * usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String resource) { + + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
+   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .build();
+   *   Policy response = subscriptionAdminClient.getIamPolicy(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + private final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
+   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .build();
+   *   ApiFuture<Policy> future = subscriptionAdminClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something
+   *   Policy response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(formattedResource, permissions);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. + * `resource` is usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions( + String resource, List permissions) { + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(resource) + .addAllPermissions(permissions) + .build(); + return testIamPermissions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .addAllPermissions(permissions)
+   *     .build();
+   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * + *

Sample code: + * + *


+   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .addAllPermissions(permissions)
+   *     .build();
+   *   ApiFuture<TestIamPermissionsResponse> future = subscriptionAdminClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListSubscriptionsPagedResponse + extends AbstractPagedListResponse< + ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage, + ListSubscriptionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSubscriptionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListSubscriptionsPagedResponse apply(ListSubscriptionsPage input) { + return new ListSubscriptionsPagedResponse(input); + } + }); + } + + private ListSubscriptionsPagedResponse(ListSubscriptionsPage page) { + super(page, ListSubscriptionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSubscriptionsPage + extends AbstractPage< + ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, + ListSubscriptionsPage> { + + private ListSubscriptionsPage( + PageContext context, + ListSubscriptionsResponse response) { + super(context, response); + } + + private static ListSubscriptionsPage createEmptyPage() { + return new ListSubscriptionsPage(null, null); + } + + @Override + protected ListSubscriptionsPage createPage( + PageContext context, + ListSubscriptionsResponse response) { + return new ListSubscriptionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSubscriptionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage, + ListSubscriptionsFixedSizeCollection> { + + private ListSubscriptionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSubscriptionsFixedSizeCollection createEmptyCollection() { + return new ListSubscriptionsFixedSizeCollection(null, 0); + } + + @Override + protected ListSubscriptionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSubscriptionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListSnapshotsPagedResponse + extends AbstractPagedListResponse< + ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage, + ListSnapshotsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSnapshotsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListSnapshotsPagedResponse apply(ListSnapshotsPage input) { + return new ListSnapshotsPagedResponse(input); + } + }); + } + + private ListSnapshotsPagedResponse(ListSnapshotsPage page) { + super(page, ListSnapshotsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSnapshotsPage + extends AbstractPage< + ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage> { + + private ListSnapshotsPage( + PageContext context, + ListSnapshotsResponse response) { + super(context, response); + } + + private static ListSnapshotsPage createEmptyPage() { + return new ListSnapshotsPage(null, null); + } + + @Override + protected ListSnapshotsPage createPage( + PageContext context, + ListSnapshotsResponse response) { + return new ListSnapshotsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSnapshotsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage, + ListSnapshotsFixedSizeCollection> { + + private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSnapshotsFixedSizeCollection createEmptyCollection() { + return new ListSnapshotsFixedSizeCollection(null, 0); + } + + @Override + protected ListSnapshotsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSnapshotsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java new file mode 100644 index 000000000000..a8f4cdbbb90a --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -0,0 +1,393 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.DeleteSnapshotRequest; +import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ListSnapshotsResponse; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.ModifyPushConfigRequest; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.UpdateSnapshotRequest; +import com.google.pubsub.v1.UpdateSubscriptionRequest; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link SubscriptionAdminClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createSubscription to 30 seconds: + * + *

+ * 
+ * SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder =
+ *     SubscriptionAdminSettings.newBuilder();
+ * subscriptionAdminSettingsBuilder.createSubscriptionSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * SubscriptionAdminSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class SubscriptionAdminSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createSubscription. */ + public UnaryCallSettings createSubscriptionSettings() { + return ((SubscriberStubSettings) getStubSettings()).createSubscriptionSettings(); + } + + /** Returns the object with the settings used for calls to getSubscription. */ + public UnaryCallSettings getSubscriptionSettings() { + return ((SubscriberStubSettings) getStubSettings()).getSubscriptionSettings(); + } + + /** Returns the object with the settings used for calls to updateSubscription. */ + public UnaryCallSettings updateSubscriptionSettings() { + return ((SubscriberStubSettings) getStubSettings()).updateSubscriptionSettings(); + } + + /** Returns the object with the settings used for calls to listSubscriptions. */ + public PagedCallSettings< + ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> + listSubscriptionsSettings() { + return ((SubscriberStubSettings) getStubSettings()).listSubscriptionsSettings(); + } + + /** Returns the object with the settings used for calls to deleteSubscription. */ + public UnaryCallSettings deleteSubscriptionSettings() { + return ((SubscriberStubSettings) getStubSettings()).deleteSubscriptionSettings(); + } + + /** Returns the object with the settings used for calls to modifyAckDeadline. */ + /* package-private */ UnaryCallSettings + modifyAckDeadlineSettings() { + return ((SubscriberStubSettings) getStubSettings()).modifyAckDeadlineSettings(); + } + + /** Returns the object with the settings used for calls to acknowledge. */ + /* package-private */ UnaryCallSettings acknowledgeSettings() { + return ((SubscriberStubSettings) getStubSettings()).acknowledgeSettings(); + } + + /** Returns the object with the settings used for calls to pull. */ + /* package-private */ UnaryCallSettings pullSettings() { + return ((SubscriberStubSettings) getStubSettings()).pullSettings(); + } + + /** Returns the object with the settings used for calls to streamingPull. */ + /* package-private */ StreamingCallSettings + streamingPullSettings() { + return ((SubscriberStubSettings) getStubSettings()).streamingPullSettings(); + } + + /** Returns the object with the settings used for calls to modifyPushConfig. */ + public UnaryCallSettings modifyPushConfigSettings() { + return ((SubscriberStubSettings) getStubSettings()).modifyPushConfigSettings(); + } + + /** Returns the object with the settings used for calls to listSnapshots. */ + public PagedCallSettings + listSnapshotsSettings() { + return ((SubscriberStubSettings) getStubSettings()).listSnapshotsSettings(); + } + + /** Returns the object with the settings used for calls to createSnapshot. */ + public UnaryCallSettings createSnapshotSettings() { + return ((SubscriberStubSettings) getStubSettings()).createSnapshotSettings(); + } + + /** Returns the object with the settings used for calls to updateSnapshot. */ + public UnaryCallSettings updateSnapshotSettings() { + return ((SubscriberStubSettings) getStubSettings()).updateSnapshotSettings(); + } + + /** Returns the object with the settings used for calls to deleteSnapshot. */ + public UnaryCallSettings deleteSnapshotSettings() { + return ((SubscriberStubSettings) getStubSettings()).deleteSnapshotSettings(); + } + + /** Returns the object with the settings used for calls to seek. */ + public UnaryCallSettings seekSettings() { + return ((SubscriberStubSettings) getStubSettings()).seekSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((SubscriberStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((SubscriberStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((SubscriberStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final SubscriptionAdminSettings create(SubscriberStubSettings stub) + throws IOException { + return new SubscriptionAdminSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SubscriberStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SubscriberStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SubscriberStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SubscriberStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SubscriberStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SubscriberStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SubscriberStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SubscriptionAdminSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SubscriptionAdminSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(SubscriberStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(SubscriberStubSettings.newBuilder()); + } + + protected Builder(SubscriptionAdminSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SubscriberStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public SubscriberStubSettings.Builder getStubSettingsBuilder() { + return ((SubscriberStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createSubscription. */ + public UnaryCallSettings.Builder createSubscriptionSettings() { + return getStubSettingsBuilder().createSubscriptionSettings(); + } + + /** Returns the builder for the settings used for calls to getSubscription. */ + public UnaryCallSettings.Builder + getSubscriptionSettings() { + return getStubSettingsBuilder().getSubscriptionSettings(); + } + + /** Returns the builder for the settings used for calls to updateSubscription. */ + public UnaryCallSettings.Builder + updateSubscriptionSettings() { + return getStubSettingsBuilder().updateSubscriptionSettings(); + } + + /** Returns the builder for the settings used for calls to listSubscriptions. */ + public PagedCallSettings.Builder< + ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> + listSubscriptionsSettings() { + return getStubSettingsBuilder().listSubscriptionsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSubscription. */ + public UnaryCallSettings.Builder + deleteSubscriptionSettings() { + return getStubSettingsBuilder().deleteSubscriptionSettings(); + } + + /** Returns the builder for the settings used for calls to modifyAckDeadline. */ + /* package-private */ UnaryCallSettings.Builder + modifyAckDeadlineSettings() { + return getStubSettingsBuilder().modifyAckDeadlineSettings(); + } + + /** Returns the builder for the settings used for calls to acknowledge. */ + /* package-private */ UnaryCallSettings.Builder + acknowledgeSettings() { + return getStubSettingsBuilder().acknowledgeSettings(); + } + + /** Returns the builder for the settings used for calls to pull. */ + /* package-private */ UnaryCallSettings.Builder pullSettings() { + return getStubSettingsBuilder().pullSettings(); + } + + /** Returns the builder for the settings used for calls to streamingPull. */ + /* package-private */ StreamingCallSettings.Builder + streamingPullSettings() { + return getStubSettingsBuilder().streamingPullSettings(); + } + + /** Returns the builder for the settings used for calls to modifyPushConfig. */ + public UnaryCallSettings.Builder modifyPushConfigSettings() { + return getStubSettingsBuilder().modifyPushConfigSettings(); + } + + /** Returns the builder for the settings used for calls to listSnapshots. */ + public PagedCallSettings.Builder< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + listSnapshotsSettings() { + return getStubSettingsBuilder().listSnapshotsSettings(); + } + + /** Returns the builder for the settings used for calls to createSnapshot. */ + public UnaryCallSettings.Builder createSnapshotSettings() { + return getStubSettingsBuilder().createSnapshotSettings(); + } + + /** Returns the builder for the settings used for calls to updateSnapshot. */ + public UnaryCallSettings.Builder updateSnapshotSettings() { + return getStubSettingsBuilder().updateSnapshotSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSnapshot. */ + public UnaryCallSettings.Builder deleteSnapshotSettings() { + return getStubSettingsBuilder().deleteSnapshotSettings(); + } + + /** Returns the builder for the settings used for calls to seek. */ + public UnaryCallSettings.Builder seekSettings() { + return getStubSettingsBuilder().seekSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public SubscriptionAdminSettings build() throws IOException { + return new SubscriptionAdminSettings(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java new file mode 100644 index 000000000000..7e74041d0949 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -0,0 +1,1375 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.pubsub.v1.stub.PublisherStub; +import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; +import com.google.common.base.Function; +import com.google.common.collect.Iterables; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsResponse; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.UpdateTopicRequest; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: The service that an application uses to manipulate topics, and to send + * messages to a topic. + * + *

To publish messages to a topic, see the Publisher class. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

+ * 
+ * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+ *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+ *   Topic response = topicAdminClient.createTopic(name);
+ * }
+ * 
+ * 
+ * + *

Note: close() needs to be called on the topicAdminClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of TopicAdminSettings to + * create(). For example: + * + *

To customize credentials: + * + *

+ * 
+ * TopicAdminSettings topicAdminSettings =
+ *     TopicAdminSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * TopicAdminClient topicAdminClient =
+ *     TopicAdminClient.create(topicAdminSettings);
+ * 
+ * 
+ * + * To customize the endpoint: + * + *
+ * 
+ * TopicAdminSettings topicAdminSettings =
+ *     TopicAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * TopicAdminClient topicAdminClient =
+ *     TopicAdminClient.create(topicAdminSettings);
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class TopicAdminClient implements BackgroundResource { + private final TopicAdminSettings settings; + private final PublisherStub stub; + + /** Constructs an instance of TopicAdminClient with default settings. */ + public static final TopicAdminClient create() throws IOException { + return create(TopicAdminSettings.newBuilder().build()); + } + + /** + * Constructs an instance of TopicAdminClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final TopicAdminClient create(TopicAdminSettings settings) throws IOException { + return new TopicAdminClient(settings); + } + + /** + * Constructs an instance of TopicAdminClient, using the given stub for making calls. This is for + * advanced usage - prefer to use TopicAdminSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final TopicAdminClient create(PublisherStub stub) { + return new TopicAdminClient(stub); + } + + /** + * Constructs an instance of TopicAdminClient, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected TopicAdminClient(TopicAdminSettings settings) throws IOException { + this.settings = settings; + this.stub = ((PublisherStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected TopicAdminClient(PublisherStub stub) { + this.settings = null; + this.stub = stub; + } + + public final TopicAdminSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public PublisherStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates the given topic with the given name. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   Topic response = topicAdminClient.createTopic(name);
+   * }
+   * 
+ * + * @param name 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"`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Topic createTopic(ProjectTopicName name) { + + Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); + return createTopic(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates the given topic with the given name. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   Topic response = topicAdminClient.createTopic(name.toString());
+   * }
+   * 
+ * + * @param name 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"`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Topic createTopic(String name) { + + Topic request = Topic.newBuilder().setName(name).build(); + return createTopic(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates the given topic with the given name. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   Topic request = Topic.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   Topic response = topicAdminClient.createTopic(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + private final Topic createTopic(Topic request) { + return createTopicCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates the given topic with the given name. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   Topic request = Topic.newBuilder()
+   *     .setName(name.toString())
+   *     .build();
+   *   ApiFuture<Topic> future = topicAdminClient.createTopicCallable().futureCall(request);
+   *   // Do something
+   *   Topic response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable createTopicCallable() { + return stub.createTopicCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an existing topic. Note that certain properties of a topic are not modifiable. Options + * settings follow the style guide: NOTE: The style guide requires body: "topic" instead of body: + * "*". Keeping the latter for internal consistency in V1, however it should be corrected in + * V2. See https://cloud.google.com/apis/design/standard_methods#update for details. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   Topic topic = Topic.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   UpdateTopicRequest request = UpdateTopicRequest.newBuilder()
+   *     .setTopic(topic)
+   *     .setUpdateMask(updateMask)
+   *     .build();
+   *   Topic response = topicAdminClient.updateTopic(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final Topic updateTopic(UpdateTopicRequest request) { + return updateTopicCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates an existing topic. Note that certain properties of a topic are not modifiable. Options + * settings follow the style guide: NOTE: The style guide requires body: "topic" instead of body: + * "*". Keeping the latter for internal consistency in V1, however it should be corrected in + * V2. See https://cloud.google.com/apis/design/standard_methods#update for details. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   Topic topic = Topic.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   UpdateTopicRequest request = UpdateTopicRequest.newBuilder()
+   *     .setTopic(topic)
+   *     .setUpdateMask(updateMask)
+   *     .build();
+   *   ApiFuture<Topic> future = topicAdminClient.updateTopicCallable().futureCall(request);
+   *   // Do something
+   *   Topic response = future.get();
+   * }
+   * 
+ */ + /* package-private */ final UnaryCallable updateTopicCallable() { + return stub.updateTopicCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The + * message payload must not be empty; it must contain either a non-empty data field, or at least + * one attribute. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   ByteString data = ByteString.copyFromUtf8("");
+   *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
+   *     .setData(data)
+   *     .build();
+   *   List<PubsubMessage> messages = Arrays.asList(messagesElement);
+   *   PublishResponse response = topicAdminClient.publish(topic, messages);
+   * }
+   * 
+ * + * @param topic The messages in the request will be published on this topic. Format is + * `projects/{project}/topics/{topic}`. + * @param messages The messages to publish. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final PublishResponse publish( + ProjectTopicName topic, List messages) { + + PublishRequest request = + PublishRequest.newBuilder() + .setTopic(topic == null ? null : topic.toString()) + .addAllMessages(messages) + .build(); + return publish(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The + * message payload must not be empty; it must contain either a non-empty data field, or at least + * one attribute. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   ByteString data = ByteString.copyFromUtf8("");
+   *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
+   *     .setData(data)
+   *     .build();
+   *   List<PubsubMessage> messages = Arrays.asList(messagesElement);
+   *   PublishResponse response = topicAdminClient.publish(topic.toString(), messages);
+   * }
+   * 
+ * + * @param topic The messages in the request will be published on this topic. Format is + * `projects/{project}/topics/{topic}`. + * @param messages The messages to publish. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final PublishResponse publish(String topic, List messages) { + + PublishRequest request = + PublishRequest.newBuilder().setTopic(topic).addAllMessages(messages).build(); + return publish(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The + * message payload must not be empty; it must contain either a non-empty data field, or at least + * one attribute. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   ByteString data = ByteString.copyFromUtf8("");
+   *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
+   *     .setData(data)
+   *     .build();
+   *   List<PubsubMessage> messages = Arrays.asList(messagesElement);
+   *   PublishRequest request = PublishRequest.newBuilder()
+   *     .setTopic(topic.toString())
+   *     .addAllMessages(messages)
+   *     .build();
+   *   PublishResponse response = topicAdminClient.publish(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final PublishResponse publish(PublishRequest request) { + return publishCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The + * message payload must not be empty; it must contain either a non-empty data field, or at least + * one attribute. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   ByteString data = ByteString.copyFromUtf8("");
+   *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
+   *     .setData(data)
+   *     .build();
+   *   List<PubsubMessage> messages = Arrays.asList(messagesElement);
+   *   PublishRequest request = PublishRequest.newBuilder()
+   *     .setTopic(topic.toString())
+   *     .addAllMessages(messages)
+   *     .build();
+   *   ApiFuture<PublishResponse> future = topicAdminClient.publishCallable().futureCall(request);
+   *   // Do something
+   *   PublishResponse response = future.get();
+   * }
+   * 
+ */ + /* package-private */ final UnaryCallable publishCallable() { + return stub.publishCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration of a topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   Topic response = topicAdminClient.getTopic(topic);
+   * }
+   * 
+ * + * @param topic The name of the topic to get. Format is `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Topic getTopic(ProjectTopicName topic) { + + GetTopicRequest request = + GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); + return getTopic(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration of a topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   Topic response = topicAdminClient.getTopic(topic.toString());
+   * }
+   * 
+ * + * @param topic The name of the topic to get. Format is `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Topic getTopic(String topic) { + + GetTopicRequest request = GetTopicRequest.newBuilder().setTopic(topic).build(); + return getTopic(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration of a topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   GetTopicRequest request = GetTopicRequest.newBuilder()
+   *     .setTopic(topic.toString())
+   *     .build();
+   *   Topic response = topicAdminClient.getTopic(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + private final Topic getTopic(GetTopicRequest request) { + return getTopicCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration of a topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   GetTopicRequest request = GetTopicRequest.newBuilder()
+   *     .setTopic(topic.toString())
+   *     .build();
+   *   ApiFuture<Topic> future = topicAdminClient.getTopicCallable().futureCall(request);
+   *   // Do something
+   *   Topic response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getTopicCallable() { + return stub.getTopicCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists matching topics. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param project The name of the cloud project that topics belong to. Format is + * `projects/{project}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTopicsPagedResponse listTopics(ProjectName project) { + ListTopicsRequest request = + ListTopicsRequest.newBuilder() + .setProject(project == null ? null : project.toString()) + .build(); + return listTopics(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists matching topics. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   for (Topic element : topicAdminClient.listTopics(project.toString()).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param project The name of the cloud project that topics belong to. Format is + * `projects/{project}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTopicsPagedResponse listTopics(String project) { + ListTopicsRequest request = ListTopicsRequest.newBuilder().setProject(project).build(); + return listTopics(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists matching topics. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ListTopicsRequest request = ListTopicsRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   for (Topic element : topicAdminClient.listTopics(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTopicsPagedResponse listTopics(ListTopicsRequest request) { + return listTopicsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists matching topics. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ListTopicsRequest request = ListTopicsRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   ApiFuture<ListTopicsPagedResponse> future = topicAdminClient.listTopicsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (Topic element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listTopicsPagedCallable() { + return stub.listTopicsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists matching topics. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectName project = ProjectName.of("[PROJECT]");
+   *   ListTopicsRequest request = ListTopicsRequest.newBuilder()
+   *     .setProject(project.toString())
+   *     .build();
+   *   while (true) {
+   *     ListTopicsResponse response = topicAdminClient.listTopicsCallable().call(request);
+   *     for (Topic element : response.getTopicsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable listTopicsCallable() { + return stub.listTopicsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the name of the subscriptions for this topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic).iterateAllAsProjectSubscriptionName()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param topic The name of the topic that subscriptions are attached to. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) { + ListTopicSubscriptionsRequest request = + ListTopicSubscriptionsRequest.newBuilder() + .setTopic(topic == null ? null : topic.toString()) + .build(); + return listTopicSubscriptions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the name of the subscriptions for this topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic.toString()).iterateAllAsProjectSubscriptionName()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param topic The name of the topic that subscriptions are attached to. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(String topic) { + ListTopicSubscriptionsRequest request = + ListTopicSubscriptionsRequest.newBuilder().setTopic(topic).build(); + return listTopicSubscriptions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the name of the subscriptions for this topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder()
+   *     .setTopic(topic.toString())
+   *     .build();
+   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(request).iterateAllAsProjectSubscriptionName()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( + ListTopicSubscriptionsRequest request) { + return listTopicSubscriptionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the name of the subscriptions for this topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder()
+   *     .setTopic(topic.toString())
+   *     .build();
+   *   ApiFuture<ListTopicSubscriptionsPagedResponse> future = topicAdminClient.listTopicSubscriptionsPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (ProjectSubscriptionName element : future.get().iterateAllAsProjectSubscriptionName()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listTopicSubscriptionsPagedCallable() { + return stub.listTopicSubscriptionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the name of the subscriptions for this topic. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder()
+   *     .setTopic(topic.toString())
+   *     .build();
+   *   while (true) {
+   *     ListTopicSubscriptionsResponse response = topicAdminClient.listTopicSubscriptionsCallable().call(request);
+   *     for (ProjectSubscriptionName element : ProjectSubscriptionName.parseList(response.getSubscriptionsList())) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listTopicSubscriptionsCallable() { + return stub.listTopicSubscriptionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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_`. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   topicAdminClient.deleteTopic(topic);
+   * }
+   * 
+ * + * @param topic Name of the topic to delete. Format is `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTopic(ProjectTopicName topic) { + + DeleteTopicRequest request = + DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); + deleteTopic(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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_`. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   topicAdminClient.deleteTopic(topic.toString());
+   * }
+   * 
+ * + * @param topic Name of the topic to delete. Format is `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTopic(String topic) { + + DeleteTopicRequest request = DeleteTopicRequest.newBuilder().setTopic(topic).build(); + deleteTopic(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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_`. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   DeleteTopicRequest request = DeleteTopicRequest.newBuilder()
+   *     .setTopic(topic.toString())
+   *     .build();
+   *   topicAdminClient.deleteTopic(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + private final void deleteTopic(DeleteTopicRequest request) { + deleteTopicCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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_`. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+   *   DeleteTopicRequest request = DeleteTopicRequest.newBuilder()
+   *     .setTopic(topic.toString())
+   *     .build();
+   *   ApiFuture<Void> future = topicAdminClient.deleteTopicCallable().futureCall(request);
+   *   // Do something
+   *   future.get();
+   * }
+   * 
+ */ + public final UnaryCallable deleteTopicCallable() { + return stub.deleteTopicCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being specified. `resource` is + * usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @param 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(String resource, Policy policy) { + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); + return setIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .setPolicy(policy)
+   *     .build();
+   *   Policy response = topicAdminClient.setIamPolicy(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   Policy policy = Policy.newBuilder().build();
+   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .setPolicy(policy)
+   *     .build();
+   *   ApiFuture<Policy> future = topicAdminClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something
+   *   Policy response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy is being requested. `resource` is + * usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String resource) { + + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .build();
+   *   Policy response = topicAdminClient.getIamPolicy(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + private final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .build();
+   *   ApiFuture<Policy> future = topicAdminClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something
+   *   Policy response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
+   * }
+   * 
+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. + * `resource` is usually specified as a path. For example, a Project resource is specified as + * `projects/{project}`. + * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions( + String resource, List permissions) { + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(resource) + .addAllPermissions(permissions) + .build(); + return testIamPermissions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .addAllPermissions(permissions)
+   *     .build();
+   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * + *

Sample code: + * + *


+   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
+   *   List<String> permissions = new ArrayList<>();
+   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
+   *     .setResource(formattedResource)
+   *     .addAllPermissions(permissions)
+   *     .build();
+   *   ApiFuture<TestIamPermissionsResponse> future = topicAdminClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListTopicsPagedResponse + extends AbstractPagedListResponse< + ListTopicsRequest, ListTopicsResponse, Topic, ListTopicsPage, + ListTopicsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTopicsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListTopicsPagedResponse apply(ListTopicsPage input) { + return new ListTopicsPagedResponse(input); + } + }); + } + + private ListTopicsPagedResponse(ListTopicsPage page) { + super(page, ListTopicsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTopicsPage + extends AbstractPage { + + private ListTopicsPage( + PageContext context, + ListTopicsResponse response) { + super(context, response); + } + + private static ListTopicsPage createEmptyPage() { + return new ListTopicsPage(null, null); + } + + @Override + protected ListTopicsPage createPage( + PageContext context, + ListTopicsResponse response) { + return new ListTopicsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTopicsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTopicsRequest, ListTopicsResponse, Topic, ListTopicsPage, + ListTopicsFixedSizeCollection> { + + private ListTopicsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTopicsFixedSizeCollection createEmptyCollection() { + return new ListTopicsFixedSizeCollection(null, 0); + } + + @Override + protected ListTopicsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTopicsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListTopicSubscriptionsPagedResponse + extends AbstractPagedListResponse< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, + ListTopicSubscriptionsPage, ListTopicSubscriptionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTopicSubscriptionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListTopicSubscriptionsPagedResponse apply(ListTopicSubscriptionsPage input) { + return new ListTopicSubscriptionsPagedResponse(input); + } + }); + } + + private ListTopicSubscriptionsPagedResponse(ListTopicSubscriptionsPage page) { + super(page, ListTopicSubscriptionsFixedSizeCollection.createEmptyCollection()); + } + + public Iterable iterateAllAsProjectSubscriptionName() { + return Iterables.transform( + iterateAll(), + new Function() { + @Override + public ProjectSubscriptionName apply(String arg0) { + return ProjectSubscriptionName.parse(arg0); + } + }); + } + } + + public static class ListTopicSubscriptionsPage + extends AbstractPage< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, + ListTopicSubscriptionsPage> { + + private ListTopicSubscriptionsPage( + PageContext context, + ListTopicSubscriptionsResponse response) { + super(context, response); + } + + private static ListTopicSubscriptionsPage createEmptyPage() { + return new ListTopicSubscriptionsPage(null, null); + } + + @Override + protected ListTopicSubscriptionsPage createPage( + PageContext context, + ListTopicSubscriptionsResponse response) { + return new ListTopicSubscriptionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + + public Iterable iterateAllAsProjectSubscriptionName() { + return Iterables.transform( + iterateAll(), + new Function() { + @Override + public ProjectSubscriptionName apply(String arg0) { + return ProjectSubscriptionName.parse(arg0); + } + }); + } + + public Iterable getValuesAsProjectSubscriptionName() { + return Iterables.transform( + getValues(), + new Function() { + @Override + public ProjectSubscriptionName apply(String arg0) { + return ProjectSubscriptionName.parse(arg0); + } + }); + } + } + + public static class ListTopicSubscriptionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, + ListTopicSubscriptionsPage, ListTopicSubscriptionsFixedSizeCollection> { + + private ListTopicSubscriptionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTopicSubscriptionsFixedSizeCollection createEmptyCollection() { + return new ListTopicSubscriptionsFixedSizeCollection(null, 0); + } + + @Override + protected ListTopicSubscriptionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTopicSubscriptionsFixedSizeCollection(pages, collectionSize); + } + + public Iterable getValuesAsProjectSubscriptionName() { + return Iterables.transform( + getValues(), + new Function() { + @Override + public ProjectSubscriptionName apply(String arg0) { + return ProjectSubscriptionName.parse(arg0); + } + }); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java new file mode 100644 index 000000000000..92e41dddb70e --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -0,0 +1,296 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsResponse; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.UpdateTopicRequest; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link TopicAdminClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createTopic to 30 seconds: + * + *

+ * 
+ * TopicAdminSettings.Builder topicAdminSettingsBuilder =
+ *     TopicAdminSettings.newBuilder();
+ * topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class TopicAdminSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createTopic. */ + public UnaryCallSettings createTopicSettings() { + return ((PublisherStubSettings) getStubSettings()).createTopicSettings(); + } + + /** Returns the object with the settings used for calls to updateTopic. */ + /* package-private */ UnaryCallSettings updateTopicSettings() { + return ((PublisherStubSettings) getStubSettings()).updateTopicSettings(); + } + + /** Returns the object with the settings used for calls to publish. */ + /* package-private */ BatchingCallSettings publishSettings() { + return ((PublisherStubSettings) getStubSettings()).publishSettings(); + } + + /** Returns the object with the settings used for calls to getTopic. */ + public UnaryCallSettings getTopicSettings() { + return ((PublisherStubSettings) getStubSettings()).getTopicSettings(); + } + + /** Returns the object with the settings used for calls to listTopics. */ + public PagedCallSettings + listTopicsSettings() { + return ((PublisherStubSettings) getStubSettings()).listTopicsSettings(); + } + + /** Returns the object with the settings used for calls to listTopicSubscriptions. */ + public PagedCallSettings< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsPagedResponse> + listTopicSubscriptionsSettings() { + return ((PublisherStubSettings) getStubSettings()).listTopicSubscriptionsSettings(); + } + + /** Returns the object with the settings used for calls to deleteTopic. */ + public UnaryCallSettings deleteTopicSettings() { + return ((PublisherStubSettings) getStubSettings()).deleteTopicSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((PublisherStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((PublisherStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((PublisherStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final TopicAdminSettings create(PublisherStubSettings stub) throws IOException { + return new TopicAdminSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return PublisherStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return PublisherStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return PublisherStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return PublisherStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return PublisherStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return PublisherStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return PublisherStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected TopicAdminSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for TopicAdminSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(PublisherStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(PublisherStubSettings.newBuilder()); + } + + protected Builder(TopicAdminSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(PublisherStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public PublisherStubSettings.Builder getStubSettingsBuilder() { + return ((PublisherStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createTopic. */ + public UnaryCallSettings.Builder createTopicSettings() { + return getStubSettingsBuilder().createTopicSettings(); + } + + /** Returns the builder for the settings used for calls to updateTopic. */ + /* package-private */ UnaryCallSettings.Builder + updateTopicSettings() { + return getStubSettingsBuilder().updateTopicSettings(); + } + + /** Returns the builder for the settings used for calls to publish. */ + /* package-private */ BatchingCallSettings.Builder + publishSettings() { + return getStubSettingsBuilder().publishSettings(); + } + + /** Returns the builder for the settings used for calls to getTopic. */ + public UnaryCallSettings.Builder getTopicSettings() { + return getStubSettingsBuilder().getTopicSettings(); + } + + /** Returns the builder for the settings used for calls to listTopics. */ + public PagedCallSettings.Builder + listTopicsSettings() { + return getStubSettingsBuilder().listTopicsSettings(); + } + + /** Returns the builder for the settings used for calls to listTopicSubscriptions. */ + public PagedCallSettings.Builder< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsPagedResponse> + listTopicSubscriptionsSettings() { + return getStubSettingsBuilder().listTopicSubscriptionsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTopic. */ + public UnaryCallSettings.Builder deleteTopicSettings() { + return getStubSettingsBuilder().deleteTopicSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public TopicAdminSettings build() throws IOException { + return new TopicAdminSettings(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java new file mode 100644 index 000000000000..49aea90e7ee3 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -0,0 +1,61 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Google Cloud Pub/Sub API. + * + *

The interfaces provided are listed below, along with usage samples. + * + *

================ TopicAdminClient ================ + * + *

Service Description: The service that an application uses to manipulate topics, and to send + * messages to a topic. + * + *

To publish messages to a topic, see the Publisher class. + * + *

Sample for TopicAdminClient: + * + *

+ * 
+ * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
+ *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+ *   Topic response = topicAdminClient.createTopic(name);
+ * }
+ * 
+ * 
+ * + * ======================= SubscriptionAdminClient ======================= + * + *

Service Description: The service that an application uses to manipulate subscriptions and to + * consume messages from a subscription via the `Pull` method. + * + *

To retrieve messages from a subscription, see the Subscriber class. + * + *

Sample for SubscriptionAdminClient: + * + *

+ * 
+ * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
+ *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
+ *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
+ *   PushConfig pushConfig = PushConfig.newBuilder().build();
+ *   int ackDeadlineSeconds = 0;
+ *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
+ * }
+ * 
+ * 
+ */ +package com.google.cloud.pubsub.v1; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java new file mode 100644 index 000000000000..d5782487f5cd --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -0,0 +1,114 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Google Cloud Pub/Sub API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcPublisherCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java new file mode 100644 index 000000000000..9266f235c210 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -0,0 +1,366 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsResponse; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.UpdateTopicRequest; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Google Cloud Pub/Sub API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcPublisherStub extends PublisherStub { + + private static final MethodDescriptor createTopicMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Publisher/CreateTopic") + .setRequestMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateTopicMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Publisher/UpdateTopic") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateTopicRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) + .build(); + private static final MethodDescriptor publishMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Publisher/Publish") + .setRequestMarshaller(ProtoUtils.marshaller(PublishRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PublishResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor getTopicMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Publisher/GetTopic") + .setRequestMarshaller(ProtoUtils.marshaller(GetTopicRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listTopicsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Publisher/ListTopics") + .setRequestMarshaller(ProtoUtils.marshaller(ListTopicsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListTopicsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse> + listTopicSubscriptionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Publisher/ListTopicSubscriptions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTopicSubscriptionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTopicSubscriptionsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteTopicMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Publisher/DeleteTopic") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteTopicRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createTopicCallable; + private final UnaryCallable updateTopicCallable; + private final UnaryCallable publishCallable; + private final UnaryCallable getTopicCallable; + private final UnaryCallable listTopicsCallable; + private final UnaryCallable listTopicsPagedCallable; + private final UnaryCallable + listTopicSubscriptionsCallable; + private final UnaryCallable + listTopicSubscriptionsPagedCallable; + private final UnaryCallable deleteTopicCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcPublisherStub create(PublisherStubSettings settings) throws IOException { + return new GrpcPublisherStub(settings, ClientContext.create(settings)); + } + + public static final GrpcPublisherStub create(ClientContext clientContext) throws IOException { + return new GrpcPublisherStub(PublisherStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcPublisherStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcPublisherStub( + PublisherStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcPublisherStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcPublisherStub(PublisherStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcPublisherCallableFactory()); + } + + /** + * Constructs an instance of GrpcPublisherStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcPublisherStub( + PublisherStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createTopicTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTopicMethodDescriptor) + .build(); + GrpcCallSettings updateTopicTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateTopicMethodDescriptor) + .build(); + GrpcCallSettings publishTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(publishMethodDescriptor) + .build(); + GrpcCallSettings getTopicTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTopicMethodDescriptor) + .build(); + GrpcCallSettings listTopicsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listTopicsMethodDescriptor) + .build(); + GrpcCallSettings + listTopicSubscriptionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listTopicSubscriptionsMethodDescriptor) + .build(); + GrpcCallSettings deleteTopicTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTopicMethodDescriptor) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .build(); + + this.createTopicCallable = + callableFactory.createUnaryCallable( + createTopicTransportSettings, settings.createTopicSettings(), clientContext); + this.updateTopicCallable = + callableFactory.createUnaryCallable( + updateTopicTransportSettings, settings.updateTopicSettings(), clientContext); + this.publishCallable = + callableFactory.createBatchingCallable( + publishTransportSettings, settings.publishSettings(), clientContext); + this.getTopicCallable = + callableFactory.createUnaryCallable( + getTopicTransportSettings, settings.getTopicSettings(), clientContext); + this.listTopicsCallable = + callableFactory.createUnaryCallable( + listTopicsTransportSettings, settings.listTopicsSettings(), clientContext); + this.listTopicsPagedCallable = + callableFactory.createPagedCallable( + listTopicsTransportSettings, settings.listTopicsSettings(), clientContext); + this.listTopicSubscriptionsCallable = + callableFactory.createUnaryCallable( + listTopicSubscriptionsTransportSettings, + settings.listTopicSubscriptionsSettings(), + clientContext); + this.listTopicSubscriptionsPagedCallable = + callableFactory.createPagedCallable( + listTopicSubscriptionsTransportSettings, + settings.listTopicSubscriptionsSettings(), + clientContext); + this.deleteTopicCallable = + callableFactory.createUnaryCallable( + deleteTopicTransportSettings, settings.deleteTopicSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createTopicCallable() { + return createTopicCallable; + } + + public UnaryCallable updateTopicCallable() { + return updateTopicCallable; + } + + public UnaryCallable publishCallable() { + return publishCallable; + } + + public UnaryCallable getTopicCallable() { + return getTopicCallable; + } + + public UnaryCallable listTopicsPagedCallable() { + return listTopicsPagedCallable; + } + + public UnaryCallable listTopicsCallable() { + return listTopicsCallable; + } + + public UnaryCallable + listTopicSubscriptionsPagedCallable() { + return listTopicSubscriptionsPagedCallable; + } + + public UnaryCallable + listTopicSubscriptionsCallable() { + return listTopicSubscriptionsCallable; + } + + public UnaryCallable deleteTopicCallable() { + return deleteTopicCallable; + } + + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java new file mode 100644 index 000000000000..34a596101833 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -0,0 +1,114 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Google Cloud Pub/Sub API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcSubscriberCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java new file mode 100644 index 000000000000..172a80e40c0e --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -0,0 +1,562 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.DeleteSnapshotRequest; +import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ListSnapshotsResponse; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.ModifyPushConfigRequest; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.UpdateSnapshotRequest; +import com.google.pubsub.v1.UpdateSubscriptionRequest; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Google Cloud Pub/Sub API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcSubscriberStub extends SubscriberStub { + + private static final MethodDescriptor + createSubscriptionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/CreateSubscription") + .setRequestMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) + .build(); + private static final MethodDescriptor + getSubscriptionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/GetSubscription") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateSubscriptionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/UpdateSubscription") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listSubscriptionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/ListSubscriptions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSubscriptionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSubscriptionsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + deleteSubscriptionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/DeleteSubscription") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + modifyAckDeadlineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/ModifyAckDeadline") + .setRequestMarshaller( + ProtoUtils.marshaller(ModifyAckDeadlineRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor acknowledgeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/Acknowledge") + .setRequestMarshaller(ProtoUtils.marshaller(AcknowledgeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor pullMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/Pull") + .setRequestMarshaller(ProtoUtils.marshaller(PullRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PullResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + streamingPullMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName("google.pubsub.v1.Subscriber/StreamingPull") + .setRequestMarshaller( + ProtoUtils.marshaller(StreamingPullRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(StreamingPullResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + modifyPushConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/ModifyPushConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(ModifyPushConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listSnapshotsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/ListSnapshots") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSnapshotsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSnapshotsResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + createSnapshotMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/CreateSnapshot") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateSnapshotMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/UpdateSnapshot") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .build(); + private static final MethodDescriptor + deleteSnapshotMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/DeleteSnapshot") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor seekMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/Seek") + .setRequestMarshaller(ProtoUtils.marshaller(SeekRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SeekResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createSubscriptionCallable; + private final UnaryCallable getSubscriptionCallable; + private final UnaryCallable updateSubscriptionCallable; + private final UnaryCallable + listSubscriptionsCallable; + private final UnaryCallable + listSubscriptionsPagedCallable; + private final UnaryCallable deleteSubscriptionCallable; + private final UnaryCallable modifyAckDeadlineCallable; + private final UnaryCallable acknowledgeCallable; + private final UnaryCallable pullCallable; + private final BidiStreamingCallable + streamingPullCallable; + private final UnaryCallable modifyPushConfigCallable; + private final UnaryCallable listSnapshotsCallable; + private final UnaryCallable + listSnapshotsPagedCallable; + private final UnaryCallable createSnapshotCallable; + private final UnaryCallable updateSnapshotCallable; + private final UnaryCallable deleteSnapshotCallable; + private final UnaryCallable seekCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSubscriberStub create(SubscriberStubSettings settings) + throws IOException { + return new GrpcSubscriberStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSubscriberStub create(ClientContext clientContext) throws IOException { + return new GrpcSubscriberStub(SubscriberStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSubscriberStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSubscriberStub( + SubscriberStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSubscriberStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSubscriberCallableFactory()); + } + + /** + * Constructs an instance of GrpcSubscriberStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcSubscriberStub( + SubscriberStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createSubscriptionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSubscriptionMethodDescriptor) + .build(); + GrpcCallSettings getSubscriptionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSubscriptionMethodDescriptor) + .build(); + GrpcCallSettings updateSubscriptionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSubscriptionMethodDescriptor) + .build(); + GrpcCallSettings + listSubscriptionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSubscriptionsMethodDescriptor) + .build(); + GrpcCallSettings deleteSubscriptionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSubscriptionMethodDescriptor) + .build(); + GrpcCallSettings modifyAckDeadlineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(modifyAckDeadlineMethodDescriptor) + .build(); + GrpcCallSettings acknowledgeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(acknowledgeMethodDescriptor) + .build(); + GrpcCallSettings pullTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(pullMethodDescriptor) + .build(); + GrpcCallSettings streamingPullTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(streamingPullMethodDescriptor) + .build(); + GrpcCallSettings modifyPushConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(modifyPushConfigMethodDescriptor) + .build(); + GrpcCallSettings listSnapshotsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSnapshotsMethodDescriptor) + .build(); + GrpcCallSettings createSnapshotTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSnapshotMethodDescriptor) + .build(); + GrpcCallSettings updateSnapshotTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSnapshotMethodDescriptor) + .build(); + GrpcCallSettings deleteSnapshotTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSnapshotMethodDescriptor) + .build(); + GrpcCallSettings seekTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(seekMethodDescriptor) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .build(); + + this.createSubscriptionCallable = + callableFactory.createUnaryCallable( + createSubscriptionTransportSettings, + settings.createSubscriptionSettings(), + clientContext); + this.getSubscriptionCallable = + callableFactory.createUnaryCallable( + getSubscriptionTransportSettings, settings.getSubscriptionSettings(), clientContext); + this.updateSubscriptionCallable = + callableFactory.createUnaryCallable( + updateSubscriptionTransportSettings, + settings.updateSubscriptionSettings(), + clientContext); + this.listSubscriptionsCallable = + callableFactory.createUnaryCallable( + listSubscriptionsTransportSettings, + settings.listSubscriptionsSettings(), + clientContext); + this.listSubscriptionsPagedCallable = + callableFactory.createPagedCallable( + listSubscriptionsTransportSettings, + settings.listSubscriptionsSettings(), + clientContext); + this.deleteSubscriptionCallable = + callableFactory.createUnaryCallable( + deleteSubscriptionTransportSettings, + settings.deleteSubscriptionSettings(), + clientContext); + this.modifyAckDeadlineCallable = + callableFactory.createUnaryCallable( + modifyAckDeadlineTransportSettings, + settings.modifyAckDeadlineSettings(), + clientContext); + this.acknowledgeCallable = + callableFactory.createUnaryCallable( + acknowledgeTransportSettings, settings.acknowledgeSettings(), clientContext); + this.pullCallable = + callableFactory.createUnaryCallable( + pullTransportSettings, settings.pullSettings(), clientContext); + this.streamingPullCallable = + callableFactory.createBidiStreamingCallable( + streamingPullTransportSettings, settings.streamingPullSettings(), clientContext); + this.modifyPushConfigCallable = + callableFactory.createUnaryCallable( + modifyPushConfigTransportSettings, settings.modifyPushConfigSettings(), clientContext); + this.listSnapshotsCallable = + callableFactory.createUnaryCallable( + listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); + this.listSnapshotsPagedCallable = + callableFactory.createPagedCallable( + listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); + this.createSnapshotCallable = + callableFactory.createUnaryCallable( + createSnapshotTransportSettings, settings.createSnapshotSettings(), clientContext); + this.updateSnapshotCallable = + callableFactory.createUnaryCallable( + updateSnapshotTransportSettings, settings.updateSnapshotSettings(), clientContext); + this.deleteSnapshotCallable = + callableFactory.createUnaryCallable( + deleteSnapshotTransportSettings, settings.deleteSnapshotSettings(), clientContext); + this.seekCallable = + callableFactory.createUnaryCallable( + seekTransportSettings, settings.seekSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createSubscriptionCallable() { + return createSubscriptionCallable; + } + + public UnaryCallable getSubscriptionCallable() { + return getSubscriptionCallable; + } + + public UnaryCallable updateSubscriptionCallable() { + return updateSubscriptionCallable; + } + + public UnaryCallable + listSubscriptionsPagedCallable() { + return listSubscriptionsPagedCallable; + } + + public UnaryCallable + listSubscriptionsCallable() { + return listSubscriptionsCallable; + } + + public UnaryCallable deleteSubscriptionCallable() { + return deleteSubscriptionCallable; + } + + public UnaryCallable modifyAckDeadlineCallable() { + return modifyAckDeadlineCallable; + } + + public UnaryCallable acknowledgeCallable() { + return acknowledgeCallable; + } + + public UnaryCallable pullCallable() { + return pullCallable; + } + + public BidiStreamingCallable + streamingPullCallable() { + return streamingPullCallable; + } + + public UnaryCallable modifyPushConfigCallable() { + return modifyPushConfigCallable; + } + + public UnaryCallable + listSnapshotsPagedCallable() { + return listSnapshotsPagedCallable; + } + + public UnaryCallable listSnapshotsCallable() { + return listSnapshotsCallable; + } + + public UnaryCallable createSnapshotCallable() { + return createSnapshotCallable; + } + + public UnaryCallable updateSnapshotCallable() { + return updateSnapshotCallable; + } + + public UnaryCallable deleteSnapshotCallable() { + return deleteSnapshotCallable; + } + + public UnaryCallable seekCallable() { + return seekCallable; + } + + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java new file mode 100644 index 000000000000..82ce2773df21 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -0,0 +1,106 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsResponse; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.UpdateTopicRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Google Cloud Pub/Sub API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class PublisherStub implements BackgroundResource { + + public UnaryCallable createTopicCallable() { + throw new UnsupportedOperationException("Not implemented: createTopicCallable()"); + } + + public UnaryCallable updateTopicCallable() { + throw new UnsupportedOperationException("Not implemented: updateTopicCallable()"); + } + + public UnaryCallable publishCallable() { + throw new UnsupportedOperationException("Not implemented: publishCallable()"); + } + + public UnaryCallable getTopicCallable() { + throw new UnsupportedOperationException("Not implemented: getTopicCallable()"); + } + + public UnaryCallable listTopicsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTopicsPagedCallable()"); + } + + public UnaryCallable listTopicsCallable() { + throw new UnsupportedOperationException("Not implemented: listTopicsCallable()"); + } + + public UnaryCallable + listTopicSubscriptionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listTopicSubscriptionsPagedCallable()"); + } + + public UnaryCallable + listTopicSubscriptionsCallable() { + throw new UnsupportedOperationException("Not implemented: listTopicSubscriptionsCallable()"); + } + + public UnaryCallable deleteTopicCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTopicCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java new file mode 100644 index 000000000000..8f4a8a12c982 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -0,0 +1,746 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.batching.BatchingSettings; +import com.google.api.gax.batching.FlowControlSettings; +import com.google.api.gax.batching.FlowController.LimitExceededBehavior; +import com.google.api.gax.batching.PartitionKey; +import com.google.api.gax.batching.RequestBuilder; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.BatchedRequestIssuer; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BatchingDescriptor; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsResponse; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.UpdateTopicRequest; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link PublisherStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createTopic to 30 seconds: + * + *

+ * 
+ * PublisherStubSettings.Builder topicAdminSettingsBuilder =
+ *     PublisherStubSettings.newBuilder();
+ * topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class PublisherStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/pubsub") + .build(); + + private final UnaryCallSettings createTopicSettings; + private final UnaryCallSettings updateTopicSettings; + private final BatchingCallSettings publishSettings; + private final UnaryCallSettings getTopicSettings; + private final PagedCallSettings + listTopicsSettings; + private final PagedCallSettings< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsPagedResponse> + listTopicSubscriptionsSettings; + private final UnaryCallSettings deleteTopicSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + /** Returns the object with the settings used for calls to createTopic. */ + public UnaryCallSettings createTopicSettings() { + return createTopicSettings; + } + + /** Returns the object with the settings used for calls to updateTopic. */ + public UnaryCallSettings updateTopicSettings() { + return updateTopicSettings; + } + + /** Returns the object with the settings used for calls to publish. */ + public BatchingCallSettings publishSettings() { + return publishSettings; + } + + /** Returns the object with the settings used for calls to getTopic. */ + public UnaryCallSettings getTopicSettings() { + return getTopicSettings; + } + + /** Returns the object with the settings used for calls to listTopics. */ + public PagedCallSettings + listTopicsSettings() { + return listTopicsSettings; + } + + /** Returns the object with the settings used for calls to listTopicSubscriptions. */ + public PagedCallSettings< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsPagedResponse> + listTopicSubscriptionsSettings() { + return listTopicSubscriptionsSettings; + } + + /** Returns the object with the settings used for calls to deleteTopic. */ + public UnaryCallSettings deleteTopicSettings() { + return deleteTopicSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public PublisherStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcPublisherStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "pubsub.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected PublisherStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createTopicSettings = settingsBuilder.createTopicSettings().build(); + updateTopicSettings = settingsBuilder.updateTopicSettings().build(); + publishSettings = settingsBuilder.publishSettings().build(); + getTopicSettings = settingsBuilder.getTopicSettings().build(); + listTopicsSettings = settingsBuilder.listTopicsSettings().build(); + listTopicSubscriptionsSettings = settingsBuilder.listTopicSubscriptionsSettings().build(); + deleteTopicSettings = settingsBuilder.deleteTopicSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + private static final PagedListDescriptor + LIST_TOPICS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTopicsRequest injectToken(ListTopicsRequest payload, String token) { + return ListTopicsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTopicsRequest injectPageSize(ListTopicsRequest payload, int pageSize) { + return ListTopicsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTopicsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTopicsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTopicsResponse payload) { + return payload.getTopicsList(); + } + }; + + private static final PagedListDescriptor< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String> + LIST_TOPIC_SUBSCRIPTIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTopicSubscriptionsRequest injectToken( + ListTopicSubscriptionsRequest payload, String token) { + return ListTopicSubscriptionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTopicSubscriptionsRequest injectPageSize( + ListTopicSubscriptionsRequest payload, int pageSize) { + return ListTopicSubscriptionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListTopicSubscriptionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTopicSubscriptionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTopicSubscriptionsResponse payload) { + return payload.getSubscriptionsList(); + } + }; + + private static final PagedListResponseFactory< + ListTopicsRequest, ListTopicsResponse, ListTopicsPagedResponse> + LIST_TOPICS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTopicsRequest, ListTopicsResponse, ListTopicsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTopicsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TOPICS_PAGE_STR_DESC, request, context); + return ListTopicsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsPagedResponse> + LIST_TOPIC_SUBSCRIPTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListTopicSubscriptionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_TOPIC_SUBSCRIPTIONS_PAGE_STR_DESC, request, context); + return ListTopicSubscriptionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final BatchingDescriptor PUBLISH_BATCHING_DESC = + new BatchingDescriptor() { + @Override + public PartitionKey getBatchPartitionKey(PublishRequest request) { + return new PartitionKey(request.getTopic()); + } + + @Override + public RequestBuilder getRequestBuilder() { + return new RequestBuilder() { + private PublishRequest.Builder builder; + + @Override + public void appendRequest(PublishRequest request) { + if (builder == null) { + builder = request.toBuilder(); + } else { + builder.addAllMessages(request.getMessagesList()); + } + } + + @Override + public PublishRequest build() { + return builder.build(); + } + }; + } + + @Override + public void splitResponse( + PublishResponse batchResponse, + Collection> batch) { + int batchMessageIndex = 0; + for (BatchedRequestIssuer responder : batch) { + List subresponseElements = new ArrayList<>(); + long subresponseCount = responder.getMessageCount(); + for (int i = 0; i < subresponseCount; i++) { + subresponseElements.add(batchResponse.getMessageIds(batchMessageIndex)); + batchMessageIndex += 1; + } + PublishResponse response = + PublishResponse.newBuilder().addAllMessageIds(subresponseElements).build(); + responder.setResponse(response); + } + } + + @Override + public void splitException( + Throwable throwable, + Collection> batch) { + for (BatchedRequestIssuer responder : batch) { + responder.setException(throwable); + } + } + + @Override + public long countElements(PublishRequest request) { + return request.getMessagesCount(); + } + + @Override + public long countBytes(PublishRequest request) { + return request.getSerializedSize(); + } + }; + + /** Builder for PublisherStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createTopicSettings; + private final UnaryCallSettings.Builder updateTopicSettings; + private final BatchingCallSettings.Builder publishSettings; + private final UnaryCallSettings.Builder getTopicSettings; + private final PagedCallSettings.Builder< + ListTopicsRequest, ListTopicsResponse, ListTopicsPagedResponse> + listTopicsSettings; + private final PagedCallSettings.Builder< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsPagedResponse> + listTopicSubscriptionsSettings; + private final UnaryCallSettings.Builder deleteTopicSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "one_plus_delivery", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.ABORTED, + StatusCode.Code.CANCELLED, + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.INTERNAL, + StatusCode.Code.RESOURCE_EXHAUSTED, + StatusCode.Code.UNAVAILABLE, + StatusCode.Code.UNKNOWN))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(12000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("messaging", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createTopicSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateTopicSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + publishSettings = + BatchingCallSettings.newBuilder(PUBLISH_BATCHING_DESC) + .setBatchingSettings(BatchingSettings.newBuilder().build()); + + getTopicSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listTopicsSettings = PagedCallSettings.newBuilder(LIST_TOPICS_PAGE_STR_FACT); + + listTopicSubscriptionsSettings = + PagedCallSettings.newBuilder(LIST_TOPIC_SUBSCRIPTIONS_PAGE_STR_FACT); + + deleteTopicSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createTopicSettings, + updateTopicSettings, + publishSettings, + getTopicSettings, + listTopicsSettings, + listTopicSubscriptionsSettings, + deleteTopicSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createTopicSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateTopicSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .publishSettings() + .setBatchingSettings( + BatchingSettings.newBuilder() + .setElementCountThreshold(10L) + .setRequestByteThreshold(1024L) + .setDelayThreshold(Duration.ofMillis(10)) + .setFlowControlSettings( + FlowControlSettings.newBuilder() + .setLimitExceededBehavior(LimitExceededBehavior.Ignore) + .build()) + .build()); + builder + .publishSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("one_plus_delivery")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("messaging")); + + builder + .getTopicSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listTopicsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listTopicSubscriptionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteTopicSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(PublisherStubSettings settings) { + super(settings); + + createTopicSettings = settings.createTopicSettings.toBuilder(); + updateTopicSettings = settings.updateTopicSettings.toBuilder(); + publishSettings = settings.publishSettings.toBuilder(); + getTopicSettings = settings.getTopicSettings.toBuilder(); + listTopicsSettings = settings.listTopicsSettings.toBuilder(); + listTopicSubscriptionsSettings = settings.listTopicSubscriptionsSettings.toBuilder(); + deleteTopicSettings = settings.deleteTopicSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createTopicSettings, + updateTopicSettings, + publishSettings, + getTopicSettings, + listTopicsSettings, + listTopicSubscriptionsSettings, + deleteTopicSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createTopic. */ + public UnaryCallSettings.Builder createTopicSettings() { + return createTopicSettings; + } + + /** Returns the builder for the settings used for calls to updateTopic. */ + public UnaryCallSettings.Builder updateTopicSettings() { + return updateTopicSettings; + } + + /** Returns the builder for the settings used for calls to publish. */ + public BatchingCallSettings.Builder publishSettings() { + return publishSettings; + } + + /** Returns the builder for the settings used for calls to getTopic. */ + public UnaryCallSettings.Builder getTopicSettings() { + return getTopicSettings; + } + + /** Returns the builder for the settings used for calls to listTopics. */ + public PagedCallSettings.Builder + listTopicsSettings() { + return listTopicsSettings; + } + + /** Returns the builder for the settings used for calls to listTopicSubscriptions. */ + public PagedCallSettings.Builder< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsPagedResponse> + listTopicSubscriptionsSettings() { + return listTopicSubscriptionsSettings; + } + + /** Returns the builder for the settings used for calls to deleteTopic. */ + public UnaryCallSettings.Builder deleteTopicSettings() { + return deleteTopicSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public PublisherStubSettings build() throws IOException { + return new PublisherStubSettings(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java new file mode 100644 index 000000000000..e6cab8a91af1 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -0,0 +1,151 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.DeleteSnapshotRequest; +import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ListSnapshotsResponse; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.ModifyPushConfigRequest; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.UpdateSnapshotRequest; +import com.google.pubsub.v1.UpdateSubscriptionRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Base stub class for Google Cloud Pub/Sub API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class SubscriberStub implements BackgroundResource { + + public UnaryCallable createSubscriptionCallable() { + throw new UnsupportedOperationException("Not implemented: createSubscriptionCallable()"); + } + + public UnaryCallable getSubscriptionCallable() { + throw new UnsupportedOperationException("Not implemented: getSubscriptionCallable()"); + } + + public UnaryCallable updateSubscriptionCallable() { + throw new UnsupportedOperationException("Not implemented: updateSubscriptionCallable()"); + } + + public UnaryCallable + listSubscriptionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSubscriptionsPagedCallable()"); + } + + public UnaryCallable + listSubscriptionsCallable() { + throw new UnsupportedOperationException("Not implemented: listSubscriptionsCallable()"); + } + + public UnaryCallable deleteSubscriptionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSubscriptionCallable()"); + } + + public UnaryCallable modifyAckDeadlineCallable() { + throw new UnsupportedOperationException("Not implemented: modifyAckDeadlineCallable()"); + } + + public UnaryCallable acknowledgeCallable() { + throw new UnsupportedOperationException("Not implemented: acknowledgeCallable()"); + } + + public UnaryCallable pullCallable() { + throw new UnsupportedOperationException("Not implemented: pullCallable()"); + } + + public BidiStreamingCallable + streamingPullCallable() { + throw new UnsupportedOperationException("Not implemented: streamingPullCallable()"); + } + + public UnaryCallable modifyPushConfigCallable() { + throw new UnsupportedOperationException("Not implemented: modifyPushConfigCallable()"); + } + + public UnaryCallable + listSnapshotsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSnapshotsPagedCallable()"); + } + + public UnaryCallable listSnapshotsCallable() { + throw new UnsupportedOperationException("Not implemented: listSnapshotsCallable()"); + } + + public UnaryCallable createSnapshotCallable() { + throw new UnsupportedOperationException("Not implemented: createSnapshotCallable()"); + } + + public UnaryCallable updateSnapshotCallable() { + throw new UnsupportedOperationException("Not implemented: updateSnapshotCallable()"); + } + + public UnaryCallable deleteSnapshotCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSnapshotCallable()"); + } + + public UnaryCallable seekCallable() { + throw new UnsupportedOperationException("Not implemented: seekCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java new file mode 100644 index 000000000000..1f57c41acdbe --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -0,0 +1,861 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.DeleteSnapshotRequest; +import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ListSnapshotsResponse; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.ModifyPushConfigRequest; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.UpdateSnapshotRequest; +import com.google.pubsub.v1.UpdateSubscriptionRequest; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link SubscriberStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. For + * example, to set the total timeout of createSubscription to 30 seconds: + * + *

+ * 
+ * SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder =
+ *     SubscriberStubSettings.newBuilder();
+ * subscriptionAdminSettingsBuilder.createSubscriptionSettings().getRetrySettings().toBuilder()
+ *     .setTotalTimeout(Duration.ofSeconds(30));
+ * SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
+ * 
+ * 
+ */ +@Generated("by gapic-generator") +@BetaApi +public class SubscriberStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/pubsub") + .build(); + + private final UnaryCallSettings createSubscriptionSettings; + private final UnaryCallSettings getSubscriptionSettings; + private final UnaryCallSettings + updateSubscriptionSettings; + private final PagedCallSettings< + ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> + listSubscriptionsSettings; + private final UnaryCallSettings deleteSubscriptionSettings; + private final UnaryCallSettings modifyAckDeadlineSettings; + private final UnaryCallSettings acknowledgeSettings; + private final UnaryCallSettings pullSettings; + private final StreamingCallSettings + streamingPullSettings; + private final UnaryCallSettings modifyPushConfigSettings; + private final PagedCallSettings< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + listSnapshotsSettings; + private final UnaryCallSettings createSnapshotSettings; + private final UnaryCallSettings updateSnapshotSettings; + private final UnaryCallSettings deleteSnapshotSettings; + private final UnaryCallSettings seekSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + /** Returns the object with the settings used for calls to createSubscription. */ + public UnaryCallSettings createSubscriptionSettings() { + return createSubscriptionSettings; + } + + /** Returns the object with the settings used for calls to getSubscription. */ + public UnaryCallSettings getSubscriptionSettings() { + return getSubscriptionSettings; + } + + /** Returns the object with the settings used for calls to updateSubscription. */ + public UnaryCallSettings updateSubscriptionSettings() { + return updateSubscriptionSettings; + } + + /** Returns the object with the settings used for calls to listSubscriptions. */ + public PagedCallSettings< + ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> + listSubscriptionsSettings() { + return listSubscriptionsSettings; + } + + /** Returns the object with the settings used for calls to deleteSubscription. */ + public UnaryCallSettings deleteSubscriptionSettings() { + return deleteSubscriptionSettings; + } + + /** Returns the object with the settings used for calls to modifyAckDeadline. */ + public UnaryCallSettings modifyAckDeadlineSettings() { + return modifyAckDeadlineSettings; + } + + /** Returns the object with the settings used for calls to acknowledge. */ + public UnaryCallSettings acknowledgeSettings() { + return acknowledgeSettings; + } + + /** Returns the object with the settings used for calls to pull. */ + public UnaryCallSettings pullSettings() { + return pullSettings; + } + + /** Returns the object with the settings used for calls to streamingPull. */ + public StreamingCallSettings + streamingPullSettings() { + return streamingPullSettings; + } + + /** Returns the object with the settings used for calls to modifyPushConfig. */ + public UnaryCallSettings modifyPushConfigSettings() { + return modifyPushConfigSettings; + } + + /** Returns the object with the settings used for calls to listSnapshots. */ + public PagedCallSettings + listSnapshotsSettings() { + return listSnapshotsSettings; + } + + /** Returns the object with the settings used for calls to createSnapshot. */ + public UnaryCallSettings createSnapshotSettings() { + return createSnapshotSettings; + } + + /** Returns the object with the settings used for calls to updateSnapshot. */ + public UnaryCallSettings updateSnapshotSettings() { + return updateSnapshotSettings; + } + + /** Returns the object with the settings used for calls to deleteSnapshot. */ + public UnaryCallSettings deleteSnapshotSettings() { + return deleteSnapshotSettings; + } + + /** Returns the object with the settings used for calls to seek. */ + public UnaryCallSettings seekSettings() { + return seekSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public SubscriberStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSubscriberStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "pubsub.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SubscriberStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SubscriberStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createSubscriptionSettings = settingsBuilder.createSubscriptionSettings().build(); + getSubscriptionSettings = settingsBuilder.getSubscriptionSettings().build(); + updateSubscriptionSettings = settingsBuilder.updateSubscriptionSettings().build(); + listSubscriptionsSettings = settingsBuilder.listSubscriptionsSettings().build(); + deleteSubscriptionSettings = settingsBuilder.deleteSubscriptionSettings().build(); + modifyAckDeadlineSettings = settingsBuilder.modifyAckDeadlineSettings().build(); + acknowledgeSettings = settingsBuilder.acknowledgeSettings().build(); + pullSettings = settingsBuilder.pullSettings().build(); + streamingPullSettings = settingsBuilder.streamingPullSettings().build(); + modifyPushConfigSettings = settingsBuilder.modifyPushConfigSettings().build(); + listSnapshotsSettings = settingsBuilder.listSnapshotsSettings().build(); + createSnapshotSettings = settingsBuilder.createSnapshotSettings().build(); + updateSnapshotSettings = settingsBuilder.updateSnapshotSettings().build(); + deleteSnapshotSettings = settingsBuilder.deleteSnapshotSettings().build(); + seekSettings = settingsBuilder.seekSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + private static final PagedListDescriptor< + ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription> + LIST_SUBSCRIPTIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSubscriptionsRequest injectToken( + ListSubscriptionsRequest payload, String token) { + return ListSubscriptionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSubscriptionsRequest injectPageSize( + ListSubscriptionsRequest payload, int pageSize) { + return ListSubscriptionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSubscriptionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSubscriptionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSubscriptionsResponse payload) { + return payload.getSubscriptionsList(); + } + }; + + private static final PagedListDescriptor + LIST_SNAPSHOTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSnapshotsRequest injectToken(ListSnapshotsRequest payload, String token) { + return ListSnapshotsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSnapshotsRequest injectPageSize(ListSnapshotsRequest payload, int pageSize) { + return ListSnapshotsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSnapshotsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSnapshotsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSnapshotsResponse payload) { + return payload.getSnapshotsList(); + } + }; + + private static final PagedListResponseFactory< + ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> + LIST_SUBSCRIPTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSubscriptionsRequest, ListSubscriptionsResponse, + ListSubscriptionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSubscriptionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SUBSCRIPTIONS_PAGE_STR_DESC, request, context); + return ListSubscriptionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + LIST_SNAPSHOTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSnapshotsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SNAPSHOTS_PAGE_STR_DESC, request, context); + return ListSnapshotsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for SubscriberStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createSubscriptionSettings; + private final UnaryCallSettings.Builder + getSubscriptionSettings; + private final UnaryCallSettings.Builder + updateSubscriptionSettings; + private final PagedCallSettings.Builder< + ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> + listSubscriptionsSettings; + private final UnaryCallSettings.Builder + deleteSubscriptionSettings; + private final UnaryCallSettings.Builder + modifyAckDeadlineSettings; + private final UnaryCallSettings.Builder acknowledgeSettings; + private final UnaryCallSettings.Builder pullSettings; + private final StreamingCallSettings.Builder + streamingPullSettings; + private final UnaryCallSettings.Builder + modifyPushConfigSettings; + private final PagedCallSettings.Builder< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + listSnapshotsSettings; + private final UnaryCallSettings.Builder createSnapshotSettings; + private final UnaryCallSettings.Builder updateSnapshotSettings; + private final UnaryCallSettings.Builder deleteSnapshotSettings; + private final UnaryCallSettings.Builder seekSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "idempotent", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "pull", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.CANCELLED, + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.INTERNAL, + StatusCode.Code.RESOURCE_EXHAUSTED, + StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("default", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(12000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(12000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("messaging", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("streaming_messaging", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listSubscriptionsSettings = PagedCallSettings.newBuilder(LIST_SUBSCRIPTIONS_PAGE_STR_FACT); + + deleteSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + modifyAckDeadlineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + acknowledgeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + pullSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + streamingPullSettings = StreamingCallSettings.newBuilder(); + + modifyPushConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listSnapshotsSettings = PagedCallSettings.newBuilder(LIST_SNAPSHOTS_PAGE_STR_FACT); + + createSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + deleteSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + seekSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createSubscriptionSettings, + getSubscriptionSettings, + updateSubscriptionSettings, + listSubscriptionsSettings, + deleteSubscriptionSettings, + modifyAckDeadlineSettings, + acknowledgeSettings, + pullSettings, + modifyPushConfigSettings, + listSnapshotsSettings, + createSnapshotSettings, + updateSnapshotSettings, + deleteSnapshotSettings, + seekSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createSubscriptionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getSubscriptionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateSubscriptionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listSubscriptionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteSubscriptionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .modifyAckDeadlineSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .acknowledgeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("messaging")); + + builder + .pullSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("pull")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("messaging")); + + builder + .modifyPushConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .listSnapshotsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .createSnapshotSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateSnapshotSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .deleteSnapshotSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .seekSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + return builder; + } + + protected Builder(SubscriberStubSettings settings) { + super(settings); + + createSubscriptionSettings = settings.createSubscriptionSettings.toBuilder(); + getSubscriptionSettings = settings.getSubscriptionSettings.toBuilder(); + updateSubscriptionSettings = settings.updateSubscriptionSettings.toBuilder(); + listSubscriptionsSettings = settings.listSubscriptionsSettings.toBuilder(); + deleteSubscriptionSettings = settings.deleteSubscriptionSettings.toBuilder(); + modifyAckDeadlineSettings = settings.modifyAckDeadlineSettings.toBuilder(); + acknowledgeSettings = settings.acknowledgeSettings.toBuilder(); + pullSettings = settings.pullSettings.toBuilder(); + streamingPullSettings = settings.streamingPullSettings.toBuilder(); + modifyPushConfigSettings = settings.modifyPushConfigSettings.toBuilder(); + listSnapshotsSettings = settings.listSnapshotsSettings.toBuilder(); + createSnapshotSettings = settings.createSnapshotSettings.toBuilder(); + updateSnapshotSettings = settings.updateSnapshotSettings.toBuilder(); + deleteSnapshotSettings = settings.deleteSnapshotSettings.toBuilder(); + seekSettings = settings.seekSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createSubscriptionSettings, + getSubscriptionSettings, + updateSubscriptionSettings, + listSubscriptionsSettings, + deleteSubscriptionSettings, + modifyAckDeadlineSettings, + acknowledgeSettings, + pullSettings, + modifyPushConfigSettings, + listSnapshotsSettings, + createSnapshotSettings, + updateSnapshotSettings, + deleteSnapshotSettings, + seekSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createSubscription. */ + public UnaryCallSettings.Builder createSubscriptionSettings() { + return createSubscriptionSettings; + } + + /** Returns the builder for the settings used for calls to getSubscription. */ + public UnaryCallSettings.Builder + getSubscriptionSettings() { + return getSubscriptionSettings; + } + + /** Returns the builder for the settings used for calls to updateSubscription. */ + public UnaryCallSettings.Builder + updateSubscriptionSettings() { + return updateSubscriptionSettings; + } + + /** Returns the builder for the settings used for calls to listSubscriptions. */ + public PagedCallSettings.Builder< + ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> + listSubscriptionsSettings() { + return listSubscriptionsSettings; + } + + /** Returns the builder for the settings used for calls to deleteSubscription. */ + public UnaryCallSettings.Builder + deleteSubscriptionSettings() { + return deleteSubscriptionSettings; + } + + /** Returns the builder for the settings used for calls to modifyAckDeadline. */ + public UnaryCallSettings.Builder modifyAckDeadlineSettings() { + return modifyAckDeadlineSettings; + } + + /** Returns the builder for the settings used for calls to acknowledge. */ + public UnaryCallSettings.Builder acknowledgeSettings() { + return acknowledgeSettings; + } + + /** Returns the builder for the settings used for calls to pull. */ + public UnaryCallSettings.Builder pullSettings() { + return pullSettings; + } + + /** Returns the builder for the settings used for calls to streamingPull. */ + public StreamingCallSettings.Builder + streamingPullSettings() { + return streamingPullSettings; + } + + /** Returns the builder for the settings used for calls to modifyPushConfig. */ + public UnaryCallSettings.Builder modifyPushConfigSettings() { + return modifyPushConfigSettings; + } + + /** Returns the builder for the settings used for calls to listSnapshots. */ + public PagedCallSettings.Builder< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + listSnapshotsSettings() { + return listSnapshotsSettings; + } + + /** Returns the builder for the settings used for calls to createSnapshot. */ + public UnaryCallSettings.Builder createSnapshotSettings() { + return createSnapshotSettings; + } + + /** Returns the builder for the settings used for calls to updateSnapshot. */ + public UnaryCallSettings.Builder updateSnapshotSettings() { + return updateSnapshotSettings; + } + + /** Returns the builder for the settings used for calls to deleteSnapshot. */ + public UnaryCallSettings.Builder deleteSnapshotSettings() { + return deleteSnapshotSettings; + } + + /** Returns the builder for the settings used for calls to seek. */ + public UnaryCallSettings.Builder seekSettings() { + return seekSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public SubscriberStubSettings build() throws IOException { + return new SubscriberStubSettings(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java new file mode 100644 index 000000000000..f02606db4321 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java @@ -0,0 +1,184 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.it; + +import com.google.auto.value.AutoValue; +import com.google.cloud.ServiceOptions; +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.PushConfig; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.Timeout; + +import java.util.Collections; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.TimeUnit; + +import static com.google.common.truth.Truth.assertThat; + +public class ITPubSubTest { + + private static final String NAME_SUFFIX = UUID.randomUUID().toString(); + private static TopicAdminClient topicAdminClient; + private static SubscriptionAdminClient subscriptionAdminClient; + private static String projectId; + + @Rule public Timeout globalTimeout = Timeout.seconds(300); + + @AutoValue + abstract static class MessageAndConsumer { + abstract PubsubMessage message(); + + abstract AckReplyConsumer consumer(); + + static MessageAndConsumer create(PubsubMessage message, AckReplyConsumer consumer) { + return new AutoValue_ITPubSubTest_MessageAndConsumer(message, consumer); + } + } + + @BeforeClass + public static void setupClass() throws Exception { + topicAdminClient = TopicAdminClient.create(); + subscriptionAdminClient = SubscriptionAdminClient.create(); + projectId = ServiceOptions.getDefaultProjectId(); + } + + @AfterClass + public static void tearDownClass() throws Exception { + topicAdminClient.close(); + subscriptionAdminClient.close(); + } + + private String formatForTest(String resourceName) { + return resourceName + "-" + NAME_SUFFIX; + } + + @Test + public void testTopicPolicy() { + ProjectTopicName topicName = ProjectTopicName.of(projectId, formatForTest("testing-topic-policy")); + topicAdminClient.createTopic(topicName); + + Policy policy = topicAdminClient.getIamPolicy(topicName.toString()); + Binding binding = + Binding.newBuilder().setRole("roles/viewer").addMembers("allAuthenticatedUsers").build(); + Policy newPolicy = + topicAdminClient.setIamPolicy( + topicName.toString(), policy.toBuilder().addBindings(binding).build()); + assertThat(newPolicy.getBindingsList()).contains(binding); + + String permissionName = "pubsub.topics.get"; + List permissions = + topicAdminClient + .testIamPermissions(topicName.toString(), Collections.singletonList(permissionName)) + .getPermissionsList(); + assertThat(permissions).contains(permissionName); + + topicAdminClient.deleteTopic(topicName); + } + + @Test + public void testPublishSubscribe() throws Exception { + ProjectTopicName topicName = + ProjectTopicName.of(projectId, formatForTest("testing-publish-subscribe-topic")); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, formatForTest("testing-publish-subscribe-subscription")); + + topicAdminClient.createTopic(topicName); + subscriptionAdminClient.createSubscription( + subscriptionName, topicName, PushConfig.newBuilder().build(), 10); + + final BlockingQueue receiveQueue = new LinkedBlockingQueue<>(); + Subscriber subscriber = + Subscriber.newBuilder( + subscriptionName, + new MessageReceiver() { + @Override + public void receiveMessage( + final PubsubMessage message, final AckReplyConsumer consumer) { + receiveQueue.offer(MessageAndConsumer.create(message, consumer)); + } + }) + .build(); + subscriber.addListener( + new Subscriber.Listener() { + public void failed(Subscriber.State from, Throwable failure) { + receiveQueue.offer(failure); + } + }, + MoreExecutors.directExecutor()); + subscriber.startAsync(); + + Publisher publisher = Publisher.newBuilder(topicName).build(); + publisher + .publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("msg1")).build()) + .get(); + publisher + .publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("msg2")).build()) + .get(); + publisher.shutdown(); + + // Ack the first message. + MessageAndConsumer toAck = pollQueue(receiveQueue); + toAck.consumer().ack(); + + // Nack the other. + MessageAndConsumer toNack = pollQueue(receiveQueue); + assertThat(toNack.message().getData()).isNotEqualTo(toAck.message().getData()); + toNack.consumer().nack(); + + // We should get the nacked message back. + MessageAndConsumer redelivered = pollQueue(receiveQueue); + assertThat(redelivered.message().getData()).isEqualTo(toNack.message().getData()); + redelivered.consumer().ack(); + + subscriber.stopAsync().awaitTerminated(); + subscriptionAdminClient.deleteSubscription(subscriptionName); + topicAdminClient.deleteTopic(topicName); + } + + private MessageAndConsumer pollQueue(BlockingQueue queue) throws InterruptedException { + Object obj = queue.poll(10, TimeUnit.MINUTES); + if (obj == null) { + return null; + } + if (obj instanceof Throwable) { + throw new IllegalStateException("unexpected error", (Throwable) obj); + } + if (obj instanceof MessageAndConsumer) { + return (MessageAndConsumer) obj; + } + throw new IllegalStateException( + "expected either MessageAndConsumer or Throwable, found: " + obj); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java new file mode 100644 index 000000000000..278ef589b2c5 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java @@ -0,0 +1,42 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiClock; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicLong; + +/** A Clock to help with testing time-based logic. */ +public class FakeClock implements ApiClock { + + private final AtomicLong millis = new AtomicLong(); + + // Advances the clock value by {@code time} in {@code timeUnit}. + public void advance(long time, TimeUnit timeUnit) { + millis.addAndGet(timeUnit.toMillis(time)); + } + + @Override + public long nanoTime() { + return millisTime() * 1000_000L; + } + + @Override + public long millisTime() { + return millis.get(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java new file mode 100644 index 000000000000..396b5d05bd5f --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java @@ -0,0 +1,108 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.common.base.Optional; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PublisherGrpc.PublisherImplBase; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.LinkedBlockingQueue; + +/** + * A fake implementation of {@link PublisherImplBase}, that can be used to test clients of a Cloud + * Pub/Sub Publisher. + */ +class FakePublisherServiceImpl extends PublisherImplBase { + + private final LinkedBlockingQueue requests = new LinkedBlockingQueue<>(); + private final LinkedBlockingQueue publishResponses = new LinkedBlockingQueue<>(); + + /** Class used to save the state of a possible response. */ + private static class Response { + Optional publishResponse; + Optional error; + + public Response(PublishResponse publishResponse) { + this.publishResponse = Optional.of(publishResponse); + this.error = Optional.absent(); + } + + public Response(Throwable exception) { + this.publishResponse = Optional.absent(); + this.error = Optional.of(exception); + } + + public PublishResponse getPublishResponse() { + return publishResponse.get(); + } + + public Throwable getError() { + return error.get(); + } + + boolean isError() { + return error.isPresent(); + } + + @Override + public String toString() { + if (isError()) { + return error.get().toString(); + } + return publishResponse.get().toString(); + } + } + + @Override + public void publish(PublishRequest request, StreamObserver responseObserver) { + requests.add(request); + Response response; + try { + response = publishResponses.take(); + } catch (InterruptedException e) { + throw new IllegalArgumentException(e); + } + if (response.isError()) { + responseObserver.onError(response.getError()); + } else { + responseObserver.onNext(response.getPublishResponse()); + responseObserver.onCompleted(); + } + } + + public FakePublisherServiceImpl addPublishResponse(PublishResponse publishResponse) { + publishResponses.add(new Response(publishResponse)); + return this; + } + + public FakePublisherServiceImpl addPublishResponse( + PublishResponse.Builder publishResponseBuilder) { + return addPublishResponse(publishResponseBuilder.build()); + } + + public FakePublisherServiceImpl addPublishError(Throwable error) { + publishResponses.add(new Response(error)); + return this; + } + + public List getCapturedRequests() { + return new ArrayList(requests); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java new file mode 100644 index 000000000000..13704b27d1b0 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java @@ -0,0 +1,352 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiClock; +import com.google.common.primitives.Ints; +import com.google.common.util.concurrent.SettableFuture; +import java.util.ArrayList; +import java.util.Deque; +import java.util.LinkedList; +import java.util.List; +import java.util.PriorityQueue; +import java.util.concurrent.AbstractExecutorService; +import java.util.concurrent.Callable; +import java.util.concurrent.Delayed; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import java.util.concurrent.atomic.AtomicBoolean; +import org.threeten.bp.Duration; +import org.threeten.bp.Instant; + +/** + * Fake implementation of {@link ScheduledExecutorService} that allows tests control the reference + * time of the executor and decide when to execute any outstanding task. + */ +public class FakeScheduledExecutorService extends AbstractExecutorService + implements ScheduledExecutorService { + + private final AtomicBoolean shutdown = new AtomicBoolean(false); + private final PriorityQueue> pendingCallables = new PriorityQueue<>(); + private final FakeClock clock = new FakeClock(); + private final Deque expectedWorkQueue = new LinkedList<>(); + + public ApiClock getClock() { + return clock; + } + + @Override + public ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit) { + return schedulePendingCallable( + new PendingCallable<>( + Duration.ofMillis(unit.toMillis(delay)), command, PendingCallableType.NORMAL)); + } + + @Override + public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) { + return schedulePendingCallable( + new PendingCallable<>( + Duration.ofMillis(unit.toMillis(delay)), callable, PendingCallableType.NORMAL)); + } + + @Override + public ScheduledFuture scheduleAtFixedRate( + Runnable command, long initialDelay, long period, TimeUnit unit) { + return schedulePendingCallable( + new PendingCallable<>( + Duration.ofMillis(unit.toMillis(initialDelay)), command, PendingCallableType.FIXED_RATE)); + } + + @Override + public ScheduledFuture scheduleWithFixedDelay( + Runnable command, long initialDelay, long delay, TimeUnit unit) { + return schedulePendingCallable( + new PendingCallable<>( + Duration.ofMillis(unit.toMillis(initialDelay)), command, PendingCallableType.FIXED_DELAY)); + } + + /** + * This allows for adding expectations on future work to be scheduled ( + * {@link FakeScheduledExecutorService#schedule} + * or {@link FakeScheduledExecutorService#scheduleAtFixedRate} + * or {@link FakeScheduledExecutorService#scheduleWithFixedDelay}) based on its delay. + */ + public void setupScheduleExpectation(Duration delay) { + synchronized (expectedWorkQueue) { + expectedWorkQueue.add(delay); + } + } + + /** + * Blocks the current thread until all the work {@link + * FakeScheduledExecutorService#setupScheduleExpectation(Duration) expected} has been scheduled in + * the executor. + */ + public void waitForExpectedWork() { + synchronized (expectedWorkQueue) { + while (!expectedWorkQueue.isEmpty()) { + try { + expectedWorkQueue.wait(); + } catch (InterruptedException e) { + // Wait uninterruptibly + } + } + } + } + + /** + * This will advance the reference time of the executor and execute (in the same thread) any + * outstanding callable which execution time has passed. + */ + public void advanceTime(Duration toAdvance) { + clock.advance(toAdvance.toMillis(), TimeUnit.MILLISECONDS); + work(); + } + + private void work() { + Instant cmpTime = Instant.ofEpochMilli(clock.millisTime()); + + for (;;) { + PendingCallable callable = null; + synchronized (pendingCallables) { + if (pendingCallables.isEmpty() + || pendingCallables.peek().getScheduledTime().isAfter(cmpTime)) { + break; + } + callable = pendingCallables.poll(); + } + if (callable != null) { + try { + callable.call(); + } catch (Exception e) { + // We ignore any callable exception, which should be set to the future but not relevant to + // advanceTime. + } + } + } + + synchronized (pendingCallables) { + if (shutdown.get() && pendingCallables.isEmpty()) { + pendingCallables.notifyAll(); + } + } + } + + @Override + public void shutdown() { + if (shutdown.getAndSet(true)) { + throw new IllegalStateException("This executor has been shutdown already"); + } + } + + @Override + public List shutdownNow() { + if (shutdown.getAndSet(true)) { + throw new IllegalStateException("This executor has been shutdown already"); + } + List pending = new ArrayList<>(); + for (final PendingCallable pendingCallable : pendingCallables) { + pending.add( + new Runnable() { + @Override + public void run() { + pendingCallable.call(); + } + }); + } + synchronized (pendingCallables) { + pendingCallables.notifyAll(); + pendingCallables.clear(); + } + return pending; + } + + @Override + public boolean isShutdown() { + return shutdown.get(); + } + + @Override + public boolean isTerminated() { + return pendingCallables.isEmpty(); + } + + @Override + public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException { + synchronized (pendingCallables) { + if (pendingCallables.isEmpty()) { + return true; + } + pendingCallables.wait(unit.toMillis(timeout)); + return pendingCallables.isEmpty(); + } + } + + @Override + public void execute(Runnable command) { + if (shutdown.get()) { + throw new IllegalStateException("This executor has been shutdown"); + } + command.run(); + } + + ScheduledFuture schedulePendingCallable(PendingCallable callable) { + if (shutdown.get()) { + throw new IllegalStateException("This executor has been shutdown"); + } + synchronized (pendingCallables) { + pendingCallables.add(callable); + } + work(); + synchronized (expectedWorkQueue) { + // We compare by the callable delay in order decide when to remove expectations from the + // expected work queue, i.e. only the expected work that matches the delay of the scheduled + // callable is removed from the queue. + if (!expectedWorkQueue.isEmpty() && expectedWorkQueue.peek().equals(callable.delay)) { + expectedWorkQueue.poll(); + } + expectedWorkQueue.notifyAll(); + } + + return callable.getScheduledFuture(); + } + + static enum PendingCallableType { + NORMAL, + FIXED_RATE, + FIXED_DELAY + } + + /** Class that saves the state of an scheduled pending callable. */ + class PendingCallable implements Comparable> { + Instant creationTime = Instant.ofEpochMilli(clock.millisTime()); + Duration delay; + Callable pendingCallable; + SettableFuture future = SettableFuture.create(); + AtomicBoolean cancelled = new AtomicBoolean(false); + AtomicBoolean done = new AtomicBoolean(false); + PendingCallableType type; + + PendingCallable(Duration delay, final Runnable runnable, PendingCallableType type) { + pendingCallable = + new Callable() { + @Override + public T call() throws Exception { + runnable.run(); + return null; + } + }; + this.type = type; + this.delay = delay; + } + + PendingCallable(Duration delay, Callable callable, PendingCallableType type) { + pendingCallable = callable; + this.type = type; + this.delay = delay; + } + + private Instant getScheduledTime() { + return creationTime.plus(delay); + } + + ScheduledFuture getScheduledFuture() { + return new ScheduledFuture() { + @Override + public long getDelay(TimeUnit unit) { + return unit.convert(getScheduledTime().toEpochMilli() - clock.millisTime(), + TimeUnit.MILLISECONDS); + } + + @Override + public int compareTo(Delayed o) { + return Ints.saturatedCast( + getDelay(TimeUnit.MILLISECONDS) - o.getDelay(TimeUnit.MILLISECONDS)); + } + + @Override + public boolean cancel(boolean mayInterruptIfRunning) { + synchronized (this) { + cancelled.set(true); + return !done.get(); + } + } + + @Override + public boolean isCancelled() { + return cancelled.get(); + } + + @Override + public boolean isDone() { + return done.get(); + } + + @Override + public T get() throws InterruptedException, ExecutionException { + return future.get(); + } + + @Override + public T get(long timeout, TimeUnit unit) + throws InterruptedException, ExecutionException, TimeoutException { + return future.get(timeout, unit); + } + }; + } + + T call() { + T result = null; + synchronized (this) { + if (cancelled.get()) { + return null; + } + try { + result = pendingCallable.call(); + future.set(result); + } catch (Exception e) { + future.setException(e); + } finally { + switch (type) { + case NORMAL: + done.set(true); + break; + case FIXED_DELAY: + this.creationTime = Instant.ofEpochMilli(clock.millisTime()); + schedulePendingCallable(this); + break; + case FIXED_RATE: + this.creationTime = this.creationTime.plus(delay); + schedulePendingCallable(this); + break; + default: + // Nothing to do + } + } + } + return result; + } + + @Override + public int compareTo(PendingCallable other) { + return getScheduledTime().compareTo(other.getScheduledTime()); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java new file mode 100644 index 000000000000..e7d86e65acc9 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java @@ -0,0 +1,426 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.client.util.Preconditions; +import com.google.api.core.InternalApi; +import com.google.common.collect.ImmutableList; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.PublisherGrpc.PublisherImplBase; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.SubscriberGrpc.SubscriberImplBase; +import com.google.pubsub.v1.Subscription; +import io.grpc.Status; +import io.grpc.Status.Code; +import io.grpc.StatusException; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.LinkedBlockingDeque; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; + +/** + * A fake implementation of {@link PublisherImplBase}, that can be used to test clients of a Cloud + * Pub/Sub Publisher. + */ +class FakeSubscriberServiceImpl extends SubscriberImplBase { + private final AtomicBoolean subscriptionInitialized = new AtomicBoolean(false); + private String subscription = ""; + private final AtomicInteger messageAckDeadline = + new AtomicInteger(Subscriber.MIN_ACK_DEADLINE_SECONDS); + private final AtomicInteger getSubscriptionCalled = new AtomicInteger(); + private final List openedStreams = new ArrayList<>(); + private final List closedStreams = new ArrayList<>(); + private final List acks = new ArrayList<>(); + private final List modAckDeadlines = new ArrayList<>(); + private final List receivedPullRequest = new ArrayList<>(); + private final BlockingQueue pullResponses = new LinkedBlockingDeque<>(); + private int currentStream; + + public static enum CloseSide { + SERVER, + CLIENT + } + + public static final class ModifyAckDeadline { + private final String ackId; + private final long seconds; + + public ModifyAckDeadline(String ackId, long seconds) { + Preconditions.checkNotNull(ackId); + this.ackId = ackId; + this.seconds = seconds; + } + + public String getAckId() { + return ackId; + } + + public long getSeconds() { + return seconds; + } + + @Override + public boolean equals(Object obj) { + if (!(obj instanceof ModifyAckDeadline)) { + return false; + } + ModifyAckDeadline other = (ModifyAckDeadline) obj; + return other.ackId.equals(this.ackId) && other.seconds == this.seconds; + } + + @Override + public int hashCode() { + return ackId.hashCode(); + } + + @Override + public String toString() { + return "Ack ID: " + ackId + ", deadline seconds: " + seconds; + } + } + + private static class Stream { + private StreamObserver requestObserver; + private StreamObserver responseObserver; + } + + private class StreamingPullRequestObserver implements StreamObserver { + private final Stream stream; + private final StreamObserver responseObserver; + + StreamingPullRequestObserver( + Stream stream, StreamObserver responseObserver) { + this.stream = stream; + this.responseObserver = responseObserver; + } + + @Override + public void onNext(StreamingPullRequest request) { + synchronized (stream) { + if (!request.getSubscription().isEmpty()) { + if (!subscription.isEmpty() && !subscription.equals(request.getSubscription())) { + responseObserver.onError( + new StatusException( + Status.fromCode(Code.ABORTED) + .withDescription("Can only set one subscription."))); + return; + } + + synchronized (subscriptionInitialized) { + if (subscription.isEmpty()) { + if (request.getStreamAckDeadlineSeconds() == 0) { + responseObserver.onError( + new StatusException( + Status.fromCode(Code.INVALID_ARGUMENT) + .withDescription("A stream must be initialized with a ack deadline."))); + } + + subscription = request.getSubscription(); + subscriptionInitialized.set(true); + subscriptionInitialized.notifyAll(); + } + } + addOpenedStream(stream); + stream.notifyAll(); + } + + if (request.getStreamAckDeadlineSeconds() > 0) { + synchronized (messageAckDeadline) { + messageAckDeadline.set(request.getStreamAckDeadlineSeconds()); + messageAckDeadline.notifyAll(); + } + } + if (subscription.isEmpty()) { + closeStream(stream); + responseObserver.onError( + new StatusException( + Status.fromCode(Code.ABORTED) + .withDescription( + "The stream has not been properly initialized with a " + + "subscription."))); + return; + } + if (request.getAckIdsCount() > 0) { + addReceivedAcks(request.getAckIdsList()); + } + if (request.getModifyDeadlineAckIdsCount() > 0) { + if (request.getModifyDeadlineAckIdsCount() != request.getModifyDeadlineSecondsCount()) { + closeStream(stream); + responseObserver.onError( + new StatusException( + Status.fromCode(Code.ABORTED) + .withDescription("Invalid modify ack deadline request."))); + return; + } + Iterator ackIds = request.getModifyDeadlineAckIdsList().iterator(); + Iterator seconds = request.getModifyDeadlineSecondsList().iterator(); + while (ackIds.hasNext() && seconds.hasNext()) { + addReceivedModifyAckDeadline(new ModifyAckDeadline(ackIds.next(), seconds.next())); + } + } + } + } + + @Override + public void onError(Throwable error) { + closeStream(stream); + } + + @Override + public void onCompleted() { + closeStream(stream); + stream.responseObserver.onCompleted(); + } + } + + @Override + public StreamObserver streamingPull( + StreamObserver responseObserver) { + Stream stream = new Stream(); + stream.requestObserver = new StreamingPullRequestObserver(stream, responseObserver); + stream.responseObserver = responseObserver; + return stream.requestObserver; + } + + public void sendStreamingResponse(StreamingPullResponse pullResponse) + throws InterruptedException { + waitForRegistedSubscription(); + synchronized (openedStreams) { + waitForOpenedStreams(1); + openedStreams.get(getAndAdvanceCurrentStream()).responseObserver.onNext(pullResponse); + } + } + + public void setMessageAckDeadlineSeconds(int ackDeadline) { + messageAckDeadline.set(ackDeadline); + } + + public void enqueuePullResponse(PullResponse response) { + pullResponses.add(response); + } + + @Override + public void getSubscription( + GetSubscriptionRequest request, StreamObserver responseObserver) { + getSubscriptionCalled.incrementAndGet(); + responseObserver.onNext( + Subscription.newBuilder() + .setName(request.getSubscription()) + .setAckDeadlineSeconds(messageAckDeadline.get()) + .setTopic("fake-topic") + .build()); + responseObserver.onCompleted(); + } + + /** Returns the number of times getSubscription is called. */ + @InternalApi + int getSubscriptionCalledCount() { + return getSubscriptionCalled.get(); + } + + @Override + public void pull(PullRequest request, StreamObserver responseObserver) { + synchronized (receivedPullRequest) { + receivedPullRequest.add(request); + } + try { + responseObserver.onNext(pullResponses.take()); + responseObserver.onCompleted(); + } catch (InterruptedException e) { + responseObserver.onError(e); + } + } + + @Override + public void acknowledge( + AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { + addReceivedAcks(request.getAckIdsList()); + responseObserver.onNext(Empty.getDefaultInstance()); + responseObserver.onCompleted(); + } + + @Override + public void modifyAckDeadline( + ModifyAckDeadlineRequest request, StreamObserver responseObserver) { + for (String ackId : request.getAckIdsList()) { + addReceivedModifyAckDeadline(new ModifyAckDeadline(ackId, request.getAckDeadlineSeconds())); + } + responseObserver.onNext(Empty.getDefaultInstance()); + responseObserver.onCompleted(); + } + + public void sendError(Throwable error) throws InterruptedException { + waitForRegistedSubscription(); + synchronized (openedStreams) { + waitForOpenedStreams(1); + Stream stream = openedStreams.get(getAndAdvanceCurrentStream()); + stream.responseObserver.onError(error); + closeStream(stream); + } + } + + public String waitForRegistedSubscription() throws InterruptedException { + synchronized (subscriptionInitialized) { + while (!subscriptionInitialized.get()) { + subscriptionInitialized.wait(); + } + } + return subscription; + } + + public List waitAndConsumeReceivedAcks(int expectedCount) throws InterruptedException { + synchronized (acks) { + waitAtLeast(acks, expectedCount); + List receivedAcksCopy = ImmutableList.copyOf(acks.subList(0, expectedCount)); + acks.subList(0, expectedCount).clear(); + return receivedAcksCopy; + } + } + + public List waitAndConsumeModifyAckDeadlines(int expectedCount) + throws InterruptedException { + synchronized (modAckDeadlines) { + waitAtLeast(modAckDeadlines, expectedCount); + List modAckDeadlinesCopy = + ImmutableList.copyOf(modAckDeadlines.subList(0, expectedCount)); + modAckDeadlines.subList(0, expectedCount).clear(); + return modAckDeadlinesCopy; + } + } + + public int waitForClosedStreams(int expectedCount) throws InterruptedException { + synchronized (closedStreams) { + waitAtLeast(closedStreams, expectedCount); + return closedStreams.size(); + } + } + + public int waitForOpenedStreams(int expectedCount) throws InterruptedException { + synchronized (openedStreams) { + waitAtLeast(openedStreams, expectedCount); + return openedStreams.size(); + } + } + + // wait until the collection has at least target number of elements. + // caller MUST hold the monitor for the collection. + private static void waitAtLeast(Collection collection, int target) + throws InterruptedException { + long untilMillis = System.currentTimeMillis() + 20_000; + while (collection.size() < target) { + long now = System.currentTimeMillis(); + if (now >= untilMillis) { + throw new IllegalStateException("timed out, last state: " + collection); + } + collection.wait(untilMillis - now); + } + } + + public void waitForStreamAckDeadline(int expectedValue) throws InterruptedException { + synchronized (messageAckDeadline) { + while (messageAckDeadline.get() != expectedValue) { + messageAckDeadline.wait(); + } + } + } + + public int getOpenedStreamsCount() { + return openedStreams.size(); + } + + public int getClosedStreamsCount() { + return closedStreams.size(); + } + + public List getAcks() { + return acks; + } + + public List getModifyAckDeadlines() { + return modAckDeadlines; + } + + public void reset() { + synchronized (subscriptionInitialized) { + synchronized (openedStreams) { + synchronized (acks) { + synchronized (modAckDeadlines) { + openedStreams.clear(); + closedStreams.clear(); + acks.clear(); + modAckDeadlines.clear(); + subscriptionInitialized.set(false); + subscription = ""; + pullResponses.clear(); + receivedPullRequest.clear(); + currentStream = 0; + } + } + } + } + } + + private void addOpenedStream(Stream stream) { + synchronized (openedStreams) { + openedStreams.add(stream); + openedStreams.notifyAll(); + } + } + + private void closeStream(Stream stream) { + synchronized (openedStreams) { + openedStreams.remove(stream); + closedStreams.add(stream); + } + synchronized (closedStreams) { + closedStreams.notifyAll(); + } + } + + private int getAndAdvanceCurrentStream() { + int current = currentStream; + synchronized (openedStreams) { + currentStream = (currentStream + 1) % openedStreams.size(); + } + return current; + } + + private void addReceivedAcks(Collection newAckIds) { + synchronized (acks) { + acks.addAll(newAckIds); + acks.notifyAll(); + } + } + + private void addReceivedModifyAckDeadline(ModifyAckDeadline newAckDeadline) { + synchronized (modAckDeadlines) { + modAckDeadlines.add(newAckDeadline); + modAckDeadlines.notifyAll(); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java new file mode 100644 index 000000000000..2cd6997f6436 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -0,0 +1,197 @@ +/* + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static com.google.common.truth.Truth.assertThat; + +import com.google.api.gax.batching.FlowControlSettings; +import com.google.api.gax.batching.FlowController; +import com.google.api.gax.core.Distribution; +import com.google.auto.value.AutoValue; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.ReceivedMessage; +import java.util.ArrayList; +import java.util.Collections; +import java.util.LinkedList; +import java.util.List; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ScheduledThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import org.junit.Before; +import org.junit.Test; +import org.threeten.bp.Duration; + +public class MessageDispatcherTest { + private static final ReceivedMessage TEST_MESSAGE = + ReceivedMessage.newBuilder() + .setAckId("ackid") + .setMessage(PubsubMessage.newBuilder().setData(ByteString.EMPTY).build()) + .build(); + private static final Runnable NOOP_RUNNABLE = + new Runnable() { + @Override + public void run() { + // No-op; don't do anything. + } + }; + + private MessageDispatcher dispatcher; + private LinkedBlockingQueue consumers; + private List sentAcks; + private List sentModAcks; + private FakeClock clock; + + @AutoValue + abstract static class ModAckItem { + abstract String ackId(); + + abstract int seconds(); + + static ModAckItem of(String ackId, int seconds) { + return new AutoValue_MessageDispatcherTest_ModAckItem(ackId, seconds); + } + } + + @Before + public void setUp() { + consumers = new LinkedBlockingQueue<>(); + sentAcks = new ArrayList<>(); + sentModAcks = new ArrayList<>(); + + MessageReceiver receiver = + new MessageReceiver() { + @Override + public void receiveMessage(final PubsubMessage message, final AckReplyConsumer consumer) { + consumers.add(consumer); + } + }; + MessageDispatcher.AckProcessor processor = + new MessageDispatcher.AckProcessor() { + public void sendAckOperations( + List acksToSend, + List ackDeadlineExtensions) { + sentAcks.addAll(acksToSend); + for (MessageDispatcher.PendingModifyAckDeadline modack : ackDeadlineExtensions) { + for (String ackId : modack.ackIds) { + sentModAcks.add(ModAckItem.of(ackId, modack.deadlineExtensionSeconds)); + } + } + } + }; + + // This executor isn't used because we're not actually scheduling anything until we call + // dispatcher.start(), which we're not doing here. + ScheduledThreadPoolExecutor systemExecutor = new ScheduledThreadPoolExecutor(1); + systemExecutor.shutdownNow(); + + clock = new FakeClock(); + + dispatcher = + new MessageDispatcher( + receiver, + processor, + Duration.ofSeconds(5), + Duration.ofMinutes(60), + new Distribution(Subscriber.MAX_ACK_DEADLINE_SECONDS + 1), + new FlowController(FlowControlSettings.newBuilder().build()), + new LinkedList(), + MoreExecutors.directExecutor(), + systemExecutor, + clock); + dispatcher.setMessageDeadlineSeconds(Subscriber.MIN_ACK_DEADLINE_SECONDS); + } + + @Test + public void testReceipt() throws Exception { + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.processOutstandingAckOperations(); + assertThat(sentModAcks) + .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); + } + + @Test + public void testAck() throws Exception { + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + consumers.take().ack(); + dispatcher.processOutstandingAckOperations(); + assertThat(sentAcks).contains(TEST_MESSAGE.getAckId()); + } + + @Test + public void testNack() throws Exception { + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + consumers.take().nack(); + dispatcher.processOutstandingAckOperations(); + assertThat(sentModAcks).contains(ModAckItem.of(TEST_MESSAGE.getAckId(), 0)); + } + + @Test + public void testExtension() throws Exception { + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.extendDeadlines(); + assertThat(sentModAcks) + .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); + + sentModAcks.clear(); + consumers.take().ack(); + dispatcher.extendDeadlines(); + assertThat(sentModAcks).isEmpty(); + } + + @Test + public void testExtension_Close() throws Exception { + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.extendDeadlines(); + assertThat(sentModAcks) + .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); + sentModAcks.clear(); + + // Default total expiration is an hour (60*60 seconds). We normally would extend by 10s. + // However, only extend by 5s here, since there's only 5s left before total expiration. + clock.advance(60 * 60 - 5, TimeUnit.SECONDS); + dispatcher.extendDeadlines(); + assertThat(sentModAcks).contains(ModAckItem.of(TEST_MESSAGE.getAckId(), 5)); + } + + @Test + public void testExtension_GiveUp() throws Exception { + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.extendDeadlines(); + assertThat(sentModAcks) + .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); + sentModAcks.clear(); + + // If we run extendDeadlines after totalExpiration, we shouldn't send anything. + // In particular, don't send negative modacks. + clock.advance(1, TimeUnit.DAYS); + dispatcher.extendDeadlines(); + assertThat(sentModAcks).isEmpty(); + } + + @Test + public void testDeadlineAdjustment() throws Exception { + assertThat(dispatcher.computeDeadlineSeconds()).isEqualTo(10); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + clock.advance(42, TimeUnit.SECONDS); + consumers.take().ack(); + + assertThat(dispatcher.computeDeadlineSeconds()).isEqualTo(42); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java new file mode 100644 index 000000000000..c2845b54b265 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static org.junit.Assert.assertEquals; + +import java.util.concurrent.atomic.AtomicBoolean; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** + * Tests for {@link MessageWaiter}. + */ +@RunWith(JUnit4.class) +public class MessageWaiterTest { + + @Test + public void test() throws Exception { + final MessageWaiter waiter = new MessageWaiter(); + waiter.incrementPendingMessages(1); + + final AtomicBoolean waitReached = new AtomicBoolean(); + + Thread t = new Thread(new Runnable(){ + @Override + public void run() { + while (!waitReached.get()) { + Thread.yield(); + } + waiter.incrementPendingMessages(-1); + } + }); + t.start(); + + waiter.waitNoMessages(waitReached); + t.join(); + + assertEquals(0, waiter.pendingMessages()); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java new file mode 100644 index 000000000000..2ffd5eaf21fe --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -0,0 +1,57 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockIAMPolicy implements MockGrpcService { + private final MockIAMPolicyImpl serviceImpl; + + public MockIAMPolicy() { + serviceImpl = new MockIAMPolicyImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java new file mode 100644 index 000000000000..8d30c2d6e1f8 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -0,0 +1,107 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockIAMPolicyImpl extends IAMPolicyImplBase { + private ArrayList requests; + private Queue responses; + + public MockIAMPolicyImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext((Policy) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext((Policy) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof TestIamPermissionsResponse) { + requests.add(request); + responseObserver.onNext((TestIamPermissionsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java new file mode 100644 index 000000000000..b8c126a37c6e --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java @@ -0,0 +1,57 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockPublisher implements MockGrpcService { + private final MockPublisherImpl serviceImpl; + + public MockPublisher() { + serviceImpl = new MockPublisherImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java new file mode 100644 index 000000000000..2348ad11c143 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -0,0 +1,170 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.BetaApi; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsResponse; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PublisherGrpc.PublisherImplBase; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.UpdateTopicRequest; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockPublisherImpl extends PublisherImplBase { + private ArrayList requests; + private Queue responses; + + public MockPublisherImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createTopic(Topic request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Topic) { + requests.add(request); + responseObserver.onNext((Topic) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateTopic(UpdateTopicRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Topic) { + requests.add(request); + responseObserver.onNext((Topic) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void publish(PublishRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof PublishResponse) { + requests.add(request); + responseObserver.onNext((PublishResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getTopic(GetTopicRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Topic) { + requests.add(request); + responseObserver.onNext((Topic) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listTopics( + ListTopicsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListTopicsResponse) { + requests.add(request); + responseObserver.onNext((ListTopicsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listTopicSubscriptions( + ListTopicSubscriptionsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListTopicSubscriptionsResponse) { + requests.add(request); + responseObserver.onNext((ListTopicSubscriptionsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteTopic(DeleteTopicRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java new file mode 100644 index 000000000000..1d8d4d90a470 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -0,0 +1,57 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.GeneratedMessageV3; +import io.grpc.ServerServiceDefinition; +import java.util.List; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockSubscriber implements MockGrpcService { + private final MockSubscriberImpl serviceImpl; + + public MockSubscriber() { + serviceImpl = new MockSubscriberImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(GeneratedMessageV3 response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java new file mode 100644 index 000000000000..4c7f5407a16f --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -0,0 +1,318 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.BetaApi; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.DeleteSnapshotRequest; +import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ListSnapshotsResponse; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.ModifyPushConfigRequest; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.SubscriberGrpc.SubscriberImplBase; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.UpdateSnapshotRequest; +import com.google.pubsub.v1.UpdateSubscriptionRequest; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockSubscriberImpl extends SubscriberImplBase { + private ArrayList requests; + private Queue responses; + + public MockSubscriberImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(GeneratedMessageV3 response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createSubscription( + Subscription request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Subscription) { + requests.add(request); + responseObserver.onNext((Subscription) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getSubscription( + GetSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Subscription) { + requests.add(request); + responseObserver.onNext((Subscription) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateSubscription( + UpdateSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Subscription) { + requests.add(request); + responseObserver.onNext((Subscription) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listSubscriptions( + ListSubscriptionsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListSubscriptionsResponse) { + requests.add(request); + responseObserver.onNext((ListSubscriptionsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteSubscription( + DeleteSubscriptionRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void modifyAckDeadline( + ModifyAckDeadlineRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void acknowledge(AcknowledgeRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void pull(PullRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof PullResponse) { + requests.add(request); + responseObserver.onNext((PullResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public StreamObserver streamingPull( + final StreamObserver responseObserver) { + final Object response = responses.remove(); + StreamObserver requestObserver = + new StreamObserver() { + @Override + public void onNext(StreamingPullRequest value) { + if (response instanceof StreamingPullResponse) { + responseObserver.onNext((StreamingPullResponse) response); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void onError(Throwable t) { + responseObserver.onError(t); + } + + @Override + public void onCompleted() { + responseObserver.onCompleted(); + } + }; + return requestObserver; + } + + @Override + public void modifyPushConfig( + ModifyPushConfigRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listSnapshots( + ListSnapshotsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListSnapshotsResponse) { + requests.add(request); + responseObserver.onNext((ListSnapshotsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void createSnapshot( + CreateSnapshotRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Snapshot) { + requests.add(request); + responseObserver.onNext((Snapshot) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateSnapshot( + UpdateSnapshotRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Snapshot) { + requests.add(request); + responseObserver.onNext((Snapshot) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteSnapshot( + DeleteSnapshotRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void seek(SeekRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof SeekResponse) { + requests.add(request); + responseObserver.onNext((SeekResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java new file mode 100644 index 000000000000..bea0ec4e9194 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -0,0 +1,569 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertSame; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; + +import com.google.api.core.ApiFuture; +import com.google.api.gax.batching.BatchingSettings; +import com.google.api.gax.core.ExecutorProvider; +import com.google.api.gax.core.FixedExecutorProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.rpc.DataLossException; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.cloud.pubsub.v1.Publisher.Builder; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PubsubMessage; +import io.grpc.Server; +import io.grpc.Status; +import io.grpc.StatusException; +import io.grpc.inprocess.InProcessServerBuilder; +import java.util.concurrent.ExecutionException; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; +import org.threeten.bp.Duration; + +@RunWith(JUnit4.class) +public class PublisherImplTest { + + private static final ProjectTopicName TEST_TOPIC = ProjectTopicName.of("test-project", "test-topic"); + + private static final ExecutorProvider SINGLE_THREAD_EXECUTOR = + InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(1).build(); + + private static final TransportChannelProvider TEST_CHANNEL_PROVIDER = + LocalChannelProvider.create("test-server"); + + private FakeScheduledExecutorService fakeExecutor; + + private FakePublisherServiceImpl testPublisherServiceImpl; + + private Server testServer; + + class FakeException extends Exception {} + + @Before + public void setUp() throws Exception { + testPublisherServiceImpl = new FakePublisherServiceImpl(); + + InProcessServerBuilder serverBuilder = InProcessServerBuilder.forName("test-server"); + serverBuilder.addService(testPublisherServiceImpl); + testServer = serverBuilder.build(); + testServer.start(); + + fakeExecutor = new FakeScheduledExecutorService(); + } + + @After + public void tearDown() throws Exception { + testServer.shutdownNow().awaitTermination(); + } + + @Test + public void testPublishByDuration() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + // To demonstrate that reaching duration will trigger publish + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setDelayThreshold(Duration.ofSeconds(5)) + .setElementCountThreshold(10L) + .build()) + .build(); + + testPublisherServiceImpl.addPublishResponse( + PublishResponse.newBuilder().addMessageIds("1").addMessageIds("2")); + + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + ApiFuture publishFuture2 = sendTestMessage(publisher, "B"); + + assertFalse(publishFuture1.isDone()); + assertFalse(publishFuture2.isDone()); + + fakeExecutor.advanceTime(Duration.ofSeconds(10)); + + assertEquals("1", publishFuture1.get()); + assertEquals("2", publishFuture2.get()); + + assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(0).getMessagesCount()); + publisher.shutdown(); + } + + @Test + public void testPublishByNumBatchedMessages() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(2L) + .setDelayThreshold(Duration.ofSeconds(100)) + .build()) + .build(); + + testPublisherServiceImpl + .addPublishResponse(PublishResponse.newBuilder().addMessageIds("1").addMessageIds("2")) + .addPublishResponse(PublishResponse.newBuilder().addMessageIds("3").addMessageIds("4")); + + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + ApiFuture publishFuture2 = sendTestMessage(publisher, "B"); + ApiFuture publishFuture3 = sendTestMessage(publisher, "C"); + + // Note we are not advancing time but message should still get published + + assertEquals("1", publishFuture1.get()); + assertEquals("2", publishFuture2.get()); + + assertFalse(publishFuture3.isDone()); + + ApiFuture publishFuture4 = + publisher.publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("D")).build()); + + assertEquals("3", publishFuture3.get()); + assertEquals("4", publishFuture4.get()); + + assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(0).getMessagesCount()); + assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(1).getMessagesCount()); + publisher.shutdown(); + } + + @Test + public void testSinglePublishByNumBytes() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(2L) + .setDelayThreshold(Duration.ofSeconds(100)) + .build()) + .build(); + + testPublisherServiceImpl + .addPublishResponse(PublishResponse.newBuilder().addMessageIds("1").addMessageIds("2")) + .addPublishResponse(PublishResponse.newBuilder().addMessageIds("3").addMessageIds("4")); + + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + ApiFuture publishFuture2 = sendTestMessage(publisher, "B"); + ApiFuture publishFuture3 = sendTestMessage(publisher, "C"); + + // Note we are not advancing time but message should still get published + + assertEquals("1", publishFuture1.get()); + assertEquals("2", publishFuture2.get()); + assertFalse(publishFuture3.isDone()); + + ApiFuture publishFuture4 = sendTestMessage(publisher, "D"); + assertEquals("3", publishFuture3.get()); + assertEquals("4", publishFuture4.get()); + + assertEquals(2, testPublisherServiceImpl.getCapturedRequests().size()); + publisher.shutdown(); + } + + @Test + public void testPublishMixedSizeAndDuration() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + // To demonstrate that reaching duration will trigger publish + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(2L) + .setDelayThreshold(Duration.ofSeconds(5)) + .build()) + .build(); + + testPublisherServiceImpl.addPublishResponse( + PublishResponse.newBuilder().addMessageIds("1").addMessageIds("2")); + testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("3")); + + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + + fakeExecutor.advanceTime(Duration.ofSeconds(2)); + assertFalse(publishFuture1.isDone()); + + ApiFuture publishFuture2 = sendTestMessage(publisher, "B"); + + // Publishing triggered by batch size + assertEquals("1", publishFuture1.get()); + assertEquals("2", publishFuture2.get()); + + ApiFuture publishFuture3 = sendTestMessage(publisher, "C"); + + assertFalse(publishFuture3.isDone()); + + // Publishing triggered by time + fakeExecutor.advanceTime(Duration.ofSeconds(5)); + + assertEquals("3", publishFuture3.get()); + + assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(0).getMessagesCount()); + assertEquals(1, testPublisherServiceImpl.getCapturedRequests().get(1).getMessagesCount()); + publisher.shutdown(); + } + + private ApiFuture sendTestMessage(Publisher publisher, String data) { + return publisher.publish( + PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8(data)).build()); + } + + @Test + public void testErrorPropagation() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setExecutorProvider(SINGLE_THREAD_EXECUTOR) + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(1L) + .setDelayThreshold(Duration.ofSeconds(5)) + .build()) + .build(); + testPublisherServiceImpl.addPublishError(Status.DATA_LOSS.asException()); + try { + sendTestMessage(publisher, "A").get(); + fail("should throw exception"); + } catch (ExecutionException e) { + assertThat(e.getCause()).isInstanceOf(DataLossException.class); + } + } + + @Test + public void testPublishFailureRetries() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setExecutorProvider(SINGLE_THREAD_EXECUTOR) + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(1L) + .setDelayThreshold(Duration.ofSeconds(5)) + .build()) + .build(); // To demonstrate that reaching duration will trigger publish + + testPublisherServiceImpl.addPublishError(new Throwable("Transiently failing")); + testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("1")); + + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + + assertEquals("1", publishFuture1.get()); + + assertEquals(2, testPublisherServiceImpl.getCapturedRequests().size()); + publisher.shutdown(); + } + + @Test(expected = ExecutionException.class) + public void testPublishFailureRetries_retriesDisabled() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setExecutorProvider(SINGLE_THREAD_EXECUTOR) + .setRetrySettings( + Publisher.Builder.DEFAULT_RETRY_SETTINGS + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(10)) + .setMaxAttempts(1) + .build()) + .build(); + + testPublisherServiceImpl.addPublishError(new Throwable("Transiently failing")); + + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + + try { + publishFuture1.get(); + } finally { + assertSame(testPublisherServiceImpl.getCapturedRequests().size(), 1); + publisher.shutdown(); + } + } + + @Test + public void testPublishFailureRetries_maxRetriesSetup() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setExecutorProvider(SINGLE_THREAD_EXECUTOR) + .setRetrySettings( + Publisher.Builder.DEFAULT_RETRY_SETTINGS + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(10)) + .setMaxAttempts(3) + .build()) + .build(); + + testPublisherServiceImpl.addPublishError(new Throwable("Transiently failing")); + testPublisherServiceImpl.addPublishError(new Throwable("Transiently failing")); + testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("1")); + + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + + assertEquals("1", publishFuture1.get()); + + assertEquals(3, testPublisherServiceImpl.getCapturedRequests().size()); + publisher.shutdown(); + } + + @Test + public void testPublishFailureRetries_maxRetriesSetUnlimited() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setExecutorProvider(SINGLE_THREAD_EXECUTOR) + .setRetrySettings( + Publisher.Builder.DEFAULT_RETRY_SETTINGS + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(10)) + .setMaxAttempts(0) + .build()) + .build(); + + testPublisherServiceImpl.addPublishError(new Throwable("Transiently failing")); + testPublisherServiceImpl.addPublishError(new Throwable("Transiently failing")); + testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("1")); + + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + + assertEquals("1", publishFuture1.get()); + + assertEquals(3, testPublisherServiceImpl.getCapturedRequests().size()); + publisher.shutdown(); + } + + @Test(expected = ExecutionException.class) + public void testPublishFailureRetries_nonRetryableFailsImmediately() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setExecutorProvider(SINGLE_THREAD_EXECUTOR) + .setRetrySettings( + Publisher.Builder.DEFAULT_RETRY_SETTINGS + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(10)) + .build()) + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(1L) + .setDelayThreshold(Duration.ofSeconds(5)) + .build()) + .build(); // To demonstrate that reaching duration will trigger publish + + testPublisherServiceImpl.addPublishError(new StatusException(Status.INVALID_ARGUMENT)); + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + + try { + publishFuture1.get(); + } finally { + assertTrue(testPublisherServiceImpl.getCapturedRequests().size() >= 1); + publisher.shutdown(); + } + } + + @Test + public void testPublisherGetters() throws Exception { + Publisher.Builder builder = Publisher.newBuilder(TEST_TOPIC); + builder.setChannelProvider(TEST_CHANNEL_PROVIDER); + builder.setExecutorProvider(SINGLE_THREAD_EXECUTOR); + builder.setBatchingSettings( + BatchingSettings.newBuilder() + .setRequestByteThreshold(10L) + .setDelayThreshold(Duration.ofMillis(11)) + .setElementCountThreshold(12L) + .build()); + builder.setCredentialsProvider(NoCredentialsProvider.create()); + Publisher publisher = builder.build(); + + assertEquals(TEST_TOPIC, publisher.getTopicName()); + assertEquals(10, (long) publisher.getBatchingSettings().getRequestByteThreshold()); + assertEquals(Duration.ofMillis(11), publisher.getBatchingSettings().getDelayThreshold()); + assertEquals(12, (long) publisher.getBatchingSettings().getElementCountThreshold()); + publisher.shutdown(); + } + + @Test + public void testBuilderParametersAndDefaults() { + Publisher.Builder builder = Publisher.newBuilder(TEST_TOPIC); + assertEquals(TEST_TOPIC.toString(), builder.topicName); + assertEquals(Publisher.Builder.DEFAULT_EXECUTOR_PROVIDER, builder.executorProvider); + assertEquals( + Publisher.Builder.DEFAULT_REQUEST_BYTES_THRESHOLD, + builder.batchingSettings.getRequestByteThreshold().longValue()); + assertEquals( + Publisher.Builder.DEFAULT_DELAY_THRESHOLD, builder.batchingSettings.getDelayThreshold()); + assertEquals( + Publisher.Builder.DEFAULT_ELEMENT_COUNT_THRESHOLD, + builder.batchingSettings.getElementCountThreshold().longValue()); + assertEquals(Publisher.Builder.DEFAULT_RETRY_SETTINGS, builder.retrySettings); + } + + @Test + public void testBuilderInvalidArguments() { + Publisher.Builder builder = Publisher.newBuilder(TEST_TOPIC); + + try { + builder.setChannelProvider(null); + fail("Should have thrown an IllegalArgumentException"); + } catch (NullPointerException expected) { + // Expected + } + + try { + builder.setExecutorProvider(null); + fail("Should have thrown an IllegalArgumentException"); + } catch (NullPointerException expected) { + // Expected + } + try { + builder.setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setRequestByteThreshold((Long) null) + .build()); + fail("Should have thrown an NullPointerException"); + } catch (NullPointerException expected) { + // Expected + } + try { + builder.setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setRequestByteThreshold(0L) + .build()); + fail("Should have thrown an IllegalArgumentException"); + } catch (IllegalArgumentException expected) { + // Expected + } + try { + builder.setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setRequestByteThreshold(-1L) + .build()); + fail("Should have thrown an IllegalArgumentException"); + } catch (IllegalArgumentException expected) { + // Expected + } + + builder.setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setDelayThreshold(Duration.ofMillis(1)) + .build()); + try { + builder.setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder().setDelayThreshold(null).build()); + fail("Should have thrown an NullPointerException"); + } catch (NullPointerException expected) { + // Expected + } + try { + builder.setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setDelayThreshold(Duration.ofMillis(-1)) + .build()); + fail("Should have thrown an IllegalArgumentException"); + } catch (IllegalArgumentException expected) { + // Expected + } + + builder.setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(1L) + .build()); + try { + builder.setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold((Long) null) + .build()); + fail("Should have thrown an NullPointerException"); + } catch (NullPointerException expected) { + // Expected + } + try { + builder.setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(0L) + .build()); + fail("Should have thrown an IllegalArgumentException"); + } catch (IllegalArgumentException expected) { + // Expected + } + try { + builder.setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(-1L) + .build()); + fail("Should have thrown an IllegalArgumentException"); + } catch (IllegalArgumentException expected) { + // Expected + } + + builder.setRetrySettings( + Publisher.Builder.DEFAULT_RETRY_SETTINGS + .toBuilder() + .setInitialRpcTimeout(Publisher.Builder.MIN_RPC_TIMEOUT) + .build()); + try { + builder.setRetrySettings( + Publisher.Builder.DEFAULT_RETRY_SETTINGS + .toBuilder() + .setInitialRpcTimeout(Publisher.Builder.MIN_RPC_TIMEOUT.minusMillis(1)) + .build()); + fail("Should have thrown an IllegalArgumentException"); + } catch (IllegalArgumentException expected) { + // Expected + } + builder.setRetrySettings( + Publisher.Builder.DEFAULT_RETRY_SETTINGS + .toBuilder() + .setTotalTimeout(Publisher.Builder.MIN_TOTAL_TIMEOUT) + .build()); + try { + builder.setRetrySettings( + Publisher.Builder.DEFAULT_RETRY_SETTINGS + .toBuilder() + .setTotalTimeout(Publisher.Builder.MIN_TOTAL_TIMEOUT.minusMillis(1)) + .build()); + fail("Should have thrown an IllegalArgumentException"); + } catch (IllegalArgumentException expected) { + // Expected + } + } + + private Builder getTestPublisherBuilder() { + return Publisher.newBuilder(TEST_TOPIC) + .setExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) + .setChannelProvider(TEST_CHANNEL_PROVIDER) + .setCredentialsProvider(NoCredentialsProvider.create()); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java new file mode 100644 index 000000000000..adb1d8720345 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java @@ -0,0 +1,18 @@ +package com.google.cloud.pubsub.v1; + +import com.google.common.truth.Truth; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import org.junit.Test; + +public class StatusUtilTest { + + @Test + public void testIsRetryable() { + Truth.assertThat(StatusUtil.isRetryable(new StatusRuntimeException(Status.UNAVAILABLE))) + .isTrue(); + Truth.assertThat(StatusUtil.isRetryable(new StatusRuntimeException( + Status.UNAVAILABLE.withDescription("Server shutdownNow invoked")))) + .isFalse(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java new file mode 100644 index 000000000000..0dfcb4241730 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -0,0 +1,111 @@ +/* + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.cloud.pubsub.v1.MessageDispatcher.PendingModifyAckDeadline; +import com.google.common.truth.Truth; +import com.google.pubsub.v1.StreamingPullRequest; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import org.junit.Test; + +public class StreamingSubscriberConnectionTest { + @Test + public void testPartitionAckOperations() { + List requests; + + requests = + StreamingSubscriberConnection.partitionAckOperations( + Collections.emptyList(), Collections.emptyList(), 3); + Truth.assertThat(requests).isEmpty(); + + requests = + StreamingSubscriberConnection.partitionAckOperations( + Arrays.asList("a", "b", "c"), Collections.emptyList(), 3); + Truth.assertThat(requests) + .containsExactly( + StreamingPullRequest.newBuilder().addAckIds("a").addAckIds("b").addAckIds("c").build()) + .inOrder(); + + requests = + StreamingSubscriberConnection.partitionAckOperations( + Arrays.asList("a", "b", "c", "d"), + Collections.emptyList(), + 3); + Truth.assertThat(requests) + .containsExactly( + StreamingPullRequest.newBuilder().addAckIds("a").addAckIds("b").addAckIds("c").build(), + StreamingPullRequest.newBuilder().addAckIds("d").build()) + .inOrder(); + + requests = + StreamingSubscriberConnection.partitionAckOperations( + Arrays.asList("a", "b", "c", "d"), + Arrays.asList(new PendingModifyAckDeadline(42, "w")), + 3); + Truth.assertThat(requests) + .containsExactly( + StreamingPullRequest.newBuilder() + .addAckIds("a") + .addAckIds("b") + .addAckIds("c") + .addModifyDeadlineAckIds("w") + .addModifyDeadlineSeconds(42) + .build(), + StreamingPullRequest.newBuilder().addAckIds("d").build()) + .inOrder(); + + requests = + StreamingSubscriberConnection.partitionAckOperations( + Arrays.asList("a"), Arrays.asList(new PendingModifyAckDeadline(42, "w", "x")), 3); + Truth.assertThat(requests) + .containsExactly( + StreamingPullRequest.newBuilder() + .addAckIds("a") + .addModifyDeadlineAckIds("w") + .addModifyDeadlineSeconds(42) + .addModifyDeadlineAckIds("x") + .addModifyDeadlineSeconds(42) + .build()) + .inOrder(); + + requests = + StreamingSubscriberConnection.partitionAckOperations( + Arrays.asList("a"), + Arrays.asList( + new PendingModifyAckDeadline(42, "w", "x"), + new PendingModifyAckDeadline(43, "y", "z")), + 3); + Truth.assertThat(requests) + .containsExactly( + StreamingPullRequest.newBuilder() + .addAckIds("a") + .addModifyDeadlineAckIds("w") + .addModifyDeadlineSeconds(42) + .addModifyDeadlineAckIds("x") + .addModifyDeadlineSeconds(42) + .addModifyDeadlineAckIds("y") + .addModifyDeadlineSeconds(43) + .build(), + StreamingPullRequest.newBuilder() + .addModifyDeadlineAckIds("z") + .addModifyDeadlineSeconds(43) + .build()) + .inOrder(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java new file mode 100644 index 000000000000..2664a4a4163a --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -0,0 +1,158 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + +import com.google.api.gax.core.FixedExecutorProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GrpcStatusCode; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.FixedTransportChannelProvider; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsub.v1.Subscriber.Builder; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import io.grpc.ManagedChannel; +import io.grpc.Server; +import io.grpc.Status; +import io.grpc.StatusException; +import io.grpc.inprocess.InProcessChannelBuilder; +import io.grpc.inprocess.InProcessServerBuilder; +import org.junit.After; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.TestName; + +/** Tests for {@link Subscriber}. */ +public class SubscriberTest { + + private static final ProjectSubscriptionName TEST_SUBSCRIPTION = + ProjectSubscriptionName.of("test-project", "test-subscription"); + + private ManagedChannel testChannel; + private FakeScheduledExecutorService fakeExecutor; + private FakeSubscriberServiceImpl fakeSubscriberServiceImpl; + private Server testServer; + + private final MessageReceiver testReceiver = + new MessageReceiver() { + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + consumer.ack(); + } + }; + + @Rule public TestName testName = new TestName(); + + @Before + public void setUp() throws Exception { + InProcessServerBuilder serverBuilder = InProcessServerBuilder.forName(testName.getMethodName()); + fakeSubscriberServiceImpl = new FakeSubscriberServiceImpl(); + fakeExecutor = new FakeScheduledExecutorService(); + testChannel = InProcessChannelBuilder.forName(testName.getMethodName()).build(); + serverBuilder.addService(fakeSubscriberServiceImpl); + testServer = serverBuilder.build(); + testServer.start(); + } + + @After + public void tearDown() throws Exception { + testServer.shutdownNow().awaitTermination(); + testChannel.shutdown(); + } + + @Test + public void testOpenedChannels() throws Exception { + int expectedChannelCount = 1; + + Subscriber subscriber = startSubscriber(getTestSubscriberBuilder(testReceiver)); + + assertEquals( + expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); + + subscriber.stopAsync().awaitTerminated(); + } + + @Test + public void testFailedChannel_recoverableError_channelReopened() throws Exception { + int expectedChannelCount = 1; + + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setSystemExecutorProvider( + InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(1).build())); + + // Recoverable error + fakeSubscriberServiceImpl.sendError(new StatusException(Status.INTERNAL)); + + assertEquals(1, fakeSubscriberServiceImpl.waitForClosedStreams(1)); + assertEquals( + expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); + + subscriber.stopAsync().awaitTerminated(); + } + + @Test(expected = IllegalStateException.class) + public void testFailedChannel_fatalError_subscriberFails() throws Exception { + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setSystemExecutorProvider( + InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(10).build())); + + // Fatal error + fakeSubscriberServiceImpl.sendError(new StatusException(Status.INVALID_ARGUMENT)); + + try { + subscriber.awaitTerminated(); + } finally { + // The subscriber must finish with an state error because its FAILED status. + assertEquals(Subscriber.State.FAILED, subscriber.state()); + + Throwable t = subscriber.failureCause(); + assertTrue(t instanceof ApiException); + + ApiException ex = (ApiException) (t); + assertTrue(ex.getStatusCode() instanceof GrpcStatusCode); + + GrpcStatusCode grpcCode = (GrpcStatusCode) ex.getStatusCode(); + assertEquals(StatusCode.Code.INVALID_ARGUMENT, grpcCode.getCode()); + } + } + + private Subscriber startSubscriber(Builder testSubscriberBuilder) throws Exception { + Subscriber subscriber = testSubscriberBuilder.build(); + subscriber.startAsync().awaitRunning(); + return subscriber; + } + + private Builder getTestSubscriberBuilder(MessageReceiver receiver) { + return Subscriber.newBuilder(TEST_SUBSCRIPTION, receiver) + .setExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) + .setSystemExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) + .setChannelProvider(FixedTransportChannelProvider.create(GrpcTransportChannel.create(testChannel))) + .setCredentialsProvider(NoCredentialsProvider.create()) + .setClock(fakeExecutor.getClock()) + .setParallelPullCount(1); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java new file mode 100644 index 000000000000..67f27f7f3f9c --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -0,0 +1,820 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.grpc.testing.MockStreamObserver; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.DeleteSnapshotRequest; +import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ListSnapshotsResponse; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.ModifyPushConfigRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.ProjectSnapshotName; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.ReceivedMessage; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.TopicName; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.ExecutionException; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class SubscriptionAdminClientTest { + private static MockPublisher mockPublisher; + private static MockIAMPolicy mockIAMPolicy; + private static MockSubscriber mockSubscriber; + private static MockServiceHelper serviceHelper; + private SubscriptionAdminClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockPublisher = new MockPublisher(); + mockIAMPolicy = new MockIAMPolicy(); + mockSubscriber = new MockSubscriber(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList(mockPublisher, mockIAMPolicy, mockSubscriber)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + SubscriptionAdminSettings settings = + SubscriptionAdminSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SubscriptionAdminClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createSubscriptionTest() { + ProjectSubscriptionName name2 = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + TopicName topic2 = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + int ackDeadlineSeconds2 = 921632575; + boolean retainAckedMessages = false; + Subscription expectedResponse = + Subscription.newBuilder() + .setName(name2.toString()) + .setTopic(topic2.toString()) + .setAckDeadlineSeconds(ackDeadlineSeconds2) + .setRetainAckedMessages(retainAckedMessages) + .build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + + Subscription actualResponse = + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + Subscription actualRequest = (Subscription) actualRequests.get(0); + + Assert.assertEquals(name, ProjectSubscriptionName.parse(actualRequest.getName())); + Assert.assertEquals(Objects.toString(topic), actualRequest.getTopic()); + Assert.assertEquals(pushConfig, actualRequest.getPushConfig()); + Assert.assertEquals(ackDeadlineSeconds, actualRequest.getAckDeadlineSeconds()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getSubscriptionTest() { + ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + TopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + int ackDeadlineSeconds = 2135351438; + boolean retainAckedMessages = false; + Subscription expectedResponse = + Subscription.newBuilder() + .setName(name.toString()) + .setTopic(topic.toString()) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .setRetainAckedMessages(retainAckedMessages) + .build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + Subscription actualResponse = client.getSubscription(subscription); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSubscriptionRequest actualRequest = (GetSubscriptionRequest) actualRequests.get(0); + + Assert.assertEquals( + subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + client.getSubscription(subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listSubscriptionsTest() { + String nextPageToken = ""; + Subscription subscriptionsElement = Subscription.newBuilder().build(); + List subscriptions = Arrays.asList(subscriptionsElement); + ListSubscriptionsResponse expectedResponse = + ListSubscriptionsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllSubscriptions(subscriptions) + .build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectName project = ProjectName.of("[PROJECT]"); + + ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubscriptionsRequest actualRequest = (ListSubscriptionsRequest) actualRequests.get(0); + + Assert.assertEquals(project, ProjectName.parse(actualRequest.getProject())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listSubscriptionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectName project = ProjectName.of("[PROJECT]"); + + client.listSubscriptions(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteSubscriptionTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + client.deleteSubscription(subscription); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSubscriptionRequest actualRequest = (DeleteSubscriptionRequest) actualRequests.get(0); + + Assert.assertEquals( + subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + client.deleteSubscription(subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void modifyAckDeadlineTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + + client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ModifyAckDeadlineRequest actualRequest = (ModifyAckDeadlineRequest) actualRequests.get(0); + + Assert.assertEquals( + subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertEquals(ackIds, actualRequest.getAckIdsList()); + Assert.assertEquals(ackDeadlineSeconds, actualRequest.getAckDeadlineSeconds()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void modifyAckDeadlineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + + client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void acknowledgeTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + + client.acknowledge(subscription, ackIds); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AcknowledgeRequest actualRequest = (AcknowledgeRequest) actualRequests.get(0); + + Assert.assertEquals( + subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertEquals(ackIds, actualRequest.getAckIdsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void acknowledgeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + + client.acknowledge(subscription, ackIds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void pullTest() { + PullResponse expectedResponse = PullResponse.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + boolean returnImmediately = false; + int maxMessages = 496131527; + + PullResponse actualResponse = client.pull(subscription, returnImmediately, maxMessages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PullRequest actualRequest = (PullRequest) actualRequests.get(0); + + Assert.assertEquals( + subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertEquals(returnImmediately, actualRequest.getReturnImmediately()); + Assert.assertEquals(maxMessages, actualRequest.getMaxMessages()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void pullExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + boolean returnImmediately = false; + int maxMessages = 496131527; + + client.pull(subscription, returnImmediately, maxMessages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void streamingPullTest() throws Exception { + ReceivedMessage receivedMessagesElement = ReceivedMessage.newBuilder().build(); + List receivedMessages = Arrays.asList(receivedMessagesElement); + StreamingPullResponse expectedResponse = + StreamingPullResponse.newBuilder().addAllReceivedMessages(receivedMessages).build(); + mockSubscriber.addResponse(expectedResponse); + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + int streamAckDeadlineSeconds = 1875467245; + StreamingPullRequest request = + StreamingPullRequest.newBuilder() + .setSubscription(subscription.toString()) + .setStreamAckDeadlineSeconds(streamAckDeadlineSeconds) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.streamingPullCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + @SuppressWarnings("all") + public void streamingPullExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + int streamAckDeadlineSeconds = 1875467245; + StreamingPullRequest request = + StreamingPullRequest.newBuilder() + .setSubscription(subscription.toString()) + .setStreamAckDeadlineSeconds(streamAckDeadlineSeconds) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.streamingPullCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + @SuppressWarnings("all") + public void modifyPushConfigTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + + client.modifyPushConfig(subscription, pushConfig); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ModifyPushConfigRequest actualRequest = (ModifyPushConfigRequest) actualRequests.get(0); + + Assert.assertEquals( + subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertEquals(pushConfig, actualRequest.getPushConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void modifyPushConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + + client.modifyPushConfig(subscription, pushConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listSnapshotsTest() { + String nextPageToken = ""; + Snapshot snapshotsElement = Snapshot.newBuilder().build(); + List snapshots = Arrays.asList(snapshotsElement); + ListSnapshotsResponse expectedResponse = + ListSnapshotsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllSnapshots(snapshots) + .build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectName project = ProjectName.of("[PROJECT]"); + + ListSnapshotsPagedResponse pagedListResponse = client.listSnapshots(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSnapshotsRequest actualRequest = (ListSnapshotsRequest) actualRequests.get(0); + + Assert.assertEquals(project, ProjectName.parse(actualRequest.getProject())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listSnapshotsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectName project = ProjectName.of("[PROJECT]"); + + client.listSnapshots(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void createSnapshotTest() { + ProjectSnapshotName name2 = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + Snapshot expectedResponse = + Snapshot.newBuilder().setName(name2.toString()).setTopic(topic.toString()).build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + Snapshot actualResponse = client.createSnapshot(name, subscription); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSnapshotRequest actualRequest = (CreateSnapshotRequest) actualRequests.get(0); + + Assert.assertEquals(name, ProjectSnapshotName.parse(actualRequest.getName())); + Assert.assertEquals( + subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createSnapshotExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + client.createSnapshot(name, subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteSnapshotTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + + client.deleteSnapshot(snapshot); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSnapshotRequest actualRequest = (DeleteSnapshotRequest) actualRequests.get(0); + + Assert.assertEquals(snapshot, ProjectSnapshotName.parse(actualRequest.getSnapshot())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteSnapshotExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + + client.deleteSnapshot(snapshot); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void setIamPolicyTest() { + int version = 351608024; + ByteString etag = ByteString.copyFromUtf8("21"); + Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build(); + mockIAMPolicy.addResponse(expectedResponse); + + String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(formattedResource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = (SetIamPolicyRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResource, actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]"); + Policy policy = Policy.newBuilder().build(); + + client.setIamPolicy(formattedResource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getIamPolicyTest() { + int version = 351608024; + ByteString etag = ByteString.copyFromUtf8("21"); + Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build(); + mockIAMPolicy.addResponse(expectedResponse); + + String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]"); + + Policy actualResponse = client.getIamPolicy(formattedResource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = (GetIamPolicyRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResource, actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]"); + + client.getIamPolicy(formattedResource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void testIamPermissionsTest() { + TestIamPermissionsResponse expectedResponse = TestIamPermissionsResponse.newBuilder().build(); + mockIAMPolicy.addResponse(expectedResponse); + + String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = + client.testIamPermissions(formattedResource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = (TestIamPermissionsRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResource, actualRequest.getResource()); + Assert.assertEquals(permissions, actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]"); + List permissions = new ArrayList<>(); + + client.testIamPermissions(formattedResource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java new file mode 100644 index 000000000000..59596160a482 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -0,0 +1,497 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.GeneratedMessageV3; +import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsResponse; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.Topic; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class TopicAdminClientTest { + private static MockPublisher mockPublisher; + private static MockIAMPolicy mockIAMPolicy; + private static MockSubscriber mockSubscriber; + private static MockServiceHelper serviceHelper; + private TopicAdminClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockPublisher = new MockPublisher(); + mockIAMPolicy = new MockIAMPolicy(); + mockSubscriber = new MockSubscriber(); + serviceHelper = + new MockServiceHelper( + "in-process-1", + Arrays.asList(mockPublisher, mockIAMPolicy, mockSubscriber)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + TopicAdminSettings settings = + TopicAdminSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TopicAdminClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createTopicTest() { + ProjectTopicName name2 = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + Topic expectedResponse = Topic.newBuilder().setName(name2.toString()).build(); + mockPublisher.addResponse(expectedResponse); + + ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + + Topic actualResponse = client.createTopic(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + Topic actualRequest = (Topic) actualRequests.get(0); + + Assert.assertEquals(name, ProjectTopicName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + + client.createTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void publishTest() { + String messageIdsElement = "messageIdsElement-744837059"; + List messageIds = Arrays.asList(messageIdsElement); + PublishResponse expectedResponse = + PublishResponse.newBuilder().addAllMessageIds(messageIds).build(); + mockPublisher.addResponse(expectedResponse); + + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + ByteString data = ByteString.copyFromUtf8("-86"); + PubsubMessage messagesElement = PubsubMessage.newBuilder().setData(data).build(); + List messages = Arrays.asList(messagesElement); + + PublishResponse actualResponse = client.publish(topic, messages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PublishRequest actualRequest = (PublishRequest) actualRequests.get(0); + + Assert.assertEquals(topic, ProjectTopicName.parse(actualRequest.getTopic())); + Assert.assertEquals(messages, actualRequest.getMessagesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void publishExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + ByteString data = ByteString.copyFromUtf8("-86"); + PubsubMessage messagesElement = PubsubMessage.newBuilder().setData(data).build(); + List messages = Arrays.asList(messagesElement); + + client.publish(topic, messages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getTopicTest() { + ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + Topic expectedResponse = Topic.newBuilder().setName(name.toString()).build(); + mockPublisher.addResponse(expectedResponse); + + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + + Topic actualResponse = client.getTopic(topic); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTopicRequest actualRequest = (GetTopicRequest) actualRequests.get(0); + + Assert.assertEquals(topic, ProjectTopicName.parse(actualRequest.getTopic())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + + client.getTopic(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listTopicsTest() { + String nextPageToken = ""; + Topic topicsElement = Topic.newBuilder().build(); + List topics = Arrays.asList(topicsElement); + ListTopicsResponse expectedResponse = + ListTopicsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllTopics(topics) + .build(); + mockPublisher.addResponse(expectedResponse); + + ProjectName project = ProjectName.of("[PROJECT]"); + + ListTopicsPagedResponse pagedListResponse = client.listTopics(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicsRequest actualRequest = (ListTopicsRequest) actualRequests.get(0); + + Assert.assertEquals(project, ProjectName.parse(actualRequest.getProject())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listTopicsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + ProjectName project = ProjectName.of("[PROJECT]"); + + client.listTopics(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listTopicSubscriptionsTest() { + String nextPageToken = ""; + ProjectSubscriptionName subscriptionsElement = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List subscriptions = Arrays.asList(subscriptionsElement); + ListTopicSubscriptionsResponse expectedResponse = + ListTopicSubscriptionsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllSubscriptions(ProjectSubscriptionName.toStringList(subscriptions)) + .build(); + mockPublisher.addResponse(expectedResponse); + + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + + ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(topic); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + List resourceNames = + Lists.newArrayList(pagedListResponse.iterateAllAsProjectSubscriptionName()); + Assert.assertEquals(1, resourceNames.size()); + Assert.assertEquals( + ProjectSubscriptionName.parse(expectedResponse.getSubscriptionsList().get(0)), + resourceNames.get(0)); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicSubscriptionsRequest actualRequest = + (ListTopicSubscriptionsRequest) actualRequests.get(0); + + Assert.assertEquals(topic, ProjectTopicName.parse(actualRequest.getTopic())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listTopicSubscriptionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + + client.listTopicSubscriptions(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteTopicTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockPublisher.addResponse(expectedResponse); + + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + + client.deleteTopic(topic); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTopicRequest actualRequest = (DeleteTopicRequest) actualRequests.get(0); + + Assert.assertEquals(topic, ProjectTopicName.parse(actualRequest.getTopic())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + + client.deleteTopic(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void setIamPolicyTest() { + int version = 351608024; + ByteString etag = ByteString.copyFromUtf8("21"); + Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build(); + mockIAMPolicy.addResponse(expectedResponse); + + String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(formattedResource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = (SetIamPolicyRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResource, actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]"); + Policy policy = Policy.newBuilder().build(); + + client.setIamPolicy(formattedResource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getIamPolicyTest() { + int version = 351608024; + ByteString etag = ByteString.copyFromUtf8("21"); + Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build(); + mockIAMPolicy.addResponse(expectedResponse); + + String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]"); + + Policy actualResponse = client.getIamPolicy(formattedResource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = (GetIamPolicyRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResource, actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]"); + + client.getIamPolicy(formattedResource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void testIamPermissionsTest() { + TestIamPermissionsResponse expectedResponse = TestIamPermissionsResponse.newBuilder().build(); + mockIAMPolicy.addResponse(expectedResponse); + + String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = + client.testIamPermissions(formattedResource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = (TestIamPermissionsRequest) actualRequests.get(0); + + Assert.assertEquals(formattedResource, actualRequest.getResource()); + Assert.assertEquals(permissions, actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]"); + List permissions = new ArrayList<>(); + + client.testIamPermissions(formattedResource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java new file mode 100644 index 000000000000..6eb34fa87bee --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java @@ -0,0 +1,65 @@ +/* + * Copyright 2018 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; + +import com.google.common.base.Preconditions; +import com.google.pubsub.v1.ProjectName; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class TopicAdminSmokeTest { + private static final String PROJECT_ENV_NAME = "GOOGLE_CLOUD_PROJECT"; + private static final String LEGACY_PROJECT_ENV_NAME = "GCLOUD_PROJECT"; + + @Test + public void run() { + main(null); + } + + public static void main(String args[]) { + Logger.getLogger("").setLevel(Level.WARNING); + try { + executeNoCatch(getProjectId()); + System.out.println("OK"); + } catch (Exception e) { + System.err.println("Failed with exception:"); + e.printStackTrace(System.err); + System.exit(1); + } + } + + public static void executeNoCatch(String projectId) throws Exception { + try (TopicAdminClient client = TopicAdminClient.create()) { + ProjectName project = ProjectName.of(projectId); + + ListTopicsPagedResponse pagedResponse = client.listTopics(project); + } + } + + private static String getProjectId() { + String projectId = System.getProperty(PROJECT_ENV_NAME, System.getenv(PROJECT_ENV_NAME)); + if (projectId == null) { + projectId = + System.getProperty(LEGACY_PROJECT_ENV_NAME, System.getenv(LEGACY_PROJECT_ENV_NAME)); + } + Preconditions.checkArgument(projectId != null, "A project ID is required."); + return projectId; + } +} diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 59b104028970..6f254b8449a7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 0.11.1-SNAPSHOT + 0.12.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc - google-api-grpc-pom - 0.11.1-SNAPSHOT + google-api-grpc + 0.12.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4f6013c4b52e..33ee59ca88b9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 0.11.1-SNAPSHOT + 0.12.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc - google-api-grpc-pom - 0.11.1-SNAPSHOT + google-api-grpc + 0.12.1-SNAPSHOT From f93eec5f8d6604626d31a43eb7df45954feb3fa8 Mon Sep 17 00:00:00 2001 From: Steven Tran <35081873+stetra@users.noreply.github.com> Date: Thu, 17 May 2018 14:34:52 -0700 Subject: [PATCH 0004/2363] Update pubsub sample links (#3285) --- java-pubsub/google-cloud-pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index dd6cb3b0b6c3..e17b587ebd87 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -196,7 +196,7 @@ try { ``` #### Complete source code -In [CreateTopicAndPublishMessages.java](../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. +In [CreateTopicAndPublishMessages.java](../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. Transport --------- From df297a980366f4ddd1f85b6bdf9999d0e22ac6af Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Thu, 17 May 2018 16:00:08 -0700 Subject: [PATCH 0005/2363] Regenerate gapic clients, add IoT and Web Security Scanner clients (#3282) Also remove beta packages for dlp, as they are removed from googleapis. IoT packages were moved from `cloudiot` to just `iot`. Also regenerate clients with @BetaApi annotation for LRO-specific code. --- .../cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java | 2 ++ .../cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index d5782487f5cd..12e3350069cd 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -71,6 +71,8 @@ public UnaryCallable createBatchingCa grpcCallSettings, batchingCallSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 34a596101833..22f77732138d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -71,6 +71,8 @@ public UnaryCallable createBatchingCa grpcCallSettings, batchingCallSettings, clientContext); } + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( From b9d26421f2c1d6199405551db65aa094deffeeff Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Fri, 18 May 2018 10:01:00 -0700 Subject: [PATCH 0006/2363] Bump version to 0.48.0 release (#3288) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index e17b587ebd87..3bcba6446be5 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -24,16 +24,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 0.47.0-beta + 0.48.0-beta ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:0.47.0-beta' +compile 'com.google.cloud:google-cloud-pubsub:0.48.0-beta' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "0.47.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "0.48.0-beta" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9df6d8835a7f..c4ffd8cf512c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 0.47.1-beta-SNAPSHOT + 0.48.0-beta jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.47.1-alpha-SNAPSHOT + 0.48.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6f254b8449a7..ce83a36c8d8b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 0.12.1-SNAPSHOT + 0.13.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.12.1-SNAPSHOT + 0.13.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 33ee59ca88b9..71215fd2dd36 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 0.12.1-SNAPSHOT + 0.13.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.12.1-SNAPSHOT + 0.13.0 From dbf9ec8505018e4878f3519d3a2041cbdfcc0749 Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Mon, 21 May 2018 14:01:41 -0700 Subject: [PATCH 0007/2363] Post-release cleanup and fixes (specific to recent repository restructure) (#3290) 1) Fix poms deployment config. 2) Fix documentaiton links in readmes. 3) Update main README (remove `goolge-cloud` metapackage reference). 4) Update `RELEASING.md` to reflect changes. The instructions try to avoid having mysterious scripts running in the release process and also ensures that all disruptive operations (actual release/push) are done explicitly and not somewhere in the middle of a mysterious script. 5) Remove `deploy.sh` and `finalize_release.sh` scripts. 6) Fix few previously broken links (bigquerydatatransfer and compute apidocs links) --- java-pubsub/google-cloud-pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 3bcba6446be5..7c52f35873b5 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -246,4 +246,4 @@ Apache 2.0 - See [LICENSE] for more information. [cloud-pubsub]: https://cloud.google.com/pubsub/ [cloud-pubsub-quickstart]: https://cloud.google.com/pubsub/quickstart-console#before-you-begin [pubsub-product-docs]: https://cloud.google.com/pubsub/docs/ -[pubsub-client-lib-docs]: https://googlecloudplatform.github.io/google-cloud-java/latest/apidocs/index.html?com/google/cloud/pubsub/v1/package-summary.html +[pubsub-client-lib-docs]: https://googlecloudplatform.github.io/google-cloud-java/google-cloud-clients/apidocs/index.html?com/google/cloud/pubsub/v1/package-summary.html From a3c0306f8ee523a5293ad653caaaf2edc60c8a24 Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Mon, 21 May 2018 14:56:28 -0700 Subject: [PATCH 0008/2363] Bump version to 0.48.1-SNASPHOT for development (#3294) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c4ffd8cf512c..4fbd1cc99921 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 0.48.0-beta + 0.48.1-beta-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.48.0-alpha + 0.48.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ce83a36c8d8b..bd70a06b9891 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 0.13.0 + 0.13.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.13.0 + 0.13.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 71215fd2dd36..dd04bb795525 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 0.13.0 + 0.13.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.13.0 + 0.13.1-SNAPSHOT From c6f007595843257c846dea1ab60f96756ccb1df4 Mon Sep 17 00:00:00 2001 From: neozwu Date: Thu, 24 May 2018 10:13:56 -0700 Subject: [PATCH 0009/2363] release 0.49.0 (#3310) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 7c52f35873b5..ee85f1e4018a 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -24,16 +24,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 0.48.0-beta + 1.31.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:0.48.0-beta' +compile 'com.google.cloud:google-cloud-pubsub:1.31.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "0.48.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.31.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4fbd1cc99921..42ff0011d3c7 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 0.48.1-beta-SNAPSHOT + 1.31.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.48.1-alpha-SNAPSHOT + 0.49.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bd70a06b9891..d488542320a4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 0.13.1-SNAPSHOT + 1.13.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.13.1-SNAPSHOT + 0.14.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index dd04bb795525..5fea0f556956 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 0.13.1-SNAPSHOT + 1.13.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.13.1-SNAPSHOT + 0.14.0 From 25fd7fddc383db838a4e84ce0bd9113f88d7d8f7 Mon Sep 17 00:00:00 2001 From: neozwu Date: Thu, 24 May 2018 11:10:53 -0700 Subject: [PATCH 0010/2363] bump version for development (#3311) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 42ff0011d3c7..0a30696eb755 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.31.0 + 1.31.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.49.0-alpha + 0.49.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d488542320a4..c8cf4e95269a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.13.0 + 1.13.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.14.0 + 0.14.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5fea0f556956..2b5e6bbd1963 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.13.0 + 1.13.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.14.0 + 0.14.1-SNAPSHOT From c95a62ad51baddb9274b27afc5cfb9f065c6e9aa Mon Sep 17 00:00:00 2001 From: Dan O'Meara Date: Fri, 25 May 2018 00:49:58 +0000 Subject: [PATCH 0011/2363] Remove note about client surface changing --- java-pubsub/google-cloud-pubsub/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index ee85f1e4018a..5ce6b54473a2 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -12,9 +12,6 @@ Java idiomatic client for [Google Cloud Pub/Sub][cloud-pubsub]. - [Product Documentation][pubsub-product-docs] - [Client Library Documentation][pubsub-client-lib-docs] -> Note: This client is a work-in-progress, and may occasionally -> make backwards-incompatible changes. - Quickstart ---------- From c4892913ebf2926ea7aecef691bc6db71ec150e4 Mon Sep 17 00:00:00 2001 From: neozwu Date: Fri, 1 Jun 2018 10:55:00 -0700 Subject: [PATCH 0012/2363] fix example links (#3328) --- java-pubsub/google-cloud-pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 5ce6b54473a2..64d6edb627ec 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -193,7 +193,7 @@ try { ``` #### Complete source code -In [CreateTopicAndPublishMessages.java](../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. +In [CreateTopicAndPublishMessages.java](../../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](../../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. Transport --------- From 6f598c5b3fe1597c14eee4c35ffb392cbc7c489b Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Fri, 1 Jun 2018 13:15:13 -0700 Subject: [PATCH 0013/2363] Update gax-java, api-common dependecies to latest (#3335) * update gax deps to latest * remove ResourceNameType, update api-common to 1.6, update jsr to 3.0.2 * regenerate grpc/proto packages using new protoc-gapic-p: --- .../google/pubsub/v1/AcknowledgeRequest.java | 5 +-- .../pubsub/v1/CreateSnapshotRequest.java | 5 +-- .../pubsub/v1/DeleteSnapshotRequest.java | 5 +-- .../pubsub/v1/DeleteSubscriptionRequest.java | 5 +-- .../google/pubsub/v1/DeleteTopicRequest.java | 5 +-- .../com/google/pubsub/v1/DeletedTopic.java | 9 ----- .../pubsub/v1/GetSubscriptionRequest.java | 5 +-- .../com/google/pubsub/v1/GetTopicRequest.java | 5 +-- .../pubsub/v1/ListSnapshotsRequest.java | 5 +-- .../pubsub/v1/ListSnapshotsResponse.java | 5 +-- .../pubsub/v1/ListSubscriptionsRequest.java | 5 +-- .../pubsub/v1/ListSubscriptionsResponse.java | 5 +-- .../v1/ListTopicSubscriptionsRequest.java | 5 +-- .../v1/ListTopicSubscriptionsResponse.java | 5 +-- .../google/pubsub/v1/ListTopicsRequest.java | 5 +-- .../google/pubsub/v1/ListTopicsResponse.java | 5 +-- .../pubsub/v1/ModifyAckDeadlineRequest.java | 5 +-- .../pubsub/v1/ModifyPushConfigRequest.java | 5 +-- .../com/google/pubsub/v1/ProjectName.java | 9 ----- .../google/pubsub/v1/ProjectSnapshotName.java | 9 ----- .../pubsub/v1/ProjectSubscriptionName.java | 9 ----- .../google/pubsub/v1/ProjectTopicName.java | 9 ----- .../com/google/pubsub/v1/PublishRequest.java | 5 +-- .../com/google/pubsub/v1/PublishResponse.java | 5 +-- .../com/google/pubsub/v1/PubsubMessage.java | 5 +-- .../com/google/pubsub/v1/PubsubProto.java | 34 +++++++++---------- .../com/google/pubsub/v1/PullRequest.java | 5 +-- .../com/google/pubsub/v1/PullResponse.java | 5 +-- .../java/com/google/pubsub/v1/PushConfig.java | 5 +-- .../com/google/pubsub/v1/ReceivedMessage.java | 5 +-- .../com/google/pubsub/v1/SeekRequest.java | 5 +-- .../com/google/pubsub/v1/SeekResponse.java | 5 +-- .../java/com/google/pubsub/v1/Snapshot.java | 5 +-- .../pubsub/v1/StreamingPullRequest.java | 5 +-- .../pubsub/v1/StreamingPullResponse.java | 5 +-- .../com/google/pubsub/v1/Subscription.java | 5 +-- .../main/java/com/google/pubsub/v1/Topic.java | 5 +-- .../google/pubsub/v1/UntypedTopicName.java | 9 ----- .../pubsub/v1/UpdateSnapshotRequest.java | 5 +-- .../pubsub/v1/UpdateSubscriptionRequest.java | 5 +-- .../google/pubsub/v1/UpdateTopicRequest.java | 5 +-- 41 files changed, 51 insertions(+), 207 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index b6f38ea1d079..70c45825b8ac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -34,9 +34,6 @@ private AcknowledgeRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -778,7 +775,7 @@ public AcknowledgeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AcknowledgeRequest(input, extensionRegistry); + return new AcknowledgeRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index f6374d302c9a..701cff6bc463 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -34,9 +34,6 @@ private CreateSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -770,7 +767,7 @@ public CreateSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSnapshotRequest(input, extensionRegistry); + return new CreateSnapshotRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 6b92fdcea2b9..8e05d5535139 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -33,9 +33,6 @@ private DeleteSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -538,7 +535,7 @@ public DeleteSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSnapshotRequest(input, extensionRegistry); + return new DeleteSnapshotRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 67c8fe3977f4..2712f7b0aedd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -33,9 +33,6 @@ private DeleteSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -538,7 +535,7 @@ public DeleteSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSubscriptionRequest(input, extensionRegistry); + return new DeleteSubscriptionRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 31e7001affad..893570ab861f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -33,9 +33,6 @@ private DeleteTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -538,7 +535,7 @@ public DeleteTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTopicRequest(input, extensionRegistry); + return new DeleteTopicRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java index b8026eb550c2..6a01b4ff09a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java @@ -15,7 +15,6 @@ package com.google.pubsub.v1; import com.google.api.resourcenames.ResourceName; -import com.google.api.resourcenames.ResourceNameType; import com.google.common.collect.ImmutableMap; import java.util.Map; @@ -52,14 +51,6 @@ public String getFieldValue(String fieldName) { return valueMap.get(fieldName); } - /** - * @deprecated This method is only present to satisfy the ResourceName interface. - */ - @Deprecated - public ResourceNameType getType() { - throw new UnsupportedOperationException("DeletedTopic.getType() not supported"); - } - @Override public String toString() { return FIXED_VALUE; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 37448712e4db..750eaf5a9d13 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -33,9 +33,6 @@ private GetSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -538,7 +535,7 @@ public GetSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSubscriptionRequest(input, extensionRegistry); + return new GetSubscriptionRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index ee0049e46ff7..413a9aec9a73 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -33,9 +33,6 @@ private GetTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -538,7 +535,7 @@ public GetTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTopicRequest(input, extensionRegistry); + return new GetTopicRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index cdee470682ec..5b2ce8d90217 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -35,9 +35,6 @@ private ListSnapshotsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -781,7 +778,7 @@ public ListSnapshotsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotsRequest(input, extensionRegistry); + return new ListSnapshotsRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 3b313dfe5f30..33757b43367f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -34,9 +34,6 @@ private ListSnapshotsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -978,7 +975,7 @@ public ListSnapshotsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotsResponse(input, extensionRegistry); + return new ListSnapshotsResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 006c976c8b4c..5100a0e14cbc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -35,9 +35,6 @@ private ListSubscriptionsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -781,7 +778,7 @@ public ListSubscriptionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSubscriptionsRequest(input, extensionRegistry); + return new ListSubscriptionsRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 504ee6f7c8a3..e5d36b843a19 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -34,9 +34,6 @@ private ListSubscriptionsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -985,7 +982,7 @@ public ListSubscriptionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSubscriptionsResponse(input, extensionRegistry); + return new ListSubscriptionsResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index ad2c68df8b0a..56eed7315bb3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -35,9 +35,6 @@ private ListTopicSubscriptionsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -781,7 +778,7 @@ public ListTopicSubscriptionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSubscriptionsRequest(input, extensionRegistry); + return new ListTopicSubscriptionsRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index b4065286bf25..4c2d99a2dd7e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -34,9 +34,6 @@ private ListTopicSubscriptionsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -772,7 +769,7 @@ public ListTopicSubscriptionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSubscriptionsResponse(input, extensionRegistry); + return new ListTopicSubscriptionsResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 3d3f28c59587..d3805cecf8f1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -35,9 +35,6 @@ private ListTopicsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -781,7 +778,7 @@ public ListTopicsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicsRequest(input, extensionRegistry); + return new ListTopicsRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index e0666d18ae08..2bfb90b1de3b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -34,9 +34,6 @@ private ListTopicsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -978,7 +975,7 @@ public ListTopicsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicsResponse(input, extensionRegistry); + return new ListTopicsResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index a33954d319a8..90da0e1ed7d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -35,9 +35,6 @@ private ModifyAckDeadlineRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -863,7 +860,7 @@ public ModifyAckDeadlineRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyAckDeadlineRequest(input, extensionRegistry); + return new ModifyAckDeadlineRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index f448e439183c..2e2df6cdb5f4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -33,9 +33,6 @@ private ModifyPushConfigRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -815,7 +812,7 @@ public ModifyPushConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyPushConfigRequest(input, extensionRegistry); + return new ModifyPushConfigRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index f9ef6a4eab23..ff6b421e7f8b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -18,7 +18,6 @@ import com.google.common.collect.ImmutableMap; import com.google.api.pathtemplate.PathTemplate; import com.google.api.resourcenames.ResourceName; -import com.google.api.resourcenames.ResourceNameType; import java.util.Map; import java.util.ArrayList; import java.util.List; @@ -113,14 +112,6 @@ public String getFieldValue(String fieldName) { return getFieldValuesMap().get(fieldName); } - /** - * @deprecated This method is only present to satisfy the ResourceName interface. - */ - @Deprecated - public ResourceNameType getType() { - throw new UnsupportedOperationException("ProjectName.getType() not supported"); - } - @Override public String toString() { return PATH_TEMPLATE.instantiate("project", project); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java index 7ee9e5a041cb..c0cbcd22cf9f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java @@ -18,7 +18,6 @@ import com.google.common.collect.ImmutableMap; import com.google.api.pathtemplate.PathTemplate; import com.google.api.resourcenames.ResourceName; -import com.google.api.resourcenames.ResourceNameType; import java.util.Map; import java.util.ArrayList; import java.util.List; @@ -122,14 +121,6 @@ public String getFieldValue(String fieldName) { return getFieldValuesMap().get(fieldName); } - /** - * @deprecated This method is only present to satisfy the ResourceName interface. - */ - @Deprecated - public ResourceNameType getType() { - throw new UnsupportedOperationException("ProjectSnapshotName.getType() not supported"); - } - @Override public String toString() { return PATH_TEMPLATE.instantiate("project", project, "snapshot", snapshot); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java index 203e4360f83f..7d864b366273 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java @@ -18,7 +18,6 @@ import com.google.common.collect.ImmutableMap; import com.google.api.pathtemplate.PathTemplate; import com.google.api.resourcenames.ResourceName; -import com.google.api.resourcenames.ResourceNameType; import java.util.Map; import java.util.ArrayList; import java.util.List; @@ -122,14 +121,6 @@ public String getFieldValue(String fieldName) { return getFieldValuesMap().get(fieldName); } - /** - * @deprecated This method is only present to satisfy the ResourceName interface. - */ - @Deprecated - public ResourceNameType getType() { - throw new UnsupportedOperationException("ProjectSubscriptionName.getType() not supported"); - } - @Override public String toString() { return PATH_TEMPLATE.instantiate("project", project, "subscription", subscription); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java index 5438e96e5cb7..d154b2aaf5e1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java @@ -18,7 +18,6 @@ import com.google.common.collect.ImmutableMap; import com.google.api.pathtemplate.PathTemplate; import com.google.api.resourcenames.ResourceName; -import com.google.api.resourcenames.ResourceNameType; import java.util.Map; import java.util.ArrayList; import java.util.List; @@ -122,14 +121,6 @@ public String getFieldValue(String fieldName) { return getFieldValuesMap().get(fieldName); } - /** - * @deprecated This method is only present to satisfy the ResourceName interface. - */ - @Deprecated - public ResourceNameType getType() { - throw new UnsupportedOperationException("ProjectTopicName.getType() not supported"); - } - @Override public String toString() { return PATH_TEMPLATE.instantiate("project", project, "topic", topic); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index a95e30a40df7..83bb1a7a6410 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -34,9 +34,6 @@ private PublishRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -978,7 +975,7 @@ public PublishRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishRequest(input, extensionRegistry); + return new PublishRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index d59fd9694aaf..f5a167742930 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -33,9 +33,6 @@ private PublishResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -626,7 +623,7 @@ public PublishResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishResponse(input, extensionRegistry); + return new PublishResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 4910321a2293..8229f3bd9ccc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -35,9 +35,6 @@ private PubsubMessage( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1205,7 +1202,7 @@ public PubsubMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PubsubMessage(input, extensionRegistry); + return new PubsubMessage(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 707fe8b41799..ec1e675466fa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -227,7 +227,7 @@ public static void registerAllExtensions( "\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEn" + "try\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + "\030\002 \001(\t:\0028\001\"\333\001\n\rPubsubMessage\022\014\n\004data\030\001 \001" + - "(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub.v" + + "(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub.v", "1.PubsubMessage.AttributesEntry\022\022\n\nmessa" + "ge_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.goog" + "le.protobuf.Timestamp\0321\n\017AttributesEntry" + @@ -237,7 +237,7 @@ public static void registerAllExtensions( "v1.Topic\022/\n\013update_mask\030\002 \001(\0132\032.google.p" + "rotobuf.FieldMask\"R\n\016PublishRequest\022\r\n\005t" + "opic\030\001 \001(\t\0221\n\010messages\030\002 \003(\0132\037.google.pu" + - "bsub.v1.PubsubMessage\"&\n\017PublishResponse" + + "bsub.v1.PubsubMessage\"&\n\017PublishResponse", "\022\023\n\013message_ids\030\001 \003(\t\"K\n\021ListTopicsReque" + "st\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022" + "\n\npage_token\030\003 \001(\t\"V\n\022ListTopicsResponse" + @@ -247,7 +247,7 @@ public static void registerAllExtensions( "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036Lis" + "tTopicSubscriptionsResponse\022\025\n\rsubscript" + "ions\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n\022D" + - "eleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\305\002\n\014Sub" + + "eleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\305\002\n\014Sub", "scription\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\0221" + "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" + "ushConfig\022\034\n\024ack_deadline_seconds\030\005 \001(\005\022" + @@ -257,7 +257,7 @@ public static void registerAllExtensions( "ubsub.v1.Subscription.LabelsEntry\032-\n\013Lab" + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + "\"\230\001\n\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@" + - "\n\nattributes\030\002 \003(\0132,.google.pubsub.v1.Pu" + + "\n\nattributes\030\002 \003(\0132,.google.pubsub.v1.Pu", "shConfig.AttributesEntry\0321\n\017AttributesEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\017R" + "eceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007messag" + @@ -267,7 +267,7 @@ public static void registerAllExtensions( "\n\014subscription\030\001 \001(\0132\036.google.pubsub.v1." + "Subscription\022/\n\013update_mask\030\002 \001(\0132\032.goog" + "le.protobuf.FieldMask\"R\n\030ListSubscriptio" + - "nsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030" + + "nsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030", "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubscri" + "ptionsResponse\0225\n\rsubscriptions\030\001 \003(\0132\036." + "google.pubsub.v1.Subscription\022\027\n\017next_pa" + @@ -277,7 +277,7 @@ public static void registerAllExtensions( "sh_config\030\002 \001(\0132\034.google.pubsub.v1.PushC" + "onfig\"U\n\013PullRequest\022\024\n\014subscription\030\001 \001" + "(\t\022\032\n\022return_immediately\030\002 \001(\010\022\024\n\014max_me" + - "ssages\030\003 \001(\005\"L\n\014PullResponse\022<\n\021received" + + "ssages\030\003 \001(\005\"L\n\014PullResponse\022<\n\021received", "_messages\030\001 \003(\0132!.google.pubsub.v1.Recei" + "vedMessage\"_\n\030ModifyAckDeadlineRequest\022\024" + "\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t\022\034\n" + @@ -287,7 +287,7 @@ public static void registerAllExtensions( "scription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modi" + "fy_deadline_seconds\030\003 \003(\005\022\037\n\027modify_dead" + "line_ack_ids\030\004 \003(\t\022#\n\033stream_ack_deadlin" + - "e_seconds\030\005 \001(\005\"U\n\025StreamingPullResponse" + + "e_seconds\030\005 \001(\005\"U\n\025StreamingPullResponse", "\022<\n\021received_messages\030\001 \003(\0132!.google.pub" + "sub.v1.ReceivedMessage\";\n\025CreateSnapshot" + "Request\022\014\n\004name\030\001 \001(\t\022\024\n\014subscription\030\002 " + @@ -297,7 +297,7 @@ public static void registerAllExtensions( "ask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030" + "\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.google.prot" + "obuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.google." + - "pubsub.v1.Snapshot.LabelsEntry\032-\n\013Labels" + + "pubsub.v1.Snapshot.LabelsEntry\032-\n\013Labels", "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"N\n" + "\024ListSnapshotsRequest\022\017\n\007project\030\001 \001(\t\022\021" + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n" + @@ -307,7 +307,7 @@ public static void registerAllExtensions( "\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest\022\024\n\014subs" + "cription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.google.pr" + "otobuf.TimestampH\000\022\022\n\010snapshot\030\003 \001(\tH\000B\010" + - "\n\006target\"\016\n\014SeekResponse2\367\020\n\nSubscriber\022" + + "\n\006target\"\016\n\014SeekResponse2\367\020\n\nSubscriber\022", "\206\001\n\022CreateSubscription\022\036.google.pubsub.v" + "1.Subscription\032\036.google.pubsub.v1.Subscr" + "iption\"0\202\323\344\223\002*\032%/v1/{name=projects/*/sub" + @@ -317,7 +317,7 @@ public static void registerAllExtensions( "/v1/{subscription=projects/*/subscriptio" + "ns/*}\022\240\001\n\022UpdateSubscription\022+.google.pu" + "bsub.v1.UpdateSubscriptionRequest\032\036.goog" + - "le.pubsub.v1.Subscription\"=\202\323\344\223\002722/v1/{" + + "le.pubsub.v1.Subscription\"=\202\323\344\223\002722/v1/{", "subscription.name=projects/*/subscriptio" + "ns/*}:\001*\022\234\001\n\021ListSubscriptions\022*.google." + "pubsub.v1.ListSubscriptionsRequest\032+.goo" + @@ -327,7 +327,7 @@ public static void registerAllExtensions( "pubsub.v1.DeleteSubscriptionRequest\032\026.go" + "ogle.protobuf.Empty\"5\202\323\344\223\002/*-/v1/{subscr" + "iption=projects/*/subscriptions/*}\022\243\001\n\021M" + - "odifyAckDeadline\022*.google.pubsub.v1.Modi" + + "odifyAckDeadline\022*.google.pubsub.v1.Modi", "fyAckDeadlineRequest\032\026.google.protobuf.E" + "mpty\"J\202\323\344\223\002D\"?/v1/{subscription=projects" + "/*/subscriptions/*}:modifyAckDeadline:\001*" + @@ -337,7 +337,7 @@ public static void registerAllExtensions( "scriptions/*}:acknowledge:\001*\022\204\001\n\004Pull\022\035." + "google.pubsub.v1.PullRequest\032\036.google.pu" + "bsub.v1.PullResponse\"=\202\323\344\223\0027\"2/v1/{subsc" + - "ription=projects/*/subscriptions/*}:pull" + + "ription=projects/*/subscriptions/*}:pull", ":\001*\022d\n\rStreamingPull\022&.google.pubsub.v1." + "StreamingPullRequest\032\'.google.pubsub.v1." + "StreamingPullResponse(\0010\001\022\240\001\n\020ModifyPush" + @@ -347,7 +347,7 @@ public static void registerAllExtensions( "tions/*}:modifyPushConfig:\001*\022\214\001\n\rListSna" + "pshots\022&.google.pubsub.v1.ListSnapshotsR" + "equest\032\'.google.pubsub.v1.ListSnapshotsR" + - "esponse\"*\202\323\344\223\002$\022\"/v1/{project=projects/*" + + "esponse\"*\202\323\344\223\002$\022\"/v1/{project=projects/*", "}/snapshots\022\203\001\n\016CreateSnapshot\022\'.google." + "pubsub.v1.CreateSnapshotRequest\032\032.google" + ".pubsub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=p" + @@ -357,7 +357,7 @@ public static void registerAllExtensions( "/2*/v1/{snapshot.name=projects/*/snapsho" + "ts/*}:\001*\022\200\001\n\016DeleteSnapshot\022\'.google.pub" + "sub.v1.DeleteSnapshotRequest\032\026.google.pr" + - "otobuf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=proj" + + "otobuf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=proj", "ects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pu" + "bsub.v1.SeekRequest\032\036.google.pubsub.v1.S" + "eekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=p" + @@ -367,7 +367,7 @@ public static void registerAllExtensions( "#\032\036/v1/{name=projects/*/topics/*}:\001*\022}\n\013" + "UpdateTopic\022$.google.pubsub.v1.UpdateTop" + "icRequest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223" + - "\002)2$/v1/{topic.name=projects/*/topics/*}" + + "\002)2$/v1/{topic.name=projects/*/topics/*}", ":\001*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publi" + "shRequest\032!.google.pubsub.v1.PublishResp" + "onse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topi" + @@ -377,7 +377,7 @@ public static void registerAllExtensions( "topics/*}\022\200\001\n\nListTopics\022#.google.pubsub" + ".v1.ListTopicsRequest\032$.google.pubsub.v1" + ".ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{projec" + - "t=projects/*}/topics\022\262\001\n\026ListTopicSubscr" + + "t=projects/*}/topics\022\262\001\n\026ListTopicSubscr", "iptions\022/.google.pubsub.v1.ListTopicSubs" + "criptionsRequest\0320.google.pubsub.v1.List" + "TopicSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/" + @@ -387,7 +387,7 @@ public static void registerAllExtensions( "\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}B" + "\222\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z" + "6google.golang.org/genproto/googleapis/p" + - "ubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub" + + "ubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub", ".V1\312\002\026Google\\Cloud\\PubSub\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index c01a02625b10..aaeecd93372b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -35,9 +35,6 @@ private PullRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -711,7 +708,7 @@ public PullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullRequest(input, extensionRegistry); + return new PullRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 3a4694f88ce5..a8c84a96529d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -33,9 +33,6 @@ private PullResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -882,7 +879,7 @@ public PullResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullResponse(input, extensionRegistry); + return new PullResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index fbb7e018afa9..e0bfc14b592f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -33,9 +33,6 @@ private PushConfig( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1024,7 +1021,7 @@ public PushConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PushConfig(input, extensionRegistry); + return new PushConfig(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index dec18356e9b0..c50f2bfa1310 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -33,9 +33,6 @@ private ReceivedMessage( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -760,7 +757,7 @@ public ReceivedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceivedMessage(input, extensionRegistry); + return new ReceivedMessage(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 9d12081522f7..d2d2b68dbb11 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -33,9 +33,6 @@ private SeekRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1167,7 +1164,7 @@ public SeekRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SeekRequest(input, extensionRegistry); + return new SeekRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 7a3eda234ba4..deb1a5a59eed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -28,9 +28,6 @@ private SeekResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -367,7 +364,7 @@ public SeekResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SeekResponse(input, extensionRegistry); + return new SeekResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 65f04e684884..66a922773e78 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -34,9 +34,6 @@ private Snapshot( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1332,7 +1329,7 @@ public Snapshot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Snapshot(input, extensionRegistry); + return new Snapshot(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 1c9fff29b171..ff90912ace24 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -39,9 +39,6 @@ private StreamingPullRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1494,7 +1491,7 @@ public StreamingPullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullRequest(input, extensionRegistry); + return new StreamingPullRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 6f32fa1685f3..4e460e8a2b17 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -34,9 +34,6 @@ private StreamingPullResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -815,7 +812,7 @@ public StreamingPullResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullResponse(input, extensionRegistry); + return new StreamingPullResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index fad189d8082b..9655e72b010e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -36,9 +36,6 @@ private Subscription( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1826,7 +1823,7 @@ public Subscription parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Subscription(input, extensionRegistry); + return new Subscription(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 6ebdc7c1d2e5..533ce2e2c867 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -33,9 +33,6 @@ private Topic( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -887,7 +884,7 @@ public Topic parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Topic(input, extensionRegistry); + return new Topic(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java index 7197c0348d87..b04f54c5c139 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java @@ -16,7 +16,6 @@ import com.google.common.base.Preconditions; import com.google.api.resourcenames.ResourceName; -import com.google.api.resourcenames.ResourceNameType; import com.google.common.collect.ImmutableMap; import java.util.ArrayList; import java.util.List; @@ -80,14 +79,6 @@ public String getFieldValue(String fieldName) { return valueMap.get(fieldName); } - /** - * @deprecated This method is only present to satisfy the ResourceName interface. - */ - @Deprecated - public ResourceNameType getType() { - throw new UnsupportedOperationException("UntypedTopicName.getType() not supported"); - } - @Override public String toString() { return rawValue; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 865b574fe79d..4b59d63f5922 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -32,9 +32,6 @@ private UpdateSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -846,7 +843,7 @@ public UpdateSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSnapshotRequest(input, extensionRegistry); + return new UpdateSnapshotRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 44bc150560ba..c15df7942b7d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -32,9 +32,6 @@ private UpdateSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -846,7 +843,7 @@ public UpdateSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSubscriptionRequest(input, extensionRegistry); + return new UpdateSubscriptionRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index cbe32588bc66..674500dd8cfb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -32,9 +32,6 @@ private UpdateTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -846,7 +843,7 @@ public UpdateTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateTopicRequest(input, extensionRegistry); + return new UpdateTopicRequest(input, extensionRegistry); } }; From 4cd4299011c72a8f124b0a59c5e23a7f7ae832a6 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Fri, 1 Jun 2018 15:04:04 -0700 Subject: [PATCH 0014/2363] Release 0.50.0 (#3337) * Also add texttospeech v1 to versions.txt --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 64d6edb627ec..a3d5fa169fba 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.31.0 + 1.32.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.31.0' +compile 'com.google.cloud:google-cloud-pubsub:1.32.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.32.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 0a30696eb755..1be13c93a8b7 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.31.1-SNAPSHOT + 1.32.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.49.1-alpha-SNAPSHOT + 0.50.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c8cf4e95269a..95218ff5ab7f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.13.1-SNAPSHOT + 1.14.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.14.1-SNAPSHOT + 0.15.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2b5e6bbd1963..aad2a77d374c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.13.1-SNAPSHOT + 1.14.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.14.1-SNAPSHOT + 0.15.0 From e089038ac5db7972f217ecec2fe83deb515928d6 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Fri, 1 Jun 2018 15:14:47 -0700 Subject: [PATCH 0015/2363] Bump version for development (#3338) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1be13c93a8b7..e18abd3c3285 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.32.0 + 1.32.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.50.0-alpha + 0.50.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 95218ff5ab7f..92b776e4c47c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.14.0 + 1.14.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.15.0 + 0.15.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index aad2a77d374c..8afcac292f72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.14.0 + 1.14.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.15.0 + 0.15.1-SNAPSHOT From 3ba9a0e6f540ec58d5f0063d1c5af7a8c593f5ab Mon Sep 17 00:00:00 2001 From: Hanzhen Yi <33737743+hzyi-google@users.noreply.github.com> Date: Mon, 4 Jun 2018 15:53:42 -0700 Subject: [PATCH 0016/2363] Update README.md (#3341) Fix pubsub README links --- java-pubsub/google-cloud-pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index a3d5fa169fba..07c6b31f7c56 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -193,7 +193,7 @@ try { ``` #### Complete source code -In [CreateTopicAndPublishMessages.java](../../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](../../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. +In [CreateTopicAndPublishMessages.java](../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. Transport --------- From 7afb0549c9cd3e769706a65fda3af12d3b78a618 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Thu, 7 Jun 2018 12:32:25 -0700 Subject: [PATCH 0017/2363] regenerate clients (#3354) --- .../google/pubsub/v1/AcknowledgeRequest.java | 5 ++- .../pubsub/v1/CreateSnapshotRequest.java | 5 ++- .../pubsub/v1/DeleteSnapshotRequest.java | 5 ++- .../pubsub/v1/DeleteSubscriptionRequest.java | 5 ++- .../google/pubsub/v1/DeleteTopicRequest.java | 5 ++- .../pubsub/v1/GetSubscriptionRequest.java | 5 ++- .../com/google/pubsub/v1/GetTopicRequest.java | 5 ++- .../pubsub/v1/ListSnapshotsRequest.java | 5 ++- .../pubsub/v1/ListSnapshotsResponse.java | 5 ++- .../pubsub/v1/ListSubscriptionsRequest.java | 5 ++- .../pubsub/v1/ListSubscriptionsResponse.java | 5 ++- .../v1/ListTopicSubscriptionsRequest.java | 5 ++- .../v1/ListTopicSubscriptionsResponse.java | 5 ++- .../google/pubsub/v1/ListTopicsRequest.java | 5 ++- .../google/pubsub/v1/ListTopicsResponse.java | 5 ++- .../pubsub/v1/ModifyAckDeadlineRequest.java | 5 ++- .../pubsub/v1/ModifyPushConfigRequest.java | 5 ++- .../com/google/pubsub/v1/PublishRequest.java | 5 ++- .../com/google/pubsub/v1/PublishResponse.java | 5 ++- .../com/google/pubsub/v1/PubsubMessage.java | 5 ++- .../com/google/pubsub/v1/PubsubProto.java | 34 +++++++++---------- .../com/google/pubsub/v1/PullRequest.java | 5 ++- .../com/google/pubsub/v1/PullResponse.java | 5 ++- .../java/com/google/pubsub/v1/PushConfig.java | 5 ++- .../com/google/pubsub/v1/ReceivedMessage.java | 5 ++- .../com/google/pubsub/v1/SeekRequest.java | 5 ++- .../com/google/pubsub/v1/SeekResponse.java | 5 ++- .../java/com/google/pubsub/v1/Snapshot.java | 5 ++- .../pubsub/v1/StreamingPullRequest.java | 5 ++- .../pubsub/v1/StreamingPullResponse.java | 5 ++- .../com/google/pubsub/v1/Subscription.java | 5 ++- .../main/java/com/google/pubsub/v1/Topic.java | 5 ++- .../pubsub/v1/UpdateSnapshotRequest.java | 5 ++- .../pubsub/v1/UpdateSubscriptionRequest.java | 5 ++- .../google/pubsub/v1/UpdateTopicRequest.java | 5 ++- 35 files changed, 153 insertions(+), 51 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 70c45825b8ac..b6f38ea1d079 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -34,6 +34,9 @@ private AcknowledgeRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -775,7 +778,7 @@ public AcknowledgeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AcknowledgeRequest(input, extensionRegistry); + return new AcknowledgeRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 701cff6bc463..f6374d302c9a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -34,6 +34,9 @@ private CreateSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -767,7 +770,7 @@ public CreateSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSnapshotRequest(input, extensionRegistry); + return new CreateSnapshotRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 8e05d5535139..6b92fdcea2b9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -33,6 +33,9 @@ private DeleteSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -535,7 +538,7 @@ public DeleteSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSnapshotRequest(input, extensionRegistry); + return new DeleteSnapshotRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 2712f7b0aedd..67c8fe3977f4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -33,6 +33,9 @@ private DeleteSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -535,7 +538,7 @@ public DeleteSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSubscriptionRequest(input, extensionRegistry); + return new DeleteSubscriptionRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 893570ab861f..31e7001affad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -33,6 +33,9 @@ private DeleteTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -535,7 +538,7 @@ public DeleteTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTopicRequest(input, extensionRegistry); + return new DeleteTopicRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 750eaf5a9d13..37448712e4db 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -33,6 +33,9 @@ private GetSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -535,7 +538,7 @@ public GetSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSubscriptionRequest(input, extensionRegistry); + return new GetSubscriptionRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 413a9aec9a73..ee0049e46ff7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -33,6 +33,9 @@ private GetTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -535,7 +538,7 @@ public GetTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTopicRequest(input, extensionRegistry); + return new GetTopicRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 5b2ce8d90217..cdee470682ec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -35,6 +35,9 @@ private ListSnapshotsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -778,7 +781,7 @@ public ListSnapshotsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotsRequest(input, extensionRegistry); + return new ListSnapshotsRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 33757b43367f..3b313dfe5f30 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -34,6 +34,9 @@ private ListSnapshotsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -975,7 +978,7 @@ public ListSnapshotsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotsResponse(input, extensionRegistry); + return new ListSnapshotsResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 5100a0e14cbc..006c976c8b4c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -35,6 +35,9 @@ private ListSubscriptionsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -778,7 +781,7 @@ public ListSubscriptionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSubscriptionsRequest(input, extensionRegistry); + return new ListSubscriptionsRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index e5d36b843a19..504ee6f7c8a3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -34,6 +34,9 @@ private ListSubscriptionsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -982,7 +985,7 @@ public ListSubscriptionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSubscriptionsResponse(input, extensionRegistry); + return new ListSubscriptionsResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 56eed7315bb3..ad2c68df8b0a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -35,6 +35,9 @@ private ListTopicSubscriptionsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -778,7 +781,7 @@ public ListTopicSubscriptionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSubscriptionsRequest(input, extensionRegistry); + return new ListTopicSubscriptionsRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 4c2d99a2dd7e..b4065286bf25 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -34,6 +34,9 @@ private ListTopicSubscriptionsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -769,7 +772,7 @@ public ListTopicSubscriptionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSubscriptionsResponse(input, extensionRegistry); + return new ListTopicSubscriptionsResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index d3805cecf8f1..3d3f28c59587 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -35,6 +35,9 @@ private ListTopicsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -778,7 +781,7 @@ public ListTopicsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicsRequest(input, extensionRegistry); + return new ListTopicsRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 2bfb90b1de3b..e0666d18ae08 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -34,6 +34,9 @@ private ListTopicsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -975,7 +978,7 @@ public ListTopicsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicsResponse(input, extensionRegistry); + return new ListTopicsResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 90da0e1ed7d7..a33954d319a8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -35,6 +35,9 @@ private ModifyAckDeadlineRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -860,7 +863,7 @@ public ModifyAckDeadlineRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyAckDeadlineRequest(input, extensionRegistry); + return new ModifyAckDeadlineRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 2e2df6cdb5f4..f448e439183c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -33,6 +33,9 @@ private ModifyPushConfigRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -812,7 +815,7 @@ public ModifyPushConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyPushConfigRequest(input, extensionRegistry); + return new ModifyPushConfigRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 83bb1a7a6410..a95e30a40df7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -34,6 +34,9 @@ private PublishRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -975,7 +978,7 @@ public PublishRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishRequest(input, extensionRegistry); + return new PublishRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index f5a167742930..d59fd9694aaf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -33,6 +33,9 @@ private PublishResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -623,7 +626,7 @@ public PublishResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishResponse(input, extensionRegistry); + return new PublishResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 8229f3bd9ccc..4910321a2293 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -35,6 +35,9 @@ private PubsubMessage( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1202,7 +1205,7 @@ public PubsubMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PubsubMessage(input, extensionRegistry); + return new PubsubMessage(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index ec1e675466fa..707fe8b41799 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -227,7 +227,7 @@ public static void registerAllExtensions( "\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEn" + "try\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + "\030\002 \001(\t:\0028\001\"\333\001\n\rPubsubMessage\022\014\n\004data\030\001 \001" + - "(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub.v", + "(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub.v" + "1.PubsubMessage.AttributesEntry\022\022\n\nmessa" + "ge_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.goog" + "le.protobuf.Timestamp\0321\n\017AttributesEntry" + @@ -237,7 +237,7 @@ public static void registerAllExtensions( "v1.Topic\022/\n\013update_mask\030\002 \001(\0132\032.google.p" + "rotobuf.FieldMask\"R\n\016PublishRequest\022\r\n\005t" + "opic\030\001 \001(\t\0221\n\010messages\030\002 \003(\0132\037.google.pu" + - "bsub.v1.PubsubMessage\"&\n\017PublishResponse", + "bsub.v1.PubsubMessage\"&\n\017PublishResponse" + "\022\023\n\013message_ids\030\001 \003(\t\"K\n\021ListTopicsReque" + "st\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022" + "\n\npage_token\030\003 \001(\t\"V\n\022ListTopicsResponse" + @@ -247,7 +247,7 @@ public static void registerAllExtensions( "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036Lis" + "tTopicSubscriptionsResponse\022\025\n\rsubscript" + "ions\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n\022D" + - "eleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\305\002\n\014Sub", + "eleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\305\002\n\014Sub" + "scription\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\0221" + "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" + "ushConfig\022\034\n\024ack_deadline_seconds\030\005 \001(\005\022" + @@ -257,7 +257,7 @@ public static void registerAllExtensions( "ubsub.v1.Subscription.LabelsEntry\032-\n\013Lab" + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + "\"\230\001\n\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@" + - "\n\nattributes\030\002 \003(\0132,.google.pubsub.v1.Pu", + "\n\nattributes\030\002 \003(\0132,.google.pubsub.v1.Pu" + "shConfig.AttributesEntry\0321\n\017AttributesEn" + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\017R" + "eceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007messag" + @@ -267,7 +267,7 @@ public static void registerAllExtensions( "\n\014subscription\030\001 \001(\0132\036.google.pubsub.v1." + "Subscription\022/\n\013update_mask\030\002 \001(\0132\032.goog" + "le.protobuf.FieldMask\"R\n\030ListSubscriptio" + - "nsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030", + "nsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030" + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubscri" + "ptionsResponse\0225\n\rsubscriptions\030\001 \003(\0132\036." + "google.pubsub.v1.Subscription\022\027\n\017next_pa" + @@ -277,7 +277,7 @@ public static void registerAllExtensions( "sh_config\030\002 \001(\0132\034.google.pubsub.v1.PushC" + "onfig\"U\n\013PullRequest\022\024\n\014subscription\030\001 \001" + "(\t\022\032\n\022return_immediately\030\002 \001(\010\022\024\n\014max_me" + - "ssages\030\003 \001(\005\"L\n\014PullResponse\022<\n\021received", + "ssages\030\003 \001(\005\"L\n\014PullResponse\022<\n\021received" + "_messages\030\001 \003(\0132!.google.pubsub.v1.Recei" + "vedMessage\"_\n\030ModifyAckDeadlineRequest\022\024" + "\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t\022\034\n" + @@ -287,7 +287,7 @@ public static void registerAllExtensions( "scription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modi" + "fy_deadline_seconds\030\003 \003(\005\022\037\n\027modify_dead" + "line_ack_ids\030\004 \003(\t\022#\n\033stream_ack_deadlin" + - "e_seconds\030\005 \001(\005\"U\n\025StreamingPullResponse", + "e_seconds\030\005 \001(\005\"U\n\025StreamingPullResponse" + "\022<\n\021received_messages\030\001 \003(\0132!.google.pub" + "sub.v1.ReceivedMessage\";\n\025CreateSnapshot" + "Request\022\014\n\004name\030\001 \001(\t\022\024\n\014subscription\030\002 " + @@ -297,7 +297,7 @@ public static void registerAllExtensions( "ask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030" + "\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.google.prot" + "obuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.google." + - "pubsub.v1.Snapshot.LabelsEntry\032-\n\013Labels", + "pubsub.v1.Snapshot.LabelsEntry\032-\n\013Labels" + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"N\n" + "\024ListSnapshotsRequest\022\017\n\007project\030\001 \001(\t\022\021" + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n" + @@ -307,7 +307,7 @@ public static void registerAllExtensions( "\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest\022\024\n\014subs" + "cription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.google.pr" + "otobuf.TimestampH\000\022\022\n\010snapshot\030\003 \001(\tH\000B\010" + - "\n\006target\"\016\n\014SeekResponse2\367\020\n\nSubscriber\022", + "\n\006target\"\016\n\014SeekResponse2\367\020\n\nSubscriber\022" + "\206\001\n\022CreateSubscription\022\036.google.pubsub.v" + "1.Subscription\032\036.google.pubsub.v1.Subscr" + "iption\"0\202\323\344\223\002*\032%/v1/{name=projects/*/sub" + @@ -317,7 +317,7 @@ public static void registerAllExtensions( "/v1/{subscription=projects/*/subscriptio" + "ns/*}\022\240\001\n\022UpdateSubscription\022+.google.pu" + "bsub.v1.UpdateSubscriptionRequest\032\036.goog" + - "le.pubsub.v1.Subscription\"=\202\323\344\223\002722/v1/{", + "le.pubsub.v1.Subscription\"=\202\323\344\223\002722/v1/{" + "subscription.name=projects/*/subscriptio" + "ns/*}:\001*\022\234\001\n\021ListSubscriptions\022*.google." + "pubsub.v1.ListSubscriptionsRequest\032+.goo" + @@ -327,7 +327,7 @@ public static void registerAllExtensions( "pubsub.v1.DeleteSubscriptionRequest\032\026.go" + "ogle.protobuf.Empty\"5\202\323\344\223\002/*-/v1/{subscr" + "iption=projects/*/subscriptions/*}\022\243\001\n\021M" + - "odifyAckDeadline\022*.google.pubsub.v1.Modi", + "odifyAckDeadline\022*.google.pubsub.v1.Modi" + "fyAckDeadlineRequest\032\026.google.protobuf.E" + "mpty\"J\202\323\344\223\002D\"?/v1/{subscription=projects" + "/*/subscriptions/*}:modifyAckDeadline:\001*" + @@ -337,7 +337,7 @@ public static void registerAllExtensions( "scriptions/*}:acknowledge:\001*\022\204\001\n\004Pull\022\035." + "google.pubsub.v1.PullRequest\032\036.google.pu" + "bsub.v1.PullResponse\"=\202\323\344\223\0027\"2/v1/{subsc" + - "ription=projects/*/subscriptions/*}:pull", + "ription=projects/*/subscriptions/*}:pull" + ":\001*\022d\n\rStreamingPull\022&.google.pubsub.v1." + "StreamingPullRequest\032\'.google.pubsub.v1." + "StreamingPullResponse(\0010\001\022\240\001\n\020ModifyPush" + @@ -347,7 +347,7 @@ public static void registerAllExtensions( "tions/*}:modifyPushConfig:\001*\022\214\001\n\rListSna" + "pshots\022&.google.pubsub.v1.ListSnapshotsR" + "equest\032\'.google.pubsub.v1.ListSnapshotsR" + - "esponse\"*\202\323\344\223\002$\022\"/v1/{project=projects/*", + "esponse\"*\202\323\344\223\002$\022\"/v1/{project=projects/*" + "}/snapshots\022\203\001\n\016CreateSnapshot\022\'.google." + "pubsub.v1.CreateSnapshotRequest\032\032.google" + ".pubsub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=p" + @@ -357,7 +357,7 @@ public static void registerAllExtensions( "/2*/v1/{snapshot.name=projects/*/snapsho" + "ts/*}:\001*\022\200\001\n\016DeleteSnapshot\022\'.google.pub" + "sub.v1.DeleteSnapshotRequest\032\026.google.pr" + - "otobuf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=proj", + "otobuf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=proj" + "ects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pu" + "bsub.v1.SeekRequest\032\036.google.pubsub.v1.S" + "eekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=p" + @@ -367,7 +367,7 @@ public static void registerAllExtensions( "#\032\036/v1/{name=projects/*/topics/*}:\001*\022}\n\013" + "UpdateTopic\022$.google.pubsub.v1.UpdateTop" + "icRequest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223" + - "\002)2$/v1/{topic.name=projects/*/topics/*}", + "\002)2$/v1/{topic.name=projects/*/topics/*}" + ":\001*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publi" + "shRequest\032!.google.pubsub.v1.PublishResp" + "onse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topi" + @@ -377,7 +377,7 @@ public static void registerAllExtensions( "topics/*}\022\200\001\n\nListTopics\022#.google.pubsub" + ".v1.ListTopicsRequest\032$.google.pubsub.v1" + ".ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{projec" + - "t=projects/*}/topics\022\262\001\n\026ListTopicSubscr", + "t=projects/*}/topics\022\262\001\n\026ListTopicSubscr" + "iptions\022/.google.pubsub.v1.ListTopicSubs" + "criptionsRequest\0320.google.pubsub.v1.List" + "TopicSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/" + @@ -387,7 +387,7 @@ public static void registerAllExtensions( "\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}B" + "\222\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z" + "6google.golang.org/genproto/googleapis/p" + - "ubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub", + "ubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub" + ".V1\312\002\026Google\\Cloud\\PubSub\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index aaeecd93372b..c01a02625b10 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -35,6 +35,9 @@ private PullRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -708,7 +711,7 @@ public PullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullRequest(input, extensionRegistry); + return new PullRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index a8c84a96529d..3a4694f88ce5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -33,6 +33,9 @@ private PullResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -879,7 +882,7 @@ public PullResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullResponse(input, extensionRegistry); + return new PullResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index e0bfc14b592f..fbb7e018afa9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -33,6 +33,9 @@ private PushConfig( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1021,7 +1024,7 @@ public PushConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PushConfig(input, extensionRegistry); + return new PushConfig(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index c50f2bfa1310..dec18356e9b0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -33,6 +33,9 @@ private ReceivedMessage( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -757,7 +760,7 @@ public ReceivedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceivedMessage(input, extensionRegistry); + return new ReceivedMessage(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index d2d2b68dbb11..9d12081522f7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -33,6 +33,9 @@ private SeekRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1164,7 +1167,7 @@ public SeekRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SeekRequest(input, extensionRegistry); + return new SeekRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index deb1a5a59eed..7a3eda234ba4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -28,6 +28,9 @@ private SeekResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -364,7 +367,7 @@ public SeekResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SeekResponse(input, extensionRegistry); + return new SeekResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 66a922773e78..65f04e684884 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -34,6 +34,9 @@ private Snapshot( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1329,7 +1332,7 @@ public Snapshot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Snapshot(input, extensionRegistry); + return new Snapshot(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index ff90912ace24..1c9fff29b171 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -39,6 +39,9 @@ private StreamingPullRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1491,7 +1494,7 @@ public StreamingPullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullRequest(input, extensionRegistry); + return new StreamingPullRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 4e460e8a2b17..6f32fa1685f3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -34,6 +34,9 @@ private StreamingPullResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -812,7 +815,7 @@ public StreamingPullResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullResponse(input, extensionRegistry); + return new StreamingPullResponse(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 9655e72b010e..fad189d8082b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -36,6 +36,9 @@ private Subscription( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -1823,7 +1826,7 @@ public Subscription parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Subscription(input, extensionRegistry); + return new Subscription(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 533ce2e2c867..6ebdc7c1d2e5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -33,6 +33,9 @@ private Topic( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -884,7 +887,7 @@ public Topic parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Topic(input, extensionRegistry); + return new Topic(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 4b59d63f5922..865b574fe79d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -32,6 +32,9 @@ private UpdateSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -843,7 +846,7 @@ public UpdateSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSnapshotRequest(input, extensionRegistry); + return new UpdateSnapshotRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index c15df7942b7d..44bc150560ba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -32,6 +32,9 @@ private UpdateSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -843,7 +846,7 @@ public UpdateSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSubscriptionRequest(input, extensionRegistry); + return new UpdateSubscriptionRequest(input, extensionRegistry); } }; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 674500dd8cfb..cbe32588bc66 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -32,6 +32,9 @@ private UpdateTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -843,7 +846,7 @@ public UpdateTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateTopicRequest(input, extensionRegistry); + return new UpdateTopicRequest(input, extensionRegistry); } }; From 0c16f3316811d51fb7d3dd8b13414f8194defa82 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Thu, 7 Jun 2018 16:17:57 -0700 Subject: [PATCH 0018/2363] Release 0.51.0 (#3358) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 07c6b31f7c56..350ed2c68d0e 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.32.0 + 1.33.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.32.0' +compile 'com.google.cloud:google-cloud-pubsub:1.33.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.33.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e18abd3c3285..1c02eb6958a2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.32.1-SNAPSHOT + 1.33.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.50.1-alpha-SNAPSHOT + 0.51.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 92b776e4c47c..db79fa46bfbc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.14.1-SNAPSHOT + 1.15.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.15.1-SNAPSHOT + 0.16.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 8afcac292f72..0c7818cbc1b9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.14.1-SNAPSHOT + 1.15.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.15.1-SNAPSHOT + 0.16.0 From 56e3d0c7e1ef0b36cd77d9f9de36851ae58cf83f Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Fri, 8 Jun 2018 10:55:53 -0700 Subject: [PATCH 0019/2363] bump version for development (#3360) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1c02eb6958a2..d68f9267959a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.33.0 + 1.33.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.51.0-alpha + 0.51.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index db79fa46bfbc..30850e538b21 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.15.0 + 1.15.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.16.0 + 0.16.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0c7818cbc1b9..ae295b061718 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.15.0 + 1.15.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.16.0 + 0.16.1-SNAPSHOT From e896bbd46086b41b3e359fd5fb41f0bd7b495e5e Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 14 Jun 2018 10:56:35 -0700 Subject: [PATCH 0020/2363] Release 0.52.0 (#3376) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 350ed2c68d0e..2823478230d3 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.33.0 + 1.34.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.33.0' +compile 'com.google.cloud:google-cloud-pubsub:1.34.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.34.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d68f9267959a..4b23d7b1b1ff 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.33.1-SNAPSHOT + 1.34.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.51.1-alpha-SNAPSHOT + 0.52.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 30850e538b21..b608e2d406b0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.15.1-SNAPSHOT + 1.16.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.16.1-SNAPSHOT + 0.17.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ae295b061718..9b08ea1f82f3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.15.1-SNAPSHOT + 1.16.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.16.1-SNAPSHOT + 0.17.0 From 39d355e90c084336dbdd77f9b2d68aadd5a578ee Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 14 Jun 2018 14:53:09 -0700 Subject: [PATCH 0021/2363] Bumping to snapshot versions (#3380) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4b23d7b1b1ff..cdd221936dc9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.34.0 + 1.34.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.52.0-alpha + 0.52.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b608e2d406b0..de0551a1e388 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.16.0 + 1.16.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.17.0 + 0.17.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9b08ea1f82f3..b9e5672b69f5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.16.0 + 1.16.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.17.0 + 0.17.1-SNAPSHOT From 864e87a6794fe7e31573e07c1c857331140fa112 Mon Sep 17 00:00:00 2001 From: Hanzhen Yi <33737743+hzyi-google@users.noreply.github.com> Date: Thu, 21 Jun 2018 11:03:10 -0700 Subject: [PATCH 0022/2363] regenerating libraries for release (#3398) * regenerate libraries --- .../pubsub/v1/SubscriptionAdminClient.java | 228 ++--- .../cloud/pubsub/v1/TopicAdminClient.java | 32 +- .../google/cloud/pubsub/v1/package-info.java | 3 +- .../com/google/pubsub/v1/PublisherGrpc.java | 158 +++- .../com/google/pubsub/v1/SubscriberGrpc.java | 363 +++++--- .../pubsub/v1/CreateSnapshotRequest.java | 331 ++++++- .../v1/CreateSnapshotRequestOrBuilder.java | 54 ++ .../pubsub/v1/DeleteSnapshotRequest.java | 10 +- .../google/pubsub/v1/GetSnapshotRequest.java | 565 ++++++++++++ .../v1/GetSnapshotRequestOrBuilder.java | 29 + .../pubsub/v1/ListSnapshotsRequest.java | 10 +- .../pubsub/v1/ListSnapshotsResponse.java | 10 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 808 ++++++++++++++++++ .../ListTopicSnapshotsRequestOrBuilder.java | 60 ++ .../pubsub/v1/ListTopicSnapshotsResponse.java | 799 +++++++++++++++++ .../ListTopicSnapshotsResponseOrBuilder.java | 66 ++ .../pubsub/v1/MessageStoragePolicy.java | 678 +++++++++++++++ .../v1/MessageStoragePolicyOrBuilder.java | 64 ++ .../pubsub/v1/ModifyPushConfigRequest.java | 24 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 6 +- .../com/google/pubsub/v1/PubsubProto.java | 478 ++++++----- .../com/google/pubsub/v1/SeekRequest.java | 10 +- .../java/com/google/pubsub/v1/Snapshot.java | 46 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 9 +- .../com/google/pubsub/v1/Subscription.java | 92 +- .../pubsub/v1/SubscriptionOrBuilder.java | 23 +- .../main/java/com/google/pubsub/v1/Topic.java | 289 +++++++ .../com/google/pubsub/v1/TopicOrBuilder.java | 40 + .../pubsub/v1/UpdateSnapshotRequest.java | 34 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 6 +- .../google/pubsub/v1/UpdateTopicRequest.java | 108 ++- .../v1/UpdateTopicRequestOrBuilder.java | 27 +- .../main/proto/google/pubsub/v1/pubsub.proto | 353 +++++--- 33 files changed, 5110 insertions(+), 703 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 8cf94516900c..ebf86902606b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -68,7 +68,8 @@ // AUTO-GENERATED DOCUMENTATION AND SERVICE /** * Service Description: The service that an application uses to manipulate subscriptions and to - * consume messages from a subscription via the `Pull` method. + * consume messages from a subscription via the `Pull` method or by establishing a bi-directional + * stream using the `StreamingPull` method. * *

To retrieve messages from a subscription, see the Subscriber class. * @@ -194,8 +195,10 @@ public SubscriberStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a subscription to a given topic. If the subscription already exists, returns - * `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. + * Creates a subscription to a given topic. See the <a + * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. 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 @@ -232,9 +235,10 @@ public SubscriberStub getStub() { * and will not be delivered again during that time (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 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. + * `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 @@ -259,8 +263,10 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a subscription to a given topic. If the subscription already exists, returns - * `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. + * Creates a subscription to a given topic. See the <a + * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. 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 @@ -297,9 +303,10 @@ public final Subscription createSubscription( * and will not be delivered again during that time (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 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. + * `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 @@ -321,8 +328,10 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a subscription to a given topic. If the subscription already exists, returns - * `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. + * Creates a subscription to a given topic. See the <a + * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. 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 @@ -353,8 +362,10 @@ public final Subscription createSubscription(Subscription request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a subscription to a given topic. If the subscription already exists, returns - * `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `NOT_FOUND`. + * Creates a subscription to a given topic. See the <a + * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. 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 @@ -480,9 +491,7 @@ public final UnaryCallable getSubscription // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Updates an existing subscription. Note that certain properties of a subscription, such as its - * topic, are not modifiable. NOTE: The style guide requires body: "subscription" instead of body: - * "*". Keeping the latter for internal consistency in V1, however it should be corrected in - * V2. See https://cloud.google.com/apis/design/standard_methods#update for details. + * topic, are not modifiable. * *

Sample code: * @@ -515,9 +524,7 @@ public final Subscription updateSubscription(UpdateSubscriptionRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Updates an existing subscription. Note that certain properties of a subscription, such as its - * topic, are not modifiable. NOTE: The style guide requires body: "subscription" instead of body: - * "*". Keeping the latter for internal consistency in V1, however it should be corrected in - * V2. See https://cloud.google.com/apis/design/standard_methods#update for details. + * topic, are not modifiable. * *

Sample code: * @@ -1185,41 +1192,19 @@ public final UnaryCallable deleteSubscriptionC // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will respond with - * UNIMPLEMENTED errors unless you have been invited to test this feature. Contact - * cloud-pubsub{@literal @}google.com with any questions. - * - *

Establishes a stream with the server, which sends messages down to the client. The client + * 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 `OK` to reassign server-side resources, in which case, the client should re-establish - * the stream. `UNAVAILABLE` may also be returned in the case of a transient error (e.g., a server - * restart). These should also be retried by the client. Flow control can be achieved by - * configuring the underlying RPC channel. + * 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. * *

Sample code: * *


    * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
-   *   ApiStreamObserver<StreamingPullResponse> responseObserver =
-   *       new ApiStreamObserver<StreamingPullResponse>() {
-   *         {@literal @}Override
-   *         public void onNext(StreamingPullResponse response) {
-   *           // Do something when receive a response
-   *         }
-   *
-   *         {@literal @}Override
-   *         public void onError(Throwable t) {
-   *           // Add error-handling
-   *         }
-   *
-   *         {@literal @}Override
-   *         public void onCompleted() {
-   *           // Do something when complete.
-   *         }
-   *       };
-   *   ApiStreamObserver<StreamingRecognizeRequest> requestObserver =
-   *       subscriptionAdminClient.streamingPullCallable().bidiStreamingCall(responseObserver));
+   *   BidiStream<StreamingPullRequest, StreamingPullResponse> bidiStream =
+   *       subscriptionAdminClient.streamingPullCallable().call();
    *
    *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    *   int streamAckDeadlineSeconds = 0;
@@ -1227,7 +1212,10 @@ public final UnaryCallable deleteSubscriptionC
    *     .setSubscription(subscription.toString())
    *     .setStreamAckDeadlineSeconds(streamAckDeadlineSeconds)
    *     .build();
-   *   requestObserver.onNext(request);
+   *   bidiStream.send(request);
+   *   for (StreamingPullResponse response : bidiStream) {
+   *     // Do something when receive a response
+   *   }
    * }
    * 
*/ @@ -1260,7 +1248,7 @@ public final UnaryCallable deleteSubscriptionC * @param pushConfig 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` is not called. + * pausing the subscription if `Pull` or `StreamingPull` is not called. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushConfig pushConfig) { @@ -1297,7 +1285,7 @@ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushCon * @param pushConfig 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` is not called. + * pausing the subscription if `Pull` or `StreamingPull` is not called. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void modifyPushConfig(String subscription, PushConfig pushConfig) { @@ -1371,7 +1359,9 @@ public final UnaryCallable modifyPushConfigCalla // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots. + * Lists the existing snapshots.<br><br> <b>ALPHA:</b> This feature is + * part of an 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. * *

Sample code: * @@ -1398,7 +1388,9 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots. + * Lists the existing snapshots.<br><br> <b>ALPHA:</b> This feature is + * part of an 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. * *

Sample code: * @@ -1422,7 +1414,9 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots. + * Lists the existing snapshots.<br><br> <b>ALPHA:</b> This feature is + * part of an 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. * *

Sample code: * @@ -1447,7 +1441,9 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots. + * Lists the existing snapshots.<br><br> <b>ALPHA:</b> This feature is + * part of an 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. * *

Sample code: * @@ -1472,7 +1468,9 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots. + * Lists the existing snapshots.<br><br> <b>ALPHA:</b> This feature is + * part of an 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. * *

Sample code: * @@ -1503,11 +1501,15 @@ public final UnaryCallable listSnap // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription. If the snapshot already exists, returns - * `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. - * - *

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 + * Creates a snapshot from the requested subscription.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated * in the returned Snapshot object. Note that for REST API requests, you must specify a name in * the request. @@ -1547,11 +1549,15 @@ public final Snapshot createSnapshot( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription. If the snapshot already exists, returns - * `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. - * - *

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 + * Creates a snapshot from the requested subscription.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated * in the returned Snapshot object. Note that for REST API requests, you must specify a name in * the request. @@ -1587,11 +1593,15 @@ public final Snapshot createSnapshot(String name, String subscription) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription. If the snapshot already exists, returns - * `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. - * - *

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 + * Creates a snapshot from the requested subscription.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated * in the returned Snapshot object. Note that for REST API requests, you must specify a name in * the request. @@ -1619,11 +1629,15 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription. If the snapshot already exists, returns - * `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns `NOT_FOUND`. - * - *

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 + * Creates a snapshot from the requested subscription.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated * in the returned Snapshot object. Note that for REST API requests, you must specify a name in * the request. @@ -1650,10 +1664,10 @@ public final UnaryCallable createSnapshotCallab // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates an existing snapshot. Note that certain properties of a snapshot are not modifiable. - * NOTE: The style guide requires body: "snapshot" instead of body: "*". Keeping the latter - * for internal consistency in V1, however it should be corrected in V2. See - * https://cloud.google.com/apis/design/standard_methods#update for details. + * Updates an existing snapshot.<br><br> <b>ALPHA:</b> This feature is + * part of an 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. Note that + * certain properties of a snapshot are not modifiable. * *

Sample code: * @@ -1688,10 +1702,10 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates an existing snapshot. Note that certain properties of a snapshot are not modifiable. - * NOTE: The style guide requires body: "snapshot" instead of body: "*". Keeping the latter - * for internal consistency in V1, however it should be corrected in V2. See - * https://cloud.google.com/apis/design/standard_methods#update for details. + * Updates an existing snapshot.<br><br> <b>ALPHA:</b> This feature is + * part of an 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. Note that + * certain properties of a snapshot are not modifiable. * *

Sample code: * @@ -1725,9 +1739,12 @@ public final UnaryCallable updateSnapshotCallab // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. All messages retained in the snapshot are immediately dropped. - * After a snapshot is deleted, a new one may be created with the same name, but the new one has - * no association with the old snapshot or its subscription, unless the same subscription is + * Removes an existing snapshot. <br><br> <b>ALPHA:</b> This feature is + * part of an 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. When the + * snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a + * snapshot is deleted, a new one may be created with the same name, but the new one has no + * association with the old snapshot or its subscription, unless the same subscription is * specified. * *

Sample code: @@ -1754,9 +1771,12 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. All messages retained in the snapshot are immediately dropped. - * After a snapshot is deleted, a new one may be created with the same name, but the new one has - * no association with the old snapshot or its subscription, unless the same subscription is + * Removes an existing snapshot. <br><br> <b>ALPHA:</b> This feature is + * part of an 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. When the + * snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a + * snapshot is deleted, a new one may be created with the same name, but the new one has no + * association with the old snapshot or its subscription, unless the same subscription is * specified. * *

Sample code: @@ -1781,9 +1801,12 @@ public final void deleteSnapshot(String snapshot) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. All messages retained in the snapshot are immediately dropped. - * After a snapshot is deleted, a new one may be created with the same name, but the new one has - * no association with the old snapshot or its subscription, unless the same subscription is + * Removes an existing snapshot. <br><br> <b>ALPHA:</b> This feature is + * part of an 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. When the + * snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a + * snapshot is deleted, a new one may be created with the same name, but the new one has no + * association with the old snapshot or its subscription, unless the same subscription is * specified. * *

Sample code: @@ -1807,9 +1830,12 @@ private final void deleteSnapshot(DeleteSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. All messages retained in the snapshot are immediately dropped. - * After a snapshot is deleted, a new one may be created with the same name, but the new one has - * no association with the old snapshot or its subscription, unless the same subscription is + * Removes an existing snapshot. <br><br> <b>ALPHA:</b> This feature is + * part of an 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. When the + * snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a + * snapshot is deleted, a new one may be created with the same name, but the new one has no + * association with the old snapshot or its subscription, unless the same subscription is * specified. * *

Sample code: @@ -1833,7 +1859,9 @@ public final UnaryCallable deleteSnapshotCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided - * in the request. + * in the request.<br><br> <b>ALPHA:</b> This feature is part of an 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. * *

Sample code: * @@ -1857,7 +1885,9 @@ public final SeekResponse seek(SeekRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided - * in the request. + * in the request.<br><br> <b>ALPHA:</b> This feature is part of an 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. * *

Sample code: * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 7e74041d0949..142fb81abf70 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -177,7 +177,8 @@ public PublisherStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. + * Creates the given topic with the given name. See the <a + * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. * *

Sample code: * @@ -203,7 +204,8 @@ public final Topic createTopic(ProjectTopicName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. + * Creates the given topic with the given name. See the <a + * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. * *

Sample code: * @@ -229,7 +231,8 @@ public final Topic createTopic(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. + * Creates the given topic with the given name. See the <a + * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. * *

Sample code: * @@ -252,7 +255,8 @@ private final Topic createTopic(Topic request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. + * Creates the given topic with the given name. See the <a + * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. * *

Sample code: * @@ -274,10 +278,7 @@ public final UnaryCallable createTopicCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates an existing topic. Note that certain properties of a topic are not modifiable. Options - * settings follow the style guide: NOTE: The style guide requires body: "topic" instead of body: - * "*". Keeping the latter for internal consistency in V1, however it should be corrected in - * V2. See https://cloud.google.com/apis/design/standard_methods#update for details. + * Updates an existing topic. Note that certain properties of a topic are not modifiable. * *

Sample code: * @@ -302,10 +303,7 @@ public final UnaryCallable createTopicCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates an existing topic. Note that certain properties of a topic are not modifiable. Options - * settings follow the style guide: NOTE: The style guide requires body: "topic" instead of body: - * "*". Keeping the latter for internal consistency in V1, however it should be corrected in - * V2. See https://cloud.google.com/apis/design/standard_methods#update for details. + * Updates an existing topic. Note that certain properties of a topic are not modifiable. * *

Sample code: * @@ -679,7 +677,7 @@ public final UnaryCallable listTopicsCall // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the name of the subscriptions for this topic. + * Lists the names of the subscriptions on this topic. * *

Sample code: * @@ -706,7 +704,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectT // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the name of the subscriptions for this topic. + * Lists the names of the subscriptions on this topic. * *

Sample code: * @@ -731,7 +729,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(String t // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the name of the subscriptions for this topic. + * Lists the names of the subscriptions on this topic. * *

Sample code: * @@ -757,7 +755,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the name of the subscriptions for this topic. + * Lists the names of the subscriptions on this topic. * *

Sample code: * @@ -782,7 +780,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the name of the subscriptions for this topic. + * Lists the names of the subscriptions on this topic. * *

Sample code: * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 49aea90e7ee3..8e653a185a6b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -40,7 +40,8 @@ * ======================= SubscriptionAdminClient ======================= * *

Service Description: The service that an application uses to manipulate subscriptions and to - * consume messages from a subscription via the `Pull` method. + * consume messages from a subscription via the `Pull` method or by establishing a bi-directional + * stream using the `StreamingPull` method. * *

To retrieve messages from a subscription, see the Subscriber class. * diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 6a09dc7801a4..663fbfbbeca6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -254,6 +254,43 @@ com.google.pubsub.v1.ListTopicSubscriptionsResponse> getListTopicSubscriptionsMe return getListTopicSubscriptionsMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListTopicSnapshotsMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_LIST_TOPIC_SNAPSHOTS = getListTopicSnapshotsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getListTopicSnapshotsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getListTopicSnapshotsMethod() { + return getListTopicSnapshotsMethodHelper(); + } + + private static io.grpc.MethodDescriptor getListTopicSnapshotsMethodHelper() { + io.grpc.MethodDescriptor getListTopicSnapshotsMethod; + if ((getListTopicSnapshotsMethod = PublisherGrpc.getListTopicSnapshotsMethod) == null) { + synchronized (PublisherGrpc.class) { + if ((getListTopicSnapshotsMethod = PublisherGrpc.getListTopicSnapshotsMethod) == null) { + PublisherGrpc.getListTopicSnapshotsMethod = getListTopicSnapshotsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Publisher", "ListTopicSnapshots")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance())) + .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopicSnapshots")) + .build(); + } + } + } + return getListTopicSnapshotsMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getDeleteTopicMethod()} instead. public static final io.grpc.MethodDescriptor METHOD_DELETE_TOPIC = getDeleteTopicMethodHelper(); @@ -324,7 +361,8 @@ public static abstract class PublisherImplBase implements io.grpc.BindableServic /** *

-     * Creates the given topic with the given name.
+     * Creates the given topic with the given name. See the
+     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
      * 
*/ public void createTopic(com.google.pubsub.v1.Topic request, @@ -334,12 +372,8 @@ public void createTopic(com.google.pubsub.v1.Topic request, /** *
-     * Updates an existing topic. Note that certain properties of a topic are not
-     * modifiable.  Options settings follow the style guide:
-     * NOTE:  The style guide requires body: "topic" instead of body: "*".
-     * Keeping the latter for internal consistency in V1, however it should be
-     * corrected in V2.  See
-     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * Updates an existing topic. Note that certain properties of a
+     * topic are not modifiable.
      * 
*/ public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, @@ -381,7 +415,7 @@ public void listTopics(com.google.pubsub.v1.ListTopicsRequest request, /** *
-     * Lists the name of the subscriptions for this topic.
+     * Lists the names of the subscriptions on this topic.
      * 
*/ public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request, @@ -389,6 +423,19 @@ public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRe asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethodHelper(), responseObserver); } + /** + *
+     * Lists the names of the snapshots on this topic.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * 
+ */ + public void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListTopicSnapshotsMethodHelper(), responseObserver); + } + /** *
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
@@ -447,6 +494,13 @@ public void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request,
                 com.google.pubsub.v1.ListTopicSubscriptionsRequest,
                 com.google.pubsub.v1.ListTopicSubscriptionsResponse>(
                   this, METHODID_LIST_TOPIC_SUBSCRIPTIONS)))
+          .addMethod(
+            getListTopicSnapshotsMethodHelper(),
+            asyncUnaryCall(
+              new MethodHandlers<
+                com.google.pubsub.v1.ListTopicSnapshotsRequest,
+                com.google.pubsub.v1.ListTopicSnapshotsResponse>(
+                  this, METHODID_LIST_TOPIC_SNAPSHOTS)))
           .addMethod(
             getDeleteTopicMethodHelper(),
             asyncUnaryCall(
@@ -482,7 +536,8 @@ protected PublisherStub build(io.grpc.Channel channel,
 
     /**
      * 
-     * Creates the given topic with the given name.
+     * Creates the given topic with the given name. See the
+     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
      * 
*/ public void createTopic(com.google.pubsub.v1.Topic request, @@ -493,12 +548,8 @@ public void createTopic(com.google.pubsub.v1.Topic request, /** *
-     * Updates an existing topic. Note that certain properties of a topic are not
-     * modifiable.  Options settings follow the style guide:
-     * NOTE:  The style guide requires body: "topic" instead of body: "*".
-     * Keeping the latter for internal consistency in V1, however it should be
-     * corrected in V2.  See
-     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * Updates an existing topic. Note that certain properties of a
+     * topic are not modifiable.
      * 
*/ public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, @@ -544,7 +595,7 @@ public void listTopics(com.google.pubsub.v1.ListTopicsRequest request, /** *
-     * Lists the name of the subscriptions for this topic.
+     * Lists the names of the subscriptions on this topic.
      * 
*/ public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request, @@ -553,6 +604,20 @@ public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRe getChannel().newCall(getListTopicSubscriptionsMethodHelper(), getCallOptions()), request, responseObserver); } + /** + *
+     * Lists the names of the snapshots on this topic.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * 
+ */ + public void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListTopicSnapshotsMethodHelper(), getCallOptions()), request, responseObserver); + } + /** *
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
@@ -593,7 +658,8 @@ protected PublisherBlockingStub build(io.grpc.Channel channel,
 
     /**
      * 
-     * Creates the given topic with the given name.
+     * Creates the given topic with the given name. See the
+     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
      * 
*/ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { @@ -603,12 +669,8 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request /** *
-     * Updates an existing topic. Note that certain properties of a topic are not
-     * modifiable.  Options settings follow the style guide:
-     * NOTE:  The style guide requires body: "topic" instead of body: "*".
-     * Keeping the latter for internal consistency in V1, however it should be
-     * corrected in V2.  See
-     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * Updates an existing topic. Note that certain properties of a
+     * topic are not modifiable.
      * 
*/ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { @@ -650,7 +712,7 @@ public com.google.pubsub.v1.ListTopicsResponse listTopics(com.google.pubsub.v1.L /** *
-     * Lists the name of the subscriptions for this topic.
+     * Lists the names of the subscriptions on this topic.
      * 
*/ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { @@ -658,6 +720,19 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription getChannel(), getListTopicSubscriptionsMethodHelper(), getCallOptions(), request); } + /** + *
+     * Lists the names of the snapshots on this topic.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * 
+ */ + public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request) { + return blockingUnaryCall( + getChannel(), getListTopicSnapshotsMethodHelper(), getCallOptions(), request); + } + /** *
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
@@ -697,7 +772,8 @@ protected PublisherFutureStub build(io.grpc.Channel channel,
 
     /**
      * 
-     * Creates the given topic with the given name.
+     * Creates the given topic with the given name. See the
+     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture createTopic( @@ -708,12 +784,8 @@ public com.google.common.util.concurrent.ListenableFuture - * Updates an existing topic. Note that certain properties of a topic are not - * modifiable. Options settings follow the style guide: - * NOTE: The style guide requires body: "topic" instead of body: "*". - * Keeping the latter for internal consistency in V1, however it should be - * corrected in V2. See - * https://cloud.google.com/apis/design/standard_methods#update for details. + * Updates an existing topic. Note that certain properties of a + * topic are not modifiable. *
*/ public com.google.common.util.concurrent.ListenableFuture updateTopic( @@ -759,7 +831,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Lists the name of the subscriptions for this topic. + * Lists the names of the subscriptions on this topic. *
*/ public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions( @@ -768,6 +840,20 @@ public com.google.common.util.concurrent.ListenableFuture + * Lists the names of the snapshots on this topic.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. + *
+ */ + public com.google.common.util.concurrent.ListenableFuture listTopicSnapshots( + com.google.pubsub.v1.ListTopicSnapshotsRequest request) { + return futureUnaryCall( + getChannel().newCall(getListTopicSnapshotsMethodHelper(), getCallOptions()), request); + } + /** *
      * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
@@ -790,7 +876,8 @@ public com.google.common.util.concurrent.ListenableFuture implements
       io.grpc.stub.ServerCalls.UnaryMethod,
@@ -833,6 +920,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
           serviceImpl.listTopicSubscriptions((com.google.pubsub.v1.ListTopicSubscriptionsRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
+        case METHODID_LIST_TOPIC_SNAPSHOTS:
+          serviceImpl.listTopicSnapshots((com.google.pubsub.v1.ListTopicSnapshotsRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
+          break;
         case METHODID_DELETE_TOPIC:
           serviceImpl.deleteTopic((com.google.pubsub.v1.DeleteTopicRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
@@ -904,6 +995,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
               .addMethod(getGetTopicMethodHelper())
               .addMethod(getListTopicsMethodHelper())
               .addMethod(getListTopicSubscriptionsMethodHelper())
+              .addMethod(getListTopicSnapshotsMethodHelper())
               .addMethod(getDeleteTopicMethodHelper())
               .build();
         }
diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
index 0868ccb28b75..672479db1a01 100644
--- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
+++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
@@ -18,7 +18,8 @@
 /**
  * 
  * The service that an application uses to manipulate subscriptions and to
- * consume messages from a subscription via the `Pull` method.
+ * consume messages from a subscription via the `Pull` method or by
+ * establishing a bi-directional stream using the `StreamingPull` method.
  * 
*/ @javax.annotation.Generated( @@ -402,6 +403,43 @@ com.google.protobuf.Empty> getModifyPushConfigMethodHelper() { return getModifyPushConfigMethod; } @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetSnapshotMethod()} instead. + public static final io.grpc.MethodDescriptor METHOD_GET_SNAPSHOT = getGetSnapshotMethodHelper(); + + private static volatile io.grpc.MethodDescriptor getGetSnapshotMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor getGetSnapshotMethod() { + return getGetSnapshotMethodHelper(); + } + + private static io.grpc.MethodDescriptor getGetSnapshotMethodHelper() { + io.grpc.MethodDescriptor getGetSnapshotMethod; + if ((getGetSnapshotMethod = SubscriberGrpc.getGetSnapshotMethod) == null) { + synchronized (SubscriberGrpc.class) { + if ((getGetSnapshotMethod = SubscriberGrpc.getGetSnapshotMethod) == null) { + SubscriberGrpc.getGetSnapshotMethod = getGetSnapshotMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "google.pubsub.v1.Subscriber", "GetSnapshot")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Snapshot.getDefaultInstance())) + .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSnapshot")) + .build(); + } + } + } + return getGetSnapshotMethod; + } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") @java.lang.Deprecated // Use {@link #getListSnapshotsMethod()} instead. public static final io.grpc.MethodDescriptor METHOD_LIST_SNAPSHOTS = getListSnapshotsMethodHelper(); @@ -613,14 +651,16 @@ public static SubscriberFutureStub newFutureStub( /** *
    * The service that an application uses to manipulate subscriptions and to
-   * consume messages from a subscription via the `Pull` method.
+   * consume messages from a subscription via the `Pull` method or by
+   * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ public static abstract class SubscriberImplBase implements io.grpc.BindableService { /** *
-     * Creates a subscription to a given topic.
+     * Creates a subscription to a given topic. See the
+     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
      * 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
@@ -650,10 +690,6 @@ public void getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request,
      * 
      * Updates an existing subscription. Note that certain properties of a
      * subscription, such as its topic, are not modifiable.
-     * NOTE:  The style guide requires body: "subscription" instead of body: "*".
-     * Keeping the latter for internal consistency in V1, however it should be
-     * corrected in V2.  See
-     * https://cloud.google.com/apis/design/standard_methods#update for details.
      * 
*/ public void updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request, @@ -729,17 +765,13 @@ public void pull(com.google.pubsub.v1.PullRequest request, /** *
-     * (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will
-     * respond with UNIMPLEMENTED errors unless you have been invited to test
-     * this feature. Contact cloud-pubsub@google.com with any questions.
      * 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 `OK` to reassign
-     * server-side resources, in which case, the client should re-establish the
-     * stream. `UNAVAILABLE` may also be returned in the case of a transient error
-     * (e.g., a server restart). These should also be retried by the client. Flow
-     * control can be achieved by configuring the underlying RPC channel.
+     * 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.
      * 
*/ public io.grpc.stub.StreamObserver streamingPull( @@ -763,7 +795,23 @@ public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest reques /** *
-     * Lists the existing snapshots.
+     * Gets the configuration details of a snapshot.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * 
+ */ + public void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetSnapshotMethodHelper(), responseObserver); + } + + /** + *
+     * Lists the existing snapshots.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
      * 
*/ public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, @@ -773,15 +821,21 @@ public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, /** *
-     * Creates a snapshot from the requested subscription.
+     * Creates a snapshot from the requested subscription.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
      * If the snapshot already exists, returns `ALREADY_EXISTS`.
      * If the requested subscription doesn't exist, returns `NOT_FOUND`.
-     * If the name is not provided in the request, the server will assign a random
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
-     * The generated name is populated in the returned Snapshot object.
-     * Note that for REST API requests, you must specify a name in the request.
+     * to the [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated
+     * name is populated in the returned Snapshot object. Note that for REST API
+     * requests, you must specify a name in the request.
      * 
*/ public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, @@ -791,12 +845,11 @@ public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, /** *
-     * Updates an existing snapshot. Note that certain properties of a snapshot
-     * are not modifiable.
-     * NOTE:  The style guide requires body: "snapshot" instead of body: "*".
-     * Keeping the latter for internal consistency in V1, however it should be
-     * corrected in V2.  See
-     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * Updates an existing snapshot.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * Note that certain properties of a snapshot are not modifiable.
      * 
*/ public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, @@ -806,7 +859,11 @@ public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, /** *
-     * Removes an existing snapshot. All messages retained in the snapshot
+     * Removes an existing snapshot. <br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * When the snapshot is deleted, all messages retained in the snapshot
      * are immediately dropped. After a snapshot is deleted, a new one may be
      * created with the same name, but the new one has no association with the old
      * snapshot or its subscription, unless the same subscription is specified.
@@ -820,7 +877,10 @@ public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request,
     /**
      * 
      * Seeks an existing subscription to a point in time or to a given snapshot,
-     * whichever is provided in the request.
+     * whichever is provided in the request.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
      * 
*/ public void seek(com.google.pubsub.v1.SeekRequest request, @@ -900,6 +960,13 @@ public void seek(com.google.pubsub.v1.SeekRequest request, com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>( this, METHODID_MODIFY_PUSH_CONFIG))) + .addMethod( + getGetSnapshotMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSnapshotRequest, + com.google.pubsub.v1.Snapshot>( + this, METHODID_GET_SNAPSHOT))) .addMethod( getListSnapshotsMethodHelper(), asyncUnaryCall( @@ -942,7 +1009,8 @@ public void seek(com.google.pubsub.v1.SeekRequest request, /** *
    * The service that an application uses to manipulate subscriptions and to
-   * consume messages from a subscription via the `Pull` method.
+   * consume messages from a subscription via the `Pull` method or by
+   * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ public static final class SubscriberStub extends io.grpc.stub.AbstractStub { @@ -963,7 +1031,8 @@ protected SubscriberStub build(io.grpc.Channel channel, /** *
-     * Creates a subscription to a given topic.
+     * Creates a subscription to a given topic. See the
+     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
      * 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
@@ -995,10 +1064,6 @@ public void getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request,
      * 
      * Updates an existing subscription. Note that certain properties of a
      * subscription, such as its topic, are not modifiable.
-     * NOTE:  The style guide requires body: "subscription" instead of body: "*".
-     * Keeping the latter for internal consistency in V1, however it should be
-     * corrected in V2.  See
-     * https://cloud.google.com/apis/design/standard_methods#update for details.
      * 
*/ public void updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request, @@ -1080,17 +1145,13 @@ public void pull(com.google.pubsub.v1.PullRequest request, /** *
-     * (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will
-     * respond with UNIMPLEMENTED errors unless you have been invited to test
-     * this feature. Contact cloud-pubsub@google.com with any questions.
      * 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 `OK` to reassign
-     * server-side resources, in which case, the client should re-establish the
-     * stream. `UNAVAILABLE` may also be returned in the case of a transient error
-     * (e.g., a server restart). These should also be retried by the client. Flow
-     * control can be achieved by configuring the underlying RPC channel.
+     * 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.
      * 
*/ public io.grpc.stub.StreamObserver streamingPull( @@ -1116,7 +1177,24 @@ public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest reques /** *
-     * Lists the existing snapshots.
+     * Gets the configuration details of a snapshot.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * 
+ */ + public void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetSnapshotMethodHelper(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the existing snapshots.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
      * 
*/ public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, @@ -1127,15 +1205,21 @@ public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, /** *
-     * Creates a snapshot from the requested subscription.
+     * Creates a snapshot from the requested subscription.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
      * If the snapshot already exists, returns `ALREADY_EXISTS`.
      * If the requested subscription doesn't exist, returns `NOT_FOUND`.
-     * If the name is not provided in the request, the server will assign a random
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
-     * The generated name is populated in the returned Snapshot object.
-     * Note that for REST API requests, you must specify a name in the request.
+     * to the [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated
+     * name is populated in the returned Snapshot object. Note that for REST API
+     * requests, you must specify a name in the request.
      * 
*/ public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, @@ -1146,12 +1230,11 @@ public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, /** *
-     * Updates an existing snapshot. Note that certain properties of a snapshot
-     * are not modifiable.
-     * NOTE:  The style guide requires body: "snapshot" instead of body: "*".
-     * Keeping the latter for internal consistency in V1, however it should be
-     * corrected in V2.  See
-     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * Updates an existing snapshot.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * Note that certain properties of a snapshot are not modifiable.
      * 
*/ public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, @@ -1162,7 +1245,11 @@ public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, /** *
-     * Removes an existing snapshot. All messages retained in the snapshot
+     * Removes an existing snapshot. <br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * When the snapshot is deleted, all messages retained in the snapshot
      * are immediately dropped. After a snapshot is deleted, a new one may be
      * created with the same name, but the new one has no association with the old
      * snapshot or its subscription, unless the same subscription is specified.
@@ -1177,7 +1264,10 @@ public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request,
     /**
      * 
      * Seeks an existing subscription to a point in time or to a given snapshot,
-     * whichever is provided in the request.
+     * whichever is provided in the request.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
      * 
*/ public void seek(com.google.pubsub.v1.SeekRequest request, @@ -1190,7 +1280,8 @@ public void seek(com.google.pubsub.v1.SeekRequest request, /** *
    * The service that an application uses to manipulate subscriptions and to
-   * consume messages from a subscription via the `Pull` method.
+   * consume messages from a subscription via the `Pull` method or by
+   * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ public static final class SubscriberBlockingStub extends io.grpc.stub.AbstractStub { @@ -1211,7 +1302,8 @@ protected SubscriberBlockingStub build(io.grpc.Channel channel, /** *
-     * Creates a subscription to a given topic.
+     * Creates a subscription to a given topic. See the
+     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
      * 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
@@ -1241,10 +1333,6 @@ public com.google.pubsub.v1.Subscription getSubscription(com.google.pubsub.v1.Ge
      * 
      * Updates an existing subscription. Note that certain properties of a
      * subscription, such as its topic, are not modifiable.
-     * NOTE:  The style guide requires body: "subscription" instead of body: "*".
-     * Keeping the latter for internal consistency in V1, however it should be
-     * corrected in V2.  See
-     * https://cloud.google.com/apis/design/standard_methods#update for details.
      * 
*/ public com.google.pubsub.v1.Subscription updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request) { @@ -1334,7 +1422,23 @@ public com.google.protobuf.Empty modifyPushConfig(com.google.pubsub.v1.ModifyPus /** *
-     * Lists the existing snapshots.
+     * Gets the configuration details of a snapshot.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * 
+ */ + public com.google.pubsub.v1.Snapshot getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request) { + return blockingUnaryCall( + getChannel(), getGetSnapshotMethodHelper(), getCallOptions(), request); + } + + /** + *
+     * Lists the existing snapshots.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
      * 
*/ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) { @@ -1344,15 +1448,21 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(com.google.pubsu /** *
-     * Creates a snapshot from the requested subscription.
+     * Creates a snapshot from the requested subscription.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
      * If the snapshot already exists, returns `ALREADY_EXISTS`.
      * If the requested subscription doesn't exist, returns `NOT_FOUND`.
-     * If the name is not provided in the request, the server will assign a random
+     * 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](https://cloud.google.com/pubsub/docs/overview#names).
-     * The generated name is populated in the returned Snapshot object.
-     * Note that for REST API requests, you must specify a name in the request.
+     * to the [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
+     * The generated
+     * name is populated in the returned Snapshot object. Note that for REST API
+     * requests, you must specify a name in the request.
      * 
*/ public com.google.pubsub.v1.Snapshot createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request) { @@ -1362,12 +1472,11 @@ public com.google.pubsub.v1.Snapshot createSnapshot(com.google.pubsub.v1.CreateS /** *
-     * Updates an existing snapshot. Note that certain properties of a snapshot
-     * are not modifiable.
-     * NOTE:  The style guide requires body: "snapshot" instead of body: "*".
-     * Keeping the latter for internal consistency in V1, however it should be
-     * corrected in V2.  See
-     * https://cloud.google.com/apis/design/standard_methods#update for details.
+     * Updates an existing snapshot.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * Note that certain properties of a snapshot are not modifiable.
      * 
*/ public com.google.pubsub.v1.Snapshot updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request) { @@ -1377,7 +1486,11 @@ public com.google.pubsub.v1.Snapshot updateSnapshot(com.google.pubsub.v1.UpdateS /** *
-     * Removes an existing snapshot. All messages retained in the snapshot
+     * Removes an existing snapshot. <br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
+     * When the snapshot is deleted, all messages retained in the snapshot
      * are immediately dropped. After a snapshot is deleted, a new one may be
      * created with the same name, but the new one has no association with the old
      * snapshot or its subscription, unless the same subscription is specified.
@@ -1391,7 +1504,10 @@ public com.google.protobuf.Empty deleteSnapshot(com.google.pubsub.v1.DeleteSnaps
     /**
      * 
      * Seeks an existing subscription to a point in time or to a given snapshot,
-     * whichever is provided in the request.
+     * whichever is provided in the request.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
      * 
*/ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { @@ -1403,7 +1519,8 @@ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest r /** *
    * The service that an application uses to manipulate subscriptions and to
-   * consume messages from a subscription via the `Pull` method.
+   * consume messages from a subscription via the `Pull` method or by
+   * establishing a bi-directional stream using the `StreamingPull` method.
    * 
*/ public static final class SubscriberFutureStub extends io.grpc.stub.AbstractStub { @@ -1424,7 +1541,8 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, /** *
-     * Creates a subscription to a given topic.
+     * Creates a subscription to a given topic. See the
+     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
      * 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
@@ -1456,10 +1574,6 @@ public com.google.common.util.concurrent.ListenableFuture
      * Updates an existing subscription. Note that certain properties of a
      * subscription, such as its topic, are not modifiable.
-     * NOTE:  The style guide requires body: "subscription" instead of body: "*".
-     * Keeping the latter for internal consistency in V1, however it should be
-     * corrected in V2.  See
-     * https://cloud.google.com/apis/design/standard_methods#update for details.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture updateSubscription( @@ -1556,7 +1670,24 @@ public com.google.common.util.concurrent.ListenableFuture - * Lists the existing snapshots. + * Gets the configuration details of a snapshot.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. + *
+ */ + public com.google.common.util.concurrent.ListenableFuture getSnapshot( + com.google.pubsub.v1.GetSnapshotRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetSnapshotMethodHelper(), getCallOptions()), request); + } + + /** + *
+     * Lists the existing snapshots.<br><br>
+     * <b>ALPHA:</b> This feature is part of an 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.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture listSnapshots( @@ -1567,15 +1698,21 @@ public com.google.common.util.concurrent.ListenableFuture - * Creates a snapshot from the requested subscription. + * Creates a snapshot from the requested subscription.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * If the snapshot already exists, returns `ALREADY_EXISTS`. * If the requested subscription doesn't exist, returns `NOT_FOUND`. - * If the name is not provided in the request, the server will assign a random + * 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](https://cloud.google.com/pubsub/docs/overview#names). - * The generated name is populated in the returned Snapshot object. - * Note that for REST API requests, you must specify a name in the request. + * to the [resource name format](https://cloud.google.com/pubsub/docs/overview#names). + * The generated + * name is populated in the returned Snapshot object. Note that for REST API + * requests, you must specify a name in the request. *
*/ public com.google.common.util.concurrent.ListenableFuture createSnapshot( @@ -1586,12 +1723,11 @@ public com.google.common.util.concurrent.ListenableFuture - * Updates an existing snapshot. Note that certain properties of a snapshot - * are not modifiable. - * NOTE: The style guide requires body: "snapshot" instead of body: "*". - * Keeping the latter for internal consistency in V1, however it should be - * corrected in V2. See - * https://cloud.google.com/apis/design/standard_methods#update for details. + * Updates an existing snapshot.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. + * Note that certain properties of a snapshot are not modifiable. *
*/ public com.google.common.util.concurrent.ListenableFuture updateSnapshot( @@ -1602,7 +1738,11 @@ public com.google.common.util.concurrent.ListenableFuture - * Removes an existing snapshot. All messages retained in the snapshot + * Removes an existing snapshot. <br><br> + * <b>ALPHA:</b> This feature is part of an 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. + * When the snapshot is deleted, all messages retained in the snapshot * are immediately dropped. After a snapshot is deleted, a new one may be * created with the same name, but the new one has no association with the old * snapshot or its subscription, unless the same subscription is specified. @@ -1617,7 +1757,10 @@ public com.google.common.util.concurrent.ListenableFuture * Seeks an existing subscription to a point in time or to a given snapshot, - * whichever is provided in the request. + * whichever is provided in the request.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. *
*/ public com.google.common.util.concurrent.ListenableFuture seek( @@ -1636,12 +1779,13 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1696,6 +1840,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.modifyPushConfig((com.google.pubsub.v1.ModifyPushConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_SNAPSHOT: + serviceImpl.getSnapshot((com.google.pubsub.v1.GetSnapshotRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_SNAPSHOTS: serviceImpl.listSnapshots((com.google.pubsub.v1.ListSnapshotsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -1790,6 +1938,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getPullMethodHelper()) .addMethod(getStreamingPullMethodHelper()) .addMethod(getModifyPushConfigMethodHelper()) + .addMethod(getGetSnapshotMethodHelper()) .addMethod(getListSnapshotsMethodHelper()) .addMethod(getCreateSnapshotMethodHelper()) .addMethod(getUpdateSnapshotMethodHelper()) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index f6374d302c9a..2ec18ef7bb53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -5,7 +5,10 @@ /** *
- * Request for the `CreateSnapshot` method.
+ * Request for the `CreateSnapshot` method.<br><br>
+ * <b>ALPHA:</b> This feature is part of an 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.
  * 
* * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} @@ -67,6 +70,19 @@ private CreateSnapshotRequest( subscription_ = s; break; } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,6 +100,17 @@ private CreateSnapshotRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable @@ -91,6 +118,7 @@ private CreateSnapshotRequest( com.google.pubsub.v1.CreateSnapshotRequest.class, com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -199,6 +227,98 @@ public java.lang.String getSubscription() { } } + public static final int LABELS_FIELD_NUMBER = 3; + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 3; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 3; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,6 +337,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getSubscriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_); } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 3); unknownFields.writeTo(output); } @@ -231,6 +357,16 @@ public int getSerializedSize() { if (!getSubscriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_); } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, labels__); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -251,6 +387,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getName()); result = result && getSubscription() .equals(other.getSubscription()); + result = result && internalGetLabels().equals( + other.internalGetLabels()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -266,6 +404,10 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getSubscription().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -361,7 +503,10 @@ protected Builder newBuilderForType( } /** *
-   * Request for the `CreateSnapshot` method.
+   * Request for the `CreateSnapshot` method.<br><br>
+   * <b>ALPHA:</b> This feature is part of an 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.
    * 
* * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} @@ -375,6 +520,28 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable @@ -403,6 +570,7 @@ public Builder clear() { subscription_ = ""; + internalGetMutableLabels().clear(); return this; } @@ -425,8 +593,13 @@ public com.google.pubsub.v1.CreateSnapshotRequest build() { public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; result.name_ = name_; result.subscription_ = subscription_; + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -476,6 +649,8 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { subscription_ = other.subscription_; onChanged(); } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -502,6 +677,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** @@ -740,6 +916,157 @@ public Builder setSubscriptionBytes( onChanged(); return this; } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 3; + */ + + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 3; + */ + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 3; + */ + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 3; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableLabels() { + return internalGetMutableLabels().getMutableMap(); + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 3; + */ + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * User labels.
+     * 
+ * + * map<string, string> labels = 3; + */ + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); + return this; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 8749f67aa2a9..1d7b101782d2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -66,4 +66,58 @@ public interface CreateSnapshotRequestOrBuilder extends */ com.google.protobuf.ByteString getSubscriptionBytes(); + + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 3; + */ + int getLabelsCount(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 3; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 3; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 3; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * User labels.
+   * 
+ * + * map<string, string> labels = 3; + */ + + java.lang.String getLabelsOrThrow( + java.lang.String key); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 6b92fdcea2b9..9b80ba7e6861 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -5,7 +5,10 @@ /** *
- * Request for the `DeleteSnapshot` method.
+ * Request for the `DeleteSnapshot` method.<br><br>
+ * <b>ALPHA:</b> This feature is part of an 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.
  * 
* * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} @@ -280,7 +283,10 @@ protected Builder newBuilderForType( } /** *
-   * Request for the `DeleteSnapshot` method.
+   * Request for the `DeleteSnapshot` method.<br><br>
+   * <b>ALPHA:</b> This feature is part of an 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.
    * 
* * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java new file mode 100644 index 000000000000..af81a90b40e5 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -0,0 +1,565 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the GetSnapshot method.<br><br>
+ * <b>ALPHA:</b> This feature is part of an 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.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest} + */ +public final class GetSnapshotRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSnapshotRequest) + GetSnapshotRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetSnapshotRequest.newBuilder() to construct. + private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetSnapshotRequest() { + snapshot_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetSnapshotRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + snapshot_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.GetSnapshotRequest.class, com.google.pubsub.v1.GetSnapshotRequest.Builder.class); + } + + public static final int SNAPSHOT_FIELD_NUMBER = 1; + private volatile java.lang.Object snapshot_; + /** + *
+   * The name of the snapshot to get.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1; + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshot_ = s; + return s; + } + } + /** + *
+   * The name of the snapshot to get.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1; + */ + public com.google.protobuf.ByteString + getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSnapshotBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSnapshotBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.GetSnapshotRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.GetSnapshotRequest other = (com.google.pubsub.v1.GetSnapshotRequest) obj; + + boolean result = true; + result = result && getSnapshot() + .equals(other.getSnapshot()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.GetSnapshotRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the GetSnapshot method.<br><br>
+   * <b>ALPHA:</b> This feature is part of an 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.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSnapshotRequest) + com.google.pubsub.v1.GetSnapshotRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.GetSnapshotRequest.class, com.google.pubsub.v1.GetSnapshotRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.GetSnapshotRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + snapshot_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + } + + public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.GetSnapshotRequest build() { + com.google.pubsub.v1.GetSnapshotRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { + com.google.pubsub.v1.GetSnapshotRequest result = new com.google.pubsub.v1.GetSnapshotRequest(this); + result.snapshot_ = snapshot_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.GetSnapshotRequest) { + return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.GetSnapshotRequest other) { + if (other == com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance()) return this; + if (!other.getSnapshot().isEmpty()) { + snapshot_ = other.snapshot_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.GetSnapshotRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.GetSnapshotRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object snapshot_ = ""; + /** + *
+     * The name of the snapshot to get.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string snapshot = 1; + */ + public java.lang.String getSnapshot() { + java.lang.Object ref = snapshot_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snapshot_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the snapshot to get.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string snapshot = 1; + */ + public com.google.protobuf.ByteString + getSnapshotBytes() { + java.lang.Object ref = snapshot_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + snapshot_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the snapshot to get.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string snapshot = 1; + */ + public Builder setSnapshot( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + snapshot_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the snapshot to get.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string snapshot = 1; + */ + public Builder clearSnapshot() { + + snapshot_ = getDefaultInstance().getSnapshot(); + onChanged(); + return this; + } + /** + *
+     * The name of the snapshot to get.
+     * Format is `projects/{project}/snapshots/{snap}`.
+     * 
+ * + * string snapshot = 1; + */ + public Builder setSnapshotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + snapshot_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSnapshotRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSnapshotRequest) + private static final com.google.pubsub.v1.GetSnapshotRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSnapshotRequest(); + } + + public static com.google.pubsub.v1.GetSnapshotRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public GetSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSnapshotRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java new file mode 100644 index 000000000000..9de92daf1b22 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface GetSnapshotRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSnapshotRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the snapshot to get.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1; + */ + java.lang.String getSnapshot(); + /** + *
+   * The name of the snapshot to get.
+   * Format is `projects/{project}/snapshots/{snap}`.
+   * 
+ * + * string snapshot = 1; + */ + com.google.protobuf.ByteString + getSnapshotBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index cdee470682ec..58d9416c5a20 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -5,7 +5,10 @@ /** *
- * Request for the `ListSnapshots` method.
+ * Request for the `ListSnapshots` method.<br><br>
+ * <b>ALPHA:</b> This feature is part of an 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.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} @@ -373,7 +376,10 @@ protected Builder newBuilderForType( } /** *
-   * Request for the `ListSnapshots` method.
+   * Request for the `ListSnapshots` method.<br><br>
+   * <b>ALPHA:</b> This feature is part of an 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.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 3b313dfe5f30..3b9331958238 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -5,7 +5,10 @@ /** *
- * Response for the `ListSnapshots` method.
+ * Response for the `ListSnapshots` method.<br><br>
+ * <b>ALPHA:</b> This feature is part of an 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.
  * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} @@ -362,7 +365,10 @@ protected Builder newBuilderForType( } /** *
-   * Response for the `ListSnapshots` method.
+   * Response for the `ListSnapshots` method.<br><br>
+   * <b>ALPHA:</b> This feature is part of an 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.
    * 
* * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java new file mode 100644 index 000000000000..34e695c42c1a --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -0,0 +1,808 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Request for the `ListTopicSnapshots` method.<br><br>
+ * <b>ALPHA:</b> This feature is part of an 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.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest} + */ +public final class ListTopicSnapshotsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsRequest) + ListTopicSnapshotsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListTopicSnapshotsRequest.newBuilder() to construct. + private ListTopicSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTopicSnapshotsRequest() { + topic_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListTopicSnapshotsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicSnapshotsRequest.class, com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + private volatile java.lang.Object topic_; + /** + *
+   * The name of the topic that snapshots are attached to.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + *
+   * The name of the topic that snapshots are attached to.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + *
+   * Maximum number of snapshot names to return.
+   * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + *
+   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
+   * that this is a continuation of a prior `ListTopicSnapshots` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + *
+   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
+   * that this is a continuation of a prior `ListTopicSnapshots` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListTopicSnapshotsRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListTopicSnapshotsRequest other = (com.google.pubsub.v1.ListTopicSnapshotsRequest) obj; + + boolean result = true; + result = result && getTopic() + .equals(other.getTopic()); + result = result && (getPageSize() + == other.getPageSize()); + result = result && getPageToken() + .equals(other.getPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Request for the `ListTopicSnapshots` method.<br><br>
+   * <b>ALPHA:</b> This feature is part of an 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.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSnapshotsRequest) + com.google.pubsub.v1.ListTopicSnapshotsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicSnapshotsRequest.class, com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListTopicSnapshotsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + topic_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + } + + public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance(); + } + + public com.google.pubsub.v1.ListTopicSnapshotsRequest build() { + com.google.pubsub.v1.ListTopicSnapshotsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { + com.google.pubsub.v1.ListTopicSnapshotsRequest result = new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); + result.topic_ = topic_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsRequest) { + return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsRequest other) { + if (other == com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListTopicSnapshotsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListTopicSnapshotsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object topic_ = ""; + /** + *
+     * The name of the topic that snapshots are attached to.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The name of the topic that snapshots are attached to.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public com.google.protobuf.ByteString + getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The name of the topic that snapshots are attached to.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder setTopic( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + topic_ = value; + onChanged(); + return this; + } + /** + *
+     * The name of the topic that snapshots are attached to.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + *
+     * The name of the topic that snapshots are attached to.
+     * Format is `projects/{project}/topics/{topic}`.
+     * 
+ * + * string topic = 1; + */ + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + topic_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of snapshot names to return.
+     * 
+ * + * int32 page_size = 2; + */ + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of snapshot names to return.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + *
+     * Maximum number of snapshot names to return.
+     * 
+ * + * int32 page_size = 2; + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
+     * that this is a continuation of a prior `ListTopicSnapshots` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
+     * that this is a continuation of a prior `ListTopicSnapshots` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
+     * that this is a continuation of a prior `ListTopicSnapshots` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
+     * that this is a continuation of a prior `ListTopicSnapshots` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + *
+     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
+     * that this is a continuation of a prior `ListTopicSnapshots` call, and
+     * that the system should return the next page of data.
+     * 
+ * + * string page_token = 3; + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSnapshotsRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsRequest) + private static final com.google.pubsub.v1.ListTopicSnapshotsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSnapshotsRequest(); + } + + public static com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListTopicSnapshotsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTopicSnapshotsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java new file mode 100644 index 000000000000..ac27aa29ad3c --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ListTopicSnapshotsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSnapshotsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The name of the topic that snapshots are attached to.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + java.lang.String getTopic(); + /** + *
+   * The name of the topic that snapshots are attached to.
+   * Format is `projects/{project}/topics/{topic}`.
+   * 
+ * + * string topic = 1; + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + *
+   * Maximum number of snapshot names to return.
+   * 
+ * + * int32 page_size = 2; + */ + int getPageSize(); + + /** + *
+   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
+   * that this is a continuation of a prior `ListTopicSnapshots` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + java.lang.String getPageToken(); + /** + *
+   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
+   * that this is a continuation of a prior `ListTopicSnapshots` call, and
+   * that the system should return the next page of data.
+   * 
+ * + * string page_token = 3; + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java new file mode 100644 index 000000000000..dd21ac979ab2 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -0,0 +1,799 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * Response for the `ListTopicSnapshots` method.<br><br>
+ * <b>ALPHA:</b> This feature is part of an 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.
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse} + */ +public final class ListTopicSnapshotsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsResponse) + ListTopicSnapshotsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListTopicSnapshotsResponse.newBuilder() to construct. + private ListTopicSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTopicSnapshotsResponse() { + snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListTopicSnapshotsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + snapshots_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + snapshots_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + snapshots_ = snapshots_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicSnapshotsResponse.class, com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); + } + + private int bitField0_; + public static final int SNAPSHOTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList snapshots_; + /** + *
+   * The names of the snapshots that match the request.
+   * 
+ * + * repeated string snapshots = 1; + */ + public com.google.protobuf.ProtocolStringList + getSnapshotsList() { + return snapshots_; + } + /** + *
+   * The names of the snapshots that match the request.
+   * 
+ * + * repeated string snapshots = 1; + */ + public int getSnapshotsCount() { + return snapshots_.size(); + } + /** + *
+   * The names of the snapshots that match the request.
+   * 
+ * + * repeated string snapshots = 1; + */ + public java.lang.String getSnapshots(int index) { + return snapshots_.get(index); + } + /** + *
+   * The names of the snapshots that match the request.
+   * 
+ * + * repeated string snapshots = 1; + */ + public com.google.protobuf.ByteString + getSnapshotsBytes(int index) { + return snapshots_.getByteString(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + *
+   * If not empty, indicates that there may be more snapshots that match
+   * the request; this value should be passed in a new
+   * `ListTopicSnapshotsRequest` to get more snapshots.
+   * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + *
+   * If not empty, indicates that there may be more snapshots that match
+   * the request; this value should be passed in a new
+   * `ListTopicSnapshotsRequest` to get more snapshots.
+   * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < snapshots_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshots_.getRaw(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < snapshots_.size(); i++) { + dataSize += computeStringSizeNoTag(snapshots_.getRaw(i)); + } + size += dataSize; + size += 1 * getSnapshotsList().size(); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListTopicSnapshotsResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListTopicSnapshotsResponse other = (com.google.pubsub.v1.ListTopicSnapshotsResponse) obj; + + boolean result = true; + result = result && getSnapshotsList() + .equals(other.getSnapshotsList()); + result = result && getNextPageToken() + .equals(other.getNextPageToken()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSnapshotsCount() > 0) { + hash = (37 * hash) + SNAPSHOTS_FIELD_NUMBER; + hash = (53 * hash) + getSnapshotsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Response for the `ListTopicSnapshots` method.<br><br>
+   * <b>ALPHA:</b> This feature is part of an 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.
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSnapshotsResponse) + com.google.pubsub.v1.ListTopicSnapshotsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListTopicSnapshotsResponse.class, com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListTopicSnapshotsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + } + + public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance(); + } + + public com.google.pubsub.v1.ListTopicSnapshotsResponse build() { + com.google.pubsub.v1.ListTopicSnapshotsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { + com.google.pubsub.v1.ListTopicSnapshotsResponse result = new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + snapshots_ = snapshots_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.snapshots_ = snapshots_; + result.nextPageToken_ = nextPageToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsResponse) { + return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) { + if (other == com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()) return this; + if (!other.snapshots_.isEmpty()) { + if (snapshots_.isEmpty()) { + snapshots_ = other.snapshots_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSnapshotsIsMutable(); + snapshots_.addAll(other.snapshots_); + } + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListTopicSnapshotsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListTopicSnapshotsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSnapshotsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + snapshots_ = new com.google.protobuf.LazyStringArrayList(snapshots_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * The names of the snapshots that match the request.
+     * 
+ * + * repeated string snapshots = 1; + */ + public com.google.protobuf.ProtocolStringList + getSnapshotsList() { + return snapshots_.getUnmodifiableView(); + } + /** + *
+     * The names of the snapshots that match the request.
+     * 
+ * + * repeated string snapshots = 1; + */ + public int getSnapshotsCount() { + return snapshots_.size(); + } + /** + *
+     * The names of the snapshots that match the request.
+     * 
+ * + * repeated string snapshots = 1; + */ + public java.lang.String getSnapshots(int index) { + return snapshots_.get(index); + } + /** + *
+     * The names of the snapshots that match the request.
+     * 
+ * + * repeated string snapshots = 1; + */ + public com.google.protobuf.ByteString + getSnapshotsBytes(int index) { + return snapshots_.getByteString(index); + } + /** + *
+     * The names of the snapshots that match the request.
+     * 
+ * + * repeated string snapshots = 1; + */ + public Builder setSnapshots( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); + snapshots_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The names of the snapshots that match the request.
+     * 
+ * + * repeated string snapshots = 1; + */ + public Builder addSnapshots( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); + snapshots_.add(value); + onChanged(); + return this; + } + /** + *
+     * The names of the snapshots that match the request.
+     * 
+ * + * repeated string snapshots = 1; + */ + public Builder addAllSnapshots( + java.lang.Iterable values) { + ensureSnapshotsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, snapshots_); + onChanged(); + return this; + } + /** + *
+     * The names of the snapshots that match the request.
+     * 
+ * + * repeated string snapshots = 1; + */ + public Builder clearSnapshots() { + snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The names of the snapshots that match the request.
+     * 
+ * + * repeated string snapshots = 1; + */ + public Builder addSnapshotsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSnapshotsIsMutable(); + snapshots_.add(value); + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * If not empty, indicates that there may be more snapshots that match
+     * the request; this value should be passed in a new
+     * `ListTopicSnapshotsRequest` to get more snapshots.
+     * 
+ * + * string next_page_token = 2; + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * If not empty, indicates that there may be more snapshots that match
+     * the request; this value should be passed in a new
+     * `ListTopicSnapshotsRequest` to get more snapshots.
+     * 
+ * + * string next_page_token = 2; + */ + public com.google.protobuf.ByteString + getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * If not empty, indicates that there may be more snapshots that match
+     * the request; this value should be passed in a new
+     * `ListTopicSnapshotsRequest` to get more snapshots.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * If not empty, indicates that there may be more snapshots that match
+     * the request; this value should be passed in a new
+     * `ListTopicSnapshotsRequest` to get more snapshots.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + *
+     * If not empty, indicates that there may be more snapshots that match
+     * the request; this value should be passed in a new
+     * `ListTopicSnapshotsRequest` to get more snapshots.
+     * 
+ * + * string next_page_token = 2; + */ + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSnapshotsResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsResponse) + private static final com.google.pubsub.v1.ListTopicSnapshotsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSnapshotsResponse(); + } + + public static com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ListTopicSnapshotsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTopicSnapshotsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java new file mode 100644 index 000000000000..d06df36ea5d7 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ListTopicSnapshotsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSnapshotsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The names of the snapshots that match the request.
+   * 
+ * + * repeated string snapshots = 1; + */ + java.util.List + getSnapshotsList(); + /** + *
+   * The names of the snapshots that match the request.
+   * 
+ * + * repeated string snapshots = 1; + */ + int getSnapshotsCount(); + /** + *
+   * The names of the snapshots that match the request.
+   * 
+ * + * repeated string snapshots = 1; + */ + java.lang.String getSnapshots(int index); + /** + *
+   * The names of the snapshots that match the request.
+   * 
+ * + * repeated string snapshots = 1; + */ + com.google.protobuf.ByteString + getSnapshotsBytes(int index); + + /** + *
+   * If not empty, indicates that there may be more snapshots that match
+   * the request; this value should be passed in a new
+   * `ListTopicSnapshotsRequest` to get more snapshots.
+   * 
+ * + * string next_page_token = 2; + */ + java.lang.String getNextPageToken(); + /** + *
+   * If not empty, indicates that there may be more snapshots that match
+   * the request; this value should be passed in a new
+   * `ListTopicSnapshotsRequest` to get more snapshots.
+   * 
+ * + * string next_page_token = 2; + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java new file mode 100644 index 000000000000..d64fc6fe4c6f --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -0,0 +1,678 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} + */ +public final class MessageStoragePolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageStoragePolicy) + MessageStoragePolicyOrBuilder { +private static final long serialVersionUID = 0L; + // Use MessageStoragePolicy.newBuilder() to construct. + private MessageStoragePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MessageStoragePolicy() { + allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MessageStoragePolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + allowedPersistenceRegions_.add(s); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.MessageStoragePolicy.class, com.google.pubsub.v1.MessageStoragePolicy.Builder.class); + } + + public static final int ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList allowedPersistenceRegions_; + /** + *
+   * The list of GCP regions where messages that are published to the topic may
+   * be persisted in storage. Messages published by publishers running in
+   * non-allowed GCP regions (or running outside of GCP altogether) will be
+   * routed for storage in one of the allowed regions. An empty list indicates a
+   * misconfiguration at the project or organization level, which will result in
+   * all Publish operations failing.
+   * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public com.google.protobuf.ProtocolStringList + getAllowedPersistenceRegionsList() { + return allowedPersistenceRegions_; + } + /** + *
+   * The list of GCP regions where messages that are published to the topic may
+   * be persisted in storage. Messages published by publishers running in
+   * non-allowed GCP regions (or running outside of GCP altogether) will be
+   * routed for storage in one of the allowed regions. An empty list indicates a
+   * misconfiguration at the project or organization level, which will result in
+   * all Publish operations failing.
+   * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public int getAllowedPersistenceRegionsCount() { + return allowedPersistenceRegions_.size(); + } + /** + *
+   * The list of GCP regions where messages that are published to the topic may
+   * be persisted in storage. Messages published by publishers running in
+   * non-allowed GCP regions (or running outside of GCP altogether) will be
+   * routed for storage in one of the allowed regions. An empty list indicates a
+   * misconfiguration at the project or organization level, which will result in
+   * all Publish operations failing.
+   * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public java.lang.String getAllowedPersistenceRegions(int index) { + return allowedPersistenceRegions_.get(index); + } + /** + *
+   * The list of GCP regions where messages that are published to the topic may
+   * be persisted in storage. Messages published by publishers running in
+   * non-allowed GCP regions (or running outside of GCP altogether) will be
+   * routed for storage in one of the allowed regions. An empty list indicates a
+   * misconfiguration at the project or organization level, which will result in
+   * all Publish operations failing.
+   * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public com.google.protobuf.ByteString + getAllowedPersistenceRegionsBytes(int index) { + return allowedPersistenceRegions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < allowedPersistenceRegions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedPersistenceRegions_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < allowedPersistenceRegions_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedPersistenceRegions_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedPersistenceRegionsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.MessageStoragePolicy)) { + return super.equals(obj); + } + com.google.pubsub.v1.MessageStoragePolicy other = (com.google.pubsub.v1.MessageStoragePolicy) obj; + + boolean result = true; + result = result && getAllowedPersistenceRegionsList() + .equals(other.getAllowedPersistenceRegionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAllowedPersistenceRegionsCount() > 0) { + hash = (37 * hash) + ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedPersistenceRegionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.MessageStoragePolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.MessageStoragePolicy) + com.google.pubsub.v1.MessageStoragePolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.MessageStoragePolicy.class, com.google.pubsub.v1.MessageStoragePolicy.Builder.class); + } + + // Construct using com.google.pubsub.v1.MessageStoragePolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + } + + public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { + return com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance(); + } + + public com.google.pubsub.v1.MessageStoragePolicy build() { + com.google.pubsub.v1.MessageStoragePolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { + com.google.pubsub.v1.MessageStoragePolicy result = new com.google.pubsub.v1.MessageStoragePolicy(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.allowedPersistenceRegions_ = allowedPersistenceRegions_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.MessageStoragePolicy) { + return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.MessageStoragePolicy other) { + if (other == com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance()) return this; + if (!other.allowedPersistenceRegions_.isEmpty()) { + if (allowedPersistenceRegions_.isEmpty()) { + allowedPersistenceRegions_ = other.allowedPersistenceRegions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAllowedPersistenceRegionsIsMutable(); + allowedPersistenceRegions_.addAll(other.allowedPersistenceRegions_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.MessageStoragePolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.MessageStoragePolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowedPersistenceRegionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * The list of GCP regions where messages that are published to the topic may
+     * be persisted in storage. Messages published by publishers running in
+     * non-allowed GCP regions (or running outside of GCP altogether) will be
+     * routed for storage in one of the allowed regions. An empty list indicates a
+     * misconfiguration at the project or organization level, which will result in
+     * all Publish operations failing.
+     * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public com.google.protobuf.ProtocolStringList + getAllowedPersistenceRegionsList() { + return allowedPersistenceRegions_.getUnmodifiableView(); + } + /** + *
+     * The list of GCP regions where messages that are published to the topic may
+     * be persisted in storage. Messages published by publishers running in
+     * non-allowed GCP regions (or running outside of GCP altogether) will be
+     * routed for storage in one of the allowed regions. An empty list indicates a
+     * misconfiguration at the project or organization level, which will result in
+     * all Publish operations failing.
+     * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public int getAllowedPersistenceRegionsCount() { + return allowedPersistenceRegions_.size(); + } + /** + *
+     * The list of GCP regions where messages that are published to the topic may
+     * be persisted in storage. Messages published by publishers running in
+     * non-allowed GCP regions (or running outside of GCP altogether) will be
+     * routed for storage in one of the allowed regions. An empty list indicates a
+     * misconfiguration at the project or organization level, which will result in
+     * all Publish operations failing.
+     * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public java.lang.String getAllowedPersistenceRegions(int index) { + return allowedPersistenceRegions_.get(index); + } + /** + *
+     * The list of GCP regions where messages that are published to the topic may
+     * be persisted in storage. Messages published by publishers running in
+     * non-allowed GCP regions (or running outside of GCP altogether) will be
+     * routed for storage in one of the allowed regions. An empty list indicates a
+     * misconfiguration at the project or organization level, which will result in
+     * all Publish operations failing.
+     * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public com.google.protobuf.ByteString + getAllowedPersistenceRegionsBytes(int index) { + return allowedPersistenceRegions_.getByteString(index); + } + /** + *
+     * The list of GCP regions where messages that are published to the topic may
+     * be persisted in storage. Messages published by publishers running in
+     * non-allowed GCP regions (or running outside of GCP altogether) will be
+     * routed for storage in one of the allowed regions. An empty list indicates a
+     * misconfiguration at the project or organization level, which will result in
+     * all Publish operations failing.
+     * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public Builder setAllowedPersistenceRegions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedPersistenceRegionsIsMutable(); + allowedPersistenceRegions_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * The list of GCP regions where messages that are published to the topic may
+     * be persisted in storage. Messages published by publishers running in
+     * non-allowed GCP regions (or running outside of GCP altogether) will be
+     * routed for storage in one of the allowed regions. An empty list indicates a
+     * misconfiguration at the project or organization level, which will result in
+     * all Publish operations failing.
+     * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public Builder addAllowedPersistenceRegions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedPersistenceRegionsIsMutable(); + allowedPersistenceRegions_.add(value); + onChanged(); + return this; + } + /** + *
+     * The list of GCP regions where messages that are published to the topic may
+     * be persisted in storage. Messages published by publishers running in
+     * non-allowed GCP regions (or running outside of GCP altogether) will be
+     * routed for storage in one of the allowed regions. An empty list indicates a
+     * misconfiguration at the project or organization level, which will result in
+     * all Publish operations failing.
+     * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public Builder addAllAllowedPersistenceRegions( + java.lang.Iterable values) { + ensureAllowedPersistenceRegionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedPersistenceRegions_); + onChanged(); + return this; + } + /** + *
+     * The list of GCP regions where messages that are published to the topic may
+     * be persisted in storage. Messages published by publishers running in
+     * non-allowed GCP regions (or running outside of GCP altogether) will be
+     * routed for storage in one of the allowed regions. An empty list indicates a
+     * misconfiguration at the project or organization level, which will result in
+     * all Publish operations failing.
+     * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public Builder clearAllowedPersistenceRegions() { + allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * The list of GCP regions where messages that are published to the topic may
+     * be persisted in storage. Messages published by publishers running in
+     * non-allowed GCP regions (or running outside of GCP altogether) will be
+     * routed for storage in one of the allowed regions. An empty list indicates a
+     * misconfiguration at the project or organization level, which will result in
+     * all Publish operations failing.
+     * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + public Builder addAllowedPersistenceRegionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedPersistenceRegionsIsMutable(); + allowedPersistenceRegions_.add(value); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.MessageStoragePolicy) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.MessageStoragePolicy) + private static final com.google.pubsub.v1.MessageStoragePolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.MessageStoragePolicy(); + } + + public static com.google.pubsub.v1.MessageStoragePolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MessageStoragePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MessageStoragePolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java new file mode 100644 index 000000000000..fb6b2f8bded9 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface MessageStoragePolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.MessageStoragePolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The list of GCP regions where messages that are published to the topic may
+   * be persisted in storage. Messages published by publishers running in
+   * non-allowed GCP regions (or running outside of GCP altogether) will be
+   * routed for storage in one of the allowed regions. An empty list indicates a
+   * misconfiguration at the project or organization level, which will result in
+   * all Publish operations failing.
+   * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + java.util.List + getAllowedPersistenceRegionsList(); + /** + *
+   * The list of GCP regions where messages that are published to the topic may
+   * be persisted in storage. Messages published by publishers running in
+   * non-allowed GCP regions (or running outside of GCP altogether) will be
+   * routed for storage in one of the allowed regions. An empty list indicates a
+   * misconfiguration at the project or organization level, which will result in
+   * all Publish operations failing.
+   * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + int getAllowedPersistenceRegionsCount(); + /** + *
+   * The list of GCP regions where messages that are published to the topic may
+   * be persisted in storage. Messages published by publishers running in
+   * non-allowed GCP regions (or running outside of GCP altogether) will be
+   * routed for storage in one of the allowed regions. An empty list indicates a
+   * misconfiguration at the project or organization level, which will result in
+   * all Publish operations failing.
+   * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + java.lang.String getAllowedPersistenceRegions(int index); + /** + *
+   * The list of GCP regions where messages that are published to the topic may
+   * be persisted in storage. Messages published by publishers running in
+   * non-allowed GCP regions (or running outside of GCP altogether) will be
+   * routed for storage in one of the allowed regions. An empty list indicates a
+   * misconfiguration at the project or organization level, which will result in
+   * all Publish operations failing.
+   * 
+ * + * repeated string allowed_persistence_regions = 1; + */ + com.google.protobuf.ByteString + getAllowedPersistenceRegionsBytes(int index); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index f448e439183c..009e0e2979b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -149,7 +149,7 @@ public java.lang.String getSubscription() { * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. *
* * .google.pubsub.v1.PushConfig push_config = 2; @@ -163,7 +163,7 @@ public boolean hasPushConfig() { * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. *
* * .google.pubsub.v1.PushConfig push_config = 2; @@ -177,7 +177,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. *
* * .google.pubsub.v1.PushConfig push_config = 2; @@ -606,7 +606,7 @@ public Builder setSubscriptionBytes( * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; @@ -620,7 +620,7 @@ public boolean hasPushConfig() { * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; @@ -638,7 +638,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; @@ -662,7 +662,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; @@ -684,7 +684,7 @@ public Builder setPushConfig( * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; @@ -710,7 +710,7 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; @@ -732,7 +732,7 @@ public Builder clearPushConfig() { * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; @@ -748,7 +748,7 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; @@ -767,7 +767,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 411fdae60771..b66687d50aa6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -33,7 +33,7 @@ public interface ModifyPushConfigRequestOrBuilder extends * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; @@ -45,7 +45,7 @@ public interface ModifyPushConfigRequestOrBuilder extends * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; @@ -57,7 +57,7 @@ public interface ModifyPushConfigRequestOrBuilder extends * 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` is not called. + * the subscription if `Pull` or `StreamingPull` is not called. * * * .google.pubsub.v1.PushConfig push_config = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 707fe8b41799..31cbf40afb8b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -14,6 +14,11 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final @@ -74,6 +79,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; static final @@ -169,6 +184,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; static final @@ -184,6 +204,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; static final @@ -223,172 +248,191 @@ public static void registerAllExtensions( "\036google/protobuf/duration.proto\032\033google/" + "protobuf/empty.proto\032 google/protobuf/fi" + "eld_mask.proto\032\037google/protobuf/timestam" + - "p.proto\"y\n\005Topic\022\014\n\004name\030\001 \001(\t\0223\n\006labels" + - "\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEn" + - "try\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + - "\030\002 \001(\t:\0028\001\"\333\001\n\rPubsubMessage\022\014\n\004data\030\001 \001" + - "(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub.v" + - "1.PubsubMessage.AttributesEntry\022\022\n\nmessa" + - "ge_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.goog" + - "le.protobuf.Timestamp\0321\n\017AttributesEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\017GetT" + - "opicRequest\022\r\n\005topic\030\001 \001(\t\"m\n\022UpdateTopi" + - "cRequest\022&\n\005topic\030\001 \001(\0132\027.google.pubsub." + - "v1.Topic\022/\n\013update_mask\030\002 \001(\0132\032.google.p" + - "rotobuf.FieldMask\"R\n\016PublishRequest\022\r\n\005t" + - "opic\030\001 \001(\t\0221\n\010messages\030\002 \003(\0132\037.google.pu" + - "bsub.v1.PubsubMessage\"&\n\017PublishResponse" + - "\022\023\n\013message_ids\030\001 \003(\t\"K\n\021ListTopicsReque" + - "st\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022" + - "\n\npage_token\030\003 \001(\t\"V\n\022ListTopicsResponse" + - "\022\'\n\006topics\030\001 \003(\0132\027.google.pubsub.v1.Topi" + - "c\022\027\n\017next_page_token\030\002 \001(\t\"U\n\035ListTopicS" + - "ubscriptionsRequest\022\r\n\005topic\030\001 \001(\t\022\021\n\tpa" + - "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036Lis" + - "tTopicSubscriptionsResponse\022\025\n\rsubscript" + - "ions\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n\022D" + - "eleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\305\002\n\014Sub" + - "scription\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\0221" + - "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" + - "ushConfig\022\034\n\024ack_deadline_seconds\030\005 \001(\005\022" + - "\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032messag" + - "e_retention_duration\030\010 \001(\0132\031.google.prot" + - "obuf.Duration\022:\n\006labels\030\t \003(\0132*.google.p" + - "ubsub.v1.Subscription.LabelsEntry\032-\n\013Lab" + - "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - "\"\230\001\n\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@" + - "\n\nattributes\030\002 \003(\0132,.google.pubsub.v1.Pu" + - "shConfig.AttributesEntry\0321\n\017AttributesEn" + - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"S\n\017R" + - "eceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007messag" + - "e\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessage" + - "\".\n\026GetSubscriptionRequest\022\024\n\014subscripti" + - "on\030\001 \001(\t\"\202\001\n\031UpdateSubscriptionRequest\0224" + - "\n\014subscription\030\001 \001(\0132\036.google.pubsub.v1." + - "Subscription\022/\n\013update_mask\030\002 \001(\0132\032.goog" + - "le.protobuf.FieldMask\"R\n\030ListSubscriptio" + - "nsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030" + - "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubscri" + - "ptionsResponse\0225\n\rsubscriptions\030\001 \003(\0132\036." + - "google.pubsub.v1.Subscription\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\"1\n\031DeleteSubscriptionRequ" + - "est\022\024\n\014subscription\030\001 \001(\t\"b\n\027ModifyPushC" + - "onfigRequest\022\024\n\014subscription\030\001 \001(\t\0221\n\013pu" + - "sh_config\030\002 \001(\0132\034.google.pubsub.v1.PushC" + - "onfig\"U\n\013PullRequest\022\024\n\014subscription\030\001 \001" + - "(\t\022\032\n\022return_immediately\030\002 \001(\010\022\024\n\014max_me" + - "ssages\030\003 \001(\005\"L\n\014PullResponse\022<\n\021received" + - "_messages\030\001 \003(\0132!.google.pubsub.v1.Recei" + - "vedMessage\"_\n\030ModifyAckDeadlineRequest\022\024" + - "\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t\022\034\n" + - "\024ack_deadline_seconds\030\003 \001(\005\";\n\022Acknowled" + - "geRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_i" + - "ds\030\002 \003(\t\"\244\001\n\024StreamingPullRequest\022\024\n\014sub" + - "scription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modi" + - "fy_deadline_seconds\030\003 \003(\005\022\037\n\027modify_dead" + - "line_ack_ids\030\004 \003(\t\022#\n\033stream_ack_deadlin" + - "e_seconds\030\005 \001(\005\"U\n\025StreamingPullResponse" + - "\022<\n\021received_messages\030\001 \003(\0132!.google.pub" + - "sub.v1.ReceivedMessage\";\n\025CreateSnapshot" + - "Request\022\014\n\004name\030\001 \001(\t\022\024\n\014subscription\030\002 " + - "\001(\t\"v\n\025UpdateSnapshotRequest\022,\n\010snapshot" + - "\030\001 \001(\0132\032.google.pubsub.v1.Snapshot\022/\n\013up" + - "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + - "ask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030" + - "\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.google.prot" + - "obuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.google." + - "pubsub.v1.Snapshot.LabelsEntry\032-\n\013Labels" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"N\n" + - "\024ListSnapshotsRequest\022\017\n\007project\030\001 \001(\t\022\021" + - "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n" + - "\025ListSnapshotsResponse\022-\n\tsnapshots\030\001 \003(" + - "\0132\032.google.pubsub.v1.Snapshot\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\")\n\025DeleteSnapshotRequest\022" + - "\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest\022\024\n\014subs" + - "cription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.google.pr" + - "otobuf.TimestampH\000\022\022\n\010snapshot\030\003 \001(\tH\000B\010" + - "\n\006target\"\016\n\014SeekResponse2\367\020\n\nSubscriber\022" + - "\206\001\n\022CreateSubscription\022\036.google.pubsub.v" + - "1.Subscription\032\036.google.pubsub.v1.Subscr" + - "iption\"0\202\323\344\223\002*\032%/v1/{name=projects/*/sub" + - "scriptions/*}:\001*\022\222\001\n\017GetSubscription\022(.g" + - "oogle.pubsub.v1.GetSubscriptionRequest\032\036" + - ".google.pubsub.v1.Subscription\"5\202\323\344\223\002/\022-" + - "/v1/{subscription=projects/*/subscriptio" + - "ns/*}\022\240\001\n\022UpdateSubscription\022+.google.pu" + - "bsub.v1.UpdateSubscriptionRequest\032\036.goog" + - "le.pubsub.v1.Subscription\"=\202\323\344\223\002722/v1/{" + - "subscription.name=projects/*/subscriptio" + - "ns/*}:\001*\022\234\001\n\021ListSubscriptions\022*.google." + - "pubsub.v1.ListSubscriptionsRequest\032+.goo" + - "gle.pubsub.v1.ListSubscriptionsResponse\"" + - ".\202\323\344\223\002(\022&/v1/{project=projects/*}/subscr" + - "iptions\022\220\001\n\022DeleteSubscription\022+.google." + - "pubsub.v1.DeleteSubscriptionRequest\032\026.go" + - "ogle.protobuf.Empty\"5\202\323\344\223\002/*-/v1/{subscr" + - "iption=projects/*/subscriptions/*}\022\243\001\n\021M" + - "odifyAckDeadline\022*.google.pubsub.v1.Modi" + - "fyAckDeadlineRequest\032\026.google.protobuf.E" + - "mpty\"J\202\323\344\223\002D\"?/v1/{subscription=projects" + - "/*/subscriptions/*}:modifyAckDeadline:\001*" + - "\022\221\001\n\013Acknowledge\022$.google.pubsub.v1.Ackn" + - "owledgeRequest\032\026.google.protobuf.Empty\"D" + - "\202\323\344\223\002>\"9/v1/{subscription=projects/*/sub" + - "scriptions/*}:acknowledge:\001*\022\204\001\n\004Pull\022\035." + - "google.pubsub.v1.PullRequest\032\036.google.pu" + - "bsub.v1.PullResponse\"=\202\323\344\223\0027\"2/v1/{subsc" + - "ription=projects/*/subscriptions/*}:pull" + - ":\001*\022d\n\rStreamingPull\022&.google.pubsub.v1." + - "StreamingPullRequest\032\'.google.pubsub.v1." + - "StreamingPullResponse(\0010\001\022\240\001\n\020ModifyPush" + - "Config\022).google.pubsub.v1.ModifyPushConf" + - "igRequest\032\026.google.protobuf.Empty\"I\202\323\344\223\002" + - "C\">/v1/{subscription=projects/*/subscrip" + - "tions/*}:modifyPushConfig:\001*\022\214\001\n\rListSna" + - "pshots\022&.google.pubsub.v1.ListSnapshotsR" + - "equest\032\'.google.pubsub.v1.ListSnapshotsR" + - "esponse\"*\202\323\344\223\002$\022\"/v1/{project=projects/*" + - "}/snapshots\022\203\001\n\016CreateSnapshot\022\'.google." + - "pubsub.v1.CreateSnapshotRequest\032\032.google" + - ".pubsub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=p" + - "rojects/*/snapshots/*}:\001*\022\214\001\n\016UpdateSnap" + - "shot\022\'.google.pubsub.v1.UpdateSnapshotRe" + - "quest\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002" + - "/2*/v1/{snapshot.name=projects/*/snapsho" + - "ts/*}:\001*\022\200\001\n\016DeleteSnapshot\022\'.google.pub" + - "sub.v1.DeleteSnapshotRequest\032\026.google.pr" + - "otobuf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=proj" + - "ects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pu" + - "bsub.v1.SeekRequest\032\036.google.pubsub.v1.S" + - "eekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=p" + - "rojects/*/subscriptions/*}:seek:\001*2\232\007\n\tP" + - "ublisher\022j\n\013CreateTopic\022\027.google.pubsub." + - "v1.Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223\002" + - "#\032\036/v1/{name=projects/*/topics/*}:\001*\022}\n\013" + - "UpdateTopic\022$.google.pubsub.v1.UpdateTop" + - "icRequest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223" + - "\002)2$/v1/{topic.name=projects/*/topics/*}" + - ":\001*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publi" + - "shRequest\032!.google.pubsub.v1.PublishResp" + - "onse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topi" + - "cs/*}:publish:\001*\022o\n\010GetTopic\022!.google.pu" + - "bsub.v1.GetTopicRequest\032\027.google.pubsub." + - "v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*/" + - "topics/*}\022\200\001\n\nListTopics\022#.google.pubsub" + - ".v1.ListTopicsRequest\032$.google.pubsub.v1" + - ".ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{projec" + - "t=projects/*}/topics\022\262\001\n\026ListTopicSubscr" + - "iptions\022/.google.pubsub.v1.ListTopicSubs" + - "criptionsRequest\0320.google.pubsub.v1.List" + - "TopicSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/" + - "{topic=projects/*/topics/*}/subscription" + - "s\022t\n\013DeleteTopic\022$.google.pubsub.v1.Dele" + - "teTopicRequest\032\026.google.protobuf.Empty\"\'" + - "\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}B" + - "\222\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z" + - "6google.golang.org/genproto/googleapis/p" + - "ubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub" + - ".V1\312\002\026Google\\Cloud\\PubSub\\V1b\006proto3" + "p.proto\";\n\024MessageStoragePolicy\022#\n\033allow" + + "ed_persistence_regions\030\001 \003(\t\"\301\001\n\005Topic\022\014" + + "\n\004name\030\001 \001(\t\0223\n\006labels\030\002 \003(\0132#.google.pu" + + "bsub.v1.Topic.LabelsEntry\022F\n\026message_sto" + + "rage_policy\030\003 \001(\0132&.google.pubsub.v1.Mes" + + "sageStoragePolicy\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\333\001\n\rPubsubMessa" + + "ge\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.g" + + "oogle.pubsub.v1.PubsubMessage.Attributes" + + "Entry\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_tim" + + "e\030\004 \001(\0132\032.google.protobuf.Timestamp\0321\n\017A" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\" \n\017GetTopicRequest\022\r\n\005topic\030\001 \001(\t" + + "\"m\n\022UpdateTopicRequest\022&\n\005topic\030\001 \001(\0132\027." + + "google.pubsub.v1.Topic\022/\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMask\"R\n\016Publi" + + "shRequest\022\r\n\005topic\030\001 \001(\t\0221\n\010messages\030\002 \003" + + "(\0132\037.google.pubsub.v1.PubsubMessage\"&\n\017P" + + "ublishResponse\022\023\n\013message_ids\030\001 \003(\t\"K\n\021L" + + "istTopicsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022List" + + "TopicsResponse\022\'\n\006topics\030\001 \003(\0132\027.google." + + "pubsub.v1.Topic\022\027\n\017next_page_token\030\002 \001(\t" + + "\"U\n\035ListTopicSubscriptionsRequest\022\r\n\005top" + + "ic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"P\n\036ListTopicSubscriptionsRespons" + + "e\022\025\n\rsubscriptions\030\001 \003(\t\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"Q\n\031ListTopicSnapshotsRequest\022\r" + + "\n\005topic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"H\n\032ListTopicSnapshotsRespon" + + "se\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token" + + "\030\002 \001(\t\"#\n\022DeleteTopicRequest\022\r\n\005topic\030\001 " + + "\001(\t\"\305\002\n\014Subscription\022\014\n\004name\030\001 \001(\t\022\r\n\005to" + + "pic\030\002 \001(\t\0221\n\013push_config\030\004 \001(\0132\034.google." + + "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec" + + "onds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(" + + "\010\022=\n\032message_retention_duration\030\010 \001(\0132\031." + + "google.protobuf.Duration\022:\n\006labels\030\t \003(\013" + + "2*.google.pubsub.v1.Subscription.LabelsE" + + "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"\230\001\n\nPushConfig\022\025\n\rpush_endpo" + + "int\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google.p" + + "ubsub.v1.PushConfig.AttributesEntry\0321\n\017A" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(" + + "\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pu" + + "bsubMessage\".\n\026GetSubscriptionRequest\022\024\n" + + "\014subscription\030\001 \001(\t\"\202\001\n\031UpdateSubscripti" + + "onRequest\0224\n\014subscription\030\001 \001(\0132\036.google" + + ".pubsub.v1.Subscription\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask\"R\n\030List" + + "SubscriptionsRequest\022\017\n\007project\030\001 \001(\t\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031" + + "ListSubscriptionsResponse\0225\n\rsubscriptio" + + "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription" + + "\022\027\n\017next_page_token\030\002 \001(\t\"1\n\031DeleteSubsc" + + "riptionRequest\022\024\n\014subscription\030\001 \001(\t\"b\n\027" + + "ModifyPushConfigRequest\022\024\n\014subscription\030" + + "\001 \001(\t\0221\n\013push_config\030\002 \001(\0132\034.google.pubs" + + "ub.v1.PushConfig\"U\n\013PullRequest\022\024\n\014subsc" + + "ription\030\001 \001(\t\022\032\n\022return_immediately\030\002 \001(" + + "\010\022\024\n\014max_messages\030\003 \001(\005\"L\n\014PullResponse\022" + + "<\n\021received_messages\030\001 \003(\0132!.google.pubs" + + "ub.v1.ReceivedMessage\"_\n\030ModifyAckDeadli" + + "neRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_i" + + "ds\030\004 \003(\t\022\034\n\024ack_deadline_seconds\030\003 \001(\005\";" + + "\n\022AcknowledgeRequest\022\024\n\014subscription\030\001 \001" + + "(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024StreamingPullReq" + + "uest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 " + + "\003(\t\022\037\n\027modify_deadline_seconds\030\003 \003(\005\022\037\n\027" + + "modify_deadline_ack_ids\030\004 \003(\t\022#\n\033stream_" + + "ack_deadline_seconds\030\005 \001(\005\"U\n\025StreamingP" + + "ullResponse\022<\n\021received_messages\030\001 \003(\0132!" + + ".google.pubsub.v1.ReceivedMessage\"\257\001\n\025Cr" + + "eateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014sub" + + "scription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.google" + + ".pubsub.v1.CreateSnapshotRequest.LabelsE" + + "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"v\n\025UpdateSnapshotRequest\022,\n\010" + + "snapshot\030\001 \001(\0132\032.google.pubsub.v1.Snapsh" + + "ot\022/\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r" + + "\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&" + + ".google.pubsub.v1.Snapshot.LabelsEntry\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010snapshot\030" + + "\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007project" + + "\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapsh" + + "ots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n" + + "\017next_page_token\030\002 \001(\t\")\n\025DeleteSnapshot" + + "Request\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest" + + "\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampH\000\022\022\n\010snapshot\030\003" + + " \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2\277\010\n\tPub" + + "lisher\022j\n\013CreateTopic\022\027.google.pubsub.v1" + + ".Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223\002#\032" + + "\036/v1/{name=projects/*/topics/*}:\001*\022}\n\013Up" + + "dateTopic\022$.google.pubsub.v1.UpdateTopic" + + "Request\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002)" + + "2$/v1/{topic.name=projects/*/topics/*}:\001" + + "*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publish" + + "Request\032!.google.pubsub.v1.PublishRespon" + + "se\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" + + "/*}:publish:\001*\022o\n\010GetTopic\022!.google.pubs" + + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" + + ".Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*/to" + + "pics/*}\022\200\001\n\nListTopics\022#.google.pubsub.v" + + "1.ListTopicsRequest\032$.google.pubsub.v1.L" + + "istTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{project=" + + "projects/*}/topics\022\262\001\n\026ListTopicSubscrip" + + "tions\022/.google.pubsub.v1.ListTopicSubscr" + + "iptionsRequest\0320.google.pubsub.v1.ListTo" + + "picSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/{t" + + "opic=projects/*/topics/*}/subscriptions\022" + + "\242\001\n\022ListTopicSnapshots\022+.google.pubsub.v" + + "1.ListTopicSnapshotsRequest\032,.google.pub" + + "sub.v1.ListTopicSnapshotsResponse\"1\202\323\344\223\002" + + "+\022)/v1/{topic=projects/*/topics/*}/snaps" + + "hots\022t\n\013DeleteTopic\022$.google.pubsub.v1.D" + + "eleteTopicRequest\032\026.google.protobuf.Empt" + + "y\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/" + + "*}2\367\021\n\nSubscriber\022\206\001\n\022CreateSubscription" + + "\022\036.google.pubsub.v1.Subscription\032\036.googl" + + "e.pubsub.v1.Subscription\"0\202\323\344\223\002*\032%/v1/{n" + + "ame=projects/*/subscriptions/*}:\001*\022\222\001\n\017G" + + "etSubscription\022(.google.pubsub.v1.GetSub" + + "scriptionRequest\032\036.google.pubsub.v1.Subs" + + "cription\"5\202\323\344\223\002/\022-/v1/{subscription=proj" + + "ects/*/subscriptions/*}\022\240\001\n\022UpdateSubscr" + + "iption\022+.google.pubsub.v1.UpdateSubscrip" + + "tionRequest\032\036.google.pubsub.v1.Subscript" + + "ion\"=\202\323\344\223\002722/v1/{subscription.name=proj" + + "ects/*/subscriptions/*}:\001*\022\234\001\n\021ListSubsc" + + "riptions\022*.google.pubsub.v1.ListSubscrip" + + "tionsRequest\032+.google.pubsub.v1.ListSubs" + + "criptionsResponse\".\202\323\344\223\002(\022&/v1/{project=" + + "projects/*}/subscriptions\022\220\001\n\022DeleteSubs" + + "cription\022+.google.pubsub.v1.DeleteSubscr" + + "iptionRequest\032\026.google.protobuf.Empty\"5\202" + + "\323\344\223\002/*-/v1/{subscription=projects/*/subs" + + "criptions/*}\022\243\001\n\021ModifyAckDeadline\022*.goo" + + "gle.pubsub.v1.ModifyAckDeadlineRequest\032\026" + + ".google.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{sub" + + "scription=projects/*/subscriptions/*}:mo" + + "difyAckDeadline:\001*\022\221\001\n\013Acknowledge\022$.goo" + + "gle.pubsub.v1.AcknowledgeRequest\032\026.googl" + + "e.protobuf.Empty\"D\202\323\344\223\002>\"9/v1/{subscript" + + "ion=projects/*/subscriptions/*}:acknowle" + + "dge:\001*\022\204\001\n\004Pull\022\035.google.pubsub.v1.PullR" + + "equest\032\036.google.pubsub.v1.PullResponse\"=" + + "\202\323\344\223\0027\"2/v1/{subscription=projects/*/sub" + + "scriptions/*}:pull:\001*\022d\n\rStreamingPull\022&" + + ".google.pubsub.v1.StreamingPullRequest\032\'" + + ".google.pubsub.v1.StreamingPullResponse(" + + "\0010\001\022\240\001\n\020ModifyPushConfig\022).google.pubsub" + + ".v1.ModifyPushConfigRequest\032\026.google.pro" + + "tobuf.Empty\"I\202\323\344\223\002C\">/v1/{subscription=p" + + "rojects/*/subscriptions/*}:modifyPushCon" + + "fig:\001*\022~\n\013GetSnapshot\022$.google.pubsub.v1" + + ".GetSnapshotRequest\032\032.google.pubsub.v1.S" + + "napshot\"-\202\323\344\223\002\'\022%/v1/{snapshot=projects/" + + "*/snapshots/*}\022\214\001\n\rListSnapshots\022&.googl" + + "e.pubsub.v1.ListSnapshotsRequest\032\'.googl" + + "e.pubsub.v1.ListSnapshotsResponse\"*\202\323\344\223\002" + + "$\022\"/v1/{project=projects/*}/snapshots\022\203\001" + + "\n\016CreateSnapshot\022\'.google.pubsub.v1.Crea" + + "teSnapshotRequest\032\032.google.pubsub.v1.Sna" + + "pshot\",\202\323\344\223\002&\032!/v1/{name=projects/*/snap" + + "shots/*}:\001*\022\214\001\n\016UpdateSnapshot\022\'.google." + + "pubsub.v1.UpdateSnapshotRequest\032\032.google" + + ".pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapsh" + + "ot.name=projects/*/snapshots/*}:\001*\022\200\001\n\016D" + + "eleteSnapshot\022\'.google.pubsub.v1.DeleteS" + + "napshotRequest\032\026.google.protobuf.Empty\"-" + + "\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsho" + + "ts/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRe" + + "quest\032\036.google.pubsub.v1.SeekResponse\"=\202" + + "\323\344\223\0027\"2/v1/{subscription=projects/*/subs" + + "criptions/*}:seek:\001*B\222\001\n\024com.google.pubs" + + "ub.v1B\013PubsubProtoP\001Z6google.golang.org/" + + "genproto/googleapis/pubsub/v1;pubsub\370\001\001\252" + + "\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Cloud\\" + + "PubSub\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -407,12 +451,18 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }, assigner); - internal_static_google_pubsub_v1_Topic_descriptor = + internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor, + new java.lang.String[] { "AllowedPersistenceRegions", }); + internal_static_google_pubsub_v1_Topic_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, - new java.lang.String[] { "Name", "Labels", }); + new java.lang.String[] { "Name", "Labels", "MessageStoragePolicy", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable = new @@ -420,7 +470,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(2); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -432,61 +482,73 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, new java.lang.String[] { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, new java.lang.String[] { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, new java.lang.String[] { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, new java.lang.String[] { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, new java.lang.String[] { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, new java.lang.String[] { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, new java.lang.String[] { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, new java.lang.String[] { "Subscriptions", "NextPageToken", }); + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, + new java.lang.String[] { "Topic", "PageSize", "PageToken", }); + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, + new java.lang.String[] { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, new java.lang.String[] { "Topic", }); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -498,7 +560,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -510,97 +572,103 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, new java.lang.String[] { "AckId", "Message", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, new java.lang.String[] { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, new java.lang.String[] { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, new java.lang.String[] { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, new java.lang.String[] { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, new java.lang.String[] { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, new java.lang.String[] { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, new java.lang.String[] { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, new java.lang.String[] { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, new java.lang.String[] { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, new java.lang.String[] { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, new java.lang.String[] { "Subscription", "AckIds", "ModifyDeadlineSeconds", "ModifyDeadlineAckIds", "StreamAckDeadlineSeconds", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, new java.lang.String[] { "ReceivedMessages", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, - new java.lang.String[] { "Name", "Subscription", }); + new java.lang.String[] { "Name", "Subscription", "Labels", }); + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, new java.lang.String[] { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -611,32 +679,38 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, + new java.lang.String[] { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, new java.lang.String[] { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, new java.lang.String[] { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, new java.lang.String[] { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, new java.lang.String[] { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 9d12081522f7..215cb26b748d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -5,7 +5,10 @@ /** *
- * Request for the `Seek` method.
+ * Request for the `Seek` method.<br><br>
+ * <b>ALPHA:</b> This feature is part of an 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.
  * 
* * Protobuf type {@code google.pubsub.v1.SeekRequest} @@ -499,7 +502,10 @@ protected Builder newBuilderForType( } /** *
-   * Request for the `Seek` method.
+   * Request for the `Seek` method.<br><br>
+   * <b>ALPHA:</b> This feature is part of an 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.
    * 
* * Protobuf type {@code google.pubsub.v1.SeekRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 65f04e684884..a42368346be5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -5,7 +5,10 @@ /** *
- * A snapshot resource.
+ * A snapshot resource.<br><br>
+ * <b>ALPHA:</b> This feature is part of an 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.
  * 
* * Protobuf type {@code google.pubsub.v1.Snapshot} @@ -225,7 +228,8 @@ public java.lang.String getTopic() { * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -243,7 +247,8 @@ public boolean hasExpireTime() { * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -261,7 +266,8 @@ public com.google.protobuf.Timestamp getExpireTime() { * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -562,7 +568,10 @@ protected Builder newBuilderForType( } /** *
-   * A snapshot resource.
+   * A snapshot resource.<br><br>
+   * <b>ALPHA:</b> This feature is part of an 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.
    * 
* * Protobuf type {@code google.pubsub.v1.Snapshot} @@ -940,7 +949,8 @@ public Builder setTopicBytes( * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -958,7 +968,8 @@ public boolean hasExpireTime() { * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -980,7 +991,8 @@ public com.google.protobuf.Timestamp getExpireTime() { * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -1008,7 +1020,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -1034,7 +1047,8 @@ public Builder setExpireTime( * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -1064,7 +1078,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -1090,7 +1105,8 @@ public Builder clearExpireTime() { * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -1110,7 +1126,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -1133,7 +1150,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 36b1b1de618c..9de6c0aaed64 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -53,7 +53,8 @@ public interface SnapshotOrBuilder extends * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -69,7 +70,8 @@ public interface SnapshotOrBuilder extends * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; @@ -85,7 +87,8 @@ public interface SnapshotOrBuilder extends * 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. + * exists -- will expire in 4 days. The service will refuse to create a + * snapshot that would expire in less than 1 hour after creation. * * * .google.protobuf.Timestamp expire_time = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index fad189d8082b..7436899a3ef8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -305,7 +305,8 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * 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 - * pull. + * 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. @@ -328,7 +329,10 @@ public int getAckDeadlineSeconds() { * 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. + * window.<br><br> + * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * changed in backward-incompatible ways and is not recommended for production + * use. It is not subject to any SLA or deprecation policy. * * * bool retain_acked_messages = 7; @@ -346,7 +350,10 @@ public boolean getRetainAckedMessages() { * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -361,7 +368,10 @@ public boolean hasMessageRetentionDuration() { * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -376,7 +386,10 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1329,7 +1342,8 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * 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 - * pull. + * 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. @@ -1354,7 +1368,8 @@ public int getAckDeadlineSeconds() { * 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 - * pull. + * 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. @@ -1382,7 +1397,8 @@ public Builder setAckDeadlineSeconds(int value) { * 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 - * pull. + * 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. @@ -1407,7 +1423,10 @@ public Builder clearAckDeadlineSeconds() { * 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. + * window.<br><br> + * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * changed in backward-incompatible ways and is not recommended for production + * use. It is not subject to any SLA or deprecation policy. * * * bool retain_acked_messages = 7; @@ -1420,7 +1439,10 @@ public boolean getRetainAckedMessages() { * 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. + * window.<br><br> + * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * changed in backward-incompatible ways and is not recommended for production + * use. It is not subject to any SLA or deprecation policy. * * * bool retain_acked_messages = 7; @@ -1436,7 +1458,10 @@ public Builder setRetainAckedMessages(boolean value) { * 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. + * window.<br><br> + * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * changed in backward-incompatible ways and is not recommended for production + * use. It is not subject to any SLA or deprecation policy. * * * bool retain_acked_messages = 7; @@ -1458,7 +1483,10 @@ public Builder clearRetainAckedMessages() { * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1473,7 +1501,10 @@ public boolean hasMessageRetentionDuration() { * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1492,7 +1523,10 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1517,7 +1551,10 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1540,7 +1577,10 @@ public Builder setMessageRetentionDuration( * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1567,7 +1607,10 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1590,7 +1633,10 @@ public Builder clearMessageRetentionDuration() { * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1607,7 +1653,10 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1627,7 +1676,10 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 2b792b047690..b8e0610cb781 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -100,7 +100,8 @@ public interface SubscriptionOrBuilder extends * 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 - * pull. + * 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. @@ -119,7 +120,10 @@ public interface SubscriptionOrBuilder extends * 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. + * window.<br><br> + * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * changed in backward-incompatible ways and is not recommended for production + * use. It is not subject to any SLA or deprecation policy. * * * bool retain_acked_messages = 7; @@ -133,7 +137,10 @@ public interface SubscriptionOrBuilder extends * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -146,7 +153,10 @@ public interface SubscriptionOrBuilder extends * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -159,7 +169,10 @@ public interface SubscriptionOrBuilder extends * 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. + * minutes.<br><br> + * <b>ALPHA:</b> This feature is part of an 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. * * * .google.protobuf.Duration message_retention_duration = 8; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 6ebdc7c1d2e5..ebc74337892d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -73,6 +73,19 @@ private Topic( labels__.getKey(), labels__.getValue()); break; } + case 26: { + com.google.pubsub.v1.MessageStoragePolicy.Builder subBuilder = null; + if (messageStoragePolicy_ != null) { + subBuilder = messageStoragePolicy_.toBuilder(); + } + messageStoragePolicy_ = input.readMessage(com.google.pubsub.v1.MessageStoragePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageStoragePolicy_); + messageStoragePolicy_ = subBuilder.buildPartial(); + } + + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -253,6 +266,54 @@ public java.lang.String getLabelsOrThrow( return map.get(key); } + public static final int MESSAGE_STORAGE_POLICY_FIELD_NUMBER = 3; + private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_; + /** + *
+   * Policy constraining how messages published to the topic may be stored. It
+   * is determined when the topic is created based on the policy configured at
+   * the project level. It must not be set by the caller in the request to
+   * CreateTopic or to UpdateTopic. This field will be populated in the
+   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+   * response, then no constraints are in effect.
+   * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public boolean hasMessageStoragePolicy() { + return messageStoragePolicy_ != null; + } + /** + *
+   * Policy constraining how messages published to the topic may be stored. It
+   * is determined when the topic is created based on the policy configured at
+   * the project level. It must not be set by the caller in the request to
+   * CreateTopic or to UpdateTopic. This field will be populated in the
+   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+   * response, then no constraints are in effect.
+   * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { + return messageStoragePolicy_ == null ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; + } + /** + *
+   * Policy constraining how messages published to the topic may be stored. It
+   * is determined when the topic is created based on the policy configured at
+   * the project level. It must not be set by the caller in the request to
+   * CreateTopic or to UpdateTopic. This field will be populated in the
+   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+   * response, then no constraints are in effect.
+   * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder() { + return getMessageStoragePolicy(); + } + private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,6 +335,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + if (messageStoragePolicy_ != null) { + output.writeMessage(3, getMessageStoragePolicy()); + } unknownFields.writeTo(output); } @@ -295,6 +359,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, labels__); } + if (messageStoragePolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMessageStoragePolicy()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -315,6 +383,11 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getName()); result = result && internalGetLabels().equals( other.internalGetLabels()); + result = result && (hasMessageStoragePolicy() == other.hasMessageStoragePolicy()); + if (hasMessageStoragePolicy()) { + result = result && getMessageStoragePolicy() + .equals(other.getMessageStoragePolicy()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -332,6 +405,10 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + if (hasMessageStoragePolicy()) { + hash = (37 * hash) + MESSAGE_STORAGE_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getMessageStoragePolicy().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -490,6 +567,12 @@ public Builder clear() { name_ = ""; internalGetMutableLabels().clear(); + if (messageStoragePolicyBuilder_ == null) { + messageStoragePolicy_ = null; + } else { + messageStoragePolicy_ = null; + messageStoragePolicyBuilder_ = null; + } return this; } @@ -517,6 +600,11 @@ public com.google.pubsub.v1.Topic buildPartial() { result.name_ = name_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); + if (messageStoragePolicyBuilder_ == null) { + result.messageStoragePolicy_ = messageStoragePolicy_; + } else { + result.messageStoragePolicy_ = messageStoragePolicyBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -565,6 +653,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); + if (other.hasMessageStoragePolicy()) { + mergeMessageStoragePolicy(other.getMessageStoragePolicy()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -857,6 +948,204 @@ public Builder putAllLabels( .putAll(values); return this; } + + private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> messageStoragePolicyBuilder_; + /** + *
+     * Policy constraining how messages published to the topic may be stored. It
+     * is determined when the topic is created based on the policy configured at
+     * the project level. It must not be set by the caller in the request to
+     * CreateTopic or to UpdateTopic. This field will be populated in the
+     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+     * response, then no constraints are in effect.
+     * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public boolean hasMessageStoragePolicy() { + return messageStoragePolicyBuilder_ != null || messageStoragePolicy_ != null; + } + /** + *
+     * Policy constraining how messages published to the topic may be stored. It
+     * is determined when the topic is created based on the policy configured at
+     * the project level. It must not be set by the caller in the request to
+     * CreateTopic or to UpdateTopic. This field will be populated in the
+     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+     * response, then no constraints are in effect.
+     * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { + if (messageStoragePolicyBuilder_ == null) { + return messageStoragePolicy_ == null ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; + } else { + return messageStoragePolicyBuilder_.getMessage(); + } + } + /** + *
+     * Policy constraining how messages published to the topic may be stored. It
+     * is determined when the topic is created based on the policy configured at
+     * the project level. It must not be set by the caller in the request to
+     * CreateTopic or to UpdateTopic. This field will be populated in the
+     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+     * response, then no constraints are in effect.
+     * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy value) { + if (messageStoragePolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageStoragePolicy_ = value; + onChanged(); + } else { + messageStoragePolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Policy constraining how messages published to the topic may be stored. It
+     * is determined when the topic is created based on the policy configured at
+     * the project level. It must not be set by the caller in the request to
+     * CreateTopic or to UpdateTopic. This field will be populated in the
+     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+     * response, then no constraints are in effect.
+     * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public Builder setMessageStoragePolicy( + com.google.pubsub.v1.MessageStoragePolicy.Builder builderForValue) { + if (messageStoragePolicyBuilder_ == null) { + messageStoragePolicy_ = builderForValue.build(); + onChanged(); + } else { + messageStoragePolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Policy constraining how messages published to the topic may be stored. It
+     * is determined when the topic is created based on the policy configured at
+     * the project level. It must not be set by the caller in the request to
+     * CreateTopic or to UpdateTopic. This field will be populated in the
+     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+     * response, then no constraints are in effect.
+     * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy value) { + if (messageStoragePolicyBuilder_ == null) { + if (messageStoragePolicy_ != null) { + messageStoragePolicy_ = + com.google.pubsub.v1.MessageStoragePolicy.newBuilder(messageStoragePolicy_).mergeFrom(value).buildPartial(); + } else { + messageStoragePolicy_ = value; + } + onChanged(); + } else { + messageStoragePolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Policy constraining how messages published to the topic may be stored. It
+     * is determined when the topic is created based on the policy configured at
+     * the project level. It must not be set by the caller in the request to
+     * CreateTopic or to UpdateTopic. This field will be populated in the
+     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+     * response, then no constraints are in effect.
+     * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public Builder clearMessageStoragePolicy() { + if (messageStoragePolicyBuilder_ == null) { + messageStoragePolicy_ = null; + onChanged(); + } else { + messageStoragePolicy_ = null; + messageStoragePolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * Policy constraining how messages published to the topic may be stored. It
+     * is determined when the topic is created based on the policy configured at
+     * the project level. It must not be set by the caller in the request to
+     * CreateTopic or to UpdateTopic. This field will be populated in the
+     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+     * response, then no constraints are in effect.
+     * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicyBuilder() { + + onChanged(); + return getMessageStoragePolicyFieldBuilder().getBuilder(); + } + /** + *
+     * Policy constraining how messages published to the topic may be stored. It
+     * is determined when the topic is created based on the policy configured at
+     * the project level. It must not be set by the caller in the request to
+     * CreateTopic or to UpdateTopic. This field will be populated in the
+     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+     * response, then no constraints are in effect.
+     * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder() { + if (messageStoragePolicyBuilder_ != null) { + return messageStoragePolicyBuilder_.getMessageOrBuilder(); + } else { + return messageStoragePolicy_ == null ? + com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; + } + } + /** + *
+     * Policy constraining how messages published to the topic may be stored. It
+     * is determined when the topic is created based on the policy configured at
+     * the project level. It must not be set by the caller in the request to
+     * CreateTopic or to UpdateTopic. This field will be populated in the
+     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+     * response, then no constraints are in effect.
+     * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> + getMessageStoragePolicyFieldBuilder() { + if (messageStoragePolicyBuilder_ == null) { + messageStoragePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder>( + getMessageStoragePolicy(), + getParentForChildren(), + isClean()); + messageStoragePolicy_ = null; + } + return messageStoragePolicyBuilder_; + } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 7ae28923e135..aea59e1bc018 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -88,4 +88,44 @@ java.lang.String getLabelsOrDefault( java.lang.String getLabelsOrThrow( java.lang.String key); + + /** + *
+   * Policy constraining how messages published to the topic may be stored. It
+   * is determined when the topic is created based on the policy configured at
+   * the project level. It must not be set by the caller in the request to
+   * CreateTopic or to UpdateTopic. This field will be populated in the
+   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+   * response, then no constraints are in effect.
+   * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + boolean hasMessageStoragePolicy(); + /** + *
+   * Policy constraining how messages published to the topic may be stored. It
+   * is determined when the topic is created based on the policy configured at
+   * the project level. It must not be set by the caller in the request to
+   * CreateTopic or to UpdateTopic. This field will be populated in the
+   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+   * response, then no constraints are in effect.
+   * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy(); + /** + *
+   * Policy constraining how messages published to the topic may be stored. It
+   * is determined when the topic is created based on the policy configured at
+   * the project level. It must not be set by the caller in the request to
+   * CreateTopic or to UpdateTopic. This field will be populated in the
+   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
+   * response, then no constraints are in effect.
+   * 
+ * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + */ + com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 865b574fe79d..8d5f14f1b325 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -5,7 +5,10 @@ /** *
- * Request for the UpdateSnapshot method.
+ * Request for the UpdateSnapshot method.<br><br>
+ * <b>ALPHA:</b> This feature is part of an 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.
  * 
* * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} @@ -107,7 +110,7 @@ private UpdateSnapshotRequest( private com.google.pubsub.v1.Snapshot snapshot_; /** *
-   * The updated snpashot object.
+   * The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -117,7 +120,7 @@ public boolean hasSnapshot() { } /** *
-   * The updated snpashot object.
+   * The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -127,7 +130,7 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { } /** *
-   * The updated snpashot object.
+   * The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -346,7 +349,10 @@ protected Builder newBuilderForType( } /** *
-   * Request for the UpdateSnapshot method.
+   * Request for the UpdateSnapshot method.<br><br>
+   * <b>ALPHA:</b> This feature is part of an 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.
    * 
* * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} @@ -507,7 +513,7 @@ public Builder mergeFrom( com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotBuilder_; /** *
-     * The updated snpashot object.
+     * The updated snapshot object.
      * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -517,7 +523,7 @@ public boolean hasSnapshot() { } /** *
-     * The updated snpashot object.
+     * The updated snapshot object.
      * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -531,7 +537,7 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { } /** *
-     * The updated snpashot object.
+     * The updated snapshot object.
      * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -551,7 +557,7 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { } /** *
-     * The updated snpashot object.
+     * The updated snapshot object.
      * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -569,7 +575,7 @@ public Builder setSnapshot( } /** *
-     * The updated snpashot object.
+     * The updated snapshot object.
      * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -591,7 +597,7 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { } /** *
-     * The updated snpashot object.
+     * The updated snapshot object.
      * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -609,7 +615,7 @@ public Builder clearSnapshot() { } /** *
-     * The updated snpashot object.
+     * The updated snapshot object.
      * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -621,7 +627,7 @@ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { } /** *
-     * The updated snpashot object.
+     * The updated snapshot object.
      * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -636,7 +642,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { } /** *
-     * The updated snpashot object.
+     * The updated snapshot object.
      * 
* * .google.pubsub.v1.Snapshot snapshot = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 13c36c3a2f82..e80d7cda2f95 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -9,7 +9,7 @@ public interface UpdateSnapshotRequestOrBuilder extends /** *
-   * The updated snpashot object.
+   * The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -17,7 +17,7 @@ public interface UpdateSnapshotRequestOrBuilder extends boolean hasSnapshot(); /** *
-   * The updated snpashot object.
+   * The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1; @@ -25,7 +25,7 @@ public interface UpdateSnapshotRequestOrBuilder extends com.google.pubsub.v1.Snapshot getSnapshot(); /** *
-   * The updated snpashot object.
+   * The updated snapshot object.
    * 
* * .google.pubsub.v1.Snapshot snapshot = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index cbe32588bc66..611de401936c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -107,7 +107,7 @@ private UpdateTopicRequest( private com.google.pubsub.v1.Topic topic_; /** *
-   * The topic to update.
+   * The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1; @@ -117,7 +117,7 @@ public boolean hasTopic() { } /** *
-   * The topic to update.
+   * The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1; @@ -127,7 +127,7 @@ public com.google.pubsub.v1.Topic getTopic() { } /** *
-   * The topic to update.
+   * The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1; @@ -140,8 +140,11 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { private com.google.protobuf.FieldMask updateMask_; /** *
-   * Indicates which fields in the provided topic to update.
-   * Must be specified and non-empty.
+   * Indicates which fields in the provided topic to update. Must be specified
+   * and non-empty. Note that if `update_mask` contains
+   * "message_storage_policy" then the new value will be determined based on the
+   * policy configured at the project or organization level. The
+   * `message_storage_policy` must not be set in the `topic` provided above.
    * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -151,8 +154,11 @@ public boolean hasUpdateMask() { } /** *
-   * Indicates which fields in the provided topic to update.
-   * Must be specified and non-empty.
+   * Indicates which fields in the provided topic to update. Must be specified
+   * and non-empty. Note that if `update_mask` contains
+   * "message_storage_policy" then the new value will be determined based on the
+   * policy configured at the project or organization level. The
+   * `message_storage_policy` must not be set in the `topic` provided above.
    * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -162,8 +168,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { } /** *
-   * Indicates which fields in the provided topic to update.
-   * Must be specified and non-empty.
+   * Indicates which fields in the provided topic to update. Must be specified
+   * and non-empty. Note that if `update_mask` contains
+   * "message_storage_policy" then the new value will be determined based on the
+   * policy configured at the project or organization level. The
+   * `message_storage_policy` must not be set in the `topic` provided above.
    * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -507,7 +516,7 @@ public Builder mergeFrom( com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicBuilder_; /** *
-     * The topic to update.
+     * The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1; @@ -517,7 +526,7 @@ public boolean hasTopic() { } /** *
-     * The topic to update.
+     * The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1; @@ -531,7 +540,7 @@ public com.google.pubsub.v1.Topic getTopic() { } /** *
-     * The topic to update.
+     * The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1; @@ -551,7 +560,7 @@ public Builder setTopic(com.google.pubsub.v1.Topic value) { } /** *
-     * The topic to update.
+     * The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1; @@ -569,7 +578,7 @@ public Builder setTopic( } /** *
-     * The topic to update.
+     * The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1; @@ -591,7 +600,7 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { } /** *
-     * The topic to update.
+     * The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1; @@ -609,7 +618,7 @@ public Builder clearTopic() { } /** *
-     * The topic to update.
+     * The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1; @@ -621,7 +630,7 @@ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { } /** *
-     * The topic to update.
+     * The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1; @@ -636,7 +645,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { } /** *
-     * The topic to update.
+     * The updated topic object.
      * 
* * .google.pubsub.v1.Topic topic = 1; @@ -660,8 +669,11 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** *
-     * Indicates which fields in the provided topic to update.
-     * Must be specified and non-empty.
+     * Indicates which fields in the provided topic to update. Must be specified
+     * and non-empty. Note that if `update_mask` contains
+     * "message_storage_policy" then the new value will be determined based on the
+     * policy configured at the project or organization level. The
+     * `message_storage_policy` must not be set in the `topic` provided above.
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -671,8 +683,11 @@ public boolean hasUpdateMask() { } /** *
-     * Indicates which fields in the provided topic to update.
-     * Must be specified and non-empty.
+     * Indicates which fields in the provided topic to update. Must be specified
+     * and non-empty. Note that if `update_mask` contains
+     * "message_storage_policy" then the new value will be determined based on the
+     * policy configured at the project or organization level. The
+     * `message_storage_policy` must not be set in the `topic` provided above.
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -686,8 +701,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { } /** *
-     * Indicates which fields in the provided topic to update.
-     * Must be specified and non-empty.
+     * Indicates which fields in the provided topic to update. Must be specified
+     * and non-empty. Note that if `update_mask` contains
+     * "message_storage_policy" then the new value will be determined based on the
+     * policy configured at the project or organization level. The
+     * `message_storage_policy` must not be set in the `topic` provided above.
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -707,8 +725,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { } /** *
-     * Indicates which fields in the provided topic to update.
-     * Must be specified and non-empty.
+     * Indicates which fields in the provided topic to update. Must be specified
+     * and non-empty. Note that if `update_mask` contains
+     * "message_storage_policy" then the new value will be determined based on the
+     * policy configured at the project or organization level. The
+     * `message_storage_policy` must not be set in the `topic` provided above.
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -726,8 +747,11 @@ public Builder setUpdateMask( } /** *
-     * Indicates which fields in the provided topic to update.
-     * Must be specified and non-empty.
+     * Indicates which fields in the provided topic to update. Must be specified
+     * and non-empty. Note that if `update_mask` contains
+     * "message_storage_policy" then the new value will be determined based on the
+     * policy configured at the project or organization level. The
+     * `message_storage_policy` must not be set in the `topic` provided above.
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -749,8 +773,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } /** *
-     * Indicates which fields in the provided topic to update.
-     * Must be specified and non-empty.
+     * Indicates which fields in the provided topic to update. Must be specified
+     * and non-empty. Note that if `update_mask` contains
+     * "message_storage_policy" then the new value will be determined based on the
+     * policy configured at the project or organization level. The
+     * `message_storage_policy` must not be set in the `topic` provided above.
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -768,8 +795,11 @@ public Builder clearUpdateMask() { } /** *
-     * Indicates which fields in the provided topic to update.
-     * Must be specified and non-empty.
+     * Indicates which fields in the provided topic to update. Must be specified
+     * and non-empty. Note that if `update_mask` contains
+     * "message_storage_policy" then the new value will be determined based on the
+     * policy configured at the project or organization level. The
+     * `message_storage_policy` must not be set in the `topic` provided above.
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -781,8 +811,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { } /** *
-     * Indicates which fields in the provided topic to update.
-     * Must be specified and non-empty.
+     * Indicates which fields in the provided topic to update. Must be specified
+     * and non-empty. Note that if `update_mask` contains
+     * "message_storage_policy" then the new value will be determined based on the
+     * policy configured at the project or organization level. The
+     * `message_storage_policy` must not be set in the `topic` provided above.
      * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -797,8 +830,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } /** *
-     * Indicates which fields in the provided topic to update.
-     * Must be specified and non-empty.
+     * Indicates which fields in the provided topic to update. Must be specified
+     * and non-empty. Note that if `update_mask` contains
+     * "message_storage_policy" then the new value will be determined based on the
+     * policy configured at the project or organization level. The
+     * `message_storage_policy` must not be set in the `topic` provided above.
      * 
* * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index dfe961eaed42..a0f5b5c5e39e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -9,7 +9,7 @@ public interface UpdateTopicRequestOrBuilder extends /** *
-   * The topic to update.
+   * The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1; @@ -17,7 +17,7 @@ public interface UpdateTopicRequestOrBuilder extends boolean hasTopic(); /** *
-   * The topic to update.
+   * The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1; @@ -25,7 +25,7 @@ public interface UpdateTopicRequestOrBuilder extends com.google.pubsub.v1.Topic getTopic(); /** *
-   * The topic to update.
+   * The updated topic object.
    * 
* * .google.pubsub.v1.Topic topic = 1; @@ -34,8 +34,11 @@ public interface UpdateTopicRequestOrBuilder extends /** *
-   * Indicates which fields in the provided topic to update.
-   * Must be specified and non-empty.
+   * Indicates which fields in the provided topic to update. Must be specified
+   * and non-empty. Note that if `update_mask` contains
+   * "message_storage_policy" then the new value will be determined based on the
+   * policy configured at the project or organization level. The
+   * `message_storage_policy` must not be set in the `topic` provided above.
    * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -43,8 +46,11 @@ public interface UpdateTopicRequestOrBuilder extends boolean hasUpdateMask(); /** *
-   * Indicates which fields in the provided topic to update.
-   * Must be specified and non-empty.
+   * Indicates which fields in the provided topic to update. Must be specified
+   * and non-empty. Note that if `update_mask` contains
+   * "message_storage_policy" then the new value will be determined based on the
+   * policy configured at the project or organization level. The
+   * `message_storage_policy` must not be set in the `topic` provided above.
    * 
* * .google.protobuf.FieldMask update_mask = 2; @@ -52,8 +58,11 @@ public interface UpdateTopicRequestOrBuilder extends com.google.protobuf.FieldMask getUpdateMask(); /** *
-   * Indicates which fields in the provided topic to update.
-   * Must be specified and non-empty.
+   * Indicates which fields in the provided topic to update. Must be specified
+   * and non-empty. Note that if `update_mask` contains
+   * "message_storage_policy" then the new value will be determined based on the
+   * policy configured at the project or organization level. The
+   * `message_storage_policy` must not be set in the `topic` provided above.
    * 
* * .google.protobuf.FieldMask update_mask = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 058e0ee1776e..e70440314aee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// Copyright 2018 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,10 +31,86 @@ option java_package = "com.google.pubsub.v1"; option php_namespace = "Google\\Cloud\\PubSub\\V1"; +// The service that an application uses to manipulate topics, and to send +// messages to a topic. +service Publisher { + // Creates the given topic with the given name. See the + // resource name rules. + rpc CreateTopic(Topic) returns (Topic) { + option (google.api.http) = { + put: "/v1/{name=projects/*/topics/*}" + body: "*" + }; + } + + // Updates an existing topic. Note that certain properties of a + // topic are not modifiable. + rpc UpdateTopic(UpdateTopicRequest) returns (Topic) { + option (google.api.http) = { + patch: "/v1/{topic.name=projects/*/topics/*}" + body: "*" + }; + } + + // Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic + // does not exist. The message payload must not be empty; it must contain + // either a non-empty data field, or at least one attribute. + rpc Publish(PublishRequest) returns (PublishResponse) { + option (google.api.http) = { + post: "/v1/{topic=projects/*/topics/*}:publish" + body: "*" + }; + } + + // Gets the configuration of a topic. + rpc GetTopic(GetTopicRequest) returns (Topic) { + option (google.api.http) = { + get: "/v1/{topic=projects/*/topics/*}" + }; + } + + // Lists matching topics. + rpc ListTopics(ListTopicsRequest) returns (ListTopicsResponse) { + option (google.api.http) = { + get: "/v1/{project=projects/*}/topics" + }; + } + + // Lists the names of the subscriptions on this topic. + rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) returns (ListTopicSubscriptionsResponse) { + option (google.api.http) = { + get: "/v1/{topic=projects/*/topics/*}/subscriptions" + }; + } + + // Lists the names of the snapshots on this topic.

+ // ALPHA: This feature is part of an 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. + rpc ListTopicSnapshots(ListTopicSnapshotsRequest) returns (ListTopicSnapshotsResponse) { + option (google.api.http) = { + get: "/v1/{topic=projects/*/topics/*}/snapshots" + }; + } + + // 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_`. + rpc DeleteTopic(DeleteTopicRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{topic=projects/*/topics/*}" + }; + } +} + // The service that an application uses to manipulate subscriptions and to -// consume messages from a subscription via the `Pull` method. +// consume messages from a subscription via the `Pull` method or by +// establishing a bi-directional stream using the `StreamingPull` method. service Subscriber { - // Creates a subscription to a given topic. + // 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`. // @@ -47,7 +123,8 @@ service Subscriber { rpc CreateSubscription(Subscription) returns (Subscription) { option (google.api.http) = { put: "/v1/{name=projects/*/subscriptions/*}" - body: "*" }; + body: "*" + }; } // Gets the configuration details of a subscription. @@ -59,10 +136,6 @@ service Subscriber { // Updates an existing subscription. Note that certain properties of a // subscription, such as its topic, are not modifiable. - // NOTE: The style guide requires body: "subscription" instead of body: "*". - // Keeping the latter for internal consistency in V1, however it should be - // corrected in V2. See - // https://cloud.google.com/apis/design/standard_methods#update for details. rpc UpdateSubscription(UpdateSubscriptionRequest) returns (Subscription) { option (google.api.http) = { patch: "/v1/{subscription.name=projects/*/subscriptions/*}" @@ -125,18 +198,13 @@ service Subscriber { }; } - // (EXPERIMENTAL) StreamingPull is an experimental feature. This RPC will - // respond with UNIMPLEMENTED errors unless you have been invited to test - // this feature. Contact cloud-pubsub@google.com with any questions. - // // 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 `OK` to reassign - // server-side resources, in which case, the client should re-establish the - // stream. `UNAVAILABLE` may also be returned in the case of a transient error - // (e.g., a server restart). These should also be retried by the client. Flow - // control can be achieved by configuring the underlying RPC channel. + // 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. rpc StreamingPull(stream StreamingPullRequest) returns (stream StreamingPullResponse); // Modifies the `PushConfig` for a specified subscription. @@ -148,26 +216,45 @@ service Subscriber { rpc ModifyPushConfig(ModifyPushConfigRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig" - body: "*" }; + body: "*" + }; } - // Lists the existing snapshots. + // Gets the configuration details of a snapshot.

+ // ALPHA: This feature is part of an 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. + rpc GetSnapshot(GetSnapshotRequest) returns (Snapshot) { + option (google.api.http) = { + get: "/v1/{snapshot=projects/*/snapshots/*}" + }; + } + + // Lists the existing snapshots.

+ // ALPHA: This feature is part of an 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. rpc ListSnapshots(ListSnapshotsRequest) returns (ListSnapshotsResponse) { option (google.api.http) = { get: "/v1/{project=projects/*}/snapshots" }; } - // Creates a snapshot from the requested subscription. + // Creates a snapshot from the requested subscription.

+ // ALPHA: This feature is part of an 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. // If the snapshot already exists, returns `ALREADY_EXISTS`. // If the requested subscription doesn't exist, returns `NOT_FOUND`. - // - // If the name is not provided in the request, the server will assign a random + // 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](https://cloud.google.com/pubsub/docs/overview#names). - // The generated name is populated in the returned Snapshot object. - // Note that for REST API requests, you must specify a name in the request. + // to the [resource name format](https://cloud.google.com/pubsub/docs/overview#names). + // The generated + // name is populated in the returned Snapshot object. Note that for REST API + // requests, you must specify a name in the request. rpc CreateSnapshot(CreateSnapshotRequest) returns (Snapshot) { option (google.api.http) = { put: "/v1/{name=projects/*/snapshots/*}" @@ -175,19 +262,23 @@ service Subscriber { }; } - // Updates an existing snapshot. Note that certain properties of a snapshot - // are not modifiable. - // NOTE: The style guide requires body: "snapshot" instead of body: "*". - // Keeping the latter for internal consistency in V1, however it should be - // corrected in V2. See - // https://cloud.google.com/apis/design/standard_methods#update for details. + // Updates an existing snapshot.

+ // ALPHA: This feature is part of an 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. + // Note that certain properties of a snapshot are not modifiable. rpc UpdateSnapshot(UpdateSnapshotRequest) returns (Snapshot) { option (google.api.http) = { patch: "/v1/{snapshot.name=projects/*/snapshots/*}" - body: "*" }; + body: "*" + }; } - // Removes an existing snapshot. All messages retained in the snapshot + // Removes an existing snapshot.

+ // ALPHA: This feature is part of an 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. + // When the snapshot is deleted, all messages retained in the snapshot // are immediately dropped. After a snapshot is deleted, a new one may be // created with the same name, but the new one has no association with the old // snapshot or its subscription, unless the same subscription is specified. @@ -198,7 +289,10 @@ service Subscriber { } // Seeks an existing subscription to a point in time or to a given snapshot, - // whichever is provided in the request. + // whichever is provided in the request.

+ // ALPHA: This feature is part of an 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. rpc Seek(SeekRequest) returns (SeekResponse) { option (google.api.http) = { post: "/v1/{subscription=projects/*/subscriptions/*}:seek" @@ -207,70 +301,14 @@ service Subscriber { } } -// The service that an application uses to manipulate topics, and to send -// messages to a topic. -service Publisher { - // Creates the given topic with the given name. - rpc CreateTopic(Topic) returns (Topic) { - option (google.api.http) = { - put: "/v1/{name=projects/*/topics/*}" - body: "*" - }; - } - - // Updates an existing topic. Note that certain properties of a topic are not - // modifiable. Options settings follow the style guide: - // NOTE: The style guide requires body: "topic" instead of body: "*". - // Keeping the latter for internal consistency in V1, however it should be - // corrected in V2. See - // https://cloud.google.com/apis/design/standard_methods#update for details. - rpc UpdateTopic(UpdateTopicRequest) returns (Topic) { - option (google.api.http) = { - patch: "/v1/{topic.name=projects/*/topics/*}" - body: "*" }; - } - - // Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic - // does not exist. The message payload must not be empty; it must contain - // either a non-empty data field, or at least one attribute. - rpc Publish(PublishRequest) returns (PublishResponse) { - option (google.api.http) = { - post: "/v1/{topic=projects/*/topics/*}:publish" - body: "*" - }; - } - - // Gets the configuration of a topic. - rpc GetTopic(GetTopicRequest) returns (Topic) { - option (google.api.http) = { - get: "/v1/{topic=projects/*/topics/*}" - }; - } - - // Lists matching topics. - rpc ListTopics(ListTopicsRequest) returns (ListTopicsResponse) { - option (google.api.http) = { - get: "/v1/{project=projects/*}/topics" - }; - } - - // Lists the name of the subscriptions for this topic. - rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) returns (ListTopicSubscriptionsResponse) { - option (google.api.http) = { - get: "/v1/{topic=projects/*/topics/*}/subscriptions" - }; - } - - // 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_`. - rpc DeleteTopic(DeleteTopicRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/{topic=projects/*/topics/*}" - }; - } +message MessageStoragePolicy { + // The list of GCP regions where messages that are published to the topic may + // be persisted in storage. Messages published by publishers running in + // non-allowed GCP regions (or running outside of GCP altogether) will be + // routed for storage in one of the allowed regions. An empty list indicates a + // misconfiguration at the project or organization level, which will result in + // all Publish operations failing. + repeated string allowed_persistence_regions = 1; } // A topic resource. @@ -285,6 +323,14 @@ message Topic { // User labels. map labels = 2; + + // Policy constraining how messages published to the topic may be stored. It + // is determined when the topic is created based on the policy configured at + // the project level. It must not be set by the caller in the request to + // CreateTopic or to UpdateTopic. This field will be populated in the + // responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the + // response, then no constraints are in effect. + MessageStoragePolicy message_storage_policy = 3; } // A message data and its attributes. The message payload must not be empty; @@ -317,11 +363,14 @@ message GetTopicRequest { // Request for the UpdateTopic method. message UpdateTopicRequest { - // The topic to update. + // The updated topic object. Topic topic = 1; - // Indicates which fields in the provided topic to update. - // Must be specified and non-empty. + // Indicates which fields in the provided topic to update. Must be specified + // and non-empty. Note that if `update_mask` contains + // "message_storage_policy" then the new value will be determined based on the + // policy configured at the project or organization level. The + // `message_storage_policy` must not be set in the `topic` provided above. google.protobuf.FieldMask update_mask = 2; } @@ -394,6 +443,38 @@ message ListTopicSubscriptionsResponse { string next_page_token = 2; } +// Request for the `ListTopicSnapshots` method.

+// ALPHA: This feature is part of an 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. +message ListTopicSnapshotsRequest { + // The name of the topic that snapshots are attached to. + // Format is `projects/{project}/topics/{topic}`. + string topic = 1; + + // Maximum number of snapshot names to return. + int32 page_size = 2; + + // The value returned by the last `ListTopicSnapshotsResponse`; indicates + // that this is a continuation of a prior `ListTopicSnapshots` call, and + // that the system should return the next page of data. + string page_token = 3; +} + +// Response for the `ListTopicSnapshots` method.

+// ALPHA: This feature is part of an 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. +message ListTopicSnapshotsResponse { + // The names of the snapshots that match the request. + repeated string snapshots = 1; + + // If not empty, indicates that there may be more snapshots that match + // the request; this value should be passed in a new + // `ListTopicSnapshotsRequest` to get more snapshots. + string next_page_token = 2; +} + // Request for the `DeleteTopic` method. message DeleteTopicRequest { // Name of the topic to delete. @@ -431,7 +512,8 @@ message Subscription { // 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 - // pull. + // 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. @@ -446,7 +528,10 @@ message Subscription { // 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. + // window.

+ // ALPHA: This feature is part of an alpha release. This API might be + // changed in backward-incompatible ways and is not recommended for production + // use. It is not subject to any SLA or deprecation policy. bool retain_acked_messages = 7; // How long to retain unacknowledged messages in the subscription's backlog, @@ -454,7 +539,10 @@ message Subscription { // 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. + // minutes.

+ // ALPHA: This feature is part of an 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. google.protobuf.Duration message_retention_duration = 8; // User labels. @@ -561,7 +649,7 @@ message ModifyPushConfigRequest { // 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` is not called. + // the subscription if `Pull` or `StreamingPull` is not called. PushConfig push_config = 2; } @@ -674,7 +762,10 @@ message StreamingPullResponse { repeated ReceivedMessage received_messages = 1; } -// Request for the `CreateSnapshot` method. +// Request for the `CreateSnapshot` method.

+// ALPHA: This feature is part of an 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. message CreateSnapshotRequest { // Optional user-provided name for this snapshot. // If the name is not provided in the request, the server will assign a random @@ -693,11 +784,17 @@ message CreateSnapshotRequest { // successful completion of the CreateSnapshot request. // Format is `projects/{project}/subscriptions/{sub}`. string subscription = 2; + + // User labels. + map labels = 3; } -// Request for the UpdateSnapshot method. +// Request for the UpdateSnapshot method.

+// ALPHA: This feature is part of an 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. message UpdateSnapshotRequest { - // The updated snpashot object. + // The updated snapshot object. Snapshot snapshot = 1; // Indicates which fields in the provided snapshot to update. @@ -705,7 +802,10 @@ message UpdateSnapshotRequest { google.protobuf.FieldMask update_mask = 2; } -// A snapshot resource. +// A snapshot resource.

+// ALPHA: This feature is part of an 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. message Snapshot { // The name of the snapshot. string name = 1; @@ -721,14 +821,28 @@ message Snapshot { // 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. + // exists -- will expire in 4 days. The service will refuse to create a + // snapshot that would expire in less than 1 hour after creation. google.protobuf.Timestamp expire_time = 3; // User labels. map labels = 4; } -// Request for the `ListSnapshots` method. +// Request for the GetSnapshot method.

+// ALPHA: This feature is part of an 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. +message GetSnapshotRequest { + // The name of the snapshot to get. + // Format is `projects/{project}/snapshots/{snap}`. + string snapshot = 1; +} + +// Request for the `ListSnapshots` method.

+// ALPHA: This feature is part of an 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. message ListSnapshotsRequest { // The name of the cloud project that snapshots belong to. // Format is `projects/{project}`. @@ -743,7 +857,10 @@ message ListSnapshotsRequest { string page_token = 3; } -// Response for the `ListSnapshots` method. +// Response for the `ListSnapshots` method.

+// ALPHA: This feature is part of an 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. message ListSnapshotsResponse { // The resulting snapshots. repeated Snapshot snapshots = 1; @@ -753,14 +870,20 @@ message ListSnapshotsResponse { string next_page_token = 2; } -// Request for the `DeleteSnapshot` method. +// Request for the `DeleteSnapshot` method.

+// ALPHA: This feature is part of an 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. message DeleteSnapshotRequest { // The name of the snapshot to delete. // Format is `projects/{project}/snapshots/{snap}`. string snapshot = 1; } -// Request for the `Seek` method. +// Request for the `Seek` method.

+// ALPHA: This feature is part of an 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. message SeekRequest { // The subscription to affect. string subscription = 1; From d17ce799199417a08b5fcbb493f194b0844759b2 Mon Sep 17 00:00:00 2001 From: Hanzhen Yi <33737743+hzyi-google@users.noreply.github.com> Date: Thu, 21 Jun 2018 14:51:15 -0700 Subject: [PATCH 0023/2363] Release 0.53.0 (#3399) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 2823478230d3..64c807f77d71 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.34.0 + 1.35.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.34.0' +compile 'com.google.cloud:google-cloud-pubsub:1.35.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.35.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cdd221936dc9..13057932bd99 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.34.1-SNAPSHOT + 1.35.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.52.1-alpha-SNAPSHOT + 0.53.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index de0551a1e388..1c4b3c399f31 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.16.1-SNAPSHOT + 1.17.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.17.1-SNAPSHOT + 0.18.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b9e5672b69f5..a3d5f61d958a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.16.1-SNAPSHOT + 1.17.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.17.1-SNAPSHOT + 0.18.0 From 3a297f0b88cb46f1620e4ec0b1b6bcc02be85be9 Mon Sep 17 00:00:00 2001 From: Hanzhen Yi <33737743+hzyi-google@users.noreply.github.com> Date: Fri, 22 Jun 2018 10:36:30 -0700 Subject: [PATCH 0024/2363] Bump to next snapshot version (#3401) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 13057932bd99..304dbc467209 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.35.0 + 1.35.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.53.0-alpha + 0.53.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1c4b3c399f31..48923a87e6a8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.17.0 + 1.17.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.18.0 + 0.18.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a3d5f61d958a..0c6fa4db04b1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.17.0 + 1.17.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.18.0 + 0.18.1-SNAPSHOT From ec79074c1a1e44ca0fa428291ddb1a9af943c562 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 28 Jun 2018 10:43:27 -0700 Subject: [PATCH 0025/2363] Fixing versioning comments for GA clients (#3411) --- java-pubsub/google-cloud-pubsub/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 64c807f77d71..0ab4a09c331c 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -216,9 +216,7 @@ Versioning This library follows [Semantic Versioning](http://semver.org/). -It is currently in major version zero (``0.y.z``), which means that anything -may change at any time and the public API should not be considered -stable. +It is currently in major version one (``1.y.z``), which means that the public API should be considered stable. Contributing ------------ From f0cd500223a952e11a175412caf02798a79e1031 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Mon, 9 Jul 2018 14:06:12 -0700 Subject: [PATCH 0026/2363] new approach for snippet injection (#2838) The current snippet injector does not work properly with google-java-format, because GJF formats short javadoc comments on one line, eg "/** comment */". However, the injector script looks for "/**" on a line by itself. The script will also not work if/when we move to Java 8, due to lack of parser support. This PR takes a different approach of not caring about Java syntax and copy-paste everything in the SNIPPET block. While less powerful, it is more robust. As written, the script is also easier to use. There's no need to tell it what file contains snippets and where to copy the snippets to. The script recursively scan given directories. Updates #2413. * license * Add test case for getSnip * Add support for cloud region tags to snippet.go --- .../cloud/pubsub/v1/MessageReceiver.java | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java index c247260d3831..d1428a6d5cc2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java @@ -22,27 +22,31 @@ public interface MessageReceiver { /** * Called when a message is received by the subscriber. The implementation must arrange for {@link - * AckReplyConsumer#ack()} or {@link - * AckReplyConsumer#nack()} to be called after processing the {@code message}. + * AckReplyConsumer#ack()} or {@link AckReplyConsumer#nack()} to be called after processing the + * {@code message}. + * * - *

This {@code MessageReceiver} passes all messages to a {@code BlockingQueue}. - * This method can be called concurrently from multiple threads, - * so it is important that the queue be thread-safe. + *

{@code
+   * // This {@code MessageReceiver} passes all messages to a {@link BlockingQueue}. This method can
+   * // be called concurrently from multiple threads, so it is important that the queue be
+   * // thread-safe.
+   * //
+   * // This example is for illustration. Implementations may directly process messages instead of
+   * // sending them to queues.
+   * MessageReceiver receiver =
+   *     new MessageReceiver() {
+   *       public void receiveMessage(final PubsubMessage message, final AckReplyConsumer consumer) {
+   *         if (blockingQueue.offer(message)) {
+   *           consumer.ack();
+   *         } else {
+   *           consumer.nack();
+   *         }
+   *       }
+   *     };
    *
-   * This example is for illustration. Implementations may directly process messages
-   * instead of sending them to queues.
-   * 
 {@code
-   * MessageReceiver receiver = new MessageReceiver() {
-   *   public void receiveMessage(final PubsubMessage message, final AckReplyConsumer consumer) {
-   *     if (blockingQueue.offer(message)) {
-   *       consumer.ack();
-   *     } else {
-   *       consumer.nack();
-   *     }
-   *   }
-   * };
    * }
* + * */ void receiveMessage(final PubsubMessage message, final AckReplyConsumer consumer); } From 392e88243a1c5b396142c5b104f36460b5ad64cf Mon Sep 17 00:00:00 2001 From: Andrii Date: Thu, 12 Jul 2018 11:00:28 +0300 Subject: [PATCH 0027/2363] Fix indentation in code example (#3456) --- java-pubsub/google-cloud-pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 0ab4a09c331c..3bfd7455ea5c 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -118,7 +118,7 @@ try { ApiFuture messageIdFuture = publisher.publish(pubsubMessage); } finally { if (publisher != null) { - publisher.shutdown(); + publisher.shutdown(); } } ``` From 53e5ed36ea2cfc62e27089610e3fdf0f59aa0448 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 12 Jul 2018 11:57:22 -0700 Subject: [PATCH 0028/2363] Release 0.54.0 (#3457) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 3bfd7455ea5c..9a26b98f95ef 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.35.0 + 1.36.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.35.0' +compile 'com.google.cloud:google-cloud-pubsub:1.36.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.36.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 304dbc467209..8ebb159ed3e9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.35.1-SNAPSHOT + 1.36.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.53.1-alpha-SNAPSHOT + 0.54.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 48923a87e6a8..23b7d4615d7b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.17.1-SNAPSHOT + 1.18.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.18.1-SNAPSHOT + 0.19.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0c6fa4db04b1..09046257466c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.17.1-SNAPSHOT + 1.18.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.18.1-SNAPSHOT + 0.19.0 From 4ff397d3e7ad7247e79c294bd2673479364fabce Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 12 Jul 2018 12:47:20 -0700 Subject: [PATCH 0029/2363] Bumping to snapshot versions (#3463) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8ebb159ed3e9..260333813c8a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.36.0 + 1.36.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.54.0-alpha + 0.54.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 23b7d4615d7b..5cc40cca6be3 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.18.0 + 1.18.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.19.0 + 0.19.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 09046257466c..11198f2e8532 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.18.0 + 1.18.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.19.0 + 0.19.1-SNAPSHOT From 911b7a5caed27fe0cc0934180e0ef4be0e93be9f Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Thu, 19 Jul 2018 16:14:41 -0700 Subject: [PATCH 0030/2363] update GAPIC clients (#3483) --- .../java/com/google/cloud/pubsub/v1/TopicAdminClient.java | 4 ++-- .../java/com/google/cloud/pubsub/v1/TopicAdminSettings.java | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 142fb81abf70..f56f59ab8ec3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -297,7 +297,7 @@ public final UnaryCallable createTopicCallable() { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final Topic updateTopic(UpdateTopicRequest request) { + public final Topic updateTopic(UpdateTopicRequest request) { return updateTopicCallable().call(request); } @@ -321,7 +321,7 @@ public final UnaryCallable createTopicCallable() { * } *
*/ - /* package-private */ final UnaryCallable updateTopicCallable() { + public final UnaryCallable updateTopicCallable() { return stub.updateTopicCallable(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 92e41dddb70e..f61ae5c6bec4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -86,7 +86,7 @@ public UnaryCallSettings createTopicSettings() { } /** Returns the object with the settings used for calls to updateTopic. */ - /* package-private */ UnaryCallSettings updateTopicSettings() { + public UnaryCallSettings updateTopicSettings() { return ((PublisherStubSettings) getStubSettings()).updateTopicSettings(); } @@ -237,8 +237,7 @@ public UnaryCallSettings.Builder createTopicSettings() { } /** Returns the builder for the settings used for calls to updateTopic. */ - /* package-private */ UnaryCallSettings.Builder - updateTopicSettings() { + public UnaryCallSettings.Builder updateTopicSettings() { return getStubSettingsBuilder().updateTopicSettings(); } From c13abd7025200de696b7e9b93a5aa5a137f330c8 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Thu, 19 Jul 2018 18:22:07 -0700 Subject: [PATCH 0031/2363] Release 0.55.0 (#3485) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 9a26b98f95ef..7d44a397fb75 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.36.0 + 1.37.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.36.0' +compile 'com.google.cloud:google-cloud-pubsub:1.37.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.37.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 260333813c8a..08dccb1f821d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.36.1-SNAPSHOT + 1.37.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.54.1-alpha-SNAPSHOT + 0.55.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5cc40cca6be3..1394f7c8ede3 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.18.1-SNAPSHOT + 1.19.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.19.1-SNAPSHOT + 0.20.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 11198f2e8532..793567217f56 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.18.1-SNAPSHOT + 1.19.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.19.1-SNAPSHOT + 0.20.0 From a32a16bd15cd2cd45a0727ebe6d2190670de258b Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Fri, 20 Jul 2018 11:26:20 -0700 Subject: [PATCH 0032/2363] bump version for development (#3486) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 08dccb1f821d..1f26911239f8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.37.0 + 1.37.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.55.0-alpha + 0.55.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1394f7c8ede3..7a6d1ddc5054 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.19.0 + 1.19.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.20.0 + 0.20.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 793567217f56..142c8e36d9dc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.19.0 + 1.19.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.20.0 + 0.20.1-SNAPSHOT From 56ee3a7754c7db49ce05ad5ad51cda274e4377e7 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Fri, 20 Jul 2018 12:23:34 -0700 Subject: [PATCH 0033/2363] Release 0.55.1 (#3489) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 7d44a397fb75..5d56d713dfac 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.37.0 + 1.37.1 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.37.0' +compile 'com.google.cloud:google-cloud-pubsub:1.37.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.37.1" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1f26911239f8..534012030ee1 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.37.1-SNAPSHOT + 1.37.1 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.55.1-alpha-SNAPSHOT + 0.55.1-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7a6d1ddc5054..7971b85a7060 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.19.1-SNAPSHOT + 1.19.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.20.1-SNAPSHOT + 0.20.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 142c8e36d9dc..6fe40e2c2397 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.19.1-SNAPSHOT + 1.19.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.20.1-SNAPSHOT + 0.20.1 From f95dacbbdfe345e32427e1c614519e3ddaa39cb5 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Fri, 20 Jul 2018 13:32:48 -0700 Subject: [PATCH 0034/2363] bump version for development (#3490) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 534012030ee1..e054d4cd3d64 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.37.1 + 1.37.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.55.1-alpha + 0.55.2-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7971b85a7060..e5c6d0bea75a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.19.1 + 1.19.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.20.1 + 0.20.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6fe40e2c2397..ceebeb38f2c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.19.1 + 1.19.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.20.1 + 0.20.2-SNAPSHOT From 6e3d32e62c9f8f46e71cd8bde26646e29916285c Mon Sep 17 00:00:00 2001 From: Hanzhen Yi <33737743+hzyi-google@users.noreply.github.com> Date: Tue, 24 Jul 2018 11:21:16 -0700 Subject: [PATCH 0035/2363] Fix pom urls (#3499) --- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e054d4cd3d64..0504f021db44 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -5,7 +5,7 @@ 1.37.2-SNAPSHOT jar Google Cloud Pub/Sub - https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-pubsub + https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub Java idiomatic client for Google Cloud Pub/Sub. From 4449ebe868a07391ec2c68ef1273e3edc1b101b1 Mon Sep 17 00:00:00 2001 From: Kyung Hwa Kim Date: Tue, 24 Jul 2018 15:36:36 -0400 Subject: [PATCH 0036/2363] pubsub: minor doc fix for Publisher (#3501) --- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 55434aa17775..2b1fa858010a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -203,7 +203,7 @@ public ApiFuture publish(PubsubMessage message) { final OutstandingPublish outstandingPublish = new OutstandingPublish(publishResult, message); messagesBatchLock.lock(); try { - // Check if the next message makes the batch exceed the current batch byte size. + // Check if the next message makes the current batch exceed the max batch byte size. if (!messagesBatch.isEmpty() && hasBatchingBytes() && batchedBytes + messageSize >= getMaxBatchBytes()) { @@ -212,8 +212,8 @@ && hasBatchingBytes() batchedBytes = 0; } - // Border case if the message to send is greater equals to the max batch size then can't be - // included in the current batch and instead sent immediately. + // Border case if the message to send is greater or equals to the max batch size then can't + // be included in the current batch and instead sent immediately. if (!hasBatchingBytes() || messageSize < getMaxBatchBytes()) { batchedBytes += messageSize; messagesBatch.add(outstandingPublish); From e0d4b61a547d85601a31bb341926cac87c1e55a1 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Wed, 25 Jul 2018 10:47:31 -0700 Subject: [PATCH 0037/2363] Regenerating with protoc 3.6.0 (#3506) --- .../google/pubsub/v1/AcknowledgeRequest.java | 39 ++++++++++++++---- .../pubsub/v1/CreateSnapshotRequest.java | 40 +++++++++++++++---- .../pubsub/v1/DeleteSnapshotRequest.java | 37 ++++++++++++++--- .../pubsub/v1/DeleteSubscriptionRequest.java | 37 ++++++++++++++--- .../google/pubsub/v1/DeleteTopicRequest.java | 37 ++++++++++++++--- .../google/pubsub/v1/GetSnapshotRequest.java | 37 ++++++++++++++--- .../pubsub/v1/GetSubscriptionRequest.java | 37 ++++++++++++++--- .../com/google/pubsub/v1/GetTopicRequest.java | 37 ++++++++++++++--- .../pubsub/v1/ListSnapshotsRequest.java | 39 ++++++++++++++---- .../pubsub/v1/ListSnapshotsResponse.java | 39 ++++++++++++++---- .../pubsub/v1/ListSubscriptionsRequest.java | 39 ++++++++++++++---- .../pubsub/v1/ListSubscriptionsResponse.java | 39 ++++++++++++++---- .../pubsub/v1/ListTopicSnapshotsRequest.java | 39 ++++++++++++++---- .../pubsub/v1/ListTopicSnapshotsResponse.java | 39 ++++++++++++++---- .../v1/ListTopicSubscriptionsRequest.java | 39 ++++++++++++++---- .../v1/ListTopicSubscriptionsResponse.java | 39 ++++++++++++++---- .../google/pubsub/v1/ListTopicsRequest.java | 39 ++++++++++++++---- .../google/pubsub/v1/ListTopicsResponse.java | 39 ++++++++++++++---- .../pubsub/v1/MessageStoragePolicy.java | 39 ++++++++++++++---- .../pubsub/v1/ModifyAckDeadlineRequest.java | 39 ++++++++++++++---- .../pubsub/v1/ModifyPushConfigRequest.java | 39 ++++++++++++++---- .../com/google/pubsub/v1/PublishRequest.java | 39 ++++++++++++++---- .../com/google/pubsub/v1/PublishResponse.java | 39 ++++++++++++++---- .../com/google/pubsub/v1/PubsubMessage.java | 40 +++++++++++++++---- .../com/google/pubsub/v1/PullRequest.java | 39 ++++++++++++++---- .../com/google/pubsub/v1/PullResponse.java | 39 ++++++++++++++---- .../java/com/google/pubsub/v1/PushConfig.java | 40 +++++++++++++++---- .../com/google/pubsub/v1/ReceivedMessage.java | 39 ++++++++++++++---- .../com/google/pubsub/v1/SeekRequest.java | 39 ++++++++++++++---- .../com/google/pubsub/v1/SeekResponse.java | 25 ++++++++++++ .../java/com/google/pubsub/v1/Snapshot.java | 40 +++++++++++++++---- .../pubsub/v1/StreamingPullRequest.java | 39 ++++++++++++++---- .../pubsub/v1/StreamingPullResponse.java | 39 ++++++++++++++---- .../com/google/pubsub/v1/Subscription.java | 40 +++++++++++++++---- .../main/java/com/google/pubsub/v1/Topic.java | 40 +++++++++++++++---- .../pubsub/v1/UpdateSnapshotRequest.java | 39 ++++++++++++++---- .../pubsub/v1/UpdateSubscriptionRequest.java | 39 ++++++++++++++---- .../google/pubsub/v1/UpdateTopicRequest.java | 39 ++++++++++++++---- 38 files changed, 1209 insertions(+), 253 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index b6f38ea1d079..a5520a9b52e1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -48,13 +48,6 @@ private AcknowledgeRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -70,6 +63,13 @@ private AcknowledgeRequest( ackIds_.add(s); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +90,7 @@ private AcknowledgeRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable @@ -192,6 +193,7 @@ public java.lang.String getAckIds(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -201,6 +203,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -212,6 +215,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -340,6 +344,7 @@ public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -347,6 +352,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.AcknowledgeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -374,6 +380,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable @@ -396,6 +403,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -405,15 +413,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { return com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest build() { com.google.pubsub.v1.AcknowledgeRequest result = buildPartial(); if (!result.isInitialized()) { @@ -422,6 +433,7 @@ public com.google.pubsub.v1.AcknowledgeRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { com.google.pubsub.v1.AcknowledgeRequest result = new com.google.pubsub.v1.AcknowledgeRequest(this); int from_bitField0_ = bitField0_; @@ -437,32 +449,39 @@ public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.AcknowledgeRequest) { return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest)other); @@ -493,10 +512,12 @@ public Builder mergeFrom(com.google.pubsub.v1.AcknowledgeRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -748,11 +769,13 @@ public Builder addAckIdsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -774,6 +797,7 @@ public static com.google.pubsub.v1.AcknowledgeRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public AcknowledgeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -791,6 +815,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 2ec18ef7bb53..60a97f98bbf0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -51,13 +51,6 @@ private CreateSnapshotRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -83,6 +76,13 @@ private CreateSnapshotRequest( labels__.getKey(), labels__.getValue()); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,6 +101,7 @@ private CreateSnapshotRequest( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -111,6 +112,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable @@ -320,6 +322,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -329,6 +332,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -346,6 +350,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -483,6 +488,7 @@ public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -490,6 +496,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.CreateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -542,6 +549,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable @@ -564,6 +572,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -574,15 +583,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest build() { com.google.pubsub.v1.CreateSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -591,6 +603,7 @@ public com.google.pubsub.v1.CreateSnapshotRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this); int from_bitField0_ = bitField0_; @@ -604,32 +617,39 @@ public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.CreateSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest)other); @@ -656,10 +676,12 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1067,11 +1089,13 @@ public Builder putAllLabels( .putAll(values); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1093,6 +1117,7 @@ public static com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public CreateSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1110,6 +1135,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 9b80ba7e6861..3c8a6390dd31 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -50,6 +50,12 @@ private DeleteSnapshotRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + snapshot_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -57,12 +63,6 @@ private DeleteSnapshotRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - snapshot_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,6 +80,7 @@ private DeleteSnapshotRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable @@ -132,6 +133,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -141,6 +143,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSnapshotBytes().isEmpty()) { @@ -149,6 +152,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -263,6 +267,7 @@ public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -270,6 +275,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.DeleteSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,6 +306,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable @@ -322,6 +329,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); snapshot_ = ""; @@ -329,15 +337,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest build() { com.google.pubsub.v1.DeleteSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -346,6 +357,7 @@ public com.google.pubsub.v1.DeleteSnapshotRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { com.google.pubsub.v1.DeleteSnapshotRequest result = new com.google.pubsub.v1.DeleteSnapshotRequest(this); result.snapshot_ = snapshot_; @@ -353,32 +365,39 @@ public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest)other); @@ -399,10 +418,12 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSnapshotRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -514,11 +535,13 @@ public Builder setSnapshotBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -540,6 +563,7 @@ public static com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public DeleteSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -557,6 +581,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 67c8fe3977f4..bc3a307361fb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -47,6 +47,12 @@ private DeleteSubscriptionRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -54,12 +60,6 @@ private DeleteSubscriptionRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - subscription_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,6 +77,7 @@ private DeleteSubscriptionRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable @@ -129,6 +130,7 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,6 +140,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -146,6 +149,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -260,6 +264,7 @@ public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -267,6 +272,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.DeleteSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -294,6 +300,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable @@ -316,6 +323,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -323,15 +331,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest build() { com.google.pubsub.v1.DeleteSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -340,6 +351,7 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { com.google.pubsub.v1.DeleteSubscriptionRequest result = new com.google.pubsub.v1.DeleteSubscriptionRequest(this); result.subscription_ = subscription_; @@ -347,32 +359,39 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSubscriptionRequest) { return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest)other); @@ -393,10 +412,12 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSubscriptionRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -508,11 +529,13 @@ public Builder setSubscriptionBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -534,6 +557,7 @@ public static com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public DeleteSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -551,6 +575,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } + @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 31e7001affad..3035fb08c3f6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -47,6 +47,12 @@ private DeleteTopicRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -54,12 +60,6 @@ private DeleteTopicRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topic_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,6 +77,7 @@ private DeleteTopicRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable @@ -129,6 +130,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,6 +140,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -146,6 +149,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -260,6 +264,7 @@ public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -267,6 +272,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.DeleteTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -294,6 +300,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable @@ -316,6 +323,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -323,15 +331,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest build() { com.google.pubsub.v1.DeleteTopicRequest result = buildPartial(); if (!result.isInitialized()) { @@ -340,6 +351,7 @@ public com.google.pubsub.v1.DeleteTopicRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { com.google.pubsub.v1.DeleteTopicRequest result = new com.google.pubsub.v1.DeleteTopicRequest(this); result.topic_ = topic_; @@ -347,32 +359,39 @@ public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteTopicRequest) { return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest)other); @@ -393,10 +412,12 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteTopicRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -508,11 +529,13 @@ public Builder setTopicBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -534,6 +557,7 @@ public static com.google.pubsub.v1.DeleteTopicRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public DeleteTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -551,6 +575,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index af81a90b40e5..188b2057aef9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -50,6 +50,12 @@ private GetSnapshotRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + snapshot_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -57,12 +63,6 @@ private GetSnapshotRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - snapshot_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,6 +80,7 @@ private GetSnapshotRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable @@ -132,6 +133,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -141,6 +143,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSnapshotBytes().isEmpty()) { @@ -149,6 +152,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -263,6 +267,7 @@ public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -270,6 +275,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.GetSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,6 +306,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable @@ -322,6 +329,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); snapshot_ = ""; @@ -329,15 +337,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest build() { com.google.pubsub.v1.GetSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -346,6 +357,7 @@ public com.google.pubsub.v1.GetSnapshotRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { com.google.pubsub.v1.GetSnapshotRequest result = new com.google.pubsub.v1.GetSnapshotRequest(this); result.snapshot_ = snapshot_; @@ -353,32 +365,39 @@ public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest)other); @@ -399,10 +418,12 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSnapshotRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -514,11 +535,13 @@ public Builder setSnapshotBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -540,6 +563,7 @@ public static com.google.pubsub.v1.GetSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public GetSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -557,6 +581,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 37448712e4db..5acb2a1010a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -47,6 +47,12 @@ private GetSubscriptionRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -54,12 +60,6 @@ private GetSubscriptionRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - subscription_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,6 +77,7 @@ private GetSubscriptionRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable @@ -129,6 +130,7 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,6 +140,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -146,6 +149,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -260,6 +264,7 @@ public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -267,6 +272,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.GetSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -294,6 +300,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable @@ -316,6 +323,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -323,15 +331,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest build() { com.google.pubsub.v1.GetSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -340,6 +351,7 @@ public com.google.pubsub.v1.GetSubscriptionRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { com.google.pubsub.v1.GetSubscriptionRequest result = new com.google.pubsub.v1.GetSubscriptionRequest(this); result.subscription_ = subscription_; @@ -347,32 +359,39 @@ public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSubscriptionRequest) { return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest)other); @@ -393,10 +412,12 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSubscriptionRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -508,11 +529,13 @@ public Builder setSubscriptionBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -534,6 +557,7 @@ public static com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public GetSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -551,6 +575,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index ee0049e46ff7..96a14ee3a1c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -47,6 +47,12 @@ private GetTopicRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -54,12 +60,6 @@ private GetTopicRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topic_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,6 +77,7 @@ private GetTopicRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable @@ -129,6 +130,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,6 +140,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -146,6 +149,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -260,6 +264,7 @@ public static com.google.pubsub.v1.GetTopicRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -267,6 +272,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.GetTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -294,6 +300,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable @@ -316,6 +323,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -323,15 +331,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.GetTopicRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.GetTopicRequest build() { com.google.pubsub.v1.GetTopicRequest result = buildPartial(); if (!result.isInitialized()) { @@ -340,6 +351,7 @@ public com.google.pubsub.v1.GetTopicRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.GetTopicRequest buildPartial() { com.google.pubsub.v1.GetTopicRequest result = new com.google.pubsub.v1.GetTopicRequest(this); result.topic_ = topic_; @@ -347,32 +359,39 @@ public com.google.pubsub.v1.GetTopicRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetTopicRequest) { return mergeFrom((com.google.pubsub.v1.GetTopicRequest)other); @@ -393,10 +412,12 @@ public Builder mergeFrom(com.google.pubsub.v1.GetTopicRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -508,11 +529,13 @@ public Builder setTopicBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -534,6 +557,7 @@ public static com.google.pubsub.v1.GetTopicRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public GetTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -551,6 +575,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 58d9416c5a20..395981712496 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -52,13 +52,6 @@ private ListSnapshotsRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -76,6 +69,13 @@ private ListSnapshotsRequest( pageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,6 +93,7 @@ private ListSnapshotsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable @@ -204,6 +205,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -213,6 +215,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProjectBytes().isEmpty()) { @@ -227,6 +230,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -356,6 +360,7 @@ public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -363,6 +368,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -393,6 +399,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable @@ -415,6 +422,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); project_ = ""; @@ -426,15 +434,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest build() { com.google.pubsub.v1.ListSnapshotsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -443,6 +454,7 @@ public com.google.pubsub.v1.ListSnapshotsRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { com.google.pubsub.v1.ListSnapshotsRequest result = new com.google.pubsub.v1.ListSnapshotsRequest(this); result.project_ = project_; @@ -452,32 +464,39 @@ public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSnapshotsRequest) { return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest)other); @@ -505,10 +524,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -757,11 +778,13 @@ public Builder setPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -783,6 +806,7 @@ public static com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListSnapshotsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -800,6 +824,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 3b9331958238..b2f0b97af288 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -51,13 +51,6 @@ private ListSnapshotsResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { snapshots_ = new java.util.ArrayList(); @@ -73,6 +66,13 @@ private ListSnapshotsResponse( nextPageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,6 +93,7 @@ private ListSnapshotsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable @@ -201,6 +202,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -210,6 +212,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snapshots_.size(); i++) { @@ -221,6 +224,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -345,6 +349,7 @@ public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -352,6 +357,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -382,6 +388,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable @@ -405,6 +412,7 @@ private void maybeForceBuilderInitialization() { getSnapshotsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); if (snapshotsBuilder_ == null) { @@ -418,15 +426,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse build() { com.google.pubsub.v1.ListSnapshotsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -435,6 +446,7 @@ public com.google.pubsub.v1.ListSnapshotsResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { com.google.pubsub.v1.ListSnapshotsResponse result = new com.google.pubsub.v1.ListSnapshotsResponse(this); int from_bitField0_ = bitField0_; @@ -454,32 +466,39 @@ public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSnapshotsResponse) { return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse)other); @@ -526,10 +545,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -954,11 +975,13 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -980,6 +1003,7 @@ public static com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListSnapshotsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -997,6 +1021,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 006c976c8b4c..4bb9f157303a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -49,13 +49,6 @@ private ListSubscriptionsRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,6 +66,13 @@ private ListSubscriptionsRequest( pageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +90,7 @@ private ListSubscriptionsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable @@ -201,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -210,6 +212,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProjectBytes().isEmpty()) { @@ -224,6 +227,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -353,6 +357,7 @@ public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -360,6 +365,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -387,6 +393,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable @@ -409,6 +416,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); project_ = ""; @@ -420,15 +428,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest build() { com.google.pubsub.v1.ListSubscriptionsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -437,6 +448,7 @@ public com.google.pubsub.v1.ListSubscriptionsRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { com.google.pubsub.v1.ListSubscriptionsRequest result = new com.google.pubsub.v1.ListSubscriptionsRequest(this); result.project_ = project_; @@ -446,32 +458,39 @@ public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSubscriptionsRequest) { return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest)other); @@ -499,10 +518,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -751,11 +772,13 @@ public Builder setPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -777,6 +800,7 @@ public static com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListSubscriptionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -794,6 +818,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 504ee6f7c8a3..4a6e2e45db6f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -48,13 +48,6 @@ private ListSubscriptionsResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { subscriptions_ = new java.util.ArrayList(); @@ -70,6 +63,13 @@ private ListSubscriptionsResponse( nextPageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +90,7 @@ private ListSubscriptionsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable @@ -200,6 +201,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -209,6 +211,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { @@ -220,6 +223,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -344,6 +348,7 @@ public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -351,6 +356,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -378,6 +384,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable @@ -401,6 +408,7 @@ private void maybeForceBuilderInitialization() { getSubscriptionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); if (subscriptionsBuilder_ == null) { @@ -414,15 +422,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse build() { com.google.pubsub.v1.ListSubscriptionsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -431,6 +442,7 @@ public com.google.pubsub.v1.ListSubscriptionsResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { com.google.pubsub.v1.ListSubscriptionsResponse result = new com.google.pubsub.v1.ListSubscriptionsResponse(this); int from_bitField0_ = bitField0_; @@ -450,32 +462,39 @@ public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSubscriptionsResponse) { return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse)other); @@ -522,10 +541,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -955,11 +976,13 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -981,6 +1004,7 @@ public static com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListSubscriptionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -998,6 +1022,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 34e695c42c1a..6d986b340ed1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -52,13 +52,6 @@ private ListTopicSnapshotsRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -76,6 +69,13 @@ private ListTopicSnapshotsRequest( pageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,6 +93,7 @@ private ListTopicSnapshotsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable @@ -204,6 +205,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -213,6 +215,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -227,6 +230,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -356,6 +360,7 @@ public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -363,6 +368,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -393,6 +399,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable @@ -415,6 +422,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -426,15 +434,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest build() { com.google.pubsub.v1.ListTopicSnapshotsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -443,6 +454,7 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { com.google.pubsub.v1.ListTopicSnapshotsRequest result = new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); result.topic_ = topic_; @@ -452,32 +464,39 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsRequest) { return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest)other); @@ -505,10 +524,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -757,11 +778,13 @@ public Builder setPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -783,6 +806,7 @@ public static com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicSnapshotsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -800,6 +824,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index dd21ac979ab2..6fd57022e4a6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -51,13 +51,6 @@ private ListTopicSnapshotsResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -73,6 +66,13 @@ private ListTopicSnapshotsResponse( nextPageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,6 +93,7 @@ private ListTopicSnapshotsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable @@ -193,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -202,6 +204,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snapshots_.size(); i++) { @@ -213,6 +216,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -341,6 +345,7 @@ public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -348,6 +353,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -378,6 +384,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable @@ -400,6 +407,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -409,15 +417,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse build() { com.google.pubsub.v1.ListTopicSnapshotsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -426,6 +437,7 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { com.google.pubsub.v1.ListTopicSnapshotsResponse result = new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); int from_bitField0_ = bitField0_; @@ -441,32 +453,39 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsResponse) { return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse)other); @@ -497,10 +516,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -748,11 +769,13 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -774,6 +797,7 @@ public static com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicSnapshotsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -791,6 +815,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index ad2c68df8b0a..bc420cdc461a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -49,13 +49,6 @@ private ListTopicSubscriptionsRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,6 +66,13 @@ private ListTopicSubscriptionsRequest( pageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +90,7 @@ private ListTopicSubscriptionsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable @@ -201,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -210,6 +212,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -224,6 +227,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -353,6 +357,7 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -360,6 +365,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -387,6 +393,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable @@ -409,6 +416,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -420,15 +428,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { com.google.pubsub.v1.ListTopicSubscriptionsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -437,6 +448,7 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { com.google.pubsub.v1.ListTopicSubscriptionsRequest result = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); result.topic_ = topic_; @@ -446,32 +458,39 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsRequest) { return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest)other); @@ -499,10 +518,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsRequest othe return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -751,11 +772,13 @@ public Builder setPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -777,6 +800,7 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInsta private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicSubscriptionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -794,6 +818,7 @@ public com.google.protobuf.Parser getParserForTyp return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index b4065286bf25..a25a85049c2f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -48,13 +48,6 @@ private ListTopicSubscriptionsResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -70,6 +63,13 @@ private ListTopicSubscriptionsResponse( nextPageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +90,7 @@ private ListTopicSubscriptionsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable @@ -190,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -199,6 +201,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { @@ -210,6 +213,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -338,6 +342,7 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -345,6 +350,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -372,6 +378,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable @@ -394,6 +401,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -403,15 +411,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { com.google.pubsub.v1.ListTopicSubscriptionsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -420,6 +431,7 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { com.google.pubsub.v1.ListTopicSubscriptionsResponse result = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); int from_bitField0_ = bitField0_; @@ -435,32 +447,39 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsResponse) { return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse)other); @@ -491,10 +510,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsResponse oth return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -742,11 +763,13 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -768,6 +791,7 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInst private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicSubscriptionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -785,6 +809,7 @@ public com.google.protobuf.Parser getParserForTy return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 3d3f28c59587..6e0349fb2bf9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -49,13 +49,6 @@ private ListTopicsRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,6 +66,13 @@ private ListTopicsRequest( pageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +90,7 @@ private ListTopicsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable @@ -201,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -210,6 +212,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProjectBytes().isEmpty()) { @@ -224,6 +227,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -353,6 +357,7 @@ public static com.google.pubsub.v1.ListTopicsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -360,6 +365,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -387,6 +393,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable @@ -409,6 +416,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); project_ = ""; @@ -420,15 +428,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest build() { com.google.pubsub.v1.ListTopicsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -437,6 +448,7 @@ public com.google.pubsub.v1.ListTopicsRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest buildPartial() { com.google.pubsub.v1.ListTopicsRequest result = new com.google.pubsub.v1.ListTopicsRequest(this); result.project_ = project_; @@ -446,32 +458,39 @@ public com.google.pubsub.v1.ListTopicsRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicsRequest) { return mergeFrom((com.google.pubsub.v1.ListTopicsRequest)other); @@ -499,10 +518,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -751,11 +772,13 @@ public Builder setPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -777,6 +800,7 @@ public static com.google.pubsub.v1.ListTopicsRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -794,6 +818,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index e0666d18ae08..73aeea01f63e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -48,13 +48,6 @@ private ListTopicsResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { topics_ = new java.util.ArrayList(); @@ -70,6 +63,13 @@ private ListTopicsResponse( nextPageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +90,7 @@ private ListTopicsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable @@ -198,6 +199,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -207,6 +209,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < topics_.size(); i++) { @@ -218,6 +221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -342,6 +346,7 @@ public static com.google.pubsub.v1.ListTopicsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -349,6 +354,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -376,6 +382,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable @@ -399,6 +406,7 @@ private void maybeForceBuilderInitialization() { getTopicsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); if (topicsBuilder_ == null) { @@ -412,15 +420,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse build() { com.google.pubsub.v1.ListTopicsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -429,6 +440,7 @@ public com.google.pubsub.v1.ListTopicsResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse buildPartial() { com.google.pubsub.v1.ListTopicsResponse result = new com.google.pubsub.v1.ListTopicsResponse(this); int from_bitField0_ = bitField0_; @@ -448,32 +460,39 @@ public com.google.pubsub.v1.ListTopicsResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicsResponse) { return mergeFrom((com.google.pubsub.v1.ListTopicsResponse)other); @@ -520,10 +539,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -948,11 +969,13 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -974,6 +997,7 @@ public static com.google.pubsub.v1.ListTopicsResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -991,6 +1015,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index d64fc6fe4c6f..75852188aea0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -43,13 +43,6 @@ private MessageStoragePolicy( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -59,6 +52,13 @@ private MessageStoragePolicy( allowedPersistenceRegions_.add(s); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,6 +79,7 @@ private MessageStoragePolicy( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable @@ -152,6 +153,7 @@ public java.lang.String getAllowedPersistenceRegions(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -161,6 +163,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedPersistenceRegions_.size(); i++) { @@ -169,6 +172,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -290,6 +294,7 @@ public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -297,6 +302,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.MessageStoragePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -320,6 +326,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable @@ -342,6 +349,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -349,15 +357,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } + @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { return com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy build() { com.google.pubsub.v1.MessageStoragePolicy result = buildPartial(); if (!result.isInitialized()) { @@ -366,6 +377,7 @@ public com.google.pubsub.v1.MessageStoragePolicy build() { return result; } + @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { com.google.pubsub.v1.MessageStoragePolicy result = new com.google.pubsub.v1.MessageStoragePolicy(this); int from_bitField0_ = bitField0_; @@ -378,32 +390,39 @@ public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.MessageStoragePolicy) { return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy)other); @@ -430,10 +449,12 @@ public Builder mergeFrom(com.google.pubsub.v1.MessageStoragePolicy other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -627,11 +648,13 @@ public Builder addAllowedPersistenceRegionsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -653,6 +676,7 @@ public static com.google.pubsub.v1.MessageStoragePolicy getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public MessageStoragePolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -670,6 +694,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index a33954d319a8..e5b5f07c18ea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -49,13 +49,6 @@ private ModifyAckDeadlineRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -76,6 +69,13 @@ private ModifyAckDeadlineRequest( ackIds_.add(s); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,6 +96,7 @@ private ModifyAckDeadlineRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable @@ -213,6 +214,7 @@ public int getAckDeadlineSeconds() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -222,6 +224,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -236,6 +239,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -372,6 +376,7 @@ public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -379,6 +384,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ModifyAckDeadlineRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -406,6 +412,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable @@ -428,6 +435,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -439,15 +447,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest build() { com.google.pubsub.v1.ModifyAckDeadlineRequest result = buildPartial(); if (!result.isInitialized()) { @@ -456,6 +467,7 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); int from_bitField0_ = bitField0_; @@ -472,32 +484,39 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ModifyAckDeadlineRequest) { return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest)other); @@ -531,10 +550,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ModifyAckDeadlineRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -833,11 +854,13 @@ public Builder clearAckDeadlineSeconds() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -859,6 +882,7 @@ public static com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ModifyAckDeadlineRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -876,6 +900,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 009e0e2979b4..bbc1ae913421 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -47,13 +47,6 @@ private ModifyPushConfigRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,6 +66,13 @@ private ModifyPushConfigRequest( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +90,7 @@ private ModifyPushConfigRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable @@ -187,6 +188,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -196,6 +198,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -207,6 +210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -334,6 +338,7 @@ public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -341,6 +346,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ModifyPushConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -368,6 +374,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable @@ -390,6 +397,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -403,15 +411,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest build() { com.google.pubsub.v1.ModifyPushConfigRequest result = buildPartial(); if (!result.isInitialized()) { @@ -420,6 +431,7 @@ public com.google.pubsub.v1.ModifyPushConfigRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { com.google.pubsub.v1.ModifyPushConfigRequest result = new com.google.pubsub.v1.ModifyPushConfigRequest(this); result.subscription_ = subscription_; @@ -432,32 +444,39 @@ public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ModifyPushConfigRequest) { return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest)other); @@ -481,10 +500,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ModifyPushConfigRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -785,11 +806,13 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } return pushConfigBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -811,6 +834,7 @@ public static com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ModifyPushConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -828,6 +852,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index a95e30a40df7..9cc50d4286c2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -48,13 +48,6 @@ private PublishRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -70,6 +63,13 @@ private PublishRequest( input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +90,7 @@ private PublishRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable @@ -198,6 +199,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -207,6 +209,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -218,6 +221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -342,6 +346,7 @@ public static com.google.pubsub.v1.PublishRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -349,6 +354,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PublishRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -376,6 +382,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable @@ -399,6 +406,7 @@ private void maybeForceBuilderInitialization() { getMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -412,15 +420,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { return com.google.pubsub.v1.PublishRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PublishRequest build() { com.google.pubsub.v1.PublishRequest result = buildPartial(); if (!result.isInitialized()) { @@ -429,6 +440,7 @@ public com.google.pubsub.v1.PublishRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PublishRequest buildPartial() { com.google.pubsub.v1.PublishRequest result = new com.google.pubsub.v1.PublishRequest(this); int from_bitField0_ = bitField0_; @@ -448,32 +460,39 @@ public com.google.pubsub.v1.PublishRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PublishRequest) { return mergeFrom((com.google.pubsub.v1.PublishRequest)other); @@ -520,10 +539,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -948,11 +969,13 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder( } return messagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -974,6 +997,7 @@ public static com.google.pubsub.v1.PublishRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PublishRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -991,6 +1015,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index d59fd9694aaf..ec61a1cd0823 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -47,13 +47,6 @@ private PublishResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -63,6 +56,13 @@ private PublishResponse( messageIds_.add(s); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,6 +83,7 @@ private PublishResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable @@ -144,6 +145,7 @@ public java.lang.String getMessageIds(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -153,6 +155,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < messageIds_.size(); i++) { @@ -161,6 +164,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -282,6 +286,7 @@ public static com.google.pubsub.v1.PublishResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -289,6 +294,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PublishResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -316,6 +322,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable @@ -338,6 +345,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -345,15 +353,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { return com.google.pubsub.v1.PublishResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PublishResponse build() { com.google.pubsub.v1.PublishResponse result = buildPartial(); if (!result.isInitialized()) { @@ -362,6 +373,7 @@ public com.google.pubsub.v1.PublishResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PublishResponse buildPartial() { com.google.pubsub.v1.PublishResponse result = new com.google.pubsub.v1.PublishResponse(this); int from_bitField0_ = bitField0_; @@ -374,32 +386,39 @@ public com.google.pubsub.v1.PublishResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PublishResponse) { return mergeFrom((com.google.pubsub.v1.PublishResponse)other); @@ -426,10 +445,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -596,11 +617,13 @@ public Builder addMessageIdsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -622,6 +645,7 @@ public static com.google.pubsub.v1.PublishResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PublishResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -639,6 +663,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 4910321a2293..c9bd7aa3d858 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -49,13 +49,6 @@ private PubsubMessage( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { data_ = input.readBytes(); @@ -93,6 +86,13 @@ private PubsubMessage( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,6 +111,7 @@ private PubsubMessage( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -121,6 +122,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable @@ -322,6 +324,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -331,6 +334,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!data_.isEmpty()) { @@ -351,6 +355,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -502,6 +507,7 @@ public static com.google.pubsub.v1.PubsubMessage parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -509,6 +515,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PubsubMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -559,6 +566,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable @@ -581,6 +589,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; @@ -597,15 +606,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { return com.google.pubsub.v1.PubsubMessage.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PubsubMessage build() { com.google.pubsub.v1.PubsubMessage result = buildPartial(); if (!result.isInitialized()) { @@ -614,6 +626,7 @@ public com.google.pubsub.v1.PubsubMessage build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PubsubMessage buildPartial() { com.google.pubsub.v1.PubsubMessage result = new com.google.pubsub.v1.PubsubMessage(this); int from_bitField0_ = bitField0_; @@ -632,32 +645,39 @@ public com.google.pubsub.v1.PubsubMessage buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PubsubMessage) { return mergeFrom((com.google.pubsub.v1.PubsubMessage)other); @@ -686,10 +706,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1175,11 +1197,13 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { } return publishTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1201,6 +1225,7 @@ public static com.google.pubsub.v1.PubsubMessage getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PubsubMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1218,6 +1243,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index c01a02625b10..4c1aaa51d06b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -49,13 +49,6 @@ private PullRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -72,6 +65,13 @@ private PullRequest( maxMessages_ = input.readInt32(); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,6 +89,7 @@ private PullRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable @@ -173,6 +174,7 @@ public int getMaxMessages() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -182,6 +184,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -196,6 +199,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -327,6 +331,7 @@ public static com.google.pubsub.v1.PullRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -334,6 +339,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -361,6 +367,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable @@ -383,6 +390,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -394,15 +402,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { return com.google.pubsub.v1.PullRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PullRequest build() { com.google.pubsub.v1.PullRequest result = buildPartial(); if (!result.isInitialized()) { @@ -411,6 +422,7 @@ public com.google.pubsub.v1.PullRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PullRequest buildPartial() { com.google.pubsub.v1.PullRequest result = new com.google.pubsub.v1.PullRequest(this); result.subscription_ = subscription_; @@ -420,32 +432,39 @@ public com.google.pubsub.v1.PullRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PullRequest) { return mergeFrom((com.google.pubsub.v1.PullRequest)other); @@ -472,10 +491,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PullRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -681,11 +702,13 @@ public Builder clearMaxMessages() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -707,6 +730,7 @@ public static com.google.pubsub.v1.PullRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -724,6 +748,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 3a4694f88ce5..170040815345 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -47,13 +47,6 @@ private PullResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { receivedMessages_ = new java.util.ArrayList(); @@ -63,6 +56,13 @@ private PullResponse( input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,6 +83,7 @@ private PullResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable @@ -161,6 +162,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -170,6 +172,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < receivedMessages_.size(); i++) { @@ -178,6 +181,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -295,6 +299,7 @@ public static com.google.pubsub.v1.PullResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -302,6 +307,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PullResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -329,6 +335,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable @@ -352,6 +359,7 @@ private void maybeForceBuilderInitialization() { getReceivedMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); if (receivedMessagesBuilder_ == null) { @@ -363,15 +371,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() { return com.google.pubsub.v1.PullResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PullResponse build() { com.google.pubsub.v1.PullResponse result = buildPartial(); if (!result.isInitialized()) { @@ -380,6 +391,7 @@ public com.google.pubsub.v1.PullResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PullResponse buildPartial() { com.google.pubsub.v1.PullResponse result = new com.google.pubsub.v1.PullResponse(this); int from_bitField0_ = bitField0_; @@ -396,32 +408,39 @@ public com.google.pubsub.v1.PullResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PullResponse) { return mergeFrom((com.google.pubsub.v1.PullResponse)other); @@ -464,10 +483,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PullResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -852,11 +873,13 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( } return receivedMessagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -878,6 +901,7 @@ public static com.google.pubsub.v1.PullResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PullResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -895,6 +919,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index fbb7e018afa9..7dcac690833b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -47,13 +47,6 @@ private PushConfig( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,6 +66,13 @@ private PushConfig( attributes__.getKey(), attributes__.getValue()); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,6 +91,7 @@ private PushConfig( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -101,6 +102,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable @@ -306,6 +308,7 @@ public java.lang.String getAttributesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -315,6 +318,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPushEndpointBytes().isEmpty()) { @@ -329,6 +333,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -459,6 +464,7 @@ public static com.google.pubsub.v1.PushConfig parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -466,6 +472,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PushConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -515,6 +522,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable @@ -537,6 +545,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); pushEndpoint_ = ""; @@ -545,15 +554,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() { return com.google.pubsub.v1.PushConfig.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PushConfig build() { com.google.pubsub.v1.PushConfig result = buildPartial(); if (!result.isInitialized()) { @@ -562,6 +574,7 @@ public com.google.pubsub.v1.PushConfig build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PushConfig buildPartial() { com.google.pubsub.v1.PushConfig result = new com.google.pubsub.v1.PushConfig(this); int from_bitField0_ = bitField0_; @@ -574,32 +587,39 @@ public com.google.pubsub.v1.PushConfig buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PushConfig) { return mergeFrom((com.google.pubsub.v1.PushConfig)other); @@ -622,10 +642,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -994,11 +1016,13 @@ public Builder putAllAttributes( .putAll(values); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1020,6 +1044,7 @@ public static com.google.pubsub.v1.PushConfig getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PushConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1037,6 +1062,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index dec18356e9b0..911dd5e6bf88 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -47,13 +47,6 @@ private ReceivedMessage( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,6 +66,13 @@ private ReceivedMessage( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +90,7 @@ private ReceivedMessage( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable @@ -173,6 +174,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -182,6 +184,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getAckIdBytes().isEmpty()) { @@ -193,6 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -320,6 +324,7 @@ public static com.google.pubsub.v1.ReceivedMessage parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -327,6 +332,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ReceivedMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -354,6 +360,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable @@ -376,6 +383,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); ackId_ = ""; @@ -389,15 +397,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { return com.google.pubsub.v1.ReceivedMessage.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ReceivedMessage build() { com.google.pubsub.v1.ReceivedMessage result = buildPartial(); if (!result.isInitialized()) { @@ -406,6 +417,7 @@ public com.google.pubsub.v1.ReceivedMessage build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ReceivedMessage buildPartial() { com.google.pubsub.v1.ReceivedMessage result = new com.google.pubsub.v1.ReceivedMessage(this); result.ackId_ = ackId_; @@ -418,32 +430,39 @@ public com.google.pubsub.v1.ReceivedMessage buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ReceivedMessage) { return mergeFrom((com.google.pubsub.v1.ReceivedMessage)other); @@ -467,10 +486,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ReceivedMessage other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -730,11 +751,13 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { } return messageBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -756,6 +779,7 @@ public static com.google.pubsub.v1.ReceivedMessage getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ReceivedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -773,6 +797,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 215cb26b748d..fbfd4f5b9bad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -50,13 +50,6 @@ private SeekRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -83,6 +76,13 @@ private SeekRequest( target_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,6 +100,7 @@ private SeekRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable @@ -311,6 +312,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -320,6 +322,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -334,6 +337,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -482,6 +486,7 @@ public static com.google.pubsub.v1.SeekRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -489,6 +494,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.SeekRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -519,6 +525,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable @@ -541,6 +548,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -550,15 +558,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { return com.google.pubsub.v1.SeekRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.SeekRequest build() { com.google.pubsub.v1.SeekRequest result = buildPartial(); if (!result.isInitialized()) { @@ -567,6 +578,7 @@ public com.google.pubsub.v1.SeekRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.SeekRequest buildPartial() { com.google.pubsub.v1.SeekRequest result = new com.google.pubsub.v1.SeekRequest(this); result.subscription_ = subscription_; @@ -585,32 +597,39 @@ public com.google.pubsub.v1.SeekRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.SeekRequest) { return mergeFrom((com.google.pubsub.v1.SeekRequest)other); @@ -646,10 +665,12 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1143,11 +1164,13 @@ public Builder setSnapshotBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1169,6 +1192,7 @@ public static com.google.pubsub.v1.SeekRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public SeekRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1186,6 +1210,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 7a3eda234ba4..3fd4c8871eb4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -65,6 +65,7 @@ private SeekResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable @@ -73,6 +74,7 @@ private SeekResponse( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -82,11 +84,13 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -194,6 +198,7 @@ public static com.google.pubsub.v1.SeekResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -201,6 +206,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.SeekResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -224,6 +230,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable @@ -246,20 +253,24 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { return com.google.pubsub.v1.SeekResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.SeekResponse build() { com.google.pubsub.v1.SeekResponse result = buildPartial(); if (!result.isInitialized()) { @@ -268,38 +279,46 @@ public com.google.pubsub.v1.SeekResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.SeekResponse buildPartial() { com.google.pubsub.v1.SeekResponse result = new com.google.pubsub.v1.SeekResponse(this); onBuilt(); return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.SeekResponse) { return mergeFrom((com.google.pubsub.v1.SeekResponse)other); @@ -316,10 +335,12 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -337,11 +358,13 @@ public Builder mergeFrom( } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -363,6 +386,7 @@ public static com.google.pubsub.v1.SeekResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public SeekResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -380,6 +404,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index a42368346be5..7c1399f90305 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -51,13 +51,6 @@ private Snapshot( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -96,6 +89,13 @@ private Snapshot( labels__.getKey(), labels__.getValue()); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,6 +114,7 @@ private Snapshot( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -124,6 +125,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable @@ -369,6 +371,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -378,6 +381,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -398,6 +402,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -548,6 +553,7 @@ public static com.google.pubsub.v1.Snapshot parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -555,6 +561,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.Snapshot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -607,6 +614,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable @@ -629,6 +637,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -645,15 +654,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor; } + @java.lang.Override public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() { return com.google.pubsub.v1.Snapshot.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.Snapshot build() { com.google.pubsub.v1.Snapshot result = buildPartial(); if (!result.isInitialized()) { @@ -662,6 +674,7 @@ public com.google.pubsub.v1.Snapshot build() { return result; } + @java.lang.Override public com.google.pubsub.v1.Snapshot buildPartial() { com.google.pubsub.v1.Snapshot result = new com.google.pubsub.v1.Snapshot(this); int from_bitField0_ = bitField0_; @@ -680,32 +693,39 @@ public com.google.pubsub.v1.Snapshot buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Snapshot) { return mergeFrom((com.google.pubsub.v1.Snapshot)other); @@ -735,10 +755,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1320,11 +1342,13 @@ public Builder putAllLabels( .putAll(values); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1346,6 +1370,7 @@ public static com.google.pubsub.v1.Snapshot getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public Snapshot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1363,6 +1388,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 1c9fff29b171..11df06758c2c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -53,13 +53,6 @@ private StreamingPullRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -110,6 +103,13 @@ private StreamingPullRequest( streamAckDeadlineSeconds_ = input.readInt32(); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,6 +136,7 @@ private StreamingPullRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable @@ -396,6 +397,7 @@ public int getStreamAckDeadlineSeconds() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -405,6 +407,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -430,6 +433,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -600,6 +604,7 @@ public static com.google.pubsub.v1.StreamingPullRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -607,6 +612,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.StreamingPullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -636,6 +642,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable @@ -658,6 +665,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -673,15 +681,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest build() { com.google.pubsub.v1.StreamingPullRequest result = buildPartial(); if (!result.isInitialized()) { @@ -690,6 +701,7 @@ public com.google.pubsub.v1.StreamingPullRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest buildPartial() { com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this); int from_bitField0_ = bitField0_; @@ -716,32 +728,39 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullRequest) { return mergeFrom((com.google.pubsub.v1.StreamingPullRequest)other); @@ -795,10 +814,12 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1464,11 +1485,13 @@ public Builder clearStreamAckDeadlineSeconds() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1490,6 +1513,7 @@ public static com.google.pubsub.v1.StreamingPullRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public StreamingPullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1507,6 +1531,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 6f32fa1685f3..fd6e40943b9b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -48,13 +48,6 @@ private StreamingPullResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { receivedMessages_ = new java.util.ArrayList(); @@ -64,6 +57,13 @@ private StreamingPullResponse( input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,6 +84,7 @@ private StreamingPullResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable @@ -147,6 +148,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -156,6 +158,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < receivedMessages_.size(); i++) { @@ -164,6 +167,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -281,6 +285,7 @@ public static com.google.pubsub.v1.StreamingPullResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -288,6 +293,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -316,6 +322,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable @@ -339,6 +346,7 @@ private void maybeForceBuilderInitialization() { getReceivedMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); if (receivedMessagesBuilder_ == null) { @@ -350,15 +358,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { return com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse build() { com.google.pubsub.v1.StreamingPullResponse result = buildPartial(); if (!result.isInitialized()) { @@ -367,6 +378,7 @@ public com.google.pubsub.v1.StreamingPullResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse buildPartial() { com.google.pubsub.v1.StreamingPullResponse result = new com.google.pubsub.v1.StreamingPullResponse(this); int from_bitField0_ = bitField0_; @@ -383,32 +395,39 @@ public com.google.pubsub.v1.StreamingPullResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullResponse) { return mergeFrom((com.google.pubsub.v1.StreamingPullResponse)other); @@ -451,10 +470,12 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -785,11 +806,13 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( } return receivedMessagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -811,6 +834,7 @@ public static com.google.pubsub.v1.StreamingPullResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public StreamingPullResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -828,6 +852,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 7436899a3ef8..bfe88e6107ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -50,13 +50,6 @@ private Subscription( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -118,6 +111,13 @@ private Subscription( labels__.getKey(), labels__.getValue()); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,6 +136,7 @@ private Subscription( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -146,6 +147,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable @@ -491,6 +493,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -500,6 +503,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -529,6 +533,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -709,6 +714,7 @@ public static com.google.pubsub.v1.Subscription parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -716,6 +722,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.Subscription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -765,6 +772,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable @@ -787,6 +795,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -813,15 +822,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; } + @java.lang.Override public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return com.google.pubsub.v1.Subscription.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.Subscription build() { com.google.pubsub.v1.Subscription result = buildPartial(); if (!result.isInitialized()) { @@ -830,6 +842,7 @@ public com.google.pubsub.v1.Subscription build() { return result; } + @java.lang.Override public com.google.pubsub.v1.Subscription buildPartial() { com.google.pubsub.v1.Subscription result = new com.google.pubsub.v1.Subscription(this); int from_bitField0_ = bitField0_; @@ -855,32 +868,39 @@ public com.google.pubsub.v1.Subscription buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Subscription) { return mergeFrom((com.google.pubsub.v1.Subscription)other); @@ -919,10 +939,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1848,11 +1870,13 @@ public Builder putAllLabels( .putAll(values); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1874,6 +1898,7 @@ public static com.google.pubsub.v1.Subscription getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public Subscription parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1891,6 +1916,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index ebc74337892d..07b861121aeb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -47,13 +47,6 @@ private Topic( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -86,6 +79,13 @@ private Topic( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,6 +104,7 @@ private Topic( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -114,6 +115,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable @@ -315,6 +317,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -324,6 +327,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -341,6 +345,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -484,6 +489,7 @@ public static com.google.pubsub.v1.Topic parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -491,6 +497,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.Topic prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -540,6 +547,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable @@ -562,6 +570,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -576,15 +585,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } + @java.lang.Override public com.google.pubsub.v1.Topic getDefaultInstanceForType() { return com.google.pubsub.v1.Topic.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.Topic build() { com.google.pubsub.v1.Topic result = buildPartial(); if (!result.isInitialized()) { @@ -593,6 +605,7 @@ public com.google.pubsub.v1.Topic build() { return result; } + @java.lang.Override public com.google.pubsub.v1.Topic buildPartial() { com.google.pubsub.v1.Topic result = new com.google.pubsub.v1.Topic(this); int from_bitField0_ = bitField0_; @@ -610,32 +623,39 @@ public com.google.pubsub.v1.Topic buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Topic) { return mergeFrom((com.google.pubsub.v1.Topic)other); @@ -661,10 +681,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1146,11 +1168,13 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic } return messageStoragePolicyBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1172,6 +1196,7 @@ public static com.google.pubsub.v1.Topic getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public Topic parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1189,6 +1214,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.Topic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 8d5f14f1b325..454443468ba2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -49,13 +49,6 @@ private UpdateSnapshotRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { com.google.pubsub.v1.Snapshot.Builder subBuilder = null; if (snapshot_ != null) { @@ -82,6 +75,13 @@ private UpdateSnapshotRequest( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,6 +99,7 @@ private UpdateSnapshotRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable @@ -176,6 +177,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -185,6 +187,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (snapshot_ != null) { @@ -196,6 +199,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -329,6 +333,7 @@ public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -336,6 +341,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.UpdateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -366,6 +372,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable @@ -388,6 +395,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); if (snapshotBuilder_ == null) { @@ -405,15 +413,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest build() { com.google.pubsub.v1.UpdateSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -422,6 +433,7 @@ public com.google.pubsub.v1.UpdateSnapshotRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { com.google.pubsub.v1.UpdateSnapshotRequest result = new com.google.pubsub.v1.UpdateSnapshotRequest(this); if (snapshotBuilder_ == null) { @@ -438,32 +450,39 @@ public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest)other); @@ -486,10 +505,12 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateSnapshotRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -822,11 +843,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } return updateMaskBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -848,6 +871,7 @@ public static com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public UpdateSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -865,6 +889,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 44bc150560ba..83413ab9760b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -46,13 +46,6 @@ private UpdateSubscriptionRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { com.google.pubsub.v1.Subscription.Builder subBuilder = null; if (subscription_ != null) { @@ -79,6 +72,13 @@ private UpdateSubscriptionRequest( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,6 +96,7 @@ private UpdateSubscriptionRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable @@ -173,6 +174,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -182,6 +184,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subscription_ != null) { @@ -193,6 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -326,6 +330,7 @@ public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -333,6 +338,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.UpdateSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -360,6 +366,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable @@ -382,6 +389,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); if (subscriptionBuilder_ == null) { @@ -399,15 +407,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest build() { com.google.pubsub.v1.UpdateSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -416,6 +427,7 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); if (subscriptionBuilder_ == null) { @@ -432,32 +444,39 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateSubscriptionRequest) { return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest)other); @@ -480,10 +499,12 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateSubscriptionRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -816,11 +837,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } return updateMaskBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -842,6 +865,7 @@ public static com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public UpdateSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -859,6 +883,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } + @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 611de401936c..ba77db8ac8b5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -46,13 +46,6 @@ private UpdateTopicRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { com.google.pubsub.v1.Topic.Builder subBuilder = null; if (topic_ != null) { @@ -79,6 +72,13 @@ private UpdateTopicRequest( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,6 +96,7 @@ private UpdateTopicRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable @@ -182,6 +183,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -191,6 +193,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (topic_ != null) { @@ -202,6 +205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -335,6 +339,7 @@ public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -342,6 +347,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.UpdateTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -369,6 +375,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable @@ -391,6 +398,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); if (topicBuilder_ == null) { @@ -408,15 +416,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest build() { com.google.pubsub.v1.UpdateTopicRequest result = buildPartial(); if (!result.isInitialized()) { @@ -425,6 +436,7 @@ public com.google.pubsub.v1.UpdateTopicRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); if (topicBuilder_ == null) { @@ -441,32 +453,39 @@ public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateTopicRequest) { return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest)other); @@ -489,10 +508,12 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateTopicRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -852,11 +873,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } return updateMaskBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -878,6 +901,7 @@ public static com.google.pubsub.v1.UpdateTopicRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public UpdateTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -895,6 +919,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } From 4a5412d79109df733bb2a9a97383ac3376f5138a Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Wed, 25 Jul 2018 12:24:59 -0700 Subject: [PATCH 0038/2363] pubsub: document auto message extension (#3491) --- .../src/main/java/com/google/cloud/pubsub/v1/Subscriber.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 8669682e727c..5debfdf3218f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -70,7 +70,7 @@ * *

The subscriber handles the ack management, by automatically extending the ack deadline while * the message is being processed, to then issue the ack or nack of such message when the processing - * is done. Note: message redelivery is still possible. + * is done (see {@link Builder#setMaxAckExtensionPeriod(Duration)}). Note: message redelivery is still possible. * *

It also provides customizable options that control: * @@ -547,7 +547,7 @@ Builder setAckExpirationPadding(Duration ackExpirationPadding) { } /** - * Set the maximum period a message ack deadline will be extended. + * Set the maximum period a message ack deadline will be extended. Defaults to one hour. * *

It is recommended to set this value to a reasonable upper bound of the subscriber time to * process any message. This maximum period avoids messages to be locked by a subscriber From 99521d21e114bea643f4601d29040ec018d7e66a Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Wed, 1 Aug 2018 10:36:53 -0700 Subject: [PATCH 0039/2363] Regenerating proto/client classes (#3519) --- .../java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java | 1 - .../com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java | 1 - .../main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java | 1 - .../main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java | 1 - .../com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java | 1 - .../com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java | 1 - 6 files changed, 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index ebf86902606b..6657e5f80d41 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -140,7 +140,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class SubscriptionAdminClient implements BackgroundResource { private final SubscriptionAdminSettings settings; private final SubscriberStub stub; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index a8f4cdbbb90a..b5e212783e7b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -89,7 +89,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class SubscriptionAdminSettings extends ClientSettings { /** Returns the object with the settings used for calls to createSubscription. */ public UnaryCallSettings createSubscriptionSettings() { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index f56f59ab8ec3..66b45a50d291 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -124,7 +124,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class TopicAdminClient implements BackgroundResource { private final TopicAdminSettings settings; private final PublisherStub stub; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index f61ae5c6bec4..31edd6c2a2d9 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -78,7 +78,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class TopicAdminSettings extends ClientSettings { /** Returns the object with the settings used for calls to createTopic. */ public UnaryCallSettings createTopicSettings() { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 8f4a8a12c982..28fc83d29f3d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -102,7 +102,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class PublisherStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 1f57c41acdbe..3819052d18c8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -104,7 +104,6 @@ * */ @Generated("by gapic-generator") -@BetaApi public class SubscriberStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = From 57f22ef3ed4d9042014baec3b3aa7f7cb529c431 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Wed, 1 Aug 2018 15:23:45 -0700 Subject: [PATCH 0040/2363] Release 0.56.0 (#3521) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 5d56d713dfac..749b3c440af3 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.37.1 + 1.38.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.37.1' +compile 'com.google.cloud:google-cloud-pubsub:1.38.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.37.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.38.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 0504f021db44..38f28a474c5c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.37.2-SNAPSHOT + 1.38.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.55.2-alpha-SNAPSHOT + 0.56.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e5c6d0bea75a..658338b765b4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.19.2-SNAPSHOT + 1.20.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.20.2-SNAPSHOT + 0.21.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ceebeb38f2c8..e4a893130339 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.19.2-SNAPSHOT + 1.20.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.20.2-SNAPSHOT + 0.21.0 From 6e53471d64cfae92340630479b8ca838ffbc7004 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Wed, 1 Aug 2018 16:26:30 -0700 Subject: [PATCH 0041/2363] Bumping to snapshot versions (#3523) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 38f28a474c5c..6846d92811b3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.38.0 + 1.38.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.56.0-alpha + 0.56.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 658338b765b4..977813057775 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.20.0 + 1.20.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.21.0 + 0.21.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e4a893130339..1045018545c7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.20.0 + 1.20.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.21.0 + 0.21.1-SNAPSHOT From 2a889d4aad6de598c73e6fb294724f5fdb2f61be Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 9 Aug 2018 16:25:03 -0700 Subject: [PATCH 0042/2363] Bump versions to 1.39.0/0.57.0 (#3548) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 749b3c440af3..cf46de18f961 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.38.0 + 1.39.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.38.0' +compile 'com.google.cloud:google-cloud-pubsub:1.39.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.39.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6846d92811b3..8a0880fbefd6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.38.1-SNAPSHOT + 1.39.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.56.1-alpha-SNAPSHOT + 0.57.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 977813057775..524e2c4fa249 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.20.1-SNAPSHOT + 1.21.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.21.1-SNAPSHOT + 0.22.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1045018545c7..f2e4c7f6a3e5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.20.1-SNAPSHOT + 1.21.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.21.1-SNAPSHOT + 0.22.0 From 42995ba4d44dc92764d1e3426b8c925b081947e1 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Fri, 10 Aug 2018 10:13:44 -0700 Subject: [PATCH 0043/2363] Bump to snapshot (#3553) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8a0880fbefd6..ff1247e9c960 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.39.0 + 1.39.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.57.0-alpha + 0.57.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 524e2c4fa249..ce21a1697128 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.21.0 + 1.21.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.22.0 + 0.22.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f2e4c7f6a3e5..ed4e7b5d9f30 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.21.0 + 1.21.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.22.0 + 0.22.1-SNAPSHOT From 49f69f1f7458a77337fb76b783d30b436c0e2905 Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Wed, 15 Aug 2018 15:54:35 -0700 Subject: [PATCH 0044/2363] Release 0.58.0 and 1.40.0 (#3565) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index cf46de18f961..d1707a1ed9aa 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.39.0 + 1.40.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.39.0' +compile 'com.google.cloud:google-cloud-pubsub:1.40.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.40.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ff1247e9c960..dcd92c5c9b2c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.39.1-SNAPSHOT + 1.40.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.57.1-alpha-SNAPSHOT + 0.58.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ce21a1697128..c77e9b78213b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.21.1-SNAPSHOT + 1.22.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.22.1-SNAPSHOT + 0.23.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ed4e7b5d9f30..69669932ab3b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.21.1-SNAPSHOT + 1.22.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.22.1-SNAPSHOT + 0.23.0 From c93f1024035c4bf960c02b1e002a1c6676d41e21 Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Wed, 15 Aug 2018 17:23:45 -0700 Subject: [PATCH 0045/2363] Bump version to 0.58.1-SNAPSHOT and 1.40.1-SNAPSHOT for development (#3566) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index dcd92c5c9b2c..04286dd06a97 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.40.0 + 1.40.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.58.0-alpha + 0.58.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c77e9b78213b..adf18bd4c10b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.22.0 + 1.22.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.23.0 + 0.23.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 69669932ab3b..67ca349425b2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.22.0 + 1.22.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.23.0 + 0.23.1-SNAPSHOT From 925fbc83915daddcf1e57581cfd4b6179e22100e Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Wed, 22 Aug 2018 16:39:03 -0700 Subject: [PATCH 0046/2363] release 0.59.0 (#3598) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index d1707a1ed9aa..3a15def1dc61 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.40.0 + 1.41.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.40.0' +compile 'com.google.cloud:google-cloud-pubsub:1.41.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.41.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 04286dd06a97..a842ce0de1d4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.40.1-SNAPSHOT + 1.41.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.58.1-alpha-SNAPSHOT + 0.59.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index adf18bd4c10b..981ac3902a70 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.22.1-SNAPSHOT + 1.23.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.23.1-SNAPSHOT + 0.24.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 67ca349425b2..0000bc8f7f2a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.22.1-SNAPSHOT + 1.23.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.23.1-SNAPSHOT + 0.24.0 From 1b3a298d5bfb632b50550e67e08dd92b689a9dbb Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Thu, 23 Aug 2018 19:32:16 -0700 Subject: [PATCH 0047/2363] bump version for development (#3599) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a842ce0de1d4..c5d85da7cc99 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.41.0 + 1.41.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.59.0-alpha + 0.59.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 981ac3902a70..814ac972dde7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.23.0 + 1.23.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.24.0 + 0.24.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0000bc8f7f2a..ab792d159452 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.23.0 + 1.23.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.24.0 + 0.24.1-SNAPSHOT From ada5460e2b1a4d6cb63d59a5064d3e00371c70df Mon Sep 17 00:00:00 2001 From: Jonas Wiklund Date: Fri, 24 Aug 2018 04:35:14 +0200 Subject: [PATCH 0048/2363] Fix documentation for setParallelPullCount (#3542) #3147 Changed the default without updating the documentation. --- .../src/main/java/com/google/cloud/pubsub/v1/Subscriber.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 5debfdf3218f..cf35733bda8b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -583,8 +583,7 @@ public Builder setSystemExecutorProvider(ExecutorProvider executorProvider) { } /** - * Sets the number of pullers used to pull messages from the subscription. Defaults to the - * number of available processors. + * Sets the number of pullers used to pull messages from the subscription. Defaults to one. */ public Builder setParallelPullCount(int parallelPullCount) { this.parallelPullCount = parallelPullCount; From ca239e96742ee4e5050d92300806924b17d1981d Mon Sep 17 00:00:00 2001 From: Hanzhen Yi <33737743+hzyi-google@users.noreply.github.com> Date: Thu, 30 Aug 2018 15:43:20 -0700 Subject: [PATCH 0049/2363] Release 0.60.0 (#3623) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 3a15def1dc61..d7a14fb807fc 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.41.0 + 1.42.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.41.0' +compile 'com.google.cloud:google-cloud-pubsub:1.42.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.42.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c5d85da7cc99..44ce16eb7728 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.41.1-SNAPSHOT + 1.42.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.59.1-alpha-SNAPSHOT + 0.60.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 814ac972dde7..5cc75a3e1b42 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.23.1-SNAPSHOT + 1.24.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.24.1-SNAPSHOT + 0.25.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ab792d159452..7523c5a34dbb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.23.1-SNAPSHOT + 1.24.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.24.1-SNAPSHOT + 0.25.0 From 60d3ea19a222c2cf396394ff2184594b93db625e Mon Sep 17 00:00:00 2001 From: Chris Sainty Date: Wed, 5 Sep 2018 20:09:40 +0200 Subject: [PATCH 0050/2363] pubsub: clean up after extension gives up (#3633) --- .../cloud/pubsub/v1/MessageDispatcher.java | 21 ++++++++++--------- .../pubsub/v1/MessageDispatcherTest.java | 13 +++++++++++- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index e41a2ed4f794..aad9446f06eb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -78,7 +78,7 @@ class MessageDispatcher { private final MessageWaiter messagesWaiter; // Maps ID to "total expiration time". If it takes longer than this, stop extending. - private final ConcurrentMap pendingMessages = new ConcurrentHashMap<>(); + private final ConcurrentMap pendingMessages = new ConcurrentHashMap<>(); private final LinkedBlockingQueue pendingAcks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingNacks = new LinkedBlockingQueue<>(); @@ -141,7 +141,7 @@ private class AckHandler implements FutureCallback { } private void onBoth(LinkedBlockingQueue destination) { - pendingMessages.remove(ackId); + pendingMessages.remove(this); destination.add(ackId); flowController.release(1, outstandingBytes); messagesWaiter.incrementPendingMessages(-1); @@ -329,17 +329,15 @@ public void processReceivedMessages(List messages, Runnable don } messagesWaiter.incrementPendingMessages(messages.size()); - Instant totalExpiration = now().plus(maxAckExtensionPeriod); - for (ReceivedMessage message : messages) { - pendingReceipts.add(message.getAckId()); - pendingMessages.put(message.getAckId(), totalExpiration); - } + Instant totalExpiration = now().plus(maxAckExtensionPeriod); OutstandingMessageBatch outstandingBatch = new OutstandingMessageBatch(doneCallback); for (ReceivedMessage message : messages) { AckHandler ackHandler = new AckHandler(message.getAckId(), message.getMessage().getSerializedSize()); outstandingBatch.addMessage(message, ackHandler); + pendingReceipts.add(message.getAckId()); + pendingMessages.put(ackHandler, totalExpiration); } synchronized (outstandingMessageBatches) { outstandingMessageBatches.add(outstandingBatch); @@ -436,10 +434,10 @@ void extendDeadlines() { Instant extendTo = now.plusSeconds(extendSeconds); int count = 0; - Iterator> it = pendingMessages.entrySet().iterator(); + Iterator> it = pendingMessages.entrySet().iterator(); while (it.hasNext()) { - Map.Entry entry = it.next(); - String ackId = entry.getKey(); + Map.Entry entry = it.next(); + String ackId = entry.getKey().ackId; Instant totalExpiration = entry.getValue(); // TODO(pongad): PendingModifyAckDeadline is created to dance around polling pull, // since one modack RPC only takes one expiration. @@ -455,6 +453,9 @@ void extendDeadlines() { int sec = Math.max(1, (int) now.until(totalExpiration, ChronoUnit.SECONDS)); modacks.add(new PendingModifyAckDeadline(sec, ackId)); count++; + } else { + flowController.release(1, entry.getKey().outstandingBytes); + messagesWaiter.incrementPendingMessages(-1); } } modacks.add(modack); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 2cd6997f6436..75296dd89c87 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -56,6 +56,7 @@ public void run() { private List sentAcks; private List sentModAcks; private FakeClock clock; + private FlowController flowController; @AutoValue abstract static class ModAckItem { @@ -101,6 +102,12 @@ public void sendAckOperations( systemExecutor.shutdownNow(); clock = new FakeClock(); + flowController = + new FlowController( + FlowControlSettings.newBuilder() + .setMaxOutstandingElementCount(1L) + .setLimitExceededBehavior(FlowController.LimitExceededBehavior.ThrowException) + .build()); dispatcher = new MessageDispatcher( @@ -109,7 +116,7 @@ public void sendAckOperations( Duration.ofSeconds(5), Duration.ofMinutes(60), new Distribution(Subscriber.MAX_ACK_DEADLINE_SECONDS + 1), - new FlowController(FlowControlSettings.newBuilder().build()), + flowController, new LinkedList(), MoreExecutors.directExecutor(), systemExecutor, @@ -182,6 +189,10 @@ public void testExtension_GiveUp() throws Exception { clock.advance(1, TimeUnit.DAYS); dispatcher.extendDeadlines(); assertThat(sentModAcks).isEmpty(); + + // We should be able to reserve another item in the flow controller and not block shutdown + flowController.reserve(1, 0); + dispatcher.stop(); } @Test From 3b2da82190a9c0be6ad7275a071fe555bc6d9eca Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 6 Sep 2018 11:21:42 -0700 Subject: [PATCH 0051/2363] Refresh all clients (#3647) --- .../google/pubsub/v1/AcknowledgeRequest.java | 44 ++++-------------- .../pubsub/v1/CreateSnapshotRequest.java | 45 ++++--------------- .../pubsub/v1/DeleteSnapshotRequest.java | 42 +++-------------- .../pubsub/v1/DeleteSubscriptionRequest.java | 42 +++-------------- .../google/pubsub/v1/DeleteTopicRequest.java | 42 +++-------------- .../google/pubsub/v1/GetSnapshotRequest.java | 42 +++-------------- .../pubsub/v1/GetSubscriptionRequest.java | 42 +++-------------- .../com/google/pubsub/v1/GetTopicRequest.java | 42 +++-------------- .../pubsub/v1/ListSnapshotsRequest.java | 44 ++++-------------- .../pubsub/v1/ListSnapshotsResponse.java | 44 ++++-------------- .../pubsub/v1/ListSubscriptionsRequest.java | 44 ++++-------------- .../pubsub/v1/ListSubscriptionsResponse.java | 44 ++++-------------- .../pubsub/v1/ListTopicSnapshotsRequest.java | 44 ++++-------------- .../pubsub/v1/ListTopicSnapshotsResponse.java | 44 ++++-------------- .../v1/ListTopicSubscriptionsRequest.java | 44 ++++-------------- .../v1/ListTopicSubscriptionsResponse.java | 44 ++++-------------- .../google/pubsub/v1/ListTopicsRequest.java | 44 ++++-------------- .../google/pubsub/v1/ListTopicsResponse.java | 44 ++++-------------- .../pubsub/v1/MessageStoragePolicy.java | 44 ++++-------------- .../pubsub/v1/ModifyAckDeadlineRequest.java | 44 ++++-------------- .../pubsub/v1/ModifyPushConfigRequest.java | 44 ++++-------------- .../com/google/pubsub/v1/PublishRequest.java | 44 ++++-------------- .../com/google/pubsub/v1/PublishResponse.java | 44 ++++-------------- .../com/google/pubsub/v1/PubsubMessage.java | 45 ++++--------------- .../com/google/pubsub/v1/PubsubProto.java | 36 +++++++-------- .../com/google/pubsub/v1/PullRequest.java | 44 ++++-------------- .../com/google/pubsub/v1/PullResponse.java | 44 ++++-------------- .../java/com/google/pubsub/v1/PushConfig.java | 45 ++++--------------- .../com/google/pubsub/v1/ReceivedMessage.java | 44 ++++-------------- .../com/google/pubsub/v1/SeekRequest.java | 44 ++++-------------- .../com/google/pubsub/v1/SeekResponse.java | 30 +------------ .../java/com/google/pubsub/v1/Snapshot.java | 45 ++++--------------- .../pubsub/v1/StreamingPullRequest.java | 44 ++++-------------- .../pubsub/v1/StreamingPullResponse.java | 44 ++++-------------- .../com/google/pubsub/v1/Subscription.java | 45 ++++--------------- .../main/java/com/google/pubsub/v1/Topic.java | 45 ++++--------------- .../pubsub/v1/UpdateSnapshotRequest.java | 44 ++++-------------- .../pubsub/v1/UpdateSubscriptionRequest.java | 44 ++++-------------- .../google/pubsub/v1/UpdateTopicRequest.java | 44 ++++-------------- 39 files changed, 309 insertions(+), 1379 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index a5520a9b52e1..70c45825b8ac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -34,9 +34,6 @@ private AcknowledgeRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private AcknowledgeRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -63,13 +67,6 @@ private AcknowledgeRequest( ackIds_.add(s); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private AcknowledgeRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable @@ -193,7 +189,6 @@ public java.lang.String getAckIds(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -203,7 +198,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -215,7 +209,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -344,7 +337,6 @@ public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -352,7 +344,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.AcknowledgeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -380,7 +371,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable @@ -403,7 +393,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -413,18 +402,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { return com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest build() { com.google.pubsub.v1.AcknowledgeRequest result = buildPartial(); if (!result.isInitialized()) { @@ -433,7 +419,6 @@ public com.google.pubsub.v1.AcknowledgeRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { com.google.pubsub.v1.AcknowledgeRequest result = new com.google.pubsub.v1.AcknowledgeRequest(this); int from_bitField0_ = bitField0_; @@ -449,39 +434,32 @@ public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.AcknowledgeRequest) { return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest)other); @@ -512,12 +490,10 @@ public Builder mergeFrom(com.google.pubsub.v1.AcknowledgeRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -769,13 +745,11 @@ public Builder addAckIdsBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -797,12 +771,11 @@ public static com.google.pubsub.v1.AcknowledgeRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public AcknowledgeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AcknowledgeRequest(input, extensionRegistry); + return new AcknowledgeRequest(input, extensionRegistry); } }; @@ -815,7 +788,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 60a97f98bbf0..37d2152862c9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -37,9 +37,6 @@ private CreateSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -51,6 +48,13 @@ private CreateSnapshotRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -76,13 +80,6 @@ private CreateSnapshotRequest( labels__.getKey(), labels__.getValue()); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,7 +98,6 @@ private CreateSnapshotRequest( } @SuppressWarnings({"rawtypes"}) - @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -112,7 +108,6 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable @@ -322,7 +317,6 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -332,7 +326,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -350,7 +343,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -488,7 +480,6 @@ public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -496,7 +487,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.CreateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -549,7 +539,6 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable @@ -572,7 +561,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -583,18 +571,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest build() { com.google.pubsub.v1.CreateSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -603,7 +588,6 @@ public com.google.pubsub.v1.CreateSnapshotRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this); int from_bitField0_ = bitField0_; @@ -617,39 +601,32 @@ public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.CreateSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest)other); @@ -676,12 +653,10 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1089,13 +1064,11 @@ public Builder putAllLabels( .putAll(values); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1117,12 +1090,11 @@ public static com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public CreateSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSnapshotRequest(input, extensionRegistry); + return new CreateSnapshotRequest(input, extensionRegistry); } }; @@ -1135,7 +1107,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 3c8a6390dd31..42b16f4b8fee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -36,9 +36,6 @@ private DeleteSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,12 +47,6 @@ private DeleteSnapshotRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - snapshot_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -63,6 +54,12 @@ private DeleteSnapshotRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + snapshot_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,7 +77,6 @@ private DeleteSnapshotRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable @@ -133,7 +129,6 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -143,7 +138,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSnapshotBytes().isEmpty()) { @@ -152,7 +146,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -267,7 +260,6 @@ public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -275,7 +267,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.DeleteSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -306,7 +297,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable @@ -329,7 +319,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); snapshot_ = ""; @@ -337,18 +326,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest build() { com.google.pubsub.v1.DeleteSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -357,7 +343,6 @@ public com.google.pubsub.v1.DeleteSnapshotRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { com.google.pubsub.v1.DeleteSnapshotRequest result = new com.google.pubsub.v1.DeleteSnapshotRequest(this); result.snapshot_ = snapshot_; @@ -365,39 +350,32 @@ public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest)other); @@ -418,12 +396,10 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSnapshotRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -535,13 +511,11 @@ public Builder setSnapshotBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -563,12 +537,11 @@ public static com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public DeleteSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSnapshotRequest(input, extensionRegistry); + return new DeleteSnapshotRequest(input, extensionRegistry); } }; @@ -581,7 +554,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index bc3a307361fb..2712f7b0aedd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -33,9 +33,6 @@ private DeleteSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private DeleteSubscriptionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - subscription_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private DeleteSubscriptionRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private DeleteSubscriptionRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable @@ -130,7 +126,6 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,7 +135,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -149,7 +143,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -264,7 +257,6 @@ public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -272,7 +264,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.DeleteSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,7 +291,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable @@ -323,7 +313,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -331,18 +320,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest build() { com.google.pubsub.v1.DeleteSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -351,7 +337,6 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { com.google.pubsub.v1.DeleteSubscriptionRequest result = new com.google.pubsub.v1.DeleteSubscriptionRequest(this); result.subscription_ = subscription_; @@ -359,39 +344,32 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSubscriptionRequest) { return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest)other); @@ -412,12 +390,10 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSubscriptionRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -529,13 +505,11 @@ public Builder setSubscriptionBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -557,12 +531,11 @@ public static com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public DeleteSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSubscriptionRequest(input, extensionRegistry); + return new DeleteSubscriptionRequest(input, extensionRegistry); } }; @@ -575,7 +548,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 3035fb08c3f6..893570ab861f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -33,9 +33,6 @@ private DeleteTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private DeleteTopicRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topic_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private DeleteTopicRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private DeleteTopicRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable @@ -130,7 +126,6 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,7 +135,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -149,7 +143,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -264,7 +257,6 @@ public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -272,7 +264,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.DeleteTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,7 +291,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable @@ -323,7 +313,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -331,18 +320,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest build() { com.google.pubsub.v1.DeleteTopicRequest result = buildPartial(); if (!result.isInitialized()) { @@ -351,7 +337,6 @@ public com.google.pubsub.v1.DeleteTopicRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { com.google.pubsub.v1.DeleteTopicRequest result = new com.google.pubsub.v1.DeleteTopicRequest(this); result.topic_ = topic_; @@ -359,39 +344,32 @@ public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteTopicRequest) { return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest)other); @@ -412,12 +390,10 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteTopicRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -529,13 +505,11 @@ public Builder setTopicBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -557,12 +531,11 @@ public static com.google.pubsub.v1.DeleteTopicRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public DeleteTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTopicRequest(input, extensionRegistry); + return new DeleteTopicRequest(input, extensionRegistry); } }; @@ -575,7 +548,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 188b2057aef9..369124096379 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -36,9 +36,6 @@ private GetSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,12 +47,6 @@ private GetSnapshotRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - snapshot_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -63,6 +54,12 @@ private GetSnapshotRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + snapshot_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,7 +77,6 @@ private GetSnapshotRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable @@ -133,7 +129,6 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -143,7 +138,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSnapshotBytes().isEmpty()) { @@ -152,7 +146,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -267,7 +260,6 @@ public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -275,7 +267,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.GetSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -306,7 +297,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable @@ -329,7 +319,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); snapshot_ = ""; @@ -337,18 +326,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest build() { com.google.pubsub.v1.GetSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -357,7 +343,6 @@ public com.google.pubsub.v1.GetSnapshotRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { com.google.pubsub.v1.GetSnapshotRequest result = new com.google.pubsub.v1.GetSnapshotRequest(this); result.snapshot_ = snapshot_; @@ -365,39 +350,32 @@ public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest)other); @@ -418,12 +396,10 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSnapshotRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -535,13 +511,11 @@ public Builder setSnapshotBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -563,12 +537,11 @@ public static com.google.pubsub.v1.GetSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSnapshotRequest(input, extensionRegistry); + return new GetSnapshotRequest(input, extensionRegistry); } }; @@ -581,7 +554,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 5acb2a1010a2..750eaf5a9d13 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -33,9 +33,6 @@ private GetSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private GetSubscriptionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - subscription_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private GetSubscriptionRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private GetSubscriptionRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable @@ -130,7 +126,6 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,7 +135,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -149,7 +143,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -264,7 +257,6 @@ public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -272,7 +264,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.GetSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,7 +291,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable @@ -323,7 +313,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -331,18 +320,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest build() { com.google.pubsub.v1.GetSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -351,7 +337,6 @@ public com.google.pubsub.v1.GetSubscriptionRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { com.google.pubsub.v1.GetSubscriptionRequest result = new com.google.pubsub.v1.GetSubscriptionRequest(this); result.subscription_ = subscription_; @@ -359,39 +344,32 @@ public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSubscriptionRequest) { return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest)other); @@ -412,12 +390,10 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSubscriptionRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -529,13 +505,11 @@ public Builder setSubscriptionBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -557,12 +531,11 @@ public static com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSubscriptionRequest(input, extensionRegistry); + return new GetSubscriptionRequest(input, extensionRegistry); } }; @@ -575,7 +548,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 96a14ee3a1c1..413a9aec9a73 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -33,9 +33,6 @@ private GetTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,12 +44,6 @@ private GetTopicRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topic_ = s; - break; - } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -60,6 +51,12 @@ private GetTopicRequest( } break; } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,7 +74,6 @@ private GetTopicRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable @@ -130,7 +126,6 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -140,7 +135,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -149,7 +143,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -264,7 +257,6 @@ public static com.google.pubsub.v1.GetTopicRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -272,7 +264,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.GetTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -300,7 +291,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable @@ -323,7 +313,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -331,18 +320,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.GetTopicRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.GetTopicRequest build() { com.google.pubsub.v1.GetTopicRequest result = buildPartial(); if (!result.isInitialized()) { @@ -351,7 +337,6 @@ public com.google.pubsub.v1.GetTopicRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.GetTopicRequest buildPartial() { com.google.pubsub.v1.GetTopicRequest result = new com.google.pubsub.v1.GetTopicRequest(this); result.topic_ = topic_; @@ -359,39 +344,32 @@ public com.google.pubsub.v1.GetTopicRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetTopicRequest) { return mergeFrom((com.google.pubsub.v1.GetTopicRequest)other); @@ -412,12 +390,10 @@ public Builder mergeFrom(com.google.pubsub.v1.GetTopicRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -529,13 +505,11 @@ public Builder setTopicBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -557,12 +531,11 @@ public static com.google.pubsub.v1.GetTopicRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public GetTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTopicRequest(input, extensionRegistry); + return new GetTopicRequest(input, extensionRegistry); } }; @@ -575,7 +548,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 395981712496..ecb3cd5cc584 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -38,9 +38,6 @@ private ListSnapshotsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -52,6 +49,13 @@ private ListSnapshotsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -69,13 +73,6 @@ private ListSnapshotsRequest( pageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,7 +90,6 @@ private ListSnapshotsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable @@ -205,7 +201,6 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -215,7 +210,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProjectBytes().isEmpty()) { @@ -230,7 +224,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -360,7 +353,6 @@ public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -368,7 +360,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -399,7 +390,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable @@ -422,7 +412,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); project_ = ""; @@ -434,18 +423,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest build() { com.google.pubsub.v1.ListSnapshotsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -454,7 +440,6 @@ public com.google.pubsub.v1.ListSnapshotsRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { com.google.pubsub.v1.ListSnapshotsRequest result = new com.google.pubsub.v1.ListSnapshotsRequest(this); result.project_ = project_; @@ -464,39 +449,32 @@ public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSnapshotsRequest) { return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest)other); @@ -524,12 +502,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -778,13 +754,11 @@ public Builder setPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -806,12 +780,11 @@ public static com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListSnapshotsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotsRequest(input, extensionRegistry); + return new ListSnapshotsRequest(input, extensionRegistry); } }; @@ -824,7 +797,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index b2f0b97af288..db9523124c30 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -37,9 +37,6 @@ private ListSnapshotsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -51,6 +48,13 @@ private ListSnapshotsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { snapshots_ = new java.util.ArrayList(); @@ -66,13 +70,6 @@ private ListSnapshotsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,7 +90,6 @@ private ListSnapshotsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable @@ -202,7 +198,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -212,7 +207,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snapshots_.size(); i++) { @@ -224,7 +218,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -349,7 +342,6 @@ public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -357,7 +349,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -388,7 +379,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable @@ -412,7 +402,6 @@ private void maybeForceBuilderInitialization() { getSnapshotsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (snapshotsBuilder_ == null) { @@ -426,18 +415,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse build() { com.google.pubsub.v1.ListSnapshotsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -446,7 +432,6 @@ public com.google.pubsub.v1.ListSnapshotsResponse build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { com.google.pubsub.v1.ListSnapshotsResponse result = new com.google.pubsub.v1.ListSnapshotsResponse(this); int from_bitField0_ = bitField0_; @@ -466,39 +451,32 @@ public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSnapshotsResponse) { return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse)other); @@ -545,12 +523,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsResponse other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -975,13 +951,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1003,12 +977,11 @@ public static com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListSnapshotsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotsResponse(input, extensionRegistry); + return new ListSnapshotsResponse(input, extensionRegistry); } }; @@ -1021,7 +994,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 4bb9f157303a..5100a0e14cbc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -35,9 +35,6 @@ private ListSubscriptionsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private ListSubscriptionsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private ListSubscriptionsRequest( pageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListSubscriptionsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable @@ -202,7 +198,6 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -212,7 +207,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProjectBytes().isEmpty()) { @@ -227,7 +221,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -357,7 +350,6 @@ public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -365,7 +357,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -393,7 +384,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable @@ -416,7 +406,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); project_ = ""; @@ -428,18 +417,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest build() { com.google.pubsub.v1.ListSubscriptionsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -448,7 +434,6 @@ public com.google.pubsub.v1.ListSubscriptionsRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { com.google.pubsub.v1.ListSubscriptionsRequest result = new com.google.pubsub.v1.ListSubscriptionsRequest(this); result.project_ = project_; @@ -458,39 +443,32 @@ public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSubscriptionsRequest) { return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest)other); @@ -518,12 +496,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -772,13 +748,11 @@ public Builder setPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -800,12 +774,11 @@ public static com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListSubscriptionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSubscriptionsRequest(input, extensionRegistry); + return new ListSubscriptionsRequest(input, extensionRegistry); } }; @@ -818,7 +791,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 4a6e2e45db6f..e5d36b843a19 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -34,9 +34,6 @@ private ListSubscriptionsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ListSubscriptionsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { subscriptions_ = new java.util.ArrayList(); @@ -63,13 +67,6 @@ private ListSubscriptionsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListSubscriptionsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable @@ -201,7 +197,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -211,7 +206,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { @@ -223,7 +217,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -348,7 +341,6 @@ public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -356,7 +348,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -384,7 +375,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable @@ -408,7 +398,6 @@ private void maybeForceBuilderInitialization() { getSubscriptionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (subscriptionsBuilder_ == null) { @@ -422,18 +411,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse build() { com.google.pubsub.v1.ListSubscriptionsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -442,7 +428,6 @@ public com.google.pubsub.v1.ListSubscriptionsResponse build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { com.google.pubsub.v1.ListSubscriptionsResponse result = new com.google.pubsub.v1.ListSubscriptionsResponse(this); int from_bitField0_ = bitField0_; @@ -462,39 +447,32 @@ public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSubscriptionsResponse) { return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse)other); @@ -541,12 +519,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsResponse other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -976,13 +952,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1004,12 +978,11 @@ public static com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListSubscriptionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSubscriptionsResponse(input, extensionRegistry); + return new ListSubscriptionsResponse(input, extensionRegistry); } }; @@ -1022,7 +995,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 6d986b340ed1..adce7d938bbd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -38,9 +38,6 @@ private ListTopicSnapshotsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -52,6 +49,13 @@ private ListTopicSnapshotsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -69,13 +73,6 @@ private ListTopicSnapshotsRequest( pageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,7 +90,6 @@ private ListTopicSnapshotsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable @@ -205,7 +201,6 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -215,7 +210,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -230,7 +224,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -360,7 +353,6 @@ public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -368,7 +360,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -399,7 +390,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable @@ -422,7 +412,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -434,18 +423,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest build() { com.google.pubsub.v1.ListTopicSnapshotsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -454,7 +440,6 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { com.google.pubsub.v1.ListTopicSnapshotsRequest result = new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); result.topic_ = topic_; @@ -464,39 +449,32 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsRequest) { return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest)other); @@ -524,12 +502,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -778,13 +754,11 @@ public Builder setPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -806,12 +780,11 @@ public static com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListTopicSnapshotsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSnapshotsRequest(input, extensionRegistry); + return new ListTopicSnapshotsRequest(input, extensionRegistry); } }; @@ -824,7 +797,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 6fd57022e4a6..e9effdd1b2c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -37,9 +37,6 @@ private ListTopicSnapshotsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -51,6 +48,13 @@ private ListTopicSnapshotsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -66,13 +70,6 @@ private ListTopicSnapshotsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,7 +90,6 @@ private ListTopicSnapshotsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable @@ -194,7 +190,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -204,7 +199,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snapshots_.size(); i++) { @@ -216,7 +210,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -345,7 +338,6 @@ public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -353,7 +345,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -384,7 +375,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable @@ -407,7 +397,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -417,18 +406,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse build() { com.google.pubsub.v1.ListTopicSnapshotsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -437,7 +423,6 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { com.google.pubsub.v1.ListTopicSnapshotsResponse result = new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); int from_bitField0_ = bitField0_; @@ -453,39 +438,32 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsResponse) { return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse)other); @@ -516,12 +494,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -769,13 +745,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -797,12 +771,11 @@ public static com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListTopicSnapshotsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSnapshotsResponse(input, extensionRegistry); + return new ListTopicSnapshotsResponse(input, extensionRegistry); } }; @@ -815,7 +788,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index bc420cdc461a..56eed7315bb3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -35,9 +35,6 @@ private ListTopicSubscriptionsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private ListTopicSubscriptionsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private ListTopicSubscriptionsRequest( pageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListTopicSubscriptionsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable @@ -202,7 +198,6 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -212,7 +207,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -227,7 +221,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -357,7 +350,6 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -365,7 +357,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -393,7 +384,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable @@ -416,7 +406,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -428,18 +417,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { com.google.pubsub.v1.ListTopicSubscriptionsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -448,7 +434,6 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { com.google.pubsub.v1.ListTopicSubscriptionsRequest result = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); result.topic_ = topic_; @@ -458,39 +443,32 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsRequest) { return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest)other); @@ -518,12 +496,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsRequest othe return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -772,13 +748,11 @@ public Builder setPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -800,12 +774,11 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInsta private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListTopicSubscriptionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSubscriptionsRequest(input, extensionRegistry); + return new ListTopicSubscriptionsRequest(input, extensionRegistry); } }; @@ -818,7 +791,6 @@ public com.google.protobuf.Parser getParserForTyp return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index a25a85049c2f..4c2d99a2dd7e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -34,9 +34,6 @@ private ListTopicSubscriptionsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ListTopicSubscriptionsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -63,13 +67,6 @@ private ListTopicSubscriptionsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListTopicSubscriptionsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable @@ -191,7 +187,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -201,7 +196,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { @@ -213,7 +207,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -342,7 +335,6 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -350,7 +342,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -378,7 +369,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable @@ -401,7 +391,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -411,18 +400,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { com.google.pubsub.v1.ListTopicSubscriptionsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -431,7 +417,6 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { com.google.pubsub.v1.ListTopicSubscriptionsResponse result = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); int from_bitField0_ = bitField0_; @@ -447,39 +432,32 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsResponse) { return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse)other); @@ -510,12 +488,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsResponse oth return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -763,13 +739,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -791,12 +765,11 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInst private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListTopicSubscriptionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSubscriptionsResponse(input, extensionRegistry); + return new ListTopicSubscriptionsResponse(input, extensionRegistry); } }; @@ -809,7 +782,6 @@ public com.google.protobuf.Parser getParserForTy return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 6e0349fb2bf9..d3805cecf8f1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -35,9 +35,6 @@ private ListTopicsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private ListTopicsRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private ListTopicsRequest( pageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListTopicsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable @@ -202,7 +198,6 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -212,7 +207,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProjectBytes().isEmpty()) { @@ -227,7 +221,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -357,7 +350,6 @@ public static com.google.pubsub.v1.ListTopicsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -365,7 +357,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -393,7 +384,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable @@ -416,7 +406,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); project_ = ""; @@ -428,18 +417,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest build() { com.google.pubsub.v1.ListTopicsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -448,7 +434,6 @@ public com.google.pubsub.v1.ListTopicsRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest buildPartial() { com.google.pubsub.v1.ListTopicsRequest result = new com.google.pubsub.v1.ListTopicsRequest(this); result.project_ = project_; @@ -458,39 +443,32 @@ public com.google.pubsub.v1.ListTopicsRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicsRequest) { return mergeFrom((com.google.pubsub.v1.ListTopicsRequest)other); @@ -518,12 +496,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -772,13 +748,11 @@ public Builder setPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -800,12 +774,11 @@ public static com.google.pubsub.v1.ListTopicsRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListTopicsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicsRequest(input, extensionRegistry); + return new ListTopicsRequest(input, extensionRegistry); } }; @@ -818,7 +791,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 73aeea01f63e..2bfb90b1de3b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -34,9 +34,6 @@ private ListTopicsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private ListTopicsResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { topics_ = new java.util.ArrayList(); @@ -63,13 +67,6 @@ private ListTopicsResponse( nextPageToken_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ListTopicsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable @@ -199,7 +195,6 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -209,7 +204,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < topics_.size(); i++) { @@ -221,7 +215,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -346,7 +339,6 @@ public static com.google.pubsub.v1.ListTopicsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -354,7 +346,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -382,7 +373,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable @@ -406,7 +396,6 @@ private void maybeForceBuilderInitialization() { getTopicsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (topicsBuilder_ == null) { @@ -420,18 +409,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse build() { com.google.pubsub.v1.ListTopicsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -440,7 +426,6 @@ public com.google.pubsub.v1.ListTopicsResponse build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse buildPartial() { com.google.pubsub.v1.ListTopicsResponse result = new com.google.pubsub.v1.ListTopicsResponse(this); int from_bitField0_ = bitField0_; @@ -460,39 +445,32 @@ public com.google.pubsub.v1.ListTopicsResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicsResponse) { return mergeFrom((com.google.pubsub.v1.ListTopicsResponse)other); @@ -539,12 +517,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsResponse other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -969,13 +945,11 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -997,12 +971,11 @@ public static com.google.pubsub.v1.ListTopicsResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ListTopicsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicsResponse(input, extensionRegistry); + return new ListTopicsResponse(input, extensionRegistry); } }; @@ -1015,7 +988,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 75852188aea0..b878fc91eba1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -29,9 +29,6 @@ private MessageStoragePolicy( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -43,6 +40,13 @@ private MessageStoragePolicy( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -52,13 +56,6 @@ private MessageStoragePolicy( allowedPersistenceRegions_.add(s); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,7 +76,6 @@ private MessageStoragePolicy( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable @@ -153,7 +149,6 @@ public java.lang.String getAllowedPersistenceRegions(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -163,7 +158,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedPersistenceRegions_.size(); i++) { @@ -172,7 +166,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -294,7 +287,6 @@ public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -302,7 +294,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.MessageStoragePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -326,7 +317,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable @@ -349,7 +339,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -357,18 +346,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } - @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { return com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy build() { com.google.pubsub.v1.MessageStoragePolicy result = buildPartial(); if (!result.isInitialized()) { @@ -377,7 +363,6 @@ public com.google.pubsub.v1.MessageStoragePolicy build() { return result; } - @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { com.google.pubsub.v1.MessageStoragePolicy result = new com.google.pubsub.v1.MessageStoragePolicy(this); int from_bitField0_ = bitField0_; @@ -390,39 +375,32 @@ public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.MessageStoragePolicy) { return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy)other); @@ -449,12 +427,10 @@ public Builder mergeFrom(com.google.pubsub.v1.MessageStoragePolicy other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -648,13 +624,11 @@ public Builder addAllowedPersistenceRegionsBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -676,12 +650,11 @@ public static com.google.pubsub.v1.MessageStoragePolicy getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public MessageStoragePolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MessageStoragePolicy(input, extensionRegistry); + return new MessageStoragePolicy(input, extensionRegistry); } }; @@ -694,7 +667,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index e5b5f07c18ea..90da0e1ed7d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -35,9 +35,6 @@ private ModifyAckDeadlineRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private ModifyAckDeadlineRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -69,13 +73,6 @@ private ModifyAckDeadlineRequest( ackIds_.add(s); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +93,6 @@ private ModifyAckDeadlineRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable @@ -214,7 +210,6 @@ public int getAckDeadlineSeconds() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -224,7 +219,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -239,7 +233,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -376,7 +369,6 @@ public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -384,7 +376,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ModifyAckDeadlineRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -412,7 +403,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable @@ -435,7 +425,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -447,18 +436,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest build() { com.google.pubsub.v1.ModifyAckDeadlineRequest result = buildPartial(); if (!result.isInitialized()) { @@ -467,7 +453,6 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); int from_bitField0_ = bitField0_; @@ -484,39 +469,32 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ModifyAckDeadlineRequest) { return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest)other); @@ -550,12 +528,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ModifyAckDeadlineRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -854,13 +830,11 @@ public Builder clearAckDeadlineSeconds() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -882,12 +856,11 @@ public static com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ModifyAckDeadlineRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyAckDeadlineRequest(input, extensionRegistry); + return new ModifyAckDeadlineRequest(input, extensionRegistry); } }; @@ -900,7 +873,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index bbc1ae913421..0921ba9af322 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -33,9 +33,6 @@ private ModifyPushConfigRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private ModifyPushConfigRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private ModifyPushConfigRequest( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ModifyPushConfigRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable @@ -188,7 +184,6 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -198,7 +193,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -210,7 +204,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -338,7 +331,6 @@ public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -346,7 +338,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ModifyPushConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -374,7 +365,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable @@ -397,7 +387,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -411,18 +400,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest build() { com.google.pubsub.v1.ModifyPushConfigRequest result = buildPartial(); if (!result.isInitialized()) { @@ -431,7 +417,6 @@ public com.google.pubsub.v1.ModifyPushConfigRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { com.google.pubsub.v1.ModifyPushConfigRequest result = new com.google.pubsub.v1.ModifyPushConfigRequest(this); result.subscription_ = subscription_; @@ -444,39 +429,32 @@ public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ModifyPushConfigRequest) { return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest)other); @@ -500,12 +478,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ModifyPushConfigRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -806,13 +782,11 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } return pushConfigBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -834,12 +808,11 @@ public static com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ModifyPushConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyPushConfigRequest(input, extensionRegistry); + return new ModifyPushConfigRequest(input, extensionRegistry); } }; @@ -852,7 +825,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 9cc50d4286c2..83bb1a7a6410 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -34,9 +34,6 @@ private PublishRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private PublishRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -63,13 +67,6 @@ private PublishRequest( input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private PublishRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable @@ -199,7 +195,6 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -209,7 +204,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -221,7 +215,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -346,7 +339,6 @@ public static com.google.pubsub.v1.PublishRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -354,7 +346,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PublishRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -382,7 +373,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable @@ -406,7 +396,6 @@ private void maybeForceBuilderInitialization() { getMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -420,18 +409,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { return com.google.pubsub.v1.PublishRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.PublishRequest build() { com.google.pubsub.v1.PublishRequest result = buildPartial(); if (!result.isInitialized()) { @@ -440,7 +426,6 @@ public com.google.pubsub.v1.PublishRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.PublishRequest buildPartial() { com.google.pubsub.v1.PublishRequest result = new com.google.pubsub.v1.PublishRequest(this); int from_bitField0_ = bitField0_; @@ -460,39 +445,32 @@ public com.google.pubsub.v1.PublishRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PublishRequest) { return mergeFrom((com.google.pubsub.v1.PublishRequest)other); @@ -539,12 +517,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -969,13 +945,11 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder( } return messagesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -997,12 +971,11 @@ public static com.google.pubsub.v1.PublishRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PublishRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishRequest(input, extensionRegistry); + return new PublishRequest(input, extensionRegistry); } }; @@ -1015,7 +988,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index ec61a1cd0823..f5a167742930 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -33,9 +33,6 @@ private PublishResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private PublishResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -56,13 +60,6 @@ private PublishResponse( messageIds_.add(s); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,7 +80,6 @@ private PublishResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable @@ -145,7 +141,6 @@ public java.lang.String getMessageIds(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -155,7 +150,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < messageIds_.size(); i++) { @@ -164,7 +158,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -286,7 +279,6 @@ public static com.google.pubsub.v1.PublishResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -294,7 +286,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PublishResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -322,7 +313,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable @@ -345,7 +335,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -353,18 +342,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } - @java.lang.Override public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { return com.google.pubsub.v1.PublishResponse.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.PublishResponse build() { com.google.pubsub.v1.PublishResponse result = buildPartial(); if (!result.isInitialized()) { @@ -373,7 +359,6 @@ public com.google.pubsub.v1.PublishResponse build() { return result; } - @java.lang.Override public com.google.pubsub.v1.PublishResponse buildPartial() { com.google.pubsub.v1.PublishResponse result = new com.google.pubsub.v1.PublishResponse(this); int from_bitField0_ = bitField0_; @@ -386,39 +371,32 @@ public com.google.pubsub.v1.PublishResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PublishResponse) { return mergeFrom((com.google.pubsub.v1.PublishResponse)other); @@ -445,12 +423,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishResponse other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -617,13 +593,11 @@ public Builder addMessageIdsBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -645,12 +619,11 @@ public static com.google.pubsub.v1.PublishResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PublishResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishResponse(input, extensionRegistry); + return new PublishResponse(input, extensionRegistry); } }; @@ -663,7 +636,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index c9bd7aa3d858..8229f3bd9ccc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -35,9 +35,6 @@ private PubsubMessage( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private PubsubMessage( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { data_ = input.readBytes(); @@ -86,13 +90,6 @@ private PubsubMessage( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +108,6 @@ private PubsubMessage( } @SuppressWarnings({"rawtypes"}) - @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -122,7 +118,6 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable @@ -324,7 +319,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -334,7 +328,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!data_.isEmpty()) { @@ -355,7 +348,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -507,7 +499,6 @@ public static com.google.pubsub.v1.PubsubMessage parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -515,7 +506,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PubsubMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -566,7 +556,6 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable @@ -589,7 +578,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; @@ -606,18 +594,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor; } - @java.lang.Override public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { return com.google.pubsub.v1.PubsubMessage.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.PubsubMessage build() { com.google.pubsub.v1.PubsubMessage result = buildPartial(); if (!result.isInitialized()) { @@ -626,7 +611,6 @@ public com.google.pubsub.v1.PubsubMessage build() { return result; } - @java.lang.Override public com.google.pubsub.v1.PubsubMessage buildPartial() { com.google.pubsub.v1.PubsubMessage result = new com.google.pubsub.v1.PubsubMessage(this); int from_bitField0_ = bitField0_; @@ -645,39 +629,32 @@ public com.google.pubsub.v1.PubsubMessage buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PubsubMessage) { return mergeFrom((com.google.pubsub.v1.PubsubMessage)other); @@ -706,12 +683,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1197,13 +1172,11 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { } return publishTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1225,12 +1198,11 @@ public static com.google.pubsub.v1.PubsubMessage getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PubsubMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PubsubMessage(input, extensionRegistry); + return new PubsubMessage(input, extensionRegistry); } }; @@ -1243,7 +1215,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 31cbf40afb8b..5b803c36f257 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -252,7 +252,7 @@ public static void registerAllExtensions( "ed_persistence_regions\030\001 \003(\t\"\301\001\n\005Topic\022\014" + "\n\004name\030\001 \001(\t\0223\n\006labels\030\002 \003(\0132#.google.pu" + "bsub.v1.Topic.LabelsEntry\022F\n\026message_sto" + - "rage_policy\030\003 \001(\0132&.google.pubsub.v1.Mes" + + "rage_policy\030\003 \001(\0132&.google.pubsub.v1.Mes", "sageStoragePolicy\032-\n\013LabelsEntry\022\013\n\003key\030" + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\333\001\n\rPubsubMessa" + "ge\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.g" + @@ -262,7 +262,7 @@ public static void registerAllExtensions( "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + "(\t:\0028\001\" \n\017GetTopicRequest\022\r\n\005topic\030\001 \001(\t" + "\"m\n\022UpdateTopicRequest\022&\n\005topic\030\001 \001(\0132\027." + - "google.pubsub.v1.Topic\022/\n\013update_mask\030\002 " + + "google.pubsub.v1.Topic\022/\n\013update_mask\030\002 ", "\001(\0132\032.google.protobuf.FieldMask\"R\n\016Publi" + "shRequest\022\r\n\005topic\030\001 \001(\t\0221\n\010messages\030\002 \003" + "(\0132\037.google.pubsub.v1.PubsubMessage\"&\n\017P" + @@ -272,7 +272,7 @@ public static void registerAllExtensions( "TopicsResponse\022\'\n\006topics\030\001 \003(\0132\027.google." + "pubsub.v1.Topic\022\027\n\017next_page_token\030\002 \001(\t" + "\"U\n\035ListTopicSubscriptionsRequest\022\r\n\005top" + - "ic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "ic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke", "n\030\003 \001(\t\"P\n\036ListTopicSubscriptionsRespons" + "e\022\025\n\rsubscriptions\030\001 \003(\t\022\027\n\017next_page_to" + "ken\030\002 \001(\t\"Q\n\031ListTopicSnapshotsRequest\022\r" + @@ -282,7 +282,7 @@ public static void registerAllExtensions( "\030\002 \001(\t\"#\n\022DeleteTopicRequest\022\r\n\005topic\030\001 " + "\001(\t\"\305\002\n\014Subscription\022\014\n\004name\030\001 \001(\t\022\r\n\005to" + "pic\030\002 \001(\t\0221\n\013push_config\030\004 \001(\0132\034.google." + - "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec" + + "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec", "onds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(" + "\010\022=\n\032message_retention_duration\030\010 \001(\0132\031." + "google.protobuf.Duration\022:\n\006labels\030\t \003(\013" + @@ -292,7 +292,7 @@ public static void registerAllExtensions( "int\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google.p" + "ubsub.v1.PushConfig.AttributesEntry\0321\n\017A" + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(" + + "(\t:\0028\001\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(", "\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pu" + "bsubMessage\".\n\026GetSubscriptionRequest\022\024\n" + "\014subscription\030\001 \001(\t\"\202\001\n\031UpdateSubscripti" + @@ -302,7 +302,7 @@ public static void registerAllExtensions( "SubscriptionsRequest\022\017\n\007project\030\001 \001(\t\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031" + "ListSubscriptionsResponse\0225\n\rsubscriptio" + - "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription" + + "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription", "\022\027\n\017next_page_token\030\002 \001(\t\"1\n\031DeleteSubsc" + "riptionRequest\022\024\n\014subscription\030\001 \001(\t\"b\n\027" + "ModifyPushConfigRequest\022\024\n\014subscription\030" + @@ -312,7 +312,7 @@ public static void registerAllExtensions( "\010\022\024\n\014max_messages\030\003 \001(\005\"L\n\014PullResponse\022" + "<\n\021received_messages\030\001 \003(\0132!.google.pubs" + "ub.v1.ReceivedMessage\"_\n\030ModifyAckDeadli" + - "neRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_i" + + "neRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_i", "ds\030\004 \003(\t\022\034\n\024ack_deadline_seconds\030\003 \001(\005\";" + "\n\022AcknowledgeRequest\022\024\n\014subscription\030\001 \001" + "(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024StreamingPullReq" + @@ -322,7 +322,7 @@ public static void registerAllExtensions( "ack_deadline_seconds\030\005 \001(\005\"U\n\025StreamingP" + "ullResponse\022<\n\021received_messages\030\001 \003(\0132!" + ".google.pubsub.v1.ReceivedMessage\"\257\001\n\025Cr" + - "eateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014sub" + + "eateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014sub", "scription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.google" + ".pubsub.v1.CreateSnapshotRequest.LabelsE" + "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + @@ -332,7 +332,7 @@ public static void registerAllExtensions( "f.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r" + "\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.goo" + "gle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&" + - ".google.pubsub.v1.Snapshot.LabelsEntry\032-" + + ".google.pubsub.v1.Snapshot.LabelsEntry\032-", "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + "\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010snapshot\030" + "\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007project" + @@ -342,7 +342,7 @@ public static void registerAllExtensions( "\017next_page_token\030\002 \001(\t\")\n\025DeleteSnapshot" + "Request\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest" + "\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.g" + - "oogle.protobuf.TimestampH\000\022\022\n\010snapshot\030\003" + + "oogle.protobuf.TimestampH\000\022\022\n\010snapshot\030\003", " \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2\277\010\n\tPub" + "lisher\022j\n\013CreateTopic\022\027.google.pubsub.v1" + ".Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223\002#\032" + @@ -352,7 +352,7 @@ public static void registerAllExtensions( "2$/v1/{topic.name=projects/*/topics/*}:\001" + "*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publish" + "Request\032!.google.pubsub.v1.PublishRespon" + - "se\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" + + "se\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics", "/*}:publish:\001*\022o\n\010GetTopic\022!.google.pubs" + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" + ".Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*/to" + @@ -362,7 +362,7 @@ public static void registerAllExtensions( "projects/*}/topics\022\262\001\n\026ListTopicSubscrip" + "tions\022/.google.pubsub.v1.ListTopicSubscr" + "iptionsRequest\0320.google.pubsub.v1.ListTo" + - "picSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/{t" + + "picSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/{t", "opic=projects/*/topics/*}/subscriptions\022" + "\242\001\n\022ListTopicSnapshots\022+.google.pubsub.v" + "1.ListTopicSnapshotsRequest\032,.google.pub" + @@ -372,7 +372,7 @@ public static void registerAllExtensions( "eleteTopicRequest\032\026.google.protobuf.Empt" + "y\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/" + "*}2\367\021\n\nSubscriber\022\206\001\n\022CreateSubscription" + - "\022\036.google.pubsub.v1.Subscription\032\036.googl" + + "\022\036.google.pubsub.v1.Subscription\032\036.googl", "e.pubsub.v1.Subscription\"0\202\323\344\223\002*\032%/v1/{n" + "ame=projects/*/subscriptions/*}:\001*\022\222\001\n\017G" + "etSubscription\022(.google.pubsub.v1.GetSub" + @@ -382,7 +382,7 @@ public static void registerAllExtensions( "iption\022+.google.pubsub.v1.UpdateSubscrip" + "tionRequest\032\036.google.pubsub.v1.Subscript" + "ion\"=\202\323\344\223\002722/v1/{subscription.name=proj" + - "ects/*/subscriptions/*}:\001*\022\234\001\n\021ListSubsc" + + "ects/*/subscriptions/*}:\001*\022\234\001\n\021ListSubsc", "riptions\022*.google.pubsub.v1.ListSubscrip" + "tionsRequest\032+.google.pubsub.v1.ListSubs" + "criptionsResponse\".\202\323\344\223\002(\022&/v1/{project=" + @@ -392,7 +392,7 @@ public static void registerAllExtensions( "\323\344\223\002/*-/v1/{subscription=projects/*/subs" + "criptions/*}\022\243\001\n\021ModifyAckDeadline\022*.goo" + "gle.pubsub.v1.ModifyAckDeadlineRequest\032\026" + - ".google.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{sub" + + ".google.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{sub", "scription=projects/*/subscriptions/*}:mo" + "difyAckDeadline:\001*\022\221\001\n\013Acknowledge\022$.goo" + "gle.pubsub.v1.AcknowledgeRequest\032\026.googl" + @@ -402,7 +402,7 @@ public static void registerAllExtensions( "equest\032\036.google.pubsub.v1.PullResponse\"=" + "\202\323\344\223\0027\"2/v1/{subscription=projects/*/sub" + "scriptions/*}:pull:\001*\022d\n\rStreamingPull\022&" + - ".google.pubsub.v1.StreamingPullRequest\032\'" + + ".google.pubsub.v1.StreamingPullRequest\032\'", ".google.pubsub.v1.StreamingPullResponse(" + "\0010\001\022\240\001\n\020ModifyPushConfig\022).google.pubsub" + ".v1.ModifyPushConfigRequest\032\026.google.pro" + @@ -412,7 +412,7 @@ public static void registerAllExtensions( ".GetSnapshotRequest\032\032.google.pubsub.v1.S" + "napshot\"-\202\323\344\223\002\'\022%/v1/{snapshot=projects/" + "*/snapshots/*}\022\214\001\n\rListSnapshots\022&.googl" + - "e.pubsub.v1.ListSnapshotsRequest\032\'.googl" + + "e.pubsub.v1.ListSnapshotsRequest\032\'.googl", "e.pubsub.v1.ListSnapshotsResponse\"*\202\323\344\223\002" + "$\022\"/v1/{project=projects/*}/snapshots\022\203\001" + "\n\016CreateSnapshot\022\'.google.pubsub.v1.Crea" + @@ -422,7 +422,7 @@ public static void registerAllExtensions( "pubsub.v1.UpdateSnapshotRequest\032\032.google" + ".pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapsh" + "ot.name=projects/*/snapshots/*}:\001*\022\200\001\n\016D" + - "eleteSnapshot\022\'.google.pubsub.v1.DeleteS" + + "eleteSnapshot\022\'.google.pubsub.v1.DeleteS", "napshotRequest\032\026.google.protobuf.Empty\"-" + "\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsho" + "ts/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRe" + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 4c1aaa51d06b..aaeecd93372b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -35,9 +35,6 @@ private PullRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private PullRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -65,13 +69,6 @@ private PullRequest( maxMessages_ = input.readInt32(); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,7 +86,6 @@ private PullRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable @@ -174,7 +170,6 @@ public int getMaxMessages() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -184,7 +179,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -199,7 +193,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -331,7 +324,6 @@ public static com.google.pubsub.v1.PullRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -339,7 +331,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -367,7 +358,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable @@ -390,7 +380,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -402,18 +391,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { return com.google.pubsub.v1.PullRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.PullRequest build() { com.google.pubsub.v1.PullRequest result = buildPartial(); if (!result.isInitialized()) { @@ -422,7 +408,6 @@ public com.google.pubsub.v1.PullRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.PullRequest buildPartial() { com.google.pubsub.v1.PullRequest result = new com.google.pubsub.v1.PullRequest(this); result.subscription_ = subscription_; @@ -432,39 +417,32 @@ public com.google.pubsub.v1.PullRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PullRequest) { return mergeFrom((com.google.pubsub.v1.PullRequest)other); @@ -491,12 +469,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PullRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -702,13 +678,11 @@ public Builder clearMaxMessages() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -730,12 +704,11 @@ public static com.google.pubsub.v1.PullRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullRequest(input, extensionRegistry); + return new PullRequest(input, extensionRegistry); } }; @@ -748,7 +721,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 170040815345..a8c84a96529d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -33,9 +33,6 @@ private PullResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private PullResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { receivedMessages_ = new java.util.ArrayList(); @@ -56,13 +60,6 @@ private PullResponse( input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,7 +80,6 @@ private PullResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable @@ -162,7 +158,6 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -172,7 +167,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < receivedMessages_.size(); i++) { @@ -181,7 +175,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -299,7 +292,6 @@ public static com.google.pubsub.v1.PullResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -307,7 +299,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PullResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -335,7 +326,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable @@ -359,7 +349,6 @@ private void maybeForceBuilderInitialization() { getReceivedMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (receivedMessagesBuilder_ == null) { @@ -371,18 +360,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } - @java.lang.Override public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() { return com.google.pubsub.v1.PullResponse.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.PullResponse build() { com.google.pubsub.v1.PullResponse result = buildPartial(); if (!result.isInitialized()) { @@ -391,7 +377,6 @@ public com.google.pubsub.v1.PullResponse build() { return result; } - @java.lang.Override public com.google.pubsub.v1.PullResponse buildPartial() { com.google.pubsub.v1.PullResponse result = new com.google.pubsub.v1.PullResponse(this); int from_bitField0_ = bitField0_; @@ -408,39 +393,32 @@ public com.google.pubsub.v1.PullResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PullResponse) { return mergeFrom((com.google.pubsub.v1.PullResponse)other); @@ -483,12 +461,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PullResponse other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -873,13 +849,11 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( } return receivedMessagesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -901,12 +875,11 @@ public static com.google.pubsub.v1.PullResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PullResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullResponse(input, extensionRegistry); + return new PullResponse(input, extensionRegistry); } }; @@ -919,7 +892,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 7dcac690833b..e0bfc14b592f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -33,9 +33,6 @@ private PushConfig( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private PushConfig( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private PushConfig( attributes__.getKey(), attributes__.getValue()); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,7 +88,6 @@ private PushConfig( } @SuppressWarnings({"rawtypes"}) - @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -102,7 +98,6 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable @@ -308,7 +303,6 @@ public java.lang.String getAttributesOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -318,7 +312,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPushEndpointBytes().isEmpty()) { @@ -333,7 +326,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -464,7 +456,6 @@ public static com.google.pubsub.v1.PushConfig parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -472,7 +463,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PushConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -522,7 +512,6 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable @@ -545,7 +534,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); pushEndpoint_ = ""; @@ -554,18 +542,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; } - @java.lang.Override public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() { return com.google.pubsub.v1.PushConfig.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.PushConfig build() { com.google.pubsub.v1.PushConfig result = buildPartial(); if (!result.isInitialized()) { @@ -574,7 +559,6 @@ public com.google.pubsub.v1.PushConfig build() { return result; } - @java.lang.Override public com.google.pubsub.v1.PushConfig buildPartial() { com.google.pubsub.v1.PushConfig result = new com.google.pubsub.v1.PushConfig(this); int from_bitField0_ = bitField0_; @@ -587,39 +571,32 @@ public com.google.pubsub.v1.PushConfig buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PushConfig) { return mergeFrom((com.google.pubsub.v1.PushConfig)other); @@ -642,12 +619,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1016,13 +991,11 @@ public Builder putAllAttributes( .putAll(values); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1044,12 +1017,11 @@ public static com.google.pubsub.v1.PushConfig getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public PushConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PushConfig(input, extensionRegistry); + return new PushConfig(input, extensionRegistry); } }; @@ -1062,7 +1034,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 911dd5e6bf88..c50f2bfa1310 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -33,9 +33,6 @@ private ReceivedMessage( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private ReceivedMessage( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -66,13 +70,6 @@ private ReceivedMessage( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,7 +87,6 @@ private ReceivedMessage( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable @@ -174,7 +170,6 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -184,7 +179,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getAckIdBytes().isEmpty()) { @@ -196,7 +190,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -324,7 +317,6 @@ public static com.google.pubsub.v1.ReceivedMessage parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -332,7 +324,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ReceivedMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -360,7 +351,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable @@ -383,7 +373,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); ackId_ = ""; @@ -397,18 +386,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } - @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { return com.google.pubsub.v1.ReceivedMessage.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.ReceivedMessage build() { com.google.pubsub.v1.ReceivedMessage result = buildPartial(); if (!result.isInitialized()) { @@ -417,7 +403,6 @@ public com.google.pubsub.v1.ReceivedMessage build() { return result; } - @java.lang.Override public com.google.pubsub.v1.ReceivedMessage buildPartial() { com.google.pubsub.v1.ReceivedMessage result = new com.google.pubsub.v1.ReceivedMessage(this); result.ackId_ = ackId_; @@ -430,39 +415,32 @@ public com.google.pubsub.v1.ReceivedMessage buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ReceivedMessage) { return mergeFrom((com.google.pubsub.v1.ReceivedMessage)other); @@ -486,12 +464,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ReceivedMessage other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -751,13 +727,11 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { } return messageBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -779,12 +753,11 @@ public static com.google.pubsub.v1.ReceivedMessage getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public ReceivedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceivedMessage(input, extensionRegistry); + return new ReceivedMessage(input, extensionRegistry); } }; @@ -797,7 +770,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index fbfd4f5b9bad..1fb2babdc68e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -36,9 +36,6 @@ private SeekRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private SeekRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -76,13 +80,6 @@ private SeekRequest( target_ = s; break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,7 +97,6 @@ private SeekRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable @@ -312,7 +308,6 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -322,7 +317,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -337,7 +331,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -486,7 +479,6 @@ public static com.google.pubsub.v1.SeekRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -494,7 +486,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.SeekRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -525,7 +516,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable @@ -548,7 +538,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -558,18 +547,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { return com.google.pubsub.v1.SeekRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.SeekRequest build() { com.google.pubsub.v1.SeekRequest result = buildPartial(); if (!result.isInitialized()) { @@ -578,7 +564,6 @@ public com.google.pubsub.v1.SeekRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.SeekRequest buildPartial() { com.google.pubsub.v1.SeekRequest result = new com.google.pubsub.v1.SeekRequest(this); result.subscription_ = subscription_; @@ -597,39 +582,32 @@ public com.google.pubsub.v1.SeekRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.SeekRequest) { return mergeFrom((com.google.pubsub.v1.SeekRequest)other); @@ -665,12 +643,10 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1164,13 +1140,11 @@ public Builder setSnapshotBytes( onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1192,12 +1166,11 @@ public static com.google.pubsub.v1.SeekRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SeekRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SeekRequest(input, extensionRegistry); + return new SeekRequest(input, extensionRegistry); } }; @@ -1210,7 +1183,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 3fd4c8871eb4..deb1a5a59eed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -28,9 +28,6 @@ private SeekResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -65,7 +62,6 @@ private SeekResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable @@ -74,7 +70,6 @@ private SeekResponse( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -84,13 +79,11 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -198,7 +191,6 @@ public static com.google.pubsub.v1.SeekResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -206,7 +198,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.SeekResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -230,7 +221,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable @@ -253,24 +243,20 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } - @java.lang.Override public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { return com.google.pubsub.v1.SeekResponse.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.SeekResponse build() { com.google.pubsub.v1.SeekResponse result = buildPartial(); if (!result.isInitialized()) { @@ -279,46 +265,38 @@ public com.google.pubsub.v1.SeekResponse build() { return result; } - @java.lang.Override public com.google.pubsub.v1.SeekResponse buildPartial() { com.google.pubsub.v1.SeekResponse result = new com.google.pubsub.v1.SeekResponse(this); onBuilt(); return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.SeekResponse) { return mergeFrom((com.google.pubsub.v1.SeekResponse)other); @@ -335,12 +313,10 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekResponse other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -358,13 +334,11 @@ public Builder mergeFrom( } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -386,12 +360,11 @@ public static com.google.pubsub.v1.SeekResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public SeekResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SeekResponse(input, extensionRegistry); + return new SeekResponse(input, extensionRegistry); } }; @@ -404,7 +377,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 7c1399f90305..f6d53216d0f0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -37,9 +37,6 @@ private Snapshot( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -51,6 +48,13 @@ private Snapshot( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -89,13 +93,6 @@ private Snapshot( labels__.getKey(), labels__.getValue()); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,7 +111,6 @@ private Snapshot( } @SuppressWarnings({"rawtypes"}) - @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -125,7 +121,6 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable @@ -371,7 +366,6 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -381,7 +375,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -402,7 +395,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -553,7 +545,6 @@ public static com.google.pubsub.v1.Snapshot parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -561,7 +552,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.Snapshot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -614,7 +604,6 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable @@ -637,7 +626,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -654,18 +642,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor; } - @java.lang.Override public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() { return com.google.pubsub.v1.Snapshot.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.Snapshot build() { com.google.pubsub.v1.Snapshot result = buildPartial(); if (!result.isInitialized()) { @@ -674,7 +659,6 @@ public com.google.pubsub.v1.Snapshot build() { return result; } - @java.lang.Override public com.google.pubsub.v1.Snapshot buildPartial() { com.google.pubsub.v1.Snapshot result = new com.google.pubsub.v1.Snapshot(this); int from_bitField0_ = bitField0_; @@ -693,39 +677,32 @@ public com.google.pubsub.v1.Snapshot buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Snapshot) { return mergeFrom((com.google.pubsub.v1.Snapshot)other); @@ -755,12 +732,10 @@ public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1342,13 +1317,11 @@ public Builder putAllLabels( .putAll(values); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1370,12 +1343,11 @@ public static com.google.pubsub.v1.Snapshot getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public Snapshot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Snapshot(input, extensionRegistry); + return new Snapshot(input, extensionRegistry); } }; @@ -1388,7 +1360,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 11df06758c2c..ff90912ace24 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -39,9 +39,6 @@ private StreamingPullRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -53,6 +50,13 @@ private StreamingPullRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -103,13 +107,6 @@ private StreamingPullRequest( streamAckDeadlineSeconds_ = input.readInt32(); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,7 +133,6 @@ private StreamingPullRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable @@ -397,7 +393,6 @@ public int getStreamAckDeadlineSeconds() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -407,7 +402,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -433,7 +427,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -604,7 +597,6 @@ public static com.google.pubsub.v1.StreamingPullRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -612,7 +604,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.StreamingPullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -642,7 +633,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable @@ -665,7 +655,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -681,18 +670,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest build() { com.google.pubsub.v1.StreamingPullRequest result = buildPartial(); if (!result.isInitialized()) { @@ -701,7 +687,6 @@ public com.google.pubsub.v1.StreamingPullRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest buildPartial() { com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this); int from_bitField0_ = bitField0_; @@ -728,39 +713,32 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullRequest) { return mergeFrom((com.google.pubsub.v1.StreamingPullRequest)other); @@ -814,12 +792,10 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1485,13 +1461,11 @@ public Builder clearStreamAckDeadlineSeconds() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1513,12 +1487,11 @@ public static com.google.pubsub.v1.StreamingPullRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public StreamingPullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullRequest(input, extensionRegistry); + return new StreamingPullRequest(input, extensionRegistry); } }; @@ -1531,7 +1504,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index fd6e40943b9b..4e460e8a2b17 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -34,9 +34,6 @@ private StreamingPullResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,6 +45,13 @@ private StreamingPullResponse( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { receivedMessages_ = new java.util.ArrayList(); @@ -57,13 +61,6 @@ private StreamingPullResponse( input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,7 +81,6 @@ private StreamingPullResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable @@ -148,7 +144,6 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -158,7 +153,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < receivedMessages_.size(); i++) { @@ -167,7 +161,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -285,7 +278,6 @@ public static com.google.pubsub.v1.StreamingPullResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -293,7 +285,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -322,7 +313,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable @@ -346,7 +336,6 @@ private void maybeForceBuilderInitialization() { getReceivedMessagesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); if (receivedMessagesBuilder_ == null) { @@ -358,18 +347,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; } - @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { return com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse build() { com.google.pubsub.v1.StreamingPullResponse result = buildPartial(); if (!result.isInitialized()) { @@ -378,7 +364,6 @@ public com.google.pubsub.v1.StreamingPullResponse build() { return result; } - @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse buildPartial() { com.google.pubsub.v1.StreamingPullResponse result = new com.google.pubsub.v1.StreamingPullResponse(this); int from_bitField0_ = bitField0_; @@ -395,39 +380,32 @@ public com.google.pubsub.v1.StreamingPullResponse buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullResponse) { return mergeFrom((com.google.pubsub.v1.StreamingPullResponse)other); @@ -470,12 +448,10 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -806,13 +782,11 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( } return receivedMessagesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -834,12 +808,11 @@ public static com.google.pubsub.v1.StreamingPullResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public StreamingPullResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullResponse(input, extensionRegistry); + return new StreamingPullResponse(input, extensionRegistry); } }; @@ -852,7 +825,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index bfe88e6107ee..ba7cadbffadd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -36,9 +36,6 @@ private Subscription( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,6 +47,13 @@ private Subscription( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -111,13 +115,6 @@ private Subscription( labels__.getKey(), labels__.getValue()); break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -136,7 +133,6 @@ private Subscription( } @SuppressWarnings({"rawtypes"}) - @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -147,7 +143,6 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable @@ -493,7 +488,6 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -503,7 +497,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -533,7 +526,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -714,7 +706,6 @@ public static com.google.pubsub.v1.Subscription parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -722,7 +713,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.Subscription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -772,7 +762,6 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable @@ -795,7 +784,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -822,18 +810,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; } - @java.lang.Override public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return com.google.pubsub.v1.Subscription.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.Subscription build() { com.google.pubsub.v1.Subscription result = buildPartial(); if (!result.isInitialized()) { @@ -842,7 +827,6 @@ public com.google.pubsub.v1.Subscription build() { return result; } - @java.lang.Override public com.google.pubsub.v1.Subscription buildPartial() { com.google.pubsub.v1.Subscription result = new com.google.pubsub.v1.Subscription(this); int from_bitField0_ = bitField0_; @@ -868,39 +852,32 @@ public com.google.pubsub.v1.Subscription buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Subscription) { return mergeFrom((com.google.pubsub.v1.Subscription)other); @@ -939,12 +916,10 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1870,13 +1845,11 @@ public Builder putAllLabels( .putAll(values); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1898,12 +1871,11 @@ public static com.google.pubsub.v1.Subscription getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public Subscription parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Subscription(input, extensionRegistry); + return new Subscription(input, extensionRegistry); } }; @@ -1916,7 +1888,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 07b861121aeb..ab8d006b6c29 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -33,9 +33,6 @@ private Topic( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +44,13 @@ private Topic( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -79,13 +83,6 @@ private Topic( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +101,6 @@ private Topic( } @SuppressWarnings({"rawtypes"}) - @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -115,7 +111,6 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable @@ -317,7 +312,6 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -327,7 +321,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -345,7 +338,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -489,7 +481,6 @@ public static com.google.pubsub.v1.Topic parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -497,7 +488,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.Topic prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -547,7 +537,6 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable @@ -570,7 +559,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -585,18 +573,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } - @java.lang.Override public com.google.pubsub.v1.Topic getDefaultInstanceForType() { return com.google.pubsub.v1.Topic.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.Topic build() { com.google.pubsub.v1.Topic result = buildPartial(); if (!result.isInitialized()) { @@ -605,7 +590,6 @@ public com.google.pubsub.v1.Topic build() { return result; } - @java.lang.Override public com.google.pubsub.v1.Topic buildPartial() { com.google.pubsub.v1.Topic result = new com.google.pubsub.v1.Topic(this); int from_bitField0_ = bitField0_; @@ -623,39 +607,32 @@ public com.google.pubsub.v1.Topic buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Topic) { return mergeFrom((com.google.pubsub.v1.Topic)other); @@ -681,12 +658,10 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1168,13 +1143,11 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic } return messageStoragePolicyBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1196,12 +1169,11 @@ public static com.google.pubsub.v1.Topic getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public Topic parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Topic(input, extensionRegistry); + return new Topic(input, extensionRegistry); } }; @@ -1214,7 +1186,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.Topic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 454443468ba2..a678b4e8e01d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -35,9 +35,6 @@ private UpdateSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,6 +46,13 @@ private UpdateSnapshotRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.pubsub.v1.Snapshot.Builder subBuilder = null; if (snapshot_ != null) { @@ -75,13 +79,6 @@ private UpdateSnapshotRequest( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +96,6 @@ private UpdateSnapshotRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable @@ -177,7 +173,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -187,7 +182,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (snapshot_ != null) { @@ -199,7 +193,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -333,7 +326,6 @@ public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -341,7 +333,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.UpdateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -372,7 +363,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable @@ -395,7 +385,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (snapshotBuilder_ == null) { @@ -413,18 +402,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest build() { com.google.pubsub.v1.UpdateSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -433,7 +419,6 @@ public com.google.pubsub.v1.UpdateSnapshotRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { com.google.pubsub.v1.UpdateSnapshotRequest result = new com.google.pubsub.v1.UpdateSnapshotRequest(this); if (snapshotBuilder_ == null) { @@ -450,39 +435,32 @@ public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest)other); @@ -505,12 +483,10 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateSnapshotRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -843,13 +819,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } return updateMaskBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -871,12 +845,11 @@ public static com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public UpdateSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSnapshotRequest(input, extensionRegistry); + return new UpdateSnapshotRequest(input, extensionRegistry); } }; @@ -889,7 +862,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 83413ab9760b..c15df7942b7d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -32,9 +32,6 @@ private UpdateSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,6 +43,13 @@ private UpdateSubscriptionRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.pubsub.v1.Subscription.Builder subBuilder = null; if (subscription_ != null) { @@ -72,13 +76,6 @@ private UpdateSubscriptionRequest( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +93,6 @@ private UpdateSubscriptionRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable @@ -174,7 +170,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -184,7 +179,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subscription_ != null) { @@ -196,7 +190,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -330,7 +323,6 @@ public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -338,7 +330,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.UpdateSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -366,7 +357,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable @@ -389,7 +379,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (subscriptionBuilder_ == null) { @@ -407,18 +396,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest build() { com.google.pubsub.v1.UpdateSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -427,7 +413,6 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); if (subscriptionBuilder_ == null) { @@ -444,39 +429,32 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateSubscriptionRequest) { return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest)other); @@ -499,12 +477,10 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateSubscriptionRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -837,13 +813,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } return updateMaskBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -865,12 +839,11 @@ public static com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public UpdateSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSubscriptionRequest(input, extensionRegistry); + return new UpdateSubscriptionRequest(input, extensionRegistry); } }; @@ -883,7 +856,6 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } - @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index ba77db8ac8b5..57d809e7b338 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -32,9 +32,6 @@ private UpdateTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,6 +43,13 @@ private UpdateTopicRequest( case 0: done = true; break; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } case 10: { com.google.pubsub.v1.Topic.Builder subBuilder = null; if (topic_ != null) { @@ -72,13 +76,6 @@ private UpdateTopicRequest( break; } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +93,6 @@ private UpdateTopicRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable @@ -183,7 +179,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -193,7 +188,6 @@ public final boolean isInitialized() { return true; } - @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (topic_ != null) { @@ -205,7 +199,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } - @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -339,7 +332,6 @@ public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } - @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -347,7 +339,6 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.UpdateTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -375,7 +366,6 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable @@ -398,7 +388,6 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } - @java.lang.Override public Builder clear() { super.clear(); if (topicBuilder_ == null) { @@ -416,18 +405,15 @@ public Builder clear() { return this; } - @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } - @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance(); } - @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest build() { com.google.pubsub.v1.UpdateTopicRequest result = buildPartial(); if (!result.isInitialized()) { @@ -436,7 +422,6 @@ public com.google.pubsub.v1.UpdateTopicRequest build() { return result; } - @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); if (topicBuilder_ == null) { @@ -453,39 +438,32 @@ public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { return result; } - @java.lang.Override public Builder clone() { return (Builder) super.clone(); } - @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } - @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } - @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateTopicRequest) { return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest)other); @@ -508,12 +486,10 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateTopicRequest other) { return this; } - @java.lang.Override public final boolean isInitialized() { return true; } - @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -873,13 +849,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } return updateMaskBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } - @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -901,12 +875,11 @@ public static com.google.pubsub.v1.UpdateTopicRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override public UpdateTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateTopicRequest(input, extensionRegistry); + return new UpdateTopicRequest(input, extensionRegistry); } }; @@ -919,7 +892,6 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } From ce08603aaf1d252f0499f5ad0ae5e94c3fbd5fef Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Thu, 6 Sep 2018 16:26:48 -0700 Subject: [PATCH 0052/2363] Release 0.61.0/1.43.0 (#3653) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index d7a14fb807fc..0394dfd0e098 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.42.0 + 1.43.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.42.0' +compile 'com.google.cloud:google-cloud-pubsub:1.43.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.43.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 44ce16eb7728..b1007b89df95 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.42.0 + 1.43.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.60.0-alpha + 0.61.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5cc75a3e1b42..48ad345dbdc2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.24.0 + 1.25.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.25.0 + 0.26.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7523c5a34dbb..2816fc68699a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.24.0 + 1.25.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.25.0 + 0.26.0 From 9e134271ced9c49064191bcf1663c20692e409d6 Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Fri, 7 Sep 2018 10:14:04 -0700 Subject: [PATCH 0053/2363] Bump to snapshot version for development (#3656) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b1007b89df95..9a0d2bbc43d4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.43.0 + 1.43.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.0-alpha + 0.61.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 48ad345dbdc2..59af58dd245d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.25.0 + 1.25.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.26.0 + 0.26.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2816fc68699a..740c317382d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.25.0 + 1.25.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.26.0 + 0.26.1-SNAPSHOT From fe220a7f612d91cd64d2654ff2918e9ed56bcdab Mon Sep 17 00:00:00 2001 From: Andrea Lin Date: Wed, 12 Sep 2018 15:43:27 -0700 Subject: [PATCH 0054/2363] Regenerate proto/grpc files with protoc 3.6.0 (#3672) --- .../google/pubsub/v1/AcknowledgeRequest.java | 44 ++++++++++++++---- .../pubsub/v1/CreateSnapshotRequest.java | 45 +++++++++++++++---- .../pubsub/v1/DeleteSnapshotRequest.java | 42 ++++++++++++++--- .../pubsub/v1/DeleteSubscriptionRequest.java | 42 ++++++++++++++--- .../google/pubsub/v1/DeleteTopicRequest.java | 42 ++++++++++++++--- .../google/pubsub/v1/GetSnapshotRequest.java | 42 ++++++++++++++--- .../pubsub/v1/GetSubscriptionRequest.java | 42 ++++++++++++++--- .../com/google/pubsub/v1/GetTopicRequest.java | 42 ++++++++++++++--- .../pubsub/v1/ListSnapshotsRequest.java | 44 ++++++++++++++---- .../pubsub/v1/ListSnapshotsResponse.java | 44 ++++++++++++++---- .../pubsub/v1/ListSubscriptionsRequest.java | 44 ++++++++++++++---- .../pubsub/v1/ListSubscriptionsResponse.java | 44 ++++++++++++++---- .../pubsub/v1/ListTopicSnapshotsRequest.java | 44 ++++++++++++++---- .../pubsub/v1/ListTopicSnapshotsResponse.java | 44 ++++++++++++++---- .../v1/ListTopicSubscriptionsRequest.java | 44 ++++++++++++++---- .../v1/ListTopicSubscriptionsResponse.java | 44 ++++++++++++++---- .../google/pubsub/v1/ListTopicsRequest.java | 44 ++++++++++++++---- .../google/pubsub/v1/ListTopicsResponse.java | 44 ++++++++++++++---- .../pubsub/v1/MessageStoragePolicy.java | 44 ++++++++++++++---- .../pubsub/v1/ModifyAckDeadlineRequest.java | 44 ++++++++++++++---- .../pubsub/v1/ModifyPushConfigRequest.java | 44 ++++++++++++++---- .../com/google/pubsub/v1/PublishRequest.java | 44 ++++++++++++++---- .../com/google/pubsub/v1/PublishResponse.java | 44 ++++++++++++++---- .../com/google/pubsub/v1/PubsubMessage.java | 45 +++++++++++++++---- .../com/google/pubsub/v1/PubsubProto.java | 36 +++++++-------- .../com/google/pubsub/v1/PullRequest.java | 44 ++++++++++++++---- .../com/google/pubsub/v1/PullResponse.java | 44 ++++++++++++++---- .../java/com/google/pubsub/v1/PushConfig.java | 45 +++++++++++++++---- .../com/google/pubsub/v1/ReceivedMessage.java | 44 ++++++++++++++---- .../com/google/pubsub/v1/SeekRequest.java | 44 ++++++++++++++---- .../com/google/pubsub/v1/SeekResponse.java | 30 ++++++++++++- .../java/com/google/pubsub/v1/Snapshot.java | 45 +++++++++++++++---- .../pubsub/v1/StreamingPullRequest.java | 44 ++++++++++++++---- .../pubsub/v1/StreamingPullResponse.java | 44 ++++++++++++++---- .../com/google/pubsub/v1/Subscription.java | 45 +++++++++++++++---- .../main/java/com/google/pubsub/v1/Topic.java | 45 +++++++++++++++---- .../pubsub/v1/UpdateSnapshotRequest.java | 44 ++++++++++++++---- .../pubsub/v1/UpdateSubscriptionRequest.java | 44 ++++++++++++++---- .../google/pubsub/v1/UpdateTopicRequest.java | 44 ++++++++++++++---- 39 files changed, 1379 insertions(+), 309 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 70c45825b8ac..a5520a9b52e1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -34,6 +34,9 @@ private AcknowledgeRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -45,13 +48,6 @@ private AcknowledgeRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -67,6 +63,13 @@ private AcknowledgeRequest( ackIds_.add(s); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,6 +90,7 @@ private AcknowledgeRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable @@ -189,6 +193,7 @@ public java.lang.String getAckIds(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -198,6 +203,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -209,6 +215,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -337,6 +344,7 @@ public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -344,6 +352,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.AcknowledgeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -371,6 +380,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable @@ -393,6 +403,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -402,15 +413,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { return com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest build() { com.google.pubsub.v1.AcknowledgeRequest result = buildPartial(); if (!result.isInitialized()) { @@ -419,6 +433,7 @@ public com.google.pubsub.v1.AcknowledgeRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { com.google.pubsub.v1.AcknowledgeRequest result = new com.google.pubsub.v1.AcknowledgeRequest(this); int from_bitField0_ = bitField0_; @@ -434,32 +449,39 @@ public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.AcknowledgeRequest) { return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest)other); @@ -490,10 +512,12 @@ public Builder mergeFrom(com.google.pubsub.v1.AcknowledgeRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -745,11 +769,13 @@ public Builder addAckIdsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -771,11 +797,12 @@ public static com.google.pubsub.v1.AcknowledgeRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public AcknowledgeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AcknowledgeRequest(input, extensionRegistry); + return new AcknowledgeRequest(input, extensionRegistry); } }; @@ -788,6 +815,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 37d2152862c9..60a97f98bbf0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -37,6 +37,9 @@ private CreateSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,13 +51,6 @@ private CreateSnapshotRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -80,6 +76,13 @@ private CreateSnapshotRequest( labels__.getKey(), labels__.getValue()); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,6 +101,7 @@ private CreateSnapshotRequest( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -108,6 +112,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable @@ -317,6 +322,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -326,6 +332,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -343,6 +350,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -480,6 +488,7 @@ public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -487,6 +496,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.CreateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -539,6 +549,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable @@ -561,6 +572,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -571,15 +583,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest build() { com.google.pubsub.v1.CreateSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -588,6 +603,7 @@ public com.google.pubsub.v1.CreateSnapshotRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this); int from_bitField0_ = bitField0_; @@ -601,32 +617,39 @@ public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.CreateSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest)other); @@ -653,10 +676,12 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1064,11 +1089,13 @@ public Builder putAllLabels( .putAll(values); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1090,11 +1117,12 @@ public static com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public CreateSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSnapshotRequest(input, extensionRegistry); + return new CreateSnapshotRequest(input, extensionRegistry); } }; @@ -1107,6 +1135,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 42b16f4b8fee..3c8a6390dd31 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -36,6 +36,9 @@ private DeleteSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +50,12 @@ private DeleteSnapshotRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + snapshot_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -54,12 +63,6 @@ private DeleteSnapshotRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - snapshot_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,6 +80,7 @@ private DeleteSnapshotRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable @@ -129,6 +133,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,6 +143,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSnapshotBytes().isEmpty()) { @@ -146,6 +152,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -260,6 +267,7 @@ public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -267,6 +275,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.DeleteSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -297,6 +306,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable @@ -319,6 +329,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); snapshot_ = ""; @@ -326,15 +337,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest build() { com.google.pubsub.v1.DeleteSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -343,6 +357,7 @@ public com.google.pubsub.v1.DeleteSnapshotRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { com.google.pubsub.v1.DeleteSnapshotRequest result = new com.google.pubsub.v1.DeleteSnapshotRequest(this); result.snapshot_ = snapshot_; @@ -350,32 +365,39 @@ public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest)other); @@ -396,10 +418,12 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSnapshotRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -511,11 +535,13 @@ public Builder setSnapshotBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -537,11 +563,12 @@ public static com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public DeleteSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSnapshotRequest(input, extensionRegistry); + return new DeleteSnapshotRequest(input, extensionRegistry); } }; @@ -554,6 +581,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 2712f7b0aedd..bc3a307361fb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -33,6 +33,9 @@ private DeleteSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44,6 +47,12 @@ private DeleteSubscriptionRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -51,12 +60,6 @@ private DeleteSubscriptionRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - subscription_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,6 +77,7 @@ private DeleteSubscriptionRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable @@ -126,6 +130,7 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -135,6 +140,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -143,6 +149,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -257,6 +264,7 @@ public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -264,6 +272,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.DeleteSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -291,6 +300,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable @@ -313,6 +323,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -320,15 +331,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest build() { com.google.pubsub.v1.DeleteSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -337,6 +351,7 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { com.google.pubsub.v1.DeleteSubscriptionRequest result = new com.google.pubsub.v1.DeleteSubscriptionRequest(this); result.subscription_ = subscription_; @@ -344,32 +359,39 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSubscriptionRequest) { return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest)other); @@ -390,10 +412,12 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSubscriptionRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -505,11 +529,13 @@ public Builder setSubscriptionBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -531,11 +557,12 @@ public static com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public DeleteSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteSubscriptionRequest(input, extensionRegistry); + return new DeleteSubscriptionRequest(input, extensionRegistry); } }; @@ -548,6 +575,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } + @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 893570ab861f..3035fb08c3f6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -33,6 +33,9 @@ private DeleteTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44,6 +47,12 @@ private DeleteTopicRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -51,12 +60,6 @@ private DeleteTopicRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topic_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,6 +77,7 @@ private DeleteTopicRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable @@ -126,6 +130,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -135,6 +140,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -143,6 +149,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -257,6 +264,7 @@ public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -264,6 +272,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.DeleteTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -291,6 +300,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable @@ -313,6 +323,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -320,15 +331,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest build() { com.google.pubsub.v1.DeleteTopicRequest result = buildPartial(); if (!result.isInitialized()) { @@ -337,6 +351,7 @@ public com.google.pubsub.v1.DeleteTopicRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { com.google.pubsub.v1.DeleteTopicRequest result = new com.google.pubsub.v1.DeleteTopicRequest(this); result.topic_ = topic_; @@ -344,32 +359,39 @@ public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteTopicRequest) { return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest)other); @@ -390,10 +412,12 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteTopicRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -505,11 +529,13 @@ public Builder setTopicBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -531,11 +557,12 @@ public static com.google.pubsub.v1.DeleteTopicRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public DeleteTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTopicRequest(input, extensionRegistry); + return new DeleteTopicRequest(input, extensionRegistry); } }; @@ -548,6 +575,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 369124096379..188b2057aef9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -36,6 +36,9 @@ private GetSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,6 +50,12 @@ private GetSnapshotRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + snapshot_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -54,12 +63,6 @@ private GetSnapshotRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - snapshot_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,6 +80,7 @@ private GetSnapshotRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable @@ -129,6 +133,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -138,6 +143,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSnapshotBytes().isEmpty()) { @@ -146,6 +152,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -260,6 +267,7 @@ public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -267,6 +275,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.GetSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -297,6 +306,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable @@ -319,6 +329,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); snapshot_ = ""; @@ -326,15 +337,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest build() { com.google.pubsub.v1.GetSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -343,6 +357,7 @@ public com.google.pubsub.v1.GetSnapshotRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { com.google.pubsub.v1.GetSnapshotRequest result = new com.google.pubsub.v1.GetSnapshotRequest(this); result.snapshot_ = snapshot_; @@ -350,32 +365,39 @@ public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest)other); @@ -396,10 +418,12 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSnapshotRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -511,11 +535,13 @@ public Builder setSnapshotBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -537,11 +563,12 @@ public static com.google.pubsub.v1.GetSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public GetSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSnapshotRequest(input, extensionRegistry); + return new GetSnapshotRequest(input, extensionRegistry); } }; @@ -554,6 +581,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 750eaf5a9d13..5acb2a1010a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -33,6 +33,9 @@ private GetSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44,6 +47,12 @@ private GetSubscriptionRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -51,12 +60,6 @@ private GetSubscriptionRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - subscription_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,6 +77,7 @@ private GetSubscriptionRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable @@ -126,6 +130,7 @@ public java.lang.String getSubscription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -135,6 +140,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -143,6 +149,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -257,6 +264,7 @@ public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -264,6 +272,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.GetSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -291,6 +300,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable @@ -313,6 +323,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -320,15 +331,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest build() { com.google.pubsub.v1.GetSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -337,6 +351,7 @@ public com.google.pubsub.v1.GetSubscriptionRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { com.google.pubsub.v1.GetSubscriptionRequest result = new com.google.pubsub.v1.GetSubscriptionRequest(this); result.subscription_ = subscription_; @@ -344,32 +359,39 @@ public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSubscriptionRequest) { return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest)other); @@ -390,10 +412,12 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSubscriptionRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -505,11 +529,13 @@ public Builder setSubscriptionBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -531,11 +557,12 @@ public static com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public GetSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetSubscriptionRequest(input, extensionRegistry); + return new GetSubscriptionRequest(input, extensionRegistry); } }; @@ -548,6 +575,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 413a9aec9a73..96a14ee3a1c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -33,6 +33,9 @@ private GetTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44,6 +47,12 @@ private GetTopicRequest( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + topic_ = s; + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -51,12 +60,6 @@ private GetTopicRequest( } break; } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - topic_ = s; - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -74,6 +77,7 @@ private GetTopicRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable @@ -126,6 +130,7 @@ public java.lang.String getTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -135,6 +140,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -143,6 +149,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -257,6 +264,7 @@ public static com.google.pubsub.v1.GetTopicRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -264,6 +272,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.GetTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -291,6 +300,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable @@ -313,6 +323,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -320,15 +331,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.GetTopicRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.GetTopicRequest build() { com.google.pubsub.v1.GetTopicRequest result = buildPartial(); if (!result.isInitialized()) { @@ -337,6 +351,7 @@ public com.google.pubsub.v1.GetTopicRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.GetTopicRequest buildPartial() { com.google.pubsub.v1.GetTopicRequest result = new com.google.pubsub.v1.GetTopicRequest(this); result.topic_ = topic_; @@ -344,32 +359,39 @@ public com.google.pubsub.v1.GetTopicRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetTopicRequest) { return mergeFrom((com.google.pubsub.v1.GetTopicRequest)other); @@ -390,10 +412,12 @@ public Builder mergeFrom(com.google.pubsub.v1.GetTopicRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -505,11 +529,13 @@ public Builder setTopicBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -531,11 +557,12 @@ public static com.google.pubsub.v1.GetTopicRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public GetTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTopicRequest(input, extensionRegistry); + return new GetTopicRequest(input, extensionRegistry); } }; @@ -548,6 +575,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index ecb3cd5cc584..395981712496 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -38,6 +38,9 @@ private ListSnapshotsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,13 +52,6 @@ private ListSnapshotsRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,6 +69,13 @@ private ListSnapshotsRequest( pageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +93,7 @@ private ListSnapshotsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable @@ -201,6 +205,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -210,6 +215,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProjectBytes().isEmpty()) { @@ -224,6 +230,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -353,6 +360,7 @@ public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -360,6 +368,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -390,6 +399,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable @@ -412,6 +422,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); project_ = ""; @@ -423,15 +434,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest build() { com.google.pubsub.v1.ListSnapshotsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -440,6 +454,7 @@ public com.google.pubsub.v1.ListSnapshotsRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { com.google.pubsub.v1.ListSnapshotsRequest result = new com.google.pubsub.v1.ListSnapshotsRequest(this); result.project_ = project_; @@ -449,32 +464,39 @@ public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSnapshotsRequest) { return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest)other); @@ -502,10 +524,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -754,11 +778,13 @@ public Builder setPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -780,11 +806,12 @@ public static com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListSnapshotsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotsRequest(input, extensionRegistry); + return new ListSnapshotsRequest(input, extensionRegistry); } }; @@ -797,6 +824,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index db9523124c30..b2f0b97af288 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -37,6 +37,9 @@ private ListSnapshotsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,13 +51,6 @@ private ListSnapshotsResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { snapshots_ = new java.util.ArrayList(); @@ -70,6 +66,13 @@ private ListSnapshotsResponse( nextPageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +93,7 @@ private ListSnapshotsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable @@ -198,6 +202,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -207,6 +212,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snapshots_.size(); i++) { @@ -218,6 +224,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -342,6 +349,7 @@ public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -349,6 +357,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -379,6 +388,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable @@ -402,6 +412,7 @@ private void maybeForceBuilderInitialization() { getSnapshotsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); if (snapshotsBuilder_ == null) { @@ -415,15 +426,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse build() { com.google.pubsub.v1.ListSnapshotsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -432,6 +446,7 @@ public com.google.pubsub.v1.ListSnapshotsResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { com.google.pubsub.v1.ListSnapshotsResponse result = new com.google.pubsub.v1.ListSnapshotsResponse(this); int from_bitField0_ = bitField0_; @@ -451,32 +466,39 @@ public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSnapshotsResponse) { return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse)other); @@ -523,10 +545,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -951,11 +975,13 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -977,11 +1003,12 @@ public static com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListSnapshotsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSnapshotsResponse(input, extensionRegistry); + return new ListSnapshotsResponse(input, extensionRegistry); } }; @@ -994,6 +1021,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 5100a0e14cbc..4bb9f157303a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -35,6 +35,9 @@ private ListSubscriptionsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,13 +49,6 @@ private ListSubscriptionsRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -70,6 +66,13 @@ private ListSubscriptionsRequest( pageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,6 +90,7 @@ private ListSubscriptionsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable @@ -198,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -207,6 +212,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProjectBytes().isEmpty()) { @@ -221,6 +227,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -350,6 +357,7 @@ public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -357,6 +365,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -384,6 +393,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable @@ -406,6 +416,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); project_ = ""; @@ -417,15 +428,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest build() { com.google.pubsub.v1.ListSubscriptionsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -434,6 +448,7 @@ public com.google.pubsub.v1.ListSubscriptionsRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { com.google.pubsub.v1.ListSubscriptionsRequest result = new com.google.pubsub.v1.ListSubscriptionsRequest(this); result.project_ = project_; @@ -443,32 +458,39 @@ public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSubscriptionsRequest) { return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest)other); @@ -496,10 +518,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -748,11 +772,13 @@ public Builder setPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -774,11 +800,12 @@ public static com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListSubscriptionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSubscriptionsRequest(input, extensionRegistry); + return new ListSubscriptionsRequest(input, extensionRegistry); } }; @@ -791,6 +818,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index e5d36b843a19..4a6e2e45db6f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -34,6 +34,9 @@ private ListSubscriptionsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -45,13 +48,6 @@ private ListSubscriptionsResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { subscriptions_ = new java.util.ArrayList(); @@ -67,6 +63,13 @@ private ListSubscriptionsResponse( nextPageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,6 +90,7 @@ private ListSubscriptionsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable @@ -197,6 +201,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -206,6 +211,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { @@ -217,6 +223,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -341,6 +348,7 @@ public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -348,6 +356,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -375,6 +384,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable @@ -398,6 +408,7 @@ private void maybeForceBuilderInitialization() { getSubscriptionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); if (subscriptionsBuilder_ == null) { @@ -411,15 +422,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse build() { com.google.pubsub.v1.ListSubscriptionsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -428,6 +442,7 @@ public com.google.pubsub.v1.ListSubscriptionsResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { com.google.pubsub.v1.ListSubscriptionsResponse result = new com.google.pubsub.v1.ListSubscriptionsResponse(this); int from_bitField0_ = bitField0_; @@ -447,32 +462,39 @@ public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSubscriptionsResponse) { return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse)other); @@ -519,10 +541,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -952,11 +976,13 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -978,11 +1004,12 @@ public static com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListSubscriptionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListSubscriptionsResponse(input, extensionRegistry); + return new ListSubscriptionsResponse(input, extensionRegistry); } }; @@ -995,6 +1022,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index adce7d938bbd..6d986b340ed1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -38,6 +38,9 @@ private ListTopicSnapshotsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -49,13 +52,6 @@ private ListTopicSnapshotsRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,6 +69,13 @@ private ListTopicSnapshotsRequest( pageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +93,7 @@ private ListTopicSnapshotsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable @@ -201,6 +205,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -210,6 +215,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -224,6 +230,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -353,6 +360,7 @@ public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -360,6 +368,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -390,6 +399,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable @@ -412,6 +422,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -423,15 +434,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest build() { com.google.pubsub.v1.ListTopicSnapshotsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -440,6 +454,7 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { com.google.pubsub.v1.ListTopicSnapshotsRequest result = new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); result.topic_ = topic_; @@ -449,32 +464,39 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsRequest) { return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest)other); @@ -502,10 +524,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -754,11 +778,13 @@ public Builder setPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -780,11 +806,12 @@ public static com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicSnapshotsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSnapshotsRequest(input, extensionRegistry); + return new ListTopicSnapshotsRequest(input, extensionRegistry); } }; @@ -797,6 +824,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index e9effdd1b2c8..6fd57022e4a6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -37,6 +37,9 @@ private ListTopicSnapshotsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,13 +51,6 @@ private ListTopicSnapshotsResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -70,6 +66,13 @@ private ListTopicSnapshotsResponse( nextPageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,6 +93,7 @@ private ListTopicSnapshotsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable @@ -190,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -199,6 +204,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snapshots_.size(); i++) { @@ -210,6 +216,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -338,6 +345,7 @@ public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -345,6 +353,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -375,6 +384,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable @@ -397,6 +407,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -406,15 +417,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse build() { com.google.pubsub.v1.ListTopicSnapshotsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -423,6 +437,7 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { com.google.pubsub.v1.ListTopicSnapshotsResponse result = new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); int from_bitField0_ = bitField0_; @@ -438,32 +453,39 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsResponse) { return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse)other); @@ -494,10 +516,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -745,11 +769,13 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -771,11 +797,12 @@ public static com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstance private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicSnapshotsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSnapshotsResponse(input, extensionRegistry); + return new ListTopicSnapshotsResponse(input, extensionRegistry); } }; @@ -788,6 +815,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 56eed7315bb3..bc420cdc461a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -35,6 +35,9 @@ private ListTopicSubscriptionsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,13 +49,6 @@ private ListTopicSubscriptionsRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -70,6 +66,13 @@ private ListTopicSubscriptionsRequest( pageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,6 +90,7 @@ private ListTopicSubscriptionsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable @@ -198,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -207,6 +212,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -221,6 +227,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -350,6 +357,7 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -357,6 +365,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -384,6 +393,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable @@ -406,6 +416,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -417,15 +428,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { com.google.pubsub.v1.ListTopicSubscriptionsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -434,6 +448,7 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { com.google.pubsub.v1.ListTopicSubscriptionsRequest result = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); result.topic_ = topic_; @@ -443,32 +458,39 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsRequest) { return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest)other); @@ -496,10 +518,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsRequest othe return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -748,11 +772,13 @@ public Builder setPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -774,11 +800,12 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInsta private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicSubscriptionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSubscriptionsRequest(input, extensionRegistry); + return new ListTopicSubscriptionsRequest(input, extensionRegistry); } }; @@ -791,6 +818,7 @@ public com.google.protobuf.Parser getParserForTyp return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 4c2d99a2dd7e..a25a85049c2f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -34,6 +34,9 @@ private ListTopicSubscriptionsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -45,13 +48,6 @@ private ListTopicSubscriptionsResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -67,6 +63,13 @@ private ListTopicSubscriptionsResponse( nextPageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,6 +90,7 @@ private ListTopicSubscriptionsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable @@ -187,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -196,6 +201,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { @@ -207,6 +213,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -335,6 +342,7 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -342,6 +350,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -369,6 +378,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable @@ -391,6 +401,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -400,15 +411,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { com.google.pubsub.v1.ListTopicSubscriptionsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -417,6 +431,7 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { com.google.pubsub.v1.ListTopicSubscriptionsResponse result = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); int from_bitField0_ = bitField0_; @@ -432,32 +447,39 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsResponse) { return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse)other); @@ -488,10 +510,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsResponse oth return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -739,11 +763,13 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -765,11 +791,12 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInst private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicSubscriptionsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicSubscriptionsResponse(input, extensionRegistry); + return new ListTopicSubscriptionsResponse(input, extensionRegistry); } }; @@ -782,6 +809,7 @@ public com.google.protobuf.Parser getParserForTy return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index d3805cecf8f1..6e0349fb2bf9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -35,6 +35,9 @@ private ListTopicsRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,13 +49,6 @@ private ListTopicsRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -70,6 +66,13 @@ private ListTopicsRequest( pageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,6 +90,7 @@ private ListTopicsRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable @@ -198,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -207,6 +212,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getProjectBytes().isEmpty()) { @@ -221,6 +227,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -350,6 +357,7 @@ public static com.google.pubsub.v1.ListTopicsRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -357,6 +365,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -384,6 +393,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable @@ -406,6 +416,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); project_ = ""; @@ -417,15 +428,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest build() { com.google.pubsub.v1.ListTopicsRequest result = buildPartial(); if (!result.isInitialized()) { @@ -434,6 +448,7 @@ public com.google.pubsub.v1.ListTopicsRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest buildPartial() { com.google.pubsub.v1.ListTopicsRequest result = new com.google.pubsub.v1.ListTopicsRequest(this); result.project_ = project_; @@ -443,32 +458,39 @@ public com.google.pubsub.v1.ListTopicsRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicsRequest) { return mergeFrom((com.google.pubsub.v1.ListTopicsRequest)other); @@ -496,10 +518,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -748,11 +772,13 @@ public Builder setPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -774,11 +800,12 @@ public static com.google.pubsub.v1.ListTopicsRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicsRequest(input, extensionRegistry); + return new ListTopicsRequest(input, extensionRegistry); } }; @@ -791,6 +818,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 2bfb90b1de3b..73aeea01f63e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -34,6 +34,9 @@ private ListTopicsResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -45,13 +48,6 @@ private ListTopicsResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { topics_ = new java.util.ArrayList(); @@ -67,6 +63,13 @@ private ListTopicsResponse( nextPageToken_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,6 +90,7 @@ private ListTopicsResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable @@ -195,6 +199,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -204,6 +209,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < topics_.size(); i++) { @@ -215,6 +221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -339,6 +346,7 @@ public static com.google.pubsub.v1.ListTopicsResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -346,6 +354,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ListTopicsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -373,6 +382,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable @@ -396,6 +406,7 @@ private void maybeForceBuilderInitialization() { getTopicsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); if (topicsBuilder_ == null) { @@ -409,15 +420,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { return com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse build() { com.google.pubsub.v1.ListTopicsResponse result = buildPartial(); if (!result.isInitialized()) { @@ -426,6 +440,7 @@ public com.google.pubsub.v1.ListTopicsResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse buildPartial() { com.google.pubsub.v1.ListTopicsResponse result = new com.google.pubsub.v1.ListTopicsResponse(this); int from_bitField0_ = bitField0_; @@ -445,32 +460,39 @@ public com.google.pubsub.v1.ListTopicsResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicsResponse) { return mergeFrom((com.google.pubsub.v1.ListTopicsResponse)other); @@ -517,10 +539,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -945,11 +969,13 @@ public Builder setNextPageTokenBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -971,11 +997,12 @@ public static com.google.pubsub.v1.ListTopicsResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ListTopicsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTopicsResponse(input, extensionRegistry); + return new ListTopicsResponse(input, extensionRegistry); } }; @@ -988,6 +1015,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index b878fc91eba1..75852188aea0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -29,6 +29,9 @@ private MessageStoragePolicy( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -40,13 +43,6 @@ private MessageStoragePolicy( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -56,6 +52,13 @@ private MessageStoragePolicy( allowedPersistenceRegions_.add(s); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,6 +79,7 @@ private MessageStoragePolicy( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable @@ -149,6 +153,7 @@ public java.lang.String getAllowedPersistenceRegions(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -158,6 +163,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedPersistenceRegions_.size(); i++) { @@ -166,6 +172,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -287,6 +294,7 @@ public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -294,6 +302,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.MessageStoragePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -317,6 +326,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable @@ -339,6 +349,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -346,15 +357,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } + @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { return com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy build() { com.google.pubsub.v1.MessageStoragePolicy result = buildPartial(); if (!result.isInitialized()) { @@ -363,6 +377,7 @@ public com.google.pubsub.v1.MessageStoragePolicy build() { return result; } + @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { com.google.pubsub.v1.MessageStoragePolicy result = new com.google.pubsub.v1.MessageStoragePolicy(this); int from_bitField0_ = bitField0_; @@ -375,32 +390,39 @@ public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.MessageStoragePolicy) { return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy)other); @@ -427,10 +449,12 @@ public Builder mergeFrom(com.google.pubsub.v1.MessageStoragePolicy other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -624,11 +648,13 @@ public Builder addAllowedPersistenceRegionsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -650,11 +676,12 @@ public static com.google.pubsub.v1.MessageStoragePolicy getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public MessageStoragePolicy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MessageStoragePolicy(input, extensionRegistry); + return new MessageStoragePolicy(input, extensionRegistry); } }; @@ -667,6 +694,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 90da0e1ed7d7..e5b5f07c18ea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -35,6 +35,9 @@ private ModifyAckDeadlineRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,13 +49,6 @@ private ModifyAckDeadlineRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -73,6 +69,13 @@ private ModifyAckDeadlineRequest( ackIds_.add(s); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,6 +96,7 @@ private ModifyAckDeadlineRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable @@ -210,6 +214,7 @@ public int getAckDeadlineSeconds() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -219,6 +224,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -233,6 +239,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -369,6 +376,7 @@ public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -376,6 +384,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ModifyAckDeadlineRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -403,6 +412,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable @@ -425,6 +435,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -436,15 +447,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest build() { com.google.pubsub.v1.ModifyAckDeadlineRequest result = buildPartial(); if (!result.isInitialized()) { @@ -453,6 +467,7 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); int from_bitField0_ = bitField0_; @@ -469,32 +484,39 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ModifyAckDeadlineRequest) { return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest)other); @@ -528,10 +550,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ModifyAckDeadlineRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -830,11 +854,13 @@ public Builder clearAckDeadlineSeconds() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -856,11 +882,12 @@ public static com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ModifyAckDeadlineRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyAckDeadlineRequest(input, extensionRegistry); + return new ModifyAckDeadlineRequest(input, extensionRegistry); } }; @@ -873,6 +900,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 0921ba9af322..bbc1ae913421 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -33,6 +33,9 @@ private ModifyPushConfigRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44,13 +47,6 @@ private ModifyPushConfigRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -70,6 +66,13 @@ private ModifyPushConfigRequest( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,6 +90,7 @@ private ModifyPushConfigRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable @@ -184,6 +188,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -193,6 +198,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -204,6 +210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -331,6 +338,7 @@ public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -338,6 +346,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ModifyPushConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -365,6 +374,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable @@ -387,6 +397,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -400,15 +411,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { return com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest build() { com.google.pubsub.v1.ModifyPushConfigRequest result = buildPartial(); if (!result.isInitialized()) { @@ -417,6 +431,7 @@ public com.google.pubsub.v1.ModifyPushConfigRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { com.google.pubsub.v1.ModifyPushConfigRequest result = new com.google.pubsub.v1.ModifyPushConfigRequest(this); result.subscription_ = subscription_; @@ -429,32 +444,39 @@ public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ModifyPushConfigRequest) { return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest)other); @@ -478,10 +500,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ModifyPushConfigRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -782,11 +806,13 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } return pushConfigBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -808,11 +834,12 @@ public static com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstance() private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ModifyPushConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ModifyPushConfigRequest(input, extensionRegistry); + return new ModifyPushConfigRequest(input, extensionRegistry); } }; @@ -825,6 +852,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 83bb1a7a6410..9cc50d4286c2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -34,6 +34,9 @@ private PublishRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -45,13 +48,6 @@ private PublishRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -67,6 +63,13 @@ private PublishRequest( input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,6 +90,7 @@ private PublishRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable @@ -195,6 +199,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -204,6 +209,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { @@ -215,6 +221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -339,6 +346,7 @@ public static com.google.pubsub.v1.PublishRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -346,6 +354,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PublishRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -373,6 +382,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable @@ -396,6 +406,7 @@ private void maybeForceBuilderInitialization() { getMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); topic_ = ""; @@ -409,15 +420,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { return com.google.pubsub.v1.PublishRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PublishRequest build() { com.google.pubsub.v1.PublishRequest result = buildPartial(); if (!result.isInitialized()) { @@ -426,6 +440,7 @@ public com.google.pubsub.v1.PublishRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PublishRequest buildPartial() { com.google.pubsub.v1.PublishRequest result = new com.google.pubsub.v1.PublishRequest(this); int from_bitField0_ = bitField0_; @@ -445,32 +460,39 @@ public com.google.pubsub.v1.PublishRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PublishRequest) { return mergeFrom((com.google.pubsub.v1.PublishRequest)other); @@ -517,10 +539,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -945,11 +969,13 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder( } return messagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -971,11 +997,12 @@ public static com.google.pubsub.v1.PublishRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PublishRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishRequest(input, extensionRegistry); + return new PublishRequest(input, extensionRegistry); } }; @@ -988,6 +1015,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index f5a167742930..ec61a1cd0823 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -33,6 +33,9 @@ private PublishResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44,13 +47,6 @@ private PublishResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { @@ -60,6 +56,13 @@ private PublishResponse( messageIds_.add(s); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,6 +83,7 @@ private PublishResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable @@ -141,6 +145,7 @@ public java.lang.String getMessageIds(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -150,6 +155,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < messageIds_.size(); i++) { @@ -158,6 +164,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -279,6 +286,7 @@ public static com.google.pubsub.v1.PublishResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -286,6 +294,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PublishResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -313,6 +322,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable @@ -335,6 +345,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -342,15 +353,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { return com.google.pubsub.v1.PublishResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PublishResponse build() { com.google.pubsub.v1.PublishResponse result = buildPartial(); if (!result.isInitialized()) { @@ -359,6 +373,7 @@ public com.google.pubsub.v1.PublishResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PublishResponse buildPartial() { com.google.pubsub.v1.PublishResponse result = new com.google.pubsub.v1.PublishResponse(this); int from_bitField0_ = bitField0_; @@ -371,32 +386,39 @@ public com.google.pubsub.v1.PublishResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PublishResponse) { return mergeFrom((com.google.pubsub.v1.PublishResponse)other); @@ -423,10 +445,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -593,11 +617,13 @@ public Builder addMessageIdsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -619,11 +645,12 @@ public static com.google.pubsub.v1.PublishResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PublishResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishResponse(input, extensionRegistry); + return new PublishResponse(input, extensionRegistry); } }; @@ -636,6 +663,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 8229f3bd9ccc..c9bd7aa3d858 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -35,6 +35,9 @@ private PubsubMessage( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,13 +49,6 @@ private PubsubMessage( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { data_ = input.readBytes(); @@ -90,6 +86,13 @@ private PubsubMessage( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,6 +111,7 @@ private PubsubMessage( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -118,6 +122,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable @@ -319,6 +324,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -328,6 +334,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!data_.isEmpty()) { @@ -348,6 +355,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -499,6 +507,7 @@ public static com.google.pubsub.v1.PubsubMessage parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -506,6 +515,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PubsubMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -556,6 +566,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable @@ -578,6 +589,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; @@ -594,15 +606,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { return com.google.pubsub.v1.PubsubMessage.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PubsubMessage build() { com.google.pubsub.v1.PubsubMessage result = buildPartial(); if (!result.isInitialized()) { @@ -611,6 +626,7 @@ public com.google.pubsub.v1.PubsubMessage build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PubsubMessage buildPartial() { com.google.pubsub.v1.PubsubMessage result = new com.google.pubsub.v1.PubsubMessage(this); int from_bitField0_ = bitField0_; @@ -629,32 +645,39 @@ public com.google.pubsub.v1.PubsubMessage buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PubsubMessage) { return mergeFrom((com.google.pubsub.v1.PubsubMessage)other); @@ -683,10 +706,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1172,11 +1197,13 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { } return publishTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1198,11 +1225,12 @@ public static com.google.pubsub.v1.PubsubMessage getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PubsubMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PubsubMessage(input, extensionRegistry); + return new PubsubMessage(input, extensionRegistry); } }; @@ -1215,6 +1243,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 5b803c36f257..31cbf40afb8b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -252,7 +252,7 @@ public static void registerAllExtensions( "ed_persistence_regions\030\001 \003(\t\"\301\001\n\005Topic\022\014" + "\n\004name\030\001 \001(\t\0223\n\006labels\030\002 \003(\0132#.google.pu" + "bsub.v1.Topic.LabelsEntry\022F\n\026message_sto" + - "rage_policy\030\003 \001(\0132&.google.pubsub.v1.Mes", + "rage_policy\030\003 \001(\0132&.google.pubsub.v1.Mes" + "sageStoragePolicy\032-\n\013LabelsEntry\022\013\n\003key\030" + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\333\001\n\rPubsubMessa" + "ge\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.g" + @@ -262,7 +262,7 @@ public static void registerAllExtensions( "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + "(\t:\0028\001\" \n\017GetTopicRequest\022\r\n\005topic\030\001 \001(\t" + "\"m\n\022UpdateTopicRequest\022&\n\005topic\030\001 \001(\0132\027." + - "google.pubsub.v1.Topic\022/\n\013update_mask\030\002 ", + "google.pubsub.v1.Topic\022/\n\013update_mask\030\002 " + "\001(\0132\032.google.protobuf.FieldMask\"R\n\016Publi" + "shRequest\022\r\n\005topic\030\001 \001(\t\0221\n\010messages\030\002 \003" + "(\0132\037.google.pubsub.v1.PubsubMessage\"&\n\017P" + @@ -272,7 +272,7 @@ public static void registerAllExtensions( "TopicsResponse\022\'\n\006topics\030\001 \003(\0132\027.google." + "pubsub.v1.Topic\022\027\n\017next_page_token\030\002 \001(\t" + "\"U\n\035ListTopicSubscriptionsRequest\022\r\n\005top" + - "ic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke", + "ic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + "n\030\003 \001(\t\"P\n\036ListTopicSubscriptionsRespons" + "e\022\025\n\rsubscriptions\030\001 \003(\t\022\027\n\017next_page_to" + "ken\030\002 \001(\t\"Q\n\031ListTopicSnapshotsRequest\022\r" + @@ -282,7 +282,7 @@ public static void registerAllExtensions( "\030\002 \001(\t\"#\n\022DeleteTopicRequest\022\r\n\005topic\030\001 " + "\001(\t\"\305\002\n\014Subscription\022\014\n\004name\030\001 \001(\t\022\r\n\005to" + "pic\030\002 \001(\t\0221\n\013push_config\030\004 \001(\0132\034.google." + - "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec", + "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec" + "onds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(" + "\010\022=\n\032message_retention_duration\030\010 \001(\0132\031." + "google.protobuf.Duration\022:\n\006labels\030\t \003(\013" + @@ -292,7 +292,7 @@ public static void registerAllExtensions( "int\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google.p" + "ubsub.v1.PushConfig.AttributesEntry\0321\n\017A" + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(", + "(\t:\0028\001\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(" + "\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pu" + "bsubMessage\".\n\026GetSubscriptionRequest\022\024\n" + "\014subscription\030\001 \001(\t\"\202\001\n\031UpdateSubscripti" + @@ -302,7 +302,7 @@ public static void registerAllExtensions( "SubscriptionsRequest\022\017\n\007project\030\001 \001(\t\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031" + "ListSubscriptionsResponse\0225\n\rsubscriptio" + - "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription", + "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription" + "\022\027\n\017next_page_token\030\002 \001(\t\"1\n\031DeleteSubsc" + "riptionRequest\022\024\n\014subscription\030\001 \001(\t\"b\n\027" + "ModifyPushConfigRequest\022\024\n\014subscription\030" + @@ -312,7 +312,7 @@ public static void registerAllExtensions( "\010\022\024\n\014max_messages\030\003 \001(\005\"L\n\014PullResponse\022" + "<\n\021received_messages\030\001 \003(\0132!.google.pubs" + "ub.v1.ReceivedMessage\"_\n\030ModifyAckDeadli" + - "neRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_i", + "neRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_i" + "ds\030\004 \003(\t\022\034\n\024ack_deadline_seconds\030\003 \001(\005\";" + "\n\022AcknowledgeRequest\022\024\n\014subscription\030\001 \001" + "(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024StreamingPullReq" + @@ -322,7 +322,7 @@ public static void registerAllExtensions( "ack_deadline_seconds\030\005 \001(\005\"U\n\025StreamingP" + "ullResponse\022<\n\021received_messages\030\001 \003(\0132!" + ".google.pubsub.v1.ReceivedMessage\"\257\001\n\025Cr" + - "eateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014sub", + "eateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014sub" + "scription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.google" + ".pubsub.v1.CreateSnapshotRequest.LabelsE" + "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + @@ -332,7 +332,7 @@ public static void registerAllExtensions( "f.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r" + "\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.goo" + "gle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&" + - ".google.pubsub.v1.Snapshot.LabelsEntry\032-", + ".google.pubsub.v1.Snapshot.LabelsEntry\032-" + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + "\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010snapshot\030" + "\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007project" + @@ -342,7 +342,7 @@ public static void registerAllExtensions( "\017next_page_token\030\002 \001(\t\")\n\025DeleteSnapshot" + "Request\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest" + "\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.g" + - "oogle.protobuf.TimestampH\000\022\022\n\010snapshot\030\003", + "oogle.protobuf.TimestampH\000\022\022\n\010snapshot\030\003" + " \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2\277\010\n\tPub" + "lisher\022j\n\013CreateTopic\022\027.google.pubsub.v1" + ".Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223\002#\032" + @@ -352,7 +352,7 @@ public static void registerAllExtensions( "2$/v1/{topic.name=projects/*/topics/*}:\001" + "*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publish" + "Request\032!.google.pubsub.v1.PublishRespon" + - "se\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics", + "se\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" + "/*}:publish:\001*\022o\n\010GetTopic\022!.google.pubs" + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" + ".Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*/to" + @@ -362,7 +362,7 @@ public static void registerAllExtensions( "projects/*}/topics\022\262\001\n\026ListTopicSubscrip" + "tions\022/.google.pubsub.v1.ListTopicSubscr" + "iptionsRequest\0320.google.pubsub.v1.ListTo" + - "picSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/{t", + "picSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/{t" + "opic=projects/*/topics/*}/subscriptions\022" + "\242\001\n\022ListTopicSnapshots\022+.google.pubsub.v" + "1.ListTopicSnapshotsRequest\032,.google.pub" + @@ -372,7 +372,7 @@ public static void registerAllExtensions( "eleteTopicRequest\032\026.google.protobuf.Empt" + "y\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/" + "*}2\367\021\n\nSubscriber\022\206\001\n\022CreateSubscription" + - "\022\036.google.pubsub.v1.Subscription\032\036.googl", + "\022\036.google.pubsub.v1.Subscription\032\036.googl" + "e.pubsub.v1.Subscription\"0\202\323\344\223\002*\032%/v1/{n" + "ame=projects/*/subscriptions/*}:\001*\022\222\001\n\017G" + "etSubscription\022(.google.pubsub.v1.GetSub" + @@ -382,7 +382,7 @@ public static void registerAllExtensions( "iption\022+.google.pubsub.v1.UpdateSubscrip" + "tionRequest\032\036.google.pubsub.v1.Subscript" + "ion\"=\202\323\344\223\002722/v1/{subscription.name=proj" + - "ects/*/subscriptions/*}:\001*\022\234\001\n\021ListSubsc", + "ects/*/subscriptions/*}:\001*\022\234\001\n\021ListSubsc" + "riptions\022*.google.pubsub.v1.ListSubscrip" + "tionsRequest\032+.google.pubsub.v1.ListSubs" + "criptionsResponse\".\202\323\344\223\002(\022&/v1/{project=" + @@ -392,7 +392,7 @@ public static void registerAllExtensions( "\323\344\223\002/*-/v1/{subscription=projects/*/subs" + "criptions/*}\022\243\001\n\021ModifyAckDeadline\022*.goo" + "gle.pubsub.v1.ModifyAckDeadlineRequest\032\026" + - ".google.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{sub", + ".google.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{sub" + "scription=projects/*/subscriptions/*}:mo" + "difyAckDeadline:\001*\022\221\001\n\013Acknowledge\022$.goo" + "gle.pubsub.v1.AcknowledgeRequest\032\026.googl" + @@ -402,7 +402,7 @@ public static void registerAllExtensions( "equest\032\036.google.pubsub.v1.PullResponse\"=" + "\202\323\344\223\0027\"2/v1/{subscription=projects/*/sub" + "scriptions/*}:pull:\001*\022d\n\rStreamingPull\022&" + - ".google.pubsub.v1.StreamingPullRequest\032\'", + ".google.pubsub.v1.StreamingPullRequest\032\'" + ".google.pubsub.v1.StreamingPullResponse(" + "\0010\001\022\240\001\n\020ModifyPushConfig\022).google.pubsub" + ".v1.ModifyPushConfigRequest\032\026.google.pro" + @@ -412,7 +412,7 @@ public static void registerAllExtensions( ".GetSnapshotRequest\032\032.google.pubsub.v1.S" + "napshot\"-\202\323\344\223\002\'\022%/v1/{snapshot=projects/" + "*/snapshots/*}\022\214\001\n\rListSnapshots\022&.googl" + - "e.pubsub.v1.ListSnapshotsRequest\032\'.googl", + "e.pubsub.v1.ListSnapshotsRequest\032\'.googl" + "e.pubsub.v1.ListSnapshotsResponse\"*\202\323\344\223\002" + "$\022\"/v1/{project=projects/*}/snapshots\022\203\001" + "\n\016CreateSnapshot\022\'.google.pubsub.v1.Crea" + @@ -422,7 +422,7 @@ public static void registerAllExtensions( "pubsub.v1.UpdateSnapshotRequest\032\032.google" + ".pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapsh" + "ot.name=projects/*/snapshots/*}:\001*\022\200\001\n\016D" + - "eleteSnapshot\022\'.google.pubsub.v1.DeleteS", + "eleteSnapshot\022\'.google.pubsub.v1.DeleteS" + "napshotRequest\032\026.google.protobuf.Empty\"-" + "\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsho" + "ts/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRe" + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index aaeecd93372b..4c1aaa51d06b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -35,6 +35,9 @@ private PullRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,13 +49,6 @@ private PullRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -69,6 +65,13 @@ private PullRequest( maxMessages_ = input.readInt32(); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,6 +89,7 @@ private PullRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable @@ -170,6 +174,7 @@ public int getMaxMessages() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -179,6 +184,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -193,6 +199,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -324,6 +331,7 @@ public static com.google.pubsub.v1.PullRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -331,6 +339,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -358,6 +367,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable @@ -380,6 +390,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -391,15 +402,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { return com.google.pubsub.v1.PullRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PullRequest build() { com.google.pubsub.v1.PullRequest result = buildPartial(); if (!result.isInitialized()) { @@ -408,6 +422,7 @@ public com.google.pubsub.v1.PullRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PullRequest buildPartial() { com.google.pubsub.v1.PullRequest result = new com.google.pubsub.v1.PullRequest(this); result.subscription_ = subscription_; @@ -417,32 +432,39 @@ public com.google.pubsub.v1.PullRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PullRequest) { return mergeFrom((com.google.pubsub.v1.PullRequest)other); @@ -469,10 +491,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PullRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -678,11 +702,13 @@ public Builder clearMaxMessages() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -704,11 +730,12 @@ public static com.google.pubsub.v1.PullRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullRequest(input, extensionRegistry); + return new PullRequest(input, extensionRegistry); } }; @@ -721,6 +748,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index a8c84a96529d..170040815345 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -33,6 +33,9 @@ private PullResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44,13 +47,6 @@ private PullResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { receivedMessages_ = new java.util.ArrayList(); @@ -60,6 +56,13 @@ private PullResponse( input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,6 +83,7 @@ private PullResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable @@ -158,6 +162,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -167,6 +172,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < receivedMessages_.size(); i++) { @@ -175,6 +181,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -292,6 +299,7 @@ public static com.google.pubsub.v1.PullResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -299,6 +307,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PullResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -326,6 +335,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable @@ -349,6 +359,7 @@ private void maybeForceBuilderInitialization() { getReceivedMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); if (receivedMessagesBuilder_ == null) { @@ -360,15 +371,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() { return com.google.pubsub.v1.PullResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PullResponse build() { com.google.pubsub.v1.PullResponse result = buildPartial(); if (!result.isInitialized()) { @@ -377,6 +391,7 @@ public com.google.pubsub.v1.PullResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PullResponse buildPartial() { com.google.pubsub.v1.PullResponse result = new com.google.pubsub.v1.PullResponse(this); int from_bitField0_ = bitField0_; @@ -393,32 +408,39 @@ public com.google.pubsub.v1.PullResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PullResponse) { return mergeFrom((com.google.pubsub.v1.PullResponse)other); @@ -461,10 +483,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PullResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -849,11 +873,13 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( } return receivedMessagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -875,11 +901,12 @@ public static com.google.pubsub.v1.PullResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PullResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullResponse(input, extensionRegistry); + return new PullResponse(input, extensionRegistry); } }; @@ -892,6 +919,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index e0bfc14b592f..7dcac690833b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -33,6 +33,9 @@ private PushConfig( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44,13 +47,6 @@ private PushConfig( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -70,6 +66,13 @@ private PushConfig( attributes__.getKey(), attributes__.getValue()); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -88,6 +91,7 @@ private PushConfig( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -98,6 +102,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable @@ -303,6 +308,7 @@ public java.lang.String getAttributesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -312,6 +318,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getPushEndpointBytes().isEmpty()) { @@ -326,6 +333,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -456,6 +464,7 @@ public static com.google.pubsub.v1.PushConfig parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -463,6 +472,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.PushConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -512,6 +522,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable @@ -534,6 +545,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); pushEndpoint_ = ""; @@ -542,15 +554,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; } + @java.lang.Override public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() { return com.google.pubsub.v1.PushConfig.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.PushConfig build() { com.google.pubsub.v1.PushConfig result = buildPartial(); if (!result.isInitialized()) { @@ -559,6 +574,7 @@ public com.google.pubsub.v1.PushConfig build() { return result; } + @java.lang.Override public com.google.pubsub.v1.PushConfig buildPartial() { com.google.pubsub.v1.PushConfig result = new com.google.pubsub.v1.PushConfig(this); int from_bitField0_ = bitField0_; @@ -571,32 +587,39 @@ public com.google.pubsub.v1.PushConfig buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PushConfig) { return mergeFrom((com.google.pubsub.v1.PushConfig)other); @@ -619,10 +642,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -991,11 +1016,13 @@ public Builder putAllAttributes( .putAll(values); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1017,11 +1044,12 @@ public static com.google.pubsub.v1.PushConfig getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public PushConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PushConfig(input, extensionRegistry); + return new PushConfig(input, extensionRegistry); } }; @@ -1034,6 +1062,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index c50f2bfa1310..911dd5e6bf88 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -33,6 +33,9 @@ private ReceivedMessage( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44,13 +47,6 @@ private ReceivedMessage( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -70,6 +66,13 @@ private ReceivedMessage( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,6 +90,7 @@ private ReceivedMessage( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable @@ -170,6 +174,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -179,6 +184,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getAckIdBytes().isEmpty()) { @@ -190,6 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -317,6 +324,7 @@ public static com.google.pubsub.v1.ReceivedMessage parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -324,6 +332,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.ReceivedMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -351,6 +360,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable @@ -373,6 +383,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); ackId_ = ""; @@ -386,15 +397,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } + @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { return com.google.pubsub.v1.ReceivedMessage.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.ReceivedMessage build() { com.google.pubsub.v1.ReceivedMessage result = buildPartial(); if (!result.isInitialized()) { @@ -403,6 +417,7 @@ public com.google.pubsub.v1.ReceivedMessage build() { return result; } + @java.lang.Override public com.google.pubsub.v1.ReceivedMessage buildPartial() { com.google.pubsub.v1.ReceivedMessage result = new com.google.pubsub.v1.ReceivedMessage(this); result.ackId_ = ackId_; @@ -415,32 +430,39 @@ public com.google.pubsub.v1.ReceivedMessage buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ReceivedMessage) { return mergeFrom((com.google.pubsub.v1.ReceivedMessage)other); @@ -464,10 +486,12 @@ public Builder mergeFrom(com.google.pubsub.v1.ReceivedMessage other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -727,11 +751,13 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { } return messageBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -753,11 +779,12 @@ public static com.google.pubsub.v1.ReceivedMessage getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public ReceivedMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceivedMessage(input, extensionRegistry); + return new ReceivedMessage(input, extensionRegistry); } }; @@ -770,6 +797,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 1fb2babdc68e..fbfd4f5b9bad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -36,6 +36,9 @@ private SeekRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,13 +50,6 @@ private SeekRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -80,6 +76,13 @@ private SeekRequest( target_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,6 +100,7 @@ private SeekRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable @@ -308,6 +312,7 @@ public java.lang.String getSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -317,6 +322,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getSubscriptionBytes().isEmpty()) { @@ -331,6 +337,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -479,6 +486,7 @@ public static com.google.pubsub.v1.SeekRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -486,6 +494,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.SeekRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -516,6 +525,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable @@ -538,6 +548,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -547,15 +558,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { return com.google.pubsub.v1.SeekRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.SeekRequest build() { com.google.pubsub.v1.SeekRequest result = buildPartial(); if (!result.isInitialized()) { @@ -564,6 +578,7 @@ public com.google.pubsub.v1.SeekRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.SeekRequest buildPartial() { com.google.pubsub.v1.SeekRequest result = new com.google.pubsub.v1.SeekRequest(this); result.subscription_ = subscription_; @@ -582,32 +597,39 @@ public com.google.pubsub.v1.SeekRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.SeekRequest) { return mergeFrom((com.google.pubsub.v1.SeekRequest)other); @@ -643,10 +665,12 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1140,11 +1164,13 @@ public Builder setSnapshotBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1166,11 +1192,12 @@ public static com.google.pubsub.v1.SeekRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public SeekRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SeekRequest(input, extensionRegistry); + return new SeekRequest(input, extensionRegistry); } }; @@ -1183,6 +1210,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index deb1a5a59eed..3fd4c8871eb4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -28,6 +28,9 @@ private SeekResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -62,6 +65,7 @@ private SeekResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable @@ -70,6 +74,7 @@ private SeekResponse( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -79,11 +84,13 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -191,6 +198,7 @@ public static com.google.pubsub.v1.SeekResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -198,6 +206,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.SeekResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -221,6 +230,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable @@ -243,20 +253,24 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { return com.google.pubsub.v1.SeekResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.SeekResponse build() { com.google.pubsub.v1.SeekResponse result = buildPartial(); if (!result.isInitialized()) { @@ -265,38 +279,46 @@ public com.google.pubsub.v1.SeekResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.SeekResponse buildPartial() { com.google.pubsub.v1.SeekResponse result = new com.google.pubsub.v1.SeekResponse(this); onBuilt(); return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.SeekResponse) { return mergeFrom((com.google.pubsub.v1.SeekResponse)other); @@ -313,10 +335,12 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -334,11 +358,13 @@ public Builder mergeFrom( } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -360,11 +386,12 @@ public static com.google.pubsub.v1.SeekResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public SeekResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SeekResponse(input, extensionRegistry); + return new SeekResponse(input, extensionRegistry); } }; @@ -377,6 +404,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index f6d53216d0f0..7c1399f90305 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -37,6 +37,9 @@ private Snapshot( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -48,13 +51,6 @@ private Snapshot( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -93,6 +89,13 @@ private Snapshot( labels__.getKey(), labels__.getValue()); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,6 +114,7 @@ private Snapshot( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -121,6 +125,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable @@ -366,6 +371,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -375,6 +381,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -395,6 +402,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -545,6 +553,7 @@ public static com.google.pubsub.v1.Snapshot parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -552,6 +561,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.Snapshot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -604,6 +614,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable @@ -626,6 +637,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -642,15 +654,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor; } + @java.lang.Override public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() { return com.google.pubsub.v1.Snapshot.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.Snapshot build() { com.google.pubsub.v1.Snapshot result = buildPartial(); if (!result.isInitialized()) { @@ -659,6 +674,7 @@ public com.google.pubsub.v1.Snapshot build() { return result; } + @java.lang.Override public com.google.pubsub.v1.Snapshot buildPartial() { com.google.pubsub.v1.Snapshot result = new com.google.pubsub.v1.Snapshot(this); int from_bitField0_ = bitField0_; @@ -677,32 +693,39 @@ public com.google.pubsub.v1.Snapshot buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Snapshot) { return mergeFrom((com.google.pubsub.v1.Snapshot)other); @@ -732,10 +755,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1317,11 +1342,13 @@ public Builder putAllLabels( .putAll(values); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1343,11 +1370,12 @@ public static com.google.pubsub.v1.Snapshot getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public Snapshot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Snapshot(input, extensionRegistry); + return new Snapshot(input, extensionRegistry); } }; @@ -1360,6 +1388,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index ff90912ace24..11df06758c2c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -39,6 +39,9 @@ private StreamingPullRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -50,13 +53,6 @@ private StreamingPullRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -107,6 +103,13 @@ private StreamingPullRequest( streamAckDeadlineSeconds_ = input.readInt32(); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -133,6 +136,7 @@ private StreamingPullRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable @@ -393,6 +397,7 @@ public int getStreamAckDeadlineSeconds() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -402,6 +407,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); @@ -427,6 +433,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -597,6 +604,7 @@ public static com.google.pubsub.v1.StreamingPullRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -604,6 +612,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.StreamingPullRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -633,6 +642,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable @@ -655,6 +665,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); subscription_ = ""; @@ -670,15 +681,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest build() { com.google.pubsub.v1.StreamingPullRequest result = buildPartial(); if (!result.isInitialized()) { @@ -687,6 +701,7 @@ public com.google.pubsub.v1.StreamingPullRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest buildPartial() { com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this); int from_bitField0_ = bitField0_; @@ -713,32 +728,39 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullRequest) { return mergeFrom((com.google.pubsub.v1.StreamingPullRequest)other); @@ -792,10 +814,12 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1461,11 +1485,13 @@ public Builder clearStreamAckDeadlineSeconds() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1487,11 +1513,12 @@ public static com.google.pubsub.v1.StreamingPullRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public StreamingPullRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullRequest(input, extensionRegistry); + return new StreamingPullRequest(input, extensionRegistry); } }; @@ -1504,6 +1531,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 4e460e8a2b17..fd6e40943b9b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -34,6 +34,9 @@ private StreamingPullResponse( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -45,13 +48,6 @@ private StreamingPullResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { receivedMessages_ = new java.util.ArrayList(); @@ -61,6 +57,13 @@ private StreamingPullResponse( input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -81,6 +84,7 @@ private StreamingPullResponse( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable @@ -144,6 +148,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -153,6 +158,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < receivedMessages_.size(); i++) { @@ -161,6 +167,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -278,6 +285,7 @@ public static com.google.pubsub.v1.StreamingPullResponse parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -285,6 +293,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -313,6 +322,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable @@ -336,6 +346,7 @@ private void maybeForceBuilderInitialization() { getReceivedMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); if (receivedMessagesBuilder_ == null) { @@ -347,15 +358,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { return com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse build() { com.google.pubsub.v1.StreamingPullResponse result = buildPartial(); if (!result.isInitialized()) { @@ -364,6 +378,7 @@ public com.google.pubsub.v1.StreamingPullResponse build() { return result; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse buildPartial() { com.google.pubsub.v1.StreamingPullResponse result = new com.google.pubsub.v1.StreamingPullResponse(this); int from_bitField0_ = bitField0_; @@ -380,32 +395,39 @@ public com.google.pubsub.v1.StreamingPullResponse buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullResponse) { return mergeFrom((com.google.pubsub.v1.StreamingPullResponse)other); @@ -448,10 +470,12 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -782,11 +806,13 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( } return receivedMessagesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -808,11 +834,12 @@ public static com.google.pubsub.v1.StreamingPullResponse getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public StreamingPullResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullResponse(input, extensionRegistry); + return new StreamingPullResponse(input, extensionRegistry); } }; @@ -825,6 +852,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index ba7cadbffadd..bfe88e6107ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -36,6 +36,9 @@ private Subscription( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -47,13 +50,6 @@ private Subscription( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -115,6 +111,13 @@ private Subscription( labels__.getKey(), labels__.getValue()); break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -133,6 +136,7 @@ private Subscription( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -143,6 +147,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable @@ -488,6 +493,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -497,6 +503,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -526,6 +533,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -706,6 +714,7 @@ public static com.google.pubsub.v1.Subscription parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -713,6 +722,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.Subscription prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -762,6 +772,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable @@ -784,6 +795,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -810,15 +822,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; } + @java.lang.Override public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return com.google.pubsub.v1.Subscription.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.Subscription build() { com.google.pubsub.v1.Subscription result = buildPartial(); if (!result.isInitialized()) { @@ -827,6 +842,7 @@ public com.google.pubsub.v1.Subscription build() { return result; } + @java.lang.Override public com.google.pubsub.v1.Subscription buildPartial() { com.google.pubsub.v1.Subscription result = new com.google.pubsub.v1.Subscription(this); int from_bitField0_ = bitField0_; @@ -852,32 +868,39 @@ public com.google.pubsub.v1.Subscription buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Subscription) { return mergeFrom((com.google.pubsub.v1.Subscription)other); @@ -916,10 +939,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1845,11 +1870,13 @@ public Builder putAllLabels( .putAll(values); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1871,11 +1898,12 @@ public static com.google.pubsub.v1.Subscription getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public Subscription parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Subscription(input, extensionRegistry); + return new Subscription(input, extensionRegistry); } }; @@ -1888,6 +1916,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.Subscription getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index ab8d006b6c29..07b861121aeb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -33,6 +33,9 @@ private Topic( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -44,13 +47,6 @@ private Topic( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); @@ -83,6 +79,13 @@ private Topic( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,6 +104,7 @@ private Topic( } @SuppressWarnings({"rawtypes"}) + @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { @@ -111,6 +115,7 @@ protected com.google.protobuf.MapField internalGetMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable @@ -312,6 +317,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -321,6 +327,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { @@ -338,6 +345,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -481,6 +489,7 @@ public static com.google.pubsub.v1.Topic parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -488,6 +497,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.Topic prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -537,6 +547,7 @@ protected com.google.protobuf.MapField internalGetMutableMapField( "Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable @@ -559,6 +570,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -573,15 +585,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } + @java.lang.Override public com.google.pubsub.v1.Topic getDefaultInstanceForType() { return com.google.pubsub.v1.Topic.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.Topic build() { com.google.pubsub.v1.Topic result = buildPartial(); if (!result.isInitialized()) { @@ -590,6 +605,7 @@ public com.google.pubsub.v1.Topic build() { return result; } + @java.lang.Override public com.google.pubsub.v1.Topic buildPartial() { com.google.pubsub.v1.Topic result = new com.google.pubsub.v1.Topic(this); int from_bitField0_ = bitField0_; @@ -607,32 +623,39 @@ public com.google.pubsub.v1.Topic buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Topic) { return mergeFrom((com.google.pubsub.v1.Topic)other); @@ -658,10 +681,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1143,11 +1168,13 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic } return messageStoragePolicyBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -1169,11 +1196,12 @@ public static com.google.pubsub.v1.Topic getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public Topic parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Topic(input, extensionRegistry); + return new Topic(input, extensionRegistry); } }; @@ -1186,6 +1214,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.Topic getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index a678b4e8e01d..454443468ba2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -35,6 +35,9 @@ private UpdateSnapshotRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -46,13 +49,6 @@ private UpdateSnapshotRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { com.google.pubsub.v1.Snapshot.Builder subBuilder = null; if (snapshot_ != null) { @@ -79,6 +75,13 @@ private UpdateSnapshotRequest( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,6 +99,7 @@ private UpdateSnapshotRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable @@ -173,6 +177,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -182,6 +187,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (snapshot_ != null) { @@ -193,6 +199,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -326,6 +333,7 @@ public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -333,6 +341,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.UpdateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -363,6 +372,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable @@ -385,6 +395,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); if (snapshotBuilder_ == null) { @@ -402,15 +413,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest build() { com.google.pubsub.v1.UpdateSnapshotRequest result = buildPartial(); if (!result.isInitialized()) { @@ -419,6 +433,7 @@ public com.google.pubsub.v1.UpdateSnapshotRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { com.google.pubsub.v1.UpdateSnapshotRequest result = new com.google.pubsub.v1.UpdateSnapshotRequest(this); if (snapshotBuilder_ == null) { @@ -435,32 +450,39 @@ public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateSnapshotRequest) { return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest)other); @@ -483,10 +505,12 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateSnapshotRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -819,11 +843,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } return updateMaskBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -845,11 +871,12 @@ public static com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public UpdateSnapshotRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSnapshotRequest(input, extensionRegistry); + return new UpdateSnapshotRequest(input, extensionRegistry); } }; @@ -862,6 +889,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index c15df7942b7d..83413ab9760b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -32,6 +32,9 @@ private UpdateSubscriptionRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -43,13 +46,6 @@ private UpdateSubscriptionRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { com.google.pubsub.v1.Subscription.Builder subBuilder = null; if (subscription_ != null) { @@ -76,6 +72,13 @@ private UpdateSubscriptionRequest( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,6 +96,7 @@ private UpdateSubscriptionRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable @@ -170,6 +174,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -179,6 +184,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (subscription_ != null) { @@ -190,6 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -323,6 +330,7 @@ public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -330,6 +338,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.UpdateSubscriptionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -357,6 +366,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable @@ -379,6 +389,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); if (subscriptionBuilder_ == null) { @@ -396,15 +407,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest build() { com.google.pubsub.v1.UpdateSubscriptionRequest result = buildPartial(); if (!result.isInitialized()) { @@ -413,6 +427,7 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); if (subscriptionBuilder_ == null) { @@ -429,32 +444,39 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateSubscriptionRequest) { return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest)other); @@ -477,10 +499,12 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateSubscriptionRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -813,11 +837,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } return updateMaskBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -839,11 +865,12 @@ public static com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstance( private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public UpdateSubscriptionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateSubscriptionRequest(input, extensionRegistry); + return new UpdateSubscriptionRequest(input, extensionRegistry); } }; @@ -856,6 +883,7 @@ public com.google.protobuf.Parser getParserForType() return PARSER; } + @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 57d809e7b338..ba77db8ac8b5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -32,6 +32,9 @@ private UpdateTopicRequest( com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -43,13 +46,6 @@ private UpdateTopicRequest( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } case 10: { com.google.pubsub.v1.Topic.Builder subBuilder = null; if (topic_ != null) { @@ -76,6 +72,13 @@ private UpdateTopicRequest( break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,6 +96,7 @@ private UpdateTopicRequest( return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable @@ -179,6 +183,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -188,6 +193,7 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (topic_ != null) { @@ -199,6 +205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -332,6 +339,7 @@ public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); @@ -339,6 +347,7 @@ public static Builder newBuilder() { public static Builder newBuilder(com.google.pubsub.v1.UpdateTopicRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -366,6 +375,7 @@ public static final class Builder extends return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable @@ -388,6 +398,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); if (topicBuilder_ == null) { @@ -405,15 +416,18 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } + @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { return com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance(); } + @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest build() { com.google.pubsub.v1.UpdateTopicRequest result = buildPartial(); if (!result.isInitialized()) { @@ -422,6 +436,7 @@ public com.google.pubsub.v1.UpdateTopicRequest build() { return result; } + @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); if (topicBuilder_ == null) { @@ -438,32 +453,39 @@ public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateTopicRequest) { return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest)other); @@ -486,10 +508,12 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateTopicRequest other) { return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -849,11 +873,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } return updateMaskBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); @@ -875,11 +901,12 @@ public static com.google.pubsub.v1.UpdateTopicRequest getDefaultInstance() { private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public UpdateTopicRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateTopicRequest(input, extensionRegistry); + return new UpdateTopicRequest(input, extensionRegistry); } }; @@ -892,6 +919,7 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } + @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } From 0e49f528e609585b819033fe349e93e601d25ed7 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 13 Sep 2018 09:47:56 -0700 Subject: [PATCH 0055/2363] Release 1.44.0/0.62.0 (#3677) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 0394dfd0e098..e6791f7af51c 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.43.0 + 1.44.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.43.0' +compile 'com.google.cloud:google-cloud-pubsub:1.44.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.44.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9a0d2bbc43d4..5ec4c63bc568 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.43.1-SNAPSHOT + 1.44.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.61.1-alpha-SNAPSHOT + 0.62.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 59af58dd245d..b37d959529d7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.25.1-SNAPSHOT + 1.26.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 740c317382d1..dc59348b5201 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.25.1-SNAPSHOT + 1.26.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.26.1-SNAPSHOT + 0.27.0 From 22a212ff6f50091614ae39343b0fa2a0aba351d1 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Thu, 13 Sep 2018 10:59:16 -0700 Subject: [PATCH 0056/2363] Bump to next snapshot versions (#3679) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5ec4c63bc568..482e031283b0 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.44.0 + 1.44.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.0-alpha + 0.62.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b37d959529d7..1b491a1a677a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.26.0 + 1.26.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index dc59348b5201..99df542be817 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.26.0 + 1.26.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.27.0 + 0.27.1-SNAPSHOT From 1a6056c4247a008484022539d1c326d33d1e8b00 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Mon, 17 Sep 2018 12:28:55 -0700 Subject: [PATCH 0057/2363] pubsub: add Publisher.awaitTermination (#3688) [Newer gRPC versions](https://github.com/grpc/grpc-java/releases/tag/v1.12.0) seem to check that we call this method. Currently shutdown waits for all messages to publish and return before shutting anything down, so awaitTermination likely won't do anything meaningful. In the future, we should make shutdown return promptly and use awaitTermination to wait for messages. I reported this at #3687. Fixes #3648. --- java-pubsub/google-cloud-pubsub/README.md | 1 + .../com/google/cloud/pubsub/v1/Publisher.java | 16 ++++++++++++---- .../com/google/cloud/pubsub/it/ITPubSubTest.java | 16 ++++++++-------- .../cloud/pubsub/v1/PublisherImplTest.java | 11 +++++++++++ 4 files changed, 32 insertions(+), 12 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index e6791f7af51c..a6956093f8a3 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -119,6 +119,7 @@ try { } finally { if (publisher != null) { publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } } ``` diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 2b1fa858010a..53e36d791fd4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -27,10 +27,7 @@ import com.google.api.gax.core.ExecutorProvider; import com.google.api.gax.core.FixedExecutorProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; import com.google.api.gax.rpc.HeaderProvider; import com.google.api.gax.rpc.NoHeaderProvider; import com.google.api.gax.rpc.StatusCode; @@ -46,7 +43,6 @@ import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.TopicNames; -import io.grpc.Status; import java.io.IOException; import java.util.Collections; import java.util.Iterator; @@ -424,6 +420,16 @@ public void shutdown() throws Exception { publisherStub.shutdown(); } + /** + * Wait for all work has completed execution after a {@link #shutdown()} request, or the timeout + * occurs, or the current thread is interrupted. + * + *

Call this method to make sure all resources are freed properly. + */ + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return publisherStub.awaitTermination(duration, unit); + } + private boolean hasBatchingBytes() { return getMaxBatchBytes() > 0; } @@ -443,6 +449,7 @@ private boolean hasBatchingBytes() { * } finally { * // When finished with the publisher, make sure to shutdown to free up resources. * publisher.shutdown(); + * publisher.awaitTermination(1, TimeUnit.MINUTES); * } * } */ @@ -463,6 +470,7 @@ public static Builder newBuilder(TopicName topicName) { * } finally { * // When finished with the publisher, make sure to shutdown to free up resources. * publisher.shutdown(); + * publisher.awaitTermination(1, TimeUnit.MINUTES); * } * } */ diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java index f02606db4321..de4ca4872459 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java @@ -16,6 +16,8 @@ package com.google.cloud.pubsub.it; +import static com.google.common.truth.Truth.assertThat; + import com.google.auto.value.AutoValue; import com.google.cloud.ServiceOptions; import com.google.cloud.pubsub.v1.AckReplyConsumer; @@ -32,20 +34,17 @@ import com.google.pubsub.v1.ProjectTopicName; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.PushConfig; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.Timeout; - import java.util.Collections; import java.util.List; import java.util.UUID; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; - -import static com.google.common.truth.Truth.assertThat; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.Timeout; public class ITPubSubTest { @@ -147,6 +146,7 @@ public void failed(Subscriber.State from, Throwable failure) { .publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("msg2")).build()) .get(); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); // Ack the first message. MessageAndConsumer toAck = pollQueue(receiveQueue); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index bea0ec4e9194..3cded21fac80 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -42,6 +42,7 @@ import io.grpc.StatusException; import io.grpc.inprocess.InProcessServerBuilder; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -114,6 +115,7 @@ public void testPublishByDuration() throws Exception { assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(0).getMessagesCount()); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } @Test @@ -152,6 +154,7 @@ public void testPublishByNumBatchedMessages() throws Exception { assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(0).getMessagesCount()); assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(1).getMessagesCount()); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } @Test @@ -186,6 +189,7 @@ public void testSinglePublishByNumBytes() throws Exception { assertEquals(2, testPublisherServiceImpl.getCapturedRequests().size()); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } @Test @@ -228,6 +232,7 @@ public void testPublishMixedSizeAndDuration() throws Exception { assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(0).getMessagesCount()); assertEquals(1, testPublisherServiceImpl.getCapturedRequests().get(1).getMessagesCount()); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } private ApiFuture sendTestMessage(Publisher publisher, String data) { @@ -278,6 +283,7 @@ public void testPublishFailureRetries() throws Exception { assertEquals(2, testPublisherServiceImpl.getCapturedRequests().size()); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } @Test(expected = ExecutionException.class) @@ -302,6 +308,7 @@ public void testPublishFailureRetries_retriesDisabled() throws Exception { } finally { assertSame(testPublisherServiceImpl.getCapturedRequests().size(), 1); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } } @@ -328,6 +335,7 @@ public void testPublishFailureRetries_maxRetriesSetup() throws Exception { assertEquals(3, testPublisherServiceImpl.getCapturedRequests().size()); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } @Test @@ -353,6 +361,7 @@ public void testPublishFailureRetries_maxRetriesSetUnlimited() throws Exception assertEquals(3, testPublisherServiceImpl.getCapturedRequests().size()); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } @Test(expected = ExecutionException.class) @@ -381,6 +390,7 @@ public void testPublishFailureRetries_nonRetryableFailsImmediately() throws Exce } finally { assertTrue(testPublisherServiceImpl.getCapturedRequests().size() >= 1); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } } @@ -403,6 +413,7 @@ public void testPublisherGetters() throws Exception { assertEquals(Duration.ofMillis(11), publisher.getBatchingSettings().getDelayThreshold()); assertEquals(12, (long) publisher.getBatchingSettings().getElementCountThreshold()); publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); } @Test From 7049f21f2f133aa51cf45cc1c3ebc6b1d21f3089 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Wed, 19 Sep 2018 15:45:31 +0900 Subject: [PATCH 0058/2363] Migrate Pub/Sub client to ApiFutures. (#3700) --- .../cloud/pubsub/v1/MessageDispatcher.java | 14 ++++++------- .../v1/StreamingSubscriberConnection.java | 20 ++++++++++--------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index aad9446f06eb..bb50e18813de 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -17,16 +17,16 @@ package com.google.cloud.pubsub.v1; import com.google.api.core.ApiClock; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; import com.google.api.core.InternalApi; +import com.google.api.core.SettableApiFuture; import com.google.api.gax.batching.FlowController; import com.google.api.gax.batching.FlowController.FlowControlException; import com.google.api.gax.core.Distribution; import com.google.cloud.pubsub.v1.MessageDispatcher.OutstandingMessageBatch.OutstandingMessage; -import com.google.common.collect.ArrayListMultimap; import com.google.common.primitives.Ints; -import com.google.common.util.concurrent.FutureCallback; -import com.google.common.util.concurrent.Futures; -import com.google.common.util.concurrent.SettableFuture; +import com.google.common.util.concurrent.MoreExecutors; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.ReceivedMessage; import java.util.ArrayList; @@ -129,7 +129,7 @@ public enum AckReply { } /** Handles callbacks for acking/nacking messages from the {@link MessageReceiver}. */ - private class AckHandler implements FutureCallback { + private class AckHandler implements ApiFutureCallback { private final String ackId; private final int outstandingBytes; private final long receivedTimeMillis; @@ -379,7 +379,7 @@ public void processOutstandingBatches() { final PubsubMessage message = outstandingMessage.receivedMessage().getMessage(); final AckHandler ackHandler = outstandingMessage.ackHandler(); - final SettableFuture response = SettableFuture.create(); + final SettableApiFuture response = SettableApiFuture.create(); final AckReplyConsumer consumer = new AckReplyConsumer() { @Override @@ -392,7 +392,7 @@ public void nack() { response.set(AckReply.NACK); } }; - Futures.addCallback(response, ackHandler); + ApiFutures.addCallback(response, ackHandler, MoreExecutors.directExecutor()); executor.execute( new Runnable() { @Override diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index b9854fe5f683..17a913935392 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -18,7 +18,10 @@ import com.google.api.core.AbstractApiService; import com.google.api.core.ApiClock; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; import com.google.api.core.InternalApi; +import com.google.api.core.SettableApiFuture; import com.google.api.gax.batching.FlowController; import com.google.api.gax.core.Distribution; import com.google.api.gax.grpc.GrpcStatusCode; @@ -27,9 +30,7 @@ import com.google.cloud.pubsub.v1.MessageDispatcher.AckProcessor; import com.google.cloud.pubsub.v1.MessageDispatcher.PendingModifyAckDeadline; import com.google.common.collect.Lists; -import com.google.common.util.concurrent.FutureCallback; -import com.google.common.util.concurrent.Futures; -import com.google.common.util.concurrent.SettableFuture; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.ModifyAckDeadlineRequest; @@ -127,7 +128,7 @@ protected void doStop() { private class StreamingPullResponseObserver implements ClientResponseObserver { - final SettableFuture errorFuture; + final SettableApiFuture errorFuture; /** * When a batch finsihes processing, we want to request one more batch from the server. But by @@ -138,7 +139,7 @@ private class StreamingPullResponseObserver */ ClientCallStreamObserver thisRequestObserver; - StreamingPullResponseObserver(SettableFuture errorFuture) { + StreamingPullResponseObserver(SettableApiFuture errorFuture) { this.errorFuture = errorFuture; } @@ -186,7 +187,7 @@ public void onCompleted() { } private void initialize() { - final SettableFuture errorFuture = SettableFuture.create(); + final SettableApiFuture errorFuture = SettableApiFuture.create(); final ClientResponseObserver responseObserver = new StreamingPullResponseObserver(errorFuture); final ClientCallStreamObserver requestObserver = @@ -215,9 +216,9 @@ private void initialize() { lock.unlock(); } - Futures.addCallback( + ApiFutures.addCallback( errorFuture, - new FutureCallback() { + new ApiFutureCallback() { @Override public void onSuccess(@Nullable Void result) { if (!isAlive()) { @@ -260,7 +261,8 @@ public void run() { backoffMillis, TimeUnit.MILLISECONDS); } - }); + }, + MoreExecutors.directExecutor()); } private boolean isAlive() { From eba026c44853982edcda7bd0397a3c999b59a284 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 20 Sep 2018 13:37:58 -0700 Subject: [PATCH 0059/2363] Release 1.45.0/0.63.0 (#3710) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index a6956093f8a3..09ad3034dff2 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.44.0 + 1.45.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.44.0' +compile 'com.google.cloud:google-cloud-pubsub:1.45.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.45.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 482e031283b0..3f4f9ba57126 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.44.1-SNAPSHOT + 1.45.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.62.1-alpha-SNAPSHOT + 0.63.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1b491a1a677a..7dd267483f71 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.26.1-SNAPSHOT + 1.27.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.27.1-SNAPSHOT + 0.28.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 99df542be817..291da0eac748 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.26.1-SNAPSHOT + 1.27.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.27.1-SNAPSHOT + 0.28.0 From ab24a36b02f337a9b29f24209ea34a7d9ddc7b61 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 20 Sep 2018 16:27:16 -0700 Subject: [PATCH 0060/2363] Regenerate clients (#3713) * Release 1.45.0/0.63.0 * Regenerate clients --- .../google/cloud/pubsub/v1/stub/PublisherStubSettings.java | 7 ++++++- .../cloud/pubsub/v1/stub/SubscriberStubSettings.java | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 28fc83d29f3d..287fbf8a8864 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -471,6 +471,12 @@ public static class Builder extends StubSettings.BuildernewArrayList( StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "http_get", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "one_plus_delivery", ImmutableSet.copyOf( @@ -482,7 +488,6 @@ public static class Builder extends StubSettings.BuildernewArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 3819052d18c8..a53c9a141dd0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -475,7 +475,6 @@ public static class Builder extends StubSettings.BuildernewArrayList( StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "pull", ImmutableSet.copyOf( @@ -485,6 +484,12 @@ public static class Builder extends StubSettings.BuildernewArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } From 4e29578c305874e65c2fa0ccfbfc852d8284e10e Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 20 Sep 2018 17:22:25 -0700 Subject: [PATCH 0061/2363] Bump version to 0.63.1-beta-SNAPSHOT (#3714) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3f4f9ba57126..8480bc073e4c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.45.0 + 1.45.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.63.0-alpha + 0.63.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7dd267483f71..f58e4c437a45 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.27.0 + 1.27.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.28.0 + 0.28.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 291da0eac748..654888745e5b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.27.0 + 1.27.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.28.0 + 0.28.1-SNAPSHOT From 13a2b96e7358f2251b9880fdaf6729df9fd2980f Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 27 Sep 2018 12:20:32 -0700 Subject: [PATCH 0062/2363] Release 1.46.0/0.64.0 (#3742) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 09ad3034dff2..640ef4e25d92 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.45.0 + 1.46.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.45.0' +compile 'com.google.cloud:google-cloud-pubsub:1.46.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.46.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8480bc073e4c..6380bb7012a3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.45.1-SNAPSHOT + 1.46.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.63.1-alpha-SNAPSHOT + 0.64.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f58e4c437a45..0a645b8f920e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.27.1-SNAPSHOT + 1.28.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.28.1-SNAPSHOT + 0.29.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 654888745e5b..904c04913734 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.27.1-SNAPSHOT + 1.28.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.28.1-SNAPSHOT + 0.29.0 From ebe36b096d20d6e2fa9b099de167c6cf07f9c551 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 27 Sep 2018 13:54:34 -0700 Subject: [PATCH 0063/2363] Bump to next snapshot version (#3744) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6380bb7012a3..838e37f34559 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.46.0 + 1.46.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.64.0-alpha + 0.64.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0a645b8f920e..e365e18bc342 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.28.0 + 1.28.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.29.0 + 0.29.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 904c04913734..c4517059bac0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.28.0 + 1.28.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.29.0 + 0.29.1-SNAPSHOT From f900e42a7c08f3b09e088f20506d662132ff724f Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 3 Oct 2018 15:22:45 -0700 Subject: [PATCH 0064/2363] Regenerate clients (#3766) --- .../google/cloud/pubsub/v1/SubscriptionAdminClient.java | 8 ++++---- .../java/com/google/cloud/pubsub/v1/TopicAdminClient.java | 8 ++++---- .../cloud/pubsub/v1/stub/SubscriberStubSettings.java | 3 +-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 6657e5f80d41..95d706e5083f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -461,7 +461,7 @@ public final Subscription getSubscription(String subscription) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final Subscription getSubscription(GetSubscriptionRequest request) { + public final Subscription getSubscription(GetSubscriptionRequest request) { return getSubscriptionCallable().call(request); } @@ -764,7 +764,7 @@ public final void deleteSubscription(String subscription) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final void deleteSubscription(DeleteSubscriptionRequest request) { + public final void deleteSubscription(DeleteSubscriptionRequest request) { deleteSubscriptionCallable().call(request); } @@ -1823,7 +1823,7 @@ public final void deleteSnapshot(String snapshot) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final void deleteSnapshot(DeleteSnapshotRequest request) { + public final void deleteSnapshot(DeleteSnapshotRequest request) { deleteSnapshotCallable().call(request); } @@ -2029,7 +2029,7 @@ public final Policy getIamPolicy(String resource) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final Policy getIamPolicy(GetIamPolicyRequest request) { + public final Policy getIamPolicy(GetIamPolicyRequest request) { return getIamPolicyCallable().call(request); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 66b45a50d291..bb6e8b7aafc2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -248,7 +248,7 @@ public final Topic createTopic(String name) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final Topic createTopic(Topic request) { + public final Topic createTopic(Topic request) { return createTopicCallable().call(request); } @@ -517,7 +517,7 @@ public final Topic getTopic(String topic) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final Topic getTopic(GetTopicRequest request) { + public final Topic getTopic(GetTopicRequest request) { return getTopicCallable().call(request); } @@ -882,7 +882,7 @@ public final void deleteTopic(String topic) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final void deleteTopic(DeleteTopicRequest request) { + public final void deleteTopic(DeleteTopicRequest request) { deleteTopicCallable().call(request); } @@ -1034,7 +1034,7 @@ public final Policy getIamPolicy(String resource) { * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - private final Policy getIamPolicy(GetIamPolicyRequest request) { + public final Policy getIamPolicy(GetIamPolicyRequest request) { return getIamPolicyCallable().call(request); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index a53c9a141dd0..9d683ee79520 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -479,7 +479,6 @@ public static class Builder extends StubSettings.BuildernewArrayList( - StatusCode.Code.CANCELLED, StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.INTERNAL, StatusCode.Code.RESOURCE_EXHAUSTED, @@ -643,7 +642,7 @@ private static Builder initDefaults(Builder builder) { builder .acknowledgeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("messaging")); builder From 54286070e5daeed16340382a81bdc1b71a1f7d8f Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 4 Oct 2018 10:46:45 -0700 Subject: [PATCH 0065/2363] Release 1.47.0/0.65.0 (#3767) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 640ef4e25d92..fdfd432fc114 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -21,16 +21,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.46.0 + 1.47.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.46.0' +compile 'com.google.cloud:google-cloud-pubsub:1.47.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.47.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 838e37f34559..65202c3a6a48 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.46.1-SNAPSHOT + 1.47.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.64.1-alpha-SNAPSHOT + 0.65.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e365e18bc342..9cb6ff542e3f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.28.1-SNAPSHOT + 1.29.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.29.1-SNAPSHOT + 0.30.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c4517059bac0..ecf8e34ad7f6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.28.1-SNAPSHOT + 1.29.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.29.1-SNAPSHOT + 0.30.0 From 8aa79fbb18528b66d1e3f15a6d59c1c092fbbc92 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 4 Oct 2018 11:25:08 -0700 Subject: [PATCH 0066/2363] Bump to next snapshot version (#3768) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 65202c3a6a48..a7c39c040721 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.47.0 + 1.47.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.65.0-alpha + 0.65.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9cb6ff542e3f..b9bc731c0313 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.29.0 + 1.29.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.30.0 + 0.30.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ecf8e34ad7f6..671285c99f72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.29.0 + 1.29.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.30.0 + 0.30.1-SNAPSHOT From 0033873f2ee3b0b397fc0d928a11a1a6ba31c75d Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 4 Oct 2018 13:18:15 -0700 Subject: [PATCH 0067/2363] Remove CircleCI status, coveralls, and version eye badges (#3771) --- java-pubsub/google-cloud-pubsub/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index fdfd432fc114..b915a50647c0 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -3,11 +3,9 @@ Google Cloud Java Client for Pub/Sub Java idiomatic client for [Google Cloud Pub/Sub][cloud-pubsub]. -[![CircleCI](https://circleci.com/gh/GoogleCloudPlatform/google-cloud-java/tree/master.svg?style=shield)](https://circleci.com/gh/GoogleCloudPlatform/google-cloud-java/tree/master) -[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/google-cloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/google-cloud-java?branch=master) +[![Kokoro CI](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.svg)](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.html) [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg)]( https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg) [![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/google-cloud-java) -[![Dependency Status](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772/badge.svg?style=flat)](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772) - [Product Documentation][pubsub-product-docs] - [Client Library Documentation][pubsub-client-lib-docs] From 9df7897c1acaf180c5b823fd41ff4e1f77df680a Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 5 Oct 2018 11:20:33 -0700 Subject: [PATCH 0068/2363] Add synthtool scripts (#3765) * Add assets synth script * Add automl synth script * Add BigQueryDataTransfer synth * Add BigTable synth * Add BigTableAdmin synth * Add container synth * Add containeranalysis synth * Add dataproc synth * Add datastore synth * Add dialogflow synth * Add dlp synth * Add errorreporting synth * Add firestore synth * Add iot synth * Add kms synth * Add language synth * Add logging synth * Add monitoring synth * Add oslogin synth * Add pubsub synth * Add redis synth * Add spanner synth * Add speech synth * Add tasks synth * Add texttospeech synth * Add trace synth * Add videointelligence synth * Add vision synth * Add websecurityscanner synth * Add compute synth * Remove unnecessary import * Remove compute synth and remove excess logging statements --- java-pubsub/google-cloud-pubsub/synth.py | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 java-pubsub/google-cloud-pubsub/synth.py diff --git a/java-pubsub/google-cloud-pubsub/synth.py b/java-pubsub/google-cloud-pubsub/synth.py new file mode 100644 index 000000000000..cadac3a3c528 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/synth.py @@ -0,0 +1,31 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""This script is used to synthesize generated parts of this library.""" + +import synthtool as s +import synthtool.gcp as gcp + +gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() + +library = gapic.java_library( + service='pubsub', + version='v1', + config_path='/google/pubsub/artman_pubsub.yaml', + artman_output_name='') + +s.copy(library / 'gapic-google-cloud-pubsub-v1/src', 'src') +s.copy(library / 'grpc-google-cloud-pubsub-v1/src', '../../google-api-grpc/grpc-google-cloud-pubsub-v1/src') +s.copy(library / 'proto-google-cloud-pubsub-v1/src', '../../google-api-grpc/proto-google-cloud-pubsub-v1/src') From 808a6beb8e5d1ce173e390912036b4892f464ef3 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 5 Oct 2018 18:19:23 -0700 Subject: [PATCH 0069/2363] Release google-cloud-java v0.66.0 (#3782) * Release v0.66.0 * Fix javadoc in firestore CollectionReference --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index b915a50647c0..73c371eb9b93 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.47.0 + 1.48.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.47.0' +compile 'com.google.cloud:google-cloud-pubsub:1.48.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.48.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a7c39c040721..577a405fa5bc 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.47.1-SNAPSHOT + 1.48.0 jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.65.1-alpha-SNAPSHOT + 0.66.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b9bc731c0313..a7b22d896bab 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.29.1-SNAPSHOT + 1.30.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.30.1-SNAPSHOT + 0.31.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 671285c99f72..fc9425e46165 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.29.1-SNAPSHOT + 1.30.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.30.1-SNAPSHOT + 0.31.0 From bc390bf42b6ab67ab3ff2418e38d3cef9848bc3f Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Sat, 6 Oct 2018 11:45:23 -0700 Subject: [PATCH 0070/2363] Release v0.66.1-SNAPSHOT (#3784) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 577a405fa5bc..c610ae6bbc79 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.48.0 + 1.48.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.66.0-alpha + 0.66.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a7b22d896bab..d9a579053841 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.30.0 + 1.30.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.31.0 + 0.31.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index fc9425e46165..90cfd065521c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.30.0 + 1.30.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.31.0 + 0.31.1-SNAPSHOT From af53b3f1a2a6e0df065ef3b72819e4b55e1d22e3 Mon Sep 17 00:00:00 2001 From: elisheva-qlogic <43041115+elisheva-qlogic@users.noreply.github.com> Date: Tue, 9 Oct 2018 16:32:34 -0400 Subject: [PATCH 0071/2363] Follow these instructions link corrected (#3790) --- java-pubsub/google-cloud-pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 73c371eb9b93..a95747c76cab 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -60,7 +60,7 @@ For this tutorial, you will need a [Google Developers Console](https://console.developers.google.com/) project with the Pub/Sub API enabled. You will need to [enable billing](https://support.google.com/cloud/answer/6158867?hl=en) to use Google Cloud Pub/Sub. -[Follow these instructions](https://cloud.google.com/docs/authentication#preparation) to get your +[Follow these instructions](https://cloud.google.com/resource-manager/docs/creating-managing-projects) to get your project set up. You will also need to set up the local development environment by [installing the Google Cloud SDK](https://cloud.google.com/sdk/) and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. From d9743d494276dd19808169010907687bd49af147 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 10 Oct 2018 12:06:24 -0700 Subject: [PATCH 0072/2363] Fix urls from GoogleCloudPlatform org to googleapis org (#3793) * Fix urls from GoogleCloudPlatform org to googleapis org * Fix typo --- java-pubsub/google-cloud-pubsub/README.md | 16 ++++++++-------- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index a95747c76cab..018e919f7804 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -35,7 +35,7 @@ libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.48.0" Authentication -------------- -See the [Authentication](https://github.com/GoogleCloudPlatform/google-cloud-java#authentication) section in the base directory's README. +See the [Authentication](https://github.com/googleapis/google-cloud-java#authentication) section in the base directory's README. About Google Cloud Pub/Sub -------------------------- @@ -77,7 +77,7 @@ simplest way to authenticate is to use These credentials are automatically inferred from your environment. For other authentication options, see the -[Authentication](https://github.com/GoogleCloudPlatform/google-cloud-java#authentication) page. +[Authentication](https://github.com/googleapis/google-cloud-java#authentication) page. #### Creating a topic With Pub/Sub you can create topics. A topic is a named resource to which messages are sent by @@ -222,7 +222,7 @@ Contributing Contributions to this library are always welcome and highly encouraged. -See `google-cloud`'s [CONTRIBUTING] documentation and the [shared documentation](https://github.com/GoogleCloudPlatform/gcloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started. +See `google-cloud`'s [CONTRIBUTING] documentation and the [shared documentation](https://github.com/googleapis/google-cloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. @@ -232,12 +232,12 @@ License Apache 2.0 - See [LICENSE] for more information. -[CONTRIBUTING]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CONTRIBUTING.md -[code-of-conduct]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[LICENSE]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/LICENSE -[TESTING]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/TESTING.md#testing-code-that-uses-pubsub +[CONTRIBUTING]:https://github.com/googleapis/google-cloud-java/blob/master/CONTRIBUTING.md +[code-of-conduct]:https://github.com/googleapis/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[LICENSE]: https://github.com/googleapis/google-cloud-java/blob/master/LICENSE +[TESTING]: https://github.com/googleapis/google-cloud-java/blob/master/TESTING.md#testing-code-that-uses-pubsub [cloud-pubsub]: https://cloud.google.com/pubsub/ [cloud-pubsub-quickstart]: https://cloud.google.com/pubsub/quickstart-console#before-you-begin [pubsub-product-docs]: https://cloud.google.com/pubsub/docs/ -[pubsub-client-lib-docs]: https://googlecloudplatform.github.io/google-cloud-java/google-cloud-clients/apidocs/index.html?com/google/cloud/pubsub/v1/package-summary.html +[pubsub-client-lib-docs]: https://googleapis.github.io/google-cloud-java/google-cloud-clients/apidocs/index.html?com/google/cloud/pubsub/v1/package-summary.html diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c610ae6bbc79..924cbc6d3149 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -5,7 +5,7 @@ 1.48.1-SNAPSHOT jar Google Cloud Pub/Sub - https://github.com/GoogleCloudPlatform/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub + https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub Java idiomatic client for Google Cloud Pub/Sub. From 9c75b98d02b05b8b40b7375c0b661c67afeff8b4 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 11 Oct 2018 09:50:15 -0700 Subject: [PATCH 0073/2363] Release v0.67.0 (#3807) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 018e919f7804..4068ab2bf0c0 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.48.0 + 1.49.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.48.0' +compile 'com.google.cloud:google-cloud-pubsub:1.49.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.49.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 924cbc6d3149..1b6107641652 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.48.1-SNAPSHOT + 1.49.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.66.1-alpha-SNAPSHOT + 0.67.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d9a579053841..069c53a93488 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.30.1-SNAPSHOT + 1.31.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.31.1-SNAPSHOT + 0.32.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 90cfd065521c..d8eb3ec97e0f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.30.1-SNAPSHOT + 1.31.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.31.1-SNAPSHOT + 0.32.0 From 79375792849701e149e7b509c796a536fe37d8a5 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 11 Oct 2018 13:31:41 -0700 Subject: [PATCH 0074/2363] Bump next snapshot (#3810) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1b6107641652..9baf5374061c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.49.0 + 1.49.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.67.0-alpha + 0.67.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 069c53a93488..7e68108c0131 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.31.0 + 1.31.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.32.0 + 0.32.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d8eb3ec97e0f..3a12c2d5850a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.31.0 + 1.31.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.32.0 + 0.32.1-SNAPSHOT From 92fd50eb66e06c3cbdfb11ab7e0dd04668feef51 Mon Sep 17 00:00:00 2001 From: DPE bot Date: Tue, 16 Oct 2018 09:46:35 -0700 Subject: [PATCH 0075/2363] Re-generate library using google-cloud-clients/google-cloud-pubsub/synth.py (#3824) --- .../pubsub/v1/SubscriptionAdminClient.java | 96 ++- .../cloud/pubsub/v1/TopicAdminClient.java | 24 +- .../com/google/pubsub/v1/PublisherGrpc.java | 12 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 20 +- .../pubsub/v1/CreateSnapshotRequest.java | 43 +- .../v1/CreateSnapshotRequestOrBuilder.java | 16 +- .../google/pubsub/v1/ExpirationPolicy.java | 713 ++++++++++++++++++ .../pubsub/v1/ExpirationPolicyOrBuilder.java | 49 ++ .../pubsub/v1/ListSnapshotsRequest.java | 28 +- .../v1/ListSnapshotsRequestOrBuilder.java | 8 +- .../pubsub/v1/ListSubscriptionsRequest.java | 28 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 8 +- .../google/pubsub/v1/ListTopicsRequest.java | 28 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 8 +- .../com/google/pubsub/v1/PubsubMessage.java | 24 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 3 +- .../com/google/pubsub/v1/PubsubProto.java | 356 ++++----- .../com/google/pubsub/v1/PullRequest.java | 16 +- .../pubsub/v1/PullRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/PullResponse.java | 184 ++--- .../pubsub/v1/PullResponseOrBuilder.java | 40 +- .../com/google/pubsub/v1/SeekResponse.java | 8 + .../java/com/google/pubsub/v1/Snapshot.java | 22 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 10 +- .../com/google/pubsub/v1/Subscription.java | 347 ++++++++- .../pubsub/v1/SubscriptionOrBuilder.java | 59 +- .../main/java/com/google/pubsub/v1/Topic.java | 22 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 10 +- .../main/proto/google/pubsub/v1/pubsub.proto | 82 +- 29 files changed, 1720 insertions(+), 548 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 95d706e5083f..09e701e1b7c8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -567,8 +567,8 @@ public final UnaryCallable updateSubscr * } * * - * @param project The name of the cloud project that subscriptions belong to. Format is - * `projects/{project}`. + * @param project The name of the project in which to list subscriptions. Format is + * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName project) { @@ -594,8 +594,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec * } * * - * @param project The name of the cloud project that subscriptions belong to. Format is - * `projects/{project}`. + * @param project The name of the project in which to list subscriptions. Format is + * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubscriptionsPagedResponse listSubscriptions(String project) { @@ -1058,9 +1058,8 @@ public final UnaryCallable deleteSubscriptionC // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Pulls messages from the server. Returns an empty list if there are no messages available in the - * backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests - * pending for the given subscription. + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. * *

Sample code: * @@ -1078,8 +1077,7 @@ public final UnaryCallable deleteSubscriptionC * @param returnImmediately 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. The client may cancel the request if it does not wish to wait - * any longer for the response. + * than returning no messages. * @param maxMessages The maximum number of messages returned for this request. The Pub/Sub system * may return fewer than the number specified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1098,9 +1096,8 @@ public final UnaryCallable deleteSubscriptionC // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Pulls messages from the server. Returns an empty list if there are no messages available in the - * backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests - * pending for the given subscription. + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. * *

Sample code: * @@ -1118,8 +1115,7 @@ public final UnaryCallable deleteSubscriptionC * @param returnImmediately 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. The client may cancel the request if it does not wish to wait - * any longer for the response. + * than returning no messages. * @param maxMessages The maximum number of messages returned for this request. The Pub/Sub system * may return fewer than the number specified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1138,9 +1134,8 @@ public final UnaryCallable deleteSubscriptionC // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Pulls messages from the server. Returns an empty list if there are no messages available in the - * backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests - * pending for the given subscription. + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. * *

Sample code: * @@ -1165,9 +1160,8 @@ public final UnaryCallable deleteSubscriptionC // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Pulls messages from the server. Returns an empty list if there are no messages available in the - * backlog. The server may return `UNAVAILABLE` if there are too many concurrent pull requests - * pending for the given subscription. + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. * *

Sample code: * @@ -1373,8 +1367,8 @@ public final UnaryCallable modifyPushConfigCalla * } * * - * @param project The name of the cloud project that snapshots belong to. Format is - * `projects/{project}`. + * @param project The name of the project in which to list snapshots. Format is + * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { @@ -1402,8 +1396,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { * } * * - * @param project The name of the cloud project that snapshots belong to. Format is - * `projects/{project}`. + * @param project The name of the project in which to list snapshots. Format is + * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSnapshotsPagedResponse listSnapshots(String project) { @@ -1503,12 +1497,12 @@ public final UnaryCallable listSnap * Creates a snapshot from the requested subscription.<br><br> * <b>ALPHA:</b> This feature is part of an 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. 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 + * any SLA or deprecation policy.<br><br> 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated * in the returned Snapshot object. Note that for REST API requests, you must specify a name in * the request. @@ -1525,7 +1519,8 @@ public final UnaryCallable listSnap * * @param name Optional 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. Format is + * subscription. Note that for REST API requests, you must specify a name. See the <a + * href="/pubsub/docs/admin#resource_names">resource name rules</a>. Format is * `projects/{project}/snapshots/{snap}`. * @param subscription The subscription whose backlog the snapshot retains. Specifically, the * created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. @@ -1551,12 +1546,12 @@ public final Snapshot createSnapshot( * Creates a snapshot from the requested subscription.<br><br> * <b>ALPHA:</b> This feature is part of an 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. 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 + * any SLA or deprecation policy.<br><br> 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated * in the returned Snapshot object. Note that for REST API requests, you must specify a name in * the request. @@ -1573,7 +1568,8 @@ public final Snapshot createSnapshot( * * @param name Optional 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. Format is + * subscription. Note that for REST API requests, you must specify a name. See the <a + * href="/pubsub/docs/admin#resource_names">resource name rules</a>. Format is * `projects/{project}/snapshots/{snap}`. * @param subscription The subscription whose backlog the snapshot retains. Specifically, the * created snapshot is guaranteed to retain: (a) The existing backlog on the subscription. @@ -1595,12 +1591,12 @@ public final Snapshot createSnapshot(String name, String subscription) { * Creates a snapshot from the requested subscription.<br><br> * <b>ALPHA:</b> This feature is part of an 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. 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 + * any SLA or deprecation policy.<br><br> 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated * in the returned Snapshot object. Note that for REST API requests, you must specify a name in * the request. @@ -1631,12 +1627,12 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { * Creates a snapshot from the requested subscription.<br><br> * <b>ALPHA:</b> This feature is part of an 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. 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 + * any SLA or deprecation policy.<br><br> 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated * in the returned Snapshot object. Note that for REST API requests, you must specify a name in * the request. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index bb6e8b7aafc2..40311e25609b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -326,9 +326,7 @@ public final UnaryCallable updateTopicCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The - * message payload must not be empty; it must contain either a non-empty data field, or at least - * one attribute. + * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. * *

Sample code: * @@ -362,9 +360,7 @@ public final UnaryCallable updateTopicCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The - * message payload must not be empty; it must contain either a non-empty data field, or at least - * one attribute. + * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. * *

Sample code: * @@ -394,9 +390,7 @@ public final UnaryCallable updateTopicCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The - * message payload must not be empty; it must contain either a non-empty data field, or at least - * one attribute. + * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. * *

Sample code: * @@ -425,9 +419,7 @@ public final UnaryCallable updateTopicCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. The - * message payload must not be empty; it must contain either a non-empty data field, or at least - * one attribute. + * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. * *

Sample code: * @@ -558,8 +550,8 @@ public final UnaryCallable getTopicCallable() { * } * * - * @param project The name of the cloud project that topics belong to. Format is - * `projects/{project}`. + * @param project The name of the project in which to list topics. Format is + * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTopicsPagedResponse listTopics(ProjectName project) { @@ -585,8 +577,8 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) { * } * * - * @param project The name of the cloud project that topics belong to. Format is - * `projects/{project}`. + * @param project The name of the project in which to list topics. Format is + * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTopicsPagedResponse listTopics(String project) { diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 663fbfbbeca6..4346349b23b2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -384,8 +384,7 @@ public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, /** *

      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
-     * does not exist. The message payload must not be empty; it must contain
-     *  either a non-empty data field, or at least one attribute.
+     * does not exist.
      * 
*/ public void publish(com.google.pubsub.v1.PublishRequest request, @@ -561,8 +560,7 @@ public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, /** *
      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
-     * does not exist. The message payload must not be empty; it must contain
-     *  either a non-empty data field, or at least one attribute.
+     * does not exist.
      * 
*/ public void publish(com.google.pubsub.v1.PublishRequest request, @@ -681,8 +679,7 @@ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRe /** *
      * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
-     * does not exist. The message payload must not be empty; it must contain
-     *  either a non-empty data field, or at least one attribute.
+     * does not exist.
      * 
*/ public com.google.pubsub.v1.PublishResponse publish(com.google.pubsub.v1.PublishRequest request) { @@ -797,8 +794,7 @@ public com.google.common.util.concurrent.ListenableFuture * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic - * does not exist. The message payload must not be empty; it must contain - * either a non-empty data field, or at least one attribute. + * does not exist. * */ public com.google.common.util.concurrent.ListenableFuture publish( diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 672479db1a01..c0766dcce678 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -752,8 +752,7 @@ public void acknowledge(com.google.pubsub.v1.AcknowledgeRequest request, /** *
-     * Pulls messages from the server. Returns an empty list if there are no
-     * messages available in the backlog. The server may return `UNAVAILABLE` if
+     * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
@@ -824,7 +823,7 @@ public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, * Creates a snapshot from the requested subscription.<br><br> * <b>ALPHA:</b> This feature is part of an 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. + * use. It is not subject to any SLA or deprecation policy.<br><br> * 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 @@ -1131,8 +1130,7 @@ public void acknowledge(com.google.pubsub.v1.AcknowledgeRequest request, /** *
-     * Pulls messages from the server. Returns an empty list if there are no
-     * messages available in the backlog. The server may return `UNAVAILABLE` if
+     * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
@@ -1208,7 +1206,7 @@ public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, * Creates a snapshot from the requested subscription.<br><br> * <b>ALPHA:</b> This feature is part of an 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. + * use. It is not subject to any SLA or deprecation policy.<br><br> * 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 @@ -1395,8 +1393,7 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq /** *
-     * Pulls messages from the server. Returns an empty list if there are no
-     * messages available in the backlog. The server may return `UNAVAILABLE` if
+     * Pulls messages from the server. The server may return `UNAVAILABLE` if
      * there are too many concurrent pull requests pending for the given
      * subscription.
      * 
@@ -1451,7 +1448,7 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(com.google.pubsu * Creates a snapshot from the requested subscription.<br><br> * <b>ALPHA:</b> This feature is part of an 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. + * use. It is not subject to any SLA or deprecation policy.<br><br> * 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 @@ -1641,8 +1638,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Pulls messages from the server. Returns an empty list if there are no - * messages available in the backlog. The server may return `UNAVAILABLE` if + * Pulls messages from the server. The server may return `UNAVAILABLE` if * there are too many concurrent pull requests pending for the given * subscription. * @@ -1701,7 +1697,7 @@ public com.google.common.util.concurrent.ListenableFuture * @@ -151,7 +152,8 @@ public java.lang.String getName() { * Optional 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. + * Note that for REST API requests, you must specify a name. See the + * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. * * @@ -257,7 +259,7 @@ public int getLabelsCount() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 3; @@ -277,7 +279,7 @@ public java.util.Map getLabels() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 3; @@ -288,7 +290,7 @@ public java.util.Map getLabelsMap() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 3; @@ -304,7 +306,7 @@ public java.lang.String getLabelsOrDefault( } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 3; @@ -707,7 +709,8 @@ public Builder mergeFrom( * Optional 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. + * Note that for REST API requests, you must specify a name. See the + * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. * * @@ -730,7 +733,8 @@ public java.lang.String getName() { * Optional 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. + * Note that for REST API requests, you must specify a name. See the + * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. * * @@ -754,7 +758,8 @@ public java.lang.String getName() { * Optional 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. + * Note that for REST API requests, you must specify a name. See the + * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. * * @@ -775,7 +780,8 @@ public Builder setName( * Optional 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. + * Note that for REST API requests, you must specify a name. See the + * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. * * @@ -792,7 +798,8 @@ public Builder clearName() { * Optional 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. + * Note that for REST API requests, you must specify a name. See the + * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. * * @@ -967,7 +974,7 @@ public int getLabelsCount() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 3; @@ -987,7 +994,7 @@ public java.util.Map getLabels() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 3; @@ -998,7 +1005,7 @@ public java.util.Map getLabelsMap() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 3; @@ -1014,7 +1021,7 @@ public java.lang.String getLabelsOrDefault( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 3; @@ -1038,7 +1045,7 @@ public Builder clearLabels() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 3; @@ -1061,7 +1068,7 @@ public Builder removeLabels( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 3; @@ -1077,7 +1084,7 @@ public Builder putLabels( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 1d7b101782d2..a59c244fbe01 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -12,7 +12,8 @@ public interface CreateSnapshotRequestOrBuilder extends * Optional 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. + * Note that for REST API requests, you must specify a name. See the + * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. * * @@ -24,7 +25,8 @@ public interface CreateSnapshotRequestOrBuilder extends * Optional 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. + * Note that for REST API requests, you must specify a name. See the + * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. * * @@ -69,7 +71,7 @@ public interface CreateSnapshotRequestOrBuilder extends /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 3; @@ -77,7 +79,7 @@ public interface CreateSnapshotRequestOrBuilder extends int getLabelsCount(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 3; @@ -92,7 +94,7 @@ boolean containsLabels( getLabels(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 3; @@ -101,7 +103,7 @@ boolean containsLabels( getLabelsMap(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 3; @@ -112,7 +114,7 @@ java.lang.String getLabelsOrDefault( java.lang.String defaultValue); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java new file mode 100644 index 000000000000..cdc4effc0cc6 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -0,0 +1,713 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + *
+ * A policy that specifies the conditions for resource expiration (i.e.,
+ * automatic resource deletion).
+ * 
+ * + * Protobuf type {@code google.pubsub.v1.ExpirationPolicy} + */ +public final class ExpirationPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ExpirationPolicy) + ExpirationPolicyOrBuilder { +private static final long serialVersionUID = 0L; + // Use ExpirationPolicy.newBuilder() to construct. + private ExpirationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExpirationPolicy() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExpirationPolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (ttl_ != null) { + subBuilder = ttl_.toBuilder(); + } + ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(ttl_); + ttl_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ExpirationPolicy.class, com.google.pubsub.v1.ExpirationPolicy.Builder.class); + } + + public static final int TTL_FIELD_NUMBER = 1; + private com.google.protobuf.Duration ttl_; + /** + *
+   * 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 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.
+   * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public boolean hasTtl() { + return ttl_ != null; + } + /** + *
+   * 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 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.
+   * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public com.google.protobuf.Duration getTtl() { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + /** + *
+   * 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 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.
+   * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + return getTtl(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (ttl_ != null) { + output.writeMessage(1, getTtl()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ttl_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTtl()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ExpirationPolicy)) { + return super.equals(obj); + } + com.google.pubsub.v1.ExpirationPolicy other = (com.google.pubsub.v1.ExpirationPolicy) obj; + + boolean result = true; + result = result && (hasTtl() == other.hasTtl()); + if (hasTtl()) { + result = result && getTtl() + .equals(other.getTtl()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTtl()) { + hash = (37 * hash) + TTL_FIELD_NUMBER; + hash = (53 * hash) + getTtl().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ExpirationPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ExpirationPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ExpirationPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ExpirationPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ExpirationPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.pubsub.v1.ExpirationPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.pubsub.v1.ExpirationPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ExpirationPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ExpirationPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ExpirationPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.pubsub.v1.ExpirationPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.pubsub.v1.ExpirationPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.pubsub.v1.ExpirationPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * A policy that specifies the conditions for resource expiration (i.e.,
+   * automatic resource deletion).
+   * 
+ * + * Protobuf type {@code google.pubsub.v1.ExpirationPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ExpirationPolicy) + com.google.pubsub.v1.ExpirationPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ExpirationPolicy.class, com.google.pubsub.v1.ExpirationPolicy.Builder.class); + } + + // Construct using com.google.pubsub.v1.ExpirationPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (ttlBuilder_ == null) { + ttl_ = null; + } else { + ttl_ = null; + ttlBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.ExpirationPolicy getDefaultInstanceForType() { + return com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.ExpirationPolicy build() { + com.google.pubsub.v1.ExpirationPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.ExpirationPolicy buildPartial() { + com.google.pubsub.v1.ExpirationPolicy result = new com.google.pubsub.v1.ExpirationPolicy(this); + if (ttlBuilder_ == null) { + result.ttl_ = ttl_; + } else { + result.ttl_ = ttlBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ExpirationPolicy) { + return mergeFrom((com.google.pubsub.v1.ExpirationPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ExpirationPolicy other) { + if (other == com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance()) return this; + if (other.hasTtl()) { + mergeTtl(other.getTtl()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ExpirationPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ExpirationPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration ttl_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + /** + *
+     * 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 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.
+     * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public boolean hasTtl() { + return ttlBuilder_ != null || ttl_ != null; + } + /** + *
+     * 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 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.
+     * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public com.google.protobuf.Duration getTtl() { + if (ttlBuilder_ == null) { + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } else { + return ttlBuilder_.getMessage(); + } + } + /** + *
+     * 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 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.
+     * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public Builder setTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ttl_ = value; + onChanged(); + } else { + ttlBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * 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 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.
+     * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public Builder setTtl( + com.google.protobuf.Duration.Builder builderForValue) { + if (ttlBuilder_ == null) { + ttl_ = builderForValue.build(); + onChanged(); + } else { + ttlBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * 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 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.
+     * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public Builder mergeTtl(com.google.protobuf.Duration value) { + if (ttlBuilder_ == null) { + if (ttl_ != null) { + ttl_ = + com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial(); + } else { + ttl_ = value; + } + onChanged(); + } else { + ttlBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * 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 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.
+     * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public Builder clearTtl() { + if (ttlBuilder_ == null) { + ttl_ = null; + onChanged(); + } else { + ttl_ = null; + ttlBuilder_ = null; + } + + return this; + } + /** + *
+     * 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 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.
+     * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public com.google.protobuf.Duration.Builder getTtlBuilder() { + + onChanged(); + return getTtlFieldBuilder().getBuilder(); + } + /** + *
+     * 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 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.
+     * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { + if (ttlBuilder_ != null) { + return ttlBuilder_.getMessageOrBuilder(); + } else { + return ttl_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : ttl_; + } + } + /** + *
+     * 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 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.
+     * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getTtlFieldBuilder() { + if (ttlBuilder_ == null) { + ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTtl(), + getParentForChildren(), + isClean()); + ttl_ = null; + } + return ttlBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ExpirationPolicy) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ExpirationPolicy) + private static final com.google.pubsub.v1.ExpirationPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ExpirationPolicy(); + } + + public static com.google.pubsub.v1.ExpirationPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExpirationPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExpirationPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.ExpirationPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java new file mode 100644 index 000000000000..50e933ce1a70 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface ExpirationPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ExpirationPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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 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.
+   * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + boolean hasTtl(); + /** + *
+   * 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 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.
+   * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + com.google.protobuf.Duration getTtl(); + /** + *
+   * 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 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.
+   * 
+ * + * .google.protobuf.Duration ttl = 1; + */ + com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 395981712496..3ee90f4a74ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -105,8 +105,8 @@ private ListSnapshotsRequest( private volatile java.lang.Object project_; /** *
-   * The name of the cloud project that snapshots belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list snapshots.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; @@ -125,8 +125,8 @@ public java.lang.String getProject() { } /** *
-   * The name of the cloud project that snapshots belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list snapshots.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; @@ -551,8 +551,8 @@ public Builder mergeFrom( private java.lang.Object project_ = ""; /** *
-     * The name of the cloud project that snapshots belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list snapshots.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -571,8 +571,8 @@ public java.lang.String getProject() { } /** *
-     * The name of the cloud project that snapshots belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list snapshots.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -592,8 +592,8 @@ public java.lang.String getProject() { } /** *
-     * The name of the cloud project that snapshots belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list snapshots.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -610,8 +610,8 @@ public Builder setProject( } /** *
-     * The name of the cloud project that snapshots belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list snapshots.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -624,8 +624,8 @@ public Builder clearProject() { } /** *
-     * The name of the cloud project that snapshots belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list snapshots.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index a1c61568c93e..db100530a773 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -9,8 +9,8 @@ public interface ListSnapshotsRequestOrBuilder extends /** *
-   * The name of the cloud project that snapshots belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list snapshots.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; @@ -18,8 +18,8 @@ public interface ListSnapshotsRequestOrBuilder extends java.lang.String getProject(); /** *
-   * The name of the cloud project that snapshots belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list snapshots.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 4bb9f157303a..cacd90ef5fff 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -102,8 +102,8 @@ private ListSubscriptionsRequest( private volatile java.lang.Object project_; /** *
-   * The name of the cloud project that subscriptions belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list subscriptions.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; @@ -122,8 +122,8 @@ public java.lang.String getProject() { } /** *
-   * The name of the cloud project that subscriptions belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list subscriptions.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; @@ -545,8 +545,8 @@ public Builder mergeFrom( private java.lang.Object project_ = ""; /** *
-     * The name of the cloud project that subscriptions belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list subscriptions.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -565,8 +565,8 @@ public java.lang.String getProject() { } /** *
-     * The name of the cloud project that subscriptions belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list subscriptions.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -586,8 +586,8 @@ public java.lang.String getProject() { } /** *
-     * The name of the cloud project that subscriptions belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list subscriptions.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -604,8 +604,8 @@ public Builder setProject( } /** *
-     * The name of the cloud project that subscriptions belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list subscriptions.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -618,8 +618,8 @@ public Builder clearProject() { } /** *
-     * The name of the cloud project that subscriptions belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list subscriptions.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index a527b79c0f1a..680cff7e0c09 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -9,8 +9,8 @@ public interface ListSubscriptionsRequestOrBuilder extends /** *
-   * The name of the cloud project that subscriptions belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list subscriptions.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; @@ -18,8 +18,8 @@ public interface ListSubscriptionsRequestOrBuilder extends java.lang.String getProject(); /** *
-   * The name of the cloud project that subscriptions belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list subscriptions.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 6e0349fb2bf9..df742350386e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -102,8 +102,8 @@ private ListTopicsRequest( private volatile java.lang.Object project_; /** *
-   * The name of the cloud project that topics belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list topics.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; @@ -122,8 +122,8 @@ public java.lang.String getProject() { } /** *
-   * The name of the cloud project that topics belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list topics.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; @@ -545,8 +545,8 @@ public Builder mergeFrom( private java.lang.Object project_ = ""; /** *
-     * The name of the cloud project that topics belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list topics.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -565,8 +565,8 @@ public java.lang.String getProject() { } /** *
-     * The name of the cloud project that topics belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list topics.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -586,8 +586,8 @@ public java.lang.String getProject() { } /** *
-     * The name of the cloud project that topics belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list topics.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -604,8 +604,8 @@ public Builder setProject( } /** *
-     * The name of the cloud project that topics belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list topics.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; @@ -618,8 +618,8 @@ public Builder clearProject() { } /** *
-     * The name of the cloud project that topics belong to.
-     * Format is `projects/{project}`.
+     * The name of the project in which to list topics.
+     * Format is `projects/{project-id}`.
      * 
* * string project = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index b7d977ad9a83..75029fe67701 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -9,8 +9,8 @@ public interface ListTopicsRequestOrBuilder extends /** *
-   * The name of the cloud project that topics belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list topics.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; @@ -18,8 +18,8 @@ public interface ListTopicsRequestOrBuilder extends java.lang.String getProject(); /** *
-   * The name of the cloud project that topics belong to.
-   * Format is `projects/{project}`.
+   * The name of the project in which to list topics.
+   * Format is `projects/{project-id}`.
    * 
* * string project = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index c9bd7aa3d858..cf64a2e9c73e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -5,8 +5,10 @@ /** *
- * A message data and its attributes. The message payload must not be empty;
- * it must contain either a non-empty data field, or at least one attribute.
+ * 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.
+ * See <a href="/pubsub/quotas">Quotas and limits</a> for more information about
+ * message limits.
  * 
* * Protobuf type {@code google.pubsub.v1.PubsubMessage} @@ -135,7 +137,8 @@ protected com.google.protobuf.MapField internalGetMapField( private com.google.protobuf.ByteString data_; /** *
-   * The message payload.
+   * The message data field. If this field is empty, the message must contain
+   * at least one attribute.
    * 
* * bytes data = 1; @@ -529,8 +532,10 @@ protected Builder newBuilderForType( } /** *
-   * A message data and its attributes. The message payload must not be empty;
-   * it must contain either a non-empty data field, or at least one attribute.
+   * 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.
+   * See <a href="/pubsub/quotas">Quotas and limits</a> for more information about
+   * message limits.
    * 
* * Protobuf type {@code google.pubsub.v1.PubsubMessage} @@ -734,7 +739,8 @@ public Builder mergeFrom( private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
-     * The message payload.
+     * The message data field. If this field is empty, the message must contain
+     * at least one attribute.
      * 
* * bytes data = 1; @@ -744,7 +750,8 @@ public com.google.protobuf.ByteString getData() { } /** *
-     * The message payload.
+     * The message data field. If this field is empty, the message must contain
+     * at least one attribute.
      * 
* * bytes data = 1; @@ -760,7 +767,8 @@ public Builder setData(com.google.protobuf.ByteString value) { } /** *
-     * The message payload.
+     * The message data field. If this field is empty, the message must contain
+     * at least one attribute.
      * 
* * bytes data = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index ce0a79744db7..d399c0366d2d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -9,7 +9,8 @@ public interface PubsubMessageOrBuilder extends /** *
-   * The message payload.
+   * The message data field. If this field is empty, the message must contain
+   * at least one attribute.
    * 
* * bytes data = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 31cbf40afb8b..619702a0c749 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -104,6 +104,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PushConfig_descriptor; static final @@ -280,159 +285,162 @@ public static void registerAllExtensions( "_token\030\003 \001(\t\"H\n\032ListTopicSnapshotsRespon" + "se\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token" + "\030\002 \001(\t\"#\n\022DeleteTopicRequest\022\r\n\005topic\030\001 " + - "\001(\t\"\305\002\n\014Subscription\022\014\n\004name\030\001 \001(\t\022\r\n\005to" + + "\001(\t\"\204\003\n\014Subscription\022\014\n\004name\030\001 \001(\t\022\r\n\005to" + "pic\030\002 \001(\t\0221\n\013push_config\030\004 \001(\0132\034.google." + "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec" + "onds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(" + "\010\022=\n\032message_retention_duration\030\010 \001(\0132\031." + "google.protobuf.Duration\022:\n\006labels\030\t \003(\013" + "2*.google.pubsub.v1.Subscription.LabelsE" + - "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\030\002 \001(\t:\0028\001\"\230\001\n\nPushConfig\022\025\n\rpush_endpo" + - "int\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google.p" + - "ubsub.v1.PushConfig.AttributesEntry\0321\n\017A" + - "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(" + - "\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pu" + - "bsubMessage\".\n\026GetSubscriptionRequest\022\024\n" + - "\014subscription\030\001 \001(\t\"\202\001\n\031UpdateSubscripti" + - "onRequest\0224\n\014subscription\030\001 \001(\0132\036.google" + - ".pubsub.v1.Subscription\022/\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMask\"R\n\030List" + - "SubscriptionsRequest\022\017\n\007project\030\001 \001(\t\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031" + - "ListSubscriptionsResponse\0225\n\rsubscriptio" + - "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription" + - "\022\027\n\017next_page_token\030\002 \001(\t\"1\n\031DeleteSubsc" + - "riptionRequest\022\024\n\014subscription\030\001 \001(\t\"b\n\027" + - "ModifyPushConfigRequest\022\024\n\014subscription\030" + - "\001 \001(\t\0221\n\013push_config\030\002 \001(\0132\034.google.pubs" + - "ub.v1.PushConfig\"U\n\013PullRequest\022\024\n\014subsc" + - "ription\030\001 \001(\t\022\032\n\022return_immediately\030\002 \001(" + - "\010\022\024\n\014max_messages\030\003 \001(\005\"L\n\014PullResponse\022" + - "<\n\021received_messages\030\001 \003(\0132!.google.pubs" + - "ub.v1.ReceivedMessage\"_\n\030ModifyAckDeadli" + - "neRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_i" + - "ds\030\004 \003(\t\022\034\n\024ack_deadline_seconds\030\003 \001(\005\";" + - "\n\022AcknowledgeRequest\022\024\n\014subscription\030\001 \001" + - "(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024StreamingPullReq" + - "uest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 " + - "\003(\t\022\037\n\027modify_deadline_seconds\030\003 \003(\005\022\037\n\027" + - "modify_deadline_ack_ids\030\004 \003(\t\022#\n\033stream_" + - "ack_deadline_seconds\030\005 \001(\005\"U\n\025StreamingP" + - "ullResponse\022<\n\021received_messages\030\001 \003(\0132!" + - ".google.pubsub.v1.ReceivedMessage\"\257\001\n\025Cr" + - "eateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014sub" + - "scription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.google" + - ".pubsub.v1.CreateSnapshotRequest.LabelsE" + - "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\030\002 \001(\t:\0028\001\"v\n\025UpdateSnapshotRequest\022,\n\010" + - "snapshot\030\001 \001(\0132\032.google.pubsub.v1.Snapsh" + - "ot\022/\n\013update_mask\030\002 \001(\0132\032.google.protobu" + - "f.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r" + - "\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.goo" + - "gle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&" + - ".google.pubsub.v1.Snapshot.LabelsEntry\032-" + - "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + - "\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010snapshot\030" + - "\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007project" + - "\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + - "\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapsh" + - "ots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n" + - "\017next_page_token\030\002 \001(\t\")\n\025DeleteSnapshot" + - "Request\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest" + - "\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.g" + - "oogle.protobuf.TimestampH\000\022\022\n\010snapshot\030\003" + - " \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2\277\010\n\tPub" + - "lisher\022j\n\013CreateTopic\022\027.google.pubsub.v1" + - ".Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223\002#\032" + - "\036/v1/{name=projects/*/topics/*}:\001*\022}\n\013Up" + - "dateTopic\022$.google.pubsub.v1.UpdateTopic" + - "Request\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002)" + - "2$/v1/{topic.name=projects/*/topics/*}:\001" + - "*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publish" + - "Request\032!.google.pubsub.v1.PublishRespon" + - "se\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" + - "/*}:publish:\001*\022o\n\010GetTopic\022!.google.pubs" + - "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" + - ".Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*/to" + - "pics/*}\022\200\001\n\nListTopics\022#.google.pubsub.v" + - "1.ListTopicsRequest\032$.google.pubsub.v1.L" + - "istTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{project=" + - "projects/*}/topics\022\262\001\n\026ListTopicSubscrip" + - "tions\022/.google.pubsub.v1.ListTopicSubscr" + - "iptionsRequest\0320.google.pubsub.v1.ListTo" + - "picSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/{t" + - "opic=projects/*/topics/*}/subscriptions\022" + - "\242\001\n\022ListTopicSnapshots\022+.google.pubsub.v" + - "1.ListTopicSnapshotsRequest\032,.google.pub" + - "sub.v1.ListTopicSnapshotsResponse\"1\202\323\344\223\002" + - "+\022)/v1/{topic=projects/*/topics/*}/snaps" + - "hots\022t\n\013DeleteTopic\022$.google.pubsub.v1.D" + - "eleteTopicRequest\032\026.google.protobuf.Empt" + - "y\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/" + - "*}2\367\021\n\nSubscriber\022\206\001\n\022CreateSubscription" + - "\022\036.google.pubsub.v1.Subscription\032\036.googl" + - "e.pubsub.v1.Subscription\"0\202\323\344\223\002*\032%/v1/{n" + - "ame=projects/*/subscriptions/*}:\001*\022\222\001\n\017G" + - "etSubscription\022(.google.pubsub.v1.GetSub" + - "scriptionRequest\032\036.google.pubsub.v1.Subs" + - "cription\"5\202\323\344\223\002/\022-/v1/{subscription=proj" + - "ects/*/subscriptions/*}\022\240\001\n\022UpdateSubscr" + - "iption\022+.google.pubsub.v1.UpdateSubscrip" + - "tionRequest\032\036.google.pubsub.v1.Subscript" + - "ion\"=\202\323\344\223\002722/v1/{subscription.name=proj" + - "ects/*/subscriptions/*}:\001*\022\234\001\n\021ListSubsc" + - "riptions\022*.google.pubsub.v1.ListSubscrip" + - "tionsRequest\032+.google.pubsub.v1.ListSubs" + - "criptionsResponse\".\202\323\344\223\002(\022&/v1/{project=" + - "projects/*}/subscriptions\022\220\001\n\022DeleteSubs" + - "cription\022+.google.pubsub.v1.DeleteSubscr" + - "iptionRequest\032\026.google.protobuf.Empty\"5\202" + - "\323\344\223\002/*-/v1/{subscription=projects/*/subs" + - "criptions/*}\022\243\001\n\021ModifyAckDeadline\022*.goo" + - "gle.pubsub.v1.ModifyAckDeadlineRequest\032\026" + - ".google.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{sub" + - "scription=projects/*/subscriptions/*}:mo" + - "difyAckDeadline:\001*\022\221\001\n\013Acknowledge\022$.goo" + - "gle.pubsub.v1.AcknowledgeRequest\032\026.googl" + - "e.protobuf.Empty\"D\202\323\344\223\002>\"9/v1/{subscript" + - "ion=projects/*/subscriptions/*}:acknowle" + - "dge:\001*\022\204\001\n\004Pull\022\035.google.pubsub.v1.PullR" + - "equest\032\036.google.pubsub.v1.PullResponse\"=" + - "\202\323\344\223\0027\"2/v1/{subscription=projects/*/sub" + - "scriptions/*}:pull:\001*\022d\n\rStreamingPull\022&" + - ".google.pubsub.v1.StreamingPullRequest\032\'" + - ".google.pubsub.v1.StreamingPullResponse(" + - "\0010\001\022\240\001\n\020ModifyPushConfig\022).google.pubsub" + - ".v1.ModifyPushConfigRequest\032\026.google.pro" + - "tobuf.Empty\"I\202\323\344\223\002C\">/v1/{subscription=p" + - "rojects/*/subscriptions/*}:modifyPushCon" + - "fig:\001*\022~\n\013GetSnapshot\022$.google.pubsub.v1" + - ".GetSnapshotRequest\032\032.google.pubsub.v1.S" + - "napshot\"-\202\323\344\223\002\'\022%/v1/{snapshot=projects/" + - "*/snapshots/*}\022\214\001\n\rListSnapshots\022&.googl" + - "e.pubsub.v1.ListSnapshotsRequest\032\'.googl" + - "e.pubsub.v1.ListSnapshotsResponse\"*\202\323\344\223\002" + - "$\022\"/v1/{project=projects/*}/snapshots\022\203\001" + - "\n\016CreateSnapshot\022\'.google.pubsub.v1.Crea" + - "teSnapshotRequest\032\032.google.pubsub.v1.Sna" + - "pshot\",\202\323\344\223\002&\032!/v1/{name=projects/*/snap" + - "shots/*}:\001*\022\214\001\n\016UpdateSnapshot\022\'.google." + - "pubsub.v1.UpdateSnapshotRequest\032\032.google" + - ".pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapsh" + - "ot.name=projects/*/snapshots/*}:\001*\022\200\001\n\016D" + - "eleteSnapshot\022\'.google.pubsub.v1.DeleteS" + - "napshotRequest\032\026.google.protobuf.Empty\"-" + - "\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsho" + - "ts/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRe" + - "quest\032\036.google.pubsub.v1.SeekResponse\"=\202" + - "\323\344\223\0027\"2/v1/{subscription=projects/*/subs" + - "criptions/*}:seek:\001*B\222\001\n\024com.google.pubs" + - "ub.v1B\013PubsubProtoP\001Z6google.golang.org/" + - "genproto/googleapis/pubsub/v1;pubsub\370\001\001\252" + - "\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Cloud\\" + - "PubSub\\V1b\006proto3" + "ntry\022=\n\021expiration_policy\030\013 \001(\0132\".google" + + ".pubsub.v1.ExpirationPolicy\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\020Ex" + + "pirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.pro" + + "tobuf.Duration\"\230\001\n\nPushConfig\022\025\n\rpush_en" + + "dpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.googl" + + "e.pubsub.v1.PushConfig.AttributesEntry\0321" + + "\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001" + + " \001(\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1" + + ".PubsubMessage\".\n\026GetSubscriptionRequest" + + "\022\024\n\014subscription\030\001 \001(\t\"\202\001\n\031UpdateSubscri" + + "ptionRequest\0224\n\014subscription\030\001 \001(\0132\036.goo" + + "gle.pubsub.v1.Subscription\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"R\n\030L" + + "istSubscriptionsRequest\022\017\n\007project\030\001 \001(\t" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "k\n\031ListSubscriptionsResponse\0225\n\rsubscrip" + + "tions\030\001 \003(\0132\036.google.pubsub.v1.Subscript" + + "ion\022\027\n\017next_page_token\030\002 \001(\t\"1\n\031DeleteSu" + + "bscriptionRequest\022\024\n\014subscription\030\001 \001(\t\"" + + "b\n\027ModifyPushConfigRequest\022\024\n\014subscripti" + + "on\030\001 \001(\t\0221\n\013push_config\030\002 \001(\0132\034.google.p" + + "ubsub.v1.PushConfig\"U\n\013PullRequest\022\024\n\014su" + + "bscription\030\001 \001(\t\022\032\n\022return_immediately\030\002" + + " \001(\010\022\024\n\014max_messages\030\003 \001(\005\"L\n\014PullRespon" + + "se\022<\n\021received_messages\030\001 \003(\0132!.google.p" + + "ubsub.v1.ReceivedMessage\"_\n\030ModifyAckDea" + + "dlineRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ac" + + "k_ids\030\004 \003(\t\022\034\n\024ack_deadline_seconds\030\003 \001(" + + "\005\";\n\022AcknowledgeRequest\022\024\n\014subscription\030" + + "\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024StreamingPull" + + "Request\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids" + + "\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030\003 \003(\005\022" + + "\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022#\n\033stre" + + "am_ack_deadline_seconds\030\005 \001(\005\"U\n\025Streami" + + "ngPullResponse\022<\n\021received_messages\030\001 \003(" + + "\0132!.google.pubsub.v1.ReceivedMessage\"\257\001\n" + + "\025CreateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014" + + "subscription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.goo" + + "gle.pubsub.v1.CreateSnapshotRequest.Labe" + + "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"v\n\025UpdateSnapshotRequest\022" + + ",\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Sna" + + "pshot\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(" + + "\t\022\r\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032." + + "google.protobuf.Timestamp\0226\n\006labels\030\004 \003(" + + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" + + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010snapsh" + + "ot\030\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007proj" + + "ect\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsna" + + "pshots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot" + + "\022\027\n\017next_page_token\030\002 \001(\t\")\n\025DeleteSnaps" + + "hotRequest\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequ" + + "est\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampH\000\022\022\n\010snapsho" + + "t\030\003 \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2\277\010\n\t" + + "Publisher\022j\n\013CreateTopic\022\027.google.pubsub" + + ".v1.Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223" + + "\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022}\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTo" + + "picRequest\032\027.google.pubsub.v1.Topic\"/\202\323\344" + + "\223\002)2$/v1/{topic.name=projects/*/topics/*" + + "}:\001*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publ" + + "ishRequest\032!.google.pubsub.v1.PublishRes" + + "ponse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/top" + + "ics/*}:publish:\001*\022o\n\010GetTopic\022!.google.p" + + "ubsub.v1.GetTopicRequest\032\027.google.pubsub" + + ".v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*" + + "/topics/*}\022\200\001\n\nListTopics\022#.google.pubsu" + + "b.v1.ListTopicsRequest\032$.google.pubsub.v" + + "1.ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{proje" + + "ct=projects/*}/topics\022\262\001\n\026ListTopicSubsc" + + "riptions\022/.google.pubsub.v1.ListTopicSub" + + "scriptionsRequest\0320.google.pubsub.v1.Lis" + + "tTopicSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1" + + "/{topic=projects/*/topics/*}/subscriptio" + + "ns\022\242\001\n\022ListTopicSnapshots\022+.google.pubsu" + + "b.v1.ListTopicSnapshotsRequest\032,.google." + + "pubsub.v1.ListTopicSnapshotsResponse\"1\202\323" + + "\344\223\002+\022)/v1/{topic=projects/*/topics/*}/sn" + + "apshots\022t\n\013DeleteTopic\022$.google.pubsub.v" + + "1.DeleteTopicRequest\032\026.google.protobuf.E" + + "mpty\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/topi" + + "cs/*}2\371\021\n\nSubscriber\022\206\001\n\022CreateSubscript" + + "ion\022\036.google.pubsub.v1.Subscription\032\036.go" + + "ogle.pubsub.v1.Subscription\"0\202\323\344\223\002*\032%/v1" + + "/{name=projects/*/subscriptions/*}:\001*\022\222\001" + + "\n\017GetSubscription\022(.google.pubsub.v1.Get" + + "SubscriptionRequest\032\036.google.pubsub.v1.S" + + "ubscription\"5\202\323\344\223\002/\022-/v1/{subscription=p" + + "rojects/*/subscriptions/*}\022\240\001\n\022UpdateSub" + + "scription\022+.google.pubsub.v1.UpdateSubsc" + + "riptionRequest\032\036.google.pubsub.v1.Subscr" + + "iption\"=\202\323\344\223\002722/v1/{subscription.name=p" + + "rojects/*/subscriptions/*}:\001*\022\234\001\n\021ListSu" + + "bscriptions\022*.google.pubsub.v1.ListSubsc" + + "riptionsRequest\032+.google.pubsub.v1.ListS" + + "ubscriptionsResponse\".\202\323\344\223\002(\022&/v1/{proje" + + "ct=projects/*}/subscriptions\022\220\001\n\022DeleteS" + + "ubscription\022+.google.pubsub.v1.DeleteSub" + + "scriptionRequest\032\026.google.protobuf.Empty" + + "\"5\202\323\344\223\002/*-/v1/{subscription=projects/*/s" + + "ubscriptions/*}\022\243\001\n\021ModifyAckDeadline\022*." + + "google.pubsub.v1.ModifyAckDeadlineReques" + + "t\032\026.google.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{" + + "subscription=projects/*/subscriptions/*}" + + ":modifyAckDeadline:\001*\022\221\001\n\013Acknowledge\022$." + + "google.pubsub.v1.AcknowledgeRequest\032\026.go" + + "ogle.protobuf.Empty\"D\202\323\344\223\002>\"9/v1/{subscr" + + "iption=projects/*/subscriptions/*}:ackno" + + "wledge:\001*\022\204\001\n\004Pull\022\035.google.pubsub.v1.Pu" + + "llRequest\032\036.google.pubsub.v1.PullRespons" + + "e\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/" + + "subscriptions/*}:pull:\001*\022f\n\rStreamingPul" + + "l\022&.google.pubsub.v1.StreamingPullReques" + + "t\032\'.google.pubsub.v1.StreamingPullRespon" + + "se\"\000(\0010\001\022\240\001\n\020ModifyPushConfig\022).google.p" + + "ubsub.v1.ModifyPushConfigRequest\032\026.googl" + + "e.protobuf.Empty\"I\202\323\344\223\002C\">/v1/{subscript" + + "ion=projects/*/subscriptions/*}:modifyPu" + + "shConfig:\001*\022~\n\013GetSnapshot\022$.google.pubs" + + "ub.v1.GetSnapshotRequest\032\032.google.pubsub" + + ".v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{snapshot=proj" + + "ects/*/snapshots/*}\022\214\001\n\rListSnapshots\022&." + + "google.pubsub.v1.ListSnapshotsRequest\032\'." + + "google.pubsub.v1.ListSnapshotsResponse\"*" + + "\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapsho" + + "ts\022\203\001\n\016CreateSnapshot\022\'.google.pubsub.v1" + + ".CreateSnapshotRequest\032\032.google.pubsub.v" + + "1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=projects/*" + + "/snapshots/*}:\001*\022\214\001\n\016UpdateSnapshot\022\'.go" + + "ogle.pubsub.v1.UpdateSnapshotRequest\032\032.g" + + "oogle.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{s" + + "napshot.name=projects/*/snapshots/*}:\001*\022" + + "\200\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.De" + + "leteSnapshotRequest\032\026.google.protobuf.Em" + + "pty\"-\202\323\344\223\002\'*%/v1/{snapshot=projects/*/sn" + + "apshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.S" + + "eekRequest\032\036.google.pubsub.v1.SeekRespon" + + "se\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*" + + "/subscriptions/*}:seek:\001*B\222\001\n\024com.google" + + ".pubsub.v1B\013PubsubProtoP\001Z6google.golang" + + ".org/genproto/googleapis/pubsub/v1;pubsu" + + "b\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\C" + + "loud\\PubSub\\V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -552,15 +560,21 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, - new java.lang.String[] { "Name", "Topic", "PushConfig", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", "Labels", }); + new java.lang.String[] { "Name", "Topic", "PushConfig", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", "Labels", "ExpirationPolicy", }); internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_PushConfig_descriptor = + internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, + new java.lang.String[] { "Ttl", }); + internal_static_google_pubsub_v1_PushConfig_descriptor = + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -572,85 +586,85 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, new java.lang.String[] { "AckId", "Message", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, new java.lang.String[] { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, new java.lang.String[] { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, new java.lang.String[] { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, new java.lang.String[] { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, new java.lang.String[] { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, new java.lang.String[] { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, new java.lang.String[] { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, new java.lang.String[] { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, new java.lang.String[] { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, new java.lang.String[] { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, new java.lang.String[] { "Subscription", "AckIds", "ModifyDeadlineSeconds", "ModifyDeadlineAckIds", "StreamAckDeadlineSeconds", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, new java.lang.String[] { "ReceivedMessages", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -662,13 +676,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, new java.lang.String[] { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -680,37 +694,37 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, new java.lang.String[] { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, new java.lang.String[] { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, new java.lang.String[] { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, new java.lang.String[] { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, new java.lang.String[] { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 4c1aaa51d06b..4c1605f037e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -148,9 +148,7 @@ public java.lang.String getSubscription() { * 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. The - * client may cancel the request if it does not wish to wait any longer for - * the response. + * least one message is available, rather than returning no messages. * * * bool return_immediately = 2; @@ -615,9 +613,7 @@ public Builder setSubscriptionBytes( * 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. The - * client may cancel the request if it does not wish to wait any longer for - * the response. + * least one message is available, rather than returning no messages. * * * bool return_immediately = 2; @@ -630,9 +626,7 @@ public boolean getReturnImmediately() { * 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. The - * client may cancel the request if it does not wish to wait any longer for - * the response. + * least one message is available, rather than returning no messages. * * * bool return_immediately = 2; @@ -648,9 +642,7 @@ public Builder setReturnImmediately(boolean value) { * 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. The - * client may cancel the request if it does not wish to wait any longer for - * the response. + * least one message is available, rather than returning no messages. * * * bool return_immediately = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 963030348343..b21349023c04 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -32,9 +32,7 @@ public interface PullRequestOrBuilder extends * 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. The - * client may cancel the request if it does not wish to wait any longer for - * the response. + * least one message is available, rather than returning no messages. * * * bool return_immediately = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 170040815345..6668eea392c0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -95,10 +95,10 @@ private PullResponse( private java.util.List receivedMessages_; /** *
-   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-   * there are no more available in the backlog. The Pub/Sub system may return
-   * fewer than the `maxMessages` requested even if there are more messages
-   * available in the backlog.
+   * 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.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -108,10 +108,10 @@ public java.util.List getReceivedMessagesL } /** *
-   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-   * there are no more available in the backlog. The Pub/Sub system may return
-   * fewer than the `maxMessages` requested even if there are more messages
-   * available in the backlog.
+   * 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.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -122,10 +122,10 @@ public java.util.List getReceivedMessagesL } /** *
-   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-   * there are no more available in the backlog. The Pub/Sub system may return
-   * fewer than the `maxMessages` requested even if there are more messages
-   * available in the backlog.
+   * 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.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -135,10 +135,10 @@ public int getReceivedMessagesCount() { } /** *
-   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-   * there are no more available in the backlog. The Pub/Sub system may return
-   * fewer than the `maxMessages` requested even if there are more messages
-   * available in the backlog.
+   * 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.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -148,10 +148,10 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { } /** *
-   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-   * there are no more available in the backlog. The Pub/Sub system may return
-   * fewer than the `maxMessages` requested even if there are more messages
-   * available in the backlog.
+   * 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.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -522,10 +522,10 @@ private void ensureReceivedMessagesIsMutable() { /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -539,10 +539,10 @@ public java.util.List getReceivedMessagesL } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -556,10 +556,10 @@ public int getReceivedMessagesCount() { } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -573,10 +573,10 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -597,10 +597,10 @@ public Builder setReceivedMessages( } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -618,10 +618,10 @@ public Builder setReceivedMessages( } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -641,10 +641,10 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -665,10 +665,10 @@ public Builder addReceivedMessages( } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -686,10 +686,10 @@ public Builder addReceivedMessages( } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -707,10 +707,10 @@ public Builder addReceivedMessages( } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -729,10 +729,10 @@ public Builder addAllReceivedMessages( } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -749,10 +749,10 @@ public Builder clearReceivedMessages() { } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -769,10 +769,10 @@ public Builder removeReceivedMessages(int index) { } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -783,10 +783,10 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder( } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -800,10 +800,10 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -818,10 +818,10 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -832,10 +832,10 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -847,10 +847,10 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( } /** *
-     * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-     * there are no more available in the backlog. The Pub/Sub system may return
-     * fewer than the `maxMessages` requested even if there are more messages
-     * available in the backlog.
+     * 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.
      * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 2271de7e17f6..b032219152e2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -9,10 +9,10 @@ public interface PullResponseOrBuilder extends /** *
-   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-   * there are no more available in the backlog. The Pub/Sub system may return
-   * fewer than the `maxMessages` requested even if there are more messages
-   * available in the backlog.
+   * 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.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -21,10 +21,10 @@ public interface PullResponseOrBuilder extends getReceivedMessagesList(); /** *
-   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-   * there are no more available in the backlog. The Pub/Sub system may return
-   * fewer than the `maxMessages` requested even if there are more messages
-   * available in the backlog.
+   * 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.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -32,10 +32,10 @@ public interface PullResponseOrBuilder extends com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); /** *
-   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-   * there are no more available in the backlog. The Pub/Sub system may return
-   * fewer than the `maxMessages` requested even if there are more messages
-   * available in the backlog.
+   * 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.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -43,10 +43,10 @@ public interface PullResponseOrBuilder extends int getReceivedMessagesCount(); /** *
-   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-   * there are no more available in the backlog. The Pub/Sub system may return
-   * fewer than the `maxMessages` requested even if there are more messages
-   * available in the backlog.
+   * 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.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; @@ -55,10 +55,10 @@ public interface PullResponseOrBuilder extends getReceivedMessagesOrBuilderList(); /** *
-   * Received Pub/Sub messages. The Pub/Sub system will return zero messages if
-   * there are no more available in the backlog. The Pub/Sub system may return
-   * fewer than the `maxMessages` requested even if there are more messages
-   * available in the backlog.
+   * 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.
    * 
* * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 3fd4c8871eb4..302549a91186 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -4,6 +4,10 @@ package com.google.pubsub.v1; /** + *
+ * Response for the `Seek` method (this response is empty).
+ * 
+ * * Protobuf type {@code google.pubsub.v1.SeekResponse} */ public final class SeekResponse extends @@ -219,6 +223,10 @@ protected Builder newBuilderForType( return builder; } /** + *
+   * Response for the `Seek` method (this response is empty).
+   * 
+ * * Protobuf type {@code google.pubsub.v1.SeekResponse} */ public static final class Builder extends diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 7c1399f90305..2513ae6b9172 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -306,7 +306,7 @@ public int getLabelsCount() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 4; @@ -326,7 +326,7 @@ public java.util.Map getLabels() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 4; @@ -337,7 +337,7 @@ public java.util.Map getLabelsMap() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 4; @@ -353,7 +353,7 @@ public java.lang.String getLabelsOrDefault( } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 4; @@ -1220,7 +1220,7 @@ public int getLabelsCount() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 4; @@ -1240,7 +1240,7 @@ public java.util.Map getLabels() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 4; @@ -1251,7 +1251,7 @@ public java.util.Map getLabelsMap() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 4; @@ -1267,7 +1267,7 @@ public java.lang.String getLabelsOrDefault( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 4; @@ -1291,7 +1291,7 @@ public Builder clearLabels() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 4; @@ -1314,7 +1314,7 @@ public Builder removeLabels( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 4; @@ -1330,7 +1330,7 @@ public Builder putLabels( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 4; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 9de6c0aaed64..fe4d6d96c74f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -97,7 +97,7 @@ public interface SnapshotOrBuilder extends /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 4; @@ -105,7 +105,7 @@ public interface SnapshotOrBuilder extends int getLabelsCount(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 4; @@ -120,7 +120,7 @@ boolean containsLabels( getLabels(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 4; @@ -129,7 +129,7 @@ boolean containsLabels( getLabelsMap(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 4; @@ -140,7 +140,7 @@ java.lang.String getLabelsOrDefault( java.lang.String defaultValue); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 4; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index bfe88e6107ee..bcb239d4ae05 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -111,6 +111,19 @@ private Subscription( labels__.getKey(), labels__.getValue()); break; } + case 90: { + com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null; + if (expirationPolicy_ != null) { + subBuilder = expirationPolicy_.toBuilder(); + } + expirationPolicy_ = input.readMessage(com.google.pubsub.v1.ExpirationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expirationPolicy_); + expirationPolicy_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { @@ -428,7 +441,7 @@ public int getLabelsCount() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 9; @@ -448,7 +461,7 @@ public java.util.Map getLabels() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 9; @@ -459,7 +472,7 @@ public java.util.Map getLabelsMap() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 9; @@ -475,7 +488,7 @@ public java.lang.String getLabelsOrDefault( } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 9; @@ -492,6 +505,63 @@ public java.lang.String getLabelsOrThrow( return map.get(key); } + public static final int EXPIRATION_POLICY_FIELD_NUMBER = 11; + private com.google.pubsub.v1.ExpirationPolicy 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.
+   * <b>BETA:</b> This feature is part of a beta 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.
+   * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public boolean hasExpirationPolicy() { + return expirationPolicy_ != null; + } + /** + *
+   * 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.
+   * <b>BETA:</b> This feature is part of a beta 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.
+   * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { + return expirationPolicy_ == null ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : 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.
+   * <b>BETA:</b> This feature is part of a beta 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.
+   * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder() { + return getExpirationPolicy(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -530,6 +600,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + if (expirationPolicy_ != null) { + output.writeMessage(11, getExpirationPolicy()); + } unknownFields.writeTo(output); } @@ -571,6 +644,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, labels__); } + if (expirationPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getExpirationPolicy()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -607,6 +684,11 @@ public boolean equals(final java.lang.Object obj) { } result = result && internalGetLabels().equals( other.internalGetLabels()); + result = result && (hasExpirationPolicy() == other.hasExpirationPolicy()); + if (hasExpirationPolicy()) { + result = result && getExpirationPolicy() + .equals(other.getExpirationPolicy()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -639,6 +721,10 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + if (hasExpirationPolicy()) { + hash = (37 * hash) + EXPIRATION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getExpirationPolicy().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -819,6 +905,12 @@ public Builder clear() { messageRetentionDurationBuilder_ = null; } internalGetMutableLabels().clear(); + if (expirationPolicyBuilder_ == null) { + expirationPolicy_ = null; + } else { + expirationPolicy_ = null; + expirationPolicyBuilder_ = null; + } return this; } @@ -863,6 +955,11 @@ public com.google.pubsub.v1.Subscription buildPartial() { } result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); + if (expirationPolicyBuilder_ == null) { + result.expirationPolicy_ = expirationPolicy_; + } else { + result.expirationPolicy_ = expirationPolicyBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -934,6 +1031,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); + if (other.hasExpirationPolicy()) { + mergeExpirationPolicy(other.getExpirationPolicy()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1748,7 +1848,7 @@ public int getLabelsCount() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 9; @@ -1768,7 +1868,7 @@ public java.util.Map getLabels() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 9; @@ -1779,7 +1879,7 @@ public java.util.Map getLabelsMap() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 9; @@ -1795,7 +1895,7 @@ public java.lang.String getLabelsOrDefault( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 9; @@ -1819,7 +1919,7 @@ public Builder clearLabels() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 9; @@ -1842,7 +1942,7 @@ public Builder removeLabels( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 9; @@ -1858,7 +1958,7 @@ public Builder putLabels( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 9; @@ -1870,6 +1970,231 @@ public Builder putAllLabels( .putAll(values); return this; } + + private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> expirationPolicyBuilder_; + /** + *
+     * 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.
+     * <b>BETA:</b> This feature is part of a beta 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.
+     * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public boolean hasExpirationPolicy() { + return expirationPolicyBuilder_ != null || expirationPolicy_ != null; + } + /** + *
+     * 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.
+     * <b>BETA:</b> This feature is part of a beta 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.
+     * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { + if (expirationPolicyBuilder_ == null) { + return expirationPolicy_ == null ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_; + } else { + return expirationPolicyBuilder_.getMessage(); + } + } + /** + *
+     * 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.
+     * <b>BETA:</b> This feature is part of a beta 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.
+     * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) { + if (expirationPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expirationPolicy_ = value; + onChanged(); + } else { + expirationPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * 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.
+     * <b>BETA:</b> This feature is part of a beta 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.
+     * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public Builder setExpirationPolicy( + com.google.pubsub.v1.ExpirationPolicy.Builder builderForValue) { + if (expirationPolicyBuilder_ == null) { + expirationPolicy_ = builderForValue.build(); + onChanged(); + } else { + expirationPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * 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.
+     * <b>BETA:</b> This feature is part of a beta 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.
+     * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) { + if (expirationPolicyBuilder_ == null) { + if (expirationPolicy_ != null) { + expirationPolicy_ = + com.google.pubsub.v1.ExpirationPolicy.newBuilder(expirationPolicy_).mergeFrom(value).buildPartial(); + } else { + expirationPolicy_ = value; + } + onChanged(); + } else { + expirationPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * 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.
+     * <b>BETA:</b> This feature is part of a beta 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.
+     * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public Builder clearExpirationPolicy() { + if (expirationPolicyBuilder_ == null) { + expirationPolicy_ = null; + onChanged(); + } else { + expirationPolicy_ = null; + expirationPolicyBuilder_ = null; + } + + return this; + } + /** + *
+     * 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.
+     * <b>BETA:</b> This feature is part of a beta 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.
+     * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() { + + onChanged(); + return getExpirationPolicyFieldBuilder().getBuilder(); + } + /** + *
+     * 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.
+     * <b>BETA:</b> This feature is part of a beta 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.
+     * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder() { + if (expirationPolicyBuilder_ != null) { + return expirationPolicyBuilder_.getMessageOrBuilder(); + } else { + return expirationPolicy_ == null ? + com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : 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.
+     * <b>BETA:</b> This feature is part of a beta 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.
+     * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> + getExpirationPolicyFieldBuilder() { + if (expirationPolicyBuilder_ == null) { + expirationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder>( + getExpirationPolicy(), + getParentForChildren(), + isClean()); + expirationPolicy_ = null; + } + return expirationPolicyBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index b8e0610cb781..55f9795e718b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -181,7 +181,7 @@ public interface SubscriptionOrBuilder extends /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 9; @@ -189,7 +189,7 @@ public interface SubscriptionOrBuilder extends int getLabelsCount(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 9; @@ -204,7 +204,7 @@ boolean containsLabels( getLabels(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 9; @@ -213,7 +213,7 @@ boolean containsLabels( getLabelsMap(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 9; @@ -224,7 +224,7 @@ java.lang.String getLabelsOrDefault( java.lang.String defaultValue); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 9; @@ -232,4 +232,53 @@ java.lang.String getLabelsOrDefault( java.lang.String getLabelsOrThrow( java.lang.String key); + + /** + *
+   * 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.
+   * <b>BETA:</b> This feature is part of a beta 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.
+   * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + boolean hasExpirationPolicy(); + /** + *
+   * 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.
+   * <b>BETA:</b> This feature is part of a beta 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.
+   * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy(); + /** + *
+   * 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.
+   * <b>BETA:</b> This feature is part of a beta 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.
+   * 
+ * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + */ + com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 07b861121aeb..6fcefabc1004 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -204,7 +204,7 @@ public int getLabelsCount() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 2; @@ -224,7 +224,7 @@ public java.util.Map getLabels() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 2; @@ -235,7 +235,7 @@ public java.util.Map getLabelsMap() { } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 2; @@ -251,7 +251,7 @@ public java.lang.String getLabelsOrDefault( } /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 2; @@ -848,7 +848,7 @@ public int getLabelsCount() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 2; @@ -868,7 +868,7 @@ public java.util.Map getLabels() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 2; @@ -879,7 +879,7 @@ public java.util.Map getLabelsMap() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 2; @@ -895,7 +895,7 @@ public java.lang.String getLabelsOrDefault( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 2; @@ -919,7 +919,7 @@ public Builder clearLabels() { } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 2; @@ -942,7 +942,7 @@ public Builder removeLabels( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 2; @@ -958,7 +958,7 @@ public Builder putLabels( } /** *
-     * User labels.
+     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
      * 
* * map<string, string> labels = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index aea59e1bc018..0eeddaef9c13 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -37,7 +37,7 @@ public interface TopicOrBuilder extends /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 2; @@ -45,7 +45,7 @@ public interface TopicOrBuilder extends int getLabelsCount(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 2; @@ -60,7 +60,7 @@ boolean containsLabels( getLabels(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 2; @@ -69,7 +69,7 @@ boolean containsLabels( getLabelsMap(); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 2; @@ -80,7 +80,7 @@ java.lang.String getLabelsOrDefault( java.lang.String defaultValue); /** *
-   * User labels.
+   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    * 
* * map<string, string> labels = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index e70440314aee..b13c73473aa9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2018 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,6 +11,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. +// syntax = "proto3"; @@ -53,8 +54,7 @@ service Publisher { } // Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic - // does not exist. The message payload must not be empty; it must contain - // either a non-empty data field, or at least one attribute. + // does not exist. rpc Publish(PublishRequest) returns (PublishResponse) { option (google.api.http) = { post: "/v1/{topic=projects/*/topics/*}:publish" @@ -187,8 +187,7 @@ service Subscriber { }; } - // Pulls messages from the server. Returns an empty list if there are no - // messages available in the backlog. The server may return `UNAVAILABLE` if + // Pulls messages from the server. The server may return `UNAVAILABLE` if // there are too many concurrent pull requests pending for the given // subscription. rpc Pull(PullRequest) returns (PullResponse) { @@ -205,7 +204,8 @@ service Subscriber { // 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. - rpc StreamingPull(stream StreamingPullRequest) returns (stream StreamingPullResponse); + rpc StreamingPull(stream StreamingPullRequest) returns (stream StreamingPullResponse) { + } // Modifies the `PushConfig` for a specified subscription. // @@ -243,7 +243,7 @@ service Subscriber { // Creates a snapshot from the requested subscription.

// ALPHA: This feature is part of an 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. + // use. It is not subject to any SLA or deprecation policy.

// 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 @@ -321,7 +321,7 @@ message Topic { // must not start with `"goog"`. string name = 1; - // User labels. + // See Creating and managing labels. map labels = 2; // Policy constraining how messages published to the topic may be stored. It @@ -333,10 +333,13 @@ message Topic { MessageStoragePolicy message_storage_policy = 3; } -// A message data and its attributes. The message payload must not be empty; -// it must contain either a non-empty data field, or at least one attribute. +// 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. +// See Quotas and limits for more information about +// message limits. message PubsubMessage { - // The message payload. + // The message data field. If this field is empty, the message must contain + // at least one attribute. bytes data = 1; // Optional attributes for this message. @@ -394,8 +397,8 @@ message PublishResponse { // Request for the `ListTopics` method. message ListTopicsRequest { - // The name of the cloud project that topics belong to. - // Format is `projects/{project}`. + // The name of the project in which to list topics. + // Format is `projects/{project-id}`. string project = 1; // Maximum number of topics to return. @@ -545,8 +548,31 @@ message Subscription { // use. It is not subject to any SLA or deprecation policy. google.protobuf.Duration message_retention_duration = 8; - // User labels. + // See Creating and managing labels. map labels = 9; + + // 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. + // BETA: This feature is part of a beta 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. + ExpirationPolicy expiration_policy = 11; +} + +// A policy that specifies the conditions for resource expiration (i.e., +// automatic resource deletion). +message ExpirationPolicy { + // 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 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. + google.protobuf.Duration ttl = 1; } // Configuration for a push delivery endpoint. @@ -607,8 +633,8 @@ message UpdateSubscriptionRequest { // Request for the `ListSubscriptions` method. message ListSubscriptionsRequest { - // The name of the cloud project that subscriptions belong to. - // Format is `projects/{project}`. + // The name of the project in which to list subscriptions. + // Format is `projects/{project-id}`. string project = 1; // Maximum number of subscriptions to return. @@ -662,9 +688,7 @@ message PullRequest { // 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. The - // client may cancel the request if it does not wish to wait any longer for - // the response. + // least one message is available, rather than returning no messages. bool return_immediately = 2; // The maximum number of messages returned for this request. The Pub/Sub @@ -674,10 +698,10 @@ message PullRequest { // Response for the `Pull` method. message PullResponse { - // Received Pub/Sub messages. The Pub/Sub system will return zero messages if - // there are no more available in the backlog. The Pub/Sub system may return - // fewer than the `maxMessages` requested even if there are more messages - // available in the backlog. + // 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. repeated ReceivedMessage received_messages = 1; } @@ -770,7 +794,8 @@ message CreateSnapshotRequest { // Optional 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. + // Note that for REST API requests, you must specify a name. See the + // resource name rules. // Format is `projects/{project}/snapshots/{snap}`. string name = 1; @@ -785,7 +810,7 @@ message CreateSnapshotRequest { // Format is `projects/{project}/subscriptions/{sub}`. string subscription = 2; - // User labels. + // See Creating and managing labels. map labels = 3; } @@ -825,7 +850,7 @@ message Snapshot { // snapshot that would expire in less than 1 hour after creation. google.protobuf.Timestamp expire_time = 3; - // User labels. + // See Creating and managing labels. map labels = 4; } @@ -844,8 +869,8 @@ message GetSnapshotRequest { // changed in backward-incompatible ways and is not recommended for production // use. It is not subject to any SLA or deprecation policy. message ListSnapshotsRequest { - // The name of the cloud project that snapshots belong to. - // Format is `projects/{project}`. + // The name of the project in which to list snapshots. + // Format is `projects/{project-id}`. string project = 1; // Maximum number of snapshots to return. @@ -909,6 +934,7 @@ message SeekRequest { } } +// Response for the `Seek` method (this response is empty). message SeekResponse { } From 064700a5cd7d1c98e1ef3f223c17a7e1e2b183e5 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Thu, 18 Oct 2018 14:27:43 -0700 Subject: [PATCH 0076/2363] pubsub: reject expired and duplicate messages (#3743) * pubsub: reject expired and duplicate messages * add some lag time before rejecting expired messages --- .../cloud/pubsub/v1/MessageDispatcher.java | 84 ++++++++++++------- .../google/cloud/pubsub/v1/Subscriber.java | 5 ++ 2 files changed, 59 insertions(+), 30 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index bb50e18813de..79aa6b71a94a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -78,7 +78,7 @@ class MessageDispatcher { private final MessageWaiter messagesWaiter; // Maps ID to "total expiration time". If it takes longer than this, stop extending. - private final ConcurrentMap pendingMessages = new ConcurrentHashMap<>(); + private final ConcurrentMap pendingMessages = new ConcurrentHashMap<>(); private final LinkedBlockingQueue pendingAcks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingNacks = new LinkedBlockingQueue<>(); @@ -133,16 +133,25 @@ private class AckHandler implements ApiFutureCallback { private final String ackId; private final int outstandingBytes; private final long receivedTimeMillis; + private final Instant totalExpiration; - AckHandler(String ackId, int outstandingBytes) { + AckHandler(String ackId, int outstandingBytes, Instant totalExpiration) { this.ackId = ackId; this.outstandingBytes = outstandingBytes; - receivedTimeMillis = clock.millisTime(); + this.receivedTimeMillis = clock.millisTime(); + this.totalExpiration = totalExpiration; } - private void onBoth(LinkedBlockingQueue destination) { - pendingMessages.remove(this); - destination.add(ackId); + /** Stop extending deadlines for this message and free flow control. */ + private void forget() { + if (pendingMessages.remove(ackId) == null) { + /* + * We're forgetting the message for the second time. Probably because we ran out of total + * expiration, forget the message, then the user finishes working on the message, and forget + * again. Turn the second forget into a no-op so we don't free twice. + */ + return; + } flowController.release(1, outstandingBytes); messagesWaiter.incrementPendingMessages(-1); processOutstandingBatches(); @@ -154,7 +163,8 @@ public void onFailure(Throwable t) { Level.WARNING, "MessageReceiver failed to processes ack ID: " + ackId + ", the message will be nacked.", t); - onBoth(pendingNacks); + pendingNacks.add(ackId); + forget(); } @Override @@ -174,7 +184,8 @@ public void onSuccess(AckReply reply) { default: throw new IllegalArgumentException(String.format("AckReply: %s not supported", reply)); } - onBoth(destination); + destination.add(ackId); + forget(); } } @@ -327,18 +338,32 @@ public void processReceivedMessages(List messages, Runnable don doneCallback.run(); return; } - messagesWaiter.incrementPendingMessages(messages.size()); - Instant totalExpiration = now().plus(maxAckExtensionPeriod); OutstandingMessageBatch outstandingBatch = new OutstandingMessageBatch(doneCallback); for (ReceivedMessage message : messages) { AckHandler ackHandler = - new AckHandler(message.getAckId(), message.getMessage().getSerializedSize()); + new AckHandler( + message.getAckId(), message.getMessage().getSerializedSize(), totalExpiration); + if (pendingMessages.putIfAbsent(message.getAckId(), ackHandler) != null){ + // putIfAbsent puts ackHandler if ackID isn't previously mapped, then return the previously-mapped element. + // If the previous element is not null, we already have the message and the new one is definitely a duplicate. + // Don't nack this, because that'd also nack the one we already have in queue. + + // TODO(pongad): We could update the total expiration time, but I'm not 100% sure how that plays with + // various resources. Think about this more. + continue; + } outstandingBatch.addMessage(message, ackHandler); pendingReceipts.add(message.getAckId()); - pendingMessages.put(ackHandler, totalExpiration); } + + if (outstandingBatch.messages.isEmpty()) { + doneCallback.run(); + return; + } + + messagesWaiter.incrementPendingMessages(outstandingBatch.messages.size()); synchronized (outstandingMessageBatches) { outstandingMessageBatches.add(outstandingBatch); } @@ -398,6 +423,14 @@ public void nack() { @Override public void run() { try { + if (ackHandler.totalExpiration.plusSeconds(messageDeadlineSeconds.get()).isBefore(now())) { + // Message expired while waiting. We don't extend these messages anymore, + // so it was probably sent to someone else. Don't work on it. + // Don't nack it either, because we'd be nacking someone else's message. + ackHandler.forget(); + return; + } + receiver.receiveMessage(message, consumer); } catch (Exception e) { response.setException(e); @@ -433,35 +466,26 @@ void extendDeadlines() { Instant now = now(); Instant extendTo = now.plusSeconds(extendSeconds); - int count = 0; - Iterator> it = pendingMessages.entrySet().iterator(); - while (it.hasNext()) { - Map.Entry entry = it.next(); - String ackId = entry.getKey().ackId; - Instant totalExpiration = entry.getValue(); - // TODO(pongad): PendingModifyAckDeadline is created to dance around polling pull, - // since one modack RPC only takes one expiration. - // Whenever we delete polling pull, we should also delete PendingModifyAckDeadline, - // and just construct StreamingPullRequest directly. + for (Map.Entry entry : pendingMessages.entrySet()) { + String ackId = entry.getKey(); + Instant totalExpiration = entry.getValue().totalExpiration; if (totalExpiration.isAfter(extendTo)) { modack.ackIds.add(ackId); - count++; continue; } - it.remove(); + + // forget removes from pendingMessages; this is OK, concurrent maps can + // handle concurrent iterations and modifications. + entry.getValue().forget(); if (totalExpiration.isAfter(now)) { int sec = Math.max(1, (int) now.until(totalExpiration, ChronoUnit.SECONDS)); modacks.add(new PendingModifyAckDeadline(sec, ackId)); - count++; - } else { - flowController.release(1, entry.getKey().outstandingBytes); - messagesWaiter.incrementPendingMessages(-1); } } + logger.log(Level.FINER, "Sending {0} modacks", modack.ackIds.size() + modacks.size()); modacks.add(modack); - logger.log(Level.FINER, "Sending {0} modacks", count); - List acksToSend = Collections.emptyList(); + List acksToSend = Collections.emptyList(); ackProcessor.sendAckOperations(acksToSend, modacks); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index cf35733bda8b..f38d695791ca 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -188,6 +188,11 @@ public void close() throws IOException { numChannels = builder.parallelPullCount; channels = new ArrayList<>(numChannels); streamingSubscriberConnections = new ArrayList(numChannels); + + // We regularly look up the distribution for a good subscription deadline. + // So we seed the distribution with something reasonable to start with. + // Distribution is percentile-based, so this value will eventually lose importance. + ackLatencyDistribution.record(60); } /** From a653d84803b71d329d828c59cccf7c2289c555f0 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Tue, 23 Oct 2018 08:21:37 -0700 Subject: [PATCH 0077/2363] Pubsub: Set default maxInboundMessageSize to 20MB (#3844) --- .../google/cloud/pubsub/v1/stub/SubscriberStubSettings.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 9d683ee79520..c8f6ad9bc191 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -267,7 +267,8 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde /** Returns a builder for the default ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder(); + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(20<<20); // 20MB } public static TransportChannelProvider defaultTransportChannelProvider() { From 31cc2662c7596fb4286a1362de1458959c887776 Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Tue, 23 Oct 2018 18:45:17 -0700 Subject: [PATCH 0078/2363] pubsub: remove TODO (#3845) the existing behavior is already correct; added comment explaining why --- .../java/com/google/cloud/pubsub/v1/MessageDispatcher.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 79aa6b71a94a..cda1eefea4cd 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -349,9 +349,8 @@ public void processReceivedMessages(List messages, Runnable don // putIfAbsent puts ackHandler if ackID isn't previously mapped, then return the previously-mapped element. // If the previous element is not null, we already have the message and the new one is definitely a duplicate. // Don't nack this, because that'd also nack the one we already have in queue. - - // TODO(pongad): We could update the total expiration time, but I'm not 100% sure how that plays with - // various resources. Think about this more. + // Don't update the existing one's total expiration either. If the user "loses" the message, we want to eventually + // totally expire so that pubsub service sends us the message again. continue; } outstandingBatch.addMessage(message, ackHandler); From 317ec044cc9f5d902546016b98c2aced24306802 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 25 Oct 2018 12:18:15 -0700 Subject: [PATCH 0079/2363] Release v0.68.0 (#3857) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 4068ab2bf0c0..652ddbfe5896 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.49.0 + 1.50.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.49.0' +compile 'com.google.cloud:google-cloud-pubsub:1.50.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.50.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9baf5374061c..6abce46bc922 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.49.1-SNAPSHOT + 1.50.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.67.1-alpha-SNAPSHOT + 0.68.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7e68108c0131..0cd267a55911 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.31.1-SNAPSHOT + 1.32.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.32.1-SNAPSHOT + 0.33.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3a12c2d5850a..81537e14067b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.31.1-SNAPSHOT + 1.32.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.32.1-SNAPSHOT + 0.33.0 From 9c17202aafee3f7ffe4589cab551d430855a96f1 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 25 Oct 2018 15:46:37 -0700 Subject: [PATCH 0080/2363] Bump next snapshot (#3862) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6abce46bc922..7b51402f0b04 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.50.0 + 1.50.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.68.0-alpha + 0.68.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0cd267a55911..5643660ef0fb 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.32.0 + 1.32.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.33.0 + 0.33.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 81537e14067b..c41073b74767 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.32.0 + 1.32.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.33.0 + 0.33.1-SNAPSHOT From ec64d3bed9c453054a158bd321680778568aca4d Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 1 Nov 2018 13:47:10 -0700 Subject: [PATCH 0081/2363] Release v0.69.0 (#3890) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 652ddbfe5896..e7a9e0dd63ab 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.50.0 + 1.51.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.50.0' +compile 'com.google.cloud:google-cloud-pubsub:1.51.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.50.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.51.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7b51402f0b04..885e2bba08dc 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.50.1-SNAPSHOT + 1.51.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.68.1-alpha-SNAPSHOT + 0.69.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5643660ef0fb..3e47047246be 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.32.1-SNAPSHOT + 1.33.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.33.1-SNAPSHOT + 0.34.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c41073b74767..9518a323f3c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.32.1-SNAPSHOT + 1.33.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.33.1-SNAPSHOT + 0.34.0 From b250b902e89392cbd65cb003c80590e6f656ca45 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 1 Nov 2018 14:19:43 -0700 Subject: [PATCH 0082/2363] Bump next snapshot (#3892) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 885e2bba08dc..fe6b01e725bb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.51.0 + 1.51.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.69.0-alpha + 0.69.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3e47047246be..ea390e5f4d9e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.33.0 + 1.33.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.34.0 + 0.34.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9518a323f3c1..ec188eaac298 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.33.0 + 1.33.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.34.0 + 0.34.1-SNAPSHOT From edd456dd668e2b230e7f523e55c01c8fe09e3f0d Mon Sep 17 00:00:00 2001 From: Michael Darakananda Date: Wed, 7 Nov 2018 09:37:20 -0800 Subject: [PATCH 0083/2363] Pubsub: use gapic client (#3581) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * bump checkstyle version to build on Java 9 The version of checkstyle we currently use uses tools.jar which is removed from Java 9 and above as part of Project Jigsaw. This commit uses a newer version of checkstyle that does not use tools.jar. Running `mvn checkstyle:checkstyle` succeeded. * maybe this will be java 7 compat...? * pubsub: use GAPIC stub * fix merge * pr comment --- .../google/cloud/pubsub/v1/StatusUtil.java | 15 +-- .../v1/StreamingSubscriberConnection.java | 119 +++++++++--------- .../google/cloud/pubsub/v1/Subscriber.java | 94 +++++++------- .../cloud/pubsub/v1/StatusUtilTest.java | 21 +++- .../cloud/pubsub/v1/SubscriberTest.java | 3 +- 5 files changed, 126 insertions(+), 126 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java index 7002901256d7..52a3a6e6372d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java @@ -16,8 +16,8 @@ package com.google.cloud.pubsub.v1; +import com.google.api.gax.rpc.ApiException; import io.grpc.Status; -import io.grpc.StatusRuntimeException; /** Utilities for handling gRPC {@link Status}. */ final class StatusUtil { @@ -26,11 +26,11 @@ private StatusUtil() { } public static boolean isRetryable(Throwable error) { - if (!(error instanceof StatusRuntimeException)) { + if (!(error instanceof ApiException)) { return true; } - StatusRuntimeException statusRuntimeException = (StatusRuntimeException) error; - switch (statusRuntimeException.getStatus().getCode()) { + ApiException apiException = (ApiException) error; + switch (apiException.getStatusCode().getCode()) { case DEADLINE_EXCEEDED: case INTERNAL: case CANCELLED: @@ -38,11 +38,8 @@ public static boolean isRetryable(Throwable error) { case ABORTED: return true; case UNAVAILABLE: - if (statusRuntimeException.getMessage().contains("Server shutdownNow invoked")) { - return false; - } else { - return true; - } + // TODO(pongad): check that ApiException propagate message properly. + return !apiException.getMessage().contains("Server shutdownNow invoked"); default: return false; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 17a913935392..f8892fdf6dd4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -18,17 +18,23 @@ import com.google.api.core.AbstractApiService; import com.google.api.core.ApiClock; +import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutureCallback; import com.google.api.core.ApiFutures; import com.google.api.core.InternalApi; import com.google.api.core.SettableApiFuture; import com.google.api.gax.batching.FlowController; import com.google.api.gax.core.Distribution; +import com.google.api.gax.grpc.GrpcCallContext; import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.rpc.ApiException; import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.ClientStream; +import com.google.api.gax.rpc.ResponseObserver; +import com.google.api.gax.rpc.StreamController; import com.google.cloud.pubsub.v1.MessageDispatcher.AckProcessor; import com.google.cloud.pubsub.v1.MessageDispatcher.PendingModifyAckDeadline; +import com.google.cloud.pubsub.v1.stub.SubscriberStub; import com.google.common.collect.Lists; import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Empty; @@ -36,11 +42,7 @@ import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; -import com.google.pubsub.v1.SubscriberGrpc.SubscriberStub; import io.grpc.Status; -import io.grpc.stub.ClientCallStreamObserver; -import io.grpc.stub.ClientResponseObserver; -import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.Deque; import java.util.List; @@ -62,9 +64,9 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private static final Duration INITIAL_CHANNEL_RECONNECT_BACKOFF = Duration.ofMillis(100); private static final Duration MAX_CHANNEL_RECONNECT_BACKOFF = Duration.ofSeconds(10); private static final int MAX_PER_REQUEST_CHANGES = 1000; - private static final Duration UNARY_TIMEOUT = Duration.ofSeconds(60); private final SubscriberStub stub; + private final int channelAffinity; private final String subscription; private final ScheduledExecutorService systemExecutor; private final MessageDispatcher messageDispatcher; @@ -73,7 +75,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements new AtomicLong(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); private final Lock lock = new ReentrantLock(); - private ClientCallStreamObserver requestObserver; + private ClientStream clientStream; public StreamingSubscriberConnection( String subscription, @@ -82,6 +84,7 @@ public StreamingSubscriberConnection( Duration maxAckExtensionPeriod, Distribution ackLatencyDistribution, SubscriberStub stub, + int channelAffinity, FlowController flowController, Deque outstandingMessageBatches, ScheduledExecutorService executor, @@ -90,6 +93,7 @@ public StreamingSubscriberConnection( this.subscription = subscription; this.systemExecutor = systemExecutor; this.stub = stub; + this.channelAffinity = channelAffinity; this.messageDispatcher = new MessageDispatcher( receiver, @@ -118,15 +122,14 @@ protected void doStop() { lock.lock(); try { - requestObserver.onError(Status.CANCELLED.asException()); + clientStream.closeSendWithError(Status.CANCELLED.asException()); } finally { lock.unlock(); notifyStopped(); } } - private class StreamingPullResponseObserver - implements ClientResponseObserver { + private class StreamingPullResponseObserver implements ResponseObserver { final SettableApiFuture errorFuture; @@ -137,20 +140,21 @@ private class StreamingPullResponseObserver * the user can deal with -- so we save the request observer this response observer is "paired * with". If the stream has already errored, requesting more messages is a no-op. */ - ClientCallStreamObserver thisRequestObserver; + StreamController thisController; StreamingPullResponseObserver(SettableApiFuture errorFuture) { this.errorFuture = errorFuture; } @Override - public void beforeStart(ClientCallStreamObserver requestObserver) { - thisRequestObserver = requestObserver; - requestObserver.disableAutoInboundFlowControl(); + public void onStart(StreamController controller) { + thisController = controller; + thisController.disableAutoInboundFlowControl(); + thisController.request(1); } @Override - public void onNext(StreamingPullResponse response) { + public void onResponse(StreamingPullResponse response) { channelReconnectBackoffMillis.set(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); messageDispatcher.processReceivedMessages( response.getReceivedMessagesList(), @@ -163,7 +167,7 @@ public void run() { if (isAlive() && !errorFuture.isDone()) { lock.lock(); try { - thisRequestObserver.request(1); + thisController.request(1); } catch (Exception e) { logger.log(Level.WARNING, "cannot request more messages", e); } finally { @@ -180,7 +184,7 @@ public void onError(Throwable t) { } @Override - public void onCompleted() { + public void onComplete() { logger.fine("Streaming pull terminated successfully!"); errorFuture.set(null); } @@ -188,21 +192,22 @@ public void onCompleted() { private void initialize() { final SettableApiFuture errorFuture = SettableApiFuture.create(); - final ClientResponseObserver responseObserver = + final ResponseObserver responseObserver = new StreamingPullResponseObserver(errorFuture); - final ClientCallStreamObserver requestObserver = - (ClientCallStreamObserver) (stub.streamingPull(responseObserver)); - logger.log( - Level.FINER, - "Initializing stream to subscription {0}",subscription); - // We need to set streaming ack deadline, but it's not useful since we'll modack to send receipt anyway. - // Set to some big-ish value in case we modack late. - requestObserver.onNext( + ClientStream initClientStream = + stub.streamingPullCallable() + .splitCall( + responseObserver, + GrpcCallContext.createDefault().withChannelAffinity(channelAffinity)); + + logger.log(Level.FINER, "Initializing stream to subscription {0}", subscription); + // We need to set streaming ack deadline, but it's not useful since we'll modack to send receipt + // anyway. Set to some big-ish value in case we modack late. + initClientStream.send( StreamingPullRequest.newBuilder() .setSubscription(subscription) .setStreamAckDeadlineSeconds(60) .build()); - requestObserver.request(1); /** * Must make sure we do this after sending the subscription name and deadline. Otherwise, some @@ -211,7 +216,7 @@ private void initialize() { */ lock.lock(); try { - this.requestObserver = requestObserver; + this.clientStream = initClientStream; } finally { lock.unlock(); } @@ -273,45 +278,43 @@ private boolean isAlive() { @Override public void sendAckOperations( List acksToSend, List ackDeadlineExtensions) { - SubscriberStub timeoutStub = - stub.withDeadlineAfter(UNARY_TIMEOUT.toMillis(), TimeUnit.MILLISECONDS); - StreamObserver loggingObserver = new StreamObserver() { - @Override - public void onCompleted() { - // noop - } - - @Override - public void onNext(Empty e) { - // noop - } + ApiFutureCallback loggingCallback = + new ApiFutureCallback() { + @Override + public void onSuccess(Empty empty) { + // noop + } - @Override - public void onError(Throwable t) { - Level level = isAlive() ? Level.WARNING : Level.FINER; - logger.log(level, "failed to send operations", t); - } - }; + @Override + public void onFailure(Throwable t) { + Level level = isAlive() ? Level.WARNING : Level.FINER; + logger.log(level, "failed to send operations", t); + } + }; for (PendingModifyAckDeadline modack : ackDeadlineExtensions) { for (List idChunk : Lists.partition(modack.ackIds, MAX_PER_REQUEST_CHANGES)) { - timeoutStub.modifyAckDeadline( - ModifyAckDeadlineRequest.newBuilder() - .setSubscription(subscription) - .addAllAckIds(idChunk) - .setAckDeadlineSeconds(modack.deadlineExtensionSeconds) - .build(), - loggingObserver); + ApiFuture future = + stub.modifyAckDeadlineCallable() + .futureCall( + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(subscription) + .addAllAckIds(idChunk) + .setAckDeadlineSeconds(modack.deadlineExtensionSeconds) + .build()); + ApiFutures.addCallback(future, loggingCallback); } } for (List idChunk : Lists.partition(acksToSend, MAX_PER_REQUEST_CHANGES)) { - timeoutStub.acknowledge( - AcknowledgeRequest.newBuilder() - .setSubscription(subscription) - .addAllAckIds(idChunk) - .build(), - loggingObserver); + ApiFuture future = + stub.acknowledgeCallable() + .futureCall( + AcknowledgeRequest.newBuilder() + .setSubscription(subscription) + .addAllAckIds(idChunk) + .build()); + ApiFutures.addCallback(future, loggingCallback); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index f38d695791ca..72a90e54ee27 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -30,33 +30,29 @@ import com.google.api.gax.core.ExecutorProvider; import com.google.api.gax.core.FixedExecutorProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.rpc.HeaderProvider; import com.google.api.gax.rpc.NoHeaderProvider; import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.auth.Credentials; import com.google.auth.oauth2.GoogleCredentials; +import com.google.cloud.pubsub.v1.stub.GrpcSubscriberStub; +import com.google.cloud.pubsub.v1.stub.SubscriberStub; +import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; import com.google.common.base.Optional; import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; import com.google.pubsub.v1.ProjectSubscriptionName; -import com.google.pubsub.v1.SubscriberGrpc; -import com.google.pubsub.v1.SubscriberGrpc.SubscriberStub; -import io.grpc.CallCredentials; -import io.grpc.Channel; -import io.grpc.auth.MoreCallCredentials; import java.io.IOException; import java.util.ArrayList; import java.util.Deque; import java.util.LinkedList; import java.util.List; -import java.util.Map; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; +import com.google.api.gax.rpc.UnaryCallSettings; import javax.annotation.Nullable; import org.threeten.bp.Duration; +import com.google.api.core.ApiFunction; /** * A Cloud Pub/Sub subscriber that is @@ -70,7 +66,8 @@ * *

The subscriber handles the ack management, by automatically extending the ack deadline while * the message is being processed, to then issue the ack or nack of such message when the processing - * is done (see {@link Builder#setMaxAckExtensionPeriod(Duration)}). Note: message redelivery is still possible. + * is done (see {@link Builder#setMaxAckExtensionPeriod(Duration)}). Note: message + * redelivery is still possible. * *

It also provides customizable options that control: * @@ -96,6 +93,7 @@ public class Subscriber extends AbstractApiService { 20 * 1024 * 1024; // 20MB API maximum message size. @InternalApi static final int MAX_ACK_DEADLINE_SECONDS = 600; @InternalApi static final int MIN_ACK_DEADLINE_SECONDS = 10; + private static final Duration UNARY_TIMEOUT = Duration.ofSeconds(60); private static final ScheduledExecutorService SHARED_SYSTEM_EXECUTOR = InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(6).build().getExecutor(); @@ -110,11 +108,12 @@ public class Subscriber extends AbstractApiService { @Nullable private final ScheduledExecutorService alarmsExecutor; private final Distribution ackLatencyDistribution = new Distribution(MAX_ACK_DEADLINE_SECONDS + 1); - private final int numChannels; + + private SubscriberStub subStub; + private final SubscriberStubSettings subStubSettings; private final FlowController flowController; - private final TransportChannelProvider channelProvider; - private final CredentialsProvider credentialsProvider; - private final List channels; + private final int numPullers; + private final MessageReceiver receiver; private final List streamingSubscriberConnections; private final Deque outstandingMessageBatches = @@ -167,27 +166,33 @@ public void close() throws IOException { }); } + this.numPullers = builder.parallelPullCount; TransportChannelProvider channelProvider = builder.channelProvider; - if (channelProvider.needsExecutor()) { - channelProvider = channelProvider.withExecutor(executor); + if (channelProvider.acceptsPoolSize()) { + channelProvider = channelProvider.withPoolSize(numPullers); } - if (channelProvider.needsHeaders()) { - Map headers = - ImmutableMap.builder() - .putAll(builder.headerProvider.getHeaders()) - .putAll(builder.internalHeaderProvider.getHeaders()) + + try { + this.subStubSettings = + SubscriberStubSettings.newBuilder() + .setExecutorProvider(FixedExecutorProvider.create(alarmsExecutor)) + .setCredentialsProvider(builder.credentialsProvider) + .setTransportChannelProvider(channelProvider) + .setHeaderProvider(builder.headerProvider) + .applyToAllUnaryMethods(new ApiFunction, Void>() { + @Override + public Void apply(UnaryCallSettings.Builder settingsBuilder) { + settingsBuilder.setSimpleTimeoutNoRetries(UNARY_TIMEOUT); + return null; + } + }) .build(); - channelProvider = channelProvider.withHeaders(headers); - } - if (channelProvider.needsEndpoint()) { - channelProvider = channelProvider.withEndpoint(SubscriptionAdminSettings.getDefaultEndpoint()); + // TODO(pongad): what about internal header?? + } catch (Exception e) { + throw new IllegalStateException(e); } - this.channelProvider = channelProvider; - credentialsProvider = builder.credentialsProvider; - numChannels = builder.parallelPullCount; - channels = new ArrayList<>(numChannels); - streamingSubscriberConnections = new ArrayList(numChannels); + streamingSubscriberConnections = new ArrayList(numPullers); // We regularly look up the distribution for a good subscription deadline. // So we seed the distribution with something reasonable to start with. @@ -277,14 +282,7 @@ protected void doStart() { logger.log(Level.FINE, "Starting subscriber group."); try { - for (int i = 0; i < numChannels; i++) { - GrpcTransportChannel transportChannel = - (GrpcTransportChannel) channelProvider.getTransportChannel(); - channels.add(transportChannel.getChannel()); - if (channelProvider.shouldAutoClose()) { - closeables.add(transportChannel); - } - } + this.subStub = GrpcSubscriberStub.create(subStubSettings); } catch (IOException e) { // doesn't matter what we throw, the Service will just catch it and fail to start. throw new IllegalStateException(e); @@ -334,15 +332,7 @@ public void run() { private void startStreamingConnections() throws IOException { synchronized (streamingSubscriberConnections) { - Credentials credentials = credentialsProvider.getCredentials(); - CallCredentials callCredentials = - credentials == null ? null : MoreCallCredentials.from(credentials); - - for (Channel channel : channels) { - SubscriberStub stub = SubscriberGrpc.newStub(channel); - if (callCredentials != null) { - stub = stub.withCallCredentials(callCredentials); - } + for (int i = 0; i < numPullers; i++) { streamingSubscriberConnections.add( new StreamingSubscriberConnection( subscriptionName, @@ -350,7 +340,8 @@ private void startStreamingConnections() throws IOException { ackExpirationPadding, maxAckExtensionPeriod, ackLatencyDistribution, - stub, + subStub, + i, flowController, outstandingMessageBatches, executor, @@ -425,8 +416,7 @@ public static final class Builder { static final ExecutorProvider DEFAULT_EXECUTOR_PROVIDER = InstantiatingExecutorProvider.newBuilder() .setExecutorThreadCount( - THREADS_PER_CHANNEL - * Runtime.getRuntime().availableProcessors()) + THREADS_PER_CHANNEL * Runtime.getRuntime().availableProcessors()) .build(); String subscriptionName; @@ -579,8 +569,8 @@ public Builder setCredentialsProvider(CredentialsProvider credentialsProvider) { } /** - * Gives the ability to set a custom executor for managing lease extensions. If none - * is provided a shared one will be used by all {@link Subscriber} instances. + * Gives the ability to set a custom executor for managing lease extensions. If none is provided + * a shared one will be used by all {@link Subscriber} instances. */ public Builder setSystemExecutorProvider(ExecutorProvider executorProvider) { this.systemExecutorProvider = Preconditions.checkNotNull(executorProvider); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java index adb1d8720345..2c20529513a7 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java @@ -1,18 +1,27 @@ package com.google.cloud.pubsub.v1; -import com.google.common.truth.Truth; -import io.grpc.Status; -import io.grpc.StatusRuntimeException; +import static com.google.common.truth.Truth.assertThat; + +import com.google.api.gax.grpc.GrpcStatusCode; +import com.google.api.gax.rpc.ApiException; +import io.grpc.Status.Code; import org.junit.Test; public class StatusUtilTest { @Test public void testIsRetryable() { - Truth.assertThat(StatusUtil.isRetryable(new StatusRuntimeException(Status.UNAVAILABLE))) + assertThat( + StatusUtil.isRetryable( + new ApiException("derp", null, GrpcStatusCode.of(Code.UNAVAILABLE), false))) .isTrue(); - Truth.assertThat(StatusUtil.isRetryable(new StatusRuntimeException( - Status.UNAVAILABLE.withDescription("Server shutdownNow invoked")))) + assertThat( + StatusUtil.isRetryable( + new ApiException( + "Server shutdownNow invoked", + null, + GrpcStatusCode.of(Code.UNAVAILABLE), + false))) .isFalse(); } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 2664a4a4163a..68b967e79f76 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -150,7 +150,8 @@ private Builder getTestSubscriberBuilder(MessageReceiver receiver) { return Subscriber.newBuilder(TEST_SUBSCRIPTION, receiver) .setExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) .setSystemExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) - .setChannelProvider(FixedTransportChannelProvider.create(GrpcTransportChannel.create(testChannel))) + .setChannelProvider( + FixedTransportChannelProvider.create(GrpcTransportChannel.create(testChannel))) .setCredentialsProvider(NoCredentialsProvider.create()) .setClock(fakeExecutor.getClock()) .setParallelPullCount(1); From 8efaaa957f5c6155500b9e25b16aef3c2ce54163 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 7 Nov 2018 15:33:45 -0800 Subject: [PATCH 0084/2363] Release google-cloud-java v0.70.0 (#3921) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index e7a9e0dd63ab..e1a2dae7cfb8 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.51.0 + 1.52.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.51.0' +compile 'com.google.cloud:google-cloud-pubsub:1.52.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.52.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index fe6b01e725bb..1278a3e4255a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.51.1-SNAPSHOT + 1.52.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.69.1-alpha-SNAPSHOT + 0.70.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ea390e5f4d9e..aaa762cc0f06 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.33.1-SNAPSHOT + 1.34.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.34.1-SNAPSHOT + 0.35.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ec188eaac298..2307ac68bd32 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.33.1-SNAPSHOT + 1.34.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.34.1-SNAPSHOT + 0.35.0 From c109ec0976a8309b0c86bd6a714e40247721fb42 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 7 Nov 2018 15:36:43 -0800 Subject: [PATCH 0085/2363] Bump next snapshot (#3922) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1278a3e4255a..d76f41f44ddb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.52.0 + 1.52.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.70.0-alpha + 0.70.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index aaa762cc0f06..34cd85312c2d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.34.0 + 1.34.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.35.0 + 0.35.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2307ac68bd32..54f281b38ea5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.34.0 + 1.34.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.35.0 + 0.35.1-SNAPSHOT From bd1662e085296da19398724b53b8f5613930a3e7 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 15 Nov 2018 16:52:33 -0800 Subject: [PATCH 0086/2363] Release v0.71.0 (#3978) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index e1a2dae7cfb8..3aa83f92784e 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.52.0 + 1.53.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.52.0' +compile 'com.google.cloud:google-cloud-pubsub:1.53.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.53.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d76f41f44ddb..59683e7c75b3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.52.1-SNAPSHOT + 1.53.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.70.1-alpha-SNAPSHOT + 0.71.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 34cd85312c2d..2c3a11c38d9d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.34.1-SNAPSHOT + 1.35.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.35.1-SNAPSHOT + 0.36.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 54f281b38ea5..ab461f1ff0f9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.34.1-SNAPSHOT + 1.35.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.35.1-SNAPSHOT + 0.36.0 From 6cb4328aef6f40f16e8578409e2839c88162d8c0 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 16 Nov 2018 09:43:35 -0800 Subject: [PATCH 0087/2363] Bump next snapshot (#3981) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 59683e7c75b3..84605feed463 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.53.0 + 1.53.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.71.0-alpha + 0.71.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2c3a11c38d9d..c2fbd6add984 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.35.0 + 1.35.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.36.0 + 0.36.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ab461f1ff0f9..a36eabb2c4fe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.35.0 + 1.35.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.36.0 + 0.36.1-SNAPSHOT From 3eb859daaf975403ee98800d9e66808b1e3e1496 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Wed, 28 Nov 2018 15:25:45 -0800 Subject: [PATCH 0088/2363] Release v0.72.0 (#4113) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 3aa83f92784e..4ed71cffa838 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.53.0 + 1.54.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.53.0' +compile 'com.google.cloud:google-cloud-pubsub:1.54.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.54.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 84605feed463..065b82b695ce 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.53.1-SNAPSHOT + 1.54.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.71.1-alpha-SNAPSHOT + 0.72.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c2fbd6add984..2dfa267a8a08 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.35.1-SNAPSHOT + 1.36.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.36.1-SNAPSHOT + 0.37.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a36eabb2c4fe..dfe378159b6b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.35.1-SNAPSHOT + 1.36.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.36.1-SNAPSHOT + 0.37.0 From 202d41aa26f5199a313dee5e03e3d5b29acb0079 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 29 Nov 2018 14:28:50 -0800 Subject: [PATCH 0089/2363] Bump next snapshot (#4118) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 065b82b695ce..1d40e8490c0e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.54.0 + 1.54.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.72.0-alpha + 0.72.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2dfa267a8a08..b307245e6b89 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.36.0 + 1.36.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.37.0 + 0.37.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index dfe378159b6b..32ed8d9258f6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.36.0 + 1.36.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.37.0 + 0.37.1-SNAPSHOT From fb934c252a01344101a9dcca64826f465891eabf Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 29 Nov 2018 16:42:00 -0800 Subject: [PATCH 0090/2363] Add lint test and format generated code (#4114) * Add lint Kokoro tests * synthtool will now run the java formatter after generating the files --- java-pubsub/google-cloud-pubsub/synth.py | 27 ++++++++++++++++-------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/synth.py b/java-pubsub/google-cloud-pubsub/synth.py index cadac3a3c528..f8862c71e023 100644 --- a/java-pubsub/google-cloud-pubsub/synth.py +++ b/java-pubsub/google-cloud-pubsub/synth.py @@ -16,16 +16,25 @@ import synthtool as s import synthtool.gcp as gcp +import synthtool.languages.java as java gapic = gcp.GAPICGenerator() -common_templates = gcp.CommonTemplates() -library = gapic.java_library( - service='pubsub', - version='v1', - config_path='/google/pubsub/artman_pubsub.yaml', - artman_output_name='') +service = 'pubsub' +versions = ['v1'] +config_pattern = '/google/pubsub/artman_pubsub.yaml' -s.copy(library / 'gapic-google-cloud-pubsub-v1/src', 'src') -s.copy(library / 'grpc-google-cloud-pubsub-v1/src', '../../google-api-grpc/grpc-google-cloud-pubsub-v1/src') -s.copy(library / 'proto-google-cloud-pubsub-v1/src', '../../google-api-grpc/proto-google-cloud-pubsub-v1/src') +for version in versions: + library = gapic.java_library( + service=service, + version=version, + config_path=config_pattern.format(version=version), + artman_output_name='') + + s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') + s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') + s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') + + java.format_code('./src') + java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') + java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') From 31b6cd2872964ab34b30187788862c76ebbfffbe Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 30 Nov 2018 11:29:29 -0800 Subject: [PATCH 0091/2363] Run google-java-format on all artifacts (#4121) * Run google-java-format on all artifats * Format some missed files * Add more missed files * Fix formatting issues from the merge --- .../cloud/pubsub/v1/AckReplyConsumer.java | 6 +- .../cloud/pubsub/v1/MessageDispatcher.java | 17 +- .../google/cloud/pubsub/v1/MessageWaiter.java | 6 +- .../com/google/cloud/pubsub/v1/Publisher.java | 11 +- .../cloud/pubsub/v1/PublisherStats.java | 2 +- .../google/cloud/pubsub/v1/Subscriber.java | 23 +- .../cloud/pubsub/v1/SubscriberStats.java | 4 +- .../pubsub/v1/SubscriptionAdminClient.java | 30 +- .../cloud/pubsub/v1/TopicAdminClient.java | 34 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 6 +- .../v1/stub/GrpcPublisherCallableFactory.java | 1 - .../stub/GrpcSubscriberCallableFactory.java | 1 - .../pubsub/v1/stub/PublisherStubSettings.java | 18 +- .../v1/stub/SubscriberStubSettings.java | 6 +- .../google/cloud/pubsub/it/ITPubSubTest.java | 6 +- .../v1/FakeScheduledExecutorService.java | 22 +- .../pubsub/v1/MessageDispatcherTest.java | 6 +- .../cloud/pubsub/v1/MessageWaiterTest.java | 24 +- .../cloud/pubsub/v1/PublisherImplTest.java | 3 +- .../com/google/pubsub/v1/PublisherGrpc.java | 938 +++++---- .../com/google/pubsub/v1/SubscriberGrpc.java | 1731 ++++++++++------- .../google/pubsub/v1/AcknowledgeRequest.java | 371 ++-- .../v1/AcknowledgeRequestOrBuilder.java | 24 +- .../pubsub/v1/CreateSnapshotRequest.java | 610 +++--- .../v1/CreateSnapshotRequestOrBuilder.java | 49 +- .../pubsub/v1/DeleteSnapshotRequest.java | 276 +-- .../v1/DeleteSnapshotRequestOrBuilder.java | 10 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 276 +-- .../DeleteSubscriptionRequestOrBuilder.java | 10 +- .../google/pubsub/v1/DeleteTopicRequest.java | 273 +-- .../v1/DeleteTopicRequestOrBuilder.java | 10 +- .../com/google/pubsub/v1/DeletedTopic.java | 10 +- .../google/pubsub/v1/ExpirationPolicy.java | 288 +-- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 9 +- .../google/pubsub/v1/GetSnapshotRequest.java | 273 +-- .../v1/GetSnapshotRequestOrBuilder.java | 10 +- .../pubsub/v1/GetSubscriptionRequest.java | 276 +-- .../v1/GetSubscriptionRequestOrBuilder.java | 10 +- .../com/google/pubsub/v1/GetTopicRequest.java | 269 +-- .../pubsub/v1/GetTopicRequestOrBuilder.java | 10 +- .../pubsub/v1/ListSnapshotsRequest.java | 378 ++-- .../v1/ListSnapshotsRequestOrBuilder.java | 19 +- .../pubsub/v1/ListSnapshotsResponse.java | 424 ++-- .../v1/ListSnapshotsResponseOrBuilder.java | 29 +- .../pubsub/v1/ListSubscriptionsRequest.java | 378 ++-- .../v1/ListSubscriptionsRequestOrBuilder.java | 19 +- .../pubsub/v1/ListSubscriptionsResponse.java | 418 ++-- .../ListSubscriptionsResponseOrBuilder.java | 28 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 378 ++-- .../ListTopicSnapshotsRequestOrBuilder.java | 19 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 377 ++-- .../ListTopicSnapshotsResponseOrBuilder.java | 24 +- .../v1/ListTopicSubscriptionsRequest.java | 388 ++-- ...istTopicSubscriptionsRequestOrBuilder.java | 19 +- .../v1/ListTopicSubscriptionsResponse.java | 387 ++-- ...stTopicSubscriptionsResponseOrBuilder.java | 24 +- .../google/pubsub/v1/ListTopicsRequest.java | 371 ++-- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 19 +- .../google/pubsub/v1/ListTopicsResponse.java | 424 ++-- .../v1/ListTopicsResponseOrBuilder.java | 29 +- .../pubsub/v1/MessageStoragePolicy.java | 314 +-- .../v1/MessageStoragePolicyOrBuilder.java | 17 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 404 ++-- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 26 +- .../pubsub/v1/ModifyPushConfigRequest.java | 368 ++-- .../v1/ModifyPushConfigRequestOrBuilder.java | 16 +- .../com/google/pubsub/v1/ProjectName.java | 22 +- .../google/pubsub/v1/ProjectSnapshotName.java | 27 +- .../pubsub/v1/ProjectSubscriptionName.java | 27 +- .../google/pubsub/v1/ProjectTopicName.java | 26 +- .../com/google/pubsub/v1/PublishRequest.java | 412 ++-- .../pubsub/v1/PublishRequestOrBuilder.java | 29 +- .../com/google/pubsub/v1/PublishResponse.java | 295 +-- .../pubsub/v1/PublishResponseOrBuilder.java | 17 +- .../com/google/pubsub/v1/PubsubMessage.java | 655 ++++--- .../pubsub/v1/PubsubMessageOrBuilder.java | 50 +- .../com/google/pubsub/v1/PubsubProto.java | 1193 ++++++------ .../com/google/pubsub/v1/PullRequest.java | 326 ++-- .../pubsub/v1/PullRequestOrBuilder.java | 14 +- .../com/google/pubsub/v1/PullResponse.java | 341 ++-- .../pubsub/v1/PullResponseOrBuilder.java | 21 +- .../java/com/google/pubsub/v1/PushConfig.java | 520 ++--- .../google/pubsub/v1/PushConfigOrBuilder.java | 42 +- .../com/google/pubsub/v1/ReceivedMessage.java | 361 ++-- .../pubsub/v1/ReceivedMessageOrBuilder.java | 16 +- .../com/google/pubsub/v1/SeekRequest.java | 498 ++--- .../pubsub/v1/SeekRequestOrBuilder.java | 23 +- .../com/google/pubsub/v1/SeekResponse.java | 200 +- .../pubsub/v1/SeekResponseOrBuilder.java | 6 +- .../java/com/google/pubsub/v1/Snapshot.java | 680 ++++--- .../google/pubsub/v1/SnapshotOrBuilder.java | 55 +- .../pubsub/v1/StreamingPullRequest.java | 593 +++--- .../v1/StreamingPullRequestOrBuilder.java | 46 +- .../pubsub/v1/StreamingPullResponse.java | 348 ++-- .../v1/StreamingPullResponseOrBuilder.java | 21 +- .../com/google/pubsub/v1/Subscription.java | 949 +++++---- .../pubsub/v1/SubscriptionOrBuilder.java | 71 +- .../main/java/com/google/pubsub/v1/Topic.java | 614 +++--- .../java/com/google/pubsub/v1/TopicNames.java | 2 - .../com/google/pubsub/v1/TopicOrBuilder.java | 48 +- .../google/pubsub/v1/UntypedTopicName.java | 10 +- .../pubsub/v1/UpdateSnapshotRequest.java | 385 ++-- .../v1/UpdateSnapshotRequestOrBuilder.java | 15 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 397 ++-- .../UpdateSubscriptionRequestOrBuilder.java | 15 +- .../google/pubsub/v1/UpdateTopicRequest.java | 381 ++-- .../v1/UpdateTopicRequestOrBuilder.java | 15 +- 107 files changed, 11914 insertions(+), 9108 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java index d659563f9cef..9fd9bc837c5c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java @@ -16,16 +16,14 @@ package com.google.cloud.pubsub.v1; -/** - * Accepts a reply, sending it to the service. - */ +/** Accepts a reply, sending it to the service. */ public interface AckReplyConsumer { /** * Acknowledges that the message has been successfully processed. The service will not send the * message again. */ void ack(); - + /** * Signals that the message has not been successfully processed. The service should resend the * message. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index cda1eefea4cd..5f5ebbaee204 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -34,7 +34,6 @@ import java.util.Collection; import java.util.Collections; import java.util.Deque; -import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; @@ -345,11 +344,14 @@ public void processReceivedMessages(List messages, Runnable don AckHandler ackHandler = new AckHandler( message.getAckId(), message.getMessage().getSerializedSize(), totalExpiration); - if (pendingMessages.putIfAbsent(message.getAckId(), ackHandler) != null){ - // putIfAbsent puts ackHandler if ackID isn't previously mapped, then return the previously-mapped element. - // If the previous element is not null, we already have the message and the new one is definitely a duplicate. + if (pendingMessages.putIfAbsent(message.getAckId(), ackHandler) != null) { + // putIfAbsent puts ackHandler if ackID isn't previously mapped, then return the + // previously-mapped element. + // If the previous element is not null, we already have the message and the new one is + // definitely a duplicate. // Don't nack this, because that'd also nack the one we already have in queue. - // Don't update the existing one's total expiration either. If the user "loses" the message, we want to eventually + // Don't update the existing one's total expiration either. If the user "loses" the message, + // we want to eventually // totally expire so that pubsub service sends us the message again. continue; } @@ -422,7 +424,10 @@ public void nack() { @Override public void run() { try { - if (ackHandler.totalExpiration.plusSeconds(messageDeadlineSeconds.get()).isBefore(now())) { + if (ackHandler + .totalExpiration + .plusSeconds(messageDeadlineSeconds.get()) + .isBefore(now())) { // Message expired while waiting. We don't extend these messages anymore, // so it was probably sent to someone else. Don't work on it. // Don't nack it either, because we'd be nacking someone else's message. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java index 1fc2cf7a7720..c4a0651da6fa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java @@ -19,9 +19,7 @@ import com.google.api.core.InternalApi; import java.util.concurrent.atomic.AtomicBoolean; -/** - * A barrier kind of object that helps to keep track and synchronously wait on pending messages. - */ +/** A barrier kind of object that helps to keep track and synchronously wait on pending messages. */ class MessageWaiter { private int pendingMessages; @@ -64,4 +62,4 @@ synchronized void waitNoMessages(AtomicBoolean waitReached) { public int pendingMessages() { return pendingMessages; } -} \ No newline at end of file +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 53e36d791fd4..557a483073de 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -72,9 +72,8 @@ *

  • Retries: such as the maximum duration of retries for a failing batch of messages. * * - *

    {@link Publisher} will use the credentials set on the channel, which uses - * application default credentials through {@link GoogleCredentials#getApplicationDefault} - * by default. + *

    {@link Publisher} will use the credentials set on the channel, which uses application default + * credentials through {@link GoogleCredentials#getApplicationDefault} by default. */ public class Publisher { private static final Logger logger = Logger.getLogger(Publisher.class.getName()); @@ -287,9 +286,9 @@ public void run() { } /** - * Publish any outstanding batches if non-empty. This method sends buffered messages, but does - * not wait for the send operations to complete. To wait for messages to send, call {@code get} - * on the futures returned from {@code publish}. + * Publish any outstanding batches if non-empty. This method sends buffered messages, but does not + * wait for the send operations to complete. To wait for messages to send, call {@code get} on the + * futures returned from {@code publish}. */ public void publishAllOutstanding() { messagesBatchLock.lock(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java index a208bebb6cd1..197eb5d96453 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java @@ -41,7 +41,7 @@ public static Builder newBuilder() { } @AutoValue.Builder - public static abstract class Builder { + public abstract static class Builder { public abstract Builder setAckedMessages(long value); public abstract Builder setFailedMessages(long value); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 72a90e54ee27..41d60c3a2bc9 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -18,6 +18,7 @@ import com.google.api.core.AbstractApiService; import com.google.api.core.ApiClock; +import com.google.api.core.ApiFunction; import com.google.api.core.ApiService; import com.google.api.core.BetaApi; import com.google.api.core.CurrentMillisClock; @@ -33,6 +34,7 @@ import com.google.api.gax.rpc.HeaderProvider; import com.google.api.gax.rpc.NoHeaderProvider; import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; import com.google.auth.oauth2.GoogleCredentials; import com.google.cloud.pubsub.v1.stub.GrpcSubscriberStub; import com.google.cloud.pubsub.v1.stub.SubscriberStub; @@ -49,10 +51,8 @@ import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; -import com.google.api.gax.rpc.UnaryCallSettings; import javax.annotation.Nullable; import org.threeten.bp.Duration; -import com.google.api.core.ApiFunction; /** * A Cloud Pub/Sub subscriber that is @@ -179,13 +179,14 @@ public void close() throws IOException { .setCredentialsProvider(builder.credentialsProvider) .setTransportChannelProvider(channelProvider) .setHeaderProvider(builder.headerProvider) - .applyToAllUnaryMethods(new ApiFunction, Void>() { - @Override - public Void apply(UnaryCallSettings.Builder settingsBuilder) { - settingsBuilder.setSimpleTimeoutNoRetries(UNARY_TIMEOUT); - return null; - } - }) + .applyToAllUnaryMethods( + new ApiFunction, Void>() { + @Override + public Void apply(UnaryCallSettings.Builder settingsBuilder) { + settingsBuilder.setSimpleTimeoutNoRetries(UNARY_TIMEOUT); + return null; + } + }) .build(); // TODO(pongad): what about internal header?? } catch (Exception e) { @@ -577,9 +578,7 @@ public Builder setSystemExecutorProvider(ExecutorProvider executorProvider) { return this; } - /** - * Sets the number of pullers used to pull messages from the subscription. Defaults to one. - */ + /** Sets the number of pullers used to pull messages from the subscription. Defaults to one. */ public Builder setParallelPullCount(int parallelPullCount) { this.parallelPullCount = parallelPullCount; return this; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java index 21151493e186..527d73076997 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java @@ -26,7 +26,7 @@ abstract class SubscriberStats { @AutoValue - //TODO: Finish implementation. + // TODO: Finish implementation. public abstract static class Stats {} /** Number of successfully published messages. */ @@ -58,7 +58,7 @@ public static Builder newBuilder() { } @AutoValue.Builder - public static abstract class Builder { + public abstract static class Builder { public abstract Builder setReceivedMessages(long value); public abstract Builder setAckedMessages(long value); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 09e701e1b7c8..6e7b3ac7f973 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -96,13 +96,13 @@ * methods: * *

      - *
    1. A "flattened" method. With this type of method, the fields of the request type have been + *
    2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
    3. A "request object" method. This type of method only takes one parameter, a request object, + *
    4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
    5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
    6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
    * @@ -2170,7 +2170,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListSubscriptionsPagedResponse extends AbstractPagedListResponse< - ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage, + ListSubscriptionsRequest, + ListSubscriptionsResponse, + Subscription, + ListSubscriptionsPage, ListSubscriptionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2195,7 +2198,9 @@ private ListSubscriptionsPagedResponse(ListSubscriptionsPage page) { public static class ListSubscriptionsPage extends AbstractPage< - ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, + ListSubscriptionsRequest, + ListSubscriptionsResponse, + Subscription, ListSubscriptionsPage> { private ListSubscriptionsPage( @@ -2225,7 +2230,10 @@ public ApiFuture createPageAsync( public static class ListSubscriptionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription, ListSubscriptionsPage, + ListSubscriptionsRequest, + ListSubscriptionsResponse, + Subscription, + ListSubscriptionsPage, ListSubscriptionsFixedSizeCollection> { private ListSubscriptionsFixedSizeCollection( @@ -2246,7 +2254,10 @@ protected ListSubscriptionsFixedSizeCollection createCollection( public static class ListSnapshotsPagedResponse extends AbstractPagedListResponse< - ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage, + ListSnapshotsRequest, + ListSnapshotsResponse, + Snapshot, + ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2300,7 +2311,10 @@ public ApiFuture createPageAsync( public static class ListSnapshotsFixedSizeCollection extends AbstractFixedSizeCollection< - ListSnapshotsRequest, ListSnapshotsResponse, Snapshot, ListSnapshotsPage, + ListSnapshotsRequest, + ListSnapshotsResponse, + Snapshot, + ListSnapshotsPage, ListSnapshotsFixedSizeCollection> { private ListSnapshotsFixedSizeCollection(List pages, int collectionSize) { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 40311e25609b..073e1f2750c1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -80,13 +80,13 @@ * methods: * *
      - *
    1. A "flattened" method. With this type of method, the fields of the request type have been + *
    2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
    3. A "request object" method. This type of method only takes one parameter, a request object, + *
    4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
    5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
    6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
    * @@ -1171,7 +1171,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListTopicsPagedResponse extends AbstractPagedListResponse< - ListTopicsRequest, ListTopicsResponse, Topic, ListTopicsPage, + ListTopicsRequest, + ListTopicsResponse, + Topic, + ListTopicsPage, ListTopicsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1224,7 +1227,10 @@ public ApiFuture createPageAsync( public static class ListTopicsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTopicsRequest, ListTopicsResponse, Topic, ListTopicsPage, + ListTopicsRequest, + ListTopicsResponse, + Topic, + ListTopicsPage, ListTopicsFixedSizeCollection> { private ListTopicsFixedSizeCollection(List pages, int collectionSize) { @@ -1244,8 +1250,11 @@ protected ListTopicsFixedSizeCollection createCollection( public static class ListTopicSubscriptionsPagedResponse extends AbstractPagedListResponse< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, - ListTopicSubscriptionsPage, ListTopicSubscriptionsFixedSizeCollection> { + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, + String, + ListTopicSubscriptionsPage, + ListTopicSubscriptionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, @@ -1280,7 +1289,9 @@ public ProjectSubscriptionName apply(String arg0) { public static class ListTopicSubscriptionsPage extends AbstractPage< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, + String, ListTopicSubscriptionsPage> { private ListTopicSubscriptionsPage( @@ -1332,8 +1343,11 @@ public ProjectSubscriptionName apply(String arg0) { public static class ListTopicSubscriptionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String, - ListTopicSubscriptionsPage, ListTopicSubscriptionsFixedSizeCollection> { + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, + String, + ListTopicSubscriptionsPage, + ListTopicSubscriptionsFixedSizeCollection> { private ListTopicSubscriptionsFixedSizeCollection( List pages, int collectionSize) { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 31edd6c2a2d9..f30593c608b1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -107,7 +107,8 @@ public UnaryCallSettings getTopicSettings() { /** Returns the object with the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return ((PublisherStubSettings) getStubSettings()).listTopicSubscriptionsSettings(); @@ -259,7 +260,8 @@ public UnaryCallSettings.Builder getTopicSettings() { /** Returns the builder for the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings.Builder< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return getStubSettingsBuilder().listTopicSubscriptionsSettings(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index 12e3350069cd..d12b34c6a4da 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 22f77732138d..c3f529bdcd1d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 287fbf8a8864..4214080d9433 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -117,7 +117,8 @@ public class PublisherStubSettings extends StubSettings { private final PagedCallSettings listTopicsSettings; private final PagedCallSettings< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings; private final UnaryCallSettings deleteTopicSettings; @@ -154,7 +155,8 @@ public UnaryCallSettings getTopicSettings() { /** Returns the object with the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return listTopicSubscriptionsSettings; @@ -352,11 +354,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> LIST_TOPIC_SUBSCRIPTIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -451,7 +455,8 @@ public static class Builder extends StubSettings.Builder listTopicsSettings; private final PagedCallSettings.Builder< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings; private final UnaryCallSettings.Builder deleteTopicSettings; @@ -715,7 +720,8 @@ public UnaryCallSettings.Builder getTopicSettings() { /** Returns the builder for the settings used for calls to listTopicSubscriptions. */ public PagedCallSettings.Builder< - ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings() { return listTopicSubscriptionsSettings; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index c8f6ad9bc191..7072eb0a55eb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -267,8 +267,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde /** Returns a builder for the default ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(20<<20); // 20MB + return InstantiatingGrpcChannelProvider.newBuilder().setMaxInboundMessageSize(20 << 20); // 20MB } public static TransportChannelProvider defaultTransportChannelProvider() { @@ -398,7 +397,8 @@ public Iterable extractResources(ListSnapshotsResponse payload) { ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> LIST_SUBSCRIPTIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListSubscriptionsRequest, ListSubscriptionsResponse, + ListSubscriptionsRequest, + ListSubscriptionsResponse, ListSubscriptionsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java index de4ca4872459..61e04c666796 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java @@ -85,7 +85,8 @@ private String formatForTest(String resourceName) { @Test public void testTopicPolicy() { - ProjectTopicName topicName = ProjectTopicName.of(projectId, formatForTest("testing-topic-policy")); + ProjectTopicName topicName = + ProjectTopicName.of(projectId, formatForTest("testing-topic-policy")); topicAdminClient.createTopic(topicName); Policy policy = topicAdminClient.getIamPolicy(topicName.toString()); @@ -111,7 +112,8 @@ public void testPublishSubscribe() throws Exception { ProjectTopicName topicName = ProjectTopicName.of(projectId, formatForTest("testing-publish-subscribe-topic")); ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, formatForTest("testing-publish-subscribe-subscription")); + ProjectSubscriptionName.of( + projectId, formatForTest("testing-publish-subscribe-subscription")); topicAdminClient.createTopic(topicName); subscriptionAdminClient.createSubscription( diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java index 13704b27d1b0..b0ac68aa220e 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java @@ -71,7 +71,9 @@ public ScheduledFuture scheduleAtFixedRate( Runnable command, long initialDelay, long period, TimeUnit unit) { return schedulePendingCallable( new PendingCallable<>( - Duration.ofMillis(unit.toMillis(initialDelay)), command, PendingCallableType.FIXED_RATE)); + Duration.ofMillis(unit.toMillis(initialDelay)), + command, + PendingCallableType.FIXED_RATE)); } @Override @@ -79,14 +81,16 @@ public ScheduledFuture scheduleWithFixedDelay( Runnable command, long initialDelay, long delay, TimeUnit unit) { return schedulePendingCallable( new PendingCallable<>( - Duration.ofMillis(unit.toMillis(initialDelay)), command, PendingCallableType.FIXED_DELAY)); + Duration.ofMillis(unit.toMillis(initialDelay)), + command, + PendingCallableType.FIXED_DELAY)); } /** - * This allows for adding expectations on future work to be scheduled ( - * {@link FakeScheduledExecutorService#schedule} - * or {@link FakeScheduledExecutorService#scheduleAtFixedRate} - * or {@link FakeScheduledExecutorService#scheduleWithFixedDelay}) based on its delay. + * This allows for adding expectations on future work to be scheduled ( {@link + * FakeScheduledExecutorService#schedule} or {@link + * FakeScheduledExecutorService#scheduleAtFixedRate} or {@link + * FakeScheduledExecutorService#scheduleWithFixedDelay}) based on its delay. */ public void setupScheduleExpectation(Duration delay) { synchronized (expectedWorkQueue) { @@ -123,7 +127,7 @@ public void advanceTime(Duration toAdvance) { private void work() { Instant cmpTime = Instant.ofEpochMilli(clock.millisTime()); - for (;;) { + for (; ; ) { PendingCallable callable = null; synchronized (pendingCallables) { if (pendingCallables.isEmpty() @@ -271,8 +275,8 @@ ScheduledFuture getScheduledFuture() { return new ScheduledFuture() { @Override public long getDelay(TimeUnit unit) { - return unit.convert(getScheduledTime().toEpochMilli() - clock.millisTime(), - TimeUnit.MILLISECONDS); + return unit.convert( + getScheduledTime().toEpochMilli() - clock.millisTime(), TimeUnit.MILLISECONDS); } @Override diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 75296dd89c87..785368bb13cb 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -105,9 +105,9 @@ public void sendAckOperations( flowController = new FlowController( FlowControlSettings.newBuilder() - .setMaxOutstandingElementCount(1L) - .setLimitExceededBehavior(FlowController.LimitExceededBehavior.ThrowException) - .build()); + .setMaxOutstandingElementCount(1L) + .setLimitExceededBehavior(FlowController.LimitExceededBehavior.ThrowException) + .build()); dispatcher = new MessageDispatcher( diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java index c2845b54b265..5588ebec59e1 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java @@ -23,9 +23,7 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** - * Tests for {@link MessageWaiter}. - */ +/** Tests for {@link MessageWaiter}. */ @RunWith(JUnit4.class) public class MessageWaiterTest { @@ -36,15 +34,17 @@ public void test() throws Exception { final AtomicBoolean waitReached = new AtomicBoolean(); - Thread t = new Thread(new Runnable(){ - @Override - public void run() { - while (!waitReached.get()) { - Thread.yield(); - } - waiter.incrementPendingMessages(-1); - } - }); + Thread t = + new Thread( + new Runnable() { + @Override + public void run() { + while (!waitReached.get()) { + Thread.yield(); + } + waiter.incrementPendingMessages(-1); + } + }); t.start(); waiter.waitNoMessages(waitReached); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 3cded21fac80..2901ae4b0a9d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -53,7 +53,8 @@ @RunWith(JUnit4.class) public class PublisherImplTest { - private static final ProjectTopicName TEST_TOPIC = ProjectTopicName.of("test-project", "test-topic"); + private static final ProjectTopicName TEST_TOPIC = + ProjectTopicName.of("test-project", "test-topic"); private static final ExecutorProvider SINGLE_THREAD_EXECUTOR = InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(1).build(); diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 4346349b23b2..184216ee2412 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,21 +1,15 @@ package com.google.pubsub.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; import static io.grpc.stub.ClientCalls.blockingUnaryCall; import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** + * + * *
      * The service that an application uses to manipulate topics, and to send
      * messages to a topic.
    @@ -32,305 +26,411 @@ private PublisherGrpc() {}
     
       // Static method descriptors that strictly reflect the proto.
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getCreateTopicMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_CREATE_TOPIC = getCreateTopicMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getCreateTopicMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic>
    +      METHOD_CREATE_TOPIC = getCreateTopicMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getCreateTopicMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic>
    +      getCreateTopicMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getCreateTopicMethod() {
    +  public static io.grpc.MethodDescriptor
    +      getCreateTopicMethod() {
         return getCreateTopicMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getCreateTopicMethodHelper() {
    -    io.grpc.MethodDescriptor getCreateTopicMethod;
    +  private static io.grpc.MethodDescriptor
    +      getCreateTopicMethodHelper() {
    +    io.grpc.MethodDescriptor
    +        getCreateTopicMethod;
         if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) {
           synchronized (PublisherGrpc.class) {
             if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) {
    -          PublisherGrpc.getCreateTopicMethod = getCreateTopicMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Publisher", "CreateTopic"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Topic.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Topic.getDefaultInstance()))
    -                  .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("CreateTopic"))
    -                  .build();
    -          }
    +          PublisherGrpc.getCreateTopicMethod =
    +              getCreateTopicMethod =
    +                  io.grpc.MethodDescriptor
    +                      .newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Publisher", "CreateTopic"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Topic.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Topic.getDefaultInstance()))
    +                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("CreateTopic"))
    +                      .build();
             }
    -     }
    -     return getCreateTopicMethod;
    +      }
    +    }
    +    return getCreateTopicMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getUpdateTopicMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_UPDATE_TOPIC = getUpdateTopicMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getUpdateTopicMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>
    +      METHOD_UPDATE_TOPIC = getUpdateTopicMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getUpdateTopicMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>
    +      getUpdateTopicMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getUpdateTopicMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>
    +      getUpdateTopicMethod() {
         return getUpdateTopicMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getUpdateTopicMethodHelper() {
    -    io.grpc.MethodDescriptor getUpdateTopicMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>
    +      getUpdateTopicMethodHelper() {
    +    io.grpc.MethodDescriptor
    +        getUpdateTopicMethod;
         if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) {
           synchronized (PublisherGrpc.class) {
             if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) {
    -          PublisherGrpc.getUpdateTopicMethod = getUpdateTopicMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Publisher", "UpdateTopic"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Topic.getDefaultInstance()))
    -                  .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("UpdateTopic"))
    -                  .build();
    -          }
    +          PublisherGrpc.getUpdateTopicMethod =
    +              getUpdateTopicMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Publisher", "UpdateTopic"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.UpdateTopicRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Topic.getDefaultInstance()))
    +                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("UpdateTopic"))
    +                      .build();
             }
    -     }
    -     return getUpdateTopicMethod;
    +      }
    +    }
    +    return getUpdateTopicMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getPublishMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_PUBLISH = getPublishMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getPublishMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
    +      METHOD_PUBLISH = getPublishMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getPublishMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
    +      getPublishMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getPublishMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
    +      getPublishMethod() {
         return getPublishMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getPublishMethodHelper() {
    -    io.grpc.MethodDescriptor getPublishMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
    +      getPublishMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>
    +        getPublishMethod;
         if ((getPublishMethod = PublisherGrpc.getPublishMethod) == null) {
           synchronized (PublisherGrpc.class) {
             if ((getPublishMethod = PublisherGrpc.getPublishMethod) == null) {
    -          PublisherGrpc.getPublishMethod = getPublishMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Publisher", "Publish"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.PublishRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.PublishResponse.getDefaultInstance()))
    -                  .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("Publish"))
    -                  .build();
    -          }
    +          PublisherGrpc.getPublishMethod =
    +              getPublishMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Publisher", "Publish"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.PublishRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.PublishResponse.getDefaultInstance()))
    +                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("Publish"))
    +                      .build();
             }
    -     }
    -     return getPublishMethod;
    +      }
    +    }
    +    return getPublishMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getGetTopicMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_GET_TOPIC = getGetTopicMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getGetTopicMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>
    +      METHOD_GET_TOPIC = getGetTopicMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getGetTopicMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>
    +      getGetTopicMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getGetTopicMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>
    +      getGetTopicMethod() {
         return getGetTopicMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getGetTopicMethodHelper() {
    -    io.grpc.MethodDescriptor getGetTopicMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>
    +      getGetTopicMethodHelper() {
    +    io.grpc.MethodDescriptor
    +        getGetTopicMethod;
         if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) {
           synchronized (PublisherGrpc.class) {
             if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) {
    -          PublisherGrpc.getGetTopicMethod = getGetTopicMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Publisher", "GetTopic"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.GetTopicRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Topic.getDefaultInstance()))
    -                  .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("GetTopic"))
    -                  .build();
    -          }
    +          PublisherGrpc.getGetTopicMethod =
    +              getGetTopicMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Publisher", "GetTopic"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.GetTopicRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Topic.getDefaultInstance()))
    +                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("GetTopic"))
    +                      .build();
             }
    -     }
    -     return getGetTopicMethod;
    +      }
    +    }
    +    return getGetTopicMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getListTopicsMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_LIST_TOPICS = getListTopicsMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getListTopicsMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
    +      METHOD_LIST_TOPICS = getListTopicsMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getListTopicsMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
    +      getListTopicsMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getListTopicsMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
    +      getListTopicsMethod() {
         return getListTopicsMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getListTopicsMethodHelper() {
    -    io.grpc.MethodDescriptor getListTopicsMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
    +      getListTopicsMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>
    +        getListTopicsMethod;
         if ((getListTopicsMethod = PublisherGrpc.getListTopicsMethod) == null) {
           synchronized (PublisherGrpc.class) {
             if ((getListTopicsMethod = PublisherGrpc.getListTopicsMethod) == null) {
    -          PublisherGrpc.getListTopicsMethod = getListTopicsMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Publisher", "ListTopics"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance()))
    -                  .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopics"))
    -                  .build();
    -          }
    +          PublisherGrpc.getListTopicsMethod =
    +              getListTopicsMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Publisher", "ListTopics"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ListTopicsResponse.getDefaultInstance()))
    +                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopics"))
    +                      .build();
             }
    -     }
    -     return getListTopicsMethod;
    +      }
    +    }
    +    return getListTopicsMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getListTopicSubscriptionsMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_LIST_TOPIC_SUBSCRIPTIONS = getListTopicSubscriptionsMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getListTopicSubscriptionsMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicSubscriptionsRequest,
    +          com.google.pubsub.v1.ListTopicSubscriptionsResponse>
    +      METHOD_LIST_TOPIC_SUBSCRIPTIONS = getListTopicSubscriptionsMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getListTopicSubscriptionsMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicSubscriptionsRequest,
    +          com.google.pubsub.v1.ListTopicSubscriptionsResponse>
    +      getListTopicSubscriptionsMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getListTopicSubscriptionsMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicSubscriptionsRequest,
    +          com.google.pubsub.v1.ListTopicSubscriptionsResponse>
    +      getListTopicSubscriptionsMethod() {
         return getListTopicSubscriptionsMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getListTopicSubscriptionsMethodHelper() {
    -    io.grpc.MethodDescriptor getListTopicSubscriptionsMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicSubscriptionsRequest,
    +          com.google.pubsub.v1.ListTopicSubscriptionsResponse>
    +      getListTopicSubscriptionsMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.ListTopicSubscriptionsRequest,
    +            com.google.pubsub.v1.ListTopicSubscriptionsResponse>
    +        getListTopicSubscriptionsMethod;
         if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod) == null) {
           synchronized (PublisherGrpc.class) {
    -        if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod) == null) {
    -          PublisherGrpc.getListTopicSubscriptionsMethod = getListTopicSubscriptionsMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Publisher", "ListTopicSubscriptions"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance()))
    -                  .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopicSubscriptions"))
    -                  .build();
    -          }
    +        if ((getListTopicSubscriptionsMethod = PublisherGrpc.getListTopicSubscriptionsMethod)
    +            == null) {
    +          PublisherGrpc.getListTopicSubscriptionsMethod =
    +              getListTopicSubscriptionsMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(
    +                              "google.pubsub.v1.Publisher", "ListTopicSubscriptions"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ListTopicSubscriptionsRequest
    +                                  .getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ListTopicSubscriptionsResponse
    +                                  .getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new PublisherMethodDescriptorSupplier("ListTopicSubscriptions"))
    +                      .build();
             }
    -     }
    -     return getListTopicSubscriptionsMethod;
    +      }
    +    }
    +    return getListTopicSubscriptionsMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getListTopicSnapshotsMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_LIST_TOPIC_SNAPSHOTS = getListTopicSnapshotsMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getListTopicSnapshotsMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicSnapshotsRequest,
    +          com.google.pubsub.v1.ListTopicSnapshotsResponse>
    +      METHOD_LIST_TOPIC_SNAPSHOTS = getListTopicSnapshotsMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getListTopicSnapshotsMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicSnapshotsRequest,
    +          com.google.pubsub.v1.ListTopicSnapshotsResponse>
    +      getListTopicSnapshotsMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getListTopicSnapshotsMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicSnapshotsRequest,
    +          com.google.pubsub.v1.ListTopicSnapshotsResponse>
    +      getListTopicSnapshotsMethod() {
         return getListTopicSnapshotsMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getListTopicSnapshotsMethodHelper() {
    -    io.grpc.MethodDescriptor getListTopicSnapshotsMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListTopicSnapshotsRequest,
    +          com.google.pubsub.v1.ListTopicSnapshotsResponse>
    +      getListTopicSnapshotsMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.ListTopicSnapshotsRequest,
    +            com.google.pubsub.v1.ListTopicSnapshotsResponse>
    +        getListTopicSnapshotsMethod;
         if ((getListTopicSnapshotsMethod = PublisherGrpc.getListTopicSnapshotsMethod) == null) {
           synchronized (PublisherGrpc.class) {
             if ((getListTopicSnapshotsMethod = PublisherGrpc.getListTopicSnapshotsMethod) == null) {
    -          PublisherGrpc.getListTopicSnapshotsMethod = getListTopicSnapshotsMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Publisher", "ListTopicSnapshots"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()))
    -                  .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("ListTopicSnapshots"))
    -                  .build();
    -          }
    +          PublisherGrpc.getListTopicSnapshotsMethod =
    +              getListTopicSnapshotsMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(
    +                              "google.pubsub.v1.Publisher", "ListTopicSnapshots"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new PublisherMethodDescriptorSupplier("ListTopicSnapshots"))
    +                      .build();
             }
    -     }
    -     return getListTopicSnapshotsMethod;
    +      }
    +    }
    +    return getListTopicSnapshotsMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getDeleteTopicMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_DELETE_TOPIC = getDeleteTopicMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getDeleteTopicMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>
    +      METHOD_DELETE_TOPIC = getDeleteTopicMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getDeleteTopicMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>
    +      getDeleteTopicMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getDeleteTopicMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>
    +      getDeleteTopicMethod() {
         return getDeleteTopicMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getDeleteTopicMethodHelper() {
    -    io.grpc.MethodDescriptor getDeleteTopicMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>
    +      getDeleteTopicMethodHelper() {
    +    io.grpc.MethodDescriptor
    +        getDeleteTopicMethod;
         if ((getDeleteTopicMethod = PublisherGrpc.getDeleteTopicMethod) == null) {
           synchronized (PublisherGrpc.class) {
             if ((getDeleteTopicMethod = PublisherGrpc.getDeleteTopicMethod) == null) {
    -          PublisherGrpc.getDeleteTopicMethod = getDeleteTopicMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Publisher", "DeleteTopic"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.protobuf.Empty.getDefaultInstance()))
    -                  .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("DeleteTopic"))
    -                  .build();
    -          }
    +          PublisherGrpc.getDeleteTopicMethod =
    +              getDeleteTopicMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Publisher", "DeleteTopic"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.protobuf.Empty.getDefaultInstance()))
    +                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("DeleteTopic"))
    +                      .build();
             }
    -     }
    -     return getDeleteTopicMethod;
    +      }
    +    }
    +    return getDeleteTopicMethod;
       }
     
    -  /**
    -   * Creates a new async stub that supports all call types for the service
    -   */
    +  /** Creates a new async stub that supports all call types for the service */
       public static PublisherStub newStub(io.grpc.Channel channel) {
         return new PublisherStub(channel);
       }
    @@ -338,91 +438,110 @@ public static PublisherStub newStub(io.grpc.Channel channel) {
       /**
        * Creates a new blocking-style stub that supports unary and streaming output calls on the service
        */
    -  public static PublisherBlockingStub newBlockingStub(
    -      io.grpc.Channel channel) {
    +  public static PublisherBlockingStub newBlockingStub(io.grpc.Channel channel) {
         return new PublisherBlockingStub(channel);
       }
     
    -  /**
    -   * Creates a new ListenableFuture-style stub that supports unary calls on the service
    -   */
    -  public static PublisherFutureStub newFutureStub(
    -      io.grpc.Channel channel) {
    +  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
    +  public static PublisherFutureStub newFutureStub(io.grpc.Channel channel) {
         return new PublisherFutureStub(channel);
       }
     
       /**
    +   *
    +   *
        * 
        * The service that an application uses to manipulate topics, and to send
        * messages to a topic.
        * 
    */ - public static abstract class PublisherImplBase implements io.grpc.BindableService { + public abstract static class PublisherImplBase implements io.grpc.BindableService { /** + * + * *
          * Creates the given topic with the given name. See the
          * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
          * 
    */ - public void createTopic(com.google.pubsub.v1.Topic request, + public void createTopic( + com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getCreateTopicMethodHelper(), responseObserver); } /** + * + * *
          * Updates an existing topic. Note that certain properties of a
          * topic are not modifiable.
          * 
    */ - public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, + public void updateTopic( + com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getUpdateTopicMethodHelper(), responseObserver); } /** + * + * *
          * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
          * does not exist.
          * 
    */ - public void publish(com.google.pubsub.v1.PublishRequest request, + public void publish( + com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getPublishMethodHelper(), responseObserver); } /** + * + * *
          * Gets the configuration of a topic.
          * 
    */ - public void getTopic(com.google.pubsub.v1.GetTopicRequest request, + public void getTopic( + com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getGetTopicMethodHelper(), responseObserver); } /** + * + * *
          * Lists matching topics.
          * 
    */ - public void listTopics(com.google.pubsub.v1.ListTopicsRequest request, + public void listTopics( + com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getListTopicsMethodHelper(), responseObserver); } /** + * + * *
          * Lists the names of the subscriptions on this topic.
          * 
    */ - public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listTopicSubscriptions( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethodHelper(), responseObserver); } /** + * + * *
          * Lists the names of the snapshots on this topic.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -430,12 +549,16 @@ public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRe
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listTopicSnapshots( + com.google.pubsub.v1.ListTopicSnapshotsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnimplementedUnaryCall(getListTopicSnapshotsMethodHelper(), responseObserver); } /** + * + * *
          * 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
    @@ -444,74 +567,71 @@ public void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest re
          * not deleted, but their `topic` field is set to `_deleted-topic_`.
          * 
    */ - public void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request, + public void deleteTopic( + com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getDeleteTopicMethodHelper(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateTopicMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.Topic, - com.google.pubsub.v1.Topic>( - this, METHODID_CREATE_TOPIC))) + getCreateTopicMethodHelper(), + asyncUnaryCall( + new MethodHandlers( + this, METHODID_CREATE_TOPIC))) .addMethod( - getUpdateTopicMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateTopicRequest, - com.google.pubsub.v1.Topic>( - this, METHODID_UPDATE_TOPIC))) + getUpdateTopicMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>( + this, METHODID_UPDATE_TOPIC))) .addMethod( - getPublishMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.PublishRequest, - com.google.pubsub.v1.PublishResponse>( - this, METHODID_PUBLISH))) + getPublishMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>( + this, METHODID_PUBLISH))) .addMethod( - getGetTopicMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetTopicRequest, - com.google.pubsub.v1.Topic>( - this, METHODID_GET_TOPIC))) + getGetTopicMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>( + this, METHODID_GET_TOPIC))) .addMethod( - getListTopicsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicsRequest, - com.google.pubsub.v1.ListTopicsResponse>( - this, METHODID_LIST_TOPICS))) + getListTopicsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicsRequest, + com.google.pubsub.v1.ListTopicsResponse>(this, METHODID_LIST_TOPICS))) .addMethod( - getListTopicSubscriptionsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicSubscriptionsRequest, - com.google.pubsub.v1.ListTopicSubscriptionsResponse>( - this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) + getListTopicSubscriptionsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicSubscriptionsRequest, + com.google.pubsub.v1.ListTopicSubscriptionsResponse>( + this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) .addMethod( - getListTopicSnapshotsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicSnapshotsRequest, - com.google.pubsub.v1.ListTopicSnapshotsResponse>( - this, METHODID_LIST_TOPIC_SNAPSHOTS))) + getListTopicSnapshotsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListTopicSnapshotsRequest, + com.google.pubsub.v1.ListTopicSnapshotsResponse>( + this, METHODID_LIST_TOPIC_SNAPSHOTS))) .addMethod( - getDeleteTopicMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteTopicRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_TOPIC))) + getDeleteTopicMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_TOPIC))) .build(); } } /** + * + * *
        * The service that an application uses to manipulate topics, and to send
        * messages to a topic.
    @@ -522,87 +642,118 @@ private PublisherStub(io.grpc.Channel channel) {
           super(channel);
         }
     
    -    private PublisherStub(io.grpc.Channel channel,
    -        io.grpc.CallOptions callOptions) {
    +    private PublisherStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
           super(channel, callOptions);
         }
     
         @java.lang.Override
    -    protected PublisherStub build(io.grpc.Channel channel,
    -        io.grpc.CallOptions callOptions) {
    +    protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
           return new PublisherStub(channel, callOptions);
         }
     
         /**
    +     *
    +     *
          * 
          * Creates the given topic with the given name. See the
          * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
          * 
    */ - public void createTopic(com.google.pubsub.v1.Topic request, + public void createTopic( + com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateTopicMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateTopicMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Updates an existing topic. Note that certain properties of a
          * topic are not modifiable.
          * 
    */ - public void updateTopic(com.google.pubsub.v1.UpdateTopicRequest request, + public void updateTopic( + com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getUpdateTopicMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateTopicMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
          * does not exist.
          * 
    */ - public void publish(com.google.pubsub.v1.PublishRequest request, + public void publish( + com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getPublishMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getPublishMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Gets the configuration of a topic.
          * 
    */ - public void getTopic(com.google.pubsub.v1.GetTopicRequest request, + public void getTopic( + com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetTopicMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetTopicMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Lists matching topics.
          * 
    */ - public void listTopics(com.google.pubsub.v1.ListTopicsRequest request, + public void listTopics( + com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListTopicsMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListTopicsMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Lists the names of the subscriptions on this topic.
          * 
    */ - public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listTopicSubscriptions( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListTopicSubscriptionsMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Lists the names of the snapshots on this topic.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -610,13 +761,19 @@ public void listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRe
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listTopicSnapshots( + com.google.pubsub.v1.ListTopicSnapshotsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnaryCall( - getChannel().newCall(getListTopicSnapshotsMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListTopicSnapshotsMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * 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
    @@ -625,36 +782,43 @@ public void listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest re
          * not deleted, but their `topic` field is set to `_deleted-topic_`.
          * 
    */ - public void deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request, + public void deleteTopic( + com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteTopicMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteTopicMethodHelper(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
        * The service that an application uses to manipulate topics, and to send
        * messages to a topic.
        * 
    */ - public static final class PublisherBlockingStub extends io.grpc.stub.AbstractStub { + public static final class PublisherBlockingStub + extends io.grpc.stub.AbstractStub { private PublisherBlockingStub(io.grpc.Channel channel) { super(channel); } - private PublisherBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + private PublisherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PublisherBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + protected PublisherBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PublisherBlockingStub(channel, callOptions); } /** + * + * *
          * Creates the given topic with the given name. See the
          * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    @@ -666,6 +830,8 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request
         }
     
         /**
    +     *
    +     *
          * 
          * Updates an existing topic. Note that certain properties of a
          * topic are not modifiable.
    @@ -677,47 +843,58 @@ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRe
         }
     
         /**
    +     *
    +     *
          * 
          * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
          * does not exist.
          * 
    */ - public com.google.pubsub.v1.PublishResponse publish(com.google.pubsub.v1.PublishRequest request) { - return blockingUnaryCall( - getChannel(), getPublishMethodHelper(), getCallOptions(), request); + public com.google.pubsub.v1.PublishResponse publish( + com.google.pubsub.v1.PublishRequest request) { + return blockingUnaryCall(getChannel(), getPublishMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Gets the configuration of a topic.
          * 
    */ public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request) { - return blockingUnaryCall( - getChannel(), getGetTopicMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetTopicMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Lists matching topics.
          * 
    */ - public com.google.pubsub.v1.ListTopicsResponse listTopics(com.google.pubsub.v1.ListTopicsRequest request) { + public com.google.pubsub.v1.ListTopicsResponse listTopics( + com.google.pubsub.v1.ListTopicsRequest request) { return blockingUnaryCall( getChannel(), getListTopicsMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Lists the names of the subscriptions on this topic.
          * 
    */ - public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { return blockingUnaryCall( getChannel(), getListTopicSubscriptionsMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Lists the names of the snapshots on this topic.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -725,12 +902,15 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request) { + public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( + com.google.pubsub.v1.ListTopicSnapshotsRequest request) { return blockingUnaryCall( getChannel(), getListTopicSnapshotsMethodHelper(), getCallOptions(), request); } /** + * + * *
          * 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
    @@ -746,64 +926,73 @@ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicReq
       }
     
       /**
    +   *
    +   *
        * 
        * The service that an application uses to manipulate topics, and to send
        * messages to a topic.
        * 
    */ - public static final class PublisherFutureStub extends io.grpc.stub.AbstractStub { + public static final class PublisherFutureStub + extends io.grpc.stub.AbstractStub { private PublisherFutureStub(io.grpc.Channel channel) { super(channel); } - private PublisherFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + private PublisherFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PublisherFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PublisherFutureStub(channel, callOptions); } /** + * + * *
          * Creates the given topic with the given name. See the
          * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture createTopic( - com.google.pubsub.v1.Topic request) { + public com.google.common.util.concurrent.ListenableFuture + createTopic(com.google.pubsub.v1.Topic request) { return futureUnaryCall( getChannel().newCall(getCreateTopicMethodHelper(), getCallOptions()), request); } /** + * + * *
          * Updates an existing topic. Note that certain properties of a
          * topic are not modifiable.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture updateTopic( - com.google.pubsub.v1.UpdateTopicRequest request) { + public com.google.common.util.concurrent.ListenableFuture + updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { return futureUnaryCall( getChannel().newCall(getUpdateTopicMethodHelper(), getCallOptions()), request); } /** + * + * *
          * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
          * does not exist.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture publish( - com.google.pubsub.v1.PublishRequest request) { + public com.google.common.util.concurrent.ListenableFuture + publish(com.google.pubsub.v1.PublishRequest request) { return futureUnaryCall( getChannel().newCall(getPublishMethodHelper(), getCallOptions()), request); } /** + * + * *
          * Gets the configuration of a topic.
          * 
    @@ -815,28 +1004,36 @@ public com.google.common.util.concurrent.ListenableFuture * Lists matching topics. *
    */ - public com.google.common.util.concurrent.ListenableFuture listTopics( - com.google.pubsub.v1.ListTopicsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ListTopicsResponse> + listTopics(com.google.pubsub.v1.ListTopicsRequest request) { return futureUnaryCall( getChannel().newCall(getListTopicsMethodHelper(), getCallOptions()), request); } /** + * + * *
          * Lists the names of the subscriptions on this topic.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions( - com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ListTopicSubscriptionsResponse> + listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { return futureUnaryCall( getChannel().newCall(getListTopicSubscriptionsMethodHelper(), getCallOptions()), request); } /** + * + * *
          * Lists the names of the snapshots on this topic.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -844,13 +1041,16 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture listTopicSnapshots(
    -        com.google.pubsub.v1.ListTopicSnapshotsRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture<
    +            com.google.pubsub.v1.ListTopicSnapshotsResponse>
    +        listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getListTopicSnapshotsMethodHelper(), getCallOptions()), request);
         }
     
         /**
    +     *
    +     *
          * 
          * 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
    @@ -859,8 +1059,8 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture deleteTopic(
    -        com.google.pubsub.v1.DeleteTopicRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture
    +        deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getDeleteTopicMethodHelper(), getCallOptions()), request);
         }
    @@ -875,11 +1075,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
    -      io.grpc.stub.ServerCalls.UnaryMethod,
    -      io.grpc.stub.ServerCalls.ServerStreamingMethod,
    -      io.grpc.stub.ServerCalls.ClientStreamingMethod,
    -      io.grpc.stub.ServerCalls.BidiStreamingMethod {
    +  private static final class MethodHandlers
    +      implements io.grpc.stub.ServerCalls.UnaryMethod,
    +          io.grpc.stub.ServerCalls.ServerStreamingMethod,
    +          io.grpc.stub.ServerCalls.ClientStreamingMethod,
    +          io.grpc.stub.ServerCalls.BidiStreamingMethod {
         private final PublisherImplBase serviceImpl;
         private final int methodId;
     
    @@ -893,35 +1093,46 @@ private static final class MethodHandlers implements
         public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
           switch (methodId) {
             case METHODID_CREATE_TOPIC:
    -          serviceImpl.createTopic((com.google.pubsub.v1.Topic) request,
    +          serviceImpl.createTopic(
    +              (com.google.pubsub.v1.Topic) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_UPDATE_TOPIC:
    -          serviceImpl.updateTopic((com.google.pubsub.v1.UpdateTopicRequest) request,
    +          serviceImpl.updateTopic(
    +              (com.google.pubsub.v1.UpdateTopicRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_PUBLISH:
    -          serviceImpl.publish((com.google.pubsub.v1.PublishRequest) request,
    +          serviceImpl.publish(
    +              (com.google.pubsub.v1.PublishRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_GET_TOPIC:
    -          serviceImpl.getTopic((com.google.pubsub.v1.GetTopicRequest) request,
    +          serviceImpl.getTopic(
    +              (com.google.pubsub.v1.GetTopicRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_LIST_TOPICS:
    -          serviceImpl.listTopics((com.google.pubsub.v1.ListTopicsRequest) request,
    -              (io.grpc.stub.StreamObserver) responseObserver);
    +          serviceImpl.listTopics(
    +              (com.google.pubsub.v1.ListTopicsRequest) request,
    +              (io.grpc.stub.StreamObserver)
    +                  responseObserver);
               break;
             case METHODID_LIST_TOPIC_SUBSCRIPTIONS:
    -          serviceImpl.listTopicSubscriptions((com.google.pubsub.v1.ListTopicSubscriptionsRequest) request,
    -              (io.grpc.stub.StreamObserver) responseObserver);
    +          serviceImpl.listTopicSubscriptions(
    +              (com.google.pubsub.v1.ListTopicSubscriptionsRequest) request,
    +              (io.grpc.stub.StreamObserver)
    +                  responseObserver);
               break;
             case METHODID_LIST_TOPIC_SNAPSHOTS:
    -          serviceImpl.listTopicSnapshots((com.google.pubsub.v1.ListTopicSnapshotsRequest) request,
    -              (io.grpc.stub.StreamObserver) responseObserver);
    +          serviceImpl.listTopicSnapshots(
    +              (com.google.pubsub.v1.ListTopicSnapshotsRequest) request,
    +              (io.grpc.stub.StreamObserver)
    +                  responseObserver);
               break;
             case METHODID_DELETE_TOPIC:
    -          serviceImpl.deleteTopic((com.google.pubsub.v1.DeleteTopicRequest) request,
    +          serviceImpl.deleteTopic(
    +              (com.google.pubsub.v1.DeleteTopicRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             default:
    @@ -940,8 +1151,9 @@ public io.grpc.stub.StreamObserver invoke(
         }
       }
     
    -  private static abstract class PublisherBaseDescriptorSupplier
    -      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    +  private abstract static class PublisherBaseDescriptorSupplier
    +      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
    +          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
         PublisherBaseDescriptorSupplier() {}
     
         @java.lang.Override
    @@ -983,17 +1195,19 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
           synchronized (PublisherGrpc.class) {
             result = serviceDescriptor;
             if (result == null) {
    -          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
    -              .setSchemaDescriptor(new PublisherFileDescriptorSupplier())
    -              .addMethod(getCreateTopicMethodHelper())
    -              .addMethod(getUpdateTopicMethodHelper())
    -              .addMethod(getPublishMethodHelper())
    -              .addMethod(getGetTopicMethodHelper())
    -              .addMethod(getListTopicsMethodHelper())
    -              .addMethod(getListTopicSubscriptionsMethodHelper())
    -              .addMethod(getListTopicSnapshotsMethodHelper())
    -              .addMethod(getDeleteTopicMethodHelper())
    -              .build();
    +          serviceDescriptor =
    +              result =
    +                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
    +                      .setSchemaDescriptor(new PublisherFileDescriptorSupplier())
    +                      .addMethod(getCreateTopicMethodHelper())
    +                      .addMethod(getUpdateTopicMethodHelper())
    +                      .addMethod(getPublishMethodHelper())
    +                      .addMethod(getGetTopicMethodHelper())
    +                      .addMethod(getListTopicsMethodHelper())
    +                      .addMethod(getListTopicSubscriptionsMethodHelper())
    +                      .addMethod(getListTopicSnapshotsMethodHelper())
    +                      .addMethod(getDeleteTopicMethodHelper())
    +                      .build();
             }
           }
         }
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
    index c0766dcce678..ad439b0be39d 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
    @@ -2,20 +2,17 @@
     
     import static io.grpc.MethodDescriptor.generateFullMethodName;
     import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
    -import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
    -import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
     import static io.grpc.stub.ClientCalls.asyncUnaryCall;
    -import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
     import static io.grpc.stub.ClientCalls.blockingUnaryCall;
     import static io.grpc.stub.ClientCalls.futureUnaryCall;
     import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
    -import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
    -import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
     import static io.grpc.stub.ServerCalls.asyncUnaryCall;
     import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
     import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
     
     /**
    + *
    + *
      * 
      * The service that an application uses to manipulate subscriptions and to
      * consume messages from a subscription via the `Pull` method or by
    @@ -33,601 +30,806 @@ private SubscriberGrpc() {}
     
       // Static method descriptors that strictly reflect the proto.
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getCreateSubscriptionMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_CREATE_SUBSCRIPTION = getCreateSubscriptionMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getCreateSubscriptionMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>
    +      METHOD_CREATE_SUBSCRIPTION = getCreateSubscriptionMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getCreateSubscriptionMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>
    +      getCreateSubscriptionMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getCreateSubscriptionMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>
    +      getCreateSubscriptionMethod() {
         return getCreateSubscriptionMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getCreateSubscriptionMethodHelper() {
    -    io.grpc.MethodDescriptor getCreateSubscriptionMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>
    +      getCreateSubscriptionMethodHelper() {
    +    io.grpc.MethodDescriptor
    +        getCreateSubscriptionMethod;
         if ((getCreateSubscriptionMethod = SubscriberGrpc.getCreateSubscriptionMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getCreateSubscriptionMethod = SubscriberGrpc.getCreateSubscriptionMethod) == null) {
    -          SubscriberGrpc.getCreateSubscriptionMethod = getCreateSubscriptionMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "CreateSubscription"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSubscription"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getCreateSubscriptionMethod =
    +              getCreateSubscriptionMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(
    +                              "google.pubsub.v1.Subscriber", "CreateSubscription"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new SubscriberMethodDescriptorSupplier("CreateSubscription"))
    +                      .build();
             }
    -     }
    -     return getCreateSubscriptionMethod;
    +      }
    +    }
    +    return getCreateSubscriptionMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getGetSubscriptionMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_GET_SUBSCRIPTION = getGetSubscriptionMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getGetSubscriptionMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
    +      METHOD_GET_SUBSCRIPTION = getGetSubscriptionMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getGetSubscriptionMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
    +      getGetSubscriptionMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getGetSubscriptionMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
    +      getGetSubscriptionMethod() {
         return getGetSubscriptionMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getGetSubscriptionMethodHelper() {
    -    io.grpc.MethodDescriptor getGetSubscriptionMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
    +      getGetSubscriptionMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>
    +        getGetSubscriptionMethod;
         if ((getGetSubscriptionMethod = SubscriberGrpc.getGetSubscriptionMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getGetSubscriptionMethod = SubscriberGrpc.getGetSubscriptionMethod) == null) {
    -          SubscriberGrpc.getGetSubscriptionMethod = getGetSubscriptionMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "GetSubscription"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSubscription"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getGetSubscriptionMethod =
    +              getGetSubscriptionMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "GetSubscription"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new SubscriberMethodDescriptorSupplier("GetSubscription"))
    +                      .build();
             }
    -     }
    -     return getGetSubscriptionMethod;
    +      }
    +    }
    +    return getGetSubscriptionMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getUpdateSubscriptionMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_UPDATE_SUBSCRIPTION = getUpdateSubscriptionMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getUpdateSubscriptionMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
    +      METHOD_UPDATE_SUBSCRIPTION = getUpdateSubscriptionMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getUpdateSubscriptionMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
    +      getUpdateSubscriptionMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getUpdateSubscriptionMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
    +      getUpdateSubscriptionMethod() {
         return getUpdateSubscriptionMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getUpdateSubscriptionMethodHelper() {
    -    io.grpc.MethodDescriptor getUpdateSubscriptionMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
    +      getUpdateSubscriptionMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>
    +        getUpdateSubscriptionMethod;
         if ((getUpdateSubscriptionMethod = SubscriberGrpc.getUpdateSubscriptionMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getUpdateSubscriptionMethod = SubscriberGrpc.getUpdateSubscriptionMethod) == null) {
    -          SubscriberGrpc.getUpdateSubscriptionMethod = getUpdateSubscriptionMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "UpdateSubscription"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Subscription.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSubscription"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getUpdateSubscriptionMethod =
    +              getUpdateSubscriptionMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(
    +                              "google.pubsub.v1.Subscriber", "UpdateSubscription"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.UpdateSubscriptionRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Subscription.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new SubscriberMethodDescriptorSupplier("UpdateSubscription"))
    +                      .build();
             }
    -     }
    -     return getUpdateSubscriptionMethod;
    +      }
    +    }
    +    return getUpdateSubscriptionMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getListSubscriptionsMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_LIST_SUBSCRIPTIONS = getListSubscriptionsMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getListSubscriptionsMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListSubscriptionsRequest,
    +          com.google.pubsub.v1.ListSubscriptionsResponse>
    +      METHOD_LIST_SUBSCRIPTIONS = getListSubscriptionsMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getListSubscriptionsMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListSubscriptionsRequest,
    +          com.google.pubsub.v1.ListSubscriptionsResponse>
    +      getListSubscriptionsMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getListSubscriptionsMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListSubscriptionsRequest,
    +          com.google.pubsub.v1.ListSubscriptionsResponse>
    +      getListSubscriptionsMethod() {
         return getListSubscriptionsMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getListSubscriptionsMethodHelper() {
    -    io.grpc.MethodDescriptor getListSubscriptionsMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListSubscriptionsRequest,
    +          com.google.pubsub.v1.ListSubscriptionsResponse>
    +      getListSubscriptionsMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.ListSubscriptionsRequest,
    +            com.google.pubsub.v1.ListSubscriptionsResponse>
    +        getListSubscriptionsMethod;
         if ((getListSubscriptionsMethod = SubscriberGrpc.getListSubscriptionsMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getListSubscriptionsMethod = SubscriberGrpc.getListSubscriptionsMethod) == null) {
    -          SubscriberGrpc.getListSubscriptionsMethod = getListSubscriptionsMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "ListSubscriptions"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSubscriptions"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getListSubscriptionsMethod =
    +              getListSubscriptionsMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(
    +                              "google.pubsub.v1.Subscriber", "ListSubscriptions"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ListSubscriptionsResponse.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new SubscriberMethodDescriptorSupplier("ListSubscriptions"))
    +                      .build();
             }
    -     }
    -     return getListSubscriptionsMethod;
    +      }
    +    }
    +    return getListSubscriptionsMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getDeleteSubscriptionMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_DELETE_SUBSCRIPTION = getDeleteSubscriptionMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getDeleteSubscriptionMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
    +      METHOD_DELETE_SUBSCRIPTION = getDeleteSubscriptionMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getDeleteSubscriptionMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
    +      getDeleteSubscriptionMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getDeleteSubscriptionMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
    +      getDeleteSubscriptionMethod() {
         return getDeleteSubscriptionMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getDeleteSubscriptionMethodHelper() {
    -    io.grpc.MethodDescriptor getDeleteSubscriptionMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
    +      getDeleteSubscriptionMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>
    +        getDeleteSubscriptionMethod;
         if ((getDeleteSubscriptionMethod = SubscriberGrpc.getDeleteSubscriptionMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getDeleteSubscriptionMethod = SubscriberGrpc.getDeleteSubscriptionMethod) == null) {
    -          SubscriberGrpc.getDeleteSubscriptionMethod = getDeleteSubscriptionMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "DeleteSubscription"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.protobuf.Empty.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSubscription"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getDeleteSubscriptionMethod =
    +              getDeleteSubscriptionMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(
    +                              "google.pubsub.v1.Subscriber", "DeleteSubscription"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.protobuf.Empty.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new SubscriberMethodDescriptorSupplier("DeleteSubscription"))
    +                      .build();
             }
    -     }
    -     return getDeleteSubscriptionMethod;
    +      }
    +    }
    +    return getDeleteSubscriptionMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getModifyAckDeadlineMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_MODIFY_ACK_DEADLINE = getModifyAckDeadlineMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getModifyAckDeadlineMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
    +      METHOD_MODIFY_ACK_DEADLINE = getModifyAckDeadlineMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getModifyAckDeadlineMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
    +      getModifyAckDeadlineMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getModifyAckDeadlineMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
    +      getModifyAckDeadlineMethod() {
         return getModifyAckDeadlineMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getModifyAckDeadlineMethodHelper() {
    -    io.grpc.MethodDescriptor getModifyAckDeadlineMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
    +      getModifyAckDeadlineMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>
    +        getModifyAckDeadlineMethod;
         if ((getModifyAckDeadlineMethod = SubscriberGrpc.getModifyAckDeadlineMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getModifyAckDeadlineMethod = SubscriberGrpc.getModifyAckDeadlineMethod) == null) {
    -          SubscriberGrpc.getModifyAckDeadlineMethod = getModifyAckDeadlineMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "ModifyAckDeadline"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.protobuf.Empty.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ModifyAckDeadline"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getModifyAckDeadlineMethod =
    +              getModifyAckDeadlineMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName(
    +                              "google.pubsub.v1.Subscriber", "ModifyAckDeadline"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ModifyAckDeadlineRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.protobuf.Empty.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new SubscriberMethodDescriptorSupplier("ModifyAckDeadline"))
    +                      .build();
             }
    -     }
    -     return getModifyAckDeadlineMethod;
    +      }
    +    }
    +    return getModifyAckDeadlineMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getAcknowledgeMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_ACKNOWLEDGE = getAcknowledgeMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getAcknowledgeMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>
    +      METHOD_ACKNOWLEDGE = getAcknowledgeMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getAcknowledgeMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>
    +      getAcknowledgeMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getAcknowledgeMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>
    +      getAcknowledgeMethod() {
         return getAcknowledgeMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getAcknowledgeMethodHelper() {
    -    io.grpc.MethodDescriptor getAcknowledgeMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>
    +      getAcknowledgeMethodHelper() {
    +    io.grpc.MethodDescriptor
    +        getAcknowledgeMethod;
         if ((getAcknowledgeMethod = SubscriberGrpc.getAcknowledgeMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getAcknowledgeMethod = SubscriberGrpc.getAcknowledgeMethod) == null) {
    -          SubscriberGrpc.getAcknowledgeMethod = getAcknowledgeMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "Acknowledge"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.protobuf.Empty.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Acknowledge"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getAcknowledgeMethod =
    +              getAcknowledgeMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "Acknowledge"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.protobuf.Empty.getDefaultInstance()))
    +                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Acknowledge"))
    +                      .build();
             }
    -     }
    -     return getAcknowledgeMethod;
    +      }
    +    }
    +    return getAcknowledgeMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getPullMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_PULL = getPullMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getPullMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>
    +      METHOD_PULL = getPullMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getPullMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>
    +      getPullMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getPullMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>
    +      getPullMethod() {
         return getPullMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getPullMethodHelper() {
    -    io.grpc.MethodDescriptor getPullMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>
    +      getPullMethodHelper() {
    +    io.grpc.MethodDescriptor
    +        getPullMethod;
         if ((getPullMethod = SubscriberGrpc.getPullMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getPullMethod = SubscriberGrpc.getPullMethod) == null) {
    -          SubscriberGrpc.getPullMethod = getPullMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "Pull"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.PullRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.PullResponse.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Pull"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getPullMethod =
    +              getPullMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "Pull"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.PullRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.PullResponse.getDefaultInstance()))
    +                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Pull"))
    +                      .build();
             }
    -     }
    -     return getPullMethod;
    +      }
    +    }
    +    return getPullMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getStreamingPullMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_STREAMING_PULL = getStreamingPullMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getStreamingPullMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
    +      METHOD_STREAMING_PULL = getStreamingPullMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getStreamingPullMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
    +      getStreamingPullMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getStreamingPullMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
    +      getStreamingPullMethod() {
         return getStreamingPullMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getStreamingPullMethodHelper() {
    -    io.grpc.MethodDescriptor getStreamingPullMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
    +      getStreamingPullMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>
    +        getStreamingPullMethod;
         if ((getStreamingPullMethod = SubscriberGrpc.getStreamingPullMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getStreamingPullMethod = SubscriberGrpc.getStreamingPullMethod) == null) {
    -          SubscriberGrpc.getStreamingPullMethod = getStreamingPullMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "StreamingPull"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("StreamingPull"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getStreamingPullMethod =
    +              getStreamingPullMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "StreamingPull"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance()))
    +                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("StreamingPull"))
    +                      .build();
             }
    -     }
    -     return getStreamingPullMethod;
    +      }
    +    }
    +    return getStreamingPullMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getModifyPushConfigMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_MODIFY_PUSH_CONFIG = getModifyPushConfigMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getModifyPushConfigMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
    +      METHOD_MODIFY_PUSH_CONFIG = getModifyPushConfigMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getModifyPushConfigMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
    +      getModifyPushConfigMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getModifyPushConfigMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
    +      getModifyPushConfigMethod() {
         return getModifyPushConfigMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getModifyPushConfigMethodHelper() {
    -    io.grpc.MethodDescriptor getModifyPushConfigMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
    +      getModifyPushConfigMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>
    +        getModifyPushConfigMethod;
         if ((getModifyPushConfigMethod = SubscriberGrpc.getModifyPushConfigMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getModifyPushConfigMethod = SubscriberGrpc.getModifyPushConfigMethod) == null) {
    -          SubscriberGrpc.getModifyPushConfigMethod = getModifyPushConfigMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "ModifyPushConfig"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.protobuf.Empty.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ModifyPushConfig"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getModifyPushConfigMethod =
    +              getModifyPushConfigMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "ModifyPushConfig"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.protobuf.Empty.getDefaultInstance()))
    +                      .setSchemaDescriptor(
    +                          new SubscriberMethodDescriptorSupplier("ModifyPushConfig"))
    +                      .build();
             }
    -     }
    -     return getModifyPushConfigMethod;
    +      }
    +    }
    +    return getModifyPushConfigMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getGetSnapshotMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_GET_SNAPSHOT = getGetSnapshotMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getGetSnapshotMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      METHOD_GET_SNAPSHOT = getGetSnapshotMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getGetSnapshotMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      getGetSnapshotMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getGetSnapshotMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      getGetSnapshotMethod() {
         return getGetSnapshotMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getGetSnapshotMethodHelper() {
    -    io.grpc.MethodDescriptor getGetSnapshotMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      getGetSnapshotMethodHelper() {
    +    io.grpc.MethodDescriptor
    +        getGetSnapshotMethod;
         if ((getGetSnapshotMethod = SubscriberGrpc.getGetSnapshotMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getGetSnapshotMethod = SubscriberGrpc.getGetSnapshotMethod) == null) {
    -          SubscriberGrpc.getGetSnapshotMethod = getGetSnapshotMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "GetSnapshot"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Snapshot.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSnapshot"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getGetSnapshotMethod =
    +              getGetSnapshotMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "GetSnapshot"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Snapshot.getDefaultInstance()))
    +                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("GetSnapshot"))
    +                      .build();
             }
    -     }
    -     return getGetSnapshotMethod;
    +      }
    +    }
    +    return getGetSnapshotMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getListSnapshotsMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_LIST_SNAPSHOTS = getListSnapshotsMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getListSnapshotsMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
    +      METHOD_LIST_SNAPSHOTS = getListSnapshotsMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getListSnapshotsMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
    +      getListSnapshotsMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getListSnapshotsMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
    +      getListSnapshotsMethod() {
         return getListSnapshotsMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getListSnapshotsMethodHelper() {
    -    io.grpc.MethodDescriptor getListSnapshotsMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
    +      getListSnapshotsMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>
    +        getListSnapshotsMethod;
         if ((getListSnapshotsMethod = SubscriberGrpc.getListSnapshotsMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getListSnapshotsMethod = SubscriberGrpc.getListSnapshotsMethod) == null) {
    -          SubscriberGrpc.getListSnapshotsMethod = getListSnapshotsMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "ListSnapshots"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSnapshots"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getListSnapshotsMethod =
    +              getListSnapshotsMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "ListSnapshots"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.ListSnapshotsResponse.getDefaultInstance()))
    +                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("ListSnapshots"))
    +                      .build();
             }
    -     }
    -     return getListSnapshotsMethod;
    +      }
    +    }
    +    return getListSnapshotsMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getCreateSnapshotMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_CREATE_SNAPSHOT = getCreateSnapshotMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getCreateSnapshotMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      METHOD_CREATE_SNAPSHOT = getCreateSnapshotMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getCreateSnapshotMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      getCreateSnapshotMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getCreateSnapshotMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      getCreateSnapshotMethod() {
         return getCreateSnapshotMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getCreateSnapshotMethodHelper() {
    -    io.grpc.MethodDescriptor getCreateSnapshotMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      getCreateSnapshotMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +        getCreateSnapshotMethod;
         if ((getCreateSnapshotMethod = SubscriberGrpc.getCreateSnapshotMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getCreateSnapshotMethod = SubscriberGrpc.getCreateSnapshotMethod) == null) {
    -          SubscriberGrpc.getCreateSnapshotMethod = getCreateSnapshotMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "CreateSnapshot"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Snapshot.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSnapshot"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getCreateSnapshotMethod =
    +              getCreateSnapshotMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "CreateSnapshot"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Snapshot.getDefaultInstance()))
    +                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("CreateSnapshot"))
    +                      .build();
             }
    -     }
    -     return getCreateSnapshotMethod;
    +      }
    +    }
    +    return getCreateSnapshotMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getUpdateSnapshotMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_UPDATE_SNAPSHOT = getUpdateSnapshotMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getUpdateSnapshotMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      METHOD_UPDATE_SNAPSHOT = getUpdateSnapshotMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getUpdateSnapshotMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      getUpdateSnapshotMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getUpdateSnapshotMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      getUpdateSnapshotMethod() {
         return getUpdateSnapshotMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getUpdateSnapshotMethodHelper() {
    -    io.grpc.MethodDescriptor getUpdateSnapshotMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +      getUpdateSnapshotMethodHelper() {
    +    io.grpc.MethodDescriptor<
    +            com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>
    +        getUpdateSnapshotMethod;
         if ((getUpdateSnapshotMethod = SubscriberGrpc.getUpdateSnapshotMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getUpdateSnapshotMethod = SubscriberGrpc.getUpdateSnapshotMethod) == null) {
    -          SubscriberGrpc.getUpdateSnapshotMethod = getUpdateSnapshotMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "UpdateSnapshot"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.Snapshot.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSnapshot"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getUpdateSnapshotMethod =
    +              getUpdateSnapshotMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "UpdateSnapshot"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.UpdateSnapshotRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.Snapshot.getDefaultInstance()))
    +                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("UpdateSnapshot"))
    +                      .build();
             }
    -     }
    -     return getUpdateSnapshotMethod;
    +      }
    +    }
    +    return getUpdateSnapshotMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getDeleteSnapshotMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_DELETE_SNAPSHOT = getDeleteSnapshotMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getDeleteSnapshotMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>
    +      METHOD_DELETE_SNAPSHOT = getDeleteSnapshotMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getDeleteSnapshotMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>
    +      getDeleteSnapshotMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getDeleteSnapshotMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>
    +      getDeleteSnapshotMethod() {
         return getDeleteSnapshotMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getDeleteSnapshotMethodHelper() {
    -    io.grpc.MethodDescriptor getDeleteSnapshotMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>
    +      getDeleteSnapshotMethodHelper() {
    +    io.grpc.MethodDescriptor
    +        getDeleteSnapshotMethod;
         if ((getDeleteSnapshotMethod = SubscriberGrpc.getDeleteSnapshotMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getDeleteSnapshotMethod = SubscriberGrpc.getDeleteSnapshotMethod) == null) {
    -          SubscriberGrpc.getDeleteSnapshotMethod = getDeleteSnapshotMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "DeleteSnapshot"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.protobuf.Empty.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSnapshot"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getDeleteSnapshotMethod =
    +              getDeleteSnapshotMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "DeleteSnapshot"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.protobuf.Empty.getDefaultInstance()))
    +                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("DeleteSnapshot"))
    +                      .build();
             }
    -     }
    -     return getDeleteSnapshotMethod;
    +      }
    +    }
    +    return getDeleteSnapshotMethod;
       }
    +
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  @java.lang.Deprecated // Use {@link #getSeekMethod()} instead. 
    -  public static final io.grpc.MethodDescriptor METHOD_SEEK = getSeekMethodHelper();
    +  @java.lang.Deprecated // Use {@link #getSeekMethod()} instead.
    +  public static final io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>
    +      METHOD_SEEK = getSeekMethodHelper();
     
    -  private static volatile io.grpc.MethodDescriptor getSeekMethod;
    +  private static volatile io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>
    +      getSeekMethod;
     
       @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
    -  public static io.grpc.MethodDescriptor getSeekMethod() {
    +  public static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>
    +      getSeekMethod() {
         return getSeekMethodHelper();
       }
     
    -  private static io.grpc.MethodDescriptor getSeekMethodHelper() {
    -    io.grpc.MethodDescriptor getSeekMethod;
    +  private static io.grpc.MethodDescriptor<
    +          com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>
    +      getSeekMethodHelper() {
    +    io.grpc.MethodDescriptor
    +        getSeekMethod;
         if ((getSeekMethod = SubscriberGrpc.getSeekMethod) == null) {
           synchronized (SubscriberGrpc.class) {
             if ((getSeekMethod = SubscriberGrpc.getSeekMethod) == null) {
    -          SubscriberGrpc.getSeekMethod = getSeekMethod = 
    -              io.grpc.MethodDescriptor.newBuilder()
    -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    -              .setFullMethodName(generateFullMethodName(
    -                  "google.pubsub.v1.Subscriber", "Seek"))
    -              .setSampledToLocalTracing(true)
    -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.SeekRequest.getDefaultInstance()))
    -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
    -                  com.google.pubsub.v1.SeekResponse.getDefaultInstance()))
    -                  .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Seek"))
    -                  .build();
    -          }
    +          SubscriberGrpc.getSeekMethod =
    +              getSeekMethod =
    +                  io.grpc.MethodDescriptor
    +                      .
    +                          newBuilder()
    +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
    +                      .setFullMethodName(
    +                          generateFullMethodName("google.pubsub.v1.Subscriber", "Seek"))
    +                      .setSampledToLocalTracing(true)
    +                      .setRequestMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.SeekRequest.getDefaultInstance()))
    +                      .setResponseMarshaller(
    +                          io.grpc.protobuf.ProtoUtils.marshaller(
    +                              com.google.pubsub.v1.SeekResponse.getDefaultInstance()))
    +                      .setSchemaDescriptor(new SubscriberMethodDescriptorSupplier("Seek"))
    +                      .build();
             }
    -     }
    -     return getSeekMethod;
    +      }
    +    }
    +    return getSeekMethod;
       }
     
    -  /**
    -   * Creates a new async stub that supports all call types for the service
    -   */
    +  /** Creates a new async stub that supports all call types for the service */
       public static SubscriberStub newStub(io.grpc.Channel channel) {
         return new SubscriberStub(channel);
       }
    @@ -635,29 +837,29 @@ public static SubscriberStub newStub(io.grpc.Channel channel) {
       /**
        * Creates a new blocking-style stub that supports unary and streaming output calls on the service
        */
    -  public static SubscriberBlockingStub newBlockingStub(
    -      io.grpc.Channel channel) {
    +  public static SubscriberBlockingStub newBlockingStub(io.grpc.Channel channel) {
         return new SubscriberBlockingStub(channel);
       }
     
    -  /**
    -   * Creates a new ListenableFuture-style stub that supports unary calls on the service
    -   */
    -  public static SubscriberFutureStub newFutureStub(
    -      io.grpc.Channel channel) {
    +  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
    +  public static SubscriberFutureStub newFutureStub(io.grpc.Channel channel) {
         return new SubscriberFutureStub(channel);
       }
     
       /**
    +   *
    +   *
        * 
        * 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.
        * 
    */ - public static abstract class SubscriberImplBase implements io.grpc.BindableService { + public abstract static class SubscriberImplBase implements io.grpc.BindableService { /** + * + * *
          * Creates a subscription to a given topic. See the
          * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    @@ -671,43 +873,56 @@ public static abstract class SubscriberImplBase implements io.grpc.BindableServi
          * Note that for REST API requests, you must specify a name in the request.
          * 
    */ - public void createSubscription(com.google.pubsub.v1.Subscription request, + public void createSubscription( + com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getCreateSubscriptionMethodHelper(), responseObserver); } /** + * + * *
          * Gets the configuration details of a subscription.
          * 
    */ - public void getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request, + public void getSubscription( + com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getGetSubscriptionMethodHelper(), responseObserver); } /** + * + * *
          * Updates an existing subscription. Note that certain properties of a
          * subscription, such as its topic, are not modifiable.
          * 
    */ - public void updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request, + public void updateSubscription( + com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getUpdateSubscriptionMethodHelper(), responseObserver); } /** + * + * *
          * Lists matching subscriptions.
          * 
    */ - public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listSubscriptions( + com.google.pubsub.v1.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnimplementedUnaryCall(getListSubscriptionsMethodHelper(), responseObserver); } /** + * + * *
          * Deletes an existing subscription. All messages retained in the subscription
          * are immediately dropped. Calls to `Pull` after deletion will return
    @@ -716,12 +931,15 @@ public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest requ
          * subscription or its topic unless the same topic is specified.
          * 
    */ - public void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request, + public void deleteSubscription( + com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getDeleteSubscriptionMethodHelper(), responseObserver); } /** + * + * *
          * 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
    @@ -730,12 +948,15 @@ public void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest re
          * subscription-level `ackDeadlineSeconds` used for subsequent messages.
          * 
    */ - public void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request, + public void modifyAckDeadline( + com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getModifyAckDeadlineMethodHelper(), responseObserver); } /** + * + * *
          * Acknowledges the messages associated with the `ack_ids` in the
          * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
    @@ -745,24 +966,30 @@ public void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest requ
          * than once will not result in an error.
          * 
    */ - public void acknowledge(com.google.pubsub.v1.AcknowledgeRequest request, + public void acknowledge( + com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getAcknowledgeMethodHelper(), responseObserver); } /** + * + * *
          * Pulls messages from the server. The server may return `UNAVAILABLE` if
          * there are too many concurrent pull requests pending for the given
          * subscription.
          * 
    */ - public void pull(com.google.pubsub.v1.PullRequest request, + public void pull( + com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getPullMethodHelper(), responseObserver); } /** + * + * *
          * Establishes a stream with the server, which sends messages down to the
          * client. The client streams acknowledgements and ack deadline modifications
    @@ -779,6 +1006,8 @@ public io.grpc.stub.StreamObserver st
         }
     
         /**
    +     *
    +     *
          * 
          * Modifies the `PushConfig` for a specified subscription.
          * This may be used to change a push subscription to a pull one (signified by
    @@ -787,12 +1016,15 @@ public io.grpc.stub.StreamObserver st
          * continuously through the call regardless of changes to the `PushConfig`.
          * 
    */ - public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request, + public void modifyPushConfig( + com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getModifyPushConfigMethodHelper(), responseObserver); } /** + * + * *
          * Gets the configuration details of a snapshot.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -800,12 +1032,15 @@ public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest reques
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request, + public void getSnapshot( + com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getGetSnapshotMethodHelper(), responseObserver); } /** + * + * *
          * Lists the existing snapshots.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -813,12 +1048,15 @@ public void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request,
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, + public void listSnapshots( + com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getListSnapshotsMethodHelper(), responseObserver); } /** + * + * *
          * Creates a snapshot from the requested subscription.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -837,12 +1075,15 @@ public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request,
          * requests, you must specify a name in the request.
          * 
    */ - public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, + public void createSnapshot( + com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getCreateSnapshotMethodHelper(), responseObserver); } /** + * + * *
          * Updates an existing snapshot.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -851,12 +1092,15 @@ public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request,
          * Note that certain properties of a snapshot are not modifiable.
          * 
    */ - public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, + public void updateSnapshot( + com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getUpdateSnapshotMethodHelper(), responseObserver); } /** + * + * *
          * Removes an existing snapshot. <br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -868,12 +1112,15 @@ public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request,
          * snapshot or its subscription, unless the same subscription is specified.
          * 
    */ - public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request, + public void deleteSnapshot( + com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getDeleteSnapshotMethodHelper(), responseObserver); } /** + * + * *
          * Seeks an existing subscription to a point in time or to a given snapshot,
          * whichever is provided in the request.<br><br>
    @@ -882,130 +1129,119 @@ public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request,
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public void seek(com.google.pubsub.v1.SeekRequest request, + public void seek( + com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getSeekMethodHelper(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateSubscriptionMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.Subscription, - com.google.pubsub.v1.Subscription>( - this, METHODID_CREATE_SUBSCRIPTION))) + getCreateSubscriptionMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>( + this, METHODID_CREATE_SUBSCRIPTION))) .addMethod( - getGetSubscriptionMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSubscriptionRequest, - com.google.pubsub.v1.Subscription>( - this, METHODID_GET_SUBSCRIPTION))) + getGetSubscriptionMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSubscriptionRequest, + com.google.pubsub.v1.Subscription>(this, METHODID_GET_SUBSCRIPTION))) .addMethod( - getUpdateSubscriptionMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateSubscriptionRequest, - com.google.pubsub.v1.Subscription>( - this, METHODID_UPDATE_SUBSCRIPTION))) + getUpdateSubscriptionMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSubscriptionRequest, + com.google.pubsub.v1.Subscription>(this, METHODID_UPDATE_SUBSCRIPTION))) .addMethod( - getListSubscriptionsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSubscriptionsRequest, - com.google.pubsub.v1.ListSubscriptionsResponse>( - this, METHODID_LIST_SUBSCRIPTIONS))) + getListSubscriptionsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSubscriptionsRequest, + com.google.pubsub.v1.ListSubscriptionsResponse>( + this, METHODID_LIST_SUBSCRIPTIONS))) .addMethod( - getDeleteSubscriptionMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSubscriptionRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SUBSCRIPTION))) + getDeleteSubscriptionMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_SUBSCRIPTION))) .addMethod( - getModifyAckDeadlineMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ModifyAckDeadlineRequest, - com.google.protobuf.Empty>( - this, METHODID_MODIFY_ACK_DEADLINE))) + getModifyAckDeadlineMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>( + this, METHODID_MODIFY_ACK_DEADLINE))) .addMethod( - getAcknowledgeMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.AcknowledgeRequest, - com.google.protobuf.Empty>( - this, METHODID_ACKNOWLEDGE))) + getAcknowledgeMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>( + this, METHODID_ACKNOWLEDGE))) .addMethod( - getPullMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.PullRequest, - com.google.pubsub.v1.PullResponse>( - this, METHODID_PULL))) + getPullMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>( + this, METHODID_PULL))) .addMethod( - getStreamingPullMethodHelper(), - asyncBidiStreamingCall( - new MethodHandlers< - com.google.pubsub.v1.StreamingPullRequest, - com.google.pubsub.v1.StreamingPullResponse>( - this, METHODID_STREAMING_PULL))) + getStreamingPullMethodHelper(), + asyncBidiStreamingCall( + new MethodHandlers< + com.google.pubsub.v1.StreamingPullRequest, + com.google.pubsub.v1.StreamingPullResponse>(this, METHODID_STREAMING_PULL))) .addMethod( - getModifyPushConfigMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ModifyPushConfigRequest, - com.google.protobuf.Empty>( - this, METHODID_MODIFY_PUSH_CONFIG))) + getModifyPushConfigMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>( + this, METHODID_MODIFY_PUSH_CONFIG))) .addMethod( - getGetSnapshotMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSnapshotRequest, - com.google.pubsub.v1.Snapshot>( - this, METHODID_GET_SNAPSHOT))) + getGetSnapshotMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>( + this, METHODID_GET_SNAPSHOT))) .addMethod( - getListSnapshotsMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSnapshotsRequest, - com.google.pubsub.v1.ListSnapshotsResponse>( - this, METHODID_LIST_SNAPSHOTS))) + getListSnapshotsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSnapshotsRequest, + com.google.pubsub.v1.ListSnapshotsResponse>(this, METHODID_LIST_SNAPSHOTS))) .addMethod( - getCreateSnapshotMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.CreateSnapshotRequest, - com.google.pubsub.v1.Snapshot>( - this, METHODID_CREATE_SNAPSHOT))) + getCreateSnapshotMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>( + this, METHODID_CREATE_SNAPSHOT))) .addMethod( - getUpdateSnapshotMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateSnapshotRequest, - com.google.pubsub.v1.Snapshot>( - this, METHODID_UPDATE_SNAPSHOT))) + getUpdateSnapshotMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>( + this, METHODID_UPDATE_SNAPSHOT))) .addMethod( - getDeleteSnapshotMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSnapshotRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SNAPSHOT))) + getDeleteSnapshotMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_SNAPSHOT))) .addMethod( - getSeekMethodHelper(), - asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.SeekRequest, - com.google.pubsub.v1.SeekResponse>( - this, METHODID_SEEK))) + getSeekMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>( + this, METHODID_SEEK))) .build(); } } /** + * + * *
        * The service that an application uses to manipulate subscriptions and to
        * consume messages from a subscription via the `Pull` method or by
    @@ -1017,18 +1253,18 @@ private SubscriberStub(io.grpc.Channel channel) {
           super(channel);
         }
     
    -    private SubscriberStub(io.grpc.Channel channel,
    -        io.grpc.CallOptions callOptions) {
    +    private SubscriberStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
           super(channel, callOptions);
         }
     
         @java.lang.Override
    -    protected SubscriberStub build(io.grpc.Channel channel,
    -        io.grpc.CallOptions callOptions) {
    +    protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
           return new SubscriberStub(channel, callOptions);
         }
     
         /**
    +     *
    +     *
          * 
          * Creates a subscription to a given topic. See the
          * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    @@ -1042,47 +1278,68 @@ protected SubscriberStub build(io.grpc.Channel channel,
          * Note that for REST API requests, you must specify a name in the request.
          * 
    */ - public void createSubscription(com.google.pubsub.v1.Subscription request, + public void createSubscription( + com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateSubscriptionMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateSubscriptionMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Gets the configuration details of a subscription.
          * 
    */ - public void getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request, + public void getSubscription( + com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetSubscriptionMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetSubscriptionMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Updates an existing subscription. Note that certain properties of a
          * subscription, such as its topic, are not modifiable.
          * 
    */ - public void updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request, + public void updateSubscription( + com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateSubscriptionMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Lists matching subscriptions.
          * 
    */ - public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listSubscriptions( + com.google.pubsub.v1.ListSubscriptionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { asyncUnaryCall( - getChannel().newCall(getListSubscriptionsMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListSubscriptionsMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Deletes an existing subscription. All messages retained in the subscription
          * are immediately dropped. Calls to `Pull` after deletion will return
    @@ -1091,13 +1348,18 @@ public void listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest requ
          * subscription or its topic unless the same topic is specified.
          * 
    */ - public void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request, + public void deleteSubscription( + com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteSubscriptionMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * 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
    @@ -1106,13 +1368,18 @@ public void deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest re
          * subscription-level `ackDeadlineSeconds` used for subsequent messages.
          * 
    */ - public void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request, + public void modifyAckDeadline( + com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getModifyAckDeadlineMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getModifyAckDeadlineMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Acknowledges the messages associated with the `ack_ids` in the
          * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
    @@ -1122,26 +1389,34 @@ public void modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest requ
          * than once will not result in an error.
          * 
    */ - public void acknowledge(com.google.pubsub.v1.AcknowledgeRequest request, + public void acknowledge( + com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getAcknowledgeMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getAcknowledgeMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Pulls messages from the server. The server may return `UNAVAILABLE` if
          * there are too many concurrent pull requests pending for the given
          * subscription.
          * 
    */ - public void pull(com.google.pubsub.v1.PullRequest request, + public void pull( + com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getPullMethodHelper(), getCallOptions()), request, responseObserver); } /** + * + * *
          * Establishes a stream with the server, which sends messages down to the
          * client. The client streams acknowledgements and ack deadline modifications
    @@ -1159,6 +1434,8 @@ public io.grpc.stub.StreamObserver st
         }
     
         /**
    +     *
    +     *
          * 
          * Modifies the `PushConfig` for a specified subscription.
          * This may be used to change a push subscription to a pull one (signified by
    @@ -1167,13 +1444,18 @@ public io.grpc.stub.StreamObserver st
          * continuously through the call regardless of changes to the `PushConfig`.
          * 
    */ - public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request, + public void modifyPushConfig( + com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getModifyPushConfigMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getModifyPushConfigMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Gets the configuration details of a snapshot.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1181,13 +1463,18 @@ public void modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest reques
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request, + public void getSnapshot( + com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetSnapshotMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetSnapshotMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Lists the existing snapshots.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1195,13 +1482,18 @@ public void getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request,
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request, + public void listSnapshots( + com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListSnapshotsMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListSnapshotsMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Creates a snapshot from the requested subscription.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1220,13 +1512,18 @@ public void listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request,
          * requests, you must specify a name in the request.
          * 
    */ - public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request, + public void createSnapshot( + com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateSnapshotMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateSnapshotMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Updates an existing snapshot.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1235,13 +1532,18 @@ public void createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request,
          * Note that certain properties of a snapshot are not modifiable.
          * 
    */ - public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request, + public void updateSnapshot( + com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getUpdateSnapshotMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateSnapshotMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Removes an existing snapshot. <br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1253,13 +1555,18 @@ public void updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request,
          * snapshot or its subscription, unless the same subscription is specified.
          * 
    */ - public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request, + public void deleteSnapshot( + com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteSnapshotMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteSnapshotMethodHelper(), getCallOptions()), + request, + responseObserver); } /** + * + * *
          * Seeks an existing subscription to a point in time or to a given snapshot,
          * whichever is provided in the request.<br><br>
    @@ -1268,7 +1575,8 @@ public void deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request,
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public void seek(com.google.pubsub.v1.SeekRequest request, + public void seek( + com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getSeekMethodHelper(), getCallOptions()), request, responseObserver); @@ -1276,29 +1584,33 @@ public void seek(com.google.pubsub.v1.SeekRequest request, } /** + * + * *
        * 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.
        * 
    */ - public static final class SubscriberBlockingStub extends io.grpc.stub.AbstractStub { + public static final class SubscriberBlockingStub + extends io.grpc.stub.AbstractStub { private SubscriberBlockingStub(io.grpc.Channel channel) { super(channel); } - private SubscriberBlockingStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + private SubscriberBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected SubscriberBlockingStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + protected SubscriberBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SubscriberBlockingStub(channel, callOptions); } /** + * + * *
          * Creates a subscription to a given topic. See the
          * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    @@ -1312,43 +1624,55 @@ protected SubscriberBlockingStub build(io.grpc.Channel channel,
          * Note that for REST API requests, you must specify a name in the request.
          * 
    */ - public com.google.pubsub.v1.Subscription createSubscription(com.google.pubsub.v1.Subscription request) { + public com.google.pubsub.v1.Subscription createSubscription( + com.google.pubsub.v1.Subscription request) { return blockingUnaryCall( getChannel(), getCreateSubscriptionMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Gets the configuration details of a subscription.
          * 
    */ - public com.google.pubsub.v1.Subscription getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request) { + public com.google.pubsub.v1.Subscription getSubscription( + com.google.pubsub.v1.GetSubscriptionRequest request) { return blockingUnaryCall( getChannel(), getGetSubscriptionMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Updates an existing subscription. Note that certain properties of a
          * subscription, such as its topic, are not modifiable.
          * 
    */ - public com.google.pubsub.v1.Subscription updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request) { + public com.google.pubsub.v1.Subscription updateSubscription( + com.google.pubsub.v1.UpdateSubscriptionRequest request) { return blockingUnaryCall( getChannel(), getUpdateSubscriptionMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Lists matching subscriptions.
          * 
    */ - public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { + public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( + com.google.pubsub.v1.ListSubscriptionsRequest request) { return blockingUnaryCall( getChannel(), getListSubscriptionsMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Deletes an existing subscription. All messages retained in the subscription
          * are immediately dropped. Calls to `Pull` after deletion will return
    @@ -1357,12 +1681,15 @@ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions(com.goog
          * subscription or its topic unless the same topic is specified.
          * 
    */ - public com.google.protobuf.Empty deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request) { + public com.google.protobuf.Empty deleteSubscription( + com.google.pubsub.v1.DeleteSubscriptionRequest request) { return blockingUnaryCall( getChannel(), getDeleteSubscriptionMethodHelper(), getCallOptions(), request); } /** + * + * *
          * 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
    @@ -1371,12 +1698,15 @@ public com.google.protobuf.Empty deleteSubscription(com.google.pubsub.v1.DeleteS
          * subscription-level `ackDeadlineSeconds` used for subsequent messages.
          * 
    */ - public com.google.protobuf.Empty modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request) { + public com.google.protobuf.Empty modifyAckDeadline( + com.google.pubsub.v1.ModifyAckDeadlineRequest request) { return blockingUnaryCall( getChannel(), getModifyAckDeadlineMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Acknowledges the messages associated with the `ack_ids` in the
          * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
    @@ -1392,6 +1722,8 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq
         }
     
         /**
    +     *
    +     *
          * 
          * Pulls messages from the server. The server may return `UNAVAILABLE` if
          * there are too many concurrent pull requests pending for the given
    @@ -1399,11 +1731,12 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq
          * 
    */ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) { - return blockingUnaryCall( - getChannel(), getPullMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getPullMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Modifies the `PushConfig` for a specified subscription.
          * This may be used to change a push subscription to a pull one (signified by
    @@ -1412,12 +1745,15 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r
          * continuously through the call regardless of changes to the `PushConfig`.
          * 
    */ - public com.google.protobuf.Empty modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request) { + public com.google.protobuf.Empty modifyPushConfig( + com.google.pubsub.v1.ModifyPushConfigRequest request) { return blockingUnaryCall( getChannel(), getModifyPushConfigMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Gets the configuration details of a snapshot.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1425,12 +1761,15 @@ public com.google.protobuf.Empty modifyPushConfig(com.google.pubsub.v1.ModifyPus
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public com.google.pubsub.v1.Snapshot getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request) { + public com.google.pubsub.v1.Snapshot getSnapshot( + com.google.pubsub.v1.GetSnapshotRequest request) { return blockingUnaryCall( getChannel(), getGetSnapshotMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Lists the existing snapshots.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1438,12 +1777,15 @@ public com.google.pubsub.v1.Snapshot getSnapshot(com.google.pubsub.v1.GetSnapsho
          * use. It is not subject to any SLA or deprecation policy.
          * 
    */ - public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) { + public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( + com.google.pubsub.v1.ListSnapshotsRequest request) { return blockingUnaryCall( getChannel(), getListSnapshotsMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Creates a snapshot from the requested subscription.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1462,12 +1804,15 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(com.google.pubsu
          * requests, you must specify a name in the request.
          * 
    */ - public com.google.pubsub.v1.Snapshot createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request) { + public com.google.pubsub.v1.Snapshot createSnapshot( + com.google.pubsub.v1.CreateSnapshotRequest request) { return blockingUnaryCall( getChannel(), getCreateSnapshotMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Updates an existing snapshot.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1476,12 +1821,15 @@ public com.google.pubsub.v1.Snapshot createSnapshot(com.google.pubsub.v1.CreateS
          * Note that certain properties of a snapshot are not modifiable.
          * 
    */ - public com.google.pubsub.v1.Snapshot updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request) { + public com.google.pubsub.v1.Snapshot updateSnapshot( + com.google.pubsub.v1.UpdateSnapshotRequest request) { return blockingUnaryCall( getChannel(), getUpdateSnapshotMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Removes an existing snapshot. <br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1493,12 +1841,15 @@ public com.google.pubsub.v1.Snapshot updateSnapshot(com.google.pubsub.v1.UpdateS
          * snapshot or its subscription, unless the same subscription is specified.
          * 
    */ - public com.google.protobuf.Empty deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request) { + public com.google.protobuf.Empty deleteSnapshot( + com.google.pubsub.v1.DeleteSnapshotRequest request) { return blockingUnaryCall( getChannel(), getDeleteSnapshotMethodHelper(), getCallOptions(), request); } /** + * + * *
          * Seeks an existing subscription to a point in time or to a given snapshot,
          * whichever is provided in the request.<br><br>
    @@ -1508,35 +1859,37 @@ public com.google.protobuf.Empty deleteSnapshot(com.google.pubsub.v1.DeleteSnaps
          * 
    */ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { - return blockingUnaryCall( - getChannel(), getSeekMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getSeekMethodHelper(), getCallOptions(), request); } } /** + * + * *
        * 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.
        * 
    */ - public static final class SubscriberFutureStub extends io.grpc.stub.AbstractStub { + public static final class SubscriberFutureStub + extends io.grpc.stub.AbstractStub { private SubscriberFutureStub(io.grpc.Channel channel) { super(channel); } - private SubscriberFutureStub(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + private SubscriberFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected SubscriberFutureStub build(io.grpc.Channel channel, - io.grpc.CallOptions callOptions) { + protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SubscriberFutureStub(channel, callOptions); } /** + * + * *
          * Creates a subscription to a given topic. See the
          * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    @@ -1550,47 +1903,56 @@ protected SubscriberFutureStub build(io.grpc.Channel channel,
          * Note that for REST API requests, you must specify a name in the request.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture createSubscription( - com.google.pubsub.v1.Subscription request) { + public com.google.common.util.concurrent.ListenableFuture + createSubscription(com.google.pubsub.v1.Subscription request) { return futureUnaryCall( getChannel().newCall(getCreateSubscriptionMethodHelper(), getCallOptions()), request); } /** + * + * *
          * Gets the configuration details of a subscription.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture getSubscription( - com.google.pubsub.v1.GetSubscriptionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request) { return futureUnaryCall( getChannel().newCall(getGetSubscriptionMethodHelper(), getCallOptions()), request); } /** + * + * *
          * Updates an existing subscription. Note that certain properties of a
          * subscription, such as its topic, are not modifiable.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture updateSubscription( - com.google.pubsub.v1.UpdateSubscriptionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request) { return futureUnaryCall( getChannel().newCall(getUpdateSubscriptionMethodHelper(), getCallOptions()), request); } /** + * + * *
          * Lists matching subscriptions.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture listSubscriptions( - com.google.pubsub.v1.ListSubscriptionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ListSubscriptionsResponse> + listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { return futureUnaryCall( getChannel().newCall(getListSubscriptionsMethodHelper(), getCallOptions()), request); } /** + * + * *
          * Deletes an existing subscription. All messages retained in the subscription
          * are immediately dropped. Calls to `Pull` after deletion will return
    @@ -1599,13 +1961,15 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture deleteSubscription(
    -        com.google.pubsub.v1.DeleteSubscriptionRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture
    +        deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getDeleteSubscriptionMethodHelper(), getCallOptions()), request);
         }
     
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1614,13 +1978,15 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture modifyAckDeadline(
    -        com.google.pubsub.v1.ModifyAckDeadlineRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture
    +        modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getModifyAckDeadlineMethodHelper(), getCallOptions()), request);
         }
     
         /**
    +     *
    +     *
          * 
          * Acknowledges the messages associated with the `ack_ids` in the
          * `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
    @@ -1630,26 +1996,30 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture acknowledge(
    -        com.google.pubsub.v1.AcknowledgeRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture
    +        acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getAcknowledgeMethodHelper(), getCallOptions()), request);
         }
     
         /**
    +     *
    +     *
          * 
          * Pulls messages from the server. The server may return `UNAVAILABLE` if
          * there are too many concurrent pull requests pending for the given
          * subscription.
          * 
    */ - public com.google.common.util.concurrent.ListenableFuture pull( - com.google.pubsub.v1.PullRequest request) { + public com.google.common.util.concurrent.ListenableFuture + pull(com.google.pubsub.v1.PullRequest request) { return futureUnaryCall( getChannel().newCall(getPullMethodHelper(), getCallOptions()), request); } /** + * + * *
          * Modifies the `PushConfig` for a specified subscription.
          * This may be used to change a push subscription to a pull one (signified by
    @@ -1658,13 +2028,15 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture modifyPushConfig(
    -        com.google.pubsub.v1.ModifyPushConfigRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture
    +        modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getModifyPushConfigMethodHelper(), getCallOptions()), request);
         }
     
         /**
    +     *
    +     *
          * 
          * Gets the configuration details of a snapshot.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1672,13 +2044,15 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture getSnapshot(
    -        com.google.pubsub.v1.GetSnapshotRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture
    +        getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getGetSnapshotMethodHelper(), getCallOptions()), request);
         }
     
         /**
    +     *
    +     *
          * 
          * Lists the existing snapshots.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1686,13 +2060,16 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture listSnapshots(
    -        com.google.pubsub.v1.ListSnapshotsRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture<
    +            com.google.pubsub.v1.ListSnapshotsResponse>
    +        listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getListSnapshotsMethodHelper(), getCallOptions()), request);
         }
     
         /**
    +     *
    +     *
          * 
          * Creates a snapshot from the requested subscription.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1711,13 +2088,15 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture createSnapshot(
    -        com.google.pubsub.v1.CreateSnapshotRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture
    +        createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getCreateSnapshotMethodHelper(), getCallOptions()), request);
         }
     
         /**
    +     *
    +     *
          * 
          * Updates an existing snapshot.<br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1726,13 +2105,15 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture updateSnapshot(
    -        com.google.pubsub.v1.UpdateSnapshotRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture
    +        updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getUpdateSnapshotMethodHelper(), getCallOptions()), request);
         }
     
         /**
    +     *
    +     *
          * 
          * Removes an existing snapshot. <br><br>
          * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -1744,13 +2125,15 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture deleteSnapshot(
    -        com.google.pubsub.v1.DeleteSnapshotRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture
    +        deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getDeleteSnapshotMethodHelper(), getCallOptions()), request);
         }
     
         /**
    +     *
    +     *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
          * whichever is provided in the request.<br><br>
    @@ -1759,8 +2142,8 @@ public com.google.common.util.concurrent.ListenableFuture
          */
    -    public com.google.common.util.concurrent.ListenableFuture seek(
    -        com.google.pubsub.v1.SeekRequest request) {
    +    public com.google.common.util.concurrent.ListenableFuture
    +        seek(com.google.pubsub.v1.SeekRequest request) {
           return futureUnaryCall(
               getChannel().newCall(getSeekMethodHelper(), getCallOptions()), request);
         }
    @@ -1783,11 +2166,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
    -      io.grpc.stub.ServerCalls.UnaryMethod,
    -      io.grpc.stub.ServerCalls.ServerStreamingMethod,
    -      io.grpc.stub.ServerCalls.ClientStreamingMethod,
    -      io.grpc.stub.ServerCalls.BidiStreamingMethod {
    +  private static final class MethodHandlers
    +      implements io.grpc.stub.ServerCalls.UnaryMethod,
    +          io.grpc.stub.ServerCalls.ServerStreamingMethod,
    +          io.grpc.stub.ServerCalls.ClientStreamingMethod,
    +          io.grpc.stub.ServerCalls.BidiStreamingMethod {
         private final SubscriberImplBase serviceImpl;
         private final int methodId;
     
    @@ -1801,63 +2184,80 @@ private static final class MethodHandlers implements
         public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
           switch (methodId) {
             case METHODID_CREATE_SUBSCRIPTION:
    -          serviceImpl.createSubscription((com.google.pubsub.v1.Subscription) request,
    +          serviceImpl.createSubscription(
    +              (com.google.pubsub.v1.Subscription) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_GET_SUBSCRIPTION:
    -          serviceImpl.getSubscription((com.google.pubsub.v1.GetSubscriptionRequest) request,
    +          serviceImpl.getSubscription(
    +              (com.google.pubsub.v1.GetSubscriptionRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_UPDATE_SUBSCRIPTION:
    -          serviceImpl.updateSubscription((com.google.pubsub.v1.UpdateSubscriptionRequest) request,
    +          serviceImpl.updateSubscription(
    +              (com.google.pubsub.v1.UpdateSubscriptionRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_LIST_SUBSCRIPTIONS:
    -          serviceImpl.listSubscriptions((com.google.pubsub.v1.ListSubscriptionsRequest) request,
    -              (io.grpc.stub.StreamObserver) responseObserver);
    +          serviceImpl.listSubscriptions(
    +              (com.google.pubsub.v1.ListSubscriptionsRequest) request,
    +              (io.grpc.stub.StreamObserver)
    +                  responseObserver);
               break;
             case METHODID_DELETE_SUBSCRIPTION:
    -          serviceImpl.deleteSubscription((com.google.pubsub.v1.DeleteSubscriptionRequest) request,
    +          serviceImpl.deleteSubscription(
    +              (com.google.pubsub.v1.DeleteSubscriptionRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_MODIFY_ACK_DEADLINE:
    -          serviceImpl.modifyAckDeadline((com.google.pubsub.v1.ModifyAckDeadlineRequest) request,
    +          serviceImpl.modifyAckDeadline(
    +              (com.google.pubsub.v1.ModifyAckDeadlineRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_ACKNOWLEDGE:
    -          serviceImpl.acknowledge((com.google.pubsub.v1.AcknowledgeRequest) request,
    +          serviceImpl.acknowledge(
    +              (com.google.pubsub.v1.AcknowledgeRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_PULL:
    -          serviceImpl.pull((com.google.pubsub.v1.PullRequest) request,
    +          serviceImpl.pull(
    +              (com.google.pubsub.v1.PullRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_MODIFY_PUSH_CONFIG:
    -          serviceImpl.modifyPushConfig((com.google.pubsub.v1.ModifyPushConfigRequest) request,
    +          serviceImpl.modifyPushConfig(
    +              (com.google.pubsub.v1.ModifyPushConfigRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_GET_SNAPSHOT:
    -          serviceImpl.getSnapshot((com.google.pubsub.v1.GetSnapshotRequest) request,
    +          serviceImpl.getSnapshot(
    +              (com.google.pubsub.v1.GetSnapshotRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_LIST_SNAPSHOTS:
    -          serviceImpl.listSnapshots((com.google.pubsub.v1.ListSnapshotsRequest) request,
    -              (io.grpc.stub.StreamObserver) responseObserver);
    +          serviceImpl.listSnapshots(
    +              (com.google.pubsub.v1.ListSnapshotsRequest) request,
    +              (io.grpc.stub.StreamObserver)
    +                  responseObserver);
               break;
             case METHODID_CREATE_SNAPSHOT:
    -          serviceImpl.createSnapshot((com.google.pubsub.v1.CreateSnapshotRequest) request,
    +          serviceImpl.createSnapshot(
    +              (com.google.pubsub.v1.CreateSnapshotRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_UPDATE_SNAPSHOT:
    -          serviceImpl.updateSnapshot((com.google.pubsub.v1.UpdateSnapshotRequest) request,
    +          serviceImpl.updateSnapshot(
    +              (com.google.pubsub.v1.UpdateSnapshotRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_DELETE_SNAPSHOT:
    -          serviceImpl.deleteSnapshot((com.google.pubsub.v1.DeleteSnapshotRequest) request,
    +          serviceImpl.deleteSnapshot(
    +              (com.google.pubsub.v1.DeleteSnapshotRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             case METHODID_SEEK:
    -          serviceImpl.seek((com.google.pubsub.v1.SeekRequest) request,
    +          serviceImpl.seek(
    +              (com.google.pubsub.v1.SeekRequest) request,
                   (io.grpc.stub.StreamObserver) responseObserver);
               break;
             default:
    @@ -1871,16 +2271,19 @@ public io.grpc.stub.StreamObserver invoke(
             io.grpc.stub.StreamObserver responseObserver) {
           switch (methodId) {
             case METHODID_STREAMING_PULL:
    -          return (io.grpc.stub.StreamObserver) serviceImpl.streamingPull(
    -              (io.grpc.stub.StreamObserver) responseObserver);
    +          return (io.grpc.stub.StreamObserver)
    +              serviceImpl.streamingPull(
    +                  (io.grpc.stub.StreamObserver)
    +                      responseObserver);
             default:
               throw new AssertionError();
           }
         }
       }
     
    -  private static abstract class SubscriberBaseDescriptorSupplier
    -      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    +  private abstract static class SubscriberBaseDescriptorSupplier
    +      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
    +          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
         SubscriberBaseDescriptorSupplier() {}
     
         @java.lang.Override
    @@ -1922,25 +2325,27 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
           synchronized (SubscriberGrpc.class) {
             result = serviceDescriptor;
             if (result == null) {
    -          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
    -              .setSchemaDescriptor(new SubscriberFileDescriptorSupplier())
    -              .addMethod(getCreateSubscriptionMethodHelper())
    -              .addMethod(getGetSubscriptionMethodHelper())
    -              .addMethod(getUpdateSubscriptionMethodHelper())
    -              .addMethod(getListSubscriptionsMethodHelper())
    -              .addMethod(getDeleteSubscriptionMethodHelper())
    -              .addMethod(getModifyAckDeadlineMethodHelper())
    -              .addMethod(getAcknowledgeMethodHelper())
    -              .addMethod(getPullMethodHelper())
    -              .addMethod(getStreamingPullMethodHelper())
    -              .addMethod(getModifyPushConfigMethodHelper())
    -              .addMethod(getGetSnapshotMethodHelper())
    -              .addMethod(getListSnapshotsMethodHelper())
    -              .addMethod(getCreateSnapshotMethodHelper())
    -              .addMethod(getUpdateSnapshotMethodHelper())
    -              .addMethod(getDeleteSnapshotMethodHelper())
    -              .addMethod(getSeekMethodHelper())
    -              .build();
    +          serviceDescriptor =
    +              result =
    +                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
    +                      .setSchemaDescriptor(new SubscriberFileDescriptorSupplier())
    +                      .addMethod(getCreateSubscriptionMethodHelper())
    +                      .addMethod(getGetSubscriptionMethodHelper())
    +                      .addMethod(getUpdateSubscriptionMethodHelper())
    +                      .addMethod(getListSubscriptionsMethodHelper())
    +                      .addMethod(getDeleteSubscriptionMethodHelper())
    +                      .addMethod(getModifyAckDeadlineMethodHelper())
    +                      .addMethod(getAcknowledgeMethodHelper())
    +                      .addMethod(getPullMethodHelper())
    +                      .addMethod(getStreamingPullMethodHelper())
    +                      .addMethod(getModifyPushConfigMethodHelper())
    +                      .addMethod(getGetSnapshotMethodHelper())
    +                      .addMethod(getListSnapshotsMethodHelper())
    +                      .addMethod(getCreateSnapshotMethodHelper())
    +                      .addMethod(getUpdateSnapshotMethodHelper())
    +                      .addMethod(getDeleteSnapshotMethodHelper())
    +                      .addMethod(getSeekMethodHelper())
    +                      .build();
             }
           }
         }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    index a5520a9b52e1..61c13fd39943 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    @@ -4,31 +4,34 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the Acknowledge method.
      * 
    * * Protobuf type {@code google.pubsub.v1.AcknowledgeRequest} */ -public final class AcknowledgeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AcknowledgeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.AcknowledgeRequest) AcknowledgeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AcknowledgeRequest.newBuilder() to construct. private AcknowledgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AcknowledgeRequest() { subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AcknowledgeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -48,35 +51,36 @@ private AcknowledgeRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + subscription_ = s; + break; } - ackIds_.add(s); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + ackIds_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ackIds_ = ackIds_.getUnmodifiableView(); @@ -85,23 +89,28 @@ private AcknowledgeRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.AcknowledgeRequest.class, com.google.pubsub.v1.AcknowledgeRequest.Builder.class); + com.google.pubsub.v1.AcknowledgeRequest.class, + com.google.pubsub.v1.AcknowledgeRequest.Builder.class); } private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** + * + * *
        * The subscription whose message is being acknowledged.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -114,14 +123,15 @@ public java.lang.String getSubscription() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           subscription_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The subscription whose message is being acknowledged.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -129,13 +139,11 @@ public java.lang.String getSubscription() {
        *
        * string subscription = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getSubscriptionBytes() {
    +  public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           subscription_ = b;
           return b;
         } else {
    @@ -146,6 +154,8 @@ public java.lang.String getSubscription() {
       public static final int ACK_IDS_FIELD_NUMBER = 2;
       private com.google.protobuf.LazyStringList ackIds_;
       /**
    +   *
    +   *
        * 
        * The acknowledgment ID for the messages being acknowledged that was returned
        * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -153,11 +163,12 @@ public java.lang.String getSubscription() {
        *
        * repeated string ack_ids = 2;
        */
    -  public com.google.protobuf.ProtocolStringList
    -      getAckIdsList() {
    +  public com.google.protobuf.ProtocolStringList getAckIdsList() {
         return ackIds_;
       }
       /**
    +   *
    +   *
        * 
        * The acknowledgment ID for the messages being acknowledged that was returned
        * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -169,6 +180,8 @@ public int getAckIdsCount() {
         return ackIds_.size();
       }
       /**
    +   *
    +   *
        * 
        * The acknowledgment ID for the messages being acknowledged that was returned
        * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -180,6 +193,8 @@ public java.lang.String getAckIds(int index) {
         return ackIds_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * The acknowledgment ID for the messages being acknowledged that was returned
        * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -187,12 +202,12 @@ public java.lang.String getAckIds(int index) {
        *
        * repeated string ack_ids = 2;
        */
    -  public com.google.protobuf.ByteString
    -      getAckIdsBytes(int index) {
    +  public com.google.protobuf.ByteString getAckIdsBytes(int index) {
         return ackIds_.getByteString(index);
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -204,8 +219,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getSubscriptionBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
    @@ -240,7 +254,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.AcknowledgeRequest)) {
           return super.equals(obj);
    @@ -248,10 +262,8 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.AcknowledgeRequest other = (com.google.pubsub.v1.AcknowledgeRequest) obj;
     
         boolean result = true;
    -    result = result && getSubscription()
    -        .equals(other.getSubscription());
    -    result = result && getAckIdsList()
    -        .equals(other.getAckIdsList());
    +    result = result && getSubscription().equals(other.getSubscription());
    +    result = result && getAckIdsList().equals(other.getAckIdsList());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -274,118 +286,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.AcknowledgeRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the Acknowledge method.
        * 
    * * Protobuf type {@code google.pubsub.v1.AcknowledgeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.AcknowledgeRequest) com.google.pubsub.v1.AcknowledgeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.AcknowledgeRequest.class, com.google.pubsub.v1.AcknowledgeRequest.Builder.class); + com.google.pubsub.v1.AcknowledgeRequest.class, + com.google.pubsub.v1.AcknowledgeRequest.Builder.class); } // Construct using com.google.pubsub.v1.AcknowledgeRequest.newBuilder() @@ -393,16 +414,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } @java.lang.Override @@ -435,7 +455,8 @@ public com.google.pubsub.v1.AcknowledgeRequest build() { @java.lang.Override public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { - com.google.pubsub.v1.AcknowledgeRequest result = new com.google.pubsub.v1.AcknowledgeRequest(this); + com.google.pubsub.v1.AcknowledgeRequest result = + new com.google.pubsub.v1.AcknowledgeRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.subscription_ = subscription_; @@ -453,38 +474,39 @@ public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.AcknowledgeRequest) { - return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest)other); + return mergeFrom((com.google.pubsub.v1.AcknowledgeRequest) other); } else { super.mergeFrom(other); return this; @@ -535,10 +557,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object subscription_ = ""; /** + * + * *
          * The subscription whose message is being acknowledged.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -549,8 +574,7 @@ public Builder mergeFrom(
         public java.lang.String getSubscription() {
           java.lang.Object ref = subscription_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             subscription_ = s;
             return s;
    @@ -559,6 +583,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The subscription whose message is being acknowledged.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -566,13 +592,11 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getSubscriptionBytes() {
    +    public com.google.protobuf.ByteString getSubscriptionBytes() {
           java.lang.Object ref = subscription_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             subscription_ = b;
             return b;
           } else {
    @@ -580,6 +604,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The subscription whose message is being acknowledged.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -587,17 +613,18 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscription(
    -        java.lang.String value) {
    +    public Builder setSubscription(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           subscription_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The subscription whose message is being acknowledged.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -606,12 +633,14 @@ public Builder setSubscription(
          * string subscription = 1;
          */
         public Builder clearSubscription() {
    -      
    +
           subscription_ = getDefaultInstance().getSubscription();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The subscription whose message is being acknowledged.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -619,26 +648,29 @@ public Builder clearSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscriptionBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           subscription_ = value;
           onChanged();
           return this;
         }
     
    -    private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList ackIds_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAckIdsIsMutable() {
           if (!((bitField0_ & 0x00000002) == 0x00000002)) {
             ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
             bitField0_ |= 0x00000002;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * The acknowledgment ID for the messages being acknowledged that was returned
          * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -646,11 +678,12 @@ private void ensureAckIdsIsMutable() {
          *
          * repeated string ack_ids = 2;
          */
    -    public com.google.protobuf.ProtocolStringList
    -        getAckIdsList() {
    +    public com.google.protobuf.ProtocolStringList getAckIdsList() {
           return ackIds_.getUnmodifiableView();
         }
         /**
    +     *
    +     *
          * 
          * The acknowledgment ID for the messages being acknowledged that was returned
          * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -662,6 +695,8 @@ public int getAckIdsCount() {
           return ackIds_.size();
         }
         /**
    +     *
    +     *
          * 
          * The acknowledgment ID for the messages being acknowledged that was returned
          * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -673,6 +708,8 @@ public java.lang.String getAckIds(int index) {
           return ackIds_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * The acknowledgment ID for the messages being acknowledged that was returned
          * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -680,11 +717,12 @@ public java.lang.String getAckIds(int index) {
          *
          * repeated string ack_ids = 2;
          */
    -    public com.google.protobuf.ByteString
    -        getAckIdsBytes(int index) {
    +    public com.google.protobuf.ByteString getAckIdsBytes(int index) {
           return ackIds_.getByteString(index);
         }
         /**
    +     *
    +     *
          * 
          * The acknowledgment ID for the messages being acknowledged that was returned
          * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -692,17 +730,18 @@ public java.lang.String getAckIds(int index) {
          *
          * repeated string ack_ids = 2;
          */
    -    public Builder setAckIds(
    -        int index, java.lang.String value) {
    +    public Builder setAckIds(int index, java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  ensureAckIdsIsMutable();
    +        throw new NullPointerException();
    +      }
    +      ensureAckIdsIsMutable();
           ackIds_.set(index, value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The acknowledgment ID for the messages being acknowledged that was returned
          * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -710,17 +749,18 @@ public Builder setAckIds(
          *
          * repeated string ack_ids = 2;
          */
    -    public Builder addAckIds(
    -        java.lang.String value) {
    +    public Builder addAckIds(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  ensureAckIdsIsMutable();
    +        throw new NullPointerException();
    +      }
    +      ensureAckIdsIsMutable();
           ackIds_.add(value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The acknowledgment ID for the messages being acknowledged that was returned
          * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -728,15 +768,15 @@ public Builder addAckIds(
          *
          * repeated string ack_ids = 2;
          */
    -    public Builder addAllAckIds(
    -        java.lang.Iterable values) {
    +    public Builder addAllAckIds(java.lang.Iterable values) {
           ensureAckIdsIsMutable();
    -      com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -          values, ackIds_);
    +      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The acknowledgment ID for the messages being acknowledged that was returned
          * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -751,6 +791,8 @@ public Builder clearAckIds() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The acknowledgment ID for the messages being acknowledged that was returned
          * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -758,20 +800,19 @@ public Builder clearAckIds() {
          *
          * repeated string ack_ids = 2;
          */
    -    public Builder addAckIdsBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder addAckIdsBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
           ensureAckIdsIsMutable();
           ackIds_.add(value);
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -781,12 +822,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.AcknowledgeRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.AcknowledgeRequest)
       private static final com.google.pubsub.v1.AcknowledgeRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.AcknowledgeRequest();
       }
    @@ -795,16 +836,16 @@ public static com.google.pubsub.v1.AcknowledgeRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public AcknowledgeRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new AcknowledgeRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public AcknowledgeRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new AcknowledgeRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -819,6 +860,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.AcknowledgeRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java
    index e30756788943..e5cc4683ef92 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface AcknowledgeRequestOrBuilder extends
    +public interface AcknowledgeRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.AcknowledgeRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The subscription whose message is being acknowledged.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -17,6 +20,8 @@ public interface AcknowledgeRequestOrBuilder extends
        */
       java.lang.String getSubscription();
       /**
    +   *
    +   *
        * 
        * The subscription whose message is being acknowledged.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -24,10 +29,11 @@ public interface AcknowledgeRequestOrBuilder extends
        *
        * string subscription = 1;
        */
    -  com.google.protobuf.ByteString
    -      getSubscriptionBytes();
    +  com.google.protobuf.ByteString getSubscriptionBytes();
     
       /**
    +   *
    +   *
        * 
        * The acknowledgment ID for the messages being acknowledged that was returned
        * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -35,9 +41,10 @@ public interface AcknowledgeRequestOrBuilder extends
        *
        * repeated string ack_ids = 2;
        */
    -  java.util.List
    -      getAckIdsList();
    +  java.util.List getAckIdsList();
       /**
    +   *
    +   *
        * 
        * The acknowledgment ID for the messages being acknowledged that was returned
        * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -47,6 +54,8 @@ public interface AcknowledgeRequestOrBuilder extends
        */
       int getAckIdsCount();
       /**
    +   *
    +   *
        * 
        * The acknowledgment ID for the messages being acknowledged that was returned
        * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -56,6 +65,8 @@ public interface AcknowledgeRequestOrBuilder extends
        */
       java.lang.String getAckIds(int index);
       /**
    +   *
    +   *
        * 
        * The acknowledgment ID for the messages being acknowledged that was returned
        * by the Pub/Sub system in the `Pull` response. Must not be empty.
    @@ -63,6 +74,5 @@ public interface AcknowledgeRequestOrBuilder extends
        *
        * repeated string ack_ids = 2;
        */
    -  com.google.protobuf.ByteString
    -      getAckIdsBytes(int index);
    +  com.google.protobuf.ByteString getAckIdsBytes(int index);
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    index bc5356e43623..1b2ce17937f1 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    @@ -4,6 +4,8 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the `CreateSnapshot` method.<br><br>
      * <b>ALPHA:</b> This feature is part of an alpha release. This API might be changed in
    @@ -13,25 +15,26 @@
      *
      * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest}
      */
    -public  final class CreateSnapshotRequest extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class CreateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSnapshotRequest)
         CreateSnapshotRequestOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use CreateSnapshotRequest.newBuilder() to construct.
       private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private CreateSnapshotRequest() {
         name_ = "";
         subscription_ = "";
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private CreateSnapshotRequest(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -51,79 +54,84 @@ private CreateSnapshotRequest(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 10:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            name_ = s;
    -            break;
    -          }
    -          case 18: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +              name_ = s;
    +              break;
    +            }
    +          case 18:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            subscription_ = s;
    -            break;
    -          }
    -          case 26: {
    -            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
    -              labels_ = com.google.protobuf.MapField.newMapField(
    -                  LabelsDefaultEntryHolder.defaultEntry);
    -              mutable_bitField0_ |= 0x00000004;
    +              subscription_ = s;
    +              break;
                 }
    -            com.google.protobuf.MapEntry
    -            labels__ = input.readMessage(
    -                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    -            labels_.getMutableMap().put(
    -                labels__.getKey(), labels__.getValue());
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +          case 26:
    +            {
    +              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
    +                labels_ =
    +                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
    +                mutable_bitField0_ |= 0x00000004;
    +              }
    +              com.google.protobuf.MapEntry labels__ =
    +                  input.readMessage(
    +                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    +              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
    +              break;
    +            }
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor;
       }
     
       @SuppressWarnings({"rawtypes"})
       @java.lang.Override
    -  protected com.google.protobuf.MapField internalGetMapField(
    -      int number) {
    +  protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 3:
             return internalGetLabels();
           default:
    -        throw new RuntimeException(
    -            "Invalid map field number: " + number);
    +        throw new RuntimeException("Invalid map field number: " + number);
         }
       }
    +
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.CreateSnapshotRequest.class, com.google.pubsub.v1.CreateSnapshotRequest.Builder.class);
    +            com.google.pubsub.v1.CreateSnapshotRequest.class,
    +            com.google.pubsub.v1.CreateSnapshotRequest.Builder.class);
       }
     
       private int bitField0_;
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    +   *
    +   *
        * 
        * Optional user-provided name for this snapshot.
        * If the name is not provided in the request, the server will assign a random
    @@ -140,14 +148,15 @@ public java.lang.String getName() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           name_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * Optional user-provided name for this snapshot.
        * If the name is not provided in the request, the server will assign a random
    @@ -159,13 +168,11 @@ public java.lang.String getName() {
        *
        * string name = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getNameBytes() {
    +  public com.google.protobuf.ByteString getNameBytes() {
         java.lang.Object ref = name_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           name_ = b;
           return b;
         } else {
    @@ -176,6 +183,8 @@ public java.lang.String getName() {
       public static final int SUBSCRIPTION_FIELD_NUMBER = 2;
       private volatile java.lang.Object subscription_;
       /**
    +   *
    +   *
        * 
        * The subscription whose backlog the snapshot retains.
        * Specifically, the created snapshot is guaranteed to retain:
    @@ -195,14 +204,15 @@ public java.lang.String getSubscription() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           subscription_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The subscription whose backlog the snapshot retains.
        * Specifically, the created snapshot is guaranteed to retain:
    @@ -217,13 +227,11 @@ public java.lang.String getSubscription() {
        *
        * string subscription = 2;
        */
    -  public com.google.protobuf.ByteString
    -      getSubscriptionBytes() {
    +  public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           subscription_ = b;
           return b;
         } else {
    @@ -232,24 +240,23 @@ public java.lang.String getSubscription() {
       }
     
       public static final int LABELS_FIELD_NUMBER = 3;
    +
       private static final class LabelsDefaultEntryHolder {
    -    static final com.google.protobuf.MapEntry<
    -        java.lang.String, java.lang.String> defaultEntry =
    -            com.google.protobuf.MapEntry
    -            .newDefaultInstance(
    -                com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, 
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "",
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "");
    +    static final com.google.protobuf.MapEntry defaultEntry =
    +        com.google.protobuf.MapEntry.newDefaultInstance(
    +            com.google.pubsub.v1.PubsubProto
    +                .internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor,
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "",
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "");
       }
    -  private com.google.protobuf.MapField<
    -      java.lang.String, java.lang.String> labels_;
    -  private com.google.protobuf.MapField
    -  internalGetLabels() {
    +
    +  private com.google.protobuf.MapField labels_;
    +
    +  private com.google.protobuf.MapField internalGetLabels() {
         if (labels_ == null) {
    -      return com.google.protobuf.MapField.emptyMapField(
    -          LabelsDefaultEntryHolder.defaultEntry);
    +      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
         }
         return labels_;
       }
    @@ -258,65 +265,67 @@ public int getLabelsCount() {
         return internalGetLabels().getMap().size();
       }
       /**
    +   *
    +   *
        * 
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 3; */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 3; */ - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 3; */ - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 3; */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -324,6 +333,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,20 +345,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getSubscriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); unknownFields.writeTo(output); } @@ -364,15 +369,15 @@ public int getSerializedSize() { if (!getSubscriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -382,20 +387,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.CreateSnapshotRequest)) { return super.equals(obj); } - com.google.pubsub.v1.CreateSnapshotRequest other = (com.google.pubsub.v1.CreateSnapshotRequest) obj; + com.google.pubsub.v1.CreateSnapshotRequest other = + (com.google.pubsub.v1.CreateSnapshotRequest) obj; boolean result = true; - result = result && getName() - .equals(other.getName()); - result = result && getSubscription() - .equals(other.getSubscription()); - result = result && internalGetLabels().equals( - other.internalGetLabels()); + result = result && getName().equals(other.getName()); + result = result && getSubscription().equals(other.getSubscription()); + result = result && internalGetLabels().equals(other.internalGetLabels()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -420,97 +423,104 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.CreateSnapshotRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Request for the `CreateSnapshot` method.<br><br>
        * <b>ALPHA:</b> This feature is part of an alpha release. This API might be changed in
    @@ -520,43 +530,43 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CreateSnapshotRequest)
           com.google.pubsub.v1.CreateSnapshotRequestOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor;
         }
     
         @SuppressWarnings({"rawtypes"})
    -    protected com.google.protobuf.MapField internalGetMapField(
    -        int number) {
    +    protected com.google.protobuf.MapField internalGetMapField(int number) {
           switch (number) {
             case 3:
               return internalGetLabels();
             default:
    -          throw new RuntimeException(
    -              "Invalid map field number: " + number);
    +          throw new RuntimeException("Invalid map field number: " + number);
           }
         }
    +
         @SuppressWarnings({"rawtypes"})
    -    protected com.google.protobuf.MapField internalGetMutableMapField(
    -        int number) {
    +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
           switch (number) {
             case 3:
               return internalGetMutableLabels();
             default:
    -          throw new RuntimeException(
    -              "Invalid map field number: " + number);
    +          throw new RuntimeException("Invalid map field number: " + number);
           }
         }
    +
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.CreateSnapshotRequest.class, com.google.pubsub.v1.CreateSnapshotRequest.Builder.class);
    +              com.google.pubsub.v1.CreateSnapshotRequest.class,
    +              com.google.pubsub.v1.CreateSnapshotRequest.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.CreateSnapshotRequest.newBuilder()
    @@ -564,16 +574,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -586,9 +595,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor;
         }
     
         @java.lang.Override
    @@ -607,7 +616,8 @@ public com.google.pubsub.v1.CreateSnapshotRequest build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() {
    -      com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this);
    +      com.google.pubsub.v1.CreateSnapshotRequest result =
    +          new com.google.pubsub.v1.CreateSnapshotRequest(this);
           int from_bitField0_ = bitField0_;
           int to_bitField0_ = 0;
           result.name_ = name_;
    @@ -623,38 +633,39 @@ public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.CreateSnapshotRequest) {
    -        return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest)other);
    +        return mergeFrom((com.google.pubsub.v1.CreateSnapshotRequest) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -671,8 +682,7 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) {
             subscription_ = other.subscription_;
             onChanged();
           }
    -      internalGetMutableLabels().mergeFrom(
    -          other.internalGetLabels());
    +      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
           this.mergeUnknownFields(other.unknownFields);
           onChanged();
           return this;
    @@ -701,10 +711,13 @@ public Builder mergeFrom(
           }
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object name_ = "";
         /**
    +     *
    +     *
          * 
          * Optional user-provided name for this snapshot.
          * If the name is not provided in the request, the server will assign a random
    @@ -719,8 +732,7 @@ public Builder mergeFrom(
         public java.lang.String getName() {
           java.lang.Object ref = name_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             name_ = s;
             return s;
    @@ -729,6 +741,8 @@ public java.lang.String getName() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Optional user-provided name for this snapshot.
          * If the name is not provided in the request, the server will assign a random
    @@ -740,13 +754,11 @@ public java.lang.String getName() {
          *
          * string name = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getNameBytes() {
    +    public com.google.protobuf.ByteString getNameBytes() {
           java.lang.Object ref = name_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             name_ = b;
             return b;
           } else {
    @@ -754,6 +766,8 @@ public java.lang.String getName() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Optional user-provided name for this snapshot.
          * If the name is not provided in the request, the server will assign a random
    @@ -765,17 +779,18 @@ public java.lang.String getName() {
          *
          * string name = 1;
          */
    -    public Builder setName(
    -        java.lang.String value) {
    +    public Builder setName(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           name_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Optional user-provided name for this snapshot.
          * If the name is not provided in the request, the server will assign a random
    @@ -788,12 +803,14 @@ public Builder setName(
          * string name = 1;
          */
         public Builder clearName() {
    -      
    +
           name_ = getDefaultInstance().getName();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Optional user-provided name for this snapshot.
          * If the name is not provided in the request, the server will assign a random
    @@ -805,13 +822,12 @@ public Builder clearName() {
          *
          * string name = 1;
          */
    -    public Builder setNameBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setNameBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           name_ = value;
           onChanged();
           return this;
    @@ -819,6 +835,8 @@ public Builder setNameBytes(
     
         private java.lang.Object subscription_ = "";
         /**
    +     *
    +     *
          * 
          * The subscription whose backlog the snapshot retains.
          * Specifically, the created snapshot is guaranteed to retain:
    @@ -836,8 +854,7 @@ public Builder setNameBytes(
         public java.lang.String getSubscription() {
           java.lang.Object ref = subscription_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             subscription_ = s;
             return s;
    @@ -846,6 +863,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The subscription whose backlog the snapshot retains.
          * Specifically, the created snapshot is guaranteed to retain:
    @@ -860,13 +879,11 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 2;
          */
    -    public com.google.protobuf.ByteString
    -        getSubscriptionBytes() {
    +    public com.google.protobuf.ByteString getSubscriptionBytes() {
           java.lang.Object ref = subscription_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             subscription_ = b;
             return b;
           } else {
    @@ -874,6 +891,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The subscription whose backlog the snapshot retains.
          * Specifically, the created snapshot is guaranteed to retain:
    @@ -888,17 +907,18 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 2;
          */
    -    public Builder setSubscription(
    -        java.lang.String value) {
    +    public Builder setSubscription(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           subscription_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The subscription whose backlog the snapshot retains.
          * Specifically, the created snapshot is guaranteed to retain:
    @@ -914,12 +934,14 @@ public Builder setSubscription(
          * string subscription = 2;
          */
         public Builder clearSubscription() {
    -      
    +
           subscription_ = getDefaultInstance().getSubscription();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The subscription whose backlog the snapshot retains.
          * Specifically, the created snapshot is guaranteed to retain:
    @@ -934,34 +956,32 @@ public Builder clearSubscription() {
          *
          * string subscription = 2;
          */
    -    public Builder setSubscriptionBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           subscription_ = value;
           onChanged();
           return this;
         }
     
    -    private com.google.protobuf.MapField<
    -        java.lang.String, java.lang.String> labels_;
    -    private com.google.protobuf.MapField
    -    internalGetLabels() {
    +    private com.google.protobuf.MapField labels_;
    +
    +    private com.google.protobuf.MapField internalGetLabels() {
           if (labels_ == null) {
    -        return com.google.protobuf.MapField.emptyMapField(
    -            LabelsDefaultEntryHolder.defaultEntry);
    +        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
           }
           return labels_;
         }
    +
         private com.google.protobuf.MapField
    -    internalGetMutableLabels() {
    -      onChanged();;
    +        internalGetMutableLabels() {
    +      onChanged();
    +      ;
           if (labels_ == null) {
    -        labels_ = com.google.protobuf.MapField.newMapField(
    -            LabelsDefaultEntryHolder.defaultEntry);
    +        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
           }
           if (!labels_.isMutable()) {
             labels_ = labels_.copy();
    @@ -973,65 +993,68 @@ public int getLabelsCount() {
           return internalGetLabels().getMap().size();
         }
         /**
    +     *
    +     *
          * 
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 3; */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 3; */ - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 3; */ - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 3; */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1039,66 +1062,65 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 3; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 3; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 3; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @@ -1108,12 +1130,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CreateSnapshotRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSnapshotRequest) private static final com.google.pubsub.v1.CreateSnapshotRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.CreateSnapshotRequest(); } @@ -1122,16 +1144,16 @@ public static com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSnapshotRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateSnapshotRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSnapshotRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSnapshotRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1146,6 +1168,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.CreateSnapshotRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index a59c244fbe01..28c94b711d2e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -3,11 +3,14 @@ package com.google.pubsub.v1; -public interface CreateSnapshotRequestOrBuilder extends +public interface CreateSnapshotRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CreateSnapshotRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Optional user-provided name for this snapshot.
        * If the name is not provided in the request, the server will assign a random
    @@ -21,6 +24,8 @@ public interface CreateSnapshotRequestOrBuilder extends
        */
       java.lang.String getName();
       /**
    +   *
    +   *
        * 
        * Optional user-provided name for this snapshot.
        * If the name is not provided in the request, the server will assign a random
    @@ -32,10 +37,11 @@ public interface CreateSnapshotRequestOrBuilder extends
        *
        * string name = 1;
        */
    -  com.google.protobuf.ByteString
    -      getNameBytes();
    +  com.google.protobuf.ByteString getNameBytes();
     
       /**
    +   *
    +   *
        * 
        * The subscription whose backlog the snapshot retains.
        * Specifically, the created snapshot is guaranteed to retain:
    @@ -52,6 +58,8 @@ public interface CreateSnapshotRequestOrBuilder extends
        */
       java.lang.String getSubscription();
       /**
    +   *
    +   *
        * 
        * The subscription whose backlog the snapshot retains.
        * Specifically, the created snapshot is guaranteed to retain:
    @@ -66,10 +74,11 @@ public interface CreateSnapshotRequestOrBuilder extends
        *
        * string subscription = 2;
        */
    -  com.google.protobuf.ByteString
    -      getSubscriptionBytes();
    +  com.google.protobuf.ByteString getSubscriptionBytes();
     
       /**
    +   *
    +   *
        * 
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    @@ -78,48 +87,46 @@ public interface CreateSnapshotRequestOrBuilder extends */ int getLabelsCount(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 3; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 3; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 3; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 3; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 3c8a6390dd31..99831862e700 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -4,6 +4,8 @@ package com.google.pubsub.v1; /** + * + * *
      * Request for the `DeleteSnapshot` method.<br><br>
      * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -13,24 +15,25 @@
      *
      * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest}
      */
    -public  final class DeleteSnapshotRequest extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class DeleteSnapshotRequest extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSnapshotRequest)
         DeleteSnapshotRequestOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use DeleteSnapshotRequest.newBuilder() to construct.
       private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private DeleteSnapshotRequest() {
         snapshot_ = "";
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private DeleteSnapshotRequest(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -50,47 +53,52 @@ private DeleteSnapshotRequest(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 10:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            snapshot_ = s;
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +              snapshot_ = s;
    +              break;
    +            }
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.DeleteSnapshotRequest.class, com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class);
    +            com.google.pubsub.v1.DeleteSnapshotRequest.class,
    +            com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class);
       }
     
       public static final int SNAPSHOT_FIELD_NUMBER = 1;
       private volatile java.lang.Object snapshot_;
       /**
    +   *
    +   *
        * 
        * The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
    @@ -103,14 +111,15 @@ public java.lang.String getSnapshot() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           snapshot_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
    @@ -118,13 +127,11 @@ public java.lang.String getSnapshot() {
        *
        * string snapshot = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getSnapshotBytes() {
    +  public com.google.protobuf.ByteString getSnapshotBytes() {
         java.lang.Object ref = snapshot_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           snapshot_ = b;
           return b;
         } else {
    @@ -133,6 +140,7 @@ public java.lang.String getSnapshot() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -144,8 +152,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getSnapshotBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_);
         }
    @@ -169,16 +176,16 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.DeleteSnapshotRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.DeleteSnapshotRequest other = (com.google.pubsub.v1.DeleteSnapshotRequest) obj;
    +    com.google.pubsub.v1.DeleteSnapshotRequest other =
    +        (com.google.pubsub.v1.DeleteSnapshotRequest) obj;
     
         boolean result = true;
    -    result = result && getSnapshot()
    -        .equals(other.getSnapshot());
    +    result = result && getSnapshot().equals(other.getSnapshot());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -197,97 +204,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.DeleteSnapshotRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the `DeleteSnapshot` method.<br><br>
        * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -297,21 +311,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSnapshotRequest)
           com.google.pubsub.v1.DeleteSnapshotRequestOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.DeleteSnapshotRequest.class, com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class);
    +              com.google.pubsub.v1.DeleteSnapshotRequest.class,
    +              com.google.pubsub.v1.DeleteSnapshotRequest.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.DeleteSnapshotRequest.newBuilder()
    @@ -319,16 +335,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -338,9 +353,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor;
         }
     
         @java.lang.Override
    @@ -359,7 +374,8 @@ public com.google.pubsub.v1.DeleteSnapshotRequest build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() {
    -      com.google.pubsub.v1.DeleteSnapshotRequest result = new com.google.pubsub.v1.DeleteSnapshotRequest(this);
    +      com.google.pubsub.v1.DeleteSnapshotRequest result =
    +          new com.google.pubsub.v1.DeleteSnapshotRequest(this);
           result.snapshot_ = snapshot_;
           onBuilt();
           return result;
    @@ -369,38 +385,39 @@ public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.DeleteSnapshotRequest) {
    -        return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest)other);
    +        return mergeFrom((com.google.pubsub.v1.DeleteSnapshotRequest) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -444,6 +461,8 @@ public Builder mergeFrom(
     
         private java.lang.Object snapshot_ = "";
         /**
    +     *
    +     *
          * 
          * The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
    @@ -454,8 +473,7 @@ public Builder mergeFrom(
         public java.lang.String getSnapshot() {
           java.lang.Object ref = snapshot_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             snapshot_ = s;
             return s;
    @@ -464,6 +482,8 @@ public java.lang.String getSnapshot() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
    @@ -471,13 +491,11 @@ public java.lang.String getSnapshot() {
          *
          * string snapshot = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getSnapshotBytes() {
    +    public com.google.protobuf.ByteString getSnapshotBytes() {
           java.lang.Object ref = snapshot_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             snapshot_ = b;
             return b;
           } else {
    @@ -485,6 +503,8 @@ public java.lang.String getSnapshot() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
    @@ -492,17 +512,18 @@ public java.lang.String getSnapshot() {
          *
          * string snapshot = 1;
          */
    -    public Builder setSnapshot(
    -        java.lang.String value) {
    +    public Builder setSnapshot(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           snapshot_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
    @@ -511,12 +532,14 @@ public Builder setSnapshot(
          * string snapshot = 1;
          */
         public Builder clearSnapshot() {
    -      
    +
           snapshot_ = getDefaultInstance().getSnapshot();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
    @@ -524,20 +547,19 @@ public Builder clearSnapshot() {
          *
          * string snapshot = 1;
          */
    -    public Builder setSnapshotBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSnapshotBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           snapshot_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -547,12 +569,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSnapshotRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSnapshotRequest)
       private static final com.google.pubsub.v1.DeleteSnapshotRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSnapshotRequest();
       }
    @@ -561,16 +583,16 @@ public static com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public DeleteSnapshotRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new DeleteSnapshotRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public DeleteSnapshotRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new DeleteSnapshotRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -585,6 +607,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.DeleteSnapshotRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java
    index 43cd3ccb251d..81f619be4f6a 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface DeleteSnapshotRequestOrBuilder extends
    +public interface DeleteSnapshotRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSnapshotRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
    @@ -17,6 +20,8 @@ public interface DeleteSnapshotRequestOrBuilder extends
        */
       java.lang.String getSnapshot();
       /**
    +   *
    +   *
        * 
        * The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
    @@ -24,6 +29,5 @@ public interface DeleteSnapshotRequestOrBuilder extends
        *
        * string snapshot = 1;
        */
    -  com.google.protobuf.ByteString
    -      getSnapshotBytes();
    +  com.google.protobuf.ByteString getSnapshotBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    index bc3a307361fb..c652dcea6472 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    @@ -4,30 +4,33 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the DeleteSubscription method.
      * 
    * * Protobuf type {@code google.pubsub.v1.DeleteSubscriptionRequest} */ -public final class DeleteSubscriptionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSubscriptionRequest) DeleteSubscriptionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSubscriptionRequest.newBuilder() to construct. private DeleteSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSubscriptionRequest() { subscription_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,47 +50,52 @@ private DeleteSubscriptionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + subscription_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSubscriptionRequest.class, com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); + com.google.pubsub.v1.DeleteSubscriptionRequest.class, + com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** + * + * *
        * The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -100,14 +108,15 @@ public java.lang.String getSubscription() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           subscription_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -115,13 +124,11 @@ public java.lang.String getSubscription() {
        *
        * string subscription = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getSubscriptionBytes() {
    +  public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           subscription_ = b;
           return b;
         } else {
    @@ -130,6 +137,7 @@ public java.lang.String getSubscription() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -141,8 +149,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getSubscriptionBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
    @@ -166,16 +173,16 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.DeleteSubscriptionRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.DeleteSubscriptionRequest other = (com.google.pubsub.v1.DeleteSubscriptionRequest) obj;
    +    com.google.pubsub.v1.DeleteSubscriptionRequest other =
    +        (com.google.pubsub.v1.DeleteSubscriptionRequest) obj;
     
         boolean result = true;
    -    result = result && getSubscription()
    -        .equals(other.getSubscription());
    +    result = result && getSubscription().equals(other.getSubscription());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -194,118 +201,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.DeleteSubscriptionRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the DeleteSubscription method.
        * 
    * * Protobuf type {@code google.pubsub.v1.DeleteSubscriptionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSubscriptionRequest) com.google.pubsub.v1.DeleteSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteSubscriptionRequest.class, com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); + com.google.pubsub.v1.DeleteSubscriptionRequest.class, + com.google.pubsub.v1.DeleteSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteSubscriptionRequest.newBuilder() @@ -313,16 +329,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -332,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override @@ -353,7 +368,8 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { - com.google.pubsub.v1.DeleteSubscriptionRequest result = new com.google.pubsub.v1.DeleteSubscriptionRequest(this); + com.google.pubsub.v1.DeleteSubscriptionRequest result = + new com.google.pubsub.v1.DeleteSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -363,38 +379,39 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -438,6 +455,8 @@ public Builder mergeFrom( private java.lang.Object subscription_ = ""; /** + * + * *
          * The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -448,8 +467,7 @@ public Builder mergeFrom(
         public java.lang.String getSubscription() {
           java.lang.Object ref = subscription_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             subscription_ = s;
             return s;
    @@ -458,6 +476,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -465,13 +485,11 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getSubscriptionBytes() {
    +    public com.google.protobuf.ByteString getSubscriptionBytes() {
           java.lang.Object ref = subscription_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             subscription_ = b;
             return b;
           } else {
    @@ -479,6 +497,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -486,17 +506,18 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscription(
    -        java.lang.String value) {
    +    public Builder setSubscription(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           subscription_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -505,12 +526,14 @@ public Builder setSubscription(
          * string subscription = 1;
          */
         public Builder clearSubscription() {
    -      
    +
           subscription_ = getDefaultInstance().getSubscription();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -518,20 +541,19 @@ public Builder clearSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscriptionBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           subscription_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -541,12 +563,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSubscriptionRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSubscriptionRequest)
       private static final com.google.pubsub.v1.DeleteSubscriptionRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSubscriptionRequest();
       }
    @@ -555,16 +577,16 @@ public static com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstance(
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public DeleteSubscriptionRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new DeleteSubscriptionRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public DeleteSubscriptionRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new DeleteSubscriptionRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -579,6 +601,4 @@ public com.google.protobuf.Parser getParserForType()
       public com.google.pubsub.v1.DeleteSubscriptionRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java
    index c18217da235c..4355dc6d0370 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface DeleteSubscriptionRequestOrBuilder extends
    +public interface DeleteSubscriptionRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSubscriptionRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -17,6 +20,8 @@ public interface DeleteSubscriptionRequestOrBuilder extends
        */
       java.lang.String getSubscription();
       /**
    +   *
    +   *
        * 
        * The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -24,6 +29,5 @@ public interface DeleteSubscriptionRequestOrBuilder extends
        *
        * string subscription = 1;
        */
    -  com.google.protobuf.ByteString
    -      getSubscriptionBytes();
    +  com.google.protobuf.ByteString getSubscriptionBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    index 3035fb08c3f6..a888f27a9306 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    @@ -4,30 +4,33 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the `DeleteTopic` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.DeleteTopicRequest} */ -public final class DeleteTopicRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteTopicRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteTopicRequest) DeleteTopicRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteTopicRequest.newBuilder() to construct. private DeleteTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteTopicRequest() { topic_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,47 +50,52 @@ private DeleteTopicRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + topic_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteTopicRequest.class, com.google.pubsub.v1.DeleteTopicRequest.Builder.class); + com.google.pubsub.v1.DeleteTopicRequest.class, + com.google.pubsub.v1.DeleteTopicRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** + * + * *
        * Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -100,14 +108,15 @@ public java.lang.String getTopic() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           topic_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -115,13 +124,11 @@ public java.lang.String getTopic() {
        *
        * string topic = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getTopicBytes() {
    +  public com.google.protobuf.ByteString getTopicBytes() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           topic_ = b;
           return b;
         } else {
    @@ -130,6 +137,7 @@ public java.lang.String getTopic() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -141,8 +149,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getTopicBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
    @@ -166,7 +173,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.DeleteTopicRequest)) {
           return super.equals(obj);
    @@ -174,8 +181,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.DeleteTopicRequest other = (com.google.pubsub.v1.DeleteTopicRequest) obj;
     
         boolean result = true;
    -    result = result && getTopic()
    -        .equals(other.getTopic());
    +    result = result && getTopic().equals(other.getTopic());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -194,118 +200,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.DeleteTopicRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the `DeleteTopic` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.DeleteTopicRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteTopicRequest) com.google.pubsub.v1.DeleteTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.DeleteTopicRequest.class, com.google.pubsub.v1.DeleteTopicRequest.Builder.class); + com.google.pubsub.v1.DeleteTopicRequest.class, + com.google.pubsub.v1.DeleteTopicRequest.Builder.class); } // Construct using com.google.pubsub.v1.DeleteTopicRequest.newBuilder() @@ -313,16 +328,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -332,9 +346,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } @java.lang.Override @@ -353,7 +367,8 @@ public com.google.pubsub.v1.DeleteTopicRequest build() { @java.lang.Override public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { - com.google.pubsub.v1.DeleteTopicRequest result = new com.google.pubsub.v1.DeleteTopicRequest(this); + com.google.pubsub.v1.DeleteTopicRequest result = + new com.google.pubsub.v1.DeleteTopicRequest(this); result.topic_ = topic_; onBuilt(); return result; @@ -363,38 +378,39 @@ public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteTopicRequest) { - return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest)other); + return mergeFrom((com.google.pubsub.v1.DeleteTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -438,6 +454,8 @@ public Builder mergeFrom( private java.lang.Object topic_ = ""; /** + * + * *
          * Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -448,8 +466,7 @@ public Builder mergeFrom(
         public java.lang.String getTopic() {
           java.lang.Object ref = topic_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             topic_ = s;
             return s;
    @@ -458,6 +475,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -465,13 +484,11 @@ public java.lang.String getTopic() {
          *
          * string topic = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getTopicBytes() {
    +    public com.google.protobuf.ByteString getTopicBytes() {
           java.lang.Object ref = topic_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             topic_ = b;
             return b;
           } else {
    @@ -479,6 +496,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -486,17 +505,18 @@ public java.lang.String getTopic() {
          *
          * string topic = 1;
          */
    -    public Builder setTopic(
    -        java.lang.String value) {
    +    public Builder setTopic(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           topic_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -505,12 +525,14 @@ public Builder setTopic(
          * string topic = 1;
          */
         public Builder clearTopic() {
    -      
    +
           topic_ = getDefaultInstance().getTopic();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -518,20 +540,19 @@ public Builder clearTopic() {
          *
          * string topic = 1;
          */
    -    public Builder setTopicBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setTopicBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           topic_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -541,12 +562,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteTopicRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteTopicRequest)
       private static final com.google.pubsub.v1.DeleteTopicRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteTopicRequest();
       }
    @@ -555,16 +576,16 @@ public static com.google.pubsub.v1.DeleteTopicRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public DeleteTopicRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new DeleteTopicRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public DeleteTopicRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new DeleteTopicRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -579,6 +600,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.DeleteTopicRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java
    index 511474f7f1c2..012b6f50b2e3 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface DeleteTopicRequestOrBuilder extends
    +public interface DeleteTopicRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteTopicRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -17,6 +20,8 @@ public interface DeleteTopicRequestOrBuilder extends
        */
       java.lang.String getTopic();
       /**
    +   *
    +   *
        * 
        * Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -24,6 +29,5 @@ public interface DeleteTopicRequestOrBuilder extends
        *
        * string topic = 1;
        */
    -  com.google.protobuf.ByteString
    -      getTopicBytes();
    +  com.google.protobuf.ByteString getTopicBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java
    index 6a01b4ff09a0..6f0d9e08e295 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java
    @@ -14,7 +14,6 @@
     
     package com.google.pubsub.v1;
     
    -import com.google.api.resourcenames.ResourceName;
     import com.google.common.collect.ImmutableMap;
     import java.util.Map;
     
    @@ -37,16 +36,12 @@ public static boolean matches(String value) {
         return FIXED_VALUE.equals(value);
       }
     
    -  /**
    -   * Return a map with a single value FIXED_VALUE keyed on an empty String "".
    -   */
    +  /** Return a map with a single value FIXED_VALUE keyed on an empty String "". */
       public Map getFieldValuesMap() {
         return valueMap;
       }
     
    -  /**
    -   * Return the FIXED_VALUE if @param fieldName is an empty String "", else return null.
    -   */
    +  /** Return the FIXED_VALUE if @param fieldName is an empty String "", else return null. */
       public String getFieldValue(String fieldName) {
         return valueMap.get(fieldName);
       }
    @@ -56,4 +51,3 @@ public String toString() {
         return FIXED_VALUE;
       }
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
    index cdc4effc0cc6..de81de031164 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
    @@ -4,6 +4,8 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * A policy that specifies the conditions for resource expiration (i.e.,
      * automatic resource deletion).
    @@ -11,23 +13,23 @@
      *
      * Protobuf type {@code google.pubsub.v1.ExpirationPolicy}
      */
    -public  final class ExpirationPolicy extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class ExpirationPolicy extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.ExpirationPolicy)
         ExpirationPolicyOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use ExpirationPolicy.newBuilder() to construct.
       private ExpirationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -  private ExpirationPolicy() {
    -  }
    +
    +  private ExpirationPolicy() {}
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private ExpirationPolicy(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -47,54 +49,59 @@ private ExpirationPolicy(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            com.google.protobuf.Duration.Builder subBuilder = null;
    -            if (ttl_ != null) {
    -              subBuilder = ttl_.toBuilder();
    +          case 10:
    +            {
    +              com.google.protobuf.Duration.Builder subBuilder = null;
    +              if (ttl_ != null) {
    +                subBuilder = ttl_.toBuilder();
    +              }
    +              ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
    +              if (subBuilder != null) {
    +                subBuilder.mergeFrom(ttl_);
    +                ttl_ = subBuilder.buildPartial();
    +              }
    +
    +              break;
                 }
    -            ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
    -            if (subBuilder != null) {
    -              subBuilder.mergeFrom(ttl_);
    -              ttl_ = subBuilder.buildPartial();
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    -            }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.ExpirationPolicy.class, com.google.pubsub.v1.ExpirationPolicy.Builder.class);
    +            com.google.pubsub.v1.ExpirationPolicy.class,
    +            com.google.pubsub.v1.ExpirationPolicy.Builder.class);
       }
     
       public static final int TTL_FIELD_NUMBER = 1;
       private com.google.protobuf.Duration ttl_;
       /**
    +   *
    +   *
        * 
        * 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
    @@ -110,6 +117,8 @@ public boolean hasTtl() {
         return ttl_ != null;
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -125,6 +134,8 @@ public com.google.protobuf.Duration getTtl() {
         return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_;
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -141,6 +152,7 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -152,8 +164,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (ttl_ != null) {
           output.writeMessage(1, getTtl());
         }
    @@ -167,8 +178,7 @@ public int getSerializedSize() {
     
         size = 0;
         if (ttl_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, getTtl());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTtl());
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -178,7 +188,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ExpirationPolicy)) {
           return super.equals(obj);
    @@ -188,8 +198,7 @@ public boolean equals(final java.lang.Object obj) {
         boolean result = true;
         result = result && (hasTtl() == other.hasTtl());
         if (hasTtl()) {
    -      result = result && getTtl()
    -          .equals(other.getTtl());
    +      result = result && getTtl().equals(other.getTtl());
         }
         result = result && unknownFields.equals(other.unknownFields);
         return result;
    @@ -211,97 +220,103 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.pubsub.v1.ExpirationPolicy parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ExpirationPolicy parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ExpirationPolicy parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ExpirationPolicy parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ExpirationPolicy parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ExpirationPolicy parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ExpirationPolicy prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * A policy that specifies the conditions for resource expiration (i.e.,
        * automatic resource deletion).
    @@ -309,21 +324,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.ExpirationPolicy}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ExpirationPolicy)
           com.google.pubsub.v1.ExpirationPolicyOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.ExpirationPolicy.class, com.google.pubsub.v1.ExpirationPolicy.Builder.class);
    +              com.google.pubsub.v1.ExpirationPolicy.class,
    +              com.google.pubsub.v1.ExpirationPolicy.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.ExpirationPolicy.newBuilder()
    @@ -331,16 +348,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -354,9 +370,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
         }
     
         @java.lang.Override
    @@ -375,7 +391,8 @@ public com.google.pubsub.v1.ExpirationPolicy build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.ExpirationPolicy buildPartial() {
    -      com.google.pubsub.v1.ExpirationPolicy result = new com.google.pubsub.v1.ExpirationPolicy(this);
    +      com.google.pubsub.v1.ExpirationPolicy result =
    +          new com.google.pubsub.v1.ExpirationPolicy(this);
           if (ttlBuilder_ == null) {
             result.ttl_ = ttl_;
           } else {
    @@ -389,38 +406,39 @@ public com.google.pubsub.v1.ExpirationPolicy buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.ExpirationPolicy) {
    -        return mergeFrom((com.google.pubsub.v1.ExpirationPolicy)other);
    +        return mergeFrom((com.google.pubsub.v1.ExpirationPolicy) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -463,8 +481,13 @@ public Builder mergeFrom(
     
         private com.google.protobuf.Duration ttl_ = null;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
    +            com.google.protobuf.Duration,
    +            com.google.protobuf.Duration.Builder,
    +            com.google.protobuf.DurationOrBuilder>
    +        ttlBuilder_;
         /**
    +     *
    +     *
          * 
          * 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
    @@ -480,6 +503,8 @@ public boolean hasTtl() {
           return ttlBuilder_ != null || ttl_ != null;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -499,6 +524,8 @@ public com.google.protobuf.Duration getTtl() {
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -524,6 +551,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -535,8 +564,7 @@ public Builder setTtl(com.google.protobuf.Duration value) {
          *
          * .google.protobuf.Duration ttl = 1;
          */
    -    public Builder setTtl(
    -        com.google.protobuf.Duration.Builder builderForValue) {
    +    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
           if (ttlBuilder_ == null) {
             ttl_ = builderForValue.build();
             onChanged();
    @@ -547,6 +575,8 @@ public Builder setTtl(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -561,8 +591,7 @@ public Builder setTtl(
         public Builder mergeTtl(com.google.protobuf.Duration value) {
           if (ttlBuilder_ == null) {
             if (ttl_ != null) {
    -          ttl_ =
    -            com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial();
    +          ttl_ = com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial();
             } else {
               ttl_ = value;
             }
    @@ -574,6 +603,8 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -597,6 +628,8 @@ public Builder clearTtl() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -609,11 +642,13 @@ public Builder clearTtl() {
          * .google.protobuf.Duration ttl = 1;
          */
         public com.google.protobuf.Duration.Builder getTtlBuilder() {
    -      
    +
           onChanged();
           return getTtlFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -629,11 +664,12 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
           if (ttlBuilder_ != null) {
             return ttlBuilder_.getMessageOrBuilder();
           } else {
    -        return ttl_ == null ?
    -            com.google.protobuf.Duration.getDefaultInstance() : ttl_;
    +        return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_;
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -646,21 +682,23 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
          * .google.protobuf.Duration ttl = 1;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
    +            com.google.protobuf.Duration,
    +            com.google.protobuf.Duration.Builder,
    +            com.google.protobuf.DurationOrBuilder>
             getTtlFieldBuilder() {
           if (ttlBuilder_ == null) {
    -        ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
    -                getTtl(),
    -                getParentForChildren(),
    -                isClean());
    +        ttlBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Duration,
    +                com.google.protobuf.Duration.Builder,
    +                com.google.protobuf.DurationOrBuilder>(getTtl(), getParentForChildren(), isClean());
             ttl_ = null;
           }
           return ttlBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -670,12 +708,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ExpirationPolicy)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ExpirationPolicy)
       private static final com.google.pubsub.v1.ExpirationPolicy DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ExpirationPolicy();
       }
    @@ -684,16 +722,16 @@ public static com.google.pubsub.v1.ExpirationPolicy getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ExpirationPolicy parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ExpirationPolicy(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ExpirationPolicy parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ExpirationPolicy(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -708,6 +746,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.ExpirationPolicy getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
    index 50e933ce1a70..7c18b741bced 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface ExpirationPolicyOrBuilder extends
    +public interface ExpirationPolicyOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ExpirationPolicy)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * 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
    @@ -21,6 +24,8 @@ public interface ExpirationPolicyOrBuilder extends
        */
       boolean hasTtl();
       /**
    +   *
    +   *
        * 
        * 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
    @@ -34,6 +39,8 @@ public interface ExpirationPolicyOrBuilder extends
        */
       com.google.protobuf.Duration getTtl();
       /**
    +   *
    +   *
        * 
        * 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
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    index 188b2057aef9..4cb68f688ead 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    @@ -4,6 +4,8 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the GetSnapshot method.<br><br>
      * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -13,24 +15,25 @@
      *
      * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest}
      */
    -public  final class GetSnapshotRequest extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class GetSnapshotRequest extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSnapshotRequest)
         GetSnapshotRequestOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use GetSnapshotRequest.newBuilder() to construct.
       private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private GetSnapshotRequest() {
         snapshot_ = "";
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private GetSnapshotRequest(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -50,47 +53,52 @@ private GetSnapshotRequest(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 10:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            snapshot_ = s;
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +              snapshot_ = s;
    +              break;
    +            }
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.GetSnapshotRequest.class, com.google.pubsub.v1.GetSnapshotRequest.Builder.class);
    +            com.google.pubsub.v1.GetSnapshotRequest.class,
    +            com.google.pubsub.v1.GetSnapshotRequest.Builder.class);
       }
     
       public static final int SNAPSHOT_FIELD_NUMBER = 1;
       private volatile java.lang.Object snapshot_;
       /**
    +   *
    +   *
        * 
        * The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
    @@ -103,14 +111,15 @@ public java.lang.String getSnapshot() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           snapshot_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
    @@ -118,13 +127,11 @@ public java.lang.String getSnapshot() {
        *
        * string snapshot = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getSnapshotBytes() {
    +  public com.google.protobuf.ByteString getSnapshotBytes() {
         java.lang.Object ref = snapshot_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           snapshot_ = b;
           return b;
         } else {
    @@ -133,6 +140,7 @@ public java.lang.String getSnapshot() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -144,8 +152,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getSnapshotBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_);
         }
    @@ -169,7 +176,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.GetSnapshotRequest)) {
           return super.equals(obj);
    @@ -177,8 +184,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.GetSnapshotRequest other = (com.google.pubsub.v1.GetSnapshotRequest) obj;
     
         boolean result = true;
    -    result = result && getSnapshot()
    -        .equals(other.getSnapshot());
    +    result = result && getSnapshot().equals(other.getSnapshot());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -197,97 +203,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.GetSnapshotRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the GetSnapshot method.<br><br>
        * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -297,21 +310,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSnapshotRequest)
           com.google.pubsub.v1.GetSnapshotRequestOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.GetSnapshotRequest.class, com.google.pubsub.v1.GetSnapshotRequest.Builder.class);
    +              com.google.pubsub.v1.GetSnapshotRequest.class,
    +              com.google.pubsub.v1.GetSnapshotRequest.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.GetSnapshotRequest.newBuilder()
    @@ -319,16 +334,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -338,9 +352,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor;
         }
     
         @java.lang.Override
    @@ -359,7 +373,8 @@ public com.google.pubsub.v1.GetSnapshotRequest build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.GetSnapshotRequest buildPartial() {
    -      com.google.pubsub.v1.GetSnapshotRequest result = new com.google.pubsub.v1.GetSnapshotRequest(this);
    +      com.google.pubsub.v1.GetSnapshotRequest result =
    +          new com.google.pubsub.v1.GetSnapshotRequest(this);
           result.snapshot_ = snapshot_;
           onBuilt();
           return result;
    @@ -369,38 +384,39 @@ public com.google.pubsub.v1.GetSnapshotRequest buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.GetSnapshotRequest) {
    -        return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest)other);
    +        return mergeFrom((com.google.pubsub.v1.GetSnapshotRequest) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -444,6 +460,8 @@ public Builder mergeFrom(
     
         private java.lang.Object snapshot_ = "";
         /**
    +     *
    +     *
          * 
          * The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
    @@ -454,8 +472,7 @@ public Builder mergeFrom(
         public java.lang.String getSnapshot() {
           java.lang.Object ref = snapshot_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             snapshot_ = s;
             return s;
    @@ -464,6 +481,8 @@ public java.lang.String getSnapshot() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
    @@ -471,13 +490,11 @@ public java.lang.String getSnapshot() {
          *
          * string snapshot = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getSnapshotBytes() {
    +    public com.google.protobuf.ByteString getSnapshotBytes() {
           java.lang.Object ref = snapshot_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             snapshot_ = b;
             return b;
           } else {
    @@ -485,6 +502,8 @@ public java.lang.String getSnapshot() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
    @@ -492,17 +511,18 @@ public java.lang.String getSnapshot() {
          *
          * string snapshot = 1;
          */
    -    public Builder setSnapshot(
    -        java.lang.String value) {
    +    public Builder setSnapshot(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           snapshot_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
    @@ -511,12 +531,14 @@ public Builder setSnapshot(
          * string snapshot = 1;
          */
         public Builder clearSnapshot() {
    -      
    +
           snapshot_ = getDefaultInstance().getSnapshot();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
    @@ -524,20 +546,19 @@ public Builder clearSnapshot() {
          *
          * string snapshot = 1;
          */
    -    public Builder setSnapshotBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSnapshotBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           snapshot_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -547,12 +568,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSnapshotRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSnapshotRequest)
       private static final com.google.pubsub.v1.GetSnapshotRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSnapshotRequest();
       }
    @@ -561,16 +582,16 @@ public static com.google.pubsub.v1.GetSnapshotRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public GetSnapshotRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new GetSnapshotRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public GetSnapshotRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new GetSnapshotRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -585,6 +606,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.GetSnapshotRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java
    index 9de92daf1b22..9a7e4cddf8ff 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface GetSnapshotRequestOrBuilder extends
    +public interface GetSnapshotRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSnapshotRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
    @@ -17,6 +20,8 @@ public interface GetSnapshotRequestOrBuilder extends
        */
       java.lang.String getSnapshot();
       /**
    +   *
    +   *
        * 
        * The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
    @@ -24,6 +29,5 @@ public interface GetSnapshotRequestOrBuilder extends
        *
        * string snapshot = 1;
        */
    -  com.google.protobuf.ByteString
    -      getSnapshotBytes();
    +  com.google.protobuf.ByteString getSnapshotBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    index 5acb2a1010a2..a86238dfcff0 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    @@ -4,30 +4,33 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the GetSubscription method.
      * 
    * * Protobuf type {@code google.pubsub.v1.GetSubscriptionRequest} */ -public final class GetSubscriptionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSubscriptionRequest) GetSubscriptionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSubscriptionRequest.newBuilder() to construct. private GetSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSubscriptionRequest() { subscription_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,47 +50,52 @@ private GetSubscriptionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + subscription_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSubscriptionRequest.class, com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); + com.google.pubsub.v1.GetSubscriptionRequest.class, + com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** + * + * *
        * The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -100,14 +108,15 @@ public java.lang.String getSubscription() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           subscription_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -115,13 +124,11 @@ public java.lang.String getSubscription() {
        *
        * string subscription = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getSubscriptionBytes() {
    +  public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           subscription_ = b;
           return b;
         } else {
    @@ -130,6 +137,7 @@ public java.lang.String getSubscription() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -141,8 +149,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getSubscriptionBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
    @@ -166,16 +173,16 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.GetSubscriptionRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.GetSubscriptionRequest other = (com.google.pubsub.v1.GetSubscriptionRequest) obj;
    +    com.google.pubsub.v1.GetSubscriptionRequest other =
    +        (com.google.pubsub.v1.GetSubscriptionRequest) obj;
     
         boolean result = true;
    -    result = result && getSubscription()
    -        .equals(other.getSubscription());
    +    result = result && getSubscription().equals(other.getSubscription());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -194,118 +201,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.GetSubscriptionRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the GetSubscription method.
        * 
    * * Protobuf type {@code google.pubsub.v1.GetSubscriptionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSubscriptionRequest) com.google.pubsub.v1.GetSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetSubscriptionRequest.class, com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); + com.google.pubsub.v1.GetSubscriptionRequest.class, + com.google.pubsub.v1.GetSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.GetSubscriptionRequest.newBuilder() @@ -313,16 +329,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -332,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override @@ -353,7 +368,8 @@ public com.google.pubsub.v1.GetSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { - com.google.pubsub.v1.GetSubscriptionRequest result = new com.google.pubsub.v1.GetSubscriptionRequest(this); + com.google.pubsub.v1.GetSubscriptionRequest result = + new com.google.pubsub.v1.GetSubscriptionRequest(this); result.subscription_ = subscription_; onBuilt(); return result; @@ -363,38 +379,39 @@ public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.GetSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -438,6 +455,8 @@ public Builder mergeFrom( private java.lang.Object subscription_ = ""; /** + * + * *
          * The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -448,8 +467,7 @@ public Builder mergeFrom(
         public java.lang.String getSubscription() {
           java.lang.Object ref = subscription_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             subscription_ = s;
             return s;
    @@ -458,6 +476,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -465,13 +485,11 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getSubscriptionBytes() {
    +    public com.google.protobuf.ByteString getSubscriptionBytes() {
           java.lang.Object ref = subscription_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             subscription_ = b;
             return b;
           } else {
    @@ -479,6 +497,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -486,17 +506,18 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscription(
    -        java.lang.String value) {
    +    public Builder setSubscription(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           subscription_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -505,12 +526,14 @@ public Builder setSubscription(
          * string subscription = 1;
          */
         public Builder clearSubscription() {
    -      
    +
           subscription_ = getDefaultInstance().getSubscription();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -518,20 +541,19 @@ public Builder clearSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscriptionBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           subscription_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -541,12 +563,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSubscriptionRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSubscriptionRequest)
       private static final com.google.pubsub.v1.GetSubscriptionRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSubscriptionRequest();
       }
    @@ -555,16 +577,16 @@ public static com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public GetSubscriptionRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new GetSubscriptionRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public GetSubscriptionRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new GetSubscriptionRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -579,6 +601,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.GetSubscriptionRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java
    index 24432eba6b36..4b0258a30061 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface GetSubscriptionRequestOrBuilder extends
    +public interface GetSubscriptionRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSubscriptionRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -17,6 +20,8 @@ public interface GetSubscriptionRequestOrBuilder extends
        */
       java.lang.String getSubscription();
       /**
    +   *
    +   *
        * 
        * The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -24,6 +29,5 @@ public interface GetSubscriptionRequestOrBuilder extends
        *
        * string subscription = 1;
        */
    -  com.google.protobuf.ByteString
    -      getSubscriptionBytes();
    +  com.google.protobuf.ByteString getSubscriptionBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    index 96a14ee3a1c1..08f5b0aeb32d 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    @@ -4,30 +4,33 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the GetTopic method.
      * 
    * * Protobuf type {@code google.pubsub.v1.GetTopicRequest} */ -public final class GetTopicRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetTopicRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetTopicRequest) GetTopicRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetTopicRequest.newBuilder() to construct. private GetTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetTopicRequest() { topic_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,47 +50,52 @@ private GetTopicRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + topic_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetTopicRequest.class, com.google.pubsub.v1.GetTopicRequest.Builder.class); + com.google.pubsub.v1.GetTopicRequest.class, + com.google.pubsub.v1.GetTopicRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** + * + * *
        * The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -100,14 +108,15 @@ public java.lang.String getTopic() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           topic_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -115,13 +124,11 @@ public java.lang.String getTopic() {
        *
        * string topic = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getTopicBytes() {
    +  public com.google.protobuf.ByteString getTopicBytes() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           topic_ = b;
           return b;
         } else {
    @@ -130,6 +137,7 @@ public java.lang.String getTopic() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -141,8 +149,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getTopicBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
    @@ -166,7 +173,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.GetTopicRequest)) {
           return super.equals(obj);
    @@ -174,8 +181,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.GetTopicRequest other = (com.google.pubsub.v1.GetTopicRequest) obj;
     
         boolean result = true;
    -    result = result && getTopic()
    -        .equals(other.getTopic());
    +    result = result && getTopic().equals(other.getTopic());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -194,118 +200,126 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.GetTopicRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.GetTopicRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.GetTopicRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.GetTopicRequest parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.pubsub.v1.GetTopicRequest parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.GetTopicRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetTopicRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.GetTopicRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetTopicRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.GetTopicRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetTopicRequest parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.GetTopicRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.GetTopicRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.GetTopicRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.GetTopicRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the GetTopic method.
        * 
    * * Protobuf type {@code google.pubsub.v1.GetTopicRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetTopicRequest) com.google.pubsub.v1.GetTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.GetTopicRequest.class, com.google.pubsub.v1.GetTopicRequest.Builder.class); + com.google.pubsub.v1.GetTopicRequest.class, + com.google.pubsub.v1.GetTopicRequest.Builder.class); } // Construct using com.google.pubsub.v1.GetTopicRequest.newBuilder() @@ -313,16 +327,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -332,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_GetTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } @java.lang.Override @@ -363,38 +376,39 @@ public com.google.pubsub.v1.GetTopicRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetTopicRequest) { - return mergeFrom((com.google.pubsub.v1.GetTopicRequest)other); + return mergeFrom((com.google.pubsub.v1.GetTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -438,6 +452,8 @@ public Builder mergeFrom( private java.lang.Object topic_ = ""; /** + * + * *
          * The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -448,8 +464,7 @@ public Builder mergeFrom(
         public java.lang.String getTopic() {
           java.lang.Object ref = topic_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             topic_ = s;
             return s;
    @@ -458,6 +473,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -465,13 +482,11 @@ public java.lang.String getTopic() {
          *
          * string topic = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getTopicBytes() {
    +    public com.google.protobuf.ByteString getTopicBytes() {
           java.lang.Object ref = topic_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             topic_ = b;
             return b;
           } else {
    @@ -479,6 +494,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -486,17 +503,18 @@ public java.lang.String getTopic() {
          *
          * string topic = 1;
          */
    -    public Builder setTopic(
    -        java.lang.String value) {
    +    public Builder setTopic(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           topic_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -505,12 +523,14 @@ public Builder setTopic(
          * string topic = 1;
          */
         public Builder clearTopic() {
    -      
    +
           topic_ = getDefaultInstance().getTopic();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -518,20 +538,19 @@ public Builder clearTopic() {
          *
          * string topic = 1;
          */
    -    public Builder setTopicBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setTopicBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           topic_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -541,12 +560,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetTopicRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetTopicRequest)
       private static final com.google.pubsub.v1.GetTopicRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.GetTopicRequest();
       }
    @@ -555,16 +574,16 @@ public static com.google.pubsub.v1.GetTopicRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public GetTopicRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new GetTopicRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public GetTopicRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new GetTopicRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -579,6 +598,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.GetTopicRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java
    index 05fb4515af6f..0991493adcca 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface GetTopicRequestOrBuilder extends
    +public interface GetTopicRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetTopicRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -17,6 +20,8 @@ public interface GetTopicRequestOrBuilder extends
        */
       java.lang.String getTopic();
       /**
    +   *
    +   *
        * 
        * The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -24,6 +29,5 @@ public interface GetTopicRequestOrBuilder extends
        *
        * string topic = 1;
        */
    -  com.google.protobuf.ByteString
    -      getTopicBytes();
    +  com.google.protobuf.ByteString getTopicBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    index 3ee90f4a74ee..3657b6362dc2 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    @@ -4,6 +4,8 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the `ListSnapshots` method.<br><br>
      * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -13,15 +15,16 @@
      *
      * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest}
      */
    -public  final class ListSnapshotsRequest extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class ListSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsRequest)
         ListSnapshotsRequestOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use ListSnapshotsRequest.newBuilder() to construct.
       private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private ListSnapshotsRequest() {
         project_ = "";
         pageSize_ = 0;
    @@ -29,10 +32,10 @@ private ListSnapshotsRequest() {
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private ListSnapshotsRequest(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -52,58 +55,64 @@ private ListSnapshotsRequest(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 10:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            project_ = s;
    -            break;
    -          }
    -          case 16: {
    -
    -            pageSize_ = input.readInt32();
    -            break;
    -          }
    -          case 26: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +              project_ = s;
    +              break;
    +            }
    +          case 16:
    +            {
    +              pageSize_ = input.readInt32();
    +              break;
    +            }
    +          case 26:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            pageToken_ = s;
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +              pageToken_ = s;
    +              break;
    +            }
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.ListSnapshotsRequest.class, com.google.pubsub.v1.ListSnapshotsRequest.Builder.class);
    +            com.google.pubsub.v1.ListSnapshotsRequest.class,
    +            com.google.pubsub.v1.ListSnapshotsRequest.Builder.class);
       }
     
       public static final int PROJECT_FIELD_NUMBER = 1;
       private volatile java.lang.Object project_;
       /**
    +   *
    +   *
        * 
        * The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
    @@ -116,14 +125,15 @@ public java.lang.String getProject() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           project_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
    @@ -131,13 +141,11 @@ public java.lang.String getProject() {
        *
        * string project = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getProjectBytes() {
    +  public com.google.protobuf.ByteString getProjectBytes() {
         java.lang.Object ref = project_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           project_ = b;
           return b;
         } else {
    @@ -148,6 +156,8 @@ public java.lang.String getProject() {
       public static final int PAGE_SIZE_FIELD_NUMBER = 2;
       private int pageSize_;
       /**
    +   *
    +   *
        * 
        * Maximum number of snapshots to return.
        * 
    @@ -161,6 +171,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
        * The value returned by the last `ListSnapshotsResponse`; indicates that this
        * is a continuation of a prior `ListSnapshots` call, and that the system
    @@ -174,14 +186,15 @@ public java.lang.String getPageToken() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           pageToken_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The value returned by the last `ListSnapshotsResponse`; indicates that this
        * is a continuation of a prior `ListSnapshots` call, and that the system
    @@ -190,13 +203,11 @@ public java.lang.String getPageToken() {
        *
        * string page_token = 3;
        */
    -  public com.google.protobuf.ByteString
    -      getPageTokenBytes() {
    +  public com.google.protobuf.ByteString getPageTokenBytes() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           pageToken_ = b;
           return b;
         } else {
    @@ -205,6 +216,7 @@ public java.lang.String getPageToken() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -216,8 +228,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getProjectBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_);
         }
    @@ -240,8 +251,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_);
         }
         if (pageSize_ != 0) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeInt32Size(2, pageSize_);
    +      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
         }
         if (!getPageTokenBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
    @@ -254,20 +264,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ListSnapshotsRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.ListSnapshotsRequest other = (com.google.pubsub.v1.ListSnapshotsRequest) obj;
    +    com.google.pubsub.v1.ListSnapshotsRequest other =
    +        (com.google.pubsub.v1.ListSnapshotsRequest) obj;
     
         boolean result = true;
    -    result = result && getProject()
    -        .equals(other.getProject());
    -    result = result && (getPageSize()
    -        == other.getPageSize());
    -    result = result && getPageToken()
    -        .equals(other.getPageToken());
    +    result = result && getProject().equals(other.getProject());
    +    result = result && (getPageSize() == other.getPageSize());
    +    result = result && getPageToken().equals(other.getPageToken());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -290,97 +298,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the `ListSnapshots` method.<br><br>
        * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -390,21 +405,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSnapshotsRequest)
           com.google.pubsub.v1.ListSnapshotsRequestOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.ListSnapshotsRequest.class, com.google.pubsub.v1.ListSnapshotsRequest.Builder.class);
    +              com.google.pubsub.v1.ListSnapshotsRequest.class,
    +              com.google.pubsub.v1.ListSnapshotsRequest.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.ListSnapshotsRequest.newBuilder()
    @@ -412,16 +429,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -435,9 +451,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor;
         }
     
         @java.lang.Override
    @@ -456,7 +472,8 @@ public com.google.pubsub.v1.ListSnapshotsRequest build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() {
    -      com.google.pubsub.v1.ListSnapshotsRequest result = new com.google.pubsub.v1.ListSnapshotsRequest(this);
    +      com.google.pubsub.v1.ListSnapshotsRequest result =
    +          new com.google.pubsub.v1.ListSnapshotsRequest(this);
           result.project_ = project_;
           result.pageSize_ = pageSize_;
           result.pageToken_ = pageToken_;
    @@ -468,38 +485,39 @@ public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.ListSnapshotsRequest) {
    -        return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest)other);
    +        return mergeFrom((com.google.pubsub.v1.ListSnapshotsRequest) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -550,6 +568,8 @@ public Builder mergeFrom(
     
         private java.lang.Object project_ = "";
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
    @@ -560,8 +580,7 @@ public Builder mergeFrom(
         public java.lang.String getProject() {
           java.lang.Object ref = project_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             project_ = s;
             return s;
    @@ -570,6 +589,8 @@ public java.lang.String getProject() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
    @@ -577,13 +598,11 @@ public java.lang.String getProject() {
          *
          * string project = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getProjectBytes() {
    +    public com.google.protobuf.ByteString getProjectBytes() {
           java.lang.Object ref = project_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             project_ = b;
             return b;
           } else {
    @@ -591,6 +610,8 @@ public java.lang.String getProject() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
    @@ -598,17 +619,18 @@ public java.lang.String getProject() {
          *
          * string project = 1;
          */
    -    public Builder setProject(
    -        java.lang.String value) {
    +    public Builder setProject(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           project_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
    @@ -617,12 +639,14 @@ public Builder setProject(
          * string project = 1;
          */
         public Builder clearProject() {
    -      
    +
           project_ = getDefaultInstance().getProject();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
    @@ -630,20 +654,21 @@ public Builder clearProject() {
          *
          * string project = 1;
          */
    -    public Builder setProjectBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setProjectBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           project_ = value;
           onChanged();
           return this;
         }
     
    -    private int pageSize_ ;
    +    private int pageSize_;
         /**
    +     *
    +     *
          * 
          * Maximum number of snapshots to return.
          * 
    @@ -654,6 +679,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Maximum number of snapshots to return.
          * 
    @@ -661,12 +688,14 @@ public int getPageSize() { * int32 page_size = 2; */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Maximum number of snapshots to return.
          * 
    @@ -674,7 +703,7 @@ public Builder setPageSize(int value) { * int32 page_size = 2; */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -682,6 +711,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * The value returned by the last `ListSnapshotsResponse`; indicates that this
          * is a continuation of a prior `ListSnapshots` call, and that the system
    @@ -693,8 +724,7 @@ public Builder clearPageSize() {
         public java.lang.String getPageToken() {
           java.lang.Object ref = pageToken_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             pageToken_ = s;
             return s;
    @@ -703,6 +733,8 @@ public java.lang.String getPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListSnapshotsResponse`; indicates that this
          * is a continuation of a prior `ListSnapshots` call, and that the system
    @@ -711,13 +743,11 @@ public java.lang.String getPageToken() {
          *
          * string page_token = 3;
          */
    -    public com.google.protobuf.ByteString
    -        getPageTokenBytes() {
    +    public com.google.protobuf.ByteString getPageTokenBytes() {
           java.lang.Object ref = pageToken_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             pageToken_ = b;
             return b;
           } else {
    @@ -725,6 +755,8 @@ public java.lang.String getPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListSnapshotsResponse`; indicates that this
          * is a continuation of a prior `ListSnapshots` call, and that the system
    @@ -733,17 +765,18 @@ public java.lang.String getPageToken() {
          *
          * string page_token = 3;
          */
    -    public Builder setPageToken(
    -        java.lang.String value) {
    +    public Builder setPageToken(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           pageToken_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListSnapshotsResponse`; indicates that this
          * is a continuation of a prior `ListSnapshots` call, and that the system
    @@ -753,12 +786,14 @@ public Builder setPageToken(
          * string page_token = 3;
          */
         public Builder clearPageToken() {
    -      
    +
           pageToken_ = getDefaultInstance().getPageToken();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListSnapshotsResponse`; indicates that this
          * is a continuation of a prior `ListSnapshots` call, and that the system
    @@ -767,20 +802,19 @@ public Builder clearPageToken() {
          *
          * string page_token = 3;
          */
    -    public Builder setPageTokenBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           pageToken_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -790,12 +824,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSnapshotsRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsRequest)
       private static final com.google.pubsub.v1.ListSnapshotsRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSnapshotsRequest();
       }
    @@ -804,16 +838,16 @@ public static com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ListSnapshotsRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ListSnapshotsRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ListSnapshotsRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ListSnapshotsRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -828,6 +862,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.ListSnapshotsRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java
    index db100530a773..a22908763b0b 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface ListSnapshotsRequestOrBuilder extends
    +public interface ListSnapshotsRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
    @@ -17,6 +20,8 @@ public interface ListSnapshotsRequestOrBuilder extends
        */
       java.lang.String getProject();
       /**
    +   *
    +   *
        * 
        * The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
    @@ -24,10 +29,11 @@ public interface ListSnapshotsRequestOrBuilder extends
        *
        * string project = 1;
        */
    -  com.google.protobuf.ByteString
    -      getProjectBytes();
    +  com.google.protobuf.ByteString getProjectBytes();
     
       /**
    +   *
    +   *
        * 
        * Maximum number of snapshots to return.
        * 
    @@ -37,6 +43,8 @@ public interface ListSnapshotsRequestOrBuilder extends int getPageSize(); /** + * + * *
        * The value returned by the last `ListSnapshotsResponse`; indicates that this
        * is a continuation of a prior `ListSnapshots` call, and that the system
    @@ -47,6 +55,8 @@ public interface ListSnapshotsRequestOrBuilder extends
        */
       java.lang.String getPageToken();
       /**
    +   *
    +   *
        * 
        * The value returned by the last `ListSnapshotsResponse`; indicates that this
        * is a continuation of a prior `ListSnapshots` call, and that the system
    @@ -55,6 +65,5 @@ public interface ListSnapshotsRequestOrBuilder extends
        *
        * string page_token = 3;
        */
    -  com.google.protobuf.ByteString
    -      getPageTokenBytes();
    +  com.google.protobuf.ByteString getPageTokenBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    index b2f0b97af288..757837fc337e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    @@ -4,6 +4,8 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Response for the `ListSnapshots` method.<br><br>
      * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -13,25 +15,26 @@
      *
      * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse}
      */
    -public  final class ListSnapshotsResponse extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class ListSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsResponse)
         ListSnapshotsResponseOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use ListSnapshotsResponse.newBuilder() to construct.
       private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private ListSnapshotsResponse() {
         snapshots_ = java.util.Collections.emptyList();
         nextPageToken_ = "";
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private ListSnapshotsResponse(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -51,35 +54,36 @@ private ListSnapshotsResponse(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
    -              snapshots_ = new java.util.ArrayList();
    -              mutable_bitField0_ |= 0x00000001;
    +          case 10:
    +            {
    +              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
    +                snapshots_ = new java.util.ArrayList();
    +                mutable_bitField0_ |= 0x00000001;
    +              }
    +              snapshots_.add(
    +                  input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry));
    +              break;
                 }
    -            snapshots_.add(
    -                input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry));
    -            break;
    -          }
    -          case 18: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 18:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            nextPageToken_ = s;
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +              nextPageToken_ = s;
    +              break;
    +            }
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
             snapshots_ = java.util.Collections.unmodifiableList(snapshots_);
    @@ -88,23 +92,28 @@ private ListSnapshotsResponse(
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.ListSnapshotsResponse.class, com.google.pubsub.v1.ListSnapshotsResponse.Builder.class);
    +            com.google.pubsub.v1.ListSnapshotsResponse.class,
    +            com.google.pubsub.v1.ListSnapshotsResponse.Builder.class);
       }
     
       private int bitField0_;
       public static final int SNAPSHOTS_FIELD_NUMBER = 1;
       private java.util.List snapshots_;
       /**
    +   *
    +   *
        * 
        * The resulting snapshots.
        * 
    @@ -115,17 +124,21 @@ public java.util.List getSnapshotsList() { return snapshots_; } /** + * + * *
        * The resulting snapshots.
        * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public java.util.List + public java.util.List getSnapshotsOrBuilderList() { return snapshots_; } /** + * + * *
        * The resulting snapshots.
        * 
    @@ -136,6 +149,8 @@ public int getSnapshotsCount() { return snapshots_.size(); } /** + * + * *
        * The resulting snapshots.
        * 
    @@ -146,20 +161,23 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { return snapshots_.get(index); } /** + * + * *
        * The resulting snapshots.
        * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( - int index) { + public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { return snapshots_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
        * If not empty, indicates that there may be more snapshot that match the
        * request; this value should be passed in a new `ListSnapshotsRequest`.
    @@ -172,14 +190,15 @@ public java.lang.String getNextPageToken() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           nextPageToken_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * If not empty, indicates that there may be more snapshot that match the
        * request; this value should be passed in a new `ListSnapshotsRequest`.
    @@ -187,13 +206,11 @@ public java.lang.String getNextPageToken() {
        *
        * string next_page_token = 2;
        */
    -  public com.google.protobuf.ByteString
    -      getNextPageTokenBytes() {
    +  public com.google.protobuf.ByteString getNextPageTokenBytes() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           nextPageToken_ = b;
           return b;
         } else {
    @@ -202,6 +219,7 @@ public java.lang.String getNextPageToken() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -213,8 +231,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < snapshots_.size(); i++) {
           output.writeMessage(1, snapshots_.get(i));
         }
    @@ -231,8 +248,7 @@ public int getSerializedSize() {
     
         size = 0;
         for (int i = 0; i < snapshots_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, snapshots_.get(i));
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snapshots_.get(i));
         }
         if (!getNextPageTokenBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
    @@ -245,18 +261,17 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ListSnapshotsResponse)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.ListSnapshotsResponse other = (com.google.pubsub.v1.ListSnapshotsResponse) obj;
    +    com.google.pubsub.v1.ListSnapshotsResponse other =
    +        (com.google.pubsub.v1.ListSnapshotsResponse) obj;
     
         boolean result = true;
    -    result = result && getSnapshotsList()
    -        .equals(other.getSnapshotsList());
    -    result = result && getNextPageToken()
    -        .equals(other.getNextPageToken());
    +    result = result && getSnapshotsList().equals(other.getSnapshotsList());
    +    result = result && getNextPageToken().equals(other.getNextPageToken());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -279,97 +294,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ListSnapshotsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Response for the `ListSnapshots` method.<br><br>
        * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -379,21 +401,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSnapshotsResponse)
           com.google.pubsub.v1.ListSnapshotsResponseOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.ListSnapshotsResponse.class, com.google.pubsub.v1.ListSnapshotsResponse.Builder.class);
    +              com.google.pubsub.v1.ListSnapshotsResponse.class,
    +              com.google.pubsub.v1.ListSnapshotsResponse.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.ListSnapshotsResponse.newBuilder()
    @@ -401,17 +425,17 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
             getSnapshotsFieldBuilder();
           }
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -427,9 +451,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor;
         }
     
         @java.lang.Override
    @@ -448,7 +472,8 @@ public com.google.pubsub.v1.ListSnapshotsResponse build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() {
    -      com.google.pubsub.v1.ListSnapshotsResponse result = new com.google.pubsub.v1.ListSnapshotsResponse(this);
    +      com.google.pubsub.v1.ListSnapshotsResponse result =
    +          new com.google.pubsub.v1.ListSnapshotsResponse(this);
           int from_bitField0_ = bitField0_;
           int to_bitField0_ = 0;
           if (snapshotsBuilder_ == null) {
    @@ -470,38 +495,39 @@ public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.ListSnapshotsResponse) {
    -        return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse)other);
    +        return mergeFrom((com.google.pubsub.v1.ListSnapshotsResponse) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -528,9 +554,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsResponse other) {
                 snapshotsBuilder_ = null;
                 snapshots_ = other.snapshots_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            snapshotsBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getSnapshotsFieldBuilder() : null;
    +            snapshotsBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getSnapshotsFieldBuilder()
    +                    : null;
               } else {
                 snapshotsBuilder_.addAllMessages(other.snapshots_);
               }
    @@ -568,21 +595,28 @@ public Builder mergeFrom(
           }
           return this;
         }
    +
         private int bitField0_;
     
         private java.util.List snapshots_ =
    -      java.util.Collections.emptyList();
    +        java.util.Collections.emptyList();
    +
         private void ensureSnapshotsIsMutable() {
           if (!((bitField0_ & 0x00000001) == 0x00000001)) {
             snapshots_ = new java.util.ArrayList(snapshots_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotsBuilder_;
    +            com.google.pubsub.v1.Snapshot,
    +            com.google.pubsub.v1.Snapshot.Builder,
    +            com.google.pubsub.v1.SnapshotOrBuilder>
    +        snapshotsBuilder_;
     
         /**
    +     *
    +     *
          * 
          * The resulting snapshots.
          * 
    @@ -597,6 +631,8 @@ public java.util.List getSnapshotsList() { } } /** + * + * *
          * The resulting snapshots.
          * 
    @@ -611,6 +647,8 @@ public int getSnapshotsCount() { } } /** + * + * *
          * The resulting snapshots.
          * 
    @@ -625,14 +663,15 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { } } /** + * + * *
          * The resulting snapshots.
          * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public Builder setSnapshots( - int index, com.google.pubsub.v1.Snapshot value) { + public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -646,14 +685,15 @@ public Builder setSnapshots( return this; } /** + * + * *
          * The resulting snapshots.
          * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public Builder setSnapshots( - int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.set(index, builderForValue.build()); @@ -664,6 +704,8 @@ public Builder setSnapshots( return this; } /** + * + * *
          * The resulting snapshots.
          * 
    @@ -684,14 +726,15 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { return this; } /** + * + * *
          * The resulting snapshots.
          * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public Builder addSnapshots( - int index, com.google.pubsub.v1.Snapshot value) { + public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -705,14 +748,15 @@ public Builder addSnapshots( return this; } /** + * + * *
          * The resulting snapshots.
          * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public Builder addSnapshots( - com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(builderForValue.build()); @@ -723,14 +767,15 @@ public Builder addSnapshots( return this; } /** + * + * *
          * The resulting snapshots.
          * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public Builder addSnapshots( - int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); snapshots_.add(index, builderForValue.build()); @@ -741,6 +786,8 @@ public Builder addSnapshots( return this; } /** + * + * *
          * The resulting snapshots.
          * 
    @@ -751,8 +798,7 @@ public Builder addAllSnapshots( java.lang.Iterable values) { if (snapshotsBuilder_ == null) { ensureSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, snapshots_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); onChanged(); } else { snapshotsBuilder_.addAllMessages(values); @@ -760,6 +806,8 @@ public Builder addAllSnapshots( return this; } /** + * + * *
          * The resulting snapshots.
          * 
    @@ -777,6 +825,8 @@ public Builder clearSnapshots() { return this; } /** + * + * *
          * The resulting snapshots.
          * 
    @@ -794,39 +844,44 @@ public Builder removeSnapshots(int index) { return this; } /** + * + * *
          * The resulting snapshots.
          * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder( - int index) { + public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder().getBuilder(index); } /** + * + * *
          * The resulting snapshots.
          * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( - int index) { + public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { if (snapshotsBuilder_ == null) { - return snapshots_.get(index); } else { + return snapshots_.get(index); + } else { return snapshotsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * The resulting snapshots.
          * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public java.util.List - getSnapshotsOrBuilderList() { + public java.util.List + getSnapshotsOrBuilderList() { if (snapshotsBuilder_ != null) { return snapshotsBuilder_.getMessageOrBuilderList(); } else { @@ -834,6 +889,8 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( } } /** + * + * *
          * The resulting snapshots.
          * 
    @@ -841,38 +898,46 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { - return getSnapshotsFieldBuilder().addBuilder( - com.google.pubsub.v1.Snapshot.getDefaultInstance()); + return getSnapshotsFieldBuilder() + .addBuilder(com.google.pubsub.v1.Snapshot.getDefaultInstance()); } /** + * + * *
          * The resulting snapshots.
          * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder( - int index) { - return getSnapshotsFieldBuilder().addBuilder( - index, com.google.pubsub.v1.Snapshot.getDefaultInstance()); + public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { + return getSnapshotsFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.Snapshot.getDefaultInstance()); } /** + * + * *
          * The resulting snapshots.
          * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - public java.util.List - getSnapshotsBuilderList() { + public java.util.List getSnapshotsBuilderList() { return getSnapshotsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> + com.google.pubsub.v1.Snapshot, + com.google.pubsub.v1.Snapshot.Builder, + com.google.pubsub.v1.SnapshotOrBuilder> getSnapshotsFieldBuilder() { if (snapshotsBuilder_ == null) { - snapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( + snapshotsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Snapshot, + com.google.pubsub.v1.Snapshot.Builder, + com.google.pubsub.v1.SnapshotOrBuilder>( snapshots_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), @@ -884,6 +949,8 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
          * If not empty, indicates that there may be more snapshot that match the
          * request; this value should be passed in a new `ListSnapshotsRequest`.
    @@ -894,8 +961,7 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(
         public java.lang.String getNextPageToken() {
           java.lang.Object ref = nextPageToken_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             nextPageToken_ = s;
             return s;
    @@ -904,6 +970,8 @@ public java.lang.String getNextPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more snapshot that match the
          * request; this value should be passed in a new `ListSnapshotsRequest`.
    @@ -911,13 +979,11 @@ public java.lang.String getNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public com.google.protobuf.ByteString
    -        getNextPageTokenBytes() {
    +    public com.google.protobuf.ByteString getNextPageTokenBytes() {
           java.lang.Object ref = nextPageToken_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             nextPageToken_ = b;
             return b;
           } else {
    @@ -925,6 +991,8 @@ public java.lang.String getNextPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more snapshot that match the
          * request; this value should be passed in a new `ListSnapshotsRequest`.
    @@ -932,17 +1000,18 @@ public java.lang.String getNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public Builder setNextPageToken(
    -        java.lang.String value) {
    +    public Builder setNextPageToken(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           nextPageToken_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more snapshot that match the
          * request; this value should be passed in a new `ListSnapshotsRequest`.
    @@ -951,12 +1020,14 @@ public Builder setNextPageToken(
          * string next_page_token = 2;
          */
         public Builder clearNextPageToken() {
    -      
    +
           nextPageToken_ = getDefaultInstance().getNextPageToken();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more snapshot that match the
          * request; this value should be passed in a new `ListSnapshotsRequest`.
    @@ -964,20 +1035,19 @@ public Builder clearNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public Builder setNextPageTokenBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           nextPageToken_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -987,12 +1057,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSnapshotsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSnapshotsResponse)
       private static final com.google.pubsub.v1.ListSnapshotsResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSnapshotsResponse();
       }
    @@ -1001,16 +1071,16 @@ public static com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ListSnapshotsResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ListSnapshotsResponse(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ListSnapshotsResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ListSnapshotsResponse(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1025,6 +1095,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.ListSnapshotsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java
    index 14850ca689e6..585f88414d03 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java
    @@ -3,20 +3,24 @@
     
     package com.google.pubsub.v1;
     
    -public interface ListSnapshotsResponseOrBuilder extends
    +public interface ListSnapshotsResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The resulting snapshots.
        * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - java.util.List - getSnapshotsList(); + java.util.List getSnapshotsList(); /** + * + * *
        * The resulting snapshots.
        * 
    @@ -25,6 +29,8 @@ public interface ListSnapshotsResponseOrBuilder extends */ com.google.pubsub.v1.Snapshot getSnapshots(int index); /** + * + * *
        * The resulting snapshots.
        * 
    @@ -33,25 +39,29 @@ public interface ListSnapshotsResponseOrBuilder extends */ int getSnapshotsCount(); /** + * + * *
        * The resulting snapshots.
        * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - java.util.List - getSnapshotsOrBuilderList(); + java.util.List getSnapshotsOrBuilderList(); /** + * + * *
        * The resulting snapshots.
        * 
    * * repeated .google.pubsub.v1.Snapshot snapshots = 1; */ - com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder( - int index); + com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index); /** + * + * *
        * If not empty, indicates that there may be more snapshot that match the
        * request; this value should be passed in a new `ListSnapshotsRequest`.
    @@ -61,6 +71,8 @@ com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(
        */
       java.lang.String getNextPageToken();
       /**
    +   *
    +   *
        * 
        * If not empty, indicates that there may be more snapshot that match the
        * request; this value should be passed in a new `ListSnapshotsRequest`.
    @@ -68,6 +80,5 @@ com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(
        *
        * string next_page_token = 2;
        */
    -  com.google.protobuf.ByteString
    -      getNextPageTokenBytes();
    +  com.google.protobuf.ByteString getNextPageTokenBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    index cacd90ef5fff..c24a8ba397a9 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    @@ -4,21 +4,24 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the `ListSubscriptions` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ListSubscriptionsRequest} */ -public final class ListSubscriptionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSubscriptionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsRequest) ListSubscriptionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSubscriptionsRequest.newBuilder() to construct. private ListSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSubscriptionsRequest() { project_ = ""; pageSize_ = 0; @@ -26,10 +29,10 @@ private ListSubscriptionsRequest() { } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSubscriptionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,58 +52,64 @@ private ListSubscriptionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsRequest.class, com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListSubscriptionsRequest.class, + com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; private volatile java.lang.Object project_; /** + * + * *
        * The name of the project in which to list subscriptions.
        * Format is `projects/{project-id}`.
    @@ -113,14 +122,15 @@ public java.lang.String getProject() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           project_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the project in which to list subscriptions.
        * Format is `projects/{project-id}`.
    @@ -128,13 +138,11 @@ public java.lang.String getProject() {
        *
        * string project = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getProjectBytes() {
    +  public com.google.protobuf.ByteString getProjectBytes() {
         java.lang.Object ref = project_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           project_ = b;
           return b;
         } else {
    @@ -145,6 +153,8 @@ public java.lang.String getProject() {
       public static final int PAGE_SIZE_FIELD_NUMBER = 2;
       private int pageSize_;
       /**
    +   *
    +   *
        * 
        * Maximum number of subscriptions to return.
        * 
    @@ -158,6 +168,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
        * The value returned by the last `ListSubscriptionsResponse`; indicates that
        * this is a continuation of a prior `ListSubscriptions` call, and that the
    @@ -171,14 +183,15 @@ public java.lang.String getPageToken() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           pageToken_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The value returned by the last `ListSubscriptionsResponse`; indicates that
        * this is a continuation of a prior `ListSubscriptions` call, and that the
    @@ -187,13 +200,11 @@ public java.lang.String getPageToken() {
        *
        * string page_token = 3;
        */
    -  public com.google.protobuf.ByteString
    -      getPageTokenBytes() {
    +  public com.google.protobuf.ByteString getPageTokenBytes() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           pageToken_ = b;
           return b;
         } else {
    @@ -202,6 +213,7 @@ public java.lang.String getPageToken() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -213,8 +225,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getProjectBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_);
         }
    @@ -237,8 +248,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_);
         }
         if (pageSize_ != 0) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeInt32Size(2, pageSize_);
    +      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
         }
         if (!getPageTokenBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
    @@ -251,20 +261,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ListSubscriptionsRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.ListSubscriptionsRequest other = (com.google.pubsub.v1.ListSubscriptionsRequest) obj;
    +    com.google.pubsub.v1.ListSubscriptionsRequest other =
    +        (com.google.pubsub.v1.ListSubscriptionsRequest) obj;
     
         boolean result = true;
    -    result = result && getProject()
    -        .equals(other.getProject());
    -    result = result && (getPageSize()
    -        == other.getPageSize());
    -    result = result && getPageToken()
    -        .equals(other.getPageToken());
    +    result = result && getProject().equals(other.getProject());
    +    result = result && (getPageSize() == other.getPageSize());
    +    result = result && getPageToken().equals(other.getPageToken());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -287,118 +295,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the `ListSubscriptions` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ListSubscriptionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSubscriptionsRequest) com.google.pubsub.v1.ListSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsRequest.class, com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListSubscriptionsRequest.class, + com.google.pubsub.v1.ListSubscriptionsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListSubscriptionsRequest.newBuilder() @@ -406,16 +423,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +445,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override @@ -450,7 +466,8 @@ public com.google.pubsub.v1.ListSubscriptionsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { - com.google.pubsub.v1.ListSubscriptionsRequest result = new com.google.pubsub.v1.ListSubscriptionsRequest(this); + com.google.pubsub.v1.ListSubscriptionsRequest result = + new com.google.pubsub.v1.ListSubscriptionsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -462,38 +479,39 @@ public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSubscriptionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsRequest) other); } else { super.mergeFrom(other); return this; @@ -544,6 +562,8 @@ public Builder mergeFrom( private java.lang.Object project_ = ""; /** + * + * *
          * The name of the project in which to list subscriptions.
          * Format is `projects/{project-id}`.
    @@ -554,8 +574,7 @@ public Builder mergeFrom(
         public java.lang.String getProject() {
           java.lang.Object ref = project_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             project_ = s;
             return s;
    @@ -564,6 +583,8 @@ public java.lang.String getProject() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list subscriptions.
          * Format is `projects/{project-id}`.
    @@ -571,13 +592,11 @@ public java.lang.String getProject() {
          *
          * string project = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getProjectBytes() {
    +    public com.google.protobuf.ByteString getProjectBytes() {
           java.lang.Object ref = project_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             project_ = b;
             return b;
           } else {
    @@ -585,6 +604,8 @@ public java.lang.String getProject() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list subscriptions.
          * Format is `projects/{project-id}`.
    @@ -592,17 +613,18 @@ public java.lang.String getProject() {
          *
          * string project = 1;
          */
    -    public Builder setProject(
    -        java.lang.String value) {
    +    public Builder setProject(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           project_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list subscriptions.
          * Format is `projects/{project-id}`.
    @@ -611,12 +633,14 @@ public Builder setProject(
          * string project = 1;
          */
         public Builder clearProject() {
    -      
    +
           project_ = getDefaultInstance().getProject();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list subscriptions.
          * Format is `projects/{project-id}`.
    @@ -624,20 +648,21 @@ public Builder clearProject() {
          *
          * string project = 1;
          */
    -    public Builder setProjectBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setProjectBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           project_ = value;
           onChanged();
           return this;
         }
     
    -    private int pageSize_ ;
    +    private int pageSize_;
         /**
    +     *
    +     *
          * 
          * Maximum number of subscriptions to return.
          * 
    @@ -648,6 +673,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Maximum number of subscriptions to return.
          * 
    @@ -655,12 +682,14 @@ public int getPageSize() { * int32 page_size = 2; */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Maximum number of subscriptions to return.
          * 
    @@ -668,7 +697,7 @@ public Builder setPageSize(int value) { * int32 page_size = 2; */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -676,6 +705,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * The value returned by the last `ListSubscriptionsResponse`; indicates that
          * this is a continuation of a prior `ListSubscriptions` call, and that the
    @@ -687,8 +718,7 @@ public Builder clearPageSize() {
         public java.lang.String getPageToken() {
           java.lang.Object ref = pageToken_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             pageToken_ = s;
             return s;
    @@ -697,6 +727,8 @@ public java.lang.String getPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListSubscriptionsResponse`; indicates that
          * this is a continuation of a prior `ListSubscriptions` call, and that the
    @@ -705,13 +737,11 @@ public java.lang.String getPageToken() {
          *
          * string page_token = 3;
          */
    -    public com.google.protobuf.ByteString
    -        getPageTokenBytes() {
    +    public com.google.protobuf.ByteString getPageTokenBytes() {
           java.lang.Object ref = pageToken_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             pageToken_ = b;
             return b;
           } else {
    @@ -719,6 +749,8 @@ public java.lang.String getPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListSubscriptionsResponse`; indicates that
          * this is a continuation of a prior `ListSubscriptions` call, and that the
    @@ -727,17 +759,18 @@ public java.lang.String getPageToken() {
          *
          * string page_token = 3;
          */
    -    public Builder setPageToken(
    -        java.lang.String value) {
    +    public Builder setPageToken(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           pageToken_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListSubscriptionsResponse`; indicates that
          * this is a continuation of a prior `ListSubscriptions` call, and that the
    @@ -747,12 +780,14 @@ public Builder setPageToken(
          * string page_token = 3;
          */
         public Builder clearPageToken() {
    -      
    +
           pageToken_ = getDefaultInstance().getPageToken();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListSubscriptionsResponse`; indicates that
          * this is a continuation of a prior `ListSubscriptions` call, and that the
    @@ -761,20 +796,19 @@ public Builder clearPageToken() {
          *
          * string page_token = 3;
          */
    -    public Builder setPageTokenBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           pageToken_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -784,12 +818,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSubscriptionsRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsRequest)
       private static final com.google.pubsub.v1.ListSubscriptionsRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSubscriptionsRequest();
       }
    @@ -798,16 +832,16 @@ public static com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ListSubscriptionsRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ListSubscriptionsRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ListSubscriptionsRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ListSubscriptionsRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -822,6 +856,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.ListSubscriptionsRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java
    index 680cff7e0c09..436f9e0388ff 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface ListSubscriptionsRequestOrBuilder extends
    +public interface ListSubscriptionsRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSubscriptionsRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the project in which to list subscriptions.
        * Format is `projects/{project-id}`.
    @@ -17,6 +20,8 @@ public interface ListSubscriptionsRequestOrBuilder extends
        */
       java.lang.String getProject();
       /**
    +   *
    +   *
        * 
        * The name of the project in which to list subscriptions.
        * Format is `projects/{project-id}`.
    @@ -24,10 +29,11 @@ public interface ListSubscriptionsRequestOrBuilder extends
        *
        * string project = 1;
        */
    -  com.google.protobuf.ByteString
    -      getProjectBytes();
    +  com.google.protobuf.ByteString getProjectBytes();
     
       /**
    +   *
    +   *
        * 
        * Maximum number of subscriptions to return.
        * 
    @@ -37,6 +43,8 @@ public interface ListSubscriptionsRequestOrBuilder extends int getPageSize(); /** + * + * *
        * The value returned by the last `ListSubscriptionsResponse`; indicates that
        * this is a continuation of a prior `ListSubscriptions` call, and that the
    @@ -47,6 +55,8 @@ public interface ListSubscriptionsRequestOrBuilder extends
        */
       java.lang.String getPageToken();
       /**
    +   *
    +   *
        * 
        * The value returned by the last `ListSubscriptionsResponse`; indicates that
        * this is a continuation of a prior `ListSubscriptions` call, and that the
    @@ -55,6 +65,5 @@ public interface ListSubscriptionsRequestOrBuilder extends
        *
        * string page_token = 3;
        */
    -  com.google.protobuf.ByteString
    -      getPageTokenBytes();
    +  com.google.protobuf.ByteString getPageTokenBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    index 4a6e2e45db6f..dea6b1eadcf0 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    @@ -4,31 +4,34 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Response for the `ListSubscriptions` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ListSubscriptionsResponse} */ -public final class ListSubscriptionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSubscriptionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsResponse) ListSubscriptionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSubscriptionsResponse.newBuilder() to construct. private ListSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSubscriptionsResponse() { subscriptions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSubscriptionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -48,35 +51,36 @@ private ListSubscriptionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - subscriptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + subscriptions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subscriptions_.add( + input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry)); + break; } - subscriptions_.add( - input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); @@ -85,23 +89,28 @@ private ListSubscriptionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsResponse.class, com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListSubscriptionsResponse.class, + com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); } private int bitField0_; public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; private java.util.List subscriptions_; /** + * + * *
        * The subscriptions that match the request.
        * 
    @@ -112,17 +121,21 @@ public java.util.List getSubscriptionsList() return subscriptions_; } /** + * + * *
        * The subscriptions that match the request.
        * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public java.util.List + public java.util.List getSubscriptionsOrBuilderList() { return subscriptions_; } /** + * + * *
        * The subscriptions that match the request.
        * 
    @@ -133,6 +146,8 @@ public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
        * The subscriptions that match the request.
        * 
    @@ -143,20 +158,23 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
        * The subscriptions that match the request.
        * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( - int index) { + public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) { return subscriptions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
        * If not empty, indicates that there may be more subscriptions that match
        * the request; this value should be passed in a new
    @@ -170,14 +188,15 @@ public java.lang.String getNextPageToken() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           nextPageToken_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * If not empty, indicates that there may be more subscriptions that match
        * the request; this value should be passed in a new
    @@ -186,13 +205,11 @@ public java.lang.String getNextPageToken() {
        *
        * string next_page_token = 2;
        */
    -  public com.google.protobuf.ByteString
    -      getNextPageTokenBytes() {
    +  public com.google.protobuf.ByteString getNextPageTokenBytes() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           nextPageToken_ = b;
           return b;
         } else {
    @@ -201,6 +218,7 @@ public java.lang.String getNextPageToken() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -212,8 +230,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < subscriptions_.size(); i++) {
           output.writeMessage(1, subscriptions_.get(i));
         }
    @@ -230,8 +247,7 @@ public int getSerializedSize() {
     
         size = 0;
         for (int i = 0; i < subscriptions_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, subscriptions_.get(i));
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, subscriptions_.get(i));
         }
         if (!getNextPageTokenBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
    @@ -244,18 +260,17 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ListSubscriptionsResponse)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.ListSubscriptionsResponse other = (com.google.pubsub.v1.ListSubscriptionsResponse) obj;
    +    com.google.pubsub.v1.ListSubscriptionsResponse other =
    +        (com.google.pubsub.v1.ListSubscriptionsResponse) obj;
     
         boolean result = true;
    -    result = result && getSubscriptionsList()
    -        .equals(other.getSubscriptionsList());
    -    result = result && getNextPageToken()
    -        .equals(other.getNextPageToken());
    +    result = result && getSubscriptionsList().equals(other.getSubscriptionsList());
    +    result = result && getNextPageToken().equals(other.getNextPageToken());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -278,118 +293,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ListSubscriptionsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Response for the `ListSubscriptions` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ListSubscriptionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSubscriptionsResponse) com.google.pubsub.v1.ListSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListSubscriptionsResponse.class, com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListSubscriptionsResponse.class, + com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListSubscriptionsResponse.newBuilder() @@ -397,17 +421,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSubscriptionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +447,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override @@ -444,7 +468,8 @@ public com.google.pubsub.v1.ListSubscriptionsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { - com.google.pubsub.v1.ListSubscriptionsResponse result = new com.google.pubsub.v1.ListSubscriptionsResponse(this); + com.google.pubsub.v1.ListSubscriptionsResponse result = + new com.google.pubsub.v1.ListSubscriptionsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (subscriptionsBuilder_ == null) { @@ -466,38 +491,39 @@ public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSubscriptionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListSubscriptionsResponse) other); } else { super.mergeFrom(other); return this; @@ -524,9 +550,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsResponse other) { subscriptionsBuilder_ = null; subscriptions_ = other.subscriptions_; bitField0_ = (bitField0_ & ~0x00000001); - subscriptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubscriptionsFieldBuilder() : null; + subscriptionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubscriptionsFieldBuilder() + : null; } else { subscriptionsBuilder_.addAllMessages(other.subscriptions_); } @@ -564,21 +591,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List subscriptions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { subscriptions_ = new java.util.ArrayList(subscriptions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> subscriptionsBuilder_; + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder> + subscriptionsBuilder_; /** + * + * *
          * The subscriptions that match the request.
          * 
    @@ -593,6 +627,8 @@ public java.util.List getSubscriptionsList() } } /** + * + * *
          * The subscriptions that match the request.
          * 
    @@ -607,6 +643,8 @@ public int getSubscriptionsCount() { } } /** + * + * *
          * The subscriptions that match the request.
          * 
    @@ -621,14 +659,15 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { } } /** + * + * *
          * The subscriptions that match the request.
          * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public Builder setSubscriptions( - int index, com.google.pubsub.v1.Subscription value) { + public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -642,6 +681,8 @@ public Builder setSubscriptions( return this; } /** + * + * *
          * The subscriptions that match the request.
          * 
    @@ -660,6 +701,8 @@ public Builder setSubscriptions( return this; } /** + * + * *
          * The subscriptions that match the request.
          * 
    @@ -680,14 +723,15 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { return this; } /** + * + * *
          * The subscriptions that match the request.
          * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public Builder addSubscriptions( - int index, com.google.pubsub.v1.Subscription value) { + public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -701,14 +745,15 @@ public Builder addSubscriptions( return this; } /** + * + * *
          * The subscriptions that match the request.
          * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public Builder addSubscriptions( - com.google.pubsub.v1.Subscription.Builder builderForValue) { + public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builderForValue) { if (subscriptionsBuilder_ == null) { ensureSubscriptionsIsMutable(); subscriptions_.add(builderForValue.build()); @@ -719,6 +764,8 @@ public Builder addSubscriptions( return this; } /** + * + * *
          * The subscriptions that match the request.
          * 
    @@ -737,6 +784,8 @@ public Builder addSubscriptions( return this; } /** + * + * *
          * The subscriptions that match the request.
          * 
    @@ -747,8 +796,7 @@ public Builder addAllSubscriptions( java.lang.Iterable values) { if (subscriptionsBuilder_ == null) { ensureSubscriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subscriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subscriptions_); onChanged(); } else { subscriptionsBuilder_.addAllMessages(values); @@ -756,6 +804,8 @@ public Builder addAllSubscriptions( return this; } /** + * + * *
          * The subscriptions that match the request.
          * 
    @@ -773,6 +823,8 @@ public Builder clearSubscriptions() { return this; } /** + * + * *
          * The subscriptions that match the request.
          * 
    @@ -790,39 +842,44 @@ public Builder removeSubscriptions(int index) { return this; } /** + * + * *
          * The subscriptions that match the request.
          * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder( - int index) { + public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder().getBuilder(index); } /** + * + * *
          * The subscriptions that match the request.
          * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( - int index) { + public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) { if (subscriptionsBuilder_ == null) { - return subscriptions_.get(index); } else { + return subscriptions_.get(index); + } else { return subscriptionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * The subscriptions that match the request.
          * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public java.util.List - getSubscriptionsOrBuilderList() { + public java.util.List + getSubscriptionsOrBuilderList() { if (subscriptionsBuilder_ != null) { return subscriptionsBuilder_.getMessageOrBuilderList(); } else { @@ -830,6 +887,8 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( } } /** + * + * *
          * The subscriptions that match the request.
          * 
    @@ -837,38 +896,46 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { - return getSubscriptionsFieldBuilder().addBuilder( - com.google.pubsub.v1.Subscription.getDefaultInstance()); + return getSubscriptionsFieldBuilder() + .addBuilder(com.google.pubsub.v1.Subscription.getDefaultInstance()); } /** + * + * *
          * The subscriptions that match the request.
          * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder( - int index) { - return getSubscriptionsFieldBuilder().addBuilder( - index, com.google.pubsub.v1.Subscription.getDefaultInstance()); + public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int index) { + return getSubscriptionsFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.Subscription.getDefaultInstance()); } /** + * + * *
          * The subscriptions that match the request.
          * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - public java.util.List - getSubscriptionsBuilderList() { + public java.util.List getSubscriptionsBuilderList() { return getSubscriptionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder> getSubscriptionsFieldBuilder() { if (subscriptionsBuilder_ == null) { - subscriptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( + subscriptionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder>( subscriptions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), @@ -880,6 +947,8 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
          * If not empty, indicates that there may be more subscriptions that match
          * the request; this value should be passed in a new
    @@ -891,8 +960,7 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(
         public java.lang.String getNextPageToken() {
           java.lang.Object ref = nextPageToken_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             nextPageToken_ = s;
             return s;
    @@ -901,6 +969,8 @@ public java.lang.String getNextPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more subscriptions that match
          * the request; this value should be passed in a new
    @@ -909,13 +979,11 @@ public java.lang.String getNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public com.google.protobuf.ByteString
    -        getNextPageTokenBytes() {
    +    public com.google.protobuf.ByteString getNextPageTokenBytes() {
           java.lang.Object ref = nextPageToken_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             nextPageToken_ = b;
             return b;
           } else {
    @@ -923,6 +991,8 @@ public java.lang.String getNextPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more subscriptions that match
          * the request; this value should be passed in a new
    @@ -931,17 +1001,18 @@ public java.lang.String getNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public Builder setNextPageToken(
    -        java.lang.String value) {
    +    public Builder setNextPageToken(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           nextPageToken_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more subscriptions that match
          * the request; this value should be passed in a new
    @@ -951,12 +1022,14 @@ public Builder setNextPageToken(
          * string next_page_token = 2;
          */
         public Builder clearNextPageToken() {
    -      
    +
           nextPageToken_ = getDefaultInstance().getNextPageToken();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more subscriptions that match
          * the request; this value should be passed in a new
    @@ -965,20 +1038,19 @@ public Builder clearNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public Builder setNextPageTokenBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           nextPageToken_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -988,12 +1060,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSubscriptionsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSubscriptionsResponse)
       private static final com.google.pubsub.v1.ListSubscriptionsResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSubscriptionsResponse();
       }
    @@ -1002,16 +1074,16 @@ public static com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstance(
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ListSubscriptionsResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ListSubscriptionsResponse(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ListSubscriptionsResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ListSubscriptionsResponse(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1026,6 +1098,4 @@ public com.google.protobuf.Parser getParserForType()
       public com.google.pubsub.v1.ListSubscriptionsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java
    index decc608e932f..ae0beec2222a 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java
    @@ -3,20 +3,24 @@
     
     package com.google.pubsub.v1;
     
    -public interface ListSubscriptionsResponseOrBuilder extends
    +public interface ListSubscriptionsResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSubscriptionsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The subscriptions that match the request.
        * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - java.util.List - getSubscriptionsList(); + java.util.List getSubscriptionsList(); /** + * + * *
        * The subscriptions that match the request.
        * 
    @@ -25,6 +29,8 @@ public interface ListSubscriptionsResponseOrBuilder extends */ com.google.pubsub.v1.Subscription getSubscriptions(int index); /** + * + * *
        * The subscriptions that match the request.
        * 
    @@ -33,25 +39,30 @@ public interface ListSubscriptionsResponseOrBuilder extends */ int getSubscriptionsCount(); /** + * + * *
        * The subscriptions that match the request.
        * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - java.util.List + java.util.List getSubscriptionsOrBuilderList(); /** + * + * *
        * The subscriptions that match the request.
        * 
    * * repeated .google.pubsub.v1.Subscription subscriptions = 1; */ - com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder( - int index); + com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index); /** + * + * *
        * If not empty, indicates that there may be more subscriptions that match
        * the request; this value should be passed in a new
    @@ -62,6 +73,8 @@ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(
        */
       java.lang.String getNextPageToken();
       /**
    +   *
    +   *
        * 
        * If not empty, indicates that there may be more subscriptions that match
        * the request; this value should be passed in a new
    @@ -70,6 +83,5 @@ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(
        *
        * string next_page_token = 2;
        */
    -  com.google.protobuf.ByteString
    -      getNextPageTokenBytes();
    +  com.google.protobuf.ByteString getNextPageTokenBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    index 6d986b340ed1..4dfb49deaf48 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    @@ -4,6 +4,8 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the `ListTopicSnapshots` method.<br><br>
      * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -13,15 +15,16 @@
      *
      * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest}
      */
    -public  final class ListTopicSnapshotsRequest extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class ListTopicSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsRequest)
         ListTopicSnapshotsRequestOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use ListTopicSnapshotsRequest.newBuilder() to construct.
       private ListTopicSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private ListTopicSnapshotsRequest() {
         topic_ = "";
         pageSize_ = 0;
    @@ -29,10 +32,10 @@ private ListTopicSnapshotsRequest() {
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private ListTopicSnapshotsRequest(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -52,58 +55,64 @@ private ListTopicSnapshotsRequest(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 10:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            topic_ = s;
    -            break;
    -          }
    -          case 16: {
    -
    -            pageSize_ = input.readInt32();
    -            break;
    -          }
    -          case 26: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +              topic_ = s;
    +              break;
    +            }
    +          case 16:
    +            {
    +              pageSize_ = input.readInt32();
    +              break;
    +            }
    +          case 26:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            pageToken_ = s;
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +              pageToken_ = s;
    +              break;
    +            }
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.ListTopicSnapshotsRequest.class, com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class);
    +            com.google.pubsub.v1.ListTopicSnapshotsRequest.class,
    +            com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class);
       }
     
       public static final int TOPIC_FIELD_NUMBER = 1;
       private volatile java.lang.Object topic_;
       /**
    +   *
    +   *
        * 
        * The name of the topic that snapshots are attached to.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -116,14 +125,15 @@ public java.lang.String getTopic() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           topic_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the topic that snapshots are attached to.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -131,13 +141,11 @@ public java.lang.String getTopic() {
        *
        * string topic = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getTopicBytes() {
    +  public com.google.protobuf.ByteString getTopicBytes() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           topic_ = b;
           return b;
         } else {
    @@ -148,6 +156,8 @@ public java.lang.String getTopic() {
       public static final int PAGE_SIZE_FIELD_NUMBER = 2;
       private int pageSize_;
       /**
    +   *
    +   *
        * 
        * Maximum number of snapshot names to return.
        * 
    @@ -161,6 +171,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
        * The value returned by the last `ListTopicSnapshotsResponse`; indicates
        * that this is a continuation of a prior `ListTopicSnapshots` call, and
    @@ -174,14 +186,15 @@ public java.lang.String getPageToken() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           pageToken_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The value returned by the last `ListTopicSnapshotsResponse`; indicates
        * that this is a continuation of a prior `ListTopicSnapshots` call, and
    @@ -190,13 +203,11 @@ public java.lang.String getPageToken() {
        *
        * string page_token = 3;
        */
    -  public com.google.protobuf.ByteString
    -      getPageTokenBytes() {
    +  public com.google.protobuf.ByteString getPageTokenBytes() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           pageToken_ = b;
           return b;
         } else {
    @@ -205,6 +216,7 @@ public java.lang.String getPageToken() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -216,8 +228,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getTopicBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
    @@ -240,8 +251,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
         }
         if (pageSize_ != 0) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeInt32Size(2, pageSize_);
    +      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
         }
         if (!getPageTokenBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
    @@ -254,20 +264,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ListTopicSnapshotsRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.ListTopicSnapshotsRequest other = (com.google.pubsub.v1.ListTopicSnapshotsRequest) obj;
    +    com.google.pubsub.v1.ListTopicSnapshotsRequest other =
    +        (com.google.pubsub.v1.ListTopicSnapshotsRequest) obj;
     
         boolean result = true;
    -    result = result && getTopic()
    -        .equals(other.getTopic());
    -    result = result && (getPageSize()
    -        == other.getPageSize());
    -    result = result && getPageToken()
    -        .equals(other.getPageToken());
    +    result = result && getTopic().equals(other.getTopic());
    +    result = result && (getPageSize() == other.getPageSize());
    +    result = result && getPageToken().equals(other.getPageToken());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -290,97 +298,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the `ListTopicSnapshots` method.<br><br>
        * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -390,21 +405,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSnapshotsRequest)
           com.google.pubsub.v1.ListTopicSnapshotsRequestOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.ListTopicSnapshotsRequest.class, com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class);
    +              com.google.pubsub.v1.ListTopicSnapshotsRequest.class,
    +              com.google.pubsub.v1.ListTopicSnapshotsRequest.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.ListTopicSnapshotsRequest.newBuilder()
    @@ -412,16 +429,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -435,9 +451,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor;
         }
     
         @java.lang.Override
    @@ -456,7 +472,8 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() {
    -      com.google.pubsub.v1.ListTopicSnapshotsRequest result = new com.google.pubsub.v1.ListTopicSnapshotsRequest(this);
    +      com.google.pubsub.v1.ListTopicSnapshotsRequest result =
    +          new com.google.pubsub.v1.ListTopicSnapshotsRequest(this);
           result.topic_ = topic_;
           result.pageSize_ = pageSize_;
           result.pageToken_ = pageToken_;
    @@ -468,38 +485,39 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsRequest) {
    -        return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest)other);
    +        return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsRequest) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -550,6 +568,8 @@ public Builder mergeFrom(
     
         private java.lang.Object topic_ = "";
         /**
    +     *
    +     *
          * 
          * The name of the topic that snapshots are attached to.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -560,8 +580,7 @@ public Builder mergeFrom(
         public java.lang.String getTopic() {
           java.lang.Object ref = topic_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             topic_ = s;
             return s;
    @@ -570,6 +589,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic that snapshots are attached to.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -577,13 +598,11 @@ public java.lang.String getTopic() {
          *
          * string topic = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getTopicBytes() {
    +    public com.google.protobuf.ByteString getTopicBytes() {
           java.lang.Object ref = topic_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             topic_ = b;
             return b;
           } else {
    @@ -591,6 +610,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic that snapshots are attached to.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -598,17 +619,18 @@ public java.lang.String getTopic() {
          *
          * string topic = 1;
          */
    -    public Builder setTopic(
    -        java.lang.String value) {
    +    public Builder setTopic(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           topic_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic that snapshots are attached to.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -617,12 +639,14 @@ public Builder setTopic(
          * string topic = 1;
          */
         public Builder clearTopic() {
    -      
    +
           topic_ = getDefaultInstance().getTopic();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic that snapshots are attached to.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -630,20 +654,21 @@ public Builder clearTopic() {
          *
          * string topic = 1;
          */
    -    public Builder setTopicBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setTopicBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           topic_ = value;
           onChanged();
           return this;
         }
     
    -    private int pageSize_ ;
    +    private int pageSize_;
         /**
    +     *
    +     *
          * 
          * Maximum number of snapshot names to return.
          * 
    @@ -654,6 +679,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Maximum number of snapshot names to return.
          * 
    @@ -661,12 +688,14 @@ public int getPageSize() { * int32 page_size = 2; */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Maximum number of snapshot names to return.
          * 
    @@ -674,7 +703,7 @@ public Builder setPageSize(int value) { * int32 page_size = 2; */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -682,6 +711,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * The value returned by the last `ListTopicSnapshotsResponse`; indicates
          * that this is a continuation of a prior `ListTopicSnapshots` call, and
    @@ -693,8 +724,7 @@ public Builder clearPageSize() {
         public java.lang.String getPageToken() {
           java.lang.Object ref = pageToken_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             pageToken_ = s;
             return s;
    @@ -703,6 +733,8 @@ public java.lang.String getPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicSnapshotsResponse`; indicates
          * that this is a continuation of a prior `ListTopicSnapshots` call, and
    @@ -711,13 +743,11 @@ public java.lang.String getPageToken() {
          *
          * string page_token = 3;
          */
    -    public com.google.protobuf.ByteString
    -        getPageTokenBytes() {
    +    public com.google.protobuf.ByteString getPageTokenBytes() {
           java.lang.Object ref = pageToken_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             pageToken_ = b;
             return b;
           } else {
    @@ -725,6 +755,8 @@ public java.lang.String getPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicSnapshotsResponse`; indicates
          * that this is a continuation of a prior `ListTopicSnapshots` call, and
    @@ -733,17 +765,18 @@ public java.lang.String getPageToken() {
          *
          * string page_token = 3;
          */
    -    public Builder setPageToken(
    -        java.lang.String value) {
    +    public Builder setPageToken(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           pageToken_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicSnapshotsResponse`; indicates
          * that this is a continuation of a prior `ListTopicSnapshots` call, and
    @@ -753,12 +786,14 @@ public Builder setPageToken(
          * string page_token = 3;
          */
         public Builder clearPageToken() {
    -      
    +
           pageToken_ = getDefaultInstance().getPageToken();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicSnapshotsResponse`; indicates
          * that this is a continuation of a prior `ListTopicSnapshots` call, and
    @@ -767,20 +802,19 @@ public Builder clearPageToken() {
          *
          * string page_token = 3;
          */
    -    public Builder setPageTokenBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           pageToken_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -790,12 +824,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSnapshotsRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsRequest)
       private static final com.google.pubsub.v1.ListTopicSnapshotsRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSnapshotsRequest();
       }
    @@ -804,16 +838,16 @@ public static com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstance(
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ListTopicSnapshotsRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ListTopicSnapshotsRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ListTopicSnapshotsRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ListTopicSnapshotsRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -828,6 +862,4 @@ public com.google.protobuf.Parser getParserForType()
       public com.google.pubsub.v1.ListTopicSnapshotsRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java
    index ac27aa29ad3c..86c00b81178b 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface ListTopicSnapshotsRequestOrBuilder extends
    +public interface ListTopicSnapshotsRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSnapshotsRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the topic that snapshots are attached to.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -17,6 +20,8 @@ public interface ListTopicSnapshotsRequestOrBuilder extends
        */
       java.lang.String getTopic();
       /**
    +   *
    +   *
        * 
        * The name of the topic that snapshots are attached to.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -24,10 +29,11 @@ public interface ListTopicSnapshotsRequestOrBuilder extends
        *
        * string topic = 1;
        */
    -  com.google.protobuf.ByteString
    -      getTopicBytes();
    +  com.google.protobuf.ByteString getTopicBytes();
     
       /**
    +   *
    +   *
        * 
        * Maximum number of snapshot names to return.
        * 
    @@ -37,6 +43,8 @@ public interface ListTopicSnapshotsRequestOrBuilder extends int getPageSize(); /** + * + * *
        * The value returned by the last `ListTopicSnapshotsResponse`; indicates
        * that this is a continuation of a prior `ListTopicSnapshots` call, and
    @@ -47,6 +55,8 @@ public interface ListTopicSnapshotsRequestOrBuilder extends
        */
       java.lang.String getPageToken();
       /**
    +   *
    +   *
        * 
        * The value returned by the last `ListTopicSnapshotsResponse`; indicates
        * that this is a continuation of a prior `ListTopicSnapshots` call, and
    @@ -55,6 +65,5 @@ public interface ListTopicSnapshotsRequestOrBuilder extends
        *
        * string page_token = 3;
        */
    -  com.google.protobuf.ByteString
    -      getPageTokenBytes();
    +  com.google.protobuf.ByteString getPageTokenBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    index 6fd57022e4a6..b7537b347208 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    @@ -4,6 +4,8 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Response for the `ListTopicSnapshots` method.<br><br>
      * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -13,25 +15,26 @@
      *
      * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse}
      */
    -public  final class ListTopicSnapshotsResponse extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class ListTopicSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsResponse)
         ListTopicSnapshotsResponseOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use ListTopicSnapshotsResponse.newBuilder() to construct.
       private ListTopicSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private ListTopicSnapshotsResponse() {
         snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         nextPageToken_ = "";
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private ListTopicSnapshotsResponse(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -51,35 +54,36 @@ private ListTopicSnapshotsResponse(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            java.lang.String s = input.readStringRequireUtf8();
    -            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
    -              snapshots_ = new com.google.protobuf.LazyStringArrayList();
    -              mutable_bitField0_ |= 0x00000001;
    +          case 10:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
    +                snapshots_ = new com.google.protobuf.LazyStringArrayList();
    +                mutable_bitField0_ |= 0x00000001;
    +              }
    +              snapshots_.add(s);
    +              break;
                 }
    -            snapshots_.add(s);
    -            break;
    -          }
    -          case 18: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 18:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            nextPageToken_ = s;
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +              nextPageToken_ = s;
    +              break;
    +            }
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
             snapshots_ = snapshots_.getUnmodifiableView();
    @@ -88,34 +92,40 @@ private ListTopicSnapshotsResponse(
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.ListTopicSnapshotsResponse.class, com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class);
    +            com.google.pubsub.v1.ListTopicSnapshotsResponse.class,
    +            com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class);
       }
     
       private int bitField0_;
       public static final int SNAPSHOTS_FIELD_NUMBER = 1;
       private com.google.protobuf.LazyStringList snapshots_;
       /**
    +   *
    +   *
        * 
        * The names of the snapshots that match the request.
        * 
    * * repeated string snapshots = 1; */ - public com.google.protobuf.ProtocolStringList - getSnapshotsList() { + public com.google.protobuf.ProtocolStringList getSnapshotsList() { return snapshots_; } /** + * + * *
        * The names of the snapshots that match the request.
        * 
    @@ -126,6 +136,8 @@ public int getSnapshotsCount() { return snapshots_.size(); } /** + * + * *
        * The names of the snapshots that match the request.
        * 
    @@ -136,20 +148,23 @@ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } /** + * + * *
        * The names of the snapshots that match the request.
        * 
    * * repeated string snapshots = 1; */ - public com.google.protobuf.ByteString - getSnapshotsBytes(int index) { + public com.google.protobuf.ByteString getSnapshotsBytes(int index) { return snapshots_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
        * If not empty, indicates that there may be more snapshots that match
        * the request; this value should be passed in a new
    @@ -163,14 +178,15 @@ public java.lang.String getNextPageToken() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           nextPageToken_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * If not empty, indicates that there may be more snapshots that match
        * the request; this value should be passed in a new
    @@ -179,13 +195,11 @@ public java.lang.String getNextPageToken() {
        *
        * string next_page_token = 2;
        */
    -  public com.google.protobuf.ByteString
    -      getNextPageTokenBytes() {
    +  public com.google.protobuf.ByteString getNextPageTokenBytes() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           nextPageToken_ = b;
           return b;
         } else {
    @@ -194,6 +208,7 @@ public java.lang.String getNextPageToken() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -205,8 +220,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < snapshots_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshots_.getRaw(i));
         }
    @@ -241,18 +255,17 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ListTopicSnapshotsResponse)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.ListTopicSnapshotsResponse other = (com.google.pubsub.v1.ListTopicSnapshotsResponse) obj;
    +    com.google.pubsub.v1.ListTopicSnapshotsResponse other =
    +        (com.google.pubsub.v1.ListTopicSnapshotsResponse) obj;
     
         boolean result = true;
    -    result = result && getSnapshotsList()
    -        .equals(other.getSnapshotsList());
    -    result = result && getNextPageToken()
    -        .equals(other.getNextPageToken());
    +    result = result && getSnapshotsList().equals(other.getSnapshotsList());
    +    result = result && getNextPageToken().equals(other.getNextPageToken());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -275,97 +288,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ListTopicSnapshotsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Response for the `ListTopicSnapshots` method.<br><br>
        * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -375,21 +395,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSnapshotsResponse)
           com.google.pubsub.v1.ListTopicSnapshotsResponseOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.ListTopicSnapshotsResponse.class, com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class);
    +              com.google.pubsub.v1.ListTopicSnapshotsResponse.class,
    +              com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.ListTopicSnapshotsResponse.newBuilder()
    @@ -397,16 +419,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -418,9 +439,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor;
         }
     
         @java.lang.Override
    @@ -439,7 +460,8 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() {
    -      com.google.pubsub.v1.ListTopicSnapshotsResponse result = new com.google.pubsub.v1.ListTopicSnapshotsResponse(this);
    +      com.google.pubsub.v1.ListTopicSnapshotsResponse result =
    +          new com.google.pubsub.v1.ListTopicSnapshotsResponse(this);
           int from_bitField0_ = bitField0_;
           int to_bitField0_ = 0;
           if (((bitField0_ & 0x00000001) == 0x00000001)) {
    @@ -457,38 +479,39 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsResponse) {
    -        return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse)other);
    +        return mergeFrom((com.google.pubsub.v1.ListTopicSnapshotsResponse) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -496,7 +519,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         }
     
         public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) {
    -      if (other == com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance()) return this;
    +      if (other == com.google.pubsub.v1.ListTopicSnapshotsResponse.getDefaultInstance())
    +        return this;
           if (!other.snapshots_.isEmpty()) {
             if (snapshots_.isEmpty()) {
               snapshots_ = other.snapshots_;
    @@ -539,27 +563,33 @@ public Builder mergeFrom(
           }
           return this;
         }
    +
         private int bitField0_;
     
    -    private com.google.protobuf.LazyStringList snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList snapshots_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureSnapshotsIsMutable() {
           if (!((bitField0_ & 0x00000001) == 0x00000001)) {
             snapshots_ = new com.google.protobuf.LazyStringArrayList(snapshots_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * The names of the snapshots that match the request.
          * 
    * * repeated string snapshots = 1; */ - public com.google.protobuf.ProtocolStringList - getSnapshotsList() { + public com.google.protobuf.ProtocolStringList getSnapshotsList() { return snapshots_.getUnmodifiableView(); } /** + * + * *
          * The names of the snapshots that match the request.
          * 
    @@ -570,6 +600,8 @@ public int getSnapshotsCount() { return snapshots_.size(); } /** + * + * *
          * The names of the snapshots that match the request.
          * 
    @@ -580,66 +612,71 @@ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } /** + * + * *
          * The names of the snapshots that match the request.
          * 
    * * repeated string snapshots = 1; */ - public com.google.protobuf.ByteString - getSnapshotsBytes(int index) { + public com.google.protobuf.ByteString getSnapshotsBytes(int index) { return snapshots_.getByteString(index); } /** + * + * *
          * The names of the snapshots that match the request.
          * 
    * * repeated string snapshots = 1; */ - public Builder setSnapshots( - int index, java.lang.String value) { + public Builder setSnapshots(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); snapshots_.set(index, value); onChanged(); return this; } /** + * + * *
          * The names of the snapshots that match the request.
          * 
    * * repeated string snapshots = 1; */ - public Builder addSnapshots( - java.lang.String value) { + public Builder addSnapshots(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSnapshotsIsMutable(); + throw new NullPointerException(); + } + ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); return this; } /** + * + * *
          * The names of the snapshots that match the request.
          * 
    * * repeated string snapshots = 1; */ - public Builder addAllSnapshots( - java.lang.Iterable values) { + public Builder addAllSnapshots(java.lang.Iterable values) { ensureSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, snapshots_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); onChanged(); return this; } /** + * + * *
          * The names of the snapshots that match the request.
          * 
    @@ -653,18 +690,19 @@ public Builder clearSnapshots() { return this; } /** + * + * *
          * The names of the snapshots that match the request.
          * 
    * * repeated string snapshots = 1; */ - public Builder addSnapshotsBytes( - com.google.protobuf.ByteString value) { + public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSnapshotsIsMutable(); snapshots_.add(value); onChanged(); @@ -673,6 +711,8 @@ public Builder addSnapshotsBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
          * If not empty, indicates that there may be more snapshots that match
          * the request; this value should be passed in a new
    @@ -684,8 +724,7 @@ public Builder addSnapshotsBytes(
         public java.lang.String getNextPageToken() {
           java.lang.Object ref = nextPageToken_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             nextPageToken_ = s;
             return s;
    @@ -694,6 +733,8 @@ public java.lang.String getNextPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more snapshots that match
          * the request; this value should be passed in a new
    @@ -702,13 +743,11 @@ public java.lang.String getNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public com.google.protobuf.ByteString
    -        getNextPageTokenBytes() {
    +    public com.google.protobuf.ByteString getNextPageTokenBytes() {
           java.lang.Object ref = nextPageToken_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             nextPageToken_ = b;
             return b;
           } else {
    @@ -716,6 +755,8 @@ public java.lang.String getNextPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more snapshots that match
          * the request; this value should be passed in a new
    @@ -724,17 +765,18 @@ public java.lang.String getNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public Builder setNextPageToken(
    -        java.lang.String value) {
    +    public Builder setNextPageToken(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           nextPageToken_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more snapshots that match
          * the request; this value should be passed in a new
    @@ -744,12 +786,14 @@ public Builder setNextPageToken(
          * string next_page_token = 2;
          */
         public Builder clearNextPageToken() {
    -      
    +
           nextPageToken_ = getDefaultInstance().getNextPageToken();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more snapshots that match
          * the request; this value should be passed in a new
    @@ -758,20 +802,19 @@ public Builder clearNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public Builder setNextPageTokenBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           nextPageToken_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -781,12 +824,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSnapshotsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSnapshotsResponse)
       private static final com.google.pubsub.v1.ListTopicSnapshotsResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSnapshotsResponse();
       }
    @@ -795,16 +838,16 @@ public static com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstance
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ListTopicSnapshotsResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ListTopicSnapshotsResponse(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ListTopicSnapshotsResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ListTopicSnapshotsResponse(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -819,6 +862,4 @@ public com.google.protobuf.Parser getParserForType()
       public com.google.pubsub.v1.ListTopicSnapshotsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java
    index d06df36ea5d7..71e4e0b30159 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java
    @@ -3,20 +3,24 @@
     
     package com.google.pubsub.v1;
     
    -public interface ListTopicSnapshotsResponseOrBuilder extends
    +public interface ListTopicSnapshotsResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSnapshotsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The names of the snapshots that match the request.
        * 
    * * repeated string snapshots = 1; */ - java.util.List - getSnapshotsList(); + java.util.List getSnapshotsList(); /** + * + * *
        * The names of the snapshots that match the request.
        * 
    @@ -25,6 +29,8 @@ public interface ListTopicSnapshotsResponseOrBuilder extends */ int getSnapshotsCount(); /** + * + * *
        * The names of the snapshots that match the request.
        * 
    @@ -33,16 +39,19 @@ public interface ListTopicSnapshotsResponseOrBuilder extends */ java.lang.String getSnapshots(int index); /** + * + * *
        * The names of the snapshots that match the request.
        * 
    * * repeated string snapshots = 1; */ - com.google.protobuf.ByteString - getSnapshotsBytes(int index); + com.google.protobuf.ByteString getSnapshotsBytes(int index); /** + * + * *
        * If not empty, indicates that there may be more snapshots that match
        * the request; this value should be passed in a new
    @@ -53,6 +62,8 @@ public interface ListTopicSnapshotsResponseOrBuilder extends
        */
       java.lang.String getNextPageToken();
       /**
    +   *
    +   *
        * 
        * If not empty, indicates that there may be more snapshots that match
        * the request; this value should be passed in a new
    @@ -61,6 +72,5 @@ public interface ListTopicSnapshotsResponseOrBuilder extends
        *
        * string next_page_token = 2;
        */
    -  com.google.protobuf.ByteString
    -      getNextPageTokenBytes();
    +  com.google.protobuf.ByteString getNextPageTokenBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    index bc420cdc461a..c5b03ad2c5a8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    @@ -4,21 +4,24 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the `ListTopicSubscriptions` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsRequest} */ -public final class ListTopicSubscriptionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTopicSubscriptionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsRequest) ListTopicSubscriptionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTopicSubscriptionsRequest.newBuilder() to construct. private ListTopicSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTopicSubscriptionsRequest() { topic_ = ""; pageSize_ = 0; @@ -26,10 +29,10 @@ private ListTopicSubscriptionsRequest() { } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTopicSubscriptionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,58 +52,64 @@ private ListTopicSubscriptionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + topic_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, + com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** + * + * *
        * The name of the topic that subscriptions are attached to.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -113,14 +122,15 @@ public java.lang.String getTopic() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           topic_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the topic that subscriptions are attached to.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -128,13 +138,11 @@ public java.lang.String getTopic() {
        *
        * string topic = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getTopicBytes() {
    +  public com.google.protobuf.ByteString getTopicBytes() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           topic_ = b;
           return b;
         } else {
    @@ -145,6 +153,8 @@ public java.lang.String getTopic() {
       public static final int PAGE_SIZE_FIELD_NUMBER = 2;
       private int pageSize_;
       /**
    +   *
    +   *
        * 
        * Maximum number of subscription names to return.
        * 
    @@ -158,6 +168,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
        * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
        * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    @@ -171,14 +183,15 @@ public java.lang.String getPageToken() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           pageToken_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
        * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    @@ -187,13 +200,11 @@ public java.lang.String getPageToken() {
        *
        * string page_token = 3;
        */
    -  public com.google.protobuf.ByteString
    -      getPageTokenBytes() {
    +  public com.google.protobuf.ByteString getPageTokenBytes() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           pageToken_ = b;
           return b;
         } else {
    @@ -202,6 +213,7 @@ public java.lang.String getPageToken() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -213,8 +225,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getTopicBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
    @@ -237,8 +248,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
         }
         if (pageSize_ != 0) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeInt32Size(2, pageSize_);
    +      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
         }
         if (!getPageTokenBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
    @@ -251,20 +261,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ListTopicSubscriptionsRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.ListTopicSubscriptionsRequest other = (com.google.pubsub.v1.ListTopicSubscriptionsRequest) obj;
    +    com.google.pubsub.v1.ListTopicSubscriptionsRequest other =
    +        (com.google.pubsub.v1.ListTopicSubscriptionsRequest) obj;
     
         boolean result = true;
    -    result = result && getTopic()
    -        .equals(other.getTopic());
    -    result = result && (getPageSize()
    -        == other.getPageSize());
    -    result = result && getPageToken()
    -        .equals(other.getPageToken());
    +    result = result && getTopic().equals(other.getTopic());
    +    result = result && (getPageSize() == other.getPageSize());
    +    result = result && getPageToken().equals(other.getPageToken());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -288,117 +296,126 @@ public int hashCode() {
       }
     
       public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(
    -      java.nio.ByteBuffer data)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the `ListTopicSubscriptions` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSubscriptionsRequest) com.google.pubsub.v1.ListTopicSubscriptionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, + com.google.pubsub.v1.ListTopicSubscriptionsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicSubscriptionsRequest.newBuilder() @@ -406,16 +423,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +445,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override @@ -450,7 +466,8 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { - com.google.pubsub.v1.ListTopicSubscriptionsRequest result = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); + com.google.pubsub.v1.ListTopicSubscriptionsRequest result = + new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); result.topic_ = topic_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -462,38 +479,39 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsRequest) other); } else { super.mergeFrom(other); return this; @@ -501,7 +519,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsRequest other) { - if (other == com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance()) return this; + if (other == com.google.pubsub.v1.ListTopicSubscriptionsRequest.getDefaultInstance()) + return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; onChanged(); @@ -532,7 +551,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.pubsub.v1.ListTopicSubscriptionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.pubsub.v1.ListTopicSubscriptionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -544,6 +564,8 @@ public Builder mergeFrom( private java.lang.Object topic_ = ""; /** + * + * *
          * The name of the topic that subscriptions are attached to.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -554,8 +576,7 @@ public Builder mergeFrom(
         public java.lang.String getTopic() {
           java.lang.Object ref = topic_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             topic_ = s;
             return s;
    @@ -564,6 +585,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic that subscriptions are attached to.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -571,13 +594,11 @@ public java.lang.String getTopic() {
          *
          * string topic = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getTopicBytes() {
    +    public com.google.protobuf.ByteString getTopicBytes() {
           java.lang.Object ref = topic_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             topic_ = b;
             return b;
           } else {
    @@ -585,6 +606,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic that subscriptions are attached to.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -592,17 +615,18 @@ public java.lang.String getTopic() {
          *
          * string topic = 1;
          */
    -    public Builder setTopic(
    -        java.lang.String value) {
    +    public Builder setTopic(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           topic_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic that subscriptions are attached to.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -611,12 +635,14 @@ public Builder setTopic(
          * string topic = 1;
          */
         public Builder clearTopic() {
    -      
    +
           topic_ = getDefaultInstance().getTopic();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic that subscriptions are attached to.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -624,20 +650,21 @@ public Builder clearTopic() {
          *
          * string topic = 1;
          */
    -    public Builder setTopicBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setTopicBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           topic_ = value;
           onChanged();
           return this;
         }
     
    -    private int pageSize_ ;
    +    private int pageSize_;
         /**
    +     *
    +     *
          * 
          * Maximum number of subscription names to return.
          * 
    @@ -648,6 +675,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Maximum number of subscription names to return.
          * 
    @@ -655,12 +684,14 @@ public int getPageSize() { * int32 page_size = 2; */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Maximum number of subscription names to return.
          * 
    @@ -668,7 +699,7 @@ public Builder setPageSize(int value) { * int32 page_size = 2; */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -676,6 +707,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
          * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    @@ -687,8 +720,7 @@ public Builder clearPageSize() {
         public java.lang.String getPageToken() {
           java.lang.Object ref = pageToken_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             pageToken_ = s;
             return s;
    @@ -697,6 +729,8 @@ public java.lang.String getPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
          * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    @@ -705,13 +739,11 @@ public java.lang.String getPageToken() {
          *
          * string page_token = 3;
          */
    -    public com.google.protobuf.ByteString
    -        getPageTokenBytes() {
    +    public com.google.protobuf.ByteString getPageTokenBytes() {
           java.lang.Object ref = pageToken_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             pageToken_ = b;
             return b;
           } else {
    @@ -719,6 +751,8 @@ public java.lang.String getPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
          * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    @@ -727,17 +761,18 @@ public java.lang.String getPageToken() {
          *
          * string page_token = 3;
          */
    -    public Builder setPageToken(
    -        java.lang.String value) {
    +    public Builder setPageToken(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           pageToken_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
          * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    @@ -747,12 +782,14 @@ public Builder setPageToken(
          * string page_token = 3;
          */
         public Builder clearPageToken() {
    -      
    +
           pageToken_ = getDefaultInstance().getPageToken();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
          * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    @@ -761,20 +798,19 @@ public Builder clearPageToken() {
          *
          * string page_token = 3;
          */
    -    public Builder setPageTokenBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           pageToken_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -784,12 +820,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSubscriptionsRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsRequest)
       private static final com.google.pubsub.v1.ListTopicSubscriptionsRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSubscriptionsRequest();
       }
    @@ -798,16 +834,16 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInsta
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ListTopicSubscriptionsRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ListTopicSubscriptionsRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ListTopicSubscriptionsRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ListTopicSubscriptionsRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -822,6 +858,4 @@ public com.google.protobuf.Parser getParserForTyp
       public com.google.pubsub.v1.ListTopicSubscriptionsRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java
    index 9debee6dd6e5..37b11a5d0359 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface ListTopicSubscriptionsRequestOrBuilder extends
    +public interface ListTopicSubscriptionsRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSubscriptionsRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the topic that subscriptions are attached to.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -17,6 +20,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends
        */
       java.lang.String getTopic();
       /**
    +   *
    +   *
        * 
        * The name of the topic that subscriptions are attached to.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -24,10 +29,11 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends
        *
        * string topic = 1;
        */
    -  com.google.protobuf.ByteString
    -      getTopicBytes();
    +  com.google.protobuf.ByteString getTopicBytes();
     
       /**
    +   *
    +   *
        * 
        * Maximum number of subscription names to return.
        * 
    @@ -37,6 +43,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends int getPageSize(); /** + * + * *
        * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
        * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    @@ -47,6 +55,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends
        */
       java.lang.String getPageToken();
       /**
    +   *
    +   *
        * 
        * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
        * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    @@ -55,6 +65,5 @@ public interface ListTopicSubscriptionsRequestOrBuilder extends
        *
        * string page_token = 3;
        */
    -  com.google.protobuf.ByteString
    -      getPageTokenBytes();
    +  com.google.protobuf.ByteString getPageTokenBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    index a25a85049c2f..f3dc395a3deb 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    @@ -4,31 +4,35 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Response for the `ListTopicSubscriptions` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsResponse} */ -public final class ListTopicSubscriptionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTopicSubscriptionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsResponse) ListTopicSubscriptionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTopicSubscriptionsResponse.newBuilder() to construct. - private ListTopicSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTopicSubscriptionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTopicSubscriptionsResponse() { subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextPageToken_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTopicSubscriptionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -48,35 +52,36 @@ private ListTopicSubscriptionsResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - subscriptions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + subscriptions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subscriptions_.add(s); + break; } - subscriptions_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { subscriptions_ = subscriptions_.getUnmodifiableView(); @@ -85,34 +90,40 @@ private ListTopicSubscriptionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, + com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); } private int bitField0_; public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList subscriptions_; /** + * + * *
        * The names of the subscriptions that match the request.
        * 
    * * repeated string subscriptions = 1; */ - public com.google.protobuf.ProtocolStringList - getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList getSubscriptionsList() { return subscriptions_; } /** + * + * *
        * The names of the subscriptions that match the request.
        * 
    @@ -123,6 +134,8 @@ public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
        * The names of the subscriptions that match the request.
        * 
    @@ -133,20 +146,23 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
        * The names of the subscriptions that match the request.
        * 
    * * repeated string subscriptions = 1; */ - public com.google.protobuf.ByteString - getSubscriptionsBytes(int index) { + public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
        * If not empty, indicates that there may be more subscriptions that match
        * the request; this value should be passed in a new
    @@ -160,14 +176,15 @@ public java.lang.String getNextPageToken() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           nextPageToken_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * If not empty, indicates that there may be more subscriptions that match
        * the request; this value should be passed in a new
    @@ -176,13 +193,11 @@ public java.lang.String getNextPageToken() {
        *
        * string next_page_token = 2;
        */
    -  public com.google.protobuf.ByteString
    -      getNextPageTokenBytes() {
    +  public com.google.protobuf.ByteString getNextPageTokenBytes() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           nextPageToken_ = b;
           return b;
         } else {
    @@ -191,6 +206,7 @@ public java.lang.String getNextPageToken() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -202,8 +218,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < subscriptions_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscriptions_.getRaw(i));
         }
    @@ -238,18 +253,17 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ListTopicSubscriptionsResponse)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.ListTopicSubscriptionsResponse other = (com.google.pubsub.v1.ListTopicSubscriptionsResponse) obj;
    +    com.google.pubsub.v1.ListTopicSubscriptionsResponse other =
    +        (com.google.pubsub.v1.ListTopicSubscriptionsResponse) obj;
     
         boolean result = true;
    -    result = result && getSubscriptionsList()
    -        .equals(other.getSubscriptionsList());
    -    result = result && getNextPageToken()
    -        .equals(other.getNextPageToken());
    +    result = result && getSubscriptionsList().equals(other.getSubscriptionsList());
    +    result = result && getNextPageToken().equals(other.getNextPageToken());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -273,117 +287,126 @@ public int hashCode() {
       }
     
       public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(
    -      java.nio.ByteBuffer data)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    +      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ListTopicSubscriptionsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Response for the `ListTopicSubscriptions` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSubscriptionsResponse) com.google.pubsub.v1.ListTopicSubscriptionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); + com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, + com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicSubscriptionsResponse.newBuilder() @@ -391,16 +414,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +434,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override @@ -433,7 +455,8 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { - com.google.pubsub.v1.ListTopicSubscriptionsResponse result = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); + com.google.pubsub.v1.ListTopicSubscriptionsResponse result = + new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { @@ -451,38 +474,39 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListTopicSubscriptionsResponse) other); } else { super.mergeFrom(other); return this; @@ -490,7 +514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsResponse other) { - if (other == com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance()) return this; + if (other == com.google.pubsub.v1.ListTopicSubscriptionsResponse.getDefaultInstance()) + return this; if (!other.subscriptions_.isEmpty()) { if (subscriptions_.isEmpty()) { subscriptions_ = other.subscriptions_; @@ -524,7 +549,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.pubsub.v1.ListTopicSubscriptionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.pubsub.v1.ListTopicSubscriptionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -533,27 +559,33 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList subscriptions_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * The names of the subscriptions that match the request.
          * 
    * * repeated string subscriptions = 1; */ - public com.google.protobuf.ProtocolStringList - getSubscriptionsList() { + public com.google.protobuf.ProtocolStringList getSubscriptionsList() { return subscriptions_.getUnmodifiableView(); } /** + * + * *
          * The names of the subscriptions that match the request.
          * 
    @@ -564,6 +596,8 @@ public int getSubscriptionsCount() { return subscriptions_.size(); } /** + * + * *
          * The names of the subscriptions that match the request.
          * 
    @@ -574,66 +608,71 @@ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } /** + * + * *
          * The names of the subscriptions that match the request.
          * 
    * * repeated string subscriptions = 1; */ - public com.google.protobuf.ByteString - getSubscriptionsBytes(int index) { + public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); } /** + * + * *
          * The names of the subscriptions that match the request.
          * 
    * * repeated string subscriptions = 1; */ - public Builder setSubscriptions( - int index, java.lang.String value) { + public Builder setSubscriptions(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubscriptionsIsMutable(); + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); subscriptions_.set(index, value); onChanged(); return this; } /** + * + * *
          * The names of the subscriptions that match the request.
          * 
    * * repeated string subscriptions = 1; */ - public Builder addSubscriptions( - java.lang.String value) { + public Builder addSubscriptions(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureSubscriptionsIsMutable(); + throw new NullPointerException(); + } + ensureSubscriptionsIsMutable(); subscriptions_.add(value); onChanged(); return this; } /** + * + * *
          * The names of the subscriptions that match the request.
          * 
    * * repeated string subscriptions = 1; */ - public Builder addAllSubscriptions( - java.lang.Iterable values) { + public Builder addAllSubscriptions(java.lang.Iterable values) { ensureSubscriptionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subscriptions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subscriptions_); onChanged(); return this; } /** + * + * *
          * The names of the subscriptions that match the request.
          * 
    @@ -647,18 +686,19 @@ public Builder clearSubscriptions() { return this; } /** + * + * *
          * The names of the subscriptions that match the request.
          * 
    * * repeated string subscriptions = 1; */ - public Builder addSubscriptionsBytes( - com.google.protobuf.ByteString value) { + public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureSubscriptionsIsMutable(); subscriptions_.add(value); onChanged(); @@ -667,6 +707,8 @@ public Builder addSubscriptionsBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
          * If not empty, indicates that there may be more subscriptions that match
          * the request; this value should be passed in a new
    @@ -678,8 +720,7 @@ public Builder addSubscriptionsBytes(
         public java.lang.String getNextPageToken() {
           java.lang.Object ref = nextPageToken_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             nextPageToken_ = s;
             return s;
    @@ -688,6 +729,8 @@ public java.lang.String getNextPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more subscriptions that match
          * the request; this value should be passed in a new
    @@ -696,13 +739,11 @@ public java.lang.String getNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public com.google.protobuf.ByteString
    -        getNextPageTokenBytes() {
    +    public com.google.protobuf.ByteString getNextPageTokenBytes() {
           java.lang.Object ref = nextPageToken_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             nextPageToken_ = b;
             return b;
           } else {
    @@ -710,6 +751,8 @@ public java.lang.String getNextPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more subscriptions that match
          * the request; this value should be passed in a new
    @@ -718,17 +761,18 @@ public java.lang.String getNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public Builder setNextPageToken(
    -        java.lang.String value) {
    +    public Builder setNextPageToken(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           nextPageToken_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more subscriptions that match
          * the request; this value should be passed in a new
    @@ -738,12 +782,14 @@ public Builder setNextPageToken(
          * string next_page_token = 2;
          */
         public Builder clearNextPageToken() {
    -      
    +
           nextPageToken_ = getDefaultInstance().getNextPageToken();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more subscriptions that match
          * the request; this value should be passed in a new
    @@ -752,20 +798,19 @@ public Builder clearNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public Builder setNextPageTokenBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           nextPageToken_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -775,12 +820,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSubscriptionsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicSubscriptionsResponse)
       private static final com.google.pubsub.v1.ListTopicSubscriptionsResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicSubscriptionsResponse();
       }
    @@ -789,16 +834,16 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInst
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ListTopicSubscriptionsResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ListTopicSubscriptionsResponse(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ListTopicSubscriptionsResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ListTopicSubscriptionsResponse(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -813,6 +858,4 @@ public com.google.protobuf.Parser getParserForTy
       public com.google.pubsub.v1.ListTopicSubscriptionsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java
    index 754c921ebd96..045e8cd22ee0 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java
    @@ -3,20 +3,24 @@
     
     package com.google.pubsub.v1;
     
    -public interface ListTopicSubscriptionsResponseOrBuilder extends
    +public interface ListTopicSubscriptionsResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSubscriptionsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The names of the subscriptions that match the request.
        * 
    * * repeated string subscriptions = 1; */ - java.util.List - getSubscriptionsList(); + java.util.List getSubscriptionsList(); /** + * + * *
        * The names of the subscriptions that match the request.
        * 
    @@ -25,6 +29,8 @@ public interface ListTopicSubscriptionsResponseOrBuilder extends */ int getSubscriptionsCount(); /** + * + * *
        * The names of the subscriptions that match the request.
        * 
    @@ -33,16 +39,19 @@ public interface ListTopicSubscriptionsResponseOrBuilder extends */ java.lang.String getSubscriptions(int index); /** + * + * *
        * The names of the subscriptions that match the request.
        * 
    * * repeated string subscriptions = 1; */ - com.google.protobuf.ByteString - getSubscriptionsBytes(int index); + com.google.protobuf.ByteString getSubscriptionsBytes(int index); /** + * + * *
        * If not empty, indicates that there may be more subscriptions that match
        * the request; this value should be passed in a new
    @@ -53,6 +62,8 @@ public interface ListTopicSubscriptionsResponseOrBuilder extends
        */
       java.lang.String getNextPageToken();
       /**
    +   *
    +   *
        * 
        * If not empty, indicates that there may be more subscriptions that match
        * the request; this value should be passed in a new
    @@ -61,6 +72,5 @@ public interface ListTopicSubscriptionsResponseOrBuilder extends
        *
        * string next_page_token = 2;
        */
    -  com.google.protobuf.ByteString
    -      getNextPageTokenBytes();
    +  com.google.protobuf.ByteString getNextPageTokenBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    index df742350386e..7730d66f0ed8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    @@ -4,21 +4,24 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the `ListTopics` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicsRequest} */ -public final class ListTopicsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTopicsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsRequest) ListTopicsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTopicsRequest.newBuilder() to construct. private ListTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTopicsRequest() { project_ = ""; pageSize_ = 0; @@ -26,10 +29,10 @@ private ListTopicsRequest() { } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTopicsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,58 +52,64 @@ private ListTopicsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsRequest.class, com.google.pubsub.v1.ListTopicsRequest.Builder.class); + com.google.pubsub.v1.ListTopicsRequest.class, + com.google.pubsub.v1.ListTopicsRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; private volatile java.lang.Object project_; /** + * + * *
        * The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
    @@ -113,14 +122,15 @@ public java.lang.String getProject() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           project_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
    @@ -128,13 +138,11 @@ public java.lang.String getProject() {
        *
        * string project = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getProjectBytes() {
    +  public com.google.protobuf.ByteString getProjectBytes() {
         java.lang.Object ref = project_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           project_ = b;
           return b;
         } else {
    @@ -145,6 +153,8 @@ public java.lang.String getProject() {
       public static final int PAGE_SIZE_FIELD_NUMBER = 2;
       private int pageSize_;
       /**
    +   *
    +   *
        * 
        * Maximum number of topics to return.
        * 
    @@ -158,6 +168,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
        * The value returned by the last `ListTopicsResponse`; indicates that this is
        * a continuation of a prior `ListTopics` call, and that the system should
    @@ -171,14 +183,15 @@ public java.lang.String getPageToken() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           pageToken_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The value returned by the last `ListTopicsResponse`; indicates that this is
        * a continuation of a prior `ListTopics` call, and that the system should
    @@ -187,13 +200,11 @@ public java.lang.String getPageToken() {
        *
        * string page_token = 3;
        */
    -  public com.google.protobuf.ByteString
    -      getPageTokenBytes() {
    +  public com.google.protobuf.ByteString getPageTokenBytes() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           pageToken_ = b;
           return b;
         } else {
    @@ -202,6 +213,7 @@ public java.lang.String getPageToken() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -213,8 +225,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getProjectBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_);
         }
    @@ -237,8 +248,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_);
         }
         if (pageSize_ != 0) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeInt32Size(2, pageSize_);
    +      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
         }
         if (!getPageTokenBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
    @@ -251,7 +261,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ListTopicsRequest)) {
           return super.equals(obj);
    @@ -259,12 +269,9 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.ListTopicsRequest other = (com.google.pubsub.v1.ListTopicsRequest) obj;
     
         boolean result = true;
    -    result = result && getProject()
    -        .equals(other.getProject());
    -    result = result && (getPageSize()
    -        == other.getPageSize());
    -    result = result && getPageToken()
    -        .equals(other.getPageToken());
    +    result = result && getProject().equals(other.getProject());
    +    result = result && (getPageSize() == other.getPageSize());
    +    result = result && getPageToken().equals(other.getPageToken());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -287,118 +294,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ListTopicsRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ListTopicsRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicsRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ListTopicsRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the `ListTopics` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicsRequest) com.google.pubsub.v1.ListTopicsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsRequest.class, com.google.pubsub.v1.ListTopicsRequest.Builder.class); + com.google.pubsub.v1.ListTopicsRequest.class, + com.google.pubsub.v1.ListTopicsRequest.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicsRequest.newBuilder() @@ -406,16 +422,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } @java.lang.Override @@ -450,7 +465,8 @@ public com.google.pubsub.v1.ListTopicsRequest build() { @java.lang.Override public com.google.pubsub.v1.ListTopicsRequest buildPartial() { - com.google.pubsub.v1.ListTopicsRequest result = new com.google.pubsub.v1.ListTopicsRequest(this); + com.google.pubsub.v1.ListTopicsRequest result = + new com.google.pubsub.v1.ListTopicsRequest(this); result.project_ = project_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -462,38 +478,39 @@ public com.google.pubsub.v1.ListTopicsRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicsRequest) { - return mergeFrom((com.google.pubsub.v1.ListTopicsRequest)other); + return mergeFrom((com.google.pubsub.v1.ListTopicsRequest) other); } else { super.mergeFrom(other); return this; @@ -544,6 +561,8 @@ public Builder mergeFrom( private java.lang.Object project_ = ""; /** + * + * *
          * The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
    @@ -554,8 +573,7 @@ public Builder mergeFrom(
         public java.lang.String getProject() {
           java.lang.Object ref = project_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             project_ = s;
             return s;
    @@ -564,6 +582,8 @@ public java.lang.String getProject() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
    @@ -571,13 +591,11 @@ public java.lang.String getProject() {
          *
          * string project = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getProjectBytes() {
    +    public com.google.protobuf.ByteString getProjectBytes() {
           java.lang.Object ref = project_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             project_ = b;
             return b;
           } else {
    @@ -585,6 +603,8 @@ public java.lang.String getProject() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
    @@ -592,17 +612,18 @@ public java.lang.String getProject() {
          *
          * string project = 1;
          */
    -    public Builder setProject(
    -        java.lang.String value) {
    +    public Builder setProject(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           project_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
    @@ -611,12 +632,14 @@ public Builder setProject(
          * string project = 1;
          */
         public Builder clearProject() {
    -      
    +
           project_ = getDefaultInstance().getProject();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
    @@ -624,20 +647,21 @@ public Builder clearProject() {
          *
          * string project = 1;
          */
    -    public Builder setProjectBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setProjectBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           project_ = value;
           onChanged();
           return this;
         }
     
    -    private int pageSize_ ;
    +    private int pageSize_;
         /**
    +     *
    +     *
          * 
          * Maximum number of topics to return.
          * 
    @@ -648,6 +672,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
          * Maximum number of topics to return.
          * 
    @@ -655,12 +681,14 @@ public int getPageSize() { * int32 page_size = 2; */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
          * Maximum number of topics to return.
          * 
    @@ -668,7 +696,7 @@ public Builder setPageSize(int value) { * int32 page_size = 2; */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -676,6 +704,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
          * The value returned by the last `ListTopicsResponse`; indicates that this is
          * a continuation of a prior `ListTopics` call, and that the system should
    @@ -687,8 +717,7 @@ public Builder clearPageSize() {
         public java.lang.String getPageToken() {
           java.lang.Object ref = pageToken_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             pageToken_ = s;
             return s;
    @@ -697,6 +726,8 @@ public java.lang.String getPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicsResponse`; indicates that this is
          * a continuation of a prior `ListTopics` call, and that the system should
    @@ -705,13 +736,11 @@ public java.lang.String getPageToken() {
          *
          * string page_token = 3;
          */
    -    public com.google.protobuf.ByteString
    -        getPageTokenBytes() {
    +    public com.google.protobuf.ByteString getPageTokenBytes() {
           java.lang.Object ref = pageToken_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             pageToken_ = b;
             return b;
           } else {
    @@ -719,6 +748,8 @@ public java.lang.String getPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicsResponse`; indicates that this is
          * a continuation of a prior `ListTopics` call, and that the system should
    @@ -727,17 +758,18 @@ public java.lang.String getPageToken() {
          *
          * string page_token = 3;
          */
    -    public Builder setPageToken(
    -        java.lang.String value) {
    +    public Builder setPageToken(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           pageToken_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicsResponse`; indicates that this is
          * a continuation of a prior `ListTopics` call, and that the system should
    @@ -747,12 +779,14 @@ public Builder setPageToken(
          * string page_token = 3;
          */
         public Builder clearPageToken() {
    -      
    +
           pageToken_ = getDefaultInstance().getPageToken();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The value returned by the last `ListTopicsResponse`; indicates that this is
          * a continuation of a prior `ListTopics` call, and that the system should
    @@ -761,20 +795,19 @@ public Builder clearPageToken() {
          *
          * string page_token = 3;
          */
    -    public Builder setPageTokenBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           pageToken_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -784,12 +817,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicsRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsRequest)
       private static final com.google.pubsub.v1.ListTopicsRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicsRequest();
       }
    @@ -798,16 +831,16 @@ public static com.google.pubsub.v1.ListTopicsRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ListTopicsRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ListTopicsRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ListTopicsRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ListTopicsRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -822,6 +855,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.ListTopicsRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java
    index 75029fe67701..673104099066 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface ListTopicsRequestOrBuilder extends
    +public interface ListTopicsRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicsRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
    @@ -17,6 +20,8 @@ public interface ListTopicsRequestOrBuilder extends
        */
       java.lang.String getProject();
       /**
    +   *
    +   *
        * 
        * The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
    @@ -24,10 +29,11 @@ public interface ListTopicsRequestOrBuilder extends
        *
        * string project = 1;
        */
    -  com.google.protobuf.ByteString
    -      getProjectBytes();
    +  com.google.protobuf.ByteString getProjectBytes();
     
       /**
    +   *
    +   *
        * 
        * Maximum number of topics to return.
        * 
    @@ -37,6 +43,8 @@ public interface ListTopicsRequestOrBuilder extends int getPageSize(); /** + * + * *
        * The value returned by the last `ListTopicsResponse`; indicates that this is
        * a continuation of a prior `ListTopics` call, and that the system should
    @@ -47,6 +55,8 @@ public interface ListTopicsRequestOrBuilder extends
        */
       java.lang.String getPageToken();
       /**
    +   *
    +   *
        * 
        * The value returned by the last `ListTopicsResponse`; indicates that this is
        * a continuation of a prior `ListTopics` call, and that the system should
    @@ -55,6 +65,5 @@ public interface ListTopicsRequestOrBuilder extends
        *
        * string page_token = 3;
        */
    -  com.google.protobuf.ByteString
    -      getPageTokenBytes();
    +  com.google.protobuf.ByteString getPageTokenBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    index 73aeea01f63e..e5216615e934 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    @@ -4,31 +4,34 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Response for the `ListTopics` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicsResponse} */ -public final class ListTopicsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListTopicsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsResponse) ListTopicsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListTopicsResponse.newBuilder() to construct. private ListTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListTopicsResponse() { topics_ = java.util.Collections.emptyList(); nextPageToken_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListTopicsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -48,35 +51,36 @@ private ListTopicsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - topics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + topics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + topics_.add( + input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry)); + break; } - topics_.add( - input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { topics_ = java.util.Collections.unmodifiableList(topics_); @@ -85,23 +89,28 @@ private ListTopicsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsResponse.class, com.google.pubsub.v1.ListTopicsResponse.Builder.class); + com.google.pubsub.v1.ListTopicsResponse.class, + com.google.pubsub.v1.ListTopicsResponse.Builder.class); } private int bitField0_; public static final int TOPICS_FIELD_NUMBER = 1; private java.util.List topics_; /** + * + * *
        * The resulting topics.
        * 
    @@ -112,17 +121,20 @@ public java.util.List getTopicsList() { return topics_; } /** + * + * *
        * The resulting topics.
        * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public java.util.List - getTopicsOrBuilderList() { + public java.util.List getTopicsOrBuilderList() { return topics_; } /** + * + * *
        * The resulting topics.
        * 
    @@ -133,6 +145,8 @@ public int getTopicsCount() { return topics_.size(); } /** + * + * *
        * The resulting topics.
        * 
    @@ -143,20 +157,23 @@ public com.google.pubsub.v1.Topic getTopics(int index) { return topics_.get(index); } /** + * + * *
        * The resulting topics.
        * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( - int index) { + public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { return topics_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
        * If not empty, indicates that there may be more topics that match the
        * request; this value should be passed in a new `ListTopicsRequest`.
    @@ -169,14 +186,15 @@ public java.lang.String getNextPageToken() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           nextPageToken_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * If not empty, indicates that there may be more topics that match the
        * request; this value should be passed in a new `ListTopicsRequest`.
    @@ -184,13 +202,11 @@ public java.lang.String getNextPageToken() {
        *
        * string next_page_token = 2;
        */
    -  public com.google.protobuf.ByteString
    -      getNextPageTokenBytes() {
    +  public com.google.protobuf.ByteString getNextPageTokenBytes() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           nextPageToken_ = b;
           return b;
         } else {
    @@ -199,6 +215,7 @@ public java.lang.String getNextPageToken() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -210,8 +227,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < topics_.size(); i++) {
           output.writeMessage(1, topics_.get(i));
         }
    @@ -228,8 +244,7 @@ public int getSerializedSize() {
     
         size = 0;
         for (int i = 0; i < topics_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, topics_.get(i));
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topics_.get(i));
         }
         if (!getNextPageTokenBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
    @@ -242,7 +257,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ListTopicsResponse)) {
           return super.equals(obj);
    @@ -250,10 +265,8 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.ListTopicsResponse other = (com.google.pubsub.v1.ListTopicsResponse) obj;
     
         boolean result = true;
    -    result = result && getTopicsList()
    -        .equals(other.getTopicsList());
    -    result = result && getNextPageToken()
    -        .equals(other.getNextPageToken());
    +    result = result && getTopicsList().equals(other.getTopicsList());
    +    result = result && getNextPageToken().equals(other.getNextPageToken());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -276,118 +289,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ListTopicsResponse parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ListTopicsResponse parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicsResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicsResponse parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicsResponse parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicsResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ListTopicsResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicsResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicsResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ListTopicsResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ListTopicsResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ListTopicsResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Response for the `ListTopics` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicsResponse) com.google.pubsub.v1.ListTopicsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ListTopicsResponse.class, com.google.pubsub.v1.ListTopicsResponse.Builder.class); + com.google.pubsub.v1.ListTopicsResponse.class, + com.google.pubsub.v1.ListTopicsResponse.Builder.class); } // Construct using com.google.pubsub.v1.ListTopicsResponse.newBuilder() @@ -395,17 +417,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTopicsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } @java.lang.Override @@ -442,7 +464,8 @@ public com.google.pubsub.v1.ListTopicsResponse build() { @java.lang.Override public com.google.pubsub.v1.ListTopicsResponse buildPartial() { - com.google.pubsub.v1.ListTopicsResponse result = new com.google.pubsub.v1.ListTopicsResponse(this); + com.google.pubsub.v1.ListTopicsResponse result = + new com.google.pubsub.v1.ListTopicsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (topicsBuilder_ == null) { @@ -464,38 +487,39 @@ public com.google.pubsub.v1.ListTopicsResponse buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicsResponse) { - return mergeFrom((com.google.pubsub.v1.ListTopicsResponse)other); + return mergeFrom((com.google.pubsub.v1.ListTopicsResponse) other); } else { super.mergeFrom(other); return this; @@ -522,9 +546,10 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsResponse other) { topicsBuilder_ = null; topics_ = other.topics_; bitField0_ = (bitField0_ & ~0x00000001); - topicsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTopicsFieldBuilder() : null; + topicsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTopicsFieldBuilder() + : null; } else { topicsBuilder_.addAllMessages(other.topics_); } @@ -562,21 +587,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List topics_ = - java.util.Collections.emptyList(); + private java.util.List topics_ = java.util.Collections.emptyList(); + private void ensureTopicsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { topics_ = new java.util.ArrayList(topics_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicsBuilder_; + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder> + topicsBuilder_; /** + * + * *
          * The resulting topics.
          * 
    @@ -591,6 +622,8 @@ public java.util.List getTopicsList() { } } /** + * + * *
          * The resulting topics.
          * 
    @@ -605,6 +638,8 @@ public int getTopicsCount() { } } /** + * + * *
          * The resulting topics.
          * 
    @@ -619,14 +654,15 @@ public com.google.pubsub.v1.Topic getTopics(int index) { } } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder setTopics( - int index, com.google.pubsub.v1.Topic value) { + public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -640,14 +676,15 @@ public Builder setTopics( return this; } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder setTopics( - int index, com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.set(index, builderForValue.build()); @@ -658,6 +695,8 @@ public Builder setTopics( return this; } /** + * + * *
          * The resulting topics.
          * 
    @@ -678,14 +717,15 @@ public Builder addTopics(com.google.pubsub.v1.Topic value) { return this; } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder addTopics( - int index, com.google.pubsub.v1.Topic value) { + public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -699,14 +739,15 @@ public Builder addTopics( return this; } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder addTopics( - com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(builderForValue.build()); @@ -717,14 +758,15 @@ public Builder addTopics( return this; } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder addTopics( - int index, com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); topics_.add(index, builderForValue.build()); @@ -735,18 +777,18 @@ public Builder addTopics( return this; } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public Builder addAllTopics( - java.lang.Iterable values) { + public Builder addAllTopics(java.lang.Iterable values) { if (topicsBuilder_ == null) { ensureTopicsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, topics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topics_); onChanged(); } else { topicsBuilder_.addAllMessages(values); @@ -754,6 +796,8 @@ public Builder addAllTopics( return this; } /** + * + * *
          * The resulting topics.
          * 
    @@ -771,6 +815,8 @@ public Builder clearTopics() { return this; } /** + * + * *
          * The resulting topics.
          * 
    @@ -788,39 +834,43 @@ public Builder removeTopics(int index) { return this; } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public com.google.pubsub.v1.Topic.Builder getTopicsBuilder( - int index) { + public com.google.pubsub.v1.Topic.Builder getTopicsBuilder(int index) { return getTopicsFieldBuilder().getBuilder(index); } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( - int index) { + public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { if (topicsBuilder_ == null) { - return topics_.get(index); } else { + return topics_.get(index); + } else { return topicsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public java.util.List - getTopicsOrBuilderList() { + public java.util.List getTopicsOrBuilderList() { if (topicsBuilder_ != null) { return topicsBuilder_.getMessageOrBuilderList(); } else { @@ -828,6 +878,8 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( } } /** + * + * *
          * The resulting topics.
          * 
    @@ -835,38 +887,45 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( * repeated .google.pubsub.v1.Topic topics = 1; */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { - return getTopicsFieldBuilder().addBuilder( - com.google.pubsub.v1.Topic.getDefaultInstance()); + return getTopicsFieldBuilder().addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public com.google.pubsub.v1.Topic.Builder addTopicsBuilder( - int index) { - return getTopicsFieldBuilder().addBuilder( - index, com.google.pubsub.v1.Topic.getDefaultInstance()); + public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { + return getTopicsFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.Topic.getDefaultInstance()); } /** + * + * *
          * The resulting topics.
          * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - public java.util.List - getTopicsBuilderList() { + public java.util.List getTopicsBuilderList() { return getTopicsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder> getTopicsFieldBuilder() { if (topicsBuilder_ == null) { - topicsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>( + topicsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder>( topics_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), @@ -878,6 +937,8 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
          * If not empty, indicates that there may be more topics that match the
          * request; this value should be passed in a new `ListTopicsRequest`.
    @@ -888,8 +949,7 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(
         public java.lang.String getNextPageToken() {
           java.lang.Object ref = nextPageToken_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             nextPageToken_ = s;
             return s;
    @@ -898,6 +958,8 @@ public java.lang.String getNextPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more topics that match the
          * request; this value should be passed in a new `ListTopicsRequest`.
    @@ -905,13 +967,11 @@ public java.lang.String getNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public com.google.protobuf.ByteString
    -        getNextPageTokenBytes() {
    +    public com.google.protobuf.ByteString getNextPageTokenBytes() {
           java.lang.Object ref = nextPageToken_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             nextPageToken_ = b;
             return b;
           } else {
    @@ -919,6 +979,8 @@ public java.lang.String getNextPageToken() {
           }
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more topics that match the
          * request; this value should be passed in a new `ListTopicsRequest`.
    @@ -926,17 +988,18 @@ public java.lang.String getNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public Builder setNextPageToken(
    -        java.lang.String value) {
    +    public Builder setNextPageToken(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           nextPageToken_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more topics that match the
          * request; this value should be passed in a new `ListTopicsRequest`.
    @@ -945,12 +1008,14 @@ public Builder setNextPageToken(
          * string next_page_token = 2;
          */
         public Builder clearNextPageToken() {
    -      
    +
           nextPageToken_ = getDefaultInstance().getNextPageToken();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If not empty, indicates that there may be more topics that match the
          * request; this value should be passed in a new `ListTopicsRequest`.
    @@ -958,20 +1023,19 @@ public Builder clearNextPageToken() {
          *
          * string next_page_token = 2;
          */
    -    public Builder setNextPageTokenBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           nextPageToken_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -981,12 +1045,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicsResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListTopicsResponse)
       private static final com.google.pubsub.v1.ListTopicsResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ListTopicsResponse();
       }
    @@ -995,16 +1059,16 @@ public static com.google.pubsub.v1.ListTopicsResponse getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ListTopicsResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ListTopicsResponse(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ListTopicsResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ListTopicsResponse(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1019,6 +1083,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.ListTopicsResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java
    index 55aeecb5fab4..21dec64e2df5 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java
    @@ -3,20 +3,24 @@
     
     package com.google.pubsub.v1;
     
    -public interface ListTopicsResponseOrBuilder extends
    +public interface ListTopicsResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicsResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The resulting topics.
        * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - java.util.List - getTopicsList(); + java.util.List getTopicsList(); /** + * + * *
        * The resulting topics.
        * 
    @@ -25,6 +29,8 @@ public interface ListTopicsResponseOrBuilder extends */ com.google.pubsub.v1.Topic getTopics(int index); /** + * + * *
        * The resulting topics.
        * 
    @@ -33,25 +39,29 @@ public interface ListTopicsResponseOrBuilder extends */ int getTopicsCount(); /** + * + * *
        * The resulting topics.
        * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - java.util.List - getTopicsOrBuilderList(); + java.util.List getTopicsOrBuilderList(); /** + * + * *
        * The resulting topics.
        * 
    * * repeated .google.pubsub.v1.Topic topics = 1; */ - com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder( - int index); + com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index); /** + * + * *
        * If not empty, indicates that there may be more topics that match the
        * request; this value should be passed in a new `ListTopicsRequest`.
    @@ -61,6 +71,8 @@ com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(
        */
       java.lang.String getNextPageToken();
       /**
    +   *
    +   *
        * 
        * If not empty, indicates that there may be more topics that match the
        * request; this value should be passed in a new `ListTopicsRequest`.
    @@ -68,6 +80,5 @@ com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(
        *
        * string next_page_token = 2;
        */
    -  com.google.protobuf.ByteString
    -      getNextPageTokenBytes();
    +  com.google.protobuf.ByteString getNextPageTokenBytes();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    index 75852188aea0..b3c99caeaa13 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    @@ -3,27 +3,26 @@
     
     package com.google.pubsub.v1;
     
    -/**
    - * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy}
    - */
    -public  final class MessageStoragePolicy extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +/** Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} */
    +public final class MessageStoragePolicy extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageStoragePolicy)
         MessageStoragePolicyOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use MessageStoragePolicy.newBuilder() to construct.
       private MessageStoragePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private MessageStoragePolicy() {
         allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private MessageStoragePolicy(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -43,29 +42,29 @@ private MessageStoragePolicy(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            java.lang.String s = input.readStringRequireUtf8();
    -            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
    -              allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList();
    -              mutable_bitField0_ |= 0x00000001;
    +          case 10:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
    +                allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList();
    +                mutable_bitField0_ |= 0x00000001;
    +              }
    +              allowedPersistenceRegions_.add(s);
    +              break;
                 }
    -            allowedPersistenceRegions_.add(s);
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
             allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView();
    @@ -74,22 +73,27 @@ private MessageStoragePolicy(
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.MessageStoragePolicy.class, com.google.pubsub.v1.MessageStoragePolicy.Builder.class);
    +            com.google.pubsub.v1.MessageStoragePolicy.class,
    +            com.google.pubsub.v1.MessageStoragePolicy.Builder.class);
       }
     
       public static final int ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER = 1;
       private com.google.protobuf.LazyStringList allowedPersistenceRegions_;
       /**
    +   *
    +   *
        * 
        * The list of GCP regions where messages that are published to the topic may
        * be persisted in storage. Messages published by publishers running in
    @@ -101,11 +105,12 @@ private MessageStoragePolicy(
        *
        * repeated string allowed_persistence_regions = 1;
        */
    -  public com.google.protobuf.ProtocolStringList
    -      getAllowedPersistenceRegionsList() {
    +  public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() {
         return allowedPersistenceRegions_;
       }
       /**
    +   *
    +   *
        * 
        * The list of GCP regions where messages that are published to the topic may
        * be persisted in storage. Messages published by publishers running in
    @@ -121,6 +126,8 @@ public int getAllowedPersistenceRegionsCount() {
         return allowedPersistenceRegions_.size();
       }
       /**
    +   *
    +   *
        * 
        * The list of GCP regions where messages that are published to the topic may
        * be persisted in storage. Messages published by publishers running in
    @@ -136,6 +143,8 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
         return allowedPersistenceRegions_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * The list of GCP regions where messages that are published to the topic may
        * be persisted in storage. Messages published by publishers running in
    @@ -147,12 +156,12 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
        *
        * repeated string allowed_persistence_regions = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getAllowedPersistenceRegionsBytes(int index) {
    +  public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index) {
         return allowedPersistenceRegions_.getByteString(index);
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -164,10 +173,10 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < allowedPersistenceRegions_.size(); i++) {
    -      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowedPersistenceRegions_.getRaw(i));
    +      com.google.protobuf.GeneratedMessageV3.writeString(
    +          output, 1, allowedPersistenceRegions_.getRaw(i));
         }
         unknownFields.writeTo(output);
       }
    @@ -194,16 +203,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.MessageStoragePolicy)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.MessageStoragePolicy other = (com.google.pubsub.v1.MessageStoragePolicy) obj;
    +    com.google.pubsub.v1.MessageStoragePolicy other =
    +        (com.google.pubsub.v1.MessageStoragePolicy) obj;
     
         boolean result = true;
    -    result = result && getAllowedPersistenceRegionsList()
    -        .equals(other.getAllowedPersistenceRegionsList());
    +    result =
    +        result
    +            && getAllowedPersistenceRegionsList().equals(other.getAllowedPersistenceRegionsList());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -224,114 +235,119 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.MessageStoragePolicy prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
    -  /**
    -   * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy}
    -   */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  /** Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} */
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.MessageStoragePolicy)
           com.google.pubsub.v1.MessageStoragePolicyOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.MessageStoragePolicy.class, com.google.pubsub.v1.MessageStoragePolicy.Builder.class);
    +              com.google.pubsub.v1.MessageStoragePolicy.class,
    +              com.google.pubsub.v1.MessageStoragePolicy.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.MessageStoragePolicy.newBuilder()
    @@ -339,16 +355,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -358,9 +373,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor;
         }
     
         @java.lang.Override
    @@ -379,7 +394,8 @@ public com.google.pubsub.v1.MessageStoragePolicy build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.MessageStoragePolicy buildPartial() {
    -      com.google.pubsub.v1.MessageStoragePolicy result = new com.google.pubsub.v1.MessageStoragePolicy(this);
    +      com.google.pubsub.v1.MessageStoragePolicy result =
    +          new com.google.pubsub.v1.MessageStoragePolicy(this);
           int from_bitField0_ = bitField0_;
           if (((bitField0_ & 0x00000001) == 0x00000001)) {
             allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView();
    @@ -394,38 +410,39 @@ public com.google.pubsub.v1.MessageStoragePolicy buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.MessageStoragePolicy) {
    -        return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy)other);
    +        return mergeFrom((com.google.pubsub.v1.MessageStoragePolicy) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -472,16 +489,22 @@ public Builder mergeFrom(
           }
           return this;
         }
    +
         private int bitField0_;
     
    -    private com.google.protobuf.LazyStringList allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList allowedPersistenceRegions_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAllowedPersistenceRegionsIsMutable() {
           if (!((bitField0_ & 0x00000001) == 0x00000001)) {
    -        allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_);
    +        allowedPersistenceRegions_ =
    +            new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * The list of GCP regions where messages that are published to the topic may
          * be persisted in storage. Messages published by publishers running in
    @@ -493,11 +516,12 @@ private void ensureAllowedPersistenceRegionsIsMutable() {
          *
          * repeated string allowed_persistence_regions = 1;
          */
    -    public com.google.protobuf.ProtocolStringList
    -        getAllowedPersistenceRegionsList() {
    +    public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() {
           return allowedPersistenceRegions_.getUnmodifiableView();
         }
         /**
    +     *
    +     *
          * 
          * The list of GCP regions where messages that are published to the topic may
          * be persisted in storage. Messages published by publishers running in
    @@ -513,6 +537,8 @@ public int getAllowedPersistenceRegionsCount() {
           return allowedPersistenceRegions_.size();
         }
         /**
    +     *
    +     *
          * 
          * The list of GCP regions where messages that are published to the topic may
          * be persisted in storage. Messages published by publishers running in
    @@ -528,6 +554,8 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
           return allowedPersistenceRegions_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * The list of GCP regions where messages that are published to the topic may
          * be persisted in storage. Messages published by publishers running in
    @@ -539,11 +567,12 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
          *
          * repeated string allowed_persistence_regions = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getAllowedPersistenceRegionsBytes(int index) {
    +    public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index) {
           return allowedPersistenceRegions_.getByteString(index);
         }
         /**
    +     *
    +     *
          * 
          * The list of GCP regions where messages that are published to the topic may
          * be persisted in storage. Messages published by publishers running in
    @@ -555,17 +584,18 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
          *
          * repeated string allowed_persistence_regions = 1;
          */
    -    public Builder setAllowedPersistenceRegions(
    -        int index, java.lang.String value) {
    +    public Builder setAllowedPersistenceRegions(int index, java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  ensureAllowedPersistenceRegionsIsMutable();
    +        throw new NullPointerException();
    +      }
    +      ensureAllowedPersistenceRegionsIsMutable();
           allowedPersistenceRegions_.set(index, value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of GCP regions where messages that are published to the topic may
          * be persisted in storage. Messages published by publishers running in
    @@ -577,17 +607,18 @@ public Builder setAllowedPersistenceRegions(
          *
          * repeated string allowed_persistence_regions = 1;
          */
    -    public Builder addAllowedPersistenceRegions(
    -        java.lang.String value) {
    +    public Builder addAllowedPersistenceRegions(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  ensureAllowedPersistenceRegionsIsMutable();
    +        throw new NullPointerException();
    +      }
    +      ensureAllowedPersistenceRegionsIsMutable();
           allowedPersistenceRegions_.add(value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of GCP regions where messages that are published to the topic may
          * be persisted in storage. Messages published by publishers running in
    @@ -599,15 +630,15 @@ public Builder addAllowedPersistenceRegions(
          *
          * repeated string allowed_persistence_regions = 1;
          */
    -    public Builder addAllAllowedPersistenceRegions(
    -        java.lang.Iterable values) {
    +    public Builder addAllAllowedPersistenceRegions(java.lang.Iterable values) {
           ensureAllowedPersistenceRegionsIsMutable();
    -      com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -          values, allowedPersistenceRegions_);
    +      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedPersistenceRegions_);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of GCP regions where messages that are published to the topic may
          * be persisted in storage. Messages published by publishers running in
    @@ -626,6 +657,8 @@ public Builder clearAllowedPersistenceRegions() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of GCP regions where messages that are published to the topic may
          * be persisted in storage. Messages published by publishers running in
    @@ -637,20 +670,19 @@ public Builder clearAllowedPersistenceRegions() {
          *
          * repeated string allowed_persistence_regions = 1;
          */
    -    public Builder addAllowedPersistenceRegionsBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder addAllowedPersistenceRegionsBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
           ensureAllowedPersistenceRegionsIsMutable();
           allowedPersistenceRegions_.add(value);
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -660,12 +692,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.MessageStoragePolicy)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.MessageStoragePolicy)
       private static final com.google.pubsub.v1.MessageStoragePolicy DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.MessageStoragePolicy();
       }
    @@ -674,16 +706,16 @@ public static com.google.pubsub.v1.MessageStoragePolicy getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public MessageStoragePolicy parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new MessageStoragePolicy(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public MessageStoragePolicy parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new MessageStoragePolicy(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -698,6 +730,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.MessageStoragePolicy getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java
    index fb6b2f8bded9..918ef490c636 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface MessageStoragePolicyOrBuilder extends
    +public interface MessageStoragePolicyOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.MessageStoragePolicy)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The list of GCP regions where messages that are published to the topic may
        * be persisted in storage. Messages published by publishers running in
    @@ -19,9 +22,10 @@ public interface MessageStoragePolicyOrBuilder extends
        *
        * repeated string allowed_persistence_regions = 1;
        */
    -  java.util.List
    -      getAllowedPersistenceRegionsList();
    +  java.util.List getAllowedPersistenceRegionsList();
       /**
    +   *
    +   *
        * 
        * The list of GCP regions where messages that are published to the topic may
        * be persisted in storage. Messages published by publishers running in
    @@ -35,6 +39,8 @@ public interface MessageStoragePolicyOrBuilder extends
        */
       int getAllowedPersistenceRegionsCount();
       /**
    +   *
    +   *
        * 
        * The list of GCP regions where messages that are published to the topic may
        * be persisted in storage. Messages published by publishers running in
    @@ -48,6 +54,8 @@ public interface MessageStoragePolicyOrBuilder extends
        */
       java.lang.String getAllowedPersistenceRegions(int index);
       /**
    +   *
    +   *
        * 
        * The list of GCP regions where messages that are published to the topic may
        * be persisted in storage. Messages published by publishers running in
    @@ -59,6 +67,5 @@ public interface MessageStoragePolicyOrBuilder extends
        *
        * repeated string allowed_persistence_regions = 1;
        */
    -  com.google.protobuf.ByteString
    -      getAllowedPersistenceRegionsBytes(int index);
    +  com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index);
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    index e5b5f07c18ea..8ee933d50f23 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    @@ -4,21 +4,24 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the ModifyAckDeadline method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ModifyAckDeadlineRequest} */ -public final class ModifyAckDeadlineRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ModifyAckDeadlineRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyAckDeadlineRequest) ModifyAckDeadlineRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ModifyAckDeadlineRequest.newBuilder() to construct. private ModifyAckDeadlineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ModifyAckDeadlineRequest() { subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,10 +29,10 @@ private ModifyAckDeadlineRequest() { } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ModifyAckDeadlineRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,40 +52,41 @@ private ModifyAckDeadlineRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 24: { - - ackDeadlineSeconds_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + subscription_ = s; + break; } - ackIds_.add(s); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + ackDeadlineSeconds_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + ackIds_.add(s); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ackIds_ = ackIds_.getUnmodifiableView(); @@ -91,23 +95,28 @@ private ModifyAckDeadlineRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyAckDeadlineRequest.class, com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); + com.google.pubsub.v1.ModifyAckDeadlineRequest.class, + com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); } private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** + * + * *
        * The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -120,14 +129,15 @@ public java.lang.String getSubscription() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           subscription_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -135,13 +145,11 @@ public java.lang.String getSubscription() {
        *
        * string subscription = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getSubscriptionBytes() {
    +  public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           subscription_ = b;
           return b;
         } else {
    @@ -152,17 +160,20 @@ public java.lang.String getSubscription() {
       public static final int ACK_IDS_FIELD_NUMBER = 4;
       private com.google.protobuf.LazyStringList ackIds_;
       /**
    +   *
    +   *
        * 
        * List of acknowledgment IDs.
        * 
    * * repeated string ack_ids = 4; */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } /** + * + * *
        * List of acknowledgment IDs.
        * 
    @@ -173,6 +184,8 @@ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
        * List of acknowledgment IDs.
        * 
    @@ -183,20 +196,23 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
        * List of acknowledgment IDs.
        * 
    * * repeated string ack_ids = 4; */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 3; private int ackDeadlineSeconds_; /** + * + * *
        * 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
    @@ -214,6 +230,7 @@ public int getAckDeadlineSeconds() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -225,8 +242,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getSubscriptionBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
    @@ -249,8 +265,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         if (ackDeadlineSeconds_ != 0) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeInt32Size(3, ackDeadlineSeconds_);
    +      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, ackDeadlineSeconds_);
         }
         {
           int dataSize = 0;
    @@ -268,20 +283,18 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ModifyAckDeadlineRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.ModifyAckDeadlineRequest other = (com.google.pubsub.v1.ModifyAckDeadlineRequest) obj;
    +    com.google.pubsub.v1.ModifyAckDeadlineRequest other =
    +        (com.google.pubsub.v1.ModifyAckDeadlineRequest) obj;
     
         boolean result = true;
    -    result = result && getSubscription()
    -        .equals(other.getSubscription());
    -    result = result && getAckIdsList()
    -        .equals(other.getAckIdsList());
    -    result = result && (getAckDeadlineSeconds()
    -        == other.getAckDeadlineSeconds());
    +    result = result && getSubscription().equals(other.getSubscription());
    +    result = result && getAckIdsList().equals(other.getAckIdsList());
    +    result = result && (getAckDeadlineSeconds() == other.getAckDeadlineSeconds());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -306,118 +319,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ModifyAckDeadlineRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the ModifyAckDeadline method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ModifyAckDeadlineRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ModifyAckDeadlineRequest) com.google.pubsub.v1.ModifyAckDeadlineRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyAckDeadlineRequest.class, com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); + com.google.pubsub.v1.ModifyAckDeadlineRequest.class, + com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); } // Construct using com.google.pubsub.v1.ModifyAckDeadlineRequest.newBuilder() @@ -425,16 +447,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } @java.lang.Override @@ -469,7 +490,8 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest build() { @java.lang.Override public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { - com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); + com.google.pubsub.v1.ModifyAckDeadlineRequest result = + new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.subscription_ = subscription_; @@ -488,38 +510,39 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ModifyAckDeadlineRequest) { - return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest)other); + return mergeFrom((com.google.pubsub.v1.ModifyAckDeadlineRequest) other); } else { super.mergeFrom(other); return this; @@ -573,10 +596,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object subscription_ = ""; /** + * + * *
          * The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -587,8 +613,7 @@ public Builder mergeFrom(
         public java.lang.String getSubscription() {
           java.lang.Object ref = subscription_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             subscription_ = s;
             return s;
    @@ -597,6 +622,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -604,13 +631,11 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getSubscriptionBytes() {
    +    public com.google.protobuf.ByteString getSubscriptionBytes() {
           java.lang.Object ref = subscription_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             subscription_ = b;
             return b;
           } else {
    @@ -618,6 +643,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -625,17 +652,18 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscription(
    -        java.lang.String value) {
    +    public Builder setSubscription(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           subscription_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -644,12 +672,14 @@ public Builder setSubscription(
          * string subscription = 1;
          */
         public Builder clearSubscription() {
    -      
    +
           subscription_ = getDefaultInstance().getSubscription();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -657,37 +687,41 @@ public Builder clearSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscriptionBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           subscription_ = value;
           onChanged();
           return this;
         }
     
    -    private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList ackIds_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAckIdsIsMutable() {
           if (!((bitField0_ & 0x00000002) == 0x00000002)) {
             ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
             bitField0_ |= 0x00000002;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgment IDs.
          * 
    * * repeated string ack_ids = 4; */ - public com.google.protobuf.ProtocolStringList - getAckIdsList() { + public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_.getUnmodifiableView(); } /** + * + * *
          * List of acknowledgment IDs.
          * 
    @@ -698,6 +732,8 @@ public int getAckIdsCount() { return ackIds_.size(); } /** + * + * *
          * List of acknowledgment IDs.
          * 
    @@ -708,66 +744,71 @@ public java.lang.String getAckIds(int index) { return ackIds_.get(index); } /** + * + * *
          * List of acknowledgment IDs.
          * 
    * * repeated string ack_ids = 4; */ - public com.google.protobuf.ByteString - getAckIdsBytes(int index) { + public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } /** + * + * *
          * List of acknowledgment IDs.
          * 
    * * repeated string ack_ids = 4; */ - public Builder setAckIds( - int index, java.lang.String value) { + public Builder setAckIds(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.set(index, value); onChanged(); return this; } /** + * + * *
          * List of acknowledgment IDs.
          * 
    * * repeated string ack_ids = 4; */ - public Builder addAckIds( - java.lang.String value) { + public Builder addAckIds(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAckIdsIsMutable(); + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } /** + * + * *
          * List of acknowledgment IDs.
          * 
    * * repeated string ack_ids = 4; */ - public Builder addAllAckIds( - java.lang.Iterable values) { + public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ackIds_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); onChanged(); return this; } /** + * + * *
          * List of acknowledgment IDs.
          * 
    @@ -781,26 +822,29 @@ public Builder clearAckIds() { return this; } /** + * + * *
          * List of acknowledgment IDs.
          * 
    * * repeated string ack_ids = 4; */ - public Builder addAckIdsBytes( - com.google.protobuf.ByteString value) { + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); onChanged(); return this; } - private int ackDeadlineSeconds_ ; + private int ackDeadlineSeconds_; /** + * + * *
          * 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
    @@ -817,6 +861,8 @@ public int getAckDeadlineSeconds() {
           return ackDeadlineSeconds_;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -830,12 +876,14 @@ public int getAckDeadlineSeconds() {
          * int32 ack_deadline_seconds = 3;
          */
         public Builder setAckDeadlineSeconds(int value) {
    -      
    +
           ackDeadlineSeconds_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -849,14 +897,14 @@ public Builder setAckDeadlineSeconds(int value) {
          * int32 ack_deadline_seconds = 3;
          */
         public Builder clearAckDeadlineSeconds() {
    -      
    +
           ackDeadlineSeconds_ = 0;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -866,12 +914,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyAckDeadlineRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyAckDeadlineRequest)
       private static final com.google.pubsub.v1.ModifyAckDeadlineRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ModifyAckDeadlineRequest();
       }
    @@ -880,16 +928,16 @@ public static com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ModifyAckDeadlineRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ModifyAckDeadlineRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ModifyAckDeadlineRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ModifyAckDeadlineRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -904,6 +952,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.ModifyAckDeadlineRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java
    index d1deaa86303a..6fa5d98a3ae2 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface ModifyAckDeadlineRequestOrBuilder extends
    +public interface ModifyAckDeadlineRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ModifyAckDeadlineRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -17,6 +20,8 @@ public interface ModifyAckDeadlineRequestOrBuilder extends
        */
       java.lang.String getSubscription();
       /**
    +   *
    +   *
        * 
        * The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -24,19 +29,21 @@ public interface ModifyAckDeadlineRequestOrBuilder extends
        *
        * string subscription = 1;
        */
    -  com.google.protobuf.ByteString
    -      getSubscriptionBytes();
    +  com.google.protobuf.ByteString getSubscriptionBytes();
     
       /**
    +   *
    +   *
        * 
        * List of acknowledgment IDs.
        * 
    * * repeated string ack_ids = 4; */ - java.util.List - getAckIdsList(); + java.util.List getAckIdsList(); /** + * + * *
        * List of acknowledgment IDs.
        * 
    @@ -45,6 +52,8 @@ public interface ModifyAckDeadlineRequestOrBuilder extends */ int getAckIdsCount(); /** + * + * *
        * List of acknowledgment IDs.
        * 
    @@ -53,16 +62,19 @@ public interface ModifyAckDeadlineRequestOrBuilder extends */ java.lang.String getAckIds(int index); /** + * + * *
        * List of acknowledgment IDs.
        * 
    * * repeated string ack_ids = 4; */ - com.google.protobuf.ByteString - getAckIdsBytes(int index); + com.google.protobuf.ByteString getAckIdsBytes(int index); /** + * + * *
        * 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
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java
    index bbc1ae913421..e541f2ae1523 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java
    @@ -4,30 +4,33 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the ModifyPushConfig method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest} */ -public final class ModifyPushConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ModifyPushConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyPushConfigRequest) ModifyPushConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ModifyPushConfigRequest.newBuilder() to construct. private ModifyPushConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ModifyPushConfigRequest() { subscription_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ModifyPushConfigRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,60 +50,67 @@ private ModifyPushConfigRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 18: { - com.google.pubsub.v1.PushConfig.Builder subBuilder = null; - if (pushConfig_ != null) { - subBuilder = pushConfig_.toBuilder(); + subscription_ = s; + break; } - pushConfig_ = input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pushConfig_); - pushConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.pubsub.v1.PushConfig.Builder subBuilder = null; + if (pushConfig_ != null) { + subBuilder = pushConfig_.toBuilder(); + } + pushConfig_ = + input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushConfig_); + pushConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyPushConfigRequest.class, com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); + com.google.pubsub.v1.ModifyPushConfigRequest.class, + com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** + * + * *
        * The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -113,14 +123,15 @@ public java.lang.String getSubscription() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           subscription_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -128,13 +139,11 @@ public java.lang.String getSubscription() {
        *
        * string subscription = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getSubscriptionBytes() {
    +  public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           subscription_ = b;
           return b;
         } else {
    @@ -145,6 +154,8 @@ public java.lang.String getSubscription() {
       public static final int PUSH_CONFIG_FIELD_NUMBER = 2;
       private com.google.pubsub.v1.PushConfig pushConfig_;
       /**
    +   *
    +   *
        * 
        * The push configuration for future deliveries.
        * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -159,6 +170,8 @@ public boolean hasPushConfig() {
         return pushConfig_ != null;
       }
       /**
    +   *
    +   *
        * 
        * The push configuration for future deliveries.
        * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -173,6 +186,8 @@ public com.google.pubsub.v1.PushConfig getPushConfig() {
         return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_;
       }
       /**
    +   *
    +   *
        * 
        * The push configuration for future deliveries.
        * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -188,6 +203,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -199,8 +215,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getSubscriptionBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
    @@ -220,8 +235,7 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         if (pushConfig_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, getPushConfig());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPushConfig());
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -231,20 +245,19 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.ModifyPushConfigRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.ModifyPushConfigRequest other = (com.google.pubsub.v1.ModifyPushConfigRequest) obj;
    +    com.google.pubsub.v1.ModifyPushConfigRequest other =
    +        (com.google.pubsub.v1.ModifyPushConfigRequest) obj;
     
         boolean result = true;
    -    result = result && getSubscription()
    -        .equals(other.getSubscription());
    +    result = result && getSubscription().equals(other.getSubscription());
         result = result && (hasPushConfig() == other.hasPushConfig());
         if (hasPushConfig()) {
    -      result = result && getPushConfig()
    -          .equals(other.getPushConfig());
    +      result = result && getPushConfig().equals(other.getPushConfig());
         }
         result = result && unknownFields.equals(other.unknownFields);
         return result;
    @@ -268,118 +281,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.ModifyPushConfigRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the ModifyPushConfig method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ModifyPushConfigRequest) com.google.pubsub.v1.ModifyPushConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ModifyPushConfigRequest.class, com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); + com.google.pubsub.v1.ModifyPushConfigRequest.class, + com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); } // Construct using com.google.pubsub.v1.ModifyPushConfigRequest.newBuilder() @@ -387,16 +409,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } @java.lang.Override @@ -433,7 +454,8 @@ public com.google.pubsub.v1.ModifyPushConfigRequest build() { @java.lang.Override public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { - com.google.pubsub.v1.ModifyPushConfigRequest result = new com.google.pubsub.v1.ModifyPushConfigRequest(this); + com.google.pubsub.v1.ModifyPushConfigRequest result = + new com.google.pubsub.v1.ModifyPushConfigRequest(this); result.subscription_ = subscription_; if (pushConfigBuilder_ == null) { result.pushConfig_ = pushConfig_; @@ -448,38 +470,39 @@ public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ModifyPushConfigRequest) { - return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest)other); + return mergeFrom((com.google.pubsub.v1.ModifyPushConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -526,6 +549,8 @@ public Builder mergeFrom( private java.lang.Object subscription_ = ""; /** + * + * *
          * The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -536,8 +561,7 @@ public Builder mergeFrom(
         public java.lang.String getSubscription() {
           java.lang.Object ref = subscription_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             subscription_ = s;
             return s;
    @@ -546,6 +570,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -553,13 +579,11 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getSubscriptionBytes() {
    +    public com.google.protobuf.ByteString getSubscriptionBytes() {
           java.lang.Object ref = subscription_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             subscription_ = b;
             return b;
           } else {
    @@ -567,6 +591,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -574,17 +600,18 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscription(
    -        java.lang.String value) {
    +    public Builder setSubscription(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           subscription_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -593,12 +620,14 @@ public Builder setSubscription(
          * string subscription = 1;
          */
         public Builder clearSubscription() {
    -      
    +
           subscription_ = getDefaultInstance().getSubscription();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -606,13 +635,12 @@ public Builder clearSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscriptionBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           subscription_ = value;
           onChanged();
           return this;
    @@ -620,8 +648,13 @@ public Builder setSubscriptionBytes(
     
         private com.google.pubsub.v1.PushConfig pushConfig_ = null;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_;
    +            com.google.pubsub.v1.PushConfig,
    +            com.google.pubsub.v1.PushConfig.Builder,
    +            com.google.pubsub.v1.PushConfigOrBuilder>
    +        pushConfigBuilder_;
         /**
    +     *
    +     *
          * 
          * The push configuration for future deliveries.
          * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -636,6 +669,8 @@ public boolean hasPushConfig() {
           return pushConfigBuilder_ != null || pushConfig_ != null;
         }
         /**
    +     *
    +     *
          * 
          * The push configuration for future deliveries.
          * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -648,12 +683,16 @@ public boolean hasPushConfig() {
          */
         public com.google.pubsub.v1.PushConfig getPushConfig() {
           if (pushConfigBuilder_ == null) {
    -        return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_;
    +        return pushConfig_ == null
    +            ? com.google.pubsub.v1.PushConfig.getDefaultInstance()
    +            : pushConfig_;
           } else {
             return pushConfigBuilder_.getMessage();
           }
         }
         /**
    +     *
    +     *
          * 
          * The push configuration for future deliveries.
          * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -678,6 +717,8 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The push configuration for future deliveries.
          * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -688,8 +729,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
          *
          * .google.pubsub.v1.PushConfig push_config = 2;
          */
    -    public Builder setPushConfig(
    -        com.google.pubsub.v1.PushConfig.Builder builderForValue) {
    +    public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) {
           if (pushConfigBuilder_ == null) {
             pushConfig_ = builderForValue.build();
             onChanged();
    @@ -700,6 +740,8 @@ public Builder setPushConfig(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The push configuration for future deliveries.
          * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -714,7 +756,9 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
           if (pushConfigBuilder_ == null) {
             if (pushConfig_ != null) {
               pushConfig_ =
    -            com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_).mergeFrom(value).buildPartial();
    +              com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               pushConfig_ = value;
             }
    @@ -726,6 +770,8 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The push configuration for future deliveries.
          * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -748,6 +794,8 @@ public Builder clearPushConfig() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The push configuration for future deliveries.
          * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -759,11 +807,13 @@ public Builder clearPushConfig() {
          * .google.pubsub.v1.PushConfig push_config = 2;
          */
         public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() {
    -      
    +
           onChanged();
           return getPushConfigFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The push configuration for future deliveries.
          * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -778,11 +828,14 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
           if (pushConfigBuilder_ != null) {
             return pushConfigBuilder_.getMessageOrBuilder();
           } else {
    -        return pushConfig_ == null ?
    -            com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_;
    +        return pushConfig_ == null
    +            ? com.google.pubsub.v1.PushConfig.getDefaultInstance()
    +            : pushConfig_;
           }
         }
         /**
    +     *
    +     *
          * 
          * The push configuration for future deliveries.
          * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -794,21 +847,24 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
          * .google.pubsub.v1.PushConfig push_config = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> 
    +            com.google.pubsub.v1.PushConfig,
    +            com.google.pubsub.v1.PushConfig.Builder,
    +            com.google.pubsub.v1.PushConfigOrBuilder>
             getPushConfigFieldBuilder() {
           if (pushConfigBuilder_ == null) {
    -        pushConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder>(
    -                getPushConfig(),
    -                getParentForChildren(),
    -                isClean());
    +        pushConfigBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.pubsub.v1.PushConfig,
    +                com.google.pubsub.v1.PushConfig.Builder,
    +                com.google.pubsub.v1.PushConfigOrBuilder>(
    +                getPushConfig(), getParentForChildren(), isClean());
             pushConfig_ = null;
           }
           return pushConfigBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -818,12 +874,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyPushConfigRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.ModifyPushConfigRequest)
       private static final com.google.pubsub.v1.ModifyPushConfigRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.ModifyPushConfigRequest();
       }
    @@ -832,16 +888,16 @@ public static com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstance()
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public ModifyPushConfigRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new ModifyPushConfigRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public ModifyPushConfigRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new ModifyPushConfigRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -856,6 +912,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.ModifyPushConfigRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java
    index b66687d50aa6..0bddfac5f399 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface ModifyPushConfigRequestOrBuilder extends
    +public interface ModifyPushConfigRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ModifyPushConfigRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -17,6 +20,8 @@ public interface ModifyPushConfigRequestOrBuilder extends
        */
       java.lang.String getSubscription();
       /**
    +   *
    +   *
        * 
        * The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -24,10 +29,11 @@ public interface ModifyPushConfigRequestOrBuilder extends
        *
        * string subscription = 1;
        */
    -  com.google.protobuf.ByteString
    -      getSubscriptionBytes();
    +  com.google.protobuf.ByteString getSubscriptionBytes();
     
       /**
    +   *
    +   *
        * 
        * The push configuration for future deliveries.
        * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -40,6 +46,8 @@ public interface ModifyPushConfigRequestOrBuilder extends
        */
       boolean hasPushConfig();
       /**
    +   *
    +   *
        * 
        * The push configuration for future deliveries.
        * An empty `pushConfig` indicates that the Pub/Sub system should
    @@ -52,6 +60,8 @@ public interface ModifyPushConfigRequestOrBuilder extends
        */
       com.google.pubsub.v1.PushConfig getPushConfig();
       /**
    +   *
    +   *
        * 
        * The push configuration for future deliveries.
        * An empty `pushConfig` indicates that the Pub/Sub system should
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java
    index ff6b421e7f8b..de07092b13e8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java
    @@ -14,13 +14,13 @@
     
     package com.google.pubsub.v1;
     
    -import com.google.common.base.Preconditions;
    -import com.google.common.collect.ImmutableMap;
     import com.google.api.pathtemplate.PathTemplate;
     import com.google.api.resourcenames.ResourceName;
    -import java.util.Map;
    +import com.google.common.base.Preconditions;
    +import com.google.common.collect.ImmutableMap;
     import java.util.ArrayList;
     import java.util.List;
    +import java.util.Map;
     
     // AUTO-GENERATED DOCUMENTATION AND CLASS
     @javax.annotation.Generated("by GAPIC protoc plugin")
    @@ -50,16 +50,11 @@ private ProjectName(Builder builder) {
       }
     
       public static ProjectName of(String project) {
    -    return newBuilder()
    -      .setProject(project)
    -      .build();
    +    return newBuilder().setProject(project).build();
       }
     
       public static String format(String project) {
    -    return newBuilder()
    -      .setProject(project)
    -      .build()
    -      .toString();
    +    return newBuilder().setProject(project).build().toString();
       }
     
       public static ProjectName parse(String formattedString) {
    @@ -67,7 +62,8 @@ public static ProjectName parse(String formattedString) {
           return null;
         }
         Map matchMap =
    -        PATH_TEMPLATE.validatedMatch(formattedString, "ProjectName.parse: formattedString not in valid format");
    +        PATH_TEMPLATE.validatedMatch(
    +            formattedString, "ProjectName.parse: formattedString not in valid format");
         return of(matchMap.get("project"));
       }
     
    @@ -131,8 +127,7 @@ public Builder setProject(String project) {
           return this;
         }
     
    -    private Builder() {
    -    }
    +    private Builder() {}
     
         private Builder(ProjectName projectName) {
           project = projectName.project;
    @@ -163,4 +158,3 @@ public int hashCode() {
         return h;
       }
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java
    index c0cbcd22cf9f..db9de12357b4 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java
    @@ -14,13 +14,13 @@
     
     package com.google.pubsub.v1;
     
    -import com.google.common.base.Preconditions;
    -import com.google.common.collect.ImmutableMap;
     import com.google.api.pathtemplate.PathTemplate;
     import com.google.api.resourcenames.ResourceName;
    -import java.util.Map;
    +import com.google.common.base.Preconditions;
    +import com.google.common.collect.ImmutableMap;
     import java.util.ArrayList;
     import java.util.List;
    +import java.util.Map;
     
     // AUTO-GENERATED DOCUMENTATION AND CLASS
     @javax.annotation.Generated("by GAPIC protoc plugin")
    @@ -56,18 +56,11 @@ private ProjectSnapshotName(Builder builder) {
       }
     
       public static ProjectSnapshotName of(String project, String snapshot) {
    -    return newBuilder()
    -      .setProject(project)
    -      .setSnapshot(snapshot)
    -      .build();
    +    return newBuilder().setProject(project).setSnapshot(snapshot).build();
       }
     
       public static String format(String project, String snapshot) {
    -    return newBuilder()
    -      .setProject(project)
    -      .setSnapshot(snapshot)
    -      .build()
    -      .toString();
    +    return newBuilder().setProject(project).setSnapshot(snapshot).build().toString();
       }
     
       public static ProjectSnapshotName parse(String formattedString) {
    @@ -75,7 +68,8 @@ public static ProjectSnapshotName parse(String formattedString) {
           return null;
         }
         Map matchMap =
    -        PATH_TEMPLATE.validatedMatch(formattedString, "ProjectSnapshotName.parse: formattedString not in valid format");
    +        PATH_TEMPLATE.validatedMatch(
    +            formattedString, "ProjectSnapshotName.parse: formattedString not in valid format");
         return of(matchMap.get("project"), matchMap.get("snapshot"));
       }
     
    @@ -150,8 +144,7 @@ public Builder setSnapshot(String snapshot) {
           return this;
         }
     
    -    private Builder() {
    -    }
    +    private Builder() {}
     
         private Builder(ProjectSnapshotName projectSnapshotName) {
           project = projectSnapshotName.project;
    @@ -170,8 +163,7 @@ public boolean equals(Object o) {
         }
         if (o instanceof ProjectSnapshotName) {
           ProjectSnapshotName that = (ProjectSnapshotName) o;
    -      return (this.project.equals(that.project))
    -          && (this.snapshot.equals(that.snapshot));
    +      return (this.project.equals(that.project)) && (this.snapshot.equals(that.snapshot));
         }
         return false;
       }
    @@ -186,4 +178,3 @@ public int hashCode() {
         return h;
       }
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java
    index 7d864b366273..dc20ad21db8c 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java
    @@ -14,13 +14,13 @@
     
     package com.google.pubsub.v1;
     
    -import com.google.common.base.Preconditions;
    -import com.google.common.collect.ImmutableMap;
     import com.google.api.pathtemplate.PathTemplate;
     import com.google.api.resourcenames.ResourceName;
    -import java.util.Map;
    +import com.google.common.base.Preconditions;
    +import com.google.common.collect.ImmutableMap;
     import java.util.ArrayList;
     import java.util.List;
    +import java.util.Map;
     
     // AUTO-GENERATED DOCUMENTATION AND CLASS
     @javax.annotation.Generated("by GAPIC protoc plugin")
    @@ -56,18 +56,11 @@ private ProjectSubscriptionName(Builder builder) {
       }
     
       public static ProjectSubscriptionName of(String project, String subscription) {
    -    return newBuilder()
    -      .setProject(project)
    -      .setSubscription(subscription)
    -      .build();
    +    return newBuilder().setProject(project).setSubscription(subscription).build();
       }
     
       public static String format(String project, String subscription) {
    -    return newBuilder()
    -      .setProject(project)
    -      .setSubscription(subscription)
    -      .build()
    -      .toString();
    +    return newBuilder().setProject(project).setSubscription(subscription).build().toString();
       }
     
       public static ProjectSubscriptionName parse(String formattedString) {
    @@ -75,7 +68,8 @@ public static ProjectSubscriptionName parse(String formattedString) {
           return null;
         }
         Map matchMap =
    -        PATH_TEMPLATE.validatedMatch(formattedString, "ProjectSubscriptionName.parse: formattedString not in valid format");
    +        PATH_TEMPLATE.validatedMatch(
    +            formattedString, "ProjectSubscriptionName.parse: formattedString not in valid format");
         return of(matchMap.get("project"), matchMap.get("subscription"));
       }
     
    @@ -150,8 +144,7 @@ public Builder setSubscription(String subscription) {
           return this;
         }
     
    -    private Builder() {
    -    }
    +    private Builder() {}
     
         private Builder(ProjectSubscriptionName projectSubscriptionName) {
           project = projectSubscriptionName.project;
    @@ -170,8 +163,7 @@ public boolean equals(Object o) {
         }
         if (o instanceof ProjectSubscriptionName) {
           ProjectSubscriptionName that = (ProjectSubscriptionName) o;
    -      return (this.project.equals(that.project))
    -          && (this.subscription.equals(that.subscription));
    +      return (this.project.equals(that.project)) && (this.subscription.equals(that.subscription));
         }
         return false;
       }
    @@ -186,4 +178,3 @@ public int hashCode() {
         return h;
       }
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java
    index d154b2aaf5e1..cc37f7e6c693 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java
    @@ -14,13 +14,12 @@
     
     package com.google.pubsub.v1;
     
    +import com.google.api.pathtemplate.PathTemplate;
     import com.google.common.base.Preconditions;
     import com.google.common.collect.ImmutableMap;
    -import com.google.api.pathtemplate.PathTemplate;
    -import com.google.api.resourcenames.ResourceName;
    -import java.util.Map;
     import java.util.ArrayList;
     import java.util.List;
    +import java.util.Map;
     
     // AUTO-GENERATED DOCUMENTATION AND CLASS
     @javax.annotation.Generated("by GAPIC protoc plugin")
    @@ -56,18 +55,11 @@ private ProjectTopicName(Builder builder) {
       }
     
       public static ProjectTopicName of(String project, String topic) {
    -    return newBuilder()
    -      .setProject(project)
    -      .setTopic(topic)
    -      .build();
    +    return newBuilder().setProject(project).setTopic(topic).build();
       }
     
       public static String format(String project, String topic) {
    -    return newBuilder()
    -      .setProject(project)
    -      .setTopic(topic)
    -      .build()
    -      .toString();
    +    return newBuilder().setProject(project).setTopic(topic).build().toString();
       }
     
       public static ProjectTopicName parse(String formattedString) {
    @@ -75,7 +67,8 @@ public static ProjectTopicName parse(String formattedString) {
           return null;
         }
         Map matchMap =
    -        PATH_TEMPLATE.validatedMatch(formattedString, "ProjectTopicName.parse: formattedString not in valid format");
    +        PATH_TEMPLATE.validatedMatch(
    +            formattedString, "ProjectTopicName.parse: formattedString not in valid format");
         return of(matchMap.get("project"), matchMap.get("topic"));
       }
     
    @@ -150,8 +143,7 @@ public Builder setTopic(String topic) {
           return this;
         }
     
    -    private Builder() {
    -    }
    +    private Builder() {}
     
         private Builder(ProjectTopicName projectTopicName) {
           project = projectTopicName.project;
    @@ -170,8 +162,7 @@ public boolean equals(Object o) {
         }
         if (o instanceof ProjectTopicName) {
           ProjectTopicName that = (ProjectTopicName) o;
    -      return (this.project.equals(that.project))
    -          && (this.topic.equals(that.topic));
    +      return (this.project.equals(that.project)) && (this.topic.equals(that.topic));
         }
         return false;
       }
    @@ -186,4 +177,3 @@ public int hashCode() {
         return h;
       }
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    index 9cc50d4286c2..9523ddea17c9 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    @@ -4,31 +4,34 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the Publish method.
      * 
    * * Protobuf type {@code google.pubsub.v1.PublishRequest} */ -public final class PublishRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublishRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishRequest) PublishRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublishRequest.newBuilder() to construct. private PublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PublishRequest() { topic_ = ""; messages_ = java.util.Collections.emptyList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PublishRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -48,35 +51,37 @@ private PublishRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - messages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + topic_ = s; + break; } - messages_.add( - input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + messages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + messages_.add( + input.readMessage( + com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -85,23 +90,28 @@ private PublishRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishRequest.class, com.google.pubsub.v1.PublishRequest.Builder.class); + com.google.pubsub.v1.PublishRequest.class, + com.google.pubsub.v1.PublishRequest.Builder.class); } private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** + * + * *
        * The messages in the request will be published on this topic.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -114,14 +124,15 @@ public java.lang.String getTopic() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           topic_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The messages in the request will be published on this topic.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -129,13 +140,11 @@ public java.lang.String getTopic() {
        *
        * string topic = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getTopicBytes() {
    +  public com.google.protobuf.ByteString getTopicBytes() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           topic_ = b;
           return b;
         } else {
    @@ -146,6 +155,8 @@ public java.lang.String getTopic() {
       public static final int MESSAGES_FIELD_NUMBER = 2;
       private java.util.List messages_;
       /**
    +   *
    +   *
        * 
        * The messages to publish.
        * 
    @@ -156,17 +167,21 @@ public java.util.List getMessagesList() { return messages_; } /** + * + * *
        * The messages to publish.
        * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** + * + * *
        * The messages to publish.
        * 
    @@ -177,6 +192,8 @@ public int getMessagesCount() { return messages_.size(); } /** + * + * *
        * The messages to publish.
        * 
    @@ -187,18 +204,20 @@ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { return messages_.get(index); } /** + * + * *
        * The messages to publish.
        * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( - int index) { + public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index) { return messages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +229,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getTopicBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); } @@ -231,8 +249,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); } for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, messages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,7 +259,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.PublishRequest)) { return super.equals(obj); @@ -250,10 +267,8 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.PublishRequest other = (com.google.pubsub.v1.PublishRequest) obj; boolean result = true; - result = result && getTopic() - .equals(other.getTopic()); - result = result && getMessagesList() - .equals(other.getMessagesList()); + result = result && getTopic().equals(other.getTopic()); + result = result && getMessagesList().equals(other.getMessagesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -276,118 +291,126 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.PublishRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.PublishRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PublishRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.PublishRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.PublishRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PublishRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.PublishRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.PublishRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.PublishRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PublishRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.PublishRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PublishRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.PublishRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.PublishRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.PublishRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Request for the Publish method.
        * 
    * * Protobuf type {@code google.pubsub.v1.PublishRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PublishRequest) com.google.pubsub.v1.PublishRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishRequest.class, com.google.pubsub.v1.PublishRequest.Builder.class); + com.google.pubsub.v1.PublishRequest.class, + com.google.pubsub.v1.PublishRequest.Builder.class); } // Construct using com.google.pubsub.v1.PublishRequest.newBuilder() @@ -395,17 +418,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishRequest_descriptor; } @java.lang.Override @@ -464,38 +487,39 @@ public com.google.pubsub.v1.PublishRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PublishRequest) { - return mergeFrom((com.google.pubsub.v1.PublishRequest)other); + return mergeFrom((com.google.pubsub.v1.PublishRequest) other); } else { super.mergeFrom(other); return this; @@ -526,9 +550,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { messagesBuilder_ = null; messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000002); - messagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessagesFieldBuilder() : null; + messagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessagesFieldBuilder() + : null; } else { messagesBuilder_.addAllMessages(other.messages_); } @@ -562,10 +587,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object topic_ = ""; /** + * + * *
          * The messages in the request will be published on this topic.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -576,8 +604,7 @@ public Builder mergeFrom(
         public java.lang.String getTopic() {
           java.lang.Object ref = topic_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             topic_ = s;
             return s;
    @@ -586,6 +613,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The messages in the request will be published on this topic.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -593,13 +622,11 @@ public java.lang.String getTopic() {
          *
          * string topic = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getTopicBytes() {
    +    public com.google.protobuf.ByteString getTopicBytes() {
           java.lang.Object ref = topic_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             topic_ = b;
             return b;
           } else {
    @@ -607,6 +634,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The messages in the request will be published on this topic.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -614,17 +643,18 @@ public java.lang.String getTopic() {
          *
          * string topic = 1;
          */
    -    public Builder setTopic(
    -        java.lang.String value) {
    +    public Builder setTopic(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           topic_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The messages in the request will be published on this topic.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -633,12 +663,14 @@ public Builder setTopic(
          * string topic = 1;
          */
         public Builder clearTopic() {
    -      
    +
           topic_ = getDefaultInstance().getTopic();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The messages in the request will be published on this topic.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -646,31 +678,36 @@ public Builder clearTopic() {
          *
          * string topic = 1;
          */
    -    public Builder setTopicBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setTopicBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           topic_ = value;
           onChanged();
           return this;
         }
     
         private java.util.List messages_ =
    -      java.util.Collections.emptyList();
    +        java.util.Collections.emptyList();
    +
         private void ensureMessagesIsMutable() {
           if (!((bitField0_ & 0x00000002) == 0x00000002)) {
             messages_ = new java.util.ArrayList(messages_);
             bitField0_ |= 0x00000002;
    -       }
    +      }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> messagesBuilder_;
    +            com.google.pubsub.v1.PubsubMessage,
    +            com.google.pubsub.v1.PubsubMessage.Builder,
    +            com.google.pubsub.v1.PubsubMessageOrBuilder>
    +        messagesBuilder_;
     
         /**
    +     *
    +     *
          * 
          * The messages to publish.
          * 
    @@ -685,6 +722,8 @@ public java.util.List getMessagesList() { } } /** + * + * *
          * The messages to publish.
          * 
    @@ -699,6 +738,8 @@ public int getMessagesCount() { } } /** + * + * *
          * The messages to publish.
          * 
    @@ -713,14 +754,15 @@ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { } } /** + * + * *
          * The messages to publish.
          * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - public Builder setMessages( - int index, com.google.pubsub.v1.PubsubMessage value) { + public Builder setMessages(int index, com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -734,6 +776,8 @@ public Builder setMessages( return this; } /** + * + * *
          * The messages to publish.
          * 
    @@ -752,6 +796,8 @@ public Builder setMessages( return this; } /** + * + * *
          * The messages to publish.
          * 
    @@ -772,14 +818,15 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage value) { return this; } /** + * + * *
          * The messages to publish.
          * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - public Builder addMessages( - int index, com.google.pubsub.v1.PubsubMessage value) { + public Builder addMessages(int index, com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -793,14 +840,15 @@ public Builder addMessages( return this; } /** + * + * *
          * The messages to publish.
          * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - public Builder addMessages( - com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { + public Builder addMessages(com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); messages_.add(builderForValue.build()); @@ -811,6 +859,8 @@ public Builder addMessages( return this; } /** + * + * *
          * The messages to publish.
          * 
    @@ -829,6 +879,8 @@ public Builder addMessages( return this; } /** + * + * *
          * The messages to publish.
          * 
    @@ -839,8 +891,7 @@ public Builder addAllMessages( java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, messages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); @@ -848,6 +899,8 @@ public Builder addAllMessages( return this; } /** + * + * *
          * The messages to publish.
          * 
    @@ -865,6 +918,8 @@ public Builder clearMessages() { return this; } /** + * + * *
          * The messages to publish.
          * 
    @@ -882,39 +937,44 @@ public Builder removeMessages(int index) { return this; } /** + * + * *
          * The messages to publish.
          * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder( - int index) { + public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder(int index) { return getMessagesFieldBuilder().getBuilder(index); } /** + * + * *
          * The messages to publish.
          * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( - int index) { + public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index) { if (messagesBuilder_ == null) { - return messages_.get(index); } else { + return messages_.get(index); + } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * The messages to publish.
          * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -922,6 +982,8 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( } } /** + * + * *
          * The messages to publish.
          * 
    @@ -929,38 +991,46 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder().addBuilder( - com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); + return getMessagesFieldBuilder() + .addBuilder(com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } /** + * + * *
          * The messages to publish.
          * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder( - int index) { - return getMessagesFieldBuilder().addBuilder( - index, com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); + public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder(int index) { + return getMessagesFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } /** + * + * *
          * The messages to publish.
          * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder>( messages_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), @@ -969,9 +1039,9 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder( } return messagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @@ -981,12 +1051,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PublishRequest) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishRequest) private static final com.google.pubsub.v1.PublishRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.PublishRequest(); } @@ -995,16 +1065,16 @@ public static com.google.pubsub.v1.PublishRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,6 +1089,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.PublishRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 272501fa4db3..6611ff453fa5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -3,11 +3,14 @@ package com.google.pubsub.v1; -public interface PublishRequestOrBuilder extends +public interface PublishRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The messages in the request will be published on this topic.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -17,6 +20,8 @@ public interface PublishRequestOrBuilder extends
        */
       java.lang.String getTopic();
       /**
    +   *
    +   *
        * 
        * The messages in the request will be published on this topic.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -24,19 +29,21 @@ public interface PublishRequestOrBuilder extends
        *
        * string topic = 1;
        */
    -  com.google.protobuf.ByteString
    -      getTopicBytes();
    +  com.google.protobuf.ByteString getTopicBytes();
     
       /**
    +   *
    +   *
        * 
        * The messages to publish.
        * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - java.util.List - getMessagesList(); + java.util.List getMessagesList(); /** + * + * *
        * The messages to publish.
        * 
    @@ -45,6 +52,8 @@ public interface PublishRequestOrBuilder extends */ com.google.pubsub.v1.PubsubMessage getMessages(int index); /** + * + * *
        * The messages to publish.
        * 
    @@ -53,21 +62,23 @@ public interface PublishRequestOrBuilder extends */ int getMessagesCount(); /** + * + * *
        * The messages to publish.
        * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - java.util.List - getMessagesOrBuilderList(); + java.util.List getMessagesOrBuilderList(); /** + * + * *
        * The messages to publish.
        * 
    * * repeated .google.pubsub.v1.PubsubMessage messages = 2; */ - com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder( - int index); + com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index ec61a1cd0823..09cae8073b63 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -4,30 +4,33 @@ package com.google.pubsub.v1; /** + * + * *
      * Response for the `Publish` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.PublishResponse} */ -public final class PublishResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublishResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishResponse) PublishResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublishResponse.newBuilder() to construct. private PublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PublishResponse() { messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PublishResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,29 +50,29 @@ private PublishResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - messageIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + messageIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + messageIds_.add(s); + break; } - messageIds_.add(s); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { messageIds_ = messageIds_.getUnmodifiableView(); @@ -78,22 +81,27 @@ private PublishResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishResponse.class, com.google.pubsub.v1.PublishResponse.Builder.class); + com.google.pubsub.v1.PublishResponse.class, + com.google.pubsub.v1.PublishResponse.Builder.class); } public static final int MESSAGE_IDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList messageIds_; /** + * + * *
        * The server-assigned ID of each published message, in the same order as
        * the messages in the request. IDs are guaranteed to be unique within
    @@ -102,11 +110,12 @@ private PublishResponse(
        *
        * repeated string message_ids = 1;
        */
    -  public com.google.protobuf.ProtocolStringList
    -      getMessageIdsList() {
    +  public com.google.protobuf.ProtocolStringList getMessageIdsList() {
         return messageIds_;
       }
       /**
    +   *
    +   *
        * 
        * The server-assigned ID of each published message, in the same order as
        * the messages in the request. IDs are guaranteed to be unique within
    @@ -119,6 +128,8 @@ public int getMessageIdsCount() {
         return messageIds_.size();
       }
       /**
    +   *
    +   *
        * 
        * The server-assigned ID of each published message, in the same order as
        * the messages in the request. IDs are guaranteed to be unique within
    @@ -131,6 +142,8 @@ public java.lang.String getMessageIds(int index) {
         return messageIds_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * The server-assigned ID of each published message, in the same order as
        * the messages in the request. IDs are guaranteed to be unique within
    @@ -139,12 +152,12 @@ public java.lang.String getMessageIds(int index) {
        *
        * repeated string message_ids = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getMessageIdsBytes(int index) {
    +  public com.google.protobuf.ByteString getMessageIdsBytes(int index) {
         return messageIds_.getByteString(index);
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -156,8 +169,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < messageIds_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, messageIds_.getRaw(i));
         }
    @@ -186,7 +198,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.PublishResponse)) {
           return super.equals(obj);
    @@ -194,8 +206,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.PublishResponse other = (com.google.pubsub.v1.PublishResponse) obj;
     
         boolean result = true;
    -    result = result && getMessageIdsList()
    -        .equals(other.getMessageIdsList());
    +    result = result && getMessageIdsList().equals(other.getMessageIdsList());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -216,118 +227,126 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.PublishResponse parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.PublishResponse parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PublishResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.PublishResponse parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.pubsub.v1.PublishResponse parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PublishResponse parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PublishResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PublishResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PublishResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PublishResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PublishResponse parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PublishResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PublishResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PublishResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.PublishResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Response for the `Publish` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.PublishResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PublishResponse) com.google.pubsub.v1.PublishResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PublishResponse.class, com.google.pubsub.v1.PublishResponse.Builder.class); + com.google.pubsub.v1.PublishResponse.class, + com.google.pubsub.v1.PublishResponse.Builder.class); } // Construct using com.google.pubsub.v1.PublishResponse.newBuilder() @@ -335,16 +354,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PublishResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PublishResponse_descriptor; } @java.lang.Override @@ -390,38 +408,39 @@ public com.google.pubsub.v1.PublishResponse buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PublishResponse) { - return mergeFrom((com.google.pubsub.v1.PublishResponse)other); + return mergeFrom((com.google.pubsub.v1.PublishResponse) other); } else { super.mergeFrom(other); return this; @@ -468,16 +487,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList messageIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureMessageIdsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { messageIds_ = new com.google.protobuf.LazyStringArrayList(messageIds_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
          * The server-assigned ID of each published message, in the same order as
          * the messages in the request. IDs are guaranteed to be unique within
    @@ -486,11 +510,12 @@ private void ensureMessageIdsIsMutable() {
          *
          * repeated string message_ids = 1;
          */
    -    public com.google.protobuf.ProtocolStringList
    -        getMessageIdsList() {
    +    public com.google.protobuf.ProtocolStringList getMessageIdsList() {
           return messageIds_.getUnmodifiableView();
         }
         /**
    +     *
    +     *
          * 
          * The server-assigned ID of each published message, in the same order as
          * the messages in the request. IDs are guaranteed to be unique within
    @@ -503,6 +528,8 @@ public int getMessageIdsCount() {
           return messageIds_.size();
         }
         /**
    +     *
    +     *
          * 
          * The server-assigned ID of each published message, in the same order as
          * the messages in the request. IDs are guaranteed to be unique within
    @@ -515,6 +542,8 @@ public java.lang.String getMessageIds(int index) {
           return messageIds_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * The server-assigned ID of each published message, in the same order as
          * the messages in the request. IDs are guaranteed to be unique within
    @@ -523,11 +552,12 @@ public java.lang.String getMessageIds(int index) {
          *
          * repeated string message_ids = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getMessageIdsBytes(int index) {
    +    public com.google.protobuf.ByteString getMessageIdsBytes(int index) {
           return messageIds_.getByteString(index);
         }
         /**
    +     *
    +     *
          * 
          * The server-assigned ID of each published message, in the same order as
          * the messages in the request. IDs are guaranteed to be unique within
    @@ -536,17 +566,18 @@ public java.lang.String getMessageIds(int index) {
          *
          * repeated string message_ids = 1;
          */
    -    public Builder setMessageIds(
    -        int index, java.lang.String value) {
    +    public Builder setMessageIds(int index, java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  ensureMessageIdsIsMutable();
    +        throw new NullPointerException();
    +      }
    +      ensureMessageIdsIsMutable();
           messageIds_.set(index, value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The server-assigned ID of each published message, in the same order as
          * the messages in the request. IDs are guaranteed to be unique within
    @@ -555,17 +586,18 @@ public Builder setMessageIds(
          *
          * repeated string message_ids = 1;
          */
    -    public Builder addMessageIds(
    -        java.lang.String value) {
    +    public Builder addMessageIds(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  ensureMessageIdsIsMutable();
    +        throw new NullPointerException();
    +      }
    +      ensureMessageIdsIsMutable();
           messageIds_.add(value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The server-assigned ID of each published message, in the same order as
          * the messages in the request. IDs are guaranteed to be unique within
    @@ -574,15 +606,15 @@ public Builder addMessageIds(
          *
          * repeated string message_ids = 1;
          */
    -    public Builder addAllMessageIds(
    -        java.lang.Iterable values) {
    +    public Builder addAllMessageIds(java.lang.Iterable values) {
           ensureMessageIdsIsMutable();
    -      com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -          values, messageIds_);
    +      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messageIds_);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The server-assigned ID of each published message, in the same order as
          * the messages in the request. IDs are guaranteed to be unique within
    @@ -598,6 +630,8 @@ public Builder clearMessageIds() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The server-assigned ID of each published message, in the same order as
          * the messages in the request. IDs are guaranteed to be unique within
    @@ -606,20 +640,19 @@ public Builder clearMessageIds() {
          *
          * repeated string message_ids = 1;
          */
    -    public Builder addMessageIdsBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder addMessageIdsBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
           ensureMessageIdsIsMutable();
           messageIds_.add(value);
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -629,12 +662,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PublishResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.PublishResponse)
       private static final com.google.pubsub.v1.PublishResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.PublishResponse();
       }
    @@ -643,16 +676,16 @@ public static com.google.pubsub.v1.PublishResponse getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public PublishResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new PublishResponse(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public PublishResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new PublishResponse(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -667,6 +700,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.PublishResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java
    index 6b2ba66651c3..138020b3d299 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface PublishResponseOrBuilder extends
    +public interface PublishResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The server-assigned ID of each published message, in the same order as
        * the messages in the request. IDs are guaranteed to be unique within
    @@ -16,9 +19,10 @@ public interface PublishResponseOrBuilder extends
        *
        * repeated string message_ids = 1;
        */
    -  java.util.List
    -      getMessageIdsList();
    +  java.util.List getMessageIdsList();
       /**
    +   *
    +   *
        * 
        * The server-assigned ID of each published message, in the same order as
        * the messages in the request. IDs are guaranteed to be unique within
    @@ -29,6 +33,8 @@ public interface PublishResponseOrBuilder extends
        */
       int getMessageIdsCount();
       /**
    +   *
    +   *
        * 
        * The server-assigned ID of each published message, in the same order as
        * the messages in the request. IDs are guaranteed to be unique within
    @@ -39,6 +45,8 @@ public interface PublishResponseOrBuilder extends
        */
       java.lang.String getMessageIds(int index);
       /**
    +   *
    +   *
        * 
        * The server-assigned ID of each published message, in the same order as
        * the messages in the request. IDs are guaranteed to be unique within
    @@ -47,6 +55,5 @@ public interface PublishResponseOrBuilder extends
        *
        * repeated string message_ids = 1;
        */
    -  com.google.protobuf.ByteString
    -      getMessageIdsBytes(int index);
    +  com.google.protobuf.ByteString getMessageIdsBytes(int index);
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    index cf64a2e9c73e..53fc4ecda8eb 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    @@ -4,6 +4,8 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * 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.
    @@ -13,25 +15,26 @@
      *
      * Protobuf type {@code google.pubsub.v1.PubsubMessage}
      */
    -public  final class PubsubMessage extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class PubsubMessage extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.PubsubMessage)
         PubsubMessageOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use PubsubMessage.newBuilder() to construct.
       private PubsubMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private PubsubMessage() {
         data_ = com.google.protobuf.ByteString.EMPTY;
         messageId_ = "";
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private PubsubMessage(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -51,91 +54,99 @@ private PubsubMessage(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -
    -            data_ = input.readBytes();
    -            break;
    -          }
    -          case 18: {
    -            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
    -              attributes_ = com.google.protobuf.MapField.newMapField(
    -                  AttributesDefaultEntryHolder.defaultEntry);
    -              mutable_bitField0_ |= 0x00000002;
    +          case 10:
    +            {
    +              data_ = input.readBytes();
    +              break;
                 }
    -            com.google.protobuf.MapEntry
    -            attributes__ = input.readMessage(
    -                AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    -            attributes_.getMutableMap().put(
    -                attributes__.getKey(), attributes__.getValue());
    -            break;
    -          }
    -          case 26: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 18:
    +            {
    +              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
    +                attributes_ =
    +                    com.google.protobuf.MapField.newMapField(
    +                        AttributesDefaultEntryHolder.defaultEntry);
    +                mutable_bitField0_ |= 0x00000002;
    +              }
    +              com.google.protobuf.MapEntry attributes__ =
    +                  input.readMessage(
    +                      AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
    +                      extensionRegistry);
    +              attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue());
    +              break;
    +            }
    +          case 26:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            messageId_ = s;
    -            break;
    -          }
    -          case 34: {
    -            com.google.protobuf.Timestamp.Builder subBuilder = null;
    -            if (publishTime_ != null) {
    -              subBuilder = publishTime_.toBuilder();
    +              messageId_ = s;
    +              break;
                 }
    -            publishTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -            if (subBuilder != null) {
    -              subBuilder.mergeFrom(publishTime_);
    -              publishTime_ = subBuilder.buildPartial();
    +          case 34:
    +            {
    +              com.google.protobuf.Timestamp.Builder subBuilder = null;
    +              if (publishTime_ != null) {
    +                subBuilder = publishTime_.toBuilder();
    +              }
    +              publishTime_ =
    +                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    +              if (subBuilder != null) {
    +                subBuilder.mergeFrom(publishTime_);
    +                publishTime_ = subBuilder.buildPartial();
    +              }
    +
    +              break;
                 }
    -
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
       }
     
       @SuppressWarnings({"rawtypes"})
       @java.lang.Override
    -  protected com.google.protobuf.MapField internalGetMapField(
    -      int number) {
    +  protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 2:
             return internalGetAttributes();
           default:
    -        throw new RuntimeException(
    -            "Invalid map field number: " + number);
    +        throw new RuntimeException("Invalid map field number: " + number);
         }
       }
    +
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.PubsubMessage.class, com.google.pubsub.v1.PubsubMessage.Builder.class);
    +            com.google.pubsub.v1.PubsubMessage.class,
    +            com.google.pubsub.v1.PubsubMessage.Builder.class);
       }
     
       private int bitField0_;
       public static final int DATA_FIELD_NUMBER = 1;
       private com.google.protobuf.ByteString data_;
       /**
    +   *
    +   *
        * 
        * The message data field. If this field is empty, the message must contain
        * at least one attribute.
    @@ -148,24 +159,23 @@ public com.google.protobuf.ByteString getData() {
       }
     
       public static final int ATTRIBUTES_FIELD_NUMBER = 2;
    +
       private static final class AttributesDefaultEntryHolder {
    -    static final com.google.protobuf.MapEntry<
    -        java.lang.String, java.lang.String> defaultEntry =
    -            com.google.protobuf.MapEntry
    -            .newDefaultInstance(
    -                com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, 
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "",
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "");
    +    static final com.google.protobuf.MapEntry defaultEntry =
    +        com.google.protobuf.MapEntry.newDefaultInstance(
    +            com.google.pubsub.v1.PubsubProto
    +                .internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor,
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "",
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "");
       }
    -  private com.google.protobuf.MapField<
    -      java.lang.String, java.lang.String> attributes_;
    -  private com.google.protobuf.MapField
    -  internalGetAttributes() {
    +
    +  private com.google.protobuf.MapField attributes_;
    +
    +  private com.google.protobuf.MapField internalGetAttributes() {
         if (attributes_ == null) {
    -      return com.google.protobuf.MapField.emptyMapField(
    -          AttributesDefaultEntryHolder.defaultEntry);
    +      return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry);
         }
         return attributes_;
       }
    @@ -174,65 +184,68 @@ public int getAttributesCount() {
         return internalGetAttributes().getMap().size();
       }
       /**
    +   *
    +   *
        * 
        * Optional attributes for this message.
        * 
    * * map<string, string> attributes = 2; */ - - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetAttributes().getMap().containsKey(key); } - /** - * Use {@link #getAttributesMap()} instead. - */ + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** + * + * *
        * Optional attributes for this message.
        * 
    * * map<string, string> attributes = 2; */ - public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** + * + * *
        * Optional attributes for this message.
        * 
    * * map<string, string> attributes = 2; */ - public java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Optional attributes for this message.
        * 
    * * map<string, string> attributes = 2; */ - - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); + public java.lang.String getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -242,6 +255,8 @@ public java.lang.String getAttributesOrThrow( public static final int MESSAGE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object messageId_; /** + * + * *
        * 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
    @@ -256,14 +271,15 @@ public java.lang.String getMessageId() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           messageId_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -273,13 +289,11 @@ public java.lang.String getMessageId() {
        *
        * string message_id = 3;
        */
    -  public com.google.protobuf.ByteString
    -      getMessageIdBytes() {
    +  public com.google.protobuf.ByteString getMessageIdBytes() {
         java.lang.Object ref = messageId_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           messageId_ = b;
           return b;
         } else {
    @@ -290,6 +304,8 @@ public java.lang.String getMessageId() {
       public static final int PUBLISH_TIME_FIELD_NUMBER = 4;
       private com.google.protobuf.Timestamp publishTime_;
       /**
    +   *
    +   *
        * 
        * 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
    @@ -302,6 +318,8 @@ public boolean hasPublishTime() {
         return publishTime_ != null;
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -314,6 +332,8 @@ public com.google.protobuf.Timestamp getPublishTime() {
         return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_;
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -327,6 +347,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -338,17 +359,12 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!data_.isEmpty()) {
           output.writeBytes(1, data_);
         }
    -    com.google.protobuf.GeneratedMessageV3
    -      .serializeStringMapTo(
    -        output,
    -        internalGetAttributes(),
    -        AttributesDefaultEntryHolder.defaultEntry,
    -        2);
    +    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
    +        output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2);
         if (!getMessageIdBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageId_);
         }
    @@ -365,25 +381,23 @@ public int getSerializedSize() {
     
         size = 0;
         if (!data_.isEmpty()) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeBytesSize(1, data_);
    -    }
    -    for (java.util.Map.Entry entry
    -         : internalGetAttributes().getMap().entrySet()) {
    -      com.google.protobuf.MapEntry
    -      attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType()
    -          .setKey(entry.getKey())
    -          .setValue(entry.getValue())
    -          .build();
    -      size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(2, attributes__);
    +      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, data_);
    +    }
    +    for (java.util.Map.Entry entry :
    +        internalGetAttributes().getMap().entrySet()) {
    +      com.google.protobuf.MapEntry attributes__ =
    +          AttributesDefaultEntryHolder.defaultEntry
    +              .newBuilderForType()
    +              .setKey(entry.getKey())
    +              .setValue(entry.getValue())
    +              .build();
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attributes__);
         }
         if (!getMessageIdBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageId_);
         }
         if (publishTime_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(4, getPublishTime());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPublishTime());
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -393,7 +407,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.PubsubMessage)) {
           return super.equals(obj);
    @@ -401,16 +415,12 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.PubsubMessage other = (com.google.pubsub.v1.PubsubMessage) obj;
     
         boolean result = true;
    -    result = result && getData()
    -        .equals(other.getData());
    -    result = result && internalGetAttributes().equals(
    -        other.internalGetAttributes());
    -    result = result && getMessageId()
    -        .equals(other.getMessageId());
    +    result = result && getData().equals(other.getData());
    +    result = result && internalGetAttributes().equals(other.internalGetAttributes());
    +    result = result && getMessageId().equals(other.getMessageId());
         result = result && (hasPublishTime() == other.hasPublishTime());
         if (hasPublishTime()) {
    -      result = result && getPublishTime()
    -          .equals(other.getPublishTime());
    +      result = result && getPublishTime().equals(other.getPublishTime());
         }
         result = result && unknownFields.equals(other.unknownFields);
         return result;
    @@ -440,97 +450,103 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.PubsubMessage parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.PubsubMessage parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PubsubMessage parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.PubsubMessage parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.pubsub.v1.PubsubMessage parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PubsubMessage parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PubsubMessage parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PubsubMessage parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PubsubMessage parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PubsubMessage parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PubsubMessage parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PubsubMessage parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PubsubMessage parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PubsubMessage parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.PubsubMessage prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * 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.
    @@ -540,43 +556,43 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.PubsubMessage}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PubsubMessage)
           com.google.pubsub.v1.PubsubMessageOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
         }
     
         @SuppressWarnings({"rawtypes"})
    -    protected com.google.protobuf.MapField internalGetMapField(
    -        int number) {
    +    protected com.google.protobuf.MapField internalGetMapField(int number) {
           switch (number) {
             case 2:
               return internalGetAttributes();
             default:
    -          throw new RuntimeException(
    -              "Invalid map field number: " + number);
    +          throw new RuntimeException("Invalid map field number: " + number);
           }
         }
    +
         @SuppressWarnings({"rawtypes"})
    -    protected com.google.protobuf.MapField internalGetMutableMapField(
    -        int number) {
    +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
           switch (number) {
             case 2:
               return internalGetMutableAttributes();
             default:
    -          throw new RuntimeException(
    -              "Invalid map field number: " + number);
    +          throw new RuntimeException("Invalid map field number: " + number);
           }
         }
    +
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.PubsubMessage.class, com.google.pubsub.v1.PubsubMessage.Builder.class);
    +              com.google.pubsub.v1.PubsubMessage.class,
    +              com.google.pubsub.v1.PubsubMessage.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.PubsubMessage.newBuilder()
    @@ -584,16 +600,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -612,9 +627,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PubsubMessage_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
         }
     
         @java.lang.Override
    @@ -654,38 +669,39 @@ public com.google.pubsub.v1.PubsubMessage buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.PubsubMessage) {
    -        return mergeFrom((com.google.pubsub.v1.PubsubMessage)other);
    +        return mergeFrom((com.google.pubsub.v1.PubsubMessage) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -697,8 +713,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) {
           if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
             setData(other.getData());
           }
    -      internalGetMutableAttributes().mergeFrom(
    -          other.internalGetAttributes());
    +      internalGetMutableAttributes().mergeFrom(other.internalGetAttributes());
           if (!other.getMessageId().isEmpty()) {
             messageId_ = other.messageId_;
             onChanged();
    @@ -734,10 +749,13 @@ public Builder mergeFrom(
           }
           return this;
         }
    +
         private int bitField0_;
     
         private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
         /**
    +     *
    +     *
          * 
          * The message data field. If this field is empty, the message must contain
          * at least one attribute.
    @@ -749,6 +767,8 @@ public com.google.protobuf.ByteString getData() {
           return data_;
         }
         /**
    +     *
    +     *
          * 
          * The message data field. If this field is empty, the message must contain
          * at least one attribute.
    @@ -758,14 +778,16 @@ public com.google.protobuf.ByteString getData() {
          */
         public Builder setData(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           data_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The message data field. If this field is empty, the message must contain
          * at least one attribute.
    @@ -774,28 +796,30 @@ public Builder setData(com.google.protobuf.ByteString value) {
          * bytes data = 1;
          */
         public Builder clearData() {
    -      
    +
           data_ = getDefaultInstance().getData();
           onChanged();
           return this;
         }
     
    -    private com.google.protobuf.MapField<
    -        java.lang.String, java.lang.String> attributes_;
    +    private com.google.protobuf.MapField attributes_;
    +
         private com.google.protobuf.MapField
    -    internalGetAttributes() {
    +        internalGetAttributes() {
           if (attributes_ == null) {
             return com.google.protobuf.MapField.emptyMapField(
                 AttributesDefaultEntryHolder.defaultEntry);
           }
           return attributes_;
         }
    +
         private com.google.protobuf.MapField
    -    internalGetMutableAttributes() {
    -      onChanged();;
    +        internalGetMutableAttributes() {
    +      onChanged();
    +      ;
           if (attributes_ == null) {
    -        attributes_ = com.google.protobuf.MapField.newMapField(
    -            AttributesDefaultEntryHolder.defaultEntry);
    +        attributes_ =
    +            com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry);
           }
           if (!attributes_.isMutable()) {
             attributes_ = attributes_.copy();
    @@ -807,65 +831,68 @@ public int getAttributesCount() {
           return internalGetAttributes().getMap().size();
         }
         /**
    +     *
    +     *
          * 
          * Optional attributes for this message.
          * 
    * * map<string, string> attributes = 2; */ - - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetAttributes().getMap().containsKey(key); } - /** - * Use {@link #getAttributesMap()} instead. - */ + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } /** + * + * *
          * Optional attributes for this message.
          * 
    * * map<string, string> attributes = 2; */ - public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } /** + * + * *
          * Optional attributes for this message.
          * 
    * * map<string, string> attributes = 2; */ - public java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
          * Optional attributes for this message.
          * 
    * * map<string, string> attributes = 2; */ - - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); + public java.lang.String getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -873,66 +900,67 @@ public java.lang.String getAttributesOrThrow( } public Builder clearAttributes() { - internalGetMutableAttributes().getMutableMap() - .clear(); + internalGetMutableAttributes().getMutableMap().clear(); return this; } /** + * + * *
          * Optional attributes for this message.
          * 
    * * map<string, string> attributes = 2; */ - - public Builder removeAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttributes().getMutableMap() - .remove(key); + public Builder removeAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableAttributes().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAttributes() { + public java.util.Map getMutableAttributes() { return internalGetMutableAttributes().getMutableMap(); } /** + * + * *
          * Optional attributes for this message.
          * 
    * * map<string, string> attributes = 2; */ - public Builder putAttributes( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttributes().getMutableMap() - .put(key, value); + public Builder putAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableAttributes().getMutableMap().put(key, value); return this; } /** + * + * *
          * Optional attributes for this message.
          * 
    * * map<string, string> attributes = 2; */ - - public Builder putAllAttributes( - java.util.Map values) { - internalGetMutableAttributes().getMutableMap() - .putAll(values); + public Builder putAllAttributes(java.util.Map values) { + internalGetMutableAttributes().getMutableMap().putAll(values); return this; } private java.lang.Object messageId_ = ""; /** + * + * *
          * 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
    @@ -945,8 +973,7 @@ public Builder putAllAttributes(
         public java.lang.String getMessageId() {
           java.lang.Object ref = messageId_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             messageId_ = s;
             return s;
    @@ -955,6 +982,8 @@ public java.lang.String getMessageId() {
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -964,13 +993,11 @@ public java.lang.String getMessageId() {
          *
          * string message_id = 3;
          */
    -    public com.google.protobuf.ByteString
    -        getMessageIdBytes() {
    +    public com.google.protobuf.ByteString getMessageIdBytes() {
           java.lang.Object ref = messageId_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             messageId_ = b;
             return b;
           } else {
    @@ -978,6 +1005,8 @@ public java.lang.String getMessageId() {
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -987,17 +1016,18 @@ public java.lang.String getMessageId() {
          *
          * string message_id = 3;
          */
    -    public Builder setMessageId(
    -        java.lang.String value) {
    +    public Builder setMessageId(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           messageId_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1008,12 +1038,14 @@ public Builder setMessageId(
          * string message_id = 3;
          */
         public Builder clearMessageId() {
    -      
    +
           messageId_ = getDefaultInstance().getMessageId();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1023,13 +1055,12 @@ public Builder clearMessageId() {
          *
          * string message_id = 3;
          */
    -    public Builder setMessageIdBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setMessageIdBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           messageId_ = value;
           onChanged();
           return this;
    @@ -1037,8 +1068,13 @@ public Builder setMessageIdBytes(
     
         private com.google.protobuf.Timestamp publishTime_ = null;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> publishTimeBuilder_;
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
    +        publishTimeBuilder_;
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1051,6 +1087,8 @@ public boolean hasPublishTime() {
           return publishTimeBuilder_ != null || publishTime_ != null;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1061,12 +1099,16 @@ public boolean hasPublishTime() {
          */
         public com.google.protobuf.Timestamp getPublishTime() {
           if (publishTimeBuilder_ == null) {
    -        return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_;
    +        return publishTime_ == null
    +            ? com.google.protobuf.Timestamp.getDefaultInstance()
    +            : publishTime_;
           } else {
             return publishTimeBuilder_.getMessage();
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1089,6 +1131,8 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1097,8 +1141,7 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp publish_time = 4;
          */
    -    public Builder setPublishTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (publishTimeBuilder_ == null) {
             publishTime_ = builderForValue.build();
             onChanged();
    @@ -1109,6 +1152,8 @@ public Builder setPublishTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1121,7 +1166,9 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
           if (publishTimeBuilder_ == null) {
             if (publishTime_ != null) {
               publishTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(publishTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(publishTime_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               publishTime_ = value;
             }
    @@ -1133,6 +1180,8 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1153,6 +1202,8 @@ public Builder clearPublishTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1162,11 +1213,13 @@ public Builder clearPublishTime() {
          * .google.protobuf.Timestamp publish_time = 4;
          */
         public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() {
    -      
    +
           onChanged();
           return getPublishTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1179,11 +1232,14 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
           if (publishTimeBuilder_ != null) {
             return publishTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return publishTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_;
    +        return publishTime_ == null
    +            ? com.google.protobuf.Timestamp.getDefaultInstance()
    +            : publishTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1193,21 +1249,24 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
          * .google.protobuf.Timestamp publish_time = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getPublishTimeFieldBuilder() {
           if (publishTimeBuilder_ == null) {
    -        publishTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getPublishTime(),
    -                getParentForChildren(),
    -                isClean());
    +        publishTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getPublishTime(), getParentForChildren(), isClean());
             publishTime_ = null;
           }
           return publishTimeBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -1217,12 +1276,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PubsubMessage)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.PubsubMessage)
       private static final com.google.pubsub.v1.PubsubMessage DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.PubsubMessage();
       }
    @@ -1231,16 +1290,16 @@ public static com.google.pubsub.v1.PubsubMessage getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public PubsubMessage parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new PubsubMessage(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public PubsubMessage parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new PubsubMessage(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1255,6 +1314,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.PubsubMessage getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java
    index d399c0366d2d..e1db91aa9512 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface PubsubMessageOrBuilder extends
    +public interface PubsubMessageOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PubsubMessage)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The message data field. If this field is empty, the message must contain
        * at least one attribute.
    @@ -18,6 +21,8 @@ public interface PubsubMessageOrBuilder extends
       com.google.protobuf.ByteString getData();
     
       /**
    +   *
    +   *
        * 
        * Optional attributes for this message.
        * 
    @@ -26,52 +31,52 @@ public interface PubsubMessageOrBuilder extends */ int getAttributesCount(); /** + * + * *
        * Optional attributes for this message.
        * 
    * * map<string, string> attributes = 2; */ - boolean containsAttributes( - java.lang.String key); - /** - * Use {@link #getAttributesMap()} instead. - */ + boolean containsAttributes(java.lang.String key); + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAttributes(); + java.util.Map getAttributes(); /** + * + * *
        * Optional attributes for this message.
        * 
    * * map<string, string> attributes = 2; */ - java.util.Map - getAttributesMap(); + java.util.Map getAttributesMap(); /** + * + * *
        * Optional attributes for this message.
        * 
    * * map<string, string> attributes = 2; */ - - java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
        * Optional attributes for this message.
        * 
    * * map<string, string> attributes = 2; */ - - java.lang.String getAttributesOrThrow( - java.lang.String key); + java.lang.String getAttributesOrThrow(java.lang.String key); /** + * + * *
        * 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
    @@ -83,6 +88,8 @@ java.lang.String getAttributesOrThrow(
        */
       java.lang.String getMessageId();
       /**
    +   *
    +   *
        * 
        * 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
    @@ -92,10 +99,11 @@ java.lang.String getAttributesOrThrow(
        *
        * string message_id = 3;
        */
    -  com.google.protobuf.ByteString
    -      getMessageIdBytes();
    +  com.google.protobuf.ByteString getMessageIdBytes();
     
       /**
    +   *
    +   *
        * 
        * 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
    @@ -106,6 +114,8 @@ java.lang.String getAttributesOrThrow(
        */
       boolean hasPublishTime();
       /**
    +   *
    +   *
        * 
        * 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
    @@ -116,6 +126,8 @@ java.lang.String getAttributesOrThrow(
        */
       com.google.protobuf.Timestamp getPublishTime();
       /**
    +   *
    +   *
        * 
        * 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
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    index 619702a0c749..f738cc912074 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    @@ -5,735 +5,786 @@
     
     public final class PubsubProto {
       private PubsubProto() {}
    -  public static void registerAllExtensions(
    -      com.google.protobuf.ExtensionRegistryLite registry) {
    -  }
     
    -  public static void registerAllExtensions(
    -      com.google.protobuf.ExtensionRegistry registry) {
    -    registerAllExtensions(
    -        (com.google.protobuf.ExtensionRegistryLite) registry);
    +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
    +
    +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
    +    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
       }
    +
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_Topic_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_Topic_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_Topic_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_PubsubMessage_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_PubsubMessage_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_GetTopicRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_GetTopicRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_PublishRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_PublishRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_PublishResponse_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_PublishResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ListTopicsRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ListTopicsRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ListTopicsResponse_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ListTopicsResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_Subscription_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_Subscription_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_Subscription_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_PushConfig_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_PushConfig_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ReceivedMessage_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ReceivedMessage_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_PullRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_PullRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_PullResponse_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_PullResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_Snapshot_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_Snapshot_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_SeekRequest_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_SeekRequest_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
    -    internal_static_google_pubsub_v1_SeekResponse_descriptor;
    -  static final 
    -    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_SeekResponse_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable;
     
    -  public static com.google.protobuf.Descriptors.FileDescriptor
    -      getDescriptor() {
    +  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
         return descriptor;
       }
    -  private static  com.google.protobuf.Descriptors.FileDescriptor
    -      descriptor;
    +
    +  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
    +
       static {
         java.lang.String[] descriptorData = {
    -      "\n\035google/pubsub/v1/pubsub.proto\022\020google." +
    -      "pubsub.v1\032\034google/api/annotations.proto\032" +
    -      "\036google/protobuf/duration.proto\032\033google/" +
    -      "protobuf/empty.proto\032 google/protobuf/fi" +
    -      "eld_mask.proto\032\037google/protobuf/timestam" +
    -      "p.proto\";\n\024MessageStoragePolicy\022#\n\033allow" +
    -      "ed_persistence_regions\030\001 \003(\t\"\301\001\n\005Topic\022\014" +
    -      "\n\004name\030\001 \001(\t\0223\n\006labels\030\002 \003(\0132#.google.pu" +
    -      "bsub.v1.Topic.LabelsEntry\022F\n\026message_sto" +
    -      "rage_policy\030\003 \001(\0132&.google.pubsub.v1.Mes" +
    -      "sageStoragePolicy\032-\n\013LabelsEntry\022\013\n\003key\030" +
    -      "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\333\001\n\rPubsubMessa" +
    -      "ge\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.g" +
    -      "oogle.pubsub.v1.PubsubMessage.Attributes" +
    -      "Entry\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_tim" +
    -      "e\030\004 \001(\0132\032.google.protobuf.Timestamp\0321\n\017A" +
    -      "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" +
    -      "(\t:\0028\001\" \n\017GetTopicRequest\022\r\n\005topic\030\001 \001(\t" +
    -      "\"m\n\022UpdateTopicRequest\022&\n\005topic\030\001 \001(\0132\027." +
    -      "google.pubsub.v1.Topic\022/\n\013update_mask\030\002 " +
    -      "\001(\0132\032.google.protobuf.FieldMask\"R\n\016Publi" +
    -      "shRequest\022\r\n\005topic\030\001 \001(\t\0221\n\010messages\030\002 \003" +
    -      "(\0132\037.google.pubsub.v1.PubsubMessage\"&\n\017P" +
    -      "ublishResponse\022\023\n\013message_ids\030\001 \003(\t\"K\n\021L" +
    -      "istTopicsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpag" +
    -      "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022List" +
    -      "TopicsResponse\022\'\n\006topics\030\001 \003(\0132\027.google." +
    -      "pubsub.v1.Topic\022\027\n\017next_page_token\030\002 \001(\t" +
    -      "\"U\n\035ListTopicSubscriptionsRequest\022\r\n\005top" +
    -      "ic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" +
    -      "n\030\003 \001(\t\"P\n\036ListTopicSubscriptionsRespons" +
    -      "e\022\025\n\rsubscriptions\030\001 \003(\t\022\027\n\017next_page_to" +
    -      "ken\030\002 \001(\t\"Q\n\031ListTopicSnapshotsRequest\022\r" +
    -      "\n\005topic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" +
    -      "_token\030\003 \001(\t\"H\n\032ListTopicSnapshotsRespon" +
    -      "se\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token" +
    -      "\030\002 \001(\t\"#\n\022DeleteTopicRequest\022\r\n\005topic\030\001 " +
    -      "\001(\t\"\204\003\n\014Subscription\022\014\n\004name\030\001 \001(\t\022\r\n\005to" +
    -      "pic\030\002 \001(\t\0221\n\013push_config\030\004 \001(\0132\034.google." +
    -      "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec" +
    -      "onds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(" +
    -      "\010\022=\n\032message_retention_duration\030\010 \001(\0132\031." +
    -      "google.protobuf.Duration\022:\n\006labels\030\t \003(\013" +
    -      "2*.google.pubsub.v1.Subscription.LabelsE" +
    -      "ntry\022=\n\021expiration_policy\030\013 \001(\0132\".google" +
    -      ".pubsub.v1.ExpirationPolicy\032-\n\013LabelsEnt" +
    -      "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\020Ex" +
    -      "pirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.pro" +
    -      "tobuf.Duration\"\230\001\n\nPushConfig\022\025\n\rpush_en" +
    -      "dpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.googl" +
    -      "e.pubsub.v1.PushConfig.AttributesEntry\0321" +
    -      "\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" +
    -      "\002 \001(\t:\0028\001\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001" +
    -      " \001(\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1" +
    -      ".PubsubMessage\".\n\026GetSubscriptionRequest" +
    -      "\022\024\n\014subscription\030\001 \001(\t\"\202\001\n\031UpdateSubscri" +
    -      "ptionRequest\0224\n\014subscription\030\001 \001(\0132\036.goo" +
    -      "gle.pubsub.v1.Subscription\022/\n\013update_mas" +
    -      "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"R\n\030L" +
    -      "istSubscriptionsRequest\022\017\n\007project\030\001 \001(\t" +
    -      "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" +
    -      "k\n\031ListSubscriptionsResponse\0225\n\rsubscrip" +
    -      "tions\030\001 \003(\0132\036.google.pubsub.v1.Subscript" +
    -      "ion\022\027\n\017next_page_token\030\002 \001(\t\"1\n\031DeleteSu" +
    -      "bscriptionRequest\022\024\n\014subscription\030\001 \001(\t\"" +
    -      "b\n\027ModifyPushConfigRequest\022\024\n\014subscripti" +
    -      "on\030\001 \001(\t\0221\n\013push_config\030\002 \001(\0132\034.google.p" +
    -      "ubsub.v1.PushConfig\"U\n\013PullRequest\022\024\n\014su" +
    -      "bscription\030\001 \001(\t\022\032\n\022return_immediately\030\002" +
    -      " \001(\010\022\024\n\014max_messages\030\003 \001(\005\"L\n\014PullRespon" +
    -      "se\022<\n\021received_messages\030\001 \003(\0132!.google.p" +
    -      "ubsub.v1.ReceivedMessage\"_\n\030ModifyAckDea" +
    -      "dlineRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ac" +
    -      "k_ids\030\004 \003(\t\022\034\n\024ack_deadline_seconds\030\003 \001(" +
    -      "\005\";\n\022AcknowledgeRequest\022\024\n\014subscription\030" +
    -      "\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024StreamingPull" +
    -      "Request\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids" +
    -      "\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030\003 \003(\005\022" +
    -      "\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022#\n\033stre" +
    -      "am_ack_deadline_seconds\030\005 \001(\005\"U\n\025Streami" +
    -      "ngPullResponse\022<\n\021received_messages\030\001 \003(" +
    -      "\0132!.google.pubsub.v1.ReceivedMessage\"\257\001\n" +
    -      "\025CreateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014" +
    -      "subscription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.goo" +
    -      "gle.pubsub.v1.CreateSnapshotRequest.Labe" +
    -      "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" +
    -      "alue\030\002 \001(\t:\0028\001\"v\n\025UpdateSnapshotRequest\022" +
    -      ",\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Sna" +
    -      "pshot\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" +
    -      "obuf.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(" +
    -      "\t\022\r\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032." +
    -      "google.protobuf.Timestamp\0226\n\006labels\030\004 \003(" +
    -      "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" +
    -      "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" +
    -      " \001(\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010snapsh" +
    -      "ot\030\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007proj" +
    -      "ect\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" +
    -      "en\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsna" +
    -      "pshots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot" +
    -      "\022\027\n\017next_page_token\030\002 \001(\t\")\n\025DeleteSnaps" +
    -      "hotRequest\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequ" +
    -      "est\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132" +
    -      "\032.google.protobuf.TimestampH\000\022\022\n\010snapsho" +
    -      "t\030\003 \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2\277\010\n\t" +
    -      "Publisher\022j\n\013CreateTopic\022\027.google.pubsub" +
    -      ".v1.Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223" +
    -      "\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022}\n" +
    -      "\013UpdateTopic\022$.google.pubsub.v1.UpdateTo" +
    -      "picRequest\032\027.google.pubsub.v1.Topic\"/\202\323\344" +
    -      "\223\002)2$/v1/{topic.name=projects/*/topics/*" +
    -      "}:\001*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publ" +
    -      "ishRequest\032!.google.pubsub.v1.PublishRes" +
    -      "ponse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/top" +
    -      "ics/*}:publish:\001*\022o\n\010GetTopic\022!.google.p" +
    -      "ubsub.v1.GetTopicRequest\032\027.google.pubsub" +
    -      ".v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*" +
    -      "/topics/*}\022\200\001\n\nListTopics\022#.google.pubsu" +
    -      "b.v1.ListTopicsRequest\032$.google.pubsub.v" +
    -      "1.ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{proje" +
    -      "ct=projects/*}/topics\022\262\001\n\026ListTopicSubsc" +
    -      "riptions\022/.google.pubsub.v1.ListTopicSub" +
    -      "scriptionsRequest\0320.google.pubsub.v1.Lis" +
    -      "tTopicSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1" +
    -      "/{topic=projects/*/topics/*}/subscriptio" +
    -      "ns\022\242\001\n\022ListTopicSnapshots\022+.google.pubsu" +
    -      "b.v1.ListTopicSnapshotsRequest\032,.google." +
    -      "pubsub.v1.ListTopicSnapshotsResponse\"1\202\323" +
    -      "\344\223\002+\022)/v1/{topic=projects/*/topics/*}/sn" +
    -      "apshots\022t\n\013DeleteTopic\022$.google.pubsub.v" +
    -      "1.DeleteTopicRequest\032\026.google.protobuf.E" +
    -      "mpty\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/topi" +
    -      "cs/*}2\371\021\n\nSubscriber\022\206\001\n\022CreateSubscript" +
    -      "ion\022\036.google.pubsub.v1.Subscription\032\036.go" +
    -      "ogle.pubsub.v1.Subscription\"0\202\323\344\223\002*\032%/v1" +
    -      "/{name=projects/*/subscriptions/*}:\001*\022\222\001" +
    -      "\n\017GetSubscription\022(.google.pubsub.v1.Get" +
    -      "SubscriptionRequest\032\036.google.pubsub.v1.S" +
    -      "ubscription\"5\202\323\344\223\002/\022-/v1/{subscription=p" +
    -      "rojects/*/subscriptions/*}\022\240\001\n\022UpdateSub" +
    -      "scription\022+.google.pubsub.v1.UpdateSubsc" +
    -      "riptionRequest\032\036.google.pubsub.v1.Subscr" +
    -      "iption\"=\202\323\344\223\002722/v1/{subscription.name=p" +
    -      "rojects/*/subscriptions/*}:\001*\022\234\001\n\021ListSu" +
    -      "bscriptions\022*.google.pubsub.v1.ListSubsc" +
    -      "riptionsRequest\032+.google.pubsub.v1.ListS" +
    -      "ubscriptionsResponse\".\202\323\344\223\002(\022&/v1/{proje" +
    -      "ct=projects/*}/subscriptions\022\220\001\n\022DeleteS" +
    -      "ubscription\022+.google.pubsub.v1.DeleteSub" +
    -      "scriptionRequest\032\026.google.protobuf.Empty" +
    -      "\"5\202\323\344\223\002/*-/v1/{subscription=projects/*/s" +
    -      "ubscriptions/*}\022\243\001\n\021ModifyAckDeadline\022*." +
    -      "google.pubsub.v1.ModifyAckDeadlineReques" +
    -      "t\032\026.google.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{" +
    -      "subscription=projects/*/subscriptions/*}" +
    -      ":modifyAckDeadline:\001*\022\221\001\n\013Acknowledge\022$." +
    -      "google.pubsub.v1.AcknowledgeRequest\032\026.go" +
    -      "ogle.protobuf.Empty\"D\202\323\344\223\002>\"9/v1/{subscr" +
    -      "iption=projects/*/subscriptions/*}:ackno" +
    -      "wledge:\001*\022\204\001\n\004Pull\022\035.google.pubsub.v1.Pu" +
    -      "llRequest\032\036.google.pubsub.v1.PullRespons" +
    -      "e\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/" +
    -      "subscriptions/*}:pull:\001*\022f\n\rStreamingPul" +
    -      "l\022&.google.pubsub.v1.StreamingPullReques" +
    -      "t\032\'.google.pubsub.v1.StreamingPullRespon" +
    -      "se\"\000(\0010\001\022\240\001\n\020ModifyPushConfig\022).google.p" +
    -      "ubsub.v1.ModifyPushConfigRequest\032\026.googl" +
    -      "e.protobuf.Empty\"I\202\323\344\223\002C\">/v1/{subscript" +
    -      "ion=projects/*/subscriptions/*}:modifyPu" +
    -      "shConfig:\001*\022~\n\013GetSnapshot\022$.google.pubs" +
    -      "ub.v1.GetSnapshotRequest\032\032.google.pubsub" +
    -      ".v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{snapshot=proj" +
    -      "ects/*/snapshots/*}\022\214\001\n\rListSnapshots\022&." +
    -      "google.pubsub.v1.ListSnapshotsRequest\032\'." +
    -      "google.pubsub.v1.ListSnapshotsResponse\"*" +
    -      "\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapsho" +
    -      "ts\022\203\001\n\016CreateSnapshot\022\'.google.pubsub.v1" +
    -      ".CreateSnapshotRequest\032\032.google.pubsub.v" +
    -      "1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=projects/*" +
    -      "/snapshots/*}:\001*\022\214\001\n\016UpdateSnapshot\022\'.go" +
    -      "ogle.pubsub.v1.UpdateSnapshotRequest\032\032.g" +
    -      "oogle.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{s" +
    -      "napshot.name=projects/*/snapshots/*}:\001*\022" +
    -      "\200\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.De" +
    -      "leteSnapshotRequest\032\026.google.protobuf.Em" +
    -      "pty\"-\202\323\344\223\002\'*%/v1/{snapshot=projects/*/sn" +
    -      "apshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.S" +
    -      "eekRequest\032\036.google.pubsub.v1.SeekRespon" +
    -      "se\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*" +
    -      "/subscriptions/*}:seek:\001*B\222\001\n\024com.google" +
    -      ".pubsub.v1B\013PubsubProtoP\001Z6google.golang" +
    -      ".org/genproto/googleapis/pubsub/v1;pubsu" +
    -      "b\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\C" +
    -      "loud\\PubSub\\V1b\006proto3"
    +      "\n\035google/pubsub/v1/pubsub.proto\022\020google."
    +          + "pubsub.v1\032\034google/api/annotations.proto\032"
    +          + "\036google/protobuf/duration.proto\032\033google/"
    +          + "protobuf/empty.proto\032 google/protobuf/fi"
    +          + "eld_mask.proto\032\037google/protobuf/timestam"
    +          + "p.proto\";\n\024MessageStoragePolicy\022#\n\033allow"
    +          + "ed_persistence_regions\030\001 \003(\t\"\301\001\n\005Topic\022\014"
    +          + "\n\004name\030\001 \001(\t\0223\n\006labels\030\002 \003(\0132#.google.pu"
    +          + "bsub.v1.Topic.LabelsEntry\022F\n\026message_sto"
    +          + "rage_policy\030\003 \001(\0132&.google.pubsub.v1.Mes"
    +          + "sageStoragePolicy\032-\n\013LabelsEntry\022\013\n\003key\030"
    +          + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\333\001\n\rPubsubMessa"
    +          + "ge\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.g"
    +          + "oogle.pubsub.v1.PubsubMessage.Attributes"
    +          + "Entry\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_tim"
    +          + "e\030\004 \001(\0132\032.google.protobuf.Timestamp\0321\n\017A"
    +          + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
    +          + "(\t:\0028\001\" \n\017GetTopicRequest\022\r\n\005topic\030\001 \001(\t"
    +          + "\"m\n\022UpdateTopicRequest\022&\n\005topic\030\001 \001(\0132\027."
    +          + "google.pubsub.v1.Topic\022/\n\013update_mask\030\002 "
    +          + "\001(\0132\032.google.protobuf.FieldMask\"R\n\016Publi"
    +          + "shRequest\022\r\n\005topic\030\001 \001(\t\0221\n\010messages\030\002 \003"
    +          + "(\0132\037.google.pubsub.v1.PubsubMessage\"&\n\017P"
    +          + "ublishResponse\022\023\n\013message_ids\030\001 \003(\t\"K\n\021L"
    +          + "istTopicsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpag"
    +          + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022List"
    +          + "TopicsResponse\022\'\n\006topics\030\001 \003(\0132\027.google."
    +          + "pubsub.v1.Topic\022\027\n\017next_page_token\030\002 \001(\t"
    +          + "\"U\n\035ListTopicSubscriptionsRequest\022\r\n\005top"
    +          + "ic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke"
    +          + "n\030\003 \001(\t\"P\n\036ListTopicSubscriptionsRespons"
    +          + "e\022\025\n\rsubscriptions\030\001 \003(\t\022\027\n\017next_page_to"
    +          + "ken\030\002 \001(\t\"Q\n\031ListTopicSnapshotsRequest\022\r"
    +          + "\n\005topic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage"
    +          + "_token\030\003 \001(\t\"H\n\032ListTopicSnapshotsRespon"
    +          + "se\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token"
    +          + "\030\002 \001(\t\"#\n\022DeleteTopicRequest\022\r\n\005topic\030\001 "
    +          + "\001(\t\"\204\003\n\014Subscription\022\014\n\004name\030\001 \001(\t\022\r\n\005to"
    +          + "pic\030\002 \001(\t\0221\n\013push_config\030\004 \001(\0132\034.google."
    +          + "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec"
    +          + "onds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001("
    +          + "\010\022=\n\032message_retention_duration\030\010 \001(\0132\031."
    +          + "google.protobuf.Duration\022:\n\006labels\030\t \003(\013"
    +          + "2*.google.pubsub.v1.Subscription.LabelsE"
    +          + "ntry\022=\n\021expiration_policy\030\013 \001(\0132\".google"
    +          + ".pubsub.v1.ExpirationPolicy\032-\n\013LabelsEnt"
    +          + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\020Ex"
    +          + "pirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.pro"
    +          + "tobuf.Duration\"\230\001\n\nPushConfig\022\025\n\rpush_en"
    +          + "dpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.googl"
    +          + "e.pubsub.v1.PushConfig.AttributesEntry\0321"
    +          + "\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
    +          + "\002 \001(\t:\0028\001\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001"
    +          + " \001(\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1"
    +          + ".PubsubMessage\".\n\026GetSubscriptionRequest"
    +          + "\022\024\n\014subscription\030\001 \001(\t\"\202\001\n\031UpdateSubscri"
    +          + "ptionRequest\0224\n\014subscription\030\001 \001(\0132\036.goo"
    +          + "gle.pubsub.v1.Subscription\022/\n\013update_mas"
    +          + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"R\n\030L"
    +          + "istSubscriptionsRequest\022\017\n\007project\030\001 \001(\t"
    +          + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\""
    +          + "k\n\031ListSubscriptionsResponse\0225\n\rsubscrip"
    +          + "tions\030\001 \003(\0132\036.google.pubsub.v1.Subscript"
    +          + "ion\022\027\n\017next_page_token\030\002 \001(\t\"1\n\031DeleteSu"
    +          + "bscriptionRequest\022\024\n\014subscription\030\001 \001(\t\""
    +          + "b\n\027ModifyPushConfigRequest\022\024\n\014subscripti"
    +          + "on\030\001 \001(\t\0221\n\013push_config\030\002 \001(\0132\034.google.p"
    +          + "ubsub.v1.PushConfig\"U\n\013PullRequest\022\024\n\014su"
    +          + "bscription\030\001 \001(\t\022\032\n\022return_immediately\030\002"
    +          + " \001(\010\022\024\n\014max_messages\030\003 \001(\005\"L\n\014PullRespon"
    +          + "se\022<\n\021received_messages\030\001 \003(\0132!.google.p"
    +          + "ubsub.v1.ReceivedMessage\"_\n\030ModifyAckDea"
    +          + "dlineRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ac"
    +          + "k_ids\030\004 \003(\t\022\034\n\024ack_deadline_seconds\030\003 \001("
    +          + "\005\";\n\022AcknowledgeRequest\022\024\n\014subscription\030"
    +          + "\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024StreamingPull"
    +          + "Request\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids"
    +          + "\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030\003 \003(\005\022"
    +          + "\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022#\n\033stre"
    +          + "am_ack_deadline_seconds\030\005 \001(\005\"U\n\025Streami"
    +          + "ngPullResponse\022<\n\021received_messages\030\001 \003("
    +          + "\0132!.google.pubsub.v1.ReceivedMessage\"\257\001\n"
    +          + "\025CreateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014"
    +          + "subscription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.goo"
    +          + "gle.pubsub.v1.CreateSnapshotRequest.Labe"
    +          + "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
    +          + "alue\030\002 \001(\t:\0028\001\"v\n\025UpdateSnapshotRequest\022"
    +          + ",\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Sna"
    +          + "pshot\022/\n\013update_mask\030\002 \001(\0132\032.google.prot"
    +          + "obuf.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001("
    +          + "\t\022\r\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032."
    +          + "google.protobuf.Timestamp\0226\n\006labels\030\004 \003("
    +          + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr"
    +          + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
    +          + " \001(\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010snapsh"
    +          + "ot\030\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007proj"
    +          + "ect\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok"
    +          + "en\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsna"
    +          + "pshots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot"
    +          + "\022\027\n\017next_page_token\030\002 \001(\t\")\n\025DeleteSnaps"
    +          + "hotRequest\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequ"
    +          + "est\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132"
    +          + "\032.google.protobuf.TimestampH\000\022\022\n\010snapsho"
    +          + "t\030\003 \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2\277\010\n\t"
    +          + "Publisher\022j\n\013CreateTopic\022\027.google.pubsub"
    +          + ".v1.Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223"
    +          + "\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022}\n"
    +          + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTo"
    +          + "picRequest\032\027.google.pubsub.v1.Topic\"/\202\323\344"
    +          + "\223\002)2$/v1/{topic.name=projects/*/topics/*"
    +          + "}:\001*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publ"
    +          + "ishRequest\032!.google.pubsub.v1.PublishRes"
    +          + "ponse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/top"
    +          + "ics/*}:publish:\001*\022o\n\010GetTopic\022!.google.p"
    +          + "ubsub.v1.GetTopicRequest\032\027.google.pubsub"
    +          + ".v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*"
    +          + "/topics/*}\022\200\001\n\nListTopics\022#.google.pubsu"
    +          + "b.v1.ListTopicsRequest\032$.google.pubsub.v"
    +          + "1.ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{proje"
    +          + "ct=projects/*}/topics\022\262\001\n\026ListTopicSubsc"
    +          + "riptions\022/.google.pubsub.v1.ListTopicSub"
    +          + "scriptionsRequest\0320.google.pubsub.v1.Lis"
    +          + "tTopicSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1"
    +          + "/{topic=projects/*/topics/*}/subscriptio"
    +          + "ns\022\242\001\n\022ListTopicSnapshots\022+.google.pubsu"
    +          + "b.v1.ListTopicSnapshotsRequest\032,.google."
    +          + "pubsub.v1.ListTopicSnapshotsResponse\"1\202\323"
    +          + "\344\223\002+\022)/v1/{topic=projects/*/topics/*}/sn"
    +          + "apshots\022t\n\013DeleteTopic\022$.google.pubsub.v"
    +          + "1.DeleteTopicRequest\032\026.google.protobuf.E"
    +          + "mpty\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/topi"
    +          + "cs/*}2\371\021\n\nSubscriber\022\206\001\n\022CreateSubscript"
    +          + "ion\022\036.google.pubsub.v1.Subscription\032\036.go"
    +          + "ogle.pubsub.v1.Subscription\"0\202\323\344\223\002*\032%/v1"
    +          + "/{name=projects/*/subscriptions/*}:\001*\022\222\001"
    +          + "\n\017GetSubscription\022(.google.pubsub.v1.Get"
    +          + "SubscriptionRequest\032\036.google.pubsub.v1.S"
    +          + "ubscription\"5\202\323\344\223\002/\022-/v1/{subscription=p"
    +          + "rojects/*/subscriptions/*}\022\240\001\n\022UpdateSub"
    +          + "scription\022+.google.pubsub.v1.UpdateSubsc"
    +          + "riptionRequest\032\036.google.pubsub.v1.Subscr"
    +          + "iption\"=\202\323\344\223\002722/v1/{subscription.name=p"
    +          + "rojects/*/subscriptions/*}:\001*\022\234\001\n\021ListSu"
    +          + "bscriptions\022*.google.pubsub.v1.ListSubsc"
    +          + "riptionsRequest\032+.google.pubsub.v1.ListS"
    +          + "ubscriptionsResponse\".\202\323\344\223\002(\022&/v1/{proje"
    +          + "ct=projects/*}/subscriptions\022\220\001\n\022DeleteS"
    +          + "ubscription\022+.google.pubsub.v1.DeleteSub"
    +          + "scriptionRequest\032\026.google.protobuf.Empty"
    +          + "\"5\202\323\344\223\002/*-/v1/{subscription=projects/*/s"
    +          + "ubscriptions/*}\022\243\001\n\021ModifyAckDeadline\022*."
    +          + "google.pubsub.v1.ModifyAckDeadlineReques"
    +          + "t\032\026.google.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{"
    +          + "subscription=projects/*/subscriptions/*}"
    +          + ":modifyAckDeadline:\001*\022\221\001\n\013Acknowledge\022$."
    +          + "google.pubsub.v1.AcknowledgeRequest\032\026.go"
    +          + "ogle.protobuf.Empty\"D\202\323\344\223\002>\"9/v1/{subscr"
    +          + "iption=projects/*/subscriptions/*}:ackno"
    +          + "wledge:\001*\022\204\001\n\004Pull\022\035.google.pubsub.v1.Pu"
    +          + "llRequest\032\036.google.pubsub.v1.PullRespons"
    +          + "e\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/"
    +          + "subscriptions/*}:pull:\001*\022f\n\rStreamingPul"
    +          + "l\022&.google.pubsub.v1.StreamingPullReques"
    +          + "t\032\'.google.pubsub.v1.StreamingPullRespon"
    +          + "se\"\000(\0010\001\022\240\001\n\020ModifyPushConfig\022).google.p"
    +          + "ubsub.v1.ModifyPushConfigRequest\032\026.googl"
    +          + "e.protobuf.Empty\"I\202\323\344\223\002C\">/v1/{subscript"
    +          + "ion=projects/*/subscriptions/*}:modifyPu"
    +          + "shConfig:\001*\022~\n\013GetSnapshot\022$.google.pubs"
    +          + "ub.v1.GetSnapshotRequest\032\032.google.pubsub"
    +          + ".v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{snapshot=proj"
    +          + "ects/*/snapshots/*}\022\214\001\n\rListSnapshots\022&."
    +          + "google.pubsub.v1.ListSnapshotsRequest\032\'."
    +          + "google.pubsub.v1.ListSnapshotsResponse\"*"
    +          + "\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapsho"
    +          + "ts\022\203\001\n\016CreateSnapshot\022\'.google.pubsub.v1"
    +          + ".CreateSnapshotRequest\032\032.google.pubsub.v"
    +          + "1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=projects/*"
    +          + "/snapshots/*}:\001*\022\214\001\n\016UpdateSnapshot\022\'.go"
    +          + "ogle.pubsub.v1.UpdateSnapshotRequest\032\032.g"
    +          + "oogle.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{s"
    +          + "napshot.name=projects/*/snapshots/*}:\001*\022"
    +          + "\200\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.De"
    +          + "leteSnapshotRequest\032\026.google.protobuf.Em"
    +          + "pty\"-\202\323\344\223\002\'*%/v1/{snapshot=projects/*/sn"
    +          + "apshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.S"
    +          + "eekRequest\032\036.google.pubsub.v1.SeekRespon"
    +          + "se\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*"
    +          + "/subscriptions/*}:seek:\001*B\222\001\n\024com.google"
    +          + ".pubsub.v1B\013PubsubProtoP\001Z6google.golang"
    +          + ".org/genproto/googleapis/pubsub/v1;pubsu"
    +          + "b\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\C"
    +          + "loud\\PubSub\\V1b\006proto3"
         };
         com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
    -        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
    +        new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
               public com.google.protobuf.ExtensionRegistry assignDescriptors(
                   com.google.protobuf.Descriptors.FileDescriptor root) {
                 descriptor = root;
                 return null;
               }
             };
    -    com.google.protobuf.Descriptors.FileDescriptor
    -      .internalBuildGeneratedFileFrom(descriptorData,
    +    com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
    +        descriptorData,
             new com.google.protobuf.Descriptors.FileDescriptor[] {
               com.google.api.AnnotationsProto.getDescriptor(),
               com.google.protobuf.DurationProto.getDescriptor(),
               com.google.protobuf.EmptyProto.getDescriptor(),
               com.google.protobuf.FieldMaskProto.getDescriptor(),
               com.google.protobuf.TimestampProto.getDescriptor(),
    -        }, assigner);
    +        },
    +        assigner);
         internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor =
    -      getDescriptor().getMessageTypes().get(0);
    -    internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor,
    -        new java.lang.String[] { "AllowedPersistenceRegions", });
    -    internal_static_google_pubsub_v1_Topic_descriptor =
    -      getDescriptor().getMessageTypes().get(1);
    -    internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_Topic_descriptor,
    -        new java.lang.String[] { "Name", "Labels", "MessageStoragePolicy", });
    +        getDescriptor().getMessageTypes().get(0);
    +    internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor,
    +            new java.lang.String[] {
    +              "AllowedPersistenceRegions",
    +            });
    +    internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(1);
    +    internal_static_google_pubsub_v1_Topic_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_Topic_descriptor,
    +            new java.lang.String[] {
    +              "Name", "Labels", "MessageStoragePolicy",
    +            });
         internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor =
    -      internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0);
    -    internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor,
    -        new java.lang.String[] { "Key", "Value", });
    +        internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0);
    +    internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor,
    +            new java.lang.String[] {
    +              "Key", "Value",
    +            });
         internal_static_google_pubsub_v1_PubsubMessage_descriptor =
    -      getDescriptor().getMessageTypes().get(2);
    -    internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_PubsubMessage_descriptor,
    -        new java.lang.String[] { "Data", "Attributes", "MessageId", "PublishTime", });
    +        getDescriptor().getMessageTypes().get(2);
    +    internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_PubsubMessage_descriptor,
    +            new java.lang.String[] {
    +              "Data", "Attributes", "MessageId", "PublishTime",
    +            });
         internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor =
    -      internal_static_google_pubsub_v1_PubsubMessage_descriptor.getNestedTypes().get(0);
    -    internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor,
    -        new java.lang.String[] { "Key", "Value", });
    +        internal_static_google_pubsub_v1_PubsubMessage_descriptor.getNestedTypes().get(0);
    +    internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor,
    +            new java.lang.String[] {
    +              "Key", "Value",
    +            });
         internal_static_google_pubsub_v1_GetTopicRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(3);
    -    internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_GetTopicRequest_descriptor,
    -        new java.lang.String[] { "Topic", });
    +        getDescriptor().getMessageTypes().get(3);
    +    internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_GetTopicRequest_descriptor,
    +            new java.lang.String[] {
    +              "Topic",
    +            });
         internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(4);
    -    internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor,
    -        new java.lang.String[] { "Topic", "UpdateMask", });
    +        getDescriptor().getMessageTypes().get(4);
    +    internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor,
    +            new java.lang.String[] {
    +              "Topic", "UpdateMask",
    +            });
         internal_static_google_pubsub_v1_PublishRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(5);
    -    internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_PublishRequest_descriptor,
    -        new java.lang.String[] { "Topic", "Messages", });
    +        getDescriptor().getMessageTypes().get(5);
    +    internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_PublishRequest_descriptor,
    +            new java.lang.String[] {
    +              "Topic", "Messages",
    +            });
         internal_static_google_pubsub_v1_PublishResponse_descriptor =
    -      getDescriptor().getMessageTypes().get(6);
    -    internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_PublishResponse_descriptor,
    -        new java.lang.String[] { "MessageIds", });
    +        getDescriptor().getMessageTypes().get(6);
    +    internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_PublishResponse_descriptor,
    +            new java.lang.String[] {
    +              "MessageIds",
    +            });
         internal_static_google_pubsub_v1_ListTopicsRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(7);
    -    internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ListTopicsRequest_descriptor,
    -        new java.lang.String[] { "Project", "PageSize", "PageToken", });
    +        getDescriptor().getMessageTypes().get(7);
    +    internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ListTopicsRequest_descriptor,
    +            new java.lang.String[] {
    +              "Project", "PageSize", "PageToken",
    +            });
         internal_static_google_pubsub_v1_ListTopicsResponse_descriptor =
    -      getDescriptor().getMessageTypes().get(8);
    -    internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ListTopicsResponse_descriptor,
    -        new java.lang.String[] { "Topics", "NextPageToken", });
    +        getDescriptor().getMessageTypes().get(8);
    +    internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ListTopicsResponse_descriptor,
    +            new java.lang.String[] {
    +              "Topics", "NextPageToken",
    +            });
         internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(9);
    -    internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor,
    -        new java.lang.String[] { "Topic", "PageSize", "PageToken", });
    +        getDescriptor().getMessageTypes().get(9);
    +    internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor,
    +            new java.lang.String[] {
    +              "Topic", "PageSize", "PageToken",
    +            });
         internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor =
    -      getDescriptor().getMessageTypes().get(10);
    -    internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor,
    -        new java.lang.String[] { "Subscriptions", "NextPageToken", });
    +        getDescriptor().getMessageTypes().get(10);
    +    internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor,
    +            new java.lang.String[] {
    +              "Subscriptions", "NextPageToken",
    +            });
         internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(11);
    -    internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor,
    -        new java.lang.String[] { "Topic", "PageSize", "PageToken", });
    +        getDescriptor().getMessageTypes().get(11);
    +    internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor,
    +            new java.lang.String[] {
    +              "Topic", "PageSize", "PageToken",
    +            });
         internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor =
    -      getDescriptor().getMessageTypes().get(12);
    -    internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor,
    -        new java.lang.String[] { "Snapshots", "NextPageToken", });
    +        getDescriptor().getMessageTypes().get(12);
    +    internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor,
    +            new java.lang.String[] {
    +              "Snapshots", "NextPageToken",
    +            });
         internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(13);
    -    internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor,
    -        new java.lang.String[] { "Topic", });
    +        getDescriptor().getMessageTypes().get(13);
    +    internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor,
    +            new java.lang.String[] {
    +              "Topic",
    +            });
         internal_static_google_pubsub_v1_Subscription_descriptor =
    -      getDescriptor().getMessageTypes().get(14);
    -    internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_Subscription_descriptor,
    -        new java.lang.String[] { "Name", "Topic", "PushConfig", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", "Labels", "ExpirationPolicy", });
    +        getDescriptor().getMessageTypes().get(14);
    +    internal_static_google_pubsub_v1_Subscription_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_Subscription_descriptor,
    +            new java.lang.String[] {
    +              "Name",
    +              "Topic",
    +              "PushConfig",
    +              "AckDeadlineSeconds",
    +              "RetainAckedMessages",
    +              "MessageRetentionDuration",
    +              "Labels",
    +              "ExpirationPolicy",
    +            });
         internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor =
    -      internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0);
    -    internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor,
    -        new java.lang.String[] { "Key", "Value", });
    +        internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0);
    +    internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor,
    +            new java.lang.String[] {
    +              "Key", "Value",
    +            });
         internal_static_google_pubsub_v1_ExpirationPolicy_descriptor =
    -      getDescriptor().getMessageTypes().get(15);
    -    internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ExpirationPolicy_descriptor,
    -        new java.lang.String[] { "Ttl", });
    +        getDescriptor().getMessageTypes().get(15);
    +    internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ExpirationPolicy_descriptor,
    +            new java.lang.String[] {
    +              "Ttl",
    +            });
         internal_static_google_pubsub_v1_PushConfig_descriptor =
    -      getDescriptor().getMessageTypes().get(16);
    -    internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_PushConfig_descriptor,
    -        new java.lang.String[] { "PushEndpoint", "Attributes", });
    +        getDescriptor().getMessageTypes().get(16);
    +    internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_PushConfig_descriptor,
    +            new java.lang.String[] {
    +              "PushEndpoint", "Attributes",
    +            });
         internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor =
    -      internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0);
    -    internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor,
    -        new java.lang.String[] { "Key", "Value", });
    +        internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0);
    +    internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor,
    +            new java.lang.String[] {
    +              "Key", "Value",
    +            });
         internal_static_google_pubsub_v1_ReceivedMessage_descriptor =
    -      getDescriptor().getMessageTypes().get(17);
    -    internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ReceivedMessage_descriptor,
    -        new java.lang.String[] { "AckId", "Message", });
    +        getDescriptor().getMessageTypes().get(17);
    +    internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ReceivedMessage_descriptor,
    +            new java.lang.String[] {
    +              "AckId", "Message",
    +            });
         internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(18);
    -    internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor,
    -        new java.lang.String[] { "Subscription", });
    +        getDescriptor().getMessageTypes().get(18);
    +    internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor,
    +            new java.lang.String[] {
    +              "Subscription",
    +            });
         internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(19);
    -    internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor,
    -        new java.lang.String[] { "Subscription", "UpdateMask", });
    +        getDescriptor().getMessageTypes().get(19);
    +    internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor,
    +            new java.lang.String[] {
    +              "Subscription", "UpdateMask",
    +            });
         internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(20);
    -    internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor,
    -        new java.lang.String[] { "Project", "PageSize", "PageToken", });
    +        getDescriptor().getMessageTypes().get(20);
    +    internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor,
    +            new java.lang.String[] {
    +              "Project", "PageSize", "PageToken",
    +            });
         internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor =
    -      getDescriptor().getMessageTypes().get(21);
    -    internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor,
    -        new java.lang.String[] { "Subscriptions", "NextPageToken", });
    +        getDescriptor().getMessageTypes().get(21);
    +    internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor,
    +            new java.lang.String[] {
    +              "Subscriptions", "NextPageToken",
    +            });
         internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(22);
    -    internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor,
    -        new java.lang.String[] { "Subscription", });
    +        getDescriptor().getMessageTypes().get(22);
    +    internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor,
    +            new java.lang.String[] {
    +              "Subscription",
    +            });
         internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(23);
    -    internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor,
    -        new java.lang.String[] { "Subscription", "PushConfig", });
    +        getDescriptor().getMessageTypes().get(23);
    +    internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor,
    +            new java.lang.String[] {
    +              "Subscription", "PushConfig",
    +            });
         internal_static_google_pubsub_v1_PullRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(24);
    -    internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_PullRequest_descriptor,
    -        new java.lang.String[] { "Subscription", "ReturnImmediately", "MaxMessages", });
    +        getDescriptor().getMessageTypes().get(24);
    +    internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_PullRequest_descriptor,
    +            new java.lang.String[] {
    +              "Subscription", "ReturnImmediately", "MaxMessages",
    +            });
         internal_static_google_pubsub_v1_PullResponse_descriptor =
    -      getDescriptor().getMessageTypes().get(25);
    -    internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_PullResponse_descriptor,
    -        new java.lang.String[] { "ReceivedMessages", });
    +        getDescriptor().getMessageTypes().get(25);
    +    internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_PullResponse_descriptor,
    +            new java.lang.String[] {
    +              "ReceivedMessages",
    +            });
         internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(26);
    -    internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor,
    -        new java.lang.String[] { "Subscription", "AckIds", "AckDeadlineSeconds", });
    +        getDescriptor().getMessageTypes().get(26);
    +    internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor,
    +            new java.lang.String[] {
    +              "Subscription", "AckIds", "AckDeadlineSeconds",
    +            });
         internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(27);
    -    internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor,
    -        new java.lang.String[] { "Subscription", "AckIds", });
    +        getDescriptor().getMessageTypes().get(27);
    +    internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor,
    +            new java.lang.String[] {
    +              "Subscription", "AckIds",
    +            });
         internal_static_google_pubsub_v1_StreamingPullRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(28);
    -    internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_StreamingPullRequest_descriptor,
    -        new java.lang.String[] { "Subscription", "AckIds", "ModifyDeadlineSeconds", "ModifyDeadlineAckIds", "StreamAckDeadlineSeconds", });
    +        getDescriptor().getMessageTypes().get(28);
    +    internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_StreamingPullRequest_descriptor,
    +            new java.lang.String[] {
    +              "Subscription",
    +              "AckIds",
    +              "ModifyDeadlineSeconds",
    +              "ModifyDeadlineAckIds",
    +              "StreamAckDeadlineSeconds",
    +            });
         internal_static_google_pubsub_v1_StreamingPullResponse_descriptor =
    -      getDescriptor().getMessageTypes().get(29);
    -    internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_StreamingPullResponse_descriptor,
    -        new java.lang.String[] { "ReceivedMessages", });
    +        getDescriptor().getMessageTypes().get(29);
    +    internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_StreamingPullResponse_descriptor,
    +            new java.lang.String[] {
    +              "ReceivedMessages",
    +            });
         internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(30);
    -    internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor,
    -        new java.lang.String[] { "Name", "Subscription", "Labels", });
    +        getDescriptor().getMessageTypes().get(30);
    +    internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor,
    +            new java.lang.String[] {
    +              "Name", "Subscription", "Labels",
    +            });
         internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor =
    -      internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0);
    -    internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor,
    -        new java.lang.String[] { "Key", "Value", });
    +        internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0);
    +    internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor,
    +            new java.lang.String[] {
    +              "Key", "Value",
    +            });
         internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(31);
    -    internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor,
    -        new java.lang.String[] { "Snapshot", "UpdateMask", });
    +        getDescriptor().getMessageTypes().get(31);
    +    internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor,
    +            new java.lang.String[] {
    +              "Snapshot", "UpdateMask",
    +            });
         internal_static_google_pubsub_v1_Snapshot_descriptor =
    -      getDescriptor().getMessageTypes().get(32);
    -    internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_Snapshot_descriptor,
    -        new java.lang.String[] { "Name", "Topic", "ExpireTime", "Labels", });
    +        getDescriptor().getMessageTypes().get(32);
    +    internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_Snapshot_descriptor,
    +            new java.lang.String[] {
    +              "Name", "Topic", "ExpireTime", "Labels",
    +            });
         internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor =
    -      internal_static_google_pubsub_v1_Snapshot_descriptor.getNestedTypes().get(0);
    -    internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor,
    -        new java.lang.String[] { "Key", "Value", });
    +        internal_static_google_pubsub_v1_Snapshot_descriptor.getNestedTypes().get(0);
    +    internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor,
    +            new java.lang.String[] {
    +              "Key", "Value",
    +            });
         internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(33);
    -    internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor,
    -        new java.lang.String[] { "Snapshot", });
    +        getDescriptor().getMessageTypes().get(33);
    +    internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor,
    +            new java.lang.String[] {
    +              "Snapshot",
    +            });
         internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(34);
    -    internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor,
    -        new java.lang.String[] { "Project", "PageSize", "PageToken", });
    +        getDescriptor().getMessageTypes().get(34);
    +    internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor,
    +            new java.lang.String[] {
    +              "Project", "PageSize", "PageToken",
    +            });
         internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor =
    -      getDescriptor().getMessageTypes().get(35);
    -    internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor,
    -        new java.lang.String[] { "Snapshots", "NextPageToken", });
    +        getDescriptor().getMessageTypes().get(35);
    +    internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor,
    +            new java.lang.String[] {
    +              "Snapshots", "NextPageToken",
    +            });
         internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(36);
    -    internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor,
    -        new java.lang.String[] { "Snapshot", });
    +        getDescriptor().getMessageTypes().get(36);
    +    internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor,
    +            new java.lang.String[] {
    +              "Snapshot",
    +            });
         internal_static_google_pubsub_v1_SeekRequest_descriptor =
    -      getDescriptor().getMessageTypes().get(37);
    -    internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_SeekRequest_descriptor,
    -        new java.lang.String[] { "Subscription", "Time", "Snapshot", "Target", });
    +        getDescriptor().getMessageTypes().get(37);
    +    internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_SeekRequest_descriptor,
    +            new java.lang.String[] {
    +              "Subscription", "Time", "Snapshot", "Target",
    +            });
         internal_static_google_pubsub_v1_SeekResponse_descriptor =
    -      getDescriptor().getMessageTypes().get(38);
    -    internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new
    -      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    -        internal_static_google_pubsub_v1_SeekResponse_descriptor,
    -        new java.lang.String[] { });
    +        getDescriptor().getMessageTypes().get(38);
    +    internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {});
         com.google.protobuf.ExtensionRegistry registry =
             com.google.protobuf.ExtensionRegistry.newInstance();
         registry.add(com.google.api.AnnotationsProto.http);
    -    com.google.protobuf.Descriptors.FileDescriptor
    -        .internalUpdateFileDescriptor(descriptor, registry);
    +    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
    +        descriptor, registry);
         com.google.api.AnnotationsProto.getDescriptor();
         com.google.protobuf.DurationProto.getDescriptor();
         com.google.protobuf.EmptyProto.getDescriptor();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    index 4c1605f037e0..0835c9b42936 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    @@ -4,21 +4,24 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the `Pull` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.PullRequest} */ -public final class PullRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PullRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullRequest) PullRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PullRequest.newBuilder() to construct. private PullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PullRequest() { subscription_ = ""; returnImmediately_ = false; @@ -26,10 +29,10 @@ private PullRequest() { } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PullRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,50 +52,51 @@ private PullRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - subscription_ = s; - break; - } - case 16: { - - returnImmediately_ = input.readBool(); - break; - } - case 24: { - - maxMessages_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + subscription_ = s; + break; + } + case 16: + { + returnImmediately_ = input.readBool(); + break; + } + case 24: + { + maxMessages_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.PullRequest.class, com.google.pubsub.v1.PullRequest.Builder.class); } @@ -100,6 +104,8 @@ private PullRequest( public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** + * + * *
        * The subscription from which messages should be pulled.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -112,14 +118,15 @@ public java.lang.String getSubscription() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           subscription_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The subscription from which messages should be pulled.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -127,13 +134,11 @@ public java.lang.String getSubscription() {
        *
        * string subscription = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getSubscriptionBytes() {
    +  public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           subscription_ = b;
           return b;
         } else {
    @@ -144,6 +149,8 @@ public java.lang.String getSubscription() {
       public static final int RETURN_IMMEDIATELY_FIELD_NUMBER = 2;
       private boolean returnImmediately_;
       /**
    +   *
    +   *
        * 
        * 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.
    @@ -160,6 +167,8 @@ public boolean getReturnImmediately() {
       public static final int MAX_MESSAGES_FIELD_NUMBER = 3;
       private int maxMessages_;
       /**
    +   *
    +   *
        * 
        * The maximum number of messages returned for this request. The Pub/Sub
        * system may return fewer than the number specified.
    @@ -172,6 +181,7 @@ public int getMaxMessages() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -183,8 +193,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getSubscriptionBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
    @@ -207,12 +216,10 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         if (returnImmediately_ != false) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeBoolSize(2, returnImmediately_);
    +      size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, returnImmediately_);
         }
         if (maxMessages_ != 0) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeInt32Size(3, maxMessages_);
    +      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxMessages_);
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -222,7 +229,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.PullRequest)) {
           return super.equals(obj);
    @@ -230,12 +237,9 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.PullRequest other = (com.google.pubsub.v1.PullRequest) obj;
     
         boolean result = true;
    -    result = result && getSubscription()
    -        .equals(other.getSubscription());
    -    result = result && (getReturnImmediately()
    -        == other.getReturnImmediately());
    -    result = result && (getMaxMessages()
    -        == other.getMaxMessages());
    +    result = result && getSubscription().equals(other.getSubscription());
    +    result = result && (getReturnImmediately() == other.getReturnImmediately());
    +    result = result && (getMaxMessages() == other.getMaxMessages());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -250,8 +254,7 @@ public int hashCode() {
         hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER;
         hash = (53 * hash) + getSubscription().hashCode();
         hash = (37 * hash) + RETURN_IMMEDIATELY_FIELD_NUMBER;
    -    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
    -        getReturnImmediately());
    +    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnImmediately());
         hash = (37 * hash) + MAX_MESSAGES_FIELD_NUMBER;
         hash = (53 * hash) + getMaxMessages();
         hash = (29 * hash) + unknownFields.hashCode();
    @@ -259,118 +262,126 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.PullRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.PullRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PullRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.PullRequest parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.pubsub.v1.PullRequest parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PullRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PullRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PullRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PullRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PullRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PullRequest parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PullRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PullRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PullRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.PullRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the `Pull` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.PullRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PullRequest) com.google.pubsub.v1.PullRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PullRequest.class, com.google.pubsub.v1.PullRequest.Builder.class); + com.google.pubsub.v1.PullRequest.class, + com.google.pubsub.v1.PullRequest.Builder.class); } // Construct using com.google.pubsub.v1.PullRequest.newBuilder() @@ -378,16 +389,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -401,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullRequest_descriptor; } @java.lang.Override @@ -434,38 +444,39 @@ public com.google.pubsub.v1.PullRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PullRequest) { - return mergeFrom((com.google.pubsub.v1.PullRequest)other); + return mergeFrom((com.google.pubsub.v1.PullRequest) other); } else { super.mergeFrom(other); return this; @@ -515,6 +526,8 @@ public Builder mergeFrom( private java.lang.Object subscription_ = ""; /** + * + * *
          * The subscription from which messages should be pulled.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -525,8 +538,7 @@ public Builder mergeFrom(
         public java.lang.String getSubscription() {
           java.lang.Object ref = subscription_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             subscription_ = s;
             return s;
    @@ -535,6 +547,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The subscription from which messages should be pulled.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -542,13 +556,11 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getSubscriptionBytes() {
    +    public com.google.protobuf.ByteString getSubscriptionBytes() {
           java.lang.Object ref = subscription_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             subscription_ = b;
             return b;
           } else {
    @@ -556,6 +568,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The subscription from which messages should be pulled.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -563,17 +577,18 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscription(
    -        java.lang.String value) {
    +    public Builder setSubscription(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           subscription_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The subscription from which messages should be pulled.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -582,12 +597,14 @@ public Builder setSubscription(
          * string subscription = 1;
          */
         public Builder clearSubscription() {
    -      
    +
           subscription_ = getDefaultInstance().getSubscription();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The subscription from which messages should be pulled.
          * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -595,20 +612,21 @@ public Builder clearSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscriptionBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           subscription_ = value;
           onChanged();
           return this;
         }
     
    -    private boolean returnImmediately_ ;
    +    private boolean returnImmediately_;
         /**
    +     *
    +     *
          * 
          * 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.
    @@ -622,6 +640,8 @@ public boolean getReturnImmediately() {
           return returnImmediately_;
         }
         /**
    +     *
    +     *
          * 
          * 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.
    @@ -632,12 +652,14 @@ public boolean getReturnImmediately() {
          * bool return_immediately = 2;
          */
         public Builder setReturnImmediately(boolean value) {
    -      
    +
           returnImmediately_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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.
    @@ -648,14 +670,16 @@ public Builder setReturnImmediately(boolean value) {
          * bool return_immediately = 2;
          */
         public Builder clearReturnImmediately() {
    -      
    +
           returnImmediately_ = false;
           onChanged();
           return this;
         }
     
    -    private int maxMessages_ ;
    +    private int maxMessages_;
         /**
    +     *
    +     *
          * 
          * The maximum number of messages returned for this request. The Pub/Sub
          * system may return fewer than the number specified.
    @@ -667,6 +691,8 @@ public int getMaxMessages() {
           return maxMessages_;
         }
         /**
    +     *
    +     *
          * 
          * The maximum number of messages returned for this request. The Pub/Sub
          * system may return fewer than the number specified.
    @@ -675,12 +701,14 @@ public int getMaxMessages() {
          * int32 max_messages = 3;
          */
         public Builder setMaxMessages(int value) {
    -      
    +
           maxMessages_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The maximum number of messages returned for this request. The Pub/Sub
          * system may return fewer than the number specified.
    @@ -689,14 +717,14 @@ public Builder setMaxMessages(int value) {
          * int32 max_messages = 3;
          */
         public Builder clearMaxMessages() {
    -      
    +
           maxMessages_ = 0;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -706,12 +734,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PullRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.PullRequest)
       private static final com.google.pubsub.v1.PullRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.PullRequest();
       }
    @@ -720,16 +748,16 @@ public static com.google.pubsub.v1.PullRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public PullRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new PullRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public PullRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new PullRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -744,6 +772,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.PullRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java
    index b21349023c04..8bd5f390727c 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface PullRequestOrBuilder extends
    +public interface PullRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PullRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The subscription from which messages should be pulled.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -17,6 +20,8 @@ public interface PullRequestOrBuilder extends
        */
       java.lang.String getSubscription();
       /**
    +   *
    +   *
        * 
        * The subscription from which messages should be pulled.
        * Format is `projects/{project}/subscriptions/{sub}`.
    @@ -24,10 +29,11 @@ public interface PullRequestOrBuilder extends
        *
        * string subscription = 1;
        */
    -  com.google.protobuf.ByteString
    -      getSubscriptionBytes();
    +  com.google.protobuf.ByteString getSubscriptionBytes();
     
       /**
    +   *
    +   *
        * 
        * 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.
    @@ -40,6 +46,8 @@ public interface PullRequestOrBuilder extends
       boolean getReturnImmediately();
     
       /**
    +   *
    +   *
        * 
        * The maximum number of messages returned for this request. The Pub/Sub
        * system may return fewer than the number specified.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java
    index 6668eea392c0..55644a3440a6 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java
    @@ -4,30 +4,33 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Response for the `Pull` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.PullResponse} */ -public final class PullResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PullResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullResponse) PullResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PullResponse.newBuilder() to construct. private PullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PullResponse() { receivedMessages_ = java.util.Collections.emptyList(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PullResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,29 +50,30 @@ private PullResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - receivedMessages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + receivedMessages_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + receivedMessages_.add( + input.readMessage( + com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); + break; } - receivedMessages_.add( - input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); @@ -78,22 +82,27 @@ private PullResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PullResponse.class, com.google.pubsub.v1.PullResponse.Builder.class); + com.google.pubsub.v1.PullResponse.class, + com.google.pubsub.v1.PullResponse.Builder.class); } public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; private java.util.List receivedMessages_; /** + * + * *
        * 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
    @@ -107,6 +116,8 @@ public java.util.List getReceivedMessagesL
         return receivedMessages_;
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -116,11 +127,13 @@ public java.util.List getReceivedMessagesL
        *
        * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
        */
    -  public java.util.List 
    +  public java.util.List
           getReceivedMessagesOrBuilderList() {
         return receivedMessages_;
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -134,6 +147,8 @@ public int getReceivedMessagesCount() {
         return receivedMessages_.size();
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -147,6 +162,8 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
         return receivedMessages_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -156,12 +173,12 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
        *
        * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
        */
    -  public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(
    -      int index) {
    +  public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) {
         return receivedMessages_.get(index);
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -173,8 +190,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         for (int i = 0; i < receivedMessages_.size(); i++) {
           output.writeMessage(1, receivedMessages_.get(i));
         }
    @@ -188,8 +204,7 @@ public int getSerializedSize() {
     
         size = 0;
         for (int i = 0; i < receivedMessages_.size(); i++) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, receivedMessages_.get(i));
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i));
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -199,7 +214,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.PullResponse)) {
           return super.equals(obj);
    @@ -207,8 +222,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.PullResponse other = (com.google.pubsub.v1.PullResponse) obj;
     
         boolean result = true;
    -    result = result && getReceivedMessagesList()
    -        .equals(other.getReceivedMessagesList());
    +    result = result && getReceivedMessagesList().equals(other.getReceivedMessagesList());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -229,118 +243,126 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.PullResponse parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.PullResponse parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PullResponse parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.PullResponse parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.pubsub.v1.PullResponse parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PullResponse parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PullResponse parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PullResponse parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PullResponse parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PullResponse parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PullResponse parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PullResponse parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PullResponse parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PullResponse parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.PullResponse prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Response for the `Pull` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.PullResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PullResponse) com.google.pubsub.v1.PullResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.PullResponse.class, com.google.pubsub.v1.PullResponse.Builder.class); + com.google.pubsub.v1.PullResponse.class, + com.google.pubsub.v1.PullResponse.Builder.class); } // Construct using com.google.pubsub.v1.PullResponse.newBuilder() @@ -348,17 +370,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getReceivedMessagesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PullResponse_descriptor; } @java.lang.Override @@ -412,38 +434,39 @@ public com.google.pubsub.v1.PullResponse buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PullResponse) { - return mergeFrom((com.google.pubsub.v1.PullResponse)other); + return mergeFrom((com.google.pubsub.v1.PullResponse) other); } else { super.mergeFrom(other); return this; @@ -470,9 +493,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PullResponse other) { receivedMessagesBuilder_ = null; receivedMessages_ = other.receivedMessages_; bitField0_ = (bitField0_ & ~0x00000001); - receivedMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReceivedMessagesFieldBuilder() : null; + receivedMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReceivedMessagesFieldBuilder() + : null; } else { receivedMessagesBuilder_.addAllMessages(other.receivedMessages_); } @@ -506,21 +530,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List receivedMessages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureReceivedMessagesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { - receivedMessages_ = new java.util.ArrayList(receivedMessages_); + receivedMessages_ = + new java.util.ArrayList(receivedMessages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> receivedMessagesBuilder_; + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder> + receivedMessagesBuilder_; /** + * + * *
          * 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
    @@ -538,6 +570,8 @@ public java.util.List getReceivedMessagesL
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -555,6 +589,8 @@ public int getReceivedMessagesCount() {
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -572,6 +608,8 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -581,8 +619,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) {
          *
          * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
          */
    -    public Builder setReceivedMessages(
    -        int index, com.google.pubsub.v1.ReceivedMessage value) {
    +    public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) {
           if (receivedMessagesBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -596,6 +633,8 @@ public Builder setReceivedMessages(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -617,6 +656,8 @@ public Builder setReceivedMessages(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -640,6 +681,8 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -649,8 +692,7 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) {
          *
          * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
          */
    -    public Builder addReceivedMessages(
    -        int index, com.google.pubsub.v1.ReceivedMessage value) {
    +    public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) {
           if (receivedMessagesBuilder_ == null) {
             if (value == null) {
               throw new NullPointerException();
    @@ -664,6 +706,8 @@ public Builder addReceivedMessages(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -685,6 +729,8 @@ public Builder addReceivedMessages(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -706,6 +752,8 @@ public Builder addReceivedMessages(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -719,8 +767,7 @@ public Builder addAllReceivedMessages(
             java.lang.Iterable values) {
           if (receivedMessagesBuilder_ == null) {
             ensureReceivedMessagesIsMutable();
    -        com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -            values, receivedMessages_);
    +        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receivedMessages_);
             onChanged();
           } else {
             receivedMessagesBuilder_.addAllMessages(values);
    @@ -728,6 +775,8 @@ public Builder addAllReceivedMessages(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -748,6 +797,8 @@ public Builder clearReceivedMessages() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -768,6 +819,8 @@ public Builder removeReceivedMessages(int index) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -777,11 +830,12 @@ public Builder removeReceivedMessages(int index) {
          *
          * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
          */
    -    public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(
    -        int index) {
    +    public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) {
           return getReceivedMessagesFieldBuilder().getBuilder(index);
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -791,14 +845,16 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(
          *
          * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
          */
    -    public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(
    -        int index) {
    +    public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) {
           if (receivedMessagesBuilder_ == null) {
    -        return receivedMessages_.get(index);  } else {
    +        return receivedMessages_.get(index);
    +      } else {
             return receivedMessagesBuilder_.getMessageOrBuilder(index);
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -808,8 +864,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
          *
          * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
          */
    -    public java.util.List 
    -         getReceivedMessagesOrBuilderList() {
    +    public java.util.List
    +        getReceivedMessagesOrBuilderList() {
           if (receivedMessagesBuilder_ != null) {
             return receivedMessagesBuilder_.getMessageOrBuilderList();
           } else {
    @@ -817,6 +873,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -827,10 +885,12 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde
          * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
          */
         public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() {
    -      return getReceivedMessagesFieldBuilder().addBuilder(
    -          com.google.pubsub.v1.ReceivedMessage.getDefaultInstance());
    +      return getReceivedMessagesFieldBuilder()
    +          .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -840,12 +900,13 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder()
          *
          * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
          */
    -    public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(
    -        int index) {
    -      return getReceivedMessagesFieldBuilder().addBuilder(
    -          index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance());
    +    public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) {
    +      return getReceivedMessagesFieldBuilder()
    +          .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance());
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -855,16 +916,22 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(
          *
          * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
          */
    -    public java.util.List 
    -         getReceivedMessagesBuilderList() {
    +    public java.util.List
    +        getReceivedMessagesBuilderList() {
           return getReceivedMessagesFieldBuilder().getBuilderList();
         }
    +
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> 
    +            com.google.pubsub.v1.ReceivedMessage,
    +            com.google.pubsub.v1.ReceivedMessage.Builder,
    +            com.google.pubsub.v1.ReceivedMessageOrBuilder>
             getReceivedMessagesFieldBuilder() {
           if (receivedMessagesBuilder_ == null) {
    -        receivedMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
    -            com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>(
    +        receivedMessagesBuilder_ =
    +            new com.google.protobuf.RepeatedFieldBuilderV3<
    +                com.google.pubsub.v1.ReceivedMessage,
    +                com.google.pubsub.v1.ReceivedMessage.Builder,
    +                com.google.pubsub.v1.ReceivedMessageOrBuilder>(
                     receivedMessages_,
                     ((bitField0_ & 0x00000001) == 0x00000001),
                     getParentForChildren(),
    @@ -873,9 +940,9 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(
           }
           return receivedMessagesBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -885,12 +952,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PullResponse)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.PullResponse)
       private static final com.google.pubsub.v1.PullResponse DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.PullResponse();
       }
    @@ -899,16 +966,16 @@ public static com.google.pubsub.v1.PullResponse getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public PullResponse parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new PullResponse(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public PullResponse parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new PullResponse(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -923,6 +990,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.PullResponse getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
    index b032219152e2..b984ed4848af 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface PullResponseOrBuilder extends
    +public interface PullResponseOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PullResponse)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * 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
    @@ -17,9 +20,10 @@ public interface PullResponseOrBuilder extends
        *
        * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
        */
    -  java.util.List 
    -      getReceivedMessagesList();
    +  java.util.List getReceivedMessagesList();
       /**
    +   *
    +   *
        * 
        * 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
    @@ -31,6 +35,8 @@ public interface PullResponseOrBuilder extends
        */
       com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index);
       /**
    +   *
    +   *
        * 
        * 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
    @@ -42,6 +48,8 @@ public interface PullResponseOrBuilder extends
        */
       int getReceivedMessagesCount();
       /**
    +   *
    +   *
        * 
        * 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
    @@ -51,9 +59,11 @@ public interface PullResponseOrBuilder extends
        *
        * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
        */
    -  java.util.List 
    +  java.util.List
           getReceivedMessagesOrBuilderList();
       /**
    +   *
    +   *
        * 
        * 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
    @@ -63,6 +73,5 @@ public interface PullResponseOrBuilder extends
        *
        * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
        */
    -  com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(
    -      int index);
    +  com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index);
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
    index 7dcac690833b..5f483cb689e1 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
    @@ -4,30 +4,33 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Configuration for a push delivery endpoint.
      * 
    * * Protobuf type {@code google.pubsub.v1.PushConfig} */ -public final class PushConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PushConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig) PushConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PushConfig.newBuilder() to construct. private PushConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PushConfig() { pushEndpoint_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PushConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,65 +50,67 @@ private PushConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pushEndpoint_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + pushEndpoint_ = s; + break; } - com.google.protobuf.MapEntry - attributes__ = input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - attributes_.getMutableMap().put( - attributes__.getKey(), attributes__.getValue()); - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + attributes_ = + com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry attributes__ = + input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue()); + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.PushConfig.class, com.google.pubsub.v1.PushConfig.Builder.class); } @@ -114,6 +119,8 @@ protected com.google.protobuf.MapField internalGetMapField( public static final int PUSH_ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object pushEndpoint_; /** + * + * *
        * A URL locating the endpoint to which messages should be pushed.
        * For example, a Webhook endpoint might use "https://example.com/push".
    @@ -126,14 +133,15 @@ public java.lang.String getPushEndpoint() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           pushEndpoint_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * A URL locating the endpoint to which messages should be pushed.
        * For example, a Webhook endpoint might use "https://example.com/push".
    @@ -141,13 +149,11 @@ public java.lang.String getPushEndpoint() {
        *
        * string push_endpoint = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getPushEndpointBytes() {
    +  public com.google.protobuf.ByteString getPushEndpointBytes() {
         java.lang.Object ref = pushEndpoint_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           pushEndpoint_ = b;
           return b;
         } else {
    @@ -156,24 +162,23 @@ public java.lang.String getPushEndpoint() {
       }
     
       public static final int ATTRIBUTES_FIELD_NUMBER = 2;
    +
       private static final class AttributesDefaultEntryHolder {
    -    static final com.google.protobuf.MapEntry<
    -        java.lang.String, java.lang.String> defaultEntry =
    -            com.google.protobuf.MapEntry
    -            .newDefaultInstance(
    -                com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, 
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "",
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "");
    +    static final com.google.protobuf.MapEntry defaultEntry =
    +        com.google.protobuf.MapEntry.newDefaultInstance(
    +            com.google.pubsub.v1.PubsubProto
    +                .internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor,
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "",
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "");
       }
    -  private com.google.protobuf.MapField<
    -      java.lang.String, java.lang.String> attributes_;
    -  private com.google.protobuf.MapField
    -  internalGetAttributes() {
    +
    +  private com.google.protobuf.MapField attributes_;
    +
    +  private com.google.protobuf.MapField internalGetAttributes() {
         if (attributes_ == null) {
    -      return com.google.protobuf.MapField.emptyMapField(
    -          AttributesDefaultEntryHolder.defaultEntry);
    +      return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry);
         }
         return attributes_;
       }
    @@ -182,6 +187,8 @@ public int getAttributesCount() {
         return internalGetAttributes().getMap().size();
       }
       /**
    +   *
    +   *
        * 
        * Endpoint configuration attributes.
        * Every endpoint has a set of API supported attributes that can be used to
    @@ -203,20 +210,20 @@ public int getAttributesCount() {
        *
        * map<string, string> attributes = 2;
        */
    -
    -  public boolean containsAttributes(
    -      java.lang.String key) {
    -    if (key == null) { throw new java.lang.NullPointerException(); }
    +  public boolean containsAttributes(java.lang.String key) {
    +    if (key == null) {
    +      throw new java.lang.NullPointerException();
    +    }
         return internalGetAttributes().getMap().containsKey(key);
       }
    -  /**
    -   * Use {@link #getAttributesMap()} instead.
    -   */
    +  /** Use {@link #getAttributesMap()} instead. */
       @java.lang.Deprecated
       public java.util.Map getAttributes() {
         return getAttributesMap();
       }
       /**
    +   *
    +   *
        * 
        * Endpoint configuration attributes.
        * Every endpoint has a set of API supported attributes that can be used to
    @@ -238,11 +245,12 @@ public java.util.Map getAttributes() {
        *
        * map<string, string> attributes = 2;
        */
    -
       public java.util.Map getAttributesMap() {
         return internalGetAttributes().getMap();
       }
       /**
    +   *
    +   *
        * 
        * Endpoint configuration attributes.
        * Every endpoint has a set of API supported attributes that can be used to
    @@ -264,16 +272,17 @@ public java.util.Map getAttributesMap() {
        *
        * map<string, string> attributes = 2;
        */
    -
       public java.lang.String getAttributesOrDefault(
    -      java.lang.String key,
    -      java.lang.String defaultValue) {
    -    if (key == null) { throw new java.lang.NullPointerException(); }
    -    java.util.Map map =
    -        internalGetAttributes().getMap();
    +      java.lang.String key, java.lang.String defaultValue) {
    +    if (key == null) {
    +      throw new java.lang.NullPointerException();
    +    }
    +    java.util.Map map = internalGetAttributes().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
    +   *
    +   *
        * 
        * Endpoint configuration attributes.
        * Every endpoint has a set of API supported attributes that can be used to
    @@ -295,12 +304,11 @@ public java.lang.String getAttributesOrDefault(
        *
        * map<string, string> attributes = 2;
        */
    -
    -  public java.lang.String getAttributesOrThrow(
    -      java.lang.String key) {
    -    if (key == null) { throw new java.lang.NullPointerException(); }
    -    java.util.Map map =
    -        internalGetAttributes().getMap();
    +  public java.lang.String getAttributesOrThrow(java.lang.String key) {
    +    if (key == null) {
    +      throw new java.lang.NullPointerException();
    +    }
    +    java.util.Map map = internalGetAttributes().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
    @@ -308,6 +316,7 @@ public java.lang.String getAttributesOrThrow(
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -319,17 +328,12 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getPushEndpointBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pushEndpoint_);
         }
    -    com.google.protobuf.GeneratedMessageV3
    -      .serializeStringMapTo(
    -        output,
    -        internalGetAttributes(),
    -        AttributesDefaultEntryHolder.defaultEntry,
    -        2);
    +    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
    +        output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2);
         unknownFields.writeTo(output);
       }
     
    @@ -342,15 +346,15 @@ public int getSerializedSize() {
         if (!getPushEndpointBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pushEndpoint_);
         }
    -    for (java.util.Map.Entry entry
    -         : internalGetAttributes().getMap().entrySet()) {
    -      com.google.protobuf.MapEntry
    -      attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType()
    -          .setKey(entry.getKey())
    -          .setValue(entry.getValue())
    -          .build();
    -      size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(2, attributes__);
    +    for (java.util.Map.Entry entry :
    +        internalGetAttributes().getMap().entrySet()) {
    +      com.google.protobuf.MapEntry attributes__ =
    +          AttributesDefaultEntryHolder.defaultEntry
    +              .newBuilderForType()
    +              .setKey(entry.getKey())
    +              .setValue(entry.getValue())
    +              .build();
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attributes__);
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -360,7 +364,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.PushConfig)) {
           return super.equals(obj);
    @@ -368,10 +372,8 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.PushConfig other = (com.google.pubsub.v1.PushConfig) obj;
     
         boolean result = true;
    -    result = result && getPushEndpoint()
    -        .equals(other.getPushEndpoint());
    -    result = result && internalGetAttributes().equals(
    -        other.internalGetAttributes());
    +    result = result && getPushEndpoint().equals(other.getPushEndpoint());
    +    result = result && internalGetAttributes().equals(other.internalGetAttributes());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -394,138 +396,143 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.PushConfig parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.PushConfig parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PushConfig parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.PushConfig parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.pubsub.v1.PushConfig parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PushConfig parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PushConfig parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.PushConfig parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PushConfig parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PushConfig parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PushConfig parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PushConfig parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.PushConfig parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.PushConfig parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.PushConfig prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Configuration for a push delivery endpoint.
        * 
    * * Protobuf type {@code google.pubsub.v1.PushConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig) com.google.pubsub.v1.PushConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.PushConfig.class, com.google.pubsub.v1.PushConfig.Builder.class); } @@ -535,16 +542,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -555,9 +561,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_descriptor; } @java.lang.Override @@ -591,38 +597,39 @@ public com.google.pubsub.v1.PushConfig buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PushConfig) { - return mergeFrom((com.google.pubsub.v1.PushConfig)other); + return mergeFrom((com.google.pubsub.v1.PushConfig) other); } else { super.mergeFrom(other); return this; @@ -635,8 +642,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { pushEndpoint_ = other.pushEndpoint_; onChanged(); } - internalGetMutableAttributes().mergeFrom( - other.internalGetAttributes()); + internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -665,10 +671,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object pushEndpoint_ = ""; /** + * + * *
          * A URL locating the endpoint to which messages should be pushed.
          * For example, a Webhook endpoint might use "https://example.com/push".
    @@ -679,8 +688,7 @@ public Builder mergeFrom(
         public java.lang.String getPushEndpoint() {
           java.lang.Object ref = pushEndpoint_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             pushEndpoint_ = s;
             return s;
    @@ -689,6 +697,8 @@ public java.lang.String getPushEndpoint() {
           }
         }
         /**
    +     *
    +     *
          * 
          * A URL locating the endpoint to which messages should be pushed.
          * For example, a Webhook endpoint might use "https://example.com/push".
    @@ -696,13 +706,11 @@ public java.lang.String getPushEndpoint() {
          *
          * string push_endpoint = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getPushEndpointBytes() {
    +    public com.google.protobuf.ByteString getPushEndpointBytes() {
           java.lang.Object ref = pushEndpoint_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             pushEndpoint_ = b;
             return b;
           } else {
    @@ -710,6 +718,8 @@ public java.lang.String getPushEndpoint() {
           }
         }
         /**
    +     *
    +     *
          * 
          * A URL locating the endpoint to which messages should be pushed.
          * For example, a Webhook endpoint might use "https://example.com/push".
    @@ -717,17 +727,18 @@ public java.lang.String getPushEndpoint() {
          *
          * string push_endpoint = 1;
          */
    -    public Builder setPushEndpoint(
    -        java.lang.String value) {
    +    public Builder setPushEndpoint(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           pushEndpoint_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A URL locating the endpoint to which messages should be pushed.
          * For example, a Webhook endpoint might use "https://example.com/push".
    @@ -736,12 +747,14 @@ public Builder setPushEndpoint(
          * string push_endpoint = 1;
          */
         public Builder clearPushEndpoint() {
    -      
    +
           pushEndpoint_ = getDefaultInstance().getPushEndpoint();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A URL locating the endpoint to which messages should be pushed.
          * For example, a Webhook endpoint might use "https://example.com/push".
    @@ -749,34 +762,35 @@ public Builder clearPushEndpoint() {
          *
          * string push_endpoint = 1;
          */
    -    public Builder setPushEndpointBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           pushEndpoint_ = value;
           onChanged();
           return this;
         }
     
    -    private com.google.protobuf.MapField<
    -        java.lang.String, java.lang.String> attributes_;
    +    private com.google.protobuf.MapField attributes_;
    +
         private com.google.protobuf.MapField
    -    internalGetAttributes() {
    +        internalGetAttributes() {
           if (attributes_ == null) {
             return com.google.protobuf.MapField.emptyMapField(
                 AttributesDefaultEntryHolder.defaultEntry);
           }
           return attributes_;
         }
    +
         private com.google.protobuf.MapField
    -    internalGetMutableAttributes() {
    -      onChanged();;
    +        internalGetMutableAttributes() {
    +      onChanged();
    +      ;
           if (attributes_ == null) {
    -        attributes_ = com.google.protobuf.MapField.newMapField(
    -            AttributesDefaultEntryHolder.defaultEntry);
    +        attributes_ =
    +            com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry);
           }
           if (!attributes_.isMutable()) {
             attributes_ = attributes_.copy();
    @@ -788,6 +802,8 @@ public int getAttributesCount() {
           return internalGetAttributes().getMap().size();
         }
         /**
    +     *
    +     *
          * 
          * Endpoint configuration attributes.
          * Every endpoint has a set of API supported attributes that can be used to
    @@ -809,20 +825,20 @@ public int getAttributesCount() {
          *
          * map<string, string> attributes = 2;
          */
    -
    -    public boolean containsAttributes(
    -        java.lang.String key) {
    -      if (key == null) { throw new java.lang.NullPointerException(); }
    +    public boolean containsAttributes(java.lang.String key) {
    +      if (key == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           return internalGetAttributes().getMap().containsKey(key);
         }
    -    /**
    -     * Use {@link #getAttributesMap()} instead.
    -     */
    +    /** Use {@link #getAttributesMap()} instead. */
         @java.lang.Deprecated
         public java.util.Map getAttributes() {
           return getAttributesMap();
         }
         /**
    +     *
    +     *
          * 
          * Endpoint configuration attributes.
          * Every endpoint has a set of API supported attributes that can be used to
    @@ -844,11 +860,12 @@ public java.util.Map getAttributes() {
          *
          * map<string, string> attributes = 2;
          */
    -
         public java.util.Map getAttributesMap() {
           return internalGetAttributes().getMap();
         }
         /**
    +     *
    +     *
          * 
          * Endpoint configuration attributes.
          * Every endpoint has a set of API supported attributes that can be used to
    @@ -870,16 +887,17 @@ public java.util.Map getAttributesMap() {
          *
          * map<string, string> attributes = 2;
          */
    -
         public java.lang.String getAttributesOrDefault(
    -        java.lang.String key,
    -        java.lang.String defaultValue) {
    -      if (key == null) { throw new java.lang.NullPointerException(); }
    -      java.util.Map map =
    -          internalGetAttributes().getMap();
    +        java.lang.String key, java.lang.String defaultValue) {
    +      if (key == null) {
    +        throw new java.lang.NullPointerException();
    +      }
    +      java.util.Map map = internalGetAttributes().getMap();
           return map.containsKey(key) ? map.get(key) : defaultValue;
         }
         /**
    +     *
    +     *
          * 
          * Endpoint configuration attributes.
          * Every endpoint has a set of API supported attributes that can be used to
    @@ -901,12 +919,11 @@ public java.lang.String getAttributesOrDefault(
          *
          * map<string, string> attributes = 2;
          */
    -
    -    public java.lang.String getAttributesOrThrow(
    -        java.lang.String key) {
    -      if (key == null) { throw new java.lang.NullPointerException(); }
    -      java.util.Map map =
    -          internalGetAttributes().getMap();
    +    public java.lang.String getAttributesOrThrow(java.lang.String key) {
    +      if (key == null) {
    +        throw new java.lang.NullPointerException();
    +      }
    +      java.util.Map map = internalGetAttributes().getMap();
           if (!map.containsKey(key)) {
             throw new java.lang.IllegalArgumentException();
           }
    @@ -914,11 +931,12 @@ public java.lang.String getAttributesOrThrow(
         }
     
         public Builder clearAttributes() {
    -      internalGetMutableAttributes().getMutableMap()
    -          .clear();
    +      internalGetMutableAttributes().getMutableMap().clear();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Endpoint configuration attributes.
          * Every endpoint has a set of API supported attributes that can be used to
    @@ -940,23 +958,21 @@ public Builder clearAttributes() {
          *
          * map<string, string> attributes = 2;
          */
    -
    -    public Builder removeAttributes(
    -        java.lang.String key) {
    -      if (key == null) { throw new java.lang.NullPointerException(); }
    -      internalGetMutableAttributes().getMutableMap()
    -          .remove(key);
    +    public Builder removeAttributes(java.lang.String key) {
    +      if (key == null) {
    +        throw new java.lang.NullPointerException();
    +      }
    +      internalGetMutableAttributes().getMutableMap().remove(key);
           return this;
         }
    -    /**
    -     * Use alternate mutation accessors instead.
    -     */
    +    /** Use alternate mutation accessors instead. */
         @java.lang.Deprecated
    -    public java.util.Map
    -    getMutableAttributes() {
    +    public java.util.Map getMutableAttributes() {
           return internalGetMutableAttributes().getMutableMap();
         }
         /**
    +     *
    +     *
          * 
          * Endpoint configuration attributes.
          * Every endpoint has a set of API supported attributes that can be used to
    @@ -978,16 +994,19 @@ public Builder removeAttributes(
          *
          * map<string, string> attributes = 2;
          */
    -    public Builder putAttributes(
    -        java.lang.String key,
    -        java.lang.String value) {
    -      if (key == null) { throw new java.lang.NullPointerException(); }
    -      if (value == null) { throw new java.lang.NullPointerException(); }
    -      internalGetMutableAttributes().getMutableMap()
    -          .put(key, value);
    +    public Builder putAttributes(java.lang.String key, java.lang.String value) {
    +      if (key == null) {
    +        throw new java.lang.NullPointerException();
    +      }
    +      if (value == null) {
    +        throw new java.lang.NullPointerException();
    +      }
    +      internalGetMutableAttributes().getMutableMap().put(key, value);
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Endpoint configuration attributes.
          * Every endpoint has a set of API supported attributes that can be used to
    @@ -1009,16 +1028,13 @@ public Builder putAttributes(
          *
          * map<string, string> attributes = 2;
          */
    -
    -    public Builder putAllAttributes(
    -        java.util.Map values) {
    -      internalGetMutableAttributes().getMutableMap()
    -          .putAll(values);
    +    public Builder putAllAttributes(java.util.Map values) {
    +      internalGetMutableAttributes().getMutableMap().putAll(values);
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -1028,12 +1044,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig)
       private static final com.google.pubsub.v1.PushConfig DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig();
       }
    @@ -1042,16 +1058,16 @@ public static com.google.pubsub.v1.PushConfig getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public PushConfig parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new PushConfig(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public PushConfig parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new PushConfig(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1066,6 +1082,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.PushConfig getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
    index 10eecfe1060d..d03adf60bebc 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface PushConfigOrBuilder extends
    +public interface PushConfigOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * A URL locating the endpoint to which messages should be pushed.
        * For example, a Webhook endpoint might use "https://example.com/push".
    @@ -17,6 +20,8 @@ public interface PushConfigOrBuilder extends
        */
       java.lang.String getPushEndpoint();
       /**
    +   *
    +   *
        * 
        * A URL locating the endpoint to which messages should be pushed.
        * For example, a Webhook endpoint might use "https://example.com/push".
    @@ -24,10 +29,11 @@ public interface PushConfigOrBuilder extends
        *
        * string push_endpoint = 1;
        */
    -  com.google.protobuf.ByteString
    -      getPushEndpointBytes();
    +  com.google.protobuf.ByteString getPushEndpointBytes();
     
       /**
    +   *
    +   *
        * 
        * Endpoint configuration attributes.
        * Every endpoint has a set of API supported attributes that can be used to
    @@ -51,6 +57,8 @@ public interface PushConfigOrBuilder extends
        */
       int getAttributesCount();
       /**
    +   *
    +   *
        * 
        * Endpoint configuration attributes.
        * Every endpoint has a set of API supported attributes that can be used to
    @@ -72,15 +80,13 @@ public interface PushConfigOrBuilder extends
        *
        * map<string, string> attributes = 2;
        */
    -  boolean containsAttributes(
    -      java.lang.String key);
    -  /**
    -   * Use {@link #getAttributesMap()} instead.
    -   */
    +  boolean containsAttributes(java.lang.String key);
    +  /** Use {@link #getAttributesMap()} instead. */
       @java.lang.Deprecated
    -  java.util.Map
    -  getAttributes();
    +  java.util.Map getAttributes();
       /**
    +   *
    +   *
        * 
        * Endpoint configuration attributes.
        * Every endpoint has a set of API supported attributes that can be used to
    @@ -102,9 +108,10 @@ boolean containsAttributes(
        *
        * map<string, string> attributes = 2;
        */
    -  java.util.Map
    -  getAttributesMap();
    +  java.util.Map getAttributesMap();
       /**
    +   *
    +   *
        * 
        * Endpoint configuration attributes.
        * Every endpoint has a set of API supported attributes that can be used to
    @@ -126,11 +133,10 @@ boolean containsAttributes(
        *
        * map<string, string> attributes = 2;
        */
    -
    -  java.lang.String getAttributesOrDefault(
    -      java.lang.String key,
    -      java.lang.String defaultValue);
    +  java.lang.String getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue);
       /**
    +   *
    +   *
        * 
        * Endpoint configuration attributes.
        * Every endpoint has a set of API supported attributes that can be used to
    @@ -152,7 +158,5 @@ java.lang.String getAttributesOrDefault(
        *
        * map<string, string> attributes = 2;
        */
    -
    -  java.lang.String getAttributesOrThrow(
    -      java.lang.String key);
    +  java.lang.String getAttributesOrThrow(java.lang.String key);
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
    index 911dd5e6bf88..b1c5d403e12b 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
    @@ -4,30 +4,33 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * A message and its corresponding acknowledgment ID.
      * 
    * * Protobuf type {@code google.pubsub.v1.ReceivedMessage} */ -public final class ReceivedMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReceivedMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ReceivedMessage) ReceivedMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReceivedMessage.newBuilder() to construct. private ReceivedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReceivedMessage() { ackId_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ReceivedMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,60 +50,67 @@ private ReceivedMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - ackId_ = s; - break; - } - case 18: { - com.google.pubsub.v1.PubsubMessage.Builder subBuilder = null; - if (message_ != null) { - subBuilder = message_.toBuilder(); + ackId_ = s; + break; } - message_ = input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(message_); - message_ = subBuilder.buildPartial(); + case 18: + { + com.google.pubsub.v1.PubsubMessage.Builder subBuilder = null; + if (message_ != null) { + subBuilder = message_.toBuilder(); + } + message_ = + input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(message_); + message_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ReceivedMessage.class, com.google.pubsub.v1.ReceivedMessage.Builder.class); + com.google.pubsub.v1.ReceivedMessage.class, + com.google.pubsub.v1.ReceivedMessage.Builder.class); } public static final int ACK_ID_FIELD_NUMBER = 1; private volatile java.lang.Object ackId_; /** + * + * *
        * This ID can be used to acknowledge the received message.
        * 
    @@ -112,27 +122,26 @@ public java.lang.String getAckId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ackId_ = s; return s; } } /** + * + * *
        * This ID can be used to acknowledge the received message.
        * 
    * * string ack_id = 1; */ - public com.google.protobuf.ByteString - getAckIdBytes() { + public com.google.protobuf.ByteString getAckIdBytes() { java.lang.Object ref = ackId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ackId_ = b; return b; } else { @@ -143,6 +152,8 @@ public java.lang.String getAckId() { public static final int MESSAGE_FIELD_NUMBER = 2; private com.google.pubsub.v1.PubsubMessage message_; /** + * + * *
        * The message.
        * 
    @@ -153,6 +164,8 @@ public boolean hasMessage() { return message_ != null; } /** + * + * *
        * The message.
        * 
    @@ -163,6 +176,8 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } /** + * + * *
        * The message.
        * 
    @@ -174,6 +189,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getAckIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackId_); } @@ -206,8 +221,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ackId_); } if (message_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMessage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMessage()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -217,7 +231,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.ReceivedMessage)) { return super.equals(obj); @@ -225,12 +239,10 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ReceivedMessage other = (com.google.pubsub.v1.ReceivedMessage) obj; boolean result = true; - result = result && getAckId() - .equals(other.getAckId()); + result = result && getAckId().equals(other.getAckId()); result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { - result = result && getMessage() - .equals(other.getMessage()); + result = result && getMessage().equals(other.getMessage()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -254,118 +266,126 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.ReceivedMessage parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.ReceivedMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.ReceivedMessage parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.ReceivedMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ReceivedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ReceivedMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.ReceivedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.ReceivedMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A message and its corresponding acknowledgment ID.
        * 
    * * Protobuf type {@code google.pubsub.v1.ReceivedMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ReceivedMessage) com.google.pubsub.v1.ReceivedMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.ReceivedMessage.class, com.google.pubsub.v1.ReceivedMessage.Builder.class); + com.google.pubsub.v1.ReceivedMessage.class, + com.google.pubsub.v1.ReceivedMessage.Builder.class); } // Construct using com.google.pubsub.v1.ReceivedMessage.newBuilder() @@ -373,16 +393,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_ReceivedMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } @java.lang.Override @@ -434,38 +453,39 @@ public com.google.pubsub.v1.ReceivedMessage buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ReceivedMessage) { - return mergeFrom((com.google.pubsub.v1.ReceivedMessage)other); + return mergeFrom((com.google.pubsub.v1.ReceivedMessage) other); } else { super.mergeFrom(other); return this; @@ -512,6 +532,8 @@ public Builder mergeFrom( private java.lang.Object ackId_ = ""; /** + * + * *
          * This ID can be used to acknowledge the received message.
          * 
    @@ -521,8 +543,7 @@ public Builder mergeFrom( public java.lang.String getAckId() { java.lang.Object ref = ackId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ackId_ = s; return s; @@ -531,19 +552,19 @@ public java.lang.String getAckId() { } } /** + * + * *
          * This ID can be used to acknowledge the received message.
          * 
    * * string ack_id = 1; */ - public com.google.protobuf.ByteString - getAckIdBytes() { + public com.google.protobuf.ByteString getAckIdBytes() { java.lang.Object ref = ackId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ackId_ = b; return b; } else { @@ -551,23 +572,26 @@ public java.lang.String getAckId() { } } /** + * + * *
          * This ID can be used to acknowledge the received message.
          * 
    * * string ack_id = 1; */ - public Builder setAckId( - java.lang.String value) { + public Builder setAckId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + ackId_ = value; onChanged(); return this; } /** + * + * *
          * This ID can be used to acknowledge the received message.
          * 
    @@ -575,25 +599,26 @@ public Builder setAckId( * string ack_id = 1; */ public Builder clearAckId() { - + ackId_ = getDefaultInstance().getAckId(); onChanged(); return this; } /** + * + * *
          * This ID can be used to acknowledge the received message.
          * 
    * * string ack_id = 1; */ - public Builder setAckIdBytes( - com.google.protobuf.ByteString value) { + public Builder setAckIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ackId_ = value; onChanged(); return this; @@ -601,8 +626,13 @@ public Builder setAckIdBytes( private com.google.pubsub.v1.PubsubMessage message_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> messageBuilder_; + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder> + messageBuilder_; /** + * + * *
          * The message.
          * 
    @@ -613,6 +643,8 @@ public boolean hasMessage() { return messageBuilder_ != null || message_ != null; } /** + * + * *
          * The message.
          * 
    @@ -621,12 +653,16 @@ public boolean hasMessage() { */ public com.google.pubsub.v1.PubsubMessage getMessage() { if (messageBuilder_ == null) { - return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; + return message_ == null + ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() + : message_; } else { return messageBuilder_.getMessage(); } } /** + * + * *
          * The message.
          * 
    @@ -647,14 +683,15 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { return this; } /** + * + * *
          * The message.
          * 
    * * .google.pubsub.v1.PubsubMessage message = 2; */ - public Builder setMessage( - com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { + public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); onChanged(); @@ -665,6 +702,8 @@ public Builder setMessage( return this; } /** + * + * *
          * The message.
          * 
    @@ -675,7 +714,9 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { if (message_ != null) { message_ = - com.google.pubsub.v1.PubsubMessage.newBuilder(message_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.PubsubMessage.newBuilder(message_) + .mergeFrom(value) + .buildPartial(); } else { message_ = value; } @@ -687,6 +728,8 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { return this; } /** + * + * *
          * The message.
          * 
    @@ -705,6 +748,8 @@ public Builder clearMessage() { return this; } /** + * + * *
          * The message.
          * 
    @@ -712,11 +757,13 @@ public Builder clearMessage() { * .google.pubsub.v1.PubsubMessage message = 2; */ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { - + onChanged(); return getMessageFieldBuilder().getBuilder(); } /** + * + * *
          * The message.
          * 
    @@ -727,11 +774,14 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { - return message_ == null ? - com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; + return message_ == null + ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() + : message_; } } /** + * + * *
          * The message.
          * 
    @@ -739,21 +789,24 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * .google.pubsub.v1.PubsubMessage message = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( - getMessage(), - getParentForChildren(), - isClean()); + messageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PubsubMessage, + com.google.pubsub.v1.PubsubMessage.Builder, + com.google.pubsub.v1.PubsubMessageOrBuilder>( + getMessage(), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @@ -763,12 +816,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ReceivedMessage) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.ReceivedMessage) private static final com.google.pubsub.v1.ReceivedMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.ReceivedMessage(); } @@ -777,16 +830,16 @@ public static com.google.pubsub.v1.ReceivedMessage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReceivedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReceivedMessage(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReceivedMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReceivedMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -801,6 +854,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.ReceivedMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index eba13b5290f6..655d08ac2653 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -3,11 +3,14 @@ package com.google.pubsub.v1; -public interface ReceivedMessageOrBuilder extends +public interface ReceivedMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ReceivedMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * This ID can be used to acknowledge the received message.
        * 
    @@ -16,16 +19,19 @@ public interface ReceivedMessageOrBuilder extends */ java.lang.String getAckId(); /** + * + * *
        * This ID can be used to acknowledge the received message.
        * 
    * * string ack_id = 1; */ - com.google.protobuf.ByteString - getAckIdBytes(); + com.google.protobuf.ByteString getAckIdBytes(); /** + * + * *
        * The message.
        * 
    @@ -34,6 +40,8 @@ public interface ReceivedMessageOrBuilder extends */ boolean hasMessage(); /** + * + * *
        * The message.
        * 
    @@ -42,6 +50,8 @@ public interface ReceivedMessageOrBuilder extends */ com.google.pubsub.v1.PubsubMessage getMessage(); /** + * + * *
        * The message.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index fbfd4f5b9bad..bbfa4e31c334 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -4,6 +4,8 @@ package com.google.pubsub.v1; /** + * + * *
      * Request for the `Seek` method.<br><br>
      * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -13,24 +15,25 @@
      *
      * Protobuf type {@code google.pubsub.v1.SeekRequest}
      */
    -public  final class SeekRequest extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class SeekRequest extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekRequest)
         SeekRequestOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use SeekRequest.newBuilder() to construct.
       private SeekRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private SeekRequest() {
         subscription_ = "";
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private SeekRequest(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -50,78 +53,80 @@ private SeekRequest(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 10:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            subscription_ = s;
    -            break;
    -          }
    -          case 18: {
    -            com.google.protobuf.Timestamp.Builder subBuilder = null;
    -            if (targetCase_ == 2) {
    -              subBuilder = ((com.google.protobuf.Timestamp) target_).toBuilder();
    +              subscription_ = s;
    +              break;
                 }
    -            target_ =
    -                input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -            if (subBuilder != null) {
    -              subBuilder.mergeFrom((com.google.protobuf.Timestamp) target_);
    -              target_ = subBuilder.buildPartial();
    +          case 18:
    +            {
    +              com.google.protobuf.Timestamp.Builder subBuilder = null;
    +              if (targetCase_ == 2) {
    +                subBuilder = ((com.google.protobuf.Timestamp) target_).toBuilder();
    +              }
    +              target_ =
    +                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    +              if (subBuilder != null) {
    +                subBuilder.mergeFrom((com.google.protobuf.Timestamp) target_);
    +                target_ = subBuilder.buildPartial();
    +              }
    +              targetCase_ = 2;
    +              break;
                 }
    -            targetCase_ = 2;
    -            break;
    -          }
    -          case 26: {
    -            java.lang.String s = input.readStringRequireUtf8();
    -            targetCase_ = 3;
    -            target_ = s;
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +          case 26:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              targetCase_ = 3;
    +              target_ = s;
    +              break;
    +            }
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.pubsub.v1.SeekRequest.class, com.google.pubsub.v1.SeekRequest.Builder.class);
       }
     
       private int targetCase_ = 0;
       private java.lang.Object target_;
    -  public enum TargetCase
    -      implements com.google.protobuf.Internal.EnumLite {
    +
    +  public enum TargetCase implements com.google.protobuf.Internal.EnumLite {
         TIME(2),
         SNAPSHOT(3),
         TARGET_NOT_SET(0);
         private final int value;
    +
         private TargetCase(int value) {
           this.value = value;
         }
    -    /**
    -     * @deprecated Use {@link #forNumber(int)} instead.
    -     */
    +    /** @deprecated Use {@link #forNumber(int)} instead. */
         @java.lang.Deprecated
         public static TargetCase valueOf(int value) {
           return forNumber(value);
    @@ -129,26 +134,31 @@ public static TargetCase valueOf(int value) {
     
         public static TargetCase forNumber(int value) {
           switch (value) {
    -        case 2: return TIME;
    -        case 3: return SNAPSHOT;
    -        case 0: return TARGET_NOT_SET;
    -        default: return null;
    +        case 2:
    +          return TIME;
    +        case 3:
    +          return SNAPSHOT;
    +        case 0:
    +          return TARGET_NOT_SET;
    +        default:
    +          return null;
           }
         }
    +
         public int getNumber() {
           return this.value;
         }
       };
     
    -  public TargetCase
    -  getTargetCase() {
    -    return TargetCase.forNumber(
    -        targetCase_);
    +  public TargetCase getTargetCase() {
    +    return TargetCase.forNumber(targetCase_);
       }
     
       public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
       private volatile java.lang.Object subscription_;
       /**
    +   *
    +   *
        * 
        * The subscription to affect.
        * 
    @@ -160,27 +170,26 @@ public java.lang.String getSubscription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; } } /** + * + * *
        * The subscription to affect.
        * 
    * * string subscription = 1; */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -190,6 +199,8 @@ public java.lang.String getSubscription() { public static final int TIME_FIELD_NUMBER = 2; /** + * + * *
        * The time to seek to.
        * Messages retained in the subscription that were published before this
    @@ -210,6 +221,8 @@ public boolean hasTime() {
         return targetCase_ == 2;
       }
       /**
    +   *
    +   *
        * 
        * The time to seek to.
        * Messages retained in the subscription that were published before this
    @@ -228,11 +241,13 @@ public boolean hasTime() {
        */
       public com.google.protobuf.Timestamp getTime() {
         if (targetCase_ == 2) {
    -       return (com.google.protobuf.Timestamp) target_;
    +      return (com.google.protobuf.Timestamp) target_;
         }
         return com.google.protobuf.Timestamp.getDefaultInstance();
       }
       /**
    +   *
    +   *
        * 
        * The time to seek to.
        * Messages retained in the subscription that were published before this
    @@ -251,13 +266,15 @@ public com.google.protobuf.Timestamp getTime() {
        */
       public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
         if (targetCase_ == 2) {
    -       return (com.google.protobuf.Timestamp) target_;
    +      return (com.google.protobuf.Timestamp) target_;
         }
         return com.google.protobuf.Timestamp.getDefaultInstance();
       }
     
       public static final int SNAPSHOT_FIELD_NUMBER = 3;
       /**
    +   *
    +   *
        * 
        * The snapshot to seek to. The snapshot's topic must be the same as that of
        * the provided subscription.
    @@ -274,8 +291,7 @@ public java.lang.String getSnapshot() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           if (targetCase_ == 3) {
             target_ = s;
    @@ -284,6 +300,8 @@ public java.lang.String getSnapshot() {
         }
       }
       /**
    +   *
    +   *
        * 
        * The snapshot to seek to. The snapshot's topic must be the same as that of
        * the provided subscription.
    @@ -292,16 +310,14 @@ public java.lang.String getSnapshot() {
        *
        * string snapshot = 3;
        */
    -  public com.google.protobuf.ByteString
    -      getSnapshotBytes() {
    +  public com.google.protobuf.ByteString getSnapshotBytes() {
         java.lang.Object ref = "";
         if (targetCase_ == 3) {
           ref = target_;
         }
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           if (targetCase_ == 3) {
             target_ = b;
           }
    @@ -312,6 +328,7 @@ public java.lang.String getSnapshot() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -323,8 +340,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getSubscriptionBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
    @@ -347,8 +363,9 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         if (targetCase_ == 2) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, (com.google.protobuf.Timestamp) target_);
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(
    +              2, (com.google.protobuf.Timestamp) target_);
         }
         if (targetCase_ == 3) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_);
    @@ -361,7 +378,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.SeekRequest)) {
           return super.equals(obj);
    @@ -369,19 +386,15 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.SeekRequest other = (com.google.pubsub.v1.SeekRequest) obj;
     
         boolean result = true;
    -    result = result && getSubscription()
    -        .equals(other.getSubscription());
    -    result = result && getTargetCase().equals(
    -        other.getTargetCase());
    +    result = result && getSubscription().equals(other.getSubscription());
    +    result = result && getTargetCase().equals(other.getTargetCase());
         if (!result) return false;
         switch (targetCase_) {
           case 2:
    -        result = result && getTime()
    -            .equals(other.getTime());
    +        result = result && getTime().equals(other.getTime());
             break;
           case 3:
    -        result = result && getSnapshot()
    -            .equals(other.getSnapshot());
    +        result = result && getSnapshot().equals(other.getSnapshot());
             break;
           case 0:
           default:
    @@ -416,97 +429,103 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.SeekRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.SeekRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.SeekRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.SeekRequest parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.pubsub.v1.SeekRequest parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.SeekRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.SeekRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.SeekRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.SeekRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.SeekRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.SeekRequest parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.SeekRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.SeekRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.SeekRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.SeekRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the `Seek` method.<br><br>
        * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -516,21 +535,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.SeekRequest}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SeekRequest)
           com.google.pubsub.v1.SeekRequestOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_SeekRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.SeekRequest.class, com.google.pubsub.v1.SeekRequest.Builder.class);
    +              com.google.pubsub.v1.SeekRequest.class,
    +              com.google.pubsub.v1.SeekRequest.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.SeekRequest.newBuilder()
    @@ -538,16 +559,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -559,9 +579,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_SeekRequest_descriptor;
         }
     
         @java.lang.Override
    @@ -601,38 +621,39 @@ public com.google.pubsub.v1.SeekRequest buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.SeekRequest) {
    -        return mergeFrom((com.google.pubsub.v1.SeekRequest)other);
    +        return mergeFrom((com.google.pubsub.v1.SeekRequest) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -646,19 +667,22 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekRequest other) {
             onChanged();
           }
           switch (other.getTargetCase()) {
    -        case TIME: {
    -          mergeTime(other.getTime());
    -          break;
    -        }
    -        case SNAPSHOT: {
    -          targetCase_ = 3;
    -          target_ = other.target_;
    -          onChanged();
    -          break;
    -        }
    -        case TARGET_NOT_SET: {
    -          break;
    -        }
    +        case TIME:
    +          {
    +            mergeTime(other.getTime());
    +            break;
    +          }
    +        case SNAPSHOT:
    +          {
    +            targetCase_ = 3;
    +            target_ = other.target_;
    +            onChanged();
    +            break;
    +          }
    +        case TARGET_NOT_SET:
    +          {
    +            break;
    +          }
           }
           this.mergeUnknownFields(other.unknownFields);
           onChanged();
    @@ -688,12 +712,12 @@ public Builder mergeFrom(
           }
           return this;
         }
    +
         private int targetCase_ = 0;
         private java.lang.Object target_;
    -    public TargetCase
    -        getTargetCase() {
    -      return TargetCase.forNumber(
    -          targetCase_);
    +
    +    public TargetCase getTargetCase() {
    +      return TargetCase.forNumber(targetCase_);
         }
     
         public Builder clearTarget() {
    @@ -703,9 +727,10 @@ public Builder clearTarget() {
           return this;
         }
     
    -
         private java.lang.Object subscription_ = "";
         /**
    +     *
    +     *
          * 
          * The subscription to affect.
          * 
    @@ -715,8 +740,7 @@ public Builder clearTarget() { public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subscription_ = s; return s; @@ -725,19 +749,19 @@ public java.lang.String getSubscription() { } } /** + * + * *
          * The subscription to affect.
          * 
    * * string subscription = 1; */ - public com.google.protobuf.ByteString - getSubscriptionBytes() { + public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subscription_ = b; return b; } else { @@ -745,23 +769,26 @@ public java.lang.String getSubscription() { } } /** + * + * *
          * The subscription to affect.
          * 
    * * string subscription = 1; */ - public Builder setSubscription( - java.lang.String value) { + public Builder setSubscription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subscription_ = value; onChanged(); return this; } /** + * + * *
          * The subscription to affect.
          * 
    @@ -769,33 +796,39 @@ public Builder setSubscription( * string subscription = 1; */ public Builder clearSubscription() { - + subscription_ = getDefaultInstance().getSubscription(); onChanged(); return this; } /** + * + * *
          * The subscription to affect.
          * 
    * * string subscription = 1; */ - public Builder setSubscriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + timeBuilder_; /** + * + * *
          * The time to seek to.
          * Messages retained in the subscription that were published before this
    @@ -816,6 +849,8 @@ public boolean hasTime() {
           return targetCase_ == 2;
         }
         /**
    +     *
    +     *
          * 
          * The time to seek to.
          * Messages retained in the subscription that were published before this
    @@ -846,6 +881,8 @@ public com.google.protobuf.Timestamp getTime() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The time to seek to.
          * Messages retained in the subscription that were published before this
    @@ -876,6 +913,8 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The time to seek to.
          * Messages retained in the subscription that were published before this
    @@ -892,8 +931,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp time = 2;
          */
    -    public Builder setTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (timeBuilder_ == null) {
             target_ = builderForValue.build();
             onChanged();
    @@ -904,6 +942,8 @@ public Builder setTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The time to seek to.
          * Messages retained in the subscription that were published before this
    @@ -922,10 +962,11 @@ public Builder setTime(
          */
         public Builder mergeTime(com.google.protobuf.Timestamp value) {
           if (timeBuilder_ == null) {
    -        if (targetCase_ == 2 &&
    -            target_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
    -          target_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) target_)
    -              .mergeFrom(value).buildPartial();
    +        if (targetCase_ == 2 && target_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
    +          target_ =
    +              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) target_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               target_ = value;
             }
    @@ -940,6 +981,8 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The time to seek to.
          * Messages retained in the subscription that were published before this
    @@ -973,6 +1016,8 @@ public Builder clearTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The time to seek to.
          * Messages retained in the subscription that were published before this
    @@ -993,6 +1038,8 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
           return getTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * The time to seek to.
          * Messages retained in the subscription that were published before this
    @@ -1020,6 +1067,8 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The time to seek to.
          * Messages retained in the subscription that were published before this
    @@ -1037,25 +1086,31 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
          * .google.protobuf.Timestamp time = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getTimeFieldBuilder() {
           if (timeBuilder_ == null) {
             if (!(targetCase_ == 2)) {
               target_ = com.google.protobuf.Timestamp.getDefaultInstance();
             }
    -        timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                (com.google.protobuf.Timestamp) target_,
    -                getParentForChildren(),
    -                isClean());
    +        timeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                (com.google.protobuf.Timestamp) target_, getParentForChildren(), isClean());
             target_ = null;
           }
           targetCase_ = 2;
    -      onChanged();;
    +      onChanged();
    +      ;
           return timeBuilder_;
         }
     
         /**
    +     *
    +     *
          * 
          * The snapshot to seek to. The snapshot's topic must be the same as that of
          * the provided subscription.
    @@ -1070,8 +1125,7 @@ public java.lang.String getSnapshot() {
             ref = target_;
           }
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             if (targetCase_ == 3) {
               target_ = s;
    @@ -1082,6 +1136,8 @@ public java.lang.String getSnapshot() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The snapshot to seek to. The snapshot's topic must be the same as that of
          * the provided subscription.
    @@ -1090,16 +1146,14 @@ public java.lang.String getSnapshot() {
          *
          * string snapshot = 3;
          */
    -    public com.google.protobuf.ByteString
    -        getSnapshotBytes() {
    +    public com.google.protobuf.ByteString getSnapshotBytes() {
           java.lang.Object ref = "";
           if (targetCase_ == 3) {
             ref = target_;
           }
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             if (targetCase_ == 3) {
               target_ = b;
             }
    @@ -1109,6 +1163,8 @@ public java.lang.String getSnapshot() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The snapshot to seek to. The snapshot's topic must be the same as that of
          * the provided subscription.
    @@ -1117,17 +1173,18 @@ public java.lang.String getSnapshot() {
          *
          * string snapshot = 3;
          */
    -    public Builder setSnapshot(
    -        java.lang.String value) {
    +    public Builder setSnapshot(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  targetCase_ = 3;
    +        throw new NullPointerException();
    +      }
    +      targetCase_ = 3;
           target_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The snapshot to seek to. The snapshot's topic must be the same as that of
          * the provided subscription.
    @@ -1145,6 +1202,8 @@ public Builder clearSnapshot() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The snapshot to seek to. The snapshot's topic must be the same as that of
          * the provided subscription.
    @@ -1153,20 +1212,19 @@ public Builder clearSnapshot() {
          *
          * string snapshot = 3;
          */
    -    public Builder setSnapshotBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSnapshotBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
           targetCase_ = 3;
           target_ = value;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -1176,12 +1234,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SeekRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekRequest)
       private static final com.google.pubsub.v1.SeekRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.SeekRequest();
       }
    @@ -1190,16 +1248,16 @@ public static com.google.pubsub.v1.SeekRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public SeekRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new SeekRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public SeekRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new SeekRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1214,6 +1272,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.SeekRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java
    index 16b0c9df8945..81fae758f1c3 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface SeekRequestOrBuilder extends
    +public interface SeekRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The subscription to affect.
        * 
    @@ -16,16 +19,19 @@ public interface SeekRequestOrBuilder extends */ java.lang.String getSubscription(); /** + * + * *
        * The subscription to affect.
        * 
    * * string subscription = 1; */ - com.google.protobuf.ByteString - getSubscriptionBytes(); + com.google.protobuf.ByteString getSubscriptionBytes(); /** + * + * *
        * The time to seek to.
        * Messages retained in the subscription that were published before this
    @@ -44,6 +50,8 @@ public interface SeekRequestOrBuilder extends
        */
       boolean hasTime();
       /**
    +   *
    +   *
        * 
        * The time to seek to.
        * Messages retained in the subscription that were published before this
    @@ -62,6 +70,8 @@ public interface SeekRequestOrBuilder extends
        */
       com.google.protobuf.Timestamp getTime();
       /**
    +   *
    +   *
        * 
        * The time to seek to.
        * Messages retained in the subscription that were published before this
    @@ -81,6 +91,8 @@ public interface SeekRequestOrBuilder extends
       com.google.protobuf.TimestampOrBuilder getTimeOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * The snapshot to seek to. The snapshot's topic must be the same as that of
        * the provided subscription.
    @@ -91,6 +103,8 @@ public interface SeekRequestOrBuilder extends
        */
       java.lang.String getSnapshot();
       /**
    +   *
    +   *
        * 
        * The snapshot to seek to. The snapshot's topic must be the same as that of
        * the provided subscription.
    @@ -99,8 +113,7 @@ public interface SeekRequestOrBuilder extends
        *
        * string snapshot = 3;
        */
    -  com.google.protobuf.ByteString
    -      getSnapshotBytes();
    +  com.google.protobuf.ByteString getSnapshotBytes();
     
       public com.google.pubsub.v1.SeekRequest.TargetCase getTargetCase();
     }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java
    index 302549a91186..0265e69576c8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java
    @@ -4,29 +4,31 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Response for the `Seek` method (this response is empty).
      * 
    * * Protobuf type {@code google.pubsub.v1.SeekResponse} */ -public final class SeekResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SeekResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekResponse) SeekResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SeekResponse.newBuilder() to construct. private SeekResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SeekResponse() { - } + + private SeekResponse() {} @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SeekResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -45,39 +47,42 @@ private SeekResponse( case 0: done = true; break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SeekResponse.class, com.google.pubsub.v1.SeekResponse.Builder.class); + com.google.pubsub.v1.SeekResponse.class, + com.google.pubsub.v1.SeekResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -89,8 +94,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -108,7 +112,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.SeekResponse)) { return super.equals(obj); @@ -132,118 +136,126 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.SeekResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.SeekResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SeekResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.SeekResponse parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.SeekResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SeekResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.SeekResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.SeekResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.SeekResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.SeekResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.SeekResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.pubsub.v1.SeekResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.SeekResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.SeekResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.SeekResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Response for the `Seek` method (this response is empty).
        * 
    * * Protobuf type {@code google.pubsub.v1.SeekResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SeekResponse) com.google.pubsub.v1.SeekResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.SeekResponse.class, com.google.pubsub.v1.SeekResponse.Builder.class); + com.google.pubsub.v1.SeekResponse.class, + com.google.pubsub.v1.SeekResponse.Builder.class); } // Construct using com.google.pubsub.v1.SeekResponse.newBuilder() @@ -251,16 +263,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -268,9 +279,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SeekResponse_descriptor; } @java.lang.Override @@ -298,38 +309,39 @@ public com.google.pubsub.v1.SeekResponse buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.SeekResponse) { - return mergeFrom((com.google.pubsub.v1.SeekResponse)other); + return mergeFrom((com.google.pubsub.v1.SeekResponse) other); } else { super.mergeFrom(other); return this; @@ -366,9 +378,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @@ -378,12 +390,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SeekResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.SeekResponse) private static final com.google.pubsub.v1.SeekResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.SeekResponse(); } @@ -392,16 +404,16 @@ public static com.google.pubsub.v1.SeekResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SeekResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SeekResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SeekResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SeekResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -416,6 +428,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.SeekResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index df6f6dd5c616..a864c6daaaec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -3,7 +3,7 @@ package com.google.pubsub.v1; -public interface SeekResponseOrBuilder extends +public interface SeekResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekResponse) - com.google.protobuf.MessageOrBuilder { -} + com.google.protobuf.MessageOrBuilder {} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 2513ae6b9172..25134a5cf2b3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -4,6 +4,8 @@ package com.google.pubsub.v1; /** + * + * *
      * A snapshot resource.<br><br>
      * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -13,25 +15,26 @@
      *
      * Protobuf type {@code google.pubsub.v1.Snapshot}
      */
    -public  final class Snapshot extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class Snapshot extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.Snapshot)
         SnapshotOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use Snapshot.newBuilder() to construct.
       private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private Snapshot() {
         name_ = "";
         topic_ = "";
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private Snapshot(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -51,84 +54,87 @@ private Snapshot(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 10:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            name_ = s;
    -            break;
    -          }
    -          case 18: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +              name_ = s;
    +              break;
    +            }
    +          case 18:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            topic_ = s;
    -            break;
    -          }
    -          case 26: {
    -            com.google.protobuf.Timestamp.Builder subBuilder = null;
    -            if (expireTime_ != null) {
    -              subBuilder = expireTime_.toBuilder();
    +              topic_ = s;
    +              break;
                 }
    -            expireTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -            if (subBuilder != null) {
    -              subBuilder.mergeFrom(expireTime_);
    -              expireTime_ = subBuilder.buildPartial();
    +          case 26:
    +            {
    +              com.google.protobuf.Timestamp.Builder subBuilder = null;
    +              if (expireTime_ != null) {
    +                subBuilder = expireTime_.toBuilder();
    +              }
    +              expireTime_ =
    +                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    +              if (subBuilder != null) {
    +                subBuilder.mergeFrom(expireTime_);
    +                expireTime_ = subBuilder.buildPartial();
    +              }
    +
    +              break;
                 }
    -
    -            break;
    -          }
    -          case 34: {
    -            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
    -              labels_ = com.google.protobuf.MapField.newMapField(
    -                  LabelsDefaultEntryHolder.defaultEntry);
    -              mutable_bitField0_ |= 0x00000008;
    +          case 34:
    +            {
    +              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
    +                labels_ =
    +                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
    +                mutable_bitField0_ |= 0x00000008;
    +              }
    +              com.google.protobuf.MapEntry labels__ =
    +                  input.readMessage(
    +                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    +              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
    +              break;
                 }
    -            com.google.protobuf.MapEntry
    -            labels__ = input.readMessage(
    -                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    -            labels_.getMutableMap().put(
    -                labels__.getKey(), labels__.getValue());
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor;
       }
     
       @SuppressWarnings({"rawtypes"})
       @java.lang.Override
    -  protected com.google.protobuf.MapField internalGetMapField(
    -      int number) {
    +  protected com.google.protobuf.MapField internalGetMapField(int number) {
         switch (number) {
           case 4:
             return internalGetLabels();
           default:
    -        throw new RuntimeException(
    -            "Invalid map field number: " + number);
    +        throw new RuntimeException("Invalid map field number: " + number);
         }
       }
    +
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class);
       }
    @@ -137,6 +143,8 @@ protected com.google.protobuf.MapField internalGetMapField(
       public static final int NAME_FIELD_NUMBER = 1;
       private volatile java.lang.Object name_;
       /**
    +   *
    +   *
        * 
        * The name of the snapshot.
        * 
    @@ -148,27 +156,26 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * The name of the snapshot.
        * 
    * * string name = 1; */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -179,6 +186,8 @@ public java.lang.String getName() { public static final int TOPIC_FIELD_NUMBER = 2; private volatile java.lang.Object topic_; /** + * + * *
        * The name of the topic from which this snapshot is retaining messages.
        * 
    @@ -190,27 +199,26 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** + * + * *
        * The name of the topic from which this snapshot is retaining messages.
        * 
    * * string topic = 2; */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -221,6 +229,8 @@ public java.lang.String getTopic() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
        * 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
    @@ -240,6 +250,8 @@ public boolean hasExpireTime() {
         return expireTime_ != null;
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -259,6 +271,8 @@ public com.google.protobuf.Timestamp getExpireTime() {
         return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -279,24 +293,23 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       }
     
       public static final int LABELS_FIELD_NUMBER = 4;
    +
       private static final class LabelsDefaultEntryHolder {
    -    static final com.google.protobuf.MapEntry<
    -        java.lang.String, java.lang.String> defaultEntry =
    -            com.google.protobuf.MapEntry
    -            .newDefaultInstance(
    -                com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, 
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "",
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "");
    +    static final com.google.protobuf.MapEntry defaultEntry =
    +        com.google.protobuf.MapEntry.newDefaultInstance(
    +            com.google.pubsub.v1.PubsubProto
    +                .internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor,
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "",
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "");
       }
    -  private com.google.protobuf.MapField<
    -      java.lang.String, java.lang.String> labels_;
    -  private com.google.protobuf.MapField
    -  internalGetLabels() {
    +
    +  private com.google.protobuf.MapField labels_;
    +
    +  private com.google.protobuf.MapField internalGetLabels() {
         if (labels_ == null) {
    -      return com.google.protobuf.MapField.emptyMapField(
    -          LabelsDefaultEntryHolder.defaultEntry);
    +      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
         }
         return labels_;
       }
    @@ -305,65 +318,67 @@ public int getLabelsCount() {
         return internalGetLabels().getMap().size();
       }
       /**
    +   *
    +   *
        * 
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 4; */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 4; */ - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 4; */ - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 4; */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -371,6 +386,7 @@ public java.lang.String getLabelsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,8 +398,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -393,12 +408,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (expireTime_ != null) { output.writeMessage(3, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); unknownFields.writeTo(output); } @@ -415,18 +426,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getExpireTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -436,7 +446,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.Snapshot)) { return super.equals(obj); @@ -444,17 +454,13 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.Snapshot other = (com.google.pubsub.v1.Snapshot) obj; boolean result = true; - result = result && getName() - .equals(other.getName()); - result = result && getTopic() - .equals(other.getTopic()); + result = result && getName().equals(other.getName()); + result = result && getTopic().equals(other.getTopic()); result = result && (hasExpireTime() == other.hasExpireTime()); if (hasExpireTime()) { - result = result && getExpireTime() - .equals(other.getExpireTime()); + result = result && getExpireTime().equals(other.getExpireTime()); } - result = result && internalGetLabels().equals( - other.internalGetLabels()); + result = result && internalGetLabels().equals(other.internalGetLabels()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -483,97 +489,103 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.Snapshot parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.Snapshot parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Snapshot parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.Snapshot parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.pubsub.v1.Snapshot parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Snapshot parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.Snapshot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.Snapshot parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.Snapshot parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.Snapshot parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.Snapshot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.pubsub.v1.Snapshot parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.Snapshot parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.pubsub.v1.Snapshot parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.Snapshot parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.Snapshot prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * A snapshot resource.<br><br>
        * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -583,41 +595,39 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.Snapshot}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Snapshot)
           com.google.pubsub.v1.SnapshotOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor;
         }
     
         @SuppressWarnings({"rawtypes"})
    -    protected com.google.protobuf.MapField internalGetMapField(
    -        int number) {
    +    protected com.google.protobuf.MapField internalGetMapField(int number) {
           switch (number) {
             case 4:
               return internalGetLabels();
             default:
    -          throw new RuntimeException(
    -              "Invalid map field number: " + number);
    +          throw new RuntimeException("Invalid map field number: " + number);
           }
         }
    +
         @SuppressWarnings({"rawtypes"})
    -    protected com.google.protobuf.MapField internalGetMutableMapField(
    -        int number) {
    +    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
           switch (number) {
             case 4:
               return internalGetMutableLabels();
             default:
    -          throw new RuntimeException(
    -              "Invalid map field number: " + number);
    +          throw new RuntimeException("Invalid map field number: " + number);
           }
         }
    +
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class);
         }
    @@ -627,16 +637,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -655,8 +664,7 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
           return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor;
         }
     
    @@ -697,38 +705,39 @@ public com.google.pubsub.v1.Snapshot buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.Snapshot) {
    -        return mergeFrom((com.google.pubsub.v1.Snapshot)other);
    +        return mergeFrom((com.google.pubsub.v1.Snapshot) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -748,8 +757,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) {
           if (other.hasExpireTime()) {
             mergeExpireTime(other.getExpireTime());
           }
    -      internalGetMutableLabels().mergeFrom(
    -          other.internalGetLabels());
    +      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
           this.mergeUnknownFields(other.unknownFields);
           onChanged();
           return this;
    @@ -778,10 +786,13 @@ public Builder mergeFrom(
           }
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object name_ = "";
         /**
    +     *
    +     *
          * 
          * The name of the snapshot.
          * 
    @@ -791,8 +802,7 @@ public Builder mergeFrom( public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -801,19 +811,19 @@ public java.lang.String getName() { } } /** + * + * *
          * The name of the snapshot.
          * 
    * * string name = 1; */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -821,23 +831,26 @@ public java.lang.String getName() { } } /** + * + * *
          * The name of the snapshot.
          * 
    * * string name = 1; */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * The name of the snapshot.
          * 
    @@ -845,25 +858,26 @@ public Builder setName( * string name = 1; */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * The name of the snapshot.
          * 
    * * string name = 1; */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -871,6 +885,8 @@ public Builder setNameBytes( private java.lang.Object topic_ = ""; /** + * + * *
          * The name of the topic from which this snapshot is retaining messages.
          * 
    @@ -880,8 +896,7 @@ public Builder setNameBytes( public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -890,19 +905,19 @@ public java.lang.String getTopic() { } } /** + * + * *
          * The name of the topic from which this snapshot is retaining messages.
          * 
    * * string topic = 2; */ - public com.google.protobuf.ByteString - getTopicBytes() { + public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); topic_ = b; return b; } else { @@ -910,23 +925,26 @@ public java.lang.String getTopic() { } } /** + * + * *
          * The name of the topic from which this snapshot is retaining messages.
          * 
    * * string topic = 2; */ - public Builder setTopic( - java.lang.String value) { + public Builder setTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + topic_ = value; onChanged(); return this; } /** + * + * *
          * The name of the topic from which this snapshot is retaining messages.
          * 
    @@ -934,25 +952,26 @@ public Builder setTopic( * string topic = 2; */ public Builder clearTopic() { - + topic_ = getDefaultInstance().getTopic(); onChanged(); return this; } /** + * + * *
          * The name of the topic from which this snapshot is retaining messages.
          * 
    * * string topic = 2; */ - public Builder setTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; onChanged(); return this; @@ -960,8 +979,13 @@ public Builder setTopicBytes( private com.google.protobuf.Timestamp expireTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
          * 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
    @@ -981,6 +1005,8 @@ public boolean hasExpireTime() {
           return expireTimeBuilder_ != null || expireTime_ != null;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -998,12 +1024,16 @@ public boolean hasExpireTime() {
          */
         public com.google.protobuf.Timestamp getExpireTime() {
           if (expireTimeBuilder_ == null) {
    -        return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
    +        return expireTime_ == null
    +            ? com.google.protobuf.Timestamp.getDefaultInstance()
    +            : expireTime_;
           } else {
             return expireTimeBuilder_.getMessage();
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1033,6 +1063,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1048,8 +1080,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
          *
          * .google.protobuf.Timestamp expire_time = 3;
          */
    -    public Builder setExpireTime(
    -        com.google.protobuf.Timestamp.Builder builderForValue) {
    +    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
           if (expireTimeBuilder_ == null) {
             expireTime_ = builderForValue.build();
             onChanged();
    @@ -1060,6 +1091,8 @@ public Builder setExpireTime(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1079,7 +1112,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
           if (expireTimeBuilder_ == null) {
             if (expireTime_ != null) {
               expireTime_ =
    -            com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial();
             } else {
               expireTime_ = value;
             }
    @@ -1091,6 +1124,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1118,6 +1153,8 @@ public Builder clearExpireTime() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1134,11 +1171,13 @@ public Builder clearExpireTime() {
          * .google.protobuf.Timestamp expire_time = 3;
          */
         public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
    -      
    +
           onChanged();
           return getExpireTimeFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1158,11 +1197,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
           if (expireTimeBuilder_ != null) {
             return expireTimeBuilder_.getMessageOrBuilder();
           } else {
    -        return expireTime_ == null ?
    -            com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
    +        return expireTime_ == null
    +            ? com.google.protobuf.Timestamp.getDefaultInstance()
    +            : expireTime_;
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -1179,35 +1221,37 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
          * .google.protobuf.Timestamp expire_time = 3;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
    +            com.google.protobuf.Timestamp,
    +            com.google.protobuf.Timestamp.Builder,
    +            com.google.protobuf.TimestampOrBuilder>
             getExpireTimeFieldBuilder() {
           if (expireTimeBuilder_ == null) {
    -        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
    -                getExpireTime(),
    -                getParentForChildren(),
    -                isClean());
    +        expireTimeBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Timestamp,
    +                com.google.protobuf.Timestamp.Builder,
    +                com.google.protobuf.TimestampOrBuilder>(
    +                getExpireTime(), getParentForChildren(), isClean());
             expireTime_ = null;
           }
           return expireTimeBuilder_;
         }
     
    -    private com.google.protobuf.MapField<
    -        java.lang.String, java.lang.String> labels_;
    -    private com.google.protobuf.MapField
    -    internalGetLabels() {
    +    private com.google.protobuf.MapField labels_;
    +
    +    private com.google.protobuf.MapField internalGetLabels() {
           if (labels_ == null) {
    -        return com.google.protobuf.MapField.emptyMapField(
    -            LabelsDefaultEntryHolder.defaultEntry);
    +        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
           }
           return labels_;
         }
    +
         private com.google.protobuf.MapField
    -    internalGetMutableLabels() {
    -      onChanged();;
    +        internalGetMutableLabels() {
    +      onChanged();
    +      ;
           if (labels_ == null) {
    -        labels_ = com.google.protobuf.MapField.newMapField(
    -            LabelsDefaultEntryHolder.defaultEntry);
    +        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
           }
           if (!labels_.isMutable()) {
             labels_ = labels_.copy();
    @@ -1219,65 +1263,68 @@ public int getLabelsCount() {
           return internalGetLabels().getMap().size();
         }
         /**
    +     *
    +     *
          * 
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 4; */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 4; */ - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 4; */ - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 4; */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1285,66 +1332,65 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 4; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 4; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 4; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @@ -1354,12 +1400,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Snapshot) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.Snapshot) private static final com.google.pubsub.v1.Snapshot DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.Snapshot(); } @@ -1368,16 +1414,16 @@ public static com.google.pubsub.v1.Snapshot getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snapshot parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Snapshot(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snapshot parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Snapshot(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1392,6 +1438,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.Snapshot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index fe4d6d96c74f..18d810f29ec1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -3,11 +3,14 @@ package com.google.pubsub.v1; -public interface SnapshotOrBuilder extends +public interface SnapshotOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Snapshot) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The name of the snapshot.
        * 
    @@ -16,16 +19,19 @@ public interface SnapshotOrBuilder extends */ java.lang.String getName(); /** + * + * *
        * The name of the snapshot.
        * 
    * * string name = 1; */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
        * The name of the topic from which this snapshot is retaining messages.
        * 
    @@ -34,16 +40,19 @@ public interface SnapshotOrBuilder extends */ java.lang.String getTopic(); /** + * + * *
        * The name of the topic from which this snapshot is retaining messages.
        * 
    * * string topic = 2; */ - com.google.protobuf.ByteString - getTopicBytes(); + com.google.protobuf.ByteString getTopicBytes(); /** + * + * *
        * 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
    @@ -61,6 +70,8 @@ public interface SnapshotOrBuilder extends
        */
       boolean hasExpireTime();
       /**
    +   *
    +   *
        * 
        * 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
    @@ -78,6 +89,8 @@ public interface SnapshotOrBuilder extends
        */
       com.google.protobuf.Timestamp getExpireTime();
       /**
    +   *
    +   *
        * 
        * 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
    @@ -96,6 +109,8 @@ public interface SnapshotOrBuilder extends
       com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    @@ -104,48 +119,46 @@ public interface SnapshotOrBuilder extends */ int getLabelsCount(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 11df06758c2c..78a99998020c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -4,6 +4,8 @@ package com.google.pubsub.v1; /** + * + * *
      * Request for the `StreamingPull` streaming RPC method. This request is used to
      * establish the initial stream as well as to stream acknowledgements and ack
    @@ -12,15 +14,16 @@
      *
      * Protobuf type {@code google.pubsub.v1.StreamingPullRequest}
      */
    -public  final class StreamingPullRequest extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class StreamingPullRequest extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullRequest)
         StreamingPullRequestOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use StreamingPullRequest.newBuilder() to construct.
       private StreamingPullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private StreamingPullRequest() {
         subscription_ = "";
         ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    @@ -30,10 +33,10 @@ private StreamingPullRequest() {
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private StreamingPullRequest(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -53,70 +56,75 @@ private StreamingPullRequest(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            java.lang.String s = input.readStringRequireUtf8();
    +          case 10:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
     
    -            subscription_ = s;
    -            break;
    -          }
    -          case 18: {
    -            java.lang.String s = input.readStringRequireUtf8();
    -            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
    -              ackIds_ = new com.google.protobuf.LazyStringArrayList();
    -              mutable_bitField0_ |= 0x00000002;
    -            }
    -            ackIds_.add(s);
    -            break;
    -          }
    -          case 24: {
    -            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
    -              modifyDeadlineSeconds_ = new java.util.ArrayList();
    -              mutable_bitField0_ |= 0x00000004;
    +              subscription_ = s;
    +              break;
                 }
    -            modifyDeadlineSeconds_.add(input.readInt32());
    -            break;
    -          }
    -          case 26: {
    -            int length = input.readRawVarint32();
    -            int limit = input.pushLimit(length);
    -            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
    -              modifyDeadlineSeconds_ = new java.util.ArrayList();
    -              mutable_bitField0_ |= 0x00000004;
    +          case 18:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
    +                ackIds_ = new com.google.protobuf.LazyStringArrayList();
    +                mutable_bitField0_ |= 0x00000002;
    +              }
    +              ackIds_.add(s);
    +              break;
                 }
    -            while (input.getBytesUntilLimit() > 0) {
    +          case 24:
    +            {
    +              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
    +                modifyDeadlineSeconds_ = new java.util.ArrayList();
    +                mutable_bitField0_ |= 0x00000004;
    +              }
                   modifyDeadlineSeconds_.add(input.readInt32());
    +              break;
                 }
    -            input.popLimit(limit);
    -            break;
    -          }
    -          case 34: {
    -            java.lang.String s = input.readStringRequireUtf8();
    -            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
    -              modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList();
    -              mutable_bitField0_ |= 0x00000008;
    +          case 26:
    +            {
    +              int length = input.readRawVarint32();
    +              int limit = input.pushLimit(length);
    +              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)
    +                  && input.getBytesUntilLimit() > 0) {
    +                modifyDeadlineSeconds_ = new java.util.ArrayList();
    +                mutable_bitField0_ |= 0x00000004;
    +              }
    +              while (input.getBytesUntilLimit() > 0) {
    +                modifyDeadlineSeconds_.add(input.readInt32());
    +              }
    +              input.popLimit(limit);
    +              break;
                 }
    -            modifyDeadlineAckIds_.add(s);
    -            break;
    -          }
    -          case 40: {
    -
    -            streamAckDeadlineSeconds_ = input.readInt32();
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +          case 34:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
    +              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
    +                modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList();
    +                mutable_bitField0_ |= 0x00000008;
    +              }
    +              modifyDeadlineAckIds_.add(s);
    +              break;
    +            }
    +          case 40:
    +            {
    +              streamAckDeadlineSeconds_ = input.readInt32();
    +              break;
    +            }
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
             ackIds_ = ackIds_.getUnmodifiableView();
    @@ -131,23 +139,28 @@ private StreamingPullRequest(
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.StreamingPullRequest.class, com.google.pubsub.v1.StreamingPullRequest.Builder.class);
    +            com.google.pubsub.v1.StreamingPullRequest.class,
    +            com.google.pubsub.v1.StreamingPullRequest.Builder.class);
       }
     
       private int bitField0_;
       public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
       private volatile java.lang.Object subscription_;
       /**
    +   *
    +   *
        * 
        * 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
    @@ -162,14 +175,15 @@ public java.lang.String getSubscription() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           subscription_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * 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
    @@ -179,13 +193,11 @@ public java.lang.String getSubscription() {
        *
        * string subscription = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getSubscriptionBytes() {
    +  public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           subscription_ = b;
           return b;
         } else {
    @@ -196,6 +208,8 @@ public java.lang.String getSubscription() {
       public static final int ACK_IDS_FIELD_NUMBER = 2;
       private com.google.protobuf.LazyStringList ackIds_;
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs for acknowledging previously received messages
        * (received on this stream or a different stream). If an ack ID has expired,
    @@ -206,11 +220,12 @@ public java.lang.String getSubscription() {
        *
        * repeated string ack_ids = 2;
        */
    -  public com.google.protobuf.ProtocolStringList
    -      getAckIdsList() {
    +  public com.google.protobuf.ProtocolStringList getAckIdsList() {
         return ackIds_;
       }
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs for acknowledging previously received messages
        * (received on this stream or a different stream). If an ack ID has expired,
    @@ -225,6 +240,8 @@ public int getAckIdsCount() {
         return ackIds_.size();
       }
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs for acknowledging previously received messages
        * (received on this stream or a different stream). If an ack ID has expired,
    @@ -239,6 +256,8 @@ public java.lang.String getAckIds(int index) {
         return ackIds_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs for acknowledging previously received messages
        * (received on this stream or a different stream). If an ack ID has expired,
    @@ -249,14 +268,15 @@ public java.lang.String getAckIds(int index) {
        *
        * repeated string ack_ids = 2;
        */
    -  public com.google.protobuf.ByteString
    -      getAckIdsBytes(int index) {
    +  public com.google.protobuf.ByteString getAckIdsBytes(int index) {
         return ackIds_.getByteString(index);
       }
     
       public static final int MODIFY_DEADLINE_SECONDS_FIELD_NUMBER = 3;
       private java.util.List modifyDeadlineSeconds_;
       /**
    +   *
    +   *
        * 
        * The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -273,11 +293,12 @@ public java.lang.String getAckIds(int index) {
        *
        * repeated int32 modify_deadline_seconds = 3;
        */
    -  public java.util.List
    -      getModifyDeadlineSecondsList() {
    +  public java.util.List getModifyDeadlineSecondsList() {
         return modifyDeadlineSeconds_;
       }
       /**
    +   *
    +   *
        * 
        * The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -298,6 +319,8 @@ public int getModifyDeadlineSecondsCount() {
         return modifyDeadlineSeconds_.size();
       }
       /**
    +   *
    +   *
        * 
        * The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -317,11 +340,14 @@ public int getModifyDeadlineSecondsCount() {
       public int getModifyDeadlineSeconds(int index) {
         return modifyDeadlineSeconds_.get(index);
       }
    +
       private int modifyDeadlineSecondsMemoizedSerializedSize = -1;
     
       public static final int MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER = 4;
       private com.google.protobuf.LazyStringList modifyDeadlineAckIds_;
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs whose deadline will be modified based on the
        * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -332,11 +358,12 @@ public int getModifyDeadlineSeconds(int index) {
        *
        * repeated string modify_deadline_ack_ids = 4;
        */
    -  public com.google.protobuf.ProtocolStringList
    -      getModifyDeadlineAckIdsList() {
    +  public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
         return modifyDeadlineAckIds_;
       }
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs whose deadline will be modified based on the
        * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -351,6 +378,8 @@ public int getModifyDeadlineAckIdsCount() {
         return modifyDeadlineAckIds_.size();
       }
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs whose deadline will be modified based on the
        * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -365,6 +394,8 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
         return modifyDeadlineAckIds_.get(index);
       }
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs whose deadline will be modified based on the
        * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -375,14 +406,15 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
        *
        * repeated string modify_deadline_ack_ids = 4;
        */
    -  public com.google.protobuf.ByteString
    -      getModifyDeadlineAckIdsBytes(int index) {
    +  public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) {
         return modifyDeadlineAckIds_.getByteString(index);
       }
     
       public static final int STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5;
       private int streamAckDeadlineSeconds_;
       /**
    +   *
    +   *
        * 
        * The ack deadline to use for the stream. This must be provided in the
        * first request on the stream, but it can also be updated on subsequent
    @@ -397,6 +429,7 @@ public int getStreamAckDeadlineSeconds() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -408,8 +441,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         getSerializedSize();
         if (!getSubscriptionBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
    @@ -425,7 +457,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
           output.writeInt32NoTag(modifyDeadlineSeconds_.get(i));
         }
         for (int i = 0; i < modifyDeadlineAckIds_.size(); i++) {
    -      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modifyDeadlineAckIds_.getRaw(i));
    +      com.google.protobuf.GeneratedMessageV3.writeString(
    +          output, 4, modifyDeadlineAckIds_.getRaw(i));
         }
         if (streamAckDeadlineSeconds_ != 0) {
           output.writeInt32(5, streamAckDeadlineSeconds_);
    @@ -453,14 +486,14 @@ public int getSerializedSize() {
         {
           int dataSize = 0;
           for (int i = 0; i < modifyDeadlineSeconds_.size(); i++) {
    -        dataSize += com.google.protobuf.CodedOutputStream
    -          .computeInt32SizeNoTag(modifyDeadlineSeconds_.get(i));
    +        dataSize +=
    +            com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(
    +                modifyDeadlineSeconds_.get(i));
           }
           size += dataSize;
           if (!getModifyDeadlineSecondsList().isEmpty()) {
             size += 1;
    -        size += com.google.protobuf.CodedOutputStream
    -            .computeInt32SizeNoTag(dataSize);
    +        size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
           }
           modifyDeadlineSecondsMemoizedSerializedSize = dataSize;
         }
    @@ -473,8 +506,7 @@ public int getSerializedSize() {
           size += 1 * getModifyDeadlineAckIdsList().size();
         }
         if (streamAckDeadlineSeconds_ != 0) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeInt32Size(5, streamAckDeadlineSeconds_);
    +      size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, streamAckDeadlineSeconds_);
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -484,24 +516,20 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.StreamingPullRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.StreamingPullRequest other = (com.google.pubsub.v1.StreamingPullRequest) obj;
    +    com.google.pubsub.v1.StreamingPullRequest other =
    +        (com.google.pubsub.v1.StreamingPullRequest) obj;
     
         boolean result = true;
    -    result = result && getSubscription()
    -        .equals(other.getSubscription());
    -    result = result && getAckIdsList()
    -        .equals(other.getAckIdsList());
    -    result = result && getModifyDeadlineSecondsList()
    -        .equals(other.getModifyDeadlineSecondsList());
    -    result = result && getModifyDeadlineAckIdsList()
    -        .equals(other.getModifyDeadlineAckIdsList());
    -    result = result && (getStreamAckDeadlineSeconds()
    -        == other.getStreamAckDeadlineSeconds());
    +    result = result && getSubscription().equals(other.getSubscription());
    +    result = result && getAckIdsList().equals(other.getAckIdsList());
    +    result = result && getModifyDeadlineSecondsList().equals(other.getModifyDeadlineSecondsList());
    +    result = result && getModifyDeadlineAckIdsList().equals(other.getModifyDeadlineAckIdsList());
    +    result = result && (getStreamAckDeadlineSeconds() == other.getStreamAckDeadlineSeconds());
         result = result && unknownFields.equals(other.unknownFields);
         return result;
       }
    @@ -534,97 +562,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.StreamingPullRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.StreamingPullRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.StreamingPullRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.StreamingPullRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.StreamingPullRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.StreamingPullRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.StreamingPullRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.StreamingPullRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.StreamingPullRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.StreamingPullRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.StreamingPullRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.StreamingPullRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the `StreamingPull` streaming RPC method. This request is used to
        * establish the initial stream as well as to stream acknowledgements and ack
    @@ -633,21 +668,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.StreamingPullRequest}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullRequest)
           com.google.pubsub.v1.StreamingPullRequestOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.StreamingPullRequest.class, com.google.pubsub.v1.StreamingPullRequest.Builder.class);
    +              com.google.pubsub.v1.StreamingPullRequest.class,
    +              com.google.pubsub.v1.StreamingPullRequest.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.StreamingPullRequest.newBuilder()
    @@ -655,16 +692,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -682,9 +718,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
         }
     
         @java.lang.Override
    @@ -703,7 +739,8 @@ public com.google.pubsub.v1.StreamingPullRequest build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.StreamingPullRequest buildPartial() {
    -      com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this);
    +      com.google.pubsub.v1.StreamingPullRequest result =
    +          new com.google.pubsub.v1.StreamingPullRequest(this);
           int from_bitField0_ = bitField0_;
           int to_bitField0_ = 0;
           result.subscription_ = subscription_;
    @@ -732,38 +769,39 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.StreamingPullRequest) {
    -        return mergeFrom((com.google.pubsub.v1.StreamingPullRequest)other);
    +        return mergeFrom((com.google.pubsub.v1.StreamingPullRequest) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -837,10 +875,13 @@ public Builder mergeFrom(
           }
           return this;
         }
    +
         private int bitField0_;
     
         private java.lang.Object subscription_ = "";
         /**
    +     *
    +     *
          * 
          * 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
    @@ -853,8 +894,7 @@ public Builder mergeFrom(
         public java.lang.String getSubscription() {
           java.lang.Object ref = subscription_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             subscription_ = s;
             return s;
    @@ -863,6 +903,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -872,13 +914,11 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getSubscriptionBytes() {
    +    public com.google.protobuf.ByteString getSubscriptionBytes() {
           java.lang.Object ref = subscription_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             subscription_ = b;
             return b;
           } else {
    @@ -886,6 +926,8 @@ public java.lang.String getSubscription() {
           }
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -895,17 +937,18 @@ public java.lang.String getSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscription(
    -        java.lang.String value) {
    +    public Builder setSubscription(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           subscription_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -916,12 +959,14 @@ public Builder setSubscription(
          * string subscription = 1;
          */
         public Builder clearSubscription() {
    -      
    +
           subscription_ = getDefaultInstance().getSubscription();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * 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
    @@ -931,26 +976,29 @@ public Builder clearSubscription() {
          *
          * string subscription = 1;
          */
    -    public Builder setSubscriptionBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           subscription_ = value;
           onChanged();
           return this;
         }
     
    -    private com.google.protobuf.LazyStringList ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList ackIds_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureAckIdsIsMutable() {
           if (!((bitField0_ & 0x00000002) == 0x00000002)) {
             ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
             bitField0_ |= 0x00000002;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs for acknowledging previously received messages
          * (received on this stream or a different stream). If an ack ID has expired,
    @@ -961,11 +1009,12 @@ private void ensureAckIdsIsMutable() {
          *
          * repeated string ack_ids = 2;
          */
    -    public com.google.protobuf.ProtocolStringList
    -        getAckIdsList() {
    +    public com.google.protobuf.ProtocolStringList getAckIdsList() {
           return ackIds_.getUnmodifiableView();
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs for acknowledging previously received messages
          * (received on this stream or a different stream). If an ack ID has expired,
    @@ -980,6 +1029,8 @@ public int getAckIdsCount() {
           return ackIds_.size();
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs for acknowledging previously received messages
          * (received on this stream or a different stream). If an ack ID has expired,
    @@ -994,6 +1045,8 @@ public java.lang.String getAckIds(int index) {
           return ackIds_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs for acknowledging previously received messages
          * (received on this stream or a different stream). If an ack ID has expired,
    @@ -1004,11 +1057,12 @@ public java.lang.String getAckIds(int index) {
          *
          * repeated string ack_ids = 2;
          */
    -    public com.google.protobuf.ByteString
    -        getAckIdsBytes(int index) {
    +    public com.google.protobuf.ByteString getAckIdsBytes(int index) {
           return ackIds_.getByteString(index);
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs for acknowledging previously received messages
          * (received on this stream or a different stream). If an ack ID has expired,
    @@ -1019,17 +1073,18 @@ public java.lang.String getAckIds(int index) {
          *
          * repeated string ack_ids = 2;
          */
    -    public Builder setAckIds(
    -        int index, java.lang.String value) {
    +    public Builder setAckIds(int index, java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  ensureAckIdsIsMutable();
    +        throw new NullPointerException();
    +      }
    +      ensureAckIdsIsMutable();
           ackIds_.set(index, value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs for acknowledging previously received messages
          * (received on this stream or a different stream). If an ack ID has expired,
    @@ -1040,17 +1095,18 @@ public Builder setAckIds(
          *
          * repeated string ack_ids = 2;
          */
    -    public Builder addAckIds(
    -        java.lang.String value) {
    +    public Builder addAckIds(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  ensureAckIdsIsMutable();
    +        throw new NullPointerException();
    +      }
    +      ensureAckIdsIsMutable();
           ackIds_.add(value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs for acknowledging previously received messages
          * (received on this stream or a different stream). If an ack ID has expired,
    @@ -1061,15 +1117,15 @@ public Builder addAckIds(
          *
          * repeated string ack_ids = 2;
          */
    -    public Builder addAllAckIds(
    -        java.lang.Iterable values) {
    +    public Builder addAllAckIds(java.lang.Iterable values) {
           ensureAckIdsIsMutable();
    -      com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -          values, ackIds_);
    +      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs for acknowledging previously received messages
          * (received on this stream or a different stream). If an ack ID has expired,
    @@ -1087,6 +1143,8 @@ public Builder clearAckIds() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs for acknowledging previously received messages
          * (received on this stream or a different stream). If an ack ID has expired,
    @@ -1097,26 +1155,29 @@ public Builder clearAckIds() {
          *
          * repeated string ack_ids = 2;
          */
    -    public Builder addAckIdsBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder addAckIdsBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
           ensureAckIdsIsMutable();
           ackIds_.add(value);
           onChanged();
           return this;
         }
     
    -    private java.util.List modifyDeadlineSeconds_ = java.util.Collections.emptyList();
    +    private java.util.List modifyDeadlineSeconds_ =
    +        java.util.Collections.emptyList();
    +
         private void ensureModifyDeadlineSecondsIsMutable() {
           if (!((bitField0_ & 0x00000004) == 0x00000004)) {
             modifyDeadlineSeconds_ = new java.util.ArrayList(modifyDeadlineSeconds_);
             bitField0_ |= 0x00000004;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -1133,11 +1194,12 @@ private void ensureModifyDeadlineSecondsIsMutable() {
          *
          * repeated int32 modify_deadline_seconds = 3;
          */
    -    public java.util.List
    -        getModifyDeadlineSecondsList() {
    +    public java.util.List getModifyDeadlineSecondsList() {
           return java.util.Collections.unmodifiableList(modifyDeadlineSeconds_);
         }
         /**
    +     *
    +     *
          * 
          * The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -1158,6 +1220,8 @@ public int getModifyDeadlineSecondsCount() {
           return modifyDeadlineSeconds_.size();
         }
         /**
    +     *
    +     *
          * 
          * The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -1178,6 +1242,8 @@ public int getModifyDeadlineSeconds(int index) {
           return modifyDeadlineSeconds_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -1194,14 +1260,15 @@ public int getModifyDeadlineSeconds(int index) {
          *
          * repeated int32 modify_deadline_seconds = 3;
          */
    -    public Builder setModifyDeadlineSeconds(
    -        int index, int value) {
    +    public Builder setModifyDeadlineSeconds(int index, int value) {
           ensureModifyDeadlineSecondsIsMutable();
           modifyDeadlineSeconds_.set(index, value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -1225,6 +1292,8 @@ public Builder addModifyDeadlineSeconds(int value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -1244,12 +1313,13 @@ public Builder addModifyDeadlineSeconds(int value) {
         public Builder addAllModifyDeadlineSeconds(
             java.lang.Iterable values) {
           ensureModifyDeadlineSecondsIsMutable();
    -      com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -          values, modifyDeadlineSeconds_);
    +      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modifyDeadlineSeconds_);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -1273,14 +1343,18 @@ public Builder clearModifyDeadlineSeconds() {
           return this;
         }
     
    -    private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ =
    +        com.google.protobuf.LazyStringArrayList.EMPTY;
    +
         private void ensureModifyDeadlineAckIdsIsMutable() {
           if (!((bitField0_ & 0x00000008) == 0x00000008)) {
             modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(modifyDeadlineAckIds_);
             bitField0_ |= 0x00000008;
    -       }
    +      }
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs whose deadline will be modified based on the
          * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -1291,11 +1365,12 @@ private void ensureModifyDeadlineAckIdsIsMutable() {
          *
          * repeated string modify_deadline_ack_ids = 4;
          */
    -    public com.google.protobuf.ProtocolStringList
    -        getModifyDeadlineAckIdsList() {
    +    public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
           return modifyDeadlineAckIds_.getUnmodifiableView();
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs whose deadline will be modified based on the
          * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -1310,6 +1385,8 @@ public int getModifyDeadlineAckIdsCount() {
           return modifyDeadlineAckIds_.size();
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs whose deadline will be modified based on the
          * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -1324,6 +1401,8 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
           return modifyDeadlineAckIds_.get(index);
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs whose deadline will be modified based on the
          * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -1334,11 +1413,12 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
          *
          * repeated string modify_deadline_ack_ids = 4;
          */
    -    public com.google.protobuf.ByteString
    -        getModifyDeadlineAckIdsBytes(int index) {
    +    public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) {
           return modifyDeadlineAckIds_.getByteString(index);
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs whose deadline will be modified based on the
          * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -1349,17 +1429,18 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
          *
          * repeated string modify_deadline_ack_ids = 4;
          */
    -    public Builder setModifyDeadlineAckIds(
    -        int index, java.lang.String value) {
    +    public Builder setModifyDeadlineAckIds(int index, java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  ensureModifyDeadlineAckIdsIsMutable();
    +        throw new NullPointerException();
    +      }
    +      ensureModifyDeadlineAckIdsIsMutable();
           modifyDeadlineAckIds_.set(index, value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs whose deadline will be modified based on the
          * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -1370,17 +1451,18 @@ public Builder setModifyDeadlineAckIds(
          *
          * repeated string modify_deadline_ack_ids = 4;
          */
    -    public Builder addModifyDeadlineAckIds(
    -        java.lang.String value) {
    +    public Builder addModifyDeadlineAckIds(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  ensureModifyDeadlineAckIdsIsMutable();
    +        throw new NullPointerException();
    +      }
    +      ensureModifyDeadlineAckIdsIsMutable();
           modifyDeadlineAckIds_.add(value);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs whose deadline will be modified based on the
          * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -1391,15 +1473,15 @@ public Builder addModifyDeadlineAckIds(
          *
          * repeated string modify_deadline_ack_ids = 4;
          */
    -    public Builder addAllModifyDeadlineAckIds(
    -        java.lang.Iterable values) {
    +    public Builder addAllModifyDeadlineAckIds(java.lang.Iterable values) {
           ensureModifyDeadlineAckIdsIsMutable();
    -      com.google.protobuf.AbstractMessageLite.Builder.addAll(
    -          values, modifyDeadlineAckIds_);
    +      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modifyDeadlineAckIds_);
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs whose deadline will be modified based on the
          * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -1417,6 +1499,8 @@ public Builder clearModifyDeadlineAckIds() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * List of acknowledgement IDs whose deadline will be modified based on the
          * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -1427,20 +1511,21 @@ public Builder clearModifyDeadlineAckIds() {
          *
          * repeated string modify_deadline_ack_ids = 4;
          */
    -    public Builder addModifyDeadlineAckIdsBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
           ensureModifyDeadlineAckIdsIsMutable();
           modifyDeadlineAckIds_.add(value);
           onChanged();
           return this;
         }
     
    -    private int streamAckDeadlineSeconds_ ;
    +    private int streamAckDeadlineSeconds_;
         /**
    +     *
    +     *
          * 
          * The ack deadline to use for the stream. This must be provided in the
          * first request on the stream, but it can also be updated on subsequent
    @@ -1454,6 +1539,8 @@ public int getStreamAckDeadlineSeconds() {
           return streamAckDeadlineSeconds_;
         }
         /**
    +     *
    +     *
          * 
          * The ack deadline to use for the stream. This must be provided in the
          * first request on the stream, but it can also be updated on subsequent
    @@ -1464,12 +1551,14 @@ public int getStreamAckDeadlineSeconds() {
          * int32 stream_ack_deadline_seconds = 5;
          */
         public Builder setStreamAckDeadlineSeconds(int value) {
    -      
    +
           streamAckDeadlineSeconds_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The ack deadline to use for the stream. This must be provided in the
          * first request on the stream, but it can also be updated on subsequent
    @@ -1480,14 +1569,14 @@ public Builder setStreamAckDeadlineSeconds(int value) {
          * int32 stream_ack_deadline_seconds = 5;
          */
         public Builder clearStreamAckDeadlineSeconds() {
    -      
    +
           streamAckDeadlineSeconds_ = 0;
           onChanged();
           return this;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -1497,12 +1586,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullRequest)
       private static final com.google.pubsub.v1.StreamingPullRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullRequest();
       }
    @@ -1511,16 +1600,16 @@ public static com.google.pubsub.v1.StreamingPullRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public StreamingPullRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new StreamingPullRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public StreamingPullRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new StreamingPullRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1535,6 +1624,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.StreamingPullRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
    index a3188111606a..c270fecd8e53 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface StreamingPullRequestOrBuilder extends
    +public interface StreamingPullRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * 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
    @@ -19,6 +22,8 @@ public interface StreamingPullRequestOrBuilder extends
        */
       java.lang.String getSubscription();
       /**
    +   *
    +   *
        * 
        * 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
    @@ -28,10 +33,11 @@ public interface StreamingPullRequestOrBuilder extends
        *
        * string subscription = 1;
        */
    -  com.google.protobuf.ByteString
    -      getSubscriptionBytes();
    +  com.google.protobuf.ByteString getSubscriptionBytes();
     
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs for acknowledging previously received messages
        * (received on this stream or a different stream). If an ack ID has expired,
    @@ -42,9 +48,10 @@ public interface StreamingPullRequestOrBuilder extends
        *
        * repeated string ack_ids = 2;
        */
    -  java.util.List
    -      getAckIdsList();
    +  java.util.List getAckIdsList();
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs for acknowledging previously received messages
        * (received on this stream or a different stream). If an ack ID has expired,
    @@ -57,6 +64,8 @@ public interface StreamingPullRequestOrBuilder extends
        */
       int getAckIdsCount();
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs for acknowledging previously received messages
        * (received on this stream or a different stream). If an ack ID has expired,
    @@ -69,6 +78,8 @@ public interface StreamingPullRequestOrBuilder extends
        */
       java.lang.String getAckIds(int index);
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs for acknowledging previously received messages
        * (received on this stream or a different stream). If an ack ID has expired,
    @@ -79,10 +90,11 @@ public interface StreamingPullRequestOrBuilder extends
        *
        * repeated string ack_ids = 2;
        */
    -  com.google.protobuf.ByteString
    -      getAckIdsBytes(int index);
    +  com.google.protobuf.ByteString getAckIdsBytes(int index);
     
       /**
    +   *
    +   *
        * 
        * The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -101,6 +113,8 @@ public interface StreamingPullRequestOrBuilder extends
        */
       java.util.List getModifyDeadlineSecondsList();
       /**
    +   *
    +   *
        * 
        * The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -119,6 +133,8 @@ public interface StreamingPullRequestOrBuilder extends
        */
       int getModifyDeadlineSecondsCount();
       /**
    +   *
    +   *
        * 
        * The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
    @@ -138,6 +154,8 @@ public interface StreamingPullRequestOrBuilder extends
       int getModifyDeadlineSeconds(int index);
     
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs whose deadline will be modified based on the
        * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -148,9 +166,10 @@ public interface StreamingPullRequestOrBuilder extends
        *
        * repeated string modify_deadline_ack_ids = 4;
        */
    -  java.util.List
    -      getModifyDeadlineAckIdsList();
    +  java.util.List getModifyDeadlineAckIdsList();
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs whose deadline will be modified based on the
        * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -163,6 +182,8 @@ public interface StreamingPullRequestOrBuilder extends
        */
       int getModifyDeadlineAckIdsCount();
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs whose deadline will be modified based on the
        * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -175,6 +196,8 @@ public interface StreamingPullRequestOrBuilder extends
        */
       java.lang.String getModifyDeadlineAckIds(int index);
       /**
    +   *
    +   *
        * 
        * List of acknowledgement IDs whose deadline will be modified based on the
        * corresponding element in `modify_deadline_seconds`. This field can be used
    @@ -185,10 +208,11 @@ public interface StreamingPullRequestOrBuilder extends
        *
        * repeated string modify_deadline_ack_ids = 4;
        */
    -  com.google.protobuf.ByteString
    -      getModifyDeadlineAckIdsBytes(int index);
    +  com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index);
     
       /**
    +   *
    +   *
        * 
        * The ack deadline to use for the stream. This must be provided in the
        * first request on the stream, but it can also be updated on subsequent
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    index fd6e40943b9b..75a8da757312 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    @@ -4,6 +4,8 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Response for the `StreamingPull` method. This response is used to stream
      * messages from the server to the client.
    @@ -11,24 +13,25 @@
      *
      * Protobuf type {@code google.pubsub.v1.StreamingPullResponse}
      */
    -public  final class StreamingPullResponse extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class StreamingPullResponse extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse)
         StreamingPullResponseOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use StreamingPullResponse.newBuilder() to construct.
       private StreamingPullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    +
       private StreamingPullResponse() {
         receivedMessages_ = java.util.Collections.emptyList();
       }
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private StreamingPullResponse(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -48,29 +51,30 @@ private StreamingPullResponse(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
    -              receivedMessages_ = new java.util.ArrayList();
    -              mutable_bitField0_ |= 0x00000001;
    +          case 10:
    +            {
    +              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
    +                receivedMessages_ = new java.util.ArrayList();
    +                mutable_bitField0_ |= 0x00000001;
    +              }
    +              receivedMessages_.add(
    +                  input.readMessage(
    +                      com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry));
    +              break;
                 }
    -            receivedMessages_.add(
    -                input.readMessage(com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry));
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
             receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_);
    @@ -79,22 +83,27 @@ private StreamingPullResponse(
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.StreamingPullResponse.class, com.google.pubsub.v1.StreamingPullResponse.Builder.class);
    +            com.google.pubsub.v1.StreamingPullResponse.class,
    +            com.google.pubsub.v1.StreamingPullResponse.Builder.class);
       }
     
       public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1;
       private java.util.List receivedMessages_;
       /**
    +   *
    +   *
        * 
        * Received Pub/Sub messages. This will not be empty.
        * 
    @@ -105,17 +114,21 @@ public java.util.List getReceivedMessagesL return receivedMessages_; } /** + * + * *
        * Received Pub/Sub messages. This will not be empty.
        * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public java.util.List + public java.util.List getReceivedMessagesOrBuilderList() { return receivedMessages_; } /** + * + * *
        * Received Pub/Sub messages. This will not be empty.
        * 
    @@ -126,6 +139,8 @@ public int getReceivedMessagesCount() { return receivedMessages_.size(); } /** + * + * *
        * Received Pub/Sub messages. This will not be empty.
        * 
    @@ -136,18 +151,20 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } /** + * + * *
        * Received Pub/Sub messages. This will not be empty.
        * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( - int index) { + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { return receivedMessages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +176,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < receivedMessages_.size(); i++) { output.writeMessage(1, receivedMessages_.get(i)); } @@ -174,8 +190,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < receivedMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, receivedMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -185,16 +200,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse)) { return super.equals(obj); } - com.google.pubsub.v1.StreamingPullResponse other = (com.google.pubsub.v1.StreamingPullResponse) obj; + com.google.pubsub.v1.StreamingPullResponse other = + (com.google.pubsub.v1.StreamingPullResponse) obj; boolean result = true; - result = result && getReceivedMessagesList() - .equals(other.getReceivedMessagesList()); + result = result && getReceivedMessagesList().equals(other.getReceivedMessagesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -215,97 +230,104 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.pubsub.v1.StreamingPullResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.pubsub.v1.StreamingPullResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.pubsub.v1.StreamingPullResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * Response for the `StreamingPull` method. This response is used to stream
        * messages from the server to the client.
    @@ -313,21 +335,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.StreamingPullResponse}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse)
           com.google.pubsub.v1.StreamingPullResponseOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.StreamingPullResponse.class, com.google.pubsub.v1.StreamingPullResponse.Builder.class);
    +              com.google.pubsub.v1.StreamingPullResponse.class,
    +              com.google.pubsub.v1.StreamingPullResponse.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.StreamingPullResponse.newBuilder()
    @@ -335,17 +359,17 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
             getReceivedMessagesFieldBuilder();
           }
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -359,9 +383,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
         }
     
         @java.lang.Override
    @@ -380,7 +404,8 @@ public com.google.pubsub.v1.StreamingPullResponse build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.StreamingPullResponse buildPartial() {
    -      com.google.pubsub.v1.StreamingPullResponse result = new com.google.pubsub.v1.StreamingPullResponse(this);
    +      com.google.pubsub.v1.StreamingPullResponse result =
    +          new com.google.pubsub.v1.StreamingPullResponse(this);
           int from_bitField0_ = bitField0_;
           if (receivedMessagesBuilder_ == null) {
             if (((bitField0_ & 0x00000001) == 0x00000001)) {
    @@ -399,38 +424,39 @@ public com.google.pubsub.v1.StreamingPullResponse buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.StreamingPullResponse) {
    -        return mergeFrom((com.google.pubsub.v1.StreamingPullResponse)other);
    +        return mergeFrom((com.google.pubsub.v1.StreamingPullResponse) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -457,9 +483,10 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) {
                 receivedMessagesBuilder_ = null;
                 receivedMessages_ = other.receivedMessages_;
                 bitField0_ = (bitField0_ & ~0x00000001);
    -            receivedMessagesBuilder_ = 
    -              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
    -                 getReceivedMessagesFieldBuilder() : null;
    +            receivedMessagesBuilder_ =
    +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
    +                    ? getReceivedMessagesFieldBuilder()
    +                    : null;
               } else {
                 receivedMessagesBuilder_.addAllMessages(other.receivedMessages_);
               }
    @@ -493,21 +520,29 @@ public Builder mergeFrom(
           }
           return this;
         }
    +
         private int bitField0_;
     
         private java.util.List receivedMessages_ =
    -      java.util.Collections.emptyList();
    +        java.util.Collections.emptyList();
    +
         private void ensureReceivedMessagesIsMutable() {
           if (!((bitField0_ & 0x00000001) == 0x00000001)) {
    -        receivedMessages_ = new java.util.ArrayList(receivedMessages_);
    +        receivedMessages_ =
    +            new java.util.ArrayList(receivedMessages_);
             bitField0_ |= 0x00000001;
    -       }
    +      }
         }
     
         private com.google.protobuf.RepeatedFieldBuilderV3<
    -        com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> receivedMessagesBuilder_;
    +            com.google.pubsub.v1.ReceivedMessage,
    +            com.google.pubsub.v1.ReceivedMessage.Builder,
    +            com.google.pubsub.v1.ReceivedMessageOrBuilder>
    +        receivedMessagesBuilder_;
     
         /**
    +     *
    +     *
          * 
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -522,6 +557,8 @@ public java.util.List getReceivedMessagesL } } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -536,6 +573,8 @@ public int getReceivedMessagesCount() { } } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -550,14 +589,15 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { } } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public Builder setReceivedMessages( - int index, com.google.pubsub.v1.ReceivedMessage value) { + public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -571,6 +611,8 @@ public Builder setReceivedMessages( return this; } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -589,6 +631,8 @@ public Builder setReceivedMessages( return this; } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -609,14 +653,15 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { return this; } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public Builder addReceivedMessages( - int index, com.google.pubsub.v1.ReceivedMessage value) { + public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -630,6 +675,8 @@ public Builder addReceivedMessages( return this; } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -648,6 +695,8 @@ public Builder addReceivedMessages( return this; } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -666,6 +715,8 @@ public Builder addReceivedMessages( return this; } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -676,8 +727,7 @@ public Builder addAllReceivedMessages( java.lang.Iterable values) { if (receivedMessagesBuilder_ == null) { ensureReceivedMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, receivedMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receivedMessages_); onChanged(); } else { receivedMessagesBuilder_.addAllMessages(values); @@ -685,6 +735,8 @@ public Builder addAllReceivedMessages( return this; } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -702,6 +754,8 @@ public Builder clearReceivedMessages() { return this; } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -719,39 +773,44 @@ public Builder removeReceivedMessages(int index) { return this; } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder( - int index) { + public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( - int index) { + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { if (receivedMessagesBuilder_ == null) { - return receivedMessages_.get(index); } else { + return receivedMessages_.get(index); + } else { return receivedMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public java.util.List - getReceivedMessagesOrBuilderList() { + public java.util.List + getReceivedMessagesOrBuilderList() { if (receivedMessagesBuilder_ != null) { return receivedMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -759,6 +818,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde } } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    @@ -766,38 +827,47 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { - return getReceivedMessagesFieldBuilder().addBuilder( - com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + return getReceivedMessagesFieldBuilder() + .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( - int index) { - return getReceivedMessagesFieldBuilder().addBuilder( - index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { + return getReceivedMessagesFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } /** + * + * *
          * Received Pub/Sub messages. This will not be empty.
          * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - public java.util.List - getReceivedMessagesBuilderList() { + public java.util.List + getReceivedMessagesBuilderList() { return getReceivedMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder> getReceivedMessagesFieldBuilder() { if (receivedMessagesBuilder_ == null) { - receivedMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>( + receivedMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder>( receivedMessages_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), @@ -806,9 +876,9 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder( } return receivedMessagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @@ -818,12 +888,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse) } // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse) private static final com.google.pubsub.v1.StreamingPullResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse(); } @@ -832,16 +902,16 @@ public static com.google.pubsub.v1.StreamingPullResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingPullResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingPullResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingPullResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingPullResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -856,6 +926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 7cead0de31ec..38125277bfef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -3,20 +3,24 @@ package com.google.pubsub.v1; -public interface StreamingPullResponseOrBuilder extends +public interface StreamingPullResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Received Pub/Sub messages. This will not be empty.
        * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - java.util.List - getReceivedMessagesList(); + java.util.List getReceivedMessagesList(); /** + * + * *
        * Received Pub/Sub messages. This will not be empty.
        * 
    @@ -25,6 +29,8 @@ public interface StreamingPullResponseOrBuilder extends */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); /** + * + * *
        * Received Pub/Sub messages. This will not be empty.
        * 
    @@ -33,21 +39,24 @@ public interface StreamingPullResponseOrBuilder extends */ int getReceivedMessagesCount(); /** + * + * *
        * Received Pub/Sub messages. This will not be empty.
        * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - java.util.List + java.util.List getReceivedMessagesOrBuilderList(); /** + * + * *
        * Received Pub/Sub messages. This will not be empty.
        * 
    * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ - com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder( - int index); + com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index bcb239d4ae05..16d6e3ebff29 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -4,21 +4,24 @@ package com.google.pubsub.v1; /** + * + * *
      * A subscription resource.
      * 
    * * Protobuf type {@code google.pubsub.v1.Subscription} */ -public final class Subscription extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Subscription extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription) SubscriptionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Subscription.newBuilder() to construct. private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Subscription() { name_ = ""; topic_ = ""; @@ -27,10 +30,10 @@ private Subscription() { } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Subscription( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -50,128 +53,140 @@ private Subscription( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - topic_ = s; - break; - } - case 34: { - com.google.pubsub.v1.PushConfig.Builder subBuilder = null; - if (pushConfig_ != null) { - subBuilder = pushConfig_.toBuilder(); + topic_ = s; + break; } - pushConfig_ = input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pushConfig_); - pushConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.pubsub.v1.PushConfig.Builder subBuilder = null; + if (pushConfig_ != null) { + subBuilder = pushConfig_.toBuilder(); + } + pushConfig_ = + input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushConfig_); + pushConfig_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 40: { - - ackDeadlineSeconds_ = input.readInt32(); - break; - } - case 56: { - - retainAckedMessages_ = input.readBool(); - break; - } - case 66: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (messageRetentionDuration_ != null) { - subBuilder = messageRetentionDuration_.toBuilder(); + case 40: + { + ackDeadlineSeconds_ = input.readInt32(); + break; } - messageRetentionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageRetentionDuration_); - messageRetentionDuration_ = subBuilder.buildPartial(); + case 56: + { + retainAckedMessages_ = input.readBool(); + break; } - - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000040; + case 66: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (messageRetentionDuration_ != null) { + subBuilder = messageRetentionDuration_.toBuilder(); + } + messageRetentionDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageRetentionDuration_); + messageRetentionDuration_ = subBuilder.buildPartial(); + } + + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 90: { - com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null; - if (expirationPolicy_ != null) { - subBuilder = expirationPolicy_.toBuilder(); + case 74: + { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000040; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - expirationPolicy_ = input.readMessage(com.google.pubsub.v1.ExpirationPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expirationPolicy_); - expirationPolicy_ = subBuilder.buildPartial(); + case 90: + { + com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null; + if (expirationPolicy_ != null) { + subBuilder = expirationPolicy_.toBuilder(); + } + expirationPolicy_ = + input.readMessage( + com.google.pubsub.v1.ExpirationPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expirationPolicy_); + expirationPolicy_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.Subscription.class, com.google.pubsub.v1.Subscription.Builder.class); + com.google.pubsub.v1.Subscription.class, + com.google.pubsub.v1.Subscription.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * The name of the subscription. It must have the format
        * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
    @@ -188,14 +203,15 @@ public java.lang.String getName() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           name_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the subscription. It must have the format
        * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
    @@ -207,13 +223,11 @@ public java.lang.String getName() {
        *
        * string name = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getNameBytes() {
    +  public com.google.protobuf.ByteString getNameBytes() {
         java.lang.Object ref = name_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           name_ = b;
           return b;
         } else {
    @@ -224,6 +238,8 @@ public java.lang.String getName() {
       public static final int TOPIC_FIELD_NUMBER = 2;
       private volatile java.lang.Object topic_;
       /**
    +   *
    +   *
        * 
        * The name of the topic from which this subscription is receiving messages.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -238,14 +254,15 @@ public java.lang.String getTopic() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           topic_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the topic from which this subscription is receiving messages.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -255,13 +272,11 @@ public java.lang.String getTopic() {
        *
        * string topic = 2;
        */
    -  public com.google.protobuf.ByteString
    -      getTopicBytes() {
    +  public com.google.protobuf.ByteString getTopicBytes() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           topic_ = b;
           return b;
         } else {
    @@ -272,6 +287,8 @@ public java.lang.String getTopic() {
       public static final int PUSH_CONFIG_FIELD_NUMBER = 4;
       private com.google.pubsub.v1.PushConfig pushConfig_;
       /**
    +   *
    +   *
        * 
        * If push delivery is used with this subscription, this field is
        * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -284,6 +301,8 @@ public boolean hasPushConfig() {
         return pushConfig_ != null;
       }
       /**
    +   *
    +   *
        * 
        * If push delivery is used with this subscription, this field is
        * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -296,6 +315,8 @@ public com.google.pubsub.v1.PushConfig getPushConfig() {
         return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_;
       }
       /**
    +   *
    +   *
        * 
        * If push delivery is used with this subscription, this field is
        * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -311,6 +332,8 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
       public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5;
       private int ackDeadlineSeconds_;
       /**
    +   *
    +   *
        * 
        * This value is the maximum time after a subscriber receives a message
        * before the subscriber should acknowledge the message. After message
    @@ -340,6 +363,8 @@ public int getAckDeadlineSeconds() {
       public static final int RETAIN_ACKED_MESSAGES_FIELD_NUMBER = 7;
       private boolean retainAckedMessages_;
       /**
    +   *
    +   *
        * 
        * Indicates whether to retain acknowledged messages. If true, then
        * messages are not expunged from the subscription's backlog, even if they are
    @@ -359,6 +384,8 @@ public boolean getRetainAckedMessages() {
       public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8;
       private com.google.protobuf.Duration messageRetentionDuration_;
       /**
    +   *
    +   *
        * 
        * How long to retain unacknowledged messages in the subscription's backlog,
        * from the moment a message is published.
    @@ -377,6 +404,8 @@ public boolean hasMessageRetentionDuration() {
         return messageRetentionDuration_ != null;
       }
       /**
    +   *
    +   *
        * 
        * How long to retain unacknowledged messages in the subscription's backlog,
        * from the moment a message is published.
    @@ -392,9 +421,13 @@ public boolean hasMessageRetentionDuration() {
        * .google.protobuf.Duration message_retention_duration = 8;
        */
       public com.google.protobuf.Duration getMessageRetentionDuration() {
    -    return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_;
    +    return messageRetentionDuration_ == null
    +        ? com.google.protobuf.Duration.getDefaultInstance()
    +        : messageRetentionDuration_;
       }
       /**
    +   *
    +   *
        * 
        * How long to retain unacknowledged messages in the subscription's backlog,
        * from the moment a message is published.
    @@ -414,24 +447,23 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
       }
     
       public static final int LABELS_FIELD_NUMBER = 9;
    +
       private static final class LabelsDefaultEntryHolder {
    -    static final com.google.protobuf.MapEntry<
    -        java.lang.String, java.lang.String> defaultEntry =
    -            com.google.protobuf.MapEntry
    -            .newDefaultInstance(
    -                com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, 
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "",
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "");
    +    static final com.google.protobuf.MapEntry defaultEntry =
    +        com.google.protobuf.MapEntry.newDefaultInstance(
    +            com.google.pubsub.v1.PubsubProto
    +                .internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor,
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "",
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "");
       }
    -  private com.google.protobuf.MapField<
    -      java.lang.String, java.lang.String> labels_;
    -  private com.google.protobuf.MapField
    -  internalGetLabels() {
    +
    +  private com.google.protobuf.MapField labels_;
    +
    +  private com.google.protobuf.MapField internalGetLabels() {
         if (labels_ == null) {
    -      return com.google.protobuf.MapField.emptyMapField(
    -          LabelsDefaultEntryHolder.defaultEntry);
    +      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
         }
         return labels_;
       }
    @@ -440,65 +472,67 @@ public int getLabelsCount() {
         return internalGetLabels().getMap().size();
       }
       /**
    +   *
    +   *
        * 
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 9; */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 9; */ - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 9; */ - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 9; */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -508,6 +542,8 @@ public java.lang.String getLabelsOrThrow( public static final int EXPIRATION_POLICY_FIELD_NUMBER = 11; private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; /** + * + * *
        * A policy that specifies the conditions for this subscription's expiration.
        * A subscription is considered active as long as any connected subscriber is
    @@ -526,6 +562,8 @@ public boolean hasExpirationPolicy() {
         return expirationPolicy_ != null;
       }
       /**
    +   *
    +   *
        * 
        * A policy that specifies the conditions for this subscription's expiration.
        * A subscription is considered active as long as any connected subscriber is
    @@ -541,9 +579,13 @@ public boolean hasExpirationPolicy() {
        * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11;
        */
       public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() {
    -    return expirationPolicy_ == null ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_;
    +    return expirationPolicy_ == null
    +        ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance()
    +        : expirationPolicy_;
       }
       /**
    +   *
    +   *
        * 
        * A policy that specifies the conditions for this subscription's expiration.
        * A subscription is considered active as long as any connected subscriber is
    @@ -563,6 +605,7 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -574,8 +617,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getNameBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
    @@ -594,12 +636,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
         if (messageRetentionDuration_ != null) {
           output.writeMessage(8, getMessageRetentionDuration());
         }
    -    com.google.protobuf.GeneratedMessageV3
    -      .serializeStringMapTo(
    -        output,
    -        internalGetLabels(),
    -        LabelsDefaultEntryHolder.defaultEntry,
    -        9);
    +    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
    +        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9);
         if (expirationPolicy_ != null) {
           output.writeMessage(11, getExpirationPolicy());
         }
    @@ -619,34 +657,31 @@ public int getSerializedSize() {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
         }
         if (pushConfig_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(4, getPushConfig());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPushConfig());
         }
         if (ackDeadlineSeconds_ != 0) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeInt32Size(5, ackDeadlineSeconds_);
    +      size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, ackDeadlineSeconds_);
         }
         if (retainAckedMessages_ != false) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeBoolSize(7, retainAckedMessages_);
    +      size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, retainAckedMessages_);
         }
         if (messageRetentionDuration_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(8, getMessageRetentionDuration());
    -    }
    -    for (java.util.Map.Entry entry
    -         : internalGetLabels().getMap().entrySet()) {
    -      com.google.protobuf.MapEntry
    -      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
    -          .setKey(entry.getKey())
    -          .setValue(entry.getValue())
    -          .build();
    -      size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(9, labels__);
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(
    +              8, getMessageRetentionDuration());
    +    }
    +    for (java.util.Map.Entry entry :
    +        internalGetLabels().getMap().entrySet()) {
    +      com.google.protobuf.MapEntry labels__ =
    +          LabelsDefaultEntryHolder.defaultEntry
    +              .newBuilderForType()
    +              .setKey(entry.getKey())
    +              .setValue(entry.getValue())
    +              .build();
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__);
         }
         if (expirationPolicy_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(11, getExpirationPolicy());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy());
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -656,7 +691,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.Subscription)) {
           return super.equals(obj);
    @@ -664,30 +699,22 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.Subscription other = (com.google.pubsub.v1.Subscription) obj;
     
         boolean result = true;
    -    result = result && getName()
    -        .equals(other.getName());
    -    result = result && getTopic()
    -        .equals(other.getTopic());
    +    result = result && getName().equals(other.getName());
    +    result = result && getTopic().equals(other.getTopic());
         result = result && (hasPushConfig() == other.hasPushConfig());
         if (hasPushConfig()) {
    -      result = result && getPushConfig()
    -          .equals(other.getPushConfig());
    +      result = result && getPushConfig().equals(other.getPushConfig());
         }
    -    result = result && (getAckDeadlineSeconds()
    -        == other.getAckDeadlineSeconds());
    -    result = result && (getRetainAckedMessages()
    -        == other.getRetainAckedMessages());
    +    result = result && (getAckDeadlineSeconds() == other.getAckDeadlineSeconds());
    +    result = result && (getRetainAckedMessages() == other.getRetainAckedMessages());
         result = result && (hasMessageRetentionDuration() == other.hasMessageRetentionDuration());
         if (hasMessageRetentionDuration()) {
    -      result = result && getMessageRetentionDuration()
    -          .equals(other.getMessageRetentionDuration());
    +      result = result && getMessageRetentionDuration().equals(other.getMessageRetentionDuration());
         }
    -    result = result && internalGetLabels().equals(
    -        other.internalGetLabels());
    +    result = result && internalGetLabels().equals(other.internalGetLabels());
         result = result && (hasExpirationPolicy() == other.hasExpirationPolicy());
         if (hasExpirationPolicy()) {
    -      result = result && getExpirationPolicy()
    -          .equals(other.getExpirationPolicy());
    +      result = result && getExpirationPolicy().equals(other.getExpirationPolicy());
         }
         result = result && unknownFields.equals(other.unknownFields);
         return result;
    @@ -711,8 +738,7 @@ public int hashCode() {
         hash = (37 * hash) + ACK_DEADLINE_SECONDS_FIELD_NUMBER;
         hash = (53 * hash) + getAckDeadlineSeconds();
         hash = (37 * hash) + RETAIN_ACKED_MESSAGES_FIELD_NUMBER;
    -    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
    -        getRetainAckedMessages());
    +    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRetainAckedMessages());
         if (hasMessageRetentionDuration()) {
           hash = (37 * hash) + MESSAGE_RETENTION_DURATION_FIELD_NUMBER;
           hash = (53 * hash) + getMessageRetentionDuration().hashCode();
    @@ -730,140 +756,146 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.Subscription parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.Subscription parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.Subscription parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.Subscription parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.pubsub.v1.Subscription parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.Subscription parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.Subscription parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.Subscription parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.Subscription parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.Subscription parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.Subscription parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.Subscription parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.Subscription parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.Subscription parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.Subscription prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * A subscription resource.
        * 
    * * Protobuf type {@code google.pubsub.v1.Subscription} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Subscription) com.google.pubsub.v1.SubscriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 9: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 9: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.Subscription.class, com.google.pubsub.v1.Subscription.Builder.class); + com.google.pubsub.v1.Subscription.class, + com.google.pubsub.v1.Subscription.Builder.class); } // Construct using com.google.pubsub.v1.Subscription.newBuilder() @@ -871,16 +903,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -915,9 +946,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Subscription_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_descriptor; } @java.lang.Override @@ -969,38 +1000,39 @@ public com.google.pubsub.v1.Subscription buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Subscription) { - return mergeFrom((com.google.pubsub.v1.Subscription)other); + return mergeFrom((com.google.pubsub.v1.Subscription) other); } else { super.mergeFrom(other); return this; @@ -1029,8 +1061,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasMessageRetentionDuration()) { mergeMessageRetentionDuration(other.getMessageRetentionDuration()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasExpirationPolicy()) { mergeExpirationPolicy(other.getExpirationPolicy()); } @@ -1062,10 +1093,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
          * The name of the subscription. It must have the format
          * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
    @@ -1080,8 +1114,7 @@ public Builder mergeFrom(
         public java.lang.String getName() {
           java.lang.Object ref = name_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             name_ = s;
             return s;
    @@ -1090,6 +1123,8 @@ public java.lang.String getName() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription. It must have the format
          * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
    @@ -1101,13 +1136,11 @@ public java.lang.String getName() {
          *
          * string name = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getNameBytes() {
    +    public com.google.protobuf.ByteString getNameBytes() {
           java.lang.Object ref = name_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             name_ = b;
             return b;
           } else {
    @@ -1115,6 +1148,8 @@ public java.lang.String getName() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription. It must have the format
          * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
    @@ -1126,17 +1161,18 @@ public java.lang.String getName() {
          *
          * string name = 1;
          */
    -    public Builder setName(
    -        java.lang.String value) {
    +    public Builder setName(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           name_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription. It must have the format
          * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
    @@ -1149,12 +1185,14 @@ public Builder setName(
          * string name = 1;
          */
         public Builder clearName() {
    -      
    +
           name_ = getDefaultInstance().getName();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the subscription. It must have the format
          * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
    @@ -1166,13 +1204,12 @@ public Builder clearName() {
          *
          * string name = 1;
          */
    -    public Builder setNameBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setNameBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           name_ = value;
           onChanged();
           return this;
    @@ -1180,6 +1217,8 @@ public Builder setNameBytes(
     
         private java.lang.Object topic_ = "";
         /**
    +     *
    +     *
          * 
          * The name of the topic from which this subscription is receiving messages.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -1192,8 +1231,7 @@ public Builder setNameBytes(
         public java.lang.String getTopic() {
           java.lang.Object ref = topic_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             topic_ = s;
             return s;
    @@ -1202,6 +1240,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic from which this subscription is receiving messages.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -1211,13 +1251,11 @@ public java.lang.String getTopic() {
          *
          * string topic = 2;
          */
    -    public com.google.protobuf.ByteString
    -        getTopicBytes() {
    +    public com.google.protobuf.ByteString getTopicBytes() {
           java.lang.Object ref = topic_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             topic_ = b;
             return b;
           } else {
    @@ -1225,6 +1263,8 @@ public java.lang.String getTopic() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic from which this subscription is receiving messages.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -1234,17 +1274,18 @@ public java.lang.String getTopic() {
          *
          * string topic = 2;
          */
    -    public Builder setTopic(
    -        java.lang.String value) {
    +    public Builder setTopic(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           topic_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic from which this subscription is receiving messages.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -1255,12 +1296,14 @@ public Builder setTopic(
          * string topic = 2;
          */
         public Builder clearTopic() {
    -      
    +
           topic_ = getDefaultInstance().getTopic();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic from which this subscription is receiving messages.
          * Format is `projects/{project}/topics/{topic}`.
    @@ -1270,13 +1313,12 @@ public Builder clearTopic() {
          *
          * string topic = 2;
          */
    -    public Builder setTopicBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setTopicBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           topic_ = value;
           onChanged();
           return this;
    @@ -1284,8 +1326,13 @@ public Builder setTopicBytes(
     
         private com.google.pubsub.v1.PushConfig pushConfig_ = null;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_;
    +            com.google.pubsub.v1.PushConfig,
    +            com.google.pubsub.v1.PushConfig.Builder,
    +            com.google.pubsub.v1.PushConfigOrBuilder>
    +        pushConfigBuilder_;
         /**
    +     *
    +     *
          * 
          * If push delivery is used with this subscription, this field is
          * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -1298,6 +1345,8 @@ public boolean hasPushConfig() {
           return pushConfigBuilder_ != null || pushConfig_ != null;
         }
         /**
    +     *
    +     *
          * 
          * If push delivery is used with this subscription, this field is
          * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -1308,12 +1357,16 @@ public boolean hasPushConfig() {
          */
         public com.google.pubsub.v1.PushConfig getPushConfig() {
           if (pushConfigBuilder_ == null) {
    -        return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_;
    +        return pushConfig_ == null
    +            ? com.google.pubsub.v1.PushConfig.getDefaultInstance()
    +            : pushConfig_;
           } else {
             return pushConfigBuilder_.getMessage();
           }
         }
         /**
    +     *
    +     *
          * 
          * If push delivery is used with this subscription, this field is
          * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -1336,6 +1389,8 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If push delivery is used with this subscription, this field is
          * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -1344,8 +1399,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
          *
          * .google.pubsub.v1.PushConfig push_config = 4;
          */
    -    public Builder setPushConfig(
    -        com.google.pubsub.v1.PushConfig.Builder builderForValue) {
    +    public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) {
           if (pushConfigBuilder_ == null) {
             pushConfig_ = builderForValue.build();
             onChanged();
    @@ -1356,6 +1410,8 @@ public Builder setPushConfig(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If push delivery is used with this subscription, this field is
          * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -1368,7 +1424,9 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
           if (pushConfigBuilder_ == null) {
             if (pushConfig_ != null) {
               pushConfig_ =
    -            com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_).mergeFrom(value).buildPartial();
    +              com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               pushConfig_ = value;
             }
    @@ -1380,6 +1438,8 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If push delivery is used with this subscription, this field is
          * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -1400,6 +1460,8 @@ public Builder clearPushConfig() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * If push delivery is used with this subscription, this field is
          * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -1409,11 +1471,13 @@ public Builder clearPushConfig() {
          * .google.pubsub.v1.PushConfig push_config = 4;
          */
         public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() {
    -      
    +
           onChanged();
           return getPushConfigFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * If push delivery is used with this subscription, this field is
          * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -1426,11 +1490,14 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
           if (pushConfigBuilder_ != null) {
             return pushConfigBuilder_.getMessageOrBuilder();
           } else {
    -        return pushConfig_ == null ?
    -            com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_;
    +        return pushConfig_ == null
    +            ? com.google.pubsub.v1.PushConfig.getDefaultInstance()
    +            : pushConfig_;
           }
         }
         /**
    +     *
    +     *
          * 
          * If push delivery is used with this subscription, this field is
          * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -1440,21 +1507,26 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
          * .google.pubsub.v1.PushConfig push_config = 4;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> 
    +            com.google.pubsub.v1.PushConfig,
    +            com.google.pubsub.v1.PushConfig.Builder,
    +            com.google.pubsub.v1.PushConfigOrBuilder>
             getPushConfigFieldBuilder() {
           if (pushConfigBuilder_ == null) {
    -        pushConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder>(
    -                getPushConfig(),
    -                getParentForChildren(),
    -                isClean());
    +        pushConfigBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.pubsub.v1.PushConfig,
    +                com.google.pubsub.v1.PushConfig.Builder,
    +                com.google.pubsub.v1.PushConfigOrBuilder>(
    +                getPushConfig(), getParentForChildren(), isClean());
             pushConfig_ = null;
           }
           return pushConfigBuilder_;
         }
     
    -    private int ackDeadlineSeconds_ ;
    +    private int ackDeadlineSeconds_;
         /**
    +     *
    +     *
          * 
          * This value is the maximum time after a subscriber receives a message
          * before the subscriber should acknowledge the message. After message
    @@ -1481,6 +1553,8 @@ public int getAckDeadlineSeconds() {
           return ackDeadlineSeconds_;
         }
         /**
    +     *
    +     *
          * 
          * This value is the maximum time after a subscriber receives a message
          * before the subscriber should acknowledge the message. After message
    @@ -1504,12 +1578,14 @@ public int getAckDeadlineSeconds() {
          * int32 ack_deadline_seconds = 5;
          */
         public Builder setAckDeadlineSeconds(int value) {
    -      
    +
           ackDeadlineSeconds_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * This value is the maximum time after a subscriber receives a message
          * before the subscriber should acknowledge the message. After message
    @@ -1533,14 +1609,16 @@ public Builder setAckDeadlineSeconds(int value) {
          * int32 ack_deadline_seconds = 5;
          */
         public Builder clearAckDeadlineSeconds() {
    -      
    +
           ackDeadlineSeconds_ = 0;
           onChanged();
           return this;
         }
     
    -    private boolean retainAckedMessages_ ;
    +    private boolean retainAckedMessages_;
         /**
    +     *
    +     *
          * 
          * Indicates whether to retain acknowledged messages. If true, then
          * messages are not expunged from the subscription's backlog, even if they are
    @@ -1557,6 +1635,8 @@ public boolean getRetainAckedMessages() {
           return retainAckedMessages_;
         }
         /**
    +     *
    +     *
          * 
          * Indicates whether to retain acknowledged messages. If true, then
          * messages are not expunged from the subscription's backlog, even if they are
    @@ -1570,12 +1650,14 @@ public boolean getRetainAckedMessages() {
          * bool retain_acked_messages = 7;
          */
         public Builder setRetainAckedMessages(boolean value) {
    -      
    +
           retainAckedMessages_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates whether to retain acknowledged messages. If true, then
          * messages are not expunged from the subscription's backlog, even if they are
    @@ -1589,7 +1671,7 @@ public Builder setRetainAckedMessages(boolean value) {
          * bool retain_acked_messages = 7;
          */
         public Builder clearRetainAckedMessages() {
    -      
    +
           retainAckedMessages_ = false;
           onChanged();
           return this;
    @@ -1597,8 +1679,13 @@ public Builder clearRetainAckedMessages() {
     
         private com.google.protobuf.Duration messageRetentionDuration_ = null;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> messageRetentionDurationBuilder_;
    +            com.google.protobuf.Duration,
    +            com.google.protobuf.Duration.Builder,
    +            com.google.protobuf.DurationOrBuilder>
    +        messageRetentionDurationBuilder_;
         /**
    +     *
    +     *
          * 
          * How long to retain unacknowledged messages in the subscription's backlog,
          * from the moment a message is published.
    @@ -1617,6 +1704,8 @@ public boolean hasMessageRetentionDuration() {
           return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null;
         }
         /**
    +     *
    +     *
          * 
          * How long to retain unacknowledged messages in the subscription's backlog,
          * from the moment a message is published.
    @@ -1633,12 +1722,16 @@ public boolean hasMessageRetentionDuration() {
          */
         public com.google.protobuf.Duration getMessageRetentionDuration() {
           if (messageRetentionDurationBuilder_ == null) {
    -        return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_;
    +        return messageRetentionDuration_ == null
    +            ? com.google.protobuf.Duration.getDefaultInstance()
    +            : messageRetentionDuration_;
           } else {
             return messageRetentionDurationBuilder_.getMessage();
           }
         }
         /**
    +     *
    +     *
          * 
          * How long to retain unacknowledged messages in the subscription's backlog,
          * from the moment a message is published.
    @@ -1667,6 +1760,8 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * How long to retain unacknowledged messages in the subscription's backlog,
          * from the moment a message is published.
    @@ -1693,6 +1788,8 @@ public Builder setMessageRetentionDuration(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * How long to retain unacknowledged messages in the subscription's backlog,
          * from the moment a message is published.
    @@ -1711,7 +1808,9 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
           if (messageRetentionDurationBuilder_ == null) {
             if (messageRetentionDuration_ != null) {
               messageRetentionDuration_ =
    -            com.google.protobuf.Duration.newBuilder(messageRetentionDuration_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.Duration.newBuilder(messageRetentionDuration_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               messageRetentionDuration_ = value;
             }
    @@ -1723,6 +1822,8 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value)
           return this;
         }
         /**
    +     *
    +     *
          * 
          * How long to retain unacknowledged messages in the subscription's backlog,
          * from the moment a message is published.
    @@ -1749,6 +1850,8 @@ public Builder clearMessageRetentionDuration() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * How long to retain unacknowledged messages in the subscription's backlog,
          * from the moment a message is published.
    @@ -1764,11 +1867,13 @@ public Builder clearMessageRetentionDuration() {
          * .google.protobuf.Duration message_retention_duration = 8;
          */
         public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() {
    -      
    +
           onChanged();
           return getMessageRetentionDurationFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * How long to retain unacknowledged messages in the subscription's backlog,
          * from the moment a message is published.
    @@ -1787,11 +1892,14 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
           if (messageRetentionDurationBuilder_ != null) {
             return messageRetentionDurationBuilder_.getMessageOrBuilder();
           } else {
    -        return messageRetentionDuration_ == null ?
    -            com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_;
    +        return messageRetentionDuration_ == null
    +            ? com.google.protobuf.Duration.getDefaultInstance()
    +            : messageRetentionDuration_;
           }
         }
         /**
    +     *
    +     *
          * 
          * How long to retain unacknowledged messages in the subscription's backlog,
          * from the moment a message is published.
    @@ -1807,35 +1915,37 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde
          * .google.protobuf.Duration message_retention_duration = 8;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
    +            com.google.protobuf.Duration,
    +            com.google.protobuf.Duration.Builder,
    +            com.google.protobuf.DurationOrBuilder>
             getMessageRetentionDurationFieldBuilder() {
           if (messageRetentionDurationBuilder_ == null) {
    -        messageRetentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
    -                getMessageRetentionDuration(),
    -                getParentForChildren(),
    -                isClean());
    +        messageRetentionDurationBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.Duration,
    +                com.google.protobuf.Duration.Builder,
    +                com.google.protobuf.DurationOrBuilder>(
    +                getMessageRetentionDuration(), getParentForChildren(), isClean());
             messageRetentionDuration_ = null;
           }
           return messageRetentionDurationBuilder_;
         }
     
    -    private com.google.protobuf.MapField<
    -        java.lang.String, java.lang.String> labels_;
    -    private com.google.protobuf.MapField
    -    internalGetLabels() {
    +    private com.google.protobuf.MapField labels_;
    +
    +    private com.google.protobuf.MapField internalGetLabels() {
           if (labels_ == null) {
    -        return com.google.protobuf.MapField.emptyMapField(
    -            LabelsDefaultEntryHolder.defaultEntry);
    +        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
           }
           return labels_;
         }
    +
         private com.google.protobuf.MapField
    -    internalGetMutableLabels() {
    -      onChanged();;
    +        internalGetMutableLabels() {
    +      onChanged();
    +      ;
           if (labels_ == null) {
    -        labels_ = com.google.protobuf.MapField.newMapField(
    -            LabelsDefaultEntryHolder.defaultEntry);
    +        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
           }
           if (!labels_.isMutable()) {
             labels_ = labels_.copy();
    @@ -1847,65 +1957,68 @@ public int getLabelsCount() {
           return internalGetLabels().getMap().size();
         }
         /**
    +     *
    +     *
          * 
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 9; */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 9; */ - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 9; */ - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 9; */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1913,68 +2026,72 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 9; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 9; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 9; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> expirationPolicyBuilder_; + com.google.pubsub.v1.ExpirationPolicy, + com.google.pubsub.v1.ExpirationPolicy.Builder, + com.google.pubsub.v1.ExpirationPolicyOrBuilder> + expirationPolicyBuilder_; /** + * + * *
          * A policy that specifies the conditions for this subscription's expiration.
          * A subscription is considered active as long as any connected subscriber is
    @@ -1993,6 +2110,8 @@ public boolean hasExpirationPolicy() {
           return expirationPolicyBuilder_ != null || expirationPolicy_ != null;
         }
         /**
    +     *
    +     *
          * 
          * A policy that specifies the conditions for this subscription's expiration.
          * A subscription is considered active as long as any connected subscriber is
    @@ -2009,12 +2128,16 @@ public boolean hasExpirationPolicy() {
          */
         public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() {
           if (expirationPolicyBuilder_ == null) {
    -        return expirationPolicy_ == null ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_;
    +        return expirationPolicy_ == null
    +            ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance()
    +            : expirationPolicy_;
           } else {
             return expirationPolicyBuilder_.getMessage();
           }
         }
         /**
    +     *
    +     *
          * 
          * A policy that specifies the conditions for this subscription's expiration.
          * A subscription is considered active as long as any connected subscriber is
    @@ -2043,6 +2166,8 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value)
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A policy that specifies the conditions for this subscription's expiration.
          * A subscription is considered active as long as any connected subscriber is
    @@ -2069,6 +2194,8 @@ public Builder setExpirationPolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A policy that specifies the conditions for this subscription's expiration.
          * A subscription is considered active as long as any connected subscriber is
    @@ -2087,7 +2214,9 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value
           if (expirationPolicyBuilder_ == null) {
             if (expirationPolicy_ != null) {
               expirationPolicy_ =
    -            com.google.pubsub.v1.ExpirationPolicy.newBuilder(expirationPolicy_).mergeFrom(value).buildPartial();
    +              com.google.pubsub.v1.ExpirationPolicy.newBuilder(expirationPolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               expirationPolicy_ = value;
             }
    @@ -2099,6 +2228,8 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A policy that specifies the conditions for this subscription's expiration.
          * A subscription is considered active as long as any connected subscriber is
    @@ -2125,6 +2256,8 @@ public Builder clearExpirationPolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * A policy that specifies the conditions for this subscription's expiration.
          * A subscription is considered active as long as any connected subscriber is
    @@ -2140,11 +2273,13 @@ public Builder clearExpirationPolicy() {
          * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11;
          */
         public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() {
    -      
    +
           onChanged();
           return getExpirationPolicyFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * A policy that specifies the conditions for this subscription's expiration.
          * A subscription is considered active as long as any connected subscriber is
    @@ -2163,11 +2298,14 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
           if (expirationPolicyBuilder_ != null) {
             return expirationPolicyBuilder_.getMessageOrBuilder();
           } else {
    -        return expirationPolicy_ == null ?
    -            com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_;
    +        return expirationPolicy_ == null
    +            ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance()
    +            : expirationPolicy_;
           }
         }
         /**
    +     *
    +     *
          * 
          * A policy that specifies the conditions for this subscription's expiration.
          * A subscription is considered active as long as any connected subscriber is
    @@ -2183,21 +2321,24 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
          * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> 
    +            com.google.pubsub.v1.ExpirationPolicy,
    +            com.google.pubsub.v1.ExpirationPolicy.Builder,
    +            com.google.pubsub.v1.ExpirationPolicyOrBuilder>
             getExpirationPolicyFieldBuilder() {
           if (expirationPolicyBuilder_ == null) {
    -        expirationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder>(
    -                getExpirationPolicy(),
    -                getParentForChildren(),
    -                isClean());
    +        expirationPolicyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.pubsub.v1.ExpirationPolicy,
    +                com.google.pubsub.v1.ExpirationPolicy.Builder,
    +                com.google.pubsub.v1.ExpirationPolicyOrBuilder>(
    +                getExpirationPolicy(), getParentForChildren(), isClean());
             expirationPolicy_ = null;
           }
           return expirationPolicyBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -2207,12 +2348,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Subscription)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription)
       private static final com.google.pubsub.v1.Subscription DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.Subscription();
       }
    @@ -2221,16 +2362,16 @@ public static com.google.pubsub.v1.Subscription getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public Subscription parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new Subscription(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public Subscription parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new Subscription(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -2245,6 +2386,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.Subscription getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java
    index 55f9795e718b..ba0a20256cf7 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface SubscriptionOrBuilder extends
    +public interface SubscriptionOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Subscription)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the subscription. It must have the format
        * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
    @@ -21,6 +24,8 @@ public interface SubscriptionOrBuilder extends
        */
       java.lang.String getName();
       /**
    +   *
    +   *
        * 
        * The name of the subscription. It must have the format
        * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
    @@ -32,10 +37,11 @@ public interface SubscriptionOrBuilder extends
        *
        * string name = 1;
        */
    -  com.google.protobuf.ByteString
    -      getNameBytes();
    +  com.google.protobuf.ByteString getNameBytes();
     
       /**
    +   *
    +   *
        * 
        * The name of the topic from which this subscription is receiving messages.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -47,6 +53,8 @@ public interface SubscriptionOrBuilder extends
        */
       java.lang.String getTopic();
       /**
    +   *
    +   *
        * 
        * The name of the topic from which this subscription is receiving messages.
        * Format is `projects/{project}/topics/{topic}`.
    @@ -56,10 +64,11 @@ public interface SubscriptionOrBuilder extends
        *
        * string topic = 2;
        */
    -  com.google.protobuf.ByteString
    -      getTopicBytes();
    +  com.google.protobuf.ByteString getTopicBytes();
     
       /**
    +   *
    +   *
        * 
        * If push delivery is used with this subscription, this field is
        * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -70,6 +79,8 @@ public interface SubscriptionOrBuilder extends
        */
       boolean hasPushConfig();
       /**
    +   *
    +   *
        * 
        * If push delivery is used with this subscription, this field is
        * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -80,6 +91,8 @@ public interface SubscriptionOrBuilder extends
        */
       com.google.pubsub.v1.PushConfig getPushConfig();
       /**
    +   *
    +   *
        * 
        * If push delivery is used with this subscription, this field is
        * used to configure it. An empty `pushConfig` signifies that the subscriber
    @@ -91,6 +104,8 @@ public interface SubscriptionOrBuilder extends
       com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * This value is the maximum time after a subscriber receives a message
        * before the subscriber should acknowledge the message. After message
    @@ -116,6 +131,8 @@ public interface SubscriptionOrBuilder extends
       int getAckDeadlineSeconds();
     
       /**
    +   *
    +   *
        * 
        * Indicates whether to retain acknowledged messages. If true, then
        * messages are not expunged from the subscription's backlog, even if they are
    @@ -131,6 +148,8 @@ public interface SubscriptionOrBuilder extends
       boolean getRetainAckedMessages();
     
       /**
    +   *
    +   *
        * 
        * How long to retain unacknowledged messages in the subscription's backlog,
        * from the moment a message is published.
    @@ -147,6 +166,8 @@ public interface SubscriptionOrBuilder extends
        */
       boolean hasMessageRetentionDuration();
       /**
    +   *
    +   *
        * 
        * How long to retain unacknowledged messages in the subscription's backlog,
        * from the moment a message is published.
    @@ -163,6 +184,8 @@ public interface SubscriptionOrBuilder extends
        */
       com.google.protobuf.Duration getMessageRetentionDuration();
       /**
    +   *
    +   *
        * 
        * How long to retain unacknowledged messages in the subscription's backlog,
        * from the moment a message is published.
    @@ -180,6 +203,8 @@ public interface SubscriptionOrBuilder extends
       com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder();
     
       /**
    +   *
    +   *
        * 
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    @@ -188,52 +213,52 @@ public interface SubscriptionOrBuilder extends */ int getLabelsCount(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 9; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 9; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 9; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 9; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
        * A policy that specifies the conditions for this subscription's expiration.
        * A subscription is considered active as long as any connected subscriber is
    @@ -250,6 +275,8 @@ java.lang.String getLabelsOrThrow(
        */
       boolean hasExpirationPolicy();
       /**
    +   *
    +   *
        * 
        * A policy that specifies the conditions for this subscription's expiration.
        * A subscription is considered active as long as any connected subscriber is
    @@ -266,6 +293,8 @@ java.lang.String getLabelsOrThrow(
        */
       com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy();
       /**
    +   *
    +   *
        * 
        * A policy that specifies the conditions for this subscription's expiration.
        * A subscription is considered active as long as any connected subscriber is
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    index 6fcefabc1004..6501868c14d5 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    @@ -4,30 +4,33 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * A topic resource.
      * 
    * * Protobuf type {@code google.pubsub.v1.Topic} */ -public final class Topic extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Topic extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.Topic) TopicOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Topic.newBuilder() to construct. private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Topic() { name_ = ""; } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Topic( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -47,86 +50,90 @@ private Topic( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 26: { - com.google.pubsub.v1.MessageStoragePolicy.Builder subBuilder = null; - if (messageStoragePolicy_ != null) { - subBuilder = messageStoragePolicy_.toBuilder(); - } - messageStoragePolicy_ = input.readMessage(com.google.pubsub.v1.MessageStoragePolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(messageStoragePolicy_); - messageStoragePolicy_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } + case 26: + { + com.google.pubsub.v1.MessageStoragePolicy.Builder subBuilder = null; + if (messageStoragePolicy_ != null) { + subBuilder = messageStoragePolicy_.toBuilder(); + } + messageStoragePolicy_ = + input.readMessage( + com.google.pubsub.v1.MessageStoragePolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageStoragePolicy_); + messageStoragePolicy_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Topic_fieldAccessorTable.ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * The name of the topic. It must have the format
        * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
    @@ -143,14 +150,15 @@ public java.lang.String getName() {
         if (ref instanceof java.lang.String) {
           return (java.lang.String) ref;
         } else {
    -      com.google.protobuf.ByteString bs = 
    -          (com.google.protobuf.ByteString) ref;
    +      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           name_ = s;
           return s;
         }
       }
       /**
    +   *
    +   *
        * 
        * The name of the topic. It must have the format
        * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
    @@ -162,13 +170,11 @@ public java.lang.String getName() {
        *
        * string name = 1;
        */
    -  public com.google.protobuf.ByteString
    -      getNameBytes() {
    +  public com.google.protobuf.ByteString getNameBytes() {
         java.lang.Object ref = name_;
         if (ref instanceof java.lang.String) {
    -      com.google.protobuf.ByteString b = 
    -          com.google.protobuf.ByteString.copyFromUtf8(
    -              (java.lang.String) ref);
    +      com.google.protobuf.ByteString b =
    +          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
           name_ = b;
           return b;
         } else {
    @@ -177,24 +183,23 @@ public java.lang.String getName() {
       }
     
       public static final int LABELS_FIELD_NUMBER = 2;
    +
       private static final class LabelsDefaultEntryHolder {
    -    static final com.google.protobuf.MapEntry<
    -        java.lang.String, java.lang.String> defaultEntry =
    -            com.google.protobuf.MapEntry
    -            .newDefaultInstance(
    -                com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, 
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "",
    -                com.google.protobuf.WireFormat.FieldType.STRING,
    -                "");
    +    static final com.google.protobuf.MapEntry defaultEntry =
    +        com.google.protobuf.MapEntry.newDefaultInstance(
    +            com.google.pubsub.v1.PubsubProto
    +                .internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor,
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "",
    +            com.google.protobuf.WireFormat.FieldType.STRING,
    +            "");
       }
    -  private com.google.protobuf.MapField<
    -      java.lang.String, java.lang.String> labels_;
    -  private com.google.protobuf.MapField
    -  internalGetLabels() {
    +
    +  private com.google.protobuf.MapField labels_;
    +
    +  private com.google.protobuf.MapField internalGetLabels() {
         if (labels_ == null) {
    -      return com.google.protobuf.MapField.emptyMapField(
    -          LabelsDefaultEntryHolder.defaultEntry);
    +      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
         }
         return labels_;
       }
    @@ -203,65 +208,67 @@ public int getLabelsCount() {
         return internalGetLabels().getMap().size();
       }
       /**
    +   *
    +   *
        * 
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 2; */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 2; */ - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 2; */ - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 2; */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -271,6 +278,8 @@ public java.lang.String getLabelsOrThrow( public static final int MESSAGE_STORAGE_POLICY_FIELD_NUMBER = 3; private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_; /** + * + * *
        * Policy constraining how messages published to the topic may be stored. It
        * is determined when the topic is created based on the policy configured at
    @@ -286,6 +295,8 @@ public boolean hasMessageStoragePolicy() {
         return messageStoragePolicy_ != null;
       }
       /**
    +   *
    +   *
        * 
        * Policy constraining how messages published to the topic may be stored. It
        * is determined when the topic is created based on the policy configured at
    @@ -298,9 +309,13 @@ public boolean hasMessageStoragePolicy() {
        * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
        */
       public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() {
    -    return messageStoragePolicy_ == null ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_;
    +    return messageStoragePolicy_ == null
    +        ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance()
    +        : messageStoragePolicy_;
       }
       /**
    +   *
    +   *
        * 
        * Policy constraining how messages published to the topic may be stored. It
        * is determined when the topic is created based on the policy configured at
    @@ -317,6 +332,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -328,17 +344,12 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (!getNameBytes().isEmpty()) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
    -    com.google.protobuf.GeneratedMessageV3
    -      .serializeStringMapTo(
    -        output,
    -        internalGetLabels(),
    -        LabelsDefaultEntryHolder.defaultEntry,
    -        2);
    +    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
    +        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
         if (messageStoragePolicy_ != null) {
           output.writeMessage(3, getMessageStoragePolicy());
         }
    @@ -354,19 +365,19 @@ public int getSerializedSize() {
         if (!getNameBytes().isEmpty()) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
    -    for (java.util.Map.Entry entry
    -         : internalGetLabels().getMap().entrySet()) {
    -      com.google.protobuf.MapEntry
    -      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
    -          .setKey(entry.getKey())
    -          .setValue(entry.getValue())
    -          .build();
    -      size += com.google.protobuf.CodedOutputStream
    -          .computeMessageSize(2, labels__);
    +    for (java.util.Map.Entry entry :
    +        internalGetLabels().getMap().entrySet()) {
    +      com.google.protobuf.MapEntry labels__ =
    +          LabelsDefaultEntryHolder.defaultEntry
    +              .newBuilderForType()
    +              .setKey(entry.getKey())
    +              .setValue(entry.getValue())
    +              .build();
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__);
         }
         if (messageStoragePolicy_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(3, getMessageStoragePolicy());
    +      size +=
    +          com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessageStoragePolicy());
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -376,7 +387,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.Topic)) {
           return super.equals(obj);
    @@ -384,14 +395,11 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.Topic other = (com.google.pubsub.v1.Topic) obj;
     
         boolean result = true;
    -    result = result && getName()
    -        .equals(other.getName());
    -    result = result && internalGetLabels().equals(
    -        other.internalGetLabels());
    +    result = result && getName().equals(other.getName());
    +    result = result && internalGetLabels().equals(other.internalGetLabels());
         result = result && (hasMessageStoragePolicy() == other.hasMessageStoragePolicy());
         if (hasMessageStoragePolicy()) {
    -      result = result && getMessageStoragePolicy()
    -          .equals(other.getMessageStoragePolicy());
    +      result = result && getMessageStoragePolicy().equals(other.getMessageStoragePolicy());
         }
         result = result && unknownFields.equals(other.unknownFields);
         return result;
    @@ -419,138 +427,142 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.Topic parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.Topic parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.Topic parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.Topic parseFrom(
    -      com.google.protobuf.ByteString data)
    +
    +  public static com.google.pubsub.v1.Topic parseFrom(com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.Topic parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.Topic parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.Topic parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.Topic parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.Topic parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.Topic parseDelimitedFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.Topic parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.Topic parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    +
    +  public static com.google.pubsub.v1.Topic parseFrom(com.google.protobuf.CodedInputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.Topic parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.Topic prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * A topic resource.
        * 
    * * Protobuf type {@code google.pubsub.v1.Topic} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Topic) com.google.pubsub.v1.TopicOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Topic_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); } @@ -560,16 +572,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -586,8 +597,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } @@ -627,38 +637,39 @@ public com.google.pubsub.v1.Topic buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Topic) { - return mergeFrom((com.google.pubsub.v1.Topic)other); + return mergeFrom((com.google.pubsub.v1.Topic) other); } else { super.mergeFrom(other); return this; @@ -671,8 +682,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); } @@ -704,10 +714,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
          * The name of the topic. It must have the format
          * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
    @@ -722,8 +735,7 @@ public Builder mergeFrom(
         public java.lang.String getName() {
           java.lang.Object ref = name_;
           if (!(ref instanceof java.lang.String)) {
    -        com.google.protobuf.ByteString bs =
    -            (com.google.protobuf.ByteString) ref;
    +        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
             java.lang.String s = bs.toStringUtf8();
             name_ = s;
             return s;
    @@ -732,6 +744,8 @@ public java.lang.String getName() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic. It must have the format
          * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
    @@ -743,13 +757,11 @@ public java.lang.String getName() {
          *
          * string name = 1;
          */
    -    public com.google.protobuf.ByteString
    -        getNameBytes() {
    +    public com.google.protobuf.ByteString getNameBytes() {
           java.lang.Object ref = name_;
           if (ref instanceof String) {
    -        com.google.protobuf.ByteString b = 
    -            com.google.protobuf.ByteString.copyFromUtf8(
    -                (java.lang.String) ref);
    +        com.google.protobuf.ByteString b =
    +            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
             name_ = b;
             return b;
           } else {
    @@ -757,6 +769,8 @@ public java.lang.String getName() {
           }
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic. It must have the format
          * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
    @@ -768,17 +782,18 @@ public java.lang.String getName() {
          *
          * string name = 1;
          */
    -    public Builder setName(
    -        java.lang.String value) {
    +    public Builder setName(java.lang.String value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  
    +        throw new NullPointerException();
    +      }
    +
           name_ = value;
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic. It must have the format
          * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
    @@ -791,12 +806,14 @@ public Builder setName(
          * string name = 1;
          */
         public Builder clearName() {
    -      
    +
           name_ = getDefaultInstance().getName();
           onChanged();
           return this;
         }
         /**
    +     *
    +     *
          * 
          * The name of the topic. It must have the format
          * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
    @@ -808,34 +825,32 @@ public Builder clearName() {
          *
          * string name = 1;
          */
    -    public Builder setNameBytes(
    -        com.google.protobuf.ByteString value) {
    +    public Builder setNameBytes(com.google.protobuf.ByteString value) {
           if (value == null) {
    -    throw new NullPointerException();
    -  }
    -  checkByteStringIsUtf8(value);
    -      
    +        throw new NullPointerException();
    +      }
    +      checkByteStringIsUtf8(value);
    +
           name_ = value;
           onChanged();
           return this;
         }
     
    -    private com.google.protobuf.MapField<
    -        java.lang.String, java.lang.String> labels_;
    -    private com.google.protobuf.MapField
    -    internalGetLabels() {
    +    private com.google.protobuf.MapField labels_;
    +
    +    private com.google.protobuf.MapField internalGetLabels() {
           if (labels_ == null) {
    -        return com.google.protobuf.MapField.emptyMapField(
    -            LabelsDefaultEntryHolder.defaultEntry);
    +        return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
           }
           return labels_;
         }
    +
         private com.google.protobuf.MapField
    -    internalGetMutableLabels() {
    -      onChanged();;
    +        internalGetMutableLabels() {
    +      onChanged();
    +      ;
           if (labels_ == null) {
    -        labels_ = com.google.protobuf.MapField.newMapField(
    -            LabelsDefaultEntryHolder.defaultEntry);
    +        labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
           }
           if (!labels_.isMutable()) {
             labels_ = labels_.copy();
    @@ -847,65 +862,68 @@ public int getLabelsCount() {
           return internalGetLabels().getMap().size();
         }
         /**
    +     *
    +     *
          * 
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 2; */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 2; */ - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 2; */ - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 2; */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -913,68 +931,72 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 2; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 2; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
          * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
          * 
    * * map<string, string> labels = 2; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> messageStoragePolicyBuilder_; + com.google.pubsub.v1.MessageStoragePolicy, + com.google.pubsub.v1.MessageStoragePolicy.Builder, + com.google.pubsub.v1.MessageStoragePolicyOrBuilder> + messageStoragePolicyBuilder_; /** + * + * *
          * Policy constraining how messages published to the topic may be stored. It
          * is determined when the topic is created based on the policy configured at
    @@ -990,6 +1012,8 @@ public boolean hasMessageStoragePolicy() {
           return messageStoragePolicyBuilder_ != null || messageStoragePolicy_ != null;
         }
         /**
    +     *
    +     *
          * 
          * Policy constraining how messages published to the topic may be stored. It
          * is determined when the topic is created based on the policy configured at
    @@ -1003,12 +1027,16 @@ public boolean hasMessageStoragePolicy() {
          */
         public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() {
           if (messageStoragePolicyBuilder_ == null) {
    -        return messageStoragePolicy_ == null ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_;
    +        return messageStoragePolicy_ == null
    +            ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance()
    +            : messageStoragePolicy_;
           } else {
             return messageStoragePolicyBuilder_.getMessage();
           }
         }
         /**
    +     *
    +     *
          * 
          * Policy constraining how messages published to the topic may be stored. It
          * is determined when the topic is created based on the policy configured at
    @@ -1034,6 +1062,8 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Policy constraining how messages published to the topic may be stored. It
          * is determined when the topic is created based on the policy configured at
    @@ -1057,6 +1087,8 @@ public Builder setMessageStoragePolicy(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Policy constraining how messages published to the topic may be stored. It
          * is determined when the topic is created based on the policy configured at
    @@ -1072,7 +1104,9 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli
           if (messageStoragePolicyBuilder_ == null) {
             if (messageStoragePolicy_ != null) {
               messageStoragePolicy_ =
    -            com.google.pubsub.v1.MessageStoragePolicy.newBuilder(messageStoragePolicy_).mergeFrom(value).buildPartial();
    +              com.google.pubsub.v1.MessageStoragePolicy.newBuilder(messageStoragePolicy_)
    +                  .mergeFrom(value)
    +                  .buildPartial();
             } else {
               messageStoragePolicy_ = value;
             }
    @@ -1084,6 +1118,8 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Policy constraining how messages published to the topic may be stored. It
          * is determined when the topic is created based on the policy configured at
    @@ -1107,6 +1143,8 @@ public Builder clearMessageStoragePolicy() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Policy constraining how messages published to the topic may be stored. It
          * is determined when the topic is created based on the policy configured at
    @@ -1119,11 +1157,13 @@ public Builder clearMessageStoragePolicy() {
          * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
          */
         public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicyBuilder() {
    -      
    +
           onChanged();
           return getMessageStoragePolicyFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Policy constraining how messages published to the topic may be stored. It
          * is determined when the topic is created based on the policy configured at
    @@ -1139,11 +1179,14 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
           if (messageStoragePolicyBuilder_ != null) {
             return messageStoragePolicyBuilder_.getMessageOrBuilder();
           } else {
    -        return messageStoragePolicy_ == null ?
    -            com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_;
    +        return messageStoragePolicy_ == null
    +            ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance()
    +            : messageStoragePolicy_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Policy constraining how messages published to the topic may be stored. It
          * is determined when the topic is created based on the policy configured at
    @@ -1156,21 +1199,24 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic
          * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> 
    +            com.google.pubsub.v1.MessageStoragePolicy,
    +            com.google.pubsub.v1.MessageStoragePolicy.Builder,
    +            com.google.pubsub.v1.MessageStoragePolicyOrBuilder>
             getMessageStoragePolicyFieldBuilder() {
           if (messageStoragePolicyBuilder_ == null) {
    -        messageStoragePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder>(
    -                getMessageStoragePolicy(),
    -                getParentForChildren(),
    -                isClean());
    +        messageStoragePolicyBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.pubsub.v1.MessageStoragePolicy,
    +                com.google.pubsub.v1.MessageStoragePolicy.Builder,
    +                com.google.pubsub.v1.MessageStoragePolicyOrBuilder>(
    +                getMessageStoragePolicy(), getParentForChildren(), isClean());
             messageStoragePolicy_ = null;
           }
           return messageStoragePolicyBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -1180,12 +1226,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Topic)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.Topic)
       private static final com.google.pubsub.v1.Topic DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.Topic();
       }
    @@ -1194,16 +1240,16 @@ public static com.google.pubsub.v1.Topic getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public Topic parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new Topic(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public Topic parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new Topic(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -1218,6 +1264,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.Topic getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java
    index 2d88a884a848..8d45672bdcd4 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java
    @@ -14,8 +14,6 @@
     
     package com.google.pubsub.v1;
     
    -import com.google.api.resourcenames.ResourceName;
    -
     // AUTO-GENERATED DOCUMENTATION AND CLASS
     @javax.annotation.Generated("by GAPIC protoc plugin")
     public class TopicNames {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
    index 0eeddaef9c13..c5b0f6dcccf5 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface TopicOrBuilder extends
    +public interface TopicOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Topic)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The name of the topic. It must have the format
        * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
    @@ -21,6 +24,8 @@ public interface TopicOrBuilder extends
        */
       java.lang.String getName();
       /**
    +   *
    +   *
        * 
        * The name of the topic. It must have the format
        * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
    @@ -32,10 +37,11 @@ public interface TopicOrBuilder extends
        *
        * string name = 1;
        */
    -  com.google.protobuf.ByteString
    -      getNameBytes();
    +  com.google.protobuf.ByteString getNameBytes();
     
       /**
    +   *
    +   *
        * 
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    @@ -44,52 +50,52 @@ public interface TopicOrBuilder extends */ int getLabelsCount(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 2; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 2; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
        * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
        * 
    * * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
        * Policy constraining how messages published to the topic may be stored. It
        * is determined when the topic is created based on the policy configured at
    @@ -103,6 +109,8 @@ java.lang.String getLabelsOrThrow(
        */
       boolean hasMessageStoragePolicy();
       /**
    +   *
    +   *
        * 
        * Policy constraining how messages published to the topic may be stored. It
        * is determined when the topic is created based on the policy configured at
    @@ -116,6 +124,8 @@ java.lang.String getLabelsOrThrow(
        */
       com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy();
       /**
    +   *
    +   *
        * 
        * Policy constraining how messages published to the topic may be stored. It
        * is determined when the topic is created based on the policy configured at
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java
    index b04f54c5c139..afb211175b43 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java
    @@ -14,8 +14,8 @@
     
     package com.google.pubsub.v1;
     
    -import com.google.common.base.Preconditions;
     import com.google.api.resourcenames.ResourceName;
    +import com.google.common.base.Preconditions;
     import com.google.common.collect.ImmutableMap;
     import java.util.ArrayList;
     import java.util.List;
    @@ -65,16 +65,12 @@ public static boolean isParsableFrom(String formattedString) {
         return true;
       }
     
    -  /**
    -   * Return a map with a single value rawValue keyed on an empty String "".
    -   */
    +  /** Return a map with a single value rawValue keyed on an empty String "". */
       public Map getFieldValuesMap() {
         return valueMap;
       }
     
    -  /**
    -   * Return the initial rawValue if @param fieldName is an empty String, else return null.
    -   */
    +  /** Return the initial rawValue if @param fieldName is an empty String, else return null. */
       public String getFieldValue(String fieldName) {
         return valueMap.get(fieldName);
       }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
    index 454443468ba2..2b2f150c55f5 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
    @@ -4,6 +4,8 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the UpdateSnapshot method.<br><br>
      * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -13,23 +15,23 @@
      *
      * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest}
      */
    -public  final class UpdateSnapshotRequest extends
    -    com.google.protobuf.GeneratedMessageV3 implements
    +public final class UpdateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3
    +    implements
         // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSnapshotRequest)
         UpdateSnapshotRequestOrBuilder {
    -private static final long serialVersionUID = 0L;
    +  private static final long serialVersionUID = 0L;
       // Use UpdateSnapshotRequest.newBuilder() to construct.
       private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
         super(builder);
       }
    -  private UpdateSnapshotRequest() {
    -  }
    +
    +  private UpdateSnapshotRequest() {}
     
       @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet
    -  getUnknownFields() {
    +  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
    +
       private UpdateSnapshotRequest(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    @@ -49,67 +51,75 @@ private UpdateSnapshotRequest(
               case 0:
                 done = true;
                 break;
    -          case 10: {
    -            com.google.pubsub.v1.Snapshot.Builder subBuilder = null;
    -            if (snapshot_ != null) {
    -              subBuilder = snapshot_.toBuilder();
    -            }
    -            snapshot_ = input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry);
    -            if (subBuilder != null) {
    -              subBuilder.mergeFrom(snapshot_);
    -              snapshot_ = subBuilder.buildPartial();
    -            }
    -
    -            break;
    -          }
    -          case 18: {
    -            com.google.protobuf.FieldMask.Builder subBuilder = null;
    -            if (updateMask_ != null) {
    -              subBuilder = updateMask_.toBuilder();
    +          case 10:
    +            {
    +              com.google.pubsub.v1.Snapshot.Builder subBuilder = null;
    +              if (snapshot_ != null) {
    +                subBuilder = snapshot_.toBuilder();
    +              }
    +              snapshot_ =
    +                  input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry);
    +              if (subBuilder != null) {
    +                subBuilder.mergeFrom(snapshot_);
    +                snapshot_ = subBuilder.buildPartial();
    +              }
    +
    +              break;
                 }
    -            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
    -            if (subBuilder != null) {
    -              subBuilder.mergeFrom(updateMask_);
    -              updateMask_ = subBuilder.buildPartial();
    +          case 18:
    +            {
    +              com.google.protobuf.FieldMask.Builder subBuilder = null;
    +              if (updateMask_ != null) {
    +                subBuilder = updateMask_.toBuilder();
    +              }
    +              updateMask_ =
    +                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
    +              if (subBuilder != null) {
    +                subBuilder.mergeFrom(updateMask_);
    +                updateMask_ = subBuilder.buildPartial();
    +              }
    +
    +              break;
                 }
    -
    -            break;
    -          }
    -          default: {
    -            if (!parseUnknownFieldProto3(
    -                input, unknownFields, extensionRegistry, tag)) {
    -              done = true;
    +          default:
    +            {
    +              if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
    +                done = true;
    +              }
    +              break;
                 }
    -            break;
    -          }
             }
           }
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
           throw e.setUnfinishedMessage(this);
         } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(
    -          e).setUnfinishedMessage(this);
    +      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
         } finally {
           this.unknownFields = unknownFields.build();
           makeExtensionsImmutable();
         }
       }
    -  public static final com.google.protobuf.Descriptors.Descriptor
    -      getDescriptor() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor;
    +
    +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable
    +    return com.google.pubsub.v1.PubsubProto
    +        .internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
    -            com.google.pubsub.v1.UpdateSnapshotRequest.class, com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class);
    +            com.google.pubsub.v1.UpdateSnapshotRequest.class,
    +            com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class);
       }
     
       public static final int SNAPSHOT_FIELD_NUMBER = 1;
       private com.google.pubsub.v1.Snapshot snapshot_;
       /**
    +   *
    +   *
        * 
        * The updated snapshot object.
        * 
    @@ -120,6 +130,8 @@ public boolean hasSnapshot() { return snapshot_ != null; } /** + * + * *
        * The updated snapshot object.
        * 
    @@ -130,6 +142,8 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } /** + * + * *
        * The updated snapshot object.
        * 
    @@ -143,6 +157,8 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
        * Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
    @@ -154,6 +170,8 @@ public boolean hasUpdateMask() {
         return updateMask_ != null;
       }
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
    @@ -165,6 +183,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
         return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
    @@ -177,6 +197,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -188,8 +209,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (snapshot_ != null) {
           output.writeMessage(1, getSnapshot());
         }
    @@ -206,12 +226,10 @@ public int getSerializedSize() {
     
         size = 0;
         if (snapshot_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, getSnapshot());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshot());
         }
         if (updateMask_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, getUpdateMask());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -221,23 +239,22 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.UpdateSnapshotRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.UpdateSnapshotRequest other = (com.google.pubsub.v1.UpdateSnapshotRequest) obj;
    +    com.google.pubsub.v1.UpdateSnapshotRequest other =
    +        (com.google.pubsub.v1.UpdateSnapshotRequest) obj;
     
         boolean result = true;
         result = result && (hasSnapshot() == other.hasSnapshot());
         if (hasSnapshot()) {
    -      result = result && getSnapshot()
    -          .equals(other.getSnapshot());
    +      result = result && getSnapshot().equals(other.getSnapshot());
         }
         result = result && (hasUpdateMask() == other.hasUpdateMask());
         if (hasUpdateMask()) {
    -      result = result && getUpdateMask()
    -          .equals(other.getUpdateMask());
    +      result = result && getUpdateMask().equals(other.getUpdateMask());
         }
         result = result && unknownFields.equals(other.unknownFields);
         return result;
    @@ -263,97 +280,104 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.UpdateSnapshotRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the UpdateSnapshot method.<br><br>
        * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    @@ -363,21 +387,23 @@ protected Builder newBuilderForType(
        *
        * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest}
        */
    -  public static final class Builder extends
    -      com.google.protobuf.GeneratedMessageV3.Builder implements
    +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
    +      implements
           // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateSnapshotRequest)
           com.google.pubsub.v1.UpdateSnapshotRequestOrBuilder {
    -    public static final com.google.protobuf.Descriptors.Descriptor
    -        getDescriptor() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor;
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
    -              com.google.pubsub.v1.UpdateSnapshotRequest.class, com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class);
    +              com.google.pubsub.v1.UpdateSnapshotRequest.class,
    +              com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class);
         }
     
         // Construct using com.google.pubsub.v1.UpdateSnapshotRequest.newBuilder()
    @@ -385,16 +411,15 @@ private Builder() {
           maybeForceBuilderInitialization();
         }
     
    -    private Builder(
    -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
    +
         private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3
    -              .alwaysUseFieldBuilders) {
    -      }
    +      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
    +
         @java.lang.Override
         public Builder clear() {
           super.clear();
    @@ -414,9 +439,9 @@ public Builder clear() {
         }
     
         @java.lang.Override
    -    public com.google.protobuf.Descriptors.Descriptor
    -        getDescriptorForType() {
    -      return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor;
    +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor;
         }
     
         @java.lang.Override
    @@ -435,7 +460,8 @@ public com.google.pubsub.v1.UpdateSnapshotRequest build() {
     
         @java.lang.Override
         public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() {
    -      com.google.pubsub.v1.UpdateSnapshotRequest result = new com.google.pubsub.v1.UpdateSnapshotRequest(this);
    +      com.google.pubsub.v1.UpdateSnapshotRequest result =
    +          new com.google.pubsub.v1.UpdateSnapshotRequest(this);
           if (snapshotBuilder_ == null) {
             result.snapshot_ = snapshot_;
           } else {
    @@ -454,38 +480,39 @@ public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() {
         public Builder clone() {
           return (Builder) super.clone();
         }
    +
         @java.lang.Override
         public Builder setField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.setField(field, value);
         }
    +
         @java.lang.Override
    -    public Builder clearField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field) {
    +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
           return (Builder) super.clearField(field);
         }
    +
         @java.lang.Override
    -    public Builder clearOneof(
    -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
    +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
           return (Builder) super.clearOneof(oneof);
         }
    +
         @java.lang.Override
         public Builder setRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        int index, java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
           return (Builder) super.setRepeatedField(field, index, value);
         }
    +
         @java.lang.Override
         public Builder addRepeatedField(
    -        com.google.protobuf.Descriptors.FieldDescriptor field,
    -        java.lang.Object value) {
    +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
           return (Builder) super.addRepeatedField(field, value);
         }
    +
         @java.lang.Override
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof com.google.pubsub.v1.UpdateSnapshotRequest) {
    -        return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest)other);
    +        return mergeFrom((com.google.pubsub.v1.UpdateSnapshotRequest) other);
           } else {
             super.mergeFrom(other);
             return this;
    @@ -531,8 +558,13 @@ public Builder mergeFrom(
     
         private com.google.pubsub.v1.Snapshot snapshot_ = null;
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotBuilder_;
    +            com.google.pubsub.v1.Snapshot,
    +            com.google.pubsub.v1.Snapshot.Builder,
    +            com.google.pubsub.v1.SnapshotOrBuilder>
    +        snapshotBuilder_;
         /**
    +     *
    +     *
          * 
          * The updated snapshot object.
          * 
    @@ -543,6 +575,8 @@ public boolean hasSnapshot() { return snapshotBuilder_ != null || snapshot_ != null; } /** + * + * *
          * The updated snapshot object.
          * 
    @@ -557,6 +591,8 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { } } /** + * + * *
          * The updated snapshot object.
          * 
    @@ -577,14 +613,15 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { return this; } /** + * + * *
          * The updated snapshot object.
          * 
    * * .google.pubsub.v1.Snapshot snapshot = 1; */ - public Builder setSnapshot( - com.google.pubsub.v1.Snapshot.Builder builderForValue) { + public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { snapshot_ = builderForValue.build(); onChanged(); @@ -595,6 +632,8 @@ public Builder setSnapshot( return this; } /** + * + * *
          * The updated snapshot object.
          * 
    @@ -605,7 +644,7 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { if (snapshot_ != null) { snapshot_ = - com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); } else { snapshot_ = value; } @@ -617,6 +656,8 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { return this; } /** + * + * *
          * The updated snapshot object.
          * 
    @@ -635,6 +676,8 @@ public Builder clearSnapshot() { return this; } /** + * + * *
          * The updated snapshot object.
          * 
    @@ -642,11 +685,13 @@ public Builder clearSnapshot() { * .google.pubsub.v1.Snapshot snapshot = 1; */ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { - + onChanged(); return getSnapshotFieldBuilder().getBuilder(); } /** + * + * *
          * The updated snapshot object.
          * 
    @@ -657,11 +702,12 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { if (snapshotBuilder_ != null) { return snapshotBuilder_.getMessageOrBuilder(); } else { - return snapshot_ == null ? - com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; + return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } } /** + * + * *
          * The updated snapshot object.
          * 
    @@ -669,14 +715,17 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * .google.pubsub.v1.Snapshot snapshot = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> + com.google.pubsub.v1.Snapshot, + com.google.pubsub.v1.Snapshot.Builder, + com.google.pubsub.v1.SnapshotOrBuilder> getSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { - snapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( - getSnapshot(), - getParentForChildren(), - isClean()); + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Snapshot, + com.google.pubsub.v1.Snapshot.Builder, + com.google.pubsub.v1.SnapshotOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); snapshot_ = null; } return snapshotBuilder_; @@ -684,8 +733,13 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { private com.google.protobuf.FieldMask updateMask_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
          * Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
    @@ -697,6 +751,8 @@ public boolean hasUpdateMask() {
           return updateMaskBuilder_ != null || updateMask_ != null;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
    @@ -706,12 +762,16 @@ public boolean hasUpdateMask() {
          */
         public com.google.protobuf.FieldMask getUpdateMask() {
           if (updateMaskBuilder_ == null) {
    -        return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
    +        return updateMask_ == null
    +            ? com.google.protobuf.FieldMask.getDefaultInstance()
    +            : updateMask_;
           } else {
             return updateMaskBuilder_.getMessage();
           }
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
    @@ -733,6 +793,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
    @@ -740,8 +802,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
          *
          * .google.protobuf.FieldMask update_mask = 2;
          */
    -    public Builder setUpdateMask(
    -        com.google.protobuf.FieldMask.Builder builderForValue) {
    +    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
           if (updateMaskBuilder_ == null) {
             updateMask_ = builderForValue.build();
             onChanged();
    @@ -752,6 +813,8 @@ public Builder setUpdateMask(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
    @@ -763,7 +826,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
           if (updateMaskBuilder_ == null) {
             if (updateMask_ != null) {
               updateMask_ =
    -            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
             } else {
               updateMask_ = value;
             }
    @@ -775,6 +838,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
    @@ -794,6 +859,8 @@ public Builder clearUpdateMask() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
    @@ -802,11 +869,13 @@ public Builder clearUpdateMask() {
          * .google.protobuf.FieldMask update_mask = 2;
          */
         public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
    -      
    +
           onChanged();
           return getUpdateMaskFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
    @@ -818,11 +887,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
           if (updateMaskBuilder_ != null) {
             return updateMaskBuilder_.getMessageOrBuilder();
           } else {
    -        return updateMask_ == null ?
    -            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
    +        return updateMask_ == null
    +            ? com.google.protobuf.FieldMask.getDefaultInstance()
    +            : updateMask_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
    @@ -831,21 +903,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
          * .google.protobuf.FieldMask update_mask = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
    +            com.google.protobuf.FieldMask,
    +            com.google.protobuf.FieldMask.Builder,
    +            com.google.protobuf.FieldMaskOrBuilder>
             getUpdateMaskFieldBuilder() {
           if (updateMaskBuilder_ == null) {
    -        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
    -                getUpdateMask(),
    -                getParentForChildren(),
    -                isClean());
    +        updateMaskBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.FieldMask,
    +                com.google.protobuf.FieldMask.Builder,
    +                com.google.protobuf.FieldMaskOrBuilder>(
    +                getUpdateMask(), getParentForChildren(), isClean());
             updateMask_ = null;
           }
           return updateMaskBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -855,12 +930,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateSnapshotRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSnapshotRequest)
       private static final com.google.pubsub.v1.UpdateSnapshotRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateSnapshotRequest();
       }
    @@ -869,16 +944,16 @@ public static com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public UpdateSnapshotRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new UpdateSnapshotRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public UpdateSnapshotRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new UpdateSnapshotRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -893,6 +968,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.UpdateSnapshotRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java
    index e80d7cda2f95..db60dc8318ae 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface UpdateSnapshotRequestOrBuilder extends
    +public interface UpdateSnapshotRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateSnapshotRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The updated snapshot object.
        * 
    @@ -16,6 +19,8 @@ public interface UpdateSnapshotRequestOrBuilder extends */ boolean hasSnapshot(); /** + * + * *
        * The updated snapshot object.
        * 
    @@ -24,6 +29,8 @@ public interface UpdateSnapshotRequestOrBuilder extends */ com.google.pubsub.v1.Snapshot getSnapshot(); /** + * + * *
        * The updated snapshot object.
        * 
    @@ -33,6 +40,8 @@ public interface UpdateSnapshotRequestOrBuilder extends com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder(); /** + * + * *
        * Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
    @@ -42,6 +51,8 @@ public interface UpdateSnapshotRequestOrBuilder extends
        */
       boolean hasUpdateMask();
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
    @@ -51,6 +62,8 @@ public interface UpdateSnapshotRequestOrBuilder extends
        */
       com.google.protobuf.FieldMask getUpdateMask();
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java
    index 83413ab9760b..7843de87e2b3 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java
    @@ -4,29 +4,31 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the UpdateSubscription method.
      * 
    * * Protobuf type {@code google.pubsub.v1.UpdateSubscriptionRequest} */ -public final class UpdateSubscriptionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSubscriptionRequest) UpdateSubscriptionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSubscriptionRequest.newBuilder() to construct. private UpdateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateSubscriptionRequest() { - } + + private UpdateSubscriptionRequest() {} @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSubscriptionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -46,67 +48,75 @@ private UpdateSubscriptionRequest( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.Subscription.Builder subBuilder = null; - if (subscription_ != null) { - subBuilder = subscription_.toBuilder(); - } - subscription_ = input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subscription_); - subscription_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); + case 10: + { + com.google.pubsub.v1.Subscription.Builder subBuilder = null; + if (subscription_ != null) { + subBuilder = subscription_.toBuilder(); + } + subscription_ = + input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subscription_); + subscription_ = subBuilder.buildPartial(); + } + + break; } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateSubscriptionRequest.class, com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); + com.google.pubsub.v1.UpdateSubscriptionRequest.class, + com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private com.google.pubsub.v1.Subscription subscription_; /** + * + * *
        * The updated subscription object.
        * 
    @@ -117,6 +127,8 @@ public boolean hasSubscription() { return subscription_ != null; } /** + * + * *
        * The updated subscription object.
        * 
    @@ -124,9 +136,13 @@ public boolean hasSubscription() { * .google.pubsub.v1.Subscription subscription = 1; */ public com.google.pubsub.v1.Subscription getSubscription() { - return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.pubsub.v1.Subscription.getDefaultInstance() + : subscription_; } /** + * + * *
        * The updated subscription object.
        * 
    @@ -140,6 +156,8 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
        * Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
    @@ -151,6 +169,8 @@ public boolean hasUpdateMask() {
         return updateMask_ != null;
       }
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
    @@ -162,6 +182,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
         return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
    @@ -174,6 +196,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -185,8 +208,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (subscription_ != null) {
           output.writeMessage(1, getSubscription());
         }
    @@ -203,12 +225,10 @@ public int getSerializedSize() {
     
         size = 0;
         if (subscription_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, getSubscription());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubscription());
         }
         if (updateMask_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, getUpdateMask());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -218,23 +238,22 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.UpdateSubscriptionRequest)) {
           return super.equals(obj);
         }
    -    com.google.pubsub.v1.UpdateSubscriptionRequest other = (com.google.pubsub.v1.UpdateSubscriptionRequest) obj;
    +    com.google.pubsub.v1.UpdateSubscriptionRequest other =
    +        (com.google.pubsub.v1.UpdateSubscriptionRequest) obj;
     
         boolean result = true;
         result = result && (hasSubscription() == other.hasSubscription());
         if (hasSubscription()) {
    -      result = result && getSubscription()
    -          .equals(other.getSubscription());
    +      result = result && getSubscription().equals(other.getSubscription());
         }
         result = result && (hasUpdateMask() == other.hasUpdateMask());
         if (hasUpdateMask()) {
    -      result = result && getUpdateMask()
    -          .equals(other.getUpdateMask());
    +      result = result && getUpdateMask().equals(other.getUpdateMask());
         }
         result = result && unknownFields.equals(other.unknownFields);
         return result;
    @@ -260,118 +279,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.UpdateSubscriptionRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the UpdateSubscription method.
        * 
    * * Protobuf type {@code google.pubsub.v1.UpdateSubscriptionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateSubscriptionRequest) com.google.pubsub.v1.UpdateSubscriptionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateSubscriptionRequest.class, com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); + com.google.pubsub.v1.UpdateSubscriptionRequest.class, + com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); } // Construct using com.google.pubsub.v1.UpdateSubscriptionRequest.newBuilder() @@ -379,16 +407,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override @@ -429,7 +456,8 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest build() { @java.lang.Override public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { - com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); + com.google.pubsub.v1.UpdateSubscriptionRequest result = + new com.google.pubsub.v1.UpdateSubscriptionRequest(this); if (subscriptionBuilder_ == null) { result.subscription_ = subscription_; } else { @@ -448,38 +476,39 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateSubscriptionRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest)other); + return mergeFrom((com.google.pubsub.v1.UpdateSubscriptionRequest) other); } else { super.mergeFrom(other); return this; @@ -525,8 +554,13 @@ public Builder mergeFrom( private com.google.pubsub.v1.Subscription subscription_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> subscriptionBuilder_; + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder> + subscriptionBuilder_; /** + * + * *
          * The updated subscription object.
          * 
    @@ -537,6 +571,8 @@ public boolean hasSubscription() { return subscriptionBuilder_ != null || subscription_ != null; } /** + * + * *
          * The updated subscription object.
          * 
    @@ -545,12 +581,16 @@ public boolean hasSubscription() { */ public com.google.pubsub.v1.Subscription getSubscription() { if (subscriptionBuilder_ == null) { - return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.pubsub.v1.Subscription.getDefaultInstance() + : subscription_; } else { return subscriptionBuilder_.getMessage(); } } /** + * + * *
          * The updated subscription object.
          * 
    @@ -571,14 +611,15 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { return this; } /** + * + * *
          * The updated subscription object.
          * 
    * * .google.pubsub.v1.Subscription subscription = 1; */ - public Builder setSubscription( - com.google.pubsub.v1.Subscription.Builder builderForValue) { + public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builderForValue) { if (subscriptionBuilder_ == null) { subscription_ = builderForValue.build(); onChanged(); @@ -589,6 +630,8 @@ public Builder setSubscription( return this; } /** + * + * *
          * The updated subscription object.
          * 
    @@ -599,7 +642,9 @@ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { if (subscriptionBuilder_ == null) { if (subscription_ != null) { subscription_ = - com.google.pubsub.v1.Subscription.newBuilder(subscription_).mergeFrom(value).buildPartial(); + com.google.pubsub.v1.Subscription.newBuilder(subscription_) + .mergeFrom(value) + .buildPartial(); } else { subscription_ = value; } @@ -611,6 +656,8 @@ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { return this; } /** + * + * *
          * The updated subscription object.
          * 
    @@ -629,6 +676,8 @@ public Builder clearSubscription() { return this; } /** + * + * *
          * The updated subscription object.
          * 
    @@ -636,11 +685,13 @@ public Builder clearSubscription() { * .google.pubsub.v1.Subscription subscription = 1; */ public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { - + onChanged(); return getSubscriptionFieldBuilder().getBuilder(); } /** + * + * *
          * The updated subscription object.
          * 
    @@ -651,11 +702,14 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { return subscriptionBuilder_.getMessageOrBuilder(); } else { - return subscription_ == null ? - com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; + return subscription_ == null + ? com.google.pubsub.v1.Subscription.getDefaultInstance() + : subscription_; } } /** + * + * *
          * The updated subscription object.
          * 
    @@ -663,14 +717,17 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { * .google.pubsub.v1.Subscription subscription = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder> getSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { - subscriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( - getSubscription(), - getParentForChildren(), - isClean()); + subscriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription, + com.google.pubsub.v1.Subscription.Builder, + com.google.pubsub.v1.SubscriptionOrBuilder>( + getSubscription(), getParentForChildren(), isClean()); subscription_ = null; } return subscriptionBuilder_; @@ -678,8 +735,13 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { private com.google.protobuf.FieldMask updateMask_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
          * Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
    @@ -691,6 +753,8 @@ public boolean hasUpdateMask() {
           return updateMaskBuilder_ != null || updateMask_ != null;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
    @@ -700,12 +764,16 @@ public boolean hasUpdateMask() {
          */
         public com.google.protobuf.FieldMask getUpdateMask() {
           if (updateMaskBuilder_ == null) {
    -        return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
    +        return updateMask_ == null
    +            ? com.google.protobuf.FieldMask.getDefaultInstance()
    +            : updateMask_;
           } else {
             return updateMaskBuilder_.getMessage();
           }
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
    @@ -727,6 +795,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
    @@ -734,8 +804,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
          *
          * .google.protobuf.FieldMask update_mask = 2;
          */
    -    public Builder setUpdateMask(
    -        com.google.protobuf.FieldMask.Builder builderForValue) {
    +    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
           if (updateMaskBuilder_ == null) {
             updateMask_ = builderForValue.build();
             onChanged();
    @@ -746,6 +815,8 @@ public Builder setUpdateMask(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
    @@ -757,7 +828,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
           if (updateMaskBuilder_ == null) {
             if (updateMask_ != null) {
               updateMask_ =
    -            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
             } else {
               updateMask_ = value;
             }
    @@ -769,6 +840,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
    @@ -788,6 +861,8 @@ public Builder clearUpdateMask() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
    @@ -796,11 +871,13 @@ public Builder clearUpdateMask() {
          * .google.protobuf.FieldMask update_mask = 2;
          */
         public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
    -      
    +
           onChanged();
           return getUpdateMaskFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
    @@ -812,11 +889,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
           if (updateMaskBuilder_ != null) {
             return updateMaskBuilder_.getMessageOrBuilder();
           } else {
    -        return updateMask_ == null ?
    -            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
    +        return updateMask_ == null
    +            ? com.google.protobuf.FieldMask.getDefaultInstance()
    +            : updateMask_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
    @@ -825,21 +905,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
          * .google.protobuf.FieldMask update_mask = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
    +            com.google.protobuf.FieldMask,
    +            com.google.protobuf.FieldMask.Builder,
    +            com.google.protobuf.FieldMaskOrBuilder>
             getUpdateMaskFieldBuilder() {
           if (updateMaskBuilder_ == null) {
    -        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
    -                getUpdateMask(),
    -                getParentForChildren(),
    -                isClean());
    +        updateMaskBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.FieldMask,
    +                com.google.protobuf.FieldMask.Builder,
    +                com.google.protobuf.FieldMaskOrBuilder>(
    +                getUpdateMask(), getParentForChildren(), isClean());
             updateMask_ = null;
           }
           return updateMaskBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -849,12 +932,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateSubscriptionRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateSubscriptionRequest)
       private static final com.google.pubsub.v1.UpdateSubscriptionRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateSubscriptionRequest();
       }
    @@ -863,16 +946,16 @@ public static com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstance(
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public UpdateSubscriptionRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new UpdateSubscriptionRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public UpdateSubscriptionRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new UpdateSubscriptionRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -887,6 +970,4 @@ public com.google.protobuf.Parser getParserForType()
       public com.google.pubsub.v1.UpdateSubscriptionRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java
    index a9b6ad38c6ad..398bbce136bd 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface UpdateSubscriptionRequestOrBuilder extends
    +public interface UpdateSubscriptionRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateSubscriptionRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The updated subscription object.
        * 
    @@ -16,6 +19,8 @@ public interface UpdateSubscriptionRequestOrBuilder extends */ boolean hasSubscription(); /** + * + * *
        * The updated subscription object.
        * 
    @@ -24,6 +29,8 @@ public interface UpdateSubscriptionRequestOrBuilder extends */ com.google.pubsub.v1.Subscription getSubscription(); /** + * + * *
        * The updated subscription object.
        * 
    @@ -33,6 +40,8 @@ public interface UpdateSubscriptionRequestOrBuilder extends com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder(); /** + * + * *
        * Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
    @@ -42,6 +51,8 @@ public interface UpdateSubscriptionRequestOrBuilder extends
        */
       boolean hasUpdateMask();
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
    @@ -51,6 +62,8 @@ public interface UpdateSubscriptionRequestOrBuilder extends
        */
       com.google.protobuf.FieldMask getUpdateMask();
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java
    index ba77db8ac8b5..66371d9bdc6f 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java
    @@ -4,29 +4,31 @@
     package com.google.pubsub.v1;
     
     /**
    + *
    + *
      * 
      * Request for the UpdateTopic method.
      * 
    * * Protobuf type {@code google.pubsub.v1.UpdateTopicRequest} */ -public final class UpdateTopicRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateTopicRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateTopicRequest) UpdateTopicRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateTopicRequest.newBuilder() to construct. private UpdateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateTopicRequest() { - } + + private UpdateTopicRequest() {} @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateTopicRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -46,67 +48,74 @@ private UpdateTopicRequest( case 0: done = true; break; - case 10: { - com.google.pubsub.v1.Topic.Builder subBuilder = null; - if (topic_ != null) { - subBuilder = topic_.toBuilder(); - } - topic_ = input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(topic_); - topic_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); + case 10: + { + com.google.pubsub.v1.Topic.Builder subBuilder = null; + if (topic_ != null) { + subBuilder = topic_.toBuilder(); + } + topic_ = input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topic_); + topic_ = subBuilder.buildPartial(); + } + + break; } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateTopicRequest.class, com.google.pubsub.v1.UpdateTopicRequest.Builder.class); + com.google.pubsub.v1.UpdateTopicRequest.class, + com.google.pubsub.v1.UpdateTopicRequest.Builder.class); } public static final int TOPIC_FIELD_NUMBER = 1; private com.google.pubsub.v1.Topic topic_; /** + * + * *
        * The updated topic object.
        * 
    @@ -117,6 +126,8 @@ public boolean hasTopic() { return topic_ != null; } /** + * + * *
        * The updated topic object.
        * 
    @@ -127,6 +138,8 @@ public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } /** + * + * *
        * The updated topic object.
        * 
    @@ -140,6 +153,8 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
        * Indicates which fields in the provided topic to update. Must be specified
        * and non-empty. Note that if `update_mask` contains
    @@ -154,6 +169,8 @@ public boolean hasUpdateMask() {
         return updateMask_ != null;
       }
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided topic to update. Must be specified
        * and non-empty. Note that if `update_mask` contains
    @@ -168,6 +185,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
         return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
       }
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided topic to update. Must be specified
        * and non-empty. Note that if `update_mask` contains
    @@ -183,6 +202,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
       }
     
       private byte memoizedIsInitialized = -1;
    +
       @java.lang.Override
       public final boolean isInitialized() {
         byte isInitialized = memoizedIsInitialized;
    @@ -194,8 +214,7 @@ public final boolean isInitialized() {
       }
     
       @java.lang.Override
    -  public void writeTo(com.google.protobuf.CodedOutputStream output)
    -                      throws java.io.IOException {
    +  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         if (topic_ != null) {
           output.writeMessage(1, getTopic());
         }
    @@ -212,12 +231,10 @@ public int getSerializedSize() {
     
         size = 0;
         if (topic_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(1, getTopic());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTopic());
         }
         if (updateMask_ != null) {
    -      size += com.google.protobuf.CodedOutputStream
    -        .computeMessageSize(2, getUpdateMask());
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
         }
         size += unknownFields.getSerializedSize();
         memoizedSize = size;
    @@ -227,7 +244,7 @@ public int getSerializedSize() {
       @java.lang.Override
       public boolean equals(final java.lang.Object obj) {
         if (obj == this) {
    -     return true;
    +      return true;
         }
         if (!(obj instanceof com.google.pubsub.v1.UpdateTopicRequest)) {
           return super.equals(obj);
    @@ -237,13 +254,11 @@ public boolean equals(final java.lang.Object obj) {
         boolean result = true;
         result = result && (hasTopic() == other.hasTopic());
         if (hasTopic()) {
    -      result = result && getTopic()
    -          .equals(other.getTopic());
    +      result = result && getTopic().equals(other.getTopic());
         }
         result = result && (hasUpdateMask() == other.hasUpdateMask());
         if (hasUpdateMask()) {
    -      result = result && getUpdateMask()
    -          .equals(other.getUpdateMask());
    +      result = result && getUpdateMask().equals(other.getUpdateMask());
         }
         result = result && unknownFields.equals(other.unknownFields);
         return result;
    @@ -269,118 +284,127 @@ public int hashCode() {
         return hash;
       }
     
    -  public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(
    -      java.nio.ByteBuffer data)
    +  public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(java.nio.ByteBuffer data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(
    -      java.nio.ByteBuffer data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data);
       }
    +
       public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(
    -      byte[] data,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return PARSER.parseFrom(data, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(java.io.InputStream input)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    -  public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom(java.io.InputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input);
    +
    +  public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom(
    +      java.io.InputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom(
    -      java.io.InputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
    +        PARSER, input, extensionRegistry);
       }
    +
       public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(
    -      com.google.protobuf.CodedInputStream input)
    -      throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input);
    +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
       }
    +
       public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
    -    return com.google.protobuf.GeneratedMessageV3
    -        .parseWithIOException(PARSER, input, extensionRegistry);
    +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
    +        PARSER, input, extensionRegistry);
       }
     
       @java.lang.Override
    -  public Builder newBuilderForType() { return newBuilder(); }
    +  public Builder newBuilderForType() {
    +    return newBuilder();
    +  }
    +
       public static Builder newBuilder() {
         return DEFAULT_INSTANCE.toBuilder();
       }
    +
       public static Builder newBuilder(com.google.pubsub.v1.UpdateTopicRequest prototype) {
         return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
       }
    +
       @java.lang.Override
       public Builder toBuilder() {
    -    return this == DEFAULT_INSTANCE
    -        ? new Builder() : new Builder().mergeFrom(this);
    +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
       }
     
       @java.lang.Override
    -  protected Builder newBuilderForType(
    -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       /**
    +   *
    +   *
        * 
        * Request for the UpdateTopic method.
        * 
    * * Protobuf type {@code google.pubsub.v1.UpdateTopicRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateTopicRequest) com.google.pubsub.v1.UpdateTopicRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.UpdateTopicRequest.class, com.google.pubsub.v1.UpdateTopicRequest.Builder.class); + com.google.pubsub.v1.UpdateTopicRequest.class, + com.google.pubsub.v1.UpdateTopicRequest.Builder.class); } // Construct using com.google.pubsub.v1.UpdateTopicRequest.newBuilder() @@ -388,16 +412,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } @java.lang.Override @@ -438,7 +461,8 @@ public com.google.pubsub.v1.UpdateTopicRequest build() { @java.lang.Override public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { - com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); + com.google.pubsub.v1.UpdateTopicRequest result = + new com.google.pubsub.v1.UpdateTopicRequest(this); if (topicBuilder_ == null) { result.topic_ = topic_; } else { @@ -457,38 +481,39 @@ public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateTopicRequest) { - return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest)other); + return mergeFrom((com.google.pubsub.v1.UpdateTopicRequest) other); } else { super.mergeFrom(other); return this; @@ -534,8 +559,13 @@ public Builder mergeFrom( private com.google.pubsub.v1.Topic topic_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicBuilder_; + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder> + topicBuilder_; /** + * + * *
          * The updated topic object.
          * 
    @@ -546,6 +576,8 @@ public boolean hasTopic() { return topicBuilder_ != null || topic_ != null; } /** + * + * *
          * The updated topic object.
          * 
    @@ -560,6 +592,8 @@ public com.google.pubsub.v1.Topic getTopic() { } } /** + * + * *
          * The updated topic object.
          * 
    @@ -580,14 +614,15 @@ public Builder setTopic(com.google.pubsub.v1.Topic value) { return this; } /** + * + * *
          * The updated topic object.
          * 
    * * .google.pubsub.v1.Topic topic = 1; */ - public Builder setTopic( - com.google.pubsub.v1.Topic.Builder builderForValue) { + public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); onChanged(); @@ -598,6 +633,8 @@ public Builder setTopic( return this; } /** + * + * *
          * The updated topic object.
          * 
    @@ -607,8 +644,7 @@ public Builder setTopic( public Builder mergeTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { if (topic_ != null) { - topic_ = - com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); + topic_ = com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); } else { topic_ = value; } @@ -620,6 +656,8 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { return this; } /** + * + * *
          * The updated topic object.
          * 
    @@ -638,6 +676,8 @@ public Builder clearTopic() { return this; } /** + * + * *
          * The updated topic object.
          * 
    @@ -645,11 +685,13 @@ public Builder clearTopic() { * .google.pubsub.v1.Topic topic = 1; */ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { - + onChanged(); return getTopicFieldBuilder().getBuilder(); } /** + * + * *
          * The updated topic object.
          * 
    @@ -660,11 +702,12 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { return topicBuilder_.getMessageOrBuilder(); } else { - return topic_ == null ? - com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; + return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } } /** + * + * *
          * The updated topic object.
          * 
    @@ -672,14 +715,16 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * .google.pubsub.v1.Topic topic = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder> getTopicFieldBuilder() { if (topicBuilder_ == null) { - topicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>( - getTopic(), - getParentForChildren(), - isClean()); + topicBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Topic, + com.google.pubsub.v1.Topic.Builder, + com.google.pubsub.v1.TopicOrBuilder>(getTopic(), getParentForChildren(), isClean()); topic_ = null; } return topicBuilder_; @@ -687,8 +732,13 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { private com.google.protobuf.FieldMask updateMask_ = null; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
          * Indicates which fields in the provided topic to update. Must be specified
          * and non-empty. Note that if `update_mask` contains
    @@ -703,6 +753,8 @@ public boolean hasUpdateMask() {
           return updateMaskBuilder_ != null || updateMask_ != null;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided topic to update. Must be specified
          * and non-empty. Note that if `update_mask` contains
    @@ -715,12 +767,16 @@ public boolean hasUpdateMask() {
          */
         public com.google.protobuf.FieldMask getUpdateMask() {
           if (updateMaskBuilder_ == null) {
    -        return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
    +        return updateMask_ == null
    +            ? com.google.protobuf.FieldMask.getDefaultInstance()
    +            : updateMask_;
           } else {
             return updateMaskBuilder_.getMessage();
           }
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided topic to update. Must be specified
          * and non-empty. Note that if `update_mask` contains
    @@ -745,6 +801,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided topic to update. Must be specified
          * and non-empty. Note that if `update_mask` contains
    @@ -755,8 +813,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
          *
          * .google.protobuf.FieldMask update_mask = 2;
          */
    -    public Builder setUpdateMask(
    -        com.google.protobuf.FieldMask.Builder builderForValue) {
    +    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
           if (updateMaskBuilder_ == null) {
             updateMask_ = builderForValue.build();
             onChanged();
    @@ -767,6 +824,8 @@ public Builder setUpdateMask(
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided topic to update. Must be specified
          * and non-empty. Note that if `update_mask` contains
    @@ -781,7 +840,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
           if (updateMaskBuilder_ == null) {
             if (updateMask_ != null) {
               updateMask_ =
    -            com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
    +              com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
             } else {
               updateMask_ = value;
             }
    @@ -793,6 +852,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided topic to update. Must be specified
          * and non-empty. Note that if `update_mask` contains
    @@ -815,6 +876,8 @@ public Builder clearUpdateMask() {
           return this;
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided topic to update. Must be specified
          * and non-empty. Note that if `update_mask` contains
    @@ -826,11 +889,13 @@ public Builder clearUpdateMask() {
          * .google.protobuf.FieldMask update_mask = 2;
          */
         public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
    -      
    +
           onChanged();
           return getUpdateMaskFieldBuilder().getBuilder();
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided topic to update. Must be specified
          * and non-empty. Note that if `update_mask` contains
    @@ -845,11 +910,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
           if (updateMaskBuilder_ != null) {
             return updateMaskBuilder_.getMessageOrBuilder();
           } else {
    -        return updateMask_ == null ?
    -            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
    +        return updateMask_ == null
    +            ? com.google.protobuf.FieldMask.getDefaultInstance()
    +            : updateMask_;
           }
         }
         /**
    +     *
    +     *
          * 
          * Indicates which fields in the provided topic to update. Must be specified
          * and non-empty. Note that if `update_mask` contains
    @@ -861,21 +929,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
          * .google.protobuf.FieldMask update_mask = 2;
          */
         private com.google.protobuf.SingleFieldBuilderV3<
    -        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
    +            com.google.protobuf.FieldMask,
    +            com.google.protobuf.FieldMask.Builder,
    +            com.google.protobuf.FieldMaskOrBuilder>
             getUpdateMaskFieldBuilder() {
           if (updateMaskBuilder_ == null) {
    -        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
    -            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
    -                getUpdateMask(),
    -                getParentForChildren(),
    -                isClean());
    +        updateMaskBuilder_ =
    +            new com.google.protobuf.SingleFieldBuilderV3<
    +                com.google.protobuf.FieldMask,
    +                com.google.protobuf.FieldMask.Builder,
    +                com.google.protobuf.FieldMaskOrBuilder>(
    +                getUpdateMask(), getParentForChildren(), isClean());
             updateMask_ = null;
           }
           return updateMaskBuilder_;
         }
    +
         @java.lang.Override
    -    public final Builder setUnknownFields(
    -        final com.google.protobuf.UnknownFieldSet unknownFields) {
    +    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
           return super.setUnknownFieldsProto3(unknownFields);
         }
     
    @@ -885,12 +956,12 @@ public final Builder mergeUnknownFields(
           return super.mergeUnknownFields(unknownFields);
         }
     
    -
         // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateTopicRequest)
       }
     
       // @@protoc_insertion_point(class_scope:google.pubsub.v1.UpdateTopicRequest)
       private static final com.google.pubsub.v1.UpdateTopicRequest DEFAULT_INSTANCE;
    +
       static {
         DEFAULT_INSTANCE = new com.google.pubsub.v1.UpdateTopicRequest();
       }
    @@ -899,16 +970,16 @@ public static com.google.pubsub.v1.UpdateTopicRequest getDefaultInstance() {
         return DEFAULT_INSTANCE;
       }
     
    -  private static final com.google.protobuf.Parser
    -      PARSER = new com.google.protobuf.AbstractParser() {
    -    @java.lang.Override
    -    public UpdateTopicRequest parsePartialFrom(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      return new UpdateTopicRequest(input, extensionRegistry);
    -    }
    -  };
    +  private static final com.google.protobuf.Parser PARSER =
    +      new com.google.protobuf.AbstractParser() {
    +        @java.lang.Override
    +        public UpdateTopicRequest parsePartialFrom(
    +            com.google.protobuf.CodedInputStream input,
    +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    +            throws com.google.protobuf.InvalidProtocolBufferException {
    +          return new UpdateTopicRequest(input, extensionRegistry);
    +        }
    +      };
     
       public static com.google.protobuf.Parser parser() {
         return PARSER;
    @@ -923,6 +994,4 @@ public com.google.protobuf.Parser getParserForType() {
       public com.google.pubsub.v1.UpdateTopicRequest getDefaultInstanceForType() {
         return DEFAULT_INSTANCE;
       }
    -
     }
    -
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java
    index a0f5b5c5e39e..2ad73ddb525c 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java
    @@ -3,11 +3,14 @@
     
     package com.google.pubsub.v1;
     
    -public interface UpdateTopicRequestOrBuilder extends
    +public interface UpdateTopicRequestOrBuilder
    +    extends
         // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateTopicRequest)
         com.google.protobuf.MessageOrBuilder {
     
       /**
    +   *
    +   *
        * 
        * The updated topic object.
        * 
    @@ -16,6 +19,8 @@ public interface UpdateTopicRequestOrBuilder extends */ boolean hasTopic(); /** + * + * *
        * The updated topic object.
        * 
    @@ -24,6 +29,8 @@ public interface UpdateTopicRequestOrBuilder extends */ com.google.pubsub.v1.Topic getTopic(); /** + * + * *
        * The updated topic object.
        * 
    @@ -33,6 +40,8 @@ public interface UpdateTopicRequestOrBuilder extends com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder(); /** + * + * *
        * Indicates which fields in the provided topic to update. Must be specified
        * and non-empty. Note that if `update_mask` contains
    @@ -45,6 +54,8 @@ public interface UpdateTopicRequestOrBuilder extends
        */
       boolean hasUpdateMask();
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided topic to update. Must be specified
        * and non-empty. Note that if `update_mask` contains
    @@ -57,6 +68,8 @@ public interface UpdateTopicRequestOrBuilder extends
        */
       com.google.protobuf.FieldMask getUpdateMask();
       /**
    +   *
    +   *
        * 
        * Indicates which fields in the provided topic to update. Must be specified
        * and non-empty. Note that if `update_mask` contains
    
    From 4c4b951790b12d199fd5ff582203fb3fe5873e97 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Wed, 5 Dec 2018 14:09:06 -0800
    Subject: [PATCH 0092/2363] Document purpose of test-jar and testlib
     dependencies (#4164)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml | 9 +++------
     1 file changed, 3 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 1d40e8490c0e..14b86e17e26f 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -51,12 +51,8 @@
           auto-value
           compile
         
    -    
    -      ${project.groupId}
    -      google-cloud-core
    -      test-jar
    -      test
    -    
    +
    +    
         
           junit
           junit
    @@ -82,6 +78,7 @@
           grpc-google-iam-v1
           test
         
    +    
         
           com.google.api
           gax-grpc
    
    From e2d698f903322b0593e61d1244b5fac32e600d18 Mon Sep 17 00:00:00 2001
    From: Yoshi Automation Bot
     <44816363+yoshi-automation@users.noreply.github.com>
    Date: Wed, 5 Dec 2018 14:24:05 -0800
    Subject: [PATCH 0093/2363] Regenerate pubsub client: Fix empty list returns
     (#4159)
    
    * Regenerate pubsub client
    
    * Fix the default maxInboundMessageSize config via synth
    ---
     .../cloud/pubsub/v1/stub/PublisherStubSettings.java | 13 ++++++-------
     .../pubsub/v1/stub/SubscriberStubSettings.java      | 13 ++++++-------
     java-pubsub/google-cloud-pubsub/synth.py            |  6 ++++++
     3 files changed, 18 insertions(+), 14 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    index 4214080d9433..612fbb6b44a9 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    @@ -292,7 +292,9 @@ public String extractNextToken(ListTopicsResponse payload) {
     
                 @Override
                 public Iterable extractResources(ListTopicsResponse payload) {
    -              return payload.getTopicsList();
    +              return payload.getTopicsList() != null
    +                  ? payload.getTopicsList()
    +                  : ImmutableList.of();
                 }
               };
     
    @@ -332,7 +334,9 @@ public String extractNextToken(ListTopicSubscriptionsResponse payload) {
     
                 @Override
                 public Iterable extractResources(ListTopicSubscriptionsResponse payload) {
    -              return payload.getSubscriptionsList();
    +              return payload.getSubscriptionsList() != null
    +                  ? payload.getSubscriptionsList()
    +                  : ImmutableList.of();
                 }
               };
     
    @@ -476,11 +480,6 @@ public static class Builder extends StubSettings.BuildernewArrayList(
                       StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
    -      definitions.put(
    -          "http_get",
    -          ImmutableSet.copyOf(
    -              Lists.newArrayList(
    -                  StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
           definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList()));
           definitions.put(
               "one_plus_delivery",
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    index 7072eb0a55eb..d66dca70da74 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    @@ -355,7 +355,9 @@ public String extractNextToken(ListSubscriptionsResponse payload) {
     
                 @Override
                 public Iterable extractResources(ListSubscriptionsResponse payload) {
    -              return payload.getSubscriptionsList();
    +              return payload.getSubscriptionsList() != null
    +                  ? payload.getSubscriptionsList()
    +                  : ImmutableList.of();
                 }
               };
     
    @@ -389,7 +391,9 @@ public String extractNextToken(ListSnapshotsResponse payload) {
     
                 @Override
                 public Iterable extractResources(ListSnapshotsResponse payload) {
    -              return payload.getSnapshotsList();
    +              return payload.getSnapshotsList() != null
    +                  ? payload.getSnapshotsList()
    +                  : ImmutableList.of();
                 }
               };
     
    @@ -484,11 +488,6 @@ public static class Builder extends StubSettings.BuildernewArrayList(
    -                  StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
           definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList()));
           RETRYABLE_CODE_DEFINITIONS = definitions.build();
         }
    diff --git a/java-pubsub/google-cloud-pubsub/synth.py b/java-pubsub/google-cloud-pubsub/synth.py
    index f8862c71e023..0601c96b8bb0 100644
    --- a/java-pubsub/google-cloud-pubsub/synth.py
    +++ b/java-pubsub/google-cloud-pubsub/synth.py
    @@ -35,6 +35,12 @@
       s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src')
       s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src')
     
    +  s.replace(
    +      '**/stub/SubscriberStubSettings.java',
    +      r'return InstantiatingGrpcChannelProvider\.newBuilder\(\);',
    +      'return InstantiatingGrpcChannelProvider.newBuilder().setMaxInboundMessageSize(20 << 20); // 20MB'
    +  )
    +
       java.format_code('./src')
       java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src')
       java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src')
    
    From 4b2a02bf5f423ac303fda989a1810cdc37d52cae Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Thu, 6 Dec 2018 16:31:48 -0800
    Subject: [PATCH 0094/2363] Release google-cloud-java v0.73.0 (#4191)
    
    * Release v0.73.0
    
    * Fix version replacements
    
    * Move Spanner to GA section
    
    * Fix doclint option
    
    * Fix pom issues for Bigtable emulator
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index 4ed71cffa838..bb1bee817c70 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.54.0
    +  1.55.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.54.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.55.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.54.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.55.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 14b86e17e26f..9f59e0647f5a 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.54.1-SNAPSHOT
    +  1.55.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.72.1-alpha-SNAPSHOT
    +    0.73.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index b307245e6b89..c12d03524442 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.36.1-SNAPSHOT
    +  1.37.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.37.1-SNAPSHOT
    +    0.38.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 32ed8d9258f6..dd2da24502f2 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.36.1-SNAPSHOT
    +  1.37.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.37.1-SNAPSHOT
    +    0.38.0
       
       
         
    
    From 85a7162180081b5166d6baa7251fe4c92249292e Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Thu, 6 Dec 2018 16:38:05 -0800
    Subject: [PATCH 0095/2363] Bump next snapshot (#4192)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 9f59e0647f5a..907c17624785 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.55.0
    +  1.55.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.73.0-alpha
    +    0.73.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index c12d03524442..3e4eb5d05e51 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.37.0
    +  1.37.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.38.0
    +    0.38.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index dd2da24502f2..f68febfece2b 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.37.0
    +  1.37.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.38.0
    +    0.38.1-SNAPSHOT
       
       
         
    
    From f05d84c8f6e9f7f8a78756243b7c615a50f07394 Mon Sep 17 00:00:00 2001
    From: Yoshi Automation Bot
     <44816363+yoshi-automation@users.noreply.github.com>
    Date: Fri, 7 Dec 2018 09:47:03 -0800
    Subject: [PATCH 0096/2363] Add Pub/Sub synth.metadata (#4194)
    
    ---
     .../google-cloud-pubsub/synth.metadata        | 32 +++++++++++++++++++
     1 file changed, 32 insertions(+)
     create mode 100644 java-pubsub/google-cloud-pubsub/synth.metadata
    
    diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata
    new file mode 100644
    index 000000000000..3c2ad1f85029
    --- /dev/null
    +++ b/java-pubsub/google-cloud-pubsub/synth.metadata
    @@ -0,0 +1,32 @@
    +{
    +  "updateTime": "2018-12-07T08:45:57.038583Z",
    +  "sources": [
    +    {
    +      "generator": {
    +        "name": "artman",
    +        "version": "0.16.2",
    +        "dockerImage": "googleapis/artman@sha256:2f6b261ee7fe1aedf238991c93a20b3820de37a343d0cacf3e3e9555c2aaf2ea"
    +      }
    +    },
    +    {
    +      "git": {
    +        "name": "googleapis",
    +        "remote": "https://github.com/googleapis/googleapis.git",
    +        "sha": "200fbbe59cc7b0077ae525eb5f3d6420c0c53e61",
    +        "internalRef": "224174014"
    +      }
    +    }
    +  ],
    +  "destinations": [
    +    {
    +      "client": {
    +        "source": "googleapis",
    +        "apiName": "pubsub",
    +        "apiVersion": "v1",
    +        "language": "java",
    +        "generator": "gapic",
    +        "config": "google/pubsub/artman_pubsub.yaml"
    +      }
    +    }
    +  ]
    +}
    \ No newline at end of file
    
    From f38bda109e29c5a3276ba0d8d56b4a12b9fe652a Mon Sep 17 00:00:00 2001
    From: johnfmikhail <45800794+johnfmikhail@users.noreply.github.com>
    Date: Wed, 12 Dec 2018 18:11:39 -0500
    Subject: [PATCH 0097/2363] Pubsub: Test for blocking push subscriptions for
     vpc-sc enabled projects (#4214)
    
    ---
     .../google/cloud/pubsub/it/ITPubSubTest.java  | 31 +++++++++++++++++++
     1 file changed, 31 insertions(+)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java
    index 61e04c666796..e1094ec93cd2 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java
    @@ -17,7 +17,9 @@
     package com.google.cloud.pubsub.it;
     
     import static com.google.common.truth.Truth.assertThat;
    +import static org.junit.Assume.assumeTrue;
     
    +import com.google.api.gax.rpc.PermissionDeniedException;
     import com.google.auto.value.AutoValue;
     import com.google.cloud.ServiceOptions;
     import com.google.cloud.pubsub.v1.AckReplyConsumer;
    @@ -40,6 +42,7 @@
     import java.util.concurrent.BlockingQueue;
     import java.util.concurrent.LinkedBlockingQueue;
     import java.util.concurrent.TimeUnit;
    +import junit.framework.Assert;
     import org.junit.AfterClass;
     import org.junit.BeforeClass;
     import org.junit.Rule;
    @@ -52,6 +55,9 @@ public class ITPubSubTest {
       private static TopicAdminClient topicAdminClient;
       private static SubscriptionAdminClient subscriptionAdminClient;
       private static String projectId;
    +  private static final boolean IS_VPC_TEST =
    +      System.getenv("GOOGLE_CLOUD_TESTS_IN_VPCSC") != null
    +          && System.getenv("GOOGLE_CLOUD_TESTS_IN_VPCSC").equalsIgnoreCase("true");
     
       @Rule public Timeout globalTimeout = Timeout.seconds(300);
     
    @@ -107,6 +113,31 @@ public void testTopicPolicy() {
         topicAdminClient.deleteTopic(topicName);
       }
     
    +  @Test
    +  public void testVPCPushSubscriber() throws Exception {
    +    assumeTrue(IS_VPC_TEST);
    +    ProjectTopicName topicName =
    +        ProjectTopicName.of(projectId, formatForTest("testing-vpc-push-subscriber-topic"));
    +    ProjectSubscriptionName subscriptionName =
    +        ProjectSubscriptionName.of(
    +            projectId, formatForTest("testing-vpc-push-subscriber-subscription"));
    +    topicAdminClient.createTopic(topicName);
    +
    +    try {
    +      subscriptionAdminClient.createSubscription(
    +          subscriptionName,
    +          topicName,
    +          PushConfig.newBuilder().setPushEndpoint("random_point").build(),
    +          10);
    +      subscriptionAdminClient.deleteSubscription(subscriptionName);
    +      Assert.fail("No exception raised");
    +    } catch (PermissionDeniedException e) {
    +      // expected
    +    }
    +
    +    topicAdminClient.deleteTopic(topicName);
    +  }
    +
       @Test
       public void testPublishSubscribe() throws Exception {
         ProjectTopicName topicName =
    
    From 47eff0e3f066553e1d3e1f5523aec1c4f39ffbf9 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Thu, 13 Dec 2018 15:10:31 -0800
    Subject: [PATCH 0098/2363] Release v0.74.0 (#4222)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index bb1bee817c70..ce4754e16275 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.55.0
    +  1.56.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.55.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.56.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.55.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.56.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 907c17624785..b5d331cc7e20 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.55.1-SNAPSHOT
    +  1.56.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.73.1-alpha-SNAPSHOT
    +    0.74.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 3e4eb5d05e51..79a671894091 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.37.1-SNAPSHOT
    +  1.38.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.38.1-SNAPSHOT
    +    0.39.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index f68febfece2b..f8347408a977 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.37.1-SNAPSHOT
    +  1.38.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.38.1-SNAPSHOT
    +    0.39.0
       
       
         
    
    From 9d0d70181feb1375ae666ac1861617ebac8ae217 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Thu, 13 Dec 2018 16:26:54 -0800
    Subject: [PATCH 0099/2363] Bump next snapshot (#4224)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index b5d331cc7e20..48515dd7e226 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.56.0
    +  1.56.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.74.0-alpha
    +    0.74.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 79a671894091..9e043550a949 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.38.0
    +  1.38.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.39.0
    +    0.39.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index f8347408a977..242a13d85317 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.38.0
    +  1.38.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.39.0
    +    0.39.1-SNAPSHOT
       
       
         
    
    From 8c0998d5371f71a673287bcb1ff1e8fee2c676db Mon Sep 17 00:00:00 2001
    From: charlesliqlogic <45208557+charlesliqlogic@users.noreply.github.com>
    Date: Wed, 2 Jan 2019 12:51:26 -0500
    Subject: [PATCH 0100/2363] Pub/Sub: Add message abandonment (#4250)
    
    * add abandonment
    
    * add unit test for abandon
    
    * update forget() to stop extending deadline
    ---
     .../com/google/cloud/pubsub/v1/AckReplyConsumer.java   |  2 ++
     .../com/google/cloud/pubsub/v1/MessageDispatcher.java  | 10 ++++++++++
     .../google/cloud/pubsub/v1/MessageDispatcherTest.java  |  8 ++++++++
     3 files changed, 20 insertions(+)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java
    index 9fd9bc837c5c..b3989fc974cb 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java
    @@ -29,4 +29,6 @@ public interface AckReplyConsumer {
        * message.
        */
       void nack();
    +
    +  void abandon();
     }
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    index 5f5ebbaee204..6586dc68e535 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    @@ -133,6 +133,7 @@ private class AckHandler implements ApiFutureCallback {
         private final int outstandingBytes;
         private final long receivedTimeMillis;
         private final Instant totalExpiration;
    +    private boolean extending = true;
     
         AckHandler(String ackId, int outstandingBytes, Instant totalExpiration) {
           this.ackId = ackId;
    @@ -151,6 +152,7 @@ private void forget() {
              */
             return;
           }
    +      extending = false;
           flowController.release(1, outstandingBytes);
           messagesWaiter.incrementPendingMessages(-1);
           processOutstandingBatches();
    @@ -417,6 +419,11 @@ public void ack() {
                 public void nack() {
                   response.set(AckReply.NACK);
                 }
    +
    +            @Override
    +            public void abandon() {
    +              ackHandler.forget();
    +            }
               };
           ApiFutures.addCallback(response, ackHandler, MoreExecutors.directExecutor());
           executor.execute(
    @@ -471,6 +478,9 @@ void extendDeadlines() {
         Instant extendTo = now.plusSeconds(extendSeconds);
     
         for (Map.Entry entry : pendingMessages.entrySet()) {
    +      if (!entry.getValue().extending) {
    +        continue;
    +      }
           String ackId = entry.getKey();
           Instant totalExpiration = entry.getValue().totalExpiration;
           if (totalExpiration.isAfter(extendTo)) {
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java
    index 785368bb13cb..2bd2a518bfef 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java
    @@ -148,6 +148,14 @@ public void testNack() throws Exception {
         assertThat(sentModAcks).contains(ModAckItem.of(TEST_MESSAGE.getAckId(), 0));
       }
     
    +  @Test
    +  public void testAbandon() throws Exception {
    +    dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE);
    +    consumers.take().abandon();
    +    dispatcher.extendDeadlines();
    +    assertThat(sentModAcks).doesNotContain(TEST_MESSAGE.getAckId());
    +  }
    +
       @Test
       public void testExtension() throws Exception {
         dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE);
    
    From e3a5e66440feccf87d19db0b9a39c3b8cccc15f8 Mon Sep 17 00:00:00 2001
    From: kolea2 <45548808+kolea2@users.noreply.github.com>
    Date: Thu, 3 Jan 2019 17:15:46 -0500
    Subject: [PATCH 0101/2363] Release v0.75.0 (#4282)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index ce4754e16275..b79c15552464 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.56.0
    +  1.57.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.56.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.57.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.56.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.57.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 48515dd7e226..f39739cd151b 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.56.1-SNAPSHOT
    +  1.57.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.74.1-alpha-SNAPSHOT
    +    0.75.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 9e043550a949..0d6c3caf7d1a 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.38.1-SNAPSHOT
    +  1.39.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.39.1-SNAPSHOT
    +    0.40.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 242a13d85317..af419baf5260 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.38.1-SNAPSHOT
    +  1.39.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.39.1-SNAPSHOT
    +    0.40.0
       
       
         
    
    From 5732c8c8de6fac3b1367a5def2e7e46dd134d2b8 Mon Sep 17 00:00:00 2001
    From: kolea2 <45548808+kolea2@users.noreply.github.com>
    Date: Thu, 3 Jan 2019 17:46:17 -0500
    Subject: [PATCH 0102/2363] Bump next snapshot (#4286)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index f39739cd151b..842adfebff05 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.57.0
    +  1.57.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.75.0-alpha
    +    0.75.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 0d6c3caf7d1a..2b6c9f20a12f 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.39.0
    +  1.39.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.40.0
    +    0.40.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index af419baf5260..438c7aa5305f 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.39.0
    +  1.39.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.40.0
    +    0.40.1-SNAPSHOT
       
       
         
    
    From a830108ffe6ae169435f1d8199792ec42e33f50b Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Mon, 7 Jan 2019 11:05:08 -0800
    Subject: [PATCH 0103/2363] Revert "Pub/Sub: Add message abandonment (#4250)"
     (#4297)
    
    This reverts commit 8c0998d5371f71a673287bcb1ff1e8fee2c676db.
    ---
     .../com/google/cloud/pubsub/v1/AckReplyConsumer.java   |  2 --
     .../com/google/cloud/pubsub/v1/MessageDispatcher.java  | 10 ----------
     .../google/cloud/pubsub/v1/MessageDispatcherTest.java  |  8 --------
     3 files changed, 20 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java
    index b3989fc974cb..9fd9bc837c5c 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java
    @@ -29,6 +29,4 @@ public interface AckReplyConsumer {
        * message.
        */
       void nack();
    -
    -  void abandon();
     }
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    index 6586dc68e535..5f5ebbaee204 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    @@ -133,7 +133,6 @@ private class AckHandler implements ApiFutureCallback {
         private final int outstandingBytes;
         private final long receivedTimeMillis;
         private final Instant totalExpiration;
    -    private boolean extending = true;
     
         AckHandler(String ackId, int outstandingBytes, Instant totalExpiration) {
           this.ackId = ackId;
    @@ -152,7 +151,6 @@ private void forget() {
              */
             return;
           }
    -      extending = false;
           flowController.release(1, outstandingBytes);
           messagesWaiter.incrementPendingMessages(-1);
           processOutstandingBatches();
    @@ -419,11 +417,6 @@ public void ack() {
                 public void nack() {
                   response.set(AckReply.NACK);
                 }
    -
    -            @Override
    -            public void abandon() {
    -              ackHandler.forget();
    -            }
               };
           ApiFutures.addCallback(response, ackHandler, MoreExecutors.directExecutor());
           executor.execute(
    @@ -478,9 +471,6 @@ void extendDeadlines() {
         Instant extendTo = now.plusSeconds(extendSeconds);
     
         for (Map.Entry entry : pendingMessages.entrySet()) {
    -      if (!entry.getValue().extending) {
    -        continue;
    -      }
           String ackId = entry.getKey();
           Instant totalExpiration = entry.getValue().totalExpiration;
           if (totalExpiration.isAfter(extendTo)) {
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java
    index 2bd2a518bfef..785368bb13cb 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java
    @@ -148,14 +148,6 @@ public void testNack() throws Exception {
         assertThat(sentModAcks).contains(ModAckItem.of(TEST_MESSAGE.getAckId(), 0));
       }
     
    -  @Test
    -  public void testAbandon() throws Exception {
    -    dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE);
    -    consumers.take().abandon();
    -    dispatcher.extendDeadlines();
    -    assertThat(sentModAcks).doesNotContain(TEST_MESSAGE.getAckId());
    -  }
    -
       @Test
       public void testExtension() throws Exception {
         dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE);
    
    From 33d1afaae04e042180a8b0ad29c20949a3c27185 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Mon, 7 Jan 2019 16:22:41 -0800
    Subject: [PATCH 0104/2363] Release v0.76.0 (#4298)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index b79c15552464..c0550d5f0240 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.57.0
    +  1.58.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.57.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.58.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.57.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.58.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 842adfebff05..af186cc14c99 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.57.1-SNAPSHOT
    +  1.58.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.75.1-alpha-SNAPSHOT
    +    0.76.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 2b6c9f20a12f..44cf7dc331bd 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.39.1-SNAPSHOT
    +  1.40.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.40.1-SNAPSHOT
    +    0.41.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 438c7aa5305f..42a4e9a4a419 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.39.1-SNAPSHOT
    +  1.40.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.40.1-SNAPSHOT
    +    0.41.0
       
       
         
    
    From 7ff562d3f175e1d0239073e2f6c67d28263dd823 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Tue, 8 Jan 2019 08:50:39 -0800
    Subject: [PATCH 0105/2363] Bump next snapshot (#4300)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index af186cc14c99..6458665c3f49 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.58.0
    +  1.58.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.76.0-alpha
    +    0.76.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 44cf7dc331bd..8d6f2b58053f 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.40.0
    +  1.40.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.41.0
    +    0.41.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 42a4e9a4a419..a49627941656 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.40.0
    +  1.40.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.41.0
    +    0.41.1-SNAPSHOT
       
       
         
    
    From 5f0a412652e9e147e24f5049ba16f2029756d5a5 Mon Sep 17 00:00:00 2001
    From: Yoshi Automation Bot
     <44816363+yoshi-automation@users.noreply.github.com>
    Date: Wed, 9 Jan 2019 16:30:32 -0800
    Subject: [PATCH 0106/2363] Regenerate PubSub: documentation updates (#4293)
    
    ---
     .../pubsub/v1/SubscriptionAdminClient.java    | 362 +++++++++++-------
     .../cloud/pubsub/v1/TopicAdminClient.java     |  12 +-
     .../google-cloud-pubsub/synth.metadata        |  10 +-
     .../com/google/pubsub/v1/PublisherGrpc.java   |  48 ++-
     .../com/google/pubsub/v1/SubscriberGrpc.java  | 272 +++++++++----
     .../pubsub/v1/CreateSnapshotRequest.java      |  58 ++-
     .../v1/CreateSnapshotRequestOrBuilder.java    |  21 +-
     .../pubsub/v1/DeleteSnapshotRequest.java      |   4 +-
     .../google/pubsub/v1/GetSnapshotRequest.java  |   4 +-
     .../pubsub/v1/ListSnapshotsRequest.java       |   4 +-
     .../pubsub/v1/ListSnapshotsResponse.java      |   4 +-
     .../pubsub/v1/ListTopicSnapshotsRequest.java  |   8 +-
     .../pubsub/v1/ListTopicSnapshotsResponse.java |   4 +-
     .../pubsub/v1/MessageStoragePolicy.java       |  52 +--
     .../v1/MessageStoragePolicyOrBuilder.java     |  16 +-
     .../pubsub/v1/ModifyAckDeadlineRequest.java   |  20 +-
     .../v1/ModifyAckDeadlineRequestOrBuilder.java |   5 +-
     .../com/google/pubsub/v1/PubsubMessage.java   |  16 +-
     .../com/google/pubsub/v1/PubsubProto.java     |   5 +-
     .../com/google/pubsub/v1/SeekRequest.java     |   8 +-
     .../java/com/google/pubsub/v1/Snapshot.java   |  51 ++-
     .../google/pubsub/v1/SnapshotOrBuilder.java   |  15 +-
     .../com/google/pubsub/v1/Subscription.java    | 125 +++---
     .../pubsub/v1/SubscriptionOrBuilder.java      |  38 +-
     .../main/java/com/google/pubsub/v1/Topic.java |  33 +-
     .../com/google/pubsub/v1/TopicOrBuilder.java  |  15 +-
     .../pubsub/v1/UpdateSnapshotRequest.java      |   4 +-
     .../main/proto/google/pubsub/v1/pubsub.proto  | 163 +++++---
     28 files changed, 885 insertions(+), 492 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    index 6e7b3ac7f973..75046eeeacb6 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    @@ -195,15 +195,15 @@ public SubscriberStub getStub() {
       // AUTO-GENERATED DOCUMENTATION AND METHOD
       /**
        * Creates a subscription to a given topic. See the <a
    -   * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. If the subscription
    -   * already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns
    -   * `NOT_FOUND`.
    +   * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name
    +   * rules</a>. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated - * in the returned Subscription object. Note that for REST API requests, you must specify a name - * in the request. + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. * *

    Sample code: * @@ -228,10 +228,11 @@ public SubscriberStub getStub() { * @param 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. - * @param ackDeadlineSeconds This value is the maximum time after a subscriber receives a message - * before the subscriber should acknowledge the message. After message delivery but before the - * ack deadline expires and before the message is acknowledged, it is an outstanding message - * and will not be delivered again during that time (on a best-effort basis). + * @param ackDeadlineSeconds 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 + * <i>outstanding</i>. 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 @@ -263,15 +264,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates a subscription to a given topic. See the <a - * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. If the subscription - * already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns - * `NOT_FOUND`. + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated - * in the returned Subscription object. Note that for REST API requests, you must specify a name - * in the request. + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. * *

    Sample code: * @@ -296,10 +297,11 @@ public final Subscription createSubscription( * @param 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. - * @param ackDeadlineSeconds This value is the maximum time after a subscriber receives a message - * before the subscriber should acknowledge the message. After message delivery but before the - * ack deadline expires and before the message is acknowledged, it is an outstanding message - * and will not be delivered again during that time (on a best-effort basis). + * @param ackDeadlineSeconds 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 + * <i>outstanding</i>. 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 @@ -328,15 +330,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates a subscription to a given topic. See the <a - * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. If the subscription - * already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns - * `NOT_FOUND`. + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated - * in the returned Subscription object. Note that for REST API requests, you must specify a name - * in the request. + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. * *

    Sample code: * @@ -362,15 +364,15 @@ public final Subscription createSubscription(Subscription request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates a subscription to a given topic. See the <a - * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. If the subscription - * already exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns - * `NOT_FOUND`. + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated - * in the returned Subscription object. Note that for REST API requests, you must specify a name - * in the request. + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. * *

    Sample code: * @@ -816,9 +818,11 @@ public final UnaryCallable deleteSubscriptionC * @param ackIds List of acknowledgment IDs. * @param ackDeadlineSeconds 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 may immediately make - * the message available for another pull request. The minimum deadline you can specify is 0 - * seconds. The maximum deadline you can specify is 600 seconds (10 minutes). + * 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). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final void modifyAckDeadline( @@ -856,9 +860,11 @@ public final UnaryCallable deleteSubscriptionC * @param ackIds List of acknowledgment IDs. * @param ackDeadlineSeconds 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 may immediately make - * the message available for another pull request. The minimum deadline you can specify is 0 - * seconds. The maximum deadline you can specify is 600 seconds (10 minutes). + * 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). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final void modifyAckDeadline( @@ -1352,9 +1358,13 @@ public final UnaryCallable modifyPushConfigCalla // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots.<br><br> <b>ALPHA:</b> This feature is - * part of an 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. + * Lists the existing snapshots. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. * *

    Sample code: * @@ -1381,9 +1391,13 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots.<br><br> <b>ALPHA:</b> This feature is - * part of an 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. + * Lists the existing snapshots. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. * *

    Sample code: * @@ -1407,9 +1421,13 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots.<br><br> <b>ALPHA:</b> This feature is - * part of an 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. + * Lists the existing snapshots. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. * *

    Sample code: * @@ -1434,9 +1452,13 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots.<br><br> <b>ALPHA:</b> This feature is - * part of an 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. + * Lists the existing snapshots. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. * *

    Sample code: * @@ -1461,9 +1483,13 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots.<br><br> <b>ALPHA:</b> This feature is - * part of an 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. + * Lists the existing snapshots. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. * *

    Sample code: * @@ -1494,18 +1520,21 @@ public final UnaryCallable listSnap // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription.<br><br> - * <b>ALPHA:</b> This feature is part of an 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.<br><br> 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated - * in the returned Snapshot object. Note that for REST API requests, you must specify a name in - * the request. + * Creates a snapshot from the requested subscription. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * <br><br> <b>BETA:</b> This feature is part of a beta 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.<br><br> 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. * *

    Sample code: * @@ -1520,8 +1549,8 @@ public final UnaryCallable listSnap * @param name Optional 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 <a - * href="/pubsub/docs/admin#resource_names">resource name rules</a>. Format is - * `projects/{project}/snapshots/{snap}`. + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. * @param subscription 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 @@ -1543,18 +1572,21 @@ public final Snapshot createSnapshot( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription.<br><br> - * <b>ALPHA:</b> This feature is part of an 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.<br><br> 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated - * in the returned Snapshot object. Note that for REST API requests, you must specify a name in - * the request. + * Creates a snapshot from the requested subscription. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * <br><br> <b>BETA:</b> This feature is part of a beta 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.<br><br> 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. * *

    Sample code: * @@ -1569,8 +1601,8 @@ public final Snapshot createSnapshot( * @param name Optional 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 <a - * href="/pubsub/docs/admin#resource_names">resource name rules</a>. Format is - * `projects/{project}/snapshots/{snap}`. + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. * @param subscription 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 @@ -1588,18 +1620,21 @@ public final Snapshot createSnapshot(String name, String subscription) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription.<br><br> - * <b>ALPHA:</b> This feature is part of an 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.<br><br> 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated - * in the returned Snapshot object. Note that for REST API requests, you must specify a name in - * the request. + * Creates a snapshot from the requested subscription. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * <br><br> <b>BETA:</b> This feature is part of a beta 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.<br><br> 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. * *

    Sample code: * @@ -1624,18 +1659,21 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription.<br><br> - * <b>ALPHA:</b> This feature is part of an 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.<br><br> 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](https://cloud.google.com/pubsub/docs/overview#names). The generated name is populated - * in the returned Snapshot object. Note that for REST API requests, you must specify a name in - * the request. + * Creates a snapshot from the requested subscription. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * <br><br> <b>BETA:</b> This feature is part of a beta 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.<br><br> 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. * *

    Sample code: * @@ -1659,10 +1697,14 @@ public final UnaryCallable createSnapshotCallab // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates an existing snapshot.<br><br> <b>ALPHA:</b> This feature is - * part of an 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. Note that - * certain properties of a snapshot are not modifiable. + * Updates an existing snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. Note that certain properties of a + * snapshot are not modifiable. * *

    Sample code: * @@ -1697,10 +1739,14 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates an existing snapshot.<br><br> <b>ALPHA:</b> This feature is - * part of an 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. Note that - * certain properties of a snapshot are not modifiable. + * Updates an existing snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. Note that certain properties of a + * snapshot are not modifiable. * *

    Sample code: * @@ -1734,13 +1780,16 @@ public final UnaryCallable updateSnapshotCallab // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. <br><br> <b>ALPHA:</b> This feature is - * part of an 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. When the - * snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a - * snapshot is deleted, a new one may be created with the same name, but the new one has no - * association with the old snapshot or its subscription, unless the same subscription is - * specified. + * Removes an existing snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. * *

    Sample code: * @@ -1766,13 +1815,16 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. <br><br> <b>ALPHA:</b> This feature is - * part of an 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. When the - * snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a - * snapshot is deleted, a new one may be created with the same name, but the new one has no - * association with the old snapshot or its subscription, unless the same subscription is - * specified. + * Removes an existing snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. * *

    Sample code: * @@ -1796,13 +1848,16 @@ public final void deleteSnapshot(String snapshot) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. <br><br> <b>ALPHA:</b> This feature is - * part of an 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. When the - * snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a - * snapshot is deleted, a new one may be created with the same name, but the new one has no - * association with the old snapshot or its subscription, unless the same subscription is - * specified. + * Removes an existing snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. * *

    Sample code: * @@ -1825,13 +1880,16 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. <br><br> <b>ALPHA:</b> This feature is - * part of an 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. When the - * snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a - * snapshot is deleted, a new one may be created with the same name, but the new one has no - * association with the old snapshot or its subscription, unless the same subscription is - * specified. + * Removes an existing snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. * *

    Sample code: * @@ -1854,9 +1912,14 @@ public final UnaryCallable deleteSnapshotCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided - * in the request.<br><br> <b>ALPHA:</b> This feature is part of an 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. + * in the request. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. Note that + * both the subscription and the snapshot must be on the same topic.<br><br> + * <b>BETA:</b> This feature is part of a beta 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. * *

    Sample code: * @@ -1880,9 +1943,14 @@ public final SeekResponse seek(SeekRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided - * in the request.<br><br> <b>ALPHA:</b> This feature is part of an 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. + * in the request. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. Note that + * both the subscription and the snapshot must be on the same topic.<br><br> + * <b>BETA:</b> This feature is part of a beta 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. * *

    Sample code: * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 073e1f2750c1..0f497ce565a2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -177,7 +177,8 @@ public PublisherStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates the given topic with the given name. See the <a - * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. * *

    Sample code: * @@ -204,7 +205,8 @@ public final Topic createTopic(ProjectTopicName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates the given topic with the given name. See the <a - * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. * *

    Sample code: * @@ -231,7 +233,8 @@ public final Topic createTopic(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates the given topic with the given name. See the <a - * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. * *

    Sample code: * @@ -255,7 +258,8 @@ public final Topic createTopic(Topic request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Creates the given topic with the given name. See the <a - * href="/pubsub/docs/admin#resource_names"> resource name rules</a>. + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. * *

    Sample code: * diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index 3c2ad1f85029..05048bef9909 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2018-12-07T08:45:57.038583Z", + "updateTime": "2019-01-05T08:46:07.715668Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.2", - "dockerImage": "googleapis/artman@sha256:2f6b261ee7fe1aedf238991c93a20b3820de37a343d0cacf3e3e9555c2aaf2ea" + "version": "0.16.4", + "dockerImage": "googleapis/artman@sha256:8b45fae963557c3299921037ecbb86f0689f41b1b4aea73408ebc50562cb2857" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "200fbbe59cc7b0077ae525eb5f3d6420c0c53e61", - "internalRef": "224174014" + "sha": "a111a53c0c6722afcd793b64724ceef7862db5b9", + "internalRef": "227896184" } } ], diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 184216ee2412..33d1e71762f8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -462,7 +462,8 @@ public abstract static class PublisherImplBase implements io.grpc.BindableServic * *

          * Creates the given topic with the given name. See the
    -     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    +     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    +     * resource name rules</a>.
          * 
    */ public void createTopic( @@ -543,8 +544,13 @@ public void listTopicSubscriptions( * * *
    -     * Lists the names of the snapshots on this topic.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Lists the names of the snapshots on this topic. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -656,7 +662,8 @@ protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callO * *
          * Creates the given topic with the given name. See the
    -     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    +     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    +     * resource name rules</a>.
          * 
    */ public void createTopic( @@ -755,8 +762,13 @@ public void listTopicSubscriptions( * * *
    -     * Lists the names of the snapshots on this topic.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Lists the names of the snapshots on this topic. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -821,7 +833,8 @@ protected PublisherBlockingStub build( * *
          * Creates the given topic with the given name. See the
    -     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    +     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    +     * resource name rules</a>.
          * 
    */ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { @@ -896,8 +909,13 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription * * *
    -     * Lists the names of the snapshots on this topic.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Lists the names of the snapshots on this topic. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -953,7 +971,8 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
          * Creates the given topic with the given name. See the
    -     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    +     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    +     * resource name rules</a>.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -1035,8 +1054,13 @@ public com.google.common.util.concurrent.ListenableFuture - * Lists the names of the snapshots on this topic.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * Lists the names of the snapshots on this topic. Snapshots are used in + * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> + * 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.<br><br> + * <b>BETA:</b> This feature is part of a beta 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. *
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index ad439b0be39d..0e6414fd4823 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -862,13 +862,14 @@ public abstract static class SubscriberImplBase implements io.grpc.BindableServi * *
          * Creates a subscription to a given topic. See the
    -     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    +     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    +     * resource name rules</a>.
          * 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](https://cloud.google.com/pubsub/docs/overview#names).
    +     * [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names).
          * The generated name is populated in the returned Subscription object.
          * Note that for REST API requests, you must specify a name in the request.
          * 
    @@ -1026,8 +1027,12 @@ public void modifyPushConfig( * * *
    -     * Gets the configuration details of a snapshot.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Gets the configuration details of a snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -1042,8 +1047,13 @@ public void getSnapshot( * * *
    -     * Lists the existing snapshots.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Lists the existing snapshots. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -1058,8 +1068,14 @@ public void listSnapshots( * * *
    -     * Creates a snapshot from the requested subscription.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Creates a snapshot from the requested subscription. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.
    +     * <br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.<br><br>
          * If the snapshot already exists, returns `ALREADY_EXISTS`.
    @@ -1069,10 +1085,10 @@ public void listSnapshots(
          * 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](https://cloud.google.com/pubsub/docs/overview#names).
    -     * The generated
    -     * name is populated in the returned Snapshot object. Note that for REST API
    -     * requests, you must specify a name in the request.
    +     * to the
    +     * [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * The generated name is populated in the returned Snapshot object. Note that
    +     * for REST API requests, you must specify a name in the request.
          * 
    */ public void createSnapshot( @@ -1085,8 +1101,13 @@ public void createSnapshot( * * *
    -     * Updates an existing snapshot.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Updates an existing snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * Note that certain properties of a snapshot are not modifiable.
    @@ -1102,8 +1123,13 @@ public void updateSnapshot(
          *
          *
          * 
    -     * Removes an existing snapshot. <br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Removes an existing snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * When the snapshot is deleted, all messages retained in the snapshot
    @@ -1123,8 +1149,14 @@ public void deleteSnapshot(
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * whichever is provided in the request. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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. Note that both the subscription and the snapshot
    +     * must be on the same topic.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -1267,13 +1299,14 @@ protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions call * *
          * Creates a subscription to a given topic. See the
    -     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    +     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    +     * resource name rules</a>.
          * 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](https://cloud.google.com/pubsub/docs/overview#names).
    +     * [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names).
          * The generated name is populated in the returned Subscription object.
          * Note that for REST API requests, you must specify a name in the request.
          * 
    @@ -1457,8 +1490,12 @@ public void modifyPushConfig( * * *
    -     * Gets the configuration details of a snapshot.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Gets the configuration details of a snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -1476,8 +1513,13 @@ public void getSnapshot( * * *
    -     * Lists the existing snapshots.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Lists the existing snapshots. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -1495,8 +1537,14 @@ public void listSnapshots( * * *
    -     * Creates a snapshot from the requested subscription.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Creates a snapshot from the requested subscription. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.
    +     * <br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.<br><br>
          * If the snapshot already exists, returns `ALREADY_EXISTS`.
    @@ -1506,10 +1554,10 @@ public void listSnapshots(
          * 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](https://cloud.google.com/pubsub/docs/overview#names).
    -     * The generated
    -     * name is populated in the returned Snapshot object. Note that for REST API
    -     * requests, you must specify a name in the request.
    +     * to the
    +     * [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * The generated name is populated in the returned Snapshot object. Note that
    +     * for REST API requests, you must specify a name in the request.
          * 
    */ public void createSnapshot( @@ -1525,8 +1573,13 @@ public void createSnapshot( * * *
    -     * Updates an existing snapshot.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Updates an existing snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * Note that certain properties of a snapshot are not modifiable.
    @@ -1545,8 +1598,13 @@ public void updateSnapshot(
          *
          *
          * 
    -     * Removes an existing snapshot. <br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Removes an existing snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * When the snapshot is deleted, all messages retained in the snapshot
    @@ -1569,8 +1627,14 @@ public void deleteSnapshot(
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * whichever is provided in the request. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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. Note that both the subscription and the snapshot
    +     * must be on the same topic.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -1613,13 +1677,14 @@ protected SubscriberBlockingStub build( * *
          * Creates a subscription to a given topic. See the
    -     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    +     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    +     * resource name rules</a>.
          * 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](https://cloud.google.com/pubsub/docs/overview#names).
    +     * [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names).
          * The generated name is populated in the returned Subscription object.
          * Note that for REST API requests, you must specify a name in the request.
          * 
    @@ -1755,8 +1820,12 @@ public com.google.protobuf.Empty modifyPushConfig( * * *
    -     * Gets the configuration details of a snapshot.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Gets the configuration details of a snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -1771,8 +1840,13 @@ public com.google.pubsub.v1.Snapshot getSnapshot( * * *
    -     * Lists the existing snapshots.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Lists the existing snapshots. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -1787,8 +1861,14 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( * * *
    -     * Creates a snapshot from the requested subscription.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Creates a snapshot from the requested subscription. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.
    +     * <br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.<br><br>
          * If the snapshot already exists, returns `ALREADY_EXISTS`.
    @@ -1798,10 +1878,10 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots(
          * 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](https://cloud.google.com/pubsub/docs/overview#names).
    -     * The generated
    -     * name is populated in the returned Snapshot object. Note that for REST API
    -     * requests, you must specify a name in the request.
    +     * to the
    +     * [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * The generated name is populated in the returned Snapshot object. Note that
    +     * for REST API requests, you must specify a name in the request.
          * 
    */ public com.google.pubsub.v1.Snapshot createSnapshot( @@ -1814,8 +1894,13 @@ public com.google.pubsub.v1.Snapshot createSnapshot( * * *
    -     * Updates an existing snapshot.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Updates an existing snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * Note that certain properties of a snapshot are not modifiable.
    @@ -1831,8 +1916,13 @@ public com.google.pubsub.v1.Snapshot updateSnapshot(
          *
          *
          * 
    -     * Removes an existing snapshot. <br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Removes an existing snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * When the snapshot is deleted, all messages retained in the snapshot
    @@ -1852,8 +1942,14 @@ public com.google.protobuf.Empty deleteSnapshot(
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * whichever is provided in the request. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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. Note that both the subscription and the snapshot
    +     * must be on the same topic.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -1892,13 +1988,14 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Creates a subscription to a given topic. See the
    -     * <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
    +     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    +     * resource name rules</a>.
          * 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](https://cloud.google.com/pubsub/docs/overview#names).
    +     * [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names).
          * The generated name is populated in the returned Subscription object.
          * Note that for REST API requests, you must specify a name in the request.
          * 
    @@ -2038,8 +2135,12 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
    -     * Gets the configuration details of a snapshot.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Gets the configuration details of a snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -2054,8 +2155,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
    -     * Lists the existing snapshots.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Lists the existing snapshots. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -2071,8 +2177,14 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
    -     * Creates a snapshot from the requested subscription.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Creates a snapshot from the requested subscription. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.
    +     * <br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.<br><br>
          * If the snapshot already exists, returns `ALREADY_EXISTS`.
    @@ -2082,10 +2194,10 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
          * 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](https://cloud.google.com/pubsub/docs/overview#names).
    -     * The generated
    -     * name is populated in the returned Snapshot object. Note that for REST API
    -     * requests, you must specify a name in the request.
    +     * to the
    +     * [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * The generated name is populated in the returned Snapshot object. Note that
    +     * for REST API requests, you must specify a name in the request.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -2098,8 +2210,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
    -     * Updates an existing snapshot.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Updates an existing snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * Note that certain properties of a snapshot are not modifiable.
    @@ -2115,8 +2232,13 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
          *
          *
          * 
    -     * Removes an existing snapshot. <br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * Removes an existing snapshot. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * When the snapshot is deleted, all messages retained in the snapshot
    @@ -2136,8 +2258,14 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * whichever is provided in the request. Snapshots are used in
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +     * 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. Note that both the subscription and the snapshot
    +     * must be on the same topic.<br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 1b2ce17937f1..4fee2a01533c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -8,7 +8,7 @@ * *
      * Request for the `CreateSnapshot` method.<br><br>
    - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be changed in
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    @@ -137,7 +137,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * 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 - * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. + * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> + * resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. *
    * @@ -162,7 +163,8 @@ public java.lang.String getName() { * 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 - * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. + * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> + * resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. *
    * @@ -268,7 +270,8 @@ public int getLabelsCount() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 3; @@ -288,7 +291,8 @@ public java.util.Map getLabels() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 3; @@ -300,7 +304,8 @@ public java.util.Map getLabelsMap() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 3; @@ -316,7 +321,8 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 3; @@ -523,7 +529,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * Request for the `CreateSnapshot` method.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be changed in
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    @@ -723,7 +729,8 @@ public Builder mergeFrom( * 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 - * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. + * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> + * resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. *
    * @@ -748,7 +755,8 @@ public java.lang.String getName() { * 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 - * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. + * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> + * resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. *
    * @@ -773,7 +781,8 @@ public com.google.protobuf.ByteString getNameBytes() { * 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 - * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. + * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> + * resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. *
    * @@ -796,7 +805,8 @@ public Builder setName(java.lang.String value) { * 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 - * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. + * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> + * resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. *
    * @@ -816,7 +826,8 @@ public Builder clearName() { * 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 - * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. + * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> + * resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. *
    * @@ -996,7 +1007,8 @@ public int getLabelsCount() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 3; @@ -1016,7 +1028,8 @@ public java.util.Map getLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 3; @@ -1028,7 +1041,8 @@ public java.util.Map getLabelsMap() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 3; @@ -1045,7 +1059,8 @@ public java.lang.String getLabelsOrDefault( * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 3; @@ -1069,7 +1084,8 @@ public Builder clearLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 3; @@ -1090,7 +1106,8 @@ public java.util.Map getMutableLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 3; @@ -1109,7 +1126,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 28c94b711d2e..0be6df1fee28 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,7 +16,8 @@ public interface CreateSnapshotRequestOrBuilder * 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 - * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. + * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> + * resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. *
    * @@ -31,7 +32,8 @@ public interface CreateSnapshotRequestOrBuilder * 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 - * <a href="/pubsub/docs/admin#resource_names">resource name rules</a>. + * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names"> + * resource name rules</a>. * Format is `projects/{project}/snapshots/{snap}`. *
    * @@ -80,7 +82,8 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 3; @@ -90,7 +93,8 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 3; @@ -103,7 +107,8 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 3; @@ -113,7 +118,8 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 3; @@ -123,7 +129,8 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 99831862e700..ff9a16fff298 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -8,7 +8,7 @@ * *
      * Request for the `DeleteSnapshot` method.<br><br>
    - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    @@ -304,7 +304,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * Request for the `DeleteSnapshot` method.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 4cb68f688ead..5c8bba2913a8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -8,7 +8,7 @@ * *
      * Request for the GetSnapshot method.<br><br>
    - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    @@ -303,7 +303,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * Request for the GetSnapshot method.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 3657b6362dc2..2915d7938b03 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -8,7 +8,7 @@ * *
      * Request for the `ListSnapshots` method.<br><br>
    - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    @@ -398,7 +398,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * Request for the `ListSnapshots` method.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 757837fc337e..82586a0386a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -8,7 +8,7 @@ * *
      * Response for the `ListSnapshots` method.<br><br>
    - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    @@ -394,7 +394,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * Response for the `ListSnapshots` method.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 4dfb49deaf48..423da7aac707 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -7,8 +7,8 @@ * * *
    - * Request for the `ListTopicSnapshots` method.<br><br>
    - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    + * Request for the `ListTopicSnapshots` method. <br><br>
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    @@ -397,8 +397,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Request for the `ListTopicSnapshots` method.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * Request for the `ListTopicSnapshots` method. <br><br>
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index b7537b347208..88799eda0d9e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -8,7 +8,7 @@ * *
      * Response for the `ListTopicSnapshots` method.<br><br>
    - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    @@ -388,7 +388,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * Response for the `ListTopicSnapshots` method.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index b3c99caeaa13..0417cb8c12b6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -95,8 +95,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The list of GCP regions where messages that are published to the topic may
    -   * be persisted in storage. Messages published by publishers running in
    +   * The list of GCP region IDs where messages that are published to the topic
    +   * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
        * routed for storage in one of the allowed regions. An empty list indicates a
        * misconfiguration at the project or organization level, which will result in
    @@ -112,8 +112,8 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList()
        *
        *
        * 
    -   * The list of GCP regions where messages that are published to the topic may
    -   * be persisted in storage. Messages published by publishers running in
    +   * The list of GCP region IDs where messages that are published to the topic
    +   * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
        * routed for storage in one of the allowed regions. An empty list indicates a
        * misconfiguration at the project or organization level, which will result in
    @@ -129,8 +129,8 @@ public int getAllowedPersistenceRegionsCount() {
        *
        *
        * 
    -   * The list of GCP regions where messages that are published to the topic may
    -   * be persisted in storage. Messages published by publishers running in
    +   * The list of GCP region IDs where messages that are published to the topic
    +   * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
        * routed for storage in one of the allowed regions. An empty list indicates a
        * misconfiguration at the project or organization level, which will result in
    @@ -146,8 +146,8 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
        *
        *
        * 
    -   * The list of GCP regions where messages that are published to the topic may
    -   * be persisted in storage. Messages published by publishers running in
    +   * The list of GCP region IDs where messages that are published to the topic
    +   * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
        * routed for storage in one of the allowed regions. An empty list indicates a
        * misconfiguration at the project or organization level, which will result in
    @@ -506,8 +506,8 @@ private void ensureAllowedPersistenceRegionsIsMutable() {
          *
          *
          * 
    -     * The list of GCP regions where messages that are published to the topic may
    -     * be persisted in storage. Messages published by publishers running in
    +     * The list of GCP region IDs where messages that are published to the topic
    +     * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
          * routed for storage in one of the allowed regions. An empty list indicates a
          * misconfiguration at the project or organization level, which will result in
    @@ -523,8 +523,8 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList()
          *
          *
          * 
    -     * The list of GCP regions where messages that are published to the topic may
    -     * be persisted in storage. Messages published by publishers running in
    +     * The list of GCP region IDs where messages that are published to the topic
    +     * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
          * routed for storage in one of the allowed regions. An empty list indicates a
          * misconfiguration at the project or organization level, which will result in
    @@ -540,8 +540,8 @@ public int getAllowedPersistenceRegionsCount() {
          *
          *
          * 
    -     * The list of GCP regions where messages that are published to the topic may
    -     * be persisted in storage. Messages published by publishers running in
    +     * The list of GCP region IDs where messages that are published to the topic
    +     * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
          * routed for storage in one of the allowed regions. An empty list indicates a
          * misconfiguration at the project or organization level, which will result in
    @@ -557,8 +557,8 @@ public java.lang.String getAllowedPersistenceRegions(int index) {
          *
          *
          * 
    -     * The list of GCP regions where messages that are published to the topic may
    -     * be persisted in storage. Messages published by publishers running in
    +     * The list of GCP region IDs where messages that are published to the topic
    +     * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
          * routed for storage in one of the allowed regions. An empty list indicates a
          * misconfiguration at the project or organization level, which will result in
    @@ -574,8 +574,8 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde
          *
          *
          * 
    -     * The list of GCP regions where messages that are published to the topic may
    -     * be persisted in storage. Messages published by publishers running in
    +     * The list of GCP region IDs where messages that are published to the topic
    +     * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
          * routed for storage in one of the allowed regions. An empty list indicates a
          * misconfiguration at the project or organization level, which will result in
    @@ -597,8 +597,8 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) {
          *
          *
          * 
    -     * The list of GCP regions where messages that are published to the topic may
    -     * be persisted in storage. Messages published by publishers running in
    +     * The list of GCP region IDs where messages that are published to the topic
    +     * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
          * routed for storage in one of the allowed regions. An empty list indicates a
          * misconfiguration at the project or organization level, which will result in
    @@ -620,8 +620,8 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) {
          *
          *
          * 
    -     * The list of GCP regions where messages that are published to the topic may
    -     * be persisted in storage. Messages published by publishers running in
    +     * The list of GCP region IDs where messages that are published to the topic
    +     * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
          * routed for storage in one of the allowed regions. An empty list indicates a
          * misconfiguration at the project or organization level, which will result in
    @@ -640,8 +640,8 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable
    -     * The list of GCP regions where messages that are published to the topic may
    -     * be persisted in storage. Messages published by publishers running in
    +     * The list of GCP region IDs where messages that are published to the topic
    +     * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
          * routed for storage in one of the allowed regions. An empty list indicates a
          * misconfiguration at the project or organization level, which will result in
    @@ -660,8 +660,8 @@ public Builder clearAllowedPersistenceRegions() {
          *
          *
          * 
    -     * The list of GCP regions where messages that are published to the topic may
    -     * be persisted in storage. Messages published by publishers running in
    +     * The list of GCP region IDs where messages that are published to the topic
    +     * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
          * routed for storage in one of the allowed regions. An empty list indicates a
          * misconfiguration at the project or organization level, which will result in
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java
    index 918ef490c636..ebc0d1454b41 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java
    @@ -12,8 +12,8 @@ public interface MessageStoragePolicyOrBuilder
        *
        *
        * 
    -   * The list of GCP regions where messages that are published to the topic may
    -   * be persisted in storage. Messages published by publishers running in
    +   * The list of GCP region IDs where messages that are published to the topic
    +   * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
        * routed for storage in one of the allowed regions. An empty list indicates a
        * misconfiguration at the project or organization level, which will result in
    @@ -27,8 +27,8 @@ public interface MessageStoragePolicyOrBuilder
        *
        *
        * 
    -   * The list of GCP regions where messages that are published to the topic may
    -   * be persisted in storage. Messages published by publishers running in
    +   * The list of GCP region IDs where messages that are published to the topic
    +   * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
        * routed for storage in one of the allowed regions. An empty list indicates a
        * misconfiguration at the project or organization level, which will result in
    @@ -42,8 +42,8 @@ public interface MessageStoragePolicyOrBuilder
        *
        *
        * 
    -   * The list of GCP regions where messages that are published to the topic may
    -   * be persisted in storage. Messages published by publishers running in
    +   * The list of GCP region IDs where messages that are published to the topic
    +   * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
        * routed for storage in one of the allowed regions. An empty list indicates a
        * misconfiguration at the project or organization level, which will result in
    @@ -57,8 +57,8 @@ public interface MessageStoragePolicyOrBuilder
        *
        *
        * 
    -   * The list of GCP regions where messages that are published to the topic may
    -   * be persisted in storage. Messages published by publishers running in
    +   * The list of GCP region IDs where messages that are published to the topic
    +   * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
        * routed for storage in one of the allowed regions. An empty list indicates a
        * misconfiguration at the project or organization level, which will result in
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    index 8ee933d50f23..8d1730521f59 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    @@ -217,8 +217,9 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
        * 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 may immediately make the message available for
    -   * another pull request.
    +   * 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).
        * 
    @@ -849,8 +850,9 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { * 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 may immediately make the message available for - * another pull request. + * 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). *
    @@ -867,8 +869,9 @@ public int getAckDeadlineSeconds() { * 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 may immediately make the message available for - * another pull request. + * 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). *
    @@ -888,8 +891,9 @@ public Builder setAckDeadlineSeconds(int value) { * 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 may immediately make the message available for - * another pull request. + * 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). *
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 6fa5d98a3ae2..079ea0289756 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -79,8 +79,9 @@ public interface ModifyAckDeadlineRequestOrBuilder * 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 may immediately make the message available for - * another pull request. + * 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). *
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 53fc4ecda8eb..21ae0f027cbe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -9,8 +9,12 @@ *
      * 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.
    - * See <a href="/pubsub/quotas">Quotas and limits</a> for more information about
    - * message limits.
    + * Note that client libraries represent this object differently
    + * depending on the language. See the corresponding
    + * <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client
    + * library documentation</a> for more information. See
    + * <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
    + * for more information about message limits.
      * 
    * * Protobuf type {@code google.pubsub.v1.PubsubMessage} @@ -550,8 +554,12 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
        * 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.
    -   * See <a href="/pubsub/quotas">Quotas and limits</a> for more information about
    -   * message limits.
    +   * Note that client libraries represent this object differently
    +   * depending on the language. See the corresponding
    +   * <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client
    +   * library documentation</a> for more information. See
    +   * <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
    +   * for more information about message limits.
        * 
    * * Protobuf type {@code google.pubsub.v1.PubsubMessage} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index f738cc912074..cdc7b4ce4539 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -389,11 +389,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "apshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.S" + "eekRequest\032\036.google.pubsub.v1.SeekRespon" + "se\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*" - + "/subscriptions/*}:seek:\001*B\222\001\n\024com.google" + + "/subscriptions/*}:seek:\001*B\256\001\n\024com.google" + ".pubsub.v1B\013PubsubProtoP\001Z6google.golang" + ".org/genproto/googleapis/pubsub/v1;pubsu" + "b\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\C" - + "loud\\PubSub\\V1b\006proto3" + + "loud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::" + + "V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index bbfa4e31c334..47f4f36f6bf2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -7,8 +7,8 @@ * * *
    - * Request for the `Seek` method.<br><br>
    - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    + * Request for the `Seek` method. <br><br>
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    @@ -527,8 +527,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Request for the `Seek` method.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * Request for the `Seek` method. <br><br>
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 25134a5cf2b3..9be35782091d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -7,8 +7,13 @@ * * *
    - * A snapshot resource.<br><br>
    - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    + * A snapshot resource. Snapshots are used in
    + * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    + * 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.<br><br>
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    @@ -321,7 +326,8 @@ public int getLabelsCount() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 4; @@ -341,7 +347,8 @@ public java.util.Map getLabels() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 4; @@ -353,7 +360,8 @@ public java.util.Map getLabelsMap() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 4; @@ -369,7 +377,8 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 4; @@ -587,8 +596,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * A snapshot resource.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * A snapshot resource. Snapshots are used in
    +   * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    +   * 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.<br><br>
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    @@ -1266,7 +1280,8 @@ public int getLabelsCount() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 4; @@ -1286,7 +1301,8 @@ public java.util.Map getLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 4; @@ -1298,7 +1314,8 @@ public java.util.Map getLabelsMap() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 4; @@ -1315,7 +1332,8 @@ public java.lang.String getLabelsOrDefault( * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 4; @@ -1339,7 +1357,8 @@ public Builder clearLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 4; @@ -1360,7 +1379,8 @@ public java.util.Map getMutableLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 4; @@ -1379,7 +1399,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 4; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 18d810f29ec1..30166c3a8d0b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -112,7 +112,8 @@ public interface SnapshotOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 4; @@ -122,7 +123,8 @@ public interface SnapshotOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 4; @@ -135,7 +137,8 @@ public interface SnapshotOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 4; @@ -145,7 +148,8 @@ public interface SnapshotOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 4; @@ -155,7 +159,8 @@ public interface SnapshotOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 4; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 16d6e3ebff29..efb2168d1aa7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -335,11 +335,11 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * *
    -   * This value is the maximum time after a subscriber receives a message
    -   * before the subscriber should acknowledge the message. After message
    -   * delivery but before the ack deadline expires and before the message is
    -   * acknowledged, it is an outstanding message and will not be delivered
    -   * again during that time (on a best-effort basis).
    +   * 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 <i>outstanding</i>. 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
    @@ -369,8 +369,11 @@ public int getAckDeadlineSeconds() {
        * 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.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * window. This must be true if you would like to
    +   * <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time">
    +   * Seek to a timestamp</a>.
    +   * <br><br>
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    @@ -393,7 +396,7 @@ public boolean getRetainAckedMessages() { * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -413,7 +416,7 @@ public boolean hasMessageRetentionDuration() { * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -435,7 +438,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -475,7 +478,8 @@ public int getLabelsCount() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 9; @@ -495,7 +499,8 @@ public java.util.Map getLabels() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 9; @@ -507,7 +512,8 @@ public java.util.Map getLabelsMap() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 9; @@ -523,7 +529,8 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 9; @@ -1528,11 +1535,11 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * *
    -     * This value is the maximum time after a subscriber receives a message
    -     * before the subscriber should acknowledge the message. After message
    -     * delivery but before the ack deadline expires and before the message is
    -     * acknowledged, it is an outstanding message and will not be delivered
    -     * again during that time (on a best-effort basis).
    +     * 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 <i>outstanding</i>. 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
    @@ -1556,11 +1563,11 @@ public int getAckDeadlineSeconds() {
          *
          *
          * 
    -     * This value is the maximum time after a subscriber receives a message
    -     * before the subscriber should acknowledge the message. After message
    -     * delivery but before the ack deadline expires and before the message is
    -     * acknowledged, it is an outstanding message and will not be delivered
    -     * again during that time (on a best-effort basis).
    +     * 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 <i>outstanding</i>. 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
    @@ -1587,11 +1594,11 @@ public Builder setAckDeadlineSeconds(int value) {
          *
          *
          * 
    -     * This value is the maximum time after a subscriber receives a message
    -     * before the subscriber should acknowledge the message. After message
    -     * delivery but before the ack deadline expires and before the message is
    -     * acknowledged, it is an outstanding message and will not be delivered
    -     * again during that time (on a best-effort basis).
    +     * 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 <i>outstanding</i>. 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
    @@ -1623,8 +1630,11 @@ public Builder clearAckDeadlineSeconds() {
          * 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.<br><br>
    -     * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +     * window. This must be true if you would like to
    +     * <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time">
    +     * Seek to a timestamp</a>.
    +     * <br><br>
    +     * <b>BETA:</b> This feature is part of a beta 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.
          * 
    @@ -1641,8 +1651,11 @@ public boolean getRetainAckedMessages() { * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * window. This must be true if you would like to + * <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> + * Seek to a timestamp</a>. + * <br><br> + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1662,8 +1675,11 @@ public Builder setRetainAckedMessages(boolean value) { * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * window. This must be true if you would like to + * <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> + * Seek to a timestamp</a>. + * <br><br> + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1693,7 +1709,7 @@ public Builder clearRetainAckedMessages() { * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1713,7 +1729,7 @@ public boolean hasMessageRetentionDuration() { * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1739,7 +1755,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1769,7 +1785,7 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1797,7 +1813,7 @@ public Builder setMessageRetentionDuration( * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1831,7 +1847,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1859,7 +1875,7 @@ public Builder clearMessageRetentionDuration() { * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1881,7 +1897,7 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1907,7 +1923,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -1960,7 +1976,8 @@ public int getLabelsCount() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 9; @@ -1980,7 +1997,8 @@ public java.util.Map getLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 9; @@ -1992,7 +2010,8 @@ public java.util.Map getLabelsMap() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 9; @@ -2009,7 +2028,8 @@ public java.lang.String getLabelsOrDefault( * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 9; @@ -2033,7 +2053,8 @@ public Builder clearLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 9; @@ -2054,7 +2075,8 @@ public java.util.Map getMutableLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 9; @@ -2073,7 +2095,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 9; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index ba0a20256cf7..dc06e7fb432b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -107,11 +107,11 @@ public interface SubscriptionOrBuilder * * *
    -   * This value is the maximum time after a subscriber receives a message
    -   * before the subscriber should acknowledge the message. After message
    -   * delivery but before the ack deadline expires and before the message is
    -   * acknowledged, it is an outstanding message and will not be delivered
    -   * again during that time (on a best-effort basis).
    +   * 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 <i>outstanding</i>. 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
    @@ -137,8 +137,11 @@ public interface SubscriptionOrBuilder
        * 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.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * window. This must be true if you would like to
    +   * <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time">
    +   * Seek to a timestamp</a>.
    +   * <br><br>
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    @@ -157,7 +160,7 @@ public interface SubscriptionOrBuilder * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -175,7 +178,7 @@ public interface SubscriptionOrBuilder * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -193,7 +196,7 @@ public interface SubscriptionOrBuilder * 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.<br><br> - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be + * <b>BETA:</b> This feature is part of a beta 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. *
    @@ -206,7 +209,8 @@ public interface SubscriptionOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 9; @@ -216,7 +220,8 @@ public interface SubscriptionOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 9; @@ -229,7 +234,8 @@ public interface SubscriptionOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 9; @@ -239,7 +245,8 @@ public interface SubscriptionOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 9; @@ -249,7 +256,8 @@ public interface SubscriptionOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 9; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 6501868c14d5..2d0d72b5209f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -211,7 +211,8 @@ public int getLabelsCount() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 2; @@ -231,7 +232,8 @@ public java.util.Map getLabels() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 2; @@ -243,7 +245,8 @@ public java.util.Map getLabelsMap() { * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 2; @@ -259,7 +262,8 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 2; @@ -865,7 +869,8 @@ public int getLabelsCount() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 2; @@ -885,7 +890,8 @@ public java.util.Map getLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 2; @@ -897,7 +903,8 @@ public java.util.Map getLabelsMap() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 2; @@ -914,7 +921,8 @@ public java.lang.String getLabelsOrDefault( * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 2; @@ -938,7 +946,8 @@ public Builder clearLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 2; @@ -959,7 +968,8 @@ public java.util.Map getMutableLabels() { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 2; @@ -978,7 +988,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
    -     * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +     * managing labels</a>.
          * 
    * * map<string, string> labels = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index c5b0f6dcccf5..b10fdd87aa15 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -43,7 +43,8 @@ public interface TopicOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 2; @@ -53,7 +54,8 @@ public interface TopicOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 2; @@ -66,7 +68,8 @@ public interface TopicOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 2; @@ -76,7 +79,8 @@ public interface TopicOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 2; @@ -86,7 +90,8 @@ public interface TopicOrBuilder * * *
    -   * See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
    +   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    +   * managing labels</a>.
        * 
    * * map<string, string> labels = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 2b2f150c55f5..472730603638 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -8,7 +8,7 @@ * *
      * Request for the UpdateSnapshot method.<br><br>
    - * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    @@ -380,7 +380,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * Request for the UpdateSnapshot method.<br><br>
    -   * <b>ALPHA:</b> This feature is part of an alpha release. This API might be
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b13c73473aa9..02d0bf34b3ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -30,13 +30,15 @@ option java_multiple_files = true; option java_outer_classname = "PubsubProto"; option java_package = "com.google.pubsub.v1"; option php_namespace = "Google\\Cloud\\PubSub\\V1"; +option ruby_package = "Google::Cloud::PubSub::V1"; // The service that an application uses to manipulate topics, and to send // messages to a topic. service Publisher { // Creates the given topic with the given name. See the - // resource name rules. + // + // resource name rules. rpc CreateTopic(Topic) returns (Topic) { option (google.api.http) = { put: "/v1/{name=projects/*/topics/*}" @@ -83,8 +85,13 @@ service Publisher { }; } - // Lists the names of the snapshots on this topic.

    - // ALPHA: This feature is part of an alpha release. This API might be + // Lists the names of the snapshots on this topic. 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.

    + // BETA: This feature is part of a beta 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. rpc ListTopicSnapshots(ListTopicSnapshotsRequest) returns (ListTopicSnapshotsResponse) { @@ -110,14 +117,15 @@ service Publisher { // establishing a bi-directional stream using the `StreamingPull` method. service Subscriber { // Creates a subscription to a given topic. See the - // resource name rules. + // + // 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](https://cloud.google.com/pubsub/docs/overview#names). + // [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names). // The generated name is populated in the returned Subscription object. // Note that for REST API requests, you must specify a name in the request. rpc CreateSubscription(Subscription) returns (Subscription) { @@ -220,8 +228,12 @@ service Subscriber { }; } - // Gets the configuration details of a snapshot.

    - // ALPHA: This feature is part of an alpha release. This API might be + // Gets the configuration details of a snapshot. 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.

    + // BETA: This feature is part of a beta 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. rpc GetSnapshot(GetSnapshotRequest) returns (Snapshot) { @@ -230,8 +242,13 @@ service Subscriber { }; } - // Lists the existing snapshots.

    - // ALPHA: This feature is part of an alpha release. This API might be + // Lists the existing snapshots. 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.

    + // BETA: This feature is part of a beta 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. rpc ListSnapshots(ListSnapshotsRequest) returns (ListSnapshotsResponse) { @@ -240,8 +257,14 @@ service Subscriber { }; } - // Creates a snapshot from the requested subscription.

    - // ALPHA: This feature is part of an alpha release. This API might be + // 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. + //

    + // BETA: This feature is part of a beta 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.

    // If the snapshot already exists, returns `ALREADY_EXISTS`. @@ -251,10 +274,10 @@ service Subscriber { // 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](https://cloud.google.com/pubsub/docs/overview#names). - // The generated - // name is populated in the returned Snapshot object. Note that for REST API - // requests, you must specify a name in the request. + // to the + // [resource name format](https://cloud.google.com/pubsub/docs/admin#resource_names). + // The generated name is populated in the returned Snapshot object. Note that + // for REST API requests, you must specify a name in the request. rpc CreateSnapshot(CreateSnapshotRequest) returns (Snapshot) { option (google.api.http) = { put: "/v1/{name=projects/*/snapshots/*}" @@ -262,8 +285,13 @@ service Subscriber { }; } - // Updates an existing snapshot.

    - // ALPHA: This feature is part of an alpha release. This API might be + // Updates an existing snapshot. 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.

    + // BETA: This feature is part of a beta 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. // Note that certain properties of a snapshot are not modifiable. @@ -274,8 +302,13 @@ service Subscriber { }; } - // Removes an existing snapshot.

    - // ALPHA: This feature is part of an alpha release. This API might be + // Removes an existing snapshot. 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.

    + // BETA: This feature is part of a beta 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. // When the snapshot is deleted, all messages retained in the snapshot @@ -289,8 +322,14 @@ service Subscriber { } // Seeks an existing subscription to a point in time or to a given snapshot, - // whichever is provided in the request.

    - // ALPHA: This feature is part of an alpha release. This API might be + // whichever is provided in the request. 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. Note that both the subscription and the snapshot + // must be on the same topic.

    + // BETA: This feature is part of a beta 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. rpc Seek(SeekRequest) returns (SeekResponse) { @@ -302,8 +341,8 @@ service Subscriber { } message MessageStoragePolicy { - // The list of GCP regions where messages that are published to the topic may - // be persisted in storage. Messages published by publishers running in + // The list of GCP region IDs where messages that are published to the topic + // may be persisted in storage. Messages published by publishers running in // non-allowed GCP regions (or running outside of GCP altogether) will be // routed for storage in one of the allowed regions. An empty list indicates a // misconfiguration at the project or organization level, which will result in @@ -321,7 +360,8 @@ message Topic { // must not start with `"goog"`. string name = 1; - // See Creating and managing labels. + // See Creating and + // managing labels. map labels = 2; // Policy constraining how messages published to the topic may be stored. It @@ -335,8 +375,12 @@ message Topic { // 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. -// See Quotas and limits for more information about -// message limits. +// Note that client libraries represent this object differently +// depending on the language. See the corresponding +// client +// library documentation for more information. See +// Quotas and limits +// for more information about message limits. message PubsubMessage { // The message data field. If this field is empty, the message must contain // at least one attribute. @@ -446,8 +490,8 @@ message ListTopicSubscriptionsResponse { string next_page_token = 2; } -// Request for the `ListTopicSnapshots` method.

    -// ALPHA: This feature is part of an alpha release. This API might be +// Request for the `ListTopicSnapshots` method.

    +// BETA: This feature is part of a beta 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. message ListTopicSnapshotsRequest { @@ -465,7 +509,7 @@ message ListTopicSnapshotsRequest { } // Response for the `ListTopicSnapshots` method.

    -// ALPHA: This feature is part of an alpha release. This API might be +// BETA: This feature is part of a beta 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. message ListTopicSnapshotsResponse { @@ -506,11 +550,11 @@ message Subscription { // will pull and ack messages using API methods. PushConfig push_config = 4; - // This value is the maximum time after a subscriber receives a message - // before the subscriber should acknowledge the message. After message - // delivery but before the ack deadline expires and before the message is - // acknowledged, it is an outstanding message and will not be delivered - // again during that time (on a best-effort basis). + // 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 @@ -531,8 +575,11 @@ message Subscription { // 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.

    - // ALPHA: This feature is part of an alpha release. This API might be + // window. This must be true if you would like to + // + // Seek to a timestamp. + //

    + // BETA: This feature is part of a beta release. This API might be // changed in backward-incompatible ways and is not recommended for production // use. It is not subject to any SLA or deprecation policy. bool retain_acked_messages = 7; @@ -543,12 +590,13 @@ message Subscription { // 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.

    - // ALPHA: This feature is part of an alpha release. This API might be + // BETA: This feature is part of a beta 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. google.protobuf.Duration message_retention_duration = 8; - // See Creating and managing labels. + // See Creating and + // managing labels. map labels = 9; // A policy that specifies the conditions for this subscription's expiration. @@ -717,8 +765,9 @@ message ModifyAckDeadlineRequest { // 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 may immediately make the message available for - // another pull request. + // 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). int32 ack_deadline_seconds = 3; @@ -787,7 +836,7 @@ message StreamingPullResponse { } // Request for the `CreateSnapshot` method.

    -// ALPHA: This feature is part of an alpha release. This API might be changed in +// BETA: This feature is part of a beta 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. message CreateSnapshotRequest { @@ -795,7 +844,8 @@ message CreateSnapshotRequest { // 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. + // + // resource name rules. // Format is `projects/{project}/snapshots/{snap}`. string name = 1; @@ -810,12 +860,13 @@ message CreateSnapshotRequest { // Format is `projects/{project}/subscriptions/{sub}`. string subscription = 2; - // See Creating and managing labels. + // See Creating and + // managing labels. map labels = 3; } // Request for the UpdateSnapshot method.

    -// ALPHA: This feature is part of an alpha release. This API might be +// BETA: This feature is part of a beta 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. message UpdateSnapshotRequest { @@ -827,8 +878,13 @@ message UpdateSnapshotRequest { google.protobuf.FieldMask update_mask = 2; } -// A snapshot resource.

    -// ALPHA: This feature is part of an alpha release. This API might be +// 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.

    +// BETA: This feature is part of a beta 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. message Snapshot { @@ -850,12 +906,13 @@ message Snapshot { // snapshot that would expire in less than 1 hour after creation. google.protobuf.Timestamp expire_time = 3; - // See Creating and managing labels. + // See Creating and + // managing labels. map labels = 4; } // Request for the GetSnapshot method.

    -// ALPHA: This feature is part of an alpha release. This API might be +// BETA: This feature is part of a beta 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. message GetSnapshotRequest { @@ -865,7 +922,7 @@ message GetSnapshotRequest { } // Request for the `ListSnapshots` method.

    -// ALPHA: This feature is part of an alpha release. This API might be +// BETA: This feature is part of a beta 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. message ListSnapshotsRequest { @@ -883,7 +940,7 @@ message ListSnapshotsRequest { } // Response for the `ListSnapshots` method.

    -// ALPHA: This feature is part of an alpha release. This API might be +// BETA: This feature is part of a beta 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. message ListSnapshotsResponse { @@ -896,7 +953,7 @@ message ListSnapshotsResponse { } // Request for the `DeleteSnapshot` method.

    -// ALPHA: This feature is part of an alpha release. This API might be +// BETA: This feature is part of a beta 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. message DeleteSnapshotRequest { @@ -905,8 +962,8 @@ message DeleteSnapshotRequest { string snapshot = 1; } -// Request for the `Seek` method.

    -// ALPHA: This feature is part of an alpha release. This API might be +// Request for the `Seek` method.

    +// BETA: This feature is part of a beta 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. message SeekRequest { From 4be60f8780369f7c927b1abd26616e1d35cecd74 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 10 Jan 2019 16:03:52 -0500 Subject: [PATCH 0107/2363] Release v0.77.0 (#4324) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index c0550d5f0240..253fa8cd7ef5 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.58.0 + 1.59.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.58.0' +compile 'com.google.cloud:google-cloud-pubsub:1.59.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.59.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6458665c3f49..b434507031b2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.58.1-SNAPSHOT + 1.59.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.76.1-alpha-SNAPSHOT + 0.77.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8d6f2b58053f..0f2551d0c898 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.40.1-SNAPSHOT + 1.41.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.41.1-SNAPSHOT + 0.42.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a49627941656..d8a8cc2e8f88 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.40.1-SNAPSHOT + 1.41.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.41.1-SNAPSHOT + 0.42.0 From a74763aec8bc1b2eda422af2c8044b4825eecb06 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 10 Jan 2019 20:31:39 -0500 Subject: [PATCH 0108/2363] Bump next snapshot (#4325) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b434507031b2..dc2b4ef513b9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.59.0 + 1.59.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.77.0-alpha + 0.77.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0f2551d0c898..d83690341733 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.41.0 + 1.41.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.42.0 + 0.42.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d8a8cc2e8f88..448ec6ec0309 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.41.0 + 1.41.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.42.0 + 0.42.1-SNAPSHOT From 2df3c44d87c099f1b6f2faab453f3c510d87fe3f Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 17 Jan 2019 12:55:35 -0800 Subject: [PATCH 0109/2363] Regenerate clients with updated copyright year (#4382) * Regenerate asset client * Regenerate automl client * Regenerate bigquerydatatransfer client * Regenerate bigquerystorage client * Regenerate bigtable client * Regenerate container client * Regenerate containeranalysis client * Regenerate dataproc client * Regenerate dialogflow client * Regenerate dlp client * Regenerate errorreporting client * Regenerate iamcredentials client * Regenerate iot client * Regenerate kms client * Regenerate language client * Regenerate logging client * Regenerate monitoring client * Regenerate os-login client * Regenerate pubsub client * Regenerate redis client * Regenerate securitycenter client * Regenerate speech client * Regenerate tasks client * Regenerate trace client * Regenerate video-intelligence client * Regenerate websecurityscanner client --- .../cloud/pubsub/v1/SubscriptionAdminClient.java | 2 +- .../cloud/pubsub/v1/SubscriptionAdminSettings.java | 2 +- .../com/google/cloud/pubsub/v1/TopicAdminClient.java | 2 +- .../com/google/cloud/pubsub/v1/TopicAdminSettings.java | 2 +- .../java/com/google/cloud/pubsub/v1/package-info.java | 2 +- .../pubsub/v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../google/cloud/pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberCallableFactory.java | 2 +- .../cloud/pubsub/v1/stub/GrpcSubscriberStub.java | 2 +- .../com/google/cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../cloud/pubsub/v1/stub/PublisherStubSettings.java | 2 +- .../google/cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../cloud/pubsub/v1/stub/SubscriberStubSettings.java | 2 +- .../java/com/google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../java/com/google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../com/google/cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../com/google/cloud/pubsub/v1/MockSubscriber.java | 2 +- .../com/google/cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../cloud/pubsub/v1/SubscriptionAdminClientTest.java | 2 +- .../google/cloud/pubsub/v1/TopicAdminClientTest.java | 2 +- .../google/cloud/pubsub/v1/TopicAdminSmokeTest.java | 2 +- java-pubsub/google-cloud-pubsub/synth.metadata | 10 +++++----- 23 files changed, 27 insertions(+), 27 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 75046eeeacb6..aad805519f65 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index b5e212783e7b..6a302d1b0e2f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 0f497ce565a2..0a26402ade29 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index f30593c608b1..2fa642dc468e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 8e653a185a6b..1f2e48ce0d1e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index d12b34c6a4da..8cfb399722da 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 9266f235c210..e2c442b4a106 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index c3f529bdcd1d..077a1e9322aa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index 172a80e40c0e..ba05a6290919 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 82ce2773df21..51fe9adb7498 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 612fbb6b44a9..83545a032e92 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index e6cab8a91af1..b8860a5e9fcb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index d66dca70da74..4ba60dea6b45 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java index 2ffd5eaf21fe..15d84f60c63d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index 8d30c2d6e1f8..0b2084391413 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java index b8c126a37c6e..306787cd1ff5 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 2348ad11c143..e458610a89b0 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java index 1d8d4d90a470..238f36fbe818 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index 4c7f5407a16f..f6d387ef7476 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 67f27f7f3f9c..f01f120089bd 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 59596160a482..a87462aedabb 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java index 6eb34fa87bee..e9c579b02990 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index 05048bef9909..7af19ab59c17 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-01-05T08:46:07.715668Z", + "updateTime": "2019-01-17T08:48:48.620536Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.4", - "dockerImage": "googleapis/artman@sha256:8b45fae963557c3299921037ecbb86f0689f41b1b4aea73408ebc50562cb2857" + "version": "0.16.6", + "dockerImage": "googleapis/artman@sha256:12722f2ca3fbc3b53cc6aa5f0e569d7d221b46bd876a2136497089dec5e3634e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a111a53c0c6722afcd793b64724ceef7862db5b9", - "internalRef": "227896184" + "sha": "0ac60e21a1aa86c07c1836865b35308ba8178b05", + "internalRef": "229626798" } } ], From 9423c913c50f130d122b9fd0361913184849c69d Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 17 Jan 2019 13:26:07 -0800 Subject: [PATCH 0110/2363] Release google-cloud-java v0.78.0 (#4386) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 253fa8cd7ef5..cef71799def0 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.59.0 + 1.60.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.59.0' +compile 'com.google.cloud:google-cloud-pubsub:1.60.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.60.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index dc2b4ef513b9..99f36e7d99a1 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.59.1-SNAPSHOT + 1.60.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.77.1-alpha-SNAPSHOT + 0.78.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d83690341733..0c39739da9d4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.41.1-SNAPSHOT + 1.42.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.42.1-SNAPSHOT + 0.43.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 448ec6ec0309..b7c20d9b7fb9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.41.1-SNAPSHOT + 1.42.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.42.1-SNAPSHOT + 0.43.0 From 29d595ef9dc23b83e8f98c0bdfa5b8a0c40827ca Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 18 Jan 2019 10:02:52 -0800 Subject: [PATCH 0111/2363] Bump next snapshot (#4391) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 99f36e7d99a1..7cd47ba2aa5c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.60.0 + 1.60.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.78.0-alpha + 0.78.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0c39739da9d4..e5c78e555e26 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.42.0 + 1.42.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.43.0 + 0.43.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b7c20d9b7fb9..3181bf36a16f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.42.0 + 1.42.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.43.0 + 0.43.1-SNAPSHOT From ba3e3ab5966e4eaf4bf7262e28a91d48fe3f350a Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 23 Jan 2019 15:28:46 -0500 Subject: [PATCH 0112/2363] Release v0.79.0 (#4402) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index cef71799def0..dd05eed73224 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.60.0 + 1.61.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.60.0' +compile 'com.google.cloud:google-cloud-pubsub:1.61.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.60.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.61.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7cd47ba2aa5c..df9a13324862 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.60.1-SNAPSHOT + 1.61.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.78.1-alpha-SNAPSHOT + 0.79.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e5c78e555e26..532e72dba106 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.42.1-SNAPSHOT + 1.43.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.43.1-SNAPSHOT + 0.44.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3181bf36a16f..3e4e6057620a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.42.1-SNAPSHOT + 1.43.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.43.1-SNAPSHOT + 0.44.0 From be8ff1de123aa9df08da3abdf9d6fa33e0fa9517 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Wed, 23 Jan 2019 19:18:53 -0500 Subject: [PATCH 0113/2363] Removing some unused dependencies (#4385) * Removing some unused dependencies Also, reducing scope of auto-value to provided. * Restoring Firestore auto-value * Removing more instances of easymock. --- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index df9a13324862..06b6ccc0df01 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -49,7 +49,7 @@ com.google.auto.value auto-value - compile + provided From 08b1ceeb46d90de18edf3dcd36458932393e49bf Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 24 Jan 2019 13:40:36 -0500 Subject: [PATCH 0114/2363] Bump next snapshot (#4405) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 06b6ccc0df01..2efaa0336044 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.61.0 + 1.61.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.79.0-alpha + 0.79.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 532e72dba106..3e476f3a9ace 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.43.0 + 1.43.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.44.0 + 0.44.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3e4e6057620a..4cb8f8ab2a57 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.43.0 + 1.43.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.44.0 + 0.44.1-SNAPSHOT From f7bc00b8f006a6772b44f80d1b5deb49980058ec Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Mon, 4 Feb 2019 12:12:03 -0500 Subject: [PATCH 0115/2363] Fix code formatting (#4437) --- .../src/main/java/com/google/pubsub/v1/Topic.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 2d0d72b5209f..81b43222ba96 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -124,8 +124,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_Topic_fieldAccessorTable.ensureFieldAccessorsInitialized( - com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); + .internal_static_google_pubsub_v1_Topic_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); } private int bitField0_; From 47fd1f1471b9ea225649c5dc17bbf70ac122161d Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 7 Feb 2019 15:05:30 -0500 Subject: [PATCH 0116/2363] Release v0.80.0 (#4465) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index dd05eed73224..cd2829d411f4 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.61.0 + 1.62.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.61.0' +compile 'com.google.cloud:google-cloud-pubsub:1.62.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.62.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2efaa0336044..ec9b582aad5d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.61.1-SNAPSHOT + 1.62.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.79.1-alpha-SNAPSHOT + 0.80.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3e476f3a9ace..bd5b309bfa17 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.43.1-SNAPSHOT + 1.44.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.44.1-SNAPSHOT + 0.45.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4cb8f8ab2a57..d9421e40e25d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.43.1-SNAPSHOT + 1.44.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.44.1-SNAPSHOT + 0.45.0 From ee8a918b34a6e8ef2a883c57ba32540198dbb39e Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 7 Feb 2019 18:53:34 -0500 Subject: [PATCH 0117/2363] Bump next snapshot (#4467) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ec9b582aad5d..429e53b8df10 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.62.0 + 1.62.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.80.0-alpha + 0.80.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bd5b309bfa17..6e26483896fa 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.44.0 + 1.44.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.45.0 + 0.45.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d9421e40e25d..a0510c1e3122 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.44.0 + 1.44.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.45.0 + 0.45.1-SNAPSHOT From 3466e2d1f4c7b110f062198f7116cac9c4a1f6cb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Thu, 14 Feb 2019 05:19:39 -0800 Subject: [PATCH 0118/2363] Regenerate pubsub client (#4487) --- .../pubsub/v1/stub/PublisherStubSettings.java | 17 ++++++----- .../v1/stub/SubscriberStubSettings.java | 29 ++++++++----------- .../google-cloud-pubsub/synth.metadata | 10 +++---- 3 files changed, 27 insertions(+), 29 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 83545a032e92..e841967b5a73 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -479,10 +479,13 @@ public static class Builder extends StubSettings.BuildernewArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); definitions.put( - "one_plus_delivery", + "non_idempotent", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("none", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "publish", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.ABORTED, @@ -584,12 +587,12 @@ private static Builder initDefaults(Builder builder) { builder .createTopicSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .updateTopicSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder @@ -606,7 +609,7 @@ private static Builder initDefaults(Builder builder) { .build()); builder .publishSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("one_plus_delivery")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("publish")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("messaging")); builder @@ -626,7 +629,7 @@ private static Builder initDefaults(Builder builder) { builder .deleteTopicSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 4ba60dea6b45..f0bc52496598 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -479,16 +479,11 @@ public static class Builder extends StubSettings.BuildernewArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); definitions.put( - "pull", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.RESOURCE_EXHAUSTED, - StatusCode.Code.UNAVAILABLE))); - definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList())); + "non_idempotent", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("none", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -622,7 +617,7 @@ private static Builder initDefaults(Builder builder) { builder .updateSubscriptionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder @@ -632,7 +627,7 @@ private static Builder initDefaults(Builder builder) { builder .deleteSubscriptionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder @@ -642,12 +637,12 @@ private static Builder initDefaults(Builder builder) { builder .acknowledgeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("messaging")); builder .pullSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("pull")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("messaging")); builder @@ -662,22 +657,22 @@ private static Builder initDefaults(Builder builder) { builder .createSnapshotSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .updateSnapshotSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .deleteSnapshotSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder .seekSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index 7af19ab59c17..d8183652373c 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-01-17T08:48:48.620536Z", + "updateTime": "2019-02-13T08:46:41.544485Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.6", - "dockerImage": "googleapis/artman@sha256:12722f2ca3fbc3b53cc6aa5f0e569d7d221b46bd876a2136497089dec5e3634e" + "version": "0.16.13", + "dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0ac60e21a1aa86c07c1836865b35308ba8178b05", - "internalRef": "229626798" + "sha": "ca61898878f0926dd9dcc68ba90764f17133efe4", + "internalRef": "233680013" } } ], From f9cedabb8668ec040c1b3345d27ce087ce233d81 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 21 Feb 2019 13:49:42 -0800 Subject: [PATCH 0119/2363] Release google-cloud-java v0.81.0 (#4536) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index cd2829d411f4..97e347b7769e 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.62.0 + 1.63.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.62.0' +compile 'com.google.cloud:google-cloud-pubsub:1.63.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.63.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 429e53b8df10..b4ee9c8b37ff 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.62.1-SNAPSHOT + 1.63.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.80.1-alpha-SNAPSHOT + 0.81.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6e26483896fa..b5a31f195178 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.44.1-SNAPSHOT + 1.45.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.45.1-SNAPSHOT + 0.46.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a0510c1e3122..8d032dd4ac70 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.44.1-SNAPSHOT + 1.45.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.45.1-SNAPSHOT + 0.46.0 From c21ee32a737291078419f57e533a6c63fa3a5b2c Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Fri, 22 Feb 2019 11:43:45 -0800 Subject: [PATCH 0120/2363] bump next snapshot (#4547) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b4ee9c8b37ff..16bdaf6b0f0c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.63.0 + 1.63.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.81.0-alpha + 0.81.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b5a31f195178..6d9d1dc8b12c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.45.0 + 1.45.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.46.0 + 0.46.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 8d032dd4ac70..24c3045b5904 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.45.0 + 1.45.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.46.0 + 0.46.1-SNAPSHOT From d4de0c418cbfa5cbde74d6e12bf18359f1ce16ce Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Thu, 28 Feb 2019 04:26:16 -0800 Subject: [PATCH 0121/2363] Regenerate pubsub client (#4588) --- .../google-cloud-pubsub/synth.metadata | 10 +- .../com/google/pubsub/v1/PubsubProto.java | 307 ++-- .../java/com/google/pubsub/v1/PushConfig.java | 1273 +++++++++++++++++ .../google/pubsub/v1/PushConfigOrBuilder.java | 36 + .../main/proto/google/pubsub/v1/pubsub.proto | 38 +- 5 files changed, 1512 insertions(+), 152 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index d8183652373c..c596772783e5 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-02-13T08:46:41.544485Z", + "updateTime": "2019-02-28T08:48:09.044830Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.13", - "dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa" + "version": "0.16.14", + "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "ca61898878f0926dd9dcc68ba90764f17133efe4", - "internalRef": "233680013" + "sha": "9c769d3a0e67e4df9b9e8eee480124c2700a7e6c", + "internalRef": "235997788" } } ], diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index cdc7b4ce4539..df3bcc0691d2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -96,6 +96,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ReceivedMessage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -249,152 +253,155 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".pubsub.v1.ExpirationPolicy\032-\n\013LabelsEnt" + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\020Ex" + "pirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.pro" - + "tobuf.Duration\"\230\001\n\nPushConfig\022\025\n\rpush_en" + + "tobuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_en" + "dpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.googl" - + "e.pubsub.v1.PushConfig.AttributesEntry\0321" - + "\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001" - + " \001(\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1" - + ".PubsubMessage\".\n\026GetSubscriptionRequest" - + "\022\024\n\014subscription\030\001 \001(\t\"\202\001\n\031UpdateSubscri" - + "ptionRequest\0224\n\014subscription\030\001 \001(\0132\036.goo" - + "gle.pubsub.v1.Subscription\022/\n\013update_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"R\n\030L" - + "istSubscriptionsRequest\022\017\n\007project\030\001 \001(\t" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" - + "k\n\031ListSubscriptionsResponse\0225\n\rsubscrip" - + "tions\030\001 \003(\0132\036.google.pubsub.v1.Subscript" - + "ion\022\027\n\017next_page_token\030\002 \001(\t\"1\n\031DeleteSu" - + "bscriptionRequest\022\024\n\014subscription\030\001 \001(\t\"" - + "b\n\027ModifyPushConfigRequest\022\024\n\014subscripti" - + "on\030\001 \001(\t\0221\n\013push_config\030\002 \001(\0132\034.google.p" - + "ubsub.v1.PushConfig\"U\n\013PullRequest\022\024\n\014su" - + "bscription\030\001 \001(\t\022\032\n\022return_immediately\030\002" - + " \001(\010\022\024\n\014max_messages\030\003 \001(\005\"L\n\014PullRespon" - + "se\022<\n\021received_messages\030\001 \003(\0132!.google.p" - + "ubsub.v1.ReceivedMessage\"_\n\030ModifyAckDea" - + "dlineRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ac" - + "k_ids\030\004 \003(\t\022\034\n\024ack_deadline_seconds\030\003 \001(" - + "\005\";\n\022AcknowledgeRequest\022\024\n\014subscription\030" - + "\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024StreamingPull" - + "Request\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids" - + "\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030\003 \003(\005\022" - + "\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022#\n\033stre" - + "am_ack_deadline_seconds\030\005 \001(\005\"U\n\025Streami" - + "ngPullResponse\022<\n\021received_messages\030\001 \003(" - + "\0132!.google.pubsub.v1.ReceivedMessage\"\257\001\n" - + "\025CreateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014" - + "subscription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.goo" - + "gle.pubsub.v1.CreateSnapshotRequest.Labe" - + "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"v\n\025UpdateSnapshotRequest\022" - + ",\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Sna" - + "pshot\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(" - + "\t\022\r\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032." - + "google.protobuf.Timestamp\0226\n\006labels\030\004 \003(" - + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" - + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010snapsh" - + "ot\030\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007proj" - + "ect\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsna" - + "pshots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot" - + "\022\027\n\017next_page_token\030\002 \001(\t\")\n\025DeleteSnaps" - + "hotRequest\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequ" - + "est\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132" - + "\032.google.protobuf.TimestampH\000\022\022\n\010snapsho" - + "t\030\003 \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2\277\010\n\t" - + "Publisher\022j\n\013CreateTopic\022\027.google.pubsub" - + ".v1.Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223" - + "\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022}\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTo" - + "picRequest\032\027.google.pubsub.v1.Topic\"/\202\323\344" - + "\223\002)2$/v1/{topic.name=projects/*/topics/*" - + "}:\001*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publ" - + "ishRequest\032!.google.pubsub.v1.PublishRes" - + "ponse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/top" - + "ics/*}:publish:\001*\022o\n\010GetTopic\022!.google.p" - + "ubsub.v1.GetTopicRequest\032\027.google.pubsub" - + ".v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*" - + "/topics/*}\022\200\001\n\nListTopics\022#.google.pubsu" - + "b.v1.ListTopicsRequest\032$.google.pubsub.v" - + "1.ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{proje" - + "ct=projects/*}/topics\022\262\001\n\026ListTopicSubsc" - + "riptions\022/.google.pubsub.v1.ListTopicSub" - + "scriptionsRequest\0320.google.pubsub.v1.Lis" - + "tTopicSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1" - + "/{topic=projects/*/topics/*}/subscriptio" - + "ns\022\242\001\n\022ListTopicSnapshots\022+.google.pubsu" - + "b.v1.ListTopicSnapshotsRequest\032,.google." - + "pubsub.v1.ListTopicSnapshotsResponse\"1\202\323" - + "\344\223\002+\022)/v1/{topic=projects/*/topics/*}/sn" - + "apshots\022t\n\013DeleteTopic\022$.google.pubsub.v" - + "1.DeleteTopicRequest\032\026.google.protobuf.E" - + "mpty\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/topi" - + "cs/*}2\371\021\n\nSubscriber\022\206\001\n\022CreateSubscript" - + "ion\022\036.google.pubsub.v1.Subscription\032\036.go" - + "ogle.pubsub.v1.Subscription\"0\202\323\344\223\002*\032%/v1" - + "/{name=projects/*/subscriptions/*}:\001*\022\222\001" - + "\n\017GetSubscription\022(.google.pubsub.v1.Get" - + "SubscriptionRequest\032\036.google.pubsub.v1.S" - + "ubscription\"5\202\323\344\223\002/\022-/v1/{subscription=p" - + "rojects/*/subscriptions/*}\022\240\001\n\022UpdateSub" - + "scription\022+.google.pubsub.v1.UpdateSubsc" - + "riptionRequest\032\036.google.pubsub.v1.Subscr" - + "iption\"=\202\323\344\223\002722/v1/{subscription.name=p" - + "rojects/*/subscriptions/*}:\001*\022\234\001\n\021ListSu" - + "bscriptions\022*.google.pubsub.v1.ListSubsc" - + "riptionsRequest\032+.google.pubsub.v1.ListS" - + "ubscriptionsResponse\".\202\323\344\223\002(\022&/v1/{proje" - + "ct=projects/*}/subscriptions\022\220\001\n\022DeleteS" - + "ubscription\022+.google.pubsub.v1.DeleteSub" - + "scriptionRequest\032\026.google.protobuf.Empty" - + "\"5\202\323\344\223\002/*-/v1/{subscription=projects/*/s" - + "ubscriptions/*}\022\243\001\n\021ModifyAckDeadline\022*." - + "google.pubsub.v1.ModifyAckDeadlineReques" - + "t\032\026.google.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{" - + "subscription=projects/*/subscriptions/*}" - + ":modifyAckDeadline:\001*\022\221\001\n\013Acknowledge\022$." - + "google.pubsub.v1.AcknowledgeRequest\032\026.go" - + "ogle.protobuf.Empty\"D\202\323\344\223\002>\"9/v1/{subscr" - + "iption=projects/*/subscriptions/*}:ackno" - + "wledge:\001*\022\204\001\n\004Pull\022\035.google.pubsub.v1.Pu" - + "llRequest\032\036.google.pubsub.v1.PullRespons" - + "e\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/" - + "subscriptions/*}:pull:\001*\022f\n\rStreamingPul" - + "l\022&.google.pubsub.v1.StreamingPullReques" - + "t\032\'.google.pubsub.v1.StreamingPullRespon" - + "se\"\000(\0010\001\022\240\001\n\020ModifyPushConfig\022).google.p" - + "ubsub.v1.ModifyPushConfigRequest\032\026.googl" - + "e.protobuf.Empty\"I\202\323\344\223\002C\">/v1/{subscript" - + "ion=projects/*/subscriptions/*}:modifyPu" - + "shConfig:\001*\022~\n\013GetSnapshot\022$.google.pubs" - + "ub.v1.GetSnapshotRequest\032\032.google.pubsub" - + ".v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{snapshot=proj" - + "ects/*/snapshots/*}\022\214\001\n\rListSnapshots\022&." - + "google.pubsub.v1.ListSnapshotsRequest\032\'." - + "google.pubsub.v1.ListSnapshotsResponse\"*" - + "\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapsho" - + "ts\022\203\001\n\016CreateSnapshot\022\'.google.pubsub.v1" - + ".CreateSnapshotRequest\032\032.google.pubsub.v" - + "1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=projects/*" - + "/snapshots/*}:\001*\022\214\001\n\016UpdateSnapshot\022\'.go" - + "ogle.pubsub.v1.UpdateSnapshotRequest\032\032.g" - + "oogle.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{s" - + "napshot.name=projects/*/snapshots/*}:\001*\022" - + "\200\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.De" - + "leteSnapshotRequest\032\026.google.protobuf.Em" - + "pty\"-\202\323\344\223\002\'*%/v1/{snapshot=projects/*/sn" - + "apshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.S" - + "eekRequest\032\036.google.pubsub.v1.SeekRespon" - + "se\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*" - + "/subscriptions/*}:seek:\001*B\256\001\n\024com.google" - + ".pubsub.v1B\013PubsubProtoP\001Z6google.golang" - + ".org/genproto/googleapis/pubsub/v1;pubsu" - + "b\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\C" - + "loud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::" - + "V1b\006proto3" + + "e.pubsub.v1.PushConfig.AttributesEntry\022<" + + "\n\noidc_token\030\003 \001(\0132&.google.pubsub.v1.Pu" + + "shConfig.OidcTokenH\000\0321\n\017AttributesEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032<\n\tOidcT" + + "oken\022\035\n\025service_account_email\030\001 \001(\t\022\020\n\010a" + + "udience\030\002 \001(\tB\027\n\025authentication_method\"S" + + "\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007mes" + + "sage\030\002 \001(\0132\037.google.pubsub.v1.PubsubMess" + + "age\".\n\026GetSubscriptionRequest\022\024\n\014subscri" + + "ption\030\001 \001(\t\"\202\001\n\031UpdateSubscriptionReques" + + "t\0224\n\014subscription\030\001 \001(\0132\036.google.pubsub." + + "v1.Subscription\022/\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMask\"R\n\030ListSubscrip" + + "tionsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubs" + + "criptionsResponse\0225\n\rsubscriptions\030\001 \003(\013" + + "2\036.google.pubsub.v1.Subscription\022\027\n\017next" + + "_page_token\030\002 \001(\t\"1\n\031DeleteSubscriptionR" + + "equest\022\024\n\014subscription\030\001 \001(\t\"b\n\027ModifyPu" + + "shConfigRequest\022\024\n\014subscription\030\001 \001(\t\0221\n" + + "\013push_config\030\002 \001(\0132\034.google.pubsub.v1.Pu" + + "shConfig\"U\n\013PullRequest\022\024\n\014subscription\030" + + "\001 \001(\t\022\032\n\022return_immediately\030\002 \001(\010\022\024\n\014max" + + "_messages\030\003 \001(\005\"L\n\014PullResponse\022<\n\021recei" + + "ved_messages\030\001 \003(\0132!.google.pubsub.v1.Re" + + "ceivedMessage\"_\n\030ModifyAckDeadlineReques" + + "t\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t" + + "\022\034\n\024ack_deadline_seconds\030\003 \001(\005\";\n\022Acknow" + + "ledgeRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ac" + + "k_ids\030\002 \003(\t\"\244\001\n\024StreamingPullRequest\022\024\n\014" + + "subscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027m" + + "odify_deadline_seconds\030\003 \003(\005\022\037\n\027modify_d" + + "eadline_ack_ids\030\004 \003(\t\022#\n\033stream_ack_dead" + + "line_seconds\030\005 \001(\005\"U\n\025StreamingPullRespo" + + "nse\022<\n\021received_messages\030\001 \003(\0132!.google." + + "pubsub.v1.ReceivedMessage\"\257\001\n\025CreateSnap" + + "shotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014subscriptio" + + "n\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.google.pubsub." + + "v1.CreateSnapshotRequest.LabelsEntry\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"v\n\025UpdateSnapshotRequest\022,\n\010snapshot" + + "\030\001 \001(\0132\032.google.pubsub.v1.Snapshot\022/\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030" + + "\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.google.prot" + + "obuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.google." + + "pubsub.v1.Snapshot.LabelsEntry\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"&\n" + + "\022GetSnapshotRequest\022\020\n\010snapshot\030\001 \001(\t\"N\n" + + "\024ListSnapshotsRequest\022\017\n\007project\030\001 \001(\t\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n" + + "\025ListSnapshotsResponse\022-\n\tsnapshots\030\001 \003(" + + "\0132\032.google.pubsub.v1.Snapshot\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\")\n\025DeleteSnapshotRequest\022" + + "\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest\022\024\n\014subs" + + "cription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampH\000\022\022\n\010snapshot\030\003 \001(\tH\000B\010" + + "\n\006target\"\016\n\014SeekResponse2\277\010\n\tPublisher\022j" + + "\n\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027" + + ".google.pubsub.v1.Topic\")\202\323\344\223\002#\032\036/v1/{na" + + "me=projects/*/topics/*}:\001*\022}\n\013UpdateTopi" + + "c\022$.google.pubsub.v1.UpdateTopicRequest\032" + + "\027.google.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{t" + + "opic.name=projects/*/topics/*}:\001*\022\202\001\n\007Pu" + + "blish\022 .google.pubsub.v1.PublishRequest\032" + + "!.google.pubsub.v1.PublishResponse\"2\202\323\344\223" + + "\002,\"\'/v1/{topic=projects/*/topics/*}:publ" + + "ish:\001*\022o\n\010GetTopic\022!.google.pubsub.v1.Ge" + + "tTopicRequest\032\027.google.pubsub.v1.Topic\"\'" + + "\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022" + + "\200\001\n\nListTopics\022#.google.pubsub.v1.ListTo" + + "picsRequest\032$.google.pubsub.v1.ListTopic" + + "sResponse\"\'\202\323\344\223\002!\022\037/v1/{project=projects" + + "/*}/topics\022\262\001\n\026ListTopicSubscriptions\022/." + + "google.pubsub.v1.ListTopicSubscriptionsR" + + "equest\0320.google.pubsub.v1.ListTopicSubsc" + + "riptionsResponse\"5\202\323\344\223\002/\022-/v1/{topic=pro" + + "jects/*/topics/*}/subscriptions\022\242\001\n\022List" + + "TopicSnapshots\022+.google.pubsub.v1.ListTo" + + "picSnapshotsRequest\032,.google.pubsub.v1.L" + + "istTopicSnapshotsResponse\"1\202\323\344\223\002+\022)/v1/{" + + "topic=projects/*/topics/*}/snapshots\022t\n\013" + + "DeleteTopic\022$.google.pubsub.v1.DeleteTop" + + "icRequest\032\026.google.protobuf.Empty\"\'\202\323\344\223\002" + + "!*\037/v1/{topic=projects/*/topics/*}2\371\021\n\nS" + + "ubscriber\022\206\001\n\022CreateSubscription\022\036.googl" + + "e.pubsub.v1.Subscription\032\036.google.pubsub" + + ".v1.Subscription\"0\202\323\344\223\002*\032%/v1/{name=proj" + + "ects/*/subscriptions/*}:\001*\022\222\001\n\017GetSubscr" + + "iption\022(.google.pubsub.v1.GetSubscriptio" + + "nRequest\032\036.google.pubsub.v1.Subscription" + + "\"5\202\323\344\223\002/\022-/v1/{subscription=projects/*/s" + + "ubscriptions/*}\022\240\001\n\022UpdateSubscription\022+" + + ".google.pubsub.v1.UpdateSubscriptionRequ" + + "est\032\036.google.pubsub.v1.Subscription\"=\202\323\344" + + "\223\002722/v1/{subscription.name=projects/*/s" + + "ubscriptions/*}:\001*\022\234\001\n\021ListSubscriptions" + + "\022*.google.pubsub.v1.ListSubscriptionsReq" + + "uest\032+.google.pubsub.v1.ListSubscription" + + "sResponse\".\202\323\344\223\002(\022&/v1/{project=projects" + + "/*}/subscriptions\022\220\001\n\022DeleteSubscription" + + "\022+.google.pubsub.v1.DeleteSubscriptionRe" + + "quest\032\026.google.protobuf.Empty\"5\202\323\344\223\002/*-/" + + "v1/{subscription=projects/*/subscription" + + "s/*}\022\243\001\n\021ModifyAckDeadline\022*.google.pubs" + + "ub.v1.ModifyAckDeadlineRequest\032\026.google." + + "protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{subscriptio" + + "n=projects/*/subscriptions/*}:modifyAckD" + + "eadline:\001*\022\221\001\n\013Acknowledge\022$.google.pubs" + + "ub.v1.AcknowledgeRequest\032\026.google.protob" + + "uf.Empty\"D\202\323\344\223\002>\"9/v1/{subscription=proj" + + "ects/*/subscriptions/*}:acknowledge:\001*\022\204" + + "\001\n\004Pull\022\035.google.pubsub.v1.PullRequest\032\036" + + ".google.pubsub.v1.PullResponse\"=\202\323\344\223\0027\"2" + + "/v1/{subscription=projects/*/subscriptio" + + "ns/*}:pull:\001*\022f\n\rStreamingPull\022&.google." + + "pubsub.v1.StreamingPullRequest\032\'.google." + + "pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\240\001" + + "\n\020ModifyPushConfig\022).google.pubsub.v1.Mo" + + "difyPushConfigRequest\032\026.google.protobuf." + + "Empty\"I\202\323\344\223\002C\">/v1/{subscription=project" + + "s/*/subscriptions/*}:modifyPushConfig:\001*" + + "\022~\n\013GetSnapshot\022$.google.pubsub.v1.GetSn" + + "apshotRequest\032\032.google.pubsub.v1.Snapsho" + + "t\"-\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snap" + + "shots/*}\022\214\001\n\rListSnapshots\022&.google.pubs" + + "ub.v1.ListSnapshotsRequest\032\'.google.pubs" + + "ub.v1.ListSnapshotsResponse\"*\202\323\344\223\002$\022\"/v1" + + "/{project=projects/*}/snapshots\022\203\001\n\016Crea" + + "teSnapshot\022\'.google.pubsub.v1.CreateSnap" + + "shotRequest\032\032.google.pubsub.v1.Snapshot\"" + + ",\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/" + + "*}:\001*\022\214\001\n\016UpdateSnapshot\022\'.google.pubsub" + + ".v1.UpdateSnapshotRequest\032\032.google.pubsu" + + "b.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot.nam" + + "e=projects/*/snapshots/*}:\001*\022\200\001\n\016DeleteS" + + "napshot\022\'.google.pubsub.v1.DeleteSnapsho" + + "tRequest\032\026.google.protobuf.Empty\"-\202\323\344\223\002\'" + + "*%/v1/{snapshot=projects/*/snapshots/*}\022" + + "\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRequest\032" + + "\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"" + + "2/v1/{subscription=projects/*/subscripti" + + "ons/*}:seek:\001*B\256\001\n\024com.google.pubsub.v1B" + + "\013PubsubProtoP\001Z6google.golang.org/genpro" + + "to/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026Goog" + + "le.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub" + + "\\V1\352\002\031Google::Cloud::PubSub::V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -578,7 +585,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, new java.lang.String[] { - "PushEndpoint", "Attributes", + "PushEndpoint", "Attributes", "OidcToken", "AuthenticationMethod", }); internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0); @@ -588,6 +595,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor, + new java.lang.String[] { + "ServiceAccountEmail", "Audience", + }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 5f483cb689e1..2f4ea218ae06 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -72,6 +72,24 @@ private PushConfig( attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue()); break; } + case 26: + { + com.google.pubsub.v1.PushConfig.OidcToken.Builder subBuilder = null; + if (authenticationMethodCase_ == 3) { + subBuilder = + ((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_).toBuilder(); + } + authenticationMethod_ = + input.readMessage( + com.google.pubsub.v1.PushConfig.OidcToken.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); + authenticationMethod_ = subBuilder.buildPartial(); + } + authenticationMethodCase_ = 3; + break; + } default: { if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { @@ -115,7 +133,944 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.PushConfig.class, com.google.pubsub.v1.PushConfig.Builder.class); } + public interface OidcTokenOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig.OidcToken) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * [Service account
    +     * email](https://cloud.google.com/iam/docs/service-accounts)
    +     * to be used for generating the OIDC token. The caller (for
    +     * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
    +     * have the iam.serviceAccounts.actAs permission for the service account.
    +     * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
    +     * 
    + * + * string service_account_email = 1; + */ + java.lang.String getServiceAccountEmail(); + /** + * + * + *
    +     * [Service account
    +     * email](https://cloud.google.com/iam/docs/service-accounts)
    +     * to be used for generating the OIDC token. The caller (for
    +     * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
    +     * have the iam.serviceAccounts.actAs permission for the service account.
    +     * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
    +     * 
    + * + * string service_account_email = 1; + */ + com.google.protobuf.ByteString getServiceAccountEmailBytes(); + + /** + * + * + *
    +     * Audience to be used when generating OIDC token. The audience claim
    +     * identifies the recipients that the JWT is intended for. The audience
    +     * value is a single case-sensitive string. Having multiple values (array)
    +     * for the audience field is not supported. More info about the OIDC JWT
    +     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    +     * Note: if not specified, the Push endpoint URL will be used.
    +     * 
    + * + * string audience = 2; + */ + java.lang.String getAudience(); + /** + * + * + *
    +     * Audience to be used when generating OIDC token. The audience claim
    +     * identifies the recipients that the JWT is intended for. The audience
    +     * value is a single case-sensitive string. Having multiple values (array)
    +     * for the audience field is not supported. More info about the OIDC JWT
    +     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    +     * Note: if not specified, the Push endpoint URL will be used.
    +     * 
    + * + * string audience = 2; + */ + com.google.protobuf.ByteString getAudienceBytes(); + } + /** + * + * + *
    +   * Contains information needed for generating an
    +   * [OpenID Connect
    +   * token](https://developers.google.com/identity/protocols/OpenIDConnect).
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.PushConfig.OidcToken} + */ + public static final class OidcToken extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.OidcToken) + OidcTokenOrBuilder { + private static final long serialVersionUID = 0L; + // Use OidcToken.newBuilder() to construct. + private OidcToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OidcToken() { + serviceAccountEmail_ = ""; + audience_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private OidcToken( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccountEmail_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + audience_ = s; + break; + } + default: + { + if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PushConfig.OidcToken.class, + com.google.pubsub.v1.PushConfig.OidcToken.Builder.class); + } + + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 1; + private volatile java.lang.Object serviceAccountEmail_; + /** + * + * + *
    +     * [Service account
    +     * email](https://cloud.google.com/iam/docs/service-accounts)
    +     * to be used for generating the OIDC token. The caller (for
    +     * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
    +     * have the iam.serviceAccounts.actAs permission for the service account.
    +     * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
    +     * 
    + * + * string service_account_email = 1; + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } + } + /** + * + * + *
    +     * [Service account
    +     * email](https://cloud.google.com/iam/docs/service-accounts)
    +     * to be used for generating the OIDC token. The caller (for
    +     * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
    +     * have the iam.serviceAccounts.actAs permission for the service account.
    +     * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
    +     * 
    + * + * string service_account_email = 1; + */ + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUDIENCE_FIELD_NUMBER = 2; + private volatile java.lang.Object audience_; + /** + * + * + *
    +     * Audience to be used when generating OIDC token. The audience claim
    +     * identifies the recipients that the JWT is intended for. The audience
    +     * value is a single case-sensitive string. Having multiple values (array)
    +     * for the audience field is not supported. More info about the OIDC JWT
    +     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    +     * Note: if not specified, the Push endpoint URL will be used.
    +     * 
    + * + * string audience = 2; + */ + public java.lang.String getAudience() { + java.lang.Object ref = audience_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audience_ = s; + return s; + } + } + /** + * + * + *
    +     * Audience to be used when generating OIDC token. The audience claim
    +     * identifies the recipients that the JWT is intended for. The audience
    +     * value is a single case-sensitive string. Having multiple values (array)
    +     * for the audience field is not supported. More info about the OIDC JWT
    +     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    +     * Note: if not specified, the Push endpoint URL will be used.
    +     * 
    + * + * string audience = 2; + */ + public com.google.protobuf.ByteString getAudienceBytes() { + java.lang.Object ref = audience_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + audience_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getServiceAccountEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); + } + if (!getAudienceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getServiceAccountEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); + } + if (!getAudienceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.PushConfig.OidcToken)) { + return super.equals(obj); + } + com.google.pubsub.v1.PushConfig.OidcToken other = + (com.google.pubsub.v1.PushConfig.OidcToken) obj; + + boolean result = true; + result = result && getServiceAccountEmail().equals(other.getServiceAccountEmail()); + result = result && getAudience().equals(other.getAudience()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); + hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudience().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.PushConfig.OidcToken prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Contains information needed for generating an
    +     * [OpenID Connect
    +     * token](https://developers.google.com/identity/protocols/OpenIDConnect).
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.PushConfig.OidcToken} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig.OidcToken) + com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PushConfig.OidcToken.class, + com.google.pubsub.v1.PushConfig.OidcToken.Builder.class); + } + + // Construct using com.google.pubsub.v1.PushConfig.OidcToken.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + serviceAccountEmail_ = ""; + + audience_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstanceForType() { + return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.OidcToken build() { + com.google.pubsub.v1.PushConfig.OidcToken result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.OidcToken buildPartial() { + com.google.pubsub.v1.PushConfig.OidcToken result = + new com.google.pubsub.v1.PushConfig.OidcToken(this); + result.serviceAccountEmail_ = serviceAccountEmail_; + result.audience_ = audience_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.PushConfig.OidcToken) { + return mergeFrom((com.google.pubsub.v1.PushConfig.OidcToken) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PushConfig.OidcToken other) { + if (other == com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance()) return this; + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + onChanged(); + } + if (!other.getAudience().isEmpty()) { + audience_ = other.audience_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.PushConfig.OidcToken parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.PushConfig.OidcToken) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
    +       * [Service account
    +       * email](https://cloud.google.com/iam/docs/service-accounts)
    +       * to be used for generating the OIDC token. The caller (for
    +       * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
    +       * have the iam.serviceAccounts.actAs permission for the service account.
    +       * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
    +       * 
    + * + * string service_account_email = 1; + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * [Service account
    +       * email](https://cloud.google.com/iam/docs/service-accounts)
    +       * to be used for generating the OIDC token. The caller (for
    +       * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
    +       * have the iam.serviceAccounts.actAs permission for the service account.
    +       * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
    +       * 
    + * + * string service_account_email = 1; + */ + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * [Service account
    +       * email](https://cloud.google.com/iam/docs/service-accounts)
    +       * to be used for generating the OIDC token. The caller (for
    +       * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
    +       * have the iam.serviceAccounts.actAs permission for the service account.
    +       * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
    +       * 
    + * + * string service_account_email = 1; + */ + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccountEmail_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +       * [Service account
    +       * email](https://cloud.google.com/iam/docs/service-accounts)
    +       * to be used for generating the OIDC token. The caller (for
    +       * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
    +       * have the iam.serviceAccounts.actAs permission for the service account.
    +       * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
    +       * 
    + * + * string service_account_email = 1; + */ + public Builder clearServiceAccountEmail() { + + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + onChanged(); + return this; + } + /** + * + * + *
    +       * [Service account
    +       * email](https://cloud.google.com/iam/docs/service-accounts)
    +       * to be used for generating the OIDC token. The caller (for
    +       * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must
    +       * have the iam.serviceAccounts.actAs permission for the service account.
    +       * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles.
    +       * 
    + * + * string service_account_email = 1; + */ + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccountEmail_ = value; + onChanged(); + return this; + } + + private java.lang.Object audience_ = ""; + /** + * + * + *
    +       * Audience to be used when generating OIDC token. The audience claim
    +       * identifies the recipients that the JWT is intended for. The audience
    +       * value is a single case-sensitive string. Having multiple values (array)
    +       * for the audience field is not supported. More info about the OIDC JWT
    +       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    +       * Note: if not specified, the Push endpoint URL will be used.
    +       * 
    + * + * string audience = 2; + */ + public java.lang.String getAudience() { + java.lang.Object ref = audience_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + audience_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Audience to be used when generating OIDC token. The audience claim
    +       * identifies the recipients that the JWT is intended for. The audience
    +       * value is a single case-sensitive string. Having multiple values (array)
    +       * for the audience field is not supported. More info about the OIDC JWT
    +       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    +       * Note: if not specified, the Push endpoint URL will be used.
    +       * 
    + * + * string audience = 2; + */ + public com.google.protobuf.ByteString getAudienceBytes() { + java.lang.Object ref = audience_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + audience_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Audience to be used when generating OIDC token. The audience claim
    +       * identifies the recipients that the JWT is intended for. The audience
    +       * value is a single case-sensitive string. Having multiple values (array)
    +       * for the audience field is not supported. More info about the OIDC JWT
    +       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    +       * Note: if not specified, the Push endpoint URL will be used.
    +       * 
    + * + * string audience = 2; + */ + public Builder setAudience(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + audience_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +       * Audience to be used when generating OIDC token. The audience claim
    +       * identifies the recipients that the JWT is intended for. The audience
    +       * value is a single case-sensitive string. Having multiple values (array)
    +       * for the audience field is not supported. More info about the OIDC JWT
    +       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    +       * Note: if not specified, the Push endpoint URL will be used.
    +       * 
    + * + * string audience = 2; + */ + public Builder clearAudience() { + + audience_ = getDefaultInstance().getAudience(); + onChanged(); + return this; + } + /** + * + * + *
    +       * Audience to be used when generating OIDC token. The audience claim
    +       * identifies the recipients that the JWT is intended for. The audience
    +       * value is a single case-sensitive string. Having multiple values (array)
    +       * for the audience field is not supported. More info about the OIDC JWT
    +       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    +       * Note: if not specified, the Push endpoint URL will be used.
    +       * 
    + * + * string audience = 2; + */ + public Builder setAudienceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + audience_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig.OidcToken) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.OidcToken) + private static final com.google.pubsub.v1.PushConfig.OidcToken DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig.OidcToken(); + } + + public static com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OidcToken parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OidcToken(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; + private int authenticationMethodCase_ = 0; + private java.lang.Object authenticationMethod_; + + public enum AuthenticationMethodCase implements com.google.protobuf.Internal.EnumLite { + OIDC_TOKEN(3), + AUTHENTICATIONMETHOD_NOT_SET(0); + private final int value; + + private AuthenticationMethodCase(int value) { + this.value = value; + } + /** @deprecated Use {@link #forNumber(int)} instead. */ + @java.lang.Deprecated + public static AuthenticationMethodCase valueOf(int value) { + return forNumber(value); + } + + public static AuthenticationMethodCase forNumber(int value) { + switch (value) { + case 3: + return OIDC_TOKEN; + case 0: + return AUTHENTICATIONMETHOD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + } + public static final int PUSH_ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object pushEndpoint_; /** @@ -315,6 +1270,53 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { return map.get(key); } + public static final int OIDC_TOKEN_FIELD_NUMBER = 3; + /** + * + * + *
    +   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +   * `Authorization` header in the HTTP request for every pushed message.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public boolean hasOidcToken() { + return authenticationMethodCase_ == 3; + } + /** + * + * + *
    +   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +   * `Authorization` header in the HTTP request for every pushed message.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { + if (authenticationMethodCase_ == 3) { + return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; + } + return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); + } + /** + * + * + *
    +   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +   * `Authorization` header in the HTTP request for every pushed message.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() { + if (authenticationMethodCase_ == 3) { + return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; + } + return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -334,6 +1336,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); + if (authenticationMethodCase_ == 3) { + output.writeMessage(3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); + } unknownFields.writeTo(output); } @@ -356,6 +1361,11 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attributes__); } + if (authenticationMethodCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -374,6 +1384,15 @@ public boolean equals(final java.lang.Object obj) { boolean result = true; result = result && getPushEndpoint().equals(other.getPushEndpoint()); result = result && internalGetAttributes().equals(other.internalGetAttributes()); + result = result && getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase()); + if (!result) return false; + switch (authenticationMethodCase_) { + case 3: + result = result && getOidcToken().equals(other.getOidcToken()); + break; + case 0: + default: + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -391,6 +1410,14 @@ public int hashCode() { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributes().hashCode(); } + switch (authenticationMethodCase_) { + case 3: + hash = (37 * hash) + OIDC_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getOidcToken().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -557,6 +1584,8 @@ public Builder clear() { pushEndpoint_ = ""; internalGetMutableAttributes().clear(); + authenticationMethodCase_ = 0; + authenticationMethod_ = null; return this; } @@ -588,7 +1617,15 @@ public com.google.pubsub.v1.PushConfig buildPartial() { result.pushEndpoint_ = pushEndpoint_; result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); + if (authenticationMethodCase_ == 3) { + if (oidcTokenBuilder_ == null) { + result.authenticationMethod_ = authenticationMethod_; + } else { + result.authenticationMethod_ = oidcTokenBuilder_.build(); + } + } result.bitField0_ = to_bitField0_; + result.authenticationMethodCase_ = authenticationMethodCase_; onBuilt(); return result; } @@ -643,6 +1680,17 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { onChanged(); } internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + switch (other.getAuthenticationMethodCase()) { + case OIDC_TOKEN: + { + mergeOidcToken(other.getOidcToken()); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -672,6 +1720,20 @@ public Builder mergeFrom( return this; } + private int authenticationMethodCase_ = 0; + private java.lang.Object authenticationMethod_; + + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + } + + public Builder clearAuthenticationMethod() { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object pushEndpoint_ = ""; @@ -1033,6 +2095,217 @@ public Builder putAllAttributes(java.util.Map + oidcTokenBuilder_; + /** + * + * + *
    +     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +     * `Authorization` header in the HTTP request for every pushed message.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public boolean hasOidcToken() { + return authenticationMethodCase_ == 3; + } + /** + * + * + *
    +     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +     * `Authorization` header in the HTTP request for every pushed message.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { + if (oidcTokenBuilder_ == null) { + if (authenticationMethodCase_ == 3) { + return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; + } + return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); + } else { + if (authenticationMethodCase_ == 3) { + return oidcTokenBuilder_.getMessage(); + } + return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); + } + } + /** + * + * + *
    +     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +     * `Authorization` header in the HTTP request for every pushed message.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { + if (oidcTokenBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authenticationMethod_ = value; + onChanged(); + } else { + oidcTokenBuilder_.setMessage(value); + } + authenticationMethodCase_ = 3; + return this; + } + /** + * + * + *
    +     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +     * `Authorization` header in the HTTP request for every pushed message.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder builderForValue) { + if (oidcTokenBuilder_ == null) { + authenticationMethod_ = builderForValue.build(); + onChanged(); + } else { + oidcTokenBuilder_.setMessage(builderForValue.build()); + } + authenticationMethodCase_ = 3; + return this; + } + /** + * + * + *
    +     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +     * `Authorization` header in the HTTP request for every pushed message.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { + if (oidcTokenBuilder_ == null) { + if (authenticationMethodCase_ == 3 + && authenticationMethod_ + != com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance()) { + authenticationMethod_ = + com.google.pubsub.v1.PushConfig.OidcToken.newBuilder( + (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_) + .mergeFrom(value) + .buildPartial(); + } else { + authenticationMethod_ = value; + } + onChanged(); + } else { + if (authenticationMethodCase_ == 3) { + oidcTokenBuilder_.mergeFrom(value); + } + oidcTokenBuilder_.setMessage(value); + } + authenticationMethodCase_ = 3; + return this; + } + /** + * + * + *
    +     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +     * `Authorization` header in the HTTP request for every pushed message.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public Builder clearOidcToken() { + if (oidcTokenBuilder_ == null) { + if (authenticationMethodCase_ == 3) { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + onChanged(); + } + } else { + if (authenticationMethodCase_ == 3) { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + } + oidcTokenBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +     * `Authorization` header in the HTTP request for every pushed message.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public com.google.pubsub.v1.PushConfig.OidcToken.Builder getOidcTokenBuilder() { + return getOidcTokenFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +     * `Authorization` header in the HTTP request for every pushed message.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() { + if ((authenticationMethodCase_ == 3) && (oidcTokenBuilder_ != null)) { + return oidcTokenBuilder_.getMessageOrBuilder(); + } else { + if (authenticationMethodCase_ == 3) { + return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; + } + return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); + } + } + /** + * + * + *
    +     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +     * `Authorization` header in the HTTP request for every pushed message.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.OidcToken, + com.google.pubsub.v1.PushConfig.OidcToken.Builder, + com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder> + getOidcTokenFieldBuilder() { + if (oidcTokenBuilder_ == null) { + if (!(authenticationMethodCase_ == 3)) { + authenticationMethod_ = com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); + } + oidcTokenBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.OidcToken, + com.google.pubsub.v1.PushConfig.OidcToken.Builder, + com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder>( + (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_, + getParentForChildren(), + isClean()); + authenticationMethod_ = null; + } + authenticationMethodCase_ = 3; + onChanged(); + ; + return oidcTokenBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index d03adf60bebc..b43de54a3da1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -159,4 +159,40 @@ public interface PushConfigOrBuilder * map<string, string> attributes = 2; */ java.lang.String getAttributesOrThrow(java.lang.String key); + + /** + * + * + *
    +   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +   * `Authorization` header in the HTTP request for every pushed message.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + boolean hasOidcToken(); + /** + * + * + *
    +   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +   * `Authorization` header in the HTTP request for every pushed message.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + com.google.pubsub.v1.PushConfig.OidcToken getOidcToken(); + /** + * + * + *
    +   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    +   * `Authorization` header in the HTTP request for every pushed message.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + */ + com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(); + + public com.google.pubsub.v1.PushConfig.AuthenticationMethodCase getAuthenticationMethodCase(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 02d0bf34b3ee..095a37b156fd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -651,6 +651,42 @@ message PushConfig { // * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. // * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. map attributes = 2; + + // An authentication method used by push endpoints to verify the source of + // push requests. This can be used with push endpoints that are private by + // default to allow requests only from the Cloud Pub/Sub system, for example. + // This field is optional and should be set only by users interested in + // authenticated push. + // EXPERIMENTAL: This field a part of a closed alpha that may not be + // accessible to all users. It may be changed in backward-incompatible ways + // and is not subject to any SLA or deprecation policy. It is not recommended + // for production use. + oneof authentication_method { + // If specified, Pub/Sub will generate and attach an OIDC JWT token as an + // `Authorization` header in the HTTP request for every pushed message. + OidcToken oidc_token = 3; + } + + // Contains information needed for generating an + // [OpenID Connect + // token](https://developers.google.com/identity/protocols/OpenIDConnect). + message OidcToken { + // [Service account + // email](https://cloud.google.com/iam/docs/service-accounts) + // to be used for generating the OIDC token. The caller (for + // CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must + // have the iam.serviceAccounts.actAs permission for the service account. + // See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. + string service_account_email = 1; + + // Audience to be used when generating OIDC token. The audience claim + // identifies the recipients that the JWT is intended for. The audience + // value is a single case-sensitive string. Having multiple values (array) + // for the audience field is not supported. More info about the OIDC JWT + // token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 + // Note: if not specified, the Push endpoint URL will be used. + string audience = 2; + } } // A message and its corresponding acknowledgment ID. From 2027e6adbffded84d7359c4565af1ac59a0c3a72 Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Thu, 28 Feb 2019 10:52:01 -0500 Subject: [PATCH 0122/2363] Remove package private dead code from the subscriber client library. None of this code is ever called, and none of it is usable outside of the library. (#4589) --- .../v1/StreamingSubscriberConnection.java | 46 -------- .../google/cloud/pubsub/v1/Subscriber.java | 63 +--------- .../v1/StreamingSubscriberConnectionTest.java | 111 ------------------ 3 files changed, 3 insertions(+), 217 deletions(-) delete mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index f8892fdf6dd4..defd66806a84 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -21,7 +21,6 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutureCallback; import com.google.api.core.ApiFutures; -import com.google.api.core.InternalApi; import com.google.api.core.SettableApiFuture; import com.google.api.gax.batching.FlowController; import com.google.api.gax.core.Distribution; @@ -43,7 +42,6 @@ import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; import io.grpc.Status; -import java.util.ArrayList; import java.util.Deque; import java.util.List; import java.util.concurrent.ScheduledExecutorService; @@ -317,48 +315,4 @@ public void onFailure(Throwable t) { ApiFutures.addCallback(future, loggingCallback); } } - - @InternalApi - static List partitionAckOperations( - List acksToSend, List ackDeadlineExtensions, int size) { - int numExtensions = 0; - for (PendingModifyAckDeadline modify : ackDeadlineExtensions) { - numExtensions += modify.ackIds.size(); - } - int numChanges = Math.max(numExtensions, acksToSend.size()); - int numRequests = numChanges / size + (numChanges % size == 0 ? 0 : 1); - - List requests = new ArrayList<>(numRequests); - for (int i = 0; i < numRequests; i++) { - requests.add(StreamingPullRequest.newBuilder()); - } - - int reqCount = 0; - for (List acksChunk : Lists.partition(acksToSend, size)) { - requests.get(reqCount).addAllAckIds(acksChunk); - reqCount++; - } - - reqCount = 0; - int ackCount = 0; - for (PendingModifyAckDeadline modify : ackDeadlineExtensions) { - for (String ackId : modify.ackIds) { - requests - .get(reqCount) - .addModifyDeadlineSeconds(modify.deadlineExtensionSeconds) - .addModifyDeadlineAckIds(ackId); - ackCount++; - if (ackCount == size) { - reqCount++; - ackCount = 0; - } - } - } - - List ret = new ArrayList<>(requests.size()); - for (StreamingPullRequest.Builder builder : requests) { - ret.add(builder.build()); - } - return ret; - } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 41d60c3a2bc9..ed5e8551d75e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -48,7 +48,6 @@ import java.util.LinkedList; import java.util.List; import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.ScheduledFuture; import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.Nullable; @@ -94,6 +93,7 @@ public class Subscriber extends AbstractApiService { @InternalApi static final int MAX_ACK_DEADLINE_SECONDS = 600; @InternalApi static final int MIN_ACK_DEADLINE_SECONDS = 10; private static final Duration UNARY_TIMEOUT = Duration.ofSeconds(60); + private static final Duration ACK_EXPIRATION_PADDING = Duration.ofSeconds(5); private static final ScheduledExecutorService SHARED_SYSTEM_EXECUTOR = InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(6).build().getExecutor(); @@ -102,7 +102,6 @@ public class Subscriber extends AbstractApiService { private final String subscriptionName; private final FlowControlSettings flowControlSettings; - private final Duration ackExpirationPadding; private final Duration maxAckExtensionPeriod; private final ScheduledExecutorService executor; @Nullable private final ScheduledExecutorService alarmsExecutor; @@ -120,20 +119,12 @@ public class Subscriber extends AbstractApiService { new LinkedList<>(); private final ApiClock clock; private final List closeables = new ArrayList<>(); - private ScheduledFuture ackDeadlineUpdater; private Subscriber(Builder builder) { receiver = builder.receiver; flowControlSettings = builder.flowControlSettings; subscriptionName = builder.subscriptionName; - Preconditions.checkArgument( - builder.ackExpirationPadding.compareTo(Duration.ZERO) > 0, "padding must be positive"); - Preconditions.checkArgument( - builder.ackExpirationPadding.compareTo(Duration.ofSeconds(MIN_ACK_DEADLINE_SECONDS)) < 0, - "padding must be less than %s seconds", - MIN_ACK_DEADLINE_SECONDS); - ackExpirationPadding = builder.ackExpirationPadding; maxAckExtensionPeriod = builder.maxAckExtensionPeriod; clock = builder.clock.isPresent() ? builder.clock.get() : CurrentMillisClock.getDefaultClock(); @@ -228,12 +219,6 @@ public String getSubscriptionNameString() { return subscriptionName; } - /** Acknowledgement expiration padding. See {@link Builder#setAckExpirationPadding}. */ - @InternalApi - Duration getAckExpirationPadding() { - return ackExpirationPadding; - } - /** The flow control settings the Subscriber is configured with. */ public FlowControlSettings getFlowControlSettings() { return flowControlSettings; @@ -331,14 +316,14 @@ public void run() { .start(); } - private void startStreamingConnections() throws IOException { + private void startStreamingConnections() { synchronized (streamingSubscriberConnections) { for (int i = 0; i < numPullers; i++) { streamingSubscriberConnections.add( new StreamingSubscriberConnection( subscriptionName, receiver, - ackExpirationPadding, + ACK_EXPIRATION_PADDING, maxAckExtensionPeriod, ackLatencyDistribution, subStub, @@ -372,9 +357,6 @@ public void failed(State from, Throwable failure) { private void stopAllStreamingConnections() { stopConnections(streamingSubscriberConnections); - if (ackDeadlineUpdater != null) { - ackDeadlineUpdater.cancel(true); - } } private void startConnections( @@ -410,8 +392,6 @@ private void stopConnections(List connections) { /** Builder of {@link Subscriber Subscribers}. */ public static final class Builder { - private static final Duration MIN_ACK_EXPIRATION_PADDING = Duration.ofMillis(100); - private static final Duration DEFAULT_ACK_EXPIRATION_PADDING = Duration.ofSeconds(5); private static final Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); static final ExecutorProvider DEFAULT_EXECUTOR_PROVIDER = @@ -423,7 +403,6 @@ public static final class Builder { String subscriptionName; MessageReceiver receiver; - Duration ackExpirationPadding = DEFAULT_ACK_EXPIRATION_PADDING; Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; FlowControlSettings flowControlSettings = @@ -437,8 +416,6 @@ public static final class Builder { .setKeepAliveTime(Duration.ofMinutes(5)) .build(); HeaderProvider headerProvider = new NoHeaderProvider(); - HeaderProvider internalHeaderProvider = - SubscriptionAdminSettings.defaultApiClientHeaderProviderBuilder().build(); CredentialsProvider credentialsProvider = SubscriptionAdminSettings.defaultCredentialsProviderBuilder().build(); Optional clock = Optional.absent(); @@ -478,21 +455,6 @@ public Builder setHeaderProvider(HeaderProvider headerProvider) { return this; } - /** - * Sets the static header provider for getting internal (library-defined) headers. The header - * provider will be called during client construction only once. The headers returned by the - * provider will be cached and supplied as is for each request issued by the constructed client. - * Some reserved headers can be overridden (e.g. Content-Type) or merged with the default value - * (e.g. User-Agent) by the underlying transport layer. - * - * @param internalHeaderProvider the internal header provider - * @return the builder - */ - Builder setInternalHeaderProvider(HeaderProvider internalHeaderProvider) { - this.internalHeaderProvider = Preconditions.checkNotNull(internalHeaderProvider); - return this; - } - /** * Sets the flow control settings. * @@ -523,25 +485,6 @@ public Builder setFlowControlSettings(FlowControlSettings flowControlSettings) { return this; } - /** - * Set acknowledgement expiration padding. - * - *

    This is the time accounted before a message expiration is to happen, so the {@link - * Subscriber} is able to send an ack extension beforehand. - * - *

    This padding duration is configurable so you can account for network latency. A reasonable - * number must be provided so messages don't expire because of network latency between when the - * ack extension is required and when it reaches the Pub/Sub service. - * - * @param ackExpirationPadding must be greater or equal to {@link #MIN_ACK_EXPIRATION_PADDING} - */ - @InternalApi - Builder setAckExpirationPadding(Duration ackExpirationPadding) { - Preconditions.checkArgument(ackExpirationPadding.compareTo(MIN_ACK_EXPIRATION_PADDING) >= 0); - this.ackExpirationPadding = ackExpirationPadding; - return this; - } - /** * Set the maximum period a message ack deadline will be extended. Defaults to one hour. * diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java deleted file mode 100644 index 0dfcb4241730..000000000000 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2017 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.pubsub.v1; - -import com.google.cloud.pubsub.v1.MessageDispatcher.PendingModifyAckDeadline; -import com.google.common.truth.Truth; -import com.google.pubsub.v1.StreamingPullRequest; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -import org.junit.Test; - -public class StreamingSubscriberConnectionTest { - @Test - public void testPartitionAckOperations() { - List requests; - - requests = - StreamingSubscriberConnection.partitionAckOperations( - Collections.emptyList(), Collections.emptyList(), 3); - Truth.assertThat(requests).isEmpty(); - - requests = - StreamingSubscriberConnection.partitionAckOperations( - Arrays.asList("a", "b", "c"), Collections.emptyList(), 3); - Truth.assertThat(requests) - .containsExactly( - StreamingPullRequest.newBuilder().addAckIds("a").addAckIds("b").addAckIds("c").build()) - .inOrder(); - - requests = - StreamingSubscriberConnection.partitionAckOperations( - Arrays.asList("a", "b", "c", "d"), - Collections.emptyList(), - 3); - Truth.assertThat(requests) - .containsExactly( - StreamingPullRequest.newBuilder().addAckIds("a").addAckIds("b").addAckIds("c").build(), - StreamingPullRequest.newBuilder().addAckIds("d").build()) - .inOrder(); - - requests = - StreamingSubscriberConnection.partitionAckOperations( - Arrays.asList("a", "b", "c", "d"), - Arrays.asList(new PendingModifyAckDeadline(42, "w")), - 3); - Truth.assertThat(requests) - .containsExactly( - StreamingPullRequest.newBuilder() - .addAckIds("a") - .addAckIds("b") - .addAckIds("c") - .addModifyDeadlineAckIds("w") - .addModifyDeadlineSeconds(42) - .build(), - StreamingPullRequest.newBuilder().addAckIds("d").build()) - .inOrder(); - - requests = - StreamingSubscriberConnection.partitionAckOperations( - Arrays.asList("a"), Arrays.asList(new PendingModifyAckDeadline(42, "w", "x")), 3); - Truth.assertThat(requests) - .containsExactly( - StreamingPullRequest.newBuilder() - .addAckIds("a") - .addModifyDeadlineAckIds("w") - .addModifyDeadlineSeconds(42) - .addModifyDeadlineAckIds("x") - .addModifyDeadlineSeconds(42) - .build()) - .inOrder(); - - requests = - StreamingSubscriberConnection.partitionAckOperations( - Arrays.asList("a"), - Arrays.asList( - new PendingModifyAckDeadline(42, "w", "x"), - new PendingModifyAckDeadline(43, "y", "z")), - 3); - Truth.assertThat(requests) - .containsExactly( - StreamingPullRequest.newBuilder() - .addAckIds("a") - .addModifyDeadlineAckIds("w") - .addModifyDeadlineSeconds(42) - .addModifyDeadlineAckIds("x") - .addModifyDeadlineSeconds(42) - .addModifyDeadlineAckIds("y") - .addModifyDeadlineSeconds(43) - .build(), - StreamingPullRequest.newBuilder() - .addModifyDeadlineAckIds("z") - .addModifyDeadlineSeconds(43) - .build()) - .inOrder(); - } -} From f89652e8ae79c986619e4690070082b40c28af3e Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Thu, 28 Feb 2019 12:24:49 -0500 Subject: [PATCH 0123/2363] Change MessageDispatcher to own its own queue. (#4590) --- .../java/com/google/cloud/pubsub/v1/MessageDispatcher.java | 6 +++--- .../cloud/pubsub/v1/StreamingSubscriberConnection.java | 3 --- .../main/java/com/google/cloud/pubsub/v1/Subscriber.java | 5 ----- .../com/google/cloud/pubsub/v1/MessageDispatcherTest.java | 2 -- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 5f5ebbaee204..5c6f1cdc9414 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -40,6 +40,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.Executor; +import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; @@ -90,7 +91,8 @@ class MessageDispatcher { private final Lock jobLock; private ScheduledFuture backgroundJob; - private final Deque outstandingMessageBatches; + private final LinkedBlockingDeque outstandingMessageBatches = + new LinkedBlockingDeque<>(); // To keep track of number of seconds the receiver takes to process messages. private final Distribution ackLatencyDistribution; @@ -200,7 +202,6 @@ void sendAckOperations( Duration maxAckExtensionPeriod, Distribution ackLatencyDistribution, FlowController flowController, - Deque outstandingMessageBatches, Executor executor, ScheduledExecutorService systemExecutor, ApiClock clock) { @@ -211,7 +212,6 @@ void sendAckOperations( this.receiver = receiver; this.ackProcessor = ackProcessor; this.flowController = flowController; - this.outstandingMessageBatches = outstandingMessageBatches; // 601 buckets of 1s resolution from 0s to MAX_ACK_DEADLINE_SECONDS this.ackLatencyDistribution = ackLatencyDistribution; jobLock = new ReentrantLock(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index defd66806a84..ba12e97fb8a1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -42,7 +42,6 @@ import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; import io.grpc.Status; -import java.util.Deque; import java.util.List; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; @@ -84,7 +83,6 @@ public StreamingSubscriberConnection( SubscriberStub stub, int channelAffinity, FlowController flowController, - Deque outstandingMessageBatches, ScheduledExecutorService executor, ScheduledExecutorService systemExecutor, ApiClock clock) { @@ -100,7 +98,6 @@ public StreamingSubscriberConnection( maxAckExtensionPeriod, ackLatencyDistribution, flowController, - outstandingMessageBatches, executor, systemExecutor, clock); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index ed5e8551d75e..b505681b195b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -44,8 +44,6 @@ import com.google.pubsub.v1.ProjectSubscriptionName; import java.io.IOException; import java.util.ArrayList; -import java.util.Deque; -import java.util.LinkedList; import java.util.List; import java.util.concurrent.ScheduledExecutorService; import java.util.logging.Level; @@ -115,8 +113,6 @@ public class Subscriber extends AbstractApiService { private final MessageReceiver receiver; private final List streamingSubscriberConnections; - private final Deque outstandingMessageBatches = - new LinkedList<>(); private final ApiClock clock; private final List closeables = new ArrayList<>(); @@ -329,7 +325,6 @@ private void startStreamingConnections() { subStub, i, flowController, - outstandingMessageBatches, executor, alarmsExecutor, clock)); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 785368bb13cb..494945e028df 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -28,7 +28,6 @@ import com.google.pubsub.v1.ReceivedMessage; import java.util.ArrayList; import java.util.Collections; -import java.util.LinkedList; import java.util.List; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ScheduledThreadPoolExecutor; @@ -117,7 +116,6 @@ public void sendAckOperations( Duration.ofMinutes(60), new Distribution(Subscriber.MAX_ACK_DEADLINE_SECONDS + 1), flowController, - new LinkedList(), MoreExecutors.directExecutor(), systemExecutor, clock); From 0d6bb584c427b4368daf2b6fa83fafb1d7dac0ba Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Thu, 28 Feb 2019 14:25:24 -0500 Subject: [PATCH 0124/2363] Scale the system executor provider with the number of pull channels opened. (#4592) Make the SubscriberStubSettings refer to the user provided executor provider instead of a fixed instantiation of it. If the user provides an InstantiatingExecutorProvider instead of a FixedExecutorProvider, this will actually instantiate more than one as the user would expect. It will still only instantiate one for all connections to share, and will do so until the next PR which will make them have different stub instantiations. --- .../google/cloud/pubsub/v1/Subscriber.java | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index b505681b195b..487ee0ccb4cb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -45,6 +45,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.logging.Level; import java.util.logging.Logger; @@ -93,9 +94,6 @@ public class Subscriber extends AbstractApiService { private static final Duration UNARY_TIMEOUT = Duration.ofSeconds(60); private static final Duration ACK_EXPIRATION_PADDING = Duration.ofSeconds(5); - private static final ScheduledExecutorService SHARED_SYSTEM_EXECUTOR = - InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(6).build().getExecutor(); - private static final Logger logger = Logger.getLogger(Subscriber.class.getName()); private final String subscriptionName; @@ -132,6 +130,8 @@ private Subscriber(Builder builder) { .setLimitExceededBehavior(LimitExceededBehavior.ThrowException) .build()); + this.numPullers = builder.parallelPullCount; + executor = builder.executorProvider.getExecutor(); if (builder.executorProvider.shouldAutoClose()) { closeables.add( @@ -142,8 +142,16 @@ public void close() throws IOException { } }); } - alarmsExecutor = builder.systemExecutorProvider.getExecutor(); - if (builder.systemExecutorProvider.shouldAutoClose()) { + + ExecutorProvider systemExecutorProvider = builder.systemExecutorProvider; + if (systemExecutorProvider == null) { + systemExecutorProvider = + FixedExecutorProvider.create( + Executors.newScheduledThreadPool(Math.max(6, 2 * numPullers))); + } + + alarmsExecutor = systemExecutorProvider.getExecutor(); + if (systemExecutorProvider.shouldAutoClose()) { closeables.add( new AutoCloseable() { @Override @@ -153,7 +161,6 @@ public void close() throws IOException { }); } - this.numPullers = builder.parallelPullCount; TransportChannelProvider channelProvider = builder.channelProvider; if (channelProvider.acceptsPoolSize()) { channelProvider = channelProvider.withPoolSize(numPullers); @@ -162,7 +169,7 @@ public void close() throws IOException { try { this.subStubSettings = SubscriberStubSettings.newBuilder() - .setExecutorProvider(FixedExecutorProvider.create(alarmsExecutor)) + .setExecutorProvider(systemExecutorProvider) .setCredentialsProvider(builder.credentialsProvider) .setTransportChannelProvider(channelProvider) .setHeaderProvider(builder.headerProvider) @@ -404,7 +411,7 @@ public static final class Builder { FlowControlSettings.newBuilder().setMaxOutstandingElementCount(1000L).build(); ExecutorProvider executorProvider = DEFAULT_EXECUTOR_PROVIDER; - ExecutorProvider systemExecutorProvider = FixedExecutorProvider.create(SHARED_SYSTEM_EXECUTOR); + ExecutorProvider systemExecutorProvider = null; TransportChannelProvider channelProvider = SubscriptionAdminSettings.defaultGrpcTransportProviderBuilder() .setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE) From e6246ea0e38c43e634b95e0c9a390cb95d6fdb3c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Fri, 1 Mar 2019 12:48:05 -0800 Subject: [PATCH 0125/2363] Regenerate pubsub client (#4608) --- .../google-cloud-pubsub/synth.metadata | 6 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 56 +++++++++++-------- .../pubsub/v1/CreateSnapshotRequest.java | 12 ++-- .../com/google/pubsub/v1/Subscription.java | 12 ++-- .../pubsub/v1/SubscriptionOrBuilder.java | 3 +- .../main/proto/google/pubsub/v1/pubsub.proto | 50 +++++++++-------- 6 files changed, 79 insertions(+), 60 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index c596772783e5..961e55caa402 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-02-28T08:48:09.044830Z", + "updateTime": "2019-03-01T08:49:22.807745Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "9c769d3a0e67e4df9b9e8eee480124c2700a7e6c", - "internalRef": "235997788" + "sha": "41d72d444fbe445f4da89e13be02078734fb7875", + "internalRef": "236230004" } } ], diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 0e6414fd4823..545cc35cf812 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -869,9 +869,10 @@ public abstract static class SubscriberImplBase implements io.grpc.BindableServi * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). - * The generated name is populated in the returned Subscription object. - * Note that for REST API requests, you must specify a name in the request. + * [resource name + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Subscription object. Note that + * for REST API requests, you must specify a name in the request. *

    */ public void createSubscription( @@ -1086,9 +1087,10 @@ public void listSnapshots( * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). - * The generated name is populated in the returned Snapshot object. Note that - * for REST API requests, you must specify a name in the request. + * [resource name + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for + * REST API requests, you must specify a name in the request. *
    */ public void createSnapshot( @@ -1306,9 +1308,10 @@ protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions call * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). - * The generated name is populated in the returned Subscription object. - * Note that for REST API requests, you must specify a name in the request. + * [resource name + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Subscription object. Note that + * for REST API requests, you must specify a name in the request. *
    */ public void createSubscription( @@ -1555,9 +1558,10 @@ public void listSnapshots( * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). - * The generated name is populated in the returned Snapshot object. Note that - * for REST API requests, you must specify a name in the request. + * [resource name + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for + * REST API requests, you must specify a name in the request. *
    */ public void createSnapshot( @@ -1684,9 +1688,10 @@ protected SubscriberBlockingStub build( * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). - * The generated name is populated in the returned Subscription object. - * Note that for REST API requests, you must specify a name in the request. + * [resource name + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Subscription object. Note that + * for REST API requests, you must specify a name in the request. *
    */ public com.google.pubsub.v1.Subscription createSubscription( @@ -1879,9 +1884,10 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). - * The generated name is populated in the returned Snapshot object. Note that - * for REST API requests, you must specify a name in the request. + * [resource name + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for + * REST API requests, you must specify a name in the request. *
    */ public com.google.pubsub.v1.Snapshot createSnapshot( @@ -1995,9 +2001,10 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). - * The generated name is populated in the returned Subscription object. - * Note that for REST API requests, you must specify a name in the request. + * [resource name + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Subscription object. Note that + * for REST API requests, you must specify a name in the request. *
    */ public com.google.common.util.concurrent.ListenableFuture @@ -2195,9 +2202,10 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). - * The generated name is populated in the returned Snapshot object. Note that - * for REST API requests, you must specify a name in the request. + * [resource name + * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for + * REST API requests, you must specify a name in the request. *
    */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 4fee2a01533c..63958ce83e35 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -8,9 +8,9 @@ * *
      * Request for the `CreateSnapshot` method.<br><br>
    - * <b>BETA:</b> This feature is part of a beta 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.
    + * <b>BETA:</b> This feature is part of a beta 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.
      * 
    * * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} @@ -529,9 +529,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * Request for the `CreateSnapshot` method.<br><br>
    -   * <b>BETA:</b> This feature is part of a beta 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.
    +   * <b>BETA:</b> This feature is part of a beta 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.
        * 
    * * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index efb2168d1aa7..8bde436d8da5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -370,7 +370,8 @@ public int getAckDeadlineSeconds() { * 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 - * <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> + * <a + * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> * Seek to a timestamp</a>. * <br><br> * <b>BETA:</b> This feature is part of a beta release. This API might be @@ -1631,7 +1632,8 @@ public Builder clearAckDeadlineSeconds() { * 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 - * <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> + * <a + * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> * Seek to a timestamp</a>. * <br><br> * <b>BETA:</b> This feature is part of a beta release. This API might be @@ -1652,7 +1654,8 @@ public boolean getRetainAckedMessages() { * 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 - * <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> + * <a + * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> * Seek to a timestamp</a>. * <br><br> * <b>BETA:</b> This feature is part of a beta release. This API might be @@ -1676,7 +1679,8 @@ public Builder setRetainAckedMessages(boolean value) { * 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 - * <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> + * <a + * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> * Seek to a timestamp</a>. * <br><br> * <b>BETA:</b> This feature is part of a beta release. This API might be diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index dc06e7fb432b..03eace1dd4a4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -138,7 +138,8 @@ public interface SubscriptionOrBuilder * 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 - * <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> + * <a + * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> * Seek to a timestamp</a>. * <br><br> * <b>BETA:</b> This feature is part of a beta release. This API might be diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 095a37b156fd..9d79638f8fd6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -32,7 +32,6 @@ option java_package = "com.google.pubsub.v1"; option php_namespace = "Google\\Cloud\\PubSub\\V1"; option ruby_package = "Google::Cloud::PubSub::V1"; - // The service that an application uses to manipulate topics, and to send // messages to a topic. service Publisher { @@ -79,7 +78,8 @@ service Publisher { } // Lists the names of the subscriptions on this topic. - rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) returns (ListTopicSubscriptionsResponse) { + rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) + returns (ListTopicSubscriptionsResponse) { option (google.api.http) = { get: "/v1/{topic=projects/*/topics/*}/subscriptions" }; @@ -94,7 +94,8 @@ service Publisher { // BETA: This feature is part of a beta 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. - rpc ListTopicSnapshots(ListTopicSnapshotsRequest) returns (ListTopicSnapshotsResponse) { + rpc ListTopicSnapshots(ListTopicSnapshotsRequest) + returns (ListTopicSnapshotsResponse) { option (google.api.http) = { get: "/v1/{topic=projects/*/topics/*}/snapshots" }; @@ -125,9 +126,10 @@ service Subscriber { // 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](https://cloud.google.com/pubsub/docs/admin#resource_names). - // The generated name is populated in the returned Subscription object. - // Note that for REST API requests, you must specify a name in the request. + // [resource name + // format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + // generated name is populated in the returned Subscription object. Note that + // for REST API requests, you must specify a name in the request. rpc CreateSubscription(Subscription) returns (Subscription) { option (google.api.http) = { put: "/v1/{name=projects/*/subscriptions/*}" @@ -152,7 +154,8 @@ service Subscriber { } // Lists matching subscriptions. - rpc ListSubscriptions(ListSubscriptionsRequest) returns (ListSubscriptionsResponse) { + rpc ListSubscriptions(ListSubscriptionsRequest) + returns (ListSubscriptionsResponse) { option (google.api.http) = { get: "/v1/{project=projects/*}/subscriptions" }; @@ -163,7 +166,8 @@ service Subscriber { // `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. - rpc DeleteSubscription(DeleteSubscriptionRequest) returns (google.protobuf.Empty) { + rpc DeleteSubscription(DeleteSubscriptionRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{subscription=projects/*/subscriptions/*}" }; @@ -174,7 +178,8 @@ service Subscriber { // 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. - rpc ModifyAckDeadline(ModifyAckDeadlineRequest) returns (google.protobuf.Empty) { + rpc ModifyAckDeadline(ModifyAckDeadlineRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline" body: "*" @@ -212,8 +217,8 @@ service Subscriber { // 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. - rpc StreamingPull(stream StreamingPullRequest) returns (stream StreamingPullResponse) { - } + rpc StreamingPull(stream StreamingPullRequest) + returns (stream StreamingPullResponse) {} // Modifies the `PushConfig` for a specified subscription. // @@ -221,7 +226,8 @@ service Subscriber { // 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`. - rpc ModifyPushConfig(ModifyPushConfigRequest) returns (google.protobuf.Empty) { + rpc ModifyPushConfig(ModifyPushConfigRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig" body: "*" @@ -275,9 +281,10 @@ service Subscriber { // 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](https://cloud.google.com/pubsub/docs/admin#resource_names). - // The generated name is populated in the returned Snapshot object. Note that - // for REST API requests, you must specify a name in the request. + // [resource name + // format](https://cloud.google.com/pubsub/docs/admin#resource_names). The + // generated name is populated in the returned Snapshot object. Note that for + // REST API requests, you must specify a name in the request. rpc CreateSnapshot(CreateSnapshotRequest) returns (Snapshot) { option (google.api.http) = { put: "/v1/{name=projects/*/snapshots/*}" @@ -576,7 +583,8 @@ message Subscription { // 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. //

    // BETA: This feature is part of a beta release. This API might be @@ -872,9 +880,9 @@ message StreamingPullResponse { } // Request for the `CreateSnapshot` method.

    -// BETA: This feature is part of a beta 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. +// BETA: This feature is part of a beta 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. message CreateSnapshotRequest { // Optional user-provided name for this snapshot. // If the name is not provided in the request, the server will assign a random @@ -1028,6 +1036,4 @@ message SeekRequest { } // Response for the `Seek` method (this response is empty). -message SeekResponse { - -} +message SeekResponse {} From 720338cc0e84777962bed1c716e184bedf54036b Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Mon, 4 Mar 2019 08:38:01 -0500 Subject: [PATCH 0126/2363] Extract the single message processing functionality from processOutstandingBatches. (#4618) --- .../cloud/pubsub/v1/MessageDispatcher.java | 80 ++++++++++--------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 5c6f1cdc9414..ce130d167ff8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -402,51 +402,53 @@ public void processOutstandingBatches() { batchCallback = nextBatch.doneCallback; } } - - final PubsubMessage message = outstandingMessage.receivedMessage().getMessage(); - final AckHandler ackHandler = outstandingMessage.ackHandler(); - final SettableApiFuture response = SettableApiFuture.create(); - final AckReplyConsumer consumer = - new AckReplyConsumer() { - @Override - public void ack() { - response.set(AckReply.ACK); - } - - @Override - public void nack() { - response.set(AckReply.NACK); - } - }; - ApiFutures.addCallback(response, ackHandler, MoreExecutors.directExecutor()); - executor.execute( - new Runnable() { - @Override - public void run() { - try { - if (ackHandler - .totalExpiration - .plusSeconds(messageDeadlineSeconds.get()) - .isBefore(now())) { - // Message expired while waiting. We don't extend these messages anymore, - // so it was probably sent to someone else. Don't work on it. - // Don't nack it either, because we'd be nacking someone else's message. - ackHandler.forget(); - return; - } - - receiver.receiveMessage(message, consumer); - } catch (Exception e) { - response.setException(e); - } - } - }); + processOutstandingMessage( + outstandingMessage.receivedMessage.getMessage(), outstandingMessage.ackHandler); if (batchDone) { batchCallback.run(); } } } + private void processOutstandingMessage(final PubsubMessage message, final AckHandler ackHandler) { + final SettableApiFuture response = SettableApiFuture.create(); + final AckReplyConsumer consumer = + new AckReplyConsumer() { + @Override + public void ack() { + response.set(AckReply.ACK); + } + + @Override + public void nack() { + response.set(AckReply.NACK); + } + }; + ApiFutures.addCallback(response, ackHandler, MoreExecutors.directExecutor()); + executor.execute( + new Runnable() { + @Override + public void run() { + try { + if (ackHandler + .totalExpiration + .plusSeconds(messageDeadlineSeconds.get()) + .isBefore(now())) { + // Message expired while waiting. We don't extend these messages anymore, + // so it was probably sent to someone else. Don't work on it. + // Don't nack it either, because we'd be nacking someone else's message. + ackHandler.forget(); + return; + } + + receiver.receiveMessage(message, consumer); + } catch (Exception e) { + response.setException(e); + } + } + }); + } + /** Compute the ideal deadline, set subsequent modacks to this deadline, and return it. */ @InternalApi int computeDeadlineSeconds() { From bc7ec73d239274d8eb8ad5eacfd7ba4bb8c3119d Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Mon, 4 Mar 2019 10:50:40 -0500 Subject: [PATCH 0127/2363] Clean up MessageDispatcher by changing processOutstandingBatches to explicitly loop instead of while(true) with breaks. There is now only 1 explicit return and 1 runtime error. (#4619) --- .../cloud/pubsub/v1/MessageDispatcher.java | 58 ++++++++----------- 1 file changed, 24 insertions(+), 34 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index ce130d167ff8..509d71ae5aeb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -371,41 +371,31 @@ public void processReceivedMessages(List messages, Runnable don processOutstandingBatches(); } - public void processOutstandingBatches() { - while (true) { - boolean batchDone = false; - Runnable batchCallback = null; - OutstandingMessage outstandingMessage; - synchronized (outstandingMessageBatches) { - OutstandingMessageBatch nextBatch = outstandingMessageBatches.peek(); - if (nextBatch == null) { - return; - } - outstandingMessage = nextBatch.messages.peek(); - if (outstandingMessage == null) { - return; - } - try { - // This is a non-blocking flow controller. - flowController.reserve( - 1, outstandingMessage.receivedMessage().getMessage().getSerializedSize()); - } catch (FlowController.MaxOutstandingElementCountReachedException - | FlowController.MaxOutstandingRequestBytesReachedException flowControlException) { - return; - } catch (FlowControlException unexpectedException) { - throw new IllegalStateException("Flow control unexpected exception", unexpectedException); - } - nextBatch.messages.poll(); // We got a hold to the message already. - batchDone = nextBatch.messages.isEmpty(); - if (batchDone) { - outstandingMessageBatches.poll(); - batchCallback = nextBatch.doneCallback; + private void processOutstandingBatches() { + synchronized (outstandingMessageBatches) { + for (OutstandingMessageBatch nextBatch = outstandingMessageBatches.poll(); + nextBatch != null; + nextBatch = outstandingMessageBatches.poll()) { + for (OutstandingMessage nextMessage = nextBatch.messages.poll(); + nextMessage != null; + nextMessage = nextBatch.messages.poll()) { + try { + // This is a non-blocking flow controller. + flowController.reserve(1, nextMessage.receivedMessage.getMessage().getSerializedSize()); + } catch (FlowController.MaxOutstandingElementCountReachedException + | FlowController.MaxOutstandingRequestBytesReachedException flowControlException) { + // Unwind previous changes in the batches outstanding. + nextBatch.messages.addFirst(nextMessage); + outstandingMessageBatches.addFirst(nextBatch); + return; + } catch (FlowControlException unexpectedException) { + throw new IllegalStateException( + "Flow control unexpected exception", unexpectedException); + } + processOutstandingMessage( + nextMessage.receivedMessage.getMessage(), nextMessage.ackHandler); } - } - processOutstandingMessage( - outstandingMessage.receivedMessage.getMessage(), outstandingMessage.ackHandler); - if (batchDone) { - batchCallback.run(); + nextBatch.doneCallback.run(); } } } From 7ad2f1d76e1ea02772ed72d05c5dac5064684dbf Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Mon, 4 Mar 2019 12:45:50 -0700 Subject: [PATCH 0128/2363] Release google-cloud-java v0.82.0 (#4621) * Release v0.82.0 * Change KMS versions to 1.0.0. --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 97e347b7769e..15fb4ba25114 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.63.0 + 1.64.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.63.0' +compile 'com.google.cloud:google-cloud-pubsub:1.64.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.64.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 16bdaf6b0f0c..b94e26c00652 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.63.1-SNAPSHOT + 1.64.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.81.1-alpha-SNAPSHOT + 0.82.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6d9d1dc8b12c..6e2da81df7ac 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.45.1-SNAPSHOT + 1.46.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.46.1-SNAPSHOT + 0.47.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 24c3045b5904..5a3ef9be0a50 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.45.1-SNAPSHOT + 1.46.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.46.1-SNAPSHOT + 0.47.0 From e896f7684471e3b1edb7af9944e2d68a579eb3e0 Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Mon, 4 Mar 2019 14:55:56 -0500 Subject: [PATCH 0129/2363] Remove global synchronization from MessageDispatcher. (#4620) * Remove global synchronization from MessageDispatcher. Now that this uses a LinkedBlockingDeque for batches, this is no longer necessary. * Run code format. --- .../cloud/pubsub/v1/MessageDispatcher.java | 46 ++++++++----------- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 509d71ae5aeb..a851797500a0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -365,38 +365,32 @@ public void processReceivedMessages(List messages, Runnable don } messagesWaiter.incrementPendingMessages(outstandingBatch.messages.size()); - synchronized (outstandingMessageBatches) { - outstandingMessageBatches.add(outstandingBatch); - } + outstandingMessageBatches.add(outstandingBatch); processOutstandingBatches(); } private void processOutstandingBatches() { - synchronized (outstandingMessageBatches) { - for (OutstandingMessageBatch nextBatch = outstandingMessageBatches.poll(); - nextBatch != null; - nextBatch = outstandingMessageBatches.poll()) { - for (OutstandingMessage nextMessage = nextBatch.messages.poll(); - nextMessage != null; - nextMessage = nextBatch.messages.poll()) { - try { - // This is a non-blocking flow controller. - flowController.reserve(1, nextMessage.receivedMessage.getMessage().getSerializedSize()); - } catch (FlowController.MaxOutstandingElementCountReachedException - | FlowController.MaxOutstandingRequestBytesReachedException flowControlException) { - // Unwind previous changes in the batches outstanding. - nextBatch.messages.addFirst(nextMessage); - outstandingMessageBatches.addFirst(nextBatch); - return; - } catch (FlowControlException unexpectedException) { - throw new IllegalStateException( - "Flow control unexpected exception", unexpectedException); - } - processOutstandingMessage( - nextMessage.receivedMessage.getMessage(), nextMessage.ackHandler); + for (OutstandingMessageBatch nextBatch = outstandingMessageBatches.poll(); + nextBatch != null; + nextBatch = outstandingMessageBatches.poll()) { + for (OutstandingMessage nextMessage = nextBatch.messages.poll(); + nextMessage != null; + nextMessage = nextBatch.messages.poll()) { + try { + // This is a non-blocking flow controller. + flowController.reserve(1, nextMessage.receivedMessage.getMessage().getSerializedSize()); + } catch (FlowController.MaxOutstandingElementCountReachedException + | FlowController.MaxOutstandingRequestBytesReachedException flowControlException) { + // Unwind previous changes in the batches outstanding. + nextBatch.messages.addFirst(nextMessage); + outstandingMessageBatches.addFirst(nextBatch); + return; + } catch (FlowControlException unexpectedException) { + throw new IllegalStateException("Flow control unexpected exception", unexpectedException); } - nextBatch.doneCallback.run(); + processOutstandingMessage(nextMessage.receivedMessage.getMessage(), nextMessage.ackHandler); } + nextBatch.doneCallback.run(); } } From 052a54c4b26a55ae9f030333dc655b96ddd385f4 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Mon, 4 Mar 2019 15:54:54 -0700 Subject: [PATCH 0130/2363] Bump next snapshot (#4623) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b94e26c00652..10318779decd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.64.0 + 1.64.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.0-alpha + 0.82.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6e2da81df7ac..52f7681a33f8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.46.0 + 1.46.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.47.0 + 0.47.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5a3ef9be0a50..17dd90605e6f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.46.0 + 1.46.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.47.0 + 0.47.1-SNAPSHOT From 6faaa0cee0f68761394745ed4cf3ecdfafede8e8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 01:09:42 -0800 Subject: [PATCH 0131/2363] Regenerate pubsub client (#4643) --- .../cloud/pubsub/v1/SubscriptionAdminClient.java | 7 +++++-- .../com/google/cloud/pubsub/v1/TopicAdminClient.java | 7 +++++-- java-pubsub/google-cloud-pubsub/synth.metadata | 10 +++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index aad805519f65..bd640c1b9c56 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.pubsub.v1.stub.SubscriberStub; import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -2256,7 +2257,8 @@ public static ApiFuture createAsync( public ListSubscriptionsPagedResponse apply(ListSubscriptionsPage input) { return new ListSubscriptionsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSubscriptionsPagedResponse(ListSubscriptionsPage page) { @@ -2340,7 +2342,8 @@ public static ApiFuture createAsync( public ListSnapshotsPagedResponse apply(ListSnapshotsPage input) { return new ListSnapshotsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListSnapshotsPagedResponse(ListSnapshotsPage page) { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 0a26402ade29..d1bd8ee18c34 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -29,6 +29,7 @@ import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; import com.google.common.base.Function; import com.google.common.collect.Iterables; +import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -1193,7 +1194,8 @@ public static ApiFuture createAsync( public ListTopicsPagedResponse apply(ListTopicsPage input) { return new ListTopicsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTopicsPagedResponse(ListTopicsPage page) { @@ -1272,7 +1274,8 @@ public static ApiFuture createAsync( public ListTopicSubscriptionsPagedResponse apply(ListTopicSubscriptionsPage input) { return new ListTopicSubscriptionsPagedResponse(input); } - }); + }, + MoreExecutors.directExecutor()); } private ListTopicSubscriptionsPagedResponse(ListTopicSubscriptionsPage page) { diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index 961e55caa402..ab2a20fb7dbb 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:49:22.807745Z", + "updateTime": "2019-03-06T08:48:55.349052Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", + "internalRef": "236931378" } } ], From c14419530d670189be041ead16f7335763077d97 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Mon, 11 Mar 2019 12:15:31 -0700 Subject: [PATCH 0132/2363] Release google-cloud-java v0.83.0 (#4665) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 15fb4ba25114..7d5920c117e4 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.64.0 + 1.65.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.64.0' +compile 'com.google.cloud:google-cloud-pubsub:1.65.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.65.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 10318779decd..b3db8e608654 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.64.1-SNAPSHOT + 1.65.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.82.1-alpha-SNAPSHOT + 0.83.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 52f7681a33f8..f23c9349cde0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.46.1-SNAPSHOT + 1.47.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 17dd90605e6f..6cfc5dfdaa73 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.46.1-SNAPSHOT + 1.47.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.47.1-SNAPSHOT + 0.48.0 From cf99b80309367ff3b1b5b25e59144f4bd12d054f Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Tue, 12 Mar 2019 07:09:18 -0700 Subject: [PATCH 0133/2363] Bump next snapshot (#4666) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b3db8e608654..bb1935fbcaca 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.65.0 + 1.65.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.0-alpha + 0.83.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f23c9349cde0..e97e39c9a96b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.47.0 + 1.47.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6cfc5dfdaa73..ec5ce024ae19 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.47.0 + 1.47.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.48.0 + 0.48.1-SNAPSHOT From 74f8bdcb11441512bfb0df18b25fb1a0764200f8 Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Tue, 12 Mar 2019 18:24:12 -0400 Subject: [PATCH 0134/2363] Change each StreamingSubscriberConnection to have its own executor by default. (#4622) * Change each StreamingSubscriberConnection to have its own executor by default. This increases throughput by reducing contention on the executor queue mutex and makes the Subscriber implementation more accurately reflect the users intent when an InstantiatingExecutorProvider is passed. * Add a comment for executorProvider and alarmsExecutor. --- .../google/cloud/pubsub/v1/Subscriber.java | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 487ee0ccb4cb..70d17a4c9884 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -99,7 +99,10 @@ public class Subscriber extends AbstractApiService { private final String subscriptionName; private final FlowControlSettings flowControlSettings; private final Duration maxAckExtensionPeriod; - private final ScheduledExecutorService executor; + // The ExecutorProvider used to generate executors for processing messages. + private final ExecutorProvider executorProvider; + // An instantiation of the SystemExecutorProvider used for processing acks + // and other system actions. @Nullable private final ScheduledExecutorService alarmsExecutor; private final Distribution ackLatencyDistribution = new Distribution(MAX_ACK_DEADLINE_SECONDS + 1); @@ -132,16 +135,7 @@ private Subscriber(Builder builder) { this.numPullers = builder.parallelPullCount; - executor = builder.executorProvider.getExecutor(); - if (builder.executorProvider.shouldAutoClose()) { - closeables.add( - new AutoCloseable() { - @Override - public void close() throws IOException { - executor.shutdown(); - } - }); - } + executorProvider = builder.executorProvider; ExecutorProvider systemExecutorProvider = builder.systemExecutorProvider; if (systemExecutorProvider == null) { @@ -322,6 +316,17 @@ public void run() { private void startStreamingConnections() { synchronized (streamingSubscriberConnections) { for (int i = 0; i < numPullers; i++) { + final ScheduledExecutorService executor = executorProvider.getExecutor(); + if (executorProvider.shouldAutoClose()) { + closeables.add( + new AutoCloseable() { + @Override + public void close() { + executor.shutdown(); + } + }); + } + streamingSubscriberConnections.add( new StreamingSubscriberConnection( subscriptionName, @@ -364,7 +369,7 @@ private void stopAllStreamingConnections() { private void startConnections( List connections, final ApiService.Listener connectionsListener) { for (ApiService subscriber : connections) { - subscriber.addListener(connectionsListener, executor); + subscriber.addListener(connectionsListener, alarmsExecutor); subscriber.startAsync(); } for (ApiService subscriber : connections) { @@ -398,8 +403,7 @@ public static final class Builder { static final ExecutorProvider DEFAULT_EXECUTOR_PROVIDER = InstantiatingExecutorProvider.newBuilder() - .setExecutorThreadCount( - THREADS_PER_CHANNEL * Runtime.getRuntime().availableProcessors()) + .setExecutorThreadCount(THREADS_PER_CHANNEL) .build(); String subscriptionName; @@ -502,7 +506,10 @@ public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { return this; } - /** Gives the ability to set a custom executor. */ + /** + * Gives the ability to set a custom executor. {@link ExecutorProvider#getExecutor()} will be + * called {@link Builder#parallelPullCount} times. + */ public Builder setExecutorProvider(ExecutorProvider executorProvider) { this.executorProvider = Preconditions.checkNotNull(executorProvider); return this; From bc7a40cd9d0b093c7322a6daa7b4c78ba67df545 Mon Sep 17 00:00:00 2001 From: Dino Oliva Date: Wed, 20 Mar 2019 07:28:12 -0700 Subject: [PATCH 0135/2363] OpenCensus Support for Cloud Pub/Sub (#4240) * Adds OpenCensus context propagation to Publisher and Subscriber. * Updates OpenCensus attribute keys so that they will be propagated by CPS. * Addresses reviewer comments by fixing build files and using only defined annotations. * Updates build dependencies and copyright date. * Fixes typo. * Removes encoding of OpenCensus tags. Will re-enable once text encoding spec has been finalized (https://github.com/census-instrumentation/opencensus-specs/issues/65). * Updates encoding of SpanContext to use W3C specified encoding; Also preserves sampling decision from the publisher in the subscriber. * Adds unit test for OpenCensusUtil. * Adds unit test for OpenCensusUtil. * Updates OpenCensus integration to use a generic MessageTransform. * Removes now-unused private constant. * Update pom.xml * Marking setTransform as BetaApi * Fixes for formatting issues. --- java-pubsub/google-cloud-pubsub/pom.xml | 6 + .../cloud/pubsub/v1/OpenCensusUtil.java | 175 ++++++++++++++++++ .../com/google/cloud/pubsub/v1/Publisher.java | 23 +++ .../cloud/pubsub/v1/OpenCensusUtilTest.java | 139 ++++++++++++++ 4 files changed, 343 insertions(+) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index bb1935fbcaca..9b904e790482 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -78,6 +78,12 @@ grpc-google-iam-v1 test + + io.opencensus + opencensus-impl + ${opencensus.version} + test + com.google.api diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java new file mode 100644 index 000000000000..018c63452640 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java @@ -0,0 +1,175 @@ +/* Copyright 2019 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiFunction; +import com.google.common.annotations.VisibleForTesting; +import com.google.errorprone.annotations.MustBeClosed; +import com.google.pubsub.v1.PubsubMessage; +import io.opencensus.common.Scope; +import io.opencensus.tags.TagContext; +import io.opencensus.tags.Tagger; +import io.opencensus.tags.Tags; +import io.opencensus.tags.propagation.TagContextBinarySerializer; +import io.opencensus.trace.Link; +import io.opencensus.trace.SpanContext; +import io.opencensus.trace.Tracer; +import io.opencensus.trace.Tracing; +import io.opencensus.trace.propagation.SpanContextParseException; +import io.opencensus.trace.propagation.TextFormat; +import io.opencensus.trace.propagation.TextFormat.Getter; +import io.opencensus.trace.propagation.TextFormat.Setter; +import io.opencensus.trace.samplers.Samplers; +import java.util.logging.Level; +import java.util.logging.Logger; + +/** + * Utilities for propagating OpenCensus {@link TagContext} and {@link SpanContext} from publishers + * to subscribers. + */ +public class OpenCensusUtil { + private static final Logger logger = Logger.getLogger(OpenCensusUtil.class.getName()); + + public static final String TAG_CONTEXT_KEY = "googclient_OpenCensusTagContextKey"; + public static final String TRACE_CONTEXT_KEY = "googclient_OpenCensusTraceContextKey"; + @VisibleForTesting static final String MESSAGE_RECEIVER_SPAN_NAME = "OpenCensusMessageReceiver"; + private static final String TRACEPARENT_KEY = "traceparent"; + + private static final Tagger tagger = Tags.getTagger(); + private static final TagContextBinarySerializer serializer = + Tags.getTagPropagationComponent().getBinarySerializer(); + + private static final Tracer tracer = Tracing.getTracer(); + private static final TextFormat traceContextTextFormat = + Tracing.getPropagationComponent().getTraceContextFormat(); + + /** + * Propagates active OpenCensus trace and tag contexts from the Publisher by adding them as + * attributes to the {@link PubsubMessage}. + */ + public static final ApiFunction OPEN_CENSUS_MESSAGE_TRANSFORM = + new ApiFunction() { + @Override + public PubsubMessage apply(PubsubMessage message) { + PubsubMessage.Builder builder = PubsubMessage.newBuilder(message); + String encodedSpanContext = encodeSpanContext(tracer.getCurrentSpan().getContext()); + String encodedTagContext = encodeTagContext(tagger.getCurrentTagContext()); + if (encodedSpanContext.isEmpty() && encodedTagContext.isEmpty()) { + return message; + } + if (!encodedSpanContext.isEmpty()) { + builder.putAttributes(TRACE_CONTEXT_KEY, encodedSpanContext); + } + if (!encodedTagContext.isEmpty()) { + builder.putAttributes(TAG_CONTEXT_KEY, encodedTagContext); + } + return builder.build(); + } + }; + + private static final Setter setter = + new Setter() { + @Override + public void put(StringBuilder carrier, String key, String value) { + if (key.equals(TRACEPARENT_KEY)) { + carrier.append(value); + } + } + }; + + private static final Getter getter = + new Getter() { + @Override + public String get(String carrier, String key) { + return key.equals(TRACEPARENT_KEY) ? carrier : null; + } + }; + + @VisibleForTesting + static String encodeSpanContext(SpanContext ctxt) { + StringBuilder builder = new StringBuilder(); + traceContextTextFormat.inject(ctxt, builder, setter); + return builder.toString(); + } + + // TODO: update this code once the text encoding of tags has been resolved + // (https://github.com/census-instrumentation/opencensus-specs/issues/65). + private static String encodeTagContext(TagContext tags) { + return ""; + } + + // TODO: update this code once the text encoding of tags has been resolved + // (https://github.com/census-instrumentation/opencensus-specs/issues/65). + private static Scope createScopedTagContext(String encodedTags) { + return tagger.withTagContext(tagger.getCurrentTagContext()); + } + + @VisibleForTesting + @MustBeClosed + static Scope createScopedSpan(String name) { + return tracer + .spanBuilderWithExplicitParent(name, tracer.getCurrentSpan()) + .setRecordEvents(true) + // Note: we preserve the sampling decision from the publisher. + .setSampler(Samplers.alwaysSample()) + .startScopedSpan(); + } + + private static void addParentLink(String encodedParentSpanContext) { + try { + SpanContext ctxt = traceContextTextFormat.extract(encodedParentSpanContext, getter); + tracer.getCurrentSpan().addLink(Link.fromSpanContext(ctxt, Link.Type.PARENT_LINKED_SPAN)); + } catch (SpanContextParseException exn) { + logger.log(Level.INFO, "OpenCensus: Trace Context Deserialization Exception: " + exn); + } + } + + /** + * Wrapper class for {@link MessageReceiver} that decodes any received trace and tag contexts and + * puts them in scope. + */ + public static class OpenCensusMessageReceiver implements MessageReceiver { + private final MessageReceiver receiver; + + public OpenCensusMessageReceiver(MessageReceiver receiver) { + this.receiver = receiver; + } + + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + String encodedTagContext = message.getAttributesOrDefault(TAG_CONTEXT_KEY, ""); + if (encodedTagContext.isEmpty()) { + addTraceScope(message, consumer); + return; + } + try (Scope statsScope = createScopedTagContext(encodedTagContext)) { + addTraceScope(message, consumer); + } + } + + private void addTraceScope(PubsubMessage message, AckReplyConsumer consumer) { + String encodedSpanContext = message.getAttributesOrDefault(TRACE_CONTEXT_KEY, ""); + if (encodedSpanContext.isEmpty()) { + receiver.receiveMessage(message, consumer); + return; + } + try (Scope spanScope = createScopedSpan(MESSAGE_RECEIVER_SPAN_NAME)) { + addParentLink(encodedSpanContext); + receiver.receiveMessage(message, consumer); + } + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 557a483073de..ea2475cb3fdf 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1; +import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutureCallback; import com.google.api.core.ApiFutures; @@ -95,6 +96,7 @@ public class Publisher { private final List closeables; private final MessageWaiter messagesWaiter; private ScheduledFuture currentAlarmFuture; + private final ApiFunction messageTransform; /** The maximum number of messages in one request. Defined by the API. */ public static long getApiMaxRequestElementCount() { @@ -110,6 +112,7 @@ private Publisher(Builder builder) throws IOException { topicName = builder.topicName; this.batchingSettings = builder.batchingSettings; + this.messageTransform = builder.messageTransform; messagesBatch = new LinkedList<>(); messagesBatchLock = new ReentrantLock(); @@ -192,6 +195,7 @@ public ApiFuture publish(PubsubMessage message) { throw new IllegalStateException("Cannot publish on a shut-down publisher."); } + message = messageTransform.apply(message); final int messageSize = message.getSerializedSize(); OutstandingBatch batchToSend = null; SettableApiFuture publishResult = SettableApiFuture.create(); @@ -528,6 +532,14 @@ public static final class Builder { CredentialsProvider credentialsProvider = TopicAdminSettings.defaultCredentialsProviderBuilder().build(); + ApiFunction messageTransform = + new ApiFunction() { + @Override + public PubsubMessage apply(PubsubMessage input) { + return input; + } + }; + private Builder(String topic) { this.topicName = Preconditions.checkNotNull(topic); } @@ -610,6 +622,17 @@ public Builder setExecutorProvider(ExecutorProvider executorProvider) { return this; } + /** + * Gives the ability to set an {@link ApiFunction} that will transform the {@link PubsubMessage} + * before it is sent + */ + @BetaApi + public Builder setTransform(ApiFunction messageTransform) { + this.messageTransform = + Preconditions.checkNotNull(messageTransform, "The messageTransform cannnot be null."); + return this; + } + public Publisher build() throws IOException { return new Publisher(this); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java new file mode 100644 index 000000000000..6f74d5917c76 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java @@ -0,0 +1,139 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.OpenCensusUtil.MESSAGE_RECEIVER_SPAN_NAME; +import static com.google.cloud.pubsub.v1.OpenCensusUtil.OPEN_CENSUS_MESSAGE_TRANSFORM; +import static com.google.cloud.pubsub.v1.OpenCensusUtil.TAG_CONTEXT_KEY; +import static com.google.cloud.pubsub.v1.OpenCensusUtil.TRACE_CONTEXT_KEY; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotEquals; + +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import io.opencensus.common.Scope; +import io.opencensus.tags.TagContext; +import io.opencensus.tags.TagKey; +import io.opencensus.tags.TagValue; +import io.opencensus.tags.Tagger; +import io.opencensus.tags.Tags; +import io.opencensus.trace.Link; +import io.opencensus.trace.SpanContext; +import io.opencensus.trace.Tracer; +import io.opencensus.trace.Tracing; +import io.opencensus.trace.export.RunningSpanStore; +import io.opencensus.trace.export.RunningSpanStore.Filter; +import io.opencensus.trace.export.SpanData; +import java.util.Collection; +import java.util.List; +import org.junit.Test; + +/** Tests for {@link OpenCensusUtil}. */ +public class OpenCensusUtilTest { + private static final Tagger tagger = Tags.getTagger(); + private static final Tracer tracer = Tracing.getTracer(); + private static final TagKey TEST_TAG_KEY = TagKey.create("TEST_TAG_KEY"); + private static final TagValue TEST_TAG_VAL = TagValue.create("TEST_TAG_VAL"); + private static final String TEST_PARENT_LINK_NAME = "TEST_PARENT_LINK"; + + // Verifies that trace contexts propagated as an attribute are set as the parent link in the + // message receiver and that the tag context is not change (for now). + @Test + public void testOpenCensusMessageReceiver() throws Exception { + PubsubMessage message; + SpanContext publisherContext; + try (Scope traceScope = OpenCensusUtil.createScopedSpan(TEST_PARENT_LINK_NAME); + Scope tagScope = createScopeTags()) { + message = OPEN_CENSUS_MESSAGE_TRANSFORM.apply(generatePubsubMessage(500)); + publisherContext = tracer.getCurrentSpan().getContext(); + } + MessageReceiver receiver = + new OpenCensusUtil.OpenCensusMessageReceiver( + new TestMessageReceiver(publisherContext, tagger.getCurrentTagContext())); + receiver.receiveMessage(message, new NoOpAckReplyConsumer()); + } + + // Verifies that the current span context is added as an attribute and that (for now) the tag + // context is not added as an attribute. + @Test + public void testOpenCensusMessageTransformer() { + try (Scope traceScope = OpenCensusUtil.createScopedSpan("PublisherTestRoot"); + Scope tagScope = createScopeTags()) { + PubsubMessage originalMessage = generatePubsubMessage(500); + assertEquals("", originalMessage.getAttributesOrDefault(TRACE_CONTEXT_KEY, "")); + assertEquals("", originalMessage.getAttributesOrDefault(TAG_CONTEXT_KEY, "")); + + PubsubMessage attributedMessage = OPEN_CENSUS_MESSAGE_TRANSFORM.apply(originalMessage); + String encodedSpanContext = + OpenCensusUtil.encodeSpanContext(tracer.getCurrentSpan().getContext()); + assertNotEquals("", encodedSpanContext); + assertEquals( + encodedSpanContext, attributedMessage.getAttributesOrDefault(TRACE_CONTEXT_KEY, "")); + assertEquals("", attributedMessage.getAttributesOrDefault(TAG_CONTEXT_KEY, "")); + } + } + + private static PubsubMessage generatePubsubMessage(int size) { + byte[] bytes = new byte[size]; + for (int i = 0; i < size; i++) { + bytes[i] = (byte) (120 + i % 20); + } + return PubsubMessage.newBuilder().setData(ByteString.copyFrom(bytes)).build(); + } + + private static Scope createScopeTags() { + return tagger.currentBuilder().put(TEST_TAG_KEY, TEST_TAG_VAL).buildScoped(); + } + + private static final class NoOpAckReplyConsumer implements AckReplyConsumer { + @Override + public void ack() {} + + @Override + public void nack() {} + } + + private static final class TestMessageReceiver implements MessageReceiver { + private static final RunningSpanStore runningSpanStore = + Tracing.getExportComponent().getRunningSpanStore(); + private static final Filter RECEIVER_FILTER = Filter.create(MESSAGE_RECEIVER_SPAN_NAME, 0); + + SpanContext parentLinkedSpan; + TagContext originalTagContext; + + private TestMessageReceiver(SpanContext parentLinkedSpan, TagContext originalTagContext) { + this.parentLinkedSpan = parentLinkedSpan; + this.originalTagContext = originalTagContext; + } + + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + assertEquals(originalTagContext, tagger.getCurrentTagContext()); + Collection spanDatas = runningSpanStore.getRunningSpans(RECEIVER_FILTER); + assertEquals(spanDatas.size(), 1); + for (SpanData spanData : spanDatas) { + List links = spanData.getLinks().getLinks(); + assertEquals(links.size(), 1); + Link link = links.get(0); + assertEquals(Link.Type.PARENT_LINKED_SPAN, link.getType()); + assertEquals(parentLinkedSpan.getTraceId(), link.getTraceId()); + assertEquals(parentLinkedSpan.getSpanId(), link.getSpanId()); + } + consumer.ack(); + } + } +} From 9534cc4f1fb6ad25ebd81ddcee5d21fa0f721125 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 21 Mar 2019 12:59:23 -0400 Subject: [PATCH 0136/2363] Release v0.84.0 (#4713) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 7d5920c117e4..07a9dceaeab4 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.65.0 + 1.66.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.65.0' +compile 'com.google.cloud:google-cloud-pubsub:1.66.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.66.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9b904e790482..f7aa44ecfa29 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.65.1-SNAPSHOT + 1.66.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.83.1-alpha-SNAPSHOT + 0.84.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e97e39c9a96b..ec273e5b682d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ec5ce024ae19..0247795ca6ba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.47.1-SNAPSHOT + 1.48.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.48.1-SNAPSHOT + 0.49.0 From 20ebc39ca3cd3a4586843e5ebbce41093ef13582 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 21 Mar 2019 22:00:42 -0400 Subject: [PATCH 0137/2363] Bump next snapshot (#4715) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f7aa44ecfa29..78fbaa28d217 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.66.0 + 1.66.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.0-alpha + 0.84.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ec273e5b682d..3578baa1ac0a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.48.0 + 1.48.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0247795ca6ba..c0572f7341fe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.48.0 + 1.48.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.49.0 + 0.49.1-SNAPSHOT From 05ec1e7e8598dd6cada9f28546bcfc73f0ccdead Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Sun, 24 Mar 2019 05:14:58 -0700 Subject: [PATCH 0138/2363] Regenerate pubsub client (#4732) --- .../v1/SubscriptionAdminClientTest.java | 4 + .../google-cloud-pubsub/synth.metadata | 10 +- .../com/google/pubsub/v1/PubsubMessage.java | 203 ++++++++++ .../pubsub/v1/PubsubMessageOrBuilder.java | 33 ++ .../com/google/pubsub/v1/PubsubProto.java | 367 +++++++++--------- .../com/google/pubsub/v1/Subscription.java | 104 +++++ .../pubsub/v1/SubscriptionOrBuilder.java | 17 + .../main/proto/google/pubsub/v1/pubsub.proto | 18 + 8 files changed, 569 insertions(+), 187 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index f01f120089bd..9580bc069267 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -127,12 +127,14 @@ public void createSubscriptionTest() { TopicName topic2 = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); int ackDeadlineSeconds2 = 921632575; boolean retainAckedMessages = false; + boolean enableMessageOrdering = true; Subscription expectedResponse = Subscription.newBuilder() .setName(name2.toString()) .setTopic(topic2.toString()) .setAckDeadlineSeconds(ackDeadlineSeconds2) .setRetainAckedMessages(retainAckedMessages) + .setEnableMessageOrdering(enableMessageOrdering) .build(); mockSubscriber.addResponse(expectedResponse); @@ -185,12 +187,14 @@ public void getSubscriptionTest() { TopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); int ackDeadlineSeconds = 2135351438; boolean retainAckedMessages = false; + boolean enableMessageOrdering = true; Subscription expectedResponse = Subscription.newBuilder() .setName(name.toString()) .setTopic(topic.toString()) .setAckDeadlineSeconds(ackDeadlineSeconds) .setRetainAckedMessages(retainAckedMessages) + .setEnableMessageOrdering(enableMessageOrdering) .build(); mockSubscriber.addResponse(expectedResponse); diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index ab2a20fb7dbb..0bb9804e4706 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-06T08:48:55.349052Z", + "updateTime": "2019-03-24T07:48:10.875442Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.15", - "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" + "version": "0.16.19", + "dockerImage": "googleapis/artman@sha256:70ba28fda87e032ae44e6df41b7fc342c1b0cce1ed90658c4890eb4f613038c2" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "856117505ff9075b3e9c0b5674113667b6cf9e00", - "internalRef": "236931378" + "sha": "e80435a132c53da26f46daf0787035ee63fb942b", + "internalRef": "239938670" } } ], diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 21ae0f027cbe..e82e70355728 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -32,6 +32,7 @@ private PubsubMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) private PubsubMessage() { data_ = com.google.protobuf.ByteString.EMPTY; messageId_ = ""; + orderingKey_ = ""; } @java.lang.Override @@ -98,6 +99,13 @@ private PubsubMessage( publishTime_ = subBuilder.buildPartial(); } + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + orderingKey_ = s; break; } default: @@ -350,6 +358,61 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { return getPublishTime(); } + public static final int ORDERING_KEY_FIELD_NUMBER = 5; + private volatile java.lang.Object orderingKey_; + /** + * + * + *
    +   * Identifies related messages for which publish order should be respected.
    +   * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    +   * published with the same `ordering_key` value will be delivered to
    +   * subscribers in the order in which they are received by the Pub/Sub system.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string ordering_key = 5; + */ + public java.lang.String getOrderingKey() { + java.lang.Object ref = orderingKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderingKey_ = s; + return s; + } + } + /** + * + * + *
    +   * Identifies related messages for which publish order should be respected.
    +   * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    +   * published with the same `ordering_key` value will be delivered to
    +   * subscribers in the order in which they are received by the Pub/Sub system.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string ordering_key = 5; + */ + public com.google.protobuf.ByteString getOrderingKeyBytes() { + java.lang.Object ref = orderingKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderingKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -375,6 +438,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (publishTime_ != null) { output.writeMessage(4, getPublishTime()); } + if (!getOrderingKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderingKey_); + } unknownFields.writeTo(output); } @@ -403,6 +469,9 @@ public int getSerializedSize() { if (publishTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPublishTime()); } + if (!getOrderingKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderingKey_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -426,6 +495,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPublishTime()) { result = result && getPublishTime().equals(other.getPublishTime()); } + result = result && getOrderingKey().equals(other.getOrderingKey()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -449,6 +519,8 @@ public int hashCode() { hash = (37 * hash) + PUBLISH_TIME_FIELD_NUMBER; hash = (53 * hash) + getPublishTime().hashCode(); } + hash = (37 * hash) + ORDERING_KEY_FIELD_NUMBER; + hash = (53 * hash) + getOrderingKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -631,6 +703,8 @@ public Builder clear() { publishTime_ = null; publishTimeBuilder_ = null; } + orderingKey_ = ""; + return this; } @@ -668,6 +742,7 @@ public com.google.pubsub.v1.PubsubMessage buildPartial() { } else { result.publishTime_ = publishTimeBuilder_.build(); } + result.orderingKey_ = orderingKey_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -729,6 +804,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) { if (other.hasPublishTime()) { mergePublishTime(other.getPublishTime()); } + if (!other.getOrderingKey().isEmpty()) { + orderingKey_ = other.orderingKey_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1273,6 +1352,130 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { return publishTimeBuilder_; } + private java.lang.Object orderingKey_ = ""; + /** + * + * + *
    +     * Identifies related messages for which publish order should be respected.
    +     * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    +     * published with the same `ordering_key` value will be delivered to
    +     * subscribers in the order in which they are received by the Pub/Sub system.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string ordering_key = 5; + */ + public java.lang.String getOrderingKey() { + java.lang.Object ref = orderingKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderingKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Identifies related messages for which publish order should be respected.
    +     * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    +     * published with the same `ordering_key` value will be delivered to
    +     * subscribers in the order in which they are received by the Pub/Sub system.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string ordering_key = 5; + */ + public com.google.protobuf.ByteString getOrderingKeyBytes() { + java.lang.Object ref = orderingKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderingKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Identifies related messages for which publish order should be respected.
    +     * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    +     * published with the same `ordering_key` value will be delivered to
    +     * subscribers in the order in which they are received by the Pub/Sub system.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string ordering_key = 5; + */ + public Builder setOrderingKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + orderingKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Identifies related messages for which publish order should be respected.
    +     * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    +     * published with the same `ordering_key` value will be delivered to
    +     * subscribers in the order in which they are received by the Pub/Sub system.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string ordering_key = 5; + */ + public Builder clearOrderingKey() { + + orderingKey_ = getDefaultInstance().getOrderingKey(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Identifies related messages for which publish order should be respected.
    +     * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    +     * published with the same `ordering_key` value will be delivered to
    +     * subscribers in the order in which they are received by the Pub/Sub system.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string ordering_key = 5; + */ + public Builder setOrderingKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderingKey_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index e1db91aa9512..83af3d87f633 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -137,4 +137,37 @@ public interface PubsubMessageOrBuilder * .google.protobuf.Timestamp publish_time = 4; */ com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder(); + + /** + * + * + *
    +   * Identifies related messages for which publish order should be respected.
    +   * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    +   * published with the same `ordering_key` value will be delivered to
    +   * subscribers in the order in which they are received by the Pub/Sub system.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string ordering_key = 5; + */ + java.lang.String getOrderingKey(); + /** + * + * + *
    +   * Identifies related messages for which publish order should be respected.
    +   * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    +   * published with the same `ordering_key` value will be delivered to
    +   * subscribers in the order in which they are received by the Pub/Sub system.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string ordering_key = 5; + */ + com.google.protobuf.ByteString getOrderingKeyBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index df3bcc0691d2..2024dd9a3aa5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -216,192 +216,194 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "bsub.v1.Topic.LabelsEntry\022F\n\026message_sto" + "rage_policy\030\003 \001(\0132&.google.pubsub.v1.Mes" + "sageStoragePolicy\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\333\001\n\rPubsubMessa" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\361\001\n\rPubsubMessa" + "ge\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.g" + "oogle.pubsub.v1.PubsubMessage.Attributes" + "Entry\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_tim" - + "e\030\004 \001(\0132\032.google.protobuf.Timestamp\0321\n\017A" + + "e\030\004 \001(\0132\032.google.protobuf.Timestamp\022\024\n\014o" + + "rdering_key\030\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\017GetTopic" + + "Request\022\r\n\005topic\030\001 \001(\t\"m\n\022UpdateTopicReq" + + "uest\022&\n\005topic\030\001 \001(\0132\027.google.pubsub.v1.T" + + "opic\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMask\"R\n\016PublishRequest\022\r\n\005topic" + + "\030\001 \001(\t\0221\n\010messages\030\002 \003(\0132\037.google.pubsub" + + ".v1.PubsubMessage\"&\n\017PublishResponse\022\023\n\013" + + "message_ids\030\001 \003(\t\"K\n\021ListTopicsRequest\022\017" + + "\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"V\n\022ListTopicsResponse\022\'\n\006" + + "topics\030\001 \003(\0132\027.google.pubsub.v1.Topic\022\027\n" + + "\017next_page_token\030\002 \001(\t\"U\n\035ListTopicSubsc" + + "riptionsRequest\022\r\n\005topic\030\001 \001(\t\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036ListTop" + + "icSubscriptionsResponse\022\025\n\rsubscriptions" + + "\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\031ListT" + + "opicSnapshotsRequest\022\r\n\005topic\030\001 \001(\t\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\032Li" + + "stTopicSnapshotsResponse\022\021\n\tsnapshots\030\001 " + + "\003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n\022DeleteTo" + + "picRequest\022\r\n\005topic\030\001 \001(\t\"\245\003\n\014Subscripti" + + "on\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\0221\n\013push_" + + "config\030\004 \001(\0132\034.google.pubsub.v1.PushConf" + + "ig\022\034\n\024ack_deadline_seconds\030\005 \001(\005\022\035\n\025reta" + + "in_acked_messages\030\007 \001(\010\022=\n\032message_reten" + + "tion_duration\030\010 \001(\0132\031.google.protobuf.Du" + + "ration\022:\n\006labels\030\t \003(\0132*.google.pubsub.v" + + "1.Subscription.LabelsEntry\022\037\n\027enable_mes" + + "sage_ordering\030\n \001(\010\022=\n\021expiration_policy" + + "\030\013 \001(\0132\".google.pubsub.v1.ExpirationPoli" + + "cy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\":\n\020ExpirationPolicy\022&\n\003ttl\030\001 \001" + + "(\0132\031.google.protobuf.Duration\"\255\002\n\nPushCo" + + "nfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\nattribute" + + "s\030\002 \003(\0132,.google.pubsub.v1.PushConfig.At" + + "tributesEntry\022<\n\noidc_token\030\003 \001(\0132&.goog" + + "le.pubsub.v1.PushConfig.OidcTokenH\000\0321\n\017A" + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\" \n\017GetTopicRequest\022\r\n\005topic\030\001 \001(\t" - + "\"m\n\022UpdateTopicRequest\022&\n\005topic\030\001 \001(\0132\027." - + "google.pubsub.v1.Topic\022/\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMask\"R\n\016Publi" - + "shRequest\022\r\n\005topic\030\001 \001(\t\0221\n\010messages\030\002 \003" - + "(\0132\037.google.pubsub.v1.PubsubMessage\"&\n\017P" - + "ublishResponse\022\023\n\013message_ids\030\001 \003(\t\"K\n\021L" - + "istTopicsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022List" - + "TopicsResponse\022\'\n\006topics\030\001 \003(\0132\027.google." - + "pubsub.v1.Topic\022\027\n\017next_page_token\030\002 \001(\t" - + "\"U\n\035ListTopicSubscriptionsRequest\022\r\n\005top" - + "ic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\"P\n\036ListTopicSubscriptionsRespons" - + "e\022\025\n\rsubscriptions\030\001 \003(\t\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"Q\n\031ListTopicSnapshotsRequest\022\r" - + "\n\005topic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\"H\n\032ListTopicSnapshotsRespon" - + "se\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token" - + "\030\002 \001(\t\"#\n\022DeleteTopicRequest\022\r\n\005topic\030\001 " - + "\001(\t\"\204\003\n\014Subscription\022\014\n\004name\030\001 \001(\t\022\r\n\005to" - + "pic\030\002 \001(\t\0221\n\013push_config\030\004 \001(\0132\034.google." - + "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec" - + "onds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(" - + "\010\022=\n\032message_retention_duration\030\010 \001(\0132\031." - + "google.protobuf.Duration\022:\n\006labels\030\t \003(\013" - + "2*.google.pubsub.v1.Subscription.LabelsE" - + "ntry\022=\n\021expiration_policy\030\013 \001(\0132\".google" - + ".pubsub.v1.ExpirationPolicy\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\":\n\020Ex" - + "pirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.pro" - + "tobuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_en" - + "dpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.googl" - + "e.pubsub.v1.PushConfig.AttributesEntry\022<" - + "\n\noidc_token\030\003 \001(\0132&.google.pubsub.v1.Pu" - + "shConfig.OidcTokenH\000\0321\n\017AttributesEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032<\n\tOidcT" - + "oken\022\035\n\025service_account_email\030\001 \001(\t\022\020\n\010a" - + "udience\030\002 \001(\tB\027\n\025authentication_method\"S" - + "\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007mes" - + "sage\030\002 \001(\0132\037.google.pubsub.v1.PubsubMess" - + "age\".\n\026GetSubscriptionRequest\022\024\n\014subscri" - + "ption\030\001 \001(\t\"\202\001\n\031UpdateSubscriptionReques" - + "t\0224\n\014subscription\030\001 \001(\0132\036.google.pubsub." - + "v1.Subscription\022/\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMask\"R\n\030ListSubscrip" - + "tionsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubs" - + "criptionsResponse\0225\n\rsubscriptions\030\001 \003(\013" - + "2\036.google.pubsub.v1.Subscription\022\027\n\017next" - + "_page_token\030\002 \001(\t\"1\n\031DeleteSubscriptionR" - + "equest\022\024\n\014subscription\030\001 \001(\t\"b\n\027ModifyPu" - + "shConfigRequest\022\024\n\014subscription\030\001 \001(\t\0221\n" - + "\013push_config\030\002 \001(\0132\034.google.pubsub.v1.Pu" - + "shConfig\"U\n\013PullRequest\022\024\n\014subscription\030" - + "\001 \001(\t\022\032\n\022return_immediately\030\002 \001(\010\022\024\n\014max" - + "_messages\030\003 \001(\005\"L\n\014PullResponse\022<\n\021recei" - + "ved_messages\030\001 \003(\0132!.google.pubsub.v1.Re" - + "ceivedMessage\"_\n\030ModifyAckDeadlineReques" - + "t\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t" - + "\022\034\n\024ack_deadline_seconds\030\003 \001(\005\";\n\022Acknow" - + "ledgeRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ac" - + "k_ids\030\002 \003(\t\"\244\001\n\024StreamingPullRequest\022\024\n\014" - + "subscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027m" - + "odify_deadline_seconds\030\003 \003(\005\022\037\n\027modify_d" - + "eadline_ack_ids\030\004 \003(\t\022#\n\033stream_ack_dead" - + "line_seconds\030\005 \001(\005\"U\n\025StreamingPullRespo" - + "nse\022<\n\021received_messages\030\001 \003(\0132!.google." - + "pubsub.v1.ReceivedMessage\"\257\001\n\025CreateSnap" - + "shotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014subscriptio" - + "n\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.google.pubsub." - + "v1.CreateSnapshotRequest.LabelsEntry\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"v\n\025UpdateSnapshotRequest\022,\n\010snapshot" - + "\030\001 \001(\0132\032.google.pubsub.v1.Snapshot\022/\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "ask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030" - + "\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.google.prot" - + "obuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.google." - + "pubsub.v1.Snapshot.LabelsEntry\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"&\n" - + "\022GetSnapshotRequest\022\020\n\010snapshot\030\001 \001(\t\"N\n" - + "\024ListSnapshotsRequest\022\017\n\007project\030\001 \001(\t\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n" - + "\025ListSnapshotsResponse\022-\n\tsnapshots\030\001 \003(" - + "\0132\032.google.pubsub.v1.Snapshot\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\")\n\025DeleteSnapshotRequest\022" - + "\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest\022\024\n\014subs" - + "cription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.google.pr" - + "otobuf.TimestampH\000\022\022\n\010snapshot\030\003 \001(\tH\000B\010" - + "\n\006target\"\016\n\014SeekResponse2\277\010\n\tPublisher\022j" - + "\n\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027" - + ".google.pubsub.v1.Topic\")\202\323\344\223\002#\032\036/v1/{na" - + "me=projects/*/topics/*}:\001*\022}\n\013UpdateTopi" - + "c\022$.google.pubsub.v1.UpdateTopicRequest\032" - + "\027.google.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{t" - + "opic.name=projects/*/topics/*}:\001*\022\202\001\n\007Pu" - + "blish\022 .google.pubsub.v1.PublishRequest\032" - + "!.google.pubsub.v1.PublishResponse\"2\202\323\344\223" - + "\002,\"\'/v1/{topic=projects/*/topics/*}:publ" - + "ish:\001*\022o\n\010GetTopic\022!.google.pubsub.v1.Ge" - + "tTopicRequest\032\027.google.pubsub.v1.Topic\"\'" - + "\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022" - + "\200\001\n\nListTopics\022#.google.pubsub.v1.ListTo" - + "picsRequest\032$.google.pubsub.v1.ListTopic" - + "sResponse\"\'\202\323\344\223\002!\022\037/v1/{project=projects" - + "/*}/topics\022\262\001\n\026ListTopicSubscriptions\022/." - + "google.pubsub.v1.ListTopicSubscriptionsR" - + "equest\0320.google.pubsub.v1.ListTopicSubsc" - + "riptionsResponse\"5\202\323\344\223\002/\022-/v1/{topic=pro" - + "jects/*/topics/*}/subscriptions\022\242\001\n\022List" - + "TopicSnapshots\022+.google.pubsub.v1.ListTo" - + "picSnapshotsRequest\032,.google.pubsub.v1.L" - + "istTopicSnapshotsResponse\"1\202\323\344\223\002+\022)/v1/{" - + "topic=projects/*/topics/*}/snapshots\022t\n\013" - + "DeleteTopic\022$.google.pubsub.v1.DeleteTop" - + "icRequest\032\026.google.protobuf.Empty\"\'\202\323\344\223\002" - + "!*\037/v1/{topic=projects/*/topics/*}2\371\021\n\nS" - + "ubscriber\022\206\001\n\022CreateSubscription\022\036.googl" - + "e.pubsub.v1.Subscription\032\036.google.pubsub" - + ".v1.Subscription\"0\202\323\344\223\002*\032%/v1/{name=proj" - + "ects/*/subscriptions/*}:\001*\022\222\001\n\017GetSubscr" - + "iption\022(.google.pubsub.v1.GetSubscriptio" - + "nRequest\032\036.google.pubsub.v1.Subscription" - + "\"5\202\323\344\223\002/\022-/v1/{subscription=projects/*/s" - + "ubscriptions/*}\022\240\001\n\022UpdateSubscription\022+" - + ".google.pubsub.v1.UpdateSubscriptionRequ" - + "est\032\036.google.pubsub.v1.Subscription\"=\202\323\344" - + "\223\002722/v1/{subscription.name=projects/*/s" - + "ubscriptions/*}:\001*\022\234\001\n\021ListSubscriptions" - + "\022*.google.pubsub.v1.ListSubscriptionsReq" - + "uest\032+.google.pubsub.v1.ListSubscription" - + "sResponse\".\202\323\344\223\002(\022&/v1/{project=projects" - + "/*}/subscriptions\022\220\001\n\022DeleteSubscription" - + "\022+.google.pubsub.v1.DeleteSubscriptionRe" - + "quest\032\026.google.protobuf.Empty\"5\202\323\344\223\002/*-/" + + "(\t:\0028\001\032<\n\tOidcToken\022\035\n\025service_account_e" + + "mail\030\001 \001(\t\022\020\n\010audience\030\002 \001(\tB\027\n\025authenti" + + "cation_method\"S\n\017ReceivedMessage\022\016\n\006ack_" + + "id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.google.pubsu" + + "b.v1.PubsubMessage\".\n\026GetSubscriptionReq" + + "uest\022\024\n\014subscription\030\001 \001(\t\"\202\001\n\031UpdateSub" + + "scriptionRequest\0224\n\014subscription\030\001 \001(\0132\036" + + ".google.pubsub.v1.Subscription\022/\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" + + "R\n\030ListSubscriptionsRequest\022\017\n\007project\030\001" + + " \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubs" + + "criptions\030\001 \003(\0132\036.google.pubsub.v1.Subsc" + + "ription\022\027\n\017next_page_token\030\002 \001(\t\"1\n\031Dele" + + "teSubscriptionRequest\022\024\n\014subscription\030\001 " + + "\001(\t\"b\n\027ModifyPushConfigRequest\022\024\n\014subscr" + + "iption\030\001 \001(\t\0221\n\013push_config\030\002 \001(\0132\034.goog" + + "le.pubsub.v1.PushConfig\"U\n\013PullRequest\022\024" + + "\n\014subscription\030\001 \001(\t\022\032\n\022return_immediate" + + "ly\030\002 \001(\010\022\024\n\014max_messages\030\003 \001(\005\"L\n\014PullRe" + + "sponse\022<\n\021received_messages\030\001 \003(\0132!.goog" + + "le.pubsub.v1.ReceivedMessage\"_\n\030ModifyAc" + + "kDeadlineRequest\022\024\n\014subscription\030\001 \001(\t\022\017" + + "\n\007ack_ids\030\004 \003(\t\022\034\n\024ack_deadline_seconds\030" + + "\003 \001(\005\";\n\022AcknowledgeRequest\022\024\n\014subscript" + + "ion\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024Streaming" + + "PullRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack" + + "_ids\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030\003 " + + "\003(\005\022\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022#\n\033" + + "stream_ack_deadline_seconds\030\005 \001(\005\"U\n\025Str" + + "eamingPullResponse\022<\n\021received_messages\030" + + "\001 \003(\0132!.google.pubsub.v1.ReceivedMessage" + + "\"\257\001\n\025CreateSnapshotRequest\022\014\n\004name\030\001 \001(\t" + + "\022\024\n\014subscription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323" + + ".google.pubsub.v1.CreateSnapshotRequest." + + "LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"v\n\025UpdateSnapshotRequ" + + "est\022,\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1" + + ".Snapshot\022/\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030" + + "\001 \001(\t\022\r\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(" + + "\0132\032.google.protobuf.Timestamp\0226\n\006labels\030" + + "\004 \003(\0132&.google.pubsub.v1.Snapshot.Labels" + + "Entry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010sn" + + "apshot\030\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007" + + "project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n" + + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Snap" + + "shot\022\027\n\017next_page_token\030\002 \001(\t\")\n\025DeleteS" + + "napshotRequest\022\020\n\010snapshot\030\001 \001(\t\"m\n\013Seek" + + "Request\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampH\000\022\022\n\010sna" + + "pshot\030\003 \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2" + + "\277\010\n\tPublisher\022j\n\013CreateTopic\022\027.google.pu" + + "bsub.v1.Topic\032\027.google.pubsub.v1.Topic\")" + + "\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001" + + "*\022}\n\013UpdateTopic\022$.google.pubsub.v1.Upda" + + "teTopicRequest\032\027.google.pubsub.v1.Topic\"" + + "/\202\323\344\223\002)2$/v1/{topic.name=projects/*/topi" + + "cs/*}:\001*\022\202\001\n\007Publish\022 .google.pubsub.v1." + + "PublishRequest\032!.google.pubsub.v1.Publis" + + "hResponse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*" + + "/topics/*}:publish:\001*\022o\n\010GetTopic\022!.goog" + + "le.pubsub.v1.GetTopicRequest\032\027.google.pu" + + "bsub.v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projec" + + "ts/*/topics/*}\022\200\001\n\nListTopics\022#.google.p" + + "ubsub.v1.ListTopicsRequest\032$.google.pubs" + + "ub.v1.ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{p" + + "roject=projects/*}/topics\022\262\001\n\026ListTopicS" + + "ubscriptions\022/.google.pubsub.v1.ListTopi" + + "cSubscriptionsRequest\0320.google.pubsub.v1" + + ".ListTopicSubscriptionsResponse\"5\202\323\344\223\002/\022" + + "-/v1/{topic=projects/*/topics/*}/subscri" + + "ptions\022\242\001\n\022ListTopicSnapshots\022+.google.p" + + "ubsub.v1.ListTopicSnapshotsRequest\032,.goo" + + "gle.pubsub.v1.ListTopicSnapshotsResponse" + + "\"1\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*" + + "}/snapshots\022t\n\013DeleteTopic\022$.google.pubs" + + "ub.v1.DeleteTopicRequest\032\026.google.protob" + + "uf.Empty\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/" + + "topics/*}2\371\021\n\nSubscriber\022\206\001\n\022CreateSubsc" + + "ription\022\036.google.pubsub.v1.Subscription\032" + + "\036.google.pubsub.v1.Subscription\"0\202\323\344\223\002*\032" + + "%/v1/{name=projects/*/subscriptions/*}:\001" + + "*\022\222\001\n\017GetSubscription\022(.google.pubsub.v1" + + ".GetSubscriptionRequest\032\036.google.pubsub." + + "v1.Subscription\"5\202\323\344\223\002/\022-/v1/{subscripti" + + "on=projects/*/subscriptions/*}\022\240\001\n\022Updat" + + "eSubscription\022+.google.pubsub.v1.UpdateS" + + "ubscriptionRequest\032\036.google.pubsub.v1.Su" + + "bscription\"=\202\323\344\223\002722/v1/{subscription.na" + + "me=projects/*/subscriptions/*}:\001*\022\234\001\n\021Li" + + "stSubscriptions\022*.google.pubsub.v1.ListS" + + "ubscriptionsRequest\032+.google.pubsub.v1.L" + + "istSubscriptionsResponse\".\202\323\344\223\002(\022&/v1/{p" + + "roject=projects/*}/subscriptions\022\220\001\n\022Del" + + "eteSubscription\022+.google.pubsub.v1.Delet" + + "eSubscriptionRequest\032\026.google.protobuf.E" + + "mpty\"5\202\323\344\223\002/*-/v1/{subscription=projects" + + "/*/subscriptions/*}\022\243\001\n\021ModifyAckDeadlin" + + "e\022*.google.pubsub.v1.ModifyAckDeadlineRe" + + "quest\032\026.google.protobuf.Empty\"J\202\323\344\223\002D\"?/" + "v1/{subscription=projects/*/subscription" - + "s/*}\022\243\001\n\021ModifyAckDeadline\022*.google.pubs" - + "ub.v1.ModifyAckDeadlineRequest\032\026.google." - + "protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{subscriptio" - + "n=projects/*/subscriptions/*}:modifyAckD" - + "eadline:\001*\022\221\001\n\013Acknowledge\022$.google.pubs" - + "ub.v1.AcknowledgeRequest\032\026.google.protob" - + "uf.Empty\"D\202\323\344\223\002>\"9/v1/{subscription=proj" - + "ects/*/subscriptions/*}:acknowledge:\001*\022\204" - + "\001\n\004Pull\022\035.google.pubsub.v1.PullRequest\032\036" - + ".google.pubsub.v1.PullResponse\"=\202\323\344\223\0027\"2" - + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}:pull:\001*\022f\n\rStreamingPull\022&.google." - + "pubsub.v1.StreamingPullRequest\032\'.google." - + "pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\240\001" - + "\n\020ModifyPushConfig\022).google.pubsub.v1.Mo" - + "difyPushConfigRequest\032\026.google.protobuf." - + "Empty\"I\202\323\344\223\002C\">/v1/{subscription=project" - + "s/*/subscriptions/*}:modifyPushConfig:\001*" - + "\022~\n\013GetSnapshot\022$.google.pubsub.v1.GetSn" - + "apshotRequest\032\032.google.pubsub.v1.Snapsho" - + "t\"-\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snap" - + "shots/*}\022\214\001\n\rListSnapshots\022&.google.pubs" - + "ub.v1.ListSnapshotsRequest\032\'.google.pubs" - + "ub.v1.ListSnapshotsResponse\"*\202\323\344\223\002$\022\"/v1" - + "/{project=projects/*}/snapshots\022\203\001\n\016Crea" - + "teSnapshot\022\'.google.pubsub.v1.CreateSnap" - + "shotRequest\032\032.google.pubsub.v1.Snapshot\"" - + ",\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/" - + "*}:\001*\022\214\001\n\016UpdateSnapshot\022\'.google.pubsub" - + ".v1.UpdateSnapshotRequest\032\032.google.pubsu" - + "b.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot.nam" - + "e=projects/*/snapshots/*}:\001*\022\200\001\n\016DeleteS" - + "napshot\022\'.google.pubsub.v1.DeleteSnapsho" - + "tRequest\032\026.google.protobuf.Empty\"-\202\323\344\223\002\'" - + "*%/v1/{snapshot=projects/*/snapshots/*}\022" - + "\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRequest\032" - + "\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"" - + "2/v1/{subscription=projects/*/subscripti" - + "ons/*}:seek:\001*B\256\001\n\024com.google.pubsub.v1B" - + "\013PubsubProtoP\001Z6google.golang.org/genpro" - + "to/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026Goog" - + "le.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub" - + "\\V1\352\002\031Google::Cloud::PubSub::V1b\006proto3" + + "s/*}:modifyAckDeadline:\001*\022\221\001\n\013Acknowledg" + + "e\022$.google.pubsub.v1.AcknowledgeRequest\032" + + "\026.google.protobuf.Empty\"D\202\323\344\223\002>\"9/v1/{su" + + "bscription=projects/*/subscriptions/*}:a" + + "cknowledge:\001*\022\204\001\n\004Pull\022\035.google.pubsub.v" + + "1.PullRequest\032\036.google.pubsub.v1.PullRes" + + "ponse\"=\202\323\344\223\0027\"2/v1/{subscription=project" + + "s/*/subscriptions/*}:pull:\001*\022f\n\rStreamin" + + "gPull\022&.google.pubsub.v1.StreamingPullRe" + + "quest\032\'.google.pubsub.v1.StreamingPullRe" + + "sponse\"\000(\0010\001\022\240\001\n\020ModifyPushConfig\022).goog" + + "le.pubsub.v1.ModifyPushConfigRequest\032\026.g" + + "oogle.protobuf.Empty\"I\202\323\344\223\002C\">/v1/{subsc" + + "ription=projects/*/subscriptions/*}:modi" + + "fyPushConfig:\001*\022~\n\013GetSnapshot\022$.google." + + "pubsub.v1.GetSnapshotRequest\032\032.google.pu" + + "bsub.v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{snapshot=" + + "projects/*/snapshots/*}\022\214\001\n\rListSnapshot" + + "s\022&.google.pubsub.v1.ListSnapshotsReques" + + "t\032\'.google.pubsub.v1.ListSnapshotsRespon" + + "se\"*\202\323\344\223\002$\022\"/v1/{project=projects/*}/sna" + + "pshots\022\203\001\n\016CreateSnapshot\022\'.google.pubsu" + + "b.v1.CreateSnapshotRequest\032\032.google.pubs" + + "ub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=projec" + + "ts/*/snapshots/*}:\001*\022\214\001\n\016UpdateSnapshot\022" + + "\'.google.pubsub.v1.UpdateSnapshotRequest" + + "\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v" + + "1/{snapshot.name=projects/*/snapshots/*}" + + ":\001*\022\200\001\n\016DeleteSnapshot\022\'.google.pubsub.v" + + "1.DeleteSnapshotRequest\032\026.google.protobu" + + "f.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=projects/" + + "*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub." + + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" + + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" + + "ts/*/subscriptions/*}:seek:\001*B\256\001\n\024com.go" + + "ogle.pubsub.v1B\013PubsubProtoP\001Z6google.go" + + "lang.org/genproto/googleapis/pubsub/v1;p" + + "ubsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Goog" + + "le\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubS" + + "ub::V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -450,7 +452,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, new java.lang.String[] { - "Data", "Attributes", "MessageId", "PublishTime", + "Data", "Attributes", "MessageId", "PublishTime", "OrderingKey", }); internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor = internal_static_google_pubsub_v1_PubsubMessage_descriptor.getNestedTypes().get(0); @@ -561,6 +563,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "RetainAckedMessages", "MessageRetentionDuration", "Labels", + "EnableMessageOrdering", "ExpirationPolicy", }); internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 8bde436d8da5..f5a07cb1b551 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -27,6 +27,7 @@ private Subscription() { topic_ = ""; ackDeadlineSeconds_ = 0; retainAckedMessages_ = false; + enableMessageOrdering_ = false; } @java.lang.Override @@ -120,6 +121,11 @@ private Subscription( labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); break; } + case 80: + { + enableMessageOrdering_ = input.readBool(); + break; + } case 90: { com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null; @@ -547,6 +553,27 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int ENABLE_MESSAGE_ORDERING_FIELD_NUMBER = 10; + private boolean enableMessageOrdering_; + /** + * + * + *
    +   * If true, messages published with the same `ordering_key` in `PubsubMessage`
    +   * will be delivered to the subscribers in the order in which they
    +   * are received by the Pub/Sub system. Otherwise, they may be delivered in
    +   * any order.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * bool enable_message_ordering = 10; + */ + public boolean getEnableMessageOrdering() { + return enableMessageOrdering_; + } + public static final int EXPIRATION_POLICY_FIELD_NUMBER = 11; private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; /** @@ -646,6 +673,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); + if (enableMessageOrdering_ != false) { + output.writeBool(10, enableMessageOrdering_); + } if (expirationPolicy_ != null) { output.writeMessage(11, getExpirationPolicy()); } @@ -688,6 +718,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, labels__); } + if (enableMessageOrdering_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableMessageOrdering_); + } if (expirationPolicy_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy()); } @@ -720,6 +753,7 @@ public boolean equals(final java.lang.Object obj) { result = result && getMessageRetentionDuration().equals(other.getMessageRetentionDuration()); } result = result && internalGetLabels().equals(other.internalGetLabels()); + result = result && (getEnableMessageOrdering() == other.getEnableMessageOrdering()); result = result && (hasExpirationPolicy() == other.hasExpirationPolicy()); if (hasExpirationPolicy()) { result = result && getExpirationPolicy().equals(other.getExpirationPolicy()); @@ -755,6 +789,8 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + hash = (37 * hash) + ENABLE_MESSAGE_ORDERING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableMessageOrdering()); if (hasExpirationPolicy()) { hash = (37 * hash) + EXPIRATION_POLICY_FIELD_NUMBER; hash = (53 * hash) + getExpirationPolicy().hashCode(); @@ -944,6 +980,8 @@ public Builder clear() { messageRetentionDurationBuilder_ = null; } internalGetMutableLabels().clear(); + enableMessageOrdering_ = false; + if (expirationPolicyBuilder_ == null) { expirationPolicy_ = null; } else { @@ -994,6 +1032,7 @@ public com.google.pubsub.v1.Subscription buildPartial() { } result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); + result.enableMessageOrdering_ = enableMessageOrdering_; if (expirationPolicyBuilder_ == null) { result.expirationPolicy_ = expirationPolicy_; } else { @@ -1070,6 +1109,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { mergeMessageRetentionDuration(other.getMessageRetentionDuration()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.getEnableMessageOrdering() != false) { + setEnableMessageOrdering(other.getEnableMessageOrdering()); + } if (other.hasExpirationPolicy()) { mergeExpirationPolicy(other.getExpirationPolicy()); } @@ -2110,6 +2152,68 @@ public Builder putAllLabels(java.util.Map va return this; } + private boolean enableMessageOrdering_; + /** + * + * + *
    +     * If true, messages published with the same `ordering_key` in `PubsubMessage`
    +     * will be delivered to the subscribers in the order in which they
    +     * are received by the Pub/Sub system. Otherwise, they may be delivered in
    +     * any order.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * bool enable_message_ordering = 10; + */ + public boolean getEnableMessageOrdering() { + return enableMessageOrdering_; + } + /** + * + * + *
    +     * If true, messages published with the same `ordering_key` in `PubsubMessage`
    +     * will be delivered to the subscribers in the order in which they
    +     * are received by the Pub/Sub system. Otherwise, they may be delivered in
    +     * any order.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * bool enable_message_ordering = 10; + */ + public Builder setEnableMessageOrdering(boolean value) { + + enableMessageOrdering_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * If true, messages published with the same `ordering_key` in `PubsubMessage`
    +     * will be delivered to the subscribers in the order in which they
    +     * are received by the Pub/Sub system. Otherwise, they may be delivered in
    +     * any order.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * bool enable_message_ordering = 10; + */ + public Builder clearEnableMessageOrdering() { + + enableMessageOrdering_ = false; + onChanged(); + return this; + } + private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.ExpirationPolicy, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 03eace1dd4a4..37f2292758d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -265,6 +265,23 @@ public interface SubscriptionOrBuilder */ java.lang.String getLabelsOrThrow(java.lang.String key); + /** + * + * + *
    +   * If true, messages published with the same `ordering_key` in `PubsubMessage`
    +   * will be delivered to the subscribers in the order in which they
    +   * are received by the Pub/Sub system. Otherwise, they may be delivered in
    +   * any order.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * bool enable_message_ordering = 10; + */ + boolean getEnableMessageOrdering(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 9d79638f8fd6..715af9c18c46 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -406,6 +406,15 @@ message PubsubMessage { // it receives the `Publish` call. It must not be populated by the // publisher in a `Publish` call. google.protobuf.Timestamp publish_time = 4; + + // Identifies related messages for which publish order should be respected. + // If a `Subscription` has `enable_message_ordering` set to `true`, messages + // published with the same `ordering_key` value will be delivered to + // subscribers in the order in which they are received by the Pub/Sub system. + // 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. + string ordering_key = 5; } // Request for the GetTopic method. @@ -607,6 +616,15 @@ message Subscription { // managing labels. map labels = 9; + // If true, messages published with the same `ordering_key` in `PubsubMessage` + // will be delivered to the subscribers in the order in which they + // are received by the Pub/Sub system. Otherwise, they may be delivered in + // any order. + // 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. + bool enable_message_ordering = 10; + // A policy that specifies the conditions for this subscription's expiration. // A subscription is considered active as long as any connected subscriber is // successfully consuming messages from the subscription or is issuing From 5a18394a5566be209a431fc240bc6f5453cf83b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= Date: Mon, 25 Mar 2019 20:22:49 +0100 Subject: [PATCH 0139/2363] try to fix flaky test (#4733) (cherry picked from commit 8255a9b475c599814d42a6a28eef3d8e11f6b082) --- .../cloud/pubsub/v1/OpenCensusUtilTest.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java index 6f74d5917c76..329cf60288cc 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java @@ -22,7 +22,9 @@ import static com.google.cloud.pubsub.v1.OpenCensusUtil.TRACE_CONTEXT_KEY; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; +import static org.junit.Assert.fail; +import com.google.common.base.Stopwatch; import com.google.protobuf.ByteString; import com.google.pubsub.v1.PubsubMessage; import io.opencensus.common.Scope; @@ -40,6 +42,7 @@ import io.opencensus.trace.export.SpanData; import java.util.Collection; import java.util.List; +import java.util.concurrent.TimeUnit; import org.junit.Test; /** Tests for {@link OpenCensusUtil}. */ @@ -123,8 +126,8 @@ private TestMessageReceiver(SpanContext parentLinkedSpan, TagContext originalTag @Override public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { assertEquals(originalTagContext, tagger.getCurrentTagContext()); + assertSpanCount(1); Collection spanDatas = runningSpanStore.getRunningSpans(RECEIVER_FILTER); - assertEquals(spanDatas.size(), 1); for (SpanData spanData : spanDatas) { List links = spanData.getLinks().getLinks(); assertEquals(links.size(), 1); @@ -135,5 +138,19 @@ public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { } consumer.ack(); } + + private void assertSpanCount(int expected) { + Stopwatch watch = Stopwatch.createStarted(); + while (true) { + Collection spanDatas = runningSpanStore.getRunningSpans(RECEIVER_FILTER); + if (spanDatas.size() == 1) { + break; + } + Thread.yield(); + if (watch.elapsed(TimeUnit.SECONDS) >= 5) { + fail(); + } + } + } } } From 236b6678a42a8da6e1ac7e7c42a5ea8e342cee7d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Thu, 28 Mar 2019 01:11:07 -0700 Subject: [PATCH 0140/2363] Regenerate pubsub client (#4772) --- .../pubsub/v1/stub/GrpcPublisherStub.java | 93 +++++++++++ .../pubsub/v1/stub/GrpcSubscriberStub.java | 157 ++++++++++++++++++ .../google-cloud-pubsub/synth.metadata | 10 +- 3 files changed, 255 insertions(+), 5 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index e2c442b4a106..bd218ee4816c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -24,7 +24,9 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -44,6 +46,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -196,45 +199,135 @@ protected GrpcPublisherStub( GrpcCallSettings createTopicTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createTopicMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(Topic request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); GrpcCallSettings updateTopicTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateTopicMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateTopicRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic.name", String.valueOf(request.getTopic().getName())); + return params.build(); + } + }) .build(); GrpcCallSettings publishTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(publishMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(PublishRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic", String.valueOf(request.getTopic())); + return params.build(); + } + }) .build(); GrpcCallSettings getTopicTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getTopicMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetTopicRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic", String.valueOf(request.getTopic())); + return params.build(); + } + }) .build(); GrpcCallSettings listTopicsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listTopicsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListTopicsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project", String.valueOf(request.getProject())); + return params.build(); + } + }) .build(); GrpcCallSettings listTopicSubscriptionsTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(listTopicSubscriptionsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListTopicSubscriptionsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic", String.valueOf(request.getTopic())); + return params.build(); + } + }) .build(); GrpcCallSettings deleteTopicTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTopicMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteTopicRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic", String.valueOf(request.getTopic())); + return params.build(); + } + }) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetIamPolicyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + } + }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetIamPolicyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + } + }) .build(); GrpcCallSettings testIamPermissionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(TestIamPermissionsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + } + }) .build(); this.createTopicCallable = diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index ba05a6290919..e83badf66798 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -25,7 +25,9 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -56,6 +58,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -295,35 +298,108 @@ protected GrpcSubscriberStub( GrpcCallSettings createSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createSubscriptionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(Subscription request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); GrpcCallSettings getSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSubscriptionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetSubscriptionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); + } + }) .build(); GrpcCallSettings updateSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSubscriptionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateSubscriptionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "subscription.name", String.valueOf(request.getSubscription().getName())); + return params.build(); + } + }) .build(); GrpcCallSettings listSubscriptionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSubscriptionsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListSubscriptionsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project", String.valueOf(request.getProject())); + return params.build(); + } + }) .build(); GrpcCallSettings deleteSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSubscriptionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteSubscriptionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); + } + }) .build(); GrpcCallSettings modifyAckDeadlineTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(modifyAckDeadlineMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ModifyAckDeadlineRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); + } + }) .build(); GrpcCallSettings acknowledgeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(acknowledgeMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(AcknowledgeRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); + } + }) .build(); GrpcCallSettings pullTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(pullMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(PullRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); + } + }) .build(); GrpcCallSettings streamingPullTransportSettings = GrpcCallSettings.newBuilder() @@ -332,39 +408,120 @@ protected GrpcSubscriberStub( GrpcCallSettings modifyPushConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(modifyPushConfigMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ModifyPushConfigRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); + } + }) .build(); GrpcCallSettings listSnapshotsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSnapshotsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListSnapshotsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project", String.valueOf(request.getProject())); + return params.build(); + } + }) .build(); GrpcCallSettings createSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createSnapshotMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateSnapshotRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); GrpcCallSettings updateSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSnapshotMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateSnapshotRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("snapshot.name", String.valueOf(request.getSnapshot().getName())); + return params.build(); + } + }) .build(); GrpcCallSettings deleteSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSnapshotMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteSnapshotRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("snapshot", String.valueOf(request.getSnapshot())); + return params.build(); + } + }) .build(); GrpcCallSettings seekTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(seekMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SeekRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); + } + }) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetIamPolicyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + } + }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetIamPolicyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + } + }) .build(); GrpcCallSettings testIamPermissionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(TestIamPermissionsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + } + }) .build(); this.createSubscriptionCallable = diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index 0bb9804e4706..0e87efc6b207 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-24T07:48:10.875442Z", + "updateTime": "2019-03-28T07:51:12.284901Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.19", - "dockerImage": "googleapis/artman@sha256:70ba28fda87e032ae44e6df41b7fc342c1b0cce1ed90658c4890eb4f613038c2" + "version": "0.16.20", + "dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e80435a132c53da26f46daf0787035ee63fb942b", - "internalRef": "239938670" + "sha": "6a84b3267b0a95e922608b9891219075047eee29", + "internalRef": "240640999" } } ], From 769d4b5ee91bae7ccc17971a018199e7751477ae Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Fri, 29 Mar 2019 12:22:45 -0700 Subject: [PATCH 0141/2363] Release google-cloud-java v0.85.0 (#4820) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 07a9dceaeab4..d98de5da1ce2 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.66.0 + 1.67.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.66.0' +compile 'com.google.cloud:google-cloud-pubsub:1.67.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.67.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 78fbaa28d217..cb857bed9434 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.66.1-SNAPSHOT + 1.67.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.84.1-alpha-SNAPSHOT + 0.85.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3578baa1ac0a..6e5ff4458d01 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.48.1-SNAPSHOT + 1.49.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.49.1-SNAPSHOT + 0.50.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c0572f7341fe..96f6f1235b73 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.48.1-SNAPSHOT + 1.49.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.49.1-SNAPSHOT + 0.50.0 From 875a0f13e8fed818bdf2ceaaf3f72b209cdc8886 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Fri, 29 Mar 2019 15:59:26 -0700 Subject: [PATCH 0142/2363] Bump snapshot (#4821) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cb857bed9434..36daa714baa9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.67.0 + 1.67.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.85.0-alpha + 0.85.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6e5ff4458d01..5d832f7be383 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.49.0 + 1.49.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.50.0 + 0.50.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 96f6f1235b73..b245f44aae3e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.49.0 + 1.49.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.50.0 + 0.50.1-SNAPSHOT From f24814cacddf41f22fa4e34ef3c42bdc037a3da8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Sat, 30 Mar 2019 01:42:16 -0700 Subject: [PATCH 0143/2363] Regenerate pubsub client (#4827) --- .../google-cloud-pubsub/synth.metadata | 10 +- .../google/pubsub/v1/AcknowledgeRequest.java | 33 +++--- .../pubsub/v1/CreateSnapshotRequest.java | 29 +++-- .../pubsub/v1/DeleteSnapshotRequest.java | 23 ++-- .../pubsub/v1/DeleteSubscriptionRequest.java | 23 ++-- .../google/pubsub/v1/DeleteTopicRequest.java | 23 ++-- .../google/pubsub/v1/ExpirationPolicy.java | 27 +++-- .../google/pubsub/v1/GetSnapshotRequest.java | 23 ++-- .../pubsub/v1/GetSubscriptionRequest.java | 23 ++-- .../com/google/pubsub/v1/GetTopicRequest.java | 23 ++-- .../pubsub/v1/ListSnapshotsRequest.java | 28 +++-- .../pubsub/v1/ListSnapshotsResponse.java | 38 +++---- .../pubsub/v1/ListSubscriptionsRequest.java | 28 +++-- .../pubsub/v1/ListSubscriptionsResponse.java | 35 +++--- .../pubsub/v1/ListTopicSnapshotsRequest.java | 28 +++-- .../pubsub/v1/ListTopicSnapshotsResponse.java | 33 +++--- .../v1/ListTopicSubscriptionsRequest.java | 28 +++-- .../v1/ListTopicSubscriptionsResponse.java | 33 +++--- .../google/pubsub/v1/ListTopicsRequest.java | 28 +++-- .../google/pubsub/v1/ListTopicsResponse.java | 38 +++---- .../pubsub/v1/MessageStoragePolicy.java | 34 +++--- .../pubsub/v1/ModifyAckDeadlineRequest.java | 36 +++---- .../pubsub/v1/ModifyPushConfigRequest.java | 29 +++-- .../com/google/pubsub/v1/PublishRequest.java | 38 +++---- .../com/google/pubsub/v1/PublishResponse.java | 31 +++--- .../com/google/pubsub/v1/PubsubMessage.java | 37 ++++--- .../com/google/pubsub/v1/PullRequest.java | 29 +++-- .../com/google/pubsub/v1/PullResponse.java | 33 +++--- .../java/com/google/pubsub/v1/PushConfig.java | 57 +++++----- .../com/google/pubsub/v1/ReceivedMessage.java | 29 +++-- .../com/google/pubsub/v1/SeekRequest.java | 30 +++--- .../com/google/pubsub/v1/SeekResponse.java | 21 ++-- .../java/com/google/pubsub/v1/Snapshot.java | 35 +++--- .../pubsub/v1/StreamingPullRequest.java | 100 +++++++++--------- .../pubsub/v1/StreamingPullResponse.java | 33 +++--- .../com/google/pubsub/v1/Subscription.java | 56 +++++----- .../main/java/com/google/pubsub/v1/Topic.java | 33 +++--- .../pubsub/v1/UpdateSnapshotRequest.java | 33 +++--- .../pubsub/v1/UpdateSubscriptionRequest.java | 33 +++--- .../google/pubsub/v1/UpdateTopicRequest.java | 33 +++--- 40 files changed, 625 insertions(+), 689 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index 0e87efc6b207..1261449337fb 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-28T07:51:12.284901Z", + "updateTime": "2019-03-30T07:50:27.552803Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.20", - "dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e" + "version": "0.16.21", + "dockerImage": "googleapis/artman@sha256:854131ec1af7b3a313253474c24748dc0acd217a58a0b74dbfb559f340a15d78" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6a84b3267b0a95e922608b9891219075047eee29", - "internalRef": "240640999" + "sha": "fd67be4b51a8c809b97100ccf1c3cffd15b85d7b", + "internalRef": "241096997" } } ], diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 61c13fd39943..9b7a3708b981 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -61,7 +61,7 @@ private AcknowledgeRequest( case 18: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } @@ -70,7 +70,7 @@ private AcknowledgeRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -82,7 +82,7 @@ private AcknowledgeRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -261,11 +261,10 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.AcknowledgeRequest other = (com.google.pubsub.v1.AcknowledgeRequest) obj; - boolean result = true; - result = result && getSubscription().equals(other.getSubscription()); - result = result && getAckIdsList().equals(other.getAckIdsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -460,7 +459,7 @@ public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.subscription_ = subscription_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } @@ -472,35 +471,35 @@ public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -663,7 +662,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000002; } @@ -813,7 +812,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 63958ce83e35..4801431a560c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -70,7 +70,7 @@ private CreateSnapshotRequest( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000004; @@ -83,7 +83,7 @@ private CreateSnapshotRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -401,12 +401,11 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.CreateSnapshotRequest other = (com.google.pubsub.v1.CreateSnapshotRequest) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && getSubscription().equals(other.getSubscription()); - result = result && internalGetLabels().equals(other.internalGetLabels()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getName().equals(other.getName())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -637,35 +636,35 @@ public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1139,7 +1138,7 @@ public Builder putAllLabels(java.util.Map va @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index ff9a16fff298..1ee47dc8aa79 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -62,7 +62,7 @@ private DeleteSnapshotRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -184,10 +184,9 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.DeleteSnapshotRequest other = (com.google.pubsub.v1.DeleteSnapshotRequest) obj; - boolean result = true; - result = result && getSnapshot().equals(other.getSnapshot()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSnapshot().equals(other.getSnapshot())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -383,35 +382,35 @@ public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -560,7 +559,7 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index c652dcea6472..e46ea84b81ea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -59,7 +59,7 @@ private DeleteSubscriptionRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -181,10 +181,9 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.DeleteSubscriptionRequest other = (com.google.pubsub.v1.DeleteSubscriptionRequest) obj; - boolean result = true; - result = result && getSubscription().equals(other.getSubscription()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -377,35 +376,35 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -554,7 +553,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index a888f27a9306..c24176a1cdc7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -59,7 +59,7 @@ private DeleteTopicRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -180,10 +180,9 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.DeleteTopicRequest other = (com.google.pubsub.v1.DeleteTopicRequest) obj; - boolean result = true; - result = result && getTopic().equals(other.getTopic()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getTopic().equals(other.getTopic())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -376,35 +375,35 @@ public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -553,7 +552,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index de81de031164..172b7b99ac5b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -65,7 +65,7 @@ private ExpirationPolicy( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -195,13 +195,12 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.ExpirationPolicy other = (com.google.pubsub.v1.ExpirationPolicy) obj; - boolean result = true; - result = result && (hasTtl() == other.hasTtl()); + if (hasTtl() != other.hasTtl()) return false; if (hasTtl()) { - result = result && getTtl().equals(other.getTtl()); + if (!getTtl().equals(other.getTtl())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -404,35 +403,35 @@ public com.google.pubsub.v1.ExpirationPolicy buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -479,7 +478,7 @@ public Builder mergeFrom( return this; } - private com.google.protobuf.Duration ttl_ = null; + private com.google.protobuf.Duration ttl_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, @@ -699,7 +698,7 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 5c8bba2913a8..05f6cbf9da54 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -62,7 +62,7 @@ private GetSnapshotRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -183,10 +183,9 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.GetSnapshotRequest other = (com.google.pubsub.v1.GetSnapshotRequest) obj; - boolean result = true; - result = result && getSnapshot().equals(other.getSnapshot()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSnapshot().equals(other.getSnapshot())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -382,35 +381,35 @@ public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -559,7 +558,7 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index a86238dfcff0..f0e42b834b14 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -59,7 +59,7 @@ private GetSubscriptionRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -181,10 +181,9 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.GetSubscriptionRequest other = (com.google.pubsub.v1.GetSubscriptionRequest) obj; - boolean result = true; - result = result && getSubscription().equals(other.getSubscription()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -377,35 +376,35 @@ public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -554,7 +553,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 08f5b0aeb32d..b1fbffa56376 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -59,7 +59,7 @@ private GetTopicRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -180,10 +180,9 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.GetTopicRequest other = (com.google.pubsub.v1.GetTopicRequest) obj; - boolean result = true; - result = result && getTopic().equals(other.getTopic()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getTopic().equals(other.getTopic())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -374,35 +373,35 @@ public com.google.pubsub.v1.GetTopicRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -551,7 +550,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 2915d7938b03..6bd19a2aba94 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -27,7 +27,6 @@ private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder b private ListSnapshotsRequest() { project_ = ""; - pageSize_ = 0; pageToken_ = ""; } @@ -76,7 +75,7 @@ private ListSnapshotsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -272,12 +271,11 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ListSnapshotsRequest other = (com.google.pubsub.v1.ListSnapshotsRequest) obj; - boolean result = true; - result = result && getProject().equals(other.getProject()); - result = result && (getPageSize() == other.getPageSize()); - result = result && getPageToken().equals(other.getPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getProject().equals(other.getProject())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -483,35 +481,35 @@ public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -815,7 +813,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 82586a0386a2..365129f60b7e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -56,7 +56,7 @@ private ListSnapshotsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -73,7 +73,7 @@ private ListSnapshotsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -85,7 +85,7 @@ private ListSnapshotsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = java.util.Collections.unmodifiableList(snapshots_); } this.unknownFields = unknownFields.build(); @@ -269,11 +269,10 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ListSnapshotsResponse other = (com.google.pubsub.v1.ListSnapshotsResponse) obj; - boolean result = true; - result = result && getSnapshotsList().equals(other.getSnapshotsList()); - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSnapshotsList().equals(other.getSnapshotsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -477,7 +476,7 @@ public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (snapshotsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { snapshots_ = java.util.Collections.unmodifiableList(snapshots_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -493,35 +492,35 @@ public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -602,7 +601,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureSnapshotsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { snapshots_ = new java.util.ArrayList(snapshots_); bitField0_ |= 0x00000001; } @@ -938,10 +937,7 @@ public java.util.List getSnapshotsBuilder com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( - snapshots_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); + snapshots_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); snapshots_ = null; } return snapshotsBuilder_; @@ -1048,7 +1044,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index c24a8ba397a9..05f05b50ade9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -24,7 +24,6 @@ private ListSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder< private ListSubscriptionsRequest() { project_ = ""; - pageSize_ = 0; pageToken_ = ""; } @@ -73,7 +72,7 @@ private ListSubscriptionsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -269,12 +268,11 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ListSubscriptionsRequest other = (com.google.pubsub.v1.ListSubscriptionsRequest) obj; - boolean result = true; - result = result && getProject().equals(other.getProject()); - result = result && (getPageSize() == other.getPageSize()); - result = result && getPageToken().equals(other.getPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getProject().equals(other.getProject())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -477,35 +475,35 @@ public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -809,7 +807,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index dea6b1eadcf0..85c4cd8c296f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -53,7 +53,7 @@ private ListSubscriptionsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { subscriptions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -70,7 +70,7 @@ private ListSubscriptionsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -82,7 +82,7 @@ private ListSubscriptionsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); } this.unknownFields = unknownFields.build(); @@ -268,11 +268,10 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ListSubscriptionsResponse other = (com.google.pubsub.v1.ListSubscriptionsResponse) obj; - boolean result = true; - result = result && getSubscriptionsList().equals(other.getSubscriptionsList()); - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -473,7 +472,7 @@ public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (subscriptionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -489,35 +488,35 @@ public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -598,7 +597,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureSubscriptionsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { subscriptions_ = new java.util.ArrayList(subscriptions_); bitField0_ |= 0x00000001; } @@ -937,7 +936,7 @@ public java.util.List getSubscription com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( subscriptions_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); subscriptions_ = null; @@ -1051,7 +1050,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 423da7aac707..b44a2b4eff55 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -27,7 +27,6 @@ private ListTopicSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder private ListTopicSnapshotsRequest() { topic_ = ""; - pageSize_ = 0; pageToken_ = ""; } @@ -76,7 +75,7 @@ private ListTopicSnapshotsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -272,12 +271,11 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ListTopicSnapshotsRequest other = (com.google.pubsub.v1.ListTopicSnapshotsRequest) obj; - boolean result = true; - result = result && getTopic().equals(other.getTopic()); - result = result && (getPageSize() == other.getPageSize()); - result = result && getPageToken().equals(other.getPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getTopic().equals(other.getTopic())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -483,35 +481,35 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -815,7 +813,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 88799eda0d9e..48bd10153a5a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -57,7 +57,7 @@ private ListTopicSnapshotsResponse( case 10: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -73,7 +73,7 @@ private ListTopicSnapshotsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -85,7 +85,7 @@ private ListTopicSnapshotsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { snapshots_ = snapshots_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -263,11 +263,10 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ListTopicSnapshotsResponse other = (com.google.pubsub.v1.ListTopicSnapshotsResponse) obj; - boolean result = true; - result = result && getSnapshotsList().equals(other.getSnapshotsList()); - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSnapshotsList().equals(other.getSnapshotsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -464,7 +463,7 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { snapshots_ = snapshots_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } @@ -477,35 +476,35 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -570,7 +569,7 @@ public Builder mergeFrom( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSnapshotsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { snapshots_ = new com.google.protobuf.LazyStringArrayList(snapshots_); bitField0_ |= 0x00000001; } @@ -815,7 +814,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index c5b03ad2c5a8..f2d1bafbeb97 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -24,7 +24,6 @@ private ListTopicSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Bui private ListTopicSubscriptionsRequest() { topic_ = ""; - pageSize_ = 0; pageToken_ = ""; } @@ -73,7 +72,7 @@ private ListTopicSubscriptionsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -269,12 +268,11 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ListTopicSubscriptionsRequest other = (com.google.pubsub.v1.ListTopicSubscriptionsRequest) obj; - boolean result = true; - result = result && getTopic().equals(other.getTopic()); - result = result && (getPageSize() == other.getPageSize()); - result = result && getPageToken().equals(other.getPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getTopic().equals(other.getTopic())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -477,35 +475,35 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -811,7 +809,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index f3dc395a3deb..ae758fefe91f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -55,7 +55,7 @@ private ListTopicSubscriptionsResponse( case 10: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -71,7 +71,7 @@ private ListTopicSubscriptionsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -83,7 +83,7 @@ private ListTopicSubscriptionsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -261,11 +261,10 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ListTopicSubscriptionsResponse other = (com.google.pubsub.v1.ListTopicSubscriptionsResponse) obj; - boolean result = true; - result = result && getSubscriptionsList().equals(other.getSubscriptionsList()); - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -459,7 +458,7 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } @@ -472,35 +471,35 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -566,7 +565,7 @@ public Builder mergeFrom( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSubscriptionsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); bitField0_ |= 0x00000001; } @@ -811,7 +810,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 7730d66f0ed8..3f420628e5a4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -24,7 +24,6 @@ private ListTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder buil private ListTopicsRequest() { project_ = ""; - pageSize_ = 0; pageToken_ = ""; } @@ -73,7 +72,7 @@ private ListTopicsRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -268,12 +267,11 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.ListTopicsRequest other = (com.google.pubsub.v1.ListTopicsRequest) obj; - boolean result = true; - result = result && getProject().equals(other.getProject()); - result = result && (getPageSize() == other.getPageSize()); - result = result && getPageToken().equals(other.getPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getProject().equals(other.getProject())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -476,35 +474,35 @@ public com.google.pubsub.v1.ListTopicsRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -808,7 +806,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index e5216615e934..351125f93298 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -53,7 +53,7 @@ private ListTopicsResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { topics_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -70,7 +70,7 @@ private ListTopicsResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -82,7 +82,7 @@ private ListTopicsResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); } this.unknownFields = unknownFields.build(); @@ -264,11 +264,10 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.ListTopicsResponse other = (com.google.pubsub.v1.ListTopicsResponse) obj; - boolean result = true; - result = result && getTopicsList().equals(other.getTopicsList()); - result = result && getNextPageToken().equals(other.getNextPageToken()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getTopicsList().equals(other.getTopicsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -469,7 +468,7 @@ public com.google.pubsub.v1.ListTopicsResponse buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (topicsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -485,35 +484,35 @@ public com.google.pubsub.v1.ListTopicsResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -593,7 +592,7 @@ public Builder mergeFrom( private java.util.List topics_ = java.util.Collections.emptyList(); private void ensureTopicsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { topics_ = new java.util.ArrayList(topics_); bitField0_ |= 0x00000001; } @@ -926,10 +925,7 @@ public java.util.List getTopicsBuilderList() com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>( - topics_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); + topics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); topics_ = null; } return topicsBuilder_; @@ -1036,7 +1032,7 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 0417cb8c12b6..3c5a9a8f58cc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -45,7 +45,7 @@ private MessageStoragePolicy( case 10: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -54,7 +54,7 @@ private MessageStoragePolicy( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -66,7 +66,7 @@ private MessageStoragePolicy( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -211,12 +211,10 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.MessageStoragePolicy other = (com.google.pubsub.v1.MessageStoragePolicy) obj; - boolean result = true; - result = - result - && getAllowedPersistenceRegionsList().equals(other.getAllowedPersistenceRegionsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getAllowedPersistenceRegionsList().equals(other.getAllowedPersistenceRegionsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -397,7 +395,7 @@ public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { com.google.pubsub.v1.MessageStoragePolicy result = new com.google.pubsub.v1.MessageStoragePolicy(this); int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } @@ -408,35 +406,35 @@ public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -496,7 +494,7 @@ public Builder mergeFrom( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowedPersistenceRegionsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); bitField0_ |= 0x00000001; @@ -683,7 +681,7 @@ public Builder addAllowedPersistenceRegionsBytes(com.google.protobuf.ByteString @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 8d1730521f59..e038955f1c87 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -25,7 +25,6 @@ private ModifyAckDeadlineRequest(com.google.protobuf.GeneratedMessageV3.Builder< private ModifyAckDeadlineRequest() { subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - ackDeadlineSeconds_ = 0; } @java.lang.Override @@ -67,7 +66,7 @@ private ModifyAckDeadlineRequest( case 34: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } @@ -76,7 +75,7 @@ private ModifyAckDeadlineRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -88,7 +87,7 @@ private ModifyAckDeadlineRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -292,12 +291,11 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ModifyAckDeadlineRequest other = (com.google.pubsub.v1.ModifyAckDeadlineRequest) obj; - boolean result = true; - result = result && getSubscription().equals(other.getSubscription()); - result = result && getAckIdsList().equals(other.getAckIdsList()); - result = result && (getAckDeadlineSeconds() == other.getAckDeadlineSeconds()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (getAckDeadlineSeconds() != other.getAckDeadlineSeconds()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -496,7 +494,7 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.subscription_ = subscription_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } @@ -509,35 +507,35 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -703,7 +701,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000002; } @@ -909,7 +907,7 @@ public Builder clearAckDeadlineSeconds() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index e541f2ae1523..3751260d2883 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -74,7 +74,7 @@ private ModifyPushConfigRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -253,14 +253,13 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.ModifyPushConfigRequest other = (com.google.pubsub.v1.ModifyPushConfigRequest) obj; - boolean result = true; - result = result && getSubscription().equals(other.getSubscription()); - result = result && (hasPushConfig() == other.hasPushConfig()); + if (!getSubscription().equals(other.getSubscription())) return false; + if (hasPushConfig() != other.hasPushConfig()) return false; if (hasPushConfig()) { - result = result && getPushConfig().equals(other.getPushConfig()); + if (!getPushConfig().equals(other.getPushConfig())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -468,35 +467,35 @@ public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -646,7 +645,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.pubsub.v1.PushConfig pushConfig_ = null; + private com.google.pubsub.v1.PushConfig pushConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, @@ -865,7 +864,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 9523ddea17c9..5ddd6b730156 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -60,7 +60,7 @@ private PublishRequest( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { messages_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } @@ -71,7 +71,7 @@ private PublishRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -83,7 +83,7 @@ private PublishRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); } this.unknownFields = unknownFields.build(); @@ -266,11 +266,10 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.PublishRequest other = (com.google.pubsub.v1.PublishRequest) obj; - boolean result = true; - result = result && getTopic().equals(other.getTopic()); - result = result && getMessagesList().equals(other.getMessagesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getTopic().equals(other.getTopic())) return false; + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -470,7 +469,7 @@ public com.google.pubsub.v1.PublishRequest buildPartial() { int to_bitField0_ = 0; result.topic_ = topic_; if (messagesBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); bitField0_ = (bitField0_ & ~0x00000002); } @@ -485,35 +484,35 @@ public com.google.pubsub.v1.PublishRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -693,7 +692,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000002; } @@ -1031,10 +1030,7 @@ public java.util.List getMessagesBui com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( - messages_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); + messages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; @@ -1042,7 +1038,7 @@ public java.util.List getMessagesBui @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 09cae8073b63..4d8c4ac19d3b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -53,7 +53,7 @@ private PublishResponse( case 10: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { messageIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -62,7 +62,7 @@ private PublishResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -74,7 +74,7 @@ private PublishResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { messageIds_ = messageIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -205,10 +205,9 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.PublishResponse other = (com.google.pubsub.v1.PublishResponse) obj; - boolean result = true; - result = result && getMessageIdsList().equals(other.getMessageIdsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getMessageIdsList().equals(other.getMessageIdsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -395,7 +394,7 @@ public com.google.pubsub.v1.PublishResponse build() { public com.google.pubsub.v1.PublishResponse buildPartial() { com.google.pubsub.v1.PublishResponse result = new com.google.pubsub.v1.PublishResponse(this); int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { messageIds_ = messageIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } @@ -406,35 +405,35 @@ public com.google.pubsub.v1.PublishResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -494,7 +493,7 @@ public Builder mergeFrom( com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMessageIdsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { messageIds_ = new com.google.protobuf.LazyStringArrayList(messageIds_); bitField0_ |= 0x00000001; } @@ -653,7 +652,7 @@ public Builder addMessageIdsBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index e82e70355728..a6f00495369d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -66,7 +66,7 @@ private PubsubMessage( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); @@ -110,7 +110,7 @@ private PubsubMessage( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -487,17 +487,16 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.PubsubMessage other = (com.google.pubsub.v1.PubsubMessage) obj; - boolean result = true; - result = result && getData().equals(other.getData()); - result = result && internalGetAttributes().equals(other.internalGetAttributes()); - result = result && getMessageId().equals(other.getMessageId()); - result = result && (hasPublishTime() == other.hasPublishTime()); + if (!getData().equals(other.getData())) return false; + if (!internalGetAttributes().equals(other.internalGetAttributes())) return false; + if (!getMessageId().equals(other.getMessageId())) return false; + if (hasPublishTime() != other.hasPublishTime()) return false; if (hasPublishTime()) { - result = result && getPublishTime().equals(other.getPublishTime()); + if (!getPublishTime().equals(other.getPublishTime())) return false; } - result = result && getOrderingKey().equals(other.getOrderingKey()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getOrderingKey().equals(other.getOrderingKey())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -750,35 +749,35 @@ public com.google.pubsub.v1.PubsubMessage buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1153,7 +1152,7 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Timestamp publishTime_ = null; + private com.google.protobuf.Timestamp publishTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1478,7 +1477,7 @@ public Builder setOrderingKeyBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 0835c9b42936..eb45e5ee87ff 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -24,8 +24,6 @@ private PullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { private PullRequest() { subscription_ = ""; - returnImmediately_ = false; - maxMessages_ = 0; } @java.lang.Override @@ -71,7 +69,7 @@ private PullRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -236,12 +234,11 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.PullRequest other = (com.google.pubsub.v1.PullRequest) obj; - boolean result = true; - result = result && getSubscription().equals(other.getSubscription()); - result = result && (getReturnImmediately() == other.getReturnImmediately()); - result = result && (getMaxMessages() == other.getMaxMessages()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSubscription().equals(other.getSubscription())) return false; + if (getReturnImmediately() != other.getReturnImmediately()) return false; + if (getMaxMessages() != other.getMaxMessages()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -442,35 +439,35 @@ public com.google.pubsub.v1.PullRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -725,7 +722,7 @@ public Builder clearMaxMessages() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 55644a3440a6..1df37195015a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -52,7 +52,7 @@ private PullResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { receivedMessages_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -63,7 +63,7 @@ private PullResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -75,7 +75,7 @@ private PullResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); } this.unknownFields = unknownFields.build(); @@ -221,10 +221,9 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.PullResponse other = (com.google.pubsub.v1.PullResponse) obj; - boolean result = true; - result = result && getReceivedMessagesList().equals(other.getReceivedMessagesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getReceivedMessagesList().equals(other.getReceivedMessagesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -418,7 +417,7 @@ public com.google.pubsub.v1.PullResponse buildPartial() { com.google.pubsub.v1.PullResponse result = new com.google.pubsub.v1.PullResponse(this); int from_bitField0_ = bitField0_; if (receivedMessagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -432,35 +431,35 @@ public com.google.pubsub.v1.PullResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -537,7 +536,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureReceivedMessagesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { receivedMessages_ = new java.util.ArrayList(receivedMessages_); bitField0_ |= 0x00000001; @@ -933,7 +932,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>( receivedMessages_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); receivedMessages_ = null; @@ -943,7 +942,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 2f4ea218ae06..4e8728030da6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -59,7 +59,7 @@ private PushConfig( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); @@ -92,7 +92,7 @@ private PushConfig( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -266,7 +266,7 @@ private OidcToken( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -455,11 +455,10 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.PushConfig.OidcToken other = (com.google.pubsub.v1.PushConfig.OidcToken) obj; - boolean result = true; - result = result && getServiceAccountEmail().equals(other.getServiceAccountEmail()); - result = result && getAudience().equals(other.getAudience()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (!getAudience().equals(other.getAudience())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -661,23 +660,23 @@ public com.google.pubsub.v1.PushConfig.OidcToken buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override @@ -685,13 +684,13 @@ public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -984,7 +983,7 @@ public Builder setAudienceBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override @@ -1381,20 +1380,18 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.PushConfig other = (com.google.pubsub.v1.PushConfig) obj; - boolean result = true; - result = result && getPushEndpoint().equals(other.getPushEndpoint()); - result = result && internalGetAttributes().equals(other.internalGetAttributes()); - result = result && getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase()); - if (!result) return false; + if (!getPushEndpoint().equals(other.getPushEndpoint())) return false; + if (!internalGetAttributes().equals(other.internalGetAttributes())) return false; + if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false; switch (authenticationMethodCase_) { case 3: - result = result && getOidcToken().equals(other.getOidcToken()); + if (!getOidcToken().equals(other.getOidcToken())) return false; break; case 0: default: } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1632,35 +1629,35 @@ public com.google.pubsub.v1.PushConfig buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -2308,7 +2305,7 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index b1c5d403e12b..686886d57e68 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -74,7 +74,7 @@ private ReceivedMessage( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -238,14 +238,13 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.ReceivedMessage other = (com.google.pubsub.v1.ReceivedMessage) obj; - boolean result = true; - result = result && getAckId().equals(other.getAckId()); - result = result && (hasMessage() == other.hasMessage()); + if (!getAckId().equals(other.getAckId())) return false; + if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { - result = result && getMessage().equals(other.getMessage()); + if (!getMessage().equals(other.getMessage())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -451,35 +450,35 @@ public com.google.pubsub.v1.ReceivedMessage buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -624,7 +623,7 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.pubsub.v1.PubsubMessage message_ = null; + private com.google.pubsub.v1.PubsubMessage message_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, @@ -807,7 +806,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 47f4f36f6bf2..df514bd902eb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -84,7 +84,7 @@ private SeekRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -385,22 +385,20 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.SeekRequest other = (com.google.pubsub.v1.SeekRequest) obj; - boolean result = true; - result = result && getSubscription().equals(other.getSubscription()); - result = result && getTargetCase().equals(other.getTargetCase()); - if (!result) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 2: - result = result && getTime().equals(other.getTime()); + if (!getTime().equals(other.getTime())) return false; break; case 3: - result = result && getSnapshot().equals(other.getSnapshot()); + if (!getSnapshot().equals(other.getSnapshot())) return false; break; case 0: default: } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -619,35 +617,35 @@ public com.google.pubsub.v1.SeekRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1225,7 +1223,7 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 0265e69576c8..e10cc7adb51b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -49,7 +49,7 @@ private SeekResponse( break; default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -119,9 +119,8 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.SeekResponse other = (com.google.pubsub.v1.SeekResponse) obj; - boolean result = true; - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -307,35 +306,35 @@ public com.google.pubsub.v1.SeekResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -381,7 +380,7 @@ public Builder mergeFrom( @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 9be35782091d..6fda13845b28 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -90,7 +90,7 @@ private Snapshot( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000008; @@ -103,7 +103,7 @@ private Snapshot( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -462,16 +462,15 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.Snapshot other = (com.google.pubsub.v1.Snapshot) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && getTopic().equals(other.getTopic()); - result = result && (hasExpireTime() == other.hasExpireTime()); + if (!getName().equals(other.getName())) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - result = result && getExpireTime().equals(other.getExpireTime()); + if (!getExpireTime().equals(other.getExpireTime())) return false; } - result = result && internalGetLabels().equals(other.internalGetLabels()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -717,35 +716,35 @@ public com.google.pubsub.v1.Snapshot buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -991,7 +990,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Timestamp expireTime_ = null; + private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, @@ -1412,7 +1411,7 @@ public Builder putAllLabels(java.util.Map va @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 78a99998020c..20f95dbb9710 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -27,9 +27,8 @@ private StreamingPullRequest(com.google.protobuf.GeneratedMessageV3.Builder b private StreamingPullRequest() { subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - modifyDeadlineSeconds_ = java.util.Collections.emptyList(); + modifyDeadlineSeconds_ = emptyIntList(); modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - streamAckDeadlineSeconds_ = 0; } @java.lang.Override @@ -66,7 +65,7 @@ private StreamingPullRequest( case 18: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } @@ -75,24 +74,23 @@ private StreamingPullRequest( } case 24: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - modifyDeadlineSeconds_ = new java.util.ArrayList(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + modifyDeadlineSeconds_ = newIntList(); mutable_bitField0_ |= 0x00000004; } - modifyDeadlineSeconds_.add(input.readInt32()); + modifyDeadlineSeconds_.addInt(input.readInt32()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) - && input.getBytesUntilLimit() > 0) { - modifyDeadlineSeconds_ = new java.util.ArrayList(); + if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { + modifyDeadlineSeconds_ = newIntList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { - modifyDeadlineSeconds_.add(input.readInt32()); + modifyDeadlineSeconds_.addInt(input.readInt32()); } input.popLimit(limit); break; @@ -100,7 +98,7 @@ private StreamingPullRequest( case 34: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } @@ -114,7 +112,7 @@ private StreamingPullRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -126,13 +124,13 @@ private StreamingPullRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - modifyDeadlineSeconds_ = java.util.Collections.unmodifiableList(modifyDeadlineSeconds_); + if (((mutable_bitField0_ & 0x00000004) != 0)) { + modifyDeadlineSeconds_.makeImmutable(); // C } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { modifyDeadlineAckIds_ = modifyDeadlineAckIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -273,7 +271,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { } public static final int MODIFY_DEADLINE_SECONDS_FIELD_NUMBER = 3; - private java.util.List modifyDeadlineSeconds_; + private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_; /** * * @@ -338,7 +336,7 @@ public int getModifyDeadlineSecondsCount() { * repeated int32 modify_deadline_seconds = 3; */ public int getModifyDeadlineSeconds(int index) { - return modifyDeadlineSeconds_.get(index); + return modifyDeadlineSeconds_.getInt(index); } private int modifyDeadlineSecondsMemoizedSerializedSize = -1; @@ -454,7 +452,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeUInt32NoTag(modifyDeadlineSecondsMemoizedSerializedSize); } for (int i = 0; i < modifyDeadlineSeconds_.size(); i++) { - output.writeInt32NoTag(modifyDeadlineSeconds_.get(i)); + output.writeInt32NoTag(modifyDeadlineSeconds_.getInt(i)); } for (int i = 0; i < modifyDeadlineAckIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( @@ -488,7 +486,7 @@ public int getSerializedSize() { for (int i = 0; i < modifyDeadlineSeconds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( - modifyDeadlineSeconds_.get(i)); + modifyDeadlineSeconds_.getInt(i)); } size += dataSize; if (!getModifyDeadlineSecondsList().isEmpty()) { @@ -524,14 +522,13 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.StreamingPullRequest other = (com.google.pubsub.v1.StreamingPullRequest) obj; - boolean result = true; - result = result && getSubscription().equals(other.getSubscription()); - result = result && getAckIdsList().equals(other.getAckIdsList()); - result = result && getModifyDeadlineSecondsList().equals(other.getModifyDeadlineSecondsList()); - result = result && getModifyDeadlineAckIdsList().equals(other.getModifyDeadlineAckIdsList()); - result = result && (getStreamAckDeadlineSeconds() == other.getStreamAckDeadlineSeconds()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (!getModifyDeadlineSecondsList().equals(other.getModifyDeadlineSecondsList())) return false; + if (!getModifyDeadlineAckIdsList().equals(other.getModifyDeadlineAckIdsList())) return false; + if (getStreamAckDeadlineSeconds() != other.getStreamAckDeadlineSeconds()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -708,7 +705,7 @@ public Builder clear() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); - modifyDeadlineSeconds_ = java.util.Collections.emptyList(); + modifyDeadlineSeconds_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); @@ -744,17 +741,17 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.subscription_ = subscription_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.ackIds_ = ackIds_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - modifyDeadlineSeconds_ = java.util.Collections.unmodifiableList(modifyDeadlineSeconds_); + if (((bitField0_ & 0x00000004) != 0)) { + modifyDeadlineSeconds_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.modifyDeadlineSeconds_ = modifyDeadlineSeconds_; - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { modifyDeadlineAckIds_ = modifyDeadlineAckIds_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } @@ -767,35 +764,35 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -991,7 +988,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { + if (!((bitField0_ & 0x00000002) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); bitField0_ |= 0x00000002; } @@ -1166,12 +1163,11 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List modifyDeadlineSeconds_ = - java.util.Collections.emptyList(); + private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); private void ensureModifyDeadlineSecondsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - modifyDeadlineSeconds_ = new java.util.ArrayList(modifyDeadlineSeconds_); + if (!((bitField0_ & 0x00000004) != 0)) { + modifyDeadlineSeconds_ = mutableCopy(modifyDeadlineSeconds_); bitField0_ |= 0x00000004; } } @@ -1195,7 +1191,9 @@ private void ensureModifyDeadlineSecondsIsMutable() { * repeated int32 modify_deadline_seconds = 3; */ public java.util.List getModifyDeadlineSecondsList() { - return java.util.Collections.unmodifiableList(modifyDeadlineSeconds_); + return ((bitField0_ & 0x00000004) != 0) + ? java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) + : modifyDeadlineSeconds_; } /** * @@ -1239,7 +1237,7 @@ public int getModifyDeadlineSecondsCount() { * repeated int32 modify_deadline_seconds = 3; */ public int getModifyDeadlineSeconds(int index) { - return modifyDeadlineSeconds_.get(index); + return modifyDeadlineSeconds_.getInt(index); } /** * @@ -1262,7 +1260,7 @@ public int getModifyDeadlineSeconds(int index) { */ public Builder setModifyDeadlineSeconds(int index, int value) { ensureModifyDeadlineSecondsIsMutable(); - modifyDeadlineSeconds_.set(index, value); + modifyDeadlineSeconds_.setInt(index, value); onChanged(); return this; } @@ -1287,7 +1285,7 @@ public Builder setModifyDeadlineSeconds(int index, int value) { */ public Builder addModifyDeadlineSeconds(int value) { ensureModifyDeadlineSecondsIsMutable(); - modifyDeadlineSeconds_.add(value); + modifyDeadlineSeconds_.addInt(value); onChanged(); return this; } @@ -1337,7 +1335,7 @@ public Builder addAllModifyDeadlineSeconds( * repeated int32 modify_deadline_seconds = 3; */ public Builder clearModifyDeadlineSeconds() { - modifyDeadlineSeconds_ = java.util.Collections.emptyList(); + modifyDeadlineSeconds_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; @@ -1347,7 +1345,7 @@ public Builder clearModifyDeadlineSeconds() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureModifyDeadlineAckIdsIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { + if (!((bitField0_ & 0x00000008) != 0)) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(modifyDeadlineAckIds_); bitField0_ |= 0x00000008; } @@ -1577,7 +1575,7 @@ public Builder clearStreamAckDeadlineSeconds() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 75a8da757312..217891b9868a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -53,7 +53,7 @@ private StreamingPullResponse( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { receivedMessages_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } @@ -64,7 +64,7 @@ private StreamingPullResponse( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -76,7 +76,7 @@ private StreamingPullResponse( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); } this.unknownFields = unknownFields.build(); @@ -208,10 +208,9 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.StreamingPullResponse other = (com.google.pubsub.v1.StreamingPullResponse) obj; - boolean result = true; - result = result && getReceivedMessagesList().equals(other.getReceivedMessagesList()); - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!getReceivedMessagesList().equals(other.getReceivedMessagesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -408,7 +407,7 @@ public com.google.pubsub.v1.StreamingPullResponse buildPartial() { new com.google.pubsub.v1.StreamingPullResponse(this); int from_bitField0_ = bitField0_; if (receivedMessagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); bitField0_ = (bitField0_ & ~0x00000001); } @@ -422,35 +421,35 @@ public com.google.pubsub.v1.StreamingPullResponse buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -527,7 +526,7 @@ public Builder mergeFrom( java.util.Collections.emptyList(); private void ensureReceivedMessagesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { + if (!((bitField0_ & 0x00000001) != 0)) { receivedMessages_ = new java.util.ArrayList(receivedMessages_); bitField0_ |= 0x00000001; @@ -869,7 +868,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>( receivedMessages_, - ((bitField0_ & 0x00000001) == 0x00000001), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); receivedMessages_ = null; @@ -879,7 +878,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index f5a07cb1b551..505e1aaf9465 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -25,9 +25,6 @@ private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) private Subscription() { name_ = ""; topic_ = ""; - ackDeadlineSeconds_ = 0; - retainAckedMessages_ = false; - enableMessageOrdering_ = false; } @java.lang.Override @@ -110,7 +107,7 @@ private Subscription( } case 74: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + if (!((mutable_bitField0_ & 0x00000040) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000040; @@ -144,7 +141,7 @@ private Subscription( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -739,27 +736,26 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.Subscription other = (com.google.pubsub.v1.Subscription) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && getTopic().equals(other.getTopic()); - result = result && (hasPushConfig() == other.hasPushConfig()); + if (!getName().equals(other.getName())) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (hasPushConfig() != other.hasPushConfig()) return false; if (hasPushConfig()) { - result = result && getPushConfig().equals(other.getPushConfig()); + if (!getPushConfig().equals(other.getPushConfig())) return false; } - result = result && (getAckDeadlineSeconds() == other.getAckDeadlineSeconds()); - result = result && (getRetainAckedMessages() == other.getRetainAckedMessages()); - result = result && (hasMessageRetentionDuration() == other.hasMessageRetentionDuration()); + if (getAckDeadlineSeconds() != other.getAckDeadlineSeconds()) return false; + if (getRetainAckedMessages() != other.getRetainAckedMessages()) return false; + if (hasMessageRetentionDuration() != other.hasMessageRetentionDuration()) return false; if (hasMessageRetentionDuration()) { - result = result && getMessageRetentionDuration().equals(other.getMessageRetentionDuration()); + if (!getMessageRetentionDuration().equals(other.getMessageRetentionDuration())) return false; } - result = result && internalGetLabels().equals(other.internalGetLabels()); - result = result && (getEnableMessageOrdering() == other.getEnableMessageOrdering()); - result = result && (hasExpirationPolicy() == other.hasExpirationPolicy()); + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getEnableMessageOrdering() != other.getEnableMessageOrdering()) return false; + if (hasExpirationPolicy() != other.hasExpirationPolicy()) return false; if (hasExpirationPolicy()) { - result = result && getExpirationPolicy().equals(other.getExpirationPolicy()); + if (!getExpirationPolicy().equals(other.getExpirationPolicy())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -1045,35 +1041,35 @@ public com.google.pubsub.v1.Subscription buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1374,7 +1370,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.pubsub.v1.PushConfig pushConfig_ = null; + private com.google.pubsub.v1.PushConfig pushConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, @@ -1739,7 +1735,7 @@ public Builder clearRetainAckedMessages() { return this; } - private com.google.protobuf.Duration messageRetentionDuration_ = null; + private com.google.protobuf.Duration messageRetentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, @@ -2214,7 +2210,7 @@ public Builder clearEnableMessageOrdering() { return this; } - private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_ = null; + private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, @@ -2470,7 +2466,7 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 81b43222ba96..f715829d17db 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -59,7 +59,7 @@ private Topic( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; @@ -88,7 +88,7 @@ private Topic( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -399,15 +399,14 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.Topic other = (com.google.pubsub.v1.Topic) obj; - boolean result = true; - result = result && getName().equals(other.getName()); - result = result && internalGetLabels().equals(other.internalGetLabels()); - result = result && (hasMessageStoragePolicy() == other.hasMessageStoragePolicy()); + if (!getName().equals(other.getName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasMessageStoragePolicy() != other.hasMessageStoragePolicy()) return false; if (hasMessageStoragePolicy()) { - result = result && getMessageStoragePolicy().equals(other.getMessageStoragePolicy()); + if (!getMessageStoragePolicy().equals(other.getMessageStoragePolicy())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -640,35 +639,35 @@ public com.google.pubsub.v1.Topic buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -1000,7 +999,7 @@ public Builder putAllLabels(java.util.Map va return this; } - private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_ = null; + private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, @@ -1229,7 +1228,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 472730603638..58c855888da1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -83,7 +83,7 @@ private UpdateSnapshotRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -247,17 +247,16 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.UpdateSnapshotRequest other = (com.google.pubsub.v1.UpdateSnapshotRequest) obj; - boolean result = true; - result = result && (hasSnapshot() == other.hasSnapshot()); + if (hasSnapshot() != other.hasSnapshot()) return false; if (hasSnapshot()) { - result = result && getSnapshot().equals(other.getSnapshot()); + if (!getSnapshot().equals(other.getSnapshot())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -478,35 +477,35 @@ public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -556,7 +555,7 @@ public Builder mergeFrom( return this; } - private com.google.pubsub.v1.Snapshot snapshot_ = null; + private com.google.pubsub.v1.Snapshot snapshot_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, @@ -731,7 +730,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { return snapshotBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -921,7 +920,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 7843de87e2b3..abab7190e04f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -80,7 +80,7 @@ private UpdateSubscriptionRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -246,17 +246,16 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.UpdateSubscriptionRequest other = (com.google.pubsub.v1.UpdateSubscriptionRequest) obj; - boolean result = true; - result = result && (hasSubscription() == other.hasSubscription()); + if (hasSubscription() != other.hasSubscription()) return false; if (hasSubscription()) { - result = result && getSubscription().equals(other.getSubscription()); + if (!getSubscription().equals(other.getSubscription())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -474,35 +473,35 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -552,7 +551,7 @@ public Builder mergeFrom( return this; } - private com.google.pubsub.v1.Subscription subscription_ = null; + private com.google.pubsub.v1.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, @@ -733,7 +732,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { return subscriptionBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -923,7 +922,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 66371d9bdc6f..d9cad096d9d9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -79,7 +79,7 @@ private UpdateTopicRequest( } default: { - if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; @@ -251,17 +251,16 @@ public boolean equals(final java.lang.Object obj) { } com.google.pubsub.v1.UpdateTopicRequest other = (com.google.pubsub.v1.UpdateTopicRequest) obj; - boolean result = true; - result = result && (hasTopic() == other.hasTopic()); + if (hasTopic() != other.hasTopic()) return false; if (hasTopic()) { - result = result && getTopic().equals(other.getTopic()); + if (!getTopic().equals(other.getTopic())) return false; } - result = result && (hasUpdateMask() == other.hasUpdateMask()); + if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - result = result && getUpdateMask().equals(other.getUpdateMask()); + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - result = result && unknownFields.equals(other.unknownFields); - return result; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override @@ -479,35 +478,35 @@ public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { @java.lang.Override public Builder clone() { - return (Builder) super.clone(); + return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.setField(field, value); + return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + return super.addRepeatedField(field, value); } @java.lang.Override @@ -557,7 +556,7 @@ public Builder mergeFrom( return this; } - private com.google.pubsub.v1.Topic topic_ = null; + private com.google.pubsub.v1.Topic topic_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, @@ -730,7 +729,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { return topicBuilder_; } - private com.google.protobuf.FieldMask updateMask_ = null; + private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, @@ -947,7 +946,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFieldsProto3(unknownFields); + return super.setUnknownFields(unknownFields); } @java.lang.Override From 2f628c296cd63375755c451e83f4e7471fba2463 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Mon, 1 Apr 2019 19:13:20 -0400 Subject: [PATCH 0144/2363] Upgrade gax to 1.43.0. (#4836) * Upgrade gax to 1.43.0. * code format --- .../google/cloud/pubsub/v1/MockIAMPolicy.java | 6 ++-- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 10 +++---- .../google/cloud/pubsub/v1/MockPublisher.java | 6 ++-- .../cloud/pubsub/v1/MockPublisherImpl.java | 10 +++---- .../cloud/pubsub/v1/MockSubscriber.java | 6 ++-- .../cloud/pubsub/v1/MockSubscriberImpl.java | 10 +++---- .../v1/SubscriptionAdminClientTest.java | 30 +++++++++---------- .../cloud/pubsub/v1/TopicAdminClientTest.java | 20 ++++++------- 8 files changed, 49 insertions(+), 49 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java index 15d84f60c63d..353aee4679ed 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -17,7 +17,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.GeneratedMessageV3; +import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; @@ -31,12 +31,12 @@ public MockIAMPolicy() { } @Override - public List getRequests() { + public List getRequests() { return serviceImpl.getRequests(); } @Override - public void addResponse(GeneratedMessageV3 response) { + public void addResponse(AbstractMessage response) { serviceImpl.addResponse(response); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index 0b2084391413..e1630035f35f 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -22,7 +22,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.GeneratedMessageV3; +import com.google.protobuf.AbstractMessage; import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; @@ -32,7 +32,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockIAMPolicyImpl extends IAMPolicyImplBase { - private ArrayList requests; + private ArrayList requests; private Queue responses; public MockIAMPolicyImpl() { @@ -40,15 +40,15 @@ public MockIAMPolicyImpl() { responses = new LinkedList<>(); } - public List getRequests() { + public List getRequests() { return requests; } - public void addResponse(GeneratedMessageV3 response) { + public void addResponse(AbstractMessage response) { responses.add(response); } - public void setResponses(List responses) { + public void setResponses(List responses) { this.responses = new LinkedList(responses); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java index 306787cd1ff5..5fedd620003c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java @@ -17,7 +17,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.GeneratedMessageV3; +import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; @@ -31,12 +31,12 @@ public MockPublisher() { } @Override - public List getRequests() { + public List getRequests() { return serviceImpl.getRequests(); } @Override - public void addResponse(GeneratedMessageV3 response) { + public void addResponse(AbstractMessage response) { serviceImpl.addResponse(response); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index e458610a89b0..48f215c9bb49 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -16,8 +16,8 @@ package com.google.cloud.pubsub.v1; import com.google.api.core.BetaApi; +import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; -import com.google.protobuf.GeneratedMessageV3; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; @@ -38,7 +38,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockPublisherImpl extends PublisherImplBase { - private ArrayList requests; + private ArrayList requests; private Queue responses; public MockPublisherImpl() { @@ -46,15 +46,15 @@ public MockPublisherImpl() { responses = new LinkedList<>(); } - public List getRequests() { + public List getRequests() { return requests; } - public void addResponse(GeneratedMessageV3 response) { + public void addResponse(AbstractMessage response) { responses.add(response); } - public void setResponses(List responses) { + public void setResponses(List responses) { this.responses = new LinkedList(responses); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java index 238f36fbe818..be46f47f7cf5 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -17,7 +17,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.GeneratedMessageV3; +import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; @@ -31,12 +31,12 @@ public MockSubscriber() { } @Override - public List getRequests() { + public List getRequests() { return serviceImpl.getRequests(); } @Override - public void addResponse(GeneratedMessageV3 response) { + public void addResponse(AbstractMessage response) { serviceImpl.addResponse(response); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index f6d387ef7476..2ade2858d4a6 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -16,8 +16,8 @@ package com.google.cloud.pubsub.v1; import com.google.api.core.BetaApi; +import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; -import com.google.protobuf.GeneratedMessageV3; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; @@ -49,7 +49,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockSubscriberImpl extends SubscriberImplBase { - private ArrayList requests; + private ArrayList requests; private Queue responses; public MockSubscriberImpl() { @@ -57,15 +57,15 @@ public MockSubscriberImpl() { responses = new LinkedList<>(); } - public List getRequests() { + public List getRequests() { return requests; } - public void addResponse(GeneratedMessageV3 response) { + public void addResponse(AbstractMessage response) { responses.add(response); } - public void setResponses(List responses) { + public void setResponses(List responses) { this.responses = new LinkedList(responses); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 9580bc069267..77a67d2732b2 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -35,9 +35,9 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.AbstractMessage; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; -import com.google.protobuf.GeneratedMessageV3; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; @@ -147,7 +147,7 @@ public void createSubscriptionTest() { client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); Subscription actualRequest = (Subscription) actualRequests.get(0); @@ -204,7 +204,7 @@ public void getSubscriptionTest() { Subscription actualResponse = client.getSubscription(subscription); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetSubscriptionRequest actualRequest = (GetSubscriptionRequest) actualRequests.get(0); @@ -254,7 +254,7 @@ public void listSubscriptionsTest() { Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListSubscriptionsRequest actualRequest = (ListSubscriptionsRequest) actualRequests.get(0); @@ -292,7 +292,7 @@ public void deleteSubscriptionTest() { client.deleteSubscription(subscription); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteSubscriptionRequest actualRequest = (DeleteSubscriptionRequest) actualRequests.get(0); @@ -334,7 +334,7 @@ public void modifyAckDeadlineTest() { client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); ModifyAckDeadlineRequest actualRequest = (ModifyAckDeadlineRequest) actualRequests.get(0); @@ -379,7 +379,7 @@ public void acknowledgeTest() { client.acknowledge(subscription, ackIds); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); AcknowledgeRequest actualRequest = (AcknowledgeRequest) actualRequests.get(0); @@ -424,7 +424,7 @@ public void pullTest() { PullResponse actualResponse = client.pull(subscription, returnImmediately, maxMessages); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); PullRequest actualRequest = (PullRequest) actualRequests.get(0); @@ -534,7 +534,7 @@ public void modifyPushConfigTest() { client.modifyPushConfig(subscription, pushConfig); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); ModifyPushConfigRequest actualRequest = (ModifyPushConfigRequest) actualRequests.get(0); @@ -586,7 +586,7 @@ public void listSnapshotsTest() { Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListSnapshotsRequest actualRequest = (ListSnapshotsRequest) actualRequests.get(0); @@ -629,7 +629,7 @@ public void createSnapshotTest() { Snapshot actualResponse = client.createSnapshot(name, subscription); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); CreateSnapshotRequest actualRequest = (CreateSnapshotRequest) actualRequests.get(0); @@ -670,7 +670,7 @@ public void deleteSnapshotTest() { client.deleteSnapshot(snapshot); - List actualRequests = mockSubscriber.getRequests(); + List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteSnapshotRequest actualRequest = (DeleteSnapshotRequest) actualRequests.get(0); @@ -711,7 +711,7 @@ public void setIamPolicyTest() { Policy actualResponse = client.setIamPolicy(formattedResource, policy); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); SetIamPolicyRequest actualRequest = (SetIamPolicyRequest) actualRequests.get(0); @@ -753,7 +753,7 @@ public void getIamPolicyTest() { Policy actualResponse = client.getIamPolicy(formattedResource); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetIamPolicyRequest actualRequest = (GetIamPolicyRequest) actualRequests.get(0); @@ -793,7 +793,7 @@ public void testIamPermissionsTest() { client.testIamPermissions(formattedResource, permissions); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); TestIamPermissionsRequest actualRequest = (TestIamPermissionsRequest) actualRequests.get(0); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index a87462aedabb..d2ac5766d77f 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -31,9 +31,9 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.AbstractMessage; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; -import com.google.protobuf.GeneratedMessageV3; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; @@ -115,7 +115,7 @@ public void createTopicTest() { Topic actualResponse = client.createTopic(name); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockPublisher.getRequests(); + List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); Topic actualRequest = (Topic) actualRequests.get(0); @@ -159,7 +159,7 @@ public void publishTest() { PublishResponse actualResponse = client.publish(topic, messages); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockPublisher.getRequests(); + List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); PublishRequest actualRequest = (PublishRequest) actualRequests.get(0); @@ -202,7 +202,7 @@ public void getTopicTest() { Topic actualResponse = client.getTopic(topic); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockPublisher.getRequests(); + List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetTopicRequest actualRequest = (GetTopicRequest) actualRequests.get(0); @@ -250,7 +250,7 @@ public void listTopicsTest() { Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); - List actualRequests = mockPublisher.getRequests(); + List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListTopicsRequest actualRequest = (ListTopicsRequest) actualRequests.get(0); @@ -305,7 +305,7 @@ public void listTopicSubscriptionsTest() { ProjectSubscriptionName.parse(expectedResponse.getSubscriptionsList().get(0)), resourceNames.get(0)); - List actualRequests = mockPublisher.getRequests(); + List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListTopicSubscriptionsRequest actualRequest = (ListTopicSubscriptionsRequest) actualRequests.get(0); @@ -343,7 +343,7 @@ public void deleteTopicTest() { client.deleteTopic(topic); - List actualRequests = mockPublisher.getRequests(); + List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); DeleteTopicRequest actualRequest = (DeleteTopicRequest) actualRequests.get(0); @@ -384,7 +384,7 @@ public void setIamPolicyTest() { Policy actualResponse = client.setIamPolicy(formattedResource, policy); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); SetIamPolicyRequest actualRequest = (SetIamPolicyRequest) actualRequests.get(0); @@ -426,7 +426,7 @@ public void getIamPolicyTest() { Policy actualResponse = client.getIamPolicy(formattedResource); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); GetIamPolicyRequest actualRequest = (GetIamPolicyRequest) actualRequests.get(0); @@ -466,7 +466,7 @@ public void testIamPermissionsTest() { client.testIamPermissions(formattedResource, permissions); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); TestIamPermissionsRequest actualRequest = (TestIamPermissionsRequest) actualRequests.get(0); From 1b1721e1b4e965d9042ef87496679a6fb9c02f67 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Tue, 2 Apr 2019 01:33:28 -0700 Subject: [PATCH 0145/2363] Regenerate pubsub client (#4856) --- .../com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../com/google/cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../com/google/cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- java-pubsub/google-cloud-pubsub/synth.metadata | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index e1630035f35f..4461c56653aa 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -32,7 +32,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockIAMPolicyImpl extends IAMPolicyImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockIAMPolicyImpl() { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 48f215c9bb49..65a379ff7f99 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -38,7 +38,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockPublisherImpl extends PublisherImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockPublisherImpl() { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index 2ade2858d4a6..c59de7ed7c91 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -49,7 +49,7 @@ @javax.annotation.Generated("by GAPIC") @BetaApi public class MockSubscriberImpl extends SubscriberImplBase { - private ArrayList requests; + private List requests; private Queue responses; public MockSubscriberImpl() { diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index 1261449337fb..3b65f35f62bc 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-30T07:50:27.552803Z", + "updateTime": "2019-04-02T07:51:42.879133Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.21", - "dockerImage": "googleapis/artman@sha256:854131ec1af7b3a313253474c24748dc0acd217a58a0b74dbfb559f340a15d78" + "version": "0.16.22", + "dockerImage": "googleapis/artman@sha256:e7f9554322a8aa1416c122c918fdc4cdec8cfe816f027fc948dec0be7edef320" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "fd67be4b51a8c809b97100ccf1c3cffd15b85d7b", - "internalRef": "241096997" + "sha": "6c48ab5aef47dc14e02e2dc718d232a28067129d", + "internalRef": "241437588" } } ], From 4cc5261e638debf36ea667ed82d65352209dea8d Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 3 Apr 2019 14:23:54 -0400 Subject: [PATCH 0146/2363] Release v0.86.0 (#4899) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index d98de5da1ce2..47b4892d492c 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.67.0 + 1.68.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.67.0' +compile 'com.google.cloud:google-cloud-pubsub:1.68.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.68.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 36daa714baa9..49784bbe1c3c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.67.1-SNAPSHOT + 1.68.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.85.1-alpha-SNAPSHOT + 0.86.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5d832f7be383..11c8d1cbb243 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.49.1-SNAPSHOT + 1.50.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.50.1-SNAPSHOT + 0.51.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b245f44aae3e..2ae04200348c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.49.1-SNAPSHOT + 1.50.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.50.1-SNAPSHOT + 0.51.0 From 8dcebfbcd6bc40bbb5cec5cc3dcebca7ec2e275c Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 3 Apr 2019 17:25:41 -0400 Subject: [PATCH 0147/2363] Bump next snapshot (#4900) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 49784bbe1c3c..2d8e1990ed38 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.68.0 + 1.68.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.86.0-alpha + 0.86.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 11c8d1cbb243..5b550d679af6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.50.0 + 1.50.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.51.0 + 0.51.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2ae04200348c..5500162f9c66 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.50.0 + 1.50.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.51.0 + 0.51.1-SNAPSHOT From 31dce0effd1c8590cb9d1f32380a6b16b66cf942 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 4 Apr 2019 13:37:59 -0700 Subject: [PATCH 0148/2363] Release v0.87.0 (#4907) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 47b4892d492c..d3bfac58398f 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.68.0 + 1.69.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.68.0' +compile 'com.google.cloud:google-cloud-pubsub:1.69.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.68.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.69.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2d8e1990ed38..1637354b0fc6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.68.1-SNAPSHOT + 1.69.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.86.1-alpha-SNAPSHOT + 0.87.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5b550d679af6..6fd9044ae38b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.50.1-SNAPSHOT + 1.51.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.51.1-SNAPSHOT + 0.52.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5500162f9c66..33fd0f1817ef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.50.1-SNAPSHOT + 1.51.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.51.1-SNAPSHOT + 0.52.0 From 1b29a9e681b0af867cf47684c94814d0aeffca4b Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 4 Apr 2019 16:07:17 -0700 Subject: [PATCH 0149/2363] Bump next snapshot (#4908) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1637354b0fc6..97be315ff124 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.69.0 + 1.69.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.87.0-alpha + 0.87.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6fd9044ae38b..ca7c31009a32 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.51.0 + 1.51.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.52.0 + 0.52.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 33fd0f1817ef..966fe6bd9488 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.51.0 + 1.51.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.52.0 + 0.52.1-SNAPSHOT From 573b58184f469f3eab563d70f14377d97a0352a8 Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Fri, 12 Apr 2019 18:52:11 -0400 Subject: [PATCH 0150/2363] Change MessageDispatcher to be synchronous instead of asynchronous. (#4916) * Change MessageDispatcher to be synchronous instead of asynchronous. This removes the failure mode described in #2452 that can occur when MaxOutstandingElementCount is low and there is more than one connection. In this case, it is possible for an individual MessageDispatcher to have no outstanding in-flight messages, but also be blocked by flow control with a whole new batch outstanding. In this case, it will never make progress on that batch since it will never receive another batch and the queue was made to not be shared in #4590, so the batch will never be pulled off by another MessageDispatcher. By changing this to use a blocking flow controller, this will never happen, as each batch will synchronously wait until it is allowed by flow control before being processed. * Run mvn com.coveo:fmt-maven-plugin:format --- .../cloud/pubsub/v1/MessageDispatcher.java | 98 ++++--------------- .../v1/StreamingSubscriberConnection.java | 34 +++---- .../google/cloud/pubsub/v1/Subscriber.java | 2 +- .../pubsub/v1/MessageDispatcherTest.java | 18 ++-- 4 files changed, 45 insertions(+), 107 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index a851797500a0..3400c259e950 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -24,7 +24,6 @@ import com.google.api.gax.batching.FlowController; import com.google.api.gax.batching.FlowController.FlowControlException; import com.google.api.gax.core.Distribution; -import com.google.cloud.pubsub.v1.MessageDispatcher.OutstandingMessageBatch.OutstandingMessage; import com.google.common.primitives.Ints; import com.google.common.util.concurrent.MoreExecutors; import com.google.pubsub.v1.PubsubMessage; @@ -33,14 +32,11 @@ import java.util.Arrays; import java.util.Collection; import java.util.Collections; -import java.util.Deque; -import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.Executor; -import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; @@ -91,9 +87,6 @@ class MessageDispatcher { private final Lock jobLock; private ScheduledFuture backgroundJob; - private final LinkedBlockingDeque outstandingMessageBatches = - new LinkedBlockingDeque<>(); - // To keep track of number of seconds the receiver takes to process messages. private final Distribution ackLatencyDistribution; @@ -155,7 +148,6 @@ private void forget() { } flowController.release(1, outstandingBytes); messagesWaiter.incrementPendingMessages(-1); - processOutstandingBatches(); } @Override @@ -296,50 +288,19 @@ int getMessageDeadlineSeconds() { return messageDeadlineSeconds.get(); } - static class OutstandingMessageBatch { - private final Deque messages; - private final Runnable doneCallback; - - static class OutstandingMessage { - private final ReceivedMessage receivedMessage; - private final AckHandler ackHandler; - - public OutstandingMessage(ReceivedMessage receivedMessage, AckHandler ackHandler) { - this.receivedMessage = receivedMessage; - this.ackHandler = ackHandler; - } - - public ReceivedMessage receivedMessage() { - return receivedMessage; - } - - public AckHandler ackHandler() { - return ackHandler; - } - } + static class OutstandingMessage { + private final ReceivedMessage receivedMessage; + private final AckHandler ackHandler; - public OutstandingMessageBatch(Runnable doneCallback) { - this.messages = new LinkedList<>(); - this.doneCallback = doneCallback; - } - - public void addMessage(ReceivedMessage receivedMessage, AckHandler ackHandler) { - this.messages.add(new OutstandingMessage(receivedMessage, ackHandler)); - } - - public Deque messages() { - return messages; + public OutstandingMessage(ReceivedMessage receivedMessage, AckHandler ackHandler) { + this.receivedMessage = receivedMessage; + this.ackHandler = ackHandler; } } - public void processReceivedMessages(List messages, Runnable doneCallback) { - if (messages.isEmpty()) { - doneCallback.run(); - return; - } - + public void processReceivedMessages(List messages) { Instant totalExpiration = now().plus(maxAckExtensionPeriod); - OutstandingMessageBatch outstandingBatch = new OutstandingMessageBatch(doneCallback); + List outstandingBatch = new ArrayList<>(messages.size()); for (ReceivedMessage message : messages) { AckHandler ackHandler = new AckHandler( @@ -355,42 +316,25 @@ public void processReceivedMessages(List messages, Runnable don // totally expire so that pubsub service sends us the message again. continue; } - outstandingBatch.addMessage(message, ackHandler); + outstandingBatch.add(new OutstandingMessage(message, ackHandler)); pendingReceipts.add(message.getAckId()); } - if (outstandingBatch.messages.isEmpty()) { - doneCallback.run(); - return; - } - - messagesWaiter.incrementPendingMessages(outstandingBatch.messages.size()); - outstandingMessageBatches.add(outstandingBatch); - processOutstandingBatches(); + processBatch(outstandingBatch); } - private void processOutstandingBatches() { - for (OutstandingMessageBatch nextBatch = outstandingMessageBatches.poll(); - nextBatch != null; - nextBatch = outstandingMessageBatches.poll()) { - for (OutstandingMessage nextMessage = nextBatch.messages.poll(); - nextMessage != null; - nextMessage = nextBatch.messages.poll()) { - try { - // This is a non-blocking flow controller. - flowController.reserve(1, nextMessage.receivedMessage.getMessage().getSerializedSize()); - } catch (FlowController.MaxOutstandingElementCountReachedException - | FlowController.MaxOutstandingRequestBytesReachedException flowControlException) { - // Unwind previous changes in the batches outstanding. - nextBatch.messages.addFirst(nextMessage); - outstandingMessageBatches.addFirst(nextBatch); - return; - } catch (FlowControlException unexpectedException) { - throw new IllegalStateException("Flow control unexpected exception", unexpectedException); - } - processOutstandingMessage(nextMessage.receivedMessage.getMessage(), nextMessage.ackHandler); + private void processBatch(List batch) { + messagesWaiter.incrementPendingMessages(batch.size()); + for (OutstandingMessage message : batch) { + // This is a blocking flow controller. We have already incremented MessageWaiter, so + // shutdown will block on processing of all these messages anyway. + try { + flowController.reserve(1, message.receivedMessage.getMessage().getSerializedSize()); + } catch (FlowControlException unexpectedException) { + // This should be a blocking flow controller and never throw an exception. + throw new IllegalStateException("Flow control unexpected exception", unexpectedException); } - nextBatch.doneCallback.run(); + processOutstandingMessage(message.receivedMessage.getMessage(), message.ackHandler); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index ba12e97fb8a1..0f273c3429a8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -151,26 +151,20 @@ public void onStart(StreamController controller) { @Override public void onResponse(StreamingPullResponse response) { channelReconnectBackoffMillis.set(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); - messageDispatcher.processReceivedMessages( - response.getReceivedMessagesList(), - new Runnable() { - @Override - public void run() { - // Only request more if we're not shutdown. - // If errorFuture is done, the stream has either failed or hung up, - // and we don't need to request. - if (isAlive() && !errorFuture.isDone()) { - lock.lock(); - try { - thisController.request(1); - } catch (Exception e) { - logger.log(Level.WARNING, "cannot request more messages", e); - } finally { - lock.unlock(); - } - } - } - }); + messageDispatcher.processReceivedMessages(response.getReceivedMessagesList()); + // Only request more if we're not shutdown. + // If errorFuture is done, the stream has either failed or hung up, + // and we don't need to request. + if (isAlive() && !errorFuture.isDone()) { + lock.lock(); + try { + thisController.request(1); + } catch (Exception e) { + logger.log(Level.WARNING, "cannot request more messages", e); + } finally { + lock.unlock(); + } + } } @Override diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 70d17a4c9884..eb42ad82b7b6 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -130,7 +130,7 @@ private Subscriber(Builder builder) { builder .flowControlSettings .toBuilder() - .setLimitExceededBehavior(LimitExceededBehavior.ThrowException) + .setLimitExceededBehavior(LimitExceededBehavior.Block) .build()); this.numPullers = builder.parallelPullCount; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 494945e028df..c4ca6e51a023 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -105,7 +105,7 @@ public void sendAckOperations( new FlowController( FlowControlSettings.newBuilder() .setMaxOutstandingElementCount(1L) - .setLimitExceededBehavior(FlowController.LimitExceededBehavior.ThrowException) + .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) .build()); dispatcher = @@ -124,7 +124,7 @@ public void sendAckOperations( @Test public void testReceipt() throws Exception { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); dispatcher.processOutstandingAckOperations(); assertThat(sentModAcks) .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); @@ -132,7 +132,7 @@ public void testReceipt() throws Exception { @Test public void testAck() throws Exception { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); consumers.take().ack(); dispatcher.processOutstandingAckOperations(); assertThat(sentAcks).contains(TEST_MESSAGE.getAckId()); @@ -140,7 +140,7 @@ public void testAck() throws Exception { @Test public void testNack() throws Exception { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); consumers.take().nack(); dispatcher.processOutstandingAckOperations(); assertThat(sentModAcks).contains(ModAckItem.of(TEST_MESSAGE.getAckId(), 0)); @@ -148,7 +148,7 @@ public void testNack() throws Exception { @Test public void testExtension() throws Exception { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); dispatcher.extendDeadlines(); assertThat(sentModAcks) .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); @@ -161,7 +161,7 @@ public void testExtension() throws Exception { @Test public void testExtension_Close() throws Exception { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); dispatcher.extendDeadlines(); assertThat(sentModAcks) .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); @@ -176,7 +176,7 @@ public void testExtension_Close() throws Exception { @Test public void testExtension_GiveUp() throws Exception { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); dispatcher.extendDeadlines(); assertThat(sentModAcks) .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); @@ -188,7 +188,7 @@ public void testExtension_GiveUp() throws Exception { dispatcher.extendDeadlines(); assertThat(sentModAcks).isEmpty(); - // We should be able to reserve another item in the flow controller and not block shutdown + // We should be able to reserve another item in the flow controller and not block. flowController.reserve(1, 0); dispatcher.stop(); } @@ -197,7 +197,7 @@ public void testExtension_GiveUp() throws Exception { public void testDeadlineAdjustment() throws Exception { assertThat(dispatcher.computeDeadlineSeconds()).isEqualTo(10); - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE), NOOP_RUNNABLE); + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); clock.advance(42, TimeUnit.SECONDS); consumers.take().ack(); From 6f8992a488233bf34bcfdcfdede84416afeddfaa Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Mon, 15 Apr 2019 14:25:59 -0400 Subject: [PATCH 0151/2363] PubSub subscriber cleanup (#4947) Builder variables are now private --- .../google/cloud/pubsub/v1/Subscriber.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index eb42ad82b7b6..5433eb753bca 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -401,31 +401,31 @@ private void stopConnections(List connections) { public static final class Builder { private static final Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); - static final ExecutorProvider DEFAULT_EXECUTOR_PROVIDER = + private static final ExecutorProvider DEFAULT_EXECUTOR_PROVIDER = InstantiatingExecutorProvider.newBuilder() .setExecutorThreadCount(THREADS_PER_CHANNEL) .build(); - String subscriptionName; - MessageReceiver receiver; + private String subscriptionName; + private MessageReceiver receiver; - Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; + private Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; - FlowControlSettings flowControlSettings = + private FlowControlSettings flowControlSettings = FlowControlSettings.newBuilder().setMaxOutstandingElementCount(1000L).build(); - ExecutorProvider executorProvider = DEFAULT_EXECUTOR_PROVIDER; - ExecutorProvider systemExecutorProvider = null; - TransportChannelProvider channelProvider = + private ExecutorProvider executorProvider = DEFAULT_EXECUTOR_PROVIDER; + private ExecutorProvider systemExecutorProvider = null; + private TransportChannelProvider channelProvider = SubscriptionAdminSettings.defaultGrpcTransportProviderBuilder() .setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE) .setKeepAliveTime(Duration.ofMinutes(5)) .build(); - HeaderProvider headerProvider = new NoHeaderProvider(); - CredentialsProvider credentialsProvider = + private HeaderProvider headerProvider = new NoHeaderProvider(); + private CredentialsProvider credentialsProvider = SubscriptionAdminSettings.defaultCredentialsProviderBuilder().build(); - Optional clock = Optional.absent(); - int parallelPullCount = 1; + private Optional clock = Optional.absent(); + private int parallelPullCount = 1; Builder(String subscriptionName, MessageReceiver receiver) { this.subscriptionName = subscriptionName; From 440ef23169cfcb0d58c9eb40503b38d48de75548 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Mon, 15 Apr 2019 14:26:14 -0400 Subject: [PATCH 0152/2363] Minor cleanup in pubsub (#4945) * Minor cleanup in pubsub - MessageDispatcher methods get reduced scope - Cleaning up MessageWaiter by removing test code * Fixing format --- .../cloud/pubsub/v1/MessageDispatcher.java | 18 +++++++----------- .../google/cloud/pubsub/v1/MessageWaiter.java | 7 ------- .../cloud/pubsub/v1/MessageWaiterTest.java | 8 +++----- 3 files changed, 10 insertions(+), 23 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 3400c259e950..ad622833c4b6 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -104,10 +104,6 @@ private PendingModifyAckDeadline(int deadlineExtensionSeconds, Collection { private final long receivedTimeMillis; private final Instant totalExpiration; - AckHandler(String ackId, int outstandingBytes, Instant totalExpiration) { + private AckHandler(String ackId, int outstandingBytes, Instant totalExpiration) { this.ackId = ackId; this.outstandingBytes = outstandingBytes; this.receivedTimeMillis = clock.millisTime(); @@ -182,7 +178,7 @@ public void onSuccess(AckReply reply) { } } - public interface AckProcessor { + interface AckProcessor { void sendAckOperations( List acksToSend, List ackDeadlineExtensions); } @@ -211,7 +207,7 @@ void sendAckOperations( this.clock = clock; } - public void start() { + void start() { final Runnable setExtendDeadline = new Runnable() { @Override @@ -264,7 +260,7 @@ public void run() { } } - public void stop() { + void stop() { messagesWaiter.waitNoMessages(); jobLock.lock(); try { @@ -288,17 +284,17 @@ int getMessageDeadlineSeconds() { return messageDeadlineSeconds.get(); } - static class OutstandingMessage { + private static class OutstandingMessage { private final ReceivedMessage receivedMessage; private final AckHandler ackHandler; - public OutstandingMessage(ReceivedMessage receivedMessage, AckHandler ackHandler) { + private OutstandingMessage(ReceivedMessage receivedMessage, AckHandler ackHandler) { this.receivedMessage = receivedMessage; this.ackHandler = ackHandler; } } - public void processReceivedMessages(List messages) { + void processReceivedMessages(List messages) { Instant totalExpiration = now().plus(maxAckExtensionPeriod); List outstandingBatch = new ArrayList<>(messages.size()); for (ReceivedMessage message : messages) { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java index c4a0651da6fa..cb238f3d34ca 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java @@ -17,7 +17,6 @@ package com.google.cloud.pubsub.v1; import com.google.api.core.InternalApi; -import java.util.concurrent.atomic.AtomicBoolean; /** A barrier kind of object that helps to keep track and synchronously wait on pending messages. */ class MessageWaiter { @@ -35,16 +34,10 @@ public synchronized void incrementPendingMessages(int messages) { } public synchronized void waitNoMessages() { - waitNoMessages(new AtomicBoolean()); - } - - @InternalApi - synchronized void waitNoMessages(AtomicBoolean waitReached) { boolean interrupted = false; try { while (pendingMessages > 0) { try { - waitReached.set(true); wait(); } catch (InterruptedException e) { // Ignored, uninterruptibly. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java index 5588ebec59e1..5f8e19875e42 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java @@ -18,7 +18,6 @@ import static org.junit.Assert.assertEquals; -import java.util.concurrent.atomic.AtomicBoolean; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -32,14 +31,13 @@ public void test() throws Exception { final MessageWaiter waiter = new MessageWaiter(); waiter.incrementPendingMessages(1); - final AtomicBoolean waitReached = new AtomicBoolean(); - + final Thread mainThread = Thread.currentThread(); Thread t = new Thread( new Runnable() { @Override public void run() { - while (!waitReached.get()) { + while (mainThread.getState() != Thread.State.WAITING) { Thread.yield(); } waiter.incrementPendingMessages(-1); @@ -47,7 +45,7 @@ public void run() { }); t.start(); - waiter.waitNoMessages(waitReached); + waiter.waitNoMessages(); t.join(); assertEquals(0, waiter.pendingMessages()); From fb5c26dd213ba076f4622345aedccba0d1c10d7b Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Tue, 16 Apr 2019 10:59:27 -0400 Subject: [PATCH 0153/2363] Cleaning up deprecated pubsub code. (#4949) * Cleaning up deprecated pubsub code. * Fixing format --- .../java/com/google/cloud/pubsub/v1/MessageDispatcher.java | 3 +-- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 5 ++++- .../cloud/pubsub/v1/StreamingSubscriberConnection.java | 6 ++++-- .../test/java/com/google/cloud/pubsub/it/ITPubSubTest.java | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index ad622833c4b6..0c56ed7dd165 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -376,8 +376,7 @@ public void run() { /** Compute the ideal deadline, set subsequent modacks to this deadline, and return it. */ @InternalApi int computeDeadlineSeconds() { - long secLong = ackLatencyDistribution.getNthPercentile(PERCENTILE_FOR_ACK_DEADLINE_UPDATES); - int sec = Ints.saturatedCast(secLong); + int sec = ackLatencyDistribution.getPercentile(PERCENTILE_FOR_ACK_DEADLINE_UPDATES); // Use Ints.constrainToRange when we get guava 21. if (sec < Subscriber.MIN_ACK_DEADLINE_SECONDS) { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index ea2475cb3fdf..d5d1b4acf119 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -16,6 +16,8 @@ package com.google.cloud.pubsub.v1; +import static com.google.common.util.concurrent.MoreExecutors.directExecutor; + import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutureCallback; @@ -357,7 +359,8 @@ public void onFailure(Throwable t) { messagesWaiter.incrementPendingMessages(-outstandingBatch.size()); } } - }); + }, + directExecutor()); } private static final class OutstandingBatch { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 0f273c3429a8..ef3ce23d679f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -16,6 +16,8 @@ package com.google.cloud.pubsub.v1; +import static com.google.common.util.concurrent.MoreExecutors.directExecutor; + import com.google.api.core.AbstractApiService; import com.google.api.core.ApiClock; import com.google.api.core.ApiFuture; @@ -291,7 +293,7 @@ public void onFailure(Throwable t) { .addAllAckIds(idChunk) .setAckDeadlineSeconds(modack.deadlineExtensionSeconds) .build()); - ApiFutures.addCallback(future, loggingCallback); + ApiFutures.addCallback(future, loggingCallback, directExecutor()); } } @@ -303,7 +305,7 @@ public void onFailure(Throwable t) { .setSubscription(subscription) .addAllAckIds(idChunk) .build()); - ApiFutures.addCallback(future, loggingCallback); + ApiFutures.addCallback(future, loggingCallback, directExecutor()); } } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java index e1094ec93cd2..f3b5dfe6e704 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java @@ -42,8 +42,8 @@ import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; -import junit.framework.Assert; import org.junit.AfterClass; +import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; From 215958b070c257560f5799dfd44b865b59939477 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Tue, 16 Apr 2019 11:00:15 -0400 Subject: [PATCH 0154/2363] More Pubsub cleanup (#4948) * More Pubsub cleanup - Removing PublisherStats, since it's package private and not used anywhere. - StatusUtil and SubscriberStats are package private. Remove the `public` modifier on methods in those classes * Reverting MessageDispatcher change. --- .../cloud/pubsub/v1/PublisherStats.java | 55 ------------------- .../google/cloud/pubsub/v1/StatusUtil.java | 2 +- .../cloud/pubsub/v1/SubscriberStats.java | 36 ++++++------ 3 files changed, 19 insertions(+), 74 deletions(-) delete mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java deleted file mode 100644 index 197eb5d96453..000000000000 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherStats.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2016 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.pubsub.v1; - -import com.google.auto.value.AutoValue; - -/** - * A snapshot of the publisher statistics at the time they were requested from the {@link - * Publisher}. - */ -@AutoValue -abstract class PublisherStats { - /** Number of successfully published messages. */ - public abstract long getAckedMessages(); - - /** Number of messages that failed to publish. */ - public abstract long getFailedMessages(); - - /** Number of messages pending to publish, includes message in-flight. */ - public abstract long getPendingMessages(); - - /** Total messages sent, equal to pending + acked + failed messages. */ - public abstract long getSentMessages(); - - public static Builder newBuilder() { - return new AutoValue_PublisherStats.Builder(); - } - - @AutoValue.Builder - public abstract static class Builder { - public abstract Builder setAckedMessages(long value); - - public abstract Builder setFailedMessages(long value); - - public abstract Builder setPendingMessages(long value); - - public abstract Builder setSentMessages(long value); - - public abstract PublisherStats build(); - } -} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java index 52a3a6e6372d..ab31f0320ab5 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java @@ -25,7 +25,7 @@ private StatusUtil() { // Static class, not instantiable. } - public static boolean isRetryable(Throwable error) { + static boolean isRetryable(Throwable error) { if (!(error instanceof ApiException)) { return true; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java index 527d73076997..992c1d056dd4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java @@ -27,52 +27,52 @@ abstract class SubscriberStats { @AutoValue // TODO: Finish implementation. - public abstract static class Stats {} + abstract static class Stats {} /** Number of successfully published messages. */ - public abstract long getReceivedMessages(); + abstract long getReceivedMessages(); /** Number of successfully published messages. */ - public abstract long getAckedMessages(); + abstract long getAckedMessages(); /** Number of received messages. */ - public abstract long getTotalReceivedMessages(); + abstract long getTotalReceivedMessages(); /** Number messages acked. */ - public abstract long getTotalAckedMessages(); + abstract long getTotalAckedMessages(); /** End to end latency. */ - public abstract Stats getEndToEndLatency(); + abstract Stats getEndToEndLatency(); /** * Acknowledgement latency; time in between the message has been received and then acknowledged or * rejected. */ - public abstract Stats getAckLatency(); + abstract Stats getAckLatency(); /** Number of messages for which we have auto extended its acknowledgement deadline. */ - public abstract long getNumberOfAutoExtendedAckDeadlines(); + abstract long getNumberOfAutoExtendedAckDeadlines(); - public static Builder newBuilder() { + static Builder newBuilder() { return new AutoValue_SubscriberStats.Builder(); } @AutoValue.Builder - public abstract static class Builder { - public abstract Builder setReceivedMessages(long value); + abstract static class Builder { + abstract Builder setReceivedMessages(long value); - public abstract Builder setAckedMessages(long value); + abstract Builder setAckedMessages(long value); - public abstract Builder setTotalReceivedMessages(long value); + abstract Builder setTotalReceivedMessages(long value); - public abstract Builder setTotalAckedMessages(long value); + abstract Builder setTotalAckedMessages(long value); - public abstract Builder setEndToEndLatency(Stats value); + abstract Builder setEndToEndLatency(Stats value); - public abstract Builder setAckLatency(Stats value); + abstract Builder setAckLatency(Stats value); - public abstract Builder setNumberOfAutoExtendedAckDeadlines(long value); + abstract Builder setNumberOfAutoExtendedAckDeadlines(long value); - public abstract SubscriberStats build(); + abstract SubscriberStats build(); } } From ed7ed9d3065e8e024c6b3682b58c92e3596ea850 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Tue, 16 Apr 2019 11:19:35 -0400 Subject: [PATCH 0155/2363] Encapsulating a notion of "message batch" in pub/sub (#4951) * Encapsulating a notion of "message batch" in pub/sub This is inspired by the changes in the ordering keys branch. * Update Publisher.java --- .../com/google/cloud/pubsub/v1/Publisher.java | 57 +++++++++++++------ 1 file changed, 41 insertions(+), 16 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index d5d1b4acf119..f826f57ae654 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -86,8 +86,7 @@ public class Publisher { private final BatchingSettings batchingSettings; private final Lock messagesBatchLock; - private List messagesBatch; - private int batchedBytes; + private MessagesBatch messagesBatch; private final AtomicBoolean activeAlarm; @@ -116,7 +115,7 @@ private Publisher(Builder builder) throws IOException { this.batchingSettings = builder.batchingSettings; this.messageTransform = builder.messageTransform; - messagesBatch = new LinkedList<>(); + messagesBatch = new MessagesBatch(); messagesBatchLock = new ReentrantLock(); activeAlarm = new AtomicBoolean(false); executor = builder.executorProvider.getExecutor(); @@ -207,24 +206,19 @@ public ApiFuture publish(PubsubMessage message) { // Check if the next message makes the current batch exceed the max batch byte size. if (!messagesBatch.isEmpty() && hasBatchingBytes() - && batchedBytes + messageSize >= getMaxBatchBytes()) { - batchToSend = new OutstandingBatch(messagesBatch, batchedBytes); - messagesBatch = new LinkedList<>(); - batchedBytes = 0; + && messagesBatch.getBatchedBytes() + messageSize >= getMaxBatchBytes()) { + batchToSend = messagesBatch.popOutstandingBatch(); } // Border case if the message to send is greater or equals to the max batch size then can't // be included in the current batch and instead sent immediately. if (!hasBatchingBytes() || messageSize < getMaxBatchBytes()) { - batchedBytes += messageSize; - messagesBatch.add(outstandingPublish); + messagesBatch.addMessage(outstandingPublish, messageSize); // If after adding the message we have reached the batch max messages then we have a batch // to send. - if (messagesBatch.size() == getBatchingSettings().getElementCountThreshold()) { - batchToSend = new OutstandingBatch(messagesBatch, batchedBytes); - messagesBatch = new LinkedList<>(); - batchedBytes = 0; + if (messagesBatch.getMessagesCount() == getBatchingSettings().getElementCountThreshold()) { + batchToSend = messagesBatch.popOutstandingBatch(); } } // Setup the next duration based delivery alarm if there are messages batched. @@ -303,9 +297,7 @@ public void publishAllOutstanding() { if (messagesBatch.isEmpty()) { return; } - batchToSend = new OutstandingBatch(messagesBatch, batchedBytes); - messagesBatch = new LinkedList<>(); - batchedBytes = 0; + batchToSend = messagesBatch.popOutstandingBatch(); } finally { messagesBatchLock.unlock(); } @@ -640,4 +632,37 @@ public Publisher build() throws IOException { return new Publisher(this); } } + + private static class MessagesBatch { + private List messages = new LinkedList<>(); + private int batchedBytes; + + private OutstandingBatch popOutstandingBatch() { + OutstandingBatch batch = new OutstandingBatch(messages, batchedBytes); + reset(); + return batch; + } + + private void reset() { + messages = new LinkedList<>(); + batchedBytes = 0; + } + + private boolean isEmpty() { + return messages.isEmpty(); + } + + private int getBatchedBytes() { + return batchedBytes; + } + + private void addMessage(OutstandingPublish message, int messageSize) { + messages.add(message); + batchedBytes += messageSize; + } + + private int getMessagesCount() { + return messages.size(); + } + } } From 907ccd38b3f4aad158fcaac5ec7a81955503ace7 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 17 Apr 2019 15:06:34 -0400 Subject: [PATCH 0156/2363] Release google-cloud-java v0.88.0 (#4971) * Release v0.88.0 * Change version numbers to 1.0.0 for Speech and Firestore. --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index d3bfac58398f..3f6301bfb299 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.69.0 + 1.70.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.69.0' +compile 'com.google.cloud:google-cloud-pubsub:1.70.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.70.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 97be315ff124..bbdb7ba7e827 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.69.1-SNAPSHOT + 1.70.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.87.1-alpha-SNAPSHOT + 0.88.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ca7c31009a32..6d93c95f4b73 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.51.1-SNAPSHOT + 1.52.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.52.1-SNAPSHOT + 0.53.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 966fe6bd9488..1d72802978b3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.51.1-SNAPSHOT + 1.52.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.52.1-SNAPSHOT + 0.53.0 From b1d4c8f2fcaa25cd71c4ced8b9af39d97d26d283 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 17 Apr 2019 20:57:30 -0400 Subject: [PATCH 0157/2363] Bump next snapshot (#4973) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index bbdb7ba7e827..21dd9c459dfc 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.70.0 + 1.70.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.88.0-alpha + 0.88.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6d93c95f4b73..6d69ac8d790f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.52.0 + 1.52.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.53.0 + 0.53.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1d72802978b3..84bd8c8fc523 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.52.0 + 1.52.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.53.0 + 0.53.1-SNAPSHOT From db1975a9544869350a75617cebbb94452a6634b6 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Thu, 18 Apr 2019 10:11:44 -0400 Subject: [PATCH 0158/2363] Refactoring Publisher.publishOutstandingBatch (#4977) * Refactoring Publisher.publishOutstandingBatch This will make the class look more like the ordering keys changes * Ran the formatter --- .../java/com/google/cloud/pubsub/v1/Publisher.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index f826f57ae654..100eba65579a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -304,15 +304,18 @@ public void publishAllOutstanding() { publishOutstandingBatch(batchToSend); } - private void publishOutstandingBatch(final OutstandingBatch outstandingBatch) { + private ApiFuture publishCall(OutstandingBatch outstandingBatch) { PublishRequest.Builder publishRequest = PublishRequest.newBuilder(); publishRequest.setTopic(topicName); for (OutstandingPublish outstandingPublish : outstandingBatch.outstandingPublishes) { publishRequest.addMessages(outstandingPublish.message); } - ApiFutures.addCallback( - publisherStub.publishCallable().futureCall(publishRequest.build()), + return publisherStub.publishCallable().futureCall(publishRequest.build()); + } + + private void publishOutstandingBatch(final OutstandingBatch outstandingBatch) { + ApiFutureCallback futureCallback = new ApiFutureCallback() { @Override public void onSuccess(PublishResponse result) { @@ -351,8 +354,9 @@ public void onFailure(Throwable t) { messagesWaiter.incrementPendingMessages(-outstandingBatch.size()); } } - }, - directExecutor()); + }; + + ApiFutures.addCallback(publishCall(outstandingBatch), futureCallback, directExecutor()); } private static final class OutstandingBatch { From 25a13a4e4bab7e02362a79808eaa3b2f7e420f84 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 23 Apr 2019 15:47:03 -0700 Subject: [PATCH 0159/2363] Fix javadoc linking (#4995) * Cleanup maven-javadoc-plugin configs * Link proto artifact javadoc to protobuf javadocs * offlineLink from grpc->proto artifact * common protos link * Move common links to the parent * google-cloud client can link to multiple proto/grpc artifact docs * Move protolinks to parent * Configure all grpc->proto artifact offline links * Add offline links for all google-cloud-x clients to the proto/grpc artifacts * Fix dataproc artifact version * Make google-cloud-clients link to google-api-grpc docs * Put groups config back * Put versions variables back * Build the javadoc artifact for release * Add javadoc link config to new_client.py --- java-pubsub/google-cloud-pubsub/pom.xml | 26 +++++++++++++++++++ .../grpc-google-cloud-pubsub-v1/pom.xml | 23 +++++++++++++++- 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 21dd9c459dfc..71a2d30f15fb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -92,4 +92,30 @@ test + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + protected + true + none + true + + + ${project.javadoc.protobufBaseURL} + ../../../../../google-api-grpc/proto-google-cloud-pubsub-v1/target/site/apidocs/ + + + ${project.javadoc.protobufBaseURL} + ../../../../../google-api-grpc/grpc-google-cloud-pubsub-v1/target/site/apidocs/ + + + + + + diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6d69ac8d790f..1d8c5251af70 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -28,4 +28,25 @@ compile - \ No newline at end of file + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + protected + true + none + true + + + ${project.javadoc.protobufBaseURL} + ../../../../proto-google-cloud-pubsub-v1/target/site/apidocs/ + + + + + + + From 7546ae8876a0763f8f37858f1dac5c42774c3d1c Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Wed, 24 Apr 2019 15:54:03 -0400 Subject: [PATCH 0160/2363] PubSub: refactor alarm setup into a single method (#5008) Moving some alarm setup logic from `publish()` and some logic from `setupDurationBasedPublishAlarm` into a new method called `setupAlarm` --- .../com/google/cloud/pubsub/v1/Publisher.java | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 100eba65579a..bb1b759c39d2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -222,14 +222,7 @@ && hasBatchingBytes() } } // Setup the next duration based delivery alarm if there are messages batched. - if (!messagesBatch.isEmpty()) { - setupDurationBasedPublishAlarm(); - } else if (currentAlarmFuture != null) { - logger.log(Level.FINER, "Cancelling alarm, no more messages"); - if (activeAlarm.getAndSet(false)) { - currentAlarmFuture.cancel(false); - } - } + setupAlarm(); } finally { messagesBatchLock.unlock(); } @@ -266,22 +259,29 @@ public void run() { return publishResult; } - private void setupDurationBasedPublishAlarm() { - if (!activeAlarm.getAndSet(true)) { - long delayThresholdMs = getBatchingSettings().getDelayThreshold().toMillis(); - logger.log(Level.FINER, "Setting up alarm for the next {0} ms.", delayThresholdMs); - currentAlarmFuture = - executor.schedule( - new Runnable() { - @Override - public void run() { - logger.log(Level.FINER, "Sending messages based on schedule."); - activeAlarm.getAndSet(false); - publishAllOutstanding(); - } - }, - delayThresholdMs, - TimeUnit.MILLISECONDS); + private void setupAlarm() { + if (!messagesBatch.isEmpty()) { + if (!activeAlarm.getAndSet(true)) { + long delayThresholdMs = getBatchingSettings().getDelayThreshold().toMillis(); + logger.log(Level.FINER, "Setting up alarm for the next {0} ms.", delayThresholdMs); + currentAlarmFuture = + executor.schedule( + new Runnable() { + @Override + public void run() { + logger.log(Level.FINER, "Sending messages based on schedule."); + activeAlarm.getAndSet(false); + publishAllOutstanding(); + } + }, + delayThresholdMs, + TimeUnit.MILLISECONDS); + } + } else if (currentAlarmFuture != null) { + logger.log(Level.FINER, "Cancelling alarm, no more messages"); + if (activeAlarm.getAndSet(false)) { + currentAlarmFuture.cancel(false); + } } } From 0a665ba3fc8502930a14fdbff64dafc33f8e9c13 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 24 Apr 2019 13:34:10 -0700 Subject: [PATCH 0161/2363] Release v0.89.0 (#5009) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 3f6301bfb299..9e3e949ca1ca 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.70.0 + 1.71.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.70.0' +compile 'com.google.cloud:google-cloud-pubsub:1.71.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.71.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 71a2d30f15fb..4a8dfbd77b59 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.70.1-SNAPSHOT + 1.71.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.88.1-alpha-SNAPSHOT + 0.89.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1d8c5251af70..5349f732f06e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.52.1-SNAPSHOT + 1.53.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.53.1-SNAPSHOT + 0.54.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 84bd8c8fc523..67cb0aef0926 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.52.1-SNAPSHOT + 1.53.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.53.1-SNAPSHOT + 0.54.0 From ef3a7a55a897e34b636a4e0f0ab4e51555b01a9f Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 24 Apr 2019 15:46:47 -0700 Subject: [PATCH 0162/2363] Bump next snapshot (#5011) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4a8dfbd77b59..17fd46340110 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.71.0 + 1.71.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.89.0-alpha + 0.89.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5349f732f06e..ecbe04ee88e6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.53.0 + 1.53.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.54.0 + 0.54.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 67cb0aef0926..b69025940863 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.53.0 + 1.53.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.54.0 + 0.54.1-SNAPSHOT From 7bda63a5a9e89e96cf74da7a37bc3d9cb0b6fbf9 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Thu, 25 Apr 2019 11:03:56 -0400 Subject: [PATCH 0163/2363] Enhancing Publisher.OutstandingBatch (#5007) - Moving responsibility for creating the SettableFuture into OutstandingBatch - Moving responsibility for tracking message size into OutstandingBatch --- .../com/google/cloud/pubsub/v1/Publisher.java | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index bb1b759c39d2..d7f668ab660b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -197,23 +197,22 @@ public ApiFuture publish(PubsubMessage message) { } message = messageTransform.apply(message); - final int messageSize = message.getSerializedSize(); OutstandingBatch batchToSend = null; - SettableApiFuture publishResult = SettableApiFuture.create(); - final OutstandingPublish outstandingPublish = new OutstandingPublish(publishResult, message); + final OutstandingPublish outstandingPublish = new OutstandingPublish(message); messagesBatchLock.lock(); try { // Check if the next message makes the current batch exceed the max batch byte size. if (!messagesBatch.isEmpty() && hasBatchingBytes() - && messagesBatch.getBatchedBytes() + messageSize >= getMaxBatchBytes()) { + && messagesBatch.getBatchedBytes() + outstandingPublish.messageSize + >= getMaxBatchBytes()) { batchToSend = messagesBatch.popOutstandingBatch(); } // Border case if the message to send is greater or equals to the max batch size then can't // be included in the current batch and instead sent immediately. - if (!hasBatchingBytes() || messageSize < getMaxBatchBytes()) { - messagesBatch.addMessage(outstandingPublish, messageSize); + if (!hasBatchingBytes() || outstandingPublish.messageSize < getMaxBatchBytes()) { + messagesBatch.addMessage(outstandingPublish, outstandingPublish.messageSize); // If after adding the message we have reached the batch max messages then we have a batch // to send. @@ -243,7 +242,7 @@ public void run() { // If the message is over the size limit, it was not added to the pending messages and it will // be sent in its own batch immediately. - if (hasBatchingBytes() && messageSize >= getMaxBatchBytes()) { + if (hasBatchingBytes() && outstandingPublish.messageSize >= getMaxBatchBytes()) { logger.log( Level.FINER, "Message exceeds the max batch bytes, scheduling it for immediate send."); executor.execute( @@ -251,12 +250,13 @@ public void run() { @Override public void run() { publishOutstandingBatch( - new OutstandingBatch(ImmutableList.of(outstandingPublish), messageSize)); + new OutstandingBatch( + ImmutableList.of(outstandingPublish), outstandingPublish.messageSize)); } }); } - return publishResult; + return outstandingPublish.publishResult; } private void setupAlarm() { @@ -382,12 +382,14 @@ public int size() { } private static final class OutstandingPublish { - SettableApiFuture publishResult; - PubsubMessage message; + final SettableApiFuture publishResult; + final PubsubMessage message; + final int messageSize; - OutstandingPublish(SettableApiFuture publishResult, PubsubMessage message) { - this.publishResult = publishResult; + OutstandingPublish(PubsubMessage message) { + this.publishResult = SettableApiFuture.create(); this.message = message; + this.messageSize = message.getSerializedSize(); } } From 67e6963d723389a8da527fa4b7cada3b72e93e9c Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Thu, 25 Apr 2019 14:24:19 -0400 Subject: [PATCH 0164/2363] P/S Cleaning up unused code (#5017) * P/S Cleaning up unused code There are public methods in test and package private classes that were unused or had too much visibility. * Fixing formatter issues. --- .../com/google/cloud/pubsub/v1/Publisher.java | 6 +- .../google/cloud/pubsub/v1/Subscriber.java | 2 +- .../google/cloud/pubsub/it/ITPubSubTest.java | 4 +- .../v1/FakeScheduledExecutorService.java | 33 +------ .../pubsub/v1/FakeSubscriberServiceImpl.java | 95 +------------------ .../pubsub/v1/MessageDispatcherTest.java | 4 +- .../cloud/pubsub/v1/OpenCensusUtilTest.java | 4 +- .../cloud/pubsub/v1/PublisherImplTest.java | 6 +- .../cloud/pubsub/v1/SubscriberTest.java | 2 +- 9 files changed, 14 insertions(+), 142 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index d7f668ab660b..6e707885dfa2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -372,11 +372,7 @@ private static final class OutstandingBatch { this.batchSizeBytes = batchSizeBytes; } - public int getAttempt() { - return attempt; - } - - public int size() { + int size() { return outstandingPublishes.size(); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 5433eb753bca..7453cde8a446 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -149,7 +149,7 @@ private Subscriber(Builder builder) { closeables.add( new AutoCloseable() { @Override - public void close() throws IOException { + public void close() { alarmsExecutor.shutdown(); } }); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java index f3b5dfe6e704..34f4f2cda60b 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java @@ -80,7 +80,7 @@ public static void setupClass() throws Exception { } @AfterClass - public static void tearDownClass() throws Exception { + public static void tearDownClass() { topicAdminClient.close(); subscriptionAdminClient.close(); } @@ -114,7 +114,7 @@ public void testTopicPolicy() { } @Test - public void testVPCPushSubscriber() throws Exception { + public void testVPCPushSubscriber() { assumeTrue(IS_VPC_TEST); ProjectTopicName topicName = ProjectTopicName.of(projectId, formatForTest("testing-vpc-push-subscriber-topic")); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java index b0ac68aa220e..e63b68748103 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java @@ -86,35 +86,6 @@ public ScheduledFuture scheduleWithFixedDelay( PendingCallableType.FIXED_DELAY)); } - /** - * This allows for adding expectations on future work to be scheduled ( {@link - * FakeScheduledExecutorService#schedule} or {@link - * FakeScheduledExecutorService#scheduleAtFixedRate} or {@link - * FakeScheduledExecutorService#scheduleWithFixedDelay}) based on its delay. - */ - public void setupScheduleExpectation(Duration delay) { - synchronized (expectedWorkQueue) { - expectedWorkQueue.add(delay); - } - } - - /** - * Blocks the current thread until all the work {@link - * FakeScheduledExecutorService#setupScheduleExpectation(Duration) expected} has been scheduled in - * the executor. - */ - public void waitForExpectedWork() { - synchronized (expectedWorkQueue) { - while (!expectedWorkQueue.isEmpty()) { - try { - expectedWorkQueue.wait(); - } catch (InterruptedException e) { - // Wait uninterruptibly - } - } - } - } - /** * This will advance the reference time of the executor and execute (in the same thread) any * outstanding callable which execution time has passed. @@ -232,7 +203,7 @@ ScheduledFuture schedulePendingCallable(PendingCallable callable) { return callable.getScheduledFuture(); } - static enum PendingCallableType { + enum PendingCallableType { NORMAL, FIXED_RATE, FIXED_DELAY @@ -252,7 +223,7 @@ class PendingCallable implements Comparable> { pendingCallable = new Callable() { @Override - public T call() throws Exception { + public T call() { runnable.run(); return null; } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java index e7d86e65acc9..c6336fa1cef7 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java @@ -17,8 +17,6 @@ package com.google.cloud.pubsub.v1; import com.google.api.client.util.Preconditions; -import com.google.api.core.InternalApi; -import com.google.common.collect.ImmutableList; import com.google.protobuf.Empty; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.GetSubscriptionRequest; @@ -61,7 +59,7 @@ class FakeSubscriberServiceImpl extends SubscriberImplBase { private final BlockingQueue pullResponses = new LinkedBlockingDeque<>(); private int currentStream; - public static enum CloseSide { + public enum CloseSide { SERVER, CLIENT } @@ -76,10 +74,6 @@ public ModifyAckDeadline(String ackId, long seconds) { this.seconds = seconds; } - public String getAckId() { - return ackId; - } - public long getSeconds() { return seconds; } @@ -207,23 +201,6 @@ public StreamObserver streamingPull( return stream.requestObserver; } - public void sendStreamingResponse(StreamingPullResponse pullResponse) - throws InterruptedException { - waitForRegistedSubscription(); - synchronized (openedStreams) { - waitForOpenedStreams(1); - openedStreams.get(getAndAdvanceCurrentStream()).responseObserver.onNext(pullResponse); - } - } - - public void setMessageAckDeadlineSeconds(int ackDeadline) { - messageAckDeadline.set(ackDeadline); - } - - public void enqueuePullResponse(PullResponse response) { - pullResponses.add(response); - } - @Override public void getSubscription( GetSubscriptionRequest request, StreamObserver responseObserver) { @@ -237,12 +214,6 @@ public void getSubscription( responseObserver.onCompleted(); } - /** Returns the number of times getSubscription is called. */ - @InternalApi - int getSubscriptionCalledCount() { - return getSubscriptionCalled.get(); - } - @Override public void pull(PullRequest request, StreamObserver responseObserver) { synchronized (receivedPullRequest) { @@ -293,26 +264,6 @@ public String waitForRegistedSubscription() throws InterruptedException { return subscription; } - public List waitAndConsumeReceivedAcks(int expectedCount) throws InterruptedException { - synchronized (acks) { - waitAtLeast(acks, expectedCount); - List receivedAcksCopy = ImmutableList.copyOf(acks.subList(0, expectedCount)); - acks.subList(0, expectedCount).clear(); - return receivedAcksCopy; - } - } - - public List waitAndConsumeModifyAckDeadlines(int expectedCount) - throws InterruptedException { - synchronized (modAckDeadlines) { - waitAtLeast(modAckDeadlines, expectedCount); - List modAckDeadlinesCopy = - ImmutableList.copyOf(modAckDeadlines.subList(0, expectedCount)); - modAckDeadlines.subList(0, expectedCount).clear(); - return modAckDeadlinesCopy; - } - } - public int waitForClosedStreams(int expectedCount) throws InterruptedException { synchronized (closedStreams) { waitAtLeast(closedStreams, expectedCount); @@ -341,50 +292,6 @@ private static void waitAtLeast(Collection collection, int target) } } - public void waitForStreamAckDeadline(int expectedValue) throws InterruptedException { - synchronized (messageAckDeadline) { - while (messageAckDeadline.get() != expectedValue) { - messageAckDeadline.wait(); - } - } - } - - public int getOpenedStreamsCount() { - return openedStreams.size(); - } - - public int getClosedStreamsCount() { - return closedStreams.size(); - } - - public List getAcks() { - return acks; - } - - public List getModifyAckDeadlines() { - return modAckDeadlines; - } - - public void reset() { - synchronized (subscriptionInitialized) { - synchronized (openedStreams) { - synchronized (acks) { - synchronized (modAckDeadlines) { - openedStreams.clear(); - closedStreams.clear(); - acks.clear(); - modAckDeadlines.clear(); - subscriptionInitialized.set(false); - subscription = ""; - pullResponses.clear(); - receivedPullRequest.clear(); - currentStream = 0; - } - } - } - } - } - private void addOpenedStream(Stream stream) { synchronized (openedStreams) { openedStreams.add(stream); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index c4ca6e51a023..163475407f04 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -123,7 +123,7 @@ public void sendAckOperations( } @Test - public void testReceipt() throws Exception { + public void testReceipt() { dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); dispatcher.processOutstandingAckOperations(); assertThat(sentModAcks) @@ -160,7 +160,7 @@ public void testExtension() throws Exception { } @Test - public void testExtension_Close() throws Exception { + public void testExtension_Close() { dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); dispatcher.extendDeadlines(); assertThat(sentModAcks) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java index 329cf60288cc..d4230003907d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java @@ -56,7 +56,7 @@ public class OpenCensusUtilTest { // Verifies that trace contexts propagated as an attribute are set as the parent link in the // message receiver and that the tag context is not change (for now). @Test - public void testOpenCensusMessageReceiver() throws Exception { + public void testOpenCensusMessageReceiver() { PubsubMessage message; SpanContext publisherContext; try (Scope traceScope = OpenCensusUtil.createScopedSpan(TEST_PARENT_LINK_NAME); @@ -143,7 +143,7 @@ private void assertSpanCount(int expected) { Stopwatch watch = Stopwatch.createStarted(); while (true) { Collection spanDatas = runningSpanStore.getRunningSpans(RECEIVER_FILTER); - if (spanDatas.size() == 1) { + if (spanDatas.size() == expected) { break; } Thread.yield(); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 2901ae4b0a9d..fc34e5f890a2 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -68,8 +68,6 @@ public class PublisherImplTest { private Server testServer; - class FakeException extends Exception {} - @Before public void setUp() throws Exception { testPublisherServiceImpl = new FakePublisherServiceImpl(); @@ -454,7 +452,7 @@ public void testBuilderInvalidArguments() { builder.setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() - .setRequestByteThreshold((Long) null) + .setRequestByteThreshold(null) .build()); fail("Should have thrown an NullPointerException"); } catch (NullPointerException expected) { @@ -513,7 +511,7 @@ public void testBuilderInvalidArguments() { builder.setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() - .setElementCountThreshold((Long) null) + .setElementCountThreshold(null) .build()); fail("Should have thrown an NullPointerException"); } catch (NullPointerException expected) { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 68b967e79f76..b8a98e97a9c7 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -140,7 +140,7 @@ public void testFailedChannel_fatalError_subscriberFails() throws Exception { } } - private Subscriber startSubscriber(Builder testSubscriberBuilder) throws Exception { + private Subscriber startSubscriber(Builder testSubscriberBuilder) { Subscriber subscriber = testSubscriberBuilder.build(); subscriber.startAsync().awaitRunning(); return subscriber; From 6237fa8c03de16733de032360c0ddd7c32c88592 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Thu, 25 Apr 2019 16:39:04 -0400 Subject: [PATCH 0165/2363] P/S refactoring Publisher.publish (#5018) `publish()` has a special case where the message is larger the the max byte count. That special case logic can be merged with the general scenario by using a list of `batchesToSend` rather than having a single one. --- .../com/google/cloud/pubsub/v1/Publisher.java | 60 +++++++------------ 1 file changed, 22 insertions(+), 38 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 6e707885dfa2..352822a71b35 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -40,13 +40,13 @@ import com.google.cloud.pubsub.v1.stub.PublisherStub; import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableList; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.TopicNames; import java.io.IOException; +import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.LinkedList; @@ -197,7 +197,7 @@ public ApiFuture publish(PubsubMessage message) { } message = messageTransform.apply(message); - OutstandingBatch batchToSend = null; + List batchesToSend = new ArrayList<>(); final OutstandingPublish outstandingPublish = new OutstandingPublish(message); messagesBatchLock.lock(); try { @@ -206,19 +206,18 @@ public ApiFuture publish(PubsubMessage message) { && hasBatchingBytes() && messagesBatch.getBatchedBytes() + outstandingPublish.messageSize >= getMaxBatchBytes()) { - batchToSend = messagesBatch.popOutstandingBatch(); + batchesToSend.add(messagesBatch.popOutstandingBatch()); } - // Border case if the message to send is greater or equals to the max batch size then can't - // be included in the current batch and instead sent immediately. - if (!hasBatchingBytes() || outstandingPublish.messageSize < getMaxBatchBytes()) { - messagesBatch.addMessage(outstandingPublish, outstandingPublish.messageSize); + messagesBatch.addMessage(outstandingPublish, outstandingPublish.messageSize); - // If after adding the message we have reached the batch max messages then we have a batch - // to send. - if (messagesBatch.getMessagesCount() == getBatchingSettings().getElementCountThreshold()) { - batchToSend = messagesBatch.popOutstandingBatch(); - } + // Border case: If the message to send is greater or equals to the max batch size then send it + // immediately. + // Alternatively if after adding the message we have reached the batch max messages then we + // have a batch to send. + if ((hasBatchingBytes() && outstandingPublish.messageSize >= getMaxBatchBytes()) + || messagesBatch.getMessagesCount() == getBatchingSettings().getElementCountThreshold()) { + batchesToSend.add(messagesBatch.popOutstandingBatch()); } // Setup the next duration based delivery alarm if there are messages batched. setupAlarm(); @@ -228,32 +227,17 @@ && hasBatchingBytes() messagesWaiter.incrementPendingMessages(1); - if (batchToSend != null) { - logger.log(Level.FINER, "Scheduling a batch for immediate sending."); - final OutstandingBatch finalBatchToSend = batchToSend; - executor.execute( - new Runnable() { - @Override - public void run() { - publishOutstandingBatch(finalBatchToSend); - } - }); - } - - // If the message is over the size limit, it was not added to the pending messages and it will - // be sent in its own batch immediately. - if (hasBatchingBytes() && outstandingPublish.messageSize >= getMaxBatchBytes()) { - logger.log( - Level.FINER, "Message exceeds the max batch bytes, scheduling it for immediate send."); - executor.execute( - new Runnable() { - @Override - public void run() { - publishOutstandingBatch( - new OutstandingBatch( - ImmutableList.of(outstandingPublish), outstandingPublish.messageSize)); - } - }); + if (!batchesToSend.isEmpty()) { + for (final OutstandingBatch batch : batchesToSend) { + logger.log(Level.FINER, "Scheduling a batch for immediate sending."); + executor.execute( + new Runnable() { + @Override + public void run() { + publishOutstandingBatch(batch); + } + }); + } } return outstandingPublish.publishResult; From 0b64cc72e1d19ecb5cc763571316d252004804fd Mon Sep 17 00:00:00 2001 From: Praful Makani Date: Tue, 30 Apr 2019 21:14:01 +0530 Subject: [PATCH 0166/2363] Fix Publisher.shutdown (#5039) --- .../com/google/cloud/pubsub/v1/Publisher.java | 22 +++++------- .../cloud/pubsub/v1/PublisherImplTest.java | 35 +++++++++++++++++++ 2 files changed, 44 insertions(+), 13 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 352822a71b35..044f0266eae4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -25,6 +25,8 @@ import com.google.api.core.BetaApi; import com.google.api.core.SettableApiFuture; import com.google.api.gax.batching.BatchingSettings; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.core.CredentialsProvider; import com.google.api.gax.core.ExecutorAsBackgroundResource; import com.google.api.gax.core.ExecutorProvider; @@ -47,7 +49,6 @@ import com.google.pubsub.v1.TopicNames; import java.io.IOException; import java.util.ArrayList; -import java.util.Collections; import java.util.Iterator; import java.util.LinkedList; import java.util.List; @@ -94,7 +95,7 @@ public class Publisher { private final ScheduledExecutorService executor; private final AtomicBoolean shutdown; - private final List closeables; + private final BackgroundResource backgroundResources; private final MessageWaiter messagesWaiter; private ScheduledFuture currentAlarmFuture; private final ApiFunction messageTransform; @@ -119,11 +120,9 @@ private Publisher(Builder builder) throws IOException { messagesBatchLock = new ReentrantLock(); activeAlarm = new AtomicBoolean(false); executor = builder.executorProvider.getExecutor(); + List backgroundResourceList = new ArrayList<>(); if (builder.executorProvider.shouldAutoClose()) { - closeables = - Collections.singletonList(new ExecutorAsBackgroundResource(executor)); - } else { - closeables = Collections.emptyList(); + backgroundResourceList.add(new ExecutorAsBackgroundResource(executor)); } // Publisher used to take maxAttempt == 0 to mean infinity, but to GAX it means don't retry. @@ -151,7 +150,8 @@ private Publisher(Builder builder) throws IOException { .setRetrySettings(retrySettings) .setBatchingSettings(BatchingSettings.newBuilder().setIsEnabled(false).build()); this.publisherStub = GrpcPublisherStub.create(stubSettings.build()); - + backgroundResourceList.add(publisherStub); + backgroundResources = new BackgroundResourceAggregation(backgroundResourceList); shutdown = new AtomicBoolean(false); messagesWaiter = new MessageWaiter(); } @@ -397,11 +397,7 @@ public void shutdown() throws Exception { currentAlarmFuture.cancel(false); } publishAllOutstanding(); - messagesWaiter.waitNoMessages(); - for (AutoCloseable closeable : closeables) { - closeable.close(); - } - publisherStub.shutdown(); + backgroundResources.shutdown(); } /** @@ -411,7 +407,7 @@ public void shutdown() throws Exception { *

    Call this method to make sure all resources are freed properly. */ public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return publisherStub.awaitTermination(duration, unit); + return backgroundResources.awaitTermination(duration, unit); } private boolean hasBatchingBytes() { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index fc34e5f890a2..acbc82c95c41 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -43,6 +43,7 @@ import io.grpc.inprocess.InProcessServerBuilder; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; +import org.easymock.EasyMock; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -570,6 +571,40 @@ public void testBuilderInvalidArguments() { } } + @Test + public void testAwaitTermination() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setExecutorProvider(SINGLE_THREAD_EXECUTOR) + .setRetrySettings( + Publisher.Builder.DEFAULT_RETRY_SETTINGS + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(10)) + .setMaxAttempts(0) + .build()) + .build(); + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + publisher.shutdown(); + assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES)); + } + + @Test + public void testShutDown() throws Exception { + ApiFuture apiFuture = EasyMock.mock(ApiFuture.class); + Publisher publisher = EasyMock.mock(Publisher.class); + EasyMock.expect( + publisher.publish( + PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("A")).build())) + .andReturn(apiFuture); + EasyMock.expect(publisher.awaitTermination(1, TimeUnit.MINUTES)).andReturn(true); + publisher.shutdown(); + EasyMock.expectLastCall().once(); + EasyMock.replay(publisher); + sendTestMessage(publisher, "A"); + publisher.shutdown(); + assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES)); + } + private Builder getTestPublisherBuilder() { return Publisher.newBuilder(TEST_TOPIC) .setExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) From 51ab9fc860baf470a0e8a6b40b1d1f66615d3748 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Tue, 30 Apr 2019 11:44:16 -0400 Subject: [PATCH 0167/2363] Pub/Sub: add MessagesBatch.add method (#5032) * Pub/Sub: add MessagesBatch.add method Adding a new `MessagesBatch` method: `private List add(OutstandingPublish outstandingPublish)`. This method is responsible for adding a new user request in the form of a `OutstandingPublish`, and returning 0-2 `OutstandingBatch`, depending on the state of the current messages in flight, and the size of the new `OutstandingPublish`. * Fixing formatting. * Removing methods that are no longer used. --- .../com/google/cloud/pubsub/v1/Publisher.java | 80 ++++++++++--------- 1 file changed, 44 insertions(+), 36 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 044f0266eae4..2ec77aaa9d2b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -116,7 +116,7 @@ private Publisher(Builder builder) throws IOException { this.batchingSettings = builder.batchingSettings; this.messageTransform = builder.messageTransform; - messagesBatch = new MessagesBatch(); + messagesBatch = new MessagesBatch(batchingSettings); messagesBatchLock = new ReentrantLock(); activeAlarm = new AtomicBoolean(false); executor = builder.executorProvider.getExecutor(); @@ -196,29 +196,12 @@ public ApiFuture publish(PubsubMessage message) { throw new IllegalStateException("Cannot publish on a shut-down publisher."); } - message = messageTransform.apply(message); - List batchesToSend = new ArrayList<>(); - final OutstandingPublish outstandingPublish = new OutstandingPublish(message); + final OutstandingPublish outstandingPublish = + new OutstandingPublish(messageTransform.apply(message)); + List batchesToSend; messagesBatchLock.lock(); try { - // Check if the next message makes the current batch exceed the max batch byte size. - if (!messagesBatch.isEmpty() - && hasBatchingBytes() - && messagesBatch.getBatchedBytes() + outstandingPublish.messageSize - >= getMaxBatchBytes()) { - batchesToSend.add(messagesBatch.popOutstandingBatch()); - } - - messagesBatch.addMessage(outstandingPublish, outstandingPublish.messageSize); - - // Border case: If the message to send is greater or equals to the max batch size then send it - // immediately. - // Alternatively if after adding the message we have reached the batch max messages then we - // have a batch to send. - if ((hasBatchingBytes() && outstandingPublish.messageSize >= getMaxBatchBytes()) - || messagesBatch.getMessagesCount() == getBatchingSettings().getElementCountThreshold()) { - batchesToSend.add(messagesBatch.popOutstandingBatch()); - } + batchesToSend = messagesBatch.add(outstandingPublish); // Setup the next duration based delivery alarm if there are messages batched. setupAlarm(); } finally { @@ -378,10 +361,6 @@ public BatchingSettings getBatchingSettings() { return batchingSettings; } - private long getMaxBatchBytes() { - return getBatchingSettings().getRequestByteThreshold(); - } - /** * Schedules immediate publishing of any outstanding messages and waits until all are processed. * @@ -410,10 +389,6 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted return backgroundResources.awaitTermination(duration, unit); } - private boolean hasBatchingBytes() { - return getMaxBatchBytes() > 0; - } - /** * Constructs a new {@link Builder} using the given topic. * @@ -616,8 +591,14 @@ public Publisher build() throws IOException { } private static class MessagesBatch { - private List messages = new LinkedList<>(); + private List messages; private int batchedBytes; + private final BatchingSettings batchingSettings; + + public MessagesBatch(BatchingSettings batchingSettings) { + this.batchingSettings = batchingSettings; + reset(); + } private OutstandingBatch popOutstandingBatch() { OutstandingBatch batch = new OutstandingBatch(messages, batchedBytes); @@ -638,13 +619,40 @@ private int getBatchedBytes() { return batchedBytes; } - private void addMessage(OutstandingPublish message, int messageSize) { - messages.add(message); - batchedBytes += messageSize; - } - private int getMessagesCount() { return messages.size(); } + + private boolean hasBatchingBytes() { + return getMaxBatchBytes() > 0; + } + + private long getMaxBatchBytes() { + return batchingSettings.getRequestByteThreshold(); + } + + private List add(OutstandingPublish outstandingPublish) { + List batchesToSend = new ArrayList<>(); + // Check if the next message makes the current batch exceed the max batch byte size. + if (!isEmpty() + && hasBatchingBytes() + && getBatchedBytes() + outstandingPublish.messageSize >= getMaxBatchBytes()) { + batchesToSend.add(popOutstandingBatch()); + } + + messages.add(outstandingPublish); + batchedBytes += outstandingPublish.messageSize; + + // Border case: If the message to send is greater or equals to the max batch size then send it + // immediately. + // Alternatively if after adding the message we have reached the batch max messages then we + // have a batch to send. + if ((hasBatchingBytes() && outstandingPublish.messageSize >= getMaxBatchBytes()) + || getMessagesCount() == batchingSettings.getElementCountThreshold()) { + batchesToSend.add(popOutstandingBatch()); + } + + return batchesToSend; + } } } From d13f7e68e55b87fd6f4a4a8ddfe25f57604d5759 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Tue, 30 Apr 2019 13:07:49 -0400 Subject: [PATCH 0168/2363] Pub/Sub: some Publisher.Builder variables are private (#5033) --- .../java/com/google/cloud/pubsub/v1/Publisher.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 2ec77aaa9d2b..345d5f67fe06 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -442,8 +442,8 @@ public static final class Builder { static final long DEFAULT_ELEMENT_COUNT_THRESHOLD = 100L; static final long DEFAULT_REQUEST_BYTES_THRESHOLD = 1000L; // 1 kB static final Duration DEFAULT_DELAY_THRESHOLD = Duration.ofMillis(1); - static final Duration DEFAULT_RPC_TIMEOUT = Duration.ofSeconds(10); - static final Duration DEFAULT_TOTAL_TIMEOUT = MIN_TOTAL_TIMEOUT; + private static final Duration DEFAULT_RPC_TIMEOUT = Duration.ofSeconds(10); + private static final Duration DEFAULT_TOTAL_TIMEOUT = MIN_TOTAL_TIMEOUT; static final BatchingSettings DEFAULT_BATCHING_SETTINGS = BatchingSettings.newBuilder() .setDelayThreshold(DEFAULT_DELAY_THRESHOLD) @@ -474,17 +474,17 @@ public static final class Builder { RetrySettings retrySettings = DEFAULT_RETRY_SETTINGS; - TransportChannelProvider channelProvider = + private TransportChannelProvider channelProvider = TopicAdminSettings.defaultGrpcTransportProviderBuilder().setChannelsPerCpu(1).build(); - HeaderProvider headerProvider = new NoHeaderProvider(); - HeaderProvider internalHeaderProvider = + private HeaderProvider headerProvider = new NoHeaderProvider(); + private HeaderProvider internalHeaderProvider = TopicAdminSettings.defaultApiClientHeaderProviderBuilder().build(); ExecutorProvider executorProvider = DEFAULT_EXECUTOR_PROVIDER; - CredentialsProvider credentialsProvider = + private CredentialsProvider credentialsProvider = TopicAdminSettings.defaultCredentialsProviderBuilder().build(); - ApiFunction messageTransform = + private ApiFunction messageTransform = new ApiFunction() { @Override public PubsubMessage apply(PubsubMessage input) { From 7f34dc63bc1d65558d5bf608ed9549654dd09083 Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Tue, 30 Apr 2019 15:06:30 -0400 Subject: [PATCH 0169/2363] Pub/Sub: Streamining publisher proto creation. (#5040) Using a prebuit List is faster than adding elements one at a time to a proto list. --- .../com/google/cloud/pubsub/v1/Publisher.java | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 345d5f67fe06..9b0390ecde06 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -272,13 +272,13 @@ public void publishAllOutstanding() { } private ApiFuture publishCall(OutstandingBatch outstandingBatch) { - PublishRequest.Builder publishRequest = PublishRequest.newBuilder(); - publishRequest.setTopic(topicName); - for (OutstandingPublish outstandingPublish : outstandingBatch.outstandingPublishes) { - publishRequest.addMessages(outstandingPublish.message); - } - - return publisherStub.publishCallable().futureCall(publishRequest.build()); + return publisherStub + .publishCallable() + .futureCall( + PublishRequest.newBuilder() + .setTopic(topicName) + .addAllMessages(outstandingBatch.getMessages()) + .build()); } private void publishOutstandingBatch(final OutstandingBatch outstandingBatch) { @@ -342,6 +342,14 @@ private static final class OutstandingBatch { int size() { return outstandingPublishes.size(); } + + private List getMessages() { + List results = new ArrayList<>(outstandingPublishes.size()); + for (OutstandingPublish outstandingPublish : outstandingPublishes) { + results.add(outstandingPublish.message); + } + return results; + } } private static final class OutstandingPublish { From 68b7abd97d09fbc67455a5ff109360751fc90c2b Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Wed, 1 May 2019 13:18:41 -0400 Subject: [PATCH 0170/2363] Pub/Sub: more refactoring (#5044) * Pub/Sub: more refactoring - Using `Preconditions` - Adding `onSuccess` and `onFailure` to `OutstandingPublish` * Fixing a typo * Fixing formating --- .../com/google/cloud/pubsub/v1/Publisher.java | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 9b0390ecde06..31a57fcc9daa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -192,9 +192,7 @@ public String getTopicNameString() { * @return the message ID wrapped in a future. */ public ApiFuture publish(PubsubMessage message) { - if (shutdown.get()) { - throw new IllegalStateException("Cannot publish on a shut-down publisher."); - } + Preconditions.checkState(!shutdown.get(), "Cannot publish on a shut-down publisher."); final OutstandingPublish outstandingPublish = new OutstandingPublish(messageTransform.apply(message)); @@ -288,23 +286,15 @@ private void publishOutstandingBatch(final OutstandingBatch outstandingBatch) { public void onSuccess(PublishResponse result) { try { if (result.getMessageIdsCount() != outstandingBatch.size()) { - Throwable t = + outstandingBatch.onFailure( new IllegalStateException( String.format( "The publish result count %s does not match " + "the expected %s results. Please contact Cloud Pub/Sub support " + "if this frequently occurs", - result.getMessageIdsCount(), outstandingBatch.size())); - for (OutstandingPublish oustandingMessage : outstandingBatch.outstandingPublishes) { - oustandingMessage.publishResult.setException(t); - } - return; - } - - Iterator messagesResultsIt = - outstandingBatch.outstandingPublishes.iterator(); - for (String messageId : result.getMessageIdsList()) { - messagesResultsIt.next().publishResult.set(messageId); + result.getMessageIdsCount(), outstandingBatch.size()))); + } else { + outstandingBatch.onSuccess(result.getMessageIdsList()); } } finally { messagesWaiter.incrementPendingMessages(-outstandingBatch.size()); @@ -314,9 +304,7 @@ public void onSuccess(PublishResponse result) { @Override public void onFailure(Throwable t) { try { - for (OutstandingPublish outstandingPublish : outstandingBatch.outstandingPublishes) { - outstandingPublish.publishResult.setException(t); - } + outstandingBatch.onFailure(t); } finally { messagesWaiter.incrementPendingMessages(-outstandingBatch.size()); } @@ -350,6 +338,19 @@ private List getMessages() { } return results; } + + private void onFailure(Throwable t) { + for (OutstandingPublish outstandingPublish : outstandingPublishes) { + outstandingPublish.publishResult.setException(t); + } + } + + private void onSuccess(Iterable results) { + Iterator messagesResultsIt = outstandingPublishes.iterator(); + for (String messageId : results) { + messagesResultsIt.next().publishResult.set(messageId); + } + } } private static final class OutstandingPublish { @@ -376,10 +377,9 @@ public BatchingSettings getBatchingSettings() { * should be invoked prior to deleting the {@link Publisher} object in order to ensure that no * pending messages are lost. */ - public void shutdown() throws Exception { - if (shutdown.getAndSet(true)) { - throw new IllegalStateException("Cannot shut down a publisher already shut-down."); - } + public void shutdown() { + Preconditions.checkState( + !shutdown.getAndSet(true), "Cannot shut down a publisher already shut-down."); if (currentAlarmFuture != null && activeAlarm.getAndSet(false)) { currentAlarmFuture.cancel(false); } From 527f7a47072622513a20ebf64c9f4967f8d6bedf Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Wed, 1 May 2019 15:44:24 -0700 Subject: [PATCH 0171/2363] Release v0.90.0 (#5047) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 9e3e949ca1ca..d37e9f5a044b 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.71.0 + 1.72.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.71.0' +compile 'com.google.cloud:google-cloud-pubsub:1.72.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.72.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 17fd46340110..9002ec799021 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.71.1-SNAPSHOT + 1.72.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.89.1-alpha-SNAPSHOT + 0.90.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ecbe04ee88e6..6756b8834adc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.53.1-SNAPSHOT + 1.54.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.54.1-SNAPSHOT + 0.55.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b69025940863..4470a29db76e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.53.1-SNAPSHOT + 1.54.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.54.1-SNAPSHOT + 0.55.0 From c0eb5bd7cb58257eb677c322645d072d7c628a30 Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 2 May 2019 08:02:53 -0700 Subject: [PATCH 0172/2363] Bump next snapshot (#5048) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9002ec799021..5c483a0ba2a3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.72.0 + 1.72.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.90.0-alpha + 0.90.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6756b8834adc..665b47f4a028 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.54.0 + 1.54.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.55.0 + 0.55.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4470a29db76e..fecf2eba9306 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.54.0 + 1.54.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.55.0 + 0.55.1-SNAPSHOT From c6c467ca4f2981ee2035174e64c1d719cfece705 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Tue, 7 May 2019 08:59:49 -0700 Subject: [PATCH 0173/2363] Regenerate PubSub client: kms_key_name field added to Topic (#5062) --- .../pubsub/v1/SubscriptionAdminClient.java | 167 ++---- .../cloud/pubsub/v1/TopicAdminClientTest.java | 8 +- .../google-cloud-pubsub/synth.metadata | 10 +- .../com/google/pubsub/v1/PublisherGrpc.java | 20 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 120 +--- .../pubsub/v1/CreateSnapshotRequest.java | 10 +- .../pubsub/v1/DeleteSnapshotRequest.java | 10 +- .../google/pubsub/v1/GetSnapshotRequest.java | 10 +- .../pubsub/v1/ListSnapshotsRequest.java | 10 +- .../pubsub/v1/ListSnapshotsResponse.java | 10 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 10 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 10 +- .../com/google/pubsub/v1/PubsubProto.java | 417 +++++++------- .../java/com/google/pubsub/v1/PushConfig.java | 27 +- .../com/google/pubsub/v1/SeekRequest.java | 10 +- .../java/com/google/pubsub/v1/Snapshot.java | 10 +- .../com/google/pubsub/v1/Subscription.java | 112 +--- .../pubsub/v1/SubscriptionOrBuilder.java | 28 +- .../main/java/com/google/pubsub/v1/Topic.java | 196 +++++++ .../com/google/pubsub/v1/TopicOrBuilder.java | 31 + .../pubsub/v1/UpdateSnapshotRequest.java | 10 +- .../main/proto/google/pubsub/v1/pubsub.proto | 532 ++++++++---------- 22 files changed, 814 insertions(+), 954 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index bd640c1b9c56..86499c237e49 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1362,10 +1362,7 @@ public final UnaryCallable modifyPushConfigCalla * Lists the existing snapshots. Snapshots are used in <a * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. + * state of messages in an existing subscription to the state captured by a snapshot. * *

    Sample code: * @@ -1395,10 +1392,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { * Lists the existing snapshots. Snapshots are used in <a * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. + * state of messages in an existing subscription to the state captured by a snapshot. * *

    Sample code: * @@ -1425,10 +1419,7 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) { * Lists the existing snapshots. Snapshots are used in <a * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. + * state of messages in an existing subscription to the state captured by a snapshot. * *

    Sample code: * @@ -1456,10 +1447,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque * Lists the existing snapshots. Snapshots are used in <a * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. + * state of messages in an existing subscription to the state captured by a snapshot. * *

    Sample code: * @@ -1487,10 +1475,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque * Lists the existing snapshots. Snapshots are used in <a * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. + * state of messages in an existing subscription to the state captured by a snapshot. * *

    Sample code: * @@ -1525,17 +1510,15 @@ public final UnaryCallable listSnap * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * <br><br> <b>BETA:</b> This feature is part of a beta 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.<br><br> 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The - * generated name is populated in the returned Snapshot object. Note that for REST API requests, - * you must specify a name in the request. + * <br><br>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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Snapshot object. Note that for REST API requests, you must specify a + * name in the request. * *

    Sample code: * @@ -1577,17 +1560,15 @@ public final Snapshot createSnapshot( * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * <br><br> <b>BETA:</b> This feature is part of a beta 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.<br><br> 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The - * generated name is populated in the returned Snapshot object. Note that for REST API requests, - * you must specify a name in the request. + * <br><br>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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Snapshot object. Note that for REST API requests, you must specify a + * name in the request. * *

    Sample code: * @@ -1625,17 +1606,15 @@ public final Snapshot createSnapshot(String name, String subscription) { * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * <br><br> <b>BETA:</b> This feature is part of a beta 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.<br><br> 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The - * generated name is populated in the returned Snapshot object. Note that for REST API requests, - * you must specify a name in the request. + * <br><br>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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Snapshot object. Note that for REST API requests, you must specify a + * name in the request. * *

    Sample code: * @@ -1664,17 +1643,15 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * <br><br> <b>BETA:</b> This feature is part of a beta 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.<br><br> 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The - * generated name is populated in the returned Snapshot object. Note that for REST API requests, - * you must specify a name in the request. + * <br><br>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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Snapshot object. Note that for REST API requests, you must specify a + * name in the request. * *

    Sample code: * @@ -1701,11 +1678,7 @@ public final UnaryCallable createSnapshotCallab * Updates an existing snapshot. Snapshots are used in <a * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. Note that certain properties of a - * snapshot are not modifiable. + * state of messages in an existing subscription to the state captured by a snapshot. * *

    Sample code: * @@ -1743,11 +1716,7 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) { * Updates an existing snapshot. Snapshots are used in <a * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. Note that certain properties of a - * snapshot are not modifiable. + * state of messages in an existing subscription to the state captured by a snapshot. * *

    Sample code: * @@ -1785,12 +1754,10 @@ public final UnaryCallable updateSnapshotCallab * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. When the snapshot is deleted, all - * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new - * one may be created with the same name, but the new one has no association with the old snapshot - * or its subscription, unless the same subscription is specified. + * snapshot.<br><br> When the snapshot is deleted, all messages retained in the + * snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with + * the same name, but the new one has no association with the old snapshot or its subscription, + * unless the same subscription is specified. * *

    Sample code: * @@ -1820,12 +1787,10 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) { * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. When the snapshot is deleted, all - * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new - * one may be created with the same name, but the new one has no association with the old snapshot - * or its subscription, unless the same subscription is specified. + * snapshot.<br><br> When the snapshot is deleted, all messages retained in the + * snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with + * the same name, but the new one has no association with the old snapshot or its subscription, + * unless the same subscription is specified. * *

    Sample code: * @@ -1853,12 +1818,10 @@ public final void deleteSnapshot(String snapshot) { * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. When the snapshot is deleted, all - * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new - * one may be created with the same name, but the new one has no association with the old snapshot - * or its subscription, unless the same subscription is specified. + * snapshot.<br><br> When the snapshot is deleted, all messages retained in the + * snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with + * the same name, but the new one has no association with the old snapshot or its subscription, + * unless the same subscription is specified. * *

    Sample code: * @@ -1885,12 +1848,10 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) { * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> <b>BETA:</b> This feature is part of a beta 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. When the snapshot is deleted, all - * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new - * one may be created with the same name, but the new one has no association with the old snapshot - * or its subscription, unless the same subscription is specified. + * snapshot.<br><br> When the snapshot is deleted, all messages retained in the + * snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with + * the same name, but the new one has no association with the old snapshot or its subscription, + * unless the same subscription is specified. * *

    Sample code: * @@ -1917,10 +1878,7 @@ public final UnaryCallable deleteSnapshotCallable( * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. Note that - * both the subscription and the snapshot must be on the same topic.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * both the subscription and the snapshot must be on the same topic. * *

    Sample code: * @@ -1948,10 +1906,7 @@ public final SeekResponse seek(SeekRequest request) { * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. Note that - * both the subscription and the snapshot must be on the same topic.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * both the subscription and the snapshot must be on the same topic. * *

    Sample code: * diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index d2ac5766d77f..b11e8eff9ef8 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -107,7 +107,9 @@ public void tearDown() throws Exception { @SuppressWarnings("all") public void createTopicTest() { ProjectTopicName name2 = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); - Topic expectedResponse = Topic.newBuilder().setName(name2.toString()).build(); + String kmsKeyName = "kmsKeyName2094986649"; + Topic expectedResponse = + Topic.newBuilder().setName(name2.toString()).setKmsKeyName(kmsKeyName).build(); mockPublisher.addResponse(expectedResponse); ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); @@ -194,7 +196,9 @@ public void publishExceptionTest() throws Exception { @SuppressWarnings("all") public void getTopicTest() { ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); - Topic expectedResponse = Topic.newBuilder().setName(name.toString()).build(); + String kmsKeyName = "kmsKeyName2094986649"; + Topic expectedResponse = + Topic.newBuilder().setName(name.toString()).setKmsKeyName(kmsKeyName).build(); mockPublisher.addResponse(expectedResponse); ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index 3b65f35f62bc..dd2ad162a32a 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-04-02T07:51:42.879133Z", + "updateTime": "2019-05-04T07:50:52.778189Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.22", - "dockerImage": "googleapis/artman@sha256:e7f9554322a8aa1416c122c918fdc4cdec8cfe816f027fc948dec0be7edef320" + "version": "0.18.0", + "dockerImage": "googleapis/artman@sha256:29bd82cc42c43825fde408e63fc955f3f9d07ff9989243d7aa0f91a35c7884dc" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6c48ab5aef47dc14e02e2dc718d232a28067129d", - "internalRef": "241437588" + "sha": "39c876cca5403e7e8282ce2229033cc3cc02962c", + "internalRef": "246561601" } } ], diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 33d1e71762f8..2e64a27a1a13 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -549,10 +549,7 @@ public void listTopicSubscriptions( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * captured by a snapshot. * */ public void listTopicSnapshots( @@ -767,10 +764,7 @@ public void listTopicSubscriptions( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * captured by a snapshot. * */ public void listTopicSnapshots( @@ -914,10 +908,7 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * captured by a snapshot. * */ public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( @@ -1059,10 +1050,7 @@ public com.google.common.util.concurrent.ListenableFuture */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 545cc35cf812..1dbce6507d9b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1032,10 +1032,7 @@ public void modifyPushConfig( * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * subscription to the state captured by a snapshot. * */ public void getSnapshot( @@ -1053,10 +1050,7 @@ public void getSnapshot( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * captured by a snapshot. * */ public void listSnapshots( @@ -1075,11 +1069,7 @@ public void listSnapshots( * 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. - * <br><br> - * <b>BETA:</b> This feature is part of a beta 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.<br><br> - * If the snapshot already exists, returns `ALREADY_EXISTS`. + * <br><br>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. @@ -1108,11 +1098,7 @@ public void createSnapshot( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. - * Note that certain properties of a snapshot are not modifiable. + * captured by a snapshot. * */ public void updateSnapshot( @@ -1131,9 +1117,6 @@ public void updateSnapshot( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. * When the snapshot is deleted, all messages retained in the snapshot * are immediately dropped. After a snapshot is deleted, a new one may be * created with the same name, but the new one has no association with the old @@ -1157,10 +1140,7 @@ public void deleteSnapshot( * 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. Note that both the subscription and the snapshot - * must be on the same topic.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * must be on the same topic. * */ public void seek( @@ -1497,10 +1477,7 @@ public void modifyPushConfig( * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * subscription to the state captured by a snapshot. * */ public void getSnapshot( @@ -1521,10 +1498,7 @@ public void getSnapshot( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * captured by a snapshot. * */ public void listSnapshots( @@ -1546,11 +1520,7 @@ public void listSnapshots( * 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. - * <br><br> - * <b>BETA:</b> This feature is part of a beta 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.<br><br> - * If the snapshot already exists, returns `ALREADY_EXISTS`. + * <br><br>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. @@ -1582,11 +1552,7 @@ public void createSnapshot( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. - * Note that certain properties of a snapshot are not modifiable. + * captured by a snapshot. * */ public void updateSnapshot( @@ -1608,9 +1574,6 @@ public void updateSnapshot( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. * When the snapshot is deleted, all messages retained in the snapshot * are immediately dropped. After a snapshot is deleted, a new one may be * created with the same name, but the new one has no association with the old @@ -1637,10 +1600,7 @@ public void deleteSnapshot( * 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. Note that both the subscription and the snapshot - * must be on the same topic.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * must be on the same topic. * */ public void seek( @@ -1829,10 +1789,7 @@ public com.google.protobuf.Empty modifyPushConfig( * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * subscription to the state captured by a snapshot. * */ public com.google.pubsub.v1.Snapshot getSnapshot( @@ -1850,10 +1807,7 @@ public com.google.pubsub.v1.Snapshot getSnapshot( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * captured by a snapshot. * */ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( @@ -1872,11 +1826,7 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( * 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. - * <br><br> - * <b>BETA:</b> This feature is part of a beta 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.<br><br> - * If the snapshot already exists, returns `ALREADY_EXISTS`. + * <br><br>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. @@ -1905,11 +1855,7 @@ public com.google.pubsub.v1.Snapshot createSnapshot( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. - * Note that certain properties of a snapshot are not modifiable. + * captured by a snapshot. * */ public com.google.pubsub.v1.Snapshot updateSnapshot( @@ -1928,9 +1874,6 @@ public com.google.pubsub.v1.Snapshot updateSnapshot( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. * When the snapshot is deleted, all messages retained in the snapshot * are immediately dropped. After a snapshot is deleted, a new one may be * created with the same name, but the new one has no association with the old @@ -1954,10 +1897,7 @@ public com.google.protobuf.Empty deleteSnapshot( * 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. Note that both the subscription and the snapshot - * must be on the same topic.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * must be on the same topic. * */ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { @@ -2146,10 +2086,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * subscription to the state captured by a snapshot. * */ public com.google.common.util.concurrent.ListenableFuture @@ -2167,10 +2104,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * captured by a snapshot. * */ public com.google.common.util.concurrent.ListenableFuture< @@ -2190,11 +2124,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * 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. - * <br><br> - * <b>BETA:</b> This feature is part of a beta 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.<br><br> - * If the snapshot already exists, returns `ALREADY_EXISTS`. + * <br><br>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. @@ -2223,11 +2153,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. - * Note that certain properties of a snapshot are not modifiable. + * captured by a snapshot. * */ public com.google.common.util.concurrent.ListenableFuture @@ -2246,9 +2172,6 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. * When the snapshot is deleted, all messages retained in the snapshot * are immediately dropped. After a snapshot is deleted, a new one may be * created with the same name, but the new one has no association with the old @@ -2272,10 +2195,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * 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. Note that both the subscription and the snapshot - * must be on the same topic.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * must be on the same topic. * */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 4801431a560c..3576d3c9a057 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -7,10 +7,7 @@ * * *

    - * Request for the `CreateSnapshot` method.<br><br>
    - * <b>BETA:</b> This feature is part of a beta 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.
    + * Request for the `CreateSnapshot` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} @@ -527,10 +524,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Request for the `CreateSnapshot` method.<br><br>
    -   * <b>BETA:</b> This feature is part of a beta 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.
    +   * Request for the `CreateSnapshot` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 1ee47dc8aa79..af9e226c38b9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -7,10 +7,7 @@ * * *
    - * Request for the `DeleteSnapshot` method.<br><br>
    - * <b>BETA:</b> This feature is part of a beta 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.
    + * Request for the `DeleteSnapshot` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} @@ -302,10 +299,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Request for the `DeleteSnapshot` method.<br><br>
    -   * <b>BETA:</b> This feature is part of a beta 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.
    +   * Request for the `DeleteSnapshot` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 05f6cbf9da54..de31267dfcd4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -7,10 +7,7 @@ * * *
    - * Request for the GetSnapshot method.<br><br>
    - * <b>BETA:</b> This feature is part of a beta 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.
    + * Request for the GetSnapshot method.
      * 
    * * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest} @@ -301,10 +298,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Request for the GetSnapshot method.<br><br>
    -   * <b>BETA:</b> This feature is part of a beta 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.
    +   * Request for the GetSnapshot method.
        * 
    * * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 6bd19a2aba94..9174f55774b9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -7,10 +7,7 @@ * * *
    - * Request for the `ListSnapshots` method.<br><br>
    - * <b>BETA:</b> This feature is part of a beta 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.
    + * Request for the `ListSnapshots` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} @@ -395,10 +392,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Request for the `ListSnapshots` method.<br><br>
    -   * <b>BETA:</b> This feature is part of a beta 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.
    +   * Request for the `ListSnapshots` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 365129f60b7e..4ceea1f1e1e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -7,10 +7,7 @@ * * *
    - * Response for the `ListSnapshots` method.<br><br>
    - * <b>BETA:</b> This feature is part of a beta 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.
    + * Response for the `ListSnapshots` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} @@ -392,10 +389,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Response for the `ListSnapshots` method.<br><br>
    -   * <b>BETA:</b> This feature is part of a beta 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.
    +   * Response for the `ListSnapshots` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index b44a2b4eff55..bcb03577993a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -7,10 +7,7 @@ * * *
    - * Request for the `ListTopicSnapshots` method. <br><br>
    - * <b>BETA:</b> This feature is part of a beta 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.
    + * Request for the `ListTopicSnapshots` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest} @@ -395,10 +392,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Request for the `ListTopicSnapshots` method. <br><br>
    -   * <b>BETA:</b> This feature is part of a beta 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.
    +   * Request for the `ListTopicSnapshots` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 48bd10153a5a..e00427cedea1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -7,10 +7,7 @@ * * *
    - * Response for the `ListTopicSnapshots` method.<br><br>
    - * <b>BETA:</b> This feature is part of a beta 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.
    + * Response for the `ListTopicSnapshots` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse} @@ -386,10 +383,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Response for the `ListTopicSnapshots` method.<br><br>
    -   * <b>BETA:</b> This feature is part of a beta 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.
    +   * Response for the `ListTopicSnapshots` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 2024dd9a3aa5..fa9dbb52c7c9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -92,14 +92,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_PushConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ReceivedMessage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -207,203 +207,204 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\035google/pubsub/v1/pubsub.proto\022\020google." + "pubsub.v1\032\034google/api/annotations.proto\032" - + "\036google/protobuf/duration.proto\032\033google/" - + "protobuf/empty.proto\032 google/protobuf/fi" - + "eld_mask.proto\032\037google/protobuf/timestam" - + "p.proto\";\n\024MessageStoragePolicy\022#\n\033allow" - + "ed_persistence_regions\030\001 \003(\t\"\301\001\n\005Topic\022\014" - + "\n\004name\030\001 \001(\t\0223\n\006labels\030\002 \003(\0132#.google.pu" - + "bsub.v1.Topic.LabelsEntry\022F\n\026message_sto" - + "rage_policy\030\003 \001(\0132&.google.pubsub.v1.Mes" - + "sageStoragePolicy\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\361\001\n\rPubsubMessa" - + "ge\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.g" - + "oogle.pubsub.v1.PubsubMessage.Attributes" - + "Entry\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_tim" - + "e\030\004 \001(\0132\032.google.protobuf.Timestamp\022\024\n\014o" - + "rdering_key\030\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\017GetTopic" - + "Request\022\r\n\005topic\030\001 \001(\t\"m\n\022UpdateTopicReq" - + "uest\022&\n\005topic\030\001 \001(\0132\027.google.pubsub.v1.T" - + "opic\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMask\"R\n\016PublishRequest\022\r\n\005topic" - + "\030\001 \001(\t\0221\n\010messages\030\002 \003(\0132\037.google.pubsub" - + ".v1.PubsubMessage\"&\n\017PublishResponse\022\023\n\013" - + "message_ids\030\001 \003(\t\"K\n\021ListTopicsRequest\022\017" - + "\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\"V\n\022ListTopicsResponse\022\'\n\006" - + "topics\030\001 \003(\0132\027.google.pubsub.v1.Topic\022\027\n" - + "\017next_page_token\030\002 \001(\t\"U\n\035ListTopicSubsc" - + "riptionsRequest\022\r\n\005topic\030\001 \001(\t\022\021\n\tpage_s" - + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036ListTop" - + "icSubscriptionsResponse\022\025\n\rsubscriptions" - + "\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\031ListT" - + "opicSnapshotsRequest\022\r\n\005topic\030\001 \001(\t\022\021\n\tp" - + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\032Li" - + "stTopicSnapshotsResponse\022\021\n\tsnapshots\030\001 " - + "\003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n\022DeleteTo" - + "picRequest\022\r\n\005topic\030\001 \001(\t\"\245\003\n\014Subscripti" - + "on\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\0221\n\013push_" - + "config\030\004 \001(\0132\034.google.pubsub.v1.PushConf" - + "ig\022\034\n\024ack_deadline_seconds\030\005 \001(\005\022\035\n\025reta" - + "in_acked_messages\030\007 \001(\010\022=\n\032message_reten" - + "tion_duration\030\010 \001(\0132\031.google.protobuf.Du" - + "ration\022:\n\006labels\030\t \003(\0132*.google.pubsub.v" - + "1.Subscription.LabelsEntry\022\037\n\027enable_mes" - + "sage_ordering\030\n \001(\010\022=\n\021expiration_policy" - + "\030\013 \001(\0132\".google.pubsub.v1.ExpirationPoli" - + "cy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\":\n\020ExpirationPolicy\022&\n\003ttl\030\001 \001" - + "(\0132\031.google.protobuf.Duration\"\255\002\n\nPushCo" - + "nfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\nattribute" - + "s\030\002 \003(\0132,.google.pubsub.v1.PushConfig.At" - + "tributesEntry\022<\n\noidc_token\030\003 \001(\0132&.goog" - + "le.pubsub.v1.PushConfig.OidcTokenH\000\0321\n\017A" - + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\032<\n\tOidcToken\022\035\n\025service_account_e" - + "mail\030\001 \001(\t\022\020\n\010audience\030\002 \001(\tB\027\n\025authenti" - + "cation_method\"S\n\017ReceivedMessage\022\016\n\006ack_" - + "id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.google.pubsu" - + "b.v1.PubsubMessage\".\n\026GetSubscriptionReq" - + "uest\022\024\n\014subscription\030\001 \001(\t\"\202\001\n\031UpdateSub" - + "scriptionRequest\0224\n\014subscription\030\001 \001(\0132\036" - + ".google.pubsub.v1.Subscription\022/\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" - + "R\n\030ListSubscriptionsRequest\022\017\n\007project\030\001" + + "\031google/api/resource.proto\032\036google/proto" + + "buf/duration.proto\032\033google/protobuf/empt" + + "y.proto\032 google/protobuf/field_mask.prot" + + "o\032\037google/protobuf/timestamp.proto\";\n\024Me" + + "ssageStoragePolicy\022#\n\033allowed_persistenc" + + "e_regions\030\001 \003(\t\"\327\001\n\005Topic\022\014\n\004name\030\001 \001(\t\022" + + "3\n\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic" + + ".LabelsEntry\022F\n\026message_storage_policy\030\003" + + " \001(\0132&.google.pubsub.v1.MessageStoragePo" + + "licy\022\024\n\014kms_key_name\030\005 \001(\t\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\361\001\n\rPu" + + "bsubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030" + + "\002 \003(\0132/.google.pubsub.v1.PubsubMessage.A" + + "ttributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014pu" + + "blish_time\030\004 \001(\0132\032.google.protobuf.Times" + + "tamp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017Attributes" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n" + + "\017GetTopicRequest\022\r\n\005topic\030\001 \001(\t\"m\n\022Updat" + + "eTopicRequest\022&\n\005topic\030\001 \001(\0132\027.google.pu" + + "bsub.v1.Topic\022/\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMask\"R\n\016PublishRequest" + + "\022\r\n\005topic\030\001 \001(\t\0221\n\010messages\030\002 \003(\0132\037.goog" + + "le.pubsub.v1.PubsubMessage\"&\n\017PublishRes" + + "ponse\022\023\n\013message_ids\030\001 \003(\t\"K\n\021ListTopics" + + "Request\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListTopicsRes" + + "ponse\022\'\n\006topics\030\001 \003(\0132\027.google.pubsub.v1" + + ".Topic\022\027\n\017next_page_token\030\002 \001(\t\"U\n\035ListT" + + "opicSubscriptionsRequest\022\r\n\005topic\030\001 \001(\t\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P" + + "\n\036ListTopicSubscriptionsResponse\022\025\n\rsubs" + + "criptions\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t" + + "\"Q\n\031ListTopicSnapshotsRequest\022\r\n\005topic\030\001" + " \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubs" - + "criptions\030\001 \003(\0132\036.google.pubsub.v1.Subsc" - + "ription\022\027\n\017next_page_token\030\002 \001(\t\"1\n\031Dele" - + "teSubscriptionRequest\022\024\n\014subscription\030\001 " - + "\001(\t\"b\n\027ModifyPushConfigRequest\022\024\n\014subscr" - + "iption\030\001 \001(\t\0221\n\013push_config\030\002 \001(\0132\034.goog" - + "le.pubsub.v1.PushConfig\"U\n\013PullRequest\022\024" - + "\n\014subscription\030\001 \001(\t\022\032\n\022return_immediate" - + "ly\030\002 \001(\010\022\024\n\014max_messages\030\003 \001(\005\"L\n\014PullRe" - + "sponse\022<\n\021received_messages\030\001 \003(\0132!.goog" - + "le.pubsub.v1.ReceivedMessage\"_\n\030ModifyAc" - + "kDeadlineRequest\022\024\n\014subscription\030\001 \001(\t\022\017" - + "\n\007ack_ids\030\004 \003(\t\022\034\n\024ack_deadline_seconds\030" - + "\003 \001(\005\";\n\022AcknowledgeRequest\022\024\n\014subscript" - + "ion\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024Streaming" - + "PullRequest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack" - + "_ids\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030\003 " - + "\003(\005\022\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022#\n\033" - + "stream_ack_deadline_seconds\030\005 \001(\005\"U\n\025Str" - + "eamingPullResponse\022<\n\021received_messages\030" - + "\001 \003(\0132!.google.pubsub.v1.ReceivedMessage" - + "\"\257\001\n\025CreateSnapshotRequest\022\014\n\004name\030\001 \001(\t" - + "\022\024\n\014subscription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323" - + ".google.pubsub.v1.CreateSnapshotRequest." - + "LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\"v\n\025UpdateSnapshotRequ" - + "est\022,\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1" - + ".Snapshot\022/\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030" - + "\001 \001(\t\022\r\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(" - + "\0132\032.google.protobuf.Timestamp\0226\n\006labels\030" - + "\004 \003(\0132&.google.pubsub.v1.Snapshot.Labels" - + "Entry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010sn" - + "apshot\030\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007" + + "\001(\t\"H\n\032ListTopicSnapshotsResponse\022\021\n\tsna" + + "pshots\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n" + + "\022DeleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\245\003\n\014S" + + "ubscription\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t" + + "\0221\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1" + + ".PushConfig\022\034\n\024ack_deadline_seconds\030\005 \001(" + + "\005\022\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032mess" + + "age_retention_duration\030\010 \001(\0132\031.google.pr" + + "otobuf.Duration\022:\n\006labels\030\t \003(\0132*.google" + + ".pubsub.v1.Subscription.LabelsEntry\022\037\n\027e" + + "nable_message_ordering\030\n \001(\010\022=\n\021expirati" + + "on_policy\030\013 \001(\0132\".google.pubsub.v1.Expir" + + "ationPolicy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\":\n\020ExpirationPolicy\022&" + + "\n\003ttl\030\001 \001(\0132\031.google.protobuf.Duration\"\255" + + "\002\n\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\n" + + "attributes\030\002 \003(\0132,.google.pubsub.v1.Push" + + "Config.AttributesEntry\022<\n\noidc_token\030\003 \001" + + "(\0132&.google.pubsub.v1.PushConfig.OidcTok" + + "enH\000\032<\n\tOidcToken\022\035\n\025service_account_ema" + + "il\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017Attributes" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" + + "\025authentication_method\"S\n\017ReceivedMessag" + + "e\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.goo" + + "gle.pubsub.v1.PubsubMessage\".\n\026GetSubscr" + + "iptionRequest\022\024\n\014subscription\030\001 \001(\t\"\202\001\n\031" + + "UpdateSubscriptionRequest\0224\n\014subscriptio" + + "n\030\001 \001(\0132\036.google.pubsub.v1.Subscription\022" + + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMask\"R\n\030ListSubscriptionsRequest\022\017\n\007" + "project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n" - + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Snap" - + "shot\022\027\n\017next_page_token\030\002 \001(\t\")\n\025DeleteS" - + "napshotRequest\022\020\n\010snapshot\030\001 \001(\t\"m\n\013Seek" - + "Request\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 " - + "\001(\0132\032.google.protobuf.TimestampH\000\022\022\n\010sna" - + "pshot\030\003 \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2" - + "\277\010\n\tPublisher\022j\n\013CreateTopic\022\027.google.pu" - + "bsub.v1.Topic\032\027.google.pubsub.v1.Topic\")" - + "\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001" - + "*\022}\n\013UpdateTopic\022$.google.pubsub.v1.Upda" - + "teTopicRequest\032\027.google.pubsub.v1.Topic\"" - + "/\202\323\344\223\002)2$/v1/{topic.name=projects/*/topi" - + "cs/*}:\001*\022\202\001\n\007Publish\022 .google.pubsub.v1." - + "PublishRequest\032!.google.pubsub.v1.Publis" - + "hResponse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*" - + "/topics/*}:publish:\001*\022o\n\010GetTopic\022!.goog" - + "le.pubsub.v1.GetTopicRequest\032\027.google.pu" - + "bsub.v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projec" - + "ts/*/topics/*}\022\200\001\n\nListTopics\022#.google.p" - + "ubsub.v1.ListTopicsRequest\032$.google.pubs" - + "ub.v1.ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{p" - + "roject=projects/*}/topics\022\262\001\n\026ListTopicS" - + "ubscriptions\022/.google.pubsub.v1.ListTopi" - + "cSubscriptionsRequest\0320.google.pubsub.v1" - + ".ListTopicSubscriptionsResponse\"5\202\323\344\223\002/\022" - + "-/v1/{topic=projects/*/topics/*}/subscri" - + "ptions\022\242\001\n\022ListTopicSnapshots\022+.google.p" - + "ubsub.v1.ListTopicSnapshotsRequest\032,.goo" - + "gle.pubsub.v1.ListTopicSnapshotsResponse" - + "\"1\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*" - + "}/snapshots\022t\n\013DeleteTopic\022$.google.pubs" - + "ub.v1.DeleteTopicRequest\032\026.google.protob" - + "uf.Empty\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/" - + "topics/*}2\371\021\n\nSubscriber\022\206\001\n\022CreateSubsc" - + "ription\022\036.google.pubsub.v1.Subscription\032" - + "\036.google.pubsub.v1.Subscription\"0\202\323\344\223\002*\032" - + "%/v1/{name=projects/*/subscriptions/*}:\001" - + "*\022\222\001\n\017GetSubscription\022(.google.pubsub.v1" - + ".GetSubscriptionRequest\032\036.google.pubsub." - + "v1.Subscription\"5\202\323\344\223\002/\022-/v1/{subscripti" - + "on=projects/*/subscriptions/*}\022\240\001\n\022Updat" - + "eSubscription\022+.google.pubsub.v1.UpdateS" - + "ubscriptionRequest\032\036.google.pubsub.v1.Su" - + "bscription\"=\202\323\344\223\002722/v1/{subscription.na" - + "me=projects/*/subscriptions/*}:\001*\022\234\001\n\021Li" - + "stSubscriptions\022*.google.pubsub.v1.ListS" - + "ubscriptionsRequest\032+.google.pubsub.v1.L" - + "istSubscriptionsResponse\".\202\323\344\223\002(\022&/v1/{p" - + "roject=projects/*}/subscriptions\022\220\001\n\022Del" - + "eteSubscription\022+.google.pubsub.v1.Delet" - + "eSubscriptionRequest\032\026.google.protobuf.E" - + "mpty\"5\202\323\344\223\002/*-/v1/{subscription=projects" - + "/*/subscriptions/*}\022\243\001\n\021ModifyAckDeadlin" - + "e\022*.google.pubsub.v1.ModifyAckDeadlineRe" - + "quest\032\026.google.protobuf.Empty\"J\202\323\344\223\002D\"?/" + + "_token\030\003 \001(\t\"k\n\031ListSubscriptionsRespons" + + "e\0225\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub" + + ".v1.Subscription\022\027\n\017next_page_token\030\002 \001(" + + "\t\"1\n\031DeleteSubscriptionRequest\022\024\n\014subscr" + + "iption\030\001 \001(\t\"b\n\027ModifyPushConfigRequest\022" + + "\024\n\014subscription\030\001 \001(\t\0221\n\013push_config\030\002 \001" + + "(\0132\034.google.pubsub.v1.PushConfig\"U\n\013Pull" + + "Request\022\024\n\014subscription\030\001 \001(\t\022\032\n\022return_" + + "immediately\030\002 \001(\010\022\024\n\014max_messages\030\003 \001(\005\"" + + "L\n\014PullResponse\022<\n\021received_messages\030\001 \003" + + "(\0132!.google.pubsub.v1.ReceivedMessage\"_\n" + + "\030ModifyAckDeadlineRequest\022\024\n\014subscriptio" + + "n\030\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t\022\034\n\024ack_deadline" + + "_seconds\030\003 \001(\005\";\n\022AcknowledgeRequest\022\024\n\014" + + "subscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024" + + "StreamingPullRequest\022\024\n\014subscription\030\001 \001" + + "(\t\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_deadline_s" + + "econds\030\003 \003(\005\022\037\n\027modify_deadline_ack_ids\030" + + "\004 \003(\t\022#\n\033stream_ack_deadline_seconds\030\005 \001" + + "(\005\"U\n\025StreamingPullResponse\022<\n\021received_" + + "messages\030\001 \003(\0132!.google.pubsub.v1.Receiv" + + "edMessage\"\257\001\n\025CreateSnapshotRequest\022\014\n\004n" + + "ame\030\001 \001(\t\022\024\n\014subscription\030\002 \001(\t\022C\n\006label" + + "s\030\003 \003(\01323.google.pubsub.v1.CreateSnapsho" + + "tRequest.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\025UpdateSna" + + "pshotRequest\022,\n\010snapshot\030\001 \001(\0132\032.google." + + "pubsub.v1.Snapshot\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"\277\001\n\010Snapshot" + + "\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\022/\n\013expire_" + + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\0226" + + "\n\006labels\030\004 \003(\0132&.google.pubsub.v1.Snapsh" + + "ot.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"&\n\022GetSnapshotRequ" + + "est\022\020\n\010snapshot\030\001 \001(\t\"N\n\024ListSnapshotsRe" + + "quest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapshotsRe" + + "sponse\022-\n\tsnapshots\030\001 \003(\0132\032.google.pubsu" + + "b.v1.Snapshot\022\027\n\017next_page_token\030\002 \001(\t\")" + + "\n\025DeleteSnapshotRequest\022\020\n\010snapshot\030\001 \001(" + + "\t\"m\n\013SeekRequest\022\024\n\014subscription\030\001 \001(\t\022*" + + "\n\004time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "H\000\022\022\n\010snapshot\030\003 \001(\tH\000B\010\n\006target\"\016\n\014Seek" + + "Response2\277\010\n\tPublisher\022j\n\013CreateTopic\022\027." + + "google.pubsub.v1.Topic\032\027.google.pubsub.v" + + "1.Topic\")\202\323\344\223\002#\032\036/v1/{name=projects/*/to" + + "pics/*}:\001*\022}\n\013UpdateTopic\022$.google.pubsu" + + "b.v1.UpdateTopicRequest\032\027.google.pubsub." + + "v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name=projec" + + "ts/*/topics/*}:\001*\022\202\001\n\007Publish\022 .google.p" + + "ubsub.v1.PublishRequest\032!.google.pubsub." + + "v1.PublishResponse\"2\202\323\344\223\002,\"\'/v1/{topic=p" + + "rojects/*/topics/*}:publish:\001*\022o\n\010GetTop" + + "ic\022!.google.pubsub.v1.GetTopicRequest\032\027." + + "google.pubsub.v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{top" + + "ic=projects/*/topics/*}\022\200\001\n\nListTopics\022#" + + ".google.pubsub.v1.ListTopicsRequest\032$.go" + + "ogle.pubsub.v1.ListTopicsResponse\"\'\202\323\344\223\002" + + "!\022\037/v1/{project=projects/*}/topics\022\262\001\n\026L" + + "istTopicSubscriptions\022/.google.pubsub.v1" + + ".ListTopicSubscriptionsRequest\0320.google." + + "pubsub.v1.ListTopicSubscriptionsResponse" + + "\"5\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*" + + "}/subscriptions\022\242\001\n\022ListTopicSnapshots\022+" + + ".google.pubsub.v1.ListTopicSnapshotsRequ" + + "est\032,.google.pubsub.v1.ListTopicSnapshot" + + "sResponse\"1\202\323\344\223\002+\022)/v1/{topic=projects/*" + + "/topics/*}/snapshots\022t\n\013DeleteTopic\022$.go" + + "ogle.pubsub.v1.DeleteTopicRequest\032\026.goog" + + "le.protobuf.Empty\"\'\202\323\344\223\002!*\037/v1/{topic=pr" + + "ojects/*/topics/*}2\371\021\n\nSubscriber\022\206\001\n\022Cr" + + "eateSubscription\022\036.google.pubsub.v1.Subs" + + "cription\032\036.google.pubsub.v1.Subscription" + + "\"0\202\323\344\223\002*\032%/v1/{name=projects/*/subscript" + + "ions/*}:\001*\022\222\001\n\017GetSubscription\022(.google." + + "pubsub.v1.GetSubscriptionRequest\032\036.googl" + + "e.pubsub.v1.Subscription\"5\202\323\344\223\002/\022-/v1/{s" + + "ubscription=projects/*/subscriptions/*}\022" + + "\240\001\n\022UpdateSubscription\022+.google.pubsub.v" + + "1.UpdateSubscriptionRequest\032\036.google.pub" + + "sub.v1.Subscription\"=\202\323\344\223\002722/v1/{subscr" + + "iption.name=projects/*/subscriptions/*}:" + + "\001*\022\234\001\n\021ListSubscriptions\022*.google.pubsub" + + ".v1.ListSubscriptionsRequest\032+.google.pu" + + "bsub.v1.ListSubscriptionsResponse\".\202\323\344\223\002" + + "(\022&/v1/{project=projects/*}/subscription" + + "s\022\220\001\n\022DeleteSubscription\022+.google.pubsub" + + ".v1.DeleteSubscriptionRequest\032\026.google.p" + + "rotobuf.Empty\"5\202\323\344\223\002/*-/v1/{subscription" + + "=projects/*/subscriptions/*}\022\243\001\n\021ModifyA" + + "ckDeadline\022*.google.pubsub.v1.ModifyAckD" + + "eadlineRequest\032\026.google.protobuf.Empty\"J" + + "\202\323\344\223\002D\"?/v1/{subscription=projects/*/sub" + + "scriptions/*}:modifyAckDeadline:\001*\022\221\001\n\013A" + + "cknowledge\022$.google.pubsub.v1.Acknowledg" + + "eRequest\032\026.google.protobuf.Empty\"D\202\323\344\223\002>" + + "\"9/v1/{subscription=projects/*/subscript" + + "ions/*}:acknowledge:\001*\022\204\001\n\004Pull\022\035.google" + + ".pubsub.v1.PullRequest\032\036.google.pubsub.v" + + "1.PullResponse\"=\202\323\344\223\0027\"2/v1/{subscriptio" + + "n=projects/*/subscriptions/*}:pull:\001*\022f\n" + + "\rStreamingPull\022&.google.pubsub.v1.Stream" + + "ingPullRequest\032\'.google.pubsub.v1.Stream" + + "ingPullResponse\"\000(\0010\001\022\240\001\n\020ModifyPushConf" + + "ig\022).google.pubsub.v1.ModifyPushConfigRe" + + "quest\032\026.google.protobuf.Empty\"I\202\323\344\223\002C\">/" + "v1/{subscription=projects/*/subscription" - + "s/*}:modifyAckDeadline:\001*\022\221\001\n\013Acknowledg" - + "e\022$.google.pubsub.v1.AcknowledgeRequest\032" - + "\026.google.protobuf.Empty\"D\202\323\344\223\002>\"9/v1/{su" - + "bscription=projects/*/subscriptions/*}:a" - + "cknowledge:\001*\022\204\001\n\004Pull\022\035.google.pubsub.v" - + "1.PullRequest\032\036.google.pubsub.v1.PullRes" - + "ponse\"=\202\323\344\223\0027\"2/v1/{subscription=project" - + "s/*/subscriptions/*}:pull:\001*\022f\n\rStreamin" - + "gPull\022&.google.pubsub.v1.StreamingPullRe" - + "quest\032\'.google.pubsub.v1.StreamingPullRe" - + "sponse\"\000(\0010\001\022\240\001\n\020ModifyPushConfig\022).goog" - + "le.pubsub.v1.ModifyPushConfigRequest\032\026.g" - + "oogle.protobuf.Empty\"I\202\323\344\223\002C\">/v1/{subsc" - + "ription=projects/*/subscriptions/*}:modi" - + "fyPushConfig:\001*\022~\n\013GetSnapshot\022$.google." - + "pubsub.v1.GetSnapshotRequest\032\032.google.pu" - + "bsub.v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{snapshot=" - + "projects/*/snapshots/*}\022\214\001\n\rListSnapshot" - + "s\022&.google.pubsub.v1.ListSnapshotsReques" - + "t\032\'.google.pubsub.v1.ListSnapshotsRespon" - + "se\"*\202\323\344\223\002$\022\"/v1/{project=projects/*}/sna" - + "pshots\022\203\001\n\016CreateSnapshot\022\'.google.pubsu" - + "b.v1.CreateSnapshotRequest\032\032.google.pubs" - + "ub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=projec" - + "ts/*/snapshots/*}:\001*\022\214\001\n\016UpdateSnapshot\022" - + "\'.google.pubsub.v1.UpdateSnapshotRequest" - + "\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v" - + "1/{snapshot.name=projects/*/snapshots/*}" - + ":\001*\022\200\001\n\016DeleteSnapshot\022\'.google.pubsub.v" - + "1.DeleteSnapshotRequest\032\026.google.protobu" - + "f.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=projects/" - + "*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub." - + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" - + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" - + "ts/*/subscriptions/*}:seek:\001*B\256\001\n\024com.go" - + "ogle.pubsub.v1B\013PubsubProtoP\001Z6google.go" - + "lang.org/genproto/googleapis/pubsub/v1;p" - + "ubsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Goog" - + "le\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubS" - + "ub::V1b\006proto3" + + "s/*}:modifyPushConfig:\001*\022~\n\013GetSnapshot\022" + + "$.google.pubsub.v1.GetSnapshotRequest\032\032." + + "google.pubsub.v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{" + + "snapshot=projects/*/snapshots/*}\022\214\001\n\rLis" + + "tSnapshots\022&.google.pubsub.v1.ListSnapsh" + + "otsRequest\032\'.google.pubsub.v1.ListSnapsh" + + "otsResponse\"*\202\323\344\223\002$\022\"/v1/{project=projec" + + "ts/*}/snapshots\022\203\001\n\016CreateSnapshot\022\'.goo" + + "gle.pubsub.v1.CreateSnapshotRequest\032\032.go" + + "ogle.pubsub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{na" + + "me=projects/*/snapshots/*}:\001*\022\214\001\n\016Update" + + "Snapshot\022\'.google.pubsub.v1.UpdateSnapsh" + + "otRequest\032\032.google.pubsub.v1.Snapshot\"5\202" + + "\323\344\223\002/2*/v1/{snapshot.name=projects/*/sna" + + "pshots/*}:\001*\022\200\001\n\016DeleteSnapshot\022\'.google" + + ".pubsub.v1.DeleteSnapshotRequest\032\026.googl" + + "e.protobuf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=" + + "projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.googl" + + "e.pubsub.v1.SeekRequest\032\036.google.pubsub." + + "v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscripti" + + "on=projects/*/subscriptions/*}:seek:\001*B\256" + + "\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z6" + + "google.golang.org/genproto/googleapis/pu" + + "bsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub." + + "V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cl" + + "oud::PubSub::V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -417,6 +418,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -436,7 +438,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, new java.lang.String[] { - "Name", "Labels", "MessageStoragePolicy", + "Name", "Labels", "MessageStoragePolicy", "KmsKeyName", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); @@ -590,21 +592,21 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "PushEndpoint", "Attributes", "OidcToken", "AuthenticationMethod", }); - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor = internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0); - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable = + internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, + internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor, new java.lang.String[] { - "Key", "Value", + "ServiceAccountEmail", "Audience", }); - internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor = + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); - internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable = + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor, + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, new java.lang.String[] { - "ServiceAccountEmail", "Audience", + "Key", "Value", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = getDescriptor().getMessageTypes().get(17); @@ -805,6 +807,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 4e8728030da6..eb35bcd1fe94 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -145,9 +145,8 @@ public interface OidcTokenOrBuilder * [Service account * email](https://cloud.google.com/iam/docs/service-accounts) * to be used for generating the OIDC token. The caller (for - * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must + * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must * have the iam.serviceAccounts.actAs permission for the service account. - * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. * * * string service_account_email = 1; @@ -160,9 +159,8 @@ public interface OidcTokenOrBuilder * [Service account * email](https://cloud.google.com/iam/docs/service-accounts) * to be used for generating the OIDC token. The caller (for - * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must + * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must * have the iam.serviceAccounts.actAs permission for the service account. - * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. * * * string service_account_email = 1; @@ -307,9 +305,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * [Service account * email](https://cloud.google.com/iam/docs/service-accounts) * to be used for generating the OIDC token. The caller (for - * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must + * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must * have the iam.serviceAccounts.actAs permission for the service account. - * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. * * * string service_account_email = 1; @@ -332,9 +329,8 @@ public java.lang.String getServiceAccountEmail() { * [Service account * email](https://cloud.google.com/iam/docs/service-accounts) * to be used for generating the OIDC token. The caller (for - * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must + * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must * have the iam.serviceAccounts.actAs permission for the service account. - * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. * * * string service_account_email = 1; @@ -750,9 +746,8 @@ public Builder mergeFrom( * [Service account * email](https://cloud.google.com/iam/docs/service-accounts) * to be used for generating the OIDC token. The caller (for - * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must + * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must * have the iam.serviceAccounts.actAs permission for the service account. - * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. * * * string service_account_email = 1; @@ -775,9 +770,8 @@ public java.lang.String getServiceAccountEmail() { * [Service account * email](https://cloud.google.com/iam/docs/service-accounts) * to be used for generating the OIDC token. The caller (for - * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must + * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must * have the iam.serviceAccounts.actAs permission for the service account. - * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. * * * string service_account_email = 1; @@ -800,9 +794,8 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * [Service account * email](https://cloud.google.com/iam/docs/service-accounts) * to be used for generating the OIDC token. The caller (for - * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must + * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must * have the iam.serviceAccounts.actAs permission for the service account. - * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. * * * string service_account_email = 1; @@ -823,9 +816,8 @@ public Builder setServiceAccountEmail(java.lang.String value) { * [Service account * email](https://cloud.google.com/iam/docs/service-accounts) * to be used for generating the OIDC token. The caller (for - * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must + * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must * have the iam.serviceAccounts.actAs permission for the service account. - * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. * * * string service_account_email = 1; @@ -843,9 +835,8 @@ public Builder clearServiceAccountEmail() { * [Service account * email](https://cloud.google.com/iam/docs/service-accounts) * to be used for generating the OIDC token. The caller (for - * CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must + * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must * have the iam.serviceAccounts.actAs permission for the service account. - * See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. * * * string service_account_email = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index df514bd902eb..ddaceef7ec6a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -7,10 +7,7 @@ * * *
    - * Request for the `Seek` method. <br><br>
    - * <b>BETA:</b> This feature is part of a beta 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.
    + * Request for the `Seek` method.
      * 
    * * Protobuf type {@code google.pubsub.v1.SeekRequest} @@ -525,10 +522,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Request for the `Seek` method. <br><br>
    -   * <b>BETA:</b> This feature is part of a beta 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.
    +   * Request for the `Seek` method.
        * 
    * * Protobuf type {@code google.pubsub.v1.SeekRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 6fda13845b28..bddb129495d2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -12,10 +12,7 @@ * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * captured by a snapshot. * * * Protobuf type {@code google.pubsub.v1.Snapshot} @@ -600,10 +597,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * captured by a snapshot. * * * Protobuf type {@code google.pubsub.v1.Snapshot} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 505e1aaf9465..a71441a55486 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -376,10 +376,6 @@ public int getAckDeadlineSeconds() { * <a * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> * Seek to a timestamp</a>. - * <br><br> - * <b>BETA:</b> This feature is part of a beta release. This API might be - * changed in backward-incompatible ways and is not recommended for production - * use. It is not subject to any SLA or deprecation policy. * * * bool retain_acked_messages = 7; @@ -399,10 +395,7 @@ public boolean getRetainAckedMessages() { * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -419,10 +412,7 @@ public boolean hasMessageRetentionDuration() { * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -441,10 +431,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -583,9 +570,6 @@ public boolean getEnableMessageOrdering() { * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -603,9 +587,6 @@ public boolean hasExpirationPolicy() { * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -625,9 +606,6 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -1673,10 +1651,6 @@ public Builder clearAckDeadlineSeconds() { * <a * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> * Seek to a timestamp</a>. - * <br><br> - * <b>BETA:</b> This feature is part of a beta release. This API might be - * changed in backward-incompatible ways and is not recommended for production - * use. It is not subject to any SLA or deprecation policy. * * * bool retain_acked_messages = 7; @@ -1695,10 +1669,6 @@ public boolean getRetainAckedMessages() { * <a * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> * Seek to a timestamp</a>. - * <br><br> - * <b>BETA:</b> This feature is part of a beta release. This API might be - * changed in backward-incompatible ways and is not recommended for production - * use. It is not subject to any SLA or deprecation policy. * * * bool retain_acked_messages = 7; @@ -1720,10 +1690,6 @@ public Builder setRetainAckedMessages(boolean value) { * <a * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> * Seek to a timestamp</a>. - * <br><br> - * <b>BETA:</b> This feature is part of a beta release. This API might be - * changed in backward-incompatible ways and is not recommended for production - * use. It is not subject to any SLA or deprecation policy. * * * bool retain_acked_messages = 7; @@ -1750,10 +1716,7 @@ public Builder clearRetainAckedMessages() { * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1770,10 +1733,7 @@ public boolean hasMessageRetentionDuration() { * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1796,10 +1756,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1826,10 +1783,7 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1854,10 +1808,7 @@ public Builder setMessageRetentionDuration( * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1888,10 +1839,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1916,10 +1864,7 @@ public Builder clearMessageRetentionDuration() { * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1938,10 +1883,7 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -1964,10 +1906,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -2226,9 +2165,6 @@ public Builder clearEnableMessageOrdering() { * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -2246,9 +2182,6 @@ public boolean hasExpirationPolicy() { * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -2272,9 +2205,6 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -2302,9 +2232,6 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -2330,9 +2257,6 @@ public Builder setExpirationPolicy( * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -2364,9 +2288,6 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -2392,9 +2313,6 @@ public Builder clearExpirationPolicy() { * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -2414,9 +2332,6 @@ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder( * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -2440,9 +2355,6 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 37f2292758d1..8861f6384216 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -141,10 +141,6 @@ public interface SubscriptionOrBuilder * <a * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> * Seek to a timestamp</a>. - * <br><br> - * <b>BETA:</b> This feature is part of a beta release. This API might be - * changed in backward-incompatible ways and is not recommended for production - * use. It is not subject to any SLA or deprecation policy. * * * bool retain_acked_messages = 7; @@ -160,10 +156,7 @@ public interface SubscriptionOrBuilder * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -178,10 +171,7 @@ public interface SubscriptionOrBuilder * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -196,10 +186,7 @@ public interface SubscriptionOrBuilder * 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.<br><br> - * <b>BETA:</b> This feature is part of a beta 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. + * minutes. * * * .google.protobuf.Duration message_retention_duration = 8; @@ -292,9 +279,6 @@ public interface SubscriptionOrBuilder * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -310,9 +294,6 @@ public interface SubscriptionOrBuilder * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -328,9 +309,6 @@ public interface SubscriptionOrBuilder * 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. - * <b>BETA:</b> This feature is part of a beta 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. * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index f715829d17db..34fa444e9e62 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -24,6 +24,7 @@ private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Topic() { name_ = ""; + kmsKeyName_ = ""; } @java.lang.Override @@ -84,6 +85,13 @@ private Topic( messageStoragePolicy_ = subBuilder.buildPartial(); } + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + kmsKeyName_ = s; break; } default: @@ -336,6 +344,59 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic return getMessageStoragePolicy(); } + public static final int KMS_KEY_NAME_FIELD_NUMBER = 5; + private volatile java.lang.Object kmsKeyName_; + /** + * + * + *
    +   * 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/*`.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string kms_key_name = 5; + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + /** + * + * + *
    +   * 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/*`.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string kms_key_name = 5; + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -358,6 +419,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (messageStoragePolicy_ != null) { output.writeMessage(3, getMessageStoragePolicy()); } + if (!getKmsKeyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kmsKeyName_); + } unknownFields.writeTo(output); } @@ -384,6 +448,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessageStoragePolicy()); } + if (!getKmsKeyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kmsKeyName_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -405,6 +472,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMessageStoragePolicy()) { if (!getMessageStoragePolicy().equals(other.getMessageStoragePolicy())) return false; } + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -426,6 +494,8 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_STORAGE_POLICY_FIELD_NUMBER; hash = (53 * hash) + getMessageStoragePolicy().hashCode(); } + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -597,6 +667,8 @@ public Builder clear() { messageStoragePolicy_ = null; messageStoragePolicyBuilder_ = null; } + kmsKeyName_ = ""; + return this; } @@ -632,6 +704,7 @@ public com.google.pubsub.v1.Topic buildPartial() { } else { result.messageStoragePolicy_ = messageStoragePolicyBuilder_.build(); } + result.kmsKeyName_ = kmsKeyName_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -690,6 +763,10 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1226,6 +1303,125 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic return messageStoragePolicyBuilder_; } + private java.lang.Object kmsKeyName_ = ""; + /** + * + * + *
    +     * 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/*`.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string kms_key_name = 5; + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * 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/*`.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string kms_key_name = 5; + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * 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/*`.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string kms_key_name = 5; + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kmsKeyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * 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/*`.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string kms_key_name = 5; + */ + public Builder clearKmsKeyName() { + + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + onChanged(); + return this; + } + /** + * + * + *
    +     * 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/*`.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string kms_key_name = 5; + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kmsKeyName_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index b10fdd87aa15..f1c27b778a09 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -143,4 +143,35 @@ public interface TopicOrBuilder * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; */ com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder(); + + /** + * + * + *
    +   * 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/*`.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string kms_key_name = 5; + */ + java.lang.String getKmsKeyName(); + /** + * + * + *
    +   * 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/*`.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string kms_key_name = 5; + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 58c855888da1..ab0c433066ad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -7,10 +7,7 @@ * * *
    - * Request for the UpdateSnapshot method.<br><br>
    - * <b>BETA:</b> This feature is part of a beta 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.
    + * Request for the UpdateSnapshot method.
      * 
    * * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} @@ -378,10 +375,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * Request for the UpdateSnapshot method.<br><br>
    -   * <b>BETA:</b> This feature is part of a beta 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.
    +   * Request for the UpdateSnapshot method.
        * 
    * * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 715af9c18c46..7cea47b1e539 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -18,6 +18,7 @@ syntax = "proto3"; package google.pubsub.v1; import "google/api/annotations.proto"; +import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -90,10 +91,7 @@ service Publisher { // 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.

    - // BETA: This feature is part of a beta 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. + // captured by a snapshot. rpc ListTopicSnapshots(ListTopicSnapshotsRequest) returns (ListTopicSnapshotsResponse) { option (google.api.http) = { @@ -113,6 +111,207 @@ service Publisher { } } +message MessageStoragePolicy { + // The list of GCP region IDs where messages that are published to the topic + // may be persisted in storage. Messages published by publishers running in + // non-allowed GCP regions (or running outside of GCP altogether) will be + // routed for storage in one of the allowed regions. An empty list indicates a + // misconfiguration at the project or organization level, which will result in + // all Publish operations failing. + repeated string allowed_persistence_regions = 1; +} + +// A topic resource. +message Topic { + // 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"`. + string name = 1; + + // See Creating and + // managing labels. + map labels = 2; + + // Policy constraining how messages published to the topic may be stored. It + // is determined when the topic is created based on the policy configured at + // the project level. It must not be set by the caller in the request to + // CreateTopic or to UpdateTopic. This field will be populated in the + // responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the + // response, then no constraints are in effect. + MessageStoragePolicy message_storage_policy = 3; + + // 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/*`. + // 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. + string kms_key_name = 5; +} + +// 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 +// library documentation for more information. See +// Quotas and limits +// for more information about message limits. +message PubsubMessage { + // The message data field. If this field is empty, the message must contain + // at least one attribute. + bytes data = 1; + + // Optional attributes for this message. + map attributes = 2; + + // 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. + string message_id = 3; + + // 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. + google.protobuf.Timestamp publish_time = 4; + + // Identifies related messages for which publish order should be respected. + // If a `Subscription` has `enable_message_ordering` set to `true`, messages + // published with the same `ordering_key` value will be delivered to + // subscribers in the order in which they are received by the Pub/Sub system. + // 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. + string ordering_key = 5; +} + +// Request for the GetTopic method. +message GetTopicRequest { + // The name of the topic to get. + // Format is `projects/{project}/topics/{topic}`. + string topic = 1; +} + +// Request for the UpdateTopic method. +message UpdateTopicRequest { + // The updated topic object. + Topic topic = 1; + + // Indicates which fields in the provided topic to update. Must be specified + // and non-empty. Note that if `update_mask` contains + // "message_storage_policy" then the new value will be determined based on the + // policy configured at the project or organization level. The + // `message_storage_policy` must not be set in the `topic` provided above. + google.protobuf.FieldMask update_mask = 2; +} + +// Request for the Publish method. +message PublishRequest { + // The messages in the request will be published on this topic. + // Format is `projects/{project}/topics/{topic}`. + string topic = 1; + + // The messages to publish. + repeated PubsubMessage messages = 2; +} + +// Response for the `Publish` method. +message PublishResponse { + // The server-assigned ID of each published message, in the same order as + // the messages in the request. IDs are guaranteed to be unique within + // the topic. + repeated string message_ids = 1; +} + +// Request for the `ListTopics` method. +message ListTopicsRequest { + // The name of the project in which to list topics. + // Format is `projects/{project-id}`. + string project = 1; + + // Maximum number of topics to return. + int32 page_size = 2; + + // 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. + string page_token = 3; +} + +// Response for the `ListTopics` method. +message ListTopicsResponse { + // The resulting topics. + repeated Topic topics = 1; + + // If not empty, indicates that there may be more topics that match the + // request; this value should be passed in a new `ListTopicsRequest`. + string next_page_token = 2; +} + +// Request for the `ListTopicSubscriptions` method. +message ListTopicSubscriptionsRequest { + // The name of the topic that subscriptions are attached to. + // Format is `projects/{project}/topics/{topic}`. + string topic = 1; + + // Maximum number of subscription names to return. + int32 page_size = 2; + + // The value returned by the last `ListTopicSubscriptionsResponse`; indicates + // that this is a continuation of a prior `ListTopicSubscriptions` call, and + // that the system should return the next page of data. + string page_token = 3; +} + +// Response for the `ListTopicSubscriptions` method. +message ListTopicSubscriptionsResponse { + // The names of the subscriptions that match the request. + repeated string subscriptions = 1; + + // If not empty, indicates that there may be more subscriptions that match + // the request; this value should be passed in a new + // `ListTopicSubscriptionsRequest` to get more subscriptions. + string next_page_token = 2; +} + +// Request for the `ListTopicSnapshots` method. +message ListTopicSnapshotsRequest { + // The name of the topic that snapshots are attached to. + // Format is `projects/{project}/topics/{topic}`. + string topic = 1; + + // Maximum number of snapshot names to return. + int32 page_size = 2; + + // The value returned by the last `ListTopicSnapshotsResponse`; indicates + // that this is a continuation of a prior `ListTopicSnapshots` call, and + // that the system should return the next page of data. + string page_token = 3; +} + +// Response for the `ListTopicSnapshots` method. +message ListTopicSnapshotsResponse { + // The names of the snapshots that match the request. + repeated string snapshots = 1; + + // If not empty, indicates that there may be more snapshots that match + // the request; this value should be passed in a new + // `ListTopicSnapshotsRequest` to get more snapshots. + string next_page_token = 2; +} + +// Request for the `DeleteTopic` method. +message DeleteTopicRequest { + // Name of the topic to delete. + // Format is `projects/{project}/topics/{topic}`. + string topic = 1; +} + // 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. @@ -238,10 +437,7 @@ service Subscriber { // 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.

    - // BETA: This feature is part of a beta 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. + // subscription to the state captured by a snapshot. rpc GetSnapshot(GetSnapshotRequest) returns (Snapshot) { option (google.api.http) = { get: "/v1/{snapshot=projects/*/snapshots/*}" @@ -253,10 +449,7 @@ service Subscriber { // 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.

    - // BETA: This feature is part of a beta 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. + // captured by a snapshot. rpc ListSnapshots(ListSnapshotsRequest) returns (ListSnapshotsResponse) { option (google.api.http) = { get: "/v1/{project=projects/*}/snapshots" @@ -269,11 +462,7 @@ service Subscriber { // 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. - //

    - // BETA: This feature is part of a beta 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.

    - // If the snapshot already exists, returns `ALREADY_EXISTS`. + //

    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. @@ -297,11 +486,7 @@ service Subscriber { // 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.

    - // BETA: This feature is part of a beta 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. - // Note that certain properties of a snapshot are not modifiable. + // captured by a snapshot. rpc UpdateSnapshot(UpdateSnapshotRequest) returns (Snapshot) { option (google.api.http) = { patch: "/v1/{snapshot.name=projects/*/snapshots/*}" @@ -315,9 +500,6 @@ service Subscriber { // 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.

    - // BETA: This feature is part of a beta 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. // When the snapshot is deleted, all messages retained in the snapshot // are immediately dropped. After a snapshot is deleted, a new one may be // created with the same name, but the new one has no association with the old @@ -335,10 +517,7 @@ service Subscriber { // 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. Note that both the subscription and the snapshot - // must be on the same topic.

    - // BETA: This feature is part of a beta 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. + // must be on the same topic. rpc Seek(SeekRequest) returns (SeekResponse) { option (google.api.http) = { post: "/v1/{subscription=projects/*/subscriptions/*}:seek" @@ -347,204 +526,6 @@ service Subscriber { } } -message MessageStoragePolicy { - // The list of GCP region IDs where messages that are published to the topic - // may be persisted in storage. Messages published by publishers running in - // non-allowed GCP regions (or running outside of GCP altogether) will be - // routed for storage in one of the allowed regions. An empty list indicates a - // misconfiguration at the project or organization level, which will result in - // all Publish operations failing. - repeated string allowed_persistence_regions = 1; -} - -// A topic resource. -message Topic { - // 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"`. - string name = 1; - - // See Creating and - // managing labels. - map labels = 2; - - // Policy constraining how messages published to the topic may be stored. It - // is determined when the topic is created based on the policy configured at - // the project level. It must not be set by the caller in the request to - // CreateTopic or to UpdateTopic. This field will be populated in the - // responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the - // response, then no constraints are in effect. - MessageStoragePolicy message_storage_policy = 3; -} - -// 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 -// library documentation for more information. See -// Quotas and limits -// for more information about message limits. -message PubsubMessage { - // The message data field. If this field is empty, the message must contain - // at least one attribute. - bytes data = 1; - - // Optional attributes for this message. - map attributes = 2; - - // 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. - string message_id = 3; - - // 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. - google.protobuf.Timestamp publish_time = 4; - - // Identifies related messages for which publish order should be respected. - // If a `Subscription` has `enable_message_ordering` set to `true`, messages - // published with the same `ordering_key` value will be delivered to - // subscribers in the order in which they are received by the Pub/Sub system. - // 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. - string ordering_key = 5; -} - -// Request for the GetTopic method. -message GetTopicRequest { - // The name of the topic to get. - // Format is `projects/{project}/topics/{topic}`. - string topic = 1; -} - -// Request for the UpdateTopic method. -message UpdateTopicRequest { - // The updated topic object. - Topic topic = 1; - - // Indicates which fields in the provided topic to update. Must be specified - // and non-empty. Note that if `update_mask` contains - // "message_storage_policy" then the new value will be determined based on the - // policy configured at the project or organization level. The - // `message_storage_policy` must not be set in the `topic` provided above. - google.protobuf.FieldMask update_mask = 2; -} - -// Request for the Publish method. -message PublishRequest { - // The messages in the request will be published on this topic. - // Format is `projects/{project}/topics/{topic}`. - string topic = 1; - - // The messages to publish. - repeated PubsubMessage messages = 2; -} - -// Response for the `Publish` method. -message PublishResponse { - // The server-assigned ID of each published message, in the same order as - // the messages in the request. IDs are guaranteed to be unique within - // the topic. - repeated string message_ids = 1; -} - -// Request for the `ListTopics` method. -message ListTopicsRequest { - // The name of the project in which to list topics. - // Format is `projects/{project-id}`. - string project = 1; - - // Maximum number of topics to return. - int32 page_size = 2; - - // 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. - string page_token = 3; -} - -// Response for the `ListTopics` method. -message ListTopicsResponse { - // The resulting topics. - repeated Topic topics = 1; - - // If not empty, indicates that there may be more topics that match the - // request; this value should be passed in a new `ListTopicsRequest`. - string next_page_token = 2; -} - -// Request for the `ListTopicSubscriptions` method. -message ListTopicSubscriptionsRequest { - // The name of the topic that subscriptions are attached to. - // Format is `projects/{project}/topics/{topic}`. - string topic = 1; - - // Maximum number of subscription names to return. - int32 page_size = 2; - - // The value returned by the last `ListTopicSubscriptionsResponse`; indicates - // that this is a continuation of a prior `ListTopicSubscriptions` call, and - // that the system should return the next page of data. - string page_token = 3; -} - -// Response for the `ListTopicSubscriptions` method. -message ListTopicSubscriptionsResponse { - // The names of the subscriptions that match the request. - repeated string subscriptions = 1; - - // If not empty, indicates that there may be more subscriptions that match - // the request; this value should be passed in a new - // `ListTopicSubscriptionsRequest` to get more subscriptions. - string next_page_token = 2; -} - -// Request for the `ListTopicSnapshots` method.

    -// BETA: This feature is part of a beta 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. -message ListTopicSnapshotsRequest { - // The name of the topic that snapshots are attached to. - // Format is `projects/{project}/topics/{topic}`. - string topic = 1; - - // Maximum number of snapshot names to return. - int32 page_size = 2; - - // The value returned by the last `ListTopicSnapshotsResponse`; indicates - // that this is a continuation of a prior `ListTopicSnapshots` call, and - // that the system should return the next page of data. - string page_token = 3; -} - -// Response for the `ListTopicSnapshots` method.

    -// BETA: This feature is part of a beta 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. -message ListTopicSnapshotsResponse { - // The names of the snapshots that match the request. - repeated string snapshots = 1; - - // If not empty, indicates that there may be more snapshots that match - // the request; this value should be passed in a new - // `ListTopicSnapshotsRequest` to get more snapshots. - string next_page_token = 2; -} - -// Request for the `DeleteTopic` method. -message DeleteTopicRequest { - // Name of the topic to delete. - // Format is `projects/{project}/topics/{topic}`. - string topic = 1; -} - // A subscription resource. message Subscription { // The name of the subscription. It must have the format @@ -595,10 +576,6 @@ message Subscription { // // Seek to a timestamp. - //

    - // BETA: This feature is part of a beta release. This API might be - // changed in backward-incompatible ways and is not recommended for production - // use. It is not subject to any SLA or deprecation policy. bool retain_acked_messages = 7; // How long to retain unacknowledged messages in the subscription's backlog, @@ -606,10 +583,7 @@ message Subscription { // 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.

    - // BETA: This feature is part of a beta 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. + // minutes. google.protobuf.Duration message_retention_duration = 8; // See Creating and @@ -631,9 +605,6 @@ message Subscription { // 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. - // BETA: This feature is part of a beta 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. ExpirationPolicy expiration_policy = 11; } @@ -651,6 +622,26 @@ message ExpirationPolicy { // Configuration for a push delivery endpoint. message PushConfig { + // Contains information needed for generating an + // [OpenID Connect + // token](https://developers.google.com/identity/protocols/OpenIDConnect). + message OidcToken { + // [Service account + // email](https://cloud.google.com/iam/docs/service-accounts) + // to be used for generating the OIDC token. The caller (for + // CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must + // have the iam.serviceAccounts.actAs permission for the service account. + string service_account_email = 1; + + // Audience to be used when generating OIDC token. The audience claim + // identifies the recipients that the JWT is intended for. The audience + // value is a single case-sensitive string. Having multiple values (array) + // for the audience field is not supported. More info about the OIDC JWT + // token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 + // Note: if not specified, the Push endpoint URL will be used. + string audience = 2; + } + // A URL locating the endpoint to which messages should be pushed. // For example, a Webhook endpoint might use "https://example.com/push". string push_endpoint = 1; @@ -683,36 +674,11 @@ message PushConfig { // default to allow requests only from the Cloud Pub/Sub system, for example. // This field is optional and should be set only by users interested in // authenticated push. - // EXPERIMENTAL: This field a part of a closed alpha that may not be - // accessible to all users. It may be changed in backward-incompatible ways - // and is not subject to any SLA or deprecation policy. It is not recommended - // for production use. oneof authentication_method { // If specified, Pub/Sub will generate and attach an OIDC JWT token as an // `Authorization` header in the HTTP request for every pushed message. OidcToken oidc_token = 3; } - - // Contains information needed for generating an - // [OpenID Connect - // token](https://developers.google.com/identity/protocols/OpenIDConnect). - message OidcToken { - // [Service account - // email](https://cloud.google.com/iam/docs/service-accounts) - // to be used for generating the OIDC token. The caller (for - // CreateSubscription, UpdateSubscription, and ModifyPushConfig calls) must - // have the iam.serviceAccounts.actAs permission for the service account. - // See https://cloud.google.com/iam/docs/understanding-roles#service-accounts-roles. - string service_account_email = 1; - - // Audience to be used when generating OIDC token. The audience claim - // identifies the recipients that the JWT is intended for. The audience - // value is a single case-sensitive string. Having multiple values (array) - // for the audience field is not supported. More info about the OIDC JWT - // token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 - // Note: if not specified, the Push endpoint URL will be used. - string audience = 2; - } } // A message and its corresponding acknowledgment ID. @@ -897,10 +863,7 @@ message StreamingPullResponse { repeated ReceivedMessage received_messages = 1; } -// Request for the `CreateSnapshot` method.

    -// BETA: This feature is part of a beta 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. +// Request for the `CreateSnapshot` method. message CreateSnapshotRequest { // Optional user-provided name for this snapshot. // If the name is not provided in the request, the server will assign a random @@ -927,10 +890,7 @@ message CreateSnapshotRequest { map labels = 3; } -// Request for the UpdateSnapshot method.

    -// BETA: This feature is part of a beta 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. +// Request for the UpdateSnapshot method. message UpdateSnapshotRequest { // The updated snapshot object. Snapshot snapshot = 1; @@ -945,10 +905,7 @@ message UpdateSnapshotRequest { // 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.

    -// BETA: This feature is part of a beta 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. +// captured by a snapshot. message Snapshot { // The name of the snapshot. string name = 1; @@ -973,20 +930,14 @@ message Snapshot { map labels = 4; } -// Request for the GetSnapshot method.

    -// BETA: This feature is part of a beta 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. +// Request for the GetSnapshot method. message GetSnapshotRequest { // The name of the snapshot to get. // Format is `projects/{project}/snapshots/{snap}`. string snapshot = 1; } -// Request for the `ListSnapshots` method.

    -// BETA: This feature is part of a beta 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. +// Request for the `ListSnapshots` method. message ListSnapshotsRequest { // The name of the project in which to list snapshots. // Format is `projects/{project-id}`. @@ -1001,10 +952,7 @@ message ListSnapshotsRequest { string page_token = 3; } -// Response for the `ListSnapshots` method.

    -// BETA: This feature is part of a beta 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. +// Response for the `ListSnapshots` method. message ListSnapshotsResponse { // The resulting snapshots. repeated Snapshot snapshots = 1; @@ -1014,20 +962,14 @@ message ListSnapshotsResponse { string next_page_token = 2; } -// Request for the `DeleteSnapshot` method.

    -// BETA: This feature is part of a beta 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. +// Request for the `DeleteSnapshot` method. message DeleteSnapshotRequest { // The name of the snapshot to delete. // Format is `projects/{project}/snapshots/{snap}`. string snapshot = 1; } -// Request for the `Seek` method.

    -// BETA: This feature is part of a beta 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. +// Request for the `Seek` method. message SeekRequest { // The subscription to affect. string subscription = 1; From fb16f0398cce8ea1bc923236f6cbe832c2103eea Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Tue, 7 May 2019 14:16:26 -0400 Subject: [PATCH 0174/2363] Release google-cloud-java v0.91.0 (#5080) * Release v0.91.0 * Tasks GA --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index d37e9f5a044b..f91f97ff49d6 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.72.0 + 1.73.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.72.0' +compile 'com.google.cloud:google-cloud-pubsub:1.73.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.73.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5c483a0ba2a3..ebda4fc2fa18 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.72.1-SNAPSHOT + 1.73.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.90.1-alpha-SNAPSHOT + 0.91.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 665b47f4a028..18f435da4eb6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.54.1-SNAPSHOT + 1.55.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.55.1-SNAPSHOT + 0.56.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index fecf2eba9306..a1764cbcded7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.54.1-SNAPSHOT + 1.55.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.55.1-SNAPSHOT + 0.56.0 From 92a16d21d8ca05e9595d74625e78d5b6deca8520 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Tue, 7 May 2019 16:53:13 -0400 Subject: [PATCH 0175/2363] Bump next snapshot (#5081) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ebda4fc2fa18..46323c8ede6b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.73.0 + 1.73.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.91.0-alpha + 0.91.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 18f435da4eb6..1ab38d1b5c5d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.55.0 + 1.55.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.56.0 + 0.56.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a1764cbcded7..7ac3fd1d76d3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.55.0 + 1.55.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.56.0 + 0.56.1-SNAPSHOT From 6283a1814ce4eb33760b2fa51a429f4b38f00caf Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 8 May 2019 10:36:01 -0700 Subject: [PATCH 0176/2363] Regenerate pubsub client (#5104) Update docs and DEADLINE_EXCEEDED is no longer retried by default --- .../pubsub/v1/SubscriptionAdminClient.java | 27 ++++++++++++------- .../cloud/pubsub/v1/TopicAdminClient.java | 27 ++++++++++++------- .../pubsub/v1/stub/PublisherStubSettings.java | 1 - .../google-cloud-pubsub/synth.metadata | 10 +++---- 4 files changed, 41 insertions(+), 24 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 86499c237e49..2a6df164008b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1940,9 +1940,8 @@ public final UnaryCallable seekCallable() { * } * * - * @param resource REQUIRED: The resource for which the policy is being specified. `resource` is - * usually specified as a path. For example, a Project resource is specified as - * `projects/{project}`. + * @param resource REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. * @param 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. @@ -2018,9 +2017,8 @@ public final UnaryCallable setIamPolicyCallable() { * } * * - * @param resource REQUIRED: The resource for which the policy is being requested. `resource` is - * usually specified as a path. For example, a Project resource is specified as - * `projects/{project}`. + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy getIamPolicy(String resource) { @@ -2081,6 +2079,10 @@ public final UnaryCallable getIamPolicyCallable() { * Returns permissions that a caller has on the specified resource. If the resource does not * exist, this will return an empty set of permissions, not a NOT_FOUND error. * + *

    Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * *

    Sample code: * *

    
    @@ -2091,9 +2093,8 @@ public final UnaryCallable getIamPolicyCallable() {
        * }
        * 
    * - * @param resource REQUIRED: The resource for which the policy detail is being requested. - * `resource` is usually specified as a path. For example, a Project resource is specified as - * `projects/{project}`. + * @param resource REQUIRED: The resource for which the policy detail is being requested. See the + * operation documentation for the appropriate value for this field. * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). @@ -2115,6 +2116,10 @@ public final TestIamPermissionsResponse testIamPermissions( * Returns permissions that a caller has on the specified resource. If the resource does not * exist, this will return an empty set of permissions, not a NOT_FOUND error. * + *

    Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * *

    Sample code: * *

    
    @@ -2141,6 +2146,10 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
        * Returns permissions that a caller has on the specified resource. If the resource does not
        * exist, this will return an empty set of permissions, not a NOT_FOUND error.
        *
    +   * 

    Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * *

    Sample code: * *

    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    index d1bd8ee18c34..6c7b9f1410da 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    @@ -922,9 +922,8 @@ public final UnaryCallable deleteTopicCallable() {
        * }
        * 
    * - * @param resource REQUIRED: The resource for which the policy is being specified. `resource` is - * usually specified as a path. For example, a Project resource is specified as - * `projects/{project}`. + * @param resource REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. * @param 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. @@ -1000,9 +999,8 @@ public final UnaryCallable setIamPolicyCallable() { * } *
    * - * @param resource REQUIRED: The resource for which the policy is being requested. `resource` is - * usually specified as a path. For example, a Project resource is specified as - * `projects/{project}`. + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy getIamPolicy(String resource) { @@ -1063,6 +1061,10 @@ public final UnaryCallable getIamPolicyCallable() { * Returns permissions that a caller has on the specified resource. If the resource does not * exist, this will return an empty set of permissions, not a NOT_FOUND error. * + *

    Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * *

    Sample code: * *

    
    @@ -1073,9 +1075,8 @@ public final UnaryCallable getIamPolicyCallable() {
        * }
        * 
    * - * @param resource REQUIRED: The resource for which the policy detail is being requested. - * `resource` is usually specified as a path. For example, a Project resource is specified as - * `projects/{project}`. + * @param resource REQUIRED: The resource for which the policy detail is being requested. See the + * operation documentation for the appropriate value for this field. * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). @@ -1097,6 +1098,10 @@ public final TestIamPermissionsResponse testIamPermissions( * Returns permissions that a caller has on the specified resource. If the resource does not * exist, this will return an empty set of permissions, not a NOT_FOUND error. * + *

    Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * *

    Sample code: * *

    
    @@ -1123,6 +1128,10 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
        * Returns permissions that a caller has on the specified resource. If the resource does not
        * exist, this will return an empty set of permissions, not a NOT_FOUND error.
        *
    +   * 

    Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * *

    Sample code: * *

    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    index e841967b5a73..01c7349571b9 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    @@ -490,7 +490,6 @@ public static class Builder extends StubSettings.BuildernewArrayList(
                       StatusCode.Code.ABORTED,
                       StatusCode.Code.CANCELLED,
    -                  StatusCode.Code.DEADLINE_EXCEEDED,
                       StatusCode.Code.INTERNAL,
                       StatusCode.Code.RESOURCE_EXHAUSTED,
                       StatusCode.Code.UNAVAILABLE,
    diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata
    index dd2ad162a32a..11d3eba432d3 100644
    --- a/java-pubsub/google-cloud-pubsub/synth.metadata
    +++ b/java-pubsub/google-cloud-pubsub/synth.metadata
    @@ -1,19 +1,19 @@
     {
    -  "updateTime": "2019-05-04T07:50:52.778189Z",
    +  "updateTime": "2019-05-08T07:53:25.339418Z",
       "sources": [
         {
           "generator": {
             "name": "artman",
    -        "version": "0.18.0",
    -        "dockerImage": "googleapis/artman@sha256:29bd82cc42c43825fde408e63fc955f3f9d07ff9989243d7aa0f91a35c7884dc"
    +        "version": "0.19.0",
    +        "dockerImage": "googleapis/artman@sha256:d3df563538225ac6caac45d8ad86499500211d1bcb2536955a6dbda15e1b368e"
           }
         },
         {
           "git": {
             "name": "googleapis",
             "remote": "https://github.com/googleapis/googleapis.git",
    -        "sha": "39c876cca5403e7e8282ce2229033cc3cc02962c",
    -        "internalRef": "246561601"
    +        "sha": "51145ff7812d2bb44c1219d0b76dac92a8bd94b2",
    +        "internalRef": "247143125"
           }
         }
       ],
    
    From 3cd2baf1354fdde49cd340675fcba3d10861ba17 Mon Sep 17 00:00:00 2001
    From: Yoshi Automation Bot
     <44816363+yoshi-automation@users.noreply.github.com>
    Date: Mon, 13 May 2019 05:39:38 -0700
    Subject: [PATCH 0177/2363] Regenerate pubsub client (#5169)
    
    ---
     .../google/cloud/pubsub/v1/stub/PublisherStubSettings.java  | 1 +
     java-pubsub/google-cloud-pubsub/synth.metadata              | 6 +++---
     2 files changed, 4 insertions(+), 3 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    index 01c7349571b9..e841967b5a73 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    @@ -490,6 +490,7 @@ public static class Builder extends StubSettings.BuildernewArrayList(
                       StatusCode.Code.ABORTED,
                       StatusCode.Code.CANCELLED,
    +                  StatusCode.Code.DEADLINE_EXCEEDED,
                       StatusCode.Code.INTERNAL,
                       StatusCode.Code.RESOURCE_EXHAUSTED,
                       StatusCode.Code.UNAVAILABLE,
    diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata
    index 11d3eba432d3..060f5d85ffff 100644
    --- a/java-pubsub/google-cloud-pubsub/synth.metadata
    +++ b/java-pubsub/google-cloud-pubsub/synth.metadata
    @@ -1,5 +1,5 @@
     {
    -  "updateTime": "2019-05-08T07:53:25.339418Z",
    +  "updateTime": "2019-05-10T07:50:01.699623Z",
       "sources": [
         {
           "generator": {
    @@ -12,8 +12,8 @@
           "git": {
             "name": "googleapis",
             "remote": "https://github.com/googleapis/googleapis.git",
    -        "sha": "51145ff7812d2bb44c1219d0b76dac92a8bd94b2",
    -        "internalRef": "247143125"
    +        "sha": "07883be5bf3c3233095e99d8e92b8094f5d7084a",
    +        "internalRef": "247530843"
           }
         }
       ],
    
    From c51bf63ae96d5119fe0acd6e1c188981a9f585fe Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Wed, 15 May 2019 13:49:40 -0700
    Subject: [PATCH 0178/2363] Release v0.92.0 (#5189)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index f91f97ff49d6..b4a2e68ecca4 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.73.0
    +  1.74.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.73.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.74.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.73.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.74.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 46323c8ede6b..39b83bd82ced 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.73.1-SNAPSHOT
    +  1.74.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.91.1-alpha-SNAPSHOT
    +    0.92.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 1ab38d1b5c5d..288788800198 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.55.1-SNAPSHOT
    +  1.56.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.56.1-SNAPSHOT
    +    0.57.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 7ac3fd1d76d3..569764932657 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.55.1-SNAPSHOT
    +  1.56.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.56.1-SNAPSHOT
    +    0.57.0
       
       
         
    
    From c2c6b0ec9e40ffd793b45f80036dddc2cd2649d8 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Wed, 15 May 2019 19:41:53 -0700
    Subject: [PATCH 0179/2363] Bump next snapshot (#5192)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 39b83bd82ced..4b12af746f8f 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.74.0
    +  1.74.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.92.0-alpha
    +    0.92.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 288788800198..9b879db41349 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.56.0
    +  1.56.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.57.0
    +    0.57.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 569764932657..f7d6a14069f3 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.56.0
    +  1.56.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.57.0
    +    0.57.1-SNAPSHOT
       
       
         
    
    From 53fd6242ef43743a13e1960835d98324bc1cb915 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Wed, 22 May 2019 16:10:33 -0700
    Subject: [PATCH 0180/2363] Release v0.93.0 (#5211)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index b4a2e68ecca4..a5b7d5737e0e 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.74.0
    +  1.75.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.74.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.75.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.74.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.75.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 4b12af746f8f..04005a37b66c 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.74.1-SNAPSHOT
    +  1.75.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.92.1-alpha-SNAPSHOT
    +    0.93.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 9b879db41349..072b0b280367 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.56.1-SNAPSHOT
    +  1.57.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.57.1-SNAPSHOT
    +    0.58.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index f7d6a14069f3..e611cee1a135 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.56.1-SNAPSHOT
    +  1.57.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.57.1-SNAPSHOT
    +    0.58.0
       
       
         
    
    From b3f94214b311d292a120a0306ce291beeb18e92d Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Thu, 23 May 2019 09:54:41 -0700
    Subject: [PATCH 0181/2363] Bump next snapshot (#5212)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 04005a37b66c..d6d387c0571c 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.75.0
    +  1.75.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.93.0-alpha
    +    0.93.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 072b0b280367..26f00ac04e06 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.57.0
    +  1.57.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.58.0
    +    0.58.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index e611cee1a135..c1d852c4538e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.57.0
    +  1.57.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.58.0
    +    0.58.1-SNAPSHOT
       
       
         
    
    From 2327630f25047e279d8021a84184c41cfd132d90 Mon Sep 17 00:00:00 2001
    From: Yoshi Automation Bot 
    Date: Fri, 24 May 2019 01:45:15 -0700
    Subject: [PATCH 0182/2363] Regenerate pubsub client (#5218)
    
    ---
     .../cloud/pubsub/v1/stub/SubscriberStubSettings.java   |  4 ++--
     java-pubsub/google-cloud-pubsub/synth.metadata         | 10 +++++-----
     2 files changed, 7 insertions(+), 7 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    index f0bc52496598..e8572e66f7ec 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    @@ -508,9 +508,9 @@ public static class Builder extends StubSettings.Builder
    Date: Wed, 29 May 2019 15:05:40 -0400
    Subject: [PATCH 0183/2363] Release v0.94.0 (#5238)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index a5b7d5737e0e..3b2a3fd5dddd 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.75.0
    +  1.76.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.75.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.76.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.75.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.76.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index d6d387c0571c..b047bed08a1a 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.75.1-SNAPSHOT
    +  1.76.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.93.1-alpha-SNAPSHOT
    +    0.94.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 26f00ac04e06..bfe46d456c57 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.57.1-SNAPSHOT
    +  1.58.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.58.1-SNAPSHOT
    +    0.59.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index c1d852c4538e..6f436d3ebb99 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.57.1-SNAPSHOT
    +  1.58.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.58.1-SNAPSHOT
    +    0.59.0
       
       
         
    
    From 3be229ae8053e44af1507013765a1064e05858ea Mon Sep 17 00:00:00 2001
    From: kolea2 <45548808+kolea2@users.noreply.github.com>
    Date: Wed, 29 May 2019 17:43:39 -0400
    Subject: [PATCH 0184/2363] Bump next snapshot (#5239)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index b047bed08a1a..73aa876b4fb9 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.76.0
    +  1.76.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.94.0-alpha
    +    0.94.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index bfe46d456c57..3590c6c0db87 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.58.0
    +  1.58.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.59.0
    +    0.59.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 6f436d3ebb99..ac63a2484cfa 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.58.0
    +  1.58.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.59.0
    +    0.59.1-SNAPSHOT
       
       
         
    
    From e23ee78e0f08703a0f3acbc676e234cccb6cd697 Mon Sep 17 00:00:00 2001
    From: Solomon Duskis 
    Date: Thu, 30 May 2019 12:52:27 -0400
    Subject: [PATCH 0185/2363] Pub/Sub: Fixing Subscriber's system executor config
     (#5234)
    
    * Pub/Sub: Properly closing Subscriber executors
    
    * Reverting `shutdownNow()`
    ---
     .../google/cloud/pubsub/v1/Subscriber.java    | 34 +++++++++++++++----
     1 file changed, 27 insertions(+), 7 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java
    index 7453cde8a446..5775278dcb6c 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java
    @@ -29,7 +29,6 @@
     import com.google.api.gax.core.CredentialsProvider;
     import com.google.api.gax.core.Distribution;
     import com.google.api.gax.core.ExecutorProvider;
    -import com.google.api.gax.core.FixedExecutorProvider;
     import com.google.api.gax.core.InstantiatingExecutorProvider;
     import com.google.api.gax.rpc.HeaderProvider;
     import com.google.api.gax.rpc.NoHeaderProvider;
    @@ -41,12 +40,15 @@
     import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings;
     import com.google.common.base.Optional;
     import com.google.common.base.Preconditions;
    +import com.google.common.util.concurrent.ThreadFactoryBuilder;
     import com.google.pubsub.v1.ProjectSubscriptionName;
     import java.io.IOException;
     import java.util.ArrayList;
     import java.util.List;
     import java.util.concurrent.Executors;
     import java.util.concurrent.ScheduledExecutorService;
    +import java.util.concurrent.ThreadFactory;
    +import java.util.concurrent.atomic.AtomicInteger;
     import java.util.logging.Level;
     import java.util.logging.Logger;
     import javax.annotation.Nullable;
    @@ -138,13 +140,8 @@ private Subscriber(Builder builder) {
         executorProvider = builder.executorProvider;
     
         ExecutorProvider systemExecutorProvider = builder.systemExecutorProvider;
    -    if (systemExecutorProvider == null) {
    -      systemExecutorProvider =
    -          FixedExecutorProvider.create(
    -              Executors.newScheduledThreadPool(Math.max(6, 2 * numPullers)));
    -    }
    -
         alarmsExecutor = systemExecutorProvider.getExecutor();
    +
         if (systemExecutorProvider.shouldAutoClose()) {
           closeables.add(
               new AutoCloseable() {
    @@ -405,6 +402,7 @@ public static final class Builder {
             InstantiatingExecutorProvider.newBuilder()
                 .setExecutorThreadCount(THREADS_PER_CHANNEL)
                 .build();
    +    private static final AtomicInteger SYSTEM_EXECUTOR_COUNTER = new AtomicInteger();
     
         private String subscriptionName;
         private MessageReceiver receiver;
    @@ -543,6 +541,28 @@ Builder setClock(ApiClock clock) {
         }
     
         public Subscriber build() {
    +      if (systemExecutorProvider == null) {
    +        ThreadFactory threadFactory =
    +            new ThreadFactoryBuilder()
    +                .setDaemon(true)
    +                .setNameFormat("Subscriber-SE-" + SYSTEM_EXECUTOR_COUNTER.incrementAndGet() + "-%d")
    +                .build();
    +        int threadCount = Math.max(6, 2 * parallelPullCount);
    +        final ScheduledExecutorService executor =
    +            Executors.newScheduledThreadPool(threadCount, threadFactory);
    +        systemExecutorProvider =
    +            new ExecutorProvider() {
    +              @Override
    +              public boolean shouldAutoClose() {
    +                return true;
    +              }
    +
    +              @Override
    +              public ScheduledExecutorService getExecutor() {
    +                return executor;
    +              }
    +            };
    +      }
           return new Subscriber(this);
         }
       }
    
    From d875a59282010bb8fcb05d6015ea659ee43984fd Mon Sep 17 00:00:00 2001
    From: Yoshi Automation Bot 
    Date: Wed, 5 Jun 2019 11:53:32 -0700
    Subject: [PATCH 0186/2363] Regenerate pubsub client (#5417)
    
    ---
     .../cloud/pubsub/v1/stub/PublisherStubSettings.java    |  2 +-
     java-pubsub/google-cloud-pubsub/synth.metadata         | 10 +++++-----
     2 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    index e841967b5a73..96281d1bd941 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    @@ -519,7 +519,7 @@ public static class Builder extends StubSettings.Builder
    Date: Thu, 6 Jun 2019 14:00:07 -0700
    Subject: [PATCH 0187/2363] Release google-cloud-java v0.95.0 (#5438)
    
    * Release v0.95.0
    
    * Add missing files
    
    * Fix region replace tag for securitycenter in bom
    
    * Notification tests need to run from contrib folder now
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index 3b2a3fd5dddd..e6a7f102266e 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.76.0
    +  1.77.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.76.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.77.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.76.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.77.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 73aa876b4fb9..d0831f121932 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.76.1-SNAPSHOT
    +  1.77.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.94.1-alpha-SNAPSHOT
    +    0.95.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 3590c6c0db87..853947739844 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.58.1-SNAPSHOT
    +  1.59.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.59.1-SNAPSHOT
    +    0.60.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index ac63a2484cfa..b8d360af2f3a 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.58.1-SNAPSHOT
    +  1.59.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.59.1-SNAPSHOT
    +    0.60.0
       
       
         
    
    From a1c7debbb9fcfb3bea1b4dc17fabb7aa0eff5b23 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Thu, 6 Jun 2019 15:03:53 -0700
    Subject: [PATCH 0188/2363] Bump snapshot (#5441)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index d0831f121932..20d84fbc5917 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.77.0
    +  1.77.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.95.0-alpha
    +    0.95.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 853947739844..b91082970840 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.59.0
    +  1.59.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.60.0
    +    0.60.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index b8d360af2f3a..e886749fe9e1 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.59.0
    +  1.59.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.60.0
    +    0.60.1-SNAPSHOT
       
       
         
    
    From 650e75d8c5166674f9561b08f53c8e52b469de94 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Thu, 13 Jun 2019 14:06:30 -0700
    Subject: [PATCH 0189/2363] Release v0.96.0 (#5474)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index e6a7f102266e..493f0977fa43 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.77.0
    +  1.78.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.77.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.78.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.77.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.78.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 20d84fbc5917..aef8a45fe3df 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.77.1-SNAPSHOT
    +  1.78.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.95.1-alpha-SNAPSHOT
    +    0.96.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index b91082970840..de9c38635cba 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.59.1-SNAPSHOT
    +  1.60.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.60.1-SNAPSHOT
    +    0.61.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index e886749fe9e1..5efc7ea89f77 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.59.1-SNAPSHOT
    +  1.60.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.60.1-SNAPSHOT
    +    0.61.0
       
       
         
    
    From d7e67a7662453a3cdf77a4938b1057e6ac62a563 Mon Sep 17 00:00:00 2001
    From: Solomon Duskis 
    Date: Fri, 14 Jun 2019 10:37:03 -0400
    Subject: [PATCH 0190/2363] Pub/Sub: Shutting down Subscriber executor (#5468)
    
    `MessageDispatcher` has a scheduled future which needed to be shut down so that the `Subscriber` can shutdown properly.  Added a test to make sure that this doesn't happen again.
    ---
     .../cloud/pubsub/v1/MessageDispatcher.java    | 21 +++++++----
     .../cloud/pubsub/v1/SubscriberTest.java       | 36 +++++++++++++++++++
     2 files changed, 51 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    index 0c56ed7dd165..4b6d02d90867 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    @@ -86,6 +86,7 @@ class MessageDispatcher {
       private final AtomicBoolean extendDeadline = new AtomicBoolean(true);
       private final Lock jobLock;
       private ScheduledFuture backgroundJob;
    +  private ScheduledFuture setExtendedDeadlineFuture;
     
       // To keep track of number of seconds the receiver takes to process messages.
       private final Distribution ackLatencyDistribution;
    @@ -239,11 +240,15 @@ public void run() {
                           int newDeadlineSec = computeDeadlineSeconds();
                           messageDeadlineSeconds.set(newDeadlineSec);
                           extendDeadlines();
    -                      // Don't bother cancelling this when we stop. It'd just set an atomic boolean.
    -                      systemExecutor.schedule(
    -                          setExtendDeadline,
    -                          newDeadlineSec - ackExpirationPadding.getSeconds(),
    -                          TimeUnit.SECONDS);
    +                      if (setExtendedDeadlineFuture != null && !backgroundJob.isDone()) {
    +                        setExtendedDeadlineFuture.cancel(true);
    +                      }
    +
    +                      setExtendedDeadlineFuture =
    +                          systemExecutor.schedule(
    +                              setExtendDeadline,
    +                              newDeadlineSec - ackExpirationPadding.getSeconds(),
    +                              TimeUnit.SECONDS);
                         }
                         processOutstandingAckOperations();
                       } catch (Throwable t) {
    @@ -266,8 +271,12 @@ void stop() {
         try {
           if (backgroundJob != null) {
             backgroundJob.cancel(false);
    -        backgroundJob = null;
           }
    +      if (setExtendedDeadlineFuture != null) {
    +        setExtendedDeadlineFuture.cancel(true);
    +      }
    +      backgroundJob = null;
    +      setExtendedDeadlineFuture = null;
         } finally {
           jobLock.unlock();
         }
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java
    index b8a98e97a9c7..eaf653427bb7 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java
    @@ -19,6 +19,7 @@
     import static org.junit.Assert.assertEquals;
     import static org.junit.Assert.assertTrue;
     
    +import com.google.api.gax.core.ExecutorProvider;
     import com.google.api.gax.core.FixedExecutorProvider;
     import com.google.api.gax.core.InstantiatingExecutorProvider;
     import com.google.api.gax.core.NoCredentialsProvider;
    @@ -36,6 +37,9 @@
     import io.grpc.StatusException;
     import io.grpc.inprocess.InProcessChannelBuilder;
     import io.grpc.inprocess.InProcessServerBuilder;
    +import java.util.concurrent.Executors;
    +import java.util.concurrent.ScheduledExecutorService;
    +import java.util.concurrent.TimeUnit;
     import org.junit.After;
     import org.junit.Before;
     import org.junit.Rule;
    @@ -112,6 +116,38 @@ public void testFailedChannel_recoverableError_channelReopened() throws Exceptio
         subscriber.stopAsync().awaitTerminated();
       }
     
    +  @Test
    +  public void testFailedChannel_testTerminated() throws Exception {
    +    final ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(5);
    +    ExecutorProvider provider =
    +        new ExecutorProvider() {
    +          @Override
    +          public boolean shouldAutoClose() {
    +            return true;
    +          }
    +
    +          @Override
    +          public ScheduledExecutorService getExecutor() {
    +            return scheduledExecutorService;
    +          }
    +        };
    +
    +    try {
    +      Subscriber subscriber =
    +          startSubscriber(
    +              getTestSubscriberBuilder(testReceiver).setSystemExecutorProvider(provider));
    +
    +      // wait long enough for the MessageDispatcher to set up, which at one point
    +      // caused shutdown problems.
    +      Thread.sleep(100);
    +      subscriber.stopAsync().awaitTerminated();
    +
    +      assertTrue(scheduledExecutorService.awaitTermination(10, TimeUnit.SECONDS));
    +    } finally {
    +      scheduledExecutorService.shutdownNow();
    +    }
    +  }
    +
       @Test(expected = IllegalStateException.class)
       public void testFailedChannel_fatalError_subscriberFails() throws Exception {
         Subscriber subscriber =
    
    From 18a19b328f95796b0138ec5d6ca232ea877cf37c Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Fri, 14 Jun 2019 12:08:55 -0700
    Subject: [PATCH 0191/2363] Bump next snapshot (#5496)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index aef8a45fe3df..059445b9e583 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.78.0
    +  1.78.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.96.0-alpha
    +    0.96.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index de9c38635cba..8f2e73756627 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.60.0
    +  1.60.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.61.0
    +    0.61.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 5efc7ea89f77..3645f5453263 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.60.0
    +  1.60.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.61.0
    +    0.61.1-SNAPSHOT
       
       
         
    
    From 6bb4f562510d3c34c9a1768bc57467ef81e04d67 Mon Sep 17 00:00:00 2001
    From: kolea2 <45548808+kolea2@users.noreply.github.com>
    Date: Thu, 20 Jun 2019 17:41:03 -0400
    Subject: [PATCH 0192/2363] Release v0.97.0 (#5528)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index 493f0977fa43..0eeea7a07df5 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.78.0
    +  1.79.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.78.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.79.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.78.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.79.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 059445b9e583..6858453f50f1 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.78.1-SNAPSHOT
    +  1.79.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.96.1-alpha-SNAPSHOT
    +    0.97.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 8f2e73756627..59fc9c96f508 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.60.1-SNAPSHOT
    +  1.61.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.61.1-SNAPSHOT
    +    0.62.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 3645f5453263..e544d3e1458b 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.60.1-SNAPSHOT
    +  1.61.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.61.1-SNAPSHOT
    +    0.62.0
       
       
         
    
    From 1f5cb7c8bd0c30b8ed3b8d72a3f818c513e905f7 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Fri, 21 Jun 2019 09:08:35 -0700
    Subject: [PATCH 0193/2363] Bump next snapshot (#5530)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 6858453f50f1..72e1842e0b8a 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.79.0
    +  1.79.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.97.0-alpha
    +    0.97.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 59fc9c96f508..4d57414bd0f8 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.61.0
    +  1.61.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.62.0
    +    0.62.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index e544d3e1458b..e1605e99bb78 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.61.0
    +  1.61.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.62.0
    +    0.62.1-SNAPSHOT
       
       
         
    
    From c4d7dea7dee74cb24dcadba08e3da336d226de5d Mon Sep 17 00:00:00 2001
    From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com>
    Date: Wed, 26 Jun 2019 15:13:35 -0700
    Subject: [PATCH 0194/2363] Release v0.98.0 (#5572)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index 0eeea7a07df5..c01fd71fee8c 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.79.0
    +  1.80.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.79.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.80.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.79.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.80.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 72e1842e0b8a..039e09ca32ca 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.79.1-SNAPSHOT
    +  1.80.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.97.1-alpha-SNAPSHOT
    +    0.98.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 4d57414bd0f8..69b6944891ea 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.61.1-SNAPSHOT
    +  1.62.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.62.1-SNAPSHOT
    +    0.63.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index e1605e99bb78..bdc5785e4d18 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.61.1-SNAPSHOT
    +  1.62.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.62.1-SNAPSHOT
    +    0.63.0
       
       
         
    
    From 04653df61b2f45e9b962b73b701cf426871c2ccd Mon Sep 17 00:00:00 2001
    From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com>
    Date: Thu, 27 Jun 2019 12:10:33 -0700
    Subject: [PATCH 0195/2363] Bump next snapshot (#5579)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 039e09ca32ca..ac4c98027009 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.80.0
    +  1.80.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.98.0-alpha
    +    0.98.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 69b6944891ea..e53fe713db2c 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.62.0
    +  1.62.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.63.0
    +    0.63.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index bdc5785e4d18..f6b9f0177b99 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.62.0
    +  1.62.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.63.0
    +    0.63.1-SNAPSHOT
       
       
         
    
    From bf2e9c4a0a8f96aaae954740e68b39df3922ce6e Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Wed, 3 Jul 2019 09:12:34 -0700
    Subject: [PATCH 0196/2363] Release v0.99.0 (#5657)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index c01fd71fee8c..14f604a0856e 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.80.0
    +  1.81.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.80.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.81.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.80.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.81.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index ac4c98027009..31020e9caddd 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.80.1-SNAPSHOT
    +  1.81.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.98.1-alpha-SNAPSHOT
    +    0.99.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index e53fe713db2c..5b3b05b791a3 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.62.1-SNAPSHOT
    +  1.63.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.63.1-SNAPSHOT
    +    0.64.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index f6b9f0177b99..84eca144c7fa 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.62.1-SNAPSHOT
    +  1.63.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.63.1-SNAPSHOT
    +    0.64.0
       
       
         
    
    From aa9ae1183d88df4e6b7f9ac93b728f3b708be719 Mon Sep 17 00:00:00 2001
    From: athakor <49403056+athakor@users.noreply.github.com>
    Date: Wed, 3 Jul 2019 21:49:34 +0530
    Subject: [PATCH 0197/2363] Pubsub : Cleanup dependency (#5667)
    
    * cleanup unused dependency of contrib-google-cloud-pubsub
    
    * remove unused dependency of pubsub
    
    * add the newline at the end of the file
    ---
     java-pubsub/google-cloud-pubsub/pom.xml | 16 ----------------
     1 file changed, 16 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 31020e9caddd..3bc41a164d7d 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -18,10 +18,6 @@
         google-cloud-pubsub
       
       
    -    
    -      ${project.groupId}
    -      google-cloud-core
    -    
         
           ${project.groupId}
           google-cloud-core-grpc
    @@ -34,18 +30,6 @@
           com.google.api.grpc
           grpc-google-cloud-pubsub-v1
         
    -    
    -      io.grpc
    -      grpc-netty-shaded
    -    
    -    
    -      io.grpc
    -      grpc-stub
    -    
    -    
    -      io.grpc
    -      grpc-auth
    -    
         
           com.google.auto.value
           auto-value
    
    From 1201fe406d0bb5234d4031b43aed9c7533406100 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Mon, 8 Jul 2019 11:16:23 -0700
    Subject: [PATCH 0198/2363] Bump next snapshot (#5702)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 3bc41a164d7d..39de07949ece 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.81.0
    +  1.81.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.99.0-alpha
    +    0.99.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 5b3b05b791a3..2d7e92589fdf 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.63.0
    +  1.63.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.64.0
    +    0.64.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 84eca144c7fa..313b7e7bb235 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.63.0
    +  1.63.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.64.0
    +    0.64.1-SNAPSHOT
       
       
         
    
    From 511ee71e7aeecc535158fd42f89d2fb833aa9d08 Mon Sep 17 00:00:00 2001
    From: Kamal Aboul-Hosn 
    Date: Tue, 9 Jul 2019 15:14:16 -0400
    Subject: [PATCH 0199/2363] Pubsub ordering keys (#5624)
    
    * Merge from master. (#4468)
    
    * Bump next snapshot (#4300)
    
    * Cloud Bigtable: instanceAdmin sample (#4299)
    
    * instanceAdmin sample and tests
    
    * comments added
    
    * instanceAdminExample changes
    
    * renamed variables
    
    * changes
    
    * Regenerate securitycenter client (#4311)
    
    * 3540: Used transformer for shaded plugin (#4305)
    
    * Added Query#fromProto to convert protobuf ReadRowsRequest (#4291)
    
    * Adding Query.fromProto
    
    * Adding Query.fromProto
    
    * adding changes as per feedback
    
    * updated javadoc as per feedback
    
    * reformatted Query & QueryTest.java
    
    * Bigquery: corrected equality check on subclasses of StringEnumValue (#4283)
    
    * Bigquery: corrected equality check on subclasses of StringEnumValue
    
    * update format for FieldTest.java
    
    * Fix #4269 update metata url to FQDN (#4278)
    
    * 4152: Added checking PAGE_TOKEN from options (#4303)
    
    * 3918: Added checking of attributes size for 0. Added unit test (#4304)
    
    * Bigtable: Merge bigtable-admin into the bigtable artifact (#4307)
    
    * Bigtable: merge bigtable-admin into the bigtable artifact
    
    * split exclusion change for future PR
    
    * fix admin pathes
    
    * fix deprecation warning
    
    * fix synth script
    
    * fix generated file
    
    * temporarily re-add kokoro scripts (and point them to the merged artifact) until the jobs have been removed
    
    * Remove dep from examples
    
    * fix admin integration tests
    
    * revert stray fix (will be added to a separate PR)
    
    * fix int tests
    
    * don't double format the code
    
    * fix up docs
    
    * Regenerate PubSub: documentation updates (#4293)
    
    * Regenerate monitoring client (#4316)
    
    * Regenerate bigtable client (#4318)
    
    * 3822: Fixed setDisableGZipContent call (#4314)
    
    * 3822: Fixed setDisableGZipContent call
    
    * 3822: Changes after review
    
    * Regenerate speech client: enable multi-channel features (#4317)
    
    * Release v0.77.0 (#4324)
    
    * Created enum Region.java to retrieve Regions without doing request. (#4309)
    
    * Bump next snapshot (#4325)
    
    * Bigtable: fix handling of unset rpc timeouts (#4323)
    
    When the rpc timeout is zero, then it should be treated as disabled not actual 0
    
    * Bigtable: Expose single row read settings (#4321)
    
    * exposing ReadRowSettings thru BigtableDataSettings
    
    * fixed typo error
    
    * Regenerate compute client (#4327)
    
    * Regenerate speech client (#4328)
    
    * Update README version to use bom version (#4322)
    
    * BigQuery: Fix NPE for null table schema fields (#4338)
    
    * Add failing test for empty table schema
    
    * Fix NPE if table schema returns null for fields
    
    * Bump gax, grpc & opencensus version (#4336)
    
    * Cloud Bigtable: HelloWorld sample updates (#4339)
    
    * comments added in HelloWorld and ITHelloWorld
    
    * removed typsafe name
    
    * separate properties for bigtable.project and bigtable.instance
    
    * separate properties for bigtable.project and bigtable.instance (#4346)
    
    * Pub/Sub: default values in batch settings comments (#4350)
    
    * Pub/Sub: default values in batch settings comments
    
    Ref: https://github.com/googleapis/gax-java/blob/master/gax/src/main/java/com/google/api/gax/batching/BatchingSettings.java
    
    * Verbose comment
    
    * Update maven-surefire-plugin to 3.0.0-M3 to fix Java 8 classloader (#4344)
    
    * Update maven-surefire-plugin to 3.0.0-M3 to fix Java 8 classloader
    
    * Update failsafe plugin to 3.0.0-M3 too
    
    * Specify maven-surefire-plugin version in bigtable-emulator
    
    * Bigtable: Fixing a typo for KeyOffSet#geyKey to getKey (#4342)
    
    * Regenerate spanner client (#4332)
    
    * Spanner: remove junit from compile dependencies (#4334)
    
    * Firestore: change timestampsInSnapshots default to true. (#4353)
    
    BREAKING CHANGE: The `areTimestampsInSnapshotsEnabled()` setting is now enabled
    by default so timestamp fields read from a `DocumentSnapshot` will be returned
    as `Timestamp` objects instead of `Date`. Any code expecting to receive a
    `Date` object must be updated.
    
    * Regenerate clients with updated copyright year (#4382)
    
    * Regenerate asset client
    
    * Regenerate automl client
    
    * Regenerate bigquerydatatransfer client
    
    * Regenerate bigquerystorage client
    
    * Regenerate bigtable client
    
    * Regenerate container client
    
    * Regenerate containeranalysis client
    
    * Regenerate dataproc client
    
    * Regenerate dialogflow client
    
    * Regenerate dlp client
    
    * Regenerate errorreporting client
    
    * Regenerate iamcredentials client
    
    * Regenerate iot client
    
    * Regenerate kms client
    
    * Regenerate language client
    
    * Regenerate logging client
    
    * Regenerate monitoring client
    
    * Regenerate os-login client
    
    * Regenerate pubsub client
    
    * Regenerate redis client
    
    * Regenerate securitycenter client
    
    * Regenerate speech client
    
    * Regenerate tasks client
    
    * Regenerate trace client
    
    * Regenerate video-intelligence client
    
    * Regenerate websecurityscanner client
    
    * Release google-cloud-java v0.78.0 (#4386)
    
    * Regenerate compute client (#4359)
    
    * Cloud Bigtable: tableAdmin sample (#4313)
    
    * tableAdmin sample and tests
    
    * comments added
    
    * files renamed and other edits
    
    * some changes in TableAdminExample and tests
    
    * fixed timestamp to base 16
    
    * separate properties for bigtable.project and bigtable.instance
    
    * Regenerate scheduler client (#4294)
    
    * Regenerate spanner client (#4388)
    
    * Bump next snapshot (#4391)
    
    * Regenerate asset client (#4395)
    
    * Regenerate scheduler client (#4396)
    
    * Firestore: Include a trailing /documents on root resource paths (#4352)
    
    This is required for v1 and accepted in v1beta1.
    
    Port of https://github.com/googleapis/nodejs-firestore/pull/516/commits/52c7381bc4f964c0ca0925f19c5192bf4a3e63c6
    
    * Release v0.79.0 (#4402)
    
    * Removing some unused dependencies (#4385)
    
    * Removing some unused dependencies
    Also, reducing scope of auto-value to provided.
    
    * Restoring Firestore auto-value
    
    * Removing more instances of easymock.
    
    * Removing non-deprecated uses of joda time. (#4351)
    
    * Removing non-deprecated uses of joda time.
    This works towards #3482
    
    * Update pom.xml
    
    * Ran `mvn com.coveo:fmt-maven-plugin:format`
    
    * Fixing a bad merge
    
    * Bump next snapshot (#4405)
    
    * fix shading (#4406)
    
    * Fixing some deprecation warnings (#4390)
    
    * fixing some deprecation warnings
    
    * updated comment
    
    * BigQuery : Fix Location configurable at BigQueryOptions (#4329)
    
    * Fix Location configurable from BigQueryOptions
    
    * modified code
    
    * modified code and add test case
    
    * removed unused location
    
    * Generate Firestore API v1 (#4410)
    
    * Bigtable: make row & cell ordering more consistent. (#4421)
    
    * Bigtable: make row & cell ordering more consistent.
    
    * RowCells should always be ordered in lexicographically by family, then qualifier and finally by reverse chronological order
    * Although rows will always be ordered lexicographically by row key, they should not implement Comparable to avoid confusion when compareTo() == 0 and equals() is false. Instead that ordering was moved to a separate comparator.
    
    * Add helpers to filter cells by family & qualifier
    
    * tweaks
    
    * code style
    
    * code style
    
    * Fix code formatting (#4437)
    
    * Regenerate compute client (#4399)
    
    * Regenerate compute client (#4444)
    
    * Firestore: Migrate client to use v1 gapic client / protos. (#4419)
    
    * Regenerate asset client (#4426)
    
    * Regenerate bigtable client (#4427)
    
    * Regenerate dataproc client (#4428)
    
    * Regenerate speech client (#4422)
    
    * Regenerate dialogflow client (#4429)
    
    * Regenerate redis client (#4431)
    
    * Regenerate securitycenter client (#4432)
    
    * Regenerate tasks client (#4411)
    
    * Fix usages of any(.class) matchers (#4453)
    
    In Mockito 2, if a method expects a primitive type, but an any(.class) matcher is used in its place, it will throw an error. To prepare for this upcoming breakage, change
    all existing any(.class) matchers to use the correct any() matcher.
    
    * Regenerate video-intelligence client (#4434)
    
    * Regenerate automl client (#4418)
    
    * Regenerate automl client (#4455)
    
    * Regenerate speech client (#4456)
    
    * add comments (#4441)
    
    * Update some default retry setting values (#4425)
    
    Ref: https://github.com/googleapis/google-cloud-java/blob/ed7bc857a05b34eed6be182d4798a62bf09cd394/google-cloud-clients/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java#L497
    
    * Implement BucketPolicyOnly (#4404)
    
    * implement BucketPolicyOnly
    
    * [Storage] Bucket Policy Only samples (#4408)
    
    * Humble beginnings for BPO samples with tests
    
    * Update samples per client changes
    
    * Fix format issue
    
    * Lint fix
    
    * Bigtable: make request context serializable (#4459)
    
    * Bigtable: expose helper to convert proto rows into model rows (#4458)
    
    This is needed for hbase adapter transition
    
    * Regenerate texttospeech client (#4333)
    
    * Regenerate compute client (#4462)
    
    * Skip integration tests if no changes (#4392)
    
    * Add environment variable for allowing skipping ITs
    
    * Skip integration tests if there are no changes in that directory
    
    * Also check google-cloud-core client and the grpc-api generated models
    
    * update TESTING.md (#4409)
    
    * Regenerate spanner client (#4433)
    
    * Regenerate texttospeech client (#4463)
    
    * 3534: Made HttpTransportOptions constructor public. (#4439)
    
    * use gax 1.38.0 (#4460)
    
    * Regenerate firestore client (#4348)
    
    * Empty table results can have a schema (#4185)
    
    * Update EmptyTableResult.java
    
    * Update Job.java
    
    * add test case
    
    * 4273: Added a new create method to pass offset and length of sub array. (#4407)
    
    * 4273: Added a new create method to pass offset and lenght of sub array.
    
    * 4273: Fixed codeformat error.
    
    * 4273: Rephrased a comment.
    
    * 4273: Added a new integration test using the new createBlobWithSubArrayFromByteArray code snippet.
    
    * Add firestore grpc and proto versions to versions.txt (#4464)
    
    * Release v0.80.0 (#4465)
    
    * Bump next snapshot (#4467)
    
    * Adding Cloud Bigtable Mutation fromProto (#4461)
    
    * Adding Cloud Bigtable Mutation fromProto
    
    * Fixing formatting
    
    * Addressing comments
    `fromProto` becomes `fromProtoUnsafe`
    
    * Fixing lint issues.
    
    * adding a warning to `fromProtoUnsafe`
    
    * Regenerate websecurityscanner client (#4435)
    
    * Add SequentialExecutorService that assists Pub/Sub to publish messages sequentially (#4315)
    
    * Add SequentialExecutorService
    
    * Add headers, make methods package private, and other review changes.
    
    * Fix formatting of SequentialExecutorService classes.
    
    * Add ordered publishing support to Cloud Pub/Sub (#4474)
    
    * Add ordering key fields to proto. We are locally committing the proto with ordering keys for now. Once we are prepared to release this feature, we can use the default, released proto.
    
    * Add support for ordered publishing
    
    * Add comments about ordering key properties.
    
    * Change retry codes and add checks for a null ordering key.
    
    * Pubsub ordering keys subscriber (#4515)
    
    * Add ordering key fields to proto. We are locally committing the proto with ordering keys for now. Once we are prepared to release this feature, we can use the default, released proto.
    
    * Add support for ordered publishing
    
    * Add comments about ordering key properties.
    
    * Change retry codes and add checks for a null ordering key.
    
    * Add support for ordered delivery to subscribers
    
    * Change the order of publishing batches when a large message is requested; Add unit tests (#4578)
    
    * Merge from master; Resolve conflicts (#4943)
    
    * Scale the system executor provider with the number of pull channels opened. (#4592)
    
    Make the SubscriberStubSettings refer to the user provided executor provider instead of a fixed instantiation of it.  If the user provides an InstantiatingExecutorProvider instead of a FixedExecutorProvider, this will actually instantiate more than one as the user would expect.  It will still only instantiate one for all connections to share, and will do so until the next PR which will make them have different stub instantiations.
    
    * Using the google-cloud-http-bom (#4594)
    
    * Using the latest version of truth (#4597)
    
    * Using a much newer version of truth
    
    * Upgrading annotations in google-api-grpc
    
    * Regenerate websecurityscanner client (#4614)
    
    * Regenerate vision client (#4613)
    
    * Regenerate video-intelligence client (#4612)
    
    * Regenerate tasks client (#4611)
    
    * Regenerate securitycenter client (#4610)
    
    * BigQuery: Fix useAvroLogicalTypes option in LoadJobConfiguration And WriteChannelConfiguration. (#4615)
    
    * Fix useAvroLogicalTypes in LoadJobConfiguration
    
    * Fix comment and added useAvroLogicalTypes in WriteChannelConfiguration
    
    * Fix comment
    
    * Fix code format
    
    * add propagateTimeout in SpannerExceptionFactory (#4598)
    
    - Add a helper method propagateTimeout in SpannerExceptionFactory to easily transform a TimeoutException to a SpannerException.
    - Propagate ApiExceptions a bit more nicely.
    
    * Regenerate scheduler client (#4609)
    
    * Regenerate pubsub client (#4608)
    
    * Regenerate os-login client (#4607)
    
    * Regenerate dlp client (#4603)
    
    * Regenerate iamcredentials client (#4605)
    
    * Regenerate bigquerystorage client (#4601)
    
    * Regenerate dataproc client (#4602)
    
    * Regenerate bigquerydatatransfer client (#4600)
    
    * Regenerate language client (#4606)
    
    * Regenerate firestore client (#4604)
    
    * Set the isDirectory flag appropriately (#4616)
    
    Set the isDirectory flag appropriately when using the currentDirectory() option
    
    * Extract the single message processing functionality from processOutstandingBatches. (#4618)
    
    * Upgrading grpc in google-api-grpc (#4593)
    
    * Prepare for KMS GA release - upgrade versions to 1.0.0. (#4581)
    
    * Adding vision v1p4beta1 (#4584)
    
    * Adding vision v1p4beta1
    
    * Updating more pom.xmls
    
    * Fixing formatting issues
    
    * Clean up MessageDispatcher by changing processOutstandingBatches to explicitly loop instead of while(true) with breaks.  There is now only 1 explicit return and 1 runtime error. (#4619)
    
    * Release google-cloud-java v0.82.0 (#4621)
    
    * Release v0.82.0
    
    * Change KMS versions to 1.0.0.
    
    * Remove global synchronization from MessageDispatcher. (#4620)
    
    * Remove global synchronization from MessageDispatcher.
    
    Now that this uses a LinkedBlockingDeque for batches, this is no longer necessary.
    
    * Run code format.
    
    * Bump next snapshot (#4623)
    
    * Regenerate vision client (#4625)
    
    * Regenerate dataproc client (#4634)
    
    * Regenerate dialogflow client (#4635)
    
    * Regenerate firestore client (#4638)
    
    * Regenerate iot client (#4639)
    
    * Regenerate monitoring client (#4642)
    
    * Regenerate bigtable client (#4631)
    
    * Regenerate errorreporting client (#4637)
    
    * Regenerate pubsub client (#4643)
    
    * Regenerate automl client (#4629)
    
    * Regenerate redis client (#4644)
    
    * Regenerate bigquerydatatransfer client (#4630)
    
    * Regenerate scheduler client (#4645)
    
    * Regenerate kms client (#4640)
    
    * Regenerate vision client (#4650)
    
    * Regenerate websecurityscanner client (#4651)
    
    * Regenerate containeranalysis client (#4633)
    
    * Regenerate dlp client (#4636)
    
    * Regenerate trace client (#4649)
    
    * Regenerate spanner client (#4647)
    
    * Regenerate logging client (#4641)
    
    * Regenerate tasks client (#4648)
    
    * Regenerate securitycenter client (#4646)
    
    * Bump gax to 1.42.0 (#4624)
    
    Also regenerate the Compute client to match the newest version of gax.
    
    * Batch dml mainline (#4653)
    
    * Cloud Spanner Batch DML implementation and integration tests. (#45)
    
    * Fix the file header of the newly added classes. (#46)
    
    * Fix RPC interface mismatch after GAPIC migration.
    
    * Address review comment.
    
    * Fix code format with mvn com.coveo:fmt-maven-plugin:format.
    
    * Update year in file headers.
    
    * BigQuery: add long term storage bytes to standard table definition. (#4387)
    
    * BigQuery: Add long term storage bytes for managed tables.
    
    * formatting
    
    * let maven format the things
    
    * plumb this upwards into Table/TableInfo
    
    * return
    
    * assertion mismatch
    
    * Update TableInfoTest.java
    
    * Regenerate compute client (#4662)
    
    * Add Cloud Security Center v1 API. (#4659)
    
    * Add Cloud Security Center v1 API.
    
    * Add securitycenter to google-cloud-bom pom.xml
    
    * Fixing code format
    
    * Adding FieldValue.increment() (#4018)
    
    * DO NOT MERGE: Adding FieldValue.increment()
    
    * Use "increment" Proto naming
    
    * Spanner: Throw exception when SSLHandshakeException occurs instead of infinite retry loop (#4663)
    
    * #3889 throw exception when an SSLHandshakeException occurs
    
    SSLHandshakeExceptions are not retryable, as it is most probably an
    indication that the client does not accept the server certificate.
    
    * #3889 added test for retryability of SSLHandshakeException
    
    * fixed formatting
    
    * Add Cloud Scheduler v1 API. (#4658)
    
    * Add Cloud Scheduler v1 API.
    
    * Fixes to google-cloud-bom pom.xml
    
    * Add proto to scheduler pom.xml
    
    * Fix Timestamp.parseTimestamp. (#4656)
    
    * Fix parseTimestamp docs
    
    * Fix timestamp without timezone offset
    
    * Fix test cases related to timestamp.parseTimestamp
    
    * added test case
    
    * Fix timestampParser and added ZoneOffset in timestampParser
    
    * Release google-cloud-java v0.83.0 (#4665)
    
    * Regenerate securitycenter client (#4667)
    
    * Bump next snapshot (#4666)
    
    * Change each StreamingSubscriberConnection to have its own executor by default. (#4622)
    
    * Change each StreamingSubscriberConnection to have its own executor by default.
    
    This increases throughput by reducing contention on the executor queue mutex and makes the Subscriber implementation more accurately reflect the users intent when an InstantiatingExecutorProvider is passed.
    
    * Add a comment for executorProvider and alarmsExecutor.
    
    * Bigtable: Remove reference to deprecated typesafe name (#4671)
    
    * Add Cloud Video Intelligence v1p3beta1 API. (#4669)
    
    * Add Cloud Video Intelligence v1p3beta1 API.
    
    * Fix code formatting.
    
    * Regenerate language client (#4676)
    
    * Regenerate securitycenter client (#4677)
    
    * Regenerate firestore client (#4686)
    
    * #4685 Spanner now extends AutoCloseable (#4687)
    
    * Update speech readme to point to v1 javadoc. (#4693)
    
    * Fix pendingWrite race condition (#4696)
    
    pendingWrites.add() was not guaranteed to be called before pendingWrites.remove()
    
    * Optimize pendingWrites (#4697)
    
    Reduce contention on pendingWrites by using a ConcurrentHashMap instead.
    
    * Better explain how to use explicit credentials (#4694)
    
    * Better explain how to use explicit credentials
    
    This pull request updates the documentation and adds an example.
    
    * Run auto-formatter
    
    mvn com.coveo:fmt-maven-plugin:format
    
    * Updating Copyright year on UseExplicitCredentials
    
    * Add Cloud Talent Solution API. (#4699)
    
    * Add Talent API
    
    * Add Talent API
    
    * Add Talent API
    
    * Add talent API
    
    * reformat
    
    * Update pom.xml
    
    * Update pom.xml
    
    * Add MDC support in Logback appender (#4477)
    
    * Firestore: Update CustomClassMapper (#4675)
    
    * Firestore: Update CustomClassMapper
    
    * Adding Unit tests
    
    * Lint fix
    
    * Regenerate securitycenter client (#4704)
    
    * Regenerate talent client (#4705)
    
    * BigQuery: Added missing partitioned fields to listTables. (#4701)
    
    * Add missing partitioned fields to listTables
    
    * Fix table delete in finally block
    
    * Fix test failing
    
    * OpenCensus Support for Cloud Pub/Sub (#4240)
    
    * Adds OpenCensus context propagation to Publisher and Subscriber.
    
    * Updates OpenCensus attribute keys so that they will be propagated by CPS.
    
    * Addresses reviewer comments by fixing build files and using only defined annotations.
    
    * Updates build dependencies and copyright date.
    
    * Fixes typo.
    
    * Removes encoding of OpenCensus tags. Will re-enable once text encoding spec has been finalized (https://github.com/census-instrumentation/opencensus-specs/issues/65).
    
    * Updates encoding of SpanContext to use W3C specified encoding; Also preserves sampling decision from the publisher in the subscriber.
    
    * Adds unit test for OpenCensusUtil.
    
    * Adds unit test for OpenCensusUtil.
    
    * Updates OpenCensus integration to use a generic MessageTransform.
    
    * Removes now-unused private constant.
    
    * Update pom.xml
    
    * Marking setTransform as BetaApi
    
    * Fixes for formatting issues.
    
    * Release v0.84.0 (#4713)
    
    * Bump next snapshot (#4715)
    
    * Fix comment in grpc-google-cloud-firestore-v1 POM (#4717)
    
    Fixing a copy&paste typo
    
    * Regenerate firestore client (#4719)
    
    * Upgrade common protos dependency to 1.15.0. (#4722)
    
    * V1 Admin API for Firestore (#4716)
    
    * Manually regenerate Redis (#4723)
    
    * Manually regenerate Redis
    
    * Fixing a formatting issue
    
    * 1.x is stable (#4724)
    
    @sduskis
    
    * Regenerate bigquerystorage client (#4730)
    
    * Regenerate pubsub client (#4732)
    
    * Added feature to accept Firestore Value. (#4709)
    
    * Fix firestore value
    
    * Added IT test
    
    * try to fix flaky test (#4733)
    
    (cherry picked from commit 8255a9b475c599814d42a6a28eef3d8e11f6b082)
    
    * Regenerate compute client (#4731)
    
    * Replacing GoogleCloudPlatform with googleapis in docs. (#4707)
    
    * Replacing GoogleCloudPlatform with googleapis in docs.
    
    * Fixing formatting issues.
    
    * Regenerate Redis client (#4738)
    
    * redis changes with googleapis changes for STATIC_TYPES
    
    * foo
    
    * revert noop
    
    * fix default value of maxSessions in document of setMaxSessions (#4728)
    
    * Spanner: Added extra documentation to the DatabaseClient.singleUse methods (#4721)
    
    * added extra documentation to the singleUse methods #4212
    
    * changed formatting manually and re-run mvn formatter
    
    * Regenerate Firestore clients (#4741)
    
    * add diff
    
    * linter
    
    * Regenerate iamcredentials client (#4746)
    
    * Regenerate monitoring client (#4747)
    
    * Refresh Monitoring client (#4744)
    
    * regen monitoring with STATIC_TYPES
    
    * regen again but with java_package
    
    * regen again with enable_string_formatting_functions
    
    * regen again
    
    * the OuterClass is generated because the proto file contains the amessage of the same name
    
    * no changes in protos or gapics, just refresh
    
    * refresh but with proto changes only
    
    * Add Snippets for working with Assets in Cloud Security Command Center. (#4690)
    
    * Add Snippets for working with Assets in Cloud Security Command Center.
    
    - I missed instruction for how to add a new key, but I believe
    a new account is needed, so prestaged assets can be queried.
    
    * Address code review comments.
    
    * remove securitycenter-it.cfg
    
    * update comments
    
    * fix string remove firewall reference
    
    * Fix format
    
    * fix format
    
    * Address comments and fix bad docs/alignment with python example
    
    * Fix print description
    
    * Updates per rubrics
    
    * fix warnings
    
    * Add Apache Headers
    
    * remove unused comment
    
    * Manually regenerating the talent v4beta1 API (#4750)
    
    * Manually regenerating the talent v4beta1 API
    ResumeService was removed from the protos, requiring manual deletion of all related classes.
    
    * Fixing formatting.
    
    * Pass through header provider in BQ storage client settings. (#4740)
    
    * Pass through header provider in BQ storage client settings.
    
    This change modifies the enhanced stub for the BigQuery storage
    client to pass through the user-specified header provider to the
    storage settings base class at creationt ime. This addresses an
    issue where user-specified headers were being ignored when creating
    a client object.
    
    * Apply formatting plugin
    
    * Set up the in-proc server only once
    
    * It's 2019 now
    
    * changes for iamcreds with STATIC_TYPES (#4745)
    
    * Regenerate asset client (#4758)
    
    * Regenerate automl client (#4759)
    
    * Regenerate dlp client (#4765)
    
    * Regenerate bigtable client (#4760)
    
    * Regenerate logging client (#4769)
    
    * Regenerate monitoring client (#4770)
    
    * Regenerate pubsub client (#4772)
    
    * Regenerate container client (#4761)
    
    * Regenerate os-login client (#4771)
    
    * Regenerate errorreporting client (#4766)
    
    * Regenerate containeranalysis client (#4762)
    
    * Regenerate talent client (#4777)
    
    * Regenerate securitycenter client (#4775)
    
    * Regenerate redis client (#4773)
    
    * Regenerate scheduler client (#4774)
    
    * Regenerate iamcredentials client (#4768)
    
    * Regenerate dialogflow client (#4764)
    
    * Regenerate firestore client (#4767)
    
    * Regenerate spanner client (#4776)
    
    * Regenerate trace client (#4778)
    
    * Regenerate dataproc client (#4763)
    
    * Regenerate vision client (#4779)
    
    * Regenerate websecurityscanner client (#4780)
    
    * regen (#4755)
    
    * Upgrade google.auth.version to 0.15.0. (#4743)
    
    * Upgrade google.auth.version to 0.14.0.
    
    * Upgrade google.auth.version to 0.14.0.
    
    * Upgrade google.auth.version to 0.15.0.
    
    * allow specifying a custom credentials file for integration tests (#4782)
    
    * Regenerate containeranalysis client (#4792)
    
    * Regenerate dataproc client (#4793)
    
    * Regenerate datastore client (#4794)
    
    * Regenerate asset client (#4786)
    
    * Regenerate iamcredentials client (#4799)
    
    * Regenerate bigquerydatatransfer client (#4788)
    
    * Regenerate language client (#4802)
    
    * Regenerate kms client (#4801)
    
    * Regenerate bigtable client (#4790)
    
    * Regenerate monitoring client (#4804)
    
    * Regenerate bigquerystorage client (#4789)
    
    * Regenerate speech client (#4811)
    
    * Regenerate securitycenter client (#4809)
    
    * Regenerate spanner client (#4810)
    
    * Regenerate redis client (#4807)
    
    * Regenerate container client (#4791)
    
    * Regenerate scheduler client (#4808)
    
    * Regenerate os-login client (#4805)
    
    * Regenerate errorreporting client (#4797)
    
    * Regenerate websecurityscanner client (#4818)
    
    * Regenerate logging client (#4803)
    
    * Regenerate texttospeech client (#4814)
    
    * Regenerate tasks client (#4813)
    
    * Regenerate dialogflow client (#4795)
    
    * Regenerate trace client (#4815)
    
    * Upgrade protobuf version to 3.7.0. (#4819)
    
    * Upgrade protobuf version to 3.7.0.
    
    * Upgrade protobuf version to 3.7.1.
    
    * Upgrade protobuf version to 3.7.0.
    
    * Release google-cloud-java v0.85.0 (#4820)
    
    * Bump snapshot (#4821)
    
    * Regenerate automl client (#4822)
    
    * Regenerate dialogflow client (#4823)
    
    * Regenerate dlp client (#4824)
    
    * Regenerate firestore client (#4825)
    
    * Regenerate iot client (#4826)
    
    * Regenerate pubsub client (#4827)
    
    * Regenerate talent client (#4828)
    
    * Regenerate video-intelligence client (#4829)
    
    * Regenerate vision client (#4830)
    
    * Add Cloud Asset v1 API. (#4834)
    
    * Upgrade gax to 1.43.0. (#4836)
    
    * Upgrade gax to 1.43.0.
    
    * code format
    
    * Regenerate iamcredentials client (#4849)
    
    * Regenerate iot client (#4850)
    
    * Regenerate kms client (#4851)
    
    * Regenerate texttospeech client (#4864)
    
    * Regenerate tasks client (#4863)
    
    * Regenerate talent client (#4862)
    
    * Regenerate bigquerystorage client (#4840)
    
    * Regenerate bigquerydatatransfer client (#4839)
    
    * Regenerate automl client (#4838)
    
    * Regenerate language client (#4852)
    
    * Regenerate monitoring client (#4854)
    
    * Regenerate pubsub client (#4856)
    
    * Regenerate redis client (#4857)
    
    * Regenerate scheduler client (#4858)
    
    * Regenerate securitycenter client (#4859)
    
    * Regenerate spanner client (#4860)
    
    * Regenerate trace client (#4865)
    
    * Regenerate video-intelligence client (#4866)
    
    * Regenerate websecurityscanner client (#4868)
    
    * Regenerate vision client (#4867)
    
    * Regenerate speech client (#4861)
    
    * Regenerate os-login client (#4855)
    
    * Regenerate logging client (#4853)
    
    * Regenerate firestore client (#4848)
    
    * Regenerate containeranalysis client (#4843)
    
    * Regenerate container client (#4842)
    
    * Regenerate bigtable client (#4841)
    
    * Regenerate dataproc client (#4844)
    
    * Regenerate dlp client (#4846)
    
    * Regenerate errorreporting client (#4847)
    
    * google-cloud-logging-logback: Allow user to specify custom LoggingOptions (#4729)
    
    google-cloud-logging-logback: #3215 allow user to specify custom LoggingOptions
    
    * Regenerate asset client (#4837)
    
    * Regenerate dialogflow client (#4845)
    
    * Add translate v3beta1 API. (#4870)
    
    * translate v3beta1
    
    * readme
    
    * Adding datalabeling. (#4872)
    
    * Adding datalabeling.
    
    * Fixing formatting.
    
    * Adding datalabeling readme.
    
    * Fixing Readme.
    
    * Add tasks v2 client (#4879)
    
    * auto close input stream (#4878)
    
    * Add Cloud Web Risk client. (#4881)
    
    * Add Cloud Web Risk client.
    
    * code format fix
    
    * Add note on whitelist / signing up for Beta.
    
    * Delete stray preposition
    
    * Regenerate datalabeling client (#4883)
    
    * Regenerate automl client (#4882)
    
    * Regenerate talent client (#4884)
    
    * fix flaky TransactionManager tests (#4897)
    
    Transactions can always be aborted by Cloud Spanner, and all transaction
    code should therefore be surrounded by with abort safeguarding.
    
    * Change .yaml file name for webrisk client. (#4898)
    
    * Adding the translate beta samples (#4880)
    
    * Adding the translate beta samples
    
    * Fixing lint issues
    
    * Fixing coding format/style
    
    * Fixing coding format/style
    
    * Release v0.86.0 (#4899)
    
    * Bump next snapshot (#4900)
    
    * Regenerate bigquerystorage client (#4902)
    
    * Regenerate language client (#4903)
    
    * Regenerate webrisk client (#4904)
    
    * Storage: Add V4 signing support (#4692)
    
    * Add support for V4 signing
    
    * (storage) WIP: Add V4 signing support
    
    * (storage) Add V4 signing support
    
    * Add V4 samples (#4753)
    
    * storage: fix v4 samples (#4754)
    
    * Add V4 samples
    
    * Match C++ samples
    
    * Add missing import
    
    * Add web risk to list of clients. (#4901)
    
    * Release v0.87.0 (#4907)
    
    * Bump next snapshot (#4908)
    
    * Regenerate tasks client (#4912)
    
    * Regenerate scheduler client (#4911)
    
    * Regenerate redis client (#4910)
    
    * Regenerate compute client (#4909)
    
    * Spanner: Refactor SpannerImpl - Move AbstractResultSet to separate file (#4891)
    
    Refactor SpannerImpl: Move AbstractResultSet to separate file
    
    * Spanner: Refactor SpannerImpl - Move AbstractReadContext to separate file (#4890)
    
    Spanner: Refactor SpannerImpl - Move AbstractReadContext to separate file
    
    * Regenerate language client (#4921)
    
    * Spanner: Refactor SpannerImpl - Move DatabaseAdminClientImpl to separate file (#4892)
    
    * refactor SpannerImpl: move DatabaseAdminClientImpl to separate file
    
    * removed unnecessary imports
    
    * Bigquery : Fix close write channel (#4924)
    
    * close write channel
    
    * Update BigQuerySnippets.java
    
    * Update BigQuerySnippets.java
    
    * Update BigQuerySnippets.java
    
    * Spanner: Refactor SpannerImpl - Move InstanceAdminClient to separate file (#4893)
    
    refactor SpannerImpl: move InstanceAdminClient to separate file
    
    * refactor SpannerImpl: move PartitionedDmlTransaction to separate file (#4894)
    
    * BigQuery: Added listPartitions. (#4923)
    
    * added listPartitions
    
    * added unit test
    
    * modified code
    
    * modified unit test for listPartitions
    
    * added integration test
    
    * Fix table name
    
    * Fix integration test
    
    * Regenerate dialogflow client (#4928)
    
    * Regenerate securitycenter client (#4929)
    
    * Regenerate trace client (#4931)
    
    * google-cloud-core: Optimize Date.parseDate(String) (#4920)
    
    * optimized date parsing
    
    Date parsing using a regular expression is slower than a specific
    implementation for the only format that is supported.
    
    * removed IntParser and added test cases
    
    * check for invalid date/year/month/day
    
    * Spanner: Refactor SpannerImpl - Move TransactionRunnerImpl to separate file (#4896)
    
    refactor SpannerImpl: move TransactionRunnerImpl to separate file
    
    * Regenerate securitycenter client (#4937)
    
    * storage: Un-Ignore testRotateFromCustomerEncryptionToKmsKeyWithCustomerEncryption (#4936)
    
    * Adding support to custom ports on LocalDatastoreHelper (#4933) (#4935)
    
    * Storage : Fix manage resumeable signedURL uploads. (#4874)
    
    * commit for manage resumeable signedURL uploads #2462
    
    * for manage resumeable signedURL uploads #2462
    
    * fix comment
    
    * fix ITStorageTest case written for upload using signURL
    
    * fix format
    
    * fix BlobWriteChannel constructor changes.
    
    * fix signURL validation.
    
    * fix format
    
    * signurl rename to signedURL , firstnonnull check removed,signedURL validation with googleacessid and expires field also.
    
    * signedURL validation with googleacessid and expires field also.
    
    * fix forsignedURL validation with V4 Signing support.
    
    * fix forproviding example of writing content using signedURL through Writer.
    
    * fix forStorageRpc open method argument change.
    
    * fix forStorageRpc open method doc comment changes.
    
    * cloud-storage-contrib-nio: Add support for newFileChannel (#4718)
    
    add support for newFileChannel(...)
    
    * Change MessageDispatcher to be synchronous instead of asynchronous. (#4916)
    
    * Change MessageDispatcher to be synchronous instead of asynchronous.
    
    This removes the failure mode described in #2452 that can occur when MaxOutstandingElementCount is low and there is more than one connection.  In this case, it is possible for an individual MessageDispatcher to have no outstanding in-flight messages, but also be blocked by flow control with a whole new batch outstanding. In this case, it will never make progress on that batch since it will never receive another batch and the queue was made to not be shared in  #4590, so the batch will never be pulled off by another MessageDispatcher.
    
    By changing this to use a blocking flow controller, this will never happen, as each batch will synchronously wait until it is allowed by flow control before being processed.
    
    * Run mvn com.coveo:fmt-maven-plugin:format
    
    * Remove unused code
    
    * Update Publisher.java
    
    * Fixing format
    
    * Refactoring of the Pub/Sub Ordering keys client (#4962)
    
    * [WIP] Refactoring SequentialExecutorService (#4969)
    
    * Refactoring SequentialExecutorService
    
    Step 1:
    - create a `CallbackExecutor` and `AutoExecutor` as subclasses of SequentialExecutor.
    
    * Adding CallbackExecutor.submit() for encapsulation
    
    * Moving resume into `CallbackExecutor`
    
    * create an abstract class for execute(key, deque)
    This removest the last bit of code that directly used the TaskCompleteAction enum.
    
    * Running the formatter.
    
    * Merged with the formatting changes. (#4978)
    
    * Fixng a bad merge.
    
    * Refactoring SequentialExecutorService.java (#4979)
    
    - Marking methods as private
    - renaming variables from `finalTasks` to `tasks` for clarity
    - reducing code duplication by calling `execute`
    
    * Cleaning up generics in SequentialExecutorService (#4982)
    
    * Adding comments to CallbackExecutor.submit (#4981)
    
    * Adding comments to CallbackExecutor.submit
    
    * Fixing the merge
    
    * Exposing AutoExecutor and CallbackExecutor directly (#4983)
    
    * More refactoring to SequentialExecutor (#4984)
    
    - Moving common async code into a new method: `callNextTaskAsync()`
    - Adding a `postTaskExecution()` method which is useful for `AutoExecutor`
    
    * SequentialExecutorService.callNextTaskAsync only uses key (#4992)
    
    1. Removing the `Deque` parameter from `SequentialExecutorService.callNextTaskAsync()` and looking it up the `Deque` in the method
    2. Simplify `AutoExecutor` and `CallbackExecutor` after the refactoring in 1).
    
    * SequentialExecutorService now uses generics for Runnables.
    
    * Using a Queue instead of Deque.
    Queues are FIFO, Deque don't guaratee which end the value is removed from.
    
    * Renaming a variable in Publisher
    
    * More refactoring to SequentialExecutorService.
    
    * Running the formatter
    
    * Reformatting the publisher
    
    * Pub/Sub: publishAll defers sending batches.
    
    * Reverting last change to publishAllOutstanding
    
    * Cleaning up messageBatch entries
    
    * Alarms now wait to publish until previous bundle completes
    
    * Using Preconditions in Publisher.
    
    * The Publisher's callback should happen second
    The `SequentialExecutor`'s future callback needs to happen before the `Publisher`'s callback, in case the `SequentialExecutor` cancels.
    
    * Fixing a flaky test
    The `testLargeMessagesDoNotReorderBatches()` test had a flaky test, depending on how unrelated threads complete.  Removing the check for the behavior of the unrelated thread.
    
    * Adding resume publish. (#5046)
    
    * Adding resume publish.
    
    * Addressing comments
    
    * Fixing formatting issues
    
    * Adding comments
    
    * Fixing formatting
    
    * Ordering keys setter is now package private
    This will allow us to merge this branch into master.
    
    * Cleanup before merge to main line
    - Removing EnumSet from Status codes
    - Adding `@BetaApi` to `resumePublish`, and making it package private.
    
    * Fixing lint
    
    * publish() doesn't use an executor.
    
    * Moving the publish RPC call into the lock
    Also,removing a comment that no longer applies.
    
    * Updating GAX in clients to 1.45.0 for docs.
    
    * Fix publisher throughput when there are no ordering keys. (#5607)
    
    * Fix publisher throughput when there are no ordering keys.
    
    * Remove batch from iterator if we are going to process it.
    
    * Make appropriate things private, remove unnecessary call to publishAllWithoutInflight, and fix unit tests accordingly.
    
    * Fix publisher formatting
    
    * Experimental removal of test to see if it is the one causing timeouts.
    
    * Fix comment
    ---
     .../cloud/pubsub/v1/MessageDispatcher.java    |  11 +-
     .../com/google/cloud/pubsub/v1/Publisher.java | 181 ++++++++++--
     .../pubsub/v1/SequentialExecutorService.java  | 264 +++++++++++++++++
     .../pubsub/v1/FakePublisherServiceImpl.java   |  22 +-
     .../cloud/pubsub/v1/PublisherImplTest.java    | 272 ++++++++++++++++++
     .../v1/SequentialExecutorServiceTest.java     | 247 ++++++++++++++++
     6 files changed, 966 insertions(+), 31 deletions(-)
     create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java
     create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    index 4b6d02d90867..53b979d5e447 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java
    @@ -62,6 +62,7 @@ class MessageDispatcher {
       @InternalApi static final Duration PENDING_ACKS_SEND_DELAY = Duration.ofMillis(100);
     
       private final Executor executor;
    +  private final SequentialExecutorService.AutoExecutor sequentialExecutor;
       private final ScheduledExecutorService systemExecutor;
       private final ApiClock clock;
     
    @@ -206,6 +207,7 @@ void sendAckOperations(
         jobLock = new ReentrantLock();
         messagesWaiter = new MessageWaiter();
         this.clock = clock;
    +    this.sequentialExecutor = new SequentialExecutorService.AutoExecutor(executor);
       }
     
       void start() {
    @@ -358,7 +360,7 @@ public void nack() {
               }
             };
         ApiFutures.addCallback(response, ackHandler, MoreExecutors.directExecutor());
    -    executor.execute(
    +    Runnable deliverMessageTask =
             new Runnable() {
               @Override
               public void run() {
    @@ -379,7 +381,12 @@ public void run() {
                   response.setException(e);
                 }
               }
    -        });
    +        };
    +    if (message.getOrderingKey().isEmpty()) {
    +      executor.execute(deliverMessageTask);
    +    } else {
    +      sequentialExecutor.submit(message.getOrderingKey(), deliverMessageTask);
    +    }
       }
     
       /** Compute the ideal deadline, set subsequent modacks to this deadline, and return it. */
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
    index 31a57fcc9daa..8a5802420854 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
    @@ -49,9 +49,12 @@
     import com.google.pubsub.v1.TopicNames;
     import java.io.IOException;
     import java.util.ArrayList;
    +import java.util.HashMap;
     import java.util.Iterator;
     import java.util.LinkedList;
     import java.util.List;
    +import java.util.Map;
    +import java.util.concurrent.Callable;
     import java.util.concurrent.ScheduledExecutorService;
     import java.util.concurrent.ScheduledFuture;
     import java.util.concurrent.TimeUnit;
    @@ -85,15 +88,20 @@ public class Publisher {
       private final String topicName;
     
       private final BatchingSettings batchingSettings;
    +  private final boolean enableMessageOrdering;
     
       private final Lock messagesBatchLock;
    -  private MessagesBatch messagesBatch;
    +
    +  private final Map messagesBatches;
     
       private final AtomicBoolean activeAlarm;
     
       private final PublisherStub publisherStub;
     
       private final ScheduledExecutorService executor;
    +
    +  private final SequentialExecutorService.CallbackExecutor sequentialExecutor;
    +
       private final AtomicBoolean shutdown;
       private final BackgroundResource backgroundResources;
       private final MessageWaiter messagesWaiter;
    @@ -114,12 +122,14 @@ private Publisher(Builder builder) throws IOException {
         topicName = builder.topicName;
     
         this.batchingSettings = builder.batchingSettings;
    +    this.enableMessageOrdering = builder.enableMessageOrdering;
         this.messageTransform = builder.messageTransform;
     
    -    messagesBatch = new MessagesBatch(batchingSettings);
    +    messagesBatches = new HashMap<>();
         messagesBatchLock = new ReentrantLock();
         activeAlarm = new AtomicBoolean(false);
         executor = builder.executorProvider.getExecutor();
    +    sequentialExecutor = new SequentialExecutorService.CallbackExecutor(executor);
         List backgroundResourceList = new ArrayList<>();
         if (builder.executorProvider.shouldAutoClose()) {
           backgroundResourceList.add(new ExecutorAsBackgroundResource(executor));
    @@ -127,9 +137,18 @@ private Publisher(Builder builder) throws IOException {
     
         // Publisher used to take maxAttempt == 0 to mean infinity, but to GAX it means don't retry.
         // We post-process this here to keep backward-compatibility.
    -    RetrySettings retrySettings = builder.retrySettings;
    -    if (retrySettings.getMaxAttempts() == 0) {
    -      retrySettings = retrySettings.toBuilder().setMaxAttempts(Integer.MAX_VALUE).build();
    +    // Also, if "message ordering" is enabled, the publisher should retry sending the failed
    +    // message infinitely rather than sending the next one.
    +    RetrySettings.Builder retrySettingsBuilder = builder.retrySettings.toBuilder();
    +    if (retrySettingsBuilder.getMaxAttempts() == 0) {
    +      retrySettingsBuilder.setMaxAttempts(Integer.MAX_VALUE);
    +    }
    +    if (enableMessageOrdering) {
    +      // TODO: is there a way to have the default retry settings for requests without an ordering
    +      // key?
    +      retrySettingsBuilder
    +          .setMaxAttempts(Integer.MAX_VALUE)
    +          .setTotalTimeout(Duration.ofNanos(Long.MAX_VALUE));
         }
     
         PublisherStubSettings.Builder stubSettings =
    @@ -147,7 +166,7 @@ private Publisher(Builder builder) throws IOException {
                 StatusCode.Code.RESOURCE_EXHAUSTED,
                 StatusCode.Code.UNKNOWN,
                 StatusCode.Code.UNAVAILABLE)
    -        .setRetrySettings(retrySettings)
    +        .setRetrySettings(retrySettingsBuilder.build())
             .setBatchingSettings(BatchingSettings.newBuilder().setIsEnabled(false).build());
         this.publisherStub = GrpcPublisherStub.create(stubSettings.build());
         backgroundResourceList.add(publisherStub);
    @@ -194,38 +213,71 @@ public String getTopicNameString() {
       public ApiFuture publish(PubsubMessage message) {
         Preconditions.checkState(!shutdown.get(), "Cannot publish on a shut-down publisher.");
     
    +    final String orderingKey = message.getOrderingKey();
    +    Preconditions.checkState(
    +        orderingKey.isEmpty() || enableMessageOrdering,
    +        "Cannot publish a message with an ordering key when message ordering is not enabled.");
    +
         final OutstandingPublish outstandingPublish =
             new OutstandingPublish(messageTransform.apply(message));
         List batchesToSend;
         messagesBatchLock.lock();
         try {
    +      MessagesBatch messagesBatch = messagesBatches.get(orderingKey);
    +      if (messagesBatch == null) {
    +        messagesBatch = new MessagesBatch(batchingSettings, orderingKey);
    +        messagesBatches.put(orderingKey, messagesBatch);
    +      }
    +
           batchesToSend = messagesBatch.add(outstandingPublish);
    +      if (!batchesToSend.isEmpty() && messagesBatch.isEmpty()) {
    +        messagesBatches.remove(orderingKey);
    +      }
           // Setup the next duration based delivery alarm if there are messages batched.
           setupAlarm();
    +      // For messages with an ordering key, we need to publish with messagesBatchLock held in order
    +      // to ensure another publish doesn't slip in and send a batch before these batches we already
    +      // want to send.
    +      if (!batchesToSend.isEmpty() && !orderingKey.isEmpty()) {
    +        for (final OutstandingBatch batch : batchesToSend) {
    +          logger.log(Level.FINER, "Scheduling a batch for immediate sending.");
    +          publishOutstandingBatch(batch);
    +        }
    +      }
         } finally {
           messagesBatchLock.unlock();
         }
     
         messagesWaiter.incrementPendingMessages(1);
     
    -    if (!batchesToSend.isEmpty()) {
    +    // For messages without ordering keys, it is okay to send batches without holding
    +    // messagesBatchLock.
    +    if (!batchesToSend.isEmpty() && orderingKey.isEmpty()) {
           for (final OutstandingBatch batch : batchesToSend) {
             logger.log(Level.FINER, "Scheduling a batch for immediate sending.");
    -        executor.execute(
    -            new Runnable() {
    -              @Override
    -              public void run() {
    -                publishOutstandingBatch(batch);
    -              }
    -            });
    +        publishOutstandingBatch(batch);
           }
         }
     
         return outstandingPublish.publishResult;
       }
     
    +  /**
    +   * There may be non-recoverable problems with a request for an ordering key. In that case, all
    +   * subsequent requests will fail until this method is called. If the key is not currently paused,
    +   * calling this method will be a no-op.
    +   *
    +   * @param key The key for which to resume publishing.
    +   */
    +  // TODO: make this public when Ordering keys is live
    +  @BetaApi
    +  void resumePublish(String key) {
    +    Preconditions.checkState(!shutdown.get(), "Cannot publish on a shut-down publisher.");
    +    sequentialExecutor.resumePublish(key);
    +  }
    +
       private void setupAlarm() {
    -    if (!messagesBatch.isEmpty()) {
    +    if (!messagesBatches.isEmpty()) {
           if (!activeAlarm.getAndSet(true)) {
             long delayThresholdMs = getBatchingSettings().getDelayThreshold().toMillis();
             logger.log(Level.FINER, "Setting up alarm for the next {0} ms.", delayThresholdMs);
    @@ -236,7 +288,7 @@ private void setupAlarm() {
                       public void run() {
                         logger.log(Level.FINER, "Sending messages based on schedule.");
                         activeAlarm.getAndSet(false);
    -                    publishAllOutstanding();
    +                    publishAllWithoutInflight();
                       }
                     },
                     delayThresholdMs,
    @@ -256,17 +308,61 @@ public void run() {
        * futures returned from {@code publish}.
        */
       public void publishAllOutstanding() {
    +    OutstandingBatch unorderedOutstandingBatch = null;
    +    messagesBatchLock.lock();
    +    try {
    +      for (MessagesBatch batch : messagesBatches.values()) {
    +        if (!batch.isEmpty()) {
    +          if (!batch.orderingKey.isEmpty()) {
    +            // For messages with an ordering key, we need to publish with messagesBatchLock held in
    +            // order to ensure another publish doesn't slip in and send a batch before these batches
    +            // we already want to send.
    +            publishOutstandingBatch(batch.popOutstandingBatch());
    +          } else {
    +            unorderedOutstandingBatch = batch.popOutstandingBatch();
    +          }
    +        }
    +      }
    +      messagesBatches.clear();
    +    } finally {
    +      messagesBatchLock.unlock();
    +    }
    +    if (unorderedOutstandingBatch != null) {
    +      publishOutstandingBatch(unorderedOutstandingBatch);
    +    }
    +  }
    +
    +  /**
    +   * Publish any outstanding batches if non-empty and there are no other batches in flight. This
    +   * method sends buffered messages, but does not wait for the send operations to complete. To wait
    +   * for messages to send, call {@code get} on the futures returned from {@code publish}.
    +   */
    +  private void publishAllWithoutInflight() {
    +    OutstandingBatch unorderedOutstandingBatch = null;
         messagesBatchLock.lock();
    -    OutstandingBatch batchToSend;
         try {
    -      if (messagesBatch.isEmpty()) {
    -        return;
    +      Iterator> it = messagesBatches.entrySet().iterator();
    +      while (it.hasNext()) {
    +        Map.Entry entry = it.next();
    +        MessagesBatch batch = entry.getValue();
    +        String key = entry.getKey();
    +        if (batch.isEmpty()) {
    +          it.remove();
    +        } else if (key.isEmpty()) {
    +          // We will publish the batch with no ordering key outside messagesBatchLock.
    +          unorderedOutstandingBatch = batch.popOutstandingBatch();
    +          it.remove();
    +        } else if (!sequentialExecutor.hasTasksInflight(key)) {
    +          publishOutstandingBatch(batch.popOutstandingBatch());
    +          it.remove();
    +        }
           }
    -      batchToSend = messagesBatch.popOutstandingBatch();
         } finally {
           messagesBatchLock.unlock();
         }
    -    publishOutstandingBatch(batchToSend);
    +    if (unorderedOutstandingBatch != null) {
    +      publishOutstandingBatch(unorderedOutstandingBatch);
    +    }
       }
     
       private ApiFuture publishCall(OutstandingBatch outstandingBatch) {
    @@ -280,12 +376,12 @@ private ApiFuture publishCall(OutstandingBatch outstandingBatch
       }
     
       private void publishOutstandingBatch(final OutstandingBatch outstandingBatch) {
    -    ApiFutureCallback futureCallback =
    +    final ApiFutureCallback futureCallback =
             new ApiFutureCallback() {
               @Override
               public void onSuccess(PublishResponse result) {
                 try {
    -              if (result.getMessageIdsCount() != outstandingBatch.size()) {
    +              if (result == null || result.getMessageIdsCount() != outstandingBatch.size()) {
                     outstandingBatch.onFailure(
                         new IllegalStateException(
                             String.format(
    @@ -311,7 +407,21 @@ public void onFailure(Throwable t) {
               }
             };
     
    -    ApiFutures.addCallback(publishCall(outstandingBatch), futureCallback, directExecutor());
    +    ApiFuture future;
    +    if (outstandingBatch.orderingKey == null || outstandingBatch.orderingKey.isEmpty()) {
    +      future = publishCall(outstandingBatch);
    +    } else {
    +      // If ordering key is specified, publish the batch using the sequential executor.
    +      future =
    +          sequentialExecutor.submit(
    +              outstandingBatch.orderingKey,
    +              new Callable>() {
    +                public ApiFuture call() {
    +                  return publishCall(outstandingBatch);
    +                }
    +              });
    +    }
    +    ApiFutures.addCallback(future, futureCallback, directExecutor());
       }
     
       private static final class OutstandingBatch {
    @@ -319,12 +429,15 @@ private static final class OutstandingBatch {
         final long creationTime;
         int attempt;
         int batchSizeBytes;
    +    final String orderingKey;
     
    -    OutstandingBatch(List outstandingPublishes, int batchSizeBytes) {
    +    OutstandingBatch(
    +        List outstandingPublishes, int batchSizeBytes, String orderingKey) {
           this.outstandingPublishes = outstandingPublishes;
           attempt = 1;
           creationTime = System.currentTimeMillis();
           this.batchSizeBytes = batchSizeBytes;
    +      this.orderingKey = orderingKey;
         }
     
         int size() {
    @@ -468,7 +581,7 @@ public static final class Builder {
                 .setRpcTimeoutMultiplier(2)
                 .setMaxRpcTimeout(DEFAULT_RPC_TIMEOUT)
                 .build();
    -
    +    static final boolean DEFAULT_ENABLE_MESSAGE_ORDERING = false;
         private static final int THREADS_PER_CPU = 5;
         static final ExecutorProvider DEFAULT_EXECUTOR_PROVIDER =
             InstantiatingExecutorProvider.newBuilder()
    @@ -482,6 +595,8 @@ public static final class Builder {
     
         RetrySettings retrySettings = DEFAULT_RETRY_SETTINGS;
     
    +    private boolean enableMessageOrdering = DEFAULT_ENABLE_MESSAGE_ORDERING;
    +
         private TransportChannelProvider channelProvider =
             TopicAdminSettings.defaultGrpcTransportProviderBuilder().setChannelsPerCpu(1).build();
     
    @@ -576,6 +691,14 @@ public Builder setRetrySettings(RetrySettings retrySettings) {
           return this;
         }
     
    +    /** Sets the message ordering option. */
    +    // TODO: make this public when Ordering keys is live
    +    @BetaApi
    +    Builder setEnableMessageOrdering(boolean enableMessageOrdering) {
    +      this.enableMessageOrdering = enableMessageOrdering;
    +      return this;
    +    }
    +
         /** Gives the ability to set a custom executor to be used by the library. */
         public Builder setExecutorProvider(ExecutorProvider executorProvider) {
           this.executorProvider = Preconditions.checkNotNull(executorProvider);
    @@ -601,15 +724,17 @@ public Publisher build() throws IOException {
       private static class MessagesBatch {
         private List messages;
         private int batchedBytes;
    +    private String orderingKey;
         private final BatchingSettings batchingSettings;
     
    -    public MessagesBatch(BatchingSettings batchingSettings) {
    +    private MessagesBatch(BatchingSettings batchingSettings, String orderingKey) {
           this.batchingSettings = batchingSettings;
    +      this.orderingKey = orderingKey;
           reset();
         }
     
         private OutstandingBatch popOutstandingBatch() {
    -      OutstandingBatch batch = new OutstandingBatch(messages, batchedBytes);
    +      OutstandingBatch batch = new OutstandingBatch(messages, batchedBytes, orderingKey);
           reset();
           return batch;
         }
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java
    new file mode 100644
    index 000000000000..a172c1ecb36d
    --- /dev/null
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java
    @@ -0,0 +1,264 @@
    +/*
    + * Copyright 2019 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package com.google.cloud.pubsub.v1;
    +
    +import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    +
    +import com.google.api.core.ApiFuture;
    +import com.google.api.core.ApiFutureCallback;
    +import com.google.api.core.ApiFutures;
    +import com.google.api.core.BetaApi;
    +import com.google.api.core.SettableApiFuture;
    +import java.util.Collections;
    +import java.util.HashMap;
    +import java.util.HashSet;
    +import java.util.LinkedList;
    +import java.util.Map;
    +import java.util.Queue;
    +import java.util.Set;
    +import java.util.concurrent.Callable;
    +import java.util.concurrent.CancellationException;
    +import java.util.concurrent.Executor;
    +
    +interface CancellableRunnable extends Runnable {
    +  void cancel(Throwable e);
    +}
    +
    +/**
    + * An executor service that runs the tasks with the same key sequentially. The tasks with the same
    + * key will be run only when its predecessor has been completed while tasks with different keys can
    + * be run in parallel.
    + */
    +final class SequentialExecutorService {
    +
    +  // This class is not directly usable.
    +  private SequentialExecutorService() {}
    +
    +  /**
    +   * This Executor takes a serial stream of string keys and {@code Runnable} tasks, and runs the
    +   * tasks with the same key sequentially. Tasks with the same key will be run only when its
    +   * predecessor has been completed while tasks with different keys can be run in parallel.
    +   */
    +  private abstract static class SequentialExecutor {
    +    // Maps keys to tasks.
    +    protected final Map> tasksByKey;
    +    protected final Executor executor;
    +
    +    private SequentialExecutor(Executor executor) {
    +      this.executor = executor;
    +      this.tasksByKey = new HashMap<>();
    +    }
    +
    +    boolean hasTasksInflight(String key) {
    +      synchronized (tasksByKey) {
    +        return tasksByKey.containsKey(key);
    +      }
    +    }
    +
    +    protected void execute(final String key, R task) {
    +      synchronized (tasksByKey) {
    +        Queue newTasks = tasksByKey.get(key);
    +        // If this key is already being handled, add it to the queue and return.
    +        if (newTasks != null) {
    +          newTasks.add(task);
    +          return;
    +        } else {
    +          newTasks = new LinkedList<>();
    +          newTasks.add(task);
    +          tasksByKey.put(key, newTasks);
    +        }
    +      }
    +
    +      callNextTaskAsync(key);
    +    }
    +
    +    protected void callNextTaskAsync(final String key) {
    +      boolean executeTask = true;
    +      synchronized (tasksByKey) {
    +        Queue tasks = tasksByKey.get(key);
    +        if (tasks != null && tasks.isEmpty()) {
    +          // Only remove the Queue after all tasks were completed
    +          tasksByKey.remove(key);
    +          executeTask = false;
    +        }
    +      }
    +      if (executeTask) {
    +        executor.execute(
    +            new Runnable() {
    +              @Override
    +              public void run() {
    +                R task = null;
    +                synchronized (tasksByKey) {
    +                  Queue tasks = tasksByKey.get(key);
    +                  if (tasks != null && !tasks.isEmpty()) {
    +                    task = tasks.poll();
    +                  }
    +                }
    +                if (task != null) {
    +                  task.run();
    +                }
    +              }
    +            });
    +      }
    +    }
    +  }
    +
    +  @BetaApi
    +  static class AutoExecutor extends SequentialExecutor {
    +    AutoExecutor(Executor executor) {
    +      super(executor);
    +    }
    +
    +    /** Runs synchronous {@code Runnable} tasks sequentially. */
    +    void submit(final String key, final Runnable task) {
    +      super.execute(
    +          key,
    +          new Runnable() {
    +            @Override
    +            public void run() {
    +              try {
    +                task.run();
    +              } finally {
    +                callNextTaskAsync(key);
    +              }
    +            }
    +          });
    +    }
    +  }
    +
    +  /**
    +   * Runs asynchronous {@code Callable} tasks sequentially for the same key. If one of the tasks
    +   * fails, other tasks with the same key that have not been executed will be cancelled.
    +   */
    +  @BetaApi
    +  static class CallbackExecutor extends SequentialExecutor {
    +    static CancellationException CANCELLATION_EXCEPTION =
    +        new CancellationException(
    +            "Execution cancelled because executing previous runnable failed.");
    +
    +    private final Set keysWithErrors = Collections.synchronizedSet(new HashSet());
    +
    +    CallbackExecutor(Executor executor) {
    +      super(executor);
    +    }
    +
    +    /**
    +     * Runs asynchronous {@code Callable} tasks sequentially. If one of the tasks fails, other tasks
    +     * with the same key that have not been executed will be cancelled.
    +     *
    +     * 

    This method does the following in a chain: + * + *

      + *
    1. Creates an `ApiFuture` that can be used for tracking progress. + *
    2. Creates a `CancellableRunnable` out of the `Callable` + *
    3. Adds the `CancellableRunnable` to the task queue + *
    4. Once the task is ready to be run, it will execute the `Callable` + *
    5. When the `Callable` completes one of two things happens: + *
        + *
      1. On success: + *
          + *
        1. Complete the `ApiFuture` by setting the return value. + *
        2. Call the next task. + *
        + *
      2. On Failure: + *
          + *
        1. Fail the `ApiFuture` by setting the exception. + *
        2. Cancel all tasks in the queue. + *
        + *
      + *
    + * + * @param key The key for the task queue + * @param callable The thing to run + * @param The return type for the `Callable`'s `ApiFuture`. + * @return an `ApiFuture` for tracking. + */ + ApiFuture submit(final String key, final Callable> callable) { + // Step 1: create a future for the user + final SettableApiFuture future = SettableApiFuture.create(); + + if (keysWithErrors.contains(key)) { + future.setException(CANCELLATION_EXCEPTION); + return future; + } + + // Step 2: create the CancellableRunnable + // Step 3: add the task to queue via `execute` + CancellableRunnable task = + new CancellableRunnable() { + private boolean cancelled = false; + + @Override + public void run() { + // the task was cancelled + if (cancelled) { + return; + } + + try { + // Step 4: call the `Callable` + ApiFutureCallback callback = + new ApiFutureCallback() { + // Step 5.1: on success + @Override + public void onSuccess(T msg) { + future.set(msg); + callNextTaskAsync(key); + } + + // Step 5.2: on failure + @Override + public void onFailure(Throwable e) { + future.setException(e); + cancelQueuedTasks(key, CANCELLATION_EXCEPTION); + } + }; + ApiFutures.addCallback(callable.call(), callback, directExecutor()); + } catch (Exception e) { + cancel(e); + } + } + + @Override + public void cancel(Throwable e) { + this.cancelled = true; + future.setException(e); + } + }; + execute(key, task); + return future; + } + + void resumePublish(String key) { + keysWithErrors.remove(key); + } + + /** Cancels every task in the queue associated with {@code key}. */ + private void cancelQueuedTasks(final String key, Throwable e) { + keysWithErrors.add(key); + synchronized (tasksByKey) { + final Queue tasks = tasksByKey.get(key); + if (tasks != null) { + while (!tasks.isEmpty()) { + tasks.poll().cancel(e); + } + tasksByKey.remove(key); + } + } + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java index 396b5d05bd5f..620a09ac98bc 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java @@ -24,6 +24,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.atomic.AtomicInteger; /** * A fake implementation of {@link PublisherImplBase}, that can be used to test clients of a Cloud @@ -33,6 +34,8 @@ class FakePublisherServiceImpl extends PublisherImplBase { private final LinkedBlockingQueue requests = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue publishResponses = new LinkedBlockingQueue<>(); + private final AtomicInteger nextMessageId = new AtomicInteger(1); + private boolean autoPublishResponse; /** Class used to save the state of a possible response. */ private static class Response { @@ -75,7 +78,15 @@ public void publish(PublishRequest request, StreamObserver resp requests.add(request); Response response; try { - response = publishResponses.take(); + if (autoPublishResponse) { + PublishResponse.Builder builder = PublishResponse.newBuilder(); + for (int i = 0; i < request.getMessagesCount(); i++) { + builder.addMessageIds(Integer.toString(nextMessageId.getAndIncrement())); + } + response = new Response(builder.build()); + } else { + response = publishResponses.take(); + } } catch (InterruptedException e) { throw new IllegalArgumentException(e); } @@ -87,6 +98,15 @@ public void publish(PublishRequest request, StreamObserver resp } } + /** + * If enabled, PublishResponse is generated with a unique message id automatically when publish() + * is called. + */ + public FakePublisherServiceImpl setAutoPublishResponse(boolean autoPublishResponse) { + this.autoPublishResponse = autoPublishResponse; + return this; + } + public FakePublisherServiceImpl addPublishResponse(PublishResponse publishResponse) { publishResponses.add(new Response(publishResponse)); return this; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index acbc82c95c41..f3c85220fc31 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -35,16 +35,19 @@ import com.google.cloud.pubsub.v1.Publisher.Builder; import com.google.protobuf.ByteString; import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; import io.grpc.Server; import io.grpc.Status; import io.grpc.StatusException; import io.grpc.inprocess.InProcessServerBuilder; +import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import org.easymock.EasyMock; import org.junit.After; +import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -240,6 +243,275 @@ private ApiFuture sendTestMessage(Publisher publisher, String data) { PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8(data)).build()); } + @Test + public void testBatchedMessagesWithOrderingKeyByNum() throws Exception { + // Limit the number of maximum elements in a single batch to 3. + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(3L) + .setDelayThreshold(Duration.ofSeconds(100)) + .build()) + .setEnableMessageOrdering(true) + .build(); + testPublisherServiceImpl.setAutoPublishResponse(true); + + // Publish two messages with ordering key, "OrderA", and other two messages with "OrderB". + ApiFuture publishFuture1 = sendTestMessageWithOrderingKey(publisher, "m1", "OrderA"); + ApiFuture publishFuture2 = sendTestMessageWithOrderingKey(publisher, "m2", "OrderB"); + ApiFuture publishFuture3 = sendTestMessageWithOrderingKey(publisher, "m3", "OrderA"); + ApiFuture publishFuture4 = sendTestMessageWithOrderingKey(publisher, "m4", "OrderB"); + + // Verify that none of them were published since the batching size is 3. + assertFalse(publishFuture1.isDone()); + assertFalse(publishFuture2.isDone()); + assertFalse(publishFuture3.isDone()); + assertFalse(publishFuture4.isDone()); + + // One of the batches reaches the limit. + ApiFuture publishFuture5 = sendTestMessageWithOrderingKey(publisher, "m5", "OrderA"); + // Verify that they were delivered in order per ordering key. + assertTrue(Integer.parseInt(publishFuture1.get()) < Integer.parseInt(publishFuture3.get())); + assertTrue(Integer.parseInt(publishFuture3.get()) < Integer.parseInt(publishFuture5.get())); + + // The other batch reaches the limit. + ApiFuture publishFuture6 = sendTestMessageWithOrderingKey(publisher, "m6", "OrderB"); + assertTrue(Integer.parseInt(publishFuture2.get()) < Integer.parseInt(publishFuture4.get())); + assertTrue(Integer.parseInt(publishFuture4.get()) < Integer.parseInt(publishFuture6.get())); + + // Verify that every message within the same batch has the same ordering key. + List requests = testPublisherServiceImpl.getCapturedRequests(); + for (PublishRequest request : requests) { + if (request.getMessagesCount() > 1) { + String orderingKey = request.getMessages(0).getOrderingKey(); + for (PubsubMessage message : request.getMessagesList()) { + assertEquals(message.getOrderingKey(), orderingKey); + } + } + } + publisher.shutdown(); + } + + @Test + public void testBatchedMessagesWithOrderingKeyByDuration() throws Exception { + // Limit the batching timeout to 100 seconds. + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(10L) + .setDelayThreshold(Duration.ofSeconds(100)) + .build()) + .setEnableMessageOrdering(true) + .build(); + testPublisherServiceImpl.setAutoPublishResponse(true); + + // Publish two messages with ordering key, "OrderA", and other two messages with "OrderB". + ApiFuture publishFuture1 = sendTestMessageWithOrderingKey(publisher, "m1", "OrderA"); + ApiFuture publishFuture2 = sendTestMessageWithOrderingKey(publisher, "m2", "OrderB"); + ApiFuture publishFuture3 = sendTestMessageWithOrderingKey(publisher, "m3", "OrderA"); + ApiFuture publishFuture4 = sendTestMessageWithOrderingKey(publisher, "m4", "OrderB"); + + // Verify that none of them were published since the batching size is 10 and timeout has not + // been expired. + assertFalse(publishFuture1.isDone()); + assertFalse(publishFuture2.isDone()); + assertFalse(publishFuture3.isDone()); + assertFalse(publishFuture4.isDone()); + + // The timeout expires. + fakeExecutor.advanceTime(Duration.ofSeconds(100)); + + // Verify that they were delivered in order per ordering key. + assertTrue(Integer.parseInt(publishFuture1.get()) < Integer.parseInt(publishFuture3.get())); + assertTrue(Integer.parseInt(publishFuture2.get()) < Integer.parseInt(publishFuture4.get())); + + // Verify that every message within the same batch has the same ordering key. + List requests = testPublisherServiceImpl.getCapturedRequests(); + for (PublishRequest request : requests) { + if (request.getMessagesCount() > 1) { + String orderingKey = request.getMessages(0).getOrderingKey(); + for (PubsubMessage message : request.getMessagesList()) { + assertEquals(message.getOrderingKey(), orderingKey); + } + } + } + publisher.shutdown(); + } + + @Test + public void testLargeMessagesDoNotReorderBatches() throws Exception { + // Set the maximum batching size to 20 bytes. + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(10L) + .setRequestByteThreshold(20L) + .setDelayThreshold(Duration.ofSeconds(100)) + .build()) + .setEnableMessageOrdering(true) + .build(); + testPublisherServiceImpl.setAutoPublishResponse(true); + ApiFuture publishFuture1 = sendTestMessageWithOrderingKey(publisher, "m1", "OrderA"); + ApiFuture publishFuture2 = sendTestMessageWithOrderingKey(publisher, "m2", "OrderB"); + + assertFalse(publishFuture1.isDone()); + assertFalse(publishFuture2.isDone()); + + ApiFuture publishFuture3 = + sendTestMessageWithOrderingKey(publisher, "VeryLargeMessage", "OrderB"); + // Verify that messages with "OrderB" were delivered in order. + assertTrue(Integer.parseInt(publishFuture2.get()) < Integer.parseInt(publishFuture3.get())); + + publisher.shutdown(); + } + + @Test + public void testOrderingKeyWhenDisabled_throwsException() throws Exception { + // Message ordering is disabled by default. + Publisher publisher = getTestPublisherBuilder().build(); + try { + ApiFuture publishFuture = sendTestMessageWithOrderingKey(publisher, "m1", "orderA"); + fail("Should have thrown an IllegalStateException"); + } catch (IllegalStateException expected) { + // expected + } + publisher.shutdown(); + } + + @Test + public void testEnableMessageOrdering_overwritesMaxAttempts() throws Exception { + // Set maxAttempts to 1 and enableMessageOrdering to true at the same time. + Publisher publisher = + getTestPublisherBuilder() + .setExecutorProvider(SINGLE_THREAD_EXECUTOR) + .setRetrySettings( + Publisher.Builder.DEFAULT_RETRY_SETTINGS + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(10)) + .setMaxAttempts(1) + .build()) + .setEnableMessageOrdering(true) + .build(); + + // Although maxAttempts is 1, the publisher will retry until it succeeds since + // enableMessageOrdering is true. + testPublisherServiceImpl.addPublishError(new Throwable("Transiently failing")); + testPublisherServiceImpl.addPublishError(new Throwable("Transiently failing")); + testPublisherServiceImpl.addPublishError(new Throwable("Transiently failing")); + testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("1")); + + ApiFuture publishFuture1 = sendTestMessageWithOrderingKey(publisher, "m1", "orderA"); + assertEquals("1", publishFuture1.get()); + + assertEquals(4, testPublisherServiceImpl.getCapturedRequests().size()); + publisher.shutdown(); + } + + @Test + /** + * Make sure that resume publishing works as expected: + * + *
      + *
    1. publish with key orderA which returns a failure. + *
    2. publish with key orderA again, which should fail immediately + *
    3. publish with key orderB, which should succeed + *
    4. resume publishing on key orderA + *
    5. publish with key orderA, which should now succeed + *
    + */ + public void testResumePublish() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(2L) + .build()) + .setEnableMessageOrdering(true) + .build(); + + ApiFuture future1 = sendTestMessageWithOrderingKey(publisher, "m1", "orderA"); + ApiFuture future2 = sendTestMessageWithOrderingKey(publisher, "m2", "orderA"); + + fakeExecutor.advanceTime(Duration.ZERO); + assertFalse(future1.isDone()); + assertFalse(future2.isDone()); + + // This exception should stop future publishing to the same key + testPublisherServiceImpl.addPublishError(new StatusException(Status.INVALID_ARGUMENT)); + + fakeExecutor.advanceTime(Duration.ZERO); + + try { + future1.get(); + Assert.fail("This should fail."); + } catch (ExecutionException e) { + } + + try { + future2.get(); + Assert.fail("This should fail."); + } catch (ExecutionException e) { + } + + // Submit new requests with orderA that should fail. + ApiFuture future3 = sendTestMessageWithOrderingKey(publisher, "m3", "orderA"); + ApiFuture future4 = sendTestMessageWithOrderingKey(publisher, "m4", "orderA"); + + try { + future3.get(); + Assert.fail("This should fail."); + } catch (ExecutionException e) { + assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause()); + } + + try { + future4.get(); + Assert.fail("This should fail."); + } catch (ExecutionException e) { + assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause()); + } + + // Submit a new request with orderB, which should succeed + ApiFuture future5 = sendTestMessageWithOrderingKey(publisher, "m5", "orderB"); + ApiFuture future6 = sendTestMessageWithOrderingKey(publisher, "m6", "orderB"); + + testPublisherServiceImpl.addPublishResponse( + PublishResponse.newBuilder().addMessageIds("5").addMessageIds("6")); + + Assert.assertEquals("5", future5.get()); + Assert.assertEquals("6", future6.get()); + + // Resume publishing of "orderA", which should now succeed + publisher.resumePublish("orderA"); + + ApiFuture future7 = sendTestMessageWithOrderingKey(publisher, "m7", "orderA"); + ApiFuture future8 = sendTestMessageWithOrderingKey(publisher, "m8", "orderA"); + + testPublisherServiceImpl.addPublishResponse( + PublishResponse.newBuilder().addMessageIds("7").addMessageIds("8")); + + Assert.assertEquals("7", future7.get()); + Assert.assertEquals("8", future8.get()); + + publisher.shutdown(); + } + + private ApiFuture sendTestMessageWithOrderingKey( + Publisher publisher, String data, String orderingKey) { + return publisher.publish( + PubsubMessage.newBuilder() + .setOrderingKey(orderingKey) + .setData(ByteString.copyFromUtf8(data)) + .build()); + } + @Test public void testErrorPropagation() throws Exception { Publisher publisher = diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java new file mode 100644 index 000000000000..3788bd3c04f8 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java @@ -0,0 +1,247 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; + +import com.google.api.core.ApiFuture; +import com.google.api.core.SettableApiFuture; +import com.google.api.gax.core.ExecutorProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.common.collect.ImmutableList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedHashSet; +import java.util.Map; +import java.util.concurrent.Callable; +import java.util.concurrent.CancellationException; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ExecutionException; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public final class SequentialExecutorServiceTest { + private final ExecutorProvider executorProvider = + InstantiatingExecutorProvider.newBuilder() + .setExecutorThreadCount(5 * Runtime.getRuntime().availableProcessors()) + .build(); + + static class AsyncTaskCallable implements Callable> { + boolean isCalled = false; + SettableApiFuture result = SettableApiFuture.create(); + + @Override + public ApiFuture call() { + isCalled = true; + return result; + } + + public boolean isCalled() { + return isCalled; + } + + public void finishWithError(Throwable e) { + result.setException(e); + } + + public void finish() { + result.set("ok"); + } + } + + @Test + public void testExecutorRunsNextTaskWhenPrevResponseReceived() throws Exception { + SequentialExecutorService.CallbackExecutor sequentialExecutorService = + new SequentialExecutorService.CallbackExecutor(executorProvider.getExecutor()); + AsyncTaskCallable callable1 = new AsyncTaskCallable(); + AsyncTaskCallable callable2 = new AsyncTaskCallable(); + AsyncTaskCallable callable3 = new AsyncTaskCallable(); + + ApiFuture result1 = sequentialExecutorService.submit("key", callable1); + ApiFuture result2 = sequentialExecutorService.submit("key", callable2); + ApiFuture result3 = sequentialExecutorService.submit("key", callable3); + + Thread.sleep(1000); + assertFalse(callable2.isCalled()); + assertFalse(callable3.isCalled()); + callable1.finish(); + assertEquals("ok", result1.get()); + + assertFalse(callable3.isCalled()); + callable2.finish(); + assertEquals("ok", result2.get()); + + callable3.finish(); + assertEquals("ok", result3.get()); + } + + @Test + public void testExecutorRunsDifferentKeySimultaneously() throws Exception { + SequentialExecutorService.CallbackExecutor sequentialExecutorService = + new SequentialExecutorService.CallbackExecutor(executorProvider.getExecutor()); + AsyncTaskCallable callable1 = new AsyncTaskCallable(); + AsyncTaskCallable callable2 = new AsyncTaskCallable(); + AsyncTaskCallable callable3 = new AsyncTaskCallable(); + + // Submit three tasks (two tasks with "key", and one task with "key2"). + ApiFuture result1 = sequentialExecutorService.submit("key", callable1); + ApiFuture result2 = sequentialExecutorService.submit("key", callable2); + ApiFuture result3 = sequentialExecutorService.submit("key2", callable3); + + // The task associated with "key2" can be run in parallel with other tasks with "key". + callable3.finish(); + assertEquals("ok", result3.get()); + + // Sleep some time to give the test a chance to fail. Verify that the second task has not been + // executed while the main thread is slpeeing. + Thread.sleep(100); + assertFalse(callable2.isCalled()); + // Complete the first task. + callable1.finish(); + assertEquals("ok", result1.get()); + // Now, the second task can be executed. + callable2.finish(); + assertEquals("ok", result2.get()); + } + + @Test + public void testExecutorCancelsAllTasksWhenOneFailed() throws Exception { + SequentialExecutorService.CallbackExecutor sequentialExecutorService = + new SequentialExecutorService.CallbackExecutor(executorProvider.getExecutor()); + AsyncTaskCallable callable1 = new AsyncTaskCallable(); + AsyncTaskCallable callable2 = new AsyncTaskCallable(); + AsyncTaskCallable callable3 = new AsyncTaskCallable(); + + ApiFuture result1 = sequentialExecutorService.submit("key", callable1); + ApiFuture result2 = sequentialExecutorService.submit("key", callable2); + ApiFuture result3 = sequentialExecutorService.submit("key", callable3); + + Throwable failure = new Exception("failure"); + callable1.finishWithError(failure); + // The failed task throws an exception that contains the cause of the failure. + try { + result1.get(); + fail("Should have thrown an ExecutionException"); + } catch (ExecutionException e) { + assertEquals(failure, e.getCause()); + } + // Other tasks in the queue are expected to fail with a CancellationException. + for (ApiFuture result : ImmutableList.of(result2, result3)) { + try { + result.get(); + fail("Should have thrown an ExecutionException"); + } catch (ExecutionException e) { + assertThat(e.getCause()).isInstanceOf(CancellationException.class); + } + } + } + + /** + * A task that sleeps {@code taskDurationMillis} milliseconds. Appends its {@code taskId} to + * {@code startedTasksSequence} before sleeping and appends it to {@code completedTasksSequence} + * when sleeping is done. + */ + static class SleepingSyncTask implements Runnable { + private final int taskId; + private final long taskDurationMillis; + private final LinkedHashSet startedTasksSequence; + private final LinkedHashSet completedTasksSequence; + private final CountDownLatch remainingTasksCount; + + public SleepingSyncTask( + int taskId, + long taskDurationMillis, + LinkedHashSet startedTasksSequence, + LinkedHashSet completedTasksSequence, + CountDownLatch remainingTasksCount) { + this.taskId = taskId; + this.taskDurationMillis = taskDurationMillis; + this.startedTasksSequence = startedTasksSequence; + this.completedTasksSequence = completedTasksSequence; + this.remainingTasksCount = remainingTasksCount; + } + + @Override + public void run() { + if (taskId > 0) { + // Verify that the previous task has been completed. + assertTrue(startedTasksSequence.contains(taskId - 1)); + assertTrue(completedTasksSequence.contains(taskId - 1)); + } + startedTasksSequence.add(taskId); + try { + Thread.sleep(taskDurationMillis); + } catch (InterruptedException e) { + return; + } + completedTasksSequence.add(taskId); + remainingTasksCount.countDown(); + + // Verify that the next task has not been started yet. + assertFalse(startedTasksSequence.contains(taskId + 1)); + assertFalse(completedTasksSequence.contains(taskId + 1)); + } + } + + @Test + public void SequentialExecutorRunsTasksAutomatically() throws Exception { + int numKeys = 50; + int numTasks = 50; + SequentialExecutorService.AutoExecutor sequentialExecutor = + new SequentialExecutorService.AutoExecutor(executorProvider.getExecutor()); + CountDownLatch remainingTasksCount = new CountDownLatch(numKeys * numTasks); + // Maps keys to lists of started and completed tasks. + Map> startedTasks = new HashMap<>(); + Map> completedTasks = new HashMap<>(); + + for (int i = 0; i < numKeys; i++) { + String key = "key" + i; + LinkedHashSet startedTasksSequence = new LinkedHashSet<>(); + LinkedHashSet completedTasksSequence = new LinkedHashSet<>(); + startedTasks.put(key, completedTasksSequence); + completedTasks.put(key, completedTasksSequence); + for (int taskId = 0; taskId < numTasks; taskId++) { + SleepingSyncTask task = + new SleepingSyncTask( + taskId, 5, startedTasksSequence, completedTasksSequence, remainingTasksCount); + sequentialExecutor.submit(key, task); + } + } + + remainingTasksCount.await(); + + for (int i = 0; i < numKeys; i++) { + LinkedHashSet startedTasksSequence = startedTasks.get("key" + i); + LinkedHashSet completedTasksSequence = completedTasks.get("key" + i); + // Verify that the tasks have been started and completed in order. + int expectedTaskId = 0; + Iterator it1 = startedTasksSequence.iterator(); + Iterator it2 = completedTasksSequence.iterator(); + while (it1.hasNext() && it2.hasNext()) { + assertEquals(expectedTaskId, it1.next().intValue()); + assertEquals(expectedTaskId, it2.next().intValue()); + expectedTaskId++; + } + } + } +} From e449d2ae8452829bac8f79ad41d6becebc5cfbca Mon Sep 17 00:00:00 2001 From: Solomon Duskis Date: Tue, 9 Jul 2019 15:22:13 -0400 Subject: [PATCH 0200/2363] Pub/Sub: Replacing AutoClosable with BackgrondResource (#5710) --- .../google/cloud/pubsub/v1/Subscriber.java | 24 ++++++------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 5775278dcb6c..a3cf1ae98bc4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -26,8 +26,10 @@ import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; import com.google.api.gax.batching.FlowController.LimitExceededBehavior; +import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.CredentialsProvider; import com.google.api.gax.core.Distribution; +import com.google.api.gax.core.ExecutorAsBackgroundResource; import com.google.api.gax.core.ExecutorProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.rpc.HeaderProvider; @@ -117,7 +119,7 @@ public class Subscriber extends AbstractApiService { private final MessageReceiver receiver; private final List streamingSubscriberConnections; private final ApiClock clock; - private final List closeables = new ArrayList<>(); + private final List backgroundResources = new ArrayList<>(); private Subscriber(Builder builder) { receiver = builder.receiver; @@ -143,13 +145,7 @@ private Subscriber(Builder builder) { alarmsExecutor = systemExecutorProvider.getExecutor(); if (systemExecutorProvider.shouldAutoClose()) { - closeables.add( - new AutoCloseable() { - @Override - public void close() { - alarmsExecutor.shutdown(); - } - }); + backgroundResources.add(new ExecutorAsBackgroundResource((alarmsExecutor))); } TransportChannelProvider channelProvider = builder.channelProvider; @@ -298,8 +294,8 @@ public void run() { try { // stop connection is no-op if connections haven't been started. stopAllStreamingConnections(); - for (AutoCloseable closeable : closeables) { - closeable.close(); + for (BackgroundResource resource : backgroundResources) { + resource.shutdown(); } notifyStopped(); } catch (Exception e) { @@ -315,13 +311,7 @@ private void startStreamingConnections() { for (int i = 0; i < numPullers; i++) { final ScheduledExecutorService executor = executorProvider.getExecutor(); if (executorProvider.shouldAutoClose()) { - closeables.add( - new AutoCloseable() { - @Override - public void close() { - executor.shutdown(); - } - }); + backgroundResources.add(new ExecutorAsBackgroundResource((executor))); } streamingSubscriberConnections.add( From 468200c3527ad57bf3ed2f253e4bb0db23c8b290 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 10 Jul 2019 02:39:09 +0300 Subject: [PATCH 0201/2363] Update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.1.1 (#5696) --- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 39de07949ece..bfc47958b029 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -82,7 +82,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.1.0 + 3.1.1 protected true diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2d7e92589fdf..49d3cfd2bc42 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -33,7 +33,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.1.0 + 3.1.1 protected true From 18c3bf6e55a10ab72a0a6362f9cb26f08c2424aa Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 10 Jul 2019 14:28:03 -0400 Subject: [PATCH 0202/2363] Release v0.100.0 (#5716) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 14f604a0856e..47207d163005 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.81.0 + 1.82.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.81.0' +compile 'com.google.cloud:google-cloud-pubsub:1.82.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.82.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index bfc47958b029..29c463f53eb5 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.81.1-SNAPSHOT + 1.82.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.99.1-alpha-SNAPSHOT + 0.100.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 49d3cfd2bc42..2eb0d7122422 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.63.1-SNAPSHOT + 1.64.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.64.1-SNAPSHOT + 0.65.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 313b7e7bb235..95254b987ac7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.63.1-SNAPSHOT + 1.64.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.64.1-SNAPSHOT + 0.65.0 From 651d044531eb5bd151b7cf0570576c651a5c6056 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 10 Jul 2019 17:01:45 -0400 Subject: [PATCH 0203/2363] Bump next snapshot (#5720) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 29c463f53eb5..e69d81f9fff9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.82.0 + 1.82.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.100.0-alpha + 0.100.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2eb0d7122422..602ad8863d0c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.64.0 + 1.64.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.65.0 + 0.65.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 95254b987ac7..b35e150c25c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.64.0 + 1.64.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.65.0 + 0.65.1-SNAPSHOT From 8c8267bfa776e3419ef8af333e97d7a04e1fdf25 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Tue, 16 Jul 2019 13:32:02 -0400 Subject: [PATCH 0204/2363] Mark ordering keys APIs public (#5751) --- .../java/com/google/cloud/pubsub/v1/Publisher.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 8a5802420854..8ce8a370ff32 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -269,9 +269,8 @@ public ApiFuture publish(PubsubMessage message) { * * @param key The key for which to resume publishing. */ - // TODO: make this public when Ordering keys is live - @BetaApi - void resumePublish(String key) { + @BetaApi("Ordering is not yet fully supported and requires special project enablements.") + public void resumePublish(String key) { Preconditions.checkState(!shutdown.get(), "Cannot publish on a shut-down publisher."); sequentialExecutor.resumePublish(key); } @@ -692,9 +691,8 @@ public Builder setRetrySettings(RetrySettings retrySettings) { } /** Sets the message ordering option. */ - // TODO: make this public when Ordering keys is live - @BetaApi - Builder setEnableMessageOrdering(boolean enableMessageOrdering) { + @BetaApi("Ordering is not yet fully supported and requires special project enablements.") + public Builder setEnableMessageOrdering(boolean enableMessageOrdering) { this.enableMessageOrdering = enableMessageOrdering; return this; } From 2ef76b32863f99d862f93391aee14adfb9692b1c Mon Sep 17 00:00:00 2001 From: JesseLovelace <43148100+JesseLovelace@users.noreply.github.com> Date: Thu, 18 Jul 2019 09:33:51 -0700 Subject: [PATCH 0205/2363] Release v0.101.0 (#5761) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 47207d163005..53159c69a2a1 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.82.0 + 1.83.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.82.0' +compile 'com.google.cloud:google-cloud-pubsub:1.83.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.83.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e69d81f9fff9..62c2f40baf5f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.82.1-SNAPSHOT + 1.83.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.100.1-alpha-SNAPSHOT + 0.101.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 602ad8863d0c..4c5874dc3cbf 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.64.1-SNAPSHOT + 1.65.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.65.1-SNAPSHOT + 0.66.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b35e150c25c6..4a467301ce45 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.64.1-SNAPSHOT + 1.65.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.65.1-SNAPSHOT + 0.66.0 From 8c3b460184c70431f668e91cbd8d8dc3c88fb1c4 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Tue, 23 Jul 2019 16:28:01 -0400 Subject: [PATCH 0206/2363] Bump next snapshot (#5812) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 62c2f40baf5f..7dd09a79c7a4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.83.0 + 1.83.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.101.0-alpha + 0.101.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 4c5874dc3cbf..0b877d87765b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.65.0 + 1.65.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.66.0 + 0.66.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4a467301ce45..4ec7dcc45aa0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.65.0 + 1.65.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.66.0 + 0.66.1-SNAPSHOT From ff571f151abc7b82ed599f025684435a39e97667 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 24 Jul 2019 09:57:49 -0700 Subject: [PATCH 0207/2363] Bulk client regen - builder documentation and Generated annotation (#5850) * Regenerate asset client * Regenerate bigquerystorage client * Regenerate bigtable client * Regenerate compute client * Regenerate container client * Regenerate containeranalysis client * Regenerate dataproc client * Regenerate dlp client * Regenerate errorreporting client * Regenerate firestore client * Regenerate iamcredentials client * Regenerate iot client * Regenerate kms client * Regenerate language client * Regenerate logging client * Regenerate monitoring client * Regenerate os-login client * Regenerate phishingprotection client * Regenerate pubsub client * Regenerate recaptchaenterprise client * Regenerate scheduler client * Regenerate talent client * Regenerate tasks client * Regenerate texttospeech client * Regenerate trace client * Regenerate webrisk client * Regenerate websecurityscanner client * Regenerate grafeas client --- .../cloud/pubsub/v1/SubscriptionAdminSettings.java | 5 +++-- .../com/google/cloud/pubsub/v1/TopicAdminSettings.java | 5 +++-- .../java/com/google/cloud/pubsub/v1/package-info.java | 3 +++ .../cloud/pubsub/v1/stub/PublisherStubSettings.java | 5 +++-- .../cloud/pubsub/v1/stub/SubscriberStubSettings.java | 5 +++-- java-pubsub/google-cloud-pubsub/synth.metadata | 10 +++++----- 6 files changed, 20 insertions(+), 13 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 6a302d1b0e2f..dde88d8c2971 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -75,8 +75,9 @@ * * *

    The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of createSubscription to 30 seconds: + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the total timeout of createSubscription to 30 seconds: * *

      * 
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
    index 2fa642dc468e..89cb0256ac23 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
    @@ -64,8 +64,9 @@
      * 
      *
      * 

    The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of createTopic to 30 seconds: + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the total timeout of createTopic to 30 seconds: * *

      * 
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    index 1f2e48ce0d1e..aee1ff680434 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    @@ -59,4 +59,7 @@
      * 
      * 
    */ +@Generated("by gapic-generator") package com.google.cloud.pubsub.v1; + +import javax.annotation.Generated; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 96281d1bd941..323af0694349 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -88,8 +88,9 @@ * * *

    The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of createTopic to 30 seconds: + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the total timeout of createTopic to 30 seconds: * *

      * 
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    index e8572e66f7ec..cd74a1d390bf 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    @@ -90,8 +90,9 @@
      * 
      *
      * 

    The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. For - * example, to set the total timeout of createSubscription to 30 seconds: + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the total timeout of createSubscription to 30 seconds: * *

      * 
    diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata
    index 1ddbade588ff..dc7606454c9d 100644
    --- a/java-pubsub/google-cloud-pubsub/synth.metadata
    +++ b/java-pubsub/google-cloud-pubsub/synth.metadata
    @@ -1,19 +1,19 @@
     {
    -  "updateTime": "2019-06-05T17:53:42.379125Z",
    +  "updateTime": "2019-07-24T07:50:48.185938Z",
       "sources": [
         {
           "generator": {
             "name": "artman",
    -        "version": "0.22.0",
    -        "dockerImage": "googleapis/artman@sha256:72f6287a42490bfe1609aed491f29411af21df3f744199fe8bb8d276c1fdf419"
    +        "version": "0.31.0",
    +        "dockerImage": "googleapis/artman@sha256:9aed6bbde54e26d2fcde7aa86d9f64c0278f741e58808c46573e488cbf6098f0"
           }
         },
         {
           "git": {
             "name": "googleapis",
             "remote": "https://github.com/googleapis/googleapis.git",
    -        "sha": "47c142a7cecc6efc9f6f8af804b8be55392b795b",
    -        "internalRef": "251635729"
    +        "sha": "3035bd51e268fcd8d6721ad2e5d081c6ee36c5c3",
    +        "internalRef": "259653050"
           }
         }
       ],
    
    From fdc95f5013298a3d04ca67d5dffead4e99f716f1 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Wed, 24 Jul 2019 14:46:17 -0700
    Subject: [PATCH 0208/2363] Release v0.102.0 (#5852)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index 53159c69a2a1..1966a0cdf224 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.83.0
    +  1.84.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.83.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.84.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.83.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.84.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 7dd09a79c7a4..76cc713f49d2 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.83.1-SNAPSHOT
    +  1.84.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.101.1-alpha-SNAPSHOT
    +    0.102.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 0b877d87765b..d5388853013d 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.65.1-SNAPSHOT
    +  1.66.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.66.1-SNAPSHOT
    +    0.67.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 4ec7dcc45aa0..44d657ee9ead 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.65.1-SNAPSHOT
    +  1.66.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.66.1-SNAPSHOT
    +    0.67.0
       
       
         
    
    From 08d29b54478c37e14bd0a288c1a5d98432d563ed Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Thu, 25 Jul 2019 07:11:16 -0700
    Subject: [PATCH 0209/2363] Bump next snapshot (#5858)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 76cc713f49d2..94d48da857ec 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.84.0
    +  1.84.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.102.0-alpha
    +    0.102.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index d5388853013d..723313bf8211 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.66.0
    +  1.66.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.67.0
    +    0.67.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 44d657ee9ead..7ce635fbf674 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.66.0
    +  1.66.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.67.0
    +    0.67.1-SNAPSHOT
       
       
         
    
    From fdb3c9dfcf7839b866d7a9c5be8402dcec0a4ff6 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Tue, 30 Jul 2019 10:40:11 -0700
    Subject: [PATCH 0210/2363] feat: allow endpoint override on
     Publisher/Subscriber (#5915)
    
    ---
     .../java/com/google/cloud/pubsub/v1/Publisher.java     | 10 +++++++++-
     .../java/com/google/cloud/pubsub/v1/Subscriber.java    |  8 ++++++++
     2 files changed, 17 insertions(+), 1 deletion(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
    index 8ce8a370ff32..815bb9cf5e0d 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
    @@ -155,7 +155,8 @@ private Publisher(Builder builder) throws IOException {
             PublisherStubSettings.newBuilder()
                 .setCredentialsProvider(builder.credentialsProvider)
                 .setExecutorProvider(FixedExecutorProvider.create(executor))
    -            .setTransportChannelProvider(builder.channelProvider);
    +            .setTransportChannelProvider(builder.channelProvider)
    +            .setEndpoint(builder.endpoint);
         stubSettings
             .publishSettings()
             .setRetryableCodes(
    @@ -588,6 +589,7 @@ public static final class Builder {
                 .build();
     
         String topicName;
    +    private String endpoint = PublisherStubSettings.getDefaultEndpoint();
     
         // Batching options
         BatchingSettings batchingSettings = DEFAULT_BATCHING_SETTINGS;
    @@ -714,6 +716,12 @@ public Builder setTransform(ApiFunction messageTra
           return this;
         }
     
    +    /** Gives the ability to override the gRPC endpoint. */
    +    public Builder setEndpoint(String endpoint) {
    +      this.endpoint = endpoint;
    +      return this;
    +    }
    +
         public Publisher build() throws IOException {
           return new Publisher(this);
         }
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java
    index a3cf1ae98bc4..8ba07fe2f968 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java
    @@ -160,6 +160,7 @@ private Subscriber(Builder builder) {
                   .setCredentialsProvider(builder.credentialsProvider)
                   .setTransportChannelProvider(channelProvider)
                   .setHeaderProvider(builder.headerProvider)
    +              .setEndpoint(builder.endpoint)
                   .applyToAllUnaryMethods(
                       new ApiFunction, Void>() {
                         @Override
    @@ -414,6 +415,7 @@ public static final class Builder {
             SubscriptionAdminSettings.defaultCredentialsProviderBuilder().build();
         private Optional clock = Optional.absent();
         private int parallelPullCount = 1;
    +    private String endpoint = SubscriberStubSettings.getDefaultEndpoint();
     
         Builder(String subscriptionName, MessageReceiver receiver) {
           this.subscriptionName = subscriptionName;
    @@ -524,6 +526,12 @@ public Builder setParallelPullCount(int parallelPullCount) {
           return this;
         }
     
    +    /** Gives the ability to override the gRPC endpoint. */
    +    public Builder setEndpoint(String endpoint) {
    +      this.endpoint = endpoint;
    +      return this;
    +    }
    +
         /** Gives the ability to set a custom clock. */
         Builder setClock(ApiClock clock) {
           this.clock = Optional.of(clock);
    
    From e85b8ffca1f04140af0d7f3413b03f8d55135c4a Mon Sep 17 00:00:00 2001
    From: kolea2 <45548808+kolea2@users.noreply.github.com>
    Date: Wed, 31 Jul 2019 15:09:09 -0400
    Subject: [PATCH 0211/2363] Release v0.103.0 (#5950)
    
    ---
     java-pubsub/google-cloud-pubsub/README.md        | 6 +++---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     4 files changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md
    index 1966a0cdf224..0aac6681c673 100644
    --- a/java-pubsub/google-cloud-pubsub/README.md
    +++ b/java-pubsub/google-cloud-pubsub/README.md
    @@ -19,16 +19,16 @@ Add this to your pom.xml file
     
       com.google.cloud
       google-cloud-pubsub
    -  1.84.0
    +  1.85.0
     
     ```
     If you are using Gradle, add this to your dependencies
     ```Groovy
    -compile 'com.google.cloud:google-cloud-pubsub:1.84.0'
    +compile 'com.google.cloud:google-cloud-pubsub:1.85.0'
     ```
     If you are using SBT, add this to your dependencies
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.84.0"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.85.0"
     ```
     [//]: # ({x-version-update-end})
     
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 94d48da857ec..ec673f43e874 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.84.1-SNAPSHOT
    +  1.85.0
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.102.1-alpha-SNAPSHOT
    +    0.103.0-alpha
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 723313bf8211..2f51fd8a6fb3 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.66.1-SNAPSHOT
    +  1.67.0
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.67.1-SNAPSHOT
    +    0.68.0
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 7ce635fbf674..4049d4cc26ba 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.66.1-SNAPSHOT
    +  1.67.0
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.67.1-SNAPSHOT
    +    0.68.0
       
       
         
    
    From 82bdbf12aa7c1747b3683d51701c40c5a602d46f Mon Sep 17 00:00:00 2001
    From: kolea2 <45548808+kolea2@users.noreply.github.com>
    Date: Thu, 1 Aug 2019 13:21:29 -0400
    Subject: [PATCH 0212/2363] Bump next snapshot (#5958)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     3 files changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index ec673f43e874..1010cda6c0c7 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -2,7 +2,7 @@
     
       4.0.0
       google-cloud-pubsub
    -  1.85.0
    +  1.85.1-SNAPSHOT
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub
    @@ -12,7 +12,7 @@
       
         com.google.cloud
         google-cloud-clients
    -    0.103.0-alpha
    +    0.103.1-alpha-SNAPSHOT
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 2f51fd8a6fb3..9ebdcdd4faf5 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       grpc-google-cloud-pubsub-v1
    -  1.67.0
    +  1.67.1-SNAPSHOT
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.68.0
    +    0.68.1-SNAPSHOT
       
       
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 4049d4cc26ba..51c172b08ba7 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -3,13 +3,13 @@
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
       4.0.0
       proto-google-cloud-pubsub-v1
    -  1.67.0
    +  1.67.1-SNAPSHOT
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.api.grpc
         google-api-grpc
    -    0.68.0
    +    0.68.1-SNAPSHOT
       
       
         
    
    From fc374eea3a0dd7ef91bf2f7c3504e436e097671b Mon Sep 17 00:00:00 2001
    From: Yoshi Automation Bot 
    Date: Mon, 5 Aug 2019 16:40:55 -0700
    Subject: [PATCH 0213/2363] Regenerate pubsub client (#5982)
    
    * Regenerate pubsub client
    
    * Re-fix the maxInboundMessageSize config
    ---
     .../pubsub/v1/stub/PublisherStubSettings.java |   3 +-
     .../v1/stub/SubscriberStubSettings.java       |   2 +-
     .../google-cloud-pubsub/synth.metadata        |  10 +-
     java-pubsub/google-cloud-pubsub/synth.py      |   4 +-
     .../pubsub/v1/MessageStoragePolicy.java       |  91 ++--
     .../v1/MessageStoragePolicyOrBuilder.java     |  28 +-
     .../com/google/pubsub/v1/PubsubProto.java     | 406 +++++++++---------
     .../java/com/google/pubsub/v1/PushConfig.java | 154 +++----
     .../google/pubsub/v1/PushConfigOrBuilder.java |  70 +--
     .../main/java/com/google/pubsub/v1/Topic.java | 129 ++----
     .../com/google/pubsub/v1/TopicOrBuilder.java  |  33 +-
     .../main/proto/google/pubsub/v1/pubsub.proto  |  47 +-
     12 files changed, 450 insertions(+), 527 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    index 323af0694349..b260b66ddc1e 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    @@ -218,7 +218,8 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
     
       /** Returns a builder for the default ChannelProvider for this service. */
       public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
    -    return InstantiatingGrpcChannelProvider.newBuilder();
    +    return InstantiatingGrpcChannelProvider.newBuilder()
    +        .setMaxInboundMessageSize(Integer.MAX_VALUE);
       }
     
       public static TransportChannelProvider defaultTransportChannelProvider() {
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    index cd74a1d390bf..fb18f417d4ca 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    @@ -268,7 +268,7 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde
     
       /** Returns a builder for the default ChannelProvider for this service. */
       public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
    -    return InstantiatingGrpcChannelProvider.newBuilder().setMaxInboundMessageSize(20 << 20); // 20MB
    +    return InstantiatingGrpcChannelProvider.newBuilder().setMaxInboundMessageSize(20 << 20);
       }
     
       public static TransportChannelProvider defaultTransportChannelProvider() {
    diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata
    index dc7606454c9d..e917671778a8 100644
    --- a/java-pubsub/google-cloud-pubsub/synth.metadata
    +++ b/java-pubsub/google-cloud-pubsub/synth.metadata
    @@ -1,19 +1,19 @@
     {
    -  "updateTime": "2019-07-24T07:50:48.185938Z",
    +  "updateTime": "2019-08-05T19:09:21.062218Z",
       "sources": [
         {
           "generator": {
             "name": "artman",
    -        "version": "0.31.0",
    -        "dockerImage": "googleapis/artman@sha256:9aed6bbde54e26d2fcde7aa86d9f64c0278f741e58808c46573e488cbf6098f0"
    +        "version": "0.32.1",
    +        "dockerImage": "googleapis/artman@sha256:a684d40ba9a4e15946f5f2ca6b4bd9fe301192f522e9de4fff622118775f309b"
           }
         },
         {
           "git": {
             "name": "googleapis",
             "remote": "https://github.com/googleapis/googleapis.git",
    -        "sha": "3035bd51e268fcd8d6721ad2e5d081c6ee36c5c3",
    -        "internalRef": "259653050"
    +        "sha": "f94d89f4b75b4bdf6a254da44eb0f70d34bcca14",
    +        "internalRef": "261701508"
           }
         }
       ],
    diff --git a/java-pubsub/google-cloud-pubsub/synth.py b/java-pubsub/google-cloud-pubsub/synth.py
    index 0601c96b8bb0..3961bdff1fac 100644
    --- a/java-pubsub/google-cloud-pubsub/synth.py
    +++ b/java-pubsub/google-cloud-pubsub/synth.py
    @@ -37,8 +37,8 @@
     
       s.replace(
           '**/stub/SubscriberStubSettings.java',
    -      r'return InstantiatingGrpcChannelProvider\.newBuilder\(\);',
    -      'return InstantiatingGrpcChannelProvider.newBuilder().setMaxInboundMessageSize(20 << 20); // 20MB'
    +      r'setMaxInboundMessageSize\(Integer.MAX_VALUE\)',
    +      'setMaxInboundMessageSize(20 << 20)'
       )
     
       java.format_code('./src')
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    index 3c5a9a8f58cc..82a2ff6b8ac9 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    @@ -95,12 +95,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        *
        * 
    -   * The list of GCP region IDs where messages that are published to the topic
    +   * A list of IDs of GCP regions where messages that are published to the topic
        * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list indicates a
    -   * misconfiguration at the project or organization level, which will result in
    -   * all Publish operations failing.
    +   * routed for storage in one of the allowed regions. An empty list means that
    +   * no regions are allowed, and is not a valid configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -112,12 +111,11 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * *
    -   * The list of GCP region IDs where messages that are published to the topic
    +   * A list of IDs of GCP regions where messages that are published to the topic
        * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list indicates a
    -   * misconfiguration at the project or organization level, which will result in
    -   * all Publish operations failing.
    +   * routed for storage in one of the allowed regions. An empty list means that
    +   * no regions are allowed, and is not a valid configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -129,12 +127,11 @@ public int getAllowedPersistenceRegionsCount() { * * *
    -   * The list of GCP region IDs where messages that are published to the topic
    +   * A list of IDs of GCP regions where messages that are published to the topic
        * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list indicates a
    -   * misconfiguration at the project or organization level, which will result in
    -   * all Publish operations failing.
    +   * routed for storage in one of the allowed regions. An empty list means that
    +   * no regions are allowed, and is not a valid configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -146,12 +143,11 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * *
    -   * The list of GCP region IDs where messages that are published to the topic
    +   * A list of IDs of GCP regions where messages that are published to the topic
        * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list indicates a
    -   * misconfiguration at the project or organization level, which will result in
    -   * all Publish operations failing.
    +   * routed for storage in one of the allowed regions. An empty list means that
    +   * no regions are allowed, and is not a valid configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -504,12 +500,11 @@ private void ensureAllowedPersistenceRegionsIsMutable() { * * *
    -     * The list of GCP region IDs where messages that are published to the topic
    +     * A list of IDs of GCP regions where messages that are published to the topic
          * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list indicates a
    -     * misconfiguration at the project or organization level, which will result in
    -     * all Publish operations failing.
    +     * routed for storage in one of the allowed regions. An empty list means that
    +     * no regions are allowed, and is not a valid configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -521,12 +516,11 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * *
    -     * The list of GCP region IDs where messages that are published to the topic
    +     * A list of IDs of GCP regions where messages that are published to the topic
          * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list indicates a
    -     * misconfiguration at the project or organization level, which will result in
    -     * all Publish operations failing.
    +     * routed for storage in one of the allowed regions. An empty list means that
    +     * no regions are allowed, and is not a valid configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -538,12 +532,11 @@ public int getAllowedPersistenceRegionsCount() { * * *
    -     * The list of GCP region IDs where messages that are published to the topic
    +     * A list of IDs of GCP regions where messages that are published to the topic
          * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list indicates a
    -     * misconfiguration at the project or organization level, which will result in
    -     * all Publish operations failing.
    +     * routed for storage in one of the allowed regions. An empty list means that
    +     * no regions are allowed, and is not a valid configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -555,12 +548,11 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * *
    -     * The list of GCP region IDs where messages that are published to the topic
    +     * A list of IDs of GCP regions where messages that are published to the topic
          * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list indicates a
    -     * misconfiguration at the project or organization level, which will result in
    -     * all Publish operations failing.
    +     * routed for storage in one of the allowed regions. An empty list means that
    +     * no regions are allowed, and is not a valid configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -572,12 +564,11 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde * * *
    -     * The list of GCP region IDs where messages that are published to the topic
    +     * A list of IDs of GCP regions where messages that are published to the topic
          * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list indicates a
    -     * misconfiguration at the project or organization level, which will result in
    -     * all Publish operations failing.
    +     * routed for storage in one of the allowed regions. An empty list means that
    +     * no regions are allowed, and is not a valid configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -595,12 +586,11 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { * * *
    -     * The list of GCP region IDs where messages that are published to the topic
    +     * A list of IDs of GCP regions where messages that are published to the topic
          * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list indicates a
    -     * misconfiguration at the project or organization level, which will result in
    -     * all Publish operations failing.
    +     * routed for storage in one of the allowed regions. An empty list means that
    +     * no regions are allowed, and is not a valid configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -618,12 +608,11 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) { * * *
    -     * The list of GCP region IDs where messages that are published to the topic
    +     * A list of IDs of GCP regions where messages that are published to the topic
          * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list indicates a
    -     * misconfiguration at the project or organization level, which will result in
    -     * all Publish operations failing.
    +     * routed for storage in one of the allowed regions. An empty list means that
    +     * no regions are allowed, and is not a valid configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -638,12 +627,11 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable - * The list of GCP region IDs where messages that are published to the topic + * A list of IDs of GCP regions where messages that are published to the topic * may be persisted in storage. Messages published by publishers running in * non-allowed GCP regions (or running outside of GCP altogether) will be - * routed for storage in one of the allowed regions. An empty list indicates a - * misconfiguration at the project or organization level, which will result in - * all Publish operations failing. + * routed for storage in one of the allowed regions. An empty list means that + * no regions are allowed, and is not a valid configuration. *
    * * repeated string allowed_persistence_regions = 1; @@ -658,12 +646,11 @@ public Builder clearAllowedPersistenceRegions() { * * *
    -     * The list of GCP region IDs where messages that are published to the topic
    +     * A list of IDs of GCP regions where messages that are published to the topic
          * may be persisted in storage. Messages published by publishers running in
          * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list indicates a
    -     * misconfiguration at the project or organization level, which will result in
    -     * all Publish operations failing.
    +     * routed for storage in one of the allowed regions. An empty list means that
    +     * no regions are allowed, and is not a valid configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index ebc0d1454b41..5810070c1669 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -12,12 +12,11 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * The list of GCP region IDs where messages that are published to the topic
    +   * A list of IDs of GCP regions where messages that are published to the topic
        * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list indicates a
    -   * misconfiguration at the project or organization level, which will result in
    -   * all Publish operations failing.
    +   * routed for storage in one of the allowed regions. An empty list means that
    +   * no regions are allowed, and is not a valid configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -27,12 +26,11 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * The list of GCP region IDs where messages that are published to the topic
    +   * A list of IDs of GCP regions where messages that are published to the topic
        * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list indicates a
    -   * misconfiguration at the project or organization level, which will result in
    -   * all Publish operations failing.
    +   * routed for storage in one of the allowed regions. An empty list means that
    +   * no regions are allowed, and is not a valid configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -42,12 +40,11 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * The list of GCP region IDs where messages that are published to the topic
    +   * A list of IDs of GCP regions where messages that are published to the topic
        * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list indicates a
    -   * misconfiguration at the project or organization level, which will result in
    -   * all Publish operations failing.
    +   * routed for storage in one of the allowed regions. An empty list means that
    +   * no regions are allowed, and is not a valid configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -57,12 +54,11 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * The list of GCP region IDs where messages that are published to the topic
    +   * A list of IDs of GCP regions where messages that are published to the topic
        * may be persisted in storage. Messages published by publishers running in
        * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list indicates a
    -   * misconfiguration at the project or organization level, which will result in
    -   * all Publish operations failing.
    +   * routed for storage in one of the allowed regions. An empty list means that
    +   * no regions are allowed, and is not a valid configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index fa9dbb52c7c9..398ed83c1b57 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -207,204 +207,210 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n\035google/pubsub/v1/pubsub.proto\022\020google." + "pubsub.v1\032\034google/api/annotations.proto\032" - + "\031google/api/resource.proto\032\036google/proto" - + "buf/duration.proto\032\033google/protobuf/empt" - + "y.proto\032 google/protobuf/field_mask.prot" - + "o\032\037google/protobuf/timestamp.proto\";\n\024Me" - + "ssageStoragePolicy\022#\n\033allowed_persistenc" - + "e_regions\030\001 \003(\t\"\327\001\n\005Topic\022\014\n\004name\030\001 \001(\t\022" - + "3\n\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic" - + ".LabelsEntry\022F\n\026message_storage_policy\030\003" - + " \001(\0132&.google.pubsub.v1.MessageStoragePo" - + "licy\022\024\n\014kms_key_name\030\005 \001(\t\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\361\001\n\rPu" - + "bsubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030" - + "\002 \003(\0132/.google.pubsub.v1.PubsubMessage.A" - + "ttributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014pu" - + "blish_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tamp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017Attributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n" - + "\017GetTopicRequest\022\r\n\005topic\030\001 \001(\t\"m\n\022Updat" - + "eTopicRequest\022&\n\005topic\030\001 \001(\0132\027.google.pu" - + "bsub.v1.Topic\022/\n\013update_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMask\"R\n\016PublishRequest" - + "\022\r\n\005topic\030\001 \001(\t\0221\n\010messages\030\002 \003(\0132\037.goog" - + "le.pubsub.v1.PubsubMessage\"&\n\017PublishRes" - + "ponse\022\023\n\013message_ids\030\001 \003(\t\"K\n\021ListTopics" - + "Request\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListTopicsRes" - + "ponse\022\'\n\006topics\030\001 \003(\0132\027.google.pubsub.v1" - + ".Topic\022\027\n\017next_page_token\030\002 \001(\t\"U\n\035ListT" - + "opicSubscriptionsRequest\022\r\n\005topic\030\001 \001(\t\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P" - + "\n\036ListTopicSubscriptionsResponse\022\025\n\rsubs" - + "criptions\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t" - + "\"Q\n\031ListTopicSnapshotsRequest\022\r\n\005topic\030\001" - + " \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"H\n\032ListTopicSnapshotsResponse\022\021\n\tsna" - + "pshots\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n" - + "\022DeleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\245\003\n\014S" - + "ubscription\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t" - + "\0221\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1" - + ".PushConfig\022\034\n\024ack_deadline_seconds\030\005 \001(" - + "\005\022\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032mess" - + "age_retention_duration\030\010 \001(\0132\031.google.pr" - + "otobuf.Duration\022:\n\006labels\030\t \003(\0132*.google" - + ".pubsub.v1.Subscription.LabelsEntry\022\037\n\027e" - + "nable_message_ordering\030\n \001(\010\022=\n\021expirati" - + "on_policy\030\013 \001(\0132\".google.pubsub.v1.Expir" - + "ationPolicy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\":\n\020ExpirationPolicy\022&" - + "\n\003ttl\030\001 \001(\0132\031.google.protobuf.Duration\"\255" - + "\002\n\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\n" - + "attributes\030\002 \003(\0132,.google.pubsub.v1.Push" - + "Config.AttributesEntry\022<\n\noidc_token\030\003 \001" - + "(\0132&.google.pubsub.v1.PushConfig.OidcTok" - + "enH\000\032<\n\tOidcToken\022\035\n\025service_account_ema" - + "il\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017Attributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" - + "\025authentication_method\"S\n\017ReceivedMessag" - + "e\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.goo" - + "gle.pubsub.v1.PubsubMessage\".\n\026GetSubscr" - + "iptionRequest\022\024\n\014subscription\030\001 \001(\t\"\202\001\n\031" - + "UpdateSubscriptionRequest\0224\n\014subscriptio" - + "n\030\001 \001(\0132\036.google.pubsub.v1.Subscription\022" - + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMask\"R\n\030ListSubscriptionsRequest\022\017\n\007" - + "project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\"k\n\031ListSubscriptionsRespons" - + "e\0225\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub" - + ".v1.Subscription\022\027\n\017next_page_token\030\002 \001(" - + "\t\"1\n\031DeleteSubscriptionRequest\022\024\n\014subscr" - + "iption\030\001 \001(\t\"b\n\027ModifyPushConfigRequest\022" - + "\024\n\014subscription\030\001 \001(\t\0221\n\013push_config\030\002 \001" - + "(\0132\034.google.pubsub.v1.PushConfig\"U\n\013Pull" - + "Request\022\024\n\014subscription\030\001 \001(\t\022\032\n\022return_" - + "immediately\030\002 \001(\010\022\024\n\014max_messages\030\003 \001(\005\"" - + "L\n\014PullResponse\022<\n\021received_messages\030\001 \003" - + "(\0132!.google.pubsub.v1.ReceivedMessage\"_\n" - + "\030ModifyAckDeadlineRequest\022\024\n\014subscriptio" - + "n\030\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t\022\034\n\024ack_deadline" - + "_seconds\030\003 \001(\005\";\n\022AcknowledgeRequest\022\024\n\014" - + "subscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024" - + "StreamingPullRequest\022\024\n\014subscription\030\001 \001" - + "(\t\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_deadline_s" - + "econds\030\003 \003(\005\022\037\n\027modify_deadline_ack_ids\030" - + "\004 \003(\t\022#\n\033stream_ack_deadline_seconds\030\005 \001" - + "(\005\"U\n\025StreamingPullResponse\022<\n\021received_" - + "messages\030\001 \003(\0132!.google.pubsub.v1.Receiv" - + "edMessage\"\257\001\n\025CreateSnapshotRequest\022\014\n\004n" - + "ame\030\001 \001(\t\022\024\n\014subscription\030\002 \001(\t\022C\n\006label" - + "s\030\003 \003(\01323.google.pubsub.v1.CreateSnapsho" - + "tRequest.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\025UpdateSna" - + "pshotRequest\022,\n\010snapshot\030\001 \001(\0132\032.google." - + "pubsub.v1.Snapshot\022/\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMask\"\277\001\n\010Snapshot" - + "\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\022/\n\013expire_" - + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\0226" - + "\n\006labels\030\004 \003(\0132&.google.pubsub.v1.Snapsh" - + "ot.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"&\n\022GetSnapshotRequ" - + "est\022\020\n\010snapshot\030\001 \001(\t\"N\n\024ListSnapshotsRe" + + "\027google/api/client.proto\032\036google/protobu" + + "f/duration.proto\032\033google/protobuf/empty." + + "proto\032 google/protobuf/field_mask.proto\032" + + "\037google/protobuf/timestamp.proto\";\n\024Mess" + + "ageStoragePolicy\022#\n\033allowed_persistence_" + + "regions\030\001 \003(\t\"\327\001\n\005Topic\022\014\n\004name\030\001 \001(\t\0223\n" + + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.L" + + "abelsEntry\022F\n\026message_storage_policy\030\003 \001" + + "(\0132&.google.pubsub.v1.MessageStoragePoli" + + "cy\022\024\n\014kms_key_name\030\005 \001(\t\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\361\001\n\rPubs" + + "ubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 " + + "\003(\0132/.google.pubsub.v1.PubsubMessage.Att" + + "ributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publ" + + "ish_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017AttributesEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\017G" + + "etTopicRequest\022\r\n\005topic\030\001 \001(\t\"m\n\022UpdateT" + + "opicRequest\022&\n\005topic\030\001 \001(\0132\027.google.pubs" + + "ub.v1.Topic\022/\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMask\"R\n\016PublishRequest\022\r" + + "\n\005topic\030\001 \001(\t\0221\n\010messages\030\002 \003(\0132\037.google" + + ".pubsub.v1.PubsubMessage\"&\n\017PublishRespo" + + "nse\022\023\n\013message_ids\030\001 \003(\t\"K\n\021ListTopicsRe" + "quest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapshotsRe" - + "sponse\022-\n\tsnapshots\030\001 \003(\0132\032.google.pubsu" - + "b.v1.Snapshot\022\027\n\017next_page_token\030\002 \001(\t\")" - + "\n\025DeleteSnapshotRequest\022\020\n\010snapshot\030\001 \001(" - + "\t\"m\n\013SeekRequest\022\024\n\014subscription\030\001 \001(\t\022*" - + "\n\004time\030\002 \001(\0132\032.google.protobuf.Timestamp" - + "H\000\022\022\n\010snapshot\030\003 \001(\tH\000B\010\n\006target\"\016\n\014Seek" - + "Response2\277\010\n\tPublisher\022j\n\013CreateTopic\022\027." - + "google.pubsub.v1.Topic\032\027.google.pubsub.v" - + "1.Topic\")\202\323\344\223\002#\032\036/v1/{name=projects/*/to" - + "pics/*}:\001*\022}\n\013UpdateTopic\022$.google.pubsu" - + "b.v1.UpdateTopicRequest\032\027.google.pubsub." - + "v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name=projec" - + "ts/*/topics/*}:\001*\022\202\001\n\007Publish\022 .google.p" - + "ubsub.v1.PublishRequest\032!.google.pubsub." - + "v1.PublishResponse\"2\202\323\344\223\002,\"\'/v1/{topic=p" - + "rojects/*/topics/*}:publish:\001*\022o\n\010GetTop" - + "ic\022!.google.pubsub.v1.GetTopicRequest\032\027." - + "google.pubsub.v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{top" - + "ic=projects/*/topics/*}\022\200\001\n\nListTopics\022#" - + ".google.pubsub.v1.ListTopicsRequest\032$.go" - + "ogle.pubsub.v1.ListTopicsResponse\"\'\202\323\344\223\002" - + "!\022\037/v1/{project=projects/*}/topics\022\262\001\n\026L" - + "istTopicSubscriptions\022/.google.pubsub.v1" - + ".ListTopicSubscriptionsRequest\0320.google." - + "pubsub.v1.ListTopicSubscriptionsResponse" - + "\"5\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*" - + "}/subscriptions\022\242\001\n\022ListTopicSnapshots\022+" - + ".google.pubsub.v1.ListTopicSnapshotsRequ" - + "est\032,.google.pubsub.v1.ListTopicSnapshot" - + "sResponse\"1\202\323\344\223\002+\022)/v1/{topic=projects/*" - + "/topics/*}/snapshots\022t\n\013DeleteTopic\022$.go" - + "ogle.pubsub.v1.DeleteTopicRequest\032\026.goog" - + "le.protobuf.Empty\"\'\202\323\344\223\002!*\037/v1/{topic=pr" - + "ojects/*/topics/*}2\371\021\n\nSubscriber\022\206\001\n\022Cr" - + "eateSubscription\022\036.google.pubsub.v1.Subs" - + "cription\032\036.google.pubsub.v1.Subscription" - + "\"0\202\323\344\223\002*\032%/v1/{name=projects/*/subscript" - + "ions/*}:\001*\022\222\001\n\017GetSubscription\022(.google." - + "pubsub.v1.GetSubscriptionRequest\032\036.googl" - + "e.pubsub.v1.Subscription\"5\202\323\344\223\002/\022-/v1/{s" - + "ubscription=projects/*/subscriptions/*}\022" - + "\240\001\n\022UpdateSubscription\022+.google.pubsub.v" - + "1.UpdateSubscriptionRequest\032\036.google.pub" - + "sub.v1.Subscription\"=\202\323\344\223\002722/v1/{subscr" - + "iption.name=projects/*/subscriptions/*}:" - + "\001*\022\234\001\n\021ListSubscriptions\022*.google.pubsub" - + ".v1.ListSubscriptionsRequest\032+.google.pu" - + "bsub.v1.ListSubscriptionsResponse\".\202\323\344\223\002" - + "(\022&/v1/{project=projects/*}/subscription" - + "s\022\220\001\n\022DeleteSubscription\022+.google.pubsub" - + ".v1.DeleteSubscriptionRequest\032\026.google.p" - + "rotobuf.Empty\"5\202\323\344\223\002/*-/v1/{subscription" - + "=projects/*/subscriptions/*}\022\243\001\n\021ModifyA" - + "ckDeadline\022*.google.pubsub.v1.ModifyAckD" - + "eadlineRequest\032\026.google.protobuf.Empty\"J" - + "\202\323\344\223\002D\"?/v1/{subscription=projects/*/sub" - + "scriptions/*}:modifyAckDeadline:\001*\022\221\001\n\013A" - + "cknowledge\022$.google.pubsub.v1.Acknowledg" - + "eRequest\032\026.google.protobuf.Empty\"D\202\323\344\223\002>" - + "\"9/v1/{subscription=projects/*/subscript" - + "ions/*}:acknowledge:\001*\022\204\001\n\004Pull\022\035.google" - + ".pubsub.v1.PullRequest\032\036.google.pubsub.v" - + "1.PullResponse\"=\202\323\344\223\0027\"2/v1/{subscriptio" - + "n=projects/*/subscriptions/*}:pull:\001*\022f\n" - + "\rStreamingPull\022&.google.pubsub.v1.Stream" - + "ingPullRequest\032\'.google.pubsub.v1.Stream" - + "ingPullResponse\"\000(\0010\001\022\240\001\n\020ModifyPushConf" - + "ig\022).google.pubsub.v1.ModifyPushConfigRe" - + "quest\032\026.google.protobuf.Empty\"I\202\323\344\223\002C\">/" - + "v1/{subscription=projects/*/subscription" - + "s/*}:modifyPushConfig:\001*\022~\n\013GetSnapshot\022" - + "$.google.pubsub.v1.GetSnapshotRequest\032\032." - + "google.pubsub.v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{" - + "snapshot=projects/*/snapshots/*}\022\214\001\n\rLis" - + "tSnapshots\022&.google.pubsub.v1.ListSnapsh" - + "otsRequest\032\'.google.pubsub.v1.ListSnapsh" - + "otsResponse\"*\202\323\344\223\002$\022\"/v1/{project=projec" - + "ts/*}/snapshots\022\203\001\n\016CreateSnapshot\022\'.goo" - + "gle.pubsub.v1.CreateSnapshotRequest\032\032.go" - + "ogle.pubsub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{na" - + "me=projects/*/snapshots/*}:\001*\022\214\001\n\016Update" - + "Snapshot\022\'.google.pubsub.v1.UpdateSnapsh" - + "otRequest\032\032.google.pubsub.v1.Snapshot\"5\202" - + "\323\344\223\002/2*/v1/{snapshot.name=projects/*/sna" - + "pshots/*}:\001*\022\200\001\n\016DeleteSnapshot\022\'.google" - + ".pubsub.v1.DeleteSnapshotRequest\032\026.googl" - + "e.protobuf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=" - + "projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.googl" - + "e.pubsub.v1.SeekRequest\032\036.google.pubsub." - + "v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscripti" - + "on=projects/*/subscriptions/*}:seek:\001*B\256" - + "\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z6" - + "google.golang.org/genproto/googleapis/pu" - + "bsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub." - + "V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cl" - + "oud::PubSub::V1b\006proto3" + + "\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListTopicsRespo" + + "nse\022\'\n\006topics\030\001 \003(\0132\027.google.pubsub.v1.T" + + "opic\022\027\n\017next_page_token\030\002 \001(\t\"U\n\035ListTop" + + "icSubscriptionsRequest\022\r\n\005topic\030\001 \001(\t\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036" + + "ListTopicSubscriptionsResponse\022\025\n\rsubscr" + + "iptions\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"Q" + + "\n\031ListTopicSnapshotsRequest\022\r\n\005topic\030\001 \001" + + "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"H\n\032ListTopicSnapshotsResponse\022\021\n\tsnaps" + + "hots\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n\022D" + + "eleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\245\003\n\014Sub" + + "scription\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\0221" + + "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" + + "ushConfig\022\034\n\024ack_deadline_seconds\030\005 \001(\005\022" + + "\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032messag" + + "e_retention_duration\030\010 \001(\0132\031.google.prot" + + "obuf.Duration\022:\n\006labels\030\t \003(\0132*.google.p" + + "ubsub.v1.Subscription.LabelsEntry\022\037\n\027ena" + + "ble_message_ordering\030\n \001(\010\022=\n\021expiration" + + "_policy\030\013 \001(\0132\".google.pubsub.v1.Expirat" + + "ionPolicy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\":\n\020ExpirationPolicy\022&\n\003" + + "ttl\030\001 \001(\0132\031.google.protobuf.Duration\"\255\002\n" + + "\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\nat" + + "tributes\030\002 \003(\0132,.google.pubsub.v1.PushCo" + + "nfig.AttributesEntry\022<\n\noidc_token\030\003 \001(\013" + + "2&.google.pubsub.v1.PushConfig.OidcToken" + + "H\000\032<\n\tOidcToken\022\035\n\025service_account_email" + + "\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017AttributesEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025a" + + "uthentication_method\"S\n\017ReceivedMessage\022" + + "\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.googl" + + "e.pubsub.v1.PubsubMessage\".\n\026GetSubscrip" + + "tionRequest\022\024\n\014subscription\030\001 \001(\t\"\202\001\n\031Up" + + "dateSubscriptionRequest\0224\n\014subscription\030" + + "\001 \001(\0132\036.google.pubsub.v1.Subscription\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"R\n\030ListSubscriptionsRequest\022\017\n\007pr" + + "oject\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"k\n\031ListSubscriptionsResponse\022" + + "5\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub.v" + + "1.Subscription\022\027\n\017next_page_token\030\002 \001(\t\"" + + "1\n\031DeleteSubscriptionRequest\022\024\n\014subscrip" + + "tion\030\001 \001(\t\"b\n\027ModifyPushConfigRequest\022\024\n" + + "\014subscription\030\001 \001(\t\0221\n\013push_config\030\002 \001(\013" + + "2\034.google.pubsub.v1.PushConfig\"U\n\013PullRe" + + "quest\022\024\n\014subscription\030\001 \001(\t\022\032\n\022return_im" + + "mediately\030\002 \001(\010\022\024\n\014max_messages\030\003 \001(\005\"L\n" + + "\014PullResponse\022<\n\021received_messages\030\001 \003(\013" + + "2!.google.pubsub.v1.ReceivedMessage\"_\n\030M" + + "odifyAckDeadlineRequest\022\024\n\014subscription\030" + + "\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t\022\034\n\024ack_deadline_s" + + "econds\030\003 \001(\005\";\n\022AcknowledgeRequest\022\024\n\014su" + + "bscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024St" + + "reamingPullRequest\022\024\n\014subscription\030\001 \001(\t" + + "\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_deadline_sec" + + "onds\030\003 \003(\005\022\037\n\027modify_deadline_ack_ids\030\004 " + + "\003(\t\022#\n\033stream_ack_deadline_seconds\030\005 \001(\005" + + "\"U\n\025StreamingPullResponse\022<\n\021received_me" + + "ssages\030\001 \003(\0132!.google.pubsub.v1.Received" + + "Message\"\257\001\n\025CreateSnapshotRequest\022\014\n\004nam" + + "e\030\001 \001(\t\022\024\n\014subscription\030\002 \001(\t\022C\n\006labels\030" + + "\003 \003(\01323.google.pubsub.v1.CreateSnapshotR" + + "equest.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\025UpdateSnaps" + + "hotRequest\022,\n\010snapshot\030\001 \001(\0132\032.google.pu" + + "bsub.v1.Snapshot\022/\n\013update_mask\030\002 \001(\0132\032." + + "google.protobuf.FieldMask\"\277\001\n\010Snapshot\022\014" + + "\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\022/\n\013expire_ti" + + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\0226\n\006" + + "labels\030\004 \003(\0132&.google.pubsub.v1.Snapshot" + + ".LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"&\n\022GetSnapshotReques" + + "t\022\020\n\010snapshot\030\001 \001(\t\"N\n\024ListSnapshotsRequ" + + "est\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapshotsResp" + + "onse\022-\n\tsnapshots\030\001 \003(\0132\032.google.pubsub." + + "v1.Snapshot\022\027\n\017next_page_token\030\002 \001(\t\")\n\025" + + "DeleteSnapshotRequest\022\020\n\010snapshot\030\001 \001(\t\"" + + "m\n\013SeekRequest\022\024\n\014subscription\030\001 \001(\t\022*\n\004" + + "time\030\002 \001(\0132\032.google.protobuf.TimestampH\000" + + "\022\022\n\010snapshot\030\003 \001(\tH\000B\010\n\006target\"\016\n\014SeekRe" + + "sponse2\261\t\n\tPublisher\022j\n\013CreateTopic\022\027.go" + + "ogle.pubsub.v1.Topic\032\027.google.pubsub.v1." + + "Topic\")\202\323\344\223\002#\032\036/v1/{name=projects/*/topi" + + "cs/*}:\001*\022}\n\013UpdateTopic\022$.google.pubsub." + + "v1.UpdateTopicRequest\032\027.google.pubsub.v1" + + ".Topic\"/\202\323\344\223\002)2$/v1/{topic.name=projects" + + "/*/topics/*}:\001*\022\202\001\n\007Publish\022 .google.pub" + + "sub.v1.PublishRequest\032!.google.pubsub.v1" + + ".PublishResponse\"2\202\323\344\223\002,\"\'/v1/{topic=pro" + + "jects/*/topics/*}:publish:\001*\022o\n\010GetTopic" + + "\022!.google.pubsub.v1.GetTopicRequest\032\027.go" + + "ogle.pubsub.v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic" + + "=projects/*/topics/*}\022\200\001\n\nListTopics\022#.g" + + "oogle.pubsub.v1.ListTopicsRequest\032$.goog" + + "le.pubsub.v1.ListTopicsResponse\"\'\202\323\344\223\002!\022" + + "\037/v1/{project=projects/*}/topics\022\262\001\n\026Lis" + + "tTopicSubscriptions\022/.google.pubsub.v1.L" + + "istTopicSubscriptionsRequest\0320.google.pu" + + "bsub.v1.ListTopicSubscriptionsResponse\"5" + + "\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/" + + "subscriptions\022\242\001\n\022ListTopicSnapshots\022+.g" + + "oogle.pubsub.v1.ListTopicSnapshotsReques" + + "t\032,.google.pubsub.v1.ListTopicSnapshotsR" + + "esponse\"1\202\323\344\223\002+\022)/v1/{topic=projects/*/t" + + "opics/*}/snapshots\022t\n\013DeleteTopic\022$.goog" + + "le.pubsub.v1.DeleteTopicRequest\032\026.google" + + ".protobuf.Empty\"\'\202\323\344\223\002!*\037/v1/{topic=proj" + + "ects/*/topics/*}\032p\312A\025pubsub.googleapis.c" + + "om\322AUhttps://www.googleapis.com/auth/clo" + + "ud-platform,https://www.googleapis.com/a" + + "uth/pubsub2\353\022\n\nSubscriber\022\206\001\n\022CreateSubs" + + "cription\022\036.google.pubsub.v1.Subscription" + + "\032\036.google.pubsub.v1.Subscription\"0\202\323\344\223\002*" + + "\032%/v1/{name=projects/*/subscriptions/*}:" + + "\001*\022\222\001\n\017GetSubscription\022(.google.pubsub.v" + + "1.GetSubscriptionRequest\032\036.google.pubsub" + + ".v1.Subscription\"5\202\323\344\223\002/\022-/v1/{subscript" + + "ion=projects/*/subscriptions/*}\022\240\001\n\022Upda" + + "teSubscription\022+.google.pubsub.v1.Update" + + "SubscriptionRequest\032\036.google.pubsub.v1.S" + + "ubscription\"=\202\323\344\223\002722/v1/{subscription.n" + + "ame=projects/*/subscriptions/*}:\001*\022\234\001\n\021L" + + "istSubscriptions\022*.google.pubsub.v1.List" + + "SubscriptionsRequest\032+.google.pubsub.v1." + + "ListSubscriptionsResponse\".\202\323\344\223\002(\022&/v1/{" + + "project=projects/*}/subscriptions\022\220\001\n\022De" + + "leteSubscription\022+.google.pubsub.v1.Dele" + + "teSubscriptionRequest\032\026.google.protobuf." + + "Empty\"5\202\323\344\223\002/*-/v1/{subscription=project" + + "s/*/subscriptions/*}\022\243\001\n\021ModifyAckDeadli" + + "ne\022*.google.pubsub.v1.ModifyAckDeadlineR" + + "equest\032\026.google.protobuf.Empty\"J\202\323\344\223\002D\"?" + + "/v1/{subscription=projects/*/subscriptio" + + "ns/*}:modifyAckDeadline:\001*\022\221\001\n\013Acknowled" + + "ge\022$.google.pubsub.v1.AcknowledgeRequest" + + "\032\026.google.protobuf.Empty\"D\202\323\344\223\002>\"9/v1/{s" + + "ubscription=projects/*/subscriptions/*}:" + + "acknowledge:\001*\022\204\001\n\004Pull\022\035.google.pubsub." + + "v1.PullRequest\032\036.google.pubsub.v1.PullRe" + + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" + + "ts/*/subscriptions/*}:pull:\001*\022f\n\rStreami" + + "ngPull\022&.google.pubsub.v1.StreamingPullR" + + "equest\032\'.google.pubsub.v1.StreamingPullR" + + "esponse\"\000(\0010\001\022\240\001\n\020ModifyPushConfig\022).goo" + + "gle.pubsub.v1.ModifyPushConfigRequest\032\026." + + "google.protobuf.Empty\"I\202\323\344\223\002C\">/v1/{subs" + + "cription=projects/*/subscriptions/*}:mod" + + "ifyPushConfig:\001*\022~\n\013GetSnapshot\022$.google" + + ".pubsub.v1.GetSnapshotRequest\032\032.google.p" + + "ubsub.v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{snapshot" + + "=projects/*/snapshots/*}\022\214\001\n\rListSnapsho" + + "ts\022&.google.pubsub.v1.ListSnapshotsReque" + + "st\032\'.google.pubsub.v1.ListSnapshotsRespo" + + "nse\"*\202\323\344\223\002$\022\"/v1/{project=projects/*}/sn" + + "apshots\022\203\001\n\016CreateSnapshot\022\'.google.pubs" + + "ub.v1.CreateSnapshotRequest\032\032.google.pub" + + "sub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=proje" + + "cts/*/snapshots/*}:\001*\022\214\001\n\016UpdateSnapshot" + + "\022\'.google.pubsub.v1.UpdateSnapshotReques" + + "t\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/" + + "v1/{snapshot.name=projects/*/snapshots/*" + + "}:\001*\022\200\001\n\016DeleteSnapshot\022\'.google.pubsub." + + "v1.DeleteSnapshotRequest\032\026.google.protob" + + "uf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=projects" + + "/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub" + + ".v1.SeekRequest\032\036.google.pubsub.v1.SeekR" + + "esponse\"=\202\323\344\223\0027\"2/v1/{subscription=proje" + + "cts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsu" + + "b.googleapis.com\322AUhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/pubsubB\256\001\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\\Cl" + + "oud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V" + + "1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -418,7 +424,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -803,11 +809,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index eb35bcd1fe94..28ee321bf8d8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1135,22 +1135,22 @@ public int getAttributesCount() { * * *
    -   * Endpoint configuration attributes.
    -   * Every endpoint has a set of API supported attributes that can be used to
    -   * control different aspects of the message delivery.
    -   * The currently supported attribute is `x-goog-version`, which you can
    +   * Endpoint configuration attributes that can be used to control different
    +   * aspects of the message delivery.
    +   * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    -   * The endpoint version is based on the version of the Pub/Sub API.
        * If not present during the `CreateSubscription` call, it will default to
    -   * the version of the API used to make such call. If not present during a
    +   * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    -   * The possible values for this attribute are:
    +   * The only supported values for the `x-goog-version` attribute are:
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   * For example:
    +   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
        * 
    * * map<string, string> attributes = 2; @@ -1170,22 +1170,22 @@ public java.util.Map getAttributes() { * * *
    -   * Endpoint configuration attributes.
    -   * Every endpoint has a set of API supported attributes that can be used to
    -   * control different aspects of the message delivery.
    -   * The currently supported attribute is `x-goog-version`, which you can
    +   * Endpoint configuration attributes that can be used to control different
    +   * aspects of the message delivery.
    +   * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    -   * The endpoint version is based on the version of the Pub/Sub API.
        * If not present during the `CreateSubscription` call, it will default to
    -   * the version of the API used to make such call. If not present during a
    +   * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    -   * The possible values for this attribute are:
    +   * The only supported values for the `x-goog-version` attribute are:
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   * For example:
    +   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
        * 
    * * map<string, string> attributes = 2; @@ -1197,22 +1197,22 @@ public java.util.Map getAttributesMap() { * * *
    -   * Endpoint configuration attributes.
    -   * Every endpoint has a set of API supported attributes that can be used to
    -   * control different aspects of the message delivery.
    -   * The currently supported attribute is `x-goog-version`, which you can
    +   * Endpoint configuration attributes that can be used to control different
    +   * aspects of the message delivery.
    +   * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    -   * The endpoint version is based on the version of the Pub/Sub API.
        * If not present during the `CreateSubscription` call, it will default to
    -   * the version of the API used to make such call. If not present during a
    +   * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    -   * The possible values for this attribute are:
    +   * The only supported values for the `x-goog-version` attribute are:
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   * For example:
    +   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
        * 
    * * map<string, string> attributes = 2; @@ -1229,22 +1229,22 @@ public java.lang.String getAttributesOrDefault( * * *
    -   * Endpoint configuration attributes.
    -   * Every endpoint has a set of API supported attributes that can be used to
    -   * control different aspects of the message delivery.
    -   * The currently supported attribute is `x-goog-version`, which you can
    +   * Endpoint configuration attributes that can be used to control different
    +   * aspects of the message delivery.
    +   * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    -   * The endpoint version is based on the version of the Pub/Sub API.
        * If not present during the `CreateSubscription` call, it will default to
    -   * the version of the API used to make such call. If not present during a
    +   * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    -   * The possible values for this attribute are:
    +   * The only supported values for the `x-goog-version` attribute are:
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   * For example:
    +   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
        * 
    * * map<string, string> attributes = 2; @@ -1855,22 +1855,22 @@ public int getAttributesCount() { * * *
    -     * Endpoint configuration attributes.
    -     * Every endpoint has a set of API supported attributes that can be used to
    -     * control different aspects of the message delivery.
    -     * The currently supported attribute is `x-goog-version`, which you can
    +     * Endpoint configuration attributes that can be used to control different
    +     * aspects of the message delivery.
    +     * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    -     * The endpoint version is based on the version of the Pub/Sub API.
          * If not present during the `CreateSubscription` call, it will default to
    -     * the version of the API used to make such call. If not present during a
    +     * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    -     * The possible values for this attribute are:
    +     * The only supported values for the `x-goog-version` attribute are:
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     * For example:
    +     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
          * 
    * * map<string, string> attributes = 2; @@ -1890,22 +1890,22 @@ public java.util.Map getAttributes() { * * *
    -     * Endpoint configuration attributes.
    -     * Every endpoint has a set of API supported attributes that can be used to
    -     * control different aspects of the message delivery.
    -     * The currently supported attribute is `x-goog-version`, which you can
    +     * Endpoint configuration attributes that can be used to control different
    +     * aspects of the message delivery.
    +     * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    -     * The endpoint version is based on the version of the Pub/Sub API.
          * If not present during the `CreateSubscription` call, it will default to
    -     * the version of the API used to make such call. If not present during a
    +     * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    -     * The possible values for this attribute are:
    +     * The only supported values for the `x-goog-version` attribute are:
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     * For example:
    +     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
          * 
    * * map<string, string> attributes = 2; @@ -1917,22 +1917,22 @@ public java.util.Map getAttributesMap() { * * *
    -     * Endpoint configuration attributes.
    -     * Every endpoint has a set of API supported attributes that can be used to
    -     * control different aspects of the message delivery.
    -     * The currently supported attribute is `x-goog-version`, which you can
    +     * Endpoint configuration attributes that can be used to control different
    +     * aspects of the message delivery.
    +     * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    -     * The endpoint version is based on the version of the Pub/Sub API.
          * If not present during the `CreateSubscription` call, it will default to
    -     * the version of the API used to make such call. If not present during a
    +     * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    -     * The possible values for this attribute are:
    +     * The only supported values for the `x-goog-version` attribute are:
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     * For example:
    +     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
          * 
    * * map<string, string> attributes = 2; @@ -1949,22 +1949,22 @@ public java.lang.String getAttributesOrDefault( * * *
    -     * Endpoint configuration attributes.
    -     * Every endpoint has a set of API supported attributes that can be used to
    -     * control different aspects of the message delivery.
    -     * The currently supported attribute is `x-goog-version`, which you can
    +     * Endpoint configuration attributes that can be used to control different
    +     * aspects of the message delivery.
    +     * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    -     * The endpoint version is based on the version of the Pub/Sub API.
          * If not present during the `CreateSubscription` call, it will default to
    -     * the version of the API used to make such call. If not present during a
    +     * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    -     * The possible values for this attribute are:
    +     * The only supported values for the `x-goog-version` attribute are:
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     * For example:
    +     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
          * 
    * * map<string, string> attributes = 2; @@ -1988,22 +1988,22 @@ public Builder clearAttributes() { * * *
    -     * Endpoint configuration attributes.
    -     * Every endpoint has a set of API supported attributes that can be used to
    -     * control different aspects of the message delivery.
    -     * The currently supported attribute is `x-goog-version`, which you can
    +     * Endpoint configuration attributes that can be used to control different
    +     * aspects of the message delivery.
    +     * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    -     * The endpoint version is based on the version of the Pub/Sub API.
          * If not present during the `CreateSubscription` call, it will default to
    -     * the version of the API used to make such call. If not present during a
    +     * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    -     * The possible values for this attribute are:
    +     * The only supported values for the `x-goog-version` attribute are:
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     * For example:
    +     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
          * 
    * * map<string, string> attributes = 2; @@ -2024,22 +2024,22 @@ public java.util.Map getMutableAttributes() * * *
    -     * Endpoint configuration attributes.
    -     * Every endpoint has a set of API supported attributes that can be used to
    -     * control different aspects of the message delivery.
    -     * The currently supported attribute is `x-goog-version`, which you can
    +     * Endpoint configuration attributes that can be used to control different
    +     * aspects of the message delivery.
    +     * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    -     * The endpoint version is based on the version of the Pub/Sub API.
          * If not present during the `CreateSubscription` call, it will default to
    -     * the version of the API used to make such call. If not present during a
    +     * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    -     * The possible values for this attribute are:
    +     * The only supported values for the `x-goog-version` attribute are:
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     * For example:
    +     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
          * 
    * * map<string, string> attributes = 2; @@ -2058,22 +2058,22 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { * * *
    -     * Endpoint configuration attributes.
    -     * Every endpoint has a set of API supported attributes that can be used to
    -     * control different aspects of the message delivery.
    -     * The currently supported attribute is `x-goog-version`, which you can
    +     * Endpoint configuration attributes that can be used to control different
    +     * aspects of the message delivery.
    +     * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    -     * The endpoint version is based on the version of the Pub/Sub API.
          * If not present during the `CreateSubscription` call, it will default to
    -     * the version of the API used to make such call. If not present during a
    +     * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    -     * The possible values for this attribute are:
    +     * The only supported values for the `x-goog-version` attribute are:
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     * For example:
    +     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
          * 
    * * map<string, string> attributes = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index b43de54a3da1..729f217b72d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -35,22 +35,22 @@ public interface PushConfigOrBuilder * * *
    -   * Endpoint configuration attributes.
    -   * Every endpoint has a set of API supported attributes that can be used to
    -   * control different aspects of the message delivery.
    -   * The currently supported attribute is `x-goog-version`, which you can
    +   * Endpoint configuration attributes that can be used to control different
    +   * aspects of the message delivery.
    +   * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    -   * The endpoint version is based on the version of the Pub/Sub API.
        * If not present during the `CreateSubscription` call, it will default to
    -   * the version of the API used to make such call. If not present during a
    +   * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    -   * The possible values for this attribute are:
    +   * The only supported values for the `x-goog-version` attribute are:
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   * For example:
    +   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
        * 
    * * map<string, string> attributes = 2; @@ -60,22 +60,22 @@ public interface PushConfigOrBuilder * * *
    -   * Endpoint configuration attributes.
    -   * Every endpoint has a set of API supported attributes that can be used to
    -   * control different aspects of the message delivery.
    -   * The currently supported attribute is `x-goog-version`, which you can
    +   * Endpoint configuration attributes that can be used to control different
    +   * aspects of the message delivery.
    +   * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    -   * The endpoint version is based on the version of the Pub/Sub API.
        * If not present during the `CreateSubscription` call, it will default to
    -   * the version of the API used to make such call. If not present during a
    +   * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    -   * The possible values for this attribute are:
    +   * The only supported values for the `x-goog-version` attribute are:
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   * For example:
    +   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
        * 
    * * map<string, string> attributes = 2; @@ -88,22 +88,22 @@ public interface PushConfigOrBuilder * * *
    -   * Endpoint configuration attributes.
    -   * Every endpoint has a set of API supported attributes that can be used to
    -   * control different aspects of the message delivery.
    -   * The currently supported attribute is `x-goog-version`, which you can
    +   * Endpoint configuration attributes that can be used to control different
    +   * aspects of the message delivery.
    +   * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    -   * The endpoint version is based on the version of the Pub/Sub API.
        * If not present during the `CreateSubscription` call, it will default to
    -   * the version of the API used to make such call. If not present during a
    +   * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    -   * The possible values for this attribute are:
    +   * The only supported values for the `x-goog-version` attribute are:
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   * For example:
    +   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
        * 
    * * map<string, string> attributes = 2; @@ -113,22 +113,22 @@ public interface PushConfigOrBuilder * * *
    -   * Endpoint configuration attributes.
    -   * Every endpoint has a set of API supported attributes that can be used to
    -   * control different aspects of the message delivery.
    -   * The currently supported attribute is `x-goog-version`, which you can
    +   * Endpoint configuration attributes that can be used to control different
    +   * aspects of the message delivery.
    +   * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    -   * The endpoint version is based on the version of the Pub/Sub API.
        * If not present during the `CreateSubscription` call, it will default to
    -   * the version of the API used to make such call. If not present during a
    +   * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    -   * The possible values for this attribute are:
    +   * The only supported values for the `x-goog-version` attribute are:
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   * For example:
    +   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
        * 
    * * map<string, string> attributes = 2; @@ -138,22 +138,22 @@ public interface PushConfigOrBuilder * * *
    -   * Endpoint configuration attributes.
    -   * Every endpoint has a set of API supported attributes that can be used to
    -   * control different aspects of the message delivery.
    -   * The currently supported attribute is `x-goog-version`, which you can
    +   * Endpoint configuration attributes that can be used to control different
    +   * aspects of the message delivery.
    +   * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    -   * The endpoint version is based on the version of the Pub/Sub API.
        * If not present during the `CreateSubscription` call, it will default to
    -   * the version of the API used to make such call. If not present during a
    +   * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    -   * The possible values for this attribute are:
    +   * The only supported values for the `x-goog-version` attribute are:
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   * For example:
    +   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
        * 
    * * map<string, string> attributes = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 34fa444e9e62..3441012ff078 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -294,12 +294,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
    -   * Policy constraining how messages published to the topic may be stored. It
    -   * is determined when the topic is created based on the policy configured at
    -   * the project level. It must not be set by the caller in the request to
    -   * CreateTopic or to UpdateTopic. This field will be populated in the
    -   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -   * response, then no constraints are in effect.
    +   * Policy constraining the set of Google Cloud Platform regions where messages
    +   * published to the topic may be stored. If not present, then no constraints
    +   * are in effect.
        * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -311,12 +308,9 @@ public boolean hasMessageStoragePolicy() { * * *
    -   * Policy constraining how messages published to the topic may be stored. It
    -   * is determined when the topic is created based on the policy configured at
    -   * the project level. It must not be set by the caller in the request to
    -   * CreateTopic or to UpdateTopic. This field will be populated in the
    -   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -   * response, then no constraints are in effect.
    +   * Policy constraining the set of Google Cloud Platform regions where messages
    +   * published to the topic may be stored. If not present, then no constraints
    +   * are in effect.
        * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -330,12 +324,9 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { * * *
    -   * Policy constraining how messages published to the topic may be stored. It
    -   * is determined when the topic is created based on the policy configured at
    -   * the project level. It must not be set by the caller in the request to
    -   * CreateTopic or to UpdateTopic. This field will be populated in the
    -   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -   * response, then no constraints are in effect.
    +   * Policy constraining the set of Google Cloud Platform regions where messages
    +   * published to the topic may be stored. If not present, then no constraints
    +   * are in effect.
        * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -353,9 +344,6 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * 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/*`. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string kms_key_name = 5; @@ -378,9 +366,6 @@ public java.lang.String getKmsKeyName() { * 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/*`. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string kms_key_name = 5; @@ -1086,12 +1071,9 @@ public Builder putAllLabels(java.util.Map va * * *
    -     * Policy constraining how messages published to the topic may be stored. It
    -     * is determined when the topic is created based on the policy configured at
    -     * the project level. It must not be set by the caller in the request to
    -     * CreateTopic or to UpdateTopic. This field will be populated in the
    -     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -     * response, then no constraints are in effect.
    +     * Policy constraining the set of Google Cloud Platform regions where messages
    +     * published to the topic may be stored. If not present, then no constraints
    +     * are in effect.
          * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -1103,12 +1085,9 @@ public boolean hasMessageStoragePolicy() { * * *
    -     * Policy constraining how messages published to the topic may be stored. It
    -     * is determined when the topic is created based on the policy configured at
    -     * the project level. It must not be set by the caller in the request to
    -     * CreateTopic or to UpdateTopic. This field will be populated in the
    -     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -     * response, then no constraints are in effect.
    +     * Policy constraining the set of Google Cloud Platform regions where messages
    +     * published to the topic may be stored. If not present, then no constraints
    +     * are in effect.
          * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -1126,12 +1105,9 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { * * *
    -     * Policy constraining how messages published to the topic may be stored. It
    -     * is determined when the topic is created based on the policy configured at
    -     * the project level. It must not be set by the caller in the request to
    -     * CreateTopic or to UpdateTopic. This field will be populated in the
    -     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -     * response, then no constraints are in effect.
    +     * Policy constraining the set of Google Cloud Platform regions where messages
    +     * published to the topic may be stored. If not present, then no constraints
    +     * are in effect.
          * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -1153,12 +1129,9 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy * * *
    -     * Policy constraining how messages published to the topic may be stored. It
    -     * is determined when the topic is created based on the policy configured at
    -     * the project level. It must not be set by the caller in the request to
    -     * CreateTopic or to UpdateTopic. This field will be populated in the
    -     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -     * response, then no constraints are in effect.
    +     * Policy constraining the set of Google Cloud Platform regions where messages
    +     * published to the topic may be stored. If not present, then no constraints
    +     * are in effect.
          * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -1178,12 +1151,9 @@ public Builder setMessageStoragePolicy( * * *
    -     * Policy constraining how messages published to the topic may be stored. It
    -     * is determined when the topic is created based on the policy configured at
    -     * the project level. It must not be set by the caller in the request to
    -     * CreateTopic or to UpdateTopic. This field will be populated in the
    -     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -     * response, then no constraints are in effect.
    +     * Policy constraining the set of Google Cloud Platform regions where messages
    +     * published to the topic may be stored. If not present, then no constraints
    +     * are in effect.
          * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -1209,12 +1179,9 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli * * *
    -     * Policy constraining how messages published to the topic may be stored. It
    -     * is determined when the topic is created based on the policy configured at
    -     * the project level. It must not be set by the caller in the request to
    -     * CreateTopic or to UpdateTopic. This field will be populated in the
    -     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -     * response, then no constraints are in effect.
    +     * Policy constraining the set of Google Cloud Platform regions where messages
    +     * published to the topic may be stored. If not present, then no constraints
    +     * are in effect.
          * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -1234,12 +1201,9 @@ public Builder clearMessageStoragePolicy() { * * *
    -     * Policy constraining how messages published to the topic may be stored. It
    -     * is determined when the topic is created based on the policy configured at
    -     * the project level. It must not be set by the caller in the request to
    -     * CreateTopic or to UpdateTopic. This field will be populated in the
    -     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -     * response, then no constraints are in effect.
    +     * Policy constraining the set of Google Cloud Platform regions where messages
    +     * published to the topic may be stored. If not present, then no constraints
    +     * are in effect.
          * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -1253,12 +1217,9 @@ public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicy * * *
    -     * Policy constraining how messages published to the topic may be stored. It
    -     * is determined when the topic is created based on the policy configured at
    -     * the project level. It must not be set by the caller in the request to
    -     * CreateTopic or to UpdateTopic. This field will be populated in the
    -     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -     * response, then no constraints are in effect.
    +     * Policy constraining the set of Google Cloud Platform regions where messages
    +     * published to the topic may be stored. If not present, then no constraints
    +     * are in effect.
          * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -1276,12 +1237,9 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * * *
    -     * Policy constraining how messages published to the topic may be stored. It
    -     * is determined when the topic is created based on the policy configured at
    -     * the project level. It must not be set by the caller in the request to
    -     * CreateTopic or to UpdateTopic. This field will be populated in the
    -     * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -     * response, then no constraints are in effect.
    +     * Policy constraining the set of Google Cloud Platform regions where messages
    +     * published to the topic may be stored. If not present, then no constraints
    +     * are in effect.
          * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -1311,9 +1269,6 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * 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/*`. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string kms_key_name = 5; @@ -1336,9 +1291,6 @@ public java.lang.String getKmsKeyName() { * 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/*`. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string kms_key_name = 5; @@ -1361,9 +1313,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * 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/*`. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string kms_key_name = 5; @@ -1384,9 +1333,6 @@ public Builder setKmsKeyName(java.lang.String value) { * 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/*`. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string kms_key_name = 5; @@ -1404,9 +1350,6 @@ public Builder clearKmsKeyName() { * 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/*`. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string kms_key_name = 5; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index f1c27b778a09..67921c8d2b59 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -102,12 +102,9 @@ public interface TopicOrBuilder * * *
    -   * Policy constraining how messages published to the topic may be stored. It
    -   * is determined when the topic is created based on the policy configured at
    -   * the project level. It must not be set by the caller in the request to
    -   * CreateTopic or to UpdateTopic. This field will be populated in the
    -   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -   * response, then no constraints are in effect.
    +   * Policy constraining the set of Google Cloud Platform regions where messages
    +   * published to the topic may be stored. If not present, then no constraints
    +   * are in effect.
        * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -117,12 +114,9 @@ public interface TopicOrBuilder * * *
    -   * Policy constraining how messages published to the topic may be stored. It
    -   * is determined when the topic is created based on the policy configured at
    -   * the project level. It must not be set by the caller in the request to
    -   * CreateTopic or to UpdateTopic. This field will be populated in the
    -   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -   * response, then no constraints are in effect.
    +   * Policy constraining the set of Google Cloud Platform regions where messages
    +   * published to the topic may be stored. If not present, then no constraints
    +   * are in effect.
        * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -132,12 +126,9 @@ public interface TopicOrBuilder * * *
    -   * Policy constraining how messages published to the topic may be stored. It
    -   * is determined when the topic is created based on the policy configured at
    -   * the project level. It must not be set by the caller in the request to
    -   * CreateTopic or to UpdateTopic. This field will be populated in the
    -   * responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the
    -   * response, then no constraints are in effect.
    +   * Policy constraining the set of Google Cloud Platform regions where messages
    +   * published to the topic may be stored. If not present, then no constraints
    +   * are in effect.
        * 
    * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; @@ -151,9 +142,6 @@ public interface TopicOrBuilder * 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/*`. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string kms_key_name = 5; @@ -166,9 +154,6 @@ public interface TopicOrBuilder * 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/*`. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string kms_key_name = 5; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 7cea47b1e539..ea0d4c7e53e5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -18,7 +18,7 @@ syntax = "proto3"; package google.pubsub.v1; import "google/api/annotations.proto"; -import "google/api/resource.proto"; +import "google/api/client.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -36,6 +36,11 @@ option ruby_package = "Google::Cloud::PubSub::V1"; // The service that an application uses to manipulate topics, and to send // messages to a topic. service Publisher { + option (google.api.default_host) = "pubsub.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/pubsub"; + // Creates the given topic with the given name. See the //
    // resource name rules. @@ -112,12 +117,11 @@ service Publisher { } message MessageStoragePolicy { - // The list of GCP region IDs where messages that are published to the topic + // A list of IDs of GCP regions where messages that are published to the topic // may be persisted in storage. Messages published by publishers running in // non-allowed GCP regions (or running outside of GCP altogether) will be - // routed for storage in one of the allowed regions. An empty list indicates a - // misconfiguration at the project or organization level, which will result in - // all Publish operations failing. + // routed for storage in one of the allowed regions. An empty list means that + // no regions are allowed, and is not a valid configuration. repeated string allowed_persistence_regions = 1; } @@ -135,21 +139,15 @@ message Topic { // managing labels. map labels = 2; - // Policy constraining how messages published to the topic may be stored. It - // is determined when the topic is created based on the policy configured at - // the project level. It must not be set by the caller in the request to - // CreateTopic or to UpdateTopic. This field will be populated in the - // responses for GetTopic, CreateTopic, and UpdateTopic: if not present in the - // response, then no constraints are in effect. + // Policy constraining the set of Google Cloud Platform regions where messages + // published to the topic may be stored. If not present, then no constraints + // are in effect. MessageStoragePolicy message_storage_policy = 3; // 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/*`. - // 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. string kms_key_name = 5; } @@ -316,6 +314,11 @@ message DeleteTopicRequest { // consume messages from a subscription via the `Pull` method or by // establishing a bi-directional stream using the `StreamingPull` method. service Subscriber { + option (google.api.default_host) = "pubsub.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/pubsub"; + // Creates a subscription to a given topic. See the // // resource name rules. @@ -646,27 +649,27 @@ message PushConfig { // For example, a Webhook endpoint might use "https://example.com/push". string push_endpoint = 1; - // Endpoint configuration attributes. - // - // Every endpoint has a set of API supported attributes that can be used to - // control different aspects of the message delivery. + // Endpoint configuration attributes that can be used to control different + // aspects of the message delivery. // - // The currently supported attribute is `x-goog-version`, which you can + // The only currently supported attribute is `x-goog-version`, which you can // use to change the format of the pushed message. This attribute // indicates the version of the data expected by the endpoint. This // controls the shape of the pushed message (i.e., its fields and metadata). - // The endpoint version is based on the version of the Pub/Sub API. // // If not present during the `CreateSubscription` call, it will default to - // the version of the API used to make such call. If not present during a + // the version of the Pub/Sub API used to make such call. If not present in a // `ModifyPushConfig` call, its value will not be changed. `GetSubscription` // calls will always return a valid version, even if the subscription was // created without this attribute. // - // The possible values for this attribute are: + // The only supported values for the `x-goog-version` attribute are: // // * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API. // * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. + // + // For example: + //
    attributes { "x-goog-version": "v1" } 
    map attributes = 2; // An authentication method used by push endpoints to verify the source of From 2ebc762dcd34748d8a3307c2c7f615eb07c57a1d Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 7 Aug 2019 10:00:27 -0700 Subject: [PATCH 0214/2363] Release v0.104.0 (#6048) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 0aac6681c673..4b0bb881d913 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.85.0 + 1.86.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.85.0' +compile 'com.google.cloud:google-cloud-pubsub:1.86.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.86.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1010cda6c0c7..cd4a498a9d38 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.85.1-SNAPSHOT + 1.86.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.103.1-alpha-SNAPSHOT + 0.104.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9ebdcdd4faf5..a267510f828d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.67.1-SNAPSHOT + 1.68.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.68.1-SNAPSHOT + 0.69.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 51c172b08ba7..3a410b1b1e66 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.67.1-SNAPSHOT + 1.68.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.68.1-SNAPSHOT + 0.69.0 From 8d8b0710de24f0a4478121dd730ec645fa7964fd Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 8 Aug 2019 12:07:43 -0700 Subject: [PATCH 0215/2363] Bump next snapshot (#6055) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cd4a498a9d38..754830e19021 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.86.0 + 1.86.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.104.0-alpha + 0.104.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a267510f828d..e5e1125e4fb2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.68.0 + 1.68.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.69.0 + 0.69.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3a410b1b1e66..f4ee8ae71deb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.68.0 + 1.68.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.69.0 + 0.69.1-SNAPSHOT From fe2cc5e36499bdf5b5c45a69a8b7896c6dcd3483 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 14 Aug 2019 10:05:25 -0700 Subject: [PATCH 0216/2363] Fix links to googleapis.dev from GitHub pages (#6070) --- java-pubsub/google-cloud-pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 4b0bb881d913..6851c8ae2f3b 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -240,4 +240,4 @@ Apache 2.0 - See [LICENSE] for more information. [cloud-pubsub]: https://cloud.google.com/pubsub/ [cloud-pubsub-quickstart]: https://cloud.google.com/pubsub/quickstart-console#before-you-begin [pubsub-product-docs]: https://cloud.google.com/pubsub/docs/ -[pubsub-client-lib-docs]: https://googleapis.github.io/google-cloud-java/google-cloud-clients/apidocs/index.html?com/google/cloud/pubsub/v1/package-summary.html +[pubsub-client-lib-docs]: https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/pubsub/v1/package-summary.html From 04721562b39783d5859bbcdc46890305ec0c2722 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Wed, 14 Aug 2019 14:19:40 -0400 Subject: [PATCH 0217/2363] Fix performance regression on Cloud Pub/Sub publish (#6076) * Mark ordering keys APIs public * Go back to calling publish on the exectuor, which is what we did before the updates to support ordering keys. Without it, we end up with a lot of publishes hanging for long periods of time. --- .../main/java/com/google/cloud/pubsub/v1/Publisher.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 815bb9cf5e0d..409c7321288e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -256,7 +256,13 @@ public ApiFuture publish(PubsubMessage message) { if (!batchesToSend.isEmpty() && orderingKey.isEmpty()) { for (final OutstandingBatch batch : batchesToSend) { logger.log(Level.FINER, "Scheduling a batch for immediate sending."); - publishOutstandingBatch(batch); + executor.execute( + new Runnable() { + @Override + public void run() { + publishOutstandingBatch(batch); + } + }); } } From b22e23469e9cc53e745ec9e8fb3c35c6a8261665 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 14 Aug 2019 15:10:32 -0400 Subject: [PATCH 0218/2363] Release v0.105.0 (#6077) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 6851c8ae2f3b..753d6074a8d8 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.86.0 + 1.87.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.86.0' +compile 'com.google.cloud:google-cloud-pubsub:1.87.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.87.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 754830e19021..a7d3ca2c9f5d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.86.1-SNAPSHOT + 1.87.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.104.1-alpha-SNAPSHOT + 0.105.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e5e1125e4fb2..37b453ad9534 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.68.1-SNAPSHOT + 1.69.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.69.1-SNAPSHOT + 0.70.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f4ee8ae71deb..2b6d8679b8be 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.68.1-SNAPSHOT + 1.69.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.69.1-SNAPSHOT + 0.70.0 From 9e6d302c5960d3cac475b01ec68c0ff1806e1082 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 14 Aug 2019 20:03:16 -0400 Subject: [PATCH 0219/2363] Bump next snapshot (#6079) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a7d3ca2c9f5d..05b8ee76074c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.87.0 + 1.87.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.105.0-alpha + 0.105.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 37b453ad9534..154540a91733 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.69.0 + 1.69.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.70.0 + 0.70.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2b6d8679b8be..cf01019a86fc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.69.0 + 1.69.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.70.0 + 0.70.1-SNAPSHOT From 5ec53c5bebe6a70e5c38be8339bfd7a5a45d778e Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 21 Aug 2019 11:50:36 -0700 Subject: [PATCH 0220/2363] docs: update Pub/Sub publisher docstring example (#6100) * update docstring for ApiFutures.addCallback() * go back to 2016 --- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 409c7321288e..4e9ef75439d8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -205,7 +205,7 @@ public String getTopicNameString() { * public void onFailure(Throwable t) { * System.out.println("failed to publish: " + t); * } - * }); + * }, MoreExecutors.directExecutor()); * } * * @param message the message to publish. From 0b954cd4eb08c09bfb8a20771ff362b882a00277 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 21 Aug 2019 20:27:46 -0700 Subject: [PATCH 0221/2363] Update core dependencies (#6115) * update gax to 1.48.0 * update google-auth-library to 0.17.0 * update grpc to 1.23.0 and import grpc-bom * cleanup guava versions to 28.0-android * update protobuf to 3.9.1 and use bom * update opencensus to 0.23.0 * update autovalue to 1.6.5 * latest autovalue is 1.6.6 * enable runningSpanStore to capture spans for testing * lint * cannot upgrade autovalue right now * try profiles for autovalue compatibility * exclusion to fix enforcer * undo exclusion, try via profile --- .../com/google/cloud/pubsub/v1/OpenCensusUtilTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java index d4230003907d..afa316220681 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java @@ -43,6 +43,7 @@ import java.util.Collection; import java.util.List; import java.util.concurrent.TimeUnit; +import org.junit.BeforeClass; import org.junit.Test; /** Tests for {@link OpenCensusUtil}. */ @@ -53,6 +54,11 @@ public class OpenCensusUtilTest { private static final TagValue TEST_TAG_VAL = TagValue.create("TEST_TAG_VAL"); private static final String TEST_PARENT_LINK_NAME = "TEST_PARENT_LINK"; + @BeforeClass + public static void configureOpenCensus() { + Tracing.getExportComponent().getRunningSpanStore().setMaxNumberOfSpans(5); + } + // Verifies that trace contexts propagated as an attribute are set as the parent link in the // message receiver and that the tag context is not change (for now). @Test @@ -148,7 +154,7 @@ private void assertSpanCount(int expected) { } Thread.yield(); if (watch.elapsed(TimeUnit.SECONDS) >= 5) { - fail(); + fail("failed to get spans in 5 seconds"); } } } From 631d9cd0b36dc7356cf8d19329227f4efe8c3af2 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 22 Aug 2019 13:14:03 -0700 Subject: [PATCH 0222/2363] Release v0.106.0 (#6140) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 753d6074a8d8..e0ddd433e9c3 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.87.0 + 1.88.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.87.0' +compile 'com.google.cloud:google-cloud-pubsub:1.88.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.88.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 05b8ee76074c..6539cf218e8a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.87.1-SNAPSHOT + 1.88.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.105.1-alpha-SNAPSHOT + 0.106.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 154540a91733..1cbe9759e03f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.69.1-SNAPSHOT + 1.70.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.70.1-SNAPSHOT + 0.71.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index cf01019a86fc..e6af957a2dbf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.69.1-SNAPSHOT + 1.70.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.70.1-SNAPSHOT + 0.71.0 From 44098485b1436bb30857488012f1539bb6f868e9 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Mon, 26 Aug 2019 12:50:31 -0400 Subject: [PATCH 0223/2363] Bump next snapshot (#6162) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6539cf218e8a..8f430f6474bf 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.88.0 + 1.88.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.106.0-alpha + 0.106.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1cbe9759e03f..4e22fa2b953a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.70.0 + 1.70.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.71.0 + 0.71.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e6af957a2dbf..32e18ad59cce 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.70.0 + 1.70.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.71.0 + 0.71.1-SNAPSHOT From 3c203bb6d67b9c538d27df71b54c180492bd8762 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 28 Aug 2019 19:39:57 -0400 Subject: [PATCH 0224/2363] Release v0.107.0 (#6188) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index e0ddd433e9c3..66b19b76465e 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.88.0 + 1.89.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.88.0' +compile 'com.google.cloud:google-cloud-pubsub:1.89.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.89.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8f430f6474bf..b788f2f3ccf2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.88.1-SNAPSHOT + 1.89.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.106.1-alpha-SNAPSHOT + 0.107.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 4e22fa2b953a..4501acb73938 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.70.1-SNAPSHOT + 1.71.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.71.1-SNAPSHOT + 0.72.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 32e18ad59cce..860df35268bc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.70.1-SNAPSHOT + 1.71.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.71.1-SNAPSHOT + 0.72.0 From 125d59147048d916e4b74c922b1b49caef2dba5d Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 29 Aug 2019 13:46:14 -0400 Subject: [PATCH 0225/2363] Bump next snapshot (#6194) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b788f2f3ccf2..7b2b9d352c50 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.89.0 + 1.89.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.107.0-alpha + 0.107.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 4501acb73938..b3b063fc0ddd 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.71.0 + 1.71.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.72.0 + 0.72.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 860df35268bc..4e07118467db 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.71.0 + 1.71.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.72.0 + 0.72.1-SNAPSHOT From 6f2b69851b5e3fe1d4fae7512b697445ffbffeb1 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 5 Sep 2019 11:11:12 -0700 Subject: [PATCH 0226/2363] Release google-cloud-java v0.108.0 (#6223) * Release v0.108.0 * Spanner JDBC to 1.0.0 --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 66b19b76465e..70b547ffa30c 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.89.0 + 1.90.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.89.0' +compile 'com.google.cloud:google-cloud-pubsub:1.90.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.90.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7b2b9d352c50..9926fbc51de3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.89.1-SNAPSHOT + 1.90.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.107.1-alpha-SNAPSHOT + 0.108.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b3b063fc0ddd..8c753098f730 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.71.1-SNAPSHOT + 1.72.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.72.1-SNAPSHOT + 0.73.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4e07118467db..93c81690e800 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.71.1-SNAPSHOT + 1.72.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.72.1-SNAPSHOT + 0.73.0 From 6a06ac5182ff8c2b8b928e78f98d24a5e9d16b07 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 6 Sep 2019 08:52:12 -0700 Subject: [PATCH 0227/2363] Bump next snapshot (#6231) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9926fbc51de3..e86067af160e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.90.0 + 1.90.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.108.0-alpha + 0.108.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8c753098f730..3732de5ab616 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.72.0 + 1.72.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.73.0 + 0.73.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 93c81690e800..eb2fad5f8216 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.72.0 + 1.72.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.73.0 + 0.73.1-SNAPSHOT From 0bb7687f9af1bee6008c46953be7cca6e086a03e Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 11 Sep 2019 15:02:51 -0400 Subject: [PATCH 0228/2363] Release v0.109.0 (#6252) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 70b547ffa30c..be4e8c41355b 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.90.0 + 1.91.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.90.0' +compile 'com.google.cloud:google-cloud-pubsub:1.91.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.91.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e86067af160e..d9e41e3c5697 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.90.1-SNAPSHOT + 1.91.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.108.1-alpha-SNAPSHOT + 0.109.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3732de5ab616..2701417630e7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.72.1-SNAPSHOT + 1.73.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.73.1-SNAPSHOT + 0.74.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index eb2fad5f8216..b92f900a096f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.72.1-SNAPSHOT + 1.73.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.73.1-SNAPSHOT + 0.74.0 From 93499e361278d5cda176fe98fc0782f580921260 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 11 Sep 2019 18:44:09 -0400 Subject: [PATCH 0229/2363] Bump next snapshot (#6256) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d9e41e3c5697..132d5d29cdef 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.91.0 + 1.91.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.109.0-alpha + 0.109.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2701417630e7..5e9a97d7f7d1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.73.0 + 1.73.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.74.0 + 0.74.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b92f900a096f..5397e75341a3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.73.0 + 1.73.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.74.0 + 0.74.1-SNAPSHOT From f6370a1f189779ac705356ddc1b88a8193a87285 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 11 Sep 2019 15:44:25 -0700 Subject: [PATCH 0230/2363] Add repo metadata files for all the existing clients (#6255) * Add repo metadata files for all the existing clients * remove extra repo-metadata file --- java-pubsub/google-cloud-pubsub/.repo-metadata.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 java-pubsub/google-cloud-pubsub/.repo-metadata.json diff --git a/java-pubsub/google-cloud-pubsub/.repo-metadata.json b/java-pubsub/google-cloud-pubsub/.repo-metadata.json new file mode 100644 index 000000000000..af7889549b0b --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/.repo-metadata.json @@ -0,0 +1,13 @@ +{ + "name": "pubsub", + "name_pretty": "Google Cloud Pub/Sub", + "product_documentation": "https://cloud.google.com/pubsub/docs/", + "client_documentation": "https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/pubsub/v1/package-summary.html", + "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", + "release_level": "ga", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "google-cloud-java", + "distribution_name": "com.google.cloud:google-cloud-pubsub", + "api_id": "pubsub.googleapis.com" +} \ No newline at end of file From a7556e15afc5be8ccb6c7815aa04862ad04fb1d4 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Thu, 12 Sep 2019 10:00:13 -0700 Subject: [PATCH 0231/2363] Pub/Sub: fix default RPC timeouts in publish retry settings (#6257) * Use different initial and max RPC timeout * Match totalTimeout with maxRpcTimeout * Use GAPIC defaults --- .../com/google/cloud/pubsub/v1/Publisher.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 4e9ef75439d8..1ea18df62efa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -569,8 +569,9 @@ public static final class Builder { static final long DEFAULT_ELEMENT_COUNT_THRESHOLD = 100L; static final long DEFAULT_REQUEST_BYTES_THRESHOLD = 1000L; // 1 kB static final Duration DEFAULT_DELAY_THRESHOLD = Duration.ofMillis(1); - private static final Duration DEFAULT_RPC_TIMEOUT = Duration.ofSeconds(10); - private static final Duration DEFAULT_TOTAL_TIMEOUT = MIN_TOTAL_TIMEOUT; + private static final Duration DEFAULT_INITIAL_RPC_TIMEOUT = Duration.ofSeconds(5); + private static final Duration DEFAULT_MAX_RPC_TIMEOUT = Duration.ofSeconds(600); + private static final Duration DEFAULT_TOTAL_TIMEOUT = Duration.ofSeconds(600); static final BatchingSettings DEFAULT_BATCHING_SETTINGS = BatchingSettings.newBuilder() .setDelayThreshold(DEFAULT_DELAY_THRESHOLD) @@ -580,12 +581,12 @@ public static final class Builder { static final RetrySettings DEFAULT_RETRY_SETTINGS = RetrySettings.newBuilder() .setTotalTimeout(DEFAULT_TOTAL_TIMEOUT) - .setInitialRetryDelay(Duration.ofMillis(5)) - .setRetryDelayMultiplier(2) - .setMaxRetryDelay(Duration.ofMillis(Long.MAX_VALUE)) - .setInitialRpcTimeout(DEFAULT_RPC_TIMEOUT) - .setRpcTimeoutMultiplier(2) - .setMaxRpcTimeout(DEFAULT_RPC_TIMEOUT) + .setInitialRetryDelay(Duration.ofMillis(100)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofSeconds(60)) + .setInitialRpcTimeout(DEFAULT_INITIAL_RPC_TIMEOUT) + .setRpcTimeoutMultiplier(1) + .setMaxRpcTimeout(DEFAULT_MAX_RPC_TIMEOUT) .build(); static final boolean DEFAULT_ENABLE_MESSAGE_ORDERING = false; private static final int THREADS_PER_CPU = 5; From 23243cb62efaa730f5d9d134fe780633368fc226 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 18 Sep 2019 15:28:29 -0700 Subject: [PATCH 0232/2363] Release google-cloud-java v0.110.0 (#6294) * Release v0.110.0 * fix TranlateIT. use numbers for translation * fix TranlateIT. use numbers for translation --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index be4e8c41355b..a2e563fda529 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.91.0 + 1.92.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.91.0' +compile 'com.google.cloud:google-cloud-pubsub:1.92.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.92.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 132d5d29cdef..3bcab8e8d3fc 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.91.1-SNAPSHOT + 1.92.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.109.1-alpha-SNAPSHOT + 0.110.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5e9a97d7f7d1..387f92cc746b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.73.1-SNAPSHOT + 1.74.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.74.1-SNAPSHOT + 0.75.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5397e75341a3..bd28bed2e6c4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.73.1-SNAPSHOT + 1.74.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.74.1-SNAPSHOT + 0.75.0 From ac20e7972ca557a93919fc865dea2110a0bb801e Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 19 Sep 2019 08:16:44 -0700 Subject: [PATCH 0233/2363] Bump next snapshot (#6305) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3bcab8e8d3fc..dcbce924d1b6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.92.0 + 1.92.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.110.0-alpha + 0.110.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 387f92cc746b..e0e3db19748b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.74.0 + 1.74.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.75.0 + 0.75.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index bd28bed2e6c4..1a04c0f26e6b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.74.0 + 1.74.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.75.0 + 0.75.1-SNAPSHOT From d5728e7c4608bcc474b669adc516898e452226b7 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 25 Sep 2019 13:14:57 -0400 Subject: [PATCH 0234/2363] Release google-cloud-java v0.111.0 (#6347) * Release v0.111.0 * Change Bigtable version to 1.0.0. --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index a2e563fda529..4f60d68227da 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.92.0 + 1.93.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.92.0' +compile 'com.google.cloud:google-cloud-pubsub:1.93.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.92.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.93.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index dcbce924d1b6..d9bd53fd8607 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.92.1-SNAPSHOT + 1.93.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.110.1-alpha-SNAPSHOT + 0.111.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e0e3db19748b..eb20cce384d7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.74.1-SNAPSHOT + 1.75.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.75.1-SNAPSHOT + 0.76.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1a04c0f26e6b..d7f81f654067 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.74.1-SNAPSHOT + 1.75.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.75.1-SNAPSHOT + 0.76.0 From 2a0590f48fc39fefd2a58a84a5136530f68af3c9 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 26 Sep 2019 13:29:08 -0400 Subject: [PATCH 0235/2363] Bump next snapshot (#6353) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d9bd53fd8607..2ca8be250b91 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.93.0 + 1.93.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.111.0-alpha + 0.111.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index eb20cce384d7..7c39bb0b4fd3 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.75.0 + 1.75.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.76.0 + 0.76.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d7f81f654067..bdd77a068012 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.75.0 + 1.75.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.76.0 + 0.76.1-SNAPSHOT From 4b7a4ce2dd285cbf8fa2a063e935bc0e4082284b Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 2 Oct 2019 15:32:18 -0700 Subject: [PATCH 0236/2363] Release google-cloud-java v0.112.0 (#6420) * Release v0.112.0 * Fix translate pom --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 4f60d68227da..07a66a2f9893 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.93.0 + 1.96.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.93.0' +compile 'com.google.cloud:google-cloud-pubsub:1.96.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.96.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2ca8be250b91..3b0b27920f0c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.93.1-SNAPSHOT + 1.96.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.111.1-alpha-SNAPSHOT + 0.114.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7c39bb0b4fd3..620a0a4cdc00 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.75.1-SNAPSHOT + 1.78.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.76.1-SNAPSHOT + 0.79.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index bdd77a068012..d653f27f4aa4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.75.1-SNAPSHOT + 1.78.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.76.1-SNAPSHOT + 0.79.0 From 111b443bfff8a38ece6b2d9b5ca0678d86d9bd0a Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 3 Oct 2019 12:05:30 -0700 Subject: [PATCH 0237/2363] Bump next snapshot (#6434) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3b0b27920f0c..7df5e59c5cb4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.96.0 + 1.96.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.114.0-alpha + 0.114.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 620a0a4cdc00..418f3b271e9f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.78.0 + 1.78.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.79.0 + 0.79.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d653f27f4aa4..7b69a3f2fe8c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.78.0 + 1.78.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.79.0 + 0.79.1-SNAPSHOT From fe642f631e9e2b920a730ec0e4cc5314ea06e0f1 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 10 Oct 2019 12:37:13 -0700 Subject: [PATCH 0238/2363] Release google-cloud-java v0.115.0 (#6476) * Release v0.115.0 * fix bigtable-it config --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 07a66a2f9893..2e26b6cea943 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.96.0 + 1.97.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.96.0' +compile 'com.google.cloud:google-cloud-pubsub:1.97.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.97.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7df5e59c5cb4..f87d223fdb13 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.96.1-SNAPSHOT + 1.97.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.114.1-alpha-SNAPSHOT + 0.115.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 418f3b271e9f..c75586166758 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.78.1-SNAPSHOT + 1.79.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.79.1-SNAPSHOT + 0.80.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7b69a3f2fe8c..236ee575e90c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.78.1-SNAPSHOT + 1.79.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.79.1-SNAPSHOT + 0.80.0 From fd7dfa5ea478f69f3af7295c580734ed747fafa5 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 10 Oct 2019 13:48:03 -0700 Subject: [PATCH 0239/2363] Bump next snapshot (#6485) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f87d223fdb13..d73ab09e226c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.97.0 + 1.97.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.115.0-alpha + 0.115.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c75586166758..fca0e2333fec 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.79.0 + 1.79.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.80.0 + 0.80.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 236ee575e90c..a2fd521fa507 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.79.0 + 1.79.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.80.0 + 0.80.1-SNAPSHOT From 01729ef251bc51a9f79af433f48e06bdc48e05d5 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 17 Oct 2019 07:37:39 -0700 Subject: [PATCH 0240/2363] Release v0.116.0 (#6518) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 2e26b6cea943..731cf7976a6c 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.97.0 + 1.98.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.97.0' +compile 'com.google.cloud:google-cloud-pubsub:1.98.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.98.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d73ab09e226c..a0f9c1a67399 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.97.1-SNAPSHOT + 1.98.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.115.1-alpha-SNAPSHOT + 0.116.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fca0e2333fec..d066f178a591 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.79.1-SNAPSHOT + 1.80.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.80.1-SNAPSHOT + 0.81.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a2fd521fa507..3917e936c135 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.79.1-SNAPSHOT + 1.80.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.80.1-SNAPSHOT + 0.81.0 From 4dd127e95f3d91dd6dbe7fb1a30e61a56e26dc43 Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Thu, 17 Oct 2019 16:36:54 -0400 Subject: [PATCH 0241/2363] Bump next snapshot (#6525) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a0f9c1a67399..79fe9ccd5ce6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.98.0 + 1.98.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.116.0-alpha + 0.116.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d066f178a591..594b071ee1db 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.80.0 + 1.80.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.81.0 + 0.81.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3917e936c135..e6d40e74aa59 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.80.0 + 1.80.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.81.0 + 0.81.1-SNAPSHOT From a47d41a3fd2cc3480cc52c9c916bf038c4b44e32 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 31 Oct 2019 08:34:14 -0700 Subject: [PATCH 0242/2363] Release v0.117.0 (#6664) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 731cf7976a6c..09314720aa62 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.98.0 + 1.99.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.98.0' +compile 'com.google.cloud:google-cloud-pubsub:1.99.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.99.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 79fe9ccd5ce6..e1c5dce5b2a6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.98.1-SNAPSHOT + 1.99.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.116.1-alpha-SNAPSHOT + 0.117.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 594b071ee1db..579a75facfff 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.80.1-SNAPSHOT + 1.81.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.81.1-SNAPSHOT + 0.82.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e6d40e74aa59..1f838bd7ae61 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.80.1-SNAPSHOT + 1.81.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.81.1-SNAPSHOT + 0.82.0 From 485fca2b5f70de79787d2d496f9b246d14d4cdda Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Mon, 4 Nov 2019 11:39:14 -0800 Subject: [PATCH 0243/2363] Bump next snapshot (#6674) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e1c5dce5b2a6..82e107f26c9d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.99.0 + 1.99.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.117.0-alpha + 0.117.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 579a75facfff..d5e3874577e0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.81.0 + 1.81.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.82.0 + 0.82.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1f838bd7ae61..d53328cde7e4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.81.0 + 1.81.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.82.0 + 0.82.1-SNAPSHOT From d92dd1adfd5c3663d7c5f9dc2ddaf0b69e557c7b Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Wed, 6 Nov 2019 14:11:27 -0700 Subject: [PATCH 0244/2363] Release v0.118.0 (#6704) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 09314720aa62..f5f4a2a9f7f4 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,16 +19,16 @@ Add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.99.0 + 1.100.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.99.0' +compile 'com.google.cloud:google-cloud-pubsub:1.100.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.100.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 82e107f26c9d..735f863a75cf 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.99.1-SNAPSHOT + 1.100.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.117.1-alpha-SNAPSHOT + 0.118.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d5e3874577e0..a2a85c5dcb52 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.81.1-SNAPSHOT + 1.82.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.82.1-SNAPSHOT + 0.83.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d53328cde7e4..067ab8eb6268 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.81.1-SNAPSHOT + 1.82.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.82.1-SNAPSHOT + 0.83.0 From 57dba1b720c9ccd5456de529f264869edc2d5cb0 Mon Sep 17 00:00:00 2001 From: Maarten Dirkse Date: Thu, 7 Nov 2019 19:12:07 +0100 Subject: [PATCH 0245/2363] Make sure that background resources are closed when the subscriber fails. (#6238) --- .../google/cloud/pubsub/v1/Subscriber.java | 11 +++++-- .../cloud/pubsub/v1/SubscriberTest.java | 32 +++++++++++++++++++ 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 8ba07fe2f968..059ac0ce4681 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -295,9 +295,7 @@ public void run() { try { // stop connection is no-op if connections haven't been started. stopAllStreamingConnections(); - for (BackgroundResource resource : backgroundResources) { - resource.shutdown(); - } + shutdownBackgroundResources(); notifyStopped(); } catch (Exception e) { notifyFailed(e); @@ -337,6 +335,7 @@ public void failed(State from, Throwable failure) { // If a connection failed is because of a fatal error, we should fail the // whole subscriber. stopAllStreamingConnections(); + shutdownBackgroundResources(); try { notifyFailed(failure); } catch (IllegalStateException e) { @@ -354,6 +353,12 @@ private void stopAllStreamingConnections() { stopConnections(streamingSubscriberConnections); } + private void shutdownBackgroundResources() { + for (BackgroundResource resource : backgroundResources) { + resource.shutdown(); + } + } + private void startConnections( List connections, final ApiService.Listener connectionsListener) { for (ApiService subscriber : connections) { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index eaf653427bb7..5512145e1764 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -176,6 +176,38 @@ public void testFailedChannel_fatalError_subscriberFails() throws Exception { } } + @Test(expected = IllegalStateException.class) + public void testFailedChannel_shutdownBackgroundResources() throws Exception { + ExecutorProvider provider = + new ExecutorProvider() { + @Override + public boolean shouldAutoClose() { + return true; + } + + @Override + public ScheduledExecutorService getExecutor() { + return fakeExecutor; + } + }; + + Subscriber subscriber = + startSubscriber(getTestSubscriberBuilder(testReceiver).setExecutorProvider(provider)); + + // Fatal error + fakeSubscriberServiceImpl.sendError(new StatusException(Status.INVALID_ARGUMENT)); + + try { + subscriber.awaitTerminated(); + } finally { + // The subscriber must finish with an state error because its FAILED status. + assertEquals(Subscriber.State.FAILED, subscriber.state()); + + // Make sure that our executor is shut down after a failure + assertTrue(fakeExecutor.isShutdown()); + } + } + private Subscriber startSubscriber(Builder testSubscriberBuilder) { Subscriber subscriber = testSubscriberBuilder.build(); subscriber.startAsync().awaitRunning(); From d3af763e135356fcae4e30ce496e885710911af5 Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Fri, 8 Nov 2019 13:21:26 -0700 Subject: [PATCH 0246/2363] Bump next snapshot (#6712) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 735f863a75cf..a916206f8823 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.100.0 + 1.100.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.118.0-alpha + 0.118.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a2a85c5dcb52..338016ddcdcc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.82.0 + 1.82.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.83.0 + 0.83.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 067ab8eb6268..b56f522f61c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.82.0 + 1.82.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.83.0 + 0.83.1-SNAPSHOT From 8f58db4fa3c679178bdc36ec16ea28c71eb4c5f9 Mon Sep 17 00:00:00 2001 From: Ajit Thakor <49403056+athakor@users.noreply.github.com> Date: Tue, 12 Nov 2019 06:37:00 -0500 Subject: [PATCH 0247/2363] Reference libraries-bom in docs (#6733) --- java-pubsub/google-cloud-pubsub/README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index f5f4a2a9f7f4..e63ebf73800f 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -12,9 +12,27 @@ Java idiomatic client for [Google Cloud Pub/Sub][cloud-pubsub]. Quickstart ---------- +If you are using Maven with a BOM, add this to your pom.xml file. +```xml + + + + com.google.cloud + libraries-bom + 2.8.0 + pom + import + + + + + com.google.cloud + google-cloud-pubsub + +``` [//]: # ({x-version-update-start:google-cloud-pubsub:released}) -Add this to your pom.xml file +If you are using Maven without a BOM, add this to your dependencies. ```xml com.google.cloud From 6f158c8810e67926930a7efa8de7db651e272ae7 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 13 Nov 2019 17:48:04 -0600 Subject: [PATCH 0248/2363] Release v0.119.0 (#6772) --- java-pubsub/google-cloud-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index e63ebf73800f..664835aea366 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -37,16 +37,16 @@ If you are using Maven without a BOM, add this to your dependencies. com.google.cloud google-cloud-pubsub - 1.100.0 + 1.101.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.100.0' +compile 'com.google.cloud:google-cloud-pubsub:1.101.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.101.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a916206f8823..c21a22899956 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.100.1-SNAPSHOT + 1.101.0 jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.118.1-alpha-SNAPSHOT + 0.119.0-alpha google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 338016ddcdcc..bea6021e7662 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.82.1-SNAPSHOT + 1.83.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.83.1-SNAPSHOT + 0.84.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b56f522f61c6..b7539e0e742f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.82.1-SNAPSHOT + 1.83.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.83.1-SNAPSHOT + 0.84.0 From 10227d0dca87d5d8d15a61373876633804927d9c Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 15 Nov 2019 09:36:23 -0600 Subject: [PATCH 0249/2363] Bump next snapshot (#6790) --- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c21a22899956..7e822cf7dcb5 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-pubsub - 1.101.0 + 1.101.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub @@ -12,7 +12,7 @@ com.google.cloud google-cloud-clients - 0.119.0-alpha + 0.119.1-alpha-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bea6021e7662..06996ac407de 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 grpc-google-cloud-pubsub-v1 - 1.83.0 + 1.83.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.84.0 + 0.84.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b7539e0e742f..cd5f479a3e8e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -3,13 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 proto-google-cloud-pubsub-v1 - 1.83.0 + 1.83.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.api.grpc google-api-grpc - 0.84.0 + 0.84.1-SNAPSHOT From 959403f95208ff5aa0db4a70939727bcf6e5f84b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 19 Nov 2019 11:26:17 -0800 Subject: [PATCH 0250/2363] Regenerate pubsub client (#6129) --- .../pubsub/v1/SubscriptionAdminClient.java | 8 +- .../google-cloud-pubsub/synth.metadata | 10 +- .../google/pubsub/v1/DeadLetterPolicy.java | 760 ++++++++++++++++++ .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 64 ++ .../com/google/pubsub/v1/PubsubProto.java | 382 ++++----- .../com/google/pubsub/v1/PullRequest.java | 20 +- .../pubsub/v1/PullRequestOrBuilder.java | 5 +- .../com/google/pubsub/v1/Subscription.java | 375 +++++++++ .../pubsub/v1/SubscriptionOrBuilder.java | 58 ++ .../main/proto/google/pubsub/v1/pubsub.proto | 51 +- 10 files changed, 1529 insertions(+), 204 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 2a6df164008b..367b3647f3d3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1085,8 +1085,8 @@ public final UnaryCallable deleteSubscriptionC * 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. - * @param maxMessages The maximum number of messages returned for this request. The Pub/Sub system - * may return fewer than the number specified. + * @param maxMessages 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final PullResponse pull( @@ -1123,8 +1123,8 @@ public final UnaryCallable deleteSubscriptionC * 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. - * @param maxMessages The maximum number of messages returned for this request. The Pub/Sub system - * may return fewer than the number specified. + * @param maxMessages 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final PullResponse pull( diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata index e917671778a8..ee6c12c1a56b 100644 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ b/java-pubsub/google-cloud-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-08-05T19:09:21.062218Z", + "updateTime": "2019-08-22T07:52:52.479802Z", "sources": [ { "generator": { "name": "artman", - "version": "0.32.1", - "dockerImage": "googleapis/artman@sha256:a684d40ba9a4e15946f5f2ca6b4bd9fe301192f522e9de4fff622118775f309b" + "version": "0.34.0", + "dockerImage": "googleapis/artman@sha256:38a27ba6245f96c3e86df7acb2ebcc33b4f186d9e475efe2d64303aec3d4e0ea" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "f94d89f4b75b4bdf6a254da44eb0f70d34bcca14", - "internalRef": "261701508" + "sha": "92bebf78345af8b2d3585220527115bda8bdedf8", + "internalRef": "264715111" } } ], diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java new file mode 100644 index 000000000000..08f293efb4b3 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -0,0 +1,760 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * 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.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.DeadLetterPolicy} + */ +public final class DeadLetterPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeadLetterPolicy) + DeadLetterPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeadLetterPolicy.newBuilder() to construct. + private DeadLetterPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeadLetterPolicy() { + deadLetterTopic_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeadLetterPolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + deadLetterTopic_ = s; + break; + } + case 16: + { + maxDeliveryAttempts_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeadLetterPolicy.class, + com.google.pubsub.v1.DeadLetterPolicy.Builder.class); + } + + public static final int DEAD_LETTER_TOPIC_FIELD_NUMBER = 1; + private volatile java.lang.Object deadLetterTopic_; + /** + * + * + *
    +   * 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-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 subscription attached to this topic
    +   * since messages published to a topic with no subscriptions are lost.
    +   * 
    + * + * string dead_letter_topic = 1; + */ + public java.lang.String getDeadLetterTopic() { + java.lang.Object ref = deadLetterTopic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deadLetterTopic_ = s; + return s; + } + } + /** + * + * + *
    +   * 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-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 subscription attached to this topic
    +   * since messages published to a topic with no subscriptions are lost.
    +   * 
    + * + * string dead_letter_topic = 1; + */ + public com.google.protobuf.ByteString getDeadLetterTopicBytes() { + java.lang.Object ref = deadLetterTopic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deadLetterTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_DELIVERY_ATTEMPTS_FIELD_NUMBER = 2; + private int maxDeliveryAttempts_; + /** + * + * + *
    +   * The maximum number of delivery attempts for any message. The value must be
    +   * between 5 and 100.
    +   * The number of delivery attempts is defined as 1 + (the sum of number of
    +   * NACKs and 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 honored on a best effort basis.
    +   * If this parameter is 0, a default value of 5 is used.
    +   * 
    + * + * int32 max_delivery_attempts = 2; + */ + public int getMaxDeliveryAttempts() { + return maxDeliveryAttempts_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDeadLetterTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deadLetterTopic_); + } + if (maxDeliveryAttempts_ != 0) { + output.writeInt32(2, maxDeliveryAttempts_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDeadLetterTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deadLetterTopic_); + } + if (maxDeliveryAttempts_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxDeliveryAttempts_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.DeadLetterPolicy)) { + return super.equals(obj); + } + com.google.pubsub.v1.DeadLetterPolicy other = (com.google.pubsub.v1.DeadLetterPolicy) obj; + + if (!getDeadLetterTopic().equals(other.getDeadLetterTopic())) return false; + if (getMaxDeliveryAttempts() != other.getMaxDeliveryAttempts()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DEAD_LETTER_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getDeadLetterTopic().hashCode(); + hash = (37 * hash) + MAX_DELIVERY_ATTEMPTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxDeliveryAttempts(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.DeadLetterPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * 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.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.DeadLetterPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeadLetterPolicy) + com.google.pubsub.v1.DeadLetterPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeadLetterPolicy.class, + com.google.pubsub.v1.DeadLetterPolicy.Builder.class); + } + + // Construct using com.google.pubsub.v1.DeadLetterPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + deadLetterTopic_ = ""; + + maxDeliveryAttempts_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.DeadLetterPolicy getDefaultInstanceForType() { + return com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.DeadLetterPolicy build() { + com.google.pubsub.v1.DeadLetterPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.DeadLetterPolicy buildPartial() { + com.google.pubsub.v1.DeadLetterPolicy result = + new com.google.pubsub.v1.DeadLetterPolicy(this); + result.deadLetterTopic_ = deadLetterTopic_; + result.maxDeliveryAttempts_ = maxDeliveryAttempts_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.DeadLetterPolicy) { + return mergeFrom((com.google.pubsub.v1.DeadLetterPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.DeadLetterPolicy other) { + if (other == com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance()) return this; + if (!other.getDeadLetterTopic().isEmpty()) { + deadLetterTopic_ = other.deadLetterTopic_; + onChanged(); + } + if (other.getMaxDeliveryAttempts() != 0) { + setMaxDeliveryAttempts(other.getMaxDeliveryAttempts()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.DeadLetterPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.DeadLetterPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object deadLetterTopic_ = ""; + /** + * + * + *
    +     * 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-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 subscription attached to this topic
    +     * since messages published to a topic with no subscriptions are lost.
    +     * 
    + * + * string dead_letter_topic = 1; + */ + public java.lang.String getDeadLetterTopic() { + java.lang.Object ref = deadLetterTopic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deadLetterTopic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * 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-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 subscription attached to this topic
    +     * since messages published to a topic with no subscriptions are lost.
    +     * 
    + * + * string dead_letter_topic = 1; + */ + public com.google.protobuf.ByteString getDeadLetterTopicBytes() { + java.lang.Object ref = deadLetterTopic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deadLetterTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * 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-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 subscription attached to this topic
    +     * since messages published to a topic with no subscriptions are lost.
    +     * 
    + * + * string dead_letter_topic = 1; + */ + public Builder setDeadLetterTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + deadLetterTopic_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * 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-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 subscription attached to this topic
    +     * since messages published to a topic with no subscriptions are lost.
    +     * 
    + * + * string dead_letter_topic = 1; + */ + public Builder clearDeadLetterTopic() { + + deadLetterTopic_ = getDefaultInstance().getDeadLetterTopic(); + onChanged(); + return this; + } + /** + * + * + *
    +     * 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-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 subscription attached to this topic
    +     * since messages published to a topic with no subscriptions are lost.
    +     * 
    + * + * string dead_letter_topic = 1; + */ + public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + deadLetterTopic_ = value; + onChanged(); + return this; + } + + private int maxDeliveryAttempts_; + /** + * + * + *
    +     * The maximum number of delivery attempts for any message. The value must be
    +     * between 5 and 100.
    +     * The number of delivery attempts is defined as 1 + (the sum of number of
    +     * NACKs and 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 honored on a best effort basis.
    +     * If this parameter is 0, a default value of 5 is used.
    +     * 
    + * + * int32 max_delivery_attempts = 2; + */ + public int getMaxDeliveryAttempts() { + return maxDeliveryAttempts_; + } + /** + * + * + *
    +     * The maximum number of delivery attempts for any message. The value must be
    +     * between 5 and 100.
    +     * The number of delivery attempts is defined as 1 + (the sum of number of
    +     * NACKs and 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 honored on a best effort basis.
    +     * If this parameter is 0, a default value of 5 is used.
    +     * 
    + * + * int32 max_delivery_attempts = 2; + */ + public Builder setMaxDeliveryAttempts(int value) { + + maxDeliveryAttempts_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum number of delivery attempts for any message. The value must be
    +     * between 5 and 100.
    +     * The number of delivery attempts is defined as 1 + (the sum of number of
    +     * NACKs and 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 honored on a best effort basis.
    +     * If this parameter is 0, a default value of 5 is used.
    +     * 
    + * + * int32 max_delivery_attempts = 2; + */ + public Builder clearMaxDeliveryAttempts() { + + maxDeliveryAttempts_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeadLetterPolicy) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeadLetterPolicy) + private static final com.google.pubsub.v1.DeadLetterPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.DeadLetterPolicy(); + } + + public static com.google.pubsub.v1.DeadLetterPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeadLetterPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeadLetterPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.DeadLetterPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java new file mode 100644 index 000000000000..5a2528a1f139 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface DeadLetterPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeadLetterPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * 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-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 subscription attached to this topic
    +   * since messages published to a topic with no subscriptions are lost.
    +   * 
    + * + * string dead_letter_topic = 1; + */ + java.lang.String getDeadLetterTopic(); + /** + * + * + *
    +   * 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-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 subscription attached to this topic
    +   * since messages published to a topic with no subscriptions are lost.
    +   * 
    + * + * string dead_letter_topic = 1; + */ + com.google.protobuf.ByteString getDeadLetterTopicBytes(); + + /** + * + * + *
    +   * The maximum number of delivery attempts for any message. The value must be
    +   * between 5 and 100.
    +   * The number of delivery attempts is defined as 1 + (the sum of number of
    +   * NACKs and 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 honored on a best effort basis.
    +   * If this parameter is 0, a default value of 5 is used.
    +   * 
    + * + * int32 max_delivery_attempts = 2; + */ + int getMaxDeliveryAttempts(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 398ed83c1b57..15c16a43cff0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -84,6 +84,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -243,7 +247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + "\t\"H\n\032ListTopicSnapshotsResponse\022\021\n\tsnaps" + "hots\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n\022D" - + "eleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\245\003\n\014Sub" + + "eleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\345\003\n\014Sub" + "scription\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\0221" + "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" + "ushConfig\022\034\n\024ack_deadline_seconds\030\005 \001(\005\022" @@ -253,164 +257,167 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ubsub.v1.Subscription.LabelsEntry\022\037\n\027ena" + "ble_message_ordering\030\n \001(\010\022=\n\021expiration" + "_policy\030\013 \001(\0132\".google.pubsub.v1.Expirat" - + "ionPolicy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\":\n\020ExpirationPolicy\022&\n\003" - + "ttl\030\001 \001(\0132\031.google.protobuf.Duration\"\255\002\n" - + "\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\nat" - + "tributes\030\002 \003(\0132,.google.pubsub.v1.PushCo" - + "nfig.AttributesEntry\022<\n\noidc_token\030\003 \001(\013" - + "2&.google.pubsub.v1.PushConfig.OidcToken" - + "H\000\032<\n\tOidcToken\022\035\n\025service_account_email" - + "\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017AttributesEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025a" - + "uthentication_method\"S\n\017ReceivedMessage\022" - + "\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.googl" - + "e.pubsub.v1.PubsubMessage\".\n\026GetSubscrip" - + "tionRequest\022\024\n\014subscription\030\001 \001(\t\"\202\001\n\031Up" - + "dateSubscriptionRequest\0224\n\014subscription\030" - + "\001 \001(\0132\036.google.pubsub.v1.Subscription\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMask\"R\n\030ListSubscriptionsRequest\022\017\n\007pr" - + "oject\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"k\n\031ListSubscriptionsResponse\022" - + "5\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub.v" - + "1.Subscription\022\027\n\017next_page_token\030\002 \001(\t\"" - + "1\n\031DeleteSubscriptionRequest\022\024\n\014subscrip" - + "tion\030\001 \001(\t\"b\n\027ModifyPushConfigRequest\022\024\n" - + "\014subscription\030\001 \001(\t\0221\n\013push_config\030\002 \001(\013" - + "2\034.google.pubsub.v1.PushConfig\"U\n\013PullRe" - + "quest\022\024\n\014subscription\030\001 \001(\t\022\032\n\022return_im" - + "mediately\030\002 \001(\010\022\024\n\014max_messages\030\003 \001(\005\"L\n" - + "\014PullResponse\022<\n\021received_messages\030\001 \003(\013" - + "2!.google.pubsub.v1.ReceivedMessage\"_\n\030M" - + "odifyAckDeadlineRequest\022\024\n\014subscription\030" - + "\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t\022\034\n\024ack_deadline_s" - + "econds\030\003 \001(\005\";\n\022AcknowledgeRequest\022\024\n\014su" - + "bscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\"\244\001\n\024St" - + "reamingPullRequest\022\024\n\014subscription\030\001 \001(\t" - + "\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_deadline_sec" - + "onds\030\003 \003(\005\022\037\n\027modify_deadline_ack_ids\030\004 " - + "\003(\t\022#\n\033stream_ack_deadline_seconds\030\005 \001(\005" - + "\"U\n\025StreamingPullResponse\022<\n\021received_me" - + "ssages\030\001 \003(\0132!.google.pubsub.v1.Received" - + "Message\"\257\001\n\025CreateSnapshotRequest\022\014\n\004nam" - + "e\030\001 \001(\t\022\024\n\014subscription\030\002 \001(\t\022C\n\006labels\030" - + "\003 \003(\01323.google.pubsub.v1.CreateSnapshotR" - + "equest.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\025UpdateSnaps" - + "hotRequest\022,\n\010snapshot\030\001 \001(\0132\032.google.pu" - + "bsub.v1.Snapshot\022/\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMask\"\277\001\n\010Snapshot\022\014" - + "\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\022/\n\013expire_ti" - + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\0226\n\006" - + "labels\030\004 \003(\0132&.google.pubsub.v1.Snapshot" - + ".LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\"&\n\022GetSnapshotReques" - + "t\022\020\n\010snapshot\030\001 \001(\t\"N\n\024ListSnapshotsRequ" - + "est\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapshotsResp" - + "onse\022-\n\tsnapshots\030\001 \003(\0132\032.google.pubsub." - + "v1.Snapshot\022\027\n\017next_page_token\030\002 \001(\t\")\n\025" - + "DeleteSnapshotRequest\022\020\n\010snapshot\030\001 \001(\t\"" - + "m\n\013SeekRequest\022\024\n\014subscription\030\001 \001(\t\022*\n\004" - + "time\030\002 \001(\0132\032.google.protobuf.TimestampH\000" - + "\022\022\n\010snapshot\030\003 \001(\tH\000B\010\n\006target\"\016\n\014SeekRe" - + "sponse2\261\t\n\tPublisher\022j\n\013CreateTopic\022\027.go" - + "ogle.pubsub.v1.Topic\032\027.google.pubsub.v1." - + "Topic\")\202\323\344\223\002#\032\036/v1/{name=projects/*/topi" - + "cs/*}:\001*\022}\n\013UpdateTopic\022$.google.pubsub." - + "v1.UpdateTopicRequest\032\027.google.pubsub.v1" - + ".Topic\"/\202\323\344\223\002)2$/v1/{topic.name=projects" - + "/*/topics/*}:\001*\022\202\001\n\007Publish\022 .google.pub" - + "sub.v1.PublishRequest\032!.google.pubsub.v1" - + ".PublishResponse\"2\202\323\344\223\002,\"\'/v1/{topic=pro" - + "jects/*/topics/*}:publish:\001*\022o\n\010GetTopic" - + "\022!.google.pubsub.v1.GetTopicRequest\032\027.go" - + "ogle.pubsub.v1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic" - + "=projects/*/topics/*}\022\200\001\n\nListTopics\022#.g" - + "oogle.pubsub.v1.ListTopicsRequest\032$.goog" - + "le.pubsub.v1.ListTopicsResponse\"\'\202\323\344\223\002!\022" - + "\037/v1/{project=projects/*}/topics\022\262\001\n\026Lis" - + "tTopicSubscriptions\022/.google.pubsub.v1.L" - + "istTopicSubscriptionsRequest\0320.google.pu" - + "bsub.v1.ListTopicSubscriptionsResponse\"5" - + "\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/" - + "subscriptions\022\242\001\n\022ListTopicSnapshots\022+.g" - + "oogle.pubsub.v1.ListTopicSnapshotsReques" - + "t\032,.google.pubsub.v1.ListTopicSnapshotsR" - + "esponse\"1\202\323\344\223\002+\022)/v1/{topic=projects/*/t" - + "opics/*}/snapshots\022t\n\013DeleteTopic\022$.goog" - + "le.pubsub.v1.DeleteTopicRequest\032\026.google" - + ".protobuf.Empty\"\'\202\323\344\223\002!*\037/v1/{topic=proj" - + "ects/*/topics/*}\032p\312A\025pubsub.googleapis.c" - + "om\322AUhttps://www.googleapis.com/auth/clo" - + "ud-platform,https://www.googleapis.com/a" - + "uth/pubsub2\353\022\n\nSubscriber\022\206\001\n\022CreateSubs" - + "cription\022\036.google.pubsub.v1.Subscription" - + "\032\036.google.pubsub.v1.Subscription\"0\202\323\344\223\002*" - + "\032%/v1/{name=projects/*/subscriptions/*}:" - + "\001*\022\222\001\n\017GetSubscription\022(.google.pubsub.v" - + "1.GetSubscriptionRequest\032\036.google.pubsub" - + ".v1.Subscription\"5\202\323\344\223\002/\022-/v1/{subscript" - + "ion=projects/*/subscriptions/*}\022\240\001\n\022Upda" - + "teSubscription\022+.google.pubsub.v1.Update" - + "SubscriptionRequest\032\036.google.pubsub.v1.S" - + "ubscription\"=\202\323\344\223\002722/v1/{subscription.n" - + "ame=projects/*/subscriptions/*}:\001*\022\234\001\n\021L" - + "istSubscriptions\022*.google.pubsub.v1.List" - + "SubscriptionsRequest\032+.google.pubsub.v1." - + "ListSubscriptionsResponse\".\202\323\344\223\002(\022&/v1/{" - + "project=projects/*}/subscriptions\022\220\001\n\022De" - + "leteSubscription\022+.google.pubsub.v1.Dele" - + "teSubscriptionRequest\032\026.google.protobuf." - + "Empty\"5\202\323\344\223\002/*-/v1/{subscription=project" - + "s/*/subscriptions/*}\022\243\001\n\021ModifyAckDeadli" - + "ne\022*.google.pubsub.v1.ModifyAckDeadlineR" - + "equest\032\026.google.protobuf.Empty\"J\202\323\344\223\002D\"?" - + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}:modifyAckDeadline:\001*\022\221\001\n\013Acknowled" - + "ge\022$.google.pubsub.v1.AcknowledgeRequest" - + "\032\026.google.protobuf.Empty\"D\202\323\344\223\002>\"9/v1/{s" - + "ubscription=projects/*/subscriptions/*}:" - + "acknowledge:\001*\022\204\001\n\004Pull\022\035.google.pubsub." - + "v1.PullRequest\032\036.google.pubsub.v1.PullRe" - + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" - + "ts/*/subscriptions/*}:pull:\001*\022f\n\rStreami" - + "ngPull\022&.google.pubsub.v1.StreamingPullR" - + "equest\032\'.google.pubsub.v1.StreamingPullR" - + "esponse\"\000(\0010\001\022\240\001\n\020ModifyPushConfig\022).goo" - + "gle.pubsub.v1.ModifyPushConfigRequest\032\026." - + "google.protobuf.Empty\"I\202\323\344\223\002C\">/v1/{subs" - + "cription=projects/*/subscriptions/*}:mod" - + "ifyPushConfig:\001*\022~\n\013GetSnapshot\022$.google" - + ".pubsub.v1.GetSnapshotRequest\032\032.google.p" - + "ubsub.v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{snapshot" - + "=projects/*/snapshots/*}\022\214\001\n\rListSnapsho" - + "ts\022&.google.pubsub.v1.ListSnapshotsReque" - + "st\032\'.google.pubsub.v1.ListSnapshotsRespo" - + "nse\"*\202\323\344\223\002$\022\"/v1/{project=projects/*}/sn" - + "apshots\022\203\001\n\016CreateSnapshot\022\'.google.pubs" - + "ub.v1.CreateSnapshotRequest\032\032.google.pub" - + "sub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{name=proje" - + "cts/*/snapshots/*}:\001*\022\214\001\n\016UpdateSnapshot" - + "\022\'.google.pubsub.v1.UpdateSnapshotReques" - + "t\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/" - + "v1/{snapshot.name=projects/*/snapshots/*" - + "}:\001*\022\200\001\n\016DeleteSnapshot\022\'.google.pubsub." - + "v1.DeleteSnapshotRequest\032\026.google.protob" - + "uf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=projects" - + "/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub" - + ".v1.SeekRequest\032\036.google.pubsub.v1.SeekR" - + "esponse\"=\202\323\344\223\0027\"2/v1/{subscription=proje" - + "cts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsu" - + "b.googleapis.com\322AUhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/pubsubB\256\001\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\\Cl" - + "oud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V" - + "1b\006proto3" + + "ionPolicy\022>\n\022dead_letter_policy\030\r \001(\0132\"." + + "google.pubsub.v1.DeadLetterPolicy\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"L\n\020DeadLetterPolicy\022\031\n\021dead_letter_topi" + + "c\030\001 \001(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":" + + "\n\020ExpirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google" + + ".protobuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpus" + + "h_endpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.g" + + "oogle.pubsub.v1.PushConfig.AttributesEnt" + + "ry\022<\n\noidc_token\030\003 \001(\0132&.google.pubsub.v" + + "1.PushConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n" + + "\025service_account_email\030\001 \001(\t\022\020\n\010audience" + + "\030\002 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001B\027\n\025authentication_meth" + + "od\"S\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n" + + "\007message\030\002 \001(\0132\037.google.pubsub.v1.Pubsub" + + "Message\".\n\026GetSubscriptionRequest\022\024\n\014sub" + + "scription\030\001 \001(\t\"\202\001\n\031UpdateSubscriptionRe" + + "quest\0224\n\014subscription\030\001 \001(\0132\036.google.pub" + + "sub.v1.Subscription\022/\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMask\"R\n\030ListSubs" + + "criptionsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031List" + + "SubscriptionsResponse\0225\n\rsubscriptions\030\001" + + " \003(\0132\036.google.pubsub.v1.Subscription\022\027\n\017" + + "next_page_token\030\002 \001(\t\"1\n\031DeleteSubscript" + + "ionRequest\022\024\n\014subscription\030\001 \001(\t\"b\n\027Modi" + + "fyPushConfigRequest\022\024\n\014subscription\030\001 \001(" + + "\t\0221\n\013push_config\030\002 \001(\0132\034.google.pubsub.v" + + "1.PushConfig\"U\n\013PullRequest\022\024\n\014subscript" + + "ion\030\001 \001(\t\022\032\n\022return_immediately\030\002 \001(\010\022\024\n" + + "\014max_messages\030\003 \001(\005\"L\n\014PullResponse\022<\n\021r" + + "eceived_messages\030\001 \003(\0132!.google.pubsub.v" + + "1.ReceivedMessage\"_\n\030ModifyAckDeadlineRe" + + "quest\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\004" + + " \003(\t\022\034\n\024ack_deadline_seconds\030\003 \001(\005\";\n\022Ac" + + "knowledgeRequest\022\024\n\014subscription\030\001 \001(\t\022\017" + + "\n\007ack_ids\030\002 \003(\t\"\244\001\n\024StreamingPullRequest" + + "\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\022" + + "\037\n\027modify_deadline_seconds\030\003 \003(\005\022\037\n\027modi" + + "fy_deadline_ack_ids\030\004 \003(\t\022#\n\033stream_ack_" + + "deadline_seconds\030\005 \001(\005\"U\n\025StreamingPullR" + + "esponse\022<\n\021received_messages\030\001 \003(\0132!.goo" + + "gle.pubsub.v1.ReceivedMessage\"\257\001\n\025Create" + + "SnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014subscri" + + "ption\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.google.pub" + + "sub.v1.CreateSnapshotRequest.LabelsEntry" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"v\n\025UpdateSnapshotRequest\022,\n\010snap" + + "shot\030\001 \001(\0132\032.google.pubsub.v1.Snapshot\022/" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022\r\n\005to" + + "pic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.google." + + "protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.goo" + + "gle.pubsub.v1.Snapshot.LabelsEntry\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"&\n\022GetSnapshotRequest\022\020\n\010snapshot\030\001 \001(" + + "\t\"N\n\024ListSnapshotsRequest\022\017\n\007project\030\001 \001" + + "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapshots\030" + + "\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\")\n\025DeleteSnapshotRequ" + + "est\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekRequest\022\024\n\014" + + "subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032.googl" + + "e.protobuf.TimestampH\000\022\022\n\010snapshot\030\003 \001(\t" + + "H\000B\010\n\006target\"\016\n\014SeekResponse2\261\t\n\tPublish" + + "er\022j\n\013CreateTopic\022\027.google.pubsub.v1.Top" + + "ic\032\027.google.pubsub.v1.Topic\")\202\323\344\223\002#\032\036/v1" + + "/{name=projects/*/topics/*}:\001*\022}\n\013Update" + + "Topic\022$.google.pubsub.v1.UpdateTopicRequ" + + "est\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v" + + "1/{topic.name=projects/*/topics/*}:\001*\022\202\001" + + "\n\007Publish\022 .google.pubsub.v1.PublishRequ" + + "est\032!.google.pubsub.v1.PublishResponse\"2" + + "\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:" + + "publish:\001*\022o\n\010GetTopic\022!.google.pubsub.v" + + "1.GetTopicRequest\032\027.google.pubsub.v1.Top" + + "ic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics" + + "/*}\022\200\001\n\nListTopics\022#.google.pubsub.v1.Li" + + "stTopicsRequest\032$.google.pubsub.v1.ListT" + + "opicsResponse\"\'\202\323\344\223\002!\022\037/v1/{project=proj" + + "ects/*}/topics\022\262\001\n\026ListTopicSubscription" + + "s\022/.google.pubsub.v1.ListTopicSubscripti" + + "onsRequest\0320.google.pubsub.v1.ListTopicS" + + "ubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/{topic" + + "=projects/*/topics/*}/subscriptions\022\242\001\n\022" + + "ListTopicSnapshots\022+.google.pubsub.v1.Li" + + "stTopicSnapshotsRequest\032,.google.pubsub." + + "v1.ListTopicSnapshotsResponse\"1\202\323\344\223\002+\022)/" + + "v1/{topic=projects/*/topics/*}/snapshots" + + "\022t\n\013DeleteTopic\022$.google.pubsub.v1.Delet" + + "eTopicRequest\032\026.google.protobuf.Empty\"\'\202" + + "\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\032p" + + "\312A\025pubsub.googleapis.com\322AUhttps://www.g" + + "oogleapis.com/auth/cloud-platform,https:" + + "//www.googleapis.com/auth/pubsub2\353\022\n\nSub" + + "scriber\022\206\001\n\022CreateSubscription\022\036.google." + + "pubsub.v1.Subscription\032\036.google.pubsub.v" + + "1.Subscription\"0\202\323\344\223\002*\032%/v1/{name=projec" + + "ts/*/subscriptions/*}:\001*\022\222\001\n\017GetSubscrip" + + "tion\022(.google.pubsub.v1.GetSubscriptionR" + + "equest\032\036.google.pubsub.v1.Subscription\"5" + + "\202\323\344\223\002/\022-/v1/{subscription=projects/*/sub" + + "scriptions/*}\022\240\001\n\022UpdateSubscription\022+.g" + + "oogle.pubsub.v1.UpdateSubscriptionReques" + + "t\032\036.google.pubsub.v1.Subscription\"=\202\323\344\223\002" + + "722/v1/{subscription.name=projects/*/sub" + + "scriptions/*}:\001*\022\234\001\n\021ListSubscriptions\022*" + + ".google.pubsub.v1.ListSubscriptionsReque" + + "st\032+.google.pubsub.v1.ListSubscriptionsR" + + "esponse\".\202\323\344\223\002(\022&/v1/{project=projects/*" + + "}/subscriptions\022\220\001\n\022DeleteSubscription\022+" + + ".google.pubsub.v1.DeleteSubscriptionRequ" + + "est\032\026.google.protobuf.Empty\"5\202\323\344\223\002/*-/v1" + + "/{subscription=projects/*/subscriptions/" + + "*}\022\243\001\n\021ModifyAckDeadline\022*.google.pubsub" + + ".v1.ModifyAckDeadlineRequest\032\026.google.pr" + + "otobuf.Empty\"J\202\323\344\223\002D\"?/v1/{subscription=" + + "projects/*/subscriptions/*}:modifyAckDea" + + "dline:\001*\022\221\001\n\013Acknowledge\022$.google.pubsub" + + ".v1.AcknowledgeRequest\032\026.google.protobuf" + + ".Empty\"D\202\323\344\223\002>\"9/v1/{subscription=projec" + + "ts/*/subscriptions/*}:acknowledge:\001*\022\204\001\n" + + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.g" + + "oogle.pubsub.v1.PullResponse\"=\202\323\344\223\0027\"2/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}:pull:\001*\022f\n\rStreamingPull\022&.google.pu" + + "bsub.v1.StreamingPullRequest\032\'.google.pu" + + "bsub.v1.StreamingPullResponse\"\000(\0010\001\022\240\001\n\020" + + "ModifyPushConfig\022).google.pubsub.v1.Modi" + + "fyPushConfigRequest\032\026.google.protobuf.Em" + + "pty\"I\202\323\344\223\002C\">/v1/{subscription=projects/" + + "*/subscriptions/*}:modifyPushConfig:\001*\022~" + + "\n\013GetSnapshot\022$.google.pubsub.v1.GetSnap" + + "shotRequest\032\032.google.pubsub.v1.Snapshot\"" + + "-\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsh" + + "ots/*}\022\214\001\n\rListSnapshots\022&.google.pubsub" + + ".v1.ListSnapshotsRequest\032\'.google.pubsub" + + ".v1.ListSnapshotsResponse\"*\202\323\344\223\002$\022\"/v1/{" + + "project=projects/*}/snapshots\022\203\001\n\016Create" + + "Snapshot\022\'.google.pubsub.v1.CreateSnapsh" + + "otRequest\032\032.google.pubsub.v1.Snapshot\",\202" + + "\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}" + + ":\001*\022\214\001\n\016UpdateSnapshot\022\'.google.pubsub.v" + + "1.UpdateSnapshotRequest\032\032.google.pubsub." + + "v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot.name=" + + "projects/*/snapshots/*}:\001*\022\200\001\n\016DeleteSna" + + "pshot\022\'.google.pubsub.v1.DeleteSnapshotR" + + "equest\032\026.google.protobuf.Empty\"-\202\323\344\223\002\'*%" + + "/v1/{snapshot=projects/*/snapshots/*}\022\204\001" + + "\n\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036." + + "google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/" + + "v1/{subscription=projects/*/subscription" + + "s/*}:seek:\001*\032p\312A\025pubsub.googleapis.com\322A" + + "Uhttps://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "pubsubB\256\001\n\024com.google.pubsub.v1B\013PubsubP" + + "rotoP\001Z6google.golang.org/genproto/googl" + + "eapis/pubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud" + + ".PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Go" + + "ogle::Cloud::PubSub::V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -573,6 +580,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Labels", "EnableMessageOrdering", "ExpirationPolicy", + "DeadLetterPolicy", }); internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); @@ -582,8 +590,16 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = + internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, + new java.lang.String[] { + "DeadLetterTopic", "MaxDeliveryAttempts", + }); + internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -591,7 +607,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -615,7 +631,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Key", "Value", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -623,7 +639,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "AckId", "Message", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -631,7 +647,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -639,7 +655,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -647,7 +663,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -655,7 +671,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -663,7 +679,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -671,7 +687,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -679,7 +695,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -687,7 +703,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -695,7 +711,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -703,7 +719,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -715,7 +731,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "StreamAckDeadlineSeconds", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -723,7 +739,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "ReceivedMessages", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -739,7 +755,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -747,7 +763,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -763,7 +779,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -771,7 +787,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -779,7 +795,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -787,7 +803,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -795,7 +811,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -803,7 +819,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index eb45e5ee87ff..ce9a64fa1eca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -168,8 +168,9 @@ public boolean getReturnImmediately() { * * *
    -   * The maximum number of messages returned for this request. The Pub/Sub
    -   * system may return fewer than the number specified.
    +   * 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.
        * 
    * * int32 max_messages = 3; @@ -678,8 +679,9 @@ public Builder clearReturnImmediately() { * * *
    -     * The maximum number of messages returned for this request. The Pub/Sub
    -     * system may return fewer than the number specified.
    +     * 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.
          * 
    * * int32 max_messages = 3; @@ -691,8 +693,9 @@ public int getMaxMessages() { * * *
    -     * The maximum number of messages returned for this request. The Pub/Sub
    -     * system may return fewer than the number specified.
    +     * 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.
          * 
    * * int32 max_messages = 3; @@ -707,8 +710,9 @@ public Builder setMaxMessages(int value) { * * *
    -     * The maximum number of messages returned for this request. The Pub/Sub
    -     * system may return fewer than the number specified.
    +     * 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.
          * 
    * * int32 max_messages = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 8bd5f390727c..b4efa8dbb22c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -49,8 +49,9 @@ public interface PullRequestOrBuilder * * *
    -   * The maximum number of messages returned for this request. The Pub/Sub
    -   * system may return fewer than the number specified.
    +   * 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.
        * 
    * * int32 max_messages = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index a71441a55486..043905778028 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -137,6 +137,22 @@ private Subscription( expirationPolicy_ = subBuilder.buildPartial(); } + break; + } + case 106: + { + com.google.pubsub.v1.DeadLetterPolicy.Builder subBuilder = null; + if (deadLetterPolicy_ != null) { + subBuilder = deadLetterPolicy_.toBuilder(); + } + deadLetterPolicy_ = + input.readMessage( + com.google.pubsub.v1.DeadLetterPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deadLetterPolicy_); + deadLetterPolicy_ = subBuilder.buildPartial(); + } + break; } default: @@ -614,6 +630,74 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild return getExpirationPolicy(); } + public static final int DEAD_LETTER_POLICY_FIELD_NUMBER = 13; + private com.google.pubsub.v1.DeadLetterPolicy 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public boolean hasDeadLetterPolicy() { + return deadLetterPolicy_ != null; + } + /** + * + * + *
    +   * 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { + return deadLetterPolicy_ == null + ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() + : 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() { + return getDeadLetterPolicy(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -654,6 +738,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expirationPolicy_ != null) { output.writeMessage(11, getExpirationPolicy()); } + if (deadLetterPolicy_ != null) { + output.writeMessage(13, getDeadLetterPolicy()); + } unknownFields.writeTo(output); } @@ -699,6 +786,9 @@ public int getSerializedSize() { if (expirationPolicy_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy()); } + if (deadLetterPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeadLetterPolicy()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -732,6 +822,10 @@ public boolean equals(final java.lang.Object obj) { if (hasExpirationPolicy()) { if (!getExpirationPolicy().equals(other.getExpirationPolicy())) return false; } + if (hasDeadLetterPolicy() != other.hasDeadLetterPolicy()) return false; + if (hasDeadLetterPolicy()) { + if (!getDeadLetterPolicy().equals(other.getDeadLetterPolicy())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -769,6 +863,10 @@ public int hashCode() { hash = (37 * hash) + EXPIRATION_POLICY_FIELD_NUMBER; hash = (53 * hash) + getExpirationPolicy().hashCode(); } + if (hasDeadLetterPolicy()) { + hash = (37 * hash) + DEAD_LETTER_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDeadLetterPolicy().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -962,6 +1060,12 @@ public Builder clear() { expirationPolicy_ = null; expirationPolicyBuilder_ = null; } + if (deadLetterPolicyBuilder_ == null) { + deadLetterPolicy_ = null; + } else { + deadLetterPolicy_ = null; + deadLetterPolicyBuilder_ = null; + } return this; } @@ -1012,6 +1116,11 @@ public com.google.pubsub.v1.Subscription buildPartial() { } else { result.expirationPolicy_ = expirationPolicyBuilder_.build(); } + if (deadLetterPolicyBuilder_ == null) { + result.deadLetterPolicy_ = deadLetterPolicy_; + } else { + result.deadLetterPolicy_ = deadLetterPolicyBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1089,6 +1198,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasExpirationPolicy()) { mergeExpirationPolicy(other.getExpirationPolicy()); } + if (other.hasDeadLetterPolicy()) { + mergeDeadLetterPolicy(other.getDeadLetterPolicy()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2376,6 +2488,269 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild return expirationPolicyBuilder_; } + private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.DeadLetterPolicy, + com.google.pubsub.v1.DeadLetterPolicy.Builder, + com.google.pubsub.v1.DeadLetterPolicyOrBuilder> + deadLetterPolicyBuilder_; + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public boolean hasDeadLetterPolicy() { + return deadLetterPolicyBuilder_ != null || deadLetterPolicy_ != null; + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { + if (deadLetterPolicyBuilder_ == null) { + return deadLetterPolicy_ == null + ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() + : deadLetterPolicy_; + } else { + return deadLetterPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) { + if (deadLetterPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deadLetterPolicy_ = value; + onChanged(); + } else { + deadLetterPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public Builder setDeadLetterPolicy( + com.google.pubsub.v1.DeadLetterPolicy.Builder builderForValue) { + if (deadLetterPolicyBuilder_ == null) { + deadLetterPolicy_ = builderForValue.build(); + onChanged(); + } else { + deadLetterPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) { + if (deadLetterPolicyBuilder_ == null) { + if (deadLetterPolicy_ != null) { + deadLetterPolicy_ = + com.google.pubsub.v1.DeadLetterPolicy.newBuilder(deadLetterPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + deadLetterPolicy_ = value; + } + onChanged(); + } else { + deadLetterPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public Builder clearDeadLetterPolicy() { + if (deadLetterPolicyBuilder_ == null) { + deadLetterPolicy_ = null; + onChanged(); + } else { + deadLetterPolicy_ = null; + deadLetterPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() { + + onChanged(); + return getDeadLetterPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() { + if (deadLetterPolicyBuilder_ != null) { + return deadLetterPolicyBuilder_.getMessageOrBuilder(); + } else { + return deadLetterPolicy_ == null + ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() + : 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.DeadLetterPolicy, + com.google.pubsub.v1.DeadLetterPolicy.Builder, + com.google.pubsub.v1.DeadLetterPolicyOrBuilder> + getDeadLetterPolicyFieldBuilder() { + if (deadLetterPolicyBuilder_ == null) { + deadLetterPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.DeadLetterPolicy, + com.google.pubsub.v1.DeadLetterPolicy.Builder, + com.google.pubsub.v1.DeadLetterPolicyOrBuilder>( + getDeadLetterPolicy(), getParentForChildren(), isClean()); + deadLetterPolicy_ = null; + } + return deadLetterPolicyBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 8861f6384216..7e9b8657093e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -314,4 +314,62 @@ public interface SubscriptionOrBuilder * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; */ com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder(); + + /** + * + * + *
    +   * 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + boolean hasDeadLetterPolicy(); + /** + * + * + *
    +   * 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy(); + /** + * + * + *
    +   * 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + */ + com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index ea0d4c7e53e5..8ee03eb17753 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -609,6 +609,52 @@ message Subscription { // *default policy* with `ttl` of 31 days will be used. The minimum allowed // value for `expiration_policy.ttl` is 1 day. ExpirationPolicy expiration_policy = 11; + + // 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. + // 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. + DeadLetterPolicy dead_letter_policy = 13; +} + +// 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. +message DeadLetterPolicy { + // 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-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 subscription attached to this topic + // since messages published to a topic with no subscriptions are lost. + string dead_letter_topic = 1; + + // The maximum number of delivery attempts for any message. The value must be + // between 5 and 100. + // + // The number of delivery attempts is defined as 1 + (the sum of number of + // NACKs and 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 honored on a best effort basis. + // + // If this parameter is 0, a default value of 5 is used. + int32 max_delivery_attempts = 2; } // A policy that specifies the conditions for resource expiration (i.e., @@ -770,8 +816,9 @@ message PullRequest { // least one message is available, rather than returning no messages. bool return_immediately = 2; - // The maximum number of messages returned for this request. The Pub/Sub - // system may return fewer than the number specified. + // 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. int32 max_messages = 3; } From 6358e710ed740ae8e2cfb14a9e40d7defd0801c5 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Thu, 21 Nov 2019 08:48:11 -0500 Subject: [PATCH 0251/2363] update libraries-bom (#6799) --- java-pubsub/google-cloud-pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/google-cloud-pubsub/README.md index 664835aea366..3f5ad7133804 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/google-cloud-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with a BOM, add this to your pom.xml file. com.google.cloud libraries-bom - 2.8.0 + 2.9.0 pom import From 9186d831f0b07c49fccf7093526a074209695c72 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 21 Nov 2019 18:20:16 -0600 Subject: [PATCH 0252/2363] feat: make repo releasable, add parent/bom (#3) * feat: make repo releasable, add parent/bom * fix: license headers * fix: compile * deps: fix dependency declarations * deps: tests need opencensus-impl * fix: don't include latest proto changes * chore: ignore opencensus-impl:test from dependency check * fix: allow proto interface changes * docs: restore README content * docs: fix links --- .../.github/ISSUE_TEMPLATE/bug_report.md | 51 +++ .../.github/ISSUE_TEMPLATE/feature_request.md | 21 ++ .../.github/ISSUE_TEMPLATE/support_request.md | 7 + java-pubsub/.github/PULL_REQUEST_TEMPLATE.md | 1 + java-pubsub/.github/release-please.yml | 2 + java-pubsub/.gitignore | 42 +++ java-pubsub/.kokoro/build.bat | 3 + java-pubsub/.kokoro/build.sh | 66 ++++ java-pubsub/.kokoro/coerce_logs.sh | 38 +++ java-pubsub/.kokoro/common.cfg | 13 + java-pubsub/.kokoro/continuous/common.cfg | 25 ++ .../.kokoro/continuous/dependencies.cfg | 12 + .../.kokoro/continuous/integration.cfg | 7 + java-pubsub/.kokoro/continuous/java11.cfg | 7 + java-pubsub/.kokoro/continuous/java7.cfg | 7 + java-pubsub/.kokoro/continuous/java8-osx.cfg | 3 + java-pubsub/.kokoro/continuous/java8-win.cfg | 3 + java-pubsub/.kokoro/continuous/java8.cfg | 7 + java-pubsub/.kokoro/continuous/lint.cfg | 13 + .../.kokoro/continuous/propose_release.cfg | 53 +++ .../.kokoro/continuous/propose_release.sh | 29 ++ java-pubsub/.kokoro/dependencies.sh | 31 ++ java-pubsub/.kokoro/linkage-monitor.sh | 33 ++ java-pubsub/.kokoro/nightly/common.cfg | 25 ++ java-pubsub/.kokoro/nightly/dependencies.cfg | 12 + java-pubsub/.kokoro/nightly/integration.cfg | 7 + java-pubsub/.kokoro/nightly/java11.cfg | 7 + java-pubsub/.kokoro/nightly/java7.cfg | 7 + java-pubsub/.kokoro/nightly/java8-osx.cfg | 3 + java-pubsub/.kokoro/nightly/java8-win.cfg | 3 + java-pubsub/.kokoro/nightly/java8.cfg | 7 + java-pubsub/.kokoro/nightly/lint.cfg | 13 + java-pubsub/.kokoro/presubmit/clirr.cfg | 13 + java-pubsub/.kokoro/presubmit/common.cfg | 34 ++ .../.kokoro/presubmit/dependencies.cfg | 12 + java-pubsub/.kokoro/presubmit/integration.cfg | 31 ++ java-pubsub/.kokoro/presubmit/java11.cfg | 7 + java-pubsub/.kokoro/presubmit/java7.cfg | 7 + java-pubsub/.kokoro/presubmit/java8-osx.cfg | 3 + java-pubsub/.kokoro/presubmit/java8-win.cfg | 3 + java-pubsub/.kokoro/presubmit/java8.cfg | 7 + .../.kokoro/presubmit/linkage-monitor.cfg | 12 + java-pubsub/.kokoro/presubmit/lint.cfg | 13 + java-pubsub/.kokoro/release/bump_snapshot.cfg | 53 +++ java-pubsub/.kokoro/release/bump_snapshot.sh | 30 ++ java-pubsub/.kokoro/release/common.cfg | 49 +++ java-pubsub/.kokoro/release/common.sh | 50 +++ java-pubsub/.kokoro/release/drop.cfg | 6 + java-pubsub/.kokoro/release/drop.sh | 32 ++ java-pubsub/.kokoro/release/promote.cfg | 6 + java-pubsub/.kokoro/release/promote.sh | 34 ++ .../.kokoro/release/publish_javadoc.cfg | 19 ++ .../.kokoro/release/publish_javadoc.sh | 55 ++++ java-pubsub/.kokoro/release/snapshot.cfg | 6 + java-pubsub/.kokoro/release/snapshot.sh | 33 ++ java-pubsub/.kokoro/release/stage.cfg | 44 +++ java-pubsub/.kokoro/release/stage.sh | 42 +++ java-pubsub/.kokoro/trampoline.sh | 24 ++ .../.repo-metadata.json | 5 +- java-pubsub/CODE_OF_CONDUCT.md | 93 ++++++ java-pubsub/CONTRIBUTING.md | 28 ++ java-pubsub/LICENSE | 5 +- .../{google-cloud-pubsub => }/README.md | 140 ++++---- java-pubsub/codecov.yaml | 4 + java-pubsub/google-cloud-pubsub-bom/pom.xml | 93 ++++++ java-pubsub/google-cloud-pubsub/pom.xml | 155 +++++++-- .../cloud/pubsub/v1/OpenCensusUtil.java | 3 +- .../cloud/pubsub/v1/StatusUtilTest.java | 15 + .../v1/SubscriptionAdminClientTest.java | 3 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 3 +- .../google-cloud-pubsub/synth.metadata | 32 -- .../grpc-google-cloud-pubsub-v1/pom.xml | 60 ++-- .../com/google/pubsub/v1/PublisherGrpc.java | 15 + .../com/google/pubsub/v1/SubscriberGrpc.java | 15 + java-pubsub/java.header | 15 + java-pubsub/license-checks.xml | 10 + java-pubsub/pom.xml | 306 ++++++++++++++++++ .../clirr-ignored-differences.xml | 19 ++ .../proto-google-cloud-pubsub-v1/pom.xml | 23 +- .../google/pubsub/v1/AcknowledgeRequest.java | 15 + .../v1/AcknowledgeRequestOrBuilder.java | 15 + .../pubsub/v1/CreateSnapshotRequest.java | 15 + .../v1/CreateSnapshotRequestOrBuilder.java | 15 + .../google/pubsub/v1/DeadLetterPolicy.java | 15 + .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 15 + .../pubsub/v1/DeleteSnapshotRequest.java | 15 + .../v1/DeleteSnapshotRequestOrBuilder.java | 15 + .../pubsub/v1/DeleteSubscriptionRequest.java | 15 + .../DeleteSubscriptionRequestOrBuilder.java | 15 + .../google/pubsub/v1/DeleteTopicRequest.java | 15 + .../v1/DeleteTopicRequestOrBuilder.java | 15 + .../com/google/pubsub/v1/DeletedTopic.java | 18 +- .../google/pubsub/v1/ExpirationPolicy.java | 15 + .../pubsub/v1/ExpirationPolicyOrBuilder.java | 15 + .../google/pubsub/v1/GetSnapshotRequest.java | 15 + .../v1/GetSnapshotRequestOrBuilder.java | 15 + .../pubsub/v1/GetSubscriptionRequest.java | 15 + .../v1/GetSubscriptionRequestOrBuilder.java | 15 + .../com/google/pubsub/v1/GetTopicRequest.java | 15 + .../pubsub/v1/GetTopicRequestOrBuilder.java | 15 + .../pubsub/v1/ListSnapshotsRequest.java | 15 + .../v1/ListSnapshotsRequestOrBuilder.java | 15 + .../pubsub/v1/ListSnapshotsResponse.java | 15 + .../v1/ListSnapshotsResponseOrBuilder.java | 15 + .../pubsub/v1/ListSubscriptionsRequest.java | 15 + .../v1/ListSubscriptionsRequestOrBuilder.java | 15 + .../pubsub/v1/ListSubscriptionsResponse.java | 15 + .../ListSubscriptionsResponseOrBuilder.java | 15 + .../pubsub/v1/ListTopicSnapshotsRequest.java | 15 + .../ListTopicSnapshotsRequestOrBuilder.java | 15 + .../pubsub/v1/ListTopicSnapshotsResponse.java | 15 + .../ListTopicSnapshotsResponseOrBuilder.java | 15 + .../v1/ListTopicSubscriptionsRequest.java | 15 + ...istTopicSubscriptionsRequestOrBuilder.java | 15 + .../v1/ListTopicSubscriptionsResponse.java | 15 + ...stTopicSubscriptionsResponseOrBuilder.java | 15 + .../google/pubsub/v1/ListTopicsRequest.java | 15 + .../pubsub/v1/ListTopicsRequestOrBuilder.java | 15 + .../google/pubsub/v1/ListTopicsResponse.java | 15 + .../v1/ListTopicsResponseOrBuilder.java | 15 + .../pubsub/v1/MessageStoragePolicy.java | 15 + .../v1/MessageStoragePolicyOrBuilder.java | 15 + .../pubsub/v1/ModifyAckDeadlineRequest.java | 15 + .../v1/ModifyAckDeadlineRequestOrBuilder.java | 15 + .../pubsub/v1/ModifyPushConfigRequest.java | 15 + .../v1/ModifyPushConfigRequestOrBuilder.java | 15 + .../com/google/pubsub/v1/ProjectName.java | 18 +- .../google/pubsub/v1/ProjectSnapshotName.java | 18 +- .../pubsub/v1/ProjectSubscriptionName.java | 18 +- .../google/pubsub/v1/ProjectTopicName.java | 18 +- .../com/google/pubsub/v1/PublishRequest.java | 15 + .../pubsub/v1/PublishRequestOrBuilder.java | 15 + .../com/google/pubsub/v1/PublishResponse.java | 15 + .../pubsub/v1/PublishResponseOrBuilder.java | 15 + .../com/google/pubsub/v1/PubsubMessage.java | 15 + .../pubsub/v1/PubsubMessageOrBuilder.java | 15 + .../com/google/pubsub/v1/PubsubProto.java | 15 + .../com/google/pubsub/v1/PullRequest.java | 15 + .../pubsub/v1/PullRequestOrBuilder.java | 15 + .../com/google/pubsub/v1/PullResponse.java | 15 + .../pubsub/v1/PullResponseOrBuilder.java | 15 + .../java/com/google/pubsub/v1/PushConfig.java | 15 + .../google/pubsub/v1/PushConfigOrBuilder.java | 15 + .../com/google/pubsub/v1/ReceivedMessage.java | 15 + .../pubsub/v1/ReceivedMessageOrBuilder.java | 15 + .../com/google/pubsub/v1/SeekRequest.java | 15 + .../pubsub/v1/SeekRequestOrBuilder.java | 15 + .../com/google/pubsub/v1/SeekResponse.java | 15 + .../pubsub/v1/SeekResponseOrBuilder.java | 15 + .../java/com/google/pubsub/v1/Snapshot.java | 15 + .../google/pubsub/v1/SnapshotOrBuilder.java | 15 + .../pubsub/v1/StreamingPullRequest.java | 15 + .../v1/StreamingPullRequestOrBuilder.java | 15 + .../pubsub/v1/StreamingPullResponse.java | 15 + .../v1/StreamingPullResponseOrBuilder.java | 15 + .../com/google/pubsub/v1/Subscription.java | 15 + .../pubsub/v1/SubscriptionOrBuilder.java | 15 + .../main/java/com/google/pubsub/v1/Topic.java | 15 + .../java/com/google/pubsub/v1/TopicName.java | 18 +- .../java/com/google/pubsub/v1/TopicNames.java | 18 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 15 + .../google/pubsub/v1/UntypedTopicName.java | 18 +- .../pubsub/v1/UpdateSnapshotRequest.java | 15 + .../v1/UpdateSnapshotRequestOrBuilder.java | 15 + .../pubsub/v1/UpdateSubscriptionRequest.java | 15 + .../UpdateSubscriptionRequestOrBuilder.java | 15 + .../google/pubsub/v1/UpdateTopicRequest.java | 15 + .../v1/UpdateTopicRequestOrBuilder.java | 15 + java-pubsub/renovate.json | 27 ++ java-pubsub/synth.metadata | 31 ++ .../{google-cloud-pubsub => }/synth.py | 46 +-- java-pubsub/versions.txt | 6 + 172 files changed, 3439 insertions(+), 255 deletions(-) create mode 100644 java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md create mode 100644 java-pubsub/.github/ISSUE_TEMPLATE/feature_request.md create mode 100644 java-pubsub/.github/ISSUE_TEMPLATE/support_request.md create mode 100644 java-pubsub/.github/PULL_REQUEST_TEMPLATE.md create mode 100644 java-pubsub/.github/release-please.yml create mode 100644 java-pubsub/.gitignore create mode 100644 java-pubsub/.kokoro/build.bat create mode 100755 java-pubsub/.kokoro/build.sh create mode 100755 java-pubsub/.kokoro/coerce_logs.sh create mode 100644 java-pubsub/.kokoro/common.cfg create mode 100644 java-pubsub/.kokoro/continuous/common.cfg create mode 100644 java-pubsub/.kokoro/continuous/dependencies.cfg create mode 100644 java-pubsub/.kokoro/continuous/integration.cfg create mode 100644 java-pubsub/.kokoro/continuous/java11.cfg create mode 100644 java-pubsub/.kokoro/continuous/java7.cfg create mode 100644 java-pubsub/.kokoro/continuous/java8-osx.cfg create mode 100644 java-pubsub/.kokoro/continuous/java8-win.cfg create mode 100644 java-pubsub/.kokoro/continuous/java8.cfg create mode 100644 java-pubsub/.kokoro/continuous/lint.cfg create mode 100644 java-pubsub/.kokoro/continuous/propose_release.cfg create mode 100755 java-pubsub/.kokoro/continuous/propose_release.sh create mode 100755 java-pubsub/.kokoro/dependencies.sh create mode 100755 java-pubsub/.kokoro/linkage-monitor.sh create mode 100644 java-pubsub/.kokoro/nightly/common.cfg create mode 100644 java-pubsub/.kokoro/nightly/dependencies.cfg create mode 100644 java-pubsub/.kokoro/nightly/integration.cfg create mode 100644 java-pubsub/.kokoro/nightly/java11.cfg create mode 100644 java-pubsub/.kokoro/nightly/java7.cfg create mode 100644 java-pubsub/.kokoro/nightly/java8-osx.cfg create mode 100644 java-pubsub/.kokoro/nightly/java8-win.cfg create mode 100644 java-pubsub/.kokoro/nightly/java8.cfg create mode 100644 java-pubsub/.kokoro/nightly/lint.cfg create mode 100644 java-pubsub/.kokoro/presubmit/clirr.cfg create mode 100644 java-pubsub/.kokoro/presubmit/common.cfg create mode 100644 java-pubsub/.kokoro/presubmit/dependencies.cfg create mode 100644 java-pubsub/.kokoro/presubmit/integration.cfg create mode 100644 java-pubsub/.kokoro/presubmit/java11.cfg create mode 100644 java-pubsub/.kokoro/presubmit/java7.cfg create mode 100644 java-pubsub/.kokoro/presubmit/java8-osx.cfg create mode 100644 java-pubsub/.kokoro/presubmit/java8-win.cfg create mode 100644 java-pubsub/.kokoro/presubmit/java8.cfg create mode 100644 java-pubsub/.kokoro/presubmit/linkage-monitor.cfg create mode 100644 java-pubsub/.kokoro/presubmit/lint.cfg create mode 100644 java-pubsub/.kokoro/release/bump_snapshot.cfg create mode 100755 java-pubsub/.kokoro/release/bump_snapshot.sh create mode 100644 java-pubsub/.kokoro/release/common.cfg create mode 100755 java-pubsub/.kokoro/release/common.sh create mode 100644 java-pubsub/.kokoro/release/drop.cfg create mode 100755 java-pubsub/.kokoro/release/drop.sh create mode 100644 java-pubsub/.kokoro/release/promote.cfg create mode 100755 java-pubsub/.kokoro/release/promote.sh create mode 100644 java-pubsub/.kokoro/release/publish_javadoc.cfg create mode 100755 java-pubsub/.kokoro/release/publish_javadoc.sh create mode 100644 java-pubsub/.kokoro/release/snapshot.cfg create mode 100755 java-pubsub/.kokoro/release/snapshot.sh create mode 100644 java-pubsub/.kokoro/release/stage.cfg create mode 100755 java-pubsub/.kokoro/release/stage.sh create mode 100644 java-pubsub/.kokoro/trampoline.sh rename java-pubsub/{google-cloud-pubsub => }/.repo-metadata.json (80%) create mode 100644 java-pubsub/CODE_OF_CONDUCT.md create mode 100644 java-pubsub/CONTRIBUTING.md rename java-pubsub/{google-cloud-pubsub => }/README.md (63%) create mode 100644 java-pubsub/codecov.yaml create mode 100644 java-pubsub/google-cloud-pubsub-bom/pom.xml delete mode 100644 java-pubsub/google-cloud-pubsub/synth.metadata create mode 100644 java-pubsub/java.header create mode 100644 java-pubsub/license-checks.xml create mode 100644 java-pubsub/pom.xml create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml create mode 100644 java-pubsub/renovate.json create mode 100644 java-pubsub/synth.metadata rename java-pubsub/{google-cloud-pubsub => }/synth.py (50%) create mode 100644 java-pubsub/versions.txt diff --git a/java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md b/java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 000000000000..616371b51473 --- /dev/null +++ b/java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,51 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + +Thanks for stopping by to let us know something could be better! + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. + +Please run down the following list and make sure you've tried the usual "quick fixes": + + - Search the issues already opened: https://github.com/googleapis/java-pubsub/issues + - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform + +If you are still having issues, please include as much information as possible: + +#### Environment details + +1. Specify the API at the beginning of the title. For example, "BigQuery: ..."). + General, Core, and Other are also allowed as types +2. OS type and version: +3. Java version: +4. pubsub version(s): + +#### Steps to reproduce + + 1. ? + 2. ? + +#### Code example + +```java +// example +``` + +#### Stack trace +``` +Any relevant stacktrace here. +``` + +#### External references such as API reference guides + +- ? + +#### Any additional information below + + +Following these steps guarantees the quickest resolution possible. + +Thanks! diff --git a/java-pubsub/.github/ISSUE_TEMPLATE/feature_request.md b/java-pubsub/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 000000000000..754e30c68a00 --- /dev/null +++ b/java-pubsub/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,21 @@ +--- +name: Feature request +about: Suggest an idea for this library + +--- + +Thanks for stopping by to let us know something could be better! + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. + +**Is your feature request related to a problem? Please describe.** +What the problem is. Example: I'm always frustrated when [...] + +**Describe the solution you'd like** +What you want to happen. + +**Describe alternatives you've considered** +Any alternative solutions or features you've considered. + +**Additional context** +Any other context or screenshots about the feature request. diff --git a/java-pubsub/.github/ISSUE_TEMPLATE/support_request.md b/java-pubsub/.github/ISSUE_TEMPLATE/support_request.md new file mode 100644 index 000000000000..995869032125 --- /dev/null +++ b/java-pubsub/.github/ISSUE_TEMPLATE/support_request.md @@ -0,0 +1,7 @@ +--- +name: Support request +about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. + +--- + +**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md b/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000000..0bd0ee0620f9 --- /dev/null +++ b/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1 @@ +Fixes # (it's a good idea to open an issue first for context and/or discussion) \ No newline at end of file diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml new file mode 100644 index 000000000000..dce2c8450921 --- /dev/null +++ b/java-pubsub/.github/release-please.yml @@ -0,0 +1,2 @@ +releaseType: java-yoshi +bumpMinorPreMajor: true \ No newline at end of file diff --git a/java-pubsub/.gitignore b/java-pubsub/.gitignore new file mode 100644 index 000000000000..be0ddcd12a9b --- /dev/null +++ b/java-pubsub/.gitignore @@ -0,0 +1,42 @@ +# Packages +dist +bin +var +sdist +target + +# Unit test / coverage reports +.coverage +.tox +nosetests.xml + +# Translations +*.mo + +# Mr Developer +.mr.developer.cfg + +.metadata +.project +.pydevproject +*.iml +.idea +.settings +.DS_Store +.classpath + +# Built documentation +docs/ + + +# Wheel directory used in Travis builds. +gcloud-java-wheels/ +src/test/resources/gcd-head.zip +src/test/resources/gcd-v1beta2-rev1-2.1.1.zip + +# API key file containing value of GOOGLE_API_KEY for integration tests +api_key + +# Python utilities +*.pyc +artman-genfiles diff --git a/java-pubsub/.kokoro/build.bat b/java-pubsub/.kokoro/build.bat new file mode 100644 index 000000000000..ba2e6e889a8f --- /dev/null +++ b/java-pubsub/.kokoro/build.bat @@ -0,0 +1,3 @@ +:: See documentation in type-shell-output.bat + +"C:\Program Files\Git\bin\bash.exe" github/java-pubsub/.kokoro/build.sh diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh new file mode 100755 index 000000000000..dc2936ef76a8 --- /dev/null +++ b/java-pubsub/.kokoro/build.sh @@ -0,0 +1,66 @@ +#!/bin/bash +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +# Print out Java version +java -version +echo ${JOB_TYPE} + +mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true \ + -T 1C + +# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it +if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then + export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS}) +fi + +case ${JOB_TYPE} in +test) + mvn test -B -Dclirr.skip=true -Denforcer.skip=true + bash ${KOKORO_GFILE_DIR}/codecov.sh + bash .kokoro/coerce_logs.sh + ;; +lint) + mvn com.coveo:fmt-maven-plugin:check + ;; +javadoc) + mvn javadoc:javadoc javadoc:test-javadoc + ;; +integration) + mvn -B ${INTEGRATION_TEST_ARGS} \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -fae \ + verify + bash .kokoro/coerce_logs.sh + ;; +clirr) + mvn -B -Denforcer.skip=true clirr:check + ;; +*) + ;; +esac diff --git a/java-pubsub/.kokoro/coerce_logs.sh b/java-pubsub/.kokoro/coerce_logs.sh new file mode 100755 index 000000000000..5cf7ba49e6bb --- /dev/null +++ b/java-pubsub/.kokoro/coerce_logs.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# This script finds and moves sponge logs so that they can be found by placer +# and are not flagged as flaky by sponge. + +set -eo pipefail + +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +job=$(basename ${KOKORO_JOB_NAME}) + +echo "coercing sponge logs..." +for xml in `find . -name *-sponge_log.xml` +do + echo "processing ${xml}" + class=$(basename ${xml} | cut -d- -f2) + dir=$(dirname ${xml})/${job}/${class} + text=$(dirname ${xml})/${class}-sponge_log.txt + mkdir -p ${dir} + mv ${xml} ${dir}/sponge_log.xml + mv ${text} ${dir}/sponge_log.txt +done diff --git a/java-pubsub/.kokoro/common.cfg b/java-pubsub/.kokoro/common.cfg new file mode 100644 index 000000000000..5b49e5f18aad --- /dev/null +++ b/java-pubsub/.kokoro/common.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# All builds use the trampoline script to run in docker. +build_file: "java-pubsub/.kokoro/trampoline.sh" + +# Tell the trampoline which build file to use. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/build.sh" +} diff --git a/java-pubsub/.kokoro/continuous/common.cfg b/java-pubsub/.kokoro/continuous/common.cfg new file mode 100644 index 000000000000..4fd0d8a4d68d --- /dev/null +++ b/java-pubsub/.kokoro/continuous/common.cfg @@ -0,0 +1,25 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + regex: "**/*sponge_log.txt" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-pubsub/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} diff --git a/java-pubsub/.kokoro/continuous/dependencies.cfg b/java-pubsub/.kokoro/continuous/dependencies.cfg new file mode 100644 index 000000000000..16bc14cd56df --- /dev/null +++ b/java-pubsub/.kokoro/continuous/dependencies.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/dependencies.sh" +} diff --git a/java-pubsub/.kokoro/continuous/integration.cfg b/java-pubsub/.kokoro/continuous/integration.cfg new file mode 100644 index 000000000000..3b017fc80f04 --- /dev/null +++ b/java-pubsub/.kokoro/continuous/integration.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/java-pubsub/.kokoro/continuous/java11.cfg b/java-pubsub/.kokoro/continuous/java11.cfg new file mode 100644 index 000000000000..709f2b4c73db --- /dev/null +++ b/java-pubsub/.kokoro/continuous/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/java-pubsub/.kokoro/continuous/java7.cfg b/java-pubsub/.kokoro/continuous/java7.cfg new file mode 100644 index 000000000000..cb24f44eea3b --- /dev/null +++ b/java-pubsub/.kokoro/continuous/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/java-pubsub/.kokoro/continuous/java8-osx.cfg b/java-pubsub/.kokoro/continuous/java8-osx.cfg new file mode 100644 index 000000000000..a41d2bac4b09 --- /dev/null +++ b/java-pubsub/.kokoro/continuous/java8-osx.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-pubsub/.kokoro/build.sh" diff --git a/java-pubsub/.kokoro/continuous/java8-win.cfg b/java-pubsub/.kokoro/continuous/java8-win.cfg new file mode 100644 index 000000000000..ea3671f20e1a --- /dev/null +++ b/java-pubsub/.kokoro/continuous/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-pubsub/.kokoro/build.bat" diff --git a/java-pubsub/.kokoro/continuous/java8.cfg b/java-pubsub/.kokoro/continuous/java8.cfg new file mode 100644 index 000000000000..3b017fc80f04 --- /dev/null +++ b/java-pubsub/.kokoro/continuous/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/java-pubsub/.kokoro/continuous/lint.cfg b/java-pubsub/.kokoro/continuous/lint.cfg new file mode 100644 index 000000000000..6d323c8ae768 --- /dev/null +++ b/java-pubsub/.kokoro/continuous/lint.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "lint" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/continuous/propose_release.cfg b/java-pubsub/.kokoro/continuous/propose_release.cfg new file mode 100644 index 000000000000..a4056349ae75 --- /dev/null +++ b/java-pubsub/.kokoro/continuous/propose_release.cfg @@ -0,0 +1,53 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-pubsub/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/continuous/propose_release.sh" +} + +# tokens used by release-please to keep an up-to-date release PR. +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-key-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-token-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-url-release-please" + } + } +} diff --git a/java-pubsub/.kokoro/continuous/propose_release.sh b/java-pubsub/.kokoro/continuous/propose_release.sh new file mode 100755 index 000000000000..7f66694b0b1a --- /dev/null +++ b/java-pubsub/.kokoro/continuous/propose_release.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then + # Groom the release PR as new commits are merged. + npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ + --repo-url=googleapis/java-pubsub \ + --package-name="pubsub" \ + --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ + --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ + --release-type=java-yoshi +fi diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh new file mode 100755 index 000000000000..eb1cb86db2c4 --- /dev/null +++ b/java-pubsub/.kokoro/dependencies.sh @@ -0,0 +1,31 @@ +#!/bin/bash +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +cd github/java-pubsub/ + +# Print out Java +java -version +echo $JOB_TYPE + +export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" + +# this should run maven enforcer +mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true + +mvn -B dependency:analyze -DfailOnWarning=true diff --git a/java-pubsub/.kokoro/linkage-monitor.sh b/java-pubsub/.kokoro/linkage-monitor.sh new file mode 100755 index 000000000000..dc20251942b9 --- /dev/null +++ b/java-pubsub/.kokoro/linkage-monitor.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail +# Display commands being run. +set -x + +cd github/java-pubsub/ + +# Print out Java version +java -version +echo ${JOB_TYPE} + +mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V + +# Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR +JAR=linkage-monitor-latest-all-deps.jar +curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}" + +# Fails if there's new linkage errors compared with baseline +java -jar ${JAR} com.google.cloud:libraries-bom diff --git a/java-pubsub/.kokoro/nightly/common.cfg b/java-pubsub/.kokoro/nightly/common.cfg new file mode 100644 index 000000000000..4fd0d8a4d68d --- /dev/null +++ b/java-pubsub/.kokoro/nightly/common.cfg @@ -0,0 +1,25 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + regex: "**/*sponge_log.txt" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-pubsub/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} diff --git a/java-pubsub/.kokoro/nightly/dependencies.cfg b/java-pubsub/.kokoro/nightly/dependencies.cfg new file mode 100644 index 000000000000..16bc14cd56df --- /dev/null +++ b/java-pubsub/.kokoro/nightly/dependencies.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/dependencies.sh" +} diff --git a/java-pubsub/.kokoro/nightly/integration.cfg b/java-pubsub/.kokoro/nightly/integration.cfg new file mode 100644 index 000000000000..3b017fc80f04 --- /dev/null +++ b/java-pubsub/.kokoro/nightly/integration.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/java-pubsub/.kokoro/nightly/java11.cfg b/java-pubsub/.kokoro/nightly/java11.cfg new file mode 100644 index 000000000000..709f2b4c73db --- /dev/null +++ b/java-pubsub/.kokoro/nightly/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/java-pubsub/.kokoro/nightly/java7.cfg b/java-pubsub/.kokoro/nightly/java7.cfg new file mode 100644 index 000000000000..cb24f44eea3b --- /dev/null +++ b/java-pubsub/.kokoro/nightly/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/java-pubsub/.kokoro/nightly/java8-osx.cfg b/java-pubsub/.kokoro/nightly/java8-osx.cfg new file mode 100644 index 000000000000..a41d2bac4b09 --- /dev/null +++ b/java-pubsub/.kokoro/nightly/java8-osx.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-pubsub/.kokoro/build.sh" diff --git a/java-pubsub/.kokoro/nightly/java8-win.cfg b/java-pubsub/.kokoro/nightly/java8-win.cfg new file mode 100644 index 000000000000..ea3671f20e1a --- /dev/null +++ b/java-pubsub/.kokoro/nightly/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-pubsub/.kokoro/build.bat" diff --git a/java-pubsub/.kokoro/nightly/java8.cfg b/java-pubsub/.kokoro/nightly/java8.cfg new file mode 100644 index 000000000000..3b017fc80f04 --- /dev/null +++ b/java-pubsub/.kokoro/nightly/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/java-pubsub/.kokoro/nightly/lint.cfg b/java-pubsub/.kokoro/nightly/lint.cfg new file mode 100644 index 000000000000..6d323c8ae768 --- /dev/null +++ b/java-pubsub/.kokoro/nightly/lint.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "lint" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/clirr.cfg b/java-pubsub/.kokoro/presubmit/clirr.cfg new file mode 100644 index 000000000000..ec572442e2e7 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/clirr.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "clirr" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/common.cfg b/java-pubsub/.kokoro/presubmit/common.cfg new file mode 100644 index 000000000000..d505befa2f45 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/common.cfg @@ -0,0 +1,34 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + regex: "**/*sponge_log.txt" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-pubsub/.kokoro/trampoline.sh" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/build.sh" +} + +env_vars: { + key: "JOB_TYPE" + value: "test" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "dpebot_codecov_token" + } + } +} diff --git a/java-pubsub/.kokoro/presubmit/dependencies.cfg b/java-pubsub/.kokoro/presubmit/dependencies.cfg new file mode 100644 index 000000000000..16bc14cd56df --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/dependencies.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/dependencies.sh" +} diff --git a/java-pubsub/.kokoro/presubmit/integration.cfg b/java-pubsub/.kokoro/presubmit/integration.cfg new file mode 100644 index 000000000000..141f90c13c56 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/integration.cfg @@ -0,0 +1,31 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/java-pubsub/.kokoro/presubmit/java11.cfg b/java-pubsub/.kokoro/presubmit/java11.cfg new file mode 100644 index 000000000000..709f2b4c73db --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/java11.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} diff --git a/java-pubsub/.kokoro/presubmit/java7.cfg b/java-pubsub/.kokoro/presubmit/java7.cfg new file mode 100644 index 000000000000..cb24f44eea3b --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/java7.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java7" +} diff --git a/java-pubsub/.kokoro/presubmit/java8-osx.cfg b/java-pubsub/.kokoro/presubmit/java8-osx.cfg new file mode 100644 index 000000000000..a41d2bac4b09 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/java8-osx.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-pubsub/.kokoro/build.sh" diff --git a/java-pubsub/.kokoro/presubmit/java8-win.cfg b/java-pubsub/.kokoro/presubmit/java8-win.cfg new file mode 100644 index 000000000000..ea3671f20e1a --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/java8-win.cfg @@ -0,0 +1,3 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +build_file: "java-pubsub/.kokoro/build.bat" diff --git a/java-pubsub/.kokoro/presubmit/java8.cfg b/java-pubsub/.kokoro/presubmit/java8.cfg new file mode 100644 index 000000000000..3b017fc80f04 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/java8.cfg @@ -0,0 +1,7 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} diff --git a/java-pubsub/.kokoro/presubmit/linkage-monitor.cfg b/java-pubsub/.kokoro/presubmit/linkage-monitor.cfg new file mode 100644 index 000000000000..85e1a502c58f --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/linkage-monitor.cfg @@ -0,0 +1,12 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/linkage-monitor.sh" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/lint.cfg b/java-pubsub/.kokoro/presubmit/lint.cfg new file mode 100644 index 000000000000..6d323c8ae768 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/lint.cfg @@ -0,0 +1,13 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "lint" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/release/bump_snapshot.cfg b/java-pubsub/.kokoro/release/bump_snapshot.cfg new file mode 100644 index 000000000000..a2a5982a8190 --- /dev/null +++ b/java-pubsub/.kokoro/release/bump_snapshot.cfg @@ -0,0 +1,53 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + } +} + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-pubsub/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/release/bump_snapshot.sh" +} + +# tokens used by release-please to keep an up-to-date release PR. +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-key-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-token-release-please" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "github-magic-proxy-url-release-please" + } + } +} diff --git a/java-pubsub/.kokoro/release/bump_snapshot.sh b/java-pubsub/.kokoro/release/bump_snapshot.sh new file mode 100755 index 000000000000..bf54b4900f6f --- /dev/null +++ b/java-pubsub/.kokoro/release/bump_snapshot.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +export NPM_CONFIG_PREFIX=/home/node/.npm-global + +if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then + # Groom the snapshot release PR immediately after publishing a release + npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ + --repo-url=googleapis/java-pubsub \ + --package-name="pubsub" \ + --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ + --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ + --snapshot \ + --release-type=java-auth-yoshi +fi diff --git a/java-pubsub/.kokoro/release/common.cfg b/java-pubsub/.kokoro/release/common.cfg new file mode 100644 index 000000000000..7eeae74d53e5 --- /dev/null +++ b/java-pubsub/.kokoro/release/common.cfg @@ -0,0 +1,49 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Download trampoline resources. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" + +# Use the trampoline script to run in docker. +build_file: "java-pubsub/.kokoro/trampoline.sh" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "maven-gpg-keyring" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "maven-gpg-passphrase" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "maven-gpg-pubkeyring" + } + } +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 70247 + keyname: "sonatype-credentials" + } + } +} diff --git a/java-pubsub/.kokoro/release/common.sh b/java-pubsub/.kokoro/release/common.sh new file mode 100755 index 000000000000..6e3f65999b3d --- /dev/null +++ b/java-pubsub/.kokoro/release/common.sh @@ -0,0 +1,50 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +# Get secrets from keystore and set and environment variables +setup_environment_secrets() { + export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase) + export GPG_TTY=$(tty) + export GPG_HOMEDIR=/gpg + mkdir $GPG_HOMEDIR + mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg + mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-keyring $GPG_HOMEDIR/secring.gpg + export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f1 -d'|') + export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f2 -d'|') +} + +create_settings_xml_file() { + echo " + + + ossrh + ${SONATYPE_USERNAME} + ${SONATYPE_PASSWORD} + + + sonatype-nexus-staging + ${SONATYPE_USERNAME} + ${SONATYPE_PASSWORD} + + + sonatype-nexus-snapshots + ${SONATYPE_USERNAME} + ${SONATYPE_PASSWORD} + + +" > $1 +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/release/drop.cfg b/java-pubsub/.kokoro/release/drop.cfg new file mode 100644 index 000000000000..fa56231bdddd --- /dev/null +++ b/java-pubsub/.kokoro/release/drop.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/release/drop.sh" +} diff --git a/java-pubsub/.kokoro/release/drop.sh b/java-pubsub/.kokoro/release/drop.sh new file mode 100755 index 000000000000..5c4551efa2c0 --- /dev/null +++ b/java-pubsub/.kokoro/release/drop.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +# STAGING_REPOSITORY_ID must be set +if [ -z "${STAGING_REPOSITORY_ID}" ]; then + echo "Missing STAGING_REPOSITORY_ID environment variable" + exit 1 +fi + +source $(dirname "$0")/common.sh +pushd $(dirname "$0")/../../ + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn nexus-staging:drop -B \ + --settings=settings.xml \ + -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/java-pubsub/.kokoro/release/promote.cfg b/java-pubsub/.kokoro/release/promote.cfg new file mode 100644 index 000000000000..08d54e6ab17b --- /dev/null +++ b/java-pubsub/.kokoro/release/promote.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/release/promote.sh" +} diff --git a/java-pubsub/.kokoro/release/promote.sh b/java-pubsub/.kokoro/release/promote.sh new file mode 100755 index 000000000000..1fa95fa537a3 --- /dev/null +++ b/java-pubsub/.kokoro/release/promote.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +# STAGING_REPOSITORY_ID must be set +if [ -z "${STAGING_REPOSITORY_ID}" ]; then + echo "Missing STAGING_REPOSITORY_ID environment variable" + exit 1 +fi + +source $(dirname "$0")/common.sh + +pushd $(dirname "$0")/../../ + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn nexus-staging:release -B \ + -DperformRelease=true \ + --settings=settings.xml \ + -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/java-pubsub/.kokoro/release/publish_javadoc.cfg b/java-pubsub/.kokoro/release/publish_javadoc.cfg new file mode 100644 index 000000000000..b341d03a3146 --- /dev/null +++ b/java-pubsub/.kokoro/release/publish_javadoc.cfg @@ -0,0 +1,19 @@ +# Format: //devtools/kokoro/config/proto/build.proto +env_vars: { + key: "STAGING_BUCKET" + value: "docs-staging" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/release/publish_javadoc.sh" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "docuploader_service_account" + } + } +} diff --git a/java-pubsub/.kokoro/release/publish_javadoc.sh b/java-pubsub/.kokoro/release/publish_javadoc.sh new file mode 100755 index 000000000000..4b84079aa02d --- /dev/null +++ b/java-pubsub/.kokoro/release/publish_javadoc.sh @@ -0,0 +1,55 @@ +#!/bin/bash +# Copyright 2019 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +if [[ -z "${CREDENTIALS}" ]]; then + CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account +fi + +if [[ -z "${STAGING_BUCKET}" ]]; then + echo "Need to set STAGING_BUCKET environment variable" + exit 1 +fi + +# work from the git root directory +pushd $(dirname "$0")/../../ + +# install docuploader package +python3 -m pip install gcp-docuploader + +# compile all packages +mvn clean install -B -DskipTests=true + +NAME=google-cloud-pubsub +VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) + +# build the docs +mvn site -B + +pushd target/site/apidocs + +# create metadata +python3 -m docuploader create-metadata \ + --name ${NAME} \ + --version ${VERSION} \ + --language java + +# upload docs +python3 -m docuploader upload . \ + --credentials ${CREDENTIALS} \ + --staging-bucket ${STAGING_BUCKET} + +popd diff --git a/java-pubsub/.kokoro/release/snapshot.cfg b/java-pubsub/.kokoro/release/snapshot.cfg new file mode 100644 index 000000000000..3c445f2dc424 --- /dev/null +++ b/java-pubsub/.kokoro/release/snapshot.cfg @@ -0,0 +1,6 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/release/snapshot.sh" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/release/snapshot.sh b/java-pubsub/.kokoro/release/snapshot.sh new file mode 100755 index 000000000000..098168a7373c --- /dev/null +++ b/java-pubsub/.kokoro/release/snapshot.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +source $(dirname "$0")/common.sh +MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml +pushd $(dirname "$0")/../../ + +# ensure we're trying to push a snapshot (no-result returns non-zero exit code) +grep SNAPSHOT versions.txt + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn clean install deploy -B \ + --settings ${MAVEN_SETTINGS_FILE} \ + -DperformRelease=true \ + -Dgpg.executable=gpg \ + -Dgpg.passphrase=${GPG_PASSPHRASE} \ + -Dgpg.homedir=${GPG_HOMEDIR} diff --git a/java-pubsub/.kokoro/release/stage.cfg b/java-pubsub/.kokoro/release/stage.cfg new file mode 100644 index 000000000000..a27131cf4fe9 --- /dev/null +++ b/java-pubsub/.kokoro/release/stage.cfg @@ -0,0 +1,44 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/release/stage.sh" +} + +# Need to save the properties file +action { + define_artifacts { + regex: "github/java-pubsub/target/nexus-staging/staging/*.properties" + strip_prefix: "github/java-pubsub" + } +} + +# Fetch the token needed for reporting release status to GitHub +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "yoshi-automation-github-key" + } + } +} + +# Fetch magictoken to use with Magic Github Proxy +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "releasetool-magictoken" + } + } +} + +# Fetch api key to use with Magic Github Proxy +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "magic-github-proxy-api-key" + } + } +} diff --git a/java-pubsub/.kokoro/release/stage.sh b/java-pubsub/.kokoro/release/stage.sh new file mode 100755 index 000000000000..3c482cbc55f1 --- /dev/null +++ b/java-pubsub/.kokoro/release/stage.sh @@ -0,0 +1,42 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +# Start the releasetool reporter +python3 -m pip install gcp-releasetool +python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script + +source $(dirname "$0")/common.sh +MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml +pushd $(dirname "$0")/../../ + +setup_environment_secrets +create_settings_xml_file "settings.xml" + +mvn clean install deploy -B \ + --settings ${MAVEN_SETTINGS_FILE} \ + -DskipTests=true \ + -DperformRelease=true \ + -Dgpg.executable=gpg \ + -Dgpg.passphrase=${GPG_PASSPHRASE} \ + -Dgpg.homedir=${GPG_HOMEDIR} + +if [[ -n "${AUTORELEASE_PR}" ]] +then + mvn nexus-staging:release -B \ + -DperformRelease=true \ + --settings=settings.xml +fi \ No newline at end of file diff --git a/java-pubsub/.kokoro/trampoline.sh b/java-pubsub/.kokoro/trampoline.sh new file mode 100644 index 000000000000..ba17ce01466b --- /dev/null +++ b/java-pubsub/.kokoro/trampoline.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# Copyright 2018 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +set -eo pipefail +# Always run the cleanup script, regardless of the success of bouncing into +# the container. +function cleanup() { + chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh + ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh + echo "cleanup"; +} +trap cleanup EXIT +python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/java-pubsub/google-cloud-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json similarity index 80% rename from java-pubsub/google-cloud-pubsub/.repo-metadata.json rename to java-pubsub/.repo-metadata.json index af7889549b0b..1b89fff820f9 100644 --- a/java-pubsub/google-cloud-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -1,13 +1,14 @@ { "name": "pubsub", "name_pretty": "Google Cloud Pub/Sub", + "api_reference": "https://cloud.google.com/pubsub/", "product_documentation": "https://cloud.google.com/pubsub/docs/", "client_documentation": "https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/pubsub/v1/package-summary.html", "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", "release_level": "ga", "language": "java", - "repo": "googleapis/google-cloud-java", - "repo_short": "google-cloud-java", + "repo": "googleapis/java-pubsub", + "repo_short": "java-pubsub", "distribution_name": "com.google.cloud:google-cloud-pubsub", "api_id": "pubsub.googleapis.com" } \ No newline at end of file diff --git a/java-pubsub/CODE_OF_CONDUCT.md b/java-pubsub/CODE_OF_CONDUCT.md new file mode 100644 index 000000000000..6b2238bb75e0 --- /dev/null +++ b/java-pubsub/CODE_OF_CONDUCT.md @@ -0,0 +1,93 @@ +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of +experience, education, socio-economic status, nationality, personal appearance, +race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, or to ban temporarily or permanently any +contributor for other behaviors that they deem inappropriate, threatening, +offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +This Code of Conduct also applies outside the project spaces when the Project +Steward has a reasonable belief that an individual's behavior may have a +negative impact on the project or its community. + +## Conflict Resolution + +We do not believe that all conflict is bad; healthy debate and disagreement +often yield positive results. However, it is never okay to be disrespectful or +to engage in behavior that violates the project’s code of conduct. + +If you see someone violating the code of conduct, you are encouraged to address +the behavior directly with those involved. Many issues can be resolved quickly +and easily, and this gives people more control over the outcome of their +dispute. If you are unable to resolve the matter for any reason, or if the +behavior is threatening or harassing, report it. We are dedicated to providing +an environment where participants feel welcome and safe. + +Reports should be directed to *[PROJECT STEWARD NAME(s) AND EMAIL(s)]*, the +Project Steward(s) for *[PROJECT NAME]*. It is the Project Steward’s duty to +receive and address reported violations of the code of conduct. They will then +work with a committee consisting of representatives from the Open Source +Programs Office and the Google Open Source Strategy team. If for any reason you +are uncomfortable reaching out the Project Steward, please email +opensource@google.com. + +We will investigate every complaint, but you may not receive a direct response. +We will use our discretion in determining when and how to follow up on reported +incidents, which may range from not taking action to permanent expulsion from +the project and project-sponsored spaces. We will notify the accused of the +report and provide them an opportunity to discuss it before any action is taken. +The identity of the reporter will be omitted from the details of the report +supplied to the accused. In potentially harmful situations, such as ongoing +harassment or threats to anyone's safety, we may take action without notice. + +## Attribution + +This Code of Conduct is adapted from the Contributor Covenant, version 1.4, +available at +https://www.contributor-covenant.org/version/1/4/code-of-conduct.html \ No newline at end of file diff --git a/java-pubsub/CONTRIBUTING.md b/java-pubsub/CONTRIBUTING.md new file mode 100644 index 000000000000..ebbb59e5310f --- /dev/null +++ b/java-pubsub/CONTRIBUTING.md @@ -0,0 +1,28 @@ +# How to Contribute + +We'd love to accept your patches and contributions to this project. There are +just a few small guidelines you need to follow. + +## Contributor License Agreement + +Contributions to this project must be accompanied by a Contributor License +Agreement. You (or your employer) retain the copyright to your contribution; +this simply gives us permission to use and redistribute your contributions as +part of the project. Head over to to see +your current agreements on file or to sign a new one. + +You generally only need to submit a CLA once, so if you've already submitted one +(even if it was for a different project), you probably don't need to do it +again. + +## Code reviews + +All submissions, including submissions by project members, require review. We +use GitHub pull requests for this purpose. Consult +[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more +information on using pull requests. + +## Community Guidelines + +This project follows +[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). \ No newline at end of file diff --git a/java-pubsub/LICENSE b/java-pubsub/LICENSE index 4eedc0116add..d64569567334 100644 --- a/java-pubsub/LICENSE +++ b/java-pubsub/LICENSE @@ -1,4 +1,5 @@ -Apache License + + Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -178,7 +179,7 @@ Apache License APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" + boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a diff --git a/java-pubsub/google-cloud-pubsub/README.md b/java-pubsub/README.md similarity index 63% rename from java-pubsub/google-cloud-pubsub/README.md rename to java-pubsub/README.md index 3f5ad7133804..3b928096b118 100644 --- a/java-pubsub/google-cloud-pubsub/README.md +++ b/java-pubsub/README.md @@ -1,18 +1,17 @@ -Google Cloud Java Client for Pub/Sub -==================================== +# Google Cloud Java Client for Google Cloud Pub/Sub -Java idiomatic client for [Google Cloud Pub/Sub][cloud-pubsub]. +Java idiomatic client for [Google Cloud Pub/Sub][api-reference]. -[![Kokoro CI](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.svg)](http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/master.html) -[![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg)]( https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg) -[![Codacy Badge](https://api.codacy.com/project/badge/grade/9da006ad7c3a4fe1abd142e77c003917)](https://www.codacy.com/app/mziccard/google-cloud-java) +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] -- [Product Documentation][pubsub-product-docs] -- [Client Library Documentation][pubsub-client-lib-docs] +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +## Quickstart + +If you are using Maven with a BOM, add this to your pom.xml file: -Quickstart ----------- -If you are using Maven with a BOM, add this to your pom.xml file. ```xml @@ -31,8 +30,9 @@ If you are using Maven with a BOM, add this to your pom.xml file. google-cloud-pubsub
    ``` + [//]: # ({x-version-update-start:google-cloud-pubsub:released}) -If you are using Maven without a BOM, add this to your dependencies. +If you are using Maven without a BOM, add this to your pom.xml file ```xml com.google.cloud @@ -50,30 +50,29 @@ libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.101.0" ``` [//]: # ({x-version-update-end}) -Authentication --------------- +## Authentication -See the [Authentication](https://github.com/googleapis/google-cloud-java#authentication) section in the base directory's README. +See the [Authentication][authentication] section in the base directory's README. -About Google Cloud Pub/Sub --------------------------- +## About Google Cloud Pub/Sub -[Google Cloud Pub/Sub][cloud-pubsub] is designed to provide reliable, +[Google Cloud Pub/Sub][api-reference] is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications. -See the [Google Cloud Pub/Sub docs][cloud-pubsub-quickstart] for more details on how to activate +See the [Google Cloud Pub/Sub docs](https://cloud.google.com/pubsub/quickstart-console#before-you-begin) for more details on how to activate Cloud Pub/Sub for your project. -See the [Pub/Sub client library docs][pubsub-client-lib-docs] to learn how to interact with the +See the [Pub/Sub client library docs][javadocs] to learn how to interact with the Cloud Pub/Sub using this Client Library. -Getting Started ---------------- -#### Prerequisites +## Getting Started + +### Prerequisites + For this tutorial, you will need a [Google Developers Console](https://console.developers.google.com/) project with the Pub/Sub API enabled. You will need to [enable billing](https://support.google.com/cloud/answer/6158867?hl=en) to @@ -84,10 +83,12 @@ Google Cloud SDK](https://cloud.google.com/sdk/) and running the following comma `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. #### Installation and setup + You'll need to obtain the `google-cloud-pubsub` library. See the [Quickstart](#quickstart) section to add `google-cloud-pubsub` as a dependency in your code. #### Creating an authorized service object + To make authenticated requests to Google Cloud Pub/Sub, you must create a service object with credentials. You can then make API calls by calling methods on the Pub/Sub service object. The simplest way to authenticate is to use @@ -98,6 +99,7 @@ For other authentication options, see the [Authentication](https://github.com/googleapis/google-cloud-java#authentication) page. #### Creating a topic + With Pub/Sub you can create topics. A topic is a named resource to which messages are sent by publishers. Add the following imports at the top of your file: @@ -115,6 +117,7 @@ try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { ``` #### Publishing messages + With Pub/Sub you can publish messages to a topic. Add the following import at the top of your file: ```java @@ -141,6 +144,7 @@ try { ``` #### Creating a subscription + With Pub/Sub you can create subscriptions. A subscription represents the stream of messages from a single, specific topic. Add the following imports at the top of your file: @@ -162,6 +166,7 @@ try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.c ``` #### Pulling messages + With Pub/Sub you can pull messages from a subscription. Add the following imports at the top of your file: @@ -212,50 +217,71 @@ try { In [CreateTopicAndPublishMessages.java](../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. -Transport ---------- -Pub/Sub uses gRPC for the transport layer. -Java Versions -------------- +## Troubleshooting -Java 7 or above is required for using this client. +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. -Testing -------- +## Transport -This library has tools to help make tests for code using Cloud Pub/Sub. +Google Cloud Pub/Sub uses gRPC for the transport layer. -See [TESTING] to read more about testing. +## Java Versions -Versioning ----------- +Java 7 or above is required for using this client. + +## Versioning This library follows [Semantic Versioning](http://semver.org/). -It is currently in major version one (``1.y.z``), which means that the public API should be considered stable. +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. -Contributing ------------- +## Contributing Contributions to this library are always welcome and highly encouraged. -See `google-cloud`'s [CONTRIBUTING] documentation and the [shared documentation](https://github.com/googleapis/google-cloud-common/blob/master/contributing/readme.md#how-to-contribute-to-gcloud) for more information on how to get started. - -Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. - -License -------- - -Apache 2.0 - See [LICENSE] for more information. - - -[CONTRIBUTING]:https://github.com/googleapis/google-cloud-java/blob/master/CONTRIBUTING.md -[code-of-conduct]:https://github.com/googleapis/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[LICENSE]: https://github.com/googleapis/google-cloud-java/blob/master/LICENSE -[TESTING]: https://github.com/googleapis/google-cloud-java/blob/master/TESTING.md#testing-code-that-uses-pubsub - -[cloud-pubsub]: https://cloud.google.com/pubsub/ -[cloud-pubsub-quickstart]: https://cloud.google.com/pubsub/quickstart-console#before-you-begin -[pubsub-product-docs]: https://cloud.google.com/pubsub/docs/ -[pubsub-client-lib-docs]: https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/pubsub/v1/package-summary.html +See [CONTRIBUTING.md][contributing] documentation for more information on how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +## CI Status + +Java Version | Status +------------ | ------ +Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1] +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] +Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] +Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] + +[api-reference]: https://cloud.google.com/pubsub/ +[product-docs]: https://cloud.google.com/pubsub/docs/ +[javadocs]: https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/pubsub/v1/package-summary.html +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html +[stability-image]: https://img.shields.io/badge/stability-ga-green +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg +[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-pubsub&core=gav +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-sdk]: https://cloud.google.com/sdk/ +[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting +[contributing]: https://github.com/googleapis/java-pubsub/blob/master/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/java-pubsub/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/java-pubsub/blob/master/LICENSE \ No newline at end of file diff --git a/java-pubsub/codecov.yaml b/java-pubsub/codecov.yaml new file mode 100644 index 000000000000..5724ea9478d7 --- /dev/null +++ b/java-pubsub/codecov.yaml @@ -0,0 +1,4 @@ +--- +codecov: + ci: + - source.cloud.google.com diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml new file mode 100644 index 000000000000..e074a53b1371 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -0,0 +1,93 @@ + + + 4.0.0 + com.google.cloud + google-cloud-pubsub-bom + 1.101.1-SNAPSHOT + pom + + com.google.cloud + google-cloud-shared-config + 0.3.0 + + + Google Cloud pubsub BOM + https://github.com/googleapis/java-pubsub + + BOM for Google Cloud Pub/Sub + + + + Google LLC + + + + + chingor13 + Jeff Ching + chingor@google.com + Google LLC + + Developer + + + + + + scm:git:https://github.com/googleapis/java-pubsub.git + scm:git:git@github.com:googleapis/java-pubsub.git + https://github.com/googleapis/java-pubsub + + + + + sonatype-nexus-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + + + com.google.api.grpc + proto-google-cloud-pubsub-v1 + 1.83.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-pubsub-v1 + 1.83.1-SNAPSHOT + + + com.google.cloud + google-cloud-pubsub + 1.101.1-SNAPSHOT + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + true + + + + + \ No newline at end of file diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7e822cf7dcb5..1f38a0016bbe 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -1,39 +1,95 @@ 4.0.0 + com.google.cloud google-cloud-pubsub 1.101.1-SNAPSHOT jar Google Cloud Pub/Sub - https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-pubsub - - Java idiomatic client for Google Cloud Pub/Sub. - + https://github.com/googleapis/java-pubsub + Java idiomatic client for Google Cloud Pub/Sub com.google.cloud - google-cloud-clients - 0.119.1-alpha-SNAPSHOT + google-cloud-pubsub-parent + 1.101.1-SNAPSHOT google-cloud-pubsub - ${project.groupId} - google-cloud-core-grpc + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + com.google.api.grpc + proto-google-common-protos + + com.google.api.grpc proto-google-cloud-pubsub-v1 com.google.api.grpc - grpc-google-cloud-pubsub-v1 + proto-google-iam-v1 + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + org.threeten + threetenbp + + + com.google.code.findbugs + jsr305 + + + io.opencensus + opencensus-api + + + io.grpc + grpc-core + + + com.google.errorprone + error_prone_annotations com.google.auto.value - auto-value - provided + auto-value-annotations + ${autovalue.version} + + + com.google.http-client + google-http-client @@ -42,19 +98,25 @@ junit test + + com.google.truth + truth + test + org.easymock easymock test - org.objenesis - objenesis + com.google.cloud + google-cloud-core + ${google.core.version} test - com.google.truth - truth + com.google.api.grpc + grpc-google-cloud-pubsub-v1 test @@ -77,29 +139,52 @@
    - + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.1.1 + + io.opencensus:opencensus-impl + + + + - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 + maven-compiler-plugin + 3.5.1 - protected - true - none - true - - - ${project.javadoc.protobufBaseURL} - ../../../../../google-api-grpc/proto-google-cloud-pubsub-v1/target/site/apidocs/ - - - ${project.javadoc.protobufBaseURL} - ../../../../../google-api-grpc/grpc-google-cloud-pubsub-v1/target/site/apidocs/ - - + 1.7 + 1.7 + UTF-8 + -Xlint:unchecked + + + com.google.auto.value + auto-value + ${autovalue.version} + + - -
    + + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + +
    \ No newline at end of file diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java index 018c63452640..fce664ff2050 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java @@ -1,4 +1,5 @@ -/* Copyright 2019 Google Inc. +/* + * Copyright 2019 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java index 2c20529513a7..d1eb63b2719c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.pubsub.v1; import static com.google.common.truth.Truth.assertThat; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 77a67d2732b2..e00018feb493 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -69,6 +69,7 @@ import java.util.Arrays; import java.util.List; import java.util.Objects; +import java.util.UUID; import java.util.concurrent.ExecutionException; import org.junit.After; import org.junit.AfterClass; @@ -93,7 +94,7 @@ public static void startStaticServer() { mockSubscriber = new MockSubscriber(); serviceHelper = new MockServiceHelper( - "in-process-1", + UUID.randomUUID().toString(), Arrays.asList(mockPublisher, mockIAMPolicy, mockSubscriber)); serviceHelper.start(); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index b11e8eff9ef8..44312eb1ba76 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -53,6 +53,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.UUID; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -76,7 +77,7 @@ public static void startStaticServer() { mockSubscriber = new MockSubscriber(); serviceHelper = new MockServiceHelper( - "in-process-1", + UUID.randomUUID().toString(), Arrays.asList(mockPublisher, mockIAMPolicy, mockSubscriber)); serviceHelper.start(); } diff --git a/java-pubsub/google-cloud-pubsub/synth.metadata b/java-pubsub/google-cloud-pubsub/synth.metadata deleted file mode 100644 index ee6c12c1a56b..000000000000 --- a/java-pubsub/google-cloud-pubsub/synth.metadata +++ /dev/null @@ -1,32 +0,0 @@ -{ - "updateTime": "2019-08-22T07:52:52.479802Z", - "sources": [ - { - "generator": { - "name": "artman", - "version": "0.34.0", - "dockerImage": "googleapis/artman@sha256:38a27ba6245f96c3e86df7acb2ebcc33b4f186d9e475efe2d64303aec3d4e0ea" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "92bebf78345af8b2d3585220527115bda8bdedf8", - "internalRef": "264715111" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "pubsub", - "apiVersion": "v1", - "language": "java", - "generator": "gapic", - "config": "google/pubsub/artman_pubsub.yaml" - } - } - ] -} \ No newline at end of file diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 06996ac407de..2423909f2fa4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -2,51 +2,55 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + com.google.api.grpc grpc-google-cloud-pubsub-v1 1.83.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 - com.google.api.grpc - google-api-grpc - 0.84.1-SNAPSHOT + com.google.cloud + google-cloud-pubsub-parent + 1.101.1-SNAPSHOT + + io.grpc + grpc-api + io.grpc grpc-stub - compile io.grpc grpc-protobuf - compile + + + com.google.protobuf + protobuf-java com.google.api.grpc proto-google-cloud-pubsub-v1 - compile + + + com.google.guava + guava - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.1 - - protected - true - none - true - - - ${project.javadoc.protobufBaseURL} - ../../../../proto-google-cloud-pubsub-v1/target/site/apidocs/ - - - - - - -
    + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + +
    \ No newline at end of file diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 2e64a27a1a13..d810fe6837e4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.pubsub.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 1dbce6507d9b..f07b9dad4a39 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.pubsub.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; diff --git a/java-pubsub/java.header b/java-pubsub/java.header new file mode 100644 index 000000000000..3a9b503aa24f --- /dev/null +++ b/java-pubsub/java.header @@ -0,0 +1,15 @@ +^/\*$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)( All [rR]ights [rR]eserved\.)?$ +^ \*$ +^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ +^ \* you may not use this file except in compliance with the License\.$ +^ \* You may obtain a copy of the License at$ +^ \*$ +^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ +^ \*$ +^ \* Unless required by applicable law or agreed to in writing, software$ +^ \* distributed under the License is distributed on an "AS IS" BASIS,$ +^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ +^ \* See the License for the specific language governing permissions and$ +^ \* limitations under the License\.$ +^ \*/$ diff --git a/java-pubsub/license-checks.xml b/java-pubsub/license-checks.xml new file mode 100644 index 000000000000..6597fced808e --- /dev/null +++ b/java-pubsub/license-checks.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml new file mode 100644 index 000000000000..33ceac50356f --- /dev/null +++ b/java-pubsub/pom.xml @@ -0,0 +1,306 @@ + + + 4.0.0 + com.google.cloud + google-cloud-pubsub-parent + pom + 1.101.1-SNAPSHOT + Google Cloud Pub/Sub Parent + https://github.com/googleapis/java-pubsub + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-shared-config + 0.3.0 + + + + + chingor + Jeff Ching + chingor@google.com + Google + + Developer + + + + + Google LLC + + + scm:git:git@github.com:googleapis/java-pubsub.git + scm:git:git@github.com:googleapis/java-pubsub.git + https://github.com/googleapis/java-pubsub + HEAD + + + https://github.com/googleapis/java-pubsub/issues + GitHub Issues + + + + sonatype-nexus-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + Apache-2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + UTF-8 + UTF-8 + github + google-cloud-pubsub-parent + 1.91.3 + 1.8.1 + 1.17.0 + 1.50.1 + 1.25.0 + 3.10.0 + 4.12 + 3.6 + 28.1-android + 1.4.0 + 1.3.2 + 2.3.3 + 1.33.0 + 1.18 + 1.7 + 0.24.0 + + + + + + com.google.api.grpc + proto-google-cloud-pubsub-v1 + 1.83.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-pubsub-v1 + 1.83.1-SNAPSHOT + + + com.google.cloud + google-cloud-pubsub + 1.101.1-SNAPSHOT + + + + io.grpc + grpc-bom + ${grpc.version} + pom + import + + + com.google.api + gax-bom + ${gax.version} + pom + import + + + com.google.guava + guava-bom + ${guava.version} + pom + import + + + com.google.http-client + google-http-client-bom + ${http-client-bom.version} + pom + import + + + + com.google.protobuf + protobuf-java + ${protobuf.version} + + + com.google.api + api-common + ${google.api-common.version} + + + com.google.api.grpc + proto-google-common-protos + ${google.common-protos.version} + + + com.google.api.grpc + proto-google-iam-v1 + 0.13.0 + + + org.threeten + threetenbp + ${threeten.version} + + + javax.annotation + javax.annotation-api + ${javax.annotations.version} + + + org.codehaus.mojo + animal-sniffer-annotations + ${animal-sniffer.version} + + + io.opencensus + opencensus-api + ${opencensus.version} + + + com.google.errorprone + error_prone_annotations + ${errorprone.version} + + + com.google.code.findbugs + jsr305 + 3.0.2 + + + + junit + junit + ${junit.version} + test + + + com.google.api + gax-grpc + ${gax.version} + testlib + test + + + com.google.api.grpc + grpc-google-iam-v1 + 0.13.0 + test + + + org.easymock + easymock + ${easymock.version} + test + + + com.google.truth + truth + 1.0 + test + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + org.objenesis:objenesis + + + + + + + + proto-google-cloud-pubsub-v1 + grpc-google-cloud-pubsub-v1 + google-cloud-pubsub + google-cloud-pubsub-bom + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.0.0 + + + + index + dependency-info + team + ci-management + issue-management + licenses + scm + dependency-management + distribution-management + summary + modules + + + + + true + ${site.installationModule} + jar + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.1 + + + html + + aggregate + javadoc + + + + + none + protected + true + ${project.build.directory}/javadoc + + + Test helpers packages + com.google.cloud.testing + + + SPI packages + com.google.cloud.spi* + + + + + https://grpc.io/grpc-java/javadoc/ + https://developers.google.com/protocol-buffers/docs/reference/java/ + https://googleapis.dev/java/google-auth-library/latest/ + https://googleapis.dev/java/gax/latest/ + https://googleapis.github.io/api-common-java/${google.api-common.version}/apidocs/ + + + + + + \ No newline at end of file diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml b/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..7937e7b03db9 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/pubsub/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/pubsub/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/pubsub/v1/*OrBuilder + boolean has*(*) + + \ No newline at end of file diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index cd5f479a3e8e..3656f173a379 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -2,35 +2,32 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 + com.google.api.grpc proto-google-cloud-pubsub-v1 1.83.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 - com.google.api.grpc - google-api-grpc - 0.84.1-SNAPSHOT + com.google.cloud + google-cloud-pubsub-parent + 1.101.1-SNAPSHOT com.google.protobuf protobuf-java - compile - - - com.google.api - api-common - compile com.google.api.grpc proto-google-common-protos - compile - com.google.api.grpc - proto-google-iam-v1 - compile + com.google.api + api-common + + + com.google.guava + guava
    \ No newline at end of file diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 9b7a3708b981..81af93ef1c76 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index e5cc4683ef92..ef0e09836ee5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 3576d3c9a057..66816ee1cb02 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 0be6df1fee28..066254d34884 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 08f293efb4b3..036a7cb34dbe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 5a2528a1f139..5878b45445d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index af9e226c38b9..56eb166d32cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 81f619be4f6a..c54211cf5a2f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index e46ea84b81ea..6ce2f339f72b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 4355dc6d0370..252f33f89941 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index c24176a1cdc7..16c6191c9538 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 012b6f50b2e3..a0c01f0a08cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java index 6f0d9e08e295..865c2728db86 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.pubsub.v1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 172b7b99ac5b..da36a8a94093 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 7c18b741bced..66549de86fff 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index de31267dfcd4..032b90826152 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 9a7e4cddf8ff..179894c9e1d5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index f0e42b834b14..ba2640d36669 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 4b0258a30061..4e50ad308f47 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index b1fbffa56376..5d2d5cec41fd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 0991493adcca..c1f39ed51c95 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 9174f55774b9..13d2a9581636 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index a22908763b0b..2425164f32b2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 4ceea1f1e1e0..0421c26af6a9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 585f88414d03..dd8b34c1dbb8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 05f05b50ade9..8ca0a8f82ad1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 436f9e0388ff..c92f30a9abfb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 85c4cd8c296f..126a3840d87c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index ae0beec2222a..49ee54051130 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index bcb03577993a..29190c841000 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 86c00b81178b..4d93c32214b6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index e00427cedea1..bb057d567c2b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 71e4e0b30159..5f6320c10094 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index f2d1bafbeb97..039b884d7076 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 37b11a5d0359..4d337bd24e4e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index ae758fefe91f..8487f3f5de3a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 045e8cd22ee0..fd2684b83040 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 3f420628e5a4..1a550071a6ac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 673104099066..16ddbd600a75 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 351125f93298..de82ad5ebab7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 21dec64e2df5..d5ea52e04a03 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 82a2ff6b8ac9..1e6167ec1f2e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 5810070c1669..01e1c94cd2c9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index e038955f1c87..6ac52c729dd6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 079ea0289756..ed3d757bbe22 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 3751260d2883..2dd74bbd751e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 0bddfac5f399..48e7a44ddaef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index de07092b13e8..c73a67ae90ba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.pubsub.v1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java index db9de12357b4..de58e97b32d8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.pubsub.v1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java index dc20ad21db8c..598717152f1c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.pubsub.v1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java index cc37f7e6c693..0148bc504f20 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.pubsub.v1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 5ddd6b730156..80aaff0a4216 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 6611ff453fa5..82afc4756b70 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 4d8c4ac19d3b..874b04718aba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 138020b3d299..bc0dac4905c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index a6f00495369d..2452dab3b24c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 83af3d87f633..a8a54dc1116d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 15c16a43cff0..1b31eecc2059 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index ce9a64fa1eca..583ced1baf28 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index b4efa8dbb22c..800fd669001d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 1df37195015a..4c4f2d10533a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index b984ed4848af..98b2fdc53745 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 28ee321bf8d8..40430f47fc01 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 729f217b72d1..e541cde821b0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 686886d57e68..f810ee18c041 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 655d08ac2653..f9107be5a8b1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index ddaceef7ec6a..df7aab0864d5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 81fae758f1c3..8575868ea548 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index e10cc7adb51b..86dedd93c086 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index a864c6daaaec..26ea9f8dbfa1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index bddb129495d2..bc70b6f75900 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 30166c3a8d0b..099add24166c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 20f95dbb9710..89b57ac717d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index c270fecd8e53..506a3d351e05 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 217891b9868a..1e2e98d27f11 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 38125277bfef..29dfabe8aa97 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 043905778028..c1b59be76b64 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 7e9b8657093e..09f1b5f79256 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 3441012ff078..f5423f42f1f9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 96eca07d026c..4a3e0573dc81 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.pubsub.v1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java index 8d45672bdcd4..9452d22c34cd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.pubsub.v1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 67921c8d2b59..460f441e1fc7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java index afb211175b43..358561276f13 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java @@ -1,15 +1,17 @@ /* - * Copyright 2018 Google LLC + * Copyright 2019 Google LLC * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package com.google.pubsub.v1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index ab0c433066ad..271ef96db4af 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index db60dc8318ae..0a9819611421 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index abab7190e04f..31ffee1e163c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 398bbce136bd..976fb622e138 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index d9cad096d9d9..f0614360dc06 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 2ad73ddb525c..ac4f2882c003 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json new file mode 100644 index 000000000000..99810470034c --- /dev/null +++ b/java-pubsub/renovate.json @@ -0,0 +1,27 @@ +{ + "extends": [ + "config:base" + ], + "ignoreDeps": [], + "packageRules": [ + { + "managers": ["maven"], + "packageNames": ["com.google.guava:guava*"], + "versionScheme": "docker" + }, + { + "packagePatterns": ["^io.grpc:grpc-"], + "groupName": "gRPC packages" + }, + { + "packagePatterns": ["^com.google.protobuf:protobuf-"], + "groupName": "Protobuf packages" + }, + { + "packagePatterns": ["^io.opencensus:opencensus-"], + "groupName": "OpenCensus packages" + } + ], + "semanticCommits": true, + "semanticCommitType": "deps" +} diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata new file mode 100644 index 000000000000..e374ff437a16 --- /dev/null +++ b/java-pubsub/synth.metadata @@ -0,0 +1,31 @@ +{ + "updateTime": "2019-11-21T22:46:45.608871Z", + "sources": [ + { + "generator": { + "name": "artman", + "version": "0.42.1", + "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" + } + }, + { + "template": { + "name": "java_library", + "origin": "synthtool.gcp", + "version": "2019.10.17" + } + } + ], + "destinations": [ + { + "client": { + "source": "googleapis", + "apiName": "pubsub", + "apiVersion": "v1", + "language": "java", + "generator": "gapic", + "config": "google/pubsub/artman_pubsub.yaml" + } + } + ] +} \ No newline at end of file diff --git a/java-pubsub/google-cloud-pubsub/synth.py b/java-pubsub/synth.py similarity index 50% rename from java-pubsub/google-cloud-pubsub/synth.py rename to java-pubsub/synth.py index 3961bdff1fac..d47677f8479b 100644 --- a/java-pubsub/google-cloud-pubsub/synth.py +++ b/java-pubsub/synth.py @@ -25,22 +25,30 @@ config_pattern = '/google/pubsub/artman_pubsub.yaml' for version in versions: - library = gapic.java_library( - service=service, - version=version, - config_path=config_pattern.format(version=version), - artman_output_name='') - - s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') - s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') - s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') - - s.replace( - '**/stub/SubscriberStubSettings.java', - r'setMaxInboundMessageSize\(Integer.MAX_VALUE\)', - 'setMaxInboundMessageSize(20 << 20)' - ) - - java.format_code('./src') - java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') - java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') + java.gapic_library( + service=service, + version=version, + config_pattern=config_pattern, + package_pattern='com.google.{service}.{version}', + gapic=gapic, + ) + s.replace( + '**/stub/SubscriberStubSettings.java', + r'setMaxInboundMessageSize\(Integer.MAX_VALUE\)', + 'setMaxInboundMessageSize(20 << 20)' + ) + s.replace( + f"proto-google-cloud-{service}-{version}/src/**/*.java", + java.BAD_LICENSE, + java.GOOD_LICENSE, + ) + + java.format_code('google-cloud-pubsub/src') + java.format_code(f'grpc-google-cloud-{service}-{version}/src') + java.format_code(f'proto-google-cloud-{service}-{version}/src') + +common_templates = gcp.CommonTemplates() +templates = common_templates.java_library() +s.copy(templates, excludes=[ + 'README.md' +]) \ No newline at end of file diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt new file mode 100644 index 000000000000..4353756adc0d --- /dev/null +++ b/java-pubsub/versions.txt @@ -0,0 +1,6 @@ +# Format: +# module:released-version:current-version + +proto-google-cloud-pubsub-v1:1.83.1-SNAPSHOT:1.83.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.83.1-SNAPSHOT:1.83.1-SNAPSHOT +google-cloud-pubsub:1.101.1-SNAPSHOT:1.101.1-SNAPSHOT \ No newline at end of file From 22735ed9728d6b9cdaf51070878ca0e791d11bbf Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Mon, 25 Nov 2019 13:13:48 -0500 Subject: [PATCH 0253/2363] Modifying Publish example in README to match other examples given, and (#10) fix issue #11 --- java-pubsub/README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3b928096b118..ca3e1c833034 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -122,7 +122,10 @@ With Pub/Sub you can publish messages to a topic. Add the following import at th ```java import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; import com.google.cloud.pubsub.v1.Publisher; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.ByteString; import com.google.pubsub.v1.PubsubMessage; ``` @@ -135,6 +138,16 @@ try { ByteString data = ByteString.copyFromUtf8("my-message"); PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + ApiFutures.addCallback(messageIdFuture, new ApiFutureCallback() { + public void onSuccess(String messageId) { + System.out.println("published with message id: " + messageId); + } + + public void onFailure(Throwable t) { + System.out.println("failed to publish: " + t); + } + }, MoreExecutors.directExecutor()); + //... } finally { if (publisher != null) { publisher.shutdown(); @@ -284,4 +297,4 @@ Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] [troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting [contributing]: https://github.com/googleapis/java-pubsub/blob/master/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/java-pubsub/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-pubsub/blob/master/LICENSE \ No newline at end of file +[license]: https://github.com/googleapis/java-pubsub/blob/master/LICENSE From e7d6b645b7f9082ceb695de526da8b22e261d78e Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 26 Nov 2019 04:32:34 +0100 Subject: [PATCH 0254/2363] chore(deps): update dependency com.google.protobuf:protobuf-java to v3.11.0 (#12) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 33ceac50356f..626443df384a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -68,7 +68,7 @@ 1.17.0 1.50.1 1.25.0 - 3.10.0 + 3.11.0 4.12 3.6 28.1-android From ff30491c1465bb788a2b93d85af137d3cd935cc9 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Tue, 26 Nov 2019 09:47:36 -0500 Subject: [PATCH 0255/2363] fix: ordering keys publishing of last batch (#9) * google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java * Ensure that if a batch is started and the timeout completes before the currently outstanding message has finished publishing with an ordering key that the last batch does in fact get published. * add back in unit test --- .../com/google/cloud/pubsub/v1/Publisher.java | 24 ++++++++++++ .../pubsub/v1/SequentialExecutorService.java | 2 +- .../pubsub/v1/FakePublisherServiceImpl.java | 37 ++++++++++++++++++- .../cloud/pubsub/v1/PublisherImplTest.java | 15 ++++++++ 4 files changed, 76 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 1ea18df62efa..093590bb900a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -371,6 +371,25 @@ private void publishAllWithoutInflight() { } } + /** + * Publish any outstanding batches if non-empty and there are no other batches in flight for + * orderingKey. This method sends buffered messages, but does not wait for the send operations to + * complete. To wait for messages to send, call {@code get} on the futures returned from {@code + * publish}. + */ + private void publishAllWithoutInflightForKey(final String orderingKey) { + messagesBatchLock.lock(); + try { + MessagesBatch batch = messagesBatches.get(orderingKey); + if (batch != null && !sequentialExecutor.hasTasksInflight(orderingKey)) { + publishOutstandingBatch(batch.popOutstandingBatch()); + messagesBatches.remove(orderingKey); + } + } finally { + messagesBatchLock.unlock(); + } + } + private ApiFuture publishCall(OutstandingBatch outstandingBatch) { return publisherStub .publishCallable() @@ -397,6 +416,11 @@ public void onSuccess(PublishResponse result) { result.getMessageIdsCount(), outstandingBatch.size()))); } else { outstandingBatch.onSuccess(result.getMessageIdsList()); + if (!activeAlarm.get() + && outstandingBatch.orderingKey != null + && !outstandingBatch.orderingKey.isEmpty()) { + publishAllWithoutInflightForKey(outstandingBatch.orderingKey); + } } } finally { messagesWaiter.incrementPendingMessages(-outstandingBatch.size()); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java index a172c1ecb36d..712f51eb55a8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java @@ -216,8 +216,8 @@ public void run() { // Step 5.1: on success @Override public void onSuccess(T msg) { - future.set(msg); callNextTaskAsync(key); + future.set(msg); } // Step 5.2: on failure diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java index 620a09ac98bc..23817f558391 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java @@ -24,7 +24,10 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; +import org.threeten.bp.Duration; /** * A fake implementation of {@link PublisherImplBase}, that can be used to test clients of a Cloud @@ -36,6 +39,8 @@ class FakePublisherServiceImpl extends PublisherImplBase { private final LinkedBlockingQueue publishResponses = new LinkedBlockingQueue<>(); private final AtomicInteger nextMessageId = new AtomicInteger(1); private boolean autoPublishResponse; + private ScheduledExecutorService executor = null; + private Duration responseDelay = Duration.ZERO; /** Class used to save the state of a possible response. */ private static class Response { @@ -74,7 +79,8 @@ public String toString() { } @Override - public void publish(PublishRequest request, StreamObserver responseObserver) { + public void publish( + PublishRequest request, final StreamObserver responseObserver) { requests.add(request); Response response; try { @@ -90,6 +96,23 @@ public void publish(PublishRequest request, StreamObserver resp } catch (InterruptedException e) { throw new IllegalArgumentException(e); } + if (responseDelay == Duration.ZERO) { + sendResponse(response, responseObserver); + } else { + final Response responseToSend = response; + executor.schedule( + new Runnable() { + @Override + public void run() { + sendResponse(responseToSend, responseObserver); + } + }, + responseDelay.toMillis(), + TimeUnit.MILLISECONDS); + } + } + + private void sendResponse(Response response, StreamObserver responseObserver) { if (response.isError()) { responseObserver.onError(response.getError()); } else { @@ -107,6 +130,18 @@ public FakePublisherServiceImpl setAutoPublishResponse(boolean autoPublishRespon return this; } + /** Set an executor to use to delay publish responses. */ + public FakePublisherServiceImpl setExecutor(ScheduledExecutorService executor) { + this.executor = executor; + return this; + } + + /** Set an amount of time by which to delay publish responses. */ + public FakePublisherServiceImpl setPublishResponseDelay(Duration responseDelay) { + this.responseDelay = responseDelay; + return this; + } + public FakePublisherServiceImpl addPublishResponse(PublishResponse publishResponse) { publishResponses.add(new Response(publishResponse)); return this; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index f3c85220fc31..08fdee7b6be6 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -308,6 +308,8 @@ public void testBatchedMessagesWithOrderingKeyByDuration() throws Exception { .setEnableMessageOrdering(true) .build(); testPublisherServiceImpl.setAutoPublishResponse(true); + testPublisherServiceImpl.setExecutor(fakeExecutor); + testPublisherServiceImpl.setPublishResponseDelay(Duration.ofSeconds(300)); // Publish two messages with ordering key, "OrderA", and other two messages with "OrderB". ApiFuture publishFuture1 = sendTestMessageWithOrderingKey(publisher, "m1", "OrderA"); @@ -325,10 +327,23 @@ public void testBatchedMessagesWithOrderingKeyByDuration() throws Exception { // The timeout expires. fakeExecutor.advanceTime(Duration.ofSeconds(100)); + // Publish one more message on "OrderA" while publishes are outstanding. + testPublisherServiceImpl.setPublishResponseDelay(Duration.ZERO); + ApiFuture publishFuture5 = sendTestMessageWithOrderingKey(publisher, "m5", "OrderA"); + + // The second timeout expires. + fakeExecutor.advanceTime(Duration.ofSeconds(100)); + + // Publishing completes on the first four messages. + fakeExecutor.advanceTime(Duration.ofSeconds(200)); + // Verify that they were delivered in order per ordering key. assertTrue(Integer.parseInt(publishFuture1.get()) < Integer.parseInt(publishFuture3.get())); assertTrue(Integer.parseInt(publishFuture2.get()) < Integer.parseInt(publishFuture4.get())); + // Verify that they were delivered in order per ordering key. + assertTrue(Integer.parseInt(publishFuture3.get()) < Integer.parseInt(publishFuture5.get())); + // Verify that every message within the same batch has the same ordering key. List requests = testPublisherServiceImpl.getCapturedRequests(); for (PublishRequest request : requests) { From 9fef06bc70e173091058d4ed5d97cc3eb68696ae Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 4 Dec 2019 18:42:12 +0100 Subject: [PATCH 0256/2363] deps: update dependency com.google.protobuf:protobuf-java to v3.11.1 (#14) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 626443df384a..b40c3e3b22c4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -68,7 +68,7 @@ 1.17.0 1.50.1 1.25.0 - 3.11.0 + 3.11.1 4.12 3.6 28.1-android From 095d69494103ac4ec00881c386d9db3e80dbd5a7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2019 18:59:12 +0100 Subject: [PATCH 0257/2363] chore: release 1.102.0 (#6) * created CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated pom.xml [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] --- java-pubsub/CHANGELOG.md | 18 ++++++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 8 files changed, 38 insertions(+), 20 deletions(-) create mode 100644 java-pubsub/CHANGELOG.md diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md new file mode 100644 index 000000000000..9258db2d1081 --- /dev/null +++ b/java-pubsub/CHANGELOG.md @@ -0,0 +1,18 @@ +# Changelog + +## [1.102.0](https://www.github.com/googleapis/java-pubsub/compare/1.101.0...v1.102.0) (2019-12-04) + + +### Features + +* make repo releasable, add parent/bom ([#3](https://www.github.com/googleapis/java-pubsub/issues/3)) ([53c4030](https://www.github.com/googleapis/java-pubsub/commit/53c403008f891b79438a8b797156a473e47af5d6)) + + +### Bug Fixes + +* ordering keys publishing of last batch ([#9](https://www.github.com/googleapis/java-pubsub/issues/9)) ([02c3771](https://www.github.com/googleapis/java-pubsub/commit/02c3771846bec09c93441c490c7928090a8dd71e)) + + +### Dependencies + +* update dependency com.google.protobuf:protobuf-java to v3.11.1 ([#14](https://www.github.com/googleapis/java-pubsub/issues/14)) ([575b3d6](https://www.github.com/googleapis/java-pubsub/commit/575b3d624423d61b6475a86e019246d77f9957fe)) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ca3e1c833034..5943a98f6351 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -37,16 +37,16 @@ If you are using Maven without a BOM, add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.101.0 + 1.102.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.101.0' +compile 'com.google.cloud:google-cloud-pubsub:1.102.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.102.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e074a53b1371..1b0d7d45ad85 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.101.1-SNAPSHOT + 1.102.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.83.1-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.83.1-SNAPSHOT + 1.84.0 com.google.cloud google-cloud-pubsub - 1.101.1-SNAPSHOT + 1.102.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1f38a0016bbe..aaa6690bf503 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.101.1-SNAPSHOT + 1.102.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.101.1-SNAPSHOT + 1.102.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2423909f2fa4..f46969d7c125 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.83.1-SNAPSHOT + 1.84.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.101.1-SNAPSHOT + 1.102.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b40c3e3b22c4..878e9a742416 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.101.1-SNAPSHOT + 1.102.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.83.1-SNAPSHOT + 1.84.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.83.1-SNAPSHOT + 1.84.0 com.google.cloud google-cloud-pubsub - 1.101.1-SNAPSHOT + 1.102.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3656f173a379..22501520e433 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.83.1-SNAPSHOT + 1.84.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.101.1-SNAPSHOT + 1.102.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4353756adc0d..8d1fa674aa9c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.83.1-SNAPSHOT:1.83.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.83.1-SNAPSHOT:1.83.1-SNAPSHOT -google-cloud-pubsub:1.101.1-SNAPSHOT:1.101.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.84.0:1.84.0 +grpc-google-cloud-pubsub-v1:1.84.0:1.84.0 +google-cloud-pubsub:1.102.0:1.102.0 \ No newline at end of file From dd192215608b04f14c8aa4c3e511e5a45e506704 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 18 Dec 2019 00:16:28 +0200 Subject: [PATCH 0258/2363] chore(deps): update dependency com.google.http-client:google-http-client-bom to v1.34.0 (#34) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 878e9a742416..d3b913318b11 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -75,7 +75,7 @@ 1.4.0 1.3.2 2.3.3 - 1.33.0 + 1.34.0 1.18 1.7 0.24.0 From 19bcbe55d4b9fe52d841819bb4a4a9a33e2371b8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2019 15:51:03 -0800 Subject: [PATCH 0259/2363] chore: release 1.102.1-SNAPSHOT (#35) * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1b0d7d45ad85..7b0df8270cb3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.102.0 + 1.102.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.0 + 1.84.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.0 + 1.84.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.102.0 + 1.102.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index aaa6690bf503..9df0d65d8a28 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.102.0 + 1.102.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.102.0 + 1.102.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f46969d7c125..aa85f3bd43e2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.0 + 1.84.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.102.0 + 1.102.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d3b913318b11..102807bf26e4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.102.0 + 1.102.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.0 + 1.84.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.0 + 1.84.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.102.0 + 1.102.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 22501520e433..793d8abb5111 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.0 + 1.84.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.102.0 + 1.102.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8d1fa674aa9c..96c3a479f099 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.84.0:1.84.0 -grpc-google-cloud-pubsub-v1:1.84.0:1.84.0 -google-cloud-pubsub:1.102.0:1.102.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.84.0:1.84.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.84.0:1.84.1-SNAPSHOT +google-cloud-pubsub:1.102.0:1.102.1-SNAPSHOT \ No newline at end of file From d327e05120d6cda58078b632114df37e72fb2fb9 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 18 Dec 2019 19:01:13 -0600 Subject: [PATCH 0260/2363] chore: update renovate config --- java-pubsub/renovate.json | 42 ++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 99810470034c..c5eafc049691 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -1,27 +1,41 @@ { "extends": [ - "config:base" + ":separateMajorReleases", + ":combinePatchMinorReleases", + ":ignoreUnstable", + ":prImmediately", + ":updateNotScheduled", + ":automergeDisabled", + ":ignoreModulesAndTests", + ":maintainLockFilesDisabled", + ":autodetectPinVersions" ], - "ignoreDeps": [], "packageRules": [ { - "managers": ["maven"], - "packageNames": ["com.google.guava:guava*"], + "packagePatterns": [ + "^com.google.guava:" + ], "versionScheme": "docker" }, { - "packagePatterns": ["^io.grpc:grpc-"], - "groupName": "gRPC packages" + "packagePatterns": [ + "*" + ], + "semanticCommitType": "deps", + "semanticCommitScope": null }, { - "packagePatterns": ["^com.google.protobuf:protobuf-"], - "groupName": "Protobuf packages" - }, - { - "packagePatterns": ["^io.opencensus:opencensus-"], - "groupName": "OpenCensus packages" + "packagePatterns": [ + "^org.apache.maven", + "^org.jacoco:", + "^org.codehaus.mojo:", + "^org.sonatype.plugins:", + "^com.coveo:", + "^com.google.cloud:google-cloud-shared-config" + ], + "semanticCommitType": "build", + "semanticCommitScope": "deps" } ], - "semanticCommits": true, - "semanticCommitType": "deps" + "semanticCommits": true } From 397a4cce838d3d14b0ba74fa862ac3ca1cbea2d6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 19 Dec 2019 06:49:14 -0800 Subject: [PATCH 0261/2363] Re-generated to pick up changes in the API or client library generator. (#7) --- .../pubsub/v1/stub/PublisherStubSettings.java | 12 +- .../v1/stub/SubscriberStubSettings.java | 16 +- .../com/google/pubsub/v1/PubsubProto.java | 291 +++++++++--------- .../com/google/pubsub/v1/ReceivedMessage.java | 127 ++++++++ .../pubsub/v1/ReceivedMessageOrBuilder.java | 23 ++ .../main/proto/google/pubsub/v1/pubsub.proto | 18 ++ java-pubsub/synth.metadata | 10 +- 7 files changed, 341 insertions(+), 156 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index b260b66ddc1e..055216817f51 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -521,10 +521,10 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put("none", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "streaming_pull", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.ABORTED, + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.INTERNAL, + StatusCode.Code.RESOURCE_EXHAUSTED, + StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -509,9 +517,9 @@ public static class Builder extends StubSettings.Builder" + + "\"9/v1/{subscription=projects/*/subscript" + + "ions/*}:acknowledge:\001*\022\204\001\n\004Pull\022\035.google" + + ".pubsub.v1.PullRequest\032\036.google.pubsub.v" + + "1.PullResponse\"=\202\323\344\223\0027\"2/v1/{subscriptio" + + "n=projects/*/subscriptions/*}:pull:\001*\022f\n" + + "\rStreamingPull\022&.google.pubsub.v1.Stream" + + "ingPullRequest\032\'.google.pubsub.v1.Stream" + + "ingPullResponse\"\000(\0010\001\022\240\001\n\020ModifyPushConf" + + "ig\022).google.pubsub.v1.ModifyPushConfigRe" + + "quest\032\026.google.protobuf.Empty\"I\202\323\344\223\002C\">/" + + "v1/{subscription=projects/*/subscription" + + "s/*}:modifyPushConfig:\001*\022~\n\013GetSnapshot\022" + + "$.google.pubsub.v1.GetSnapshotRequest\032\032." + + "google.pubsub.v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{" + + "snapshot=projects/*/snapshots/*}\022\214\001\n\rLis" + + "tSnapshots\022&.google.pubsub.v1.ListSnapsh" + + "otsRequest\032\'.google.pubsub.v1.ListSnapsh" + + "otsResponse\"*\202\323\344\223\002$\022\"/v1/{project=projec" + + "ts/*}/snapshots\022\203\001\n\016CreateSnapshot\022\'.goo" + + "gle.pubsub.v1.CreateSnapshotRequest\032\032.go" + + "ogle.pubsub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{na" + + "me=projects/*/snapshots/*}:\001*\022\214\001\n\016Update" + + "Snapshot\022\'.google.pubsub.v1.UpdateSnapsh" + + "otRequest\032\032.google.pubsub.v1.Snapshot\"5\202" + + "\323\344\223\002/2*/v1/{snapshot.name=projects/*/sna" + + "pshots/*}:\001*\022\200\001\n\016DeleteSnapshot\022\'.google" + + ".pubsub.v1.DeleteSnapshotRequest\032\026.googl" + + "e.protobuf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot=" + + "projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.googl" + + "e.pubsub.v1.SeekRequest\032\036.google.pubsub." + + "v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscripti" + + "on=projects/*/subscriptions/*}:seek:\001*\032p" + "\312A\025pubsub.googleapis.com\322AUhttps://www.g" + "oogleapis.com/auth/cloud-platform,https:" - + "//www.googleapis.com/auth/pubsub2\353\022\n\nSub" - + "scriber\022\206\001\n\022CreateSubscription\022\036.google." - + "pubsub.v1.Subscription\032\036.google.pubsub.v" - + "1.Subscription\"0\202\323\344\223\002*\032%/v1/{name=projec" - + "ts/*/subscriptions/*}:\001*\022\222\001\n\017GetSubscrip" - + "tion\022(.google.pubsub.v1.GetSubscriptionR" - + "equest\032\036.google.pubsub.v1.Subscription\"5" - + "\202\323\344\223\002/\022-/v1/{subscription=projects/*/sub" - + "scriptions/*}\022\240\001\n\022UpdateSubscription\022+.g" - + "oogle.pubsub.v1.UpdateSubscriptionReques" - + "t\032\036.google.pubsub.v1.Subscription\"=\202\323\344\223\002" - + "722/v1/{subscription.name=projects/*/sub" - + "scriptions/*}:\001*\022\234\001\n\021ListSubscriptions\022*" - + ".google.pubsub.v1.ListSubscriptionsReque" - + "st\032+.google.pubsub.v1.ListSubscriptionsR" - + "esponse\".\202\323\344\223\002(\022&/v1/{project=projects/*" - + "}/subscriptions\022\220\001\n\022DeleteSubscription\022+" - + ".google.pubsub.v1.DeleteSubscriptionRequ" - + "est\032\026.google.protobuf.Empty\"5\202\323\344\223\002/*-/v1" - + "/{subscription=projects/*/subscriptions/" - + "*}\022\243\001\n\021ModifyAckDeadline\022*.google.pubsub" - + ".v1.ModifyAckDeadlineRequest\032\026.google.pr" - + "otobuf.Empty\"J\202\323\344\223\002D\"?/v1/{subscription=" - + "projects/*/subscriptions/*}:modifyAckDea" - + "dline:\001*\022\221\001\n\013Acknowledge\022$.google.pubsub" - + ".v1.AcknowledgeRequest\032\026.google.protobuf" - + ".Empty\"D\202\323\344\223\002>\"9/v1/{subscription=projec" - + "ts/*/subscriptions/*}:acknowledge:\001*\022\204\001\n" - + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.g" - + "oogle.pubsub.v1.PullResponse\"=\202\323\344\223\0027\"2/v" - + "1/{subscription=projects/*/subscriptions" - + "/*}:pull:\001*\022f\n\rStreamingPull\022&.google.pu" - + "bsub.v1.StreamingPullRequest\032\'.google.pu" - + "bsub.v1.StreamingPullResponse\"\000(\0010\001\022\240\001\n\020" - + "ModifyPushConfig\022).google.pubsub.v1.Modi" - + "fyPushConfigRequest\032\026.google.protobuf.Em" - + "pty\"I\202\323\344\223\002C\">/v1/{subscription=projects/" - + "*/subscriptions/*}:modifyPushConfig:\001*\022~" - + "\n\013GetSnapshot\022$.google.pubsub.v1.GetSnap" - + "shotRequest\032\032.google.pubsub.v1.Snapshot\"" - + "-\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsh" - + "ots/*}\022\214\001\n\rListSnapshots\022&.google.pubsub" - + ".v1.ListSnapshotsRequest\032\'.google.pubsub" - + ".v1.ListSnapshotsResponse\"*\202\323\344\223\002$\022\"/v1/{" - + "project=projects/*}/snapshots\022\203\001\n\016Create" - + "Snapshot\022\'.google.pubsub.v1.CreateSnapsh" - + "otRequest\032\032.google.pubsub.v1.Snapshot\",\202" - + "\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}" - + ":\001*\022\214\001\n\016UpdateSnapshot\022\'.google.pubsub.v" - + "1.UpdateSnapshotRequest\032\032.google.pubsub." - + "v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot.name=" - + "projects/*/snapshots/*}:\001*\022\200\001\n\016DeleteSna" - + "pshot\022\'.google.pubsub.v1.DeleteSnapshotR" - + "equest\032\026.google.protobuf.Empty\"-\202\323\344\223\002\'*%" - + "/v1/{snapshot=projects/*/snapshots/*}\022\204\001" - + "\n\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036." - + "google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/" - + "v1/{subscription=projects/*/subscription" - + "s/*}:seek:\001*\032p\312A\025pubsub.googleapis.com\322A" - + "Uhttps://www.googleapis.com/auth/cloud-p" - + "latform,https://www.googleapis.com/auth/" - + "pubsubB\256\001\n\024com.google.pubsub.v1B\013PubsubP" - + "rotoP\001Z6google.golang.org/genproto/googl" - + "eapis/pubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud" - + ".PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Go" - + "ogle::Cloud::PubSub::V1b\006proto3" + + "//www.googleapis.com/auth/pubsubB\256\001\n\024com" + + ".google.pubsub.v1B\013PubsubProtoP\001Z6google" + + ".golang.org/genproto/googleapis/pubsub/v" + + "1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026G" + + "oogle\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::P" + + "ubSub::V1b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -651,7 +652,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, new java.lang.String[] { - "AckId", "Message", + "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = getDescriptor().getMessageTypes().get(19); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index f810ee18c041..28ff6bc3cc55 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -85,6 +85,11 @@ private ReceivedMessage( message_ = subBuilder.buildPartial(); } + break; + } + case 24: + { + deliveryAttempt_ = input.readInt32(); break; } default: @@ -203,6 +208,33 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { return getMessage(); } + public static final int DELIVERY_ATTEMPT_FIELD_NUMBER = 3; + private int deliveryAttempt_; + /** + * + * + *
    +   * 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * int32 delivery_attempt = 3; + */ + public int getDeliveryAttempt() { + return deliveryAttempt_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -223,6 +255,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (message_ != null) { output.writeMessage(2, getMessage()); } + if (deliveryAttempt_ != 0) { + output.writeInt32(3, deliveryAttempt_); + } unknownFields.writeTo(output); } @@ -238,6 +273,9 @@ public int getSerializedSize() { if (message_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMessage()); } + if (deliveryAttempt_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, deliveryAttempt_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -258,6 +296,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMessage()) { if (!getMessage().equals(other.getMessage())) return false; } + if (getDeliveryAttempt() != other.getDeliveryAttempt()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,6 +314,8 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } + hash = (37 * hash) + DELIVERY_ATTEMPT_FIELD_NUMBER; + hash = (53 * hash) + getDeliveryAttempt(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -427,6 +468,8 @@ public Builder clear() { message_ = null; messageBuilder_ = null; } + deliveryAttempt_ = 0; + return this; } @@ -459,6 +502,7 @@ public com.google.pubsub.v1.ReceivedMessage buildPartial() { } else { result.message_ = messageBuilder_.build(); } + result.deliveryAttempt_ = deliveryAttempt_; onBuilt(); return result; } @@ -515,6 +559,9 @@ public Builder mergeFrom(com.google.pubsub.v1.ReceivedMessage other) { if (other.hasMessage()) { mergeMessage(other.getMessage()); } + if (other.getDeliveryAttempt() != 0) { + setDeliveryAttempt(other.getDeliveryAttempt()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -819,6 +866,86 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { return messageBuilder_; } + private int deliveryAttempt_; + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * int32 delivery_attempt = 3; + */ + public int getDeliveryAttempt() { + return deliveryAttempt_; + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * int32 delivery_attempt = 3; + */ + public Builder setDeliveryAttempt(int value) { + + deliveryAttempt_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * int32 delivery_attempt = 3; + */ + public Builder clearDeliveryAttempt() { + + deliveryAttempt_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index f9107be5a8b1..5d80fb933966 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -74,4 +74,27 @@ public interface ReceivedMessageOrBuilder * .google.pubsub.v1.PubsubMessage message = 2; */ com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder(); + + /** + * + * + *
    +   * 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * int32 delivery_attempt = 3; + */ + int getDeliveryAttempt(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 8ee03eb17753..3ad6355a8bf6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -737,6 +737,24 @@ 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. + // + // 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. + int32 delivery_attempt = 3; } // Request for the GetSubscription method. diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index e374ff437a16..7876f3dee6ce 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-11-21T22:46:45.608871Z", + "updateTime": "2019-11-22T08:51:59.224586Z", "sources": [ { "generator": { @@ -8,6 +8,14 @@ "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" } }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "3ba7ddc4b2acf532bdfb0004ca26311053c11c30", + "internalRef": "281852671" + } + }, { "template": { "name": "java_library", From 207e903d54b8d41d75b350877b5f1e5b87946311 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 19 Dec 2019 16:59:50 +0200 Subject: [PATCH 0262/2363] chore(deps): update gax.version to v1.52.0 (#15) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 102807bf26e4..3a426cf40cff 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -66,7 +66,7 @@ 1.91.3 1.8.1 1.17.0 - 1.50.1 + 1.52.0 1.25.0 3.11.1 4.12 From e8669a5f64a30072f2d0e87c5c1d842090f7e0ef Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 20 Dec 2019 10:47:46 -0800 Subject: [PATCH 0263/2363] Re-generated to pick up changes in the API or client library generator. (#40) --- .../google/pubsub/v1/AcknowledgeRequest.java | 80 +- .../v1/AcknowledgeRequestOrBuilder.java | 14 + .../pubsub/v1/CreateSnapshotRequest.java | 45 +- .../v1/CreateSnapshotRequestOrBuilder.java | 8 + .../google/pubsub/v1/DeadLetterPolicy.java | 32 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 6 + .../pubsub/v1/DeleteSnapshotRequest.java | 23 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 4 + .../pubsub/v1/DeleteSubscriptionRequest.java | 23 +- .../DeleteSubscriptionRequestOrBuilder.java | 4 + .../google/pubsub/v1/DeleteTopicRequest.java | 23 +- .../v1/DeleteTopicRequestOrBuilder.java | 4 + .../com/google/pubsub/v1/DeletedTopic.java | 7 +- .../google/pubsub/v1/ExpirationPolicy.java | 15 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 4 + .../google/pubsub/v1/GetSnapshotRequest.java | 23 +- .../v1/GetSnapshotRequestOrBuilder.java | 4 + .../pubsub/v1/GetSubscriptionRequest.java | 23 +- .../v1/GetSubscriptionRequestOrBuilder.java | 4 + .../com/google/pubsub/v1/GetTopicRequest.java | 23 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 4 + .../pubsub/v1/ListSnapshotsRequest.java | 48 +- .../v1/ListSnapshotsRequestOrBuilder.java | 10 + .../pubsub/v1/ListSnapshotsResponse.java | 25 +- .../v1/ListSnapshotsResponseOrBuilder.java | 4 + .../pubsub/v1/ListSubscriptionsRequest.java | 48 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 10 + .../pubsub/v1/ListSubscriptionsResponse.java | 25 +- .../ListSubscriptionsResponseOrBuilder.java | 4 + .../pubsub/v1/ListTopicSnapshotsRequest.java | 48 +- .../ListTopicSnapshotsRequestOrBuilder.java | 10 + .../pubsub/v1/ListTopicSnapshotsResponse.java | 60 +- .../ListTopicSnapshotsResponseOrBuilder.java | 14 + .../v1/ListTopicSubscriptionsRequest.java | 48 +- ...istTopicSubscriptionsRequestOrBuilder.java | 10 + .../v1/ListTopicSubscriptionsResponse.java | 60 +- ...stTopicSubscriptionsResponseOrBuilder.java | 14 + .../google/pubsub/v1/ListTopicsRequest.java | 48 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 10 + .../google/pubsub/v1/ListTopicsResponse.java | 25 +- .../v1/ListTopicsResponseOrBuilder.java | 4 + .../pubsub/v1/MessageStoragePolicy.java | 41 + .../v1/MessageStoragePolicyOrBuilder.java | 10 + .../pubsub/v1/ModifyAckDeadlineRequest.java | 89 ++- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 16 + .../pubsub/v1/ModifyPushConfigRequest.java | 31 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 8 + .../com/google/pubsub/v1/ProjectName.java | 2 +- .../google/pubsub/v1/ProjectSnapshotName.java | 2 +- .../pubsub/v1/ProjectSubscriptionName.java | 2 +- .../google/pubsub/v1/ProjectTopicName.java | 7 +- .../com/google/pubsub/v1/PublishRequest.java | 49 +- .../pubsub/v1/PublishRequestOrBuilder.java | 4 + .../com/google/pubsub/v1/PublishResponse.java | 41 + .../pubsub/v1/PublishResponseOrBuilder.java | 10 + .../com/google/pubsub/v1/PubsubMessage.java | 62 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 14 + .../com/google/pubsub/v1/PubsubProto.java | 30 +- .../com/google/pubsub/v1/PullRequest.java | 41 +- .../pubsub/v1/PullRequestOrBuilder.java | 8 + .../com/google/pubsub/v1/PullResponse.java | 6 + .../java/com/google/pubsub/v1/PushConfig.java | 95 ++- .../google/pubsub/v1/PushConfigOrBuilder.java | 8 + .../com/google/pubsub/v1/ReceivedMessage.java | 40 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 10 + .../com/google/pubsub/v1/SeekRequest.java | 58 +- .../pubsub/v1/SeekRequestOrBuilder.java | 12 + .../com/google/pubsub/v1/SeekResponse.java | 6 + .../java/com/google/pubsub/v1/Snapshot.java | 53 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 12 + .../pubsub/v1/StreamingPullRequest.java | 196 ++++- .../v1/StreamingPullRequestOrBuilder.java | 33 + .../pubsub/v1/StreamingPullResponse.java | 6 + .../com/google/pubsub/v1/Subscription.java | 104 ++- .../pubsub/v1/SubscriptionOrBuilder.java | 30 + .../main/java/com/google/pubsub/v1/Topic.java | 53 +- .../java/com/google/pubsub/v1/TopicName.java | 2 +- .../java/com/google/pubsub/v1/TopicNames.java | 7 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 12 + .../google/pubsub/v1/UntypedTopicName.java | 7 +- .../pubsub/v1/UpdateSnapshotRequest.java | 23 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 8 + .../pubsub/v1/UpdateSubscriptionRequest.java | 23 +- .../UpdateSubscriptionRequestOrBuilder.java | 8 + .../google/pubsub/v1/UpdateTopicRequest.java | 23 +- .../v1/UpdateTopicRequestOrBuilder.java | 8 + java-pubsub/synth.metadata | 738 +++++++++++++++++- 87 files changed, 2767 insertions(+), 179 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 81af93ef1c76..6c1e7b981995 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -42,6 +42,12 @@ private AcknowledgeRequest() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcknowledgeRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -76,9 +82,9 @@ private AcknowledgeRequest( case 18: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } ackIds_.add(s); break; @@ -97,7 +103,7 @@ private AcknowledgeRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -120,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.AcknowledgeRequest.Builder.class); } - private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -153,6 +160,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -177,6 +186,8 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * repeated string ack_ids = 2; + * + * @return A list containing the ackIds. */ public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; @@ -190,6 +201,8 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * * repeated string ack_ids = 2; + * + * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); @@ -203,6 +216,9 @@ public int getAckIdsCount() { * * * repeated string ack_ids = 2; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. */ public java.lang.String getAckIds(int index) { return ackIds_.get(index); @@ -216,6 +232,9 @@ public java.lang.String getAckIds(int index) { * * * repeated string ack_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. */ public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); @@ -443,7 +462,7 @@ public Builder clear() { subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -472,14 +491,12 @@ public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { com.google.pubsub.v1.AcknowledgeRequest result = new com.google.pubsub.v1.AcknowledgeRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.subscription_ = subscription_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.ackIds_ = ackIds_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -536,7 +553,7 @@ public Builder mergeFrom(com.google.pubsub.v1.AcknowledgeRequest other) { if (!other.ackIds_.isEmpty()) { if (ackIds_.isEmpty()) { ackIds_ = other.ackIds_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAckIdsIsMutable(); ackIds_.addAll(other.ackIds_); @@ -584,6 +601,8 @@ public Builder mergeFrom( * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -605,6 +624,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -626,6 +647,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * string subscription = 1; + * + * @param value The subscription to set. + * @return This builder for chaining. */ public Builder setSubscription(java.lang.String value) { if (value == null) { @@ -645,6 +669,8 @@ public Builder setSubscription(java.lang.String value) { * * * string subscription = 1; + * + * @return This builder for chaining. */ public Builder clearSubscription() { @@ -661,6 +687,9 @@ public Builder clearSubscription() { * * * string subscription = 1; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -677,9 +706,9 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -691,6 +720,8 @@ private void ensureAckIdsIsMutable() { * * * repeated string ack_ids = 2; + * + * @return A list containing the ackIds. */ public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_.getUnmodifiableView(); @@ -704,6 +735,8 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * * repeated string ack_ids = 2; + * + * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); @@ -717,6 +750,9 @@ public int getAckIdsCount() { * * * repeated string ack_ids = 2; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. */ public java.lang.String getAckIds(int index) { return ackIds_.get(index); @@ -730,6 +766,9 @@ public java.lang.String getAckIds(int index) { * * * repeated string ack_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. */ public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); @@ -743,6 +782,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * * repeated string ack_ids = 2; + * + * @param index The index to set the value at. + * @param value The ackIds to set. + * @return This builder for chaining. */ public Builder setAckIds(int index, java.lang.String value) { if (value == null) { @@ -762,6 +805,9 @@ public Builder setAckIds(int index, java.lang.String value) { * * * repeated string ack_ids = 2; + * + * @param value The ackIds to add. + * @return This builder for chaining. */ public Builder addAckIds(java.lang.String value) { if (value == null) { @@ -781,6 +827,9 @@ public Builder addAckIds(java.lang.String value) { * * * repeated string ack_ids = 2; + * + * @param values The ackIds to add. + * @return This builder for chaining. */ public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); @@ -797,10 +846,12 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * * repeated string ack_ids = 2; + * + * @return This builder for chaining. */ public Builder clearAckIds() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -813,6 +864,9 @@ public Builder clearAckIds() { * * * repeated string ack_ids = 2; + * + * @param value The bytes of the ackIds to add. + * @return This builder for chaining. */ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index ef0e09836ee5..0343de31cba3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface AcknowledgeRequestOrBuilder * * * string subscription = 1; + * + * @return The subscription. */ java.lang.String getSubscription(); /** @@ -43,6 +45,8 @@ public interface AcknowledgeRequestOrBuilder * * * string subscription = 1; + * + * @return The bytes for subscription. */ com.google.protobuf.ByteString getSubscriptionBytes(); @@ -55,6 +59,8 @@ public interface AcknowledgeRequestOrBuilder * * * repeated string ack_ids = 2; + * + * @return A list containing the ackIds. */ java.util.List getAckIdsList(); /** @@ -66,6 +72,8 @@ public interface AcknowledgeRequestOrBuilder * * * repeated string ack_ids = 2; + * + * @return The count of ackIds. */ int getAckIdsCount(); /** @@ -77,6 +85,9 @@ public interface AcknowledgeRequestOrBuilder * * * repeated string ack_ids = 2; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** @@ -88,6 +99,9 @@ public interface AcknowledgeRequestOrBuilder * * * repeated string ack_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. */ com.google.protobuf.ByteString getAckIdsBytes(int index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 66816ee1cb02..19895fb93dbe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -42,6 +42,12 @@ private CreateSnapshotRequest() { subscription_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSnapshotRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -82,10 +88,10 @@ private CreateSnapshotRequest( } case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -138,7 +144,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.CreateSnapshotRequest.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -155,6 +160,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -181,6 +188,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -212,6 +221,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string subscription = 2; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -240,6 +251,8 @@ public java.lang.String getSubscription() { * * * string subscription = 2; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -633,12 +646,10 @@ public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; result.subscription_ = subscription_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -743,6 +754,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -769,6 +782,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -795,6 +810,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -819,6 +837,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -840,6 +860,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -869,6 +892,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * string subscription = 2; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -897,6 +922,8 @@ public java.lang.String getSubscription() { * * * string subscription = 2; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -925,6 +952,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * string subscription = 2; + * + * @param value The subscription to set. + * @return This builder for chaining. */ public Builder setSubscription(java.lang.String value) { if (value == null) { @@ -951,6 +981,8 @@ public Builder setSubscription(java.lang.String value) { * * * string subscription = 2; + * + * @return This builder for chaining. */ public Builder clearSubscription() { @@ -974,6 +1006,9 @@ public Builder clearSubscription() { * * * string subscription = 2; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 066254d34884..dcca28d0b377 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -37,6 +37,8 @@ public interface CreateSnapshotRequestOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -53,6 +55,8 @@ public interface CreateSnapshotRequestOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -72,6 +76,8 @@ public interface CreateSnapshotRequestOrBuilder * * * string subscription = 2; + * + * @return The subscription. */ java.lang.String getSubscription(); /** @@ -90,6 +96,8 @@ public interface CreateSnapshotRequestOrBuilder * * * string subscription = 2; + * + * @return The bytes for subscription. */ com.google.protobuf.ByteString getSubscriptionBytes(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 036a7cb34dbe..12d7f9693613 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -44,6 +44,12 @@ private DeadLetterPolicy() { deadLetterTopic_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeadLetterPolicy(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -57,7 +63,6 @@ private DeadLetterPolicy( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -131,6 +136,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string dead_letter_topic = 1; + * + * @return The deadLetterTopic. */ public java.lang.String getDeadLetterTopic() { java.lang.Object ref = deadLetterTopic_; @@ -158,6 +165,8 @@ public java.lang.String getDeadLetterTopic() { * * * string dead_letter_topic = 1; + * + * @return The bytes for deadLetterTopic. */ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { java.lang.Object ref = deadLetterTopic_; @@ -189,6 +198,8 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * * * int32 max_delivery_attempts = 2; + * + * @return The maxDeliveryAttempts. */ public int getMaxDeliveryAttempts() { return maxDeliveryAttempts_; @@ -542,6 +553,8 @@ public Builder mergeFrom( * * * string dead_letter_topic = 1; + * + * @return The deadLetterTopic. */ public java.lang.String getDeadLetterTopic() { java.lang.Object ref = deadLetterTopic_; @@ -569,6 +582,8 @@ public java.lang.String getDeadLetterTopic() { * * * string dead_letter_topic = 1; + * + * @return The bytes for deadLetterTopic. */ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { java.lang.Object ref = deadLetterTopic_; @@ -596,6 +611,9 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * * * string dead_letter_topic = 1; + * + * @param value The deadLetterTopic to set. + * @return This builder for chaining. */ public Builder setDeadLetterTopic(java.lang.String value) { if (value == null) { @@ -621,6 +639,8 @@ public Builder setDeadLetterTopic(java.lang.String value) { * * * string dead_letter_topic = 1; + * + * @return This builder for chaining. */ public Builder clearDeadLetterTopic() { @@ -643,6 +663,9 @@ public Builder clearDeadLetterTopic() { * * * string dead_letter_topic = 1; + * + * @param value The bytes for deadLetterTopic to set. + * @return This builder for chaining. */ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -672,6 +695,8 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { * * * int32 max_delivery_attempts = 2; + * + * @return The maxDeliveryAttempts. */ public int getMaxDeliveryAttempts() { return maxDeliveryAttempts_; @@ -692,6 +717,9 @@ public int getMaxDeliveryAttempts() { * * * int32 max_delivery_attempts = 2; + * + * @param value The maxDeliveryAttempts to set. + * @return This builder for chaining. */ public Builder setMaxDeliveryAttempts(int value) { @@ -715,6 +743,8 @@ public Builder setMaxDeliveryAttempts(int value) { * * * int32 max_delivery_attempts = 2; + * + * @return This builder for chaining. */ public Builder clearMaxDeliveryAttempts() { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 5878b45445d7..1249b76c9124 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -38,6 +38,8 @@ public interface DeadLetterPolicyOrBuilder * * * string dead_letter_topic = 1; + * + * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); /** @@ -55,6 +57,8 @@ public interface DeadLetterPolicyOrBuilder * * * string dead_letter_topic = 1; + * + * @return The bytes for deadLetterTopic. */ com.google.protobuf.ByteString getDeadLetterTopicBytes(); @@ -74,6 +78,8 @@ public interface DeadLetterPolicyOrBuilder * * * int32 max_delivery_attempts = 2; + * + * @return The maxDeliveryAttempts. */ int getMaxDeliveryAttempts(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 56eb166d32cb..c71c108622ef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -41,6 +41,12 @@ private DeleteSnapshotRequest() { snapshot_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSnapshotRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private DeleteSnapshotRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -117,6 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string snapshot = 1; + * + * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; @@ -138,6 +145,8 @@ public java.lang.String getSnapshot() { * * * string snapshot = 1; + * + * @return The bytes for snapshot. */ public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; @@ -477,6 +486,8 @@ public Builder mergeFrom( * * * string snapshot = 1; + * + * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; @@ -498,6 +509,8 @@ public java.lang.String getSnapshot() { * * * string snapshot = 1; + * + * @return The bytes for snapshot. */ public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; @@ -519,6 +532,9 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * * string snapshot = 1; + * + * @param value The snapshot to set. + * @return This builder for chaining. */ public Builder setSnapshot(java.lang.String value) { if (value == null) { @@ -538,6 +554,8 @@ public Builder setSnapshot(java.lang.String value) { * * * string snapshot = 1; + * + * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -554,6 +572,9 @@ public Builder clearSnapshot() { * * * string snapshot = 1; + * + * @param value The bytes for snapshot to set. + * @return This builder for chaining. */ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index c54211cf5a2f..4f63568e388c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface DeleteSnapshotRequestOrBuilder * * * string snapshot = 1; + * + * @return The snapshot. */ java.lang.String getSnapshot(); /** @@ -43,6 +45,8 @@ public interface DeleteSnapshotRequestOrBuilder * * * string snapshot = 1; + * + * @return The bytes for snapshot. */ com.google.protobuf.ByteString getSnapshotBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 6ce2f339f72b..21a9d5affeea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -41,6 +41,12 @@ private DeleteSubscriptionRequest() { subscription_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSubscriptionRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private DeleteSubscriptionRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -117,6 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -138,6 +145,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -477,6 +486,8 @@ public Builder mergeFrom( * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -498,6 +509,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -519,6 +532,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * string subscription = 1; + * + * @param value The subscription to set. + * @return This builder for chaining. */ public Builder setSubscription(java.lang.String value) { if (value == null) { @@ -538,6 +554,8 @@ public Builder setSubscription(java.lang.String value) { * * * string subscription = 1; + * + * @return This builder for chaining. */ public Builder clearSubscription() { @@ -554,6 +572,9 @@ public Builder clearSubscription() { * * * string subscription = 1; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 252f33f89941..a5e0170cdfa6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface DeleteSubscriptionRequestOrBuilder * * * string subscription = 1; + * + * @return The subscription. */ java.lang.String getSubscription(); /** @@ -43,6 +45,8 @@ public interface DeleteSubscriptionRequestOrBuilder * * * string subscription = 1; + * + * @return The bytes for subscription. */ com.google.protobuf.ByteString getSubscriptionBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 16c6191c9538..10b5587e061f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -41,6 +41,12 @@ private DeleteTopicRequest() { topic_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTopicRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private DeleteTopicRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -117,6 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -138,6 +145,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -476,6 +485,8 @@ public Builder mergeFrom( * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -497,6 +508,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -518,6 +531,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * string topic = 1; + * + * @param value The topic to set. + * @return This builder for chaining. */ public Builder setTopic(java.lang.String value) { if (value == null) { @@ -537,6 +553,8 @@ public Builder setTopic(java.lang.String value) { * * * string topic = 1; + * + * @return This builder for chaining. */ public Builder clearTopic() { @@ -553,6 +571,9 @@ public Builder clearTopic() { * * * string topic = 1; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. */ public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index a0c01f0a08cb..6d8aabaae298 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface DeleteTopicRequestOrBuilder * * * string topic = 1; + * + * @return The topic. */ java.lang.String getTopic(); /** @@ -43,6 +45,8 @@ public interface DeleteTopicRequestOrBuilder * * * string topic = 1; + * + * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java index 865c2728db86..d897f8ebf24c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java @@ -19,8 +19,13 @@ import com.google.common.collect.ImmutableMap; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class DeletedTopic extends TopicName { private static final String FIXED_VALUE = "_deleted-topic_"; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index da36a8a94093..30ce204ff898 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -40,6 +40,12 @@ private ExpirationPolicy(com.google.protobuf.GeneratedMessageV3.Builder build private ExpirationPolicy() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExpirationPolicy(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private ExpirationPolicy( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -127,6 +132,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.protobuf.Duration ttl = 1; + * + * @return Whether the ttl field is set. */ public boolean hasTtl() { return ttl_ != null; @@ -144,6 +151,8 @@ public boolean hasTtl() { * * * .google.protobuf.Duration ttl = 1; + * + * @return The ttl. */ public com.google.protobuf.Duration getTtl() { return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; @@ -512,6 +521,8 @@ public Builder mergeFrom( * * * .google.protobuf.Duration ttl = 1; + * + * @return Whether the ttl field is set. */ public boolean hasTtl() { return ttlBuilder_ != null || ttl_ != null; @@ -529,6 +540,8 @@ public boolean hasTtl() { * * * .google.protobuf.Duration ttl = 1; + * + * @return The ttl. */ public com.google.protobuf.Duration getTtl() { if (ttlBuilder_ == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 66549de86fff..38e2a2579fee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -36,6 +36,8 @@ public interface ExpirationPolicyOrBuilder * * * .google.protobuf.Duration ttl = 1; + * + * @return Whether the ttl field is set. */ boolean hasTtl(); /** @@ -51,6 +53,8 @@ public interface ExpirationPolicyOrBuilder * * * .google.protobuf.Duration ttl = 1; + * + * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 032b90826152..4e9c6619e2a5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -41,6 +41,12 @@ private GetSnapshotRequest() { snapshot_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSnapshotRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private GetSnapshotRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -117,6 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string snapshot = 1; + * + * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; @@ -138,6 +145,8 @@ public java.lang.String getSnapshot() { * * * string snapshot = 1; + * + * @return The bytes for snapshot. */ public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; @@ -476,6 +485,8 @@ public Builder mergeFrom( * * * string snapshot = 1; + * + * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; @@ -497,6 +508,8 @@ public java.lang.String getSnapshot() { * * * string snapshot = 1; + * + * @return The bytes for snapshot. */ public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; @@ -518,6 +531,9 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * * string snapshot = 1; + * + * @param value The snapshot to set. + * @return This builder for chaining. */ public Builder setSnapshot(java.lang.String value) { if (value == null) { @@ -537,6 +553,8 @@ public Builder setSnapshot(java.lang.String value) { * * * string snapshot = 1; + * + * @return This builder for chaining. */ public Builder clearSnapshot() { @@ -553,6 +571,9 @@ public Builder clearSnapshot() { * * * string snapshot = 1; + * + * @param value The bytes for snapshot to set. + * @return This builder for chaining. */ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 179894c9e1d5..aca224b95d02 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface GetSnapshotRequestOrBuilder * * * string snapshot = 1; + * + * @return The snapshot. */ java.lang.String getSnapshot(); /** @@ -43,6 +45,8 @@ public interface GetSnapshotRequestOrBuilder * * * string snapshot = 1; + * + * @return The bytes for snapshot. */ com.google.protobuf.ByteString getSnapshotBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index ba2640d36669..6ff74f94fca5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -41,6 +41,12 @@ private GetSubscriptionRequest() { subscription_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSubscriptionRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private GetSubscriptionRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -117,6 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -138,6 +145,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -477,6 +486,8 @@ public Builder mergeFrom( * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -498,6 +509,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -519,6 +532,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * string subscription = 1; + * + * @param value The subscription to set. + * @return This builder for chaining. */ public Builder setSubscription(java.lang.String value) { if (value == null) { @@ -538,6 +554,8 @@ public Builder setSubscription(java.lang.String value) { * * * string subscription = 1; + * + * @return This builder for chaining. */ public Builder clearSubscription() { @@ -554,6 +572,9 @@ public Builder clearSubscription() { * * * string subscription = 1; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 4e50ad308f47..9b8925a012c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface GetSubscriptionRequestOrBuilder * * * string subscription = 1; + * + * @return The subscription. */ java.lang.String getSubscription(); /** @@ -43,6 +45,8 @@ public interface GetSubscriptionRequestOrBuilder * * * string subscription = 1; + * + * @return The bytes for subscription. */ com.google.protobuf.ByteString getSubscriptionBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 5d2d5cec41fd..4c2fa3f0713b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -41,6 +41,12 @@ private GetTopicRequest() { topic_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTopicRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private GetTopicRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -117,6 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -138,6 +145,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -474,6 +483,8 @@ public Builder mergeFrom( * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -495,6 +506,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -516,6 +529,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * string topic = 1; + * + * @param value The topic to set. + * @return This builder for chaining. */ public Builder setTopic(java.lang.String value) { if (value == null) { @@ -535,6 +551,8 @@ public Builder setTopic(java.lang.String value) { * * * string topic = 1; + * + * @return This builder for chaining. */ public Builder clearTopic() { @@ -551,6 +569,9 @@ public Builder clearTopic() { * * * string topic = 1; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. */ public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index c1f39ed51c95..81cf7f2ffdbd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface GetTopicRequestOrBuilder * * * string topic = 1; + * + * @return The topic. */ java.lang.String getTopic(); /** @@ -43,6 +45,8 @@ public interface GetTopicRequestOrBuilder * * * string topic = 1; + * + * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 13d2a9581636..331995e5a507 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -42,6 +42,12 @@ private ListSnapshotsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSnapshotsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ListSnapshotsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -130,6 +135,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string project = 1; + * + * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; @@ -151,6 +158,8 @@ public java.lang.String getProject() { * * * string project = 1; + * + * @return The bytes for project. */ public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; @@ -174,6 +183,8 @@ public com.google.protobuf.ByteString getProjectBytes() { * * * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -191,6 +202,8 @@ public int getPageSize() { * * * string page_token = 3; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -213,6 +226,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -583,6 +598,8 @@ public Builder mergeFrom( * * * string project = 1; + * + * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; @@ -604,6 +621,8 @@ public java.lang.String getProject() { * * * string project = 1; + * + * @return The bytes for project. */ public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; @@ -625,6 +644,9 @@ public com.google.protobuf.ByteString getProjectBytes() { * * * string project = 1; + * + * @param value The project to set. + * @return This builder for chaining. */ public Builder setProject(java.lang.String value) { if (value == null) { @@ -644,6 +666,8 @@ public Builder setProject(java.lang.String value) { * * * string project = 1; + * + * @return This builder for chaining. */ public Builder clearProject() { @@ -660,6 +684,9 @@ public Builder clearProject() { * * * string project = 1; + * + * @param value The bytes for project to set. + * @return This builder for chaining. */ public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -681,6 +708,8 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -693,6 +722,9 @@ public int getPageSize() { * * * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -708,6 +740,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 2; + * + * @return This builder for chaining. */ public Builder clearPageSize() { @@ -727,6 +761,8 @@ public Builder clearPageSize() { * * * string page_token = 3; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -749,6 +785,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -771,6 +809,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -791,6 +832,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 3; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -808,6 +851,9 @@ public Builder clearPageToken() { * * * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 2425164f32b2..4d1fa2769df2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface ListSnapshotsRequestOrBuilder * * * string project = 1; + * + * @return The project. */ java.lang.String getProject(); /** @@ -43,6 +45,8 @@ public interface ListSnapshotsRequestOrBuilder * * * string project = 1; + * + * @return The bytes for project. */ com.google.protobuf.ByteString getProjectBytes(); @@ -54,6 +58,8 @@ public interface ListSnapshotsRequestOrBuilder * * * int32 page_size = 2; + * + * @return The pageSize. */ int getPageSize(); @@ -67,6 +73,8 @@ public interface ListSnapshotsRequestOrBuilder * * * string page_token = 3; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -79,6 +87,8 @@ public interface ListSnapshotsRequestOrBuilder * * * string page_token = 3; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 0421c26af6a9..485c8a0e9043 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -42,6 +42,12 @@ private ListSnapshotsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSnapshotsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -120,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ListSnapshotsResponse.Builder.class); } - private int bitField0_; public static final int SNAPSHOTS_FIELD_NUMBER = 1; private java.util.List snapshots_; /** @@ -196,6 +201,8 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -217,6 +224,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -483,7 +492,6 @@ public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { com.google.pubsub.v1.ListSnapshotsResponse result = new com.google.pubsub.v1.ListSnapshotsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (snapshotsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { snapshots_ = java.util.Collections.unmodifiableList(snapshots_); @@ -494,7 +502,6 @@ public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { result.snapshots_ = snapshotsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -962,6 +969,8 @@ public java.util.List getSnapshotsBuilder * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -983,6 +992,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1004,6 +1015,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1023,6 +1037,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1039,6 +1055,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index dd8b34c1dbb8..eec9de594370 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -83,6 +83,8 @@ public interface ListSnapshotsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -94,6 +96,8 @@ public interface ListSnapshotsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 8ca0a8f82ad1..303b4bd20cbc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -42,6 +42,12 @@ private ListSubscriptionsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSubscriptionsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ListSubscriptionsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -130,6 +135,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string project = 1; + * + * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; @@ -151,6 +158,8 @@ public java.lang.String getProject() { * * * string project = 1; + * + * @return The bytes for project. */ public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; @@ -174,6 +183,8 @@ public com.google.protobuf.ByteString getProjectBytes() { * * * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -191,6 +202,8 @@ public int getPageSize() { * * * string page_token = 3; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -213,6 +226,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -583,6 +598,8 @@ public Builder mergeFrom( * * * string project = 1; + * + * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; @@ -604,6 +621,8 @@ public java.lang.String getProject() { * * * string project = 1; + * + * @return The bytes for project. */ public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; @@ -625,6 +644,9 @@ public com.google.protobuf.ByteString getProjectBytes() { * * * string project = 1; + * + * @param value The project to set. + * @return This builder for chaining. */ public Builder setProject(java.lang.String value) { if (value == null) { @@ -644,6 +666,8 @@ public Builder setProject(java.lang.String value) { * * * string project = 1; + * + * @return This builder for chaining. */ public Builder clearProject() { @@ -660,6 +684,9 @@ public Builder clearProject() { * * * string project = 1; + * + * @param value The bytes for project to set. + * @return This builder for chaining. */ public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -681,6 +708,8 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -693,6 +722,9 @@ public int getPageSize() { * * * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -708,6 +740,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 2; + * + * @return This builder for chaining. */ public Builder clearPageSize() { @@ -727,6 +761,8 @@ public Builder clearPageSize() { * * * string page_token = 3; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -749,6 +785,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -771,6 +809,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -791,6 +832,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 3; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -808,6 +851,9 @@ public Builder clearPageToken() { * * * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index c92f30a9abfb..9b790f28f415 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface ListSubscriptionsRequestOrBuilder * * * string project = 1; + * + * @return The project. */ java.lang.String getProject(); /** @@ -43,6 +45,8 @@ public interface ListSubscriptionsRequestOrBuilder * * * string project = 1; + * + * @return The bytes for project. */ com.google.protobuf.ByteString getProjectBytes(); @@ -54,6 +58,8 @@ public interface ListSubscriptionsRequestOrBuilder * * * int32 page_size = 2; + * + * @return The pageSize. */ int getPageSize(); @@ -67,6 +73,8 @@ public interface ListSubscriptionsRequestOrBuilder * * * string page_token = 3; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -79,6 +87,8 @@ public interface ListSubscriptionsRequestOrBuilder * * * string page_token = 3; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 126a3840d87c..43c81d113bb8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -42,6 +42,12 @@ private ListSubscriptionsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSubscriptionsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -120,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ListSubscriptionsResponse.Builder.class); } - private int bitField0_; public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; private java.util.List subscriptions_; /** @@ -197,6 +202,8 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -219,6 +226,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -485,7 +494,6 @@ public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { com.google.pubsub.v1.ListSubscriptionsResponse result = new com.google.pubsub.v1.ListSubscriptionsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (subscriptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); @@ -496,7 +504,6 @@ public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { result.subscriptions_ = subscriptionsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -970,6 +977,8 @@ public java.util.List getSubscription * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -992,6 +1001,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -1014,6 +1025,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1034,6 +1048,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1051,6 +1067,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 49ee54051130..5f61bb9fb036 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -85,6 +85,8 @@ public interface ListSubscriptionsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -97,6 +99,8 @@ public interface ListSubscriptionsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 29190c841000..010e623e0fbf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -42,6 +42,12 @@ private ListTopicSnapshotsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTopicSnapshotsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ListTopicSnapshotsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -130,6 +135,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -151,6 +158,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -174,6 +183,8 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -191,6 +202,8 @@ public int getPageSize() { * * * string page_token = 3; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -213,6 +226,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -583,6 +598,8 @@ public Builder mergeFrom( * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -604,6 +621,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -625,6 +644,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * string topic = 1; + * + * @param value The topic to set. + * @return This builder for chaining. */ public Builder setTopic(java.lang.String value) { if (value == null) { @@ -644,6 +666,8 @@ public Builder setTopic(java.lang.String value) { * * * string topic = 1; + * + * @return This builder for chaining. */ public Builder clearTopic() { @@ -660,6 +684,9 @@ public Builder clearTopic() { * * * string topic = 1; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. */ public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -681,6 +708,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -693,6 +722,9 @@ public int getPageSize() { * * * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -708,6 +740,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 2; + * + * @return This builder for chaining. */ public Builder clearPageSize() { @@ -727,6 +761,8 @@ public Builder clearPageSize() { * * * string page_token = 3; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -749,6 +785,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -771,6 +809,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -791,6 +832,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 3; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -808,6 +851,9 @@ public Builder clearPageToken() { * * * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 4d93c32214b6..912bade7542c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface ListTopicSnapshotsRequestOrBuilder * * * string topic = 1; + * + * @return The topic. */ java.lang.String getTopic(); /** @@ -43,6 +45,8 @@ public interface ListTopicSnapshotsRequestOrBuilder * * * string topic = 1; + * + * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); @@ -54,6 +58,8 @@ public interface ListTopicSnapshotsRequestOrBuilder * * * int32 page_size = 2; + * + * @return The pageSize. */ int getPageSize(); @@ -67,6 +73,8 @@ public interface ListTopicSnapshotsRequestOrBuilder * * * string page_token = 3; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -79,6 +87,8 @@ public interface ListTopicSnapshotsRequestOrBuilder * * * string page_token = 3; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index bb057d567c2b..d5f375a75eb6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -42,6 +42,12 @@ private ListTopicSnapshotsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTopicSnapshotsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -120,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ListTopicSnapshotsResponse.Builder.class); } - private int bitField0_; public static final int SNAPSHOTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList snapshots_; /** @@ -131,6 +136,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string snapshots = 1; + * + * @return A list containing the snapshots. */ public com.google.protobuf.ProtocolStringList getSnapshotsList() { return snapshots_; @@ -143,6 +150,8 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { * * * repeated string snapshots = 1; + * + * @return The count of snapshots. */ public int getSnapshotsCount() { return snapshots_.size(); @@ -155,6 +164,9 @@ public int getSnapshotsCount() { * * * repeated string snapshots = 1; + * + * @param index The index of the element to return. + * @return The snapshots at the given index. */ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); @@ -167,6 +179,9 @@ public java.lang.String getSnapshots(int index) { * * * repeated string snapshots = 1; + * + * @param index The index of the value to return. + * @return The bytes of the snapshots at the given index. */ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { return snapshots_.getByteString(index); @@ -184,6 +199,8 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -206,6 +223,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -471,14 +490,12 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { com.google.pubsub.v1.ListTopicSnapshotsResponse result = new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { snapshots_ = snapshots_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.snapshots_ = snapshots_; result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -591,6 +608,8 @@ private void ensureSnapshotsIsMutable() { * * * repeated string snapshots = 1; + * + * @return A list containing the snapshots. */ public com.google.protobuf.ProtocolStringList getSnapshotsList() { return snapshots_.getUnmodifiableView(); @@ -603,6 +622,8 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { * * * repeated string snapshots = 1; + * + * @return The count of snapshots. */ public int getSnapshotsCount() { return snapshots_.size(); @@ -615,6 +636,9 @@ public int getSnapshotsCount() { * * * repeated string snapshots = 1; + * + * @param index The index of the element to return. + * @return The snapshots at the given index. */ public java.lang.String getSnapshots(int index) { return snapshots_.get(index); @@ -627,6 +651,9 @@ public java.lang.String getSnapshots(int index) { * * * repeated string snapshots = 1; + * + * @param index The index of the value to return. + * @return The bytes of the snapshots at the given index. */ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { return snapshots_.getByteString(index); @@ -639,6 +666,10 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { * * * repeated string snapshots = 1; + * + * @param index The index to set the value at. + * @param value The snapshots to set. + * @return This builder for chaining. */ public Builder setSnapshots(int index, java.lang.String value) { if (value == null) { @@ -657,6 +688,9 @@ public Builder setSnapshots(int index, java.lang.String value) { * * * repeated string snapshots = 1; + * + * @param value The snapshots to add. + * @return This builder for chaining. */ public Builder addSnapshots(java.lang.String value) { if (value == null) { @@ -675,6 +709,9 @@ public Builder addSnapshots(java.lang.String value) { * * * repeated string snapshots = 1; + * + * @param values The snapshots to add. + * @return This builder for chaining. */ public Builder addAllSnapshots(java.lang.Iterable values) { ensureSnapshotsIsMutable(); @@ -690,6 +727,8 @@ public Builder addAllSnapshots(java.lang.Iterable values) { * * * repeated string snapshots = 1; + * + * @return This builder for chaining. */ public Builder clearSnapshots() { snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -705,6 +744,9 @@ public Builder clearSnapshots() { * * * repeated string snapshots = 1; + * + * @param value The bytes of the snapshots to add. + * @return This builder for chaining. */ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -728,6 +770,8 @@ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -750,6 +794,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -772,6 +818,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -792,6 +841,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -809,6 +860,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 5f6320c10094..682fbd0dda22 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -31,6 +31,8 @@ public interface ListTopicSnapshotsResponseOrBuilder * * * repeated string snapshots = 1; + * + * @return A list containing the snapshots. */ java.util.List getSnapshotsList(); /** @@ -41,6 +43,8 @@ public interface ListTopicSnapshotsResponseOrBuilder * * * repeated string snapshots = 1; + * + * @return The count of snapshots. */ int getSnapshotsCount(); /** @@ -51,6 +55,9 @@ public interface ListTopicSnapshotsResponseOrBuilder * * * repeated string snapshots = 1; + * + * @param index The index of the element to return. + * @return The snapshots at the given index. */ java.lang.String getSnapshots(int index); /** @@ -61,6 +68,9 @@ public interface ListTopicSnapshotsResponseOrBuilder * * * repeated string snapshots = 1; + * + * @param index The index of the value to return. + * @return The bytes of the snapshots at the given index. */ com.google.protobuf.ByteString getSnapshotsBytes(int index); @@ -74,6 +84,8 @@ public interface ListTopicSnapshotsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -86,6 +98,8 @@ public interface ListTopicSnapshotsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 039b884d7076..f88382e995b0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -42,6 +42,12 @@ private ListTopicSubscriptionsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTopicSubscriptionsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ListTopicSubscriptionsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -130,6 +135,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -151,6 +158,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -174,6 +183,8 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -191,6 +202,8 @@ public int getPageSize() { * * * string page_token = 3; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -213,6 +226,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -585,6 +600,8 @@ public Builder mergeFrom( * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -606,6 +623,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -627,6 +646,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * string topic = 1; + * + * @param value The topic to set. + * @return This builder for chaining. */ public Builder setTopic(java.lang.String value) { if (value == null) { @@ -646,6 +668,8 @@ public Builder setTopic(java.lang.String value) { * * * string topic = 1; + * + * @return This builder for chaining. */ public Builder clearTopic() { @@ -662,6 +686,9 @@ public Builder clearTopic() { * * * string topic = 1; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. */ public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -683,6 +710,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -695,6 +724,9 @@ public int getPageSize() { * * * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -710,6 +742,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 2; + * + * @return This builder for chaining. */ public Builder clearPageSize() { @@ -729,6 +763,8 @@ public Builder clearPageSize() { * * * string page_token = 3; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -751,6 +787,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -773,6 +811,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -793,6 +834,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 3; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -810,6 +853,9 @@ public Builder clearPageToken() { * * * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 4d337bd24e4e..393024d6670d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * * string topic = 1; + * + * @return The topic. */ java.lang.String getTopic(); /** @@ -43,6 +45,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * * string topic = 1; + * + * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); @@ -54,6 +58,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * * int32 page_size = 2; + * + * @return The pageSize. */ int getPageSize(); @@ -67,6 +73,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * * string page_token = 3; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -79,6 +87,8 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * * string page_token = 3; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 8487f3f5de3a..e7f0ca60636e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -43,6 +43,12 @@ private ListTopicSubscriptionsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTopicSubscriptionsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -121,7 +127,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ListTopicSubscriptionsResponse.Builder.class); } - private int bitField0_; public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList subscriptions_; /** @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string subscriptions = 1; + * + * @return A list containing the subscriptions. */ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { return subscriptions_; @@ -144,6 +151,8 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { * * * repeated string subscriptions = 1; + * + * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); @@ -156,6 +165,9 @@ public int getSubscriptionsCount() { * * * repeated string subscriptions = 1; + * + * @param index The index of the element to return. + * @return The subscriptions at the given index. */ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); @@ -168,6 +180,9 @@ public java.lang.String getSubscriptions(int index) { * * * repeated string subscriptions = 1; + * + * @param index The index of the value to return. + * @return The bytes of the subscriptions at the given index. */ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); @@ -185,6 +200,8 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -207,6 +224,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -472,14 +491,12 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { com.google.pubsub.v1.ListTopicSubscriptionsResponse result = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = subscriptions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.subscriptions_ = subscriptions_; result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -593,6 +610,8 @@ private void ensureSubscriptionsIsMutable() { * * * repeated string subscriptions = 1; + * + * @return A list containing the subscriptions. */ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { return subscriptions_.getUnmodifiableView(); @@ -605,6 +624,8 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { * * * repeated string subscriptions = 1; + * + * @return The count of subscriptions. */ public int getSubscriptionsCount() { return subscriptions_.size(); @@ -617,6 +638,9 @@ public int getSubscriptionsCount() { * * * repeated string subscriptions = 1; + * + * @param index The index of the element to return. + * @return The subscriptions at the given index. */ public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); @@ -629,6 +653,9 @@ public java.lang.String getSubscriptions(int index) { * * * repeated string subscriptions = 1; + * + * @param index The index of the value to return. + * @return The bytes of the subscriptions at the given index. */ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); @@ -641,6 +668,10 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { * * * repeated string subscriptions = 1; + * + * @param index The index to set the value at. + * @param value The subscriptions to set. + * @return This builder for chaining. */ public Builder setSubscriptions(int index, java.lang.String value) { if (value == null) { @@ -659,6 +690,9 @@ public Builder setSubscriptions(int index, java.lang.String value) { * * * repeated string subscriptions = 1; + * + * @param value The subscriptions to add. + * @return This builder for chaining. */ public Builder addSubscriptions(java.lang.String value) { if (value == null) { @@ -677,6 +711,9 @@ public Builder addSubscriptions(java.lang.String value) { * * * repeated string subscriptions = 1; + * + * @param values The subscriptions to add. + * @return This builder for chaining. */ public Builder addAllSubscriptions(java.lang.Iterable values) { ensureSubscriptionsIsMutable(); @@ -692,6 +729,8 @@ public Builder addAllSubscriptions(java.lang.Iterable values) * * * repeated string subscriptions = 1; + * + * @return This builder for chaining. */ public Builder clearSubscriptions() { subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -707,6 +746,9 @@ public Builder clearSubscriptions() { * * * repeated string subscriptions = 1; + * + * @param value The bytes of the subscriptions to add. + * @return This builder for chaining. */ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -730,6 +772,8 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -752,6 +796,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -774,6 +820,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -794,6 +843,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -811,6 +862,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index fd2684b83040..8affb19488c7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -31,6 +31,8 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * * repeated string subscriptions = 1; + * + * @return A list containing the subscriptions. */ java.util.List getSubscriptionsList(); /** @@ -41,6 +43,8 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * * repeated string subscriptions = 1; + * + * @return The count of subscriptions. */ int getSubscriptionsCount(); /** @@ -51,6 +55,9 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * * repeated string subscriptions = 1; + * + * @param index The index of the element to return. + * @return The subscriptions at the given index. */ java.lang.String getSubscriptions(int index); /** @@ -61,6 +68,9 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * * repeated string subscriptions = 1; + * + * @param index The index of the value to return. + * @return The bytes of the subscriptions at the given index. */ com.google.protobuf.ByteString getSubscriptionsBytes(int index); @@ -74,6 +84,8 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -86,6 +98,8 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 1a550071a6ac..f993326bc5a3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -42,6 +42,12 @@ private ListTopicsRequest() { pageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTopicsRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ListTopicsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -130,6 +135,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string project = 1; + * + * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; @@ -151,6 +158,8 @@ public java.lang.String getProject() { * * * string project = 1; + * + * @return The bytes for project. */ public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; @@ -174,6 +183,8 @@ public com.google.protobuf.ByteString getProjectBytes() { * * * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -191,6 +202,8 @@ public int getPageSize() { * * * string page_token = 3; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -213,6 +226,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -582,6 +597,8 @@ public Builder mergeFrom( * * * string project = 1; + * + * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; @@ -603,6 +620,8 @@ public java.lang.String getProject() { * * * string project = 1; + * + * @return The bytes for project. */ public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; @@ -624,6 +643,9 @@ public com.google.protobuf.ByteString getProjectBytes() { * * * string project = 1; + * + * @param value The project to set. + * @return This builder for chaining. */ public Builder setProject(java.lang.String value) { if (value == null) { @@ -643,6 +665,8 @@ public Builder setProject(java.lang.String value) { * * * string project = 1; + * + * @return This builder for chaining. */ public Builder clearProject() { @@ -659,6 +683,9 @@ public Builder clearProject() { * * * string project = 1; + * + * @param value The bytes for project to set. + * @return This builder for chaining. */ public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -680,6 +707,8 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * * int32 page_size = 2; + * + * @return The pageSize. */ public int getPageSize() { return pageSize_; @@ -692,6 +721,9 @@ public int getPageSize() { * * * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. */ public Builder setPageSize(int value) { @@ -707,6 +739,8 @@ public Builder setPageSize(int value) { * * * int32 page_size = 2; + * + * @return This builder for chaining. */ public Builder clearPageSize() { @@ -726,6 +760,8 @@ public Builder clearPageSize() { * * * string page_token = 3; + * + * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; @@ -748,6 +784,8 @@ public java.lang.String getPageToken() { * * * string page_token = 3; + * + * @return The bytes for pageToken. */ public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; @@ -770,6 +808,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. */ public Builder setPageToken(java.lang.String value) { if (value == null) { @@ -790,6 +831,8 @@ public Builder setPageToken(java.lang.String value) { * * * string page_token = 3; + * + * @return This builder for chaining. */ public Builder clearPageToken() { @@ -807,6 +850,9 @@ public Builder clearPageToken() { * * * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. */ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 16ddbd600a75..e2142d043776 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface ListTopicsRequestOrBuilder * * * string project = 1; + * + * @return The project. */ java.lang.String getProject(); /** @@ -43,6 +45,8 @@ public interface ListTopicsRequestOrBuilder * * * string project = 1; + * + * @return The bytes for project. */ com.google.protobuf.ByteString getProjectBytes(); @@ -54,6 +58,8 @@ public interface ListTopicsRequestOrBuilder * * * int32 page_size = 2; + * + * @return The pageSize. */ int getPageSize(); @@ -67,6 +73,8 @@ public interface ListTopicsRequestOrBuilder * * * string page_token = 3; + * + * @return The pageToken. */ java.lang.String getPageToken(); /** @@ -79,6 +87,8 @@ public interface ListTopicsRequestOrBuilder * * * string page_token = 3; + * + * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index de82ad5ebab7..086d491e9676 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -42,6 +42,12 @@ private ListTopicsResponse() { nextPageToken_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTopicsResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -120,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ListTopicsResponse.Builder.class); } - private int bitField0_; public static final int TOPICS_FIELD_NUMBER = 1; private java.util.List topics_; /** @@ -195,6 +200,8 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -216,6 +223,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -481,7 +490,6 @@ public com.google.pubsub.v1.ListTopicsResponse buildPartial() { com.google.pubsub.v1.ListTopicsResponse result = new com.google.pubsub.v1.ListTopicsResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (topicsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); @@ -492,7 +500,6 @@ public com.google.pubsub.v1.ListTopicsResponse buildPartial() { result.topics_ = topicsBuilder_.build(); } result.nextPageToken_ = nextPageToken_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -956,6 +963,8 @@ public java.util.List getTopicsBuilderList() * * * string next_page_token = 2; + * + * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; @@ -977,6 +986,8 @@ public java.lang.String getNextPageToken() { * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; @@ -998,6 +1009,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { @@ -1017,6 +1031,8 @@ public Builder setNextPageToken(java.lang.String value) { * * * string next_page_token = 2; + * + * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1033,6 +1049,9 @@ public Builder clearNextPageToken() { * * * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index d5ea52e04a03..6b0e73133454 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -83,6 +83,8 @@ public interface ListTopicsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** @@ -94,6 +96,8 @@ public interface ListTopicsResponseOrBuilder * * * string next_page_token = 2; + * + * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 1e6167ec1f2e..1255493d9226 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -33,6 +33,12 @@ private MessageStoragePolicy() { allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageStoragePolicy(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -118,6 +124,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string allowed_persistence_regions = 1; + * + * @return A list containing the allowedPersistenceRegions. */ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_; @@ -134,6 +142,8 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * * repeated string allowed_persistence_regions = 1; + * + * @return The count of allowedPersistenceRegions. */ public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); @@ -150,6 +160,9 @@ public int getAllowedPersistenceRegionsCount() { * * * repeated string allowed_persistence_regions = 1; + * + * @param index The index of the element to return. + * @return The allowedPersistenceRegions at the given index. */ public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); @@ -166,6 +179,9 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * * repeated string allowed_persistence_regions = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedPersistenceRegions at the given index. */ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index) { return allowedPersistenceRegions_.getByteString(index); @@ -523,6 +539,8 @@ private void ensureAllowedPersistenceRegionsIsMutable() { * * * repeated string allowed_persistence_regions = 1; + * + * @return A list containing the allowedPersistenceRegions. */ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_.getUnmodifiableView(); @@ -539,6 +557,8 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * * repeated string allowed_persistence_regions = 1; + * + * @return The count of allowedPersistenceRegions. */ public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); @@ -555,6 +575,9 @@ public int getAllowedPersistenceRegionsCount() { * * * repeated string allowed_persistence_regions = 1; + * + * @param index The index of the element to return. + * @return The allowedPersistenceRegions at the given index. */ public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); @@ -571,6 +594,9 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * * repeated string allowed_persistence_regions = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedPersistenceRegions at the given index. */ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index) { return allowedPersistenceRegions_.getByteString(index); @@ -587,6 +613,10 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde * * * repeated string allowed_persistence_regions = 1; + * + * @param index The index to set the value at. + * @param value The allowedPersistenceRegions to set. + * @return This builder for chaining. */ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { if (value == null) { @@ -609,6 +639,9 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { * * * repeated string allowed_persistence_regions = 1; + * + * @param value The allowedPersistenceRegions to add. + * @return This builder for chaining. */ public Builder addAllowedPersistenceRegions(java.lang.String value) { if (value == null) { @@ -631,6 +664,9 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) { * * * repeated string allowed_persistence_regions = 1; + * + * @param values The allowedPersistenceRegions to add. + * @return This builder for chaining. */ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable values) { ensureAllowedPersistenceRegionsIsMutable(); @@ -650,6 +686,8 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable * * repeated string allowed_persistence_regions = 1; + * + * @return This builder for chaining. */ public Builder clearAllowedPersistenceRegions() { allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -669,6 +707,9 @@ public Builder clearAllowedPersistenceRegions() { * * * repeated string allowed_persistence_regions = 1; + * + * @param value The bytes of the allowedPersistenceRegions to add. + * @return This builder for chaining. */ public Builder addAllowedPersistenceRegionsBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 01e1c94cd2c9..1e79cc370a5d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -35,6 +35,8 @@ public interface MessageStoragePolicyOrBuilder * * * repeated string allowed_persistence_regions = 1; + * + * @return A list containing the allowedPersistenceRegions. */ java.util.List getAllowedPersistenceRegionsList(); /** @@ -49,6 +51,8 @@ public interface MessageStoragePolicyOrBuilder * * * repeated string allowed_persistence_regions = 1; + * + * @return The count of allowedPersistenceRegions. */ int getAllowedPersistenceRegionsCount(); /** @@ -63,6 +67,9 @@ public interface MessageStoragePolicyOrBuilder * * * repeated string allowed_persistence_regions = 1; + * + * @param index The index of the element to return. + * @return The allowedPersistenceRegions at the given index. */ java.lang.String getAllowedPersistenceRegions(int index); /** @@ -77,6 +84,9 @@ public interface MessageStoragePolicyOrBuilder * * * repeated string allowed_persistence_regions = 1; + * + * @param index The index of the value to return. + * @return The bytes of the allowedPersistenceRegions at the given index. */ com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 6ac52c729dd6..3d419a3a0130 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -42,6 +42,12 @@ private ModifyAckDeadlineRequest() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModifyAckDeadlineRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -81,9 +87,9 @@ private ModifyAckDeadlineRequest( case 34: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } ackIds_.add(s); break; @@ -102,7 +108,7 @@ private ModifyAckDeadlineRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -125,7 +131,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ModifyAckDeadlineRequest.Builder.class); } - private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** @@ -137,6 +142,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -158,6 +165,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -181,6 +190,8 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * repeated string ack_ids = 4; + * + * @return A list containing the ackIds. */ public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; @@ -193,6 +204,8 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * * repeated string ack_ids = 4; + * + * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); @@ -205,6 +218,9 @@ public int getAckIdsCount() { * * * repeated string ack_ids = 4; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. */ public java.lang.String getAckIds(int index) { return ackIds_.get(index); @@ -217,6 +233,9 @@ public java.lang.String getAckIds(int index) { * * * repeated string ack_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. */ public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); @@ -239,6 +258,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * * int32 ack_deadline_seconds = 3; + * + * @return The ackDeadlineSeconds. */ public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; @@ -476,7 +497,7 @@ public Builder clear() { subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); ackDeadlineSeconds_ = 0; return this; @@ -507,15 +528,13 @@ public com.google.pubsub.v1.ModifyAckDeadlineRequest buildPartial() { com.google.pubsub.v1.ModifyAckDeadlineRequest result = new com.google.pubsub.v1.ModifyAckDeadlineRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.subscription_ = subscription_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.ackIds_ = ackIds_; result.ackDeadlineSeconds_ = ackDeadlineSeconds_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -572,7 +591,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ModifyAckDeadlineRequest other) { if (!other.ackIds_.isEmpty()) { if (ackIds_.isEmpty()) { ackIds_ = other.ackIds_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAckIdsIsMutable(); ackIds_.addAll(other.ackIds_); @@ -623,6 +642,8 @@ public Builder mergeFrom( * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -644,6 +665,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -665,6 +688,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * string subscription = 1; + * + * @param value The subscription to set. + * @return This builder for chaining. */ public Builder setSubscription(java.lang.String value) { if (value == null) { @@ -684,6 +710,8 @@ public Builder setSubscription(java.lang.String value) { * * * string subscription = 1; + * + * @return This builder for chaining. */ public Builder clearSubscription() { @@ -700,6 +728,9 @@ public Builder clearSubscription() { * * * string subscription = 1; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -716,9 +747,9 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -729,6 +760,8 @@ private void ensureAckIdsIsMutable() { * * * repeated string ack_ids = 4; + * + * @return A list containing the ackIds. */ public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_.getUnmodifiableView(); @@ -741,6 +774,8 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * * repeated string ack_ids = 4; + * + * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); @@ -753,6 +788,9 @@ public int getAckIdsCount() { * * * repeated string ack_ids = 4; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. */ public java.lang.String getAckIds(int index) { return ackIds_.get(index); @@ -765,6 +803,9 @@ public java.lang.String getAckIds(int index) { * * * repeated string ack_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. */ public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); @@ -777,6 +818,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * * repeated string ack_ids = 4; + * + * @param index The index to set the value at. + * @param value The ackIds to set. + * @return This builder for chaining. */ public Builder setAckIds(int index, java.lang.String value) { if (value == null) { @@ -795,6 +840,9 @@ public Builder setAckIds(int index, java.lang.String value) { * * * repeated string ack_ids = 4; + * + * @param value The ackIds to add. + * @return This builder for chaining. */ public Builder addAckIds(java.lang.String value) { if (value == null) { @@ -813,6 +861,9 @@ public Builder addAckIds(java.lang.String value) { * * * repeated string ack_ids = 4; + * + * @param values The ackIds to add. + * @return This builder for chaining. */ public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); @@ -828,10 +879,12 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * * repeated string ack_ids = 4; + * + * @return This builder for chaining. */ public Builder clearAckIds() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -843,6 +896,9 @@ public Builder clearAckIds() { * * * repeated string ack_ids = 4; + * + * @param value The bytes of the ackIds to add. + * @return This builder for chaining. */ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -871,6 +927,8 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { * * * int32 ack_deadline_seconds = 3; + * + * @return The ackDeadlineSeconds. */ public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; @@ -890,6 +948,9 @@ public int getAckDeadlineSeconds() { * * * int32 ack_deadline_seconds = 3; + * + * @param value The ackDeadlineSeconds to set. + * @return This builder for chaining. */ public Builder setAckDeadlineSeconds(int value) { @@ -912,6 +973,8 @@ public Builder setAckDeadlineSeconds(int value) { * * * int32 ack_deadline_seconds = 3; + * + * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index ed3d757bbe22..22a6ef8be948 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface ModifyAckDeadlineRequestOrBuilder * * * string subscription = 1; + * + * @return The subscription. */ java.lang.String getSubscription(); /** @@ -43,6 +45,8 @@ public interface ModifyAckDeadlineRequestOrBuilder * * * string subscription = 1; + * + * @return The bytes for subscription. */ com.google.protobuf.ByteString getSubscriptionBytes(); @@ -54,6 +58,8 @@ public interface ModifyAckDeadlineRequestOrBuilder * * * repeated string ack_ids = 4; + * + * @return A list containing the ackIds. */ java.util.List getAckIdsList(); /** @@ -64,6 +70,8 @@ public interface ModifyAckDeadlineRequestOrBuilder * * * repeated string ack_ids = 4; + * + * @return The count of ackIds. */ int getAckIdsCount(); /** @@ -74,6 +82,9 @@ public interface ModifyAckDeadlineRequestOrBuilder * * * repeated string ack_ids = 4; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** @@ -84,6 +95,9 @@ public interface ModifyAckDeadlineRequestOrBuilder * * * repeated string ack_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. */ com.google.protobuf.ByteString getAckIdsBytes(int index); @@ -102,6 +116,8 @@ public interface ModifyAckDeadlineRequestOrBuilder * * * int32 ack_deadline_seconds = 3; + * + * @return The ackDeadlineSeconds. */ int getAckDeadlineSeconds(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 2dd74bbd751e..a29f68e8cfde 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -41,6 +41,12 @@ private ModifyPushConfigRequest() { subscription_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModifyPushConfigRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ModifyPushConfigRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -153,6 +160,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -180,6 +189,8 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * .google.pubsub.v1.PushConfig push_config = 2; + * + * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return pushConfig_ != null; @@ -196,6 +207,8 @@ public boolean hasPushConfig() { * * * .google.pubsub.v1.PushConfig push_config = 2; + * + * @return The pushConfig. */ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; @@ -571,6 +584,8 @@ public Builder mergeFrom( * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -592,6 +607,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -613,6 +630,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * string subscription = 1; + * + * @param value The subscription to set. + * @return This builder for chaining. */ public Builder setSubscription(java.lang.String value) { if (value == null) { @@ -632,6 +652,8 @@ public Builder setSubscription(java.lang.String value) { * * * string subscription = 1; + * + * @return This builder for chaining. */ public Builder clearSubscription() { @@ -648,6 +670,9 @@ public Builder clearSubscription() { * * * string subscription = 1; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -678,6 +703,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * .google.pubsub.v1.PushConfig push_config = 2; + * + * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return pushConfigBuilder_ != null || pushConfig_ != null; @@ -694,6 +721,8 @@ public boolean hasPushConfig() { * * * .google.pubsub.v1.PushConfig push_config = 2; + * + * @return The pushConfig. */ public com.google.pubsub.v1.PushConfig getPushConfig() { if (pushConfigBuilder_ == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 48e7a44ddaef..21e95de35d54 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface ModifyPushConfigRequestOrBuilder * * * string subscription = 1; + * + * @return The subscription. */ java.lang.String getSubscription(); /** @@ -43,6 +45,8 @@ public interface ModifyPushConfigRequestOrBuilder * * * string subscription = 1; + * + * @return The bytes for subscription. */ com.google.protobuf.ByteString getSubscriptionBytes(); @@ -58,6 +62,8 @@ public interface ModifyPushConfigRequestOrBuilder * * * .google.pubsub.v1.PushConfig push_config = 2; + * + * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); /** @@ -72,6 +78,8 @@ public interface ModifyPushConfigRequestOrBuilder * * * .google.pubsub.v1.PushConfig push_config = 2; + * + * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index c73a67ae90ba..e514b0f5560d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class ProjectName implements ResourceName { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java index de58e97b32d8..43456a24f1e8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class ProjectSnapshotName implements ResourceName { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java index 598717152f1c..bd0495ecc3fe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java @@ -24,7 +24,7 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public class ProjectSubscriptionName implements ResourceName { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java index 0148bc504f20..4c97854bad5a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java @@ -23,8 +23,13 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class ProjectTopicName extends TopicName { private static final PathTemplate PATH_TEMPLATE = diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 80aaff0a4216..47db6aa0cfb3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -42,6 +42,12 @@ private PublishRequest() { messages_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PublishRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -75,9 +81,9 @@ private PublishRequest( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { messages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } messages_.add( input.readMessage( @@ -98,7 +104,7 @@ private PublishRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); } this.unknownFields = unknownFields.build(); @@ -121,7 +127,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.PublishRequest.Builder.class); } - private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; private volatile java.lang.Object topic_; /** @@ -133,6 +138,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -154,6 +161,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -450,7 +459,7 @@ public Builder clear() { if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { messagesBuilder_.clear(); } @@ -481,18 +490,16 @@ public com.google.pubsub.v1.PublishRequest build() { public com.google.pubsub.v1.PublishRequest buildPartial() { com.google.pubsub.v1.PublishRequest result = new com.google.pubsub.v1.PublishRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.topic_ = topic_; if (messagesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.messages_ = messages_; } else { result.messages_ = messagesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -550,7 +557,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); @@ -563,7 +570,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { messagesBuilder_.dispose(); messagesBuilder_ = null; messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); messagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMessagesFieldBuilder() @@ -614,6 +621,8 @@ public Builder mergeFrom( * * * string topic = 1; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -635,6 +644,8 @@ public java.lang.String getTopic() { * * * string topic = 1; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -656,6 +667,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * string topic = 1; + * + * @param value The topic to set. + * @return This builder for chaining. */ public Builder setTopic(java.lang.String value) { if (value == null) { @@ -675,6 +689,8 @@ public Builder setTopic(java.lang.String value) { * * * string topic = 1; + * + * @return This builder for chaining. */ public Builder clearTopic() { @@ -691,6 +707,9 @@ public Builder clearTopic() { * * * string topic = 1; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. */ public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -707,9 +726,9 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { messages_ = new java.util.ArrayList(messages_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -924,7 +943,7 @@ public Builder addAllMessages( public Builder clearMessages() { if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { messagesBuilder_.clear(); @@ -1045,7 +1064,7 @@ public java.util.List getMessagesBui com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( - messages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 82afc4756b70..4cdc2155d3ea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface PublishRequestOrBuilder * * * string topic = 1; + * + * @return The topic. */ java.lang.String getTopic(); /** @@ -43,6 +45,8 @@ public interface PublishRequestOrBuilder * * * string topic = 1; + * + * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 874b04718aba..f8222cff4514 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -41,6 +41,12 @@ private PublishResponse() { messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PublishResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -124,6 +130,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated string message_ids = 1; + * + * @return A list containing the messageIds. */ public com.google.protobuf.ProtocolStringList getMessageIdsList() { return messageIds_; @@ -138,6 +146,8 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { * * * repeated string message_ids = 1; + * + * @return The count of messageIds. */ public int getMessageIdsCount() { return messageIds_.size(); @@ -152,6 +162,9 @@ public int getMessageIdsCount() { * * * repeated string message_ids = 1; + * + * @param index The index of the element to return. + * @return The messageIds at the given index. */ public java.lang.String getMessageIds(int index) { return messageIds_.get(index); @@ -166,6 +179,9 @@ public java.lang.String getMessageIds(int index) { * * * repeated string message_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the messageIds at the given index. */ public com.google.protobuf.ByteString getMessageIdsBytes(int index) { return messageIds_.getByteString(index); @@ -523,6 +539,8 @@ private void ensureMessageIdsIsMutable() { * * * repeated string message_ids = 1; + * + * @return A list containing the messageIds. */ public com.google.protobuf.ProtocolStringList getMessageIdsList() { return messageIds_.getUnmodifiableView(); @@ -537,6 +555,8 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { * * * repeated string message_ids = 1; + * + * @return The count of messageIds. */ public int getMessageIdsCount() { return messageIds_.size(); @@ -551,6 +571,9 @@ public int getMessageIdsCount() { * * * repeated string message_ids = 1; + * + * @param index The index of the element to return. + * @return The messageIds at the given index. */ public java.lang.String getMessageIds(int index) { return messageIds_.get(index); @@ -565,6 +588,9 @@ public java.lang.String getMessageIds(int index) { * * * repeated string message_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the messageIds at the given index. */ public com.google.protobuf.ByteString getMessageIdsBytes(int index) { return messageIds_.getByteString(index); @@ -579,6 +605,10 @@ public com.google.protobuf.ByteString getMessageIdsBytes(int index) { * * * repeated string message_ids = 1; + * + * @param index The index to set the value at. + * @param value The messageIds to set. + * @return This builder for chaining. */ public Builder setMessageIds(int index, java.lang.String value) { if (value == null) { @@ -599,6 +629,9 @@ public Builder setMessageIds(int index, java.lang.String value) { * * * repeated string message_ids = 1; + * + * @param value The messageIds to add. + * @return This builder for chaining. */ public Builder addMessageIds(java.lang.String value) { if (value == null) { @@ -619,6 +652,9 @@ public Builder addMessageIds(java.lang.String value) { * * * repeated string message_ids = 1; + * + * @param values The messageIds to add. + * @return This builder for chaining. */ public Builder addAllMessageIds(java.lang.Iterable values) { ensureMessageIdsIsMutable(); @@ -636,6 +672,8 @@ public Builder addAllMessageIds(java.lang.Iterable values) { * * * repeated string message_ids = 1; + * + * @return This builder for chaining. */ public Builder clearMessageIds() { messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -653,6 +691,9 @@ public Builder clearMessageIds() { * * * repeated string message_ids = 1; + * + * @param value The bytes of the messageIds to add. + * @return This builder for chaining. */ public Builder addMessageIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index bc0dac4905c8..886050e1075b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -33,6 +33,8 @@ public interface PublishResponseOrBuilder * * * repeated string message_ids = 1; + * + * @return A list containing the messageIds. */ java.util.List getMessageIdsList(); /** @@ -45,6 +47,8 @@ public interface PublishResponseOrBuilder * * * repeated string message_ids = 1; + * + * @return The count of messageIds. */ int getMessageIdsCount(); /** @@ -57,6 +61,9 @@ public interface PublishResponseOrBuilder * * * repeated string message_ids = 1; + * + * @param index The index of the element to return. + * @return The messageIds at the given index. */ java.lang.String getMessageIds(int index); /** @@ -69,6 +76,9 @@ public interface PublishResponseOrBuilder * * * repeated string message_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the messageIds at the given index. */ com.google.protobuf.ByteString getMessageIdsBytes(int index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 2452dab3b24c..30b99042a1ae 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -50,6 +50,12 @@ private PubsubMessage() { orderingKey_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubsubMessage(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -81,11 +87,11 @@ private PubsubMessage( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry attributes__ = input.readMessage( @@ -168,7 +174,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.PubsubMessage.Builder.class); } - private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_; /** @@ -180,6 +185,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * * bytes data = 1; + * + * @return The data. */ public com.google.protobuf.ByteString getData() { return data_; @@ -292,6 +299,8 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { * * * string message_id = 3; + * + * @return The messageId. */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; @@ -315,6 +324,8 @@ public java.lang.String getMessageId() { * * * string message_id = 3; + * + * @return The bytes for messageId. */ public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; @@ -340,6 +351,8 @@ public com.google.protobuf.ByteString getMessageIdBytes() { * * * .google.protobuf.Timestamp publish_time = 4; + * + * @return Whether the publishTime field is set. */ public boolean hasPublishTime() { return publishTime_ != null; @@ -354,6 +367,8 @@ public boolean hasPublishTime() { * * * .google.protobuf.Timestamp publish_time = 4; + * + * @return The publishTime. */ public com.google.protobuf.Timestamp getPublishTime() { return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; @@ -389,6 +404,8 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * * * string ordering_key = 5; + * + * @return The orderingKey. */ public java.lang.String getOrderingKey() { java.lang.Object ref = orderingKey_; @@ -415,6 +432,8 @@ public java.lang.String getOrderingKey() { * * * string ordering_key = 5; + * + * @return The bytes for orderingKey. */ public com.google.protobuf.ByteString getOrderingKeyBytes() { java.lang.Object ref = orderingKey_; @@ -746,7 +765,6 @@ public com.google.pubsub.v1.PubsubMessage build() { public com.google.pubsub.v1.PubsubMessage buildPartial() { com.google.pubsub.v1.PubsubMessage result = new com.google.pubsub.v1.PubsubMessage(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.data_ = data_; result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); @@ -757,7 +775,6 @@ public com.google.pubsub.v1.PubsubMessage buildPartial() { result.publishTime_ = publishTimeBuilder_.build(); } result.orderingKey_ = orderingKey_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -863,6 +880,8 @@ public Builder mergeFrom( * * * bytes data = 1; + * + * @return The data. */ public com.google.protobuf.ByteString getData() { return data_; @@ -876,6 +895,9 @@ public com.google.protobuf.ByteString getData() { * * * bytes data = 1; + * + * @param value The data to set. + * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { @@ -895,6 +917,8 @@ public Builder setData(com.google.protobuf.ByteString value) { * * * bytes data = 1; + * + * @return This builder for chaining. */ public Builder clearData() { @@ -1070,6 +1094,8 @@ public Builder putAllAttributes(java.util.Map * * string message_id = 3; + * + * @return The messageId. */ public java.lang.String getMessageId() { java.lang.Object ref = messageId_; @@ -1093,6 +1119,8 @@ public java.lang.String getMessageId() { * * * string message_id = 3; + * + * @return The bytes for messageId. */ public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; @@ -1116,6 +1144,9 @@ public com.google.protobuf.ByteString getMessageIdBytes() { * * * string message_id = 3; + * + * @param value The messageId to set. + * @return This builder for chaining. */ public Builder setMessageId(java.lang.String value) { if (value == null) { @@ -1137,6 +1168,8 @@ public Builder setMessageId(java.lang.String value) { * * * string message_id = 3; + * + * @return This builder for chaining. */ public Builder clearMessageId() { @@ -1155,6 +1188,9 @@ public Builder clearMessageId() { * * * string message_id = 3; + * + * @param value The bytes for messageId to set. + * @return This builder for chaining. */ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1183,6 +1219,8 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp publish_time = 4; + * + * @return Whether the publishTime field is set. */ public boolean hasPublishTime() { return publishTimeBuilder_ != null || publishTime_ != null; @@ -1197,6 +1235,8 @@ public boolean hasPublishTime() { * * * .google.protobuf.Timestamp publish_time = 4; + * + * @return The publishTime. */ public com.google.protobuf.Timestamp getPublishTime() { if (publishTimeBuilder_ == null) { @@ -1381,6 +1421,8 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * * * string ordering_key = 5; + * + * @return The orderingKey. */ public java.lang.String getOrderingKey() { java.lang.Object ref = orderingKey_; @@ -1407,6 +1449,8 @@ public java.lang.String getOrderingKey() { * * * string ordering_key = 5; + * + * @return The bytes for orderingKey. */ public com.google.protobuf.ByteString getOrderingKeyBytes() { java.lang.Object ref = orderingKey_; @@ -1433,6 +1477,9 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { * * * string ordering_key = 5; + * + * @param value The orderingKey to set. + * @return This builder for chaining. */ public Builder setOrderingKey(java.lang.String value) { if (value == null) { @@ -1457,6 +1504,8 @@ public Builder setOrderingKey(java.lang.String value) { * * * string ordering_key = 5; + * + * @return This builder for chaining. */ public Builder clearOrderingKey() { @@ -1478,6 +1527,9 @@ public Builder clearOrderingKey() { * * * string ordering_key = 5; + * + * @param value The bytes for orderingKey to set. + * @return This builder for chaining. */ public Builder setOrderingKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index a8a54dc1116d..02050012503f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -32,6 +32,8 @@ public interface PubsubMessageOrBuilder * * * bytes data = 1; + * + * @return The data. */ com.google.protobuf.ByteString getData(); @@ -100,6 +102,8 @@ public interface PubsubMessageOrBuilder * * * string message_id = 3; + * + * @return The messageId. */ java.lang.String getMessageId(); /** @@ -113,6 +117,8 @@ public interface PubsubMessageOrBuilder * * * string message_id = 3; + * + * @return The bytes for messageId. */ com.google.protobuf.ByteString getMessageIdBytes(); @@ -126,6 +132,8 @@ public interface PubsubMessageOrBuilder * * * .google.protobuf.Timestamp publish_time = 4; + * + * @return Whether the publishTime field is set. */ boolean hasPublishTime(); /** @@ -138,6 +146,8 @@ public interface PubsubMessageOrBuilder * * * .google.protobuf.Timestamp publish_time = 4; + * + * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); /** @@ -167,6 +177,8 @@ public interface PubsubMessageOrBuilder * * * string ordering_key = 5; + * + * @return The orderingKey. */ java.lang.String getOrderingKey(); /** @@ -183,6 +195,8 @@ public interface PubsubMessageOrBuilder * * * string ordering_key = 5; + * + * @return The bytes for orderingKey. */ com.google.protobuf.ByteString getOrderingKeyBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index d0f4ce32e37d..e6cbbf244009 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -435,25 +435,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::P" + "ubSub::V1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable = diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 583ced1baf28..e3d23ffb1569 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -41,6 +41,12 @@ private PullRequest() { subscription_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PullRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private PullRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -125,6 +130,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -146,6 +153,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -172,6 +181,8 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * bool return_immediately = 2; + * + * @return The returnImmediately. */ public boolean getReturnImmediately() { return returnImmediately_; @@ -189,6 +200,8 @@ public boolean getReturnImmediately() { * * * int32 max_messages = 3; + * + * @return The maxMessages. */ public int getMaxMessages() { return maxMessages_; @@ -547,6 +560,8 @@ public Builder mergeFrom( * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -568,6 +583,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -589,6 +606,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * string subscription = 1; + * + * @param value The subscription to set. + * @return This builder for chaining. */ public Builder setSubscription(java.lang.String value) { if (value == null) { @@ -608,6 +628,8 @@ public Builder setSubscription(java.lang.String value) { * * * string subscription = 1; + * + * @return This builder for chaining. */ public Builder clearSubscription() { @@ -624,6 +646,9 @@ public Builder clearSubscription() { * * * string subscription = 1; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -648,6 +673,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * bool return_immediately = 2; + * + * @return The returnImmediately. */ public boolean getReturnImmediately() { return returnImmediately_; @@ -663,6 +690,9 @@ public boolean getReturnImmediately() { * * * bool return_immediately = 2; + * + * @param value The returnImmediately to set. + * @return This builder for chaining. */ public Builder setReturnImmediately(boolean value) { @@ -681,6 +711,8 @@ public Builder setReturnImmediately(boolean value) { * * * bool return_immediately = 2; + * + * @return This builder for chaining. */ public Builder clearReturnImmediately() { @@ -700,6 +732,8 @@ public Builder clearReturnImmediately() { * * * int32 max_messages = 3; + * + * @return The maxMessages. */ public int getMaxMessages() { return maxMessages_; @@ -714,6 +748,9 @@ public int getMaxMessages() { * * * int32 max_messages = 3; + * + * @param value The maxMessages to set. + * @return This builder for chaining. */ public Builder setMaxMessages(int value) { @@ -731,6 +768,8 @@ public Builder setMaxMessages(int value) { * * * int32 max_messages = 3; + * + * @return This builder for chaining. */ public Builder clearMaxMessages() { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 800fd669001d..4792568b2936 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface PullRequestOrBuilder * * * string subscription = 1; + * + * @return The subscription. */ java.lang.String getSubscription(); /** @@ -43,6 +45,8 @@ public interface PullRequestOrBuilder * * * string subscription = 1; + * + * @return The bytes for subscription. */ com.google.protobuf.ByteString getSubscriptionBytes(); @@ -57,6 +61,8 @@ public interface PullRequestOrBuilder * * * bool return_immediately = 2; + * + * @return The returnImmediately. */ boolean getReturnImmediately(); @@ -70,6 +76,8 @@ public interface PullRequestOrBuilder * * * int32 max_messages = 3; + * + * @return The maxMessages. */ int getMaxMessages(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 4c4f2d10533a..103c3477bbf4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -41,6 +41,12 @@ private PullResponse() { receivedMessages_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PullResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 40430f47fc01..84ec768d3b59 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -41,6 +41,12 @@ private PushConfig() { pushEndpoint_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PushConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -74,11 +80,11 @@ private PushConfig( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { attributes_ = com.google.protobuf.MapField.newMapField( AttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry attributes__ = input.readMessage( @@ -165,6 +171,8 @@ public interface OidcTokenOrBuilder * * * string service_account_email = 1; + * + * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** @@ -179,6 +187,8 @@ public interface OidcTokenOrBuilder * * * string service_account_email = 1; + * + * @return The bytes for serviceAccountEmail. */ com.google.protobuf.ByteString getServiceAccountEmailBytes(); @@ -195,6 +205,8 @@ public interface OidcTokenOrBuilder * * * string audience = 2; + * + * @return The audience. */ java.lang.String getAudience(); /** @@ -210,6 +222,8 @@ public interface OidcTokenOrBuilder * * * string audience = 2; + * + * @return The bytes for audience. */ com.google.protobuf.ByteString getAudienceBytes(); } @@ -239,6 +253,12 @@ private OidcToken() { audience_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OidcToken(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -252,7 +272,6 @@ private OidcToken( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -325,6 +344,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string service_account_email = 1; + * + * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; @@ -349,6 +370,8 @@ public java.lang.String getServiceAccountEmail() { * * * string service_account_email = 1; + * + * @return The bytes for serviceAccountEmail. */ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; @@ -377,6 +400,8 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * * * string audience = 2; + * + * @return The audience. */ public java.lang.String getAudience() { java.lang.Object ref = audience_; @@ -402,6 +427,8 @@ public java.lang.String getAudience() { * * * string audience = 2; + * + * @return The bytes for audience. */ public com.google.protobuf.ByteString getAudienceBytes() { java.lang.Object ref = audience_; @@ -766,6 +793,8 @@ public Builder mergeFrom( * * * string service_account_email = 1; + * + * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; @@ -790,6 +819,8 @@ public java.lang.String getServiceAccountEmail() { * * * string service_account_email = 1; + * + * @return The bytes for serviceAccountEmail. */ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; @@ -814,6 +845,9 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * * * string service_account_email = 1; + * + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. */ public Builder setServiceAccountEmail(java.lang.String value) { if (value == null) { @@ -836,6 +870,8 @@ public Builder setServiceAccountEmail(java.lang.String value) { * * * string service_account_email = 1; + * + * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { @@ -855,6 +891,9 @@ public Builder clearServiceAccountEmail() { * * * string service_account_email = 1; + * + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. */ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -881,6 +920,8 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) * * * string audience = 2; + * + * @return The audience. */ public java.lang.String getAudience() { java.lang.Object ref = audience_; @@ -906,6 +947,8 @@ public java.lang.String getAudience() { * * * string audience = 2; + * + * @return The bytes for audience. */ public com.google.protobuf.ByteString getAudienceBytes() { java.lang.Object ref = audience_; @@ -931,6 +974,9 @@ public com.google.protobuf.ByteString getAudienceBytes() { * * * string audience = 2; + * + * @param value The audience to set. + * @return This builder for chaining. */ public Builder setAudience(java.lang.String value) { if (value == null) { @@ -954,6 +1000,8 @@ public Builder setAudience(java.lang.String value) { * * * string audience = 2; + * + * @return This builder for chaining. */ public Builder clearAudience() { @@ -974,6 +1022,9 @@ public Builder clearAudience() { * * * string audience = 2; + * + * @param value The bytes for audience to set. + * @return This builder for chaining. */ public Builder setAudienceBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1038,11 +1089,13 @@ public com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstanceForType() { } } - private int bitField0_; private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - public enum AuthenticationMethodCase implements com.google.protobuf.Internal.EnumLite { + public enum AuthenticationMethodCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { OIDC_TOKEN(3), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; @@ -1050,7 +1103,11 @@ public enum AuthenticationMethodCase implements com.google.protobuf.Internal.Enu private AuthenticationMethodCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static AuthenticationMethodCase valueOf(int value) { return forNumber(value); @@ -1087,6 +1144,8 @@ public AuthenticationMethodCase getAuthenticationMethodCase() { * * * string push_endpoint = 1; + * + * @return The pushEndpoint. */ public java.lang.String getPushEndpoint() { java.lang.Object ref = pushEndpoint_; @@ -1108,6 +1167,8 @@ public java.lang.String getPushEndpoint() { * * * string push_endpoint = 1; + * + * @return The bytes for pushEndpoint. */ public com.google.protobuf.ByteString getPushEndpointBytes() { java.lang.Object ref = pushEndpoint_; @@ -1285,6 +1346,8 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { * * * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * @return Whether the oidcToken field is set. */ public boolean hasOidcToken() { return authenticationMethodCase_ == 3; @@ -1298,6 +1361,8 @@ public boolean hasOidcToken() { * * * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * @return The oidcToken. */ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { if (authenticationMethodCase_ == 3) { @@ -1616,7 +1681,6 @@ public com.google.pubsub.v1.PushConfig build() { public com.google.pubsub.v1.PushConfig buildPartial() { com.google.pubsub.v1.PushConfig result = new com.google.pubsub.v1.PushConfig(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.pushEndpoint_ = pushEndpoint_; result.attributes_ = internalGetAttributes(); result.attributes_.makeImmutable(); @@ -1627,7 +1691,6 @@ public com.google.pubsub.v1.PushConfig buildPartial() { result.authenticationMethod_ = oidcTokenBuilder_.build(); } } - result.bitField0_ = to_bitField0_; result.authenticationMethodCase_ = authenticationMethodCase_; onBuilt(); return result; @@ -1749,6 +1812,8 @@ public Builder clearAuthenticationMethod() { * * * string push_endpoint = 1; + * + * @return The pushEndpoint. */ public java.lang.String getPushEndpoint() { java.lang.Object ref = pushEndpoint_; @@ -1770,6 +1835,8 @@ public java.lang.String getPushEndpoint() { * * * string push_endpoint = 1; + * + * @return The bytes for pushEndpoint. */ public com.google.protobuf.ByteString getPushEndpointBytes() { java.lang.Object ref = pushEndpoint_; @@ -1791,6 +1858,9 @@ public com.google.protobuf.ByteString getPushEndpointBytes() { * * * string push_endpoint = 1; + * + * @param value The pushEndpoint to set. + * @return This builder for chaining. */ public Builder setPushEndpoint(java.lang.String value) { if (value == null) { @@ -1810,6 +1880,8 @@ public Builder setPushEndpoint(java.lang.String value) { * * * string push_endpoint = 1; + * + * @return This builder for chaining. */ public Builder clearPushEndpoint() { @@ -1826,6 +1898,9 @@ public Builder clearPushEndpoint() { * * * string push_endpoint = 1; + * + * @param value The bytes for pushEndpoint to set. + * @return This builder for chaining. */ public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2112,6 +2187,8 @@ public Builder putAllAttributes(java.util.Map * * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * @return Whether the oidcToken field is set. */ public boolean hasOidcToken() { return authenticationMethodCase_ == 3; @@ -2125,6 +2202,8 @@ public boolean hasOidcToken() { * * * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * @return The oidcToken. */ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { if (oidcTokenBuilder_ == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index e541cde821b0..61b8fc37afeb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -32,6 +32,8 @@ public interface PushConfigOrBuilder * * * string push_endpoint = 1; + * + * @return The pushEndpoint. */ java.lang.String getPushEndpoint(); /** @@ -43,6 +45,8 @@ public interface PushConfigOrBuilder * * * string push_endpoint = 1; + * + * @return The bytes for pushEndpoint. */ com.google.protobuf.ByteString getPushEndpointBytes(); @@ -184,6 +188,8 @@ public interface PushConfigOrBuilder * * * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * @return Whether the oidcToken field is set. */ boolean hasOidcToken(); /** @@ -195,6 +201,8 @@ public interface PushConfigOrBuilder * * * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * @return The oidcToken. */ com.google.pubsub.v1.PushConfig.OidcToken getOidcToken(); /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 28ff6bc3cc55..d93d1440deb8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -41,6 +41,12 @@ private ReceivedMessage() { ackId_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReceivedMessage(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private ReceivedMessage( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,6 +141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string ack_id = 1; + * + * @return The ackId. */ public java.lang.String getAckId() { java.lang.Object ref = ackId_; @@ -156,6 +163,8 @@ public java.lang.String getAckId() { * * * string ack_id = 1; + * + * @return The bytes for ackId. */ public com.google.protobuf.ByteString getAckIdBytes() { java.lang.Object ref = ackId_; @@ -179,6 +188,8 @@ public com.google.protobuf.ByteString getAckIdBytes() { * * * .google.pubsub.v1.PubsubMessage message = 2; + * + * @return Whether the message field is set. */ public boolean hasMessage() { return message_ != null; @@ -191,6 +202,8 @@ public boolean hasMessage() { * * * .google.pubsub.v1.PubsubMessage message = 2; + * + * @return The message. */ public com.google.pubsub.v1.PubsubMessage getMessage() { return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; @@ -230,6 +243,8 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * * int32 delivery_attempt = 3; + * + * @return The deliveryAttempt. */ public int getDeliveryAttempt() { return deliveryAttempt_; @@ -600,6 +615,8 @@ public Builder mergeFrom( * * * string ack_id = 1; + * + * @return The ackId. */ public java.lang.String getAckId() { java.lang.Object ref = ackId_; @@ -620,6 +637,8 @@ public java.lang.String getAckId() { * * * string ack_id = 1; + * + * @return The bytes for ackId. */ public com.google.protobuf.ByteString getAckIdBytes() { java.lang.Object ref = ackId_; @@ -640,6 +659,9 @@ public com.google.protobuf.ByteString getAckIdBytes() { * * * string ack_id = 1; + * + * @param value The ackId to set. + * @return This builder for chaining. */ public Builder setAckId(java.lang.String value) { if (value == null) { @@ -658,6 +680,8 @@ public Builder setAckId(java.lang.String value) { * * * string ack_id = 1; + * + * @return This builder for chaining. */ public Builder clearAckId() { @@ -673,6 +697,9 @@ public Builder clearAckId() { * * * string ack_id = 1; + * + * @param value The bytes for ackId to set. + * @return This builder for chaining. */ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -699,6 +726,8 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { * * * .google.pubsub.v1.PubsubMessage message = 2; + * + * @return Whether the message field is set. */ public boolean hasMessage() { return messageBuilder_ != null || message_ != null; @@ -711,6 +740,8 @@ public boolean hasMessage() { * * * .google.pubsub.v1.PubsubMessage message = 2; + * + * @return The message. */ public com.google.pubsub.v1.PubsubMessage getMessage() { if (messageBuilder_ == null) { @@ -887,6 +918,8 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * * int32 delivery_attempt = 3; + * + * @return The deliveryAttempt. */ public int getDeliveryAttempt() { return deliveryAttempt_; @@ -911,6 +944,9 @@ public int getDeliveryAttempt() { * * * int32 delivery_attempt = 3; + * + * @param value The deliveryAttempt to set. + * @return This builder for chaining. */ public Builder setDeliveryAttempt(int value) { @@ -938,6 +974,8 @@ public Builder setDeliveryAttempt(int value) { * * * int32 delivery_attempt = 3; + * + * @return This builder for chaining. */ public Builder clearDeliveryAttempt() { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 5d80fb933966..0ddf85a86bcb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -31,6 +31,8 @@ public interface ReceivedMessageOrBuilder * * * string ack_id = 1; + * + * @return The ackId. */ java.lang.String getAckId(); /** @@ -41,6 +43,8 @@ public interface ReceivedMessageOrBuilder * * * string ack_id = 1; + * + * @return The bytes for ackId. */ com.google.protobuf.ByteString getAckIdBytes(); @@ -52,6 +56,8 @@ public interface ReceivedMessageOrBuilder * * * .google.pubsub.v1.PubsubMessage message = 2; + * + * @return Whether the message field is set. */ boolean hasMessage(); /** @@ -62,6 +68,8 @@ public interface ReceivedMessageOrBuilder * * * .google.pubsub.v1.PubsubMessage message = 2; + * + * @return The message. */ com.google.pubsub.v1.PubsubMessage getMessage(); /** @@ -95,6 +103,8 @@ public interface ReceivedMessageOrBuilder * * * int32 delivery_attempt = 3; + * + * @return The deliveryAttempt. */ int getDeliveryAttempt(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index df7aab0864d5..dd30455563bf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -41,6 +41,12 @@ private SeekRequest() { subscription_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SeekRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private SeekRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -129,7 +134,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int targetCase_ = 0; private java.lang.Object target_; - public enum TargetCase implements com.google.protobuf.Internal.EnumLite { + public enum TargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { TIME(2), SNAPSHOT(3), TARGET_NOT_SET(0); @@ -138,7 +146,11 @@ public enum TargetCase implements com.google.protobuf.Internal.EnumLite { private TargetCase(int value) { this.value = value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static TargetCase valueOf(int value) { return forNumber(value); @@ -176,6 +188,8 @@ public TargetCase getTargetCase() { * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -196,6 +210,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -228,6 +244,8 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * .google.protobuf.Timestamp time = 2; + * + * @return Whether the time field is set. */ public boolean hasTime() { return targetCase_ == 2; @@ -250,6 +268,8 @@ public boolean hasTime() { * * * .google.protobuf.Timestamp time = 2; + * + * @return The time. */ public com.google.protobuf.Timestamp getTime() { if (targetCase_ == 2) { @@ -294,6 +314,8 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * * string snapshot = 3; + * + * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = ""; @@ -321,6 +343,8 @@ public java.lang.String getSnapshot() { * * * string snapshot = 3; + * + * @return The bytes for snapshot. */ public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = ""; @@ -743,6 +767,8 @@ public Builder clearTarget() { * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -763,6 +789,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -783,6 +811,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * string subscription = 1; + * + * @param value The subscription to set. + * @return This builder for chaining. */ public Builder setSubscription(java.lang.String value) { if (value == null) { @@ -801,6 +832,8 @@ public Builder setSubscription(java.lang.String value) { * * * string subscription = 1; + * + * @return This builder for chaining. */ public Builder clearSubscription() { @@ -816,6 +849,9 @@ public Builder clearSubscription() { * * * string subscription = 1; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -851,6 +887,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp time = 2; + * + * @return Whether the time field is set. */ public boolean hasTime() { return targetCase_ == 2; @@ -873,6 +911,8 @@ public boolean hasTime() { * * * .google.protobuf.Timestamp time = 2; + * + * @return The time. */ public com.google.protobuf.Timestamp getTime() { if (timeBuilder_ == null) { @@ -1125,6 +1165,8 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * * string snapshot = 3; + * + * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = ""; @@ -1152,6 +1194,8 @@ public java.lang.String getSnapshot() { * * * string snapshot = 3; + * + * @return The bytes for snapshot. */ public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = ""; @@ -1179,6 +1223,9 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * * string snapshot = 3; + * + * @param value The snapshot to set. + * @return This builder for chaining. */ public Builder setSnapshot(java.lang.String value) { if (value == null) { @@ -1199,6 +1246,8 @@ public Builder setSnapshot(java.lang.String value) { * * * string snapshot = 3; + * + * @return This builder for chaining. */ public Builder clearSnapshot() { if (targetCase_ == 3) { @@ -1218,6 +1267,9 @@ public Builder clearSnapshot() { * * * string snapshot = 3; + * + * @param value The bytes for snapshot to set. + * @return This builder for chaining. */ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 8575868ea548..d489a80fe521 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -31,6 +31,8 @@ public interface SeekRequestOrBuilder * * * string subscription = 1; + * + * @return The subscription. */ java.lang.String getSubscription(); /** @@ -41,6 +43,8 @@ public interface SeekRequestOrBuilder * * * string subscription = 1; + * + * @return The bytes for subscription. */ com.google.protobuf.ByteString getSubscriptionBytes(); @@ -62,6 +66,8 @@ public interface SeekRequestOrBuilder * * * .google.protobuf.Timestamp time = 2; + * + * @return Whether the time field is set. */ boolean hasTime(); /** @@ -82,6 +88,8 @@ public interface SeekRequestOrBuilder * * * .google.protobuf.Timestamp time = 2; + * + * @return The time. */ com.google.protobuf.Timestamp getTime(); /** @@ -115,6 +123,8 @@ public interface SeekRequestOrBuilder * * * string snapshot = 3; + * + * @return The snapshot. */ java.lang.String getSnapshot(); /** @@ -127,6 +137,8 @@ public interface SeekRequestOrBuilder * * * string snapshot = 3; + * + * @return The bytes for snapshot. */ com.google.protobuf.ByteString getSnapshotBytes(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 86dedd93c086..641896e2c10e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -39,6 +39,12 @@ private SeekResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) private SeekResponse() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SeekResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index bc70b6f75900..615501ce9a97 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -47,6 +47,12 @@ private Snapshot() { topic_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Snapshot(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -102,10 +108,10 @@ private Snapshot( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -156,7 +162,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -167,6 +172,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -187,6 +194,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -210,6 +219,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string topic = 2; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -230,6 +241,8 @@ public java.lang.String getTopic() { * * * string topic = 2; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -262,6 +275,8 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTime_ != null; @@ -283,6 +298,8 @@ public boolean hasExpireTime() { * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; @@ -708,7 +725,6 @@ public com.google.pubsub.v1.Snapshot build() { public com.google.pubsub.v1.Snapshot buildPartial() { com.google.pubsub.v1.Snapshot result = new com.google.pubsub.v1.Snapshot(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; result.topic_ = topic_; if (expireTimeBuilder_ == null) { @@ -718,7 +734,6 @@ public com.google.pubsub.v1.Snapshot buildPartial() { } result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -820,6 +835,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -840,6 +857,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -860,6 +879,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -878,6 +900,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -893,6 +917,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -914,6 +941,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * string topic = 2; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -934,6 +963,8 @@ public java.lang.String getTopic() { * * * string topic = 2; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -954,6 +985,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * string topic = 2; + * + * @param value The topic to set. + * @return This builder for chaining. */ public Builder setTopic(java.lang.String value) { if (value == null) { @@ -972,6 +1006,8 @@ public Builder setTopic(java.lang.String value) { * * * string topic = 2; + * + * @return This builder for chaining. */ public Builder clearTopic() { @@ -987,6 +1023,9 @@ public Builder clearTopic() { * * * string topic = 2; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. */ public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1022,6 +1061,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; @@ -1043,6 +1084,8 @@ public boolean hasExpireTime() { * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 099add24166c..7da8ae7b0761 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -31,6 +31,8 @@ public interface SnapshotOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -41,6 +43,8 @@ public interface SnapshotOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -52,6 +56,8 @@ public interface SnapshotOrBuilder * * * string topic = 2; + * + * @return The topic. */ java.lang.String getTopic(); /** @@ -62,6 +68,8 @@ public interface SnapshotOrBuilder * * * string topic = 2; + * + * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); @@ -82,6 +90,8 @@ public interface SnapshotOrBuilder * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** @@ -101,6 +111,8 @@ public interface SnapshotOrBuilder * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 89b57ac717d1..29d7669633bb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -46,6 +46,12 @@ private StreamingPullRequest() { modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingPullRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -80,18 +86,18 @@ private StreamingPullRequest( case 18: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } ackIds_.add(s); break; } case 24: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { modifyDeadlineSeconds_ = newIntList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } modifyDeadlineSeconds_.addInt(input.readInt32()); break; @@ -100,9 +106,9 @@ private StreamingPullRequest( { int length = input.readRawVarint32(); int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) { + if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { modifyDeadlineSeconds_ = newIntList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { modifyDeadlineSeconds_.addInt(input.readInt32()); @@ -113,9 +119,9 @@ private StreamingPullRequest( case 34: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000004; } modifyDeadlineAckIds_.add(s); break; @@ -139,13 +145,13 @@ private StreamingPullRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { modifyDeadlineSeconds_.makeImmutable(); // C } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { modifyDeadlineAckIds_ = modifyDeadlineAckIds_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -168,7 +174,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.StreamingPullRequest.Builder.class); } - private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object subscription_; /** @@ -182,6 +187,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -205,6 +212,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -232,6 +241,8 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * repeated string ack_ids = 2; + * + * @return A list containing the ackIds. */ public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; @@ -248,6 +259,8 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * * repeated string ack_ids = 2; + * + * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); @@ -264,6 +277,9 @@ public int getAckIdsCount() { * * * repeated string ack_ids = 2; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. */ public java.lang.String getAckIds(int index) { return ackIds_.get(index); @@ -280,6 +296,9 @@ public java.lang.String getAckIds(int index) { * * * repeated string ack_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. */ public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); @@ -305,6 +324,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * * repeated int32 modify_deadline_seconds = 3; + * + * @return A list containing the modifyDeadlineSeconds. */ public java.util.List getModifyDeadlineSecondsList() { return modifyDeadlineSeconds_; @@ -327,6 +348,8 @@ public java.util.List getModifyDeadlineSecondsList() { * * * repeated int32 modify_deadline_seconds = 3; + * + * @return The count of modifyDeadlineSeconds. */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); @@ -349,6 +372,9 @@ public int getModifyDeadlineSecondsCount() { * * * repeated int32 modify_deadline_seconds = 3; + * + * @param index The index of the element to return. + * @return The modifyDeadlineSeconds at the given index. */ public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.getInt(index); @@ -370,6 +396,8 @@ public int getModifyDeadlineSeconds(int index) { * * * repeated string modify_deadline_ack_ids = 4; + * + * @return A list containing the modifyDeadlineAckIds. */ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_; @@ -386,6 +414,8 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { * * * repeated string modify_deadline_ack_ids = 4; + * + * @return The count of modifyDeadlineAckIds. */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); @@ -402,6 +432,9 @@ public int getModifyDeadlineAckIdsCount() { * * * repeated string modify_deadline_ack_ids = 4; + * + * @param index The index of the element to return. + * @return The modifyDeadlineAckIds at the given index. */ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); @@ -418,6 +451,9 @@ public java.lang.String getModifyDeadlineAckIds(int index) { * * * repeated string modify_deadline_ack_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the modifyDeadlineAckIds at the given index. */ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { return modifyDeadlineAckIds_.getByteString(index); @@ -436,6 +472,8 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { * * * int32 stream_ack_deadline_seconds = 5; + * + * @return The streamAckDeadlineSeconds. */ public int getStreamAckDeadlineSeconds() { return streamAckDeadlineSeconds_; @@ -719,11 +757,11 @@ public Builder clear() { subscription_ = ""; ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); modifyDeadlineSeconds_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); streamAckDeadlineSeconds_ = 0; return this; @@ -754,25 +792,23 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() { com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.subscription_ = subscription_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { ackIds_ = ackIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.ackIds_ = ackIds_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { modifyDeadlineSeconds_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } result.modifyDeadlineSeconds_ = modifyDeadlineSeconds_; - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { modifyDeadlineAckIds_ = modifyDeadlineAckIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } result.modifyDeadlineAckIds_ = modifyDeadlineAckIds_; result.streamAckDeadlineSeconds_ = streamAckDeadlineSeconds_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -829,7 +865,7 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (!other.ackIds_.isEmpty()) { if (ackIds_.isEmpty()) { ackIds_ = other.ackIds_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAckIdsIsMutable(); ackIds_.addAll(other.ackIds_); @@ -839,7 +875,7 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (!other.modifyDeadlineSeconds_.isEmpty()) { if (modifyDeadlineSeconds_.isEmpty()) { modifyDeadlineSeconds_ = other.modifyDeadlineSeconds_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.addAll(other.modifyDeadlineSeconds_); @@ -849,7 +885,7 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (!other.modifyDeadlineAckIds_.isEmpty()) { if (modifyDeadlineAckIds_.isEmpty()) { modifyDeadlineAckIds_ = other.modifyDeadlineAckIds_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.addAll(other.modifyDeadlineAckIds_); @@ -902,6 +938,8 @@ public Builder mergeFrom( * * * string subscription = 1; + * + * @return The subscription. */ public java.lang.String getSubscription() { java.lang.Object ref = subscription_; @@ -925,6 +963,8 @@ public java.lang.String getSubscription() { * * * string subscription = 1; + * + * @return The bytes for subscription. */ public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; @@ -948,6 +988,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * string subscription = 1; + * + * @param value The subscription to set. + * @return This builder for chaining. */ public Builder setSubscription(java.lang.String value) { if (value == null) { @@ -969,6 +1012,8 @@ public Builder setSubscription(java.lang.String value) { * * * string subscription = 1; + * + * @return This builder for chaining. */ public Builder clearSubscription() { @@ -987,6 +1032,9 @@ public Builder clearSubscription() { * * * string subscription = 1; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. */ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1003,9 +1051,9 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAckIdsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -1020,6 +1068,8 @@ private void ensureAckIdsIsMutable() { * * * repeated string ack_ids = 2; + * + * @return A list containing the ackIds. */ public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_.getUnmodifiableView(); @@ -1036,6 +1086,8 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * * repeated string ack_ids = 2; + * + * @return The count of ackIds. */ public int getAckIdsCount() { return ackIds_.size(); @@ -1052,6 +1104,9 @@ public int getAckIdsCount() { * * * repeated string ack_ids = 2; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. */ public java.lang.String getAckIds(int index) { return ackIds_.get(index); @@ -1068,6 +1123,9 @@ public java.lang.String getAckIds(int index) { * * * repeated string ack_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. */ public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); @@ -1084,6 +1142,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * * repeated string ack_ids = 2; + * + * @param index The index to set the value at. + * @param value The ackIds to set. + * @return This builder for chaining. */ public Builder setAckIds(int index, java.lang.String value) { if (value == null) { @@ -1106,6 +1168,9 @@ public Builder setAckIds(int index, java.lang.String value) { * * * repeated string ack_ids = 2; + * + * @param value The ackIds to add. + * @return This builder for chaining. */ public Builder addAckIds(java.lang.String value) { if (value == null) { @@ -1128,6 +1193,9 @@ public Builder addAckIds(java.lang.String value) { * * * repeated string ack_ids = 2; + * + * @param values The ackIds to add. + * @return This builder for chaining. */ public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); @@ -1147,10 +1215,12 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * * repeated string ack_ids = 2; + * + * @return This builder for chaining. */ public Builder clearAckIds() { ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1166,6 +1236,9 @@ public Builder clearAckIds() { * * * repeated string ack_ids = 2; + * + * @param value The bytes of the ackIds to add. + * @return This builder for chaining. */ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1181,9 +1254,9 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); private void ensureModifyDeadlineSecondsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { modifyDeadlineSeconds_ = mutableCopy(modifyDeadlineSeconds_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; } } /** @@ -1204,9 +1277,11 @@ private void ensureModifyDeadlineSecondsIsMutable() { * * * repeated int32 modify_deadline_seconds = 3; + * + * @return A list containing the modifyDeadlineSeconds. */ public java.util.List getModifyDeadlineSecondsList() { - return ((bitField0_ & 0x00000004) != 0) + return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) : modifyDeadlineSeconds_; } @@ -1228,6 +1303,8 @@ public java.util.List getModifyDeadlineSecondsList() { * * * repeated int32 modify_deadline_seconds = 3; + * + * @return The count of modifyDeadlineSeconds. */ public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); @@ -1250,6 +1327,9 @@ public int getModifyDeadlineSecondsCount() { * * * repeated int32 modify_deadline_seconds = 3; + * + * @param index The index of the element to return. + * @return The modifyDeadlineSeconds at the given index. */ public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.getInt(index); @@ -1272,6 +1352,10 @@ public int getModifyDeadlineSeconds(int index) { * * * repeated int32 modify_deadline_seconds = 3; + * + * @param index The index to set the value at. + * @param value The modifyDeadlineSeconds to set. + * @return This builder for chaining. */ public Builder setModifyDeadlineSeconds(int index, int value) { ensureModifyDeadlineSecondsIsMutable(); @@ -1297,6 +1381,9 @@ public Builder setModifyDeadlineSeconds(int index, int value) { * * * repeated int32 modify_deadline_seconds = 3; + * + * @param value The modifyDeadlineSeconds to add. + * @return This builder for chaining. */ public Builder addModifyDeadlineSeconds(int value) { ensureModifyDeadlineSecondsIsMutable(); @@ -1322,6 +1409,9 @@ public Builder addModifyDeadlineSeconds(int value) { * * * repeated int32 modify_deadline_seconds = 3; + * + * @param values The modifyDeadlineSeconds to add. + * @return This builder for chaining. */ public Builder addAllModifyDeadlineSeconds( java.lang.Iterable values) { @@ -1348,10 +1438,12 @@ public Builder addAllModifyDeadlineSeconds( * * * repeated int32 modify_deadline_seconds = 3; + * + * @return This builder for chaining. */ public Builder clearModifyDeadlineSeconds() { modifyDeadlineSeconds_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1360,9 +1452,9 @@ public Builder clearModifyDeadlineSeconds() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureModifyDeadlineAckIdsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(modifyDeadlineAckIds_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; } } /** @@ -1377,6 +1469,8 @@ private void ensureModifyDeadlineAckIdsIsMutable() { * * * repeated string modify_deadline_ack_ids = 4; + * + * @return A list containing the modifyDeadlineAckIds. */ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_.getUnmodifiableView(); @@ -1393,6 +1487,8 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { * * * repeated string modify_deadline_ack_ids = 4; + * + * @return The count of modifyDeadlineAckIds. */ public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); @@ -1409,6 +1505,9 @@ public int getModifyDeadlineAckIdsCount() { * * * repeated string modify_deadline_ack_ids = 4; + * + * @param index The index of the element to return. + * @return The modifyDeadlineAckIds at the given index. */ public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); @@ -1425,6 +1524,9 @@ public java.lang.String getModifyDeadlineAckIds(int index) { * * * repeated string modify_deadline_ack_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the modifyDeadlineAckIds at the given index. */ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { return modifyDeadlineAckIds_.getByteString(index); @@ -1441,6 +1543,10 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { * * * repeated string modify_deadline_ack_ids = 4; + * + * @param index The index to set the value at. + * @param value The modifyDeadlineAckIds to set. + * @return This builder for chaining. */ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) { if (value == null) { @@ -1463,6 +1569,9 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) { * * * repeated string modify_deadline_ack_ids = 4; + * + * @param value The modifyDeadlineAckIds to add. + * @return This builder for chaining. */ public Builder addModifyDeadlineAckIds(java.lang.String value) { if (value == null) { @@ -1485,6 +1594,9 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) { * * * repeated string modify_deadline_ack_ids = 4; + * + * @param values The modifyDeadlineAckIds to add. + * @return This builder for chaining. */ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable values) { ensureModifyDeadlineAckIdsIsMutable(); @@ -1504,10 +1616,12 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v * * * repeated string modify_deadline_ack_ids = 4; + * + * @return This builder for chaining. */ public Builder clearModifyDeadlineAckIds() { modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1523,6 +1637,9 @@ public Builder clearModifyDeadlineAckIds() { * * * repeated string modify_deadline_ack_ids = 4; + * + * @param value The bytes of the modifyDeadlineAckIds to add. + * @return This builder for chaining. */ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1547,6 +1664,8 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value * * * int32 stream_ack_deadline_seconds = 5; + * + * @return The streamAckDeadlineSeconds. */ public int getStreamAckDeadlineSeconds() { return streamAckDeadlineSeconds_; @@ -1562,6 +1681,9 @@ public int getStreamAckDeadlineSeconds() { * * * int32 stream_ack_deadline_seconds = 5; + * + * @param value The streamAckDeadlineSeconds to set. + * @return This builder for chaining. */ public Builder setStreamAckDeadlineSeconds(int value) { @@ -1580,6 +1702,8 @@ public Builder setStreamAckDeadlineSeconds(int value) { * * * int32 stream_ack_deadline_seconds = 5; + * + * @return This builder for chaining. */ public Builder clearStreamAckDeadlineSeconds() { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 506a3d351e05..0f723d0e323f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -34,6 +34,8 @@ public interface StreamingPullRequestOrBuilder * * * string subscription = 1; + * + * @return The subscription. */ java.lang.String getSubscription(); /** @@ -47,6 +49,8 @@ public interface StreamingPullRequestOrBuilder * * * string subscription = 1; + * + * @return The bytes for subscription. */ com.google.protobuf.ByteString getSubscriptionBytes(); @@ -62,6 +66,8 @@ public interface StreamingPullRequestOrBuilder * * * repeated string ack_ids = 2; + * + * @return A list containing the ackIds. */ java.util.List getAckIdsList(); /** @@ -76,6 +82,8 @@ public interface StreamingPullRequestOrBuilder * * * repeated string ack_ids = 2; + * + * @return The count of ackIds. */ int getAckIdsCount(); /** @@ -90,6 +98,9 @@ public interface StreamingPullRequestOrBuilder * * * repeated string ack_ids = 2; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); /** @@ -104,6 +115,9 @@ public interface StreamingPullRequestOrBuilder * * * repeated string ack_ids = 2; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. */ com.google.protobuf.ByteString getAckIdsBytes(int index); @@ -125,6 +139,8 @@ public interface StreamingPullRequestOrBuilder * * * repeated int32 modify_deadline_seconds = 3; + * + * @return A list containing the modifyDeadlineSeconds. */ java.util.List getModifyDeadlineSecondsList(); /** @@ -145,6 +161,8 @@ public interface StreamingPullRequestOrBuilder * * * repeated int32 modify_deadline_seconds = 3; + * + * @return The count of modifyDeadlineSeconds. */ int getModifyDeadlineSecondsCount(); /** @@ -165,6 +183,9 @@ public interface StreamingPullRequestOrBuilder * * * repeated int32 modify_deadline_seconds = 3; + * + * @param index The index of the element to return. + * @return The modifyDeadlineSeconds at the given index. */ int getModifyDeadlineSeconds(int index); @@ -180,6 +201,8 @@ public interface StreamingPullRequestOrBuilder * * * repeated string modify_deadline_ack_ids = 4; + * + * @return A list containing the modifyDeadlineAckIds. */ java.util.List getModifyDeadlineAckIdsList(); /** @@ -194,6 +217,8 @@ public interface StreamingPullRequestOrBuilder * * * repeated string modify_deadline_ack_ids = 4; + * + * @return The count of modifyDeadlineAckIds. */ int getModifyDeadlineAckIdsCount(); /** @@ -208,6 +233,9 @@ public interface StreamingPullRequestOrBuilder * * * repeated string modify_deadline_ack_ids = 4; + * + * @param index The index of the element to return. + * @return The modifyDeadlineAckIds at the given index. */ java.lang.String getModifyDeadlineAckIds(int index); /** @@ -222,6 +250,9 @@ public interface StreamingPullRequestOrBuilder * * * repeated string modify_deadline_ack_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the modifyDeadlineAckIds at the given index. */ com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index); @@ -236,6 +267,8 @@ public interface StreamingPullRequestOrBuilder * * * int32 stream_ack_deadline_seconds = 5; + * + * @return The streamAckDeadlineSeconds. */ int getStreamAckDeadlineSeconds(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 1e2e98d27f11..e4ae584480f2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -42,6 +42,12 @@ private StreamingPullResponse() { receivedMessages_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamingPullResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index c1b59be76b64..aa66421a93cc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -42,6 +42,12 @@ private Subscription() { topic_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Subscription(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -122,10 +128,10 @@ private Subscription( } case 74: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -215,7 +221,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.Subscription.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -231,6 +236,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -256,6 +263,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -282,6 +291,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string topic = 2; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -305,6 +316,8 @@ public java.lang.String getTopic() { * * * string topic = 2; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -330,6 +343,8 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * .google.pubsub.v1.PushConfig push_config = 4; + * + * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return pushConfig_ != null; @@ -344,6 +359,8 @@ public boolean hasPushConfig() { * * * .google.pubsub.v1.PushConfig push_config = 4; + * + * @return The pushConfig. */ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; @@ -389,6 +406,8 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * * int32 ack_deadline_seconds = 5; + * + * @return The ackDeadlineSeconds. */ public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; @@ -410,6 +429,8 @@ public int getAckDeadlineSeconds() { * * * bool retain_acked_messages = 7; + * + * @return The retainAckedMessages. */ public boolean getRetainAckedMessages() { return retainAckedMessages_; @@ -430,6 +451,8 @@ public boolean getRetainAckedMessages() { * * * .google.protobuf.Duration message_retention_duration = 8; + * + * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { return messageRetentionDuration_ != null; @@ -447,6 +470,8 @@ public boolean hasMessageRetentionDuration() { * * * .google.protobuf.Duration message_retention_duration = 8; + * + * @return The messageRetentionDuration. */ public com.google.protobuf.Duration getMessageRetentionDuration() { return messageRetentionDuration_ == null @@ -584,6 +609,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * * bool enable_message_ordering = 10; + * + * @return The enableMessageOrdering. */ public boolean getEnableMessageOrdering() { return enableMessageOrdering_; @@ -604,6 +631,8 @@ public boolean getEnableMessageOrdering() { * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * @return Whether the expirationPolicy field is set. */ public boolean hasExpirationPolicy() { return expirationPolicy_ != null; @@ -621,6 +650,8 @@ public boolean hasExpirationPolicy() { * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * @return The expirationPolicy. */ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { return expirationPolicy_ == null @@ -664,6 +695,8 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * @return Whether the deadLetterPolicy field is set. */ public boolean hasDeadLetterPolicy() { return deadLetterPolicy_ != null; @@ -685,6 +718,8 @@ public boolean hasDeadLetterPolicy() { * * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * @return The deadLetterPolicy. */ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { return deadLetterPolicy_ == null @@ -1108,7 +1143,6 @@ public com.google.pubsub.v1.Subscription build() { public com.google.pubsub.v1.Subscription buildPartial() { com.google.pubsub.v1.Subscription result = new com.google.pubsub.v1.Subscription(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; result.topic_ = topic_; if (pushConfigBuilder_ == null) { @@ -1136,7 +1170,6 @@ public com.google.pubsub.v1.Subscription buildPartial() { } else { result.deadLetterPolicy_ = deadLetterPolicyBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1261,6 +1294,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1286,6 +1321,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1311,6 +1348,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1334,6 +1374,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1354,6 +1396,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1378,6 +1423,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * string topic = 2; + * + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -1401,6 +1448,8 @@ public java.lang.String getTopic() { * * * string topic = 2; + * + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; @@ -1424,6 +1473,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * * * string topic = 2; + * + * @param value The topic to set. + * @return This builder for chaining. */ public Builder setTopic(java.lang.String value) { if (value == null) { @@ -1445,6 +1497,8 @@ public Builder setTopic(java.lang.String value) { * * * string topic = 2; + * + * @return This builder for chaining. */ public Builder clearTopic() { @@ -1463,6 +1517,9 @@ public Builder clearTopic() { * * * string topic = 2; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. */ public Builder setTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1491,6 +1548,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * * .google.pubsub.v1.PushConfig push_config = 4; + * + * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { return pushConfigBuilder_ != null || pushConfig_ != null; @@ -1505,6 +1564,8 @@ public boolean hasPushConfig() { * * * .google.pubsub.v1.PushConfig push_config = 4; + * + * @return The pushConfig. */ public com.google.pubsub.v1.PushConfig getPushConfig() { if (pushConfigBuilder_ == null) { @@ -1699,6 +1760,8 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * * int32 ack_deadline_seconds = 5; + * + * @return The ackDeadlineSeconds. */ public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; @@ -1727,6 +1790,9 @@ public int getAckDeadlineSeconds() { * * * int32 ack_deadline_seconds = 5; + * + * @param value The ackDeadlineSeconds to set. + * @return This builder for chaining. */ public Builder setAckDeadlineSeconds(int value) { @@ -1758,6 +1824,8 @@ public Builder setAckDeadlineSeconds(int value) { * * * int32 ack_deadline_seconds = 5; + * + * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { @@ -1781,6 +1849,8 @@ public Builder clearAckDeadlineSeconds() { * * * bool retain_acked_messages = 7; + * + * @return The retainAckedMessages. */ public boolean getRetainAckedMessages() { return retainAckedMessages_; @@ -1799,6 +1869,9 @@ public boolean getRetainAckedMessages() { * * * bool retain_acked_messages = 7; + * + * @param value The retainAckedMessages to set. + * @return This builder for chaining. */ public Builder setRetainAckedMessages(boolean value) { @@ -1820,6 +1893,8 @@ public Builder setRetainAckedMessages(boolean value) { * * * bool retain_acked_messages = 7; + * + * @return This builder for chaining. */ public Builder clearRetainAckedMessages() { @@ -1847,6 +1922,8 @@ public Builder clearRetainAckedMessages() { * * * .google.protobuf.Duration message_retention_duration = 8; + * + * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; @@ -1864,6 +1941,8 @@ public boolean hasMessageRetentionDuration() { * * * .google.protobuf.Duration message_retention_duration = 8; + * + * @return The messageRetentionDuration. */ public com.google.protobuf.Duration getMessageRetentionDuration() { if (messageRetentionDurationBuilder_ == null) { @@ -2229,6 +2308,8 @@ public Builder putAllLabels(java.util.Map va * * * bool enable_message_ordering = 10; + * + * @return The enableMessageOrdering. */ public boolean getEnableMessageOrdering() { return enableMessageOrdering_; @@ -2247,6 +2328,9 @@ public boolean getEnableMessageOrdering() { * * * bool enable_message_ordering = 10; + * + * @param value The enableMessageOrdering to set. + * @return This builder for chaining. */ public Builder setEnableMessageOrdering(boolean value) { @@ -2268,6 +2352,8 @@ public Builder setEnableMessageOrdering(boolean value) { * * * bool enable_message_ordering = 10; + * + * @return This builder for chaining. */ public Builder clearEnableMessageOrdering() { @@ -2295,6 +2381,8 @@ public Builder clearEnableMessageOrdering() { * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * @return Whether the expirationPolicy field is set. */ public boolean hasExpirationPolicy() { return expirationPolicyBuilder_ != null || expirationPolicy_ != null; @@ -2312,6 +2400,8 @@ public boolean hasExpirationPolicy() { * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * @return The expirationPolicy. */ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { if (expirationPolicyBuilder_ == null) { @@ -2526,6 +2616,8 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * @return Whether the deadLetterPolicy field is set. */ public boolean hasDeadLetterPolicy() { return deadLetterPolicyBuilder_ != null || deadLetterPolicy_ != null; @@ -2547,6 +2639,8 @@ public boolean hasDeadLetterPolicy() { * * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * @return The deadLetterPolicy. */ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { if (deadLetterPolicyBuilder_ == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 09f1b5f79256..e7203d0d9925 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -36,6 +36,8 @@ public interface SubscriptionOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -51,6 +53,8 @@ public interface SubscriptionOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -65,6 +69,8 @@ public interface SubscriptionOrBuilder * * * string topic = 2; + * + * @return The topic. */ java.lang.String getTopic(); /** @@ -78,6 +84,8 @@ public interface SubscriptionOrBuilder * * * string topic = 2; + * + * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); @@ -91,6 +99,8 @@ public interface SubscriptionOrBuilder * * * .google.pubsub.v1.PushConfig push_config = 4; + * + * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); /** @@ -103,6 +113,8 @@ public interface SubscriptionOrBuilder * * * .google.pubsub.v1.PushConfig push_config = 4; + * + * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); /** @@ -142,6 +154,8 @@ public interface SubscriptionOrBuilder * * * int32 ack_deadline_seconds = 5; + * + * @return The ackDeadlineSeconds. */ int getAckDeadlineSeconds(); @@ -159,6 +173,8 @@ public interface SubscriptionOrBuilder * * * bool retain_acked_messages = 7; + * + * @return The retainAckedMessages. */ boolean getRetainAckedMessages(); @@ -175,6 +191,8 @@ public interface SubscriptionOrBuilder * * * .google.protobuf.Duration message_retention_duration = 8; + * + * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); /** @@ -190,6 +208,8 @@ public interface SubscriptionOrBuilder * * * .google.protobuf.Duration message_retention_duration = 8; + * + * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); /** @@ -281,6 +301,8 @@ public interface SubscriptionOrBuilder * * * bool enable_message_ordering = 10; + * + * @return The enableMessageOrdering. */ boolean getEnableMessageOrdering(); @@ -297,6 +319,8 @@ public interface SubscriptionOrBuilder * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * @return Whether the expirationPolicy field is set. */ boolean hasExpirationPolicy(); /** @@ -312,6 +336,8 @@ public interface SubscriptionOrBuilder * * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * @return The expirationPolicy. */ com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy(); /** @@ -347,6 +373,8 @@ public interface SubscriptionOrBuilder * * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * @return Whether the deadLetterPolicy field is set. */ boolean hasDeadLetterPolicy(); /** @@ -366,6 +394,8 @@ public interface SubscriptionOrBuilder * * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * @return The deadLetterPolicy. */ com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy(); /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index f5423f42f1f9..014dcd27c30c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -42,6 +42,12 @@ private Topic() { kmsKeyName_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Topic(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -75,10 +81,10 @@ private Topic( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -152,7 +158,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -168,6 +173,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -193,6 +200,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -315,6 +324,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * @return Whether the messageStoragePolicy field is set. */ public boolean hasMessageStoragePolicy() { return messageStoragePolicy_ != null; @@ -329,6 +340,8 @@ public boolean hasMessageStoragePolicy() { * * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * @return The messageStoragePolicy. */ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { return messageStoragePolicy_ == null @@ -362,6 +375,8 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * * * string kms_key_name = 5; + * + * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; @@ -384,6 +399,8 @@ public java.lang.String getKmsKeyName() { * * * string kms_key_name = 5; + * + * @return The bytes for kmsKeyName. */ public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; @@ -695,7 +712,6 @@ public com.google.pubsub.v1.Topic build() { public com.google.pubsub.v1.Topic buildPartial() { com.google.pubsub.v1.Topic result = new com.google.pubsub.v1.Topic(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); @@ -705,7 +721,6 @@ public com.google.pubsub.v1.Topic buildPartial() { result.messageStoragePolicy_ = messageStoragePolicyBuilder_.build(); } result.kmsKeyName_ = kmsKeyName_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -812,6 +827,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -837,6 +854,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -862,6 +881,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -885,6 +907,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -905,6 +929,9 @@ public Builder clearName() { * * * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1092,6 +1119,8 @@ public Builder putAllLabels(java.util.Map va * * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * @return Whether the messageStoragePolicy field is set. */ public boolean hasMessageStoragePolicy() { return messageStoragePolicyBuilder_ != null || messageStoragePolicy_ != null; @@ -1106,6 +1135,8 @@ public boolean hasMessageStoragePolicy() { * * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * @return The messageStoragePolicy. */ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { if (messageStoragePolicyBuilder_ == null) { @@ -1287,6 +1318,8 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * * * string kms_key_name = 5; + * + * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; @@ -1309,6 +1342,8 @@ public java.lang.String getKmsKeyName() { * * * string kms_key_name = 5; + * + * @return The bytes for kmsKeyName. */ public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; @@ -1331,6 +1366,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * * * string kms_key_name = 5; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. */ public Builder setKmsKeyName(java.lang.String value) { if (value == null) { @@ -1351,6 +1389,8 @@ public Builder setKmsKeyName(java.lang.String value) { * * * string kms_key_name = 5; + * + * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1368,6 +1408,9 @@ public Builder clearKmsKeyName() { * * * string kms_key_name = 5; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. */ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 4a3e0573dc81..7e8edb26111c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -18,7 +18,7 @@ import com.google.api.resourcenames.ResourceName; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") public abstract class TopicName implements ResourceName { protected TopicName() {} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java index 9452d22c34cd..f983032bb439 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java @@ -16,8 +16,13 @@ package com.google.pubsub.v1; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class TopicNames { private TopicNames() {} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 460f441e1fc7..ca36dc226de4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -36,6 +36,8 @@ public interface TopicOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -51,6 +53,8 @@ public interface TopicOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -123,6 +127,8 @@ public interface TopicOrBuilder * * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * @return Whether the messageStoragePolicy field is set. */ boolean hasMessageStoragePolicy(); /** @@ -135,6 +141,8 @@ public interface TopicOrBuilder * * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * @return The messageStoragePolicy. */ com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy(); /** @@ -160,6 +168,8 @@ public interface TopicOrBuilder * * * string kms_key_name = 5; + * + * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** @@ -172,6 +182,8 @@ public interface TopicOrBuilder * * * string kms_key_name = 5; + * + * @return The bytes for kmsKeyName. */ com.google.protobuf.ByteString getKmsKeyNameBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java index 358561276f13..77cacb08c484 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java @@ -23,8 +23,13 @@ import java.util.List; import java.util.Map; -// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * AUTO-GENERATED DOCUMENTATION AND CLASS + * + * @deprecated This resource name class will be removed in the next major version. + */ @javax.annotation.Generated("by GAPIC protoc plugin") +@Deprecated public class UntypedTopicName extends TopicName { private final String rawValue; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 271ef96db4af..07d43bdc8dda 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -39,6 +39,12 @@ private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder private UpdateSnapshotRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSnapshotRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateSnapshotRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -137,6 +142,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.pubsub.v1.Snapshot snapshot = 1; + * + * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return snapshot_ != null; @@ -149,6 +156,8 @@ public boolean hasSnapshot() { * * * .google.pubsub.v1.Snapshot snapshot = 1; + * + * @return The snapshot. */ public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; @@ -177,6 +186,8 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -190,6 +201,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -578,6 +591,8 @@ public Builder mergeFrom( * * * .google.pubsub.v1.Snapshot snapshot = 1; + * + * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { return snapshotBuilder_ != null || snapshot_ != null; @@ -590,6 +605,8 @@ public boolean hasSnapshot() { * * * .google.pubsub.v1.Snapshot snapshot = 1; + * + * @return The snapshot. */ public com.google.pubsub.v1.Snapshot getSnapshot() { if (snapshotBuilder_ == null) { @@ -754,6 +771,8 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -767,6 +786,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 0a9819611421..a4a2fe03239c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -31,6 +31,8 @@ public interface UpdateSnapshotRequestOrBuilder * * * .google.pubsub.v1.Snapshot snapshot = 1; + * + * @return Whether the snapshot field is set. */ boolean hasSnapshot(); /** @@ -41,6 +43,8 @@ public interface UpdateSnapshotRequestOrBuilder * * * .google.pubsub.v1.Snapshot snapshot = 1; + * + * @return The snapshot. */ com.google.pubsub.v1.Snapshot getSnapshot(); /** @@ -63,6 +67,8 @@ public interface UpdateSnapshotRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -74,6 +80,8 @@ public interface UpdateSnapshotRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 31ffee1e163c..b2a2566dd04b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -39,6 +39,12 @@ private UpdateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder private UpdateSubscriptionRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSubscriptionRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateSubscriptionRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -137,6 +142,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.pubsub.v1.Subscription subscription = 1; + * + * @return Whether the subscription field is set. */ public boolean hasSubscription() { return subscription_ != null; @@ -149,6 +156,8 @@ public boolean hasSubscription() { * * * .google.pubsub.v1.Subscription subscription = 1; + * + * @return The subscription. */ public com.google.pubsub.v1.Subscription getSubscription() { return subscription_ == null @@ -179,6 +188,8 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -192,6 +203,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -580,6 +593,8 @@ public Builder mergeFrom( * * * .google.pubsub.v1.Subscription subscription = 1; + * + * @return Whether the subscription field is set. */ public boolean hasSubscription() { return subscriptionBuilder_ != null || subscription_ != null; @@ -592,6 +607,8 @@ public boolean hasSubscription() { * * * .google.pubsub.v1.Subscription subscription = 1; + * + * @return The subscription. */ public com.google.pubsub.v1.Subscription getSubscription() { if (subscriptionBuilder_ == null) { @@ -762,6 +779,8 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -775,6 +794,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 976fb622e138..ce6cc6279b00 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -31,6 +31,8 @@ public interface UpdateSubscriptionRequestOrBuilder * * * .google.pubsub.v1.Subscription subscription = 1; + * + * @return Whether the subscription field is set. */ boolean hasSubscription(); /** @@ -41,6 +43,8 @@ public interface UpdateSubscriptionRequestOrBuilder * * * .google.pubsub.v1.Subscription subscription = 1; + * + * @return The subscription. */ com.google.pubsub.v1.Subscription getSubscription(); /** @@ -63,6 +67,8 @@ public interface UpdateSubscriptionRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -74,6 +80,8 @@ public interface UpdateSubscriptionRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index f0614360dc06..50d40bef9993 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -39,6 +39,12 @@ private UpdateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder bui private UpdateTopicRequest() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateTopicRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private UpdateTopicRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,6 +141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.pubsub.v1.Topic topic = 1; + * + * @return Whether the topic field is set. */ public boolean hasTopic() { return topic_ != null; @@ -148,6 +155,8 @@ public boolean hasTopic() { * * * .google.pubsub.v1.Topic topic = 1; + * + * @return The topic. */ public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; @@ -179,6 +188,8 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -195,6 +206,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -585,6 +598,8 @@ public Builder mergeFrom( * * * .google.pubsub.v1.Topic topic = 1; + * + * @return Whether the topic field is set. */ public boolean hasTopic() { return topicBuilder_ != null || topic_ != null; @@ -597,6 +612,8 @@ public boolean hasTopic() { * * * .google.pubsub.v1.Topic topic = 1; + * + * @return The topic. */ public com.google.pubsub.v1.Topic getTopic() { if (topicBuilder_ == null) { @@ -762,6 +779,8 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -778,6 +797,8 @@ public boolean hasUpdateMask() { * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index ac4f2882c003..482baef497d6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -31,6 +31,8 @@ public interface UpdateTopicRequestOrBuilder * * * .google.pubsub.v1.Topic topic = 1; + * + * @return Whether the topic field is set. */ boolean hasTopic(); /** @@ -41,6 +43,8 @@ public interface UpdateTopicRequestOrBuilder * * * .google.pubsub.v1.Topic topic = 1; + * + * @return The topic. */ com.google.pubsub.v1.Topic getTopic(); /** @@ -66,6 +70,8 @@ public interface UpdateTopicRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** @@ -80,6 +86,8 @@ public interface UpdateTopicRequestOrBuilder * * * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 7876f3dee6ce..235ea87ce134 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-22T08:51:59.224586Z", + "updateTime": "2019-12-20T08:48:29.715164Z", "sources": [ { "generator": { "name": "artman", - "version": "0.42.1", - "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" + "version": "0.42.3", + "dockerImage": "googleapis/artman@sha256:feed210b5723c6f524b52ef6d7740a030f2d1a8f7c29a71c5e5b4481ceaad7f5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3ba7ddc4b2acf532bdfb0004ca26311053c11c30", - "internalRef": "281852671" + "sha": "50af0530730348f1e3697bf3c70261f7daaf2981", + "internalRef": "286491002" } }, { @@ -35,5 +35,733 @@ "config": "google/pubsub/artman_pubsub.yaml" } } + ], + "newFiles": [ + { + "path": "versions.txt" + }, + { + "path": "CONTRIBUTING.md" + }, + { + "path": "CHANGELOG.md" + }, + { + "path": "README.md" + }, + { + "path": "synth.metadata" + }, + { + "path": "LICENSE" + }, + { + "path": "codecov.yaml" + }, + { + "path": ".gitignore" + }, + { + "path": "license-checks.xml" + }, + { + "path": "synth.py" + }, + { + "path": "pom.xml" + }, + { + "path": "java.header" + }, + { + "path": ".repo-metadata.json" + }, + { + "path": "CODE_OF_CONDUCT.md" + }, + { + "path": "renovate.json" + }, + { + "path": "google-cloud-pubsub-bom/pom.xml" + }, + { + "path": "proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml" + }, + { + "path": "proto-google-cloud-pubsub-v1/pom.xml" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto" + }, + { + "path": ".git/HEAD" + }, + { + "path": ".git/index" + }, + { + "path": ".git/shallow" + }, + { + "path": ".git/packed-refs" + }, + { + "path": ".git/config" + }, + { + "path": ".git/description" + }, + { + "path": ".git/hooks/update.sample" + }, + { + "path": ".git/hooks/pre-push.sample" + }, + { + "path": ".git/hooks/pre-receive.sample" + }, + { + "path": ".git/hooks/applypatch-msg.sample" + }, + { + "path": ".git/hooks/pre-commit.sample" + }, + { + "path": ".git/hooks/pre-applypatch.sample" + }, + { + "path": ".git/hooks/prepare-commit-msg.sample" + }, + { + "path": ".git/hooks/pre-rebase.sample" + }, + { + "path": ".git/hooks/commit-msg.sample" + }, + { + "path": ".git/hooks/post-update.sample" + }, + { + "path": ".git/hooks/fsmonitor-watchman.sample" + }, + { + "path": ".git/info/exclude" + }, + { + "path": ".git/logs/HEAD" + }, + { + "path": ".git/logs/refs/heads/master" + }, + { + "path": ".git/logs/refs/heads/autosynth" + }, + { + "path": ".git/logs/refs/remotes/origin/HEAD" + }, + { + "path": ".git/refs/heads/master" + }, + { + "path": ".git/refs/heads/autosynth" + }, + { + "path": ".git/refs/remotes/origin/HEAD" + }, + { + "path": ".git/objects/pack/pack-011ecf85ecafc295a5d8dafec3867f025e8cbe5b.idx" + }, + { + "path": ".git/objects/pack/pack-011ecf85ecafc295a5d8dafec3867f025e8cbe5b.pack" + }, + { + "path": "grpc-google-cloud-pubsub-v1/pom.xml" + }, + { + "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java" + }, + { + "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java" + }, + { + "path": "__pycache__/synth.cpython-36.pyc" + }, + { + "path": ".github/PULL_REQUEST_TEMPLATE.md" + }, + { + "path": ".github/release-please.yml" + }, + { + "path": ".github/ISSUE_TEMPLATE/feature_request.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/bug_report.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/support_request.md" + }, + { + "path": "google-cloud-pubsub/pom.xml" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java" + }, + { + "path": ".kokoro/common.cfg" + }, + { + "path": ".kokoro/dependencies.sh" + }, + { + "path": ".kokoro/linkage-monitor.sh" + }, + { + "path": ".kokoro/build.sh" + }, + { + "path": ".kokoro/build.bat" + }, + { + "path": ".kokoro/coerce_logs.sh" + }, + { + "path": ".kokoro/trampoline.sh" + }, + { + "path": ".kokoro/nightly/common.cfg" + }, + { + "path": ".kokoro/nightly/java11.cfg" + }, + { + "path": ".kokoro/nightly/java8.cfg" + }, + { + "path": ".kokoro/nightly/integration.cfg" + }, + { + "path": ".kokoro/nightly/java8-osx.cfg" + }, + { + "path": ".kokoro/nightly/dependencies.cfg" + }, + { + "path": ".kokoro/nightly/java8-win.cfg" + }, + { + "path": ".kokoro/nightly/lint.cfg" + }, + { + "path": ".kokoro/nightly/java7.cfg" + }, + { + "path": ".kokoro/presubmit/common.cfg" + }, + { + "path": ".kokoro/presubmit/java11.cfg" + }, + { + "path": ".kokoro/presubmit/java8.cfg" + }, + { + "path": ".kokoro/presubmit/integration.cfg" + }, + { + "path": ".kokoro/presubmit/java8-osx.cfg" + }, + { + "path": ".kokoro/presubmit/dependencies.cfg" + }, + { + "path": ".kokoro/presubmit/linkage-monitor.cfg" + }, + { + "path": ".kokoro/presubmit/java8-win.cfg" + }, + { + "path": ".kokoro/presubmit/clirr.cfg" + }, + { + "path": ".kokoro/presubmit/lint.cfg" + }, + { + "path": ".kokoro/presubmit/java7.cfg" + }, + { + "path": ".kokoro/release/common.cfg" + }, + { + "path": ".kokoro/release/bump_snapshot.cfg" + }, + { + "path": ".kokoro/release/stage.sh" + }, + { + "path": ".kokoro/release/snapshot.cfg" + }, + { + "path": ".kokoro/release/snapshot.sh" + }, + { + "path": ".kokoro/release/bump_snapshot.sh" + }, + { + "path": ".kokoro/release/promote.sh" + }, + { + "path": ".kokoro/release/drop.sh" + }, + { + "path": ".kokoro/release/publish_javadoc.cfg" + }, + { + "path": ".kokoro/release/common.sh" + }, + { + "path": ".kokoro/release/drop.cfg" + }, + { + "path": ".kokoro/release/stage.cfg" + }, + { + "path": ".kokoro/release/publish_javadoc.sh" + }, + { + "path": ".kokoro/release/promote.cfg" + }, + { + "path": ".kokoro/continuous/common.cfg" + }, + { + "path": ".kokoro/continuous/java11.cfg" + }, + { + "path": ".kokoro/continuous/java8.cfg" + }, + { + "path": ".kokoro/continuous/integration.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.sh" + }, + { + "path": ".kokoro/continuous/java8-osx.cfg" + }, + { + "path": ".kokoro/continuous/dependencies.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.cfg" + }, + { + "path": ".kokoro/continuous/java8-win.cfg" + }, + { + "path": ".kokoro/continuous/lint.cfg" + }, + { + "path": ".kokoro/continuous/java7.cfg" + } ] } \ No newline at end of file From 19cca0b8f4a004ae4643480ef13db166e1ab1793 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 20 Dec 2019 22:38:14 +0200 Subject: [PATCH 0264/2363] deps: update dependency io.grpc:grpc-bom to v1.26.0 (#38) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3a426cf40cff..00a8db856236 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -67,7 +67,7 @@ 1.8.1 1.17.0 1.52.0 - 1.25.0 + 1.26.0 3.11.1 4.12 3.6 From b8e3e1e07a00adfa0f009db2e9fbf0c1f31db6e0 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 26 Dec 2019 12:57:34 -0600 Subject: [PATCH 0265/2363] chore(deps): group core dependencies --- java-pubsub/renovate.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index c5eafc049691..02757c63ad2c 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -17,6 +17,15 @@ ], "versionScheme": "docker" }, + { + "packagePatterns": [ + "^com.google.api:gax", + "^com.google.auth:", + "^com.google.cloud:google-cloud-core", + "^io.grpc:" + ], + "groupName": "core dependencies" + }, { "packagePatterns": [ "*" From a7182b9f0e7eef2cbb5526cba491bf2deaa5741b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 26 Dec 2019 21:28:43 +0200 Subject: [PATCH 0266/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.92.0 --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 00a8db856236..df0ef201ab5b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -63,7 +63,7 @@ UTF-8 github google-cloud-pubsub-parent - 1.91.3 + 1.92.0 1.8.1 1.17.0 1.52.0 From e899f58f79d611d366747c81990e78551ba38d38 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 26 Dec 2019 17:42:01 -0600 Subject: [PATCH 0267/2363] chore: group core transport dependencies --- java-pubsub/renovate.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 02757c63ad2c..d014232c57bf 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -26,6 +26,14 @@ ], "groupName": "core dependencies" }, + { + "packagePatterns": [ + "^com.google.http-client:", + "^com.google.oauth-client:", + "^com.google.api-client:" + ], + "groupName": "core transport dependencies" + }, { "packagePatterns": [ "*" From 82b049f5b871287a7e35c017c11d0b7bbc85b610 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 27 Dec 2019 02:19:06 +0200 Subject: [PATCH 0268/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.3.4 (#13) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index df0ef201ab5b..ecde28ae67f0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -74,7 +74,7 @@ 28.1-android 1.4.0 1.3.2 - 2.3.3 + 2.3.4 1.34.0 1.18 1.7 From 748b3f729546790534973edc2f59d9858a04b584 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 27 Dec 2019 17:44:20 +0200 Subject: [PATCH 0269/2363] deps: update dependency com.google.guava:guava-bom to v28.2-android --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ecde28ae67f0..07143cb5d537 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -71,7 +71,7 @@ 3.11.1 4.12 3.6 - 28.1-android + 28.2-android 1.4.0 1.3.2 2.3.4 From 9456d987676068fb9caa46cdb1debed5526a473b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 2 Jan 2020 23:35:24 +0200 Subject: [PATCH 0270/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.92.1 --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 07143cb5d537..33fb273f7227 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -63,7 +63,7 @@ UTF-8 github google-cloud-pubsub-parent - 1.92.0 + 1.92.1 1.8.1 1.17.0 1.52.0 From deece3631a36cd9de02c430afd283a64fc3686cd Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 3 Jan 2020 22:02:32 +0200 Subject: [PATCH 0271/2363] chore(deps): update dependency junit:junit to v4.13 (#46) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 33fb273f7227..bbb6ad08a3c3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -69,7 +69,7 @@ 1.52.0 1.26.0 3.11.1 - 4.12 + 4.13 3.6 28.2-android 1.4.0 From f10696e377f96f12500896b57b518ad577f62efb Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 3 Jan 2020 23:02:50 +0200 Subject: [PATCH 0272/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.3.1 (#49) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7b0df8270cb3..eb130e9ad7d1 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.3.0 + 0.3.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bbb6ad08a3c3..fec43110d2eb 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.3.0 + 0.3.1 From 96158bfc83761ea6f81891adc741a3310d0e4807 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 7 Jan 2020 08:38:22 -0800 Subject: [PATCH 0273/2363] chore: update common templates (#50) --- java-pubsub/.kokoro/build.sh | 15 +- java-pubsub/.kokoro/continuous/samples.cfg | 31 ++ java-pubsub/.kokoro/nightly/samples.cfg | 31 ++ java-pubsub/.kokoro/presubmit/samples.cfg | 31 ++ java-pubsub/CONTRIBUTING.md | 104 ++++- java-pubsub/synth.metadata | 494 ++++++++++----------- 6 files changed, 442 insertions(+), 264 deletions(-) create mode 100644 java-pubsub/.kokoro/continuous/samples.cfg create mode 100644 java-pubsub/.kokoro/nightly/samples.cfg create mode 100644 java-pubsub/.kokoro/presubmit/samples.cfg diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index dc2936ef76a8..f1ae58408da5 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -44,13 +44,26 @@ test) bash .kokoro/coerce_logs.sh ;; lint) - mvn com.coveo:fmt-maven-plugin:check + mvn \ + -Penable-samples \ + com.coveo:fmt-maven-plugin:check ;; javadoc) mvn javadoc:javadoc javadoc:test-javadoc ;; integration) mvn -B ${INTEGRATION_TEST_ARGS} \ + -Penable-integration-tests \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -fae \ + verify + bash .kokoro/coerce_logs.sh + ;; +samples) + mvn -B \ + -Penable-samples \ -DtrimStackTrace=false \ -Dclirr.skip=true \ -Denforcer.skip=true \ diff --git a/java-pubsub/.kokoro/continuous/samples.cfg b/java-pubsub/.kokoro/continuous/samples.cfg new file mode 100644 index 000000000000..fa7b493d0b5c --- /dev/null +++ b/java-pubsub/.kokoro/continuous/samples.cfg @@ -0,0 +1,31 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "samples" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/java-pubsub/.kokoro/nightly/samples.cfg b/java-pubsub/.kokoro/nightly/samples.cfg new file mode 100644 index 000000000000..9a9102490d54 --- /dev/null +++ b/java-pubsub/.kokoro/nightly/samples.cfg @@ -0,0 +1,31 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "samples" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/java-pubsub/.kokoro/presubmit/samples.cfg b/java-pubsub/.kokoro/presubmit/samples.cfg new file mode 100644 index 000000000000..fa7b493d0b5c --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/samples.cfg @@ -0,0 +1,31 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +env_vars: { + key: "JOB_TYPE" + value: "samples" +} + +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/java-pubsub/CONTRIBUTING.md b/java-pubsub/CONTRIBUTING.md index ebbb59e5310f..085021ddec26 100644 --- a/java-pubsub/CONTRIBUTING.md +++ b/java-pubsub/CONTRIBUTING.md @@ -25,4 +25,106 @@ information on using pull requests. ## Community Guidelines This project follows -[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). \ No newline at end of file +[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). + +## Building the project + +To build, package, and run all unit tests run the command + +``` +mvn clean verify +``` + +### Running Integration tests + +To include integration tests when building the project, you need access to +a GCP Project with a valid service account. + +For instructions on how to generate a service account and corresponding +credentials JSON see: [Creating a Service Account][1]. + +Then run the following to build, package, run all unit tests and run all +integration tests. + +```bash +export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json +mvn -Penable-integration-tests clean verify +``` + +## Code Samples + +Code Samples must be bundled in separate Maven modules, and guarded by a +Maven profile with the name `enable-samples`. + +The samples must be separate from the primary project for a few reasons: +1. Primary projects have a minimum Java version of Java 7 whereas samples have + a minimum Java version of Java 8. Due to this we need the ability to + selectively exclude samples from a build run. +2. Many code samples depend on external GCP services and need + credentials to access the service. +3. Code samples are not released as Maven artifacts and must be excluded from + release builds. + +### Building + +```bash +mvn -Penable-samples clean verify +``` + +Some samples require access to GCP services and require a service account: + +```bash +export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json +mvn -Penable-samples clean verify +``` + +### Profile Config + +1. To add samples in a profile to your Maven project, add the following to your +`pom.xml` + + ```xml + + [...] + + + enable-samples + + sample + + + + [...] + + ``` + +2. [Activate](#profile-activation) the profile. +3. Define your samples in a normal Maven project in the `samples/` directory + +### Profile Activation + +To include code samples when building and testing the project, enable the +`enable-samples` Maven profile. + +#### Command line + +To activate the Maven profile on the command line add `-Penable-samples` to your +Maven command. + +#### Maven `settings.xml` + +To activate the Maven profile in your `~/.m2/settings.xml` add an entry of +`enable-samples` following the instructions in [Active Profiles][2]. + +This method has the benefit of applying to all projects you build (and is +respected by IntelliJ IDEA) and is recommended if you are going to be +contributing samples to several projects. + +#### IntelliJ IDEA + +To activate the Maven Profile inside IntelliJ IDEA, follow the instructions in +[Activate Maven profiles][3] to activate `enable-samples`. + +[1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account +[2]: https://maven.apache.org/settings.html#Active_Profiles +[3]: https://www.jetbrains.com/help/idea/work-with-maven-profiles.html#activate_maven_profiles diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 235ea87ce134..35c21cb68de9 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-12-20T08:48:29.715164Z", + "updateTime": "2020-01-07T08:56:50.740953Z", "sources": [ { "generator": { "name": "artman", - "version": "0.42.3", - "dockerImage": "googleapis/artman@sha256:feed210b5723c6f524b52ef6d7740a030f2d1a8f7c29a71c5e5b4481ceaad7f5" + "version": "0.43.0", + "dockerImage": "googleapis/artman@sha256:264654a37596a44b0668b8ce6ac41082d713f6ee150b3fc6425fa78cc64e4f20" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "50af0530730348f1e3697bf3c70261f7daaf2981", - "internalRef": "286491002" + "sha": "cb79155f596e0396dd900da93872be7066f6340d", + "internalRef": "288441307" } }, { @@ -38,730 +38,700 @@ ], "newFiles": [ { - "path": "versions.txt" - }, - { - "path": "CONTRIBUTING.md" + "path": ".repo-metadata.json" }, { - "path": "CHANGELOG.md" + "path": "renovate.json" }, { - "path": "README.md" + "path": "license-checks.xml" }, { - "path": "synth.metadata" + "path": "synth.py" }, { - "path": "LICENSE" + "path": "CHANGELOG.md" }, { "path": "codecov.yaml" }, { - "path": ".gitignore" - }, - { - "path": "license-checks.xml" + "path": "LICENSE" }, { - "path": "synth.py" + "path": ".gitignore" }, { "path": "pom.xml" }, - { - "path": "java.header" - }, - { - "path": ".repo-metadata.json" - }, { "path": "CODE_OF_CONDUCT.md" }, { - "path": "renovate.json" - }, - { - "path": "google-cloud-pubsub-bom/pom.xml" + "path": "synth.metadata" }, { - "path": "proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml" + "path": "README.md" }, { - "path": "proto-google-cloud-pubsub-v1/pom.xml" + "path": "versions.txt" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java" + "path": "CONTRIBUTING.md" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" + "path": "java.header" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java" + "path": "google-cloud-pubsub-bom/pom.xml" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java" + "path": ".kokoro/build.bat" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java" + "path": ".kokoro/build.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java" + "path": ".kokoro/dependencies.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java" + "path": ".kokoro/common.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java" + "path": ".kokoro/trampoline.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" + "path": ".kokoro/coerce_logs.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java" + "path": ".kokoro/linkage-monitor.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" + "path": ".kokoro/continuous/dependencies.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java" + "path": ".kokoro/continuous/samples.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java" + "path": ".kokoro/continuous/java7.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java" + "path": ".kokoro/continuous/java8-osx.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java" + "path": ".kokoro/continuous/java8-win.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java" + "path": ".kokoro/continuous/propose_release.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java" + "path": ".kokoro/continuous/lint.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java" + "path": ".kokoro/continuous/java11.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java" + "path": ".kokoro/continuous/common.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java" + "path": ".kokoro/continuous/propose_release.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java" + "path": ".kokoro/continuous/java8.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java" + "path": ".kokoro/continuous/integration.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java" + "path": ".kokoro/release/drop.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java" + "path": ".kokoro/release/stage.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java" + "path": ".kokoro/release/promote.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java" + "path": ".kokoro/release/publish_javadoc.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java" + "path": ".kokoro/release/bump_snapshot.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java" + "path": ".kokoro/release/promote.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" + "path": ".kokoro/release/stage.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java" + "path": ".kokoro/release/snapshot.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java" + "path": ".kokoro/release/snapshot.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java" + "path": ".kokoro/release/common.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java" + "path": ".kokoro/release/bump_snapshot.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java" + "path": ".kokoro/release/common.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java" + "path": ".kokoro/release/drop.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java" + "path": ".kokoro/release/publish_javadoc.sh" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java" + "path": ".kokoro/presubmit/dependencies.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java" + "path": ".kokoro/presubmit/samples.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java" + "path": ".kokoro/presubmit/java7.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java" + "path": ".kokoro/presubmit/java8-osx.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java" + "path": ".kokoro/presubmit/linkage-monitor.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java" + "path": ".kokoro/presubmit/java8-win.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java" + "path": ".kokoro/presubmit/lint.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java" + "path": ".kokoro/presubmit/java11.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" + "path": ".kokoro/presubmit/common.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java" + "path": ".kokoro/presubmit/clirr.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java" + "path": ".kokoro/presubmit/java8.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java" + "path": ".kokoro/presubmit/integration.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java" + "path": ".kokoro/nightly/dependencies.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java" + "path": ".kokoro/nightly/samples.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java" + "path": ".kokoro/nightly/java7.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java" + "path": ".kokoro/nightly/java8-osx.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java" + "path": ".kokoro/nightly/java8-win.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java" + "path": ".kokoro/nightly/lint.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java" + "path": ".kokoro/nightly/java11.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java" + "path": ".kokoro/nightly/common.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java" + "path": ".kokoro/nightly/java8.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java" + "path": ".kokoro/nightly/integration.cfg" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java" + "path": ".github/release-please.yml" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java" + "path": ".github/PULL_REQUEST_TEMPLATE.md" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java" + "path": ".github/ISSUE_TEMPLATE/bug_report.md" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java" + "path": ".github/ISSUE_TEMPLATE/support_request.md" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java" + "path": ".github/ISSUE_TEMPLATE/feature_request.md" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java" + "path": "grpc-google-cloud-pubsub-v1/pom.xml" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java" + "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java" + "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java" + "path": "__pycache__/synth.cpython-36.pyc" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java" + "path": "proto-google-cloud-pubsub-v1/pom.xml" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java" + "path": "proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java" }, { "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java" }, { "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto" - }, - { - "path": ".git/HEAD" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java" }, { - "path": ".git/index" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java" }, { - "path": ".git/shallow" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java" }, { - "path": ".git/packed-refs" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java" }, { - "path": ".git/config" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java" }, { - "path": ".git/description" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java" }, { - "path": ".git/hooks/update.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java" }, { - "path": ".git/hooks/pre-push.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java" }, { - "path": ".git/hooks/pre-receive.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java" }, { - "path": ".git/hooks/applypatch-msg.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java" }, { - "path": ".git/hooks/pre-commit.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java" }, { - "path": ".git/hooks/pre-applypatch.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java" }, { - "path": ".git/hooks/prepare-commit-msg.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java" }, { - "path": ".git/hooks/pre-rebase.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java" }, { - "path": ".git/hooks/commit-msg.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java" }, { - "path": ".git/hooks/post-update.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" }, { - "path": ".git/hooks/fsmonitor-watchman.sample" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java" }, { - "path": ".git/info/exclude" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java" }, { - "path": ".git/logs/HEAD" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java" }, { - "path": ".git/logs/refs/heads/master" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java" }, { - "path": ".git/logs/refs/heads/autosynth" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java" }, { - "path": ".git/logs/refs/remotes/origin/HEAD" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java" }, { - "path": ".git/refs/heads/master" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java" }, { - "path": ".git/refs/heads/autosynth" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java" }, { - "path": ".git/refs/remotes/origin/HEAD" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java" }, { - "path": ".git/objects/pack/pack-011ecf85ecafc295a5d8dafec3867f025e8cbe5b.idx" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java" }, { - "path": ".git/objects/pack/pack-011ecf85ecafc295a5d8dafec3867f025e8cbe5b.pack" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java" }, { - "path": "grpc-google-cloud-pubsub-v1/pom.xml" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" }, { - "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java" }, { - "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java" }, { - "path": "__pycache__/synth.cpython-36.pyc" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java" }, { - "path": ".github/PULL_REQUEST_TEMPLATE.md" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java" }, { - "path": ".github/release-please.yml" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java" }, { - "path": ".github/ISSUE_TEMPLATE/feature_request.md" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java" }, { - "path": ".github/ISSUE_TEMPLATE/bug_report.md" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java" }, { - "path": ".github/ISSUE_TEMPLATE/support_request.md" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java" }, { - "path": "google-cloud-pubsub/pom.xml" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java" + "path": ".git/index" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java" + "path": ".git/packed-refs" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java" + "path": ".git/HEAD" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java" + "path": ".git/config" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java" + "path": ".git/shallow" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java" + "path": ".git/objects/pack/pack-2e2ca04a1fe595463b45170d832b7636e7a47843.pack" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java" + "path": ".git/objects/pack/pack-2e2ca04a1fe595463b45170d832b7636e7a47843.idx" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java" + "path": ".git/refs/remotes/origin/HEAD" }, { - "path": ".kokoro/common.cfg" + "path": ".git/refs/heads/autosynth" }, { - "path": ".kokoro/dependencies.sh" + "path": ".git/refs/heads/master" }, { - "path": ".kokoro/linkage-monitor.sh" + "path": ".git/logs/HEAD" }, { - "path": ".kokoro/build.sh" + "path": ".git/logs/refs/remotes/origin/HEAD" }, { - "path": ".kokoro/build.bat" + "path": ".git/logs/refs/heads/autosynth" }, { - "path": ".kokoro/coerce_logs.sh" + "path": ".git/logs/refs/heads/master" }, { - "path": ".kokoro/trampoline.sh" + "path": "google-cloud-pubsub/pom.xml" }, { - "path": ".kokoro/nightly/common.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java" }, { - "path": ".kokoro/nightly/java11.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" }, { - "path": ".kokoro/nightly/java8.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java" }, { - "path": ".kokoro/nightly/integration.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" }, { - "path": ".kokoro/nightly/java8-osx.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" }, { - "path": ".kokoro/nightly/dependencies.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java" }, { - "path": ".kokoro/nightly/java8-win.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" }, { - "path": ".kokoro/nightly/lint.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" }, { - "path": ".kokoro/nightly/java7.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java" }, { - "path": ".kokoro/presubmit/common.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" }, { - "path": ".kokoro/presubmit/java11.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java" }, { - "path": ".kokoro/presubmit/java8.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java" }, { - "path": ".kokoro/presubmit/integration.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" }, { - "path": ".kokoro/presubmit/java8-osx.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java" }, { - "path": ".kokoro/presubmit/dependencies.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" }, { - "path": ".kokoro/presubmit/linkage-monitor.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java" }, { - "path": ".kokoro/presubmit/java8-win.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" }, { - "path": ".kokoro/presubmit/clirr.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" }, { - "path": ".kokoro/presubmit/lint.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" }, { - "path": ".kokoro/presubmit/java7.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java" }, { - "path": ".kokoro/release/common.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" }, { - "path": ".kokoro/release/bump_snapshot.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" }, { - "path": ".kokoro/release/stage.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java" }, { - "path": ".kokoro/release/snapshot.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" }, { - "path": ".kokoro/release/snapshot.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" }, { - "path": ".kokoro/release/bump_snapshot.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" }, { - "path": ".kokoro/release/promote.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java" }, { - "path": ".kokoro/release/drop.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" }, { - "path": ".kokoro/release/publish_javadoc.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java" }, { - "path": ".kokoro/release/common.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java" }, { - "path": ".kokoro/release/drop.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" }, { - "path": ".kokoro/release/stage.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" }, { - "path": ".kokoro/release/publish_javadoc.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" }, { - "path": ".kokoro/release/promote.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" }, { - "path": ".kokoro/continuous/common.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java" }, { - "path": ".kokoro/continuous/java11.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" }, { - "path": ".kokoro/continuous/java8.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java" }, { - "path": ".kokoro/continuous/integration.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java" }, { - "path": ".kokoro/continuous/propose_release.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java" }, { - "path": ".kokoro/continuous/java8-osx.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java" }, { - "path": ".kokoro/continuous/dependencies.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java" }, { - "path": ".kokoro/continuous/propose_release.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java" }, { - "path": ".kokoro/continuous/java8-win.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java" }, { - "path": ".kokoro/continuous/lint.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java" }, { - "path": ".kokoro/continuous/java7.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java" } ] } \ No newline at end of file From 5ed70639df375bef21c64e86bed0b31fb61ce927 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 7 Jan 2020 11:36:33 -0800 Subject: [PATCH 0274/2363] chore: allow unstable renovate updates --- java-pubsub/renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index d014232c57bf..f3a70c9703f1 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -52,6 +52,12 @@ ], "semanticCommitType": "build", "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^com.google.cloud:google-cloud-" + ], + "ignoreUnstable": false } ], "semanticCommits": true From 890bcd3ae01c6ccae390b8b65f2ef74fa0db0388 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2020 14:15:47 -0800 Subject: [PATCH 0275/2363] chore: release 1.102.1 (#43) * updated CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated pom.xml [ci skip] --- java-pubsub/CHANGELOG.md | 11 +++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 9258db2d1081..2d9a61823c71 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +### [1.102.1](https://www.github.com/googleapis/java-pubsub/compare/v1.102.0...v1.102.1) (2020-01-07) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v1.92.0 ([4b3c656](https://www.github.com/googleapis/java-pubsub/commit/4b3c656fbc50d5703bf830e2307fa6ba9cbe31cb)) +* update dependency com.google.cloud:google-cloud-core to v1.92.1 ([c9345e3](https://www.github.com/googleapis/java-pubsub/commit/c9345e3178d26e2f8872c3cc5173e4cb9fa61675)) +* update dependency com.google.errorprone:error_prone_annotations to v2.3.4 ([#13](https://www.github.com/googleapis/java-pubsub/issues/13)) ([a34c50c](https://www.github.com/googleapis/java-pubsub/commit/a34c50c28c0907129f5eb6bf1380b202eabd8c07)) +* update dependency com.google.guava:guava-bom to v28.2-android ([9f0a7b2](https://www.github.com/googleapis/java-pubsub/commit/9f0a7b2c390546321393c5ef0ea972167dac5049)) +* update dependency io.grpc:grpc-bom to v1.26.0 ([#38](https://www.github.com/googleapis/java-pubsub/issues/38)) ([c09da56](https://www.github.com/googleapis/java-pubsub/commit/c09da568fffde6256a20be5ff77e98d7a0ba044f)) + ## [1.102.0](https://www.github.com/googleapis/java-pubsub/compare/1.101.0...v1.102.0) (2019-12-04) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5943a98f6351..8d433b89cbae 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -37,16 +37,16 @@ If you are using Maven without a BOM, add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.102.0 + 1.102.1 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.102.0' +compile 'com.google.cloud:google-cloud-pubsub:1.102.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.102.1" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index eb130e9ad7d1..fb974e83feea 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.102.1-SNAPSHOT + 1.102.1 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.1-SNAPSHOT + 1.84.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.1-SNAPSHOT + 1.84.1 com.google.cloud google-cloud-pubsub - 1.102.1-SNAPSHOT + 1.102.1
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9df0d65d8a28..28c8ce3e3198 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.102.1-SNAPSHOT + 1.102.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.102.1-SNAPSHOT + 1.102.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index aa85f3bd43e2..a09f7d4288f4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.1-SNAPSHOT + 1.84.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.102.1-SNAPSHOT + 1.102.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index fec43110d2eb..53ceb1f327f7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.102.1-SNAPSHOT + 1.102.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.1-SNAPSHOT + 1.84.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.1-SNAPSHOT + 1.84.1 com.google.cloud google-cloud-pubsub - 1.102.1-SNAPSHOT + 1.102.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 793d8abb5111..7ee0d6d4b349 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.1-SNAPSHOT + 1.84.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.102.1-SNAPSHOT + 1.102.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 96c3a479f099..dde89627cee4 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.84.0:1.84.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.84.0:1.84.1-SNAPSHOT -google-cloud-pubsub:1.102.0:1.102.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.84.1:1.84.1 +grpc-google-cloud-pubsub-v1:1.84.1:1.84.1 +google-cloud-pubsub:1.102.1:1.102.1 \ No newline at end of file From e12328c822745f32a2cf0d389eaeef15739abb59 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2020 16:23:14 -0800 Subject: [PATCH 0276/2363] chore: release 1.102.2-SNAPSHOT (#54) * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fb974e83feea..83268da31b71 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.102.1 + 1.102.2-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.1 + 1.84.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.1 + 1.84.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.102.1 + 1.102.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 28c8ce3e3198..3235a04b0da4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.102.1 + 1.102.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.102.1 + 1.102.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a09f7d4288f4..de6df48b29c0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.1 + 1.84.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.102.1 + 1.102.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 53ceb1f327f7..d871d9903a0f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.102.1 + 1.102.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.1 + 1.84.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.1 + 1.84.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.102.1 + 1.102.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7ee0d6d4b349..de3768575d27 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.1 + 1.84.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.102.1 + 1.102.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index dde89627cee4..6b23127bfcd3 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.84.1:1.84.1 -grpc-google-cloud-pubsub-v1:1.84.1:1.84.1 -google-cloud-pubsub:1.102.1:1.102.1 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.84.1:1.84.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.84.1:1.84.2-SNAPSHOT +google-cloud-pubsub:1.102.1:1.102.2-SNAPSHOT \ No newline at end of file From 2dd371c49050347477a83fff596573db0494b211 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Jan 2020 23:32:38 +0100 Subject: [PATCH 0277/2363] deps: update dependency org.threeten:threetenbp to v1.4.1 --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d871d9903a0f..68d2c60db164 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -72,7 +72,7 @@ 4.13 3.6 28.2-android - 1.4.0 + 1.4.1 1.3.2 2.3.4 1.34.0 From e1ed366e2fc4e9015b1afe2605731963b851470d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Jan 2020 01:48:17 +0100 Subject: [PATCH 0278/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.4.0 (#53) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 83268da31b71..0081b11f88b5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.3.1 + 0.4.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 68d2c60db164..c4af9d25527d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.3.1 + 0.4.0 From f8085aa09cf51d1d808f8bc9fa5bcf0d457e4e13 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Tue, 14 Jan 2020 09:56:08 -0500 Subject: [PATCH 0279/2363] feat: adding support for dead letter queues (#60) * feat: Adding support for DLQs Adding delivery attempt count to PubsubMessages as a message attribute, and creating helper function to allow users to get the count without knowing implementation details. * Fix formatting * fix: making changes requested in pull request --- .../google/cloud/pubsub/v1/MessageDispatcher.java | 9 ++++++++- .../java/com/google/cloud/pubsub/v1/Subscriber.java | 6 ++++++ .../cloud/pubsub/v1/MessageDispatcherTest.java | 8 +++++++- .../com/google/cloud/pubsub/v1/SubscriberTest.java | 13 +++++++++++++ 4 files changed, 34 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 53b979d5e447..34b482cd855a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -341,10 +341,17 @@ private void processBatch(List batch) { // This should be a blocking flow controller and never throw an exception. throw new IllegalStateException("Flow control unexpected exception", unexpectedException); } - processOutstandingMessage(message.receivedMessage.getMessage(), message.ackHandler); + processOutstandingMessage(addDeliveryInfoCount(message.receivedMessage), message.ackHandler); } } + private PubsubMessage addDeliveryInfoCount(ReceivedMessage receivedMessage) { + return PubsubMessage.newBuilder(receivedMessage.getMessage()) + .putAttributes( + "googclient_deliveryattempt", Integer.toString(receivedMessage.getDeliveryAttempt())) + .build(); + } + private void processOutstandingMessage(final PubsubMessage message, final AckHandler ackHandler) { final SettableApiFuture response = SettableApiFuture.create(); final AckReplyConsumer consumer = diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 059ac0ce4681..422a0577f06e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -44,6 +44,7 @@ import com.google.common.base.Preconditions; import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -205,6 +206,11 @@ public static Builder newBuilder(String subscription, MessageReceiver receiver) return new Builder(subscription, receiver); } + /** Returns the delivery attempt count for a received {@link PubsubMessage} */ + public static int getDeliveryAttempt(PubsubMessage message) { + return Integer.parseInt(message.getAttributesOrDefault("googclient_deliveryattempt", "0")); + } + /** Subscription which the subscriber is subscribed to. */ public String getSubscriptionNameString() { return subscriptionName; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 163475407f04..b84e82c8c13b 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -37,10 +37,13 @@ import org.threeten.bp.Duration; public class MessageDispatcherTest { + private static final ByteString MESSAGE_DATA = ByteString.copyFromUtf8("message-data"); + private static final int DELIVERY_INFO_COUNT = 3; private static final ReceivedMessage TEST_MESSAGE = ReceivedMessage.newBuilder() .setAckId("ackid") - .setMessage(PubsubMessage.newBuilder().setData(ByteString.EMPTY).build()) + .setMessage(PubsubMessage.newBuilder().setData(MESSAGE_DATA).build()) + .setDeliveryAttempt(DELIVERY_INFO_COUNT) .build(); private static final Runnable NOOP_RUNNABLE = new Runnable() { @@ -78,6 +81,9 @@ public void setUp() { new MessageReceiver() { @Override public void receiveMessage(final PubsubMessage message, final AckReplyConsumer consumer) { + assertThat(message.getData()).isEqualTo(MESSAGE_DATA); + assertThat(message.getAttributesOrThrow("googclient_deliveryattempt")) + .isEqualTo(Integer.toString(DELIVERY_INFO_COUNT)); consumers.add(consumer); } }; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 5512145e1764..8f8489f216e6 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -84,6 +84,19 @@ public void tearDown() throws Exception { testChannel.shutdown(); } + @Test + public void testDeliveryAttemptHelper() { + int deliveryAttempt = 3; + PubsubMessage message = + PubsubMessage.newBuilder() + .putAttributes("googclient_deliveryattempt", Integer.toString(deliveryAttempt)) + .build(); + assertEquals(Subscriber.getDeliveryAttempt(message), deliveryAttempt); + + PubsubMessage emptyMessage = PubsubMessage.newBuilder().build(); + assertEquals(Subscriber.getDeliveryAttempt(emptyMessage), 0); + } + @Test public void testOpenedChannels() throws Exception { int expectedChannelCount = 1; From dfbd435ed5aa0148dc9c6c1a665107d44b05a7dc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Jan 2020 17:18:31 +0100 Subject: [PATCH 0280/2363] build(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.8.1 (#57) --- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3235a04b0da4..484b3ffdadb2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -155,7 +155,7 @@ maven-compiler-plugin - 3.5.1 + 3.8.1 1.7 1.7 From 7d72db21d32e8706f9475c3a79427d02b6b02141 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 15 Jan 2020 09:47:11 -0800 Subject: [PATCH 0281/2363] chore(regen): updated license year for generated files (#66) --- .../pubsub/v1/SubscriptionAdminClient.java | 23 +- .../pubsub/v1/SubscriptionAdminSettings.java | 2 +- .../cloud/pubsub/v1/TopicAdminClient.java | 13 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 2 +- .../google/cloud/pubsub/v1/package-info.java | 2 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 2 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../pubsub/v1/stub/PublisherStubSettings.java | 2 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../v1/stub/SubscriberStubSettings.java | 2 +- .../google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../cloud/pubsub/v1/MockSubscriber.java | 2 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../v1/SubscriptionAdminClientTest.java | 2 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 2 +- .../cloud/pubsub/v1/TopicAdminSmokeTest.java | 2 +- java-pubsub/synth.metadata | 708 +----------------- 23 files changed, 27 insertions(+), 757 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 367b3647f3d3..11e97c4f9f61 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -251,7 +251,6 @@ public final Subscription createSubscription( ProjectTopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) { - Subscription request = Subscription.newBuilder() .setName(name == null ? null : name.toString()) @@ -317,7 +316,6 @@ public final Subscription createSubscription( */ public final Subscription createSubscription( String name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) { - Subscription request = Subscription.newBuilder() .setName(name) @@ -413,7 +411,6 @@ public final UnaryCallable createSubscriptionCallabl * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription getSubscription(ProjectSubscriptionName subscription) { - GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -439,7 +436,6 @@ public final Subscription getSubscription(ProjectSubscriptionName subscription) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Subscription getSubscription(String subscription) { - GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder().setSubscription(subscription).build(); return getSubscription(request); @@ -710,7 +706,6 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSubscription(ProjectSubscriptionName subscription) { - DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -739,7 +734,6 @@ public final void deleteSubscription(ProjectSubscriptionName subscription) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSubscription(String subscription) { - DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder().setSubscription(subscription).build(); deleteSubscription(request); @@ -828,7 +822,6 @@ public final UnaryCallable deleteSubscriptionC */ /* package-private */ final void modifyAckDeadline( ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { - ModifyAckDeadlineRequest request = ModifyAckDeadlineRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -870,7 +863,6 @@ public final UnaryCallable deleteSubscriptionC */ /* package-private */ final void modifyAckDeadline( String subscription, List ackIds, int ackDeadlineSeconds) { - ModifyAckDeadlineRequest request = ModifyAckDeadlineRequest.newBuilder() .setSubscription(subscription) @@ -966,7 +958,6 @@ public final UnaryCallable deleteSubscriptionC */ /* package-private */ final void acknowledge( ProjectSubscriptionName subscription, List ackIds) { - AcknowledgeRequest request = AcknowledgeRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1000,7 +991,6 @@ public final UnaryCallable deleteSubscriptionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final void acknowledge(String subscription, List ackIds) { - AcknowledgeRequest request = AcknowledgeRequest.newBuilder().setSubscription(subscription).addAllAckIds(ackIds).build(); acknowledge(request); @@ -1091,7 +1081,6 @@ public final UnaryCallable deleteSubscriptionC */ /* package-private */ final PullResponse pull( ProjectSubscriptionName subscription, boolean returnImmediately, int maxMessages) { - PullRequest request = PullRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1129,7 +1118,6 @@ public final UnaryCallable deleteSubscriptionC */ /* package-private */ final PullResponse pull( String subscription, boolean returnImmediately, int maxMessages) { - PullRequest request = PullRequest.newBuilder() .setSubscription(subscription) @@ -1252,7 +1240,6 @@ public final UnaryCallable deleteSubscriptionC * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushConfig pushConfig) { - ModifyPushConfigRequest request = ModifyPushConfigRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -1289,7 +1276,6 @@ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushCon * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void modifyPushConfig(String subscription, PushConfig pushConfig) { - ModifyPushConfigRequest request = ModifyPushConfigRequest.newBuilder() .setSubscription(subscription) @@ -1545,7 +1531,6 @@ public final UnaryCallable listSnap */ public final Snapshot createSnapshot( ProjectSnapshotName name, ProjectSubscriptionName subscription) { - CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1594,7 +1579,6 @@ public final Snapshot createSnapshot( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Snapshot createSnapshot(String name, String subscription) { - CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder().setName(name).setSubscription(subscription).build(); return createSnapshot(request); @@ -1773,7 +1757,6 @@ public final UnaryCallable updateSnapshotCallab * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSnapshot(ProjectSnapshotName snapshot) { - DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder() .setSnapshot(snapshot == null ? null : snapshot.toString()) @@ -1806,7 +1789,6 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSnapshot(String snapshot) { - DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder().setSnapshot(snapshot).build(); deleteSnapshot(request); @@ -1948,7 +1930,6 @@ public final UnaryCallable seekCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); return setIamPolicy(request); @@ -2022,7 +2003,6 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); return getIamPolicy(request); } @@ -2102,7 +2082,6 @@ public final UnaryCallable getIamPolicyCallable() { */ public final TestIamPermissionsResponse testIamPermissions( String resource, List permissions) { - TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index dde88d8c2971..fbc3f6b87938 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 6c7b9f1410da..e95bdeaec72d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -198,7 +198,6 @@ public PublisherStub getStub() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Topic createTopic(ProjectTopicName name) { - Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); return createTopic(request); } @@ -226,7 +225,6 @@ public final Topic createTopic(ProjectTopicName name) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Topic createTopic(String name) { - Topic request = Topic.newBuilder().setName(name).build(); return createTopic(request); } @@ -354,7 +352,6 @@ public final UnaryCallable updateTopicCallable() { */ /* package-private */ final PublishResponse publish( ProjectTopicName topic, List messages) { - PublishRequest request = PublishRequest.newBuilder() .setTopic(topic == null ? null : topic.toString()) @@ -387,7 +384,6 @@ public final UnaryCallable updateTopicCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final PublishResponse publish(String topic, List messages) { - PublishRequest request = PublishRequest.newBuilder().setTopic(topic).addAllMessages(messages).build(); return publish(request); @@ -467,7 +463,6 @@ public final UnaryCallable updateTopicCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Topic getTopic(ProjectTopicName topic) { - GetTopicRequest request = GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); return getTopic(request); @@ -490,7 +485,6 @@ public final Topic getTopic(ProjectTopicName topic) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Topic getTopic(String topic) { - GetTopicRequest request = GetTopicRequest.newBuilder().setTopic(topic).build(); return getTopic(request); } @@ -826,7 +820,6 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteTopic(ProjectTopicName topic) { - DeleteTopicRequest request = DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); deleteTopic(request); @@ -852,7 +845,6 @@ public final void deleteTopic(ProjectTopicName topic) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteTopic(String topic) { - DeleteTopicRequest request = DeleteTopicRequest.newBuilder().setTopic(topic).build(); deleteTopic(request); } @@ -930,7 +922,6 @@ public final UnaryCallable deleteTopicCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); return setIamPolicy(request); @@ -1004,7 +995,6 @@ public final UnaryCallable setIamPolicyCallable() { * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); return getIamPolicy(request); } @@ -1084,7 +1074,6 @@ public final UnaryCallable getIamPolicyCallable() { */ public final TestIamPermissionsResponse testIamPermissions( String resource, List permissions) { - TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() .setResource(resource) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 89cb0256ac23..994e408687eb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index aee1ff680434..34f5b032f101 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index 8cfb399722da..20fc4d92c3c2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index bd218ee4816c..1bf3e90da871 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 077a1e9322aa..e827ead041e3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index e83badf66798..828550c5511b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 51fe9adb7498..6f4905ef175d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 055216817f51..840f8b942959 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index b8860a5e9fcb..e43a35a638a3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 33b4fe1edc66..1a488045fda1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java index 353aee4679ed..09850727dd74 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index 4461c56653aa..4c32d64c9dcb 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java index 5fedd620003c..21f3fb52779d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 65a379ff7f99..a8c18fb046e0 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java index be46f47f7cf5..2f630508d537 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index c59de7ed7c91..2e9e647e6eee 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index e00018feb493..dbb7c06cffe4 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 44312eb1ba76..390bec08404e 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java index e9c579b02990..eb257958f514 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 35c21cb68de9..a6bd3da5586f 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2020-01-07T08:56:50.740953Z", + "updateTime": "2020-01-14T21:33:24.895860Z", "sources": [ { "generator": { "name": "artman", - "version": "0.43.0", - "dockerImage": "googleapis/artman@sha256:264654a37596a44b0668b8ce6ac41082d713f6ee150b3fc6425fa78cc64e4f20" + "version": "0.44.0", + "dockerImage": "googleapis/artman@sha256:10a6d0342b8d62544810ac5ad86c3b21049ec0696608ac60175da8e513234344" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "cb79155f596e0396dd900da93872be7066f6340d", - "internalRef": "288441307" + "sha": "d99df0d67057a233c711187e0689baa4f8e6333d", + "internalRef": "289709813" } }, { @@ -35,703 +35,5 @@ "config": "google/pubsub/artman_pubsub.yaml" } } - ], - "newFiles": [ - { - "path": ".repo-metadata.json" - }, - { - "path": "renovate.json" - }, - { - "path": "license-checks.xml" - }, - { - "path": "synth.py" - }, - { - "path": "CHANGELOG.md" - }, - { - "path": "codecov.yaml" - }, - { - "path": "LICENSE" - }, - { - "path": ".gitignore" - }, - { - "path": "pom.xml" - }, - { - "path": "CODE_OF_CONDUCT.md" - }, - { - "path": "synth.metadata" - }, - { - "path": "README.md" - }, - { - "path": "versions.txt" - }, - { - "path": "CONTRIBUTING.md" - }, - { - "path": "java.header" - }, - { - "path": "google-cloud-pubsub-bom/pom.xml" - }, - { - "path": ".kokoro/build.bat" - }, - { - "path": ".kokoro/build.sh" - }, - { - "path": ".kokoro/dependencies.sh" - }, - { - "path": ".kokoro/common.cfg" - }, - { - "path": ".kokoro/trampoline.sh" - }, - { - "path": ".kokoro/coerce_logs.sh" - }, - { - "path": ".kokoro/linkage-monitor.sh" - }, - { - "path": ".kokoro/continuous/dependencies.cfg" - }, - { - "path": ".kokoro/continuous/samples.cfg" - }, - { - "path": ".kokoro/continuous/java7.cfg" - }, - { - "path": ".kokoro/continuous/java8-osx.cfg" - }, - { - "path": ".kokoro/continuous/java8-win.cfg" - }, - { - "path": ".kokoro/continuous/propose_release.sh" - }, - { - "path": ".kokoro/continuous/lint.cfg" - }, - { - "path": ".kokoro/continuous/java11.cfg" - }, - { - "path": ".kokoro/continuous/common.cfg" - }, - { - "path": ".kokoro/continuous/propose_release.cfg" - }, - { - "path": ".kokoro/continuous/java8.cfg" - }, - { - "path": ".kokoro/continuous/integration.cfg" - }, - { - "path": ".kokoro/release/drop.sh" - }, - { - "path": ".kokoro/release/stage.cfg" - }, - { - "path": ".kokoro/release/promote.cfg" - }, - { - "path": ".kokoro/release/publish_javadoc.cfg" - }, - { - "path": ".kokoro/release/bump_snapshot.cfg" - }, - { - "path": ".kokoro/release/promote.sh" - }, - { - "path": ".kokoro/release/stage.sh" - }, - { - "path": ".kokoro/release/snapshot.sh" - }, - { - "path": ".kokoro/release/snapshot.cfg" - }, - { - "path": ".kokoro/release/common.cfg" - }, - { - "path": ".kokoro/release/bump_snapshot.sh" - }, - { - "path": ".kokoro/release/common.sh" - }, - { - "path": ".kokoro/release/drop.cfg" - }, - { - "path": ".kokoro/release/publish_javadoc.sh" - }, - { - "path": ".kokoro/presubmit/dependencies.cfg" - }, - { - "path": ".kokoro/presubmit/samples.cfg" - }, - { - "path": ".kokoro/presubmit/java7.cfg" - }, - { - "path": ".kokoro/presubmit/java8-osx.cfg" - }, - { - "path": ".kokoro/presubmit/linkage-monitor.cfg" - }, - { - "path": ".kokoro/presubmit/java8-win.cfg" - }, - { - "path": ".kokoro/presubmit/lint.cfg" - }, - { - "path": ".kokoro/presubmit/java11.cfg" - }, - { - "path": ".kokoro/presubmit/common.cfg" - }, - { - "path": ".kokoro/presubmit/clirr.cfg" - }, - { - "path": ".kokoro/presubmit/java8.cfg" - }, - { - "path": ".kokoro/presubmit/integration.cfg" - }, - { - "path": ".kokoro/nightly/dependencies.cfg" - }, - { - "path": ".kokoro/nightly/samples.cfg" - }, - { - "path": ".kokoro/nightly/java7.cfg" - }, - { - "path": ".kokoro/nightly/java8-osx.cfg" - }, - { - "path": ".kokoro/nightly/java8-win.cfg" - }, - { - "path": ".kokoro/nightly/lint.cfg" - }, - { - "path": ".kokoro/nightly/java11.cfg" - }, - { - "path": ".kokoro/nightly/common.cfg" - }, - { - "path": ".kokoro/nightly/java8.cfg" - }, - { - "path": ".kokoro/nightly/integration.cfg" - }, - { - "path": ".github/release-please.yml" - }, - { - "path": ".github/PULL_REQUEST_TEMPLATE.md" - }, - { - "path": ".github/ISSUE_TEMPLATE/bug_report.md" - }, - { - "path": ".github/ISSUE_TEMPLATE/support_request.md" - }, - { - "path": ".github/ISSUE_TEMPLATE/feature_request.md" - }, - { - "path": "grpc-google-cloud-pubsub-v1/pom.xml" - }, - { - "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java" - }, - { - "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java" - }, - { - "path": "__pycache__/synth.cpython-36.pyc" - }, - { - "path": "proto-google-cloud-pubsub-v1/pom.xml" - }, - { - "path": "proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java" - }, - { - "path": ".git/index" - }, - { - "path": ".git/packed-refs" - }, - { - "path": ".git/HEAD" - }, - { - "path": ".git/config" - }, - { - "path": ".git/shallow" - }, - { - "path": ".git/objects/pack/pack-2e2ca04a1fe595463b45170d832b7636e7a47843.pack" - }, - { - "path": ".git/objects/pack/pack-2e2ca04a1fe595463b45170d832b7636e7a47843.idx" - }, - { - "path": ".git/refs/remotes/origin/HEAD" - }, - { - "path": ".git/refs/heads/autosynth" - }, - { - "path": ".git/refs/heads/master" - }, - { - "path": ".git/logs/HEAD" - }, - { - "path": ".git/logs/refs/remotes/origin/HEAD" - }, - { - "path": ".git/logs/refs/heads/autosynth" - }, - { - "path": ".git/logs/refs/heads/master" - }, - { - "path": "google-cloud-pubsub/pom.xml" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java" - } ] } \ No newline at end of file From 3ffe48ba4280d39792a67fd7aacbe9e8b6648caf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 15 Jan 2020 18:51:16 +0100 Subject: [PATCH 0282/2363] test(deps): update dependency com.google.truth:truth to v1.0.1 (#64) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c4af9d25527d..cd250ae1c2a5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -207,7 +207,7 @@ com.google.truth truth - 1.0 + 1.0.1 test From 7e487840adcb4e5ed53b5de2465ff08ab0e872b1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 17 Jan 2020 09:39:36 -0800 Subject: [PATCH 0283/2363] chore(regen): update common renovate configuration --- java-pubsub/renovate.json | 6 + java-pubsub/synth.metadata | 659 ++++++++++++++++++++++++++++++++++++- 2 files changed, 662 insertions(+), 3 deletions(-) diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index f3a70c9703f1..a5cdff45c319 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -58,6 +58,12 @@ "^com.google.cloud:google-cloud-" ], "ignoreUnstable": false + }, + { + "packagePatterns": [ + "^com.fasterxml.jackson.core" + ], + "groupName": "jackson dependencies" } ], "semanticCommits": true diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index a6bd3da5586f..4aaf4b199348 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2020-01-14T21:33:24.895860Z", + "updateTime": "2020-01-16T08:57:17.103047Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d99df0d67057a233c711187e0689baa4f8e6333d", - "internalRef": "289709813" + "sha": "0735b4b096872960568d1f366bfa75b7b0e1f1a3", + "internalRef": "289939042" } }, { @@ -35,5 +35,658 @@ "config": "google/pubsub/artman_pubsub.yaml" } } + ], + "newFiles": [ + { + "path": "pom.xml" + }, + { + "path": ".repo-metadata.json" + }, + { + "path": "java.header" + }, + { + "path": "CONTRIBUTING.md" + }, + { + "path": "synth.metadata" + }, + { + "path": "renovate.json" + }, + { + "path": "versions.txt" + }, + { + "path": "synth.py" + }, + { + "path": "license-checks.xml" + }, + { + "path": "CHANGELOG.md" + }, + { + "path": "CODE_OF_CONDUCT.md" + }, + { + "path": "LICENSE" + }, + { + "path": "codecov.yaml" + }, + { + "path": ".gitignore" + }, + { + "path": "README.md" + }, + { + "path": "google-cloud-pubsub-bom/pom.xml" + }, + { + "path": ".github/release-please.yml" + }, + { + "path": ".github/PULL_REQUEST_TEMPLATE.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/feature_request.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/support_request.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/bug_report.md" + }, + { + "path": "google-cloud-pubsub/pom.xml" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" + }, + { + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java" + }, + { + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java" + }, + { + "path": ".kokoro/build.sh" + }, + { + "path": ".kokoro/common.cfg" + }, + { + "path": ".kokoro/build.bat" + }, + { + "path": ".kokoro/linkage-monitor.sh" + }, + { + "path": ".kokoro/coerce_logs.sh" + }, + { + "path": ".kokoro/dependencies.sh" + }, + { + "path": ".kokoro/trampoline.sh" + }, + { + "path": ".kokoro/continuous/samples.cfg" + }, + { + "path": ".kokoro/continuous/java8.cfg" + }, + { + "path": ".kokoro/continuous/integration.cfg" + }, + { + "path": ".kokoro/continuous/java11.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.cfg" + }, + { + "path": ".kokoro/continuous/common.cfg" + }, + { + "path": ".kokoro/continuous/propose_release.sh" + }, + { + "path": ".kokoro/continuous/java7.cfg" + }, + { + "path": ".kokoro/continuous/lint.cfg" + }, + { + "path": ".kokoro/continuous/java8-osx.cfg" + }, + { + "path": ".kokoro/continuous/dependencies.cfg" + }, + { + "path": ".kokoro/continuous/java8-win.cfg" + }, + { + "path": ".kokoro/nightly/samples.cfg" + }, + { + "path": ".kokoro/nightly/java8.cfg" + }, + { + "path": ".kokoro/nightly/integration.cfg" + }, + { + "path": ".kokoro/nightly/java11.cfg" + }, + { + "path": ".kokoro/nightly/common.cfg" + }, + { + "path": ".kokoro/nightly/java7.cfg" + }, + { + "path": ".kokoro/nightly/lint.cfg" + }, + { + "path": ".kokoro/nightly/java8-osx.cfg" + }, + { + "path": ".kokoro/nightly/dependencies.cfg" + }, + { + "path": ".kokoro/nightly/java8-win.cfg" + }, + { + "path": ".kokoro/release/publish_javadoc.cfg" + }, + { + "path": ".kokoro/release/common.sh" + }, + { + "path": ".kokoro/release/promote.sh" + }, + { + "path": ".kokoro/release/common.cfg" + }, + { + "path": ".kokoro/release/publish_javadoc.sh" + }, + { + "path": ".kokoro/release/drop.sh" + }, + { + "path": ".kokoro/release/stage.sh" + }, + { + "path": ".kokoro/release/promote.cfg" + }, + { + "path": ".kokoro/release/snapshot.cfg" + }, + { + "path": ".kokoro/release/bump_snapshot.cfg" + }, + { + "path": ".kokoro/release/drop.cfg" + }, + { + "path": ".kokoro/release/bump_snapshot.sh" + }, + { + "path": ".kokoro/release/stage.cfg" + }, + { + "path": ".kokoro/release/snapshot.sh" + }, + { + "path": ".kokoro/presubmit/samples.cfg" + }, + { + "path": ".kokoro/presubmit/java8.cfg" + }, + { + "path": ".kokoro/presubmit/integration.cfg" + }, + { + "path": ".kokoro/presubmit/java11.cfg" + }, + { + "path": ".kokoro/presubmit/linkage-monitor.cfg" + }, + { + "path": ".kokoro/presubmit/common.cfg" + }, + { + "path": ".kokoro/presubmit/java7.cfg" + }, + { + "path": ".kokoro/presubmit/lint.cfg" + }, + { + "path": ".kokoro/presubmit/java8-osx.cfg" + }, + { + "path": ".kokoro/presubmit/dependencies.cfg" + }, + { + "path": ".kokoro/presubmit/clirr.cfg" + }, + { + "path": ".kokoro/presubmit/java8-win.cfg" + }, + { + "path": "proto-google-cloud-pubsub-v1/pom.xml" + }, + { + "path": "proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java" + }, + { + "path": "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto" + }, + { + "path": "grpc-google-cloud-pubsub-v1/pom.xml" + }, + { + "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java" + }, + { + "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java" + } ] } \ No newline at end of file From 5f5f2e49fb01d916e8a9d45abfe67b4c9027d260 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 23 Jan 2020 11:10:49 -0800 Subject: [PATCH 0284/2363] chore(regen): regenerate with updated license year --- .../com/google/pubsub/v1/PublisherGrpc.java | 2 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 2 +- .../google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../v1/AcknowledgeRequestOrBuilder.java | 2 +- .../pubsub/v1/CreateSnapshotRequest.java | 2 +- .../v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../DeleteSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../v1/DeleteTopicRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeletedTopic.java | 2 +- .../google/pubsub/v1/ExpirationPolicy.java | 2 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../v1/GetSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/GetSubscriptionRequest.java | 2 +- .../v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsRequest.java | 2 +- .../v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsResponse.java | 2 +- .../v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../ListSubscriptionsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsRequest.java | 2 +- ...istTopicSubscriptionsRequestOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsResponse.java | 2 +- ...stTopicSubscriptionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsRequest.java | 2 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsResponse.java | 2 +- .../v1/ListTopicsResponseOrBuilder.java | 2 +- .../pubsub/v1/MessageStoragePolicy.java | 2 +- .../v1/MessageStoragePolicyOrBuilder.java | 2 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ProjectName.java | 2 +- .../google/pubsub/v1/ProjectSnapshotName.java | 2 +- .../pubsub/v1/ProjectSubscriptionName.java | 2 +- .../google/pubsub/v1/ProjectTopicName.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 2 +- .../pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishResponse.java | 2 +- .../pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubMessage.java | 2 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 2 +- .../com/google/pubsub/v1/PullRequest.java | 2 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PullResponse.java | 2 +- .../pubsub/v1/PullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PushConfig.java | 2 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/SeekRequest.java | 2 +- .../pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/SeekResponse.java | 2 +- .../pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Snapshot.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullRequest.java | 2 +- .../v1/StreamingPullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 2 +- .../v1/StreamingPullResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 2 +- .../pubsub/v1/SubscriptionOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Topic.java | 2 +- .../java/com/google/pubsub/v1/TopicName.java | 2 +- .../java/com/google/pubsub/v1/TopicNames.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../google/pubsub/v1/UntypedTopicName.java | 2 +- .../pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../UpdateSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../v1/UpdateTopicRequestOrBuilder.java | 2 +- java-pubsub/synth.metadata | 443 +++++++++--------- 92 files changed, 313 insertions(+), 312 deletions(-) diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index d810fe6837e4..3c49b66e02ad 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index f07b9dad4a39..82a0a2410c29 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 6c1e7b981995..255a051ac151 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 0343de31cba3..ac5b4efdd9ac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 19895fb93dbe..c4a40ae47f5d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index dcca28d0b377..eefe89cf6c1d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 12d7f9693613..bb6cec0b3d1a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 1249b76c9124..1e3060f7b618 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index c71c108622ef..d10e9b1f6032 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 4f63568e388c..4ae6a394fb90 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 21a9d5affeea..dd9a525a0530 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index a5e0170cdfa6..9bdbad658315 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 10b5587e061f..e9064e512dea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 6d8aabaae298..b086d4f1bf1c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java index d897f8ebf24c..a0b52bae5afa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 30ce204ff898..b77609e2eb1b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 38e2a2579fee..ac04be2f73d2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 4e9c6619e2a5..4ed2639ba39c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index aca224b95d02..752610f47b4d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 6ff74f94fca5..8c8811027864 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 9b8925a012c6..44c6441eecdc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 4c2fa3f0713b..916c965b95ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 81cf7f2ffdbd..1f8fb5fa096b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 331995e5a507..cfe49ec732b1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 4d1fa2769df2..fa9b053f15be 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 485c8a0e9043..9a7fd3cff164 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index eec9de594370..bbbf2955d158 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 303b4bd20cbc..e573ebf2387b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 9b790f28f415..b509d22fb53a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 43c81d113bb8..b9c4f2451114 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 5f61bb9fb036..1dcf23dd0835 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 010e623e0fbf..353db10713bb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 912bade7542c..484ea34c2392 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index d5f375a75eb6..86521700f925 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 682fbd0dda22..778a800084e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index f88382e995b0..4e1dfb65568e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 393024d6670d..4fe1e834c0b0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index e7f0ca60636e..575d2509c88d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 8affb19488c7..0f10a3a1a80e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index f993326bc5a3..5988917646d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index e2142d043776..d50a0a8298b6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 086d491e9676..d9b660532651 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 6b0e73133454..c29de35145b2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 1255493d9226..64ae300e9eae 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 1e79cc370a5d..e606797dc128 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 3d419a3a0130..241e37892be5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 22a6ef8be948..2c991e59a36c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index a29f68e8cfde..c3b79e3b6751 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 21e95de35d54..97926658c6c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index e514b0f5560d..42c0ab61f027 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java index 43456a24f1e8..1e85333b95ac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java index bd0495ecc3fe..aea87e011ac1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java index 4c97854bad5a..fb6494ee0b6b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 47db6aa0cfb3..6fb2f43784f8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 4cdc2155d3ea..9b4e977074a7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index f8222cff4514..750a740229c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 886050e1075b..27dbe63f8802 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 30b99042a1ae..5cbbee2df015 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 02050012503f..93531bfbdc63 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index e6cbbf244009..ba9c69e6a512 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index e3d23ffb1569..5e5040d3ba22 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 4792568b2936..560e86987b76 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 103c3477bbf4..6e66eb427ddf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 98b2fdc53745..f7843870eeea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 84ec768d3b59..e461881d52fb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 61b8fc37afeb..873e0074ac83 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index d93d1440deb8..b366d91da7d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 0ddf85a86bcb..eb54e43f1a96 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index dd30455563bf..c4b9d62d3a94 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index d489a80fe521..3d23318fbdde 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 641896e2c10e..3ced96f97f82 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 26ea9f8dbfa1..5cdd14219fc4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 615501ce9a97..b87a227bedce 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 7da8ae7b0761..be8ea184df85 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 29d7669633bb..b2cacde5de32 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 0f723d0e323f..1da8cde9533f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index e4ae584480f2..a2e4ad7de1e9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 29dfabe8aa97..1bed73f42c67 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index aa66421a93cc..468e9b2cccb6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index e7203d0d9925..7b2e4648a8df 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 014dcd27c30c..3d29b4fa3153 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 7e8edb26111c..ea20fdd47ec2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java index f983032bb439..8d56e3e87427 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index ca36dc226de4..a2d605d8c2c2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java index 77cacb08c484..3dd3deea5b78 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 07d43bdc8dda..79176925b5b6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index a4a2fe03239c..927d77a34ff1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index b2a2566dd04b..17af60e84a42 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index ce6cc6279b00..c2d12b0fea52 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 50d40bef9993..8337a5583695 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 482baef497d6..3599ba6669e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google LLC + * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 4aaf4b199348..24abf49c4b4f 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,19 +1,20 @@ { - "updateTime": "2020-01-16T08:57:17.103047Z", + "updateTime": "2020-01-23T08:56:37.849196Z", "sources": [ { "generator": { "name": "artman", - "version": "0.44.0", - "dockerImage": "googleapis/artman@sha256:10a6d0342b8d62544810ac5ad86c3b21049ec0696608ac60175da8e513234344" + "version": "0.44.1", + "dockerImage": "googleapis/artman@sha256:5599b61e56a372d21b671969ee915fbca0f6c3a0daaeb898d01f8f685f1bbc8b" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0735b4b096872960568d1f366bfa75b7b0e1f1a3", - "internalRef": "289939042" + "sha": "8d16f76de065f530d395a4c7eabbf766d6a120fd", + "internalRef": "291008516", + "log": "8d16f76de065f530d395a4c7eabbf766d6a120fd\nGenerate Memcache v1beta2 API protos and gRPC ServiceConfig files\n\nPiperOrigin-RevId: 291008516\n\n3af1dabd93df9a9f17bf3624d3b875c11235360b\ngrafeas: Add containeranalysis default_host to Grafeas service\n\nPiperOrigin-RevId: 290965849\n\nbe2663fa95e31cba67d0cd62611a6674db9f74b7\nfix(google/maps/roads): add missing opening bracket\n\nPiperOrigin-RevId: 290964086\n\nfacc26550a0af0696e0534bc9cae9df14275aa7c\nUpdating v2 protos with the latest inline documentation (in comments) and adding a per-service .yaml file.\n\nPiperOrigin-RevId: 290952261\n\ncda99c1f7dc5e4ca9b1caeae1dc330838cbc1461\nChange api_name to 'asset' for v1p1beta1\n\nPiperOrigin-RevId: 290800639\n\n94e9e90c303a820ce40643d9129e7f0d2054e8a1\nAdds Google Maps Road service\n\nPiperOrigin-RevId: 290795667\n\na3b23dcb2eaecce98c600c7d009451bdec52dbda\nrpc: new message ErrorInfo, other comment updates\n\nPiperOrigin-RevId: 290781668\n\n26420ef4e46c37f193c0fbe53d6ebac481de460e\nAdd proto definition for Org Policy v1.\n\nPiperOrigin-RevId: 290771923\n\n7f0dab8177cf371ae019a082e2512de7ac102888\nPublish Routes Preferred API v1 service definitions.\n\nPiperOrigin-RevId: 290326986\n\nad6e508d0728e1d1bca6e3f328cd562718cb772d\nFix: Qualify resource type references with \"jobs.googleapis.com/\"\n\nPiperOrigin-RevId: 290285762\n\n58e770d568a2b78168ddc19a874178fee8265a9d\ncts client library\n\nPiperOrigin-RevId: 290146169\n\naf9daa4c3b4c4a8b7133b81588dd9ffd37270af2\nAdd more programming language options to public proto\n\nPiperOrigin-RevId: 290144091\n\nd9f2bbf2df301ef84641d4cec7c828736a0bd907\ntalent: add missing resource.proto dep to Bazel build target\n\nPiperOrigin-RevId: 290143164\n\n3b3968237451d027b42471cd28884a5a1faed6c7\nAnnotate Talent API.\nAdd gRPC service config for retry.\nUpdate bazel file with google.api.resource dependency.\n\nPiperOrigin-RevId: 290125172\n\n" } }, { @@ -38,655 +39,655 @@ ], "newFiles": [ { - "path": "pom.xml" + "path": ".github/ISSUE_TEMPLATE/bug_report.md" }, { - "path": ".repo-metadata.json" + "path": ".github/ISSUE_TEMPLATE/feature_request.md" }, { - "path": "java.header" + "path": ".github/ISSUE_TEMPLATE/support_request.md" }, { - "path": "CONTRIBUTING.md" + "path": ".github/PULL_REQUEST_TEMPLATE.md" }, { - "path": "synth.metadata" + "path": ".github/release-please.yml" }, { - "path": "renovate.json" + "path": ".gitignore" }, { - "path": "versions.txt" + "path": ".kokoro/build.bat" }, { - "path": "synth.py" + "path": ".kokoro/build.sh" }, { - "path": "license-checks.xml" + "path": ".kokoro/coerce_logs.sh" }, { - "path": "CHANGELOG.md" + "path": ".kokoro/common.cfg" }, { - "path": "CODE_OF_CONDUCT.md" + "path": ".kokoro/continuous/common.cfg" }, { - "path": "LICENSE" + "path": ".kokoro/continuous/dependencies.cfg" }, { - "path": "codecov.yaml" + "path": ".kokoro/continuous/integration.cfg" }, { - "path": ".gitignore" + "path": ".kokoro/continuous/java11.cfg" }, { - "path": "README.md" + "path": ".kokoro/continuous/java7.cfg" }, { - "path": "google-cloud-pubsub-bom/pom.xml" + "path": ".kokoro/continuous/java8-osx.cfg" }, { - "path": ".github/release-please.yml" + "path": ".kokoro/continuous/java8-win.cfg" }, { - "path": ".github/PULL_REQUEST_TEMPLATE.md" + "path": ".kokoro/continuous/java8.cfg" }, { - "path": ".github/ISSUE_TEMPLATE/feature_request.md" + "path": ".kokoro/continuous/lint.cfg" }, { - "path": ".github/ISSUE_TEMPLATE/support_request.md" + "path": ".kokoro/continuous/propose_release.cfg" }, { - "path": ".github/ISSUE_TEMPLATE/bug_report.md" + "path": ".kokoro/continuous/propose_release.sh" }, { - "path": "google-cloud-pubsub/pom.xml" + "path": ".kokoro/continuous/samples.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java" + "path": ".kokoro/dependencies.sh" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" + "path": ".kokoro/linkage-monitor.sh" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" + "path": ".kokoro/nightly/common.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java" + "path": ".kokoro/nightly/dependencies.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" + "path": ".kokoro/nightly/integration.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" + "path": ".kokoro/nightly/java11.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" + "path": ".kokoro/nightly/java7.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java" + "path": ".kokoro/nightly/java8-osx.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" + "path": ".kokoro/nightly/java8-win.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" + "path": ".kokoro/nightly/java8.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java" + "path": ".kokoro/nightly/lint.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java" + "path": ".kokoro/nightly/samples.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" + "path": ".kokoro/presubmit/clirr.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java" + "path": ".kokoro/presubmit/common.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java" + "path": ".kokoro/presubmit/dependencies.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java" + "path": ".kokoro/presubmit/integration.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java" + "path": ".kokoro/presubmit/java11.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" + "path": ".kokoro/presubmit/java7.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" + "path": ".kokoro/presubmit/java8-osx.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" + "path": ".kokoro/presubmit/java8-win.cfg" }, { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" + "path": ".kokoro/presubmit/java8.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java" + "path": ".kokoro/presubmit/linkage-monitor.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" + "path": ".kokoro/presubmit/lint.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" + "path": ".kokoro/presubmit/samples.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" + "path": ".kokoro/release/bump_snapshot.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" + "path": ".kokoro/release/bump_snapshot.sh" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java" + "path": ".kokoro/release/common.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java" + "path": ".kokoro/release/common.sh" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" + "path": ".kokoro/release/drop.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" + "path": ".kokoro/release/drop.sh" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" + "path": ".kokoro/release/promote.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java" + "path": ".kokoro/release/promote.sh" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java" + "path": ".kokoro/release/publish_javadoc.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" + "path": ".kokoro/release/publish_javadoc.sh" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" + "path": ".kokoro/release/snapshot.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" + "path": ".kokoro/release/snapshot.sh" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java" + "path": ".kokoro/release/stage.cfg" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java" + "path": ".kokoro/release/stage.sh" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java" + "path": ".kokoro/trampoline.sh" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java" + "path": ".repo-metadata.json" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java" + "path": "CHANGELOG.md" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java" + "path": "CODE_OF_CONDUCT.md" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java" + "path": "CONTRIBUTING.md" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java" + "path": "LICENSE" }, { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java" + "path": "README.md" }, { - "path": ".kokoro/build.sh" + "path": "codecov.yaml" }, { - "path": ".kokoro/common.cfg" + "path": "google-cloud-pubsub-bom/pom.xml" }, { - "path": ".kokoro/build.bat" + "path": "google-cloud-pubsub/pom.xml" }, { - "path": ".kokoro/linkage-monitor.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" }, { - "path": ".kokoro/coerce_logs.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" }, { - "path": ".kokoro/dependencies.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" }, { - "path": ".kokoro/trampoline.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java" }, { - "path": ".kokoro/continuous/samples.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" }, { - "path": ".kokoro/continuous/java8.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" }, { - "path": ".kokoro/continuous/integration.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" }, { - "path": ".kokoro/continuous/java11.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" }, { - "path": ".kokoro/continuous/propose_release.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" }, { - "path": ".kokoro/continuous/common.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" }, { - "path": ".kokoro/continuous/propose_release.sh" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" }, { - "path": ".kokoro/continuous/java7.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java" }, { - "path": ".kokoro/continuous/lint.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java" }, { - "path": ".kokoro/continuous/java8-osx.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java" }, { - "path": ".kokoro/continuous/dependencies.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java" }, { - "path": ".kokoro/continuous/java8-win.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java" }, { - "path": ".kokoro/nightly/samples.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java" }, { - "path": ".kokoro/nightly/java8.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java" }, { - "path": ".kokoro/nightly/integration.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java" }, { - "path": ".kokoro/nightly/java11.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java" }, { - "path": ".kokoro/nightly/common.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java" }, { - "path": ".kokoro/nightly/java7.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java" }, { - "path": ".kokoro/nightly/lint.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java" }, { - "path": ".kokoro/nightly/java8-osx.cfg" + "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java" }, { - "path": ".kokoro/nightly/dependencies.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" }, { - "path": ".kokoro/nightly/java8-win.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" }, { - "path": ".kokoro/release/publish_javadoc.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" }, { - "path": ".kokoro/release/common.sh" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" }, { - "path": ".kokoro/release/promote.sh" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" }, { - "path": ".kokoro/release/common.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" }, { - "path": ".kokoro/release/publish_javadoc.sh" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java" }, { - "path": ".kokoro/release/drop.sh" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java" }, { - "path": ".kokoro/release/stage.sh" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java" }, { - "path": ".kokoro/release/promote.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java" }, { - "path": ".kokoro/release/snapshot.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java" }, { - "path": ".kokoro/release/bump_snapshot.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java" }, { - "path": ".kokoro/release/drop.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java" }, { - "path": ".kokoro/release/bump_snapshot.sh" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" }, { - "path": ".kokoro/release/stage.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" }, { - "path": ".kokoro/release/snapshot.sh" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" }, { - "path": ".kokoro/presubmit/samples.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" }, { - "path": ".kokoro/presubmit/java8.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" }, { - "path": ".kokoro/presubmit/integration.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java" }, { - "path": ".kokoro/presubmit/java11.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java" }, { - "path": ".kokoro/presubmit/linkage-monitor.cfg" + "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" }, { - "path": ".kokoro/presubmit/common.cfg" + "path": "grpc-google-cloud-pubsub-v1/pom.xml" }, { - "path": ".kokoro/presubmit/java7.cfg" + "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java" }, { - "path": ".kokoro/presubmit/lint.cfg" + "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java" }, { - "path": ".kokoro/presubmit/java8-osx.cfg" + "path": "java.header" }, { - "path": ".kokoro/presubmit/dependencies.cfg" + "path": "license-checks.xml" }, { - "path": ".kokoro/presubmit/clirr.cfg" + "path": "pom.xml" }, { - "path": ".kokoro/presubmit/java8-win.cfg" + "path": "proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml" }, { "path": "proto-google-cloud-pubsub-v1/pom.xml" }, { - "path": "proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java" + "path": "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto" }, { - "path": "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto" + "path": "renovate.json" }, { - "path": "grpc-google-cloud-pubsub-v1/pom.xml" + "path": "synth.metadata" }, { - "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java" + "path": "synth.py" }, { - "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java" + "path": "versions.txt" } ] } \ No newline at end of file From 103af42c844d45fe8aeb4d302c882bb35ded0c05 Mon Sep 17 00:00:00 2001 From: desmond Date: Wed, 29 Jan 2020 14:18:04 -0500 Subject: [PATCH 0285/2363] chore: fix error message in MessageDispatcher (#47) --- .../main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 34b482cd855a..e22c6130ff8f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -152,7 +152,7 @@ private void forget() { public void onFailure(Throwable t) { logger.log( Level.WARNING, - "MessageReceiver failed to processes ack ID: " + ackId + ", the message will be nacked.", + "MessageReceiver failed to process ack ID: " + ackId + ", the message will be nacked.", t); pendingNacks.add(ackId); forget(); From 82a4ba837516b433c682eb6efae6428e61ad5ab8 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Thu, 30 Jan 2020 11:37:15 -0500 Subject: [PATCH 0286/2363] fix: removing delivery attempt attribute when dead lettering is not enabled (#72) * fix: creating fix to not populate delivery attempt attribute when dead lettering is not enabled * Adding unit test for case in which a received message has no delivery attempt --- .../cloud/pubsub/v1/MessageDispatcher.java | 14 ++++++--- .../google/cloud/pubsub/v1/Subscriber.java | 7 +++-- .../pubsub/v1/MessageDispatcherTest.java | 30 +++++++++++++++++-- .../cloud/pubsub/v1/SubscriberTest.java | 5 ++-- 4 files changed, 46 insertions(+), 10 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index e22c6130ff8f..56fa8a3a9115 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -346,10 +346,16 @@ private void processBatch(List batch) { } private PubsubMessage addDeliveryInfoCount(ReceivedMessage receivedMessage) { - return PubsubMessage.newBuilder(receivedMessage.getMessage()) - .putAttributes( - "googclient_deliveryattempt", Integer.toString(receivedMessage.getDeliveryAttempt())) - .build(); + PubsubMessage originalMessage = receivedMessage.getMessage(); + int deliveryAttempt = receivedMessage.getDeliveryAttempt(); + // Delivery Attempt will be set to 0 if DeadLetterPolicy is not set on the subscription. In + // this case, do not populate the PubsubMessage with the delivery attempt attribute. + if (deliveryAttempt > 0) { + return PubsubMessage.newBuilder(originalMessage) + .putAttributes("googclient_deliveryattempt", Integer.toString(deliveryAttempt)) + .build(); + } + return originalMessage; } private void processOutstandingMessage(final PubsubMessage message, final AckHandler ackHandler) { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 422a0577f06e..2deafb2e7d1e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -207,8 +207,11 @@ public static Builder newBuilder(String subscription, MessageReceiver receiver) } /** Returns the delivery attempt count for a received {@link PubsubMessage} */ - public static int getDeliveryAttempt(PubsubMessage message) { - return Integer.parseInt(message.getAttributesOrDefault("googclient_deliveryattempt", "0")); + public static Integer getDeliveryAttempt(PubsubMessage message) { + if (!message.containsAttributes("googclient_deliveryattempt")) { + return null; + } + return Integer.parseInt(message.getAttributesOrThrow("googclient_deliveryattempt")); } /** Subscription which the subscriber is subscribed to. */ diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index b84e82c8c13b..1745b370b28c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -17,6 +17,8 @@ package com.google.cloud.pubsub.v1; import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; @@ -59,6 +61,7 @@ public void run() { private List sentModAcks; private FakeClock clock; private FlowController flowController; + private boolean messageContainsDeliveryAttempt; @AutoValue abstract static class ModAckItem { @@ -82,8 +85,13 @@ public void setUp() { @Override public void receiveMessage(final PubsubMessage message, final AckReplyConsumer consumer) { assertThat(message.getData()).isEqualTo(MESSAGE_DATA); - assertThat(message.getAttributesOrThrow("googclient_deliveryattempt")) - .isEqualTo(Integer.toString(DELIVERY_INFO_COUNT)); + if (messageContainsDeliveryAttempt) { + assertTrue(message.containsAttributes("googclient_deliveryattempt")); + assertThat(message.getAttributesOrThrow("googclient_deliveryattempt")) + .isEqualTo(Integer.toString(DELIVERY_INFO_COUNT)); + } else { + assertFalse(message.containsAttributes("googclient_deliveryattempt")); + } consumers.add(consumer); } }; @@ -126,6 +134,8 @@ public void sendAckOperations( systemExecutor, clock); dispatcher.setMessageDeadlineSeconds(Subscriber.MIN_ACK_DEADLINE_SECONDS); + + messageContainsDeliveryAttempt = true; } @Test @@ -136,6 +146,22 @@ public void testReceipt() { .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); } + @Test + public void testReceiptNoDeliveryAttempt() { + messageContainsDeliveryAttempt = false; + ReceivedMessage messageNoDeliveryAttempt = + ReceivedMessage.newBuilder() + .setAckId("ackid") + .setMessage(PubsubMessage.newBuilder().setData(MESSAGE_DATA).build()) + .build(); + dispatcher.processReceivedMessages(Collections.singletonList(messageNoDeliveryAttempt)); + dispatcher.processOutstandingAckOperations(); + assertThat(sentModAcks) + .contains( + ModAckItem.of( + messageNoDeliveryAttempt.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); + } + @Test public void testAck() throws Exception { dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 8f8489f216e6..95ad58d80207 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -86,15 +86,16 @@ public void tearDown() throws Exception { @Test public void testDeliveryAttemptHelper() { - int deliveryAttempt = 3; + Integer deliveryAttempt = 3; PubsubMessage message = PubsubMessage.newBuilder() .putAttributes("googclient_deliveryattempt", Integer.toString(deliveryAttempt)) .build(); assertEquals(Subscriber.getDeliveryAttempt(message), deliveryAttempt); + // In the case where delivery attempt attribute is not populated, expect null PubsubMessage emptyMessage = PubsubMessage.newBuilder().build(); - assertEquals(Subscriber.getDeliveryAttempt(emptyMessage), 0); + assertEquals(Subscriber.getDeliveryAttempt(emptyMessage), null); } @Test From 480a29b82deaac9668ab29b712d8afc486f01769 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 31 Jan 2020 01:33:06 +0100 Subject: [PATCH 0287/2363] deps: update dependency com.google.http-client:google-http-client-bom to v1.34.1 (#71) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index cd250ae1c2a5..9ec29e6ea8d3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -75,7 +75,7 @@ 1.4.1 1.3.2 2.3.4 - 1.34.0 + 1.34.1 1.18 1.7 0.24.0 From 4ae3ae0449fc24e59ef7b5dc61bad595189821ef Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 31 Jan 2020 06:00:23 -0800 Subject: [PATCH 0288/2363] chore: re-generated to pick up changes in the API or client library generator (#75) --- .../pubsub/v1/SubscriptionAdminClient.java | 8 +- .../pubsub/v1/CreateSnapshotRequest.java | 91 ++- .../v1/CreateSnapshotRequestOrBuilder.java | 26 +- .../com/google/pubsub/v1/PubsubMessage.java | 103 ++- .../pubsub/v1/PubsubMessageOrBuilder.java | 35 +- .../com/google/pubsub/v1/PubsubProto.java | 243 +++---- .../pubsub/v1/StreamingPullRequest.java | 212 ++++++ .../v1/StreamingPullRequestOrBuilder.java | 35 + .../main/proto/google/pubsub/v1/pubsub.proto | 34 +- java-pubsub/renovate.json | 3 +- java-pubsub/synth.metadata | 665 +----------------- 11 files changed, 543 insertions(+), 912 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 11e97c4f9f61..c1428c1e3d0a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1516,8 +1516,8 @@ public final UnaryCallable listSnap * } *
    * - * @param name Optional 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 + * @param name 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 <a * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name * rules</a>. Format is `projects/{project}/snapshots/{snap}`. @@ -1565,8 +1565,8 @@ public final Snapshot createSnapshot( * } *
    * - * @param name Optional 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 + * @param name 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 <a * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name * rules</a>. Format is `projects/{project}/snapshots/{snap}`. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index c4a40ae47f5d..51c00c2ef8c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -150,13 +150,12 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
    -   * Optional 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
    -   * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -   * resource name rules</a>.
    -   * Format is `projects/{project}/snapshots/{snap}`.
    +   * 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 <a
    +   * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
    +   * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * string name = 1; @@ -178,13 +177,12 @@ public java.lang.String getName() { * * *
    -   * Optional 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
    -   * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -   * resource name rules</a>.
    -   * Format is `projects/{project}/snapshots/{snap}`.
    +   * 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 <a
    +   * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
    +   * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * string name = 1; @@ -744,13 +742,12 @@ public Builder mergeFrom( * * *
    -     * Optional 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
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    -     * Format is `projects/{project}/snapshots/{snap}`.
    +     * 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 <a
    +     * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
    +     * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * string name = 1; @@ -772,13 +769,12 @@ public java.lang.String getName() { * * *
    -     * Optional 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
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    -     * Format is `projects/{project}/snapshots/{snap}`.
    +     * 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 <a
    +     * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
    +     * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * string name = 1; @@ -800,13 +796,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * Optional 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
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    -     * Format is `projects/{project}/snapshots/{snap}`.
    +     * 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 <a
    +     * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
    +     * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * string name = 1; @@ -827,13 +822,12 @@ public Builder setName(java.lang.String value) { * * *
    -     * Optional 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
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    -     * Format is `projects/{project}/snapshots/{snap}`.
    +     * 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 <a
    +     * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
    +     * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * string name = 1; @@ -850,13 +844,12 @@ public Builder clearName() { * * *
    -     * Optional 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
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    -     * Format is `projects/{project}/snapshots/{snap}`.
    +     * 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 <a
    +     * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
    +     * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    * * string name = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index eefe89cf6c1d..f27c2c1c677f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -27,13 +27,12 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * Optional 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
    -   * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -   * resource name rules</a>.
    -   * Format is `projects/{project}/snapshots/{snap}`.
    +   * 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 <a
    +   * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
    +   * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * string name = 1; @@ -45,13 +44,12 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * Optional 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
    -   * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -   * resource name rules</a>.
    -   * Format is `projects/{project}/snapshots/{snap}`.
    +   * 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 <a
    +   * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
    +   * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    * * string name = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 5cbbee2df015..e2240639fdbd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -221,7 +221,8 @@ public int getAttributesCount() { * * *
    -   * Optional attributes for this message.
    +   * Attributes for this message. If this field is empty, the message must
    +   * contain non-empty data.
        * 
    * * map<string, string> attributes = 2; @@ -241,7 +242,8 @@ public java.util.Map getAttributes() { * * *
    -   * Optional attributes for this message.
    +   * Attributes for this message. If this field is empty, the message must
    +   * contain non-empty data.
        * 
    * * map<string, string> attributes = 2; @@ -253,7 +255,8 @@ public java.util.Map getAttributesMap() { * * *
    -   * Optional attributes for this message.
    +   * Attributes for this message. If this field is empty, the message must
    +   * contain non-empty data.
        * 
    * * map<string, string> attributes = 2; @@ -270,7 +273,8 @@ public java.lang.String getAttributesOrDefault( * * *
    -   * Optional attributes for this message.
    +   * Attributes for this message. If this field is empty, the message must
    +   * contain non-empty data.
        * 
    * * map<string, string> attributes = 2; @@ -394,10 +398,12 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * * *
    -   * Identifies related messages for which publish order should be respected.
    -   * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    -   * published with the same `ordering_key` value will be delivered to
    -   * subscribers in the order in which they are received by the Pub/Sub system.
    +   * 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.
        * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
        * API might be changed in backward-incompatible ways and is not recommended
        * for production use. It is not subject to any SLA or deprecation policy.
    @@ -422,10 +428,12 @@ public java.lang.String getOrderingKey() {
        *
        *
        * 
    -   * Identifies related messages for which publish order should be respected.
    -   * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    -   * published with the same `ordering_key` value will be delivered to
    -   * subscribers in the order in which they are received by the Pub/Sub system.
    +   * 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.
        * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
        * API might be changed in backward-incompatible ways and is not recommended
        * for production use. It is not subject to any SLA or deprecation policy.
    @@ -959,7 +967,8 @@ public int getAttributesCount() {
          *
          *
          * 
    -     * Optional attributes for this message.
    +     * Attributes for this message. If this field is empty, the message must
    +     * contain non-empty data.
          * 
    * * map<string, string> attributes = 2; @@ -979,7 +988,8 @@ public java.util.Map getAttributes() { * * *
    -     * Optional attributes for this message.
    +     * Attributes for this message. If this field is empty, the message must
    +     * contain non-empty data.
          * 
    * * map<string, string> attributes = 2; @@ -991,7 +1001,8 @@ public java.util.Map getAttributesMap() { * * *
    -     * Optional attributes for this message.
    +     * Attributes for this message. If this field is empty, the message must
    +     * contain non-empty data.
          * 
    * * map<string, string> attributes = 2; @@ -1008,7 +1019,8 @@ public java.lang.String getAttributesOrDefault( * * *
    -     * Optional attributes for this message.
    +     * Attributes for this message. If this field is empty, the message must
    +     * contain non-empty data.
          * 
    * * map<string, string> attributes = 2; @@ -1032,7 +1044,8 @@ public Builder clearAttributes() { * * *
    -     * Optional attributes for this message.
    +     * Attributes for this message. If this field is empty, the message must
    +     * contain non-empty data.
          * 
    * * map<string, string> attributes = 2; @@ -1053,7 +1066,8 @@ public java.util.Map getMutableAttributes() * * *
    -     * Optional attributes for this message.
    +     * Attributes for this message. If this field is empty, the message must
    +     * contain non-empty data.
          * 
    * * map<string, string> attributes = 2; @@ -1072,7 +1086,8 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { * * *
    -     * Optional attributes for this message.
    +     * Attributes for this message. If this field is empty, the message must
    +     * contain non-empty data.
          * 
    * * map<string, string> attributes = 2; @@ -1411,10 +1426,12 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * * *
    -     * Identifies related messages for which publish order should be respected.
    -     * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    -     * published with the same `ordering_key` value will be delivered to
    -     * subscribers in the order in which they are received by the Pub/Sub system.
    +     * 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.
          * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
          * API might be changed in backward-incompatible ways and is not recommended
          * for production use. It is not subject to any SLA or deprecation policy.
    @@ -1439,10 +1456,12 @@ public java.lang.String getOrderingKey() {
          *
          *
          * 
    -     * Identifies related messages for which publish order should be respected.
    -     * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    -     * published with the same `ordering_key` value will be delivered to
    -     * subscribers in the order in which they are received by the Pub/Sub system.
    +     * 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.
          * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
          * API might be changed in backward-incompatible ways and is not recommended
          * for production use. It is not subject to any SLA or deprecation policy.
    @@ -1467,10 +1486,12 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() {
          *
          *
          * 
    -     * Identifies related messages for which publish order should be respected.
    -     * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    -     * published with the same `ordering_key` value will be delivered to
    -     * subscribers in the order in which they are received by the Pub/Sub system.
    +     * 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.
          * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
          * API might be changed in backward-incompatible ways and is not recommended
          * for production use. It is not subject to any SLA or deprecation policy.
    @@ -1494,10 +1515,12 @@ public Builder setOrderingKey(java.lang.String value) {
          *
          *
          * 
    -     * Identifies related messages for which publish order should be respected.
    -     * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    -     * published with the same `ordering_key` value will be delivered to
    -     * subscribers in the order in which they are received by the Pub/Sub system.
    +     * 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.
          * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
          * API might be changed in backward-incompatible ways and is not recommended
          * for production use. It is not subject to any SLA or deprecation policy.
    @@ -1517,10 +1540,12 @@ public Builder clearOrderingKey() {
          *
          *
          * 
    -     * Identifies related messages for which publish order should be respected.
    -     * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    -     * published with the same `ordering_key` value will be delivered to
    -     * subscribers in the order in which they are received by the Pub/Sub system.
    +     * 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.
          * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
          * API might be changed in backward-incompatible ways and is not recommended
          * for production use. It is not subject to any SLA or deprecation policy.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java
    index 93531bfbdc63..027b63e7d538 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java
    @@ -41,7 +41,8 @@ public interface PubsubMessageOrBuilder
        *
        *
        * 
    -   * Optional attributes for this message.
    +   * Attributes for this message. If this field is empty, the message must
    +   * contain non-empty data.
        * 
    * * map<string, string> attributes = 2; @@ -51,7 +52,8 @@ public interface PubsubMessageOrBuilder * * *
    -   * Optional attributes for this message.
    +   * Attributes for this message. If this field is empty, the message must
    +   * contain non-empty data.
        * 
    * * map<string, string> attributes = 2; @@ -64,7 +66,8 @@ public interface PubsubMessageOrBuilder * * *
    -   * Optional attributes for this message.
    +   * Attributes for this message. If this field is empty, the message must
    +   * contain non-empty data.
        * 
    * * map<string, string> attributes = 2; @@ -74,7 +77,8 @@ public interface PubsubMessageOrBuilder * * *
    -   * Optional attributes for this message.
    +   * Attributes for this message. If this field is empty, the message must
    +   * contain non-empty data.
        * 
    * * map<string, string> attributes = 2; @@ -84,7 +88,8 @@ public interface PubsubMessageOrBuilder * * *
    -   * Optional attributes for this message.
    +   * Attributes for this message. If this field is empty, the message must
    +   * contain non-empty data.
        * 
    * * map<string, string> attributes = 2; @@ -167,10 +172,12 @@ public interface PubsubMessageOrBuilder * * *
    -   * Identifies related messages for which publish order should be respected.
    -   * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    -   * published with the same `ordering_key` value will be delivered to
    -   * subscribers in the order in which they are received by the Pub/Sub system.
    +   * 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.
        * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
        * API might be changed in backward-incompatible ways and is not recommended
        * for production use. It is not subject to any SLA or deprecation policy.
    @@ -185,10 +192,12 @@ public interface PubsubMessageOrBuilder
        *
        *
        * 
    -   * Identifies related messages for which publish order should be respected.
    -   * If a `Subscription` has `enable_message_ordering` set to `true`, messages
    -   * published with the same `ordering_key` value will be delivered to
    -   * subscribers in the order in which they are received by the Pub/Sub system.
    +   * 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.
        * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
        * API might be changed in backward-incompatible ways and is not recommended
        * for production use. It is not subject to any SLA or deprecation policy.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    index ba9c69e6a512..929f6ad567e2 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    @@ -310,130 +310,130 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               + "ription\030\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t\022\034\n\024ack_de"
               + "adline_seconds\030\003 \001(\005\";\n\022AcknowledgeReque"
               + "st\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003("
    -          + "\t\"\244\001\n\024StreamingPullRequest\022\024\n\014subscripti"
    +          + "\t\"\267\001\n\024StreamingPullRequest\022\024\n\014subscripti"
               + "on\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_dead"
               + "line_seconds\030\003 \003(\005\022\037\n\027modify_deadline_ac"
               + "k_ids\030\004 \003(\t\022#\n\033stream_ack_deadline_secon"
    -          + "ds\030\005 \001(\005\"U\n\025StreamingPullResponse\022<\n\021rec"
    -          + "eived_messages\030\001 \003(\0132!.google.pubsub.v1."
    -          + "ReceivedMessage\"\257\001\n\025CreateSnapshotReques"
    -          + "t\022\014\n\004name\030\001 \001(\t\022\024\n\014subscription\030\002 \001(\t\022C\n"
    -          + "\006labels\030\003 \003(\01323.google.pubsub.v1.CreateS"
    -          + "napshotRequest.LabelsEntry\032-\n\013LabelsEntr"
    -          + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"v\n\025Upd"
    -          + "ateSnapshotRequest\022,\n\010snapshot\030\001 \001(\0132\032.g"
    -          + "oogle.pubsub.v1.Snapshot\022/\n\013update_mask\030"
    -          + "\002 \001(\0132\032.google.protobuf.FieldMask\"\277\001\n\010Sn"
    -          + "apshot\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\022/\n\013e"
    -          + "xpire_time\030\003 \001(\0132\032.google.protobuf.Times"
    -          + "tamp\0226\n\006labels\030\004 \003(\0132&.google.pubsub.v1."
    -          + "Snapshot.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003k"
    -          + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"&\n\022GetSnapsh"
    -          + "otRequest\022\020\n\010snapshot\030\001 \001(\t\"N\n\024ListSnaps"
    -          + "hotsRequest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_siz"
    -          + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnaps"
    -          + "hotsResponse\022-\n\tsnapshots\030\001 \003(\0132\032.google"
    -          + ".pubsub.v1.Snapshot\022\027\n\017next_page_token\030\002"
    -          + " \001(\t\")\n\025DeleteSnapshotRequest\022\020\n\010snapsho"
    -          + "t\030\001 \001(\t\"m\n\013SeekRequest\022\024\n\014subscription\030\001"
    -          + " \001(\t\022*\n\004time\030\002 \001(\0132\032.google.protobuf.Tim"
    -          + "estampH\000\022\022\n\010snapshot\030\003 \001(\tH\000B\010\n\006target\"\016"
    -          + "\n\014SeekResponse2\261\t\n\tPublisher\022j\n\013CreateTo"
    -          + "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu"
    -          + "bsub.v1.Topic\")\202\323\344\223\002#\032\036/v1/{name=project"
    -          + "s/*/topics/*}:\001*\022}\n\013UpdateTopic\022$.google"
    -          + ".pubsub.v1.UpdateTopicRequest\032\027.google.p"
    -          + "ubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name="
    -          + "projects/*/topics/*}:\001*\022\202\001\n\007Publish\022 .go"
    -          + "ogle.pubsub.v1.PublishRequest\032!.google.p"
    -          + "ubsub.v1.PublishResponse\"2\202\323\344\223\002,\"\'/v1/{t"
    -          + "opic=projects/*/topics/*}:publish:\001*\022o\n\010"
    -          + "GetTopic\022!.google.pubsub.v1.GetTopicRequ"
    -          + "est\032\027.google.pubsub.v1.Topic\"\'\202\323\344\223\002!\022\037/v"
    -          + "1/{topic=projects/*/topics/*}\022\200\001\n\nListTo"
    -          + "pics\022#.google.pubsub.v1.ListTopicsReques"
    -          + "t\032$.google.pubsub.v1.ListTopicsResponse\""
    -          + "\'\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics"
    -          + "\022\262\001\n\026ListTopicSubscriptions\022/.google.pub"
    -          + "sub.v1.ListTopicSubscriptionsRequest\0320.g"
    -          + "oogle.pubsub.v1.ListTopicSubscriptionsRe"
    -          + "sponse\"5\202\323\344\223\002/\022-/v1/{topic=projects/*/to"
    -          + "pics/*}/subscriptions\022\242\001\n\022ListTopicSnaps"
    -          + "hots\022+.google.pubsub.v1.ListTopicSnapsho"
    -          + "tsRequest\032,.google.pubsub.v1.ListTopicSn"
    -          + "apshotsResponse\"1\202\323\344\223\002+\022)/v1/{topic=proj"
    -          + "ects/*/topics/*}/snapshots\022t\n\013DeleteTopi"
    -          + "c\022$.google.pubsub.v1.DeleteTopicRequest\032"
    -          + "\026.google.protobuf.Empty\"\'\202\323\344\223\002!*\037/v1/{to"
    -          + "pic=projects/*/topics/*}\032p\312A\025pubsub.goog"
    -          + "leapis.com\322AUhttps://www.googleapis.com/"
    -          + "auth/cloud-platform,https://www.googleap"
    -          + "is.com/auth/pubsub2\353\022\n\nSubscriber\022\206\001\n\022Cr"
    -          + "eateSubscription\022\036.google.pubsub.v1.Subs"
    -          + "cription\032\036.google.pubsub.v1.Subscription"
    -          + "\"0\202\323\344\223\002*\032%/v1/{name=projects/*/subscript"
    -          + "ions/*}:\001*\022\222\001\n\017GetSubscription\022(.google."
    -          + "pubsub.v1.GetSubscriptionRequest\032\036.googl"
    -          + "e.pubsub.v1.Subscription\"5\202\323\344\223\002/\022-/v1/{s"
    -          + "ubscription=projects/*/subscriptions/*}\022"
    -          + "\240\001\n\022UpdateSubscription\022+.google.pubsub.v"
    -          + "1.UpdateSubscriptionRequest\032\036.google.pub"
    -          + "sub.v1.Subscription\"=\202\323\344\223\002722/v1/{subscr"
    -          + "iption.name=projects/*/subscriptions/*}:"
    -          + "\001*\022\234\001\n\021ListSubscriptions\022*.google.pubsub"
    -          + ".v1.ListSubscriptionsRequest\032+.google.pu"
    -          + "bsub.v1.ListSubscriptionsResponse\".\202\323\344\223\002"
    -          + "(\022&/v1/{project=projects/*}/subscription"
    -          + "s\022\220\001\n\022DeleteSubscription\022+.google.pubsub"
    -          + ".v1.DeleteSubscriptionRequest\032\026.google.p"
    -          + "rotobuf.Empty\"5\202\323\344\223\002/*-/v1/{subscription"
    -          + "=projects/*/subscriptions/*}\022\243\001\n\021ModifyA"
    -          + "ckDeadline\022*.google.pubsub.v1.ModifyAckD"
    -          + "eadlineRequest\032\026.google.protobuf.Empty\"J"
    -          + "\202\323\344\223\002D\"?/v1/{subscription=projects/*/sub"
    -          + "scriptions/*}:modifyAckDeadline:\001*\022\221\001\n\013A"
    -          + "cknowledge\022$.google.pubsub.v1.Acknowledg"
    -          + "eRequest\032\026.google.protobuf.Empty\"D\202\323\344\223\002>"
    -          + "\"9/v1/{subscription=projects/*/subscript"
    -          + "ions/*}:acknowledge:\001*\022\204\001\n\004Pull\022\035.google"
    -          + ".pubsub.v1.PullRequest\032\036.google.pubsub.v"
    -          + "1.PullResponse\"=\202\323\344\223\0027\"2/v1/{subscriptio"
    -          + "n=projects/*/subscriptions/*}:pull:\001*\022f\n"
    -          + "\rStreamingPull\022&.google.pubsub.v1.Stream"
    -          + "ingPullRequest\032\'.google.pubsub.v1.Stream"
    -          + "ingPullResponse\"\000(\0010\001\022\240\001\n\020ModifyPushConf"
    -          + "ig\022).google.pubsub.v1.ModifyPushConfigRe"
    -          + "quest\032\026.google.protobuf.Empty\"I\202\323\344\223\002C\">/"
    -          + "v1/{subscription=projects/*/subscription"
    -          + "s/*}:modifyPushConfig:\001*\022~\n\013GetSnapshot\022"
    -          + "$.google.pubsub.v1.GetSnapshotRequest\032\032."
    -          + "google.pubsub.v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{"
    -          + "snapshot=projects/*/snapshots/*}\022\214\001\n\rLis"
    -          + "tSnapshots\022&.google.pubsub.v1.ListSnapsh"
    -          + "otsRequest\032\'.google.pubsub.v1.ListSnapsh"
    -          + "otsResponse\"*\202\323\344\223\002$\022\"/v1/{project=projec"
    -          + "ts/*}/snapshots\022\203\001\n\016CreateSnapshot\022\'.goo"
    -          + "gle.pubsub.v1.CreateSnapshotRequest\032\032.go"
    -          + "ogle.pubsub.v1.Snapshot\",\202\323\344\223\002&\032!/v1/{na"
    -          + "me=projects/*/snapshots/*}:\001*\022\214\001\n\016Update"
    -          + "Snapshot\022\'.google.pubsub.v1.UpdateSnapsh"
    -          + "otRequest\032\032.google.pubsub.v1.Snapshot\"5\202"
    -          + "\323\344\223\002/2*/v1/{snapshot.name=projects/*/sna"
    -          + "pshots/*}:\001*\022\200\001\n\016DeleteSnapshot\022\'.google"
    -          + ".pubsub.v1.DeleteSnapshotRequest\032\026.googl"
    -          + "e.protobuf.Empty\"-\202\323\344\223\002\'*%/v1/{snapshot="
    -          + "projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.googl"
    -          + "e.pubsub.v1.SeekRequest\032\036.google.pubsub."
    -          + "v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscripti"
    -          + "on=projects/*/subscriptions/*}:seek:\001*\032p"
    -          + "\312A\025pubsub.googleapis.com\322AUhttps://www.g"
    -          + "oogleapis.com/auth/cloud-platform,https:"
    -          + "//www.googleapis.com/auth/pubsubB\256\001\n\024com"
    -          + ".google.pubsub.v1B\013PubsubProtoP\001Z6google"
    -          + ".golang.org/genproto/googleapis/pubsub/v"
    -          + "1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026G"
    -          + "oogle\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::P"
    -          + "ubSub::V1b\006proto3"
    +          + "ds\030\005 \001(\005\022\021\n\tclient_id\030\006 \001(\t\"U\n\025Streaming"
    +          + "PullResponse\022<\n\021received_messages\030\001 \003(\0132"
    +          + "!.google.pubsub.v1.ReceivedMessage\"\257\001\n\025C"
    +          + "reateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014su"
    +          + "bscription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.googl"
    +          + "e.pubsub.v1.CreateSnapshotRequest.Labels"
    +          + "Entry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val"
    +          + "ue\030\002 \001(\t:\0028\001\"v\n\025UpdateSnapshotRequest\022,\n"
    +          + "\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Snaps"
    +          + "hot\022/\n\013update_mask\030\002 \001(\0132\032.google.protob"
    +          + "uf.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022"
    +          + "\r\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.go"
    +          + "ogle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132"
    +          + "&.google.pubsub.v1.Snapshot.LabelsEntry\032"
    +          + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
    +          + "(\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010snapshot"
    +          + "\030\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007projec"
    +          + "t\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token"
    +          + "\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnaps"
    +          + "hots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027"
    +          + "\n\017next_page_token\030\002 \001(\t\")\n\025DeleteSnapsho"
    +          + "tRequest\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekReques"
    +          + "t\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032."
    +          + "google.protobuf.TimestampH\000\022\022\n\010snapshot\030"
    +          + "\003 \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2\261\t\n\tPu"
    +          + "blisher\022j\n\013CreateTopic\022\027.google.pubsub.v"
    +          + "1.Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223\002#"
    +          + "\032\036/v1/{name=projects/*/topics/*}:\001*\022}\n\013U"
    +          + "pdateTopic\022$.google.pubsub.v1.UpdateTopi"
    +          + "cRequest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002"
    +          + ")2$/v1/{topic.name=projects/*/topics/*}:"
    +          + "\001*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publis"
    +          + "hRequest\032!.google.pubsub.v1.PublishRespo"
    +          + "nse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topic"
    +          + "s/*}:publish:\001*\022o\n\010GetTopic\022!.google.pub"
    +          + "sub.v1.GetTopicRequest\032\027.google.pubsub.v"
    +          + "1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*/t"
    +          + "opics/*}\022\200\001\n\nListTopics\022#.google.pubsub."
    +          + "v1.ListTopicsRequest\032$.google.pubsub.v1."
    +          + "ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{project"
    +          + "=projects/*}/topics\022\262\001\n\026ListTopicSubscri"
    +          + "ptions\022/.google.pubsub.v1.ListTopicSubsc"
    +          + "riptionsRequest\0320.google.pubsub.v1.ListT"
    +          + "opicSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/{"
    +          + "topic=projects/*/topics/*}/subscriptions"
    +          + "\022\242\001\n\022ListTopicSnapshots\022+.google.pubsub."
    +          + "v1.ListTopicSnapshotsRequest\032,.google.pu"
    +          + "bsub.v1.ListTopicSnapshotsResponse\"1\202\323\344\223"
    +          + "\002+\022)/v1/{topic=projects/*/topics/*}/snap"
    +          + "shots\022t\n\013DeleteTopic\022$.google.pubsub.v1."
    +          + "DeleteTopicRequest\032\026.google.protobuf.Emp"
    +          + "ty\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/topics"
    +          + "/*}\032p\312A\025pubsub.googleapis.com\322AUhttps://"
    +          + "www.googleapis.com/auth/cloud-platform,h"
    +          + "ttps://www.googleapis.com/auth/pubsub2\353\022"
    +          + "\n\nSubscriber\022\206\001\n\022CreateSubscription\022\036.go"
    +          + "ogle.pubsub.v1.Subscription\032\036.google.pub"
    +          + "sub.v1.Subscription\"0\202\323\344\223\002*\032%/v1/{name=p"
    +          + "rojects/*/subscriptions/*}:\001*\022\222\001\n\017GetSub"
    +          + "scription\022(.google.pubsub.v1.GetSubscrip"
    +          + "tionRequest\032\036.google.pubsub.v1.Subscript"
    +          + "ion\"5\202\323\344\223\002/\022-/v1/{subscription=projects/"
    +          + "*/subscriptions/*}\022\240\001\n\022UpdateSubscriptio"
    +          + "n\022+.google.pubsub.v1.UpdateSubscriptionR"
    +          + "equest\032\036.google.pubsub.v1.Subscription\"="
    +          + "\202\323\344\223\002722/v1/{subscription.name=projects/"
    +          + "*/subscriptions/*}:\001*\022\234\001\n\021ListSubscripti"
    +          + "ons\022*.google.pubsub.v1.ListSubscriptions"
    +          + "Request\032+.google.pubsub.v1.ListSubscript"
    +          + "ionsResponse\".\202\323\344\223\002(\022&/v1/{project=proje"
    +          + "cts/*}/subscriptions\022\220\001\n\022DeleteSubscript"
    +          + "ion\022+.google.pubsub.v1.DeleteSubscriptio"
    +          + "nRequest\032\026.google.protobuf.Empty\"5\202\323\344\223\002/"
    +          + "*-/v1/{subscription=projects/*/subscript"
    +          + "ions/*}\022\243\001\n\021ModifyAckDeadline\022*.google.p"
    +          + "ubsub.v1.ModifyAckDeadlineRequest\032\026.goog"
    +          + "le.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{subscrip"
    +          + "tion=projects/*/subscriptions/*}:modifyA"
    +          + "ckDeadline:\001*\022\221\001\n\013Acknowledge\022$.google.p"
    +          + "ubsub.v1.AcknowledgeRequest\032\026.google.pro"
    +          + "tobuf.Empty\"D\202\323\344\223\002>\"9/v1/{subscription=p"
    +          + "rojects/*/subscriptions/*}:acknowledge:\001"
    +          + "*\022\204\001\n\004Pull\022\035.google.pubsub.v1.PullReques"
    +          + "t\032\036.google.pubsub.v1.PullResponse\"=\202\323\344\223\002"
    +          + "7\"2/v1/{subscription=projects/*/subscrip"
    +          + "tions/*}:pull:\001*\022f\n\rStreamingPull\022&.goog"
    +          + "le.pubsub.v1.StreamingPullRequest\032\'.goog"
    +          + "le.pubsub.v1.StreamingPullResponse\"\000(\0010\001"
    +          + "\022\240\001\n\020ModifyPushConfig\022).google.pubsub.v1"
    +          + ".ModifyPushConfigRequest\032\026.google.protob"
    +          + "uf.Empty\"I\202\323\344\223\002C\">/v1/{subscription=proj"
    +          + "ects/*/subscriptions/*}:modifyPushConfig"
    +          + ":\001*\022~\n\013GetSnapshot\022$.google.pubsub.v1.Ge"
    +          + "tSnapshotRequest\032\032.google.pubsub.v1.Snap"
    +          + "shot\"-\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/s"
    +          + "napshots/*}\022\214\001\n\rListSnapshots\022&.google.p"
    +          + "ubsub.v1.ListSnapshotsRequest\032\'.google.p"
    +          + "ubsub.v1.ListSnapshotsResponse\"*\202\323\344\223\002$\022\""
    +          + "/v1/{project=projects/*}/snapshots\022\203\001\n\016C"
    +          + "reateSnapshot\022\'.google.pubsub.v1.CreateS"
    +          + "napshotRequest\032\032.google.pubsub.v1.Snapsh"
    +          + "ot\",\202\323\344\223\002&\032!/v1/{name=projects/*/snapsho"
    +          + "ts/*}:\001*\022\214\001\n\016UpdateSnapshot\022\'.google.pub"
    +          + "sub.v1.UpdateSnapshotRequest\032\032.google.pu"
    +          + "bsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot."
    +          + "name=projects/*/snapshots/*}:\001*\022\200\001\n\016Dele"
    +          + "teSnapshot\022\'.google.pubsub.v1.DeleteSnap"
    +          + "shotRequest\032\026.google.protobuf.Empty\"-\202\323\344"
    +          + "\223\002\'*%/v1/{snapshot=projects/*/snapshots/"
    +          + "*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReque"
    +          + "st\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223"
    +          + "\0027\"2/v1/{subscription=projects/*/subscri"
    +          + "ptions/*}:seek:\001*\032p\312A\025pubsub.googleapis."
    +          + "com\322AUhttps://www.googleapis.com/auth/cl"
    +          + "oud-platform,https://www.googleapis.com/"
    +          + "auth/pubsubB\256\001\n\024com.google.pubsub.v1B\013Pu"
    +          + "bsubProtoP\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::V1b\006proto3"
         };
         descriptor =
             com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
    @@ -737,6 +737,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "ModifyDeadlineSeconds",
                   "ModifyDeadlineAckIds",
                   "StreamAckDeadlineSeconds",
    +              "ClientId",
                 });
         internal_static_google_pubsub_v1_StreamingPullResponse_descriptor =
             getDescriptor().getMessageTypes().get(30);
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    index b2cacde5de32..480253f70952 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    @@ -44,6 +44,7 @@ private StreamingPullRequest() {
         ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
         modifyDeadlineSeconds_ = emptyIntList();
         modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    clientId_ = "";
       }
     
       @java.lang.Override
    @@ -131,6 +132,13 @@ private StreamingPullRequest(
                   streamAckDeadlineSeconds_ = input.readInt32();
                   break;
                 }
    +          case 50:
    +            {
    +              java.lang.String s = input.readStringRequireUtf8();
    +
    +              clientId_ = s;
    +              break;
    +            }
               default:
                 {
                   if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    @@ -479,6 +487,63 @@ public int getStreamAckDeadlineSeconds() {
         return streamAckDeadlineSeconds_;
       }
     
    +  public static final int CLIENT_ID_FIELD_NUMBER = 6;
    +  private volatile java.lang.Object clientId_;
    +  /**
    +   *
    +   *
    +   * 
    +   * 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 be used for
    +   * different client instances.
    +   * 
    + * + * string client_id = 6; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + /** + * + * + *
    +   * 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 be used for
    +   * different client instances.
    +   * 
    + * + * string client_id = 6; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -514,6 +579,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (streamAckDeadlineSeconds_ != 0) { output.writeInt32(5, streamAckDeadlineSeconds_); } + if (!getClientIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clientId_); + } unknownFields.writeTo(output); } @@ -559,6 +627,9 @@ public int getSerializedSize() { if (streamAckDeadlineSeconds_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, streamAckDeadlineSeconds_); } + if (!getClientIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clientId_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -580,6 +651,7 @@ public boolean equals(final java.lang.Object obj) { if (!getModifyDeadlineSecondsList().equals(other.getModifyDeadlineSecondsList())) return false; if (!getModifyDeadlineAckIdsList().equals(other.getModifyDeadlineAckIdsList())) return false; if (getStreamAckDeadlineSeconds() != other.getStreamAckDeadlineSeconds()) return false; + if (!getClientId().equals(other.getClientId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -607,6 +679,8 @@ public int hashCode() { } hash = (37 * hash) + STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getStreamAckDeadlineSeconds(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -764,6 +838,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000004); streamAckDeadlineSeconds_ = 0; + clientId_ = ""; + return this; } @@ -809,6 +885,7 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() { } result.modifyDeadlineAckIds_ = modifyDeadlineAckIds_; result.streamAckDeadlineSeconds_ = streamAckDeadlineSeconds_; + result.clientId_ = clientId_; onBuilt(); return result; } @@ -895,6 +972,10 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (other.getStreamAckDeadlineSeconds() != 0) { setStreamAckDeadlineSeconds(other.getStreamAckDeadlineSeconds()); } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1712,6 +1793,137 @@ public Builder clearStreamAckDeadlineSeconds() { return this; } + private java.lang.Object clientId_ = ""; + /** + * + * + *
    +     * 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 be used for
    +     * different client instances.
    +     * 
    + * + * string client_id = 6; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * 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 be used for
    +     * different client instances.
    +     * 
    + * + * string client_id = 6; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * 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 be used for
    +     * different client instances.
    +     * 
    + * + * string client_id = 6; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + clientId_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * 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 be used for
    +     * different client instances.
    +     * 
    + * + * string client_id = 6; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + + clientId_ = getDefaultInstance().getClientId(); + onChanged(); + return this; + } + /** + * + * + *
    +     * 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 be used for
    +     * different client instances.
    +     * 
    + * + * string client_id = 6; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientId_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 1da8cde9533f..e9315a90f3b2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -271,4 +271,39 @@ public interface StreamingPullRequestOrBuilder * @return The streamAckDeadlineSeconds. */ int getStreamAckDeadlineSeconds(); + + /** + * + * + *
    +   * 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 be used for
    +   * different client instances.
    +   * 
    + * + * string client_id = 6; + * + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * + * + *
    +   * 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 be used for
    +   * different client instances.
    +   * 
    + * + * string client_id = 6; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 3ad6355a8bf6..da3801dfecb7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -164,7 +164,8 @@ message PubsubMessage { // at least one attribute. bytes data = 1; - // Optional attributes for this message. + // Attributes for this message. If this field is empty, the message must + // contain non-empty data. map attributes = 2; // ID of this message, assigned by the server when the message is published. @@ -178,10 +179,12 @@ message PubsubMessage { // publisher in a `Publish` call. google.protobuf.Timestamp publish_time = 4; - // Identifies related messages for which publish order should be respected. - // If a `Subscription` has `enable_message_ordering` set to `true`, messages - // published with the same `ordering_key` value will be delivered to - // subscribers in the order in which they are received by the Pub/Sub system. + // 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. @@ -922,6 +925,14 @@ message StreamingPullRequest { // requests from client to server. The minimum deadline you can specify is 10 // seconds. The maximum deadline you can specify is 600 seconds (10 minutes). int32 stream_ack_deadline_seconds = 5; + + // 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 be used for + // different client instances. + string client_id = 6; } // Response for the `StreamingPull` method. This response is used to stream @@ -933,13 +944,12 @@ message StreamingPullResponse { // Request for the `CreateSnapshot` method. message CreateSnapshotRequest { - // Optional 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}`. + // 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}`. string name = 1; // The subscription whose backlog the snapshot retains. diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index a5cdff45c319..268a4669abfd 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -22,7 +22,8 @@ "^com.google.api:gax", "^com.google.auth:", "^com.google.cloud:google-cloud-core", - "^io.grpc:" + "^io.grpc:", + "^com.google.guava:" ], "groupName": "core dependencies" }, diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 24abf49c4b4f..ef179407b1bc 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,20 +1,20 @@ { - "updateTime": "2020-01-23T08:56:37.849196Z", + "updateTime": "2020-01-31T08:56:58.976767Z", "sources": [ { "generator": { "name": "artman", - "version": "0.44.1", - "dockerImage": "googleapis/artman@sha256:5599b61e56a372d21b671969ee915fbca0f6c3a0daaeb898d01f8f685f1bbc8b" + "version": "0.44.4", + "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8d16f76de065f530d395a4c7eabbf766d6a120fd", - "internalRef": "291008516", - "log": "8d16f76de065f530d395a4c7eabbf766d6a120fd\nGenerate Memcache v1beta2 API protos and gRPC ServiceConfig files\n\nPiperOrigin-RevId: 291008516\n\n3af1dabd93df9a9f17bf3624d3b875c11235360b\ngrafeas: Add containeranalysis default_host to Grafeas service\n\nPiperOrigin-RevId: 290965849\n\nbe2663fa95e31cba67d0cd62611a6674db9f74b7\nfix(google/maps/roads): add missing opening bracket\n\nPiperOrigin-RevId: 290964086\n\nfacc26550a0af0696e0534bc9cae9df14275aa7c\nUpdating v2 protos with the latest inline documentation (in comments) and adding a per-service .yaml file.\n\nPiperOrigin-RevId: 290952261\n\ncda99c1f7dc5e4ca9b1caeae1dc330838cbc1461\nChange api_name to 'asset' for v1p1beta1\n\nPiperOrigin-RevId: 290800639\n\n94e9e90c303a820ce40643d9129e7f0d2054e8a1\nAdds Google Maps Road service\n\nPiperOrigin-RevId: 290795667\n\na3b23dcb2eaecce98c600c7d009451bdec52dbda\nrpc: new message ErrorInfo, other comment updates\n\nPiperOrigin-RevId: 290781668\n\n26420ef4e46c37f193c0fbe53d6ebac481de460e\nAdd proto definition for Org Policy v1.\n\nPiperOrigin-RevId: 290771923\n\n7f0dab8177cf371ae019a082e2512de7ac102888\nPublish Routes Preferred API v1 service definitions.\n\nPiperOrigin-RevId: 290326986\n\nad6e508d0728e1d1bca6e3f328cd562718cb772d\nFix: Qualify resource type references with \"jobs.googleapis.com/\"\n\nPiperOrigin-RevId: 290285762\n\n58e770d568a2b78168ddc19a874178fee8265a9d\ncts client library\n\nPiperOrigin-RevId: 290146169\n\naf9daa4c3b4c4a8b7133b81588dd9ffd37270af2\nAdd more programming language options to public proto\n\nPiperOrigin-RevId: 290144091\n\nd9f2bbf2df301ef84641d4cec7c828736a0bd907\ntalent: add missing resource.proto dep to Bazel build target\n\nPiperOrigin-RevId: 290143164\n\n3b3968237451d027b42471cd28884a5a1faed6c7\nAnnotate Talent API.\nAdd gRPC service config for retry.\nUpdate bazel file with google.api.resource dependency.\n\nPiperOrigin-RevId: 290125172\n\n" + "sha": "7ac66d9be8a7d7de4f13566d8663978c9ee9dcd7", + "internalRef": "292450564", + "log": "7ac66d9be8a7d7de4f13566d8663978c9ee9dcd7\nAdd Dataproc Autoscaling API to V1.\n\nPiperOrigin-RevId: 292450564\n\n5d932b2c1be3a6ef487d094e3cf5c0673d0241dd\n- Improve documentation\n- Add a client_id field to StreamingPullRequest\n\nPiperOrigin-RevId: 292434036\n\neaff9fa8edec3e914995ce832b087039c5417ea7\nmonitoring: v3 publish annotations and client retry config\n\nPiperOrigin-RevId: 292425288\n\n70958bab8c5353870d31a23fb2c40305b050d3fe\nBigQuery Storage Read API v1 clients.\n\nPiperOrigin-RevId: 292407644\n\n7a15e7fe78ff4b6d5c9606a3264559e5bde341d1\nUpdate backend proto for Google Cloud Endpoints\n\nPiperOrigin-RevId: 292391607\n\n3ca2c014e24eb5111c8e7248b1e1eb833977c83d\nbazel: Add --flaky_test_attempts=3 argument to prevent CI failures caused by flaky tests\n\nPiperOrigin-RevId: 292382559\n\n9933347c1f677e81e19a844c2ef95bfceaf694fe\nbazel:Integrate latest protoc-java-resource-names-plugin changes (fix for PyYAML dependency in bazel rules)\n\nPiperOrigin-RevId: 292376626\n\nb835ab9d2f62c88561392aa26074c0b849fb0bd3\nasset: v1p2beta1 add client config annotations\n\n* remove unintentionally exposed RPCs\n* remove messages relevant to removed RPCs\n\nPiperOrigin-RevId: 292369593\n\nc1246a29e22b0f98e800a536b5b0da2d933a55f2\nUpdating v1 protos with the latest inline documentation (in comments) and config options. Also adding a per-service .yaml file.\n\nPiperOrigin-RevId: 292310790\n\nb491d07cadaae7cde5608321f913e5ca1459b32d\nRevert accidental local_repository change\n\nPiperOrigin-RevId: 292245373\n\naf3400a8cb6110025198b59a0f7d018ae3cda700\nUpdate gapic-generator dependency (prebuilt PHP binary support).\n\nPiperOrigin-RevId: 292243997\n\n341fd5690fae36f36cf626ef048fbcf4bbe7cee6\ngrafeas: v1 add resource_definition for the grafeas.io/Project and change references for Project.\n\nPiperOrigin-RevId: 292221998\n\n42e915ec2ece1cd37a590fbcd10aa2c0fb0e5b06\nUpdate the gapic-generator, protoc-java-resource-name-plugin and protoc-docs-plugin to the latest commit.\n\nPiperOrigin-RevId: 292182368\n\nf035f47250675d31492a09f4a7586cfa395520a7\nFix grafeas build and update build.sh script to include gerafeas.\n\nPiperOrigin-RevId: 292168753\n\n26ccb214b7bc4a716032a6266bcb0a9ca55d6dbb\nasset: v1p1beta1 add client config annotations and retry config\n\nPiperOrigin-RevId: 292154210\n\n974ee5c0b5d03e81a50dafcedf41e0efebb5b749\nasset: v1beta1 add client config annotations\n\nPiperOrigin-RevId: 292152573\n\ncf3b61102ed5f36b827bc82ec39be09525f018c8\n Fix to protos for v1p1beta1 release of Cloud Security Command Center\n\nPiperOrigin-RevId: 292034635\n\n4e1cfaa7c0fede9e65d64213ca3da1b1255816c0\nUpdate the public proto to support UTF-8 encoded id for CatalogService API, increase the ListCatalogItems deadline to 300s and some minor documentation change\n\nPiperOrigin-RevId: 292030970\n\n9c483584f8fd5a1b862ae07973f4cc7bb3e46648\nasset: add annotations to v1p1beta1\n\nPiperOrigin-RevId: 292009868\n\ne19209fac29731d0baf6d9ac23da1164f7bdca24\nAdd the google.rpc.context.AttributeContext message to the open source\ndirectories.\n\nPiperOrigin-RevId: 291999930\n\nae5662960573f279502bf98a108a35ba1175e782\noslogin API: move file level option on top of the file to avoid protobuf.js bug.\n\nPiperOrigin-RevId: 291990506\n\neba3897fff7c49ed85d3c47fc96fe96e47f6f684\nAdd cc_proto_library and cc_grpc_library targets for Spanner and IAM protos.\n\nPiperOrigin-RevId: 291988651\n\n8e981acfd9b97ea2f312f11bbaa7b6c16e412dea\nBeta launch for PersonDetection and FaceDetection features.\n\nPiperOrigin-RevId: 291821782\n\n994e067fae3b21e195f7da932b08fff806d70b5d\nasset: add annotations to v1p2beta1\n\nPiperOrigin-RevId: 291815259\n\n244e1d2c89346ca2e0701b39e65552330d68545a\nAdd Playable Locations service\n\nPiperOrigin-RevId: 291806349\n\n909f8f67963daf45dd88d020877fb9029b76788d\nasset: add annotations to v1beta2\n\nPiperOrigin-RevId: 291805301\n\n3c39a1d6e23c1ef63c7fba4019c25e76c40dfe19\nKMS: add file-level message for CryptoKeyPath, it is defined in gapic yaml but not\nin proto files.\n\nPiperOrigin-RevId: 291420695\n\nc6f3f350b8387f8d1b85ed4506f30187ebaaddc3\ncontaineranalysis: update v1beta1 and bazel build with annotations\n\nPiperOrigin-RevId: 291401900\n\n92887d74b44e4e636252b7b8477d0d2570cd82db\nfix: fix the location of grpc config file.\n\nPiperOrigin-RevId: 291396015\n\ne26cab8afd19d396b929039dac5d874cf0b5336c\nexpr: add default_host and method_signature annotations to CelService\n\nPiperOrigin-RevId: 291240093\n\n06093ae3952441c34ec176d1f7431b8765cec0be\nirm: fix v1alpha2 bazel build by adding missing proto imports\n\nPiperOrigin-RevId: 291227940\n\na8a2514af326e4673063f9a3c9d0ef1091c87e6c\nAdd proto annotation for cloud/irm API\n\nPiperOrigin-RevId: 291217859\n\n" } }, { @@ -36,658 +36,5 @@ "config": "google/pubsub/artman_pubsub.yaml" } } - ], - "newFiles": [ - { - "path": ".github/ISSUE_TEMPLATE/bug_report.md" - }, - { - "path": ".github/ISSUE_TEMPLATE/feature_request.md" - }, - { - "path": ".github/ISSUE_TEMPLATE/support_request.md" - }, - { - "path": ".github/PULL_REQUEST_TEMPLATE.md" - }, - { - "path": ".github/release-please.yml" - }, - { - "path": ".gitignore" - }, - { - "path": ".kokoro/build.bat" - }, - { - "path": ".kokoro/build.sh" - }, - { - "path": ".kokoro/coerce_logs.sh" - }, - { - "path": ".kokoro/common.cfg" - }, - { - "path": ".kokoro/continuous/common.cfg" - }, - { - "path": ".kokoro/continuous/dependencies.cfg" - }, - { - "path": ".kokoro/continuous/integration.cfg" - }, - { - "path": ".kokoro/continuous/java11.cfg" - }, - { - "path": ".kokoro/continuous/java7.cfg" - }, - { - "path": ".kokoro/continuous/java8-osx.cfg" - }, - { - "path": ".kokoro/continuous/java8-win.cfg" - }, - { - "path": ".kokoro/continuous/java8.cfg" - }, - { - "path": ".kokoro/continuous/lint.cfg" - }, - { - "path": ".kokoro/continuous/propose_release.cfg" - }, - { - "path": ".kokoro/continuous/propose_release.sh" - }, - { - "path": ".kokoro/continuous/samples.cfg" - }, - { - "path": ".kokoro/dependencies.sh" - }, - { - "path": ".kokoro/linkage-monitor.sh" - }, - { - "path": ".kokoro/nightly/common.cfg" - }, - { - "path": ".kokoro/nightly/dependencies.cfg" - }, - { - "path": ".kokoro/nightly/integration.cfg" - }, - { - "path": ".kokoro/nightly/java11.cfg" - }, - { - "path": ".kokoro/nightly/java7.cfg" - }, - { - "path": ".kokoro/nightly/java8-osx.cfg" - }, - { - "path": ".kokoro/nightly/java8-win.cfg" - }, - { - "path": ".kokoro/nightly/java8.cfg" - }, - { - "path": ".kokoro/nightly/lint.cfg" - }, - { - "path": ".kokoro/nightly/samples.cfg" - }, - { - "path": ".kokoro/presubmit/clirr.cfg" - }, - { - "path": ".kokoro/presubmit/common.cfg" - }, - { - "path": ".kokoro/presubmit/dependencies.cfg" - }, - { - "path": ".kokoro/presubmit/integration.cfg" - }, - { - "path": ".kokoro/presubmit/java11.cfg" - }, - { - "path": ".kokoro/presubmit/java7.cfg" - }, - { - "path": ".kokoro/presubmit/java8-osx.cfg" - }, - { - "path": ".kokoro/presubmit/java8-win.cfg" - }, - { - "path": ".kokoro/presubmit/java8.cfg" - }, - { - "path": ".kokoro/presubmit/linkage-monitor.cfg" - }, - { - "path": ".kokoro/presubmit/lint.cfg" - }, - { - "path": ".kokoro/presubmit/samples.cfg" - }, - { - "path": ".kokoro/release/bump_snapshot.cfg" - }, - { - "path": ".kokoro/release/bump_snapshot.sh" - }, - { - "path": ".kokoro/release/common.cfg" - }, - { - "path": ".kokoro/release/common.sh" - }, - { - "path": ".kokoro/release/drop.cfg" - }, - { - "path": ".kokoro/release/drop.sh" - }, - { - "path": ".kokoro/release/promote.cfg" - }, - { - "path": ".kokoro/release/promote.sh" - }, - { - "path": ".kokoro/release/publish_javadoc.cfg" - }, - { - "path": ".kokoro/release/publish_javadoc.sh" - }, - { - "path": ".kokoro/release/snapshot.cfg" - }, - { - "path": ".kokoro/release/snapshot.sh" - }, - { - "path": ".kokoro/release/stage.cfg" - }, - { - "path": ".kokoro/release/stage.sh" - }, - { - "path": ".kokoro/trampoline.sh" - }, - { - "path": ".repo-metadata.json" - }, - { - "path": "CHANGELOG.md" - }, - { - "path": "CODE_OF_CONDUCT.md" - }, - { - "path": "CONTRIBUTING.md" - }, - { - "path": "LICENSE" - }, - { - "path": "README.md" - }, - { - "path": "codecov.yaml" - }, - { - "path": "google-cloud-pubsub-bom/pom.xml" - }, - { - "path": "google-cloud-pubsub/pom.xml" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java" - }, - { - "path": "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java" - }, - { - "path": "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" - }, - { - "path": "grpc-google-cloud-pubsub-v1/pom.xml" - }, - { - "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java" - }, - { - "path": "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java" - }, - { - "path": "java.header" - }, - { - "path": "license-checks.xml" - }, - { - "path": "pom.xml" - }, - { - "path": "proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml" - }, - { - "path": "proto-google-cloud-pubsub-v1/pom.xml" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java" - }, - { - "path": "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto" - }, - { - "path": "renovate.json" - }, - { - "path": "synth.metadata" - }, - { - "path": "synth.py" - }, - { - "path": "versions.txt" - } ] } \ No newline at end of file From 81ea2e177786142cfaa1244c1f83620fb652877a Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Fri, 31 Jan 2020 12:35:09 -0500 Subject: [PATCH 0289/2363] fix: shutdown grpc stubs properly when a subscriber is stopped (#74) * Modifying Publish example in README to match other examples given, and fix issue #6784 * fix: Modifying Publish example in README to match other examples, and fix Issue #11 * feat: Adding support for DLQs Adding delivery attempt count to PubsubMessages as a message attribute, and creating helper function to allow users to get the count without knowing implementation details. * Fix formatting * fix: making changes requested in pull request * fix: creating fix to not populate delivery attempt attribute when dead lettering is not enabled * Adding unit test for case in which a received message has no delivery attempt * Making MessageWaiter class more generic to also be used for outstanding ack operations * Waiting for acks to complete before shutting down a streaming subscriber connection * Fixing formatting error --- .../cloud/pubsub/v1/MessageDispatcher.java | 12 ++++----- .../com/google/cloud/pubsub/v1/Publisher.java | 10 +++---- .../v1/StreamingSubscriberConnection.java | 10 ++++++- .../google/cloud/pubsub/v1/Subscriber.java | 1 + .../v1/{MessageWaiter.java => Waiter.java} | 27 ++++++++++--------- ...MessageWaiterTest.java => WaiterTest.java} | 14 +++++----- 6 files changed, 43 insertions(+), 31 deletions(-) rename java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/{MessageWaiter.java => Waiter.java} (68%) rename java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/{MessageWaiterTest.java => WaiterTest.java} (80%) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 56fa8a3a9115..c3f1a46cd977 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -72,7 +72,7 @@ class MessageDispatcher { private final AckProcessor ackProcessor; private final FlowController flowController; - private final MessageWaiter messagesWaiter; + private final Waiter messagesWaiter; // Maps ID to "total expiration time". If it takes longer than this, stop extending. private final ConcurrentMap pendingMessages = new ConcurrentHashMap<>(); @@ -145,7 +145,7 @@ private void forget() { return; } flowController.release(1, outstandingBytes); - messagesWaiter.incrementPendingMessages(-1); + messagesWaiter.incrementPendingCount(-1); } @Override @@ -205,7 +205,7 @@ void sendAckOperations( // 601 buckets of 1s resolution from 0s to MAX_ACK_DEADLINE_SECONDS this.ackLatencyDistribution = ackLatencyDistribution; jobLock = new ReentrantLock(); - messagesWaiter = new MessageWaiter(); + messagesWaiter = new Waiter(); this.clock = clock; this.sequentialExecutor = new SequentialExecutorService.AutoExecutor(executor); } @@ -268,7 +268,7 @@ public void run() { } void stop() { - messagesWaiter.waitNoMessages(); + messagesWaiter.waitComplete(); jobLock.lock(); try { if (backgroundJob != null) { @@ -331,9 +331,9 @@ void processReceivedMessages(List messages) { } private void processBatch(List batch) { - messagesWaiter.incrementPendingMessages(batch.size()); + messagesWaiter.incrementPendingCount(batch.size()); for (OutstandingMessage message : batch) { - // This is a blocking flow controller. We have already incremented MessageWaiter, so + // This is a blocking flow controller. We have already incremented messagesWaiter, so // shutdown will block on processing of all these messages anyway. try { flowController.reserve(1, message.receivedMessage.getMessage().getSerializedSize()); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 093590bb900a..9af734db2627 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -104,7 +104,7 @@ public class Publisher { private final AtomicBoolean shutdown; private final BackgroundResource backgroundResources; - private final MessageWaiter messagesWaiter; + private final Waiter messagesWaiter; private ScheduledFuture currentAlarmFuture; private final ApiFunction messageTransform; @@ -173,7 +173,7 @@ private Publisher(Builder builder) throws IOException { backgroundResourceList.add(publisherStub); backgroundResources = new BackgroundResourceAggregation(backgroundResourceList); shutdown = new AtomicBoolean(false); - messagesWaiter = new MessageWaiter(); + messagesWaiter = new Waiter(); } /** Topic which the publisher publishes to. */ @@ -249,7 +249,7 @@ public ApiFuture publish(PubsubMessage message) { messagesBatchLock.unlock(); } - messagesWaiter.incrementPendingMessages(1); + messagesWaiter.incrementPendingCount(1); // For messages without ordering keys, it is okay to send batches without holding // messagesBatchLock. @@ -423,7 +423,7 @@ public void onSuccess(PublishResponse result) { } } } finally { - messagesWaiter.incrementPendingMessages(-outstandingBatch.size()); + messagesWaiter.incrementPendingCount(-outstandingBatch.size()); } } @@ -432,7 +432,7 @@ public void onFailure(Throwable t) { try { outstandingBatch.onFailure(t); } finally { - messagesWaiter.incrementPendingMessages(-outstandingBatch.size()); + messagesWaiter.incrementPendingCount(-outstandingBatch.size()); } } }; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index ef3ce23d679f..45f7fb90cfa7 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -72,6 +72,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final AtomicLong channelReconnectBackoffMillis = new AtomicLong(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); + private final Waiter ackOperationsWaiter = new Waiter(); private final Lock lock = new ReentrantLock(); private ClientStream clientStream; @@ -116,6 +117,7 @@ protected void doStart() { @Override protected void doStop() { messageDispatcher.stop(); + ackOperationsWaiter.waitComplete(); lock.lock(); try { @@ -273,16 +275,18 @@ public void sendAckOperations( new ApiFutureCallback() { @Override public void onSuccess(Empty empty) { - // noop + ackOperationsWaiter.incrementPendingCount(-1); } @Override public void onFailure(Throwable t) { + ackOperationsWaiter.incrementPendingCount(-1); Level level = isAlive() ? Level.WARNING : Level.FINER; logger.log(level, "failed to send operations", t); } }; + int pendingOperations = 0; for (PendingModifyAckDeadline modack : ackDeadlineExtensions) { for (List idChunk : Lists.partition(modack.ackIds, MAX_PER_REQUEST_CHANGES)) { ApiFuture future = @@ -294,6 +298,7 @@ public void onFailure(Throwable t) { .setAckDeadlineSeconds(modack.deadlineExtensionSeconds) .build()); ApiFutures.addCallback(future, loggingCallback, directExecutor()); + pendingOperations++; } } @@ -306,6 +311,9 @@ public void onFailure(Throwable t) { .addAllAckIds(idChunk) .build()); ApiFutures.addCallback(future, loggingCallback, directExecutor()); + pendingOperations++; } + + ackOperationsWaiter.incrementPendingCount(pendingOperations); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 2deafb2e7d1e..9c84dea0ab30 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -305,6 +305,7 @@ public void run() { // stop connection is no-op if connections haven't been started. stopAllStreamingConnections(); shutdownBackgroundResources(); + subStub.shutdownNow(); notifyStopped(); } catch (Exception e) { notifyFailed(e); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java similarity index 68% rename from java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java rename to java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java index cb238f3d34ca..e22125feea9f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageWaiter.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java @@ -18,25 +18,28 @@ import com.google.api.core.InternalApi; -/** A barrier kind of object that helps to keep track and synchronously wait on pending messages. */ -class MessageWaiter { - private int pendingMessages; +/** + * A barrier kind of object that helps keep track of pending actions and synchronously wait until + * all have completed. + */ +class Waiter { + private int pendingCount; - MessageWaiter() { - pendingMessages = 0; + Waiter() { + pendingCount = 0; } - public synchronized void incrementPendingMessages(int messages) { - this.pendingMessages += messages; - if (pendingMessages == 0) { + public synchronized void incrementPendingCount(int delta) { + this.pendingCount += delta; + if (pendingCount == 0) { notifyAll(); } } - public synchronized void waitNoMessages() { + public synchronized void waitComplete() { boolean interrupted = false; try { - while (pendingMessages > 0) { + while (pendingCount > 0) { try { wait(); } catch (InterruptedException e) { @@ -52,7 +55,7 @@ public synchronized void waitNoMessages() { } @InternalApi - public int pendingMessages() { - return pendingMessages; + public int pendingCount() { + return pendingCount; } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java similarity index 80% rename from java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java rename to java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java index 5f8e19875e42..ca8618378fd3 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageWaiterTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java @@ -22,14 +22,14 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** Tests for {@link MessageWaiter}. */ +/** Tests for {@link Waiter}. */ @RunWith(JUnit4.class) -public class MessageWaiterTest { +public class WaiterTest { @Test public void test() throws Exception { - final MessageWaiter waiter = new MessageWaiter(); - waiter.incrementPendingMessages(1); + final Waiter waiter = new Waiter(); + waiter.incrementPendingCount(1); final Thread mainThread = Thread.currentThread(); Thread t = @@ -40,14 +40,14 @@ public void run() { while (mainThread.getState() != Thread.State.WAITING) { Thread.yield(); } - waiter.incrementPendingMessages(-1); + waiter.incrementPendingCount(-1); } }); t.start(); - waiter.waitNoMessages(); + waiter.waitComplete(); t.join(); - assertEquals(0, waiter.pendingMessages()); + assertEquals(0, waiter.pendingCount()); } } From f18bc3a4c16d07b91fc6f21999d25fdc1cd05bea Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Fri, 31 Jan 2020 15:10:39 -0500 Subject: [PATCH 0290/2363] fix: ensure all publishes complete before shutting down publisher (#76) * Modifying Publish example in README to match other examples given, and fix issue #6784 * fix: Modifying Publish example in README to match other examples, and fix Issue #11 * feat: Adding support for DLQs Adding delivery attempt count to PubsubMessages as a message attribute, and creating helper function to allow users to get the count without knowing implementation details. * Fix formatting * fix: making changes requested in pull request * fix: creating fix to not populate delivery attempt attribute when dead lettering is not enabled * Adding unit test for case in which a received message has no delivery attempt * Making MessageWaiter class more generic to also be used for outstanding ack operations * Waiting for acks to complete before shutting down a streaming subscriber connection * Fixing formatting error * fix: making sure all publishes complete before shutting down the publisher --- .../com/google/cloud/pubsub/v1/Publisher.java | 1 + .../cloud/pubsub/v1/PublisherImplTest.java | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 9af734db2627..e28427eea85a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -527,6 +527,7 @@ public void shutdown() { currentAlarmFuture.cancel(false); } publishAllOutstanding(); + messagesWaiter.waitComplete(); backgroundResources.shutdown(); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 08fdee7b6be6..b1109c8fce65 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -195,6 +195,37 @@ public void testSinglePublishByNumBytes() throws Exception { publisher.awaitTermination(1, TimeUnit.MINUTES); } + @Test + public void testPublishByShutdown() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setDelayThreshold(Duration.ofSeconds(100)) + .setElementCountThreshold(10L) + .build()) + .build(); + + testPublisherServiceImpl.addPublishResponse( + PublishResponse.newBuilder().addMessageIds("1").addMessageIds("2")); + + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + ApiFuture publishFuture2 = sendTestMessage(publisher, "B"); + + // Note we are not advancing time or reaching the count threshold but messages should + // still get published by call to shutdown + + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + + // Verify the publishes completed + assertTrue(publishFuture1.isDone()); + assertTrue(publishFuture2.isDone()); + assertEquals("1", publishFuture1.get()); + assertEquals("2", publishFuture2.get()); + } + @Test public void testPublishMixedSizeAndDuration() throws Exception { Publisher publisher = From 76cfee316279d1a51d625791b1d1cfba1ef2d634 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Fri, 31 Jan 2020 15:48:52 -0500 Subject: [PATCH 0291/2363] feat: add randomly generated UUID to outgoing initial streaming pull requests (#77) * google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java * Ensure that if a batch is started and the timeout completes before the currently outstanding message has finished publishing with an ordering key that the last batch does in fact get published. * add back in unit test * feat: add randomly generated UUID to outgoing initial streaming pull requests for better ordering keys affinity --- .../cloud/pubsub/v1/StreamingSubscriberConnection.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 45f7fb90cfa7..047e1ba7509b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -45,6 +45,7 @@ import com.google.pubsub.v1.StreamingPullResponse; import io.grpc.Status; import java.util.List; +import java.util.UUID; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; @@ -77,6 +78,13 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final Lock lock = new ReentrantLock(); private ClientStream clientStream; + /** + * The same clientId is used across all streaming pull connections that are created. This is + * intentional, as it indicates to the server that any guarantees made for a stream that + * disconnected will be made for the stream that is created to replace it. + */ + private final String clientId = UUID.randomUUID().toString(); + public StreamingSubscriberConnection( String subscription, MessageReceiver receiver, @@ -200,6 +208,7 @@ private void initialize() { StreamingPullRequest.newBuilder() .setSubscription(subscription) .setStreamAckDeadlineSeconds(60) + .setClientId(clientId) .build()); /** From fdcc879ed197a35730219e1a0271bb0d6f972d81 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 3 Feb 2020 10:12:31 -0800 Subject: [PATCH 0292/2363] chore: linkage monitor check should skipp clirr and enforcer --- java-pubsub/.kokoro/linkage-monitor.sh | 7 ++++++- java-pubsub/synth.metadata | 8 ++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.kokoro/linkage-monitor.sh b/java-pubsub/.kokoro/linkage-monitor.sh index dc20251942b9..088ded29ae6b 100755 --- a/java-pubsub/.kokoro/linkage-monitor.sh +++ b/java-pubsub/.kokoro/linkage-monitor.sh @@ -23,7 +23,12 @@ cd github/java-pubsub/ java -version echo ${JOB_TYPE} -mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V +mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true # Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR JAR=linkage-monitor-latest-all-deps.jar diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index ef179407b1bc..70d71c796be5 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2020-01-31T08:56:58.976767Z", + "updateTime": "2020-02-01T08:56:26.588207Z", "sources": [ { "generator": { @@ -12,9 +12,9 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "7ac66d9be8a7d7de4f13566d8663978c9ee9dcd7", - "internalRef": "292450564", - "log": "7ac66d9be8a7d7de4f13566d8663978c9ee9dcd7\nAdd Dataproc Autoscaling API to V1.\n\nPiperOrigin-RevId: 292450564\n\n5d932b2c1be3a6ef487d094e3cf5c0673d0241dd\n- Improve documentation\n- Add a client_id field to StreamingPullRequest\n\nPiperOrigin-RevId: 292434036\n\neaff9fa8edec3e914995ce832b087039c5417ea7\nmonitoring: v3 publish annotations and client retry config\n\nPiperOrigin-RevId: 292425288\n\n70958bab8c5353870d31a23fb2c40305b050d3fe\nBigQuery Storage Read API v1 clients.\n\nPiperOrigin-RevId: 292407644\n\n7a15e7fe78ff4b6d5c9606a3264559e5bde341d1\nUpdate backend proto for Google Cloud Endpoints\n\nPiperOrigin-RevId: 292391607\n\n3ca2c014e24eb5111c8e7248b1e1eb833977c83d\nbazel: Add --flaky_test_attempts=3 argument to prevent CI failures caused by flaky tests\n\nPiperOrigin-RevId: 292382559\n\n9933347c1f677e81e19a844c2ef95bfceaf694fe\nbazel:Integrate latest protoc-java-resource-names-plugin changes (fix for PyYAML dependency in bazel rules)\n\nPiperOrigin-RevId: 292376626\n\nb835ab9d2f62c88561392aa26074c0b849fb0bd3\nasset: v1p2beta1 add client config annotations\n\n* remove unintentionally exposed RPCs\n* remove messages relevant to removed RPCs\n\nPiperOrigin-RevId: 292369593\n\nc1246a29e22b0f98e800a536b5b0da2d933a55f2\nUpdating v1 protos with the latest inline documentation (in comments) and config options. Also adding a per-service .yaml file.\n\nPiperOrigin-RevId: 292310790\n\nb491d07cadaae7cde5608321f913e5ca1459b32d\nRevert accidental local_repository change\n\nPiperOrigin-RevId: 292245373\n\naf3400a8cb6110025198b59a0f7d018ae3cda700\nUpdate gapic-generator dependency (prebuilt PHP binary support).\n\nPiperOrigin-RevId: 292243997\n\n341fd5690fae36f36cf626ef048fbcf4bbe7cee6\ngrafeas: v1 add resource_definition for the grafeas.io/Project and change references for Project.\n\nPiperOrigin-RevId: 292221998\n\n42e915ec2ece1cd37a590fbcd10aa2c0fb0e5b06\nUpdate the gapic-generator, protoc-java-resource-name-plugin and protoc-docs-plugin to the latest commit.\n\nPiperOrigin-RevId: 292182368\n\nf035f47250675d31492a09f4a7586cfa395520a7\nFix grafeas build and update build.sh script to include gerafeas.\n\nPiperOrigin-RevId: 292168753\n\n26ccb214b7bc4a716032a6266bcb0a9ca55d6dbb\nasset: v1p1beta1 add client config annotations and retry config\n\nPiperOrigin-RevId: 292154210\n\n974ee5c0b5d03e81a50dafcedf41e0efebb5b749\nasset: v1beta1 add client config annotations\n\nPiperOrigin-RevId: 292152573\n\ncf3b61102ed5f36b827bc82ec39be09525f018c8\n Fix to protos for v1p1beta1 release of Cloud Security Command Center\n\nPiperOrigin-RevId: 292034635\n\n4e1cfaa7c0fede9e65d64213ca3da1b1255816c0\nUpdate the public proto to support UTF-8 encoded id for CatalogService API, increase the ListCatalogItems deadline to 300s and some minor documentation change\n\nPiperOrigin-RevId: 292030970\n\n9c483584f8fd5a1b862ae07973f4cc7bb3e46648\nasset: add annotations to v1p1beta1\n\nPiperOrigin-RevId: 292009868\n\ne19209fac29731d0baf6d9ac23da1164f7bdca24\nAdd the google.rpc.context.AttributeContext message to the open source\ndirectories.\n\nPiperOrigin-RevId: 291999930\n\nae5662960573f279502bf98a108a35ba1175e782\noslogin API: move file level option on top of the file to avoid protobuf.js bug.\n\nPiperOrigin-RevId: 291990506\n\neba3897fff7c49ed85d3c47fc96fe96e47f6f684\nAdd cc_proto_library and cc_grpc_library targets for Spanner and IAM protos.\n\nPiperOrigin-RevId: 291988651\n\n8e981acfd9b97ea2f312f11bbaa7b6c16e412dea\nBeta launch for PersonDetection and FaceDetection features.\n\nPiperOrigin-RevId: 291821782\n\n994e067fae3b21e195f7da932b08fff806d70b5d\nasset: add annotations to v1p2beta1\n\nPiperOrigin-RevId: 291815259\n\n244e1d2c89346ca2e0701b39e65552330d68545a\nAdd Playable Locations service\n\nPiperOrigin-RevId: 291806349\n\n909f8f67963daf45dd88d020877fb9029b76788d\nasset: add annotations to v1beta2\n\nPiperOrigin-RevId: 291805301\n\n3c39a1d6e23c1ef63c7fba4019c25e76c40dfe19\nKMS: add file-level message for CryptoKeyPath, it is defined in gapic yaml but not\nin proto files.\n\nPiperOrigin-RevId: 291420695\n\nc6f3f350b8387f8d1b85ed4506f30187ebaaddc3\ncontaineranalysis: update v1beta1 and bazel build with annotations\n\nPiperOrigin-RevId: 291401900\n\n92887d74b44e4e636252b7b8477d0d2570cd82db\nfix: fix the location of grpc config file.\n\nPiperOrigin-RevId: 291396015\n\ne26cab8afd19d396b929039dac5d874cf0b5336c\nexpr: add default_host and method_signature annotations to CelService\n\nPiperOrigin-RevId: 291240093\n\n06093ae3952441c34ec176d1f7431b8765cec0be\nirm: fix v1alpha2 bazel build by adding missing proto imports\n\nPiperOrigin-RevId: 291227940\n\na8a2514af326e4673063f9a3c9d0ef1091c87e6c\nAdd proto annotation for cloud/irm API\n\nPiperOrigin-RevId: 291217859\n\n" + "sha": "b5cbe4a4ba64ab19e6627573ff52057a1657773d", + "internalRef": "292647187", + "log": "b5cbe4a4ba64ab19e6627573ff52057a1657773d\nSecurityCenter v1p1beta1: move file-level option on top to workaround protobuf.js bug.\n\nPiperOrigin-RevId: 292647187\n\nb224b317bf20c6a4fbc5030b4a969c3147f27ad3\nAdds API definitions for bigqueryreservation v1beta1.\n\nPiperOrigin-RevId: 292634722\n\nc1468702f9b17e20dd59007c0804a089b83197d2\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 292626173\n\nffdfa4f55ab2f0afc11d0eb68f125ccbd5e404bd\nvision: v1p3beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605599\n\n78f61482cd028fc1d9892aa5d89d768666a954cd\nvision: v1p1beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605125\n\n60bb5a294a604fd1778c7ec87b265d13a7106171\nvision: v1p2beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604980\n\n3bcf7aa79d45eb9ec29ab9036e9359ea325a7fc3\nvision: v1p4beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604656\n\n2717b8a1c762b26911b45ecc2e4ee01d98401b28\nFix dataproc artman client library generation.\n\nPiperOrigin-RevId: 292555664\n\n" } }, { From f2aea19711d2b97d74b38d4432c7cf3f4490cff2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 3 Feb 2020 21:09:04 +0100 Subject: [PATCH 0293/2363] deps: update core dependencies (#56) --- java-pubsub/pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9ec29e6ea8d3..85c3e0fdb3db 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -63,11 +63,11 @@ UTF-8 github google-cloud-pubsub-parent - 1.92.1 + 1.92.4 1.8.1 1.17.0 - 1.52.0 - 1.26.0 + 1.53.1 + 1.27.0 3.11.1 4.13 3.6 From 806742bb91d972c3eda6c67cd725a04311d21d4d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 4 Feb 2020 00:16:23 +0100 Subject: [PATCH 0294/2363] deps: update dependency com.google.protobuf:protobuf-java to v3.11.3 (#79) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 85c3e0fdb3db..939d2241a06b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -68,7 +68,7 @@ 1.17.0 1.53.1 1.27.0 - 3.11.1 + 3.11.3 4.13 3.6 28.2-android From b08d22cfd0d1de4e8f7eb9df1e4b07f12fcbf20a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 10 Feb 2020 09:07:38 -0800 Subject: [PATCH 0295/2363] docs(regen): update sample code to set total timeout, add API client header test --- .../pubsub/v1/SubscriptionAdminSettings.java | 8 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 8 +- .../pubsub/v1/stub/PublisherStubSettings.java | 8 +- .../v1/stub/SubscriberStubSettings.java | 8 +- .../v1/SubscriptionAdminClientTest.java | 180 ++++++++++++++++++ .../cloud/pubsub/v1/TopicAdminClientTest.java | 50 +++++ java-pubsub/synth.metadata | 14 +- 7 files changed, 261 insertions(+), 15 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index fbc3f6b87938..32e5a6c5cd66 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -83,8 +83,12 @@ * * SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder = * SubscriptionAdminSettings.newBuilder(); - * subscriptionAdminSettingsBuilder.createSubscriptionSettings().getRetrySettings().toBuilder() - * .setTotalTimeout(Duration.ofSeconds(30)); + * subscriptionAdminSettingsBuilder + * .createSubscriptionSettings() + * .setRetrySettings( + * subscriptionAdminSettingsBuilder.createSubscriptionSettings().getRetrySettings().toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); * SubscriptionAdminSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build(); * *
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 994e408687eb..9b125b8cc28c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -72,8 +72,12 @@ * * TopicAdminSettings.Builder topicAdminSettingsBuilder = * TopicAdminSettings.newBuilder(); - * topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder() - * .setTotalTimeout(Duration.ofSeconds(30)); + * topicAdminSettingsBuilder + * .createTopicSettings() + * .setRetrySettings( + * topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); * TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build(); * *
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 840f8b942959..d472257852a3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -96,8 +96,12 @@ * * PublisherStubSettings.Builder topicAdminSettingsBuilder = * PublisherStubSettings.newBuilder(); - * topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder() - * .setTotalTimeout(Duration.ofSeconds(30)); + * topicAdminSettingsBuilder + * .createTopicSettings() + * .setRetrySettings( + * topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); * PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build(); * *
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 1a488045fda1..1bb1e63c518c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -98,8 +98,12 @@ * * SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder = * SubscriberStubSettings.newBuilder(); - * subscriptionAdminSettingsBuilder.createSubscriptionSettings().getRetrySettings().toBuilder() - * .setTotalTimeout(Duration.ofSeconds(30)); + * subscriptionAdminSettingsBuilder + * .createSubscriptionSettings() + * .setRetrySettings( + * subscriptionAdminSettingsBuilder.createSubscriptionSettings().getRetrySettings().toBuilder() + * .setTotalTimeout(Duration.ofSeconds(30)) + * .build()); * SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build(); * *
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index dbb7c06cffe4..cd93678373ef 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -38,6 +38,8 @@ import com.google.protobuf.AbstractMessage; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; @@ -57,11 +59,15 @@ import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.PushConfig; import com.google.pubsub.v1.ReceivedMessage; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; import com.google.pubsub.v1.Snapshot; import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; import com.google.pubsub.v1.Subscription; import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.UpdateSnapshotRequest; +import com.google.pubsub.v1.UpdateSubscriptionRequest; import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; @@ -234,6 +240,77 @@ public void getSubscriptionExceptionTest() throws Exception { } } + @Test + @SuppressWarnings("all") + public void updateSubscriptionTest() { + ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + TopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + int ackDeadlineSeconds2 = 921632575; + boolean retainAckedMessages = false; + boolean enableMessageOrdering = true; + Subscription expectedResponse = + Subscription.newBuilder() + .setName(name.toString()) + .setTopic(topic.toString()) + .setAckDeadlineSeconds(ackDeadlineSeconds2) + .setRetainAckedMessages(retainAckedMessages) + .setEnableMessageOrdering(enableMessageOrdering) + .build(); + mockSubscriber.addResponse(expectedResponse); + + int ackDeadlineSeconds = 42; + Subscription subscription = + Subscription.newBuilder().setAckDeadlineSeconds(ackDeadlineSeconds).build(); + String pathsElement = "ack_deadline_seconds"; + List paths = Arrays.asList(pathsElement); + FieldMask updateMask = FieldMask.newBuilder().addAllPaths(paths).build(); + UpdateSubscriptionRequest request = + UpdateSubscriptionRequest.newBuilder() + .setSubscription(subscription) + .setUpdateMask(updateMask) + .build(); + + Subscription actualResponse = client.updateSubscription(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSubscriptionRequest actualRequest = (UpdateSubscriptionRequest) actualRequests.get(0); + + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + int ackDeadlineSeconds = 42; + Subscription subscription = + Subscription.newBuilder().setAckDeadlineSeconds(ackDeadlineSeconds).build(); + String pathsElement = "ack_deadline_seconds"; + List paths = Arrays.asList(pathsElement); + FieldMask updateMask = FieldMask.newBuilder().addAllPaths(paths).build(); + UpdateSubscriptionRequest request = + UpdateSubscriptionRequest.newBuilder() + .setSubscription(subscription) + .setUpdateMask(updateMask) + .build(); + + client.updateSubscription(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void listSubscriptionsTest() { @@ -661,6 +738,65 @@ public void createSnapshotExceptionTest() throws Exception { } } + @Test + @SuppressWarnings("all") + public void updateSnapshotTest() { + ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + Snapshot expectedResponse = + Snapshot.newBuilder().setName(name.toString()).setTopic(topic.toString()).build(); + mockSubscriber.addResponse(expectedResponse); + + long seconds = 123456L; + Timestamp expireTime = Timestamp.newBuilder().setSeconds(seconds).build(); + Snapshot snapshot = Snapshot.newBuilder().setExpireTime(expireTime).build(); + String pathsElement = "expire_time"; + List paths = Arrays.asList(pathsElement); + FieldMask updateMask = FieldMask.newBuilder().addAllPaths(paths).build(); + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder().setSnapshot(snapshot).setUpdateMask(updateMask).build(); + + Snapshot actualResponse = client.updateSnapshot(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSnapshotRequest actualRequest = (UpdateSnapshotRequest) actualRequests.get(0); + + Assert.assertEquals(snapshot, actualRequest.getSnapshot()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateSnapshotExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + long seconds = 123456L; + Timestamp expireTime = Timestamp.newBuilder().setSeconds(seconds).build(); + Snapshot snapshot = Snapshot.newBuilder().setExpireTime(expireTime).build(); + String pathsElement = "expire_time"; + List paths = Arrays.asList(pathsElement); + FieldMask updateMask = FieldMask.newBuilder().addAllPaths(paths).build(); + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder() + .setSnapshot(snapshot) + .setUpdateMask(updateMask) + .build(); + + client.updateSnapshot(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void deleteSnapshotTest() { @@ -698,6 +834,50 @@ public void deleteSnapshotExceptionTest() throws Exception { } } + @Test + @SuppressWarnings("all") + public void seekTest() { + SeekResponse expectedResponse = SeekResponse.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SeekRequest request = SeekRequest.newBuilder().setSubscription(subscription.toString()).build(); + + SeekResponse actualResponse = client.seek(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SeekRequest actualRequest = (SeekRequest) actualRequests.get(0); + + Assert.assertEquals( + subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void seekExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + SeekRequest request = + SeekRequest.newBuilder().setSubscription(subscription.toString()).build(); + + client.seek(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void setIamPolicyTest() { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 390bec08404e..72d7bf86c009 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -34,6 +34,7 @@ import com.google.protobuf.AbstractMessage; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; @@ -47,6 +48,7 @@ import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.UpdateTopicRequest; import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; @@ -145,6 +147,54 @@ public void createTopicExceptionTest() throws Exception { } } + @Test + @SuppressWarnings("all") + public void updateTopicTest() { + ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + String kmsKeyName = "kmsKeyName2094986649"; + Topic expectedResponse = + Topic.newBuilder().setName(name.toString()).setKmsKeyName(kmsKeyName).build(); + mockPublisher.addResponse(expectedResponse); + + Topic topic = Topic.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + UpdateTopicRequest request = + UpdateTopicRequest.newBuilder().setTopic(topic).setUpdateMask(updateMask).build(); + + Topic actualResponse = client.updateTopic(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTopicRequest actualRequest = (UpdateTopicRequest) actualRequests.get(0); + + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void updateTopicExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + Topic topic = Topic.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + UpdateTopicRequest request = + UpdateTopicRequest.newBuilder().setTopic(topic).setUpdateMask(updateMask).build(); + + client.updateTopic(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void publishTest() { diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 70d71c796be5..89f33cfa59e7 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,27 +1,27 @@ { - "updateTime": "2020-02-01T08:56:26.588207Z", + "updateTime": "2020-02-08T10:00:19.164940Z", "sources": [ { "generator": { "name": "artman", - "version": "0.44.4", - "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" + "version": "0.45.0", + "dockerImage": "googleapis/artman@sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b5cbe4a4ba64ab19e6627573ff52057a1657773d", - "internalRef": "292647187", - "log": "b5cbe4a4ba64ab19e6627573ff52057a1657773d\nSecurityCenter v1p1beta1: move file-level option on top to workaround protobuf.js bug.\n\nPiperOrigin-RevId: 292647187\n\nb224b317bf20c6a4fbc5030b4a969c3147f27ad3\nAdds API definitions for bigqueryreservation v1beta1.\n\nPiperOrigin-RevId: 292634722\n\nc1468702f9b17e20dd59007c0804a089b83197d2\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 292626173\n\nffdfa4f55ab2f0afc11d0eb68f125ccbd5e404bd\nvision: v1p3beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605599\n\n78f61482cd028fc1d9892aa5d89d768666a954cd\nvision: v1p1beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605125\n\n60bb5a294a604fd1778c7ec87b265d13a7106171\nvision: v1p2beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604980\n\n3bcf7aa79d45eb9ec29ab9036e9359ea325a7fc3\nvision: v1p4beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604656\n\n2717b8a1c762b26911b45ecc2e4ee01d98401b28\nFix dataproc artman client library generation.\n\nPiperOrigin-RevId: 292555664\n\n" + "sha": "e7d8a694f4559201e6913f6610069cb08b39274e", + "internalRef": "293903652", + "log": "e7d8a694f4559201e6913f6610069cb08b39274e\nDepend on the latest gapic-generator and resource names plugin.\n\nThis fixes the very old an very annoying bug: https://github.com/googleapis/gapic-generator/pull/3087\n\nPiperOrigin-RevId: 293903652\n\n806b2854a966d55374ee26bb0cef4e30eda17b58\nfix: correct capitalization of Ruby namespaces in SecurityCenter V1p1beta1\n\nPiperOrigin-RevId: 293903613\n\n1b83c92462b14d67a7644e2980f723112472e03a\nPublish annotations and grpc service config for Logging API.\n\nPiperOrigin-RevId: 293893514\n\ne46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585\nGenerate the Bazel build file for recommendengine public api\n\nPiperOrigin-RevId: 293710856\n\n68477017c4173c98addac0373950c6aa9d7b375f\nMake `language_code` optional for UpdateIntentRequest and BatchUpdateIntentsRequest.\n\nThe comments and proto annotations describe this parameter as optional.\n\nPiperOrigin-RevId: 293703548\n\n16f823f578bca4e845a19b88bb9bc5870ea71ab2\nAdd BUILD.bazel files for managedidentities API\n\nPiperOrigin-RevId: 293698246\n\n2f53fd8178c9a9de4ad10fae8dd17a7ba36133f2\nAdd v1p1beta1 config file\n\nPiperOrigin-RevId: 293696729\n\n052b274138fce2be80f97b6dcb83ab343c7c8812\nAdd source field for user event and add field behavior annotations\n\nPiperOrigin-RevId: 293693115\n\n1e89732b2d69151b1b3418fff3d4cc0434f0dded\ndatacatalog: v1beta1 add three new RPCs to gapic v1beta1 config\n\nPiperOrigin-RevId: 293692823\n\n9c8bd09bbdc7c4160a44f1fbab279b73cd7a2337\nchange the name of AccessApproval service to AccessApprovalAdmin\n\nPiperOrigin-RevId: 293690934\n\n2e23b8fbc45f5d9e200572ca662fe1271bcd6760\nAdd ListEntryGroups method, add http bindings to support entry group tagging, and update some comments.\n\nPiperOrigin-RevId: 293666452\n\n0275e38a4ca03a13d3f47a9613aac8c8b0d3f1f2\nAdd proto_package field to managedidentities API. It is needed for APIs that still depend on artman generation.\n\nPiperOrigin-RevId: 293643323\n\n4cdfe8278cb6f308106580d70648001c9146e759\nRegenerating public protos for Data Catalog to add new Custom Type Entry feature.\n\nPiperOrigin-RevId: 293614782\n\n45d2a569ab526a1fad3720f95eefb1c7330eaada\nEnable client generation for v1 ManagedIdentities API.\n\nPiperOrigin-RevId: 293515675\n\n2c17086b77e6f3bcf04a1f65758dfb0c3da1568f\nAdd the Actions on Google common types (//google/actions/type/*).\n\nPiperOrigin-RevId: 293478245\n\n781aadb932e64a12fb6ead7cd842698d99588433\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293443396\n\ne2602608c9138c2fca24162720e67f9307c30b95\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293442964\n\nc8aef82028d06b7992278fa9294c18570dc86c3d\nAdd cc_proto_library and cc_grpc_library targets for Bigtable protos.\n\nAlso fix indentation of cc_grpc_library targets in Spanner and IAM protos.\n\nPiperOrigin-RevId: 293440538\n\ne2faab04f4cb7f9755072330866689b1943a16e9\ncloudtasks: v2 replace non-standard retry params in gapic config v2\n\nPiperOrigin-RevId: 293424055\n\ndfb4097ea628a8470292c6590a4313aee0c675bd\nerrorreporting: v1beta1 add legacy artman config for php\n\nPiperOrigin-RevId: 293423790\n\nb18aed55b45bfe5b62476292c72759e6c3e573c6\nasset: v1p1beta1 updated comment for `page_size` limit.\n\nPiperOrigin-RevId: 293421386\n\nc9ef36b7956d9859a2fc86ad35fcaa16958ab44f\nbazel: Refactor CI build scripts\n\nPiperOrigin-RevId: 293387911\n\na8ed9d921fdddc61d8467bfd7c1668f0ad90435c\nfix: set Ruby module name for OrgPolicy\n\nPiperOrigin-RevId: 293257997\n\n6c7d28509bd8315de8af0889688ee20099594269\nredis: v1beta1 add UpgradeInstance and connect_mode field to Instance\n\nPiperOrigin-RevId: 293242878\n\nae0abed4fcb4c21f5cb67a82349a049524c4ef68\nredis: v1 add connect_mode field to Instance\n\nPiperOrigin-RevId: 293241914\n\n3f7a0d29b28ee9365771da2b66edf7fa2b4e9c56\nAdds service config definition for bigqueryreservation v1beta1\n\nPiperOrigin-RevId: 293234418\n\n0c88168d5ed6fe353a8cf8cbdc6bf084f6bb66a5\naddition of BUILD & configuration for accessapproval v1\n\nPiperOrigin-RevId: 293219198\n\n39bedc2e30f4778ce81193f6ba1fec56107bcfc4\naccessapproval: v1 publish protos\n\nPiperOrigin-RevId: 293167048\n\n69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n29d40b78e3dc1579b0b209463fbcb76e5767f72a\nExpose managedidentities/v1beta1/ API for client library usage.\n\nPiperOrigin-RevId: 292979741\n\na22129a1fb6e18056d576dfb7717aef74b63734a\nExpose managedidentities/v1/ API for client library usage.\n\nPiperOrigin-RevId: 292968186\n\n" } }, { "template": { "name": "java_library", "origin": "synthtool.gcp", - "version": "2019.10.17" + "version": "2020.2.4" } } ], From 0ba889d6d29fcfcf08e5568e844f07de240d6c46 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 11 Feb 2020 18:07:55 +0100 Subject: [PATCH 0296/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.92.5 --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 939d2241a06b..538bde6024e7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -63,7 +63,7 @@ UTF-8 github google-cloud-pubsub-parent - 1.92.4 + 1.92.5 1.8.1 1.17.0 1.53.1 From c8c11434cf7a23937fff1237c33cfd95efc61693 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 11 Feb 2020 12:17:28 -0800 Subject: [PATCH 0297/2363] chore: only allow renovate-bot for trusted-contribution auto-labeling (#84) --- java-pubsub/.github/trusted-contribution.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 java-pubsub/.github/trusted-contribution.yml diff --git a/java-pubsub/.github/trusted-contribution.yml b/java-pubsub/.github/trusted-contribution.yml new file mode 100644 index 000000000000..f247d5c78934 --- /dev/null +++ b/java-pubsub/.github/trusted-contribution.yml @@ -0,0 +1,2 @@ +trustedContributors: +- renovate-bot \ No newline at end of file From ca821a9e0068ba8b321bd2b1823bf27837dc372c Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Thu, 20 Feb 2020 17:16:03 -0500 Subject: [PATCH 0298/2363] fix: retry streaming subscriber connections on unknown (#92) * Retrying unknown errors --- .../src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java index ab31f0320ab5..a7b8e1faa5bf 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java @@ -36,6 +36,7 @@ static boolean isRetryable(Throwable error) { case CANCELLED: case RESOURCE_EXHAUSTED: case ABORTED: + case UNKNOWN: return true; case UNAVAILABLE: // TODO(pongad): check that ApiException propagate message properly. From 42cc4aec17acc6e7af03eaeaca67f1f81e657d32 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 20 Feb 2020 17:43:31 -0500 Subject: [PATCH 0299/2363] chore: release 1.103.0 (#73) * updated CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated pom.xml [ci skip] --- java-pubsub/CHANGELOG.md | 30 +++++++++++++++++++ java-pubsub/README.md | 6 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 ++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/versions.txt | 6 ++-- 8 files changed, 50 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 2d9a61823c71..6ecfc27b66a0 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,35 @@ # Changelog +## [1.103.0](https://www.github.com/googleapis/java-pubsub/compare/v1.102.1...v1.103.0) (2020-02-20) + + +### Features + +* add randomly generated UUID to outgoing initial streaming pull requests ([#77](https://www.github.com/googleapis/java-pubsub/issues/77)) ([08e77d4](https://www.github.com/googleapis/java-pubsub/commit/08e77d428aa50bb53ed7d5b922e76c2da18ed6d1)) +* adding support for dead letter queues ([#60](https://www.github.com/googleapis/java-pubsub/issues/60)) ([f3c93fa](https://www.github.com/googleapis/java-pubsub/commit/f3c93fa8bf0eb8ebda6eea6c6c6a60a36dc69af2)) + + +### Bug Fixes + +* ensure all publishes complete before shutting down publisher ([#76](https://www.github.com/googleapis/java-pubsub/issues/76)) ([d0ab525](https://www.github.com/googleapis/java-pubsub/commit/d0ab52576c729091b4cdc72b378a305e102ca180)), closes [#6784](https://www.github.com/googleapis/java-pubsub/issues/6784) [#11](https://www.github.com/googleapis/java-pubsub/issues/11) +* removing delivery attempt attribute when dead lettering is not enabled ([#72](https://www.github.com/googleapis/java-pubsub/issues/72)) ([535854d](https://www.github.com/googleapis/java-pubsub/commit/535854df64234fe491cae1e3db0c96d685ef0800)) +* retry streaming subscriber connections on unknown ([#92](https://www.github.com/googleapis/java-pubsub/issues/92)) ([d702a5c](https://www.github.com/googleapis/java-pubsub/commit/d702a5caa2a1da7a160a449fd91681e38c034afc)) +* shutdown grpc stubs properly when a subscriber is stopped ([#74](https://www.github.com/googleapis/java-pubsub/issues/74)) ([9bcc433](https://www.github.com/googleapis/java-pubsub/commit/9bcc433e6d167f68256e0ede2a521296dcbc7412)), closes [#6784](https://www.github.com/googleapis/java-pubsub/issues/6784) [#11](https://www.github.com/googleapis/java-pubsub/issues/11) + + +### Dependencies + +* update core dependencies ([#56](https://www.github.com/googleapis/java-pubsub/issues/56)) ([0188a8a](https://www.github.com/googleapis/java-pubsub/commit/0188a8a550d3aeb2626e7398a2802bf1756240d7)) +* update dependency com.google.cloud:google-cloud-core to v1.92.5 ([c296feb](https://www.github.com/googleapis/java-pubsub/commit/c296febe426dc9453b050cb21bcb188a4d09ad50)) +* update dependency com.google.http-client:google-http-client-bom to v1.34.1 ([#71](https://www.github.com/googleapis/java-pubsub/issues/71)) ([69fc615](https://www.github.com/googleapis/java-pubsub/commit/69fc6155a4490dcad082abf7742b359c0a0ff885)) +* update dependency com.google.protobuf:protobuf-java to v3.11.3 ([#79](https://www.github.com/googleapis/java-pubsub/issues/79)) ([0f77732](https://www.github.com/googleapis/java-pubsub/commit/0f77732e751a83f61fe3b6a7e4b745003fc87474)) +* update dependency org.threeten:threetenbp to v1.4.1 ([4383d60](https://www.github.com/googleapis/java-pubsub/commit/4383d6064d8a3ef8d0dd9bc8c65e09b48d6f53dc)) + + +### Documentation + +* **regen:** update sample code to set total timeout, add API client header test ([8bc23bc](https://www.github.com/googleapis/java-pubsub/commit/8bc23bc3b68a2c3a2a7caa1d9859dfdd1b56c47d)) + ### [1.102.1](https://www.github.com/googleapis/java-pubsub/compare/v1.102.0...v1.102.1) (2020-01-07) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8d433b89cbae..567467d9e313 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -37,16 +37,16 @@ If you are using Maven without a BOM, add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.102.1 + 1.103.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.102.1' +compile 'com.google.cloud:google-cloud-pubsub:1.103.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.102.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.103.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0081b11f88b5..69cbb812e71a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.102.2-SNAPSHOT + 1.103.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.2-SNAPSHOT + 1.85.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.2-SNAPSHOT + 1.85.0 com.google.cloud google-cloud-pubsub - 1.102.2-SNAPSHOT + 1.103.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 484b3ffdadb2..133a25574b70 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.102.2-SNAPSHOT + 1.103.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.102.2-SNAPSHOT + 1.103.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index de6df48b29c0..808141de5547 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.2-SNAPSHOT + 1.85.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.102.2-SNAPSHOT + 1.103.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 538bde6024e7..c08ef4b6b4c3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.102.2-SNAPSHOT + 1.103.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.2-SNAPSHOT + 1.85.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.84.2-SNAPSHOT + 1.85.0 com.google.cloud google-cloud-pubsub - 1.102.2-SNAPSHOT + 1.103.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index de3768575d27..0b6916bab81c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.84.2-SNAPSHOT + 1.85.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.102.2-SNAPSHOT + 1.103.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6b23127bfcd3..9905f1d5fc16 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.84.1:1.84.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.84.1:1.84.2-SNAPSHOT -google-cloud-pubsub:1.102.1:1.102.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.85.0:1.85.0 +grpc-google-cloud-pubsub-v1:1.85.0:1.85.0 +google-cloud-pubsub:1.103.0:1.103.0 \ No newline at end of file From 75c81dfaae6af8fe6dfd928b7c2c47506b1c40a7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 21 Feb 2020 17:44:31 +0100 Subject: [PATCH 0300/2363] deps: update dependency com.google.protobuf:protobuf-java to v3.11.4 This PR contains the following updates: | Package | Update | Change | |---|---|---| | com.google.protobuf:protobuf-java | patch | `3.11.3` -> `3.11.4` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or if you tick the rebase/retry checkbox below. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c08ef4b6b4c3..c226fa06c0f9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -68,7 +68,7 @@ 1.17.0 1.53.1 1.27.0 - 3.11.3 + 3.11.4 4.13 3.6 28.2-android From 217cf1c9a474924cfe69a3b2732fe4a998b02232 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 21 Feb 2020 18:46:36 +0100 Subject: [PATCH 0301/2363] deps: update dependency io.grpc:grpc-bom to v1.27.1 This PR contains the following updates: | Package | Update | Change | |---|---|---| | [io.grpc:grpc-bom](https://togithub.com/grpc/grpc-java) | patch | `1.27.0` -> `1.27.1` | --- ### Release Notes
    grpc/grpc-java ### [`v1.27.1`](https://togithub.com/grpc/grpc-java/releases/v1.27.1) [Compare Source](https://togithub.com/grpc/grpc-java/compare/v1.27.0...v1.27.1) #### Bug Fixes - alts: Fix using the wrong way of checking if Conscrypt is available ([#​6672](https://togithub.com/grpc/grpc-java/issues/6672))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or if you tick the rebase/retry checkbox below. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c226fa06c0f9..1c6da3425bea 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -67,7 +67,7 @@ 1.8.1 1.17.0 1.53.1 - 1.27.0 + 1.27.1 3.11.4 4.13 3.6 From 5c4f17e4d13d159ee3039345e65196f4320b4cac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 21 Feb 2020 19:52:27 +0100 Subject: [PATCH 0302/2363] deps: update dependency com.google.http-client:google-http-client-bom to v1.34.2 This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.http-client:google-http-client-bom](https://togithub.com/googleapis/google-http-java-client) | patch | `1.34.1` -> `1.34.2` | --- ### Release Notes
    googleapis/google-http-java-client ### [`v1.34.2`](https://togithub.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md#​1342httpswwwgithubcomgoogleapisgoogle-http-java-clientcomparev1341v1342-2020-02-12) [Compare Source](https://togithub.com/googleapis/google-http-java-client/compare/v1.34.1...v1.34.2)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or if you tick the rebase/retry checkbox below. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1c6da3425bea..47c7142aa3e5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -75,7 +75,7 @@ 1.4.1 1.3.2 2.3.4 - 1.34.1 + 1.34.2 1.18 1.7 0.24.0 From bfcd88ebeabeeb46f3fb8128743a85e8990b72be Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Mon, 24 Feb 2020 13:02:45 -0500 Subject: [PATCH 0303/2363] fix: add a default value for max outstanding request bytes flow control setting (#96) * adding default max outstanding request bytes --- .../src/main/java/com/google/cloud/pubsub/v1/Subscriber.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 9c84dea0ab30..8baaf24726d1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -416,7 +416,10 @@ public static final class Builder { private Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; private FlowControlSettings flowControlSettings = - FlowControlSettings.newBuilder().setMaxOutstandingElementCount(1000L).build(); + FlowControlSettings.newBuilder() + .setMaxOutstandingElementCount(1000L) + .setMaxOutstandingRequestBytes(100L * 1024L * 1024L) // 100MB + .build(); private ExecutorProvider executorProvider = DEFAULT_EXECUTOR_PROVIDER; private ExecutorProvider systemExecutorProvider = null; From d83a149b4bb760c463d0e87e466556dddb6ce959 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Feb 2020 22:19:39 +0100 Subject: [PATCH 0304/2363] deps: update opencensus.version to v0.25.0 (#85) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 47c7142aa3e5..e5c37376f50e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -78,7 +78,7 @@ 1.34.2 1.18 1.7 - 0.24.0 + 0.25.0
    From c98f074c1d5c3cc03061bb0696d7341d0d4eda15 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Feb 2020 22:19:57 +0100 Subject: [PATCH 0305/2363] deps: update dependency org.easymock:easymock to v4 (#39) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e5c37376f50e..119b317ad6a4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ 1.27.1 3.11.4 4.13 - 3.6 + 4.2 28.2-android 1.4.1 1.3.2 From ee0c0beceb5b4510c88ae1bbc4aa5c3fcf6cb3c4 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Thu, 27 Feb 2020 13:55:30 -0500 Subject: [PATCH 0306/2363] fix: remove deprecated tag that was added prematurely (#97) * google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java * Ensure that if a batch is started and the timeout completes before the currently outstanding message has finished publishing with an ordering key that the last batch does in fact get published. * add back in unit test * feat: add randomly generated UUID to outgoing initial streaming pull requests for better ordering keys affinity * fix: remove deprecated tag that was added prematurely * fix: formatting --- .../src/main/java/com/google/pubsub/v1/DeletedTopic.java | 7 +------ .../main/java/com/google/pubsub/v1/ProjectTopicName.java | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java index a0b52bae5afa..b32fcbfc04ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java @@ -19,13 +19,8 @@ import com.google.common.collect.ImmutableMap; import java.util.Map; -/** - * AUTO-GENERATED DOCUMENTATION AND CLASS - * - * @deprecated This resource name class will be removed in the next major version. - */ +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") -@Deprecated public class DeletedTopic extends TopicName { private static final String FIXED_VALUE = "_deleted-topic_"; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java index fb6494ee0b6b..9549f7c6587f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java @@ -23,13 +23,8 @@ import java.util.List; import java.util.Map; -/** - * AUTO-GENERATED DOCUMENTATION AND CLASS - * - * @deprecated This resource name class will be removed in the next major version. - */ +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") -@Deprecated public class ProjectTopicName extends TopicName { private static final PathTemplate PATH_TEMPLATE = From f16ad5fbb524bd2e7e3ea697d950739feb9ef70e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 27 Feb 2020 14:14:30 -0500 Subject: [PATCH 0307/2363] chore: release 1.103.1-SNAPSHOT (#94) * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 69cbb812e71a..e92bca39e136 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.103.0 + 1.103.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.0 + 1.85.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.0 + 1.85.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.103.0 + 1.103.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 133a25574b70..635dc029a947 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.103.0 + 1.103.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.103.0 + 1.103.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 808141de5547..d965eac50660 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.0 + 1.85.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.103.0 + 1.103.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 119b317ad6a4..0f6c4b941812 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.103.0 + 1.103.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.0 + 1.85.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.0 + 1.85.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.103.0 + 1.103.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0b6916bab81c..f3544543cd24 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.0 + 1.85.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.103.0 + 1.103.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9905f1d5fc16..a3e3c2e3fba1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.85.0:1.85.0 -grpc-google-cloud-pubsub-v1:1.85.0:1.85.0 -google-cloud-pubsub:1.103.0:1.103.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.85.0:1.85.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.85.0:1.85.1-SNAPSHOT +google-cloud-pubsub:1.103.0:1.103.1-SNAPSHOT \ No newline at end of file From 2c2959a8a59dd0b4b385e6a143be6e0a9a97f6a6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 27 Feb 2020 11:21:49 -0800 Subject: [PATCH 0308/2363] docs(regen): switch to proto annotations (#90) --- .../pubsub/v1/SubscriptionAdminClient.java | 148 +++--- .../cloud/pubsub/v1/TopicAdminClient.java | 38 +- .../google/cloud/pubsub/v1/package-info.java | 2 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 2 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../google/pubsub/v1/AcknowledgeRequest.java | 94 ++-- .../v1/AcknowledgeRequestOrBuilder.java | 28 +- .../pubsub/v1/CreateSnapshotRequest.java | 84 ++-- .../v1/CreateSnapshotRequestOrBuilder.java | 24 +- .../pubsub/v1/DeleteSnapshotRequest.java | 42 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 12 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 42 +- .../DeleteSubscriptionRequestOrBuilder.java | 12 +- .../google/pubsub/v1/DeleteTopicRequest.java | 42 +- .../v1/DeleteTopicRequestOrBuilder.java | 12 +- .../google/pubsub/v1/GetSnapshotRequest.java | 42 +- .../v1/GetSnapshotRequestOrBuilder.java | 12 +- .../pubsub/v1/GetSubscriptionRequest.java | 42 +- .../v1/GetSubscriptionRequestOrBuilder.java | 12 +- .../com/google/pubsub/v1/GetTopicRequest.java | 42 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 12 +- .../pubsub/v1/ListSnapshotsRequest.java | 42 +- .../v1/ListSnapshotsRequestOrBuilder.java | 12 +- .../pubsub/v1/ListSubscriptionsRequest.java | 42 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 12 +- .../v1/ListTopicSubscriptionsRequest.java | 42 +- ...istTopicSubscriptionsRequestOrBuilder.java | 12 +- .../v1/ListTopicSubscriptionsResponse.java | 26 +- ...stTopicSubscriptionsResponseOrBuilder.java | 8 +- .../google/pubsub/v1/ListTopicsRequest.java | 42 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 12 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 110 ++-- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 32 +- .../pubsub/v1/ModifyPushConfigRequest.java | 102 ++-- .../v1/ModifyPushConfigRequestOrBuilder.java | 27 +- .../com/google/pubsub/v1/PublishRequest.java | 180 ++++--- .../pubsub/v1/PublishRequestOrBuilder.java | 42 +- .../com/google/pubsub/v1/PubsubProto.java | 473 ++++++++++-------- .../com/google/pubsub/v1/PullRequest.java | 58 ++- .../pubsub/v1/PullRequestOrBuilder.java | 16 +- .../com/google/pubsub/v1/SeekRequest.java | 56 ++- .../pubsub/v1/SeekRequestOrBuilder.java | 16 +- .../java/com/google/pubsub/v1/Snapshot.java | 14 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 4 +- .../pubsub/v1/StreamingPullRequest.java | 58 ++- .../v1/StreamingPullRequestOrBuilder.java | 16 +- .../com/google/pubsub/v1/Subscription.java | 70 +-- .../pubsub/v1/SubscriptionOrBuilder.java | 20 +- .../main/java/com/google/pubsub/v1/Topic.java | 28 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 8 +- .../pubsub/v1/UpdateSnapshotRequest.java | 117 +++-- .../v1/UpdateSnapshotRequestOrBuilder.java | 27 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 132 +++-- .../UpdateSubscriptionRequestOrBuilder.java | 33 +- .../google/pubsub/v1/UpdateTopicRequest.java | 108 ++-- .../v1/UpdateTopicRequestOrBuilder.java | 27 +- .../main/proto/google/pubsub/v1/pubsub.proto | 323 ++++++++---- java-pubsub/synth.metadata | 22 +- 62 files changed, 1929 insertions(+), 1194 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index c1428c1e3d0a..20d06d3d9df9 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -218,14 +218,14 @@ public SubscriberStub getStub() { * } *
    * - * @param name The name of the subscription. It must have the format + * @param name 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"` - * @param topic 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. + * and 255 characters in length, and it must not start with `"goog"`. + * @param topic 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. * @param 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. @@ -286,14 +286,14 @@ public final Subscription createSubscription( * } *
    * - * @param name The name of the subscription. It must have the format + * @param name 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"` - * @param topic 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. + * and 255 characters in length, and it must not start with `"goog"`. + * @param topic 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. * @param 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. @@ -406,7 +406,7 @@ public final UnaryCallable createSubscriptionCallabl * } *
    * - * @param subscription The name of the subscription to get. Format is + * @param subscription Required. The name of the subscription to get. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -431,7 +431,7 @@ public final Subscription getSubscription(ProjectSubscriptionName subscription) * } *
    * - * @param subscription The name of the subscription to get. Format is + * @param subscription Required. The name of the subscription to get. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -566,7 +566,7 @@ public final UnaryCallable updateSubscr * } *
    * - * @param project The name of the project in which to list subscriptions. Format is + * @param project Required. The name of the project in which to list subscriptions. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -593,7 +593,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec * } * * - * @param project The name of the project in which to list subscriptions. Format is + * @param project Required. The name of the project in which to list subscriptions. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -701,7 +701,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * } * * - * @param subscription The subscription to delete. Format is + * @param subscription Required. The subscription to delete. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -729,7 +729,7 @@ public final void deleteSubscription(ProjectSubscriptionName subscription) { * } * * - * @param subscription The subscription to delete. Format is + * @param subscription Required. The subscription to delete. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -808,16 +808,16 @@ public final UnaryCallable deleteSubscriptionC * } * * - * @param subscription The name of the subscription. Format is + * @param subscription Required. The name of the subscription. Format is * `projects/{project}/subscriptions/{sub}`. - * @param ackIds List of acknowledgment IDs. - * @param ackDeadlineSeconds 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). + * @param ackIds Required. List of acknowledgment IDs. + * @param ackDeadlineSeconds 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). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final void modifyAckDeadline( @@ -849,16 +849,16 @@ public final UnaryCallable deleteSubscriptionC * } * * - * @param subscription The name of the subscription. Format is + * @param subscription Required. The name of the subscription. Format is * `projects/{project}/subscriptions/{sub}`. - * @param ackIds List of acknowledgment IDs. - * @param ackDeadlineSeconds 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). + * @param ackIds Required. List of acknowledgment IDs. + * @param ackDeadlineSeconds 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). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final void modifyAckDeadline( @@ -950,10 +950,10 @@ public final UnaryCallable deleteSubscriptionC * } * * - * @param subscription The subscription whose message is being acknowledged. Format is + * @param subscription Required. The subscription whose message is being acknowledged. Format is * `projects/{project}/subscriptions/{sub}`. - * @param ackIds The acknowledgment ID for the messages being acknowledged that was returned by - * the Pub/Sub system in the `Pull` response. Must not be empty. + * @param ackIds 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final void acknowledge( @@ -984,10 +984,10 @@ public final UnaryCallable deleteSubscriptionC * } * * - * @param subscription The subscription whose message is being acknowledged. Format is + * @param subscription Required. The subscription whose message is being acknowledged. Format is * `projects/{project}/subscriptions/{sub}`. - * @param ackIds The acknowledgment ID for the messages being acknowledged that was returned by - * the Pub/Sub system in the `Pull` response. Must not be empty. + * @param ackIds 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final void acknowledge(String subscription, List ackIds) { @@ -1069,14 +1069,14 @@ public final UnaryCallable deleteSubscriptionC * } * * - * @param subscription The subscription from which messages should be pulled. Format is + * @param subscription Required. The subscription from which messages should be pulled. Format is * `projects/{project}/subscriptions/{sub}`. * @param returnImmediately 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. - * @param maxMessages 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. + * @param maxMessages 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final PullResponse pull( @@ -1106,14 +1106,14 @@ public final UnaryCallable deleteSubscriptionC * } * * - * @param subscription The subscription from which messages should be pulled. Format is + * @param subscription Required. The subscription from which messages should be pulled. Format is * `projects/{project}/subscriptions/{sub}`. * @param returnImmediately 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. - * @param maxMessages 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. + * @param maxMessages 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final PullResponse pull( @@ -1231,9 +1231,9 @@ public final UnaryCallable deleteSubscriptionC * } * * - * @param subscription The name of the subscription. Format is + * @param subscription Required. The name of the subscription. Format is * `projects/{project}/subscriptions/{sub}`. - * @param pushConfig The push configuration for future deliveries. + * @param 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. @@ -1267,9 +1267,9 @@ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushCon * } * * - * @param subscription The name of the subscription. Format is + * @param subscription Required. The name of the subscription. Format is * `projects/{project}/subscriptions/{sub}`. - * @param pushConfig The push configuration for future deliveries. + * @param 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. @@ -1361,7 +1361,7 @@ public final UnaryCallable modifyPushConfigCalla * } * * - * @param project The name of the project in which to list snapshots. Format is + * @param project Required. The name of the project in which to list snapshots. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1391,7 +1391,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { * } * * - * @param project The name of the project in which to list snapshots. Format is + * @param project Required. The name of the project in which to list snapshots. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1516,17 +1516,18 @@ public final UnaryCallable listSnap * } * * - * @param name 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 + * @param name 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 <a * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name * rules</a>. Format is `projects/{project}/snapshots/{snap}`. - * @param subscription 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}`. + * @param subscription 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}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Snapshot createSnapshot( @@ -1565,17 +1566,18 @@ public final Snapshot createSnapshot( * } * * - * @param name 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 + * @param name 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 <a * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name * rules</a>. Format is `projects/{project}/snapshots/{snap}`. - * @param subscription 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}`. + * @param subscription 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}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Snapshot createSnapshot(String name, String subscription) { @@ -1752,7 +1754,7 @@ public final UnaryCallable updateSnapshotCallab * } * * - * @param snapshot The name of the snapshot to delete. Format is + * @param snapshot Required. The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1784,7 +1786,7 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) { * } * * - * @param snapshot The name of the snapshot to delete. Format is + * @param snapshot Required. The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1912,6 +1914,8 @@ public final UnaryCallable seekCallable() { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * + *

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + * *

    Sample code: * *

    
    @@ -1939,6 +1943,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
       /**
        * Sets the access control policy on the specified resource. Replaces any existing policy.
        *
    +   * 

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + * *

    Sample code: * *

    
    @@ -1964,6 +1970,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
       /**
        * Sets the access control policy on the specified resource. Replaces any existing policy.
        *
    +   * 

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + * *

    Sample code: * *

    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    index e95bdeaec72d..1612e898f52a 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    @@ -190,7 +190,7 @@ public PublisherStub getStub() {
        * }
        * 
    * - * @param name The name of the topic. It must have the format + * @param name 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 @@ -217,7 +217,7 @@ public final Topic createTopic(ProjectTopicName name) { * } *
    * - * @param name The name of the topic. It must have the format + * @param name 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 @@ -345,9 +345,9 @@ public final UnaryCallable updateTopicCallable() { * } *
    * - * @param topic The messages in the request will be published on this topic. Format is + * @param topic Required. The messages in the request will be published on this topic. Format is * `projects/{project}/topics/{topic}`. - * @param messages The messages to publish. + * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final PublishResponse publish( @@ -378,9 +378,9 @@ public final UnaryCallable updateTopicCallable() { * } * * - * @param topic The messages in the request will be published on this topic. Format is + * @param topic Required. The messages in the request will be published on this topic. Format is * `projects/{project}/topics/{topic}`. - * @param messages The messages to publish. + * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ /* package-private */ final PublishResponse publish(String topic, List messages) { @@ -459,7 +459,8 @@ public final UnaryCallable updateTopicCallable() { * } * * - * @param topic The name of the topic to get. Format is `projects/{project}/topics/{topic}`. + * @param topic Required. The name of the topic to get. Format is + * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Topic getTopic(ProjectTopicName topic) { @@ -481,7 +482,8 @@ public final Topic getTopic(ProjectTopicName topic) { * } * * - * @param topic The name of the topic to get. Format is `projects/{project}/topics/{topic}`. + * @param topic Required. The name of the topic to get. Format is + * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Topic getTopic(String topic) { @@ -549,7 +551,7 @@ public final UnaryCallable getTopicCallable() { * } * * - * @param project The name of the project in which to list topics. Format is + * @param project Required. The name of the project in which to list topics. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -576,7 +578,7 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) { * } * * - * @param project The name of the project in which to list topics. Format is + * @param project Required. The name of the project in which to list topics. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -680,7 +682,7 @@ public final UnaryCallable listTopicsCall * } * * - * @param topic The name of the topic that subscriptions are attached to. Format is + * @param topic Required. The name of the topic that subscriptions are attached to. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -707,7 +709,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectT * } * * - * @param topic The name of the topic that subscriptions are attached to. Format is + * @param topic Required. The name of the topic that subscriptions are attached to. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -816,7 +818,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * } * * - * @param topic Name of the topic to delete. Format is `projects/{project}/topics/{topic}`. + * @param topic Required. Name of the topic to delete. Format is + * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteTopic(ProjectTopicName topic) { @@ -841,7 +844,8 @@ public final void deleteTopic(ProjectTopicName topic) { * } * * - * @param topic Name of the topic to delete. Format is `projects/{project}/topics/{topic}`. + * @param topic Required. Name of the topic to delete. Format is + * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteTopic(String topic) { @@ -904,6 +908,8 @@ public final UnaryCallable deleteTopicCallable() { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * + *

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + * *

    Sample code: * *

    
    @@ -931,6 +937,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
       /**
        * Sets the access control policy on the specified resource. Replaces any existing policy.
        *
    +   * 

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + * *

    Sample code: * *

    
    @@ -956,6 +964,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
       /**
        * Sets the access control policy on the specified resource. Replaces any existing policy.
        *
    +   * 

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + * *

    Sample code: * *

    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    index 34f5b032f101..1df92ab40a1f 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    @@ -15,7 +15,7 @@
      */
     
     /**
    - * A client to Google Cloud Pub/Sub API.
    + * A client to Cloud Pub/Sub API.
      *
      * 

    The interfaces provided are listed below, along with usage samples. * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index 20fc4d92c3c2..d3089ca30ada 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -36,7 +36,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC callable factory implementation for Google Cloud Pub/Sub API. + * gRPC callable factory implementation for Cloud Pub/Sub API. * *

    This class is for advanced usage. */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 1bf3e90da871..f42bb6bce1a5 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -52,7 +52,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC stub implementation for Google Cloud Pub/Sub API. + * gRPC stub implementation for Cloud Pub/Sub API. * *

    This class is for advanced usage and reflects the underlying API directly. */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index e827ead041e3..8656445c4225 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -36,7 +36,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC callable factory implementation for Google Cloud Pub/Sub API. + * gRPC callable factory implementation for Cloud Pub/Sub API. * *

    This class is for advanced usage. */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index 828550c5511b..5b2310807885 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -64,7 +64,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * gRPC stub implementation for Google Cloud Pub/Sub API. + * gRPC stub implementation for Cloud Pub/Sub API. * *

    This class is for advanced usage and reflects the underlying API directly. */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 6f4905ef175d..65956640fb24 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -41,7 +41,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Base stub class for Google Cloud Pub/Sub API. + * Base stub class for Cloud Pub/Sub API. * *

    This class is for advanced usage and reflects the underlying API directly. */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index e43a35a638a3..66f365ee010e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -53,7 +53,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS /** - * Base stub class for Google Cloud Pub/Sub API. + * Base stub class for Cloud Pub/Sub API. * *

    This class is for advanced usage and reflects the underlying API directly. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 255a051ac151..abfe740a5999 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -132,11 +132,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *

    -   * The subscription whose message is being acknowledged.
    +   * Required. The subscription whose message is being acknowledged.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -155,11 +157,13 @@ public java.lang.String getSubscription() { * * *
    -   * The subscription whose message is being acknowledged.
    +   * Required. The subscription whose message is being acknowledged.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -181,11 +185,11 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -   * The acknowledgment ID for the messages being acknowledged that was returned
    +   * 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.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return A list containing the ackIds. */ @@ -196,11 +200,11 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -   * The acknowledgment ID for the messages being acknowledged that was returned
    +   * 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.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The count of ackIds. */ @@ -211,11 +215,11 @@ public int getAckIdsCount() { * * *
    -   * The acknowledgment ID for the messages being acknowledged that was returned
    +   * 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.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -227,11 +231,11 @@ public java.lang.String getAckIds(int index) { * * *
    -   * The acknowledgment ID for the messages being acknowledged that was returned
    +   * 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.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -596,11 +600,13 @@ public Builder mergeFrom( * * *
    -     * The subscription whose message is being acknowledged.
    +     * Required. The subscription whose message is being acknowledged.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -619,11 +625,13 @@ public java.lang.String getSubscription() { * * *
    -     * The subscription whose message is being acknowledged.
    +     * Required. The subscription whose message is being acknowledged.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -642,11 +650,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * The subscription whose message is being acknowledged.
    +     * Required. The subscription whose message is being acknowledged.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The subscription to set. * @return This builder for chaining. @@ -664,11 +674,13 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * The subscription whose message is being acknowledged.
    +     * Required. The subscription whose message is being acknowledged.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -682,11 +694,13 @@ public Builder clearSubscription() { * * *
    -     * The subscription whose message is being acknowledged.
    +     * Required. The subscription whose message is being acknowledged.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for subscription to set. * @return This builder for chaining. @@ -715,11 +729,11 @@ private void ensureAckIdsIsMutable() { * * *
    -     * The acknowledgment ID for the messages being acknowledged that was returned
    +     * 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.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return A list containing the ackIds. */ @@ -730,11 +744,11 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * The acknowledgment ID for the messages being acknowledged that was returned
    +     * 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.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The count of ackIds. */ @@ -745,11 +759,11 @@ public int getAckIdsCount() { * * *
    -     * The acknowledgment ID for the messages being acknowledged that was returned
    +     * 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.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -761,11 +775,11 @@ public java.lang.String getAckIds(int index) { * * *
    -     * The acknowledgment ID for the messages being acknowledged that was returned
    +     * 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.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -777,11 +791,11 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * The acknowledgment ID for the messages being acknowledged that was returned
    +     * 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.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index to set the value at. * @param value The ackIds to set. @@ -800,11 +814,11 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -     * The acknowledgment ID for the messages being acknowledged that was returned
    +     * 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.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The ackIds to add. * @return This builder for chaining. @@ -822,11 +836,11 @@ public Builder addAckIds(java.lang.String value) { * * *
    -     * The acknowledgment ID for the messages being acknowledged that was returned
    +     * 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.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param values The ackIds to add. * @return This builder for chaining. @@ -841,11 +855,11 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -     * The acknowledgment ID for the messages being acknowledged that was returned
    +     * 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.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -859,11 +873,11 @@ public Builder clearAckIds() { * * *
    -     * The acknowledgment ID for the messages being acknowledged that was returned
    +     * 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.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes of the ackIds to add. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index ac5b4efdd9ac..29455101280c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface AcknowledgeRequestOrBuilder * * *
    -   * The subscription whose message is being acknowledged.
    +   * Required. The subscription whose message is being acknowledged.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -40,11 +42,13 @@ public interface AcknowledgeRequestOrBuilder * * *
    -   * The subscription whose message is being acknowledged.
    +   * Required. The subscription whose message is being acknowledged.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -54,11 +58,11 @@ public interface AcknowledgeRequestOrBuilder * * *
    -   * The acknowledgment ID for the messages being acknowledged that was returned
    +   * 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.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return A list containing the ackIds. */ @@ -67,11 +71,11 @@ public interface AcknowledgeRequestOrBuilder * * *
    -   * The acknowledgment ID for the messages being acknowledged that was returned
    +   * 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.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The count of ackIds. */ @@ -80,11 +84,11 @@ public interface AcknowledgeRequestOrBuilder * * *
    -   * The acknowledgment ID for the messages being acknowledged that was returned
    +   * 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.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -94,11 +98,11 @@ public interface AcknowledgeRequestOrBuilder * * *
    -   * The acknowledgment ID for the messages being acknowledged that was returned
    +   * 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.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 51c00c2ef8c6..ae660b8f1e68 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -150,7 +150,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
    -   * User-provided name for this snapshot. If the name is not provided in the
    +   * 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 <a
    @@ -158,7 +158,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
        * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -177,7 +179,7 @@ public java.lang.String getName() { * * *
    -   * User-provided name for this snapshot. If the name is not provided in the
    +   * 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 <a
    @@ -185,7 +187,9 @@ public java.lang.String getName() {
        * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -207,7 +211,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -   * The subscription whose backlog the snapshot retains.
    +   * 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
    @@ -218,7 +222,9 @@ public com.google.protobuf.ByteString getNameBytes() {
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 2; + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -237,7 +243,7 @@ public java.lang.String getSubscription() { * * *
    -   * The subscription whose backlog the snapshot retains.
    +   * 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
    @@ -248,7 +254,9 @@ public java.lang.String getSubscription() {
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 2; + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -742,7 +750,7 @@ public Builder mergeFrom( * * *
    -     * User-provided name for this snapshot. If the name is not provided in the
    +     * 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 <a
    @@ -750,7 +758,9 @@ public Builder mergeFrom(
          * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -769,7 +779,7 @@ public java.lang.String getName() { * * *
    -     * User-provided name for this snapshot. If the name is not provided in the
    +     * 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 <a
    @@ -777,7 +787,9 @@ public java.lang.String getName() {
          * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -796,7 +808,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * User-provided name for this snapshot. If the name is not provided in the
    +     * 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 <a
    @@ -804,7 +816,9 @@ public com.google.protobuf.ByteString getNameBytes() {
          * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -822,7 +836,7 @@ public Builder setName(java.lang.String value) { * * *
    -     * User-provided name for this snapshot. If the name is not provided in the
    +     * 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 <a
    @@ -830,7 +844,9 @@ public Builder setName(java.lang.String value) {
          * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -844,7 +860,7 @@ public Builder clearName() { * * *
    -     * User-provided name for this snapshot. If the name is not provided in the
    +     * 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 <a
    @@ -852,7 +868,9 @@ public Builder clearName() {
          * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for name to set. * @return This builder for chaining. @@ -873,7 +891,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * The subscription whose backlog the snapshot retains.
    +     * 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
    @@ -884,7 +902,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 2; + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -903,7 +923,7 @@ public java.lang.String getSubscription() { * * *
    -     * The subscription whose backlog the snapshot retains.
    +     * 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
    @@ -914,7 +934,9 @@ public java.lang.String getSubscription() {
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 2; + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -933,7 +955,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * The subscription whose backlog the snapshot retains.
    +     * 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
    @@ -944,7 +966,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 2; + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The subscription to set. * @return This builder for chaining. @@ -962,7 +986,7 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * The subscription whose backlog the snapshot retains.
    +     * 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
    @@ -973,7 +997,9 @@ public Builder setSubscription(java.lang.String value) {
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 2; + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -987,7 +1013,7 @@ public Builder clearSubscription() { * * *
    -     * The subscription whose backlog the snapshot retains.
    +     * 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
    @@ -998,7 +1024,9 @@ public Builder clearSubscription() {
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 2; + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for subscription to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index f27c2c1c677f..ab50a6f1bfc8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * User-provided name for this snapshot. If the name is not provided in the
    +   * 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 <a
    @@ -35,7 +35,9 @@ public interface CreateSnapshotRequestOrBuilder
        * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -44,7 +46,7 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * User-provided name for this snapshot. If the name is not provided in the
    +   * 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 <a
    @@ -52,7 +54,9 @@ public interface CreateSnapshotRequestOrBuilder
        * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -62,7 +66,7 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * The subscription whose backlog the snapshot retains.
    +   * 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
    @@ -73,7 +77,9 @@ public interface CreateSnapshotRequestOrBuilder
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 2; + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -82,7 +88,7 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * The subscription whose backlog the snapshot retains.
    +   * 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
    @@ -93,7 +99,9 @@ public interface CreateSnapshotRequestOrBuilder
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 2; + * + * string subscription = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index d10e9b1f6032..185507b53fed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -117,11 +117,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the snapshot to delete.
    +   * Required. The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -140,11 +142,13 @@ public java.lang.String getSnapshot() { * * *
    -   * The name of the snapshot to delete.
    +   * Required. The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ @@ -481,11 +485,13 @@ public Builder mergeFrom( * * *
    -     * The name of the snapshot to delete.
    +     * Required. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -504,11 +510,13 @@ public java.lang.String getSnapshot() { * * *
    -     * The name of the snapshot to delete.
    +     * Required. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ @@ -527,11 +535,13 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * *
    -     * The name of the snapshot to delete.
    +     * Required. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The snapshot to set. * @return This builder for chaining. @@ -549,11 +559,13 @@ public Builder setSnapshot(java.lang.String value) { * * *
    -     * The name of the snapshot to delete.
    +     * Required. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -567,11 +579,13 @@ public Builder clearSnapshot() { * * *
    -     * The name of the snapshot to delete.
    +     * Required. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for snapshot to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 4ae6a394fb90..43c455746a7d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface DeleteSnapshotRequestOrBuilder * * *
    -   * The name of the snapshot to delete.
    +   * Required. The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -40,11 +42,13 @@ public interface DeleteSnapshotRequestOrBuilder * * *
    -   * The name of the snapshot to delete.
    +   * Required. The name of the snapshot to delete.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index dd9a525a0530..b488aca0ae8b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -117,11 +117,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The subscription to delete.
    +   * Required. The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -140,11 +142,13 @@ public java.lang.String getSubscription() { * * *
    -   * The subscription to delete.
    +   * Required. The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -481,11 +485,13 @@ public Builder mergeFrom( * * *
    -     * The subscription to delete.
    +     * Required. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -504,11 +510,13 @@ public java.lang.String getSubscription() { * * *
    -     * The subscription to delete.
    +     * Required. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -527,11 +535,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * The subscription to delete.
    +     * Required. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The subscription to set. * @return This builder for chaining. @@ -549,11 +559,13 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * The subscription to delete.
    +     * Required. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -567,11 +579,13 @@ public Builder clearSubscription() { * * *
    -     * The subscription to delete.
    +     * Required. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for subscription to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 9bdbad658315..d4832080468d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface DeleteSubscriptionRequestOrBuilder * * *
    -   * The subscription to delete.
    +   * Required. The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -40,11 +42,13 @@ public interface DeleteSubscriptionRequestOrBuilder * * *
    -   * The subscription to delete.
    +   * Required. The subscription to delete.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index e9064e512dea..36056653a9ea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -117,11 +117,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Name of the topic to delete.
    +   * Required. Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -140,11 +142,13 @@ public java.lang.String getTopic() { * * *
    -   * Name of the topic to delete.
    +   * Required. Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -480,11 +484,13 @@ public Builder mergeFrom( * * *
    -     * Name of the topic to delete.
    +     * Required. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -503,11 +509,13 @@ public java.lang.String getTopic() { * * *
    -     * Name of the topic to delete.
    +     * Required. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -526,11 +534,13 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * Name of the topic to delete.
    +     * Required. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -548,11 +558,13 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * Name of the topic to delete.
    +     * Required. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -566,11 +578,13 @@ public Builder clearTopic() { * * *
    -     * Name of the topic to delete.
    +     * Required. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index b086d4f1bf1c..a7267ded0b51 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface DeleteTopicRequestOrBuilder * * *
    -   * Name of the topic to delete.
    +   * Required. Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -40,11 +42,13 @@ public interface DeleteTopicRequestOrBuilder * * *
    -   * Name of the topic to delete.
    +   * Required. Name of the topic to delete.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 4ed2639ba39c..55295c195e96 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -117,11 +117,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the snapshot to get.
    +   * Required. The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -140,11 +142,13 @@ public java.lang.String getSnapshot() { * * *
    -   * The name of the snapshot to get.
    +   * Required. The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ @@ -480,11 +484,13 @@ public Builder mergeFrom( * * *
    -     * The name of the snapshot to get.
    +     * Required. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -503,11 +509,13 @@ public java.lang.String getSnapshot() { * * *
    -     * The name of the snapshot to get.
    +     * Required. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ @@ -526,11 +534,13 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * *
    -     * The name of the snapshot to get.
    +     * Required. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The snapshot to set. * @return This builder for chaining. @@ -548,11 +558,13 @@ public Builder setSnapshot(java.lang.String value) { * * *
    -     * The name of the snapshot to get.
    +     * Required. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -566,11 +578,13 @@ public Builder clearSnapshot() { * * *
    -     * The name of the snapshot to get.
    +     * Required. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for snapshot to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 752610f47b4d..f101510fd07c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface GetSnapshotRequestOrBuilder * * *
    -   * The name of the snapshot to get.
    +   * Required. The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -40,11 +42,13 @@ public interface GetSnapshotRequestOrBuilder * * *
    -   * The name of the snapshot to get.
    +   * Required. The name of the snapshot to get.
        * Format is `projects/{project}/snapshots/{snap}`.
        * 
    * - * string snapshot = 1; + * + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 8c8811027864..abca9f36e8e6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -117,11 +117,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the subscription to get.
    +   * Required. The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -140,11 +142,13 @@ public java.lang.String getSubscription() { * * *
    -   * The name of the subscription to get.
    +   * Required. The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -481,11 +485,13 @@ public Builder mergeFrom( * * *
    -     * The name of the subscription to get.
    +     * Required. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -504,11 +510,13 @@ public java.lang.String getSubscription() { * * *
    -     * The name of the subscription to get.
    +     * Required. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -527,11 +535,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * The name of the subscription to get.
    +     * Required. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The subscription to set. * @return This builder for chaining. @@ -549,11 +559,13 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * The name of the subscription to get.
    +     * Required. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -567,11 +579,13 @@ public Builder clearSubscription() { * * *
    -     * The name of the subscription to get.
    +     * Required. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for subscription to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 44c6441eecdc..ca8af6c8b535 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface GetSubscriptionRequestOrBuilder * * *
    -   * The name of the subscription to get.
    +   * Required. The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -40,11 +42,13 @@ public interface GetSubscriptionRequestOrBuilder * * *
    -   * The name of the subscription to get.
    +   * Required. The name of the subscription to get.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 916c965b95ed..8e0f4174d711 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -117,11 +117,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the topic to get.
    +   * Required. The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -140,11 +142,13 @@ public java.lang.String getTopic() { * * *
    -   * The name of the topic to get.
    +   * Required. The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -478,11 +482,13 @@ public Builder mergeFrom( * * *
    -     * The name of the topic to get.
    +     * Required. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -501,11 +507,13 @@ public java.lang.String getTopic() { * * *
    -     * The name of the topic to get.
    +     * Required. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -524,11 +532,13 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * The name of the topic to get.
    +     * Required. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -546,11 +556,13 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * The name of the topic to get.
    +     * Required. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -564,11 +576,13 @@ public Builder clearTopic() { * * *
    -     * The name of the topic to get.
    +     * Required. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 1f8fb5fa096b..b3695fc5a52c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface GetTopicRequestOrBuilder * * *
    -   * The name of the topic to get.
    +   * Required. The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -40,11 +42,13 @@ public interface GetTopicRequestOrBuilder * * *
    -   * The name of the topic to get.
    +   * Required. The name of the topic to get.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index cfe49ec732b1..f3eca13fd05a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -130,11 +130,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the project in which to list snapshots.
    +   * Required. The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The project. */ @@ -153,11 +155,13 @@ public java.lang.String getProject() { * * *
    -   * The name of the project in which to list snapshots.
    +   * Required. The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for project. */ @@ -593,11 +597,13 @@ public Builder mergeFrom( * * *
    -     * The name of the project in which to list snapshots.
    +     * Required. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The project. */ @@ -616,11 +622,13 @@ public java.lang.String getProject() { * * *
    -     * The name of the project in which to list snapshots.
    +     * Required. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for project. */ @@ -639,11 +647,13 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
    -     * The name of the project in which to list snapshots.
    +     * Required. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The project to set. * @return This builder for chaining. @@ -661,11 +671,13 @@ public Builder setProject(java.lang.String value) { * * *
    -     * The name of the project in which to list snapshots.
    +     * Required. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -679,11 +691,13 @@ public Builder clearProject() { * * *
    -     * The name of the project in which to list snapshots.
    +     * Required. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for project to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index fa9b053f15be..c4a67ace02a1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface ListSnapshotsRequestOrBuilder * * *
    -   * The name of the project in which to list snapshots.
    +   * Required. The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The project. */ @@ -40,11 +42,13 @@ public interface ListSnapshotsRequestOrBuilder * * *
    -   * The name of the project in which to list snapshots.
    +   * Required. The name of the project in which to list snapshots.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for project. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index e573ebf2387b..f1f4b9536027 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -130,11 +130,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the project in which to list subscriptions.
    +   * Required. The name of the project in which to list subscriptions.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The project. */ @@ -153,11 +155,13 @@ public java.lang.String getProject() { * * *
    -   * The name of the project in which to list subscriptions.
    +   * Required. The name of the project in which to list subscriptions.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for project. */ @@ -593,11 +597,13 @@ public Builder mergeFrom( * * *
    -     * The name of the project in which to list subscriptions.
    +     * Required. The name of the project in which to list subscriptions.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The project. */ @@ -616,11 +622,13 @@ public java.lang.String getProject() { * * *
    -     * The name of the project in which to list subscriptions.
    +     * Required. The name of the project in which to list subscriptions.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for project. */ @@ -639,11 +647,13 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
    -     * The name of the project in which to list subscriptions.
    +     * Required. The name of the project in which to list subscriptions.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The project to set. * @return This builder for chaining. @@ -661,11 +671,13 @@ public Builder setProject(java.lang.String value) { * * *
    -     * The name of the project in which to list subscriptions.
    +     * Required. The name of the project in which to list subscriptions.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -679,11 +691,13 @@ public Builder clearProject() { * * *
    -     * The name of the project in which to list subscriptions.
    +     * Required. The name of the project in which to list subscriptions.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for project to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index b509d22fb53a..73b1fac514ae 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface ListSubscriptionsRequestOrBuilder * * *
    -   * The name of the project in which to list subscriptions.
    +   * Required. The name of the project in which to list subscriptions.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The project. */ @@ -40,11 +42,13 @@ public interface ListSubscriptionsRequestOrBuilder * * *
    -   * The name of the project in which to list subscriptions.
    +   * Required. The name of the project in which to list subscriptions.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for project. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 4e1dfb65568e..80a44a393f96 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -130,11 +130,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the topic that subscriptions are attached to.
    +   * Required. The name of the topic that subscriptions are attached to.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -153,11 +155,13 @@ public java.lang.String getTopic() { * * *
    -   * The name of the topic that subscriptions are attached to.
    +   * Required. The name of the topic that subscriptions are attached to.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -595,11 +599,13 @@ public Builder mergeFrom( * * *
    -     * The name of the topic that subscriptions are attached to.
    +     * Required. The name of the topic that subscriptions are attached to.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -618,11 +624,13 @@ public java.lang.String getTopic() { * * *
    -     * The name of the topic that subscriptions are attached to.
    +     * Required. The name of the topic that subscriptions are attached to.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -641,11 +649,13 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * The name of the topic that subscriptions are attached to.
    +     * Required. The name of the topic that subscriptions are attached to.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -663,11 +673,13 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * The name of the topic that subscriptions are attached to.
    +     * Required. The name of the topic that subscriptions are attached to.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -681,11 +693,13 @@ public Builder clearTopic() { * * *
    -     * The name of the topic that subscriptions are attached to.
    +     * Required. The name of the topic that subscriptions are attached to.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 4fe1e834c0b0..2d09f889582a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * *
    -   * The name of the topic that subscriptions are attached to.
    +   * Required. The name of the topic that subscriptions are attached to.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -40,11 +42,13 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * *
    -   * The name of the topic that subscriptions are attached to.
    +   * Required. The name of the topic that subscriptions are attached to.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 575d2509c88d..96601b5fd563 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -136,7 +136,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The names of the subscriptions that match the request. *
    * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @return A list containing the subscriptions. */ @@ -150,7 +150,7 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { * The names of the subscriptions that match the request. *
    * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @return The count of subscriptions. */ @@ -164,7 +164,7 @@ public int getSubscriptionsCount() { * The names of the subscriptions that match the request. *
    * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @param index The index of the element to return. * @return The subscriptions at the given index. @@ -179,7 +179,7 @@ public java.lang.String getSubscriptions(int index) { * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. @@ -609,7 +609,7 @@ private void ensureSubscriptionsIsMutable() { * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @return A list containing the subscriptions. */ @@ -623,7 +623,7 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @return The count of subscriptions. */ @@ -637,7 +637,7 @@ public int getSubscriptionsCount() { * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @param index The index of the element to return. * @return The subscriptions at the given index. @@ -652,7 +652,7 @@ public java.lang.String getSubscriptions(int index) { * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. @@ -667,7 +667,7 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @param index The index to set the value at. * @param value The subscriptions to set. @@ -689,7 +689,7 @@ public Builder setSubscriptions(int index, java.lang.String value) { * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @param value The subscriptions to add. * @return This builder for chaining. @@ -710,7 +710,7 @@ public Builder addSubscriptions(java.lang.String value) { * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @param values The subscriptions to add. * @return This builder for chaining. @@ -728,7 +728,7 @@ public Builder addAllSubscriptions(java.lang.Iterable values) * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -745,7 +745,7 @@ public Builder clearSubscriptions() { * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @param value The bytes of the subscriptions to add. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 0f10a3a1a80e..265a9dd3afd1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -30,7 +30,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @return A list containing the subscriptions. */ @@ -42,7 +42,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @return The count of subscriptions. */ @@ -54,7 +54,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @param index The index of the element to return. * @return The subscriptions at the given index. @@ -67,7 +67,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * The names of the subscriptions that match the request. * * - * repeated string subscriptions = 1; + * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 5988917646d7..b048fd3de911 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -130,11 +130,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the project in which to list topics.
    +   * Required. The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The project. */ @@ -153,11 +155,13 @@ public java.lang.String getProject() { * * *
    -   * The name of the project in which to list topics.
    +   * Required. The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for project. */ @@ -592,11 +596,13 @@ public Builder mergeFrom( * * *
    -     * The name of the project in which to list topics.
    +     * Required. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The project. */ @@ -615,11 +621,13 @@ public java.lang.String getProject() { * * *
    -     * The name of the project in which to list topics.
    +     * Required. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for project. */ @@ -638,11 +646,13 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
    -     * The name of the project in which to list topics.
    +     * Required. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The project to set. * @return This builder for chaining. @@ -660,11 +670,13 @@ public Builder setProject(java.lang.String value) { * * *
    -     * The name of the project in which to list topics.
    +     * Required. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -678,11 +690,13 @@ public Builder clearProject() { * * *
    -     * The name of the project in which to list topics.
    +     * Required. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for project to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index d50a0a8298b6..8f5219329ea2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface ListTopicsRequestOrBuilder * * *
    -   * The name of the project in which to list topics.
    +   * Required. The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The project. */ @@ -40,11 +42,13 @@ public interface ListTopicsRequestOrBuilder * * *
    -   * The name of the project in which to list topics.
    +   * Required. The name of the project in which to list topics.
        * Format is `projects/{project-id}`.
        * 
    * - * string project = 1; + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for project. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 241e37892be5..c2a92e2154fe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -137,11 +137,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the subscription.
    +   * Required. The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -160,11 +162,13 @@ public java.lang.String getSubscription() { * * *
    -   * The name of the subscription.
    +   * Required. The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -186,10 +190,10 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -   * List of acknowledgment IDs.
    +   * Required. List of acknowledgment IDs.
        * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return A list containing the ackIds. */ @@ -200,10 +204,10 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -   * List of acknowledgment IDs.
    +   * Required. List of acknowledgment IDs.
        * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The count of ackIds. */ @@ -214,10 +218,10 @@ public int getAckIdsCount() { * * *
    -   * List of acknowledgment IDs.
    +   * Required. List of acknowledgment IDs.
        * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -229,10 +233,10 @@ public java.lang.String getAckIds(int index) { * * *
    -   * List of acknowledgment IDs.
    +   * Required. List of acknowledgment IDs.
        * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -247,7 +251,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -   * The new ack deadline with respect to the time this request was sent to
    +   * 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
    @@ -257,7 +261,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
        * The maximum deadline you can specify is 600 seconds (10 minutes).
        * 
    * - * int32 ack_deadline_seconds = 3; + * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The ackDeadlineSeconds. */ @@ -637,11 +641,13 @@ public Builder mergeFrom( * * *
    -     * The name of the subscription.
    +     * Required. The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -660,11 +666,13 @@ public java.lang.String getSubscription() { * * *
    -     * The name of the subscription.
    +     * Required. The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -683,11 +691,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * The name of the subscription.
    +     * Required. The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The subscription to set. * @return This builder for chaining. @@ -705,11 +715,13 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * The name of the subscription.
    +     * Required. The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -723,11 +735,13 @@ public Builder clearSubscription() { * * *
    -     * The name of the subscription.
    +     * Required. The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for subscription to set. * @return This builder for chaining. @@ -756,10 +770,10 @@ private void ensureAckIdsIsMutable() { * * *
    -     * List of acknowledgment IDs.
    +     * Required. List of acknowledgment IDs.
          * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return A list containing the ackIds. */ @@ -770,10 +784,10 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * List of acknowledgment IDs.
    +     * Required. List of acknowledgment IDs.
          * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The count of ackIds. */ @@ -784,10 +798,10 @@ public int getAckIdsCount() { * * *
    -     * List of acknowledgment IDs.
    +     * Required. List of acknowledgment IDs.
          * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -799,10 +813,10 @@ public java.lang.String getAckIds(int index) { * * *
    -     * List of acknowledgment IDs.
    +     * Required. List of acknowledgment IDs.
          * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -814,10 +828,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * List of acknowledgment IDs.
    +     * Required. List of acknowledgment IDs.
          * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index to set the value at. * @param value The ackIds to set. @@ -836,10 +850,10 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -     * List of acknowledgment IDs.
    +     * Required. List of acknowledgment IDs.
          * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param value The ackIds to add. * @return This builder for chaining. @@ -857,10 +871,10 @@ public Builder addAckIds(java.lang.String value) { * * *
    -     * List of acknowledgment IDs.
    +     * Required. List of acknowledgment IDs.
          * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param values The ackIds to add. * @return This builder for chaining. @@ -875,10 +889,10 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -     * List of acknowledgment IDs.
    +     * Required. List of acknowledgment IDs.
          * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -892,10 +906,10 @@ public Builder clearAckIds() { * * *
    -     * List of acknowledgment IDs.
    +     * Required. List of acknowledgment IDs.
          * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes of the ackIds to add. * @return This builder for chaining. @@ -916,7 +930,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { * * *
    -     * The new ack deadline with respect to the time this request was sent to
    +     * 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
    @@ -926,7 +940,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) {
          * The maximum deadline you can specify is 600 seconds (10 minutes).
          * 
    * - * int32 ack_deadline_seconds = 3; + * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The ackDeadlineSeconds. */ @@ -937,7 +951,7 @@ public int getAckDeadlineSeconds() { * * *
    -     * The new ack deadline with respect to the time this request was sent to
    +     * 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
    @@ -947,7 +961,7 @@ public int getAckDeadlineSeconds() {
          * The maximum deadline you can specify is 600 seconds (10 minutes).
          * 
    * - * int32 ack_deadline_seconds = 3; + * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. @@ -962,7 +976,7 @@ public Builder setAckDeadlineSeconds(int value) { * * *
    -     * The new ack deadline with respect to the time this request was sent to
    +     * 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
    @@ -972,7 +986,7 @@ public Builder setAckDeadlineSeconds(int value) {
          * The maximum deadline you can specify is 600 seconds (10 minutes).
          * 
    * - * int32 ack_deadline_seconds = 3; + * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 2c991e59a36c..eacaf0964ed5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface ModifyAckDeadlineRequestOrBuilder * * *
    -   * The name of the subscription.
    +   * Required. The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -40,11 +42,13 @@ public interface ModifyAckDeadlineRequestOrBuilder * * *
    -   * The name of the subscription.
    +   * Required. The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -54,10 +58,10 @@ public interface ModifyAckDeadlineRequestOrBuilder * * *
    -   * List of acknowledgment IDs.
    +   * Required. List of acknowledgment IDs.
        * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return A list containing the ackIds. */ @@ -66,10 +70,10 @@ public interface ModifyAckDeadlineRequestOrBuilder * * *
    -   * List of acknowledgment IDs.
    +   * Required. List of acknowledgment IDs.
        * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The count of ackIds. */ @@ -78,10 +82,10 @@ public interface ModifyAckDeadlineRequestOrBuilder * * *
    -   * List of acknowledgment IDs.
    +   * Required. List of acknowledgment IDs.
        * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -91,10 +95,10 @@ public interface ModifyAckDeadlineRequestOrBuilder * * *
    -   * List of acknowledgment IDs.
    +   * Required. List of acknowledgment IDs.
        * 
    * - * repeated string ack_ids = 4; + * repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -105,7 +109,7 @@ public interface ModifyAckDeadlineRequestOrBuilder * * *
    -   * The new ack deadline with respect to the time this request was sent to
    +   * 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
    @@ -115,7 +119,7 @@ public interface ModifyAckDeadlineRequestOrBuilder
        * The maximum deadline you can specify is 600 seconds (10 minutes).
        * 
    * - * int32 ack_deadline_seconds = 3; + * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The ackDeadlineSeconds. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index c3b79e3b6751..6b50cb7b9138 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -132,11 +132,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the subscription.
    +   * Required. The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -155,11 +157,13 @@ public java.lang.String getSubscription() { * * *
    -   * The name of the subscription.
    +   * Required. The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -181,14 +185,15 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -   * The push configuration for future deliveries.
    +   * 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.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the pushConfig field is set. */ @@ -199,14 +204,15 @@ public boolean hasPushConfig() { * * *
    -   * The push configuration for future deliveries.
    +   * 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.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The pushConfig. */ @@ -217,14 +223,15 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * * *
    -   * The push configuration for future deliveries.
    +   * 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.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { return getPushConfig(); @@ -579,11 +586,13 @@ public Builder mergeFrom( * * *
    -     * The name of the subscription.
    +     * Required. The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -602,11 +611,13 @@ public java.lang.String getSubscription() { * * *
    -     * The name of the subscription.
    +     * Required. The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -625,11 +636,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * The name of the subscription.
    +     * Required. The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The subscription to set. * @return This builder for chaining. @@ -647,11 +660,13 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * The name of the subscription.
    +     * Required. The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -665,11 +680,13 @@ public Builder clearSubscription() { * * *
    -     * The name of the subscription.
    +     * Required. The name of the subscription.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for subscription to set. * @return This builder for chaining. @@ -695,14 +712,15 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * *
    -     * The push configuration for future deliveries.
    +     * 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.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the pushConfig field is set. */ @@ -713,14 +731,15 @@ public boolean hasPushConfig() { * * *
    -     * The push configuration for future deliveries.
    +     * 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.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The pushConfig. */ @@ -737,14 +756,15 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * * *
    -     * The push configuration for future deliveries.
    +     * 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.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { @@ -763,14 +783,15 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { * * *
    -     * The push configuration for future deliveries.
    +     * 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.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) { if (pushConfigBuilder_ == null) { @@ -786,14 +807,15 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV * * *
    -     * The push configuration for future deliveries.
    +     * 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.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { @@ -816,14 +838,15 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { * * *
    -     * The push configuration for future deliveries.
    +     * 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.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPushConfig() { if (pushConfigBuilder_ == null) { @@ -840,14 +863,15 @@ public Builder clearPushConfig() { * * *
    -     * The push configuration for future deliveries.
    +     * 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.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { @@ -858,14 +882,15 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { * * *
    -     * The push configuration for future deliveries.
    +     * 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.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { if (pushConfigBuilder_ != null) { @@ -880,14 +905,15 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * *
    -     * The push configuration for future deliveries.
    +     * 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.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 97926658c6c6..10a208c31a07 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface ModifyPushConfigRequestOrBuilder * * *
    -   * The name of the subscription.
    +   * Required. The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -40,11 +42,13 @@ public interface ModifyPushConfigRequestOrBuilder * * *
    -   * The name of the subscription.
    +   * Required. The name of the subscription.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -54,14 +58,15 @@ public interface ModifyPushConfigRequestOrBuilder * * *
    -   * The push configuration for future deliveries.
    +   * 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.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the pushConfig field is set. */ @@ -70,14 +75,15 @@ public interface ModifyPushConfigRequestOrBuilder * * *
    -   * The push configuration for future deliveries.
    +   * 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.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The pushConfig. */ @@ -86,14 +92,15 @@ public interface ModifyPushConfigRequestOrBuilder * * *
    -   * The push configuration for future deliveries.
    +   * 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.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 2; + * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 6fb2f43784f8..402948c49002 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -133,11 +133,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The messages in the request will be published on this topic.
    +   * Required. The messages in the request will be published on this topic.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -156,11 +158,13 @@ public java.lang.String getTopic() { * * *
    -   * The messages in the request will be published on this topic.
    +   * Required. The messages in the request will be published on this topic.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -182,10 +186,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -   * The messages to publish.
    +   * Required. The messages to publish.
        * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getMessagesList() { return messages_; @@ -194,10 +200,12 @@ public java.util.List getMessagesList() { * * *
    -   * The messages to publish.
    +   * Required. The messages to publish.
        * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getMessagesOrBuilderList() { @@ -207,10 +215,12 @@ public java.util.List getMessagesList() { * * *
    -   * The messages to publish.
    +   * Required. The messages to publish.
        * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getMessagesCount() { return messages_.size(); @@ -219,10 +229,12 @@ public int getMessagesCount() { * * *
    -   * The messages to publish.
    +   * Required. The messages to publish.
        * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { return messages_.get(index); @@ -231,10 +243,12 @@ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { * * *
    -   * The messages to publish.
    +   * Required. The messages to publish.
        * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index) { return messages_.get(index); @@ -616,11 +630,13 @@ public Builder mergeFrom( * * *
    -     * The messages in the request will be published on this topic.
    +     * Required. The messages in the request will be published on this topic.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -639,11 +655,13 @@ public java.lang.String getTopic() { * * *
    -     * The messages in the request will be published on this topic.
    +     * Required. The messages in the request will be published on this topic.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -662,11 +680,13 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * The messages in the request will be published on this topic.
    +     * Required. The messages in the request will be published on this topic.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -684,11 +704,13 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * The messages in the request will be published on this topic.
    +     * Required. The messages in the request will be published on this topic.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -702,11 +724,13 @@ public Builder clearTopic() { * * *
    -     * The messages in the request will be published on this topic.
    +     * Required. The messages in the request will be published on this topic.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. @@ -742,10 +766,12 @@ private void ensureMessagesIsMutable() { * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getMessagesList() { if (messagesBuilder_ == null) { @@ -758,10 +784,12 @@ public java.util.List getMessagesList() { * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getMessagesCount() { if (messagesBuilder_ == null) { @@ -774,10 +802,12 @@ public int getMessagesCount() { * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { if (messagesBuilder_ == null) { @@ -790,10 +820,12 @@ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMessages(int index, com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { @@ -812,10 +844,12 @@ public Builder setMessages(int index, com.google.pubsub.v1.PubsubMessage value) * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMessages( int index, com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { @@ -832,10 +866,12 @@ public Builder setMessages( * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addMessages(com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { @@ -854,10 +890,12 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage value) { * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addMessages(int index, com.google.pubsub.v1.PubsubMessage value) { if (messagesBuilder_ == null) { @@ -876,10 +914,12 @@ public Builder addMessages(int index, com.google.pubsub.v1.PubsubMessage value) * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addMessages(com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { if (messagesBuilder_ == null) { @@ -895,10 +935,12 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage.Builder builderFor * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addMessages( int index, com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { @@ -915,10 +957,12 @@ public Builder addMessages( * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllMessages( java.lang.Iterable values) { @@ -935,10 +979,12 @@ public Builder addAllMessages( * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMessages() { if (messagesBuilder_ == null) { @@ -954,10 +1000,12 @@ public Builder clearMessages() { * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeMessages(int index) { if (messagesBuilder_ == null) { @@ -973,10 +1021,12 @@ public Builder removeMessages(int index) { * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder(int index) { return getMessagesFieldBuilder().getBuilder(index); @@ -985,10 +1035,12 @@ public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder(int index) * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index) { if (messagesBuilder_ == null) { @@ -1001,10 +1053,12 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int inde * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getMessagesOrBuilderList() { @@ -1018,10 +1072,12 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int inde * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder() { return getMessagesFieldBuilder() @@ -1031,10 +1087,12 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder() { * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder(int index) { return getMessagesFieldBuilder() @@ -1044,10 +1102,12 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder(int index) * * *
    -     * The messages to publish.
    +     * Required. The messages to publish.
          * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 9b4e977074a7..d233bca828bf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface PublishRequestOrBuilder * * *
    -   * The messages in the request will be published on this topic.
    +   * Required. The messages in the request will be published on this topic.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -40,11 +42,13 @@ public interface PublishRequestOrBuilder * * *
    -   * The messages in the request will be published on this topic.
    +   * Required. The messages in the request will be published on this topic.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -54,50 +58,60 @@ public interface PublishRequestOrBuilder * * *
    -   * The messages to publish.
    +   * Required. The messages to publish.
        * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getMessagesList(); /** * * *
    -   * The messages to publish.
    +   * Required. The messages to publish.
        * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.pubsub.v1.PubsubMessage getMessages(int index); /** * * *
    -   * The messages to publish.
    +   * Required. The messages to publish.
        * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ int getMessagesCount(); /** * * *
    -   * The messages to publish.
    +   * Required. The messages to publish.
        * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getMessagesOrBuilderList(); /** * * *
    -   * The messages to publish.
    +   * Required. The messages to publish.
        * 
    * - * repeated .google.pubsub.v1.PubsubMessage messages = 2; + * + * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 929f6ad567e2..9320aa828f55 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -225,226 +225,271 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\035google/pubsub/v1/pubsub.proto\022\020google." - + "pubsub.v1\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032\036google/protobu" - + "f/duration.proto\032\033google/protobuf/empty." - + "proto\032 google/protobuf/field_mask.proto\032" - + "\037google/protobuf/timestamp.proto\";\n\024Mess" - + "ageStoragePolicy\022#\n\033allowed_persistence_" - + "regions\030\001 \003(\t\"\327\001\n\005Topic\022\014\n\004name\030\001 \001(\t\0223\n" - + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.L" - + "abelsEntry\022F\n\026message_storage_policy\030\003 \001" - + "(\0132&.google.pubsub.v1.MessageStoragePoli" - + "cy\022\024\n\014kms_key_name\030\005 \001(\t\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\361\001\n\rPubs" - + "ubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 " - + "\003(\0132/.google.pubsub.v1.PubsubMessage.Att" - + "ributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publ" - + "ish_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017AttributesEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\017G" - + "etTopicRequest\022\r\n\005topic\030\001 \001(\t\"m\n\022UpdateT" - + "opicRequest\022&\n\005topic\030\001 \001(\0132\027.google.pubs" - + "ub.v1.Topic\022/\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"R\n\016PublishRequest\022\r" - + "\n\005topic\030\001 \001(\t\0221\n\010messages\030\002 \003(\0132\037.google" - + ".pubsub.v1.PubsubMessage\"&\n\017PublishRespo" - + "nse\022\023\n\013message_ids\030\001 \003(\t\"K\n\021ListTopicsRe" - + "quest\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListTopicsRespo" - + "nse\022\'\n\006topics\030\001 \003(\0132\027.google.pubsub.v1.T" - + "opic\022\027\n\017next_page_token\030\002 \001(\t\"U\n\035ListTop" - + "icSubscriptionsRequest\022\r\n\005topic\030\001 \001(\t\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"P\n\036" - + "ListTopicSubscriptionsResponse\022\025\n\rsubscr" - + "iptions\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"Q" - + "\n\031ListTopicSnapshotsRequest\022\r\n\005topic\030\001 \001" - + "(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"H\n\032ListTopicSnapshotsResponse\022\021\n\tsnaps" - + "hots\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"#\n\022D" - + "eleteTopicRequest\022\r\n\005topic\030\001 \001(\t\"\345\003\n\014Sub" - + "scription\022\014\n\004name\030\001 \001(\t\022\r\n\005topic\030\002 \001(\t\0221" - + "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" - + "ushConfig\022\034\n\024ack_deadline_seconds\030\005 \001(\005\022" - + "\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032messag" - + "e_retention_duration\030\010 \001(\0132\031.google.prot" - + "obuf.Duration\022:\n\006labels\030\t \003(\0132*.google.p" - + "ubsub.v1.Subscription.LabelsEntry\022\037\n\027ena" - + "ble_message_ordering\030\n \001(\010\022=\n\021expiration" - + "_policy\030\013 \001(\0132\".google.pubsub.v1.Expirat" - + "ionPolicy\022>\n\022dead_letter_policy\030\r \001(\0132\"." - + "google.pubsub.v1.DeadLetterPolicy\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"L\n\020DeadLetterPolicy\022\031\n\021dead_letter_topi" - + "c\030\001 \001(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":" - + "\n\020ExpirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google" - + ".protobuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpus" - + "h_endpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.g" - + "oogle.pubsub.v1.PushConfig.AttributesEnt" - + "ry\022<\n\noidc_token\030\003 \001(\0132&.google.pubsub.v" - + "1.PushConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n" - + "\025service_account_email\030\001 \001(\t\022\020\n\010audience" - + "\030\002 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001B\027\n\025authentication_meth" - + "od\"m\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n" - + "\007message\030\002 \001(\0132\037.google.pubsub.v1.Pubsub" - + "Message\022\030\n\020delivery_attempt\030\003 \001(\005\".\n\026Get" - + "SubscriptionRequest\022\024\n\014subscription\030\001 \001(" - + "\t\"\202\001\n\031UpdateSubscriptionRequest\0224\n\014subsc" - + "ription\030\001 \001(\0132\036.google.pubsub.v1.Subscri" - + "ption\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMask\"R\n\030ListSubscriptionsReque" - + "st\022\017\n\007project\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022" - + "\n\npage_token\030\003 \001(\t\"k\n\031ListSubscriptionsR" - + "esponse\0225\n\rsubscriptions\030\001 \003(\0132\036.google." - + "pubsub.v1.Subscription\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"1\n\031DeleteSubscriptionRequest\022\024\n\014" - + "subscription\030\001 \001(\t\"b\n\027ModifyPushConfigRe" - + "quest\022\024\n\014subscription\030\001 \001(\t\0221\n\013push_conf" - + "ig\030\002 \001(\0132\034.google.pubsub.v1.PushConfig\"U" - + "\n\013PullRequest\022\024\n\014subscription\030\001 \001(\t\022\032\n\022r" - + "eturn_immediately\030\002 \001(\010\022\024\n\014max_messages\030" - + "\003 \001(\005\"L\n\014PullResponse\022<\n\021received_messag" - + "es\030\001 \003(\0132!.google.pubsub.v1.ReceivedMess" - + "age\"_\n\030ModifyAckDeadlineRequest\022\024\n\014subsc" - + "ription\030\001 \001(\t\022\017\n\007ack_ids\030\004 \003(\t\022\034\n\024ack_de" - + "adline_seconds\030\003 \001(\005\";\n\022AcknowledgeReque" - + "st\022\024\n\014subscription\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(" - + "\t\"\267\001\n\024StreamingPullRequest\022\024\n\014subscripti" - + "on\030\001 \001(\t\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_dead" - + "line_seconds\030\003 \003(\005\022\037\n\027modify_deadline_ac" - + "k_ids\030\004 \003(\t\022#\n\033stream_ack_deadline_secon" - + "ds\030\005 \001(\005\022\021\n\tclient_id\030\006 \001(\t\"U\n\025Streaming" - + "PullResponse\022<\n\021received_messages\030\001 \003(\0132" - + "!.google.pubsub.v1.ReceivedMessage\"\257\001\n\025C" - + "reateSnapshotRequest\022\014\n\004name\030\001 \001(\t\022\024\n\014su" - + "bscription\030\002 \001(\t\022C\n\006labels\030\003 \003(\01323.googl" - + "e.pubsub.v1.CreateSnapshotRequest.Labels" - + "Entry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"v\n\025UpdateSnapshotRequest\022,\n" - + "\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Snaps" - + "hot\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMask\"\277\001\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022" - + "\r\n\005topic\030\002 \001(\t\022/\n\013expire_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132" - + "&.google.pubsub.v1.Snapshot.LabelsEntry\032" - + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"&\n\022GetSnapshotRequest\022\020\n\010snapshot" - + "\030\001 \001(\t\"N\n\024ListSnapshotsRequest\022\017\n\007projec" - + "t\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnaps" - + "hots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027" - + "\n\017next_page_token\030\002 \001(\t\")\n\025DeleteSnapsho" - + "tRequest\022\020\n\010snapshot\030\001 \001(\t\"m\n\013SeekReques" - + "t\022\024\n\014subscription\030\001 \001(\t\022*\n\004time\030\002 \001(\0132\032." - + "google.protobuf.TimestampH\000\022\022\n\010snapshot\030" - + "\003 \001(\tH\000B\010\n\006target\"\016\n\014SeekResponse2\261\t\n\tPu" - + "blisher\022j\n\013CreateTopic\022\027.google.pubsub.v" - + "1.Topic\032\027.google.pubsub.v1.Topic\")\202\323\344\223\002#" - + "\032\036/v1/{name=projects/*/topics/*}:\001*\022}\n\013U" - + "pdateTopic\022$.google.pubsub.v1.UpdateTopi" - + "cRequest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002" - + ")2$/v1/{topic.name=projects/*/topics/*}:" - + "\001*\022\202\001\n\007Publish\022 .google.pubsub.v1.Publis" - + "hRequest\032!.google.pubsub.v1.PublishRespo" - + "nse\"2\202\323\344\223\002,\"\'/v1/{topic=projects/*/topic" - + "s/*}:publish:\001*\022o\n\010GetTopic\022!.google.pub" - + "sub.v1.GetTopicRequest\032\027.google.pubsub.v" - + "1.Topic\"\'\202\323\344\223\002!\022\037/v1/{topic=projects/*/t" - + "opics/*}\022\200\001\n\nListTopics\022#.google.pubsub." - + "v1.ListTopicsRequest\032$.google.pubsub.v1." - + "ListTopicsResponse\"\'\202\323\344\223\002!\022\037/v1/{project" - + "=projects/*}/topics\022\262\001\n\026ListTopicSubscri" - + "ptions\022/.google.pubsub.v1.ListTopicSubsc" - + "riptionsRequest\0320.google.pubsub.v1.ListT" - + "opicSubscriptionsResponse\"5\202\323\344\223\002/\022-/v1/{" - + "topic=projects/*/topics/*}/subscriptions" - + "\022\242\001\n\022ListTopicSnapshots\022+.google.pubsub." - + "v1.ListTopicSnapshotsRequest\032,.google.pu" - + "bsub.v1.ListTopicSnapshotsResponse\"1\202\323\344\223" - + "\002+\022)/v1/{topic=projects/*/topics/*}/snap" - + "shots\022t\n\013DeleteTopic\022$.google.pubsub.v1." - + "DeleteTopicRequest\032\026.google.protobuf.Emp" - + "ty\"\'\202\323\344\223\002!*\037/v1/{topic=projects/*/topics" - + "/*}\032p\312A\025pubsub.googleapis.com\322AUhttps://" - + "www.googleapis.com/auth/cloud-platform,h" - + "ttps://www.googleapis.com/auth/pubsub2\353\022" - + "\n\nSubscriber\022\206\001\n\022CreateSubscription\022\036.go" - + "ogle.pubsub.v1.Subscription\032\036.google.pub" - + "sub.v1.Subscription\"0\202\323\344\223\002*\032%/v1/{name=p" - + "rojects/*/subscriptions/*}:\001*\022\222\001\n\017GetSub" - + "scription\022(.google.pubsub.v1.GetSubscrip" - + "tionRequest\032\036.google.pubsub.v1.Subscript" - + "ion\"5\202\323\344\223\002/\022-/v1/{subscription=projects/" - + "*/subscriptions/*}\022\240\001\n\022UpdateSubscriptio" - + "n\022+.google.pubsub.v1.UpdateSubscriptionR" - + "equest\032\036.google.pubsub.v1.Subscription\"=" - + "\202\323\344\223\002722/v1/{subscription.name=projects/" - + "*/subscriptions/*}:\001*\022\234\001\n\021ListSubscripti" - + "ons\022*.google.pubsub.v1.ListSubscriptions" - + "Request\032+.google.pubsub.v1.ListSubscript" - + "ionsResponse\".\202\323\344\223\002(\022&/v1/{project=proje" - + "cts/*}/subscriptions\022\220\001\n\022DeleteSubscript" - + "ion\022+.google.pubsub.v1.DeleteSubscriptio" - + "nRequest\032\026.google.protobuf.Empty\"5\202\323\344\223\002/" - + "*-/v1/{subscription=projects/*/subscript" - + "ions/*}\022\243\001\n\021ModifyAckDeadline\022*.google.p" - + "ubsub.v1.ModifyAckDeadlineRequest\032\026.goog" - + "le.protobuf.Empty\"J\202\323\344\223\002D\"?/v1/{subscrip" - + "tion=projects/*/subscriptions/*}:modifyA" - + "ckDeadline:\001*\022\221\001\n\013Acknowledge\022$.google.p" - + "ubsub.v1.AcknowledgeRequest\032\026.google.pro" - + "tobuf.Empty\"D\202\323\344\223\002>\"9/v1/{subscription=p" - + "rojects/*/subscriptions/*}:acknowledge:\001" - + "*\022\204\001\n\004Pull\022\035.google.pubsub.v1.PullReques" - + "t\032\036.google.pubsub.v1.PullResponse\"=\202\323\344\223\002" - + "7\"2/v1/{subscription=projects/*/subscrip" - + "tions/*}:pull:\001*\022f\n\rStreamingPull\022&.goog" - + "le.pubsub.v1.StreamingPullRequest\032\'.goog" - + "le.pubsub.v1.StreamingPullResponse\"\000(\0010\001" - + "\022\240\001\n\020ModifyPushConfig\022).google.pubsub.v1" - + ".ModifyPushConfigRequest\032\026.google.protob" - + "uf.Empty\"I\202\323\344\223\002C\">/v1/{subscription=proj" - + "ects/*/subscriptions/*}:modifyPushConfig" - + ":\001*\022~\n\013GetSnapshot\022$.google.pubsub.v1.Ge" - + "tSnapshotRequest\032\032.google.pubsub.v1.Snap" - + "shot\"-\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/s" - + "napshots/*}\022\214\001\n\rListSnapshots\022&.google.p" - + "ubsub.v1.ListSnapshotsRequest\032\'.google.p" - + "ubsub.v1.ListSnapshotsResponse\"*\202\323\344\223\002$\022\"" - + "/v1/{project=projects/*}/snapshots\022\203\001\n\016C" - + "reateSnapshot\022\'.google.pubsub.v1.CreateS" - + "napshotRequest\032\032.google.pubsub.v1.Snapsh" - + "ot\",\202\323\344\223\002&\032!/v1/{name=projects/*/snapsho" - + "ts/*}:\001*\022\214\001\n\016UpdateSnapshot\022\'.google.pub" - + "sub.v1.UpdateSnapshotRequest\032\032.google.pu" - + "bsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot." - + "name=projects/*/snapshots/*}:\001*\022\200\001\n\016Dele" - + "teSnapshot\022\'.google.pubsub.v1.DeleteSnap" - + "shotRequest\032\026.google.protobuf.Empty\"-\202\323\344" - + "\223\002\'*%/v1/{snapshot=projects/*/snapshots/" - + "*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReque" - + "st\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223" - + "\0027\"2/v1/{subscription=projects/*/subscri" - + "ptions/*}:seek:\001*\032p\312A\025pubsub.googleapis." - + "com\322AUhttps://www.googleapis.com/auth/cl" - + "oud-platform,https://www.googleapis.com/" - + "auth/pubsubB\256\001\n\024com.google.pubsub.v1B\013Pu" - + "bsubProtoP\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::V1b\006proto3" + + "pubsub.v1\032\027google/api/client.proto\032\037goog" + + "le/api/field_behavior.proto\032\031google/api/" + + "resource.proto\032\036google/protobuf/duration" + + ".proto\032\033google/protobuf/empty.proto\032 goo" + + "gle/protobuf/field_mask.proto\032\037google/pr" + + "otobuf/timestamp.proto\032\034google/api/annot" + + "ations.proto\";\n\024MessageStoragePolicy\022#\n\033" + + "allowed_persistence_regions\030\001 \003(\t\"\262\002\n\005To" + + "pic\022\021\n\004name\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#" + + ".google.pubsub.v1.Topic.LabelsEntry\022F\n\026m" + + "essage_storage_policy\030\003 \001(\0132&.google.pub" + + "sub.v1.MessageStoragePolicy\022\024\n\014kms_key_n" + + "ame\030\005 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:T\352AQ\n\033pubsub.googleapis" + + ".com/Topic\022!projects/{project}/topics/{t" + + "opic}\022\017_deleted-topic_\"\361\001\n\rPubsubMessage" + + "\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.goo" + + "gle.pubsub.v1.PubsubMessage.AttributesEn" + + "try\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_time\030" + + "\004 \001(\0132\032.google.protobuf.Timestamp\022\024\n\014ord" + + "ering_key\030\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicRe" + + "quest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.goo" + + "gleapis.com/Topic\"w\n\022UpdateTopicRequest\022" + + "+\n\005topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB" + + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005" + + "topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" + + "om/Topic\0226\n\010messages\030\002 \003(\0132\037.google.pubs" + + "ub.v1.PubsubMessageB\003\340A\002\"&\n\017PublishRespo" + + "nse\022\023\n\013message_ids\030\001 \003(\t\"\200\001\n\021ListTopicsR" + + "equest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudre" + + "sourcemanager.googleapis.com/Project\022\021\n\t" + + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022L" + + "istTopicsResponse\022\'\n\006topics\030\001 \003(\0132\027.goog" + + "le.pubsub.v1.Topic\022\027\n\017next_page_token\030\002 " + + "\001(\t\"z\n\035ListTopicSubscriptionsRequest\0222\n\005" + + "topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" + + "om/Topic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"y\n\036ListTopicSubscriptionsRespons" + + "e\022>\n\rsubscriptions\030\001 \003(\tB\'\372A$\n\"pubsub.go" + + "ogleapis.com/Subscription\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"Q\n\031ListTopicSnapshotsRequest\022" + + "\r\n\005topic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"H\n\032ListTopicSnapshotsRespo" + + "nse\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001" + + " \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topi" + + "c\"\351\004\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n" + + "\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis." + + "com/Topic\0221\n\013push_config\030\004 \001(\0132\034.google." + + "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec" + + "onds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(" + + "\010\022=\n\032message_retention_duration\030\010 \001(\0132\031." + + "google.protobuf.Duration\022:\n\006labels\030\t \003(\013" + + "2*.google.pubsub.v1.Subscription.LabelsE" + + "ntry\022\037\n\027enable_message_ordering\030\n \001(\010\022=\n" + + "\021expiration_policy\030\013 \001(\0132\".google.pubsub" + + ".v1.ExpirationPolicy\022>\n\022dead_letter_poli" + + "cy\030\r \001(\0132\".google.pubsub.v1.DeadLetterPo" + + "licy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub.googleapis.com/" + + "Subscription\022/projects/{project}/subscri" + + "ptions/{subscription}\"L\n\020DeadLetterPolic" + + "y\022\031\n\021dead_letter_topic\030\001 \001(\t\022\035\n\025max_deli" + + "very_attempts\030\002 \001(\005\":\n\020ExpirationPolicy\022" + + "&\n\003ttl\030\001 \001(\0132\031.google.protobuf.Duration\"" + + "\255\002\n\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n" + + "\nattributes\030\002 \003(\0132,.google.pubsub.v1.Pus" + + "hConfig.AttributesEntry\022<\n\noidc_token\030\003 " + + "\001(\0132&.google.pubsub.v1.PushConfig.OidcTo" + + "kenH\000\032<\n\tOidcToken\022\035\n\025service_account_em" + + "ail\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017Attribute" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027" + + "\n\025authentication_method\"m\n\017ReceivedMessa" + + "ge\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.go" + + "ogle.pubsub.v1.PubsubMessage\022\030\n\020delivery" + + "_attempt\030\003 \001(\005\"Z\n\026GetSubscriptionRequest" + + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" + + "oogleapis.com/Subscription\"\214\001\n\031UpdateSub" + + "scriptionRequest\0229\n\014subscription\030\001 \001(\0132\036" + + ".google.pubsub.v1.SubscriptionB\003\340A\002\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\"\207\001\n\030ListSubscriptionsRequest\022D" + + "\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\022\021\n\tpage_siz" + + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubsc" + + "riptionsResponse\0225\n\rsubscriptions\030\001 \003(\0132" + + "\036.google.pubsub.v1.Subscription\022\027\n\017next_" + + "page_token\030\002 \001(\t\"]\n\031DeleteSubscriptionRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\"\223\001\n\027Modi" + + "fyPushConfigRequest\022@\n\014subscription\030\001 \001(" + + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" + + "ption\0226\n\013push_config\030\002 \001(\0132\034.google.pubs" + + "ub.v1.PushConfigB\003\340A\002\"\206\001\n\013PullRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" + + "leapis.com/Subscription\022\032\n\022return_immedi" + + "ately\030\002 \001(\010\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"L" + + "\n\014PullResponse\022<\n\021received_messages\030\001 \003(" + + "\0132!.google.pubsub.v1.ReceivedMessage\"\225\001\n" + + "\030ModifyAckDeadlineRequest\022@\n\014subscriptio" + + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S" + + "ubscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack" + + "_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowle" + + "dgeRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" + + "\n\"pubsub.googleapis.com/Subscription\022\024\n\007" + + "ack_ids\030\002 \003(\tB\003\340A\002\"\350\001\n\024StreamingPullRequ" + + "est\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsu" + + "b.googleapis.com/Subscription\022\017\n\007ack_ids" + + "\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030\003 \003(\005\022" + + "\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022(\n\033stre" + + "am_ack_deadline_seconds\030\005 \001(\005B\003\340A\002\022\021\n\tcl" + + "ient_id\030\006 \001(\t\"U\n\025StreamingPullResponse\022<" + + "\n\021received_messages\030\001 \003(\0132!.google.pubsu" + + "b.v1.ReceivedMessage\"\203\002\n\025CreateSnapshotR" + + "equest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.goo" + + "gleapis.com/Snapshot\022@\n\014subscription\030\002 \001" + + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" + + "iption\022C\n\006labels\030\003 \003(\01323.google.pubsub.v" + + "1.CreateSnapshotRequest.LabelsEntry\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010snapshot" + + "\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003\340A\002\022" + + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t" + + "\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googleapis." + + "com/Topic\022/\n\013expire_time\030\003 \001(\0132\032.google." + + "protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.goo" + + "gle.pubsub.v1.Snapshot.LabelsEntry\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001:L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'" + + "projects/{project}/snapshots/{snapshot}\"" + + "N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB" + + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"" + + "\203\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001(" + + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" + + "is.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-" + + "\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sna" + + "pshot\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\025Delete" + + "SnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A" + + " \n\036pubsub.googleapis.com/Snapshot\"\276\001\n\013Se" + + "ekRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022*\n\004t" + + "ime\030\002 \001(\0132\032.google.protobuf.TimestampH\000\022" + + "7\n\010snapshot\030\003 \001(\tB#\372A \n\036pubsub.googleapi" + + "s.com/SnapshotH\000B\010\n\006target\"\016\n\014SeekRespon" + + "se2\353\t\n\tPublisher\022q\n\013CreateTopic\022\027.google" + + ".pubsub.v1.Topic\032\027.google.pubsub.v1.Topi" + + "c\"0\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*" + + "}:\001*\332A\004name\022}\n\013UpdateTopic\022$.google.pubs" + + "ub.v1.UpdateTopicRequest\032\027.google.pubsub" + + ".v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name=proje" + + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google." + + "pubsub.v1.PublishRequest\032!.google.pubsub" + + ".v1.PublishResponse\"C\202\323\344\223\002,\"\'/v1/{topic=" + + "projects/*/topics/*}:publish:\001*\332A\016topic," + + "messages\022w\n\010GetTopic\022!.google.pubsub.v1." + + "GetTopicRequest\032\027.google.pubsub.v1.Topic" + + "\"/\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*" + + "}\332A\005topic\022\212\001\n\nListTopics\022#.google.pubsub" + + ".v1.ListTopicsRequest\032$.google.pubsub.v1" + + ".ListTopicsResponse\"1\202\323\344\223\002!\022\037/v1/{projec" + + "t=projects/*}/topics\332A\007project\022\272\001\n\026ListT" + + "opicSubscriptions\022/.google.pubsub.v1.Lis" + + "tTopicSubscriptionsRequest\0320.google.pubs" + + "ub.v1.ListTopicSubscriptionsResponse\"=\202\323" + + "\344\223\002/\022-/v1/{topic=projects/*/topics/*}/su" + + "bscriptions\332A\005topic\022\242\001\n\022ListTopicSnapsho" + + "ts\022+.google.pubsub.v1.ListTopicSnapshots" + + "Request\032,.google.pubsub.v1.ListTopicSnap" + + "shotsResponse\"1\202\323\344\223\002+\022)/v1/{topic=projec" + + "ts/*/topics/*}/snapshots\022|\n\013DeleteTopic\022" + + "$.google.pubsub.v1.DeleteTopicRequest\032\026." + + "google.protobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topi" + + "c=projects/*/topics/*}\332A\005topic\032p\312A\025pubsu" + + "b.googleapis.com\322AUhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/pubsub2\367\024\n\nSubscriber\022" + + "\264\001\n\022CreateSubscription\022\036.google.pubsub.v" + + "1.Subscription\032\036.google.pubsub.v1.Subscr" + + "iption\"^\202\323\344\223\002*\032%/v1/{name=projects/*/sub" + + "scriptions/*}:\001*\332A+name,topic,push_confi" + + "g,ack_deadline_seconds\022\241\001\n\017GetSubscripti" + + "on\022(.google.pubsub.v1.GetSubscriptionReq" + + "uest\032\036.google.pubsub.v1.Subscription\"D\202\323" + + "\344\223\002/\022-/v1/{subscription=projects/*/subsc" + + "riptions/*}\332A\014subscription\022\240\001\n\022UpdateSub" + + "scription\022+.google.pubsub.v1.UpdateSubsc" + + "riptionRequest\032\036.google.pubsub.v1.Subscr" + + "iption\"=\202\323\344\223\002722/v1/{subscription.name=p" + + "rojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSu" + + "bscriptions\022*.google.pubsub.v1.ListSubsc" + + "riptionsRequest\032+.google.pubsub.v1.ListS" + + "ubscriptionsResponse\"8\202\323\344\223\002(\022&/v1/{proje" + + "ct=projects/*}/subscriptions\332A\007project\022\237" + + "\001\n\022DeleteSubscription\022+.google.pubsub.v1" + + ".DeleteSubscriptionRequest\032\026.google.prot" + + "obuf.Empty\"D\202\323\344\223\002/*-/v1/{subscription=pr" + + "ojects/*/subscriptions/*}\332A\014subscription" + + "\022\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v" + + "1.ModifyAckDeadlineRequest\032\026.google.prot" + + "obuf.Empty\"v\202\323\344\223\002D\"?/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:modifyAckDeadl" + + "ine:\001*\332A)subscription,ack_ids,ack_deadli" + + "ne_seconds\022\250\001\n\013Acknowledge\022$.google.pubs" + + "ub.v1.AcknowledgeRequest\032\026.google.protob" + + "uf.Empty\"[\202\323\344\223\002>\"9/v1/{subscription=proj" + + "ects/*/subscriptions/*}:acknowledge:\001*\332A" + + "\024subscription,ack_ids\022\263\001\n\004Pull\022\035.google." + + "pubsub.v1.PullRequest\032\036.google.pubsub.v1" + + ".PullResponse\"l\202\323\344\223\0027\"2/v1/{subscription" + + "=projects/*/subscriptions/*}:pull:\001*\332A,s" + + "ubscription,return_immediately,max_messa" + + "ges\022f\n\rStreamingPull\022&.google.pubsub.v1." + + "StreamingPullRequest\032\'.google.pubsub.v1." + + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu" + + "shConfig\022).google.pubsub.v1.ModifyPushCo" + + "nfigRequest\032\026.google.protobuf.Empty\"d\202\323\344" + + "\223\002C\">/v1/{subscription=projects/*/subscr" + + "iptions/*}:modifyPushConfig:\001*\332A\030subscri" + + "ption,push_config\022~\n\013GetSnapshot\022$.googl" + + "e.pubsub.v1.GetSnapshotRequest\032\032.google." + + "pubsub.v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{snapsho" + + "t=projects/*/snapshots/*}\022\226\001\n\rListSnapsh" + + "ots\022&.google.pubsub.v1.ListSnapshotsRequ" + + "est\032\'.google.pubsub.v1.ListSnapshotsResp" + + "onse\"4\202\323\344\223\002$\022\"/v1/{project=projects/*}/s" + + "napshots\332A\007project\022\227\001\n\016CreateSnapshot\022\'." + + "google.pubsub.v1.CreateSnapshotRequest\032\032" + + ".google.pubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/" + + "{name=projects/*/snapshots/*}:\001*\332A\021name," + + "subscription\022\214\001\n\016UpdateSnapshot\022\'.google" + + ".pubsub.v1.UpdateSnapshotRequest\032\032.googl" + + "e.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snaps" + + "hot.name=projects/*/snapshots/*}:\001*\022\213\001\n\016" + + "DeleteSnapshot\022\'.google.pubsub.v1.Delete" + + "SnapshotRequest\032\026.google.protobuf.Empty\"" + + "8\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsh" + + "ots/*}\332A\010snapshot\022\204\001\n\004Seek\022\035.google.pubs" + + "ub.v1.SeekRequest\032\036.google.pubsub.v1.See" + + "kResponse\"=\202\323\344\223\0027\"2/v1/{subscription=pro" + + "jects/*/subscriptions/*}:seek:\001*\032p\312A\025pub" + + "sub.googleapis.com\322AUhttps://www.googlea" + + "pis.com/auth/cloud-platform,https://www." + + "googleapis.com/auth/pubsubB\256\001\n\024com.googl" + + "e.pubsub.v1B\013PubsubProtoP\001Z6google.golan" + + "g.org/genproto/googleapis/pubsub/v1;pubs" + + "ub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\" + + "Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor = getDescriptor().getMessageTypes().get(0); @@ -835,16 +880,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 5e5040d3ba22..2c6f5e56dbe3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -125,11 +125,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The subscription from which messages should be pulled.
    +   * Required. The subscription from which messages should be pulled.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -148,11 +150,13 @@ public java.lang.String getSubscription() { * * *
    -   * The subscription from which messages should be pulled.
    +   * Required. The subscription from which messages should be pulled.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -194,12 +198,12 @@ public boolean getReturnImmediately() { * * *
    -   * The maximum number of messages to return for this request. Must be a
    +   * 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.
        * 
    * - * int32 max_messages = 3; + * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The maxMessages. */ @@ -555,11 +559,13 @@ public Builder mergeFrom( * * *
    -     * The subscription from which messages should be pulled.
    +     * Required. The subscription from which messages should be pulled.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -578,11 +584,13 @@ public java.lang.String getSubscription() { * * *
    -     * The subscription from which messages should be pulled.
    +     * Required. The subscription from which messages should be pulled.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -601,11 +609,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * The subscription from which messages should be pulled.
    +     * Required. The subscription from which messages should be pulled.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The subscription to set. * @return This builder for chaining. @@ -623,11 +633,13 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * The subscription from which messages should be pulled.
    +     * Required. The subscription from which messages should be pulled.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -641,11 +653,13 @@ public Builder clearSubscription() { * * *
    -     * The subscription from which messages should be pulled.
    +     * Required. The subscription from which messages should be pulled.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for subscription to set. * @return This builder for chaining. @@ -726,12 +740,12 @@ public Builder clearReturnImmediately() { * * *
    -     * The maximum number of messages to return for this request. Must be a
    +     * 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.
          * 
    * - * int32 max_messages = 3; + * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The maxMessages. */ @@ -742,12 +756,12 @@ public int getMaxMessages() { * * *
    -     * The maximum number of messages to return for this request. Must be a
    +     * 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.
          * 
    * - * int32 max_messages = 3; + * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The maxMessages to set. * @return This builder for chaining. @@ -762,12 +776,12 @@ public Builder setMaxMessages(int value) { * * *
    -     * The maximum number of messages to return for this request. Must be a
    +     * 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.
          * 
    * - * int32 max_messages = 3; + * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 560e86987b76..a908386fb770 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface PullRequestOrBuilder * * *
    -   * The subscription from which messages should be pulled.
    +   * Required. The subscription from which messages should be pulled.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -40,11 +42,13 @@ public interface PullRequestOrBuilder * * *
    -   * The subscription from which messages should be pulled.
    +   * Required. The subscription from which messages should be pulled.
        * Format is `projects/{project}/subscriptions/{sub}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -70,12 +74,12 @@ public interface PullRequestOrBuilder * * *
    -   * The maximum number of messages to return for this request. Must be a
    +   * 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.
        * 
    * - * int32 max_messages = 3; + * int32 max_messages = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The maxMessages. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index c4b9d62d3a94..7b5b68eeb14d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -184,10 +184,12 @@ public TargetCase getTargetCase() { * * *
    -   * The subscription to affect.
    +   * Required. The subscription to affect.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -206,10 +208,12 @@ public java.lang.String getSubscription() { * * *
    -   * The subscription to affect.
    +   * Required. The subscription to affect.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -313,7 +317,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * Format is `projects/{project}/snapshots/{snap}`. * * - * string snapshot = 3; + * string snapshot = 3 [(.google.api.resource_reference) = { ... } * * @return The snapshot. */ @@ -342,7 +346,7 @@ public java.lang.String getSnapshot() { * Format is `projects/{project}/snapshots/{snap}`. * * - * string snapshot = 3; + * string snapshot = 3 [(.google.api.resource_reference) = { ... } * * @return The bytes for snapshot. */ @@ -763,10 +767,12 @@ public Builder clearTarget() { * * *
    -     * The subscription to affect.
    +     * Required. The subscription to affect.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -785,10 +791,12 @@ public java.lang.String getSubscription() { * * *
    -     * The subscription to affect.
    +     * Required. The subscription to affect.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -807,10 +815,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * The subscription to affect.
    +     * Required. The subscription to affect.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The subscription to set. * @return This builder for chaining. @@ -828,10 +838,12 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * The subscription to affect.
    +     * Required. The subscription to affect.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -845,10 +857,12 @@ public Builder clearSubscription() { * * *
    -     * The subscription to affect.
    +     * Required. The subscription to affect.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for subscription to set. * @return This builder for chaining. @@ -1164,7 +1178,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * Format is `projects/{project}/snapshots/{snap}`. * * - * string snapshot = 3; + * string snapshot = 3 [(.google.api.resource_reference) = { ... } * * @return The snapshot. */ @@ -1193,7 +1207,7 @@ public java.lang.String getSnapshot() { * Format is `projects/{project}/snapshots/{snap}`. * * - * string snapshot = 3; + * string snapshot = 3 [(.google.api.resource_reference) = { ... } * * @return The bytes for snapshot. */ @@ -1222,7 +1236,7 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * Format is `projects/{project}/snapshots/{snap}`. * * - * string snapshot = 3; + * string snapshot = 3 [(.google.api.resource_reference) = { ... } * * @param value The snapshot to set. * @return This builder for chaining. @@ -1245,7 +1259,7 @@ public Builder setSnapshot(java.lang.String value) { * Format is `projects/{project}/snapshots/{snap}`. * * - * string snapshot = 3; + * string snapshot = 3 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -1266,7 +1280,7 @@ public Builder clearSnapshot() { * Format is `projects/{project}/snapshots/{snap}`. * * - * string snapshot = 3; + * string snapshot = 3 [(.google.api.resource_reference) = { ... } * * @param value The bytes for snapshot to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 3d23318fbdde..bff70a803ed6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -27,10 +27,12 @@ public interface SeekRequestOrBuilder * * *
    -   * The subscription to affect.
    +   * Required. The subscription to affect.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -39,10 +41,12 @@ public interface SeekRequestOrBuilder * * *
    -   * The subscription to affect.
    +   * Required. The subscription to affect.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -122,7 +126,7 @@ public interface SeekRequestOrBuilder * Format is `projects/{project}/snapshots/{snap}`. * * - * string snapshot = 3; + * string snapshot = 3 [(.google.api.resource_reference) = { ... } * * @return The snapshot. */ @@ -136,7 +140,7 @@ public interface SeekRequestOrBuilder * Format is `projects/{project}/snapshots/{snap}`. * * - * string snapshot = 3; + * string snapshot = 3 [(.google.api.resource_reference) = { ... } * * @return The bytes for snapshot. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index b87a227bedce..bebe344042ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -218,7 +218,7 @@ public com.google.protobuf.ByteString getNameBytes() { * The name of the topic from which this snapshot is retaining messages. * * - * string topic = 2; + * string topic = 2 [(.google.api.resource_reference) = { ... } * * @return The topic. */ @@ -240,7 +240,7 @@ public java.lang.String getTopic() { * The name of the topic from which this snapshot is retaining messages. * * - * string topic = 2; + * string topic = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for topic. */ @@ -940,7 +940,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * The name of the topic from which this snapshot is retaining messages. * * - * string topic = 2; + * string topic = 2 [(.google.api.resource_reference) = { ... } * * @return The topic. */ @@ -962,7 +962,7 @@ public java.lang.String getTopic() { * The name of the topic from which this snapshot is retaining messages. * * - * string topic = 2; + * string topic = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for topic. */ @@ -984,7 +984,7 @@ public com.google.protobuf.ByteString getTopicBytes() { * The name of the topic from which this snapshot is retaining messages. * * - * string topic = 2; + * string topic = 2 [(.google.api.resource_reference) = { ... } * * @param value The topic to set. * @return This builder for chaining. @@ -1005,7 +1005,7 @@ public Builder setTopic(java.lang.String value) { * The name of the topic from which this snapshot is retaining messages. * * - * string topic = 2; + * string topic = 2 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -1022,7 +1022,7 @@ public Builder clearTopic() { * The name of the topic from which this snapshot is retaining messages. * * - * string topic = 2; + * string topic = 2 [(.google.api.resource_reference) = { ... } * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index be8ea184df85..9ef1ef752f22 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -55,7 +55,7 @@ public interface SnapshotOrBuilder * The name of the topic from which this snapshot is retaining messages. * * - * string topic = 2; + * string topic = 2 [(.google.api.resource_reference) = { ... } * * @return The topic. */ @@ -67,7 +67,7 @@ public interface SnapshotOrBuilder * The name of the topic from which this snapshot is retaining messages. * * - * string topic = 2; + * string topic = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for topic. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 480253f70952..cf748b70cc95 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -188,13 +188,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The subscription for which to initialize the new stream. This must be
    +   * 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}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -213,13 +215,15 @@ public java.lang.String getSubscription() { * * *
    -   * The subscription for which to initialize the new stream. This must be
    +   * 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}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -473,13 +477,13 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { * * *
    -   * The ack deadline to use for the stream. This must be provided in the
    +   * Required. The ack deadline to use for the stream. This must be provided in the
        * first request on the stream, but it can also be updated on subsequent
        * requests from client to server. The minimum deadline you can specify is 10
        * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
        * 
    * - * int32 stream_ack_deadline_seconds = 5; + * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The streamAckDeadlineSeconds. */ @@ -1012,13 +1016,15 @@ public Builder mergeFrom( * * *
    -     * The subscription for which to initialize the new stream. This must be
    +     * 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}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -1037,13 +1043,15 @@ public java.lang.String getSubscription() { * * *
    -     * The subscription for which to initialize the new stream. This must be
    +     * 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}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -1062,13 +1070,15 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * The subscription for which to initialize the new stream. This must be
    +     * 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}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The subscription to set. * @return This builder for chaining. @@ -1086,13 +1096,15 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * The subscription for which to initialize the new stream. This must be
    +     * 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}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1106,13 +1118,15 @@ public Builder clearSubscription() { * * *
    -     * The subscription for which to initialize the new stream. This must be
    +     * 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}`.
          * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for subscription to set. * @return This builder for chaining. @@ -1738,13 +1752,13 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value * * *
    -     * The ack deadline to use for the stream. This must be provided in the
    +     * Required. The ack deadline to use for the stream. This must be provided in the
          * first request on the stream, but it can also be updated on subsequent
          * requests from client to server. The minimum deadline you can specify is 10
          * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
          * 
    * - * int32 stream_ack_deadline_seconds = 5; + * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The streamAckDeadlineSeconds. */ @@ -1755,13 +1769,13 @@ public int getStreamAckDeadlineSeconds() { * * *
    -     * The ack deadline to use for the stream. This must be provided in the
    +     * Required. The ack deadline to use for the stream. This must be provided in the
          * first request on the stream, but it can also be updated on subsequent
          * requests from client to server. The minimum deadline you can specify is 10
          * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
          * 
    * - * int32 stream_ack_deadline_seconds = 5; + * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; * * @param value The streamAckDeadlineSeconds to set. * @return This builder for chaining. @@ -1776,13 +1790,13 @@ public Builder setStreamAckDeadlineSeconds(int value) { * * *
    -     * The ack deadline to use for the stream. This must be provided in the
    +     * Required. The ack deadline to use for the stream. This must be provided in the
          * first request on the stream, but it can also be updated on subsequent
          * requests from client to server. The minimum deadline you can specify is 10
          * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
          * 
    * - * int32 stream_ack_deadline_seconds = 5; + * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index e9315a90f3b2..daed9c34ddf7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -27,13 +27,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * The subscription for which to initialize the new stream. This must be
    +   * 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}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The subscription. */ @@ -42,13 +44,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * The subscription for which to initialize the new stream. This must be
    +   * 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}`.
        * 
    * - * string subscription = 1; + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for subscription. */ @@ -260,13 +264,13 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * The ack deadline to use for the stream. This must be provided in the
    +   * Required. The ack deadline to use for the stream. This must be provided in the
        * first request on the stream, but it can also be updated on subsequent
        * requests from client to server. The minimum deadline you can specify is 10
        * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
        * 
    * - * int32 stream_ack_deadline_seconds = 5; + * int32 stream_ack_deadline_seconds = 5 [(.google.api.field_behavior) = REQUIRED]; * * @return The streamAckDeadlineSeconds. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 468e9b2cccb6..af7af8ecdbb6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -227,7 +227,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
    -   * The name of the subscription. It must have the format
    +   * 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 (`~`),
    @@ -235,7 +235,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
        * in length, and it must not start with `"goog"`.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The name. */ @@ -254,7 +254,7 @@ public java.lang.String getName() { * * *
    -   * The name of the subscription. It must have the format
    +   * 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 (`~`),
    @@ -262,7 +262,7 @@ public java.lang.String getName() {
        * in length, and it must not start with `"goog"`.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for name. */ @@ -284,13 +284,15 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -   * The name of the topic from which this subscription is receiving messages.
    +   * 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.
        * 
    * - * string topic = 2; + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -309,13 +311,15 @@ public java.lang.String getTopic() { * * *
    -   * The name of the topic from which this subscription is receiving messages.
    +   * 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.
        * 
    * - * string topic = 2; + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -1285,7 +1289,7 @@ public Builder mergeFrom( * * *
    -     * The name of the subscription. It must have the format
    +     * 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 (`~`),
    @@ -1293,7 +1297,7 @@ public Builder mergeFrom(
          * in length, and it must not start with `"goog"`.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The name. */ @@ -1312,7 +1316,7 @@ public java.lang.String getName() { * * *
    -     * The name of the subscription. It must have the format
    +     * 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 (`~`),
    @@ -1320,7 +1324,7 @@ public java.lang.String getName() {
          * in length, and it must not start with `"goog"`.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for name. */ @@ -1339,7 +1343,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * The name of the subscription. It must have the format
    +     * 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 (`~`),
    @@ -1347,7 +1351,7 @@ public com.google.protobuf.ByteString getNameBytes() {
          * in length, and it must not start with `"goog"`.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The name to set. * @return This builder for chaining. @@ -1365,7 +1369,7 @@ public Builder setName(java.lang.String value) { * * *
    -     * The name of the subscription. It must have the format
    +     * 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 (`~`),
    @@ -1373,7 +1377,7 @@ public Builder setName(java.lang.String value) {
          * in length, and it must not start with `"goog"`.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1387,7 +1391,7 @@ public Builder clearName() { * * *
    -     * The name of the subscription. It must have the format
    +     * 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 (`~`),
    @@ -1395,7 +1399,7 @@ public Builder clearName() {
          * in length, and it must not start with `"goog"`.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1416,13 +1420,15 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * The name of the topic from which this subscription is receiving messages.
    +     * 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.
          * 
    * - * string topic = 2; + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -1441,13 +1447,15 @@ public java.lang.String getTopic() { * * *
    -     * The name of the topic from which this subscription is receiving messages.
    +     * 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.
          * 
    * - * string topic = 2; + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -1466,13 +1474,15 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * The name of the topic from which this subscription is receiving messages.
    +     * 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.
          * 
    * - * string topic = 2; + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -1490,13 +1500,15 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * The name of the topic from which this subscription is receiving messages.
    +     * 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.
          * 
    * - * string topic = 2; + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1510,13 +1522,15 @@ public Builder clearTopic() { * * *
    -     * The name of the topic from which this subscription is receiving messages.
    +     * 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.
          * 
    * - * string topic = 2; + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 7b2e4648a8df..840cd7f6a931 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -27,7 +27,7 @@ public interface SubscriptionOrBuilder * * *
    -   * The name of the subscription. It must have the format
    +   * 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 (`~`),
    @@ -35,7 +35,7 @@ public interface SubscriptionOrBuilder
        * in length, and it must not start with `"goog"`.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The name. */ @@ -44,7 +44,7 @@ public interface SubscriptionOrBuilder * * *
    -   * The name of the subscription. It must have the format
    +   * 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 (`~`),
    @@ -52,7 +52,7 @@ public interface SubscriptionOrBuilder
        * in length, and it must not start with `"goog"`.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for name. */ @@ -62,13 +62,15 @@ public interface SubscriptionOrBuilder * * *
    -   * The name of the topic from which this subscription is receiving messages.
    +   * 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.
        * 
    * - * string topic = 2; + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -77,13 +79,15 @@ public interface SubscriptionOrBuilder * * *
    -   * The name of the topic from which this subscription is receiving messages.
    +   * 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.
        * 
    * - * string topic = 2; + * + * string topic = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 3d29b4fa3153..e062abc0e22a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -164,7 +164,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
    -   * The name of the topic. It must have the format
    +   * 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
    @@ -172,7 +172,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
        * must not start with `"goog"`.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The name. */ @@ -191,7 +191,7 @@ public java.lang.String getName() { * * *
    -   * The name of the topic. It must have the format
    +   * 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
    @@ -199,7 +199,7 @@ public java.lang.String getName() {
        * must not start with `"goog"`.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for name. */ @@ -818,7 +818,7 @@ public Builder mergeFrom( * * *
    -     * The name of the topic. It must have the format
    +     * 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
    @@ -826,7 +826,7 @@ public Builder mergeFrom(
          * must not start with `"goog"`.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The name. */ @@ -845,7 +845,7 @@ public java.lang.String getName() { * * *
    -     * The name of the topic. It must have the format
    +     * 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
    @@ -853,7 +853,7 @@ public java.lang.String getName() {
          * must not start with `"goog"`.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for name. */ @@ -872,7 +872,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * The name of the topic. It must have the format
    +     * 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
    @@ -880,7 +880,7 @@ public com.google.protobuf.ByteString getNameBytes() {
          * must not start with `"goog"`.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The name to set. * @return This builder for chaining. @@ -898,7 +898,7 @@ public Builder setName(java.lang.String value) { * * *
    -     * The name of the topic. It must have the format
    +     * 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
    @@ -906,7 +906,7 @@ public Builder setName(java.lang.String value) {
          * must not start with `"goog"`.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -920,7 +920,7 @@ public Builder clearName() { * * *
    -     * The name of the topic. It must have the format
    +     * 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
    @@ -928,7 +928,7 @@ public Builder clearName() {
          * must not start with `"goog"`.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index a2d605d8c2c2..1e1338b11956 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -27,7 +27,7 @@ public interface TopicOrBuilder * * *
    -   * The name of the topic. It must have the format
    +   * 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
    @@ -35,7 +35,7 @@ public interface TopicOrBuilder
        * must not start with `"goog"`.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The name. */ @@ -44,7 +44,7 @@ public interface TopicOrBuilder * * *
    -   * The name of the topic. It must have the format
    +   * 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
    @@ -52,7 +52,7 @@ public interface TopicOrBuilder
        * must not start with `"goog"`.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for name. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 79176925b5b6..b22075d56da4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -138,10 +138,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The updated snapshot object.
    +   * Required. The updated snapshot object.
        * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the snapshot field is set. */ @@ -152,10 +152,10 @@ public boolean hasSnapshot() { * * *
    -   * The updated snapshot object.
    +   * Required. The updated snapshot object.
        * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The snapshot. */ @@ -166,10 +166,10 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { * * *
    -   * The updated snapshot object.
    +   * Required. The updated snapshot object.
        * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { return getSnapshot(); @@ -181,11 +181,12 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * * *
    -   * Indicates which fields in the provided snapshot to update.
    +   * Required. Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -196,11 +197,12 @@ public boolean hasUpdateMask() { * * *
    -   * Indicates which fields in the provided snapshot to update.
    +   * Required. Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -211,11 +213,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
    -   * Indicates which fields in the provided snapshot to update.
    +   * Required. Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -587,10 +590,11 @@ public Builder mergeFrom( * * *
    -     * The updated snapshot object.
    +     * Required. The updated snapshot object.
          * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the snapshot field is set. */ @@ -601,10 +605,11 @@ public boolean hasSnapshot() { * * *
    -     * The updated snapshot object.
    +     * Required. The updated snapshot object.
          * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The snapshot. */ @@ -619,10 +624,11 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { * * *
    -     * The updated snapshot object.
    +     * Required. The updated snapshot object.
          * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { @@ -641,10 +647,11 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { * * *
    -     * The updated snapshot object.
    +     * Required. The updated snapshot object.
          * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { @@ -660,10 +667,11 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue * * *
    -     * The updated snapshot object.
    +     * Required. The updated snapshot object.
          * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { @@ -684,10 +692,11 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { * * *
    -     * The updated snapshot object.
    +     * Required. The updated snapshot object.
          * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSnapshot() { if (snapshotBuilder_ == null) { @@ -704,10 +713,11 @@ public Builder clearSnapshot() { * * *
    -     * The updated snapshot object.
    +     * Required. The updated snapshot object.
          * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { @@ -718,10 +728,11 @@ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { * * *
    -     * The updated snapshot object.
    +     * Required. The updated snapshot object.
          * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { if (snapshotBuilder_ != null) { @@ -734,10 +745,11 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * * *
    -     * The updated snapshot object.
    +     * Required. The updated snapshot object.
          * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.Snapshot, @@ -766,11 +778,12 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * * *
    -     * Indicates which fields in the provided snapshot to update.
    +     * Required. Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -781,11 +794,12 @@ public boolean hasUpdateMask() { * * *
    -     * Indicates which fields in the provided snapshot to update.
    +     * Required. Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -802,11 +816,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
    -     * Indicates which fields in the provided snapshot to update.
    +     * Required. Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -825,11 +840,12 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
    -     * Indicates which fields in the provided snapshot to update.
    +     * Required. Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -845,11 +861,12 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
    -     * Indicates which fields in the provided snapshot to update.
    +     * Required. Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -870,11 +887,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
    -     * Indicates which fields in the provided snapshot to update.
    +     * Required. Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -891,11 +909,12 @@ public Builder clearUpdateMask() { * * *
    -     * Indicates which fields in the provided snapshot to update.
    +     * Required. Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -906,11 +925,12 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
    -     * Indicates which fields in the provided snapshot to update.
    +     * Required. Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -925,11 +945,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
    -     * Indicates which fields in the provided snapshot to update.
    +     * Required. Indicates which fields in the provided snapshot to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 927d77a34ff1..2acbd11207d0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -27,10 +27,10 @@ public interface UpdateSnapshotRequestOrBuilder * * *
    -   * The updated snapshot object.
    +   * Required. The updated snapshot object.
        * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the snapshot field is set. */ @@ -39,10 +39,10 @@ public interface UpdateSnapshotRequestOrBuilder * * *
    -   * The updated snapshot object.
    +   * Required. The updated snapshot object.
        * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The snapshot. */ @@ -51,10 +51,10 @@ public interface UpdateSnapshotRequestOrBuilder * * *
    -   * The updated snapshot object.
    +   * Required. The updated snapshot object.
        * 
    * - * .google.pubsub.v1.Snapshot snapshot = 1; + * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder(); @@ -62,11 +62,12 @@ public interface UpdateSnapshotRequestOrBuilder * * *
    -   * Indicates which fields in the provided snapshot to update.
    +   * Required. Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -75,11 +76,12 @@ public interface UpdateSnapshotRequestOrBuilder * * *
    -   * Indicates which fields in the provided snapshot to update.
    +   * Required. Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -88,11 +90,12 @@ public interface UpdateSnapshotRequestOrBuilder * * *
    -   * Indicates which fields in the provided snapshot to update.
    +   * Required. Indicates which fields in the provided snapshot to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 17af60e84a42..80b4be91147e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -138,10 +138,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The updated subscription object.
    +   * Required. The updated subscription object.
        * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the subscription field is set. */ @@ -152,10 +154,12 @@ public boolean hasSubscription() { * * *
    -   * The updated subscription object.
    +   * Required. The updated subscription object.
        * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The subscription. */ @@ -168,10 +172,12 @@ public com.google.pubsub.v1.Subscription getSubscription() { * * *
    -   * The updated subscription object.
    +   * Required. The updated subscription object.
        * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { return getSubscription(); @@ -183,11 +189,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { * * *
    -   * Indicates which fields in the provided subscription to update.
    +   * Required. Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -198,11 +205,12 @@ public boolean hasUpdateMask() { * * *
    -   * Indicates which fields in the provided subscription to update.
    +   * Required. Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -213,11 +221,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
    -   * Indicates which fields in the provided subscription to update.
    +   * Required. Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -589,10 +598,12 @@ public Builder mergeFrom( * * *
    -     * The updated subscription object.
    +     * Required. The updated subscription object.
          * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the subscription field is set. */ @@ -603,10 +614,12 @@ public boolean hasSubscription() { * * *
    -     * The updated subscription object.
    +     * Required. The updated subscription object.
          * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The subscription. */ @@ -623,10 +636,12 @@ public com.google.pubsub.v1.Subscription getSubscription() { * * *
    -     * The updated subscription object.
    +     * Required. The updated subscription object.
          * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { if (subscriptionBuilder_ == null) { @@ -645,10 +660,12 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { * * *
    -     * The updated subscription object.
    +     * Required. The updated subscription object.
          * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builderForValue) { if (subscriptionBuilder_ == null) { @@ -664,10 +681,12 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builder * * *
    -     * The updated subscription object.
    +     * Required. The updated subscription object.
          * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { if (subscriptionBuilder_ == null) { @@ -690,10 +709,12 @@ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { * * *
    -     * The updated subscription object.
    +     * Required. The updated subscription object.
          * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSubscription() { if (subscriptionBuilder_ == null) { @@ -710,10 +731,12 @@ public Builder clearSubscription() { * * *
    -     * The updated subscription object.
    +     * Required. The updated subscription object.
          * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { @@ -724,10 +747,12 @@ public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { * * *
    -     * The updated subscription object.
    +     * Required. The updated subscription object.
          * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { if (subscriptionBuilder_ != null) { @@ -742,10 +767,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { * * *
    -     * The updated subscription object.
    +     * Required. The updated subscription object.
          * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.Subscription, @@ -774,11 +801,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { * * *
    -     * Indicates which fields in the provided subscription to update.
    +     * Required. Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -789,11 +817,12 @@ public boolean hasUpdateMask() { * * *
    -     * Indicates which fields in the provided subscription to update.
    +     * Required. Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -810,11 +839,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
    -     * Indicates which fields in the provided subscription to update.
    +     * Required. Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -833,11 +863,12 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
    -     * Indicates which fields in the provided subscription to update.
    +     * Required. Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -853,11 +884,12 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
    -     * Indicates which fields in the provided subscription to update.
    +     * Required. Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -878,11 +910,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
    -     * Indicates which fields in the provided subscription to update.
    +     * Required. Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -899,11 +932,12 @@ public Builder clearUpdateMask() { * * *
    -     * Indicates which fields in the provided subscription to update.
    +     * Required. Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -914,11 +948,12 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
    -     * Indicates which fields in the provided subscription to update.
    +     * Required. Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -933,11 +968,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
    -     * Indicates which fields in the provided subscription to update.
    +     * Required. Indicates which fields in the provided subscription to update.
          * Must be specified and non-empty.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index c2d12b0fea52..730dc304b190 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -27,10 +27,12 @@ public interface UpdateSubscriptionRequestOrBuilder * * *
    -   * The updated subscription object.
    +   * Required. The updated subscription object.
        * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the subscription field is set. */ @@ -39,10 +41,12 @@ public interface UpdateSubscriptionRequestOrBuilder * * *
    -   * The updated subscription object.
    +   * Required. The updated subscription object.
        * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The subscription. */ @@ -51,10 +55,12 @@ public interface UpdateSubscriptionRequestOrBuilder * * *
    -   * The updated subscription object.
    +   * Required. The updated subscription object.
        * 
    * - * .google.pubsub.v1.Subscription subscription = 1; + * + * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder(); @@ -62,11 +68,12 @@ public interface UpdateSubscriptionRequestOrBuilder * * *
    -   * Indicates which fields in the provided subscription to update.
    +   * Required. Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -75,11 +82,12 @@ public interface UpdateSubscriptionRequestOrBuilder * * *
    -   * Indicates which fields in the provided subscription to update.
    +   * Required. Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -88,11 +96,12 @@ public interface UpdateSubscriptionRequestOrBuilder * * *
    -   * Indicates which fields in the provided subscription to update.
    +   * Required. Indicates which fields in the provided subscription to update.
        * Must be specified and non-empty.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 8337a5583695..d4f95780f964 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -137,10 +137,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The updated topic object.
    +   * Required. The updated topic object.
        * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the topic field is set. */ @@ -151,10 +151,10 @@ public boolean hasTopic() { * * *
    -   * The updated topic object.
    +   * Required. The updated topic object.
        * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The topic. */ @@ -165,10 +165,10 @@ public com.google.pubsub.v1.Topic getTopic() { * * *
    -   * The updated topic object.
    +   * Required. The updated topic object.
        * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { return getTopic(); @@ -180,14 +180,15 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * * *
    -   * Indicates which fields in the provided topic to update. Must be specified
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -198,14 +199,15 @@ public boolean hasUpdateMask() { * * *
    -   * Indicates which fields in the provided topic to update. Must be specified
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -216,14 +218,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
    -   * Indicates which fields in the provided topic to update. Must be specified
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -594,10 +597,10 @@ public Builder mergeFrom( * * *
    -     * The updated topic object.
    +     * Required. The updated topic object.
          * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the topic field is set. */ @@ -608,10 +611,10 @@ public boolean hasTopic() { * * *
    -     * The updated topic object.
    +     * Required. The updated topic object.
          * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The topic. */ @@ -626,10 +629,10 @@ public com.google.pubsub.v1.Topic getTopic() { * * *
    -     * The updated topic object.
    +     * Required. The updated topic object.
          * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { @@ -648,10 +651,10 @@ public Builder setTopic(com.google.pubsub.v1.Topic value) { * * *
    -     * The updated topic object.
    +     * Required. The updated topic object.
          * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicBuilder_ == null) { @@ -667,10 +670,10 @@ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { * * *
    -     * The updated topic object.
    +     * Required. The updated topic object.
          * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { @@ -690,10 +693,10 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { * * *
    -     * The updated topic object.
    +     * Required. The updated topic object.
          * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTopic() { if (topicBuilder_ == null) { @@ -710,10 +713,10 @@ public Builder clearTopic() { * * *
    -     * The updated topic object.
    +     * Required. The updated topic object.
          * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { @@ -724,10 +727,10 @@ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { * * *
    -     * The updated topic object.
    +     * Required. The updated topic object.
          * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { if (topicBuilder_ != null) { @@ -740,10 +743,10 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * * *
    -     * The updated topic object.
    +     * Required. The updated topic object.
          * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.Topic, @@ -771,14 +774,15 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * * *
    -     * Indicates which fields in the provided topic to update. Must be specified
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -789,14 +793,15 @@ public boolean hasUpdateMask() { * * *
    -     * Indicates which fields in the provided topic to update. Must be specified
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -813,14 +818,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
    -     * Indicates which fields in the provided topic to update. Must be specified
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -839,14 +845,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
    -     * Indicates which fields in the provided topic to update. Must be specified
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -862,14 +869,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
    -     * Indicates which fields in the provided topic to update. Must be specified
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -890,14 +898,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
    -     * Indicates which fields in the provided topic to update. Must be specified
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -914,14 +923,15 @@ public Builder clearUpdateMask() { * * *
    -     * Indicates which fields in the provided topic to update. Must be specified
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -932,14 +942,15 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
    -     * Indicates which fields in the provided topic to update. Must be specified
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -954,14 +965,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
    -     * Indicates which fields in the provided topic to update. Must be specified
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 3599ba6669e0..6cf4e911a6eb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -27,10 +27,10 @@ public interface UpdateTopicRequestOrBuilder * * *
    -   * The updated topic object.
    +   * Required. The updated topic object.
        * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the topic field is set. */ @@ -39,10 +39,10 @@ public interface UpdateTopicRequestOrBuilder * * *
    -   * The updated topic object.
    +   * Required. The updated topic object.
        * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The topic. */ @@ -51,10 +51,10 @@ public interface UpdateTopicRequestOrBuilder * * *
    -   * The updated topic object.
    +   * Required. The updated topic object.
        * 
    * - * .google.pubsub.v1.Topic topic = 1; + * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder(); @@ -62,14 +62,15 @@ public interface UpdateTopicRequestOrBuilder * * *
    -   * Indicates which fields in the provided topic to update. Must be specified
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -78,14 +79,15 @@ public interface UpdateTopicRequestOrBuilder * * *
    -   * Indicates which fields in the provided topic to update. Must be specified
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -94,14 +96,15 @@ public interface UpdateTopicRequestOrBuilder * * *
    -   * Indicates which fields in the provided topic to update. Must be specified
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index da3801dfecb7..1a989b5cc804 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -17,12 +17,14 @@ syntax = "proto3"; package google.pubsub.v1; -import "google/api/annotations.proto"; import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSub.V1"; @@ -49,6 +51,7 @@ service Publisher { put: "/v1/{name=projects/*/topics/*}" body: "*" }; + option (google.api.method_signature) = "name"; } // Updates an existing topic. Note that certain properties of a @@ -67,6 +70,7 @@ service Publisher { post: "/v1/{topic=projects/*/topics/*}:publish" body: "*" }; + option (google.api.method_signature) = "topic,messages"; } // Gets the configuration of a topic. @@ -74,6 +78,7 @@ service Publisher { option (google.api.http) = { get: "/v1/{topic=projects/*/topics/*}" }; + option (google.api.method_signature) = "topic"; } // Lists matching topics. @@ -81,14 +86,15 @@ service Publisher { option (google.api.http) = { get: "/v1/{project=projects/*}/topics" }; + option (google.api.method_signature) = "project"; } // Lists the names of the subscriptions on this topic. - rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) - returns (ListTopicSubscriptionsResponse) { + rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) returns (ListTopicSubscriptionsResponse) { option (google.api.http) = { get: "/v1/{topic=projects/*/topics/*}/subscriptions" }; + option (google.api.method_signature) = "topic"; } // Lists the names of the snapshots on this topic. Snapshots are used in @@ -97,8 +103,7 @@ service Publisher { // 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. - rpc ListTopicSnapshots(ListTopicSnapshotsRequest) - returns (ListTopicSnapshotsResponse) { + rpc ListTopicSnapshots(ListTopicSnapshotsRequest) returns (ListTopicSnapshotsResponse) { option (google.api.http) = { get: "/v1/{topic=projects/*/topics/*}/snapshots" }; @@ -113,6 +118,7 @@ service Publisher { option (google.api.http) = { delete: "/v1/{topic=projects/*/topics/*}" }; + option (google.api.method_signature) = "topic"; } } @@ -127,13 +133,19 @@ message MessageStoragePolicy { // A topic resource. message Topic { - // The name of the topic. It must have the format + option (google.api.resource) = { + type: "pubsub.googleapis.com/Topic" + pattern: "projects/{project}/topics/{topic}" + pattern: "_deleted-topic_" + }; + + // 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"`. - string name = 1; + string name = 1 [(google.api.field_behavior) = REQUIRED]; // See Creating and // managing labels. @@ -193,32 +205,42 @@ message PubsubMessage { // Request for the GetTopic method. message GetTopicRequest { - // The name of the topic to get. + // Required. The name of the topic to get. // Format is `projects/{project}/topics/{topic}`. - string topic = 1; + string topic = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + } + ]; } // Request for the UpdateTopic method. message UpdateTopicRequest { - // The updated topic object. - Topic topic = 1; + // Required. The updated topic object. + Topic topic = 1 [(google.api.field_behavior) = REQUIRED]; - // Indicates which fields in the provided topic to update. Must be specified + // 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" then the new value will be determined based on the // policy configured at the project or organization level. The // `message_storage_policy` must not be set in the `topic` provided above. - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request for the Publish method. message PublishRequest { - // The messages in the request will be published on this topic. + // Required. The messages in the request will be published on this topic. // Format is `projects/{project}/topics/{topic}`. - string topic = 1; - - // The messages to publish. - repeated PubsubMessage messages = 2; + string topic = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + } + ]; + + // Required. The messages to publish. + repeated PubsubMessage messages = 2 [(google.api.field_behavior) = REQUIRED]; } // Response for the `Publish` method. @@ -231,9 +253,14 @@ message PublishResponse { // Request for the `ListTopics` method. message ListTopicsRequest { - // The name of the project in which to list topics. + // Required. The name of the project in which to list topics. // Format is `projects/{project-id}`. - string project = 1; + string project = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Maximum number of topics to return. int32 page_size = 2; @@ -256,9 +283,14 @@ message ListTopicsResponse { // Request for the `ListTopicSubscriptions` method. message ListTopicSubscriptionsRequest { - // The name of the topic that subscriptions are attached to. + // Required. The name of the topic that subscriptions are attached to. // Format is `projects/{project}/topics/{topic}`. - string topic = 1; + string topic = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + } + ]; // Maximum number of subscription names to return. int32 page_size = 2; @@ -272,7 +304,9 @@ message ListTopicSubscriptionsRequest { // Response for the `ListTopicSubscriptions` method. message ListTopicSubscriptionsResponse { // The names of the subscriptions that match the request. - repeated string subscriptions = 1; + repeated string subscriptions = 1 [(google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + }]; // If not empty, indicates that there may be more subscriptions that match // the request; this value should be passed in a new @@ -308,9 +342,14 @@ message ListTopicSnapshotsResponse { // Request for the `DeleteTopic` method. message DeleteTopicRequest { - // Name of the topic to delete. + // Required. Name of the topic to delete. // Format is `projects/{project}/topics/{topic}`. - string topic = 1; + string topic = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + } + ]; } // The service that an application uses to manipulate subscriptions and to @@ -340,6 +379,7 @@ service Subscriber { put: "/v1/{name=projects/*/subscriptions/*}" body: "*" }; + option (google.api.method_signature) = "name,topic,push_config,ack_deadline_seconds"; } // Gets the configuration details of a subscription. @@ -347,6 +387,7 @@ service Subscriber { option (google.api.http) = { get: "/v1/{subscription=projects/*/subscriptions/*}" }; + option (google.api.method_signature) = "subscription"; } // Updates an existing subscription. Note that certain properties of a @@ -359,11 +400,11 @@ service Subscriber { } // Lists matching subscriptions. - rpc ListSubscriptions(ListSubscriptionsRequest) - returns (ListSubscriptionsResponse) { + rpc ListSubscriptions(ListSubscriptionsRequest) returns (ListSubscriptionsResponse) { option (google.api.http) = { get: "/v1/{project=projects/*}/subscriptions" }; + option (google.api.method_signature) = "project"; } // Deletes an existing subscription. All messages retained in the subscription @@ -371,11 +412,11 @@ service Subscriber { // `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. - rpc DeleteSubscription(DeleteSubscriptionRequest) - returns (google.protobuf.Empty) { + rpc DeleteSubscription(DeleteSubscriptionRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{subscription=projects/*/subscriptions/*}" }; + option (google.api.method_signature) = "subscription"; } // Modifies the ack deadline for a specific message. This method is useful @@ -383,12 +424,12 @@ service Subscriber { // 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. - rpc ModifyAckDeadline(ModifyAckDeadlineRequest) - returns (google.protobuf.Empty) { + rpc ModifyAckDeadline(ModifyAckDeadlineRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline" body: "*" }; + option (google.api.method_signature) = "subscription,ack_ids,ack_deadline_seconds"; } // Acknowledges the messages associated with the `ack_ids` in the @@ -403,6 +444,7 @@ service Subscriber { post: "/v1/{subscription=projects/*/subscriptions/*}:acknowledge" body: "*" }; + option (google.api.method_signature) = "subscription,ack_ids"; } // Pulls messages from the server. The server may return `UNAVAILABLE` if @@ -413,6 +455,7 @@ service Subscriber { post: "/v1/{subscription=projects/*/subscriptions/*}:pull" body: "*" }; + option (google.api.method_signature) = "subscription,return_immediately,max_messages"; } // Establishes a stream with the server, which sends messages down to the @@ -422,8 +465,8 @@ service Subscriber { // 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. - rpc StreamingPull(stream StreamingPullRequest) - returns (stream StreamingPullResponse) {} + rpc StreamingPull(stream StreamingPullRequest) returns (stream StreamingPullResponse) { + } // Modifies the `PushConfig` for a specified subscription. // @@ -431,12 +474,12 @@ service Subscriber { // 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`. - rpc ModifyPushConfig(ModifyPushConfigRequest) - returns (google.protobuf.Empty) { + rpc ModifyPushConfig(ModifyPushConfigRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig" body: "*" }; + option (google.api.method_signature) = "subscription,push_config"; } // Gets the configuration details of a snapshot. Snapshots are used in @@ -460,6 +503,7 @@ service Subscriber { option (google.api.http) = { get: "/v1/{project=projects/*}/snapshots" }; + option (google.api.method_signature) = "project"; } // Creates a snapshot from the requested subscription. Snapshots are used in @@ -485,6 +529,7 @@ service Subscriber { put: "/v1/{name=projects/*/snapshots/*}" body: "*" }; + option (google.api.method_signature) = "name,subscription"; } // Updates an existing snapshot. Snapshots are used in @@ -514,6 +559,7 @@ service Subscriber { option (google.api.http) = { delete: "/v1/{snapshot=projects/*/snapshots/*}" }; + option (google.api.method_signature) = "snapshot"; } // Seeks an existing subscription to a point in time or to a given snapshot, @@ -534,19 +580,29 @@ service Subscriber { // A subscription resource. message Subscription { - // The name of the subscription. It must have the format + option (google.api.resource) = { + type: "pubsub.googleapis.com/Subscription" + pattern: "projects/{project}/subscriptions/{subscription}" + }; + + // 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"`. - string name = 1; + string name = 1 [(google.api.field_behavior) = REQUIRED]; - // The name of the topic from which this subscription is receiving messages. + // 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. - string topic = 2; + string topic = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + } + ]; // If push delivery is used with this subscription, this field is // used to configure it. An empty `pushConfig` signifies that the subscriber @@ -762,26 +818,36 @@ message ReceivedMessage { // Request for the GetSubscription method. message GetSubscriptionRequest { - // The name of the subscription to get. + // Required. The name of the subscription to get. // Format is `projects/{project}/subscriptions/{sub}`. - string subscription = 1; + string subscription = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; } // Request for the UpdateSubscription method. message UpdateSubscriptionRequest { - // The updated subscription object. - Subscription subscription = 1; + // Required. The updated subscription object. + Subscription subscription = 1 [(google.api.field_behavior) = REQUIRED]; - // Indicates which fields in the provided subscription to update. + // Required. Indicates which fields in the provided subscription to update. // Must be specified and non-empty. - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request for the `ListSubscriptions` method. message ListSubscriptionsRequest { - // The name of the project in which to list subscriptions. + // Required. The name of the project in which to list subscriptions. // Format is `projects/{project-id}`. - string project = 1; + string project = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Maximum number of subscriptions to return. int32 page_size = 2; @@ -805,31 +871,46 @@ message ListSubscriptionsResponse { // Request for the DeleteSubscription method. message DeleteSubscriptionRequest { - // The subscription to delete. + // Required. The subscription to delete. // Format is `projects/{project}/subscriptions/{sub}`. - string subscription = 1; + string subscription = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; } // Request for the ModifyPushConfig method. message ModifyPushConfigRequest { - // The name of the subscription. + // Required. The name of the subscription. // Format is `projects/{project}/subscriptions/{sub}`. - string subscription = 1; - - // The push configuration for future deliveries. + string subscription = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; + + // 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. - PushConfig push_config = 2; + PushConfig push_config = 2 [(google.api.field_behavior) = REQUIRED]; } // Request for the `Pull` method. message PullRequest { - // The subscription from which messages should be pulled. + // Required. The subscription from which messages should be pulled. // Format is `projects/{project}/subscriptions/{sub}`. - string subscription = 1; + string subscription = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; // 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. @@ -837,10 +918,10 @@ message PullRequest { // least one message is available, rather than returning no messages. bool return_immediately = 2; - // The maximum number of messages to return for this request. Must be a + // 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. - int32 max_messages = 3; + int32 max_messages = 3 [(google.api.field_behavior) = REQUIRED]; } // Response for the `Pull` method. @@ -854,14 +935,19 @@ message PullResponse { // Request for the ModifyAckDeadline method. message ModifyAckDeadlineRequest { - // The name of the subscription. + // Required. The name of the subscription. // Format is `projects/{project}/subscriptions/{sub}`. - string subscription = 1; + string subscription = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; - // List of acknowledgment IDs. - repeated string ack_ids = 4; + // Required. List of acknowledgment IDs. + repeated string ack_ids = 4 [(google.api.field_behavior) = REQUIRED]; - // The new ack deadline with respect to the time this request was sent to + // 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 @@ -869,29 +955,39 @@ message ModifyAckDeadlineRequest { // 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). - int32 ack_deadline_seconds = 3; + int32 ack_deadline_seconds = 3 [(google.api.field_behavior) = REQUIRED]; } // Request for the Acknowledge method. message AcknowledgeRequest { - // The subscription whose message is being acknowledged. + // Required. The subscription whose message is being acknowledged. // Format is `projects/{project}/subscriptions/{sub}`. - string subscription = 1; - - // The acknowledgment ID for the messages being acknowledged that was returned + string subscription = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; + + // 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. - repeated string ack_ids = 2; + repeated string ack_ids = 2 [(google.api.field_behavior) = REQUIRED]; } // 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. message StreamingPullRequest { - // The subscription for which to initialize the new stream. This must be + // 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}`. - string subscription = 1; + string subscription = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; // List of acknowledgement IDs for acknowledging previously received messages // (received on this stream or a different stream). If an ack ID has expired, @@ -920,11 +1016,11 @@ message StreamingPullRequest { // processing was interrupted. repeated string modify_deadline_ack_ids = 4; - // The ack deadline to use for the stream. This must be provided in the + // Required. The ack deadline to use for the stream. This must be provided in the // first request on the stream, but it can also be updated on subsequent // requests from client to server. The minimum deadline you can specify is 10 // seconds. The maximum deadline you can specify is 600 seconds (10 minutes). - int32 stream_ack_deadline_seconds = 5; + int32 stream_ack_deadline_seconds = 5 [(google.api.field_behavior) = REQUIRED]; // 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 @@ -944,15 +1040,20 @@ message StreamingPullResponse { // Request for the `CreateSnapshot` method. message CreateSnapshotRequest { - // User-provided name for this snapshot. If the name is not provided in the + // 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}`. - string name = 1; - - // The subscription whose backlog the snapshot retains. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Snapshot" + } + ]; + + // 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 @@ -961,7 +1062,12 @@ message CreateSnapshotRequest { // (b) Any messages published to the subscription's topic following the // successful completion of the CreateSnapshot request. // Format is `projects/{project}/subscriptions/{sub}`. - string subscription = 2; + string subscription = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; // See Creating and // managing labels. @@ -970,12 +1076,12 @@ message CreateSnapshotRequest { // Request for the UpdateSnapshot method. message UpdateSnapshotRequest { - // The updated snapshot object. - Snapshot snapshot = 1; + // Required. The updated snapshot object. + Snapshot snapshot = 1 [(google.api.field_behavior) = REQUIRED]; - // Indicates which fields in the provided snapshot to update. + // Required. Indicates which fields in the provided snapshot to update. // Must be specified and non-empty. - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // A snapshot resource. Snapshots are used in @@ -985,11 +1091,18 @@ message UpdateSnapshotRequest { // acknowledgment state of messages in an existing subscription to the state // captured by a snapshot. message Snapshot { + option (google.api.resource) = { + type: "pubsub.googleapis.com/Snapshot" + pattern: "projects/{project}/snapshots/{snapshot}" + }; + // The name of the snapshot. string name = 1; // The name of the topic from which this snapshot is retaining messages. - string topic = 2; + string topic = 2 [(google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + }]; // 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 @@ -1010,16 +1123,26 @@ message Snapshot { // Request for the GetSnapshot method. message GetSnapshotRequest { - // The name of the snapshot to get. + // Required. The name of the snapshot to get. // Format is `projects/{project}/snapshots/{snap}`. - string snapshot = 1; + string snapshot = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Snapshot" + } + ]; } // Request for the `ListSnapshots` method. message ListSnapshotsRequest { - // The name of the project in which to list snapshots. + // Required. The name of the project in which to list snapshots. // Format is `projects/{project-id}`. - string project = 1; + string project = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Maximum number of snapshots to return. int32 page_size = 2; @@ -1042,15 +1165,25 @@ message ListSnapshotsResponse { // Request for the `DeleteSnapshot` method. message DeleteSnapshotRequest { - // The name of the snapshot to delete. + // Required. The name of the snapshot to delete. // Format is `projects/{project}/snapshots/{snap}`. - string snapshot = 1; + string snapshot = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Snapshot" + } + ]; } // Request for the `Seek` method. message SeekRequest { - // The subscription to affect. - string subscription = 1; + // Required. The subscription to affect. + string subscription = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; oneof target { // The time to seek to. @@ -1069,9 +1202,13 @@ message SeekRequest { // 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}`. - string snapshot = 3; + string snapshot = 3 [(google.api.resource_reference) = { + type: "pubsub.googleapis.com/Snapshot" + }]; } } // Response for the `Seek` method (this response is empty). -message SeekResponse {} +message SeekResponse { + +} diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 89f33cfa59e7..a8889c0aa395 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,6 +1,20 @@ { - "updateTime": "2020-02-08T10:00:19.164940Z", + "updateTime": "2020-02-14T22:58:09.670476Z", "sources": [ + { + "git": { + "name": ".", + "remote": "https://github.com/googleapis/java-pubsub.git", + "sha": "20293d1c984f17759f5bed527c9a5b1f74d47dc4" + } + }, + { + "git": { + "name": "synthtool", + "remote": "rpc://devrel/cloud/libraries/tools/autosynth", + "sha": "dd7cd93888cbeb1d4c56a1ca814491c7813160e8" + } + }, { "generator": { "name": "artman", @@ -12,9 +26,9 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e7d8a694f4559201e6913f6610069cb08b39274e", - "internalRef": "293903652", - "log": "e7d8a694f4559201e6913f6610069cb08b39274e\nDepend on the latest gapic-generator and resource names plugin.\n\nThis fixes the very old an very annoying bug: https://github.com/googleapis/gapic-generator/pull/3087\n\nPiperOrigin-RevId: 293903652\n\n806b2854a966d55374ee26bb0cef4e30eda17b58\nfix: correct capitalization of Ruby namespaces in SecurityCenter V1p1beta1\n\nPiperOrigin-RevId: 293903613\n\n1b83c92462b14d67a7644e2980f723112472e03a\nPublish annotations and grpc service config for Logging API.\n\nPiperOrigin-RevId: 293893514\n\ne46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585\nGenerate the Bazel build file for recommendengine public api\n\nPiperOrigin-RevId: 293710856\n\n68477017c4173c98addac0373950c6aa9d7b375f\nMake `language_code` optional for UpdateIntentRequest and BatchUpdateIntentsRequest.\n\nThe comments and proto annotations describe this parameter as optional.\n\nPiperOrigin-RevId: 293703548\n\n16f823f578bca4e845a19b88bb9bc5870ea71ab2\nAdd BUILD.bazel files for managedidentities API\n\nPiperOrigin-RevId: 293698246\n\n2f53fd8178c9a9de4ad10fae8dd17a7ba36133f2\nAdd v1p1beta1 config file\n\nPiperOrigin-RevId: 293696729\n\n052b274138fce2be80f97b6dcb83ab343c7c8812\nAdd source field for user event and add field behavior annotations\n\nPiperOrigin-RevId: 293693115\n\n1e89732b2d69151b1b3418fff3d4cc0434f0dded\ndatacatalog: v1beta1 add three new RPCs to gapic v1beta1 config\n\nPiperOrigin-RevId: 293692823\n\n9c8bd09bbdc7c4160a44f1fbab279b73cd7a2337\nchange the name of AccessApproval service to AccessApprovalAdmin\n\nPiperOrigin-RevId: 293690934\n\n2e23b8fbc45f5d9e200572ca662fe1271bcd6760\nAdd ListEntryGroups method, add http bindings to support entry group tagging, and update some comments.\n\nPiperOrigin-RevId: 293666452\n\n0275e38a4ca03a13d3f47a9613aac8c8b0d3f1f2\nAdd proto_package field to managedidentities API. It is needed for APIs that still depend on artman generation.\n\nPiperOrigin-RevId: 293643323\n\n4cdfe8278cb6f308106580d70648001c9146e759\nRegenerating public protos for Data Catalog to add new Custom Type Entry feature.\n\nPiperOrigin-RevId: 293614782\n\n45d2a569ab526a1fad3720f95eefb1c7330eaada\nEnable client generation for v1 ManagedIdentities API.\n\nPiperOrigin-RevId: 293515675\n\n2c17086b77e6f3bcf04a1f65758dfb0c3da1568f\nAdd the Actions on Google common types (//google/actions/type/*).\n\nPiperOrigin-RevId: 293478245\n\n781aadb932e64a12fb6ead7cd842698d99588433\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293443396\n\ne2602608c9138c2fca24162720e67f9307c30b95\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293442964\n\nc8aef82028d06b7992278fa9294c18570dc86c3d\nAdd cc_proto_library and cc_grpc_library targets for Bigtable protos.\n\nAlso fix indentation of cc_grpc_library targets in Spanner and IAM protos.\n\nPiperOrigin-RevId: 293440538\n\ne2faab04f4cb7f9755072330866689b1943a16e9\ncloudtasks: v2 replace non-standard retry params in gapic config v2\n\nPiperOrigin-RevId: 293424055\n\ndfb4097ea628a8470292c6590a4313aee0c675bd\nerrorreporting: v1beta1 add legacy artman config for php\n\nPiperOrigin-RevId: 293423790\n\nb18aed55b45bfe5b62476292c72759e6c3e573c6\nasset: v1p1beta1 updated comment for `page_size` limit.\n\nPiperOrigin-RevId: 293421386\n\nc9ef36b7956d9859a2fc86ad35fcaa16958ab44f\nbazel: Refactor CI build scripts\n\nPiperOrigin-RevId: 293387911\n\na8ed9d921fdddc61d8467bfd7c1668f0ad90435c\nfix: set Ruby module name for OrgPolicy\n\nPiperOrigin-RevId: 293257997\n\n6c7d28509bd8315de8af0889688ee20099594269\nredis: v1beta1 add UpgradeInstance and connect_mode field to Instance\n\nPiperOrigin-RevId: 293242878\n\nae0abed4fcb4c21f5cb67a82349a049524c4ef68\nredis: v1 add connect_mode field to Instance\n\nPiperOrigin-RevId: 293241914\n\n3f7a0d29b28ee9365771da2b66edf7fa2b4e9c56\nAdds service config definition for bigqueryreservation v1beta1\n\nPiperOrigin-RevId: 293234418\n\n0c88168d5ed6fe353a8cf8cbdc6bf084f6bb66a5\naddition of BUILD & configuration for accessapproval v1\n\nPiperOrigin-RevId: 293219198\n\n39bedc2e30f4778ce81193f6ba1fec56107bcfc4\naccessapproval: v1 publish protos\n\nPiperOrigin-RevId: 293167048\n\n69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n29d40b78e3dc1579b0b209463fbcb76e5767f72a\nExpose managedidentities/v1beta1/ API for client library usage.\n\nPiperOrigin-RevId: 292979741\n\na22129a1fb6e18056d576dfb7717aef74b63734a\nExpose managedidentities/v1/ API for client library usage.\n\nPiperOrigin-RevId: 292968186\n\n" + "sha": "d9835e922ea79eed8497db270d2f9f85099a519c", + "internalRef": "295185610", + "log": "d9835e922ea79eed8497db270d2f9f85099a519c\nUpdate some minor docs changes about user event proto\n\nPiperOrigin-RevId: 295185610\n\n5f311e416e69c170243de722023b22f3df89ec1c\nfix: use correct PHP package name in gapic configuration\n\nPiperOrigin-RevId: 295161330\n\n6cdd74dcdb071694da6a6b5a206e3a320b62dd11\npubsub: v1 add client config annotations and retry config\n\nPiperOrigin-RevId: 295158776\n\n5169f46d9f792e2934d9fa25c36d0515b4fd0024\nAdded cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295026522\n\n56b55aa8818cd0a532a7d779f6ef337ba809ccbd\nFix: Resource annotations for CreateTimeSeriesRequest and ListTimeSeriesRequest should refer to valid resources. TimeSeries is not a named resource.\n\nPiperOrigin-RevId: 294931650\n\n0646bc775203077226c2c34d3e4d50cc4ec53660\nRemove unnecessary languages from bigquery-related artman configuration files.\n\nPiperOrigin-RevId: 294809380\n\n8b78aa04382e3d4147112ad6d344666771bb1909\nUpdate backend.proto for schemes and protocol\n\nPiperOrigin-RevId: 294788800\n\n80b8f8b3de2359831295e24e5238641a38d8488f\nAdds artman config files for bigquerystorage endpoints v1beta2, v1alpha2, v1\n\nPiperOrigin-RevId: 294763931\n\n2c17ac33b226194041155bb5340c3f34733f1b3a\nAdd parameter to sample generated for UpdateInstance. Related to https://github.com/googleapis/python-redis/issues/4\n\nPiperOrigin-RevId: 294734008\n\nd5e8a8953f2acdfe96fb15e85eb2f33739623957\nMove bigquery datatransfer to gapic v2.\n\nPiperOrigin-RevId: 294703703\n\nefd36705972cfcd7d00ab4c6dfa1135bafacd4ae\nfix: Add two annotations that we missed.\n\nPiperOrigin-RevId: 294664231\n\n8a36b928873ff9c05b43859b9d4ea14cd205df57\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1beta2).\n\nPiperOrigin-RevId: 294459768\n\nc7a3caa2c40c49f034a3c11079dd90eb24987047\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1).\n\nPiperOrigin-RevId: 294456889\n\n5006247aa157e59118833658084345ee59af7c09\nFix: Make deprecated fields optional\nFix: Deprecate SetLoggingServiceRequest.zone in line with the comments\nFeature: Add resource name method signatures where appropriate\n\nPiperOrigin-RevId: 294383128\n\neabba40dac05c5cbe0fca3a35761b17e372036c4\nFix: C# and PHP package/namespace capitalization for BigQuery Storage v1.\n\nPiperOrigin-RevId: 294382444\n\nf8d9a858a7a55eba8009a23aa3f5cc5fe5e88dde\nfix: artman configuration file for bigtable-admin\n\nPiperOrigin-RevId: 294322616\n\n0f29555d1cfcf96add5c0b16b089235afbe9b1a9\nAPI definition for (not-yet-launched) GCS gRPC.\n\nPiperOrigin-RevId: 294321472\n\nfcc86bee0e84dc11e9abbff8d7c3529c0626f390\nfix: Bigtable Admin v2\n\nChange LRO metadata from PartialUpdateInstanceMetadata\nto UpdateInstanceMetadata. (Otherwise, it will not build.)\n\nPiperOrigin-RevId: 294264582\n\n6d9361eae2ebb3f42d8c7ce5baf4bab966fee7c0\nrefactor: Add annotations to Bigtable Admin v2.\n\nPiperOrigin-RevId: 294243406\n\nad7616f3fc8e123451c8b3a7987bc91cea9e6913\nFix: Resource type in CreateLogMetricRequest should use logging.googleapis.com.\nFix: ListLogEntries should have a method signature for convenience of calling it.\n\nPiperOrigin-RevId: 294222165\n\n63796fcbb08712676069e20a3e455c9f7aa21026\nFix: Remove extraneous resource definition for cloudkms.googleapis.com/CryptoKey.\n\nPiperOrigin-RevId: 294176658\n\n" } }, { From 90829b822303f9bfe748430128329cb82f07322b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 2 Mar 2020 09:15:13 -0800 Subject: [PATCH 0309/2363] chore: update common templates (#99) --- java-pubsub/.kokoro/build.sh | 51 +++++++++++++++---- java-pubsub/.kokoro/continuous/java8.cfg | 5 ++ java-pubsub/.kokoro/nightly/integration.cfg | 14 +++++ java-pubsub/.kokoro/nightly/java8.cfg | 5 ++ java-pubsub/.kokoro/nightly/samples.cfg | 21 +++++--- java-pubsub/.kokoro/presubmit/java8.cfg | 5 ++ .../v1/stub/SubscriberStubSettings.java | 6 +-- .../com/google/pubsub/v1/DeletedTopic.java | 7 ++- .../google/pubsub/v1/ProjectTopicName.java | 7 ++- .../main/proto/google/pubsub/v1/pubsub.proto | 3 +- java-pubsub/renovate.json | 7 +++ java-pubsub/synth.metadata | 26 +++------- 12 files changed, 111 insertions(+), 46 deletions(-) diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index f1ae58408da5..2bac08ee0ca5 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -37,19 +37,23 @@ if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTI export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS}) fi +RETURN_CODE=0 +set +e + case ${JOB_TYPE} in test) mvn test -B -Dclirr.skip=true -Denforcer.skip=true - bash ${KOKORO_GFILE_DIR}/codecov.sh - bash .kokoro/coerce_logs.sh + RETURN_CODE=$? ;; lint) mvn \ -Penable-samples \ com.coveo:fmt-maven-plugin:check + RETURN_CODE=$? ;; javadoc) mvn javadoc:javadoc javadoc:test-javadoc + RETURN_CODE=$? ;; integration) mvn -B ${INTEGRATION_TEST_ARGS} \ @@ -59,21 +63,46 @@ integration) -Denforcer.skip=true \ -fae \ verify - bash .kokoro/coerce_logs.sh + RETURN_CODE=$? ;; samples) - mvn -B \ - -Penable-samples \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - bash .kokoro/coerce_logs.sh + if [[ -f samples/pom.xml ]] + then + pushd samples + mvn -B \ + -Penable-samples \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -fae \ + verify + RETURN_CODE=$? + popd + else + echo "no sample pom.xml found - skipping sample tests" + fi ;; clirr) mvn -B -Denforcer.skip=true clirr:check + RETURN_CODE=$? ;; *) ;; esac + +if [ "${REPORT_COVERAGE}" == "true" ] +then + bash ${KOKORO_GFILE_DIR}/codecov.sh +fi + +# fix output location of logs +bash .kokoro/coerce_logs.sh + +if [[ "${ENABLE_BUILD_COP}" == "true" ]] +then + chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop + ${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-pubsub +fi + +echo "exiting with ${RETURN_CODE}" +exit ${RETURN_CODE} diff --git a/java-pubsub/.kokoro/continuous/java8.cfg b/java-pubsub/.kokoro/continuous/java8.cfg index 3b017fc80f04..495cc7bacd63 100644 --- a/java-pubsub/.kokoro/continuous/java8.cfg +++ b/java-pubsub/.kokoro/continuous/java8.cfg @@ -5,3 +5,8 @@ env_vars: { key: "TRAMPOLINE_IMAGE" value: "gcr.io/cloud-devrel-kokoro-resources/java8" } + +env_vars: { + key: "REPORT_COVERAGE" + value: "true" +} diff --git a/java-pubsub/.kokoro/nightly/integration.cfg b/java-pubsub/.kokoro/nightly/integration.cfg index 3b017fc80f04..8bf59c02edd6 100644 --- a/java-pubsub/.kokoro/nightly/integration.cfg +++ b/java-pubsub/.kokoro/nightly/integration.cfg @@ -5,3 +5,17 @@ env_vars: { key: "TRAMPOLINE_IMAGE" value: "gcr.io/cloud-devrel-kokoro-resources/java8" } + +env_vars: { + key: "ENABLE_BUILD_COP" + value: "true" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "java_it_service_account" + } + } +} diff --git a/java-pubsub/.kokoro/nightly/java8.cfg b/java-pubsub/.kokoro/nightly/java8.cfg index 3b017fc80f04..495cc7bacd63 100644 --- a/java-pubsub/.kokoro/nightly/java8.cfg +++ b/java-pubsub/.kokoro/nightly/java8.cfg @@ -5,3 +5,8 @@ env_vars: { key: "TRAMPOLINE_IMAGE" value: "gcr.io/cloud-devrel-kokoro-resources/java8" } + +env_vars: { + key: "REPORT_COVERAGE" + value: "true" +} diff --git a/java-pubsub/.kokoro/nightly/samples.cfg b/java-pubsub/.kokoro/nightly/samples.cfg index 9a9102490d54..b4b051cd016f 100644 --- a/java-pubsub/.kokoro/nightly/samples.cfg +++ b/java-pubsub/.kokoro/nightly/samples.cfg @@ -2,23 +2,28 @@ # Configure the docker image for kokoro-trampoline. env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" } env_vars: { - key: "JOB_TYPE" - value: "samples" + key: "JOB_TYPE" + value: "samples" } env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" + key: "GCLOUD_PROJECT" + value: "gcloud-devel" } env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + +env_vars: { + key: "ENABLE_BUILD_COP" + value: "true" } before_action { diff --git a/java-pubsub/.kokoro/presubmit/java8.cfg b/java-pubsub/.kokoro/presubmit/java8.cfg index 3b017fc80f04..495cc7bacd63 100644 --- a/java-pubsub/.kokoro/presubmit/java8.cfg +++ b/java-pubsub/.kokoro/presubmit/java8.cfg @@ -5,3 +5,8 @@ env_vars: { key: "TRAMPOLINE_IMAGE" value: "gcr.io/cloud-devrel-kokoro-resources/java8" } + +env_vars: { + key: "REPORT_COVERAGE" + value: "true" +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 1bb1e63c518c..2b22761351f8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -521,9 +521,9 @@ public static class Builder extends StubSettings.Builder=0.4.0 (see commit https://github.com/googleapis/protoc-docs-plugin/commit/979f03ede6678c487337f3d7e88bae58df5207af) is incompatible with protobuf 3.9.1.\n\nPiperOrigin-RevId: 296986742\n\n1e47e676cddbbd8d93f19ba0665af15b5532417e\nFix: Restore a method signature for UpdateCluster\n\nPiperOrigin-RevId: 296901854\n\n7f910bcc4fc4704947ccfd3ceed015d16b9e00c2\nUpdate Dataproc v1beta2 client.\n\nPiperOrigin-RevId: 296451205\n\nde287524405a3dce124d301634731584fc0432d7\nFix: Reinstate method signatures that had been missed off some RPCs\nFix: Correct resource types for two fields\n\nPiperOrigin-RevId: 296435091\n\ne5bc9566ae057fb4c92f8b7e047f1c8958235b53\nDeprecate the endpoint_uris field, as it is unused.\n\nPiperOrigin-RevId: 296357191\n\n8c12e2b4dca94e12bff9f538bdac29524ff7ef7a\nUpdate Dataproc v1 client.\n\nPiperOrigin-RevId: 296336662\n\n17567c4a1ef0a9b50faa87024d66f8acbb561089\nRemoving erroneous comment, a la https://github.com/googleapis/java-speech/pull/103\n\nPiperOrigin-RevId: 296332968\n\n3eaaaf8626ce5b0c0bc7eee05e143beffa373b01\nAdd BUILD.bazel for v1 secretmanager.googleapis.com\n\nPiperOrigin-RevId: 296274723\n\ne76149c3d992337f85eeb45643106aacae7ede82\nMove securitycenter v1 to use generate from annotations.\n\nPiperOrigin-RevId: 296266862\n\n203740c78ac69ee07c3bf6be7408048751f618f8\nAdd StackdriverLoggingConfig field to Cloud Tasks v2 API.\n\nPiperOrigin-RevId: 296256388\n\ne4117d5e9ed8bbca28da4a60a94947ca51cb2083\nCreate a Bazel BUILD file for the google.actions.type export.\n\nPiperOrigin-RevId: 296212567\n\na9639a0a9854fd6e1be08bba1ac3897f4f16cb2f\nAdd secretmanager.googleapis.com v1 protos\n\nPiperOrigin-RevId: 295983266\n\nce4f4c21d9dd2bfab18873a80449b9d9851efde8\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295861722\n\ncb61d6c2d070b589980c779b68ffca617f789116\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295855449\n\nab2685d8d3a0e191dc8aef83df36773c07cb3d06\nfix: Dataproc v1 - AutoscalingPolicy annotation\n\nThis adds the second resource name pattern to the\nAutoscalingPolicy resource.\n\nCommitter: @lukesneeringer\nPiperOrigin-RevId: 295738415\n\n8a1020bf6828f6e3c84c3014f2c51cb62b739140\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295286165\n\n5cfa105206e77670369e4b2225597386aba32985\nAdd service control related proto build rule.\n\nPiperOrigin-RevId: 295262088\n\nee4dddf805072004ab19ac94df2ce669046eec26\nmonitoring v3: Add prefix \"https://cloud.google.com/\" into the link for global access\ncl 295167522, get ride of synth.py hacks\n\nPiperOrigin-RevId: 295238095\n\n" } }, { From f320c9ee9be195f9c23d0ce681eda0645c45672b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 3 Mar 2020 17:37:31 +0100 Subject: [PATCH 0310/2363] deps: update core dependencies (#100) --- java-pubsub/pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0f6c4b941812..29c23ef89c3c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -63,11 +63,11 @@ UTF-8 github google-cloud-pubsub-parent - 1.92.5 + 1.93.0 1.8.1 1.17.0 - 1.53.1 - 1.27.1 + 1.54.0 + 1.27.2 3.11.4 4.13 4.2 From ebe6e72ca61c99b5f6e49d06364b9b6c3a2e80a9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 3 Mar 2020 23:44:30 +0100 Subject: [PATCH 0311/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.93.1 (#102) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | patch | `1.93.0` -> `1.93.1` | --- ### Release Notes
    googleapis/java-core ### [`v1.93.1`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1931httpswwwgithubcomgoogleapisjava-corecomparev1930v1931-2020-02-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.93.0...v1.93.1)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 29c23ef89c3c..5d4a3e1be3e7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -63,7 +63,7 @@ UTF-8 github google-cloud-pubsub-parent - 1.93.0 + 1.93.1 1.8.1 1.17.0 1.54.0 From d7aad000f45aa729989b7faab9b8a9fc6c72269e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 9 Mar 2020 11:23:46 -0400 Subject: [PATCH 0312/2363] chore: release 1.103.1 (#98) * updated CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * updated pom.xml [ci skip] Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 24 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 ++--- 8 files changed, 44 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 6ecfc27b66a0..dc6e347d67ff 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +### [1.103.1](https://www.github.com/googleapis/java-pubsub/compare/v1.103.0...v1.103.1) (2020-03-03) + + +### Bug Fixes + +* add a default value for max outstanding request bytes flow control setting ([#96](https://www.github.com/googleapis/java-pubsub/issues/96)) ([4a6046c](https://www.github.com/googleapis/java-pubsub/commit/4a6046c2b03ad1d7e08d6e6dc0d1817cbffc5283)) +* remove deprecated tag that was added prematurely ([#97](https://www.github.com/googleapis/java-pubsub/issues/97)) ([fbb87ef](https://www.github.com/googleapis/java-pubsub/commit/fbb87ef0d493fc9e375e860b52dd6a9b99e3cf00)) + + +### Dependencies + +* update core dependencies ([#100](https://www.github.com/googleapis/java-pubsub/issues/100)) ([8323b31](https://www.github.com/googleapis/java-pubsub/commit/8323b31b9349065f1798120b6ffdaff3372f8552)) +* update dependency com.google.cloud:google-cloud-core to v1.93.1 ([#102](https://www.github.com/googleapis/java-pubsub/issues/102)) ([33b12df](https://www.github.com/googleapis/java-pubsub/commit/33b12df2e8c54ac404aeabd97ef71404611f3e3b)) +* update dependency com.google.http-client:google-http-client-bom to v1.34.2 ([19fde3a](https://www.github.com/googleapis/java-pubsub/commit/19fde3ab100c4910c4d998fbf0e5380ad7732f90)) +* update dependency com.google.protobuf:protobuf-java to v3.11.4 ([e49a861](https://www.github.com/googleapis/java-pubsub/commit/e49a8615147779d9dab07661e7586395ffa26d1f)) +* update dependency io.grpc:grpc-bom to v1.27.1 ([013b0c3](https://www.github.com/googleapis/java-pubsub/commit/013b0c3e4ee09926efc88f43dde6d6265fb41171)) +* update dependency org.easymock:easymock to v4 ([#39](https://www.github.com/googleapis/java-pubsub/issues/39)) ([f803bee](https://www.github.com/googleapis/java-pubsub/commit/f803bee1292fb6e1961dabb25dca17c7c2bd5a04)) +* update opencensus.version to v0.25.0 ([#85](https://www.github.com/googleapis/java-pubsub/issues/85)) ([aeca5d4](https://www.github.com/googleapis/java-pubsub/commit/aeca5d413ae46dc9153c4db0135e594a426a7375)) + + +### Documentation + +* **regen:** switch to proto annotations ([#90](https://www.github.com/googleapis/java-pubsub/issues/90)) ([63c147a](https://www.github.com/googleapis/java-pubsub/commit/63c147a9250c7b07cb9c8cc7b086a68e0631a37d)) + ## [1.103.0](https://www.github.com/googleapis/java-pubsub/compare/v1.102.1...v1.103.0) (2020-02-20) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 567467d9e313..59b71910264a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -37,16 +37,16 @@ If you are using Maven without a BOM, add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.103.0 + 1.103.1 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.103.0' +compile 'com.google.cloud:google-cloud-pubsub:1.103.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.103.1" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e92bca39e136..166b656a73c2 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.103.1-SNAPSHOT + 1.103.1 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.1-SNAPSHOT + 1.85.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.1-SNAPSHOT + 1.85.1 com.google.cloud google-cloud-pubsub - 1.103.1-SNAPSHOT + 1.103.1
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 635dc029a947..4a4665b99a97 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.103.1-SNAPSHOT + 1.103.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.103.1-SNAPSHOT + 1.103.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d965eac50660..413d1bf6b0c5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.1-SNAPSHOT + 1.85.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.103.1-SNAPSHOT + 1.103.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5d4a3e1be3e7..dbef5a7f7f3e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.103.1-SNAPSHOT + 1.103.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.1-SNAPSHOT + 1.85.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.1-SNAPSHOT + 1.85.1 com.google.cloud google-cloud-pubsub - 1.103.1-SNAPSHOT + 1.103.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f3544543cd24..f64d20a95f92 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.1-SNAPSHOT + 1.85.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.103.1-SNAPSHOT + 1.103.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a3e3c2e3fba1..69ee70174b96 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.85.0:1.85.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.85.0:1.85.1-SNAPSHOT -google-cloud-pubsub:1.103.0:1.103.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.85.1:1.85.1 +grpc-google-cloud-pubsub-v1:1.85.1:1.85.1 +google-cloud-pubsub:1.103.1:1.103.1 \ No newline at end of file From a7422b30faedbade685824c5f568384717eeec6f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 9 Mar 2020 09:25:20 -0700 Subject: [PATCH 0313/2363] [CHANGE ME] Re-generated to pick up changes in the API or client library generator. (#101) --- .../main/java/com/google/pubsub/v1/DeletedTopic.java | 7 +------ .../java/com/google/pubsub/v1/ProjectTopicName.java | 7 +------ java-pubsub/synth.metadata | 12 ++++++------ 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java index a0b52bae5afa..b32fcbfc04ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java @@ -19,13 +19,8 @@ import com.google.common.collect.ImmutableMap; import java.util.Map; -/** - * AUTO-GENERATED DOCUMENTATION AND CLASS - * - * @deprecated This resource name class will be removed in the next major version. - */ +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") -@Deprecated public class DeletedTopic extends TopicName { private static final String FIXED_VALUE = "_deleted-topic_"; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java index fb6494ee0b6b..9549f7c6587f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java @@ -23,13 +23,8 @@ import java.util.List; import java.util.Map; -/** - * AUTO-GENERATED DOCUMENTATION AND CLASS - * - * @deprecated This resource name class will be removed in the next major version. - */ +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") -@Deprecated public class ProjectTopicName extends TopicName { private static final PathTemplate PATH_TEMPLATE = diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 5a78620adf7a..4c204715aa43 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,20 +1,20 @@ { - "updateTime": "2020-02-27T19:30:38.568868Z", + "updateTime": "2020-03-02T23:00:50.055052Z", "sources": [ { "generator": { "name": "artman", - "version": "0.46.0", - "dockerImage": "googleapis/artman@sha256:6248a21fba8f0d618c3b032669cec2618e684b66922bb70391fe08c41b05f6ee" + "version": "0.47.0", + "dockerImage": "googleapis/artman@sha256:b3e50d6b8de03920b9f065bbc3d210e2ca93a043446f1fa16cdf567393c09678" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1a2b05cc3541a5f7714529c665aecc3ea042c646", - "internalRef": "297570622", - "log": "1a2b05cc3541a5f7714529c665aecc3ea042c646\nAdding .yaml and .json config files.\n\nPiperOrigin-RevId: 297570622\n\ndfe1cf7be44dee31d78f78e485d8c95430981d6e\nPublish `QueryOptions` proto.\n\nIntroduced a `query_options` input in `ExecuteSqlRequest`.\n\nPiperOrigin-RevId: 297497710\n\ndafc905f71e5d46f500b41ed715aad585be062c3\npubsub: revert pull init_rpc_timeout & max_rpc_timeout back to 25 seconds and reset multiplier to 1.0\n\nPiperOrigin-RevId: 297486523\n\nf077632ba7fee588922d9e8717ee272039be126d\nfirestore: add update_transform\n\nPiperOrigin-RevId: 297405063\n\n0aba1900ffef672ec5f0da677cf590ee5686e13b\ncluster: use square brace for cross-reference\n\nPiperOrigin-RevId: 297204568\n\n5dac2da18f6325cbaed54603c43f0667ecd50247\nRestore retry params in gapic config because securitycenter has non-standard default retry params.\nRestore a few retry codes for some idempotent methods.\n\nPiperOrigin-RevId: 297196720\n\n1eb61455530252bba8b2c8d4bc9832960e5a56f6\npubsub: v1 replace IAM HTTP rules\n\nPiperOrigin-RevId: 297188590\n\n80b2d25f8d43d9d47024ff06ead7f7166548a7ba\nDialogflow weekly v2/v2beta1 library update:\n - updates to mega agent api\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297187629\n\n0b1876b35e98f560f9c9ca9797955f020238a092\nUse an older version of protoc-docs-plugin that is compatible with the specified gapic-generator and protobuf versions.\n\nprotoc-docs-plugin >=0.4.0 (see commit https://github.com/googleapis/protoc-docs-plugin/commit/979f03ede6678c487337f3d7e88bae58df5207af) is incompatible with protobuf 3.9.1.\n\nPiperOrigin-RevId: 296986742\n\n1e47e676cddbbd8d93f19ba0665af15b5532417e\nFix: Restore a method signature for UpdateCluster\n\nPiperOrigin-RevId: 296901854\n\n7f910bcc4fc4704947ccfd3ceed015d16b9e00c2\nUpdate Dataproc v1beta2 client.\n\nPiperOrigin-RevId: 296451205\n\nde287524405a3dce124d301634731584fc0432d7\nFix: Reinstate method signatures that had been missed off some RPCs\nFix: Correct resource types for two fields\n\nPiperOrigin-RevId: 296435091\n\ne5bc9566ae057fb4c92f8b7e047f1c8958235b53\nDeprecate the endpoint_uris field, as it is unused.\n\nPiperOrigin-RevId: 296357191\n\n8c12e2b4dca94e12bff9f538bdac29524ff7ef7a\nUpdate Dataproc v1 client.\n\nPiperOrigin-RevId: 296336662\n\n17567c4a1ef0a9b50faa87024d66f8acbb561089\nRemoving erroneous comment, a la https://github.com/googleapis/java-speech/pull/103\n\nPiperOrigin-RevId: 296332968\n\n3eaaaf8626ce5b0c0bc7eee05e143beffa373b01\nAdd BUILD.bazel for v1 secretmanager.googleapis.com\n\nPiperOrigin-RevId: 296274723\n\ne76149c3d992337f85eeb45643106aacae7ede82\nMove securitycenter v1 to use generate from annotations.\n\nPiperOrigin-RevId: 296266862\n\n203740c78ac69ee07c3bf6be7408048751f618f8\nAdd StackdriverLoggingConfig field to Cloud Tasks v2 API.\n\nPiperOrigin-RevId: 296256388\n\ne4117d5e9ed8bbca28da4a60a94947ca51cb2083\nCreate a Bazel BUILD file for the google.actions.type export.\n\nPiperOrigin-RevId: 296212567\n\na9639a0a9854fd6e1be08bba1ac3897f4f16cb2f\nAdd secretmanager.googleapis.com v1 protos\n\nPiperOrigin-RevId: 295983266\n\nce4f4c21d9dd2bfab18873a80449b9d9851efde8\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295861722\n\ncb61d6c2d070b589980c779b68ffca617f789116\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295855449\n\nab2685d8d3a0e191dc8aef83df36773c07cb3d06\nfix: Dataproc v1 - AutoscalingPolicy annotation\n\nThis adds the second resource name pattern to the\nAutoscalingPolicy resource.\n\nCommitter: @lukesneeringer\nPiperOrigin-RevId: 295738415\n\n8a1020bf6828f6e3c84c3014f2c51cb62b739140\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295286165\n\n5cfa105206e77670369e4b2225597386aba32985\nAdd service control related proto build rule.\n\nPiperOrigin-RevId: 295262088\n\nee4dddf805072004ab19ac94df2ce669046eec26\nmonitoring v3: Add prefix \"https://cloud.google.com/\" into the link for global access\ncl 295167522, get ride of synth.py hacks\n\nPiperOrigin-RevId: 295238095\n\n" + "sha": "244ab2b83a82076a1fa7be63b7e0671af73f5c02", + "internalRef": "298455048", + "log": "244ab2b83a82076a1fa7be63b7e0671af73f5c02\nAdds service config definition for bigqueryreservation v1\n\nPiperOrigin-RevId: 298455048\n\n83c6f84035ee0f80eaa44d8b688a010461cc4080\nUpdate google/api/auth.proto to make AuthProvider to have JwtLocation\n\nPiperOrigin-RevId: 297918498\n\ne9e90a787703ec5d388902e2cb796aaed3a385b4\nDialogflow weekly v2/v2beta1 library update:\n - adding get validation result\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297671458\n\n" } }, { From 9b3560b49c89eaa84763429d67fcf148f03f1753 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2020 10:35:50 -0400 Subject: [PATCH 0314/2363] chore: release 1.103.2-SNAPSHOT (#103) * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 166b656a73c2..34c71afea816 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.103.1 + 1.103.2-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.1 + 1.85.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.1 + 1.85.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.103.1 + 1.103.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4a4665b99a97..aa9fe12e3e1b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.103.1 + 1.103.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.103.1 + 1.103.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 413d1bf6b0c5..ea132fef3d83 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.1 + 1.85.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.103.1 + 1.103.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index dbef5a7f7f3e..aa9acb08c57d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.103.1 + 1.103.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.1 + 1.85.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.1 + 1.85.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.103.1 + 1.103.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f64d20a95f92..ec3696952077 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.1 + 1.85.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.103.1 + 1.103.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 69ee70174b96..0b31de2c3f55 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.85.1:1.85.1 -grpc-google-cloud-pubsub-v1:1.85.1:1.85.1 -google-cloud-pubsub:1.103.1:1.103.1 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.85.1:1.85.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.85.1:1.85.2-SNAPSHOT +google-cloud-pubsub:1.103.1:1.103.2-SNAPSHOT \ No newline at end of file From 30ff75d4f4d8748de1e3a33a463e04436d873e7a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 16 Mar 2020 16:11:17 +0100 Subject: [PATCH 0315/2363] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.2.0 (#109) This PR contains the following updates: | Package | Update | Change | |---|---|---| | org.apache.maven.plugins:maven-javadoc-plugin | minor | `3.1.1` -> `3.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index aa9acb08c57d..8a60469d0e80 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -266,7 +266,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.1.1 + 3.2.0 html From ee727153880c9718921c51c418905b18b019bb12 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 16 Mar 2020 18:02:07 -0700 Subject: [PATCH 0316/2363] fix: Re-generated to pick up changes in the API or client library generator. (#104) --- .../pubsub/v1/SubscriptionAdminClient.java | 20 +- .../google/pubsub/v1/AcknowledgeRequest.java | 65 +-- .../v1/AcknowledgeRequestOrBuilder.java | 20 +- .../pubsub/v1/CreateSnapshotRequest.java | 56 +-- .../v1/CreateSnapshotRequestOrBuilder.java | 16 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 42 +- .../ListTopicSnapshotsRequestOrBuilder.java | 12 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 32 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 8 +- .../com/google/pubsub/v1/PubsubProto.java | 437 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 79 ++-- .../pubsub/v1/PullRequestOrBuilder.java | 19 +- .../pubsub/v1/StreamingPullRequest.java | 44 +- .../v1/StreamingPullRequestOrBuilder.java | 12 +- .../com/google/pubsub/v1/Subscription.java | 49 +- .../pubsub/v1/SubscriptionOrBuilder.java | 14 +- .../google/pubsub/v1/UpdateTopicRequest.java | 48 +- .../v1/UpdateTopicRequestOrBuilder.java | 12 +- .../main/proto/google/pubsub/v1/pubsub.proto | 164 +++---- java-pubsub/synth.metadata | 12 +- 20 files changed, 612 insertions(+), 549 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 20d06d3d9df9..b5c7b51c746a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1071,10 +1071,12 @@ public final UnaryCallable deleteSubscriptionC * * @param subscription Required. The subscription from which messages should be pulled. Format is * `projects/{project}/subscriptions/{sub}`. - * @param returnImmediately 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. + * @param returnImmediately 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. * @param maxMessages 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1108,10 +1110,12 @@ public final UnaryCallable deleteSubscriptionC * * @param subscription Required. The subscription from which messages should be pulled. Format is * `projects/{project}/subscriptions/{sub}`. - * @param returnImmediately 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. + * @param returnImmediately 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. * @param maxMessages 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index abfe740a5999..e29a1fcca146 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -185,8 +185,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -   * 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.
    +   * 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.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -200,8 +201,9 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -   * 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.
    +   * 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.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -215,8 +217,9 @@ public int getAckIdsCount() { * * *
    -   * 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.
    +   * 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.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -231,8 +234,9 @@ public java.lang.String getAckIds(int index) { * * *
    -   * 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.
    +   * 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.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -729,8 +733,9 @@ private void ensureAckIdsIsMutable() { * * *
    -     * 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.
    +     * 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.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -744,8 +749,9 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * 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.
    +     * 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.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -759,8 +765,9 @@ public int getAckIdsCount() { * * *
    -     * 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.
    +     * 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.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -775,8 +782,9 @@ public java.lang.String getAckIds(int index) { * * *
    -     * 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.
    +     * 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.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -791,8 +799,9 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * 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.
    +     * 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.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -814,8 +823,9 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -     * 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.
    +     * 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.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -836,8 +846,9 @@ public Builder addAckIds(java.lang.String value) { * * *
    -     * 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.
    +     * 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.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -855,8 +866,9 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -     * 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.
    +     * 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.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -873,8 +885,9 @@ public Builder clearAckIds() { * * *
    -     * 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.
    +     * 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.
          * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 29455101280c..4951b0bb1184 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -58,8 +58,9 @@ public interface AcknowledgeRequestOrBuilder * * *
    -   * 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.
    +   * 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.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -71,8 +72,9 @@ public interface AcknowledgeRequestOrBuilder * * *
    -   * 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.
    +   * 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.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -84,8 +86,9 @@ public interface AcknowledgeRequestOrBuilder * * *
    -   * 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.
    +   * 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.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -98,8 +101,9 @@ public interface AcknowledgeRequestOrBuilder * * *
    -   * 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.
    +   * 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.
        * 
    * * repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index ae660b8f1e68..9c6e4bd87c9d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -150,10 +150,10 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
    -   * 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 <a
    +   * 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 <a
        * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
        * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    @@ -179,10 +179,10 @@ public java.lang.String getName() { * * *
    -   * 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 <a
    +   * 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 <a
        * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
        * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    @@ -750,10 +750,10 @@ public Builder mergeFrom( * * *
    -     * 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 <a
    +     * 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 <a
          * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
          * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    @@ -779,10 +779,10 @@ public java.lang.String getName() { * * *
    -     * 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 <a
    +     * 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 <a
          * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
          * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    @@ -808,10 +808,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * 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 <a
    +     * 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 <a
          * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
          * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    @@ -836,10 +836,10 @@ public Builder setName(java.lang.String value) { * * *
    -     * 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 <a
    +     * 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 <a
          * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
          * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    @@ -860,10 +860,10 @@ public Builder clearName() { * * *
    -     * 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 <a
    +     * 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 <a
          * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
          * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
          * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index ab50a6f1bfc8..b8e0ef2f99a6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -27,10 +27,10 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * 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 <a
    +   * 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 <a
        * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
        * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    @@ -46,10 +46,10 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * 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 <a
    +   * 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 <a
        * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
        * name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 353db10713bb..5e59b993cc17 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -130,11 +130,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The name of the topic that snapshots are attached to.
    +   * Required. The name of the topic that snapshots are attached to.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -153,11 +155,13 @@ public java.lang.String getTopic() { * * *
    -   * The name of the topic that snapshots are attached to.
    +   * Required. The name of the topic that snapshots are attached to.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -593,11 +597,13 @@ public Builder mergeFrom( * * *
    -     * The name of the topic that snapshots are attached to.
    +     * Required. The name of the topic that snapshots are attached to.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -616,11 +622,13 @@ public java.lang.String getTopic() { * * *
    -     * The name of the topic that snapshots are attached to.
    +     * Required. The name of the topic that snapshots are attached to.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -639,11 +647,13 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * The name of the topic that snapshots are attached to.
    +     * Required. The name of the topic that snapshots are attached to.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -661,11 +671,13 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * The name of the topic that snapshots are attached to.
    +     * Required. The name of the topic that snapshots are attached to.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -679,11 +691,13 @@ public Builder clearTopic() { * * *
    -     * The name of the topic that snapshots are attached to.
    +     * Required. The name of the topic that snapshots are attached to.
          * Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 484ea34c2392..3e338270597d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface ListTopicSnapshotsRequestOrBuilder * * *
    -   * The name of the topic that snapshots are attached to.
    +   * Required. The name of the topic that snapshots are attached to.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -40,11 +42,13 @@ public interface ListTopicSnapshotsRequestOrBuilder * * *
    -   * The name of the topic that snapshots are attached to.
    +   * Required. The name of the topic that snapshots are attached to.
        * Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 1; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index c2a92e2154fe..76bbfe4b6713 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -251,10 +251,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -   * 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
    +   * 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.
    @@ -930,10 +930,10 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) {
          *
          *
          * 
    -     * 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
    +     * 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.
    @@ -951,10 +951,10 @@ public int getAckDeadlineSeconds() {
          *
          *
          * 
    -     * 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
    +     * 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.
    @@ -976,10 +976,10 @@ public Builder setAckDeadlineSeconds(int value) {
          *
          *
          * 
    -     * 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
    +     * 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.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java
    index eacaf0964ed5..663ca36d93de 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java
    @@ -109,10 +109,10 @@ public interface ModifyAckDeadlineRequestOrBuilder
        *
        *
        * 
    -   * 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
    +   * 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.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    index 9320aa828f55..44f66abf3177 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    @@ -225,13 +225,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
       static {
         java.lang.String[] descriptorData = {
           "\n\035google/pubsub/v1/pubsub.proto\022\020google."
    -          + "pubsub.v1\032\027google/api/client.proto\032\037goog"
    -          + "le/api/field_behavior.proto\032\031google/api/"
    -          + "resource.proto\032\036google/protobuf/duration"
    -          + ".proto\032\033google/protobuf/empty.proto\032 goo"
    -          + "gle/protobuf/field_mask.proto\032\037google/pr"
    -          + "otobuf/timestamp.proto\032\034google/api/annot"
    -          + "ations.proto\";\n\024MessageStoragePolicy\022#\n\033"
    +          + "pubsub.v1\032\034google/api/annotations.proto\032"
    +          + "\027google/api/client.proto\032\037google/api/fie"
    +          + "ld_behavior.proto\032\031google/api/resource.p"
    +          + "roto\032\036google/protobuf/duration.proto\032\033go"
    +          + "ogle/protobuf/empty.proto\032 google/protob"
    +          + "uf/field_mask.proto\032\037google/protobuf/tim"
    +          + "estamp.proto\";\n\024MessageStoragePolicy\022#\n\033"
               + "allowed_persistence_regions\030\001 \003(\t\"\262\002\n\005To"
               + "pic\022\021\n\004name\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#"
               + ".google.pubsub.v1.Topic.LabelsEntry\022F\n\026m"
    @@ -267,221 +267,223 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               + "n\030\003 \001(\t\"y\n\036ListTopicSubscriptionsRespons"
               + "e\022>\n\rsubscriptions\030\001 \003(\tB\'\372A$\n\"pubsub.go"
               + "ogleapis.com/Subscription\022\027\n\017next_page_t"
    -          + "oken\030\002 \001(\t\"Q\n\031ListTopicSnapshotsRequest\022"
    -          + "\r\n\005topic\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag"
    -          + "e_token\030\003 \001(\t\"H\n\032ListTopicSnapshotsRespo"
    -          + "nse\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_toke"
    -          + "n\030\002 \001(\t\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001"
    -          + " \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topi"
    -          + "c\"\351\004\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n"
    -          + "\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis."
    -          + "com/Topic\0221\n\013push_config\030\004 \001(\0132\034.google."
    -          + "pubsub.v1.PushConfig\022\034\n\024ack_deadline_sec"
    -          + "onds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001("
    -          + "\010\022=\n\032message_retention_duration\030\010 \001(\0132\031."
    -          + "google.protobuf.Duration\022:\n\006labels\030\t \003(\013"
    -          + "2*.google.pubsub.v1.Subscription.LabelsE"
    -          + "ntry\022\037\n\027enable_message_ordering\030\n \001(\010\022=\n"
    -          + "\021expiration_policy\030\013 \001(\0132\".google.pubsub"
    -          + ".v1.ExpirationPolicy\022>\n\022dead_letter_poli"
    -          + "cy\030\r \001(\0132\".google.pubsub.v1.DeadLetterPo"
    -          + "licy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
    -          + "e\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub.googleapis.com/"
    -          + "Subscription\022/projects/{project}/subscri"
    -          + "ptions/{subscription}\"L\n\020DeadLetterPolic"
    -          + "y\022\031\n\021dead_letter_topic\030\001 \001(\t\022\035\n\025max_deli"
    -          + "very_attempts\030\002 \001(\005\":\n\020ExpirationPolicy\022"
    -          + "&\n\003ttl\030\001 \001(\0132\031.google.protobuf.Duration\""
    -          + "\255\002\n\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n"
    -          + "\nattributes\030\002 \003(\0132,.google.pubsub.v1.Pus"
    -          + "hConfig.AttributesEntry\022<\n\noidc_token\030\003 "
    -          + "\001(\0132&.google.pubsub.v1.PushConfig.OidcTo"
    -          + "kenH\000\032<\n\tOidcToken\022\035\n\025service_account_em"
    -          + "ail\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017Attribute"
    -          + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027"
    -          + "\n\025authentication_method\"m\n\017ReceivedMessa"
    -          + "ge\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.go"
    -          + "ogle.pubsub.v1.PubsubMessage\022\030\n\020delivery"
    -          + "_attempt\030\003 \001(\005\"Z\n\026GetSubscriptionRequest"
    -          + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g"
    -          + "oogleapis.com/Subscription\"\214\001\n\031UpdateSub"
    -          + "scriptionRequest\0229\n\014subscription\030\001 \001(\0132\036"
    -          + ".google.pubsub.v1.SubscriptionB\003\340A\002\0224\n\013u"
    -          + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field"
    -          + "MaskB\003\340A\002\"\207\001\n\030ListSubscriptionsRequest\022D"
    -          + "\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcema"
    -          + "nager.googleapis.com/Project\022\021\n\tpage_siz"
    -          + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubsc"
    -          + "riptionsResponse\0225\n\rsubscriptions\030\001 \003(\0132"
    -          + "\036.google.pubsub.v1.Subscription\022\027\n\017next_"
    -          + "page_token\030\002 \001(\t\"]\n\031DeleteSubscriptionRe"
    -          + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub"
    -          + "sub.googleapis.com/Subscription\"\223\001\n\027Modi"
    -          + "fyPushConfigRequest\022@\n\014subscription\030\001 \001("
    -          + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri"
    -          + "ption\0226\n\013push_config\030\002 \001(\0132\034.google.pubs"
    -          + "ub.v1.PushConfigB\003\340A\002\"\206\001\n\013PullRequest\022@\n"
    +          + "oken\030\002 \001(\t\"v\n\031ListTopicSnapshotsRequest\022"
    +          + "2\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapi"
    +          + "s.com/Topic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t"
    +          + "oken\030\003 \001(\t\"H\n\032ListTopicSnapshotsResponse"
    +          + "\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token\030\002"
    +          + " \001(\t\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001 \001("
    +          + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"\351"
    +          + "\004\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005to"
    +          + "pic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com"
    +          + "/Topic\0221\n\013push_config\030\004 \001(\0132\034.google.pub"
    +          + "sub.v1.PushConfig\022\034\n\024ack_deadline_second"
    +          + "s\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(\010\022="
    +          + "\n\032message_retention_duration\030\010 \001(\0132\031.goo"
    +          + "gle.protobuf.Duration\022:\n\006labels\030\t \003(\0132*."
    +          + "google.pubsub.v1.Subscription.LabelsEntr"
    +          + "y\022\037\n\027enable_message_ordering\030\n \001(\010\022=\n\021ex"
    +          + "piration_policy\030\013 \001(\0132\".google.pubsub.v1"
    +          + ".ExpirationPolicy\022>\n\022dead_letter_policy\030"
    +          + "\r \001(\0132\".google.pubsub.v1.DeadLetterPolic"
    +          + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
    +          + " \001(\t:\0028\001:X\352AU\n\"pubsub.googleapis.com/Sub"
    +          + "scription\022/projects/{project}/subscripti"
    +          + "ons/{subscription}\"L\n\020DeadLetterPolicy\022\031"
    +          + "\n\021dead_letter_topic\030\001 \001(\t\022\035\n\025max_deliver"
    +          + "y_attempts\030\002 \001(\005\":\n\020ExpirationPolicy\022&\n\003"
    +          + "ttl\030\001 \001(\0132\031.google.protobuf.Duration\"\255\002\n"
    +          + "\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\nat"
    +          + "tributes\030\002 \003(\0132,.google.pubsub.v1.PushCo"
    +          + "nfig.AttributesEntry\022<\n\noidc_token\030\003 \001(\013"
    +          + "2&.google.pubsub.v1.PushConfig.OidcToken"
    +          + "H\000\032<\n\tOidcToken\022\035\n\025service_account_email"
    +          + "\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017AttributesEn"
    +          + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025a"
    +          + "uthentication_method\"m\n\017ReceivedMessage\022"
    +          + "\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.googl"
    +          + "e.pubsub.v1.PubsubMessage\022\030\n\020delivery_at"
    +          + "tempt\030\003 \001(\005\"Z\n\026GetSubscriptionRequest\022@\n"
               + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog"
    -          + "leapis.com/Subscription\022\032\n\022return_immedi"
    -          + "ately\030\002 \001(\010\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"L"
    -          + "\n\014PullResponse\022<\n\021received_messages\030\001 \003("
    -          + "\0132!.google.pubsub.v1.ReceivedMessage\"\225\001\n"
    -          + "\030ModifyAckDeadlineRequest\022@\n\014subscriptio"
    -          + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S"
    -          + "ubscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack"
    -          + "_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowle"
    -          + "dgeRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$"
    -          + "\n\"pubsub.googleapis.com/Subscription\022\024\n\007"
    -          + "ack_ids\030\002 \003(\tB\003\340A\002\"\350\001\n\024StreamingPullRequ"
    -          + "est\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsu"
    -          + "b.googleapis.com/Subscription\022\017\n\007ack_ids"
    -          + "\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030\003 \003(\005\022"
    -          + "\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022(\n\033stre"
    -          + "am_ack_deadline_seconds\030\005 \001(\005B\003\340A\002\022\021\n\tcl"
    -          + "ient_id\030\006 \001(\t\"U\n\025StreamingPullResponse\022<"
    -          + "\n\021received_messages\030\001 \003(\0132!.google.pubsu"
    -          + "b.v1.ReceivedMessage\"\203\002\n\025CreateSnapshotR"
    -          + "equest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.goo"
    -          + "gleapis.com/Snapshot\022@\n\014subscription\030\002 \001"
    -          + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr"
    -          + "iption\022C\n\006labels\030\003 \003(\01323.google.pubsub.v"
    -          + "1.CreateSnapshotRequest.LabelsEntry\032-\n\013L"
    -          + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
    -          + "8\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010snapshot"
    -          + "\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003\340A\002\022"
    -          + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F"
    -          + "ieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t"
    -          + "\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googleapis."
    -          + "com/Topic\022/\n\013expire_time\030\003 \001(\0132\032.google."
    -          + "protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.goo"
    -          + "gle.pubsub.v1.Snapshot.LabelsEntry\032-\n\013La"
    -          + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028"
    -          + "\001:L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'"
    -          + "projects/{project}/snapshots/{snapshot}\""
    -          + "N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB"
    -          + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\""
    -          + "\203\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001("
    -          + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap"
    -          + "is.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag"
    -          + "e_token\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-"
    -          + "\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sna"
    -          + "pshot\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\025Delete"
    -          + "SnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A"
    -          + " \n\036pubsub.googleapis.com/Snapshot\"\276\001\n\013Se"
    -          + "ekRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n"
    -          + "\"pubsub.googleapis.com/Subscription\022*\n\004t"
    -          + "ime\030\002 \001(\0132\032.google.protobuf.TimestampH\000\022"
    -          + "7\n\010snapshot\030\003 \001(\tB#\372A \n\036pubsub.googleapi"
    -          + "s.com/SnapshotH\000B\010\n\006target\"\016\n\014SeekRespon"
    -          + "se2\353\t\n\tPublisher\022q\n\013CreateTopic\022\027.google"
    -          + ".pubsub.v1.Topic\032\027.google.pubsub.v1.Topi"
    -          + "c\"0\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*"
    -          + "}:\001*\332A\004name\022}\n\013UpdateTopic\022$.google.pubs"
    -          + "ub.v1.UpdateTopicRequest\032\027.google.pubsub"
    -          + ".v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name=proje"
    -          + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google."
    -          + "pubsub.v1.PublishRequest\032!.google.pubsub"
    -          + ".v1.PublishResponse\"C\202\323\344\223\002,\"\'/v1/{topic="
    -          + "projects/*/topics/*}:publish:\001*\332A\016topic,"
    -          + "messages\022w\n\010GetTopic\022!.google.pubsub.v1."
    -          + "GetTopicRequest\032\027.google.pubsub.v1.Topic"
    -          + "\"/\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*"
    -          + "}\332A\005topic\022\212\001\n\nListTopics\022#.google.pubsub"
    -          + ".v1.ListTopicsRequest\032$.google.pubsub.v1"
    -          + ".ListTopicsResponse\"1\202\323\344\223\002!\022\037/v1/{projec"
    -          + "t=projects/*}/topics\332A\007project\022\272\001\n\026ListT"
    -          + "opicSubscriptions\022/.google.pubsub.v1.Lis"
    -          + "tTopicSubscriptionsRequest\0320.google.pubs"
    -          + "ub.v1.ListTopicSubscriptionsResponse\"=\202\323"
    -          + "\344\223\002/\022-/v1/{topic=projects/*/topics/*}/su"
    -          + "bscriptions\332A\005topic\022\242\001\n\022ListTopicSnapsho"
    -          + "ts\022+.google.pubsub.v1.ListTopicSnapshots"
    -          + "Request\032,.google.pubsub.v1.ListTopicSnap"
    -          + "shotsResponse\"1\202\323\344\223\002+\022)/v1/{topic=projec"
    -          + "ts/*/topics/*}/snapshots\022|\n\013DeleteTopic\022"
    -          + "$.google.pubsub.v1.DeleteTopicRequest\032\026."
    -          + "google.protobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topi"
    -          + "c=projects/*/topics/*}\332A\005topic\032p\312A\025pubsu"
    -          + "b.googleapis.com\322AUhttps://www.googleapi"
    -          + "s.com/auth/cloud-platform,https://www.go"
    -          + "ogleapis.com/auth/pubsub2\367\024\n\nSubscriber\022"
    -          + "\264\001\n\022CreateSubscription\022\036.google.pubsub.v"
    -          + "1.Subscription\032\036.google.pubsub.v1.Subscr"
    -          + "iption\"^\202\323\344\223\002*\032%/v1/{name=projects/*/sub"
    -          + "scriptions/*}:\001*\332A+name,topic,push_confi"
    -          + "g,ack_deadline_seconds\022\241\001\n\017GetSubscripti"
    -          + "on\022(.google.pubsub.v1.GetSubscriptionReq"
    -          + "uest\032\036.google.pubsub.v1.Subscription\"D\202\323"
    -          + "\344\223\002/\022-/v1/{subscription=projects/*/subsc"
    -          + "riptions/*}\332A\014subscription\022\240\001\n\022UpdateSub"
    -          + "scription\022+.google.pubsub.v1.UpdateSubsc"
    -          + "riptionRequest\032\036.google.pubsub.v1.Subscr"
    -          + "iption\"=\202\323\344\223\002722/v1/{subscription.name=p"
    -          + "rojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSu"
    -          + "bscriptions\022*.google.pubsub.v1.ListSubsc"
    -          + "riptionsRequest\032+.google.pubsub.v1.ListS"
    -          + "ubscriptionsResponse\"8\202\323\344\223\002(\022&/v1/{proje"
    -          + "ct=projects/*}/subscriptions\332A\007project\022\237"
    -          + "\001\n\022DeleteSubscription\022+.google.pubsub.v1"
    -          + ".DeleteSubscriptionRequest\032\026.google.prot"
    -          + "obuf.Empty\"D\202\323\344\223\002/*-/v1/{subscription=pr"
    -          + "ojects/*/subscriptions/*}\332A\014subscription"
    -          + "\022\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v"
    -          + "1.ModifyAckDeadlineRequest\032\026.google.prot"
    -          + "obuf.Empty\"v\202\323\344\223\002D\"?/v1/{subscription=pr"
    -          + "ojects/*/subscriptions/*}:modifyAckDeadl"
    -          + "ine:\001*\332A)subscription,ack_ids,ack_deadli"
    -          + "ne_seconds\022\250\001\n\013Acknowledge\022$.google.pubs"
    -          + "ub.v1.AcknowledgeRequest\032\026.google.protob"
    -          + "uf.Empty\"[\202\323\344\223\002>\"9/v1/{subscription=proj"
    -          + "ects/*/subscriptions/*}:acknowledge:\001*\332A"
    -          + "\024subscription,ack_ids\022\263\001\n\004Pull\022\035.google."
    -          + "pubsub.v1.PullRequest\032\036.google.pubsub.v1"
    -          + ".PullResponse\"l\202\323\344\223\0027\"2/v1/{subscription"
    -          + "=projects/*/subscriptions/*}:pull:\001*\332A,s"
    -          + "ubscription,return_immediately,max_messa"
    -          + "ges\022f\n\rStreamingPull\022&.google.pubsub.v1."
    -          + "StreamingPullRequest\032\'.google.pubsub.v1."
    -          + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu"
    -          + "shConfig\022).google.pubsub.v1.ModifyPushCo"
    -          + "nfigRequest\032\026.google.protobuf.Empty\"d\202\323\344"
    -          + "\223\002C\">/v1/{subscription=projects/*/subscr"
    -          + "iptions/*}:modifyPushConfig:\001*\332A\030subscri"
    -          + "ption,push_config\022~\n\013GetSnapshot\022$.googl"
    -          + "e.pubsub.v1.GetSnapshotRequest\032\032.google."
    -          + "pubsub.v1.Snapshot\"-\202\323\344\223\002\'\022%/v1/{snapsho"
    -          + "t=projects/*/snapshots/*}\022\226\001\n\rListSnapsh"
    -          + "ots\022&.google.pubsub.v1.ListSnapshotsRequ"
    -          + "est\032\'.google.pubsub.v1.ListSnapshotsResp"
    -          + "onse\"4\202\323\344\223\002$\022\"/v1/{project=projects/*}/s"
    -          + "napshots\332A\007project\022\227\001\n\016CreateSnapshot\022\'."
    -          + "google.pubsub.v1.CreateSnapshotRequest\032\032"
    -          + ".google.pubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/"
    -          + "{name=projects/*/snapshots/*}:\001*\332A\021name,"
    -          + "subscription\022\214\001\n\016UpdateSnapshot\022\'.google"
    -          + ".pubsub.v1.UpdateSnapshotRequest\032\032.googl"
    -          + "e.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snaps"
    -          + "hot.name=projects/*/snapshots/*}:\001*\022\213\001\n\016"
    -          + "DeleteSnapshot\022\'.google.pubsub.v1.Delete"
    -          + "SnapshotRequest\032\026.google.protobuf.Empty\""
    -          + "8\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsh"
    -          + "ots/*}\332A\010snapshot\022\204\001\n\004Seek\022\035.google.pubs"
    -          + "ub.v1.SeekRequest\032\036.google.pubsub.v1.See"
    -          + "kResponse\"=\202\323\344\223\0027\"2/v1/{subscription=pro"
    -          + "jects/*/subscriptions/*}:seek:\001*\032p\312A\025pub"
    -          + "sub.googleapis.com\322AUhttps://www.googlea"
    -          + "pis.com/auth/cloud-platform,https://www."
    -          + "googleapis.com/auth/pubsubB\256\001\n\024com.googl"
    -          + "e.pubsub.v1B\013PubsubProtoP\001Z6google.golan"
    -          + "g.org/genproto/googleapis/pubsub/v1;pubs"
    -          + "ub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\"
    -          + "Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub:"
    -          + ":V1b\006proto3"
    +          + "leapis.com/Subscription\"\214\001\n\031UpdateSubscr"
    +          + "iptionRequest\0229\n\014subscription\030\001 \001(\0132\036.go"
    +          + "ogle.pubsub.v1.SubscriptionB\003\340A\002\0224\n\013upda"
    +          + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas"
    +          + "kB\003\340A\002\"\207\001\n\030ListSubscriptionsRequest\022D\n\007p"
    +          + "roject\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanag"
    +          + "er.googleapis.com/Project\022\021\n\tpage_size\030\002"
    +          + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubscrip"
    +          + "tionsResponse\0225\n\rsubscriptions\030\001 \003(\0132\036.g"
    +          + "oogle.pubsub.v1.Subscription\022\027\n\017next_pag"
    +          + "e_token\030\002 \001(\t\"]\n\031DeleteSubscriptionReque"
    +          + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub"
    +          + ".googleapis.com/Subscription\"\223\001\n\027ModifyP"
    +          + "ushConfigRequest\022@\n\014subscription\030\001 \001(\tB*"
    +          + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti"
    +          + "on\0226\n\013push_config\030\002 \001(\0132\034.google.pubsub."
    +          + "v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014su"
    +          + "bscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googlea"
    +          + "pis.com/Subscription\022!\n\022return_immediate"
    +          + "ly\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340"
    +          + "A\002\"L\n\014PullResponse\022<\n\021received_messages\030"
    +          + "\001 \003(\0132!.google.pubsub.v1.ReceivedMessage"
    +          + "\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subscri"
    +          + "ption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.c"
    +          + "om/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n"
    +          + "\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Ackn"
    +          + "owledgeRequest\022@\n\014subscription\030\001 \001(\tB*\340A"
    +          + "\002\372A$\n\"pubsub.googleapis.com/Subscription"
    +          + "\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\350\001\n\024StreamingPull"
    +          + "Request\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"p"
    +          + "ubsub.googleapis.com/Subscription\022\017\n\007ack"
    +          + "_ids\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030\003 "
    +          + "\003(\005\022\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022(\n\033"
    +          + "stream_ack_deadline_seconds\030\005 \001(\005B\003\340A\002\022\021"
    +          + "\n\tclient_id\030\006 \001(\t\"U\n\025StreamingPullRespon"
    +          + "se\022<\n\021received_messages\030\001 \003(\0132!.google.p"
    +          + "ubsub.v1.ReceivedMessage\"\203\002\n\025CreateSnaps"
    +          + "hotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub"
    +          + ".googleapis.com/Snapshot\022@\n\014subscription"
    +          + "\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su"
    +          + "bscription\022C\n\006labels\030\003 \003(\01323.google.pubs"
    +          + "ub.v1.CreateSnapshotRequest.LabelsEntry\032"
    +          + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
    +          + "(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010snap"
    +          + "shot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003"
    +          + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob"
    +          + "uf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001"
    +          + " \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googlea"
    +          + "pis.com/Topic\022/\n\013expire_time\030\003 \001(\0132\032.goo"
    +          + "gle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&"
    +          + ".google.pubsub.v1.Snapshot.LabelsEntry\032-"
    +          + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001("
    +          + "\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Snapsh"
    +          + "ot\022\'projects/{project}/snapshots/{snapsh"
    +          + "ot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 "
    +          + "\001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snaps"
    +          + "hot\"\203\001\n\024ListSnapshotsRequest\022D\n\007project\030"
    +          + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog"
    +          + "leapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n"
    +          + "\npage_token\030\003 \001(\t\"_\n\025ListSnapshotsRespon"
    +          + "se\022-\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1"
    +          + ".Snapshot\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\025De"
    +          + "leteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340"
    +          + "A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\276\001"
    +          + "\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002"
    +          + "\372A$\n\"pubsub.googleapis.com/Subscription\022"
    +          + "*\n\004time\030\002 \001(\0132\032.google.protobuf.Timestam"
    +          + "pH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubsub.googl"
    +          + "eapis.com/SnapshotH\000B\010\n\006target\"\016\n\014SeekRe"
    +          + "sponse2\363\t\n\tPublisher\022q\n\013CreateTopic\022\027.go"
    +          + "ogle.pubsub.v1.Topic\032\027.google.pubsub.v1."
    +          + "Topic\"0\202\323\344\223\002#\032\036/v1/{name=projects/*/topi"
    +          + "cs/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$.google."
    +          + "pubsub.v1.UpdateTopicRequest\032\027.google.pu"
    +          + "bsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name=p"
    +          + "rojects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .goo"
    +          + "gle.pubsub.v1.PublishRequest\032!.google.pu"
    +          + "bsub.v1.PublishResponse\"C\202\323\344\223\002,\"\'/v1/{to"
    +          + "pic=projects/*/topics/*}:publish:\001*\332A\016to"
    +          + "pic,messages\022w\n\010GetTopic\022!.google.pubsub"
    +          + ".v1.GetTopicRequest\032\027.google.pubsub.v1.T"
    +          + "opic\"/\202\323\344\223\002!\022\037/v1/{topic=projects/*/topi"
    +          + "cs/*}\332A\005topic\022\212\001\n\nListTopics\022#.google.pu"
    +          + "bsub.v1.ListTopicsRequest\032$.google.pubsu"
    +          + "b.v1.ListTopicsResponse\"1\202\323\344\223\002!\022\037/v1/{pr"
    +          + "oject=projects/*}/topics\332A\007project\022\272\001\n\026L"
    +          + "istTopicSubscriptions\022/.google.pubsub.v1"
    +          + ".ListTopicSubscriptionsRequest\0320.google."
    +          + "pubsub.v1.ListTopicSubscriptionsResponse"
    +          + "\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*"
    +          + "}/subscriptions\332A\005topic\022\252\001\n\022ListTopicSna"
    +          + "pshots\022+.google.pubsub.v1.ListTopicSnaps"
    +          + "hotsRequest\032,.google.pubsub.v1.ListTopic"
    +          + "SnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{topic=pr"
    +          + "ojects/*/topics/*}/snapshots\332A\005topic\022|\n\013"
    +          + "DeleteTopic\022$.google.pubsub.v1.DeleteTop"
    +          + "icRequest\032\026.google.protobuf.Empty\"/\202\323\344\223\002"
    +          + "!*\037/v1/{topic=projects/*/topics/*}\332A\005top"
    +          + "ic\032p\312A\025pubsub.googleapis.com\322AUhttps://w"
    +          + "ww.googleapis.com/auth/cloud-platform,ht"
    +          + "tps://www.googleapis.com/auth/pubsub2\203\025\n"
    +          + "\nSubscriber\022\264\001\n\022CreateSubscription\022\036.goo"
    +          + "gle.pubsub.v1.Subscription\032\036.google.pubs"
    +          + "ub.v1.Subscription\"^\202\323\344\223\002*\032%/v1/{name=pr"
    +          + "ojects/*/subscriptions/*}:\001*\332A+name,topi"
    +          + "c,push_config,ack_deadline_seconds\022\241\001\n\017G"
    +          + "etSubscription\022(.google.pubsub.v1.GetSub"
    +          + "scriptionRequest\032\036.google.pubsub.v1.Subs"
    +          + "cription\"D\202\323\344\223\002/\022-/v1/{subscription=proj"
    +          + "ects/*/subscriptions/*}\332A\014subscription\022\240"
    +          + "\001\n\022UpdateSubscription\022+.google.pubsub.v1"
    +          + ".UpdateSubscriptionRequest\032\036.google.pubs"
    +          + "ub.v1.Subscription\"=\202\323\344\223\002722/v1/{subscri"
    +          + "ption.name=projects/*/subscriptions/*}:\001"
    +          + "*\022\246\001\n\021ListSubscriptions\022*.google.pubsub."
    +          + "v1.ListSubscriptionsRequest\032+.google.pub"
    +          + "sub.v1.ListSubscriptionsResponse\"8\202\323\344\223\002("
    +          + "\022&/v1/{project=projects/*}/subscriptions"
    +          + "\332A\007project\022\237\001\n\022DeleteSubscription\022+.goog"
    +          + "le.pubsub.v1.DeleteSubscriptionRequest\032\026"
    +          + ".google.protobuf.Empty\"D\202\323\344\223\002/*-/v1/{sub"
    +          + "scription=projects/*/subscriptions/*}\332A\014"
    +          + "subscription\022\317\001\n\021ModifyAckDeadline\022*.goo"
    +          + "gle.pubsub.v1.ModifyAckDeadlineRequest\032\026"
    +          + ".google.protobuf.Empty\"v\202\323\344\223\002D\"?/v1/{sub"
    +          + "scription=projects/*/subscriptions/*}:mo"
    +          + "difyAckDeadline:\001*\332A)subscription,ack_id"
    +          + "s,ack_deadline_seconds\022\250\001\n\013Acknowledge\022$"
    +          + ".google.pubsub.v1.AcknowledgeRequest\032\026.g"
    +          + "oogle.protobuf.Empty\"[\202\323\344\223\002>\"9/v1/{subsc"
    +          + "ription=projects/*/subscriptions/*}:ackn"
    +          + "owledge:\001*\332A\024subscription,ack_ids\022\263\001\n\004Pu"
    +          + "ll\022\035.google.pubsub.v1.PullRequest\032\036.goog"
    +          + "le.pubsub.v1.PullResponse\"l\202\323\344\223\0027\"2/v1/{"
    +          + "subscription=projects/*/subscriptions/*}"
    +          + ":pull:\001*\332A,subscription,return_immediate"
    +          + "ly,max_messages\022f\n\rStreamingPull\022&.googl"
    +          + "e.pubsub.v1.StreamingPullRequest\032\'.googl"
    +          + "e.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022"
    +          + "\273\001\n\020ModifyPushConfig\022).google.pubsub.v1."
    +          + "ModifyPushConfigRequest\032\026.google.protobu"
    +          + "f.Empty\"d\202\323\344\223\002C\">/v1/{subscription=proje"
    +          + "cts/*/subscriptions/*}:modifyPushConfig:"
    +          + "\001*\332A\030subscription,push_config\022\211\001\n\013GetSna"
    +          + "pshot\022$.google.pubsub.v1.GetSnapshotRequ"
    +          + "est\032\032.google.pubsub.v1.Snapshot\"8\202\323\344\223\002\'\022"
    +          + "%/v1/{snapshot=projects/*/snapshots/*}\332A"
    +          + "\010snapshot\022\226\001\n\rListSnapshots\022&.google.pub"
    +          + "sub.v1.ListSnapshotsRequest\032\'.google.pub"
    +          + "sub.v1.ListSnapshotsResponse\"4\202\323\344\223\002$\022\"/v"
    +          + "1/{project=projects/*}/snapshots\332A\007proje"
    +          + "ct\022\227\001\n\016CreateSnapshot\022\'.google.pubsub.v1"
    +          + ".CreateSnapshotRequest\032\032.google.pubsub.v"
    +          + "1.Snapshot\"@\202\323\344\223\002&\032!/v1/{name=projects/*"
    +          + "/snapshots/*}:\001*\332A\021name,subscription\022\214\001\n"
    +          + "\016UpdateSnapshot\022\'.google.pubsub.v1.Updat"
    +          + "eSnapshotRequest\032\032.google.pubsub.v1.Snap"
    +          + "shot\"5\202\323\344\223\002/2*/v1/{snapshot.name=project"
    +          + "s/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'"
    +          + ".google.pubsub.v1.DeleteSnapshotRequest\032"
    +          + "\026.google.protobuf.Empty\"8\202\323\344\223\002\'*%/v1/{sn"
    +          + "apshot=projects/*/snapshots/*}\332A\010snapsho"
    +          + "t\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReques"
    +          + "t\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223\002"
    +          + "7\"2/v1/{subscription=projects/*/subscrip"
    +          + "tions/*}:seek:\001*\032p\312A\025pubsub.googleapis.c"
    +          + "om\322AUhttps://www.googleapis.com/auth/clo"
    +          + "ud-platform,https://www.googleapis.com/a"
    +          + "uth/pubsubB\256\001\n\024com.google.pubsub.v1B\013Pub"
    +          + "subProtoP\001Z6google.golang.org/genproto/g"
    +          + "oogleapis/pubsub/v1;pubsub\370\001\001\252\002\026Google.C"
    +          + "loud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352"
    +          + "\002\031Google::Cloud::PubSub::V1b\006proto3"
         };
         descriptor =
             com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
                 descriptorData,
                 new com.google.protobuf.Descriptors.FileDescriptor[] {
    +              com.google.api.AnnotationsProto.getDescriptor(),
                   com.google.api.ClientProto.getDescriptor(),
                   com.google.api.FieldBehaviorProto.getDescriptor(),
                   com.google.api.ResourceProto.getDescriptor(),
    @@ -489,7 +491,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   com.google.protobuf.EmptyProto.getDescriptor(),
                   com.google.protobuf.FieldMaskProto.getDescriptor(),
                   com.google.protobuf.TimestampProto.getDescriptor(),
    -              com.google.api.AnnotationsProto.getDescriptor(),
                 });
         internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor =
             getDescriptor().getMessageTypes().get(0);
    @@ -888,6 +889,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
         registry.add(com.google.api.ResourceProto.resourceReference);
         com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
             descriptor, registry);
    +    com.google.api.AnnotationsProto.getDescriptor();
         com.google.api.ClientProto.getDescriptor();
         com.google.api.FieldBehaviorProto.getDescriptor();
         com.google.api.ResourceProto.getDescriptor();
    @@ -895,7 +897,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
         com.google.protobuf.EmptyProto.getDescriptor();
         com.google.protobuf.FieldMaskProto.getDescriptor();
         com.google.protobuf.TimestampProto.getDescriptor();
    -    com.google.api.AnnotationsProto.getDescriptor();
       }
     
       // @@protoc_insertion_point(outer_class_scope)
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    index 2c6f5e56dbe3..401fdeb0f4c9 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    @@ -178,16 +178,21 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
        *
        *
        * 
    -   * 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.
    +   * 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.
        * 
    * - * bool return_immediately = 2; + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * * @return The returnImmediately. */ + @java.lang.Deprecated public boolean getReturnImmediately() { return returnImmediately_; } @@ -198,8 +203,8 @@ public boolean getReturnImmediately() { * * *
    -   * 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
    +   * 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.
        * 
    * @@ -680,16 +685,22 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * *
    -     * 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.
    +     * 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.
          * 
    * - * bool return_immediately = 2; + * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * * @return The returnImmediately. */ + @java.lang.Deprecated public boolean getReturnImmediately() { return returnImmediately_; } @@ -697,17 +708,23 @@ public boolean getReturnImmediately() { * * *
    -     * 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.
    +     * 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.
          * 
    * - * bool return_immediately = 2; + * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * * @param value The returnImmediately to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setReturnImmediately(boolean value) { returnImmediately_ = value; @@ -718,16 +735,22 @@ public Builder setReturnImmediately(boolean value) { * * *
    -     * 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.
    +     * 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.
          * 
    * - * bool return_immediately = 2; + * + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearReturnImmediately() { returnImmediately_ = false; @@ -740,8 +763,8 @@ public Builder clearReturnImmediately() { * * *
    -     * 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
    +     * 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.
          * 
    * @@ -756,8 +779,8 @@ public int getMaxMessages() { * * *
    -     * 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
    +     * 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.
          * 
    * @@ -776,8 +799,8 @@ public Builder setMaxMessages(int value) { * * *
    -     * 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
    +     * 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.
          * 
    * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index a908386fb770..eb88907a97ca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -58,24 +58,29 @@ public interface PullRequestOrBuilder * * *
    -   * 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.
    +   * 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.
        * 
    * - * bool return_immediately = 2; + * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * * @return The returnImmediately. */ + @java.lang.Deprecated boolean getReturnImmediately(); /** * * *
    -   * 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
    +   * 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.
        * 
    * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index cf748b70cc95..6d30c9dafbec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -188,8 +188,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * 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
    +   * 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}`.
        * 
    @@ -215,8 +215,8 @@ public java.lang.String getSubscription() { * * *
    -   * 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
    +   * 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}`.
        * 
    @@ -477,8 +477,8 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { * * *
    -   * Required. The ack deadline to use for the stream. This must be provided in the
    -   * first request on the stream, but it can also be updated on subsequent
    +   * Required. The ack deadline to use for the stream. This must be provided in
    +   * the first request on the stream, but it can also be updated on subsequent
        * requests from client to server. The minimum deadline you can specify is 10
        * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
        * 
    @@ -1016,8 +1016,8 @@ public Builder mergeFrom( * * *
    -     * 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
    +     * 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}`.
          * 
    @@ -1043,8 +1043,8 @@ public java.lang.String getSubscription() { * * *
    -     * 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
    +     * 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}`.
          * 
    @@ -1070,8 +1070,8 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -     * 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
    +     * 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}`.
          * 
    @@ -1096,8 +1096,8 @@ public Builder setSubscription(java.lang.String value) { * * *
    -     * 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
    +     * 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}`.
          * 
    @@ -1118,8 +1118,8 @@ public Builder clearSubscription() { * * *
    -     * 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
    +     * 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}`.
          * 
    @@ -1752,8 +1752,8 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value * * *
    -     * Required. The ack deadline to use for the stream. This must be provided in the
    -     * first request on the stream, but it can also be updated on subsequent
    +     * Required. The ack deadline to use for the stream. This must be provided in
    +     * the first request on the stream, but it can also be updated on subsequent
          * requests from client to server. The minimum deadline you can specify is 10
          * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
          * 
    @@ -1769,8 +1769,8 @@ public int getStreamAckDeadlineSeconds() { * * *
    -     * Required. The ack deadline to use for the stream. This must be provided in the
    -     * first request on the stream, but it can also be updated on subsequent
    +     * Required. The ack deadline to use for the stream. This must be provided in
    +     * the first request on the stream, but it can also be updated on subsequent
          * requests from client to server. The minimum deadline you can specify is 10
          * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
          * 
    @@ -1790,8 +1790,8 @@ public Builder setStreamAckDeadlineSeconds(int value) { * * *
    -     * Required. The ack deadline to use for the stream. This must be provided in the
    -     * first request on the stream, but it can also be updated on subsequent
    +     * Required. The ack deadline to use for the stream. This must be provided in
    +     * the first request on the stream, but it can also be updated on subsequent
          * requests from client to server. The minimum deadline you can specify is 10
          * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
          * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index daed9c34ddf7..db56d7d25655 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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
    +   * 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}`.
        * 
    @@ -44,8 +44,8 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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
    +   * 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}`.
        * 
    @@ -264,8 +264,8 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Required. The ack deadline to use for the stream. This must be provided in the
    -   * first request on the stream, but it can also be updated on subsequent
    +   * Required. The ack deadline to use for the stream. This must be provided in
    +   * the first request on the stream, but it can also be updated on subsequent
        * requests from client to server. The minimum deadline you can specify is 10
        * seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index af7af8ecdbb6..760cf6234fc7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -284,10 +284,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -   * 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.
    +   * 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.
        * 
    * * @@ -311,10 +310,9 @@ public java.lang.String getTopic() { * * *
    -   * 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.
    +   * 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.
        * 
    * * @@ -1420,10 +1418,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * 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.
    +     * 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.
          * 
    * * @@ -1447,10 +1444,9 @@ public java.lang.String getTopic() { * * *
    -     * 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.
    +     * 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.
          * 
    * * @@ -1474,10 +1470,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * 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.
    +     * 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.
          * 
    * * @@ -1500,10 +1495,9 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * 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.
    +     * 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.
          * 
    * * @@ -1522,10 +1516,9 @@ public Builder clearTopic() { * * *
    -     * 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.
    +     * 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.
          * 
    * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 840cd7f6a931..acc4e75727d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -62,10 +62,9 @@ public interface SubscriptionOrBuilder * * *
    -   * 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.
    +   * 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.
        * 
    * * @@ -79,10 +78,9 @@ public interface SubscriptionOrBuilder * * *
    -   * 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.
    +   * 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.
        * 
    * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index d4f95780f964..5309c9bd7d97 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -180,8 +180,8 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * * *
    -   * Required. Indicates which fields in the provided topic to update. Must be specified
    -   * and non-empty. Note that if `update_mask` contains
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -199,8 +199,8 @@ public boolean hasUpdateMask() {
        *
        *
        * 
    -   * Required. Indicates which fields in the provided topic to update. Must be specified
    -   * and non-empty. Note that if `update_mask` contains
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -218,8 +218,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
        *
        *
        * 
    -   * Required. Indicates which fields in the provided topic to update. Must be specified
    -   * and non-empty. Note that if `update_mask` contains
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -774,8 +774,8 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() {
          *
          *
          * 
    -     * Required. Indicates which fields in the provided topic to update. Must be specified
    -     * and non-empty. Note that if `update_mask` contains
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -793,8 +793,8 @@ public boolean hasUpdateMask() {
          *
          *
          * 
    -     * Required. Indicates which fields in the provided topic to update. Must be specified
    -     * and non-empty. Note that if `update_mask` contains
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -818,8 +818,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
          *
          *
          * 
    -     * Required. Indicates which fields in the provided topic to update. Must be specified
    -     * and non-empty. Note that if `update_mask` contains
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -845,8 +845,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
          *
          *
          * 
    -     * Required. Indicates which fields in the provided topic to update. Must be specified
    -     * and non-empty. Note that if `update_mask` contains
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -869,8 +869,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
          *
          *
          * 
    -     * Required. Indicates which fields in the provided topic to update. Must be specified
    -     * and non-empty. Note that if `update_mask` contains
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -898,8 +898,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
          *
          *
          * 
    -     * Required. Indicates which fields in the provided topic to update. Must be specified
    -     * and non-empty. Note that if `update_mask` contains
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -923,8 +923,8 @@ public Builder clearUpdateMask() {
          *
          *
          * 
    -     * Required. Indicates which fields in the provided topic to update. Must be specified
    -     * and non-empty. Note that if `update_mask` contains
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -942,8 +942,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
          *
          *
          * 
    -     * Required. Indicates which fields in the provided topic to update. Must be specified
    -     * and non-empty. Note that if `update_mask` contains
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -965,8 +965,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
          *
          *
          * 
    -     * Required. Indicates which fields in the provided topic to update. Must be specified
    -     * and non-empty. Note that if `update_mask` contains
    +     * 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" then the new value will be determined based on the
          * policy configured at the project or organization level. The
          * `message_storage_policy` must not be set in the `topic` provided above.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java
    index 6cf4e911a6eb..257f0fdb8780 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java
    @@ -62,8 +62,8 @@ public interface UpdateTopicRequestOrBuilder
        *
        *
        * 
    -   * Required. Indicates which fields in the provided topic to update. Must be specified
    -   * and non-empty. Note that if `update_mask` contains
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -79,8 +79,8 @@ public interface UpdateTopicRequestOrBuilder
        *
        *
        * 
    -   * Required. Indicates which fields in the provided topic to update. Must be specified
    -   * and non-empty. Note that if `update_mask` contains
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
    @@ -96,8 +96,8 @@ public interface UpdateTopicRequestOrBuilder
        *
        *
        * 
    -   * Required. Indicates which fields in the provided topic to update. Must be specified
    -   * and non-empty. Note that if `update_mask` contains
    +   * 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" then the new value will be determined based on the
        * policy configured at the project or organization level. The
        * `message_storage_policy` must not be set in the `topic` provided above.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
    index adaf8c6fc3bd..55cfa531ff32 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
    @@ -16,6 +16,7 @@ syntax = "proto3";
     
     package google.pubsub.v1;
     
    +import "google/api/annotations.proto";
     import "google/api/client.proto";
     import "google/api/field_behavior.proto";
     import "google/api/resource.proto";
    @@ -23,7 +24,6 @@ import "google/protobuf/duration.proto";
     import "google/protobuf/empty.proto";
     import "google/protobuf/field_mask.proto";
     import "google/protobuf/timestamp.proto";
    -import "google/api/annotations.proto";
     
     option cc_enable_arenas = true;
     option csharp_namespace = "Google.Cloud.PubSub.V1";
    @@ -89,7 +89,8 @@ service Publisher {
       }
     
       // Lists the names of the subscriptions on this topic.
    -  rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) returns (ListTopicSubscriptionsResponse) {
    +  rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest)
    +      returns (ListTopicSubscriptionsResponse) {
         option (google.api.http) = {
           get: "/v1/{topic=projects/*/topics/*}/subscriptions"
         };
    @@ -102,10 +103,12 @@ service Publisher {
       // 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.
    -  rpc ListTopicSnapshots(ListTopicSnapshotsRequest) returns (ListTopicSnapshotsResponse) {
    +  rpc ListTopicSnapshots(ListTopicSnapshotsRequest)
    +      returns (ListTopicSnapshotsResponse) {
         option (google.api.http) = {
           get: "/v1/{topic=projects/*/topics/*}/snapshots"
         };
    +    option (google.api.method_signature) = "topic";
       }
     
       // Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
    @@ -208,9 +211,7 @@ message GetTopicRequest {
       // Format is `projects/{project}/topics/{topic}`.
       string topic = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = {
    -      type: "pubsub.googleapis.com/Topic"
    -    }
    +    (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }
       ];
     }
     
    @@ -219,12 +220,13 @@ message UpdateTopicRequest {
       // Required. The updated topic object.
       Topic topic = 1 [(google.api.field_behavior) = REQUIRED];
     
    -  // Required. Indicates which fields in the provided topic to update. Must be specified
    -  // and non-empty. Note that if `update_mask` contains
    +  // 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" then the new value will be determined based on the
       // policy configured at the project or organization level. The
       // `message_storage_policy` must not be set in the `topic` provided above.
    -  google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
    +  google.protobuf.FieldMask update_mask = 2
    +      [(google.api.field_behavior) = REQUIRED];
     }
     
     // Request for the Publish method.
    @@ -233,9 +235,7 @@ message PublishRequest {
       // Format is `projects/{project}/topics/{topic}`.
       string topic = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = {
    -      type: "pubsub.googleapis.com/Topic"
    -    }
    +    (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }
       ];
     
       // Required. The messages to publish.
    @@ -286,9 +286,7 @@ message ListTopicSubscriptionsRequest {
       // Format is `projects/{project}/topics/{topic}`.
       string topic = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = {
    -      type: "pubsub.googleapis.com/Topic"
    -    }
    +    (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }
       ];
     
       // Maximum number of subscription names to return.
    @@ -304,8 +302,8 @@ message ListTopicSubscriptionsRequest {
     message ListTopicSubscriptionsResponse {
       // The names of the subscriptions that match the request.
       repeated string subscriptions = 1 [(google.api.resource_reference) = {
    -                                       type: "pubsub.googleapis.com/Subscription"
    -                                     }];
    +    type: "pubsub.googleapis.com/Subscription"
    +  }];
     
       // If not empty, indicates that there may be more subscriptions that match
       // the request; this value should be passed in a new
    @@ -315,9 +313,12 @@ message ListTopicSubscriptionsResponse {
     
     // Request for the `ListTopicSnapshots` method.
     message ListTopicSnapshotsRequest {
    -  // The name of the topic that snapshots are attached to.
    +  // Required. The name of the topic that snapshots are attached to.
       // Format is `projects/{project}/topics/{topic}`.
    -  string topic = 1;
    +  string topic = 1 [
    +    (google.api.field_behavior) = REQUIRED,
    +    (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }
    +  ];
     
       // Maximum number of snapshot names to return.
       int32 page_size = 2;
    @@ -345,9 +346,7 @@ message DeleteTopicRequest {
       // Format is `projects/{project}/topics/{topic}`.
       string topic = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = {
    -      type: "pubsub.googleapis.com/Topic"
    -    }
    +    (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }
       ];
     }
     
    @@ -378,7 +377,8 @@ service Subscriber {
           put: "/v1/{name=projects/*/subscriptions/*}"
           body: "*"
         };
    -    option (google.api.method_signature) = "name,topic,push_config,ack_deadline_seconds";
    +    option (google.api.method_signature) =
    +        "name,topic,push_config,ack_deadline_seconds";
       }
     
       // Gets the configuration details of a subscription.
    @@ -399,7 +399,8 @@ service Subscriber {
       }
     
       // Lists matching subscriptions.
    -  rpc ListSubscriptions(ListSubscriptionsRequest) returns (ListSubscriptionsResponse) {
    +  rpc ListSubscriptions(ListSubscriptionsRequest)
    +      returns (ListSubscriptionsResponse) {
         option (google.api.http) = {
           get: "/v1/{project=projects/*}/subscriptions"
         };
    @@ -411,7 +412,8 @@ service Subscriber {
       // `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.
    -  rpc DeleteSubscription(DeleteSubscriptionRequest) returns (google.protobuf.Empty) {
    +  rpc DeleteSubscription(DeleteSubscriptionRequest)
    +      returns (google.protobuf.Empty) {
         option (google.api.http) = {
           delete: "/v1/{subscription=projects/*/subscriptions/*}"
         };
    @@ -423,12 +425,14 @@ service Subscriber {
       // 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.
    -  rpc ModifyAckDeadline(ModifyAckDeadlineRequest) returns (google.protobuf.Empty) {
    +  rpc ModifyAckDeadline(ModifyAckDeadlineRequest)
    +      returns (google.protobuf.Empty) {
         option (google.api.http) = {
           post: "/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline"
           body: "*"
         };
    -    option (google.api.method_signature) = "subscription,ack_ids,ack_deadline_seconds";
    +    option (google.api.method_signature) =
    +        "subscription,ack_ids,ack_deadline_seconds";
       }
     
       // Acknowledges the messages associated with the `ack_ids` in the
    @@ -454,7 +458,8 @@ service Subscriber {
           post: "/v1/{subscription=projects/*/subscriptions/*}:pull"
           body: "*"
         };
    -    option (google.api.method_signature) = "subscription,return_immediately,max_messages";
    +    option (google.api.method_signature) =
    +        "subscription,return_immediately,max_messages";
       }
     
       // Establishes a stream with the server, which sends messages down to the
    @@ -464,8 +469,8 @@ service Subscriber {
       // 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.
    -  rpc StreamingPull(stream StreamingPullRequest) returns (stream StreamingPullResponse) {
    -  }
    +  rpc StreamingPull(stream StreamingPullRequest)
    +      returns (stream StreamingPullResponse) {}
     
       // Modifies the `PushConfig` for a specified subscription.
       //
    @@ -473,7 +478,8 @@ service Subscriber {
       // 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`.
    -  rpc ModifyPushConfig(ModifyPushConfigRequest) returns (google.protobuf.Empty) {
    +  rpc ModifyPushConfig(ModifyPushConfigRequest)
    +      returns (google.protobuf.Empty) {
         option (google.api.http) = {
           post: "/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig"
           body: "*"
    @@ -490,6 +496,7 @@ service Subscriber {
         option (google.api.http) = {
           get: "/v1/{snapshot=projects/*/snapshots/*}"
         };
    +    option (google.api.method_signature) = "snapshot";
       }
     
       // Lists the existing snapshots. Snapshots are used in
    @@ -592,15 +599,12 @@ message Subscription {
       // in length, and it must not start with `"goog"`.
       string name = 1 [(google.api.field_behavior) = REQUIRED];
     
    -  // 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.
    +  // 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.
       string topic = 2 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = {
    -      type: "pubsub.googleapis.com/Topic"
    -    }
    +    (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }
       ];
     
       // If push delivery is used with this subscription, this field is
    @@ -834,7 +838,8 @@ message UpdateSubscriptionRequest {
     
       // Required. Indicates which fields in the provided subscription to update.
       // Must be specified and non-empty.
    -  google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
    +  google.protobuf.FieldMask update_mask = 2
    +      [(google.api.field_behavior) = REQUIRED];
     }
     
     // Request for the `ListSubscriptions` method.
    @@ -911,14 +916,18 @@ message PullRequest {
         }
       ];
     
    -  // 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.
    -  bool return_immediately = 2;
    -
    -  // 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
    +  // 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.
    +  bool return_immediately = 2
    +      [deprecated = true, (google.api.field_behavior) = OPTIONAL];
    +
    +  // 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.
       int32 max_messages = 3 [(google.api.field_behavior) = REQUIRED];
     }
    @@ -946,10 +955,10 @@ message ModifyAckDeadlineRequest {
       // Required. List of acknowledgment IDs.
       repeated string ack_ids = 4 [(google.api.field_behavior) = REQUIRED];
     
    -  // 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
    +  // 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.
    @@ -968,8 +977,9 @@ message AcknowledgeRequest {
         }
       ];
     
    -  // 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.
    +  // 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.
       repeated string ack_ids = 2 [(google.api.field_behavior) = REQUIRED];
     }
     
    @@ -977,8 +987,8 @@ message AcknowledgeRequest {
     // establish the initial stream as well as to stream acknowledgements and ack
     // deadline modifications from the client to the server.
     message StreamingPullRequest {
    -  // 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
    +  // 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}`.
       string subscription = 1 [
    @@ -1015,11 +1025,12 @@ message StreamingPullRequest {
       // processing was interrupted.
       repeated string modify_deadline_ack_ids = 4;
     
    -  // Required. The ack deadline to use for the stream. This must be provided in the
    -  // first request on the stream, but it can also be updated on subsequent
    +  // Required. The ack deadline to use for the stream. This must be provided in
    +  // the first request on the stream, but it can also be updated on subsequent
       // requests from client to server. The minimum deadline you can specify is 10
       // seconds. The maximum deadline you can specify is 600 seconds (10 minutes).
    -  int32 stream_ack_deadline_seconds = 5 [(google.api.field_behavior) = REQUIRED];
    +  int32 stream_ack_deadline_seconds = 5
    +      [(google.api.field_behavior) = REQUIRED];
     
       // 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
    @@ -1039,17 +1050,15 @@ message StreamingPullResponse {
     
     // Request for the `CreateSnapshot` method.
     message CreateSnapshotRequest {
    -  // 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}`.
       string name = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = {
    -      type: "pubsub.googleapis.com/Snapshot"
    -    }
    +    (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" }
       ];
     
       // Required. The subscription whose backlog the snapshot retains.
    @@ -1080,7 +1089,8 @@ message UpdateSnapshotRequest {
     
       // Required. Indicates which fields in the provided snapshot to update.
       // Must be specified and non-empty.
    -  google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
    +  google.protobuf.FieldMask update_mask = 2
    +      [(google.api.field_behavior) = REQUIRED];
     }
     
     // A snapshot resource. Snapshots are used in
    @@ -1099,9 +1109,9 @@ message Snapshot {
       string name = 1;
     
       // The name of the topic from which this snapshot is retaining messages.
    -  string topic = 2 [(google.api.resource_reference) = {
    -                      type: "pubsub.googleapis.com/Topic"
    -                    }];
    +  string topic = 2 [
    +    (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" }
    +  ];
     
       // 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
    @@ -1126,9 +1136,7 @@ message GetSnapshotRequest {
       // Format is `projects/{project}/snapshots/{snap}`.
       string snapshot = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = {
    -      type: "pubsub.googleapis.com/Snapshot"
    -    }
    +    (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" }
       ];
     }
     
    @@ -1168,9 +1176,7 @@ message DeleteSnapshotRequest {
       // Format is `projects/{project}/snapshots/{snap}`.
       string snapshot = 1 [
         (google.api.field_behavior) = REQUIRED,
    -    (google.api.resource_reference) = {
    -      type: "pubsub.googleapis.com/Snapshot"
    -    }
    +    (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" }
       ];
     }
     
    @@ -1202,12 +1208,10 @@ message SeekRequest {
         // the provided subscription.
         // Format is `projects/{project}/snapshots/{snap}`.
         string snapshot = 3 [(google.api.resource_reference) = {
    -                           type: "pubsub.googleapis.com/Snapshot"
    -                         }];
    +      type: "pubsub.googleapis.com/Snapshot"
    +    }];
       }
     }
     
     // Response for the `Seek` method (this response is empty).
    -message SeekResponse {
    -
    -}
    +message SeekResponse {}
    diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata
    index 4c204715aa43..a8cfb72d0149 100644
    --- a/java-pubsub/synth.metadata
    +++ b/java-pubsub/synth.metadata
    @@ -1,20 +1,20 @@
     {
    -  "updateTime": "2020-03-02T23:00:50.055052Z",
    +  "updateTime": "2020-03-09T22:03:30.134601Z",
       "sources": [
         {
           "generator": {
             "name": "artman",
    -        "version": "0.47.0",
    -        "dockerImage": "googleapis/artman@sha256:b3e50d6b8de03920b9f065bbc3d210e2ca93a043446f1fa16cdf567393c09678"
    +        "version": "1.0.0",
    +        "dockerImage": "googleapis/artman@sha256:f37f2464788cb551299209b4fcab4eb323533154488c2ef9ec0c75d7c2b4b482"
           }
         },
         {
           "git": {
             "name": "googleapis",
             "remote": "https://github.com/googleapis/googleapis.git",
    -        "sha": "244ab2b83a82076a1fa7be63b7e0671af73f5c02",
    -        "internalRef": "298455048",
    -        "log": "244ab2b83a82076a1fa7be63b7e0671af73f5c02\nAdds service config definition for bigqueryreservation v1\n\nPiperOrigin-RevId: 298455048\n\n83c6f84035ee0f80eaa44d8b688a010461cc4080\nUpdate google/api/auth.proto to make AuthProvider to have JwtLocation\n\nPiperOrigin-RevId: 297918498\n\ne9e90a787703ec5d388902e2cb796aaed3a385b4\nDialogflow weekly v2/v2beta1 library update:\n  - adding get validation result\n  - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297671458\n\n"
    +        "sha": "29a47c965aac79e3fe8e3314482ca0b5967680f0",
    +        "internalRef": "299917154",
    +        "log": "29a47c965aac79e3fe8e3314482ca0b5967680f0\nIncrease timeout to 1hr for method `dropRange` in bigtable/admin/v2, which is\nsynced with the timeout setting in gapic_yaml.\n\nPiperOrigin-RevId: 299917154\n\n8f631c4c70a60a9c7da3749511ee4ad432b62898\nbuild(google/maps/roads/v1op): move go to monorepo pattern\n\nPiperOrigin-RevId: 299885195\n\nd66816518844ebbf63504c9e8dfc7133921dd2cd\nbuild(google/maps/roads/v1op): Add bazel build files to generate clients.\n\nPiperOrigin-RevId: 299851148\n\naf7dff701fabe029672168649c62356cf1bb43d0\nAdd LogPlayerReports and LogImpressions to Playable Locations service\n\nPiperOrigin-RevId: 299724050\n\nb6927fca808f38df32a642c560082f5bf6538ced\nUpdate BigQuery Connection API v1beta1 proto: added credential to CloudSqlProperties.\n\nPiperOrigin-RevId: 299503150\n\n91e1fb5ef9829c0c7a64bfa5bde330e6ed594378\nchore: update protobuf (protoc) version to 3.11.2\n\nPiperOrigin-RevId: 299404145\n\n30e36b4bee6749c4799f4fc1a51cc8f058ba167d\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 299399890\n\nffbb493674099f265693872ae250711b2238090c\nfeat: cloudbuild/v1 add new fields and annotate OUTPUT_OUT fields.\n\nPiperOrigin-RevId: 299397780\n\nbc973a15818e00c19e121959832676e9b7607456\nbazel: Fix broken common  dependency\n\nPiperOrigin-RevId: 299397431\n\n71094a343e3b962e744aa49eb9338219537474e4\nchore: bigtable/admin/v2 publish retry config\n\nPiperOrigin-RevId: 299391875\n\n8f488efd7bda33885cb674ddd023b3678c40bd82\nfeat: Migrate logging to GAPIC v2; release new features.\n\nIMPORTANT: This is a breaking change for client libraries\nin all languages.\n\nCommitter: @lukesneeringer, @jskeet\nPiperOrigin-RevId: 299370279\n\n007605bf9ad3a1fd775014ebefbf7f1e6b31ee71\nUpdate API for bigqueryreservation v1beta1.\n- Adds flex capacity commitment plan to CapacityCommitment.\n- Adds methods for getting and updating BiReservations.\n- Adds methods for updating/splitting/merging CapacityCommitments.\n\nPiperOrigin-RevId: 299368059\n\nf0b581b5bdf803e45201ecdb3688b60e381628a8\nfix: recommendationengine/v1beta1 update some comments\n\nPiperOrigin-RevId: 299181282\n\n10e9a0a833dc85ff8f05b2c67ebe5ac785fe04ff\nbuild: add generated BUILD file for Routes Preferred API\n\nPiperOrigin-RevId: 299164808\n\n86738c956a8238d7c77f729be78b0ed887a6c913\npublish v1p1beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299152383\n\n73d9f2ad4591de45c2e1f352bc99d70cbd2a6d95\npublish v1: update with absolute address in comments\n\nPiperOrigin-RevId: 299147194\n\nd2158f24cb77b0b0ccfe68af784c6a628705e3c6\npublish v1beta2: update with absolute address in comments\n\nPiperOrigin-RevId: 299147086\n\n7fca61292c11b4cd5b352cee1a50bf88819dd63b\npublish v1p2beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146903\n\n583b7321624736e2c490e328f4b1957335779295\npublish v1p3beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146674\n\n638253bf86d1ce1c314108a089b7351440c2f0bf\nfix: add java_multiple_files option for automl text_sentiment.proto\n\nPiperOrigin-RevId: 298971070\n\n373d655703bf914fb8b0b1cc4071d772bac0e0d1\nUpdate Recs AI Beta public bazel file\n\nPiperOrigin-RevId: 298961623\n\ndcc5d00fc8a8d8b56f16194d7c682027b2c66a3b\nfix: add java_multiple_files option for automl classification.proto\n\nPiperOrigin-RevId: 298953301\n\na3f791827266f3496a6a5201d58adc4bb265c2a3\nchore: automl/v1 publish annotations and retry config\n\nPiperOrigin-RevId: 298942178\n\n01c681586d8d6dbd60155289b587aee678530bd9\nMark return_immediately in PullRequest deprecated.\n\nPiperOrigin-RevId: 298893281\n\nc9f5e9c4bfed54bbd09227e990e7bded5f90f31c\nRemove out of date documentation for predicate support on the Storage API\n\nPiperOrigin-RevId: 298883309\n\nfd5b3b8238d783b04692a113ffe07c0363f5de0f\ngenerate webrisk v1 proto\n\nPiperOrigin-RevId: 298847934\n\n541b1ded4abadcc38e8178680b0677f65594ea6f\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 298686266\n\nc0d171acecb4f5b0bfd2c4ca34fc54716574e300\n  Updated to include the Notification v1 API.\n\nPiperOrigin-RevId: 298652775\n\n2346a9186c0bff2c9cc439f2459d558068637e05\nAdd Service Directory v1beta1 protos and configs\n\nPiperOrigin-RevId: 298625638\n\na78ed801b82a5c6d9c5368e24b1412212e541bb7\nPublishing v3 protos and configs.\n\nPiperOrigin-RevId: 298607357\n\n4a180bfff8a21645b3a935c2756e8d6ab18a74e0\nautoml/v1beta1 publish proto updates\n\nPiperOrigin-RevId: 298484782\n\n6de6e938b7df1cd62396563a067334abeedb9676\nchore: use the latest gapic-generator and protoc-java-resource-name-plugin in Bazel workspace.\n\nPiperOrigin-RevId: 298474513\n\n"
           }
         },
         {
    
    From 27c47931cb718c8db7f0c948c3ac0d363db72d57 Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Tue, 17 Mar 2020 15:39:30 +0100
    Subject: [PATCH 0317/2363] build(deps): update dependency
     org.apache.maven.plugins:maven-dependency-plugin to v3.1.2 (#108)
    
    ---
     java-pubsub/google-cloud-pubsub/pom.xml | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index aa9fe12e3e1b..fc40ef539153 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -145,7 +145,7 @@
             
               org.apache.maven.plugins
               maven-dependency-plugin
    -          3.1.1
    +          3.1.2
               
                 io.opencensus:opencensus-impl
               
    
    From dc3947e283e29cbd982d4f20f7396874380f2df0 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Mon, 23 Mar 2020 20:58:10 -0700
    Subject: [PATCH 0318/2363] chore: enable context aware commits (#118)
    
    ---
     java-pubsub/synth.py | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/java-pubsub/synth.py b/java-pubsub/synth.py
    index d47677f8479b..bcc53646d1bb 100644
    --- a/java-pubsub/synth.py
    +++ b/java-pubsub/synth.py
    @@ -18,6 +18,8 @@
     import synthtool.gcp as gcp
     import synthtool.languages.java as java
     
    +AUTOSYNTH_MULTIPLE_COMMITS = True
    +
     gapic = gcp.GAPICGenerator()
     
     service = 'pubsub'
    
    From e58fe28893b96d8285e0998d9575cf579317f6e7 Mon Sep 17 00:00:00 2001
    From: Jeff Ching 
    Date: Wed, 25 Mar 2020 07:26:44 -0700
    Subject: [PATCH 0319/2363] chore: use java helper for templates (#114)
    
    ---
     java-pubsub/synth.py | 6 ++----
     1 file changed, 2 insertions(+), 4 deletions(-)
    
    diff --git a/java-pubsub/synth.py b/java-pubsub/synth.py
    index bcc53646d1bb..3ee915346f1e 100644
    --- a/java-pubsub/synth.py
    +++ b/java-pubsub/synth.py
    @@ -49,8 +49,6 @@
         java.format_code(f'grpc-google-cloud-{service}-{version}/src')
         java.format_code(f'proto-google-cloud-{service}-{version}/src')
     
    -common_templates = gcp.CommonTemplates()
    -templates = common_templates.java_library()
    -s.copy(templates, excludes=[
    +java.common_templates(excludes=[
         'README.md'
    -])
    \ No newline at end of file
    +])
    
    From 280b129aa52d418569c377e5dafedf2582981f3e Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Wed, 25 Mar 2020 15:28:35 +0100
    Subject: [PATCH 0320/2363] deps: update dependency org.threeten:threetenbp to
     v1.4.2 (#116)
    
    ---
     java-pubsub/pom.xml | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml
    index 8a60469d0e80..254a2ac6df9d 100644
    --- a/java-pubsub/pom.xml
    +++ b/java-pubsub/pom.xml
    @@ -72,7 +72,7 @@
         4.13
         4.2
         28.2-android
    -    1.4.1
    +    1.4.2
         1.3.2
         2.3.4
         1.34.2
    
    From 2ec417e3f020821e63371e237b7fe13c28967d11 Mon Sep 17 00:00:00 2001
    From: Kamal Aboul-Hosn 
    Date: Wed, 25 Mar 2020 12:14:50 -0400
    Subject: [PATCH 0321/2363] feat: Add flow control support to publisher (#119)
    
    * feat: Add flow control support to publisher
    ---
     .../com/google/cloud/pubsub/v1/Publisher.java | 173 +++++++++++++++-
     .../pubsub/v1/SequentialExecutorService.java  |   4 +
     .../cloud/pubsub/v1/PublisherImplTest.java    | 190 ++++++++++++++++++
     3 files changed, 364 insertions(+), 3 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
    index e28427eea85a..659d84bb6b9a 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java
    @@ -25,6 +25,8 @@
     import com.google.api.core.BetaApi;
     import com.google.api.core.SettableApiFuture;
     import com.google.api.gax.batching.BatchingSettings;
    +import com.google.api.gax.batching.FlowControlSettings;
    +import com.google.api.gax.batching.FlowController;
     import com.google.api.gax.core.BackgroundResource;
     import com.google.api.gax.core.BackgroundResourceAggregation;
     import com.google.api.gax.core.CredentialsProvider;
    @@ -55,6 +57,7 @@
     import java.util.List;
     import java.util.Map;
     import java.util.concurrent.Callable;
    +import java.util.concurrent.CountDownLatch;
     import java.util.concurrent.ScheduledExecutorService;
     import java.util.concurrent.ScheduledFuture;
     import java.util.concurrent.TimeUnit;
    @@ -108,6 +111,8 @@ public class Publisher {
       private ScheduledFuture currentAlarmFuture;
       private final ApiFunction messageTransform;
     
    +  private MessageFlowController flowController = null;
    +
       /** The maximum number of messages in one request. Defined by the API. */
       public static long getApiMaxRequestElementCount() {
         return 1000L;
    @@ -122,6 +127,16 @@ private Publisher(Builder builder) throws IOException {
         topicName = builder.topicName;
     
         this.batchingSettings = builder.batchingSettings;
    +    FlowControlSettings flowControl = this.batchingSettings.getFlowControlSettings();
    +    if (flowControl != null
    +        && flowControl.getLimitExceededBehavior() != FlowController.LimitExceededBehavior.Ignore) {
    +      this.flowController =
    +          new MessageFlowController(
    +              flowControl.getMaxOutstandingElementCount(),
    +              flowControl.getMaxOutstandingRequestBytes(),
    +              flowControl.getLimitExceededBehavior());
    +    }
    +
         this.enableMessageOrdering = builder.enableMessageOrdering;
         this.messageTransform = builder.messageTransform;
     
    @@ -221,6 +236,19 @@ public ApiFuture publish(PubsubMessage message) {
     
         final OutstandingPublish outstandingPublish =
             new OutstandingPublish(messageTransform.apply(message));
    +
    +    if (flowController != null) {
    +      try {
    +        flowController.acquire(outstandingPublish.messageSize);
    +      } catch (FlowController.FlowControlException e) {
    +        if (!orderingKey.isEmpty()) {
    +          sequentialExecutor.stopPublish(orderingKey);
    +        }
    +        outstandingPublish.publishResult.setException(e);
    +        return outstandingPublish.publishResult;
    +      }
    +    }
    +
         List batchesToSend;
         messagesBatchLock.lock();
         try {
    @@ -454,7 +482,7 @@ public ApiFuture call() {
         ApiFutures.addCallback(future, futureCallback, directExecutor());
       }
     
    -  private static final class OutstandingBatch {
    +  private final class OutstandingBatch {
         final List outstandingPublishes;
         final long creationTime;
         int attempt;
    @@ -484,6 +512,9 @@ private List getMessages() {
     
         private void onFailure(Throwable t) {
           for (OutstandingPublish outstandingPublish : outstandingPublishes) {
    +        if (flowController != null) {
    +          flowController.release(outstandingPublish.messageSize);
    +        }
             outstandingPublish.publishResult.setException(t);
           }
         }
    @@ -491,7 +522,11 @@ private void onFailure(Throwable t) {
         private void onSuccess(Iterable results) {
           Iterator messagesResultsIt = outstandingPublishes.iterator();
           for (String messageId : results) {
    -        messagesResultsIt.next().publishResult.set(messageId);
    +        OutstandingPublish nextPublish = messagesResultsIt.next();
    +        if (flowController != null) {
    +          flowController.release(nextPublish.messageSize);
    +        }
    +        nextPublish.publishResult.set(messageId);
           }
         }
       }
    @@ -602,6 +637,10 @@ public static final class Builder {
                 .setDelayThreshold(DEFAULT_DELAY_THRESHOLD)
                 .setRequestByteThreshold(DEFAULT_REQUEST_BYTES_THRESHOLD)
                 .setElementCountThreshold(DEFAULT_ELEMENT_COUNT_THRESHOLD)
    +            .setFlowControlSettings(
    +                FlowControlSettings.newBuilder()
    +                    .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Ignore)
    +                    .build())
                 .build();
         static final RetrySettings DEFAULT_RETRY_SETTINGS =
             RetrySettings.newBuilder()
    @@ -759,7 +798,135 @@ public Publisher build() throws IOException {
         }
       }
     
    -  private static class MessagesBatch {
    +  private static class MessageFlowController {
    +    private final Lock lock;
    +    private final Long messageLimit;
    +    private final Long byteLimit;
    +    private final FlowController.LimitExceededBehavior limitBehavior;
    +
    +    private Long outstandingMessages;
    +    private Long outstandingBytes;
    +    private LinkedList awaitingMessageAcquires;
    +    private LinkedList awaitingBytesAcquires;
    +
    +    MessageFlowController(
    +        Long messageLimit, Long byteLimit, FlowController.LimitExceededBehavior limitBehavior) {
    +      this.messageLimit = messageLimit;
    +      this.byteLimit = byteLimit;
    +      this.limitBehavior = limitBehavior;
    +      this.lock = new ReentrantLock();
    +
    +      this.outstandingMessages = 0L;
    +      this.outstandingBytes = 0L;
    +
    +      this.awaitingMessageAcquires = new LinkedList();
    +      this.awaitingBytesAcquires = new LinkedList();
    +    }
    +
    +    void acquire(long messageSize) throws FlowController.FlowControlException {
    +      lock.lock();
    +      try {
    +        if (outstandingMessages >= messageLimit
    +            && limitBehavior == FlowController.LimitExceededBehavior.ThrowException) {
    +          throw new FlowController.MaxOutstandingElementCountReachedException(messageLimit);
    +        }
    +        if (outstandingBytes + messageSize >= byteLimit
    +            && limitBehavior == FlowController.LimitExceededBehavior.ThrowException) {
    +          throw new FlowController.MaxOutstandingRequestBytesReachedException(byteLimit);
    +        }
    +
    +        // We can acquire or we should wait until we can acquire.
    +        // Start by acquiring a slot for a message.
    +        CountDownLatch messageWaiter = null;
    +        while (outstandingMessages >= messageLimit) {
    +          if (messageWaiter == null) {
    +            // This message gets added to the back of the line.
    +            messageWaiter = new CountDownLatch(1);
    +            awaitingMessageAcquires.addLast(messageWaiter);
    +          } else {
    +            // This message already in line stays at the head of the line.
    +            messageWaiter = new CountDownLatch(1);
    +            awaitingMessageAcquires.set(0, messageWaiter);
    +          }
    +          lock.unlock();
    +          try {
    +            messageWaiter.await();
    +          } catch (InterruptedException e) {
    +            logger.log(Level.WARNING, "Interrupted while waiting to acquire flow control tokens");
    +          }
    +          lock.lock();
    +        }
    +        ++outstandingMessages;
    +        if (messageWaiter != null) {
    +          awaitingMessageAcquires.removeFirst();
    +        }
    +
    +        // There may be some surplus messages left; let the next message waiting for a token have
    +        // one.
    +        if (!awaitingMessageAcquires.isEmpty() && outstandingMessages < messageLimit) {
    +          awaitingMessageAcquires.getFirst().countDown();
    +        }
    +
    +        // Now acquire space for bytes.
    +        CountDownLatch bytesWaiter = null;
    +        Long bytesRemaining = messageSize;
    +        while (outstandingBytes + bytesRemaining >= byteLimit) {
    +          // Take what is available.
    +          Long available = byteLimit - outstandingBytes;
    +          bytesRemaining -= available;
    +          outstandingBytes = byteLimit;
    +          if (bytesWaiter == null) {
    +            // This message gets added to the back of the line.
    +            bytesWaiter = new CountDownLatch(1);
    +            awaitingBytesAcquires.addLast(bytesWaiter);
    +          } else {
    +            // This message already in line stays at the head of the line.
    +            bytesWaiter = new CountDownLatch(1);
    +            awaitingBytesAcquires.set(0, bytesWaiter);
    +          }
    +          lock.unlock();
    +          try {
    +            bytesWaiter.await();
    +          } catch (InterruptedException e) {
    +            logger.log(Level.WARNING, "Interrupted while waiting to acquire flow control tokens");
    +          }
    +          lock.lock();
    +        }
    +
    +        outstandingBytes += bytesRemaining;
    +        if (bytesWaiter != null) {
    +          awaitingBytesAcquires.removeFirst();
    +        }
    +        // There may be some surplus bytes left; let the next message waiting for bytes have some.
    +        if (!awaitingBytesAcquires.isEmpty() && outstandingBytes < byteLimit) {
    +          awaitingBytesAcquires.getFirst().countDown();
    +        }
    +      } finally {
    +        lock.unlock();
    +      }
    +    }
    +
    +    private void notifyNextAcquires() {
    +      if (!awaitingMessageAcquires.isEmpty()) {
    +        CountDownLatch awaitingAcquire = awaitingMessageAcquires.getFirst();
    +        awaitingAcquire.countDown();
    +      }
    +      if (!awaitingBytesAcquires.isEmpty()) {
    +        CountDownLatch awaitingAcquire = awaitingBytesAcquires.getFirst();
    +        awaitingAcquire.countDown();
    +      }
    +    }
    +
    +    void release(long messageSize) {
    +      lock.lock();
    +      --outstandingMessages;
    +      outstandingBytes -= messageSize;
    +      notifyNextAcquires();
    +      lock.unlock();
    +    }
    +  }
    +
    +  private class MessagesBatch {
         private List messages;
         private int batchedBytes;
         private String orderingKey;
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java
    index 712f51eb55a8..2929218506e6 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java
    @@ -247,6 +247,10 @@ void resumePublish(String key) {
           keysWithErrors.remove(key);
         }
     
    +    void stopPublish(String key) {
    +      keysWithErrors.add(key);
    +    }
    +
         /** Cancels every task in the queue associated with {@code key}. */
         private void cancelQueuedTasks(final String key, Throwable e) {
           keysWithErrors.add(key);
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java
    index b1109c8fce65..5ee5fdcfc582 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java
    @@ -25,6 +25,8 @@
     
     import com.google.api.core.ApiFuture;
     import com.google.api.gax.batching.BatchingSettings;
    +import com.google.api.gax.batching.FlowControlSettings;
    +import com.google.api.gax.batching.FlowController;
     import com.google.api.gax.core.ExecutorProvider;
     import com.google.api.gax.core.FixedExecutorProvider;
     import com.google.api.gax.core.InstantiatingExecutorProvider;
    @@ -43,7 +45,10 @@
     import io.grpc.StatusException;
     import io.grpc.inprocess.InProcessServerBuilder;
     import java.util.List;
    +import java.util.concurrent.CountDownLatch;
     import java.util.concurrent.ExecutionException;
    +import java.util.concurrent.Executor;
    +import java.util.concurrent.Executors;
     import java.util.concurrent.TimeUnit;
     import org.easymock.EasyMock;
     import org.junit.After;
    @@ -923,6 +928,191 @@ public void testShutDown() throws Exception {
         assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES));
       }
     
    +  @Test
    +  public void testPublishFlowControl_throwException() throws Exception {
    +    Publisher publisher =
    +        getTestPublisherBuilder()
    +            .setExecutorProvider(SINGLE_THREAD_EXECUTOR)
    +            .setBatchingSettings(
    +                Publisher.Builder.DEFAULT_BATCHING_SETTINGS
    +                    .toBuilder()
    +                    .setElementCountThreshold(1L)
    +                    .setDelayThreshold(Duration.ofSeconds(5))
    +                    .setFlowControlSettings(
    +                        FlowControlSettings.newBuilder()
    +                            .setLimitExceededBehavior(
    +                                FlowController.LimitExceededBehavior.ThrowException)
    +                            .setMaxOutstandingElementCount(1L)
    +                            .setMaxOutstandingRequestBytes(10L)
    +                            .build())
    +                    .build())
    +            .build();
    +
    +    // Sending a message that is too large results in an exception.
    +    ApiFuture publishFuture1 = sendTestMessage(publisher, "AAAAAAAAAAA");
    +    try {
    +      publishFuture1.get();
    +      fail("Should have thrown an FlowController.MaxOutstandingRequestBytesReachedException");
    +    } catch (ExecutionException e) {
    +      assertThat(e.getCause())
    +          .isInstanceOf(FlowController.MaxOutstandingRequestBytesReachedException.class);
    +    }
    +
    +    // Sending a second message succeeds.
    +    ApiFuture publishFuture2 = sendTestMessage(publisher, "AAAA");
    +
    +    // Sending a third message fails because of the outstanding message.
    +    ApiFuture publishFuture3 = sendTestMessage(publisher, "AA");
    +    try {
    +      publishFuture3.get();
    +      fail("Should have thrown an FlowController.MaxOutstandingElementCountReachedException");
    +    } catch (ExecutionException e) {
    +      assertThat(e.getCause())
    +          .isInstanceOf(FlowController.MaxOutstandingElementCountReachedException.class);
    +    }
    +
    +    testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("1"));
    +    assertEquals("1", publishFuture2.get());
    +
    +    // Sending another message succeeds.
    +    ApiFuture publishFuture4 = sendTestMessage(publisher, "AAAA");
    +    testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("2"));
    +    assertEquals("2", publishFuture4.get());
    +  }
    +
    +  @Test
    +  public void testPublishFlowControl_throwExceptionWithOrderingKey() throws Exception {
    +    Publisher publisher =
    +        getTestPublisherBuilder()
    +            .setExecutorProvider(SINGLE_THREAD_EXECUTOR)
    +            .setBatchingSettings(
    +                Publisher.Builder.DEFAULT_BATCHING_SETTINGS
    +                    .toBuilder()
    +                    .setElementCountThreshold(1L)
    +                    .setDelayThreshold(Duration.ofSeconds(5))
    +                    .setFlowControlSettings(
    +                        FlowControlSettings.newBuilder()
    +                            .setLimitExceededBehavior(
    +                                FlowController.LimitExceededBehavior.ThrowException)
    +                            .setMaxOutstandingElementCount(1L)
    +                            .setMaxOutstandingRequestBytes(10L)
    +                            .build())
    +                    .build())
    +            .setEnableMessageOrdering(true)
    +            .build();
    +
    +    // Sending a message that is too large results in an exception.
    +    ApiFuture publishFuture1 =
    +        sendTestMessageWithOrderingKey(publisher, "AAAAAAAAAAA", "a");
    +    try {
    +      publishFuture1.get();
    +      fail("Should have thrown an FlowController.MaxOutstandingRequestBytesReachedException");
    +    } catch (ExecutionException e) {
    +      assertThat(e.getCause())
    +          .isInstanceOf(FlowController.MaxOutstandingRequestBytesReachedException.class);
    +    }
    +
    +    // Sending a second message for the same ordering key fails because the first one failed.
    +    ApiFuture publishFuture2 = sendTestMessageWithOrderingKey(publisher, "AAAA", "a");
    +    try {
    +      publishFuture2.get();
    +      Assert.fail("This should fail.");
    +    } catch (ExecutionException e) {
    +      assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause());
    +    }
    +  }
    +
    +  @Test
    +  public void testPublishFlowControl_block() throws Exception {
    +    final Publisher publisher =
    +        getTestPublisherBuilder()
    +            .setExecutorProvider(SINGLE_THREAD_EXECUTOR)
    +            .setBatchingSettings(
    +                Publisher.Builder.DEFAULT_BATCHING_SETTINGS
    +                    .toBuilder()
    +                    .setElementCountThreshold(1L)
    +                    .setDelayThreshold(Duration.ofSeconds(5))
    +                    .setFlowControlSettings(
    +                        FlowControlSettings.newBuilder()
    +                            .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block)
    +                            .setMaxOutstandingElementCount(2L)
    +                            .setMaxOutstandingRequestBytes(10L)
    +                            .build())
    +                    .build())
    +            .build();
    +    Executor responseExecutor = Executors.newScheduledThreadPool(10);
    +    final CountDownLatch sendResponse1 = new CountDownLatch(1);
    +    final CountDownLatch response1Sent = new CountDownLatch(1);
    +    final CountDownLatch sendResponse2 = new CountDownLatch(1);
    +    responseExecutor.execute(
    +        new Runnable() {
    +          @Override
    +          public void run() {
    +            try {
    +              sendResponse1.await();
    +              testPublisherServiceImpl.addPublishResponse(
    +                  PublishResponse.newBuilder().addMessageIds("1"));
    +              response1Sent.countDown();
    +              sendResponse2.await();
    +              testPublisherServiceImpl.addPublishResponse(
    +                  PublishResponse.newBuilder().addMessageIds("2"));
    +            } catch (Exception e) {
    +            }
    +          }
    +        });
    +
    +    // Sending two messages succeeds.
    +    ApiFuture publishFuture1 = sendTestMessage(publisher, "AA");
    +    ApiFuture publishFuture2 = sendTestMessage(publisher, "AA");
    +
    +    // Sending a third message blocks because messages are outstanding.
    +    final CountDownLatch publish3Completed = new CountDownLatch(1);
    +    final CountDownLatch response3Sent = new CountDownLatch(1);
    +    responseExecutor.execute(
    +        new Runnable() {
    +          @Override
    +          public void run() {
    +            ApiFuture publishFuture3 = sendTestMessage(publisher, "AAAAAA");
    +            publish3Completed.countDown();
    +          }
    +        });
    +
    +    responseExecutor.execute(
    +        new Runnable() {
    +          @Override
    +          public void run() {
    +            try {
    +              sendResponse1.countDown();
    +              response1Sent.await();
    +              sendResponse2.countDown();
    +            } catch (Exception e) {
    +            }
    +          }
    +        });
    +
    +    // Sending a fourth message blocks because although only one message has been sent,
    +    // the third message claimed the tokens for outstanding bytes.
    +    final CountDownLatch publish4Completed = new CountDownLatch(1);
    +    responseExecutor.execute(
    +        new Runnable() {
    +          @Override
    +          public void run() {
    +            try {
    +              publish3Completed.await();
    +              ApiFuture publishFuture4 = sendTestMessage(publisher, "A");
    +              publish4Completed.countDown();
    +            } catch (Exception e) {
    +            }
    +          }
    +        });
    +
    +    publish3Completed.await();
    +    testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("3"));
    +    response3Sent.countDown();
    +
    +    publish4Completed.await();
    +  }
    +
       private Builder getTestPublisherBuilder() {
         return Publisher.newBuilder(TEST_TOPIC)
             .setExecutorProvider(FixedExecutorProvider.create(fakeExecutor))
    
    From a988eee75c3753a16ee6418ed079139f035d9488 Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Thu, 26 Mar 2020 00:21:35 +0100
    Subject: [PATCH 0322/2363] deps: update dependency com.google.api:api-common
     to v1.9.0 (#121)
    
    This PR contains the following updates:
    
    | Package | Update | Change |
    |---|---|---|
    | [com.google.api:api-common](https://togithub.com/googleapis/api-common-java) | minor | `1.8.1` -> `1.9.0` |
    
    ---
    
    ### Release Notes
    
    
    googleapis/api-common-java ### [`v1.9.0`](https://togithub.com/googleapis/api-common-java/releases/v1.9.0) [Compare Source](https://togithub.com/googleapis/api-common-java/compare/v1.8.1...v1.9.0) 03-25-2020 14:09 PST #### New Features - Add `@BetaApi` `ApiFutres.catchingAsync()` ([#​117](https://togithub.com/googleapis/api-common-java/pull/117)) ##### Dependencies - Update guava to v28.2-android ([#​110](https://togithub.com/googleapis/api-common-java/pull/110)) - Update error_prone_annotations to v2.2.3 ([#​111](https://togithub.com/googleapis/api-common-java/pull/111))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 254a2ac6df9d..734355f06f65 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -64,7 +64,7 @@ github google-cloud-pubsub-parent 1.93.1 - 1.8.1 + 1.9.0 1.17.0 1.54.0 1.27.2 From 7f599d64adb6ce5ff62eb327a7e04106c884c2d8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 Mar 2020 18:44:46 +0100 Subject: [PATCH 0323/2363] deps: update core dependencies (#105) --- java-pubsub/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 734355f06f65..401fae68124e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -63,11 +63,11 @@ UTF-8 github google-cloud-pubsub-parent - 1.93.1 + 1.93.3 1.9.0 1.17.0 1.54.0 - 1.27.2 + 1.28.0 3.11.4 4.13 4.2 From 13c5ec718f59a177c43798a644e273cad8ddcfe3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 Mar 2020 18:45:25 +0100 Subject: [PATCH 0324/2363] deps: update opencensus.version to v0.26.0 (#115) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 401fae68124e..34dfa8702fb9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -78,7 +78,7 @@ 1.34.2 1.18 1.7 - 0.25.0 + 0.26.0 From 6385eda7d3b2638e3d9e6fa9b34ae673d95e4aad Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Wed, 1 Apr 2020 11:11:49 -0700 Subject: [PATCH 0325/2363] chore: Migrate pubsub synth.py to bazel (#124) This PR migrates only synth.py but does not commit the regenerated files. The generation was tested and it works, the updated files are not commited due to breaking changes not related to bazel migration. --- java-pubsub/synth.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/java-pubsub/synth.py b/java-pubsub/synth.py index 3ee915346f1e..24cfcbf56da8 100644 --- a/java-pubsub/synth.py +++ b/java-pubsub/synth.py @@ -15,24 +15,19 @@ """This script is used to synthesize generated parts of this library.""" import synthtool as s -import synthtool.gcp as gcp import synthtool.languages.java as java AUTOSYNTH_MULTIPLE_COMMITS = True -gapic = gcp.GAPICGenerator() - service = 'pubsub' versions = ['v1'] -config_pattern = '/google/pubsub/artman_pubsub.yaml' for version in versions: - java.gapic_library( + java.bazel_library( service=service, version=version, - config_pattern=config_pattern, - package_pattern='com.google.{service}.{version}', - gapic=gapic, + proto_path=f'google/{service}/{version}', + bazel_target=f'//google/{service}/{version}:google-cloud-{service}-{version}-java', ) s.replace( '**/stub/SubscriberStubSettings.java', From 15b30076a3d0c8a1023702c68d5ab8163ffac674 Mon Sep 17 00:00:00 2001 From: Hanzhen Yi Date: Wed, 1 Apr 2020 13:42:12 -0700 Subject: [PATCH 0326/2363] feat: add TopicName (#113) * [CHANGE ME] Re-generated to pick up changes in the API or client library generator. * regenerate * trigger kokoro * debug * trigger kokoro * remove debugging * Remove sample poms * add deprecation info * add back documentation * remove samples Co-authored-by: yoshi-automation --- java-pubsub/.github/PULL_REQUEST_TEMPLATE.md | 8 +- java-pubsub/.kokoro/build.sh | 19 +- java-pubsub/.kokoro/common.sh | 44 + java-pubsub/.kokoro/dependencies.sh | 15 +- java-pubsub/.kokoro/linkage-monitor.sh | 22 +- .../pubsub/v1/SubscriptionAdminClient.java | 222 ++-- .../cloud/pubsub/v1/TopicAdminClient.java | 281 +++-- .../google/cloud/pubsub/v1/package-info.java | 4 +- .../google/cloud/pubsub/it/ITPubSubTest.java | 1 - .../v1/SubscriptionAdminClientTest.java | 82 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 92 +- .../google/pubsub/v1/ProjectTopicName.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 459 ++++---- .../com/google/pubsub/v1/RetryPolicy.java | 1033 +++++++++++++++++ .../pubsub/v1/RetryPolicyOrBuilder.java | 101 ++ .../com/google/pubsub/v1/Subscription.java | 588 ++++++++++ .../pubsub/v1/SubscriptionOrBuilder.java | 96 ++ .../java/com/google/pubsub/v1/TopicName.java | 218 +++- .../main/proto/google/pubsub/v1/pubsub.proto | 42 + java-pubsub/renovate.json | 6 +- java-pubsub/synth.metadata | 21 +- java-pubsub/synth.py | 467 ++++++++ 22 files changed, 3338 insertions(+), 485 deletions(-) create mode 100644 java-pubsub/.kokoro/common.sh create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java diff --git a/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md b/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md index 0bd0ee0620f9..f2a217cb7efb 100644 --- a/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md +++ b/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md @@ -1 +1,7 @@ -Fixes # (it's a good idea to open an issue first for context and/or discussion) \ No newline at end of file +Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: +- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-pubsub/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea +- [ ] Ensure the tests and linter pass +- [ ] Code coverage does not decrease (if any source code was changed) +- [ ] Appropriate docs were updated (if necessary) + +Fixes # ☕️ diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 2bac08ee0ca5..bbca9bc9d341 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -20,17 +20,22 @@ scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) ## cd to the parent directory, i.e. the root of the git repo cd ${scriptDir}/.. +# include common functions +source ${scriptDir}/common.sh + # Print out Java version java -version echo ${JOB_TYPE} -mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true \ - -T 1C +# attempt to install 3 times with exponential backoff (starting with 10 seconds) +retry_with_backoff 3 10 \ + mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true \ + -T 1C # if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then diff --git a/java-pubsub/.kokoro/common.sh b/java-pubsub/.kokoro/common.sh new file mode 100644 index 000000000000..a3bbc5f67963 --- /dev/null +++ b/java-pubsub/.kokoro/common.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# set -eo pipefail + +function retry_with_backoff { + attempts_left=$1 + sleep_seconds=$2 + shift 2 + command=$@ + + echo "${command}" + ${command} + exit_code=$? + + if [[ $exit_code == 0 ]] + then + return 0 + fi + + # failure + if [[ ${attempts_left} > 0 ]] + then + echo "failure (${exit_code}), sleeping ${sleep_seconds}..." + sleep ${sleep_seconds} + new_attempts=$((${attempts_left} - 1)) + new_sleep=$((${sleep_seconds} * 2)) + retry_with_backoff ${new_attempts} ${new_sleep} ${command} + fi + + return $exit_code +} diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index eb1cb86db2c4..0aade871ce10 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -15,7 +15,13 @@ set -eo pipefail -cd github/java-pubsub/ +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +# include common functions +source ${scriptDir}/common.sh # Print out Java java -version @@ -24,8 +30,9 @@ echo $JOB_TYPE export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" # this should run maven enforcer -mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true +retry_with_backoff 3 10 \ + mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true diff --git a/java-pubsub/.kokoro/linkage-monitor.sh b/java-pubsub/.kokoro/linkage-monitor.sh index 088ded29ae6b..759ab4e2c220 100755 --- a/java-pubsub/.kokoro/linkage-monitor.sh +++ b/java-pubsub/.kokoro/linkage-monitor.sh @@ -17,18 +17,26 @@ set -eo pipefail # Display commands being run. set -x -cd github/java-pubsub/ +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +# include common functions +source ${scriptDir}/common.sh # Print out Java version java -version echo ${JOB_TYPE} -mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true +# attempt to install 3 times with exponential backoff (starting with 10 seconds) +retry_with_backoff 3 10 \ + mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true # Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR JAR=linkage-monitor-latest-all-deps.jar diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index b5c7b51c746a..227271f327d8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -59,6 +59,7 @@ import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.UpdateSnapshotRequest; import com.google.pubsub.v1.UpdateSubscriptionRequest; import java.io.IOException; @@ -81,7 +82,7 @@ * * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - * ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]"); + * TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); * PushConfig pushConfig = PushConfig.newBuilder().build(); * int ackDeadlineSeconds = 0; * Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); @@ -211,7 +212,7 @@ public SubscriberStub getStub() { *
    
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
        *   int ackDeadlineSeconds = 0;
        *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    @@ -248,7 +249,7 @@ public SubscriberStub getStub() {
        */
       public final Subscription createSubscription(
           ProjectSubscriptionName name,
    -      ProjectTopicName topic,
    +      TopicName topic,
           PushConfig pushConfig,
           int ackDeadlineSeconds) {
         Subscription request =
    @@ -279,7 +280,7 @@ public final Subscription createSubscription(
        * 
    
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
        *   int ackDeadlineSeconds = 0;
        *   Subscription response = subscriptionAdminClient.createSubscription(name.toString(), topic.toString(), pushConfig, ackDeadlineSeconds);
    @@ -344,7 +345,7 @@ public final Subscription createSubscription(
        * 
    
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   TopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Subscription request = Subscription.newBuilder()
        *     .setName(name.toString())
        *     .setTopic(topic.toString())
    @@ -378,7 +379,77 @@ public final Subscription createSubscription(Subscription request) {
        * 
    
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   TopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    +   *   int ackDeadlineSeconds = 0;
    +   *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    +   * }
    +   * 
    + * + * @param name 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"`. + * @param topic 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. + * @param 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. + * @param ackDeadlineSeconds 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 + * <i>outstanding</i>. 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #createSubscription(ProjectSubscriptionName, TopicName, PushConfig, + * int)} instead. + */ + public final Subscription createSubscription( + ProjectSubscriptionName name, + ProjectTopicName topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic == null ? null : topic.toString()) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a subscription to a given topic. See the <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. + * + *

    Sample code: + * + *

    
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Subscription request = Subscription.newBuilder()
        *     .setName(name.toString())
        *     .setTopic(topic.toString())
    @@ -1924,23 +1995,21 @@ public final UnaryCallable seekCallable() {
        *
        * 
    
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
        *   Policy policy = Policy.newBuilder().build();
    -   *   Policy response = subscriptionAdminClient.setIamPolicy(formattedResource, policy);
    +   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
    +   *     .setResource(resource.toString())
    +   *     .setPolicy(policy)
    +   *     .build();
    +   *   Policy response = subscriptionAdminClient.setIamPolicy(request);
        * }
        * 
    * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param 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. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1952,22 +2021,25 @@ public final Policy setIamPolicy(String resource, Policy policy) { *

    Sample code: * *

    
    -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
        *   Policy policy = Policy.newBuilder().build();
    -   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
    -   *     .setResource(formattedResource)
    -   *     .setPolicy(policy)
    -   *     .build();
    -   *   Policy response = subscriptionAdminClient.setIamPolicy(request);
    +   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
        * }
        * 
    * - * @param request The request object containing all of the parameters for the API call. + * @param resource REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + * @param 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. */ - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); + public final Policy setIamPolicy(String resource, Policy policy) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); + return setIamPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1980,10 +2052,10 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * *
    
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
        *   Policy policy = Policy.newBuilder().build();
        *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
    -   *     .setResource(formattedResource)
    +   *     .setResource(resource.toString())
        *     .setPolicy(policy)
        *     .build();
        *   ApiFuture<Policy> future = subscriptionAdminClient.setIamPolicyCallable().futureCall(request);
    @@ -2005,18 +2077,19 @@ public final UnaryCallable setIamPolicyCallable() {
        *
        * 
    
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    -   *   Policy response = subscriptionAdminClient.getIamPolicy(formattedResource);
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
    +   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
    +   *     .setResource(resource.toString())
    +   *     .build();
    +   *   Policy response = subscriptionAdminClient.getIamPolicy(request);
        * }
        * 
    * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2027,20 +2100,20 @@ public final Policy getIamPolicy(String resource) { *

    Sample code: * *

    
    -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    -   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
    -   *     .setResource(formattedResource)
    -   *     .build();
    -   *   Policy response = subscriptionAdminClient.getIamPolicy(request);
    +   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
        * }
        * 
    * - * @param request The request object containing all of the parameters for the API call. + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2052,9 +2125,9 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * *
    
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
        *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
    -   *     .setResource(formattedResource)
    +   *     .setResource(resource.toString())
        *     .build();
        *   ApiFuture<Policy> future = subscriptionAdminClient.getIamPolicyCallable().futureCall(request);
        *   // Do something
    @@ -2079,27 +2152,21 @@ public final UnaryCallable getIamPolicyCallable() {
        *
        * 
    
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
        *   List<String> permissions = new ArrayList<>();
    -   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(formattedResource, permissions);
    +   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
    +   *     .setResource(resource.toString())
    +   *     .addAllPermissions(permissions)
    +   *     .build();
    +   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(request);
        * }
        * 
    * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2114,22 +2181,29 @@ public final TestIamPermissionsResponse testIamPermissions( *

    Sample code: * *

    
    -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
        *   List<String> permissions = new ArrayList<>();
    -   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
    -   *     .setResource(formattedResource)
    -   *     .addAllPermissions(permissions)
    -   *     .build();
    -   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(request);
    +   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
        * }
        * 
    * - * @param request The request object containing all of the parameters for the API call. + * @param resource REQUIRED: The resource for which the policy detail is being requested. See the + * operation documentation for the appropriate value for this field. + * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. */ - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); + public final TestIamPermissionsResponse testIamPermissions( + String resource, List permissions) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(resource) + .addAllPermissions(permissions) + .build(); + return testIamPermissions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -2145,10 +2219,10 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * *
    
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
        *   List<String> permissions = new ArrayList<>();
        *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
    -   *     .setResource(formattedResource)
    +   *     .setResource(resource.toString())
        *     .addAllPermissions(permissions)
        *     .build();
        *   ApiFuture<TestIamPermissionsResponse> future = subscriptionAdminClient.testIamPermissionsCallable().futureCall(request);
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    index 1612e898f52a..11951c869933 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    @@ -49,6 +49,7 @@
     import com.google.pubsub.v1.PublishResponse;
     import com.google.pubsub.v1.PubsubMessage;
     import com.google.pubsub.v1.Topic;
    +import com.google.pubsub.v1.TopicName;
     import com.google.pubsub.v1.UpdateTopicRequest;
     import java.io.IOException;
     import java.util.List;
    @@ -68,7 +69,7 @@
      * 
      * 
      * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    - *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    + *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   Topic response = topicAdminClient.createTopic(name);
      * }
      * 
    @@ -185,7 +186,7 @@ public PublisherStub getStub() {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic response = topicAdminClient.createTopic(name);
        * }
        * 
    @@ -197,7 +198,7 @@ public PublisherStub getStub() { * length, and it must not start with `"goog"`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Topic createTopic(ProjectTopicName name) { + public final Topic createTopic(TopicName name) { Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); return createTopic(request); } @@ -212,7 +213,7 @@ public final Topic createTopic(ProjectTopicName name) { * *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic response = topicAdminClient.createTopic(name.toString());
        * }
        * 
    @@ -240,6 +241,34 @@ public final Topic createTopic(String name) { *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   Topic response = topicAdminClient.createTopic(name);
    +   * }
    +   * 
    + * + * @param name 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"`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #createTopic(TopicName)} instead. + */ + public final Topic createTopic(ProjectTopicName name) { + Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); + return createTopic(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates the given topic with the given name. See the <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic request = Topic.newBuilder()
        *     .setName(name.toString())
        *     .build();
    @@ -264,7 +293,7 @@ public final Topic createTopic(Topic request) {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic request = Topic.newBuilder()
        *     .setName(name.toString())
        *     .build();
    @@ -335,7 +364,7 @@ public final UnaryCallable updateTopicCallable() {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   ByteString data = ByteString.copyFromUtf8("");
        *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
        *     .setData(data)
    @@ -351,7 +380,7 @@ public final UnaryCallable updateTopicCallable() {
        * @throws com.google.api.gax.rpc.ApiException if the remote call fails
        */
       /* package-private */ final PublishResponse publish(
    -      ProjectTopicName topic, List messages) {
    +      TopicName topic, List messages) {
         PublishRequest request =
             PublishRequest.newBuilder()
                 .setTopic(topic == null ? null : topic.toString())
    @@ -368,7 +397,7 @@ public final UnaryCallable updateTopicCallable() {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   ByteString data = ByteString.copyFromUtf8("");
        *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
        *     .setData(data)
    @@ -397,7 +426,7 @@ public final UnaryCallable updateTopicCallable() {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   ByteString data = ByteString.copyFromUtf8("");
        *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
        *     .setData(data)
    @@ -426,7 +455,7 @@ public final UnaryCallable updateTopicCallable() {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   ByteString data = ByteString.copyFromUtf8("");
        *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
        *     .setData(data)
    @@ -454,7 +483,7 @@ public final UnaryCallable updateTopicCallable() {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic response = topicAdminClient.getTopic(topic);
        * }
        * 
    @@ -463,7 +492,7 @@ public final UnaryCallable updateTopicCallable() { * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Topic getTopic(ProjectTopicName topic) { + public final Topic getTopic(TopicName topic) { GetTopicRequest request = GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); return getTopic(request); @@ -477,7 +506,7 @@ public final Topic getTopic(ProjectTopicName topic) { * *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic response = topicAdminClient.getTopic(topic.toString());
        * }
        * 
    @@ -500,6 +529,30 @@ public final Topic getTopic(String topic) { *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   Topic response = topicAdminClient.getTopic(topic);
    +   * }
    +   * 
    + * + * @param topic Required. The name of the topic to get. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getTopic(TopicName)} instead. + */ + public final Topic getTopic(ProjectTopicName topic) { + GetTopicRequest request = + GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); + return getTopic(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration of a topic. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   GetTopicRequest request = GetTopicRequest.newBuilder()
        *     .setTopic(topic.toString())
        *     .build();
    @@ -522,7 +575,7 @@ public final Topic getTopic(GetTopicRequest request) {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   GetTopicRequest request = GetTopicRequest.newBuilder()
        *     .setTopic(topic.toString())
        *     .build();
    @@ -675,7 +728,7 @@ public final UnaryCallable listTopicsCall
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic).iterateAllAsProjectSubscriptionName()) {
        *     // doThingsWith(element);
        *   }
    @@ -686,7 +739,7 @@ public final UnaryCallable listTopicsCall
        *     `projects/{project}/topics/{topic}`.
        * @throws com.google.api.gax.rpc.ApiException if the remote call fails
        */
    -  public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) {
    +  public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(TopicName topic) {
         ListTopicSubscriptionsRequest request =
             ListTopicSubscriptionsRequest.newBuilder()
                 .setTopic(topic == null ? null : topic.toString())
    @@ -702,7 +755,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectT
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic.toString()).iterateAllAsProjectSubscriptionName()) {
        *     // doThingsWith(element);
        *   }
    @@ -728,6 +781,34 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(String t
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic).iterateAllAsProjectSubscriptionName()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * 
    + * + * @param topic Required. The name of the topic that subscriptions are attached to. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #listTopicSubscriptions(TopicName)} instead. + */ + public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) { + ListTopicSubscriptionsRequest request = + ListTopicSubscriptionsRequest.newBuilder() + .setTopic(topic == null ? null : topic.toString()) + .build(); + return listTopicSubscriptions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the names of the subscriptions on this topic. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder()
        *     .setTopic(topic.toString())
        *     .build();
    @@ -753,7 +834,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder()
        *     .setTopic(topic.toString())
        *     .build();
    @@ -778,7 +859,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder()
        *     .setTopic(topic.toString())
        *     .build();
    @@ -813,7 +894,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   topicAdminClient.deleteTopic(topic);
        * }
        * 
    @@ -822,7 +903,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteTopic(ProjectTopicName topic) { + public final void deleteTopic(TopicName topic) { DeleteTopicRequest request = DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); deleteTopic(request); @@ -839,7 +920,7 @@ public final void deleteTopic(ProjectTopicName topic) { * *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   topicAdminClient.deleteTopic(topic.toString());
        * }
        * 
    @@ -865,6 +946,33 @@ public final void deleteTopic(String topic) { *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   topicAdminClient.deleteTopic(topic);
    +   * }
    +   * 
    + * + * @param topic Required. Name of the topic to delete. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #deleteTopic(TopicName)} instead. + */ + public final void deleteTopic(ProjectTopicName topic) { + DeleteTopicRequest request = + DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); + deleteTopic(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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_`. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   DeleteTopicRequest request = DeleteTopicRequest.newBuilder()
        *     .setTopic(topic.toString())
        *     .build();
    @@ -890,7 +998,7 @@ public final void deleteTopic(DeleteTopicRequest request) {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   DeleteTopicRequest request = DeleteTopicRequest.newBuilder()
        *     .setTopic(topic.toString())
        *     .build();
    @@ -914,23 +1022,21 @@ public final UnaryCallable deleteTopicCallable() {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
        *   Policy policy = Policy.newBuilder().build();
    -   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
    +   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
    +   *     .setResource(resource.toString())
    +   *     .setPolicy(policy)
    +   *     .build();
    +   *   Policy response = topicAdminClient.setIamPolicy(request);
        * }
        * 
    * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param 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. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -945,19 +1051,22 @@ public final Policy setIamPolicy(String resource, Policy policy) { * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]"); * Policy policy = Policy.newBuilder().build(); - * SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - * .setResource(formattedResource) - * .setPolicy(policy) - * .build(); - * Policy response = topicAdminClient.setIamPolicy(request); + * Policy response = topicAdminClient.setIamPolicy(formattedResource, policy); * } *
    * - * @param request The request object containing all of the parameters for the API call. + * @param resource REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + * @param 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. */ - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); + public final Policy setIamPolicy(String resource, Policy policy) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); + return setIamPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -970,10 +1079,10 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
        *   Policy policy = Policy.newBuilder().build();
        *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
    -   *     .setResource(formattedResource)
    +   *     .setResource(resource.toString())
        *     .setPolicy(policy)
        *     .build();
        *   ApiFuture<Policy> future = topicAdminClient.setIamPolicyCallable().futureCall(request);
    @@ -995,18 +1104,19 @@ public final UnaryCallable setIamPolicyCallable() {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    -   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
    +   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
    +   *     .setResource(resource.toString())
    +   *     .build();
    +   *   Policy response = topicAdminClient.getIamPolicy(request);
        * }
        * 
    * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1019,18 +1129,18 @@ public final Policy getIamPolicy(String resource) { *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    -   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
    -   *     .setResource(formattedResource)
    -   *     .build();
    -   *   Policy response = topicAdminClient.getIamPolicy(request);
    +   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
        * }
        * 
    * - * @param request The request object containing all of the parameters for the API call. + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1042,9 +1152,9 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
        *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
    -   *     .setResource(formattedResource)
    +   *     .setResource(resource.toString())
        *     .build();
        *   ApiFuture<Policy> future = topicAdminClient.getIamPolicyCallable().futureCall(request);
        *   // Do something
    @@ -1069,27 +1179,21 @@ public final UnaryCallable getIamPolicyCallable() {
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
        *   List<String> permissions = new ArrayList<>();
    -   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
    +   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
    +   *     .setResource(resource.toString())
    +   *     .addAllPermissions(permissions)
    +   *     .build();
    +   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(request);
        * }
        * 
    * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1107,19 +1211,26 @@ public final TestIamPermissionsResponse testIamPermissions( * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]"); * List<String> permissions = new ArrayList<>(); - * TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - * .setResource(formattedResource) - * .addAllPermissions(permissions) - * .build(); - * TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(request); + * TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions); * } *
    * - * @param request The request object containing all of the parameters for the API call. + * @param resource REQUIRED: The resource for which the policy detail is being requested. See the + * operation documentation for the appropriate value for this field. + * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. */ - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); + public final TestIamPermissionsResponse testIamPermissions( + String resource, List permissions) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(resource) + .addAllPermissions(permissions) + .build(); + return testIamPermissions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -1135,10 +1246,10 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   ResourceName resource = ProjectName.of("[PROJECT]");
        *   List<String> permissions = new ArrayList<>();
        *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
    -   *     .setResource(formattedResource)
    +   *     .setResource(resource.toString())
        *     .addAllPermissions(permissions)
        *     .build();
        *   ApiFuture<TestIamPermissionsResponse> future = topicAdminClient.testIamPermissionsCallable().futureCall(request);
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    index 1df92ab40a1f..f7d1e28c216f 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    @@ -31,7 +31,7 @@
      * 
      * 
      * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    - *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    + *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   Topic response = topicAdminClient.createTopic(name);
      * }
      * 
    @@ -51,7 +51,7 @@
      * 
      * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    - *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    + *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   PushConfig pushConfig = PushConfig.newBuilder().build();
      *   int ackDeadlineSeconds = 0;
      *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java
    index 34f4f2cda60b..356f1c20787e 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java
    @@ -94,7 +94,6 @@ public void testTopicPolicy() {
         ProjectTopicName topicName =
             ProjectTopicName.of(projectId, formatForTest("testing-topic-policy"));
         topicAdminClient.createTopic(topicName);
    -
         Policy policy = topicAdminClient.getIamPolicy(topicName.toString());
         Binding binding =
             Binding.newBuilder().setRole("roles/viewer").addMembers("allAuthenticatedUsers").build();
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    index cd93678373ef..bfe959b50918 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    @@ -29,6 +29,7 @@
     import com.google.api.gax.rpc.BidiStreamingCallable;
     import com.google.api.gax.rpc.InvalidArgumentException;
     import com.google.api.gax.rpc.StatusCode;
    +import com.google.api.resourcenames.ResourceName;
     import com.google.common.collect.Lists;
     import com.google.iam.v1.GetIamPolicyRequest;
     import com.google.iam.v1.Policy;
    @@ -54,11 +55,9 @@
     import com.google.pubsub.v1.ProjectName;
     import com.google.pubsub.v1.ProjectSnapshotName;
     import com.google.pubsub.v1.ProjectSubscriptionName;
    -import com.google.pubsub.v1.ProjectTopicName;
     import com.google.pubsub.v1.PullRequest;
     import com.google.pubsub.v1.PullResponse;
     import com.google.pubsub.v1.PushConfig;
    -import com.google.pubsub.v1.ReceivedMessage;
     import com.google.pubsub.v1.SeekRequest;
     import com.google.pubsub.v1.SeekResponse;
     import com.google.pubsub.v1.Snapshot;
    @@ -131,10 +130,11 @@ public void tearDown() throws Exception {
       @SuppressWarnings("all")
       public void createSubscriptionTest() {
         ProjectSubscriptionName name2 = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -    TopicName topic2 = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName topic2 = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         int ackDeadlineSeconds2 = 921632575;
         boolean retainAckedMessages = false;
         boolean enableMessageOrdering = true;
    +    String filter = "filter-1274492040";
         Subscription expectedResponse =
             Subscription.newBuilder()
                 .setName(name2.toString())
    @@ -142,11 +142,12 @@ public void createSubscriptionTest() {
                 .setAckDeadlineSeconds(ackDeadlineSeconds2)
                 .setRetainAckedMessages(retainAckedMessages)
                 .setEnableMessageOrdering(enableMessageOrdering)
    +            .setFilter(filter)
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
         ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -    ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         PushConfig pushConfig = PushConfig.newBuilder().build();
         int ackDeadlineSeconds = 2135351438;
     
    @@ -159,7 +160,7 @@ public void createSubscriptionTest() {
         Subscription actualRequest = (Subscription) actualRequests.get(0);
     
         Assert.assertEquals(name, ProjectSubscriptionName.parse(actualRequest.getName()));
    -    Assert.assertEquals(Objects.toString(topic), actualRequest.getTopic());
    +    Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic()));
         Assert.assertEquals(pushConfig, actualRequest.getPushConfig());
         Assert.assertEquals(ackDeadlineSeconds, actualRequest.getAckDeadlineSeconds());
         Assert.assertTrue(
    @@ -176,7 +177,7 @@ public void createSubscriptionExceptionTest() throws Exception {
     
         try {
           ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -      ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +      TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
           PushConfig pushConfig = PushConfig.newBuilder().build();
           int ackDeadlineSeconds = 2135351438;
     
    @@ -191,10 +192,11 @@ public void createSubscriptionExceptionTest() throws Exception {
       @SuppressWarnings("all")
       public void getSubscriptionTest() {
         ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -    TopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         int ackDeadlineSeconds = 2135351438;
         boolean retainAckedMessages = false;
         boolean enableMessageOrdering = true;
    +    String filter = "filter-1274492040";
         Subscription expectedResponse =
             Subscription.newBuilder()
                 .setName(name.toString())
    @@ -202,6 +204,7 @@ public void getSubscriptionTest() {
                 .setAckDeadlineSeconds(ackDeadlineSeconds)
                 .setRetainAckedMessages(retainAckedMessages)
                 .setEnableMessageOrdering(enableMessageOrdering)
    +            .setFilter(filter)
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    @@ -244,10 +247,11 @@ public void getSubscriptionExceptionTest() throws Exception {
       @SuppressWarnings("all")
       public void updateSubscriptionTest() {
         ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -    TopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         int ackDeadlineSeconds2 = 921632575;
         boolean retainAckedMessages = false;
         boolean enableMessageOrdering = true;
    +    String filter = "filter-1274492040";
         Subscription expectedResponse =
             Subscription.newBuilder()
                 .setName(name.toString())
    @@ -255,6 +259,7 @@ public void updateSubscriptionTest() {
                 .setAckDeadlineSeconds(ackDeadlineSeconds2)
                 .setRetainAckedMessages(retainAckedMessages)
                 .setEnableMessageOrdering(enableMessageOrdering)
    +            .setFilter(filter)
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    @@ -538,10 +543,7 @@ public void pullExceptionTest() throws Exception {
       @Test
       @SuppressWarnings("all")
       public void streamingPullTest() throws Exception {
    -    ReceivedMessage receivedMessagesElement = ReceivedMessage.newBuilder().build();
    -    List receivedMessages = Arrays.asList(receivedMessagesElement);
    -    StreamingPullResponse expectedResponse =
    -        StreamingPullResponse.newBuilder().addAllReceivedMessages(receivedMessages).build();
    +    StreamingPullResponse expectedResponse = StreamingPullResponse.newBuilder().build();
         mockSubscriber.addResponse(expectedResponse);
         ProjectSubscriptionName subscription =
             ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    @@ -695,7 +697,7 @@ public void listSnapshotsExceptionTest() throws Exception {
       @SuppressWarnings("all")
       public void createSnapshotTest() {
         ProjectSnapshotName name2 = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -    ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         Snapshot expectedResponse =
             Snapshot.newBuilder().setName(name2.toString()).setTopic(topic.toString()).build();
         mockSubscriber.addResponse(expectedResponse);
    @@ -742,7 +744,7 @@ public void createSnapshotExceptionTest() throws Exception {
       @SuppressWarnings("all")
       public void updateSnapshotTest() {
         ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -    ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         Snapshot expectedResponse =
             Snapshot.newBuilder().setName(name.toString()).setTopic(topic.toString()).build();
         mockSubscriber.addResponse(expectedResponse);
    @@ -886,17 +888,19 @@ public void setIamPolicyTest() {
         Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build();
         mockIAMPolicy.addResponse(expectedResponse);
     
    -    String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +    ResourceName resource = ProjectName.of("[PROJECT]");
         Policy policy = Policy.newBuilder().build();
    +    SetIamPolicyRequest request =
    +        SetIamPolicyRequest.newBuilder().setResource(resource.toString()).setPolicy(policy).build();
     
    -    Policy actualResponse = client.setIamPolicy(formattedResource, policy);
    +    Policy actualResponse = client.setIamPolicy(request);
         Assert.assertEquals(expectedResponse, actualResponse);
     
         List actualRequests = mockIAMPolicy.getRequests();
         Assert.assertEquals(1, actualRequests.size());
         SetIamPolicyRequest actualRequest = (SetIamPolicyRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(formattedResource, actualRequest.getResource());
    +    Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource()));
         Assert.assertEquals(policy, actualRequest.getPolicy());
         Assert.assertTrue(
             channelProvider.isHeaderSent(
    @@ -911,10 +915,15 @@ public void setIamPolicyExceptionTest() throws Exception {
         mockIAMPolicy.addException(exception);
     
         try {
    -      String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +      ResourceName resource = ProjectName.of("[PROJECT]");
           Policy policy = Policy.newBuilder().build();
    +      SetIamPolicyRequest request =
    +          SetIamPolicyRequest.newBuilder()
    +              .setResource(resource.toString())
    +              .setPolicy(policy)
    +              .build();
     
    -      client.setIamPolicy(formattedResource, policy);
    +      client.setIamPolicy(request);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
           // Expected exception
    @@ -929,16 +938,18 @@ public void getIamPolicyTest() {
         Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build();
         mockIAMPolicy.addResponse(expectedResponse);
     
    -    String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +    ResourceName resource = ProjectName.of("[PROJECT]");
    +    GetIamPolicyRequest request =
    +        GetIamPolicyRequest.newBuilder().setResource(resource.toString()).build();
     
    -    Policy actualResponse = client.getIamPolicy(formattedResource);
    +    Policy actualResponse = client.getIamPolicy(request);
         Assert.assertEquals(expectedResponse, actualResponse);
     
         List actualRequests = mockIAMPolicy.getRequests();
         Assert.assertEquals(1, actualRequests.size());
         GetIamPolicyRequest actualRequest = (GetIamPolicyRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(formattedResource, actualRequest.getResource());
    +    Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource()));
         Assert.assertTrue(
             channelProvider.isHeaderSent(
                 ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    @@ -952,9 +963,11 @@ public void getIamPolicyExceptionTest() throws Exception {
         mockIAMPolicy.addException(exception);
     
         try {
    -      String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +      ResourceName resource = ProjectName.of("[PROJECT]");
    +      GetIamPolicyRequest request =
    +          GetIamPolicyRequest.newBuilder().setResource(resource.toString()).build();
     
    -      client.getIamPolicy(formattedResource);
    +      client.getIamPolicy(request);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
           // Expected exception
    @@ -967,18 +980,22 @@ public void testIamPermissionsTest() {
         TestIamPermissionsResponse expectedResponse = TestIamPermissionsResponse.newBuilder().build();
         mockIAMPolicy.addResponse(expectedResponse);
     
    -    String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +    ResourceName resource = ProjectName.of("[PROJECT]");
         List permissions = new ArrayList<>();
    +    TestIamPermissionsRequest request =
    +        TestIamPermissionsRequest.newBuilder()
    +            .setResource(resource.toString())
    +            .addAllPermissions(permissions)
    +            .build();
     
    -    TestIamPermissionsResponse actualResponse =
    -        client.testIamPermissions(formattedResource, permissions);
    +    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
         Assert.assertEquals(expectedResponse, actualResponse);
     
         List actualRequests = mockIAMPolicy.getRequests();
         Assert.assertEquals(1, actualRequests.size());
         TestIamPermissionsRequest actualRequest = (TestIamPermissionsRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(formattedResource, actualRequest.getResource());
    +    Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource()));
         Assert.assertEquals(permissions, actualRequest.getPermissionsList());
         Assert.assertTrue(
             channelProvider.isHeaderSent(
    @@ -993,10 +1010,15 @@ public void testIamPermissionsExceptionTest() throws Exception {
         mockIAMPolicy.addException(exception);
     
         try {
    -      String formattedResource = ProjectSubscriptionName.format("[PROJECT]", "[SUBSCRIPTION]");
    +      ResourceName resource = ProjectName.of("[PROJECT]");
           List permissions = new ArrayList<>();
    +      TestIamPermissionsRequest request =
    +          TestIamPermissionsRequest.newBuilder()
    +              .setResource(resource.toString())
    +              .addAllPermissions(permissions)
    +              .build();
     
    -      client.testIamPermissions(formattedResource, permissions);
    +      client.testIamPermissions(request);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
           // Expected exception
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    index 72d7bf86c009..7d524361bf38 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    @@ -25,6 +25,7 @@
     import com.google.api.gax.grpc.testing.MockServiceHelper;
     import com.google.api.gax.rpc.ApiClientHeaderProvider;
     import com.google.api.gax.rpc.InvalidArgumentException;
    +import com.google.api.resourcenames.ResourceName;
     import com.google.common.collect.Lists;
     import com.google.iam.v1.GetIamPolicyRequest;
     import com.google.iam.v1.Policy;
    @@ -43,11 +44,11 @@
     import com.google.pubsub.v1.ListTopicsResponse;
     import com.google.pubsub.v1.ProjectName;
     import com.google.pubsub.v1.ProjectSubscriptionName;
    -import com.google.pubsub.v1.ProjectTopicName;
     import com.google.pubsub.v1.PublishRequest;
     import com.google.pubsub.v1.PublishResponse;
     import com.google.pubsub.v1.PubsubMessage;
     import com.google.pubsub.v1.Topic;
    +import com.google.pubsub.v1.TopicName;
     import com.google.pubsub.v1.UpdateTopicRequest;
     import io.grpc.Status;
     import io.grpc.StatusRuntimeException;
    @@ -55,6 +56,7 @@
     import java.util.ArrayList;
     import java.util.Arrays;
     import java.util.List;
    +import java.util.Objects;
     import java.util.UUID;
     import org.junit.After;
     import org.junit.AfterClass;
    @@ -109,13 +111,13 @@ public void tearDown() throws Exception {
       @Test
       @SuppressWarnings("all")
       public void createTopicTest() {
    -    ProjectTopicName name2 = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName name2 = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         String kmsKeyName = "kmsKeyName2094986649";
         Topic expectedResponse =
             Topic.newBuilder().setName(name2.toString()).setKmsKeyName(kmsKeyName).build();
         mockPublisher.addResponse(expectedResponse);
     
    -    ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
     
         Topic actualResponse = client.createTopic(name);
         Assert.assertEquals(expectedResponse, actualResponse);
    @@ -124,7 +126,7 @@ public void createTopicTest() {
         Assert.assertEquals(1, actualRequests.size());
         Topic actualRequest = (Topic) actualRequests.get(0);
     
    -    Assert.assertEquals(name, ProjectTopicName.parse(actualRequest.getName()));
    +    Assert.assertEquals(name, TopicName.parse(actualRequest.getName()));
         Assert.assertTrue(
             channelProvider.isHeaderSent(
                 ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    @@ -138,7 +140,7 @@ public void createTopicExceptionTest() throws Exception {
         mockPublisher.addException(exception);
     
         try {
    -      ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +      TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
     
           client.createTopic(name);
           Assert.fail("No exception raised");
    @@ -150,7 +152,7 @@ public void createTopicExceptionTest() throws Exception {
       @Test
       @SuppressWarnings("all")
       public void updateTopicTest() {
    -    ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         String kmsKeyName = "kmsKeyName2094986649";
         Topic expectedResponse =
             Topic.newBuilder().setName(name.toString()).setKmsKeyName(kmsKeyName).build();
    @@ -204,7 +206,7 @@ public void publishTest() {
             PublishResponse.newBuilder().addAllMessageIds(messageIds).build();
         mockPublisher.addResponse(expectedResponse);
     
    -    ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         ByteString data = ByteString.copyFromUtf8("-86");
         PubsubMessage messagesElement = PubsubMessage.newBuilder().setData(data).build();
         List messages = Arrays.asList(messagesElement);
    @@ -216,7 +218,7 @@ public void publishTest() {
         Assert.assertEquals(1, actualRequests.size());
         PublishRequest actualRequest = (PublishRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(topic, ProjectTopicName.parse(actualRequest.getTopic()));
    +    Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic()));
         Assert.assertEquals(messages, actualRequest.getMessagesList());
         Assert.assertTrue(
             channelProvider.isHeaderSent(
    @@ -231,7 +233,7 @@ public void publishExceptionTest() throws Exception {
         mockPublisher.addException(exception);
     
         try {
    -      ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +      TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
           ByteString data = ByteString.copyFromUtf8("-86");
           PubsubMessage messagesElement = PubsubMessage.newBuilder().setData(data).build();
           List messages = Arrays.asList(messagesElement);
    @@ -246,13 +248,13 @@ public void publishExceptionTest() throws Exception {
       @Test
       @SuppressWarnings("all")
       public void getTopicTest() {
    -    ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         String kmsKeyName = "kmsKeyName2094986649";
         Topic expectedResponse =
             Topic.newBuilder().setName(name.toString()).setKmsKeyName(kmsKeyName).build();
         mockPublisher.addResponse(expectedResponse);
     
    -    ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
     
         Topic actualResponse = client.getTopic(topic);
         Assert.assertEquals(expectedResponse, actualResponse);
    @@ -261,7 +263,7 @@ public void getTopicTest() {
         Assert.assertEquals(1, actualRequests.size());
         GetTopicRequest actualRequest = (GetTopicRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(topic, ProjectTopicName.parse(actualRequest.getTopic()));
    +    Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic()));
         Assert.assertTrue(
             channelProvider.isHeaderSent(
                 ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    @@ -275,7 +277,7 @@ public void getTopicExceptionTest() throws Exception {
         mockPublisher.addException(exception);
     
         try {
    -      ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +      TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
     
           client.getTopic(topic);
           Assert.fail("No exception raised");
    @@ -346,7 +348,7 @@ public void listTopicSubscriptionsTest() {
                 .build();
         mockPublisher.addResponse(expectedResponse);
     
    -    ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
     
         ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(topic);
     
    @@ -365,7 +367,7 @@ public void listTopicSubscriptionsTest() {
         ListTopicSubscriptionsRequest actualRequest =
             (ListTopicSubscriptionsRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(topic, ProjectTopicName.parse(actualRequest.getTopic()));
    +    Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic()));
         Assert.assertTrue(
             channelProvider.isHeaderSent(
                 ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    @@ -379,7 +381,7 @@ public void listTopicSubscriptionsExceptionTest() throws Exception {
         mockPublisher.addException(exception);
     
         try {
    -      ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +      TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
     
           client.listTopicSubscriptions(topic);
           Assert.fail("No exception raised");
    @@ -394,7 +396,7 @@ public void deleteTopicTest() {
         Empty expectedResponse = Empty.newBuilder().build();
         mockPublisher.addResponse(expectedResponse);
     
    -    ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +    TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
     
         client.deleteTopic(topic);
     
    @@ -402,7 +404,7 @@ public void deleteTopicTest() {
         Assert.assertEquals(1, actualRequests.size());
         DeleteTopicRequest actualRequest = (DeleteTopicRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(topic, ProjectTopicName.parse(actualRequest.getTopic()));
    +    Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic()));
         Assert.assertTrue(
             channelProvider.isHeaderSent(
                 ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    @@ -416,7 +418,7 @@ public void deleteTopicExceptionTest() throws Exception {
         mockPublisher.addException(exception);
     
         try {
    -      ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +      TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
     
           client.deleteTopic(topic);
           Assert.fail("No exception raised");
    @@ -433,17 +435,19 @@ public void setIamPolicyTest() {
         Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build();
         mockIAMPolicy.addResponse(expectedResponse);
     
    -    String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +    ResourceName resource = ProjectName.of("[PROJECT]");
         Policy policy = Policy.newBuilder().build();
    +    SetIamPolicyRequest request =
    +        SetIamPolicyRequest.newBuilder().setResource(resource.toString()).setPolicy(policy).build();
     
    -    Policy actualResponse = client.setIamPolicy(formattedResource, policy);
    +    Policy actualResponse = client.setIamPolicy(request);
         Assert.assertEquals(expectedResponse, actualResponse);
     
         List actualRequests = mockIAMPolicy.getRequests();
         Assert.assertEquals(1, actualRequests.size());
         SetIamPolicyRequest actualRequest = (SetIamPolicyRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(formattedResource, actualRequest.getResource());
    +    Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource()));
         Assert.assertEquals(policy, actualRequest.getPolicy());
         Assert.assertTrue(
             channelProvider.isHeaderSent(
    @@ -458,10 +462,15 @@ public void setIamPolicyExceptionTest() throws Exception {
         mockIAMPolicy.addException(exception);
     
         try {
    -      String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +      ResourceName resource = ProjectName.of("[PROJECT]");
           Policy policy = Policy.newBuilder().build();
    +      SetIamPolicyRequest request =
    +          SetIamPolicyRequest.newBuilder()
    +              .setResource(resource.toString())
    +              .setPolicy(policy)
    +              .build();
     
    -      client.setIamPolicy(formattedResource, policy);
    +      client.setIamPolicy(request);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
           // Expected exception
    @@ -476,16 +485,18 @@ public void getIamPolicyTest() {
         Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build();
         mockIAMPolicy.addResponse(expectedResponse);
     
    -    String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +    ResourceName resource = ProjectName.of("[PROJECT]");
    +    GetIamPolicyRequest request =
    +        GetIamPolicyRequest.newBuilder().setResource(resource.toString()).build();
     
    -    Policy actualResponse = client.getIamPolicy(formattedResource);
    +    Policy actualResponse = client.getIamPolicy(request);
         Assert.assertEquals(expectedResponse, actualResponse);
     
         List actualRequests = mockIAMPolicy.getRequests();
         Assert.assertEquals(1, actualRequests.size());
         GetIamPolicyRequest actualRequest = (GetIamPolicyRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(formattedResource, actualRequest.getResource());
    +    Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource()));
         Assert.assertTrue(
             channelProvider.isHeaderSent(
                 ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    @@ -499,9 +510,11 @@ public void getIamPolicyExceptionTest() throws Exception {
         mockIAMPolicy.addException(exception);
     
         try {
    -      String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +      ResourceName resource = ProjectName.of("[PROJECT]");
    +      GetIamPolicyRequest request =
    +          GetIamPolicyRequest.newBuilder().setResource(resource.toString()).build();
     
    -      client.getIamPolicy(formattedResource);
    +      client.getIamPolicy(request);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
           // Expected exception
    @@ -514,18 +527,22 @@ public void testIamPermissionsTest() {
         TestIamPermissionsResponse expectedResponse = TestIamPermissionsResponse.newBuilder().build();
         mockIAMPolicy.addResponse(expectedResponse);
     
    -    String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +    ResourceName resource = ProjectName.of("[PROJECT]");
         List permissions = new ArrayList<>();
    +    TestIamPermissionsRequest request =
    +        TestIamPermissionsRequest.newBuilder()
    +            .setResource(resource.toString())
    +            .addAllPermissions(permissions)
    +            .build();
     
    -    TestIamPermissionsResponse actualResponse =
    -        client.testIamPermissions(formattedResource, permissions);
    +    TestIamPermissionsResponse actualResponse = client.testIamPermissions(request);
         Assert.assertEquals(expectedResponse, actualResponse);
     
         List actualRequests = mockIAMPolicy.getRequests();
         Assert.assertEquals(1, actualRequests.size());
         TestIamPermissionsRequest actualRequest = (TestIamPermissionsRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(formattedResource, actualRequest.getResource());
    +    Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource()));
         Assert.assertEquals(permissions, actualRequest.getPermissionsList());
         Assert.assertTrue(
             channelProvider.isHeaderSent(
    @@ -540,10 +557,15 @@ public void testIamPermissionsExceptionTest() throws Exception {
         mockIAMPolicy.addException(exception);
     
         try {
    -      String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +      ResourceName resource = ProjectName.of("[PROJECT]");
           List permissions = new ArrayList<>();
    +      TestIamPermissionsRequest request =
    +          TestIamPermissionsRequest.newBuilder()
    +              .setResource(resource.toString())
    +              .addAllPermissions(permissions)
    +              .build();
     
    -      client.testIamPermissions(formattedResource, permissions);
    +      client.testIamPermissions(request);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
           // Expected exception
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java
    index 9549f7c6587f..abfffb2eef7f 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java
    @@ -122,7 +122,7 @@ public String toString() {
       }
     
       /** Builder for ProjectTopicName. */
    -  public static class Builder {
    +  public static class Builder extends TopicName.Builder {
     
         private String project;
         private String topic;
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    index 44f66abf3177..419f8a825819 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    @@ -99,6 +99,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
           internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor;
       static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable;
    +  static final com.google.protobuf.Descriptors.Descriptor
    +      internal_static_google_pubsub_v1_RetryPolicy_descriptor;
    +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +      internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable;
       static final com.google.protobuf.Descriptors.Descriptor
           internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
       static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    @@ -273,8 +277,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               + "oken\030\003 \001(\t\"H\n\032ListTopicSnapshotsResponse"
               + "\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token\030\002"
               + " \001(\t\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001 \001("
    -          + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"\351"
    -          + "\004\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005to"
    +          + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"\256"
    +          + "\005\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005to"
               + "pic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com"
               + "/Topic\0221\n\013push_config\030\004 \001(\0132\034.google.pub"
               + "sub.v1.PushConfig\022\034\n\024ack_deadline_second"
    @@ -284,200 +288,205 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               + "google.pubsub.v1.Subscription.LabelsEntr"
               + "y\022\037\n\027enable_message_ordering\030\n \001(\010\022=\n\021ex"
               + "piration_policy\030\013 \001(\0132\".google.pubsub.v1"
    -          + ".ExpirationPolicy\022>\n\022dead_letter_policy\030"
    -          + "\r \001(\0132\".google.pubsub.v1.DeadLetterPolic"
    -          + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002"
    -          + " \001(\t:\0028\001:X\352AU\n\"pubsub.googleapis.com/Sub"
    -          + "scription\022/projects/{project}/subscripti"
    -          + "ons/{subscription}\"L\n\020DeadLetterPolicy\022\031"
    -          + "\n\021dead_letter_topic\030\001 \001(\t\022\035\n\025max_deliver"
    -          + "y_attempts\030\002 \001(\005\":\n\020ExpirationPolicy\022&\n\003"
    -          + "ttl\030\001 \001(\0132\031.google.protobuf.Duration\"\255\002\n"
    -          + "\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\nat"
    -          + "tributes\030\002 \003(\0132,.google.pubsub.v1.PushCo"
    -          + "nfig.AttributesEntry\022<\n\noidc_token\030\003 \001(\013"
    -          + "2&.google.pubsub.v1.PushConfig.OidcToken"
    -          + "H\000\032<\n\tOidcToken\022\035\n\025service_account_email"
    -          + "\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017AttributesEn"
    -          + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025a"
    -          + "uthentication_method\"m\n\017ReceivedMessage\022"
    -          + "\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.googl"
    -          + "e.pubsub.v1.PubsubMessage\022\030\n\020delivery_at"
    -          + "tempt\030\003 \001(\005\"Z\n\026GetSubscriptionRequest\022@\n"
    -          + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog"
    -          + "leapis.com/Subscription\"\214\001\n\031UpdateSubscr"
    -          + "iptionRequest\0229\n\014subscription\030\001 \001(\0132\036.go"
    -          + "ogle.pubsub.v1.SubscriptionB\003\340A\002\0224\n\013upda"
    -          + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas"
    -          + "kB\003\340A\002\"\207\001\n\030ListSubscriptionsRequest\022D\n\007p"
    -          + "roject\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanag"
    -          + "er.googleapis.com/Project\022\021\n\tpage_size\030\002"
    -          + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubscrip"
    -          + "tionsResponse\0225\n\rsubscriptions\030\001 \003(\0132\036.g"
    -          + "oogle.pubsub.v1.Subscription\022\027\n\017next_pag"
    -          + "e_token\030\002 \001(\t\"]\n\031DeleteSubscriptionReque"
    +          + ".ExpirationPolicy\022\016\n\006filter\030\014 \001(\t\022>\n\022dea"
    +          + "d_letter_policy\030\r \001(\0132\".google.pubsub.v1"
    +          + ".DeadLetterPolicy\0223\n\014retry_policy\030\016 \001(\0132"
    +          + "\035.google.pubsub.v1.RetryPolicy\032-\n\013Labels"
    +          + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352"
    +          + "AU\n\"pubsub.googleapis.com/Subscription\022/"
    +          + "projects/{project}/subscriptions/{subscr"
    +          + "iption}\"u\n\013RetryPolicy\0222\n\017minimum_backof"
    +          + "f\030\001 \001(\0132\031.google.protobuf.Duration\0222\n\017ma"
    +          + "ximum_backoff\030\002 \001(\0132\031.google.protobuf.Du"
    +          + "ration\"L\n\020DeadLetterPolicy\022\031\n\021dead_lette"
    +          + "r_topic\030\001 \001(\t\022\035\n\025max_delivery_attempts\030\002"
    +          + " \001(\005\":\n\020ExpirationPolicy\022&\n\003ttl\030\001 \001(\0132\031."
    +          + "google.protobuf.Duration\"\255\002\n\nPushConfig\022"
    +          + "\025\n\rpush_endpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003"
    +          + "(\0132,.google.pubsub.v1.PushConfig.Attribu"
    +          + "tesEntry\022<\n\noidc_token\030\003 \001(\0132&.google.pu"
    +          + "bsub.v1.PushConfig.OidcTokenH\000\032<\n\tOidcTo"
    +          + "ken\022\035\n\025service_account_email\030\001 \001(\t\022\020\n\010au"
    +          + "dience\030\002 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001"
    +          + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authenticatio"
    +          + "n_method\"m\n\017ReceivedMessage\022\016\n\006ack_id\030\001 "
    +          + "\001(\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1."
    +          + "PubsubMessage\022\030\n\020delivery_attempt\030\003 \001(\005\""
    +          + "Z\n\026GetSubscriptionRequest\022@\n\014subscriptio"
    +          + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S"
    +          + "ubscription\"\214\001\n\031UpdateSubscriptionReques"
    +          + "t\0229\n\014subscription\030\001 \001(\0132\036.google.pubsub."
    +          + "v1.SubscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001("
    +          + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\207\001\n\030L"
    +          + "istSubscriptionsRequest\022D\n\007project\030\001 \001(\t"
    +          + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi"
    +          + "s.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage"
    +          + "_token\030\003 \001(\t\"k\n\031ListSubscriptionsRespons"
    +          + "e\0225\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub"
    +          + ".v1.Subscription\022\027\n\017next_page_token\030\002 \001("
    +          + "\t\"]\n\031DeleteSubscriptionRequest\022@\n\014subscr"
    +          + "iption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis."
    +          + "com/Subscription\"\223\001\n\027ModifyPushConfigReq"
    +          + "uest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubs"
    +          + "ub.googleapis.com/Subscription\0226\n\013push_c"
    +          + "onfig\030\002 \001(\0132\034.google.pubsub.v1.PushConfi"
    +          + "gB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription\030\001"
    +          + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs"
    +          + "cription\022!\n\022return_immediately\030\002 \001(\010B\005\030\001"
    +          + "\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"L\n\014PullRe"
    +          + "sponse\022<\n\021received_messages\030\001 \003(\0132!.goog"
    +          + "le.pubsub.v1.ReceivedMessage\"\225\001\n\030ModifyA"
    +          + "ckDeadlineRequest\022@\n\014subscription\030\001 \001(\tB"
    +          + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript"
    +          + "ion\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadlin"
    +          + "e_seconds\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeReque"
               + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub"
    -          + ".googleapis.com/Subscription\"\223\001\n\027ModifyP"
    -          + "ushConfigRequest\022@\n\014subscription\030\001 \001(\tB*"
    -          + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti"
    -          + "on\0226\n\013push_config\030\002 \001(\0132\034.google.pubsub."
    -          + "v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014su"
    -          + "bscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googlea"
    -          + "pis.com/Subscription\022!\n\022return_immediate"
    -          + "ly\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340"
    -          + "A\002\"L\n\014PullResponse\022<\n\021received_messages\030"
    -          + "\001 \003(\0132!.google.pubsub.v1.ReceivedMessage"
    -          + "\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subscri"
    -          + "ption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.c"
    -          + "om/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n"
    -          + "\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Ackn"
    -          + "owledgeRequest\022@\n\014subscription\030\001 \001(\tB*\340A"
    -          + "\002\372A$\n\"pubsub.googleapis.com/Subscription"
    -          + "\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\350\001\n\024StreamingPull"
    -          + "Request\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"p"
    -          + "ubsub.googleapis.com/Subscription\022\017\n\007ack"
    -          + "_ids\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030\003 "
    -          + "\003(\005\022\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022(\n\033"
    -          + "stream_ack_deadline_seconds\030\005 \001(\005B\003\340A\002\022\021"
    -          + "\n\tclient_id\030\006 \001(\t\"U\n\025StreamingPullRespon"
    -          + "se\022<\n\021received_messages\030\001 \003(\0132!.google.p"
    -          + "ubsub.v1.ReceivedMessage\"\203\002\n\025CreateSnaps"
    -          + "hotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub"
    -          + ".googleapis.com/Snapshot\022@\n\014subscription"
    -          + "\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su"
    -          + "bscription\022C\n\006labels\030\003 \003(\01323.google.pubs"
    -          + "ub.v1.CreateSnapshotRequest.LabelsEntry\032"
    -          + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001"
    -          + "(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010snap"
    -          + "shot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003"
    -          + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob"
    -          + "uf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001"
    -          + " \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googlea"
    -          + "pis.com/Topic\022/\n\013expire_time\030\003 \001(\0132\032.goo"
    -          + "gle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&"
    -          + ".google.pubsub.v1.Snapshot.LabelsEntry\032-"
    -          + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001("
    -          + "\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Snapsh"
    -          + "ot\022\'projects/{project}/snapshots/{snapsh"
    -          + "ot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 "
    -          + "\001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snaps"
    -          + "hot\"\203\001\n\024ListSnapshotsRequest\022D\n\007project\030"
    -          + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog"
    -          + "leapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n"
    -          + "\npage_token\030\003 \001(\t\"_\n\025ListSnapshotsRespon"
    -          + "se\022-\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1"
    -          + ".Snapshot\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\025De"
    -          + "leteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340"
    -          + "A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\276\001"
    -          + "\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002"
    -          + "\372A$\n\"pubsub.googleapis.com/Subscription\022"
    -          + "*\n\004time\030\002 \001(\0132\032.google.protobuf.Timestam"
    -          + "pH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubsub.googl"
    -          + "eapis.com/SnapshotH\000B\010\n\006target\"\016\n\014SeekRe"
    -          + "sponse2\363\t\n\tPublisher\022q\n\013CreateTopic\022\027.go"
    -          + "ogle.pubsub.v1.Topic\032\027.google.pubsub.v1."
    -          + "Topic\"0\202\323\344\223\002#\032\036/v1/{name=projects/*/topi"
    -          + "cs/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$.google."
    -          + "pubsub.v1.UpdateTopicRequest\032\027.google.pu"
    -          + "bsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name=p"
    -          + "rojects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .goo"
    -          + "gle.pubsub.v1.PublishRequest\032!.google.pu"
    -          + "bsub.v1.PublishResponse\"C\202\323\344\223\002,\"\'/v1/{to"
    -          + "pic=projects/*/topics/*}:publish:\001*\332A\016to"
    -          + "pic,messages\022w\n\010GetTopic\022!.google.pubsub"
    -          + ".v1.GetTopicRequest\032\027.google.pubsub.v1.T"
    -          + "opic\"/\202\323\344\223\002!\022\037/v1/{topic=projects/*/topi"
    -          + "cs/*}\332A\005topic\022\212\001\n\nListTopics\022#.google.pu"
    -          + "bsub.v1.ListTopicsRequest\032$.google.pubsu"
    -          + "b.v1.ListTopicsResponse\"1\202\323\344\223\002!\022\037/v1/{pr"
    -          + "oject=projects/*}/topics\332A\007project\022\272\001\n\026L"
    -          + "istTopicSubscriptions\022/.google.pubsub.v1"
    -          + ".ListTopicSubscriptionsRequest\0320.google."
    -          + "pubsub.v1.ListTopicSubscriptionsResponse"
    -          + "\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*"
    -          + "}/subscriptions\332A\005topic\022\252\001\n\022ListTopicSna"
    -          + "pshots\022+.google.pubsub.v1.ListTopicSnaps"
    -          + "hotsRequest\032,.google.pubsub.v1.ListTopic"
    -          + "SnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{topic=pr"
    -          + "ojects/*/topics/*}/snapshots\332A\005topic\022|\n\013"
    -          + "DeleteTopic\022$.google.pubsub.v1.DeleteTop"
    -          + "icRequest\032\026.google.protobuf.Empty\"/\202\323\344\223\002"
    -          + "!*\037/v1/{topic=projects/*/topics/*}\332A\005top"
    -          + "ic\032p\312A\025pubsub.googleapis.com\322AUhttps://w"
    -          + "ww.googleapis.com/auth/cloud-platform,ht"
    -          + "tps://www.googleapis.com/auth/pubsub2\203\025\n"
    -          + "\nSubscriber\022\264\001\n\022CreateSubscription\022\036.goo"
    -          + "gle.pubsub.v1.Subscription\032\036.google.pubs"
    -          + "ub.v1.Subscription\"^\202\323\344\223\002*\032%/v1/{name=pr"
    -          + "ojects/*/subscriptions/*}:\001*\332A+name,topi"
    -          + "c,push_config,ack_deadline_seconds\022\241\001\n\017G"
    -          + "etSubscription\022(.google.pubsub.v1.GetSub"
    -          + "scriptionRequest\032\036.google.pubsub.v1.Subs"
    -          + "cription\"D\202\323\344\223\002/\022-/v1/{subscription=proj"
    -          + "ects/*/subscriptions/*}\332A\014subscription\022\240"
    -          + "\001\n\022UpdateSubscription\022+.google.pubsub.v1"
    -          + ".UpdateSubscriptionRequest\032\036.google.pubs"
    -          + "ub.v1.Subscription\"=\202\323\344\223\002722/v1/{subscri"
    -          + "ption.name=projects/*/subscriptions/*}:\001"
    -          + "*\022\246\001\n\021ListSubscriptions\022*.google.pubsub."
    -          + "v1.ListSubscriptionsRequest\032+.google.pub"
    -          + "sub.v1.ListSubscriptionsResponse\"8\202\323\344\223\002("
    -          + "\022&/v1/{project=projects/*}/subscriptions"
    -          + "\332A\007project\022\237\001\n\022DeleteSubscription\022+.goog"
    -          + "le.pubsub.v1.DeleteSubscriptionRequest\032\026"
    -          + ".google.protobuf.Empty\"D\202\323\344\223\002/*-/v1/{sub"
    -          + "scription=projects/*/subscriptions/*}\332A\014"
    -          + "subscription\022\317\001\n\021ModifyAckDeadline\022*.goo"
    -          + "gle.pubsub.v1.ModifyAckDeadlineRequest\032\026"
    -          + ".google.protobuf.Empty\"v\202\323\344\223\002D\"?/v1/{sub"
    -          + "scription=projects/*/subscriptions/*}:mo"
    -          + "difyAckDeadline:\001*\332A)subscription,ack_id"
    -          + "s,ack_deadline_seconds\022\250\001\n\013Acknowledge\022$"
    -          + ".google.pubsub.v1.AcknowledgeRequest\032\026.g"
    -          + "oogle.protobuf.Empty\"[\202\323\344\223\002>\"9/v1/{subsc"
    -          + "ription=projects/*/subscriptions/*}:ackn"
    -          + "owledge:\001*\332A\024subscription,ack_ids\022\263\001\n\004Pu"
    -          + "ll\022\035.google.pubsub.v1.PullRequest\032\036.goog"
    -          + "le.pubsub.v1.PullResponse\"l\202\323\344\223\0027\"2/v1/{"
    -          + "subscription=projects/*/subscriptions/*}"
    -          + ":pull:\001*\332A,subscription,return_immediate"
    -          + "ly,max_messages\022f\n\rStreamingPull\022&.googl"
    -          + "e.pubsub.v1.StreamingPullRequest\032\'.googl"
    -          + "e.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022"
    -          + "\273\001\n\020ModifyPushConfig\022).google.pubsub.v1."
    -          + "ModifyPushConfigRequest\032\026.google.protobu"
    -          + "f.Empty\"d\202\323\344\223\002C\">/v1/{subscription=proje"
    -          + "cts/*/subscriptions/*}:modifyPushConfig:"
    -          + "\001*\332A\030subscription,push_config\022\211\001\n\013GetSna"
    -          + "pshot\022$.google.pubsub.v1.GetSnapshotRequ"
    -          + "est\032\032.google.pubsub.v1.Snapshot\"8\202\323\344\223\002\'\022"
    -          + "%/v1/{snapshot=projects/*/snapshots/*}\332A"
    -          + "\010snapshot\022\226\001\n\rListSnapshots\022&.google.pub"
    -          + "sub.v1.ListSnapshotsRequest\032\'.google.pub"
    -          + "sub.v1.ListSnapshotsResponse\"4\202\323\344\223\002$\022\"/v"
    -          + "1/{project=projects/*}/snapshots\332A\007proje"
    -          + "ct\022\227\001\n\016CreateSnapshot\022\'.google.pubsub.v1"
    -          + ".CreateSnapshotRequest\032\032.google.pubsub.v"
    -          + "1.Snapshot\"@\202\323\344\223\002&\032!/v1/{name=projects/*"
    -          + "/snapshots/*}:\001*\332A\021name,subscription\022\214\001\n"
    -          + "\016UpdateSnapshot\022\'.google.pubsub.v1.Updat"
    -          + "eSnapshotRequest\032\032.google.pubsub.v1.Snap"
    -          + "shot\"5\202\323\344\223\002/2*/v1/{snapshot.name=project"
    -          + "s/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'"
    -          + ".google.pubsub.v1.DeleteSnapshotRequest\032"
    -          + "\026.google.protobuf.Empty\"8\202\323\344\223\002\'*%/v1/{sn"
    -          + "apshot=projects/*/snapshots/*}\332A\010snapsho"
    -          + "t\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReques"
    -          + "t\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223\002"
    -          + "7\"2/v1/{subscription=projects/*/subscrip"
    -          + "tions/*}:seek:\001*\032p\312A\025pubsub.googleapis.c"
    -          + "om\322AUhttps://www.googleapis.com/auth/clo"
    -          + "ud-platform,https://www.googleapis.com/a"
    -          + "uth/pubsubB\256\001\n\024com.google.pubsub.v1B\013Pub"
    -          + "subProtoP\001Z6google.golang.org/genproto/g"
    -          + "oogleapis/pubsub/v1;pubsub\370\001\001\252\002\026Google.C"
    -          + "loud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352"
    -          + "\002\031Google::Cloud::PubSub::V1b\006proto3"
    +          + ".googleapis.com/Subscription\022\024\n\007ack_ids\030"
    +          + "\002 \003(\tB\003\340A\002\"\350\001\n\024StreamingPullRequest\022@\n\014s"
    +          + "ubscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.google"
    +          + "apis.com/Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037"
    +          + "\n\027modify_deadline_seconds\030\003 \003(\005\022\037\n\027modif"
    +          + "y_deadline_ack_ids\030\004 \003(\t\022(\n\033stream_ack_d"
    +          + "eadline_seconds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030"
    +          + "\006 \001(\t\"U\n\025StreamingPullResponse\022<\n\021receiv"
    +          + "ed_messages\030\001 \003(\0132!.google.pubsub.v1.Rec"
    +          + "eivedMessage\"\203\002\n\025CreateSnapshotRequest\0224"
    +          + "\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis."
    +          + "com/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372"
    +          + "A$\n\"pubsub.googleapis.com/Subscription\022C"
    +          + "\n\006labels\030\003 \003(\01323.google.pubsub.v1.Create"
    +          + "SnapshotRequest.LabelsEntry\032-\n\013LabelsEnt"
    +          + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025U"
    +          + "pdateSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032"
    +          + ".google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013updat"
    +          + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask"
    +          + "B\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topi"
    +          + "c\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topi"
    +          + "c\022/\n\013expire_time\030\003 \001(\0132\032.google.protobuf"
    +          + ".Timestamp\0226\n\006labels\030\004 \003(\0132&.google.pubs"
    +          + "ub.v1.Snapshot.LabelsEntry\032-\n\013LabelsEntr"
    +          + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036"
    +          + "pubsub.googleapis.com/Snapshot\022\'projects"
    +          + "/{project}/snapshots/{snapshot}\"N\n\022GetSn"
    +          + "apshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n"
    +          + "\036pubsub.googleapis.com/Snapshot\"\203\001\n\024List"
    +          + "SnapshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A"
    +          + "-\n+cloudresourcemanager.googleapis.com/P"
    +          + "roject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030"
    +          + "\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapsh"
    +          + "ots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n"
    +          + "\017next_page_token\030\002 \001(\t\"Q\n\025DeleteSnapshot"
    +          + "Request\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsu"
    +          + "b.googleapis.com/Snapshot\"\276\001\n\013SeekReques"
    +          + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub."
    +          + "googleapis.com/Subscription\022*\n\004time\030\002 \001("
    +          + "\0132\032.google.protobuf.TimestampH\000\0227\n\010snaps"
    +          + "hot\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/Sn"
    +          + "apshotH\000B\010\n\006target\"\016\n\014SeekResponse2\363\t\n\tP"
    +          + "ublisher\022q\n\013CreateTopic\022\027.google.pubsub."
    +          + "v1.Topic\032\027.google.pubsub.v1.Topic\"0\202\323\344\223\002"
    +          + "#\032\036/v1/{name=projects/*/topics/*}:\001*\332A\004n"
    +          + "ame\022}\n\013UpdateTopic\022$.google.pubsub.v1.Up"
    +          + "dateTopicRequest\032\027.google.pubsub.v1.Topi"
    +          + "c\"/\202\323\344\223\002)2$/v1/{topic.name=projects/*/to"
    +          + "pics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v"
    +          + "1.PublishRequest\032!.google.pubsub.v1.Publ"
    +          + "ishResponse\"C\202\323\344\223\002,\"\'/v1/{topic=projects"
    +          + "/*/topics/*}:publish:\001*\332A\016topic,messages"
    +          + "\022w\n\010GetTopic\022!.google.pubsub.v1.GetTopic"
    +          + "Request\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002!"
    +          + "\022\037/v1/{topic=projects/*/topics/*}\332A\005topi"
    +          + "c\022\212\001\n\nListTopics\022#.google.pubsub.v1.List"
    +          + "TopicsRequest\032$.google.pubsub.v1.ListTop"
    +          + "icsResponse\"1\202\323\344\223\002!\022\037/v1/{project=projec"
    +          + "ts/*}/topics\332A\007project\022\272\001\n\026ListTopicSubs"
    +          + "criptions\022/.google.pubsub.v1.ListTopicSu"
    +          + "bscriptionsRequest\0320.google.pubsub.v1.Li"
    +          + "stTopicSubscriptionsResponse\"=\202\323\344\223\002/\022-/v"
    +          + "1/{topic=projects/*/topics/*}/subscripti"
    +          + "ons\332A\005topic\022\252\001\n\022ListTopicSnapshots\022+.goo"
    +          + "gle.pubsub.v1.ListTopicSnapshotsRequest\032"
    +          + ",.google.pubsub.v1.ListTopicSnapshotsRes"
    +          + "ponse\"9\202\323\344\223\002+\022)/v1/{topic=projects/*/top"
    +          + "ics/*}/snapshots\332A\005topic\022|\n\013DeleteTopic\022"
    +          + "$.google.pubsub.v1.DeleteTopicRequest\032\026."
    +          + "google.protobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topi"
    +          + "c=projects/*/topics/*}\332A\005topic\032p\312A\025pubsu"
    +          + "b.googleapis.com\322AUhttps://www.googleapi"
    +          + "s.com/auth/cloud-platform,https://www.go"
    +          + "ogleapis.com/auth/pubsub2\203\025\n\nSubscriber\022"
    +          + "\264\001\n\022CreateSubscription\022\036.google.pubsub.v"
    +          + "1.Subscription\032\036.google.pubsub.v1.Subscr"
    +          + "iption\"^\202\323\344\223\002*\032%/v1/{name=projects/*/sub"
    +          + "scriptions/*}:\001*\332A+name,topic,push_confi"
    +          + "g,ack_deadline_seconds\022\241\001\n\017GetSubscripti"
    +          + "on\022(.google.pubsub.v1.GetSubscriptionReq"
    +          + "uest\032\036.google.pubsub.v1.Subscription\"D\202\323"
    +          + "\344\223\002/\022-/v1/{subscription=projects/*/subsc"
    +          + "riptions/*}\332A\014subscription\022\240\001\n\022UpdateSub"
    +          + "scription\022+.google.pubsub.v1.UpdateSubsc"
    +          + "riptionRequest\032\036.google.pubsub.v1.Subscr"
    +          + "iption\"=\202\323\344\223\002722/v1/{subscription.name=p"
    +          + "rojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSu"
    +          + "bscriptions\022*.google.pubsub.v1.ListSubsc"
    +          + "riptionsRequest\032+.google.pubsub.v1.ListS"
    +          + "ubscriptionsResponse\"8\202\323\344\223\002(\022&/v1/{proje"
    +          + "ct=projects/*}/subscriptions\332A\007project\022\237"
    +          + "\001\n\022DeleteSubscription\022+.google.pubsub.v1"
    +          + ".DeleteSubscriptionRequest\032\026.google.prot"
    +          + "obuf.Empty\"D\202\323\344\223\002/*-/v1/{subscription=pr"
    +          + "ojects/*/subscriptions/*}\332A\014subscription"
    +          + "\022\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v"
    +          + "1.ModifyAckDeadlineRequest\032\026.google.prot"
    +          + "obuf.Empty\"v\202\323\344\223\002D\"?/v1/{subscription=pr"
    +          + "ojects/*/subscriptions/*}:modifyAckDeadl"
    +          + "ine:\001*\332A)subscription,ack_ids,ack_deadli"
    +          + "ne_seconds\022\250\001\n\013Acknowledge\022$.google.pubs"
    +          + "ub.v1.AcknowledgeRequest\032\026.google.protob"
    +          + "uf.Empty\"[\202\323\344\223\002>\"9/v1/{subscription=proj"
    +          + "ects/*/subscriptions/*}:acknowledge:\001*\332A"
    +          + "\024subscription,ack_ids\022\263\001\n\004Pull\022\035.google."
    +          + "pubsub.v1.PullRequest\032\036.google.pubsub.v1"
    +          + ".PullResponse\"l\202\323\344\223\0027\"2/v1/{subscription"
    +          + "=projects/*/subscriptions/*}:pull:\001*\332A,s"
    +          + "ubscription,return_immediately,max_messa"
    +          + "ges\022f\n\rStreamingPull\022&.google.pubsub.v1."
    +          + "StreamingPullRequest\032\'.google.pubsub.v1."
    +          + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu"
    +          + "shConfig\022).google.pubsub.v1.ModifyPushCo"
    +          + "nfigRequest\032\026.google.protobuf.Empty\"d\202\323\344"
    +          + "\223\002C\">/v1/{subscription=projects/*/subscr"
    +          + "iptions/*}:modifyPushConfig:\001*\332A\030subscri"
    +          + "ption,push_config\022\211\001\n\013GetSnapshot\022$.goog"
    +          + "le.pubsub.v1.GetSnapshotRequest\032\032.google"
    +          + ".pubsub.v1.Snapshot\"8\202\323\344\223\002\'\022%/v1/{snapsh"
    +          + "ot=projects/*/snapshots/*}\332A\010snapshot\022\226\001"
    +          + "\n\rListSnapshots\022&.google.pubsub.v1.ListS"
    +          + "napshotsRequest\032\'.google.pubsub.v1.ListS"
    +          + "napshotsResponse\"4\202\323\344\223\002$\022\"/v1/{project=p"
    +          + "rojects/*}/snapshots\332A\007project\022\227\001\n\016Creat"
    +          + "eSnapshot\022\'.google.pubsub.v1.CreateSnaps"
    +          + "hotRequest\032\032.google.pubsub.v1.Snapshot\"@"
    +          + "\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*"
    +          + "}:\001*\332A\021name,subscription\022\214\001\n\016UpdateSnaps"
    +          + "hot\022\'.google.pubsub.v1.UpdateSnapshotReq"
    +          + "uest\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002/"
    +          + "2*/v1/{snapshot.name=projects/*/snapshot"
    +          + "s/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubs"
    +          + "ub.v1.DeleteSnapshotRequest\032\026.google.pro"
    +          + "tobuf.Empty\"8\202\323\344\223\002\'*%/v1/{snapshot=proje"
    +          + "cts/*/snapshots/*}\332A\010snapshot\022\204\001\n\004Seek\022\035"
    +          + ".google.pubsub.v1.SeekRequest\032\036.google.p"
    +          + "ubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subs"
    +          + "cription=projects/*/subscriptions/*}:see"
    +          + "k:\001*\032p\312A\025pubsub.googleapis.com\322AUhttps:/"
    +          + "/www.googleapis.com/auth/cloud-platform,"
    +          + "https://www.googleapis.com/auth/pubsubB\256"
    +          + "\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z6"
    +          + "google.golang.org/genproto/googleapis/pu"
    +          + "bsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub."
    +          + "V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cl"
    +          + "oud::PubSub::V1b\006proto3"
         };
         descriptor =
             com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
    @@ -634,7 +643,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Labels",
                   "EnableMessageOrdering",
                   "ExpirationPolicy",
    +              "Filter",
                   "DeadLetterPolicy",
    +              "RetryPolicy",
                 });
         internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor =
             internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0);
    @@ -644,8 +655,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                 new java.lang.String[] {
                   "Key", "Value",
                 });
    -    internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor =
    +    internal_static_google_pubsub_v1_RetryPolicy_descriptor =
             getDescriptor().getMessageTypes().get(15);
    +    internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable =
    +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
    +            internal_static_google_pubsub_v1_RetryPolicy_descriptor,
    +            new java.lang.String[] {
    +              "MinimumBackoff", "MaximumBackoff",
    +            });
    +    internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor =
    +        getDescriptor().getMessageTypes().get(16);
         internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor,
    @@ -653,7 +672,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "DeadLetterTopic", "MaxDeliveryAttempts",
                 });
         internal_static_google_pubsub_v1_ExpirationPolicy_descriptor =
    -        getDescriptor().getMessageTypes().get(16);
    +        getDescriptor().getMessageTypes().get(17);
         internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_ExpirationPolicy_descriptor,
    @@ -661,7 +680,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Ttl",
                 });
         internal_static_google_pubsub_v1_PushConfig_descriptor =
    -        getDescriptor().getMessageTypes().get(17);
    +        getDescriptor().getMessageTypes().get(18);
         internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_PushConfig_descriptor,
    @@ -685,7 +704,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Key", "Value",
                 });
         internal_static_google_pubsub_v1_ReceivedMessage_descriptor =
    -        getDescriptor().getMessageTypes().get(18);
    +        getDescriptor().getMessageTypes().get(19);
         internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_ReceivedMessage_descriptor,
    @@ -693,7 +712,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "AckId", "Message", "DeliveryAttempt",
                 });
         internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(19);
    +        getDescriptor().getMessageTypes().get(20);
         internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor,
    @@ -701,7 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Subscription",
                 });
         internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(20);
    +        getDescriptor().getMessageTypes().get(21);
         internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor,
    @@ -709,7 +728,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Subscription", "UpdateMask",
                 });
         internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(21);
    +        getDescriptor().getMessageTypes().get(22);
         internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor,
    @@ -717,7 +736,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Project", "PageSize", "PageToken",
                 });
         internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor =
    -        getDescriptor().getMessageTypes().get(22);
    +        getDescriptor().getMessageTypes().get(23);
         internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor,
    @@ -725,7 +744,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Subscriptions", "NextPageToken",
                 });
         internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(23);
    +        getDescriptor().getMessageTypes().get(24);
         internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor,
    @@ -733,7 +752,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Subscription",
                 });
         internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(24);
    +        getDescriptor().getMessageTypes().get(25);
         internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor,
    @@ -741,7 +760,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Subscription", "PushConfig",
                 });
         internal_static_google_pubsub_v1_PullRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(25);
    +        getDescriptor().getMessageTypes().get(26);
         internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_PullRequest_descriptor,
    @@ -749,7 +768,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Subscription", "ReturnImmediately", "MaxMessages",
                 });
         internal_static_google_pubsub_v1_PullResponse_descriptor =
    -        getDescriptor().getMessageTypes().get(26);
    +        getDescriptor().getMessageTypes().get(27);
         internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_PullResponse_descriptor,
    @@ -757,7 +776,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "ReceivedMessages",
                 });
         internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(27);
    +        getDescriptor().getMessageTypes().get(28);
         internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor,
    @@ -765,7 +784,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Subscription", "AckIds", "AckDeadlineSeconds",
                 });
         internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(28);
    +        getDescriptor().getMessageTypes().get(29);
         internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor,
    @@ -773,7 +792,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Subscription", "AckIds",
                 });
         internal_static_google_pubsub_v1_StreamingPullRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(29);
    +        getDescriptor().getMessageTypes().get(30);
         internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_StreamingPullRequest_descriptor,
    @@ -786,7 +805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "ClientId",
                 });
         internal_static_google_pubsub_v1_StreamingPullResponse_descriptor =
    -        getDescriptor().getMessageTypes().get(30);
    +        getDescriptor().getMessageTypes().get(31);
         internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_StreamingPullResponse_descriptor,
    @@ -794,7 +813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "ReceivedMessages",
                 });
         internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(31);
    +        getDescriptor().getMessageTypes().get(32);
         internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor,
    @@ -810,7 +829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Key", "Value",
                 });
         internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(32);
    +        getDescriptor().getMessageTypes().get(33);
         internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor,
    @@ -818,7 +837,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Snapshot", "UpdateMask",
                 });
         internal_static_google_pubsub_v1_Snapshot_descriptor =
    -        getDescriptor().getMessageTypes().get(33);
    +        getDescriptor().getMessageTypes().get(34);
         internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_Snapshot_descriptor,
    @@ -834,7 +853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Key", "Value",
                 });
         internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(34);
    +        getDescriptor().getMessageTypes().get(35);
         internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor,
    @@ -842,7 +861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Snapshot",
                 });
         internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(35);
    +        getDescriptor().getMessageTypes().get(36);
         internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor,
    @@ -850,7 +869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Project", "PageSize", "PageToken",
                 });
         internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor =
    -        getDescriptor().getMessageTypes().get(36);
    +        getDescriptor().getMessageTypes().get(37);
         internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor,
    @@ -858,7 +877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Snapshots", "NextPageToken",
                 });
         internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(37);
    +        getDescriptor().getMessageTypes().get(38);
         internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor,
    @@ -866,7 +885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Snapshot",
                 });
         internal_static_google_pubsub_v1_SeekRequest_descriptor =
    -        getDescriptor().getMessageTypes().get(38);
    +        getDescriptor().getMessageTypes().get(39);
         internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_SeekRequest_descriptor,
    @@ -874,7 +893,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "Subscription", "Time", "Snapshot", "Target",
                 });
         internal_static_google_pubsub_v1_SeekResponse_descriptor =
    -        getDescriptor().getMessageTypes().get(39);
    +        getDescriptor().getMessageTypes().get(40);
         internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable =
             new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                 internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {});
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java
    new file mode 100644
    index 000000000000..4d7f081eafd5
    --- /dev/null
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java
    @@ -0,0 +1,1033 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +// Generated by the protocol buffer compiler.  DO NOT EDIT!
    +// source: google/pubsub/v1/pubsub.proto
    +
    +package com.google.pubsub.v1;
    +
    +/**
    + *
    + *
    + * 
    + * 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.
    + * 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 may not match the configuration. That is,
    + * delay can be more or less than configured backoff.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.RetryPolicy} + */ +public final class RetryPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.RetryPolicy) + RetryPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetryPolicy.newBuilder() to construct. + private RetryPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetryPolicy() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetryPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RetryPolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (minimumBackoff_ != null) { + subBuilder = minimumBackoff_.toBuilder(); + } + minimumBackoff_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(minimumBackoff_); + minimumBackoff_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (maximumBackoff_ != null) { + subBuilder = maximumBackoff_.toBuilder(); + } + maximumBackoff_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maximumBackoff_); + maximumBackoff_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.RetryPolicy.class, com.google.pubsub.v1.RetryPolicy.Builder.class); + } + + public static final int MINIMUM_BACKOFF_FIELD_NUMBER = 1; + private com.google.protobuf.Duration minimumBackoff_; + /** + * + * + *
    +   * The minimum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + * + * @return Whether the minimumBackoff field is set. + */ + public boolean hasMinimumBackoff() { + return minimumBackoff_ != null; + } + /** + * + * + *
    +   * The minimum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + * + * @return The minimumBackoff. + */ + public com.google.protobuf.Duration getMinimumBackoff() { + return minimumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minimumBackoff_; + } + /** + * + * + *
    +   * The minimum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + */ + public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { + return getMinimumBackoff(); + } + + public static final int MAXIMUM_BACKOFF_FIELD_NUMBER = 2; + private com.google.protobuf.Duration maximumBackoff_; + /** + * + * + *
    +   * The maximum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + * + * @return Whether the maximumBackoff field is set. + */ + public boolean hasMaximumBackoff() { + return maximumBackoff_ != null; + } + /** + * + * + *
    +   * The maximum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + * + * @return The maximumBackoff. + */ + public com.google.protobuf.Duration getMaximumBackoff() { + return maximumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumBackoff_; + } + /** + * + * + *
    +   * The maximum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { + return getMaximumBackoff(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (minimumBackoff_ != null) { + output.writeMessage(1, getMinimumBackoff()); + } + if (maximumBackoff_ != null) { + output.writeMessage(2, getMaximumBackoff()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (minimumBackoff_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinimumBackoff()); + } + if (maximumBackoff_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumBackoff()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.RetryPolicy)) { + return super.equals(obj); + } + com.google.pubsub.v1.RetryPolicy other = (com.google.pubsub.v1.RetryPolicy) obj; + + if (hasMinimumBackoff() != other.hasMinimumBackoff()) return false; + if (hasMinimumBackoff()) { + if (!getMinimumBackoff().equals(other.getMinimumBackoff())) return false; + } + if (hasMaximumBackoff() != other.hasMaximumBackoff()) return false; + if (hasMaximumBackoff()) { + if (!getMaximumBackoff().equals(other.getMaximumBackoff())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMinimumBackoff()) { + hash = (37 * hash) + MINIMUM_BACKOFF_FIELD_NUMBER; + hash = (53 * hash) + getMinimumBackoff().hashCode(); + } + if (hasMaximumBackoff()) { + hash = (37 * hash) + MAXIMUM_BACKOFF_FIELD_NUMBER; + hash = (53 * hash) + getMaximumBackoff().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.RetryPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.RetryPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.RetryPolicy parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.RetryPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.RetryPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.RetryPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.RetryPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.RetryPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.RetryPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.RetryPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.RetryPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.RetryPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.RetryPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * 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.
    +   * 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 may not match the configuration. That is,
    +   * delay can be more or less than configured backoff.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.RetryPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.RetryPolicy) + com.google.pubsub.v1.RetryPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_RetryPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.RetryPolicy.class, + com.google.pubsub.v1.RetryPolicy.Builder.class); + } + + // Construct using com.google.pubsub.v1.RetryPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (minimumBackoffBuilder_ == null) { + minimumBackoff_ = null; + } else { + minimumBackoff_ = null; + minimumBackoffBuilder_ = null; + } + if (maximumBackoffBuilder_ == null) { + maximumBackoff_ = null; + } else { + maximumBackoff_ = null; + maximumBackoffBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_RetryPolicy_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.RetryPolicy getDefaultInstanceForType() { + return com.google.pubsub.v1.RetryPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.RetryPolicy build() { + com.google.pubsub.v1.RetryPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.RetryPolicy buildPartial() { + com.google.pubsub.v1.RetryPolicy result = new com.google.pubsub.v1.RetryPolicy(this); + if (minimumBackoffBuilder_ == null) { + result.minimumBackoff_ = minimumBackoff_; + } else { + result.minimumBackoff_ = minimumBackoffBuilder_.build(); + } + if (maximumBackoffBuilder_ == null) { + result.maximumBackoff_ = maximumBackoff_; + } else { + result.maximumBackoff_ = maximumBackoffBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.RetryPolicy) { + return mergeFrom((com.google.pubsub.v1.RetryPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.RetryPolicy other) { + if (other == com.google.pubsub.v1.RetryPolicy.getDefaultInstance()) return this; + if (other.hasMinimumBackoff()) { + mergeMinimumBackoff(other.getMinimumBackoff()); + } + if (other.hasMaximumBackoff()) { + mergeMaximumBackoff(other.getMaximumBackoff()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.RetryPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.RetryPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Duration minimumBackoff_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + minimumBackoffBuilder_; + /** + * + * + *
    +     * The minimum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + * + * @return Whether the minimumBackoff field is set. + */ + public boolean hasMinimumBackoff() { + return minimumBackoffBuilder_ != null || minimumBackoff_ != null; + } + /** + * + * + *
    +     * The minimum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + * + * @return The minimumBackoff. + */ + public com.google.protobuf.Duration getMinimumBackoff() { + if (minimumBackoffBuilder_ == null) { + return minimumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minimumBackoff_; + } else { + return minimumBackoffBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The minimum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + */ + public Builder setMinimumBackoff(com.google.protobuf.Duration value) { + if (minimumBackoffBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minimumBackoff_ = value; + onChanged(); + } else { + minimumBackoffBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * The minimum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + */ + public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue) { + if (minimumBackoffBuilder_ == null) { + minimumBackoff_ = builderForValue.build(); + onChanged(); + } else { + minimumBackoffBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * The minimum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + */ + public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { + if (minimumBackoffBuilder_ == null) { + if (minimumBackoff_ != null) { + minimumBackoff_ = + com.google.protobuf.Duration.newBuilder(minimumBackoff_) + .mergeFrom(value) + .buildPartial(); + } else { + minimumBackoff_ = value; + } + onChanged(); + } else { + minimumBackoffBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * The minimum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + */ + public Builder clearMinimumBackoff() { + if (minimumBackoffBuilder_ == null) { + minimumBackoff_ = null; + onChanged(); + } else { + minimumBackoff_ = null; + minimumBackoffBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * The minimum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + */ + public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() { + + onChanged(); + return getMinimumBackoffFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The minimum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + */ + public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { + if (minimumBackoffBuilder_ != null) { + return minimumBackoffBuilder_.getMessageOrBuilder(); + } else { + return minimumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minimumBackoff_; + } + } + /** + * + * + *
    +     * The minimum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMinimumBackoffFieldBuilder() { + if (minimumBackoffBuilder_ == null) { + minimumBackoffBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMinimumBackoff(), getParentForChildren(), isClean()); + minimumBackoff_ = null; + } + return minimumBackoffBuilder_; + } + + private com.google.protobuf.Duration maximumBackoff_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maximumBackoffBuilder_; + /** + * + * + *
    +     * The maximum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + * + * @return Whether the maximumBackoff field is set. + */ + public boolean hasMaximumBackoff() { + return maximumBackoffBuilder_ != null || maximumBackoff_ != null; + } + /** + * + * + *
    +     * The maximum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + * + * @return The maximumBackoff. + */ + public com.google.protobuf.Duration getMaximumBackoff() { + if (maximumBackoffBuilder_ == null) { + return maximumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumBackoff_; + } else { + return maximumBackoffBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The maximum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + */ + public Builder setMaximumBackoff(com.google.protobuf.Duration value) { + if (maximumBackoffBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maximumBackoff_ = value; + onChanged(); + } else { + maximumBackoffBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * The maximum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + */ + public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue) { + if (maximumBackoffBuilder_ == null) { + maximumBackoff_ = builderForValue.build(); + onChanged(); + } else { + maximumBackoffBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * The maximum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + */ + public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { + if (maximumBackoffBuilder_ == null) { + if (maximumBackoff_ != null) { + maximumBackoff_ = + com.google.protobuf.Duration.newBuilder(maximumBackoff_) + .mergeFrom(value) + .buildPartial(); + } else { + maximumBackoff_ = value; + } + onChanged(); + } else { + maximumBackoffBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * The maximum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + */ + public Builder clearMaximumBackoff() { + if (maximumBackoffBuilder_ == null) { + maximumBackoff_ = null; + onChanged(); + } else { + maximumBackoff_ = null; + maximumBackoffBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * The maximum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + */ + public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() { + + onChanged(); + return getMaximumBackoffFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The maximum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + */ + public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { + if (maximumBackoffBuilder_ != null) { + return maximumBackoffBuilder_.getMessageOrBuilder(); + } else { + return maximumBackoff_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumBackoff_; + } + } + /** + * + * + *
    +     * The maximum delay between consecutive deliveries of a given message.
    +     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMaximumBackoffFieldBuilder() { + if (maximumBackoffBuilder_ == null) { + maximumBackoffBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaximumBackoff(), getParentForChildren(), isClean()); + maximumBackoff_ = null; + } + return maximumBackoffBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.RetryPolicy) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.RetryPolicy) + private static final com.google.pubsub.v1.RetryPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.RetryPolicy(); + } + + public static com.google.pubsub.v1.RetryPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.RetryPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java new file mode 100644 index 000000000000..e3ace44c049d --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface RetryPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.RetryPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The minimum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + * + * @return Whether the minimumBackoff field is set. + */ + boolean hasMinimumBackoff(); + /** + * + * + *
    +   * The minimum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + * + * @return The minimumBackoff. + */ + com.google.protobuf.Duration getMinimumBackoff(); + /** + * + * + *
    +   * The minimum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * 
    + * + * .google.protobuf.Duration minimum_backoff = 1; + */ + com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder(); + + /** + * + * + *
    +   * The maximum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + * + * @return Whether the maximumBackoff field is set. + */ + boolean hasMaximumBackoff(); + /** + * + * + *
    +   * The maximum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + * + * @return The maximumBackoff. + */ + com.google.protobuf.Duration getMaximumBackoff(); + /** + * + * + *
    +   * The maximum delay between consecutive deliveries of a given message.
    +   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * 
    + * + * .google.protobuf.Duration maximum_backoff = 2; + */ + com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 760cf6234fc7..c91b6d10f89e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -40,6 +40,7 @@ private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) private Subscription() { name_ = ""; topic_ = ""; + filter_ = ""; } @java.lang.Override @@ -158,6 +159,13 @@ private Subscription( expirationPolicy_ = subBuilder.buildPartial(); } + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; break; } case 106: @@ -174,6 +182,21 @@ private Subscription( deadLetterPolicy_ = subBuilder.buildPartial(); } + break; + } + case 114: + { + com.google.pubsub.v1.RetryPolicy.Builder subBuilder = null; + if (retryPolicy_ != null) { + subBuilder = retryPolicy_.toBuilder(); + } + retryPolicy_ = + input.readMessage(com.google.pubsub.v1.RetryPolicy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(retryPolicy_); + retryPolicy_ = subBuilder.buildPartial(); + } + break; } default: @@ -678,6 +701,65 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild return getExpirationPolicy(); } + public static final int FILTER_FIELD_NUMBER = 12; + private volatile java.lang.Object filter_; + /** + * + * + *
    +   * 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string filter = 12; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
    +   * 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string filter = 12; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int DEAD_LETTER_POLICY_FIELD_NUMBER = 13; private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; /** @@ -750,6 +832,75 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild return getDeadLetterPolicy(); } + public static final int RETRY_POLICY_FIELD_NUMBER = 14; + private com.google.pubsub.v1.RetryPolicy retryPolicy_; + /** + * + * + *
    +   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * subscription.
    +   * If not set, the default retry policy is applied. This generally implies
    +   * that messages will be retried as soon as possible for healthy subscribers.
    +   * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +   * exceeded events for a given message.
    +   * <b>EXPERIMENTAL:</b> 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.
    +   * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * @return Whether the retryPolicy field is set. + */ + public boolean hasRetryPolicy() { + return retryPolicy_ != null; + } + /** + * + * + *
    +   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * subscription.
    +   * If not set, the default retry policy is applied. This generally implies
    +   * that messages will be retried as soon as possible for healthy subscribers.
    +   * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +   * exceeded events for a given message.
    +   * <b>EXPERIMENTAL:</b> 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.
    +   * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * @return The retryPolicy. + */ + public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { + return retryPolicy_ == null + ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() + : retryPolicy_; + } + /** + * + * + *
    +   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * subscription.
    +   * If not set, the default retry policy is applied. This generally implies
    +   * that messages will be retried as soon as possible for healthy subscribers.
    +   * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +   * exceeded events for a given message.
    +   * <b>EXPERIMENTAL:</b> 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.
    +   * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + */ + public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { + return getRetryPolicy(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -790,9 +941,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (expirationPolicy_ != null) { output.writeMessage(11, getExpirationPolicy()); } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, filter_); + } if (deadLetterPolicy_ != null) { output.writeMessage(13, getDeadLetterPolicy()); } + if (retryPolicy_ != null) { + output.writeMessage(14, getRetryPolicy()); + } unknownFields.writeTo(output); } @@ -838,9 +995,15 @@ public int getSerializedSize() { if (expirationPolicy_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy()); } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, filter_); + } if (deadLetterPolicy_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeadLetterPolicy()); } + if (retryPolicy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRetryPolicy()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -874,10 +1037,15 @@ public boolean equals(final java.lang.Object obj) { if (hasExpirationPolicy()) { if (!getExpirationPolicy().equals(other.getExpirationPolicy())) return false; } + if (!getFilter().equals(other.getFilter())) return false; if (hasDeadLetterPolicy() != other.hasDeadLetterPolicy()) return false; if (hasDeadLetterPolicy()) { if (!getDeadLetterPolicy().equals(other.getDeadLetterPolicy())) return false; } + if (hasRetryPolicy() != other.hasRetryPolicy()) return false; + if (hasRetryPolicy()) { + if (!getRetryPolicy().equals(other.getRetryPolicy())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -915,10 +1083,16 @@ public int hashCode() { hash = (37 * hash) + EXPIRATION_POLICY_FIELD_NUMBER; hash = (53 * hash) + getExpirationPolicy().hashCode(); } + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); if (hasDeadLetterPolicy()) { hash = (37 * hash) + DEAD_LETTER_POLICY_FIELD_NUMBER; hash = (53 * hash) + getDeadLetterPolicy().hashCode(); } + if (hasRetryPolicy()) { + hash = (37 * hash) + RETRY_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getRetryPolicy().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1112,12 +1286,20 @@ public Builder clear() { expirationPolicy_ = null; expirationPolicyBuilder_ = null; } + filter_ = ""; + if (deadLetterPolicyBuilder_ == null) { deadLetterPolicy_ = null; } else { deadLetterPolicy_ = null; deadLetterPolicyBuilder_ = null; } + if (retryPolicyBuilder_ == null) { + retryPolicy_ = null; + } else { + retryPolicy_ = null; + retryPolicyBuilder_ = null; + } return this; } @@ -1167,11 +1349,17 @@ public com.google.pubsub.v1.Subscription buildPartial() { } else { result.expirationPolicy_ = expirationPolicyBuilder_.build(); } + result.filter_ = filter_; if (deadLetterPolicyBuilder_ == null) { result.deadLetterPolicy_ = deadLetterPolicy_; } else { result.deadLetterPolicy_ = deadLetterPolicyBuilder_.build(); } + if (retryPolicyBuilder_ == null) { + result.retryPolicy_ = retryPolicy_; + } else { + result.retryPolicy_ = retryPolicyBuilder_.build(); + } onBuilt(); return result; } @@ -1248,9 +1436,16 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasExpirationPolicy()) { mergeExpirationPolicy(other.getExpirationPolicy()); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } if (other.hasDeadLetterPolicy()) { mergeDeadLetterPolicy(other.getDeadLetterPolicy()); } + if (other.hasRetryPolicy()) { + mergeRetryPolicy(other.getRetryPolicy()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2600,6 +2795,142 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild return expirationPolicyBuilder_; } + private java.lang.Object filter_ = ""; + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string filter = 12; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string filter = 12; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string filter = 12; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string filter = 12; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
    +     * 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.
    +     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +     * API might be changed in backward-incompatible ways and is not recommended
    +     * for production use. It is not subject to any SLA or deprecation policy.
    +     * 
    + * + * string filter = 12; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.DeadLetterPolicy, @@ -2867,6 +3198,263 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild return deadLetterPolicyBuilder_; } + private com.google.pubsub.v1.RetryPolicy retryPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.RetryPolicy, + com.google.pubsub.v1.RetryPolicy.Builder, + com.google.pubsub.v1.RetryPolicyOrBuilder> + retryPolicyBuilder_; + /** + * + * + *
    +     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * subscription.
    +     * If not set, the default retry policy is applied. This generally implies
    +     * that messages will be retried as soon as possible for healthy subscribers.
    +     * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +     * exceeded events for a given message.
    +     * <b>EXPERIMENTAL:</b> 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.
    +     * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * @return Whether the retryPolicy field is set. + */ + public boolean hasRetryPolicy() { + return retryPolicyBuilder_ != null || retryPolicy_ != null; + } + /** + * + * + *
    +     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * subscription.
    +     * If not set, the default retry policy is applied. This generally implies
    +     * that messages will be retried as soon as possible for healthy subscribers.
    +     * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +     * exceeded events for a given message.
    +     * <b>EXPERIMENTAL:</b> 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.
    +     * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * @return The retryPolicy. + */ + public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { + if (retryPolicyBuilder_ == null) { + return retryPolicy_ == null + ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() + : retryPolicy_; + } else { + return retryPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * subscription.
    +     * If not set, the default retry policy is applied. This generally implies
    +     * that messages will be retried as soon as possible for healthy subscribers.
    +     * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +     * exceeded events for a given message.
    +     * <b>EXPERIMENTAL:</b> 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.
    +     * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + */ + public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { + if (retryPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retryPolicy_ = value; + onChanged(); + } else { + retryPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * subscription.
    +     * If not set, the default retry policy is applied. This generally implies
    +     * that messages will be retried as soon as possible for healthy subscribers.
    +     * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +     * exceeded events for a given message.
    +     * <b>EXPERIMENTAL:</b> 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.
    +     * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + */ + public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderForValue) { + if (retryPolicyBuilder_ == null) { + retryPolicy_ = builderForValue.build(); + onChanged(); + } else { + retryPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * subscription.
    +     * If not set, the default retry policy is applied. This generally implies
    +     * that messages will be retried as soon as possible for healthy subscribers.
    +     * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +     * exceeded events for a given message.
    +     * <b>EXPERIMENTAL:</b> 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.
    +     * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + */ + public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { + if (retryPolicyBuilder_ == null) { + if (retryPolicy_ != null) { + retryPolicy_ = + com.google.pubsub.v1.RetryPolicy.newBuilder(retryPolicy_) + .mergeFrom(value) + .buildPartial(); + } else { + retryPolicy_ = value; + } + onChanged(); + } else { + retryPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * subscription.
    +     * If not set, the default retry policy is applied. This generally implies
    +     * that messages will be retried as soon as possible for healthy subscribers.
    +     * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +     * exceeded events for a given message.
    +     * <b>EXPERIMENTAL:</b> 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.
    +     * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + */ + public Builder clearRetryPolicy() { + if (retryPolicyBuilder_ == null) { + retryPolicy_ = null; + onChanged(); + } else { + retryPolicy_ = null; + retryPolicyBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * subscription.
    +     * If not set, the default retry policy is applied. This generally implies
    +     * that messages will be retried as soon as possible for healthy subscribers.
    +     * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +     * exceeded events for a given message.
    +     * <b>EXPERIMENTAL:</b> 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.
    +     * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + */ + public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { + + onChanged(); + return getRetryPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * subscription.
    +     * If not set, the default retry policy is applied. This generally implies
    +     * that messages will be retried as soon as possible for healthy subscribers.
    +     * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +     * exceeded events for a given message.
    +     * <b>EXPERIMENTAL:</b> 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.
    +     * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + */ + public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { + if (retryPolicyBuilder_ != null) { + return retryPolicyBuilder_.getMessageOrBuilder(); + } else { + return retryPolicy_ == null + ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() + : retryPolicy_; + } + } + /** + * + * + *
    +     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * subscription.
    +     * If not set, the default retry policy is applied. This generally implies
    +     * that messages will be retried as soon as possible for healthy subscribers.
    +     * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +     * exceeded events for a given message.
    +     * <b>EXPERIMENTAL:</b> 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.
    +     * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.RetryPolicy, + com.google.pubsub.v1.RetryPolicy.Builder, + com.google.pubsub.v1.RetryPolicyOrBuilder> + getRetryPolicyFieldBuilder() { + if (retryPolicyBuilder_ == null) { + retryPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.RetryPolicy, + com.google.pubsub.v1.RetryPolicy.Builder, + com.google.pubsub.v1.RetryPolicyOrBuilder>( + getRetryPolicy(), getParentForChildren(), isClean()); + retryPolicy_ = null; + } + return retryPolicyBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index acc4e75727d7..0c1a6fe40b44 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -358,6 +358,43 @@ public interface SubscriptionOrBuilder */ com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder(); + /** + * + * + *
    +   * 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string filter = 12; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
    +   * 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.
    +   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    +   * API might be changed in backward-incompatible ways and is not recommended
    +   * for production use. It is not subject to any SLA or deprecation policy.
    +   * 
    + * + * string filter = 12; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + /** * * @@ -419,4 +456,63 @@ public interface SubscriptionOrBuilder * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; */ com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder(); + + /** + * + * + *
    +   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * subscription.
    +   * If not set, the default retry policy is applied. This generally implies
    +   * that messages will be retried as soon as possible for healthy subscribers.
    +   * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +   * exceeded events for a given message.
    +   * <b>EXPERIMENTAL:</b> 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.
    +   * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * @return Whether the retryPolicy field is set. + */ + boolean hasRetryPolicy(); + /** + * + * + *
    +   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * subscription.
    +   * If not set, the default retry policy is applied. This generally implies
    +   * that messages will be retried as soon as possible for healthy subscribers.
    +   * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +   * exceeded events for a given message.
    +   * <b>EXPERIMENTAL:</b> 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.
    +   * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * @return The retryPolicy. + */ + com.google.pubsub.v1.RetryPolicy getRetryPolicy(); + /** + * + * + *
    +   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * subscription.
    +   * If not set, the default retry policy is applied. This generally implies
    +   * that messages will be retried as soon as possible for healthy subscribers.
    +   * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    +   * exceeded events for a given message.
    +   * <b>EXPERIMENTAL:</b> 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.
    +   * 
    + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14; + */ + com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index ea20fdd47ec2..09996bf5ec28 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -16,10 +16,226 @@ package com.google.pubsub.v1; +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; /** AUTO-GENERATED DOCUMENTATION AND CLASS */ @javax.annotation.Generated("by GAPIC protoc plugin") -public abstract class TopicName implements ResourceName { +public class TopicName implements ResourceName { + + @Deprecated protected TopicName() {} + + private static final PathTemplate PROJECT_TOPIC_PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/topics/{topic}"); + private static final String DELETED_TOPIC_FIXED_VALUE = "_deleted-topic_"; + private static final TopicName DELETED_TOPIC_INSTANCE = new TopicName("_deleted-topic_"); + + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + + private String project; + private String topic; + + public String getProject() { + return project; + } + + public String getTopic() { + return topic; + } + + private TopicName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + topic = Preconditions.checkNotNull(builder.getTopic()); + pathTemplate = PROJECT_TOPIC_PATH_TEMPLATE; + } + + private TopicName(String fixedValue) { + this.fixedValue = fixedValue; + fieldValuesMap = ImmutableMap.of("", fixedValue); + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectTopicBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TopicName of(String project, String topic) { + return newProjectTopicBuilder().setProject(project).setTopic(topic).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static TopicName ofProjectTopicName(String project, String topic) { + return newProjectTopicBuilder().setProject(project).setTopic(topic).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static TopicName ofDeletedTopicName() { + return DELETED_TOPIC_INSTANCE; + } + + public static String format(String project, String topic) { + return newBuilder().setProject(project).setTopic(topic).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectTopicName(String project, String topic) { + return newBuilder().setProject(project).setTopic(topic).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatDeletedTopicName() { + return DELETED_TOPIC_FIXED_VALUE; + } + + public static TopicName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_TOPIC_PATH_TEMPLATE.matches(formattedString)) { + Map matchMap = PROJECT_TOPIC_PATH_TEMPLATE.match(formattedString); + return ofProjectTopicName(matchMap.get("project"), matchMap.get("topic")); + } else if (DELETED_TOPIC_FIXED_VALUE.equals(formattedString)) { + return DELETED_TOPIC_INSTANCE; + } + throw new ValidationException("JobName.parse: formattedString not in valid format"); + } + + @BetaApi("The method will be renamed to parseList after subclasses of this class are removed.") + public static List parse(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + @BetaApi("The method will be renamed to toStringList after subclasses of this class are removed.") + public static List toStrings(List values) { + List list = new ArrayList<>(values.size()); + for (TopicName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_TOPIC_PATH_TEMPLATE.matches(formattedString) + || DELETED_TOPIC_FIXED_VALUE.equals(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (topic != null) { + fieldMapBuilder.put("topic", topic); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + /** Builder for projects/{project}/topics/{topic}. */ + public static class Builder { + + private String project; + private String topic; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getTopic() { + return topic; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setTopic(String topic) { + this.topic = topic; + return this; + } + + private Builder(TopicName topicName) { + Preconditions.checkArgument( + topicName.pathTemplate == PROJECT_TOPIC_PATH_TEMPLATE, + "toBuilder is only supported when TopicName has the pattern of " + + "projects/{project}/topics/{topic}."); + project = topicName.project; + topic = topicName.topic; + } + + public TopicName build() { + return new TopicName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + TopicName that = (TopicName) o; + return (Objects.equals(this.project, that.project)) + && (Objects.equals(this.topic, that.topic)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(topic); + return h; + } } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 55cfa531ff32..b49b30ed4916 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -672,6 +672,15 @@ message Subscription { // value for `expiration_policy.ttl` is 1 day. ExpirationPolicy expiration_policy = 11; + // 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. + string filter = 12; + // A policy that specifies the conditions for dead lettering messages in // this subscription. If dead_letter_policy is not set, dead lettering // is disabled. @@ -684,6 +693,39 @@ message Subscription { // 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. DeadLetterPolicy dead_letter_policy = 13; + + // A policy that specifies how Cloud Pub/Sub retries message delivery for this + // subscription. + // + // If not set, the default retry policy is applied. This generally implies + // that messages will be retried as soon as possible for healthy subscribers. + // RetryPolicy will be triggered on NACKs or acknowledgement deadline + // exceeded events for a given message. + // EXPERIMENTAL: 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. + RetryPolicy retry_policy = 14; +} + +// 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. +// +// 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 may not match the configuration. That is, +// delay can be more or less than configured backoff. +message RetryPolicy { + // The minimum delay between consecutive deliveries of a given message. + // Value should be between 0 and 600 seconds. Defaults to 10 seconds. + google.protobuf.Duration minimum_backoff = 1; + + // The maximum delay between consecutive deliveries of a given message. + // Value should be between 0 and 600 seconds. Defaults to 600 seconds. + google.protobuf.Duration maximum_backoff = 2; } // Dead lettering is done on a best effort basis. The same message might be diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index fc6412701ada..1b54f48afbeb 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -56,7 +56,9 @@ }, { "packagePatterns": [ - "^com.google.cloud:libraries-bom" + "^com.google.cloud:google-cloud-pubsub", + "^com.google.cloud:libraries-bom", + "^com.google.cloud.samples:shared-configuration" ], "semanticCommitType": "chore", "semanticCommitScope": "deps" @@ -75,4 +77,4 @@ } ], "semanticCommits": true -} +} \ No newline at end of file diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index a8cfb72d0149..0dc6e39b4ece 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,27 +1,18 @@ { - "updateTime": "2020-03-09T22:03:30.134601Z", + "updateTime": "2020-03-30T19:22:36.952654Z", "sources": [ { "generator": { "name": "artman", - "version": "1.0.0", - "dockerImage": "googleapis/artman@sha256:f37f2464788cb551299209b4fcab4eb323533154488c2ef9ec0c75d7c2b4b482" + "version": "1.1.1", + "dockerImage": "googleapis/artman@sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b" } }, { "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "29a47c965aac79e3fe8e3314482ca0b5967680f0", - "internalRef": "299917154", - "log": "29a47c965aac79e3fe8e3314482ca0b5967680f0\nIncrease timeout to 1hr for method `dropRange` in bigtable/admin/v2, which is\nsynced with the timeout setting in gapic_yaml.\n\nPiperOrigin-RevId: 299917154\n\n8f631c4c70a60a9c7da3749511ee4ad432b62898\nbuild(google/maps/roads/v1op): move go to monorepo pattern\n\nPiperOrigin-RevId: 299885195\n\nd66816518844ebbf63504c9e8dfc7133921dd2cd\nbuild(google/maps/roads/v1op): Add bazel build files to generate clients.\n\nPiperOrigin-RevId: 299851148\n\naf7dff701fabe029672168649c62356cf1bb43d0\nAdd LogPlayerReports and LogImpressions to Playable Locations service\n\nPiperOrigin-RevId: 299724050\n\nb6927fca808f38df32a642c560082f5bf6538ced\nUpdate BigQuery Connection API v1beta1 proto: added credential to CloudSqlProperties.\n\nPiperOrigin-RevId: 299503150\n\n91e1fb5ef9829c0c7a64bfa5bde330e6ed594378\nchore: update protobuf (protoc) version to 3.11.2\n\nPiperOrigin-RevId: 299404145\n\n30e36b4bee6749c4799f4fc1a51cc8f058ba167d\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 299399890\n\nffbb493674099f265693872ae250711b2238090c\nfeat: cloudbuild/v1 add new fields and annotate OUTPUT_OUT fields.\n\nPiperOrigin-RevId: 299397780\n\nbc973a15818e00c19e121959832676e9b7607456\nbazel: Fix broken common dependency\n\nPiperOrigin-RevId: 299397431\n\n71094a343e3b962e744aa49eb9338219537474e4\nchore: bigtable/admin/v2 publish retry config\n\nPiperOrigin-RevId: 299391875\n\n8f488efd7bda33885cb674ddd023b3678c40bd82\nfeat: Migrate logging to GAPIC v2; release new features.\n\nIMPORTANT: This is a breaking change for client libraries\nin all languages.\n\nCommitter: @lukesneeringer, @jskeet\nPiperOrigin-RevId: 299370279\n\n007605bf9ad3a1fd775014ebefbf7f1e6b31ee71\nUpdate API for bigqueryreservation v1beta1.\n- Adds flex capacity commitment plan to CapacityCommitment.\n- Adds methods for getting and updating BiReservations.\n- Adds methods for updating/splitting/merging CapacityCommitments.\n\nPiperOrigin-RevId: 299368059\n\nf0b581b5bdf803e45201ecdb3688b60e381628a8\nfix: recommendationengine/v1beta1 update some comments\n\nPiperOrigin-RevId: 299181282\n\n10e9a0a833dc85ff8f05b2c67ebe5ac785fe04ff\nbuild: add generated BUILD file for Routes Preferred API\n\nPiperOrigin-RevId: 299164808\n\n86738c956a8238d7c77f729be78b0ed887a6c913\npublish v1p1beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299152383\n\n73d9f2ad4591de45c2e1f352bc99d70cbd2a6d95\npublish v1: update with absolute address in comments\n\nPiperOrigin-RevId: 299147194\n\nd2158f24cb77b0b0ccfe68af784c6a628705e3c6\npublish v1beta2: update with absolute address in comments\n\nPiperOrigin-RevId: 299147086\n\n7fca61292c11b4cd5b352cee1a50bf88819dd63b\npublish v1p2beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146903\n\n583b7321624736e2c490e328f4b1957335779295\npublish v1p3beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146674\n\n638253bf86d1ce1c314108a089b7351440c2f0bf\nfix: add java_multiple_files option for automl text_sentiment.proto\n\nPiperOrigin-RevId: 298971070\n\n373d655703bf914fb8b0b1cc4071d772bac0e0d1\nUpdate Recs AI Beta public bazel file\n\nPiperOrigin-RevId: 298961623\n\ndcc5d00fc8a8d8b56f16194d7c682027b2c66a3b\nfix: add java_multiple_files option for automl classification.proto\n\nPiperOrigin-RevId: 298953301\n\na3f791827266f3496a6a5201d58adc4bb265c2a3\nchore: automl/v1 publish annotations and retry config\n\nPiperOrigin-RevId: 298942178\n\n01c681586d8d6dbd60155289b587aee678530bd9\nMark return_immediately in PullRequest deprecated.\n\nPiperOrigin-RevId: 298893281\n\nc9f5e9c4bfed54bbd09227e990e7bded5f90f31c\nRemove out of date documentation for predicate support on the Storage API\n\nPiperOrigin-RevId: 298883309\n\nfd5b3b8238d783b04692a113ffe07c0363f5de0f\ngenerate webrisk v1 proto\n\nPiperOrigin-RevId: 298847934\n\n541b1ded4abadcc38e8178680b0677f65594ea6f\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 298686266\n\nc0d171acecb4f5b0bfd2c4ca34fc54716574e300\n Updated to include the Notification v1 API.\n\nPiperOrigin-RevId: 298652775\n\n2346a9186c0bff2c9cc439f2459d558068637e05\nAdd Service Directory v1beta1 protos and configs\n\nPiperOrigin-RevId: 298625638\n\na78ed801b82a5c6d9c5368e24b1412212e541bb7\nPublishing v3 protos and configs.\n\nPiperOrigin-RevId: 298607357\n\n4a180bfff8a21645b3a935c2756e8d6ab18a74e0\nautoml/v1beta1 publish proto updates\n\nPiperOrigin-RevId: 298484782\n\n6de6e938b7df1cd62396563a067334abeedb9676\nchore: use the latest gapic-generator and protoc-java-resource-name-plugin in Bazel workspace.\n\nPiperOrigin-RevId: 298474513\n\n" - } - }, - { - "template": { - "name": "java_library", - "origin": "synthtool.gcp", - "version": "2020.2.4" + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "e36822bfa0acb355502dab391b8ef9c4f30208d8" } } ], diff --git a/java-pubsub/synth.py b/java-pubsub/synth.py index 24cfcbf56da8..a213152b4fea 100644 --- a/java-pubsub/synth.py +++ b/java-pubsub/synth.py @@ -22,6 +22,401 @@ service = 'pubsub' versions = ['v1'] +GET_IAM_POLICY_TOPIC = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
    +   * }
    +   * 
    + * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. + */ + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } +""" +GET_IAM_POLICY_SUBSCRIPTION = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    
    +   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
    +   * }
    +   * 
    + * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. + */ + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } +""" + +GET_IAM_POLICY_PREVIOUS = r'(\s+public final Policy getIamPolicy\(GetIamPolicyRequest request\) {\n\s+return .*\n\s+})' + +SET_IAM_POLICY_TOPIC = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   Policy policy = Policy.newBuilder().build();
    +   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
    +   * }
    +   * 
    + * + * @param resource REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + * @param 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. + */ + public final Policy setIamPolicy(String resource, Policy policy) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); + return setIamPolicy(request); + } +""" +SET_IAM_POLICY_SUBSCRIPTION = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + *

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + * + *

    Sample code: + * + *

    
    +   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   Policy policy = Policy.newBuilder().build();
    +   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
    +   * }
    +   * 
    + * + * @param resource REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + * @param 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. + */ + public final Policy setIamPolicy(String resource, Policy policy) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); + return setIamPolicy(request); + } +""" +SET_IAM_POLICY_PREVIOUS = r'(\s+public final Policy setIamPolicy\(SetIamPolicyRequest request\) {\n\s+return .*\n\s+})' + +TEST_IAM_PERMISSIONS_TOPIC = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * + *

    Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   List<String> permissions = new ArrayList<>();
    +   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
    +   * }
    +   * 
    + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See the + * operation documentation for the appropriate value for this field. + * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. + */ + public final TestIamPermissionsResponse testIamPermissions( + String resource, List permissions) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(resource) + .addAllPermissions(permissions) + .build(); + return testIamPermissions(request); + } +""" +TEST_IAM_PERMISSIONS_SUBSCRIPTION = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * + *

    Note: This operation is designed to be used for building permission-aware UIs and + * command-line tools, not for authorization checking. This operation may "fail open" without + * warning. + * + *

    Sample code: + * + *

    
    +   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    +   *   List<String> permissions = new ArrayList<>();
    +   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
    +   * }
    +   * 
    + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See the + * operation documentation for the appropriate value for this field. + * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. + */ + public final TestIamPermissionsResponse testIamPermissions( + String resource, List permissions) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(resource) + .addAllPermissions(permissions) + .build(); + return testIamPermissions(request); + } +""" +TEST_IAM_PERMISSIONS_PREVIOUS = r'(\s+public final TestIamPermissionsResponse testIamPermissions\(TestIamPermissionsRequest request\) {\n\s+return .*\n\s+})' + +CREATE_TOPIC = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates the given topic with the given name. See the <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   Topic response = topicAdminClient.createTopic(name);
    +   * }
    +   * 
    + * + * @param name 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"`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #createTopic(TopicName)} instead. + */ + public final Topic createTopic(ProjectTopicName name) { + Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); + return createTopic(request); + } +""" + +CREATE_TOPIC_PREVIOUS = r'(\s+public final Topic createTopic\(String name\) {\n\s+.*\n\s+return.*\n\s+})' + +DELETE_TOPIC = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * 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_`. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   topicAdminClient.deleteTopic(topic);
    +   * }
    +   * 
    + * + * @param topic Required. Name of the topic to delete. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #deleteTopic(TopicName)} instead. + */ + public final void deleteTopic(ProjectTopicName topic) { + DeleteTopicRequest request = + DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); + deleteTopic(request); + } +""" + +GET_TOPIC_PREVIOUS = r'(\s+public final Topic getTopic\(String topic\) {\n\s+.*\n\s+return.*\n\s+})' + +GET_TOPIC = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration of a topic. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   Topic response = topicAdminClient.getTopic(topic);
    +   * }
    +   * 
    + * + * @param topic Required. The name of the topic to get. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getTopic(TopicName)} instead. + */ + public final Topic getTopic(ProjectTopicName topic) { + GetTopicRequest request = + GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); + return getTopic(request); + } +""" + +DELETE_TOPIC_PREVIOUS = r'(\s+public final void deleteTopic\(String topic\) {\n\s+.*\n\s+deleteTopic.*\n\s+})' + +LIST_TOPIC_SUBSCRIPTIONS = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the names of the subscriptions on this topic. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic).iterateAllAsProjectSubscriptionName()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * 
    + * + * @param topic Required. The name of the topic that subscriptions are attached to. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #listTopicSubscriptions(TopicName)} instead. + */ + public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) { + ListTopicSubscriptionsRequest request = + ListTopicSubscriptionsRequest.newBuilder() + .setTopic(topic == null ? null : topic.toString()) + .build(); + return listTopicSubscriptions(request); + } +""" + +LIST_TOPIC_SUBSCRIPTIONS_PREVIOUS = r'(\s+public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions\(String topic\) {\n\s+.*\n\s+.*\n\s+return.*\n\s+})' + +CREATE_SUBSCRIPTION_PREVIOUS = r'(\s+public final Subscription createSubscription\(Subscription request\) {\n\s+return.*\n\s+})' + +CREATE_SUBSCRIPTION = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a subscription to a given topic. See the <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. + * + *

    Sample code: + * + *

    
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
    +   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    +   *   int ackDeadlineSeconds = 0;
    +   *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    +   * }
    +   * 
    + * + * @param name 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"`. + * @param topic 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. + * @param 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. + * @param ackDeadlineSeconds 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 + * <i>outstanding</i>. 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #createSubscription(ProjectSubscriptionName, TopicName, PushConfig, int)} instead. + */ + public final Subscription createSubscription( + ProjectSubscriptionName name, + ProjectTopicName topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic == null ? null : topic.toString()) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } +""" + +PACKAGE = 'package com.google.cloud.pubsub.v1;' + +IMPORT_PROJECT_TOPIC_NAME = 'import com.google.pubsub.v1.ProjectTopicName;' + for version in versions: java.bazel_library( service=service, @@ -40,6 +435,78 @@ java.GOOD_LICENSE, ) + s.replace( + '**/TopicAdminClient.java', + GET_IAM_POLICY_PREVIOUS, + "\g<1>\n\n" + GET_IAM_POLICY_TOPIC + ) + + s.replace( + '**/TopicAdminClient.java', + SET_IAM_POLICY_PREVIOUS, + "\g<1>\n\n" + SET_IAM_POLICY_TOPIC + ) + + s.replace( + '**/TopicAdminClient.java', + TEST_IAM_PERMISSIONS_PREVIOUS, + "\g<1>\n\n" + TEST_IAM_PERMISSIONS_TOPIC + ) + + s.replace( + '**/SubscriptionAdminClient.java', + GET_IAM_POLICY_PREVIOUS, + "\g<1>\n\n" + GET_IAM_POLICY_SUBSCRIPTION + ) + + s.replace( + '**/SubscriptionAdminClient.java', + SET_IAM_POLICY_PREVIOUS, + "\g<1>\n\n" + SET_IAM_POLICY_SUBSCRIPTION + ) + + s.replace( + '**/SubscriptionAdminClient.java', + TEST_IAM_PERMISSIONS_PREVIOUS, + "\g<1>\n\n" + TEST_IAM_PERMISSIONS_SUBSCRIPTION + ) + + s.replace( + '**/TopicAdminClient.java', + CREATE_TOPIC_PREVIOUS, + "\g<1>\n\n" + CREATE_TOPIC + ) + + s.replace( + '**/TopicAdminClient.java', + DELETE_TOPIC_PREVIOUS, + "\g<1>\n\n" + DELETE_TOPIC + ) + + s.replace( + '**/TopicAdminClient.java', + LIST_TOPIC_SUBSCRIPTIONS_PREVIOUS, + "\g<1>\n\n" + LIST_TOPIC_SUBSCRIPTIONS + ) + + s.replace( + '**/TopicAdminClient.java', + GET_TOPIC_PREVIOUS, + "\g<1>\n\n" + GET_TOPIC + ) + + s.replace( + '**/SubscriptionAdminClient.java', + CREATE_SUBSCRIPTION_PREVIOUS, + "\g<1>\n\n" + CREATE_SUBSCRIPTION + ) + + s.replace( + '**/*AdminClient.java', + PACKAGE, + PACKAGE + '\n\n' + IMPORT_PROJECT_TOPIC_NAME + '\n' + ) + java.format_code('google-cloud-pubsub/src') java.format_code(f'grpc-google-cloud-{service}-{version}/src') java.format_code(f'proto-google-cloud-{service}-{version}/src') From c74a178707ab2588b6c7ae09a821c5efca057e18 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 2 Apr 2020 19:01:17 +0200 Subject: [PATCH 0327/2363] deps: update core dependencies to v1.55.0 (#122) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 34dfa8702fb9..9b99e2266b7b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -66,7 +66,7 @@ 1.93.3 1.9.0 1.17.0 - 1.54.0 + 1.55.0 1.28.0 3.11.4 4.13 From eda3604901ec69dede4954d29978123c5461bc50 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 2 Apr 2020 10:54:00 -0700 Subject: [PATCH 0328/2363] chore: release 1.104.0 (#120) * updated CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated pom.xml [ci skip] Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 22 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 ++--- 8 files changed, 42 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index dc6e347d67ff..9305c35f7be0 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [1.104.0](https://www.github.com/googleapis/java-pubsub/compare/v1.103.1...v1.104.0) (2020-04-02) + + +### Features + +* Add flow control support to publisher ([#119](https://www.github.com/googleapis/java-pubsub/issues/119)) ([fdd9434](https://www.github.com/googleapis/java-pubsub/commit/fdd943433cface4bc6634f74aa12afa6e471f3a3)) +* add TopicName ([#113](https://www.github.com/googleapis/java-pubsub/issues/113)) ([4558c34](https://www.github.com/googleapis/java-pubsub/commit/4558c3430901cdaec12a43e06ea4fafaa01c08e0)) + + +### Bug Fixes + +* Re-generated to pick up changes in the API or client library generator. ([#104](https://www.github.com/googleapis/java-pubsub/issues/104)) ([0e366c3](https://www.github.com/googleapis/java-pubsub/commit/0e366c35580116fcd6aa40caadedd95be07bdd87)) + + +### Dependencies + +* update core dependencies ([#105](https://www.github.com/googleapis/java-pubsub/issues/105)) ([5639f63](https://www.github.com/googleapis/java-pubsub/commit/5639f6321e1506fdf803f5de58f2c7fdf5afb448)) +* update core dependencies to v1.55.0 ([#122](https://www.github.com/googleapis/java-pubsub/issues/122)) ([3ea1202](https://www.github.com/googleapis/java-pubsub/commit/3ea1202dbe13b60cfdc14c2855e878e190a52199)) +* update dependency com.google.api:api-common to v1.9.0 ([#121](https://www.github.com/googleapis/java-pubsub/issues/121)) ([30a1dee](https://www.github.com/googleapis/java-pubsub/commit/30a1deecbecf63d1629ae93407658865518febce)) +* update dependency org.threeten:threetenbp to v1.4.2 ([#116](https://www.github.com/googleapis/java-pubsub/issues/116)) ([e7c007b](https://www.github.com/googleapis/java-pubsub/commit/e7c007b917618e75f9c8fecd2475f31c7eba0817)) +* update opencensus.version to v0.26.0 ([#115](https://www.github.com/googleapis/java-pubsub/issues/115)) ([26aec5d](https://www.github.com/googleapis/java-pubsub/commit/26aec5d7ee45bec5b39b6cbe67122a6e5944268e)) + ### [1.103.1](https://www.github.com/googleapis/java-pubsub/compare/v1.103.0...v1.103.1) (2020-03-03) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 59b71910264a..5d0cfabf80a5 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -37,16 +37,16 @@ If you are using Maven without a BOM, add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.103.1 + 1.104.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.103.1' +compile 'com.google.cloud:google-cloud-pubsub:1.104.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.103.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.104.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 34c71afea816..9d19ced9d66b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.103.2-SNAPSHOT + 1.104.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.2-SNAPSHOT + 1.86.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.2-SNAPSHOT + 1.86.0 com.google.cloud google-cloud-pubsub - 1.103.2-SNAPSHOT + 1.104.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index fc40ef539153..5ea586b80987 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.103.2-SNAPSHOT + 1.104.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.103.2-SNAPSHOT + 1.104.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ea132fef3d83..c8bbb22be81b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.2-SNAPSHOT + 1.86.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.103.2-SNAPSHOT + 1.104.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9b99e2266b7b..04dfdbc192ac 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.103.2-SNAPSHOT + 1.104.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.2-SNAPSHOT + 1.86.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.85.2-SNAPSHOT + 1.86.0 com.google.cloud google-cloud-pubsub - 1.103.2-SNAPSHOT + 1.104.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ec3696952077..b5701db4ed32 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.85.2-SNAPSHOT + 1.86.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.103.2-SNAPSHOT + 1.104.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0b31de2c3f55..41492b20ac31 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.85.1:1.85.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.85.1:1.85.2-SNAPSHOT -google-cloud-pubsub:1.103.1:1.103.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.86.0:1.86.0 +grpc-google-cloud-pubsub-v1:1.86.0:1.86.0 +google-cloud-pubsub:1.104.0:1.104.0 \ No newline at end of file From 2c5d19efdb9d504a2cb14085c91618ec30af959b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 18:35:19 +0200 Subject: [PATCH 0329/2363] deps: update dependency org.threeten:threetenbp to v1.4.3 (#128) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [org.threeten:threetenbp](https://www.threeten.org/threetenbp) ([source](https://togithub.com/ThreeTen/threetenbp)) | patch | `1.4.2` -> `1.4.3` | --- ### Release Notes

    ThreeTen/threetenbp ### [`v1.4.3`](https://togithub.com/ThreeTen/threetenbp/releases/v1.4.3) [Compare Source](https://togithub.com/ThreeTen/threetenbp/compare/v1.4.2...v1.4.3) See the [change notes](https://www.threeten.org/threetenbp/changes-report.html) for more information.
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 04dfdbc192ac..9bae73ad0c4c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -72,7 +72,7 @@ 4.13 4.2 28.2-android - 1.4.2 + 1.4.3 1.3.2 2.3.4 1.34.2 From 2a999c3ff902598fbd25f40d7330a4247006fc7c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Apr 2020 00:55:48 +0200 Subject: [PATCH 0330/2363] deps: update core dependencies (#127) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [io.grpc:grpc-bom](https://togithub.com/grpc/grpc-java) | patch | `1.28.0` -> `1.28.1` | | [com.google.api:gax-grpc](https://togithub.com/googleapis/gax-java) | minor | `1.55.0` -> `1.56.0` | | [com.google.api:gax-bom](https://togithub.com/googleapis/gax-java) | minor | `1.55.0` -> `1.56.0` | --- ### Release Notes
    grpc/grpc-java ### [`v1.28.1`](https://togithub.com/grpc/grpc-java/releases/v1.28.1) [Compare Source](https://togithub.com/grpc/grpc-java/compare/v1.28.0...v1.28.1) #### Bug Fixes - xds: implement more clear specifications for locality filtering (allow localities with 0 endpoint, ignore localities with 0 weight, check for locality priority continuity). ([#​6875](https://togithub.com/grpc/grpc-java/issues/6875))
    googleapis/gax-java ### [`v1.56.0`](https://togithub.com/googleapis/gax-java/releases/v1.56.0) [Compare Source](https://togithub.com/googleapis/gax-java/compare/v1.55.0...v1.56.0) 04-06-2020 10:29 PDT ##### New Features - Add ability to partially update retry settings ([#​993](https://togithub.com/googleapis/gax-java/pull/993)) ##### Dependencies - Update grpc to 1.28.1 ([#​1013](https://togithub.com/googleapis/gax-java/pull/1013)) - Update com.google.api:api-common to 1.9.0 ([#​992](https://togithub.com/googleapis/gax-java/pull/992)) - Add javax.annotations dependency in bazel build to gax-grpc ([#​1000](https://togithub.com/googleapis/gax-java/pull/1000)) ##### Internal / Testing Changes - test: make it easier to debug failures in SettingsTest ([#​994](https://togithub.com/googleapis/gax-java/pull/994)) - build: update dependency gradle.plugin.com.dorongold.plugins:task-tree to v1.5 ([#​995](https://togithub.com/googleapis/gax-java/pull/995)) - test: update dependency com.google.api.grpc:grpc-google-cloud-pubsub-v1 to v1.86.0 ([#​1008](https://togithub.com/googleapis/gax-java/pull/1008))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :ghost: **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/config-help/issues) if that's undesired. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9bae73ad0c4c..82cf96cf6d50 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -66,8 +66,8 @@ 1.93.3 1.9.0 1.17.0 - 1.55.0 - 1.28.0 + 1.56.0 + 1.28.1 3.11.4 4.13 4.2 From 26c6a49644b3bfaecf418e1823b4c7218768a0f1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Apr 2020 01:18:15 +0200 Subject: [PATCH 0331/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.93.4 (#129) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | patch | `1.93.3` -> `1.93.4` | --- ### Release Notes
    googleapis/java-core ### [`v1.93.4`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1934-httpswwwgithubcomgoogleapisjava-corecomparev1933v1934-2020-04-06) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.93.3...v1.93.4)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 82cf96cf6d50..d0e34e1b5fe1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -63,7 +63,7 @@ UTF-8 github google-cloud-pubsub-parent - 1.93.3 + 1.93.4 1.9.0 1.17.0 1.56.0 From 4bdbcd85493f44680ff8f9822bc10552e59ea093 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2020 00:20:35 +0000 Subject: [PATCH 0332/2363] chore: release 1.104.1-SNAPSHOT (#126) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9d19ced9d66b..1dfe17e9fadf 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.104.0 + 1.104.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.0 + 1.86.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.0 + 1.86.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.104.0 + 1.104.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5ea586b80987..597aa70d6351 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.104.0 + 1.104.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.104.0 + 1.104.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c8bbb22be81b..79587286e23f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.0 + 1.86.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.104.0 + 1.104.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d0e34e1b5fe1..07ffdff8bb37 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.104.0 + 1.104.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.0 + 1.86.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.0 + 1.86.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.104.0 + 1.104.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b5701db4ed32..50565b436750 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.0 + 1.86.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.104.0 + 1.104.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 41492b20ac31..495b7912b712 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.86.0:1.86.0 -grpc-google-cloud-pubsub-v1:1.86.0:1.86.0 -google-cloud-pubsub:1.104.0:1.104.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.86.0:1.86.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.86.0:1.86.1-SNAPSHOT +google-cloud-pubsub:1.104.0:1.104.1-SNAPSHOT \ No newline at end of file From 6f505c305b55fdc04e1b03913305182dcd1cef08 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 8 Apr 2020 06:47:40 +0200 Subject: [PATCH 0333/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.5.0 (#132) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | minor | `0.4.0` -> `0.5.0` | --- ### Release Notes
    googleapis/java-shared-config ### [`v0.5.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​050-httpswwwgithubcomgoogleapisjava-shared-configcomparev040v050-2020-04-07) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.4.0...v0.5.0) ##### Features - add ban duplicate classes rule ([#​126](https://www.github.com/googleapis/java-shared-config/issues/126)) ([e38a7cc](https://www.github.com/googleapis/java-shared-config/commit/e38a7cc949396f8f5696e62cd060e0c076047b8d)) - add devsite javadoc profile ([#​121](https://www.github.com/googleapis/java-shared-config/issues/121)) ([7f452fb](https://www.github.com/googleapis/java-shared-config/commit/7f452fb6c5704f6ce0f731085479a28fb99ebcb9)) - add maven flatten plugin ([#​127](https://www.github.com/googleapis/java-shared-config/issues/127)) ([fb00799](https://www.github.com/googleapis/java-shared-config/commit/fb00799c416d324d68da5b660a26f7ef595c26d9)) ##### Bug Fixes - declare com.coveo:fmt-maven-plugin version/configuration ([#​90](https://www.github.com/googleapis/java-shared-config/issues/90)) ([5cf71a6](https://www.github.com/googleapis/java-shared-config/commit/5cf71a6ed699907082756e70c2fdee6ad3632f38)) ##### Dependencies - update dependency com.google.cloud.samples:shared-configuration to v1.0.13 ([#​118](https://www.github.com/googleapis/java-shared-config/issues/118)) ([58ae69e](https://www.github.com/googleapis/java-shared-config/commit/58ae69eb5ba037963cdaed0c2b0e30663bc873eb)) - update dependency com.puppycrawl.tools:checkstyle to v8.29 ([f62292d](https://www.github.com/googleapis/java-shared-config/commit/f62292dab75699a75f8a7d499fe2ccfb7ee93783)) - update dependency org.apache.maven.plugins:maven-antrun-plugin to v1.8 ([#​124](https://www.github.com/googleapis/java-shared-config/issues/124)) ([a681536](https://www.github.com/googleapis/java-shared-config/commit/a68153643400c3f3b5c5959cda4dc3b552336427)) - update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.1.2 ([#​107](https://www.github.com/googleapis/java-shared-config/issues/107)) ([c9b096b](https://www.github.com/googleapis/java-shared-config/commit/c9b096b81b1f4f8dc2d1302f259f0321722e1ca5)) - update dependency org.apache.maven.plugins:maven-site-plugin to v3.9.0 ([#​103](https://www.github.com/googleapis/java-shared-config/issues/103)) ([abe7140](https://www.github.com/googleapis/java-shared-config/commit/abe714060e858c70a83888fb34438c45d97b1168)) - update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.1.0 ([#​101](https://www.github.com/googleapis/java-shared-config/issues/101)) ([ac69572](https://www.github.com/googleapis/java-shared-config/commit/ac69572be76e4462fdf65fa6e7f0935c3d51d827))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1dfe17e9fadf..64e41d6c1ae4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.4.0 + 0.5.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 07ffdff8bb37..42efde226a96 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.4.0 + 0.5.0 From 2bd8d65ac71dd1eae1faa875db49d5014db93f2e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 9 Apr 2020 10:54:24 -0700 Subject: [PATCH 0334/2363] chore: release 1.104.1 (#130) * updated CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 8 files changed, 29 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 9305c35f7be0..3919efb3db4c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +### [1.104.1](https://www.github.com/googleapis/java-pubsub/compare/v1.104.0...v1.104.1) (2020-04-08) + + +### Dependencies + +* update core dependencies ([#127](https://www.github.com/googleapis/java-pubsub/issues/127)) ([33c9293](https://www.github.com/googleapis/java-pubsub/commit/33c9293fbb7de6de6861c4b2c3e3e79fb9e57e7b)) +* update dependency com.google.cloud:google-cloud-core to v1.93.4 ([#129](https://www.github.com/googleapis/java-pubsub/issues/129)) ([78c0216](https://www.github.com/googleapis/java-pubsub/commit/78c021628c86317d3893f2797ccc5039cffd453a)) +* update dependency org.threeten:threetenbp to v1.4.3 ([#128](https://www.github.com/googleapis/java-pubsub/issues/128)) ([54650dd](https://www.github.com/googleapis/java-pubsub/commit/54650dd6115f055d8a66c164017d1a038552dfac)) + ## [1.104.0](https://www.github.com/googleapis/java-pubsub/compare/v1.103.1...v1.104.0) (2020-04-02) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5d0cfabf80a5..ca3d245d7790 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -37,16 +37,16 @@ If you are using Maven without a BOM, add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.104.0 + 1.104.1 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.104.0' +compile 'com.google.cloud:google-cloud-pubsub:1.104.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.104.1" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 64e41d6c1ae4..49f3b4443ae0 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.104.1-SNAPSHOT + 1.104.1 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.1-SNAPSHOT + 1.86.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.1-SNAPSHOT + 1.86.1 com.google.cloud google-cloud-pubsub - 1.104.1-SNAPSHOT + 1.104.1
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 597aa70d6351..468fe5361f8d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.104.1-SNAPSHOT + 1.104.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.104.1-SNAPSHOT + 1.104.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 79587286e23f..d48d9a57f08d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.1-SNAPSHOT + 1.86.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.104.1-SNAPSHOT + 1.104.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 42efde226a96..f8e1fe7960a9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.104.1-SNAPSHOT + 1.104.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.1-SNAPSHOT + 1.86.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.1-SNAPSHOT + 1.86.1 com.google.cloud google-cloud-pubsub - 1.104.1-SNAPSHOT + 1.104.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 50565b436750..ce640eee3d91 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.1-SNAPSHOT + 1.86.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.104.1-SNAPSHOT + 1.104.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 495b7912b712..7c7fd663b579 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.86.0:1.86.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.86.0:1.86.1-SNAPSHOT -google-cloud-pubsub:1.104.0:1.104.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.86.1:1.86.1 +grpc-google-cloud-pubsub-v1:1.86.1:1.86.1 +google-cloud-pubsub:1.104.1:1.104.1 \ No newline at end of file From 5837eeb6cad94f7f1a09be2160a096b9366ac18c Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Fri, 10 Apr 2020 17:13:48 -0400 Subject: [PATCH 0335/2363] feat: add interfaces for cloud pubsub publishers and subscribers (#134) --- .../com/google/cloud/pubsub/v1/Publisher.java | 3 +- .../cloud/pubsub/v1/PublisherInterface.java | 53 +++++++++++++++++++ .../google/cloud/pubsub/v1/Subscriber.java | 2 +- .../cloud/pubsub/v1/SubscriberInterface.java | 26 +++++++++ 4 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 659d84bb6b9a..282df369f3c1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -85,7 +85,7 @@ *

    {@link Publisher} will use the credentials set on the channel, which uses application default * credentials through {@link GoogleCredentials#getApplicationDefault} by default. */ -public class Publisher { +public class Publisher implements PublisherInterface { private static final Logger logger = Logger.getLogger(Publisher.class.getName()); private final String topicName; @@ -226,6 +226,7 @@ public String getTopicNameString() { * @param message the message to publish. * @return the message ID wrapped in a future. */ + @Override public ApiFuture publish(PubsubMessage message) { Preconditions.checkState(!shutdown.get(), "Cannot publish on a shut-down publisher."); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java new file mode 100644 index 000000000000..80a465053826 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java @@ -0,0 +1,53 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiFuture; +import com.google.pubsub.v1.PubsubMessage; + +/** + * An interface for a Cloud Pub/Sub publisher. + */ +public interface PublisherInterface { + /** + * Schedules the publishing of a message. The future will be returned with the message ID on + * success or an exception on failure. + * + *

    Example of publishing a message. + * + *

    {@code
    +   * String message = "my_message";
    +   * ByteString data = ByteString.copyFromUtf8(message);
    +   * PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build();
    +   * ApiFuture messageIdFuture = publisher.publish(pubsubMessage);
    +   * ApiFutures.addCallback(messageIdFuture, new ApiFutureCallback() {
    +   *   public void onSuccess(String messageId) {
    +   *     System.out.println("published with message id: " + messageId);
    +   *   }
    +   *
    +   *   public void onFailure(Throwable t) {
    +   *     System.out.println("failed to publish: " + t);
    +   *   }
    +   * }, MoreExecutors.directExecutor());
    +   * }
    + * + * @param message the message to publish. + * @return the message ID wrapped in a future. + */ + ApiFuture publish(PubsubMessage message); +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 8baaf24726d1..0054408ee006 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -90,7 +90,7 @@ * href="https://github.com/google/guava/wiki/ServiceExplained">Guava documentation for more * details. */ -public class Subscriber extends AbstractApiService { +public class Subscriber extends AbstractApiService implements SubscriberInterface { private static final int THREADS_PER_CHANNEL = 5; private static final int MAX_INBOUND_MESSAGE_SIZE = 20 * 1024 * 1024; // 20MB API maximum message size. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java new file mode 100644 index 000000000000..e97e9141f47a --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java @@ -0,0 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiService; + +/** + * The core interface for a Cloud Pub/Sub subscriber, consisting only of + * ApiService methods. + */ +public interface SubscriberInterface extends ApiService {} From a8dd39075efef582d305229dfbf0d65523980ac7 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Fri, 10 Apr 2020 14:17:44 -0700 Subject: [PATCH 0336/2363] docs: update libraries-bom (#140) --- java-pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ca3d245d7790..77d0d17862df 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -18,7 +18,7 @@ If you are using Maven with a BOM, add this to your pom.xml file: com.google.cloud libraries-bom - 2.9.0 + 4.4.1 pom import From b7826b325e1ce017d757a59bdbab13cc128c278c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2020 19:34:51 +0000 Subject: [PATCH 0337/2363] chore: release 1.104.2-SNAPSHOT (#142) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 49f3b4443ae0..f889a7d9f72b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.104.1 + 1.104.2-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.1 + 1.86.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.1 + 1.86.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.104.1 + 1.104.2-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 468fe5361f8d..c755bb5e595d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.104.1 + 1.104.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.104.1 + 1.104.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d48d9a57f08d..4fbe7585ca21 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.1 + 1.86.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.104.1 + 1.104.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f8e1fe7960a9..5908736229c9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.104.1 + 1.104.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.1 + 1.86.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.1 + 1.86.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.104.1 + 1.104.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ce640eee3d91..eab94e5e4846 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.1 + 1.86.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.104.1 + 1.104.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7c7fd663b579..014167f12cbe 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.86.1:1.86.1 -grpc-google-cloud-pubsub-v1:1.86.1:1.86.1 -google-cloud-pubsub:1.104.1:1.104.1 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.86.1:1.86.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.86.1:1.86.2-SNAPSHOT +google-cloud-pubsub:1.104.1:1.104.2-SNAPSHOT \ No newline at end of file From 5ce7f27d2007eba5c70c012de7bbe350c379b738 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 14 Apr 2020 12:14:16 -0700 Subject: [PATCH 0338/2363] chore: release 1.105.0 (#144) * updated CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 3919efb3db4c..e574a0bcbe0b 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.105.0](https://www.github.com/googleapis/java-pubsub/compare/v1.104.1...v1.105.0) (2020-04-13) + + +### Features + +* add interfaces for cloud pubsub publishers and subscribers ([#134](https://www.github.com/googleapis/java-pubsub/issues/134)) ([89fcc88](https://www.github.com/googleapis/java-pubsub/commit/89fcc8848cc7d421e8dde9b7dca28a6940d8386f)) + + +### Documentation + +* update libraries-bom ([#140](https://www.github.com/googleapis/java-pubsub/issues/140)) ([d8239bd](https://www.github.com/googleapis/java-pubsub/commit/d8239bdc080d0ef595bac90451485b1d3d50f266)) + ### [1.104.1](https://www.github.com/googleapis/java-pubsub/compare/v1.104.0...v1.104.1) (2020-04-08) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 77d0d17862df..213395c8f53c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -37,16 +37,16 @@ If you are using Maven without a BOM, add this to your pom.xml file com.google.cloud google-cloud-pubsub - 1.104.1 + 1.105.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.104.1' +compile 'com.google.cloud:google-cloud-pubsub:1.105.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.104.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.105.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f889a7d9f72b..64cfa6741e2e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.104.2-SNAPSHOT + 1.105.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.2-SNAPSHOT + 1.87.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.2-SNAPSHOT + 1.87.0 com.google.cloud google-cloud-pubsub - 1.104.2-SNAPSHOT + 1.105.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c755bb5e595d..f65484e94257 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.104.2-SNAPSHOT + 1.105.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.104.2-SNAPSHOT + 1.105.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 4fbe7585ca21..792f4909cd84 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.2-SNAPSHOT + 1.87.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.104.2-SNAPSHOT + 1.105.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5908736229c9..ef335aa8392a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.104.2-SNAPSHOT + 1.105.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.2-SNAPSHOT + 1.87.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.86.2-SNAPSHOT + 1.87.0 com.google.cloud google-cloud-pubsub - 1.104.2-SNAPSHOT + 1.105.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index eab94e5e4846..5ae9f7e17560 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.86.2-SNAPSHOT + 1.87.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.104.2-SNAPSHOT + 1.105.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 014167f12cbe..ffd681970b73 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.86.1:1.86.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.86.1:1.86.2-SNAPSHOT -google-cloud-pubsub:1.104.1:1.104.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.87.0:1.87.0 +grpc-google-cloud-pubsub-v1:1.87.0:1.87.0 +google-cloud-pubsub:1.105.0:1.105.0 \ No newline at end of file From a1ee4442963947614f790e9856876ed04d22e32d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Apr 2020 22:22:13 +0200 Subject: [PATCH 0339/2363] deps: update dependency com.google.guava:guava-bom to v29 (#146) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.guava:guava-bom](https://togithub.com/google/guava) | major | `28.2-android` -> `29.0-android` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ef335aa8392a..ee357b29db89 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -71,7 +71,7 @@ 3.11.4 4.13 4.2 - 28.2-android + 29.0-android 1.4.3 1.3.2 2.3.4 From 6990de6cc4a23ccc52bf88e8c624324d2a037516 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 16 Apr 2020 17:06:24 +0000 Subject: [PATCH 0340/2363] chore: release 1.105.1-SNAPSHOT (#147) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/versions.txt | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 64cfa6741e2e..fa09ccad6af3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.105.0 + 1.105.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.0 + 1.87.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.0 + 1.87.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.105.0 + 1.105.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f65484e94257..737d001f3f03 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.105.0 + 1.105.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.105.0 + 1.105.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 792f4909cd84..e8fab58c77d4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.0 + 1.87.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.105.0 + 1.105.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ee357b29db89..64a45f2e5aa2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.105.0 + 1.105.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.0 + 1.87.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.0 + 1.87.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.105.0 + 1.105.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5ae9f7e17560..3f01b1993955 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.0 + 1.87.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.105.0 + 1.105.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ffd681970b73..e39b5c5d4fe0 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.87.0:1.87.0 -grpc-google-cloud-pubsub-v1:1.87.0:1.87.0 -google-cloud-pubsub:1.105.0:1.105.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.87.0:1.87.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.87.0:1.87.1-SNAPSHOT +google-cloud-pubsub:1.105.0:1.105.1-SNAPSHOT \ No newline at end of file From 4b99726d1bac322d01758e82634a4ec3cf767a7c Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 22 Apr 2020 11:23:52 -0700 Subject: [PATCH 0341/2363] chore(regen): isolate gRPC change (#158) * chore(regen): isolate grpc generator changes * chore: allow removal of deprecated, experimental constant --- .../clirr-ignored-differences.xml | 10 + .../com/google/pubsub/v1/PublisherGrpc.java | 329 ++++------ .../com/google/pubsub/v1/SubscriberGrpc.java | 589 +++++++----------- 3 files changed, 356 insertions(+), 572 deletions(-) create mode 100644 java-pubsub/grpc-google-cloud-pubsub-v1/clirr-ignored-differences.xml diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/clirr-ignored-differences.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..bf6eda2eec44 --- /dev/null +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/clirr-ignored-differences.xml @@ -0,0 +1,10 @@ + + + + + + 6001 + com/google/pubsub/v1/*Grpc + METHOD_* + + \ No newline at end of file diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 3c49b66e02ad..a4df9a4bf376 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -31,7 +31,7 @@ *
    */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", + value = "by gRPC proto compiler", comments = "Source: google/pubsub/v1/pubsub.proto") public final class PublisherGrpc { @@ -40,24 +40,17 @@ private PublisherGrpc() {} public static final String SERVICE_NAME = "google.pubsub.v1.Publisher"; // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateTopicMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic> - METHOD_CREATE_TOPIC = getCreateTopicMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic> getCreateTopicMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTopic", + requestType = com.google.pubsub.v1.Topic.class, + responseType = com.google.pubsub.v1.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCreateTopicMethod() { - return getCreateTopicMethodHelper(); - } - - private static io.grpc.MethodDescriptor - getCreateTopicMethodHelper() { io.grpc.MethodDescriptor getCreateTopicMethod; if ((getCreateTopicMethod = PublisherGrpc.getCreateTopicMethod) == null) { @@ -68,8 +61,7 @@ private PublisherGrpc() {} io.grpc.MethodDescriptor .newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Publisher", "CreateTopic")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTopic")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -85,26 +77,18 @@ private PublisherGrpc() {} return getCreateTopicMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateTopicMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic> - METHOD_UPDATE_TOPIC = getUpdateTopicMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic> getUpdateTopicMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTopic", + requestType = com.google.pubsub.v1.UpdateTopicRequest.class, + responseType = com.google.pubsub.v1.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic> getUpdateTopicMethod() { - return getUpdateTopicMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic> - getUpdateTopicMethodHelper() { io.grpc.MethodDescriptor getUpdateTopicMethod; if ((getUpdateTopicMethod = PublisherGrpc.getUpdateTopicMethod) == null) { @@ -116,8 +100,7 @@ private PublisherGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Publisher", "UpdateTopic")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTopic")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -133,26 +116,18 @@ private PublisherGrpc() {} return getUpdateTopicMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPublishMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse> - METHOD_PUBLISH = getPublishMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse> getPublishMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Publish", + requestType = com.google.pubsub.v1.PublishRequest.class, + responseType = com.google.pubsub.v1.PublishResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse> getPublishMethod() { - return getPublishMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse> - getPublishMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse> getPublishMethod; @@ -165,8 +140,7 @@ private PublisherGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Publisher", "Publish")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Publish")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -182,26 +156,18 @@ private PublisherGrpc() {} return getPublishMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetTopicMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic> - METHOD_GET_TOPIC = getGetTopicMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic> getGetTopicMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTopic", + requestType = com.google.pubsub.v1.GetTopicRequest.class, + responseType = com.google.pubsub.v1.Topic.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic> getGetTopicMethod() { - return getGetTopicMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic> - getGetTopicMethodHelper() { io.grpc.MethodDescriptor getGetTopicMethod; if ((getGetTopicMethod = PublisherGrpc.getGetTopicMethod) == null) { @@ -213,8 +179,7 @@ private PublisherGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Publisher", "GetTopic")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopic")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -230,26 +195,18 @@ private PublisherGrpc() {} return getGetTopicMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListTopicsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse> - METHOD_LIST_TOPICS = getListTopicsMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse> getListTopicsMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTopics", + requestType = com.google.pubsub.v1.ListTopicsRequest.class, + responseType = com.google.pubsub.v1.ListTopicsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse> getListTopicsMethod() { - return getListTopicsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse> - getListTopicsMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse> getListTopicsMethod; @@ -263,8 +220,7 @@ private PublisherGrpc() {} com.google.pubsub.v1.ListTopicsResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Publisher", "ListTopics")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopics")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -280,30 +236,20 @@ private PublisherGrpc() {} return getListTopicsMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListTopicSubscriptionsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListTopicSubscriptionsRequest, - com.google.pubsub.v1.ListTopicSubscriptionsResponse> - METHOD_LIST_TOPIC_SUBSCRIPTIONS = getListTopicSubscriptionsMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicSubscriptionsRequest, com.google.pubsub.v1.ListTopicSubscriptionsResponse> getListTopicSubscriptionsMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTopicSubscriptions", + requestType = com.google.pubsub.v1.ListTopicSubscriptionsRequest.class, + responseType = com.google.pubsub.v1.ListTopicSubscriptionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicSubscriptionsRequest, com.google.pubsub.v1.ListTopicSubscriptionsResponse> getListTopicSubscriptionsMethod() { - return getListTopicSubscriptionsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListTopicSubscriptionsRequest, - com.google.pubsub.v1.ListTopicSubscriptionsResponse> - getListTopicSubscriptionsMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicSubscriptionsRequest, com.google.pubsub.v1.ListTopicSubscriptionsResponse> @@ -320,8 +266,7 @@ private PublisherGrpc() {} newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName( - "google.pubsub.v1.Publisher", "ListTopicSubscriptions")) + generateFullMethodName(SERVICE_NAME, "ListTopicSubscriptions")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -340,30 +285,20 @@ private PublisherGrpc() {} return getListTopicSubscriptionsMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListTopicSnapshotsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListTopicSnapshotsRequest, - com.google.pubsub.v1.ListTopicSnapshotsResponse> - METHOD_LIST_TOPIC_SNAPSHOTS = getListTopicSnapshotsMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicSnapshotsRequest, com.google.pubsub.v1.ListTopicSnapshotsResponse> getListTopicSnapshotsMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTopicSnapshots", + requestType = com.google.pubsub.v1.ListTopicSnapshotsRequest.class, + responseType = com.google.pubsub.v1.ListTopicSnapshotsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicSnapshotsRequest, com.google.pubsub.v1.ListTopicSnapshotsResponse> getListTopicSnapshotsMethod() { - return getListTopicSnapshotsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListTopicSnapshotsRequest, - com.google.pubsub.v1.ListTopicSnapshotsResponse> - getListTopicSnapshotsMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicSnapshotsRequest, com.google.pubsub.v1.ListTopicSnapshotsResponse> @@ -378,9 +313,7 @@ private PublisherGrpc() {} com.google.pubsub.v1.ListTopicSnapshotsResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.pubsub.v1.Publisher", "ListTopicSnapshots")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopicSnapshots")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -397,26 +330,18 @@ private PublisherGrpc() {} return getListTopicSnapshotsMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteTopicMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty> - METHOD_DELETE_TOPIC = getDeleteTopicMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty> getDeleteTopicMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTopic", + requestType = com.google.pubsub.v1.DeleteTopicRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty> getDeleteTopicMethod() { - return getDeleteTopicMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty> - getDeleteTopicMethodHelper() { io.grpc.MethodDescriptor getDeleteTopicMethod; if ((getDeleteTopicMethod = PublisherGrpc.getDeleteTopicMethod) == null) { @@ -428,8 +353,7 @@ private PublisherGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Publisher", "DeleteTopic")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTopic")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -447,19 +371,42 @@ private PublisherGrpc() {} /** Creates a new async stub that supports all call types for the service */ public static PublisherStub newStub(io.grpc.Channel channel) { - return new PublisherStub(channel); + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PublisherStub(channel, callOptions); + } + }; + return PublisherStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static PublisherBlockingStub newBlockingStub(io.grpc.Channel channel) { - return new PublisherBlockingStub(channel); + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PublisherBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PublisherBlockingStub(channel, callOptions); + } + }; + return PublisherBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static PublisherFutureStub newFutureStub(io.grpc.Channel channel) { - return new PublisherFutureStub(channel); + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PublisherFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PublisherFutureStub(channel, callOptions); + } + }; + return PublisherFutureStub.newStub(factory, channel); } /** @@ -484,7 +431,7 @@ public abstract static class PublisherImplBase implements io.grpc.BindableServic public void createTopic( com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTopicMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCreateTopicMethod(), responseObserver); } /** @@ -498,7 +445,7 @@ public void createTopic( public void updateTopic( com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateTopicMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getUpdateTopicMethod(), responseObserver); } /** @@ -512,7 +459,7 @@ public void updateTopic( public void publish( com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPublishMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getPublishMethod(), responseObserver); } /** @@ -525,7 +472,7 @@ public void publish( public void getTopic( com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTopicMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); } /** @@ -538,7 +485,7 @@ public void getTopic( public void listTopics( com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTopicsMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); } /** @@ -552,7 +499,7 @@ public void listTopicSubscriptions( com.google.pubsub.v1.ListTopicSubscriptionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethod(), responseObserver); } /** @@ -571,7 +518,7 @@ public void listTopicSnapshots( com.google.pubsub.v1.ListTopicSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTopicSnapshotsMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListTopicSnapshotsMethod(), responseObserver); } /** @@ -588,57 +535,57 @@ public void listTopicSnapshots( public void deleteTopic( com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteTopicMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getDeleteTopicMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateTopicMethodHelper(), + getCreateTopicMethod(), asyncUnaryCall( new MethodHandlers( this, METHODID_CREATE_TOPIC))) .addMethod( - getUpdateTopicMethodHelper(), + getUpdateTopicMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>( this, METHODID_UPDATE_TOPIC))) .addMethod( - getPublishMethodHelper(), + getPublishMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>( this, METHODID_PUBLISH))) .addMethod( - getGetTopicMethodHelper(), + getGetTopicMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>( this, METHODID_GET_TOPIC))) .addMethod( - getListTopicsMethodHelper(), + getListTopicsMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>(this, METHODID_LIST_TOPICS))) .addMethod( - getListTopicSubscriptionsMethodHelper(), + getListTopicSubscriptionsMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListTopicSubscriptionsRequest, com.google.pubsub.v1.ListTopicSubscriptionsResponse>( this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) .addMethod( - getListTopicSnapshotsMethodHelper(), + getListTopicSnapshotsMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListTopicSnapshotsRequest, com.google.pubsub.v1.ListTopicSnapshotsResponse>( this, METHODID_LIST_TOPIC_SNAPSHOTS))) .addMethod( - getDeleteTopicMethodHelper(), + getDeleteTopicMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>( @@ -655,11 +602,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * messages to a topic. *
    */ - public static final class PublisherStub extends io.grpc.stub.AbstractStub { - private PublisherStub(io.grpc.Channel channel) { - super(channel); - } - + public static final class PublisherStub extends io.grpc.stub.AbstractAsyncStub { private PublisherStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -682,7 +625,7 @@ public void createTopic( com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateTopicMethodHelper(), getCallOptions()), + getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request, responseObserver); } @@ -699,7 +642,7 @@ public void updateTopic( com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getUpdateTopicMethodHelper(), getCallOptions()), + getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request, responseObserver); } @@ -716,9 +659,7 @@ public void publish( com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getPublishMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPublishMethod(), getCallOptions()), request, responseObserver); } /** @@ -732,9 +673,7 @@ public void getTopic( com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetTopicMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetTopicMethod(), getCallOptions()), request, responseObserver); } /** @@ -748,9 +687,7 @@ public void listTopics( com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListTopicsMethodHelper(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListTopicsMethod(), getCallOptions()), request, responseObserver); } /** @@ -765,7 +702,7 @@ public void listTopicSubscriptions( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethodHelper(), getCallOptions()), + getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request, responseObserver); } @@ -787,7 +724,7 @@ public void listTopicSnapshots( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListTopicSnapshotsMethodHelper(), getCallOptions()), + getChannel().newCall(getListTopicSnapshotsMethod(), getCallOptions()), request, responseObserver); } @@ -807,7 +744,7 @@ public void deleteTopic( com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteTopicMethodHelper(), getCallOptions()), + getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request, responseObserver); } @@ -822,11 +759,7 @@ public void deleteTopic( *
    */ public static final class PublisherBlockingStub - extends io.grpc.stub.AbstractStub { - private PublisherBlockingStub(io.grpc.Channel channel) { - super(channel); - } - + extends io.grpc.stub.AbstractBlockingStub { private PublisherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -847,8 +780,7 @@ protected PublisherBlockingStub build( *
    */ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { - return blockingUnaryCall( - getChannel(), getCreateTopicMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getCreateTopicMethod(), getCallOptions(), request); } /** @@ -860,8 +792,7 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request *
    */ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { - return blockingUnaryCall( - getChannel(), getUpdateTopicMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getUpdateTopicMethod(), getCallOptions(), request); } /** @@ -874,7 +805,7 @@ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRe */ public com.google.pubsub.v1.PublishResponse publish( com.google.pubsub.v1.PublishRequest request) { - return blockingUnaryCall(getChannel(), getPublishMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getPublishMethod(), getCallOptions(), request); } /** @@ -885,7 +816,7 @@ public com.google.pubsub.v1.PublishResponse publish( *
    */ public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request) { - return blockingUnaryCall(getChannel(), getGetTopicMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetTopicMethod(), getCallOptions(), request); } /** @@ -897,8 +828,7 @@ public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest */ public com.google.pubsub.v1.ListTopicsResponse listTopics( com.google.pubsub.v1.ListTopicsRequest request) { - return blockingUnaryCall( - getChannel(), getListTopicsMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getListTopicsMethod(), getCallOptions(), request); } /** @@ -911,7 +841,7 @@ public com.google.pubsub.v1.ListTopicsResponse listTopics( public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions( com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { return blockingUnaryCall( - getChannel(), getListTopicSubscriptionsMethodHelper(), getCallOptions(), request); + getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); } /** @@ -929,7 +859,7 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( com.google.pubsub.v1.ListTopicSnapshotsRequest request) { return blockingUnaryCall( - getChannel(), getListTopicSnapshotsMethodHelper(), getCallOptions(), request); + getChannel(), getListTopicSnapshotsMethod(), getCallOptions(), request); } /** @@ -944,8 +874,7 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( *
    */ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteTopicMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getDeleteTopicMethod(), getCallOptions(), request); } } @@ -958,11 +887,7 @@ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicReq *
    */ public static final class PublisherFutureStub - extends io.grpc.stub.AbstractStub { - private PublisherFutureStub(io.grpc.Channel channel) { - super(channel); - } - + extends io.grpc.stub.AbstractFutureStub { private PublisherFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -984,7 +909,7 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture createTopic(com.google.pubsub.v1.Topic request) { return futureUnaryCall( - getChannel().newCall(getCreateTopicMethodHelper(), getCallOptions()), request); + getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); } /** @@ -998,7 +923,7 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions public com.google.common.util.concurrent.ListenableFuture updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { return futureUnaryCall( - getChannel().newCall(getUpdateTopicMethodHelper(), getCallOptions()), request); + getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request); } /** @@ -1011,8 +936,7 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture publish(com.google.pubsub.v1.PublishRequest request) { - return futureUnaryCall( - getChannel().newCall(getPublishMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getPublishMethod(), getCallOptions()), request); } /** @@ -1024,8 +948,7 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture getTopic( com.google.pubsub.v1.GetTopicRequest request) { - return futureUnaryCall( - getChannel().newCall(getGetTopicMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getGetTopicMethod(), getCallOptions()), request); } /** @@ -1039,7 +962,7 @@ public com.google.common.util.concurrent.ListenableFuture listTopics(com.google.pubsub.v1.ListTopicsRequest request) { return futureUnaryCall( - getChannel().newCall(getListTopicsMethodHelper(), getCallOptions()), request); + getChannel().newCall(getListTopicsMethod(), getCallOptions()), request); } /** @@ -1053,7 +976,7 @@ public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { return futureUnaryCall( - getChannel().newCall(getListTopicSubscriptionsMethodHelper(), getCallOptions()), request); + getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request); } /** @@ -1072,7 +995,7 @@ public com.google.common.util.concurrent.ListenableFuture listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request) { return futureUnaryCall( - getChannel().newCall(getListTopicSnapshotsMethodHelper(), getCallOptions()), request); + getChannel().newCall(getListTopicSnapshotsMethod(), getCallOptions()), request); } /** @@ -1089,7 +1012,7 @@ public com.google.common.util.concurrent.ListenableFuture deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) { return futureUnaryCall( - getChannel().newCall(getDeleteTopicMethodHelper(), getCallOptions()), request); + getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request); } } @@ -1226,14 +1149,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new PublisherFileDescriptorSupplier()) - .addMethod(getCreateTopicMethodHelper()) - .addMethod(getUpdateTopicMethodHelper()) - .addMethod(getPublishMethodHelper()) - .addMethod(getGetTopicMethodHelper()) - .addMethod(getListTopicsMethodHelper()) - .addMethod(getListTopicSubscriptionsMethodHelper()) - .addMethod(getListTopicSnapshotsMethodHelper()) - .addMethod(getDeleteTopicMethodHelper()) + .addMethod(getCreateTopicMethod()) + .addMethod(getUpdateTopicMethod()) + .addMethod(getPublishMethod()) + .addMethod(getGetTopicMethod()) + .addMethod(getListTopicsMethod()) + .addMethod(getListTopicSubscriptionsMethod()) + .addMethod(getListTopicSnapshotsMethod()) + .addMethod(getDeleteTopicMethod()) .build(); } } diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 82a0a2410c29..6983f25d64fa 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -35,7 +35,7 @@ *
    */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", + value = "by gRPC proto compiler", comments = "Source: google/pubsub/v1/pubsub.proto") public final class SubscriberGrpc { @@ -44,26 +44,18 @@ private SubscriberGrpc() {} public static final String SERVICE_NAME = "google.pubsub.v1.Subscriber"; // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateSubscriptionMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription> - METHOD_CREATE_SUBSCRIPTION = getCreateSubscriptionMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription> getCreateSubscriptionMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSubscription", + requestType = com.google.pubsub.v1.Subscription.class, + responseType = com.google.pubsub.v1.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription> getCreateSubscriptionMethod() { - return getCreateSubscriptionMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription> - getCreateSubscriptionMethodHelper() { io.grpc.MethodDescriptor getCreateSubscriptionMethod; if ((getCreateSubscriptionMethod = SubscriberGrpc.getCreateSubscriptionMethod) == null) { @@ -75,9 +67,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.pubsub.v1.Subscriber", "CreateSubscription")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSubscription")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -94,26 +84,18 @@ private SubscriberGrpc() {} return getCreateSubscriptionMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetSubscriptionMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription> - METHOD_GET_SUBSCRIPTION = getGetSubscriptionMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription> getGetSubscriptionMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSubscription", + requestType = com.google.pubsub.v1.GetSubscriptionRequest.class, + responseType = com.google.pubsub.v1.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription> getGetSubscriptionMethod() { - return getGetSubscriptionMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription> - getGetSubscriptionMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription> getGetSubscriptionMethod; @@ -127,8 +109,7 @@ private SubscriberGrpc() {} com.google.pubsub.v1.Subscription> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "GetSubscription")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSubscription")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -145,26 +126,18 @@ private SubscriberGrpc() {} return getGetSubscriptionMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateSubscriptionMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription> - METHOD_UPDATE_SUBSCRIPTION = getUpdateSubscriptionMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription> getUpdateSubscriptionMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSubscription", + requestType = com.google.pubsub.v1.UpdateSubscriptionRequest.class, + responseType = com.google.pubsub.v1.Subscription.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription> getUpdateSubscriptionMethod() { - return getUpdateSubscriptionMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription> - getUpdateSubscriptionMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription> getUpdateSubscriptionMethod; @@ -178,9 +151,7 @@ private SubscriberGrpc() {} com.google.pubsub.v1.Subscription> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.pubsub.v1.Subscriber", "UpdateSubscription")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSubscription")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -197,30 +168,20 @@ private SubscriberGrpc() {} return getUpdateSubscriptionMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListSubscriptionsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListSubscriptionsRequest, - com.google.pubsub.v1.ListSubscriptionsResponse> - METHOD_LIST_SUBSCRIPTIONS = getListSubscriptionsMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.ListSubscriptionsRequest, com.google.pubsub.v1.ListSubscriptionsResponse> getListSubscriptionsMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSubscriptions", + requestType = com.google.pubsub.v1.ListSubscriptionsRequest.class, + responseType = com.google.pubsub.v1.ListSubscriptionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListSubscriptionsRequest, com.google.pubsub.v1.ListSubscriptionsResponse> getListSubscriptionsMethod() { - return getListSubscriptionsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListSubscriptionsRequest, - com.google.pubsub.v1.ListSubscriptionsResponse> - getListSubscriptionsMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.ListSubscriptionsRequest, com.google.pubsub.v1.ListSubscriptionsResponse> @@ -235,9 +196,7 @@ private SubscriberGrpc() {} com.google.pubsub.v1.ListSubscriptionsResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.pubsub.v1.Subscriber", "ListSubscriptions")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSubscriptions")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -254,26 +213,18 @@ private SubscriberGrpc() {} return getListSubscriptionsMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteSubscriptionMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty> - METHOD_DELETE_SUBSCRIPTION = getDeleteSubscriptionMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty> getDeleteSubscriptionMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSubscription", + requestType = com.google.pubsub.v1.DeleteSubscriptionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty> getDeleteSubscriptionMethod() { - return getDeleteSubscriptionMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty> - getDeleteSubscriptionMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty> getDeleteSubscriptionMethod; @@ -286,9 +237,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.pubsub.v1.Subscriber", "DeleteSubscription")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSubscription")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -305,26 +254,18 @@ private SubscriberGrpc() {} return getDeleteSubscriptionMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getModifyAckDeadlineMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty> - METHOD_MODIFY_ACK_DEADLINE = getModifyAckDeadlineMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty> getModifyAckDeadlineMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ModifyAckDeadline", + requestType = com.google.pubsub.v1.ModifyAckDeadlineRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty> getModifyAckDeadlineMethod() { - return getModifyAckDeadlineMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty> - getModifyAckDeadlineMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty> getModifyAckDeadlineMethod; @@ -337,9 +278,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - "google.pubsub.v1.Subscriber", "ModifyAckDeadline")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyAckDeadline")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -356,26 +295,18 @@ private SubscriberGrpc() {} return getModifyAckDeadlineMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getAcknowledgeMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty> - METHOD_ACKNOWLEDGE = getAcknowledgeMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty> getAcknowledgeMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Acknowledge", + requestType = com.google.pubsub.v1.AcknowledgeRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty> getAcknowledgeMethod() { - return getAcknowledgeMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty> - getAcknowledgeMethodHelper() { io.grpc.MethodDescriptor getAcknowledgeMethod; if ((getAcknowledgeMethod = SubscriberGrpc.getAcknowledgeMethod) == null) { @@ -387,8 +318,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "Acknowledge")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Acknowledge")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -404,26 +334,18 @@ private SubscriberGrpc() {} return getAcknowledgeMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getPullMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse> - METHOD_PULL = getPullMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse> getPullMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Pull", + requestType = com.google.pubsub.v1.PullRequest.class, + responseType = com.google.pubsub.v1.PullResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse> getPullMethod() { - return getPullMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse> - getPullMethodHelper() { io.grpc.MethodDescriptor getPullMethod; if ((getPullMethod = SubscriberGrpc.getPullMethod) == null) { @@ -435,8 +357,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "Pull")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Pull")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -452,26 +373,18 @@ private SubscriberGrpc() {} return getPullMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getStreamingPullMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse> - METHOD_STREAMING_PULL = getStreamingPullMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse> getStreamingPullMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingPull", + requestType = com.google.pubsub.v1.StreamingPullRequest.class, + responseType = com.google.pubsub.v1.StreamingPullResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse> getStreamingPullMethod() { - return getStreamingPullMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse> - getStreamingPullMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse> getStreamingPullMethod; @@ -485,8 +398,7 @@ private SubscriberGrpc() {} com.google.pubsub.v1.StreamingPullResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "StreamingPull")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingPull")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -502,26 +414,18 @@ private SubscriberGrpc() {} return getStreamingPullMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getModifyPushConfigMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty> - METHOD_MODIFY_PUSH_CONFIG = getModifyPushConfigMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty> getModifyPushConfigMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ModifyPushConfig", + requestType = com.google.pubsub.v1.ModifyPushConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty> getModifyPushConfigMethod() { - return getModifyPushConfigMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty> - getModifyPushConfigMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty> getModifyPushConfigMethod; @@ -534,8 +438,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "ModifyPushConfig")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ModifyPushConfig")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -552,26 +455,18 @@ private SubscriberGrpc() {} return getModifyPushConfigMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getGetSnapshotMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot> - METHOD_GET_SNAPSHOT = getGetSnapshotMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot> getGetSnapshotMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSnapshot", + requestType = com.google.pubsub.v1.GetSnapshotRequest.class, + responseType = com.google.pubsub.v1.Snapshot.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot> getGetSnapshotMethod() { - return getGetSnapshotMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot> - getGetSnapshotMethodHelper() { io.grpc.MethodDescriptor getGetSnapshotMethod; if ((getGetSnapshotMethod = SubscriberGrpc.getGetSnapshotMethod) == null) { @@ -583,8 +478,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "GetSnapshot")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSnapshot")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -600,26 +494,18 @@ private SubscriberGrpc() {} return getGetSnapshotMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getListSnapshotsMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse> - METHOD_LIST_SNAPSHOTS = getListSnapshotsMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse> getListSnapshotsMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSnapshots", + requestType = com.google.pubsub.v1.ListSnapshotsRequest.class, + responseType = com.google.pubsub.v1.ListSnapshotsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse> getListSnapshotsMethod() { - return getListSnapshotsMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse> - getListSnapshotsMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse> getListSnapshotsMethod; @@ -633,8 +519,7 @@ private SubscriberGrpc() {} com.google.pubsub.v1.ListSnapshotsResponse> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "ListSnapshots")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSnapshots")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -650,26 +535,18 @@ private SubscriberGrpc() {} return getListSnapshotsMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getCreateSnapshotMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot> - METHOD_CREATE_SNAPSHOT = getCreateSnapshotMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot> getCreateSnapshotMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSnapshot", + requestType = com.google.pubsub.v1.CreateSnapshotRequest.class, + responseType = com.google.pubsub.v1.Snapshot.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot> getCreateSnapshotMethod() { - return getCreateSnapshotMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot> - getCreateSnapshotMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot> getCreateSnapshotMethod; @@ -682,8 +559,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "CreateSnapshot")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSnapshot")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -699,26 +575,18 @@ private SubscriberGrpc() {} return getCreateSnapshotMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getUpdateSnapshotMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot> - METHOD_UPDATE_SNAPSHOT = getUpdateSnapshotMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot> getUpdateSnapshotMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSnapshot", + requestType = com.google.pubsub.v1.UpdateSnapshotRequest.class, + responseType = com.google.pubsub.v1.Snapshot.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot> getUpdateSnapshotMethod() { - return getUpdateSnapshotMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot> - getUpdateSnapshotMethodHelper() { io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot> getUpdateSnapshotMethod; @@ -731,8 +599,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "UpdateSnapshot")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSnapshot")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -748,26 +615,18 @@ private SubscriberGrpc() {} return getUpdateSnapshotMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getDeleteSnapshotMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty> - METHOD_DELETE_SNAPSHOT = getDeleteSnapshotMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty> getDeleteSnapshotMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSnapshot", + requestType = com.google.pubsub.v1.DeleteSnapshotRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty> getDeleteSnapshotMethod() { - return getDeleteSnapshotMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty> - getDeleteSnapshotMethodHelper() { io.grpc.MethodDescriptor getDeleteSnapshotMethod; if ((getDeleteSnapshotMethod = SubscriberGrpc.getDeleteSnapshotMethod) == null) { @@ -779,8 +638,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "DeleteSnapshot")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSnapshot")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -796,26 +654,18 @@ private SubscriberGrpc() {} return getDeleteSnapshotMethod; } - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getSeekMethod()} instead. - public static final io.grpc.MethodDescriptor< - com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse> - METHOD_SEEK = getSeekMethodHelper(); - private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse> getSeekMethod; - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Seek", + requestType = com.google.pubsub.v1.SeekRequest.class, + responseType = com.google.pubsub.v1.SeekResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse> getSeekMethod() { - return getSeekMethodHelper(); - } - - private static io.grpc.MethodDescriptor< - com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse> - getSeekMethodHelper() { io.grpc.MethodDescriptor getSeekMethod; if ((getSeekMethod = SubscriberGrpc.getSeekMethod) == null) { @@ -827,8 +677,7 @@ private SubscriberGrpc() {} . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName("google.pubsub.v1.Subscriber", "Seek")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Seek")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -846,19 +695,42 @@ private SubscriberGrpc() {} /** Creates a new async stub that supports all call types for the service */ public static SubscriberStub newStub(io.grpc.Channel channel) { - return new SubscriberStub(channel); + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SubscriberStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SubscriberStub(channel, callOptions); + } + }; + return SubscriberStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static SubscriberBlockingStub newBlockingStub(io.grpc.Channel channel) { - return new SubscriberBlockingStub(channel); + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SubscriberBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SubscriberBlockingStub(channel, callOptions); + } + }; + return SubscriberBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static SubscriberFutureStub newFutureStub(io.grpc.Channel channel) { - return new SubscriberFutureStub(channel); + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SubscriberFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SubscriberFutureStub(channel, callOptions); + } + }; + return SubscriberFutureStub.newStub(factory, channel); } /** @@ -893,7 +765,7 @@ public abstract static class SubscriberImplBase implements io.grpc.BindableServi public void createSubscription( com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateSubscriptionMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCreateSubscriptionMethod(), responseObserver); } /** @@ -906,7 +778,7 @@ public void createSubscription( public void getSubscription( com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSubscriptionMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetSubscriptionMethod(), responseObserver); } /** @@ -920,7 +792,7 @@ public void getSubscription( public void updateSubscription( com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateSubscriptionMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getUpdateSubscriptionMethod(), responseObserver); } /** @@ -934,7 +806,7 @@ public void listSubscriptions( com.google.pubsub.v1.ListSubscriptionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListSubscriptionsMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListSubscriptionsMethod(), responseObserver); } /** @@ -951,7 +823,7 @@ public void listSubscriptions( public void deleteSubscription( com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteSubscriptionMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getDeleteSubscriptionMethod(), responseObserver); } /** @@ -968,7 +840,7 @@ public void deleteSubscription( public void modifyAckDeadline( com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getModifyAckDeadlineMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getModifyAckDeadlineMethod(), responseObserver); } /** @@ -986,7 +858,7 @@ public void modifyAckDeadline( public void acknowledge( com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAcknowledgeMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getAcknowledgeMethod(), responseObserver); } /** @@ -1001,7 +873,7 @@ public void acknowledge( public void pull( com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPullMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getPullMethod(), responseObserver); } /** @@ -1019,7 +891,7 @@ public void pull( */ public io.grpc.stub.StreamObserver streamingPull( io.grpc.stub.StreamObserver responseObserver) { - return asyncUnimplementedStreamingCall(getStreamingPullMethodHelper(), responseObserver); + return asyncUnimplementedStreamingCall(getStreamingPullMethod(), responseObserver); } /** @@ -1036,7 +908,7 @@ public io.grpc.stub.StreamObserver st public void modifyPushConfig( com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getModifyPushConfigMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getModifyPushConfigMethod(), responseObserver); } /** @@ -1053,7 +925,7 @@ public void modifyPushConfig( public void getSnapshot( com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSnapshotMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getGetSnapshotMethod(), responseObserver); } /** @@ -1071,7 +943,7 @@ public void getSnapshot( public void listSnapshots( com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListSnapshotsMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getListSnapshotsMethod(), responseObserver); } /** @@ -1101,7 +973,7 @@ public void listSnapshots( public void createSnapshot( com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateSnapshotMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getCreateSnapshotMethod(), responseObserver); } /** @@ -1119,7 +991,7 @@ public void createSnapshot( public void updateSnapshot( com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateSnapshotMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getUpdateSnapshotMethod(), responseObserver); } /** @@ -1141,7 +1013,7 @@ public void updateSnapshot( public void deleteSnapshot( com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteSnapshotMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getDeleteSnapshotMethod(), responseObserver); } /** @@ -1161,105 +1033,105 @@ public void deleteSnapshot( public void seek( com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSeekMethodHelper(), responseObserver); + asyncUnimplementedUnaryCall(getSeekMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateSubscriptionMethodHelper(), + getCreateSubscriptionMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>( this, METHODID_CREATE_SUBSCRIPTION))) .addMethod( - getGetSubscriptionMethodHelper(), + getGetSubscriptionMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>(this, METHODID_GET_SUBSCRIPTION))) .addMethod( - getUpdateSubscriptionMethodHelper(), + getUpdateSubscriptionMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>(this, METHODID_UPDATE_SUBSCRIPTION))) .addMethod( - getListSubscriptionsMethodHelper(), + getListSubscriptionsMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListSubscriptionsRequest, com.google.pubsub.v1.ListSubscriptionsResponse>( this, METHODID_LIST_SUBSCRIPTIONS))) .addMethod( - getDeleteSubscriptionMethodHelper(), + getDeleteSubscriptionMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_SUBSCRIPTION))) .addMethod( - getModifyAckDeadlineMethodHelper(), + getModifyAckDeadlineMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>( this, METHODID_MODIFY_ACK_DEADLINE))) .addMethod( - getAcknowledgeMethodHelper(), + getAcknowledgeMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>( this, METHODID_ACKNOWLEDGE))) .addMethod( - getPullMethodHelper(), + getPullMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>( this, METHODID_PULL))) .addMethod( - getStreamingPullMethodHelper(), + getStreamingPullMethod(), asyncBidiStreamingCall( new MethodHandlers< com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>(this, METHODID_STREAMING_PULL))) .addMethod( - getModifyPushConfigMethodHelper(), + getModifyPushConfigMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>( this, METHODID_MODIFY_PUSH_CONFIG))) .addMethod( - getGetSnapshotMethodHelper(), + getGetSnapshotMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>( this, METHODID_GET_SNAPSHOT))) .addMethod( - getListSnapshotsMethodHelper(), + getListSnapshotsMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>(this, METHODID_LIST_SNAPSHOTS))) .addMethod( - getCreateSnapshotMethodHelper(), + getCreateSnapshotMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>( this, METHODID_CREATE_SNAPSHOT))) .addMethod( - getUpdateSnapshotMethodHelper(), + getUpdateSnapshotMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>( this, METHODID_UPDATE_SNAPSHOT))) .addMethod( - getDeleteSnapshotMethodHelper(), + getDeleteSnapshotMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_SNAPSHOT))) .addMethod( - getSeekMethodHelper(), + getSeekMethod(), asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>( @@ -1277,11 +1149,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * establishing a bi-directional stream using the `StreamingPull` method. *
    */ - public static final class SubscriberStub extends io.grpc.stub.AbstractStub { - private SubscriberStub(io.grpc.Channel channel) { - super(channel); - } - + public static final class SubscriberStub extends io.grpc.stub.AbstractAsyncStub { private SubscriberStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1313,7 +1181,7 @@ public void createSubscription( com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateSubscriptionMethodHelper(), getCallOptions()), + getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request, responseObserver); } @@ -1329,7 +1197,7 @@ public void getSubscription( com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetSubscriptionMethodHelper(), getCallOptions()), + getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request, responseObserver); } @@ -1346,7 +1214,7 @@ public void updateSubscription( com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethodHelper(), getCallOptions()), + getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request, responseObserver); } @@ -1363,7 +1231,7 @@ public void listSubscriptions( io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListSubscriptionsMethodHelper(), getCallOptions()), + getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request, responseObserver); } @@ -1383,7 +1251,7 @@ public void deleteSubscription( com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethodHelper(), getCallOptions()), + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request, responseObserver); } @@ -1403,7 +1271,7 @@ public void modifyAckDeadline( com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getModifyAckDeadlineMethodHelper(), getCallOptions()), + getChannel().newCall(getModifyAckDeadlineMethod(), getCallOptions()), request, responseObserver); } @@ -1424,7 +1292,7 @@ public void acknowledge( com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getAcknowledgeMethodHelper(), getCallOptions()), + getChannel().newCall(getAcknowledgeMethod(), getCallOptions()), request, responseObserver); } @@ -1442,7 +1310,7 @@ public void pull( com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getPullMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getPullMethod(), getCallOptions()), request, responseObserver); } /** @@ -1461,7 +1329,7 @@ public void pull( public io.grpc.stub.StreamObserver streamingPull( io.grpc.stub.StreamObserver responseObserver) { return asyncBidiStreamingCall( - getChannel().newCall(getStreamingPullMethodHelper(), getCallOptions()), responseObserver); + getChannel().newCall(getStreamingPullMethod(), getCallOptions()), responseObserver); } /** @@ -1479,7 +1347,7 @@ public void modifyPushConfig( com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getModifyPushConfigMethodHelper(), getCallOptions()), + getChannel().newCall(getModifyPushConfigMethod(), getCallOptions()), request, responseObserver); } @@ -1499,7 +1367,7 @@ public void getSnapshot( com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getGetSnapshotMethodHelper(), getCallOptions()), + getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request, responseObserver); } @@ -1520,7 +1388,7 @@ public void listSnapshots( com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getListSnapshotsMethodHelper(), getCallOptions()), + getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request, responseObserver); } @@ -1553,7 +1421,7 @@ public void createSnapshot( com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getCreateSnapshotMethodHelper(), getCallOptions()), + getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request, responseObserver); } @@ -1574,7 +1442,7 @@ public void updateSnapshot( com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getUpdateSnapshotMethodHelper(), getCallOptions()), + getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request, responseObserver); } @@ -1599,7 +1467,7 @@ public void deleteSnapshot( com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getDeleteSnapshotMethodHelper(), getCallOptions()), + getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request, responseObserver); } @@ -1622,7 +1490,7 @@ public void seek( com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( - getChannel().newCall(getSeekMethodHelper(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSeekMethod(), getCallOptions()), request, responseObserver); } } @@ -1636,11 +1504,7 @@ public void seek( *
    */ public static final class SubscriberBlockingStub - extends io.grpc.stub.AbstractStub { - private SubscriberBlockingStub(io.grpc.Channel channel) { - super(channel); - } - + extends io.grpc.stub.AbstractBlockingStub { private SubscriberBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1672,7 +1536,7 @@ protected SubscriberBlockingStub build( public com.google.pubsub.v1.Subscription createSubscription( com.google.pubsub.v1.Subscription request) { return blockingUnaryCall( - getChannel(), getCreateSubscriptionMethodHelper(), getCallOptions(), request); + getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); } /** @@ -1684,8 +1548,7 @@ public com.google.pubsub.v1.Subscription createSubscription( */ public com.google.pubsub.v1.Subscription getSubscription( com.google.pubsub.v1.GetSubscriptionRequest request) { - return blockingUnaryCall( - getChannel(), getGetSubscriptionMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); } /** @@ -1699,7 +1562,7 @@ public com.google.pubsub.v1.Subscription getSubscription( public com.google.pubsub.v1.Subscription updateSubscription( com.google.pubsub.v1.UpdateSubscriptionRequest request) { return blockingUnaryCall( - getChannel(), getUpdateSubscriptionMethodHelper(), getCallOptions(), request); + getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); } /** @@ -1712,7 +1575,7 @@ public com.google.pubsub.v1.Subscription updateSubscription( public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( com.google.pubsub.v1.ListSubscriptionsRequest request) { return blockingUnaryCall( - getChannel(), getListSubscriptionsMethodHelper(), getCallOptions(), request); + getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); } /** @@ -1729,7 +1592,7 @@ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( public com.google.protobuf.Empty deleteSubscription( com.google.pubsub.v1.DeleteSubscriptionRequest request) { return blockingUnaryCall( - getChannel(), getDeleteSubscriptionMethodHelper(), getCallOptions(), request); + getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); } /** @@ -1746,7 +1609,7 @@ public com.google.protobuf.Empty deleteSubscription( public com.google.protobuf.Empty modifyAckDeadline( com.google.pubsub.v1.ModifyAckDeadlineRequest request) { return blockingUnaryCall( - getChannel(), getModifyAckDeadlineMethodHelper(), getCallOptions(), request); + getChannel(), getModifyAckDeadlineMethod(), getCallOptions(), request); } /** @@ -1762,8 +1625,7 @@ public com.google.protobuf.Empty modifyAckDeadline( *
    */ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { - return blockingUnaryCall( - getChannel(), getAcknowledgeMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getAcknowledgeMethod(), getCallOptions(), request); } /** @@ -1776,7 +1638,7 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq *
    */ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) { - return blockingUnaryCall(getChannel(), getPullMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getPullMethod(), getCallOptions(), request); } /** @@ -1793,7 +1655,7 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r public com.google.protobuf.Empty modifyPushConfig( com.google.pubsub.v1.ModifyPushConfigRequest request) { return blockingUnaryCall( - getChannel(), getModifyPushConfigMethodHelper(), getCallOptions(), request); + getChannel(), getModifyPushConfigMethod(), getCallOptions(), request); } /** @@ -1809,8 +1671,7 @@ public com.google.protobuf.Empty modifyPushConfig( */ public com.google.pubsub.v1.Snapshot getSnapshot( com.google.pubsub.v1.GetSnapshotRequest request) { - return blockingUnaryCall( - getChannel(), getGetSnapshotMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } /** @@ -1827,8 +1688,7 @@ public com.google.pubsub.v1.Snapshot getSnapshot( */ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( com.google.pubsub.v1.ListSnapshotsRequest request) { - return blockingUnaryCall( - getChannel(), getListSnapshotsMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } /** @@ -1857,8 +1717,7 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( */ public com.google.pubsub.v1.Snapshot createSnapshot( com.google.pubsub.v1.CreateSnapshotRequest request) { - return blockingUnaryCall( - getChannel(), getCreateSnapshotMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); } /** @@ -1875,8 +1734,7 @@ public com.google.pubsub.v1.Snapshot createSnapshot( */ public com.google.pubsub.v1.Snapshot updateSnapshot( com.google.pubsub.v1.UpdateSnapshotRequest request) { - return blockingUnaryCall( - getChannel(), getUpdateSnapshotMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); } /** @@ -1897,8 +1755,7 @@ public com.google.pubsub.v1.Snapshot updateSnapshot( */ public com.google.protobuf.Empty deleteSnapshot( com.google.pubsub.v1.DeleteSnapshotRequest request) { - return blockingUnaryCall( - getChannel(), getDeleteSnapshotMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } /** @@ -1916,7 +1773,7 @@ public com.google.protobuf.Empty deleteSnapshot( *
    */ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { - return blockingUnaryCall(getChannel(), getSeekMethodHelper(), getCallOptions(), request); + return blockingUnaryCall(getChannel(), getSeekMethod(), getCallOptions(), request); } } @@ -1930,11 +1787,7 @@ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest r *
    */ public static final class SubscriberFutureStub - extends io.grpc.stub.AbstractStub { - private SubscriberFutureStub(io.grpc.Channel channel) { - super(channel); - } - + extends io.grpc.stub.AbstractFutureStub { private SubscriberFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1965,7 +1818,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture createSubscription(com.google.pubsub.v1.Subscription request) { return futureUnaryCall( - getChannel().newCall(getCreateSubscriptionMethodHelper(), getCallOptions()), request); + getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request); } /** @@ -1978,7 +1831,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request) { return futureUnaryCall( - getChannel().newCall(getGetSubscriptionMethodHelper(), getCallOptions()), request); + getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request); } /** @@ -1992,7 +1845,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request) { return futureUnaryCall( - getChannel().newCall(getUpdateSubscriptionMethodHelper(), getCallOptions()), request); + getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request); } /** @@ -2006,7 +1859,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.pubsub.v1.ListSubscriptionsResponse> listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { return futureUnaryCall( - getChannel().newCall(getListSubscriptionsMethodHelper(), getCallOptions()), request); + getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request); } /** @@ -2023,7 +1876,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request) { return futureUnaryCall( - getChannel().newCall(getDeleteSubscriptionMethodHelper(), getCallOptions()), request); + getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request); } /** @@ -2040,7 +1893,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request) { return futureUnaryCall( - getChannel().newCall(getModifyAckDeadlineMethodHelper(), getCallOptions()), request); + getChannel().newCall(getModifyAckDeadlineMethod(), getCallOptions()), request); } /** @@ -2058,7 +1911,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { return futureUnaryCall( - getChannel().newCall(getAcknowledgeMethodHelper(), getCallOptions()), request); + getChannel().newCall(getAcknowledgeMethod(), getCallOptions()), request); } /** @@ -2072,8 +1925,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture pull(com.google.pubsub.v1.PullRequest request) { - return futureUnaryCall( - getChannel().newCall(getPullMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getPullMethod(), getCallOptions()), request); } /** @@ -2090,7 +1942,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request) { return futureUnaryCall( - getChannel().newCall(getModifyPushConfigMethodHelper(), getCallOptions()), request); + getChannel().newCall(getModifyPushConfigMethod(), getCallOptions()), request); } /** @@ -2107,7 +1959,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request) { return futureUnaryCall( - getChannel().newCall(getGetSnapshotMethodHelper(), getCallOptions()), request); + getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request); } /** @@ -2126,7 +1978,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption com.google.pubsub.v1.ListSnapshotsResponse> listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) { return futureUnaryCall( - getChannel().newCall(getListSnapshotsMethodHelper(), getCallOptions()), request); + getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request); } /** @@ -2156,7 +2008,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request) { return futureUnaryCall( - getChannel().newCall(getCreateSnapshotMethodHelper(), getCallOptions()), request); + getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request); } /** @@ -2174,7 +2026,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request) { return futureUnaryCall( - getChannel().newCall(getUpdateSnapshotMethodHelper(), getCallOptions()), request); + getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request); } /** @@ -2196,7 +2048,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request) { return futureUnaryCall( - getChannel().newCall(getDeleteSnapshotMethodHelper(), getCallOptions()), request); + getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request); } /** @@ -2215,8 +2067,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture seek(com.google.pubsub.v1.SeekRequest request) { - return futureUnaryCall( - getChannel().newCall(getSeekMethodHelper(), getCallOptions()), request); + return futureUnaryCall(getChannel().newCall(getSeekMethod(), getCallOptions()), request); } } @@ -2400,22 +2251,22 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SubscriberFileDescriptorSupplier()) - .addMethod(getCreateSubscriptionMethodHelper()) - .addMethod(getGetSubscriptionMethodHelper()) - .addMethod(getUpdateSubscriptionMethodHelper()) - .addMethod(getListSubscriptionsMethodHelper()) - .addMethod(getDeleteSubscriptionMethodHelper()) - .addMethod(getModifyAckDeadlineMethodHelper()) - .addMethod(getAcknowledgeMethodHelper()) - .addMethod(getPullMethodHelper()) - .addMethod(getStreamingPullMethodHelper()) - .addMethod(getModifyPushConfigMethodHelper()) - .addMethod(getGetSnapshotMethodHelper()) - .addMethod(getListSnapshotsMethodHelper()) - .addMethod(getCreateSnapshotMethodHelper()) - .addMethod(getUpdateSnapshotMethodHelper()) - .addMethod(getDeleteSnapshotMethodHelper()) - .addMethod(getSeekMethodHelper()) + .addMethod(getCreateSubscriptionMethod()) + .addMethod(getGetSubscriptionMethod()) + .addMethod(getUpdateSubscriptionMethod()) + .addMethod(getListSubscriptionsMethod()) + .addMethod(getDeleteSubscriptionMethod()) + .addMethod(getModifyAckDeadlineMethod()) + .addMethod(getAcknowledgeMethod()) + .addMethod(getPullMethod()) + .addMethod(getStreamingPullMethod()) + .addMethod(getModifyPushConfigMethod()) + .addMethod(getGetSnapshotMethod()) + .addMethod(getListSnapshotsMethod()) + .addMethod(getCreateSnapshotMethod()) + .addMethod(getUpdateSnapshotMethod()) + .addMethod(getDeleteSnapshotMethod()) + .addMethod(getSeekMethod()) .build(); } } From 184dadade0c490a25d16363bb3f4d0a2d1b4de09 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Apr 2020 20:24:21 +0200 Subject: [PATCH 0342/2363] deps: update dependency io.grpc:grpc-bom to v1.29.0 (#162) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 64a45f2e5aa2..bd74f30e3f2e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -67,7 +67,7 @@ 1.9.0 1.17.0 1.56.0 - 1.28.1 + 1.29.0 3.11.4 4.13 4.2 From 2441a5c6452b29ac3dc7b41949c1a047aa4713bf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 27 Apr 2020 18:37:18 +0200 Subject: [PATCH 0343/2363] deps: update dependency org.threeten:threetenbp to v1.4.4 (#167) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [org.threeten:threetenbp](https://www.threeten.org/threetenbp) ([source](https://togithub.com/ThreeTen/threetenbp)) | patch | `1.4.3` -> `1.4.4` | --- ### Release Notes
    ThreeTen/threetenbp ### [`v1.4.4`](https://togithub.com/ThreeTen/threetenbp/releases/v1.4.4) [Compare Source](https://togithub.com/ThreeTen/threetenbp/compare/v1.4.3...v1.4.4) See the [change notes](https://www.threeten.org/threetenbp/changes-report.html) for more information.
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bd74f30e3f2e..5e30e779696b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -72,7 +72,7 @@ 4.13 4.2 29.0-android - 1.4.3 + 1.4.4 1.3.2 2.3.4 1.34.2 From a58aea7bf34c01885cf0622fe36935627addb6ea Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Apr 2020 20:18:10 +0200 Subject: [PATCH 0344/2363] deps: update dependency com.google.http-client:google-http-client-bom to v1.35.0 (#169) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.http-client:google-http-client-bom](https://togithub.com/googleapis/google-http-java-client) | minor | `1.34.2` -> `1.35.0` | --- ### Release Notes
    googleapis/google-http-java-client ### [`v1.35.0`](https://togithub.com/googleapis/google-http-java-client/blob/master/CHANGELOG.md#​1350-httpswwwgithubcomgoogleapisgoogle-http-java-clientcomparev1342v1350-2020-04-27) [Compare Source](https://togithub.com/googleapis/google-http-java-client/compare/v1.34.2...v1.35.0) ##### Features - add logic for verifying ES256 JsonWebSignatures ([#​1033](https://www.github.com/googleapis/google-http-java-client/issues/1033)) ([bb4227f](https://www.github.com/googleapis/google-http-java-client/commit/bb4227f9daec44fc2976fa9947e2ff5ee07ed21a)) ##### Bug Fixes - add linkage monitor plugin ([#​1000](https://www.github.com/googleapis/google-http-java-client/issues/1000)) ([027c227](https://www.github.com/googleapis/google-http-java-client/commit/027c227e558164f77be204152fb47023850b543f)) - Correctly handling chunked response streams with gzip ([#​990](https://www.github.com/googleapis/google-http-java-client/issues/990)) ([1ba2197](https://www.github.com/googleapis/google-http-java-client/commit/1ba219743e65c89bc3fdb196acc5d2042e01f542)), closes [#​367](https://www.github.com/googleapis/google-http-java-client/issues/367) - FileDataStoreFactory will throw IOException for any permissions errors ([#​1012](https://www.github.com/googleapis/google-http-java-client/issues/1012)) ([fd33073](https://www.github.com/googleapis/google-http-java-client/commit/fd33073da3674997897d7a9057d1d0e9d42d7cd4)) - include request method and URL into HttpResponseException message ([#​1002](https://www.github.com/googleapis/google-http-java-client/issues/1002)) ([15111a1](https://www.github.com/googleapis/google-http-java-client/commit/15111a1001d6f72cb92cd2d76aaed6f1229bc14a)) - incorrect check for Windows OS in FileDataStoreFactory ([#​927](https://www.github.com/googleapis/google-http-java-client/issues/927)) ([8b4eabe](https://www.github.com/googleapis/google-http-java-client/commit/8b4eabe985794fc64ad6a4a53f8f96201cf73fb8)) - reuse reference instead of calling getter twice ([#​983](https://www.github.com/googleapis/google-http-java-client/issues/983)) ([1f66222](https://www.github.com/googleapis/google-http-java-client/commit/1f662224d7bee6e27e8d66975fda39feae0c9359)), closes [#​982](https://www.github.com/googleapis/google-http-java-client/issues/982) - **android:** set minimum API level to 19 a.k.a. 4.4 Kit Kat ([#​1016](https://www.github.com/googleapis/google-http-java-client/issues/1016)) ([b9a8023](https://www.github.com/googleapis/google-http-java-client/commit/b9a80232c9c8b16a3c3277458835f72e346f6b2c)), closes [#​1015](https://www.github.com/googleapis/google-http-java-client/issues/1015) ##### Documentation - android 4.4 or later is required ([#​1008](https://www.github.com/googleapis/google-http-java-client/issues/1008)) ([bcc41dd](https://www.github.com/googleapis/google-http-java-client/commit/bcc41dd615af41ae6fb58287931cbf9c2144a075)) - libraries-bom 4.0.1 ([#​976](https://www.github.com/googleapis/google-http-java-client/issues/976)) ([fc21dc4](https://www.github.com/googleapis/google-http-java-client/commit/fc21dc412566ef60d23f1f82db5caf3cfd5d447b)) - libraries-bom 4.1.1 ([#​984](https://www.github.com/googleapis/google-http-java-client/issues/984)) ([635c813](https://www.github.com/googleapis/google-http-java-client/commit/635c81352ae383b3abfe6d7c141d987a6944b3e9)) - libraries-bom 5.2.0 ([#​1032](https://www.github.com/googleapis/google-http-java-client/issues/1032)) ([ca34202](https://www.github.com/googleapis/google-http-java-client/commit/ca34202bfa077adb70313b6c4562c7a5d904e064)) - require Android 4.4 ([#​1007](https://www.github.com/googleapis/google-http-java-client/issues/1007)) ([f9d2bb0](https://www.github.com/googleapis/google-http-java-client/commit/f9d2bb030398fe09e3c47b84ea468603355e08e9)) ##### Dependencies - httpclient 4.5.12 ([#​991](https://www.github.com/googleapis/google-http-java-client/issues/991)) ([79bc1c7](https://www.github.com/googleapis/google-http-java-client/commit/79bc1c76ebd48d396a080ef715b9f07cd056b7ef)) - update to Guava 29 ([#​1024](https://www.github.com/googleapis/google-http-java-client/issues/1024)) ([ca9520f](https://www.github.com/googleapis/google-http-java-client/commit/ca9520f2da4babc5bbd28c828da1deb7dbdc87e5)) ##### [1.34.2](https://www.github.com/googleapis/google-http-java-client/compare/v1.34.1...v1.34.2) (2020-02-12) ##### Bug Fixes - use %20 to escpae spaces in URI templates ([#​973](https://www.github.com/googleapis/google-http-java-client/issues/973)) ([60ba4ea](https://www.github.com/googleapis/google-http-java-client/commit/60ba4ea771d8ad0a98eddca10a77c5241187d28c)) ##### Documentation - bom 4.0.0 ([#​970](https://www.github.com/googleapis/google-http-java-client/issues/970)) ([198453b](https://www.github.com/googleapis/google-http-java-client/commit/198453b8b9e0765439ac430deaf10ef9df084665)) ##### [1.34.1](https://www.github.com/googleapis/google-http-java-client/compare/v1.34.0...v1.34.1) (2020-01-26) ##### Bug Fixes - include '+' in SAFEPATHCHARS_URLENCODER ([#​955](https://www.github.com/googleapis/google-http-java-client/issues/955)) ([9384459](https://www.github.com/googleapis/google-http-java-client/commit/9384459015b37e1671aebadc4b8c25dc9e1e033f)) - use random UUID for multipart boundary delimiter ([#​916](https://www.github.com/googleapis/google-http-java-client/issues/916)) ([91c20a3](https://www.github.com/googleapis/google-http-java-client/commit/91c20a3dfb654e85104b1c09a0b2befbae356c19)) ##### Dependencies - remove unnecessary MySQL dependency ([#​943](https://www.github.com/googleapis/google-http-java-client/issues/943)) ([14736ca](https://www.github.com/googleapis/google-http-java-client/commit/14736cab3dc060ea5b60522ea587cfaf66f29699)) - update dependency mysql:mysql-connector-java to v8.0.19 ([#​940](https://www.github.com/googleapis/google-http-java-client/issues/940)) ([e76368e](https://www.github.com/googleapis/google-http-java-client/commit/e76368ef9479a3bf06f7c7cb878d4e8e241bb58c)) - update dependency org.apache.httpcomponents:httpcore to v4.4.13 ([#​941](https://www.github.com/googleapis/google-http-java-client/issues/941)) ([fd904d2](https://www.github.com/googleapis/google-http-java-client/commit/fd904d26d67b06fac807d38f8fe4141891ef0330)) ##### Documentation - fix various paragraph issues in javadoc ([#​867](https://www.github.com/googleapis/google-http-java-client/issues/867)) ([029bbbf](https://www.github.com/googleapis/google-http-java-client/commit/029bbbfb5ddfefe64e64ecca4b1413ae1c93ddd8)) - libraries-bom 3.3.0 ([#​921](https://www.github.com/googleapis/google-http-java-client/issues/921)) ([7e0b952](https://www.github.com/googleapis/google-http-java-client/commit/7e0b952a0d9c84ac43dff43914567c98f3e81f66))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5e30e779696b..26b471fca2e8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -75,7 +75,7 @@ 1.4.4 1.3.2 2.3.4 - 1.34.2 + 1.35.0 1.18 1.7 0.26.0 From faeb580ac011192afe7eb70e7314dea864e21378 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Wed, 29 Apr 2020 04:57:33 -0700 Subject: [PATCH 0345/2363] fix: changing integration test push endpoint to be valid https (#170) * Modifying Publish example in README to match other examples given, and fix issue #6784 * fix: Modifying Publish example in README to match other examples, and fix Issue #11 * feat: Adding support for DLQs Adding delivery attempt count to PubsubMessages as a message attribute, and creating helper function to allow users to get the count without knowing implementation details. * Fix formatting * fix: making changes requested in pull request * fix: creating fix to not populate delivery attempt attribute when dead lettering is not enabled * Adding unit test for case in which a received message has no delivery attempt * Making MessageWaiter class more generic to also be used for outstanding ack operations * Waiting for acks to complete before shutting down a streaming subscriber connection * Fixing formatting error * fix: making sure all publishes complete before shutting down the publisher * adding default max outstanding request bytes * fix: make push endpoint valid https --- .../src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java index 356f1c20787e..bb2dab7b2d9d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java @@ -126,7 +126,7 @@ public void testVPCPushSubscriber() { subscriptionAdminClient.createSubscription( subscriptionName, topicName, - PushConfig.newBuilder().setPushEndpoint("random_point").build(), + PushConfig.newBuilder().setPushEndpoint("https://random_point").build(), 10); subscriptionAdminClient.deleteSubscription(subscriptionName); Assert.fail("No exception raised"); From 9a4a3218c46ef805151bb94d268e4ba8fdf2f0cf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 4 May 2020 16:59:36 +0200 Subject: [PATCH 0346/2363] deps: update autovalue.version to v1.7.1 (#173) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 26b471fca2e8..71a1bd69f372 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -77,7 +77,7 @@ 2.3.4 1.35.0 1.18 - 1.7 + 1.7.1 0.26.0 From 0be1c9738e8a1eec575a3a64ee4fbc91149331c3 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Mon, 4 May 2020 08:02:59 -0700 Subject: [PATCH 0347/2363] chore: update common templates, start generating README (#157) * chore: update common templates, start generating README * chore: fix link * chore: fix libraries-bom install section --- java-pubsub/.kokoro/common.sh | 19 ++- java-pubsub/.kokoro/dependencies.sh | 48 +++++++ java-pubsub/.kokoro/nightly/integration.cfg | 20 +++ java-pubsub/.kokoro/nightly/samples.cfg | 8 +- java-pubsub/.kokoro/presubmit/integration.cfg | 14 +- java-pubsub/.kokoro/presubmit/samples.cfg | 14 +- java-pubsub/.readme-partials.yaml | 132 ++++++++++++++++++ java-pubsub/.repo-metadata.json | 8 +- java-pubsub/README.md | 105 ++++++-------- .../samples/install-without-bom/pom.xml | 84 +++++++++++ java-pubsub/samples/pom.xml | 56 ++++++++ java-pubsub/samples/snapshot/pom.xml | 83 +++++++++++ java-pubsub/samples/snippets/pom.xml | 60 ++++++++ java-pubsub/synth.metadata | 22 +-- java-pubsub/synth.py | 4 +- 15 files changed, 593 insertions(+), 84 deletions(-) create mode 100644 java-pubsub/.readme-partials.yaml create mode 100644 java-pubsub/samples/install-without-bom/pom.xml create mode 100644 java-pubsub/samples/pom.xml create mode 100644 java-pubsub/samples/snapshot/pom.xml create mode 100644 java-pubsub/samples/snippets/pom.xml diff --git a/java-pubsub/.kokoro/common.sh b/java-pubsub/.kokoro/common.sh index a3bbc5f67963..a8d0ea04d37d 100644 --- a/java-pubsub/.kokoro/common.sh +++ b/java-pubsub/.kokoro/common.sh @@ -13,18 +13,28 @@ # See the License for the specific language governing permissions and # limitations under the License. -# set -eo pipefail - function retry_with_backoff { attempts_left=$1 sleep_seconds=$2 shift 2 command=$@ + + # store current flag state + flags=$- + + # allow a failures to continue + set +e echo "${command}" ${command} exit_code=$? + # restore "e" flag + if [[ ${flags} =~ e ]] + then set -e + else set +e + fi + if [[ $exit_code == 0 ]] then return 0 @@ -42,3 +52,8 @@ function retry_with_backoff { return $exit_code } + +## Helper functionss +function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } +function msg() { println "$*" >&2; } +function println() { printf '%s\n' "$(now) $*"; } \ No newline at end of file diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index 0aade871ce10..cf3bb4347e01 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -36,3 +36,51 @@ retry_with_backoff 3 10 \ -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true + +echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************" +## Run dependency list completeness check +function completenessCheck() { + # Output dep list with compile scope generated using the original pom + msg "Generating dependency list using original pom..." + mvn dependency:list -f pom.xml -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | grep -v ':test$' >.org-list.txt + + # Output dep list generated using the flattened pom (test scope deps are ommitted) + msg "Generating dependency list using flattened pom..." + mvn dependency:list -f .flattened-pom.xml -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt + + # Compare two dependency lists + msg "Comparing dependency lists..." + diff .org-list.txt .new-list.txt >.diff.txt + if [[ $? == 0 ]] + then + msg "Success. No diff!" + else + msg "Diff found. See below: " + msg "You can also check .diff.txt file located in $1." + cat .diff.txt + return 1 + fi +} + +# Allow failures to continue running the script +set +e + +error_count=0 +for path in $(find -name ".flattened-pom.xml") +do + # Check flattened pom in each dir that contains it for completeness + dir=$(dirname "$path") + pushd "$dir" + completenessCheck "$dir" + error_count=$(($error_count + $?)) + popd +done + +if [[ $error_count == 0 ]] +then + msg "All checks passed." + exit 0 +else + msg "Errors found. See log statements above." + exit 1 +fi diff --git a/java-pubsub/.kokoro/nightly/integration.cfg b/java-pubsub/.kokoro/nightly/integration.cfg index 8bf59c02edd6..40c4abb7bf08 100644 --- a/java-pubsub/.kokoro/nightly/integration.cfg +++ b/java-pubsub/.kokoro/nightly/integration.cfg @@ -6,11 +6,31 @@ env_vars: { value: "gcr.io/cloud-devrel-kokoro-resources/java8" } +env_vars: { + key: "JOB_TYPE" + value: "integration" +} +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + env_vars: { key: "ENABLE_BUILD_COP" value: "true" } +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" +} + before_action { fetch_keystore { keystore_resource { diff --git a/java-pubsub/.kokoro/nightly/samples.cfg b/java-pubsub/.kokoro/nightly/samples.cfg index b4b051cd016f..20aabd55de11 100644 --- a/java-pubsub/.kokoro/nightly/samples.cfg +++ b/java-pubsub/.kokoro/nightly/samples.cfg @@ -11,9 +11,15 @@ env_vars: { value: "samples" } +# TODO: remove this after we've migrated all tests and scripts env_vars: { key: "GCLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "java-docs-samples-testing" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/integration.cfg b/java-pubsub/.kokoro/presubmit/integration.cfg index 141f90c13c56..522e5b10101c 100644 --- a/java-pubsub/.kokoro/presubmit/integration.cfg +++ b/java-pubsub/.kokoro/presubmit/integration.cfg @@ -11,14 +11,20 @@ env_vars: { value: "integration" } +# TODO: remove this after we've migrated all tests and scripts env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" + key: "GCLOUD_PROJECT" + value: "gcloud-devel" } env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" } before_action { diff --git a/java-pubsub/.kokoro/presubmit/samples.cfg b/java-pubsub/.kokoro/presubmit/samples.cfg index fa7b493d0b5c..1171aead01f0 100644 --- a/java-pubsub/.kokoro/presubmit/samples.cfg +++ b/java-pubsub/.kokoro/presubmit/samples.cfg @@ -11,14 +11,20 @@ env_vars: { value: "samples" } +# TODO: remove this after we've migrated all tests and scripts env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" + key: "GCLOUD_PROJECT" + value: "java-docs-samples-testing" } env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + key: "GOOGLE_CLOUD_PROJECT" + value: "java-docs-samples-testing" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "keystore/73713_java_it_service_account" } before_action { diff --git a/java-pubsub/.readme-partials.yaml b/java-pubsub/.readme-partials.yaml new file mode 100644 index 000000000000..c68686327728 --- /dev/null +++ b/java-pubsub/.readme-partials.yaml @@ -0,0 +1,132 @@ +custom_content: | + #### Creating a topic + + With Pub/Sub you can create topics. A topic is a named resource to which messages are sent by + publishers. Add the following imports at the top of your file: + + ```java + import com.google.cloud.pubsub.v1.TopicAdminClient; + import com.google.pubsub.v1.ProjectTopicName; + ``` + Then, to create the topic, use the following code: + + ```java + ProjectTopicName topic = ProjectTopicName.of("test-project", "test-topic"); + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + topicAdminClient.createTopic(topic); + } + ``` + + #### Publishing messages + + With Pub/Sub you can publish messages to a topic. Add the following import at the top of your file: + + ```java + import com.google.api.core.ApiFuture; + import com.google.api.core.ApiFutureCallback; + import com.google.api.core.ApiFutures; + import com.google.cloud.pubsub.v1.Publisher; + import com.google.common.util.concurrent.MoreExecutors; + import com.google.protobuf.ByteString; + import com.google.pubsub.v1.PubsubMessage; + ``` + Then, to publish messages asynchronously, use the following code: + + ```java + Publisher publisher = null; + try { + publisher = Publisher.newBuilder(topic).build(); + ByteString data = ByteString.copyFromUtf8("my-message"); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + ApiFutures.addCallback(messageIdFuture, new ApiFutureCallback() { + public void onSuccess(String messageId) { + System.out.println("published with message id: " + messageId); + } + + public void onFailure(Throwable t) { + System.out.println("failed to publish: " + t); + } + }, MoreExecutors.directExecutor()); + //... + } finally { + if (publisher != null) { + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + ``` + + #### Creating a subscription + + With Pub/Sub you can create subscriptions. A subscription represents the stream of messages from a + single, specific topic. Add the following imports at the top of your file: + + ```java + import com.google.cloud.pubsub.v1.SubscriptionAdminClient; + import com.google.pubsub.v1.PushConfig; + import com.google.pubsub.v1.ProjectSubscriptionName; + import com.google.pubsub.v1.ProjectTopicName; + ``` + Then, to create the subscription, use the following code: + + ```java + ProjectTopicName topic = ProjectTopicName.of("test-project", "test-topic"); + ProjectSubscriptionName subscription = ProjectSubscriptionName.of("test-project", "test-subscription"); + + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + subscriptionAdminClient.createSubscription(subscription, topic, PushConfig.getDefaultInstance(), 0); + } + ``` + + #### Pulling messages + + With Pub/Sub you can pull messages from a subscription. Add the following imports at the top of your + file: + + ```java + import com.google.cloud.pubsub.v1.AckReplyConsumer; + import com.google.cloud.pubsub.v1.MessageReceiver; + import com.google.cloud.pubsub.v1.Subscriber; + import com.google.common.util.concurrent.MoreExecutors; + import com.google.pubsub.v1.PubsubMessage; + import com.google.pubsub.v1.ProjectSubscriptionName; + import com.google.pubsub.v1.ProjectTopicName; + ``` + Then, to pull messages asynchronously, use the following code: + + ```java + ProjectSubscriptionName subscription = ProjectSubscriptionName.of("test-project", "test-subscription"); + + MessageReceiver receiver = + new MessageReceiver() { + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + System.out.println("got message: " + message.getData().toStringUtf8()); + consumer.ack(); + } + }; + + Subscriber subscriber = null; + try { + subscriber = Subscriber.newBuilder(subscription, receiver).build(); + subscriber.addListener( + new Subscriber.Listener() { + @Override + public void failed(Subscriber.State from, Throwable failure) { + // Handle failure. This is called when the Subscriber encountered a fatal error and is shutting down. + System.err.println(failure); + } + }, + MoreExecutors.directExecutor()); + subscriber.startAsync().awaitRunning(); + //... + } finally { + if (subscriber != null) { + subscriber.stopAsync(); + } + } + ``` + #### Complete source code + + In [CreateTopicAndPublishMessages.java](https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 1b89fff820f9..45f1d52d27b7 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -1,14 +1,16 @@ { "name": "pubsub", - "name_pretty": "Google Cloud Pub/Sub", + "name_pretty": "Cloud Pub/Sub", "api_reference": "https://cloud.google.com/pubsub/", "product_documentation": "https://cloud.google.com/pubsub/docs/", - "client_documentation": "https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/pubsub/v1/package-summary.html", + "client_documentation": "https://googleapis.dev/java/google-cloud-pubusb/latest/index.html", + "api_description": "is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications.", "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", "release_level": "ga", "language": "java", "repo": "googleapis/java-pubsub", "repo_short": "java-pubsub", "distribution_name": "com.google.cloud:google-cloud-pubsub", - "api_id": "pubsub.googleapis.com" + "api_id": "pubsub.googleapis.com", + "requires_billing": true } \ No newline at end of file diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 213395c8f53c..5dd1709327f4 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -1,6 +1,6 @@ -# Google Cloud Java Client for Google Cloud Pub/Sub +# Google Cloud Pub/Sub Client for Java -Java idiomatic client for [Google Cloud Pub/Sub][api-reference]. +Java idiomatic client for [Cloud Pub/Sub][product-docs]. [![Maven][maven-version-image]][maven-version-link] ![Stability][stability-image] @@ -10,36 +10,41 @@ Java idiomatic client for [Google Cloud Pub/Sub][api-reference]. ## Quickstart -If you are using Maven with a BOM, add this to your pom.xml file: - +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file ```xml - + + + com.google.cloud + libraries-bom + 5.1.0 + pom + import + + + + + com.google.cloud - libraries-bom - 4.4.1 - pom - import - - - + google-cloud-pubsub + - - com.google.cloud - google-cloud-pubsub - ``` -[//]: # ({x-version-update-start:google-cloud-pubsub:released}) -If you are using Maven without a BOM, add this to your pom.xml file +If you are using Maven without BOM, add this to your dependencies: + ```xml com.google.cloud google-cloud-pubsub 1.105.0 + ``` + +[//]: # ({x-version-update-start:google-cloud-pubsub:released}) + If you are using Gradle, add this to your dependencies ```Groovy compile 'com.google.cloud:google-cloud-pubsub:1.105.0' @@ -54,49 +59,29 @@ libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.105.0" See the [Authentication][authentication] section in the base directory's README. -## About Google Cloud Pub/Sub - -[Google Cloud Pub/Sub][api-reference] is designed to provide reliable, -many-to-many, asynchronous messaging between applications. Publisher -applications can send messages to a topic and other applications can -subscribe to that topic to receive the messages. By decoupling senders and -receivers, Google Cloud Pub/Sub allows developers to communicate between -independently written applications. - -See the [Google Cloud Pub/Sub docs](https://cloud.google.com/pubsub/quickstart-console#before-you-begin) for more details on how to activate -Cloud Pub/Sub for your project. - -See the [Pub/Sub client library docs][javadocs] to learn how to interact with the -Cloud Pub/Sub using this Client Library. - ## Getting Started ### Prerequisites -For this tutorial, you will need a -[Google Developers Console](https://console.developers.google.com/) project with the Pub/Sub API -enabled. You will need to [enable billing](https://support.google.com/cloud/answer/6158867?hl=en) to -use Google Cloud Pub/Sub. -[Follow these instructions](https://cloud.google.com/resource-manager/docs/creating-managing-projects) to get your -project set up. You will also need to set up the local development environment by [installing the -Google Cloud SDK](https://cloud.google.com/sdk/) and running the following commands in command line: +You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Pub/Sub [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Cloud Pub/Sub. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. -#### Installation and setup +### Installation and setup You'll need to obtain the `google-cloud-pubsub` library. See the [Quickstart](#quickstart) section to add `google-cloud-pubsub` as a dependency in your code. -#### Creating an authorized service object +## About Cloud Pub/Sub -To make authenticated requests to Google Cloud Pub/Sub, you must create a service object with -credentials. You can then make API calls by calling methods on the Pub/Sub service object. The -simplest way to authenticate is to use -[Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials). -These credentials are automatically inferred from your environment. -For other authentication options, see the -[Authentication](https://github.com/googleapis/google-cloud-java#authentication) page. +[Cloud Pub/Sub][product-docs] is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications. + +See the [Cloud Pub/Sub client library docs][javadocs] to learn how to +use this Cloud Pub/Sub Client Library. + #### Creating a topic @@ -228,16 +213,15 @@ try { ``` #### Complete source code -In [CreateTopicAndPublishMessages.java](../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](../../google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. +In [CreateTopicAndPublishMessages.java](https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateTopicAndPublishMessages.java) and [CreateSubscriptionAndConsumeMessages.java](https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/CreateSubscriptionAndConsumeMessages.java) we put together all the code shown above into two programs. The programs assume that you are running on Compute Engine, App Engine Flexible or from your own desktop. + -## Troubleshooting -To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. -## Transport +## Troubleshooting -Google Cloud Pub/Sub uses gRPC for the transport layer. +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. ## Java Versions @@ -245,16 +229,16 @@ Java 7 or above is required for using this client. ## Versioning + This library follows [Semantic Versioning](http://semver.org/). -It is currently in major version zero (``0.y.z``), which means that anything may change at any time -and the public API should not be considered stable. ## Contributing + Contributions to this library are always welcome and highly encouraged. -See [CONTRIBUTING.md][contributing] documentation for more information on how to get started. +See [CONTRIBUTING][contributing] for more information how to get started. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more @@ -274,9 +258,8 @@ Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] -[api-reference]: https://cloud.google.com/pubsub/ [product-docs]: https://cloud.google.com/pubsub/docs/ -[javadocs]: https://googleapis.dev/java/google-cloud-clients/latest/index.html?com/google/cloud/pubsub/v1/package-summary.html +[javadocs]: https://googleapis.dev/java/google-cloud-pubusb/latest/index.html [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.svg [kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.html [kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.svg @@ -298,3 +281,7 @@ Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] [contributing]: https://github.com/googleapis/java-pubsub/blob/master/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/java-pubsub/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/java-pubsub/blob/master/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=pubsub.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml new file mode 100644 index 000000000000..2785587ebc6d --- /dev/null +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -0,0 +1,84 @@ + + + 4.0.0 + com.google.cloud + pubsub-install-without-bom + jar + Google Cloud Pub/Sub Install Without Bom + https://github.com/googleapis/java-pubsub + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + com.google.cloud + google-cloud-pubsub + 1.105.0 + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.1.0 + + + add-snippets-source + + add-source + + + + ../snippets/src/main/java + + + + + add-snippets-tests + + add-test-source + + + + ../snippets/src/test/java + + + + + + + + diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml new file mode 100644 index 000000000000..3f230c41e650 --- /dev/null +++ b/java-pubsub/samples/pom.xml @@ -0,0 +1,56 @@ + + + 4.0.0 + com.google.cloud + google-cloud-pubsub-samples + 0.0.1-SNAPSHOT + pom + Google Cloud Pub/Sub Samples Parent + https://github.com/googleapis/java-pubsub + + Java idiomatic client for Google Cloud Platform services. + + + + + com.google.cloud.samples + shared-configuration + 1.0.15 + + + + 1.8 + 1.8 + UTF-8 + + + + install-without-bom + snapshot + snippets + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + true + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + + true + + + + + diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml new file mode 100644 index 000000000000..7d882b07b606 --- /dev/null +++ b/java-pubsub/samples/snapshot/pom.xml @@ -0,0 +1,83 @@ + + + 4.0.0 + com.google.cloud + pubsub-snapshot + jar + Google Cloud Pub/Sub Snapshot Samples + https://github.com/googleapis/java-pubsub + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + com.google.cloud + google-cloud-pubsub + 1.105.0 + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.1.0 + + + add-snippets-source + + add-source + + + + ../snippets/src/main/java + + + + + add-snippets-tests + + add-test-source + + + + ../snippets/src/test/java + + + + + + + + \ No newline at end of file diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml new file mode 100644 index 000000000000..ee659ca3d336 --- /dev/null +++ b/java-pubsub/samples/snippets/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + com.google.cloud + pubsub-snippets + jar + Google Cloud Pub/Sub Snippets + https://github.com/googleapis/java-pubsub + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + + com.google.cloud + libraries-bom + 5.1.0 + pom + import + + + + + + + com.google.cloud + google-cloud-pubsub + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 0dc6e39b4ece..a508982a72fa 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -1,18 +1,25 @@ { - "updateTime": "2020-03-30T19:22:36.952654Z", "sources": [ { - "generator": { - "name": "artman", - "version": "1.1.1", - "dockerImage": "googleapis/artman@sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b" + "git": { + "name": ".", + "remote": "git@github.com:googleapis/java-pubsub.git", + "sha": "b4e0b77255ebb04eead8bf3e5c7be0fe76ac4c89" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "b5e9b0b09cc15c263f07da92fa64db31b2e4dd07", + "internalRef": "307068250" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "e36822bfa0acb355502dab391b8ef9c4f30208d8" + "sha": "f8a9933e5e98202b04ef427f28d1d79221190fa4" } } ], @@ -23,8 +30,7 @@ "apiName": "pubsub", "apiVersion": "v1", "language": "java", - "generator": "gapic", - "config": "google/pubsub/artman_pubsub.yaml" + "generator": "bazel" } } ] diff --git a/java-pubsub/synth.py b/java-pubsub/synth.py index a213152b4fea..08906abd9ff8 100644 --- a/java-pubsub/synth.py +++ b/java-pubsub/synth.py @@ -511,6 +511,4 @@ java.format_code(f'grpc-google-cloud-{service}-{version}/src') java.format_code(f'proto-google-cloud-{service}-{version}/src') -java.common_templates(excludes=[ - 'README.md' -]) +java.common_templates() From 3bff0a64a11f6e72543d8db7f8bdf5c4779fe643 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 5 May 2020 03:01:50 +0200 Subject: [PATCH 0348/2363] deps: update dependency com.google.api.grpc:proto-google-common-protos to v1.18.0 (#176) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.api.grpc:proto-google-common-protos](https://togithub.com/googleapis/java-iam) | minor | `1.17.0` -> `1.18.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 71a1bd69f372..8117a6dcb5b0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -65,7 +65,7 @@ google-cloud-pubsub-parent 1.93.4 1.9.0 - 1.17.0 + 1.18.0 1.56.0 1.29.0 3.11.4 From b7c5d5cce8dae81a9420402077ca6357e8a063cc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 May 2020 16:22:06 +0200 Subject: [PATCH 0349/2363] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.17 (#178) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2785587ebc6d..bbfc283fb8e0 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.17 diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 3f230c41e650..8219bd3f12e3 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.15 + 1.0.17 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7d882b07b606..a3b20824ae88 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.17 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index ee659ca3d336..c08f370b9725 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.17 From 9eb33c3aa5a888115668668674e19c9ad2314611 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 May 2020 16:22:47 +0200 Subject: [PATCH 0350/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v5.3.0 (#180) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c08f370b9725..7cb6f69e246b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.1.0 + 5.3.0 pom import From eb502ca6234861b5aa98a867dadf033378a7d579 Mon Sep 17 00:00:00 2001 From: Daniel Thorn Date: Thu, 7 May 2020 16:30:27 +0200 Subject: [PATCH 0351/2363] Fix typo in javadocs link (#177) --- java-pubsub/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5dd1709327f4..ca840d517020 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -259,7 +259,7 @@ Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] [product-docs]: https://cloud.google.com/pubsub/docs/ -[javadocs]: https://googleapis.dev/java/google-cloud-pubusb/latest/index.html +[javadocs]: https://googleapis.dev/java/google-cloud-pubsub/latest/index.html [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.svg [kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.html [kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.svg From aa4e24dfba887d92debe0ac33d2d6508a1d6f0fa Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 7 May 2020 08:03:51 -0700 Subject: [PATCH 0352/2363] chore: release 1.105.1 (#154) * updated CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * updated samples/install-without-bom/pom.xml [ci skip] * updated samples/pom.xml [ci skip] * updated samples/snapshot/pom.xml [ci skip] * updated samples/snippets/pom.xml [ci skip] * updated pom.xml [ci skip] Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 17 +++++++++++++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 37 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index e574a0bcbe0b..c132071a4508 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +### [1.105.1](https://www.github.com/googleapis/java-pubsub/compare/v1.105.0...v1.105.1) (2020-05-07) + + +### Bug Fixes + +* changing integration test push endpoint to be valid https ([#170](https://www.github.com/googleapis/java-pubsub/issues/170)) ([71f15a4](https://www.github.com/googleapis/java-pubsub/commit/71f15a4a90475c8e82c6cc6393d4232228273656)), closes [#6784](https://www.github.com/googleapis/java-pubsub/issues/6784) [#11](https://www.github.com/googleapis/java-pubsub/issues/11) + + +### Dependencies + +* update autovalue.version to v1.7.1 ([#173](https://www.github.com/googleapis/java-pubsub/issues/173)) ([77884f8](https://www.github.com/googleapis/java-pubsub/commit/77884f8c816bb189a1d5ecad3ab860b19df2804d)) +* update dependency com.google.api.grpc:proto-google-common-protos to v1.18.0 ([#176](https://www.github.com/googleapis/java-pubsub/issues/176)) ([486ed41](https://www.github.com/googleapis/java-pubsub/commit/486ed4130a17a0fa411a30e7c48bd04082e68458)) +* update dependency com.google.guava:guava-bom to v29 ([#146](https://www.github.com/googleapis/java-pubsub/issues/146)) ([16f1dbb](https://www.github.com/googleapis/java-pubsub/commit/16f1dbb3226af119cdbc234e8672608244d0a7fd)) +* update dependency com.google.http-client:google-http-client-bom to v1.35.0 ([#169](https://www.github.com/googleapis/java-pubsub/issues/169)) ([6346042](https://www.github.com/googleapis/java-pubsub/commit/6346042b09c5f7e302f75ad8e48cc2d08b6f8e64)) +* update dependency io.grpc:grpc-bom to v1.29.0 ([#162](https://www.github.com/googleapis/java-pubsub/issues/162)) ([b883b45](https://www.github.com/googleapis/java-pubsub/commit/b883b452676eeb7bd5a178cd1bb357e965a26ee8)) +* update dependency org.threeten:threetenbp to v1.4.4 ([#167](https://www.github.com/googleapis/java-pubsub/issues/167)) ([78ead3a](https://www.github.com/googleapis/java-pubsub/commit/78ead3a69ce493fdf57a372c1e135e71b8b5cb7c)) + ## [1.105.0](https://www.github.com/googleapis/java-pubsub/compare/v1.104.1...v1.105.0) (2020-04-13) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ca840d517020..7ac75b4d3a83 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.105.0' +compile 'com.google.cloud:google-cloud-pubsub:1.105.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.105.1" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fa09ccad6af3..ddad5b4c8aca 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.105.1-SNAPSHOT + 1.105.1 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.1-SNAPSHOT + 1.87.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.1-SNAPSHOT + 1.87.1 com.google.cloud google-cloud-pubsub - 1.105.1-SNAPSHOT + 1.105.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 737d001f3f03..e37176fc3a75 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.105.1-SNAPSHOT + 1.105.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.105.1-SNAPSHOT + 1.105.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e8fab58c77d4..680b3e6230e1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.1-SNAPSHOT + 1.87.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.105.1-SNAPSHOT + 1.105.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8117a6dcb5b0..b40638ca42c0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.105.1-SNAPSHOT + 1.105.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.1-SNAPSHOT + 1.87.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.1-SNAPSHOT + 1.87.1 com.google.cloud google-cloud-pubsub - 1.105.1-SNAPSHOT + 1.105.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3f01b1993955..9ba6fb452768 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.1-SNAPSHOT + 1.87.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.105.1-SNAPSHOT + 1.105.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a3b20824ae88..f88f9e1a170b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-pubsub - 1.105.0 + 1.105.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e39b5c5d4fe0..b6085ac24180 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.87.0:1.87.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.87.0:1.87.1-SNAPSHOT -google-cloud-pubsub:1.105.0:1.105.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.87.1:1.87.1 +grpc-google-cloud-pubsub-v1:1.87.1:1.87.1 +google-cloud-pubsub:1.105.1:1.105.1 \ No newline at end of file From e055a5b67bbffae81a50f8d9ba090765bb469621 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 May 2020 16:19:01 +0200 Subject: [PATCH 0353/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.105.1 (#181) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bbfc283fb8e0..e262b999fb42 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-pubsub - 1.105.0 + 1.105.1 From ed43f28de010a699882dda40749f3a89a63fe5ef Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 13 May 2020 16:41:45 -0700 Subject: [PATCH 0354/2363] ci: enable GitHub Actions (#186) --- java-pubsub/.github/workflows/ci.yaml | 76 +++++++++++++++++++++++++++ java-pubsub/.kokoro/build.bat | 2 +- 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 java-pubsub/.github/workflows/ci.yaml diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml new file mode 100644 index 000000000000..445b4bf82ffd --- /dev/null +++ b/java-pubsub/.github/workflows/ci.yaml @@ -0,0 +1,76 @@ +on: + push: + branches: + - master + pull_request: +name: ci +jobs: + units: + runs-on: ubuntu-latest + strategy: + matrix: + java: [7, 8, 11] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: ${{matrix.java}} + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: test + - name: coverage + uses: codecov/codecov-action@v1 + with: + name: actions ${{matrix.java}} + windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/build.bat + env: + JOB_TYPE: test + dependencies: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/dependencies.sh + linkage-monitor: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/linkage-monitor.sh + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: lint + clirr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: clirr \ No newline at end of file diff --git a/java-pubsub/.kokoro/build.bat b/java-pubsub/.kokoro/build.bat index ba2e6e889a8f..05826ad93fe8 100644 --- a/java-pubsub/.kokoro/build.bat +++ b/java-pubsub/.kokoro/build.bat @@ -1,3 +1,3 @@ :: See documentation in type-shell-output.bat -"C:\Program Files\Git\bin\bash.exe" github/java-pubsub/.kokoro/build.sh +"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh From ac06593611fe6956f11557e20672f7dc3480fe7e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 May 2020 18:54:53 +0200 Subject: [PATCH 0355/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v5.4.0 (#191) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 7cb6f69e246b..7aaa3421f204 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.3.0 + 5.4.0 pom import From 41a1013eaabec490c2f665d7314ca276ad24dc6d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 May 2020 19:06:31 +0200 Subject: [PATCH 0356/2363] deps: update autovalue.version to v1.7.2 (#184) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b40638ca42c0..6b6d1eb751d2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -77,7 +77,7 @@ 2.3.4 1.35.0 1.18 - 1.7.1 + 1.7.2 0.26.0 From c6178d1a2b368fa1a92e9204d76df1a7e35f44c9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 May 2020 21:49:52 +0200 Subject: [PATCH 0357/2363] deps: update dependency com.google.protobuf:protobuf-java to v3.12.0 (#188) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6b6d1eb751d2..f7e8dcb8fe48 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -68,7 +68,7 @@ 1.18.0 1.56.0 1.29.0 - 3.11.4 + 3.12.0 4.13 4.2 29.0-android From b8cb06fe5165cf125d78ce355edf2ee9bf9f13dd Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Tue, 19 May 2020 13:23:54 -0700 Subject: [PATCH 0358/2363] feat: set up repo for samples (#196) --- .../.kokoro/continuous/java11-samples.cfg | 30 +++++++++++ .../.kokoro/continuous/jave8-samples.cfg | 31 +++++++++++ .../.kokoro/nightly/java11-samples.cfg | 30 +++++++++++ java-pubsub/.kokoro/nightly/jave8-samples.cfg | 31 +++++++++++ .../.kokoro/presubmit/java11-samples.cfg | 30 +++++++++++ .../.kokoro/presubmit/jave8-samples.cfg | 31 +++++++++++ java-pubsub/.kokoro/run_samples_tests.sh | 51 +++++++++++++++++++ java-pubsub/pom.xml | 10 ++++ 8 files changed, 244 insertions(+) create mode 100644 java-pubsub/.kokoro/continuous/java11-samples.cfg create mode 100644 java-pubsub/.kokoro/continuous/jave8-samples.cfg create mode 100644 java-pubsub/.kokoro/nightly/java11-samples.cfg create mode 100644 java-pubsub/.kokoro/nightly/jave8-samples.cfg create mode 100644 java-pubsub/.kokoro/presubmit/java11-samples.cfg create mode 100644 java-pubsub/.kokoro/presubmit/jave8-samples.cfg create mode 100644 java-pubsub/.kokoro/run_samples_tests.sh diff --git a/java-pubsub/.kokoro/continuous/java11-samples.cfg b/java-pubsub/.kokoro/continuous/java11-samples.cfg new file mode 100644 index 000000000000..b43371933900 --- /dev/null +++ b/java-pubsub/.kokoro/continuous/java11-samples.cfg @@ -0,0 +1,30 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Format: //devtools/kokoro/config/proto/build.proto + +# Download secrets from Cloud Storage. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} + +# Tell trampoline which tests to run. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/run_samples_tests.sh" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/continuous/jave8-samples.cfg b/java-pubsub/.kokoro/continuous/jave8-samples.cfg new file mode 100644 index 000000000000..d4f3e8869880 --- /dev/null +++ b/java-pubsub/.kokoro/continuous/jave8-samples.cfg @@ -0,0 +1,31 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Format: //devtools/kokoro/config/proto/build.proto + +# Download secrets from Cloud Storage. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +# Tell trampoline which tests to run. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/run_samples_tests.sh" +} +© 2020 GitHub, Inc. \ No newline at end of file diff --git a/java-pubsub/.kokoro/nightly/java11-samples.cfg b/java-pubsub/.kokoro/nightly/java11-samples.cfg new file mode 100644 index 000000000000..b43371933900 --- /dev/null +++ b/java-pubsub/.kokoro/nightly/java11-samples.cfg @@ -0,0 +1,30 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Format: //devtools/kokoro/config/proto/build.proto + +# Download secrets from Cloud Storage. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} + +# Tell trampoline which tests to run. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/run_samples_tests.sh" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/nightly/jave8-samples.cfg b/java-pubsub/.kokoro/nightly/jave8-samples.cfg new file mode 100644 index 000000000000..d4f3e8869880 --- /dev/null +++ b/java-pubsub/.kokoro/nightly/jave8-samples.cfg @@ -0,0 +1,31 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Format: //devtools/kokoro/config/proto/build.proto + +# Download secrets from Cloud Storage. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +# Tell trampoline which tests to run. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/run_samples_tests.sh" +} +© 2020 GitHub, Inc. \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/java11-samples.cfg b/java-pubsub/.kokoro/presubmit/java11-samples.cfg new file mode 100644 index 000000000000..b43371933900 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/java11-samples.cfg @@ -0,0 +1,30 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Format: //devtools/kokoro/config/proto/build.proto + +# Download secrets from Cloud Storage. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} + +# Tell trampoline which tests to run. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/run_samples_tests.sh" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/jave8-samples.cfg b/java-pubsub/.kokoro/presubmit/jave8-samples.cfg new file mode 100644 index 000000000000..d4f3e8869880 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/jave8-samples.cfg @@ -0,0 +1,31 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Format: //devtools/kokoro/config/proto/build.proto + +# Download secrets from Cloud Storage. +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java8" +} + +# Tell trampoline which tests to run. +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/run_samples_tests.sh" +} +© 2020 GitHub, Inc. \ No newline at end of file diff --git a/java-pubsub/.kokoro/run_samples_tests.sh b/java-pubsub/.kokoro/run_samples_tests.sh new file mode 100644 index 000000000000..23f89f072718 --- /dev/null +++ b/java-pubsub/.kokoro/run_samples_tests.sh @@ -0,0 +1,51 @@ +#!/bin/bash +# Copyright 2020 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# `-e` enables the script to automatically fail when a command fails +# `-o pipefail` sets the exit code to the rightmost comment to exit with a non-zero +set -eo pipefail + +echo "********** MAVEN INFO ***********" +mvn -v + +# Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +# include common functions +source ${scriptDir}/common.sh + +# Attempt to install 3 times with exponential backoff (starting with 10 seconds) +retry_with_backoff 3 10 \ + mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true \ + -T 1C + +# Activate service account +gcloud auth activate-service-account \ + --key-file="$GOOGLE_APPLICATION_CREDENTIALS" \ + --project="$GOOGLE_CLOUD_PROJECT" + +# Move into the samples directory +cd samples/ + +echo -e "\n******************** RUNNING SAMPLE TESTS ********************" + +mvn --fail-at-end clean verify \ No newline at end of file diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f7e8dcb8fe48..6e6217001502 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -234,6 +234,16 @@ google-cloud-pubsub-bom + + + + enable-samples + + samples + + + + From 6bc76d33544c90722a5faf24f5da2d950905948d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 May 2020 13:24:42 -0700 Subject: [PATCH 0359/2363] chore: release 1.105.2-SNAPSHOT (#195) * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * updated samples/snapshot/pom.xml [ci skip] * updated samples/pom.xml [ci skip] * updated samples/install-without-bom/pom.xml [ci skip] * updated samples/snippets/pom.xml [ci skip] * updated pom.xml [ci skip] Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ddad5b4c8aca..060da53854e3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.105.1 + 1.105.2-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.1 + 1.87.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.1 + 1.87.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.105.1 + 1.105.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e37176fc3a75..40b48fe8884d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.105.1 + 1.105.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.105.1 + 1.105.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 680b3e6230e1..28e0675bbbb3 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.1 + 1.87.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.105.1 + 1.105.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6e6217001502..861c9eb8519b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.105.1 + 1.105.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -86,17 +86,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.1 + 1.87.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.1 + 1.87.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.105.1 + 1.105.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9ba6fb452768..ccd037234622 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.1 + 1.87.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.105.1 + 1.105.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f88f9e1a170b..5c015a483ba5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-pubsub - 1.105.1 + 1.105.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b6085ac24180..d28734c12332 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.87.1:1.87.1 -grpc-google-cloud-pubsub-v1:1.87.1:1.87.1 -google-cloud-pubsub:1.105.1:1.105.1 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.87.1:1.87.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.87.1:1.87.2-SNAPSHOT +google-cloud-pubsub:1.105.1:1.105.2-SNAPSHOT \ No newline at end of file From f02d92c83339eccdc73b77f9591848f3dfc305e2 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Tue, 19 May 2020 14:02:19 -0700 Subject: [PATCH 0360/2363] nit: fix typo in .kokoro/*.cfg (#201) --- java-pubsub/.kokoro/continuous/jave8-samples.cfg | 3 +-- java-pubsub/.kokoro/nightly/jave8-samples.cfg | 3 +-- java-pubsub/.kokoro/presubmit/jave8-samples.cfg | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.kokoro/continuous/jave8-samples.cfg b/java-pubsub/.kokoro/continuous/jave8-samples.cfg index d4f3e8869880..3506e1271bfd 100644 --- a/java-pubsub/.kokoro/continuous/jave8-samples.cfg +++ b/java-pubsub/.kokoro/continuous/jave8-samples.cfg @@ -27,5 +27,4 @@ env_vars: { env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-pubsub/.kokoro/run_samples_tests.sh" -} -© 2020 GitHub, Inc. \ No newline at end of file +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/nightly/jave8-samples.cfg b/java-pubsub/.kokoro/nightly/jave8-samples.cfg index d4f3e8869880..3506e1271bfd 100644 --- a/java-pubsub/.kokoro/nightly/jave8-samples.cfg +++ b/java-pubsub/.kokoro/nightly/jave8-samples.cfg @@ -27,5 +27,4 @@ env_vars: { env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-pubsub/.kokoro/run_samples_tests.sh" -} -© 2020 GitHub, Inc. \ No newline at end of file +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/jave8-samples.cfg b/java-pubsub/.kokoro/presubmit/jave8-samples.cfg index d4f3e8869880..3506e1271bfd 100644 --- a/java-pubsub/.kokoro/presubmit/jave8-samples.cfg +++ b/java-pubsub/.kokoro/presubmit/jave8-samples.cfg @@ -27,5 +27,4 @@ env_vars: { env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-pubsub/.kokoro/run_samples_tests.sh" -} -© 2020 GitHub, Inc. \ No newline at end of file +} \ No newline at end of file From b6560d29d31157ee1974e8ddead84f0b0bf95be7 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 20 May 2020 10:57:26 -0700 Subject: [PATCH 0361/2363] chore: set env vars for tests and make it executable (#204) --- .../nightly/{jave8-samples.cfg => java8-samples.cfg} | 0 .../presubmit/{jave8-samples.cfg => java8-samples.cfg} | 0 java-pubsub/.kokoro/run_samples_tests.sh | 6 +++++- 3 files changed, 5 insertions(+), 1 deletion(-) rename java-pubsub/.kokoro/nightly/{jave8-samples.cfg => java8-samples.cfg} (100%) rename java-pubsub/.kokoro/presubmit/{jave8-samples.cfg => java8-samples.cfg} (100%) mode change 100644 => 100755 java-pubsub/.kokoro/run_samples_tests.sh diff --git a/java-pubsub/.kokoro/nightly/jave8-samples.cfg b/java-pubsub/.kokoro/nightly/java8-samples.cfg similarity index 100% rename from java-pubsub/.kokoro/nightly/jave8-samples.cfg rename to java-pubsub/.kokoro/nightly/java8-samples.cfg diff --git a/java-pubsub/.kokoro/presubmit/jave8-samples.cfg b/java-pubsub/.kokoro/presubmit/java8-samples.cfg similarity index 100% rename from java-pubsub/.kokoro/presubmit/jave8-samples.cfg rename to java-pubsub/.kokoro/presubmit/java8-samples.cfg diff --git a/java-pubsub/.kokoro/run_samples_tests.sh b/java-pubsub/.kokoro/run_samples_tests.sh old mode 100644 new mode 100755 index 23f89f072718..5f1e8a27f08e --- a/java-pubsub/.kokoro/run_samples_tests.sh +++ b/java-pubsub/.kokoro/run_samples_tests.sh @@ -28,6 +28,10 @@ cd ${scriptDir}/.. # include common functions source ${scriptDir}/common.sh +# Setup required env variables +source ${KOKORO_GFILE_DIR}/pubsub_secrets.txt +echo "********** Successfully Set All Environment Variables **********" + # Attempt to install 3 times with exponential backoff (starting with 10 seconds) retry_with_backoff 3 10 \ mvn install -B -V \ @@ -48,4 +52,4 @@ cd samples/ echo -e "\n******************** RUNNING SAMPLE TESTS ********************" -mvn --fail-at-end clean verify \ No newline at end of file +mvn --fail-at-end clean verify From f8711321e6bcfd8588c3756a75e9b225184b3f00 Mon Sep 17 00:00:00 2001 From: Stephanie Wang Date: Wed, 20 May 2020 14:14:21 -0400 Subject: [PATCH 0362/2363] feat: implement google-cloud-shared-dependencies BOM (#198) * feat: implement google-cloud-shared-dependencies BOM * add javax annotations version --- java-pubsub/google-cloud-pubsub/pom.xml | 3 +- java-pubsub/pom.xml | 117 ++---------------------- 2 files changed, 10 insertions(+), 110 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 40b48fe8884d..4f864118e482 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -111,7 +111,6 @@ com.google.cloud google-cloud-core - ${google.core.version} test @@ -127,7 +126,6 @@ io.opencensus opencensus-impl - ${opencensus.version} test @@ -183,6 +181,7 @@ javax.annotation javax.annotation-api + ${javax.annotations.version} diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 861c9eb8519b..18286b000c31 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -63,26 +63,22 @@ UTF-8 github google-cloud-pubsub-parent - 1.93.4 - 1.9.0 - 1.18.0 - 1.56.0 - 1.29.0 - 3.12.0 - 4.13 4.2 - 29.0-android - 1.4.4 1.3.2 2.3.4 - 1.35.0 - 1.18 1.7.2 - 0.26.0 + + com.google.cloud + google-cloud-shared-dependencies + 0.4.0 + pom + import + + com.google.api.grpc proto-google-cloud-pubsub-v1 @@ -99,117 +95,22 @@ 1.105.2-SNAPSHOT - - io.grpc - grpc-bom - ${grpc.version} - pom - import - - - com.google.api - gax-bom - ${gax.version} - pom - import - - - com.google.guava - guava-bom - ${guava.version} - pom - import - - - com.google.http-client - google-http-client-bom - ${http-client-bom.version} - pom - import - - - - com.google.protobuf - protobuf-java - ${protobuf.version} - - - com.google.api - api-common - ${google.api-common.version} - - - com.google.api.grpc - proto-google-common-protos - ${google.common-protos.version} - - - com.google.api.grpc - proto-google-iam-v1 - 0.13.0 - - - org.threeten - threetenbp - ${threeten.version} - javax.annotation javax.annotation-api ${javax.annotations.version} - - org.codehaus.mojo - animal-sniffer-annotations - ${animal-sniffer.version} - - - io.opencensus - opencensus-api - ${opencensus.version} - com.google.errorprone error_prone_annotations ${errorprone.version} - - com.google.code.findbugs - jsr305 - 3.0.2 - - - - junit - junit - ${junit.version} - test - - - com.google.api - gax-grpc - ${gax.version} - testlib - test - - - com.google.api.grpc - grpc-google-iam-v1 - 0.13.0 - test - org.easymock easymock ${easymock.version} test - - com.google.truth - truth - 1.0.1 - test - @@ -307,7 +208,7 @@ https://developers.google.com/protocol-buffers/docs/reference/java/ https://googleapis.dev/java/google-auth-library/latest/ https://googleapis.dev/java/gax/latest/ - https://googleapis.github.io/api-common-java/${google.api-common.version}/apidocs/ + https://googleapis.github.io/api-common-java/ From 5613097a6a710d8817a409ce7d799be1d78eeb6c Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 20 May 2020 11:43:28 -0700 Subject: [PATCH 0363/2363] samples: add DLQ samples (#197) --- .../samples/install-without-bom/pom.xml | 15 ++ java-pubsub/samples/pom.xml | 15 ++ java-pubsub/samples/snapshot/pom.xml | 15 ++ java-pubsub/samples/snippets/pom.xml | 15 ++ ...bscriptionWithDeadLetterPolicyExample.java | 85 +++++++++++ ...veMessagesWithDeliveryAttemptsExample.java | 74 +++++++++ .../pubsub/RemoveDeadLetterPolicyExample.java | 82 ++++++++++ .../pubsub/UpdateDeadLetterPolicyExample.java | 96 ++++++++++++ .../test/java/pubsub/DeadLetterQueueIT.java | 144 ++++++++++++++++++ 9 files changed, 541 insertions(+) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java create mode 100644 java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e262b999fb42..2fdd67dd866d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -1,4 +1,19 @@ + 4.0.0 com.google.cloud diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 8219bd3f12e3..5b4f2113aa1b 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -1,4 +1,19 @@ + 4.0.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5c015a483ba5..0cd0837c79de 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -1,4 +1,19 @@ + 4.0.0 com.google.cloud diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 7aaa3421f204..d8a58f407030 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -1,4 +1,19 @@ + 4.0.0 com.google.cloud diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java new file mode 100644 index 000000000000..c9a07fb4a05d --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_dead_letter_create_subscription] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.DeadLetterPolicy; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.Subscription; + +public class CreateSubscriptionWithDeadLetterPolicyExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Project ID"; + // This is the subscription you want to create with a dead letter policy. + String subscriptionId = "Your Subscription ID"; + // This is an existing topic that you want to attach the subscription with dead letter policy + // to. + String topicId = "Your Topic ID"; + // This is an existing topic that the subscription with dead letter policy forwards dead letter + // messages to. + String deadLetterTopicId = "Your Dead Letter Topic ID"; + + CreateSubscriptionWithDeadLetterPolicyExample.createSubscriptionWithDeadLetterPolicyExample( + projectId, subscriptionId, topicId, deadLetterTopicId); + } + + public static void createSubscriptionWithDeadLetterPolicyExample( + String projectId, String subscriptionId, String topicId, String deadLetterTopicId) + throws Exception { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + ProjectTopicName deadLetterTopicName = ProjectTopicName.of(projectId, deadLetterTopicId); + + DeadLetterPolicy deadLetterPolicy = + DeadLetterPolicy.newBuilder() + .setDeadLetterTopic(deadLetterTopicName.toString()) + // The maximum number of times that the service attempts to deliver a + // message before forwarding it to the dead letter topic. Must be [5-100]. + .setMaxDeliveryAttempts(10) + .build(); + + Subscription request = + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + .setDeadLetterPolicy(deadLetterPolicy) + .build(); + + Subscription subscription = subscriptionAdminClient.createSubscription(request); + + System.out.println("Created subscription: " + subscription.getName()); + System.out.println( + "It will forward dead letter messages to: " + + subscription.getDeadLetterPolicy().getDeadLetterTopic()); + System.out.println( + "After " + + subscription.getDeadLetterPolicy().getMaxDeliveryAttempts() + + " delivery attempts."); + // Remember to attach a subscription to the dead letter topic because + // messages published to a topic with no subscriptions are lost. + } + } +} +// [END pubsub_dead_letter_create_subscription] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java new file mode 100644 index 000000000000..8612e45dc72a --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java @@ -0,0 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_dead_letter_delivery_attempt] + +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class ReceiveMessagesWithDeliveryAttemptsExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Project ID"; + // This is an existing subscription with a dead letter policy. + String subscriptionId = "Your Subscription ID"; + + ReceiveMessagesWithDeliveryAttemptsExample.receiveMessagesWithDeliveryAttemptsExample( + projectId, subscriptionId); + } + + public static void receiveMessagesWithDeliveryAttemptsExample( + String projectId, String subscriptionId) { + + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + new MessageReceiver() { + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + // Handle incoming message, then ack the received message. + System.out.println("Id: " + message.getMessageId()); + System.out.println("Data: " + message.getData().toStringUtf8()); + System.out.println("Delivery Attempt: " + Subscriber.getDeliveryAttempt(message)); + consumer.ack(); + } + }; + + Subscriber subscriber = null; + try { + subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); + // Start the subscriber. + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + // Allow the subscriber to run for 30s unless an unrecoverable error occurs. + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + // Shut down the subscriber after 30s. Stop receiving messages. + subscriber.stopAsync(); + } + } +} +// [END pubsub_dead_letter_delivery_attempt] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java new file mode 100644 index 000000000000..51d23594a3c3 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java @@ -0,0 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_dead_letter_remove] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.UpdateSubscriptionRequest; + +public class RemoveDeadLetterPolicyExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Project ID"; + // This is an existing subscription with dead letter policy. + String subscriptionId = "Your Subscription ID"; + // This is an existing topic that the subscription with dead letter policy is attached to. + String topicId = "Your Topic ID"; + + RemoveDeadLetterPolicyExample.removeDeadLetterPolicyExample(projectId, subscriptionId, topicId); + } + + public static void removeDeadLetterPolicyExample( + String projectId, String subscriptionId, String topicId) throws Exception { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + TopicName topicName = TopicName.of(projectId, topicId); + + System.out.println( + "Before: " + subscriptionAdminClient.getSubscription(subscriptionName).getAllFields()); + + // Construct the subscription you expect to have after the request. Here, + // values in the required fields (name, topic) help identify the subscription. + // No dead letter policy is supplied. + Subscription expectedSubscription = + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + .build(); + + // Construct a field mask to indicate which field to update in the subscription. + FieldMask updateMask = + FieldMask.newBuilder() + .addPaths("dead_letter_policy.dead_letter_topic") + // A default of 5 is applied upon successful update. + .addPaths("dead_letter_policy.max_delivery_attempts") + .build(); + + UpdateSubscriptionRequest request = + UpdateSubscriptionRequest.newBuilder() + .setSubscription(expectedSubscription) + .setUpdateMask(updateMask) + .build(); + + Subscription response = subscriptionAdminClient.updateSubscription(request); + + // You should see an empty dead letter topic field inside the dead letter policy. + System.out.println("After: " + response.getAllFields()); + } + } +} +// [END pubsub_dead_letter_remove] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java new file mode 100644 index 000000000000..ff4270ea6013 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java @@ -0,0 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_dead_letter_update_subscription] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.DeadLetterPolicy; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.UpdateSubscriptionRequest; +import java.io.IOException; + +public class UpdateDeadLetterPolicyExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Project ID"; + // This is an existing subscription with a dead letter policy. + String subscriptionId = "Your Subscription ID"; + // This is an existing topic that the subscription with dead letter policy is attached to. + String topicId = "Your Topic ID"; + // This is an existing dead letter topic that the subscription with dead letter policy forwards + // dead letter messages to. + String deadLetterTopicId = "Your Dead Letter Topic ID"; + + UpdateDeadLetterPolicyExample.updateDeadLetterPolicyExample( + projectId, subscriptionId, topicId, deadLetterTopicId); + } + + public static void updateDeadLetterPolicyExample( + String projectId, String subscriptionId, String topicId, String deadLetterTopicId) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + System.out.println( + "Before: " + subscriptionAdminClient.getSubscription(subscriptionName).getAllFields()); + + TopicName topicName = TopicName.of(projectId, topicId); + TopicName deadLetterTopicName = TopicName.of(projectId, deadLetterTopicId); + + // Construct the dead letter policy you expect to have after the update. + DeadLetterPolicy deadLetterPolicy = + DeadLetterPolicy.newBuilder() + .setDeadLetterTopic(deadLetterTopicName.toString()) + .setMaxDeliveryAttempts(20) + .build(); + + // Construct the subscription with the dead letter policy you expect to have + // after the update. Here, values in the required fields (name, topic) help + // identify the subscription. + Subscription subscription = + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + .setDeadLetterPolicy(deadLetterPolicy) + .build(); + + // Construct a field mask to indicate which field to update in the subscription. + FieldMask updateMask = + FieldMask.newBuilder().addPaths("dead_letter_policy.max_delivery_attempts").build(); + + UpdateSubscriptionRequest request = + UpdateSubscriptionRequest.newBuilder() + .setSubscription(subscription) + .setUpdateMask(updateMask) + .build(); + + Subscription response = subscriptionAdminClient.updateSubscription(request); + + System.out.println("After: " + response.getAllFields()); + System.out.println( + "Max delivery attempts is now " + + response.getDeadLetterPolicy().getMaxDeliveryAttempts()); + } + } +} +// [END pubsub_dead_letter_update_subscription] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java new file mode 100644 index 000000000000..73071a6eb156 --- /dev/null +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java @@ -0,0 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.pubsub.v1.Publisher; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.Topic; +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.Timeout; + +public class DeadLetterQueueIT { + + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String _suffix = UUID.randomUUID().toString(); + private static final String topicId = "topic-" + _suffix; + private static final String subscriptionId = "subscription-" + _suffix; + private static final String deadLetterTopicId = "topic-dlq-" + _suffix; + private static final ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + private static final ProjectTopicName deadLetterTopicName = + ProjectTopicName.of(projectId, deadLetterTopicId); + private static final ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + } + + // Helper function to publish a message. + private static void publishSomeMessages() throws Exception { + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + Publisher publisher = Publisher.newBuilder(topicName).build(); + ByteString data = ByteString.copyFromUtf8("Hello"); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + publisher.publish(pubsubMessage).get(); + } + + @Rule public Timeout globalTimeout = Timeout.seconds(300); // 5 minute timeout + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws Exception { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + + // Create a topic to attach a subscription with dead letter policy, and a + // dead letter topic for that subscription to forward dead letter messages to. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + Topic topic = Topic.newBuilder().setName(topicName.toString()).build(); + Topic deadLetterTopic = Topic.newBuilder().setName(deadLetterTopicName.toString()).build(); + topicAdminClient.createTopic(topic); + topicAdminClient.createTopic(deadLetterTopic); + } + } + + @After + public void tearDown() throws Exception { + // Delete the subscription with dead letter policy. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + subscriptionAdminClient.deleteSubscription(subscriptionName); + } + + // Delete the topic that the subscription with dead letter policy is attached + // to, and the dead letter topic that the subscription forwards dead letter + // messages to. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + topicAdminClient.deleteTopic(topicName.toString()); + topicAdminClient.deleteTopic(deadLetterTopicName.toString()); + } + + System.setOut(null); + } + + @Test + public void testQuickstart() throws Exception { + // Create a subscription with dead letter policy + CreateSubscriptionWithDeadLetterPolicyExample.createSubscriptionWithDeadLetterPolicyExample( + projectId, subscriptionId, topicId, deadLetterTopicId); + assertThat(bout.toString()).contains("Created subscription: " + subscriptionName.toString()); + assertThat(bout.toString()) + .contains("It will forward dead letter messages to: " + deadLetterTopicName.toString()); + assertThat(bout.toString()).contains("After 10 delivery attempts."); + + publishSomeMessages(); + + bout.reset(); + // Receive messages with delivery attempts. + ReceiveMessagesWithDeliveryAttemptsExample.receiveMessagesWithDeliveryAttemptsExample( + projectId, subscriptionId); + assertThat(bout.toString()).contains("Listening for messages on"); + assertThat(bout.toString()).contains("Data: Hello"); + assertThat(bout.toString()).contains("Delivery Attempt: 1"); + + bout.reset(); + // Update dead letter policy. + UpdateDeadLetterPolicyExample.updateDeadLetterPolicyExample( + projectId, subscriptionId, topicId, deadLetterTopicId); + assertThat(bout.toString()).contains("Max delivery attempts is now 20"); + + bout.reset(); + // Remove dead letter policy. + RemoveDeadLetterPolicyExample.removeDeadLetterPolicyExample(projectId, subscriptionId, topicId); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Subscription.dead_letter_policy=max_delivery_attempts: 5"); + } +} From 33efa4ecb2eda29d77b0e27152916fa3d2306332 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 May 2020 00:52:40 +0200 Subject: [PATCH 0364/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.6.0 (#202) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 060da53854e3..5efcd48388d9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.5.0 + 0.6.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 18286b000c31..6a8c92334f1d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.5.0 + 0.6.0 From 92e3ede77f3d3fb04722e5aabee1031cb692b18e Mon Sep 17 00:00:00 2001 From: kolea2 <45548808+kolea2@users.noreply.github.com> Date: Wed, 20 May 2020 18:53:43 -0400 Subject: [PATCH 0365/2363] docs(fix): update client documentation link (#192) --- java-pubsub/.repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 45f1d52d27b7..84ee733908da 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -3,7 +3,7 @@ "name_pretty": "Cloud Pub/Sub", "api_reference": "https://cloud.google.com/pubsub/", "product_documentation": "https://cloud.google.com/pubsub/docs/", - "client_documentation": "https://googleapis.dev/java/google-cloud-pubusb/latest/index.html", + "client_documentation": "https://googleapis.dev/java/google-cloud-pubsub/latest/index.html", "api_description": "is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications.", "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", "release_level": "ga", From ee67ba7c2ae144dbca783f4c038077c4868407a2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sun, 24 May 2020 09:07:44 -0700 Subject: [PATCH 0366/2363] chore: release 1.106.0 (#199) * updated CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated pom.xml [ci skip] * updated samples/install-without-bom/pom.xml [ci skip] * updated samples/pom.xml [ci skip] * updated samples/snapshot/pom.xml [ci skip] * updated samples/snippets/pom.xml Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 19 +++++++++++++++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 39 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index c132071a4508..88250e2705fe 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.106.0](https://www.github.com/googleapis/java-pubsub/compare/v1.105.1...v1.106.0) (2020-05-20) + + +### Features + +* implement google-cloud-shared-dependencies BOM ([#198](https://www.github.com/googleapis/java-pubsub/issues/198)) ([55bdc26](https://www.github.com/googleapis/java-pubsub/commit/55bdc2647f4f9949d015497ed4a35c24a3ecdfab)) +* set up repo for samples ([#196](https://www.github.com/googleapis/java-pubsub/issues/196)) ([3e1b136](https://www.github.com/googleapis/java-pubsub/commit/3e1b1360250ed8fa91b9fa6f36bc1d051aa38e2c)) + + +### Documentation + +* **fix:** update client documentation link ([#192](https://www.github.com/googleapis/java-pubsub/issues/192)) ([e6f0533](https://www.github.com/googleapis/java-pubsub/commit/e6f053399c45d02c7d641c4b2a84bff96b634e34)) + + +### Dependencies + +* update autovalue.version to v1.7.2 ([#184](https://www.github.com/googleapis/java-pubsub/issues/184)) ([040ff0b](https://www.github.com/googleapis/java-pubsub/commit/040ff0b7ce0a323a0e1ee575eb1c021dd644608b)) +* update dependency com.google.protobuf:protobuf-java to v3.12.0 ([#188](https://www.github.com/googleapis/java-pubsub/issues/188)) ([87e036e](https://www.github.com/googleapis/java-pubsub/commit/87e036ed6929dfa8f6d8e2eb099833276aa17a91)) + ### [1.105.1](https://www.github.com/googleapis/java-pubsub/compare/v1.105.0...v1.105.1) (2020-05-07) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7ac75b4d3a83..a803ef5d9c69 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.105.1' +compile 'com.google.cloud:google-cloud-pubsub:1.106.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.105.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.106.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5efcd48388d9..e95c8dcb357c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.105.2-SNAPSHOT + 1.106.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.2-SNAPSHOT + 1.88.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.2-SNAPSHOT + 1.88.0 com.google.cloud google-cloud-pubsub - 1.105.2-SNAPSHOT + 1.106.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4f864118e482..2858a653cb51 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.105.2-SNAPSHOT + 1.106.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.105.2-SNAPSHOT + 1.106.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 28e0675bbbb3..b5f99563be67 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.2-SNAPSHOT + 1.88.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.105.2-SNAPSHOT + 1.106.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6a8c92334f1d..c03a20744a97 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.105.2-SNAPSHOT + 1.106.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -82,17 +82,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.2-SNAPSHOT + 1.88.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.87.2-SNAPSHOT + 1.88.0 com.google.cloud google-cloud-pubsub - 1.105.2-SNAPSHOT + 1.106.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ccd037234622..bad1c09202d5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.87.2-SNAPSHOT + 1.88.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.105.2-SNAPSHOT + 1.106.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0cd0837c79de..a394ade69ab1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.105.2-SNAPSHOT + 1.106.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d28734c12332..436efd860f9d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.87.1:1.87.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.87.1:1.87.2-SNAPSHOT -google-cloud-pubsub:1.105.1:1.105.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.88.0:1.88.0 +grpc-google-cloud-pubsub-v1:1.88.0:1.88.0 +google-cloud-pubsub:1.106.0:1.106.0 \ No newline at end of file From eee310ac65a2963064def77dba74bd116912e637 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Sun, 24 May 2020 12:51:01 -0700 Subject: [PATCH 0367/2363] fix: update ignored diffs (#206) * Modifying Publish example in README to match other examples given, and fix issue #6784 * fix: Modifying Publish example in README to match other examples, and fix Issue #11 * feat: Adding support for DLQs Adding delivery attempt count to PubsubMessages as a message attribute, and creating helper function to allow users to get the count without knowing implementation details. * Fix formatting * fix: making changes requested in pull request * fix: creating fix to not populate delivery attempt attribute when dead lettering is not enabled * Adding unit test for case in which a received message has no delivery attempt * Making MessageWaiter class more generic to also be used for outstanding ack operations * Waiting for acks to complete before shutting down a streaming subscriber connection * Fixing formatting error * fix: making sure all publishes complete before shutting down the publisher * adding default max outstanding request bytes * fix: make push endpoint valid https * fix: update ignored diffs --- .../clirr-ignored-differences.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml b/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml index 7937e7b03db9..da90cd601b6f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml @@ -16,4 +16,14 @@ com/google/pubsub/v1/*OrBuilder boolean has*(*) - \ No newline at end of file + + 7002 + com/google/pubsub/v1/TopicName + java.util.List toStrings(*) + + + 7002 + com/google/pubsub/v1/TopicName + java.util.List parse(*) + + From 42a25c6455e98381a025958c552c3074f9bb86bb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 24 May 2020 13:25:29 -0700 Subject: [PATCH 0368/2363] feat: regenerated to pick up changes in the API or client library generator (#185) * Integrate Python GAPIC Microgenerator in googleapis. This PR uses using documentai as an example. Depends on https://github.com/googleapis/gapic-generator-python/pull/402 PiperOrigin-RevId: 309824146 Source-Author: Google APIs Source-Date: Mon May 4 15:06:44 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: e0f9d9e1f9de890db765be46f45ca8490723e3eb Source-Link: https://github.com/googleapis/googleapis/commit/e0f9d9e1f9de890db765be46f45ca8490723e3eb * Removing the experimental tag from dead letter policy related fields. PiperOrigin-RevId: 310595049 Source-Author: Google APIs Source-Date: Fri May 8 11:29:18 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 73d4b5d9a791f8b1ee63d439ffe909bb8ffa07f7 Source-Link: https://github.com/googleapis/googleapis/commit/73d4b5d9a791f8b1ee63d439ffe909bb8ffa07f7 * ci(java): switch to GitHub Actions (#533) * ci: switch to GitHub Actions * update based on comment Source-Author: Stephanie Wang Source-Date: Mon May 11 12:54:00 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 55cdc844877d97139f25004229842624a6a86a02 Source-Link: https://github.com/googleapis/synthtool/commit/55cdc844877d97139f25004229842624a6a86a02 * chore: move ci.yaml to workflows dir (#535) Source-Author: Stephanie Wang Source-Date: Mon May 11 16:24:04 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 98c50772ec23295c64cf0d2ddf199ea52961fd4c Source-Link: https://github.com/googleapis/synthtool/commit/98c50772ec23295c64cf0d2ddf199ea52961fd4c * docs: update CONTRIBUTING.md to include code formatting (#534) Co-authored-by: Jeff Ching Co-authored-by: Jeffrey Rennie Source-Author: Brian Chen Source-Date: Tue May 12 10:24:59 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 5b48b0716a36ca069db3038da7e205c87a22ed19 Source-Link: https://github.com/googleapis/synthtool/commit/5b48b0716a36ca069db3038da7e205c87a22ed19 Co-authored-by: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> --- java-pubsub/CONTRIBUTING.md | 11 +- java-pubsub/README.md | 6 +- .../pubsub/v1/SubscriptionAdminClient.java | 113 +++++++- .../pubsub/v1/SubscriptionAdminSettings.java | 12 + .../cloud/pubsub/v1/TopicAdminClient.java | 243 +++++++++++++++++- .../cloud/pubsub/v1/TopicAdminSettings.java | 17 ++ .../pubsub/v1/stub/GrpcPublisherStub.java | 51 ++++ .../pubsub/v1/stub/GrpcSubscriberStub.java | 29 +++ .../cloud/pubsub/v1/stub/PublisherStub.java | 13 + .../pubsub/v1/stub/PublisherStubSettings.java | 99 +++++++ .../cloud/pubsub/v1/stub/SubscriberStub.java | 5 + .../v1/stub/SubscriberStubSettings.java | 29 +++ .../cloud/pubsub/v1/MockPublisherImpl.java | 18 ++ .../cloud/pubsub/v1/MockSubscriberImpl.java | 18 +- .../v1/SubscriptionAdminClientTest.java | 42 +++ .../cloud/pubsub/v1/TopicAdminClientTest.java | 51 ++++ .../java/com/google/pubsub/v1/PushConfig.java | 14 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 4 +- .../com/google/pubsub/v1/ReceivedMessage.java | 52 ++-- .../pubsub/v1/ReceivedMessageOrBuilder.java | 13 +- .../com/google/pubsub/v1/Subscription.java | 36 --- .../pubsub/v1/SubscriptionOrBuilder.java | 9 - .../java/com/google/pubsub/v1/TopicName.java | 24 -- .../google/pubsub/v1/UpdateTopicRequest.java | 72 +++--- .../v1/UpdateTopicRequestOrBuilder.java | 18 +- .../main/proto/google/pubsub/v1/pubsub.proto | 25 +- java-pubsub/synth.metadata | 10 +- 27 files changed, 844 insertions(+), 190 deletions(-) diff --git a/java-pubsub/CONTRIBUTING.md b/java-pubsub/CONTRIBUTING.md index 085021ddec26..f2dbdee06bc3 100644 --- a/java-pubsub/CONTRIBUTING.md +++ b/java-pubsub/CONTRIBUTING.md @@ -99,7 +99,16 @@ mvn -Penable-samples clean verify ``` 2. [Activate](#profile-activation) the profile. -3. Define your samples in a normal Maven project in the `samples/` directory +3. Define your samples in a normal Maven project in the `samples/` directory. + +### Code Formatting + +Code in this repo is formatted with +[google-java-format](https://github.com/google/google-java-format). +To run formatting on your project, you can run: +``` +mvn com.coveo:fmt-maven-plugin:format +``` ### Profile Activation diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a803ef5d9c69..be3c05769d3b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 5.1.0 + 5.3.0 pom import @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.105.0 + 1.105.1 ``` @@ -259,7 +259,7 @@ Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] [product-docs]: https://cloud.google.com/pubsub/docs/ -[javadocs]: https://googleapis.dev/java/google-cloud-pubsub/latest/index.html +[javadocs]: https://googleapis.dev/java/google-cloud-pubusb/latest/index.html [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.svg [kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.html [kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.svg diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 227271f327d8..2fbd6ff962a2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -39,6 +39,7 @@ import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSnapshotRequest; import com.google.pubsub.v1.GetSubscriptionRequest; import com.google.pubsub.v1.ListSnapshotsRequest; import com.google.pubsub.v1.ListSnapshotsResponse; @@ -861,6 +862,110 @@ public final UnaryCallable deleteSubscriptionC return stub.deleteSubscriptionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    +   * }
    +   * 
    + * + * @param snapshot Required. The name of the snapshot to get. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final Snapshot getSnapshot(ProjectSnapshotName snapshot) { + GetSnapshotRequest request = + GetSnapshotRequest.newBuilder() + .setSnapshot(snapshot == null ? null : snapshot.toString()) + .build(); + return getSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot.toString());
    +   * }
    +   * 
    + * + * @param snapshot Required. The name of the snapshot to get. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final Snapshot getSnapshot(String snapshot) { + GetSnapshotRequest request = GetSnapshotRequest.newBuilder().setSnapshot(snapshot).build(); + return getSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   GetSnapshotRequest request = GetSnapshotRequest.newBuilder()
    +   *     .setSnapshot(snapshot.toString())
    +   *     .build();
    +   *   Snapshot response = subscriptionAdminClient.getSnapshot(request);
    +   * }
    +   * 
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final Snapshot getSnapshot(GetSnapshotRequest request) { + return getSnapshotCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   GetSnapshotRequest request = GetSnapshotRequest.newBuilder()
    +   *     .setSnapshot(snapshot.toString())
    +   *     .build();
    +   *   ApiFuture<Snapshot> future = subscriptionAdminClient.getSnapshotCallable().futureCall(request);
    +   *   // Do something
    +   *   Snapshot response = future.get();
    +   * }
    +   * 
    + */ + /* package-private */ final UnaryCallable getSnapshotCallable() { + return stub.getSnapshotCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Modifies the ack deadline for a specific message. This method is useful to indicate that more @@ -1989,7 +2094,7 @@ public final UnaryCallable seekCallable() { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * - *

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * *

    Sample code: * @@ -2046,7 +2151,7 @@ public final Policy setIamPolicy(String resource, Policy policy) { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * - *

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * *

    Sample code: * @@ -2142,7 +2247,7 @@ public final UnaryCallable getIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. * *

    Note: This operation is designed to be used for building permission-aware UIs and * command-line tools, not for authorization checking. This operation may "fail open" without @@ -2209,7 +2314,7 @@ public final TestIamPermissionsResponse testIamPermissions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. * *

    Note: This operation is designed to be used for building permission-aware UIs and * command-line tools, not for authorization checking. This operation may "fail open" without diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 32e5a6c5cd66..06d12d8ffc01 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -41,6 +41,7 @@ import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSnapshotRequest; import com.google.pubsub.v1.GetSubscriptionRequest; import com.google.pubsub.v1.ListSnapshotsRequest; import com.google.pubsub.v1.ListSnapshotsResponse; @@ -122,6 +123,11 @@ public UnaryCallSettings deleteSubscriptionSet return ((SubscriberStubSettings) getStubSettings()).deleteSubscriptionSettings(); } + /** Returns the object with the settings used for calls to getSnapshot. */ + /* package-private */ UnaryCallSettings getSnapshotSettings() { + return ((SubscriberStubSettings) getStubSettings()).getSnapshotSettings(); + } + /** Returns the object with the settings used for calls to modifyAckDeadline. */ /* package-private */ UnaryCallSettings modifyAckDeadlineSettings() { @@ -318,6 +324,12 @@ public UnaryCallSettings.Builder createSubscriptionS return getStubSettingsBuilder().deleteSubscriptionSettings(); } + /** Returns the builder for the settings used for calls to getSnapshot. */ + /* package-private */ UnaryCallSettings.Builder + getSnapshotSettings() { + return getStubSettingsBuilder().getSnapshotSettings(); + } + /** Returns the builder for the settings used for calls to modifyAckDeadline. */ /* package-private */ UnaryCallSettings.Builder modifyAckDeadlineSettings() { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 11951c869933..548523021efd 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -38,6 +38,8 @@ import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsRequest; @@ -883,6 +885,157 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( return stub.listTopicSubscriptionsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the names of the snapshots on this topic. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * 
    + * + * @param topic Required. The name of the topic that snapshots are attached to. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final ListTopicSnapshotsPagedResponse listTopicSnapshots(TopicName topic) { + ListTopicSnapshotsRequest request = + ListTopicSnapshotsRequest.newBuilder() + .setTopic(topic == null ? null : topic.toString()) + .build(); + return listTopicSnapshots(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the names of the snapshots on this topic. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   for (String element : topicAdminClient.listTopicSnapshots(topic.toString()).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * 
    + * + * @param topic Required. The name of the topic that snapshots are attached to. Format is + * `projects/{project}/topics/{topic}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final ListTopicSnapshotsPagedResponse listTopicSnapshots(String topic) { + ListTopicSnapshotsRequest request = + ListTopicSnapshotsRequest.newBuilder().setTopic(topic).build(); + return listTopicSnapshots(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the names of the snapshots on this topic. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   ListTopicSnapshotsRequest request = ListTopicSnapshotsRequest.newBuilder()
    +   *     .setTopic(topic.toString())
    +   *     .build();
    +   *   for (String element : topicAdminClient.listTopicSnapshots(request).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * 
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + /* package-private */ final ListTopicSnapshotsPagedResponse listTopicSnapshots( + ListTopicSnapshotsRequest request) { + return listTopicSnapshotsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the names of the snapshots on this topic. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   ListTopicSnapshotsRequest request = ListTopicSnapshotsRequest.newBuilder()
    +   *     .setTopic(topic.toString())
    +   *     .build();
    +   *   ApiFuture<ListTopicSnapshotsPagedResponse> future = topicAdminClient.listTopicSnapshotsPagedCallable().futureCall(request);
    +   *   // Do something
    +   *   for (String element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * 
    + */ + /* package-private */ final UnaryCallable< + ListTopicSnapshotsRequest, ListTopicSnapshotsPagedResponse> + listTopicSnapshotsPagedCallable() { + return stub.listTopicSnapshotsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists the names of the snapshots on this topic. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   ListTopicSnapshotsRequest request = ListTopicSnapshotsRequest.newBuilder()
    +   *     .setTopic(topic.toString())
    +   *     .build();
    +   *   while (true) {
    +   *     ListTopicSnapshotsResponse response = topicAdminClient.listTopicSnapshotsCallable().call(request);
    +   *     for (String element : response.getSnapshotsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * 
    + */ + /* package-private */ final UnaryCallable + listTopicSnapshotsCallable() { + return stub.listTopicSnapshotsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a @@ -1016,7 +1169,7 @@ public final UnaryCallable deleteTopicCallable() { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * - *

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * *

    Sample code: * @@ -1073,7 +1226,7 @@ public final Policy setIamPolicy(String resource, Policy policy) { /** * Sets the access control policy on the specified resource. Replaces any existing policy. * - *

    Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * *

    Sample code: * @@ -1169,7 +1322,7 @@ public final UnaryCallable getIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. * *

    Note: This operation is designed to be used for building permission-aware UIs and * command-line tools, not for authorization checking. This operation may "fail open" without @@ -1236,7 +1389,7 @@ public final TestIamPermissionsResponse testIamPermissions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. + * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. * *

    Note: This operation is designed to be used for building permission-aware UIs and * command-line tools, not for authorization checking. This operation may "fail open" without @@ -1501,4 +1654,86 @@ public ProjectSubscriptionName apply(String arg0) { }); } } + + public static class ListTopicSnapshotsPagedResponse + extends AbstractPagedListResponse< + ListTopicSnapshotsRequest, + ListTopicSnapshotsResponse, + String, + ListTopicSnapshotsPage, + ListTopicSnapshotsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTopicSnapshotsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListTopicSnapshotsPagedResponse apply(ListTopicSnapshotsPage input) { + return new ListTopicSnapshotsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListTopicSnapshotsPagedResponse(ListTopicSnapshotsPage page) { + super(page, ListTopicSnapshotsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTopicSnapshotsPage + extends AbstractPage< + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, String, ListTopicSnapshotsPage> { + + private ListTopicSnapshotsPage( + PageContext context, + ListTopicSnapshotsResponse response) { + super(context, response); + } + + private static ListTopicSnapshotsPage createEmptyPage() { + return new ListTopicSnapshotsPage(null, null); + } + + @Override + protected ListTopicSnapshotsPage createPage( + PageContext context, + ListTopicSnapshotsResponse response) { + return new ListTopicSnapshotsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTopicSnapshotsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTopicSnapshotsRequest, + ListTopicSnapshotsResponse, + String, + ListTopicSnapshotsPage, + ListTopicSnapshotsFixedSizeCollection> { + + private ListTopicSnapshotsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTopicSnapshotsFixedSizeCollection createEmptyCollection() { + return new ListTopicSnapshotsFixedSizeCollection(null, 0); + } + + @Override + protected ListTopicSnapshotsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTopicSnapshotsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 9b125b8cc28c..59119e19b8ac 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -15,6 +15,7 @@ */ package com.google.cloud.pubsub.v1; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; @@ -39,6 +40,8 @@ import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsRequest; @@ -119,6 +122,13 @@ public UnaryCallSettings getTopicSettings() { return ((PublisherStubSettings) getStubSettings()).listTopicSubscriptionsSettings(); } + /** Returns the object with the settings used for calls to listTopicSnapshots. */ + /* package-private */ PagedCallSettings< + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> + listTopicSnapshotsSettings() { + return ((PublisherStubSettings) getStubSettings()).listTopicSnapshotsSettings(); + } + /** Returns the object with the settings used for calls to deleteTopic. */ public UnaryCallSettings deleteTopicSettings() { return ((PublisherStubSettings) getStubSettings()).deleteTopicSettings(); @@ -272,6 +282,13 @@ public UnaryCallSettings.Builder getTopicSettings() { return getStubSettingsBuilder().listTopicSubscriptionsSettings(); } + /** Returns the builder for the settings used for calls to listTopicSnapshots. */ + /* package-private */ PagedCallSettings.Builder< + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> + listTopicSnapshotsSettings() { + return getStubSettingsBuilder().listTopicSnapshotsSettings(); + } + /** Returns the builder for the settings used for calls to deleteTopic. */ public UnaryCallSettings.Builder deleteTopicSettings() { return getStubSettingsBuilder().deleteTopicSettings(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index f42bb6bce1a5..02baa7378593 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -15,6 +15,7 @@ */ package com.google.cloud.pubsub.v1.stub; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; @@ -35,6 +36,8 @@ import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsRequest; @@ -108,6 +111,16 @@ public class GrpcPublisherStub extends PublisherStub { .setResponseMarshaller( ProtoUtils.marshaller(ListTopicSubscriptionsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + listTopicSnapshotsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Publisher/ListTopicSnapshots") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTopicSnapshotsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTopicSnapshotsResponse.getDefaultInstance())) + .build(); private static final MethodDescriptor deleteTopicMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -152,6 +165,10 @@ public class GrpcPublisherStub extends PublisherStub { listTopicSubscriptionsCallable; private final UnaryCallable listTopicSubscriptionsPagedCallable; + private final UnaryCallable + listTopicSnapshotsCallable; + private final UnaryCallable + listTopicSnapshotsPagedCallable; private final UnaryCallable deleteTopicCallable; private final UnaryCallable setIamPolicyCallable; private final UnaryCallable getIamPolicyCallable; @@ -276,6 +293,20 @@ public Map extract(ListTopicSubscriptionsRequest request) { } }) .build(); + GrpcCallSettings + listTopicSnapshotsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listTopicSnapshotsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListTopicSnapshotsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic", String.valueOf(request.getTopic())); + return params.build(); + } + }) + .build(); GrpcCallSettings deleteTopicTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTopicMethodDescriptor) @@ -358,6 +389,16 @@ public Map extract(TestIamPermissionsRequest request) { listTopicSubscriptionsTransportSettings, settings.listTopicSubscriptionsSettings(), clientContext); + this.listTopicSnapshotsCallable = + callableFactory.createUnaryCallable( + listTopicSnapshotsTransportSettings, + settings.listTopicSnapshotsSettings(), + clientContext); + this.listTopicSnapshotsPagedCallable = + callableFactory.createPagedCallable( + listTopicSnapshotsTransportSettings, + settings.listTopicSnapshotsSettings(), + clientContext); this.deleteTopicCallable = callableFactory.createUnaryCallable( deleteTopicTransportSettings, settings.deleteTopicSettings(), clientContext); @@ -410,6 +451,16 @@ public UnaryCallable listTopicsCallable() return listTopicSubscriptionsCallable; } + public UnaryCallable + listTopicSnapshotsPagedCallable() { + return listTopicSnapshotsPagedCallable; + } + + public UnaryCallable + listTopicSnapshotsCallable() { + return listTopicSnapshotsCallable; + } + public UnaryCallable deleteTopicCallable() { return deleteTopicCallable; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index 5b2310807885..6d5ecda6eebd 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -38,6 +38,7 @@ import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSnapshotRequest; import com.google.pubsub.v1.GetSubscriptionRequest; import com.google.pubsub.v1.ListSnapshotsRequest; import com.google.pubsub.v1.ListSnapshotsResponse; @@ -117,6 +118,13 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(DeleteSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor getSnapshotMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/GetSnapshot") + .setRequestMarshaller(ProtoUtils.marshaller(GetSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .build(); private static final MethodDescriptor modifyAckDeadlineMethodDescriptor = MethodDescriptor.newBuilder() @@ -238,6 +246,7 @@ public class GrpcSubscriberStub extends SubscriberStub { private final UnaryCallable listSubscriptionsPagedCallable; private final UnaryCallable deleteSubscriptionCallable; + private final UnaryCallable getSnapshotCallable; private final UnaryCallable modifyAckDeadlineCallable; private final UnaryCallable acknowledgeCallable; private final UnaryCallable pullCallable; @@ -362,6 +371,19 @@ public Map extract(DeleteSubscriptionRequest request) { } }) .build(); + GrpcCallSettings getSnapshotTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSnapshotMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetSnapshotRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("snapshot", String.valueOf(request.getSnapshot())); + return params.build(); + } + }) + .build(); GrpcCallSettings modifyAckDeadlineTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(modifyAckDeadlineMethodDescriptor) @@ -552,6 +574,9 @@ public Map extract(TestIamPermissionsRequest request) { deleteSubscriptionTransportSettings, settings.deleteSubscriptionSettings(), clientContext); + this.getSnapshotCallable = + callableFactory.createUnaryCallable( + getSnapshotTransportSettings, settings.getSnapshotSettings(), clientContext); this.modifyAckDeadlineCallable = callableFactory.createUnaryCallable( modifyAckDeadlineTransportSettings, @@ -628,6 +653,10 @@ public UnaryCallable deleteSubscriptionCallabl return deleteSubscriptionCallable; } + public UnaryCallable getSnapshotCallable() { + return getSnapshotCallable; + } + public UnaryCallable modifyAckDeadlineCallable() { return modifyAckDeadlineCallable; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 65956640fb24..6ff2d02f8f46 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -15,6 +15,7 @@ */ package com.google.cloud.pubsub.v1.stub; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; @@ -29,6 +30,8 @@ import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsRequest; @@ -84,6 +87,16 @@ public UnaryCallable listTopicsCallable() throw new UnsupportedOperationException("Not implemented: listTopicSubscriptionsCallable()"); } + public UnaryCallable + listTopicSnapshotsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTopicSnapshotsPagedCallable()"); + } + + public UnaryCallable + listTopicSnapshotsCallable() { + throw new UnsupportedOperationException("Not implemented: listTopicSnapshotsCallable()"); + } + public UnaryCallable deleteTopicCallable() { throw new UnsupportedOperationException("Not implemented: deleteTopicCallable()"); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index d472257852a3..ee84a4ab3173 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -15,6 +15,7 @@ */ package com.google.cloud.pubsub.v1.stub; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; @@ -60,6 +61,8 @@ import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsRequest; @@ -126,6 +129,9 @@ public class PublisherStubSettings extends StubSettings { ListTopicSubscriptionsResponse, ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings; + private final PagedCallSettings< + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> + listTopicSnapshotsSettings; private final UnaryCallSettings deleteTopicSettings; private final UnaryCallSettings setIamPolicySettings; private final UnaryCallSettings getIamPolicySettings; @@ -167,6 +173,13 @@ public UnaryCallSettings getTopicSettings() { return listTopicSubscriptionsSettings; } + /** Returns the object with the settings used for calls to listTopicSnapshots. */ + public PagedCallSettings< + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> + listTopicSnapshotsSettings() { + return listTopicSnapshotsSettings; + } + /** Returns the object with the settings used for calls to deleteTopic. */ public UnaryCallSettings deleteTopicSettings() { return deleteTopicSettings; @@ -262,6 +275,7 @@ protected PublisherStubSettings(Builder settingsBuilder) throws IOException { getTopicSettings = settingsBuilder.getTopicSettings().build(); listTopicsSettings = settingsBuilder.listTopicsSettings().build(); listTopicSubscriptionsSettings = settingsBuilder.listTopicSubscriptionsSettings().build(); + listTopicSnapshotsSettings = settingsBuilder.listTopicSnapshotsSettings().build(); deleteTopicSettings = settingsBuilder.deleteTopicSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); @@ -346,6 +360,45 @@ public Iterable extractResources(ListTopicSubscriptionsResponse payload) } }; + private static final PagedListDescriptor< + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, String> + LIST_TOPIC_SNAPSHOTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTopicSnapshotsRequest injectToken( + ListTopicSnapshotsRequest payload, String token) { + return ListTopicSnapshotsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTopicSnapshotsRequest injectPageSize( + ListTopicSnapshotsRequest payload, int pageSize) { + return ListTopicSnapshotsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTopicSnapshotsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTopicSnapshotsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTopicSnapshotsResponse payload) { + return payload.getSnapshotsList() != null + ? payload.getSnapshotsList() + : ImmutableList.of(); + } + }; + private static final PagedListResponseFactory< ListTopicsRequest, ListTopicsResponse, ListTopicsPagedResponse> LIST_TOPICS_PAGE_STR_FACT = @@ -387,6 +440,27 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> + LIST_TOPIC_SNAPSHOTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTopicSnapshotsRequest, + ListTopicSnapshotsResponse, + ListTopicSnapshotsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTopicSnapshotsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_TOPIC_SNAPSHOTS_PAGE_STR_DESC, request, context); + return ListTopicSnapshotsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final BatchingDescriptor PUBLISH_BATCHING_DESC = new BatchingDescriptor() { @Override @@ -469,6 +543,9 @@ public static class Builder extends StubSettings.Builder listTopicSubscriptionsSettings; + private final PagedCallSettings.Builder< + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> + listTopicSnapshotsSettings; private final UnaryCallSettings.Builder deleteTopicSettings; private final UnaryCallSettings.Builder setIamPolicySettings; private final UnaryCallSettings.Builder getIamPolicySettings; @@ -489,6 +566,11 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "idempotent2", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); definitions.put("none", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "publish", @@ -556,6 +638,8 @@ protected Builder(ClientContext clientContext) { listTopicSubscriptionsSettings = PagedCallSettings.newBuilder(LIST_TOPIC_SUBSCRIPTIONS_PAGE_STR_FACT); + listTopicSnapshotsSettings = PagedCallSettings.newBuilder(LIST_TOPIC_SNAPSHOTS_PAGE_STR_FACT); + deleteTopicSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -572,6 +656,7 @@ protected Builder(ClientContext clientContext) { getTopicSettings, listTopicsSettings, listTopicSubscriptionsSettings, + listTopicSnapshotsSettings, deleteTopicSettings, setIamPolicySettings, getIamPolicySettings, @@ -633,6 +718,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .listTopicSnapshotsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent2")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder .deleteTopicSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) @@ -665,6 +755,7 @@ protected Builder(PublisherStubSettings settings) { getTopicSettings = settings.getTopicSettings.toBuilder(); listTopicsSettings = settings.listTopicsSettings.toBuilder(); listTopicSubscriptionsSettings = settings.listTopicSubscriptionsSettings.toBuilder(); + listTopicSnapshotsSettings = settings.listTopicSnapshotsSettings.toBuilder(); deleteTopicSettings = settings.deleteTopicSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); @@ -678,6 +769,7 @@ protected Builder(PublisherStubSettings settings) { getTopicSettings, listTopicsSettings, listTopicSubscriptionsSettings, + listTopicSnapshotsSettings, deleteTopicSettings, setIamPolicySettings, getIamPolicySettings, @@ -735,6 +827,13 @@ public UnaryCallSettings.Builder getTopicSettings() { return listTopicSubscriptionsSettings; } + /** Returns the builder for the settings used for calls to listTopicSnapshots. */ + public PagedCallSettings.Builder< + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> + listTopicSnapshotsSettings() { + return listTopicSnapshotsSettings; + } + /** Returns the builder for the settings used for calls to deleteTopic. */ public UnaryCallSettings.Builder deleteTopicSettings() { return deleteTopicSettings; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index 66f365ee010e..da19f2a6f973 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -32,6 +32,7 @@ import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSnapshotRequest; import com.google.pubsub.v1.GetSubscriptionRequest; import com.google.pubsub.v1.ListSnapshotsRequest; import com.google.pubsub.v1.ListSnapshotsResponse; @@ -87,6 +88,10 @@ public UnaryCallable deleteSubscriptionCallabl throw new UnsupportedOperationException("Not implemented: deleteSubscriptionCallable()"); } + public UnaryCallable getSnapshotCallable() { + throw new UnsupportedOperationException("Not implemented: getSnapshotCallable()"); + } + public UnaryCallable modifyAckDeadlineCallable() { throw new UnsupportedOperationException("Not implemented: modifyAckDeadlineCallable()"); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 2b22761351f8..a6d1a9826221 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -55,6 +55,7 @@ import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSnapshotRequest; import com.google.pubsub.v1.GetSubscriptionRequest; import com.google.pubsub.v1.ListSnapshotsRequest; import com.google.pubsub.v1.ListSnapshotsResponse; @@ -125,6 +126,7 @@ public class SubscriberStubSettings extends StubSettings ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> listSubscriptionsSettings; private final UnaryCallSettings deleteSubscriptionSettings; + private final UnaryCallSettings getSnapshotSettings; private final UnaryCallSettings modifyAckDeadlineSettings; private final UnaryCallSettings acknowledgeSettings; private final UnaryCallSettings pullSettings; @@ -170,6 +172,11 @@ public UnaryCallSettings deleteSubscriptionSet return deleteSubscriptionSettings; } + /** Returns the object with the settings used for calls to getSnapshot. */ + public UnaryCallSettings getSnapshotSettings() { + return getSnapshotSettings; + } + /** Returns the object with the settings used for calls to modifyAckDeadline. */ public UnaryCallSettings modifyAckDeadlineSettings() { return modifyAckDeadlineSettings; @@ -311,6 +318,7 @@ protected SubscriberStubSettings(Builder settingsBuilder) throws IOException { updateSubscriptionSettings = settingsBuilder.updateSubscriptionSettings().build(); listSubscriptionsSettings = settingsBuilder.listSubscriptionsSettings().build(); deleteSubscriptionSettings = settingsBuilder.deleteSubscriptionSettings().build(); + getSnapshotSettings = settingsBuilder.getSnapshotSettings().build(); modifyAckDeadlineSettings = settingsBuilder.modifyAckDeadlineSettings().build(); acknowledgeSettings = settingsBuilder.acknowledgeSettings().build(); pullSettings = settingsBuilder.pullSettings().build(); @@ -454,6 +462,7 @@ public static class Builder extends StubSettings.Builder deleteSubscriptionSettings; + private final UnaryCallSettings.Builder getSnapshotSettings; private final UnaryCallSettings.Builder modifyAckDeadlineSettings; private final UnaryCallSettings.Builder acknowledgeSettings; @@ -488,6 +497,11 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "idempotent2", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); definitions.put( "streaming_pull", ImmutableSet.copyOf( @@ -558,6 +572,8 @@ protected Builder(ClientContext clientContext) { deleteSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSnapshotSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + modifyAckDeadlineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); acknowledgeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -591,6 +607,7 @@ protected Builder(ClientContext clientContext) { updateSubscriptionSettings, listSubscriptionsSettings, deleteSubscriptionSettings, + getSnapshotSettings, modifyAckDeadlineSettings, acknowledgeSettings, pullSettings, @@ -643,6 +660,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .getSnapshotSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent2")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder .modifyAckDeadlineSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) @@ -714,6 +736,7 @@ protected Builder(SubscriberStubSettings settings) { updateSubscriptionSettings = settings.updateSubscriptionSettings.toBuilder(); listSubscriptionsSettings = settings.listSubscriptionsSettings.toBuilder(); deleteSubscriptionSettings = settings.deleteSubscriptionSettings.toBuilder(); + getSnapshotSettings = settings.getSnapshotSettings.toBuilder(); modifyAckDeadlineSettings = settings.modifyAckDeadlineSettings.toBuilder(); acknowledgeSettings = settings.acknowledgeSettings.toBuilder(); pullSettings = settings.pullSettings.toBuilder(); @@ -735,6 +758,7 @@ protected Builder(SubscriberStubSettings settings) { updateSubscriptionSettings, listSubscriptionsSettings, deleteSubscriptionSettings, + getSnapshotSettings, modifyAckDeadlineSettings, acknowledgeSettings, pullSettings, @@ -795,6 +819,11 @@ public UnaryCallSettings.Builder createSubscriptionS return deleteSubscriptionSettings; } + /** Returns the builder for the settings used for calls to getSnapshot. */ + public UnaryCallSettings.Builder getSnapshotSettings() { + return getSnapshotSettings; + } + /** Returns the builder for the settings used for calls to modifyAckDeadline. */ public UnaryCallSettings.Builder modifyAckDeadlineSettings() { return modifyAckDeadlineSettings; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index a8c18fb046e0..0d49c4288570 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -20,6 +20,8 @@ import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsRequest; @@ -154,6 +156,22 @@ public void listTopicSubscriptions( } } + @Override + public void listTopicSnapshots( + ListTopicSnapshotsRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListTopicSnapshotsResponse) { + requests.add(request); + responseObserver.onNext((ListTopicSnapshotsResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + @Override public void deleteTopic(DeleteTopicRequest request, StreamObserver responseObserver) { Object response = responses.remove(); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index 2e9e647e6eee..3d3c2013d287 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -22,6 +22,7 @@ import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSnapshotRequest; import com.google.pubsub.v1.GetSubscriptionRequest; import com.google.pubsub.v1.ListSnapshotsRequest; import com.google.pubsub.v1.ListSnapshotsResponse; @@ -200,11 +201,12 @@ public void pull(PullRequest request, StreamObserver responseObser @Override public StreamObserver streamingPull( final StreamObserver responseObserver) { - final Object response = responses.remove(); StreamObserver requestObserver = new StreamObserver() { @Override public void onNext(StreamingPullRequest value) { + requests.add(value); + final Object response = responses.remove(); if (response instanceof StreamingPullResponse) { responseObserver.onNext((StreamingPullResponse) response); } else if (response instanceof Exception) { @@ -242,6 +244,20 @@ public void modifyPushConfig( } } + @Override + public void getSnapshot(GetSnapshotRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Snapshot) { + requests.add(request); + responseObserver.onNext((Snapshot) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + @Override public void listSnapshots( ListSnapshotsRequest request, StreamObserver responseObserver) { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index bfe959b50918..2d40f14bf3f1 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -45,6 +45,7 @@ import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSnapshotRequest; import com.google.pubsub.v1.GetSubscriptionRequest; import com.google.pubsub.v1.ListSnapshotsRequest; import com.google.pubsub.v1.ListSnapshotsResponse; @@ -404,6 +405,47 @@ public void deleteSubscriptionExceptionTest() throws Exception { } } + @Test + @SuppressWarnings("all") + public void getSnapshotTest() { + ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + Snapshot expectedResponse = + Snapshot.newBuilder().setName(name.toString()).setTopic(topic.toString()).build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + + Snapshot actualResponse = client.getSnapshot(snapshot); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSnapshotRequest actualRequest = (GetSnapshotRequest) actualRequests.get(0); + + Assert.assertEquals(snapshot, ProjectSnapshotName.parse(actualRequest.getSnapshot())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getSnapshotExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + + client.getSnapshot(snapshot); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void modifyAckDeadlineTest() { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 7d524361bf38..43510c154011 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -15,6 +15,7 @@ */ package com.google.cloud.pubsub.v1; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; @@ -38,6 +39,8 @@ import com.google.protobuf.FieldMask; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsRequest; @@ -390,6 +393,54 @@ public void listTopicSubscriptionsExceptionTest() throws Exception { } } + @Test + @SuppressWarnings("all") + public void listTopicSnapshotsTest() { + String nextPageToken = ""; + String snapshotsElement = "snapshotsElement1339034092"; + List snapshots = Arrays.asList(snapshotsElement); + ListTopicSnapshotsResponse expectedResponse = + ListTopicSnapshotsResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllSnapshots(snapshots) + .build(); + mockPublisher.addResponse(expectedResponse); + + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + + ListTopicSnapshotsPagedResponse pagedListResponse = client.listTopicSnapshots(topic); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicSnapshotsRequest actualRequest = (ListTopicSnapshotsRequest) actualRequests.get(0); + + Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listTopicSnapshotsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + + client.listTopicSnapshots(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + @Test @SuppressWarnings("all") public void deleteTopicTest() { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index e461881d52fb..5557855c8d00 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1140,7 +1140,7 @@ public AuthenticationMethodCase getAuthenticationMethodCase() { * *

        * A URL locating the endpoint to which messages should be pushed.
    -   * For example, a Webhook endpoint might use "https://example.com/push".
    +   * For example, a Webhook endpoint might use `https://example.com/push`.
        * 
    * * string push_endpoint = 1; @@ -1163,7 +1163,7 @@ public java.lang.String getPushEndpoint() { * *
        * A URL locating the endpoint to which messages should be pushed.
    -   * For example, a Webhook endpoint might use "https://example.com/push".
    +   * For example, a Webhook endpoint might use `https://example.com/push`.
        * 
    * * string push_endpoint = 1; @@ -1808,7 +1808,7 @@ public Builder clearAuthenticationMethod() { * *
          * A URL locating the endpoint to which messages should be pushed.
    -     * For example, a Webhook endpoint might use "https://example.com/push".
    +     * For example, a Webhook endpoint might use `https://example.com/push`.
          * 
    * * string push_endpoint = 1; @@ -1831,7 +1831,7 @@ public java.lang.String getPushEndpoint() { * *
          * A URL locating the endpoint to which messages should be pushed.
    -     * For example, a Webhook endpoint might use "https://example.com/push".
    +     * For example, a Webhook endpoint might use `https://example.com/push`.
          * 
    * * string push_endpoint = 1; @@ -1854,7 +1854,7 @@ public com.google.protobuf.ByteString getPushEndpointBytes() { * *
          * A URL locating the endpoint to which messages should be pushed.
    -     * For example, a Webhook endpoint might use "https://example.com/push".
    +     * For example, a Webhook endpoint might use `https://example.com/push`.
          * 
    * * string push_endpoint = 1; @@ -1876,7 +1876,7 @@ public Builder setPushEndpoint(java.lang.String value) { * *
          * A URL locating the endpoint to which messages should be pushed.
    -     * For example, a Webhook endpoint might use "https://example.com/push".
    +     * For example, a Webhook endpoint might use `https://example.com/push`.
          * 
    * * string push_endpoint = 1; @@ -1894,7 +1894,7 @@ public Builder clearPushEndpoint() { * *
          * A URL locating the endpoint to which messages should be pushed.
    -     * For example, a Webhook endpoint might use "https://example.com/push".
    +     * For example, a Webhook endpoint might use `https://example.com/push`.
          * 
    * * string push_endpoint = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 873e0074ac83..091a066f98a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface PushConfigOrBuilder * *
        * A URL locating the endpoint to which messages should be pushed.
    -   * For example, a Webhook endpoint might use "https://example.com/push".
    +   * For example, a Webhook endpoint might use `https://example.com/push`.
        * 
    * * string push_endpoint = 1; @@ -41,7 +41,7 @@ public interface PushConfigOrBuilder * *
        * A URL locating the endpoint to which messages should be pushed.
    -   * For example, a Webhook endpoint might use "https://example.com/push".
    +   * For example, a Webhook endpoint might use `https://example.com/push`.
        * 
    * * string push_endpoint = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index b366d91da7d7..298013f30799 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -227,19 +227,18 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * *
    -   * 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
        * 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.
    +   * 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.
    -   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    -   * API might be changed in backward-incompatible ways and is not recommended
    -   * for production use. It is not subject to any SLA or deprecation policy.
        * 
    * * int32 delivery_attempt = 3; @@ -902,19 +901,18 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * *
    -     * 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
          * 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.
    +     * 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.
    -     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    -     * API might be changed in backward-incompatible ways and is not recommended
    -     * for production use. It is not subject to any SLA or deprecation policy.
          * 
    * * int32 delivery_attempt = 3; @@ -928,19 +926,18 @@ public int getDeliveryAttempt() { * * *
    -     * 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
          * 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.
    +     * 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.
    -     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    -     * API might be changed in backward-incompatible ways and is not recommended
    -     * for production use. It is not subject to any SLA or deprecation policy.
          * 
    * * int32 delivery_attempt = 3; @@ -958,19 +955,18 @@ public Builder setDeliveryAttempt(int value) { * * *
    -     * 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
          * 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.
    +     * 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.
    -     * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    -     * API might be changed in backward-incompatible ways and is not recommended
    -     * for production use. It is not subject to any SLA or deprecation policy.
          * 
    * * int32 delivery_attempt = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index eb54e43f1a96..805690b39fb0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -87,19 +87,18 @@ public interface ReceivedMessageOrBuilder * * *
    -   * 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
        * 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.
    +   * 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.
    -   * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
    -   * API might be changed in backward-incompatible ways and is not recommended
    -   * for production use. It is not subject to any SLA or deprecation policy.
        * 
    * * int32 delivery_attempt = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index c91b6d10f89e..64391376b948 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -773,9 +773,6 @@ public com.google.protobuf.ByteString getFilterBytes() { * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -796,9 +793,6 @@ public boolean hasDeadLetterPolicy() { * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -821,9 +815,6 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -2948,9 +2939,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -2971,9 +2959,6 @@ public boolean hasDeadLetterPolicy() { * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -3000,9 +2985,6 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -3031,9 +3013,6 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -3060,9 +3039,6 @@ public Builder setDeadLetterPolicy( * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -3095,9 +3071,6 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -3124,9 +3097,6 @@ public Builder clearDeadLetterPolicy() { * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -3147,9 +3117,6 @@ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder( * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -3174,9 +3141,6 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 0c1a6fe40b44..dd48671fb9f0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -406,9 +406,6 @@ public interface SubscriptionOrBuilder * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -427,9 +424,6 @@ public interface SubscriptionOrBuilder * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; @@ -448,9 +442,6 @@ public interface SubscriptionOrBuilder * parent project (i.e., * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have * permission to Acknowledge() messages on this subscription. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 09996bf5ec28..14d871ac5cb8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -22,8 +22,6 @@ import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; import java.util.Map; import java.util.Objects; @@ -119,28 +117,6 @@ public static TopicName parse(String formattedString) { throw new ValidationException("JobName.parse: formattedString not in valid format"); } - @BetaApi("The method will be renamed to parseList after subclasses of this class are removed.") - public static List parse(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - @BetaApi("The method will be renamed to toStringList after subclasses of this class are removed.") - public static List toStrings(List values) { - List list = new ArrayList<>(values.size()); - for (TopicName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - public static boolean isParsableFrom(String formattedString) { return PROJECT_TOPIC_PATH_TEMPLATE.matches(formattedString) || DELETED_TOPIC_FIXED_VALUE.equals(formattedString); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 5309c9bd7d97..44b586ae1b60 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -182,9 +182,9 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { *
        * 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" then the new value will be determined based on the
    -   * policy configured at the project or organization level. The
    -   * `message_storage_policy` must not be set in the `topic` provided above.
    +   * "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.
        * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -201,9 +201,9 @@ public boolean hasUpdateMask() { *
        * 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" then the new value will be determined based on the
    -   * policy configured at the project or organization level. The
    -   * `message_storage_policy` must not be set in the `topic` provided above.
    +   * "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.
        * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -220,9 +220,9 @@ public com.google.protobuf.FieldMask getUpdateMask() { *
        * 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" then the new value will be determined based on the
    -   * policy configured at the project or organization level. The
    -   * `message_storage_policy` must not be set in the `topic` provided above.
    +   * "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.
        * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -776,9 +776,9 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { *
          * 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" then the new value will be determined based on the
    -     * policy configured at the project or organization level. The
    -     * `message_storage_policy` must not be set in the `topic` provided above.
    +     * "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.
          * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -795,9 +795,9 @@ public boolean hasUpdateMask() { *
          * 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" then the new value will be determined based on the
    -     * policy configured at the project or organization level. The
    -     * `message_storage_policy` must not be set in the `topic` provided above.
    +     * "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.
          * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -820,9 +820,9 @@ public com.google.protobuf.FieldMask getUpdateMask() { *
          * 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" then the new value will be determined based on the
    -     * policy configured at the project or organization level. The
    -     * `message_storage_policy` must not be set in the `topic` provided above.
    +     * "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.
          * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -847,9 +847,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { *
          * 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" then the new value will be determined based on the
    -     * policy configured at the project or organization level. The
    -     * `message_storage_policy` must not be set in the `topic` provided above.
    +     * "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.
          * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -871,9 +871,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal *
          * 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" then the new value will be determined based on the
    -     * policy configured at the project or organization level. The
    -     * `message_storage_policy` must not be set in the `topic` provided above.
    +     * "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.
          * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -900,9 +900,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { *
          * 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" then the new value will be determined based on the
    -     * policy configured at the project or organization level. The
    -     * `message_storage_policy` must not be set in the `topic` provided above.
    +     * "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.
          * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -925,9 +925,9 @@ public Builder clearUpdateMask() { *
          * 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" then the new value will be determined based on the
    -     * policy configured at the project or organization level. The
    -     * `message_storage_policy` must not be set in the `topic` provided above.
    +     * "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.
          * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -944,9 +944,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { *
          * 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" then the new value will be determined based on the
    -     * policy configured at the project or organization level. The
    -     * `message_storage_policy` must not be set in the `topic` provided above.
    +     * "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.
          * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -967,9 +967,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { *
          * 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" then the new value will be determined based on the
    -     * policy configured at the project or organization level. The
    -     * `message_storage_policy` must not be set in the `topic` provided above.
    +     * "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.
          * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 257f0fdb8780..c65735f57634 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -64,9 +64,9 @@ public interface UpdateTopicRequestOrBuilder *
        * 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" then the new value will be determined based on the
    -   * policy configured at the project or organization level. The
    -   * `message_storage_policy` must not be set in the `topic` provided above.
    +   * "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.
        * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -81,9 +81,9 @@ public interface UpdateTopicRequestOrBuilder *
        * 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" then the new value will be determined based on the
    -   * policy configured at the project or organization level. The
    -   * `message_storage_policy` must not be set in the `topic` provided above.
    +   * "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.
        * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -98,9 +98,9 @@ public interface UpdateTopicRequestOrBuilder *
        * 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" then the new value will be determined based on the
    -   * policy configured at the project or organization level. The
    -   * `message_storage_policy` must not be set in the `topic` provided above.
    +   * "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.
        * 
    * * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b49b30ed4916..a42d03220b32 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -222,9 +222,9 @@ message UpdateTopicRequest { // 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" then the new value will be determined based on the - // policy configured at the project or organization level. The - // `message_storage_policy` must not be set in the `topic` provided above. + // "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. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -689,9 +689,6 @@ message Subscription { // parent project (i.e., // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must have // permission to Acknowledge() messages on this subscription. - // 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. DeadLetterPolicy dead_letter_policy = 13; // A policy that specifies how Cloud Pub/Sub retries message delivery for this @@ -796,7 +793,7 @@ message PushConfig { } // A URL locating the endpoint to which messages should be pushed. - // For example, a Webhook endpoint might use "https://example.com/push". + // For example, a Webhook endpoint might use `https://example.com/push`. string push_endpoint = 1; // Endpoint configuration attributes that can be used to control different @@ -842,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 @@ -851,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/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index a508982a72fa..4effe7abd008 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -3,23 +3,23 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/java-pubsub.git", - "sha": "b4e0b77255ebb04eead8bf3e5c7be0fe76ac4c89" + "remote": "https://github.com/googleapis/java-pubsub.git", + "sha": "e1d285147accf85dc47417646388b8298f8c484e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b5e9b0b09cc15c263f07da92fa64db31b2e4dd07", - "internalRef": "307068250" + "sha": "edd3b80fb770548d6ad780105f1782de6ff73ea0", + "internalRef": "311053644" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f8a9933e5e98202b04ef427f28d1d79221190fa4" + "sha": "5b48b0716a36ca069db3038da7e205c87a22ed19" } } ], From cc2001188f5111bd88679e7dd41216f90c37f9ed Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 24 May 2020 15:44:09 -0700 Subject: [PATCH 0369/2363] chore(java): allow overriding minimum supported Java version in templates (#577) (#208) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(java): allow overriding minimum supported Java version in templates (#577) Source-Author: Jeff Ching Source-Date: Thu May 21 17:51:49 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 65f8c647c0bc0c6b38211b969a2a003e271a5ef1 Source-Link: https://github.com/googleapis/synthtool/commit/65f8c647c0bc0c6b38211b969a2a003e271a5ef1 --- java-pubsub/README.md | 24 ++++++++++++++++++------ java-pubsub/synth.metadata | 4 ++-- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index be3c05769d3b..7c91db712864 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 5.3.0 + 5.4.0 pom import @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.106.0' +compile 'com.google.cloud:google-cloud-pubsub:1.105.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.105.1" ``` [//]: # ({x-version-update-end}) @@ -218,6 +218,19 @@ In [CreateTopicAndPublishMessages.java](https://github.com/googleapis/google-clo +## Samples + +Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/master/samples) directory. The samples' `README.md` +has instructions for running the samples. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +| Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | +| Receive Messages With Delivery Attempts Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | +| Remove Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | +| Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | + + ## Troubleshooting @@ -252,14 +265,13 @@ Apache 2.0 - See [LICENSE][license] for more information. Java Version | Status ------------ | ------ -Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1] -Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1]Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] [product-docs]: https://cloud.google.com/pubsub/docs/ -[javadocs]: https://googleapis.dev/java/google-cloud-pubusb/latest/index.html +[javadocs]: https://googleapis.dev/java/google-cloud-pubsub/latest/index.html [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.svg [kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.html [kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.svg diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 4effe7abd008..8b91264dfc44 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "e1d285147accf85dc47417646388b8298f8c484e" + "sha": "16624f88ad19ccaf2ea074a62242496be103659f" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5b48b0716a36ca069db3038da7e205c87a22ed19" + "sha": "65f8c647c0bc0c6b38211b969a2a003e271a5ef1" } } ], From a548a27f308fe511ee0f11ad679420d4ce063f39 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 May 2020 19:06:29 +0200 Subject: [PATCH 0370/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.106.0 (#210) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2fdd67dd866d..51d291456380 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.105.1 + 1.106.0 From 89fc302b8666a5f25c851a7c945edcb7fd0dae08 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 25 May 2020 12:08:31 -0700 Subject: [PATCH 0371/2363] chore: release 1.106.1-SNAPSHOT (#209) * updated versions.txt [ci skip] * updated samples/install-without-bom/pom.xml [ci skip] * updated samples/pom.xml [ci skip] * updated samples/snippets/pom.xml [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * updated samples/snapshot/pom.xml Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e95c8dcb357c..8ba10396b704 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.106.0 + 1.106.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.88.0 + 1.88.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.88.0 + 1.88.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.106.0 + 1.106.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2858a653cb51..5b3e98761658 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.106.0 + 1.106.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.106.0 + 1.106.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b5f99563be67..cf0c8d698b60 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.88.0 + 1.88.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.106.0 + 1.106.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c03a20744a97..af518b3cedb1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.106.0 + 1.106.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -82,17 +82,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.88.0 + 1.88.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.88.0 + 1.88.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.106.0 + 1.106.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index bad1c09202d5..f30bb9ea9932 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.88.0 + 1.88.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.106.0 + 1.106.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a394ade69ab1..ddbb8314765c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.106.0 + 1.106.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 436efd860f9d..57cecb2f364a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.88.0:1.88.0 -grpc-google-cloud-pubsub-v1:1.88.0:1.88.0 -google-cloud-pubsub:1.106.0:1.106.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.88.0:1.88.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.88.0:1.88.1-SNAPSHOT +google-cloud-pubsub:1.106.0:1.106.1-SNAPSHOT \ No newline at end of file From 6ddb611b3d20977e74318e6e25090e333c796eb5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 27 May 2020 07:10:11 -0700 Subject: [PATCH 0372/2363] chore(java): fix inadvertent whitespace changes (#578) (#214) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(java): fix inadvertent whitespace changes (#578) Source-Author: Jeff Ching Source-Date: Tue May 26 08:37:51 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 388f7aafee3d7a067c23db6c13b7e83fb361c64a Source-Link: https://github.com/googleapis/synthtool/commit/388f7aafee3d7a067c23db6c13b7e83fb361c64a --- java-pubsub/README.md | 9 +++++---- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7c91db712864..cf44cb0f7f73 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.105.1 + 1.106.0 ``` @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.105.1' +compile 'com.google.cloud:google-cloud-pubsub:1.106.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.105.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.106.0" ``` [//]: # ({x-version-update-end}) @@ -265,7 +265,8 @@ Apache 2.0 - See [LICENSE][license] for more information. Java Version | Status ------------ | ------ -Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1]Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1] +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 8b91264dfc44..67e6c7384dc1 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "16624f88ad19ccaf2ea074a62242496be103659f" + "sha": "63a0e7a423ca0e9de9e446f0686aec6e6368f67c" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "65f8c647c0bc0c6b38211b969a2a003e271a5ef1" + "sha": "388f7aafee3d7a067c23db6c13b7e83fb361c64a" } } ], From 058eb7d9b483c09db97bffe492a1c1f24143fb60 Mon Sep 17 00:00:00 2001 From: Stephanie Wang Date: Wed, 27 May 2020 14:00:11 -0400 Subject: [PATCH 0373/2363] deps: bump shared-deps version and add back certain test deps (#218) --- java-pubsub/pom.xml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index af518b3cedb1..9aff1afe361b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -74,7 +74,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.4.0 + 0.5.0 pom import @@ -105,12 +105,32 @@ error_prone_annotations ${errorprone.version} + + + + junit + junit + 4.13 + test + + + com.google.api.grpc + grpc-google-iam-v1 + 0.13.0 + test + org.easymock easymock ${easymock.version} test + + com.google.truth + truth + 1.0.1 + test + From 4e7ef0ba4da4a91849da75625c11d5fc167738a7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 28 May 2020 18:42:04 +0200 Subject: [PATCH 0374/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.6.0 (#219) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9aff1afe361b..158ae28a877b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -74,7 +74,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.5.0 + 0.6.0 pom import From 352531feb061d6bffeff8736d47f0deb9a867473 Mon Sep 17 00:00:00 2001 From: Stephanie Wang Date: Thu, 28 May 2020 19:27:23 -0400 Subject: [PATCH 0375/2363] deps: remove grpc test dep since it's now in shared-deps (#220) --- java-pubsub/pom.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 158ae28a877b..e2222c990532 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -113,12 +113,6 @@ 4.13 test - - com.google.api.grpc - grpc-google-iam-v1 - 0.13.0 - test - org.easymock easymock From 1f95123e4d5dc2010c96d96de9c31507f93f8458 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 May 2020 20:42:13 +0200 Subject: [PATCH 0376/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v5.5.0 (#224) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.4.0` -> `5.5.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d8a58f407030..b8373ed8af11 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 5.4.0 + 5.5.0 pom import From 6ec9781bf96206a6c0c508c4609fd3d5b2e4983b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Jun 2020 19:22:55 +0200 Subject: [PATCH 0377/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.7.0 (#221) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e2222c990532..0ffd24d3dc7f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -74,7 +74,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.6.0 + 0.7.0 pom import From 49acc152144648be3e9b5b920d8535498c5e5b61 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Jun 2020 19:24:15 +0200 Subject: [PATCH 0378/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.4.0 (#225) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0ffd24d3dc7f..8b4b9a0a2ce0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -65,7 +65,7 @@ google-cloud-pubsub-parent 4.2 1.3.2 - 2.3.4 + 2.4.0 1.7.2 From aea634742f736e8e6c60429775d79111af5c0a88 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 3 Jun 2020 11:46:15 -0700 Subject: [PATCH 0379/2363] chore: regenerate README versions (#213) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/92fae1bc-c876-439b-aed4-253c36a9f7b1/targets From 97cb7c401e4f5f15c5b1258b1aa725124670205a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Jun 2020 22:33:28 +0200 Subject: [PATCH 0380/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.1.0 (#226) This PR contains the following updates: | Package | Update | Change | |---|---|---| | org.apache.maven.plugins:maven-project-info-reports-plugin | minor | `3.0.0` -> `3.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8b4b9a0a2ce0..d70aea5906a8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -164,7 +164,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.0.0 + 3.1.0 From 063009febe8163996420fcb0df82ca9717284d7b Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Fri, 5 Jun 2020 11:24:53 -0700 Subject: [PATCH 0381/2363] samples: migrate publisher samples and add tests (#227) * add publisher examples * remove enable-samples and format plugin --- java-pubsub/pom.xml | 10 -- ...bscriptionWithDeadLetterPolicyExample.java | 8 +- .../PublishWithBatchSettingsExample.java | 93 ++++++++++++++++++ .../PublishWithConcurrencyControlExample.java | 85 ++++++++++++++++ .../PublishWithCustomAttributesExample.java | 71 ++++++++++++++ .../PublishWithErrorHandlerExample.java | 96 +++++++++++++++++++ .../PublishWithRetrySettingsExample.java | 88 +++++++++++++++++ ...veMessagesWithDeliveryAttemptsExample.java | 4 +- .../pubsub/RemoveDeadLetterPolicyExample.java | 6 +- .../pubsub/UpdateDeadLetterPolicyExample.java | 8 +- .../src/test/java/pubsub/PublisherIT.java | 88 +++++++++++++++++ 11 files changed, 534 insertions(+), 23 deletions(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java create mode 100644 java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d70aea5906a8..6813a9d5abdb 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -149,16 +149,6 @@ google-cloud-pubsub-bom - - - - enable-samples - - samples - - - - diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java index c9a07fb4a05d..90a492f74d6b 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java @@ -28,15 +28,15 @@ public class CreateSubscriptionWithDeadLetterPolicyExample { public static void main(String... args) throws Exception { // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Project ID"; + String projectId = "your-project-id"; // This is the subscription you want to create with a dead letter policy. - String subscriptionId = "Your Subscription ID"; + String subscriptionId = "your-subscription-id"; // This is an existing topic that you want to attach the subscription with dead letter policy // to. - String topicId = "Your Topic ID"; + String topicId = "your-topic-id"; // This is an existing topic that the subscription with dead letter policy forwards dead letter // messages to. - String deadLetterTopicId = "Your Dead Letter Topic ID"; + String deadLetterTopicId = "your-dead-letter-topic-id"; CreateSubscriptionWithDeadLetterPolicyExample.createSubscriptionWithDeadLetterPolicyExample( projectId, subscriptionId, topicId, deadLetterTopicId); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java new file mode 100644 index 000000000000..e970607bf9fd --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java @@ -0,0 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publisher_batch_settings] + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.batching.BatchingSettings; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import org.threeten.bp.Duration; + +public class PublishWithBatchSettingsExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + publishWithBatchSettingsExample(projectId, topicId); + } + + public static void publishWithBatchSettingsExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + TopicName topicName = TopicName.of(projectId, topicId); + Publisher publisher = null; + List> messageIdFutures = new ArrayList<>(); + + try { + // Batch settings control how the publisher batches messages + long requestBytesThreshold = 5000L; // default : 1 byte + long messageCountBatchSize = 100L; // default : 1 message + + Duration publishDelayThreshold = Duration.ofMillis(100); // default : 1 ms + + // Publish request get triggered based on request size, messages count & time since last + // publish + BatchingSettings batchingSettings = + BatchingSettings.newBuilder() + .setElementCountThreshold(messageCountBatchSize) + .setRequestByteThreshold(requestBytesThreshold) + .setDelayThreshold(publishDelayThreshold) + .build(); + + // Create a publisher instance with default settings bound to the topic + publisher = Publisher.newBuilder(topicName).setBatchingSettings(batchingSettings).build(); + + // schedule publishing one message at a time : messages get automatically batched + for (int i = 0; i < 100; i++) { + String message = "message " + i; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + messageIdFutures.add(messageIdFuture); + } + } finally { + // Wait on any pending publish requests. + List messageIds = ApiFutures.allAsList(messageIdFutures).get(); + + System.out.println("Published " + messageIds.size() + " messages with batch settings."); + + if (publisher != null) { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} +// [END pubsub_publisher_batch_settings] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java new file mode 100644 index 000000000000..35b72415a3f1 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publisher_concurrency_control] + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.ExecutorProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; + +public class PublishWithConcurrencyControlExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + publishWithConcurrencyControlExample(projectId, topicId); + } + + public static void publishWithConcurrencyControlExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + TopicName topicName = TopicName.of(projectId, topicId); + Publisher publisher = null; + List> messageIdFutures = new ArrayList<>(); + + try { + // Provides an executor service for processing messages. The default + // `executorProvider` used by the publisher has a default thread count of + // 5 * the number of processors available to the Java virtual machine. + ExecutorProvider executorProvider = + InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(4).build(); + + // `setExecutorProvider` configures an executor for the publisher. + publisher = Publisher.newBuilder(topicName).setExecutorProvider(executorProvider).build(); + + // schedule publishing one message at a time : messages get automatically batched + for (int i = 0; i < 100; i++) { + String message = "message " + i; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + messageIdFutures.add(messageIdFuture); + } + } finally { + // Wait on any pending publish requests. + List messageIds = ApiFutures.allAsList(messageIdFutures).get(); + + System.out.println("Published " + messageIds.size() + " messages with concurrency control."); + + if (publisher != null) { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} + +// [END pubsub_publisher_concurrency_control] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java new file mode 100644 index 000000000000..990b9a03dac9 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java @@ -0,0 +1,71 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publish_custom_attributes] + +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.common.collect.ImmutableMap; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; + +public class PublishWithCustomAttributesExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + publishWithCustomAttributesExample(projectId, topicId); + } + + public static void publishWithCustomAttributesExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + TopicName topicName = TopicName.of(projectId, topicId); + Publisher publisher = null; + + try { + // Create a publisher instance with default settings bound to the topic + publisher = Publisher.newBuilder(topicName).build(); + + String message = "first message"; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = + PubsubMessage.newBuilder() + .setData(data) + .putAllAttributes(ImmutableMap.of("year", "2020", "author", "unknown")) + .build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + String messageId = messageIdFuture.get(); + System.out.println("Published a message with custom attributes: " + messageId); + + } finally { + if (publisher != null) { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} +// [END pubsub_publish_custom_attributes] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java new file mode 100644 index 000000000000..88e42d61efa4 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java @@ -0,0 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publish_with_error_handler] + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.TimeUnit; + +public class PublishWithErrorHandlerExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + publishWithErrorHandlerExample(projectId, topicId); + } + + public static void publishWithErrorHandlerExample(String projectId, String topicId) + throws IOException, InterruptedException { + TopicName topicName = TopicName.of(projectId, topicId); + Publisher publisher = null; + + try { + // Create a publisher instance with default settings bound to the topic + publisher = Publisher.newBuilder(topicName).build(); + + List messages = Arrays.asList("first message", "second message"); + + for (final String message : messages) { + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture future = publisher.publish(pubsubMessage); + + // Add an asynchronous callback to handle success / failure + ApiFutures.addCallback( + future, + new ApiFutureCallback() { + + @Override + public void onFailure(Throwable throwable) { + if (throwable instanceof ApiException) { + ApiException apiException = ((ApiException) throwable); + // details on the API exception + System.out.println(apiException.getStatusCode().getCode()); + System.out.println(apiException.isRetryable()); + } + System.out.println("Error publishing message : " + message); + } + + @Override + public void onSuccess(String messageId) { + // Once published, returns server-assigned message ids (unique within the topic) + System.out.println("Published message ID: " + messageId); + } + }, + MoreExecutors.directExecutor()); + } + } finally { + if (publisher != null) { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} +// [END pubsub_publish_with_error_handler] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java new file mode 100644 index 000000000000..909702dece97 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publisher_retry_settings] + +import com.google.api.core.ApiFuture; +import com.google.api.gax.retrying.RetrySettings; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import org.threeten.bp.Duration; + +public class PublishWithRetrySettingsExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + publishWithRetrySettingsExample(projectId, topicId); + } + + public static void publishWithRetrySettingsExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + TopicName topicName = TopicName.of(projectId, topicId); + Publisher publisher = null; + + try { + // Retry settings control how the publisher handles retry-able failures + Duration initialRetryDelay = Duration.ofMillis(100); // default: 100 ms + double retryDelayMultiplier = 2.0; // back off for repeated failures, default: 1.3 + Duration maxRetryDelay = Duration.ofSeconds(60); // default : 60 seconds + Duration initialRpcTimeout = Duration.ofSeconds(1); // default: 5 seconds + double rpcTimeoutMultiplier = 1.0; // default: 1.0 + Duration maxRpcTimeout = Duration.ofSeconds(600); // default: 600 seconds + Duration totalTimeout = Duration.ofSeconds(600); // default: 600 seconds + + RetrySettings retrySettings = + RetrySettings.newBuilder() + .setInitialRetryDelay(initialRetryDelay) + .setRetryDelayMultiplier(retryDelayMultiplier) + .setMaxRetryDelay(maxRetryDelay) + .setInitialRpcTimeout(initialRpcTimeout) + .setRpcTimeoutMultiplier(rpcTimeoutMultiplier) + .setMaxRpcTimeout(maxRpcTimeout) + .setTotalTimeout(totalTimeout) + .build(); + + // Create a publisher instance with default settings bound to the topic + publisher = Publisher.newBuilder(topicName).setRetrySettings(retrySettings).build(); + + String message = "first message"; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + String messageId = messageIdFuture.get(); + System.out.println("Published a message with retry settings: " + messageId); + + } finally { + if (publisher != null) { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} +// [END pubsub_publisher_retry_settings] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java index 8612e45dc72a..b63ca1dd7cab 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java @@ -30,9 +30,9 @@ public class ReceiveMessagesWithDeliveryAttemptsExample { public static void main(String... args) throws Exception { // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Project ID"; + String projectId = "your-project-id"; // This is an existing subscription with a dead letter policy. - String subscriptionId = "Your Subscription ID"; + String subscriptionId = "your-subscription-id"; ReceiveMessagesWithDeliveryAttemptsExample.receiveMessagesWithDeliveryAttemptsExample( projectId, subscriptionId); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java index 51d23594a3c3..842657b08a58 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java @@ -29,11 +29,11 @@ public class RemoveDeadLetterPolicyExample { public static void main(String... args) throws Exception { // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Project ID"; + String projectId = "your-project-id"; // This is an existing subscription with dead letter policy. - String subscriptionId = "Your Subscription ID"; + String subscriptionId = "your-subscription-id"; // This is an existing topic that the subscription with dead letter policy is attached to. - String topicId = "Your Topic ID"; + String topicId = "your-topic-id"; RemoveDeadLetterPolicyExample.removeDeadLetterPolicyExample(projectId, subscriptionId, topicId); } diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java index ff4270ea6013..c8d7babee57a 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java @@ -30,14 +30,14 @@ public class UpdateDeadLetterPolicyExample { public static void main(String... args) throws Exception { // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Project ID"; + String projectId = "your-project-id"; // This is an existing subscription with a dead letter policy. - String subscriptionId = "Your Subscription ID"; + String subscriptionId = "your-subscription-id"; // This is an existing topic that the subscription with dead letter policy is attached to. - String topicId = "Your Topic ID"; + String topicId = "your-topic-id"; // This is an existing dead letter topic that the subscription with dead letter policy forwards // dead letter messages to. - String deadLetterTopicId = "Your Dead Letter Topic ID"; + String deadLetterTopicId = "your-dead-letter-topic-id"; UpdateDeadLetterPolicyExample.updateDeadLetterPolicyExample( projectId, subscriptionId, topicId, deadLetterTopicId); diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java new file mode 100644 index 000000000000..79fd34c90fca --- /dev/null +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java @@ -0,0 +1,88 @@ +package pubsub; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.Timeout; + +public class PublisherIT { + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String _suffix = UUID.randomUUID().toString(); + private static final String topicId = "publisher-test-topic-" + _suffix; + private static final TopicName topicName = TopicName.of(projectId, topicId); + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + } + + @Rule public Timeout globalTimeout = Timeout.seconds(300); // 5 minute timeout + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws Exception { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + Topic topic = Topic.newBuilder().setName(topicName.toString()).build(); + topicAdminClient.createTopic(topic); + } + } + + @After + public void tearDown() throws Exception { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + topicAdminClient.deleteTopic(topicName.toString()); + } + + System.setOut(null); + } + + @Test + public void testPublisher() throws Exception { + // Test publish with error handling + PublishWithErrorHandlerExample.publishWithErrorHandlerExample(projectId, topicId); + assertThat(bout.toString()).contains("Published message ID: "); + + bout.reset(); + // Test publish with custom attributes. + PublishWithCustomAttributesExample.publishWithCustomAttributesExample(projectId, topicId); + assertThat(bout.toString()).contains("Published a message with custom attributes: "); + + bout.reset(); + // Test publish with batch settings. + PublishWithBatchSettingsExample.publishWithBatchSettingsExample(projectId, topicId); + assertThat(bout.toString()).contains("Published 100 messages with batch settings."); + + bout.reset(); + // Test publish with concurrency control. + PublishWithConcurrencyControlExample.publishWithConcurrencyControlExample(projectId, topicId); + assertThat(bout.toString()).contains("Published 100 messages with concurrency control."); + + bout.reset(); + // Test publish with Retry settings. + PublishWithRetrySettingsExample.publishWithRetrySettingsExample(projectId, topicId); + assertThat(bout.toString()).contains("Published a message with retry settings: "); + } +} From 92aa0ebc40671d27ef80ceb69cff2c5d497feef7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 5 Jun 2020 12:20:12 -0700 Subject: [PATCH 0382/2363] chore(java_templates): add default CODEOWNERS files for samples reviews (#229) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/129bf4ce-2255-4b88-83a1-1b40d560e3d3/targets Source-Link: https://github.com/googleapis/synthtool/commit/8b65daa222d193b689279162781baf0aa1f0ffd2 --- java-pubsub/.github/CODEOWNERS | 8 ++++++++ java-pubsub/README.md | 2 +- java-pubsub/synth.metadata | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 java-pubsub/.github/CODEOWNERS diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS new file mode 100644 index 000000000000..6137bef2a259 --- /dev/null +++ b/java-pubsub/.github/CODEOWNERS @@ -0,0 +1,8 @@ +# Code owners file. +# This file controls who is tagged for review for any given pull request. + +# For syntax help see: +# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax + +# The java-samples-reviewers team is the default owner for samples changes +samples/**/*.java @googleapis/java-samples-reviewers diff --git a/java-pubsub/README.md b/java-pubsub/README.md index cf44cb0f7f73..53e551aa38d3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 5.4.0 + 5.5.0 pom import diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 67e6c7384dc1..3707cd7d4dbe 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "63a0e7a423ca0e9de9e446f0686aec6e6368f67c" + "sha": "ed222384f58d1b3b61d9844bfefe55d71961fbc4" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "388f7aafee3d7a067c23db6c13b7e83fb361c64a" + "sha": "8b65daa222d193b689279162781baf0aa1f0ffd2" } } ], From 6267a9ee3074849e26f8f19c8a178a3caaa83f57 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 5 Jun 2020 12:34:02 -0700 Subject: [PATCH 0383/2363] changes without context (#228) autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. Co-authored-by: Tianzi Cai From 14d887f7e857d0fc0d7cfda6e7d0852c43727d43 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 5 Jun 2020 13:18:17 -0700 Subject: [PATCH 0384/2363] feat: add detach subscription rpc (#216) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * Add DetachSubscription RPC PiperOrigin-RevId: 313276022 Source-Author: Google APIs Source-Date: Tue May 26 15:11:32 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: f5f268f5293e60143ac742a4eeb7dd6306ebf505 Source-Link: https://github.com/googleapis/googleapis/commit/f5f268f5293e60143ac742a4eeb7dd6306ebf505 --- .../cloud/pubsub/v1/TopicAdminClient.java | 62 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 14 + .../pubsub/v1/stub/GrpcPublisherStub.java | 38 + .../cloud/pubsub/v1/stub/PublisherStub.java | 7 + .../pubsub/v1/stub/PublisherStubSettings.java | 35 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 18 + .../cloud/pubsub/v1/TopicAdminClientTest.java | 44 ++ .../com/google/pubsub/v1/PublisherGrpc.java | 138 +++- .../pubsub/v1/DetachSubscriptionRequest.java | 653 ++++++++++++++++++ .../DetachSubscriptionRequestOrBuilder.java | 56 ++ .../pubsub/v1/DetachSubscriptionResponse.java | 457 ++++++++++++ .../DetachSubscriptionResponseOrBuilder.java | 24 + .../v1/ListTopicSubscriptionsResponse.java | 26 +- ...stTopicSubscriptionsResponseOrBuilder.java | 8 +- .../com/google/pubsub/v1/PubsubProto.java | 499 ++++++------- .../main/proto/google/pubsub/v1/pubsub.proto | 29 +- java-pubsub/synth.metadata | 6 +- 17 files changed, 1846 insertions(+), 268 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 548523021efd..04c4bc2318be 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -37,6 +37,8 @@ import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.ListTopicSnapshotsRequest; import com.google.pubsub.v1.ListTopicSnapshotsResponse; @@ -724,7 +726,7 @@ public final UnaryCallable listTopicsCall // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the names of the subscriptions on this topic. + * Lists the names of the attached subscriptions on this topic. * *

    Sample code: * @@ -751,7 +753,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(TopicNam // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the names of the subscriptions on this topic. + * Lists the names of the attached subscriptions on this topic. * *

    Sample code: * @@ -804,7 +806,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectT // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the names of the subscriptions on this topic. + * Lists the names of the attached subscriptions on this topic. * *

    Sample code: * @@ -830,7 +832,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the names of the subscriptions on this topic. + * Lists the names of the attached subscriptions on this topic. * *

    Sample code: * @@ -855,7 +857,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the names of the subscriptions on this topic. + * Lists the names of the attached subscriptions on this topic. * *

    Sample code: * @@ -1416,6 +1418,56 @@ public final TestIamPermissionsResponse testIamPermissions( return stub.testIamPermissionsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Detaches a subscription from this topic. All messages retained in the subscription are dropped. + * Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the + * subscription is a push subscription, pushes to the endpoint will stop. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName subscription = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   DetachSubscriptionRequest request = DetachSubscriptionRequest.newBuilder()
    +   *     .setSubscription(subscription.toString())
    +   *     .build();
    +   *   DetachSubscriptionResponse response = topicAdminClient.detachSubscription(request);
    +   * }
    +   * 
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionRequest request) { + return detachSubscriptionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Detaches a subscription from this topic. All messages retained in the subscription are dropped. + * Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the + * subscription is a push subscription, pushes to the endpoint will stop. + * + *

    Sample code: + * + *

    
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   TopicName subscription = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   DetachSubscriptionRequest request = DetachSubscriptionRequest.newBuilder()
    +   *     .setSubscription(subscription.toString())
    +   *     .build();
    +   *   ApiFuture<DetachSubscriptionResponse> future = topicAdminClient.detachSubscriptionCallable().futureCall(request);
    +   *   // Do something
    +   *   DetachSubscriptionResponse response = future.get();
    +   * }
    +   * 
    + */ + public final UnaryCallable + detachSubscriptionCallable() { + return stub.detachSubscriptionCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 59119e19b8ac..7c79aabc7ba4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -39,6 +39,8 @@ import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.ListTopicSnapshotsRequest; import com.google.pubsub.v1.ListTopicSnapshotsResponse; @@ -150,6 +152,12 @@ public UnaryCallSettings getIamPolicySettings() { return ((PublisherStubSettings) getStubSettings()).testIamPermissionsSettings(); } + /** Returns the object with the settings used for calls to detachSubscription. */ + public UnaryCallSettings + detachSubscriptionSettings() { + return ((PublisherStubSettings) getStubSettings()).detachSubscriptionSettings(); + } + public static final TopicAdminSettings create(PublisherStubSettings stub) throws IOException { return new TopicAdminSettings.Builder(stub.toBuilder()).build(); } @@ -310,6 +318,12 @@ public UnaryCallSettings.Builder getIamPolicySettin return getStubSettingsBuilder().testIamPermissionsSettings(); } + /** Returns the builder for the settings used for calls to detachSubscription. */ + public UnaryCallSettings.Builder + detachSubscriptionSettings() { + return getStubSettingsBuilder().detachSubscriptionSettings(); + } + @Override public TopicAdminSettings build() throws IOException { return new TopicAdminSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 02baa7378593..52cdf25dc0bb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -35,6 +35,8 @@ import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.ListTopicSnapshotsRequest; import com.google.pubsub.v1.ListTopicSnapshotsResponse; @@ -152,6 +154,16 @@ public class GrpcPublisherStub extends PublisherStub { .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + detachSubscriptionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Publisher/DetachSubscription") + .setRequestMarshaller( + ProtoUtils.marshaller(DetachSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DetachSubscriptionResponse.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; @@ -174,6 +186,8 @@ public class GrpcPublisherStub extends PublisherStub { private final UnaryCallable getIamPolicyCallable; private final UnaryCallable testIamPermissionsCallable; + private final UnaryCallable + detachSubscriptionCallable; private final GrpcStubCallableFactory callableFactory; @@ -360,6 +374,20 @@ public Map extract(TestIamPermissionsRequest request) { } }) .build(); + GrpcCallSettings + detachSubscriptionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(detachSubscriptionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DetachSubscriptionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); + } + }) + .build(); this.createTopicCallable = callableFactory.createUnaryCallable( @@ -413,6 +441,11 @@ public Map extract(TestIamPermissionsRequest request) { testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); + this.detachSubscriptionCallable = + callableFactory.createUnaryCallable( + detachSubscriptionTransportSettings, + settings.detachSubscriptionSettings(), + clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -478,6 +511,11 @@ public UnaryCallable getIamPolicyCallable() { return testIamPermissionsCallable; } + public UnaryCallable + detachSubscriptionCallable() { + return detachSubscriptionCallable; + } + @Override public final void close() { shutdown(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 6ff2d02f8f46..93cdf2f03743 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -29,6 +29,8 @@ import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.ListTopicSnapshotsRequest; import com.google.pubsub.v1.ListTopicSnapshotsResponse; @@ -114,6 +116,11 @@ public UnaryCallable getIamPolicyCallable() { throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); } + public UnaryCallable + detachSubscriptionCallable() { + throw new UnsupportedOperationException("Not implemented: detachSubscriptionCallable()"); + } + @Override public abstract void close(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index ee84a4ab3173..457731c611f5 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -60,6 +60,8 @@ import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.ListTopicSnapshotsRequest; import com.google.pubsub.v1.ListTopicSnapshotsResponse; @@ -137,6 +139,8 @@ public class PublisherStubSettings extends StubSettings { private final UnaryCallSettings getIamPolicySettings; private final UnaryCallSettings testIamPermissionsSettings; + private final UnaryCallSettings + detachSubscriptionSettings; /** Returns the object with the settings used for calls to createTopic. */ public UnaryCallSettings createTopicSettings() { @@ -201,6 +205,12 @@ public UnaryCallSettings getIamPolicySettings() { return testIamPermissionsSettings; } + /** Returns the object with the settings used for calls to detachSubscription. */ + public UnaryCallSettings + detachSubscriptionSettings() { + return detachSubscriptionSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public PublisherStub createStub() throws IOException { if (getTransportChannelProvider() @@ -280,6 +290,7 @@ protected PublisherStubSettings(Builder settingsBuilder) throws IOException { setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + detachSubscriptionSettings = settingsBuilder.detachSubscriptionSettings().build(); } private static final PagedListDescriptor @@ -551,6 +562,8 @@ public static class Builder extends StubSettings.Builder getIamPolicySettings; private final UnaryCallSettings.Builder testIamPermissionsSettings; + private final UnaryCallSettings.Builder + detachSubscriptionSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -563,6 +576,8 @@ public static class Builder extends StubSettings.BuildernewArrayList( StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); + definitions.put( + "non_idempotent2", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( "non_idempotent", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); @@ -648,6 +663,8 @@ protected Builder(ClientContext clientContext) { testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + detachSubscriptionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = ImmutableList.>of( createTopicSettings, @@ -660,7 +677,8 @@ protected Builder(ClientContext clientContext) { deleteTopicSettings, setIamPolicySettings, getIamPolicySettings, - testIamPermissionsSettings); + testIamPermissionsSettings, + detachSubscriptionSettings); initDefaults(this); } @@ -743,6 +761,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .detachSubscriptionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent2")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + return builder; } @@ -760,6 +783,7 @@ protected Builder(PublisherStubSettings settings) { setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + detachSubscriptionSettings = settings.detachSubscriptionSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -773,7 +797,8 @@ protected Builder(PublisherStubSettings settings) { deleteTopicSettings, setIamPolicySettings, getIamPolicySettings, - testIamPermissionsSettings); + testIamPermissionsSettings, + detachSubscriptionSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -855,6 +880,12 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the builder for the settings used for calls to detachSubscription. */ + public UnaryCallSettings.Builder + detachSubscriptionSettings() { + return detachSubscriptionSettings; + } + @Override public PublisherStubSettings build() throws IOException { return new PublisherStubSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 0d49c4288570..420a757ad53e 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -19,6 +19,8 @@ import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.ListTopicSnapshotsRequest; import com.google.pubsub.v1.ListTopicSnapshotsResponse; @@ -185,4 +187,20 @@ public void deleteTopic(DeleteTopicRequest request, StreamObserver respon responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void detachSubscription( + DetachSubscriptionRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof DetachSubscriptionResponse) { + requests.add(request); + responseObserver.onNext((DetachSubscriptionResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 43510c154011..3bc0c77a3321 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -38,6 +38,8 @@ import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.GetTopicRequest; import com.google.pubsub.v1.ListTopicSnapshotsRequest; import com.google.pubsub.v1.ListTopicSnapshotsResponse; @@ -622,4 +624,46 @@ public void testIamPermissionsExceptionTest() throws Exception { // Expected exception } } + + @Test + @SuppressWarnings("all") + public void detachSubscriptionTest() { + DetachSubscriptionResponse expectedResponse = DetachSubscriptionResponse.newBuilder().build(); + mockPublisher.addResponse(expectedResponse); + + TopicName subscription = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + DetachSubscriptionRequest request = + DetachSubscriptionRequest.newBuilder().setSubscription(subscription.toString()).build(); + + DetachSubscriptionResponse actualResponse = client.detachSubscription(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DetachSubscriptionRequest actualRequest = (DetachSubscriptionRequest) actualRequests.get(0); + + Assert.assertEquals(subscription, TopicName.parse(actualRequest.getSubscription())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void detachSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + TopicName subscription = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + DetachSubscriptionRequest request = + DetachSubscriptionRequest.newBuilder().setSubscription(subscription.toString()).build(); + + client.detachSubscription(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } } diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index a4df9a4bf376..8ddccd07fd14 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -369,6 +369,51 @@ private PublisherGrpc() {} return getDeleteTopicMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.DetachSubscriptionRequest, + com.google.pubsub.v1.DetachSubscriptionResponse> + getDetachSubscriptionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DetachSubscription", + requestType = com.google.pubsub.v1.DetachSubscriptionRequest.class, + responseType = com.google.pubsub.v1.DetachSubscriptionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.DetachSubscriptionRequest, + com.google.pubsub.v1.DetachSubscriptionResponse> + getDetachSubscriptionMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.DetachSubscriptionRequest, + com.google.pubsub.v1.DetachSubscriptionResponse> + getDetachSubscriptionMethod; + if ((getDetachSubscriptionMethod = PublisherGrpc.getDetachSubscriptionMethod) == null) { + synchronized (PublisherGrpc.class) { + if ((getDetachSubscriptionMethod = PublisherGrpc.getDetachSubscriptionMethod) == null) { + PublisherGrpc.getDetachSubscriptionMethod = + getDetachSubscriptionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachSubscription")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.DetachSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance())) + .setSchemaDescriptor( + new PublisherMethodDescriptorSupplier("DetachSubscription")) + .build(); + } + } + } + return getDetachSubscriptionMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static PublisherStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -492,7 +537,7 @@ public void listTopics( * * *
    -     * Lists the names of the subscriptions on this topic.
    +     * Lists the names of the attached subscriptions on this topic.
          * 
    */ public void listTopicSubscriptions( @@ -538,6 +583,23 @@ public void deleteTopic( asyncUnimplementedUnaryCall(getDeleteTopicMethod(), responseObserver); } + /** + * + * + *
    +     * Detaches a subscription from this topic. All messages retained in the
    +     * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
    +     * will return FAILED_PRECONDITION. If the subscription is a push
    +     * subscription, pushes to the endpoint will stop.
    +     * 
    + */ + public void detachSubscription( + com.google.pubsub.v1.DetachSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getDetachSubscriptionMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -590,6 +652,13 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_TOPIC))) + .addMethod( + getDetachSubscriptionMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DetachSubscriptionRequest, + com.google.pubsub.v1.DetachSubscriptionResponse>( + this, METHODID_DETACH_SUBSCRIPTION))) .build(); } } @@ -694,7 +763,7 @@ public void listTopics( * * *
    -     * Lists the names of the subscriptions on this topic.
    +     * Lists the names of the attached subscriptions on this topic.
          * 
    */ public void listTopicSubscriptions( @@ -748,6 +817,26 @@ public void deleteTopic( request, responseObserver); } + + /** + * + * + *
    +     * Detaches a subscription from this topic. All messages retained in the
    +     * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
    +     * will return FAILED_PRECONDITION. If the subscription is a push
    +     * subscription, pushes to the endpoint will stop.
    +     * 
    + */ + public void detachSubscription( + com.google.pubsub.v1.DetachSubscriptionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -835,7 +924,7 @@ public com.google.pubsub.v1.ListTopicsResponse listTopics( * * *
    -     * Lists the names of the subscriptions on this topic.
    +     * Lists the names of the attached subscriptions on this topic.
          * 
    */ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions( @@ -876,6 +965,22 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) { return blockingUnaryCall(getChannel(), getDeleteTopicMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Detaches a subscription from this topic. All messages retained in the
    +     * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
    +     * will return FAILED_PRECONDITION. If the subscription is a push
    +     * subscription, pushes to the endpoint will stop.
    +     * 
    + */ + public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription( + com.google.pubsub.v1.DetachSubscriptionRequest request) { + return blockingUnaryCall( + getChannel(), getDetachSubscriptionMethod(), getCallOptions(), request); + } } /** @@ -969,7 +1074,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Lists the names of the subscriptions on this topic. + * Lists the names of the attached subscriptions on this topic. *
    */ public com.google.common.util.concurrent.ListenableFuture< @@ -1014,6 +1119,23 @@ public com.google.common.util.concurrent.ListenableFuture + * Detaches a subscription from this topic. All messages retained in the + * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests + * will return FAILED_PRECONDITION. If the subscription is a push + * subscription, pushes to the endpoint will stop. + *
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.DetachSubscriptionResponse> + detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request) { + return futureUnaryCall( + getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_TOPIC = 0; @@ -1024,6 +1146,7 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1085,6 +1208,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.pubsub.v1.DeleteTopicRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DETACH_SUBSCRIPTION: + serviceImpl.detachSubscription( + (com.google.pubsub.v1.DetachSubscriptionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -1157,6 +1286,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListTopicSubscriptionsMethod()) .addMethod(getListTopicSnapshotsMethod()) .addMethod(getDeleteTopicMethod()) + .addMethod(getDetachSubscriptionMethod()) .build(); } } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java new file mode 100644 index 000000000000..7e069d6cc635 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -0,0 +1,653 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Request for the DetachSubscription method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.DetachSubscriptionRequest} + */ +public final class DetachSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionRequest) + DetachSubscriptionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DetachSubscriptionRequest.newBuilder() to construct. + private DetachSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DetachSubscriptionRequest() { + subscription_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DetachSubscriptionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DetachSubscriptionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + subscription_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DetachSubscriptionRequest.class, + com.google.pubsub.v1.DetachSubscriptionRequest.Builder.class); + } + + public static final int SUBSCRIPTION_FIELD_NUMBER = 1; + private volatile java.lang.Object subscription_; + /** + * + * + *
    +   * Required. The subscription to detach.
    +   * Format is `projects/{project}/subscriptions/{subscription}`.
    +   * 
    + * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The subscription. + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The subscription to detach.
    +   * Format is `projects/{project}/subscriptions/{subscription}`.
    +   * 
    + * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for subscription. + */ + public com.google.protobuf.ByteString getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSubscriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubscriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.DetachSubscriptionRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.DetachSubscriptionRequest other = + (com.google.pubsub.v1.DetachSubscriptionRequest) obj; + + if (!getSubscription().equals(other.getSubscription())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.DetachSubscriptionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for the DetachSubscription method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.DetachSubscriptionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DetachSubscriptionRequest) + com.google.pubsub.v1.DetachSubscriptionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DetachSubscriptionRequest.class, + com.google.pubsub.v1.DetachSubscriptionRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.DetachSubscriptionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + subscription_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.DetachSubscriptionRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.DetachSubscriptionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.DetachSubscriptionRequest build() { + com.google.pubsub.v1.DetachSubscriptionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.DetachSubscriptionRequest buildPartial() { + com.google.pubsub.v1.DetachSubscriptionRequest result = + new com.google.pubsub.v1.DetachSubscriptionRequest(this); + result.subscription_ = subscription_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.DetachSubscriptionRequest) { + return mergeFrom((com.google.pubsub.v1.DetachSubscriptionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.DetachSubscriptionRequest other) { + if (other == com.google.pubsub.v1.DetachSubscriptionRequest.getDefaultInstance()) return this; + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.DetachSubscriptionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.DetachSubscriptionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object subscription_ = ""; + /** + * + * + *
    +     * Required. The subscription to detach.
    +     * Format is `projects/{project}/subscriptions/{subscription}`.
    +     * 
    + * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The subscription. + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The subscription to detach.
    +     * Format is `projects/{project}/subscriptions/{subscription}`.
    +     * 
    + * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for subscription. + */ + public com.google.protobuf.ByteString getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The subscription to detach.
    +     * Format is `projects/{project}/subscriptions/{subscription}`.
    +     * 
    + * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The subscription to set. + * @return This builder for chaining. + */ + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subscription_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The subscription to detach.
    +     * Format is `projects/{project}/subscriptions/{subscription}`.
    +     * 
    + * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSubscription() { + + subscription_ = getDefaultInstance().getSubscription(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The subscription to detach.
    +     * Format is `projects/{project}/subscriptions/{subscription}`.
    +     * 
    + * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subscription_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DetachSubscriptionRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.DetachSubscriptionRequest) + private static final com.google.pubsub.v1.DetachSubscriptionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.DetachSubscriptionRequest(); + } + + public static com.google.pubsub.v1.DetachSubscriptionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetachSubscriptionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetachSubscriptionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.DetachSubscriptionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java new file mode 100644 index 000000000000..27cd842bc897 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface DetachSubscriptionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The subscription to detach.
    +   * Format is `projects/{project}/subscriptions/{subscription}`.
    +   * 
    + * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The subscription. + */ + java.lang.String getSubscription(); + /** + * + * + *
    +   * Required. The subscription to detach.
    +   * Format is `projects/{project}/subscriptions/{subscription}`.
    +   * 
    + * + * + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for subscription. + */ + com.google.protobuf.ByteString getSubscriptionBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java new file mode 100644 index 000000000000..a473832a211b --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -0,0 +1,457 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Response for the DetachSubscription method.
    + * Reserved for future use.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.DetachSubscriptionResponse} + */ +public final class DetachSubscriptionResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionResponse) + DetachSubscriptionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DetachSubscriptionResponse.newBuilder() to construct. + private DetachSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DetachSubscriptionResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DetachSubscriptionResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DetachSubscriptionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DetachSubscriptionResponse.class, + com.google.pubsub.v1.DetachSubscriptionResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.DetachSubscriptionResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.DetachSubscriptionResponse other = + (com.google.pubsub.v1.DetachSubscriptionResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.DetachSubscriptionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for the DetachSubscription method.
    +   * Reserved for future use.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.DetachSubscriptionResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DetachSubscriptionResponse) + com.google.pubsub.v1.DetachSubscriptionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DetachSubscriptionResponse.class, + com.google.pubsub.v1.DetachSubscriptionResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.DetachSubscriptionResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.DetachSubscriptionResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.DetachSubscriptionResponse build() { + com.google.pubsub.v1.DetachSubscriptionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.DetachSubscriptionResponse buildPartial() { + com.google.pubsub.v1.DetachSubscriptionResponse result = + new com.google.pubsub.v1.DetachSubscriptionResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.DetachSubscriptionResponse) { + return mergeFrom((com.google.pubsub.v1.DetachSubscriptionResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.DetachSubscriptionResponse other) { + if (other == com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.DetachSubscriptionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.DetachSubscriptionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DetachSubscriptionResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.DetachSubscriptionResponse) + private static final com.google.pubsub.v1.DetachSubscriptionResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.DetachSubscriptionResponse(); + } + + public static com.google.pubsub.v1.DetachSubscriptionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DetachSubscriptionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DetachSubscriptionResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.DetachSubscriptionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java new file mode 100644 index 000000000000..ce75ecb805ad --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface DetachSubscriptionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 96601b5fd563..fbf2b4f2364e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -133,7 +133,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The names of the subscriptions that match the request.
    +   * The names of subscriptions attached to the topic specified in the request.
        * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -147,7 +147,7 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { * * *
    -   * The names of the subscriptions that match the request.
    +   * The names of subscriptions attached to the topic specified in the request.
        * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -161,7 +161,7 @@ public int getSubscriptionsCount() { * * *
    -   * The names of the subscriptions that match the request.
    +   * The names of subscriptions attached to the topic specified in the request.
        * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -176,7 +176,7 @@ public java.lang.String getSubscriptions(int index) { * * *
    -   * The names of the subscriptions that match the request.
    +   * The names of subscriptions attached to the topic specified in the request.
        * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -606,7 +606,7 @@ private void ensureSubscriptionsIsMutable() { * * *
    -     * The names of the subscriptions that match the request.
    +     * The names of subscriptions attached to the topic specified in the request.
          * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -620,7 +620,7 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { * * *
    -     * The names of the subscriptions that match the request.
    +     * The names of subscriptions attached to the topic specified in the request.
          * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -634,7 +634,7 @@ public int getSubscriptionsCount() { * * *
    -     * The names of the subscriptions that match the request.
    +     * The names of subscriptions attached to the topic specified in the request.
          * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -649,7 +649,7 @@ public java.lang.String getSubscriptions(int index) { * * *
    -     * The names of the subscriptions that match the request.
    +     * The names of subscriptions attached to the topic specified in the request.
          * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -664,7 +664,7 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { * * *
    -     * The names of the subscriptions that match the request.
    +     * The names of subscriptions attached to the topic specified in the request.
          * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -686,7 +686,7 @@ public Builder setSubscriptions(int index, java.lang.String value) { * * *
    -     * The names of the subscriptions that match the request.
    +     * The names of subscriptions attached to the topic specified in the request.
          * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -707,7 +707,7 @@ public Builder addSubscriptions(java.lang.String value) { * * *
    -     * The names of the subscriptions that match the request.
    +     * The names of subscriptions attached to the topic specified in the request.
          * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -725,7 +725,7 @@ public Builder addAllSubscriptions(java.lang.Iterable values) * * *
    -     * The names of the subscriptions that match the request.
    +     * The names of subscriptions attached to the topic specified in the request.
          * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -742,7 +742,7 @@ public Builder clearSubscriptions() { * * *
    -     * The names of the subscriptions that match the request.
    +     * The names of subscriptions attached to the topic specified in the request.
          * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 265a9dd3afd1..dffc961dbfaf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -27,7 +27,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
    -   * The names of the subscriptions that match the request.
    +   * The names of subscriptions attached to the topic specified in the request.
        * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -39,7 +39,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
    -   * The names of the subscriptions that match the request.
    +   * The names of subscriptions attached to the topic specified in the request.
        * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -51,7 +51,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
    -   * The names of the subscriptions that match the request.
    +   * The names of subscriptions attached to the topic specified in the request.
        * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } @@ -64,7 +64,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
    -   * The names of the subscriptions that match the request.
    +   * The names of subscriptions attached to the topic specified in the request.
        * 
    * * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 419f8a825819..3ac4f6571436 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -91,6 +91,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Subscription_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -277,216 +285,223 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oken\030\003 \001(\t\"H\n\032ListTopicSnapshotsResponse" + "\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token\030\002" + " \001(\t\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001 \001(" - + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"\256" - + "\005\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005to" - + "pic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" - + "/Topic\0221\n\013push_config\030\004 \001(\0132\034.google.pub" - + "sub.v1.PushConfig\022\034\n\024ack_deadline_second" - + "s\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(\010\022=" - + "\n\032message_retention_duration\030\010 \001(\0132\031.goo" - + "gle.protobuf.Duration\022:\n\006labels\030\t \003(\0132*." - + "google.pubsub.v1.Subscription.LabelsEntr" - + "y\022\037\n\027enable_message_ordering\030\n \001(\010\022=\n\021ex" - + "piration_policy\030\013 \001(\0132\".google.pubsub.v1" - + ".ExpirationPolicy\022\016\n\006filter\030\014 \001(\t\022>\n\022dea" - + "d_letter_policy\030\r \001(\0132\".google.pubsub.v1" - + ".DeadLetterPolicy\0223\n\014retry_policy\030\016 \001(\0132" - + "\035.google.pubsub.v1.RetryPolicy\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352" - + "AU\n\"pubsub.googleapis.com/Subscription\022/" - + "projects/{project}/subscriptions/{subscr" - + "iption}\"u\n\013RetryPolicy\0222\n\017minimum_backof" - + "f\030\001 \001(\0132\031.google.protobuf.Duration\0222\n\017ma" - + "ximum_backoff\030\002 \001(\0132\031.google.protobuf.Du" - + "ration\"L\n\020DeadLetterPolicy\022\031\n\021dead_lette" - + "r_topic\030\001 \001(\t\022\035\n\025max_delivery_attempts\030\002" - + " \001(\005\":\n\020ExpirationPolicy\022&\n\003ttl\030\001 \001(\0132\031." - + "google.protobuf.Duration\"\255\002\n\nPushConfig\022" - + "\025\n\rpush_endpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003" - + "(\0132,.google.pubsub.v1.PushConfig.Attribu" - + "tesEntry\022<\n\noidc_token\030\003 \001(\0132&.google.pu" - + "bsub.v1.PushConfig.OidcTokenH\000\032<\n\tOidcTo" - + "ken\022\035\n\025service_account_email\030\001 \001(\t\022\020\n\010au" - + "dience\030\002 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authenticatio" - + "n_method\"m\n\017ReceivedMessage\022\016\n\006ack_id\030\001 " - + "\001(\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1." - + "PubsubMessage\022\030\n\020delivery_attempt\030\003 \001(\005\"" - + "Z\n\026GetSubscriptionRequest\022@\n\014subscriptio" - + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S" - + "ubscription\"\214\001\n\031UpdateSubscriptionReques" - + "t\0229\n\014subscription\030\001 \001(\0132\036.google.pubsub." - + "v1.SubscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\207\001\n\030L" - + "istSubscriptionsRequest\022D\n\007project\030\001 \001(\t" - + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" - + "s.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\"k\n\031ListSubscriptionsRespons" - + "e\0225\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub" - + ".v1.Subscription\022\027\n\017next_page_token\030\002 \001(" - + "\t\"]\n\031DeleteSubscriptionRequest\022@\n\014subscr" - + "iption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis." - + "com/Subscription\"\223\001\n\027ModifyPushConfigReq" - + "uest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubs" - + "ub.googleapis.com/Subscription\0226\n\013push_c" - + "onfig\030\002 \001(\0132\034.google.pubsub.v1.PushConfi" - + "gB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription\030\001" - + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" - + "cription\022!\n\022return_immediately\030\002 \001(\010B\005\030\001" - + "\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"L\n\014PullRe" - + "sponse\022<\n\021received_messages\030\001 \003(\0132!.goog" - + "le.pubsub.v1.ReceivedMessage\"\225\001\n\030ModifyA" - + "ckDeadlineRequest\022@\n\014subscription\030\001 \001(\tB" - + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" - + "ion\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadlin" - + "e_seconds\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeReque" + + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"V" + + "\n\031DetachSubscriptionRequest\0229\n\014subscript" + + "ion\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" + + "/Topic\"\034\n\032DetachSubscriptionResponse\"\256\005\n" + + "\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topi" + + "c\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/T" + + "opic\0221\n\013push_config\030\004 \001(\0132\034.google.pubsu" + + "b.v1.PushConfig\022\034\n\024ack_deadline_seconds\030" + + "\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032" + + "message_retention_duration\030\010 \001(\0132\031.googl" + + "e.protobuf.Duration\022:\n\006labels\030\t \003(\0132*.go" + + "ogle.pubsub.v1.Subscription.LabelsEntry\022" + + "\037\n\027enable_message_ordering\030\n \001(\010\022=\n\021expi" + + "ration_policy\030\013 \001(\0132\".google.pubsub.v1.E" + + "xpirationPolicy\022\016\n\006filter\030\014 \001(\t\022>\n\022dead_" + + "letter_policy\030\r \001(\0132\".google.pubsub.v1.D" + + "eadLetterPolicy\0223\n\014retry_policy\030\016 \001(\0132\035." + + "google.pubsub.v1.RetryPolicy\032-\n\013LabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU" + + "\n\"pubsub.googleapis.com/Subscription\022/pr" + + "ojects/{project}/subscriptions/{subscrip" + + "tion}\"u\n\013RetryPolicy\0222\n\017minimum_backoff\030" + + "\001 \001(\0132\031.google.protobuf.Duration\0222\n\017maxi" + + "mum_backoff\030\002 \001(\0132\031.google.protobuf.Dura" + + "tion\"L\n\020DeadLetterPolicy\022\031\n\021dead_letter_" + + "topic\030\001 \001(\t\022\035\n\025max_delivery_attempts\030\002 \001" + + "(\005\":\n\020ExpirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.go" + + "ogle.protobuf.Duration\"\255\002\n\nPushConfig\022\025\n" + + "\rpush_endpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\013" + + "2,.google.pubsub.v1.PushConfig.Attribute" + + "sEntry\022<\n\noidc_token\030\003 \001(\0132&.google.pubs" + + "ub.v1.PushConfig.OidcTokenH\000\032<\n\tOidcToke" + + "n\022\035\n\025service_account_email\030\001 \001(\t\022\020\n\010audi" + + "ence\030\002 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authentication_" + + "method\"m\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(" + + "\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pu" + + "bsubMessage\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n" + + "\026GetSubscriptionRequest\022@\n\014subscription\030" + + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\"\214\001\n\031UpdateSubscriptionRequest\022" + + "9\n\014subscription\030\001 \001(\0132\036.google.pubsub.v1" + + ".SubscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"\207\001\n\030Lis" + + "tSubscriptionsRequest\022D\n\007project\030\001 \001(\tB3" + + "\340A\002\372A-\n+cloudresourcemanager.googleapis." + + "com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"k\n\031ListSubscriptionsResponse\022" + + "5\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub.v" + + "1.Subscription\022\027\n\017next_page_token\030\002 \001(\t\"" + + "]\n\031DeleteSubscriptionRequest\022@\n\014subscrip" + + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\"\223\001\n\027ModifyPushConfigReque" + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" - + "\002 \003(\tB\003\340A\002\"\350\001\n\024StreamingPullRequest\022@\n\014s" - + "ubscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.google" - + "apis.com/Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037" - + "\n\027modify_deadline_seconds\030\003 \003(\005\022\037\n\027modif" - + "y_deadline_ack_ids\030\004 \003(\t\022(\n\033stream_ack_d" - + "eadline_seconds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030" - + "\006 \001(\t\"U\n\025StreamingPullResponse\022<\n\021receiv" - + "ed_messages\030\001 \003(\0132!.google.pubsub.v1.Rec" - + "eivedMessage\"\203\002\n\025CreateSnapshotRequest\0224" - + "\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis." - + "com/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372" - + "A$\n\"pubsub.googleapis.com/Subscription\022C" - + "\n\006labels\030\003 \003(\01323.google.pubsub.v1.Create" - + "SnapshotRequest.LabelsEntry\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025U" - + "pdateSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032" - + ".google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013updat" - + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" - + "B\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topi" - + "c\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topi" - + "c\022/\n\013expire_time\030\003 \001(\0132\032.google.protobuf" - + ".Timestamp\0226\n\006labels\030\004 \003(\0132&.google.pubs" - + "ub.v1.Snapshot.LabelsEntry\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036" - + "pubsub.googleapis.com/Snapshot\022\'projects" - + "/{project}/snapshots/{snapshot}\"N\n\022GetSn" - + "apshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n" - + "\036pubsub.googleapis.com/Snapshot\"\203\001\n\024List" - + "SnapshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A" - + "-\n+cloudresourcemanager.googleapis.com/P" - + "roject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapsh" - + "ots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n" - + "\017next_page_token\030\002 \001(\t\"Q\n\025DeleteSnapshot" - + "Request\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsu" - + "b.googleapis.com/Snapshot\"\276\001\n\013SeekReques" - + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\022*\n\004time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampH\000\0227\n\010snaps" - + "hot\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/Sn" - + "apshotH\000B\010\n\006target\"\016\n\014SeekResponse2\363\t\n\tP" - + "ublisher\022q\n\013CreateTopic\022\027.google.pubsub." - + "v1.Topic\032\027.google.pubsub.v1.Topic\"0\202\323\344\223\002" - + "#\032\036/v1/{name=projects/*/topics/*}:\001*\332A\004n" - + "ame\022}\n\013UpdateTopic\022$.google.pubsub.v1.Up" - + "dateTopicRequest\032\027.google.pubsub.v1.Topi" - + "c\"/\202\323\344\223\002)2$/v1/{topic.name=projects/*/to" - + "pics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v" - + "1.PublishRequest\032!.google.pubsub.v1.Publ" - + "ishResponse\"C\202\323\344\223\002,\"\'/v1/{topic=projects" - + "/*/topics/*}:publish:\001*\332A\016topic,messages" - + "\022w\n\010GetTopic\022!.google.pubsub.v1.GetTopic" - + "Request\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002!" - + "\022\037/v1/{topic=projects/*/topics/*}\332A\005topi" - + "c\022\212\001\n\nListTopics\022#.google.pubsub.v1.List" - + "TopicsRequest\032$.google.pubsub.v1.ListTop" - + "icsResponse\"1\202\323\344\223\002!\022\037/v1/{project=projec" - + "ts/*}/topics\332A\007project\022\272\001\n\026ListTopicSubs" - + "criptions\022/.google.pubsub.v1.ListTopicSu" - + "bscriptionsRequest\0320.google.pubsub.v1.Li" - + "stTopicSubscriptionsResponse\"=\202\323\344\223\002/\022-/v" - + "1/{topic=projects/*/topics/*}/subscripti" - + "ons\332A\005topic\022\252\001\n\022ListTopicSnapshots\022+.goo" - + "gle.pubsub.v1.ListTopicSnapshotsRequest\032" - + ",.google.pubsub.v1.ListTopicSnapshotsRes" - + "ponse\"9\202\323\344\223\002+\022)/v1/{topic=projects/*/top" - + "ics/*}/snapshots\332A\005topic\022|\n\013DeleteTopic\022" - + "$.google.pubsub.v1.DeleteTopicRequest\032\026." - + "google.protobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topi" - + "c=projects/*/topics/*}\332A\005topic\032p\312A\025pubsu" - + "b.googleapis.com\322AUhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/pubsub2\203\025\n\nSubscriber\022" - + "\264\001\n\022CreateSubscription\022\036.google.pubsub.v" - + "1.Subscription\032\036.google.pubsub.v1.Subscr" - + "iption\"^\202\323\344\223\002*\032%/v1/{name=projects/*/sub" - + "scriptions/*}:\001*\332A+name,topic,push_confi" - + "g,ack_deadline_seconds\022\241\001\n\017GetSubscripti" - + "on\022(.google.pubsub.v1.GetSubscriptionReq" - + "uest\032\036.google.pubsub.v1.Subscription\"D\202\323" - + "\344\223\002/\022-/v1/{subscription=projects/*/subsc" - + "riptions/*}\332A\014subscription\022\240\001\n\022UpdateSub" - + "scription\022+.google.pubsub.v1.UpdateSubsc" - + "riptionRequest\032\036.google.pubsub.v1.Subscr" - + "iption\"=\202\323\344\223\002722/v1/{subscription.name=p" - + "rojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSu" - + "bscriptions\022*.google.pubsub.v1.ListSubsc" - + "riptionsRequest\032+.google.pubsub.v1.ListS" - + "ubscriptionsResponse\"8\202\323\344\223\002(\022&/v1/{proje" - + "ct=projects/*}/subscriptions\332A\007project\022\237" - + "\001\n\022DeleteSubscription\022+.google.pubsub.v1" - + ".DeleteSubscriptionRequest\032\026.google.prot" - + "obuf.Empty\"D\202\323\344\223\002/*-/v1/{subscription=pr" - + "ojects/*/subscriptions/*}\332A\014subscription" - + "\022\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v" - + "1.ModifyAckDeadlineRequest\032\026.google.prot" - + "obuf.Empty\"v\202\323\344\223\002D\"?/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:modifyAckDeadl" - + "ine:\001*\332A)subscription,ack_ids,ack_deadli" - + "ne_seconds\022\250\001\n\013Acknowledge\022$.google.pubs" - + "ub.v1.AcknowledgeRequest\032\026.google.protob" - + "uf.Empty\"[\202\323\344\223\002>\"9/v1/{subscription=proj" - + "ects/*/subscriptions/*}:acknowledge:\001*\332A" - + "\024subscription,ack_ids\022\263\001\n\004Pull\022\035.google." - + "pubsub.v1.PullRequest\032\036.google.pubsub.v1" - + ".PullResponse\"l\202\323\344\223\0027\"2/v1/{subscription" - + "=projects/*/subscriptions/*}:pull:\001*\332A,s" - + "ubscription,return_immediately,max_messa" - + "ges\022f\n\rStreamingPull\022&.google.pubsub.v1." - + "StreamingPullRequest\032\'.google.pubsub.v1." - + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu" - + "shConfig\022).google.pubsub.v1.ModifyPushCo" - + "nfigRequest\032\026.google.protobuf.Empty\"d\202\323\344" - + "\223\002C\">/v1/{subscription=projects/*/subscr" - + "iptions/*}:modifyPushConfig:\001*\332A\030subscri" - + "ption,push_config\022\211\001\n\013GetSnapshot\022$.goog" - + "le.pubsub.v1.GetSnapshotRequest\032\032.google" - + ".pubsub.v1.Snapshot\"8\202\323\344\223\002\'\022%/v1/{snapsh" - + "ot=projects/*/snapshots/*}\332A\010snapshot\022\226\001" - + "\n\rListSnapshots\022&.google.pubsub.v1.ListS" - + "napshotsRequest\032\'.google.pubsub.v1.ListS" - + "napshotsResponse\"4\202\323\344\223\002$\022\"/v1/{project=p" - + "rojects/*}/snapshots\332A\007project\022\227\001\n\016Creat" - + "eSnapshot\022\'.google.pubsub.v1.CreateSnaps" - + "hotRequest\032\032.google.pubsub.v1.Snapshot\"@" - + "\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*" - + "}:\001*\332A\021name,subscription\022\214\001\n\016UpdateSnaps" - + "hot\022\'.google.pubsub.v1.UpdateSnapshotReq" - + "uest\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002/" - + "2*/v1/{snapshot.name=projects/*/snapshot" - + "s/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubs" - + "ub.v1.DeleteSnapshotRequest\032\026.google.pro" - + "tobuf.Empty\"8\202\323\344\223\002\'*%/v1/{snapshot=proje" - + "cts/*/snapshots/*}\332A\010snapshot\022\204\001\n\004Seek\022\035" - + ".google.pubsub.v1.SeekRequest\032\036.google.p" - + "ubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subs" - + "cription=projects/*/subscriptions/*}:see" - + "k:\001*\032p\312A\025pubsub.googleapis.com\322AUhttps:/" + + ".googleapis.com/Subscription\0226\n\013push_con" + + "fig\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB" + + "\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription\030\001 \001" + + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" + + "iption\022!\n\022return_immediately\030\002 \001(\010B\005\030\001\340A" + + "\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResp" + + "onse\022<\n\021received_messages\030\001 \003(\0132!.google" + + ".pubsub.v1.ReceivedMessage\"\225\001\n\030ModifyAck" + + "DeadlineRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" + + "n\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_" + + "seconds\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest" + + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" + + "oogleapis.com/Subscription\022\024\n\007ack_ids\030\002 " + + "\003(\tB\003\340A\002\"\350\001\n\024StreamingPullRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027" + + "modify_deadline_seconds\030\003 \003(\005\022\037\n\027modify_" + + "deadline_ack_ids\030\004 \003(\t\022(\n\033stream_ack_dea" + + "dline_seconds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 " + + "\001(\t\"U\n\025StreamingPullResponse\022<\n\021received" + + "_messages\030\001 \003(\0132!.google.pubsub.v1.Recei" + + "vedMessage\"\203\002\n\025CreateSnapshotRequest\0224\n\004" + + "name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.co" + + "m/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$" + + "\n\"pubsub.googleapis.com/Subscription\022C\n\006" + + "labels\030\003 \003(\01323.google.pubsub.v1.CreateSn" + + "apshotRequest.LabelsEntry\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025Upd" + + "ateSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.g" + + "oogle.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030" + + "\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022" + + "/\n\013expire_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestamp\0226\n\006labels\030\004 \003(\0132&.google.pubsub" + + ".v1.Snapshot.LabelsEntry\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pu" + + "bsub.googleapis.com/Snapshot\022\'projects/{" + + "project}/snapshots/{snapshot}\"N\n\022GetSnap" + + "shotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036p" + + "ubsub.googleapis.com/Snapshot\"\203\001\n\024ListSn" + + "apshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Pro" + + "ject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapshot" + + "s\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"Q\n\025DeleteSnapshotRe" + + "quest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub." + + "googleapis.com/Snapshot\"\276\001\n\013SeekRequest\022" + + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" + + "ogleapis.com/Subscription\022*\n\004time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampH\000\0227\n\010snapsho" + + "t\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/Snap" + + "shotH\000B\010\n\006target\"\016\n\014SeekResponse2\243\013\n\tPub" + + "lisher\022q\n\013CreateTopic\022\027.google.pubsub.v1" + + ".Topic\032\027.google.pubsub.v1.Topic\"0\202\323\344\223\002#\032" + + "\036/v1/{name=projects/*/topics/*}:\001*\332A\004nam" + + "e\022}\n\013UpdateTopic\022$.google.pubsub.v1.Upda" + + "teTopicRequest\032\027.google.pubsub.v1.Topic\"" + + "/\202\323\344\223\002)2$/v1/{topic.name=projects/*/topi" + + "cs/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1." + + "PublishRequest\032!.google.pubsub.v1.Publis" + + "hResponse\"C\202\323\344\223\002,\"\'/v1/{topic=projects/*" + + "/topics/*}:publish:\001*\332A\016topic,messages\022w" + + "\n\010GetTopic\022!.google.pubsub.v1.GetTopicRe" + + "quest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002!\022\037" + + "/v1/{topic=projects/*/topics/*}\332A\005topic\022" + + "\212\001\n\nListTopics\022#.google.pubsub.v1.ListTo" + + "picsRequest\032$.google.pubsub.v1.ListTopic" + + "sResponse\"1\202\323\344\223\002!\022\037/v1/{project=projects" + + "/*}/topics\332A\007project\022\272\001\n\026ListTopicSubscr" + + "iptions\022/.google.pubsub.v1.ListTopicSubs" + + "criptionsRequest\0320.google.pubsub.v1.List" + + "TopicSubscriptionsResponse\"=\202\323\344\223\002/\022-/v1/" + + "{topic=projects/*/topics/*}/subscription" + + "s\332A\005topic\022\252\001\n\022ListTopicSnapshots\022+.googl" + + "e.pubsub.v1.ListTopicSnapshotsRequest\032,." + + "google.pubsub.v1.ListTopicSnapshotsRespo" + + "nse\"9\202\323\344\223\002+\022)/v1/{topic=projects/*/topic" + + "s/*}/snapshots\332A\005topic\022|\n\013DeleteTopic\022$." + + "google.pubsub.v1.DeleteTopicRequest\032\026.go" + + "ogle.protobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topic=" + + "projects/*/topics/*}\332A\005topic\022\255\001\n\022DetachS" + + "ubscription\022+.google.pubsub.v1.DetachSub" + + "scriptionRequest\032,.google.pubsub.v1.Deta" + + "chSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{sub" + + "scription=projects/*/subscriptions/*}:de" + + "tach\032p\312A\025pubsub.googleapis.com\322AUhttps:/" + "/www.googleapis.com/auth/cloud-platform," - + "https://www.googleapis.com/auth/pubsubB\256" - + "\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z6" - + "google.golang.org/genproto/googleapis/pu" - + "bsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub." - + "V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cl" - + "oud::PubSub::V1b\006proto3" + + "https://www.googleapis.com/auth/pubsub2\203" + + "\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036.g" + + "oogle.pubsub.v1.Subscription\032\036.google.pu" + + "bsub.v1.Subscription\"^\202\323\344\223\002*\032%/v1/{name=" + + "projects/*/subscriptions/*}:\001*\332A+name,to" + + "pic,push_config,ack_deadline_seconds\022\241\001\n" + + "\017GetSubscription\022(.google.pubsub.v1.GetS" + + "ubscriptionRequest\032\036.google.pubsub.v1.Su" + + "bscription\"D\202\323\344\223\002/\022-/v1/{subscription=pr" + + "ojects/*/subscriptions/*}\332A\014subscription" + + "\022\240\001\n\022UpdateSubscription\022+.google.pubsub." + + "v1.UpdateSubscriptionRequest\032\036.google.pu" + + "bsub.v1.Subscription\"=\202\323\344\223\002722/v1/{subsc" + + "ription.name=projects/*/subscriptions/*}" + + ":\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsu" + + "b.v1.ListSubscriptionsRequest\032+.google.p" + + "ubsub.v1.ListSubscriptionsResponse\"8\202\323\344\223" + + "\002(\022&/v1/{project=projects/*}/subscriptio" + + "ns\332A\007project\022\237\001\n\022DeleteSubscription\022+.go" + + "ogle.pubsub.v1.DeleteSubscriptionRequest" + + "\032\026.google.protobuf.Empty\"D\202\323\344\223\002/*-/v1/{s" + + "ubscription=projects/*/subscriptions/*}\332" + + "A\014subscription\022\317\001\n\021ModifyAckDeadline\022*.g" + + "oogle.pubsub.v1.ModifyAckDeadlineRequest" + + "\032\026.google.protobuf.Empty\"v\202\323\344\223\002D\"?/v1/{s" + + "ubscription=projects/*/subscriptions/*}:" + + "modifyAckDeadline:\001*\332A)subscription,ack_" + + "ids,ack_deadline_seconds\022\250\001\n\013Acknowledge" + + "\022$.google.pubsub.v1.AcknowledgeRequest\032\026" + + ".google.protobuf.Empty\"[\202\323\344\223\002>\"9/v1/{sub" + + "scription=projects/*/subscriptions/*}:ac" + + "knowledge:\001*\332A\024subscription,ack_ids\022\263\001\n\004" + + "Pull\022\035.google.pubsub.v1.PullRequest\032\036.go" + + "ogle.pubsub.v1.PullResponse\"l\202\323\344\223\0027\"2/v1" + + "/{subscription=projects/*/subscriptions/" + + "*}:pull:\001*\332A,subscription,return_immedia" + + "tely,max_messages\022f\n\rStreamingPull\022&.goo" + + "gle.pubsub.v1.StreamingPullRequest\032\'.goo" + + "gle.pubsub.v1.StreamingPullResponse\"\000(\0010" + + "\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub.v" + + "1.ModifyPushConfigRequest\032\026.google.proto" + + "buf.Empty\"d\202\323\344\223\002C\">/v1/{subscription=pro" + + "jects/*/subscriptions/*}:modifyPushConfi" + + "g:\001*\332A\030subscription,push_config\022\211\001\n\013GetS" + + "napshot\022$.google.pubsub.v1.GetSnapshotRe" + + "quest\032\032.google.pubsub.v1.Snapshot\"8\202\323\344\223\002" + + "\'\022%/v1/{snapshot=projects/*/snapshots/*}" + + "\332A\010snapshot\022\226\001\n\rListSnapshots\022&.google.p" + + "ubsub.v1.ListSnapshotsRequest\032\'.google.p" + + "ubsub.v1.ListSnapshotsResponse\"4\202\323\344\223\002$\022\"" + + "/v1/{project=projects/*}/snapshots\332A\007pro" + + "ject\022\227\001\n\016CreateSnapshot\022\'.google.pubsub." + + "v1.CreateSnapshotRequest\032\032.google.pubsub" + + ".v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{name=projects" + + "/*/snapshots/*}:\001*\332A\021name,subscription\022\214" + + "\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.Upd" + + "ateSnapshotRequest\032\032.google.pubsub.v1.Sn" + + "apshot\"5\202\323\344\223\002/2*/v1/{snapshot.name=proje" + + "cts/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot" + + "\022\'.google.pubsub.v1.DeleteSnapshotReques" + + "t\032\026.google.protobuf.Empty\"8\202\323\344\223\002\'*%/v1/{" + + "snapshot=projects/*/snapshots/*}\332A\010snaps" + + "hot\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRequ" + + "est\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344" + + "\223\0027\"2/v1/{subscription=projects/*/subscr" + + "iptions/*}:seek:\001*\032p\312A\025pubsub.googleapis" + + ".com\322AUhttps://www.googleapis.com/auth/c" + + "loud-platform,https://www.googleapis.com" + + "/auth/pubsubB\256\001\n\024com.google.pubsub.v1B\013P" + + "ubsubProtoP\001Z6google.golang.org/genproto" + + "/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026Google" + + ".Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V" + + "1\352\002\031Google::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -628,8 +643,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Topic", }); - internal_static_google_pubsub_v1_Subscription_descriptor = + internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, + new java.lang.String[] { + "Subscription", + }); + internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_Subscription_descriptor = + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -656,7 +685,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -664,7 +693,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -672,7 +701,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -680,7 +709,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -704,7 +733,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -712,7 +741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -720,7 +749,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -728,7 +757,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -736,7 +765,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -744,7 +773,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -752,7 +781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -760,7 +789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -768,7 +797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -776,7 +805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -784,7 +813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -792,7 +821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -805,7 +834,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClientId", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -813,7 +842,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -829,7 +858,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -837,7 +866,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -853,7 +882,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -861,7 +890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -869,7 +898,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -877,7 +906,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -885,7 +914,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -893,7 +922,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index a42d03220b32..0311cc5b3510 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -88,7 +88,7 @@ service Publisher { option (google.api.method_signature) = "project"; } - // Lists the names of the subscriptions on this topic. + // Lists the names of the attached subscriptions on this topic. rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) returns (ListTopicSubscriptionsResponse) { option (google.api.http) = { @@ -122,6 +122,17 @@ service Publisher { }; option (google.api.method_signature) = "topic"; } + + // Detaches a subscription from this topic. All messages retained in the + // subscription are dropped. Subsequent `Pull` and `StreamingPull` requests + // will return FAILED_PRECONDITION. If the subscription is a push + // subscription, pushes to the endpoint will stop. + rpc DetachSubscription(DetachSubscriptionRequest) + returns (DetachSubscriptionResponse) { + option (google.api.http) = { + post: "/v1/{subscription=projects/*/subscriptions/*}:detach" + }; + } } message MessageStoragePolicy { @@ -300,7 +311,7 @@ message ListTopicSubscriptionsRequest { // Response for the `ListTopicSubscriptions` method. message ListTopicSubscriptionsResponse { - // The names of the subscriptions that match the request. + // The names of subscriptions attached to the topic specified in the request. repeated string subscriptions = 1 [(google.api.resource_reference) = { type: "pubsub.googleapis.com/Subscription" }]; @@ -350,6 +361,20 @@ message DeleteTopicRequest { ]; } +// Request for the DetachSubscription method. +message DetachSubscriptionRequest { + // Required. The subscription to detach. + // Format is `projects/{project}/subscriptions/{subscription}`. + string subscription = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + ]; +} + +// Response for the DetachSubscription method. +// Reserved for future use. +message DetachSubscriptionResponse {} + // 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. diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 3707cd7d4dbe..13da918411ef 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "ed222384f58d1b3b61d9844bfefe55d71961fbc4" + "sha": "63a0e7a423ca0e9de9e446f0686aec6e6368f67c" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "edd3b80fb770548d6ad780105f1782de6ff73ea0", - "internalRef": "311053644" + "sha": "f5f268f5293e60143ac742a4eeb7dd6306ebf505", + "internalRef": "313276022" } }, { From d58483fe9d379965c7c37baa340a9959b1d038bb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 8 Jun 2020 10:30:08 -0700 Subject: [PATCH 0385/2363] chore: update common templates (#232) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/d76bfbb4-fde1-4909-a913-608cdb170a49/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/987270824bd26f6a8c716d5e2022057b8ae7b26e Source-Link: https://github.com/googleapis/synthtool/commit/cac9eef310652bf138dd76b716e4986e757d62ac --- java-pubsub/.kokoro/build.sh | 4 +--- java-pubsub/README.md | 5 +++++ java-pubsub/renovate.json | 3 ++- java-pubsub/synth.metadata | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index bbca9bc9d341..2d5347b09c1a 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -51,9 +51,7 @@ test) RETURN_CODE=$? ;; lint) - mvn \ - -Penable-samples \ - com.coveo:fmt-maven-plugin:check + mvn com.coveo:fmt-maven-plugin:check RETURN_CODE=$? ;; javadoc) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 53e551aa38d3..388948793196 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -226,6 +226,11 @@ has instructions for running the samples. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | | Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | +| Publish With Batch Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | +| Publish With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | +| Publish With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | +| Publish With Error Handler Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | +| Publish With Retry Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | | Receive Messages With Delivery Attempts Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | | Remove Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | | Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 1b54f48afbeb..a6e2d9ca1733 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -76,5 +76,6 @@ "groupName": "jackson dependencies" } ], - "semanticCommits": true + "semanticCommits": true, + "masterIssue": true } \ No newline at end of file diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 13da918411ef..887afc20ecd6 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "63a0e7a423ca0e9de9e446f0686aec6e6368f67c" + "sha": "09866b0d36e2dd1c994b4c91807d71552b65c8e1" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8b65daa222d193b689279162781baf0aa1f0ffd2" + "sha": "987270824bd26f6a8c716d5e2022057b8ae7b26e" } } ], From 45f1d80f745da0351acf22c156abbb4740ed8631 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 8 Jun 2020 11:06:18 -0700 Subject: [PATCH 0386/2363] chore: Re-generated to pick up changes from googleapis (#231) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * bazel: update protobuf, rules_go, gazelle, and gapic-generator-go versions - protobuf v3.12.1 - rules_go v0.23.0 - gazelle v0.21.0 - gapic-generator-go v0.14.1 PiperOrigin-RevId: 313460921 Source-Author: Google APIs Source-Date: Wed May 27 14:10:16 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: c4e37010d74071851ff24121f522e802231ac86e Source-Link: https://github.com/googleapis/googleapis/commit/c4e37010d74071851ff24121f522e802231ac86e * Use correct resource type for DetachSubscriptionRequest PiperOrigin-RevId: 313488995 Source-Author: Google APIs Source-Date: Wed May 27 16:45:32 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: eafa840ceec23b44a5c21670288107c661252711 Source-Link: https://github.com/googleapis/googleapis/commit/eafa840ceec23b44a5c21670288107c661252711 * docs: Add comment for MessageStoragePolicy message PiperOrigin-RevId: 313795529 Source-Author: Google APIs Source-Date: Fri May 29 09:33:18 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: f4bd71cc173d848ec24d28eede271cca9abc411f Source-Link: https://github.com/googleapis/googleapis/commit/f4bd71cc173d848ec24d28eede271cca9abc411f * Drop the experimental tag on the Subscription filter and retry policy fields Clarify some retry policy comments PiperOrigin-RevId: 313812131 Source-Author: Google APIs Source-Date: Fri May 29 10:59:34 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: fb21971becb6c0441efc855dabc371825732872c Source-Link: https://github.com/googleapis/googleapis/commit/fb21971becb6c0441efc855dabc371825732872c * Add "detached" bool to Subscription PiperOrigin-RevId: 314795690 Source-Author: Google APIs Source-Date: Thu Jun 4 13:43:59 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 86285bbd54fbf9708838219e3422aa47fb8fc0b0 Source-Link: https://github.com/googleapis/googleapis/commit/86285bbd54fbf9708838219e3422aa47fb8fc0b0 --- .../cloud/pubsub/v1/TopicAdminClient.java | 4 +- .../v1/SubscriptionAdminClientTest.java | 6 + .../cloud/pubsub/v1/TopicAdminClientTest.java | 9 +- .../google/pubsub/v1/AcknowledgeRequest.java | 2 + .../pubsub/v1/CreateSnapshotRequest.java | 14 + .../google/pubsub/v1/DeadLetterPolicy.java | 4 + .../pubsub/v1/DeleteSnapshotRequest.java | 2 + .../pubsub/v1/DeleteSubscriptionRequest.java | 2 + .../google/pubsub/v1/DeleteTopicRequest.java | 2 + .../pubsub/v1/DetachSubscriptionRequest.java | 2 + .../google/pubsub/v1/ExpirationPolicy.java | 3 + .../google/pubsub/v1/GetSnapshotRequest.java | 2 + .../pubsub/v1/GetSubscriptionRequest.java | 2 + .../com/google/pubsub/v1/GetTopicRequest.java | 2 + .../pubsub/v1/ListSnapshotsRequest.java | 6 + .../pubsub/v1/ListSnapshotsResponse.java | 7 + .../pubsub/v1/ListSubscriptionsRequest.java | 6 + .../pubsub/v1/ListSubscriptionsResponse.java | 7 + .../pubsub/v1/ListTopicSnapshotsRequest.java | 6 + .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 + .../v1/ListTopicSubscriptionsRequest.java | 6 + .../v1/ListTopicSubscriptionsResponse.java | 2 + .../google/pubsub/v1/ListTopicsRequest.java | 6 + .../google/pubsub/v1/ListTopicsResponse.java | 7 + .../pubsub/v1/MessageStoragePolicy.java | 20 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 4 + .../pubsub/v1/ModifyPushConfigRequest.java | 5 + .../com/google/pubsub/v1/PublishRequest.java | 7 + .../com/google/pubsub/v1/PubsubMessage.java | 19 + .../com/google/pubsub/v1/PubsubProto.java | 434 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 6 + .../com/google/pubsub/v1/PullResponse.java | 5 + .../java/com/google/pubsub/v1/PushConfig.java | 22 + .../com/google/pubsub/v1/ReceivedMessage.java | 7 + .../com/google/pubsub/v1/RetryPolicy.java | 6 + .../com/google/pubsub/v1/SeekRequest.java | 10 + .../java/com/google/pubsub/v1/Snapshot.java | 17 + .../pubsub/v1/StreamingPullRequest.java | 7 + .../pubsub/v1/StreamingPullResponse.java | 5 + .../com/google/pubsub/v1/Subscription.java | 224 ++++++--- .../pubsub/v1/SubscriptionOrBuilder.java | 38 +- .../main/java/com/google/pubsub/v1/Topic.java | 17 + .../pubsub/v1/UpdateSnapshotRequest.java | 6 + .../pubsub/v1/UpdateSubscriptionRequest.java | 6 + .../google/pubsub/v1/UpdateTopicRequest.java | 6 + .../main/proto/google/pubsub/v1/pubsub.proto | 20 +- java-pubsub/synth.metadata | 4 +- 47 files changed, 686 insertions(+), 320 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 04c4bc2318be..1d1096550d3a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1428,7 +1428,7 @@ public final TestIamPermissionsResponse testIamPermissions( * *
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName subscription = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   DetachSubscriptionRequest request = DetachSubscriptionRequest.newBuilder()
        *     .setSubscription(subscription.toString())
        *     .build();
    @@ -1453,7 +1453,7 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
        *
        * 
    
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName subscription = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   DetachSubscriptionRequest request = DetachSubscriptionRequest.newBuilder()
        *     .setSubscription(subscription.toString())
        *     .build();
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    index 2d40f14bf3f1..ac0be311c4a1 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    @@ -136,6 +136,7 @@ public void createSubscriptionTest() {
         boolean retainAckedMessages = false;
         boolean enableMessageOrdering = true;
         String filter = "filter-1274492040";
    +    boolean detached = true;
         Subscription expectedResponse =
             Subscription.newBuilder()
                 .setName(name2.toString())
    @@ -144,6 +145,7 @@ public void createSubscriptionTest() {
                 .setRetainAckedMessages(retainAckedMessages)
                 .setEnableMessageOrdering(enableMessageOrdering)
                 .setFilter(filter)
    +            .setDetached(detached)
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    @@ -198,6 +200,7 @@ public void getSubscriptionTest() {
         boolean retainAckedMessages = false;
         boolean enableMessageOrdering = true;
         String filter = "filter-1274492040";
    +    boolean detached = true;
         Subscription expectedResponse =
             Subscription.newBuilder()
                 .setName(name.toString())
    @@ -206,6 +209,7 @@ public void getSubscriptionTest() {
                 .setRetainAckedMessages(retainAckedMessages)
                 .setEnableMessageOrdering(enableMessageOrdering)
                 .setFilter(filter)
    +            .setDetached(detached)
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    @@ -253,6 +257,7 @@ public void updateSubscriptionTest() {
         boolean retainAckedMessages = false;
         boolean enableMessageOrdering = true;
         String filter = "filter-1274492040";
    +    boolean detached = true;
         Subscription expectedResponse =
             Subscription.newBuilder()
                 .setName(name.toString())
    @@ -261,6 +266,7 @@ public void updateSubscriptionTest() {
                 .setRetainAckedMessages(retainAckedMessages)
                 .setEnableMessageOrdering(enableMessageOrdering)
                 .setFilter(filter)
    +            .setDetached(detached)
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    index 3bc0c77a3321..1f8e26ac8bb9 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    @@ -631,7 +631,8 @@ public void detachSubscriptionTest() {
         DetachSubscriptionResponse expectedResponse = DetachSubscriptionResponse.newBuilder().build();
         mockPublisher.addResponse(expectedResponse);
     
    -    TopicName subscription = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +    ProjectSubscriptionName subscription =
    +        ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
         DetachSubscriptionRequest request =
             DetachSubscriptionRequest.newBuilder().setSubscription(subscription.toString()).build();
     
    @@ -642,7 +643,8 @@ public void detachSubscriptionTest() {
         Assert.assertEquals(1, actualRequests.size());
         DetachSubscriptionRequest actualRequest = (DetachSubscriptionRequest) actualRequests.get(0);
     
    -    Assert.assertEquals(subscription, TopicName.parse(actualRequest.getSubscription()));
    +    Assert.assertEquals(
    +        subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription()));
         Assert.assertTrue(
             channelProvider.isHeaderSent(
                 ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    @@ -656,7 +658,8 @@ public void detachSubscriptionExceptionTest() throws Exception {
         mockPublisher.addException(exception);
     
         try {
    -      TopicName subscription = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +      ProjectSubscriptionName subscription =
    +          ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           DetachSubscriptionRequest request =
               DetachSubscriptionRequest.newBuilder().setSubscription(subscription.toString()).build();
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    index e29a1fcca146..009081161f45 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    @@ -142,6 +142,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The subscription.
        */
    +  @java.lang.Override
       public java.lang.String getSubscription() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    @@ -167,6 +168,7 @@ public java.lang.String getSubscription() {
        *
        * @return The bytes for subscription.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    index 9c6e4bd87c9d..00ea43fcdb11 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    @@ -164,6 +164,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
        *
        * @return The name.
        */
    +  @java.lang.Override
       public java.lang.String getName() {
         java.lang.Object ref = name_;
         if (ref instanceof java.lang.String) {
    @@ -193,6 +194,7 @@ public java.lang.String getName() {
        *
        * @return The bytes for name.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getNameBytes() {
         java.lang.Object ref = name_;
         if (ref instanceof java.lang.String) {
    @@ -228,6 +230,7 @@ public com.google.protobuf.ByteString getNameBytes() {
        *
        * @return The subscription.
        */
    +  @java.lang.Override
       public java.lang.String getSubscription() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    @@ -260,6 +263,7 @@ public java.lang.String getSubscription() {
        *
        * @return The bytes for subscription.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    @@ -307,6 +311,7 @@ public int getLabelsCount() {
        *
        * map<string, string> labels = 3;
        */
    +  @java.lang.Override
       public boolean containsLabels(java.lang.String key) {
         if (key == null) {
           throw new java.lang.NullPointerException();
    @@ -314,6 +319,7 @@ public boolean containsLabels(java.lang.String key) {
         return internalGetLabels().getMap().containsKey(key);
       }
       /** Use {@link #getLabelsMap()} instead. */
    +  @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getLabels() {
         return getLabelsMap();
    @@ -328,6 +334,7 @@ public java.util.Map getLabels() {
        *
        * map<string, string> labels = 3;
        */
    +  @java.lang.Override
       public java.util.Map getLabelsMap() {
         return internalGetLabels().getMap();
       }
    @@ -341,6 +348,7 @@ public java.util.Map getLabelsMap() {
        *
        * map<string, string> labels = 3;
        */
    +  @java.lang.Override
       public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
         if (key == null) {
           throw new java.lang.NullPointerException();
    @@ -358,6 +366,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
        *
        * map<string, string> labels = 3;
        */
    +  @java.lang.Override
       public java.lang.String getLabelsOrThrow(java.lang.String key) {
         if (key == null) {
           throw new java.lang.NullPointerException();
    @@ -1077,6 +1086,7 @@ public int getLabelsCount() {
          *
          * map<string, string> labels = 3;
          */
    +    @java.lang.Override
         public boolean containsLabels(java.lang.String key) {
           if (key == null) {
             throw new java.lang.NullPointerException();
    @@ -1084,6 +1094,7 @@ public boolean containsLabels(java.lang.String key) {
           return internalGetLabels().getMap().containsKey(key);
         }
         /** Use {@link #getLabelsMap()} instead. */
    +    @java.lang.Override
         @java.lang.Deprecated
         public java.util.Map getLabels() {
           return getLabelsMap();
    @@ -1098,6 +1109,7 @@ public java.util.Map getLabels() {
          *
          * map<string, string> labels = 3;
          */
    +    @java.lang.Override
         public java.util.Map getLabelsMap() {
           return internalGetLabels().getMap();
         }
    @@ -1111,6 +1123,7 @@ public java.util.Map getLabelsMap() {
          *
          * map<string, string> labels = 3;
          */
    +    @java.lang.Override
         public java.lang.String getLabelsOrDefault(
             java.lang.String key, java.lang.String defaultValue) {
           if (key == null) {
    @@ -1129,6 +1142,7 @@ public java.lang.String getLabelsOrDefault(
          *
          * map<string, string> labels = 3;
          */
    +    @java.lang.Override
         public java.lang.String getLabelsOrThrow(java.lang.String key) {
           if (key == null) {
             throw new java.lang.NullPointerException();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
    index bb6cec0b3d1a..773359cfac8d 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
    @@ -139,6 +139,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The deadLetterTopic.
        */
    +  @java.lang.Override
       public java.lang.String getDeadLetterTopic() {
         java.lang.Object ref = deadLetterTopic_;
         if (ref instanceof java.lang.String) {
    @@ -168,6 +169,7 @@ public java.lang.String getDeadLetterTopic() {
        *
        * @return The bytes for deadLetterTopic.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getDeadLetterTopicBytes() {
         java.lang.Object ref = deadLetterTopic_;
         if (ref instanceof java.lang.String) {
    @@ -201,6 +203,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() {
        *
        * @return The maxDeliveryAttempts.
        */
    +  @java.lang.Override
       public int getMaxDeliveryAttempts() {
         return maxDeliveryAttempts_;
       }
    @@ -698,6 +701,7 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) {
          *
          * @return The maxDeliveryAttempts.
          */
    +    @java.lang.Override
         public int getMaxDeliveryAttempts() {
           return maxDeliveryAttempts_;
         }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java
    index 185507b53fed..d43936019e23 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java
    @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The snapshot.
        */
    +  @java.lang.Override
       public java.lang.String getSnapshot() {
         java.lang.Object ref = snapshot_;
         if (ref instanceof java.lang.String) {
    @@ -152,6 +153,7 @@ public java.lang.String getSnapshot() {
        *
        * @return The bytes for snapshot.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getSnapshotBytes() {
         java.lang.Object ref = snapshot_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    index b488aca0ae8b..82bd05b372af 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The subscription.
        */
    +  @java.lang.Override
       public java.lang.String getSubscription() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    @@ -152,6 +153,7 @@ public java.lang.String getSubscription() {
        *
        * @return The bytes for subscription.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    index 36056653a9ea..68db7a9575a9 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The topic.
        */
    +  @java.lang.Override
       public java.lang.String getTopic() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    @@ -152,6 +153,7 @@ public java.lang.String getTopic() {
        *
        * @return The bytes for topic.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getTopicBytes() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java
    index 7e069d6cc635..6b738acfaec2 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java
    @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The subscription.
        */
    +  @java.lang.Override
       public java.lang.String getSubscription() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    @@ -152,6 +153,7 @@ public java.lang.String getSubscription() {
        *
        * @return The bytes for subscription.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
    index b77609e2eb1b..5c88243ee661 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
    @@ -135,6 +135,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return Whether the ttl field is set.
        */
    +  @java.lang.Override
       public boolean hasTtl() {
         return ttl_ != null;
       }
    @@ -154,6 +155,7 @@ public boolean hasTtl() {
        *
        * @return The ttl.
        */
    +  @java.lang.Override
       public com.google.protobuf.Duration getTtl() {
         return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_;
       }
    @@ -171,6 +173,7 @@ public com.google.protobuf.Duration getTtl() {
        *
        * .google.protobuf.Duration ttl = 1;
        */
    +  @java.lang.Override
       public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
         return getTtl();
       }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    index 55295c195e96..ee75fc7d33be 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The snapshot.
        */
    +  @java.lang.Override
       public java.lang.String getSnapshot() {
         java.lang.Object ref = snapshot_;
         if (ref instanceof java.lang.String) {
    @@ -152,6 +153,7 @@ public java.lang.String getSnapshot() {
        *
        * @return The bytes for snapshot.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getSnapshotBytes() {
         java.lang.Object ref = snapshot_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    index abca9f36e8e6..7aed4b01a7ea 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The subscription.
        */
    +  @java.lang.Override
       public java.lang.String getSubscription() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    @@ -152,6 +153,7 @@ public java.lang.String getSubscription() {
        *
        * @return The bytes for subscription.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getSubscriptionBytes() {
         java.lang.Object ref = subscription_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    index 8e0f4174d711..acf62a7f738d 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    @@ -127,6 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The topic.
        */
    +  @java.lang.Override
       public java.lang.String getTopic() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    @@ -152,6 +153,7 @@ public java.lang.String getTopic() {
        *
        * @return The bytes for topic.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getTopicBytes() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    index f3eca13fd05a..72ce020e112d 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    @@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The project.
        */
    +  @java.lang.Override
       public java.lang.String getProject() {
         java.lang.Object ref = project_;
         if (ref instanceof java.lang.String) {
    @@ -165,6 +166,7 @@ public java.lang.String getProject() {
        *
        * @return The bytes for project.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getProjectBytes() {
         java.lang.Object ref = project_;
         if (ref instanceof java.lang.String) {
    @@ -190,6 +192,7 @@ public com.google.protobuf.ByteString getProjectBytes() {
        *
        * @return The pageSize.
        */
    +  @java.lang.Override
       public int getPageSize() {
         return pageSize_;
       }
    @@ -209,6 +212,7 @@ public int getPageSize() {
        *
        * @return The pageToken.
        */
    +  @java.lang.Override
       public java.lang.String getPageToken() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    @@ -233,6 +237,7 @@ public java.lang.String getPageToken() {
        *
        * @return The bytes for pageToken.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getPageTokenBytes() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    @@ -725,6 +730,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
          *
          * @return The pageSize.
          */
    +    @java.lang.Override
         public int getPageSize() {
           return pageSize_;
         }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    index 9a7fd3cff164..e355e42f6c4a 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    @@ -137,6 +137,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * repeated .google.pubsub.v1.Snapshot snapshots = 1;
        */
    +  @java.lang.Override
       public java.util.List getSnapshotsList() {
         return snapshots_;
       }
    @@ -149,6 +150,7 @@ public java.util.List getSnapshotsList() {
        *
        * repeated .google.pubsub.v1.Snapshot snapshots = 1;
        */
    +  @java.lang.Override
       public java.util.List
           getSnapshotsOrBuilderList() {
         return snapshots_;
    @@ -162,6 +164,7 @@ public java.util.List getSnapshotsList() {
        *
        * repeated .google.pubsub.v1.Snapshot snapshots = 1;
        */
    +  @java.lang.Override
       public int getSnapshotsCount() {
         return snapshots_.size();
       }
    @@ -174,6 +177,7 @@ public int getSnapshotsCount() {
        *
        * repeated .google.pubsub.v1.Snapshot snapshots = 1;
        */
    +  @java.lang.Override
       public com.google.pubsub.v1.Snapshot getSnapshots(int index) {
         return snapshots_.get(index);
       }
    @@ -186,6 +190,7 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) {
        *
        * repeated .google.pubsub.v1.Snapshot snapshots = 1;
        */
    +  @java.lang.Override
       public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) {
         return snapshots_.get(index);
       }
    @@ -204,6 +209,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) {
        *
        * @return The nextPageToken.
        */
    +  @java.lang.Override
       public java.lang.String getNextPageToken() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    @@ -227,6 +233,7 @@ public java.lang.String getNextPageToken() {
        *
        * @return The bytes for nextPageToken.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getNextPageTokenBytes() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    index f1f4b9536027..a1484c696f75 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    @@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The project.
        */
    +  @java.lang.Override
       public java.lang.String getProject() {
         java.lang.Object ref = project_;
         if (ref instanceof java.lang.String) {
    @@ -165,6 +166,7 @@ public java.lang.String getProject() {
        *
        * @return The bytes for project.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getProjectBytes() {
         java.lang.Object ref = project_;
         if (ref instanceof java.lang.String) {
    @@ -190,6 +192,7 @@ public com.google.protobuf.ByteString getProjectBytes() {
        *
        * @return The pageSize.
        */
    +  @java.lang.Override
       public int getPageSize() {
         return pageSize_;
       }
    @@ -209,6 +212,7 @@ public int getPageSize() {
        *
        * @return The pageToken.
        */
    +  @java.lang.Override
       public java.lang.String getPageToken() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    @@ -233,6 +237,7 @@ public java.lang.String getPageToken() {
        *
        * @return The bytes for pageToken.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getPageTokenBytes() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    @@ -725,6 +730,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
          *
          * @return The pageSize.
          */
    +    @java.lang.Override
         public int getPageSize() {
           return pageSize_;
         }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    index b9c4f2451114..03b7ba951332 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    @@ -137,6 +137,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * repeated .google.pubsub.v1.Subscription subscriptions = 1;
        */
    +  @java.lang.Override
       public java.util.List getSubscriptionsList() {
         return subscriptions_;
       }
    @@ -149,6 +150,7 @@ public java.util.List getSubscriptionsList()
        *
        * repeated .google.pubsub.v1.Subscription subscriptions = 1;
        */
    +  @java.lang.Override
       public java.util.List
           getSubscriptionsOrBuilderList() {
         return subscriptions_;
    @@ -162,6 +164,7 @@ public java.util.List getSubscriptionsList()
        *
        * repeated .google.pubsub.v1.Subscription subscriptions = 1;
        */
    +  @java.lang.Override
       public int getSubscriptionsCount() {
         return subscriptions_.size();
       }
    @@ -174,6 +177,7 @@ public int getSubscriptionsCount() {
        *
        * repeated .google.pubsub.v1.Subscription subscriptions = 1;
        */
    +  @java.lang.Override
       public com.google.pubsub.v1.Subscription getSubscriptions(int index) {
         return subscriptions_.get(index);
       }
    @@ -186,6 +190,7 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) {
        *
        * repeated .google.pubsub.v1.Subscription subscriptions = 1;
        */
    +  @java.lang.Override
       public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) {
         return subscriptions_.get(index);
       }
    @@ -205,6 +210,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int
        *
        * @return The nextPageToken.
        */
    +  @java.lang.Override
       public java.lang.String getNextPageToken() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    @@ -229,6 +235,7 @@ public java.lang.String getNextPageToken() {
        *
        * @return The bytes for nextPageToken.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getNextPageTokenBytes() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    index 5e59b993cc17..2edd5bdc81ca 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    @@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The topic.
        */
    +  @java.lang.Override
       public java.lang.String getTopic() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    @@ -165,6 +166,7 @@ public java.lang.String getTopic() {
        *
        * @return The bytes for topic.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getTopicBytes() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    @@ -190,6 +192,7 @@ public com.google.protobuf.ByteString getTopicBytes() {
        *
        * @return The pageSize.
        */
    +  @java.lang.Override
       public int getPageSize() {
         return pageSize_;
       }
    @@ -209,6 +212,7 @@ public int getPageSize() {
        *
        * @return The pageToken.
        */
    +  @java.lang.Override
       public java.lang.String getPageToken() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    @@ -233,6 +237,7 @@ public java.lang.String getPageToken() {
        *
        * @return The bytes for pageToken.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getPageTokenBytes() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    @@ -725,6 +730,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
          *
          * @return The pageSize.
          */
    +    @java.lang.Override
         public int getPageSize() {
           return pageSize_;
         }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    index 86521700f925..a19c8778d431 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    @@ -202,6 +202,7 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) {
        *
        * @return The nextPageToken.
        */
    +  @java.lang.Override
       public java.lang.String getNextPageToken() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    @@ -226,6 +227,7 @@ public java.lang.String getNextPageToken() {
        *
        * @return The bytes for nextPageToken.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getNextPageTokenBytes() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    index 80a44a393f96..2bd00bee6985 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    @@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The topic.
        */
    +  @java.lang.Override
       public java.lang.String getTopic() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    @@ -165,6 +166,7 @@ public java.lang.String getTopic() {
        *
        * @return The bytes for topic.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getTopicBytes() {
         java.lang.Object ref = topic_;
         if (ref instanceof java.lang.String) {
    @@ -190,6 +192,7 @@ public com.google.protobuf.ByteString getTopicBytes() {
        *
        * @return The pageSize.
        */
    +  @java.lang.Override
       public int getPageSize() {
         return pageSize_;
       }
    @@ -209,6 +212,7 @@ public int getPageSize() {
        *
        * @return The pageToken.
        */
    +  @java.lang.Override
       public java.lang.String getPageToken() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    @@ -233,6 +237,7 @@ public java.lang.String getPageToken() {
        *
        * @return The bytes for pageToken.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getPageTokenBytes() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    @@ -727,6 +732,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
          *
          * @return The pageSize.
          */
    +    @java.lang.Override
         public int getPageSize() {
           return pageSize_;
         }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    index fbf2b4f2364e..303bd86a4bfa 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    @@ -203,6 +203,7 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) {
        *
        * @return The nextPageToken.
        */
    +  @java.lang.Override
       public java.lang.String getNextPageToken() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    @@ -227,6 +228,7 @@ public java.lang.String getNextPageToken() {
        *
        * @return The bytes for nextPageToken.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getNextPageTokenBytes() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    index b048fd3de911..b6660177d9ba 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    @@ -140,6 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * @return The project.
        */
    +  @java.lang.Override
       public java.lang.String getProject() {
         java.lang.Object ref = project_;
         if (ref instanceof java.lang.String) {
    @@ -165,6 +166,7 @@ public java.lang.String getProject() {
        *
        * @return The bytes for project.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getProjectBytes() {
         java.lang.Object ref = project_;
         if (ref instanceof java.lang.String) {
    @@ -190,6 +192,7 @@ public com.google.protobuf.ByteString getProjectBytes() {
        *
        * @return The pageSize.
        */
    +  @java.lang.Override
       public int getPageSize() {
         return pageSize_;
       }
    @@ -209,6 +212,7 @@ public int getPageSize() {
        *
        * @return The pageToken.
        */
    +  @java.lang.Override
       public java.lang.String getPageToken() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    @@ -233,6 +237,7 @@ public java.lang.String getPageToken() {
        *
        * @return The bytes for pageToken.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getPageTokenBytes() {
         java.lang.Object ref = pageToken_;
         if (ref instanceof java.lang.String) {
    @@ -724,6 +729,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) {
          *
          * @return The pageSize.
          */
    +    @java.lang.Override
         public int getPageSize() {
           return pageSize_;
         }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    index d9b660532651..6e42dbb0ea7e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    @@ -137,6 +137,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        * repeated .google.pubsub.v1.Topic topics = 1;
        */
    +  @java.lang.Override
       public java.util.List getTopicsList() {
         return topics_;
       }
    @@ -149,6 +150,7 @@ public java.util.List getTopicsList() {
        *
        * repeated .google.pubsub.v1.Topic topics = 1;
        */
    +  @java.lang.Override
       public java.util.List getTopicsOrBuilderList() {
         return topics_;
       }
    @@ -161,6 +163,7 @@ public java.util.List getTopicsOr
        *
        * repeated .google.pubsub.v1.Topic topics = 1;
        */
    +  @java.lang.Override
       public int getTopicsCount() {
         return topics_.size();
       }
    @@ -173,6 +176,7 @@ public int getTopicsCount() {
        *
        * repeated .google.pubsub.v1.Topic topics = 1;
        */
    +  @java.lang.Override
       public com.google.pubsub.v1.Topic getTopics(int index) {
         return topics_.get(index);
       }
    @@ -185,6 +189,7 @@ public com.google.pubsub.v1.Topic getTopics(int index) {
        *
        * repeated .google.pubsub.v1.Topic topics = 1;
        */
    +  @java.lang.Override
       public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) {
         return topics_.get(index);
       }
    @@ -203,6 +208,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) {
        *
        * @return The nextPageToken.
        */
    +  @java.lang.Override
       public java.lang.String getNextPageToken() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    @@ -226,6 +232,7 @@ public java.lang.String getNextPageToken() {
        *
        * @return The bytes for nextPageToken.
        */
    +  @java.lang.Override
       public com.google.protobuf.ByteString getNextPageTokenBytes() {
         java.lang.Object ref = nextPageToken_;
         if (ref instanceof java.lang.String) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    index 64ae300e9eae..b03bda501cfe 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    @@ -18,7 +18,15 @@
     
     package com.google.pubsub.v1;
     
    -/** Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} */
    +/**
    + *
    + *
    + * 
    + * A policy constraining the storage of messages published to the topic.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} + */ public final class MessageStoragePolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageStoragePolicy) @@ -355,7 +363,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} */ + /** + * + * + *
    +   * A policy constraining the storage of messages published to the topic.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.MessageStoragePolicy) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 76bbfe4b6713..a3e24dce8804 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -147,6 +147,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The subscription. */ + @java.lang.Override public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { @@ -172,6 +173,7 @@ public java.lang.String getSubscription() { * * @return The bytes for subscription. */ + @java.lang.Override public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { @@ -265,6 +267,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * @return The ackDeadlineSeconds. */ + @java.lang.Override public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } @@ -944,6 +947,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { * * @return The ackDeadlineSeconds. */ + @java.lang.Override public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 6b50cb7b9138..0ee605fad967 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -142,6 +142,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The subscription. */ + @java.lang.Override public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { @@ -167,6 +168,7 @@ public java.lang.String getSubscription() { * * @return The bytes for subscription. */ + @java.lang.Override public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { @@ -197,6 +199,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * @return Whether the pushConfig field is set. */ + @java.lang.Override public boolean hasPushConfig() { return pushConfig_ != null; } @@ -216,6 +219,7 @@ public boolean hasPushConfig() { * * @return The pushConfig. */ + @java.lang.Override public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } @@ -233,6 +237,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; * */ + @java.lang.Override public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { return getPushConfig(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 402948c49002..f255ee55b38e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -143,6 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The topic. */ + @java.lang.Override public java.lang.String getTopic() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { @@ -168,6 +169,7 @@ public java.lang.String getTopic() { * * @return The bytes for topic. */ + @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { @@ -193,6 +195,7 @@ public com.google.protobuf.ByteString getTopicBytes() { * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; *
    */ + @java.lang.Override public java.util.List getMessagesList() { return messages_; } @@ -207,6 +210,7 @@ public java.util.List getMessagesList() { * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; *
    */ + @java.lang.Override public java.util.List getMessagesOrBuilderList() { return messages_; @@ -222,6 +226,7 @@ public java.util.List getMessagesList() { * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; * */ + @java.lang.Override public int getMessagesCount() { return messages_.size(); } @@ -236,6 +241,7 @@ public int getMessagesCount() { * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; * */ + @java.lang.Override public com.google.pubsub.v1.PubsubMessage getMessages(int index) { return messages_.get(index); } @@ -250,6 +256,7 @@ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { * repeated .google.pubsub.v1.PubsubMessage messages = 2 [(.google.api.field_behavior) = REQUIRED]; * */ + @java.lang.Override public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int index) { return messages_.get(index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index e2240639fdbd..b801122a014a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -188,6 +188,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * @return The data. */ + @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } @@ -227,6 +228,7 @@ public int getAttributesCount() { * * map<string, string> attributes = 2; */ + @java.lang.Override public boolean containsAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -234,6 +236,7 @@ public boolean containsAttributes(java.lang.String key) { return internalGetAttributes().getMap().containsKey(key); } /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); @@ -248,6 +251,7 @@ public java.util.Map getAttributes() { * * map<string, string> attributes = 2; */ + @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } @@ -261,6 +265,7 @@ public java.util.Map getAttributesMap() { * * map<string, string> attributes = 2; */ + @java.lang.Override public java.lang.String getAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { @@ -279,6 +284,7 @@ public java.lang.String getAttributesOrDefault( * * map<string, string> attributes = 2; */ + @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -306,6 +312,7 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { * * @return The messageId. */ + @java.lang.Override public java.lang.String getMessageId() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { @@ -331,6 +338,7 @@ public java.lang.String getMessageId() { * * @return The bytes for messageId. */ + @java.lang.Override public com.google.protobuf.ByteString getMessageIdBytes() { java.lang.Object ref = messageId_; if (ref instanceof java.lang.String) { @@ -358,6 +366,7 @@ public com.google.protobuf.ByteString getMessageIdBytes() { * * @return Whether the publishTime field is set. */ + @java.lang.Override public boolean hasPublishTime() { return publishTime_ != null; } @@ -374,6 +383,7 @@ public boolean hasPublishTime() { * * @return The publishTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getPublishTime() { return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; } @@ -388,6 +398,7 @@ public com.google.protobuf.Timestamp getPublishTime() { * * .google.protobuf.Timestamp publish_time = 4; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { return getPublishTime(); } @@ -413,6 +424,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * * @return The orderingKey. */ + @java.lang.Override public java.lang.String getOrderingKey() { java.lang.Object ref = orderingKey_; if (ref instanceof java.lang.String) { @@ -443,6 +455,7 @@ public java.lang.String getOrderingKey() { * * @return The bytes for orderingKey. */ + @java.lang.Override public com.google.protobuf.ByteString getOrderingKeyBytes() { java.lang.Object ref = orderingKey_; if (ref instanceof java.lang.String) { @@ -891,6 +904,7 @@ public Builder mergeFrom( * * @return The data. */ + @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } @@ -973,6 +987,7 @@ public int getAttributesCount() { * * map<string, string> attributes = 2; */ + @java.lang.Override public boolean containsAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -980,6 +995,7 @@ public boolean containsAttributes(java.lang.String key) { return internalGetAttributes().getMap().containsKey(key); } /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); @@ -994,6 +1010,7 @@ public java.util.Map getAttributes() { * * map<string, string> attributes = 2; */ + @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } @@ -1007,6 +1024,7 @@ public java.util.Map getAttributesMap() { * * map<string, string> attributes = 2; */ + @java.lang.Override public java.lang.String getAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { @@ -1025,6 +1043,7 @@ public java.lang.String getAttributesOrDefault( * * map<string, string> attributes = 2; */ + @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 3ac4f6571436..818591419bcc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -285,223 +285,224 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oken\030\003 \001(\t\"H\n\032ListTopicSnapshotsResponse" + "\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token\030\002" + " \001(\t\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001 \001(" - + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"V" - + "\n\031DetachSubscriptionRequest\0229\n\014subscript" - + "ion\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" - + "/Topic\"\034\n\032DetachSubscriptionResponse\"\256\005\n" - + "\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topi" - + "c\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/T" - + "opic\0221\n\013push_config\030\004 \001(\0132\034.google.pubsu" - + "b.v1.PushConfig\022\034\n\024ack_deadline_seconds\030" - + "\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032" - + "message_retention_duration\030\010 \001(\0132\031.googl" - + "e.protobuf.Duration\022:\n\006labels\030\t \003(\0132*.go" - + "ogle.pubsub.v1.Subscription.LabelsEntry\022" - + "\037\n\027enable_message_ordering\030\n \001(\010\022=\n\021expi" - + "ration_policy\030\013 \001(\0132\".google.pubsub.v1.E" - + "xpirationPolicy\022\016\n\006filter\030\014 \001(\t\022>\n\022dead_" - + "letter_policy\030\r \001(\0132\".google.pubsub.v1.D" - + "eadLetterPolicy\0223\n\014retry_policy\030\016 \001(\0132\035." - + "google.pubsub.v1.RetryPolicy\032-\n\013LabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU" - + "\n\"pubsub.googleapis.com/Subscription\022/pr" - + "ojects/{project}/subscriptions/{subscrip" - + "tion}\"u\n\013RetryPolicy\0222\n\017minimum_backoff\030" - + "\001 \001(\0132\031.google.protobuf.Duration\0222\n\017maxi" - + "mum_backoff\030\002 \001(\0132\031.google.protobuf.Dura" - + "tion\"L\n\020DeadLetterPolicy\022\031\n\021dead_letter_" - + "topic\030\001 \001(\t\022\035\n\025max_delivery_attempts\030\002 \001" - + "(\005\":\n\020ExpirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.go" - + "ogle.protobuf.Duration\"\255\002\n\nPushConfig\022\025\n" - + "\rpush_endpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\013" - + "2,.google.pubsub.v1.PushConfig.Attribute" - + "sEntry\022<\n\noidc_token\030\003 \001(\0132&.google.pubs" - + "ub.v1.PushConfig.OidcTokenH\000\032<\n\tOidcToke" - + "n\022\035\n\025service_account_email\030\001 \001(\t\022\020\n\010audi" - + "ence\030\002 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authentication_" - + "method\"m\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(" - + "\t\0220\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pu" - + "bsubMessage\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n" - + "\026GetSubscriptionRequest\022@\n\014subscription\030" - + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\"\214\001\n\031UpdateSubscriptionRequest\022" - + "9\n\014subscription\030\001 \001(\0132\036.google.pubsub.v1" - + ".SubscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\"\207\001\n\030Lis" - + "tSubscriptionsRequest\022D\n\007project\030\001 \001(\tB3" - + "\340A\002\372A-\n+cloudresourcemanager.googleapis." - + "com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"k\n\031ListSubscriptionsResponse\022" - + "5\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub.v" - + "1.Subscription\022\027\n\017next_page_token\030\002 \001(\t\"" - + "]\n\031DeleteSubscriptionRequest\022@\n\014subscrip" - + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\"\223\001\n\027ModifyPushConfigReque" - + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\0226\n\013push_con" - + "fig\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB" - + "\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription\030\001 \001" - + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" - + "iption\022!\n\022return_immediately\030\002 \001(\010B\005\030\001\340A" - + "\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResp" - + "onse\022<\n\021received_messages\030\001 \003(\0132!.google" - + ".pubsub.v1.ReceivedMessage\"\225\001\n\030ModifyAck" - + "DeadlineRequest\022@\n\014subscription\030\001 \001(\tB*\340" - + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_" - + "seconds\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest" + + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"]" + + "\n\031DetachSubscriptionRequest\022@\n\014subscript" + + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" + + "/Subscription\"\034\n\032DetachSubscriptionRespo" + + "nse\"\300\005\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" + + "2\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapi" + + "s.com/Topic\0221\n\013push_config\030\004 \001(\0132\034.googl" + + "e.pubsub.v1.PushConfig\022\034\n\024ack_deadline_s" + + "econds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 " + + "\001(\010\022=\n\032message_retention_duration\030\010 \001(\0132" + + "\031.google.protobuf.Duration\022:\n\006labels\030\t \003" + + "(\0132*.google.pubsub.v1.Subscription.Label" + + "sEntry\022\037\n\027enable_message_ordering\030\n \001(\010\022" + + "=\n\021expiration_policy\030\013 \001(\0132\".google.pubs" + + "ub.v1.ExpirationPolicy\022\016\n\006filter\030\014 \001(\t\022>" + + "\n\022dead_letter_policy\030\r \001(\0132\".google.pubs" + + "ub.v1.DeadLetterPolicy\0223\n\014retry_policy\030\016" + + " \001(\0132\035.google.pubsub.v1.RetryPolicy\022\020\n\010d" + + "etached\030\017 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub.google" + + "apis.com/Subscription\022/projects/{project" + + "}/subscriptions/{subscription}\"u\n\013RetryP" + + "olicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.google." + + "protobuf.Duration\0222\n\017maximum_backoff\030\002 \001" + + "(\0132\031.google.protobuf.Duration\"L\n\020DeadLet" + + "terPolicy\022\031\n\021dead_letter_topic\030\001 \001(\t\022\035\n\025" + + "max_delivery_attempts\030\002 \001(\005\":\n\020Expiratio" + + "nPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.protobuf.D" + + "uration\"\255\002\n\nPushConfig\022\025\n\rpush_endpoint\030" + + "\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google.pubsu" + + "b.v1.PushConfig.AttributesEntry\022<\n\noidc_" + + "token\030\003 \001(\0132&.google.pubsub.v1.PushConfi" + + "g.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025service_ac" + + "count_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017A" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001B\027\n\025authentication_method\"m\n\017Recei" + + "vedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 " + + "\001(\0132\037.google.pubsub.v1.PubsubMessage\022\030\n\020" + + "delivery_attempt\030\003 \001(\005\"Z\n\026GetSubscriptio" + + "nRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" + + "pubsub.googleapis.com/Subscription\"\214\001\n\031U" + + "pdateSubscriptionRequest\0229\n\014subscription" + + "\030\001 \001(\0132\036.google.pubsub.v1.SubscriptionB\003" + + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscriptionsR" + + "equest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudre" + + "sourcemanager.googleapis.com/Project\022\021\n\t" + + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031L" + + "istSubscriptionsResponse\0225\n\rsubscription" + + "s\030\001 \003(\0132\036.google.pubsub.v1.Subscription\022" + + "\027\n\017next_page_token\030\002 \001(\t\"]\n\031DeleteSubscr" + + "iptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\"" + + "\223\001\n\027ModifyPushConfigRequest\022@\n\014subscript" + + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" + + "/Subscription\0226\n\013push_config\030\002 \001(\0132\034.goo" + + "gle.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\022!\n\022retur" + + "n_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messag" + + "es\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n\021receive" + + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" + + "ivedMessage\"\225\001\n\030ModifyAckDeadlineRequest" + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\022\024\n\007ack_ids\030\002 " - + "\003(\tB\003\340A\002\"\350\001\n\024StreamingPullRequest\022@\n\014sub" - + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027" - + "modify_deadline_seconds\030\003 \003(\005\022\037\n\027modify_" - + "deadline_ack_ids\030\004 \003(\t\022(\n\033stream_ack_dea" - + "dline_seconds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 " - + "\001(\t\"U\n\025StreamingPullResponse\022<\n\021received" - + "_messages\030\001 \003(\0132!.google.pubsub.v1.Recei" - + "vedMessage\"\203\002\n\025CreateSnapshotRequest\0224\n\004" - + "name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.co" - + "m/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$" - + "\n\"pubsub.googleapis.com/Subscription\022C\n\006" - + "labels\030\003 \003(\01323.google.pubsub.v1.CreateSn" - + "apshotRequest.LabelsEntry\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025Upd" - + "ateSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.g" - + "oogle.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" - + "\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030" - + "\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022" - + "/\n\013expire_time\030\003 \001(\0132\032.google.protobuf.T" - + "imestamp\0226\n\006labels\030\004 \003(\0132&.google.pubsub" - + ".v1.Snapshot.LabelsEntry\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pu" - + "bsub.googleapis.com/Snapshot\022\'projects/{" - + "project}/snapshots/{snapshot}\"N\n\022GetSnap" - + "shotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036p" - + "ubsub.googleapis.com/Snapshot\"\203\001\n\024ListSn" - + "apshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" - + "+cloudresourcemanager.googleapis.com/Pro" - + "ject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapshot" - + "s\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"Q\n\025DeleteSnapshotRe" - + "quest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub." - + "googleapis.com/Snapshot\"\276\001\n\013SeekRequest\022" - + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" - + "ogleapis.com/Subscription\022*\n\004time\030\002 \001(\0132" - + "\032.google.protobuf.TimestampH\000\0227\n\010snapsho" - + "t\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/Snap" - + "shotH\000B\010\n\006target\"\016\n\014SeekResponse2\243\013\n\tPub" - + "lisher\022q\n\013CreateTopic\022\027.google.pubsub.v1" - + ".Topic\032\027.google.pubsub.v1.Topic\"0\202\323\344\223\002#\032" - + "\036/v1/{name=projects/*/topics/*}:\001*\332A\004nam" - + "e\022}\n\013UpdateTopic\022$.google.pubsub.v1.Upda" - + "teTopicRequest\032\027.google.pubsub.v1.Topic\"" - + "/\202\323\344\223\002)2$/v1/{topic.name=projects/*/topi" - + "cs/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1." - + "PublishRequest\032!.google.pubsub.v1.Publis" - + "hResponse\"C\202\323\344\223\002,\"\'/v1/{topic=projects/*" - + "/topics/*}:publish:\001*\332A\016topic,messages\022w" - + "\n\010GetTopic\022!.google.pubsub.v1.GetTopicRe" - + "quest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002!\022\037" - + "/v1/{topic=projects/*/topics/*}\332A\005topic\022" - + "\212\001\n\nListTopics\022#.google.pubsub.v1.ListTo" - + "picsRequest\032$.google.pubsub.v1.ListTopic" - + "sResponse\"1\202\323\344\223\002!\022\037/v1/{project=projects" - + "/*}/topics\332A\007project\022\272\001\n\026ListTopicSubscr" - + "iptions\022/.google.pubsub.v1.ListTopicSubs" - + "criptionsRequest\0320.google.pubsub.v1.List" - + "TopicSubscriptionsResponse\"=\202\323\344\223\002/\022-/v1/" - + "{topic=projects/*/topics/*}/subscription" - + "s\332A\005topic\022\252\001\n\022ListTopicSnapshots\022+.googl" - + "e.pubsub.v1.ListTopicSnapshotsRequest\032,." - + "google.pubsub.v1.ListTopicSnapshotsRespo" - + "nse\"9\202\323\344\223\002+\022)/v1/{topic=projects/*/topic" - + "s/*}/snapshots\332A\005topic\022|\n\013DeleteTopic\022$." - + "google.pubsub.v1.DeleteTopicRequest\032\026.go" - + "ogle.protobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topic=" - + "projects/*/topics/*}\332A\005topic\022\255\001\n\022DetachS" - + "ubscription\022+.google.pubsub.v1.DetachSub" - + "scriptionRequest\032,.google.pubsub.v1.Deta" - + "chSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{sub" - + "scription=projects/*/subscriptions/*}:de" - + "tach\032p\312A\025pubsub.googleapis.com\322AUhttps:/" - + "/www.googleapis.com/auth/cloud-platform," - + "https://www.googleapis.com/auth/pubsub2\203" - + "\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036.g" - + "oogle.pubsub.v1.Subscription\032\036.google.pu" - + "bsub.v1.Subscription\"^\202\323\344\223\002*\032%/v1/{name=" - + "projects/*/subscriptions/*}:\001*\332A+name,to" - + "pic,push_config,ack_deadline_seconds\022\241\001\n" - + "\017GetSubscription\022(.google.pubsub.v1.GetS" - + "ubscriptionRequest\032\036.google.pubsub.v1.Su" - + "bscription\"D\202\323\344\223\002/\022-/v1/{subscription=pr" - + "ojects/*/subscriptions/*}\332A\014subscription" - + "\022\240\001\n\022UpdateSubscription\022+.google.pubsub." - + "v1.UpdateSubscriptionRequest\032\036.google.pu" - + "bsub.v1.Subscription\"=\202\323\344\223\002722/v1/{subsc" - + "ription.name=projects/*/subscriptions/*}" - + ":\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsu" - + "b.v1.ListSubscriptionsRequest\032+.google.p" - + "ubsub.v1.ListSubscriptionsResponse\"8\202\323\344\223" - + "\002(\022&/v1/{project=projects/*}/subscriptio" - + "ns\332A\007project\022\237\001\n\022DeleteSubscription\022+.go" - + "ogle.pubsub.v1.DeleteSubscriptionRequest" - + "\032\026.google.protobuf.Empty\"D\202\323\344\223\002/*-/v1/{s" - + "ubscription=projects/*/subscriptions/*}\332" - + "A\014subscription\022\317\001\n\021ModifyAckDeadline\022*.g" - + "oogle.pubsub.v1.ModifyAckDeadlineRequest" - + "\032\026.google.protobuf.Empty\"v\202\323\344\223\002D\"?/v1/{s" - + "ubscription=projects/*/subscriptions/*}:" - + "modifyAckDeadline:\001*\332A)subscription,ack_" - + "ids,ack_deadline_seconds\022\250\001\n\013Acknowledge" - + "\022$.google.pubsub.v1.AcknowledgeRequest\032\026" - + ".google.protobuf.Empty\"[\202\323\344\223\002>\"9/v1/{sub" - + "scription=projects/*/subscriptions/*}:ac" - + "knowledge:\001*\332A\024subscription,ack_ids\022\263\001\n\004" - + "Pull\022\035.google.pubsub.v1.PullRequest\032\036.go" - + "ogle.pubsub.v1.PullResponse\"l\202\323\344\223\0027\"2/v1" - + "/{subscription=projects/*/subscriptions/" - + "*}:pull:\001*\332A,subscription,return_immedia" - + "tely,max_messages\022f\n\rStreamingPull\022&.goo" - + "gle.pubsub.v1.StreamingPullRequest\032\'.goo" - + "gle.pubsub.v1.StreamingPullResponse\"\000(\0010" - + "\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub.v" - + "1.ModifyPushConfigRequest\032\026.google.proto" - + "buf.Empty\"d\202\323\344\223\002C\">/v1/{subscription=pro" - + "jects/*/subscriptions/*}:modifyPushConfi" - + "g:\001*\332A\030subscription,push_config\022\211\001\n\013GetS" - + "napshot\022$.google.pubsub.v1.GetSnapshotRe" - + "quest\032\032.google.pubsub.v1.Snapshot\"8\202\323\344\223\002" - + "\'\022%/v1/{snapshot=projects/*/snapshots/*}" - + "\332A\010snapshot\022\226\001\n\rListSnapshots\022&.google.p" - + "ubsub.v1.ListSnapshotsRequest\032\'.google.p" - + "ubsub.v1.ListSnapshotsResponse\"4\202\323\344\223\002$\022\"" - + "/v1/{project=projects/*}/snapshots\332A\007pro" - + "ject\022\227\001\n\016CreateSnapshot\022\'.google.pubsub." - + "v1.CreateSnapshotRequest\032\032.google.pubsub" - + ".v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{name=projects" - + "/*/snapshots/*}:\001*\332A\021name,subscription\022\214" - + "\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.Upd" - + "ateSnapshotRequest\032\032.google.pubsub.v1.Sn" - + "apshot\"5\202\323\344\223\002/2*/v1/{snapshot.name=proje" - + "cts/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot" - + "\022\'.google.pubsub.v1.DeleteSnapshotReques" - + "t\032\026.google.protobuf.Empty\"8\202\323\344\223\002\'*%/v1/{" - + "snapshot=projects/*/snapshots/*}\332A\010snaps" - + "hot\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRequ" - + "est\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344" - + "\223\0027\"2/v1/{subscription=projects/*/subscr" - + "iptions/*}:seek:\001*\032p\312A\025pubsub.googleapis" - + ".com\322AUhttps://www.googleapis.com/auth/c" - + "loud-platform,https://www.googleapis.com" - + "/auth/pubsubB\256\001\n\024com.google.pubsub.v1B\013P" - + "ubsubProtoP\001Z6google.golang.org/genproto" - + "/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026Google" - + ".Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V" - + "1\352\002\031Google::Cloud::PubSub::V1b\006proto3" + + "oogleapis.com/Subscription\022\024\n\007ack_ids\030\004 " + + "\003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003" + + "\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscriptio" + + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S" + + "ubscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\350\001\n\024St" + + "reamingPullRequest\022@\n\014subscription\030\001 \001(\t" + + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" + + "tion\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_deadline" + + "_seconds\030\003 \003(\005\022\037\n\027modify_deadline_ack_id" + + "s\030\004 \003(\t\022(\n\033stream_ack_deadline_seconds\030\005" + + " \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\"U\n\025Streamin" + + "gPullResponse\022<\n\021received_messages\030\001 \003(\013" + + "2!.google.pubsub.v1.ReceivedMessage\"\203\002\n\025" + + "CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002" + + "\372A \n\036pubsub.googleapis.com/Snapshot\022@\n\014s" + + "ubscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.google" + + "apis.com/Subscription\022C\n\006labels\030\003 \003(\01323." + + "google.pubsub.v1.CreateSnapshotRequest.L" + + "abelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequ" + + "est\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1" + + ".SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapsho" + + "t\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pub" + + "sub.googleapis.com/Topic\022/\n\013expire_time\030" + + "\003 \001(\0132\032.google.protobuf.Timestamp\0226\n\006lab" + + "els\030\004 \003(\0132&.google.pubsub.v1.Snapshot.La" + + "belsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis" + + ".com/Snapshot\022\'projects/{project}/snapsh" + + "ots/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010" + + "snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapi" + + "s.com/Snapshot\"\203\001\n\024ListSnapshotsRequest\022" + + "D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcem" + + "anager.googleapis.com/Project\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnap" + + "shotsResponse\022-\n\tsnapshots\030\001 \003(\0132\032.googl" + + "e.pubsub.v1.Snapshot\022\027\n\017next_page_token\030" + + "\002 \001(\t\"Q\n\025DeleteSnapshotRequest\0228\n\010snapsh" + + "ot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/" + + "Snapshot\"\276\001\n\013SeekRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022*\n\004time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036p" + + "ubsub.googleapis.com/SnapshotH\000B\010\n\006targe" + + "t\"\016\n\014SeekResponse2\243\013\n\tPublisher\022q\n\013Creat" + + "eTopic\022\027.google.pubsub.v1.Topic\032\027.google" + + ".pubsub.v1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=proj" + + "ects/*/topics/*}:\001*\332A\004name\022}\n\013UpdateTopi" + + "c\022$.google.pubsub.v1.UpdateTopicRequest\032" + + "\027.google.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{t" + + "opic.name=projects/*/topics/*}:\001*\022\223\001\n\007Pu" + + "blish\022 .google.pubsub.v1.PublishRequest\032" + + "!.google.pubsub.v1.PublishResponse\"C\202\323\344\223" + + "\002,\"\'/v1/{topic=projects/*/topics/*}:publ" + + "ish:\001*\332A\016topic,messages\022w\n\010GetTopic\022!.go" + + "ogle.pubsub.v1.GetTopicRequest\032\027.google." + + "pubsub.v1.Topic\"/\202\323\344\223\002!\022\037/v1/{topic=proj" + + "ects/*/topics/*}\332A\005topic\022\212\001\n\nListTopics\022" + + "#.google.pubsub.v1.ListTopicsRequest\032$.g" + + "oogle.pubsub.v1.ListTopicsResponse\"1\202\323\344\223" + + "\002!\022\037/v1/{project=projects/*}/topics\332A\007pr" + + "oject\022\272\001\n\026ListTopicSubscriptions\022/.googl" + + "e.pubsub.v1.ListTopicSubscriptionsReques" + + "t\0320.google.pubsub.v1.ListTopicSubscripti" + + "onsResponse\"=\202\323\344\223\002/\022-/v1/{topic=projects" + + "/*/topics/*}/subscriptions\332A\005topic\022\252\001\n\022L" + + "istTopicSnapshots\022+.google.pubsub.v1.Lis" + + "tTopicSnapshotsRequest\032,.google.pubsub.v" + + "1.ListTopicSnapshotsResponse\"9\202\323\344\223\002+\022)/v" + + "1/{topic=projects/*/topics/*}/snapshots\332" + + "A\005topic\022|\n\013DeleteTopic\022$.google.pubsub.v" + + "1.DeleteTopicRequest\032\026.google.protobuf.E" + + "mpty\"/\202\323\344\223\002!*\037/v1/{topic=projects/*/topi" + + "cs/*}\332A\005topic\022\255\001\n\022DetachSubscription\022+.g" + + "oogle.pubsub.v1.DetachSubscriptionReques" + + "t\032,.google.pubsub.v1.DetachSubscriptionR" + + "esponse\"<\202\323\344\223\0026\"4/v1/{subscription=proje" + + "cts/*/subscriptions/*}:detach\032p\312A\025pubsub" + + ".googleapis.com\322AUhttps://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/pubsub2\203\025\n\nSubscriber\022\264" + + "\001\n\022CreateSubscription\022\036.google.pubsub.v1" + + ".Subscription\032\036.google.pubsub.v1.Subscri" + + "ption\"^\202\323\344\223\002*\032%/v1/{name=projects/*/subs" + + "criptions/*}:\001*\332A+name,topic,push_config" + + ",ack_deadline_seconds\022\241\001\n\017GetSubscriptio" + + "n\022(.google.pubsub.v1.GetSubscriptionRequ" + + "est\032\036.google.pubsub.v1.Subscription\"D\202\323\344" + + "\223\002/\022-/v1/{subscription=projects/*/subscr" + + "iptions/*}\332A\014subscription\022\240\001\n\022UpdateSubs" + + "cription\022+.google.pubsub.v1.UpdateSubscr" + + "iptionRequest\032\036.google.pubsub.v1.Subscri" + + "ption\"=\202\323\344\223\002722/v1/{subscription.name=pr" + + "ojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSub" + + "scriptions\022*.google.pubsub.v1.ListSubscr" + + "iptionsRequest\032+.google.pubsub.v1.ListSu" + + "bscriptionsResponse\"8\202\323\344\223\002(\022&/v1/{projec" + + "t=projects/*}/subscriptions\332A\007project\022\237\001" + + "\n\022DeleteSubscription\022+.google.pubsub.v1." + + "DeleteSubscriptionRequest\032\026.google.proto" + + "buf.Empty\"D\202\323\344\223\002/*-/v1/{subscription=pro" + + "jects/*/subscriptions/*}\332A\014subscription\022" + + "\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v1" + + ".ModifyAckDeadlineRequest\032\026.google.proto" + + "buf.Empty\"v\202\323\344\223\002D\"?/v1/{subscription=pro" + + "jects/*/subscriptions/*}:modifyAckDeadli" + + "ne:\001*\332A)subscription,ack_ids,ack_deadlin" + + "e_seconds\022\250\001\n\013Acknowledge\022$.google.pubsu" + + "b.v1.AcknowledgeRequest\032\026.google.protobu" + + "f.Empty\"[\202\323\344\223\002>\"9/v1/{subscription=proje" + + "cts/*/subscriptions/*}:acknowledge:\001*\332A\024" + + "subscription,ack_ids\022\263\001\n\004Pull\022\035.google.p" + + "ubsub.v1.PullRequest\032\036.google.pubsub.v1." + + "PullResponse\"l\202\323\344\223\0027\"2/v1/{subscription=" + + "projects/*/subscriptions/*}:pull:\001*\332A,su" + + "bscription,return_immediately,max_messag" + + "es\022f\n\rStreamingPull\022&.google.pubsub.v1.S" + + "treamingPullRequest\032\'.google.pubsub.v1.S" + + "treamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPus" + + "hConfig\022).google.pubsub.v1.ModifyPushCon" + + "figRequest\032\026.google.protobuf.Empty\"d\202\323\344\223" + + "\002C\">/v1/{subscription=projects/*/subscri" + + "ptions/*}:modifyPushConfig:\001*\332A\030subscrip" + + "tion,push_config\022\211\001\n\013GetSnapshot\022$.googl" + + "e.pubsub.v1.GetSnapshotRequest\032\032.google." + + "pubsub.v1.Snapshot\"8\202\323\344\223\002\'\022%/v1/{snapsho" + + "t=projects/*/snapshots/*}\332A\010snapshot\022\226\001\n" + + "\rListSnapshots\022&.google.pubsub.v1.ListSn" + + "apshotsRequest\032\'.google.pubsub.v1.ListSn" + + "apshotsResponse\"4\202\323\344\223\002$\022\"/v1/{project=pr" + + "ojects/*}/snapshots\332A\007project\022\227\001\n\016Create" + + "Snapshot\022\'.google.pubsub.v1.CreateSnapsh" + + "otRequest\032\032.google.pubsub.v1.Snapshot\"@\202" + + "\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}" + + ":\001*\332A\021name,subscription\022\214\001\n\016UpdateSnapsh" + + "ot\022\'.google.pubsub.v1.UpdateSnapshotRequ" + + "est\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002/2" + + "*/v1/{snapshot.name=projects/*/snapshots" + + "/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsu" + + "b.v1.DeleteSnapshotRequest\032\026.google.prot" + + "obuf.Empty\"8\202\323\344\223\002\'*%/v1/{snapshot=projec" + + "ts/*/snapshots/*}\332A\010snapshot\022\204\001\n\004Seek\022\035." + + "google.pubsub.v1.SeekRequest\032\036.google.pu" + + "bsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subsc" + + "ription=projects/*/subscriptions/*}:seek" + + ":\001*\032p\312A\025pubsub.googleapis.com\322AUhttps://" + + "www.googleapis.com/auth/cloud-platform,h" + + "ttps://www.googleapis.com/auth/pubsubB\256\001" + + "\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z6g" + + "oogle.golang.org/genproto/googleapis/pub" + + "sub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub.V" + + "1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Clo" + + "ud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -675,6 +676,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Filter", "DeadLetterPolicy", "RetryPolicy", + "Detached", }); internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 401fdeb0f4c9..4c59e15a5038 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -135,6 +135,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The subscription. */ + @java.lang.Override public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { @@ -160,6 +161,7 @@ public java.lang.String getSubscription() { * * @return The bytes for subscription. */ + @java.lang.Override public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { @@ -192,6 +194,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * @return The returnImmediately. */ + @java.lang.Override @java.lang.Deprecated public boolean getReturnImmediately() { return returnImmediately_; @@ -212,6 +215,7 @@ public boolean getReturnImmediately() { * * @return The maxMessages. */ + @java.lang.Override public int getMaxMessages() { return maxMessages_; } @@ -700,6 +704,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * @return The returnImmediately. */ + @java.lang.Override @java.lang.Deprecated public boolean getReturnImmediately() { return returnImmediately_; @@ -772,6 +777,7 @@ public Builder clearReturnImmediately() { * * @return The maxMessages. */ + @java.lang.Override public int getMaxMessages() { return maxMessages_; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 6e66eb427ddf..bca433c65141 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -133,6 +133,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ + @java.lang.Override public java.util.List getReceivedMessagesList() { return receivedMessages_; } @@ -148,6 +149,7 @@ public java.util.List getReceivedMessagesL * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ + @java.lang.Override public java.util.List getReceivedMessagesOrBuilderList() { return receivedMessages_; @@ -164,6 +166,7 @@ public java.util.List getReceivedMessagesL * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ + @java.lang.Override public int getReceivedMessagesCount() { return receivedMessages_.size(); } @@ -179,6 +182,7 @@ public int getReceivedMessagesCount() { * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ + @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } @@ -194,6 +198,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ + @java.lang.Override public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { return receivedMessages_.get(index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 5557855c8d00..12614a75b0dd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -347,6 +347,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The serviceAccountEmail. */ + @java.lang.Override public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { @@ -373,6 +374,7 @@ public java.lang.String getServiceAccountEmail() { * * @return The bytes for serviceAccountEmail. */ + @java.lang.Override public com.google.protobuf.ByteString getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { @@ -403,6 +405,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * * @return The audience. */ + @java.lang.Override public java.lang.String getAudience() { java.lang.Object ref = audience_; if (ref instanceof java.lang.String) { @@ -430,6 +433,7 @@ public java.lang.String getAudience() { * * @return The bytes for audience. */ + @java.lang.Override public com.google.protobuf.ByteString getAudienceBytes() { java.lang.Object ref = audience_; if (ref instanceof java.lang.String) { @@ -1147,6 +1151,7 @@ public AuthenticationMethodCase getAuthenticationMethodCase() { * * @return The pushEndpoint. */ + @java.lang.Override public java.lang.String getPushEndpoint() { java.lang.Object ref = pushEndpoint_; if (ref instanceof java.lang.String) { @@ -1170,6 +1175,7 @@ public java.lang.String getPushEndpoint() { * * @return The bytes for pushEndpoint. */ + @java.lang.Override public com.google.protobuf.ByteString getPushEndpointBytes() { java.lang.Object ref = pushEndpoint_; if (ref instanceof java.lang.String) { @@ -1231,6 +1237,7 @@ public int getAttributesCount() { * * map<string, string> attributes = 2; */ + @java.lang.Override public boolean containsAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -1238,6 +1245,7 @@ public boolean containsAttributes(java.lang.String key) { return internalGetAttributes().getMap().containsKey(key); } /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); @@ -1266,6 +1274,7 @@ public java.util.Map getAttributes() { * * map<string, string> attributes = 2; */ + @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } @@ -1293,6 +1302,7 @@ public java.util.Map getAttributesMap() { * * map<string, string> attributes = 2; */ + @java.lang.Override public java.lang.String getAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { @@ -1325,6 +1335,7 @@ public java.lang.String getAttributesOrDefault( * * map<string, string> attributes = 2; */ + @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -1349,6 +1360,7 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { * * @return Whether the oidcToken field is set. */ + @java.lang.Override public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } @@ -1364,6 +1376,7 @@ public boolean hasOidcToken() { * * @return The oidcToken. */ + @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { if (authenticationMethodCase_ == 3) { return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; @@ -1380,6 +1393,7 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { * * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; */ + @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() { if (authenticationMethodCase_ == 3) { return (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_; @@ -1965,6 +1979,7 @@ public int getAttributesCount() { * * map<string, string> attributes = 2; */ + @java.lang.Override public boolean containsAttributes(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -1972,6 +1987,7 @@ public boolean containsAttributes(java.lang.String key) { return internalGetAttributes().getMap().containsKey(key); } /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); @@ -2000,6 +2016,7 @@ public java.util.Map getAttributes() { * * map<string, string> attributes = 2; */ + @java.lang.Override public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } @@ -2027,6 +2044,7 @@ public java.util.Map getAttributesMap() { * * map<string, string> attributes = 2; */ + @java.lang.Override public java.lang.String getAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { @@ -2059,6 +2077,7 @@ public java.lang.String getAttributesOrDefault( * * map<string, string> attributes = 2; */ + @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -2190,6 +2209,7 @@ public Builder putAllAttributes(java.util.Map.google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; */ + @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() { if ((authenticationMethodCase_ == 3) && (oidcTokenBuilder_ != null)) { return oidcTokenBuilder_.getMessageOrBuilder(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 298013f30799..38e472e7ad4e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -144,6 +144,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The ackId. */ + @java.lang.Override public java.lang.String getAckId() { java.lang.Object ref = ackId_; if (ref instanceof java.lang.String) { @@ -166,6 +167,7 @@ public java.lang.String getAckId() { * * @return The bytes for ackId. */ + @java.lang.Override public com.google.protobuf.ByteString getAckIdBytes() { java.lang.Object ref = ackId_; if (ref instanceof java.lang.String) { @@ -191,6 +193,7 @@ public com.google.protobuf.ByteString getAckIdBytes() { * * @return Whether the message field is set. */ + @java.lang.Override public boolean hasMessage() { return message_ != null; } @@ -205,6 +208,7 @@ public boolean hasMessage() { * * @return The message. */ + @java.lang.Override public com.google.pubsub.v1.PubsubMessage getMessage() { return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } @@ -217,6 +221,7 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { * * .google.pubsub.v1.PubsubMessage message = 2; */ + @java.lang.Override public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { return getMessage(); } @@ -245,6 +250,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * @return The deliveryAttempt. */ + @java.lang.Override public int getDeliveryAttempt() { return deliveryAttempt_; } @@ -919,6 +925,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * @return The deliveryAttempt. */ + @java.lang.Override public int getDeliveryAttempt() { return deliveryAttempt_; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 4d7f081eafd5..4b6a1934e885 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -151,6 +151,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return Whether the minimumBackoff field is set. */ + @java.lang.Override public boolean hasMinimumBackoff() { return minimumBackoff_ != null; } @@ -166,6 +167,7 @@ public boolean hasMinimumBackoff() { * * @return The minimumBackoff. */ + @java.lang.Override public com.google.protobuf.Duration getMinimumBackoff() { return minimumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -181,6 +183,7 @@ public com.google.protobuf.Duration getMinimumBackoff() { * * .google.protobuf.Duration minimum_backoff = 1; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { return getMinimumBackoff(); } @@ -199,6 +202,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { * * @return Whether the maximumBackoff field is set. */ + @java.lang.Override public boolean hasMaximumBackoff() { return maximumBackoff_ != null; } @@ -214,6 +218,7 @@ public boolean hasMaximumBackoff() { * * @return The maximumBackoff. */ + @java.lang.Override public com.google.protobuf.Duration getMaximumBackoff() { return maximumBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -229,6 +234,7 @@ public com.google.protobuf.Duration getMaximumBackoff() { * * .google.protobuf.Duration maximum_backoff = 2; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { return getMaximumBackoff(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 7b5b68eeb14d..48cca085a2b0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -193,6 +193,7 @@ public TargetCase getTargetCase() { * * @return The subscription. */ + @java.lang.Override public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { @@ -217,6 +218,7 @@ public java.lang.String getSubscription() { * * @return The bytes for subscription. */ + @java.lang.Override public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { @@ -251,6 +253,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * @return Whether the time field is set. */ + @java.lang.Override public boolean hasTime() { return targetCase_ == 2; } @@ -275,6 +278,7 @@ public boolean hasTime() { * * @return The time. */ + @java.lang.Override public com.google.protobuf.Timestamp getTime() { if (targetCase_ == 2) { return (com.google.protobuf.Timestamp) target_; @@ -300,6 +304,7 @@ public com.google.protobuf.Timestamp getTime() { * * .google.protobuf.Timestamp time = 2; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { if (targetCase_ == 2) { return (com.google.protobuf.Timestamp) target_; @@ -904,6 +909,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * @return Whether the time field is set. */ + @java.lang.Override public boolean hasTime() { return targetCase_ == 2; } @@ -928,6 +934,7 @@ public boolean hasTime() { * * @return The time. */ + @java.lang.Override public com.google.protobuf.Timestamp getTime() { if (timeBuilder_ == null) { if (targetCase_ == 2) { @@ -1117,6 +1124,7 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { * * .google.protobuf.Timestamp time = 2; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { if ((targetCase_ == 2) && (timeBuilder_ != null)) { return timeBuilder_.getMessageOrBuilder(); @@ -1182,6 +1190,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * @return The snapshot. */ + @java.lang.Override public java.lang.String getSnapshot() { java.lang.Object ref = ""; if (targetCase_ == 3) { @@ -1211,6 +1220,7 @@ public java.lang.String getSnapshot() { * * @return The bytes for snapshot. */ + @java.lang.Override public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = ""; if (targetCase_ == 3) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index bebe344042ed..6d6000105232 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -175,6 +175,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -197,6 +198,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -222,6 +224,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The topic. */ + @java.lang.Override public java.lang.String getTopic() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { @@ -244,6 +247,7 @@ public java.lang.String getTopic() { * * @return The bytes for topic. */ + @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { @@ -278,6 +282,7 @@ public com.google.protobuf.ByteString getTopicBytes() { * * @return Whether the expireTime field is set. */ + @java.lang.Override public boolean hasExpireTime() { return expireTime_ != null; } @@ -301,6 +306,7 @@ public boolean hasExpireTime() { * * @return The expireTime. */ + @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } @@ -322,6 +328,7 @@ public com.google.protobuf.Timestamp getExpireTime() { * * .google.protobuf.Timestamp expire_time = 3; */ + @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { return getExpireTime(); } @@ -361,6 +368,7 @@ public int getLabelsCount() { * * map<string, string> labels = 4; */ + @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -368,6 +376,7 @@ public boolean containsLabels(java.lang.String key) { return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); @@ -382,6 +391,7 @@ public java.util.Map getLabels() { * * map<string, string> labels = 4; */ + @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } @@ -395,6 +405,7 @@ public java.util.Map getLabelsMap() { * * map<string, string> labels = 4; */ + @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); @@ -412,6 +423,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * map<string, string> labels = 4; */ + @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -1337,6 +1349,7 @@ public int getLabelsCount() { * * map<string, string> labels = 4; */ + @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -1344,6 +1357,7 @@ public boolean containsLabels(java.lang.String key) { return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); @@ -1358,6 +1372,7 @@ public java.util.Map getLabels() { * * map<string, string> labels = 4; */ + @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } @@ -1371,6 +1386,7 @@ public java.util.Map getLabelsMap() { * * map<string, string> labels = 4; */ + @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { @@ -1389,6 +1405,7 @@ public java.lang.String getLabelsOrDefault( * * map<string, string> labels = 4; */ + @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 6d30c9dafbec..ba52cd753977 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -200,6 +200,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return The subscription. */ + @java.lang.Override public java.lang.String getSubscription() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { @@ -227,6 +228,7 @@ public java.lang.String getSubscription() { * * @return The bytes for subscription. */ + @java.lang.Override public com.google.protobuf.ByteString getSubscriptionBytes() { java.lang.Object ref = subscription_; if (ref instanceof java.lang.String) { @@ -339,6 +341,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * @return A list containing the modifyDeadlineSeconds. */ + @java.lang.Override public java.util.List getModifyDeadlineSecondsList() { return modifyDeadlineSeconds_; } @@ -487,6 +490,7 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { * * @return The streamAckDeadlineSeconds. */ + @java.lang.Override public int getStreamAckDeadlineSeconds() { return streamAckDeadlineSeconds_; } @@ -509,6 +513,7 @@ public int getStreamAckDeadlineSeconds() { * * @return The clientId. */ + @java.lang.Override public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { @@ -536,6 +541,7 @@ public java.lang.String getClientId() { * * @return The bytes for clientId. */ + @java.lang.Override public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { @@ -1762,6 +1768,7 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value * * @return The streamAckDeadlineSeconds. */ + @java.lang.Override public int getStreamAckDeadlineSeconds() { return streamAckDeadlineSeconds_; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index a2e4ad7de1e9..8b5c0a1ad1d5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -131,6 +131,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ + @java.lang.Override public java.util.List getReceivedMessagesList() { return receivedMessages_; } @@ -143,6 +144,7 @@ public java.util.List getReceivedMessagesL * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ + @java.lang.Override public java.util.List getReceivedMessagesOrBuilderList() { return receivedMessages_; @@ -156,6 +158,7 @@ public java.util.List getReceivedMessagesL * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ + @java.lang.Override public int getReceivedMessagesCount() { return receivedMessages_.size(); } @@ -168,6 +171,7 @@ public int getReceivedMessagesCount() { * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ + @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } @@ -180,6 +184,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ + @java.lang.Override public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { return receivedMessages_.get(index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 64391376b948..5d4db2928d0a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -197,6 +197,11 @@ private Subscription( retryPolicy_ = subBuilder.buildPartial(); } + break; + } + case 120: + { + detached_ = input.readBool(); break; } default: @@ -262,6 +267,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -289,6 +295,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -318,6 +325,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * @return The topic. */ + @java.lang.Override public java.lang.String getTopic() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { @@ -344,6 +352,7 @@ public java.lang.String getTopic() { * * @return The bytes for topic. */ + @java.lang.Override public com.google.protobuf.ByteString getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { @@ -371,6 +380,7 @@ public com.google.protobuf.ByteString getTopicBytes() { * * @return Whether the pushConfig field is set. */ + @java.lang.Override public boolean hasPushConfig() { return pushConfig_ != null; } @@ -387,6 +397,7 @@ public boolean hasPushConfig() { * * @return The pushConfig. */ + @java.lang.Override public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } @@ -401,6 +412,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * * .google.pubsub.v1.PushConfig push_config = 4; */ + @java.lang.Override public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { return getPushConfig(); } @@ -434,6 +446,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * @return The ackDeadlineSeconds. */ + @java.lang.Override public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } @@ -457,6 +470,7 @@ public int getAckDeadlineSeconds() { * * @return The retainAckedMessages. */ + @java.lang.Override public boolean getRetainAckedMessages() { return retainAckedMessages_; } @@ -479,6 +493,7 @@ public boolean getRetainAckedMessages() { * * @return Whether the messageRetentionDuration field is set. */ + @java.lang.Override public boolean hasMessageRetentionDuration() { return messageRetentionDuration_ != null; } @@ -498,6 +513,7 @@ public boolean hasMessageRetentionDuration() { * * @return The messageRetentionDuration. */ + @java.lang.Override public com.google.protobuf.Duration getMessageRetentionDuration() { return messageRetentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() @@ -517,6 +533,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * * .google.protobuf.Duration message_retention_duration = 8; */ + @java.lang.Override public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { return getMessageRetentionDuration(); } @@ -556,6 +573,7 @@ public int getLabelsCount() { * * map<string, string> labels = 9; */ + @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -563,6 +581,7 @@ public boolean containsLabels(java.lang.String key) { return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); @@ -577,6 +596,7 @@ public java.util.Map getLabels() { * * map<string, string> labels = 9; */ + @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } @@ -590,6 +610,7 @@ public java.util.Map getLabelsMap() { * * map<string, string> labels = 9; */ + @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); @@ -607,6 +628,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * map<string, string> labels = 9; */ + @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -637,6 +659,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * @return The enableMessageOrdering. */ + @java.lang.Override public boolean getEnableMessageOrdering() { return enableMessageOrdering_; } @@ -659,6 +682,7 @@ public boolean getEnableMessageOrdering() { * * @return Whether the expirationPolicy field is set. */ + @java.lang.Override public boolean hasExpirationPolicy() { return expirationPolicy_ != null; } @@ -678,6 +702,7 @@ public boolean hasExpirationPolicy() { * * @return The expirationPolicy. */ + @java.lang.Override public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { return expirationPolicy_ == null ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() @@ -697,6 +722,7 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; */ + @java.lang.Override public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder() { return getExpirationPolicy(); } @@ -711,15 +737,13 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * then only `PubsubMessage`s whose `attributes` field matches the filter are * delivered on this subscription. If empty, then no messages are filtered * out. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string filter = 12; * * @return The filter. */ + @java.lang.Override public java.lang.String getFilter() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -739,15 +763,13 @@ public java.lang.String getFilter() { * then only `PubsubMessage`s whose `attributes` field matches the filter are * delivered on this subscription. If empty, then no messages are filtered * out. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string filter = 12; * * @return The bytes for filter. */ + @java.lang.Override public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { @@ -779,6 +801,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * @return Whether the deadLetterPolicy field is set. */ + @java.lang.Override public boolean hasDeadLetterPolicy() { return deadLetterPolicy_ != null; } @@ -799,6 +822,7 @@ public boolean hasDeadLetterPolicy() { * * @return The deadLetterPolicy. */ + @java.lang.Override public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { return deadLetterPolicy_ == null ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() @@ -819,6 +843,7 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { * * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; */ + @java.lang.Override public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() { return getDeadLetterPolicy(); } @@ -829,21 +854,19 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * *
    -   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
        * exceeded events for a given message.
    -   * <b>EXPERIMENTAL:</b> 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.
        * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; * * @return Whether the retryPolicy field is set. */ + @java.lang.Override public boolean hasRetryPolicy() { return retryPolicy_ != null; } @@ -851,21 +874,19 @@ public boolean hasRetryPolicy() { * * *
    -   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
        * exceeded events for a given message.
    -   * <b>EXPERIMENTAL:</b> 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.
        * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; * * @return The retryPolicy. */ + @java.lang.Override public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { return retryPolicy_ == null ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() @@ -875,23 +896,43 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * *
    -   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
        * exceeded events for a given message.
    -   * <b>EXPERIMENTAL:</b> 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.
        * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; */ + @java.lang.Override public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { return getRetryPolicy(); } + public static final int DETACHED_FIELD_NUMBER = 15; + private boolean detached_; + /** + * + * + *
    +   * Indicates whether the subscription is detached from its topic. Detached
    +   * subscriptions don't receive messages from their topic and don't retain any
    +   * backlog. `Pull` and `StreamingPull` requests will return
    +   * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
    +   * the endpoint will not be made.
    +   * 
    + * + * bool detached = 15; + * + * @return The detached. + */ + @java.lang.Override + public boolean getDetached() { + return detached_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -941,6 +982,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (retryPolicy_ != null) { output.writeMessage(14, getRetryPolicy()); } + if (detached_ != false) { + output.writeBool(15, detached_); + } unknownFields.writeTo(output); } @@ -995,6 +1039,9 @@ public int getSerializedSize() { if (retryPolicy_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRetryPolicy()); } + if (detached_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, detached_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1037,6 +1084,7 @@ public boolean equals(final java.lang.Object obj) { if (hasRetryPolicy()) { if (!getRetryPolicy().equals(other.getRetryPolicy())) return false; } + if (getDetached() != other.getDetached()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1084,6 +1132,8 @@ public int hashCode() { hash = (37 * hash) + RETRY_POLICY_FIELD_NUMBER; hash = (53 * hash) + getRetryPolicy().hashCode(); } + hash = (37 * hash) + DETACHED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDetached()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1291,6 +1341,8 @@ public Builder clear() { retryPolicy_ = null; retryPolicyBuilder_ = null; } + detached_ = false; + return this; } @@ -1351,6 +1403,7 @@ public com.google.pubsub.v1.Subscription buildPartial() { } else { result.retryPolicy_ = retryPolicyBuilder_.build(); } + result.detached_ = detached_; onBuilt(); return result; } @@ -1437,6 +1490,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasRetryPolicy()) { mergeRetryPolicy(other.getRetryPolicy()); } + if (other.getDetached() != false) { + setDetached(other.getDetached()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1956,6 +2012,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * @return The ackDeadlineSeconds. */ + @java.lang.Override public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } @@ -2045,6 +2102,7 @@ public Builder clearAckDeadlineSeconds() { * * @return The retainAckedMessages. */ + @java.lang.Override public boolean getRetainAckedMessages() { return retainAckedMessages_; } @@ -2362,6 +2420,7 @@ public int getLabelsCount() { * * map<string, string> labels = 9; */ + @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -2369,6 +2428,7 @@ public boolean containsLabels(java.lang.String key) { return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); @@ -2383,6 +2443,7 @@ public java.util.Map getLabels() { * * map<string, string> labels = 9; */ + @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } @@ -2396,6 +2457,7 @@ public java.util.Map getLabelsMap() { * * map<string, string> labels = 9; */ + @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { @@ -2414,6 +2476,7 @@ public java.lang.String getLabelsOrDefault( * * map<string, string> labels = 9; */ + @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -2504,6 +2567,7 @@ public Builder putAllLabels(java.util.Map va * * @return The enableMessageOrdering. */ + @java.lang.Override public boolean getEnableMessageOrdering() { return enableMessageOrdering_; } @@ -2795,9 +2859,6 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * then only `PubsubMessage`s whose `attributes` field matches the filter are * delivered on this subscription. If empty, then no messages are filtered * out. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string filter = 12; @@ -2823,9 +2884,6 @@ public java.lang.String getFilter() { * then only `PubsubMessage`s whose `attributes` field matches the filter are * delivered on this subscription. If empty, then no messages are filtered * out. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string filter = 12; @@ -2851,9 +2909,6 @@ public com.google.protobuf.ByteString getFilterBytes() { * then only `PubsubMessage`s whose `attributes` field matches the filter are * delivered on this subscription. If empty, then no messages are filtered * out. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string filter = 12; @@ -2878,9 +2933,6 @@ public Builder setFilter(java.lang.String value) { * then only `PubsubMessage`s whose `attributes` field matches the filter are * delivered on this subscription. If empty, then no messages are filtered * out. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string filter = 12; @@ -2901,9 +2953,6 @@ public Builder clearFilter() { * then only `PubsubMessage`s whose `attributes` field matches the filter are * delivered on this subscription. If empty, then no messages are filtered * out. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string filter = 12; @@ -3172,15 +3221,12 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * *
    -     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
          * exceeded events for a given message.
    -     * <b>EXPERIMENTAL:</b> 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.
          * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -3194,15 +3240,12 @@ public boolean hasRetryPolicy() { * * *
    -     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
          * exceeded events for a given message.
    -     * <b>EXPERIMENTAL:</b> 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.
          * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -3222,15 +3265,12 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * *
    -     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
          * exceeded events for a given message.
    -     * <b>EXPERIMENTAL:</b> 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.
          * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -3252,15 +3292,12 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * *
    -     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
          * exceeded events for a given message.
    -     * <b>EXPERIMENTAL:</b> 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.
          * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -3279,15 +3316,12 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo * * *
    -     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
          * exceeded events for a given message.
    -     * <b>EXPERIMENTAL:</b> 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.
          * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -3313,15 +3347,12 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * *
    -     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
          * exceeded events for a given message.
    -     * <b>EXPERIMENTAL:</b> 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.
          * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -3341,15 +3372,12 @@ public Builder clearRetryPolicy() { * * *
    -     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
          * exceeded events for a given message.
    -     * <b>EXPERIMENTAL:</b> 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.
          * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -3363,15 +3391,12 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { * * *
    -     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
          * exceeded events for a given message.
    -     * <b>EXPERIMENTAL:</b> 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.
          * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -3389,15 +3414,12 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * * *
    -     * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +     * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
          * exceeded events for a given message.
    -     * <b>EXPERIMENTAL:</b> 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.
          * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -3419,6 +3441,70 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { return retryPolicyBuilder_; } + private boolean detached_; + /** + * + * + *
    +     * Indicates whether the subscription is detached from its topic. Detached
    +     * subscriptions don't receive messages from their topic and don't retain any
    +     * backlog. `Pull` and `StreamingPull` requests will return
    +     * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
    +     * the endpoint will not be made.
    +     * 
    + * + * bool detached = 15; + * + * @return The detached. + */ + @java.lang.Override + public boolean getDetached() { + return detached_; + } + /** + * + * + *
    +     * Indicates whether the subscription is detached from its topic. Detached
    +     * subscriptions don't receive messages from their topic and don't retain any
    +     * backlog. `Pull` and `StreamingPull` requests will return
    +     * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
    +     * the endpoint will not be made.
    +     * 
    + * + * bool detached = 15; + * + * @param value The detached to set. + * @return This builder for chaining. + */ + public Builder setDetached(boolean value) { + + detached_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Indicates whether the subscription is detached from its topic. Detached
    +     * subscriptions don't receive messages from their topic and don't retain any
    +     * backlog. `Pull` and `StreamingPull` requests will return
    +     * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
    +     * the endpoint will not be made.
    +     * 
    + * + * bool detached = 15; + * + * @return This builder for chaining. + */ + public Builder clearDetached() { + + detached_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index dd48671fb9f0..9a36df9e0fb9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -366,9 +366,6 @@ public interface SubscriptionOrBuilder * then only `PubsubMessage`s whose `attributes` field matches the filter are * delivered on this subscription. If empty, then no messages are filtered * out. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string filter = 12; @@ -384,9 +381,6 @@ public interface SubscriptionOrBuilder * then only `PubsubMessage`s whose `attributes` field matches the filter are * delivered on this subscription. If empty, then no messages are filtered * out. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string filter = 12; @@ -452,15 +446,12 @@ public interface SubscriptionOrBuilder * * *
    -   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
        * exceeded events for a given message.
    -   * <b>EXPERIMENTAL:</b> 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.
        * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -472,15 +463,12 @@ public interface SubscriptionOrBuilder * * *
    -   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
        * exceeded events for a given message.
    -   * <b>EXPERIMENTAL:</b> 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.
        * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; @@ -492,18 +480,32 @@ public interface SubscriptionOrBuilder * * *
    -   * A policy that specifies how Cloud Pub/Sub retries message delivery for this
    +   * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
        * exceeded events for a given message.
    -   * <b>EXPERIMENTAL:</b> 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.
        * 
    * * .google.pubsub.v1.RetryPolicy retry_policy = 14; */ com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder(); + + /** + * + * + *
    +   * Indicates whether the subscription is detached from its topic. Detached
    +   * subscriptions don't receive messages from their topic and don't retain any
    +   * backlog. `Pull` and `StreamingPull` requests will return
    +   * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
    +   * the endpoint will not be made.
    +   * 
    + * + * bool detached = 15; + * + * @return The detached. + */ + boolean getDetached(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index e062abc0e22a..5df76aa710b1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -176,6 +176,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * @return The name. */ + @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -203,6 +204,7 @@ public java.lang.String getName() { * * @return The bytes for name. */ + @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { @@ -250,6 +252,7 @@ public int getLabelsCount() { * * map<string, string> labels = 2; */ + @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -257,6 +260,7 @@ public boolean containsLabels(java.lang.String key) { return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); @@ -271,6 +275,7 @@ public java.util.Map getLabels() { * * map<string, string> labels = 2; */ + @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } @@ -284,6 +289,7 @@ public java.util.Map getLabelsMap() { * * map<string, string> labels = 2; */ + @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); @@ -301,6 +307,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * map<string, string> labels = 2; */ + @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -327,6 +334,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * @return Whether the messageStoragePolicy field is set. */ + @java.lang.Override public boolean hasMessageStoragePolicy() { return messageStoragePolicy_ != null; } @@ -343,6 +351,7 @@ public boolean hasMessageStoragePolicy() { * * @return The messageStoragePolicy. */ + @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { return messageStoragePolicy_ == null ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() @@ -359,6 +368,7 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { * * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; */ + @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder() { return getMessageStoragePolicy(); } @@ -378,6 +388,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * * @return The kmsKeyName. */ + @java.lang.Override public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { @@ -402,6 +413,7 @@ public java.lang.String getKmsKeyName() { * * @return The bytes for kmsKeyName. */ + @java.lang.Override public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { @@ -979,6 +991,7 @@ public int getLabelsCount() { * * map<string, string> labels = 2; */ + @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); @@ -986,6 +999,7 @@ public boolean containsLabels(java.lang.String key) { return internalGetLabels().getMap().containsKey(key); } /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); @@ -1000,6 +1014,7 @@ public java.util.Map getLabels() { * * map<string, string> labels = 2; */ + @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } @@ -1013,6 +1028,7 @@ public java.util.Map getLabelsMap() { * * map<string, string> labels = 2; */ + @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { @@ -1031,6 +1047,7 @@ public java.lang.String getLabelsOrDefault( * * map<string, string> labels = 2; */ + @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index b22075d56da4..078d0d1be702 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -145,6 +145,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return Whether the snapshot field is set. */ + @java.lang.Override public boolean hasSnapshot() { return snapshot_ != null; } @@ -159,6 +160,7 @@ public boolean hasSnapshot() { * * @return The snapshot. */ + @java.lang.Override public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } @@ -171,6 +173,7 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { * * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; */ + @java.lang.Override public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { return getSnapshot(); } @@ -190,6 +193,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * * @return Whether the updateMask field is set. */ + @java.lang.Override public boolean hasUpdateMask() { return updateMask_ != null; } @@ -206,6 +210,7 @@ public boolean hasUpdateMask() { * * @return The updateMask. */ + @java.lang.Override public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } @@ -220,6 +225,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ + @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 80b4be91147e..ffed68bcfdc7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -147,6 +147,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return Whether the subscription field is set. */ + @java.lang.Override public boolean hasSubscription() { return subscription_ != null; } @@ -163,6 +164,7 @@ public boolean hasSubscription() { * * @return The subscription. */ + @java.lang.Override public com.google.pubsub.v1.Subscription getSubscription() { return subscription_ == null ? com.google.pubsub.v1.Subscription.getDefaultInstance() @@ -179,6 +181,7 @@ public com.google.pubsub.v1.Subscription getSubscription() { * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * */ + @java.lang.Override public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { return getSubscription(); } @@ -198,6 +201,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { * * @return Whether the updateMask field is set. */ + @java.lang.Override public boolean hasUpdateMask() { return updateMask_ != null; } @@ -214,6 +218,7 @@ public boolean hasUpdateMask() { * * @return The updateMask. */ + @java.lang.Override public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } @@ -228,6 +233,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ + @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 44b586ae1b60..7458cb8ad035 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -144,6 +144,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @return Whether the topic field is set. */ + @java.lang.Override public boolean hasTopic() { return topic_ != null; } @@ -158,6 +159,7 @@ public boolean hasTopic() { * * @return The topic. */ + @java.lang.Override public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } @@ -170,6 +172,7 @@ public com.google.pubsub.v1.Topic getTopic() { * * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ + @java.lang.Override public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { return getTopic(); } @@ -192,6 +195,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * * @return Whether the updateMask field is set. */ + @java.lang.Override public boolean hasUpdateMask() { return updateMask_ != null; } @@ -211,6 +215,7 @@ public boolean hasUpdateMask() { * * @return The updateMask. */ + @java.lang.Override public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } @@ -228,6 +233,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ + @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 0311cc5b3510..d85f2734e686 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -135,6 +135,7 @@ service Publisher { } } +// A policy constraining the storage of messages published to the topic. message MessageStoragePolicy { // A list of IDs of GCP regions where messages that are published to the topic // may be persisted in storage. Messages published by publishers running in @@ -367,7 +368,9 @@ message DetachSubscriptionRequest { // Format is `projects/{project}/subscriptions/{subscription}`. string subscription = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } ]; } @@ -701,9 +704,6 @@ message Subscription { // 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. string filter = 12; // A policy that specifies the conditions for dead lettering messages in @@ -716,17 +716,21 @@ message Subscription { // permission to Acknowledge() messages on this subscription. DeadLetterPolicy dead_letter_policy = 13; - // A policy that specifies how Cloud Pub/Sub retries message delivery for this + // A policy that specifies how Pub/Sub retries message delivery for this // subscription. // // If not set, the default retry policy is applied. This generally implies // that messages will be retried as soon as possible for healthy subscribers. // RetryPolicy will be triggered on NACKs or acknowledgement deadline // exceeded events for a given message. - // EXPERIMENTAL: 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. RetryPolicy retry_policy = 14; + + // Indicates whether the subscription is detached from its topic. Detached + // subscriptions don't receive messages from their topic and don't retain any + // backlog. `Pull` and `StreamingPull` requests will return + // FAILED_PRECONDITION. If the subscription is a push subscription, pushes to + // the endpoint will not be made. + bool detached = 15; } // A policy that specifies how Cloud Pub/Sub retries message delivery. diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 887afc20ecd6..88c12b23c7a0 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "f5f268f5293e60143ac742a4eeb7dd6306ebf505", - "internalRef": "313276022" + "sha": "86285bbd54fbf9708838219e3422aa47fb8fc0b0", + "internalRef": "314795690" } }, { From 5f37e510779e0c68039dace940e53efafa3e754b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Jun 2020 15:58:10 +0200 Subject: [PATCH 0387/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v5.6.0 (#234) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b8373ed8af11..81d253aa3cdb 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 5.5.0 + 5.6.0 pom import From 12198331c64ed2ee14fd24aa7e60880c5686a2c9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2020 09:30:21 -0700 Subject: [PATCH 0388/2363] chore: release 1.107.0 (#212) * updated CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated samples/pom.xml [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * updated samples/snapshot/pom.xml [ci skip] * updated samples/install-without-bom/pom.xml [ci skip] * updated samples/snippets/pom.xml [ci skip] * updated pom.xml Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 22 +++++++++++++++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 42 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 88250e2705fe..4c98dcf420f0 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [1.107.0](https://www.github.com/googleapis/java-pubsub/compare/v1.106.0...v1.107.0) (2020-06-09) + + +### Features + +* add detach subscription rpc ([#216](https://www.github.com/googleapis/java-pubsub/issues/216)) ([09866b0](https://www.github.com/googleapis/java-pubsub/commit/09866b0d36e2dd1c994b4c91807d71552b65c8e1)) +* regenerated to pick up changes in the API or client library generator ([#185](https://www.github.com/googleapis/java-pubsub/issues/185)) ([16624f8](https://www.github.com/googleapis/java-pubsub/commit/16624f88ad19ccaf2ea074a62242496be103659f)), closes [#533](https://www.github.com/googleapis/java-pubsub/issues/533) [#535](https://www.github.com/googleapis/java-pubsub/issues/535) [#534](https://www.github.com/googleapis/java-pubsub/issues/534) + + +### Bug Fixes + +* update ignored diffs ([#206](https://www.github.com/googleapis/java-pubsub/issues/206)) ([240e141](https://www.github.com/googleapis/java-pubsub/commit/240e141a8b4f8e4d4e252672bb4ae4d091dde453)), closes [#6784](https://www.github.com/googleapis/java-pubsub/issues/6784) [#11](https://www.github.com/googleapis/java-pubsub/issues/11) + + +### Dependencies + +* bump shared-deps version and add back certain test deps ([#218](https://www.github.com/googleapis/java-pubsub/issues/218)) ([49ecc69](https://www.github.com/googleapis/java-pubsub/commit/49ecc69fb6a63abf6a83f82f2820ff386cdaf5fb)) +* remove grpc test dep since it's now in shared-deps ([#220](https://www.github.com/googleapis/java-pubsub/issues/220)) ([28ab521](https://www.github.com/googleapis/java-pubsub/commit/28ab5211c344d60743c3cb11f568c8f2a4e2c040)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.6.0 ([#219](https://www.github.com/googleapis/java-pubsub/issues/219)) ([c6fc69d](https://www.github.com/googleapis/java-pubsub/commit/c6fc69d47dea6f3833a9a2945d27ed3f9e310c52)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.7.0 ([#221](https://www.github.com/googleapis/java-pubsub/issues/221)) ([89eae9a](https://www.github.com/googleapis/java-pubsub/commit/89eae9a6c3dc585926f85fc0de2b80f7dbfedb42)) +* update dependency com.google.errorprone:error_prone_annotations to v2.4.0 ([#225](https://www.github.com/googleapis/java-pubsub/issues/225)) ([f375ecb](https://www.github.com/googleapis/java-pubsub/commit/f375ecbbd66e518a25c1d0459ba0634121ddced1)) + ## [1.106.0](https://www.github.com/googleapis/java-pubsub/compare/v1.105.1...v1.106.0) (2020-05-20) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 388948793196..1807397e6da7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.106.0' +compile 'com.google.cloud:google-cloud-pubsub:1.107.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.107.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8ba10396b704..f0c317395fcb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.106.1-SNAPSHOT + 1.107.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.88.1-SNAPSHOT + 1.89.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.88.1-SNAPSHOT + 1.89.0 com.google.cloud google-cloud-pubsub - 1.106.1-SNAPSHOT + 1.107.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5b3e98761658..1dfb0dc3e763 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.106.1-SNAPSHOT + 1.107.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.106.1-SNAPSHOT + 1.107.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index cf0c8d698b60..8a50c525560f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.88.1-SNAPSHOT + 1.89.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.106.1-SNAPSHOT + 1.107.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6813a9d5abdb..765dceceb014 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.106.1-SNAPSHOT + 1.107.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -82,17 +82,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.88.1-SNAPSHOT + 1.89.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.88.1-SNAPSHOT + 1.89.0 com.google.cloud google-cloud-pubsub - 1.106.1-SNAPSHOT + 1.107.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f30bb9ea9932..c1851807db16 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.88.1-SNAPSHOT + 1.89.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.106.1-SNAPSHOT + 1.107.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ddbb8314765c..fb28de2c84b5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.106.1-SNAPSHOT + 1.107.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 57cecb2f364a..d298a7f8ca51 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.88.0:1.88.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.88.0:1.88.1-SNAPSHOT -google-cloud-pubsub:1.106.0:1.106.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.89.0:1.89.0 +grpc-google-cloud-pubsub-v1:1.89.0:1.89.0 +google-cloud-pubsub:1.107.0:1.107.0 \ No newline at end of file From 3879d9c371d026a9453db82c31fdbfb55e9f9ae6 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 10 Jun 2020 12:42:26 -0700 Subject: [PATCH 0389/2363] samples: migrate subscriber samples and add tests (part 2) (#238) * add subscriber examples * take out sync with lease example * add sync pull with lease sample, fix some nits * kvg's suggestions: lambda to replace anonymous classes --- .../java/pubsub/SubscribeAsyncExample.java | 67 +++++++ .../java/pubsub/SubscribeSyncExample.java | 82 ++++++++ .../pubsub/SubscribeSyncWithLeaseExample.java | 102 ++++++++++ ...ubscribeWithConcurrencyControlExample.java | 83 ++++++++ .../SubscribeWithCustomAttributesExample.java | 69 +++++++ .../SubscribeWithErrorListenerExample.java | 89 +++++++++ ...bscribeWithFlowControlSettingsExample.java | 84 ++++++++ .../src/test/java/pubsub/PublisherIT.java | 16 ++ .../src/test/java/pubsub/SubscriberIT.java | 184 ++++++++++++++++++ 9 files changed, 776 insertions(+) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java create mode 100644 java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java new file mode 100644 index 000000000000..0cb5aa20a4e7 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java @@ -0,0 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_quickstart_subscriber] +// [START pubsub_subscriber_async_pull] + +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class SubscribeAsyncExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + subscribeAsyncExample(projectId, subscriptionId); + } + + public static void subscribeAsyncExample(String projectId, String subscriptionId) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + // Handle incoming message, then ack the received message. + System.out.println("Id: " + message.getMessageId()); + System.out.println("Data: " + message.getData().toStringUtf8()); + consumer.ack(); + }; + + Subscriber subscriber = null; + try { + subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); + // Start the subscriber. + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + // Allow the subscriber to run for 30s unless an unrecoverable error occurs. + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + // Shut down the subscriber after 30s. Stop receiving messages. + subscriber.stopAsync(); + } + } +} +// [END pubsub_subscriber_async_pull] +// [END pubsub_quickstart_subscriber] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java new file mode 100644 index 000000000000..901ac79059b0 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java @@ -0,0 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscriber_sync_pull] + +import com.google.cloud.pubsub.v1.stub.GrpcSubscriberStub; +import com.google.cloud.pubsub.v1.stub.SubscriberStub; +import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.ReceivedMessage; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +public class SubscribeSyncExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + Integer numOfMessages = 10; + + subscribeSyncExample(projectId, subscriptionId, numOfMessages); + } + + public static void subscribeSyncExample( + String projectId, String subscriptionId, Integer numOfMessages) throws IOException { + SubscriberStubSettings subscriberStubSettings = + SubscriberStubSettings.newBuilder() + .setTransportChannelProvider( + SubscriberStubSettings.defaultGrpcTransportProviderBuilder() + .setMaxInboundMessageSize(20 * 1024 * 1024) // 20MB (maximum message size). + .build()) + .build(); + + try (SubscriberStub subscriber = GrpcSubscriberStub.create(subscriberStubSettings)) { + String subscriptionName = ProjectSubscriptionName.format(projectId, subscriptionId); + PullRequest pullRequest = + PullRequest.newBuilder() + .setMaxMessages(numOfMessages) + .setSubscription(subscriptionName) + .build(); + + // Use pullCallable().futureCall to asynchronously perform this operation. + PullResponse pullResponse = subscriber.pullCallable().call(pullRequest); + List ackIds = new ArrayList<>(); + for (ReceivedMessage message : pullResponse.getReceivedMessagesList()) { + // Handle received message + // ... + ackIds.add(message.getAckId()); + } + // Acknowledge received messages. + AcknowledgeRequest acknowledgeRequest = + AcknowledgeRequest.newBuilder() + .setSubscription(subscriptionName) + .addAllAckIds(ackIds) + .build(); + + // Use acknowledgeCallable().futureCall to asynchronously perform this operation. + subscriber.acknowledgeCallable().call(acknowledgeRequest); + System.out.println(pullResponse.getReceivedMessagesList()); + } + } +} +// [END pubsub_subscriber_sync_pull] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java new file mode 100644 index 000000000000..30d79298726c --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscriber_sync_pull_with_lease] + +import com.google.cloud.pubsub.v1.stub.GrpcSubscriberStub; +import com.google.cloud.pubsub.v1.stub.SubscriberStub; +import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.ReceivedMessage; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +public class SubscribeSyncWithLeaseExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + Integer numOfMessages = 10; + + projectId = "tz-playground-bigdata"; + subscriptionId = "uno"; + + subscribeSyncWithLeaseExample(projectId, subscriptionId, numOfMessages); + } + + public static void subscribeSyncWithLeaseExample( + String projectId, String subscriptionId, Integer numOfMessages) + throws IOException, InterruptedException { + SubscriberStubSettings subscriberStubSettings = + SubscriberStubSettings.newBuilder() + .setTransportChannelProvider( + SubscriberStubSettings.defaultGrpcTransportProviderBuilder() + .setMaxInboundMessageSize(20 << 20) // 20 MB + .build()) + .build(); + + try (SubscriberStub subscriber = GrpcSubscriberStub.create(subscriberStubSettings)) { + + String subscriptionName = ProjectSubscriptionName.format(projectId, subscriptionId); + + PullRequest pullRequest = + PullRequest.newBuilder() + .setMaxMessages(numOfMessages) + .setSubscription(subscriptionName) + .build(); + + // Use pullCallable().futureCall to asynchronously perform this operation. + PullResponse pullResponse = subscriber.pullCallable().call(pullRequest); + + List ackIds = new ArrayList<>(); + + for (ReceivedMessage message : pullResponse.getReceivedMessagesList()) { + ackIds.add(message.getAckId()); + + // Modify the ack deadline of each received message from the default 10 seconds to 30. + // This prevents the server from redelivering the message after the default 10 seconds + // have passed. + ModifyAckDeadlineRequest modifyAckDeadlineRequest = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(subscriptionName) + .addAckIds(message.getAckId()) + .setAckDeadlineSeconds(30) + .build(); + + subscriber.modifyAckDeadlineCallable().call(modifyAckDeadlineRequest); + } + + // Acknowledge received messages. + AcknowledgeRequest acknowledgeRequest = + AcknowledgeRequest.newBuilder() + .setSubscription(subscriptionName) + .addAllAckIds(ackIds) + .build(); + + // Use acknowledgeCallable().futureCall to asynchronously perform this operation. + subscriber.acknowledgeCallable().call(acknowledgeRequest); + System.out.println(pullResponse.getReceivedMessagesList()); + } + } +} +// [END pubsub_subscriber_sync_pull_with_lease] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java new file mode 100644 index 000000000000..35abf2716c57 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java @@ -0,0 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscriber_concurrency_control] + +import com.google.api.gax.core.ExecutorProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class SubscribeWithConcurrencyControlExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + subscribeWithConcurrencyControlExample(projectId, subscriptionId); + } + + public static void subscribeWithConcurrencyControlExample( + String projectId, String subscriptionId) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + // Handle incoming message, then ack the received message. + System.out.println("Id: " + message.getMessageId()); + System.out.println("Data: " + message.getData().toStringUtf8()); + consumer.ack(); + }; + + Subscriber subscriber = null; + try { + // Provides an executor service for processing messages. The default `executorProvider` used + // by the subscriber has a default thread count of 5. + ExecutorProvider executorProvider = + InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(4).build(); + + // `setParallelPullCount` determines how many StreamingPull streams the subscriber will open + // to receive message. It defaults to 1. `setExecutorProvider` configures an executor for the + // subscriber to process messages. Here, the subscriber is configured to open 2 streams for + // receiving messages, each stream creates a new executor with 4 threads to help process the + // message callbacks. In total 2x4=8 threads are used for message processing. + subscriber = + Subscriber.newBuilder(subscriptionName, receiver) + .setParallelPullCount(2) + .setExecutorProvider(executorProvider) + .build(); + + // Start the subscriber. + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + // Allow the subscriber to run for 30s unless an unrecoverable error occurs. + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + // Shut down the subscriber after 30s. Stop receiving messages. + subscriber.stopAsync(); + } + } +} +// [END pubsub_subscriber_concurrency_control] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java new file mode 100644 index 000000000000..a9b6df1e076b --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscriber_async_pull_custom_attributes] + +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class SubscribeWithCustomAttributesExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + subscribeWithCustomAttributesExample(projectId, subscriptionId); + } + + public static void subscribeWithCustomAttributesExample(String projectId, String subscriptionId) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + // Handle incoming message, then ack the received message. + System.out.println("Id: " + message.getMessageId()); + System.out.println("Data: " + message.getData().toStringUtf8()); + // Print message attributes. + message + .getAttributesMap() + .forEach((key, value) -> System.out.println(key + " = " + value)); + consumer.ack(); + }; + + Subscriber subscriber = null; + try { + subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); + // Start the subscriber. + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + // Allow the subscriber to run for 30s unless an unrecoverable error occurs. + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + // Shut down the subscriber after 30s. Stop receiving messages. + subscriber.stopAsync(); + } + } +} +// [END pubsub_subscriber_async_pull_custom_attributes] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java new file mode 100644 index 000000000000..393d526af266 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscriber_error_listener] + +import com.google.api.gax.core.ExecutorProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class SubscribeWithErrorListenerExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + subscribeWithErrorListenerExample(projectId, subscriptionId); + } + + public static void subscribeWithErrorListenerExample(String projectId, String subscriptionId) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + // Handle incoming message, then ack the received message. + System.out.println("Id: " + message.getMessageId()); + System.out.println("Data: " + message.getData().toStringUtf8()); + consumer.ack(); + }; + + Subscriber subscriber = null; + try { + // Provides an executor service for processing messages. + ExecutorProvider executorProvider = + InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(4).build(); + + subscriber = + Subscriber.newBuilder(subscriptionName, receiver) + .setExecutorProvider(executorProvider) + .build(); + + // Listen for unrecoverable failures. Rebuild a subscriber and restart subscribing + // when the current subscriber encounters permanent errors. + subscriber.addListener( + new Subscriber.Listener() { + public void failed(Subscriber.State from, Throwable failure) { + System.out.println(failure.getStackTrace()); + if (!executorProvider.getExecutor().isShutdown()) { + subscribeWithErrorListenerExample(projectId, subscriptionId); + } + } + }, + MoreExecutors.directExecutor()); + + // Start the subscriber. + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + // Allow the subscriber to run for 30s unless an unrecoverable error occurs. + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + // Shut down the subscriber after 30s. Stop receiving messages. + subscriber.stopAsync(); + } + } +} +// [END pubsub_subscriber_error_listener] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java new file mode 100644 index 000000000000..1b31de20ec40 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscriber_flow_settings] + +import com.google.api.gax.batching.FlowControlSettings; +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class SubscribeWithFlowControlSettingsExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + subscribeWithFlowControlSettingsExample(projectId, subscriptionId); + } + + public static void subscribeWithFlowControlSettingsExample( + String projectId, String subscriptionId) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + // Handle incoming message, then ack the received message. + System.out.println("Id: " + message.getMessageId()); + System.out.println("Data: " + message.getData().toStringUtf8()); + consumer.ack(); + }; + + Subscriber subscriber = null; + + // The subscriber will pause the message stream and stop receiving more messsages from the + // server if any one of the conditions is met. + FlowControlSettings flowControlSettings = + FlowControlSettings.newBuilder() + // 1,000 outstanding messages. Must be >0. It controls the maximum number of messages + // the subscriber receives before pausing the message stream. + .setMaxOutstandingElementCount(1000L) + // 100 MiB. Must be >0. It controls the maximum size of messages the subscriber + // receives before pausing the message stream. + .setMaxOutstandingRequestBytes(100L * 1024L * 1024L) + .build(); + + try { + subscriber = + Subscriber.newBuilder(subscriptionName, receiver) + .setFlowControlSettings(flowControlSettings) + .build(); + + // Start the subscriber. + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + // Allow the subscriber to run for 30s unless an unrecoverable error occurs. + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + // Shut down the subscriber after 30s. Stop receiving messages. + subscriber.stopAsync(); + } + } +} +// [END pubsub_subscriber_flow_settings] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java index 79fd34c90fca..7a9eb091ff7c 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package pubsub; import static com.google.common.truth.Truth.assertThat; diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java new file mode 100644 index 000000000000..0e9e9e852313 --- /dev/null +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -0,0 +1,184 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.ExecutorProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.common.collect.ImmutableMap; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.Timeout; + +public class SubscriberIT { + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String _suffix = UUID.randomUUID().toString(); + private static final String topicId = "publisher-test-topic-" + _suffix; + private static final String subscriptionId = "publisher-test-subscription-" + _suffix; + private static final TopicName topicName = TopicName.of(projectId, topicId); + private static final ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + private static final ExecutorProvider executorProvider = + InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(4).build(); + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + } + + // Helper function to publish some messages. + private static void publishSomeMessages(Integer numOfMessages) throws Exception { + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + Publisher publisher = Publisher.newBuilder(topicName).build(); + List> messageIdFutures = new ArrayList<>(); + for (int i = 0; i < numOfMessages; i++) { + ByteString data = ByteString.copyFromUtf8("Hello " + i); + PubsubMessage pubsubMessage = + PubsubMessage.newBuilder() + .setData(data) + .putAllAttributes(ImmutableMap.of("year", "2020", "author", "unknown")) + .build(); + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + messageIdFutures.add(messageIdFuture); + } + ApiFutures.allAsList(messageIdFutures).get(); + } + + @Rule public Timeout globalTimeout = Timeout.seconds(600); // 10 minute timeout + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws Exception { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + Topic topic = Topic.newBuilder().setName(topicName.toString()).build(); + topicAdminClient.createTopic(topic); + } + + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + Subscription subscription = + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + .build(); + subscriptionAdminClient.createSubscription(subscription); + } + } + + @After + public void tearDown() throws Exception { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + subscriptionAdminClient.deleteSubscription(subscriptionName.toString()); + } + + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + topicAdminClient.deleteTopic(topicName.toString()); + } + + System.setOut(null); + } + + @Test + public void testSubscriber() throws Exception { + publishSomeMessages(1); + // Test subscribe asynchronously. + SubscribeAsyncExample.subscribeAsyncExample(projectId, subscriptionId); + assertThat(bout.toString()).contains("Data: Hello 0"); + + publishSomeMessages(1); + bout.reset(); + // Test subscribe with custom attributes. + SubscribeWithCustomAttributesExample.subscribeWithCustomAttributesExample( + projectId, subscriptionId); + assertThat(bout.toString()).contains("Data: Hello 0"); + assertThat(bout.toString()).contains("author = unknown"); + assertThat(bout.toString()).contains("year = 2020"); + + publishSomeMessages(5); + bout.reset(); + // Test subscribe with error listener. + SubscribeWithErrorListenerExample.subscribeWithErrorListenerExample(projectId, subscriptionId); + assertThat(bout.toString()).contains("Data: Hello 0"); + + publishSomeMessages(200); + bout.reset(); + // Test subscribe with flow control settings. + SubscribeWithFlowControlSettingsExample.subscribeWithFlowControlSettingsExample( + projectId, subscriptionId); + for (int i = 0; i < 200; i++) { + assertThat(bout.toString()).contains("Data: Hello " + i); + } + + publishSomeMessages(100); + bout.reset(); + // Test subscribe with concurrency control. + SubscribeWithConcurrencyControlExample.subscribeWithConcurrencyControlExample( + projectId, subscriptionId); + for (int i = 0; i < 100; i++) { + assertThat(bout.toString()).contains("Data: Hello " + i); + } + + publishSomeMessages(10); + bout.reset(); + // Test subscribe synchronously. + SubscribeSyncExample.subscribeSyncExample(projectId, subscriptionId, 10); + for (int i = 0; i < 10; i++) { + assertThat(bout.toString()).contains("Hello " + i); + } + + publishSomeMessages(10); + bout.reset(); + // Test subscribe synchronously with lease management. + SubscribeSyncWithLeaseExample.subscribeSyncWithLeaseExample(projectId, subscriptionId, 10); + for (int i = 0; i < 10; i++) { + assertThat(bout.toString()).contains("Hello " + i); + } + } +} From 89431e79d16081293c444c74ed9c6b7eee3e0f9a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:45:39 +0200 Subject: [PATCH 0390/2363] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.18 (#239) This PR contains the following updates: | Package | Update | Change | |---|---|---| | com.google.cloud.samples:shared-configuration | patch | `1.0.17` -> `1.0.18` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 51d291456380..93f4c10ce09d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 5b4f2113aa1b..a962f9780465 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -33,7 +33,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fb28de2c84b5..17f38facf85e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 81d253aa3cdb..c56881a421b8 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 From 68964f79cfa8b2377411313384cf4c04fc4e90ec Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:51:49 +0200 Subject: [PATCH 0391/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v5.7.0 (#241) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.6.0` -> `5.7.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c56881a421b8..4a554025d8e4 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 5.6.0 + 5.7.0 pom import From e4327f39af07da6d94eab3d0aa2f6b34ad4d1236 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 10 Jun 2020 16:37:15 -0700 Subject: [PATCH 0392/2363] samples: add quickstart publish and comments (#243) --- .../PublishWithBatchSettingsExample.java | 2 +- .../main/java/pubsub/PublisherExample.java | 65 +++++++++++++++++++ .../src/test/java/pubsub/PublisherIT.java | 5 ++ 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java index e970607bf9fd..1f19d7a611d6 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java @@ -55,7 +55,7 @@ public static void publishWithBatchSettingsExample(String projectId, String topi Duration publishDelayThreshold = Duration.ofMillis(100); // default : 1 ms // Publish request get triggered based on request size, messages count & time since last - // publish + // publish, whichever condition is met first. BatchingSettings batchingSettings = BatchingSettings.newBuilder() .setElementCountThreshold(messageCountBatchSize) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java new file mode 100644 index 000000000000..b00e57cc8596 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java @@ -0,0 +1,65 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_quickstart_publisher] + +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; + +public class PublisherExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + publisherExample(projectId, topicId); + } + + public static void publisherExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + TopicName topicName = TopicName.of(projectId, topicId); + + Publisher publisher = null; + try { + // Create a publisher instance with default settings bound to the topic + publisher = Publisher.newBuilder(topicName).build(); + + String message = "Hello World!"; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + String messageId = messageIdFuture.get(); + System.out.println("Published message ID: " + messageId); + } finally { + if (publisher != null) { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} +// [END pubsub_quickstart_publisher] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java index 7a9eb091ff7c..5183a71e2eca 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java @@ -77,6 +77,11 @@ public void tearDown() throws Exception { @Test public void testPublisher() throws Exception { + // Test quickstart publish + PublisherExample.publisherExample(projectId, topicId); + assertThat(bout.toString()).contains("Published message ID: "); + + bout.reset(); // Test publish with error handling PublishWithErrorHandlerExample.publishWithErrorHandlerExample(projectId, topicId); assertThat(bout.toString()).contains("Published message ID: "); From 48b55744d4b582ac9b9ee832d1b10b1343eaffb1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 02:02:13 +0200 Subject: [PATCH 0393/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.8.0 (#240) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | minor | `0.6.0` -> `0.8.0` | --- ### Release Notes
    googleapis/java-shared-config ### [`v0.8.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​080-httpswwwgithubcomgoogleapisjava-shared-configcomparev070v080-2020-06-10) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.7.0...v0.8.0) ##### Features - revert "feat: mark auto-value-annotations scope as provided" ([#​154](https://www.github.com/googleapis/java-shared-config/issues/154)) ([88afb4e](https://www.github.com/googleapis/java-shared-config/commit/88afb4e7c57cb6e00929c098135314a926d9da30)) ### [`v0.7.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​070-httpswwwgithubcomgoogleapisjava-shared-configcomparev060v070-2020-06-10) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.6.0...v0.7.0) ##### Features - mark auto-value-annotations scope as provided ([#​151](https://www.github.com/googleapis/java-shared-config/issues/151)) ([44ea4cb](https://www.github.com/googleapis/java-shared-config/commit/44ea4cbbf92b4ad35ffaffb7a01a1bce05063daf)) ##### Bug Fixes - lock the google-java-format version used by formatter plugin ([#​149](https://www.github.com/googleapis/java-shared-config/issues/149)) ([d58c054](https://www.github.com/googleapis/java-shared-config/commit/d58c05437a4ea8767db2bebfcc405ec77aeb9705))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f0c317395fcb..f62ea08c7c94 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.6.0 + 0.8.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 765dceceb014..5d5930b71ac9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.6.0 + 0.8.0 From 33b4d56f25b40a0d2bb39ae06cf11c38b4edb90b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 11 Jun 2020 10:58:35 -0700 Subject: [PATCH 0394/2363] chore: regenerate README versions (#236) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/6ddd5311-0ad1-48dc-b18d-8b11b966c273/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/README.md | 2 +- java-pubsub/synth.metadata | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1807397e6da7..9d508a80240a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 5.5.0 + 5.6.0 pom import diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 88c12b23c7a0..ac9c21b0dc0c 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "09866b0d36e2dd1c994b4c91807d71552b65c8e1" + "sha": "cdb7ae7ebfe132be955e5ceb231c1714f07a0600" } }, { From 87cffa861d25f6f8268aae341e908f91e21267cd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 12 Jun 2020 08:38:33 +0200 Subject: [PATCH 0395/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.107.0 (#235) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | minor | `1.106.0` -> `1.107.0` | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.107.0`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11070-httpswwwgithubcomgoogleapisjava-pubsubcomparev11060v11070-2020-06-09) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.106.0...v1.107.0) ##### Features - add detach subscription rpc ([#​216](https://www.github.com/googleapis/java-pubsub/issues/216)) ([14d887f](https://www.github.com/googleapis/java-pubsub/commit/14d887f7e857d0fc0d7cfda6e7d0852c43727d43)) - regenerated to pick up changes in the API or client library generator ([#​185](https://www.github.com/googleapis/java-pubsub/issues/185)) ([42a25c6](https://www.github.com/googleapis/java-pubsub/commit/42a25c6455e98381a025958c552c3074f9bb86bb)), closes [#​533](https://www.github.com/googleapis/java-pubsub/issues/533) [#​535](https://www.github.com/googleapis/java-pubsub/issues/535) [#​534](https://www.github.com/googleapis/java-pubsub/issues/534) ##### Bug Fixes - update ignored diffs ([#​206](https://www.github.com/googleapis/java-pubsub/issues/206)) ([eee310a](https://www.github.com/googleapis/java-pubsub/commit/eee310ac65a2963064def77dba74bd116912e637)), closes [#​6784](https://www.github.com/googleapis/java-pubsub/issues/6784) [#​11](https://www.github.com/googleapis/java-pubsub/issues/11) ##### Dependencies - bump shared-deps version and add back certain test deps ([#​218](https://www.github.com/googleapis/java-pubsub/issues/218)) ([058eb7d](https://www.github.com/googleapis/java-pubsub/commit/058eb7d9b483c09db97bffe492a1c1f24143fb60)) - remove grpc test dep since it's now in shared-deps ([#​220](https://www.github.com/googleapis/java-pubsub/issues/220)) ([352531f](https://www.github.com/googleapis/java-pubsub/commit/352531feb061d6bffeff8736d47f0deb9a867473)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.6.0 ([#​219](https://www.github.com/googleapis/java-pubsub/issues/219)) ([4e7ef0b](https://www.github.com/googleapis/java-pubsub/commit/4e7ef0ba4da4a91849da75625c11d5fc167738a7)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.7.0 ([#​221](https://www.github.com/googleapis/java-pubsub/issues/221)) ([6ec9781](https://www.github.com/googleapis/java-pubsub/commit/6ec9781bf96206a6c0c508c4609fd3d5b2e4983b)) - update dependency com.google.errorprone:error_prone_annotations to v2.4.0 ([#​225](https://www.github.com/googleapis/java-pubsub/issues/225)) ([49acc15](https://www.github.com/googleapis/java-pubsub/commit/49acc152144648be3e9b5b920d8535498c5e5b61))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 93f4c10ce09d..7e5ebf3cb77a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.106.0 + 1.107.0 From 8b00c4b205aca80e90bc57a2af6a1c9e2e2aa486 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Jun 2020 16:35:03 +0200 Subject: [PATCH 0396/2363] deps: update autovalue.version to v1.7.3 (#244) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5d5930b71ac9..23eb4607e55c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -66,7 +66,7 @@ 4.2 1.3.2 2.4.0 - 1.7.2 + 1.7.3
    From 33ae0725315434df6c4ab8d31d562e3d238a07d9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Jun 2020 16:40:59 +0200 Subject: [PATCH 0397/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.1 (#247) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 23eb4607e55c..bfb8551fd42c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -74,7 +74,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.7.0 + 0.8.1 pom import From 0a36aef7c453ba1f3534f854fd621cf0ce0d127e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Jun 2020 22:34:39 +0200 Subject: [PATCH 0398/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.8.1 --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f62ea08c7c94..46310fc2ee78 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.8.0 + 0.8.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bfb8551fd42c..738b1bb5c3a6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.8.0 + 0.8.1 From 8c6f8e21518b7a38b153eb8cf8e4f511ed45001a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2020 21:22:14 +0000 Subject: [PATCH 0399/2363] chore: release 1.107.1-SNAPSHOT (#242) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 46310fc2ee78..816041e5ba97 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.107.0 + 1.107.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.89.0 + 1.89.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.89.0 + 1.89.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.107.0 + 1.107.1-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1dfb0dc3e763..747d66f8775d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.107.0 + 1.107.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.107.0 + 1.107.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8a50c525560f..c9b16e11fe28 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.89.0 + 1.89.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.107.0 + 1.107.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 738b1bb5c3a6..f989230e3adf 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.107.0 + 1.107.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -82,17 +82,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.89.0 + 1.89.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.89.0 + 1.89.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.107.0 + 1.107.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c1851807db16..6ffdee4ce5a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.89.0 + 1.89.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.107.0 + 1.107.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 17f38facf85e..f72d89f9e907 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.107.0 + 1.107.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d298a7f8ca51..b703761e363a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.89.0:1.89.0 -grpc-google-cloud-pubsub-v1:1.89.0:1.89.0 -google-cloud-pubsub:1.107.0:1.107.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.89.0:1.89.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.89.0:1.89.1-SNAPSHOT +google-cloud-pubsub:1.107.0:1.107.1-SNAPSHOT \ No newline at end of file From be5c4d8101202b060587f996d5ca0d390fa6e1e0 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Mon, 15 Jun 2020 15:23:41 -0700 Subject: [PATCH 0400/2363] samples: migrate admin samples and add tests (part 3) (#248) * samples: add admin samples --- .../pubsub/CreatePullSubscriptionExample.java | 53 ++++++ .../pubsub/CreatePushSubscriptionExample.java | 56 ++++++ ...bscriptionWithDeadLetterPolicyExample.java | 3 +- .../main/java/pubsub/CreateTopicExample.java | 43 +++++ .../pubsub/DeleteSubscriptionExample.java | 50 +++++ .../main/java/pubsub/DeleteTopicExample.java | 47 +++++ .../pubsub/GetSubscriptionPolicyExample.java | 48 +++++ .../java/pubsub/GetTopicPolicyExample.java | 46 +++++ .../ListSubscriptionsInProjectExample.java | 45 +++++ .../ListSubscriptionsInTopicExample.java | 45 +++++ .../main/java/pubsub/ListTopicsExample.java | 44 +++++ .../PublishWithBatchSettingsExample.java | 2 +- .../PublishWithConcurrencyControlExample.java | 2 +- .../PublishWithCustomAttributesExample.java | 2 +- .../PublishWithErrorHandlerExample.java | 2 +- .../PublishWithRetrySettingsExample.java | 2 +- .../main/java/pubsub/PublisherExample.java | 2 +- .../pubsub/SetSubscriptionPolicyExample.java | 64 +++++++ .../java/pubsub/SetTopicPolicyExample.java | 62 ++++++ .../java/pubsub/SubscribeAsyncExample.java | 2 +- .../java/pubsub/SubscribeSyncExample.java | 2 +- .../pubsub/SubscribeSyncWithLeaseExample.java | 2 +- ...ubscribeWithConcurrencyControlExample.java | 2 +- .../SubscribeWithCustomAttributesExample.java | 2 +- .../SubscribeWithErrorListenerExample.java | 2 +- ...bscribeWithFlowControlSettingsExample.java | 2 +- .../TestSubscriptionPermissionsExample.java | 61 ++++++ .../pubsub/TestTopicPermissionsExample.java | 62 ++++++ .../UpdatePushConfigurationExample.java | 50 +++++ .../src/test/java/pubsub/AdminIT.java | 179 ++++++++++++++++++ .../src/test/java/pubsub/SubscriberIT.java | 4 +- 31 files changed, 972 insertions(+), 16 deletions(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/ListTopicsExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java create mode 100644 java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java new file mode 100644 index 000000000000..b8ba1ae6864c --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java @@ -0,0 +1,53 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_pull_subscription] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreatePullSubscriptionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + String topicId = "your-topic-id"; + + createPullSubscriptionExample(projectId, subscriptionId, topicId); + } + + public static void createPullSubscriptionExample( + String projectId, String subscriptionId, String topicId) throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + // Create a pull subscription with default acknowledgement deadline of 10 seconds. + // Messages not successfully acknowledged within 10 seconds will get resent by the server. + Subscription subscription = + subscriptionAdminClient.createSubscription( + subscriptionName, topicName, PushConfig.getDefaultInstance(), 10); + System.out.println("Created pull subscription: " + subscription.getName()); + } + } +} +// [END pubsub_create_pull_subscription] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java new file mode 100644 index 000000000000..db0175b0789f --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java @@ -0,0 +1,56 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_push_subscription] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreatePushSubscriptionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + String topicId = "your-topic-id"; + String pushEndpoint = "https://my-test-project.appspot.com/push"; + + createPushSubscriptionExample(projectId, subscriptionId, topicId, pushEndpoint); + } + + public static void createPushSubscriptionExample( + String projectId, String subscriptionId, String topicId, String pushEndpoint) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + PushConfig pushConfig = PushConfig.newBuilder().setPushEndpoint(pushEndpoint).build(); + + // Create a push subscription with default acknowledgement deadline of 10 seconds. + // Messages not successfully acknowledged within 10 seconds will get resent by the server. + Subscription subscription = + subscriptionAdminClient.createSubscription(subscriptionName, topicName, pushConfig, 10); + System.out.println("Created push subscription: " + subscription.getName()); + } + } +} +// [END pubsub_create_push_subscription] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java index 90a492f74d6b..1f5a20312c1f 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java @@ -23,6 +23,7 @@ import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.ProjectTopicName; import com.google.pubsub.v1.Subscription; +import java.io.IOException; public class CreateSubscriptionWithDeadLetterPolicyExample { @@ -44,7 +45,7 @@ public static void main(String... args) throws Exception { public static void createSubscriptionWithDeadLetterPolicyExample( String projectId, String subscriptionId, String topicId, String deadLetterTopicId) - throws Exception { + throws IOException { try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java new file mode 100644 index 000000000000..2b99be65d5e6 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java @@ -0,0 +1,43 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + createTopicExample(projectId, topicId); + } + + public static void createTopicExample(String projectId, String topicId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + Topic topic = topicAdminClient.createTopic(topicName); + System.out.println("Created topic: " + topic.getName()); + } + } +} +// [END pubsub_create_topic] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java new file mode 100644 index 000000000000..28d683f1ffb6 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java @@ -0,0 +1,50 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_delete_subscription] + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectSubscriptionName; +import java.io.IOException; + +public class DeleteSubscriptionExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + deleteSubscriptionExample(projectId, subscriptionId); + } + + public static void deleteSubscriptionExample(String projectId, String subscriptionId) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + try { + subscriptionAdminClient.deleteSubscription(subscriptionName); + System.out.println("Deleted subscription."); + } catch (NotFoundException e) { + System.out.println(e.getMessage()); + } + } + } +} +// [END pubsub_delete_subscription] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java new file mode 100644 index 000000000000..50b7480ba146 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java @@ -0,0 +1,47 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_delete_topic] + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class DeleteTopicExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + deleteTopicExample(projectId, topicId); + } + + public static void deleteTopicExample(String projectId, String topicId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + try { + topicAdminClient.deleteTopic(topicName); + System.out.println("Deleted topic."); + } catch (NotFoundException e) { + System.out.println(e.getMessage()); + } + } + } +} +// [END pubsub_delete_topic] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java new file mode 100644 index 000000000000..172fdbde58a5 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java @@ -0,0 +1,48 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_get_subscription_policy] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.pubsub.v1.ProjectSubscriptionName; +import java.io.IOException; + +public class GetSubscriptionPolicyExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + getSubscriptionPolicyExample(projectId, subscriptionId); + } + + public static void getSubscriptionPolicyExample(String projectId, String subscriptionId) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + GetIamPolicyRequest getIamPolicyRequest = + GetIamPolicyRequest.newBuilder().setResource(subscriptionName.toString()).build(); + Policy policy = subscriptionAdminClient.getIamPolicy(getIamPolicyRequest); + System.out.println("Subscription policy: " + policy); + } + } +} +// [END pubsub_get_subscription_policy] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java new file mode 100644 index 000000000000..21b938d00b95 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java @@ -0,0 +1,46 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_get_topic_policy] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class GetTopicPolicyExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + getTopicPolicyExample(projectId, topicId); + } + + public static void getTopicPolicyExample(String projectId, String topicId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + GetIamPolicyRequest getIamPolicyRequest = + GetIamPolicyRequest.newBuilder().setResource(topicName.toString()).build(); + Policy policy = topicAdminClient.getIamPolicy(getIamPolicyRequest); + System.out.println("Topic policy: " + policy); + } + } +} +// [END pubsub_get_topic_policy] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java new file mode 100644 index 000000000000..54942a13c795 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java @@ -0,0 +1,45 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_list_subscriptions] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class ListSubscriptionsInProjectExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + + listSubscriptionInProjectExample(projectId); + } + + public static void listSubscriptionInProjectExample(String projectId) throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectName projectName = ProjectName.of(projectId); + for (Subscription subscription : + subscriptionAdminClient.listSubscriptions(projectName).iterateAll()) { + System.out.println(subscription.getName()); + } + System.out.println("Listed all the subscriptions in the project."); + } + } +} +// [END pubsub_list_subscriptions] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java new file mode 100644 index 000000000000..ffb2d7153429 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java @@ -0,0 +1,45 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_list_topic_subscriptions] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class ListSubscriptionsInTopicExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + listSubscriptionInTopicExample(projectId, topicId); + } + + public static void listSubscriptionInTopicExample(String projectId, String topicId) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + for (String subscription : topicAdminClient.listTopicSubscriptions(topicName).iterateAll()) { + System.out.println(subscription); + } + System.out.println("Listed all the subscriptions in the topic."); + } + } +} +// [END pubsub_list_topic_subscriptions] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/ListTopicsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/ListTopicsExample.java new file mode 100644 index 000000000000..3771f43fd3c7 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/ListTopicsExample.java @@ -0,0 +1,44 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_list_topics] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Topic; +import java.io.IOException; + +public class ListTopicsExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + + listTopicsExample(projectId); + } + + public static void listTopicsExample(String projectId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ProjectName projectName = ProjectName.of(projectId); + for (Topic topic : topicAdminClient.listTopics(projectName).iterateAll()) { + System.out.println(topic.getName()); + } + System.out.println("Listed all topics."); + } + } +} +// [END pubsub_list_topics] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java index 1f19d7a611d6..176c36f5d48e 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java index 35b72415a3f1..785a4ce3b285 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java index 990b9a03dac9..77468f15dc69 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java index 88e42d61efa4..8702d4240d6f 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java index 909702dece97..423ec6ea9fba 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java index b00e57cc8596..069c2e4d5e54 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java new file mode 100644 index 000000000000..f0a449de8aca --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java @@ -0,0 +1,64 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_set_subscription_policy] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.pubsub.v1.ProjectSubscriptionName; +import java.io.IOException; + +public class SetSubscriptionPolicyExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + setSubscriptionPolicyExample(projectId, subscriptionId); + } + + public static void setSubscriptionPolicyExample(String projectId, String subscriptionId) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + GetIamPolicyRequest getIamPolicyRequest = + GetIamPolicyRequest.newBuilder().setResource(subscriptionName.toString()).build(); + Policy oldPolicy = subscriptionAdminClient.getIamPolicy(getIamPolicyRequest); + + // Create new role -> members binding + Binding binding = + Binding.newBuilder().setRole("roles/pubsub.editor").addMembers("allUsers").build(); + + // Add new binding to updated policy + Policy updatedPolicy = Policy.newBuilder(oldPolicy).addBindings(binding).build(); + + SetIamPolicyRequest setIamPolicyRequest = + SetIamPolicyRequest.newBuilder() + .setResource(subscriptionName.toString()) + .setPolicy(updatedPolicy) + .build(); + Policy newPolicy = subscriptionAdminClient.setIamPolicy(setIamPolicyRequest); + System.out.println("New subscription policy: " + newPolicy); + } + } +} +// [END pubsub_set_subscription_policy] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java new file mode 100644 index 000000000000..7e987c218b74 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java @@ -0,0 +1,62 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_set_topic_policy] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class SetTopicPolicyExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + setTopicPolicyExample(projectId, topicId); + } + + public static void setTopicPolicyExample(String projectId, String topicId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + GetIamPolicyRequest getIamPolicyRequest = + GetIamPolicyRequest.newBuilder().setResource(topicName.toString()).build(); + Policy oldPolicy = topicAdminClient.getIamPolicy(getIamPolicyRequest); + + // Create new role -> members binding + Binding binding = + Binding.newBuilder().setRole("roles/pubsub.editor").addMembers("allUsers").build(); + + // Add new binding to updated policy + Policy updatedPolicy = Policy.newBuilder(oldPolicy).addBindings(binding).build(); + + SetIamPolicyRequest setIamPolicyRequest = + SetIamPolicyRequest.newBuilder() + .setResource(topicName.toString()) + .setPolicy(updatedPolicy) + .build(); + Policy newPolicy = topicAdminClient.setIamPolicy(setIamPolicyRequest); + System.out.println("New topic policy: " + newPolicy); + } + } +} +// [END pubsub_set_topic_policy] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java index 0cb5aa20a4e7..4d2f40815097 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java index 901ac79059b0..1ece29c3789a 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java index 30d79298726c..e074aa3fa554 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java index 35abf2716c57..e24599eb3795 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java index a9b6df1e076b..59255096a3a4 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java index 393d526af266..a03c867a80be 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java index 1b31de20ec40..1884c4bcc17f 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2016 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java new file mode 100644 index 000000000000..977f30b57f68 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java @@ -0,0 +1,61 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_test_subscription_permissions] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.pubsub.v1.ProjectSubscriptionName; +import java.io.IOException; +import java.util.LinkedList; +import java.util.List; + +public class TestSubscriptionPermissionsExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + testSubscriptionPermissionsExample(projectId, subscriptionId); + } + + public static void testSubscriptionPermissionsExample(String projectId, String subscriptionId) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + List permissions = new LinkedList<>(); + permissions.add("pubsub.subscriptions.consume"); + permissions.add("pubsub.subscriptions.update"); + + TestIamPermissionsRequest testIamPermissionsRequest = + TestIamPermissionsRequest.newBuilder() + .setResource(subscriptionName.toString()) + .addAllPermissions(permissions) + .build(); + + TestIamPermissionsResponse testedPermissionsResponse = + subscriptionAdminClient.testIamPermissions(testIamPermissionsRequest); + + System.out.println("Tested:\n" + testedPermissionsResponse); + } + } +} +// [END pubsub_test_subscription_permissions] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java new file mode 100644 index 000000000000..6e8ccfaed2f2 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java @@ -0,0 +1,62 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_test_topic_permissions] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.pubsub.v1.ProjectTopicName; +import java.io.IOException; +import java.util.LinkedList; +import java.util.List; + +public class TestTopicPermissionsExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + testTopicPermissionsExample(projectId, topicId); + } + + public static void testTopicPermissionsExample(String projectId, String topicId) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + + List permissions = new LinkedList<>(); + permissions.add("pubsub.topics.attachSubscription"); + permissions.add("pubsub.topics.publish"); + permissions.add("pubsub.topics.update"); + + TestIamPermissionsRequest testIamPermissionsRequest = + TestIamPermissionsRequest.newBuilder() + .setResource(topicName.toString()) + .addAllPermissions(permissions) + .build(); + + TestIamPermissionsResponse testedPermissionsResponse = + topicAdminClient.testIamPermissions(testIamPermissionsRequest); + + System.out.println("Tested:\n" + testedPermissionsResponse); + } + } +} +// [END pubsub_test_topic_permissions] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java new file mode 100644 index 000000000000..ae674be74177 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java @@ -0,0 +1,50 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_update_push_configuration] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class UpdatePushConfigurationExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + String pushEndpoint = "https://my-test-project.appspot.com/push"; + + updatePushConfigurationExample(projectId, subscriptionId, pushEndpoint); + } + + public static void updatePushConfigurationExample( + String projectId, String subscriptionId, String pushEndpoint) throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + PushConfig pushConfig = PushConfig.newBuilder().setPushEndpoint(pushEndpoint).build(); + subscriptionAdminClient.modifyPushConfig(subscriptionName, pushConfig); + Subscription subscription = subscriptionAdminClient.getSubscription(subscriptionName); + System.out.println( + "Updated push endpoint to: " + subscription.getPushConfig().getPushEndpoint()); + } + } +} +// [END pubsub_update_push_configuration] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java new file mode 100644 index 000000000000..0267b5ca5774 --- /dev/null +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -0,0 +1,179 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.Timeout; + +public class AdminIT { + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String _suffix = UUID.randomUUID().toString(); + private static final String topicId = "iam-topic-" + _suffix; + private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; + private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; + private static final String pushEndpoint = "https://my-test-project.appspot.com/push"; + + private static final ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + private static final ProjectSubscriptionName pullSubscriptionName = + ProjectSubscriptionName.of(projectId, pullSubscriptionId); + private static final ProjectSubscriptionName pushSubscriptionName = + ProjectSubscriptionName.of(projectId, pushSubscriptionId); + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + } + + @Rule public Timeout globalTimeout = Timeout.seconds(300); // 5 minute timeout + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws Exception { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws Exception { + // Delete the subscriptions if they have not been cleaned. + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + try { + subscriptionAdminClient.deleteSubscription(pullSubscriptionName); + subscriptionAdminClient.deleteSubscription(pushSubscriptionName); + } catch (NotFoundException e) { + } + } + + // Delete the topic if it has not been cleaned. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + topicAdminClient.deleteTopic(topicName.toString()); + } catch (NotFoundException e) { + } + System.setOut(null); + } + + @Test + public void testAdmin() throws Exception { + // Test create topic. + CreateTopicExample.createTopicExample(projectId, topicId); + assertThat(bout.toString()).contains("Created topic: " + topicName.toString()); + + bout.reset(); + // Test create pull subscription. + CreatePullSubscriptionExample.createPullSubscriptionExample( + projectId, pullSubscriptionId, topicId); + assertThat(bout.toString()) + .contains("Created pull subscription: " + pullSubscriptionName.toString()); + + bout.reset(); + // Test create push subscription. + CreatePushSubscriptionExample.createPushSubscriptionExample( + projectId, pushSubscriptionId, topicId, pushEndpoint); + assertThat(bout.toString()) + .contains("Created push subscription: " + pushSubscriptionName.toString()); + + bout.reset(); + // Test list topics in project. + ListTopicsExample.listTopicsExample(projectId); + assertThat(bout.toString()).contains("Listed all topics."); + + bout.reset(); + // Test list subscriptions in topic. + ListSubscriptionsInTopicExample.listSubscriptionInTopicExample(projectId, topicId); + assertThat(bout.toString()).contains("Listed all the subscriptions in the topic."); + + bout.reset(); + ListSubscriptionsInProjectExample.listSubscriptionInProjectExample(projectId); + // Test list subscriptions in project. + assertThat(bout.toString()).contains("Listed all the subscriptions in the project"); + + bout.reset(); + // Test update push configuration. + UpdatePushConfigurationExample.updatePushConfigurationExample( + projectId, pullSubscriptionId, pushEndpoint); + assertThat(bout.toString()).contains("Updated push endpoint to: " + pushEndpoint); + + bout.reset(); + // Test get topic IAM policy. + GetTopicPolicyExample.getTopicPolicyExample(projectId, topicId); + assertThat(bout.toString()).contains("Topic policy:"); + + bout.reset(); + // Test get subscription IAM policy. + GetSubscriptionPolicyExample.getSubscriptionPolicyExample(projectId, pullSubscriptionId); + assertThat(bout.toString()).contains("Subscription policy:"); + + bout.reset(); + // Test set topic IAM policy. + SetTopicPolicyExample.setTopicPolicyExample(projectId, topicId); + assertThat(bout.toString()).contains("New topic policy:"); + + bout.reset(); + // Test set subscription IAM policy. + SetSubscriptionPolicyExample.setSubscriptionPolicyExample(projectId, pullSubscriptionId); + assertThat(bout.toString()).contains("New subscription policy:"); + + bout.reset(); + // Test topic permissions. + TestTopicPermissionsExample.testTopicPermissionsExample(projectId, topicId); + assertThat(bout.toString()).contains("permissions: \"pubsub.topics.attachSubscription\""); + assertThat(bout.toString()).contains("permissions: \"pubsub.topics.publish\""); + assertThat(bout.toString()).contains("permissions: \"pubsub.topics.update\""); + + bout.reset(); + TestSubscriptionPermissionsExample.testSubscriptionPermissionsExample( + projectId, pullSubscriptionId); + // Test subscription permissions. + assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.consume\""); + assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.update\""); + + bout.reset(); + // Test delete subscription. Run twice to delete both pull and push subscriptions. + DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pullSubscriptionId); + DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pushSubscriptionId); + assertThat(bout.toString()).contains("Deleted subscription."); + + bout.reset(); + // Test delete topic. + DeleteTopicExample.deleteTopicExample(projectId, topicId); + assertThat(bout.toString()).contains("Deleted topic."); + } +} diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java index 0e9e9e852313..be9e4e3d2c94 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -52,8 +52,8 @@ public class SubscriberIT { private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String _suffix = UUID.randomUUID().toString(); - private static final String topicId = "publisher-test-topic-" + _suffix; - private static final String subscriptionId = "publisher-test-subscription-" + _suffix; + private static final String topicId = "subscriber-test-topic-" + _suffix; + private static final String subscriptionId = "subscriber-test-subscription-" + _suffix; private static final TopicName topicName = TopicName.of(projectId, topicId); private static final ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subscriptionId); From 3626fe623bbaafc50f870d04048a60bf388a537c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 16 Jun 2020 14:46:55 -0700 Subject: [PATCH 0401/2363] ci: switch to secret manager for sample/integration tests (#253) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/2c593734-539a-435d-8a04-27f04c90082f/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/c4f3059c27591eb24d6942a0e357ec94c80459f2 Source-Link: https://github.com/googleapis/synthtool/commit/6eb80fa9f96433af8dbeb1c8323aa80cda49b374 Source-Link: https://github.com/googleapis/synthtool/commit/6d3eed67a45fd58f9c7bfa173c32e4fd4fed058f Source-Link: https://github.com/googleapis/synthtool/commit/d1addcdf80aa9ddef8c932c89c919024bbad7af3 --- java-pubsub/.kokoro/build.sh | 2 +- java-pubsub/.kokoro/nightly/integration.cfg | 12 ++---- java-pubsub/.kokoro/nightly/samples.cfg | 16 +++---- java-pubsub/.kokoro/populate-secrets.sh | 43 +++++++++++++++++++ java-pubsub/.kokoro/presubmit/integration.cfg | 12 ++---- java-pubsub/.kokoro/presubmit/samples.cfg | 14 +++--- java-pubsub/.kokoro/trampoline.sh | 2 + java-pubsub/README.md | 27 +++++++++++- java-pubsub/synth.metadata | 4 +- 9 files changed, 92 insertions(+), 40 deletions(-) create mode 100755 java-pubsub/.kokoro/populate-secrets.sh diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 2d5347b09c1a..e78ae54c32d6 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -39,7 +39,7 @@ retry_with_backoff 3 10 \ # if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then - export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS}) + export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS}) fi RETURN_CODE=0 diff --git a/java-pubsub/.kokoro/nightly/integration.cfg b/java-pubsub/.kokoro/nightly/integration.cfg index 40c4abb7bf08..0048c8ece7e5 100644 --- a/java-pubsub/.kokoro/nightly/integration.cfg +++ b/java-pubsub/.kokoro/nightly/integration.cfg @@ -28,14 +28,10 @@ env_vars: { env_vars: { key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + value: "secret_manager/java-it-service-account" } -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "java_it_service_account" - } - } +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" } diff --git a/java-pubsub/.kokoro/nightly/samples.cfg b/java-pubsub/.kokoro/nightly/samples.cfg index 20aabd55de11..f25429314f4d 100644 --- a/java-pubsub/.kokoro/nightly/samples.cfg +++ b/java-pubsub/.kokoro/nightly/samples.cfg @@ -24,19 +24,15 @@ env_vars: { env_vars: { key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + value: "secret_manager/java-docs-samples-service-account" } env_vars: { - key: "ENABLE_BUILD_COP" - value: "true" + key: "SECRET_MANAGER_KEYS" + value: "java-docs-samples-service-account" } -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "java_it_service_account" - } - } +env_vars: { + key: "ENABLE_BUILD_COP" + value: "true" } diff --git a/java-pubsub/.kokoro/populate-secrets.sh b/java-pubsub/.kokoro/populate-secrets.sh new file mode 100755 index 000000000000..f52514257ef0 --- /dev/null +++ b/java-pubsub/.kokoro/populate-secrets.sh @@ -0,0 +1,43 @@ +#!/bin/bash +# Copyright 2020 Google LLC. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} +function msg { println "$*" >&2 ;} +function println { printf '%s\n' "$(now) $*" ;} + + +# Populates requested secrets set in SECRET_MANAGER_KEYS from service account: +# kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com +SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" +msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" +mkdir -p ${SECRET_LOCATION} +for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") +do + msg "Retrieving secret ${key}" + docker run --entrypoint=gcloud \ + --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ + gcr.io/google.com/cloudsdktool/cloud-sdk \ + secrets versions access latest \ + --project cloud-devrel-kokoro-resources \ + --secret ${key} > \ + "${SECRET_LOCATION}/${key}" + if [[ $? == 0 ]]; then + msg "Secret written to ${SECRET_LOCATION}/${key}" + else + msg "Error retrieving secret ${key}" + fi +done diff --git a/java-pubsub/.kokoro/presubmit/integration.cfg b/java-pubsub/.kokoro/presubmit/integration.cfg index 522e5b10101c..dded67a9d54a 100644 --- a/java-pubsub/.kokoro/presubmit/integration.cfg +++ b/java-pubsub/.kokoro/presubmit/integration.cfg @@ -24,14 +24,10 @@ env_vars: { env_vars: { key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + value: "secret_manager/java-it-service-account" } -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "java_it_service_account" - } - } +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" } diff --git a/java-pubsub/.kokoro/presubmit/samples.cfg b/java-pubsub/.kokoro/presubmit/samples.cfg index 1171aead01f0..01e0960047b8 100644 --- a/java-pubsub/.kokoro/presubmit/samples.cfg +++ b/java-pubsub/.kokoro/presubmit/samples.cfg @@ -24,14 +24,10 @@ env_vars: { env_vars: { key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" + value: "secret_manager/java-docs-samples-service-account" } -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "java_it_service_account" - } - } -} +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-docs-samples-service-account" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/trampoline.sh b/java-pubsub/.kokoro/trampoline.sh index ba17ce01466b..9da0f8398773 100644 --- a/java-pubsub/.kokoro/trampoline.sh +++ b/java-pubsub/.kokoro/trampoline.sh @@ -21,4 +21,6 @@ function cleanup() { echo "cleanup"; } trap cleanup EXIT + +$(dirname $0)/populate-secrets.sh # Secret Manager secrets. python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 9d508a80240a..1e5b8e32e466 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 5.6.0 + 5.7.0 pom import @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.106.0 + 1.107.0 ``` @@ -225,15 +225,38 @@ has instructions for running the samples. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | +| Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | | Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | +| Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | +| Delete Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | +| Delete Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | +| Get Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | +| Get Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | +| List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | +| List Subscriptions In Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | +| List Topics Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | | Publish With Batch Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | | Publish With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | | Publish With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | | Publish With Error Handler Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | | Publish With Retry Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | +| Publisher Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublisherExample.java) | | Receive Messages With Delivery Attempts Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | | Remove Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | +| Set Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | +| Set Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | +| Subscribe Async Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | +| Subscribe Sync Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | +| Subscribe Sync With Lease Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | +| Subscribe With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | +| Subscribe With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | +| Subscribe With Error Listener Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | +| Subscribe With Flow Control Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | +| Test Subscription Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | +| Test Topic Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | | Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | +| Update Push Configuration Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index ac9c21b0dc0c..b1ef863a21a7 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "cdb7ae7ebfe132be955e5ceb231c1714f07a0600" + "sha": "6c1204c8f90d54dc00669ed149b00a89ee54aac9" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "987270824bd26f6a8c716d5e2022057b8ae7b26e" + "sha": "c4f3059c27591eb24d6942a0e357ec94c80459f2" } } ], From dceeebaefde1b11bea0e4d72cc2b6893d4fe086b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 01:27:34 +0200 Subject: [PATCH 0402/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v6 (#254) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `5.7.0` -> `6.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4a554025d8e4..b4f6f386cb73 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 5.7.0 + 6.0.0 pom import From 49b6547bfab7501d14ad4d8ea0a0257166c9eeef Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 19:42:22 +0200 Subject: [PATCH 0403/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v7 (#256) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `6.0.0` -> `7.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b4f6f386cb73..6182e2a64d89 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 6.0.0 + 7.0.0 pom import From a104f55751bc181ff347376893395ddb3372c4d0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 17 Jun 2020 23:34:10 -0700 Subject: [PATCH 0404/2363] chore: regenerate readme doc (#245) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/2c593734-539a-435d-8a04-27f04c90082f/targets - [ ] To automatically regenerate this PR, check this box. From 9e1bfb1b15de0b32c37434c97451d48d5f86ebab Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 18 Jun 2020 07:45:53 -0700 Subject: [PATCH 0405/2363] feat: regenerated to pick up doc changes (#246) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * docs: Add a link to Pub/Sub filtering language public documentation to pubsub.proto PiperOrigin-RevId: 315930680 Source-Author: Google APIs Source-Date: Thu Jun 11 10:43:34 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: a19b46e54cc5195557f70ff68f1696d1e3b4702e Source-Link: https://github.com/googleapis/googleapis/commit/a19b46e54cc5195557f70ff68f1696d1e3b4702e --- java-pubsub/README.md | 2 +- .../com/google/pubsub/v1/PubsubMessage.java | 33 ++++++++++++------- .../pubsub/v1/PubsubMessageOrBuilder.java | 15 ++++++--- .../com/google/pubsub/v1/Subscription.java | 21 ++++++++---- .../pubsub/v1/SubscriptionOrBuilder.java | 6 ++-- .../main/proto/google/pubsub/v1/pubsub.proto | 6 ++-- java-pubsub/synth.metadata | 6 ++-- 7 files changed, 58 insertions(+), 31 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1e5b8e32e466..0ea552bb53c7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 5.7.0 + 7.0.0 pom import diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index b801122a014a..75f6b6f2e65b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -223,7 +223,8 @@ public int getAttributesCount() { * *
        * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data.
    +   * contain non-empty data. This can be used to filter messages on the
    +   * subscription.
        * 
    * * map<string, string> attributes = 2; @@ -246,7 +247,8 @@ public java.util.Map getAttributes() { * *
        * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data.
    +   * contain non-empty data. This can be used to filter messages on the
    +   * subscription.
        * 
    * * map<string, string> attributes = 2; @@ -260,7 +262,8 @@ public java.util.Map getAttributesMap() { * *
        * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data.
    +   * contain non-empty data. This can be used to filter messages on the
    +   * subscription.
        * 
    * * map<string, string> attributes = 2; @@ -279,7 +282,8 @@ public java.lang.String getAttributesOrDefault( * *
        * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data.
    +   * contain non-empty data. This can be used to filter messages on the
    +   * subscription.
        * 
    * * map<string, string> attributes = 2; @@ -982,7 +986,8 @@ public int getAttributesCount() { * *
          * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data.
    +     * contain non-empty data. This can be used to filter messages on the
    +     * subscription.
          * 
    * * map<string, string> attributes = 2; @@ -1005,7 +1010,8 @@ public java.util.Map getAttributes() { * *
          * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data.
    +     * contain non-empty data. This can be used to filter messages on the
    +     * subscription.
          * 
    * * map<string, string> attributes = 2; @@ -1019,7 +1025,8 @@ public java.util.Map getAttributesMap() { * *
          * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data.
    +     * contain non-empty data. This can be used to filter messages on the
    +     * subscription.
          * 
    * * map<string, string> attributes = 2; @@ -1038,7 +1045,8 @@ public java.lang.String getAttributesOrDefault( * *
          * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data.
    +     * contain non-empty data. This can be used to filter messages on the
    +     * subscription.
          * 
    * * map<string, string> attributes = 2; @@ -1064,7 +1072,8 @@ public Builder clearAttributes() { * *
          * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data.
    +     * contain non-empty data. This can be used to filter messages on the
    +     * subscription.
          * 
    * * map<string, string> attributes = 2; @@ -1086,7 +1095,8 @@ public java.util.Map getMutableAttributes() * *
          * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data.
    +     * contain non-empty data. This can be used to filter messages on the
    +     * subscription.
          * 
    * * map<string, string> attributes = 2; @@ -1106,7 +1116,8 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { * *
          * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data.
    +     * contain non-empty data. This can be used to filter messages on the
    +     * subscription.
          * 
    * * map<string, string> attributes = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 027b63e7d538..dfe2dcf0c452 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -42,7 +42,8 @@ public interface PubsubMessageOrBuilder * *
        * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data.
    +   * contain non-empty data. This can be used to filter messages on the
    +   * subscription.
        * 
    * * map<string, string> attributes = 2; @@ -53,7 +54,8 @@ public interface PubsubMessageOrBuilder * *
        * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data.
    +   * contain non-empty data. This can be used to filter messages on the
    +   * subscription.
        * 
    * * map<string, string> attributes = 2; @@ -67,7 +69,8 @@ public interface PubsubMessageOrBuilder * *
        * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data.
    +   * contain non-empty data. This can be used to filter messages on the
    +   * subscription.
        * 
    * * map<string, string> attributes = 2; @@ -78,7 +81,8 @@ public interface PubsubMessageOrBuilder * *
        * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data.
    +   * contain non-empty data. This can be used to filter messages on the
    +   * subscription.
        * 
    * * map<string, string> attributes = 2; @@ -89,7 +93,8 @@ public interface PubsubMessageOrBuilder * *
        * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data.
    +   * contain non-empty data. This can be used to filter messages on the
    +   * subscription.
        * 
    * * map<string, string> attributes = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 5d4db2928d0a..01a1c6fe5816 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -733,7 +733,8 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * * *
    -   * An expression written in the Cloud Pub/Sub filter language. If non-empty,
    +   * An expression written in the Pub/Sub [filter
    +   * language](https://cloud.google.com/pubsub/docs/filtering). 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.
    @@ -759,7 +760,8 @@ public java.lang.String getFilter() {
        *
        *
        * 
    -   * An expression written in the Cloud Pub/Sub filter language. If non-empty,
    +   * An expression written in the Pub/Sub [filter
    +   * language](https://cloud.google.com/pubsub/docs/filtering). 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.
    @@ -2855,7 +2857,8 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild
          *
          *
          * 
    -     * An expression written in the Cloud Pub/Sub filter language. If non-empty,
    +     * An expression written in the Pub/Sub [filter
    +     * language](https://cloud.google.com/pubsub/docs/filtering). 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.
    @@ -2880,7 +2883,8 @@ public java.lang.String getFilter() {
          *
          *
          * 
    -     * An expression written in the Cloud Pub/Sub filter language. If non-empty,
    +     * An expression written in the Pub/Sub [filter
    +     * language](https://cloud.google.com/pubsub/docs/filtering). 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.
    @@ -2905,7 +2909,8 @@ public com.google.protobuf.ByteString getFilterBytes() {
          *
          *
          * 
    -     * An expression written in the Cloud Pub/Sub filter language. If non-empty,
    +     * An expression written in the Pub/Sub [filter
    +     * language](https://cloud.google.com/pubsub/docs/filtering). 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.
    @@ -2929,7 +2934,8 @@ public Builder setFilter(java.lang.String value) {
          *
          *
          * 
    -     * An expression written in the Cloud Pub/Sub filter language. If non-empty,
    +     * An expression written in the Pub/Sub [filter
    +     * language](https://cloud.google.com/pubsub/docs/filtering). 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.
    @@ -2949,7 +2955,8 @@ public Builder clearFilter() {
          *
          *
          * 
    -     * An expression written in the Cloud Pub/Sub filter language. If non-empty,
    +     * An expression written in the Pub/Sub [filter
    +     * language](https://cloud.google.com/pubsub/docs/filtering). 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.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java
    index 9a36df9e0fb9..f7d1714d1fdf 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java
    @@ -362,7 +362,8 @@ public interface SubscriptionOrBuilder
        *
        *
        * 
    -   * An expression written in the Cloud Pub/Sub filter language. If non-empty,
    +   * An expression written in the Pub/Sub [filter
    +   * language](https://cloud.google.com/pubsub/docs/filtering). 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.
    @@ -377,7 +378,8 @@ public interface SubscriptionOrBuilder
        *
        *
        * 
    -   * An expression written in the Cloud Pub/Sub filter language. If non-empty,
    +   * An expression written in the Pub/Sub [filter
    +   * language](https://cloud.google.com/pubsub/docs/filtering). 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.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
    index d85f2734e686..5bb1f14a5e9e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto
    @@ -191,7 +191,8 @@ message PubsubMessage {
       bytes data = 1;
     
       // Attributes for this message. If this field is empty, the message must
    -  // contain non-empty data.
    +  // contain non-empty data. This can be used to filter messages on the
    +  // subscription.
       map attributes = 2;
     
       // ID of this message, assigned by the server when the message is published.
    @@ -700,7 +701,8 @@ message Subscription {
       // value for `expiration_policy.ttl` is 1 day.
       ExpirationPolicy expiration_policy = 11;
     
    -  // An expression written in the Cloud Pub/Sub filter language. If non-empty,
    +  // An expression written in the Pub/Sub [filter
    +  // language](https://cloud.google.com/pubsub/docs/filtering). 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.
    diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata
    index b1ef863a21a7..e9db085223c8 100644
    --- a/java-pubsub/synth.metadata
    +++ b/java-pubsub/synth.metadata
    @@ -4,15 +4,15 @@
           "git": {
             "name": ".",
             "remote": "https://github.com/googleapis/java-pubsub.git",
    -        "sha": "6c1204c8f90d54dc00669ed149b00a89ee54aac9"
    +        "sha": "2c7bf606c18d051c345219e85038e27f4e42b0ce"
           }
         },
         {
           "git": {
             "name": "googleapis",
             "remote": "https://github.com/googleapis/googleapis.git",
    -        "sha": "86285bbd54fbf9708838219e3422aa47fb8fc0b0",
    -        "internalRef": "314795690"
    +        "sha": "a19b46e54cc5195557f70ff68f1696d1e3b4702e",
    +        "internalRef": "315930680"
           }
         },
         {
    
    From a535d956e12982e1bc66f1be42d5b5497d3e0902 Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Mon, 22 Jun 2020 23:47:59 +0200
    Subject: [PATCH 0406/2363] chore(deps): update dependency
     com.google.cloud:libraries-bom to v7.0.1 (#263)
    
    This PR contains the following updates:
    
    | Package | Update | Change |
    |---|---|---|
    | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `7.0.0` -> `7.0.1` |
    
    ---
    
    ### Renovate configuration
    
    :date: **Schedule**: At any time (no schedule defined).
    
    :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
    
    :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
    
    :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.
    
    ---
    
     - [ ] If you want to rebase/retry this PR, check this box
    
    ---
    
    This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub).
    ---
     java-pubsub/samples/snippets/pom.xml | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml
    index 6182e2a64d89..660d88800301 100644
    --- a/java-pubsub/samples/snippets/pom.xml
    +++ b/java-pubsub/samples/snippets/pom.xml
    @@ -45,7 +45,7 @@
           
             com.google.cloud
             libraries-bom
    -        7.0.0
    +        7.0.1
             pom
             import
           
    
    From 1baaf62540a28275e6db3cadf010b441243c51c9 Mon Sep 17 00:00:00 2001
    From: yangnuoyu <46553752+yangnuoyu@users.noreply.github.com>
    Date: Mon, 22 Jun 2020 16:22:49 -0700
    Subject: [PATCH 0407/2363] feat(deps): adopt flatten plugin and
     google-cloud-shared-dependencies (#259)
    
    ---
     java-pubsub/.gitignore                           |  2 ++
     java-pubsub/google-cloud-pubsub/pom.xml          |  9 ++++++---
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  |  9 +++++++++
     java-pubsub/pom.xml                              | 13 ++-----------
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml |  9 +++++++++
     5 files changed, 28 insertions(+), 14 deletions(-)
    
    diff --git a/java-pubsub/.gitignore b/java-pubsub/.gitignore
    index be0ddcd12a9b..dbde6a740b09 100644
    --- a/java-pubsub/.gitignore
    +++ b/java-pubsub/.gitignore
    @@ -40,3 +40,5 @@ api_key
     # Python utilities
     *.pyc
     artman-genfiles
    +
    +.flattened-pom.xml
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 747d66f8775d..63dffeb02e7d 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -85,7 +85,6 @@
         
           com.google.auto.value
           auto-value-annotations
    -      ${autovalue.version}
         
         
           com.google.http-client
    @@ -163,11 +162,16 @@
                 
                   com.google.auto.value
                   auto-value
    -              ${autovalue.version}
    +              ${auto-value-annotation.version}
                 
               
             
           
    +
    +      
    +        org.codehaus.mojo
    +        flatten-maven-plugin
    +      
         
       
     
    @@ -181,7 +185,6 @@
             
               javax.annotation
               javax.annotation-api
    -          ${javax.annotations.version}
             
           
         
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index c9b16e11fe28..3ef0b0cff5c8 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -53,4 +53,13 @@
           
         
       
    +
    +  
    +    
    +      
    +        org.codehaus.mojo
    +        flatten-maven-plugin
    +      
    +    
    +  
     
    \ No newline at end of file
    diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml
    index f989230e3adf..bfac2b88c374 100644
    --- a/java-pubsub/pom.xml
    +++ b/java-pubsub/pom.xml
    @@ -63,10 +63,6 @@
         UTF-8
         github
         google-cloud-pubsub-parent
    -    4.2
    -    1.3.2
    -    2.4.0
    -    1.7.3
       
     
       
    @@ -95,15 +91,10 @@
             1.107.1-SNAPSHOT
           
     
    -      
    -        javax.annotation
    -        javax.annotation-api
    -        ${javax.annotations.version}
    -      
           
             com.google.errorprone
             error_prone_annotations
    -        ${errorprone.version}
    +        2.4.0
           
     
           
    @@ -116,7 +107,7 @@
           
             org.easymock
             easymock
    -        ${easymock.version}
    +        4.2
             test
           
           
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index 6ffdee4ce5a2..82630be31c3c 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -30,4 +30,13 @@
           guava
         
       
    +
    +  
    +    
    +      
    +        org.codehaus.mojo
    +        flatten-maven-plugin
    +      
    +    
    +  
     
    \ No newline at end of file
    
    From e85f279b47a8cc8cb1b01f4a1f9aa2dd2327ce97 Mon Sep 17 00:00:00 2001
    From: Yoshi Automation Bot 
    Date: Tue, 23 Jun 2020 18:52:32 -0700
    Subject: [PATCH 0408/2363] chore: Re-generated to pick up changes from
     googleapis (#266)
    
    * changes without context
    
            autosynth cannot find the source of changes triggered by earlier changes in this
            repository, or by version upgrades to tools such as linters.
    
    * feature: Add flow control settings for StreamingPullRequest to pubsub.proto
    
    PiperOrigin-RevId: 317914250
    
    Source-Author: Google APIs 
    Source-Date: Tue Jun 23 12:05:24 2020 -0700
    Source-Repo: googleapis/googleapis
    Source-Sha: 14f0c2cc9392234707247ab2b0782c118cb179aa
    Source-Link: https://github.com/googleapis/googleapis/commit/14f0c2cc9392234707247ab2b0782c118cb179aa
    ---
     java-pubsub/README.md                         |   2 +-
     .../com/google/pubsub/v1/PubsubProto.java     | 294 +++++++++---------
     .../pubsub/v1/StreamingPullRequest.java       | 244 +++++++++++++++
     .../v1/StreamingPullRequestOrBuilder.java     |  42 +++
     .../main/proto/google/pubsub/v1/pubsub.proto  |  22 ++
     java-pubsub/synth.metadata                    |   6 +-
     6 files changed, 461 insertions(+), 149 deletions(-)
    
    diff --git a/java-pubsub/README.md b/java-pubsub/README.md
    index 0ea552bb53c7..34eb51d446dc 100644
    --- a/java-pubsub/README.md
    +++ b/java-pubsub/README.md
    @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
         
           com.google.cloud
           libraries-bom
    -      7.0.0
    +      7.0.1
           pom
           import
         
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    index 818591419bcc..b772a830cdf2 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java
    @@ -353,156 +353,158 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               + "\003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003"
               + "\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscriptio"
               + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S"
    -          + "ubscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\350\001\n\024St"
    +          + "ubscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\251\002\n\024St"
               + "reamingPullRequest\022@\n\014subscription\030\001 \001(\t"
               + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip"
               + "tion\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_deadline"
               + "_seconds\030\003 \003(\005\022\037\n\027modify_deadline_ack_id"
               + "s\030\004 \003(\t\022(\n\033stream_ack_deadline_seconds\030\005"
    -          + " \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\"U\n\025Streamin"
    -          + "gPullResponse\022<\n\021received_messages\030\001 \003(\013"
    -          + "2!.google.pubsub.v1.ReceivedMessage\"\203\002\n\025"
    -          + "CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002"
    -          + "\372A \n\036pubsub.googleapis.com/Snapshot\022@\n\014s"
    -          + "ubscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.google"
    -          + "apis.com/Subscription\022C\n\006labels\030\003 \003(\01323."
    -          + "google.pubsub.v1.CreateSnapshotRequest.L"
    -          + "abelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r"
    -          + "\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequ"
    -          + "est\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1"
    -          + ".SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go"
    -          + "ogle.protobuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapsho"
    -          + "t\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pub"
    -          + "sub.googleapis.com/Topic\022/\n\013expire_time\030"
    -          + "\003 \001(\0132\032.google.protobuf.Timestamp\0226\n\006lab"
    -          + "els\030\004 \003(\0132&.google.pubsub.v1.Snapshot.La"
    -          + "belsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
    -          + "\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis"
    -          + ".com/Snapshot\022\'projects/{project}/snapsh"
    -          + "ots/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010"
    -          + "snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapi"
    -          + "s.com/Snapshot\"\203\001\n\024ListSnapshotsRequest\022"
    -          + "D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcem"
    -          + "anager.googleapis.com/Project\022\021\n\tpage_si"
    -          + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnap"
    -          + "shotsResponse\022-\n\tsnapshots\030\001 \003(\0132\032.googl"
    -          + "e.pubsub.v1.Snapshot\022\027\n\017next_page_token\030"
    -          + "\002 \001(\t\"Q\n\025DeleteSnapshotRequest\0228\n\010snapsh"
    -          + "ot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/"
    -          + "Snapshot\"\276\001\n\013SeekRequest\022@\n\014subscription"
    -          + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su"
    -          + "bscription\022*\n\004time\030\002 \001(\0132\032.google.protob"
    -          + "uf.TimestampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036p"
    -          + "ubsub.googleapis.com/SnapshotH\000B\010\n\006targe"
    -          + "t\"\016\n\014SeekResponse2\243\013\n\tPublisher\022q\n\013Creat"
    -          + "eTopic\022\027.google.pubsub.v1.Topic\032\027.google"
    -          + ".pubsub.v1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=proj"
    -          + "ects/*/topics/*}:\001*\332A\004name\022}\n\013UpdateTopi"
    -          + "c\022$.google.pubsub.v1.UpdateTopicRequest\032"
    -          + "\027.google.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{t"
    -          + "opic.name=projects/*/topics/*}:\001*\022\223\001\n\007Pu"
    -          + "blish\022 .google.pubsub.v1.PublishRequest\032"
    -          + "!.google.pubsub.v1.PublishResponse\"C\202\323\344\223"
    -          + "\002,\"\'/v1/{topic=projects/*/topics/*}:publ"
    -          + "ish:\001*\332A\016topic,messages\022w\n\010GetTopic\022!.go"
    -          + "ogle.pubsub.v1.GetTopicRequest\032\027.google."
    -          + "pubsub.v1.Topic\"/\202\323\344\223\002!\022\037/v1/{topic=proj"
    -          + "ects/*/topics/*}\332A\005topic\022\212\001\n\nListTopics\022"
    -          + "#.google.pubsub.v1.ListTopicsRequest\032$.g"
    -          + "oogle.pubsub.v1.ListTopicsResponse\"1\202\323\344\223"
    -          + "\002!\022\037/v1/{project=projects/*}/topics\332A\007pr"
    -          + "oject\022\272\001\n\026ListTopicSubscriptions\022/.googl"
    -          + "e.pubsub.v1.ListTopicSubscriptionsReques"
    -          + "t\0320.google.pubsub.v1.ListTopicSubscripti"
    -          + "onsResponse\"=\202\323\344\223\002/\022-/v1/{topic=projects"
    -          + "/*/topics/*}/subscriptions\332A\005topic\022\252\001\n\022L"
    -          + "istTopicSnapshots\022+.google.pubsub.v1.Lis"
    -          + "tTopicSnapshotsRequest\032,.google.pubsub.v"
    -          + "1.ListTopicSnapshotsResponse\"9\202\323\344\223\002+\022)/v"
    -          + "1/{topic=projects/*/topics/*}/snapshots\332"
    -          + "A\005topic\022|\n\013DeleteTopic\022$.google.pubsub.v"
    -          + "1.DeleteTopicRequest\032\026.google.protobuf.E"
    -          + "mpty\"/\202\323\344\223\002!*\037/v1/{topic=projects/*/topi"
    -          + "cs/*}\332A\005topic\022\255\001\n\022DetachSubscription\022+.g"
    -          + "oogle.pubsub.v1.DetachSubscriptionReques"
    -          + "t\032,.google.pubsub.v1.DetachSubscriptionR"
    -          + "esponse\"<\202\323\344\223\0026\"4/v1/{subscription=proje"
    -          + "cts/*/subscriptions/*}:detach\032p\312A\025pubsub"
    -          + ".googleapis.com\322AUhttps://www.googleapis"
    -          + ".com/auth/cloud-platform,https://www.goo"
    -          + "gleapis.com/auth/pubsub2\203\025\n\nSubscriber\022\264"
    -          + "\001\n\022CreateSubscription\022\036.google.pubsub.v1"
    -          + ".Subscription\032\036.google.pubsub.v1.Subscri"
    -          + "ption\"^\202\323\344\223\002*\032%/v1/{name=projects/*/subs"
    -          + "criptions/*}:\001*\332A+name,topic,push_config"
    -          + ",ack_deadline_seconds\022\241\001\n\017GetSubscriptio"
    -          + "n\022(.google.pubsub.v1.GetSubscriptionRequ"
    -          + "est\032\036.google.pubsub.v1.Subscription\"D\202\323\344"
    -          + "\223\002/\022-/v1/{subscription=projects/*/subscr"
    -          + "iptions/*}\332A\014subscription\022\240\001\n\022UpdateSubs"
    -          + "cription\022+.google.pubsub.v1.UpdateSubscr"
    -          + "iptionRequest\032\036.google.pubsub.v1.Subscri"
    -          + "ption\"=\202\323\344\223\002722/v1/{subscription.name=pr"
    -          + "ojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSub"
    -          + "scriptions\022*.google.pubsub.v1.ListSubscr"
    -          + "iptionsRequest\032+.google.pubsub.v1.ListSu"
    -          + "bscriptionsResponse\"8\202\323\344\223\002(\022&/v1/{projec"
    -          + "t=projects/*}/subscriptions\332A\007project\022\237\001"
    -          + "\n\022DeleteSubscription\022+.google.pubsub.v1."
    -          + "DeleteSubscriptionRequest\032\026.google.proto"
    -          + "buf.Empty\"D\202\323\344\223\002/*-/v1/{subscription=pro"
    -          + "jects/*/subscriptions/*}\332A\014subscription\022"
    -          + "\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v1"
    -          + ".ModifyAckDeadlineRequest\032\026.google.proto"
    -          + "buf.Empty\"v\202\323\344\223\002D\"?/v1/{subscription=pro"
    -          + "jects/*/subscriptions/*}:modifyAckDeadli"
    -          + "ne:\001*\332A)subscription,ack_ids,ack_deadlin"
    -          + "e_seconds\022\250\001\n\013Acknowledge\022$.google.pubsu"
    -          + "b.v1.AcknowledgeRequest\032\026.google.protobu"
    -          + "f.Empty\"[\202\323\344\223\002>\"9/v1/{subscription=proje"
    -          + "cts/*/subscriptions/*}:acknowledge:\001*\332A\024"
    -          + "subscription,ack_ids\022\263\001\n\004Pull\022\035.google.p"
    -          + "ubsub.v1.PullRequest\032\036.google.pubsub.v1."
    -          + "PullResponse\"l\202\323\344\223\0027\"2/v1/{subscription="
    -          + "projects/*/subscriptions/*}:pull:\001*\332A,su"
    -          + "bscription,return_immediately,max_messag"
    -          + "es\022f\n\rStreamingPull\022&.google.pubsub.v1.S"
    -          + "treamingPullRequest\032\'.google.pubsub.v1.S"
    -          + "treamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPus"
    -          + "hConfig\022).google.pubsub.v1.ModifyPushCon"
    -          + "figRequest\032\026.google.protobuf.Empty\"d\202\323\344\223"
    -          + "\002C\">/v1/{subscription=projects/*/subscri"
    -          + "ptions/*}:modifyPushConfig:\001*\332A\030subscrip"
    -          + "tion,push_config\022\211\001\n\013GetSnapshot\022$.googl"
    -          + "e.pubsub.v1.GetSnapshotRequest\032\032.google."
    -          + "pubsub.v1.Snapshot\"8\202\323\344\223\002\'\022%/v1/{snapsho"
    -          + "t=projects/*/snapshots/*}\332A\010snapshot\022\226\001\n"
    -          + "\rListSnapshots\022&.google.pubsub.v1.ListSn"
    -          + "apshotsRequest\032\'.google.pubsub.v1.ListSn"
    -          + "apshotsResponse\"4\202\323\344\223\002$\022\"/v1/{project=pr"
    -          + "ojects/*}/snapshots\332A\007project\022\227\001\n\016Create"
    -          + "Snapshot\022\'.google.pubsub.v1.CreateSnapsh"
    -          + "otRequest\032\032.google.pubsub.v1.Snapshot\"@\202"
    -          + "\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}"
    -          + ":\001*\332A\021name,subscription\022\214\001\n\016UpdateSnapsh"
    -          + "ot\022\'.google.pubsub.v1.UpdateSnapshotRequ"
    -          + "est\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002/2"
    -          + "*/v1/{snapshot.name=projects/*/snapshots"
    -          + "/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsu"
    -          + "b.v1.DeleteSnapshotRequest\032\026.google.prot"
    -          + "obuf.Empty\"8\202\323\344\223\002\'*%/v1/{snapshot=projec"
    -          + "ts/*/snapshots/*}\332A\010snapshot\022\204\001\n\004Seek\022\035."
    -          + "google.pubsub.v1.SeekRequest\032\036.google.pu"
    -          + "bsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subsc"
    -          + "ription=projects/*/subscriptions/*}:seek"
    -          + ":\001*\032p\312A\025pubsub.googleapis.com\322AUhttps://"
    -          + "www.googleapis.com/auth/cloud-platform,h"
    -          + "ttps://www.googleapis.com/auth/pubsubB\256\001"
    -          + "\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z6g"
    -          + "oogle.golang.org/genproto/googleapis/pub"
    -          + "sub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub.V"
    -          + "1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Clo"
    -          + "ud::PubSub::V1b\006proto3"
    +          + " \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030max_outs"
    +          + "tanding_messages\030\007 \001(\003\022\035\n\025max_outstandin"
    +          + "g_bytes\030\010 \001(\003\"U\n\025StreamingPullResponse\022<"
    +          + "\n\021received_messages\030\001 \003(\0132!.google.pubsu"
    +          + "b.v1.ReceivedMessage\"\203\002\n\025CreateSnapshotR"
    +          + "equest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.goo"
    +          + "gleapis.com/Snapshot\022@\n\014subscription\030\002 \001"
    +          + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr"
    +          + "iption\022C\n\006labels\030\003 \003(\01323.google.pubsub.v"
    +          + "1.CreateSnapshotRequest.LabelsEntry\032-\n\013L"
    +          + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
    +          + "8\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010snapshot"
    +          + "\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003\340A\002\022"
    +          + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F"
    +          + "ieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t"
    +          + "\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googleapis."
    +          + "com/Topic\022/\n\013expire_time\030\003 \001(\0132\032.google."
    +          + "protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.goo"
    +          + "gle.pubsub.v1.Snapshot.LabelsEntry\032-\n\013La"
    +          + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028"
    +          + "\001:L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'"
    +          + "projects/{project}/snapshots/{snapshot}\""
    +          + "N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB"
    +          + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\""
    +          + "\203\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001("
    +          + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap"
    +          + "is.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag"
    +          + "e_token\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-"
    +          + "\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sna"
    +          + "pshot\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\025Delete"
    +          + "SnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A"
    +          + " \n\036pubsub.googleapis.com/Snapshot\"\276\001\n\013Se"
    +          + "ekRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n"
    +          + "\"pubsub.googleapis.com/Subscription\022*\n\004t"
    +          + "ime\030\002 \001(\0132\032.google.protobuf.TimestampH\000\022"
    +          + "7\n\010snapshot\030\003 \001(\tB#\372A \n\036pubsub.googleapi"
    +          + "s.com/SnapshotH\000B\010\n\006target\"\016\n\014SeekRespon"
    +          + "se2\243\013\n\tPublisher\022q\n\013CreateTopic\022\027.google"
    +          + ".pubsub.v1.Topic\032\027.google.pubsub.v1.Topi"
    +          + "c\"0\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*"
    +          + "}:\001*\332A\004name\022}\n\013UpdateTopic\022$.google.pubs"
    +          + "ub.v1.UpdateTopicRequest\032\027.google.pubsub"
    +          + ".v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name=proje"
    +          + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google."
    +          + "pubsub.v1.PublishRequest\032!.google.pubsub"
    +          + ".v1.PublishResponse\"C\202\323\344\223\002,\"\'/v1/{topic="
    +          + "projects/*/topics/*}:publish:\001*\332A\016topic,"
    +          + "messages\022w\n\010GetTopic\022!.google.pubsub.v1."
    +          + "GetTopicRequest\032\027.google.pubsub.v1.Topic"
    +          + "\"/\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*"
    +          + "}\332A\005topic\022\212\001\n\nListTopics\022#.google.pubsub"
    +          + ".v1.ListTopicsRequest\032$.google.pubsub.v1"
    +          + ".ListTopicsResponse\"1\202\323\344\223\002!\022\037/v1/{projec"
    +          + "t=projects/*}/topics\332A\007project\022\272\001\n\026ListT"
    +          + "opicSubscriptions\022/.google.pubsub.v1.Lis"
    +          + "tTopicSubscriptionsRequest\0320.google.pubs"
    +          + "ub.v1.ListTopicSubscriptionsResponse\"=\202\323"
    +          + "\344\223\002/\022-/v1/{topic=projects/*/topics/*}/su"
    +          + "bscriptions\332A\005topic\022\252\001\n\022ListTopicSnapsho"
    +          + "ts\022+.google.pubsub.v1.ListTopicSnapshots"
    +          + "Request\032,.google.pubsub.v1.ListTopicSnap"
    +          + "shotsResponse\"9\202\323\344\223\002+\022)/v1/{topic=projec"
    +          + "ts/*/topics/*}/snapshots\332A\005topic\022|\n\013Dele"
    +          + "teTopic\022$.google.pubsub.v1.DeleteTopicRe"
    +          + "quest\032\026.google.protobuf.Empty\"/\202\323\344\223\002!*\037/"
    +          + "v1/{topic=projects/*/topics/*}\332A\005topic\022\255"
    +          + "\001\n\022DetachSubscription\022+.google.pubsub.v1"
    +          + ".DetachSubscriptionRequest\032,.google.pubs"
    +          + "ub.v1.DetachSubscriptionResponse\"<\202\323\344\223\0026"
    +          + "\"4/v1/{subscription=projects/*/subscript"
    +          + "ions/*}:detach\032p\312A\025pubsub.googleapis.com"
    +          + "\322AUhttps://www.googleapis.com/auth/cloud"
    +          + "-platform,https://www.googleapis.com/aut"
    +          + "h/pubsub2\203\025\n\nSubscriber\022\264\001\n\022CreateSubscr"
    +          + "iption\022\036.google.pubsub.v1.Subscription\032\036"
    +          + ".google.pubsub.v1.Subscription\"^\202\323\344\223\002*\032%"
    +          + "/v1/{name=projects/*/subscriptions/*}:\001*"
    +          + "\332A+name,topic,push_config,ack_deadline_s"
    +          + "econds\022\241\001\n\017GetSubscription\022(.google.pubs"
    +          + "ub.v1.GetSubscriptionRequest\032\036.google.pu"
    +          + "bsub.v1.Subscription\"D\202\323\344\223\002/\022-/v1/{subsc"
    +          + "ription=projects/*/subscriptions/*}\332A\014su"
    +          + "bscription\022\240\001\n\022UpdateSubscription\022+.goog"
    +          + "le.pubsub.v1.UpdateSubscriptionRequest\032\036"
    +          + ".google.pubsub.v1.Subscription\"=\202\323\344\223\002722"
    +          + "/v1/{subscription.name=projects/*/subscr"
    +          + "iptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*.go"
    +          + "ogle.pubsub.v1.ListSubscriptionsRequest\032"
    +          + "+.google.pubsub.v1.ListSubscriptionsResp"
    +          + "onse\"8\202\323\344\223\002(\022&/v1/{project=projects/*}/s"
    +          + "ubscriptions\332A\007project\022\237\001\n\022DeleteSubscri"
    +          + "ption\022+.google.pubsub.v1.DeleteSubscript"
    +          + "ionRequest\032\026.google.protobuf.Empty\"D\202\323\344\223"
    +          + "\002/*-/v1/{subscription=projects/*/subscri"
    +          + "ptions/*}\332A\014subscription\022\317\001\n\021ModifyAckDe"
    +          + "adline\022*.google.pubsub.v1.ModifyAckDeadl"
    +          + "ineRequest\032\026.google.protobuf.Empty\"v\202\323\344\223"
    +          + "\002D\"?/v1/{subscription=projects/*/subscri"
    +          + "ptions/*}:modifyAckDeadline:\001*\332A)subscri"
    +          + "ption,ack_ids,ack_deadline_seconds\022\250\001\n\013A"
    +          + "cknowledge\022$.google.pubsub.v1.Acknowledg"
    +          + "eRequest\032\026.google.protobuf.Empty\"[\202\323\344\223\002>"
    +          + "\"9/v1/{subscription=projects/*/subscript"
    +          + "ions/*}:acknowledge:\001*\332A\024subscription,ac"
    +          + "k_ids\022\263\001\n\004Pull\022\035.google.pubsub.v1.PullRe"
    +          + "quest\032\036.google.pubsub.v1.PullResponse\"l\202"
    +          + "\323\344\223\0027\"2/v1/{subscription=projects/*/subs"
    +          + "criptions/*}:pull:\001*\332A,subscription,retu"
    +          + "rn_immediately,max_messages\022f\n\rStreaming"
    +          + "Pull\022&.google.pubsub.v1.StreamingPullReq"
    +          + "uest\032\'.google.pubsub.v1.StreamingPullRes"
    +          + "ponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).googl"
    +          + "e.pubsub.v1.ModifyPushConfigRequest\032\026.go"
    +          + "ogle.protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subscr"
    +          + "iption=projects/*/subscriptions/*}:modif"
    +          + "yPushConfig:\001*\332A\030subscription,push_confi"
    +          + "g\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1.Get"
    +          + "SnapshotRequest\032\032.google.pubsub.v1.Snaps"
    +          + "hot\"8\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/sn"
    +          + "apshots/*}\332A\010snapshot\022\226\001\n\rListSnapshots\022"
    +          + "&.google.pubsub.v1.ListSnapshotsRequest\032"
    +          + "\'.google.pubsub.v1.ListSnapshotsResponse"
    +          + "\"4\202\323\344\223\002$\022\"/v1/{project=projects/*}/snaps"
    +          + "hots\332A\007project\022\227\001\n\016CreateSnapshot\022\'.goog"
    +          + "le.pubsub.v1.CreateSnapshotRequest\032\032.goo"
    +          + "gle.pubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{nam"
    +          + "e=projects/*/snapshots/*}:\001*\332A\021name,subs"
    +          + "cription\022\214\001\n\016UpdateSnapshot\022\'.google.pub"
    +          + "sub.v1.UpdateSnapshotRequest\032\032.google.pu"
    +          + "bsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot."
    +          + "name=projects/*/snapshots/*}:\001*\022\213\001\n\016Dele"
    +          + "teSnapshot\022\'.google.pubsub.v1.DeleteSnap"
    +          + "shotRequest\032\026.google.protobuf.Empty\"8\202\323\344"
    +          + "\223\002\'*%/v1/{snapshot=projects/*/snapshots/"
    +          + "*}\332A\010snapshot\022\204\001\n\004Seek\022\035.google.pubsub.v"
    +          + "1.SeekRequest\032\036.google.pubsub.v1.SeekRes"
    +          + "ponse\"=\202\323\344\223\0027\"2/v1/{subscription=project"
    +          + "s/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub."
    +          + "googleapis.com\322AUhttps://www.googleapis."
    +          + "com/auth/cloud-platform,https://www.goog"
    +          + "leapis.com/auth/pubsubB\256\001\n\024com.google.pu"
    +          + "bsub.v1B\013PubsubProtoP\001Z6google.golang.or"
    +          + "g/genproto/googleapis/pubsub/v1;pubsub\370\001"
    +          + "\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clou"
    +          + "d\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1b"
    +          + "\006proto3"
         };
         descriptor =
             com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
    @@ -834,6 +836,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                   "ModifyDeadlineAckIds",
                   "StreamAckDeadlineSeconds",
                   "ClientId",
    +              "MaxOutstandingMessages",
    +              "MaxOutstandingBytes",
                 });
         internal_static_google_pubsub_v1_StreamingPullResponse_descriptor =
             getDescriptor().getMessageTypes().get(33);
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    index ba52cd753977..d0c8d9a3f5b8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    @@ -139,6 +139,16 @@ private StreamingPullRequest(
                   clientId_ = s;
                   break;
                 }
    +          case 56:
    +            {
    +              maxOutstandingMessages_ = input.readInt64();
    +              break;
    +            }
    +          case 64:
    +            {
    +              maxOutstandingBytes_ = input.readInt64();
    +              break;
    +            }
               default:
                 {
                   if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    @@ -554,6 +564,58 @@ public com.google.protobuf.ByteString getClientIdBytes() {
         }
       }
     
    +  public static final int MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER = 7;
    +  private long maxOutstandingMessages_;
    +  /**
    +   *
    +   *
    +   * 
    +   * Flow control settings for the maximum number of outstanding messages. When
    +   * there are `max_outstanding_messages` or more currently sent to the
    +   * streaming pull client that have not yet been acked or nacked, the server
    +   * stops sending more messages. The sending of messages resumes once the
    +   * number of outstanding messages is less than this value. If the value is
    +   * <= 0, there is no limit to the number of outstanding messages. This
    +   * property can only be set on the initial StreamingPullRequest. If it is set
    +   * on a subsequent request, the stream will be aborted with status
    +   * `INVALID_ARGUMENT`.
    +   * 
    + * + * int64 max_outstanding_messages = 7; + * + * @return The maxOutstandingMessages. + */ + @java.lang.Override + public long getMaxOutstandingMessages() { + return maxOutstandingMessages_; + } + + public static final int MAX_OUTSTANDING_BYTES_FIELD_NUMBER = 8; + private long maxOutstandingBytes_; + /** + * + * + *
    +   * Flow control settings for the maximum number of outstanding bytes. When
    +   * there are `max_outstanding_bytes` or more worth of messages currently sent
    +   * to the streaming pull client that have not yet been acked or nacked, the
    +   * server will stop sending more messages. The sending of messages resumes
    +   * once the number of outstanding bytes is less than this value. If the value
    +   * is <= 0, there is no limit to the number of outstanding bytes. This
    +   * property can only be set on the initial StreamingPullRequest. If it is set
    +   * on a subsequent request, the stream will be aborted with status
    +   * `INVALID_ARGUMENT`.
    +   * 
    + * + * int64 max_outstanding_bytes = 8; + * + * @return The maxOutstandingBytes. + */ + @java.lang.Override + public long getMaxOutstandingBytes() { + return maxOutstandingBytes_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -592,6 +654,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getClientIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clientId_); } + if (maxOutstandingMessages_ != 0L) { + output.writeInt64(7, maxOutstandingMessages_); + } + if (maxOutstandingBytes_ != 0L) { + output.writeInt64(8, maxOutstandingBytes_); + } unknownFields.writeTo(output); } @@ -640,6 +708,12 @@ public int getSerializedSize() { if (!getClientIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clientId_); } + if (maxOutstandingMessages_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxOutstandingMessages_); + } + if (maxOutstandingBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, maxOutstandingBytes_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -662,6 +736,8 @@ public boolean equals(final java.lang.Object obj) { if (!getModifyDeadlineAckIdsList().equals(other.getModifyDeadlineAckIdsList())) return false; if (getStreamAckDeadlineSeconds() != other.getStreamAckDeadlineSeconds()) return false; if (!getClientId().equals(other.getClientId())) return false; + if (getMaxOutstandingMessages() != other.getMaxOutstandingMessages()) return false; + if (getMaxOutstandingBytes() != other.getMaxOutstandingBytes()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -691,6 +767,10 @@ public int hashCode() { hash = (53 * hash) + getStreamAckDeadlineSeconds(); hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingMessages()); + hash = (37 * hash) + MAX_OUTSTANDING_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingBytes()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -850,6 +930,10 @@ public Builder clear() { clientId_ = ""; + maxOutstandingMessages_ = 0L; + + maxOutstandingBytes_ = 0L; + return this; } @@ -896,6 +980,8 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() { result.modifyDeadlineAckIds_ = modifyDeadlineAckIds_; result.streamAckDeadlineSeconds_ = streamAckDeadlineSeconds_; result.clientId_ = clientId_; + result.maxOutstandingMessages_ = maxOutstandingMessages_; + result.maxOutstandingBytes_ = maxOutstandingBytes_; onBuilt(); return result; } @@ -986,6 +1072,12 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { clientId_ = other.clientId_; onChanged(); } + if (other.getMaxOutstandingMessages() != 0L) { + setMaxOutstandingMessages(other.getMaxOutstandingMessages()); + } + if (other.getMaxOutstandingBytes() != 0L) { + setMaxOutstandingBytes(other.getMaxOutstandingBytes()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1945,6 +2037,158 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { return this; } + private long maxOutstandingMessages_; + /** + * + * + *
    +     * Flow control settings for the maximum number of outstanding messages. When
    +     * there are `max_outstanding_messages` or more currently sent to the
    +     * streaming pull client that have not yet been acked or nacked, the server
    +     * stops sending more messages. The sending of messages resumes once the
    +     * number of outstanding messages is less than this value. If the value is
    +     * <= 0, there is no limit to the number of outstanding messages. This
    +     * property can only be set on the initial StreamingPullRequest. If it is set
    +     * on a subsequent request, the stream will be aborted with status
    +     * `INVALID_ARGUMENT`.
    +     * 
    + * + * int64 max_outstanding_messages = 7; + * + * @return The maxOutstandingMessages. + */ + @java.lang.Override + public long getMaxOutstandingMessages() { + return maxOutstandingMessages_; + } + /** + * + * + *
    +     * Flow control settings for the maximum number of outstanding messages. When
    +     * there are `max_outstanding_messages` or more currently sent to the
    +     * streaming pull client that have not yet been acked or nacked, the server
    +     * stops sending more messages. The sending of messages resumes once the
    +     * number of outstanding messages is less than this value. If the value is
    +     * <= 0, there is no limit to the number of outstanding messages. This
    +     * property can only be set on the initial StreamingPullRequest. If it is set
    +     * on a subsequent request, the stream will be aborted with status
    +     * `INVALID_ARGUMENT`.
    +     * 
    + * + * int64 max_outstanding_messages = 7; + * + * @param value The maxOutstandingMessages to set. + * @return This builder for chaining. + */ + public Builder setMaxOutstandingMessages(long value) { + + maxOutstandingMessages_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Flow control settings for the maximum number of outstanding messages. When
    +     * there are `max_outstanding_messages` or more currently sent to the
    +     * streaming pull client that have not yet been acked or nacked, the server
    +     * stops sending more messages. The sending of messages resumes once the
    +     * number of outstanding messages is less than this value. If the value is
    +     * <= 0, there is no limit to the number of outstanding messages. This
    +     * property can only be set on the initial StreamingPullRequest. If it is set
    +     * on a subsequent request, the stream will be aborted with status
    +     * `INVALID_ARGUMENT`.
    +     * 
    + * + * int64 max_outstanding_messages = 7; + * + * @return This builder for chaining. + */ + public Builder clearMaxOutstandingMessages() { + + maxOutstandingMessages_ = 0L; + onChanged(); + return this; + } + + private long maxOutstandingBytes_; + /** + * + * + *
    +     * Flow control settings for the maximum number of outstanding bytes. When
    +     * there are `max_outstanding_bytes` or more worth of messages currently sent
    +     * to the streaming pull client that have not yet been acked or nacked, the
    +     * server will stop sending more messages. The sending of messages resumes
    +     * once the number of outstanding bytes is less than this value. If the value
    +     * is <= 0, there is no limit to the number of outstanding bytes. This
    +     * property can only be set on the initial StreamingPullRequest. If it is set
    +     * on a subsequent request, the stream will be aborted with status
    +     * `INVALID_ARGUMENT`.
    +     * 
    + * + * int64 max_outstanding_bytes = 8; + * + * @return The maxOutstandingBytes. + */ + @java.lang.Override + public long getMaxOutstandingBytes() { + return maxOutstandingBytes_; + } + /** + * + * + *
    +     * Flow control settings for the maximum number of outstanding bytes. When
    +     * there are `max_outstanding_bytes` or more worth of messages currently sent
    +     * to the streaming pull client that have not yet been acked or nacked, the
    +     * server will stop sending more messages. The sending of messages resumes
    +     * once the number of outstanding bytes is less than this value. If the value
    +     * is <= 0, there is no limit to the number of outstanding bytes. This
    +     * property can only be set on the initial StreamingPullRequest. If it is set
    +     * on a subsequent request, the stream will be aborted with status
    +     * `INVALID_ARGUMENT`.
    +     * 
    + * + * int64 max_outstanding_bytes = 8; + * + * @param value The maxOutstandingBytes to set. + * @return This builder for chaining. + */ + public Builder setMaxOutstandingBytes(long value) { + + maxOutstandingBytes_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Flow control settings for the maximum number of outstanding bytes. When
    +     * there are `max_outstanding_bytes` or more worth of messages currently sent
    +     * to the streaming pull client that have not yet been acked or nacked, the
    +     * server will stop sending more messages. The sending of messages resumes
    +     * once the number of outstanding bytes is less than this value. If the value
    +     * is <= 0, there is no limit to the number of outstanding bytes. This
    +     * property can only be set on the initial StreamingPullRequest. If it is set
    +     * on a subsequent request, the stream will be aborted with status
    +     * `INVALID_ARGUMENT`.
    +     * 
    + * + * int64 max_outstanding_bytes = 8; + * + * @return This builder for chaining. + */ + public Builder clearMaxOutstandingBytes() { + + maxOutstandingBytes_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index db56d7d25655..eca392820f8c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -310,4 +310,46 @@ public interface StreamingPullRequestOrBuilder * @return The bytes for clientId. */ com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
    +   * Flow control settings for the maximum number of outstanding messages. When
    +   * there are `max_outstanding_messages` or more currently sent to the
    +   * streaming pull client that have not yet been acked or nacked, the server
    +   * stops sending more messages. The sending of messages resumes once the
    +   * number of outstanding messages is less than this value. If the value is
    +   * <= 0, there is no limit to the number of outstanding messages. This
    +   * property can only be set on the initial StreamingPullRequest. If it is set
    +   * on a subsequent request, the stream will be aborted with status
    +   * `INVALID_ARGUMENT`.
    +   * 
    + * + * int64 max_outstanding_messages = 7; + * + * @return The maxOutstandingMessages. + */ + long getMaxOutstandingMessages(); + + /** + * + * + *
    +   * Flow control settings for the maximum number of outstanding bytes. When
    +   * there are `max_outstanding_bytes` or more worth of messages currently sent
    +   * to the streaming pull client that have not yet been acked or nacked, the
    +   * server will stop sending more messages. The sending of messages resumes
    +   * once the number of outstanding bytes is less than this value. If the value
    +   * is <= 0, there is no limit to the number of outstanding bytes. This
    +   * property can only be set on the initial StreamingPullRequest. If it is set
    +   * on a subsequent request, the stream will be aborted with status
    +   * `INVALID_ARGUMENT`.
    +   * 
    + * + * int64 max_outstanding_bytes = 8; + * + * @return The maxOutstandingBytes. + */ + long getMaxOutstandingBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 5bb1f14a5e9e..dc9151446fe5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1109,6 +1109,28 @@ message StreamingPullRequest { // transferred to the new stream. The same client_id should not be used for // different client instances. string client_id = 6; + + // Flow control settings for the maximum number of outstanding messages. When + // there are `max_outstanding_messages` or more currently sent to the + // streaming pull client that have not yet been acked or nacked, the server + // stops sending more messages. The sending of messages resumes once the + // number of outstanding messages is less than this value. If the value is + // <= 0, there is no limit to the number of outstanding messages. This + // property can only be set on the initial StreamingPullRequest. If it is set + // on a subsequent request, the stream will be aborted with status + // `INVALID_ARGUMENT`. + int64 max_outstanding_messages = 7; + + // Flow control settings for the maximum number of outstanding bytes. When + // there are `max_outstanding_bytes` or more worth of messages currently sent + // to the streaming pull client that have not yet been acked or nacked, the + // server will stop sending more messages. The sending of messages resumes + // once the number of outstanding bytes is less than this value. If the value + // is <= 0, there is no limit to the number of outstanding bytes. This + // property can only be set on the initial StreamingPullRequest. If it is set + // on a subsequent request, the stream will be aborted with status + // `INVALID_ARGUMENT`. + int64 max_outstanding_bytes = 8; } // Response for the `StreamingPull` method. This response is used to stream diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index e9db085223c8..0619942e812a 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "2c7bf606c18d051c345219e85038e27f4e42b0ce" + "sha": "6b0947b0c142691a16190b7d15da136936517e5a" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a19b46e54cc5195557f70ff68f1696d1e3b4702e", - "internalRef": "315930680" + "sha": "14f0c2cc9392234707247ab2b0782c118cb179aa", + "internalRef": "317914250" } }, { From e6bbea897a1da08b5555b6adc9f17af8cdb7855d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Jun 2020 17:33:42 +0200 Subject: [PATCH 0409/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v7.0.2 (#265) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 660d88800301..9cffbb43cb9d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 7.0.1 + 7.0.2 pom import From 5792805c8ac93892a11c8448c6f8ba51f5d89bca Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Jun 2020 08:35:12 -0700 Subject: [PATCH 0410/2363] changes without context (#264) autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. From ab2a3f38043fe96f3aa4d4ba615ccb7d0fb4911b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Jun 2020 17:49:39 +0200 Subject: [PATCH 0411/2363] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.2.0 (#262) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7e5ebf3cb77a..e9843ff0a821 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -68,7 +68,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.1.0 + 3.2.0 add-snippets-source diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f72d89f9e907..6e97ce81b86e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -67,7 +67,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.1.0 + 3.2.0 add-snippets-source From 04b4bcf068ad9a9aa302fe3a48cee8681f429d13 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Wed, 24 Jun 2020 13:41:56 -0400 Subject: [PATCH 0412/2363] feat: Send streaming pull flow control settings to server (#267) * feat: Add flow control support to publisher * make suggested fixes * chore: Remove note that ordering keys requires enablements. * feat: Add support for server-side flow control * Revert "chore: Remove note that ordering keys requires enablements." This reverts commit 9c113c3e32c28cf0d1de8aad3409b5c509fb1ada. * fix: Fix import order --- .../cloud/pubsub/v1/StreamingSubscriberConnection.java | 7 +++++++ .../main/java/com/google/cloud/pubsub/v1/Subscriber.java | 1 + 2 files changed, 8 insertions(+) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 047e1ba7509b..885554f74879 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -24,6 +24,7 @@ import com.google.api.core.ApiFutureCallback; import com.google.api.core.ApiFutures; import com.google.api.core.SettableApiFuture; +import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; import com.google.api.gax.core.Distribution; import com.google.api.gax.grpc.GrpcCallContext; @@ -71,6 +72,8 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final ScheduledExecutorService systemExecutor; private final MessageDispatcher messageDispatcher; + private final FlowControlSettings flowControlSettings; + private final AtomicLong channelReconnectBackoffMillis = new AtomicLong(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); private final Waiter ackOperationsWaiter = new Waiter(); @@ -93,6 +96,7 @@ public StreamingSubscriberConnection( Distribution ackLatencyDistribution, SubscriberStub stub, int channelAffinity, + FlowControlSettings flowControlSettings, FlowController flowController, ScheduledExecutorService executor, ScheduledExecutorService systemExecutor, @@ -112,6 +116,7 @@ public StreamingSubscriberConnection( executor, systemExecutor, clock); + this.flowControlSettings = flowControlSettings; } @Override @@ -209,6 +214,8 @@ private void initialize() { .setSubscription(subscription) .setStreamAckDeadlineSeconds(60) .setClientId(clientId) + .setMaxOutstandingMessages(flowControlSettings.getMaxOutstandingElementCount()) + .setMaxOutstandingBytes(flowControlSettings.getMaxOutstandingRequestBytes()) .build()); /** diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 0054408ee006..bd30bb112ba1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -332,6 +332,7 @@ private void startStreamingConnections() { ackLatencyDistribution, subStub, i, + flowControlSettings, flowController, executor, alarmsExecutor, From 1f776ca0f5c89525b170e2f78ba292aaf3fd855e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Jun 2020 07:23:28 +0200 Subject: [PATCH 0413/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v8 (#270) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `7.0.2` -> `8.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9cffbb43cb9d..c827cbf385ab 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 7.0.2 + 8.0.0 pom import From a2dbf45bd4711cc0af2210f2afcea16cc349081e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Jun 2020 08:30:43 +0200 Subject: [PATCH 0414/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.9.0 (#271) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | minor | `0.8.1` -> `0.9.0` | --- ### Release Notes
    googleapis/java-shared-config ### [`v0.9.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​090-httpswwwgithubcomgoogleapisjava-shared-configcomparev081v090-2020-06-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.8.1...v0.9.0) ##### Features - add ignore rule for javax annotations to handle error in java11 ([#​171](https://www.github.com/googleapis/java-shared-config/issues/171)) ([cd635ad](https://www.github.com/googleapis/java-shared-config/commit/cd635ad6e8e5d71ac3a30e7656eb788027f1c370)) ##### [0.8.1](https://www.github.com/googleapis/java-shared-config/compare/v0.8.0...v0.8.1) (2020-06-15) ##### Bug Fixes - bump flatten plugin version to fix missing version in profile section issue ([#​159](https://www.github.com/googleapis/java-shared-config/issues/159)) ([5b34939](https://www.github.com/googleapis/java-shared-config/commit/5b349399a590b589718b7049f66c82ee38742372))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 816041e5ba97..2eb05de4ef72 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.8.1 + 0.9.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bfac2b88c374..57d6f079a796 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.8.1 + 0.9.0 From 04b45c66bb0b9f62aa43b84daf0b4cf59dc7d19d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 26 Jun 2020 22:43:04 -0700 Subject: [PATCH 0415/2363] chore: regenerate README versions (#272) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/1b8e3777-2a8a-43ca-858f-1e4587d9e4d1/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/README.md | 2 +- java-pubsub/synth.metadata | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 34eb51d446dc..486346ce50bb 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 7.0.1 + 8.0.0 pom import diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 0619942e812a..0293f3902cbc 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "6b0947b0c142691a16190b7d15da136936517e5a" + "sha": "9684bc458b57951c4b7bfb13067dc8faac28902e" } }, { From be4477066f88edbcb8b7d3d40a451b3e1fca0eff Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Jul 2020 21:03:22 +0200 Subject: [PATCH 0416/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.2 (#274) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | patch | `0.8.1` -> `0.8.2` | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.8.2`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​082-httpswwwgithubcomgoogleapisjava-shared-dependenciescomparev081v082-2020-07-01) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.8.1...v0.8.2)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 57d6f079a796..2724316c4091 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.8.1 + 0.8.2 pom import From 964cb2dad55ff896edcb0c19a001ccf4ea757109 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Mon, 6 Jul 2020 16:34:06 -0400 Subject: [PATCH 0417/2363] feat: implement max duration per ack extension (#211) * feat: implement max duration per ack extension * fix: update coverage * fix: requested changes --- .../cloud/pubsub/v1/MessageDispatcher.java | 7 +++++++ .../v1/StreamingSubscriberConnection.java | 2 ++ .../google/cloud/pubsub/v1/Subscriber.java | 20 +++++++++++++++++++ .../pubsub/v1/MessageDispatcherTest.java | 13 ++++++++++++ .../cloud/pubsub/v1/SubscriberTest.java | 4 +++- 5 files changed, 45 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index c3f1a46cd977..f0eab3ba66c0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -68,6 +68,7 @@ class MessageDispatcher { private final Duration ackExpirationPadding; private final Duration maxAckExtensionPeriod; + private final int maxSecondsPerAckExtension; private final MessageReceiver receiver; private final AckProcessor ackProcessor; @@ -190,6 +191,7 @@ void sendAckOperations( AckProcessor ackProcessor, Duration ackExpirationPadding, Duration maxAckExtensionPeriod, + Duration maxDurationPerAckExtension, Distribution ackLatencyDistribution, FlowController flowController, Executor executor, @@ -199,6 +201,7 @@ void sendAckOperations( this.systemExecutor = systemExecutor; this.ackExpirationPadding = ackExpirationPadding; this.maxAckExtensionPeriod = maxAckExtensionPeriod; + this.maxSecondsPerAckExtension = Math.toIntExact(maxDurationPerAckExtension.getSeconds()); this.receiver = receiver; this.ackProcessor = ackProcessor; this.flowController = flowController; @@ -407,6 +410,10 @@ public void run() { int computeDeadlineSeconds() { int sec = ackLatencyDistribution.getPercentile(PERCENTILE_FOR_ACK_DEADLINE_UPDATES); + if ((maxSecondsPerAckExtension > 0) && (sec > maxSecondsPerAckExtension)) { + sec = maxSecondsPerAckExtension; + } + // Use Ints.constrainToRange when we get guava 21. if (sec < Subscriber.MIN_ACK_DEADLINE_SECONDS) { sec = Subscriber.MIN_ACK_DEADLINE_SECONDS; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 885554f74879..19c2c79e38da 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -93,6 +93,7 @@ public StreamingSubscriberConnection( MessageReceiver receiver, Duration ackExpirationPadding, Duration maxAckExtensionPeriod, + Duration maxDurationPerAckExtension, Distribution ackLatencyDistribution, SubscriberStub stub, int channelAffinity, @@ -111,6 +112,7 @@ public StreamingSubscriberConnection( this, ackExpirationPadding, maxAckExtensionPeriod, + maxDurationPerAckExtension, ackLatencyDistribution, flowController, executor, diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index bd30bb112ba1..35c50fdb692f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -104,6 +104,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final String subscriptionName; private final FlowControlSettings flowControlSettings; private final Duration maxAckExtensionPeriod; + private final Duration maxDurationPerAckExtension; // The ExecutorProvider used to generate executors for processing messages. private final ExecutorProvider executorProvider; // An instantiation of the SystemExecutorProvider used for processing acks @@ -128,6 +129,7 @@ private Subscriber(Builder builder) { subscriptionName = builder.subscriptionName; maxAckExtensionPeriod = builder.maxAckExtensionPeriod; + maxDurationPerAckExtension = builder.maxDurationPerAckExtension; clock = builder.clock.isPresent() ? builder.clock.get() : CurrentMillisClock.getDefaultClock(); flowController = @@ -329,6 +331,7 @@ private void startStreamingConnections() { receiver, ACK_EXPIRATION_PADDING, maxAckExtensionPeriod, + maxDurationPerAckExtension, ackLatencyDistribution, subStub, i, @@ -415,6 +418,7 @@ public static final class Builder { private MessageReceiver receiver; private Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; + private Duration maxDurationPerAckExtension = Duration.ofMillis(0); private FlowControlSettings flowControlSettings = FlowControlSettings.newBuilder() @@ -515,6 +519,22 @@ public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { return this; } + /** + * Set the upper bound for a single mod ack extention period. + * + *

    The ack deadline will continue to be extended by up to this duration until + * MaxAckExtensionPeriod is reached. Setting MaxDurationPerAckExtension bounds the maximum + * amount of time before a mesage re-delivery in the event the Subscriber fails to extend the + * deadline. + * + *

    MaxDurationPerAckExtension configuration can be disabled by specifying a zero duration. + */ + public Builder setMaxDurationPerAckExtension(Duration maxDurationPerAckExtension) { + Preconditions.checkArgument(maxDurationPerAckExtension.toMillis() >= 0); + this.maxDurationPerAckExtension = maxDurationPerAckExtension; + return this; + } + /** * Gives the ability to set a custom executor. {@link ExecutorProvider#getExecutor()} will be * called {@link Builder#parallelPullCount} times. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 1745b370b28c..88a015f6e78d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -54,6 +54,7 @@ public void run() { // No-op; don't do anything. } }; + private static final int MAX_SECONDS_PER_ACK_EXTENSION = 60; private MessageDispatcher dispatcher; private LinkedBlockingQueue consumers; @@ -128,6 +129,7 @@ public void sendAckOperations( processor, Duration.ofSeconds(5), Duration.ofMinutes(60), + Duration.ofSeconds(MAX_SECONDS_PER_ACK_EXTENSION), new Distribution(Subscriber.MAX_ACK_DEADLINE_SECONDS + 1), flowController, MoreExecutors.directExecutor(), @@ -235,4 +237,15 @@ public void testDeadlineAdjustment() throws Exception { assertThat(dispatcher.computeDeadlineSeconds()).isEqualTo(42); } + + @Test + public void testMaxDurationPerAckExtension() throws Exception { + assertThat(dispatcher.computeDeadlineSeconds()).isEqualTo(10); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + clock.advance(MAX_SECONDS_PER_ACK_EXTENSION + 5, TimeUnit.SECONDS); + consumers.take().ack(); + + assertThat(dispatcher.computeDeadlineSeconds()).isEqualTo(MAX_SECONDS_PER_ACK_EXTENSION); + } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 95ad58d80207..4659297c052f 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -45,6 +45,7 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; +import org.threeten.bp.Duration; /** Tests for {@link Subscriber}. */ public class SubscriberTest { @@ -236,6 +237,7 @@ private Builder getTestSubscriberBuilder(MessageReceiver receiver) { FixedTransportChannelProvider.create(GrpcTransportChannel.create(testChannel))) .setCredentialsProvider(NoCredentialsProvider.create()) .setClock(fakeExecutor.getClock()) - .setParallelPullCount(1); + .setParallelPullCount(1) + .setMaxDurationPerAckExtension(Duration.ofSeconds(5)); } } From 34980888c46b824ccb95cc874cde302743ce22d8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jul 2020 22:35:18 +0200 Subject: [PATCH 0418/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.9.2 (#275) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2eb05de4ef72..e8ad75110e79 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.9.0 + 0.9.2 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2724316c4091..0916725f1168 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.9.0 + 0.9.2 From 3a9c6ea022d8d9048e54e70041ac8f4f1a4eab53 Mon Sep 17 00:00:00 2001 From: Irvi Aini <7439590+irvifa@users.noreply.github.com> Date: Tue, 7 Jul 2020 03:45:41 +0700 Subject: [PATCH 0419/2363] test: Reuse method to publish a message in PublisherImplTest (#277) We have sendTestMessage yet, there's still a test that does not use this method. --- .../java/com/google/cloud/pubsub/v1/PublisherImplTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 5ee5fdcfc582..c68367601019 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -153,8 +153,7 @@ public void testPublishByNumBatchedMessages() throws Exception { assertFalse(publishFuture3.isDone()); - ApiFuture publishFuture4 = - publisher.publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("D")).build()); + ApiFuture publishFuture4 = sendTestMessage(publisher, "D"); assertEquals("3", publishFuture3.get()); assertEquals("4", publishFuture4.get()); From 1e26a3431b4c5c0cefb7bf0f7eabf554e5c1b649 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 9 Jul 2020 11:11:12 -0700 Subject: [PATCH 0420/2363] ci(java): run dependency test on Java 8 and 11 (#269) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * ci(java): run dependency test on Java 8 and 11 Redo fix in #633 with proper jinja templating format Source-Author: Jeff Ching Source-Date: Fri Jun 19 16:52:15 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 4f2c9f752a94042472fc03c5bd9e06e89817d2bd Source-Link: https://github.com/googleapis/synthtool/commit/4f2c9f752a94042472fc03c5bd9e06e89817d2bd * fix ignoredUnusedDeclaredDependenceis * fix ignoredUnusedDeclaredDependenceis * fix ignoredUnusedDeclaredDependenceis * fix ignoredUnusedDeclaredDependenceis Co-authored-by: Jeff Ching --- java-pubsub/.github/workflows/ci.yaml | 5 ++++- java-pubsub/.kokoro/dependencies.sh | 4 +++- java-pubsub/google-cloud-pubsub/pom.xml | 5 ++++- java-pubsub/pom.xml | 5 ++++- java-pubsub/synth.metadata | 2 +- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 445b4bf82ffd..683022075665 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -36,11 +36,14 @@ jobs: JOB_TYPE: test dependencies: runs-on: ubuntu-latest + strategy: + matrix: + java: [8, 11] steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 with: - java-version: 8 + java-version: ${{matrix.java}} - run: java -version - run: .kokoro/dependencies.sh linkage-monitor: diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index cf3bb4347e01..cee4f11e7547 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -41,8 +41,10 @@ echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************" ## Run dependency list completeness check function completenessCheck() { # Output dep list with compile scope generated using the original pom + # Running mvn dependency:list on Java versions that support modules will also include the module of the dependency. + # This is stripped from the output as it is not present in the flattened pom. msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | grep -v ':test$' >.org-list.txt + mvn dependency:list -f pom.xml -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// | grep -v ':test$' >.org-list.txt # Output dep list generated using the flattened pom (test scope deps are ommitted) msg "Generating dependency list using flattened pom..." diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 63dffeb02e7d..54fddaba81c3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -144,7 +144,10 @@ maven-dependency-plugin 3.1.2 - io.opencensus:opencensus-impl + + io.opencensus:opencensus-impl + javax.annotation:javax.annotation-api + diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0916725f1168..7c98c4e0e990 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -126,7 +126,10 @@ org.apache.maven.plugins maven-dependency-plugin - org.objenesis:objenesis + + org.objenesis:objenesis + javax.annotation:javax.annotation-api + diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 0293f3902cbc..b3cc16161d35 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c4f3059c27591eb24d6942a0e357ec94c80459f2" + "sha": "4f2c9f752a94042472fc03c5bd9e06e89817d2bd" } } ], From a8afbeeee6fed80be41e0da45834bc83744e3594 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2020 12:45:45 -0700 Subject: [PATCH 0421/2363] chore: release 1.108.0 (#258) * updated CHANGELOG.md [ci skip] * updated README.md [ci skip] * updated versions.txt [ci skip] * updated samples/pom.xml [ci skip] * updated google-cloud-pubsub/pom.xml [ci skip] * updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * updated samples/snippets/pom.xml [ci skip] * updated samples/install-without-bom/pom.xml [ci skip] * updated samples/snapshot/pom.xml [ci skip] * updated google-cloud-pubsub-bom/pom.xml [ci skip] * updated pom.xml Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 17 +++++++++++++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 37 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 4c98dcf420f0..eb1a3a0e8cac 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.108.0](https://www.github.com/googleapis/java-pubsub/compare/v1.107.0...v1.108.0) (2020-07-09) + + +### Features + +* **deps:** adopt flatten plugin and google-cloud-shared-dependencies ([#259](https://www.github.com/googleapis/java-pubsub/issues/259)) ([6b0947b](https://www.github.com/googleapis/java-pubsub/commit/6b0947b0c142691a16190b7d15da136936517e5a)) +* implement max duration per ack extension ([#211](https://www.github.com/googleapis/java-pubsub/issues/211)) ([1427b8c](https://www.github.com/googleapis/java-pubsub/commit/1427b8ced4d7f75e4cb1b57dd898b18f0d232d19)) +* regenerated to pick up doc changes ([#246](https://www.github.com/googleapis/java-pubsub/issues/246)) ([a5f45ac](https://www.github.com/googleapis/java-pubsub/commit/a5f45ac0ad493856cd5e1743b8df4fc6d70c5ca9)) +* Send streaming pull flow control settings to server ([#267](https://www.github.com/googleapis/java-pubsub/issues/267)) ([9c750c8](https://www.github.com/googleapis/java-pubsub/commit/9c750c8e4899ae994a788c5323fc456ac5d7aa38)) + + +### Dependencies + +* update autovalue.version to v1.7.3 ([#244](https://www.github.com/googleapis/java-pubsub/issues/244)) ([6af6682](https://www.github.com/googleapis/java-pubsub/commit/6af6682a5c52af1b929634fe210ef342c5625fda)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.1 ([#247](https://www.github.com/googleapis/java-pubsub/issues/247)) ([fbceaed](https://www.github.com/googleapis/java-pubsub/commit/fbceaed9701811e3c818fe5696f04936ec447b96)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.2 ([#274](https://www.github.com/googleapis/java-pubsub/issues/274)) ([b101905](https://www.github.com/googleapis/java-pubsub/commit/b101905dedcaff4a50c7d3c6097fcb5c0e48310c)) + ## [1.107.0](https://www.github.com/googleapis/java-pubsub/compare/v1.106.0...v1.107.0) (2020-06-09) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 486346ce50bb..b3dfd5257d14 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.107.0' +compile 'com.google.cloud:google-cloud-pubsub:1.108.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.107.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.0" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e8ad75110e79..582fa6157354 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.107.1-SNAPSHOT + 1.108.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.89.1-SNAPSHOT + 1.90.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.89.1-SNAPSHOT + 1.90.0 com.google.cloud google-cloud-pubsub - 1.107.1-SNAPSHOT + 1.108.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 54fddaba81c3..e04efeb3774c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.107.1-SNAPSHOT + 1.108.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.107.1-SNAPSHOT + 1.108.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3ef0b0cff5c8..d587f6949c4a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.89.1-SNAPSHOT + 1.90.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.107.1-SNAPSHOT + 1.108.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7c98c4e0e990..0403e7766dfc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.107.1-SNAPSHOT + 1.108.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.89.1-SNAPSHOT + 1.90.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.89.1-SNAPSHOT + 1.90.0 com.google.cloud google-cloud-pubsub - 1.107.1-SNAPSHOT + 1.108.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 82630be31c3c..2c39014b90df 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.89.1-SNAPSHOT + 1.90.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.107.1-SNAPSHOT + 1.108.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6e97ce81b86e..1e52b016af32 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.107.1-SNAPSHOT + 1.108.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b703761e363a..b40c7b01828b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.89.0:1.89.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.89.0:1.89.1-SNAPSHOT -google-cloud-pubsub:1.107.0:1.107.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.0:1.90.0 +grpc-google-cloud-pubsub-v1:1.90.0:1.90.0 +google-cloud-pubsub:1.108.0:1.108.0 \ No newline at end of file From e56e28c0365306dd12ff26f444c4eb55efb93b90 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 10 Jul 2020 02:11:43 +0200 Subject: [PATCH 0422/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.108.0 (#281) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e9843ff0a821..ea890e6b218b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.107.0 + 1.108.0 From 9719a073ad2679ab41104be7f6a019dc4938ba2a Mon Sep 17 00:00:00 2001 From: Irvi Aini <7439590+irvifa@users.noreply.github.com> Date: Fri, 10 Jul 2020 07:19:31 +0700 Subject: [PATCH 0423/2363] test: Replace deprecated method with non-deprecated one (#279) Since we have several deprecated method in the ITPubSubTest, I think we can begin to migrate it to non-deprecated method one. --- .../google/cloud/pubsub/it/ITPubSubTest.java | 69 +++++++++++++++---- 1 file changed, 54 insertions(+), 15 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java index bb2dab7b2d9d..89900c0e4f9c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java @@ -30,12 +30,16 @@ import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; import com.google.protobuf.ByteString; import com.google.pubsub.v1.ProjectSubscriptionName; -import com.google.pubsub.v1.ProjectTopicName; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.TopicName; import java.util.Collections; import java.util.List; import java.util.UUID; @@ -89,23 +93,50 @@ private String formatForTest(String resourceName) { return resourceName + "-" + NAME_SUFFIX; } + private Subscription getSubscription( + ProjectSubscriptionName subscriptionName, + TopicName topicName, + PushConfig pushConfig, + int ackDeadline) { + return Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadline) + .build(); + } + @Test public void testTopicPolicy() { - ProjectTopicName topicName = - ProjectTopicName.of(projectId, formatForTest("testing-topic-policy")); + TopicName topicName = + TopicName.newBuilder() + .setProject(projectId) + .setTopic(formatForTest("testing-topic-policy")) + .build(); topicAdminClient.createTopic(topicName); - Policy policy = topicAdminClient.getIamPolicy(topicName.toString()); + + Policy policy = + topicAdminClient.getIamPolicy( + GetIamPolicyRequest.newBuilder().setResource(topicName.toString()).build()); Binding binding = Binding.newBuilder().setRole("roles/viewer").addMembers("allAuthenticatedUsers").build(); + Policy newPolicy = topicAdminClient.setIamPolicy( - topicName.toString(), policy.toBuilder().addBindings(binding).build()); + SetIamPolicyRequest.newBuilder() + .setResource(topicName.toString()) + .setPolicy(policy.toBuilder().addBindings(binding).build()) + .build()); assertThat(newPolicy.getBindingsList()).contains(binding); String permissionName = "pubsub.topics.get"; List permissions = topicAdminClient - .testIamPermissions(topicName.toString(), Collections.singletonList(permissionName)) + .testIamPermissions( + TestIamPermissionsRequest.newBuilder() + .setResource(topicName.toString()) + .addAllPermissions(Collections.singletonList(permissionName)) + .build()) .getPermissionsList(); assertThat(permissions).contains(permissionName); @@ -115,8 +146,11 @@ public void testTopicPolicy() { @Test public void testVPCPushSubscriber() { assumeTrue(IS_VPC_TEST); - ProjectTopicName topicName = - ProjectTopicName.of(projectId, formatForTest("testing-vpc-push-subscriber-topic")); + TopicName topicName = + TopicName.newBuilder() + .setProject(projectId) + .setTopic(formatForTest("testing-vpc-push-subscriber-topic")) + .build(); ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of( projectId, formatForTest("testing-vpc-push-subscriber-subscription")); @@ -124,10 +158,11 @@ public void testVPCPushSubscriber() { try { subscriptionAdminClient.createSubscription( - subscriptionName, - topicName, - PushConfig.newBuilder().setPushEndpoint("https://random_point").build(), - 10); + getSubscription( + subscriptionName, + topicName, + PushConfig.newBuilder().setPushEndpoint("https://random_point").build(), + 10)); subscriptionAdminClient.deleteSubscription(subscriptionName); Assert.fail("No exception raised"); } catch (PermissionDeniedException e) { @@ -139,15 +174,19 @@ public void testVPCPushSubscriber() { @Test public void testPublishSubscribe() throws Exception { - ProjectTopicName topicName = - ProjectTopicName.of(projectId, formatForTest("testing-publish-subscribe-topic")); + TopicName topicName = + TopicName.newBuilder() + .setProject(projectId) + .setTopic(formatForTest("testing-publish-subscribe-topic")) + .build(); ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of( projectId, formatForTest("testing-publish-subscribe-subscription")); topicAdminClient.createTopic(topicName); + subscriptionAdminClient.createSubscription( - subscriptionName, topicName, PushConfig.newBuilder().build(), 10); + getSubscription(subscriptionName, topicName, PushConfig.newBuilder().build(), 10)); final BlockingQueue receiveQueue = new LinkedBlockingQueue<>(); Subscriber subscriber = From bae73e2b0427a50e71f31a9a100ca029c76183b6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 10 Jul 2020 02:22:13 +0200 Subject: [PATCH 0424/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.3 (#282) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0403e7766dfc..a8aaded3defa 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.8.2 + 0.8.3 pom import From 9c609f71430dada491b594ecb6f3ddf0ce8c4c9a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2020 00:44:39 +0000 Subject: [PATCH 0425/2363] chore: release 1.108.1-SNAPSHOT (#283) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 582fa6157354..393eb41a8118 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.0 + 1.108.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.0 + 1.90.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.0 + 1.90.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.0 + 1.108.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e04efeb3774c..0eaa7c3977cf 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.0 + 1.108.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.0 + 1.108.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d587f6949c4a..911b2218bccd 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.0 + 1.90.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.0 + 1.108.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a8aaded3defa..29cd37534ebb 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.0 + 1.108.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.0 + 1.90.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.0 + 1.90.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.0 + 1.108.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2c39014b90df..c262e6472425 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.0 + 1.90.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.0 + 1.108.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1e52b016af32..97f6cdef0f3b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.0 + 1.108.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b40c7b01828b..bee45f41f312 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.0:1.90.0 -grpc-google-cloud-pubsub-v1:1.90.0:1.90.0 -google-cloud-pubsub:1.108.0:1.108.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.0:1.90.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.90.0:1.90.1-SNAPSHOT +google-cloud-pubsub:1.108.0:1.108.1-SNAPSHOT \ No newline at end of file From 98bde709d7a471421600288a46e50e7abaa65087 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 10 Jul 2020 10:02:18 -0700 Subject: [PATCH 0426/2363] changes without context (#285) autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. --- java-pubsub/README.md | 2 +- java-pubsub/synth.metadata | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b3dfd5257d14..7cad0ef6a100 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.107.0 + 1.108.0 ``` diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index b3cc16161d35..e67a34527461 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "9684bc458b57951c4b7bfb13067dc8faac28902e" + "sha": "bda6280160dc0a827c6667e5aecbc487a219aa5b" } }, { From 6ea739ee7feb3903b517e738a4b42807fd48a704 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Jul 2020 22:44:44 +0200 Subject: [PATCH 0427/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v8.1.0 (#286) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c827cbf385ab..076b511f5059 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 8.0.0 + 8.1.0 pom import From ec1b7ed3f590b2129e6199e0c0f8543cadd975ad Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 16 Jul 2020 10:38:02 -0700 Subject: [PATCH 0428/2363] changes without context (#288) autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. --- java-pubsub/README.md | 2 +- java-pubsub/synth.metadata | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7cad0ef6a100..4b26f72ea8da 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 8.0.0 + 8.1.0 pom import diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index e67a34527461..40080bba6b3f 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "bda6280160dc0a827c6667e5aecbc487a219aa5b" + "sha": "bd85b3958381abc5307cf4ddab5c80f360893538" } }, { From 7330e7075808fd91c35e14df5b7562081b9ae969 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Fri, 24 Jul 2020 07:46:52 -0400 Subject: [PATCH 0429/2363] fix: Make error message more clear about where ordering must be enabled when publishing (#293) * feat: Add flow control support to publisher * make suggested fixes * chore: Remove note that ordering keys requires enablements. * feat: Add support for server-side flow control * Revert "chore: Remove note that ordering keys requires enablements." This reverts commit 9c113c3e32c28cf0d1de8aad3409b5c509fb1ada. * fix: Fix import order * fix: Make error message more clear about where ordering must be enabled when publishing. --- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 282df369f3c1..b781a2e3d0bb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -233,7 +233,9 @@ public ApiFuture publish(PubsubMessage message) { final String orderingKey = message.getOrderingKey(); Preconditions.checkState( orderingKey.isEmpty() || enableMessageOrdering, - "Cannot publish a message with an ordering key when message ordering is not enabled."); + "Cannot publish a message with an ordering key when message ordering is not enabled in the " + + "Publisher client. Please create a Publisher client with " + + "setEnableMessageOrdering(true) in the builder."); final OutstandingPublish outstandingPublish = new OutstandingPublish(messageTransform.apply(message)); From ab123d795429d477d2ee79f6ed99e73a65e7eb2f Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Fri, 24 Jul 2020 14:21:12 -0700 Subject: [PATCH 0430/2363] fix: if a flow control setting is not provided use zero (#292) * fix: use default zero value if a flow control setting is not provided * fix lint issues --- .../cloud/pubsub/v1/StreamingSubscriberConnection.java | 10 ++++++++-- .../com/google/cloud/pubsub/v1/SubscriberTest.java | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 19c2c79e38da..f4e330ef1fad 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -216,8 +216,10 @@ private void initialize() { .setSubscription(subscription) .setStreamAckDeadlineSeconds(60) .setClientId(clientId) - .setMaxOutstandingMessages(flowControlSettings.getMaxOutstandingElementCount()) - .setMaxOutstandingBytes(flowControlSettings.getMaxOutstandingRequestBytes()) + .setMaxOutstandingMessages( + valueOrZero(flowControlSettings.getMaxOutstandingElementCount())) + .setMaxOutstandingBytes( + valueOrZero(flowControlSettings.getMaxOutstandingRequestBytes())) .build()); /** @@ -281,6 +283,10 @@ public void run() { MoreExecutors.directExecutor()); } + private Long valueOrZero(Long value) { + return value != null ? value : 0; + } + private boolean isAlive() { State state = state(); // Read the state only once. return state == State.RUNNING || state == State.STARTING; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 4659297c052f..98d3927bef55 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -19,6 +19,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; +import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.core.ExecutorProvider; import com.google.api.gax.core.FixedExecutorProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -238,6 +239,8 @@ private Builder getTestSubscriberBuilder(MessageReceiver receiver) { .setCredentialsProvider(NoCredentialsProvider.create()) .setClock(fakeExecutor.getClock()) .setParallelPullCount(1) - .setMaxDurationPerAckExtension(Duration.ofSeconds(5)); + .setMaxDurationPerAckExtension(Duration.ofSeconds(5)) + .setFlowControlSettings( + FlowControlSettings.newBuilder().setMaxOutstandingElementCount(1000L).build()); } } From 3da15bd51b6cd89b9111564a049d8c3e180f94c8 Mon Sep 17 00:00:00 2001 From: Viacheslav Kalmykov Date: Fri, 24 Jul 2020 23:21:40 +0200 Subject: [PATCH 0431/2363] fix: add header providers to PublisherStubSettings (#294) --- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index b781a2e3d0bb..6a9f68659695 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -171,7 +171,8 @@ private Publisher(Builder builder) throws IOException { .setCredentialsProvider(builder.credentialsProvider) .setExecutorProvider(FixedExecutorProvider.create(executor)) .setTransportChannelProvider(builder.channelProvider) - .setEndpoint(builder.endpoint); + .setEndpoint(builder.endpoint) + .setHeaderProvider(builder.headerProvider); stubSettings .publishSettings() .setRetryableCodes( From 074840e67b1081e8333d49557673632f1a36da94 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Mon, 27 Jul 2020 04:49:45 -0700 Subject: [PATCH 0432/2363] samples: publish with ordering keys (#287) * samples: add samples for publish with ordering keys * Point to regional endpoint for ordered publish; fix output on resume publish example. Co-authored-by: Kamal Aboul-Hosn --- ...bscriptionWithDeadLetterPolicyExample.java | 1 - .../CreateSubscriptionWithOrdering.java | 57 +++++++++++ .../java/pubsub/PublishWithOrderingKeys.java | 98 ++++++++++++++++++ .../pubsub/ResumePublishWithOrderingKeys.java | 99 +++++++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 12 +++ .../src/test/java/pubsub/PublisherIT.java | 14 +++ 6 files changed, 280 insertions(+), 1 deletion(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java index 1f5a20312c1f..d7cb5d658357 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java @@ -17,7 +17,6 @@ package pubsub; // [START pubsub_dead_letter_create_subscription] - import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.DeadLetterPolicy; import com.google.pubsub.v1.ProjectSubscriptionName; diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java new file mode 100644 index 000000000000..6f549e764221 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java @@ -0,0 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_enable_subscription_ordering] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class CreateSubscriptionWithOrdering { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + String subscriptionId = "your-subscription-id"; + + createSubscriptionWithOrderingExample(projectId, topicId, subscriptionId); + } + + public static void createSubscriptionWithOrderingExample( + String projectId, String topicId, String subscriptionId) throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + Subscription subscription = + subscriptionAdminClient.createSubscription( + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + // Set message ordering to true for ordered messages in the subscription. + .setEnableMessageOrdering(true) + .build()); + + System.out.println("Created a subscription with ordering: " + subscription.getAllFields()); + } + } +} +// [END pubsub_enable_subscription_ordering] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java new file mode 100644 index 000000000000..9f77577076d8 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java @@ -0,0 +1,98 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publish_with_ordering_keys] +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.TimeUnit; + +public class PublishWithOrderingKeys { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + // Choose an existing topic. + String topicId = "your-topic-id"; + + publishWithOrderingKeysExample(projectId, topicId); + } + + public static void publishWithOrderingKeysExample(String projectId, String topicId) + throws IOException, InterruptedException { + TopicName topicName = TopicName.of(projectId, topicId); + // Create a publisher and set message ordering to true. + Publisher publisher = + Publisher.newBuilder(topicName) + .setEndpoint("us-east1-pubsub.googleapis.com:443") + .setEnableMessageOrdering(true) + .build(); + + try { + Map messages = new HashMap(); + messages.put("message1", "key1"); + messages.put("message2", "key2"); + messages.put("message3", "key1"); + messages.put("message4", "key2"); + + for (Map.Entry entry : messages.entrySet()) { + ByteString data = ByteString.copyFromUtf8(entry.getKey()); + PubsubMessage pubsubMessage = + PubsubMessage.newBuilder().setData(data).setOrderingKey(entry.getValue()).build(); + ApiFuture future = publisher.publish(pubsubMessage); + + // Add an asynchronous callback to handle publish success / failure. + ApiFutures.addCallback( + future, + new ApiFutureCallback() { + + @Override + public void onFailure(Throwable throwable) { + if (throwable instanceof ApiException) { + ApiException apiException = ((ApiException) throwable); + // Details on the API exception. + System.out.println(apiException.getStatusCode().getCode()); + System.out.println(apiException.isRetryable()); + } + System.out.println("Error publishing message : " + pubsubMessage.getData()); + } + + @Override + public void onSuccess(String messageId) { + // Once published, returns server-assigned message ids (unique within the topic). + System.out.println(pubsubMessage.getData() + " : " + messageId); + } + }, + MoreExecutors.directExecutor()); + } + } finally { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } +} +// [END pubsub_publish_with_ordering_keys] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java b/java-pubsub/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java new file mode 100644 index 000000000000..06489637d3e8 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_resume_publish_with_ordering_keys] +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.TimeUnit; + +public class ResumePublishWithOrderingKeys { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + // Choose an existing topic. + String topicId = "your-topic-id"; + + resumePublishWithOrderingKeysExample(projectId, topicId); + } + + public static void resumePublishWithOrderingKeysExample(String projectId, String topicId) + throws IOException, InterruptedException { + TopicName topicName = TopicName.of(projectId, topicId); + // Create a publisher and set message ordering to true. + Publisher publisher = + Publisher.newBuilder(topicName) + .setEnableMessageOrdering(true) + .setEndpoint("us-east1-pubsub.googleapis.com:443") + .build(); + + try { + Map messages = new HashMap(); + messages.put("message1", "key1"); + messages.put("message2", "key2"); + messages.put("message3", "key1"); + messages.put("message4", "key2"); + + for (Map.Entry entry : messages.entrySet()) { + ByteString data = ByteString.copyFromUtf8(entry.getKey()); + PubsubMessage pubsubMessage = + PubsubMessage.newBuilder().setData(data).setOrderingKey(entry.getValue()).build(); + ApiFuture future = publisher.publish(pubsubMessage); + + // Add an asynchronous callback to handle publish success / failure. + ApiFutures.addCallback( + future, + new ApiFutureCallback() { + + @Override + public void onFailure(Throwable throwable) { + if (throwable instanceof ApiException) { + ApiException apiException = ((ApiException) throwable); + // Details on the API exception. + System.out.println(apiException.getStatusCode().getCode()); + System.out.println(apiException.isRetryable()); + } + System.out.println("Error publishing message : " + pubsubMessage.getData()); + // (Beta) Must call resumePublish to reset key and continue publishing with order. + publisher.resumePublish(pubsubMessage.getOrderingKey()); + } + + @Override + public void onSuccess(String messageId) { + // Once published, returns server-assigned message ids (unique within the topic). + System.out.println(pubsubMessage.getData() + " : " + messageId); + } + }, + MoreExecutors.directExecutor()); + } + } finally { + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } +} +// [END pubsub_resume_publish_with_ordering_keys] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index 0267b5ca5774..6aa64f7c83a0 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -43,6 +43,7 @@ public class AdminIT { private static final String topicId = "iam-topic-" + _suffix; private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; + private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; private static final String pushEndpoint = "https://my-test-project.appspot.com/push"; private static final ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); @@ -50,6 +51,8 @@ public class AdminIT { ProjectSubscriptionName.of(projectId, pullSubscriptionId); private static final ProjectSubscriptionName pushSubscriptionName = ProjectSubscriptionName.of(projectId, pushSubscriptionId); + private static final ProjectSubscriptionName orderedSubscriptionName = + ProjectSubscriptionName.of(projectId, orderedSubscriptionId); private static void requireEnvVar(String varName) { assertNotNull( @@ -78,6 +81,7 @@ public void tearDown() throws Exception { try { subscriptionAdminClient.deleteSubscription(pullSubscriptionName); subscriptionAdminClient.deleteSubscription(pushSubscriptionName); + subscriptionAdminClient.deleteSubscription(orderedSubscriptionName); } catch (NotFoundException e) { } } @@ -165,10 +169,18 @@ public void testAdmin() throws Exception { assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.consume\""); assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.update\""); + bout.reset(); + // Test create a subscription with ordering + CreateSubscriptionWithOrdering.createSubscriptionWithOrderingExample( + projectId, topicId, orderedSubscriptionId); + assertThat(bout.toString()).contains("Created a subscription with ordering"); + assertThat(bout.toString()).contains("enable_message_ordering=true"); + bout.reset(); // Test delete subscription. Run twice to delete both pull and push subscriptions. DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pullSubscriptionId); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pushSubscriptionId); + DeleteSubscriptionExample.deleteSubscriptionExample(projectId, orderedSubscriptionId); assertThat(bout.toString()).contains("Deleted subscription."); bout.reset(); diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java index 5183a71e2eca..0ed25c0828f9 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java @@ -105,5 +105,19 @@ public void testPublisher() throws Exception { // Test publish with Retry settings. PublishWithRetrySettingsExample.publishWithRetrySettingsExample(projectId, topicId); assertThat(bout.toString()).contains("Published a message with retry settings: "); + + bout.reset(); + // Test publish with ordering keys. + PublishWithOrderingKeys.publishWithOrderingKeysExample(projectId, topicId); + for (int i = 1; i <= 4; i++) { + assertThat(bout.toString()).contains("message" + i); + } + + bout.reset(); + // Test resume publish with ordering keys. + ResumePublishWithOrderingKeys.resumePublishWithOrderingKeysExample(projectId, topicId); + for (int i = 1; i <= 4; i++) { + assertThat(bout.toString()).contains("message" + i); + } } } From e9a8b31599a8010d2b31c49d80ef530264118161 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 29 Jul 2020 13:32:43 -0700 Subject: [PATCH 0433/2363] chore: regenerate README (#296) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/dbbb67d7-4ea8-474e-aa12-ba9b084f1285/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/README.md | 3 + java-pubsub/synth.metadata | 195 ++++++++++++++++++++++++++++++++++++- 2 files changed, 197 insertions(+), 1 deletion(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4b26f72ea8da..3a085e86f7ea 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -228,6 +228,7 @@ has instructions for running the samples. | Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | | Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | | Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | +| Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | | Delete Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | | Delete Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | @@ -240,10 +241,12 @@ has instructions for running the samples. | Publish With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | | Publish With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | | Publish With Error Handler Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | +| Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | | Publish With Retry Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | | Publisher Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublisherExample.java) | | Receive Messages With Delivery Attempts Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | | Remove Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | +| Resume Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | | Set Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | | Set Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | | Subscribe Async Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 40080bba6b3f..80fab3945fd1 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "bd85b3958381abc5307cf4ddab5c80f360893538" + "sha": "a820ab8f30c3c4c40cc321ec5350ebb463769d32" } }, { @@ -33,5 +33,198 @@ "generator": "bazel" } } + ], + "generatedFiles": [ + ".github/CODEOWNERS", + ".github/ISSUE_TEMPLATE/bug_report.md", + ".github/ISSUE_TEMPLATE/feature_request.md", + ".github/ISSUE_TEMPLATE/support_request.md", + ".github/PULL_REQUEST_TEMPLATE.md", + ".github/release-please.yml", + ".github/trusted-contribution.yml", + ".github/workflows/ci.yaml", + ".kokoro/build.bat", + ".kokoro/build.sh", + ".kokoro/coerce_logs.sh", + ".kokoro/common.cfg", + ".kokoro/common.sh", + ".kokoro/continuous/common.cfg", + ".kokoro/continuous/dependencies.cfg", + ".kokoro/continuous/integration.cfg", + ".kokoro/continuous/java11.cfg", + ".kokoro/continuous/java7.cfg", + ".kokoro/continuous/java8-osx.cfg", + ".kokoro/continuous/java8-win.cfg", + ".kokoro/continuous/java8.cfg", + ".kokoro/continuous/lint.cfg", + ".kokoro/continuous/propose_release.cfg", + ".kokoro/continuous/samples.cfg", + ".kokoro/dependencies.sh", + ".kokoro/linkage-monitor.sh", + ".kokoro/nightly/common.cfg", + ".kokoro/nightly/dependencies.cfg", + ".kokoro/nightly/integration.cfg", + ".kokoro/nightly/java11.cfg", + ".kokoro/nightly/java7.cfg", + ".kokoro/nightly/java8-osx.cfg", + ".kokoro/nightly/java8-win.cfg", + ".kokoro/nightly/java8.cfg", + ".kokoro/nightly/lint.cfg", + ".kokoro/nightly/samples.cfg", + ".kokoro/populate-secrets.sh", + ".kokoro/presubmit/clirr.cfg", + ".kokoro/presubmit/common.cfg", + ".kokoro/presubmit/dependencies.cfg", + ".kokoro/presubmit/integration.cfg", + ".kokoro/presubmit/java11.cfg", + ".kokoro/presubmit/java7.cfg", + ".kokoro/presubmit/java8-osx.cfg", + ".kokoro/presubmit/java8-win.cfg", + ".kokoro/presubmit/java8.cfg", + ".kokoro/presubmit/linkage-monitor.cfg", + ".kokoro/presubmit/lint.cfg", + ".kokoro/presubmit/samples.cfg", + ".kokoro/release/bump_snapshot.cfg", + ".kokoro/release/common.cfg", + ".kokoro/release/common.sh", + ".kokoro/release/drop.cfg", + ".kokoro/release/drop.sh", + ".kokoro/release/promote.cfg", + ".kokoro/release/promote.sh", + ".kokoro/release/publish_javadoc.cfg", + ".kokoro/release/publish_javadoc.sh", + ".kokoro/release/snapshot.cfg", + ".kokoro/release/snapshot.sh", + ".kokoro/release/stage.cfg", + ".kokoro/release/stage.sh", + ".kokoro/trampoline.sh", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "README.md", + "codecov.yaml", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java", + "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java", + "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java", + "java.header", + "license-checks.xml", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto", + "renovate.json", + "samples/install-without-bom/pom.xml", + "samples/pom.xml", + "samples/snapshot/pom.xml", + "samples/snippets/pom.xml" ] } \ No newline at end of file From 0baa3d30d80bde3eba8d93330ef3f93475a17fb3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 31 Jul 2020 16:04:14 -0700 Subject: [PATCH 0434/2363] docs: remove experimental warning for ordering keys properties. (#297) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/6d3f7836-3a4c-492a-9e6c-360f4c2d6fc1/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 323803770 Source-Link: https://github.com/googleapis/googleapis/commit/706053bbfb3f16ef752e513c2898a1f26cdd8e41 --- .../pubsub/v1/SubscriptionAdminClient.java | 284 +++++++++--------- .../cloud/pubsub/v1/TopicAdminClient.java | 60 ++-- .../com/google/pubsub/v1/PublisherGrpc.java | 56 ++-- .../com/google/pubsub/v1/SubscriberGrpc.java | 260 +++++++--------- .../com/google/pubsub/v1/PubsubMessage.java | 41 +-- .../pubsub/v1/PubsubMessageOrBuilder.java | 6 - .../java/com/google/pubsub/v1/Snapshot.java | 62 ++-- .../google/pubsub/v1/SnapshotOrBuilder.java | 20 +- .../com/google/pubsub/v1/Subscription.java | 36 +-- .../pubsub/v1/SubscriptionOrBuilder.java | 9 +- .../main/java/com/google/pubsub/v1/Topic.java | 44 +-- .../com/google/pubsub/v1/TopicOrBuilder.java | 20 +- .../main/proto/google/pubsub/v1/pubsub.proto | 118 +++----- java-pubsub/synth.metadata | 6 +- 14 files changed, 451 insertions(+), 571 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 2fbd6ff962a2..b53ef596dd33 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -197,16 +197,16 @@ public SubscriberStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a subscription to a given topic. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. If the subscription already exists, returns `ALREADY_EXISTS`. If the - * corresponding topic doesn't exist, returns `NOT_FOUND`. + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is - * populated in the returned Subscription object. Note that for REST API requests, you must - * specify a name in the request. + * subscription on the same project as the topic, conforming to the [resource name format] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. * *

    Sample code: * @@ -265,16 +265,16 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a subscription to a given topic. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. If the subscription already exists, returns `ALREADY_EXISTS`. If the - * corresponding topic doesn't exist, returns `NOT_FOUND`. + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is - * populated in the returned Subscription object. Note that for REST API requests, you must - * specify a name in the request. + * subscription on the same project as the topic, conforming to the [resource name format] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. * *

    Sample code: * @@ -330,16 +330,16 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a subscription to a given topic. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. If the subscription already exists, returns `ALREADY_EXISTS`. If the - * corresponding topic doesn't exist, returns `NOT_FOUND`. + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is - * populated in the returned Subscription object. Note that for REST API requests, you must - * specify a name in the request. + * subscription on the same project as the topic, conforming to the [resource name format] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. * *

    Sample code: * @@ -434,16 +434,16 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a subscription to a given topic. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. If the subscription already exists, returns `ALREADY_EXISTS`. If the - * corresponding topic doesn't exist, returns `NOT_FOUND`. + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is - * populated in the returned Subscription object. Note that for REST API requests, you must - * specify a name in the request. + * subscription on the same project as the topic, conforming to the [resource name format] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. * *

    Sample code: * @@ -1525,10 +1525,10 @@ public final UnaryCallable modifyPushConfigCalla // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Lists the existing snapshots. Snapshots are used in [Seek]( + * https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -1555,10 +1555,10 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Lists the existing snapshots. Snapshots are used in [Seek]( + * https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -1582,10 +1582,10 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Lists the existing snapshots. Snapshots are used in [Seek]( + * https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -1610,10 +1610,10 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Lists the existing snapshots. Snapshots are used in [Seek]( + * https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -1638,10 +1638,10 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the existing snapshots. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Lists the existing snapshots. Snapshots are used in [Seek]( + * https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -1672,19 +1672,18 @@ public final UnaryCallable listSnap // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * <br><br>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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is - * populated in the returned Snapshot object. Note that for REST API requests, you must specify a - * name in the request. + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. * *

    Sample code: * @@ -1722,19 +1721,18 @@ public final Snapshot createSnapshot( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * <br><br>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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is - * populated in the returned Snapshot object. Note that for REST API requests, you must specify a - * name in the request. + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. * *

    Sample code: * @@ -1768,19 +1766,18 @@ public final Snapshot createSnapshot(String name, String subscription) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * <br><br>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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is - * populated in the returned Snapshot object. Note that for REST API requests, you must specify a - * name in the request. + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. * *

    Sample code: * @@ -1805,19 +1802,18 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates a snapshot from the requested subscription. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * <br><br>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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is - * populated in the returned Snapshot object. Note that for REST API requests, you must specify a - * name in the request. + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. * *

    Sample code: * @@ -1916,14 +1912,13 @@ public final UnaryCallable updateSnapshotCallab // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> When the snapshot is deleted, all messages retained in the - * snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with - * the same name, but the new one has no association with the old snapshot or its subscription, - * unless the same subscription is specified. + * Removes an existing snapshot. Snapshots are used in [Seek] + * (https://cloud.google.com/pubsub/docs/replay-overview) 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. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. * *

    Sample code: * @@ -1948,14 +1943,13 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> When the snapshot is deleted, all messages retained in the - * snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with - * the same name, but the new one has no association with the old snapshot or its subscription, - * unless the same subscription is specified. + * Removes an existing snapshot. Snapshots are used in [Seek] + * (https://cloud.google.com/pubsub/docs/replay-overview) 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. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. * *

    Sample code: * @@ -1978,14 +1972,13 @@ public final void deleteSnapshot(String snapshot) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> When the snapshot is deleted, all messages retained in the - * snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with - * the same name, but the new one has no association with the old snapshot or its subscription, - * unless the same subscription is specified. + * Removes an existing snapshot. Snapshots are used in [Seek] + * (https://cloud.google.com/pubsub/docs/replay-overview) 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. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. * *

    Sample code: * @@ -2008,14 +2001,13 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Removes an existing snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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.<br><br> When the snapshot is deleted, all messages retained in the - * snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with - * the same name, but the new one has no association with the old snapshot or its subscription, - * unless the same subscription is specified. + * Removes an existing snapshot. Snapshots are used in [Seek] + * (https://cloud.google.com/pubsub/docs/replay-overview) 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. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. * *

    Sample code: * @@ -2038,11 +2030,11 @@ public final UnaryCallable deleteSnapshotCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided - * in the request. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. Note that - * both the subscription and the snapshot must be on the same topic. + * in the request. Snapshots are used in [Seek]( + * https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription + * and the snapshot must be on the same topic. * *

    Sample code: * @@ -2066,11 +2058,11 @@ public final SeekResponse seek(SeekRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided - * in the request. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. Note that - * both the subscription and the snapshot must be on the same topic. + * in the request. Snapshots are used in [Seek]( + * https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription + * and the snapshot must be on the same topic. * *

    Sample code: * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 1d1096550d3a..482969622efe 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -182,9 +182,8 @@ public PublisherStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. + * Creates the given topic with the given name. See the [resource name rules]( + * https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * @@ -209,9 +208,8 @@ public final Topic createTopic(TopicName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. + * Creates the given topic with the given name. See the [resource name rules]( + * https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * @@ -264,9 +262,8 @@ public final Topic createTopic(ProjectTopicName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. + * Creates the given topic with the given name. See the [resource name rules]( + * https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * @@ -289,9 +286,8 @@ public final Topic createTopic(Topic request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. + * Creates the given topic with the given name. See the [resource name rules]( + * https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * @@ -889,10 +885,10 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the names of the snapshots on this topic. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Lists the names of the snapshots on this topic. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -919,10 +915,10 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the names of the snapshots on this topic. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Lists the names of the snapshots on this topic. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -947,10 +943,10 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the names of the snapshots on this topic. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Lists the names of the snapshots on this topic. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -976,10 +972,10 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the names of the snapshots on this topic. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Lists the names of the snapshots on this topic. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -1005,10 +1001,10 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Lists the names of the snapshots on this topic. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Lists the names of the snapshots on this topic. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 8ddccd07fd14..d1e85d8f4076 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -468,9 +468,8 @@ public abstract static class PublisherImplBase implements io.grpc.BindableServic * * *

    -     * Creates the given topic with the given name. See the
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    +     * Creates the given topic with the given name. See the [resource name rules](
    +     * https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 
    */ public void createTopic( @@ -552,11 +551,10 @@ public void listTopicSubscriptions( * *
          * Lists the names of the snapshots on this topic. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public void listTopicSnapshots( @@ -685,9 +683,8 @@ protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callO * * *
    -     * Creates the given topic with the given name. See the
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    +     * Creates the given topic with the given name. See the [resource name rules](
    +     * https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 
    */ public void createTopic( @@ -781,11 +778,10 @@ public void listTopicSubscriptions( * *
          * Lists the names of the snapshots on this topic. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public void listTopicSnapshots( @@ -863,9 +859,8 @@ protected PublisherBlockingStub build( * * *
    -     * Creates the given topic with the given name. See the
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    +     * Creates the given topic with the given name. See the [resource name rules](
    +     * https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 
    */ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { @@ -938,11 +933,10 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription * *
          * Lists the names of the snapshots on this topic. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( @@ -1006,9 +1000,8 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
    -     * Creates the given topic with the given name. See the
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    +     * Creates the given topic with the given name. See the [resource name rules](
    +     * https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -1089,11 +1082,10 @@ public com.google.common.util.concurrent.ListenableFuture * Lists the names of the snapshots on this topic. Snapshots are used in - * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> - * 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. + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 6983f25d64fa..37ba4c003e04 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -748,18 +748,16 @@ public abstract static class SubscriberImplBase implements io.grpc.BindableServi * * *
    -     * Creates a subscription to a given topic. See the
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    +     * Creates a subscription to a given topic. See the [resource name rules]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The
    -     * generated name is populated in the returned Subscription object. Note that
    -     * for REST API requests, you must specify a name in the request.
    +     * to the [resource name format]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
    +     * name is populated in the returned Subscription object. Note that for REST
    +     * API requests, you must specify a name in the request.
          * 
    */ public void createSubscription( @@ -932,12 +930,11 @@ public void getSnapshot( * * *
    -     * Lists the existing snapshots. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * Lists the existing snapshots. Snapshots are used in [Seek](
    +     * https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public void listSnapshots( @@ -951,21 +948,19 @@ public void listSnapshots( * *
          * Creates a snapshot from the requested subscription. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    -     * <br><br>If the snapshot already exists, returns `ALREADY_EXISTS`.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The
    +     * to the [resource name format]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The
          * generated name is populated in the returned Snapshot object. Note that for
          * REST API requests, you must specify a name in the request.
          * 
    @@ -998,12 +993,11 @@ public void updateSnapshot( * * *
    -     * Removes an existing snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.<br><br>
    +     * Removes an existing snapshot. Snapshots are used in [Seek]
    +     * (https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * When the snapshot is deleted, all messages retained in the snapshot
          * are immediately dropped. After a snapshot is deleted, a new one may be
          * created with the same name, but the new one has no association with the old
    @@ -1021,13 +1015,12 @@ public void deleteSnapshot(
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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. Note that both the subscription and the snapshot
    -     * must be on the same topic.
    +     * whichever is provided in the request. Snapshots are used in [Seek](
    +     * https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the
    +     * snapshot must be on the same topic.
          * 
    */ public void seek( @@ -1163,18 +1156,16 @@ protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions call * * *
    -     * Creates a subscription to a given topic. See the
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    +     * Creates a subscription to a given topic. See the [resource name rules]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The
    -     * generated name is populated in the returned Subscription object. Note that
    -     * for REST API requests, you must specify a name in the request.
    +     * to the [resource name format]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
    +     * name is populated in the returned Subscription object. Note that for REST
    +     * API requests, you must specify a name in the request.
          * 
    */ public void createSubscription( @@ -1376,12 +1367,11 @@ public void getSnapshot( * * *
    -     * Lists the existing snapshots. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * Lists the existing snapshots. Snapshots are used in [Seek](
    +     * https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public void listSnapshots( @@ -1398,21 +1388,19 @@ public void listSnapshots( * *
          * Creates a snapshot from the requested subscription. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    -     * <br><br>If the snapshot already exists, returns `ALREADY_EXISTS`.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The
    +     * to the [resource name format]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The
          * generated name is populated in the returned Snapshot object. Note that for
          * REST API requests, you must specify a name in the request.
          * 
    @@ -1451,12 +1439,11 @@ public void updateSnapshot( * * *
    -     * Removes an existing snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.<br><br>
    +     * Removes an existing snapshot. Snapshots are used in [Seek]
    +     * (https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * When the snapshot is deleted, all messages retained in the snapshot
          * are immediately dropped. After a snapshot is deleted, a new one may be
          * created with the same name, but the new one has no association with the old
    @@ -1477,13 +1464,12 @@ public void deleteSnapshot(
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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. Note that both the subscription and the snapshot
    -     * must be on the same topic.
    +     * whichever is provided in the request. Snapshots are used in [Seek](
    +     * https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the
    +     * snapshot must be on the same topic.
          * 
    */ public void seek( @@ -1519,18 +1505,16 @@ protected SubscriberBlockingStub build( * * *
    -     * Creates a subscription to a given topic. See the
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    +     * Creates a subscription to a given topic. See the [resource name rules]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The
    -     * generated name is populated in the returned Subscription object. Note that
    -     * for REST API requests, you must specify a name in the request.
    +     * to the [resource name format]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
    +     * name is populated in the returned Subscription object. Note that for REST
    +     * API requests, you must specify a name in the request.
          * 
    */ public com.google.pubsub.v1.Subscription createSubscription( @@ -1678,12 +1662,11 @@ public com.google.pubsub.v1.Snapshot getSnapshot( * * *
    -     * Lists the existing snapshots. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * Lists the existing snapshots. Snapshots are used in [Seek](
    +     * https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( @@ -1696,21 +1679,19 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( * *
          * Creates a snapshot from the requested subscription. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    -     * <br><br>If the snapshot already exists, returns `ALREADY_EXISTS`.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The
    +     * to the [resource name format]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The
          * generated name is populated in the returned Snapshot object. Note that for
          * REST API requests, you must specify a name in the request.
          * 
    @@ -1741,12 +1722,11 @@ public com.google.pubsub.v1.Snapshot updateSnapshot( * * *
    -     * Removes an existing snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.<br><br>
    +     * Removes an existing snapshot. Snapshots are used in [Seek]
    +     * (https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * When the snapshot is deleted, all messages retained in the snapshot
          * are immediately dropped. After a snapshot is deleted, a new one may be
          * created with the same name, but the new one has no association with the old
    @@ -1763,13 +1743,12 @@ public com.google.protobuf.Empty deleteSnapshot(
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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. Note that both the subscription and the snapshot
    -     * must be on the same topic.
    +     * whichever is provided in the request. Snapshots are used in [Seek](
    +     * https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the
    +     * snapshot must be on the same topic.
          * 
    */ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { @@ -1801,18 +1780,16 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
    -     * Creates a subscription to a given topic. See the
    -     * <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
    -     * resource name rules</a>.
    +     * Creates a subscription to a given topic. See the [resource name rules]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The
    -     * generated name is populated in the returned Subscription object. Note that
    -     * for REST API requests, you must specify a name in the request.
    +     * to the [resource name format]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
    +     * name is populated in the returned Subscription object. Note that for REST
    +     * API requests, you must specify a name in the request.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -1966,12 +1943,11 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
    -     * Lists the existing snapshots. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * Lists the existing snapshots. Snapshots are used in [Seek](
    +     * https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< @@ -1986,21 +1962,19 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Creates a snapshot from the requested subscription. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    -     * <br><br>If the snapshot already exists, returns `ALREADY_EXISTS`.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The
    +     * to the [resource name format]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The
          * generated name is populated in the returned Snapshot object. Note that for
          * REST API requests, you must specify a name in the request.
          * 
    @@ -2033,12 +2007,11 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
    -     * Removes an existing snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.<br><br>
    +     * Removes an existing snapshot. Snapshots are used in [Seek]
    +     * (https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * When the snapshot is deleted, all messages retained in the snapshot
          * are immediately dropped. After a snapshot is deleted, a new one may be
          * created with the same name, but the new one has no association with the old
    @@ -2056,13 +2029,12 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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. Note that both the subscription and the snapshot
    -     * must be on the same topic.
    +     * whichever is provided in the request. Snapshots are used in [Seek](
    +     * https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the
    +     * snapshot must be on the same topic.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 75f6b6f2e65b..29753809842d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -25,11 +25,11 @@ * 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 - * <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client - * library documentation</a> for more information. See - * <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a> - * for more information about message limits. + * depending on the language. See the corresponding [client library + * documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for + * more information. See [quotas and limits] + * (https://cloud.google.com/pubsub/quotas) for more information about message + * limits. *
    * * Protobuf type {@code google.pubsub.v1.PubsubMessage} @@ -419,9 +419,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * 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. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string ordering_key = 5; @@ -450,9 +447,6 @@ public java.lang.String getOrderingKey() { * 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. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. *
    * * string ordering_key = 5; @@ -685,11 +679,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * 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 - * <a href="https://cloud.google.com/pubsub/docs/reference/libraries">client - * library documentation</a> for more information. See - * <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a> - * for more information about message limits. + * depending on the language. See the corresponding [client library + * documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for + * more information. See [quotas and limits] + * (https://cloud.google.com/pubsub/quotas) for more information about message + * limits. *
    * * Protobuf type {@code google.pubsub.v1.PubsubMessage} @@ -1462,9 +1456,6 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * 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. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string ordering_key = 5; @@ -1492,9 +1483,6 @@ public java.lang.String getOrderingKey() { * 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. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string ordering_key = 5; @@ -1522,9 +1510,6 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { * 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. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string ordering_key = 5; @@ -1551,9 +1536,6 @@ public Builder setOrderingKey(java.lang.String value) { * 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. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string ordering_key = 5; @@ -1576,9 +1558,6 @@ public Builder clearOrderingKey() { * 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. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string ordering_key = 5; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index dfe2dcf0c452..a81cdd8e2895 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -183,9 +183,6 @@ public interface PubsubMessageOrBuilder * 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. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string ordering_key = 5; @@ -203,9 +200,6 @@ public interface PubsubMessageOrBuilder * 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. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * string ordering_key = 5; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 6d6000105232..7097a40b509e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -23,11 +23,10 @@ * *
      * A snapshot resource. Snapshots are used in
    - * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    - * 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.
    + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
    + * 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.
      * 
    * * Protobuf type {@code google.pubsub.v1.Snapshot} @@ -362,8 +361,8 @@ public int getLabelsCount() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 4; @@ -385,8 +384,8 @@ public java.util.Map getLabels() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 4; @@ -399,8 +398,8 @@ public java.util.Map getLabelsMap() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 4; @@ -417,8 +416,8 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 4; @@ -637,11 +636,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * A snapshot resource. Snapshots are used in
    -   * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -   * 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.
    +   * [Seek](https://cloud.google.com/pubsub/docs/replay-overview)
    +   * 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.
        * 
    * * Protobuf type {@code google.pubsub.v1.Snapshot} @@ -1343,8 +1341,8 @@ public int getLabelsCount() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 4; @@ -1366,8 +1364,8 @@ public java.util.Map getLabels() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 4; @@ -1380,8 +1378,8 @@ public java.util.Map getLabelsMap() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 4; @@ -1399,8 +1397,8 @@ public java.lang.String getLabelsOrDefault( * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 4; @@ -1425,8 +1423,8 @@ public Builder clearLabels() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 4; @@ -1447,8 +1445,8 @@ public java.util.Map getMutableLabels() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 4; @@ -1467,8 +1465,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 4; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 9ef1ef752f22..c8d3ed3ad474 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -139,8 +139,8 @@ public interface SnapshotOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 4; @@ -150,8 +150,8 @@ public interface SnapshotOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 4; @@ -164,8 +164,8 @@ public interface SnapshotOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 4; @@ -175,8 +175,8 @@ public interface SnapshotOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 4; @@ -186,8 +186,8 @@ public interface SnapshotOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 4; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 01a1c6fe5816..3b1afd152826 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -460,10 +460,8 @@ public int getAckDeadlineSeconds() { * 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 - * <a - * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> - * Seek to a timestamp</a>. + * window. This must be true if you would like to [Seek to a timestamp] + * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). * * * bool retain_acked_messages = 7; @@ -650,9 +648,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * will be delivered to the subscribers in the order in which they * are received by the Pub/Sub system. Otherwise, they may be delivered in * any order. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * bool enable_message_ordering = 10; @@ -2094,10 +2089,8 @@ public Builder clearAckDeadlineSeconds() { * 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 - * <a - * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> - * Seek to a timestamp</a>. + * window. This must be true if you would like to [Seek to a timestamp] + * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). * * * bool retain_acked_messages = 7; @@ -2115,10 +2108,8 @@ public boolean getRetainAckedMessages() { * 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 - * <a - * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> - * Seek to a timestamp</a>. + * window. This must be true if you would like to [Seek to a timestamp] + * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). * * * bool retain_acked_messages = 7; @@ -2139,10 +2130,8 @@ public Builder setRetainAckedMessages(boolean value) { * 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 - * <a - * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> - * Seek to a timestamp</a>. + * window. This must be true if you would like to [Seek to a timestamp] + * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). * * * bool retain_acked_messages = 7; @@ -2560,9 +2549,6 @@ public Builder putAllLabels(java.util.Map va * will be delivered to the subscribers in the order in which they * are received by the Pub/Sub system. Otherwise, they may be delivered in * any order. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * bool enable_message_ordering = 10; @@ -2581,9 +2567,6 @@ public boolean getEnableMessageOrdering() { * will be delivered to the subscribers in the order in which they * are received by the Pub/Sub system. Otherwise, they may be delivered in * any order. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * bool enable_message_ordering = 10; @@ -2605,9 +2588,6 @@ public Builder setEnableMessageOrdering(boolean value) { * will be delivered to the subscribers in the order in which they * are received by the Pub/Sub system. Otherwise, they may be delivered in * any order. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * bool enable_message_ordering = 10; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index f7d1714d1fdf..e19141cb0362 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -168,10 +168,8 @@ public interface SubscriptionOrBuilder * 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 - * <a - * href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time"> - * Seek to a timestamp</a>. + * window. This must be true if you would like to [Seek to a timestamp] + * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). * * * bool retain_acked_messages = 7; @@ -297,9 +295,6 @@ public interface SubscriptionOrBuilder * will be delivered to the subscribers in the order in which they * are received by the Pub/Sub system. Otherwise, they may be delivered in * any order. - * <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This - * API might be changed in backward-incompatible ways and is not recommended - * for production use. It is not subject to any SLA or deprecation policy. * * * bool enable_message_ordering = 10; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 5df76aa710b1..18db5a187a03 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -246,8 +246,8 @@ public int getLabelsCount() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 2; @@ -269,8 +269,8 @@ public java.util.Map getLabels() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 2; @@ -283,8 +283,8 @@ public java.util.Map getLabelsMap() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 2; @@ -301,8 +301,8 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 2; @@ -985,8 +985,8 @@ public int getLabelsCount() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 2; @@ -1008,8 +1008,8 @@ public java.util.Map getLabels() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 2; @@ -1022,8 +1022,8 @@ public java.util.Map getLabelsMap() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 2; @@ -1041,8 +1041,8 @@ public java.lang.String getLabelsOrDefault( * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 2; @@ -1067,8 +1067,8 @@ public Builder clearLabels() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 2; @@ -1089,8 +1089,8 @@ public java.util.Map getMutableLabels() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 2; @@ -1109,8 +1109,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing labels]
    +     * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 1e1338b11956..a118464808ad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -62,8 +62,8 @@ public interface TopicOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 2; @@ -73,8 +73,8 @@ public interface TopicOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 2; @@ -87,8 +87,8 @@ public interface TopicOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 2; @@ -98,8 +98,8 @@ public interface TopicOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 2; @@ -109,8 +109,8 @@ public interface TopicOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing labels]
    +   * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index dc9151446fe5..909863eb98b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -42,9 +42,8 @@ service Publisher { "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/pubsub"; - // Creates the given topic with the given name. See the - // - // resource name rules. + // Creates the given topic with the given name. See the [resource name rules]( + // https://cloud.google.com/pubsub/docs/admin#resource_names). rpc CreateTopic(Topic) returns (Topic) { option (google.api.http) = { put: "/v1/{name=projects/*/topics/*}" @@ -98,11 +97,10 @@ service Publisher { } // Lists the names of the snapshots on this topic. 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. + // [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. rpc ListTopicSnapshots(ListTopicSnapshotsRequest) returns (ListTopicSnapshotsResponse) { option (google.api.http) = { @@ -161,8 +159,8 @@ message Topic { // must not start with `"goog"`. string name = 1 [(google.api.field_behavior) = REQUIRED]; - // See Creating and - // managing labels. + // See [Creating and managing labels] + // (https://cloud.google.com/pubsub/docs/labels). map labels = 2; // Policy constraining the set of Google Cloud Platform regions where messages @@ -180,11 +178,11 @@ message Topic { // 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 -// library documentation for more information. See -// Quotas and limits -// for more information about message limits. +// depending on the language. See the corresponding [client library +// documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for +// more information. See [quotas and limits] +// (https://cloud.google.com/pubsub/quotas) for more information about message +// limits. message PubsubMessage { // The message data field. If this field is empty, the message must contain // at least one attribute. @@ -212,9 +210,6 @@ message PubsubMessage { // 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. string ordering_key = 5; } @@ -388,19 +383,17 @@ service Subscriber { "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/pubsub"; - // Creates a subscription to a given topic. See the - // - // resource name rules. + // Creates a subscription to a given topic. See the [resource name rules] + // (https://cloud.google.com/pubsub/docs/admin#resource_names). // 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The - // generated name is populated in the returned Subscription object. Note that - // for REST API requests, you must specify a name in the request. + // to the [resource name format] + // (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated + // name is populated in the returned Subscription object. Note that for REST + // API requests, you must specify a name in the request. rpc CreateSubscription(Subscription) returns (Subscription) { option (google.api.http) = { put: "/v1/{name=projects/*/subscriptions/*}" @@ -528,12 +521,11 @@ service Subscriber { option (google.api.method_signature) = "snapshot"; } - // Lists the existing snapshots. 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. + // Lists the existing snapshots. Snapshots are used in [Seek]( + // https://cloud.google.com/pubsub/docs/replay-overview) 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. rpc ListSnapshots(ListSnapshotsRequest) returns (ListSnapshotsResponse) { option (google.api.http) = { get: "/v1/{project=projects/*}/snapshots" @@ -542,21 +534,19 @@ service Subscriber { } // 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`. + // [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The + // to the [resource name format] + // (https://cloud.google.com/pubsub/docs/admin#resource_names). The // generated name is populated in the returned Snapshot object. Note that for // REST API requests, you must specify a name in the request. rpc CreateSnapshot(CreateSnapshotRequest) returns (Snapshot) { @@ -580,12 +570,11 @@ service Subscriber { }; } - // Removes an existing snapshot. 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.

    + // Removes an existing snapshot. Snapshots are used in [Seek] + // (https://cloud.google.com/pubsub/docs/replay-overview) 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. // When the snapshot is deleted, all messages retained in the snapshot // are immediately dropped. After a snapshot is deleted, a new one may be // created with the same name, but the new one has no association with the old @@ -598,13 +587,12 @@ service Subscriber { } // Seeks an existing subscription to a point in time or to a given snapshot, - // whichever is provided in the request. 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. Note that both the subscription and the snapshot - // must be on the same topic. + // whichever is provided in the request. Snapshots are used in [Seek]( + // https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the + // snapshot must be on the same topic. rpc Seek(SeekRequest) returns (SeekResponse) { option (google.api.http) = { post: "/v1/{subscription=projects/*/subscriptions/*}:seek" @@ -666,10 +654,8 @@ message Subscription { // 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. + // window. This must be true if you would like to [Seek to a timestamp] + // (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). bool retain_acked_messages = 7; // How long to retain unacknowledged messages in the subscription's backlog, @@ -688,9 +674,6 @@ message Subscription { // 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. bool enable_message_ordering = 10; // A policy that specifies the conditions for this subscription's expiration. @@ -1186,11 +1169,10 @@ message UpdateSnapshotRequest { } // 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. +// [Seek](https://cloud.google.com/pubsub/docs/replay-overview) +// 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. message Snapshot { option (google.api.resource) = { type: "pubsub.googleapis.com/Snapshot" @@ -1217,8 +1199,8 @@ message Snapshot { // snapshot that would expire in less than 1 hour after creation. google.protobuf.Timestamp expire_time = 3; - // See Creating and - // managing labels. + // See [Creating and managing labels] + // (https://cloud.google.com/pubsub/docs/labels). map labels = 4; } diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 80fab3945fd1..7f7e499fabe4 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "a820ab8f30c3c4c40cc321ec5350ebb463769d32" + "sha": "7e712b220dde56fa160385bfb532cad85d14dd8d" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "14f0c2cc9392234707247ab2b0782c118cb179aa", - "internalRef": "317914250" + "sha": "706053bbfb3f16ef752e513c2898a1f26cdd8e41", + "internalRef": "323803770" } }, { From e137af3dfdcb532442732256e604be5f0d541ba2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 4 Aug 2020 07:35:42 -0700 Subject: [PATCH 0435/2363] Add cloud-RAD for Java (#298) Co-authored-by: Jeff Ching Source-Author: Les Vogel Source-Date: Thu Jul 30 13:09:50 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: dd230c816f88d0141fcd0be83498986287220d1b Source-Link: https://github.com/googleapis/synthtool/commit/dd230c816f88d0141fcd0be83498986287220d1b --- .../.kokoro/release/publish_javadoc.cfg | 10 ++++++++ .../.kokoro/release/publish_javadoc.sh | 25 +++++++++++++++++-- java-pubsub/synth.metadata | 2 +- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc.cfg b/java-pubsub/.kokoro/release/publish_javadoc.cfg index b341d03a3146..90b0ec75345e 100644 --- a/java-pubsub/.kokoro/release/publish_javadoc.cfg +++ b/java-pubsub/.kokoro/release/publish_javadoc.cfg @@ -1,14 +1,24 @@ # Format: //devtools/kokoro/config/proto/build.proto + +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/doc-templates/" + env_vars: { key: "STAGING_BUCKET" value: "docs-staging" } +env_vars: { + key: "STAGING_BUCKET_V2" + value: "docs-staging-v2-staging" + # Production will be at: docs-staging-v2 +} + env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-pubsub/.kokoro/release/publish_javadoc.sh" } + before_action { fetch_keystore { keystore_resource { diff --git a/java-pubsub/.kokoro/release/publish_javadoc.sh b/java-pubsub/.kokoro/release/publish_javadoc.sh index 4b84079aa02d..165be09bc7b1 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc.sh @@ -24,6 +24,11 @@ if [[ -z "${STAGING_BUCKET}" ]]; then exit 1 fi +if [[ -z "${STAGING_BUCKET_V2}" ]]; then + echo "Need to set STAGING_BUCKET_V2 environment variable" + exit 1 +fi + # work from the git root directory pushd $(dirname "$0")/../../ @@ -31,13 +36,13 @@ pushd $(dirname "$0")/../../ python3 -m pip install gcp-docuploader # compile all packages -mvn clean install -B -DskipTests=true +mvn clean install -B -q -DskipTests=true NAME=google-cloud-pubsub VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # build the docs -mvn site -B +mvn site -B -q pushd target/site/apidocs @@ -53,3 +58,19 @@ python3 -m docuploader upload . \ --staging-bucket ${STAGING_BUCKET} popd + +# V2 +mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/" + +pushd target/devsite + +# create metadata +python3 -m docuploader create-metadata \ + --name ${NAME} \ + --version ${VERSION} \ + --language java + +# upload docs +python3 -m docuploader upload . \ + --credentials ${CREDENTIALS} \ + --staging-bucket ${STAGING_BUCKET_V2} diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 7f7e499fabe4..58a61aeeb473 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4f2c9f752a94042472fc03c5bd9e06e89817d2bd" + "sha": "dd230c816f88d0141fcd0be83498986287220d1b" } } ], From 5331dbd59218698a25d64fe1971c856ed8ac40d5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2020 11:11:12 -0700 Subject: [PATCH 0436/2363] chore: release 1.108.1 (#284) * chore: updated CHANGELOG.md [ci skip] * chore: updated README.md [ci skip] * chore: updated versions.txt [ci skip] * chore: updated samples/pom.xml [ci skip] * chore: updated samples/install-without-bom/pom.xml [ci skip] * chore: updated google-cloud-pubsub-bom/pom.xml [ci skip] * chore: updated google-cloud-pubsub/pom.xml [ci skip] * chore: updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * chore: updated pom.xml [ci skip] * chore: updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * chore: updated samples/snapshot/pom.xml [ci skip] * chore: updated samples/snippets/pom.xml Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 19 +++++++++++++++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 39 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index eb1a3a0e8cac..47b21bf447c5 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +### [1.108.1](https://www.github.com/googleapis/java-pubsub/compare/v1.108.0...v1.108.1) (2020-08-04) + + +### Bug Fixes + +* add header providers to PublisherStubSettings ([#294](https://www.github.com/googleapis/java-pubsub/issues/294)) ([6bd5016](https://www.github.com/googleapis/java-pubsub/commit/6bd5016dafe85c7af92a44a8e9a34b2fcb95e64d)) +* if a flow control setting is not provided use zero ([#292](https://www.github.com/googleapis/java-pubsub/issues/292)) ([d56155b](https://www.github.com/googleapis/java-pubsub/commit/d56155b640d13fa78d28031862aabe4814ce201d)) +* Make error message more clear about where ordering must be enabled when publishing ([#293](https://www.github.com/googleapis/java-pubsub/issues/293)) ([f54ed02](https://www.github.com/googleapis/java-pubsub/commit/f54ed0284a9c7e1a337481e13388397adfa33abf)) + + +### Documentation + +* remove experimental warning for ordering keys properties. ([#297](https://www.github.com/googleapis/java-pubsub/issues/297)) ([3fa5164](https://www.github.com/googleapis/java-pubsub/commit/3fa516496315b882da7ffbbc230a3e69acf08a48)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.3 ([#282](https://www.github.com/googleapis/java-pubsub/issues/282)) ([744c268](https://www.github.com/googleapis/java-pubsub/commit/744c2687d50c79ff8556d455aab60928ab2f790c)) + ## [1.108.0](https://www.github.com/googleapis/java-pubsub/compare/v1.107.0...v1.108.0) (2020-07-09) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3a085e86f7ea..17781c8fba7f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.108.0' +compile 'com.google.cloud:google-cloud-pubsub:1.108.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.1" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 393eb41a8118..139108e74739 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.1-SNAPSHOT + 1.108.1 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.1-SNAPSHOT + 1.90.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.1-SNAPSHOT + 1.90.1 com.google.cloud google-cloud-pubsub - 1.108.1-SNAPSHOT + 1.108.1
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 0eaa7c3977cf..fe7edf146592 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.1-SNAPSHOT + 1.108.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.1-SNAPSHOT + 1.108.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 911b2218bccd..a57552d6b775 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.1-SNAPSHOT + 1.90.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.1-SNAPSHOT + 1.108.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 29cd37534ebb..8e4288522869 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.1-SNAPSHOT + 1.108.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.1-SNAPSHOT + 1.90.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.1-SNAPSHOT + 1.90.1 com.google.cloud google-cloud-pubsub - 1.108.1-SNAPSHOT + 1.108.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c262e6472425..0c89e24c0482 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.1-SNAPSHOT + 1.90.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.1-SNAPSHOT + 1.108.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 97f6cdef0f3b..ec1e706f0055 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.1-SNAPSHOT + 1.108.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index bee45f41f312..0449daa70048 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.0:1.90.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.90.0:1.90.1-SNAPSHOT -google-cloud-pubsub:1.108.0:1.108.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.1:1.90.1 +grpc-google-cloud-pubsub-v1:1.90.1:1.90.1 +google-cloud-pubsub:1.108.1:1.108.1 \ No newline at end of file From d9a8c7118ab81f3e8016359ca623a4ee6838e5e1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 4 Aug 2020 21:40:32 +0200 Subject: [PATCH 0437/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.108.1 (#304) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ea890e6b218b..078c3d50f22d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.108.0 + 1.108.1 From 4d45bdff9269a89027ed25601fa8408a2535f1f6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 6 Aug 2020 13:57:37 -0700 Subject: [PATCH 0438/2363] changes without context (#305) --- java-pubsub/README.md | 2 +- java-pubsub/synth.metadata | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 17781c8fba7f..f07a0260e113 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.108.0 + 1.108.1 ``` diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 58a61aeeb473..45579e55224c 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "7e712b220dde56fa160385bfb532cad85d14dd8d" + "sha": "cf63e49a3529897eba074346741dd3f04e64e8c2" } }, { From 7eeff0b25de97a70d55518730829f652c3ece536 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 6 Aug 2020 13:59:10 -0700 Subject: [PATCH 0439/2363] chore: regenerate client lib (#307) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * cleanup: removes unused kokoro config files * cleanup: removes unused kokoro config files Removes unused kokoro files from the java library template. We have stopped running some of these due to Github quota issues. * fix:reverts back samples.cfg files The files presubmit/samples.cfg and nightly/samples.cfg should remain in the java template repository. Co-authored-by: Jeffrey Rennie Source-Author: Thiago Nunes Source-Date: Thu Aug 6 09:48:58 2020 +1000 Source-Repo: googleapis/synthtool Source-Sha: 4530cc6ff080ef8aca258c1ec92c4db10a1bbfb4 Source-Link: https://github.com/googleapis/synthtool/commit/4530cc6ff080ef8aca258c1ec92c4db10a1bbfb4 --- .../.kokoro/continuous/dependencies.cfg | 12 ----- .../.kokoro/continuous/integration.cfg | 7 --- java-pubsub/.kokoro/continuous/java11.cfg | 7 --- java-pubsub/.kokoro/continuous/java7.cfg | 7 --- java-pubsub/.kokoro/continuous/java8-osx.cfg | 3 -- java-pubsub/.kokoro/continuous/java8-win.cfg | 3 -- java-pubsub/.kokoro/continuous/lint.cfg | 13 ----- .../.kokoro/continuous/propose_release.cfg | 53 ------------------- java-pubsub/.kokoro/continuous/samples.cfg | 31 ----------- java-pubsub/.kokoro/nightly/dependencies.cfg | 12 ----- java-pubsub/.kokoro/nightly/lint.cfg | 13 ----- java-pubsub/synth.metadata | 13 +---- 12 files changed, 1 insertion(+), 173 deletions(-) delete mode 100644 java-pubsub/.kokoro/continuous/dependencies.cfg delete mode 100644 java-pubsub/.kokoro/continuous/integration.cfg delete mode 100644 java-pubsub/.kokoro/continuous/java11.cfg delete mode 100644 java-pubsub/.kokoro/continuous/java7.cfg delete mode 100644 java-pubsub/.kokoro/continuous/java8-osx.cfg delete mode 100644 java-pubsub/.kokoro/continuous/java8-win.cfg delete mode 100644 java-pubsub/.kokoro/continuous/lint.cfg delete mode 100644 java-pubsub/.kokoro/continuous/propose_release.cfg delete mode 100644 java-pubsub/.kokoro/continuous/samples.cfg delete mode 100644 java-pubsub/.kokoro/nightly/dependencies.cfg delete mode 100644 java-pubsub/.kokoro/nightly/lint.cfg diff --git a/java-pubsub/.kokoro/continuous/dependencies.cfg b/java-pubsub/.kokoro/continuous/dependencies.cfg deleted file mode 100644 index 16bc14cd56df..000000000000 --- a/java-pubsub/.kokoro/continuous/dependencies.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/dependencies.sh" -} diff --git a/java-pubsub/.kokoro/continuous/integration.cfg b/java-pubsub/.kokoro/continuous/integration.cfg deleted file mode 100644 index 3b017fc80f04..000000000000 --- a/java-pubsub/.kokoro/continuous/integration.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} diff --git a/java-pubsub/.kokoro/continuous/java11.cfg b/java-pubsub/.kokoro/continuous/java11.cfg deleted file mode 100644 index 709f2b4c73db..000000000000 --- a/java-pubsub/.kokoro/continuous/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/java-pubsub/.kokoro/continuous/java7.cfg b/java-pubsub/.kokoro/continuous/java7.cfg deleted file mode 100644 index cb24f44eea3b..000000000000 --- a/java-pubsub/.kokoro/continuous/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/java-pubsub/.kokoro/continuous/java8-osx.cfg b/java-pubsub/.kokoro/continuous/java8-osx.cfg deleted file mode 100644 index a41d2bac4b09..000000000000 --- a/java-pubsub/.kokoro/continuous/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-pubsub/.kokoro/build.sh" diff --git a/java-pubsub/.kokoro/continuous/java8-win.cfg b/java-pubsub/.kokoro/continuous/java8-win.cfg deleted file mode 100644 index ea3671f20e1a..000000000000 --- a/java-pubsub/.kokoro/continuous/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-pubsub/.kokoro/build.bat" diff --git a/java-pubsub/.kokoro/continuous/lint.cfg b/java-pubsub/.kokoro/continuous/lint.cfg deleted file mode 100644 index 6d323c8ae768..000000000000 --- a/java-pubsub/.kokoro/continuous/lint.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "lint" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/continuous/propose_release.cfg b/java-pubsub/.kokoro/continuous/propose_release.cfg deleted file mode 100644 index a4056349ae75..000000000000 --- a/java-pubsub/.kokoro/continuous/propose_release.cfg +++ /dev/null @@ -1,53 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-pubsub/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/continuous/propose_release.sh" -} - -# tokens used by release-please to keep an up-to-date release PR. -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-key-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-token-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-url-release-please" - } - } -} diff --git a/java-pubsub/.kokoro/continuous/samples.cfg b/java-pubsub/.kokoro/continuous/samples.cfg deleted file mode 100644 index fa7b493d0b5c..000000000000 --- a/java-pubsub/.kokoro/continuous/samples.cfg +++ /dev/null @@ -1,31 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "keystore/73713_java_it_service_account" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "java_it_service_account" - } - } -} diff --git a/java-pubsub/.kokoro/nightly/dependencies.cfg b/java-pubsub/.kokoro/nightly/dependencies.cfg deleted file mode 100644 index 16bc14cd56df..000000000000 --- a/java-pubsub/.kokoro/nightly/dependencies.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/dependencies.sh" -} diff --git a/java-pubsub/.kokoro/nightly/lint.cfg b/java-pubsub/.kokoro/nightly/lint.cfg deleted file mode 100644 index 6d323c8ae768..000000000000 --- a/java-pubsub/.kokoro/nightly/lint.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "lint" -} \ No newline at end of file diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 45579e55224c..5b1637f07231 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "dd230c816f88d0141fcd0be83498986287220d1b" + "sha": "4530cc6ff080ef8aca258c1ec92c4db10a1bbfb4" } } ], @@ -49,27 +49,16 @@ ".kokoro/common.cfg", ".kokoro/common.sh", ".kokoro/continuous/common.cfg", - ".kokoro/continuous/dependencies.cfg", - ".kokoro/continuous/integration.cfg", - ".kokoro/continuous/java11.cfg", - ".kokoro/continuous/java7.cfg", - ".kokoro/continuous/java8-osx.cfg", - ".kokoro/continuous/java8-win.cfg", ".kokoro/continuous/java8.cfg", - ".kokoro/continuous/lint.cfg", - ".kokoro/continuous/propose_release.cfg", - ".kokoro/continuous/samples.cfg", ".kokoro/dependencies.sh", ".kokoro/linkage-monitor.sh", ".kokoro/nightly/common.cfg", - ".kokoro/nightly/dependencies.cfg", ".kokoro/nightly/integration.cfg", ".kokoro/nightly/java11.cfg", ".kokoro/nightly/java7.cfg", ".kokoro/nightly/java8-osx.cfg", ".kokoro/nightly/java8-win.cfg", ".kokoro/nightly/java8.cfg", - ".kokoro/nightly/lint.cfg", ".kokoro/nightly/samples.cfg", ".kokoro/populate-secrets.sh", ".kokoro/presubmit/clirr.cfg", From 6c89e28c46e0b24e8a19dbba7321c899d3978342 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Aug 2020 17:46:37 +0200 Subject: [PATCH 0440/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.5 (#303) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8e4288522869..947a7b065679 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.8.3 + 0.8.5 pom import From 716a58dec4b527be981ea179abfeb14ce4b7b1a0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 7 Aug 2020 08:47:01 -0700 Subject: [PATCH 0441/2363] chore: release 1.108.2-SNAPSHOT (#306) * chore: updated versions.txt [ci skip] * chore: updated samples/pom.xml [ci skip] * chore: updated samples/snippets/pom.xml [ci skip] * chore: updated google-cloud-pubsub-bom/pom.xml [ci skip] * chore: updated google-cloud-pubsub/pom.xml [ci skip] * chore: updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * chore: updated pom.xml [ci skip] * chore: updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * chore: updated samples/snapshot/pom.xml [ci skip] * chore: updated samples/install-without-bom/pom.xml Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 139108e74739..643ee43fb973 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.1 + 1.108.2-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.1 + 1.90.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.1 + 1.90.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.1 + 1.108.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index fe7edf146592..dd7024ba1810 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.1 + 1.108.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.1 + 1.108.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a57552d6b775..04c4fa8e9edb 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.1 + 1.90.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.1 + 1.108.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 947a7b065679..4015361c7fc4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.1 + 1.108.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.1 + 1.90.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.1 + 1.90.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.1 + 1.108.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0c89e24c0482..21112ff76753 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.1 + 1.90.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.1 + 1.108.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ec1e706f0055..174f81209a7b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.1 + 1.108.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0449daa70048..ea1c1979308b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.1:1.90.1 -grpc-google-cloud-pubsub-v1:1.90.1:1.90.1 -google-cloud-pubsub:1.108.1:1.108.1 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.1:1.90.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.90.1:1.90.2-SNAPSHOT +google-cloud-pubsub:1.108.1:1.108.2-SNAPSHOT \ No newline at end of file From db90938413fe2582e7a6b83478ad11c250b552b1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 7 Aug 2020 10:50:03 -0700 Subject: [PATCH 0442/2363] build: update dependencies check to only check for runtime and compile scopes (#311) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b24e7806-61f7-4799-8de0-fc5993ab89fb/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/f8823dec98277a9516f2fb6fae9f58b3a59a23e1 --- java-pubsub/.kokoro/dependencies.sh | 9 +++++---- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index cee4f11e7547..c91e5a56937a 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -43,12 +43,13 @@ function completenessCheck() { # Output dep list with compile scope generated using the original pom # Running mvn dependency:list on Java versions that support modules will also include the module of the dependency. # This is stripped from the output as it is not present in the flattened pom. + # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// | grep -v ':test$' >.org-list.txt + mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// >.org-list.txt - # Output dep list generated using the flattened pom (test scope deps are ommitted) + # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) msg "Generating dependency list using flattened pom..." - mvn dependency:list -f .flattened-pom.xml -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt + mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt # Compare two dependency lists msg "Comparing dependency lists..." @@ -85,4 +86,4 @@ then else msg "Errors found. See log statements above." exit 1 -fi +fi \ No newline at end of file diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 5b1637f07231..d64ea6310e27 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "cf63e49a3529897eba074346741dd3f04e64e8c2" + "sha": "3e726d0179d0f7ea435d1d7047a6c9147d4fe741" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4530cc6ff080ef8aca258c1ec92c4db10a1bbfb4" + "sha": "f8823dec98277a9516f2fb6fae9f58b3a59a23e1" } } ], From 042e316d839aa28d33404688bea43605c5162cab Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Aug 2020 23:34:03 +0200 Subject: [PATCH 0443/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.6 (#313) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | patch | `0.8.5` -> `0.8.6` | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.8.6`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​086-httpswwwgithubcomgoogleapisjava-shared-dependenciescomparev085v086-2020-08-07) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.8.5...v0.8.6)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4015361c7fc4..9ef39720a55e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.8.5 + 0.8.6 pom import From b47ed5df8309a1cf49640efc1124aa8880fe1782 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 14 Aug 2020 04:26:30 +0200 Subject: [PATCH 0444/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v9 (#317) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `8.1.0` -> `9.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 076b511f5059..e8998a9f8cda 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 8.1.0 + 9.0.0 pom import From 55373cd499882e82c97ff38bd1f5cd60bfa6444f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 14 Aug 2020 07:59:59 -0700 Subject: [PATCH 0445/2363] chore: regenerate README autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. --- java-pubsub/README.md | 2 +- java-pubsub/synth.metadata | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f07a0260e113..e6154adc4438 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 8.1.0 + 9.0.0 pom import diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index d64ea6310e27..9d50e7bed072 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "3e726d0179d0f7ea435d1d7047a6c9147d4fe741" + "sha": "3cc0a90f1e0f7a7ddf861bfeb29066573cb6571d" } }, { From df3f5a66178af528b75b5c9bf28ac4214d617008 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 Aug 2020 23:56:55 +0200 Subject: [PATCH 0446/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v9.1.0 (#319) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e8998a9f8cda..7468d0906120 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 9.0.0 + 9.1.0 pom import From 41a3564de3c3d5594dfac82dde3688b6f9b1b50c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 20 Aug 2020 17:56:09 -0700 Subject: [PATCH 0447/2363] changes without context (#322) autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. --- java-pubsub/README.md | 2 +- java-pubsub/synth.metadata | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e6154adc4438..d466c75bcadb 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 9.0.0 + 9.1.0 pom import diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 9d50e7bed072..af4f10162b10 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "3cc0a90f1e0f7a7ddf861bfeb29066573cb6571d" + "sha": "dda3079f6043330e38a880164a2ee6ededb7f225" } }, { From b76f3ab4a5208b4c0f980b89ad9ec5486c036630 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 20 Aug 2020 19:12:32 -0700 Subject: [PATCH 0448/2363] chore: release 1.108.2 (#312) * chore: updated CHANGELOG.md [ci skip] * chore: updated README.md [ci skip] * chore: updated versions.txt [ci skip] * chore: updated samples/pom.xml [ci skip] * chore: updated samples/install-without-bom/pom.xml [ci skip] * chore: updated google-cloud-pubsub-bom/pom.xml [ci skip] * chore: updated google-cloud-pubsub/pom.xml [ci skip] * chore: updated grpc-google-cloud-pubsub-v1/pom.xml [ci skip] * chore: updated proto-google-cloud-pubsub-v1/pom.xml [ci skip] * chore: updated samples/snapshot/pom.xml [ci skip] * chore: updated pom.xml [ci skip] * chore: updated samples/snippets/pom.xml Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 28 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 47b21bf447c5..44efc695800f 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [1.108.2](https://www.github.com/googleapis/java-pubsub/compare/v1.108.1...v1.108.2) (2020-08-21) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.5 ([#303](https://www.github.com/googleapis/java-pubsub/issues/303)) ([28ef9ea](https://www.github.com/googleapis/java-pubsub/commit/28ef9ea8cd78391a37023df6a0dcdbd1ba8432f1)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.6 ([#313](https://www.github.com/googleapis/java-pubsub/issues/313)) ([6fc0a4f](https://www.github.com/googleapis/java-pubsub/commit/6fc0a4fceddd420ac8539e0aa98975a01546250d)) + ### [1.108.1](https://www.github.com/googleapis/java-pubsub/compare/v1.108.0...v1.108.1) (2020-08-04) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d466c75bcadb..2a286e2bc247 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.108.1' +compile 'com.google.cloud:google-cloud-pubsub:1.108.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.2" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 643ee43fb973..0d0fc01c5e9e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.2-SNAPSHOT + 1.108.2 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.2-SNAPSHOT + 1.90.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.2-SNAPSHOT + 1.90.2 com.google.cloud google-cloud-pubsub - 1.108.2-SNAPSHOT + 1.108.2
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index dd7024ba1810..7d4f513d0dc9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.2-SNAPSHOT + 1.108.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.2-SNAPSHOT + 1.108.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 04c4fa8e9edb..082c5db61113 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.2-SNAPSHOT + 1.90.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.2-SNAPSHOT + 1.108.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9ef39720a55e..3bd96fce482d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.2-SNAPSHOT + 1.108.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.2-SNAPSHOT + 1.90.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.2-SNAPSHOT + 1.90.2 com.google.cloud google-cloud-pubsub - 1.108.2-SNAPSHOT + 1.108.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 21112ff76753..fd2ef5a63a56 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.2-SNAPSHOT + 1.90.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.2-SNAPSHOT + 1.108.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 174f81209a7b..8d759f124bc0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.2-SNAPSHOT + 1.108.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ea1c1979308b..93ffb33cd2d1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.1:1.90.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.90.1:1.90.2-SNAPSHOT -google-cloud-pubsub:1.108.1:1.108.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.2:1.90.2 +grpc-google-cloud-pubsub-v1:1.90.2:1.90.2 +google-cloud-pubsub:1.108.2:1.108.2 \ No newline at end of file From 8979f94271f975b767def8dd21bdc232eaf863ed Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Mon, 24 Aug 2020 12:39:00 -0400 Subject: [PATCH 0449/2363] fix: ensure proper cleanup of publisher in tests (#310) * fix: better cleanup during publisher test * fix: format issues * fix: test timeouts should be a minute --- .../cloud/pubsub/v1/PublisherImplTest.java | 70 ++++++++++++------- 1 file changed, 44 insertions(+), 26 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index c68367601019..d7687ae07167 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -31,8 +31,10 @@ import com.google.api.gax.core.FixedExecutorProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.testing.LocalChannelProvider; import com.google.api.gax.rpc.DataLossException; +import com.google.api.gax.rpc.FixedTransportChannelProvider; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.cloud.pubsub.v1.Publisher.Builder; import com.google.protobuf.ByteString; @@ -40,9 +42,11 @@ import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; +import io.grpc.ManagedChannel; import io.grpc.Server; import io.grpc.Status; import io.grpc.StatusException; +import io.grpc.inprocess.InProcessChannelBuilder; import io.grpc.inprocess.InProcessServerBuilder; import java.util.List; import java.util.concurrent.CountDownLatch; @@ -75,6 +79,8 @@ public class PublisherImplTest { private FakePublisherServiceImpl testPublisherServiceImpl; + private ManagedChannel testChannel; + private Server testServer; @Before @@ -84,6 +90,7 @@ public void setUp() throws Exception { InProcessServerBuilder serverBuilder = InProcessServerBuilder.forName("test-server"); serverBuilder.addService(testPublisherServiceImpl); testServer = serverBuilder.build(); + testChannel = InProcessChannelBuilder.forName("test-server").build(); testServer.start(); fakeExecutor = new FakeScheduledExecutorService(); @@ -92,6 +99,7 @@ public void setUp() throws Exception { @After public void tearDown() throws Exception { testServer.shutdownNow().awaitTermination(); + testChannel.shutdown(); } @Test @@ -122,8 +130,7 @@ public void testPublishByDuration() throws Exception { assertEquals("2", publishFuture2.get()); assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(0).getMessagesCount()); - publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); + shutdownTestPublisher(publisher); } @Test @@ -160,8 +167,9 @@ public void testPublishByNumBatchedMessages() throws Exception { assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(0).getMessagesCount()); assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(1).getMessagesCount()); - publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); + + fakeExecutor.advanceTime(Duration.ofSeconds(100)); + shutdownTestPublisher(publisher); } @Test @@ -195,8 +203,9 @@ public void testSinglePublishByNumBytes() throws Exception { assertEquals("4", publishFuture4.get()); assertEquals(2, testPublisherServiceImpl.getCapturedRequests().size()); - publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); + + fakeExecutor.advanceTime(Duration.ofSeconds(100)); + shutdownTestPublisher(publisher); } @Test @@ -219,15 +228,16 @@ public void testPublishByShutdown() throws Exception { // Note we are not advancing time or reaching the count threshold but messages should // still get published by call to shutdown - publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); // Verify the publishes completed assertTrue(publishFuture1.isDone()); assertTrue(publishFuture2.isDone()); assertEquals("1", publishFuture1.get()); assertEquals("2", publishFuture2.get()); + + fakeExecutor.advanceTime(Duration.ofSeconds(100)); + publisher.awaitTermination(1, TimeUnit.MINUTES); } @Test @@ -269,8 +279,7 @@ public void testPublishMixedSizeAndDuration() throws Exception { assertEquals(2, testPublisherServiceImpl.getCapturedRequests().get(0).getMessagesCount()); assertEquals(1, testPublisherServiceImpl.getCapturedRequests().get(1).getMessagesCount()); - publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); + shutdownTestPublisher(publisher); } private ApiFuture sendTestMessage(Publisher publisher, String data) { @@ -326,7 +335,9 @@ public void testBatchedMessagesWithOrderingKeyByNum() throws Exception { } } } - publisher.shutdown(); + + fakeExecutor.advanceTime(Duration.ofSeconds(100)); + shutdownTestPublisher(publisher); } @Test @@ -389,7 +400,7 @@ public void testBatchedMessagesWithOrderingKeyByDuration() throws Exception { } } } - publisher.shutdown(); + shutdownTestPublisher(publisher); } @Test @@ -418,7 +429,8 @@ public void testLargeMessagesDoNotReorderBatches() throws Exception { // Verify that messages with "OrderB" were delivered in order. assertTrue(Integer.parseInt(publishFuture2.get()) < Integer.parseInt(publishFuture3.get())); - publisher.shutdown(); + fakeExecutor.advanceTime(Duration.ofSeconds(100)); + shutdownTestPublisher(publisher); } @Test @@ -431,7 +443,7 @@ public void testOrderingKeyWhenDisabled_throwsException() throws Exception { } catch (IllegalStateException expected) { // expected } - publisher.shutdown(); + shutdownTestPublisher(publisher); } @Test @@ -461,6 +473,7 @@ public void testEnableMessageOrdering_overwritesMaxAttempts() throws Exception { assertEquals(4, testPublisherServiceImpl.getCapturedRequests().size()); publisher.shutdown(); + assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES)); } @Test @@ -550,7 +563,7 @@ public void testResumePublish() throws Exception { Assert.assertEquals("7", future7.get()); Assert.assertEquals("8", future8.get()); - publisher.shutdown(); + shutdownTestPublisher(publisher); } private ApiFuture sendTestMessageWithOrderingKey( @@ -604,8 +617,7 @@ public void testPublishFailureRetries() throws Exception { assertEquals("1", publishFuture1.get()); assertEquals(2, testPublisherServiceImpl.getCapturedRequests().size()); - publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); + shutdownTestPublisher(publisher); } @Test(expected = ExecutionException.class) @@ -629,8 +641,7 @@ public void testPublishFailureRetries_retriesDisabled() throws Exception { publishFuture1.get(); } finally { assertSame(testPublisherServiceImpl.getCapturedRequests().size(), 1); - publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); + shutdownTestPublisher(publisher); } } @@ -656,8 +667,7 @@ public void testPublishFailureRetries_maxRetriesSetup() throws Exception { assertEquals("1", publishFuture1.get()); assertEquals(3, testPublisherServiceImpl.getCapturedRequests().size()); - publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); + shutdownTestPublisher(publisher); } @Test @@ -683,7 +693,7 @@ public void testPublishFailureRetries_maxRetriesSetUnlimited() throws Exception assertEquals(3, testPublisherServiceImpl.getCapturedRequests().size()); publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); + assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES)); } @Test(expected = ExecutionException.class) @@ -712,14 +722,15 @@ public void testPublishFailureRetries_nonRetryableFailsImmediately() throws Exce } finally { assertTrue(testPublisherServiceImpl.getCapturedRequests().size() >= 1); publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); + assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES)); } } @Test public void testPublisherGetters() throws Exception { Publisher.Builder builder = Publisher.newBuilder(TEST_TOPIC); - builder.setChannelProvider(TEST_CHANNEL_PROVIDER); + builder.setChannelProvider( + FixedTransportChannelProvider.create(GrpcTransportChannel.create(testChannel))); builder.setExecutorProvider(SINGLE_THREAD_EXECUTOR); builder.setBatchingSettings( BatchingSettings.newBuilder() @@ -735,7 +746,7 @@ public void testPublisherGetters() throws Exception { assertEquals(Duration.ofMillis(11), publisher.getBatchingSettings().getDelayThreshold()); assertEquals(12, (long) publisher.getBatchingSettings().getElementCountThreshold()); publisher.shutdown(); - publisher.awaitTermination(1, TimeUnit.MINUTES); + assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES)); } @Test @@ -1115,7 +1126,14 @@ public void run() { private Builder getTestPublisherBuilder() { return Publisher.newBuilder(TEST_TOPIC) .setExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) - .setChannelProvider(TEST_CHANNEL_PROVIDER) + .setChannelProvider( + FixedTransportChannelProvider.create(GrpcTransportChannel.create(testChannel))) .setCredentialsProvider(NoCredentialsProvider.create()); } + + private void shutdownTestPublisher(Publisher publisher) throws InterruptedException { + publisher.shutdown(); + fakeExecutor.advanceTime(Duration.ofSeconds(10)); + assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES)); + } } From d72a5c31b8b03b948a77c30bcbdd00b6f169f27c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 27 Aug 2020 16:54:09 +0000 Subject: [PATCH 0450/2363] chore: release 1.108.3-SNAPSHOT (#324) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0d0fc01c5e9e..6cd1d69c7db5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.2 + 1.108.3-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.2 + 1.90.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.2 + 1.90.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.2 + 1.108.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7d4f513d0dc9..fad9e6705c48 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.2 + 1.108.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.2 + 1.108.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 082c5db61113..97857ffb989c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.2 + 1.90.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.2 + 1.108.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3bd96fce482d..36ce09788f6f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.2 + 1.108.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.2 + 1.90.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.2 + 1.90.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.2 + 1.108.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index fd2ef5a63a56..64124140c472 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.2 + 1.90.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.2 + 1.108.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8d759f124bc0..da3ced12d061 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.2 + 1.108.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 93ffb33cd2d1..d1dc724db59c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.2:1.90.2 -grpc-google-cloud-pubsub-v1:1.90.2:1.90.2 -google-cloud-pubsub:1.108.2:1.108.2 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.2:1.90.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.90.2:1.90.3-SNAPSHOT +google-cloud-pubsub:1.108.2:1.108.3-SNAPSHOT \ No newline at end of file From f1ca6e22a241957f4dfcaa841907545637e844d6 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Tue, 1 Sep 2020 12:35:13 -0700 Subject: [PATCH 0451/2363] samples: subscription detachment (#289) * samples: subscription detachment * nit: println * remove dlq policy --- .../pubsub/DetachSubscriptionExample.java | 59 +++++++++++++++++++ .../pubsub/RemoveDeadLetterPolicyExample.java | 7 +-- .../src/test/java/pubsub/AdminIT.java | 6 ++ .../test/java/pubsub/DeadLetterQueueIT.java | 3 +- 4 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java new file mode 100644 index 000000000000..ac04c1c90275 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java @@ -0,0 +1,59 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_detach_subscription] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class DetachSubscriptionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + // Choose an existing subscription. + String subscriptionId = "your-subscription-id"; + + detachSubscriptionExample(projectId, subscriptionId); + } + + public static void detachSubscriptionExample(String projectId, String subscriptionId) + throws IOException { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + topicAdminClient.detachSubscription( + DetachSubscriptionRequest.newBuilder() + .setSubscription(subscriptionName.toString()) + .build()); + } + + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + Subscription subscription = subscriptionAdminClient.getSubscription(subscriptionName); + if (subscription.getDetached()) { + System.out.println("Subscription is detached."); + } else { + System.out.println("Subscription is NOT detached."); + } + } + } +} +// [END pubsub_detach_subscription] \ No newline at end of file diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java index 842657b08a58..04718d41967b 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java @@ -46,9 +46,6 @@ public static void removeDeadLetterPolicyExample( ProjectSubscriptionName.of(projectId, subscriptionId); TopicName topicName = TopicName.of(projectId, topicId); - System.out.println( - "Before: " + subscriptionAdminClient.getSubscription(subscriptionName).getAllFields()); - // Construct the subscription you expect to have after the request. Here, // values in the required fields (name, topic) help identify the subscription. // No dead letter policy is supplied. @@ -61,9 +58,7 @@ public static void removeDeadLetterPolicyExample( // Construct a field mask to indicate which field to update in the subscription. FieldMask updateMask = FieldMask.newBuilder() - .addPaths("dead_letter_policy.dead_letter_topic") - // A default of 5 is applied upon successful update. - .addPaths("dead_letter_policy.max_delivery_attempts") + .addPaths("dead_letter_policy") .build(); UpdateSubscriptionRequest request = diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index 6aa64f7c83a0..338755e207ac 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -169,6 +169,11 @@ public void testAdmin() throws Exception { assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.consume\""); assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.update\""); + bout.reset(); + // Test subscription detachment. + DetachSubscriptionExample.detachSubscriptionExample(projectId, pullSubscriptionId); + assertThat(bout.toString()).contains("Subscription is detached."); + bout.reset(); // Test create a subscription with ordering CreateSubscriptionWithOrdering.createSubscriptionWithOrderingExample( @@ -176,6 +181,7 @@ public void testAdmin() throws Exception { assertThat(bout.toString()).contains("Created a subscription with ordering"); assertThat(bout.toString()).contains("enable_message_ordering=true"); + bout.reset(); // Test delete subscription. Run twice to delete both pull and push subscriptions. DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pullSubscriptionId); diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java index 73071a6eb156..5b342612e2b8 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java @@ -138,7 +138,6 @@ public void testQuickstart() throws Exception { bout.reset(); // Remove dead letter policy. RemoveDeadLetterPolicyExample.removeDeadLetterPolicyExample(projectId, subscriptionId, topicId); - assertThat(bout.toString()) - .contains("google.pubsub.v1.Subscription.dead_letter_policy=max_delivery_attempts: 5"); + assertThat(bout.toString()).doesNotContain("dead_letter_policy"); } } From 43e7762ae50dcbb85d95039a8fca9ab351367de6 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 2 Sep 2020 09:44:11 -0700 Subject: [PATCH 0452/2363] samples: add comment to regional endpoint (#339) --- .../snippets/src/main/java/pubsub/PublishWithOrderingKeys.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java index 9f77577076d8..d199e7ff8392 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java @@ -47,6 +47,8 @@ public static void publishWithOrderingKeysExample(String projectId, String topic // Create a publisher and set message ordering to true. Publisher publisher = Publisher.newBuilder(topicName) + // Sending messages to the same region ensures they are received in order + // even when multiple publishers are used. .setEndpoint("us-east1-pubsub.googleapis.com:443") .setEnableMessageOrdering(true) .build(); From 0fc3d526fb07706814c1dd89d39e57ac8faf6a1c Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Fri, 4 Sep 2020 08:01:43 -0400 Subject: [PATCH 0453/2363] fix: make subscriberIT test less flaky (#340) * fix: make subscriberIt less flaky --- .../snippets/src/test/java/pubsub/SubscriberIT.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java index be9e4e3d2c94..f69acd8cbec9 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -165,19 +165,19 @@ public void testSubscriber() throws Exception { assertThat(bout.toString()).contains("Data: Hello " + i); } - publishSomeMessages(10); + publishSomeMessages(3); bout.reset(); // Test subscribe synchronously. SubscribeSyncExample.subscribeSyncExample(projectId, subscriptionId, 10); - for (int i = 0; i < 10; i++) { + for (int i = 0; i < 3; i++) { assertThat(bout.toString()).contains("Hello " + i); } - publishSomeMessages(10); + publishSomeMessages(3); bout.reset(); // Test subscribe synchronously with lease management. SubscribeSyncWithLeaseExample.subscribeSyncWithLeaseExample(projectId, subscriptionId, 10); - for (int i = 0; i < 10; i++) { + for (int i = 0; i < 3; i++) { assertThat(bout.toString()).contains("Hello " + i); } } From 750dc74de25d4fb90107245ce58bccc951d9c223 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 4 Sep 2020 14:02:29 +0200 Subject: [PATCH 0454/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v10 (#336) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 7468d0906120..1283feeeab86 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 9.1.0 + 10.0.0 pom import From fe426a7244124eca1ab8abf63fd8a4381787006e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 4 Sep 2020 14:02:50 +0200 Subject: [PATCH 0455/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 (#337) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 36ce09788f6f..4231d47d5a65 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.8.6 + 0.9.0 pom import From 448e3b53b85e03f61adee427df2660d2ac125de6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Sep 2020 13:14:24 +0200 Subject: [PATCH 0456/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.1.1 (#341) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4231d47d5a65..5bdb55de0de2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -148,7 +148,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.0 + 3.1.1 From 16541e7b44e4a85f29a6e57ee593f6da8f5db9ad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Sep 2020 22:04:52 +0200 Subject: [PATCH 0457/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v10.1.0 --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1283feeeab86..65482ee54370 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 10.0.0 + 10.1.0 pom import From df048dc300c9a17e903a587f3becbc78613d3327 Mon Sep 17 00:00:00 2001 From: Stephanie Wang Date: Mon, 14 Sep 2020 14:48:02 -0400 Subject: [PATCH 0458/2363] chore: generate CODEOWNERS from templates (#344) --- java-pubsub/.repo-metadata.json | 1 + 1 file changed, 1 insertion(+) diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 84ee733908da..93da177cf23b 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -11,6 +11,7 @@ "repo": "googleapis/java-pubsub", "repo_short": "java-pubsub", "distribution_name": "com.google.cloud:google-cloud-pubsub", + "codeowner_team": "@googleapis/api-pubsub", "api_id": "pubsub.googleapis.com", "requires_billing": true } \ No newline at end of file From 981ad64194d288f10cbe81b6cd70f41261d7ec8b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 21 Sep 2020 16:34:04 -0700 Subject: [PATCH 0459/2363] chore: regenerate common templates (#345) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b1d26024-52e0-4e26-89cb-23d4e33ffa11/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/CODEOWNERS | 3 +++ java-pubsub/README.md | 7 ++++--- java-pubsub/synth.metadata | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS index 6137bef2a259..63122a26bb33 100644 --- a/java-pubsub/.github/CODEOWNERS +++ b/java-pubsub/.github/CODEOWNERS @@ -4,5 +4,8 @@ # For syntax help see: # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax +# The @googleapis/api-pubsub is the default owner for changes in this repo +**/*.java @googleapis/api-pubsub + # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2a286e2bc247..9a59e2fcfdad 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 9.1.0 + 10.1.0 pom import @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.108.2' +compile 'com.google.cloud:google-cloud-pubsub:1.108.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.1" ``` [//]: # ({x-version-update-end}) @@ -232,6 +232,7 @@ has instructions for running the samples. | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | | Delete Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | | Delete Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | +| Detach Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | | Get Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | | Get Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | | List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index af4f10162b10..17b6bfcaa744 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "dda3079f6043330e38a880164a2ee6ededb7f225" + "sha": "caf8e967e06edc945291d79d95c45220f0ca7bc1" } }, { From cb68cbd443356472f353a39d568d6e4696fba39c Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 22 Sep 2020 11:41:42 -0700 Subject: [PATCH 0460/2363] samples: fix lint (#347) --- .../samples/snippets/src/test/java/pubsub/AdminIT.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index 338755e207ac..42825d63ac1e 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -82,14 +82,16 @@ public void tearDown() throws Exception { subscriptionAdminClient.deleteSubscription(pullSubscriptionName); subscriptionAdminClient.deleteSubscription(pushSubscriptionName); subscriptionAdminClient.deleteSubscription(orderedSubscriptionName); - } catch (NotFoundException e) { + } catch (NotFoundException ignored) { + // ignore this as resources may not have been created } } // Delete the topic if it has not been cleaned. try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { topicAdminClient.deleteTopic(topicName.toString()); - } catch (NotFoundException e) { + } catch (NotFoundException ignored) { + // ignore this as resources may not have been created } System.setOut(null); } From 2be6fb94d4168ec27e116ee8ac2ecda50da4b948 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 22 Sep 2020 12:20:23 -0700 Subject: [PATCH 0461/2363] chore: regenerate templates (#346) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(java_templates): add lint/static analysis presubmit checks for samples * chore(java_templates): add lint/static analysis presubmit checks for samples * chore: fix trailing whitespace Source-Author: Jeff Ching Source-Date: Mon Aug 17 14:29:16 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: c3caf0704f25a0c365f1c315e804a30b87c62a75 Source-Link: https://github.com/googleapis/synthtool/commit/c3caf0704f25a0c365f1c315e804a30b87c62a75 * chore(java_templates): stop running pmd/spotbugs checks for samples This was creating too much noise. We will revisit with other options and/or tune these checks. Source-Author: Jeff Ching Source-Date: Wed Aug 19 12:26:49 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 9602086c6c5b05db77950c7f7495a2a3868f3537 Source-Link: https://github.com/googleapis/synthtool/commit/9602086c6c5b05db77950c7f7495a2a3868f3537 * fix: temporarily disable reporting to unblock releases Source-Author: Stephanie Wang Source-Date: Tue Aug 25 13:05:26 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 968465a1cad496e1292ef4584a054a35f756ff94 Source-Link: https://github.com/googleapis/synthtool/commit/968465a1cad496e1292ef4584a054a35f756ff94 * build(java): switch to release-publish app for notifying GitHub of release status Source-Author: Jeff Ching Source-Date: Wed Aug 26 21:48:06 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 019c7168faa0e56619f792693a8acdb30d6de19b Source-Link: https://github.com/googleapis/synthtool/commit/019c7168faa0e56619f792693a8acdb30d6de19b * build(ci): enable auto-release for dependency-update-only releases Automatically perform a Java client library release when: 1. Only dependency updates are going out in the release since any releases containing bug fixes, build changes or new features should be supervised; 2. There are no outstanding/open dependency update pull requests in the repo. This is to avoid multiple/redundant releases; 3. It is a SNAPSHOT release which is automatically generated post regular release -- this requires no human supervision. Testing done in 5 java-bigquery* client library repos. Example: [chore: release 0.3.4 ](https://github.com/googleapis/java-bigqueryconnection/pull/130) [chore: release 0.3.5-SNAPSHOT](https://github.com/googleapis/java-bigqueryconnection/pull/131) Source-Author: Stephanie Wang Source-Date: Thu Sep 17 15:30:02 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 538a68019eb4a36a0cdfa4021f324dd01b784395 Source-Link: https://github.com/googleapis/synthtool/commit/538a68019eb4a36a0cdfa4021f324dd01b784395 * chore(java): set yoshi-java as default CODEOWNER Source-Author: Jeff Ching Source-Date: Mon Sep 21 09:00:06 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 80003a3de2d8a75f5b47cb2e77e018f7f0f776cc Source-Link: https://github.com/googleapis/synthtool/commit/80003a3de2d8a75f5b47cb2e77e018f7f0f776cc Co-authored-by: Jeff Ching --- java-pubsub/.github/CODEOWNERS | 1 + .../.github/workflows/auto-release.yaml | 69 +++++++++++++++++++ java-pubsub/.github/workflows/samples.yaml | 14 ++++ java-pubsub/.kokoro/release/stage.cfg | 31 +-------- java-pubsub/synth.metadata | 4 +- 5 files changed, 90 insertions(+), 29 deletions(-) create mode 100644 java-pubsub/.github/workflows/auto-release.yaml create mode 100644 java-pubsub/.github/workflows/samples.yaml diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS index 63122a26bb33..0bcf47a666ed 100644 --- a/java-pubsub/.github/CODEOWNERS +++ b/java-pubsub/.github/CODEOWNERS @@ -5,6 +5,7 @@ # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax # The @googleapis/api-pubsub is the default owner for changes in this repo +* @googleapis/yoshi-java @googleapis/api-pubsub **/*.java @googleapis/api-pubsub # The java-samples-reviewers team is the default owner for samples changes diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml new file mode 100644 index 000000000000..d26427e468a4 --- /dev/null +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -0,0 +1,69 @@ +on: + pull_request: +name: auto-release +jobs: + approve: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v3.0.0 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + debug: true + script: | + // only approve PRs from release-please[bot] + if (context.payload.pull_request.user.login !== "release-please[bot]") { + return; + } + + // only approve PRs like "chore: release " + if ( !context.payload.pull_request.title.startsWith("chore: release") ) { + return; + } + + // trigger auto-release when + // 1) it is a SNAPSHOT release (auto-generated post regular release) + // 2) there are dependency updates only + // 3) there are no open dependency update PRs in this repo (to avoid multiple releases) + if ( + context.payload.pull_request.body.includes("Fix") || + context.payload.pull_request.body.includes("Build") || + context.payload.pull_request.body.includes("Documentation") || + context.payload.pull_request.body.includes("BREAKING CHANGES") || + context.payload.pull_request.body.includes("Features") + ) { + console.log( "Not auto-releasing since it is not a dependency-update-only release." ); + return; + } + + const promise = github.pulls.list.endpoint({ + owner: context.repo.owner, + repo: context.repo.repo, + state: 'open' + }); + const open_pulls = await github.paginate(promise) + + if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) { + for ( const pull of open_pulls ) { + if ( pull.title.startsWith("deps: update dependency") ) { + console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." ); + return; + } + } + } + + // approve release PR + await github.pulls.createReview({ + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Rubber stamped release!', + pull_number: context.payload.pull_request.number, + event: 'APPROVE' + }); + + // attach kokoro:force-run and automerge labels + await github.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.payload.pull_request.number, + labels: ['kokoro:force-run', 'automerge'] + }); \ No newline at end of file diff --git a/java-pubsub/.github/workflows/samples.yaml b/java-pubsub/.github/workflows/samples.yaml new file mode 100644 index 000000000000..a1d50073069d --- /dev/null +++ b/java-pubsub/.github/workflows/samples.yaml @@ -0,0 +1,14 @@ +on: + pull_request: +name: samples +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Run checkstyle + run: mvn -P lint --quiet --batch-mode checkstyle:check + working-directory: samples/snippets diff --git a/java-pubsub/.kokoro/release/stage.cfg b/java-pubsub/.kokoro/release/stage.cfg index a27131cf4fe9..587130b55bd4 100644 --- a/java-pubsub/.kokoro/release/stage.cfg +++ b/java-pubsub/.kokoro/release/stage.cfg @@ -13,32 +13,7 @@ action { } } -# Fetch the token needed for reporting release status to GitHub -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "yoshi-automation-github-key" - } - } -} - -# Fetch magictoken to use with Magic Github Proxy -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "releasetool-magictoken" - } - } -} - -# Fetch api key to use with Magic Github Proxy -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "magic-github-proxy-api-key" - } - } +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" } diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 17b6bfcaa744..3fbc234175f9 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f8823dec98277a9516f2fb6fae9f58b3a59a23e1" + "sha": "80003a3de2d8a75f5b47cb2e77e018f7f0f776cc" } } ], @@ -42,7 +42,9 @@ ".github/PULL_REQUEST_TEMPLATE.md", ".github/release-please.yml", ".github/trusted-contribution.yml", + ".github/workflows/auto-release.yaml", ".github/workflows/ci.yaml", + ".github/workflows/samples.yaml", ".kokoro/build.bat", ".kokoro/build.sh", ".kokoro/coerce_logs.sh", From 3e45b68e5dbe5eb14c28cf352534bd71cd1d5d3c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Sep 2020 22:52:03 +0200 Subject: [PATCH 0462/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 (#357) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.9.0` -> `0.10.0` | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.10.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0100-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare091v0100-2020-09-23) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.9.1...v0.10.0) ##### Features - manage error-prone version ([#​147](https://www.github.com/googleapis/java-shared-dependencies/issues/147)) ([0fb3108](https://www.github.com/googleapis/java-shared-dependencies/commit/0fb3108c96abcdef83b5051e842530e6c9934c37)) ##### Dependencies - update google.core.version to v1.93.9 ([#​148](https://www.github.com/googleapis/java-shared-dependencies/issues/148)) ([b2a680e](https://www.github.com/googleapis/java-shared-dependencies/commit/b2a680ec9297136dceb622463672cc554359ba5b)) ##### [0.9.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.9.0...v0.9.1) (2020-09-23) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.32.1 ([#​133](https://www.github.com/googleapis/java-shared-dependencies/issues/133)) ([cde0463](https://www.github.com/googleapis/java-shared-dependencies/commit/cde0463dd15c2a510085a3d5e3ac7b418c2fc3d4)) - update iam.version to v1.0.1 ([#​136](https://www.github.com/googleapis/java-shared-dependencies/issues/136)) ([162e2bd](https://www.github.com/googleapis/java-shared-dependencies/commit/162e2bda35fc3427ce571c6747aae4c9eb5866f6)) ### [`v0.9.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​091-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare090v091-2020-09-23) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.9.0...v0.9.1)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5bdb55de0de2..f200f64b37ad 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.9.0 + 0.10.0 pom import From 85e367340947fb25147f035c813dd150bbe9ba2a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 24 Sep 2020 19:46:13 +0200 Subject: [PATCH 0463/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v11 (#361) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `10.1.0` -> `11.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 65482ee54370..31dd7127b09a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 10.1.0 + 11.0.0 pom import From c11ff95478c3cdbf940d487b1fb7557cb53a9a22 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Mon, 28 Sep 2020 15:58:39 -0700 Subject: [PATCH 0464/2363] samples: add a region tag for docs (#352) * samples: add a region tag for docs * add a region tag --- .../snippets/src/main/java/pubsub/CreateTopicExample.java | 3 +++ .../snippets/src/main/java/pubsub/PublisherExample.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java index 2b99be65d5e6..3417be7c5111 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java @@ -17,6 +17,7 @@ package pubsub; // [START pubsub_create_topic] +// [START pubsub_quickstart_create_topic] import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.Topic; @@ -41,3 +42,5 @@ public static void createTopicExample(String projectId, String topicId) throws I } } // [END pubsub_create_topic] +// [END pubsub_quickstart_create_topic] + diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java index 069c2e4d5e54..e4dc39a897da 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublisherExample.java @@ -17,6 +17,7 @@ package pubsub; // [START pubsub_quickstart_publisher] +// [START pubsub_publish] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.Publisher; @@ -63,3 +64,4 @@ public static void publisherExample(String projectId, String topicId) } } // [END pubsub_quickstart_publisher] +// [END pubsub_publish] From 97630c5a121e669f0482c5f23de985950ac97eee Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Tue, 29 Sep 2020 15:21:41 -0400 Subject: [PATCH 0465/2363] fix: Ensure that messages that are in pending batches for an ordering key are canceled when a previous publish for the ordering keys fails (#366) * feat: Add flow control support to publisher * make suggested fixes * chore: Remove note that ordering keys requires enablements. * feat: Add support for server-side flow control * Revert "chore: Remove note that ordering keys requires enablements." This reverts commit 9c113c3e32c28cf0d1de8aad3409b5c509fb1ada. * fix: Fix import order * fix: Make error message more clear about where ordering must be enabled when publishing. * fix: Ensure that messages that are in pending batches for an ordering key are canceled when a previous publish for the ordering keys fails. --- .../com/google/cloud/pubsub/v1/Publisher.java | 20 ++++++++ .../pubsub/v1/SequentialExecutorService.java | 4 ++ .../cloud/pubsub/v1/PublisherImplTest.java | 51 +++++++++++++++++++ 3 files changed, 75 insertions(+) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 6a9f68659695..5779b1fe7d00 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -256,6 +256,11 @@ public ApiFuture publish(PubsubMessage message) { List batchesToSend; messagesBatchLock.lock(); try { + if (sequentialExecutor.keyHasError(orderingKey)) { + outstandingPublish.publishResult.setException( + SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION); + return outstandingPublish.publishResult; + } MessagesBatch messagesBatch = messagesBatches.get(orderingKey); if (messagesBatch == null) { messagesBatch = new MessagesBatch(batchingSettings, orderingKey); @@ -462,6 +467,21 @@ public void onSuccess(PublishResponse result) { @Override public void onFailure(Throwable t) { try { + if (outstandingBatch.orderingKey != null && !outstandingBatch.orderingKey.isEmpty()) { + messagesBatchLock.lock(); + try { + MessagesBatch messagesBatch = messagesBatches.get(outstandingBatch.orderingKey); + if (messagesBatch != null) { + for (OutstandingPublish outstanding : messagesBatch.messages) { + outstanding.publishResult.setException( + SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION); + } + messagesBatches.remove(outstandingBatch.orderingKey); + } + } finally { + messagesBatchLock.unlock(); + } + } outstandingBatch.onFailure(t); } finally { messagesWaiter.incrementPendingCount(-outstandingBatch.size()); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java index 2929218506e6..4866e6be4b53 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java @@ -243,6 +243,10 @@ public void cancel(Throwable e) { return future; } + boolean keyHasError(String key) { + return keysWithErrors.contains(key); + } + void resumePublish(String key) { keysWithErrors.remove(key); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index d7687ae07167..e5a785aed7af 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -566,6 +566,57 @@ public void testResumePublish() throws Exception { shutdownTestPublisher(publisher); } + @Test + public void testPublishThrowExceptionForUnsubmittedOrderingKeyMessage() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setExecutorProvider(SINGLE_THREAD_EXECUTOR) + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(2L) + .setDelayThreshold(Duration.ofSeconds(500)) + .build()) + .setEnableMessageOrdering(true) + .build(); + + // Send two messages that will fulfill the first batch, which will return a failure. + testPublisherServiceImpl.addPublishError(new StatusException(Status.INVALID_ARGUMENT)); + ApiFuture publishFuture1 = sendTestMessageWithOrderingKey(publisher, "A", "a"); + ApiFuture publishFuture2 = sendTestMessageWithOrderingKey(publisher, "B", "a"); + + // A third message will fail because the first attempt to publish failed. + ApiFuture publishFuture3 = sendTestMessageWithOrderingKey(publisher, "C", "a"); + + try { + publishFuture1.get(); + fail("Should have failed."); + } catch (ExecutionException e) { + } + + try { + publishFuture2.get(); + fail("Should have failed."); + } catch (ExecutionException e) { + } + + try { + publishFuture3.get(); + fail("Should have failed."); + } catch (ExecutionException e) { + assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause()); + } + + // A subsequent attempt fails immediately. + ApiFuture publishFuture4 = sendTestMessageWithOrderingKey(publisher, "D", "a"); + try { + publishFuture4.get(); + fail("Should have failed."); + } catch (ExecutionException e) { + assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause()); + } + } + private ApiFuture sendTestMessageWithOrderingKey( Publisher publisher, String data, String orderingKey) { return publisher.publish( From f37b1027f2efadcdc5050b71ad32336d03192e01 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Tue, 29 Sep 2020 16:14:20 -0400 Subject: [PATCH 0466/2363] fix: Only check keyHasError if ordering key is non-empty (#367) * feat: Add flow control support to publisher * make suggested fixes * chore: Remove note that ordering keys requires enablements. * feat: Add support for server-side flow control * Revert "chore: Remove note that ordering keys requires enablements." This reverts commit 9c113c3e32c28cf0d1de8aad3409b5c509fb1ada. * fix: Fix import order * fix: Make error message more clear about where ordering must be enabled when publishing. * fix: Ensure that messages that are in pending batches for an ordering key are canceled when a previous publish for the ordering keys fails. * fix: Only check keyHasError if ordering keys is non-empty --- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 5779b1fe7d00..07a550496586 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -256,7 +256,7 @@ public ApiFuture publish(PubsubMessage message) { List batchesToSend; messagesBatchLock.lock(); try { - if (sequentialExecutor.keyHasError(orderingKey)) { + if (!orderingKey.isEmpty() && sequentialExecutor.keyHasError(orderingKey)) { outstandingPublish.publishResult.setException( SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION); return outstandingPublish.publishResult; From 636a1c2b4b5030ae04126160354dc1891dc32bd9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 29 Sep 2020 16:10:07 -0700 Subject: [PATCH 0467/2363] build(java): use yoshi-approver token for auto-approve (#359) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/077dcd72-1c58-4813-b798-2143cc447b75/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/916c10e8581804df2b48a0f0457d848f3faa582e --- java-pubsub/.github/workflows/auto-release.yaml | 4 ++-- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index d26427e468a4..c8494910553a 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -7,7 +7,7 @@ jobs: steps: - uses: actions/github-script@v3.0.0 with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true script: | // only approve PRs from release-please[bot] @@ -66,4 +66,4 @@ jobs: repo: context.repo.repo, issue_number: context.payload.pull_request.number, labels: ['kokoro:force-run', 'automerge'] - }); \ No newline at end of file + }); diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 3fbc234175f9..79ab0e86296d 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "caf8e967e06edc945291d79d95c45220f0ca7bc1" + "sha": "3b3616c524059fb8a87bf30a66c481000046132a" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "80003a3de2d8a75f5b47cb2e77e018f7f0f776cc" + "sha": "916c10e8581804df2b48a0f0457d848f3faa582e" } } ], From 5775c731b289389e57452fe9ffcbd1fc5589cf0f Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Tue, 29 Sep 2020 16:24:42 -0700 Subject: [PATCH 0468/2363] chore: add repo settings configuration (#358) --- java-pubsub/.github/sync-repo-settings.yaml | 49 +++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 java-pubsub/.github/sync-repo-settings.yaml diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml new file mode 100644 index 000000000000..6bddd18eac90 --- /dev/null +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -0,0 +1,49 @@ + +# Whether or not rebase-merging is enabled on this repository. +# Defaults to `true` +rebaseMergeAllowed: false + +# Whether or not squash-merging is enabled on this repository. +# Defaults to `true` +squashMergeAllowed: true + +# Whether or not PRs are merged with a merge commit on this repository. +# Defaults to `false` +mergeCommitAllowed: false + +# Rules for master branch protection +branchProtectionRules: +# Identifies the protection rule pattern. Name of the branch to be protected. +# Defaults to `master` +- pattern: master + # Can admins overwrite branch protection. + # Defaults to `true` + isAdminEnforced: true + # Number of approving reviews required to update matching branches. + # Defaults to `1` + requiredApprovingReviewCount: 1 + # Are reviews from code owners required to update matching branches. + # Defaults to `false` + requiresCodeOwnerReviews: true + # Require up to date branches + requiresStrictStatusChecks: false + # List of required status check contexts that must pass for commits to be accepted to matching branches. + requiredStatusCheckContexts: + - "dependencies (8)" + - "dependencies (11)" + - "linkage-monitor" + - "lint" + - "clirr" + - "units (7)" + - "units (8)" + - "units (11)" + - "Kokoro - Test: Integration" + - "cla/google" +# List of explicit permissions to add (additive only) +permissionRules: +- team: yoshi-admins + permission: admin +- team: yoshi-java-admins + permission: admin +- team: yoshi-java + permission: push \ No newline at end of file From a6cb699df1e872fcc5b50fa096ac3a000b8d755f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 30 Sep 2020 09:55:56 -0700 Subject: [PATCH 0469/2363] chore: regenerate templates * chore(ci): skip autorelease workflow on non-release PRs Source-Author: Stephanie Wang Source-Date: Thu Sep 24 16:57:32 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 95dbe1bee3c7f7e52ddb24a54c37080620e0d1a2 Source-Link: https://github.com/googleapis/synthtool/commit/95dbe1bee3c7f7e52ddb24a54c37080620e0d1a2 * chore(ci): verify autorelease release PR content has changes Source-Author: Stephanie Wang Source-Date: Thu Sep 24 18:06:14 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: da29da32b3a988457b49ae290112b74f14b713cc Source-Link: https://github.com/googleapis/synthtool/commit/da29da32b3a988457b49ae290112b74f14b713cc * chore(java): use separate autosynth job for README Split java README generation into a separate, per-repo continuous job running from Kokoro. We now generate a new job that runs on commits to the primary branch that strictly manages the README.md. This should prevent us from seeing the contextless autosynth PRs which are caused by non-proto/template upstream changes. Source-Author: Jeff Ching Source-Date: Tue Sep 29 15:48:03 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: e6168630be3e31eede633ba2c6f1cd64248dec1c Source-Link: https://github.com/googleapis/synthtool/commit/e6168630be3e31eede633ba2c6f1cd64248dec1c --- java-pubsub/.github/readme/synth.py | 19 +++++++ .../.github/workflows/auto-release.yaml | 19 +++++++ java-pubsub/.kokoro/continuous/readme.cfg | 55 +++++++++++++++++++ java-pubsub/.kokoro/readme.sh | 36 ++++++++++++ java-pubsub/synth.metadata | 8 ++- 5 files changed, 134 insertions(+), 3 deletions(-) create mode 100644 java-pubsub/.github/readme/synth.py create mode 100644 java-pubsub/.kokoro/continuous/readme.cfg create mode 100644 java-pubsub/.kokoro/readme.sh diff --git a/java-pubsub/.github/readme/synth.py b/java-pubsub/.github/readme/synth.py new file mode 100644 index 000000000000..7b48cc28d361 --- /dev/null +++ b/java-pubsub/.github/readme/synth.py @@ -0,0 +1,19 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""This script is used to synthesize generated the README for this library.""" + +from synthtool.languages import java + +java.custom_templates(["java_library/README.md"]) diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index c8494910553a..bc1554aecba2 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -4,6 +4,7 @@ name: auto-release jobs: approve: runs-on: ubuntu-latest + if: contains(github.head_ref, 'release-v') steps: - uses: actions/github-script@v3.0.0 with: @@ -20,6 +21,24 @@ jobs: return; } + // only approve PRs with pom.xml and versions.txt changes + const filesPromise = github.pulls.listFiles.endpoint({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.payload.pull_request.number, + }); + const changed_files = await github.paginate(filesPromise) + + if ( changed_files.length < 1 ) { + console.log( "Not proceeding since PR is empty!" ) + return; + } + + if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) { + console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" ) + return; + } + // trigger auto-release when // 1) it is a SNAPSHOT release (auto-generated post regular release) // 2) there are dependency updates only diff --git a/java-pubsub/.kokoro/continuous/readme.cfg b/java-pubsub/.kokoro/continuous/readme.cfg new file mode 100644 index 000000000000..cc3ada374f2f --- /dev/null +++ b/java-pubsub/.kokoro/continuous/readme.cfg @@ -0,0 +1,55 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/python-multi" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-pubsub/.kokoro/readme.sh" +} + +# Build logs will be here +action { + define_artifacts { + regex: "**/*sponge_log.xml" + regex: "**/*sponge_log.log" + } +} + +# The github token is stored here. +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "yoshi-automation-github-key" + # TODO(theacodes): remove this after secrets have globally propagated + backend_type: FASTCONFIGPUSH + } + } +} + +# Common env vars for all repositories and builds. +env_vars: { + key: "GITHUB_USER" + value: "yoshi-automation" +} +env_vars: { + key: "GITHUB_EMAIL" + value: "yoshi-automation@google.com" +} diff --git a/java-pubsub/.kokoro/readme.sh b/java-pubsub/.kokoro/readme.sh new file mode 100644 index 000000000000..7c518941ff3a --- /dev/null +++ b/java-pubsub/.kokoro/readme.sh @@ -0,0 +1,36 @@ +#!/bin/bash +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +cd ${KOKORO_ARTIFACTS_DIR}/github/java-pubsub + +# Disable buffering, so that the logs stream through. +export PYTHONUNBUFFERED=1 + +# Kokoro exposes this as a file, but the scripts expect just a plain variable. +export GITHUB_TOKEN=$(cat ${KOKORO_KEYSTORE_DIR}/73713_yoshi-automation-github-key) + +# Setup git credentials +echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials +git config --global credential.helper 'store --file ~/.git-credentials' + +python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool +python3.6 -m autosynth.synth \ + --repository=googleapis/java-pubsub \ + --synth-file-name=.github/readme/synth.py \ + --metadata-path=.github/readme/synth.metadata \ + --pr-title="chore: regenerate README" \ + --branch-suffix="readme" \ No newline at end of file diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 79ab0e86296d..84a6e124549c 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "3b3616c524059fb8a87bf30a66c481000046132a" + "sha": "8cb744cbf3edebd99668e6d17a9601858092aae6" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "916c10e8581804df2b48a0f0457d848f3faa582e" + "sha": "e6168630be3e31eede633ba2c6f1cd64248dec1c" } } ], @@ -40,6 +40,7 @@ ".github/ISSUE_TEMPLATE/feature_request.md", ".github/ISSUE_TEMPLATE/support_request.md", ".github/PULL_REQUEST_TEMPLATE.md", + ".github/readme/synth.py", ".github/release-please.yml", ".github/trusted-contribution.yml", ".github/workflows/auto-release.yaml", @@ -52,6 +53,7 @@ ".kokoro/common.sh", ".kokoro/continuous/common.cfg", ".kokoro/continuous/java8.cfg", + ".kokoro/continuous/readme.cfg", ".kokoro/dependencies.sh", ".kokoro/linkage-monitor.sh", ".kokoro/nightly/common.cfg", @@ -75,6 +77,7 @@ ".kokoro/presubmit/linkage-monitor.cfg", ".kokoro/presubmit/lint.cfg", ".kokoro/presubmit/samples.cfg", + ".kokoro/readme.sh", ".kokoro/release/bump_snapshot.cfg", ".kokoro/release/common.cfg", ".kokoro/release/common.sh", @@ -92,7 +95,6 @@ "CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "LICENSE", - "README.md", "codecov.yaml", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java", From 18a7b4140f2cf27cbac6904b621f2d20cbd96327 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 30 Sep 2020 16:54:03 -0700 Subject: [PATCH 0470/2363] build: rename samples lint workflow to checkstyle to disambiguate branch protection with unit lint (#372) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/0f0d99de-f703-47b5-b2c7-747cbf9b07bd/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/8a7a3021fe97aa0a3641db642fe2b767f1c8110f --- java-pubsub/.github/workflows/samples.yaml | 2 +- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/samples.yaml b/java-pubsub/.github/workflows/samples.yaml index a1d50073069d..c46230a78c38 100644 --- a/java-pubsub/.github/workflows/samples.yaml +++ b/java-pubsub/.github/workflows/samples.yaml @@ -2,7 +2,7 @@ on: pull_request: name: samples jobs: - lint: + checkstyle: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 84a6e124549c..0d9ab722b292 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "8cb744cbf3edebd99668e6d17a9601858092aae6" + "sha": "5ed70e2f5d4d7c44fcf96feee499e9fb59e5546f" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "e6168630be3e31eede633ba2c6f1cd64248dec1c" + "sha": "8a7a3021fe97aa0a3641db642fe2b767f1c8110f" } } ], From 2bef295c398a65d18a4e1643dcdc8fbae8aeb478 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Oct 2020 18:52:06 +0200 Subject: [PATCH 0471/2363] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.21 (#362) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](com/google/cloud/samples/shared-configuration) | patch | `1.0.18` -> `1.0.21` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 078c3d50f22d..331f50703ae0 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index a962f9780465..aee27735ff8a 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -33,7 +33,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index da3ced12d061..89a20c6704de 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 31dd7127b09a..54643aa91924 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 From 5c4f59f1fb2545644dee62f722c76099b6247832 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2020 08:32:08 -0700 Subject: [PATCH 0472/2363] chore: release 1.108.3 (#331) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 16 ++++++++++++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 36 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 44efc695800f..beff31460164 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +### [1.108.3](https://www.github.com/googleapis/java-pubsub/compare/v1.108.2...v1.108.3) (2020-10-02) + + +### Bug Fixes + +* ensure proper cleanup of publisher in tests ([#310](https://www.github.com/googleapis/java-pubsub/issues/310)) ([b2b2f86](https://www.github.com/googleapis/java-pubsub/commit/b2b2f8694b925aad95e891cbd0d89426989fec59)) +* Ensure that messages that are in pending batches for an ordering key are canceled when a previous publish for the ordering keys fails ([#366](https://www.github.com/googleapis/java-pubsub/issues/366)) ([7cdf8bc](https://www.github.com/googleapis/java-pubsub/commit/7cdf8bcf71a6c141f8b751b41fb2e055a75a4022)) +* make subscriberIT test less flaky ([#340](https://www.github.com/googleapis/java-pubsub/issues/340)) ([5d4f534](https://www.github.com/googleapis/java-pubsub/commit/5d4f5345b13171a47f022d34d39609c2f4329069)) +* Only check keyHasError if ordering key is non-empty ([#367](https://www.github.com/googleapis/java-pubsub/issues/367)) ([8b2d0b7](https://www.github.com/googleapis/java-pubsub/commit/8b2d0b73a46e6b91795ad05a8dd0f626249c4f30)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#357](https://www.github.com/googleapis/java-pubsub/issues/357)) ([3b3616c](https://www.github.com/googleapis/java-pubsub/commit/3b3616c524059fb8a87bf30a66c481000046132a)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#337](https://www.github.com/googleapis/java-pubsub/issues/337)) ([8cf77ee](https://www.github.com/googleapis/java-pubsub/commit/8cf77ee3b31356f342942a9ffaa61db2d0686769)) + ### [1.108.2](https://www.github.com/googleapis/java-pubsub/compare/v1.108.1...v1.108.2) (2020-08-21) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 9a59e2fcfdad..19076360a1b7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.108.1' +compile 'com.google.cloud:google-cloud-pubsub:1.108.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.3" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6cd1d69c7db5..744cb5254a6e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.3-SNAPSHOT + 1.108.3 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.3-SNAPSHOT + 1.90.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.3-SNAPSHOT + 1.90.3 com.google.cloud google-cloud-pubsub - 1.108.3-SNAPSHOT + 1.108.3
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index fad9e6705c48..e9dc2258d741 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.3-SNAPSHOT + 1.108.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.3-SNAPSHOT + 1.108.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 97857ffb989c..40aa0b950e51 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.3-SNAPSHOT + 1.90.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.3-SNAPSHOT + 1.108.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f200f64b37ad..d172fd516e8e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.3-SNAPSHOT + 1.108.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.3-SNAPSHOT + 1.90.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.3-SNAPSHOT + 1.90.3 com.google.cloud google-cloud-pubsub - 1.108.3-SNAPSHOT + 1.108.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 64124140c472..24e74d4f9f63 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.3-SNAPSHOT + 1.90.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.3-SNAPSHOT + 1.108.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 89a20c6704de..14f83deac905 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.3-SNAPSHOT + 1.108.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d1dc724db59c..7847f3c43a3c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.2:1.90.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.90.2:1.90.3-SNAPSHOT -google-cloud-pubsub:1.108.2:1.108.3-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.3:1.90.3 +grpc-google-cloud-pubsub-v1:1.90.3:1.90.3 +google-cloud-pubsub:1.108.3:1.108.3 \ No newline at end of file From a9c774462e06577d74774b8fa4c63f4775de00cb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2020 08:12:17 +0000 Subject: [PATCH 0473/2363] chore: release 1.108.4-SNAPSHOT (#375) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 744cb5254a6e..2598406fdf9e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.3 + 1.108.4-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.3 + 1.90.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.3 + 1.90.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.3 + 1.108.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e9dc2258d741..3230d3ae8d31 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.3 + 1.108.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.3 + 1.108.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 40aa0b950e51..3840dfd10687 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.3 + 1.90.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.3 + 1.108.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d172fd516e8e..efd73d924f2b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.3 + 1.108.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.3 + 1.90.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.3 + 1.90.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.3 + 1.108.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 24e74d4f9f63..b7652184b7ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.3 + 1.90.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.3 + 1.108.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 14f83deac905..f463da68e50a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.3 + 1.108.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7847f3c43a3c..fef6404262ea 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.3:1.90.3 -grpc-google-cloud-pubsub-v1:1.90.3:1.90.3 -google-cloud-pubsub:1.108.3:1.108.3 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.3:1.90.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.90.3:1.90.4-SNAPSHOT +google-cloud-pubsub:1.108.3:1.108.4-SNAPSHOT \ No newline at end of file From 08a139c07933975360eb2d74d9e762a3a4e79aaf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 6 Oct 2020 22:08:32 +0200 Subject: [PATCH 0474/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v12 (#376) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `11.0.0` -> `12.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 54643aa91924..1efd104b418a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 11.0.0 + 12.0.0 pom import From 6a1c8a6a33333045aba2577c8aece8685b0ef184 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 8 Oct 2020 14:53:52 -0700 Subject: [PATCH 0475/2363] build(java): readme.sh should be executable (#378) Source-Author: Jeff Ching Source-Date: Wed Sep 30 13:20:04 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 0762e8ee2ec21cdfc4d82020b985a104feb0453b Source-Link: https://github.com/googleapis/synthtool/commit/0762e8ee2ec21cdfc4d82020b985a104feb0453b --- java-pubsub/.kokoro/readme.sh | 0 java-pubsub/synth.metadata | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 java-pubsub/.kokoro/readme.sh diff --git a/java-pubsub/.kokoro/readme.sh b/java-pubsub/.kokoro/readme.sh old mode 100644 new mode 100755 diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 0d9ab722b292..ac037e9ae37d 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "5ed70e2f5d4d7c44fcf96feee499e9fb59e5546f" + "sha": "6c2cbb7286e84306b19bce2d73d892ef034aa017" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8a7a3021fe97aa0a3641db642fe2b767f1c8110f" + "sha": "0762e8ee2ec21cdfc4d82020b985a104feb0453b" } } ], From 1f626fbc4d196dd3736a9ac72d4bca0dcb913593 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Oct 2020 00:00:10 +0200 Subject: [PATCH 0476/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.108.3 (#374) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | patch | `1.108.1` -> `1.108.3` | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.108.3`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11083-httpswwwgithubcomgoogleapisjava-pubsubcomparev11082v11083-2020-10-02) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.108.1...v1.108.3)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 331f50703ae0..ffa8971ca977 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.108.1 + 1.108.3 From 67ed32a5769b0901448068585babf1736de05138 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 8 Oct 2020 16:54:21 -0700 Subject: [PATCH 0477/2363] chore: regenerate README (#379) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-10-08 21:55:55,073 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-10-08 21:55:56,028 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/e406cfbe-f881-47cf-8da9-62e058d1ab12/targets - [ ] To automatically regenerate this PR, check this box. --- .../readme/synth.metadata/synth.metadata | 18 ++++++++++++++++++ java-pubsub/README.md | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 java-pubsub/.github/readme/synth.metadata/synth.metadata diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata new file mode 100644 index 000000000000..cf0a11c4e9da --- /dev/null +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -0,0 +1,18 @@ +{ + "sources": [ + { + "git": { + "name": ".", + "remote": "https://github.com/googleapis/java-pubsub.git", + "sha": "234505066757de6a391afa747e260d48a9b83fff" + } + }, + { + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "b6164c26a111f7f587099d31253abb96b5737bb2" + } + } + ] +} \ No newline at end of file diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 19076360a1b7..3d0278c753a3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 10.1.0 + 12.0.0 pom import From 578f3a0912a41a9dbc8a10fb75827fa1d5ec26f3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Oct 2020 18:59:07 +0200 Subject: [PATCH 0478/2363] test(deps): update dependency junit:junit to v4.13.1 --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index efd73d924f2b..ffd9bea23914 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -101,7 +101,7 @@ junit junit - 4.13 + 4.13.1 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ffa8971ca977..8c18fd1bc4e5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -51,7 +51,7 @@ junit junit - 4.13 + 4.13.1 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f463da68e50a..186d4d906e0d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -50,7 +50,7 @@ junit junit - 4.13 + 4.13.1 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1efd104b418a..02d64c7f066c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -62,7 +62,7 @@ junit junit - 4.13 + 4.13.1 test From fe6739949c3c95640eefc3c8be487d7577a69d5a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Oct 2020 19:46:02 +0200 Subject: [PATCH 0479/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 (#377) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | patch | `0.10.0` -> `0.10.2` | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.10.2`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0102-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0101v0102-2020-10-08) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.10.1...v0.10.2) ### [`v0.10.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0101-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0100v0101-2020-10-06) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.10.0...v0.10.1)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ffd9bea23914..52258776ce86 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.10.0 + 0.10.2 pom import From d76d3ce35bf0247dd4b43ff1791054b9f122b80b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Oct 2020 17:58:04 +0000 Subject: [PATCH 0480/2363] chore: release 1.108.4 (#383) :robot: I have created a release \*beep\* \*boop\* --- ### [1.108.4](https://www.github.com/googleapis/java-pubsub/compare/v1.108.3...v1.108.4) (2020-10-12) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#377](https://www.github.com/googleapis/java-pubsub/issues/377)) ([fe67399](https://www.github.com/googleapis/java-pubsub/commit/fe6739949c3c95640eefc3c8be487d7577a69d5a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 27 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index beff31460164..e151d0142973 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.108.4](https://www.github.com/googleapis/java-pubsub/compare/v1.108.3...v1.108.4) (2020-10-12) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#377](https://www.github.com/googleapis/java-pubsub/issues/377)) ([5e76466](https://www.github.com/googleapis/java-pubsub/commit/5e7646640c28b019dbfbd4073420f9358993ef85)) + ### [1.108.3](https://www.github.com/googleapis/java-pubsub/compare/v1.108.2...v1.108.3) (2020-10-02) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3d0278c753a3..1e94dea8fc56 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.108.3' +compile 'com.google.cloud:google-cloud-pubsub:1.108.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.4" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2598406fdf9e..58aeaa1be56c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.4-SNAPSHOT + 1.108.4 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.4-SNAPSHOT + 1.90.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.4-SNAPSHOT + 1.90.4 com.google.cloud google-cloud-pubsub - 1.108.4-SNAPSHOT + 1.108.4
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3230d3ae8d31..4ff6b71fcbd7 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.4-SNAPSHOT + 1.108.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.4-SNAPSHOT + 1.108.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3840dfd10687..9681083d626a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.4-SNAPSHOT + 1.90.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.4-SNAPSHOT + 1.108.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 52258776ce86..b5a3b48b8de2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.4-SNAPSHOT + 1.108.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.4-SNAPSHOT + 1.90.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.4-SNAPSHOT + 1.90.4 com.google.cloud google-cloud-pubsub - 1.108.4-SNAPSHOT + 1.108.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b7652184b7ee..db40f944f73a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.4-SNAPSHOT + 1.90.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.4-SNAPSHOT + 1.108.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 186d4d906e0d..ba65118d89bc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.4-SNAPSHOT + 1.108.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index fef6404262ea..1517ce0d833e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.3:1.90.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.90.3:1.90.4-SNAPSHOT -google-cloud-pubsub:1.108.3:1.108.4-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.4:1.90.4 +grpc-google-cloud-pubsub-v1:1.90.4:1.90.4 +google-cloud-pubsub:1.108.4:1.108.4 \ No newline at end of file From b4184ce39514bff334a64234442cde8cd94df589 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2020 08:12:04 +0000 Subject: [PATCH 0481/2363] chore: release 1.108.5-SNAPSHOT (#385) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 58aeaa1be56c..e9360c155005 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.4 + 1.108.5-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.4 + 1.90.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.4 + 1.90.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.4 + 1.108.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4ff6b71fcbd7..8c1e50941bd9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.4 + 1.108.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.4 + 1.108.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9681083d626a..c70432065cce 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.4 + 1.90.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.4 + 1.108.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b5a3b48b8de2..255e57a734a1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.4 + 1.108.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.4 + 1.90.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.4 + 1.90.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.4 + 1.108.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index db40f944f73a..14193cb296f8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.4 + 1.90.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.4 + 1.108.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ba65118d89bc..9216365d06fb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.4 + 1.108.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1517ce0d833e..f54a69653394 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.4:1.90.4 -grpc-google-cloud-pubsub-v1:1.90.4:1.90.4 -google-cloud-pubsub:1.108.4:1.108.4 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.4:1.90.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.90.4:1.90.5-SNAPSHOT +google-cloud-pubsub:1.108.4:1.108.5-SNAPSHOT \ No newline at end of file From 75339dca9b8467b4f8e5b6e163b3e92b63c76c03 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 14 Oct 2020 09:18:22 -0700 Subject: [PATCH 0482/2363] ci(java): suggest formatting fixes (#388) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ff736ed8-8d0e-4c9d-806a-bc099c87a6f6/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/b65ef07d99946d23e900ef2cc490274a16edd336 --- java-pubsub/.github/workflows/formatting.yaml | 25 +++++++++++++++++++ java-pubsub/synth.metadata | 5 ++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 java-pubsub/.github/workflows/formatting.yaml diff --git a/java-pubsub/.github/workflows/formatting.yaml b/java-pubsub/.github/workflows/formatting.yaml new file mode 100644 index 000000000000..d4d367cfce03 --- /dev/null +++ b/java-pubsub/.github/workflows/formatting.yaml @@ -0,0 +1,25 @@ +on: + pull_request_target: + types: [opened, synchronize] + branches: + - master +name: format +jobs: + format-code: + runs-on: ubuntu-latest + env: + ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }} + steps: + - uses: actions/checkout@v2 + with: + ref: ${{github.event.pull_request.head.ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} + - uses: actions/setup-java@v1 + with: + java-version: 11 + - run: "mvn com.coveo:fmt-maven-plugin:format" + - uses: googleapis/code-suggester@v1.8.0 + with: + command: review + pull_number: ${{ github.event.pull_request.number }} + git_dir: '.' diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index ac037e9ae37d..d1c0f6effd10 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "6c2cbb7286e84306b19bce2d73d892ef034aa017" + "sha": "3dc67db7f5213ea2543e52f21cb2eba6a75a9126" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0762e8ee2ec21cdfc4d82020b985a104feb0453b" + "sha": "b65ef07d99946d23e900ef2cc490274a16edd336" } } ], @@ -45,6 +45,7 @@ ".github/trusted-contribution.yml", ".github/workflows/auto-release.yaml", ".github/workflows/ci.yaml", + ".github/workflows/formatting.yaml", ".github/workflows/samples.yaml", ".kokoro/build.bat", ".kokoro/build.sh", From 5f8a86c760fbeb18d7a929de9ec09e23fb29fcb3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Oct 2020 19:38:52 +0200 Subject: [PATCH 0483/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v12.1.0 (#389) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 02d64c7f066c..2ed3c4228e7e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 12.0.0 + 12.1.0 pom import From ea4a03cb1e71c05d376ea5ac8045545230e13268 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 16 Oct 2020 18:14:16 +0200 Subject: [PATCH 0484/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.9.3 (#390) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | patch | `0.9.2` -> `0.9.3` | --- ### Release Notes
    googleapis/java-shared-config ### [`v0.9.3`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​093-httpswwwgithubcomgoogleapisjava-shared-configcomparev092v093-2020-10-15) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.9.2...v0.9.3)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e9360c155005..c91c40554008 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.9.2 + 0.9.3 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 255e57a734a1..74022774bebe 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.9.2 + 0.9.3 From bd3b8fc4f03573d24919fc0be9c91dd0da579650 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Oct 2020 00:36:26 +0200 Subject: [PATCH 0485/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 (#392) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.10.2` -> `0.12.1` | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.12.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0121-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0120v0121-2020-10-16) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.12.0...v0.12.1) ### [`v0.12.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0120-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0110v0120-2020-10-15) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.11.0...v0.12.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.30.11 ([#​169](https://www.github.com/googleapis/java-shared-dependencies/issues/169)) ([a1b18d1](https://www.github.com/googleapis/java-shared-dependencies/commit/a1b18d1838c2ceca882615d574ab5d0245794820)) - update dependency com.google.auth:google-auth-library-bom to v0.22.0 ([#​171](https://www.github.com/googleapis/java-shared-dependencies/issues/171)) ([0c7635a](https://www.github.com/googleapis/java-shared-dependencies/commit/0c7635a82d922971ae6aac18dc2ee1879e017516)) ### [`v0.11.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0110-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0102v0110-2020-10-13) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.10.2...v0.11.0) ##### Dependencies - update dependency com.google.http-client:google-http-client-bom to v1.37.0 ([#​166](https://www.github.com/googleapis/java-shared-dependencies/issues/166)) ([5721225](https://www.github.com/googleapis/java-shared-dependencies/commit/572122574ce8452b6a0fc6df919e9ce2d8ffd2ce)) - update dependency io.grpc:grpc-bom to v1.32.2 ([#​165](https://www.github.com/googleapis/java-shared-dependencies/issues/165)) ([b70ddb0](https://www.github.com/googleapis/java-shared-dependencies/commit/b70ddb00a3be97536cdd80bd57fe6bca1b0973e2)) ##### [0.10.2](https://www.github.com/googleapis/java-shared-dependencies/compare/0.10.1...v0.10.2) (2020-10-08) ##### Dependencies - update dependency org.threeten:threetenbp to v1.4.5 ([#​162](https://www.github.com/googleapis/java-shared-dependencies/issues/162)) ([54eccb5](https://www.github.com/googleapis/java-shared-dependencies/commit/54eccb533353ddfe537a7e069a696a3f0f70f211)) ##### [0.10.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.10.0...v0.10.1) (2020-10-06) ##### Dependencies - update gax.version to v1.59.1 ([#​159](https://www.github.com/googleapis/java-shared-dependencies/issues/159)) ([7c84443](https://www.github.com/googleapis/java-shared-dependencies/commit/7c84443db92e1d910590fa89c2e35b14613e7eba))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 74022774bebe..b660139517c9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.10.2 + 0.12.1 pom import From 49c5a83be809c1d8323bebdba0bdf652c92f515a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 19 Oct 2020 23:00:06 +0000 Subject: [PATCH 0486/2363] chore: release 1.108.5 (#394) :robot: I have created a release \*beep\* \*boop\* --- ### [1.108.5](https://www.github.com/googleapis/java-pubsub/compare/v1.108.4...v1.108.5) (2020-10-19) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#392](https://www.github.com/googleapis/java-pubsub/issues/392)) ([bd3b8fc](https://www.github.com/googleapis/java-pubsub/commit/bd3b8fc4f03573d24919fc0be9c91dd0da579650)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 27 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index e151d0142973..5882fde7f8a6 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.108.5](https://www.github.com/googleapis/java-pubsub/compare/v1.108.4...v1.108.5) (2020-10-19) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#392](https://www.github.com/googleapis/java-pubsub/issues/392)) ([1a0d7e9](https://www.github.com/googleapis/java-pubsub/commit/1a0d7e98a40298b139cfddbd9e044dc541296ab5)) + ### [1.108.4](https://www.github.com/googleapis/java-pubsub/compare/v1.108.3...v1.108.4) (2020-10-12) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1e94dea8fc56..6d02955a3b98 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.108.4' +compile 'com.google.cloud:google-cloud-pubsub:1.108.5' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.5" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c91c40554008..5b18f14845b6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.5-SNAPSHOT + 1.108.5 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.5-SNAPSHOT + 1.90.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.5-SNAPSHOT + 1.90.5 com.google.cloud google-cloud-pubsub - 1.108.5-SNAPSHOT + 1.108.5
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8c1e50941bd9..99d7610897ca 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.5-SNAPSHOT + 1.108.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.5-SNAPSHOT + 1.108.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c70432065cce..12a96c503715 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.5-SNAPSHOT + 1.90.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.5-SNAPSHOT + 1.108.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b660139517c9..d8435f5c38ab 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.5-SNAPSHOT + 1.108.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.5-SNAPSHOT + 1.90.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.5-SNAPSHOT + 1.90.5 com.google.cloud google-cloud-pubsub - 1.108.5-SNAPSHOT + 1.108.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 14193cb296f8..0b4e52fdc2e3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.5-SNAPSHOT + 1.90.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.5-SNAPSHOT + 1.108.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9216365d06fb..b9b3b784d5b7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.5-SNAPSHOT + 1.108.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f54a69653394..f1420717d4d1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.4:1.90.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.90.4:1.90.5-SNAPSHOT -google-cloud-pubsub:1.108.4:1.108.5-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.5:1.90.5 +grpc-google-cloud-pubsub-v1:1.90.5:1.90.5 +google-cloud-pubsub:1.108.5:1.108.5 \ No newline at end of file From e622d26728f8805b893a5ab6a703510be5f71488 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 20 Oct 2020 08:20:03 +0000 Subject: [PATCH 0487/2363] chore: release 1.108.6-SNAPSHOT (#397) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5b18f14845b6..4ec8ee8fb584 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.5 + 1.108.6-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.5 + 1.90.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.5 + 1.90.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.5 + 1.108.6-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 99d7610897ca..80ce6ef4d18c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.5 + 1.108.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.5 + 1.108.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 12a96c503715..c2ffbbdf7224 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.5 + 1.90.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.5 + 1.108.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d8435f5c38ab..4037b4022995 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.5 + 1.108.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.5 + 1.90.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.5 + 1.90.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.5 + 1.108.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0b4e52fdc2e3..22b29012de96 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.5 + 1.90.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.5 + 1.108.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b9b3b784d5b7..e1ba65984e69 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.5 + 1.108.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f1420717d4d1..729370d50ad6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.5:1.90.5 -grpc-google-cloud-pubsub-v1:1.90.5:1.90.5 -google-cloud-pubsub:1.108.5:1.108.5 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.5:1.90.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.90.5:1.90.6-SNAPSHOT +google-cloud-pubsub:1.108.5:1.108.6-SNAPSHOT \ No newline at end of file From c3ba8bb8d97b2271af1b45e4529899c85fd42fd7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 20 Oct 2020 15:46:28 -0700 Subject: [PATCH 0488/2363] chore: regenerate common templates (#391) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/819b7fc3-83d6-4849-863c-e2b6ba88ea81/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/7c5370937dd9ba9dcf9cd7d2af880a58b389b4f1 Source-Link: https://github.com/googleapis/synthtool/commit/27e0e916cbfdb3d5ff6639b686cc04f78a0b0386 --- .../.github/workflows/approve-readme.yaml | 54 +++++++++++++++++++ java-pubsub/.kokoro/build.sh | 11 +++- java-pubsub/synth.metadata | 5 +- 3 files changed, 66 insertions(+), 4 deletions(-) create mode 100644 java-pubsub/.github/workflows/approve-readme.yaml diff --git a/java-pubsub/.github/workflows/approve-readme.yaml b/java-pubsub/.github/workflows/approve-readme.yaml new file mode 100644 index 000000000000..e2d841d6c5a0 --- /dev/null +++ b/java-pubsub/.github/workflows/approve-readme.yaml @@ -0,0 +1,54 @@ +on: + pull_request: +name: auto-merge-readme +jobs: + approve: + runs-on: ubuntu-latest + if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' + steps: + - uses: actions/github-script@v3.0.0 + with: + github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} + script: | + // only approve PRs from yoshi-automation + if (context.payload.pull_request.user.login !== "yoshi-automation") { + return; + } + + // only approve PRs like "chore: release " + if (!context.payload.pull_request.title === "chore: regenerate README") { + return; + } + + // only approve PRs with README.md and synth.metadata changes + const files = new Set( + ( + await github.paginate( + github.pulls.listFiles.endpoint({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.payload.pull_request.number, + }) + ) + ).map(file => file.filename) + ); + if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) { + return; + } + + // approve README regeneration PR + await github.pulls.createReview({ + owner: context.repo.owner, + repo: context.repo.repo, + body: 'Rubber stamped PR!', + pull_number: context.payload.pull_request.number, + event: 'APPROVE' + }); + + // attach automerge label + await github.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.payload.pull_request.number, + labels: ['automerge'] + }); diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index e78ae54c32d6..516439d63587 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -69,9 +69,16 @@ integration) RETURN_CODE=$? ;; samples) - if [[ -f samples/pom.xml ]] + SAMPLES_DIR=samples + # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. + if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]] then - pushd samples + SAMPLES_DIR=samples/snapshot + fi + + if [[ -f ${SAMPLES_DIR}/pom.xml ]] + then + pushd {SAMPLES_DIR} mvn -B \ -Penable-samples \ -DtrimStackTrace=false \ diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index d1c0f6effd10..683341f6e02b 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "3dc67db7f5213ea2543e52f21cb2eba6a75a9126" + "sha": "40ba7fc85f3cddbdd79029869cad02c1c5321e9e" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b65ef07d99946d23e900ef2cc490274a16edd336" + "sha": "7c5370937dd9ba9dcf9cd7d2af880a58b389b4f1" } } ], @@ -43,6 +43,7 @@ ".github/readme/synth.py", ".github/release-please.yml", ".github/trusted-contribution.yml", + ".github/workflows/approve-readme.yaml", ".github/workflows/auto-release.yaml", ".github/workflows/ci.yaml", ".github/workflows/formatting.yaml", From 09cf2c7b8f1c5d1dabc263795155d6365ed558eb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 00:50:21 +0200 Subject: [PATCH 0489/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 (#400) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.12.1` -> `0.13.0` | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.13.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0130-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0121v0130-2020-10-20) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.12.1...v0.13.0) ##### Features - add jackson-core to the list of managed dependencies ([#​190](https://www.github.com/googleapis/java-shared-dependencies/issues/190)) ([b37035e](https://www.github.com/googleapis/java-shared-dependencies/commit/b37035ed9b0beeb5e07d6e1c121154eece1a2c87)) ##### Dependencies - update dependency com.google.guava:guava-bom to v30 ([#​181](https://www.github.com/googleapis/java-shared-dependencies/issues/181)) ([bdb1e58](https://www.github.com/googleapis/java-shared-dependencies/commit/bdb1e582288d06a872e36ac8b778563f2d088468)) - update gax.version to v1.60.0 ([#​187](https://www.github.com/googleapis/java-shared-dependencies/issues/187)) ([8a8adf7](https://www.github.com/googleapis/java-shared-dependencies/commit/8a8adf7745d563c449bf095aad63b5e4a94e1a7d)) - update google.common-protos.version to v2 ([#​174](https://www.github.com/googleapis/java-shared-dependencies/issues/174)) ([3f7e3ff](https://www.github.com/googleapis/java-shared-dependencies/commit/3f7e3ffd5e07d2f11f0aa981dae2bdf5381e429f)) ##### [0.12.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.12.0...v0.12.1) (2020-10-16) ##### Dependencies - update dependency com.google.api:api-common to v1.10.1 ([#​180](https://www.github.com/googleapis/java-shared-dependencies/issues/180)) ([b1f2d5d](https://www.github.com/googleapis/java-shared-dependencies/commit/b1f2d5dfde24fcf683eeb5600fce7f51190ecce8))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4037b4022995..4e2cfebadb9d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.12.1 + 0.13.0 pom import From 626dd7aed68747a8b53efb972c567a95d07dde28 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 00:52:35 +0200 Subject: [PATCH 0490/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v13 (#398) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `12.1.0` -> `13.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2ed3c4228e7e..029ab4126b1b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 12.1.0 + 13.0.0 pom import From b2a546c9d7ab27c4d138a2a6c2094be764edc995 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 20:30:13 +0200 Subject: [PATCH 0491/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v13.1.0 (#402) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.0.0` -> `13.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 029ab4126b1b..f61b83f0c5b4 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 13.0.0 + 13.1.0 pom import From 2af5279bf9b18fcecaf01c8c20f4194d9ba32f60 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 22 Oct 2020 10:26:14 -0700 Subject: [PATCH 0492/2363] chore: regenerate common templates (#403) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ce2fe3a6-bacb-4b6c-ad4e-3069cf46fee9/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/6abb59097be84599a1d6091fe534a49e5c5cf948 Source-Link: https://github.com/googleapis/synthtool/commit/5a506ec8765cc04f7e29f888b8e9b257d9a7ae11 --- java-pubsub/.github/snippet-bot.yml | 0 java-pubsub/renovate.json | 30 +++++++++++------------------ java-pubsub/synth.metadata | 5 +++-- 3 files changed, 14 insertions(+), 21 deletions(-) create mode 100644 java-pubsub/.github/snippet-bot.yml diff --git a/java-pubsub/.github/snippet-bot.yml b/java-pubsub/.github/snippet-bot.yml new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index a6e2d9ca1733..decec422e190 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -17,24 +17,6 @@ ], "versionScheme": "docker" }, - { - "packagePatterns": [ - "^com.google.api:gax", - "^com.google.auth:", - "^com.google.cloud:google-cloud-core", - "^io.grpc:", - "^com.google.guava:" - ], - "groupName": "core dependencies" - }, - { - "packagePatterns": [ - "^com.google.http-client:", - "^com.google.oauth-client:", - "^com.google.api-client:" - ], - "groupName": "core transport dependencies" - }, { "packagePatterns": [ "*" @@ -63,6 +45,16 @@ "semanticCommitType": "chore", "semanticCommitScope": "deps" }, + { + "packagePatterns": [ + "^junit:junit", + "^com.google.truth:truth", + "^org.mockito:mockito-core", + "^org.objenesis:objenesis" + ], + "semanticCommitType": "test", + "semanticCommitScope": "deps" + }, { "packagePatterns": [ "^com.google.cloud:google-cloud-" @@ -78,4 +70,4 @@ ], "semanticCommits": true, "masterIssue": true -} \ No newline at end of file +} diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 683341f6e02b..33ca64680189 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "40ba7fc85f3cddbdd79029869cad02c1c5321e9e" + "sha": "bb09a8a0ecc258b66296e77e405eb55f789820ee" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7c5370937dd9ba9dcf9cd7d2af880a58b389b4f1" + "sha": "6abb59097be84599a1d6091fe534a49e5c5cf948" } } ], @@ -42,6 +42,7 @@ ".github/PULL_REQUEST_TEMPLATE.md", ".github/readme/synth.py", ".github/release-please.yml", + ".github/snippet-bot.yml", ".github/trusted-contribution.yml", ".github/workflows/approve-readme.yaml", ".github/workflows/auto-release.yaml", From 7592e0dcb94ce8e0b7255da62760b36627289e85 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2020 17:52:10 +0000 Subject: [PATCH 0493/2363] chore: release 1.108.6 (#401) :robot: I have created a release \*beep\* \*boop\* --- ### [1.108.6](https://www.github.com/googleapis/java-pubsub/compare/v1.108.5...v1.108.6) (2020-10-22) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#400](https://www.github.com/googleapis/java-pubsub/issues/400)) ([09cf2c7](https://www.github.com/googleapis/java-pubsub/commit/09cf2c7b8f1c5d1dabc263795155d6365ed558eb)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 27 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 5882fde7f8a6..952bc40ad253 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.108.6](https://www.github.com/googleapis/java-pubsub/compare/v1.108.5...v1.108.6) (2020-10-22) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#400](https://www.github.com/googleapis/java-pubsub/issues/400)) ([bd3d400](https://www.github.com/googleapis/java-pubsub/commit/bd3d400b11a0677bcd3ca2bf8cd5d7fd0fbf59bc)) + ### [1.108.5](https://www.github.com/googleapis/java-pubsub/compare/v1.108.4...v1.108.5) (2020-10-19) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6d02955a3b98..d2bd6e3f6870 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,11 +47,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.108.5' +compile 'com.google.cloud:google-cloud-pubsub:1.108.6' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.6" ``` [//]: # ({x-version-update-end}) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4ec8ee8fb584..d12ac30b0570 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.6-SNAPSHOT + 1.108.6 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.6-SNAPSHOT + 1.90.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.6-SNAPSHOT + 1.90.6 com.google.cloud google-cloud-pubsub - 1.108.6-SNAPSHOT + 1.108.6
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 80ce6ef4d18c..8be76d0ac01b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.6-SNAPSHOT + 1.108.6 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.6-SNAPSHOT + 1.108.6 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c2ffbbdf7224..b96a15308ac1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.6-SNAPSHOT + 1.90.6 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.6-SNAPSHOT + 1.108.6 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4e2cfebadb9d..d82c3c505c43 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.6-SNAPSHOT + 1.108.6 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.6-SNAPSHOT + 1.90.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.6-SNAPSHOT + 1.90.6 com.google.cloud google-cloud-pubsub - 1.108.6-SNAPSHOT + 1.108.6 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 22b29012de96..211c08fd39ab 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.6-SNAPSHOT + 1.90.6 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.6-SNAPSHOT + 1.108.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e1ba65984e69..1fa69e2ee3b7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.6-SNAPSHOT + 1.108.6 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 729370d50ad6..133d63e9413c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.5:1.90.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.90.5:1.90.6-SNAPSHOT -google-cloud-pubsub:1.108.5:1.108.6-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.6:1.90.6 +grpc-google-cloud-pubsub-v1:1.90.6:1.90.6 +google-cloud-pubsub:1.108.6:1.108.6 \ No newline at end of file From 70c950355900b2757a37abc57db3262308525111 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 22 Oct 2020 12:14:09 -0700 Subject: [PATCH 0494/2363] chore: regenerate README (#395) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-10-19 22:40:06,631 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-10-19 22:40:07,633 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/b7aeb9a4-cce8-4acb-9d88-5915dec50aff/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index cf0a11c4e9da..c1cf39f93546 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "234505066757de6a391afa747e260d48a9b83fff" + "sha": "1a0d7e98a40298b139cfddbd9e044dc541296ab5" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b6164c26a111f7f587099d31253abb96b5737bb2" + "sha": "6dc98b26a9c823e92fa21455fb6e5862613c49c2" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d2bd6e3f6870..3ebfcb560000 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 12.0.0 + 12.1.0 pom import @@ -38,13 +38,11 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.108.1 + 1.108.3 ``` -[//]: # ({x-version-update-start:google-cloud-pubsub:released}) - If you are using Gradle, add this to your dependencies ```Groovy compile 'com.google.cloud:google-cloud-pubsub:1.108.6' @@ -53,7 +51,6 @@ If you are using SBT, add this to your dependencies ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.6" ``` -[//]: # ({x-version-update-end}) ## Authentication From 8e38034e78fa952f8276233dbb728485315b5f5a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Oct 2020 21:36:40 +0200 Subject: [PATCH 0495/2363] test(deps): update dependency com.google.truth:truth to v1.1 (#399) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.truth:truth](com/google/truth/truth) | minor | `1.0.1` -> `1.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d82c3c505c43..f3dd1a24bb49 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -113,7 +113,7 @@ com.google.truth truth - 1.0.1 + 1.1 test
    diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8c18fd1bc4e5..c99a4b83e88c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ com.google.truth truth - 1.0.1 + 1.1 test
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1fa69e2ee3b7..c87152d49386 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ com.google.truth truth - 1.0.1 + 1.1 test
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f61b83f0c5b4..047a60bfbc5f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -68,7 +68,7 @@ com.google.truth truth - 1.0.1 + 1.1 test
    From 2bff21ae018e367f2402a8aa5a5182cff796f0d3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2020 19:38:13 +0000 Subject: [PATCH 0496/2363] chore: release 1.108.7-SNAPSHOT (#404) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d12ac30b0570..d2f5a0ded0d6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.6 + 1.108.7-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.6 + 1.90.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.6 + 1.90.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.6 + 1.108.7-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8be76d0ac01b..03b9cd992391 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.6 + 1.108.7-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.6 + 1.108.7-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b96a15308ac1..92b00bfd2dbd 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.6 + 1.90.7-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.6 + 1.108.7-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f3dd1a24bb49..c5b9fcca9bc3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.6 + 1.108.7-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.6 + 1.90.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.6 + 1.90.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.6 + 1.108.7-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 211c08fd39ab..cb2e9a940bd1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.6 + 1.90.7-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.6 + 1.108.7-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c87152d49386..a467aa5fdbd9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.6 + 1.108.7-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 133d63e9413c..aef62c4a1f63 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.6:1.90.6 -grpc-google-cloud-pubsub-v1:1.90.6:1.90.6 -google-cloud-pubsub:1.108.6:1.108.6 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.6:1.90.7-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.90.6:1.90.7-SNAPSHOT +google-cloud-pubsub:1.108.6:1.108.7-SNAPSHOT \ No newline at end of file From d1684f0b9cdc7475e07637b2d9b7783bbe1deb44 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Oct 2020 21:40:37 +0200 Subject: [PATCH 0497/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.108.6 (#384) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | patch | `1.108.3` -> `1.108.6` | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.108.6`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11086-httpswwwgithubcomgoogleapisjava-pubsubcomparev11085v11086-2020-10-22) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.108.5...v1.108.6) ### [`v1.108.5`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11085-httpswwwgithubcomgoogleapisjava-pubsubcomparev11084v11085-2020-10-19) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.108.4...v1.108.5) ### [`v1.108.4`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11084-httpswwwgithubcomgoogleapisjava-pubsubcomparev11083v11084-2020-10-12) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.108.3...v1.108.4)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c99a4b83e88c..8b05f2935763 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.108.3 + 1.108.6 From 55607091751b84ce4695f3578d37a60d622e50ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Oct 2020 19:58:32 +0200 Subject: [PATCH 0498/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v13.2.0 (#407) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.1.0` -> `13.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 047a60bfbc5f..84fc44c497eb 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 13.1.0 + 13.2.0 pom import From d2516b6f15340ab6c92fcd94f41d824dbd2754f3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 26 Oct 2020 16:52:47 -0700 Subject: [PATCH 0499/2363] chore: regenerate common templates (#406) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e762c607-3544-401f-8bbe-2307f74f24fe/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/5f6ef0ec5501d33c4667885b37a7685a30d41a76 Source-Link: https://github.com/googleapis/synthtool/commit/9593c3b5b714cc9b17c445aee8834ac2b4b9348b --- java-pubsub/.kokoro/release/publish_javadoc.sh | 2 +- java-pubsub/CODE_OF_CONDUCT.md | 7 ++++--- java-pubsub/synth.metadata | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc.sh b/java-pubsub/.kokoro/release/publish_javadoc.sh index 165be09bc7b1..802b57fd7af7 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc.sh @@ -62,7 +62,7 @@ popd # V2 mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/" -pushd target/devsite +pushd target/devsite/reference # create metadata python3 -m docuploader create-metadata \ diff --git a/java-pubsub/CODE_OF_CONDUCT.md b/java-pubsub/CODE_OF_CONDUCT.md index 6b2238bb75e0..2add2547a812 100644 --- a/java-pubsub/CODE_OF_CONDUCT.md +++ b/java-pubsub/CODE_OF_CONDUCT.md @@ -1,3 +1,4 @@ + # Code of Conduct ## Our Pledge @@ -69,12 +70,12 @@ dispute. If you are unable to resolve the matter for any reason, or if the behavior is threatening or harassing, report it. We are dedicated to providing an environment where participants feel welcome and safe. -Reports should be directed to *[PROJECT STEWARD NAME(s) AND EMAIL(s)]*, the -Project Steward(s) for *[PROJECT NAME]*. It is the Project Steward’s duty to +Reports should be directed to *googleapis-stewards@google.com*, the +Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to receive and address reported violations of the code of conduct. They will then work with a committee consisting of representatives from the Open Source Programs Office and the Google Open Source Strategy team. If for any reason you -are uncomfortable reaching out the Project Steward, please email +are uncomfortable reaching out to the Project Steward, please email opensource@google.com. We will investigate every complaint, but you may not receive a direct response. diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 33ca64680189..d3c43dc92d38 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "bb09a8a0ecc258b66296e77e405eb55f789820ee" + "sha": "3d563047ecda9bb1d2300a4eb45740df4ad265f1" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6abb59097be84599a1d6091fe534a49e5c5cf948" + "sha": "5f6ef0ec5501d33c4667885b37a7685a30d41a76" } } ], From 7544ca225d1fb8598b701630502580e3a1e634e1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Oct 2020 01:00:04 +0100 Subject: [PATCH 0500/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v13.3.0 (#408) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.2.0` -> `13.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 84fc44c497eb..37edf80d3f76 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 13.2.0 + 13.3.0 pom import From 1fe768f03f0734d9562bf7e094c04ed9dc80d8b1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Oct 2020 20:34:10 +0100 Subject: [PATCH 0501/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.9.4 (#409) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | patch | `0.9.3` -> `0.9.4` | --- ### Release Notes
    googleapis/java-shared-config ### [`v0.9.4`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​094-httpswwwgithubcomgoogleapisjava-shared-configcomparev093v094-2020-10-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.9.3...v0.9.4)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d2f5a0ded0d6..b22fdd6e0e56 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.9.3 + 0.9.4 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c5b9fcca9bc3..347c24d3df62 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.9.3 + 0.9.4 From 62a65a70f1acd2fad35cb387f981255ade9158d4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 27 Oct 2020 17:00:16 -0700 Subject: [PATCH 0502/2363] chore(ci): fix typo in restrict presubmit samples ITs to only snapshot (#410) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/0a1e7ab8-5f1c-48aa-9a45-71c9a03ac399/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/f68649c5f26bcff6817c6d21e90dac0fc71fef8e --- java-pubsub/.kokoro/build.sh | 2 +- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 516439d63587..0427b61496da 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -78,7 +78,7 @@ samples) if [[ -f ${SAMPLES_DIR}/pom.xml ]] then - pushd {SAMPLES_DIR} + pushd ${SAMPLES_DIR} mvn -B \ -Penable-samples \ -DtrimStackTrace=false \ diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index d3c43dc92d38..bf43afc9f905 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "3d563047ecda9bb1d2300a4eb45740df4ad265f1" + "sha": "332ac303c78b52c1bd50e222de3ee55542468ac1" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5f6ef0ec5501d33c4667885b37a7685a30d41a76" + "sha": "f68649c5f26bcff6817c6d21e90dac0fc71fef8e" } } ], From c42fe4bc838c3741cb624958702a9723b057b81e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 30 Oct 2020 14:24:51 -0700 Subject: [PATCH 0503/2363] chore: regenerate README (#405) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index c1cf39f93546..06ab24fa4a8b 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "1a0d7e98a40298b139cfddbd9e044dc541296ab5" + "sha": "7a1ffe0907da54c2a79a4407850a166e72af45bc" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6dc98b26a9c823e92fa21455fb6e5862613c49c2" + "sha": "901ddd44e9ef7887ee681b9183bbdea99437fdcc" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3ebfcb560000..d3b3c93a273a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 12.1.0 + 13.1.0 pom import From 60b8d4b1c87d91547d95389d550276f5c6ae5f3d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 30 Oct 2020 14:44:02 -0700 Subject: [PATCH 0504/2363] chore: regenerate README (#412) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-10-30 21:27:05,641 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-10-30 21:27:06,615 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/a02c1284-94c8-4054-a1b9-92b7f5b32619/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 06ab24fa4a8b..9b7dd410e824 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "7a1ffe0907da54c2a79a4407850a166e72af45bc" + "sha": "d4115871c7ad9f9168f6c144264ec96e210a9857" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "901ddd44e9ef7887ee681b9183bbdea99437fdcc" + "sha": "b19b401571e77192f8dd38eab5fb2300a0de9324" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d3b3c93a273a..c7ac596168af 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 13.1.0 + 13.3.0 pom import @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.108.3 + 1.108.6 ``` From 739ac8db3e510fe4a37ac6fc447bd45aca4d7b25 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 31 Oct 2020 00:34:23 +0100 Subject: [PATCH 0505/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v13.4.0 (#414) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.3.0` -> `13.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 37edf80d3f76..c2e44eeaffe9 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 13.3.0 + 13.4.0 pom import From e5ff28a67260782f414b1e01622b91341bdb8d37 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 30 Oct 2020 16:36:47 -0700 Subject: [PATCH 0506/2363] chore(java): enable generated-files-bot (#413) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/9bd14509-36a8-403b-a9dc-c0cd9b17e694/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/b19b401571e77192f8dd38eab5fb2300a0de9324 --- java-pubsub/.github/generated-files-bot.yml | 7 +++++++ java-pubsub/synth.metadata | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 java-pubsub/.github/generated-files-bot.yml diff --git a/java-pubsub/.github/generated-files-bot.yml b/java-pubsub/.github/generated-files-bot.yml new file mode 100644 index 000000000000..20f3acc28172 --- /dev/null +++ b/java-pubsub/.github/generated-files-bot.yml @@ -0,0 +1,7 @@ +externalManifests: +- type: json + file: 'synth.metadata' + jsonpath: '$.generatedFiles[*]' +- type: json + file: '.github/readme/synth.metadata/synth.metadata' + jsonpath: '$.generatedFiles[*]' diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index bf43afc9f905..d7e019e3015a 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "332ac303c78b52c1bd50e222de3ee55542468ac1" + "sha": "04f560982199d7456544bb3ccdf97631fd738845" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f68649c5f26bcff6817c6d21e90dac0fc71fef8e" + "sha": "b19b401571e77192f8dd38eab5fb2300a0de9324" } } ], @@ -40,6 +40,7 @@ ".github/ISSUE_TEMPLATE/feature_request.md", ".github/ISSUE_TEMPLATE/support_request.md", ".github/PULL_REQUEST_TEMPLATE.md", + ".github/generated-files-bot.yml", ".github/readme/synth.py", ".github/release-please.yml", ".github/snippet-bot.yml", From 923c62ce37a69ee980c643d4fcf9a1317cc4a9e0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 30 Oct 2020 16:52:12 -0700 Subject: [PATCH 0507/2363] chore: regenerate README (#415) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-10-30 23:36:39,890 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-10-30 23:36:40,845 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/7e9c5ad1-2dee-4027-8b0b-ff3ea24defcb/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 9b7dd410e824..c093a3a57750 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "d4115871c7ad9f9168f6c144264ec96e210a9857" + "sha": "ac3fa8dce86b40d4845682f1e37d609d5e64fc80" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c7ac596168af..22a5c17bcd0e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 13.3.0 + 13.4.0 pom import From 3ef981cd401dfb691c9814032dbdad89fd81008e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 2 Nov 2020 19:02:51 +0100 Subject: [PATCH 0508/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 (#417) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 347c24d3df62..3a3fe5fa5c8d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.13.0 + 0.14.1 pom import From c98c31f39041654c8df65115254ddeb719349870 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 2 Nov 2020 18:46:05 +0000 Subject: [PATCH 0509/2363] chore: release 1.108.7 (#418) :robot: I have created a release \*beep\* \*boop\* --- ### [1.108.7](https://www.github.com/googleapis/java-pubsub/compare/v1.108.6...v1.108.7) (2020-11-02) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#417](https://www.github.com/googleapis/java-pubsub/issues/417)) ([3ef981c](https://www.github.com/googleapis/java-pubsub/commit/3ef981cd401dfb691c9814032dbdad89fd81008e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 952bc40ad253..90d35a596f83 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.108.7](https://www.github.com/googleapis/java-pubsub/compare/v1.108.6...v1.108.7) (2020-11-02) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#417](https://www.github.com/googleapis/java-pubsub/issues/417)) ([fc388c0](https://www.github.com/googleapis/java-pubsub/commit/fc388c0d452957a617f8ce7288830392cdd40693)) + ### [1.108.6](https://www.github.com/googleapis/java-pubsub/compare/v1.108.5...v1.108.6) (2020-10-22) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b22fdd6e0e56..729bea74710a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.7-SNAPSHOT + 1.108.7 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.7-SNAPSHOT + 1.90.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.7-SNAPSHOT + 1.90.7 com.google.cloud google-cloud-pubsub - 1.108.7-SNAPSHOT + 1.108.7
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 03b9cd992391..afa2b3f11336 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.7-SNAPSHOT + 1.108.7 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.7-SNAPSHOT + 1.108.7 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 92b00bfd2dbd..3bc99e4aaf19 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.7-SNAPSHOT + 1.90.7 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.7-SNAPSHOT + 1.108.7 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3a3fe5fa5c8d..77e80a7f5b74 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.7-SNAPSHOT + 1.108.7 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.7-SNAPSHOT + 1.90.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.7-SNAPSHOT + 1.90.7 com.google.cloud google-cloud-pubsub - 1.108.7-SNAPSHOT + 1.108.7 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index cb2e9a940bd1..1b4edfab2334 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.7-SNAPSHOT + 1.90.7 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.7-SNAPSHOT + 1.108.7 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a467aa5fdbd9..413d30e2e856 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.7-SNAPSHOT + 1.108.7 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index aef62c4a1f63..1b6f2d0eb902 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.6:1.90.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.90.6:1.90.7-SNAPSHOT -google-cloud-pubsub:1.108.6:1.108.7-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.7:1.90.7 +grpc-google-cloud-pubsub-v1:1.90.7:1.90.7 +google-cloud-pubsub:1.108.7:1.108.7 \ No newline at end of file From 1d4296b2455e289bea74b0d2a173e6ce5b3923d5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 3 Nov 2020 09:20:04 +0000 Subject: [PATCH 0510/2363] chore: release 1.108.8-SNAPSHOT (#420) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 729bea74710a..a98a6e282489 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.7 + 1.108.8-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.7 + 1.90.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.7 + 1.90.8-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.7 + 1.108.8-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index afa2b3f11336..9f3dde4ed503 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.7 + 1.108.8-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.7 + 1.108.8-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3bc99e4aaf19..8b2df6300d89 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.7 + 1.90.8-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.7 + 1.108.8-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 77e80a7f5b74..e024597cd3b7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.7 + 1.108.8-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.7 + 1.90.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.7 + 1.90.8-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.108.7 + 1.108.8-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1b4edfab2334..35af4d4507c7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.7 + 1.90.8-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.7 + 1.108.8-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 413d30e2e856..af1b133736f6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.7 + 1.108.8-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1b6f2d0eb902..a3cdbd7294a6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.7:1.90.7 -grpc-google-cloud-pubsub-v1:1.90.7:1.90.7 -google-cloud-pubsub:1.108.7:1.108.7 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.90.7:1.90.8-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.90.7:1.90.8-SNAPSHOT +google-cloud-pubsub:1.108.7:1.108.8-SNAPSHOT \ No newline at end of file From a0b9a13284b1eecf1273868a9c7654cf9dcf4d6a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 3 Nov 2020 01:34:05 -0800 Subject: [PATCH 0511/2363] chore: regenerate README (#421) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-11-03 09:22:07,750 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-03 09:22:08,621 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/5ea74e73-9928-44b8-bb3a-c6e4a738f247/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index c093a3a57750..4d0c06f4be81 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "ac3fa8dce86b40d4845682f1e37d609d5e64fc80" + "sha": "400c5dfc2244c6292297939421373161ca469bd4" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b19b401571e77192f8dd38eab5fb2300a0de9324" + "sha": "ba9918cd22874245b55734f57470c719b577e591" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 22a5c17bcd0e..874cc8b2adfa 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -45,11 +45,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.108.6' +compile 'com.google.cloud:google-cloud-pubsub:1.108.7' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.6" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.7" ``` ## Authentication From 90af20723c43cf962756bef9d1d097c2cee7734a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 4 Nov 2020 01:02:15 +0100 Subject: [PATCH 0512/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.108.7 (#419) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | patch | `1.108.6` -> `1.108.7` | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.108.7`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11087-httpswwwgithubcomgoogleapisjava-pubsubcomparev11086v11087-2020-11-02) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.108.6...v1.108.7)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8b05f2935763..58b884558869 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.108.6 + 1.108.7 From 97d0df040444de351f50bf9eaf04866cdd2ac92a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 3 Nov 2020 16:20:04 -0800 Subject: [PATCH 0513/2363] chore: regenerate README (#422) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-11-04 00:04:34,379 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-04 00:04:35,300 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/f44470b4-d601-439a-a51a-9cd6513bb49a/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 4d0c06f4be81..ce2048d7bdd3 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "400c5dfc2244c6292297939421373161ca469bd4" + "sha": "075d765e00d109f37ca7f96433dfa40712c04c11" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 874cc8b2adfa..42294e683060 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.108.6 + 1.108.7 ``` From c04af4725898fc7b5a26296b6868e9ce5b34bacb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 5 Nov 2020 14:56:05 -0800 Subject: [PATCH 0514/2363] chore(java): use production staging bucket (#424) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e0a7fdc6-2a92-466e-89ff-6bea61547842/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/c7824ea48ff6d4d42dfae0849aec8a85acd90bd9 --- java-pubsub/.kokoro/release/publish_javadoc.cfg | 2 +- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc.cfg b/java-pubsub/.kokoro/release/publish_javadoc.cfg index 90b0ec75345e..9dcbbc9f7942 100644 --- a/java-pubsub/.kokoro/release/publish_javadoc.cfg +++ b/java-pubsub/.kokoro/release/publish_javadoc.cfg @@ -9,7 +9,7 @@ env_vars: { env_vars: { key: "STAGING_BUCKET_V2" - value: "docs-staging-v2-staging" + value: "docs-staging-v2" # Production will be at: docs-staging-v2 } diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index d7e019e3015a..8e1d25a84c74 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "04f560982199d7456544bb3ccdf97631fd738845" + "sha": "2c46d7f80bbebd93ceb0feac25e2950906d4dfb4" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b19b401571e77192f8dd38eab5fb2300a0de9324" + "sha": "c7824ea48ff6d4d42dfae0849aec8a85acd90bd9" } } ], From 28a3b55e945b0d6096c5e22d48a7bb0b62609d81 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Nov 2020 00:02:15 +0100 Subject: [PATCH 0515/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#425) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `13.4.0` -> `15.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c2e44eeaffe9..f51d8a168ad3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 13.4.0 + 15.0.0 pom import From ca4ab1416b0d8825be47bd2117747016b11b6727 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 10 Nov 2020 09:34:14 -0800 Subject: [PATCH 0516/2363] chore(java): ignore return code 28 in README autosynth job (#427) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e0b67e3f-a3e7-4b49-b639-daf63d3e1009/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279 --- java-pubsub/.kokoro/readme.sh | 11 ++++++++++- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/readme.sh b/java-pubsub/.kokoro/readme.sh index 7c518941ff3a..6a3d816cacec 100755 --- a/java-pubsub/.kokoro/readme.sh +++ b/java-pubsub/.kokoro/readme.sh @@ -28,9 +28,18 @@ echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials git config --global credential.helper 'store --file ~/.git-credentials' python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool + +set +e python3.6 -m autosynth.synth \ --repository=googleapis/java-pubsub \ --synth-file-name=.github/readme/synth.py \ --metadata-path=.github/readme/synth.metadata \ --pr-title="chore: regenerate README" \ - --branch-suffix="readme" \ No newline at end of file + --branch-suffix="readme" + +# autosynth returns 28 to signal there are no changes +RETURN_CODE=$? +if [[ ${RETURN_CODE} -ne 0 && ${RETURN_CODE} -ne 28 ]] +then + exit ${RETURN_CODE} +fi diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 8e1d25a84c74..84cef5cf2547 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "2c46d7f80bbebd93ceb0feac25e2950906d4dfb4" + "sha": "0e174b0095c5f8e8a8da0524c824c36a21ace264" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c7824ea48ff6d4d42dfae0849aec8a85acd90bd9" + "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" } } ], From c8d2d525b710453afd2ab5d9e550659c4555178f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 10 Nov 2020 09:56:10 -0800 Subject: [PATCH 0517/2363] chore: regenerate README (#428) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-11-10 17:36:33,580 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-10 17:36:34,570 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/af9caac4-079c-4201-8a6e-b982f1f74497/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index ce2048d7bdd3..6deb6fd4a929 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "075d765e00d109f37ca7f96433dfa40712c04c11" + "sha": "5e02cfcc1e86e2ebcf35f8f4665df9547f149030" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ba9918cd22874245b55734f57470c719b577e591" + "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 42294e683060..a8bbaad26f34 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 13.4.0 + 15.0.0 pom import From b6999730a1ec4efe83ba387bcc8ed779aeab7e8a Mon Sep 17 00:00:00 2001 From: fayssalmartanigcp <73672393+fayssalmartanigcp@users.noreply.github.com> Date: Tue, 10 Nov 2020 13:52:12 -0500 Subject: [PATCH 0518/2363] feat: Enable server side flow control by default with the option to turn it off (#426) * Enable server side flow control by default with the option to turn it off This change enables sending flow control settings automatically to the server. If FlowControlSettings.maxOutstandingElementCount > 0 or FlowControlSettings.maxOutstandingRequestBytes > 0, flow control will be enforced at the server side (in addition to the client side). This behavior is enabled by default and Subscriber.Builder.setUseLegacyFlowControl() method is provided for users who would like to opt-out of this feature in case they encouter issues with server side flow control. * feat: Enable server side flow control by default with the option to turn it off This change enables sending flow control settings automatically to the server. If FlowControlSettings.maxOutstandingElementCount > 0 or FlowControlSettings.maxOutstandingRequestBytes > 0, flow control will be enforced at the server side (in addition to the client side). This behavior is enabled by default and Subscriber.Builder.setUseLegacyFlowControl() method is provided for users who would like to opt-out of this feature in case they encounter issues with server side flow control. * Update google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java Co-authored-by: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> * Update google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java Co-authored-by: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> * Update StreamingSubscriberConnection.java Co-authored-by: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> --- .../pubsub/v1/StreamingSubscriberConnection.java | 11 +++++++++-- .../java/com/google/cloud/pubsub/v1/Subscriber.java | 13 +++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index f4e330ef1fad..1587afb91fac 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -73,6 +73,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final MessageDispatcher messageDispatcher; private final FlowControlSettings flowControlSettings; + private final boolean useLegacyFlowControl; private final AtomicLong channelReconnectBackoffMillis = new AtomicLong(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); @@ -98,6 +99,7 @@ public StreamingSubscriberConnection( SubscriberStub stub, int channelAffinity, FlowControlSettings flowControlSettings, + boolean useLegacyFlowControl, FlowController flowController, ScheduledExecutorService executor, ScheduledExecutorService systemExecutor, @@ -119,6 +121,7 @@ public StreamingSubscriberConnection( systemExecutor, clock); this.flowControlSettings = flowControlSettings; + this.useLegacyFlowControl = useLegacyFlowControl; } @Override @@ -217,9 +220,13 @@ private void initialize() { .setStreamAckDeadlineSeconds(60) .setClientId(clientId) .setMaxOutstandingMessages( - valueOrZero(flowControlSettings.getMaxOutstandingElementCount())) + this.useLegacyFlowControl + ? 0 + : valueOrZero(flowControlSettings.getMaxOutstandingElementCount())) .setMaxOutstandingBytes( - valueOrZero(flowControlSettings.getMaxOutstandingRequestBytes())) + this.useLegacyFlowControl + ? 0 + : valueOrZero(flowControlSettings.getMaxOutstandingRequestBytes())) .build()); /** diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 35c50fdb692f..6d5946276a71 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -103,6 +103,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final String subscriptionName; private final FlowControlSettings flowControlSettings; + private final boolean useLegacyFlowControl; private final Duration maxAckExtensionPeriod; private final Duration maxDurationPerAckExtension; // The ExecutorProvider used to generate executors for processing messages. @@ -126,6 +127,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private Subscriber(Builder builder) { receiver = builder.receiver; flowControlSettings = builder.flowControlSettings; + useLegacyFlowControl = builder.useLegacyFlowControl; subscriptionName = builder.subscriptionName; maxAckExtensionPeriod = builder.maxAckExtensionPeriod; @@ -336,6 +338,7 @@ private void startStreamingConnections() { subStub, i, flowControlSettings, + useLegacyFlowControl, flowController, executor, alarmsExecutor, @@ -420,6 +423,7 @@ public static final class Builder { private Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; private Duration maxDurationPerAckExtension = Duration.ofMillis(0); + private boolean useLegacyFlowControl = false; private FlowControlSettings flowControlSettings = FlowControlSettings.newBuilder() .setMaxOutstandingElementCount(1000L) @@ -504,6 +508,15 @@ public Builder setFlowControlSettings(FlowControlSettings flowControlSettings) { return this; } + /** + * Disables enforcing flow control settings at the Cloud PubSub server and uses the less + * accurate method of only enforcing flow control at the client side. + */ + public Builder setUseLegacyFlowControl(boolean value) { + this.useLegacyFlowControl = value; + return this; + } + /** * Set the maximum period a message ack deadline will be extended. Defaults to one hour. * From 6e3994816302e813929f0813649a6bb7c468a3b5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 13 Nov 2020 13:12:33 -0800 Subject: [PATCH 0519/2363] build(java): use code-suggester v1 tag rather than full semver (#434) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/d2bd45d1-7927-4578-b824-9ae34a6b0e7a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/7d652819519dfa24da9e14548232e4aaba71a11c --- java-pubsub/.github/workflows/formatting.yaml | 2 +- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/formatting.yaml b/java-pubsub/.github/workflows/formatting.yaml index d4d367cfce03..6844407b4d97 100644 --- a/java-pubsub/.github/workflows/formatting.yaml +++ b/java-pubsub/.github/workflows/formatting.yaml @@ -18,7 +18,7 @@ jobs: with: java-version: 11 - run: "mvn com.coveo:fmt-maven-plugin:format" - - uses: googleapis/code-suggester@v1.8.0 + - uses: googleapis/code-suggester@v1 with: command: review pull_number: ${{ github.event.pull_request.number }} diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 84cef5cf2547..6be2db5b269c 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "0e174b0095c5f8e8a8da0524c824c36a21ace264" + "sha": "14ac8d7e10ef6fbecdb21cb80ef496686d20e8f3" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" + "sha": "7d652819519dfa24da9e14548232e4aaba71a11c" } } ], From c5f06dad4fd08b4fe3aa59cad1e303809e97e279 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 17 Nov 2020 20:23:05 +0100 Subject: [PATCH 0520/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 (#430) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e024597cd3b7..755295b9172b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.14.1 + 0.15.0 pom import From 711eb6faf93664c3acde176599fd619261161234 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 17 Nov 2020 19:34:05 +0000 Subject: [PATCH 0521/2363] chore: release 1.109.0 (#429) :robot: I have created a release \*beep\* \*boop\* --- ## [1.109.0](https://www.github.com/googleapis/java-pubsub/compare/v1.108.7...v1.109.0) (2020-11-17) ### Features * Enable server side flow control by default with the option to turn it off ([#426](https://www.github.com/googleapis/java-pubsub/issues/426)) ([b699973](https://www.github.com/googleapis/java-pubsub/commit/b6999730a1ec4efe83ba387bcc8ed779aeab7e8a)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#430](https://www.github.com/googleapis/java-pubsub/issues/430)) ([c5f06da](https://www.github.com/googleapis/java-pubsub/commit/c5f06dad4fd08b4fe3aa59cad1e303809e97e279)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 90d35a596f83..1c9d636abbc8 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.109.0](https://www.github.com/googleapis/java-pubsub/compare/v1.108.7...v1.109.0) (2020-11-17) + + +### Features + +* Enable server side flow control by default with the option to turn it off ([#426](https://www.github.com/googleapis/java-pubsub/issues/426)) ([14ac8d7](https://www.github.com/googleapis/java-pubsub/commit/14ac8d7e10ef6fbecdb21cb80ef496686d20e8f3)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#430](https://www.github.com/googleapis/java-pubsub/issues/430)) ([991cb43](https://www.github.com/googleapis/java-pubsub/commit/991cb430794b5d95d47477e0113b71db313ebebe)) + ### [1.108.7](https://www.github.com/googleapis/java-pubsub/compare/v1.108.6...v1.108.7) (2020-11-02) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a98a6e282489..1803078dcbc7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.108.8-SNAPSHOT + 1.109.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.8-SNAPSHOT + 1.91.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.8-SNAPSHOT + 1.91.0 com.google.cloud google-cloud-pubsub - 1.108.8-SNAPSHOT + 1.109.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9f3dde4ed503..50f79d8896e2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.108.8-SNAPSHOT + 1.109.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.108.8-SNAPSHOT + 1.109.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8b2df6300d89..6cb225e8208c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.8-SNAPSHOT + 1.91.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.8-SNAPSHOT + 1.109.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 755295b9172b..4d99d2e2e776 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.108.8-SNAPSHOT + 1.109.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.8-SNAPSHOT + 1.91.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.90.8-SNAPSHOT + 1.91.0 com.google.cloud google-cloud-pubsub - 1.108.8-SNAPSHOT + 1.109.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 35af4d4507c7..d4fef626fb42 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.90.8-SNAPSHOT + 1.91.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.108.8-SNAPSHOT + 1.109.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index af1b133736f6..990ded6a4056 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.108.8-SNAPSHOT + 1.109.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a3cdbd7294a6..e8df36211ec8 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.90.7:1.90.8-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.90.7:1.90.8-SNAPSHOT -google-cloud-pubsub:1.108.7:1.108.8-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.91.0:1.91.0 +grpc-google-cloud-pubsub-v1:1.91.0:1.91.0 +google-cloud-pubsub:1.109.0:1.109.0 \ No newline at end of file From adaabfa5dab9c74521aff68ffb34169500810a17 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2020 09:14:02 +0000 Subject: [PATCH 0522/2363] chore: release 1.109.1-SNAPSHOT (#441) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1803078dcbc7..e5f5b66817cb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.109.0 + 1.109.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.91.0 + 1.91.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.91.0 + 1.91.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.109.0 + 1.109.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 50f79d8896e2..58d775566441 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.109.0 + 1.109.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.109.0 + 1.109.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6cb225e8208c..615f904e753b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.91.0 + 1.91.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.109.0 + 1.109.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4d99d2e2e776..4949af28cb68 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.109.0 + 1.109.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.91.0 + 1.91.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.91.0 + 1.91.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.109.0 + 1.109.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d4fef626fb42..395ef9e78c7a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.91.0 + 1.91.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.109.0 + 1.109.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 990ded6a4056..99e6a3806bc5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.109.0 + 1.109.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e8df36211ec8..30ce922e60a6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.91.0:1.91.0 -grpc-google-cloud-pubsub-v1:1.91.0:1.91.0 -google-cloud-pubsub:1.109.0:1.109.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.91.0:1.91.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.91.0:1.91.1-SNAPSHOT +google-cloud-pubsub:1.109.0:1.109.1-SNAPSHOT \ No newline at end of file From 957919efe656ea464c6c7231892c70c8939674a8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 18 Nov 2020 01:30:03 -0800 Subject: [PATCH 0523/2363] chore: regenerate README (#442) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-11-18 09:16:19,319 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-18 09:16:20,290 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/1eefc5ed-cb44-48b7-a53b-7f195f1d1cd2/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 6deb6fd4a929..5e6ef901ad72 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "5e02cfcc1e86e2ebcf35f8f4665df9547f149030" + "sha": "2a5a5fab56d123223df97ed7920e1548d6e06fff" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279" + "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a8bbaad26f34..ca70a0a69073 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -45,11 +45,11 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.108.7' +compile 'com.google.cloud:google-cloud-pubsub:1.109.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.108.7" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.109.0" ``` ## Authentication From 81aaa53c707568de52ab389ed77dfad8fc627fc6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 18 Nov 2020 14:42:31 -0800 Subject: [PATCH 0524/2363] build(java): use actions/github-script v3 tag rather than full semver (#439) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ffb6a2e8-f011-4360-8ebe-2e2dd1480ba7/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58 --- java-pubsub/.github/workflows/approve-readme.yaml | 2 +- java-pubsub/.github/workflows/auto-release.yaml | 2 +- java-pubsub/synth.metadata | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/approve-readme.yaml b/java-pubsub/.github/workflows/approve-readme.yaml index e2d841d6c5a0..7513acaebcc2 100644 --- a/java-pubsub/.github/workflows/approve-readme.yaml +++ b/java-pubsub/.github/workflows/approve-readme.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v3.0.0 + - uses: actions/github-script@v3 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index bc1554aecba2..2b6cdbc976c4 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-v') steps: - - uses: actions/github-script@v3.0.0 + - uses: actions/github-script@v3 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 6be2db5b269c..1c41fac9c6e2 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "14ac8d7e10ef6fbecdb21cb80ef496686d20e8f3" + "sha": "e7f6d681a7db65295ec65a0952676be726281255" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7d652819519dfa24da9e14548232e4aaba71a11c" + "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58" } } ], From 414bfbbe6dd154696b63a0a7294a6dd4e0e61ab3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Nov 2020 18:02:07 +0100 Subject: [PATCH 0525/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v16 (#440) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `15.0.0` -> `16.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f51d8a168ad3..19384bcc229c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 15.0.0 + 16.1.0 pom import From e5f55ede2bed77f7e2683a67744b58115b61a53f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 19 Nov 2020 09:30:07 -0800 Subject: [PATCH 0526/2363] chore: regenerate README (#443) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-11-19 17:09:04,036 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working directory clean 2020-11-19 17:09:05,039 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/e659620d-2af0-49bf-b152-3b7726edb7fc/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 5e6ef901ad72..25337010929e 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "2a5a5fab56d123223df97ed7920e1548d6e06fff" + "sha": "34c831540bd5d85c0285da421eac04900e656ffa" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58" + "sha": "39b7149da4026765385403632db3c6f63db96b2c" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ca70a0a69073..b781255d414c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 15.0.0 + 16.1.0 pom import From b0eda7c2a653e19b9771ac4b5ecd3595e404cb62 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Nov 2020 18:40:32 +0100 Subject: [PATCH 0527/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.109.0 (#438) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | minor | `1.108.7` -> `1.109.0` | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.109.0`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11090-httpswwwgithubcomgoogleapisjava-pubsubcomparev11087v11090-2020-11-17) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.108.7...v1.109.0) ##### Features - Enable server side flow control by default with the option to turn it off ([#​426](https://www.github.com/googleapis/java-pubsub/issues/426)) ([b699973](https://www.github.com/googleapis/java-pubsub/commit/b6999730a1ec4efe83ba387bcc8ed779aeab7e8a)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#​430](https://www.github.com/googleapis/java-pubsub/issues/430)) ([c5f06da](https://www.github.com/googleapis/java-pubsub/commit/c5f06dad4fd08b4fe3aa59cad1e303809e97e279)) ##### [1.108.7](https://www.github.com/googleapis/java-pubsub/compare/v1.108.6...v1.108.7) (2020-11-02) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#​417](https://www.github.com/googleapis/java-pubsub/issues/417)) ([3ef981c](https://www.github.com/googleapis/java-pubsub/commit/3ef981cd401dfb691c9814032dbdad89fd81008e)) ##### [1.108.6](https://www.github.com/googleapis/java-pubsub/compare/v1.108.5...v1.108.6) (2020-10-22) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#​400](https://www.github.com/googleapis/java-pubsub/issues/400)) ([09cf2c7](https://www.github.com/googleapis/java-pubsub/commit/09cf2c7b8f1c5d1dabc263795155d6365ed558eb)) ##### [1.108.5](https://www.github.com/googleapis/java-pubsub/compare/v1.108.4...v1.108.5) (2020-10-19) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#​392](https://www.github.com/googleapis/java-pubsub/issues/392)) ([bd3b8fc](https://www.github.com/googleapis/java-pubsub/commit/bd3b8fc4f03573d24919fc0be9c91dd0da579650)) ##### [1.108.4](https://www.github.com/googleapis/java-pubsub/compare/v1.108.3...v1.108.4) (2020-10-12) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#​377](https://www.github.com/googleapis/java-pubsub/issues/377)) ([fe67399](https://www.github.com/googleapis/java-pubsub/commit/fe6739949c3c95640eefc3c8be487d7577a69d5a)) ##### [1.108.3](https://www.github.com/googleapis/java-pubsub/compare/v1.108.2...v1.108.3) (2020-10-02) ##### Bug Fixes - ensure proper cleanup of publisher in tests ([#​310](https://www.github.com/googleapis/java-pubsub/issues/310)) ([8979f94](https://www.github.com/googleapis/java-pubsub/commit/8979f94271f975b767def8dd21bdc232eaf863ed)) - Ensure that messages that are in pending batches for an ordering key are canceled when a previous publish for the ordering keys fails ([#​366](https://www.github.com/googleapis/java-pubsub/issues/366)) ([97630c5](https://www.github.com/googleapis/java-pubsub/commit/97630c5a121e669f0482c5f23de985950ac97eee)) - make subscriberIT test less flaky ([#​340](https://www.github.com/googleapis/java-pubsub/issues/340)) ([0fc3d52](https://www.github.com/googleapis/java-pubsub/commit/0fc3d526fb07706814c1dd89d39e57ac8faf6a1c)) - Only check keyHasError if ordering key is non-empty ([#​367](https://www.github.com/googleapis/java-pubsub/issues/367)) ([f37b102](https://www.github.com/googleapis/java-pubsub/commit/f37b1027f2efadcdc5050b71ad32336d03192e01)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#​357](https://www.github.com/googleapis/java-pubsub/issues/357)) ([3e45b68](https://www.github.com/googleapis/java-pubsub/commit/3e45b68e5dbe5eb14c28cf352534bd71cd1d5d3c)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#​337](https://www.github.com/googleapis/java-pubsub/issues/337)) ([fe426a7](https://www.github.com/googleapis/java-pubsub/commit/fe426a7244124eca1ab8abf63fd8a4381787006e)) ##### [1.108.2](https://www.github.com/googleapis/java-pubsub/compare/v1.108.1...v1.108.2) (2020-08-21) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.5 ([#​303](https://www.github.com/googleapis/java-pubsub/issues/303)) ([6c89e28](https://www.github.com/googleapis/java-pubsub/commit/6c89e28c46e0b24e8a19dbba7321c899d3978342)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.6 ([#​313](https://www.github.com/googleapis/java-pubsub/issues/313)) ([042e316](https://www.github.com/googleapis/java-pubsub/commit/042e316d839aa28d33404688bea43605c5162cab)) ##### [1.108.1](https://www.github.com/googleapis/java-pubsub/compare/v1.108.0...v1.108.1) (2020-08-04) ##### Bug Fixes - add header providers to PublisherStubSettings ([#​294](https://www.github.com/googleapis/java-pubsub/issues/294)) ([3da15bd](https://www.github.com/googleapis/java-pubsub/commit/3da15bd51b6cd89b9111564a049d8c3e180f94c8)) - if a flow control setting is not provided use zero ([#​292](https://www.github.com/googleapis/java-pubsub/issues/292)) ([ab123d7](https://www.github.com/googleapis/java-pubsub/commit/ab123d795429d477d2ee79f6ed99e73a65e7eb2f)) - Make error message more clear about where ordering must be enabled when publishing ([#​293](https://www.github.com/googleapis/java-pubsub/issues/293)) ([7330e70](https://www.github.com/googleapis/java-pubsub/commit/7330e7075808fd91c35e14df5b7562081b9ae969)) ##### Documentation - remove experimental warning for ordering keys properties. ([#​297](https://www.github.com/googleapis/java-pubsub/issues/297)) ([0baa3d3](https://www.github.com/googleapis/java-pubsub/commit/0baa3d30d80bde3eba8d93330ef3f93475a17fb3)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.3 ([#​282](https://www.github.com/googleapis/java-pubsub/issues/282)) ([bae73e2](https://www.github.com/googleapis/java-pubsub/commit/bae73e2b0427a50e71f31a9a100ca029c76183b6))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 58b884558869..e2e602a600b9 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.108.7 + 1.109.0 From cf5d9d84a8228898e1d4ab7a8e5159b0d0031d13 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 23 Nov 2020 09:22:24 -0800 Subject: [PATCH 0528/2363] chore(java): retry staging portion of the release with backoff (#445) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/087f6699-1a2d-49d0-af84-de8bcba391f2/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/68742c6016bf0d16948a572633d17955a8737414 --- java-pubsub/.kokoro/common.sh | 1 - java-pubsub/.kokoro/release/stage.sh | 17 ++++++++++------- java-pubsub/synth.metadata | 4 ++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/java-pubsub/.kokoro/common.sh b/java-pubsub/.kokoro/common.sh index a8d0ea04d37d..ace89f45a9de 100644 --- a/java-pubsub/.kokoro/common.sh +++ b/java-pubsub/.kokoro/common.sh @@ -25,7 +25,6 @@ function retry_with_backoff { # allow a failures to continue set +e - echo "${command}" ${command} exit_code=$? diff --git a/java-pubsub/.kokoro/release/stage.sh b/java-pubsub/.kokoro/release/stage.sh index 3c482cbc55f1..16126d2eb53f 100755 --- a/java-pubsub/.kokoro/release/stage.sh +++ b/java-pubsub/.kokoro/release/stage.sh @@ -20,19 +20,22 @@ python3 -m pip install gcp-releasetool python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script source $(dirname "$0")/common.sh +source $(dirname "$0")/../common.sh MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml pushd $(dirname "$0")/../../ setup_environment_secrets create_settings_xml_file "settings.xml" -mvn clean install deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DskipTests=true \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} +# attempt to stage 3 times with exponential backoff (starting with 10 seconds) +retry_with_backoff 3 10 \ + mvn clean install deploy -B \ + --settings ${MAVEN_SETTINGS_FILE} \ + -DskipTests=true \ + -DperformRelease=true \ + -Dgpg.executable=gpg \ + -Dgpg.passphrase=${GPG_PASSPHRASE} \ + -Dgpg.homedir=${GPG_HOMEDIR} if [[ -n "${AUTORELEASE_PR}" ]] then diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 1c41fac9c6e2..4648b4bfaeea 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "e7f6d681a7db65295ec65a0952676be726281255" + "sha": "c92c7fd06e28e13533024997ef8b20e909bba817" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7fcc405a579d5d53a726ff3da1b7c8c08f0f2d58" + "sha": "68742c6016bf0d16948a572633d17955a8737414" } } ], From a7e724b14680912cc7c43d33516a9cbd96ae73ae Mon Sep 17 00:00:00 2001 From: Jaume Marhuenda Date: Mon, 23 Nov 2020 16:03:51 -0500 Subject: [PATCH 0529/2363] feat: make the stream ack deadline congruent with maxDurationPerAckExtension (#447) * feat: allow to override the stream ack deadline * set streamAckDeadline to be congruent with maxDurationPerAckExtension * remove extra impot * remove unused DEFAULT_STREAM_ACK_DEADLINE * consider the case in which maxDurationPerAckExtension is not set * add test * test fix Co-authored-by: Jaume Marhuenda-Beltran --- .../v1/StreamingSubscriberConnection.java | 17 ++++- .../google/cloud/pubsub/v1/Subscriber.java | 3 +- .../pubsub/v1/FakeSubscriberServiceImpl.java | 14 ++++ .../cloud/pubsub/v1/SubscriberTest.java | 65 +++++++++++++++++++ 4 files changed, 97 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 1587afb91fac..98e055715eb0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1; +import static com.google.cloud.pubsub.v1.Subscriber.DEFAULT_MAX_DURATION_PER_ACK_EXTENSION; import static com.google.common.util.concurrent.MoreExecutors.directExecutor; import com.google.api.core.AbstractApiService; @@ -23,6 +24,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutureCallback; import com.google.api.core.ApiFutures; +import com.google.api.core.InternalApi; import com.google.api.core.SettableApiFuture; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; @@ -62,10 +64,14 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private static final Logger logger = Logger.getLogger(StreamingSubscriberConnection.class.getName()); + @InternalApi static final Duration DEFAULT_STREAM_ACK_DEADLINE = Duration.ofSeconds(60); + @InternalApi static final Duration MAX_STREAM_ACK_DEADLINE = Duration.ofSeconds(600); + @InternalApi static final Duration MIN_STREAM_ACK_DEADLINE = Duration.ofSeconds(10); private static final Duration INITIAL_CHANNEL_RECONNECT_BACKOFF = Duration.ofMillis(100); private static final Duration MAX_CHANNEL_RECONNECT_BACKOFF = Duration.ofSeconds(10); private static final int MAX_PER_REQUEST_CHANGES = 1000; + private final Duration streamAckDeadline; private final SubscriberStub stub; private final int channelAffinity; private final String subscription; @@ -106,6 +112,15 @@ public StreamingSubscriberConnection( ApiClock clock) { this.subscription = subscription; this.systemExecutor = systemExecutor; + if (maxDurationPerAckExtension.compareTo(DEFAULT_MAX_DURATION_PER_ACK_EXTENSION) == 0) { + this.streamAckDeadline = DEFAULT_STREAM_ACK_DEADLINE; + } else if (maxDurationPerAckExtension.compareTo(MIN_STREAM_ACK_DEADLINE) < 0) { + this.streamAckDeadline = MIN_STREAM_ACK_DEADLINE; + } else if (maxDurationPerAckExtension.compareTo(MAX_STREAM_ACK_DEADLINE) > 0) { + this.streamAckDeadline = MAX_STREAM_ACK_DEADLINE; + } else { + this.streamAckDeadline = maxDurationPerAckExtension; + } this.stub = stub; this.channelAffinity = channelAffinity; this.messageDispatcher = @@ -217,7 +232,7 @@ private void initialize() { initClientStream.send( StreamingPullRequest.newBuilder() .setSubscription(subscription) - .setStreamAckDeadlineSeconds(60) + .setStreamAckDeadlineSeconds((int) streamAckDeadline.getSeconds()) .setClientId(clientId) .setMaxOutstandingMessages( this.useLegacyFlowControl diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 6d5946276a71..948de0b7ad53 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -91,6 +91,7 @@ * details. */ public class Subscriber extends AbstractApiService implements SubscriberInterface { + @InternalApi static final Duration DEFAULT_MAX_DURATION_PER_ACK_EXTENSION = Duration.ofMillis(0); private static final int THREADS_PER_CHANNEL = 5; private static final int MAX_INBOUND_MESSAGE_SIZE = 20 * 1024 * 1024; // 20MB API maximum message size. @@ -421,7 +422,7 @@ public static final class Builder { private MessageReceiver receiver; private Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; - private Duration maxDurationPerAckExtension = Duration.ofMillis(0); + private Duration maxDurationPerAckExtension = DEFAULT_MAX_DURATION_PER_ACK_EXTENSION; private boolean useLegacyFlowControl = false; private FlowControlSettings flowControlSettings = diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java index c6336fa1cef7..260071b9ba1a 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java @@ -51,6 +51,7 @@ class FakeSubscriberServiceImpl extends SubscriberImplBase { private final AtomicInteger messageAckDeadline = new AtomicInteger(Subscriber.MIN_ACK_DEADLINE_SECONDS); private final AtomicInteger getSubscriptionCalled = new AtomicInteger(); + private StreamingPullRequest lastSeenRequest; private final List openedStreams = new ArrayList<>(); private final List closedStreams = new ArrayList<>(); private final List acks = new ArrayList<>(); @@ -139,6 +140,7 @@ public void onNext(StreamingPullRequest request) { subscriptionInitialized.notifyAll(); } } + setLastSeenRequest(request); addOpenedStream(stream); stream.notifyAll(); } @@ -292,6 +294,18 @@ private static void waitAtLeast(Collection collection, int target) } } + public StreamingPullRequest getLastSeenRequest() { + synchronized (lastSeenRequest) { + return lastSeenRequest; + } + } + + public void setLastSeenRequest(StreamingPullRequest lastSeenRequest) { + synchronized (lastSeenRequest) { + this.lastSeenRequest = lastSeenRequest; + } + } + private void addOpenedStream(Stream stream) { synchronized (openedStreams) { openedStreams.add(stream); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 98d3927bef55..5ebd8cb81416 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -16,6 +16,10 @@ package com.google.cloud.pubsub.v1; +import static com.google.cloud.pubsub.v1.StreamingSubscriberConnection.DEFAULT_STREAM_ACK_DEADLINE; +import static com.google.cloud.pubsub.v1.StreamingSubscriberConnection.MAX_STREAM_ACK_DEADLINE; +import static com.google.cloud.pubsub.v1.StreamingSubscriberConnection.MIN_STREAM_ACK_DEADLINE; +import static com.google.cloud.pubsub.v1.Subscriber.DEFAULT_MAX_DURATION_PER_ACK_EXTENSION; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -224,6 +228,67 @@ public ScheduledExecutorService getExecutor() { } } + @Test + public void testStreamAckDeadlineIsSetCorrectly() throws Exception { + int expectedChannelCount = 1; + // Deadline is smaller than the allowed streamAckDeadline. + int maxDurationPerAckExtension = 5; + + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + assertEquals( + expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); + assertEquals( + MIN_STREAM_ACK_DEADLINE.getSeconds(), + fakeSubscriberServiceImpl.getLastSeenRequest().getStreamAckDeadlineSeconds()); + + subscriber.stopAsync().awaitTerminated(); + + // Deadline is higher than the allowed streamAckDeadline. + maxDurationPerAckExtension = 700; + subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + assertEquals( + expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); + assertEquals( + MAX_STREAM_ACK_DEADLINE.getSeconds(), + fakeSubscriberServiceImpl.getLastSeenRequest().getStreamAckDeadlineSeconds()); + + subscriber.stopAsync().awaitTerminated(); + + // Deadline is within the allowed limits for streamAckDeadline. + maxDurationPerAckExtension = 100; + subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + assertEquals( + expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); + assertEquals( + maxDurationPerAckExtension, + fakeSubscriberServiceImpl.getLastSeenRequest().getStreamAckDeadlineSeconds()); + + subscriber.stopAsync().awaitTerminated(); + + // maxDurationPerAckExtension is unset. + maxDurationPerAckExtension = (int) DEFAULT_MAX_DURATION_PER_ACK_EXTENSION.getSeconds(); + subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + assertEquals( + expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); + assertEquals( + DEFAULT_STREAM_ACK_DEADLINE.getSeconds(), + fakeSubscriberServiceImpl.getLastSeenRequest().getStreamAckDeadlineSeconds()); + + subscriber.stopAsync().awaitTerminated(); + } + private Subscriber startSubscriber(Builder testSubscriberBuilder) { Subscriber subscriber = testSubscriberBuilder.build(); subscriber.startAsync().awaitRunning(); From ff7075cb7637ed323a871453fcd1cb39b8e5bd4f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 24 Nov 2020 13:14:13 -0800 Subject: [PATCH 0530/2363] build(java): enable blunderbuss for samples (#450) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/a9921755-3c01-47bc-82bf-9fe63e66ce06/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/943bb78606d035001123030067dffcc34f4645f2 --- java-pubsub/.github/blunderbuss.yml | 7 +++++++ java-pubsub/synth.metadata | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 java-pubsub/.github/blunderbuss.yml diff --git a/java-pubsub/.github/blunderbuss.yml b/java-pubsub/.github/blunderbuss.yml new file mode 100644 index 000000000000..1a23ea42b141 --- /dev/null +++ b/java-pubsub/.github/blunderbuss.yml @@ -0,0 +1,7 @@ +# Configuration for the Blunderbuss GitHub app. For more info see +# https://github.com/googleapis/repo-automation-bots/tree/master/packages/blunderbuss +assign_prs_by: +- labels: + - samples + to: + - googleapis/java-samples-reviewers \ No newline at end of file diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 4648b4bfaeea..9ce3db9de6ad 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "c92c7fd06e28e13533024997ef8b20e909bba817" + "sha": "c63dc255dff55982fca2e4cf0e955c47614dc291" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "68742c6016bf0d16948a572633d17955a8737414" + "sha": "943bb78606d035001123030067dffcc34f4645f2" } } ], @@ -40,6 +40,7 @@ ".github/ISSUE_TEMPLATE/feature_request.md", ".github/ISSUE_TEMPLATE/support_request.md", ".github/PULL_REQUEST_TEMPLATE.md", + ".github/blunderbuss.yml", ".github/generated-files-bot.yml", ".github/readme/synth.py", ".github/release-please.yml", From c66873e416bdd0c1960885d6c64f38a4e261bd2f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 25 Nov 2020 07:11:36 -0800 Subject: [PATCH 0531/2363] chore: release 1.110.0 (#449) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 1c9d636abbc8..cc2ea8aa9145 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.110.0](https://www.github.com/googleapis/java-pubsub/compare/v1.109.0...v1.110.0) (2020-11-24) + + +### Features + +* make the stream ack deadline congruent with maxDurationPerAckExtension ([#447](https://www.github.com/googleapis/java-pubsub/issues/447)) ([c63dc25](https://www.github.com/googleapis/java-pubsub/commit/c63dc255dff55982fca2e4cf0e955c47614dc291)) + ## [1.109.0](https://www.github.com/googleapis/java-pubsub/compare/v1.108.7...v1.109.0) (2020-11-17) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e5f5b66817cb..82dd3137b361 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.109.1-SNAPSHOT + 1.110.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.91.1-SNAPSHOT + 1.92.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.91.1-SNAPSHOT + 1.92.0 com.google.cloud google-cloud-pubsub - 1.109.1-SNAPSHOT + 1.110.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 58d775566441..2e0e62fd4875 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.109.1-SNAPSHOT + 1.110.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.109.1-SNAPSHOT + 1.110.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 615f904e753b..7c7782fc97fe 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.91.1-SNAPSHOT + 1.92.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.109.1-SNAPSHOT + 1.110.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4949af28cb68..dbfa581f2383 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.109.1-SNAPSHOT + 1.110.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.91.1-SNAPSHOT + 1.92.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.91.1-SNAPSHOT + 1.92.0 com.google.cloud google-cloud-pubsub - 1.109.1-SNAPSHOT + 1.110.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 395ef9e78c7a..2b13d8919d36 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.91.1-SNAPSHOT + 1.92.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.109.1-SNAPSHOT + 1.110.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 99e6a3806bc5..ece1fe2ca816 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.109.1-SNAPSHOT + 1.110.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 30ce922e60a6..e7a36aea001d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.91.0:1.91.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.91.0:1.91.1-SNAPSHOT -google-cloud-pubsub:1.109.0:1.109.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.92.0:1.92.0 +grpc-google-cloud-pubsub-v1:1.92.0:1.92.0 +google-cloud-pubsub:1.110.0:1.110.0 \ No newline at end of file From 3a89bf3aeca64de8bf4d79f7ba866738f4ce2f08 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Dec 2020 22:26:26 +0100 Subject: [PATCH 0532/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 (#452) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.15.0` -> `0.16.0` | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.16.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0160-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0150v0160-2020-12-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.15.0...v0.16.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.0 ([#​225](https://www.github.com/googleapis/java-shared-dependencies/issues/225)) ([b78a1ef](https://www.github.com/googleapis/java-shared-dependencies/commit/b78a1ef83ad946b0d29cd0dff46e48fbde44d120)) - update dependency com.google.api-client:google-api-client-bom to v1.31.1 ([#​215](https://www.github.com/googleapis/java-shared-dependencies/issues/215)) ([08d643a](https://www.github.com/googleapis/java-shared-dependencies/commit/08d643aaf289984b87d734274830712af82585b6)) - update dependency com.google.protobuf:protobuf-bom to v3.14.0 ([#​217](https://www.github.com/googleapis/java-shared-dependencies/issues/217)) ([01a9c64](https://www.github.com/googleapis/java-shared-dependencies/commit/01a9c6442906e8482a53712eba95ccc6f7040928)) - update dependency io.grpc:grpc-bom to v1.34.0 ([#​228](https://www.github.com/googleapis/java-shared-dependencies/issues/228)) ([425d1ea](https://www.github.com/googleapis/java-shared-dependencies/commit/425d1eab2a046c365f816f946576e4030e7c3696)) - update gax.version to v1.60.1 ([#​223](https://www.github.com/googleapis/java-shared-dependencies/issues/223)) ([84c75bd](https://www.github.com/googleapis/java-shared-dependencies/commit/84c75bdbd3f86ef7187373289ee08ad3a0c24719)) - update google.core.version to v1.94.0 ([#​212](https://www.github.com/googleapis/java-shared-dependencies/issues/212)) ([764ef5e](https://www.github.com/googleapis/java-shared-dependencies/commit/764ef5e9a2272cd9244a8fc5cc107ffacf9e9d5b))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index dbfa581f2383..1bf94bcb58db 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.15.0 + 0.16.0 pom import From 827c2eeaece2ee3ba9acf68459439b6e70bec405 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2020 22:22:18 +0000 Subject: [PATCH 0533/2363] chore: release 1.110.1-SNAPSHOT (#453) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 82dd3137b361..9b66ed3dd4ff 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.110.0 + 1.110.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.0 + 1.92.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.0 + 1.92.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.110.0 + 1.110.1-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2e0e62fd4875..0b5d52add57c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.110.0 + 1.110.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.110.0 + 1.110.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7c7782fc97fe..04b701fee1d8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.0 + 1.92.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.0 + 1.110.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1bf94bcb58db..2343f156fdae 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.110.0 + 1.110.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.0 + 1.92.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.0 + 1.92.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.110.0 + 1.110.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2b13d8919d36..16c011c0b004 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.0 + 1.92.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.0 + 1.110.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ece1fe2ca816..3af5b85441b3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.110.0 + 1.110.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e7a36aea001d..b7180c997962 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.92.0:1.92.0 -grpc-google-cloud-pubsub-v1:1.92.0:1.92.0 -google-cloud-pubsub:1.110.0:1.110.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.92.0:1.92.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.92.0:1.92.1-SNAPSHOT +google-cloud-pubsub:1.110.0:1.110.1-SNAPSHOT \ No newline at end of file From 23ca2bb72537a3b76fd17819448c72bc8f4f8e3d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2020 22:50:11 +0000 Subject: [PATCH 0534/2363] chore: release 1.110.1 (#454) :robot: I have created a release \*beep\* \*boop\* --- ### [1.110.1](https://www.github.com/googleapis/java-pubsub/compare/v1.110.0...v1.110.1) (2020-12-02) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#452](https://www.github.com/googleapis/java-pubsub/issues/452)) ([3a89bf3](https://www.github.com/googleapis/java-pubsub/commit/3a89bf3aeca64de8bf4d79f7ba866738f4ce2f08)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index cc2ea8aa9145..de38b9795fef 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.110.1](https://www.github.com/googleapis/java-pubsub/compare/v1.110.0...v1.110.1) (2020-12-02) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#452](https://www.github.com/googleapis/java-pubsub/issues/452)) ([6f8d0bb](https://www.github.com/googleapis/java-pubsub/commit/6f8d0bbbfe1b05541e916520c1dfb715ccce03b0)) + ## [1.110.0](https://www.github.com/googleapis/java-pubsub/compare/v1.109.0...v1.110.0) (2020-11-24) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9b66ed3dd4ff..6019c236e83a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.110.1-SNAPSHOT + 1.110.1 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.1-SNAPSHOT + 1.92.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.1-SNAPSHOT + 1.92.1 com.google.cloud google-cloud-pubsub - 1.110.1-SNAPSHOT + 1.110.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 0b5d52add57c..bee8783a0dda 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.110.1-SNAPSHOT + 1.110.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.110.1-SNAPSHOT + 1.110.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 04b701fee1d8..e7549ad8cfbe 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.1-SNAPSHOT + 1.92.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.1-SNAPSHOT + 1.110.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2343f156fdae..88a122b9dff1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.110.1-SNAPSHOT + 1.110.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.1-SNAPSHOT + 1.92.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.1-SNAPSHOT + 1.92.1 com.google.cloud google-cloud-pubsub - 1.110.1-SNAPSHOT + 1.110.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 16c011c0b004..35498a1a6f72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.1-SNAPSHOT + 1.92.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.1-SNAPSHOT + 1.110.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3af5b85441b3..207512a3015a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.110.1-SNAPSHOT + 1.110.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b7180c997962..8c217319a4f7 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.92.0:1.92.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.92.0:1.92.1-SNAPSHOT -google-cloud-pubsub:1.110.0:1.110.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.92.1:1.92.1 +grpc-google-cloud-pubsub-v1:1.92.1:1.92.1 +google-cloud-pubsub:1.110.1:1.110.1 \ No newline at end of file From b78077b3ade0d708f75df44c0cd0ecc0d4daa0bb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Dec 2020 09:30:09 +0000 Subject: [PATCH 0535/2363] chore: release 1.110.2-SNAPSHOT (#455) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6019c236e83a..0fa475b92aea 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.110.1 + 1.110.2-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.1 + 1.92.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.1 + 1.92.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.110.1 + 1.110.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index bee8783a0dda..f9eef56c0ef0 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.110.1 + 1.110.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.110.1 + 1.110.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e7549ad8cfbe..67e74ca70700 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.1 + 1.92.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.1 + 1.110.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 88a122b9dff1..e5ca53a908c0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.110.1 + 1.110.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.1 + 1.92.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.1 + 1.92.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.110.1 + 1.110.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 35498a1a6f72..dce9c9804774 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.1 + 1.92.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.1 + 1.110.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 207512a3015a..725382f023bb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.110.1 + 1.110.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8c217319a4f7..d9826922bf60 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.92.1:1.92.1 -grpc-google-cloud-pubsub-v1:1.92.1:1.92.1 -google-cloud-pubsub:1.110.1:1.110.1 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.92.1:1.92.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.92.1:1.92.2-SNAPSHOT +google-cloud-pubsub:1.110.1:1.110.2-SNAPSHOT \ No newline at end of file From 016eb1d12e286d65844ce4fc13f9342036d5e7a7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 8 Dec 2020 11:22:15 -0800 Subject: [PATCH 0536/2363] chore: Update publish_javadoc.sh (#456) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/32df9195-12c5-4c5b-953a-413f90fdaa00/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/5d11bd2888c38ce1fb6fa6bf25494a4219a73928 --- java-pubsub/.kokoro/release/publish_javadoc.sh | 7 ++++--- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc.sh b/java-pubsub/.kokoro/release/publish_javadoc.sh index 802b57fd7af7..3dae667db5bc 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc.sh @@ -38,8 +38,8 @@ python3 -m pip install gcp-docuploader # compile all packages mvn clean install -B -q -DskipTests=true -NAME=google-cloud-pubsub -VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) +export NAME=google-cloud-pubsub +export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # build the docs mvn site -B -q @@ -59,7 +59,8 @@ python3 -m docuploader upload . \ popd -# V2 +# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates. + mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/" pushd target/devsite/reference diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 9ce3db9de6ad..d938ff2f1249 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "c63dc255dff55982fca2e4cf0e955c47614dc291" + "sha": "090e3bbee7a02f4e07383f28f4d39b770f53f632" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "943bb78606d035001123030067dffcc34f4645f2" + "sha": "5d11bd2888c38ce1fb6fa6bf25494a4219a73928" } } ], From 510ae28debc64cf1b01ee52ca13546594bb9df9c Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Mon, 14 Dec 2020 11:15:01 -0800 Subject: [PATCH 0537/2363] fix: `setParallelPullCount` documentation (#459) * fix: `setParallelPullCount` documentation * Update google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java Co-authored-by: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Co-authored-by: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> --- .../src/main/java/com/google/cloud/pubsub/v1/Subscriber.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 948de0b7ad53..262cf7351c9e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -573,7 +573,10 @@ public Builder setSystemExecutorProvider(ExecutorProvider executorProvider) { return this; } - /** Sets the number of pullers used to pull messages from the subscription. Defaults to one. */ + /** + * Sets the number of StreamingPull streams to pull messages from the subscription. Defaults to + * one. + */ public Builder setParallelPullCount(int parallelPullCount) { this.parallelPullCount = parallelPullCount; return this; From 6134d896f307e7283085173de1bfc43d0fb58c94 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 14 Dec 2020 11:34:06 -0800 Subject: [PATCH 0538/2363] chore: regenerate README (#461) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-12-14 19:20:15,157 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2020-12-14 19:20:16,033 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/762494b7-f14a-4aae-9592-422b7a855cb5/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 25337010929e..f46579cfd8ac 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "34c831540bd5d85c0285da421eac04900e656ffa" + "sha": "b399f60cf324ab21c15697bd697902aa1fde3e80" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "39b7149da4026765385403632db3c6f63db96b2c" + "sha": "996775eca5fd934edac3c2ae34b80ff0395b1717" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b781255d414c..6b61b64accb8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -38,18 +38,18 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.108.7 + 1.109.0 ``` If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.109.0' +compile 'com.google.cloud:google-cloud-pubsub:1.110.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.109.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.110.1" ``` ## Authentication @@ -300,6 +300,8 @@ Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] +Java is a registered trademark of Oracle and/or its affiliates. + [product-docs]: https://cloud.google.com/pubsub/docs/ [javadocs]: https://googleapis.dev/java/google-cloud-pubsub/latest/index.html [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.svg From 8da6aedc9224ade0e36a0faf776ddba21acbf3be Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Dec 2020 20:54:06 +0100 Subject: [PATCH 0539/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.110.1 (#451) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | minor | `1.109.0` -> `1.110.1` | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.110.1`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11101-httpswwwgithubcomgoogleapisjava-pubsubcomparev11100v11101-2020-12-02) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.110.0...v1.110.1) ### [`v1.110.0`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11100-httpswwwgithubcomgoogleapisjava-pubsubcomparev11090v11100-2020-11-24) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.109.0...v1.110.0) ##### Features - make the stream ack deadline congruent with maxDurationPerAckExtension ([#​447](https://www.github.com/googleapis/java-pubsub/issues/447)) ([a7e724b](https://www.github.com/googleapis/java-pubsub/commit/a7e724b14680912cc7c43d33516a9cbd96ae73ae))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e2e602a600b9..3d7a21f36766 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.109.0 + 1.110.1 From 268f2357741c786db7a3164d1909e01dcbd65375 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 14 Dec 2020 12:54:15 -0800 Subject: [PATCH 0540/2363] chore: regenerate README (#463) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-12-14 19:56:32,722 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2020-12-14 19:56:33,618 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/a7a306fd-0ea0-4693-aa8b-d1b3f8ac6b58/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index f46579cfd8ac..2023878fddb1 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "b399f60cf324ab21c15697bd697902aa1fde3e80" + "sha": "012bc0dd9d12050e1d9990b6b8b53f6a0b3ce95d" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6b61b64accb8..470dfda48cc6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.109.0 + 1.110.1 ``` From 49ff9b4acecfa86f6254f0b395f293b6bc8786c6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Dec 2020 22:36:30 +0100 Subject: [PATCH 0541/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 (#462) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e5ca53a908c0..803a59d240e4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.16.0 + 0.16.1 pom import From 9aa04b721bb83d1b4dbba7581a884c8304d93272 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 14 Dec 2020 22:20:09 +0000 Subject: [PATCH 0542/2363] chore: release 1.110.2 (#460) :robot: I have created a release \*beep\* \*boop\* --- ### [1.110.2](https://www.github.com/googleapis/java-pubsub/compare/v1.110.1...v1.110.2) (2020-12-14) ### Bug Fixes * `setParallelPullCount` documentation ([#459](https://www.github.com/googleapis/java-pubsub/issues/459)) ([510ae28](https://www.github.com/googleapis/java-pubsub/commit/510ae28debc64cf1b01ee52ca13546594bb9df9c)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([#462](https://www.github.com/googleapis/java-pubsub/issues/462)) ([49ff9b4](https://www.github.com/googleapis/java-pubsub/commit/49ff9b4acecfa86f6254f0b395f293b6bc8786c6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index de38b9795fef..4827a28b6854 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +### [1.110.2](https://www.github.com/googleapis/java-pubsub/compare/v1.110.1...v1.110.2) (2020-12-14) + + +### Bug Fixes + +* `setParallelPullCount` documentation ([#459](https://www.github.com/googleapis/java-pubsub/issues/459)) ([b399f60](https://www.github.com/googleapis/java-pubsub/commit/b399f60cf324ab21c15697bd697902aa1fde3e80)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([#462](https://www.github.com/googleapis/java-pubsub/issues/462)) ([1326484](https://www.github.com/googleapis/java-pubsub/commit/13264848f5124d7ad388c1cd1423447aab2aa512)) + ### [1.110.1](https://www.github.com/googleapis/java-pubsub/compare/v1.110.0...v1.110.1) (2020-12-02) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0fa475b92aea..155141f33318 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.110.2-SNAPSHOT + 1.110.2 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.2-SNAPSHOT + 1.92.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.2-SNAPSHOT + 1.92.2 com.google.cloud google-cloud-pubsub - 1.110.2-SNAPSHOT + 1.110.2
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f9eef56c0ef0..d7b0bfb0d571 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.110.2-SNAPSHOT + 1.110.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.110.2-SNAPSHOT + 1.110.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 67e74ca70700..07fabb66896a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.2-SNAPSHOT + 1.92.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.2-SNAPSHOT + 1.110.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 803a59d240e4..95aac5403b16 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.110.2-SNAPSHOT + 1.110.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.2-SNAPSHOT + 1.92.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.2-SNAPSHOT + 1.92.2 com.google.cloud google-cloud-pubsub - 1.110.2-SNAPSHOT + 1.110.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index dce9c9804774..2ce787083347 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.2-SNAPSHOT + 1.92.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.2-SNAPSHOT + 1.110.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 725382f023bb..e12dff5419c7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.110.2-SNAPSHOT + 1.110.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d9826922bf60..20fc1cdd2a1c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.92.1:1.92.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.92.1:1.92.2-SNAPSHOT -google-cloud-pubsub:1.110.1:1.110.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.92.2:1.92.2 +grpc-google-cloud-pubsub-v1:1.92.2:1.92.2 +google-cloud-pubsub:1.110.2:1.110.2 \ No newline at end of file From 7efee536b0f98c42803f62857728e51b463ff67a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 15 Dec 2020 09:06:20 -0800 Subject: [PATCH 0543/2363] chore: release 1.110.3-SNAPSHOT (#465) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 155141f33318..68b0e3751364 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.110.2 + 1.110.3-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.2 + 1.92.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.2 + 1.92.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.110.2 + 1.110.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d7b0bfb0d571..081327296d59 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.110.2 + 1.110.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.110.2 + 1.110.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 07fabb66896a..ac8c9b6d3d84 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.2 + 1.92.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.2 + 1.110.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 95aac5403b16..305b90bd1a0f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.110.2 + 1.110.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.2 + 1.92.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.2 + 1.92.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.110.2 + 1.110.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2ce787083347..8d5c3de1a677 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.2 + 1.92.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.2 + 1.110.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e12dff5419c7..69430f95283f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.110.2 + 1.110.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 20fc1cdd2a1c..14b8ae664d9d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.92.2:1.92.2 -grpc-google-cloud-pubsub-v1:1.92.2:1.92.2 -google-cloud-pubsub:1.110.2:1.110.2 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.92.2:1.92.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.92.2:1.92.3-SNAPSHOT +google-cloud-pubsub:1.110.2:1.110.3-SNAPSHOT \ No newline at end of file From 313312877f2703ff57285cfd12bfed3ec4a4caa0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Dec 2020 19:36:07 +0100 Subject: [PATCH 0544/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 (#466) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.16.1` -> `0.17.0` | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.17.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0170-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0161v0170-2020-12-15) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.16.1...v0.17.0) ##### Dependencies - update dependency com.google.guava:guava-bom to v30.1-android ([#​236](https://www.github.com/googleapis/java-shared-dependencies/issues/236)) ([78ebf7f](https://www.github.com/googleapis/java-shared-dependencies/commit/78ebf7fcec3ec0308ccd5103b719f02dde7ec6d8)) - update dependency io.grpc:grpc-bom to v1.34.1 ([#​238](https://www.github.com/googleapis/java-shared-dependencies/issues/238)) ([ee7e020](https://www.github.com/googleapis/java-shared-dependencies/commit/ee7e020a4631f2b288d1c6f5d681423d156e3c2d)) - update iam.version to v1.0.5 ([#​237](https://www.github.com/googleapis/java-shared-dependencies/issues/237)) ([bbe6be6](https://www.github.com/googleapis/java-shared-dependencies/commit/bbe6be650a93cf365f2439ae9c8bebf2ade83ddd)) ##### [0.16.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.16.0...v0.16.1) (2020-12-14) ##### Dependencies - rollback gRPC to 1.33.1 ([#​234](https://www.github.com/googleapis/java-shared-dependencies/issues/234)) ([67cc384](https://www.github.com/googleapis/java-shared-dependencies/commit/67cc384bacab8592d5bbc92db2469affee473eb7)) - update dependency com.google.auth:google-auth-library-bom to v0.22.1 ([#​229](https://www.github.com/googleapis/java-shared-dependencies/issues/229)) ([1c13161](https://www.github.com/googleapis/java-shared-dependencies/commit/1c13161fa289cd5f3923f389fd5b14f3b7b4a84d)) - update dependency com.google.auth:google-auth-library-bom to v0.22.2 ([#​235](https://www.github.com/googleapis/java-shared-dependencies/issues/235)) ([67434eb](https://www.github.com/googleapis/java-shared-dependencies/commit/67434eb4bb0789abcabb3055155672b2c2e70125)) - update iam.version to v1.0.4 ([#​231](https://www.github.com/googleapis/java-shared-dependencies/issues/231)) ([5edf99e](https://www.github.com/googleapis/java-shared-dependencies/commit/5edf99e0149a1b70eb52b8921e9eb04fb84d9160))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 305b90bd1a0f..2bce2064699d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.16.1 + 0.17.0 pom import From 2eea4c493d0feec7881191e08ae9a220834a0bed Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 15 Dec 2020 19:10:08 +0000 Subject: [PATCH 0545/2363] chore: release 1.110.3 (#467) :robot: I have created a release \*beep\* \*boop\* --- ### [1.110.3](https://www.github.com/googleapis/java-pubsub/compare/v1.110.2...v1.110.3) (2020-12-15) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#466](https://www.github.com/googleapis/java-pubsub/issues/466)) ([3133128](https://www.github.com/googleapis/java-pubsub/commit/313312877f2703ff57285cfd12bfed3ec4a4caa0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 4827a28b6854..99ad341f0521 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.110.3](https://www.github.com/googleapis/java-pubsub/compare/v1.110.2...v1.110.3) (2020-12-15) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#466](https://www.github.com/googleapis/java-pubsub/issues/466)) ([e96ae16](https://www.github.com/googleapis/java-pubsub/commit/e96ae16afa7829a087129abccd94a2dafcf25e9a)) + ### [1.110.2](https://www.github.com/googleapis/java-pubsub/compare/v1.110.1...v1.110.2) (2020-12-14) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 68b0e3751364..856cfdd4faab 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.110.3-SNAPSHOT + 1.110.3 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.3-SNAPSHOT + 1.92.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.3-SNAPSHOT + 1.92.3 com.google.cloud google-cloud-pubsub - 1.110.3-SNAPSHOT + 1.110.3
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 081327296d59..3f6687093109 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.110.3-SNAPSHOT + 1.110.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.110.3-SNAPSHOT + 1.110.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ac8c9b6d3d84..fb6104ed1fb9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.3-SNAPSHOT + 1.92.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.3-SNAPSHOT + 1.110.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2bce2064699d..e02a1e276c26 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.110.3-SNAPSHOT + 1.110.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.3-SNAPSHOT + 1.92.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.3-SNAPSHOT + 1.92.3 com.google.cloud google-cloud-pubsub - 1.110.3-SNAPSHOT + 1.110.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 8d5c3de1a677..427b460daaa3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.3-SNAPSHOT + 1.92.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.3-SNAPSHOT + 1.110.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 69430f95283f..8e882dbab381 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.110.3-SNAPSHOT + 1.110.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 14b8ae664d9d..66afc0058975 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.92.2:1.92.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.92.2:1.92.3-SNAPSHOT -google-cloud-pubsub:1.110.2:1.110.3-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.92.3:1.92.3 +grpc-google-cloud-pubsub-v1:1.92.3:1.92.3 +google-cloud-pubsub:1.110.3:1.110.3 \ No newline at end of file From 4c3b3ee14cb368e718e7afe7f8401040c152e188 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Dec 2020 23:30:29 +0100 Subject: [PATCH 0546/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.0 (#468) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `16.1.0` -> `16.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 19384bcc229c..0f8435e84c15 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 16.1.0 + 16.2.0 pom import From fe4054233cb07924889107430825052e282b1ab4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 15 Dec 2020 23:06:16 +0000 Subject: [PATCH 0547/2363] chore: release 1.110.4-SNAPSHOT (#469) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 856cfdd4faab..fd631b618520 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.110.3 + 1.110.4-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.3 + 1.92.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.3 + 1.92.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.110.3 + 1.110.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3f6687093109..7b5127007bf0 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.110.3 + 1.110.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.110.3 + 1.110.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fb6104ed1fb9..f338c38de77b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.3 + 1.92.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.3 + 1.110.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e02a1e276c26..f855a9660fb4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.110.3 + 1.110.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.3 + 1.92.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.3 + 1.92.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.110.3 + 1.110.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 427b460daaa3..dd71cf1428f5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.3 + 1.92.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.3 + 1.110.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8e882dbab381..fbeed8adfce7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.110.3 + 1.110.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 66afc0058975..e9a840f4c4f9 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.92.3:1.92.3 -grpc-google-cloud-pubsub-v1:1.92.3:1.92.3 -google-cloud-pubsub:1.110.3:1.110.3 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.92.3:1.92.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.92.3:1.92.4-SNAPSHOT +google-cloud-pubsub:1.110.3:1.110.4-SNAPSHOT \ No newline at end of file From 1b752e74e2c42e988b88eeb0f82ef7070ea468ea Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 15 Dec 2020 15:20:12 -0800 Subject: [PATCH 0548/2363] chore: regenerate README (#470) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2020-12-15 22:33:54,227 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2020-12-15 22:33:55,185 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/75d98876-1834-4741-abe5-caa8a87dd737/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 2023878fddb1..d70be05a68fe 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "012bc0dd9d12050e1d9990b6b8b53f6a0b3ce95d" + "sha": "4af382dd3fc6d63f60d555852ef6281b36172a55" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 470dfda48cc6..519e5dff1cfd 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.1.0 + 16.2.0 pom import From 5aa0cb304ad1c2189ba35fa7882f5384b333e8f9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 16 Dec 2020 08:44:21 -0800 Subject: [PATCH 0549/2363] ci(java): ignore bot users for generate-files-bot (#471) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/83940821-33f1-4a41-b21f-9ed7fe86303a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/3f67ceece7e797a5736a25488aae35405649b90b --- java-pubsub/.github/generated-files-bot.yml | 4 ++++ java-pubsub/synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/generated-files-bot.yml b/java-pubsub/.github/generated-files-bot.yml index 20f3acc28172..47c2ba132e01 100644 --- a/java-pubsub/.github/generated-files-bot.yml +++ b/java-pubsub/.github/generated-files-bot.yml @@ -5,3 +5,7 @@ externalManifests: - type: json file: '.github/readme/synth.metadata/synth.metadata' jsonpath: '$.generatedFiles[*]' +ignoreAuthors: +- 'renovate-bot' +- 'yoshi-automation' +- 'release-please[bot]' diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index d938ff2f1249..decbf78fb191 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "090e3bbee7a02f4e07383f28f4d39b770f53f632" + "sha": "947ea04e5600ed5f3d36687d61272552b7131cdc" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5d11bd2888c38ce1fb6fa6bf25494a4219a73928" + "sha": "3f67ceece7e797a5736a25488aae35405649b90b" } } ], From 9ef81fce19b2418411152499e10d6033469df496 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 29 Dec 2020 14:37:50 -0800 Subject: [PATCH 0550/2363] chore(java): remove formatter action Source-Author: Jeff Ching Source-Date: Tue Dec 29 10:50:17 2020 -0800 Source-Repo: googleapis/synthtool Source-Sha: 6133907dbb3ddab204a17a15d5c53ec0aae9b033 Source-Link: https://github.com/googleapis/synthtool/commit/6133907dbb3ddab204a17a15d5c53ec0aae9b033 --- java-pubsub/.github/workflows/formatting.yaml | 25 ------------------- java-pubsub/synth.metadata | 5 ++-- 2 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 java-pubsub/.github/workflows/formatting.yaml diff --git a/java-pubsub/.github/workflows/formatting.yaml b/java-pubsub/.github/workflows/formatting.yaml deleted file mode 100644 index 6844407b4d97..000000000000 --- a/java-pubsub/.github/workflows/formatting.yaml +++ /dev/null @@ -1,25 +0,0 @@ -on: - pull_request_target: - types: [opened, synchronize] - branches: - - master -name: format -jobs: - format-code: - runs-on: ubuntu-latest - env: - ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }} - steps: - - uses: actions/checkout@v2 - with: - ref: ${{github.event.pull_request.head.ref}} - repository: ${{github.event.pull_request.head.repo.full_name}} - - uses: actions/setup-java@v1 - with: - java-version: 11 - - run: "mvn com.coveo:fmt-maven-plugin:format" - - uses: googleapis/code-suggester@v1 - with: - command: review - pull_number: ${{ github.event.pull_request.number }} - git_dir: '.' diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index decbf78fb191..ba55e23c8fe9 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "947ea04e5600ed5f3d36687d61272552b7131cdc" + "sha": "ad3b82d029f2ef4098f2f1fa9fd2878e969e50fb" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "3f67ceece7e797a5736a25488aae35405649b90b" + "sha": "6133907dbb3ddab204a17a15d5c53ec0aae9b033" } } ], @@ -49,7 +49,6 @@ ".github/workflows/approve-readme.yaml", ".github/workflows/auto-release.yaml", ".github/workflows/ci.yaml", - ".github/workflows/formatting.yaml", ".github/workflows/samples.yaml", ".kokoro/build.bat", ".kokoro/build.sh", From 6b20575076de3529cc20f7bd6099b1622256fbac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Jan 2021 22:28:17 +0100 Subject: [PATCH 0551/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.1 (#477) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `16.2.0` -> `16.2.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 0f8435e84c15..b78ce91c1421 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 16.2.0 + 16.2.1 pom import From 577588f34bed6cc18d2c53ac78866a550923a6f6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 7 Jan 2021 13:48:10 -0800 Subject: [PATCH 0552/2363] chore: regenerate README (#478) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-01-07 21:31:53,790 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-01-07 21:31:54,770 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/7e894976-b74d-4eb7-90f2-8e29ac471099/targets - [ ] To automatically regenerate this PR, check this box. --- .../.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 15 +++++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index d70be05a68fe..b48db835f8c0 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "4af382dd3fc6d63f60d555852ef6281b36172a55" + "sha": "03c3564a05ff0f087019424592a108b5688b52e7" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "996775eca5fd934edac3c2ae34b80ff0395b1717" + "sha": "41a4e56982620d3edcf110d76f4fcdfdec471ac8" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 519e5dff1cfd..76e92612e4c8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.2.0 + 16.2.1 pom import @@ -43,13 +43,20 @@ If you are using Maven without BOM, add this to your dependencies: ``` -If you are using Gradle, add this to your dependencies +If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.110.1' +implementation platform('com.google.cloud:libraries-bom:16.2.1') + +compile 'com.google.cloud:google-cloud-pubsub' +``` +If you are using Gradle without BOM, add this to your dependencies +```Groovy +compile 'com.google.cloud:google-cloud-pubsub:1.110.3' ``` + If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.110.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.110.3" ``` ## Authentication From 237a639e7a7f2da7a88ec59243ef4157c60375ee Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Jan 2021 23:16:40 +0100 Subject: [PATCH 0553/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.110.3 (#475) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | patch | `1.110.1` -> `1.110.3` | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.110.3`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11103-httpswwwgithubcomgoogleapisjava-pubsubcomparev11102v11103-2020-12-15) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.110.1...v1.110.3)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3d7a21f36766..5288eb9a9669 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.110.1 + 1.110.3 From 1413abdef51cb6ef61678e273750298a3506e965 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 7 Jan 2021 14:42:07 -0800 Subject: [PATCH 0554/2363] chore: regenerate README (#479) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-01-07 22:21:48,035 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-01-07 22:21:48,981 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/2cffbaac-9009-4e88-b999-c46206867bfd/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index b48db835f8c0..af8842e8631f 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "03c3564a05ff0f087019424592a108b5688b52e7" + "sha": "09e086c492d492df4d4ae6bdc5f9fdea45e5fffa" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "41a4e56982620d3edcf110d76f4fcdfdec471ac8" + "sha": "67f09bf301083798e7220137723222eb00b8f88a" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 76e92612e4c8..b725ed3c8ebf 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.110.1 + 1.110.3 ``` From 5dd67e2600e4de1023c3a47aea0dc80cb25c88c0 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Tue, 12 Jan 2021 12:06:02 -0800 Subject: [PATCH 0555/2363] fix: fix flakiness in subscriberIT integration test (#476) * fix: retrying sync pulls in subscriberIT test --- .../src/test/java/pubsub/SubscriberIT.java | 43 +++++++++++++++---- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java index f69acd8cbec9..aae4fb5af189 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -37,6 +37,7 @@ import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.util.ArrayList; +import java.util.HashSet; import java.util.List; import java.util.UUID; import org.junit.After; @@ -84,6 +85,32 @@ private static void publishSomeMessages(Integer numOfMessages) throws Exception ApiFutures.allAsList(messageIdFutures).get(); } + // Helper function to retry synchronous pull attempts until all outstanding messages are received. + private void syncPullWithRetries( + Integer numOfMessages, Integer maxRetries, CheckedRunnable syncPull) throws Exception { + HashSet outstandingMessages = new HashSet<>(); + for (int i = 0; i < numOfMessages; i++) { + outstandingMessages.add("Hello " + i); + } + int attempt = 1; + while ((outstandingMessages.size() > 0) && (attempt <= maxRetries)) { + syncPull.run(); + HashSet clone = (HashSet) outstandingMessages.clone(); + for (String message : clone) { + if (bout.toString().contains(message)) { + outstandingMessages.remove(message); + } + } + attempt++; + } + assertThat(outstandingMessages).isEmpty(); + } + + @FunctionalInterface + public interface CheckedRunnable { + void run() throws Exception; + } + @Rule public Timeout globalTimeout = Timeout.seconds(600); // 10 minute timeout @BeforeClass @@ -168,17 +195,17 @@ public void testSubscriber() throws Exception { publishSomeMessages(3); bout.reset(); // Test subscribe synchronously. - SubscribeSyncExample.subscribeSyncExample(projectId, subscriptionId, 10); - for (int i = 0; i < 3; i++) { - assertThat(bout.toString()).contains("Hello " + i); - } + syncPullWithRetries( + 3, 3, () -> SubscribeSyncExample.subscribeSyncExample(projectId, subscriptionId, 3)); publishSomeMessages(3); bout.reset(); // Test subscribe synchronously with lease management. - SubscribeSyncWithLeaseExample.subscribeSyncWithLeaseExample(projectId, subscriptionId, 10); - for (int i = 0; i < 3; i++) { - assertThat(bout.toString()).contains("Hello " + i); - } + syncPullWithRetries( + 3, + 3, + () -> + SubscribeSyncWithLeaseExample.subscribeSyncWithLeaseExample( + projectId, subscriptionId, 10)); } } From 9d635679a1060d682fcc28be343283893273e8bc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 14 Jan 2021 01:50:30 +0100 Subject: [PATCH 0556/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 (#482) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | minor | `0.17.0` -> `0.18.0` | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.18.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0180-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0171v0180-2021-01-13) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.17.1...v0.18.0) ##### Features - add commons-codec to dependencyManagement ([#​251](https://www.github.com/googleapis/java-shared-dependencies/issues/251)) ([4ee990d](https://www.github.com/googleapis/java-shared-dependencies/commit/4ee990d79c9207c81155f6ee9279308a2d4d0f9d)) ##### Dependencies - update dependency com.google.errorprone:error_prone_annotations to v2.5.0 ([#​247](https://www.github.com/googleapis/java-shared-dependencies/issues/247)) ([37c0861](https://www.github.com/googleapis/java-shared-dependencies/commit/37c0861cfb89f13a0682c98067c633b13b30b827)) ##### [0.17.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.17.0...v0.17.1) (2021-01-12) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.1 ([#​245](https://www.github.com/googleapis/java-shared-dependencies/issues/245)) ([5ffc8a0](https://www.github.com/googleapis/java-shared-dependencies/commit/5ffc8a0d173ea0222ac9610ece0ac2aeb1d17f27)) ### [`v0.17.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0171-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0170v0171-2021-01-12) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.17.0...v0.17.1)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f855a9660fb4..62b56fe618b0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.17.0 + 0.18.0 pom import From 9fb73f0dc7164af9f3b7a867d0ab5141c3d6e09e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 20 Jan 2021 21:25:56 +0100 Subject: [PATCH 0557/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v16.3.0 (#485) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b78ce91c1421..82f1eb5025df 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 16.2.1 + 16.3.0 pom import From d40483536f25bcd5085a9d036823e6c81a432493 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 20 Jan 2021 12:46:03 -0800 Subject: [PATCH 0558/2363] chore: regenerate README (#487) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-01-20 20:28:08,350 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-01-20 20:28:09,389 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/5895b462-369f-49b0-be2c-b5796105e348/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index af8842e8631f..b04b52e0f0aa 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "09e086c492d492df4d4ae6bdc5f9fdea45e5fffa" + "sha": "13825ac951adbeb92e98deab91579b32cbdb2f7c" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "67f09bf301083798e7220137723222eb00b8f88a" + "sha": "b259489b06b25f399768b74b8baa943991f38ea7" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b725ed3c8ebf..c5ccb85c2b3e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.2.1 + 16.3.0 pom import @@ -45,7 +45,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:16.2.1') +implementation platform('com.google.cloud:libraries-bom:16.3.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From caa0b2db8de1e270ce7a1ac1ebef3171c0c3edbf Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Thu, 21 Jan 2021 14:23:14 -0500 Subject: [PATCH 0559/2363] docs: Document potentially unexpected blocking behavior of publish() method (#370) * docs: Document potentially unexpected blocking behavior of publish() method. * docs: Run mvn fmt:format --- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 3 +++ .../java/com/google/cloud/pubsub/v1/PublisherInterface.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 07a550496586..aa140d7b93ee 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -206,6 +206,9 @@ public String getTopicNameString() { * Schedules the publishing of a message. The publishing of the message may occur immediately or * be delayed based on the publisher batching options. * + *

    This method blocks in the downcall if using LimitExceededBehavior.Block in the flow control + * settings. + * *

    Example of publishing a message. * *

    {@code
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java
    index 80a465053826..2a9d25b92453 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java
    @@ -28,6 +28,8 @@ public interface PublisherInterface {
        * Schedules the publishing of a message. The future will be returned with the message ID on
        * success or an exception on failure.
        *
    +   * 

    Some implementations of this method may block in the downcall until allowed by flow control. + * *

    Example of publishing a message. * *

    {@code
    
    From 1a6d495f78e3254ee1ca3db60639d29ec5243452 Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Thu, 21 Jan 2021 21:04:46 +0100
    Subject: [PATCH 0560/2363] deps: update dependency
     com.google.errorprone:error_prone_annotations to v2.5.1 (#484)
    
    ---
     java-pubsub/pom.xml | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml
    index 62b56fe618b0..e67e972eb077 100644
    --- a/java-pubsub/pom.xml
    +++ b/java-pubsub/pom.xml
    @@ -94,7 +94,7 @@
           
             com.google.errorprone
             error_prone_annotations
    -        2.4.0
    +        2.5.1
           
     
           
    
    From 9d2fefbac3b7866f302b43b105018a32e62be241 Mon Sep 17 00:00:00 2001
    From: hannahrogers-google
     <52459909+hannahrogers-google@users.noreply.github.com>
    Date: Thu, 21 Jan 2021 12:06:22 -0800
    Subject: [PATCH 0561/2363] fix: adding deprecated tags to deprecated methods
     (#472)
    
    * Modifying Publish example in README to match other examples given, and
    fix issue #6784
    
    * fix: Modifying Publish example in README to match other examples, and
    fix Issue #11
    
    * feat: Adding support for DLQs
    
    Adding delivery attempt count to PubsubMessages as a message attribute,
    and creating helper function to allow users to get the count without
    knowing implementation details.
    
    * Fix formatting
    
    * fix: making changes requested in pull request
    
    * fix: creating fix to not populate delivery attempt attribute when dead
    lettering is not enabled
    
    * Adding unit test for case in which a received message has no delivery attempt
    
    * Making MessageWaiter class more generic to also be used for outstanding
    ack operations
    
    * Waiting for acks to complete before shutting down a streaming subscriber
    connection
    
    * Fixing formatting error
    
    * fix: making sure all publishes complete before shutting down the
    publisher
    
    * adding default max outstanding request bytes
    
    * fix: make push endpoint valid https
    
    * fix: use default zero value if a flow control setting is not provided
    
    * fix lint issues
    
    * fix: better cleanup during publisher test
    
    * fix: format issues
    
    * fix: test timeouts should be a minute
    
    * fix: make subscriberIt less flaky
    
    * fix: add deprecated tag for deprecated methods
    
    * fix: retrying sync pulls in subscriberIT test
    
    * Revert "fix: retrying sync pulls in subscriberIT test"
    
    This reverts commit fef99561335f6e60e70ca7d0d00ac4d74a9f431e.
    ---
     java-pubsub/synth.py | 23 +++++++++++++++++------
     1 file changed, 17 insertions(+), 6 deletions(-)
    
    diff --git a/java-pubsub/synth.py b/java-pubsub/synth.py
    index 08906abd9ff8..dc1bcba5e752 100644
    --- a/java-pubsub/synth.py
    +++ b/java-pubsub/synth.py
    @@ -42,6 +42,7 @@
        * @throws com.google.api.gax.rpc.ApiException if the remote call fails
        * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead.
        */
    +  @Deprecated
       public final Policy getIamPolicy(String resource) {
         GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build();   
         return getIamPolicy(request);
    @@ -56,9 +57,9 @@
        * 

    Sample code: * *

    
    -   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    -   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
    +   *   Policy response = subscriptionAdminClient.getIamPolicy(formattedResource);
        * }
        * 
    * @@ -67,6 +68,7 @@ * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. */ + @Deprecated public final Policy getIamPolicy(String resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); return getIamPolicy(request); @@ -100,6 +102,7 @@ * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. */ + @Deprecated public final Policy setIamPolicy(String resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); @@ -116,10 +119,10 @@ *

    Sample code: * *

    
    -   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
        *   Policy policy = Policy.newBuilder().build();
    -   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
    +   *   Policy response = subscriptionAdminClient.setIamPolicy(formattedResource, policy);
        * }
        * 
    * @@ -131,6 +134,7 @@ * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. */ + @Deprecated public final Policy setIamPolicy(String resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); @@ -167,6 +171,7 @@ * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. */ + @Deprecated public final TestIamPermissionsResponse testIamPermissions( String resource, List permissions) { TestIamPermissionsRequest request = @@ -190,10 +195,10 @@ *

    Sample code: * *

    
    -   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
        *   List<String> permissions = new ArrayList<>();
    -   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
    +   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(formattedResource, permissions);
        * }
        * 
    * @@ -205,6 +210,7 @@ * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. */ + @Deprecated public final TestIamPermissionsResponse testIamPermissions( String resource, List permissions) { TestIamPermissionsRequest request = @@ -241,6 +247,7 @@ * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #createTopic(TopicName)} instead. */ + @Deprecated public final Topic createTopic(ProjectTopicName name) { Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); return createTopic(request); @@ -271,6 +278,7 @@ * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #deleteTopic(TopicName)} instead. */ + @Deprecated public final void deleteTopic(ProjectTopicName topic) { DeleteTopicRequest request = DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); @@ -299,6 +307,7 @@ * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #getTopic(TopicName)} instead. */ + @Deprecated public final Topic getTopic(ProjectTopicName topic) { GetTopicRequest request = GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); @@ -329,6 +338,7 @@ * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #listTopicSubscriptions(TopicName)} instead. */ + @Deprecated public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) { ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder() @@ -397,6 +407,7 @@ * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #createSubscription(ProjectSubscriptionName, TopicName, PushConfig, int)} instead. */ + @Deprecated public final Subscription createSubscription( ProjectSubscriptionName name, ProjectTopicName topic, From adda805d7190ee2cc61d5c3f95bd5f234edef0b3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Jan 2021 18:34:18 +0100 Subject: [PATCH 0562/2363] test(deps): update dependency com.google.truth:truth to v1.1.2 (#489) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.truth:truth](com/google/truth/truth) | `1.1` -> `1.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/compatibility-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/confidence-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e67e972eb077..16a2e2017005 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -113,7 +113,7 @@ com.google.truth truth - 1.1 + 1.1.2 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5288eb9a9669..4e1f23564288 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ com.google.truth truth - 1.1 + 1.1.2 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fbeed8adfce7..706ac1ddcea8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ com.google.truth truth - 1.1 + 1.1.2 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 82f1eb5025df..c1b71f68af23 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -68,7 +68,7 @@ com.google.truth truth - 1.1 + 1.1.2 test From 910d3a50cb8883d0c822af006dbec1bac68f1b37 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 26 Jan 2021 19:30:18 +0100 Subject: [PATCH 0563/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.10.0 (#491) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.9.4` -> `0.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.10.0/compatibility-slim/0.9.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.10.0/confidence-slim/0.9.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v0.10.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0100-httpswwwgithubcomgoogleapisjava-shared-configcomparev094v0100-2021-01-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.9.4...v0.10.0) ##### Features - adding pom profile to generate docfx yml from javadoc ([#​213](https://www.github.com/googleapis/java-shared-config/issues/213)) ([3527c47](https://www.github.com/googleapis/java-shared-config/commit/3527c47ff413d415f87fccca84358da2c837841d)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v8.39 ([#​209](https://www.github.com/googleapis/java-shared-config/issues/209)) ([fb53922](https://www.github.com/googleapis/java-shared-config/commit/fb539226d407001822a56c7fff792922cd85d1fe)) ##### [0.9.4](https://www.github.com/googleapis/java-shared-config/compare/v0.9.3...v0.9.4) (2020-10-21) ##### Documentation - Latest for Cloud-RAD ([#​199](https://www.github.com/googleapis/java-shared-config/issues/199)) ([34712af](https://www.github.com/googleapis/java-shared-config/commit/34712afac58aa0d148f0843026b3ff770ee030c2)) ##### [0.9.3](https://www.github.com/googleapis/java-shared-config/compare/v0.9.2...v0.9.3) (2020-10-15) ##### Dependencies - update auto-value-annotation.version to v1.7.4 ([#​157](https://www.github.com/googleapis/java-shared-config/issues/157)) ([5d7e394](https://www.github.com/googleapis/java-shared-config/commit/5d7e394d964010a3e32af492cec4be85aabc3ebf)) ##### [0.9.2](https://www.github.com/googleapis/java-shared-config/compare/v0.9.1...v0.9.2) (2020-07-02) ##### Dependencies - update dependency org.apache.maven.surefire:surefire-junit47 to v3.0.0-M5 ([#​180](https://www.github.com/googleapis/java-shared-config/issues/180)) ([802d9c5](https://www.github.com/googleapis/java-shared-config/commit/802d9c528d34b386face69ca75a014ce57fc3ac1)) ##### [0.9.1](https://www.github.com/googleapis/java-shared-config/compare/v0.9.0...v0.9.1) (2020-07-01) ##### Bug Fixes - maven-dependency-plugin configuration breaking downstream config ([#​174](https://www.github.com/googleapis/java-shared-config/issues/174)) ([507217f](https://www.github.com/googleapis/java-shared-config/commit/507217fe509cd4f16eb50c8075ab43229238e08d)) ##### Documentation - change Devsite output path to /java/docs/reference ([#​176](https://www.github.com/googleapis/java-shared-config/issues/176)) ([8b98af5](https://www.github.com/googleapis/java-shared-config/commit/8b98af54bf503d97bb86b6d02a5c4301b39384e1))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fd631b618520..8b110f32e2e6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.9.4 + 0.10.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 16a2e2017005..01190fb36ebc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.9.4 + 0.10.0 From f2a4a3b2624d5be8fae34130e6ebdb3513ac77e3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 28 Jan 2021 11:31:37 -0800 Subject: [PATCH 0564/2363] chore: update subscription admin client variable names (#492) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore: adding docfx doclet resource * chore: updating publish_javadoc to support docfx yml generation * fix: reducing commit Source-Author: Emily Ball Source-Date: Mon Jan 25 13:29:09 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 3816b080296d4d52975079fd26c110dd26ba25af Source-Link: https://github.com/googleapis/synthtool/commit/3816b080296d4d52975079fd26c110dd26ba25af --- java-pubsub/.kokoro/release/publish_javadoc.cfg | 3 +++ .../cloud/pubsub/v1/SubscriptionAdminClient.java | 16 ++++++++++------ .../google/cloud/pubsub/v1/TopicAdminClient.java | 7 +++++++ java-pubsub/synth.metadata | 4 ++-- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc.cfg b/java-pubsub/.kokoro/release/publish_javadoc.cfg index 9dcbbc9f7942..d42f9860641b 100644 --- a/java-pubsub/.kokoro/release/publish_javadoc.cfg +++ b/java-pubsub/.kokoro/release/publish_javadoc.cfg @@ -27,3 +27,6 @@ before_action { } } } + +# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index b53ef596dd33..68ea83759299 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -417,6 +417,7 @@ public final Subscription createSubscription(Subscription request) { * @deprecated Use {@link #createSubscription(ProjectSubscriptionName, TopicName, PushConfig, * int)} instead. */ + @Deprecated public final Subscription createSubscription( ProjectSubscriptionName name, ProjectTopicName topic, @@ -2118,10 +2119,10 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { *

    Sample code: * *

    
    -   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
        *   Policy policy = Policy.newBuilder().build();
    -   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
    +   *   Policy response = subscriptionAdminClient.setIamPolicy(formattedResource, policy);
        * }
        * 
    * @@ -2133,6 +2134,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. */ + @Deprecated public final Policy setIamPolicy(String resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); @@ -2197,9 +2199,9 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { *

    Sample code: * *

    
    -   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
    -   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
    +   *   Policy response = subscriptionAdminClient.getIamPolicy(formattedResource);
        * }
        * 
    * @@ -2208,6 +2210,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. */ + @Deprecated public final Policy getIamPolicy(String resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); return getIamPolicy(request); @@ -2278,10 +2281,10 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq *

    Sample code: * *

    
    -   * try (SubscriptionAdminClient topicAdminClient = SubscriptionAdminClient.create()) {
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
        *   List<String> permissions = new ArrayList<>();
    -   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
    +   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(formattedResource, permissions);
        * }
        * 
    * @@ -2293,6 +2296,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. */ + @Deprecated public final TestIamPermissionsResponse testIamPermissions( String resource, List permissions) { TestIamPermissionsRequest request = diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 482969622efe..f4b0120f830d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -255,6 +255,7 @@ public final Topic createTopic(String name) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #createTopic(TopicName)} instead. */ + @Deprecated public final Topic createTopic(ProjectTopicName name) { Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); return createTopic(request); @@ -538,6 +539,7 @@ public final Topic getTopic(String topic) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #getTopic(TopicName)} instead. */ + @Deprecated public final Topic getTopic(ProjectTopicName topic) { GetTopicRequest request = GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); @@ -792,6 +794,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(String t * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #listTopicSubscriptions(TopicName)} instead. */ + @Deprecated public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) { ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder() @@ -1106,6 +1109,7 @@ public final void deleteTopic(String topic) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #deleteTopic(TopicName)} instead. */ + @Deprecated public final void deleteTopic(ProjectTopicName topic) { DeleteTopicRequest request = DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); @@ -1214,6 +1218,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. */ + @Deprecated public final Policy setIamPolicy(String resource, Policy policy) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); @@ -1289,6 +1294,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. */ + @Deprecated public final Policy getIamPolicy(String resource) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); return getIamPolicy(request); @@ -1374,6 +1380,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * @throws com.google.api.gax.rpc.ApiException if the remote call fails * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. */ + @Deprecated public final TestIamPermissionsResponse testIamPermissions( String resource, List permissions) { TestIamPermissionsRequest request = diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index ba55e23c8fe9..aeb41e663bb3 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "ad3b82d029f2ef4098f2f1fa9fd2878e969e50fb" + "sha": "d30c26c008a1f642d89985b5cc42377547a782a9" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6133907dbb3ddab204a17a15d5c53ec0aae9b033" + "sha": "3816b080296d4d52975079fd26c110dd26ba25af" } } ], From a494283ee5d811edb12a74fe79d01b251de07a10 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 28 Jan 2021 22:14:25 -0800 Subject: [PATCH 0565/2363] build: migrate to flakybot (#495) --- java-pubsub/.kokoro/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 0427b61496da..14fc8b4ae94c 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -110,8 +110,8 @@ bash .kokoro/coerce_logs.sh if [[ "${ENABLE_BUILD_COP}" == "true" ]] then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop - ${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-pubsub + chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot + ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-pubsub fi echo "exiting with ${RETURN_CODE}" From b9ed38bd5b6357aca54b66eced25791b4bd09b93 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Feb 2021 16:39:38 -0800 Subject: [PATCH 0566/2363] feat: add schema service to gapic (#494) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * fix: switch pubsub/v1 retry config to grpc_service_config PiperOrigin-RevId: 336174031 Source-Author: Google APIs Source-Date: Thu Oct 8 15:10:41 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: bf79839b947d8b5c0f55516b963433faf23b54c4 Source-Link: https://github.com/googleapis/googleapis/commit/bf79839b947d8b5c0f55516b963433faf23b54c4 * feat: add schema service PiperOrigin-RevId: 348038736 Source-Author: Google APIs Source-Date: Thu Dec 17 09:47:03 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 41d8fbfec9d4bc4a8859f78185713950913b4bf3 Source-Link: https://github.com/googleapis/googleapis/commit/41d8fbfec9d4bc4a8859f78185713950913b4bf3 --- java-pubsub/.kokoro/build.sh | 4 +- .../cloud/pubsub/v1/SchemaServiceClient.java | 861 ++++++++++ .../pubsub/v1/SchemaServiceSettings.java | 248 +++ .../pubsub/v1/SubscriptionAdminClient.java | 8 +- .../cloud/pubsub/v1/TopicAdminClient.java | 16 +- .../google/cloud/pubsub/v1/package-info.java | 19 +- .../GrpcSchemaServiceCallableFactory.java | 115 ++ .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 322 ++++ .../pubsub/v1/stub/PublisherStubSettings.java | 92 +- .../pubsub/v1/stub/SchemaServiceStub.java | 76 + .../v1/stub/SchemaServiceStubSettings.java | 561 +++++++ .../v1/stub/SubscriberStubSettings.java | 118 +- .../cloud/pubsub/v1/MockSchemaService.java | 57 + .../pubsub/v1/MockSchemaServiceImpl.java | 156 ++ .../pubsub/v1/SchemaServiceClientTest.java | 356 ++++ .../v1/SubscriptionAdminClientTest.java | 5 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 26 +- .../com/google/pubsub/v1/PublisherGrpc.java | 16 +- .../google/pubsub/v1/SchemaServiceGrpc.java | 868 ++++++++++ .../com/google/pubsub/v1/SubscriberGrpc.java | 16 +- .../google/pubsub/v1/CreateSchemaRequest.java | 1156 +++++++++++++ .../v1/CreateSchemaRequestOrBuilder.java | 131 ++ .../google/pubsub/v1/DeleteSchemaRequest.java | 654 ++++++++ .../v1/DeleteSchemaRequestOrBuilder.java | 56 + .../java/com/google/pubsub/v1/Encoding.java | 178 ++ .../google/pubsub/v1/GetSchemaRequest.java | 815 +++++++++ .../pubsub/v1/GetSchemaRequestOrBuilder.java | 85 + .../google/pubsub/v1/ListSchemasRequest.java | 1099 ++++++++++++ .../v1/ListSchemasRequestOrBuilder.java | 127 ++ .../google/pubsub/v1/ListSchemasResponse.java | 1125 +++++++++++++ .../v1/ListSchemasResponseOrBuilder.java | 103 ++ .../com/google/pubsub/v1/PubsubProto.java | 628 +++---- .../java/com/google/pubsub/v1/Schema.java | 1131 +++++++++++++ .../java/com/google/pubsub/v1/SchemaName.java | 182 ++ .../com/google/pubsub/v1/SchemaOrBuilder.java | 106 ++ .../com/google/pubsub/v1/SchemaProto.java | 255 +++ .../com/google/pubsub/v1/SchemaSettings.java | 814 +++++++++ .../pubsub/v1/SchemaSettingsOrBuilder.java | 85 + .../java/com/google/pubsub/v1/SchemaView.java | 178 ++ .../main/java/com/google/pubsub/v1/Topic.java | 383 +++++ .../com/google/pubsub/v1/TopicOrBuilder.java | 52 + .../pubsub/v1/ValidateMessageRequest.java | 1486 +++++++++++++++++ .../v1/ValidateMessageRequestOrBuilder.java | 158 ++ .../pubsub/v1/ValidateMessageResponse.java | 454 +++++ .../v1/ValidateMessageResponseOrBuilder.java | 24 + .../pubsub/v1/ValidateSchemaRequest.java | 921 ++++++++++ .../v1/ValidateSchemaRequestOrBuilder.java | 91 + .../pubsub/v1/ValidateSchemaResponse.java | 454 +++++ .../v1/ValidateSchemaResponseOrBuilder.java | 24 + .../main/proto/google/pubsub/v1/pubsub.proto | 33 +- .../main/proto/google/pubsub/v1/schema.proto | 289 ++++ java-pubsub/synth.metadata | 43 +- 52 files changed, 16812 insertions(+), 448 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java create mode 100644 java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 14fc8b4ae94c..0427b61496da 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -110,8 +110,8 @@ bash .kokoro/coerce_logs.sh if [[ "${ENABLE_BUILD_COP}" == "true" ]] then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot - ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-pubsub + chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop + ${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-pubsub fi echo "exiting with ${RETURN_CODE}" diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java new file mode 100644 index 000000000000..4ccac0cfd406 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -0,0 +1,861 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.pubsub.v1.stub.SchemaServiceStub; +import com.google.cloud.pubsub.v1.stub.SchemaServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.CreateSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemasRequest; +import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import com.google.pubsub.v1.ValidateMessageRequest; +import com.google.pubsub.v1.ValidateMessageResponse; +import com.google.pubsub.v1.ValidateSchemaRequest; +import com.google.pubsub.v1.ValidateSchemaResponse; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: + * + *

    This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

    + * 
    + * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    + *   ProjectName parent = ProjectName.of("[PROJECT]");
    + *   Schema schema = Schema.newBuilder().build();
    + *   String schemaId = "";
    + *   Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
    + * }
    + * 
    + * 
    + * + *

    Note: close() needs to be called on the schemaServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

    The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

      + *
    1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
    2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
    3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
    + * + *

    See the individual methods for example code. + * + *

    Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

    This class can be customized by passing in a custom instance of SchemaServiceSettings to + * create(). For example: + * + *

    To customize credentials: + * + *

    + * 
    + * SchemaServiceSettings schemaServiceSettings =
    + *     SchemaServiceSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * SchemaServiceClient schemaServiceClient =
    + *     SchemaServiceClient.create(schemaServiceSettings);
    + * 
    + * 
    + * + * To customize the endpoint: + * + *
    + * 
    + * SchemaServiceSettings schemaServiceSettings =
    + *     SchemaServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * SchemaServiceClient schemaServiceClient =
    + *     SchemaServiceClient.create(schemaServiceSettings);
    + * 
    + * 
    + */ +@Generated("by gapic-generator") +public class SchemaServiceClient implements BackgroundResource { + private final SchemaServiceSettings settings; + private final SchemaServiceStub stub; + + /** Constructs an instance of SchemaServiceClient with default settings. */ + public static final SchemaServiceClient create() throws IOException { + return create(SchemaServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SchemaServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SchemaServiceClient create(SchemaServiceSettings settings) + throws IOException { + return new SchemaServiceClient(settings); + } + + /** + * Constructs an instance of SchemaServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer to use SchemaServiceSettings}. + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final SchemaServiceClient create(SchemaServiceStub stub) { + return new SchemaServiceClient(stub); + } + + /** + * Constructs an instance of SchemaServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected SchemaServiceClient(SchemaServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SchemaServiceStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected SchemaServiceClient(SchemaServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final SchemaServiceSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public SchemaServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   Schema schema = Schema.newBuilder().build();
    +   *   String schemaId = "";
    +   *   Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
    +   * }
    +   * 
    + * + * @param parent Required. The name of the project in which to create the schema. Format is + * `projects/{project-id}`. + * @param schema Required. The schema object to create. + *

    This schema's `name` parameter is ignored. The schema object returned by CreateSchema + * will have a `name` made using the given `parent` and `schema_id`. + * @param schemaId The ID to use for the schema, which will become the final component of the + * schema's resource name. + *

    See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name + * constraints. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema createSchema(ProjectName parent, Schema schema, String schemaId) { + CreateSchemaRequest request = + CreateSchemaRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSchema(schema) + .setSchemaId(schemaId) + .build(); + return createSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   Schema schema = Schema.newBuilder().build();
    +   *   String schemaId = "";
    +   *   Schema response = schemaServiceClient.createSchema(parent.toString(), schema, schemaId);
    +   * }
    +   * 
    + * + * @param parent Required. The name of the project in which to create the schema. Format is + * `projects/{project-id}`. + * @param schema Required. The schema object to create. + *

    This schema's `name` parameter is ignored. The schema object returned by CreateSchema + * will have a `name` made using the given `parent` and `schema_id`. + * @param schemaId The ID to use for the schema, which will become the final component of the + * schema's resource name. + *

    See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name + * constraints. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema createSchema(String parent, Schema schema, String schemaId) { + CreateSchemaRequest request = + CreateSchemaRequest.newBuilder() + .setParent(parent) + .setSchema(schema) + .setSchemaId(schemaId) + .build(); + return createSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   Schema schema = Schema.newBuilder().build();
    +   *   CreateSchemaRequest request = CreateSchemaRequest.newBuilder()
    +   *     .setParent(parent.toString())
    +   *     .setSchema(schema)
    +   *     .build();
    +   *   Schema response = schemaServiceClient.createSchema(request);
    +   * }
    +   * 
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema createSchema(CreateSchemaRequest request) { + return createSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Creates a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   Schema schema = Schema.newBuilder().build();
    +   *   CreateSchemaRequest request = CreateSchemaRequest.newBuilder()
    +   *     .setParent(parent.toString())
    +   *     .setSchema(schema)
    +   *     .build();
    +   *   ApiFuture<Schema> future = schemaServiceClient.createSchemaCallable().futureCall(request);
    +   *   // Do something
    +   *   Schema response = future.get();
    +   * }
    +   * 
    + */ + public final UnaryCallable createSchemaCallable() { + return stub.createSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   Schema response = schemaServiceClient.getSchema(name);
    +   * }
    +   * 
    + * + * @param name Required. The name of the schema to get. Format is + * `projects/{project}/schemas/{schema}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema getSchema(SchemaName name) { + GetSchemaRequest request = + GetSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   Schema response = schemaServiceClient.getSchema(name.toString());
    +   * }
    +   * 
    + * + * @param name Required. The name of the schema to get. Format is + * `projects/{project}/schemas/{schema}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema getSchema(String name) { + GetSchemaRequest request = GetSchemaRequest.newBuilder().setName(name).build(); + return getSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   GetSchemaRequest request = GetSchemaRequest.newBuilder()
    +   *     .setName(name.toString())
    +   *     .build();
    +   *   Schema response = schemaServiceClient.getSchema(request);
    +   * }
    +   * 
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema getSchema(GetSchemaRequest request) { + return getSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   GetSchemaRequest request = GetSchemaRequest.newBuilder()
    +   *     .setName(name.toString())
    +   *     .build();
    +   *   ApiFuture<Schema> future = schemaServiceClient.getSchemaCallable().futureCall(request);
    +   *   // Do something
    +   *   Schema response = future.get();
    +   * }
    +   * 
    + */ + public final UnaryCallable getSchemaCallable() { + return stub.getSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists schemas in a project. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * 
    + * + * @param parent Required. The name of the project in which to list schemas. Format is + * `projects/{project-id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSchemasPagedResponse listSchemas(ProjectName parent) { + ListSchemasRequest request = + ListSchemasRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSchemas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists schemas in a project. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   for (Schema element : schemaServiceClient.listSchemas(parent.toString()).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * 
    + * + * @param parent Required. The name of the project in which to list schemas. Format is + * `projects/{project-id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSchemasPagedResponse listSchemas(String parent) { + ListSchemasRequest request = ListSchemasRequest.newBuilder().setParent(parent).build(); + return listSchemas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists schemas in a project. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   ListSchemasRequest request = ListSchemasRequest.newBuilder()
    +   *     .setParent(parent.toString())
    +   *     .build();
    +   *   for (Schema element : schemaServiceClient.listSchemas(request).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * 
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) { + return listSchemasPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists schemas in a project. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   ListSchemasRequest request = ListSchemasRequest.newBuilder()
    +   *     .setParent(parent.toString())
    +   *     .build();
    +   *   ApiFuture<ListSchemasPagedResponse> future = schemaServiceClient.listSchemasPagedCallable().futureCall(request);
    +   *   // Do something
    +   *   for (Schema element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * 
    + */ + public final UnaryCallable + listSchemasPagedCallable() { + return stub.listSchemasPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists schemas in a project. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   ListSchemasRequest request = ListSchemasRequest.newBuilder()
    +   *     .setParent(parent.toString())
    +   *     .build();
    +   *   while (true) {
    +   *     ListSchemasResponse response = schemaServiceClient.listSchemasCallable().call(request);
    +   *     for (Schema element : response.getSchemasList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * 
    + */ + public final UnaryCallable listSchemasCallable() { + return stub.listSchemasCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   schemaServiceClient.deleteSchema(name);
    +   * }
    +   * 
    + * + * @param name Required. Name of the schema to delete. Format is + * `projects/{project}/schemas/{schema}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSchema(SchemaName name) { + DeleteSchemaRequest request = + DeleteSchemaRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   schemaServiceClient.deleteSchema(name.toString());
    +   * }
    +   * 
    + * + * @param name Required. Name of the schema to delete. Format is + * `projects/{project}/schemas/{schema}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSchema(String name) { + DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder().setName(name).build(); + deleteSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder()
    +   *     .setName(name.toString())
    +   *     .build();
    +   *   schemaServiceClient.deleteSchema(request);
    +   * }
    +   * 
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSchema(DeleteSchemaRequest request) { + deleteSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Deletes a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder()
    +   *     .setName(name.toString())
    +   *     .build();
    +   *   ApiFuture<Void> future = schemaServiceClient.deleteSchemaCallable().futureCall(request);
    +   *   // Do something
    +   *   future.get();
    +   * }
    +   * 
    + */ + public final UnaryCallable deleteSchemaCallable() { + return stub.deleteSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Validates a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   Schema schema = Schema.newBuilder().build();
    +   *   ValidateSchemaResponse response = schemaServiceClient.validateSchema(parent, schema);
    +   * }
    +   * 
    + * + * @param parent Required. The name of the project in which to validate schemas. Format is + * `projects/{project-id}`. + * @param schema Required. The schema object to validate. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ValidateSchemaResponse validateSchema(ProjectName parent, Schema schema) { + ValidateSchemaRequest request = + ValidateSchemaRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSchema(schema) + .build(); + return validateSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Validates a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   Schema schema = Schema.newBuilder().build();
    +   *   ValidateSchemaResponse response = schemaServiceClient.validateSchema(parent.toString(), schema);
    +   * }
    +   * 
    + * + * @param parent Required. The name of the project in which to validate schemas. Format is + * `projects/{project-id}`. + * @param schema Required. The schema object to validate. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ValidateSchemaResponse validateSchema(String parent, Schema schema) { + ValidateSchemaRequest request = + ValidateSchemaRequest.newBuilder().setParent(parent).setSchema(schema).build(); + return validateSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Validates a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   Schema schema = Schema.newBuilder().build();
    +   *   ValidateSchemaRequest request = ValidateSchemaRequest.newBuilder()
    +   *     .setParent(parent.toString())
    +   *     .setSchema(schema)
    +   *     .build();
    +   *   ValidateSchemaResponse response = schemaServiceClient.validateSchema(request);
    +   * }
    +   * 
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request) { + return validateSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Validates a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   Schema schema = Schema.newBuilder().build();
    +   *   ValidateSchemaRequest request = ValidateSchemaRequest.newBuilder()
    +   *     .setParent(parent.toString())
    +   *     .setSchema(schema)
    +   *     .build();
    +   *   ApiFuture<ValidateSchemaResponse> future = schemaServiceClient.validateSchemaCallable().futureCall(request);
    +   *   // Do something
    +   *   ValidateSchemaResponse response = future.get();
    +   * }
    +   * 
    + */ + public final UnaryCallable + validateSchemaCallable() { + return stub.validateSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Validates a message against a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   ValidateMessageRequest request = ValidateMessageRequest.newBuilder()
    +   *     .setParent(parent.toString())
    +   *     .build();
    +   *   ValidateMessageResponse response = schemaServiceClient.validateMessage(request);
    +   * }
    +   * 
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ValidateMessageResponse validateMessage(ValidateMessageRequest request) { + return validateMessageCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Validates a message against a schema. + * + *

    Sample code: + * + *

    
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   ValidateMessageRequest request = ValidateMessageRequest.newBuilder()
    +   *     .setParent(parent.toString())
    +   *     .build();
    +   *   ApiFuture<ValidateMessageResponse> future = schemaServiceClient.validateMessageCallable().futureCall(request);
    +   *   // Do something
    +   *   ValidateMessageResponse response = future.get();
    +   * }
    +   * 
    + */ + public final UnaryCallable + validateMessageCallable() { + return stub.validateMessageCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListSchemasPagedResponse + extends AbstractPagedListResponse< + ListSchemasRequest, + ListSchemasResponse, + Schema, + ListSchemasPage, + ListSchemasFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSchemasPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListSchemasPagedResponse apply(ListSchemasPage input) { + return new ListSchemasPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListSchemasPagedResponse(ListSchemasPage page) { + super(page, ListSchemasFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSchemasPage + extends AbstractPage { + + private ListSchemasPage( + PageContext context, + ListSchemasResponse response) { + super(context, response); + } + + private static ListSchemasPage createEmptyPage() { + return new ListSchemasPage(null, null); + } + + @Override + protected ListSchemasPage createPage( + PageContext context, + ListSchemasResponse response) { + return new ListSchemasPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSchemasFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSchemasRequest, + ListSchemasResponse, + Schema, + ListSchemasPage, + ListSchemasFixedSizeCollection> { + + private ListSchemasFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSchemasFixedSizeCollection createEmptyCollection() { + return new ListSchemasFixedSizeCollection(null, 0); + } + + @Override + protected ListSchemasFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSchemasFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java new file mode 100644 index 000000000000..4d2590c18ce3 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -0,0 +1,248 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.pubsub.v1.stub.SchemaServiceStubSettings; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.CreateSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemasRequest; +import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.ValidateMessageRequest; +import com.google.pubsub.v1.ValidateMessageResponse; +import com.google.pubsub.v1.ValidateSchemaRequest; +import com.google.pubsub.v1.ValidateSchemaResponse; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link SchemaServiceClient}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the total timeout of createSchema to 30 seconds: + * + *

    + * 
    + * SchemaServiceSettings.Builder schemaServiceSettingsBuilder =
    + *     SchemaServiceSettings.newBuilder();
    + * schemaServiceSettingsBuilder
    + *     .createSchemaSettings()
    + *     .setRetrySettings(
    + *         schemaServiceSettingsBuilder.createSchemaSettings().getRetrySettings().toBuilder()
    + *             .setTotalTimeout(Duration.ofSeconds(30))
    + *             .build());
    + * SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
    + * 
    + * 
    + */ +@Generated("by gapic-generator") +public class SchemaServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createSchema. */ + public UnaryCallSettings createSchemaSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).createSchemaSettings(); + } + + /** Returns the object with the settings used for calls to getSchema. */ + public UnaryCallSettings getSchemaSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).getSchemaSettings(); + } + + /** Returns the object with the settings used for calls to listSchemas. */ + public PagedCallSettings + listSchemasSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).listSchemasSettings(); + } + + /** Returns the object with the settings used for calls to deleteSchema. */ + public UnaryCallSettings deleteSchemaSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).deleteSchemaSettings(); + } + + /** Returns the object with the settings used for calls to validateSchema. */ + public UnaryCallSettings validateSchemaSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).validateSchemaSettings(); + } + + /** Returns the object with the settings used for calls to validateMessage. */ + public UnaryCallSettings + validateMessageSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).validateMessageSettings(); + } + + public static final SchemaServiceSettings create(SchemaServiceStubSettings stub) + throws IOException { + return new SchemaServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SchemaServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SchemaServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SchemaServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SchemaServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SchemaServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SchemaServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SchemaServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SchemaServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SchemaServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(SchemaServiceStubSettings.newBuilder(clientContext)); + } + + private static Builder createDefault() { + return new Builder(SchemaServiceStubSettings.newBuilder()); + } + + protected Builder(SchemaServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SchemaServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + public SchemaServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SchemaServiceStubSettings.Builder) getStubSettings()); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createSchema. */ + public UnaryCallSettings.Builder createSchemaSettings() { + return getStubSettingsBuilder().createSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to getSchema. */ + public UnaryCallSettings.Builder getSchemaSettings() { + return getStubSettingsBuilder().getSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to listSchemas. */ + public PagedCallSettings.Builder< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> + listSchemasSettings() { + return getStubSettingsBuilder().listSchemasSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSchema. */ + public UnaryCallSettings.Builder deleteSchemaSettings() { + return getStubSettingsBuilder().deleteSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to validateSchema. */ + public UnaryCallSettings.Builder + validateSchemaSettings() { + return getStubSettingsBuilder().validateSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to validateMessage. */ + public UnaryCallSettings.Builder + validateMessageSettings() { + return getStubSettingsBuilder().validateMessageSettings(); + } + + @Override + public SchemaServiceSettings build() throws IOException { + return new SchemaServiceSettings(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 68ea83759299..6c5b7a43d3d7 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -2031,8 +2031,8 @@ public final UnaryCallable deleteSnapshotCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided - * in the request. Snapshots are used in [Seek]( - * https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage + * in the request. Snapshots are used in [Seek] + * (https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription * and the snapshot must be on the same topic. @@ -2059,8 +2059,8 @@ public final SeekResponse seek(SeekRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided - * in the request. Snapshots are used in [Seek]( - * https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage + * in the request. Snapshots are used in [Seek] + * (https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription * and the snapshot must be on the same topic. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index f4b0120f830d..52920223edcc 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -182,8 +182,8 @@ public PublisherStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. See the [resource name rules]( - * https://cloud.google.com/pubsub/docs/admin#resource_names). + * Creates the given topic with the given name. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * @@ -208,8 +208,8 @@ public final Topic createTopic(TopicName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. See the [resource name rules]( - * https://cloud.google.com/pubsub/docs/admin#resource_names). + * Creates the given topic with the given name. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * @@ -263,8 +263,8 @@ public final Topic createTopic(ProjectTopicName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. See the [resource name rules]( - * https://cloud.google.com/pubsub/docs/admin#resource_names). + * Creates the given topic with the given name. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * @@ -287,8 +287,8 @@ public final Topic createTopic(Topic request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Creates the given topic with the given name. See the [resource name rules]( - * https://cloud.google.com/pubsub/docs/admin#resource_names). + * Creates the given topic with the given name. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index f7d1e28c216f..88af5d794c67 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -19,7 +19,24 @@ * *

    The interfaces provided are listed below, along with usage samples. * - *

    ================ TopicAdminClient ================ + *

    =================== SchemaServiceClient =================== + * + *

    Service Description: + * + *

    Sample for SchemaServiceClient: + * + *

    + * 
    + * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    + *   ProjectName parent = ProjectName.of("[PROJECT]");
    + *   Schema schema = Schema.newBuilder().build();
    + *   String schemaId = "";
    + *   Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
    + * }
    + * 
    + * 
    + * + * ================ TopicAdminClient ================ * *

    Service Description: The service that an application uses to manipulate topics, and to send * messages to a topic. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java new file mode 100644 index 000000000000..c7e5d89e26e9 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC callable factory implementation for Cloud Pub/Sub API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator") +@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +public class GrpcSchemaServiceCallableFactory implements GrpcStubCallableFactory { + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings pagedCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable( + grpcCallSettings, pagedCallSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings batchingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, batchingCallSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings operationCallSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, operationCallSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings streamingCallSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, streamingCallSettings, clientContext); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java new file mode 100644 index 000000000000..220d4592c06a --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -0,0 +1,322 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsExtractor; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.CreateSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemasRequest; +import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.ValidateMessageRequest; +import com.google.pubsub.v1.ValidateMessageResponse; +import com.google.pubsub.v1.ValidateSchemaRequest; +import com.google.pubsub.v1.ValidateSchemaResponse; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * gRPC stub implementation for Cloud Pub/Sub API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public class GrpcSchemaServiceStub extends SchemaServiceStub { + + private static final MethodDescriptor createSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.SchemaService/CreateSchema") + .setRequestMarshaller(ProtoUtils.marshaller(CreateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .build(); + private static final MethodDescriptor getSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.SchemaService/GetSchema") + .setRequestMarshaller(ProtoUtils.marshaller(GetSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .build(); + private static final MethodDescriptor + listSchemasMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.SchemaService/ListSchemas") + .setRequestMarshaller(ProtoUtils.marshaller(ListSchemasRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSchemasResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.SchemaService/DeleteSchema") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor + validateSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.SchemaService/ValidateSchema") + .setRequestMarshaller( + ProtoUtils.marshaller(ValidateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ValidateSchemaResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor + validateMessageMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.SchemaService/ValidateMessage") + .setRequestMarshaller( + ProtoUtils.marshaller(ValidateMessageRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ValidateMessageResponse.getDefaultInstance())) + .build(); + + private final BackgroundResource backgroundResources; + + private final UnaryCallable createSchemaCallable; + private final UnaryCallable getSchemaCallable; + private final UnaryCallable listSchemasCallable; + private final UnaryCallable + listSchemasPagedCallable; + private final UnaryCallable deleteSchemaCallable; + private final UnaryCallable validateSchemaCallable; + private final UnaryCallable + validateMessageCallable; + + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSchemaServiceStub create(SchemaServiceStubSettings settings) + throws IOException { + return new GrpcSchemaServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSchemaServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcSchemaServiceStub(SchemaServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSchemaServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSchemaServiceStub( + SchemaServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSchemaServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcSchemaServiceStub(SchemaServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSchemaServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSchemaServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcSchemaServiceStub( + SchemaServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + GrpcCallSettings createSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSchemaMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateSchemaRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings getSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSchemaMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetSchemaRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings listSchemasTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSchemasMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListSchemasRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings deleteSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSchemaMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteSchemaRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + validateSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(validateSchemaMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ValidateSchemaRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + validateMessageTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(validateMessageMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ValidateMessageRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + + this.createSchemaCallable = + callableFactory.createUnaryCallable( + createSchemaTransportSettings, settings.createSchemaSettings(), clientContext); + this.getSchemaCallable = + callableFactory.createUnaryCallable( + getSchemaTransportSettings, settings.getSchemaSettings(), clientContext); + this.listSchemasCallable = + callableFactory.createUnaryCallable( + listSchemasTransportSettings, settings.listSchemasSettings(), clientContext); + this.listSchemasPagedCallable = + callableFactory.createPagedCallable( + listSchemasTransportSettings, settings.listSchemasSettings(), clientContext); + this.deleteSchemaCallable = + callableFactory.createUnaryCallable( + deleteSchemaTransportSettings, settings.deleteSchemaSettings(), clientContext); + this.validateSchemaCallable = + callableFactory.createUnaryCallable( + validateSchemaTransportSettings, settings.validateSchemaSettings(), clientContext); + this.validateMessageCallable = + callableFactory.createUnaryCallable( + validateMessageTransportSettings, settings.validateMessageSettings(), clientContext); + + backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public UnaryCallable createSchemaCallable() { + return createSchemaCallable; + } + + public UnaryCallable getSchemaCallable() { + return getSchemaCallable; + } + + public UnaryCallable listSchemasPagedCallable() { + return listSchemasPagedCallable; + } + + public UnaryCallable listSchemasCallable() { + return listSchemasCallable; + } + + public UnaryCallable deleteSchemaCallable() { + return deleteSchemaCallable; + } + + public UnaryCallable validateSchemaCallable() { + return validateSchemaCallable; + } + + public UnaryCallable validateMessageCallable() { + return validateMessageCallable; + } + + @Override + public final void close() { + shutdown(); + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 457731c611f5..696671660eed 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -572,32 +572,25 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "idempotent", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); - definitions.put( - "non_idempotent2", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "non_idempotent", + "retry_policy_1_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( - "idempotent2", + "retry_policy_3_codes", ImmutableSet.copyOf( Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put("none", ImmutableSet.copyOf(Lists.newArrayList())); + StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); definitions.put( - "publish", + "retry_policy_2_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.ABORTED, StatusCode.Code.CANCELLED, - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.INTERNAL, StatusCode.Code.RESOURCE_EXHAUSTED, + StatusCode.Code.UNKNOWN, StatusCode.Code.UNAVAILABLE, - StatusCode.Code.UNKNOWN))); + StatusCode.Code.DEADLINE_EXCEEDED))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -614,20 +607,33 @@ public static class Builder extends StubSettings.BuilderThis class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator") +@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +public abstract class SchemaServiceStub implements BackgroundResource { + + public UnaryCallable createSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: createSchemaCallable()"); + } + + public UnaryCallable getSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: getSchemaCallable()"); + } + + public UnaryCallable listSchemasPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSchemasPagedCallable()"); + } + + public UnaryCallable listSchemasCallable() { + throw new UnsupportedOperationException("Not implemented: listSchemasCallable()"); + } + + public UnaryCallable deleteSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSchemaCallable()"); + } + + public UnaryCallable validateSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: validateSchemaCallable()"); + } + + public UnaryCallable validateMessageCallable() { + throw new UnsupportedOperationException("Not implemented: validateMessageCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java new file mode 100644 index 000000000000..c78c64fc2b14 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -0,0 +1,561 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.CreateSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemasRequest; +import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.ValidateMessageRequest; +import com.google.pubsub.v1.ValidateMessageResponse; +import com.google.pubsub.v1.ValidateSchemaRequest; +import com.google.pubsub.v1.ValidateSchemaResponse; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS +/** + * Settings class to configure an instance of {@link SchemaServiceStub}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (pubsub.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the total timeout of createSchema to 30 seconds: + * + *

    + * 
    + * SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
    + *     SchemaServiceStubSettings.newBuilder();
    + * schemaServiceSettingsBuilder
    + *     .createSchemaSettings()
    + *     .setRetrySettings(
    + *         schemaServiceSettingsBuilder.createSchemaSettings().getRetrySettings().toBuilder()
    + *             .setTotalTimeout(Duration.ofSeconds(30))
    + *             .build());
    + * SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
    + * 
    + * 
    + */ +@Generated("by gapic-generator") +public class SchemaServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/pubsub") + .build(); + + private final UnaryCallSettings createSchemaSettings; + private final UnaryCallSettings getSchemaSettings; + private final PagedCallSettings + listSchemasSettings; + private final UnaryCallSettings deleteSchemaSettings; + private final UnaryCallSettings + validateSchemaSettings; + private final UnaryCallSettings + validateMessageSettings; + + /** Returns the object with the settings used for calls to createSchema. */ + public UnaryCallSettings createSchemaSettings() { + return createSchemaSettings; + } + + /** Returns the object with the settings used for calls to getSchema. */ + public UnaryCallSettings getSchemaSettings() { + return getSchemaSettings; + } + + /** Returns the object with the settings used for calls to listSchemas. */ + public PagedCallSettings + listSchemasSettings() { + return listSchemasSettings; + } + + /** Returns the object with the settings used for calls to deleteSchema. */ + public UnaryCallSettings deleteSchemaSettings() { + return deleteSchemaSettings; + } + + /** Returns the object with the settings used for calls to validateSchema. */ + public UnaryCallSettings validateSchemaSettings() { + return validateSchemaSettings; + } + + /** Returns the object with the settings used for calls to validateMessage. */ + public UnaryCallSettings + validateMessageSettings() { + return validateMessageSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public SchemaServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSchemaServiceStub.create(this); + } else { + throw new UnsupportedOperationException( + "Transport not supported: " + getTransportChannelProvider().getTransportName()); + } + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "pubsub.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SchemaServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SchemaServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createSchemaSettings = settingsBuilder.createSchemaSettings().build(); + getSchemaSettings = settingsBuilder.getSchemaSettings().build(); + listSchemasSettings = settingsBuilder.listSchemasSettings().build(); + deleteSchemaSettings = settingsBuilder.deleteSchemaSettings().build(); + validateSchemaSettings = settingsBuilder.validateSchemaSettings().build(); + validateMessageSettings = settingsBuilder.validateMessageSettings().build(); + } + + private static final PagedListDescriptor + LIST_SCHEMAS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSchemasRequest injectToken(ListSchemasRequest payload, String token) { + return ListSchemasRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSchemasRequest injectPageSize(ListSchemasRequest payload, int pageSize) { + return ListSchemasRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSchemasRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSchemasResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSchemasResponse payload) { + return payload.getSchemasList() != null + ? payload.getSchemasList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> + LIST_SCHEMAS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSchemasRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SCHEMAS_PAGE_STR_DESC, request, context); + return ListSchemasPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Builder for SchemaServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + + private final UnaryCallSettings.Builder createSchemaSettings; + private final UnaryCallSettings.Builder getSchemaSettings; + private final PagedCallSettings.Builder< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> + listSchemasSettings; + private final UnaryCallSettings.Builder deleteSchemaSettings; + private final UnaryCallSettings.Builder + validateSchemaSettings; + private final UnaryCallSettings.Builder + validateMessageSettings; + + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_4_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.RESOURCE_EXHAUSTED, + StatusCode.Code.ABORTED, + StatusCode.Code.INTERNAL, + StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_6_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_3_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_2_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.ABORTED, + StatusCode.Code.CANCELLED, + StatusCode.Code.INTERNAL, + StatusCode.Code.RESOURCE_EXHAUSTED, + StatusCode.Code.UNKNOWN, + StatusCode.Code.UNAVAILABLE, + StatusCode.Code.DEADLINE_EXCEEDED))); + definitions.put( + "retry_policy_5_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_3_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_6_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_2_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(900000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(900000L)) + .setTotalTimeout(Duration.ofMillis(900000L)) + .build(); + definitions.put("retry_policy_4_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_5_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this((ClientContext) null); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + getSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + listSchemasSettings = PagedCallSettings.newBuilder(LIST_SCHEMAS_PAGE_STR_FACT); + + deleteSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + validateSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + validateMessageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createSchemaSettings, + getSchemaSettings, + listSchemasSettings, + deleteSchemaSettings, + validateSchemaSettings, + validateMessageSettings); + + initDefaults(this); + } + + private static Builder createDefault() { + Builder builder = new Builder((ClientContext) null); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + + builder + .createSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listSchemasSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .validateSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .validateMessageSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + protected Builder(SchemaServiceStubSettings settings) { + super(settings); + + createSchemaSettings = settings.createSchemaSettings.toBuilder(); + getSchemaSettings = settings.getSchemaSettings.toBuilder(); + listSchemasSettings = settings.listSchemasSettings.toBuilder(); + deleteSchemaSettings = settings.deleteSchemaSettings.toBuilder(); + validateSchemaSettings = settings.validateSchemaSettings.toBuilder(); + validateMessageSettings = settings.validateMessageSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createSchemaSettings, + getSchemaSettings, + listSchemasSettings, + deleteSchemaSettings, + validateSchemaSettings, + validateMessageSettings); + } + + // NEXT_MAJOR_VER: remove 'throws Exception' + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) throws Exception { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createSchema. */ + public UnaryCallSettings.Builder createSchemaSettings() { + return createSchemaSettings; + } + + /** Returns the builder for the settings used for calls to getSchema. */ + public UnaryCallSettings.Builder getSchemaSettings() { + return getSchemaSettings; + } + + /** Returns the builder for the settings used for calls to listSchemas. */ + public PagedCallSettings.Builder< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> + listSchemasSettings() { + return listSchemasSettings; + } + + /** Returns the builder for the settings used for calls to deleteSchema. */ + public UnaryCallSettings.Builder deleteSchemaSettings() { + return deleteSchemaSettings; + } + + /** Returns the builder for the settings used for calls to validateSchema. */ + public UnaryCallSettings.Builder + validateSchemaSettings() { + return validateSchemaSettings; + } + + /** Returns the builder for the settings used for calls to validateMessage. */ + public UnaryCallSettings.Builder + validateMessageSettings() { + return validateMessageSettings; + } + + @Override + public SchemaServiceStubSettings build() throws IOException { + return new SchemaServiceStubSettings(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index a6d1a9826221..d061959f1632 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -490,27 +490,23 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "idempotent", + "retry_policy_4_codes", ImmutableSet.copyOf( Lists.newArrayList( - StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE, StatusCode.Code.UNKNOWN))); + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.RESOURCE_EXHAUSTED, + StatusCode.Code.ABORTED, + StatusCode.Code.INTERNAL, + StatusCode.Code.UNAVAILABLE))); definitions.put( - "non_idempotent", + "retry_policy_6_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( - "idempotent2", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put( - "streaming_pull", + "retry_policy_5_codes", ImmutableSet.copyOf( Lists.newArrayList( - StatusCode.Code.ABORTED, - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.RESOURCE_EXHAUSTED, - StatusCode.Code.UNAVAILABLE))); + StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -527,31 +523,33 @@ public static class Builder extends StubSettings.Builder getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java new file mode 100644 index 000000000000..be26a2894d4a --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -0,0 +1,156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.BetaApi; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.CreateSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemasRequest; +import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaServiceGrpc.SchemaServiceImplBase; +import com.google.pubsub.v1.ValidateMessageRequest; +import com.google.pubsub.v1.ValidateMessageResponse; +import com.google.pubsub.v1.ValidateSchemaRequest; +import com.google.pubsub.v1.ValidateSchemaResponse; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; + +@javax.annotation.Generated("by GAPIC") +@BetaApi +public class MockSchemaServiceImpl extends SchemaServiceImplBase { + private List requests; + private Queue responses; + + public MockSchemaServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createSchema(CreateSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Schema) { + requests.add(request); + responseObserver.onNext((Schema) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void getSchema(GetSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Schema) { + requests.add(request); + responseObserver.onNext((Schema) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void listSchemas( + ListSchemasRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListSchemasResponse) { + requests.add(request); + responseObserver.onNext((ListSchemasResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void deleteSchema(DeleteSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext((Empty) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void validateSchema( + ValidateSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ValidateSchemaResponse) { + requests.add(request); + responseObserver.onNext((ValidateSchemaResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void validateMessage( + ValidateMessageRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ValidateMessageResponse) { + requests.add(request); + responseObserver.onNext((ValidateMessageResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java new file mode 100644 index 000000000000..286a1362be8b --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -0,0 +1,356 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.pubsub.v1.CreateSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemasRequest; +import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import com.google.pubsub.v1.ValidateMessageRequest; +import com.google.pubsub.v1.ValidateMessageResponse; +import com.google.pubsub.v1.ValidateSchemaRequest; +import com.google.pubsub.v1.ValidateSchemaResponse; +import io.grpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@javax.annotation.Generated("by GAPIC") +public class SchemaServiceClientTest { + private static MockSchemaService mockSchemaService; + private static MockPublisher mockPublisher; + private static MockIAMPolicy mockIAMPolicy; + private static MockSubscriber mockSubscriber; + private static MockServiceHelper serviceHelper; + private SchemaServiceClient client; + private LocalChannelProvider channelProvider; + + @BeforeClass + public static void startStaticServer() { + mockSchemaService = new MockSchemaService(); + mockPublisher = new MockPublisher(); + mockIAMPolicy = new MockIAMPolicy(); + mockSubscriber = new MockSubscriber(); + serviceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockSchemaService, mockPublisher, mockIAMPolicy, mockSubscriber)); + serviceHelper.start(); + } + + @AfterClass + public static void stopServer() { + serviceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + serviceHelper.reset(); + channelProvider = serviceHelper.createChannelProvider(); + SchemaServiceSettings settings = + SchemaServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SchemaServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + @SuppressWarnings("all") + public void createSchemaTest() { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + String definition = "definition-1014418093"; + Schema expectedResponse = + Schema.newBuilder().setName(name.toString()).setDefinition(definition).build(); + mockSchemaService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-153006983"; + + Schema actualResponse = client.createSchema(parent, schema, schemaId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSchemaRequest actualRequest = (CreateSchemaRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(schema, actualRequest.getSchema()); + Assert.assertEquals(schemaId, actualRequest.getSchemaId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void createSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-153006983"; + + client.createSchema(parent, schema, schemaId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void getSchemaTest() { + SchemaName name2 = SchemaName.of("[PROJECT]", "[SCHEMA]"); + String definition = "definition-1014418093"; + Schema expectedResponse = + Schema.newBuilder().setName(name2.toString()).setDefinition(definition).build(); + mockSchemaService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + + Schema actualResponse = client.getSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSchemaRequest actualRequest = (GetSchemaRequest) actualRequests.get(0); + + Assert.assertEquals(name, SchemaName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void getSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + + client.getSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void listSchemasTest() { + String nextPageToken = ""; + Schema schemasElement = Schema.newBuilder().build(); + List schemas = Arrays.asList(schemasElement); + ListSchemasResponse expectedResponse = + ListSchemasResponse.newBuilder() + .setNextPageToken(nextPageToken) + .addAllSchemas(schemas) + .build(); + mockSchemaService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListSchemasPagedResponse pagedListResponse = client.listSchemas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSchemasRequest actualRequest = (ListSchemasRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void listSchemasExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + + client.listSchemas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void deleteSchemaTest() { + Empty expectedResponse = Empty.newBuilder().build(); + mockSchemaService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + + client.deleteSchema(name); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSchemaRequest actualRequest = (DeleteSchemaRequest) actualRequests.get(0); + + Assert.assertEquals(name, SchemaName.parse(actualRequest.getName())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void deleteSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + + client.deleteSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void validateSchemaTest() { + ValidateSchemaResponse expectedResponse = ValidateSchemaResponse.newBuilder().build(); + mockSchemaService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Schema schema = Schema.newBuilder().build(); + + ValidateSchemaResponse actualResponse = client.validateSchema(parent, schema); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ValidateSchemaRequest actualRequest = (ValidateSchemaRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(schema, actualRequest.getSchema()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void validateSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Schema schema = Schema.newBuilder().build(); + + client.validateSchema(parent, schema); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } + + @Test + @SuppressWarnings("all") + public void validateMessageTest() { + ValidateMessageResponse expectedResponse = ValidateMessageResponse.newBuilder().build(); + mockSchemaService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + ValidateMessageRequest request = + ValidateMessageRequest.newBuilder().setParent(parent.toString()).build(); + + ValidateMessageResponse actualResponse = client.validateMessage(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ValidateMessageRequest actualRequest = (ValidateMessageRequest) actualRequests.get(0); + + Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + @SuppressWarnings("all") + public void validateMessageExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + ValidateMessageRequest request = + ValidateMessageRequest.newBuilder().setParent(parent.toString()).build(); + + client.validateMessage(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index ac0be311c4a1..16cf9889b6f2 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -86,6 +86,7 @@ @javax.annotation.Generated("by GAPIC") public class SubscriptionAdminClientTest { + private static MockSchemaService mockSchemaService; private static MockPublisher mockPublisher; private static MockIAMPolicy mockIAMPolicy; private static MockSubscriber mockSubscriber; @@ -95,13 +96,15 @@ public class SubscriptionAdminClientTest { @BeforeClass public static void startStaticServer() { + mockSchemaService = new MockSchemaService(); mockPublisher = new MockPublisher(); mockIAMPolicy = new MockIAMPolicy(); mockSubscriber = new MockSubscriber(); serviceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList(mockPublisher, mockIAMPolicy, mockSubscriber)); + Arrays.asList( + mockSchemaService, mockPublisher, mockIAMPolicy, mockSubscriber)); serviceHelper.start(); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 1f8e26ac8bb9..f6c1607dbae5 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -72,6 +72,7 @@ @javax.annotation.Generated("by GAPIC") public class TopicAdminClientTest { + private static MockSchemaService mockSchemaService; private static MockPublisher mockPublisher; private static MockIAMPolicy mockIAMPolicy; private static MockSubscriber mockSubscriber; @@ -81,13 +82,15 @@ public class TopicAdminClientTest { @BeforeClass public static void startStaticServer() { + mockSchemaService = new MockSchemaService(); mockPublisher = new MockPublisher(); mockIAMPolicy = new MockIAMPolicy(); mockSubscriber = new MockSubscriber(); serviceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList(mockPublisher, mockIAMPolicy, mockSubscriber)); + Arrays.asList( + mockSchemaService, mockPublisher, mockIAMPolicy, mockSubscriber)); serviceHelper.start(); } @@ -118,8 +121,13 @@ public void tearDown() throws Exception { public void createTopicTest() { TopicName name2 = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); String kmsKeyName = "kmsKeyName2094986649"; + boolean satisfiesPzs = false; Topic expectedResponse = - Topic.newBuilder().setName(name2.toString()).setKmsKeyName(kmsKeyName).build(); + Topic.newBuilder() + .setName(name2.toString()) + .setKmsKeyName(kmsKeyName) + .setSatisfiesPzs(satisfiesPzs) + .build(); mockPublisher.addResponse(expectedResponse); TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); @@ -159,8 +167,13 @@ public void createTopicExceptionTest() throws Exception { public void updateTopicTest() { TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); String kmsKeyName = "kmsKeyName2094986649"; + boolean satisfiesPzs = false; Topic expectedResponse = - Topic.newBuilder().setName(name.toString()).setKmsKeyName(kmsKeyName).build(); + Topic.newBuilder() + .setName(name.toString()) + .setKmsKeyName(kmsKeyName) + .setSatisfiesPzs(satisfiesPzs) + .build(); mockPublisher.addResponse(expectedResponse); Topic topic = Topic.newBuilder().build(); @@ -255,8 +268,13 @@ public void publishExceptionTest() throws Exception { public void getTopicTest() { TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); String kmsKeyName = "kmsKeyName2094986649"; + boolean satisfiesPzs = false; Topic expectedResponse = - Topic.newBuilder().setName(name.toString()).setKmsKeyName(kmsKeyName).build(); + Topic.newBuilder() + .setName(name.toString()) + .setKmsKeyName(kmsKeyName) + .setSatisfiesPzs(satisfiesPzs) + .build(); mockPublisher.addResponse(expectedResponse); TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index d1e85d8f4076..9e0404ebcfe0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -468,8 +468,8 @@ public abstract static class PublisherImplBase implements io.grpc.BindableServic * * *
    -     * Creates the given topic with the given name. See the [resource name rules](
    -     * https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * Creates the given topic with the given name. See the [resource name rules]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 
    */ public void createTopic( @@ -683,8 +683,8 @@ protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callO * * *
    -     * Creates the given topic with the given name. See the [resource name rules](
    -     * https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * Creates the given topic with the given name. See the [resource name rules]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 
    */ public void createTopic( @@ -859,8 +859,8 @@ protected PublisherBlockingStub build( * * *
    -     * Creates the given topic with the given name. See the [resource name rules](
    -     * https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * Creates the given topic with the given name. See the [resource name rules]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 
    */ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { @@ -1000,8 +1000,8 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
    -     * Creates the given topic with the given name. See the [resource name rules](
    -     * https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * Creates the given topic with the given name. See the [resource name rules]
    +     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
          * 
    */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java new file mode 100644 index 000000000000..d68736ce223c --- /dev/null +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -0,0 +1,868 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.pubsub.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/pubsub/v1/schema.proto") +public final class SchemaServiceGrpc { + + private SchemaServiceGrpc() {} + + public static final String SERVICE_NAME = "google.pubsub.v1.SchemaService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema> + getCreateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSchema", + requestType = com.google.pubsub.v1.CreateSchemaRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema> + getCreateSchemaMethod() { + io.grpc.MethodDescriptor + getCreateSchemaMethod; + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { + SchemaServiceGrpc.getCreateSchemaMethod = + getCreateSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.CreateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("CreateSchema")) + .build(); + } + } + } + return getCreateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema> + getGetSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSchema", + requestType = com.google.pubsub.v1.GetSchemaRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema> + getGetSchemaMethod() { + io.grpc.MethodDescriptor + getGetSchemaMethod; + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { + SchemaServiceGrpc.getGetSchemaMethod = + getGetSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.GetSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) + .build(); + } + } + } + return getGetSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> + getListSchemasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSchemas", + requestType = com.google.pubsub.v1.ListSchemasRequest.class, + responseType = com.google.pubsub.v1.ListSchemasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> + getListSchemasMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> + getListSchemasMethod; + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { + SchemaServiceGrpc.getListSchemasMethod = + getListSchemasMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSchemasRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSchemasResponse.getDefaultInstance())) + .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) + .build(); + } + } + } + return getListSchemasMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty> + getDeleteSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", + requestType = com.google.pubsub.v1.DeleteSchemaRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty> + getDeleteSchemaMethod() { + io.grpc.MethodDescriptor + getDeleteSchemaMethod; + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { + SchemaServiceGrpc.getDeleteSchemaMethod = + getDeleteSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.DeleteSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) + .build(); + } + } + } + return getDeleteSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> + getValidateSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateSchema", + requestType = com.google.pubsub.v1.ValidateSchemaRequest.class, + responseType = com.google.pubsub.v1.ValidateSchemaResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> + getValidateSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> + getValidateSchemaMethod; + if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { + SchemaServiceGrpc.getValidateSchemaMethod = + getValidateSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateSchemaResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("ValidateSchema")) + .build(); + } + } + } + return getValidateSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse> + getValidateMessageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateMessage", + requestType = com.google.pubsub.v1.ValidateMessageRequest.class, + responseType = com.google.pubsub.v1.ValidateMessageResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse> + getValidateMessageMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.ValidateMessageRequest, + com.google.pubsub.v1.ValidateMessageResponse> + getValidateMessageMethod; + if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { + SchemaServiceGrpc.getValidateMessageMethod = + getValidateMessageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateMessage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateMessageRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ValidateMessageResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("ValidateMessage")) + .build(); + } + } + } + return getValidateMessageMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SchemaServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + }; + return SchemaServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SchemaServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + }; + return SchemaServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SchemaServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + }; + return SchemaServiceFutureStub.newStub(factory, channel); + } + + /** */ + public abstract static class SchemaServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
    +     * Creates a schema.
    +     * 
    + */ + public void createSchema( + com.google.pubsub.v1.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getCreateSchemaMethod(), responseObserver); + } + + /** + * + * + *
    +     * Gets a schema.
    +     * 
    + */ + public void getSchema( + com.google.pubsub.v1.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); + } + + /** + * + * + *
    +     * Lists schemas in a project.
    +     * 
    + */ + public void listSchemas( + com.google.pubsub.v1.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getListSchemasMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a schema.
    +     * 
    + */ + public void deleteSchema( + com.google.pubsub.v1.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteSchemaMethod(), responseObserver); + } + + /** + * + * + *
    +     * Validates a schema.
    +     * 
    + */ + public void validateSchema( + com.google.pubsub.v1.ValidateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getValidateSchemaMethod(), responseObserver); + } + + /** + * + * + *
    +     * Validates a message against a schema.
    +     * 
    + */ + public void validateMessage( + com.google.pubsub.v1.ValidateMessageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnimplementedUnaryCall(getValidateMessageMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSchemaMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema>( + this, METHODID_CREATE_SCHEMA))) + .addMethod( + getGetSchemaMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema>( + this, METHODID_GET_SCHEMA))) + .addMethod( + getListSchemasMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSchemasRequest, + com.google.pubsub.v1.ListSchemasResponse>(this, METHODID_LIST_SCHEMAS))) + .addMethod( + getDeleteSchemaMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_SCHEMA))) + .addMethod( + getValidateSchemaMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ValidateSchemaRequest, + com.google.pubsub.v1.ValidateSchemaResponse>(this, METHODID_VALIDATE_SCHEMA))) + .addMethod( + getValidateMessageMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ValidateMessageRequest, + com.google.pubsub.v1.ValidateMessageResponse>( + this, METHODID_VALIDATE_MESSAGE))) + .build(); + } + } + + /** */ + public static final class SchemaServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SchemaServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceStub(channel, callOptions); + } + + /** + * + * + *
    +     * Creates a schema.
    +     * 
    + */ + public void createSchema( + com.google.pubsub.v1.CreateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Gets a schema.
    +     * 
    + */ + public void getSchema( + com.google.pubsub.v1.GetSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
    +     * Lists schemas in a project.
    +     * 
    + */ + public void listSchemas( + com.google.pubsub.v1.ListSchemasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a schema.
    +     * 
    + */ + public void deleteSchema( + com.google.pubsub.v1.DeleteSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Validates a schema.
    +     * 
    + */ + public void validateSchema( + com.google.pubsub.v1.ValidateSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Validates a message against a schema.
    +     * 
    + */ + public void validateMessage( + com.google.pubsub.v1.ValidateMessageRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + asyncUnaryCall( + getChannel().newCall(getValidateMessageMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** */ + public static final class SchemaServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SchemaServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
    +     * Creates a schema.
    +     * 
    + */ + public com.google.pubsub.v1.Schema createSchema( + com.google.pubsub.v1.CreateSchemaRequest request) { + return blockingUnaryCall(getChannel(), getCreateSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets a schema.
    +     * 
    + */ + public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { + return blockingUnaryCall(getChannel(), getGetSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists schemas in a project.
    +     * 
    + */ + public com.google.pubsub.v1.ListSchemasResponse listSchemas( + com.google.pubsub.v1.ListSchemasRequest request) { + return blockingUnaryCall(getChannel(), getListSchemasMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a schema.
    +     * 
    + */ + public com.google.protobuf.Empty deleteSchema( + com.google.pubsub.v1.DeleteSchemaRequest request) { + return blockingUnaryCall(getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Validates a schema.
    +     * 
    + */ + public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( + com.google.pubsub.v1.ValidateSchemaRequest request) { + return blockingUnaryCall(getChannel(), getValidateSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Validates a message against a schema.
    +     * 
    + */ + public com.google.pubsub.v1.ValidateMessageResponse validateMessage( + com.google.pubsub.v1.ValidateMessageRequest request) { + return blockingUnaryCall(getChannel(), getValidateMessageMethod(), getCallOptions(), request); + } + } + + /** */ + public static final class SchemaServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SchemaServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
    +     * Creates a schema.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + createSchema(com.google.pubsub.v1.CreateSchemaRequest request) { + return futureUnaryCall( + getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Gets a schema.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + getSchema(com.google.pubsub.v1.GetSchemaRequest request) { + return futureUnaryCall(getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Lists schemas in a project.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ListSchemasResponse> + listSchemas(com.google.pubsub.v1.ListSchemasRequest request) { + return futureUnaryCall( + getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a schema.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request) { + return futureUnaryCall( + getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Validates a schema.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ValidateSchemaResponse> + validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request) { + return futureUnaryCall( + getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Validates a message against a schema.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ValidateMessageResponse> + validateMessage(com.google.pubsub.v1.ValidateMessageRequest request) { + return futureUnaryCall( + getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_SCHEMA = 0; + private static final int METHODID_GET_SCHEMA = 1; + private static final int METHODID_LIST_SCHEMAS = 2; + private static final int METHODID_DELETE_SCHEMA = 3; + private static final int METHODID_VALIDATE_SCHEMA = 4; + private static final int METHODID_VALIDATE_MESSAGE = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SchemaServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SchemaServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_SCHEMA: + serviceImpl.createSchema( + (com.google.pubsub.v1.CreateSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SCHEMA: + serviceImpl.getSchema( + (com.google.pubsub.v1.GetSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCHEMAS: + serviceImpl.listSchemas( + (com.google.pubsub.v1.ListSchemasRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SCHEMA: + serviceImpl.deleteSchema( + (com.google.pubsub.v1.DeleteSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VALIDATE_SCHEMA: + serviceImpl.validateSchema( + (com.google.pubsub.v1.ValidateSchemaRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_VALIDATE_MESSAGE: + serviceImpl.validateMessage( + (com.google.pubsub.v1.ValidateMessageRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SchemaServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.pubsub.v1.SchemaProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SchemaService"); + } + } + + private static final class SchemaServiceFileDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier { + SchemaServiceFileDescriptorSupplier() {} + } + + private static final class SchemaServiceMethodDescriptorSupplier + extends SchemaServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SchemaServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SchemaServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) + .addMethod(getCreateSchemaMethod()) + .addMethod(getGetSchemaMethod()) + .addMethod(getListSchemasMethod()) + .addMethod(getDeleteSchemaMethod()) + .addMethod(getValidateSchemaMethod()) + .addMethod(getValidateMessageMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 37ba4c003e04..411cc9243db1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1015,8 +1015,8 @@ public void deleteSnapshot( * *
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request. Snapshots are used in [Seek](
    -     * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
    +     * whichever is provided in the request. Snapshots are used in [Seek]
    +     * (https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the
    @@ -1464,8 +1464,8 @@ public void deleteSnapshot(
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request. Snapshots are used in [Seek](
    -     * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
    +     * whichever is provided in the request. Snapshots are used in [Seek]
    +     * (https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the
    @@ -1743,8 +1743,8 @@ public com.google.protobuf.Empty deleteSnapshot(
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request. Snapshots are used in [Seek](
    -     * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
    +     * whichever is provided in the request. Snapshots are used in [Seek]
    +     * (https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the
    @@ -2029,8 +2029,8 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
          *
          * 
          * Seeks an existing subscription to a point in time or to a given snapshot,
    -     * whichever is provided in the request. Snapshots are used in [Seek](
    -     * https://cloud.google.com/pubsub/docs/replay-overview) operations, which
    +     * whichever is provided in the request. Snapshots are used in [Seek]
    +     * (https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java
    new file mode 100644
    index 000000000000..6c7618f9c804
    --- /dev/null
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java
    @@ -0,0 +1,1156 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +// Generated by the protocol buffer compiler.  DO NOT EDIT!
    +// source: google/pubsub/v1/schema.proto
    +
    +package com.google.pubsub.v1;
    +
    +/**
    + *
    + *
    + * 
    + * Request for the CreateSchema method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.CreateSchemaRequest} + */ +public final class CreateSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSchemaRequest) + CreateSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSchemaRequest.newBuilder() to construct. + private CreateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSchemaRequest() { + parent_ = ""; + schemaId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSchemaRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateSchemaRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schema_ != null) { + subBuilder = schema_.toBuilder(); + } + schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schema_); + schema_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + schemaId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CreateSchemaRequest.class, + com.google.pubsub.v1.CreateSchemaRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
    +   * Required. The name of the project in which to create the schema.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The name of the project in which to create the schema.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 2; + private com.google.pubsub.v1.Schema schema_; + /** + * + * + *
    +   * Required. The schema object to create.
    +   * This schema's `name` parameter is ignored. The schema object returned
    +   * by CreateSchema will have a `name` made using the given `parent` and
    +   * `schema_id`.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return schema_ != null; + } + /** + * + * + *
    +   * Required. The schema object to create.
    +   * This schema's `name` parameter is ignored. The schema object returned
    +   * by CreateSchema will have a `name` made using the given `parent` and
    +   * `schema_id`.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + @java.lang.Override + public com.google.pubsub.v1.Schema getSchema() { + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + } + /** + * + * + *
    +   * Required. The schema object to create.
    +   * This schema's `name` parameter is ignored. The schema object returned
    +   * by CreateSchema will have a `name` made using the given `parent` and
    +   * `schema_id`.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { + return getSchema(); + } + + public static final int SCHEMA_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object schemaId_; + /** + * + * + *
    +   * The ID to use for the schema, which will become the final component of
    +   * the schema's resource name.
    +   * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
    +   * name constraints.
    +   * 
    + * + * string schema_id = 3; + * + * @return The schemaId. + */ + @java.lang.Override + public java.lang.String getSchemaId() { + java.lang.Object ref = schemaId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaId_ = s; + return s; + } + } + /** + * + * + *
    +   * The ID to use for the schema, which will become the final component of
    +   * the schema's resource name.
    +   * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
    +   * name constraints.
    +   * 
    + * + * string schema_id = 3; + * + * @return The bytes for schemaId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaIdBytes() { + java.lang.Object ref = schemaId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (schema_ != null) { + output.writeMessage(2, getSchema()); + } + if (!getSchemaIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (schema_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); + } + if (!getSchemaIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.CreateSchemaRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.CreateSchemaRequest other = (com.google.pubsub.v1.CreateSchemaRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema().equals(other.getSchema())) return false; + } + if (!getSchemaId().equals(other.getSchemaId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + hash = (37 * hash) + SCHEMA_ID_FIELD_NUMBER; + hash = (53 * hash) + getSchemaId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.CreateSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for the CreateSchema method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.CreateSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CreateSchemaRequest) + com.google.pubsub.v1.CreateSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CreateSchemaRequest.class, + com.google.pubsub.v1.CreateSchemaRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.CreateSchemaRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (schemaBuilder_ == null) { + schema_ = null; + } else { + schema_ = null; + schemaBuilder_ = null; + } + schemaId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.CreateSchemaRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.CreateSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.CreateSchemaRequest build() { + com.google.pubsub.v1.CreateSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.CreateSchemaRequest buildPartial() { + com.google.pubsub.v1.CreateSchemaRequest result = + new com.google.pubsub.v1.CreateSchemaRequest(this); + result.parent_ = parent_; + if (schemaBuilder_ == null) { + result.schema_ = schema_; + } else { + result.schema_ = schemaBuilder_.build(); + } + result.schemaId_ = schemaId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.CreateSchemaRequest) { + return mergeFrom((com.google.pubsub.v1.CreateSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.CreateSchemaRequest other) { + if (other == com.google.pubsub.v1.CreateSchemaRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + if (!other.getSchemaId().isEmpty()) { + schemaId_ = other.schemaId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.CreateSchemaRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.CreateSchemaRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
    +     * Required. The name of the project in which to create the schema.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The name of the project in which to create the schema.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The name of the project in which to create the schema.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the project in which to create the schema.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the project in which to create the schema.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.pubsub.v1.Schema schema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemaBuilder_; + /** + * + * + *
    +     * Required. The schema object to create.
    +     * This schema's `name` parameter is ignored. The schema object returned
    +     * by CreateSchema will have a `name` made using the given `parent` and
    +     * `schema_id`.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return schemaBuilder_ != null || schema_ != null; + } + /** + * + * + *
    +     * Required. The schema object to create.
    +     * This schema's `name` parameter is ignored. The schema object returned
    +     * by CreateSchema will have a `name` made using the given `parent` and
    +     * `schema_id`.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + public com.google.pubsub.v1.Schema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The schema object to create.
    +     * This schema's `name` parameter is ignored. The schema object returned
    +     * by CreateSchema will have a `name` made using the given `parent` and
    +     * `schema_id`.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSchema(com.google.pubsub.v1.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * Required. The schema object to create.
    +     * This schema's `name` parameter is ignored. The schema object returned
    +     * by CreateSchema will have a `name` made using the given `parent` and
    +     * `schema_id`.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * Required. The schema object to create.
    +     * This schema's `name` parameter is ignored. The schema object returned
    +     * by CreateSchema will have a `name` made using the given `parent` and
    +     * `schema_id`.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSchema(com.google.pubsub.v1.Schema value) { + if (schemaBuilder_ == null) { + if (schema_ != null) { + schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); + } else { + schema_ = value; + } + onChanged(); + } else { + schemaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * Required. The schema object to create.
    +     * This schema's `name` parameter is ignored. The schema object returned
    +     * by CreateSchema will have a `name` made using the given `parent` and
    +     * `schema_id`.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + schema_ = null; + onChanged(); + } else { + schema_ = null; + schemaBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * Required. The schema object to create.
    +     * This schema's `name` parameter is ignored. The schema object returned
    +     * by CreateSchema will have a `name` made using the given `parent` and
    +     * `schema_id`.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { + + onChanged(); + return getSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The schema object to create.
    +     * This schema's `name` parameter is ignored. The schema object returned
    +     * by CreateSchema will have a `name` made using the given `parent` and
    +     * `schema_id`.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + } + } + /** + * + * + *
    +     * Required. The schema object to create.
    +     * This schema's `name` parameter is ignored. The schema object returned
    +     * by CreateSchema will have a `name` made using the given `parent` and
    +     * `schema_id`.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + getSchema(), getParentForChildren(), isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + private java.lang.Object schemaId_ = ""; + /** + * + * + *
    +     * The ID to use for the schema, which will become the final component of
    +     * the schema's resource name.
    +     * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
    +     * name constraints.
    +     * 
    + * + * string schema_id = 3; + * + * @return The schemaId. + */ + public java.lang.String getSchemaId() { + java.lang.Object ref = schemaId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The ID to use for the schema, which will become the final component of
    +     * the schema's resource name.
    +     * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
    +     * name constraints.
    +     * 
    + * + * string schema_id = 3; + * + * @return The bytes for schemaId. + */ + public com.google.protobuf.ByteString getSchemaIdBytes() { + java.lang.Object ref = schemaId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schemaId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The ID to use for the schema, which will become the final component of
    +     * the schema's resource name.
    +     * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
    +     * name constraints.
    +     * 
    + * + * string schema_id = 3; + * + * @param value The schemaId to set. + * @return This builder for chaining. + */ + public Builder setSchemaId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaId_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The ID to use for the schema, which will become the final component of
    +     * the schema's resource name.
    +     * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
    +     * name constraints.
    +     * 
    + * + * string schema_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearSchemaId() { + + schemaId_ = getDefaultInstance().getSchemaId(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The ID to use for the schema, which will become the final component of
    +     * the schema's resource name.
    +     * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
    +     * name constraints.
    +     * 
    + * + * string schema_id = 3; + * + * @param value The bytes for schemaId to set. + * @return This builder for chaining. + */ + public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CreateSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.CreateSchemaRequest) + private static final com.google.pubsub.v1.CreateSchemaRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.CreateSchemaRequest(); + } + + public static com.google.pubsub.v1.CreateSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateSchemaRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.CreateSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..395a549cfcfc --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface CreateSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CreateSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the project in which to create the schema.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The name of the project in which to create the schema.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The schema object to create.
    +   * This schema's `name` parameter is ignored. The schema object returned
    +   * by CreateSchema will have a `name` made using the given `parent` and
    +   * `schema_id`.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + * + * + *
    +   * Required. The schema object to create.
    +   * This schema's `name` parameter is ignored. The schema object returned
    +   * by CreateSchema will have a `name` made using the given `parent` and
    +   * `schema_id`.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + com.google.pubsub.v1.Schema getSchema(); + /** + * + * + *
    +   * Required. The schema object to create.
    +   * This schema's `name` parameter is ignored. The schema object returned
    +   * by CreateSchema will have a `name` made using the given `parent` and
    +   * `schema_id`.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder(); + + /** + * + * + *
    +   * The ID to use for the schema, which will become the final component of
    +   * the schema's resource name.
    +   * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
    +   * name constraints.
    +   * 
    + * + * string schema_id = 3; + * + * @return The schemaId. + */ + java.lang.String getSchemaId(); + /** + * + * + *
    +   * The ID to use for the schema, which will become the final component of
    +   * the schema's resource name.
    +   * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
    +   * name constraints.
    +   * 
    + * + * string schema_id = 3; + * + * @return The bytes for schemaId. + */ + com.google.protobuf.ByteString getSchemaIdBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java new file mode 100644 index 000000000000..b09de9b8ee89 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Request for the `DeleteSchema` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.DeleteSchemaRequest} + */ +public final class DeleteSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRequest) + DeleteSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSchemaRequest.newBuilder() to construct. + private DeleteSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSchemaRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSchemaRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteSchemaRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeleteSchemaRequest.class, + com.google.pubsub.v1.DeleteSchemaRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
    +   * Required. Name of the schema to delete.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Name of the schema to delete.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.DeleteSchemaRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.DeleteSchemaRequest other = (com.google.pubsub.v1.DeleteSchemaRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.DeleteSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for the `DeleteSchema` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.DeleteSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSchemaRequest) + com.google.pubsub.v1.DeleteSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeleteSchemaRequest.class, + com.google.pubsub.v1.DeleteSchemaRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.DeleteSchemaRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.DeleteSchemaRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.DeleteSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.DeleteSchemaRequest build() { + com.google.pubsub.v1.DeleteSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.DeleteSchemaRequest buildPartial() { + com.google.pubsub.v1.DeleteSchemaRequest result = + new com.google.pubsub.v1.DeleteSchemaRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.DeleteSchemaRequest) { + return mergeFrom((com.google.pubsub.v1.DeleteSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.DeleteSchemaRequest other) { + if (other == com.google.pubsub.v1.DeleteSchemaRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.DeleteSchemaRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.DeleteSchemaRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. Name of the schema to delete.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Name of the schema to delete.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Name of the schema to delete.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Name of the schema to delete.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Name of the schema to delete.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSchemaRequest) + private static final com.google.pubsub.v1.DeleteSchemaRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSchemaRequest(); + } + + public static com.google.pubsub.v1.DeleteSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteSchemaRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.DeleteSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..5b4e5d304997 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface DeleteSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Name of the schema to delete.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Name of the schema to delete.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java new file mode 100644 index 000000000000..838fe7682ec6 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -0,0 +1,178 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Possible encoding types for messages.
    + * 
    + * + * Protobuf enum {@code google.pubsub.v1.Encoding} + */ +public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * Unspecified
    +   * 
    + * + * ENCODING_UNSPECIFIED = 0; + */ + ENCODING_UNSPECIFIED(0), + /** + * + * + *
    +   * JSON encoding
    +   * 
    + * + * JSON = 1; + */ + JSON(1), + /** + * + * + *
    +   * Binary encoding, as defined by the schema type. For some schema types,
    +   * binary encoding may not be available.
    +   * 
    + * + * BINARY = 2; + */ + BINARY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * Unspecified
    +   * 
    + * + * ENCODING_UNSPECIFIED = 0; + */ + public static final int ENCODING_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +   * JSON encoding
    +   * 
    + * + * JSON = 1; + */ + public static final int JSON_VALUE = 1; + /** + * + * + *
    +   * Binary encoding, as defined by the schema type. For some schema types,
    +   * binary encoding may not be available.
    +   * 
    + * + * BINARY = 2; + */ + public static final int BINARY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Encoding valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Encoding forNumber(int value) { + switch (value) { + case 0: + return ENCODING_UNSPECIFIED; + case 1: + return JSON; + case 2: + return BINARY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Encoding findValueByNumber(int number) { + return Encoding.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto.getDescriptor().getEnumTypes().get(1); + } + + private static final Encoding[] VALUES = values(); + + public static Encoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Encoding(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Encoding) +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java new file mode 100644 index 000000000000..d8dd20048a9b --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -0,0 +1,815 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Request for the GetSchema method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.GetSchemaRequest} + */ +public final class GetSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSchemaRequest) + GetSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSchemaRequest.newBuilder() to construct. + private GetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSchemaRequest() { + name_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSchemaRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetSchemaRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + view_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.GetSchemaRequest.class, + com.google.pubsub.v1.GetSchemaRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
    +   * Required. The name of the schema to get.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The name of the schema to get.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 2; + private int view_; + /** + * + * + *
    +   * The set of fields to return in the response. If not set, returns a Schema
    +   * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    +   * fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
    +   * The set of fields to return in the response. If not set, returns a Schema
    +   * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    +   * fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The view. + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaView getView() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(2, view_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.GetSchemaRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.GetSchemaRequest other = (com.google.pubsub.v1.GetSchemaRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.GetSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.GetSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for the GetSchema method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.GetSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSchemaRequest) + com.google.pubsub.v1.GetSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.GetSchemaRequest.class, + com.google.pubsub.v1.GetSchemaRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.GetSchemaRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + view_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.GetSchemaRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.GetSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.GetSchemaRequest build() { + com.google.pubsub.v1.GetSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.GetSchemaRequest buildPartial() { + com.google.pubsub.v1.GetSchemaRequest result = + new com.google.pubsub.v1.GetSchemaRequest(this); + result.name_ = name_; + result.view_ = view_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.GetSchemaRequest) { + return mergeFrom((com.google.pubsub.v1.GetSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.GetSchemaRequest other) { + if (other == com.google.pubsub.v1.GetSchemaRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.GetSchemaRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.GetSchemaRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. The name of the schema to get.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The name of the schema to get.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The name of the schema to get.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the schema to get.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the schema to get.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int view_ = 0; + /** + * + * + *
    +     * The set of fields to return in the response. If not set, returns a Schema
    +     * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    +     * fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
    +     * The set of fields to return in the response. If not set, returns a Schema
    +     * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    +     * fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + + view_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The set of fields to return in the response. If not set, returns a Schema
    +     * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    +     * fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The view. + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaView getView() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * The set of fields to return in the response. If not set, returns a Schema
    +     * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    +     * fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.pubsub.v1.SchemaView value) { + if (value == null) { + throw new NullPointerException(); + } + + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The set of fields to return in the response. If not set, returns a Schema
    +     * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    +     * fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return This builder for chaining. + */ + public Builder clearView() { + + view_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.GetSchemaRequest) + private static final com.google.pubsub.v1.GetSchemaRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.GetSchemaRequest(); + } + + public static com.google.pubsub.v1.GetSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSchemaRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.GetSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..54c9481e252a --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface GetSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the schema to get.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the schema to get.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * The set of fields to return in the response. If not set, returns a Schema
    +   * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    +   * fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
    +   * The set of fields to return in the response. If not set, returns a Schema
    +   * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    +   * fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The view. + */ + com.google.pubsub.v1.SchemaView getView(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java new file mode 100644 index 000000000000..95cf9ecabed7 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -0,0 +1,1099 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Request for the `ListSchemas` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.ListSchemasRequest} + */ +public final class ListSchemasRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasRequest) + ListSchemasRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSchemasRequest.newBuilder() to construct. + private ListSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSchemasRequest() { + parent_ = ""; + view_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSchemasRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListSchemasRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + view_ = rawValue; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSchemasRequest.class, + com.google.pubsub.v1.ListSchemasRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
    +   * Required. The name of the project in which to list schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The name of the project in which to list schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 2; + private int view_; + /** + * + * + *
    +   * The set of Schema fields to return in the response. If not set, returns
    +   * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +   * retrieve all fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
    +   * The set of Schema fields to return in the response. If not set, returns
    +   * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +   * retrieve all fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The view. + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaView getView() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
    +   * Maximum number of schemas to return.
    +   * 
    + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
    +   * The value returned by the last `ListSchemasResponse`; indicates that
    +   * this is a continuation of a prior `ListSchemas` call, and that the
    +   * system should return the next page of data.
    +   * 
    + * + * string page_token = 4; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * The value returned by the last `ListSchemasResponse`; indicates that
    +   * this is a continuation of a prior `ListSchemas` call, and that the
    +   * system should return the next page of data.
    +   * 
    + * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(2, view_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListSchemasRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListSchemasRequest other = (com.google.pubsub.v1.ListSchemasRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (view_ != other.view_) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListSchemasRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemasRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.ListSchemasRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for the `ListSchemas` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.ListSchemasRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemasRequest) + com.google.pubsub.v1.ListSchemasRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSchemasRequest.class, + com.google.pubsub.v1.ListSchemasRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListSchemasRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + view_ = 0; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemasRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ListSchemasRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemasRequest build() { + com.google.pubsub.v1.ListSchemasRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemasRequest buildPartial() { + com.google.pubsub.v1.ListSchemasRequest result = + new com.google.pubsub.v1.ListSchemasRequest(this); + result.parent_ = parent_; + result.view_ = view_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListSchemasRequest) { + return mergeFrom((com.google.pubsub.v1.ListSchemasRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListSchemasRequest other) { + if (other == com.google.pubsub.v1.ListSchemasRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListSchemasRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListSchemasRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
    +     * Required. The name of the project in which to list schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The name of the project in which to list schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The name of the project in which to list schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the project in which to list schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the project in which to list schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int view_ = 0; + /** + * + * + *
    +     * The set of Schema fields to return in the response. If not set, returns
    +     * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +     * retrieve all fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
    +     * The set of Schema fields to return in the response. If not set, returns
    +     * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +     * retrieve all fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + + view_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The set of Schema fields to return in the response. If not set, returns
    +     * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +     * retrieve all fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The view. + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaView getView() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * The set of Schema fields to return in the response. If not set, returns
    +     * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +     * retrieve all fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.pubsub.v1.SchemaView value) { + if (value == null) { + throw new NullPointerException(); + } + + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The set of Schema fields to return in the response. If not set, returns
    +     * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +     * retrieve all fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return This builder for chaining. + */ + public Builder clearView() { + + view_ = 0; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
    +     * Maximum number of schemas to return.
    +     * 
    + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
    +     * Maximum number of schemas to return.
    +     * 
    + * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Maximum number of schemas to return.
    +     * 
    + * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
    +     * The value returned by the last `ListSchemasResponse`; indicates that
    +     * this is a continuation of a prior `ListSchemas` call, and that the
    +     * system should return the next page of data.
    +     * 
    + * + * string page_token = 4; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The value returned by the last `ListSchemasResponse`; indicates that
    +     * this is a continuation of a prior `ListSchemas` call, and that the
    +     * system should return the next page of data.
    +     * 
    + * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The value returned by the last `ListSchemasResponse`; indicates that
    +     * this is a continuation of a prior `ListSchemas` call, and that the
    +     * system should return the next page of data.
    +     * 
    + * + * string page_token = 4; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The value returned by the last `ListSchemasResponse`; indicates that
    +     * this is a continuation of a prior `ListSchemas` call, and that the
    +     * system should return the next page of data.
    +     * 
    + * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The value returned by the last `ListSchemasResponse`; indicates that
    +     * this is a continuation of a prior `ListSchemas` call, and that the
    +     * system should return the next page of data.
    +     * 
    + * + * string page_token = 4; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemasRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSchemasRequest) + private static final com.google.pubsub.v1.ListSchemasRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSchemasRequest(); + } + + public static com.google.pubsub.v1.ListSchemasRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSchemasRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemasRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java new file mode 100644 index 000000000000..bd5787e76b26 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface ListSchemasRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemasRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the project in which to list schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The name of the project in which to list schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * The set of Schema fields to return in the response. If not set, returns
    +   * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +   * retrieve all fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
    +   * The set of Schema fields to return in the response. If not set, returns
    +   * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +   * retrieve all fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The view. + */ + com.google.pubsub.v1.SchemaView getView(); + + /** + * + * + *
    +   * Maximum number of schemas to return.
    +   * 
    + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * The value returned by the last `ListSchemasResponse`; indicates that
    +   * this is a continuation of a prior `ListSchemas` call, and that the
    +   * system should return the next page of data.
    +   * 
    + * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * The value returned by the last `ListSchemasResponse`; indicates that
    +   * this is a continuation of a prior `ListSchemas` call, and that the
    +   * system should return the next page of data.
    +   * 
    + * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java new file mode 100644 index 000000000000..ea77ff15a3d2 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -0,0 +1,1125 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Response for the `ListSchemas` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.ListSchemasResponse} + */ +public final class ListSchemasResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasResponse) + ListSchemasResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSchemasResponse.newBuilder() to construct. + private ListSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSchemasResponse() { + schemas_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSchemasResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListSchemasResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + schemas_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + schemas_.add( + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + schemas_ = java.util.Collections.unmodifiableList(schemas_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSchemasResponse.class, + com.google.pubsub.v1.ListSchemasResponse.Builder.class); + } + + public static final int SCHEMAS_FIELD_NUMBER = 1; + private java.util.List schemas_; + /** + * + * + *
    +   * The resulting schemas.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + @java.lang.Override + public java.util.List getSchemasList() { + return schemas_; + } + /** + * + * + *
    +   * The resulting schemas.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + @java.lang.Override + public java.util.List getSchemasOrBuilderList() { + return schemas_; + } + /** + * + * + *
    +   * The resulting schemas.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + @java.lang.Override + public int getSchemasCount() { + return schemas_.size(); + } + /** + * + * + *
    +   * The resulting schemas.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + @java.lang.Override + public com.google.pubsub.v1.Schema getSchemas(int index) { + return schemas_.get(index); + } + /** + * + * + *
    +   * The resulting schemas.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { + return schemas_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
    +   * If not empty, indicates that there may be more schemas that match the
    +   * request; this value should be passed in a new `ListSchemasRequest`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * If not empty, indicates that there may be more schemas that match the
    +   * request; this value should be passed in a new `ListSchemasRequest`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < schemas_.size(); i++) { + output.writeMessage(1, schemas_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < schemas_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListSchemasResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListSchemasResponse other = (com.google.pubsub.v1.ListSchemasResponse) obj; + + if (!getSchemasList().equals(other.getSchemasList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSchemasCount() > 0) { + hash = (37 * hash) + SCHEMAS_FIELD_NUMBER; + hash = (53 * hash) + getSchemasList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListSchemasResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemasResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.ListSchemasResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for the `ListSchemas` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.ListSchemasResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemasResponse) + com.google.pubsub.v1.ListSchemasResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSchemasResponse.class, + com.google.pubsub.v1.ListSchemasResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListSchemasResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSchemasFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (schemasBuilder_ == null) { + schemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + schemasBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemasResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.ListSchemasResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemasResponse build() { + com.google.pubsub.v1.ListSchemasResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemasResponse buildPartial() { + com.google.pubsub.v1.ListSchemasResponse result = + new com.google.pubsub.v1.ListSchemasResponse(this); + int from_bitField0_ = bitField0_; + if (schemasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + schemas_ = java.util.Collections.unmodifiableList(schemas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.schemas_ = schemas_; + } else { + result.schemas_ = schemasBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListSchemasResponse) { + return mergeFrom((com.google.pubsub.v1.ListSchemasResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListSchemasResponse other) { + if (other == com.google.pubsub.v1.ListSchemasResponse.getDefaultInstance()) return this; + if (schemasBuilder_ == null) { + if (!other.schemas_.isEmpty()) { + if (schemas_.isEmpty()) { + schemas_ = other.schemas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSchemasIsMutable(); + schemas_.addAll(other.schemas_); + } + onChanged(); + } + } else { + if (!other.schemas_.isEmpty()) { + if (schemasBuilder_.isEmpty()) { + schemasBuilder_.dispose(); + schemasBuilder_ = null; + schemas_ = other.schemas_; + bitField0_ = (bitField0_ & ~0x00000001); + schemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSchemasFieldBuilder() + : null; + } else { + schemasBuilder_.addAllMessages(other.schemas_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ListSchemasResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ListSchemasResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List schemas_ = + java.util.Collections.emptyList(); + + private void ensureSchemasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + schemas_ = new java.util.ArrayList(schemas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemasBuilder_; + + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public java.util.List getSchemasList() { + if (schemasBuilder_ == null) { + return java.util.Collections.unmodifiableList(schemas_); + } else { + return schemasBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public int getSchemasCount() { + if (schemasBuilder_ == null) { + return schemas_.size(); + } else { + return schemasBuilder_.getCount(); + } + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public com.google.pubsub.v1.Schema getSchemas(int index) { + if (schemasBuilder_ == null) { + return schemas_.get(index); + } else { + return schemasBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.set(index, value); + onChanged(); + } else { + schemasBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.set(index, builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder addSchemas(com.google.pubsub.v1.Schema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.add(value); + onChanged(); + } else { + schemasBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.add(index, value); + onChanged(); + } else { + schemasBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(index, builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder addAllSchemas(java.lang.Iterable values) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemas_); + onChanged(); + } else { + schemasBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder clearSchemas() { + if (schemasBuilder_ == null) { + schemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + schemasBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder removeSchemas(int index) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.remove(index); + onChanged(); + } else { + schemasBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public com.google.pubsub.v1.Schema.Builder getSchemasBuilder(int index) { + return getSchemasFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { + if (schemasBuilder_ == null) { + return schemas_.get(index); + } else { + return schemasBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public java.util.List + getSchemasOrBuilderList() { + if (schemasBuilder_ != null) { + return schemasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(schemas_); + } + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public com.google.pubsub.v1.Schema.Builder addSchemasBuilder() { + return getSchemasFieldBuilder().addBuilder(com.google.pubsub.v1.Schema.getDefaultInstance()); + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public com.google.pubsub.v1.Schema.Builder addSchemasBuilder(int index) { + return getSchemasFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.Schema.getDefaultInstance()); + } + /** + * + * + *
    +     * The resulting schemas.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public java.util.List getSchemasBuilderList() { + return getSchemasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + getSchemasFieldBuilder() { + if (schemasBuilder_ == null) { + schemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + schemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + schemas_ = null; + } + return schemasBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * If not empty, indicates that there may be more schemas that match the
    +     * request; this value should be passed in a new `ListSchemasRequest`.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * If not empty, indicates that there may be more schemas that match the
    +     * request; this value should be passed in a new `ListSchemasRequest`.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * If not empty, indicates that there may be more schemas that match the
    +     * request; this value should be passed in a new `ListSchemasRequest`.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * If not empty, indicates that there may be more schemas that match the
    +     * request; this value should be passed in a new `ListSchemasRequest`.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
    +     * If not empty, indicates that there may be more schemas that match the
    +     * request; this value should be passed in a new `ListSchemasRequest`.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemasResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSchemasResponse) + private static final com.google.pubsub.v1.ListSchemasResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSchemasResponse(); + } + + public static com.google.pubsub.v1.ListSchemasResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemasResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListSchemasResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemasResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java new file mode 100644 index 000000000000..3ee2015b1640 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface ListSchemasResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemasResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The resulting schemas.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + java.util.List getSchemasList(); + /** + * + * + *
    +   * The resulting schemas.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + com.google.pubsub.v1.Schema getSchemas(int index); + /** + * + * + *
    +   * The resulting schemas.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + int getSchemasCount(); + /** + * + * + *
    +   * The resulting schemas.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + java.util.List getSchemasOrBuilderList(); + /** + * + * + *
    +   * The resulting schemas.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index); + + /** + * + * + *
    +   * If not empty, indicates that there may be more schemas that match the
    +   * request; this value should be passed in a new `ListSchemasRequest`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * If not empty, indicates that there may be more schemas that match the
    +   * request; this value should be passed in a new `ListSchemasRequest`.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index b772a830cdf2..9ce64bc0ccbc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -31,6 +31,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_SchemaSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -243,268 +247,273 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\032\036google/protobuf/duration.proto\032\033go" + "ogle/protobuf/empty.proto\032 google/protob" + "uf/field_mask.proto\032\037google/protobuf/tim" - + "estamp.proto\";\n\024MessageStoragePolicy\022#\n\033" - + "allowed_persistence_regions\030\001 \003(\t\"\262\002\n\005To" - + "pic\022\021\n\004name\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#" - + ".google.pubsub.v1.Topic.LabelsEntry\022F\n\026m" - + "essage_storage_policy\030\003 \001(\0132&.google.pub" - + "sub.v1.MessageStoragePolicy\022\024\n\014kms_key_n" - + "ame\030\005 \001(\t\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001:T\352AQ\n\033pubsub.googleapis" - + ".com/Topic\022!projects/{project}/topics/{t" - + "opic}\022\017_deleted-topic_\"\361\001\n\rPubsubMessage" - + "\022\014\n\004data\030\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.goo" - + "gle.pubsub.v1.PubsubMessage.AttributesEn" - + "try\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_time\030" - + "\004 \001(\0132\032.google.protobuf.Timestamp\022\024\n\014ord" - + "ering_key\030\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicRe" - + "quest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.goo" - + "gleapis.com/Topic\"w\n\022UpdateTopicRequest\022" - + "+\n\005topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB" - + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005" - + "topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" - + "om/Topic\0226\n\010messages\030\002 \003(\0132\037.google.pubs" - + "ub.v1.PubsubMessageB\003\340A\002\"&\n\017PublishRespo" - + "nse\022\023\n\013message_ids\030\001 \003(\t\"\200\001\n\021ListTopicsR" - + "equest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudre" - + "sourcemanager.googleapis.com/Project\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022L" - + "istTopicsResponse\022\'\n\006topics\030\001 \003(\0132\027.goog" - + "le.pubsub.v1.Topic\022\027\n\017next_page_token\030\002 " - + "\001(\t\"z\n\035ListTopicSubscriptionsRequest\0222\n\005" + + "estamp.proto\032\035google/pubsub/v1/schema.pr" + + "oto\";\n\024MessageStoragePolicy\022#\n\033allowed_p" + + "ersistence_regions\030\001 \003(\t\"t\n\016SchemaSettin" + + "gs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" + + "eapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.goo" + + "gle.pubsub.v1.Encoding\"\204\003\n\005Topic\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#.google.pub" + + "sub.v1.Topic.LabelsEntry\022F\n\026message_stor" + + "age_policy\030\003 \001(\0132&.google.pubsub.v1.Mess" + + "ageStoragePolicy\022\024\n\014kms_key_name\030\005 \001(\t\0229" + + "\n\017schema_settings\030\006 \001(\0132 .google.pubsub." + + "v1.SchemaSettings\022\025\n\rsatisfies_pzs\030\007 \001(\010" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:T\352AQ\n\033pubsub.googleapis.com/Topi" + + "c\022!projects/{project}/topics/{topic}\022\017_d" + + "eleted-topic_\"\361\001\n\rPubsubMessage\022\014\n\004data\030" + + "\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsu" + + "b.v1.PubsubMessage.AttributesEntry\022\022\n\nme" + + "ssage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022\024\n\014ordering_key" + + "\030\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005" + "topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" - + "om/Topic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\"y\n\036ListTopicSubscriptionsRespons" - + "e\022>\n\rsubscriptions\030\001 \003(\tB\'\372A$\n\"pubsub.go" - + "ogleapis.com/Subscription\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"v\n\031ListTopicSnapshotsRequest\022" - + "2\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapi" - + "s.com/Topic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"H\n\032ListTopicSnapshotsResponse" - + "\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token\030\002" - + " \001(\t\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001 \001(" - + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"]" - + "\n\031DetachSubscriptionRequest\022@\n\014subscript" - + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" - + "/Subscription\"\034\n\032DetachSubscriptionRespo" - + "nse\"\300\005\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" - + "2\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapi" - + "s.com/Topic\0221\n\013push_config\030\004 \001(\0132\034.googl" - + "e.pubsub.v1.PushConfig\022\034\n\024ack_deadline_s" - + "econds\030\005 \001(\005\022\035\n\025retain_acked_messages\030\007 " - + "\001(\010\022=\n\032message_retention_duration\030\010 \001(\0132" - + "\031.google.protobuf.Duration\022:\n\006labels\030\t \003" - + "(\0132*.google.pubsub.v1.Subscription.Label" - + "sEntry\022\037\n\027enable_message_ordering\030\n \001(\010\022" - + "=\n\021expiration_policy\030\013 \001(\0132\".google.pubs" - + "ub.v1.ExpirationPolicy\022\016\n\006filter\030\014 \001(\t\022>" - + "\n\022dead_letter_policy\030\r \001(\0132\".google.pubs" - + "ub.v1.DeadLetterPolicy\0223\n\014retry_policy\030\016" - + " \001(\0132\035.google.pubsub.v1.RetryPolicy\022\020\n\010d" - + "etached\030\017 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub.google" - + "apis.com/Subscription\022/projects/{project" - + "}/subscriptions/{subscription}\"u\n\013RetryP" - + "olicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.google." - + "protobuf.Duration\0222\n\017maximum_backoff\030\002 \001" - + "(\0132\031.google.protobuf.Duration\"L\n\020DeadLet" - + "terPolicy\022\031\n\021dead_letter_topic\030\001 \001(\t\022\035\n\025" - + "max_delivery_attempts\030\002 \001(\005\":\n\020Expiratio" - + "nPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.protobuf.D" - + "uration\"\255\002\n\nPushConfig\022\025\n\rpush_endpoint\030" - + "\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google.pubsu" - + "b.v1.PushConfig.AttributesEntry\022<\n\noidc_" - + "token\030\003 \001(\0132&.google.pubsub.v1.PushConfi" - + "g.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025service_ac" - + "count_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017A" - + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001B\027\n\025authentication_method\"m\n\017Recei" - + "vedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 " - + "\001(\0132\037.google.pubsub.v1.PubsubMessage\022\030\n\020" - + "delivery_attempt\030\003 \001(\005\"Z\n\026GetSubscriptio" - + "nRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" - + "pubsub.googleapis.com/Subscription\"\214\001\n\031U" - + "pdateSubscriptionRequest\0229\n\014subscription" - + "\030\001 \001(\0132\036.google.pubsub.v1.SubscriptionB\003" - + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscriptionsR" - + "equest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudre" - + "sourcemanager.googleapis.com/Project\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031L" - + "istSubscriptionsResponse\0225\n\rsubscription" - + "s\030\001 \003(\0132\036.google.pubsub.v1.Subscription\022" - + "\027\n\017next_page_token\030\002 \001(\t\"]\n\031DeleteSubscr" - + "iptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\"" - + "\223\001\n\027ModifyPushConfigRequest\022@\n\014subscript" - + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" - + "/Subscription\0226\n\013push_config\030\002 \001(\0132\034.goo" - + "gle.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\022!\n\022retur" - + "n_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messag" - + "es\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n\021receive" + + "om/Topic\"w\n\022UpdateTopicRequest\022+\n\005topic\030" + + "\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001" + + "(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022" + + "6\n\010messages\030\002 \003(\0132\037.google.pubsub.v1.Pub" + + "subMessageB\003\340A\002\"&\n\017PublishResponse\022\023\n\013me" + + "ssage_ids\030\001 \003(\t\"\200\001\n\021ListTopicsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourceman" + + "ager.googleapis.com/Project\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListTopics" + + "Response\022\'\n\006topics\030\001 \003(\0132\027.google.pubsub" + + ".v1.Topic\022\027\n\017next_page_token\030\002 \001(\t\"z\n\035Li" + + "stTopicSubscriptionsRequest\0222\n\005topic\030\001 \001" + + "(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"y" + + "\n\036ListTopicSubscriptionsResponse\022>\n\rsubs" + + "criptions\030\001 \003(\tB\'\372A$\n\"pubsub.googleapis." + + "com/Subscription\022\027\n\017next_page_token\030\002 \001(" + + "\t\"v\n\031ListTopicSnapshotsRequest\0222\n\005topic\030" + + "\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Top" + + "ic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"H\n\032ListTopicSnapshotsResponse\022\021\n\tsnaps" + + "hots\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"H\n\022D" + + "eleteTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035" + + "\n\033pubsub.googleapis.com/Topic\"]\n\031DetachS" + + "ubscriptionRequest\022@\n\014subscription\030\001 \001(\t" + + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" + + "tion\"\034\n\032DetachSubscriptionResponse\"\300\005\n\014S" + + "ubscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030" + + "\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Top" + + "ic\0221\n\013push_config\030\004 \001(\0132\034.google.pubsub." + + "v1.PushConfig\022\034\n\024ack_deadline_seconds\030\005 " + + "\001(\005\022\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032me" + + "ssage_retention_duration\030\010 \001(\0132\031.google." + + "protobuf.Duration\022:\n\006labels\030\t \003(\0132*.goog" + + "le.pubsub.v1.Subscription.LabelsEntry\022\037\n" + + "\027enable_message_ordering\030\n \001(\010\022=\n\021expira" + + "tion_policy\030\013 \001(\0132\".google.pubsub.v1.Exp" + + "irationPolicy\022\016\n\006filter\030\014 \001(\t\022>\n\022dead_le" + + "tter_policy\030\r \001(\0132\".google.pubsub.v1.Dea" + + "dLetterPolicy\0223\n\014retry_policy\030\016 \001(\0132\035.go" + + "ogle.pubsub.v1.RetryPolicy\022\020\n\010detached\030\017" + + " \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub.googleapis.com/" + + "Subscription\022/projects/{project}/subscri" + + "ptions/{subscription}\"u\n\013RetryPolicy\0222\n\017" + + "minimum_backoff\030\001 \001(\0132\031.google.protobuf." + + "Duration\0222\n\017maximum_backoff\030\002 \001(\0132\031.goog" + + "le.protobuf.Duration\"L\n\020DeadLetterPolicy" + + "\022\031\n\021dead_letter_topic\030\001 \001(\t\022\035\n\025max_deliv" + + "ery_attempts\030\002 \001(\005\":\n\020ExpirationPolicy\022&" + + "\n\003ttl\030\001 \001(\0132\031.google.protobuf.Duration\"\255" + + "\002\n\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\n" + + "attributes\030\002 \003(\0132,.google.pubsub.v1.Push" + + "Config.AttributesEntry\022<\n\noidc_token\030\003 \001" + + "(\0132&.google.pubsub.v1.PushConfig.OidcTok" + + "enH\000\032<\n\tOidcToken\022\035\n\025service_account_ema" + + "il\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017Attributes" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" + + "\025authentication_method\"m\n\017ReceivedMessag" + + "e\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.goo" + + "gle.pubsub.v1.PubsubMessage\022\030\n\020delivery_" + + "attempt\030\003 \001(\005\"Z\n\026GetSubscriptionRequest\022" + + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" + + "ogleapis.com/Subscription\"\214\001\n\031UpdateSubs" + + "criptionRequest\0229\n\014subscription\030\001 \001(\0132\036." + + "google.pubsub.v1.SubscriptionB\003\340A\002\0224\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\003\340A\002\"\207\001\n\030ListSubscriptionsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourceman" + + "ager.googleapis.com/Project\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubscr" + + "iptionsResponse\0225\n\rsubscriptions\030\001 \003(\0132\036" + + ".google.pubsub.v1.Subscription\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"]\n\031DeleteSubscriptionReq" + + "uest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubs" + + "ub.googleapis.com/Subscription\"\223\001\n\027Modif" + + "yPushConfigRequest\022@\n\014subscription\030\001 \001(\t" + + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" + + "tion\0226\n\013push_config\030\002 \001(\0132\034.google.pubsu" + + "b.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014" + + "subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googl" + + "eapis.com/Subscription\022!\n\022return_immedia" + + "tely\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B" + + "\003\340A\002\"L\n\014PullResponse\022<\n\021received_message" + + "s\030\001 \003(\0132!.google.pubsub.v1.ReceivedMessa" + + "ge\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subsc" + + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" + + ".com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022" + + "!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Ac" + + "knowledgeRequest\022@\n\014subscription\030\001 \001(\tB*" + + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" + + "on\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\251\002\n\024StreamingPu" + + "llRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\017\n\007a" + + "ck_ids\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030" + + "\003 \003(\005\022\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022(" + + "\n\033stream_ack_deadline_seconds\030\005 \001(\005B\003\340A\002" + + "\022\021\n\tclient_id\030\006 \001(\t\022 \n\030max_outstanding_m" + + "essages\030\007 \001(\003\022\035\n\025max_outstanding_bytes\030\010" + + " \001(\003\"U\n\025StreamingPullResponse\022<\n\021receive" + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" - + "ivedMessage\"\225\001\n\030ModifyAckDeadlineRequest" + + "ivedMessage\"\203\002\n\025CreateSnapshotRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" + + "om/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A" + + "$\n\"pubsub.googleapis.com/Subscription\022C\n" + + "\006labels\030\003 \003(\01323.google.pubsub.v1.CreateS" + + "napshotRequest.LabelsEntry\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025Up" + + "dateSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032." + + "google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic" + + "\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic" + + "\022/\n\013expire_time\030\003 \001(\0132\032.google.protobuf." + + "Timestamp\0226\n\006labels\030\004 \003(\0132&.google.pubsu" + + "b.v1.Snapshot.LabelsEntry\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036p" + + "ubsub.googleapis.com/Snapshot\022\'projects/" + + "{project}/snapshots/{snapshot}\"N\n\022GetSna" + + "pshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036" + + "pubsub.googleapis.com/Snapshot\"\203\001\n\024ListS" + + "napshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-" + + "\n+cloudresourcemanager.googleapis.com/Pr" + + "oject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapsho" + + "ts\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n\017" + + "next_page_token\030\002 \001(\t\"Q\n\025DeleteSnapshotR" + + "equest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub" + + ".googleapis.com/Snapshot\"\276\001\n\013SeekRequest" + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\022\024\n\007ack_ids\030\004 " - + "\003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003" - + "\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscriptio" - + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S" - + "ubscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\251\002\n\024St" - + "reamingPullRequest\022@\n\014subscription\030\001 \001(\t" - + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" - + "tion\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_deadline" - + "_seconds\030\003 \003(\005\022\037\n\027modify_deadline_ack_id" - + "s\030\004 \003(\t\022(\n\033stream_ack_deadline_seconds\030\005" - + " \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030max_outs" - + "tanding_messages\030\007 \001(\003\022\035\n\025max_outstandin" - + "g_bytes\030\010 \001(\003\"U\n\025StreamingPullResponse\022<" - + "\n\021received_messages\030\001 \003(\0132!.google.pubsu" - + "b.v1.ReceivedMessage\"\203\002\n\025CreateSnapshotR" - + "equest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.goo" - + "gleapis.com/Snapshot\022@\n\014subscription\030\002 \001" - + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" - + "iption\022C\n\006labels\030\003 \003(\01323.google.pubsub.v" - + "1.CreateSnapshotRequest.LabelsEntry\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010snapshot" - + "\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003\340A\002\022" - + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t" - + "\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googleapis." - + "com/Topic\022/\n\013expire_time\030\003 \001(\0132\032.google." - + "protobuf.Timestamp\0226\n\006labels\030\004 \003(\0132&.goo" - + "gle.pubsub.v1.Snapshot.LabelsEntry\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001:L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'" - + "projects/{project}/snapshots/{snapshot}\"" - + "N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB" - + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"" - + "\203\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001(" - + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" - + "is.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-" - + "\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sna" - + "pshot\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\025Delete" - + "SnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A" - + " \n\036pubsub.googleapis.com/Snapshot\"\276\001\n\013Se" - + "ekRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022*\n\004t" - + "ime\030\002 \001(\0132\032.google.protobuf.TimestampH\000\022" - + "7\n\010snapshot\030\003 \001(\tB#\372A \n\036pubsub.googleapi" - + "s.com/SnapshotH\000B\010\n\006target\"\016\n\014SeekRespon" - + "se2\243\013\n\tPublisher\022q\n\013CreateTopic\022\027.google" - + ".pubsub.v1.Topic\032\027.google.pubsub.v1.Topi" - + "c\"0\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*" - + "}:\001*\332A\004name\022}\n\013UpdateTopic\022$.google.pubs" - + "ub.v1.UpdateTopicRequest\032\027.google.pubsub" - + ".v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name=proje" - + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google." - + "pubsub.v1.PublishRequest\032!.google.pubsub" - + ".v1.PublishResponse\"C\202\323\344\223\002,\"\'/v1/{topic=" - + "projects/*/topics/*}:publish:\001*\332A\016topic," - + "messages\022w\n\010GetTopic\022!.google.pubsub.v1." - + "GetTopicRequest\032\027.google.pubsub.v1.Topic" - + "\"/\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*" - + "}\332A\005topic\022\212\001\n\nListTopics\022#.google.pubsub" - + ".v1.ListTopicsRequest\032$.google.pubsub.v1" - + ".ListTopicsResponse\"1\202\323\344\223\002!\022\037/v1/{projec" - + "t=projects/*}/topics\332A\007project\022\272\001\n\026ListT" - + "opicSubscriptions\022/.google.pubsub.v1.Lis" - + "tTopicSubscriptionsRequest\0320.google.pubs" - + "ub.v1.ListTopicSubscriptionsResponse\"=\202\323" - + "\344\223\002/\022-/v1/{topic=projects/*/topics/*}/su" - + "bscriptions\332A\005topic\022\252\001\n\022ListTopicSnapsho" - + "ts\022+.google.pubsub.v1.ListTopicSnapshots" - + "Request\032,.google.pubsub.v1.ListTopicSnap" - + "shotsResponse\"9\202\323\344\223\002+\022)/v1/{topic=projec" - + "ts/*/topics/*}/snapshots\332A\005topic\022|\n\013Dele" - + "teTopic\022$.google.pubsub.v1.DeleteTopicRe" - + "quest\032\026.google.protobuf.Empty\"/\202\323\344\223\002!*\037/" - + "v1/{topic=projects/*/topics/*}\332A\005topic\022\255" - + "\001\n\022DetachSubscription\022+.google.pubsub.v1" - + ".DetachSubscriptionRequest\032,.google.pubs" - + "ub.v1.DetachSubscriptionResponse\"<\202\323\344\223\0026" - + "\"4/v1/{subscription=projects/*/subscript" - + "ions/*}:detach\032p\312A\025pubsub.googleapis.com" - + "\322AUhttps://www.googleapis.com/auth/cloud" - + "-platform,https://www.googleapis.com/aut" - + "h/pubsub2\203\025\n\nSubscriber\022\264\001\n\022CreateSubscr" - + "iption\022\036.google.pubsub.v1.Subscription\032\036" - + ".google.pubsub.v1.Subscription\"^\202\323\344\223\002*\032%" - + "/v1/{name=projects/*/subscriptions/*}:\001*" - + "\332A+name,topic,push_config,ack_deadline_s" - + "econds\022\241\001\n\017GetSubscription\022(.google.pubs" - + "ub.v1.GetSubscriptionRequest\032\036.google.pu" - + "bsub.v1.Subscription\"D\202\323\344\223\002/\022-/v1/{subsc" - + "ription=projects/*/subscriptions/*}\332A\014su" - + "bscription\022\240\001\n\022UpdateSubscription\022+.goog" - + "le.pubsub.v1.UpdateSubscriptionRequest\032\036" - + ".google.pubsub.v1.Subscription\"=\202\323\344\223\002722" - + "/v1/{subscription.name=projects/*/subscr" - + "iptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*.go" - + "ogle.pubsub.v1.ListSubscriptionsRequest\032" - + "+.google.pubsub.v1.ListSubscriptionsResp" - + "onse\"8\202\323\344\223\002(\022&/v1/{project=projects/*}/s" - + "ubscriptions\332A\007project\022\237\001\n\022DeleteSubscri" - + "ption\022+.google.pubsub.v1.DeleteSubscript" - + "ionRequest\032\026.google.protobuf.Empty\"D\202\323\344\223" - + "\002/*-/v1/{subscription=projects/*/subscri" - + "ptions/*}\332A\014subscription\022\317\001\n\021ModifyAckDe" - + "adline\022*.google.pubsub.v1.ModifyAckDeadl" - + "ineRequest\032\026.google.protobuf.Empty\"v\202\323\344\223" - + "\002D\"?/v1/{subscription=projects/*/subscri" - + "ptions/*}:modifyAckDeadline:\001*\332A)subscri" - + "ption,ack_ids,ack_deadline_seconds\022\250\001\n\013A" - + "cknowledge\022$.google.pubsub.v1.Acknowledg" - + "eRequest\032\026.google.protobuf.Empty\"[\202\323\344\223\002>" - + "\"9/v1/{subscription=projects/*/subscript" - + "ions/*}:acknowledge:\001*\332A\024subscription,ac" - + "k_ids\022\263\001\n\004Pull\022\035.google.pubsub.v1.PullRe" - + "quest\032\036.google.pubsub.v1.PullResponse\"l\202" - + "\323\344\223\0027\"2/v1/{subscription=projects/*/subs" - + "criptions/*}:pull:\001*\332A,subscription,retu" - + "rn_immediately,max_messages\022f\n\rStreaming" - + "Pull\022&.google.pubsub.v1.StreamingPullReq" - + "uest\032\'.google.pubsub.v1.StreamingPullRes" - + "ponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).googl" - + "e.pubsub.v1.ModifyPushConfigRequest\032\026.go" - + "ogle.protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subscr" - + "iption=projects/*/subscriptions/*}:modif" - + "yPushConfig:\001*\332A\030subscription,push_confi" - + "g\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1.Get" - + "SnapshotRequest\032\032.google.pubsub.v1.Snaps" - + "hot\"8\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/sn" - + "apshots/*}\332A\010snapshot\022\226\001\n\rListSnapshots\022" - + "&.google.pubsub.v1.ListSnapshotsRequest\032" - + "\'.google.pubsub.v1.ListSnapshotsResponse" - + "\"4\202\323\344\223\002$\022\"/v1/{project=projects/*}/snaps" - + "hots\332A\007project\022\227\001\n\016CreateSnapshot\022\'.goog" - + "le.pubsub.v1.CreateSnapshotRequest\032\032.goo" - + "gle.pubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{nam" - + "e=projects/*/snapshots/*}:\001*\332A\021name,subs" - + "cription\022\214\001\n\016UpdateSnapshot\022\'.google.pub" - + "sub.v1.UpdateSnapshotRequest\032\032.google.pu" - + "bsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot." - + "name=projects/*/snapshots/*}:\001*\022\213\001\n\016Dele" - + "teSnapshot\022\'.google.pubsub.v1.DeleteSnap" - + "shotRequest\032\026.google.protobuf.Empty\"8\202\323\344" - + "\223\002\'*%/v1/{snapshot=projects/*/snapshots/" - + "*}\332A\010snapshot\022\204\001\n\004Seek\022\035.google.pubsub.v" - + "1.SeekRequest\032\036.google.pubsub.v1.SeekRes" - + "ponse\"=\202\323\344\223\0027\"2/v1/{subscription=project" - + "s/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub." - + "googleapis.com\322AUhttps://www.googleapis." - + "com/auth/cloud-platform,https://www.goog" - + "leapis.com/auth/pubsubB\256\001\n\024com.google.pu" - + "bsub.v1B\013PubsubProtoP\001Z6google.golang.or" - + "g/genproto/googleapis/pubsub/v1;pubsub\370\001" - + "\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clou" - + "d\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1b" - + "\006proto3" + + "oogleapis.com/Subscription\022*\n\004time\030\002 \001(\013" + + "2\032.google.protobuf.TimestampH\000\0227\n\010snapsh" + + "ot\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/Sna" + + "pshotH\000B\010\n\006target\"\016\n\014SeekResponse2\243\013\n\tPu" + + "blisher\022q\n\013CreateTopic\022\027.google.pubsub.v" + + "1.Topic\032\027.google.pubsub.v1.Topic\"0\202\323\344\223\002#" + + "\032\036/v1/{name=projects/*/topics/*}:\001*\332A\004na" + + "me\022}\n\013UpdateTopic\022$.google.pubsub.v1.Upd" + + "ateTopicRequest\032\027.google.pubsub.v1.Topic" + + "\"/\202\323\344\223\002)2$/v1/{topic.name=projects/*/top" + + "ics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1" + + ".PublishRequest\032!.google.pubsub.v1.Publi" + + "shResponse\"C\202\323\344\223\002,\"\'/v1/{topic=projects/" + + "*/topics/*}:publish:\001*\332A\016topic,messages\022" + + "w\n\010GetTopic\022!.google.pubsub.v1.GetTopicR" + + "equest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002!\022" + + "\037/v1/{topic=projects/*/topics/*}\332A\005topic" + + "\022\212\001\n\nListTopics\022#.google.pubsub.v1.ListT" + + "opicsRequest\032$.google.pubsub.v1.ListTopi" + + "csResponse\"1\202\323\344\223\002!\022\037/v1/{project=project" + + "s/*}/topics\332A\007project\022\272\001\n\026ListTopicSubsc" + + "riptions\022/.google.pubsub.v1.ListTopicSub" + + "scriptionsRequest\0320.google.pubsub.v1.Lis" + + "tTopicSubscriptionsResponse\"=\202\323\344\223\002/\022-/v1" + + "/{topic=projects/*/topics/*}/subscriptio" + + "ns\332A\005topic\022\252\001\n\022ListTopicSnapshots\022+.goog" + + "le.pubsub.v1.ListTopicSnapshotsRequest\032," + + ".google.pubsub.v1.ListTopicSnapshotsResp" + + "onse\"9\202\323\344\223\002+\022)/v1/{topic=projects/*/topi" + + "cs/*}/snapshots\332A\005topic\022|\n\013DeleteTopic\022$" + + ".google.pubsub.v1.DeleteTopicRequest\032\026.g" + + "oogle.protobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topic" + + "=projects/*/topics/*}\332A\005topic\022\255\001\n\022Detach" + + "Subscription\022+.google.pubsub.v1.DetachSu" + + "bscriptionRequest\032,.google.pubsub.v1.Det" + + "achSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{su" + + "bscription=projects/*/subscriptions/*}:d" + + "etach\032p\312A\025pubsub.googleapis.com\322AUhttps:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/pubsub2" + + "\203\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036." + + "google.pubsub.v1.Subscription\032\036.google.p" + + "ubsub.v1.Subscription\"^\202\323\344\223\002*\032%/v1/{name" + + "=projects/*/subscriptions/*}:\001*\332A+name,t" + + "opic,push_config,ack_deadline_seconds\022\241\001" + + "\n\017GetSubscription\022(.google.pubsub.v1.Get" + + "SubscriptionRequest\032\036.google.pubsub.v1.S" + + "ubscription\"D\202\323\344\223\002/\022-/v1/{subscription=p" + + "rojects/*/subscriptions/*}\332A\014subscriptio" + + "n\022\240\001\n\022UpdateSubscription\022+.google.pubsub" + + ".v1.UpdateSubscriptionRequest\032\036.google.p" + + "ubsub.v1.Subscription\"=\202\323\344\223\002722/v1/{subs" + + "cription.name=projects/*/subscriptions/*" + + "}:\001*\022\246\001\n\021ListSubscriptions\022*.google.pubs" + + "ub.v1.ListSubscriptionsRequest\032+.google." + + "pubsub.v1.ListSubscriptionsResponse\"8\202\323\344" + + "\223\002(\022&/v1/{project=projects/*}/subscripti" + + "ons\332A\007project\022\237\001\n\022DeleteSubscription\022+.g" + + "oogle.pubsub.v1.DeleteSubscriptionReques" + + "t\032\026.google.protobuf.Empty\"D\202\323\344\223\002/*-/v1/{" + + "subscription=projects/*/subscriptions/*}" + + "\332A\014subscription\022\317\001\n\021ModifyAckDeadline\022*." + + "google.pubsub.v1.ModifyAckDeadlineReques" + + "t\032\026.google.protobuf.Empty\"v\202\323\344\223\002D\"?/v1/{" + + "subscription=projects/*/subscriptions/*}" + + ":modifyAckDeadline:\001*\332A)subscription,ack" + + "_ids,ack_deadline_seconds\022\250\001\n\013Acknowledg" + + "e\022$.google.pubsub.v1.AcknowledgeRequest\032" + + "\026.google.protobuf.Empty\"[\202\323\344\223\002>\"9/v1/{su" + + "bscription=projects/*/subscriptions/*}:a" + + "cknowledge:\001*\332A\024subscription,ack_ids\022\263\001\n" + + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.g" + + "oogle.pubsub.v1.PullResponse\"l\202\323\344\223\0027\"2/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}:pull:\001*\332A,subscription,return_immedi" + + "ately,max_messages\022f\n\rStreamingPull\022&.go" + + "ogle.pubsub.v1.StreamingPullRequest\032\'.go" + + "ogle.pubsub.v1.StreamingPullResponse\"\000(\001" + + "0\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub." + + "v1.ModifyPushConfigRequest\032\026.google.prot" + + "obuf.Empty\"d\202\323\344\223\002C\">/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:modifyPushConf" + + "ig:\001*\332A\030subscription,push_config\022\211\001\n\013Get" + + "Snapshot\022$.google.pubsub.v1.GetSnapshotR" + + "equest\032\032.google.pubsub.v1.Snapshot\"8\202\323\344\223" + + "\002\'\022%/v1/{snapshot=projects/*/snapshots/*" + + "}\332A\010snapshot\022\226\001\n\rListSnapshots\022&.google." + + "pubsub.v1.ListSnapshotsRequest\032\'.google." + + "pubsub.v1.ListSnapshotsResponse\"4\202\323\344\223\002$\022" + + "\"/v1/{project=projects/*}/snapshots\332A\007pr" + + "oject\022\227\001\n\016CreateSnapshot\022\'.google.pubsub" + + ".v1.CreateSnapshotRequest\032\032.google.pubsu" + + "b.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{name=project" + + "s/*/snapshots/*}:\001*\332A\021name,subscription\022" + + "\214\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.Up" + + "dateSnapshotRequest\032\032.google.pubsub.v1.S" + + "napshot\"5\202\323\344\223\002/2*/v1/{snapshot.name=proj" + + "ects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapsho" + + "t\022\'.google.pubsub.v1.DeleteSnapshotReque" + + "st\032\026.google.protobuf.Empty\"8\202\323\344\223\002\'*%/v1/" + + "{snapshot=projects/*/snapshots/*}\332A\010snap" + + "shot\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReq" + + "uest\032\036.google.pubsub.v1.SeekResponse\"=\202\323" + + "\344\223\0027\"2/v1/{subscription=projects/*/subsc" + + "riptions/*}:seek:\001*\032p\312A\025pubsub.googleapi" + + "s.com\322AUhttps://www.googleapis.com/auth/" + + "cloud-platform,https://www.googleapis.co" + + "m/auth/pubsubB\256\001\n\024com.google.pubsub.v1B\013" + + "PubsubProtoP\001Z6google.golang.org/genprot" + + "o/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026Googl" + + "e.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\" + + "V1\352\002\031Google::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -518,6 +527,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.pubsub.v1.SchemaProto.getDescriptor(), }); internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor = getDescriptor().getMessageTypes().get(0); @@ -527,12 +537,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "AllowedPersistenceRegions", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_pubsub_v1_SchemaSettings_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_SchemaSettings_descriptor, + new java.lang.String[] { + "Schema", "Encoding", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, new java.lang.String[] { - "Name", "Labels", "MessageStoragePolicy", "KmsKeyName", + "Name", + "Labels", + "MessageStoragePolicy", + "KmsKeyName", + "SchemaSettings", + "SatisfiesPzs", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); @@ -543,7 +566,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -559,7 +582,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, @@ -567,7 +590,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, @@ -575,7 +598,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, @@ -583,7 +606,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, @@ -591,7 +614,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, @@ -599,7 +622,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, @@ -607,7 +630,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, @@ -615,7 +638,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, @@ -623,7 +646,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, @@ -631,7 +654,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, @@ -639,7 +662,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, @@ -647,7 +670,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, @@ -655,13 +678,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -689,7 +712,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -697,7 +720,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -705,7 +728,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -713,7 +736,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -737,7 +760,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -745,7 +768,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -753,7 +776,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -761,7 +784,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -769,7 +792,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -777,7 +800,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -785,7 +808,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -793,7 +816,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -801,7 +824,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -809,7 +832,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -817,7 +840,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -825,7 +848,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -840,7 +863,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -848,7 +871,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -864,7 +887,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -872,7 +895,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -888,7 +911,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -896,7 +919,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -904,7 +927,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -912,7 +935,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -920,7 +943,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -928,7 +951,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); @@ -951,6 +974,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.pubsub.v1.SchemaProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java new file mode 100644 index 000000000000..cd8adc77b2cd --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * A schema resource.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.Schema} + */ +public final class Schema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.Schema) + SchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. + private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Schema() { + name_ = ""; + type_ = 0; + definition_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Schema(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Schema( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + definition_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Schema.class, com.google.pubsub.v1.Schema.Builder.class); + } + + /** + * + * + *
    +   * Possible schema definition types.
    +   * 
    + * + * Protobuf enum {@code google.pubsub.v1.Schema.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
    +     * A Protocol Buffer schema definition.
    +     * 
    + * + * PROTOCOL_BUFFER = 1; + */ + PROTOCOL_BUFFER(1), + /** + * + * + *
    +     * An Avro schema definition.
    +     * 
    + * + * AVRO = 2; + */ + AVRO(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * A Protocol Buffer schema definition.
    +     * 
    + * + * PROTOCOL_BUFFER = 1; + */ + public static final int PROTOCOL_BUFFER_VALUE = 1; + /** + * + * + *
    +     * An Avro schema definition.
    +     * 
    + * + * AVRO = 2; + */ + public static final int AVRO_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return PROTOCOL_BUFFER; + case 2: + return AVRO; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.Schema.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Schema.Type) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
    +   * Required. Name of the schema.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Name of the schema.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_; + /** + * + * + *
    +   * The type of the schema definition.
    +   * 
    + * + * .google.pubsub.v1.Schema.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
    +   * The type of the schema definition.
    +   * 
    + * + * .google.pubsub.v1.Schema.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.pubsub.v1.Schema.Type getType() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.valueOf(type_); + return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; + } + + public static final int DEFINITION_FIELD_NUMBER = 3; + private volatile java.lang.Object definition_; + /** + * + * + *
    +   * The definition of the schema. This should contain a string representing
    +   * the full definition of the schema that is a valid schema definition of
    +   * the type specified in `type`.
    +   * 
    + * + * string definition = 3; + * + * @return The definition. + */ + @java.lang.Override + public java.lang.String getDefinition() { + java.lang.Object ref = definition_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + definition_ = s; + return s; + } + } + /** + * + * + *
    +   * The definition of the schema. This should contain a string representing
    +   * the full definition of the schema that is a valid schema definition of
    +   * the type specified in `type`.
    +   * 
    + * + * string definition = 3; + * + * @return The bytes for definition. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefinitionBytes() { + java.lang.Object ref = definition_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + definition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (type_ != com.google.pubsub.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (!getDefinitionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, definition_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (type_ != com.google.pubsub.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!getDefinitionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, definition_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.Schema)) { + return super.equals(obj); + } + com.google.pubsub.v1.Schema other = (com.google.pubsub.v1.Schema) obj; + + if (!getName().equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (!getDefinition().equals(other.getDefinition())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + DEFINITION_FIELD_NUMBER; + hash = (53 * hash) + getDefinition().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.Schema parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.Schema parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.Schema parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.Schema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.Schema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.Schema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.Schema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.Schema parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.Schema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.Schema parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.Schema parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.Schema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.Schema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * A schema resource.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.Schema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Schema) + com.google.pubsub.v1.SchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_Schema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Schema.class, com.google.pubsub.v1.Schema.Builder.class); + } + + // Construct using com.google.pubsub.v1.Schema.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + type_ = 0; + + definition_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.Schema getDefaultInstanceForType() { + return com.google.pubsub.v1.Schema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.Schema build() { + com.google.pubsub.v1.Schema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.Schema buildPartial() { + com.google.pubsub.v1.Schema result = new com.google.pubsub.v1.Schema(this); + result.name_ = name_; + result.type_ = type_; + result.definition_ = definition_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.Schema) { + return mergeFrom((com.google.pubsub.v1.Schema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.Schema other) { + if (other == com.google.pubsub.v1.Schema.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getDefinition().isEmpty()) { + definition_ = other.definition_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.Schema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.Schema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. Name of the schema.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Name of the schema.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Name of the schema.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Name of the schema.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Name of the schema.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
    +     * The type of the schema definition.
    +     * 
    + * + * .google.pubsub.v1.Schema.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
    +     * The type of the schema definition.
    +     * 
    + * + * .google.pubsub.v1.Schema.Type type = 2; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + + type_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The type of the schema definition.
    +     * 
    + * + * .google.pubsub.v1.Schema.Type type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.pubsub.v1.Schema.Type getType() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.valueOf(type_); + return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * The type of the schema definition.
    +     * 
    + * + * .google.pubsub.v1.Schema.Type type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.pubsub.v1.Schema.Type value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The type of the schema definition.
    +     * 
    + * + * .google.pubsub.v1.Schema.Type type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object definition_ = ""; + /** + * + * + *
    +     * The definition of the schema. This should contain a string representing
    +     * the full definition of the schema that is a valid schema definition of
    +     * the type specified in `type`.
    +     * 
    + * + * string definition = 3; + * + * @return The definition. + */ + public java.lang.String getDefinition() { + java.lang.Object ref = definition_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + definition_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The definition of the schema. This should contain a string representing
    +     * the full definition of the schema that is a valid schema definition of
    +     * the type specified in `type`.
    +     * 
    + * + * string definition = 3; + * + * @return The bytes for definition. + */ + public com.google.protobuf.ByteString getDefinitionBytes() { + java.lang.Object ref = definition_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + definition_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The definition of the schema. This should contain a string representing
    +     * the full definition of the schema that is a valid schema definition of
    +     * the type specified in `type`.
    +     * 
    + * + * string definition = 3; + * + * @param value The definition to set. + * @return This builder for chaining. + */ + public Builder setDefinition(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + definition_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The definition of the schema. This should contain a string representing
    +     * the full definition of the schema that is a valid schema definition of
    +     * the type specified in `type`.
    +     * 
    + * + * string definition = 3; + * + * @return This builder for chaining. + */ + public Builder clearDefinition() { + + definition_ = getDefaultInstance().getDefinition(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The definition of the schema. This should contain a string representing
    +     * the full definition of the schema that is a valid schema definition of
    +     * the type specified in `type`.
    +     * 
    + * + * string definition = 3; + * + * @param value The bytes for definition to set. + * @return This builder for chaining. + */ + public Builder setDefinitionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + definition_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Schema) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.Schema) + private static final com.google.pubsub.v1.Schema DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.Schema(); + } + + public static com.google.pubsub.v1.Schema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Schema(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.Schema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java new file mode 100644 index 000000000000..658f517c0ea4 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -0,0 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.pubsub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +/** AUTO-GENERATED DOCUMENTATION AND CLASS */ +@javax.annotation.Generated("by GAPIC protoc plugin") +public class SchemaName implements ResourceName { + + private static final PathTemplate PATH_TEMPLATE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/schemas/{schema}"); + + private volatile Map fieldValuesMap; + + private final String project; + private final String schema; + + public String getProject() { + return project; + } + + public String getSchema() { + return schema; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + private SchemaName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + schema = Preconditions.checkNotNull(builder.getSchema()); + } + + public static SchemaName of(String project, String schema) { + return newBuilder().setProject(project).setSchema(schema).build(); + } + + public static String format(String project, String schema) { + return newBuilder().setProject(project).setSchema(schema).build().toString(); + } + + public static SchemaName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PATH_TEMPLATE.validatedMatch( + formattedString, "SchemaName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("schema")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList(values.size()); + for (SchemaName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PATH_TEMPLATE.matches(formattedString); + } + + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + fieldMapBuilder.put("project", project); + fieldMapBuilder.put("schema", schema); + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PATH_TEMPLATE.instantiate("project", project, "schema", schema); + } + + /** Builder for SchemaName. */ + public static class Builder { + + private String project; + private String schema; + + public String getProject() { + return project; + } + + public String getSchema() { + return schema; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setSchema(String schema) { + this.schema = schema; + return this; + } + + private Builder() {} + + private Builder(SchemaName schemaName) { + project = schemaName.project; + schema = schemaName.schema; + } + + public SchemaName build() { + return new SchemaName(this); + } + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o instanceof SchemaName) { + SchemaName that = (SchemaName) o; + return (this.project.equals(that.project)) && (this.schema.equals(that.schema)); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= project.hashCode(); + h *= 1000003; + h ^= schema.hashCode(); + return h; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java new file mode 100644 index 000000000000..30c88d8aa204 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface SchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Schema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Name of the schema.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. Name of the schema.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * The type of the schema definition.
    +   * 
    + * + * .google.pubsub.v1.Schema.Type type = 2; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
    +   * The type of the schema definition.
    +   * 
    + * + * .google.pubsub.v1.Schema.Type type = 2; + * + * @return The type. + */ + com.google.pubsub.v1.Schema.Type getType(); + + /** + * + * + *
    +   * The definition of the schema. This should contain a string representing
    +   * the full definition of the schema that is a valid schema definition of
    +   * the type specified in `type`.
    +   * 
    + * + * string definition = 3; + * + * @return The definition. + */ + java.lang.String getDefinition(); + /** + * + * + *
    +   * The definition of the schema. This should contain a string representing
    +   * the full definition of the schema that is a valid schema definition of
    +   * the type specified in `type`.
    +   * 
    + * + * string definition = 3; + * + * @return The bytes for definition. + */ + com.google.protobuf.ByteString getDefinitionBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java new file mode 100644 index 000000000000..f692cb8914ed --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -0,0 +1,255 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public final class SchemaProto { + private SchemaProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Schema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Schema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\035google/pubsub/v1/schema.proto\022\020google." + + "pubsub.v1\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\032\037google/api/fie" + + "ld_behavior.proto\032\031google/api/resource.p" + + "roto\032\033google/protobuf/empty.proto\"\341\001\n\006Sc" + + "hema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035." + + "google.pubsub.v1.Schema.Type\022\022\n\ndefiniti" + + "on\030\003 \001(\t\";\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\023" + + "\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n\034pubs" + + "ub.googleapis.com/Schema\022#projects/{proj" + + "ect}/schemas/{schema}\"\215\001\n\023CreateSchemaRe" + + "quest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubsub.go" + + "ogleapis.com/Schema\022-\n\006schema\030\002 \001(\0132\030.go" + + "ogle.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschema_id\030" + + "\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001 \001(\tB" + + "$\340A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n" + + "\004view\030\002 \001(\0162\034.google.pubsub.v1.SchemaVie" + + "w\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022*\n\004view\030\002 \001(\0162\034.google.pub" + + "sub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" + + "page_token\030\004 \001(\t\"Y\n\023ListSchemasResponse\022" + + ")\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1.Sche" + + "ma\022\027\n\017next_page_token\030\002 \001(\t\"I\n\023DeleteSch" + + "emaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub" + + ".googleapis.com/Schema\"\213\001\n\025ValidateSchem" + + "aRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudr" + + "esourcemanager.googleapis.com/Project\022-\n" + + "\006schema\030\002 \001(\0132\030.google.pubsub.v1.SchemaB" + + "\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n\026Valid" + + "ateMessageRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub.google" + + "apis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132\030.goog" + + "le.pubsub.v1.SchemaH\000\022\017\n\007message\030\004 \001(\014\022," + + "\n\010encoding\030\005 \001(\0162\032.google.pubsub.v1.Enco" + + "dingB\r\n\013schema_spec\"\031\n\027ValidateMessageRe" + + "sponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIEW_UNSP" + + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010Encodi" + + "ng\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JSON\020\001\022\n" + + "\n\006BINARY\020\0022\367\007\n\rSchemaService\022\232\001\n\014CreateS" + + "chema\022%.google.pubsub.v1.CreateSchemaReq" + + "uest\032\030.google.pubsub.v1.Schema\"I\202\323\344\223\002)\"\037" + + "/v1/{parent=projects/*}/schemas:\006schema\332" + + "A\027parent,schema,schema_id\022y\n\tGetSchema\022\"" + + ".google.pubsub.v1.GetSchemaRequest\032\030.goo" + + "gle.pubsub.v1.Schema\".\202\323\344\223\002!\022\037/v1/{name=" + + "projects/*/schemas/*}\332A\004name\022\214\001\n\013ListSch" + + "emas\022$.google.pubsub.v1.ListSchemasReque" + + "st\032%.google.pubsub.v1.ListSchemasRespons" + + "e\"0\202\323\344\223\002!\022\037/v1/{parent=projects/*}/schem" + + "as\332A\006parent\022}\n\014DeleteSchema\022%.google.pub" + + "sub.v1.DeleteSchemaRequest\032\026.google.prot" + + "obuf.Empty\".\202\323\344\223\002!*\037/v1/{name=projects/*" + + "/schemas/*}\332A\004name\022\250\001\n\016ValidateSchema\022\'." + + "google.pubsub.v1.ValidateSchemaRequest\032(" + + ".google.pubsub.v1.ValidateSchemaResponse" + + "\"C\202\323\344\223\002-\"(/v1/{parent=projects/*}/schema" + + "s:validate:\001*\332A\rparent,schema\022\242\001\n\017Valida" + + "teMessage\022(.google.pubsub.v1.ValidateMes" + + "sageRequest\032).google.pubsub.v1.ValidateM" + + "essageResponse\":\202\323\344\223\0024\"//v1/{parent=proj" + + "ects/*}/schemas:validateMessage:\001*\032p\312A\025p" + + "ubsub.googleapis.com\322AUhttps://www.googl" + + "eapis.com/auth/cloud-platform,https://ww" + + "w.googleapis.com/auth/pubsubB\256\001\n\024com.goo" + + "gle.pubsub.v1B\013SchemaProtoP\001Z6google.gol" + + "ang.org/genproto/googleapis/pubsub/v1;pu" + + "bsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Googl" + + "e\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSu" + + "b::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_pubsub_v1_Schema_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_pubsub_v1_Schema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Schema_descriptor, + new java.lang.String[] { + "Name", "Type", "Definition", + }); + internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor, + new java.lang.String[] { + "Parent", "Schema", "SchemaId", + }); + internal_static_google_pubsub_v1_GetSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_GetSchemaRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_pubsub_v1_ListSchemasRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSchemasRequest_descriptor, + new java.lang.String[] { + "Parent", "View", "PageSize", "PageToken", + }); + internal_static_google_pubsub_v1_ListSchemasResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSchemasResponse_descriptor, + new java.lang.String[] { + "Schemas", "NextPageToken", + }); + internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor, + new java.lang.String[] { + "Parent", "Schema", + }); + internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor, + new java.lang.String[] { + "Parent", "Name", "Schema", "Message", "Encoding", "SchemaSpec", + }); + internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor, + new java.lang.String[] {}); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java new file mode 100644 index 000000000000..bca71d43299e --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -0,0 +1,814 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Settings for validating messages published against a schema.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.SchemaSettings} + */ +public final class SchemaSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.SchemaSettings) + SchemaSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SchemaSettings.newBuilder() to construct. + private SchemaSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SchemaSettings() { + schema_ = ""; + encoding_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SchemaSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SchemaSettings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + schema_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + encoding_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SchemaSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.SchemaSettings.class, + com.google.pubsub.v1.SchemaSettings.Builder.class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + private volatile java.lang.Object schema_; + /** + * + * + *
    +   * Required. The name of the schema that messages published should be
    +   * validated against. Format is `projects/{project}/schemas/{schema}`. The
    +   * value of this field will be `_deleted-schema_` if the schema has been
    +   * deleted.
    +   * 
    + * + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The name of the schema that messages published should be
    +   * validated against. Format is `projects/{project}/schemas/{schema}`. The
    +   * value of this field will be `_deleted-schema_` if the schema has been
    +   * deleted.
    +   * 
    + * + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENCODING_FIELD_NUMBER = 2; + private int encoding_; + /** + * + * + *
    +   * The encoding of messages validated against `schema`.
    +   * 
    + * + * .google.pubsub.v1.Encoding encoding = 2; + * + * @return The enum numeric value on the wire for encoding. + */ + @java.lang.Override + public int getEncodingValue() { + return encoding_; + } + /** + * + * + *
    +   * The encoding of messages validated against `schema`.
    +   * 
    + * + * .google.pubsub.v1.Encoding encoding = 2; + * + * @return The encoding. + */ + @java.lang.Override + public com.google.pubsub.v1.Encoding getEncoding() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(encoding_); + return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSchemaBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); + } + if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { + output.writeEnum(2, encoding_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSchemaBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); + } + if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, encoding_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.SchemaSettings)) { + return super.equals(obj); + } + com.google.pubsub.v1.SchemaSettings other = (com.google.pubsub.v1.SchemaSettings) obj; + + if (!getSchema().equals(other.getSchema())) return false; + if (encoding_ != other.encoding_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + ENCODING_FIELD_NUMBER; + hash = (53 * hash) + encoding_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.SchemaSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.SchemaSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.SchemaSettings parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.SchemaSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.SchemaSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.SchemaSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.SchemaSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.SchemaSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.SchemaSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.SchemaSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.SchemaSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.SchemaSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.SchemaSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Settings for validating messages published against a schema.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.SchemaSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SchemaSettings) + com.google.pubsub.v1.SchemaSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SchemaSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.SchemaSettings.class, + com.google.pubsub.v1.SchemaSettings.Builder.class); + } + + // Construct using com.google.pubsub.v1.SchemaSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + schema_ = ""; + + encoding_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_SchemaSettings_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.SchemaSettings getDefaultInstanceForType() { + return com.google.pubsub.v1.SchemaSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.SchemaSettings build() { + com.google.pubsub.v1.SchemaSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.SchemaSettings buildPartial() { + com.google.pubsub.v1.SchemaSettings result = new com.google.pubsub.v1.SchemaSettings(this); + result.schema_ = schema_; + result.encoding_ = encoding_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.SchemaSettings) { + return mergeFrom((com.google.pubsub.v1.SchemaSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.SchemaSettings other) { + if (other == com.google.pubsub.v1.SchemaSettings.getDefaultInstance()) return this; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (other.encoding_ != 0) { + setEncodingValue(other.getEncodingValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.SchemaSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.SchemaSettings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object schema_ = ""; + /** + * + * + *
    +     * Required. The name of the schema that messages published should be
    +     * validated against. Format is `projects/{project}/schemas/{schema}`. The
    +     * value of this field will be `_deleted-schema_` if the schema has been
    +     * deleted.
    +     * 
    + * + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The name of the schema that messages published should be
    +     * validated against. Format is `projects/{project}/schemas/{schema}`. The
    +     * value of this field will be `_deleted-schema_` if the schema has been
    +     * deleted.
    +     * 
    + * + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The name of the schema that messages published should be
    +     * validated against. Format is `projects/{project}/schemas/{schema}`. The
    +     * value of this field will be `_deleted-schema_` if the schema has been
    +     * deleted.
    +     * 
    + * + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schema_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the schema that messages published should be
    +     * validated against. Format is `projects/{project}/schemas/{schema}`. The
    +     * value of this field will be `_deleted-schema_` if the schema has been
    +     * deleted.
    +     * 
    + * + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + + schema_ = getDefaultInstance().getSchema(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the schema that messages published should be
    +     * validated against. Format is `projects/{project}/schemas/{schema}`. The
    +     * value of this field will be `_deleted-schema_` if the schema has been
    +     * deleted.
    +     * 
    + * + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + private int encoding_ = 0; + /** + * + * + *
    +     * The encoding of messages validated against `schema`.
    +     * 
    + * + * .google.pubsub.v1.Encoding encoding = 2; + * + * @return The enum numeric value on the wire for encoding. + */ + @java.lang.Override + public int getEncodingValue() { + return encoding_; + } + /** + * + * + *
    +     * The encoding of messages validated against `schema`.
    +     * 
    + * + * .google.pubsub.v1.Encoding encoding = 2; + * + * @param value The enum numeric value on the wire for encoding to set. + * @return This builder for chaining. + */ + public Builder setEncodingValue(int value) { + + encoding_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The encoding of messages validated against `schema`.
    +     * 
    + * + * .google.pubsub.v1.Encoding encoding = 2; + * + * @return The encoding. + */ + @java.lang.Override + public com.google.pubsub.v1.Encoding getEncoding() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(encoding_); + return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * The encoding of messages validated against `schema`.
    +     * 
    + * + * .google.pubsub.v1.Encoding encoding = 2; + * + * @param value The encoding to set. + * @return This builder for chaining. + */ + public Builder setEncoding(com.google.pubsub.v1.Encoding value) { + if (value == null) { + throw new NullPointerException(); + } + + encoding_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The encoding of messages validated against `schema`.
    +     * 
    + * + * .google.pubsub.v1.Encoding encoding = 2; + * + * @return This builder for chaining. + */ + public Builder clearEncoding() { + + encoding_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SchemaSettings) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.SchemaSettings) + private static final com.google.pubsub.v1.SchemaSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.SchemaSettings(); + } + + public static com.google.pubsub.v1.SchemaSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SchemaSettings(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.SchemaSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java new file mode 100644 index 000000000000..f44178d47155 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface SchemaSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SchemaSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the schema that messages published should be
    +   * validated against. Format is `projects/{project}/schemas/{schema}`. The
    +   * value of this field will be `_deleted-schema_` if the schema has been
    +   * deleted.
    +   * 
    + * + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The schema. + */ + java.lang.String getSchema(); + /** + * + * + *
    +   * Required. The name of the schema that messages published should be
    +   * validated against. Format is `projects/{project}/schemas/{schema}`. The
    +   * value of this field will be `_deleted-schema_` if the schema has been
    +   * deleted.
    +   * 
    + * + * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + * + * + *
    +   * The encoding of messages validated against `schema`.
    +   * 
    + * + * .google.pubsub.v1.Encoding encoding = 2; + * + * @return The enum numeric value on the wire for encoding. + */ + int getEncodingValue(); + /** + * + * + *
    +   * The encoding of messages validated against `schema`.
    +   * 
    + * + * .google.pubsub.v1.Encoding encoding = 2; + * + * @return The encoding. + */ + com.google.pubsub.v1.Encoding getEncoding(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java new file mode 100644 index 000000000000..2d9433fd1b44 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -0,0 +1,178 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * View of Schema object fields to be returned by GetSchema and ListSchemas.
    + * 
    + * + * Protobuf enum {@code google.pubsub.v1.SchemaView} + */ +public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * The default / unset value.
    +   * The API will default to the BASIC view.
    +   * 
    + * + * SCHEMA_VIEW_UNSPECIFIED = 0; + */ + SCHEMA_VIEW_UNSPECIFIED(0), + /** + * + * + *
    +   * Include the name and type of the schema, but not the definition.
    +   * 
    + * + * BASIC = 1; + */ + BASIC(1), + /** + * + * + *
    +   * Include all Schema object fields.
    +   * 
    + * + * FULL = 2; + */ + FULL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +   * The default / unset value.
    +   * The API will default to the BASIC view.
    +   * 
    + * + * SCHEMA_VIEW_UNSPECIFIED = 0; + */ + public static final int SCHEMA_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +   * Include the name and type of the schema, but not the definition.
    +   * 
    + * + * BASIC = 1; + */ + public static final int BASIC_VALUE = 1; + /** + * + * + *
    +   * Include all Schema object fields.
    +   * 
    + * + * FULL = 2; + */ + public static final int FULL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SchemaView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SchemaView forNumber(int value) { + switch (value) { + case 0: + return SCHEMA_VIEW_UNSPECIFIED; + case 1: + return BASIC; + case 2: + return FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaView findValueByNumber(int number) { + return SchemaView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto.getDescriptor().getEnumTypes().get(0); + } + + private static final SchemaView[] VALUES = values(); + + public static SchemaView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SchemaView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.SchemaView) +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 18db5a187a03..6a7449962e9d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -115,6 +115,27 @@ private Topic( kmsKeyName_ = s; break; } + case 50: + { + com.google.pubsub.v1.SchemaSettings.Builder subBuilder = null; + if (schemaSettings_ != null) { + subBuilder = schemaSettings_.toBuilder(); + } + schemaSettings_ = + input.readMessage( + com.google.pubsub.v1.SchemaSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schemaSettings_); + schemaSettings_ = subBuilder.buildPartial(); + } + + break; + } + case 56: + { + satisfiesPzs_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -426,6 +447,76 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } + public static final int SCHEMA_SETTINGS_FIELD_NUMBER = 6; + private com.google.pubsub.v1.SchemaSettings schemaSettings_; + /** + * + * + *
    +   * Settings for validating messages published against a schema.
    +   * EXPERIMENTAL: Schema support is in development and may not work yet.
    +   * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * @return Whether the schemaSettings field is set. + */ + @java.lang.Override + public boolean hasSchemaSettings() { + return schemaSettings_ != null; + } + /** + * + * + *
    +   * Settings for validating messages published against a schema.
    +   * EXPERIMENTAL: Schema support is in development and may not work yet.
    +   * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * @return The schemaSettings. + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { + return schemaSettings_ == null + ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() + : schemaSettings_; + } + /** + * + * + *
    +   * Settings for validating messages published against a schema.
    +   * EXPERIMENTAL: Schema support is in development and may not work yet.
    +   * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() { + return getSchemaSettings(); + } + + public static final int SATISFIES_PZS_FIELD_NUMBER = 7; + private boolean satisfiesPzs_; + /** + * + * + *
    +   * Reserved for future use. This field is set only in responses from the
    +   * server; it is ignored if it is set in any requests.
    +   * 
    + * + * bool satisfies_pzs = 7; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -451,6 +542,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getKmsKeyNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kmsKeyName_); } + if (schemaSettings_ != null) { + output.writeMessage(6, getSchemaSettings()); + } + if (satisfiesPzs_ != false) { + output.writeBool(7, satisfiesPzs_); + } unknownFields.writeTo(output); } @@ -480,6 +577,12 @@ public int getSerializedSize() { if (!getKmsKeyNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kmsKeyName_); } + if (schemaSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSchemaSettings()); + } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, satisfiesPzs_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -502,6 +605,11 @@ public boolean equals(final java.lang.Object obj) { if (!getMessageStoragePolicy().equals(other.getMessageStoragePolicy())) return false; } if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (hasSchemaSettings() != other.hasSchemaSettings()) return false; + if (hasSchemaSettings()) { + if (!getSchemaSettings().equals(other.getSchemaSettings())) return false; + } + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -525,6 +633,12 @@ public int hashCode() { } hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; hash = (53 * hash) + getKmsKeyName().hashCode(); + if (hasSchemaSettings()) { + hash = (37 * hash) + SCHEMA_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSchemaSettings().hashCode(); + } + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -698,6 +812,14 @@ public Builder clear() { } kmsKeyName_ = ""; + if (schemaSettingsBuilder_ == null) { + schemaSettings_ = null; + } else { + schemaSettings_ = null; + schemaSettingsBuilder_ = null; + } + satisfiesPzs_ = false; + return this; } @@ -733,6 +855,12 @@ public com.google.pubsub.v1.Topic buildPartial() { result.messageStoragePolicy_ = messageStoragePolicyBuilder_.build(); } result.kmsKeyName_ = kmsKeyName_; + if (schemaSettingsBuilder_ == null) { + result.schemaSettings_ = schemaSettings_; + } else { + result.schemaSettings_ = schemaSettingsBuilder_.build(); + } + result.satisfiesPzs_ = satisfiesPzs_; onBuilt(); return result; } @@ -794,6 +922,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { kmsKeyName_ = other.kmsKeyName_; onChanged(); } + if (other.hasSchemaSettings()) { + mergeSchemaSettings(other.getSchemaSettings()); + } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1440,6 +1574,255 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.pubsub.v1.SchemaSettings schemaSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.SchemaSettings, + com.google.pubsub.v1.SchemaSettings.Builder, + com.google.pubsub.v1.SchemaSettingsOrBuilder> + schemaSettingsBuilder_; + /** + * + * + *
    +     * Settings for validating messages published against a schema.
    +     * EXPERIMENTAL: Schema support is in development and may not work yet.
    +     * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * @return Whether the schemaSettings field is set. + */ + public boolean hasSchemaSettings() { + return schemaSettingsBuilder_ != null || schemaSettings_ != null; + } + /** + * + * + *
    +     * Settings for validating messages published against a schema.
    +     * EXPERIMENTAL: Schema support is in development and may not work yet.
    +     * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * @return The schemaSettings. + */ + public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { + if (schemaSettingsBuilder_ == null) { + return schemaSettings_ == null + ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() + : schemaSettings_; + } else { + return schemaSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Settings for validating messages published against a schema.
    +     * EXPERIMENTAL: Schema support is in development and may not work yet.
    +     * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + */ + public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { + if (schemaSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schemaSettings_ = value; + onChanged(); + } else { + schemaSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * Settings for validating messages published against a schema.
    +     * EXPERIMENTAL: Schema support is in development and may not work yet.
    +     * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + */ + public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder builderForValue) { + if (schemaSettingsBuilder_ == null) { + schemaSettings_ = builderForValue.build(); + onChanged(); + } else { + schemaSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * Settings for validating messages published against a schema.
    +     * EXPERIMENTAL: Schema support is in development and may not work yet.
    +     * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + */ + public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { + if (schemaSettingsBuilder_ == null) { + if (schemaSettings_ != null) { + schemaSettings_ = + com.google.pubsub.v1.SchemaSettings.newBuilder(schemaSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + schemaSettings_ = value; + } + onChanged(); + } else { + schemaSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * Settings for validating messages published against a schema.
    +     * EXPERIMENTAL: Schema support is in development and may not work yet.
    +     * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + */ + public Builder clearSchemaSettings() { + if (schemaSettingsBuilder_ == null) { + schemaSettings_ = null; + onChanged(); + } else { + schemaSettings_ = null; + schemaSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * Settings for validating messages published against a schema.
    +     * EXPERIMENTAL: Schema support is in development and may not work yet.
    +     * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + */ + public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { + + onChanged(); + return getSchemaSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Settings for validating messages published against a schema.
    +     * EXPERIMENTAL: Schema support is in development and may not work yet.
    +     * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + */ + public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() { + if (schemaSettingsBuilder_ != null) { + return schemaSettingsBuilder_.getMessageOrBuilder(); + } else { + return schemaSettings_ == null + ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() + : schemaSettings_; + } + } + /** + * + * + *
    +     * Settings for validating messages published against a schema.
    +     * EXPERIMENTAL: Schema support is in development and may not work yet.
    +     * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.SchemaSettings, + com.google.pubsub.v1.SchemaSettings.Builder, + com.google.pubsub.v1.SchemaSettingsOrBuilder> + getSchemaSettingsFieldBuilder() { + if (schemaSettingsBuilder_ == null) { + schemaSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.SchemaSettings, + com.google.pubsub.v1.SchemaSettings.Builder, + com.google.pubsub.v1.SchemaSettingsOrBuilder>( + getSchemaSettings(), getParentForChildren(), isClean()); + schemaSettings_ = null; + } + return schemaSettingsBuilder_; + } + + private boolean satisfiesPzs_; + /** + * + * + *
    +     * Reserved for future use. This field is set only in responses from the
    +     * server; it is ignored if it is set in any requests.
    +     * 
    + * + * bool satisfies_pzs = 7; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
    +     * Reserved for future use. This field is set only in responses from the
    +     * server; it is ignored if it is set in any requests.
    +     * 
    + * + * bool satisfies_pzs = 7; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Reserved for future use. This field is set only in responses from the
    +     * server; it is ignored if it is set in any requests.
    +     * 
    + * + * bool satisfies_pzs = 7; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + + satisfiesPzs_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index a118464808ad..d7606f288854 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -186,4 +186,56 @@ public interface TopicOrBuilder * @return The bytes for kmsKeyName. */ com.google.protobuf.ByteString getKmsKeyNameBytes(); + + /** + * + * + *
    +   * Settings for validating messages published against a schema.
    +   * EXPERIMENTAL: Schema support is in development and may not work yet.
    +   * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * @return Whether the schemaSettings field is set. + */ + boolean hasSchemaSettings(); + /** + * + * + *
    +   * Settings for validating messages published against a schema.
    +   * EXPERIMENTAL: Schema support is in development and may not work yet.
    +   * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * @return The schemaSettings. + */ + com.google.pubsub.v1.SchemaSettings getSchemaSettings(); + /** + * + * + *
    +   * Settings for validating messages published against a schema.
    +   * EXPERIMENTAL: Schema support is in development and may not work yet.
    +   * 
    + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6; + */ + com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder(); + + /** + * + * + *
    +   * Reserved for future use. This field is set only in responses from the
    +   * server; it is ignored if it is set in any requests.
    +   * 
    + * + * bool satisfies_pzs = 7; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java new file mode 100644 index 000000000000..215bef410614 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -0,0 +1,1486 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Request for the `ValidateMessage` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.ValidateMessageRequest} + */ +public final class ValidateMessageRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageRequest) + ValidateMessageRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValidateMessageRequest.newBuilder() to construct. + private ValidateMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ValidateMessageRequest() { + parent_ = ""; + message_ = com.google.protobuf.ByteString.EMPTY; + encoding_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ValidateMessageRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ValidateMessageRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + schemaSpecCase_ = 2; + schemaSpec_ = s; + break; + } + case 26: + { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schemaSpecCase_ == 3) { + subBuilder = ((com.google.pubsub.v1.Schema) schemaSpec_).toBuilder(); + } + schemaSpec_ = + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.pubsub.v1.Schema) schemaSpec_); + schemaSpec_ = subBuilder.buildPartial(); + } + schemaSpecCase_ = 3; + break; + } + case 34: + { + message_ = input.readBytes(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + encoding_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ValidateMessageRequest.class, + com.google.pubsub.v1.ValidateMessageRequest.Builder.class); + } + + private int schemaSpecCase_ = 0; + private java.lang.Object schemaSpec_; + + public enum SchemaSpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NAME(2), + SCHEMA(3), + SCHEMASPEC_NOT_SET(0); + private final int value; + + private SchemaSpecCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SchemaSpecCase valueOf(int value) { + return forNumber(value); + } + + public static SchemaSpecCase forNumber(int value) { + switch (value) { + case 2: + return NAME; + case 3: + return SCHEMA; + case 0: + return SCHEMASPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SchemaSpecCase getSchemaSpecCase() { + return SchemaSpecCase.forNumber(schemaSpecCase_); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
    +   * Required. The name of the project in which to validate schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The name of the project in which to validate schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Name of the schema against which to validate.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = ""; + if (schemaSpecCase_ == 2) { + ref = schemaSpec_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (schemaSpecCase_ == 2) { + schemaSpec_ = s; + } + return s; + } + } + /** + * + * + *
    +   * Name of the schema against which to validate.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = ""; + if (schemaSpecCase_ == 2) { + ref = schemaSpec_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (schemaSpecCase_ == 2) { + schemaSpec_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 3; + /** + * + * + *
    +   * Ad-hoc schema against which to validate
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 3; + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return schemaSpecCase_ == 3; + } + /** + * + * + *
    +   * Ad-hoc schema against which to validate
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 3; + * + * @return The schema. + */ + @java.lang.Override + public com.google.pubsub.v1.Schema getSchema() { + if (schemaSpecCase_ == 3) { + return (com.google.pubsub.v1.Schema) schemaSpec_; + } + return com.google.pubsub.v1.Schema.getDefaultInstance(); + } + /** + * + * + *
    +   * Ad-hoc schema against which to validate
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 3; + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { + if (schemaSpecCase_ == 3) { + return (com.google.pubsub.v1.Schema) schemaSpec_; + } + return com.google.pubsub.v1.Schema.getDefaultInstance(); + } + + public static final int MESSAGE_FIELD_NUMBER = 4; + private com.google.protobuf.ByteString message_; + /** + * + * + *
    +   * Message to validate against the provided `schema_spec`.
    +   * 
    + * + * bytes message = 4; + * + * @return The message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessage() { + return message_; + } + + public static final int ENCODING_FIELD_NUMBER = 5; + private int encoding_; + /** + * + * + *
    +   * The encoding expected for messages
    +   * 
    + * + * .google.pubsub.v1.Encoding encoding = 5; + * + * @return The enum numeric value on the wire for encoding. + */ + @java.lang.Override + public int getEncodingValue() { + return encoding_; + } + /** + * + * + *
    +   * The encoding expected for messages
    +   * 
    + * + * .google.pubsub.v1.Encoding encoding = 5; + * + * @return The encoding. + */ + @java.lang.Override + public com.google.pubsub.v1.Encoding getEncoding() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(encoding_); + return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (schemaSpecCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaSpec_); + } + if (schemaSpecCase_ == 3) { + output.writeMessage(3, (com.google.pubsub.v1.Schema) schemaSpec_); + } + if (!message_.isEmpty()) { + output.writeBytes(4, message_); + } + if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { + output.writeEnum(5, encoding_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (schemaSpecCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaSpec_); + } + if (schemaSpecCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.pubsub.v1.Schema) schemaSpec_); + } + if (!message_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, message_); + } + if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, encoding_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ValidateMessageRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ValidateMessageRequest other = + (com.google.pubsub.v1.ValidateMessageRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (encoding_ != other.encoding_) return false; + if (!getSchemaSpecCase().equals(other.getSchemaSpecCase())) return false; + switch (schemaSpecCase_) { + case 2: + if (!getName().equals(other.getName())) return false; + break; + case 3: + if (!getSchema().equals(other.getSchema())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + ENCODING_FIELD_NUMBER; + hash = (53 * hash) + encoding_; + switch (schemaSpecCase_) { + case 2: + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + break; + case 3: + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.ValidateMessageRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for the `ValidateMessage` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.ValidateMessageRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateMessageRequest) + com.google.pubsub.v1.ValidateMessageRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ValidateMessageRequest.class, + com.google.pubsub.v1.ValidateMessageRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ValidateMessageRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + message_ = com.google.protobuf.ByteString.EMPTY; + + encoding_ = 0; + + schemaSpecCase_ = 0; + schemaSpec_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateMessageRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ValidateMessageRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateMessageRequest build() { + com.google.pubsub.v1.ValidateMessageRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateMessageRequest buildPartial() { + com.google.pubsub.v1.ValidateMessageRequest result = + new com.google.pubsub.v1.ValidateMessageRequest(this); + result.parent_ = parent_; + if (schemaSpecCase_ == 2) { + result.schemaSpec_ = schemaSpec_; + } + if (schemaSpecCase_ == 3) { + if (schemaBuilder_ == null) { + result.schemaSpec_ = schemaSpec_; + } else { + result.schemaSpec_ = schemaBuilder_.build(); + } + } + result.message_ = message_; + result.encoding_ = encoding_; + result.schemaSpecCase_ = schemaSpecCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ValidateMessageRequest) { + return mergeFrom((com.google.pubsub.v1.ValidateMessageRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ValidateMessageRequest other) { + if (other == com.google.pubsub.v1.ValidateMessageRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getMessage() != com.google.protobuf.ByteString.EMPTY) { + setMessage(other.getMessage()); + } + if (other.encoding_ != 0) { + setEncodingValue(other.getEncodingValue()); + } + switch (other.getSchemaSpecCase()) { + case NAME: + { + schemaSpecCase_ = 2; + schemaSpec_ = other.schemaSpec_; + onChanged(); + break; + } + case SCHEMA: + { + mergeSchema(other.getSchema()); + break; + } + case SCHEMASPEC_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ValidateMessageRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ValidateMessageRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int schemaSpecCase_ = 0; + private java.lang.Object schemaSpec_; + + public SchemaSpecCase getSchemaSpecCase() { + return SchemaSpecCase.forNumber(schemaSpecCase_); + } + + public Builder clearSchemaSpec() { + schemaSpecCase_ = 0; + schemaSpec_ = null; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
    +     * Required. The name of the project in which to validate schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The name of the project in which to validate schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The name of the project in which to validate schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the project in which to validate schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the project in which to validate schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Name of the schema against which to validate.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = ""; + if (schemaSpecCase_ == 2) { + ref = schemaSpec_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (schemaSpecCase_ == 2) { + schemaSpec_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Name of the schema against which to validate.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = ""; + if (schemaSpecCase_ == 2) { + ref = schemaSpec_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (schemaSpecCase_ == 2) { + schemaSpec_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Name of the schema against which to validate.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + schemaSpecCase_ = 2; + schemaSpec_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Name of the schema against which to validate.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearName() { + if (schemaSpecCase_ == 2) { + schemaSpecCase_ = 0; + schemaSpec_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Name of the schema against which to validate.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaSpecCase_ = 2; + schemaSpec_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemaBuilder_; + /** + * + * + *
    +     * Ad-hoc schema against which to validate
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 3; + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return schemaSpecCase_ == 3; + } + /** + * + * + *
    +     * Ad-hoc schema against which to validate
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 3; + * + * @return The schema. + */ + @java.lang.Override + public com.google.pubsub.v1.Schema getSchema() { + if (schemaBuilder_ == null) { + if (schemaSpecCase_ == 3) { + return (com.google.pubsub.v1.Schema) schemaSpec_; + } + return com.google.pubsub.v1.Schema.getDefaultInstance(); + } else { + if (schemaSpecCase_ == 3) { + return schemaBuilder_.getMessage(); + } + return com.google.pubsub.v1.Schema.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Ad-hoc schema against which to validate
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 3; + */ + public Builder setSchema(com.google.pubsub.v1.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schemaSpec_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + schemaSpecCase_ = 3; + return this; + } + /** + * + * + *
    +     * Ad-hoc schema against which to validate
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 3; + */ + public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schemaSpec_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + schemaSpecCase_ = 3; + return this; + } + /** + * + * + *
    +     * Ad-hoc schema against which to validate
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 3; + */ + public Builder mergeSchema(com.google.pubsub.v1.Schema value) { + if (schemaBuilder_ == null) { + if (schemaSpecCase_ == 3 + && schemaSpec_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { + schemaSpec_ = + com.google.pubsub.v1.Schema.newBuilder((com.google.pubsub.v1.Schema) schemaSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + schemaSpec_ = value; + } + onChanged(); + } else { + if (schemaSpecCase_ == 3) { + schemaBuilder_.mergeFrom(value); + } + schemaBuilder_.setMessage(value); + } + schemaSpecCase_ = 3; + return this; + } + /** + * + * + *
    +     * Ad-hoc schema against which to validate
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 3; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + if (schemaSpecCase_ == 3) { + schemaSpecCase_ = 0; + schemaSpec_ = null; + onChanged(); + } + } else { + if (schemaSpecCase_ == 3) { + schemaSpecCase_ = 0; + schemaSpec_ = null; + } + schemaBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Ad-hoc schema against which to validate
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 3; + */ + public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { + return getSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Ad-hoc schema against which to validate
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 3; + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { + if ((schemaSpecCase_ == 3) && (schemaBuilder_ != null)) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + if (schemaSpecCase_ == 3) { + return (com.google.pubsub.v1.Schema) schemaSpec_; + } + return com.google.pubsub.v1.Schema.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Ad-hoc schema against which to validate
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + if (!(schemaSpecCase_ == 3)) { + schemaSpec_ = com.google.pubsub.v1.Schema.getDefaultInstance(); + } + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + (com.google.pubsub.v1.Schema) schemaSpec_, getParentForChildren(), isClean()); + schemaSpec_ = null; + } + schemaSpecCase_ = 3; + onChanged(); + ; + return schemaBuilder_; + } + + private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
    +     * Message to validate against the provided `schema_spec`.
    +     * 
    + * + * bytes message = 4; + * + * @return The message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessage() { + return message_; + } + /** + * + * + *
    +     * Message to validate against the provided `schema_spec`.
    +     * 
    + * + * bytes message = 4; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Message to validate against the provided `schema_spec`.
    +     * 
    + * + * bytes message = 4; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + + private int encoding_ = 0; + /** + * + * + *
    +     * The encoding expected for messages
    +     * 
    + * + * .google.pubsub.v1.Encoding encoding = 5; + * + * @return The enum numeric value on the wire for encoding. + */ + @java.lang.Override + public int getEncodingValue() { + return encoding_; + } + /** + * + * + *
    +     * The encoding expected for messages
    +     * 
    + * + * .google.pubsub.v1.Encoding encoding = 5; + * + * @param value The enum numeric value on the wire for encoding to set. + * @return This builder for chaining. + */ + public Builder setEncodingValue(int value) { + + encoding_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The encoding expected for messages
    +     * 
    + * + * .google.pubsub.v1.Encoding encoding = 5; + * + * @return The encoding. + */ + @java.lang.Override + public com.google.pubsub.v1.Encoding getEncoding() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(encoding_); + return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * The encoding expected for messages
    +     * 
    + * + * .google.pubsub.v1.Encoding encoding = 5; + * + * @param value The encoding to set. + * @return This builder for chaining. + */ + public Builder setEncoding(com.google.pubsub.v1.Encoding value) { + if (value == null) { + throw new NullPointerException(); + } + + encoding_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The encoding expected for messages
    +     * 
    + * + * .google.pubsub.v1.Encoding encoding = 5; + * + * @return This builder for chaining. + */ + public Builder clearEncoding() { + + encoding_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateMessageRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateMessageRequest) + private static final com.google.pubsub.v1.ValidateMessageRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateMessageRequest(); + } + + public static com.google.pubsub.v1.ValidateMessageRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateMessageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateMessageRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateMessageRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java new file mode 100644 index 000000000000..7a33b7752e09 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface ValidateMessageRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateMessageRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the project in which to validate schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The name of the project in which to validate schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Name of the schema against which to validate.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Name of the schema against which to validate.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Ad-hoc schema against which to validate
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 3; + * + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + * + * + *
    +   * Ad-hoc schema against which to validate
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 3; + * + * @return The schema. + */ + com.google.pubsub.v1.Schema getSchema(); + /** + * + * + *
    +   * Ad-hoc schema against which to validate
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 3; + */ + com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder(); + + /** + * + * + *
    +   * Message to validate against the provided `schema_spec`.
    +   * 
    + * + * bytes message = 4; + * + * @return The message. + */ + com.google.protobuf.ByteString getMessage(); + + /** + * + * + *
    +   * The encoding expected for messages
    +   * 
    + * + * .google.pubsub.v1.Encoding encoding = 5; + * + * @return The enum numeric value on the wire for encoding. + */ + int getEncodingValue(); + /** + * + * + *
    +   * The encoding expected for messages
    +   * 
    + * + * .google.pubsub.v1.Encoding encoding = 5; + * + * @return The encoding. + */ + com.google.pubsub.v1.Encoding getEncoding(); + + public com.google.pubsub.v1.ValidateMessageRequest.SchemaSpecCase getSchemaSpecCase(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java new file mode 100644 index 000000000000..1b5fd13b0fe4 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -0,0 +1,454 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Response for the `ValidateMessage` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.ValidateMessageResponse} + */ +public final class ValidateMessageResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageResponse) + ValidateMessageResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValidateMessageResponse.newBuilder() to construct. + private ValidateMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ValidateMessageResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ValidateMessageResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ValidateMessageResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ValidateMessageResponse.class, + com.google.pubsub.v1.ValidateMessageResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ValidateMessageResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.ValidateMessageResponse other = + (com.google.pubsub.v1.ValidateMessageResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.ValidateMessageResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for the `ValidateMessage` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.ValidateMessageResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateMessageResponse) + com.google.pubsub.v1.ValidateMessageResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ValidateMessageResponse.class, + com.google.pubsub.v1.ValidateMessageResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.ValidateMessageResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateMessageResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.ValidateMessageResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateMessageResponse build() { + com.google.pubsub.v1.ValidateMessageResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateMessageResponse buildPartial() { + com.google.pubsub.v1.ValidateMessageResponse result = + new com.google.pubsub.v1.ValidateMessageResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ValidateMessageResponse) { + return mergeFrom((com.google.pubsub.v1.ValidateMessageResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ValidateMessageResponse other) { + if (other == com.google.pubsub.v1.ValidateMessageResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ValidateMessageResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ValidateMessageResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateMessageResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateMessageResponse) + private static final com.google.pubsub.v1.ValidateMessageResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateMessageResponse(); + } + + public static com.google.pubsub.v1.ValidateMessageResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateMessageResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateMessageResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateMessageResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java new file mode 100644 index 000000000000..e8be64dc789a --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface ValidateMessageResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateMessageResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java new file mode 100644 index 000000000000..631fca4ef1b9 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -0,0 +1,921 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Request for the `ValidateSchema` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.ValidateSchemaRequest} + */ +public final class ValidateSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaRequest) + ValidateSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValidateSchemaRequest.newBuilder() to construct. + private ValidateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ValidateSchemaRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ValidateSchemaRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ValidateSchemaRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.pubsub.v1.Schema.Builder subBuilder = null; + if (schema_ != null) { + subBuilder = schema_.toBuilder(); + } + schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(schema_); + schema_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ValidateSchemaRequest.class, + com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
    +   * Required. The name of the project in which to validate schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The name of the project in which to validate schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 2; + private com.google.pubsub.v1.Schema schema_; + /** + * + * + *
    +   * Required. The schema object to validate.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return schema_ != null; + } + /** + * + * + *
    +   * Required. The schema object to validate.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + @java.lang.Override + public com.google.pubsub.v1.Schema getSchema() { + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + } + /** + * + * + *
    +   * Required. The schema object to validate.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { + return getSchema(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (schema_ != null) { + output.writeMessage(2, getSchema()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (schema_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ValidateSchemaRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ValidateSchemaRequest other = + (com.google.pubsub.v1.ValidateSchemaRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema().equals(other.getSchema())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.ValidateSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for the `ValidateSchema` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.ValidateSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateSchemaRequest) + com.google.pubsub.v1.ValidateSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ValidateSchemaRequest.class, + com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ValidateSchemaRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (schemaBuilder_ == null) { + schema_ = null; + } else { + schema_ = null; + schemaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateSchemaRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ValidateSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateSchemaRequest build() { + com.google.pubsub.v1.ValidateSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateSchemaRequest buildPartial() { + com.google.pubsub.v1.ValidateSchemaRequest result = + new com.google.pubsub.v1.ValidateSchemaRequest(this); + result.parent_ = parent_; + if (schemaBuilder_ == null) { + result.schema_ = schema_; + } else { + result.schema_ = schemaBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ValidateSchemaRequest) { + return mergeFrom((com.google.pubsub.v1.ValidateSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ValidateSchemaRequest other) { + if (other == com.google.pubsub.v1.ValidateSchemaRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ValidateSchemaRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ValidateSchemaRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
    +     * Required. The name of the project in which to validate schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The name of the project in which to validate schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The name of the project in which to validate schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the project in which to validate schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the project in which to validate schemas.
    +     * Format is `projects/{project-id}`.
    +     * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.pubsub.v1.Schema schema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemaBuilder_; + /** + * + * + *
    +     * Required. The schema object to validate.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return schemaBuilder_ != null || schema_ != null; + } + /** + * + * + *
    +     * Required. The schema object to validate.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + public com.google.pubsub.v1.Schema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The schema object to validate.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSchema(com.google.pubsub.v1.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * Required. The schema object to validate.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * Required. The schema object to validate.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSchema(com.google.pubsub.v1.Schema value) { + if (schemaBuilder_ == null) { + if (schema_ != null) { + schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); + } else { + schema_ = value; + } + onChanged(); + } else { + schemaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * Required. The schema object to validate.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + schema_ = null; + onChanged(); + } else { + schema_ = null; + schemaBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * Required. The schema object to validate.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { + + onChanged(); + return getSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The schema object to validate.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + } + } + /** + * + * + *
    +     * Required. The schema object to validate.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + getSchema(), getParentForChildren(), isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateSchemaRequest) + private static final com.google.pubsub.v1.ValidateSchemaRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateSchemaRequest(); + } + + public static com.google.pubsub.v1.ValidateSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateSchemaRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..2c972155fbb0 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface ValidateSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the project in which to validate schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
    +   * Required. The name of the project in which to validate schemas.
    +   * Format is `projects/{project-id}`.
    +   * 
    + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
    +   * Required. The schema object to validate.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + * + * + *
    +   * Required. The schema object to validate.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + com.google.pubsub.v1.Schema getSchema(); + /** + * + * + *
    +   * Required. The schema object to validate.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java new file mode 100644 index 000000000000..2f8a70f0dd15 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -0,0 +1,454 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Response for the `ValidateSchema` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.ValidateSchemaResponse} + */ +public final class ValidateSchemaResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaResponse) + ValidateSchemaResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValidateSchemaResponse.newBuilder() to construct. + private ValidateSchemaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ValidateSchemaResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ValidateSchemaResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ValidateSchemaResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ValidateSchemaResponse.class, + com.google.pubsub.v1.ValidateSchemaResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ValidateSchemaResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.ValidateSchemaResponse other = + (com.google.pubsub.v1.ValidateSchemaResponse) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.ValidateSchemaResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for the `ValidateSchema` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.ValidateSchemaResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateSchemaResponse) + com.google.pubsub.v1.ValidateSchemaResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ValidateSchemaResponse.class, + com.google.pubsub.v1.ValidateSchemaResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.ValidateSchemaResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateSchemaResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.ValidateSchemaResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateSchemaResponse build() { + com.google.pubsub.v1.ValidateSchemaResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateSchemaResponse buildPartial() { + com.google.pubsub.v1.ValidateSchemaResponse result = + new com.google.pubsub.v1.ValidateSchemaResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ValidateSchemaResponse) { + return mergeFrom((com.google.pubsub.v1.ValidateSchemaResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ValidateSchemaResponse other) { + if (other == com.google.pubsub.v1.ValidateSchemaResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.ValidateSchemaResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.ValidateSchemaResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateSchemaResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ValidateSchemaResponse) + private static final com.google.pubsub.v1.ValidateSchemaResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ValidateSchemaResponse(); + } + + public static com.google.pubsub.v1.ValidateSchemaResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateSchemaResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateSchemaResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.ValidateSchemaResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java new file mode 100644 index 000000000000..9e8467fc160b --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface ValidateSchemaResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 909863eb98b4..9bc678e3ae7c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -24,6 +24,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/pubsub/v1/schema.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSub.V1"; @@ -42,8 +43,8 @@ service Publisher { "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/pubsub"; - // Creates the given topic with the given name. See the [resource name rules]( - // https://cloud.google.com/pubsub/docs/admin#resource_names). + // Creates the given topic with the given name. See the [resource name rules] + // (https://cloud.google.com/pubsub/docs/admin#resource_names). rpc CreateTopic(Topic) returns (Topic) { option (google.api.http) = { put: "/v1/{name=projects/*/topics/*}" @@ -143,6 +144,21 @@ message MessageStoragePolicy { repeated string allowed_persistence_regions = 1; } +// Settings for validating messages published against a schema. +message SchemaSettings { + // Required. The name of the schema that messages published should be + // validated against. Format is `projects/{project}/schemas/{schema}`. The + // value of this field will be `_deleted-schema_` if the schema has been + // deleted. + string schema = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; + + // The encoding of messages validated against `schema`. + Encoding encoding = 2; +} + // A topic resource. message Topic { option (google.api.resource) = { @@ -173,6 +189,15 @@ message Topic { // // The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. string kms_key_name = 5; + + // Settings for validating messages published against a schema. + // + // EXPERIMENTAL: Schema support is in development and may not work yet. + SchemaSettings schema_settings = 6; + + // Reserved for future use. This field is set only in responses from the + // server; it is ignored if it is set in any requests. + bool satisfies_pzs = 7; } // A message that is published by publishers and consumed by subscribers. The @@ -587,8 +612,8 @@ service Subscriber { } // Seeks an existing subscription to a point in time or to a given snapshot, - // whichever is provided in the request. Snapshots are used in [Seek]( - // https://cloud.google.com/pubsub/docs/replay-overview) operations, which + // whichever is provided in the request. Snapshots are used in [Seek] + // (https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto new file mode 100644 index 000000000000..ae402ac4de2e --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -0,0 +1,289 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.pubsub.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.PubSub.V1"; +option go_package = "google.golang.org/genproto/googleapis/pubsub/v1;pubsub"; +option java_multiple_files = true; +option java_outer_classname = "SchemaProto"; +option java_package = "com.google.pubsub.v1"; +option php_namespace = "Google\\Cloud\\PubSub\\V1"; +option ruby_package = "Google::Cloud::PubSub::V1"; + +// Service for doing schema-related operations. +// +// EXPERIMENTAL: The Schema service is in development and may not work yet. + +service SchemaService { + option (google.api.default_host) = "pubsub.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/pubsub"; + + // Creates a schema. + rpc CreateSchema(CreateSchemaRequest) returns (Schema) { + option (google.api.http) = { + post: "/v1/{parent=projects/*}/schemas" + body: "schema" + }; + option (google.api.method_signature) = "parent,schema,schema_id"; + } + + // Gets a schema. + rpc GetSchema(GetSchemaRequest) returns (Schema) { + option (google.api.http) = { + get: "/v1/{name=projects/*/schemas/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists schemas in a project. + rpc ListSchemas(ListSchemasRequest) returns (ListSchemasResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*}/schemas" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a schema. + rpc DeleteSchema(DeleteSchemaRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/schemas/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Validates a schema. + rpc ValidateSchema(ValidateSchemaRequest) returns (ValidateSchemaResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*}/schemas:validate" + body: "*" + }; + option (google.api.method_signature) = "parent,schema"; + } + + // Validates a message against a schema. + rpc ValidateMessage(ValidateMessageRequest) + returns (ValidateMessageResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*}/schemas:validateMessage" + body: "*" + }; + } +} + +// A schema resource. +message Schema { + option (google.api.resource) = { + type: "pubsub.googleapis.com/Schema" + pattern: "projects/{project}/schemas/{schema}" + }; + + // Possible schema definition types. + enum Type { + // Default value. This value is unused. + TYPE_UNSPECIFIED = 0; + + // A Protocol Buffer schema definition. + PROTOCOL_BUFFER = 1; + + // An Avro schema definition. + AVRO = 2; + } + + // Required. Name of the schema. + // Format is `projects/{project}/schemas/{schema}`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // The type of the schema definition. + Type type = 2; + + // The definition of the schema. This should contain a string representing + // the full definition of the schema that is a valid schema definition of + // the type specified in `type`. + string definition = 3; +} + +// Request for the CreateSchema method. +message CreateSchemaRequest { + // Required. The name of the project in which to create the schema. + // Format is `projects/{project-id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "pubsub.googleapis.com/Schema" + } + ]; + + // Required. The schema object to create. + // + // This schema's `name` parameter is ignored. The schema object returned + // by CreateSchema will have a `name` made using the given `parent` and + // `schema_id`. + Schema schema = 2 [(google.api.field_behavior) = REQUIRED]; + + // The ID to use for the schema, which will become the final component of + // the schema's resource name. + // + // See https://cloud.google.com/pubsub/docs/admin#resource_names for resource + // name constraints. + string schema_id = 3; +} + +// View of Schema object fields to be returned by GetSchema and ListSchemas. +enum SchemaView { + // The default / unset value. + // The API will default to the BASIC view. + SCHEMA_VIEW_UNSPECIFIED = 0; + + // Include the name and type of the schema, but not the definition. + BASIC = 1; + + // Include all Schema object fields. + FULL = 2; +} + +// Request for the GetSchema method. +message GetSchemaRequest { + // Required. The name of the schema to get. + // Format is `projects/{project}/schemas/{schema}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; + + // The set of fields to return in the response. If not set, returns a Schema + // with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all + // fields. + SchemaView view = 2; +} + +// Request for the `ListSchemas` method. +message ListSchemasRequest { + // Required. The name of the project in which to list schemas. + // Format is `projects/{project-id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // The set of Schema fields to return in the response. If not set, returns + // Schemas with `name` and `type`, but not `definition`. Set to `FULL` to + // retrieve all fields. + SchemaView view = 2; + + // Maximum number of schemas to return. + int32 page_size = 3; + + // The value returned by the last `ListSchemasResponse`; indicates that + // this is a continuation of a prior `ListSchemas` call, and that the + // system should return the next page of data. + string page_token = 4; +} + +// Response for the `ListSchemas` method. +message ListSchemasResponse { + // The resulting schemas. + repeated Schema schemas = 1; + + // If not empty, indicates that there may be more schemas that match the + // request; this value should be passed in a new `ListSchemasRequest`. + string next_page_token = 2; +} + +// Request for the `DeleteSchema` method. +message DeleteSchemaRequest { + // Required. Name of the schema to delete. + // Format is `projects/{project}/schemas/{schema}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; +} + +// Request for the `ValidateSchema` method. +message ValidateSchemaRequest { + // Required. The name of the project in which to validate schemas. + // Format is `projects/{project-id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. The schema object to validate. + Schema schema = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response for the `ValidateSchema` method. +message ValidateSchemaResponse {} + +// Request for the `ValidateMessage` method. +message ValidateMessageRequest { + // Required. The name of the project in which to validate schemas. + // Format is `projects/{project-id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + oneof schema_spec { + // Name of the schema against which to validate. + // + // Format is `projects/{project}/schemas/{schema}`. + string name = 2 [ + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; + + // Ad-hoc schema against which to validate + Schema schema = 3; + } + + // Message to validate against the provided `schema_spec`. + bytes message = 4; + + // The encoding expected for messages + Encoding encoding = 5; +} + +// Response for the `ValidateMessage` method. +message ValidateMessageResponse {} + +// Possible encoding types for messages. +enum Encoding { + // Unspecified + ENCODING_UNSPECIFIED = 0; + + // JSON encoding + JSON = 1; + + // Binary encoding, as defined by the schema type. For some schema types, + // binary encoding may not be available. + BINARY = 2; +} diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index aeb41e663bb3..e4bde75cb801 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "d30c26c008a1f642d89985b5cc42377547a782a9" + "sha": "4123f26f493638aa7b29667658e38556adcd491e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "706053bbfb3f16ef752e513c2898a1f26cdd8e41", - "internalRef": "323803770" + "sha": "41d8fbfec9d4bc4a8859f78185713950913b4bf3", + "internalRef": "348038736" } }, { @@ -100,6 +100,8 @@ "CONTRIBUTING.md", "LICENSE", "codecov.yaml", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java", @@ -107,31 +109,43 @@ "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java", + "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java", "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java", "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java", "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java", "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java", "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java", "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java", + "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java", "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java", "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java", "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java", "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java", + "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java", "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java", "java.header", "license-checks.xml", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java", @@ -142,14 +156,21 @@ "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java", @@ -196,6 +217,13 @@ "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java", @@ -217,7 +245,16 @@ "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java", "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java", + "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java", "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto", + "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto", "renovate.json", "samples/install-without-bom/pom.xml", "samples/pom.xml", From 8b35dd31334eb1e6ab9f2e9aaf555000b5666002 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 2 Feb 2021 16:00:41 -0800 Subject: [PATCH 0567/2363] chore: release 1.111.0 (#497) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 24 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 8 files changed, 42 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 99ad341f0521..2f2d6d95b571 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [1.111.0](https://www.github.com/googleapis/java-pubsub/compare/v1.110.3...v1.111.0) (2021-02-02) + + +### Features + +* add schema service to gapic ([#494](https://www.github.com/googleapis/java-pubsub/issues/494)) ([23952bf](https://www.github.com/googleapis/java-pubsub/commit/23952bfb728f64efaeaa2862f2f56f873260ca3e)) + + +### Bug Fixes + +* adding deprecated tags to deprecated methods ([#472](https://www.github.com/googleapis/java-pubsub/issues/472)) ([91b5152](https://www.github.com/googleapis/java-pubsub/commit/91b5152ba9942e9ce4cfd2051e4b8b358b465601)) +* fix flakiness in subscriberIT integration test ([#476](https://www.github.com/googleapis/java-pubsub/issues/476)) ([d981b4e](https://www.github.com/googleapis/java-pubsub/commit/d981b4ec7ba905898fcc5e17453166d9d995bdb4)) + + +### Documentation + +* Document potentially unexpected blocking behavior of publish() method ([#370](https://www.github.com/googleapis/java-pubsub/issues/370)) ([18b3a2f](https://www.github.com/googleapis/java-pubsub/commit/18b3a2f77816b55cf605447b382a2f1bd42e0880)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#482](https://www.github.com/googleapis/java-pubsub/issues/482)) ([260eca5](https://www.github.com/googleapis/java-pubsub/commit/260eca5ea34296d3722707ce7199845c6f2e8526)) +* update dependency com.google.errorprone:error_prone_annotations to v2.5.1 ([#484](https://www.github.com/googleapis/java-pubsub/issues/484)) ([44b6780](https://www.github.com/googleapis/java-pubsub/commit/44b6780022bbc2e1cf40be82932a34e5d8e08650)) + ### [1.110.3](https://www.github.com/googleapis/java-pubsub/compare/v1.110.2...v1.110.3) (2020-12-15) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8b110f32e2e6..87f8c78fe874 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.110.4-SNAPSHOT + 1.111.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.4-SNAPSHOT + 1.93.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.4-SNAPSHOT + 1.93.0 com.google.cloud google-cloud-pubsub - 1.110.4-SNAPSHOT + 1.111.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7b5127007bf0..6b7efae53722 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.110.4-SNAPSHOT + 1.111.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.110.4-SNAPSHOT + 1.111.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f338c38de77b..e556f053661b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.4-SNAPSHOT + 1.93.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.4-SNAPSHOT + 1.111.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 01190fb36ebc..2c5b0de3948d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.110.4-SNAPSHOT + 1.111.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.4-SNAPSHOT + 1.93.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.92.4-SNAPSHOT + 1.93.0 com.google.cloud google-cloud-pubsub - 1.110.4-SNAPSHOT + 1.111.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index dd71cf1428f5..6d4e3ac5a3b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.92.4-SNAPSHOT + 1.93.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.110.4-SNAPSHOT + 1.111.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 706ac1ddcea8..9a4f2feef8b9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.110.4-SNAPSHOT + 1.111.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e9a840f4c4f9..44fc32dc177b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.92.3:1.92.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.92.3:1.92.4-SNAPSHOT -google-cloud-pubsub:1.110.3:1.110.4-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.93.0:1.93.0 +grpc-google-cloud-pubsub-v1:1.93.0:1.93.0 +google-cloud-pubsub:1.111.0:1.111.0 \ No newline at end of file From 4df5e3035e01930e20be834a8d87291377b5ebd4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Feb 2021 16:04:03 -0800 Subject: [PATCH 0568/2363] chore: Re-generated to pick up changes from synthtool (#499) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/1921d6b9-f85f-42fd-9908-eef9ccb856bd/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/e935c9ecb47da0f2e054f5f1845f7cf7c95fa625 Source-Link: https://github.com/googleapis/synthtool/commit/5de29e9434b63ea6d7e46dc348521c62969af1a1 Source-Link: https://github.com/googleapis/synthtool/commit/d1bb9173100f62c0cfc8f3138b62241e7f47ca6a --- java-pubsub/.github/workflows/ci.yaml | 13 ++++- java-pubsub/.kokoro/build.sh | 4 +- java-pubsub/.kokoro/linkage-monitor.sh | 46 ---------------- .../.kokoro/release/publish_javadoc.cfg | 5 +- .../.kokoro/release/publish_javadoc11.cfg | 30 ++++++++++ .../.kokoro/release/publish_javadoc11.sh | 55 +++++++++++++++++++ java-pubsub/synth.metadata | 7 ++- 7 files changed, 104 insertions(+), 56 deletions(-) delete mode 100755 java-pubsub/.kokoro/linkage-monitor.sh create mode 100644 java-pubsub/.kokoro/release/publish_javadoc11.cfg create mode 100755 java-pubsub/.kokoro/release/publish_javadoc11.sh diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 683022075665..98a472e132d6 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -54,7 +54,18 @@ jobs: with: java-version: 8 - run: java -version - - run: .kokoro/linkage-monitor.sh + - name: Install artifacts to local Maven repository + run: | + source .kokoro/common.sh + retry_with_backoff 3 10 \ + mvn install -B -V \ + -Dmaven.test.skip -DskipTests=true \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true + shell: bash + - uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor lint: runs-on: ubuntu-latest steps: diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 0427b61496da..14fc8b4ae94c 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -110,8 +110,8 @@ bash .kokoro/coerce_logs.sh if [[ "${ENABLE_BUILD_COP}" == "true" ]] then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop - ${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-pubsub + chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot + ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-pubsub fi echo "exiting with ${RETURN_CODE}" diff --git a/java-pubsub/.kokoro/linkage-monitor.sh b/java-pubsub/.kokoro/linkage-monitor.sh deleted file mode 100755 index 759ab4e2c220..000000000000 --- a/java-pubsub/.kokoro/linkage-monitor.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail -# Display commands being run. -set -x - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Java version -java -version -echo ${JOB_TYPE} - -# attempt to install 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true - -# Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR -JAR=linkage-monitor-latest-all-deps.jar -curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}" - -# Fails if there's new linkage errors compared with baseline -java -jar ${JAR} com.google.cloud:libraries-bom diff --git a/java-pubsub/.kokoro/release/publish_javadoc.cfg b/java-pubsub/.kokoro/release/publish_javadoc.cfg index d42f9860641b..ff54e6e6a53d 100644 --- a/java-pubsub/.kokoro/release/publish_javadoc.cfg +++ b/java-pubsub/.kokoro/release/publish_javadoc.cfg @@ -26,7 +26,4 @@ before_action { keyname: "docuploader_service_account" } } -} - -# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.cfg b/java-pubsub/.kokoro/release/publish_javadoc11.cfg new file mode 100644 index 000000000000..2ddd71ce63ec --- /dev/null +++ b/java-pubsub/.kokoro/release/publish_javadoc11.cfg @@ -0,0 +1,30 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +env_vars: { + key: "STAGING_BUCKET_V2" + value: "docs-staging-v2" + # Production will be at: docs-staging-v2 +} + +# Configure the docker image for kokoro-trampoline +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/java-memcache/.kokoro/release/publish_javadoc11.sh" +} + +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "docuploader_service_account" + } + } +} + +# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.sh b/java-pubsub/.kokoro/release/publish_javadoc11.sh new file mode 100755 index 000000000000..f18da6e28a37 --- /dev/null +++ b/java-pubsub/.kokoro/release/publish_javadoc11.sh @@ -0,0 +1,55 @@ +#!/bin/bash +# Copyright 2021 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -eo pipefail + +if [[ -z "${CREDENTIALS}" ]]; then + CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account +fi + +if [[ -z "${STAGING_BUCKET_V2}" ]]; then + echo "Need to set STAGING_BUCKET_V2 environment variable" + exit 1 +fi + +# work from the git root directory +pushd $(dirname "$0")/../../ + +# install docuploader package +python3 -m pip install gcp-docuploader + +# compile all packages +mvn clean install -B -q -DskipTests=true + +export NAME=google-cloud-pubsub +export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) + +# V3 generates docfx yml from javadoc +# generate yml +mvn clean site -B -q -P docFX + +pushd target/docfx-yml + +# create metadata +python3 -m docuploader create-metadata \ + --name ${NAME} \ + --version ${VERSION} \ + --language java + +# upload yml +python3 -m docuploader upload . \ + --credentials ${CREDENTIALS} \ + --staging-bucket ${STAGING_BUCKET_V2} \ + --destination-prefix docfx- diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index e4bde75cb801..09da6b79a27a 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "4123f26f493638aa7b29667658e38556adcd491e" + "sha": "23952bfb728f64efaeaa2862f2f56f873260ca3e" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "3816b080296d4d52975079fd26c110dd26ba25af" + "sha": "e935c9ecb47da0f2e054f5f1845f7cf7c95fa625" } } ], @@ -59,7 +59,6 @@ ".kokoro/continuous/java8.cfg", ".kokoro/continuous/readme.cfg", ".kokoro/dependencies.sh", - ".kokoro/linkage-monitor.sh", ".kokoro/nightly/common.cfg", ".kokoro/nightly/integration.cfg", ".kokoro/nightly/java11.cfg", @@ -91,6 +90,8 @@ ".kokoro/release/promote.sh", ".kokoro/release/publish_javadoc.cfg", ".kokoro/release/publish_javadoc.sh", + ".kokoro/release/publish_javadoc11.cfg", + ".kokoro/release/publish_javadoc11.sh", ".kokoro/release/snapshot.cfg", ".kokoro/release/snapshot.sh", ".kokoro/release/stage.cfg", From 7ea25f0a45548b51acf507b1676273feae072a70 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Feb 2021 01:36:39 +0100 Subject: [PATCH 0569/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.111.0 (#500) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4e1f23564288..55642a399083 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.110.3 + 1.111.0 From b521f5cc803679fd2990534766306d82092cbc62 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Feb 2021 16:39:21 -0800 Subject: [PATCH 0570/2363] chore: regenerate README (#502) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index b04b52e0f0aa..ece205acec5b 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "13825ac951adbeb92e98deab91579b32cbdb2f7c" + "sha": "8e50bd5920ffb133ade1aeac645462bae2df237a" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b259489b06b25f399768b74b8baa943991f38ea7" + "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c5ccb85c2b3e..fec35f836362 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,12 +51,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.110.3' +compile 'com.google.cloud:google-cloud-pubsub:1.111.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.110.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.0" ``` ## Authentication From 835a78af083a6b4508bae2c19911706a1860b990 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Feb 2021 17:32:06 -0800 Subject: [PATCH 0571/2363] chore: regenerate README (#503) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-02-05 00:39:36,900 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-05 00:39:37,787 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/9e34cb19-d75a-465a-b82b-a438c744d438/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index ece205acec5b..804052daf15a 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "8e50bd5920ffb133ade1aeac645462bae2df237a" + "sha": "4cde2d0896f39ceeecdbb877e9a619a3e3c4ed52" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index fec35f836362..2980f88d93d1 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.110.3 + 1.111.0 ``` From 9bf2f139d6921ed3d378d7d643ca69064f2ade4a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 5 Feb 2021 08:11:27 -0800 Subject: [PATCH 0572/2363] chore: Re-generated to pick up changes from synthtool. (#504) * build(java): update autorelease branch name check In response to the new multi release branch changes. Source-Author: Stephanie Wang Source-Date: Wed Feb 3 15:06:07 2021 -0500 Source-Repo: googleapis/synthtool Source-Sha: 140ba24a136c63e7f10a998a63e7898aed63ea7d Source-Link: https://github.com/googleapis/synthtool/commit/140ba24a136c63e7f10a998a63e7898aed63ea7d * chore: remove leading newline from LICENSE Co-authored-by: Christopher Wilcox Source-Author: Justin Beckwith Source-Date: Wed Feb 3 15:37:31 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 27b2d4f4674840628d0b75c5941e89c12af4764f Source-Link: https://github.com/googleapis/synthtool/commit/27b2d4f4674840628d0b75c5941e89c12af4764f * fix: update repo name java-memcache set for all accidentally Source-Author: Emily Ball Source-Date: Thu Feb 4 10:39:41 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5 Source-Link: https://github.com/googleapis/synthtool/commit/692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5 --- java-pubsub/.github/workflows/auto-release.yaml | 2 +- java-pubsub/.kokoro/release/publish_javadoc11.cfg | 4 ++-- java-pubsub/LICENSE | 1 - java-pubsub/synth.metadata | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index 2b6cdbc976c4..76e6404b4e09 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -17,7 +17,7 @@ jobs: } // only approve PRs like "chore: release " - if ( !context.payload.pull_request.title.startsWith("chore: release") ) { + if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { return; } diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.cfg b/java-pubsub/.kokoro/release/publish_javadoc11.cfg index 2ddd71ce63ec..7589677f426e 100644 --- a/java-pubsub/.kokoro/release/publish_javadoc11.cfg +++ b/java-pubsub/.kokoro/release/publish_javadoc11.cfg @@ -14,7 +14,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-memcache/.kokoro/release/publish_javadoc11.sh" + value: "github/java-pubsub/.kokoro/release/publish_javadoc11.sh" } before_action { @@ -27,4 +27,4 @@ before_action { } # Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" \ No newline at end of file +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" diff --git a/java-pubsub/LICENSE b/java-pubsub/LICENSE index d64569567334..261eeb9e9f8b 100644 --- a/java-pubsub/LICENSE +++ b/java-pubsub/LICENSE @@ -1,4 +1,3 @@ - Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 09da6b79a27a..da93776ba6b7 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "23952bfb728f64efaeaa2862f2f56f873260ca3e" + "sha": "c693c3d67cc835c46d0dfc34dcb2f61d11c9c055" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "e935c9ecb47da0f2e054f5f1845f7cf7c95fa625" + "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5" } } ], From 5f943f7e4ed7b7a8ad99a908cd45997906c95d9c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Feb 2021 18:42:19 +0100 Subject: [PATCH 0573/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v16.4.0 (#506) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c1b71f68af23..5d518815fd19 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 16.3.0 + 16.4.0 pom import From 26c35eaf4e031702bc4658e6ae184f21dd89ff91 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 9 Feb 2021 09:56:05 -0800 Subject: [PATCH 0574/2363] chore: regenerate README (#507) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-02-09 17:44:34,429 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-09 17:44:35,318 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/ce4bfff4-d6d9-4298-a57b-af9c0e8a6583/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 804052daf15a..548b73a84870 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "4cde2d0896f39ceeecdbb877e9a619a3e3c4ed52" + "sha": "6e1967add44df377c0b0af82bd5ba35201308feb" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5" + "sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2980f88d93d1..131a791f37f9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.3.0 + 16.4.0 pom import @@ -45,7 +45,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:16.3.0') +implementation platform('com.google.cloud:libraries-bom:16.4.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From 576a4f94563c6a6f64d77a83c9a8b31082b47f2d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 10 Feb 2021 09:00:07 -0800 Subject: [PATCH 0575/2363] build(java): update autorelease script (#508) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/cff71831-1b26-47ed-b898-602d3613a0f3/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/2414b817065726eae0bc525346c7e874f969369d --- java-pubsub/.github/workflows/auto-release.yaml | 4 ++-- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index 76e6404b4e09..7c8816a7d7b1 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -4,7 +4,7 @@ name: auto-release jobs: approve: runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-v') + if: contains(github.head_ref, 'release-please') steps: - uses: actions/github-script@v3 with: @@ -16,7 +16,7 @@ jobs: return; } - // only approve PRs like "chore: release " + // only approve PRs like "chore(master): release " if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { return; } diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index da93776ba6b7..090fedce3675 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "c693c3d67cc835c46d0dfc34dcb2f61d11c9c055" + "sha": "4030e50fa28056d62f2480663f17702f34272711" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5" + "sha": "2414b817065726eae0bc525346c7e874f969369d" } } ], From c57f3a8f6161657e2f591167ffd55e4368e46910 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Feb 2021 19:04:15 +0100 Subject: [PATCH 0576/2363] test(deps): update dependency junit:junit to v4.13.2 (#510) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [junit:junit](http://junit.org) ([source](https://togithub.com/junit-team/junit4)) | `4.13.1` -> `4.13.2` | [![age](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/compatibility-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/confidence-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2c5b0de3948d..5328134873b3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -101,7 +101,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 55642a399083..64e1c695717f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -51,7 +51,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9a4f2feef8b9..d051370a3b6d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -50,7 +50,7 @@ junit junit - 4.13.1 + 4.13.2 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5d518815fd19..c6af90f8297e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -62,7 +62,7 @@ junit junit - 4.13.1 + 4.13.2 test From be886a3e4b3845a094bfd71bb5644eebda83686f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 16 Feb 2021 16:18:34 -0800 Subject: [PATCH 0577/2363] ci: linkage monitor CI job to use build.sh (#511) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/7777f140-791e-4d48-bda8-dbd6be74f8b7/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/f327d3b657a63ae4a8efd7f011a15eacae36b59c --- java-pubsub/.github/workflows/ci.yaml | 13 +++---------- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 98a472e132d6..def8b3a2c84d 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -55,17 +55,10 @@ jobs: java-version: 8 - run: java -version - name: Install artifacts to local Maven repository - run: | - source .kokoro/common.sh - retry_with_backoff 3 10 \ - mvn install -B -V \ - -Dmaven.test.skip -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true + run: .kokoro/build.sh shell: bash - - uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor + - name: Validate any conflicts with regard to com.google.cloud:libraries-bom (latest release) + uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor lint: runs-on: ubuntu-latest steps: diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 090fedce3675..28acb2ef36dd 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "4030e50fa28056d62f2480663f17702f34272711" + "sha": "37ea5e11820382659af5aee279f02c344b6cd1c3" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2414b817065726eae0bc525346c7e874f969369d" + "sha": "f327d3b657a63ae4a8efd7f011a15eacae36b59c" } } ], From 593aa524f02bff20c8cdacadbcaf0b9d6594f7a3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 17 Feb 2021 09:06:30 -0800 Subject: [PATCH 0578/2363] chore: update cloud-rad buckets (#512) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/56f13ebb-c434-41e5-9c2f-fd2ffd8afd86/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/b416a7befcdbc42de41cf387dcf428f894fb812b --- java-pubsub/.kokoro/release/publish_javadoc.cfg | 4 ++-- java-pubsub/.kokoro/release/publish_javadoc.sh | 2 +- java-pubsub/.kokoro/release/publish_javadoc11.cfg | 2 +- java-pubsub/.kokoro/release/publish_javadoc11.sh | 2 +- java-pubsub/synth.metadata | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc.cfg b/java-pubsub/.kokoro/release/publish_javadoc.cfg index ff54e6e6a53d..66b92a8fd415 100644 --- a/java-pubsub/.kokoro/release/publish_javadoc.cfg +++ b/java-pubsub/.kokoro/release/publish_javadoc.cfg @@ -7,10 +7,10 @@ env_vars: { value: "docs-staging" } +# cloud-rad staging env_vars: { key: "STAGING_BUCKET_V2" - value: "docs-staging-v2" - # Production will be at: docs-staging-v2 + value: "docs-staging-v2-staging" } env_vars: { diff --git a/java-pubsub/.kokoro/release/publish_javadoc.sh b/java-pubsub/.kokoro/release/publish_javadoc.sh index 3dae667db5bc..c50870b86a38 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc.sh @@ -71,7 +71,7 @@ python3 -m docuploader create-metadata \ --version ${VERSION} \ --language java -# upload docs +# upload docs to staging bucket python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.cfg b/java-pubsub/.kokoro/release/publish_javadoc11.cfg index 7589677f426e..f56e0021b4b2 100644 --- a/java-pubsub/.kokoro/release/publish_javadoc11.cfg +++ b/java-pubsub/.kokoro/release/publish_javadoc11.cfg @@ -1,9 +1,9 @@ # Format: //devtools/kokoro/config/proto/build.proto +# cloud-rad production env_vars: { key: "STAGING_BUCKET_V2" value: "docs-staging-v2" - # Production will be at: docs-staging-v2 } # Configure the docker image for kokoro-trampoline diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.sh b/java-pubsub/.kokoro/release/publish_javadoc11.sh index f18da6e28a37..dbaecf83d13d 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc11.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc11.sh @@ -48,7 +48,7 @@ python3 -m docuploader create-metadata \ --version ${VERSION} \ --language java -# upload yml +# upload yml to production bucket python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} \ diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 28acb2ef36dd..a9aa48b01825 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "37ea5e11820382659af5aee279f02c344b6cd1c3" + "sha": "7fcb01a9365689282193077d9be08576bfd94b12" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f327d3b657a63ae4a8efd7f011a15eacae36b59c" + "sha": "b416a7befcdbc42de41cf387dcf428f894fb812b" } } ], From 2f8e5414586bb9014baace6faae6fb0c0e9fb33b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 18 Feb 2021 16:18:07 -0800 Subject: [PATCH 0579/2363] build: skip Maven download logs (#513) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/da65536b-5743-4119-98ba-cf44f9dd24f1/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/1aeca92e4a38f47134cb955f52ea76f84f09ff88 --- java-pubsub/.kokoro/build.sh | 2 ++ java-pubsub/synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 14fc8b4ae94c..a2d1d2a06eb4 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -60,6 +60,7 @@ javadoc) ;; integration) mvn -B ${INTEGRATION_TEST_ARGS} \ + -ntp \ -Penable-integration-tests \ -DtrimStackTrace=false \ -Dclirr.skip=true \ @@ -81,6 +82,7 @@ samples) pushd ${SAMPLES_DIR} mvn -B \ -Penable-samples \ + -ntp \ -DtrimStackTrace=false \ -Dclirr.skip=true \ -Denforcer.skip=true \ diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index a9aa48b01825..be09a10dfcdb 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "7fcb01a9365689282193077d9be08576bfd94b12" + "sha": "98d53168d72f8c94fdc1315dad57cbbe1f1bcfac" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b416a7befcdbc42de41cf387dcf428f894fb812b" + "sha": "1aeca92e4a38f47134cb955f52ea76f84f09ff88" } } ], From 2c46c40964a384d477b70990157dd722b2e63fde Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 19 Feb 2021 07:46:30 -0800 Subject: [PATCH 0580/2363] build: reduce download junk in log files (#514) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/d609e2d2-1c7e-41bf-b80a-341f534a34a8/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/6946fd71ae9215b0e7ae188f5057df765ee6d7d2 --- java-pubsub/.kokoro/build.sh | 2 +- java-pubsub/.kokoro/dependencies.sh | 4 ++-- java-pubsub/synth.metadata | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index a2d1d2a06eb4..fdfa0c36e151 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -29,7 +29,7 @@ echo ${JOB_TYPE} # attempt to install 3 times with exponential backoff (starting with 10 seconds) retry_with_backoff 3 10 \ - mvn install -B -V \ + mvn install -B -V -ntp \ -DskipTests=true \ -Dclirr.skip=true \ -Denforcer.skip=true \ diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index c91e5a56937a..0fb8c8436ccc 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -31,7 +31,7 @@ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" # this should run maven enforcer retry_with_backoff 3 10 \ - mvn install -B -V \ + mvn install -B -V -ntp \ -DskipTests=true \ -Dclirr.skip=true @@ -86,4 +86,4 @@ then else msg "Errors found. See log statements above." exit 1 -fi \ No newline at end of file +fi diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index be09a10dfcdb..453b37f3adbf 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "98d53168d72f8c94fdc1315dad57cbbe1f1bcfac" + "sha": "3c478ec68afb8426ba5e670c563a7a925e431d85" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1aeca92e4a38f47134cb955f52ea76f84f09ff88" + "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2" } } ], From f671898e0992ddc05dd5606357ae353e9b9f971f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Feb 2021 22:50:31 +0100 Subject: [PATCH 0581/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 (#515) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.18.0` -> `0.19.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/compatibility-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/confidence-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.19.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0190-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0180v0190-2021-02-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.18.0...v0.19.0) ##### Bug Fixes - update repo name ([#​274](https://www.github.com/googleapis/java-shared-dependencies/issues/274)) ([4a98470](https://www.github.com/googleapis/java-shared-dependencies/commit/4a98470b7493c98137191b7bb3cabca23f98628f)) ##### Dependencies - downgrade opencensus version back to 0.28.0 ([#​265](https://www.github.com/googleapis/java-shared-dependencies/issues/265)) ([f37025c](https://www.github.com/googleapis/java-shared-dependencies/commit/f37025c70f951b1e34904ee983815c0ed8ec4086)) - update dependency com.google.api-client:google-api-client-bom to v1.31.2 ([#​254](https://www.github.com/googleapis/java-shared-dependencies/issues/254)) ([1b0b4a6](https://www.github.com/googleapis/java-shared-dependencies/commit/1b0b4a637cae0c22cd0336c527002025780317d5)) - update dependency com.google.auth:google-auth-library-bom to v0.23.0 ([#​261](https://www.github.com/googleapis/java-shared-dependencies/issues/261)) ([1c0b7bd](https://www.github.com/googleapis/java-shared-dependencies/commit/1c0b7bd60b3d73c16cc6c19ab90d8ccedece3706)) - update dependency com.google.cloud:google-cloud-core to v1.94.1 ([#​272](https://www.github.com/googleapis/java-shared-dependencies/issues/272)) ([44fd4c3](https://www.github.com/googleapis/java-shared-dependencies/commit/44fd4c3c6cae98bd514525f03462b830050828a8)) - update dependency com.google.errorprone:error_prone_annotations to v2.5.1 ([#​255](https://www.github.com/googleapis/java-shared-dependencies/issues/255)) ([6367023](https://www.github.com/googleapis/java-shared-dependencies/commit/63670233424e8f24c3924bba5e2cb6ca97525795)) - update dependency com.google.http-client:google-http-client-bom to v1.38.1 ([#​253](https://www.github.com/googleapis/java-shared-dependencies/issues/253)) ([ad87c74](https://www.github.com/googleapis/java-shared-dependencies/commit/ad87c74d9d893726042156d65850806d92e79952)) - update dependency com.google.protobuf:protobuf-bom to v3.15.0 ([#​278](https://www.github.com/googleapis/java-shared-dependencies/issues/278)) ([989efbd](https://www.github.com/googleapis/java-shared-dependencies/commit/989efbd29bcf4135f7abce49a697303df2cf1a60)) - update dependency io.grpc:grpc-bom to v1.35.0 ([#​248](https://www.github.com/googleapis/java-shared-dependencies/issues/248)) ([7a28c6e](https://www.github.com/googleapis/java-shared-dependencies/commit/7a28c6e7053c181993b1288adcae56de89312113)) - update gax.version to v1.61.0 ([#​277](https://www.github.com/googleapis/java-shared-dependencies/issues/277)) ([f1c3fb9](https://www.github.com/googleapis/java-shared-dependencies/commit/f1c3fb9295f2e1c130b9fc329faa60f4f8474ba6)) - update iam.version to v1.0.7 ([#​252](https://www.github.com/googleapis/java-shared-dependencies/issues/252)) ([5cb3ed9](https://www.github.com/googleapis/java-shared-dependencies/commit/5cb3ed906537269cd7f8d9ccf4b065754b5f5b48)) - update iam.version to v1.0.8 ([#​273](https://www.github.com/googleapis/java-shared-dependencies/issues/273)) ([4d5e7f7](https://www.github.com/googleapis/java-shared-dependencies/commit/4d5e7f720d847918b307a83c95cea10c244ba595))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5328134873b3..7bfc841b35f9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.18.0 + 0.19.0 pom import From 3c28f11c8a4450561ce8e46c398dc1035203f528 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 23 Feb 2021 00:08:04 +0000 Subject: [PATCH 0582/2363] chore(master): release 1.111.1-SNAPSHOT (#501) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 87f8c78fe874..471f7dbdd26b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.111.0 + 1.111.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.0 + 1.93.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.0 + 1.93.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.111.0 + 1.111.1-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6b7efae53722..48dc1018f701 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.111.0 + 1.111.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.111.0 + 1.111.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e556f053661b..1c9a1afe40fc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.0 + 1.93.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.0 + 1.111.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7bfc841b35f9..2ba1937eb1ad 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.111.0 + 1.111.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.0 + 1.93.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.0 + 1.93.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.111.0 + 1.111.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6d4e3ac5a3b4..28b1cc44f76f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.0 + 1.93.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.0 + 1.111.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d051370a3b6d..426480335874 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.111.0 + 1.111.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 44fc32dc177b..e999f5103356 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.93.0:1.93.0 -grpc-google-cloud-pubsub-v1:1.93.0:1.93.0 -google-cloud-pubsub:1.111.0:1.111.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.93.0:1.93.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.93.0:1.93.1-SNAPSHOT +google-cloud-pubsub:1.111.0:1.111.1-SNAPSHOT \ No newline at end of file From e7797963b80fc1e23763e6a17ddfacb5772b4fe1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 23 Feb 2021 00:30:05 +0000 Subject: [PATCH 0583/2363] chore(master): release 1.111.1 (#516) :robot: I have created a release \*beep\* \*boop\* --- ### [1.111.1](https://www.github.com/googleapis/java-pubsub/compare/v1.111.0...v1.111.1) (2021-02-23) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#515](https://www.github.com/googleapis/java-pubsub/issues/515)) ([f671898](https://www.github.com/googleapis/java-pubsub/commit/f671898e0992ddc05dd5606357ae353e9b9f971f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 2f2d6d95b571..5c4d2080cd9a 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.111.1](https://www.github.com/googleapis/java-pubsub/compare/v1.111.0...v1.111.1) (2021-02-23) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#515](https://www.github.com/googleapis/java-pubsub/issues/515)) ([073c3b8](https://www.github.com/googleapis/java-pubsub/commit/073c3b84965a4225d735743d5f4e540330cf26b7)) + ## [1.111.0](https://www.github.com/googleapis/java-pubsub/compare/v1.110.3...v1.111.0) (2021-02-02) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 471f7dbdd26b..024e47575e25 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.111.1-SNAPSHOT + 1.111.1 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.1-SNAPSHOT + 1.93.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.1-SNAPSHOT + 1.93.1 com.google.cloud google-cloud-pubsub - 1.111.1-SNAPSHOT + 1.111.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 48dc1018f701..728e677de261 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.111.1-SNAPSHOT + 1.111.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.111.1-SNAPSHOT + 1.111.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1c9a1afe40fc..c8416b418c4f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.1-SNAPSHOT + 1.93.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.1-SNAPSHOT + 1.111.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2ba1937eb1ad..92e596e3e871 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.111.1-SNAPSHOT + 1.111.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.1-SNAPSHOT + 1.93.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.1-SNAPSHOT + 1.93.1 com.google.cloud google-cloud-pubsub - 1.111.1-SNAPSHOT + 1.111.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 28b1cc44f76f..7a731c23466b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.1-SNAPSHOT + 1.93.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.1-SNAPSHOT + 1.111.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 426480335874..019092c97dbb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.111.1-SNAPSHOT + 1.111.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e999f5103356..f95206b7faf7 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.93.0:1.93.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.93.0:1.93.1-SNAPSHOT -google-cloud-pubsub:1.111.0:1.111.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.93.1:1.93.1 +grpc-google-cloud-pubsub-v1:1.93.1:1.93.1 +google-cloud-pubsub:1.111.1:1.111.1 \ No newline at end of file From 9991bc299d8a33fd1335d151db357ee57aa5e349 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 23 Feb 2021 00:50:04 +0000 Subject: [PATCH 0584/2363] chore(master): release 1.111.2-SNAPSHOT (#517) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 024e47575e25..00ec2d18a193 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.111.1 + 1.111.2-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.1 + 1.93.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.1 + 1.93.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.111.1 + 1.111.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 728e677de261..2ce378b7afe4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.111.1 + 1.111.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.111.1 + 1.111.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c8416b418c4f..38634d6e4146 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.1 + 1.93.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.1 + 1.111.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 92e596e3e871..48e66578e45e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.111.1 + 1.111.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.1 + 1.93.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.1 + 1.93.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.111.1 + 1.111.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7a731c23466b..a735fc6a4adc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.1 + 1.93.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.1 + 1.111.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 019092c97dbb..1e3849daec87 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.111.1 + 1.111.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f95206b7faf7..13a571ecbc89 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.93.1:1.93.1 -grpc-google-cloud-pubsub-v1:1.93.1:1.93.1 -google-cloud-pubsub:1.111.1:1.111.1 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.93.1:1.93.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.93.1:1.93.2-SNAPSHOT +google-cloud-pubsub:1.111.1:1.111.2-SNAPSHOT \ No newline at end of file From 227d882806c86534598102a4d387ee9ae938a284 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Tue, 23 Feb 2021 16:32:39 -0800 Subject: [PATCH 0585/2363] test(samples): remove duplicated testing (#519) --- .../.kokoro/continuous/java11-samples.cfg | 30 ---------- .../.kokoro/continuous/jave8-samples.cfg | 30 ---------- .../.kokoro/nightly/java11-samples.cfg | 30 ---------- java-pubsub/.kokoro/nightly/java8-samples.cfg | 30 ---------- .../.kokoro/presubmit/java11-samples.cfg | 30 ---------- .../.kokoro/presubmit/java8-samples.cfg | 30 ---------- java-pubsub/.kokoro/run_samples_tests.sh | 55 ------------------- 7 files changed, 235 deletions(-) delete mode 100644 java-pubsub/.kokoro/continuous/java11-samples.cfg delete mode 100644 java-pubsub/.kokoro/continuous/jave8-samples.cfg delete mode 100644 java-pubsub/.kokoro/nightly/java11-samples.cfg delete mode 100644 java-pubsub/.kokoro/nightly/java8-samples.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/java11-samples.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/java8-samples.cfg delete mode 100755 java-pubsub/.kokoro/run_samples_tests.sh diff --git a/java-pubsub/.kokoro/continuous/java11-samples.cfg b/java-pubsub/.kokoro/continuous/java11-samples.cfg deleted file mode 100644 index b43371933900..000000000000 --- a/java-pubsub/.kokoro/continuous/java11-samples.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Format: //devtools/kokoro/config/proto/build.proto - -# Download secrets from Cloud Storage. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} - -# Tell trampoline which tests to run. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/run_samples_tests.sh" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/continuous/jave8-samples.cfg b/java-pubsub/.kokoro/continuous/jave8-samples.cfg deleted file mode 100644 index 3506e1271bfd..000000000000 --- a/java-pubsub/.kokoro/continuous/jave8-samples.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Format: //devtools/kokoro/config/proto/build.proto - -# Download secrets from Cloud Storage. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -# Tell trampoline which tests to run. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/run_samples_tests.sh" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/nightly/java11-samples.cfg b/java-pubsub/.kokoro/nightly/java11-samples.cfg deleted file mode 100644 index b43371933900..000000000000 --- a/java-pubsub/.kokoro/nightly/java11-samples.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Format: //devtools/kokoro/config/proto/build.proto - -# Download secrets from Cloud Storage. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} - -# Tell trampoline which tests to run. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/run_samples_tests.sh" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/nightly/java8-samples.cfg b/java-pubsub/.kokoro/nightly/java8-samples.cfg deleted file mode 100644 index 3506e1271bfd..000000000000 --- a/java-pubsub/.kokoro/nightly/java8-samples.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Format: //devtools/kokoro/config/proto/build.proto - -# Download secrets from Cloud Storage. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -# Tell trampoline which tests to run. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/run_samples_tests.sh" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/java11-samples.cfg b/java-pubsub/.kokoro/presubmit/java11-samples.cfg deleted file mode 100644 index b43371933900..000000000000 --- a/java-pubsub/.kokoro/presubmit/java11-samples.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Format: //devtools/kokoro/config/proto/build.proto - -# Download secrets from Cloud Storage. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} - -# Tell trampoline which tests to run. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/run_samples_tests.sh" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/java8-samples.cfg b/java-pubsub/.kokoro/presubmit/java8-samples.cfg deleted file mode 100644 index 3506e1271bfd..000000000000 --- a/java-pubsub/.kokoro/presubmit/java8-samples.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Format: //devtools/kokoro/config/proto/build.proto - -# Download secrets from Cloud Storage. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java-docs-samples" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -# Tell trampoline which tests to run. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/run_samples_tests.sh" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/run_samples_tests.sh b/java-pubsub/.kokoro/run_samples_tests.sh deleted file mode 100755 index 5f1e8a27f08e..000000000000 --- a/java-pubsub/.kokoro/run_samples_tests.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# `-e` enables the script to automatically fail when a command fails -# `-o pipefail` sets the exit code to the rightmost comment to exit with a non-zero -set -eo pipefail - -echo "********** MAVEN INFO ***********" -mvn -v - -# Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Setup required env variables -source ${KOKORO_GFILE_DIR}/pubsub_secrets.txt -echo "********** Successfully Set All Environment Variables **********" - -# Attempt to install 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true \ - -T 1C - -# Activate service account -gcloud auth activate-service-account \ - --key-file="$GOOGLE_APPLICATION_CREDENTIALS" \ - --project="$GOOGLE_CLOUD_PROJECT" - -# Move into the samples directory -cd samples/ - -echo -e "\n******************** RUNNING SAMPLE TESTS ********************" - -mvn --fail-at-end clean verify From 1ecd71fa45947258f2f361e906f06055f3277e40 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 01:35:10 +0100 Subject: [PATCH 0586/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.111.1 (#518) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 64e1c695717f..263a04b10fdf 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.111.0 + 1.111.1 From df20437b95246a5d044425ebccb10475e20a587d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 23 Feb 2021 16:48:04 -0800 Subject: [PATCH 0587/2363] chore: regenerate README (#520) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-02-24 00:35:02,556 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-24 00:35:04,292 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/1554be22-6843-457b-a401-23d0327126bb/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 548b73a84870..b95b256dd4b4 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "6e1967add44df377c0b0af82bd5ba35201308feb" + "sha": "b0e3e765e4d9a0e93eee0c7224563045a36aaff8" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e" + "sha": "79ab0b44a2cc7d803d07c107f9faf07729fc4012" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 131a791f37f9..1debc71a6236 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,12 +51,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.111.0' +compile 'com.google.cloud:google-cloud-pubsub:1.111.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.1" ``` ## Authentication From 1d853f77d7b351de3956db5cb92196473573ea4c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 23 Feb 2021 17:02:02 -0800 Subject: [PATCH 0588/2363] chore: regenerate README (#521) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-02-24 00:50:21,186 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-24 00:50:22,742 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/045ffc6d-00bb-422b-9e3d-6ab274287a3c/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index b95b256dd4b4..27d1905c9ee4 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "b0e3e765e4d9a0e93eee0c7224563045a36aaff8" + "sha": "87f081f5ccadc01ea4d3c5fe188d5e1b6ba32fbe" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1debc71a6236..d520c5d4c0b0 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.111.0 + 1.111.1 ``` From 6b1b7594a6fbf55e70caa3d07e96461c8e18f687 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 24 Feb 2021 09:45:23 -0800 Subject: [PATCH 0589/2363] samples: add schema samples (#509) * samples: add three schema samples * address kamal's comments * add avro-tools generated class State * add 4 more examples * remove validate schema sample * place common code outside case switch body * add subscribe with avro schema example * move generated class under utitlies * add proto file and generated class * add comment about topic encoding * apply kamal's suggestions * add publish and subscribe proto messages examples * update comment * add resources to install-without-bom and snapshots * Fix schema integration test and avro example * add resources to install-without-bom and snapshots * fix file path * lint * lint: add checkstyle-suppressions.xml * change checkstyle working directory * address kamal's comment about try catch * address kamal's comment about method naming * update assert * address kolea2's comments Co-authored-by: Kamal Aboul-Hosn --- java-pubsub/.github/sync-repo-settings.yaml | 2 +- java-pubsub/.github/workflows/samples.yaml | 2 +- .../samples/checkstyle-suppressions.xml | 34 + .../samples/install-without-bom/pom.xml | 43 + java-pubsub/samples/pom.xml | 13 + java-pubsub/samples/snapshot/pom.xml | 45 +- java-pubsub/samples/snippets/pom.xml | 17 + .../java/pubsub/CreateAvroSchemaExample.java | 68 ++ .../java/pubsub/CreateProtoSchemaExample.java | 68 ++ .../main/java/pubsub/CreateTopicExample.java | 1 - .../pubsub/CreateTopicWithSchemaExample.java | 67 ++ .../main/java/pubsub/DeleteSchemaExample.java | 50 ++ .../pubsub/DetachSubscriptionExample.java | 2 +- .../main/java/pubsub/GetSchemaExample.java | 51 ++ .../main/java/pubsub/ListSchemasExample.java | 44 + .../pubsub/PublishAvroRecordsExample.java | 109 +++ .../PublishProtobufMessagesExample.java | 97 +++ .../pubsub/RemoveDeadLetterPolicyExample.java | 5 +- .../SubscribeWithAvroSchemaExample.java | 109 +++ .../SubscribeWithProtoSchemaExample.java | 94 +++ .../src/main/java/utilities/State.java | 441 ++++++++++ .../src/main/java/utilities/StateProto.java | 781 ++++++++++++++++++ .../src/main/resources/us-states.avsc | 18 + .../src/main/resources/us-states.proto | 9 + .../src/test/java/pubsub/AdminIT.java | 1 - .../src/test/java/pubsub/SchemaIT.java | 191 +++++ .../src/test/resources/us-states.avsc | 18 + .../src/test/resources/us-states.proto | 9 + 28 files changed, 2379 insertions(+), 10 deletions(-) create mode 100644 java-pubsub/samples/checkstyle-suppressions.xml create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/GetSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/ListSchemasExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/utilities/State.java create mode 100644 java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java create mode 100644 java-pubsub/samples/snippets/src/main/resources/us-states.avsc create mode 100644 java-pubsub/samples/snippets/src/main/resources/us-states.proto create mode 100644 java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java create mode 100644 java-pubsub/samples/snippets/src/test/resources/us-states.avsc create mode 100644 java-pubsub/samples/snippets/src/test/resources/us-states.proto diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 6bddd18eac90..b36eb7dee4ac 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -46,4 +46,4 @@ permissionRules: - team: yoshi-java-admins permission: admin - team: yoshi-java - permission: push \ No newline at end of file + permission: push diff --git a/java-pubsub/.github/workflows/samples.yaml b/java-pubsub/.github/workflows/samples.yaml index c46230a78c38..016279315911 100644 --- a/java-pubsub/.github/workflows/samples.yaml +++ b/java-pubsub/.github/workflows/samples.yaml @@ -11,4 +11,4 @@ jobs: java-version: 8 - name: Run checkstyle run: mvn -P lint --quiet --batch-mode checkstyle:check - working-directory: samples/snippets + working-directory: samples diff --git a/java-pubsub/samples/checkstyle-suppressions.xml b/java-pubsub/samples/checkstyle-suppressions.xml new file mode 100644 index 000000000000..c1ab01fe8d2c --- /dev/null +++ b/java-pubsub/samples/checkstyle-suppressions.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 263a04b10fdf..9df2bb003f53 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -48,6 +48,18 @@
    + + org.apache.avro + avro + 1.10.1 + compile + + + org.xerial.snappy + snappy-java + 1.1.8.4 + + junit junit @@ -60,6 +72,11 @@ 1.1.2 test + + com.google.protobuf + protobuf-java-util + 3.14.0 +
    @@ -81,6 +98,19 @@ + + add-snippets-resources + + add-resource + + + + + ../snippets/src/main/resources + + + + add-snippets-tests @@ -92,6 +122,19 @@ + + add-snippets-tests-resource + + add-test-resource + + + + + ../snippets/src/test/resources> + + + + diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index aee27735ff8a..4e20813d128f 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -68,4 +68,17 @@ + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.1.2 + + checkstyle-suppressions.xml + + + + diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1e3849daec87..8268db0956ee 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -47,6 +47,23 @@
    + + org.apache.avro + avro + 1.10.1 + compile + + + org.xerial.snappy + snappy-java + 1.1.8.4 + + + com.google.protobuf + protobuf-java-util + 3.14.0 + + junit junit @@ -80,6 +97,19 @@ + + add-snippets-resources + + add-resource + + + + + ../snippets/src/main/resources + + + + add-snippets-tests @@ -91,8 +121,21 @@ + + add-snippets-tests-resource + + add-test-resource + + + + + ../snippets/src/test/resources> + + + + - \ No newline at end of file + diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c6af90f8297e..a578bfadf71a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -56,9 +56,26 @@ com.google.cloud google-cloud-pubsub + 1.111.0 + + org.apache.avro + avro + 1.10.1 + + + org.xerial.snappy + snappy-java + 1.1.8.4 + + + com.google.protobuf + protobuf-java-util + 3.14.0 + + junit junit diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java new file mode 100644 index 000000000000..7e340cd29151 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java @@ -0,0 +1,68 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_avro_schema] + +import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Paths; + +public class CreateAvroSchemaExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String schemaId = "your-schema-id"; + String avscFile = "path/to/an/avro/schema/file/(.avsc)/formatted/in/json"; + + createAvroSchemaExample(projectId, schemaId, avscFile); + } + + public static void createAvroSchemaExample(String projectId, String schemaId, String avscFile) + throws IOException { + + ProjectName projectName = ProjectName.of(projectId); + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + // Read an Avro schema file formatted in JSON as a string. + String avscSource = new String(Files.readAllBytes(Paths.get(avscFile))); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + + Schema schema = + schemaServiceClient.createSchema( + projectName, + Schema.newBuilder() + .setName(schemaName.toString()) + .setType(com.google.pubsub.v1.Schema.Type.AVRO) + .setDefinition(avscSource) + .build(), + schemaId); + + System.out.println("Created a schema using an Avro schema:\n" + schema); + } catch (AlreadyExistsException e) { + System.out.println(schemaName + "already exists."); + } + } +} +// [END pubsub_create_avro_schema] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java new file mode 100644 index 000000000000..a8efdeb8e6b4 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java @@ -0,0 +1,68 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_proto_schema] + +import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Paths; + +public class CreateProtoSchemaExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String schemaId = "your-schema-id"; + String protoFile = "path/to/a/proto/file/(.proto)/formatted/in/protocol/buffers"; + + createProtoSchemaExample(projectId, schemaId, protoFile); + } + + public static void createProtoSchemaExample(String projectId, String schemaId, String protoFile) + throws IOException { + + ProjectName projectName = ProjectName.of(projectId); + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + // Read a proto file as a string. + String protoSource = new String(Files.readAllBytes(Paths.get(protoFile))); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + + Schema schema = + schemaServiceClient.createSchema( + projectName, + Schema.newBuilder() + .setName(schemaName.toString()) + .setType(Schema.Type.PROTOCOL_BUFFER) + .setDefinition(protoSource) + .build(), + schemaId); + + System.out.println("Created a schema using a protobuf schema:\n" + schema); + } catch (AlreadyExistsException e) { + System.out.println(schemaName + "already exists."); + } + } +} +// [END pubsub_create_proto_schema] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java index 3417be7c5111..f002ec83768f 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicExample.java @@ -43,4 +43,3 @@ public static void createTopicExample(String projectId, String topicId) throws I } // [END pubsub_create_topic] // [END pubsub_quickstart_create_topic] - diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java new file mode 100644 index 000000000000..2ce1a2b53da9 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java @@ -0,0 +1,67 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_schema] + +import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.Encoding; +import com.google.pubsub.v1.SchemaName; +import com.google.pubsub.v1.SchemaSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithSchemaExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Use an existing schema. + String schemaId = "your-schema-id"; + // Choose either BINARY or JSON message serialization in this topic. + Encoding encoding = Encoding.BINARY; + + createTopicWithSchemaExample(projectId, topicId, schemaId, encoding); + } + + public static void createTopicWithSchemaExample( + String projectId, String topicId, String schemaId, Encoding encoding) throws IOException { + TopicName topicName = TopicName.of(projectId, topicId); + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + SchemaSettings schemaSettings = + SchemaSettings.newBuilder().setSchema(schemaName.toString()).setEncoding(encoding).build(); + + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setSchemaSettings(schemaSettings) + .build()); + + System.out.println("Created topic with schema: " + topic.getName()); + } catch (AlreadyExistsException e) { + System.out.println(schemaName + "already exists."); + } + } +} +// [END pubsub_create_topic_with_schema] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java new file mode 100644 index 000000000000..2cd5fa522df3 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java @@ -0,0 +1,50 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_delete_schema] + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.SchemaName; +import java.io.IOException; + +public class DeleteSchemaExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String schemaId = "your-schema-id"; + + deleteSchemaExample(projectId, schemaId); + } + + public static void deleteSchemaExample(String projectId, String schemaId) throws IOException { + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + + schemaServiceClient.deleteSchema(schemaName); + + System.out.println("Deleted a schema:" + schemaName); + + } catch (NotFoundException e) { + System.out.println(schemaName + "not found."); + } + } +} +// [END pubsub_delete_schema] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java index ac04c1c90275..88ebb8e05bf8 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java @@ -56,4 +56,4 @@ public static void detachSubscriptionExample(String projectId, String subscripti } } } -// [END pubsub_detach_subscription] \ No newline at end of file +// [END pubsub_detach_subscription] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/GetSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/GetSchemaExample.java new file mode 100644 index 000000000000..a3b72895aba4 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/GetSchemaExample.java @@ -0,0 +1,51 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_get_schema] + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import java.io.IOException; + +public class GetSchemaExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String schemaId = "your-schema-id"; + + getSchemaExample(projectId, schemaId); + } + + public static void getSchemaExample(String projectId, String schemaId) throws IOException { + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + + Schema schema = schemaServiceClient.getSchema(schemaName); + + System.out.println("Got a schema:\n" + schema); + + } catch (NotFoundException e) { + System.out.println(schemaName + "not found."); + } + } +} +// [END pubsub_get_schema] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/ListSchemasExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/ListSchemasExample.java new file mode 100644 index 000000000000..8447184ae98b --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/ListSchemasExample.java @@ -0,0 +1,44 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_list_schemas] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import java.io.IOException; + +public class ListSchemasExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + + listSchemasExample(projectId); + } + + public static void listSchemasExample(String projectId) throws IOException { + ProjectName projectName = ProjectName.of(projectId); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + for (Schema schema : schemaServiceClient.listSchemas(projectName).iterateAll()) { + System.out.println(schema); + } + System.out.println("Listed schemas."); + } + } +} +// [END pubsub_list_schemas] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java new file mode 100644 index 000000000000..0bfed04e5d91 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java @@ -0,0 +1,109 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publish_avro_records] + +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.Encoding; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import org.apache.avro.io.Encoder; +import org.apache.avro.io.EncoderFactory; +import utilities.State; + +public class PublishAvroRecordsExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + // Use a topic created with an Avro schema. + String topicId = "your-topic-id"; + + publishAvroRecordsExample(projectId, topicId); + } + + public static void publishAvroRecordsExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + + Encoding encoding = null; + + TopicName topicName = TopicName.of(projectId, topicId); + + // Get the topic encoding type. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + encoding = topicAdminClient.getTopic(topicName).getSchemaSettings().getEncoding(); + } + + // Create an object of an avro-tools-generated class. + State state = State.newBuilder().setName("Alaska").setPostAbbr("AK").build(); + + Publisher publisher = null; + + block: + try { + publisher = Publisher.newBuilder(topicName).build(); + + // Prepare to serialize the object to the output stream. + ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); + + Encoder encoder = null; + + // Prepare an appropriate encoder for publishing to the topic. + switch (encoding) { + case BINARY: + System.out.println("Preparing a BINARY encoder..."); + encoder = EncoderFactory.get().directBinaryEncoder(byteStream, /*reuse=*/ null); + break; + + case JSON: + System.out.println("Preparing a JSON encoder..."); + encoder = EncoderFactory.get().jsonEncoder(State.getClassSchema(), byteStream); + break; + + default: + break block; + } + + // Encode the object and write it to the output stream. + state.customEncode(encoder); + encoder.flush(); + + // Publish the encoded object as a Pub/Sub message. + ByteString data = ByteString.copyFrom(byteStream.toByteArray()); + PubsubMessage message = PubsubMessage.newBuilder().setData(data).build(); + System.out.println("Publishing message: " + message); + + ApiFuture future = publisher.publish(message); + System.out.println("Published message ID: " + future.get()); + + } finally { + if (publisher != null) { + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} +// [END pubsub_publish_avro_records] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java new file mode 100644 index 000000000000..c1cdba1d7cbd --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java @@ -0,0 +1,97 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publish_proto_messages] + +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.ByteString; +import com.google.protobuf.util.JsonFormat; +import com.google.pubsub.v1.Encoding; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import utilities.StateProto.State; + +public class PublishProtobufMessagesExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + // Use a topic created with a proto schema. + String topicId = "your-topic-id"; + + publishProtobufMessagesExample(projectId, topicId); + } + + public static void publishProtobufMessagesExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + + Encoding encoding = null; + + TopicName topicName = TopicName.of(projectId, topicId); + + // Get the topic encoding type. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + encoding = topicAdminClient.getTopic(topicName).getSchemaSettings().getEncoding(); + } + + Publisher publisher = null; + + // Create an object of an avro-tools-generated class. + State state = State.newBuilder().setName("Alaska").setPostAbbr("AK").build(); + + block: + try { + publisher = Publisher.newBuilder(topicName).build(); + + PubsubMessage.Builder message = PubsubMessage.newBuilder(); + + // Prepare an appropriately formatted message based on topic encoding. + switch (encoding) { + case BINARY: + message.setData(state.toByteString()); + System.out.println("Publishing a BINARY-formatted message:\n" + message); + break; + + case JSON: + String jsonString = JsonFormat.printer().omittingInsignificantWhitespace().print(state); + message.setData(ByteString.copyFromUtf8(jsonString)); + System.out.println("Publishing a JSON-formatted message:\n" + message); + break; + + default: + break block; + } + + // Publish the message. + ApiFuture future = publisher.publish(message.build()); + System.out.println("Published message ID: " + future.get()); + + } finally { + if (publisher != null) { + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} +// [END pubsub_publish_proto_messages] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java index 04718d41967b..529850574a02 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java @@ -56,10 +56,7 @@ public static void removeDeadLetterPolicyExample( .build(); // Construct a field mask to indicate which field to update in the subscription. - FieldMask updateMask = - FieldMask.newBuilder() - .addPaths("dead_letter_policy") - .build(); + FieldMask updateMask = FieldMask.newBuilder().addPaths("dead_letter_policy").build(); UpdateSubscriptionRequest request = UpdateSubscriptionRequest.newBuilder() diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java new file mode 100644 index 000000000000..65b1937b8f09 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java @@ -0,0 +1,109 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscribe_avro_records] + +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import org.apache.avro.io.Decoder; +import org.apache.avro.io.DecoderFactory; +import org.apache.avro.specific.SpecificDatumReader; +import utilities.State; + +public class SubscribeWithAvroSchemaExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + // Use an existing subscription. + String subscriptionId = "your-subscription-id"; + + subscribeWithAvroSchemaExample(projectId, subscriptionId); + } + + public static void subscribeWithAvroSchemaExample(String projectId, String subscriptionId) { + + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Prepare a reader for the encoded Avro records. + SpecificDatumReader reader = new SpecificDatumReader<>(State.getClassSchema()); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + ByteString data = message.getData(); + + // Get the schema encoding type. + String encoding = message.getAttributesMap().get("googclient_schemaencoding"); + + // Send the message data to a byte[] input stream. + InputStream inputStream = new ByteArrayInputStream(data.toByteArray()); + + Decoder decoder = null; + + // Prepare an appropriate decoder for the message data in the input stream + // based on the schema encoding type. + block: + try { + switch (encoding) { + case "BINARY": + decoder = DecoderFactory.get().directBinaryDecoder(inputStream, /*reuse=*/ null); + System.out.println("Receiving a binary-encoded message:"); + break; + case "JSON": + decoder = DecoderFactory.get().jsonDecoder(State.getClassSchema(), inputStream); + System.out.println("Receiving a JSON-encoded message:"); + break; + default: + break block; + } + + // Obtain an object of the generated Avro class using the decoder. + State state = reader.read(null, decoder); + System.out.println(state.getName() + " is abbreviated as " + state.getPostAbbr()); + + } catch (IOException e) { + System.err.println(e); + } + + // Ack the message. + consumer.ack(); + }; + + Subscriber subscriber = null; + try { + subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + subscriber.stopAsync(); + } + } +} +// [END pubsub_subscribe_avro_records] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java new file mode 100644 index 000000000000..65ff2b39d029 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java @@ -0,0 +1,94 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscribe_proto_messages] + +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.protobuf.ByteString; +import com.google.protobuf.InvalidProtocolBufferException; +import com.google.protobuf.util.JsonFormat; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import utilities.StateProto.State; + +public class SubscribeWithProtoSchemaExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + // Use an existing subscription. + String subscriptionId = "your-subscription-id"; + + subscribeWithProtoSchemaExample(projectId, subscriptionId); + } + + public static void subscribeWithProtoSchemaExample(String projectId, String subscriptionId) { + + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + ByteString data = message.getData(); + + // Get the schema encoding type. + String encoding = message.getAttributesMap().get("googclient_schemaencoding"); + + block: + try { + switch (encoding) { + case "BINARY": + // Obtain an object of the generated proto class. + State state = State.parseFrom(data); + System.out.println("Received a BINARY-formatted message: " + state); + break; + + case "JSON": + State.Builder stateBuilder = State.newBuilder(); + JsonFormat.parser().merge(data.toStringUtf8(), stateBuilder); + System.out.println("Received a JSON-formatted message:" + stateBuilder.build()); + break; + + default: + break block; + } + } catch (InvalidProtocolBufferException e) { + e.printStackTrace(); + } + + consumer.ack(); + System.out.println("Ack'ed the message"); + }; + + // Create subscriber client. + Subscriber subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); + + try { + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName); + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + subscriber.stopAsync(); + } + } +} +// [END pubsub_subscribe_proto_messages] diff --git a/java-pubsub/samples/snippets/src/main/java/utilities/State.java b/java-pubsub/samples/snippets/src/main/java/utilities/State.java new file mode 100644 index 000000000000..a3d837e85377 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/utilities/State.java @@ -0,0 +1,441 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Autogenerated by Avro + * + *

    DO NOT EDIT DIRECTLY + */ +package utilities; + +import org.apache.avro.message.BinaryMessageDecoder; +import org.apache.avro.message.BinaryMessageEncoder; +import org.apache.avro.message.SchemaStore; +import org.apache.avro.specific.SpecificData; +import org.apache.avro.util.Utf8; + +/** A list of states in the United States of America. */ +@org.apache.avro.specific.AvroGenerated +public class State extends org.apache.avro.specific.SpecificRecordBase + implements org.apache.avro.specific.SpecificRecord { + private static final long serialVersionUID = -6098929419967278282L; + public static final org.apache.avro.Schema SCHEMA$ = + new org.apache.avro.Schema.Parser() + .parse( + "{\"type\":\"record\",\"name\":\"State\",\"namespace\":\"utilities\",\"doc\":\"A list of states in the United States of America.\",\"fields\":[{\"name\":\"name\",\"type\":\"string\",\"doc\":\"The common name of the state.\"},{\"name\":\"post_abbr\",\"type\":\"string\",\"doc\":\"The postal code abbreviation of the state.\"}]}"); + + public static org.apache.avro.Schema getClassSchema() { + return SCHEMA$; + } + + private static SpecificData MODEL$ = new SpecificData(); + + private static final BinaryMessageEncoder ENCODER = + new BinaryMessageEncoder(MODEL$, SCHEMA$); + + private static final BinaryMessageDecoder DECODER = + new BinaryMessageDecoder(MODEL$, SCHEMA$); + + /** + * Return the BinaryMessageEncoder instance used by this class. + * + * @return the message encoder used by this class + */ + public static BinaryMessageEncoder getEncoder() { + return ENCODER; + } + + /** + * Return the BinaryMessageDecoder instance used by this class. + * + * @return the message decoder used by this class + */ + public static BinaryMessageDecoder getDecoder() { + return DECODER; + } + + /** + * Create a new BinaryMessageDecoder instance for this class that uses the specified {@link + * SchemaStore}. + * + * @param resolver a {@link SchemaStore} used to find schemas by fingerprint + * @return a BinaryMessageDecoder instance for this class backed by the given SchemaStore + */ + public static BinaryMessageDecoder createDecoder(SchemaStore resolver) { + return new BinaryMessageDecoder(MODEL$, SCHEMA$, resolver); + } + + /** + * Serializes this State to a ByteBuffer. + * + * @return a buffer holding the serialized data for this instance + * @throws java.io.IOException if this instance could not be serialized + */ + public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException { + return ENCODER.encode(this); + } + + /** + * Deserializes a State from a ByteBuffer. + * + * @param b a byte buffer holding serialized data for an instance of this class + * @return a State instance decoded from the given buffer + * @throws java.io.IOException if the given bytes could not be deserialized into an instance of + * this class + */ + public static State fromByteBuffer(java.nio.ByteBuffer b) throws java.io.IOException { + return DECODER.decode(b); + } + + /** The common name of the state. */ + private java.lang.CharSequence name; + /** The postal code abbreviation of the state. */ + private java.lang.CharSequence post_abbr; + + /** + * Default constructor. Note that this does not initialize fields to their default values from the + * schema. If that is desired then one should use newBuilder(). + */ + public State() {} + + /** + * All-args constructor. + * + * @param name The common name of the state. + * @param post_abbr The postal code abbreviation of the state. + */ + public State(java.lang.CharSequence name, java.lang.CharSequence post_abbr) { + this.name = name; + this.post_abbr = post_abbr; + } + + public org.apache.avro.specific.SpecificData getSpecificData() { + return MODEL$; + } + + public org.apache.avro.Schema getSchema() { + return SCHEMA$; + } + // Used by DatumWriter. Applications should not call. + public java.lang.Object get(int field$) { + switch (field$) { + case 0: + return name; + case 1: + return post_abbr; + default: + throw new IndexOutOfBoundsException("Invalid index: " + field$); + } + } + + // Used by DatumReader. Applications should not call. + @SuppressWarnings(value = "unchecked") + public void put(int field$, java.lang.Object value$) { + switch (field$) { + case 0: + name = (java.lang.CharSequence) value$; + break; + case 1: + post_abbr = (java.lang.CharSequence) value$; + break; + default: + throw new IndexOutOfBoundsException("Invalid index: " + field$); + } + } + + /** + * Gets the value of the 'name' field. + * + * @return The common name of the state. + */ + public java.lang.CharSequence getName() { + return name; + } + + /** + * Sets the value of the 'name' field. The common name of the state. + * + * @param value the value to set. + */ + public void setName(java.lang.CharSequence value) { + this.name = value; + } + + /** + * Gets the value of the 'post_abbr' field. + * + * @return The postal code abbreviation of the state. + */ + public java.lang.CharSequence getPostAbbr() { + return post_abbr; + } + + /** + * Sets the value of the 'post_abbr' field. The postal code abbreviation of the state. + * + * @param value the value to set. + */ + public void setPostAbbr(java.lang.CharSequence value) { + this.post_abbr = value; + } + + /** + * Creates a new State RecordBuilder. + * + * @return A new State RecordBuilder + */ + public static utilities.State.Builder newBuilder() { + return new utilities.State.Builder(); + } + + /** + * Creates a new State RecordBuilder by copying an existing Builder. + * + * @param other The existing builder to copy. + * @return A new State RecordBuilder + */ + public static utilities.State.Builder newBuilder(utilities.State.Builder other) { + if (other == null) { + return new utilities.State.Builder(); + } else { + return new utilities.State.Builder(other); + } + } + + /** + * Creates a new State RecordBuilder by copying an existing State instance. + * + * @param other The existing instance to copy. + * @return A new State RecordBuilder + */ + public static utilities.State.Builder newBuilder(utilities.State other) { + if (other == null) { + return new utilities.State.Builder(); + } else { + return new utilities.State.Builder(other); + } + } + + /** RecordBuilder for State instances. */ + @org.apache.avro.specific.AvroGenerated + public static class Builder extends org.apache.avro.specific.SpecificRecordBuilderBase + implements org.apache.avro.data.RecordBuilder { + + /** The common name of the state. */ + private java.lang.CharSequence name; + /** The postal code abbreviation of the state. */ + private java.lang.CharSequence post_abbr; + + /** Creates a new Builder */ + private Builder() { + super(SCHEMA$); + } + + /** + * Creates a Builder by copying an existing Builder. + * + * @param other The existing Builder to copy. + */ + private Builder(utilities.State.Builder other) { + super(other); + if (isValidValue(fields()[0], other.name)) { + this.name = data().deepCopy(fields()[0].schema(), other.name); + fieldSetFlags()[0] = other.fieldSetFlags()[0]; + } + if (isValidValue(fields()[1], other.post_abbr)) { + this.post_abbr = data().deepCopy(fields()[1].schema(), other.post_abbr); + fieldSetFlags()[1] = other.fieldSetFlags()[1]; + } + } + + /** + * Creates a Builder by copying an existing State instance + * + * @param other The existing instance to copy. + */ + private Builder(utilities.State other) { + super(SCHEMA$); + if (isValidValue(fields()[0], other.name)) { + this.name = data().deepCopy(fields()[0].schema(), other.name); + fieldSetFlags()[0] = true; + } + if (isValidValue(fields()[1], other.post_abbr)) { + this.post_abbr = data().deepCopy(fields()[1].schema(), other.post_abbr); + fieldSetFlags()[1] = true; + } + } + + /** + * Gets the value of the 'name' field. The common name of the state. + * + * @return The value. + */ + public java.lang.CharSequence getName() { + return name; + } + + /** + * Sets the value of the 'name' field. The common name of the state. + * + * @param value The value of 'name'. + * @return This builder. + */ + public utilities.State.Builder setName(java.lang.CharSequence value) { + validate(fields()[0], value); + this.name = value; + fieldSetFlags()[0] = true; + return this; + } + + /** + * Checks whether the 'name' field has been set. The common name of the state. + * + * @return True if the 'name' field has been set, false otherwise. + */ + public boolean hasName() { + return fieldSetFlags()[0]; + } + + /** + * Clears the value of the 'name' field. The common name of the state. + * + * @return This builder. + */ + public utilities.State.Builder clearName() { + name = null; + fieldSetFlags()[0] = false; + return this; + } + + /** + * Gets the value of the 'post_abbr' field. The postal code abbreviation of the state. + * + * @return The value. + */ + public java.lang.CharSequence getPostAbbr() { + return post_abbr; + } + + /** + * Sets the value of the 'post_abbr' field. The postal code abbreviation of the state. + * + * @param value The value of 'post_abbr'. + * @return This builder. + */ + public utilities.State.Builder setPostAbbr(java.lang.CharSequence value) { + validate(fields()[1], value); + this.post_abbr = value; + fieldSetFlags()[1] = true; + return this; + } + + /** + * Checks whether the 'post_abbr' field has been set. The postal code abbreviation of the state. + * + * @return True if the 'post_abbr' field has been set, false otherwise. + */ + public boolean hasPostAbbr() { + return fieldSetFlags()[1]; + } + + /** + * Clears the value of the 'post_abbr' field. The postal code abbreviation of the state. + * + * @return This builder. + */ + public utilities.State.Builder clearPostAbbr() { + post_abbr = null; + fieldSetFlags()[1] = false; + return this; + } + + @Override + @SuppressWarnings("unchecked") + public State build() { + try { + State record = new State(); + record.name = + fieldSetFlags()[0] ? this.name : (java.lang.CharSequence) defaultValue(fields()[0]); + record.post_abbr = + fieldSetFlags()[1] + ? this.post_abbr + : (java.lang.CharSequence) defaultValue(fields()[1]); + return record; + } catch (org.apache.avro.AvroMissingFieldException e) { + throw e; + } catch (java.lang.Exception e) { + throw new org.apache.avro.AvroRuntimeException(e); + } + } + } + + @SuppressWarnings("unchecked") + private static final org.apache.avro.io.DatumWriter WRITER$ = + (org.apache.avro.io.DatumWriter) MODEL$.createDatumWriter(SCHEMA$); + + @Override + public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException { + WRITER$.write(this, SpecificData.getEncoder(out)); + } + + @SuppressWarnings("unchecked") + private static final org.apache.avro.io.DatumReader READER$ = + (org.apache.avro.io.DatumReader) MODEL$.createDatumReader(SCHEMA$); + + @Override + public void readExternal(java.io.ObjectInput in) throws java.io.IOException { + READER$.read(this, SpecificData.getDecoder(in)); + } + + @Override + protected boolean hasCustomCoders() { + return true; + } + + @Override + public void customEncode(org.apache.avro.io.Encoder out) throws java.io.IOException { + out.writeString(this.name); + + out.writeString(this.post_abbr); + } + + @Override + public void customDecode(org.apache.avro.io.ResolvingDecoder in) throws java.io.IOException { + org.apache.avro.Schema.Field[] fieldOrder = in.readFieldOrderIfDiff(); + if (fieldOrder == null) { + this.name = in.readString(this.name instanceof Utf8 ? (Utf8) this.name : null); + + this.post_abbr = in.readString(this.post_abbr instanceof Utf8 ? (Utf8) this.post_abbr : null); + + } else { + for (int i = 0; i < 2; i++) { + switch (fieldOrder[i].pos()) { + case 0: + this.name = in.readString(this.name instanceof Utf8 ? (Utf8) this.name : null); + break; + + case 1: + this.post_abbr = + in.readString(this.post_abbr instanceof Utf8 ? (Utf8) this.post_abbr : null); + break; + + default: + throw new java.io.IOException("Corrupt ResolvingDecoder."); + } + } + } + } +} diff --git a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java new file mode 100644 index 000000000000..7afab1ca2b1c --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java @@ -0,0 +1,781 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: us-states.proto + +package utilities; + +public final class StateProto { + private StateProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface StateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:utilities.State) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * string post_abbr = 2; + * + * @return The postAbbr. + */ + java.lang.String getPostAbbr(); + /** + * string post_abbr = 2; + * + * @return The bytes for postAbbr. + */ + com.google.protobuf.ByteString getPostAbbrBytes(); + } + /** Protobuf type {@code utilities.State} */ + public static final class State extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:utilities.State) + StateOrBuilder { + private static final long serialVersionUID = 0L; + // Use State.newBuilder() to construct. + private State(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private State() { + name_ = ""; + postAbbr_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new State(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private State( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + postAbbr_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return utilities.StateProto.internal_static_utilities_State_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return utilities.StateProto.internal_static_utilities_State_fieldAccessorTable + .ensureFieldAccessorsInitialized( + utilities.StateProto.State.class, utilities.StateProto.State.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POST_ABBR_FIELD_NUMBER = 2; + private volatile java.lang.Object postAbbr_; + /** + * string post_abbr = 2; + * + * @return The postAbbr. + */ + @java.lang.Override + public java.lang.String getPostAbbr() { + java.lang.Object ref = postAbbr_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + postAbbr_ = s; + return s; + } + } + /** + * string post_abbr = 2; + * + * @return The bytes for postAbbr. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPostAbbrBytes() { + java.lang.Object ref = postAbbr_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + postAbbr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getPostAbbrBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, postAbbr_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getPostAbbrBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, postAbbr_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof utilities.StateProto.State)) { + return super.equals(obj); + } + utilities.StateProto.State other = (utilities.StateProto.State) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPostAbbr().equals(other.getPostAbbr())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + POST_ABBR_FIELD_NUMBER; + hash = (53 * hash) + getPostAbbr().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static utilities.StateProto.State parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static utilities.StateProto.State parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static utilities.StateProto.State parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static utilities.StateProto.State parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static utilities.StateProto.State parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static utilities.StateProto.State parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static utilities.StateProto.State parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static utilities.StateProto.State parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static utilities.StateProto.State parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static utilities.StateProto.State parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static utilities.StateProto.State parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static utilities.StateProto.State parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(utilities.StateProto.State prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** Protobuf type {@code utilities.State} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:utilities.State) + utilities.StateProto.StateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return utilities.StateProto.internal_static_utilities_State_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return utilities.StateProto.internal_static_utilities_State_fieldAccessorTable + .ensureFieldAccessorsInitialized( + utilities.StateProto.State.class, utilities.StateProto.State.Builder.class); + } + + // Construct using utilities.StateProto.State.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + postAbbr_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return utilities.StateProto.internal_static_utilities_State_descriptor; + } + + @java.lang.Override + public utilities.StateProto.State getDefaultInstanceForType() { + return utilities.StateProto.State.getDefaultInstance(); + } + + @java.lang.Override + public utilities.StateProto.State build() { + utilities.StateProto.State result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public utilities.StateProto.State buildPartial() { + utilities.StateProto.State result = new utilities.StateProto.State(this); + result.name_ = name_; + result.postAbbr_ = postAbbr_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof utilities.StateProto.State) { + return mergeFrom((utilities.StateProto.State) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(utilities.StateProto.State other) { + if (other == utilities.StateProto.State.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getPostAbbr().isEmpty()) { + postAbbr_ = other.postAbbr_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + utilities.StateProto.State parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (utilities.StateProto.State) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object postAbbr_ = ""; + /** + * string post_abbr = 2; + * + * @return The postAbbr. + */ + public java.lang.String getPostAbbr() { + java.lang.Object ref = postAbbr_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + postAbbr_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string post_abbr = 2; + * + * @return The bytes for postAbbr. + */ + public com.google.protobuf.ByteString getPostAbbrBytes() { + java.lang.Object ref = postAbbr_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + postAbbr_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string post_abbr = 2; + * + * @param value The postAbbr to set. + * @return This builder for chaining. + */ + public Builder setPostAbbr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + postAbbr_ = value; + onChanged(); + return this; + } + /** + * string post_abbr = 2; + * + * @return This builder for chaining. + */ + public Builder clearPostAbbr() { + + postAbbr_ = getDefaultInstance().getPostAbbr(); + onChanged(); + return this; + } + /** + * string post_abbr = 2; + * + * @param value The bytes for postAbbr to set. + * @return This builder for chaining. + */ + public Builder setPostAbbrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + postAbbr_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:utilities.State) + } + + // @@protoc_insertion_point(class_scope:utilities.State) + private static final utilities.StateProto.State DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new utilities.StateProto.State(); + } + + public static utilities.StateProto.State getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public State parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new State(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public utilities.StateProto.State getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_utilities_State_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_utilities_State_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\017us-states.proto\022\tutilities\"(\n\005State\022\014\n" + + "\004name\030\001 \001(\t\022\021\n\tpost_abbr\030\002 \001(\tB\014B\nStateP" + + "rotob\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_utilities_State_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_utilities_State_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_utilities_State_descriptor, + new java.lang.String[] { + "Name", "PostAbbr", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-pubsub/samples/snippets/src/main/resources/us-states.avsc b/java-pubsub/samples/snippets/src/main/resources/us-states.avsc new file mode 100644 index 000000000000..7521882c7df7 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/resources/us-states.avsc @@ -0,0 +1,18 @@ +{ + "type":"record", + "name":"State", + "namespace":"utilities", + "doc":"A list of states in the United States of America.", + "fields":[ + { + "name":"name", + "type":"string", + "doc":"The common name of the state." + }, + { + "name":"post_abbr", + "type":"string", + "doc":"The postal code abbreviation of the state." + } + ] +} \ No newline at end of file diff --git a/java-pubsub/samples/snippets/src/main/resources/us-states.proto b/java-pubsub/samples/snippets/src/main/resources/us-states.proto new file mode 100644 index 000000000000..8193875586ff --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/resources/us-states.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package utilities; +option java_outer_classname = "StateProto"; + +message State { + string name = 1; + string post_abbr = 2; +} \ No newline at end of file diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index 42825d63ac1e..1d198044d37c 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -183,7 +183,6 @@ public void testAdmin() throws Exception { assertThat(bout.toString()).contains("Created a subscription with ordering"); assertThat(bout.toString()).contains("enable_message_ordering=true"); - bout.reset(); // Test delete subscription. Run twice to delete both pull and push subscriptions. DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pullSubscriptionId); diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java new file mode 100644 index 000000000000..45e899619e90 --- /dev/null +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java @@ -0,0 +1,191 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.Encoding; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.SchemaName; +import com.google.pubsub.v1.TopicName; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.Timeout; + +public class SchemaIT { + private ByteArrayOutputStream bout; + private PrintStream out; + + private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String _suffix = UUID.randomUUID().toString(); + private static final String avroTopicId = "avro-topic-" + _suffix; + private static final String protoTopicId = "proto-topic-" + _suffix; + private static final String avroSubscriptionId = "avro-subscription-" + _suffix; + private static final String protoSubscriptionId = "proto-subscription-" + _suffix; + private static final String avroSchemaId = "avro-schema-" + _suffix; + private static final String protoSchemaId = "proto-schema-" + _suffix; + + ClassLoader classLoader = getClass().getClassLoader(); + File avscFile = new File(classLoader.getResource("us-states.avsc").getFile()); + String absoluteAvscFilePath = avscFile.getAbsolutePath(); + + File protoFile = new File(classLoader.getResource("us-states.proto").getFile()); + String absoluteProtoFilePath = protoFile.getAbsolutePath(); + + private static final TopicName avroTopicName = TopicName.of(projectId, avroTopicId); + private static final TopicName protoTopicName = TopicName.of(projectId, protoTopicId); + private static final ProjectSubscriptionName avroSubscriptionName = + ProjectSubscriptionName.of(projectId, avroSubscriptionId); + private static final ProjectSubscriptionName protoSubscriptionName = + ProjectSubscriptionName.of(projectId, protoSubscriptionId); + private static final SchemaName avroSchemaName = SchemaName.of(projectId, avroSchemaId); + private static final SchemaName protoSchemaName = SchemaName.of(projectId, protoSchemaId); + + private static void requireEnvVar(String varName) { + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + } + + @Rule public Timeout globalTimeout = Timeout.seconds(300); // 5 minute timeout + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws Exception { + // Delete the schemas if they have not been cleaned up. + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + schemaServiceClient.deleteSchema(protoSchemaName); + schemaServiceClient.deleteSchema(avroSchemaName); + } catch (NotFoundException ignored) { + // Ignore this as resources may have already been cleaned up. + } + + // Delete the subscriptions. + try (SubscriptionAdminClient subscriptionAdmin = SubscriptionAdminClient.create()) { + subscriptionAdmin.deleteSubscription(avroSubscriptionName.toString()); + subscriptionAdmin.deleteSubscription(protoSubscriptionName.toString()); + } catch (NotFoundException ignored) { + // Ignore this as resources may have already been cleaned up. + } + + // Delete the topics. + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + topicAdminClient.deleteTopic(avroTopicName.toString()); + topicAdminClient.deleteTopic(protoTopicName.toString()); + } catch (NotFoundException ignored) { + // Ignore this as resources may have already been cleaned up. + } + System.setOut(null); + } + + @Test + public void testSchema() throws Exception { + // Test creating Avro schema. + CreateAvroSchemaExample.createAvroSchemaExample(projectId, avroSchemaId, absoluteAvscFilePath); + assertThat(bout.toString()).contains("Created a schema using an Avro schema:"); + assertThat(bout.toString()).contains(avroSchemaName.toString()); + + // Test creating Proto schema. + CreateProtoSchemaExample.createProtoSchemaExample( + projectId, protoSchemaId, absoluteProtoFilePath); + assertThat(bout.toString()).contains("Created a schema using a protobuf schema:"); + assertThat(bout.toString()).contains(protoSchemaName.toString()); + + bout.reset(); + // Test getting a schema. + GetSchemaExample.getSchemaExample(projectId, avroSchemaId); + assertThat(bout.toString()).contains("Got a schema:"); + assertThat(bout.toString()).contains(avroSchemaName.toString()); + + bout.reset(); + // Test listing schemas. + ListSchemasExample.listSchemasExample(projectId); + assertThat(bout.toString()).contains("Listed schemas."); + assertThat(bout.toString()).contains(avroSchemaName.toString()); + + bout.reset(); + // Test creating a topic with an Avro schema with BINARY encoding. + CreateTopicWithSchemaExample.createTopicWithSchemaExample( + projectId, avroTopicId, avroSchemaId, Encoding.BINARY); + assertThat(bout.toString()).contains("Created topic with schema: " + avroTopicName.toString()); + + bout.reset(); + // Test creating a topic with a proto schema with JSON encoding. + CreateTopicWithSchemaExample.createTopicWithSchemaExample( + projectId, protoTopicId, protoSchemaId, Encoding.JSON); + assertThat(bout.toString()).contains("Created topic with schema: " + protoTopicName.toString()); + + // Attach a default pull subscription to each topic. + CreatePullSubscriptionExample.createPullSubscriptionExample( + projectId, avroSubscriptionId, avroTopicId); + CreatePullSubscriptionExample.createPullSubscriptionExample( + projectId, protoSubscriptionId, protoTopicId); + + bout.reset(); + // Test publishing BINARY-encoded Avro records. + PublishAvroRecordsExample.publishAvroRecordsExample(projectId, avroTopicId); + assertThat(bout.toString()).contains("Preparing a BINARY encoder..."); + assertThat(bout.toString()).contains("Published message ID:"); + + bout.reset(); + // Test publishing JSON-encoded proto messages. + PublishProtobufMessagesExample.publishProtobufMessagesExample(projectId, protoTopicId); + assertThat(bout.toString()).contains("Publishing a JSON-formatted message:"); + assertThat(bout.toString()).contains("Published message ID:"); + + bout.reset(); + // Test receiving BINARY-encoded Avro records. + SubscribeWithAvroSchemaExample.subscribeWithAvroSchemaExample(projectId, avroSubscriptionId); + assertThat(bout.toString()).contains("Receiving a binary-encoded message:"); + assertThat(bout.toString()).contains(" is abbreviated as "); + + bout.reset(); + // Test receiving JSON-encoded proto messages. + SubscribeWithProtoSchemaExample.subscribeWithProtoSchemaExample(projectId, protoSubscriptionId); + assertThat(bout.toString()).contains("Received a JSON-formatted message:"); + assertThat(bout.toString()).contains("Ack'ed the message"); + + bout.reset(); + // Test deleting a schema. + DeleteSchemaExample.deleteSchemaExample(projectId, avroSchemaId); + assertThat(bout.toString()).contains("Deleted a schema:"); + assertThat(bout.toString()).contains(avroSchemaName.toString()); + } +} diff --git a/java-pubsub/samples/snippets/src/test/resources/us-states.avsc b/java-pubsub/samples/snippets/src/test/resources/us-states.avsc new file mode 100644 index 000000000000..7521882c7df7 --- /dev/null +++ b/java-pubsub/samples/snippets/src/test/resources/us-states.avsc @@ -0,0 +1,18 @@ +{ + "type":"record", + "name":"State", + "namespace":"utilities", + "doc":"A list of states in the United States of America.", + "fields":[ + { + "name":"name", + "type":"string", + "doc":"The common name of the state." + }, + { + "name":"post_abbr", + "type":"string", + "doc":"The postal code abbreviation of the state." + } + ] +} \ No newline at end of file diff --git a/java-pubsub/samples/snippets/src/test/resources/us-states.proto b/java-pubsub/samples/snippets/src/test/resources/us-states.proto new file mode 100644 index 000000000000..8193875586ff --- /dev/null +++ b/java-pubsub/samples/snippets/src/test/resources/us-states.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; + +package utilities; +option java_outer_classname = "StateProto"; + +message State { + string name = 1; + string post_abbr = 2; +} \ No newline at end of file From db966161f443c67cf1c369fbbc2a72a45f5f468a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Feb 2021 10:02:03 -0800 Subject: [PATCH 0590/2363] chore: regenerate README (#523) This PR was generated using Autosynth. :rainbow:

    Log from Synthtool ``` 2021-02-24 17:47:45,183 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-24 17:47:46,809 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/befb92b0-6e17-4478-a77c-3b6600ad2335/targets - [ ] To automatically regenerate this PR, check this box. --- .../.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 27d1905c9ee4..692be94f5171 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "87f081f5ccadc01ea4d3c5fe188d5e1b6ba32fbe" + "sha": "a71e898ebe768f07966a13779c890818e9dad694" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d520c5d4c0b0..a427555a1b43 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -28,6 +28,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud google-cloud-pubsub + 1.111.0 ``` @@ -45,7 +46,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:16.4.0') +implementation platform('com.google.cloud:libraries-bom:17.0.0') compile 'com.google.cloud:google-cloud-pubsub' ``` @@ -229,19 +230,27 @@ has instructions for running the samples. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Create Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | +| Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | | Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | | Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | | Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | +| Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | +| Delete Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | | Delete Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | | Delete Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | | Detach Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | +| Get Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | | Get Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | | Get Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | +| List Schemas Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | | List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | | List Subscriptions In Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | | List Topics Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | +| Publish Avro Records Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | +| Publish Protobuf Messages Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | | Publish With Batch Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | | Publish With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | | Publish With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | @@ -257,14 +266,18 @@ has instructions for running the samples. | Subscribe Async Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | | Subscribe Sync Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | | Subscribe Sync With Lease Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | +| Subscribe With Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | | Subscribe With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | | Subscribe With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | | Subscribe With Error Listener Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | | Subscribe With Flow Control Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | +| Subscribe With Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | | Test Subscription Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | | Test Topic Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | | Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | | Update Push Configuration Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | +| State | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/utilities/State.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/State.java) | +| State Proto | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/utilities/StateProto.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/StateProto.java) | From 1271e23e31c723aa586985e00cd00ce51a5c2804 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 19:02:38 +0100 Subject: [PATCH 0591/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v17 (#522) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a578bfadf71a..d44a8e465c90 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 16.4.0 + 17.0.0 pom import From 7e0f599bb43ce5196de32f90b6c96b5bffe56808 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Feb 2021 10:16:03 -0800 Subject: [PATCH 0592/2363] chore: regenerate README (#525) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-02-24 18:04:44,617 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-24 18:04:46,208 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/d41edf21-6233-4fc3-bb67-99b8c66e4b94/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 692be94f5171..d7583f37147b 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "a71e898ebe768f07966a13779c890818e9dad694" + "sha": "c1642a5fb732eda9bbb00d1cabae50fc3d03dec3" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a427555a1b43..153aaf6efc83 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 16.4.0 + 17.0.0 pom import From 0bf438f3299367a01d5de16d538f0f09211c5faf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 19:54:12 +0100 Subject: [PATCH 0593/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.15.2 (#524) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 9df2bb003f53..b1f9c28d656d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.14.0 + 3.15.2
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8268db0956ee..c2f0f3203002 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.14.0 + 3.15.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d44a8e465c90..43d0bb023e22 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -73,7 +73,7 @@ com.google.protobuf protobuf-java-util - 3.14.0 + 3.15.2 From e02f76cdb43b8e7428ef7ef251068463ef9bac22 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 24 Feb 2021 19:10:05 +0000 Subject: [PATCH 0594/2363] chore(master): release 1.111.2 (#526) :robot: I have created a release \*beep\* \*boop\* --- ### [1.111.2](https://www.github.com/googleapis/java-pubsub/compare/v1.111.1...v1.111.2) (2021-02-24) ### Dependencies * update dependency com.google.protobuf:protobuf-java-util to v3.15.2 ([#524](https://www.github.com/googleapis/java-pubsub/issues/524)) ([0bf438f](https://www.github.com/googleapis/java-pubsub/commit/0bf438f3299367a01d5de16d538f0f09211c5faf)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 5c4d2080cd9a..89aeb1a2f155 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.111.2](https://www.github.com/googleapis/java-pubsub/compare/v1.111.1...v1.111.2) (2021-02-24) + + +### Dependencies + +* update dependency com.google.protobuf:protobuf-java-util to v3.15.2 ([#524](https://www.github.com/googleapis/java-pubsub/issues/524)) ([b5e07a8](https://www.github.com/googleapis/java-pubsub/commit/b5e07a866f096744feafc6187bcb022669f5fa26)) + ### [1.111.1](https://www.github.com/googleapis/java-pubsub/compare/v1.111.0...v1.111.1) (2021-02-23) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 00ec2d18a193..7359bd2f095b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.111.2-SNAPSHOT + 1.111.2 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.2-SNAPSHOT + 1.93.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.2-SNAPSHOT + 1.93.2 com.google.cloud google-cloud-pubsub - 1.111.2-SNAPSHOT + 1.111.2
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2ce378b7afe4..c82ec886d889 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.111.2-SNAPSHOT + 1.111.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.111.2-SNAPSHOT + 1.111.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 38634d6e4146..77fa715748e5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.2-SNAPSHOT + 1.93.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.2-SNAPSHOT + 1.111.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 48e66578e45e..7cfe9b1401a0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.111.2-SNAPSHOT + 1.111.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.2-SNAPSHOT + 1.93.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.2-SNAPSHOT + 1.93.2 com.google.cloud google-cloud-pubsub - 1.111.2-SNAPSHOT + 1.111.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a735fc6a4adc..84fabe41811e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.2-SNAPSHOT + 1.93.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.2-SNAPSHOT + 1.111.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c2f0f3203002..f8da12d9732b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.111.2-SNAPSHOT + 1.111.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 13a571ecbc89..c1cf8a46f877 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.93.1:1.93.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.93.1:1.93.2-SNAPSHOT -google-cloud-pubsub:1.111.1:1.111.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.93.2:1.93.2 +grpc-google-cloud-pubsub-v1:1.93.2:1.93.2 +google-cloud-pubsub:1.111.2:1.111.2 \ No newline at end of file From 48297d0db94271f1da6d6adfffb4b29a5f19c8d0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 24 Feb 2021 19:22:05 +0000 Subject: [PATCH 0595/2363] chore(master): release 1.111.3-SNAPSHOT (#528) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7359bd2f095b..c069cbb63103 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.111.2 + 1.111.3-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.2 + 1.93.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.2 + 1.93.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.111.2 + 1.111.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c82ec886d889..74d79fde2c27 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.111.2 + 1.111.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.111.2 + 1.111.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 77fa715748e5..81e1d208c0c2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.2 + 1.93.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.2 + 1.111.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7cfe9b1401a0..9e7ce240a986 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.111.2 + 1.111.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.2 + 1.93.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.2 + 1.93.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.111.2 + 1.111.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 84fabe41811e..a3a1aee620c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.2 + 1.93.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.2 + 1.111.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f8da12d9732b..7ef478ea9fc2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.111.2 + 1.111.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c1cf8a46f877..31be4cf9affd 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.93.2:1.93.2 -grpc-google-cloud-pubsub-v1:1.93.2:1.93.2 -google-cloud-pubsub:1.111.2:1.111.2 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.93.2:1.93.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.93.2:1.93.3-SNAPSHOT +google-cloud-pubsub:1.111.2:1.111.3-SNAPSHOT \ No newline at end of file From 1b14a99754205597d6e62ba082719a0d55e9d772 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 24 Feb 2021 11:44:36 -0800 Subject: [PATCH 0596/2363] samples: fix region tags and remove version in pom (#527) --- java-pubsub/samples/snippets/pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 43d0bb023e22..6d4b6d0d52b6 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -56,7 +56,6 @@ com.google.cloud google-cloud-pubsub - 1.111.0 @@ -88,5 +87,7 @@ 1.1.2 test + + From bbc09a0e2da66c968805b64313f224219b800a6c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 21:44:13 +0100 Subject: [PATCH 0597/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.111.2 (#530) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.111.1` -> `1.111.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.111.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.111.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.111.2/compatibility-slim/1.111.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.111.2/confidence-slim/1.111.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.111.2`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11112-httpswwwgithubcomgoogleapisjava-pubsubcomparev11111v11112-2021-02-24) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.111.1...v1.111.2)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b1f9c28d656d..e41529beeabd 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.111.1 + 1.111.2 From fb896d3aca175ca53f0f86d97239cfd3c0ebeb49 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Feb 2021 13:00:13 -0800 Subject: [PATCH 0598/2363] chore: regenerate README (#529) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-02-24 19:49:14,060 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-24 19:49:15,788 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/2fb43292-9ebd-4ddb-b997-c3a910a66d6f/targets - [ ] To automatically regenerate this PR, check this box. --- .../readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 23 +++---------------- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index d7583f37147b..3f50d874f729 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "c1642a5fb732eda9bbb00d1cabae50fc3d03dec3" + "sha": "90281cb71419aeadb23c116351293f3256dff275" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 153aaf6efc83..4defd3c06bb9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -12,24 +12,7 @@ Java idiomatic client for [Cloud Pub/Sub][product-docs]. If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file ```xml - - - - com.google.cloud - libraries-bom - 17.0.0 - pom - import - - - - - - - com.google.cloud - google-cloud-pubsub - 1.111.0 - + ``` @@ -52,12 +35,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.111.1' +compile 'com.google.cloud:google-cloud-pubsub:1.111.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.2" ``` ## Authentication From 62d2fa79793d5f5c1b7218414df3e9d565aa9d00 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Feb 2021 13:14:07 -0800 Subject: [PATCH 0599/2363] chore: regenerate README (#531) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-02-24 21:02:51,848 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-24 21:02:53,457 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/37a887d3-fe08-4f04-8404-8412111bb614/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 3f50d874f729..d67ca25d4102 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "90281cb71419aeadb23c116351293f3256dff275" + "sha": "7622cdb24cd3428c94e90d584d0334eb27c51393" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4defd3c06bb9..cb26439a94ee 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -22,7 +22,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.111.1 + 1.111.2 ``` From a5d051fc89d52536033b22d4763008efe1e6f29d Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 24 Feb 2021 16:15:04 -0800 Subject: [PATCH 0600/2363] samples: allow only one pair of region tags (#532) * samples: allow only one pair of region tags * use _EXCLUDE instead of 2 pairs of region tags * Update samples/snippets/pom.xml Co-authored-by: Jeff Ching * Update samples/snippets/pom.xml Co-authored-by: Jeff Ching Co-authored-by: Jeff Ching --- java-pubsub/samples/snippets/pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6d4b6d0d52b6..e4bb68b791a3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -57,8 +57,8 @@ com.google.cloud google-cloud-pubsub
    - - + + org.apache.avro avro @@ -87,7 +87,7 @@ 1.1.2 test - +
    From 28f8fc8005335cbdc00b7a639e8679ead0440815 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Feb 2021 16:28:05 -0800 Subject: [PATCH 0601/2363] chore: regenerate README (#535) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-02-25 00:17:52,707 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-25 00:17:54,345 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/1019b399-a8a8-4315-8727-b8ad89c3d933/targets - [ ] To automatically regenerate this PR, check this box. --- .../readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 20 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index d67ca25d4102..a49b2186bc0c 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "7622cdb24cd3428c94e90d584d0334eb27c51393" + "sha": "6f172ae74512bfbcb9d2c017ff6fff6ee0478755" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index cb26439a94ee..e07d3cb00458 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -12,6 +12,24 @@ Java idiomatic client for [Cloud Pub/Sub][product-docs]. If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file ```xml + + + + com.google.cloud + libraries-bom + 17.0.0 + pom + import + + + + + + + com.google.cloud + google-cloud-pubsub + + ``` @@ -29,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:17.0.0') +implementation platform('com.google.cloud:libraries-bom:18.0.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From b3f55871d7e9c80ca0295c1df6f598a0c1a77453 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 01:54:04 +0100 Subject: [PATCH 0602/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v18 (#534) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `17.0.0` -> `18.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/compatibility-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/confidence-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e4bb68b791a3..620005d5b90f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 17.0.0 + 18.0.0 pom import From 17f5347bb45ca201a93c3558ba5ff790472cb9a7 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 24 Feb 2021 17:00:25 -0800 Subject: [PATCH 0603/2363] samples: update synth.py to exclude samples.yaml (#536) --- java-pubsub/synth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java-pubsub/synth.py b/java-pubsub/synth.py index dc1bcba5e752..8b63ce45a942 100644 --- a/java-pubsub/synth.py +++ b/java-pubsub/synth.py @@ -522,4 +522,6 @@ java.format_code(f'grpc-google-cloud-{service}-{version}/src') java.format_code(f'proto-google-cloud-{service}-{version}/src') -java.common_templates() +java.common_templates(excludes=[ + ".github/workflows/samples.yaml", +]) From 2edc3f1ceec56add0acd19f5b0a5c9b991e0210d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Feb 2021 17:16:06 -0800 Subject: [PATCH 0604/2363] chore: regenerate README (#537) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-02-25 00:56:27,834 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-25 00:56:29,403 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/91b253c9-3412-488e-b9bd-8e75d9d8189c/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index a49b2186bc0c..1a52fb5bfede 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "6f172ae74512bfbcb9d2c017ff6fff6ee0478755" + "sha": "e304baca91dcb6f452d5220bf3db4c2b17e2fc59" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "79ab0b44a2cc7d803d07c107f9faf07729fc4012" + "sha": "0199c79b8324fba66476300824aa931788c47e2d" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e07d3cb00458..1f76b1e36f72 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 17.0.0 + 18.0.0 pom import From 3830f453bf43240281867ea50f38ccc0ccb3458b Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Thu, 25 Feb 2021 09:51:27 -0800 Subject: [PATCH 0605/2363] samples: add some comments (#538) * samples: add some comments * skil line length check in generated file * shorten paths --- java-pubsub/samples/checkstyle-suppressions.xml | 2 +- .../main/java/pubsub/CreateAvroSchemaExample.java | 2 +- .../main/java/pubsub/PublishAvroRecordsExample.java | 2 +- .../java/pubsub/PublishProtobufMessagesExample.java | 2 +- .../snippets/src/main/java/utilities/State.java | 12 ++++++++++++ .../snippets/src/main/java/utilities/StateProto.java | 11 +++++++++++ 6 files changed, 27 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/checkstyle-suppressions.xml b/java-pubsub/samples/checkstyle-suppressions.xml index c1ab01fe8d2c..2d134a8c210b 100644 --- a/java-pubsub/samples/checkstyle-suppressions.xml +++ b/java-pubsub/samples/checkstyle-suppressions.xml @@ -30,5 +30,5 @@ - + \ No newline at end of file diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java index 7e340cd29151..1b93b7fbe4bb 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java @@ -54,7 +54,7 @@ public static void createAvroSchemaExample(String projectId, String schemaId, St projectName, Schema.newBuilder() .setName(schemaName.toString()) - .setType(com.google.pubsub.v1.Schema.Type.AVRO) + .setType(Schema.Type.AVRO) .setDefinition(avscSource) .build(), schemaId); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java index 0bfed04e5d91..aa7d571c9164 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java @@ -56,7 +56,7 @@ public static void publishAvroRecordsExample(String projectId, String topicId) encoding = topicAdminClient.getTopic(topicName).getSchemaSettings().getEncoding(); } - // Create an object of an avro-tools-generated class. + // Instantiate an avro-tools-generated class defined in `us-states.avsc`. State state = State.newBuilder().setName("Alaska").setPostAbbr("AK").build(); Publisher publisher = null; diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java index c1cdba1d7cbd..b08682e3f7f0 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java @@ -56,7 +56,7 @@ public static void publishProtobufMessagesExample(String projectId, String topic Publisher publisher = null; - // Create an object of an avro-tools-generated class. + // Instantiate a protoc-generated class defined in `us-states.proto`. State state = State.newBuilder().setName("Alaska").setPostAbbr("AK").build(); block: diff --git a/java-pubsub/samples/snippets/src/main/java/utilities/State.java b/java-pubsub/samples/snippets/src/main/java/utilities/State.java index a3d837e85377..87ce59223948 100644 --- a/java-pubsub/samples/snippets/src/main/java/utilities/State.java +++ b/java-pubsub/samples/snippets/src/main/java/utilities/State.java @@ -19,6 +19,18 @@ * *

    DO NOT EDIT DIRECTLY */ + +/** + * This file is created using Avro tools. + * + * To download, visit https://avro.apache.org/releases.html#Download + * + * Run the following command from the `samples/snippets` directory to + * generate this class: + * + *`java -jar /location/to/your/avro-tools-1.10.1.jar compile schema src/main/resources/us-states.avsc src/main/java/` + */ + package utilities; import org.apache.avro.message.BinaryMessageDecoder; diff --git a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java index 7afab1ca2b1c..be57ce7b75ef 100644 --- a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java +++ b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java @@ -17,6 +17,17 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: us-states.proto +/** + * This file is created using protoc. + * + * To download, visit https://developers.google.com/protocol-buffers/docs/downloads + * + * Run the following command from the `samples/snippets` directory to + * generate this class: + * + *`protoc --proto_path=src/main/resources/ --java_out=src/main/java/ src/main/resources/us-states.proto` + */ + package utilities; public final class StateProto { From eed92d46bd6c1e8c6b5cb8394f480105918d3cd2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 20:38:25 +0100 Subject: [PATCH 0606/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.11.0 (#540) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.10.0` -> `0.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/compatibility-slim/0.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/confidence-slim/0.10.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes

    googleapis/java-shared-config ### [`v0.11.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0110-httpswwwgithubcomgoogleapisjava-shared-configcomparev0100v0110-2021-02-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.10.0...v0.11.0) ##### Features - migrate releases to the new Google Sonatype endpoint to address Sonatype errors. ([#​230](https://www.github.com/googleapis/java-shared-config/issues/230)) ([ff6a95f](https://www.github.com/googleapis/java-shared-config/commit/ff6a95f7b0d24a1c37c38ba8ac6c6624ee97cc15)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v8.40 ([#​221](https://www.github.com/googleapis/java-shared-config/issues/221)) ([d9b2d4a](https://www.github.com/googleapis/java-shared-config/commit/d9b2d4aab9a9bba1c2df6fcb52ac96ee8b001ad6)) - update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.1.2 ([#​219](https://www.github.com/googleapis/java-shared-config/issues/219)) ([f7c3f79](https://www.github.com/googleapis/java-shared-config/commit/f7c3f798ef8ad1bc59ae673c84fbdd9f93ee2413))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c069cbb63103..fa06f2be40d5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.10.0 + 0.11.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9e7ce240a986..74ca3857e022 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.10.0 + 0.11.0 From f8c4a418866b1e1ea36407b96f33a4d7dd474bca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 22:56:10 +0100 Subject: [PATCH 0607/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 (#542) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.19.0` -> `0.20.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/compatibility-slim/0.19.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/confidence-slim/0.19.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.20.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0200-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0190v0200-2021-02-25) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.19.0...v0.20.0) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.24.0 ([#​284](https://www.github.com/googleapis/java-shared-dependencies/issues/284)) ([5e4914c](https://www.github.com/googleapis/java-shared-dependencies/commit/5e4914cc4a8ccd41a219f150a7455da116d1594b)) - update dependency com.google.http-client:google-http-client-bom to v1.39.0 ([#​288](https://www.github.com/googleapis/java-shared-dependencies/issues/288)) ([70bb862](https://www.github.com/googleapis/java-shared-dependencies/commit/70bb862029b840fbd99ba0109fa2b8f585812793)) - update dependency com.google.protobuf:protobuf-bom to v3.15.1 ([#​282](https://www.github.com/googleapis/java-shared-dependencies/issues/282)) ([44283bd](https://www.github.com/googleapis/java-shared-dependencies/commit/44283bdfdc9288b4a8d16b6ed3a61541792d147e)) - update dependency com.google.protobuf:protobuf-bom to v3.15.2 ([#​287](https://www.github.com/googleapis/java-shared-dependencies/issues/287)) ([bdae560](https://www.github.com/googleapis/java-shared-dependencies/commit/bdae5600f9033219ef8beb6c4d1c521fb062eaec)) - update dependency io.grpc:grpc-bom to v1.36.0 ([#​285](https://www.github.com/googleapis/java-shared-dependencies/issues/285)) ([c59771b](https://www.github.com/googleapis/java-shared-dependencies/commit/c59771b2436ac1a4fbc92b48049900472dd6d3ff)) - update gax.version to v1.62.0 ([#​291](https://www.github.com/googleapis/java-shared-dependencies/issues/291)) ([66bd070](https://www.github.com/googleapis/java-shared-dependencies/commit/66bd0702bd3deb64e0f6c73635e0ffd51a4d637e)) - update google.common-protos.version to v2.1.0 ([#​289](https://www.github.com/googleapis/java-shared-dependencies/issues/289)) ([43c9f02](https://www.github.com/googleapis/java-shared-dependencies/commit/43c9f026b1fa82f38dcb93b902281c2559e82d8e)) - update iam.version to v1.0.9 ([#​281](https://www.github.com/googleapis/java-shared-dependencies/issues/281)) ([ee44d0b](https://www.github.com/googleapis/java-shared-dependencies/commit/ee44d0b41e101931ccf5de2561dfcfcc9ff88b88))
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 74ca3857e022..eb769b56caaf 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.19.0 + 0.20.0 pom import From 7af70f0a982e47770e9447fcbed1fa442039f7b2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Feb 2021 22:18:11 +0000 Subject: [PATCH 0608/2363] chore(master): release 1.111.3 (#543) :robot: I have created a release \*beep\* \*boop\* --- ### [1.111.3](https://www.github.com/googleapis/java-pubsub/compare/v1.111.2...v1.111.3) (2021-02-25) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#542](https://www.github.com/googleapis/java-pubsub/issues/542)) ([f8c4a41](https://www.github.com/googleapis/java-pubsub/commit/f8c4a418866b1e1ea36407b96f33a4d7dd474bca)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 89aeb1a2f155..b4d507fd67e4 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.111.3](https://www.github.com/googleapis/java-pubsub/compare/v1.111.2...v1.111.3) (2021-02-25) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#542](https://www.github.com/googleapis/java-pubsub/issues/542)) ([ff9dc0d](https://www.github.com/googleapis/java-pubsub/commit/ff9dc0d5becf281aea855eeb0d246e938ed5e09c)) + ### [1.111.2](https://www.github.com/googleapis/java-pubsub/compare/v1.111.1...v1.111.2) (2021-02-24) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fa06f2be40d5..d658aa2265c9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.111.3-SNAPSHOT + 1.111.3 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.3-SNAPSHOT + 1.93.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.3-SNAPSHOT + 1.93.3 com.google.cloud google-cloud-pubsub - 1.111.3-SNAPSHOT + 1.111.3
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 74d79fde2c27..0ce94a8e6bd3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.111.3-SNAPSHOT + 1.111.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.111.3-SNAPSHOT + 1.111.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 81e1d208c0c2..2cc74e5b6b3e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.3-SNAPSHOT + 1.93.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.3-SNAPSHOT + 1.111.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index eb769b56caaf..caa5335ca0ac 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.111.3-SNAPSHOT + 1.111.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.3-SNAPSHOT + 1.93.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.3-SNAPSHOT + 1.93.3 com.google.cloud google-cloud-pubsub - 1.111.3-SNAPSHOT + 1.111.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a3a1aee620c1..c91e02034b31 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.3-SNAPSHOT + 1.93.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.3-SNAPSHOT + 1.111.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7ef478ea9fc2..6000e7dce2a5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.111.3-SNAPSHOT + 1.111.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 31be4cf9affd..2600a3a4904e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.93.2:1.93.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.93.2:1.93.3-SNAPSHOT -google-cloud-pubsub:1.111.2:1.111.3-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.93.3:1.93.3 +grpc-google-cloud-pubsub-v1:1.93.3:1.93.3 +google-cloud-pubsub:1.111.3:1.111.3 \ No newline at end of file From 230e942a3de4b33eba0b8bd2b278971111da9ce3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Feb 2021 22:42:08 +0000 Subject: [PATCH 0609/2363] chore(master): release 1.111.4-SNAPSHOT (#544) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d658aa2265c9..0fdf625c8914 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.111.3 + 1.111.4-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.3 + 1.93.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.3 + 1.93.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.111.3 + 1.111.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 0ce94a8e6bd3..882215c76c39 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.111.3 + 1.111.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.111.3 + 1.111.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2cc74e5b6b3e..ed008d0bdd5d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.3 + 1.93.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.3 + 1.111.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index caa5335ca0ac..358e472797ec 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.111.3 + 1.111.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.3 + 1.93.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.3 + 1.93.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.111.3 + 1.111.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c91e02034b31..b690aad515ab 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.3 + 1.93.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.3 + 1.111.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6000e7dce2a5..1c62eddf1d7c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.111.3 + 1.111.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 2600a3a4904e..7a1a6819016d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.93.3:1.93.3 -grpc-google-cloud-pubsub-v1:1.93.3:1.93.3 -google-cloud-pubsub:1.111.3:1.111.3 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.93.3:1.93.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.93.3:1.93.4-SNAPSHOT +google-cloud-pubsub:1.111.3:1.111.4-SNAPSHOT \ No newline at end of file From 9129dcfa9071f9ebffed1674ba2823803ad999ff Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Feb 2021 18:06:48 +0100 Subject: [PATCH 0610/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.15.3 (#546) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e41529beeabd..f89b6358a9e5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.15.2 + 3.15.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1c62eddf1d7c..40dcd1099e9a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.15.2 + 3.15.3 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 620005d5b90f..1bc963c3ad6c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.15.2 + 3.15.3 From 7c3bd9fd7c39604d97abf4b807f791e970224faa Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Feb 2021 18:07:09 +0100 Subject: [PATCH 0611/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.111.3 (#545) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f89b6358a9e5..f4f3ec877ec6 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.111.2 + 1.111.3 From 295f365be9ca23c027f78c580af2a33e80a30e1a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 26 Feb 2021 17:18:02 +0000 Subject: [PATCH 0612/2363] chore(master): release 1.111.4 (#547) :robot: I have created a release \*beep\* \*boop\* --- ### [1.111.4](https://www.github.com/googleapis/java-pubsub/compare/v1.111.3...v1.111.4) (2021-02-26) ### Dependencies * update dependency com.google.protobuf:protobuf-java-util to v3.15.3 ([#546](https://www.github.com/googleapis/java-pubsub/issues/546)) ([9129dcf](https://www.github.com/googleapis/java-pubsub/commit/9129dcfa9071f9ebffed1674ba2823803ad999ff)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index b4d507fd67e4..70ebb3a1c52d 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.111.4](https://www.github.com/googleapis/java-pubsub/compare/v1.111.3...v1.111.4) (2021-02-26) + + +### Dependencies + +* update dependency com.google.protobuf:protobuf-java-util to v3.15.3 ([#546](https://www.github.com/googleapis/java-pubsub/issues/546)) ([3c10d2c](https://www.github.com/googleapis/java-pubsub/commit/3c10d2cf7cb8fab1c2dad8e80ea8ad7723e4e899)) + ### [1.111.3](https://www.github.com/googleapis/java-pubsub/compare/v1.111.2...v1.111.3) (2021-02-25) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0fdf625c8914..6cba6b34dff5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.111.4-SNAPSHOT + 1.111.4 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.4-SNAPSHOT + 1.93.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.4-SNAPSHOT + 1.93.4 com.google.cloud google-cloud-pubsub - 1.111.4-SNAPSHOT + 1.111.4 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 882215c76c39..269d2cb9cb32 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.111.4-SNAPSHOT + 1.111.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.111.4-SNAPSHOT + 1.111.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ed008d0bdd5d..eddd692c0406 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.4-SNAPSHOT + 1.93.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.4-SNAPSHOT + 1.111.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 358e472797ec..8a08057e1091 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.111.4-SNAPSHOT + 1.111.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.4-SNAPSHOT + 1.93.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.4-SNAPSHOT + 1.93.4 com.google.cloud google-cloud-pubsub - 1.111.4-SNAPSHOT + 1.111.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b690aad515ab..7075439b1e55 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.4-SNAPSHOT + 1.93.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.4-SNAPSHOT + 1.111.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 40dcd1099e9a..cd6af10cd5c1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.111.4-SNAPSHOT + 1.111.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7a1a6819016d..3fdc26561a46 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.93.3:1.93.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.93.3:1.93.4-SNAPSHOT -google-cloud-pubsub:1.111.3:1.111.4-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.93.4:1.93.4 +grpc-google-cloud-pubsub-v1:1.93.4:1.93.4 +google-cloud-pubsub:1.111.4:1.111.4 \ No newline at end of file From 2e7592882b1e681c379401787044178411f9dd70 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 26 Feb 2021 09:20:03 -0800 Subject: [PATCH 0613/2363] chore: regenerate README (#548) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-02-26 17:09:08,036 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-26 17:09:09,637 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/fdce689f-393f-4646-a169-c167917da21b/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 1a52fb5bfede..f2968ed3e871 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "e304baca91dcb6f452d5220bf3db4c2b17e2fc59" + "sha": "7387038695fd0b9c8adc4a60227fb64df4728dd7" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0199c79b8324fba66476300824aa931788c47e2d" + "sha": "8c5628b86cfa8386de7b8fc1675e6b528b552d57" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1f76b1e36f72..f41aefb68950 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -40,7 +40,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.111.2 + 1.111.3 ``` @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.111.2' +compile 'com.google.cloud:google-cloud-pubsub:1.111.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.3" ``` ## Authentication From b56d5f52c9799db02f2304f6e61aa8405a8e286f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 26 Feb 2021 17:30:03 +0000 Subject: [PATCH 0614/2363] chore(master): release 1.111.5-SNAPSHOT (#549) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6cba6b34dff5..ea64cce92ad4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.111.4 + 1.111.5-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.4 + 1.93.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.4 + 1.93.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.111.4 + 1.111.5-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 269d2cb9cb32..df03465bbb6b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.111.4 + 1.111.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.111.4 + 1.111.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index eddd692c0406..0d7d46f19aae 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.4 + 1.93.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.4 + 1.111.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8a08057e1091..e46eee542c61 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.111.4 + 1.111.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.4 + 1.93.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.4 + 1.93.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.111.4 + 1.111.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7075439b1e55..1a6ae53cc9f7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.4 + 1.93.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.4 + 1.111.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cd6af10cd5c1..b9d5f7c58856 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.111.4 + 1.111.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3fdc26561a46..95b81fc762be 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.93.4:1.93.4 -grpc-google-cloud-pubsub-v1:1.93.4:1.93.4 -google-cloud-pubsub:1.111.4:1.111.4 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.93.4:1.93.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.93.4:1.93.5-SNAPSHOT +google-cloud-pubsub:1.111.4:1.111.5-SNAPSHOT \ No newline at end of file From 9349100cf2fca0fb6618ab115e4216b32c600703 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Mar 2021 15:32:53 -0800 Subject: [PATCH 0615/2363] chore: update protobuf v3.15.3 (#551) This release makes --experimental_allow_proto3_optional no longer necessary. PiperOrigin-RevId: 359781040 Source-Author: Google APIs Source-Date: Fri Feb 26 09:59:49 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: f6dd7e47620566925a4b3f1ce029e74e1b2f2516 Source-Link: https://github.com/googleapis/googleapis/commit/f6dd7e47620566925a4b3f1ce029e74e1b2f2516 --- .../com/google/pubsub/v1/SeekRequest.java | 33 +++++++++++++++++++ .../pubsub/v1/SeekRequestOrBuilder.java | 14 ++++++++ .../pubsub/v1/ValidateMessageRequest.java | 31 +++++++++++++++++ .../v1/ValidateMessageRequestOrBuilder.java | 13 ++++++++ java-pubsub/synth.metadata | 7 ++-- 5 files changed, 94 insertions(+), 4 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 48cca085a2b0..f9d6cc75d7aa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -313,6 +313,22 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { } public static final int SNAPSHOT_FIELD_NUMBER = 3; + /** + * + * + *
    +   * 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}`.
    +   * 
    + * + * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return targetCase_ == 3; + } /** * * @@ -1177,6 +1193,23 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return timeBuilder_; } + /** + * + * + *
    +     * 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}`.
    +     * 
    + * + * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return targetCase_ == 3; + } /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index bff70a803ed6..b82800a006c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -117,6 +117,20 @@ public interface SeekRequestOrBuilder */ com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); + /** + * + * + *
    +   * 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}`.
    +   * 
    + * + * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 215bef410614..d1a77c968b89 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -250,6 +250,21 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int NAME_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Name of the schema against which to validate.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the name field is set. + */ + public boolean hasName() { + return schemaSpecCase_ == 2; + } /** * * @@ -960,6 +975,22 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + /** + * + * + *
    +     * Name of the schema against which to validate.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return schemaSpecCase_ == 2; + } /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 7a33b7752e09..f2c3968c00e3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -54,6 +54,19 @@ public interface ValidateMessageRequestOrBuilder */ com.google.protobuf.ByteString getParentBytes(); + /** + * + * + *
    +   * Name of the schema against which to validate.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * string name = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the name field is set. + */ + boolean hasName(); /** * * diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 453b37f3adbf..fa3ee1c05d71 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "3c478ec68afb8426ba5e670c563a7a925e431d85" + "sha": "ed6b798c3908dfffe67a160d0cf38ef775081834" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d8fbfec9d4bc4a8859f78185713950913b4bf3", - "internalRef": "348038736" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, { @@ -49,7 +49,6 @@ ".github/workflows/approve-readme.yaml", ".github/workflows/auto-release.yaml", ".github/workflows/ci.yaml", - ".github/workflows/samples.yaml", ".kokoro/build.bat", ".kokoro/build.sh", ".kokoro/coerce_logs.sh", From f606f7faf5288ef557afe59eaba35ff0500cfbb3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Mar 2021 00:43:53 +0100 Subject: [PATCH 0616/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.111.4 (#550) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f4f3ec877ec6..97065bdf1ce1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.111.3 + 1.111.4 From 4a4c867f94dbc8bf234a48ce02c2b59a1290f76e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Mar 2021 15:50:03 -0800 Subject: [PATCH 0617/2363] chore: regenerate README (#553) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-03-01 23:36:20,410 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-01 23:36:21,956 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/34782f41-648e-4f36-8ce3-83b987114b9e/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index f2968ed3e871..648753aa006a 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "7387038695fd0b9c8adc4a60227fb64df4728dd7" + "sha": "534b2e017dd2071a9360ef45c072404f59b0b7fe" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f41aefb68950..0fe994d3624f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.111.3' +compile 'com.google.cloud:google-cloud-pubsub:1.111.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.4" ``` ## Authentication From 1dd04e4b56074c61dfbc61f94337907a3a505177 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Mar 2021 16:04:03 -0800 Subject: [PATCH 0618/2363] chore: regenerate README (#554) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-03-01 23:52:19,535 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-01 23:52:21,158 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/ab079362-efab-4b72-ac64-4ec05233091f/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 648753aa006a..68278097f6ac 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "534b2e017dd2071a9360ef45c072404f59b0b7fe" + "sha": "6b0378ee68533408d835203395c9bb4145a48608" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 0fe994d3624f..aaee9e3b535a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -40,7 +40,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.111.3 + 1.111.4 ``` From 068fd6b6d47fc50c6b3d259d829c423b27612193 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 2 Mar 2021 16:02:51 -0800 Subject: [PATCH 0619/2363] chore: remove docLava v2 doc generation (#555) * chore: remove docLava v2 doc generation Not using this anymore and it is causing some issues in pubsublite * chore: removing v2 doclava bucket config Source-Author: Emily Ball Source-Date: Tue Mar 2 10:13:11 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 21da7d9fa02f6916d9f87cf4072b3547b5c72eb5 Source-Link: https://github.com/googleapis/synthtool/commit/21da7d9fa02f6916d9f87cf4072b3547b5c72eb5 --- .../.kokoro/release/publish_javadoc.cfg | 8 +------- .../.kokoro/release/publish_javadoc.sh | 19 ------------------- java-pubsub/synth.metadata | 4 ++-- 3 files changed, 3 insertions(+), 28 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc.cfg b/java-pubsub/.kokoro/release/publish_javadoc.cfg index 66b92a8fd415..9e3e80619ee1 100644 --- a/java-pubsub/.kokoro/release/publish_javadoc.cfg +++ b/java-pubsub/.kokoro/release/publish_javadoc.cfg @@ -7,12 +7,6 @@ env_vars: { value: "docs-staging" } -# cloud-rad staging -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2-staging" -} - env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-pubsub/.kokoro/release/publish_javadoc.sh" @@ -26,4 +20,4 @@ before_action { keyname: "docuploader_service_account" } } -} \ No newline at end of file +} diff --git a/java-pubsub/.kokoro/release/publish_javadoc.sh b/java-pubsub/.kokoro/release/publish_javadoc.sh index c50870b86a38..8e29d1dc65ff 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc.sh @@ -56,22 +56,3 @@ python3 -m docuploader create-metadata \ python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET} - -popd - -# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates. - -mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/" - -pushd target/devsite/reference - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs to staging bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index fa3ee1c05d71..8b3ad0f5be2a 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "ed6b798c3908dfffe67a160d0cf38ef775081834" + "sha": "699661c060886bf3200b1198636821155d5be0c3" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2" + "sha": "21da7d9fa02f6916d9f87cf4072b3547b5c72eb5" } } ], From 31315322036baa4320db946691dd0c98a10b3c15 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Wed, 3 Mar 2021 10:31:24 -0800 Subject: [PATCH 0620/2363] fix: properly shutdown subscriber stub on permanent streaming pull failure (#539) * fix: stop the subscriber stub on streaming pull failure --- .../pubsub/v1/StreamingSubscriberConnection.java | 9 +++++++-- .../java/com/google/cloud/pubsub/v1/Subscriber.java | 13 ++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 98e055715eb0..249d896b7ec2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -149,8 +149,7 @@ protected void doStart() { @Override protected void doStop() { - messageDispatcher.stop(); - ackOperationsWaiter.waitComplete(); + runShutdown(); lock.lock(); try { @@ -161,6 +160,11 @@ protected void doStop() { } } + private void runShutdown() { + messageDispatcher.stop(); + ackOperationsWaiter.waitComplete(); + } + private class StreamingPullResponseObserver implements ResponseObserver { final SettableApiFuture errorFuture; @@ -282,6 +286,7 @@ public void onFailure(Throwable cause) { ApiExceptionFactory.createException( cause, GrpcStatusCode.of(Status.fromThrowable(cause).getCode()), false); logger.log(Level.SEVERE, "terminated streaming with exception", gaxException); + runShutdown(); notifyFailed(gaxException); return; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 262cf7351c9e..cca9986a819d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -308,9 +308,7 @@ protected void doStop() { public void run() { try { // stop connection is no-op if connections haven't been started. - stopAllStreamingConnections(); - shutdownBackgroundResources(); - subStub.shutdownNow(); + runShutdown(); notifyStopped(); } catch (Exception e) { notifyFailed(e); @@ -320,6 +318,12 @@ public void run() { .start(); } + private void runShutdown() { + stopAllStreamingConnections(); + shutdownBackgroundResources(); + subStub.shutdownNow(); + } + private void startStreamingConnections() { synchronized (streamingSubscriberConnections) { for (int i = 0; i < numPullers; i++) { @@ -352,8 +356,7 @@ private void startStreamingConnections() { public void failed(State from, Throwable failure) { // If a connection failed is because of a fatal error, we should fail the // whole subscriber. - stopAllStreamingConnections(); - shutdownBackgroundResources(); + runShutdown(); try { notifyFailed(failure); } catch (IllegalStateException e) { From 3348afe5ea209a7e399ce4e06b6d962075822e6f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 3 Mar 2021 10:58:06 -0800 Subject: [PATCH 0621/2363] chore: regenerate README (#557) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-03-03 18:33:35,908 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-03 18:33:36,835 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/4dd83482-b52e-406c-ac3b-b825b81220da/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 68278097f6ac..38a525e49e62 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "6b0378ee68533408d835203395c9bb4145a48608" + "sha": "adbcc0c6777e35eae24b538e6c48f9ef7485a786" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8c5628b86cfa8386de7b8fc1675e6b528b552d57" + "sha": "2e7bd5cc66a3f0b90ce1c150eb35c89eeb9872d6" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index aaee9e3b535a..a06b68252fa7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:18.0.0') +implementation platform('com.google.cloud:libraries-bom:18.1.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From b6baf4e3133440c2b5a1be75d215f86b67d4b2b0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 20:27:19 +0100 Subject: [PATCH 0622/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v19 (#561) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1bc963c3ad6c..32daa6883f90 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 18.0.0 + 19.0.0 pom import From d3b9c99e4b4ce3b7b047ec0dda16460efc3d2012 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Mar 2021 11:44:11 -0800 Subject: [PATCH 0623/2363] chore: regenerate README (#562) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-03-04 19:29:38,183 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-04 19:29:39,112 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/d01129a2-882e-4363-9658-073bffeffa2e/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 38a525e49e62..924ca4114966 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "adbcc0c6777e35eae24b538e6c48f9ef7485a786" + "sha": "4bcbde4b8646291eb46a98786fe62c4f118fc3e8" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a06b68252fa7..d5545710560a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 18.0.0 + 19.0.0 pom import @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:18.1.0') +implementation platform('com.google.cloud:libraries-bom:19.0.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From 821fd8c2666ef6022154c1af394c4639873978de Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Mar 2021 15:52:25 -0800 Subject: [PATCH 0624/2363] chore: copy README to docfx-yml dir (#563) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ed7b8a82-0394-45bb-ab76-b43a96195edd/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/d0bdade9a962042dc0f770cf631086f3db59b5b0 --- java-pubsub/.kokoro/release/publish_javadoc11.sh | 5 ++++- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.sh b/java-pubsub/.kokoro/release/publish_javadoc11.sh index dbaecf83d13d..bbf99213df36 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc11.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc11.sh @@ -40,6 +40,9 @@ export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # generate yml mvn clean site -B -q -P docFX +# copy README to docfx-yml dir and rename index.md +cp README.md target/docfx-yml/index.md + pushd target/docfx-yml # create metadata @@ -52,4 +55,4 @@ python3 -m docuploader create-metadata \ python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx- + --destination-prefix docfx diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 8b3ad0f5be2a..58587d65a4b7 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "699661c060886bf3200b1198636821155d5be0c3" + "sha": "25eac989c9b9c95a4fbd5e239d1a08afc0f391de" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "21da7d9fa02f6916d9f87cf4072b3547b5c72eb5" + "sha": "d0bdade9a962042dc0f770cf631086f3db59b5b0" } } ], From d6989db399a731d16181a50e693776c36ee32335 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Mar 2021 21:44:30 +0100 Subject: [PATCH 0625/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 (#564) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.20.0` -> `0.20.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/compatibility-slim/0.20.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/confidence-slim/0.20.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.20.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0201-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0200v0201-2021-03-09) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.20.0...v0.20.1)
    --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e46eee542c61..33d58e8002d6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.20.0 + 0.20.1 pom import From 45eaedc92526bd7d867e2d3adb9c2ed996d7a72c Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 10 Mar 2021 13:10:01 -0800 Subject: [PATCH 0626/2363] samples(testing): add retry rule (#565) * samples(testing): add retry rule * use google-cloud-core's MultipleAttemptsRule --- java-pubsub/samples/install-without-bom/pom.xml | 6 ++++++ java-pubsub/samples/snapshot/pom.xml | 6 ++++++ java-pubsub/samples/snippets/pom.xml | 6 ++++++ .../snippets/src/main/java/utilities/State.java | 9 ++++----- .../snippets/src/main/java/utilities/StateProto.java | 9 ++++----- .../snippets/src/test/java/pubsub/SchemaIT.java | 10 +++------- 6 files changed, 29 insertions(+), 17 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 97065bdf1ce1..c6c39ae8c9ef 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -77,6 +77,12 @@ protobuf-java-util 3.15.3
    + + com.google.cloud + google-cloud-core + 1.94.1 + tests +
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b9d5f7c58856..3fce50a9059d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -76,6 +76,12 @@ 1.1.2 test
    + + com.google.cloud + google-cloud-core + 1.94.1 + tests +
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 32daa6883f90..d9415a5cd273 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -87,6 +87,12 @@ 1.1.2 test
    + + com.google.cloud + google-cloud-core + 1.94.1 + tests +
    diff --git a/java-pubsub/samples/snippets/src/main/java/utilities/State.java b/java-pubsub/samples/snippets/src/main/java/utilities/State.java index 87ce59223948..503acf61f4f3 100644 --- a/java-pubsub/samples/snippets/src/main/java/utilities/State.java +++ b/java-pubsub/samples/snippets/src/main/java/utilities/State.java @@ -23,14 +23,13 @@ /** * This file is created using Avro tools. * - * To download, visit https://avro.apache.org/releases.html#Download + *

    To download, visit https://avro.apache.org/releases.html#Download * - * Run the following command from the `samples/snippets` directory to - * generate this class: + *

    Run the following command from the `samples/snippets` directory to generate this class: * - *`java -jar /location/to/your/avro-tools-1.10.1.jar compile schema src/main/resources/us-states.avsc src/main/java/` + *

    `java -jar /location/to/your/avro-tools-1.10.1.jar compile schema + * src/main/resources/us-states.avsc src/main/java/` */ - package utilities; import org.apache.avro.message.BinaryMessageDecoder; diff --git a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java index be57ce7b75ef..60701da371b3 100644 --- a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java +++ b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java @@ -20,14 +20,13 @@ /** * This file is created using protoc. * - * To download, visit https://developers.google.com/protocol-buffers/docs/downloads + *

    To download, visit https://developers.google.com/protocol-buffers/docs/downloads * - * Run the following command from the `samples/snippets` directory to - * generate this class: + *

    Run the following command from the `samples/snippets` directory to generate this class: * - *`protoc --proto_path=src/main/resources/ --java_out=src/main/java/ src/main/resources/us-states.proto` + *

    `protoc --proto_path=src/main/resources/ --java_out=src/main/java/ + * src/main/resources/us-states.proto` */ - package utilities; public final class StateProto { diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java index 45e899619e90..e920891ebe5a 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java @@ -23,6 +23,7 @@ import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import com.google.pubsub.v1.Encoding; import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.SchemaName; @@ -33,7 +34,6 @@ import java.util.UUID; import org.junit.After; import org.junit.Before; -import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; import org.junit.rules.Timeout; @@ -73,12 +73,8 @@ private static void requireEnvVar(String varName) { System.getenv(varName)); } - @Rule public Timeout globalTimeout = Timeout.seconds(300); // 5 minute timeout - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } + @Rule public Timeout globalTimeout = Timeout.seconds(600); // 10 minute timeout + @Rule public MultipleAttemptsRule retryRule = new MultipleAttemptsRule(/*maxAttemptCount=*/ 3); @Before public void setUp() { From adb40cb95dec6e88037a2b762b8da8f2accdb27d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 10 Mar 2021 23:34:57 +0100 Subject: [PATCH 0627/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.94.3 (#566) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c6c39ae8c9ef..8a07671d9e0a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.94.1 + 1.94.3 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3fce50a9059d..e8df69282c0c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.94.1 + 1.94.3 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d9415a5cd273..a8050168fa1b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.94.1 + 1.94.3 tests From 4cd8635ea27cb460eb6964a004ebf3031dd26590 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 10 Mar 2021 15:44:08 -0800 Subject: [PATCH 0628/2363] build(java): update autorelease title check in response to the new multi release branch changes (#567) Source-Author: Stephanie Wang Source-Date: Wed Mar 10 14:40:03 2021 -0500 Source-Repo: googleapis/synthtool Source-Sha: 0b064d767537e0675fc053e53fca473c5c701fb8 Source-Link: https://github.com/googleapis/synthtool/commit/0b064d767537e0675fc053e53fca473c5c701fb8 --- java-pubsub/.github/workflows/auto-release.yaml | 4 ++-- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index 7c8816a7d7b1..9b4fd4d8348d 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -16,8 +16,8 @@ jobs: return; } - // only approve PRs like "chore(master): release " - if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { + // only approve PRs like "chore: release " + if ( !context.payload.pull_request.title.startsWith("chore: release") ) { return; } diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 58587d65a4b7..9791c3dc8219 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "25eac989c9b9c95a4fbd5e239d1a08afc0f391de" + "sha": "3f23ac6cda00814f74f2c435dd8a05b70ac69d27" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d0bdade9a962042dc0f770cf631086f3db59b5b0" + "sha": "0b064d767537e0675fc053e53fca473c5c701fb8" } } ], From ee9527f1a07702ecf1b041ba333b6580db274f53 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Mar 2021 03:38:07 +0100 Subject: [PATCH 0629/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.15.5 (#559) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.protobuf:protobuf-java-util | `3.15.3` -> `3.15.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.15.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.15.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.15.5/compatibility-slim/3.15.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.15.5/confidence-slim/3.15.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8a07671d9e0a..ad98bc3cf25e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.15.3 + 3.15.5 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e8df69282c0c..9775c65b96a1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.15.3 + 3.15.5 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a8050168fa1b..6fee58094475 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.15.3 + 3.15.5 From c42b32f72e44a279c87e91c3149ef0591c52191d Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Thu, 11 Mar 2021 10:22:20 -0800 Subject: [PATCH 0630/2363] feat: expose default client configs (#541) * Modifying Publish example in README to match other examples given, and fix issue #6784 * fix: Modifying Publish example in README to match other examples, and fix Issue #11 * feat: Adding support for DLQs Adding delivery attempt count to PubsubMessages as a message attribute, and creating helper function to allow users to get the count without knowing implementation details. * Fix formatting * fix: making changes requested in pull request * fix: creating fix to not populate delivery attempt attribute when dead lettering is not enabled * Adding unit test for case in which a received message has no delivery attempt * Making MessageWaiter class more generic to also be used for outstanding ack operations * Waiting for acks to complete before shutting down a streaming subscriber connection * Fixing formatting error * fix: making sure all publishes complete before shutting down the publisher * adding default max outstanding request bytes * fix: make push endpoint valid https * fix: use default zero value if a flow control setting is not provided * fix lint issues * fix: better cleanup during publisher test * fix: format issues * fix: test timeouts should be a minute * fix: make subscriberIt less flaky * fix: add deprecated tag for deprecated methods * fix: retrying sync pulls in subscriberIT test * Revert "fix: retrying sync pulls in subscriberIT test" This reverts commit fef99561335f6e60e70ca7d0d00ac4d74a9f431e. * fix: do not send ModAck if auto ack extensions are disabled * Adding test for zero ack extension * feat: expose default client configs * fix: revert unexpected changes --- .../com/google/cloud/pubsub/v1/Publisher.java | 5 ++++ .../google/cloud/pubsub/v1/Subscriber.java | 16 ++++++---- .../cloud/pubsub/v1/PublisherImplTest.java | 29 ++++++++++++++++++ .../cloud/pubsub/v1/SubscriberTest.java | 30 +++++++++++++++++++ 4 files changed, 75 insertions(+), 5 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index aa140d7b93ee..d29a619fd199 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -820,6 +820,11 @@ public Builder setEndpoint(String endpoint) { return this; } + /** Returns the default BatchingSettings used by the client if settings are not provided. */ + public static BatchingSettings getDefaultBatchingSettings() { + return DEFAULT_BATCHING_SETTINGS; + } + public Publisher build() throws IOException { return new Publisher(this); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index cca9986a819d..4c3791b3776a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -414,6 +414,11 @@ private void stopConnections(List connections) { /** Builder of {@link Subscriber Subscribers}. */ public static final class Builder { private static final Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); + static final FlowControlSettings DEFAULT_FLOW_CONTROL_SETTINGS = + FlowControlSettings.newBuilder() + .setMaxOutstandingElementCount(1000L) + .setMaxOutstandingRequestBytes(100L * 1024L * 1024L) // 100MB + .build(); private static final ExecutorProvider DEFAULT_EXECUTOR_PROVIDER = InstantiatingExecutorProvider.newBuilder() @@ -428,11 +433,7 @@ public static final class Builder { private Duration maxDurationPerAckExtension = DEFAULT_MAX_DURATION_PER_ACK_EXTENSION; private boolean useLegacyFlowControl = false; - private FlowControlSettings flowControlSettings = - FlowControlSettings.newBuilder() - .setMaxOutstandingElementCount(1000L) - .setMaxOutstandingRequestBytes(100L * 1024L * 1024L) // 100MB - .build(); + private FlowControlSettings flowControlSettings = DEFAULT_FLOW_CONTROL_SETTINGS; private ExecutorProvider executorProvider = DEFAULT_EXECUTOR_PROVIDER; private ExecutorProvider systemExecutorProvider = null; @@ -597,6 +598,11 @@ Builder setClock(ApiClock clock) { return this; } + /** Returns the default FlowControlSettings used by the client if settings are not provided. */ + public static FlowControlSettings getDefaultFlowControlSettings() { + return DEFAULT_FLOW_CONTROL_SETTINGS; + } + public Subscriber build() { if (systemExecutorProvider == null) { ThreadFactory threadFactory = diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index e5a785aed7af..3da6570618e8 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -955,6 +955,35 @@ public void testBuilderInvalidArguments() { } } + @Test + public void testPartialBatchingSettings() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.getDefaultBatchingSettings() + .toBuilder() + .setRequestByteThreshold(5000L) + .build()) + .build(); + assertEquals((long) publisher.getBatchingSettings().getRequestByteThreshold(), 5000); + assertEquals( + publisher.getBatchingSettings().getElementCountThreshold(), + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.getElementCountThreshold()); + + publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.getDefaultBatchingSettings() + .toBuilder() + .setElementCountThreshold(500L) + .build()) + .build(); + assertEquals((long) publisher.getBatchingSettings().getElementCountThreshold(), 500); + assertEquals( + publisher.getBatchingSettings().getRequestByteThreshold(), + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.getRequestByteThreshold()); + } + @Test public void testAwaitTermination() throws Exception { Publisher publisher = diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 5ebd8cb81416..4491b6ef9817 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -289,6 +289,36 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { subscriber.stopAsync().awaitTerminated(); } + @Test + public void testPartialFlowControlSettings() throws Exception { + Subscriber subscriber = + getTestSubscriberBuilder(testReceiver) + .setFlowControlSettings( + Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS + .toBuilder() + .setMaxOutstandingElementCount(500L) + .build()) + .build(); + assertEquals((long) subscriber.getFlowControlSettings().getMaxOutstandingElementCount(), 500); + assertEquals( + subscriber.getFlowControlSettings().getMaxOutstandingRequestBytes(), + Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS.getMaxOutstandingRequestBytes()); + + subscriber = + getTestSubscriberBuilder(testReceiver) + .setFlowControlSettings( + Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS + .toBuilder() + .setMaxOutstandingRequestBytes(5_000_000_000L) + .build()) + .build(); + assertEquals( + (long) subscriber.getFlowControlSettings().getMaxOutstandingRequestBytes(), 5_000_000_000L); + assertEquals( + subscriber.getFlowControlSettings().getMaxOutstandingElementCount(), + Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS.getMaxOutstandingElementCount()); + } + private Subscriber startSubscriber(Builder testSubscriberBuilder) { Subscriber subscriber = testSubscriberBuilder.build(); subscriber.startAsync().awaitRunning(); From 0791c1111fcffc650111cf3837e96a2739a6fc6f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Mar 2021 19:24:06 +0100 Subject: [PATCH 0631/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.94.4 (#568) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ad98bc3cf25e..140a2ab86380 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.94.3 + 1.94.4 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9775c65b96a1..c95d747f135e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.94.3 + 1.94.4 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6fee58094475..14bec5145271 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.94.3 + 1.94.4 tests From fc4f30aabb72ebc558a2103cb8ca1d7321ab4b1d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 12 Mar 2021 19:35:59 +0100 Subject: [PATCH 0632/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.15.6 (#569) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 140a2ab86380..fe302c4cc4d3 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.15.5 + 3.15.6 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c95d747f135e..f2b91ec6cb71 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.15.5 + 3.15.6 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 14bec5145271..827c0e9809c5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.15.5 + 3.15.6 From b39925ec2fb0dad76ede6ca14d12a6be12161b0d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 15 Mar 2021 16:01:47 -0700 Subject: [PATCH 0633/2363] docs: Remove experimental note for schema APIs (#560) * docs: Remove experimental note for schema APIs PiperOrigin-RevId: 360714464 Source-Author: Google APIs Source-Date: Wed Mar 3 11:13:45 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 479acf6990eada1213f8666f1c795a018f8496f9 Source-Link: https://github.com/googleapis/googleapis/commit/479acf6990eada1213f8666f1c795a018f8496f9 * chore: update gax-java dependency to 1.62 PiperOrigin-RevId: 361377784 Source-Author: Google APIs Source-Date: Sat Mar 6 21:09:41 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 0e915217fb5261c1e57bfaf0e16ee5c7feaaba89 Source-Link: https://github.com/googleapis/googleapis/commit/0e915217fb5261c1e57bfaf0e16ee5c7feaaba89 --- .../cloud/pubsub/v1/SchemaServiceClient.java | 2 +- .../google/cloud/pubsub/v1/package-info.java | 2 +- .../com/google/pubsub/v1/PublisherGrpc.java | 109 +++++----- .../google/pubsub/v1/SchemaServiceGrpc.java | 117 +++++++---- .../com/google/pubsub/v1/SubscriberGrpc.java | 189 ++++++++++-------- .../main/java/com/google/pubsub/v1/Topic.java | 12 -- .../com/google/pubsub/v1/TopicOrBuilder.java | 3 - .../main/proto/google/pubsub/v1/pubsub.proto | 2 - .../main/proto/google/pubsub/v1/schema.proto | 3 - java-pubsub/synth.metadata | 6 +- 10 files changed, 244 insertions(+), 201 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 4ccac0cfd406..cf46acfb48e3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -48,7 +48,7 @@ // AUTO-GENERATED DOCUMENTATION AND SERVICE /** - * Service Description: + * Service Description: Service for doing schema-related operations. * *

    This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 88af5d794c67..a51ede8608dd 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -21,7 +21,7 @@ * *

    =================== SchemaServiceClient =================== * - *

    Service Description: + *

    Service Description: Service for doing schema-related operations. * *

    Sample for SchemaServiceClient: * diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 9e0404ebcfe0..380561fd8445 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -16,11 +16,6 @@ package com.google.pubsub.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -475,7 +470,8 @@ public abstract static class PublisherImplBase implements io.grpc.BindableServic public void createTopic( com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTopicMethod(), responseObserver); } /** @@ -489,7 +485,8 @@ public void createTopic( public void updateTopic( com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTopicMethod(), responseObserver); } /** @@ -503,7 +500,7 @@ public void updateTopic( public void publish( com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPublishMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPublishMethod(), responseObserver); } /** @@ -516,7 +513,7 @@ public void publish( public void getTopic( com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); } /** @@ -529,7 +526,7 @@ public void getTopic( public void listTopics( com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); } /** @@ -543,7 +540,8 @@ public void listTopicSubscriptions( com.google.pubsub.v1.ListTopicSubscriptionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTopicSubscriptionsMethod(), responseObserver); } /** @@ -561,7 +559,8 @@ public void listTopicSnapshots( com.google.pubsub.v1.ListTopicSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTopicSnapshotsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTopicSnapshotsMethod(), responseObserver); } /** @@ -578,7 +577,8 @@ public void listTopicSnapshots( public void deleteTopic( com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteTopicMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTopicMethod(), responseObserver); } /** @@ -595,7 +595,8 @@ public void detachSubscription( com.google.pubsub.v1.DetachSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDetachSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDetachSubscriptionMethod(), responseObserver); } @java.lang.Override @@ -603,56 +604,56 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateTopicMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers( this, METHODID_CREATE_TOPIC))) .addMethod( getUpdateTopicMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>( this, METHODID_UPDATE_TOPIC))) .addMethod( getPublishMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>( this, METHODID_PUBLISH))) .addMethod( getGetTopicMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>( this, METHODID_GET_TOPIC))) .addMethod( getListTopicsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse>(this, METHODID_LIST_TOPICS))) .addMethod( getListTopicSubscriptionsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListTopicSubscriptionsRequest, com.google.pubsub.v1.ListTopicSubscriptionsResponse>( this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) .addMethod( getListTopicSnapshotsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListTopicSnapshotsRequest, com.google.pubsub.v1.ListTopicSnapshotsResponse>( this, METHODID_LIST_TOPIC_SNAPSHOTS))) .addMethod( getDeleteTopicMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_TOPIC))) .addMethod( getDetachSubscriptionMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.DetachSubscriptionRequest, com.google.pubsub.v1.DetachSubscriptionResponse>( @@ -690,7 +691,7 @@ protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callO public void createTopic( com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request, responseObserver); @@ -707,7 +708,7 @@ public void createTopic( public void updateTopic( com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request, responseObserver); @@ -724,7 +725,7 @@ public void updateTopic( public void publish( com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPublishMethod(), getCallOptions()), request, responseObserver); } @@ -738,7 +739,7 @@ public void publish( public void getTopic( com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTopicMethod(), getCallOptions()), request, responseObserver); } @@ -752,7 +753,7 @@ public void getTopic( public void listTopics( com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTopicsMethod(), getCallOptions()), request, responseObserver); } @@ -767,7 +768,7 @@ public void listTopicSubscriptions( com.google.pubsub.v1.ListTopicSubscriptionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request, responseObserver); @@ -788,7 +789,7 @@ public void listTopicSnapshots( com.google.pubsub.v1.ListTopicSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTopicSnapshotsMethod(), getCallOptions()), request, responseObserver); @@ -808,7 +809,7 @@ public void listTopicSnapshots( public void deleteTopic( com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request, responseObserver); @@ -828,7 +829,7 @@ public void detachSubscription( com.google.pubsub.v1.DetachSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), request, responseObserver); @@ -864,7 +865,8 @@ protected PublisherBlockingStub build( *

    */ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { - return blockingUnaryCall(getChannel(), getCreateTopicMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTopicMethod(), getCallOptions(), request); } /** @@ -876,7 +878,8 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request *
    */ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { - return blockingUnaryCall(getChannel(), getUpdateTopicMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTopicMethod(), getCallOptions(), request); } /** @@ -889,7 +892,8 @@ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRe */ public com.google.pubsub.v1.PublishResponse publish( com.google.pubsub.v1.PublishRequest request) { - return blockingUnaryCall(getChannel(), getPublishMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPublishMethod(), getCallOptions(), request); } /** @@ -900,7 +904,8 @@ public com.google.pubsub.v1.PublishResponse publish( *
    */ public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request) { - return blockingUnaryCall(getChannel(), getGetTopicMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTopicMethod(), getCallOptions(), request); } /** @@ -912,7 +917,8 @@ public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest */ public com.google.pubsub.v1.ListTopicsResponse listTopics( com.google.pubsub.v1.ListTopicsRequest request) { - return blockingUnaryCall(getChannel(), getListTopicsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicsMethod(), getCallOptions(), request); } /** @@ -924,7 +930,7 @@ public com.google.pubsub.v1.ListTopicsResponse listTopics( */ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions( com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); } @@ -941,7 +947,7 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription */ public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( com.google.pubsub.v1.ListTopicSnapshotsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTopicSnapshotsMethod(), getCallOptions(), request); } @@ -957,7 +963,8 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( *
    */ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) { - return blockingUnaryCall(getChannel(), getDeleteTopicMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTopicMethod(), getCallOptions(), request); } /** @@ -972,7 +979,7 @@ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicReq */ public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription( com.google.pubsub.v1.DetachSubscriptionRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDetachSubscriptionMethod(), getCallOptions(), request); } } @@ -1006,7 +1013,7 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture createTopic(com.google.pubsub.v1.Topic request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateTopicMethod(), getCallOptions()), request); } @@ -1020,7 +1027,7 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateTopicMethod(), getCallOptions()), request); } @@ -1034,7 +1041,8 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture publish(com.google.pubsub.v1.PublishRequest request) { - return futureUnaryCall(getChannel().newCall(getPublishMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPublishMethod(), getCallOptions()), request); } /** @@ -1046,7 +1054,8 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions */ public com.google.common.util.concurrent.ListenableFuture getTopic( com.google.pubsub.v1.GetTopicRequest request) { - return futureUnaryCall(getChannel().newCall(getGetTopicMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTopicMethod(), getCallOptions()), request); } /** @@ -1059,7 +1068,7 @@ public com.google.common.util.concurrent.ListenableFuture listTopics(com.google.pubsub.v1.ListTopicsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTopicsMethod(), getCallOptions()), request); } @@ -1073,7 +1082,7 @@ public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions(com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request); } @@ -1091,7 +1100,7 @@ public com.google.common.util.concurrent.ListenableFuture listTopicSnapshots(com.google.pubsub.v1.ListTopicSnapshotsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTopicSnapshotsMethod(), getCallOptions()), request); } @@ -1108,7 +1117,7 @@ public com.google.common.util.concurrent.ListenableFuture deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteTopicMethod(), getCallOptions()), request); } @@ -1125,7 +1134,7 @@ public com.google.common.util.concurrent.ListenableFuture detachSubscription(com.google.pubsub.v1.DetachSubscriptionRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDetachSubscriptionMethod(), getCallOptions()), request); } } diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index d68736ce223c..ce5099a57d4d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -16,13 +16,14 @@ package com.google.pubsub.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; -/** */ +/** + * + * + *
    + * Service for doing schema-related operations.
    + * 
    + */ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/pubsub/v1/schema.proto") @@ -319,7 +320,13 @@ public SchemaServiceFutureStub newStub( return SchemaServiceFutureStub.newStub(factory, channel); } - /** */ + /** + * + * + *
    +   * Service for doing schema-related operations.
    +   * 
    + */ public abstract static class SchemaServiceImplBase implements io.grpc.BindableService { /** @@ -332,7 +339,8 @@ public abstract static class SchemaServiceImplBase implements io.grpc.BindableSe public void createSchema( com.google.pubsub.v1.CreateSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateSchemaMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSchemaMethod(), responseObserver); } /** @@ -345,7 +353,7 @@ public void createSchema( public void getSchema( com.google.pubsub.v1.GetSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); } /** @@ -358,7 +366,8 @@ public void getSchema( public void listSchemas( com.google.pubsub.v1.ListSchemasRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListSchemasMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSchemasMethod(), responseObserver); } /** @@ -371,7 +380,8 @@ public void listSchemas( public void deleteSchema( com.google.pubsub.v1.DeleteSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteSchemaMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSchemaMethod(), responseObserver); } /** @@ -384,7 +394,8 @@ public void deleteSchema( public void validateSchema( com.google.pubsub.v1.ValidateSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getValidateSchemaMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getValidateSchemaMethod(), responseObserver); } /** @@ -398,7 +409,8 @@ public void validateMessage( com.google.pubsub.v1.ValidateMessageRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getValidateMessageMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getValidateMessageMethod(), responseObserver); } @java.lang.Override @@ -406,37 +418,37 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateSchemaMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema>( this, METHODID_CREATE_SCHEMA))) .addMethod( getGetSchemaMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema>( this, METHODID_GET_SCHEMA))) .addMethod( getListSchemasMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse>(this, METHODID_LIST_SCHEMAS))) .addMethod( getDeleteSchemaMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_SCHEMA))) .addMethod( getValidateSchemaMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse>(this, METHODID_VALIDATE_SCHEMA))) .addMethod( getValidateMessageMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse>( @@ -445,7 +457,13 @@ public final io.grpc.ServerServiceDefinition bindService() { } } - /** */ + /** + * + * + *
    +   * Service for doing schema-related operations.
    +   * 
    + */ public static final class SchemaServiceStub extends io.grpc.stub.AbstractAsyncStub { private SchemaServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -467,7 +485,7 @@ protected SchemaServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions c public void createSchema( com.google.pubsub.v1.CreateSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request, responseObserver); @@ -483,7 +501,7 @@ public void createSchema( public void getSchema( com.google.pubsub.v1.GetSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); } @@ -497,7 +515,7 @@ public void getSchema( public void listSchemas( com.google.pubsub.v1.ListSchemasRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSchemasMethod(), getCallOptions()), request, responseObserver); @@ -513,7 +531,7 @@ public void listSchemas( public void deleteSchema( com.google.pubsub.v1.DeleteSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request, responseObserver); @@ -529,7 +547,7 @@ public void deleteSchema( public void validateSchema( com.google.pubsub.v1.ValidateSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request, responseObserver); @@ -546,14 +564,20 @@ public void validateMessage( com.google.pubsub.v1.ValidateMessageRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request, responseObserver); } } - /** */ + /** + * + * + *
    +   * Service for doing schema-related operations.
    +   * 
    + */ public static final class SchemaServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private SchemaServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -575,7 +599,8 @@ protected SchemaServiceBlockingStub build( */ public com.google.pubsub.v1.Schema createSchema( com.google.pubsub.v1.CreateSchemaRequest request) { - return blockingUnaryCall(getChannel(), getCreateSchemaMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSchemaMethod(), getCallOptions(), request); } /** @@ -586,7 +611,8 @@ public com.google.pubsub.v1.Schema createSchema( * */ public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { - return blockingUnaryCall(getChannel(), getGetSchemaMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSchemaMethod(), getCallOptions(), request); } /** @@ -598,7 +624,8 @@ public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaReque */ public com.google.pubsub.v1.ListSchemasResponse listSchemas( com.google.pubsub.v1.ListSchemasRequest request) { - return blockingUnaryCall(getChannel(), getListSchemasMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemasMethod(), getCallOptions(), request); } /** @@ -610,7 +637,8 @@ public com.google.pubsub.v1.ListSchemasResponse listSchemas( */ public com.google.protobuf.Empty deleteSchema( com.google.pubsub.v1.DeleteSchemaRequest request) { - return blockingUnaryCall(getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); } /** @@ -622,7 +650,8 @@ public com.google.protobuf.Empty deleteSchema( */ public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( com.google.pubsub.v1.ValidateSchemaRequest request) { - return blockingUnaryCall(getChannel(), getValidateSchemaMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateSchemaMethod(), getCallOptions(), request); } /** @@ -634,11 +663,18 @@ public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( */ public com.google.pubsub.v1.ValidateMessageResponse validateMessage( com.google.pubsub.v1.ValidateMessageRequest request) { - return blockingUnaryCall(getChannel(), getValidateMessageMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateMessageMethod(), getCallOptions(), request); } } - /** */ + /** + * + * + *
    +   * Service for doing schema-related operations.
    +   * 
    + */ public static final class SchemaServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private SchemaServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -660,7 +696,7 @@ protected SchemaServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture createSchema(com.google.pubsub.v1.CreateSchemaRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); } @@ -673,7 +709,8 @@ protected SchemaServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture getSchema(com.google.pubsub.v1.GetSchemaRequest request) { - return futureUnaryCall(getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); } /** @@ -686,7 +723,7 @@ protected SchemaServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.pubsub.v1.ListSchemasResponse> listSchemas(com.google.pubsub.v1.ListSchemasRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); } @@ -699,7 +736,7 @@ protected SchemaServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); } @@ -713,7 +750,7 @@ protected SchemaServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.pubsub.v1.ValidateSchemaResponse> validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request); } @@ -727,7 +764,7 @@ protected SchemaServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.pubsub.v1.ValidateMessageResponse> validateMessage(com.google.pubsub.v1.ValidateMessageRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request); } } diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 411cc9243db1..295e5e724e58 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -16,14 +16,6 @@ package com.google.pubsub.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -763,7 +755,8 @@ public abstract static class SubscriberImplBase implements io.grpc.BindableServi public void createSubscription( com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSubscriptionMethod(), responseObserver); } /** @@ -776,7 +769,8 @@ public void createSubscription( public void getSubscription( com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSubscriptionMethod(), responseObserver); } /** @@ -790,7 +784,8 @@ public void getSubscription( public void updateSubscription( com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSubscriptionMethod(), responseObserver); } /** @@ -804,7 +799,8 @@ public void listSubscriptions( com.google.pubsub.v1.ListSubscriptionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListSubscriptionsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSubscriptionsMethod(), responseObserver); } /** @@ -821,7 +817,8 @@ public void listSubscriptions( public void deleteSubscription( com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteSubscriptionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSubscriptionMethod(), responseObserver); } /** @@ -838,7 +835,8 @@ public void deleteSubscription( public void modifyAckDeadline( com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getModifyAckDeadlineMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getModifyAckDeadlineMethod(), responseObserver); } /** @@ -856,7 +854,8 @@ public void modifyAckDeadline( public void acknowledge( com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAcknowledgeMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAcknowledgeMethod(), responseObserver); } /** @@ -871,7 +870,7 @@ public void acknowledge( public void pull( com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPullMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPullMethod(), responseObserver); } /** @@ -889,7 +888,8 @@ public void pull( */ public io.grpc.stub.StreamObserver streamingPull( io.grpc.stub.StreamObserver responseObserver) { - return asyncUnimplementedStreamingCall(getStreamingPullMethod(), responseObserver); + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingPullMethod(), responseObserver); } /** @@ -906,7 +906,8 @@ public io.grpc.stub.StreamObserver st public void modifyPushConfig( com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getModifyPushConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getModifyPushConfigMethod(), responseObserver); } /** @@ -923,7 +924,8 @@ public void modifyPushConfig( public void getSnapshot( com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSnapshotMethod(), responseObserver); } /** @@ -940,7 +942,8 @@ public void getSnapshot( public void listSnapshots( com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListSnapshotsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSnapshotsMethod(), responseObserver); } /** @@ -968,7 +971,8 @@ public void listSnapshots( public void createSnapshot( com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSnapshotMethod(), responseObserver); } /** @@ -986,7 +990,8 @@ public void createSnapshot( public void updateSnapshot( com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSnapshotMethod(), responseObserver); } /** @@ -1007,7 +1012,8 @@ public void updateSnapshot( public void deleteSnapshot( com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteSnapshotMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSnapshotMethod(), responseObserver); } /** @@ -1026,7 +1032,7 @@ public void deleteSnapshot( public void seek( com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSeekMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSeekMethod(), responseObserver); } @java.lang.Override @@ -1034,98 +1040,98 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateSubscriptionMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>( this, METHODID_CREATE_SUBSCRIPTION))) .addMethod( getGetSubscriptionMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>(this, METHODID_GET_SUBSCRIPTION))) .addMethod( getUpdateSubscriptionMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.UpdateSubscriptionRequest, com.google.pubsub.v1.Subscription>(this, METHODID_UPDATE_SUBSCRIPTION))) .addMethod( getListSubscriptionsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListSubscriptionsRequest, com.google.pubsub.v1.ListSubscriptionsResponse>( this, METHODID_LIST_SUBSCRIPTIONS))) .addMethod( getDeleteSubscriptionMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_SUBSCRIPTION))) .addMethod( getModifyAckDeadlineMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>( this, METHODID_MODIFY_ACK_DEADLINE))) .addMethod( getAcknowledgeMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>( this, METHODID_ACKNOWLEDGE))) .addMethod( getPullMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>( this, METHODID_PULL))) .addMethod( getStreamingPullMethod(), - asyncBidiStreamingCall( + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse>(this, METHODID_STREAMING_PULL))) .addMethod( getModifyPushConfigMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>( this, METHODID_MODIFY_PUSH_CONFIG))) .addMethod( getGetSnapshotMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>( this, METHODID_GET_SNAPSHOT))) .addMethod( getListSnapshotsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListSnapshotsRequest, com.google.pubsub.v1.ListSnapshotsResponse>(this, METHODID_LIST_SNAPSHOTS))) .addMethod( getCreateSnapshotMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>( this, METHODID_CREATE_SNAPSHOT))) .addMethod( getUpdateSnapshotMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>( this, METHODID_UPDATE_SNAPSHOT))) .addMethod( getDeleteSnapshotMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_SNAPSHOT))) .addMethod( getSeekMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>( this, METHODID_SEEK))) @@ -1171,7 +1177,7 @@ protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions call public void createSubscription( com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request, responseObserver); @@ -1187,7 +1193,7 @@ public void createSubscription( public void getSubscription( com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request, responseObserver); @@ -1204,7 +1210,7 @@ public void getSubscription( public void updateSubscription( com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request, responseObserver); @@ -1221,7 +1227,7 @@ public void listSubscriptions( com.google.pubsub.v1.ListSubscriptionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request, responseObserver); @@ -1241,7 +1247,7 @@ public void listSubscriptions( public void deleteSubscription( com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request, responseObserver); @@ -1261,7 +1267,7 @@ public void deleteSubscription( public void modifyAckDeadline( com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getModifyAckDeadlineMethod(), getCallOptions()), request, responseObserver); @@ -1282,7 +1288,7 @@ public void modifyAckDeadline( public void acknowledge( com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAcknowledgeMethod(), getCallOptions()), request, responseObserver); @@ -1300,7 +1306,7 @@ public void acknowledge( public void pull( com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPullMethod(), getCallOptions()), request, responseObserver); } @@ -1319,7 +1325,7 @@ public void pull( */ public io.grpc.stub.StreamObserver streamingPull( io.grpc.stub.StreamObserver responseObserver) { - return asyncBidiStreamingCall( + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getStreamingPullMethod(), getCallOptions()), responseObserver); } @@ -1337,7 +1343,7 @@ public io.grpc.stub.StreamObserver st public void modifyPushConfig( com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getModifyPushConfigMethod(), getCallOptions()), request, responseObserver); @@ -1357,7 +1363,7 @@ public void modifyPushConfig( public void getSnapshot( com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request, responseObserver); @@ -1377,7 +1383,7 @@ public void getSnapshot( public void listSnapshots( com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request, responseObserver); @@ -1408,7 +1414,7 @@ public void listSnapshots( public void createSnapshot( com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request, responseObserver); @@ -1429,7 +1435,7 @@ public void createSnapshot( public void updateSnapshot( com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request, responseObserver); @@ -1453,7 +1459,7 @@ public void updateSnapshot( public void deleteSnapshot( com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request, responseObserver); @@ -1475,7 +1481,7 @@ public void deleteSnapshot( public void seek( com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSeekMethod(), getCallOptions()), request, responseObserver); } } @@ -1519,7 +1525,7 @@ protected SubscriberBlockingStub build( */ public com.google.pubsub.v1.Subscription createSubscription( com.google.pubsub.v1.Subscription request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); } @@ -1532,7 +1538,8 @@ public com.google.pubsub.v1.Subscription createSubscription( */ public com.google.pubsub.v1.Subscription getSubscription( com.google.pubsub.v1.GetSubscriptionRequest request) { - return blockingUnaryCall(getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); } /** @@ -1545,7 +1552,7 @@ public com.google.pubsub.v1.Subscription getSubscription( */ public com.google.pubsub.v1.Subscription updateSubscription( com.google.pubsub.v1.UpdateSubscriptionRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); } @@ -1558,7 +1565,7 @@ public com.google.pubsub.v1.Subscription updateSubscription( */ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( com.google.pubsub.v1.ListSubscriptionsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); } @@ -1575,7 +1582,7 @@ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( */ public com.google.protobuf.Empty deleteSubscription( com.google.pubsub.v1.DeleteSubscriptionRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); } @@ -1592,7 +1599,7 @@ public com.google.protobuf.Empty deleteSubscription( */ public com.google.protobuf.Empty modifyAckDeadline( com.google.pubsub.v1.ModifyAckDeadlineRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getModifyAckDeadlineMethod(), getCallOptions(), request); } @@ -1609,7 +1616,8 @@ public com.google.protobuf.Empty modifyAckDeadline( * */ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { - return blockingUnaryCall(getChannel(), getAcknowledgeMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAcknowledgeMethod(), getCallOptions(), request); } /** @@ -1622,7 +1630,8 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq * */ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) { - return blockingUnaryCall(getChannel(), getPullMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPullMethod(), getCallOptions(), request); } /** @@ -1638,7 +1647,7 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r */ public com.google.protobuf.Empty modifyPushConfig( com.google.pubsub.v1.ModifyPushConfigRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getModifyPushConfigMethod(), getCallOptions(), request); } @@ -1655,7 +1664,8 @@ public com.google.protobuf.Empty modifyPushConfig( */ public com.google.pubsub.v1.Snapshot getSnapshot( com.google.pubsub.v1.GetSnapshotRequest request) { - return blockingUnaryCall(getChannel(), getGetSnapshotMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } /** @@ -1671,7 +1681,8 @@ public com.google.pubsub.v1.Snapshot getSnapshot( */ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( com.google.pubsub.v1.ListSnapshotsRequest request) { - return blockingUnaryCall(getChannel(), getListSnapshotsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } /** @@ -1698,7 +1709,8 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( */ public com.google.pubsub.v1.Snapshot createSnapshot( com.google.pubsub.v1.CreateSnapshotRequest request) { - return blockingUnaryCall(getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); } /** @@ -1715,7 +1727,8 @@ public com.google.pubsub.v1.Snapshot createSnapshot( */ public com.google.pubsub.v1.Snapshot updateSnapshot( com.google.pubsub.v1.UpdateSnapshotRequest request) { - return blockingUnaryCall(getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); } /** @@ -1735,7 +1748,8 @@ public com.google.pubsub.v1.Snapshot updateSnapshot( */ public com.google.protobuf.Empty deleteSnapshot( com.google.pubsub.v1.DeleteSnapshotRequest request) { - return blockingUnaryCall(getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } /** @@ -1752,7 +1766,8 @@ public com.google.protobuf.Empty deleteSnapshot( * */ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { - return blockingUnaryCall(getChannel(), getSeekMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSeekMethod(), getCallOptions(), request); } } @@ -1794,7 +1809,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture createSubscription(com.google.pubsub.v1.Subscription request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSubscriptionMethod(), getCallOptions()), request); } @@ -1807,7 +1822,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getSubscription(com.google.pubsub.v1.GetSubscriptionRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSubscriptionMethod(), getCallOptions()), request); } @@ -1821,7 +1836,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture updateSubscription(com.google.pubsub.v1.UpdateSubscriptionRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSubscriptionMethod(), getCallOptions()), request); } @@ -1835,7 +1850,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.pubsub.v1.ListSubscriptionsResponse> listSubscriptions(com.google.pubsub.v1.ListSubscriptionsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSubscriptionsMethod(), getCallOptions()), request); } @@ -1852,7 +1867,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteSubscription(com.google.pubsub.v1.DeleteSubscriptionRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSubscriptionMethod(), getCallOptions()), request); } @@ -1869,7 +1884,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture modifyAckDeadline(com.google.pubsub.v1.ModifyAckDeadlineRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getModifyAckDeadlineMethod(), getCallOptions()), request); } @@ -1887,7 +1902,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAcknowledgeMethod(), getCallOptions()), request); } @@ -1902,7 +1917,8 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture pull(com.google.pubsub.v1.PullRequest request) { - return futureUnaryCall(getChannel().newCall(getPullMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPullMethod(), getCallOptions()), request); } /** @@ -1918,7 +1934,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture modifyPushConfig(com.google.pubsub.v1.ModifyPushConfigRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getModifyPushConfigMethod(), getCallOptions()), request); } @@ -1935,7 +1951,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getSnapshot(com.google.pubsub.v1.GetSnapshotRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSnapshotMethod(), getCallOptions()), request); } @@ -1953,7 +1969,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.pubsub.v1.ListSnapshotsResponse> listSnapshots(com.google.pubsub.v1.ListSnapshotsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSnapshotsMethod(), getCallOptions()), request); } @@ -1981,7 +1997,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture createSnapshot(com.google.pubsub.v1.CreateSnapshotRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSnapshotMethod(), getCallOptions()), request); } @@ -1999,7 +2015,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture updateSnapshot(com.google.pubsub.v1.UpdateSnapshotRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSnapshotMethod(), getCallOptions()), request); } @@ -2020,7 +2036,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteSnapshot(com.google.pubsub.v1.DeleteSnapshotRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSnapshotMethod(), getCallOptions()), request); } @@ -2039,7 +2055,8 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture seek(com.google.pubsub.v1.SeekRequest request) { - return futureUnaryCall(getChannel().newCall(getSeekMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSeekMethod(), getCallOptions()), request); } } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 6a7449962e9d..e993aaf108e3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -454,7 +454,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * *
        * Settings for validating messages published against a schema.
    -   * EXPERIMENTAL: Schema support is in development and may not work yet.
        * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -470,7 +469,6 @@ public boolean hasSchemaSettings() { * *
        * Settings for validating messages published against a schema.
    -   * EXPERIMENTAL: Schema support is in development and may not work yet.
        * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -488,7 +486,6 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { * *
        * Settings for validating messages published against a schema.
    -   * EXPERIMENTAL: Schema support is in development and may not work yet.
        * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -1585,7 +1582,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { * *
          * Settings for validating messages published against a schema.
    -     * EXPERIMENTAL: Schema support is in development and may not work yet.
          * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -1600,7 +1596,6 @@ public boolean hasSchemaSettings() { * *
          * Settings for validating messages published against a schema.
    -     * EXPERIMENTAL: Schema support is in development and may not work yet.
          * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -1621,7 +1616,6 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { * *
          * Settings for validating messages published against a schema.
    -     * EXPERIMENTAL: Schema support is in development and may not work yet.
          * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -1644,7 +1638,6 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { * *
          * Settings for validating messages published against a schema.
    -     * EXPERIMENTAL: Schema support is in development and may not work yet.
          * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -1664,7 +1657,6 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder bui * *
          * Settings for validating messages published against a schema.
    -     * EXPERIMENTAL: Schema support is in development and may not work yet.
          * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -1691,7 +1683,6 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { * *
          * Settings for validating messages published against a schema.
    -     * EXPERIMENTAL: Schema support is in development and may not work yet.
          * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -1712,7 +1703,6 @@ public Builder clearSchemaSettings() { * *
          * Settings for validating messages published against a schema.
    -     * EXPERIMENTAL: Schema support is in development and may not work yet.
          * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -1727,7 +1717,6 @@ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { * *
          * Settings for validating messages published against a schema.
    -     * EXPERIMENTAL: Schema support is in development and may not work yet.
          * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -1746,7 +1735,6 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * *
          * Settings for validating messages published against a schema.
    -     * EXPERIMENTAL: Schema support is in development and may not work yet.
          * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index d7606f288854..45838fe0f420 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -192,7 +192,6 @@ public interface TopicOrBuilder * *
        * Settings for validating messages published against a schema.
    -   * EXPERIMENTAL: Schema support is in development and may not work yet.
        * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -205,7 +204,6 @@ public interface TopicOrBuilder * *
        * Settings for validating messages published against a schema.
    -   * EXPERIMENTAL: Schema support is in development and may not work yet.
        * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; @@ -218,7 +216,6 @@ public interface TopicOrBuilder * *
        * Settings for validating messages published against a schema.
    -   * EXPERIMENTAL: Schema support is in development and may not work yet.
        * 
    * * .google.pubsub.v1.SchemaSettings schema_settings = 6; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 9bc678e3ae7c..0da37dd7dad1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -191,8 +191,6 @@ message Topic { string kms_key_name = 5; // Settings for validating messages published against a schema. - // - // EXPERIMENTAL: Schema support is in development and may not work yet. SchemaSettings schema_settings = 6; // Reserved for future use. This field is set only in responses from the diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index ae402ac4de2e..1ace7ef3b0d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -32,9 +32,6 @@ option php_namespace = "Google\\Cloud\\PubSub\\V1"; option ruby_package = "Google::Cloud::PubSub::V1"; // Service for doing schema-related operations. -// -// EXPERIMENTAL: The Schema service is in development and may not work yet. - service SchemaService { option (google.api.default_host) = "pubsub.googleapis.com"; option (google.api.oauth_scopes) = diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 9791c3dc8219..3bc62feecde2 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "3f23ac6cda00814f74f2c435dd8a05b70ac69d27" + "sha": "21886d39cdc2a33275c2061578c877b0fa6aee98" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", - "internalRef": "359781040" + "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", + "internalRef": "361377784" } }, { From ff8157adebf8431b18798d5defeefa60f79ae7c4 Mon Sep 17 00:00:00 2001 From: dpcollins-google <40498610+dpcollins-google@users.noreply.github.com> Date: Mon, 15 Mar 2021 21:53:40 -0400 Subject: [PATCH 0634/2363] fix: update MessageDispatcher to not extend deadlines of messages which arrive early to 60s (#570) * Update MessageDispatcher to not extend deadlines of messages which arrive early to 60s * fix: lint * fix: record minimum value in distribution by default --- .../java/com/google/cloud/pubsub/v1/MessageDispatcher.java | 7 ++++--- .../main/java/com/google/cloud/pubsub/v1/Subscriber.java | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index f0eab3ba66c0..4177c6e01166 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -82,9 +82,10 @@ class MessageDispatcher { private final LinkedBlockingQueue pendingNacks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingReceipts = new LinkedBlockingQueue<>(); - // The deadline should be set before use. Here, set it to something unreasonable, - // so we fail loudly if we mess up. - private final AtomicInteger messageDeadlineSeconds = new AtomicInteger(60); + // Start the deadline at the minimum ack deadline so messages which arrive before this is + // updated will not have a long ack deadline. + private final AtomicInteger messageDeadlineSeconds = + new AtomicInteger(Subscriber.MIN_ACK_DEADLINE_SECONDS); private final AtomicBoolean extendDeadline = new AtomicBoolean(true); private final Lock jobLock; private ScheduledFuture backgroundJob; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 4c3791b3776a..9de0420ea9cf 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -184,9 +184,9 @@ public Void apply(UnaryCallSettings.Builder settingsBuilder) { streamingSubscriberConnections = new ArrayList(numPullers); // We regularly look up the distribution for a good subscription deadline. - // So we seed the distribution with something reasonable to start with. + // So we seed the distribution with the minimum value to start with. // Distribution is percentile-based, so this value will eventually lose importance. - ackLatencyDistribution.record(60); + ackLatencyDistribution.record(MIN_ACK_DEADLINE_SECONDS); } /** From 467563730377b0f9929e148df2fa067667c604fb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 15 Mar 2021 20:49:00 -0700 Subject: [PATCH 0635/2363] chore: release 1.112.0 (#556) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 27 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 +++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 8 files changed, 45 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 70ebb3a1c52d..89420ff1f615 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +## [1.112.0](https://www.github.com/googleapis/java-pubsub/compare/v1.111.4...v1.112.0) (2021-03-16) + + +### Features + +* expose default client configs ([#541](https://www.github.com/googleapis/java-pubsub/issues/541)) ([01e6daf](https://www.github.com/googleapis/java-pubsub/commit/01e6dafb569a37c661463b79f5afbfba4f6d188d)) + + +### Bug Fixes + +* properly shutdown subscriber stub on permanent streaming pull failure ([#539](https://www.github.com/googleapis/java-pubsub/issues/539)) ([adbcc0c](https://www.github.com/googleapis/java-pubsub/commit/adbcc0c6777e35eae24b538e6c48f9ef7485a786)) +* update MessageDispatcher to not extend deadlines of messages which arrive early to 60s ([#570](https://www.github.com/googleapis/java-pubsub/issues/570)) ([e174e20](https://www.github.com/googleapis/java-pubsub/commit/e174e2043f64563f4d2868537aeb90d948233166)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v1.94.3 ([#566](https://www.github.com/googleapis/java-pubsub/issues/566)) ([3f23ac6](https://www.github.com/googleapis/java-pubsub/commit/3f23ac6cda00814f74f2c435dd8a05b70ac69d27)) +* update dependency com.google.cloud:google-cloud-core to v1.94.4 ([#568](https://www.github.com/googleapis/java-pubsub/issues/568)) ([21886d3](https://www.github.com/googleapis/java-pubsub/commit/21886d39cdc2a33275c2061578c877b0fa6aee98)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#564](https://www.github.com/googleapis/java-pubsub/issues/564)) ([0aa4521](https://www.github.com/googleapis/java-pubsub/commit/0aa452121b2fa769221b41c8c1323f3b31b599d1)) +* update dependency com.google.protobuf:protobuf-java-util to v3.15.5 ([#559](https://www.github.com/googleapis/java-pubsub/issues/559)) ([74e6a92](https://www.github.com/googleapis/java-pubsub/commit/74e6a92ca88f006e0fe1a68144ba0cb30a1d140c)) +* update dependency com.google.protobuf:protobuf-java-util to v3.15.6 ([#569](https://www.github.com/googleapis/java-pubsub/issues/569)) ([b6e299f](https://www.github.com/googleapis/java-pubsub/commit/b6e299f6d13dab7d5b2e8c575021371485878bb2)) + + +### Documentation + +* Remove experimental note for schema APIs ([#560](https://www.github.com/googleapis/java-pubsub/issues/560)) ([4b98556](https://www.github.com/googleapis/java-pubsub/commit/4b98556e550802135cfb87d8984f0deec57e8c2e)) + ### [1.111.4](https://www.github.com/googleapis/java-pubsub/compare/v1.111.3...v1.111.4) (2021-02-26) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ea64cce92ad4..f388e0637e27 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.111.5-SNAPSHOT + 1.112.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.5-SNAPSHOT + 1.94.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.5-SNAPSHOT + 1.94.0 com.google.cloud google-cloud-pubsub - 1.111.5-SNAPSHOT + 1.112.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index df03465bbb6b..3be4cb2fee14 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.111.5-SNAPSHOT + 1.112.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.111.5-SNAPSHOT + 1.112.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0d7d46f19aae..4c3f5403c129 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.5-SNAPSHOT + 1.94.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.5-SNAPSHOT + 1.112.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 33d58e8002d6..0c25bd47990d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.111.5-SNAPSHOT + 1.112.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.5-SNAPSHOT + 1.94.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.93.5-SNAPSHOT + 1.94.0 com.google.cloud google-cloud-pubsub - 1.111.5-SNAPSHOT + 1.112.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1a6ae53cc9f7..283decc0d820 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.93.5-SNAPSHOT + 1.94.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.111.5-SNAPSHOT + 1.112.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f2b91ec6cb71..b80d1b8da556 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.111.5-SNAPSHOT + 1.112.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 95b81fc762be..db6d600b17aa 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.93.4:1.93.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.93.4:1.93.5-SNAPSHOT -google-cloud-pubsub:1.111.4:1.111.5-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.0:1.94.0 +grpc-google-cloud-pubsub-v1:1.94.0:1.94.0 +google-cloud-pubsub:1.112.0:1.112.0 \ No newline at end of file From fd44d82ab0d8993321fe4abecdd10a2749152379 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Mar 2021 21:54:00 +0100 Subject: [PATCH 0636/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.112.0 (#573) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fe302c4cc4d3..b0f040ffd8f0 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.111.4 + 1.112.0 From a91f33ebfe70827de790858ba16c6e7f12ce8523 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 16 Mar 2021 14:10:02 -0700 Subject: [PATCH 0637/2363] chore: regenerate README (#574) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-03-16 20:56:13,254 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-16 20:56:14,249 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/c987e1f1-4c0b-4936-9a6f-3287c4115e8f/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 924ca4114966..443fa113510f 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "4bcbde4b8646291eb46a98786fe62c4f118fc3e8" + "sha": "8f94f8a22491e8200e55ed311654f8888639c598" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2e7bd5cc66a3f0b90ce1c150eb35c89eeb9872d6" + "sha": "eda422b90c3dde4a872a13e6b78a8f802c40d0db" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d5545710560a..e25e18f37596 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -40,7 +40,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.111.4 + 1.112.0 ``` @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.111.4' +compile 'com.google.cloud:google-cloud-pubsub:1.112.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.112.0" ``` ## Authentication From d3dad3122b852d2c9d55789d1206ce1b7c6f4306 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Mar 2021 17:45:57 +0100 Subject: [PATCH 0638/2363] deps: update dependency org.apache.avro:avro to v1.10.2 (#575) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b0f040ffd8f0..0e9cc93bf3c0 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -51,7 +51,7 @@ org.apache.avro avro - 1.10.1 + 1.10.2 compile diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b80d1b8da556..54864ffb632d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -50,7 +50,7 @@ org.apache.avro avro - 1.10.1 + 1.10.2 compile diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 827c0e9809c5..ee9249e83bc8 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -62,7 +62,7 @@ org.apache.avro avro - 1.10.1 + 1.10.2 org.xerial.snappy From a64b95e32112aa23a38e286464b049b54e81de95 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Mar 2021 21:08:17 +0100 Subject: [PATCH 0639/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v19.1.0 (#576) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.0.0` -> `19.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/compatibility-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/confidence-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index ee9249e83bc8..5fb65711521d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 19.0.0 + 19.1.0 pom import From 740877f3d16986983c54fcf8056b2cd1a215239f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 17 Mar 2021 13:46:05 -0700 Subject: [PATCH 0640/2363] chore: regenerate README (#577) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-03-17 20:10:39,320 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-17 20:10:40,335 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/f20832c7-e81e-4aff-b46a-013c07e53650/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 443fa113510f..4ec5b11a9036 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "8f94f8a22491e8200e55ed311654f8888639c598" + "sha": "8a8b6b418673ceb3f89924ec1bfe5ebfc24d74fb" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "eda422b90c3dde4a872a13e6b78a8f802c40d0db" + "sha": "78437c732a60c64895778697b078497b0988346c" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e25e18f37596..2121f448dba6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 19.0.0 + 19.1.0 pom import @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:19.0.0') +implementation platform('com.google.cloud:libraries-bom:19.1.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From 77b1a3a7e24dbe14d310ececcbe31f02c7960ab3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Mar 2021 19:04:30 +0100 Subject: [PATCH 0641/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v19.2.1 (#578) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.1.0` -> `19.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/compatibility-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/confidence-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5fb65711521d..21fa9ed762a5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 19.1.0 + 19.2.1 pom import From 77cdf95395f4eeba21962a16654ae932a84f5f2e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 19 Mar 2021 11:44:06 -0700 Subject: [PATCH 0642/2363] chore: regenerate README (#580) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-03-19 18:09:19,168 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-19 18:09:20,123 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/b5856c0c-4ded-4c73-b513-b929a32ca864/targets - [ ] To automatically regenerate this PR, check this box. --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 4ec5b11a9036..0ff289483f26 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "8a8b6b418673ceb3f89924ec1bfe5ebfc24d74fb" + "sha": "9eec402a711b94f8ece01537b9e048319ff3e400" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "78437c732a60c64895778697b078497b0988346c" + "sha": "8b13da943497f75c5303700bff5aabdd85d939e0" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2121f448dba6..97469c950903 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 19.1.0 + 19.2.1 pom import @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:19.1.0') +implementation platform('com.google.cloud:libraries-bom:19.2.1') compile 'com.google.cloud:google-cloud-pubsub' ``` From e5ff5187b4d9baffcbbb5daa30dc42659bce00ea Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Mar 2021 16:10:34 -0700 Subject: [PATCH 0643/2363] chore(java): detect sample-secrets in build.sh (#581) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/7bba1b03-3192-4d12-a75e-c6fde3ae4dde/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/bb854b6c048619e3be4e8b8ce8ed10aa74ea78ef --- java-pubsub/.kokoro/build.sh | 5 +++++ java-pubsub/synth.metadata | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index fdfa0c36e151..88a113efd346 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -79,6 +79,11 @@ samples) if [[ -f ${SAMPLES_DIR}/pom.xml ]] then + for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do + [[ -f "$FILE" ]] || continue + source "$FILE" + done + pushd ${SAMPLES_DIR} mvn -B \ -Penable-samples \ diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 3bc62feecde2..c0b4175283ba 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "21886d39cdc2a33275c2061578c877b0fa6aee98" + "sha": "116396f587e2a84cb89c684b7f2c6708237dfaf2" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0b064d767537e0675fc053e53fca473c5c701fb8" + "sha": "bb854b6c048619e3be4e8b8ce8ed10aa74ea78ef" } } ], From 975c6b3899fb3c4e70ab2fcb0029a62ed09bdae7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 29 Mar 2021 15:54:04 -0700 Subject: [PATCH 0644/2363] chore: remove staging bucket v2 (#583) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/7b181ea6-cd1c-49bd-bb79-2996c12fa815/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/572ef8f70edd9041f5bcfa71511aed6aecfc2098 --- java-pubsub/.kokoro/release/publish_javadoc.sh | 5 ----- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc.sh b/java-pubsub/.kokoro/release/publish_javadoc.sh index 8e29d1dc65ff..0c519cf65ca6 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc.sh @@ -24,11 +24,6 @@ if [[ -z "${STAGING_BUCKET}" ]]; then exit 1 fi -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - # work from the git root directory pushd $(dirname "$0")/../../ diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index c0b4175283ba..492ffc4e125c 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "116396f587e2a84cb89c684b7f2c6708237dfaf2" + "sha": "134273dc751e3bfb23c77384c8173c7b693a9757" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "bb854b6c048619e3be4e8b8ce8ed10aa74ea78ef" + "sha": "572ef8f70edd9041f5bcfa71511aed6aecfc2098" } } ], From 4718e426893271d8df8c039be37e7fdb23e1474c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Apr 2021 23:53:28 +0200 Subject: [PATCH 0645/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.15.7 (#586) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0e9cc93bf3c0..12e3c4775196 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.15.6 + 3.15.7 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 54864ffb632d..f41abad0fa6f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.15.6 + 3.15.7 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 21fa9ed762a5..77c394305c63 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.15.6 + 3.15.7 From 6ec636537edd99063935eb1475aab2ba5a3ff4e0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Apr 2021 23:53:44 +0200 Subject: [PATCH 0646/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.6.0 (#585) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0c25bd47990d..6259d2fd76d2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -94,7 +94,7 @@ com.google.errorprone error_prone_annotations - 2.5.1 + 2.6.0 From ac964e3c0516178f0fd1c904ab361ce181dc6ff0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 19:52:04 +0200 Subject: [PATCH 0647/2363] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.22 (#588) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.21` -> `1.0.22` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/compatibility-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/confidence-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 12e3c4775196..f4aeeb3ff625 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 4e20813d128f..88b7d71c90f6 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -33,7 +33,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f41abad0fa6f..d5fce058edda 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 77c394305c63..72bc678b12df 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 From d6a5cba2b6488084192aef2d05b8d675ecdec1cf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 20:58:09 +0200 Subject: [PATCH 0648/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.94.6 (#590) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.94.4` -> `1.94.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.6/compatibility-slim/1.94.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.6/confidence-slim/1.94.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v1.94.6`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1946-httpswwwgithubcomgoogleapisjava-corecomparev1945v1946-2021-04-09) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.5...v1.94.6) ### [`v1.94.5`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1945-httpswwwgithubcomgoogleapisjava-corecomparev1944v1945-2021-04-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.4...v1.94.5)
    --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f4aeeb3ff625..219e177c6a62 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.94.4 + 1.94.6 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d5fce058edda..807465be5b7e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.94.4 + 1.94.6 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 72bc678b12df..63ff323e6ade 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.94.4 + 1.94.6 tests From fa5644f843acfac7a7709abcabf512f411b39f97 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 22:38:23 +0200 Subject: [PATCH 0649/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 (#592) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.20.1` -> `0.21.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/compatibility-slim/0.20.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/confidence-slim/0.20.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.21.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0210-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0201v0210-2021-04-09) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.20.1...v0.21.0) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.25.0 ([#​310](https://www.github.com/googleapis/java-shared-dependencies/issues/310)) ([8f3a0f0](https://www.github.com/googleapis/java-shared-dependencies/commit/8f3a0f002b787f7b27cfe031654fa20bf342f839)) - update dependency com.google.auth:google-auth-library-bom to v0.25.2 ([#​311](https://www.github.com/googleapis/java-shared-dependencies/issues/311)) ([6c47a3e](https://www.github.com/googleapis/java-shared-dependencies/commit/6c47a3edbd9da04ba255487a66c0f3a41393217d)) - update dependency com.google.errorprone:error_prone_annotations to v2.6.0 ([#​315](https://www.github.com/googleapis/java-shared-dependencies/issues/315)) ([dc254ca](https://www.github.com/googleapis/java-shared-dependencies/commit/dc254ca7359b68fe9411f7b96130ffb416b45c6f)) - update dependency com.google.http-client:google-http-client-bom to v1.39.1 ([#​309](https://www.github.com/googleapis/java-shared-dependencies/issues/309)) ([37225e2](https://www.github.com/googleapis/java-shared-dependencies/commit/37225e2d1b32a618765391720b57ff29e7b8f7f9)) - update dependency com.google.http-client:google-http-client-bom to v1.39.2 ([#​321](https://www.github.com/googleapis/java-shared-dependencies/issues/321)) ([273c66d](https://www.github.com/googleapis/java-shared-dependencies/commit/273c66d374f7cd6040aac2f302fd1c1dc0f4a1c0)) - update dependency com.google.protobuf:protobuf-bom to v3.15.6 ([#​308](https://www.github.com/googleapis/java-shared-dependencies/issues/308)) ([b29dd05](https://www.github.com/googleapis/java-shared-dependencies/commit/b29dd0535f02b56607f64ba69e85d4d468902789)) - update dependency com.google.protobuf:protobuf-bom to v3.15.7 ([#​316](https://www.github.com/googleapis/java-shared-dependencies/issues/316)) ([9c00d77](https://www.github.com/googleapis/java-shared-dependencies/commit/9c00d7753c1f7b963deb9ad69dcfe24ba28da5a2)) - update dependency com.google.protobuf:protobuf-bom to v3.15.8 ([#​319](https://www.github.com/googleapis/java-shared-dependencies/issues/319)) ([15e5ae2](https://www.github.com/googleapis/java-shared-dependencies/commit/15e5ae2ef46eedcd790ffd8644677d36db5c63f9)) - update dependency io.grpc:grpc-bom to v1.37.0 ([#​313](https://www.github.com/googleapis/java-shared-dependencies/issues/313)) ([c599351](https://www.github.com/googleapis/java-shared-dependencies/commit/c5993511c7305e1ced42d73552a93a25dc5e1ac1)) - update gax.version to v1.63.0 ([#​318](https://www.github.com/googleapis/java-shared-dependencies/issues/318)) ([ba709da](https://www.github.com/googleapis/java-shared-dependencies/commit/ba709da6fb0e9bcfc83e663588336598737b46e4)) - update google.core.version to v1.94.4 ([#​305](https://www.github.com/googleapis/java-shared-dependencies/issues/305)) ([0d38f4c](https://www.github.com/googleapis/java-shared-dependencies/commit/0d38f4c9ffadcfd9446712b8bf0729399b0c9e91)) - update google.core.version to v1.94.5 ([#​320](https://www.github.com/googleapis/java-shared-dependencies/issues/320)) ([3439721](https://www.github.com/googleapis/java-shared-dependencies/commit/3439721da83a8b92d9c4b6ecfd158cfb1e1a0503)) - update guava to 30.1.1-android ([#​322](https://www.github.com/googleapis/java-shared-dependencies/issues/322)) ([a6b5d3b](https://www.github.com/googleapis/java-shared-dependencies/commit/a6b5d3b8ccfc352bf0d1678952ce3cd8b7a8361e)) - update iam.version to v1.0.11 ([#​304](https://www.github.com/googleapis/java-shared-dependencies/issues/304)) ([95a5264](https://www.github.com/googleapis/java-shared-dependencies/commit/95a526442b3d24c83782523d38dd3931e828d757)) ##### [0.20.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.20.0...v0.20.1) (2021-03-09) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.2 ([#​301](https://www.github.com/googleapis/java-shared-dependencies/issues/301)) ([7c01eba](https://www.github.com/googleapis/java-shared-dependencies/commit/7c01ebabb6fd65b7404e56651b0ba27f505bb033)) - update dependency com.google.api-client:google-api-client-bom to v1.31.3 ([#​295](https://www.github.com/googleapis/java-shared-dependencies/issues/295)) ([a0774e9](https://www.github.com/googleapis/java-shared-dependencies/commit/a0774e9d62d00614142bc4c14214a83dda66d4ad)) - update dependency com.google.api.grpc:grpc-google-iam-v1 to v1.0.10 ([#​292](https://www.github.com/googleapis/java-shared-dependencies/issues/292)) ([b629789](https://www.github.com/googleapis/java-shared-dependencies/commit/b629789e3a1cc9a7308b829c034b09b06e24fc07)) - update dependency com.google.auth:google-auth-library-bom to v0.24.1 ([#​293](https://www.github.com/googleapis/java-shared-dependencies/issues/293)) ([d85ec34](https://www.github.com/googleapis/java-shared-dependencies/commit/d85ec347ccdd14dfdab10d365d2c2f8df3035e4d)) - update dependency com.google.protobuf:protobuf-bom to v3.15.3 ([#​294](https://www.github.com/googleapis/java-shared-dependencies/issues/294)) ([58c01aa](https://www.github.com/googleapis/java-shared-dependencies/commit/58c01aa076e2c4954986185f913bac2c51a1e6fb)) - update dependency com.google.protobuf:protobuf-bom to v3.15.5 ([#​302](https://www.github.com/googleapis/java-shared-dependencies/issues/302)) ([e9d5e6e](https://www.github.com/googleapis/java-shared-dependencies/commit/e9d5e6ee6039915da186315ceada673ac37b88d3)) - update google.core.version to v1.94.2 ([#​296](https://www.github.com/googleapis/java-shared-dependencies/issues/296)) ([af83b90](https://www.github.com/googleapis/java-shared-dependencies/commit/af83b901be0c03d507189999215d35345602fad7)) - update google.core.version to v1.94.3 ([#​300](https://www.github.com/googleapis/java-shared-dependencies/issues/300)) ([3e73176](https://www.github.com/googleapis/java-shared-dependencies/commit/3e73176af0b07dfe621163b301174b5b5820dfa2))
    --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6259d2fd76d2..ebdd3c684ff9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.20.1 + 0.21.0 pom import From f650890a0f25220676428beb2f64460e3ddeb44c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 22:56:11 +0200 Subject: [PATCH 0650/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.15.8 (#589) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.protobuf:protobuf-java-util | `3.15.7` -> `3.15.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.15.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.15.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.15.8/compatibility-slim/3.15.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.15.8/confidence-slim/3.15.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 219e177c6a62..0bf97ba71865 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.15.7 + 3.15.8 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 807465be5b7e..1627f1097527 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.15.7 + 3.15.8 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 63ff323e6ade..c62c58282251 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.15.7 + 3.15.8 From 9e3b6b8a4067172f07b7d0e3ac22545199ee1958 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 12 Apr 2021 07:22:27 -0700 Subject: [PATCH 0651/2363] build(java): skip javadoc tests during dependencies test (#595) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/c591f580-c8f1-4028-b2d9-d7e22867b894/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/5b0e1592dd7d70b485e157ea4b3eb1704ecbd015 --- java-pubsub/.kokoro/dependencies.sh | 1 + java-pubsub/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index 0fb8c8436ccc..59d2aafc790f 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -33,6 +33,7 @@ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" retry_with_backoff 3 10 \ mvn install -B -V -ntp \ -DskipTests=true \ + -Dmaven.javadoc.skip=true \ -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 492ffc4e125c..dd4c11fda090 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "134273dc751e3bfb23c77384c8173c7b693a9757" + "sha": "8adde2d6741c8bc264f00e34255368ef527aa9ce" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "572ef8f70edd9041f5bcfa71511aed6aecfc2098" + "sha": "5b0e1592dd7d70b485e157ea4b3eb1704ecbd015" } } ], From bf08cbfda0fef21457e2ac1260fb9d6b4a034f8d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 12 Apr 2021 08:08:04 -0700 Subject: [PATCH 0652/2363] chore: regenerate README (#596) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-04-12 14:26:39,038 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-12 14:26:40,279 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/2feb5ddc-6ec1-4c79-941c-350ce6abbc83/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 0ff289483f26..39bf2d919a28 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "9eec402a711b94f8ece01537b9e048319ff3e400" + "sha": "972a286589048ec83a221501c4e2e5b39224a034" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8b13da943497f75c5303700bff5aabdd85d939e0" + "sha": "0a071b3460344886297a304253bf924aa68ddb7e" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 97469c950903..0ef8fa518edf 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:19.2.1') +implementation platform('com.google.cloud:libraries-bom:20.0.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From 32eafbe051ace7dcf44e115f8d0682f8e99d03e7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 17:34:06 +0200 Subject: [PATCH 0653/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v20 (#598) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.2.1` -> `20.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/compatibility-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/confidence-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c62c58282251..04e46be8ef51 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 19.2.1 + 20.0.0 pom import From e5582d5ba18de7399e16f88f0f97d0777724365d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 17:34:26 +0200 Subject: [PATCH 0654/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.94.7 (#597) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.94.6` -> `1.94.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/compatibility-slim/1.94.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.7/confidence-slim/1.94.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v1.94.7`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1947-httpswwwgithubcomgoogleapisjava-corecomparev1946v1947-2021-04-12) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.6...v1.94.7)
    --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0bf97ba71865..8e985a22c524 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.94.6 + 1.94.7 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1627f1097527..c1d53a26ebc8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.94.6 + 1.94.7 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 04e46be8ef51..9d0fa5478e26 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.94.6 + 1.94.7 tests From d3b6a99c25ec414de2e8c54259892e500e0054c9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 12 Apr 2021 09:08:21 -0700 Subject: [PATCH 0655/2363] chore: regenerate README (#599) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-04-12 15:38:11,122 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-12 15:38:12,490 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/927a9b15-a568-4b0b-9d83-2e36c06af793/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 39bf2d919a28..8c2111596619 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "972a286589048ec83a221501c4e2e5b39224a034" + "sha": "312966d58c494864d57821ed1a75c84fd3de1aab" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 0ef8fa518edf..484748b9ab5c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 19.2.1 + 20.0.0 pom import From 3d26612982fc237800ca8e9d3e4995849ad8fa9f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Apr 2021 20:14:17 +0000 Subject: [PATCH 0656/2363] chore: release 1.112.1-SNAPSHOT (#572) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f388e0637e27..09a37fd7cfec 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.0 + 1.112.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.0 + 1.94.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.0 + 1.94.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.0 + 1.112.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3be4cb2fee14..df126026f07e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.0 + 1.112.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.0 + 1.112.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 4c3f5403c129..93f39238b12b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.0 + 1.94.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.0 + 1.112.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ebdd3c684ff9..50f9e5eb9248 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.0 + 1.112.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.0 + 1.94.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.0 + 1.94.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.0 + 1.112.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 283decc0d820..aaaec41f07f8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.0 + 1.94.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.0 + 1.112.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c1d53a26ebc8..c9152832a073 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.0 + 1.112.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index db6d600b17aa..51d736a332ea 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.0:1.94.0 -grpc-google-cloud-pubsub-v1:1.94.0:1.94.0 -google-cloud-pubsub:1.112.0:1.112.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.0:1.94.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.94.0:1.94.1-SNAPSHOT +google-cloud-pubsub:1.112.0:1.112.1-SNAPSHOT \ No newline at end of file From 66b2c0901a8e0ed746ec2685ab3fb0b1e59e2293 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Apr 2021 20:36:22 +0000 Subject: [PATCH 0657/2363] chore: release 1.112.1 (#600) :robot: I have created a release \*beep\* \*boop\* --- ### [1.112.1](https://www.github.com/googleapis/java-pubsub/compare/v1.112.0...v1.112.1) (2021-04-12) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v1.94.6 ([#590](https://www.github.com/googleapis/java-pubsub/issues/590)) ([d6a5cba](https://www.github.com/googleapis/java-pubsub/commit/d6a5cba2b6488084192aef2d05b8d675ecdec1cf)) * update dependency com.google.cloud:google-cloud-core to v1.94.7 ([#597](https://www.github.com/googleapis/java-pubsub/issues/597)) ([e5582d5](https://www.github.com/googleapis/java-pubsub/commit/e5582d5ba18de7399e16f88f0f97d0777724365d)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#592](https://www.github.com/googleapis/java-pubsub/issues/592)) ([fa5644f](https://www.github.com/googleapis/java-pubsub/commit/fa5644f843acfac7a7709abcabf512f411b39f97)) * update dependency com.google.errorprone:error_prone_annotations to v2.6.0 ([#585](https://www.github.com/googleapis/java-pubsub/issues/585)) ([6ec6365](https://www.github.com/googleapis/java-pubsub/commit/6ec636537edd99063935eb1475aab2ba5a3ff4e0)) * update dependency com.google.protobuf:protobuf-java-util to v3.15.7 ([#586](https://www.github.com/googleapis/java-pubsub/issues/586)) ([4718e42](https://www.github.com/googleapis/java-pubsub/commit/4718e426893271d8df8c039be37e7fdb23e1474c)) * update dependency com.google.protobuf:protobuf-java-util to v3.15.8 ([#589](https://www.github.com/googleapis/java-pubsub/issues/589)) ([f650890](https://www.github.com/googleapis/java-pubsub/commit/f650890a0f25220676428beb2f64460e3ddeb44c)) * update dependency org.apache.avro:avro to v1.10.2 ([#575](https://www.github.com/googleapis/java-pubsub/issues/575)) ([d3dad31](https://www.github.com/googleapis/java-pubsub/commit/d3dad3122b852d2c9d55789d1206ce1b7c6f4306)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 89420ff1f615..6f31c6eb5de7 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +### [1.112.1](https://www.github.com/googleapis/java-pubsub/compare/v1.112.0...v1.112.1) (2021-04-12) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v1.94.6 ([#590](https://www.github.com/googleapis/java-pubsub/issues/590)) ([902b149](https://www.github.com/googleapis/java-pubsub/commit/902b149b04d5d74b84051c4b09e54b14df20f6a2)) +* update dependency com.google.cloud:google-cloud-core to v1.94.7 ([#597](https://www.github.com/googleapis/java-pubsub/issues/597)) ([312966d](https://www.github.com/googleapis/java-pubsub/commit/312966d58c494864d57821ed1a75c84fd3de1aab)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#592](https://www.github.com/googleapis/java-pubsub/issues/592)) ([f81b792](https://www.github.com/googleapis/java-pubsub/commit/f81b7929659b03d620789fef5dfc9e8fcb418c66)) +* update dependency com.google.errorprone:error_prone_annotations to v2.6.0 ([#585](https://www.github.com/googleapis/java-pubsub/issues/585)) ([8316bce](https://www.github.com/googleapis/java-pubsub/commit/8316bced8cf506a470c2f07cc578eda86305dd4e)) +* update dependency com.google.protobuf:protobuf-java-util to v3.15.7 ([#586](https://www.github.com/googleapis/java-pubsub/issues/586)) ([616e77d](https://www.github.com/googleapis/java-pubsub/commit/616e77df843a70edf7d5d972156b2e2371d928e4)) +* update dependency com.google.protobuf:protobuf-java-util to v3.15.8 ([#589](https://www.github.com/googleapis/java-pubsub/issues/589)) ([8adde2d](https://www.github.com/googleapis/java-pubsub/commit/8adde2d6741c8bc264f00e34255368ef527aa9ce)) +* update dependency org.apache.avro:avro to v1.10.2 ([#575](https://www.github.com/googleapis/java-pubsub/issues/575)) ([acd0c19](https://www.github.com/googleapis/java-pubsub/commit/acd0c1953aa4728699a03566632f4b1bf8bbe177)) + ## [1.112.0](https://www.github.com/googleapis/java-pubsub/compare/v1.111.4...v1.112.0) (2021-03-16) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 09a37fd7cfec..250f6d6ae86f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.1-SNAPSHOT + 1.112.1 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.1-SNAPSHOT + 1.94.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.1-SNAPSHOT + 1.94.1 com.google.cloud google-cloud-pubsub - 1.112.1-SNAPSHOT + 1.112.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index df126026f07e..fc5a9ad2a2de 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.1-SNAPSHOT + 1.112.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.1-SNAPSHOT + 1.112.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 93f39238b12b..fb27abbf08cb 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.1-SNAPSHOT + 1.94.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.1-SNAPSHOT + 1.112.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 50f9e5eb9248..4d6afbd0aec8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.1-SNAPSHOT + 1.112.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.1-SNAPSHOT + 1.94.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.1-SNAPSHOT + 1.94.1 com.google.cloud google-cloud-pubsub - 1.112.1-SNAPSHOT + 1.112.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index aaaec41f07f8..a5fc1bee0973 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.1-SNAPSHOT + 1.94.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.1-SNAPSHOT + 1.112.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c9152832a073..c10c9320ee50 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.1-SNAPSHOT + 1.112.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 51d736a332ea..aafd7951a2b6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.0:1.94.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.94.0:1.94.1-SNAPSHOT -google-cloud-pubsub:1.112.0:1.112.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.1:1.94.1 +grpc-google-cloud-pubsub-v1:1.94.1:1.94.1 +google-cloud-pubsub:1.112.1:1.112.1 \ No newline at end of file From 03b7d31b1d48fa0ecb14754603eb252694d7f152 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Apr 2021 20:58:17 +0000 Subject: [PATCH 0658/2363] chore: release 1.112.2-SNAPSHOT (#601) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 250f6d6ae86f..58340ae68ff9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.1 + 1.112.2-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.1 + 1.94.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.1 + 1.94.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.1 + 1.112.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index fc5a9ad2a2de..2c2fd50984b7 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.1 + 1.112.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.1 + 1.112.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fb27abbf08cb..b3ca8f7b7271 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.1 + 1.94.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.1 + 1.112.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4d6afbd0aec8..5a473d844cac 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.1 + 1.112.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.1 + 1.94.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.1 + 1.94.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.1 + 1.112.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a5fc1bee0973..25c01e7f9bc1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.1 + 1.94.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.1 + 1.112.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c10c9320ee50..ca1a008b62a1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.1 + 1.112.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index aafd7951a2b6..ffbc67bff222 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.1:1.94.1 -grpc-google-cloud-pubsub-v1:1.94.1:1.94.1 -google-cloud-pubsub:1.112.1:1.112.1 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.1:1.94.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.94.1:1.94.2-SNAPSHOT +google-cloud-pubsub:1.112.1:1.112.2-SNAPSHOT \ No newline at end of file From a470f4f4a269d0cc865541a8930975fd91458281 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 13 Apr 2021 08:38:13 -0700 Subject: [PATCH 0659/2363] fix: typo (#603) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/66858d90-5054-4335-bff1-f1d5a9229540/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/082e1ca0863b13ada8594fe91845380765da5b70 --- java-pubsub/.kokoro/build.sh | 2 +- java-pubsub/synth.metadata | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 88a113efd346..9d2d471eee9a 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -37,7 +37,7 @@ retry_with_backoff 3 10 \ -Dgcloud.download.skip=true \ -T 1C -# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it +# if GOOGLE_APPLICATION_CREDENTIALS is specified as a relative path, prepend Kokoro root directory onto it if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS}) fi diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index dd4c11fda090..c87a9bf92310 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "8adde2d6741c8bc264f00e34255368ef527aa9ce" + "sha": "77e077703c1f8f2d4a4da5357966dd924979dab2" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5b0e1592dd7d70b485e157ea4b3eb1704ecbd015" + "sha": "082e1ca0863b13ada8594fe91845380765da5b70" } } ], @@ -45,6 +45,7 @@ ".github/readme/synth.py", ".github/release-please.yml", ".github/snippet-bot.yml", + ".github/sync-repo-settings.yaml", ".github/trusted-contribution.yml", ".github/workflows/approve-readme.yaml", ".github/workflows/auto-release.yaml", From 3d5ffac827b7bea42711af809d0c9ea4dcbe7f88 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 13 Apr 2021 09:18:05 -0700 Subject: [PATCH 0660/2363] chore: regenerate README (#605) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-04-13 15:40:37,544 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-13 15:40:38,819 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/65997f42-04f6-4228-af21-da9874ff7701/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 8c2111596619..ab18aee1afe8 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "312966d58c494864d57821ed1a75c84fd3de1aab" + "sha": "60b087d2e2afbadaff5dd0a3b946d46b61acbf95" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0a071b3460344886297a304253bf924aa68ddb7e" + "sha": "082e1ca0863b13ada8594fe91845380765da5b70" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 484748b9ab5c..7ccfaee96b8a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.112.0' +compile 'com.google.cloud:google-cloud-pubsub:1.112.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.112.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.112.1" ``` ## Authentication From 58fae2c420292e60c2a0c09da23241ae902e4b7c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Apr 2021 03:00:13 +0200 Subject: [PATCH 0661/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.112.1 (#602) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8e985a22c524..564841647e09 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.112.0 + 1.112.1 From 17ebec3ece9580620642b6448b70a78fce0aa4be Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 14 Apr 2021 08:00:10 -0700 Subject: [PATCH 0662/2363] chore: regenerate README (#606) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-04-14 01:02:40,166 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-14 01:02:41,402 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/5fd74b66-c221-4dff-8bc3-eb92012515c4/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index ab18aee1afe8..4fc82260ea0d 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "60b087d2e2afbadaff5dd0a3b946d46b61acbf95" + "sha": "a0b474aa2e675f3b9ed6bf06ecb7f5768c2dea7d" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7ccfaee96b8a..53f071a819de 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -40,7 +40,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.112.0 + 1.112.1 ``` From e16d484f3f615a141050104932b6ce157cb417e8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Apr 2021 23:14:08 +0200 Subject: [PATCH 0663/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.11.1 (#607) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.11.0` -> `0.11.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/compatibility-slim/0.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/confidence-slim/0.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v0.11.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0111-httpswwwgithubcomgoogleapisjava-shared-configcomparev0110v0111-2021-04-14) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.11.0...v0.11.1)
    --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 58340ae68ff9..7c3ca79d57f7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.11.0 + 0.11.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5a473d844cac..0c9be36e88ed 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.0 + 0.11.1 From 79853d62bb1c1880a5d05f4be1bc3f1db984c0fb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Apr 2021 08:32:03 -0700 Subject: [PATCH 0664/2363] fix: release scripts from issuing overlapping phases (#610) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/757ae8b9-aff7-4749-9e58-9de4e00b59db/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d --- java-pubsub/.kokoro/release/snapshot.sh | 2 +- java-pubsub/.kokoro/release/stage.sh | 2 +- java-pubsub/synth.metadata | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.kokoro/release/snapshot.sh b/java-pubsub/.kokoro/release/snapshot.sh index 098168a7373c..1f55b77024d8 100755 --- a/java-pubsub/.kokoro/release/snapshot.sh +++ b/java-pubsub/.kokoro/release/snapshot.sh @@ -25,7 +25,7 @@ grep SNAPSHOT versions.txt setup_environment_secrets create_settings_xml_file "settings.xml" -mvn clean install deploy -B \ +mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DperformRelease=true \ -Dgpg.executable=gpg \ diff --git a/java-pubsub/.kokoro/release/stage.sh b/java-pubsub/.kokoro/release/stage.sh index 16126d2eb53f..8a1033843cb1 100755 --- a/java-pubsub/.kokoro/release/stage.sh +++ b/java-pubsub/.kokoro/release/stage.sh @@ -29,7 +29,7 @@ create_settings_xml_file "settings.xml" # attempt to stage 3 times with exponential backoff (starting with 10 seconds) retry_with_backoff 3 10 \ - mvn clean install deploy -B \ + mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DskipTests=true \ -DperformRelease=true \ diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index c87a9bf92310..72a860efc545 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "77e077703c1f8f2d4a4da5357966dd924979dab2" + "sha": "861e236ea07a26f641f94de82ad781ad9322bfdc" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "082e1ca0863b13ada8594fe91845380765da5b70" + "sha": "8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d" } } ], From e7c05c8f0862ae9cffa4a942d4d2372ad629f602 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Apr 2021 16:44:18 +0200 Subject: [PATCH 0665/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v20.1.0 (#611) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.0.0` -> `20.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/compatibility-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/confidence-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9d0fa5478e26..9d0068805e28 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 20.0.0 + 20.1.0 pom import From 60ae75afe7dd4f504ca4ceb72a69a62418036138 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 19 Apr 2021 09:02:07 -0700 Subject: [PATCH 0666/2363] chore: regenerate README (#613) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-04-19 14:46:46,687 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-19 14:46:48,187 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/aeb603ba-6d6d-4ad3-9464-3ee4cb9000c8/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 4fc82260ea0d..44d931506bea 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "a0b474aa2e675f3b9ed6bf06ecb7f5768c2dea7d" + "sha": "6ba803b3c62e6951297d09f4a749a9094a0a7d24" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "082e1ca0863b13ada8594fe91845380765da5b70" + "sha": "ff6b759fcb58f216f62b48d5be0bb85fafbc3bb2" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 53f071a819de..a142169200fb 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.0.0 + 20.1.0 pom import @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.0.0') +implementation platform('com.google.cloud:libraries-bom:20.1.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From 3c3351f6613ca481034e0c0181cb8ca355715111 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Apr 2021 17:28:12 +0200 Subject: [PATCH 0667/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 (#614) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.21.0` -> `0.21.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/compatibility-slim/0.21.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/confidence-slim/0.21.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v0.21.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0211-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0210v0211-2021-04-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.21.0...v0.21.1)
    --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0c9be36e88ed..c2e6a305a310 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.21.0 + 0.21.1 pom import From 5ce5f98c535e353ef3e98e3c54a78bc497417683 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Apr 2021 20:46:09 +0200 Subject: [PATCH 0668/2363] deps: update dependency org.easymock:easymock to v4.3 (#612) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | org.easymock:easymock | `4.2` -> `4.3` | [![age](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/4.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/4.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/4.3/compatibility-slim/4.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/4.3/confidence-slim/4.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c2e6a305a310..8acc52a46950 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -107,7 +107,7 @@ org.easymock easymock - 4.2 + 4.3 test From 1dcc2c907156279c5f79c506d482ed54f18e4541 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Apr 2021 02:18:12 +0200 Subject: [PATCH 0669/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.11.2 (#623) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.11.1` -> `0.11.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/compatibility-slim/0.11.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/confidence-slim/0.11.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v0.11.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0112-httpswwwgithubcomgoogleapisjava-shared-configcomparev0111v0112-2021-04-22) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.11.1...v0.11.2)
    --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7c3ca79d57f7..2d3019db0231 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.11.1 + 0.11.2 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8acc52a46950..e0c49aae5366 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.1 + 0.11.2 From e9a2acc3da5ade9484b5d516082fc5ab624dfe14 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 24 Apr 2021 02:12:07 +0200 Subject: [PATCH 0670/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1 (#626) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.21.1` -> `1.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/compatibility-slim/0.21.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/confidence-slim/0.21.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v1.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​100-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0211v100-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.21.1...v1.0.0) ##### Features - promote to 1.0.0 ([#​341](https://www.github.com/googleapis/java-shared-dependencies/issues/341)) ([eddce7b](https://www.github.com/googleapis/java-shared-dependencies/commit/eddce7bda196d757c0bb93a05574cc742e3d7ff6)) ##### Dependencies - update dependency com.google.api:api-common to v1.10.3 ([#​340](https://www.github.com/googleapis/java-shared-dependencies/issues/340)) ([6a7fc33](https://www.github.com/googleapis/java-shared-dependencies/commit/6a7fc33548c199d5f310b3ee5024907882d22726)) - update dependency com.google.auth:google-auth-library-bom to v0.25.4 ([#​334](https://www.github.com/googleapis/java-shared-dependencies/issues/334)) ([e5c747d](https://www.github.com/googleapis/java-shared-dependencies/commit/e5c747d245194effc258ae706e7764153010cd53)) - update dependency com.google.auth:google-auth-library-bom to v0.25.5 ([#​338](https://www.github.com/googleapis/java-shared-dependencies/issues/338)) ([ffa1df5](https://www.github.com/googleapis/java-shared-dependencies/commit/ffa1df5497b5365f520b665a202b8caf6521fc9d)) - update dependency org.threeten:threetenbp to v1.5.1 ([#​335](https://www.github.com/googleapis/java-shared-dependencies/issues/335)) ([c8c6df4](https://www.github.com/googleapis/java-shared-dependencies/commit/c8c6df48e7f80944544939e502f4f08543af2631)) - update google.core.version to v1.94.8 ([#​342](https://www.github.com/googleapis/java-shared-dependencies/issues/342)) ([d946dd2](https://www.github.com/googleapis/java-shared-dependencies/commit/d946dd2299aac32f969a2226a1391e1e73f00e62)) ##### [0.21.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.21.0...v0.21.1) (2021-04-19) ##### Bug Fixes - release scripts from issuing overlapping phases ([#​332](https://www.github.com/googleapis/java-shared-dependencies/issues/332)) ([e289825](https://www.github.com/googleapis/java-shared-dependencies/commit/e289825a3bc45b4796db7ce4347f8d9d9251a410)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.3 ([#​329](https://www.github.com/googleapis/java-shared-dependencies/issues/329)) ([a77b4fc](https://www.github.com/googleapis/java-shared-dependencies/commit/a77b4fcc2ea5caf366c76a4698bac6d4c9abc92e)) - update dependency com.google.api-client:google-api-client-bom to v1.31.4 ([#​326](https://www.github.com/googleapis/java-shared-dependencies/issues/326)) ([409d24f](https://www.github.com/googleapis/java-shared-dependencies/commit/409d24f8a0cac30e41ca45eb2711aecb335d70dd)) - update dependency com.google.auth:google-auth-library-bom to v0.25.3 ([#​328](https://www.github.com/googleapis/java-shared-dependencies/issues/328)) ([88cfc08](https://www.github.com/googleapis/java-shared-dependencies/commit/88cfc08952881200e23ed95cfa2eebad85ec7ab3)) - update google.core.version to v1.94.7 ([#​324](https://www.github.com/googleapis/java-shared-dependencies/issues/324)) ([0412c88](https://www.github.com/googleapis/java-shared-dependencies/commit/0412c88468940c1182bc0761bfe269a6688fe7b7)) - update iam.version to v1.0.12 ([#​327](https://www.github.com/googleapis/java-shared-dependencies/issues/327)) ([548d5f5](https://www.github.com/googleapis/java-shared-dependencies/commit/548d5f53c4f264f1cbb9ca72fdfe4608ab16b480))
    --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e0c49aae5366..c35ec5065b7e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.21.1 + 1.0.0 pom import From 4354b1987b705a94afd60c53667c7fc1456a9309 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 17:56:02 +0000 Subject: [PATCH 0671/2363] chore: release 1.112.2 (#604) :robot: I have created a release \*beep\* \*boop\* --- ### [1.112.2](https://www.github.com/googleapis/java-pubsub/compare/v1.112.1...v1.112.2) (2021-04-24) ### Bug Fixes * release scripts from issuing overlapping phases ([#610](https://www.github.com/googleapis/java-pubsub/issues/610)) ([79853d6](https://www.github.com/googleapis/java-pubsub/commit/79853d62bb1c1880a5d05f4be1bc3f1db984c0fb)) * typo ([#603](https://www.github.com/googleapis/java-pubsub/issues/603)) ([a470f4f](https://www.github.com/googleapis/java-pubsub/commit/a470f4f4a269d0cc865541a8930975fd91458281)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#614](https://www.github.com/googleapis/java-pubsub/issues/614)) ([3c3351f](https://www.github.com/googleapis/java-pubsub/commit/3c3351f6613ca481034e0c0181cb8ca355715111)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#626](https://www.github.com/googleapis/java-pubsub/issues/626)) ([e9a2acc](https://www.github.com/googleapis/java-pubsub/commit/e9a2acc3da5ade9484b5d516082fc5ab624dfe14)) * update dependency org.easymock:easymock to v4.3 ([#612](https://www.github.com/googleapis/java-pubsub/issues/612)) ([5ce5f98](https://www.github.com/googleapis/java-pubsub/commit/5ce5f98c535e353ef3e98e3c54a78bc497417683)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 15 +++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 33 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 6f31c6eb5de7..793892d2b2a3 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +### [1.112.2](https://www.github.com/googleapis/java-pubsub/compare/v1.112.1...v1.112.2) (2021-04-24) + + +### Bug Fixes + +* release scripts from issuing overlapping phases ([#610](https://www.github.com/googleapis/java-pubsub/issues/610)) ([70246e8](https://www.github.com/googleapis/java-pubsub/commit/70246e8fd24c7e85b0384d99bd3895094383ff5e)) +* typo ([#603](https://www.github.com/googleapis/java-pubsub/issues/603)) ([60b087d](https://www.github.com/googleapis/java-pubsub/commit/60b087d2e2afbadaff5dd0a3b946d46b61acbf95)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#614](https://www.github.com/googleapis/java-pubsub/issues/614)) ([61e2ea1](https://www.github.com/googleapis/java-pubsub/commit/61e2ea112a4d44219adb20f087e7847114be4261)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#626](https://www.github.com/googleapis/java-pubsub/issues/626)) ([a9884a9](https://www.github.com/googleapis/java-pubsub/commit/a9884a9beede67ce90616be2f1bdd7da1aa6f867)) +* update dependency org.easymock:easymock to v4.3 ([#612](https://www.github.com/googleapis/java-pubsub/issues/612)) ([b08e816](https://www.github.com/googleapis/java-pubsub/commit/b08e81604341381543b13f68bb0695c55d0a7575)) + ### [1.112.1](https://www.github.com/googleapis/java-pubsub/compare/v1.112.0...v1.112.1) (2021-04-12) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2d3019db0231..b69d0a6f6600 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.2-SNAPSHOT + 1.112.2 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.2-SNAPSHOT + 1.94.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.2-SNAPSHOT + 1.94.2 com.google.cloud google-cloud-pubsub - 1.112.2-SNAPSHOT + 1.112.2
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2c2fd50984b7..f0d4768c7a09 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.2-SNAPSHOT + 1.112.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.2-SNAPSHOT + 1.112.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b3ca8f7b7271..5e772e9b72f9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.2-SNAPSHOT + 1.94.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.2-SNAPSHOT + 1.112.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c35ec5065b7e..76906291b6d3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.2-SNAPSHOT + 1.112.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.2-SNAPSHOT + 1.94.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.2-SNAPSHOT + 1.94.2 com.google.cloud google-cloud-pubsub - 1.112.2-SNAPSHOT + 1.112.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 25c01e7f9bc1..79d0069adbbb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.2-SNAPSHOT + 1.94.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.2-SNAPSHOT + 1.112.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ca1a008b62a1..570e83f433ad 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.2-SNAPSHOT + 1.112.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ffbc67bff222..a6468529120f 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.1:1.94.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.94.1:1.94.2-SNAPSHOT -google-cloud-pubsub:1.112.1:1.112.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.2:1.94.2 +grpc-google-cloud-pubsub-v1:1.94.2:1.94.2 +google-cloud-pubsub:1.112.2:1.112.2 \ No newline at end of file From 915c49fb9dfe1fc9f97299f204e1d766e24b58b8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 26 Apr 2021 19:56:08 +0200 Subject: [PATCH 0672/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.94.8 (#624) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.94.7` -> `1.94.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/compatibility-slim/1.94.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.94.8/confidence-slim/1.94.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v1.94.8`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1948-httpswwwgithubcomgoogleapisjava-corecomparev1947v1948-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.94.7...v1.94.8)
    --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 564841647e09..0b18c3cbdc5c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.94.7 + 1.94.8 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 570e83f433ad..c7c170463d6f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.94.7 + 1.94.8 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9d0068805e28..2d3100b20242 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.94.7 + 1.94.8 tests From e1eab0af5cd7af752d247eb708ed82cd5f63084f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 18:44:07 +0000 Subject: [PATCH 0673/2363] chore: release 1.112.3-SNAPSHOT (#627) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b69d0a6f6600..33fc92115951 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.2 + 1.112.3-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.2 + 1.94.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.2 + 1.94.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.2 + 1.112.3-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f0d4768c7a09..906c9f7e748b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.2 + 1.112.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.2 + 1.112.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5e772e9b72f9..644ceb7174e1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.2 + 1.94.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.2 + 1.112.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 76906291b6d3..0f6805d7e3cc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.2 + 1.112.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.2 + 1.94.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.2 + 1.94.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.2 + 1.112.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 79d0069adbbb..60e42258648b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.2 + 1.94.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.2 + 1.112.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c7c170463d6f..76d36c1e9584 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.2 + 1.112.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a6468529120f..12bf22cc1496 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.2:1.94.2 -grpc-google-cloud-pubsub-v1:1.94.2:1.94.2 -google-cloud-pubsub:1.112.2:1.112.2 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.2:1.94.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.94.2:1.94.3-SNAPSHOT +google-cloud-pubsub:1.112.2:1.112.3-SNAPSHOT \ No newline at end of file From 90d0fd0f87d29e3467d354fb2aa1180e15634c1c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 19:08:08 +0000 Subject: [PATCH 0674/2363] chore: release 1.112.3 (#628) :robot: I have created a release \*beep\* \*boop\* --- ### [1.112.3](https://www.github.com/googleapis/java-pubsub/compare/v1.112.2...v1.112.3) (2021-04-26) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v1.94.8 ([#624](https://www.github.com/googleapis/java-pubsub/issues/624)) ([915c49f](https://www.github.com/googleapis/java-pubsub/commit/915c49fb9dfe1fc9f97299f204e1d766e24b58b8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 793892d2b2a3..a2e9dbb1ef41 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.112.3](https://www.github.com/googleapis/java-pubsub/compare/v1.112.2...v1.112.3) (2021-04-26) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v1.94.8 ([#624](https://www.github.com/googleapis/java-pubsub/issues/624)) ([e1d6632](https://www.github.com/googleapis/java-pubsub/commit/e1d663262b618223d021f8304718f4b939423002)) + ### [1.112.2](https://www.github.com/googleapis/java-pubsub/compare/v1.112.1...v1.112.2) (2021-04-24) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 33fc92115951..c15e944cfb86 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.3-SNAPSHOT + 1.112.3 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.3-SNAPSHOT + 1.94.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.3-SNAPSHOT + 1.94.3 com.google.cloud google-cloud-pubsub - 1.112.3-SNAPSHOT + 1.112.3 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 906c9f7e748b..5edca00a4006 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.3-SNAPSHOT + 1.112.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.3-SNAPSHOT + 1.112.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 644ceb7174e1..6455cf70857a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.3-SNAPSHOT + 1.94.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.3-SNAPSHOT + 1.112.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0f6805d7e3cc..f92a206f61fc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.3-SNAPSHOT + 1.112.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.3-SNAPSHOT + 1.94.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.3-SNAPSHOT + 1.94.3 com.google.cloud google-cloud-pubsub - 1.112.3-SNAPSHOT + 1.112.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 60e42258648b..6c141d84251f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.3-SNAPSHOT + 1.94.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.3-SNAPSHOT + 1.112.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 76d36c1e9584..b7e353f70194 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.3-SNAPSHOT + 1.112.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 12bf22cc1496..055a9a18d4ed 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.2:1.94.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.94.2:1.94.3-SNAPSHOT -google-cloud-pubsub:1.112.2:1.112.3-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.3:1.94.3 +grpc-google-cloud-pubsub-v1:1.94.3:1.94.3 +google-cloud-pubsub:1.112.3:1.112.3 \ No newline at end of file From 46bf78213c3de6bc31062b57bb28f52e7f2a7dcf Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 19:20:07 +0000 Subject: [PATCH 0675/2363] chore: release 1.112.4-SNAPSHOT (#629) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c15e944cfb86..46dfb46fa530 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.3 + 1.112.4-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.3 + 1.94.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.3 + 1.94.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.3 + 1.112.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5edca00a4006..65bb3718f08a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.3 + 1.112.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.3 + 1.112.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6455cf70857a..74e373d1b8fa 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.3 + 1.94.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.3 + 1.112.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f92a206f61fc..6e3d8444f01f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.3 + 1.112.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.3 + 1.94.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.3 + 1.94.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.3 + 1.112.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6c141d84251f..9b40b9bb55c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.3 + 1.94.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.3 + 1.112.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b7e353f70194..89725deb56a6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.3 + 1.112.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 055a9a18d4ed..83a7e1993273 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.3:1.94.3 -grpc-google-cloud-pubsub-v1:1.94.3:1.94.3 -google-cloud-pubsub:1.112.3:1.112.3 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.3:1.94.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.94.3:1.94.4-SNAPSHOT +google-cloud-pubsub:1.112.3:1.112.4-SNAPSHOT \ No newline at end of file From f208d18770f86577964883a7206c424f1cea8101 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 26 Apr 2021 12:36:09 -0700 Subject: [PATCH 0676/2363] chore: regenerate README (#630) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-04-26 19:22:25,152 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-26 19:22:26,483 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/647801d1-6ac5-470c-afcf-a89f1032f65f/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 44d931506bea..6762c6ca8e23 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "6ba803b3c62e6951297d09f4a749a9094a0a7d24" + "sha": "8239e0760c6505c26d48fcd21d320d0f72644b41" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ff6b759fcb58f216f62b48d5be0bb85fafbc3bb2" + "sha": "7da29dfd4a80976617e8a65dd2dfbfcb9fcd05ba" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a142169200fb..bf6604e85136 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.112.1' +compile 'com.google.cloud:google-cloud-pubsub:1.112.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.112.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.112.2" ``` ## Authentication From 47f31584132788bbb5a23aa836f3572182a12135 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Apr 2021 16:40:08 +0200 Subject: [PATCH 0677/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v20.2.0 (#634) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.1.0` -> `20.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/compatibility-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/confidence-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2d3100b20242..e03f1feac188 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 20.1.0 + 20.2.0 pom import From 231ac5d795a3a1acfcc047728f47ba94f1c4ff9c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 30 Apr 2021 08:46:02 -0700 Subject: [PATCH 0678/2363] chore: regenerate README (#635) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-04-29 14:42:32,062 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-29 14:42:33,385 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/b8771ee4-9175-42b1-a20c-d9baf75c0867/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 6762c6ca8e23..cddccfb3ca05 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "8239e0760c6505c26d48fcd21d320d0f72644b41" + "sha": "8ef2698c537d8cda8cb491ea74656d24ce89ffea" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7da29dfd4a80976617e8a65dd2dfbfcb9fcd05ba" + "sha": "06a8cd0ff7e81b05e6c503eab510ec622384caa7" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bf6604e85136..fcd3395dde6c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.1.0 + 20.2.0 pom import @@ -47,18 +47,18 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.1.0') +implementation platform('com.google.cloud:libraries-bom:20.2.0') compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.112.2' +compile 'com.google.cloud:google-cloud-pubsub:1.112.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.112.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.112.3" ``` ## Authentication From b6503f4352a3dba4a6c9e8e483ab21d00d8a99f9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 30 Apr 2021 20:12:08 +0200 Subject: [PATCH 0679/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.112.3 (#631) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.112.1` -> `1.112.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.112.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.112.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.112.3/compatibility-slim/1.112.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.112.3/confidence-slim/1.112.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.112.3`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11123-httpswwwgithubcomgoogleapisjava-pubsubcomparev11122v11123-2021-04-26) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.112.2...v1.112.3) ### [`v1.112.2`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11122-httpswwwgithubcomgoogleapisjava-pubsubcomparev11121v11122-2021-04-24) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.112.1...v1.112.2)
    --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0b18c3cbdc5c..3269a0afa726 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.112.1 + 1.112.3 From 8634979bc7d1f92388b89e02d9eecc1f38078ab4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 30 Apr 2021 11:28:06 -0700 Subject: [PATCH 0680/2363] chore: regenerate README (#638) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-04-30 18:14:17,797 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-30 18:14:19,057 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/85d48e24-44d0-46ec-93b4-15cf4d9110ad/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index cddccfb3ca05..bb715e5b5cc8 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "8ef2698c537d8cda8cb491ea74656d24ce89ffea" + "sha": "0488a27ce6ef4e43a9b509371051d4b7af4e81ce" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index fcd3395dde6c..3b346f49c5bc 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -40,7 +40,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.112.1 + 1.112.3 ``` From 290c682fe760d6ecc559264226eafd60f0155340 Mon Sep 17 00:00:00 2001 From: "google-cloud-policy-bot[bot]" <80869356+google-cloud-policy-bot[bot]@users.noreply.github.com> Date: Fri, 30 Apr 2021 18:42:06 +0000 Subject: [PATCH 0681/2363] chore: add SECURITY.md (#632) chore: add SECURITY.md --- java-pubsub/SECURITY.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 java-pubsub/SECURITY.md diff --git a/java-pubsub/SECURITY.md b/java-pubsub/SECURITY.md new file mode 100644 index 000000000000..8b58ae9c01ae --- /dev/null +++ b/java-pubsub/SECURITY.md @@ -0,0 +1,7 @@ +# Security Policy + +To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). + +The Google Security Team will respond within 5 working days of your report on g.co/vulnz. + +We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. From c2d04f8842cbf1014aba67c2beaf7e069f508d44 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 5 May 2021 08:38:10 -0700 Subject: [PATCH 0682/2363] build(java): switch to release-please for release tagging (#642) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/fe851af0-53fb-45bd-90c5-22277ec11528/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/release-please.yml | 3 ++- java-pubsub/synth.metadata | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index dce2c8450921..8ca7f9cabc29 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -1,2 +1,3 @@ +bumpMinorPreMajor: true +handleGHRelease: true releaseType: java-yoshi -bumpMinorPreMajor: true \ No newline at end of file diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 72a860efc545..665a78b05694 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "861e236ea07a26f641f94de82ad781ad9322bfdc" + "sha": "2a359a4b5ffb60b116db6bac67e8e904500b002f" } }, { From 6389028bcbaadafee907665d926b7be9954b95e3 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Wed, 5 May 2021 10:29:50 -0700 Subject: [PATCH 0683/2363] build: configure branch 1.111.0-sp as a release branch (#640) --- java-pubsub/.github/release-please.yml | 4 + java-pubsub/.github/sync-repo-settings.yaml | 82 ++++++++++----------- 2 files changed, 42 insertions(+), 44 deletions(-) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 8ca7f9cabc29..78c674a4e873 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -1,3 +1,7 @@ bumpMinorPreMajor: true handleGHRelease: true releaseType: java-yoshi +branches: + - releaseType: java-lts + bumpMinorPreMajor: true + branch: 1.111.0-sp diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index b36eb7dee4ac..8ae7a9303b99 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -1,49 +1,43 @@ - -# Whether or not rebase-merging is enabled on this repository. -# Defaults to `true` rebaseMergeAllowed: false - -# Whether or not squash-merging is enabled on this repository. -# Defaults to `true` squashMergeAllowed: true - -# Whether or not PRs are merged with a merge commit on this repository. -# Defaults to `false` mergeCommitAllowed: false - -# Rules for master branch protection branchProtectionRules: -# Identifies the protection rule pattern. Name of the branch to be protected. -# Defaults to `master` -- pattern: master - # Can admins overwrite branch protection. - # Defaults to `true` - isAdminEnforced: true - # Number of approving reviews required to update matching branches. - # Defaults to `1` - requiredApprovingReviewCount: 1 - # Are reviews from code owners required to update matching branches. - # Defaults to `false` - requiresCodeOwnerReviews: true - # Require up to date branches - requiresStrictStatusChecks: false - # List of required status check contexts that must pass for commits to be accepted to matching branches. - requiredStatusCheckContexts: - - "dependencies (8)" - - "dependencies (11)" - - "linkage-monitor" - - "lint" - - "clirr" - - "units (7)" - - "units (8)" - - "units (11)" - - "Kokoro - Test: Integration" - - "cla/google" -# List of explicit permissions to add (additive only) + - pattern: master + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (7) + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - pattern: 1.111.0-sp + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (7) + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google permissionRules: -- team: yoshi-admins - permission: admin -- team: yoshi-java-admins - permission: admin -- team: yoshi-java - permission: push + - team: yoshi-admins + permission: admin + - team: yoshi-java-admins + permission: admin + - team: yoshi-java + permission: push From 3c46db6f5710a24383086dbfdbccf64175c38fa1 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 5 May 2021 16:44:52 -0700 Subject: [PATCH 0684/2363] samples(test): add retry in tests (#645) --- .../snippets/src/test/java/pubsub/DeadLetterQueueIT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java index 5b342612e2b8..17241386edaf 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java @@ -22,6 +22,7 @@ import com.google.cloud.pubsub.v1.Publisher; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import com.google.protobuf.ByteString; import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.ProjectTopicName; @@ -69,6 +70,7 @@ private static void publishSomeMessages() throws Exception { } @Rule public Timeout globalTimeout = Timeout.seconds(300); // 5 minute timeout + @Rule public MultipleAttemptsRule retryRule = new MultipleAttemptsRule(/*maxAttemptCount=*/ 3); @BeforeClass public static void checkRequirements() { From 5fbae3d063f05a7e2ea61908c1dc4a810b4ef612 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 May 2021 19:43:48 +0200 Subject: [PATCH 0685/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.1.2 (#639) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6e3d8444f01f..e8b1c1040e37 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -148,7 +148,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.1 + 3.1.2 From 9cf16b648f1a7be486039241a65b92e9c86207f8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 10 May 2021 10:14:05 -0700 Subject: [PATCH 0686/2363] chore: adding cloud-rad java xrefs (#648) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/8d99f6b8-9807-43f8-a8e3-183c3c1b23e2/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/046994f491c02806aea60118e214a9edd67f5ab7 --- java-pubsub/.kokoro/release/publish_javadoc11.sh | 7 +++++++ java-pubsub/synth.metadata | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.sh b/java-pubsub/.kokoro/release/publish_javadoc11.sh index bbf99213df36..07b41ae8ea9c 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc11.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc11.sh @@ -49,6 +49,13 @@ pushd target/docfx-yml python3 -m docuploader create-metadata \ --name ${NAME} \ --version ${VERSION} \ + --xrefs devsite://java/gax \ + --xrefs devsite://java/google-cloud-core \ + --xrefs devsite://java/api-common \ + --xrefs devsite://java/proto-google-common-protos \ + --xrefs devsite://java/google-api-client \ + --xrefs devsite://java/google-http-client \ + --xrefs devsite://java/protobuf \ --language java # upload yml to production bucket diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 665a78b05694..d22de867e41d 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "2a359a4b5ffb60b116db6bac67e8e904500b002f" + "sha": "e9989c083530da2ee673adf83d9957cc5271ec31" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d" + "sha": "046994f491c02806aea60118e214a9edd67f5ab7" } } ], From bad80e3bae30d31b44c2c2f7be412da6480324b5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 11 May 2021 03:22:11 +0200 Subject: [PATCH 0687/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 (#651) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.0.0` -> `1.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/compatibility-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/confidence-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v1.1.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​110-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare100v110-2021-05-10) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.0.0...v1.1.0) ##### Dependencies - update dependency com.google.protobuf:protobuf-bom to v3.16.0 ([#​348](https://www.github.com/googleapis/java-shared-dependencies/issues/348)) ([0aacfde](https://www.github.com/googleapis/java-shared-dependencies/commit/0aacfdeec70e30803734db8287c47e4fad5481ef)) - update gax.version to v1.64.0 ([#​345](https://www.github.com/googleapis/java-shared-dependencies/issues/345)) ([478bd35](https://www.github.com/googleapis/java-shared-dependencies/commit/478bd35296293e81c7e70157f50bfbebdc1bb54d)) - update iam.version to v1.0.13 ([#​343](https://www.github.com/googleapis/java-shared-dependencies/issues/343)) ([3637923](https://www.github.com/googleapis/java-shared-dependencies/commit/363792392b71deff5cc5731104b631122fba5e61))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e8b1c1040e37..eef5e04e99f2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.0.0 + 1.1.0 pom import From aaddbd7b1b200c1e2559af96e28258060aed7608 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 11 May 2021 12:46:02 -0700 Subject: [PATCH 0688/2363] chore: regenerate README (#650) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-05-10 17:33:54,093 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-10 17:33:55,454 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/b9661869-8dcf-4edf-b00e-8924ed3cbee4/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index bb715e5b5cc8..87a0422b5346 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "0488a27ce6ef4e43a9b509371051d4b7af4e81ce" + "sha": "7f505afed26c3f730204f3296e4bec6e701925a9" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "06a8cd0ff7e81b05e6c503eab510ec622384caa7" + "sha": "6726988c677bb78385868bfc48dbfa2fe981d44a" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3b346f49c5bc..b7a93bb14d0b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.2.0') +implementation platform('com.google.cloud:libraries-bom:20.3.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From 3acc6fdb8625ece03c7768781ea6e3d7fcbde90f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 May 2021 20:50:01 +0200 Subject: [PATCH 0689/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.16.0 (#647) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3269a0afa726..235a8fb7a341 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.15.8 + 3.16.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 89725deb56a6..a064723d55c3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.15.8 + 3.16.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e03f1feac188..f2548cbbbb60 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.15.8 + 3.16.0 From 892bed3679a83b8665a98f4f902a842399561edc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 12 May 2021 19:02:02 +0000 Subject: [PATCH 0690/2363] chore: release 1.112.4 (#654) :robot: I have created a release \*beep\* \*boop\* --- ### [1.112.4](https://www.github.com/googleapis/java-pubsub/compare/v1.112.3...v1.112.4) (2021-05-12) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#651](https://www.github.com/googleapis/java-pubsub/issues/651)) ([bad80e3](https://www.github.com/googleapis/java-pubsub/commit/bad80e3bae30d31b44c2c2f7be412da6480324b5)) * update dependency com.google.protobuf:protobuf-java-util to v3.16.0 ([#647](https://www.github.com/googleapis/java-pubsub/issues/647)) ([3acc6fd](https://www.github.com/googleapis/java-pubsub/commit/3acc6fdb8625ece03c7768781ea6e3d7fcbde90f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index a2e9dbb1ef41..91eb514f492c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [1.112.4](https://www.github.com/googleapis/java-pubsub/compare/v1.112.3...v1.112.4) (2021-05-12) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#651](https://www.github.com/googleapis/java-pubsub/issues/651)) ([96ab1d4](https://www.github.com/googleapis/java-pubsub/commit/96ab1d4ea484215fb951704d0d2f0dbbf2802544)) +* update dependency com.google.protobuf:protobuf-java-util to v3.16.0 ([#647](https://www.github.com/googleapis/java-pubsub/issues/647)) ([7fcc503](https://www.github.com/googleapis/java-pubsub/commit/7fcc503a790d28f3d07e07c0ca286a1ee031f38b)) + ### [1.112.3](https://www.github.com/googleapis/java-pubsub/compare/v1.112.2...v1.112.3) (2021-04-26) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 46dfb46fa530..fac45cae19d6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.4-SNAPSHOT + 1.112.4 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.4-SNAPSHOT + 1.94.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.4-SNAPSHOT + 1.94.4 com.google.cloud google-cloud-pubsub - 1.112.4-SNAPSHOT + 1.112.4
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 65bb3718f08a..9e2bae513fa0 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.4-SNAPSHOT + 1.112.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.4-SNAPSHOT + 1.112.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 74e373d1b8fa..26c878c4424c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.4-SNAPSHOT + 1.94.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.4-SNAPSHOT + 1.112.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index eef5e04e99f2..aab1c17cfc43 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.4-SNAPSHOT + 1.112.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.4-SNAPSHOT + 1.94.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.4-SNAPSHOT + 1.94.4 com.google.cloud google-cloud-pubsub - 1.112.4-SNAPSHOT + 1.112.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9b40b9bb55c1..a8c3472c7af7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.4-SNAPSHOT + 1.94.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.4-SNAPSHOT + 1.112.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a064723d55c3..e1eef3fad820 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.4-SNAPSHOT + 1.112.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 83a7e1993273..f1be7025e756 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.3:1.94.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.94.3:1.94.4-SNAPSHOT -google-cloud-pubsub:1.112.3:1.112.4-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.4:1.94.4 +grpc-google-cloud-pubsub-v1:1.94.4:1.94.4 +google-cloud-pubsub:1.112.4:1.112.4 \ No newline at end of file From 0eb377045117e348cc3861915e1ffed3305866b2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 12 May 2021 19:14:02 +0000 Subject: [PATCH 0691/2363] chore: release 1.112.5-SNAPSHOT (#656) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fac45cae19d6..ff9d51b9bae8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.4 + 1.112.5-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.4 + 1.94.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.4 + 1.94.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.4 + 1.112.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9e2bae513fa0..5edb3061f44b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.4 + 1.112.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.4 + 1.112.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 26c878c4424c..4972861db992 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.4 + 1.94.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.4 + 1.112.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index aab1c17cfc43..a8b905309963 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.4 + 1.112.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.4 + 1.94.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.4 + 1.94.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.4 + 1.112.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a8c3472c7af7..8b1d2d6c9b25 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.4 + 1.94.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.4 + 1.112.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e1eef3fad820..4ea36894ebc2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.4 + 1.112.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f1be7025e756..a0377c116a57 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.4:1.94.4 -grpc-google-cloud-pubsub-v1:1.94.4:1.94.4 -google-cloud-pubsub:1.112.4:1.112.4 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.4:1.94.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.94.4:1.94.5-SNAPSHOT +google-cloud-pubsub:1.112.4:1.112.5-SNAPSHOT \ No newline at end of file From 96b31a13c6bb440525b965b11e0dad72dab3d290 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 13 May 2021 15:58:06 +0200 Subject: [PATCH 0692/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v20.3.0 (#649) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.2.0` -> `20.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/compatibility-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/confidence-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f2548cbbbb60..20e635ae9b05 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 20.2.0 + 20.3.0 pom import From 3764733962e4028f5bd75c28ee24021a32bd9bf8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 13 May 2021 07:14:04 -0700 Subject: [PATCH 0693/2363] chore: regenerate README (#661) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-05-13 14:02:40,010 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-13 14:02:41,356 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/36014351-9f85-4357-b12d-992610c3e6cc/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 87a0422b5346..7d9b315d6b94 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "7f505afed26c3f730204f3296e4bec6e701925a9" + "sha": "cc01b8722e588ee5a9ad9549b9e551553ada41c7" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6726988c677bb78385868bfc48dbfa2fe981d44a" + "sha": "bd8281a06cc7f84906e04d4843c1d3d386a980cd" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b7a93bb14d0b..4fea8e639486 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.2.0 + 20.3.0 pom import @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.112.3' +compile 'com.google.cloud:google-cloud-pubsub:1.111.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.112.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.2" ``` ## Authentication From 7216034a8c6f2c0d47d07408fc38f949bec5b9ae Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 13 May 2021 16:38:33 -0700 Subject: [PATCH 0694/2363] build(java): remove codecov action (#662) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/292bbf70-204a-453f-a078-82c4067cc679/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1 --- java-pubsub/.github/workflows/ci.yaml | 6 +----- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index def8b3a2c84d..0195b32f00b4 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -19,10 +19,6 @@ jobs: - run: .kokoro/build.sh env: JOB_TYPE: test - - name: coverage - uses: codecov/codecov-action@v1 - with: - name: actions ${{matrix.java}} windows: runs-on: windows-latest steps: @@ -80,4 +76,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr \ No newline at end of file + JOB_TYPE: clirr diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index d22de867e41d..4ce21a3ae275 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "e9989c083530da2ee673adf83d9957cc5271ec31" + "sha": "671c3643ee6537b9f0771a2094992949ab64e463" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "046994f491c02806aea60118e214a9edd67f5ab7" + "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" } } ], From 788c63d00e69303d73e5aefe222694e191aa0f98 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 14 May 2021 03:34:09 +0200 Subject: [PATCH 0695/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.17.0 (#660) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.protobuf:protobuf-java-util | `3.16.0` -> `3.17.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.0/compatibility-slim/3.16.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.0/confidence-slim/3.16.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 235a8fb7a341..8c9deb3981b1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.16.0 + 3.17.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4ea36894ebc2..92428c469254 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.16.0 + 3.17.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 20e635ae9b05..e9891c7c2500 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.16.0 + 3.17.0 From 009b7d61e26e8bb70ce8dfd82bf81e3b8de93f26 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 14 May 2021 01:46:06 +0000 Subject: [PATCH 0696/2363] chore: release 1.112.5 (#663) :robot: I have created a release \*beep\* \*boop\* --- ### [1.112.5](https://www.github.com/googleapis/java-pubsub/compare/v1.112.4...v1.112.5) (2021-05-14) ### Dependencies * update dependency com.google.protobuf:protobuf-java-util to v3.17.0 ([#660](https://www.github.com/googleapis/java-pubsub/issues/660)) ([788c63d](https://www.github.com/googleapis/java-pubsub/commit/788c63d00e69303d73e5aefe222694e191aa0f98)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 91eb514f492c..de071a2228d1 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.112.5](https://www.github.com/googleapis/java-pubsub/compare/v1.112.4...v1.112.5) (2021-05-14) + + +### Dependencies + +* update dependency com.google.protobuf:protobuf-java-util to v3.17.0 ([#660](https://www.github.com/googleapis/java-pubsub/issues/660)) ([5f33acf](https://www.github.com/googleapis/java-pubsub/commit/5f33acf204bd5d3a62eb06fc64a4ad779458ed82)) + ### [1.112.4](https://www.github.com/googleapis/java-pubsub/compare/v1.112.3...v1.112.4) (2021-05-12) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ff9d51b9bae8..6f180937a193 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.5-SNAPSHOT + 1.112.5 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.5-SNAPSHOT + 1.94.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.5-SNAPSHOT + 1.94.5 com.google.cloud google-cloud-pubsub - 1.112.5-SNAPSHOT + 1.112.5
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5edb3061f44b..744784b7931e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.5-SNAPSHOT + 1.112.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.5-SNAPSHOT + 1.112.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 4972861db992..db792432b575 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.5-SNAPSHOT + 1.94.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.5-SNAPSHOT + 1.112.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a8b905309963..b4df217166d0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.5-SNAPSHOT + 1.112.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.5-SNAPSHOT + 1.94.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.5-SNAPSHOT + 1.94.5 com.google.cloud google-cloud-pubsub - 1.112.5-SNAPSHOT + 1.112.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 8b1d2d6c9b25..4f3e3d5e293a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.5-SNAPSHOT + 1.94.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.5-SNAPSHOT + 1.112.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 92428c469254..df7e740c816f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.5-SNAPSHOT + 1.112.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a0377c116a57..ec4a7a463fb5 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.4:1.94.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.94.4:1.94.5-SNAPSHOT -google-cloud-pubsub:1.112.4:1.112.5-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.5:1.94.5 +grpc-google-cloud-pubsub-v1:1.94.5:1.94.5 +google-cloud-pubsub:1.112.5:1.112.5 \ No newline at end of file From f4ab5cb45da9d13fed35dc44988714c408a5a22d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 14 May 2021 01:56:14 +0000 Subject: [PATCH 0697/2363] chore: release 1.112.6-SNAPSHOT (#664) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6f180937a193..509c5e23d2b0 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.5 + 1.112.6-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.5 + 1.94.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.5 + 1.94.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.5 + 1.112.6-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 744784b7931e..b95329bb5c0b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.5 + 1.112.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.5 + 1.112.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index db792432b575..2fe71e8e8055 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.5 + 1.94.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.5 + 1.112.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b4df217166d0..959608dfe5b5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.5 + 1.112.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.5 + 1.94.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.5 + 1.94.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.112.5 + 1.112.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4f3e3d5e293a..4a7fbc834a6c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.5 + 1.94.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.5 + 1.112.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index df7e740c816f..cae72a7b4981 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.5 + 1.112.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ec4a7a463fb5..478b6cc287fc 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.5:1.94.5 -grpc-google-cloud-pubsub-v1:1.94.5:1.94.5 -google-cloud-pubsub:1.112.5:1.112.5 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.94.5:1.94.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.94.5:1.94.6-SNAPSHOT +google-cloud-pubsub:1.112.5:1.112.6-SNAPSHOT \ No newline at end of file From 35c2cf400993e64ab422423e37af6bb2599bd8ab Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 May 2021 04:06:02 +0200 Subject: [PATCH 0698/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v20.4.0 (#666) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.3.0` -> `20.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/compatibility-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/confidence-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e9891c7c2500..0d995e3223d5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 20.3.0 + 20.4.0 pom import From 1ce3c524ab02332513b75210d6c91ac63b103402 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 16 May 2021 19:20:05 -0700 Subject: [PATCH 0699/2363] chore: regenerate README (#668) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-05-17 02:09:26,044 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-17 02:09:27,521 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/2c87e5bb-e0a5-48a8-a561-587e3346cba3/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 7d9b315d6b94..6c9a63eeabf9 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "cc01b8722e588ee5a9ad9549b9e551553ada41c7" + "sha": "6f6e341738e8b10a0a8c0a7441a087b6a8850543" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "bd8281a06cc7f84906e04d4843c1d3d386a980cd" + "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4fea8e639486..74c10c0fd66f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.3.0 + 20.4.0 pom import @@ -47,18 +47,18 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.3.0') +implementation platform('com.google.cloud:libraries-bom:20.4.0') compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.111.2' +compile 'com.google.cloud:google-cloud-pubsub:1.112.5' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.112.5" ``` ## Authentication From 091ea236b6799922be7e26997f6f3ef22a791d42 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 17 May 2021 15:16:23 -0700 Subject: [PATCH 0700/2363] chore: add changelog to cloud-rad (#671) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/92467794-b3f8-4107-b2d8-52d947e48bdd/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/c86c7a60985644eab557949363a38301d40d78d2 --- java-pubsub/.kokoro/release/publish_javadoc11.sh | 2 ++ java-pubsub/synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.sh b/java-pubsub/.kokoro/release/publish_javadoc11.sh index 07b41ae8ea9c..01c08a1df723 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc11.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc11.sh @@ -42,6 +42,8 @@ mvn clean site -B -q -P docFX # copy README to docfx-yml dir and rename index.md cp README.md target/docfx-yml/index.md +# copy CHANGELOG to docfx-yml dir and rename history.md +cp CHANGELOG.md target/docfx-yml/history.md pushd target/docfx-yml diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 4ce21a3ae275..6434a252cc0f 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "671c3643ee6537b9f0771a2094992949ab64e463" + "sha": "856797fdc2824bc0ef1f3542f6e6d7cedf5e8afe" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" + "sha": "c86c7a60985644eab557949363a38301d40d78d2" } } ], From dd28d9fe8ab0f6d4cfcfa3def575655a8d16f95c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 19 May 2021 07:18:15 -0700 Subject: [PATCH 0701/2363] feat: add `gcf-owl-bot[bot]` to `ignoreAuthors` (#673) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/64661f4d-5b51-4352-90ec-aee103f1388c/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/7332178a11ddddc91188dc0f25bca1ccadcaa6c6 --- java-pubsub/.github/generated-files-bot.yml | 1 + java-pubsub/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/generated-files-bot.yml b/java-pubsub/.github/generated-files-bot.yml index 47c2ba132e01..c644a24e1129 100644 --- a/java-pubsub/.github/generated-files-bot.yml +++ b/java-pubsub/.github/generated-files-bot.yml @@ -9,3 +9,4 @@ ignoreAuthors: - 'renovate-bot' - 'yoshi-automation' - 'release-please[bot]' +- 'gcf-owl-bot[bot]' diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 6434a252cc0f..0d1dcce05d2b 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "856797fdc2824bc0ef1f3542f6e6d7cedf5e8afe" + "sha": "16d100cd535ff21ae31d473188fb84f3346a1705" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c86c7a60985644eab557949363a38301d40d78d2" + "sha": "7332178a11ddddc91188dc0f25bca1ccadcaa6c6" } } ], From 3fc2168d87bf5795a4060e04d89acc23db20b0fc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 May 2021 17:04:16 +0200 Subject: [PATCH 0702/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 (#672) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.1.0` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/compatibility-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/confidence-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v1.2.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare110v120-2021-05-18) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.1.0...v1.2.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.31.5 ([#​353](https://www.github.com/googleapis/java-shared-dependencies/issues/353)) ([8d72ab0](https://www.github.com/googleapis/java-shared-dependencies/commit/8d72ab003e08c864aedc17fc190ba26f393bf0c7)) - update dependency com.google.errorprone:error_prone_annotations to v2.7.1 ([#​360](https://www.github.com/googleapis/java-shared-dependencies/issues/360)) ([8f952d0](https://www.github.com/googleapis/java-shared-dependencies/commit/8f952d05745358fc426a1a2dcb688da5d5010239)) - update dependency com.google.protobuf:protobuf-bom to v3.17.0 ([#​355](https://www.github.com/googleapis/java-shared-dependencies/issues/355)) ([09858fb](https://www.github.com/googleapis/java-shared-dependencies/commit/09858fb4f1b78a77e828501597d20df4db0ebfcf)) - update dependency io.grpc:grpc-bom to v1.37.1 ([#​359](https://www.github.com/googleapis/java-shared-dependencies/issues/359)) ([bc9869e](https://www.github.com/googleapis/java-shared-dependencies/commit/bc9869e914314f951afd69f2acae95c414398f43)) - update google.common-protos.version to v2.2.1 ([#​358](https://www.github.com/googleapis/java-shared-dependencies/issues/358)) ([a3ed764](https://www.github.com/googleapis/java-shared-dependencies/commit/a3ed764a0e5143ee323d4b69c9747b8265d349e2)) - update iam.version to v1.0.14 ([#​352](https://www.github.com/googleapis/java-shared-dependencies/issues/352)) ([bea9a01](https://www.github.com/googleapis/java-shared-dependencies/commit/bea9a01788ac1332a4bc7e06574ef5701700fe90))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 959608dfe5b5..53e13ff89379 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.1.0 + 1.2.0 pom import From 11d973175e08dcf0d4c72c6752afabf46f4d7189 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 May 2021 17:18:15 +0200 Subject: [PATCH 0703/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.7.1 (#667) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.errorprone:error_prone_annotations | `2.6.0` -> `2.7.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.7.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.7.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.7.1/compatibility-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.7.1/confidence-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 53e13ff89379..be9b8cb7b38f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -94,7 +94,7 @@ com.google.errorprone error_prone_annotations - 2.6.0 + 2.7.1 From 7c92d13d113ea9b8cba77e6dd298d1296071008e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 May 2021 23:04:26 +0200 Subject: [PATCH 0704/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.12.0 (#675) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.11.2` -> `0.12.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/compatibility-slim/0.11.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/confidence-slim/0.11.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 509c5e23d2b0..67126309664f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.11.2 + 0.12.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index be9b8cb7b38f..e996113b9750 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.2 + 0.12.0 From 8c88f3da94be8cee1bf53797270d6b50c700e936 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 20 May 2021 15:32:15 -0700 Subject: [PATCH 0705/2363] chore: dump maven version along with java (#676) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/5334a80e-30ee-4283-9963-7b219cad973d/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/8eae0234a16b26c2ff616d305dbd9786c8b10a47 --- java-pubsub/.kokoro/build.sh | 4 ++-- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 9d2d471eee9a..e72b325e873e 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -23,8 +23,8 @@ cd ${scriptDir}/.. # include common functions source ${scriptDir}/common.sh -# Print out Java version -java -version +# Print out Maven & Java version +mvn -version echo ${JOB_TYPE} # attempt to install 3 times with exponential backoff (starting with 10 seconds) diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 0d1dcce05d2b..95f140fbc869 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "16d100cd535ff21ae31d473188fb84f3346a1705" + "sha": "d6cc2d2c42aa328b20a98b43cd72b5b36faa04b3" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7332178a11ddddc91188dc0f25bca1ccadcaa6c6" + "sha": "8eae0234a16b26c2ff616d305dbd9786c8b10a47" } } ], From 0ad7e8fb2dcaead0773f2e4e7090e747dabd8c04 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 20 May 2021 15:54:07 -0700 Subject: [PATCH 0706/2363] chore: regenerate README (#677) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-05-20 22:35:59,913 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-20 22:36:01,248 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/08b33367-0f6b-4cac-b750-0709b6d70deb/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 6c9a63eeabf9..e1b126f01fff 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "6f6e341738e8b10a0a8c0a7441a087b6a8850543" + "sha": "28f8dd906f85b0f54beebb0fde786aabfc0fc42c" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" + "sha": "8eae0234a16b26c2ff616d305dbd9786c8b10a47" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 74c10c0fd66f..485b67858dae 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.112.5' +compile 'com.google.cloud:google-cloud-pubsub:1.111.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.112.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.2" ``` ## Authentication From f4de5b7c5535de3b8602d1c731aed8a1a078fd4c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 21:56:06 +0200 Subject: [PATCH 0707/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.17.1 (#679) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.protobuf:protobuf-java-util | `3.17.0` -> `3.17.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.1/compatibility-slim/3.17.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.1/confidence-slim/3.17.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8c9deb3981b1..769358bf36eb 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.17.0 + 3.17.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cae72a7b4981..b940a7ff6597 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.17.0 + 3.17.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 0d995e3223d5..273902f3e571 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.17.0 + 3.17.1 From e4c18cbcb7a8a16fa4e4eaaeac639430513e8d58 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 26 May 2021 13:10:25 -0700 Subject: [PATCH 0708/2363] chore: regenerate README (#683) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-05-26 19:58:18,647 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-26 19:58:19,970 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/e8137bef-dce9-41a3-8ce2-dcac8f06f7cb/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index e1b126f01fff..8c80f929d6eb 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "28f8dd906f85b0f54beebb0fde786aabfc0fc42c" + "sha": "e7ef7088999f60dc8bd5268c0315a8e1e4639ae0" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8eae0234a16b26c2ff616d305dbd9786c8b10a47" + "sha": "1778de119522ea9c9b18763c2a4577e22a60433c" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 485b67858dae..c054e2f8361f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.4.0') +implementation platform('com.google.cloud:libraries-bom:20.5.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From 2d26ea055ccb8640c6f1ad4aa482b67109b638a1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 22:58:10 +0200 Subject: [PATCH 0709/2363] test(deps): update dependency com.google.truth:truth to v1.1.3 (#681) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.truth:truth | `1.1.2` -> `1.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/compatibility-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/confidence-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e996113b9750..a49136c9958d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -113,7 +113,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test
    diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 769358bf36eb..5245c1aeac74 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b940a7ff6597..bbbf651f5fbf 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 273902f3e571..9fa9a5fcd838 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -84,7 +84,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test From 753dccf6c67ace47d9bb557e0891e2902e0f1c0b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 31 May 2021 20:06:23 +0200 Subject: [PATCH 0710/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v20.5.0 (#680) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.4.0` -> `20.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/compatibility-slim/20.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/confidence-slim/20.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9fa9a5fcd838..69d06b88b5f9 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 20.4.0 + 20.5.0 pom import From 86eba0bd8effe47f45caaa8fea0eaad1a1d8a18b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 31 May 2021 11:26:12 -0700 Subject: [PATCH 0711/2363] chore: regenerate README (#686) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-05-31 18:11:30,100 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-31 18:11:31,475 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/585d1fd8-830c-4b69-b788-0df841108285/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 8c80f929d6eb..c003880de6a7 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "e7ef7088999f60dc8bd5268c0315a8e1e4639ae0" + "sha": "68170fbcba83cf5937fd56b744b2187a34103182" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1778de119522ea9c9b18763c2a4577e22a60433c" + "sha": "c3e41da0fa256ad7f6b4bc76b9d069dedecdfef4" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c054e2f8361f..e5e529434102 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.4.0 + 20.5.0 pom import From d65270f945b5b91661f82d0a7c4c7e67d53f912f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Jun 2021 00:24:46 +0200 Subject: [PATCH 0712/2363] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.0 (#678) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a49136c9958d..3eecf894b2fc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -175,7 +175,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.2.0 + 3.3.0 html From 2bb0f694d521888832200ed68da263fcbbd6446d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Jun 2021 19:08:03 +0000 Subject: [PATCH 0713/2363] chore: release 1.113.0 (#674) :robot: I have created a release \*beep\* \*boop\* --- ## [1.113.0](https://www.github.com/googleapis/java-pubsub/compare/v1.112.5...v1.113.0) (2021-05-31) ### Features * add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#673](https://www.github.com/googleapis/java-pubsub/issues/673)) ([dd28d9f](https://www.github.com/googleapis/java-pubsub/commit/dd28d9fe8ab0f6d4cfcfa3def575655a8d16f95c)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#672](https://www.github.com/googleapis/java-pubsub/issues/672)) ([3fc2168](https://www.github.com/googleapis/java-pubsub/commit/3fc2168d87bf5795a4060e04d89acc23db20b0fc)) * update dependency com.google.errorprone:error_prone_annotations to v2.7.1 ([#667](https://www.github.com/googleapis/java-pubsub/issues/667)) ([11d9731](https://www.github.com/googleapis/java-pubsub/commit/11d973175e08dcf0d4c72c6752afabf46f4d7189)) * update dependency com.google.protobuf:protobuf-java-util to v3.17.1 ([#679](https://www.github.com/googleapis/java-pubsub/issues/679)) ([f4de5b7](https://www.github.com/googleapis/java-pubsub/commit/f4de5b7c5535de3b8602d1c731aed8a1a078fd4c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 14 ++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index de071a2228d1..93ccc7677935 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.113.0](https://www.github.com/googleapis/java-pubsub/compare/v1.112.5...v1.113.0) (2021-05-31) + + +### Features + +* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#673](https://www.github.com/googleapis/java-pubsub/issues/673)) ([51dfca3](https://www.github.com/googleapis/java-pubsub/commit/51dfca3049f87e8bc1163c03eaef0556be3eefdf)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#672](https://www.github.com/googleapis/java-pubsub/issues/672)) ([2cc9ec5](https://www.github.com/googleapis/java-pubsub/commit/2cc9ec5f1418f23a89129bdfc038dcf461097b88)) +* update dependency com.google.errorprone:error_prone_annotations to v2.7.1 ([#667](https://www.github.com/googleapis/java-pubsub/issues/667)) ([885be5c](https://www.github.com/googleapis/java-pubsub/commit/885be5c37992b8b1175c55b407db0f833241a0d1)) +* update dependency com.google.protobuf:protobuf-java-util to v3.17.1 ([#679](https://www.github.com/googleapis/java-pubsub/issues/679)) ([e7ef708](https://www.github.com/googleapis/java-pubsub/commit/e7ef7088999f60dc8bd5268c0315a8e1e4639ae0)) + ### [1.112.5](https://www.github.com/googleapis/java-pubsub/compare/v1.112.4...v1.112.5) (2021-05-14) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 67126309664f..b2e869b736f7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.112.6-SNAPSHOT + 1.113.0 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.6-SNAPSHOT + 1.95.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.6-SNAPSHOT + 1.95.0 com.google.cloud google-cloud-pubsub - 1.112.6-SNAPSHOT + 1.113.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b95329bb5c0b..2f77f1162c80 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.112.6-SNAPSHOT + 1.113.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.112.6-SNAPSHOT + 1.113.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2fe71e8e8055..1b3c4eafb474 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.6-SNAPSHOT + 1.95.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.6-SNAPSHOT + 1.113.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3eecf894b2fc..56bbc07aeb9a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.112.6-SNAPSHOT + 1.113.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.6-SNAPSHOT + 1.95.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.94.6-SNAPSHOT + 1.95.0 com.google.cloud google-cloud-pubsub - 1.112.6-SNAPSHOT + 1.113.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4a7fbc834a6c..9f53f1ffc482 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.94.6-SNAPSHOT + 1.95.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.112.6-SNAPSHOT + 1.113.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bbbf651f5fbf..4cb0b7b781b7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.112.6-SNAPSHOT + 1.113.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 478b6cc287fc..03a418f68305 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.94.5:1.94.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.94.5:1.94.6-SNAPSHOT -google-cloud-pubsub:1.112.5:1.112.6-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.0:1.95.0 +grpc-google-cloud-pubsub-v1:1.95.0:1.95.0 +google-cloud-pubsub:1.113.0:1.113.0 \ No newline at end of file From 89fb63a996a5974b524a2e3a339b94781159ee10 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Jun 2021 19:18:03 +0000 Subject: [PATCH 0714/2363] chore: release 1.113.1-SNAPSHOT (#687) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b2e869b736f7..764513294db4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.0 + 1.113.1-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.0 + 1.95.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.0 + 1.95.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.0 + 1.113.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2f77f1162c80..c6cf74ca648c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.0 + 1.113.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.0 + 1.113.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1b3c4eafb474..9710b7207ba0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.0 + 1.95.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.0 + 1.113.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 56bbc07aeb9a..b8ffbb621253 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.0 + 1.113.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.0 + 1.95.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.0 + 1.95.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.0 + 1.113.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9f53f1ffc482..70656e5ed768 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.0 + 1.95.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.0 + 1.113.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4cb0b7b781b7..f57350bebdbd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.0 + 1.113.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 03a418f68305..8035c3966459 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.0:1.95.0 -grpc-google-cloud-pubsub-v1:1.95.0:1.95.0 -google-cloud-pubsub:1.113.0:1.113.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.0:1.95.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.95.0:1.95.1-SNAPSHOT +google-cloud-pubsub:1.113.0:1.113.1-SNAPSHOT \ No newline at end of file From 7003dac92f7bc2bcab0e82247f6add1d61cb6b37 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Jun 2021 22:10:10 +0200 Subject: [PATCH 0715/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.113.0 (#688) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.112.3` -> `1.113.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.113.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.113.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.113.0/compatibility-slim/1.112.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.113.0/confidence-slim/1.112.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.113.0`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11130-httpswwwgithubcomgoogleapisjava-pubsubcomparev11125v11130-2021-05-31) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.112.5...v1.113.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​673](https://www.github.com/googleapis/java-pubsub/issues/673)) ([dd28d9f](https://www.github.com/googleapis/java-pubsub/commit/dd28d9fe8ab0f6d4cfcfa3def575655a8d16f95c)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#​672](https://www.github.com/googleapis/java-pubsub/issues/672)) ([3fc2168](https://www.github.com/googleapis/java-pubsub/commit/3fc2168d87bf5795a4060e04d89acc23db20b0fc)) - update dependency com.google.errorprone:error_prone_annotations to v2.7.1 ([#​667](https://www.github.com/googleapis/java-pubsub/issues/667)) ([11d9731](https://www.github.com/googleapis/java-pubsub/commit/11d973175e08dcf0d4c72c6752afabf46f4d7189)) - update dependency com.google.protobuf:protobuf-java-util to v3.17.1 ([#​679](https://www.github.com/googleapis/java-pubsub/issues/679)) ([f4de5b7](https://www.github.com/googleapis/java-pubsub/commit/f4de5b7c5535de3b8602d1c731aed8a1a078fd4c)) ##### [1.112.5](https://www.github.com/googleapis/java-pubsub/compare/v1.112.4...v1.112.5) (2021-05-14) ##### Dependencies - update dependency com.google.protobuf:protobuf-java-util to v3.17.0 ([#​660](https://www.github.com/googleapis/java-pubsub/issues/660)) ([788c63d](https://www.github.com/googleapis/java-pubsub/commit/788c63d00e69303d73e5aefe222694e191aa0f98)) ##### [1.112.4](https://www.github.com/googleapis/java-pubsub/compare/v1.112.3...v1.112.4) (2021-05-12) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#​651](https://www.github.com/googleapis/java-pubsub/issues/651)) ([bad80e3](https://www.github.com/googleapis/java-pubsub/commit/bad80e3bae30d31b44c2c2f7be412da6480324b5)) - update dependency com.google.protobuf:protobuf-java-util to v3.16.0 ([#​647](https://www.github.com/googleapis/java-pubsub/issues/647)) ([3acc6fd](https://www.github.com/googleapis/java-pubsub/commit/3acc6fdb8625ece03c7768781ea6e3d7fcbde90f)) ##### [1.112.3](https://www.github.com/googleapis/java-pubsub/compare/v1.112.2...v1.112.3) (2021-04-26) ##### Dependencies - update dependency com.google.cloud:google-cloud-core to v1.94.8 ([#​624](https://www.github.com/googleapis/java-pubsub/issues/624)) ([915c49f](https://www.github.com/googleapis/java-pubsub/commit/915c49fb9dfe1fc9f97299f204e1d766e24b58b8)) ##### [1.112.2](https://www.github.com/googleapis/java-pubsub/compare/v1.112.1...v1.112.2) (2021-04-24) ##### Bug Fixes - release scripts from issuing overlapping phases ([#​610](https://www.github.com/googleapis/java-pubsub/issues/610)) ([79853d6](https://www.github.com/googleapis/java-pubsub/commit/79853d62bb1c1880a5d05f4be1bc3f1db984c0fb)) - typo ([#​603](https://www.github.com/googleapis/java-pubsub/issues/603)) ([a470f4f](https://www.github.com/googleapis/java-pubsub/commit/a470f4f4a269d0cc865541a8930975fd91458281)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#​614](https://www.github.com/googleapis/java-pubsub/issues/614)) ([3c3351f](https://www.github.com/googleapis/java-pubsub/commit/3c3351f6613ca481034e0c0181cb8ca355715111)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#​626](https://www.github.com/googleapis/java-pubsub/issues/626)) ([e9a2acc](https://www.github.com/googleapis/java-pubsub/commit/e9a2acc3da5ade9484b5d516082fc5ab624dfe14)) - update dependency org.easymock:easymock to v4.3 ([#​612](https://www.github.com/googleapis/java-pubsub/issues/612)) ([5ce5f98](https://www.github.com/googleapis/java-pubsub/commit/5ce5f98c535e353ef3e98e3c54a78bc497417683)) ##### [1.112.1](https://www.github.com/googleapis/java-pubsub/compare/v1.112.0...v1.112.1) (2021-04-12) ##### Dependencies - update dependency com.google.cloud:google-cloud-core to v1.94.6 ([#​590](https://www.github.com/googleapis/java-pubsub/issues/590)) ([d6a5cba](https://www.github.com/googleapis/java-pubsub/commit/d6a5cba2b6488084192aef2d05b8d675ecdec1cf)) - update dependency com.google.cloud:google-cloud-core to v1.94.7 ([#​597](https://www.github.com/googleapis/java-pubsub/issues/597)) ([e5582d5](https://www.github.com/googleapis/java-pubsub/commit/e5582d5ba18de7399e16f88f0f97d0777724365d)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#​592](https://www.github.com/googleapis/java-pubsub/issues/592)) ([fa5644f](https://www.github.com/googleapis/java-pubsub/commit/fa5644f843acfac7a7709abcabf512f411b39f97)) - update dependency com.google.errorprone:error_prone_annotations to v2.6.0 ([#​585](https://www.github.com/googleapis/java-pubsub/issues/585)) ([6ec6365](https://www.github.com/googleapis/java-pubsub/commit/6ec636537edd99063935eb1475aab2ba5a3ff4e0)) - update dependency com.google.protobuf:protobuf-java-util to v3.15.7 ([#​586](https://www.github.com/googleapis/java-pubsub/issues/586)) ([4718e42](https://www.github.com/googleapis/java-pubsub/commit/4718e426893271d8df8c039be37e7fdb23e1474c)) - update dependency com.google.protobuf:protobuf-java-util to v3.15.8 ([#​589](https://www.github.com/googleapis/java-pubsub/issues/589)) ([f650890](https://www.github.com/googleapis/java-pubsub/commit/f650890a0f25220676428beb2f64460e3ddeb44c)) - update dependency org.apache.avro:avro to v1.10.2 ([#​575](https://www.github.com/googleapis/java-pubsub/issues/575)) ([d3dad31](https://www.github.com/googleapis/java-pubsub/commit/d3dad3122b852d2c9d55789d1206ce1b7c6f4306)) ### [`v1.112.5`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11125-httpswwwgithubcomgoogleapisjava-pubsubcomparev11124v11125-2021-05-14) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.112.4...v1.112.5) ### [`v1.112.4`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11124-httpswwwgithubcomgoogleapisjava-pubsubcomparev11123v11124-2021-05-12) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.112.3...v1.112.4)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5245c1aeac74..1d663905c278 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.112.3 + 1.113.0 From a052fa44cc4bc421c8d2dee38bcaf3fd539deca3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 2 Jun 2021 13:26:18 -0700 Subject: [PATCH 0716/2363] chore: regenerate README (#689) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-06-02 20:14:17,782 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-02 20:14:19,064 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/29792094-4795-4eba-ab91-0f7113075354/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index c003880de6a7..8acc1371ee82 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "68170fbcba83cf5937fd56b744b2187a34103182" + "sha": "9a078f1cfe272fdfe08abd380410b07923c6f101" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e5e529434102..1fbc3c888b39 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -40,7 +40,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.112.3 + 1.113.0 ``` @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.111.2' +compile 'com.google.cloud:google-cloud-pubsub:1.113.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.111.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.0" ``` ## Authentication From 091c49b6416ae13802bea3a043656315d8539a39 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 4 Jun 2021 17:10:16 +0200 Subject: [PATCH 0717/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 (#692) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.2.0` -> `1.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/compatibility-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/confidence-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v1.3.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​130-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare120v130-2021-06-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.2.0...v1.3.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​365](https://www.github.com/googleapis/java-shared-dependencies/issues/365)) ([7e8309b](https://www.github.com/googleapis/java-shared-dependencies/commit/7e8309bf67ade0fe2b09f792848136cd88b4d2e4)) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.26.0 ([#​368](https://www.github.com/googleapis/java-shared-dependencies/issues/368)) ([38256a8](https://www.github.com/googleapis/java-shared-dependencies/commit/38256a82cb6896c3f5e5ea6ca5d8d671c412bf84)) - update dependency com.google.cloud:google-cloud-core-bom to v1.95.0 ([#​377](https://www.github.com/googleapis/java-shared-dependencies/issues/377)) ([297ea62](https://www.github.com/googleapis/java-shared-dependencies/commit/297ea621e02f8c0679c8b07ed399d11eaacecc14)) - update dependency com.google.code.gson:gson to v2.8.7 ([#​370](https://www.github.com/googleapis/java-shared-dependencies/issues/370)) ([cdc1b8e](https://www.github.com/googleapis/java-shared-dependencies/commit/cdc1b8ea1c93f97b712081ca8dc8ea57f342b69e)) - update dependency com.google.protobuf:protobuf-bom to v3.17.1 ([#​369](https://www.github.com/googleapis/java-shared-dependencies/issues/369)) ([5a19574](https://www.github.com/googleapis/java-shared-dependencies/commit/5a19574bc626bb3c6b573ed1d177e8907188dec1)) - update dependency com.google.protobuf:protobuf-bom to v3.17.2 ([#​374](https://www.github.com/googleapis/java-shared-dependencies/issues/374)) ([83516e6](https://www.github.com/googleapis/java-shared-dependencies/commit/83516e691b99e5e5d22d27e561781a5ade5fb514)) - update dependency io.grpc:grpc-bom to v1.38.0 ([#​364](https://www.github.com/googleapis/java-shared-dependencies/issues/364)) ([00db570](https://www.github.com/googleapis/java-shared-dependencies/commit/00db5701c3b0aa609f3778c06911a9a0248ca342)) - update gax.version to v1.65.0 ([#​376](https://www.github.com/googleapis/java-shared-dependencies/issues/376)) ([b793a0d](https://www.github.com/googleapis/java-shared-dependencies/commit/b793a0d7744ff1b0f8ae5d3d13ec4776ae8d3089)) - update google.common-protos.version to v2.3.1 ([#​366](https://www.github.com/googleapis/java-shared-dependencies/issues/366)) ([7d6a7fa](https://www.github.com/googleapis/java-shared-dependencies/commit/7d6a7fa7a2cad2b3f2ecf45e42d2ed5db0b60a43)) - update google.common-protos.version to v2.3.2 ([#​375](https://www.github.com/googleapis/java-shared-dependencies/issues/375)) ([68a47ad](https://www.github.com/googleapis/java-shared-dependencies/commit/68a47ad3243f3e980db74c9c8505a1b3063c131b))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b8ffbb621253..ca3a4615db21 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.2.0 + 1.3.0 pom import From ccba80ca1f801cb324d397eaafe204e21caff044 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 21:00:07 +0200 Subject: [PATCH 0718/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v20.6.0 (#695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 69d06b88b5f9..363ae365cef0 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 20.5.0 + 20.6.0 pom import From d3f9553f62762308c87cb83cc6003479e958b61a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 7 Jun 2021 12:18:09 -0700 Subject: [PATCH 0719/2363] chore: regenerate README (#696) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-06-07 19:02:35,177 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-07 19:02:36,573 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/adbb05f8-f040-494d-881e-808a85e5c63e/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 8acc1371ee82..d7e72668357d 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "9a078f1cfe272fdfe08abd380410b07923c6f101" + "sha": "8244f37691539ec3d32aae334cf21c0992c3d2d3" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c3e41da0fa256ad7f6b4bc76b9d069dedecdfef4" + "sha": "2430f8d90ed8a508e8422a3a7191e656d5a6bf53" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1fbc3c888b39..ce17d06482ad 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.5.0 + 20.6.0 pom import @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.5.0') +implementation platform('com.google.cloud:libraries-bom:20.6.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From bf64a7ee6bcc96c4c687e9a7ccfca422550c0e06 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 22:16:37 +0200 Subject: [PATCH 0720/2363] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.23 (#694) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1d663905c278..86dcc3afaff6 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 88b7d71c90f6..a5f7a7be57b2 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -33,7 +33,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f57350bebdbd..cf3e9a5d6cf6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 363ae365cef0..3ce77d713cd4 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 From 3c923a081a58f1e525723e1742a76ad4d2ed4ffc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 22:17:11 +0200 Subject: [PATCH 0721/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.95.0 (#691) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 86dcc3afaff6..c95d254bfc4c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.94.8 + 1.95.0 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cf3e9a5d6cf6..21cfc01a10bc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.94.8 + 1.95.0 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 3ce77d713cd4..c9cf1923f0ff 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.94.8 + 1.95.0 tests From d7bdc2404220a8f11cfa20e3ef803b5fd42d80ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 22:24:05 +0200 Subject: [PATCH 0722/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.17.2 (#690) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.protobuf:protobuf-java-util | `3.17.1` -> `3.17.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.2/compatibility-slim/3.17.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.2/confidence-slim/3.17.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c95d254bfc4c..6d9c7deab46f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.17.1 + 3.17.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 21cfc01a10bc..1ab84a35f1b0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.17.1 + 3.17.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c9cf1923f0ff..b7a0c312ed37 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.17.1 + 3.17.2 From dd061bbb2fd38351dfa6199dc68ef4bce0a88950 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 7 Jun 2021 20:36:06 +0000 Subject: [PATCH 0723/2363] chore: release 1.113.1 (#693) :robot: I have created a release \*beep\* \*boop\* --- ### [1.113.1](https://www.github.com/googleapis/java-pubsub/compare/v1.113.0...v1.113.1) (2021-06-07) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v1.95.0 ([#691](https://www.github.com/googleapis/java-pubsub/issues/691)) ([3c923a0](https://www.github.com/googleapis/java-pubsub/commit/3c923a081a58f1e525723e1742a76ad4d2ed4ffc)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#692](https://www.github.com/googleapis/java-pubsub/issues/692)) ([091c49b](https://www.github.com/googleapis/java-pubsub/commit/091c49b6416ae13802bea3a043656315d8539a39)) * update dependency com.google.protobuf:protobuf-java-util to v3.17.2 ([#690](https://www.github.com/googleapis/java-pubsub/issues/690)) ([d7bdc24](https://www.github.com/googleapis/java-pubsub/commit/d7bdc2404220a8f11cfa20e3ef803b5fd42d80ac)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 93ccc7677935..31bb00c3f38b 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +### [1.113.1](https://www.github.com/googleapis/java-pubsub/compare/v1.113.0...v1.113.1) (2021-06-07) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v1.95.0 ([#691](https://www.github.com/googleapis/java-pubsub/issues/691)) ([bc75411](https://www.github.com/googleapis/java-pubsub/commit/bc754112599c744374f95237bb7e9b8b4d374531)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#692](https://www.github.com/googleapis/java-pubsub/issues/692)) ([1ba00a2](https://www.github.com/googleapis/java-pubsub/commit/1ba00a2da7ecd8447a182ae2f9c644c7b01fe8bd)) +* update dependency com.google.protobuf:protobuf-java-util to v3.17.2 ([#690](https://www.github.com/googleapis/java-pubsub/issues/690)) ([2ac440c](https://www.github.com/googleapis/java-pubsub/commit/2ac440cbb55dd24d5783fb74b77b5dfc97aed951)) + ## [1.113.0](https://www.github.com/googleapis/java-pubsub/compare/v1.112.5...v1.113.0) (2021-05-31) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 764513294db4..f9cba39c8b71 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.1-SNAPSHOT + 1.113.1 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.1-SNAPSHOT + 1.95.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.1-SNAPSHOT + 1.95.1 com.google.cloud google-cloud-pubsub - 1.113.1-SNAPSHOT + 1.113.1
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c6cf74ca648c..a38f0236439e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.1-SNAPSHOT + 1.113.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.1-SNAPSHOT + 1.113.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9710b7207ba0..87775439a523 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.1-SNAPSHOT + 1.95.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.1-SNAPSHOT + 1.113.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ca3a4615db21..5a89dbaec508 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.1-SNAPSHOT + 1.113.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.1-SNAPSHOT + 1.95.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.1-SNAPSHOT + 1.95.1 com.google.cloud google-cloud-pubsub - 1.113.1-SNAPSHOT + 1.113.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 70656e5ed768..6dfe1a6bfde0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.1-SNAPSHOT + 1.95.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.1-SNAPSHOT + 1.113.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1ab84a35f1b0..070aa47353a1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.1-SNAPSHOT + 1.113.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8035c3966459..93de43578b4a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.0:1.95.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.95.0:1.95.1-SNAPSHOT -google-cloud-pubsub:1.113.0:1.113.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.1:1.95.1 +grpc-google-cloud-pubsub-v1:1.95.1:1.95.1 +google-cloud-pubsub:1.113.1:1.113.1 \ No newline at end of file From 34c4b66e85887c983b0a9a78a2d670e4ff48c702 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 7 Jun 2021 20:52:05 +0000 Subject: [PATCH 0724/2363] chore: release 1.113.2-SNAPSHOT (#697) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f9cba39c8b71..08231cebcc84 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.1 + 1.113.2-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.1 + 1.95.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.1 + 1.95.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.1 + 1.113.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a38f0236439e..e6007a99f152 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.1 + 1.113.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.1 + 1.113.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 87775439a523..14ca2092ac7b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.1 + 1.95.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.1 + 1.113.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5a89dbaec508..a7e705964334 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.1 + 1.113.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.1 + 1.95.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.1 + 1.95.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.1 + 1.113.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6dfe1a6bfde0..03ff91a81af7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.1 + 1.95.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.1 + 1.113.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 070aa47353a1..4a321e4cbc89 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.1 + 1.113.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 93de43578b4a..7f3880fc0f5a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.1:1.95.1 -grpc-google-cloud-pubsub-v1:1.95.1:1.95.1 -google-cloud-pubsub:1.113.1:1.113.1 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.1:1.95.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.95.1:1.95.2-SNAPSHOT +google-cloud-pubsub:1.113.1:1.113.2-SNAPSHOT \ No newline at end of file From c76fc71de78dcd568ee1b5d99fe339f45cc1f9bc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Jun 2021 20:58:46 +0200 Subject: [PATCH 0725/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.95.1 (#701) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6d9c7deab46f..a4e332a768b6 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.95.0 + 1.95.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4a321e4cbc89..ab05e7e0ad43 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.95.0 + 1.95.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b7a0c312ed37..47aa5a3deef2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.95.0 + 1.95.1 tests From 1a84164075cf66d2189acdbbaebb876658c1d735 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Jun 2021 21:03:16 +0200 Subject: [PATCH 0726/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.17.3 (#700) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a4e332a768b6..bf882c231502 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.17.2 + 3.17.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ab05e7e0ad43..ae1b48149261 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.17.2 + 3.17.3 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 47aa5a3deef2..2c3242944be0 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.17.2 + 3.17.3 From 7301e9fa2f45cef3d443f3cff84a22fcb811f76b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Jun 2021 21:11:28 +0200 Subject: [PATCH 0727/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.113.1 (#699) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bf882c231502..ae9ad6c30535 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.113.0 + 1.113.1 From e7e9eb999f6db4fb47351cc90bf5e7528fd80201 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 9 Jun 2021 12:16:03 -0700 Subject: [PATCH 0728/2363] chore: regenerate README (#703) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-06-09 19:01:04,498 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-09 19:01:06,169 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/46348a2a-ebf8-49da-80e6-4f4e761fb73c/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index d7e72668357d..8186235dd30f 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "8244f37691539ec3d32aae334cf21c0992c3d2d3" + "sha": "c91e208efd04218dd5dd4f69743307375c8d6f06" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2430f8d90ed8a508e8422a3a7191e656d5a6bf53" + "sha": "740366bbb9a7e0f4b77fc75dc26be1d3a376c3e0" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ce17d06482ad..7eecc841f375 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.113.0' +compile 'com.google.cloud:google-cloud-pubsub:1.113.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.1" ``` ## Authentication From 6803364bac21a3c20a597c7f8d198c0d5e7c7f60 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 19:18:03 +0000 Subject: [PATCH 0729/2363] chore: release 1.113.2 (#702) :robot: I have created a release \*beep\* \*boop\* --- ### [1.113.2](https://www.github.com/googleapis/java-pubsub/compare/v1.113.1...v1.113.2) (2021-06-09) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v1.95.1 ([#701](https://www.github.com/googleapis/java-pubsub/issues/701)) ([c76fc71](https://www.github.com/googleapis/java-pubsub/commit/c76fc71de78dcd568ee1b5d99fe339f45cc1f9bc)) * update dependency com.google.protobuf:protobuf-java-util to v3.17.3 ([#700](https://www.github.com/googleapis/java-pubsub/issues/700)) ([1a84164](https://www.github.com/googleapis/java-pubsub/commit/1a84164075cf66d2189acdbbaebb876658c1d735)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 31bb00c3f38b..483420d2ce75 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [1.113.2](https://www.github.com/googleapis/java-pubsub/compare/v1.113.1...v1.113.2) (2021-06-09) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v1.95.1 ([#701](https://www.github.com/googleapis/java-pubsub/issues/701)) ([c91e208](https://www.github.com/googleapis/java-pubsub/commit/c91e208efd04218dd5dd4f69743307375c8d6f06)) +* update dependency com.google.protobuf:protobuf-java-util to v3.17.3 ([#700](https://www.github.com/googleapis/java-pubsub/issues/700)) ([60f9b8d](https://www.github.com/googleapis/java-pubsub/commit/60f9b8d950d20a7b5a0fccad082d9014cd44d20c)) + ### [1.113.1](https://www.github.com/googleapis/java-pubsub/compare/v1.113.0...v1.113.1) (2021-06-07) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 08231cebcc84..d1dfbbbd0a79 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.2-SNAPSHOT + 1.113.2 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.2-SNAPSHOT + 1.95.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.2-SNAPSHOT + 1.95.2 com.google.cloud google-cloud-pubsub - 1.113.2-SNAPSHOT + 1.113.2
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e6007a99f152..002fd56f9904 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.2-SNAPSHOT + 1.113.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.2-SNAPSHOT + 1.113.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 14ca2092ac7b..a99844f37d62 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.2-SNAPSHOT + 1.95.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.2-SNAPSHOT + 1.113.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a7e705964334..7c6be4388ffe 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.2-SNAPSHOT + 1.113.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.2-SNAPSHOT + 1.95.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.2-SNAPSHOT + 1.95.2 com.google.cloud google-cloud-pubsub - 1.113.2-SNAPSHOT + 1.113.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 03ff91a81af7..6793aa460956 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.2-SNAPSHOT + 1.95.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.2-SNAPSHOT + 1.113.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ae1b48149261..ccd8b326f2ac 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.2-SNAPSHOT + 1.113.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7f3880fc0f5a..ab79ee6c6f1c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.1:1.95.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.95.1:1.95.2-SNAPSHOT -google-cloud-pubsub:1.113.1:1.113.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.2:1.95.2 +grpc-google-cloud-pubsub-v1:1.95.2:1.95.2 +google-cloud-pubsub:1.113.2:1.113.2 \ No newline at end of file From 95ab03cbdc89e90953c8ab081f75b42898f96114 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 19:30:03 +0000 Subject: [PATCH 0730/2363] chore: release 1.113.3-SNAPSHOT (#704) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d1dfbbbd0a79..de0fbacb48f3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.2 + 1.113.3-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.2 + 1.95.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.2 + 1.95.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.2 + 1.113.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 002fd56f9904..cb03fc9f0d9a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.2 + 1.113.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.2 + 1.113.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a99844f37d62..eca0e7b6da32 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.2 + 1.95.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.2 + 1.113.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7c6be4388ffe..470c7891fe26 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.2 + 1.113.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.2 + 1.95.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.2 + 1.95.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.2 + 1.113.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6793aa460956..719cc4b4d4b6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.2 + 1.95.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.2 + 1.113.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ccd8b326f2ac..cf94f4c329f4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.2 + 1.113.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ab79ee6c6f1c..a7f723aae7a7 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.2:1.95.2 -grpc-google-cloud-pubsub-v1:1.95.2:1.95.2 -google-cloud-pubsub:1.113.2:1.113.2 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.2:1.95.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.95.2:1.95.3-SNAPSHOT +google-cloud-pubsub:1.113.2:1.113.3-SNAPSHOT \ No newline at end of file From 194a25ad8dee6c24b18bba67e400d63382201ebe Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 9 Jun 2021 12:32:03 -0700 Subject: [PATCH 0731/2363] chore: regenerate README (#705) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-06-09 19:18:16,364 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-09 19:18:17,762 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/5a015a45-588e-452b-afde-ac1a0835d8f4/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 8186235dd30f..6b56d302cc91 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "c91e208efd04218dd5dd4f69743307375c8d6f06" + "sha": "3238e87dd293cfb2804948633b929c773a3b3e09" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7eecc841f375..267c64022548 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -40,7 +40,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.113.0 + 1.113.1 ``` From 8b795c9926b30f2d64c023d07f6dd18039cfd772 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Jun 2021 00:09:24 +0200 Subject: [PATCH 0732/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.113.2 (#706) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ae9ad6c30535..85987a210628 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.113.1 + 1.113.2 From b72772fd17d2b7318372c5971ed097f5837de78a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Jun 2021 00:09:39 +0200 Subject: [PATCH 0733/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.95.2 (#707) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 85987a210628..a37a0b7ca231 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.95.1 + 1.95.2 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cf94f4c329f4..aa69982454cb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.95.1 + 1.95.2 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2c3242944be0..767b3d5bf054 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.95.1 + 1.95.2 tests From 0b9f3a76a8605c082c576cd68866e6171dc26835 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 22:20:06 +0000 Subject: [PATCH 0734/2363] chore: release 1.113.3 (#708) :robot: I have created a release \*beep\* \*boop\* --- ### [1.113.3](https://www.github.com/googleapis/java-pubsub/compare/v1.113.2...v1.113.3) (2021-06-09) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v1.95.2 ([#707](https://www.github.com/googleapis/java-pubsub/issues/707)) ([b72772f](https://www.github.com/googleapis/java-pubsub/commit/b72772fd17d2b7318372c5971ed097f5837de78a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 483420d2ce75..d19e367bab45 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.113.3](https://www.github.com/googleapis/java-pubsub/compare/v1.113.2...v1.113.3) (2021-06-09) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v1.95.2 ([#707](https://www.github.com/googleapis/java-pubsub/issues/707)) ([60c7a68](https://www.github.com/googleapis/java-pubsub/commit/60c7a68fefd54525958c3b195142d8613405f5d2)) + ### [1.113.2](https://www.github.com/googleapis/java-pubsub/compare/v1.113.1...v1.113.2) (2021-06-09) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index de0fbacb48f3..a3dfbd907bc8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.3-SNAPSHOT + 1.113.3 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.3-SNAPSHOT + 1.95.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.3-SNAPSHOT + 1.95.3 com.google.cloud google-cloud-pubsub - 1.113.3-SNAPSHOT + 1.113.3
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cb03fc9f0d9a..4d578a673535 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.3-SNAPSHOT + 1.113.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.3-SNAPSHOT + 1.113.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index eca0e7b6da32..6bbe412a2eea 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.3-SNAPSHOT + 1.95.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.3-SNAPSHOT + 1.113.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 470c7891fe26..0df684df9179 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.3-SNAPSHOT + 1.113.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.3-SNAPSHOT + 1.95.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.3-SNAPSHOT + 1.95.3 com.google.cloud google-cloud-pubsub - 1.113.3-SNAPSHOT + 1.113.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 719cc4b4d4b6..c06296309e27 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.3-SNAPSHOT + 1.95.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.3-SNAPSHOT + 1.113.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index aa69982454cb..059f472d346d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.3-SNAPSHOT + 1.113.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a7f723aae7a7..08ed637aa47c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.2:1.95.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.95.2:1.95.3-SNAPSHOT -google-cloud-pubsub:1.113.2:1.113.3-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.3:1.95.3 +grpc-google-cloud-pubsub-v1:1.95.3:1.95.3 +google-cloud-pubsub:1.113.3:1.113.3 \ No newline at end of file From 1ead1323361d4df2a4bc1e21d579d3fc81022dcb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 9 Jun 2021 15:22:06 -0700 Subject: [PATCH 0735/2363] chore: regenerate README (#709) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-06-09 22:11:35,616 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-09 22:11:36,980 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/2887f7af-b3aa-48e8-9f7f-3c38b5ffe54c/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 6b56d302cc91..b8c88b4d7088 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "3238e87dd293cfb2804948633b929c773a3b3e09" + "sha": "60c7a68fefd54525958c3b195142d8613405f5d2" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 267c64022548..ade779d8fea8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -40,7 +40,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.113.1 + 1.113.2 ``` @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.113.1' +compile 'com.google.cloud:google-cloud-pubsub:1.113.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.2" ``` ## Authentication From 25f0a4281f31567d3a71bb8c8f4d05f0e7f55cc7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 22:30:09 +0000 Subject: [PATCH 0736/2363] chore: release 1.113.4-SNAPSHOT (#710) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a3dfbd907bc8..36aad81d30d6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.3 + 1.113.4-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.3 + 1.95.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.3 + 1.95.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.3 + 1.113.4-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4d578a673535..b5fb60c21b0d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.3 + 1.113.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.3 + 1.113.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6bbe412a2eea..fcaacfd2d88e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.3 + 1.95.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.3 + 1.113.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0df684df9179..2f625375572e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.3 + 1.113.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.3 + 1.95.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.3 + 1.95.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.3 + 1.113.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c06296309e27..77543ef51dd6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.3 + 1.95.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.3 + 1.113.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 059f472d346d..61e005a083ce 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.3 + 1.113.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 08ed637aa47c..e68aaf1991d1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.3:1.95.3 -grpc-google-cloud-pubsub-v1:1.95.3:1.95.3 -google-cloud-pubsub:1.113.3:1.113.3 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.3:1.95.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.95.3:1.95.4-SNAPSHOT +google-cloud-pubsub:1.113.3:1.113.4-SNAPSHOT \ No newline at end of file From 94d0c44175e58390f1aa4e394a820c62f698d4d1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Jun 2021 17:11:49 +0200 Subject: [PATCH 0737/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.113.3 (#711) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a37a0b7ca231..e8dc2c51eb9c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.113.2 + 1.113.3 From 58a81838ee25626bac80afeb6ff83942dc403077 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 10 Jun 2021 08:26:07 -0700 Subject: [PATCH 0738/2363] chore: regenerate README (#712) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-06-10 15:14:17,196 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-10 15:14:18,513 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/3ec565b8-631f-4e8a-91d5-7cb6707020a6/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index b8c88b4d7088..a8699866101f 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "60c7a68fefd54525958c3b195142d8613405f5d2" + "sha": "05d1401ec5f94e7626648d743e88759c80eeac50" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "740366bbb9a7e0f4b77fc75dc26be1d3a376c3e0" + "sha": "5cae043787729a908ed0cab28ca27baf9acee3c4" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ade779d8fea8..cf997a06e2bb 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -40,7 +40,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.113.2 + 1.113.3 ``` @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.113.2' +compile 'com.google.cloud:google-cloud-pubsub:1.113.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.3" ``` ## Authentication From b244e45f452f2395a960556867cde1ecf52f5a17 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Mon, 14 Jun 2021 14:33:03 -0700 Subject: [PATCH 0739/2363] test: presubmit against Lite samples (#713) --- java-pubsub/.github/sync-repo-settings.yaml | 2 + java-pubsub/.kokoro/build.sh | 35 +++++++++++++++++ .../presubmit-against-pubsublite-samples.cfg | 38 +++++++++++++++++++ java-pubsub/synth.py | 2 + 4 files changed, 77 insertions(+) create mode 100644 java-pubsub/.kokoro/presubmit/presubmit-against-pubsublite-samples.cfg diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 8ae7a9303b99..253d63e15a6c 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -17,6 +17,7 @@ branchProtectionRules: - units (8) - units (11) - 'Kokoro - Test: Integration' + - 'Kokoro - Against Pub/Sub Lite samples' - cla/google - pattern: 1.111.0-sp isAdminEnforced: true @@ -33,6 +34,7 @@ branchProtectionRules: - units (8) - units (11) - 'Kokoro - Test: Integration' + - 'Kokoro - Against Pub/Sub Lite samples' - cla/google permissionRules: - team: yoshi-admins diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index e72b325e873e..476785ec3085 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -77,6 +77,41 @@ samples) SAMPLES_DIR=samples/snapshot fi + if [[ -f ${SAMPLES_DIR}/pom.xml ]] + then + for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do + [[ -f "$FILE" ]] || continue + source "$FILE" + done + + pushd ${SAMPLES_DIR} + mvn -B \ + -Penable-samples \ + -ntp \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -fae \ + verify + RETURN_CODE=$? + popd + else + echo "no sample pom.xml found - skipping sample tests" + fi + ;; +presubmit-against-pubsublite-samples) + ## cd to the directory one level above the root of the repo + cd ${scriptDir}/../.. + git clone https://github.com/googleapis/java-pubsublite.git + pushd java-pubsublite/ + + SAMPLES_DIR=samples + # Only run ITs in in snippets/ on presubmit PRs. + if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]] + then + SAMPLES_DIR=samples/snippets + fi + if [[ -f ${SAMPLES_DIR}/pom.xml ]] then for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do diff --git a/java-pubsub/.kokoro/presubmit/presubmit-against-pubsublite-samples.cfg b/java-pubsub/.kokoro/presubmit/presubmit-against-pubsublite-samples.cfg new file mode 100644 index 000000000000..7efa00b77184 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/presubmit-against-pubsublite-samples.cfg @@ -0,0 +1,38 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/java11" +} + +env_vars: { + key: "JOB_TYPE" + value: "presubmit-against-pubsublite-samples" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "java-docs-samples-testing" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "java-docs-samples-testing" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT_NUMBER" + value: "779844219229" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-docs-samples-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-docs-samples-service-account" +} \ No newline at end of file diff --git a/java-pubsub/synth.py b/java-pubsub/synth.py index 8b63ce45a942..991fba4db712 100644 --- a/java-pubsub/synth.py +++ b/java-pubsub/synth.py @@ -524,4 +524,6 @@ java.common_templates(excludes=[ ".github/workflows/samples.yaml", + ".kokoro/build.sh", + ".github/sync-repo-settings.yaml", ]) From b48e70ca1f36a687fc7fd8625c677b7005e21f35 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 16 Jun 2021 14:09:02 -0700 Subject: [PATCH 0740/2363] fix: Update dependencies.sh to not break on mac (#718) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/852b4d4a-b2e4-4281-b35d-519aa48bf212/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/8f76a885deaaf2fe234daeba4a8cc4d1b3de8086 --- java-pubsub/.kokoro/dependencies.sh | 4 ++-- java-pubsub/synth.metadata | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index 59d2aafc790f..a7e999d33bfb 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -46,7 +46,7 @@ function completenessCheck() { # This is stripped from the output as it is not present in the flattened pom. # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// >.org-list.txt + mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) msg "Generating dependency list using flattened pom..." @@ -70,7 +70,7 @@ function completenessCheck() { set +e error_count=0 -for path in $(find -name ".flattened-pom.xml") +for path in **/.flattened-pom.xml do # Check flattened pom in each dir that contains it for completeness dir=$(dirname "$path") diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 95f140fbc869..927fb80a99d6 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "d6cc2d2c42aa328b20a98b43cd72b5b36faa04b3" + "sha": "cf8e83d6ab07da3e37b346c124529bc89226c277" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8eae0234a16b26c2ff616d305dbd9786c8b10a47" + "sha": "8f76a885deaaf2fe234daeba4a8cc4d1b3de8086" } } ], @@ -45,13 +45,11 @@ ".github/readme/synth.py", ".github/release-please.yml", ".github/snippet-bot.yml", - ".github/sync-repo-settings.yaml", ".github/trusted-contribution.yml", ".github/workflows/approve-readme.yaml", ".github/workflows/auto-release.yaml", ".github/workflows/ci.yaml", ".kokoro/build.bat", - ".kokoro/build.sh", ".kokoro/coerce_logs.sh", ".kokoro/common.cfg", ".kokoro/common.sh", @@ -100,6 +98,7 @@ "CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "LICENSE", + "SECURITY.md", "codecov.yaml", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java", "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java", From 05d72243236df4b47b182fc137103aa0b5222236 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Tue, 22 Jun 2021 07:29:06 -0700 Subject: [PATCH 0741/2363] fix: allow retries for subscriber unary rpcs (#721) * fix: allow retries for subscriber unary rpcs * fix: format --- .../java/com/google/cloud/pubsub/v1/Subscriber.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 9de0420ea9cf..656a19fdd5ad 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -18,7 +18,6 @@ import com.google.api.core.AbstractApiService; import com.google.api.core.ApiClock; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiService; import com.google.api.core.BetaApi; import com.google.api.core.CurrentMillisClock; @@ -35,7 +34,6 @@ import com.google.api.gax.rpc.HeaderProvider; import com.google.api.gax.rpc.NoHeaderProvider; import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; import com.google.auth.oauth2.GoogleCredentials; import com.google.cloud.pubsub.v1.stub.GrpcSubscriberStub; import com.google.cloud.pubsub.v1.stub.SubscriberStub; @@ -97,7 +95,6 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac 20 * 1024 * 1024; // 20MB API maximum message size. @InternalApi static final int MAX_ACK_DEADLINE_SECONDS = 600; @InternalApi static final int MIN_ACK_DEADLINE_SECONDS = 10; - private static final Duration UNARY_TIMEOUT = Duration.ofSeconds(60); private static final Duration ACK_EXPIRATION_PADDING = Duration.ofSeconds(5); private static final Logger logger = Logger.getLogger(Subscriber.class.getName()); @@ -167,14 +164,6 @@ private Subscriber(Builder builder) { .setTransportChannelProvider(channelProvider) .setHeaderProvider(builder.headerProvider) .setEndpoint(builder.endpoint) - .applyToAllUnaryMethods( - new ApiFunction, Void>() { - @Override - public Void apply(UnaryCallSettings.Builder settingsBuilder) { - settingsBuilder.setSimpleTimeoutNoRetries(UNARY_TIMEOUT); - return null; - } - }) .build(); // TODO(pongad): what about internal header?? } catch (Exception e) { From 9c6785d1dfd864b66cf7c2b7744dec9447cd182d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 22 Jun 2021 08:04:13 -0700 Subject: [PATCH 0742/2363] chore: minimize noise from build scripts (#720) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ff848a34-f00a-4cbf-b94c-1e3854a10690/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/1c0c698705e668ccb3d68556ae7260f16ce63a6e --- java-pubsub/.kokoro/coerce_logs.sh | 1 - java-pubsub/synth.metadata | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/coerce_logs.sh b/java-pubsub/.kokoro/coerce_logs.sh index 5cf7ba49e6bb..46edbf7f2fcd 100755 --- a/java-pubsub/.kokoro/coerce_logs.sh +++ b/java-pubsub/.kokoro/coerce_logs.sh @@ -28,7 +28,6 @@ job=$(basename ${KOKORO_JOB_NAME}) echo "coercing sponge logs..." for xml in `find . -name *-sponge_log.xml` do - echo "processing ${xml}" class=$(basename ${xml} | cut -d- -f2) dir=$(dirname ${xml})/${job}/${class} text=$(dirname ${xml})/${class}-sponge_log.txt diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 927fb80a99d6..ff6653fd8202 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "cf8e83d6ab07da3e37b346c124529bc89226c277" + "sha": "0ebad0a2c92f00126d9c00aec1af3c73333c3a31" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8f76a885deaaf2fe234daeba4a8cc4d1b3de8086" + "sha": "1c0c698705e668ccb3d68556ae7260f16ce63a6e" } } ], From e48d41f2dcb90c526269f10c241c1065abc0b622 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 08:26:51 -0700 Subject: [PATCH 0743/2363] chore: release 1.113.4 (#719) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index d19e367bab45..1d8c9016a721 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [1.113.4](https://www.github.com/googleapis/java-pubsub/compare/v1.113.3...v1.113.4) (2021-06-22) + + +### Bug Fixes + +* allow retries for subscriber unary rpcs ([#721](https://www.github.com/googleapis/java-pubsub/issues/721)) ([3f0a6d2](https://www.github.com/googleapis/java-pubsub/commit/3f0a6d2474dcbac604991c45298c7b89fefa27a7)) +* Update dependencies.sh to not break on mac ([#718](https://www.github.com/googleapis/java-pubsub/issues/718)) ([0ebad0a](https://www.github.com/googleapis/java-pubsub/commit/0ebad0a2c92f00126d9c00aec1af3c73333c3a31)) + ### [1.113.3](https://www.github.com/googleapis/java-pubsub/compare/v1.113.2...v1.113.3) (2021-06-09) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 36aad81d30d6..e2f2394ae4b2 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.4-SNAPSHOT + 1.113.4 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.4-SNAPSHOT + 1.95.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.4-SNAPSHOT + 1.95.4 com.google.cloud google-cloud-pubsub - 1.113.4-SNAPSHOT + 1.113.4
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b5fb60c21b0d..cc287322f034 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.4-SNAPSHOT + 1.113.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.4-SNAPSHOT + 1.113.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fcaacfd2d88e..3626c88ccba1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.4-SNAPSHOT + 1.95.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.4-SNAPSHOT + 1.113.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2f625375572e..41f3e979610a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.4-SNAPSHOT + 1.113.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.4-SNAPSHOT + 1.95.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.4-SNAPSHOT + 1.95.4 com.google.cloud google-cloud-pubsub - 1.113.4-SNAPSHOT + 1.113.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 77543ef51dd6..82511ed1ad88 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.4-SNAPSHOT + 1.95.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.4-SNAPSHOT + 1.113.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 61e005a083ce..f8b426f14619 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.4-SNAPSHOT + 1.113.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e68aaf1991d1..e237c0973f7c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.3:1.95.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.95.3:1.95.4-SNAPSHOT -google-cloud-pubsub:1.113.3:1.113.4-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.4:1.95.4 +grpc-google-cloud-pubsub-v1:1.95.4:1.95.4 +google-cloud-pubsub:1.113.4:1.113.4 \ No newline at end of file From a997517af14edfc1a750a81e09a1ede7f1f48b53 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 15:44:02 +0000 Subject: [PATCH 0744/2363] chore: release 1.113.5-SNAPSHOT (#722) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e2f2394ae4b2..1d6da60d0309 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.4 + 1.113.5-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.4 + 1.95.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.4 + 1.95.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.4 + 1.113.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cc287322f034..7259074f040b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.4 + 1.113.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.4 + 1.113.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3626c88ccba1..eb9115cc81a5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.4 + 1.95.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.4 + 1.113.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 41f3e979610a..a58bbcc1c93d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.4 + 1.113.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.4 + 1.95.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.4 + 1.95.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.4 + 1.113.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 82511ed1ad88..5f77fa8dc8a9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.4 + 1.95.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.4 + 1.113.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f8b426f14619..2ec0e7b92baa 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.4 + 1.113.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e237c0973f7c..99fc57bcfcad 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.4:1.95.4 -grpc-google-cloud-pubsub-v1:1.95.4:1.95.4 -google-cloud-pubsub:1.113.4:1.113.4 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.4:1.95.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.95.4:1.95.5-SNAPSHOT +google-cloud-pubsub:1.113.4:1.113.5-SNAPSHOT \ No newline at end of file From a56269fe90a46e0d0904ecac8d1e95a9e6eac7c5 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 23 Jun 2021 08:33:19 -0700 Subject: [PATCH 0745/2363] samples: add publish with flow control sample (#717) * samples: add publish with flow control sample * address kamal's comments --- .../pubsub/PublishWithFlowControlExample.java | 94 +++++++++++++++++++ .../src/test/java/pubsub/PublisherIT.java | 5 + 2 files changed, 99 insertions(+) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java new file mode 100644 index 000000000000..b1d4a8ef8be5 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java @@ -0,0 +1,94 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publisher_flow_control] + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.batching.BatchingSettings; +import com.google.api.gax.batching.FlowControlSettings; +import com.google.api.gax.batching.FlowController.LimitExceededBehavior; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; + +public class PublishWithFlowControlExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + publishWithFlowControlExample(projectId, topicId); + } + + public static void publishWithFlowControlExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + TopicName topicName = TopicName.of(projectId, topicId); + Publisher publisher = null; + List> messageIdFutures = new ArrayList<>(); + + try { + // Configure how many messages the publisher client can hold in memory + // and what to do when messages exceed the limit. + FlowControlSettings flowControlSettings = + FlowControlSettings.newBuilder() + // Block more messages from being published when the limit is reached. The other + // options are Ignore (or continue publishing) and ThrowException (or error out). + .setLimitExceededBehavior(LimitExceededBehavior.Block) + .setMaxOutstandingRequestBytes(10 * 1024 * 1024L) // 10 MiB + .setMaxOutstandingElementCount(100L) // 100 messages + .build(); + + // By default, messages are not batched. + BatchingSettings batchingSettings = + BatchingSettings.newBuilder().setFlowControlSettings(flowControlSettings).build(); + + publisher = Publisher.newBuilder(topicName).setBatchingSettings(batchingSettings).build(); + + // Publish 1000 messages in quick succession may be constrained by publisher flow control. + for (int i = 0; i < 1000; i++) { + String message = "message " + i; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + messageIdFutures.add(messageIdFuture); + } + } finally { + // Wait on any pending publish requests. + List messageIds = ApiFutures.allAsList(messageIdFutures).get(); + + System.out.println( + "Published " + messageIds.size() + " messages with flow control settings."); + + if (publisher != null) { + // When finished with the publisher, shut down to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} +// [END pubsub_publisher_flow_control] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java index 0ed25c0828f9..b22912d47efa 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java @@ -96,6 +96,11 @@ public void testPublisher() throws Exception { PublishWithBatchSettingsExample.publishWithBatchSettingsExample(projectId, topicId); assertThat(bout.toString()).contains("Published 100 messages with batch settings."); + bout.reset(); + // Test publish with flow control settings. + PublishWithFlowControlExample.publishWithFlowControlExample(projectId, topicId); + assertThat(bout.toString()).contains("Published 1000 messages with flow control settings."); + bout.reset(); // Test publish with concurrency control. PublishWithConcurrencyControlExample.publishWithConcurrencyControlExample(projectId, topicId); From 765e1a36ee8261c01a36504d0a7fa91460c7563d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Jun 2021 17:45:31 +0200 Subject: [PATCH 0746/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v20.7.0 (#726) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 767b3d5bf054..a8d526515a4c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 20.6.0 + 20.7.0 pom import From 77ba1d8674d7e4da064fd5720d970e4c8328fdeb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Jun 2021 17:46:11 +0200 Subject: [PATCH 0747/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.95.3 (#725) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e8dc2c51eb9c..d65d55f181e1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.95.2 + 1.95.3 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2ec0e7b92baa..238ddd6e4ede 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.95.2 + 1.95.3 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a8d526515a4c..d1c88e47aa3b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.95.2 + 1.95.3 tests From b5ac04ddb8b9d0976c631d52b3640d9a22ad52b5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 23 Jun 2021 08:46:30 -0700 Subject: [PATCH 0748/2363] chore: regenerate README (#727) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-06-23 15:35:28,340 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-23 15:35:29,629 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/9f8f1176-89aa-40d9-aa1d-b13282ad2b9e/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index a8699866101f..386b3fe479a8 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "05d1401ec5f94e7626648d743e88759c80eeac50" + "sha": "ade7981d6f650e3c359305d9b06e819f02258dc0" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5cae043787729a908ed0cab28ca27baf9acee3c4" + "sha": "9763f20e4b7bb1091082462b2f7970e965d0d414" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index cf997a06e2bb..2df670cdecf5 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -47,18 +47,18 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.6.0') +implementation platform('com.google.cloud:libraries-bom:20.7.0') compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.113.3' +compile 'com.google.cloud:google-cloud-pubsub:1.113.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.4" ``` ## Authentication @@ -256,6 +256,7 @@ has instructions for running the samples. | Publish With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | | Publish With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | | Publish With Error Handler Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | +| Publish With Flow Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | | Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | | Publish With Retry Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | | Publisher Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublisherExample.java) | From 8eeecbb9b6b125036a0e14250ac26de00fc23eec Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Jul 2021 01:22:31 +0200 Subject: [PATCH 0749/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 (#732) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.3.0` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v1.4.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​140-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare130v140-2021-06-30) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.3.0...v1.4.0) ##### Features - add grpc-gcp to dependencyManagement ([#​389](https://www.github.com/googleapis/java-shared-dependencies/issues/389)) ([57fd2e6](https://www.github.com/googleapis/java-shared-dependencies/commit/57fd2e646e28e37e0b5e4e1b37425d4897a8776f)) ##### Bug Fixes - Add `shopt -s nullglob` to dependencies script ([#​392](https://www.github.com/googleapis/java-shared-dependencies/issues/392)) ([f8f29df](https://www.github.com/googleapis/java-shared-dependencies/commit/f8f29df1c9cc6eca517c99113fb9509fd611ac92)) - Add common httpclient and oauth dependencies ([#​391](https://www.github.com/googleapis/java-shared-dependencies/issues/391)) ([09660e1](https://www.github.com/googleapis/java-shared-dependencies/commit/09660e1e50c96dcd7df4e80d8ad357f8256eda6c)) - Update dependencies.sh to not break on mac ([#​384](https://www.github.com/googleapis/java-shared-dependencies/issues/384)) ([0ae2841](https://www.github.com/googleapis/java-shared-dependencies/commit/0ae2841d7ce2885d041795c58a38d2d3973c2e5a)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.32.1 ([#​390](https://www.github.com/googleapis/java-shared-dependencies/issues/390)) ([00288c1](https://www.github.com/googleapis/java-shared-dependencies/commit/00288c18d09616582c8bec961ecc5c00ef1d4288)) - update dependency com.google.api:api-common to v1.10.4 ([#​385](https://www.github.com/googleapis/java-shared-dependencies/issues/385)) ([5f2b39b](https://www.github.com/googleapis/java-shared-dependencies/commit/5f2b39b5bdc4cec9d5ab2f050e11000ed372d057)) - update dependency com.google.api:gax-grpc to v1.65.1 ([#​382](https://www.github.com/googleapis/java-shared-dependencies/issues/382)) ([a2a1547](https://www.github.com/googleapis/java-shared-dependencies/commit/a2a15471dee21207a0b97b3bc8f6f59d6a4a2d13)) - update dependency com.google.protobuf:protobuf-bom to v3.17.3 ([#​379](https://www.github.com/googleapis/java-shared-dependencies/issues/379)) ([6f43eb5](https://www.github.com/googleapis/java-shared-dependencies/commit/6f43eb553dca98140d343bee3f1003096d79ee6c)) - update dependency io.grpc:grpc-bom to v1.38.1 ([#​386](https://www.github.com/googleapis/java-shared-dependencies/issues/386)) ([7b1d4cf](https://www.github.com/googleapis/java-shared-dependencies/commit/7b1d4cf317fbd75b91d6a63f82b5fc2f46eaf3ca)) - update dependency io.grpc:grpc-bom to v1.39.0 ([#​394](https://www.github.com/googleapis/java-shared-dependencies/issues/394)) ([ebc8af6](https://www.github.com/googleapis/java-shared-dependencies/commit/ebc8af6b3f850b58b35d9720a7a0b1545d4616bd)) - update gax.version to v1.66.0 ([#​395](https://www.github.com/googleapis/java-shared-dependencies/issues/395)) ([c73f73e](https://www.github.com/googleapis/java-shared-dependencies/commit/c73f73e84740a8117be342a66e179eaf3e29c6fd)) - update google.core.version to v1.95.1 ([#​381](https://www.github.com/googleapis/java-shared-dependencies/issues/381)) ([4496153](https://www.github.com/googleapis/java-shared-dependencies/commit/44961532f621b0ab19e9e7feebb7d588aef5d423)) - update google.core.version to v1.95.2 ([#​383](https://www.github.com/googleapis/java-shared-dependencies/issues/383)) ([7216859](https://www.github.com/googleapis/java-shared-dependencies/commit/7216859bcd67fa1ce1119831c33c50a2d5b79324)) - update google.core.version to v1.95.3 ([#​388](https://www.github.com/googleapis/java-shared-dependencies/issues/388)) ([354e4e8](https://www.github.com/googleapis/java-shared-dependencies/commit/354e4e811f4ba886406681a4261ac0455a9eb2d2)) - update google.core.version to v1.95.4 ([#​393](https://www.github.com/googleapis/java-shared-dependencies/issues/393)) ([be78ad8](https://www.github.com/googleapis/java-shared-dependencies/commit/be78ad85e31d8876eabafee7aa8242712573cb46))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a58bbcc1c93d..391d169e828a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.3.0 + 1.4.0 pom import From e1a9f03b236e1b58067873eb2a1ad0fb81a07dae Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 2 Jul 2021 13:34:28 -0700 Subject: [PATCH 0750/2363] fix: Add `shopt -s nullglob` to dependencies script (#724) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/829b066d-c60a-4113-8a45-1b0492e3af7e/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/87254ac89a9559864c0a245d6b150406439ce3d8 --- java-pubsub/.kokoro/dependencies.sh | 1 + java-pubsub/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index a7e999d33bfb..9030ba8f99ff 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -14,6 +14,7 @@ # limitations under the License. set -eo pipefail +shopt -s nullglob ## Get the directory of the build script scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index ff6653fd8202..118eba6c4b7d 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "0ebad0a2c92f00126d9c00aec1af3c73333c3a31" + "sha": "2449a7c328182bdf576e5c1c94096795ce63ca41" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1c0c698705e668ccb3d68556ae7260f16ce63a6e" + "sha": "87254ac89a9559864c0a245d6b150406439ce3d8" } } ], From 5dee4eec774cc073755fc67b9f6c8261894448f6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Jul 2021 22:36:30 +0200 Subject: [PATCH 0751/2363] deps: update dependency com.google.cloud:google-cloud-core to v1.95.4 (#730) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `1.95.3` -> `1.95.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/compatibility-slim/1.95.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/1.95.4/confidence-slim/1.95.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v1.95.4`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​1954-httpswwwgithubcomgoogleapisjava-corecomparev1953v1954-2021-06-25) [Compare Source](https://togithub.com/googleapis/java-core/compare/v1.95.3...v1.95.4)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d65d55f181e1..eb0961b1a28a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.95.3 + 1.95.4 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 238ddd6e4ede..f5e94aa96586 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.95.3 + 1.95.4 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d1c88e47aa3b..40a026305b4a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.95.3 + 1.95.4 tests From 71d4826e92919c97a02fa26b457bd9e1b3070181 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 5 Jul 2021 21:06:15 +0000 Subject: [PATCH 0752/2363] chore: release 1.113.5 (#728) :robot: I have created a release \*beep\* \*boop\* --- ### [1.113.5](https://www.github.com/googleapis/java-pubsub/compare/v1.113.4...v1.113.5) (2021-07-02) ### Bug Fixes * Add `shopt -s nullglob` to dependencies script ([#724](https://www.github.com/googleapis/java-pubsub/issues/724)) ([e1a9f03](https://www.github.com/googleapis/java-pubsub/commit/e1a9f03b236e1b58067873eb2a1ad0fb81a07dae)) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v1.95.3 ([#725](https://www.github.com/googleapis/java-pubsub/issues/725)) ([77ba1d8](https://www.github.com/googleapis/java-pubsub/commit/77ba1d8674d7e4da064fd5720d970e4c8328fdeb)) * update dependency com.google.cloud:google-cloud-core to v1.95.4 ([#730](https://www.github.com/googleapis/java-pubsub/issues/730)) ([5dee4ee](https://www.github.com/googleapis/java-pubsub/commit/5dee4eec774cc073755fc67b9f6c8261894448f6)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#732](https://www.github.com/googleapis/java-pubsub/issues/732)) ([8eeecbb](https://www.github.com/googleapis/java-pubsub/commit/8eeecbb9b6b125036a0e14250ac26de00fc23eec)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 14 ++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 1d8c9016a721..6cbe49a16d08 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +### [1.113.5](https://www.github.com/googleapis/java-pubsub/compare/v1.113.4...v1.113.5) (2021-07-02) + + +### Bug Fixes + +* Add `shopt -s nullglob` to dependencies script ([#724](https://www.github.com/googleapis/java-pubsub/issues/724)) ([25840d6](https://www.github.com/googleapis/java-pubsub/commit/25840d60c62123b71c64e3b2fea2b33d4c4c2fb4)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v1.95.3 ([#725](https://www.github.com/googleapis/java-pubsub/issues/725)) ([ae3b284](https://www.github.com/googleapis/java-pubsub/commit/ae3b2840eb25458d054c25a3c9879a8a5aa8883a)) +* update dependency com.google.cloud:google-cloud-core to v1.95.4 ([#730](https://www.github.com/googleapis/java-pubsub/issues/730)) ([b6453b3](https://www.github.com/googleapis/java-pubsub/commit/b6453b3026184e757a6f29c1baeece14ca4cc4f2)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#732](https://www.github.com/googleapis/java-pubsub/issues/732)) ([78b26c0](https://www.github.com/googleapis/java-pubsub/commit/78b26c0de4a11b88295c2861917ee354e2793bf8)) + ### [1.113.4](https://www.github.com/googleapis/java-pubsub/compare/v1.113.3...v1.113.4) (2021-06-22) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1d6da60d0309..47bfd54e109a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.5-SNAPSHOT + 1.113.5 pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.5-SNAPSHOT + 1.95.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.5-SNAPSHOT + 1.95.5 com.google.cloud google-cloud-pubsub - 1.113.5-SNAPSHOT + 1.113.5
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7259074f040b..560db365b8d8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.5-SNAPSHOT + 1.113.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.5-SNAPSHOT + 1.113.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index eb9115cc81a5..a510e580b172 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.5-SNAPSHOT + 1.95.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.5-SNAPSHOT + 1.113.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 391d169e828a..8cbbf7ad7251 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.5-SNAPSHOT + 1.113.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.5-SNAPSHOT + 1.95.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.5-SNAPSHOT + 1.95.5 com.google.cloud google-cloud-pubsub - 1.113.5-SNAPSHOT + 1.113.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5f77fa8dc8a9..6a50f567c3f8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.5-SNAPSHOT + 1.95.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.5-SNAPSHOT + 1.113.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f5e94aa96586..a16db886c56d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.5-SNAPSHOT + 1.113.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 99fc57bcfcad..7867d5ca84a9 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.4:1.95.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.95.4:1.95.5-SNAPSHOT -google-cloud-pubsub:1.113.4:1.113.5-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.5:1.95.5 +grpc-google-cloud-pubsub-v1:1.95.5:1.95.5 +google-cloud-pubsub:1.113.5:1.113.5 \ No newline at end of file From 65c6705c361688c58c6a1c8db90fcc920a5823f3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 5 Jul 2021 21:16:29 +0000 Subject: [PATCH 0753/2363] chore: release 1.113.6-SNAPSHOT (#733) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 47bfd54e109a..1f5375df12fb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.5 + 1.113.6-SNAPSHOT pom com.google.cloud @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.5 + 1.95.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.5 + 1.95.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.5 + 1.113.6-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 560db365b8d8..a3d874c14f63 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.5 + 1.113.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.5 + 1.113.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a510e580b172..b4cc6f8bafc2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.5 + 1.95.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.5 + 1.113.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8cbbf7ad7251..870425b90535 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.5 + 1.113.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -78,17 +78,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.5 + 1.95.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.5 + 1.95.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.5 + 1.113.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6a50f567c3f8..37f682b846f7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.5 + 1.95.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.5 + 1.113.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a16db886c56d..c44405fda57e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.5 + 1.113.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7867d5ca84a9..1f24a6ae7936 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.5:1.95.5 -grpc-google-cloud-pubsub-v1:1.95.5:1.95.5 -google-cloud-pubsub:1.113.5:1.113.5 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.5:1.95.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.95.5:1.95.6-SNAPSHOT +google-cloud-pubsub:1.113.5:1.113.6-SNAPSHOT \ No newline at end of file From 96aca7ea90c8f57b619dd939f09a8978f89b2bb0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 6 Jul 2021 02:10:29 +0200 Subject: [PATCH 0754/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.113.5 (#723) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.113.3` -> `1.113.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.113.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.113.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.113.5/compatibility-slim/1.113.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.113.5/confidence-slim/1.113.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.113.5`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11135-httpswwwgithubcomgoogleapisjava-pubsubcomparev11134v11135-2021-07-02) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.113.4...v1.113.5) ### [`v1.113.4`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11134-httpswwwgithubcomgoogleapisjava-pubsubcomparev11133v11134-2021-06-22) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.113.3...v1.113.4)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index eb0961b1a28a..51824b566e22 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.113.3 + 1.113.5 From 997db277d585fa8619aa4b324693cf9a6a2a32b4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 6 Jul 2021 10:30:27 -0700 Subject: [PATCH 0755/2363] chore: regenerate README (#729) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-06-23 15:47:45,027 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-23 15:47:46,206 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/9945576b-63cf-4bd7-b1b5-1f483b00b5a2/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 386b3fe479a8..92f1b75feb92 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "ade7981d6f650e3c359305d9b06e819f02258dc0" + "sha": "f59eef81a2d5fad0631c16bad0e8c24f9bab490f" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2df670cdecf5..1d5db5e6df27 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.6.0 + 20.7.0 pom import From d49cebd37cd56cf786e14a248ad334a801df93ba Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 6 Jul 2021 10:43:55 -0700 Subject: [PATCH 0756/2363] chore: regenerate README (#734) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-07-06 17:32:38,776 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-06 17:32:39,926 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/ad57be88-99a4-4230-b57e-8bfc96e86488/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 92f1b75feb92..63209f8bbc44 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "f59eef81a2d5fad0631c16bad0e8c24f9bab490f" + "sha": "adfb0926bd09cac98530e1fa3e4583581cbfae84" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "9763f20e4b7bb1091082462b2f7970e965d0d414" + "sha": "39652e3948f455fd0b77535a0145eeec561a3706" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1d5db5e6df27..7fa5696f1a34 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -40,7 +40,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.113.3 + 1.113.5 ``` @@ -53,12 +53,12 @@ compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.113.4' +compile 'com.google.cloud:google-cloud-pubsub:1.113.5' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.5" ``` ## Authentication From 7ec67c46f081d1033e5f3e85e2ab83552a360251 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 7 Jul 2021 10:52:16 -0400 Subject: [PATCH 0757/2363] chore: remove distributionManagement section (#735) All java client libraries inherit the distributionManagement section form shared-config. To prevent individual pom files from overriding the shared-config version of distributionManagement, it is being removed. --- java-pubsub/pom.xml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 870425b90535..8952ccf780b0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -41,16 +41,7 @@ https://github.com/googleapis/java-pubsub/issues GitHub Issues - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + Apache-2.0 From c10dbb1e9d07593c20e7c8c70ee284e5641f9b29 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 8 Jul 2021 12:34:13 -0400 Subject: [PATCH 0758/2363] chore: remove distributionManagement section (#737) All java client libraries inherit the distributionManagement section form shared-config. To prevent individual pom files from overriding the shared-config version of distributionManagement, it is being removed. --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1f5375df12fb..aaf3290a1b22 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -39,17 +39,6 @@ https://github.com/googleapis/java-pubsub - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - The Apache Software License, Version 2.0 From 5b6a11e57c2ff2149c882be036d5c01f4f401b07 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Jul 2021 16:38:15 +0200 Subject: [PATCH 0759/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v20.8.0 (#738) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.7.0` -> `20.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/compatibility-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/confidence-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 40a026305b4a..f71b43e75dd2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 20.7.0 + 20.8.0 pom import From bfbe95708425531d63fa834f3029e8bd31c86142 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 9 Jul 2021 07:58:27 -0700 Subject: [PATCH 0760/2363] chore: regenerate README (#740) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-07-09 14:40:21,345 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-09 14:40:22,662 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/e0fdf68c-ef89-42a8-8942-b3db56680231/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 63209f8bbc44..36cfbe8175ce 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "adfb0926bd09cac98530e1fa3e4583581cbfae84" + "sha": "3c1570eaa2a5625c5706de07c83c7b53b0dbc14b" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "39652e3948f455fd0b77535a0145eeec561a3706" + "sha": "09c59c20a4bf0daed1665af59035ff240fe356df" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7fa5696f1a34..f6304f9d0b07 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.7.0 + 20.8.0 pom import @@ -47,7 +47,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.7.0') +implementation platform('com.google.cloud:libraries-bom:20.8.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From 5575b472bb7e197cff6d016cfe44fa821427eea3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 9 Jul 2021 10:02:13 -0700 Subject: [PATCH 0761/2363] chore: remove All rights reserved clause from java.header (#739) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/f909ab15-8d07-4dd1-aff8-3fc7bb657467/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/09c59c20a4bf0daed1665af59035ff240fe356df --- java-pubsub/java.header | 2 +- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/java.header b/java-pubsub/java.header index 3a9b503aa24f..d0970ba7d375 100644 --- a/java-pubsub/java.header +++ b/java-pubsub/java.header @@ -1,5 +1,5 @@ ^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)( All [rR]ights [rR]eserved\.)?$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ ^ \*$ ^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ ^ \* you may not use this file except in compliance with the License\.$ diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 118eba6c4b7d..aa1e3d30d7d3 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "2449a7c328182bdf576e5c1c94096795ce63ca41" + "sha": "73777f88bf8c5eb7157b0e322f7c40de85befdbf" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "87254ac89a9559864c0a245d6b150406439ce3d8" + "sha": "09c59c20a4bf0daed1665af59035ff240fe356df" } } ], From 0e1cff9d8660752947d9535d59f36e8014522bed Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Jul 2021 07:28:40 -0700 Subject: [PATCH 0762/2363] chore: add dependencyDashboardLabels to renovate.json (#741) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/10140257-798c-4bbe-9c36-3883bca8ce2a/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/5d3c52f5db664eee9026db76b5bcb466f3a09ca9 --- java-pubsub/renovate.json | 5 ++++- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index decec422e190..9bc5d6c36bf6 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -69,5 +69,8 @@ } ], "semanticCommits": true, - "masterIssue": true + "dependencyDashboard": true, + "dependencyDashboardLabels": [ + "type: process" + ] } diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index aa1e3d30d7d3..cf3563313675 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "73777f88bf8c5eb7157b0e322f7c40de85befdbf" + "sha": "cb088b8dbf105de971af80b122261276187b2f38" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "09c59c20a4bf0daed1665af59035ff240fe356df" + "sha": "5d3c52f5db664eee9026db76b5bcb466f3a09ca9" } } ], From 70c0b378fe43f1bd123498ca848ddbd952c4b65a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Jul 2021 07:48:09 -0700 Subject: [PATCH 0763/2363] chore: regenerate README (#743) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-07-15 14:34:59,195 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-15 14:35:00,553 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/839f4eb4-03b8-41ac-9fc6-07ce34da1039/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .../readme/synth.metadata/synth.metadata | 4 +- java-pubsub/README.md | 48 ++++++++++++++++++- 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 36cfbe8175ce..296c41c8c00a 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "3c1570eaa2a5625c5706de07c83c7b53b0dbc14b" + "sha": "1add5e272ee1c0df9af0956ca240447e3b190a30" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "09c59c20a4bf0daed1665af59035ff240fe356df" + "sha": "4124d245133c0f740ac5e6fa2e7daeba327f1297" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f6304f9d0b07..0cddf7491ec8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -287,10 +287,50 @@ has instructions for running the samples. To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. -## Java Versions +## Supported Java Versions Java 7 or above is required for using this client. +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + ## Versioning @@ -351,3 +391,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=pubsub.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java From 1535ca7f04d480217667bc9f7b3c5773792221a6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Jul 2021 22:49:04 +0200 Subject: [PATCH 0764/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.13.1 (#749) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.12.0` -> `0.13.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/compatibility-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/confidence-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v0.13.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0131-httpswwwgithubcomgoogleapisjava-shared-configcomparev0130v0131-2021-07-27) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.13.0...v0.13.1) ### [`v0.13.0`](https://togithub.com/googleapis/java-shared-config/releases/v0.13.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​264](https://www.github.com/googleapis/java-shared-config/issues/264)) ([d274af8](https://www.github.com/googleapis/java-shared-config/commit/d274af836ac9b3e98be84e551b7e9e552397ecc1)) ##### Bug Fixes - Add shopt -s nullglob to dependencies script ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) - Update dependencies.sh to not break on mac ([#​276](https://www.github.com/googleapis/java-shared-config/issues/276)) ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) ##### Dependencies - update auto-value-annotation.version to v1.8.2 ([#​275](https://www.github.com/googleapis/java-shared-config/issues/275)) ([4d15246](https://www.github.com/googleapis/java-shared-config/commit/4d152461a5592940a8be762c7a8698a02dbe26cf)) - update dependency com.puppycrawl.tools:checkstyle to v8.43 ([#​266](https://www.github.com/googleapis/java-shared-config/issues/266)) ([fae7961](https://www.github.com/googleapis/java-shared-config/commit/fae7961412b33e34e8fcfec78d1451894d4e61d9)) - update dependency com.puppycrawl.tools:checkstyle to v8.44 ([#​274](https://www.github.com/googleapis/java-shared-config/issues/274)) ([d53d0e0](https://www.github.com/googleapis/java-shared-config/commit/d53d0e0935e908d16f4e7cf763577cf3fd8128d3)) ***
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index aaf3290a1b22..4c3cb21de0cb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.12.0 + 0.13.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8952ccf780b0..eff7e99a2636 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.12.0 + 0.13.1 From 1bcc613017db5e6be8cc4ef6b884c91953454491 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 27 Jul 2021 14:06:35 -0700 Subject: [PATCH 0765/2363] chore: regenerate README (#750) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-07-27 20:54:17,253 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-27 20:54:18,550 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/fe18a1db-04da-4257-a904-c0e1e6dcbd71/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .../readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 20 ++++++++++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 296c41c8c00a..ee180add0ceb 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "1add5e272ee1c0df9af0956ca240447e3b190a30" + "sha": "da26521004416529a66e592fccadbe7774592257" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4124d245133c0f740ac5e6fa2e7daeba327f1297" + "sha": "3d32990b6f4b57be77455e3ca89e6e21cd0c06b3" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 0cddf7491ec8..df4661528c3e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -8,9 +8,11 @@ Java idiomatic client for [Cloud Pub/Sub][product-docs]. - [Product Documentation][product-docs] - [Client Library Documentation][javadocs] + ## Quickstart If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file + ```xml @@ -36,6 +38,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file If you are using Maven without BOM, add this to your dependencies: + ```xml com.google.cloud @@ -46,17 +49,20 @@ If you are using Maven without BOM, add this to your dependencies: ``` If you are using Gradle 5.x or later, add this to your dependencies + ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.8.0') +implementation platform('com.google.cloud:libraries-bom:20.9.0') compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies + ```Groovy compile 'com.google.cloud:google-cloud-pubsub:1.113.5' ``` If you are using SBT, add this to your dependencies + ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.5" ``` @@ -65,6 +71,10 @@ libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.5" See the [Authentication][authentication] section in the base directory's README. +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Cloud Pub/Sub APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Cloud Pub/Sub API calls. + ## Getting Started ### Prerequisites @@ -226,8 +236,7 @@ In [CreateTopicAndPublishMessages.java](https://github.com/googleapis/google-clo ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/master/samples) directory. The samples' `README.md` -has instructions for running the samples. +Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/master/samples) directory. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | @@ -337,6 +346,7 @@ and on [google-cloud-java][g-c-j]. This library follows [Semantic Versioning](http://semver.org/). + ## Contributing @@ -348,6 +358,7 @@ Please note that this project is released with a Contributor Code of Conduct. By this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + ## License Apache 2.0 - See [LICENSE][license] for more information. @@ -380,6 +391,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-pubsub&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ From b5aa291aa995ef430bc3073445f4155f1eed6c9d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Jul 2021 01:14:17 +0200 Subject: [PATCH 0766/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v20.9.0 (#747) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.8.0` -> `20.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/compatibility-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/confidence-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f71b43e75dd2..4331df9b7751 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 20.8.0 + 20.9.0 pom import From a4396fae83c664d07ab8343b027b79d20eaa2430 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 27 Jul 2021 16:28:18 -0700 Subject: [PATCH 0767/2363] chore: regenerate README (#751) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-07-27 23:17:07,105 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-27 23:17:08,392 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/799a3b89-f290-4d2d-a26a-546102f5054b/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index ee180add0ceb..a2bfbc5f6245 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "da26521004416529a66e592fccadbe7774592257" + "sha": "7f94d7cc1ef92e4c7cac37ffb257f3e4f0a19a36" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index df4661528c3e..3887aec59a33 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.8.0 + 20.9.0 pom import From 359131b2fefb90e787d345ba6a9b77d3efc79c60 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Jul 2021 17:14:22 +0200 Subject: [PATCH 0768/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.8.0 (#745) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index eff7e99a2636..7fe5a3f79932 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -85,7 +85,7 @@ com.google.errorprone error_prone_annotations - 2.7.1 + 2.8.0 From a1b6e35fe411e42bfedb551a7faf6038f0c01d48 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Thu, 29 Jul 2021 18:18:59 -0700 Subject: [PATCH 0769/2363] ci: remove java 7 units check (#754) --- java-pubsub/.github/sync-repo-settings.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 253d63e15a6c..9433c7f43498 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -13,7 +13,6 @@ branchProtectionRules: - linkage-monitor - lint - clirr - - units (7) - units (8) - units (11) - 'Kokoro - Test: Integration' @@ -30,7 +29,6 @@ branchProtectionRules: - linkage-monitor - lint - clirr - - units (7) - units (8) - units (11) - 'Kokoro - Test: Integration' From d5bafa0417b4dc6ac22fe942ab0077255e06e5aa Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Tue, 3 Aug 2021 14:14:24 -0400 Subject: [PATCH 0770/2363] chore: fix checker-qual dependency issue (#757) --- java-pubsub/pom.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7fe5a3f79932..511244fb3621 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -106,6 +106,12 @@ truth 1.1.3 test + + + org.checkerframework + checker-qual + +
    @@ -203,4 +209,4 @@ - \ No newline at end of file + From 72344784dbdb7b3706fc0c41c8bef67a5178f4b7 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Tue, 3 Aug 2021 18:44:13 -0400 Subject: [PATCH 0771/2363] build: configure branch java7 as a release branch (#760) enable releases --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 20 ++++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 78c674a4e873..69daeb037240 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -5,3 +5,7 @@ branches: - releaseType: java-lts bumpMinorPreMajor: true branch: 1.111.0-sp + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-yoshi + branch: java7 diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 9433c7f43498..b2063df152f5 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -16,7 +16,7 @@ branchProtectionRules: - units (8) - units (11) - 'Kokoro - Test: Integration' - - 'Kokoro - Against Pub/Sub Lite samples' + - Kokoro - Against Pub/Sub Lite samples - cla/google - pattern: 1.111.0-sp isAdminEnforced: true @@ -32,7 +32,23 @@ branchProtectionRules: - units (8) - units (11) - 'Kokoro - Test: Integration' - - 'Kokoro - Against Pub/Sub Lite samples' + - Kokoro - Against Pub/Sub Lite samples + - cla/google + - pattern: java7 + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - Kokoro - Against Pub/Sub Lite samples - cla/google permissionRules: - team: yoshi-admins From 2ab8b34506885416eb8b532af63b02a8344186a4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 4 Aug 2021 10:22:16 -0700 Subject: [PATCH 0772/2363] chore: remove java 7 units check (#753) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/95e12241-34cd-4610-a6b7-8788303d6eea/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/1a2878d6909dd10ca4e3c1b5943d6622e996054e --- java-pubsub/.github/workflows/ci.yaml | 2 +- java-pubsub/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 0195b32f00b4..65ae6ecdda77 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [7, 8, 11] + java: [8, 11] steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index cf3563313675..c3c8815d45e8 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "cb088b8dbf105de971af80b122261276187b2f38" + "sha": "554d60273b53ab4a06b13fa0c39b13e3c3e815e1" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5d3c52f5db664eee9026db76b5bcb466f3a09ca9" + "sha": "1a2878d6909dd10ca4e3c1b5943d6622e996054e" } } ], From 2a92887265e31f7bc43c61f43bec26d0d1186a2d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Aug 2021 21:02:23 +0200 Subject: [PATCH 0773/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2 (#762) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.4.0` -> `2.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​200-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare140v200-2021-08-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.4.0...v2.0.0) ##### ⚠ BREAKING CHANGES - promote to 2.0.0 ([#​428](https://togithub.com/googleapis/java-shared-dependencies/issues/428)) ##### Features - promote to 2.0.0 ([#​428](https://www.github.com/googleapis/java-shared-dependencies/issues/428)) ([4db31f2](https://www.github.com/googleapis/java-shared-dependencies/commit/4db31f29f1668d4743e8af8996b0c4b30e6831b3)) ##### Documentation - we don't use this as a parent pom ([#​407](https://www.github.com/googleapis/java-shared-dependencies/issues/407)) ([4c86aaf](https://www.github.com/googleapis/java-shared-dependencies/commit/4c86aafc05097b6702056f5cb37736127b6df306)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.4 ([#​398](https://www.github.com/googleapis/java-shared-dependencies/issues/398)) ([f0d49b5](https://www.github.com/googleapis/java-shared-dependencies/commit/f0d49b54ba334f9351c66c9924e3d0d2ed7c0016)) - update dependency com.google.api:api-common to v1.10.6 ([#​411](https://www.github.com/googleapis/java-shared-dependencies/issues/411)) ([79801b5](https://www.github.com/googleapis/java-shared-dependencies/commit/79801b5fee08a8c97e275ed3674ab6c83b204a90)) - update dependency com.google.api:api-common to v2 ([#​414](https://www.github.com/googleapis/java-shared-dependencies/issues/414)) ([17f6e68](https://www.github.com/googleapis/java-shared-dependencies/commit/17f6e68a2792843dd41d3877c095e97c052c5ac0)) - update dependency com.google.auth:google-auth-library-bom to v0.27.0 ([#​400](https://www.github.com/googleapis/java-shared-dependencies/issues/400)) ([0d5a95b](https://www.github.com/googleapis/java-shared-dependencies/commit/0d5a95b84076684f84b0fdbb93a706113f44457d)) - update dependency com.google.auth:google-auth-library-bom to v1 ([#​413](https://www.github.com/googleapis/java-shared-dependencies/issues/413)) ([94897d3](https://www.github.com/googleapis/java-shared-dependencies/commit/94897d30bb1cac0059e272b058f6221fb7e4733f)) - update dependency com.google.cloud:grpc-gcp to v1.1.0 ([#​403](https://www.github.com/googleapis/java-shared-dependencies/issues/403)) ([3cc59f1](https://www.github.com/googleapis/java-shared-dependencies/commit/3cc59f15ebb31a7f97c9f3d78057022afabe75e9)) - update dependency com.google.errorprone:error_prone_annotations to v2.8.0 ([#​406](https://www.github.com/googleapis/java-shared-dependencies/issues/406)) ([2905787](https://www.github.com/googleapis/java-shared-dependencies/commit/29057879adeda8bc40a903ef3b5feafc83c3d972)) - update dependency com.google.errorprone:error_prone_annotations to v2.8.1 ([#​426](https://www.github.com/googleapis/java-shared-dependencies/issues/426)) ([853b68b](https://www.github.com/googleapis/java-shared-dependencies/commit/853b68b16c88c3abb745ee1f71ba4bb317cbc680)) - update gax.version to v1.67.0 ([#​405](https://www.github.com/googleapis/java-shared-dependencies/issues/405)) ([632dcd0](https://www.github.com/googleapis/java-shared-dependencies/commit/632dcd0a9f10b034a2a2ec92c7c3413490dd2a03)) - update gax.version to v2 (major) ([#​418](https://www.github.com/googleapis/java-shared-dependencies/issues/418)) ([670a9e0](https://www.github.com/googleapis/java-shared-dependencies/commit/670a9e0a9588a7e592eb5dd8c0cb9ab08e07293e)) - update google.core.version to v1.96.1 ([#​417](https://www.github.com/googleapis/java-shared-dependencies/issues/417)) ([49db9cb](https://www.github.com/googleapis/java-shared-dependencies/commit/49db9cb473c8d3d794ad57a41cfc223239482174)) - update google.core.version to v2 (major) ([#​427](https://www.github.com/googleapis/java-shared-dependencies/issues/427)) ([8cc7a92](https://www.github.com/googleapis/java-shared-dependencies/commit/8cc7a922cc3ba10a157e3649d7a783bbbcbee010)) - update guava to 30.1.1-jre ([#​423](https://www.github.com/googleapis/java-shared-dependencies/issues/423)) ([94aca59](https://www.github.com/googleapis/java-shared-dependencies/commit/94aca597804d7b45aae22811b277c44281e62d64))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 511244fb3621..acf0e36cc5e7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.4.0 + 2.0.0 pom import From 42437fc214e2a983ee23797d161b4dcdaec094f8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Aug 2021 22:32:45 +0200 Subject: [PATCH 0774/2363] deps: update dependency com.google.cloud:google-cloud-core to v2 (#759) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 51824b566e22..4aee616ce3a4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 1.95.4 + 2.0.2 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c44405fda57e..7401efde89b0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 1.95.4 + 2.0.2 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4331df9b7751..606ae4b6c9f2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 1.95.4 + 2.0.2 tests From 93c62f3c59678a6c5ed17861ee05a5bdd452e92e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Aug 2021 22:32:58 +0200 Subject: [PATCH 0775/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.8.1 (#758) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index acf0e36cc5e7..32057fa644ba 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -85,7 +85,7 @@ com.google.errorprone error_prone_annotations - 2.8.0 + 2.8.1 From 056c52d4668fe09c6da45e7eea7c3a57982c6397 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 6 Aug 2021 20:44:44 +0000 Subject: [PATCH 0776/2363] chore: release 1.113.6 (#752) :robot: I have created a release \*beep\* \*boop\* --- ### [1.113.6](https://www.github.com/googleapis/java-pubsub/compare/v1.113.5...v1.113.6) (2021-08-06) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2 ([#759](https://www.github.com/googleapis/java-pubsub/issues/759)) ([42437fc](https://www.github.com/googleapis/java-pubsub/commit/42437fc214e2a983ee23797d161b4dcdaec094f8)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#762](https://www.github.com/googleapis/java-pubsub/issues/762)) ([2a92887](https://www.github.com/googleapis/java-pubsub/commit/2a92887265e31f7bc43c61f43bec26d0d1186a2d)) * update dependency com.google.errorprone:error_prone_annotations to v2.8.0 ([#745](https://www.github.com/googleapis/java-pubsub/issues/745)) ([359131b](https://www.github.com/googleapis/java-pubsub/commit/359131b2fefb90e787d345ba6a9b77d3efc79c60)) * update dependency com.google.errorprone:error_prone_annotations to v2.8.1 ([#758](https://www.github.com/googleapis/java-pubsub/issues/758)) ([93c62f3](https://www.github.com/googleapis/java-pubsub/commit/93c62f3c59678a6c5ed17861ee05a5bdd452e92e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 6cbe49a16d08..f149d3d4439d 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +### [1.113.6](https://www.github.com/googleapis/java-pubsub/compare/v1.113.5...v1.113.6) (2021-08-06) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2 ([#759](https://www.github.com/googleapis/java-pubsub/issues/759)) ([9afc2a3](https://www.github.com/googleapis/java-pubsub/commit/9afc2a3d0b94cf71feda5fed23841bdb7814f422)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#762](https://www.github.com/googleapis/java-pubsub/issues/762)) ([ee939c2](https://www.github.com/googleapis/java-pubsub/commit/ee939c2166ec3dfea0e6132f6198e3a7693659a1)) +* update dependency com.google.errorprone:error_prone_annotations to v2.8.0 ([#745](https://www.github.com/googleapis/java-pubsub/issues/745)) ([554d602](https://www.github.com/googleapis/java-pubsub/commit/554d60273b53ab4a06b13fa0c39b13e3c3e815e1)) +* update dependency com.google.errorprone:error_prone_annotations to v2.8.1 ([#758](https://www.github.com/googleapis/java-pubsub/issues/758)) ([09650e4](https://www.github.com/googleapis/java-pubsub/commit/09650e4d1201be0c738b8853d9271084c808c2be)) + ### [1.113.5](https://www.github.com/googleapis/java-pubsub/compare/v1.113.4...v1.113.5) (2021-07-02) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4c3cb21de0cb..35f8f8f1980e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.6-SNAPSHOT + 1.113.6 pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.6-SNAPSHOT + 1.95.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.6-SNAPSHOT + 1.95.6 com.google.cloud google-cloud-pubsub - 1.113.6-SNAPSHOT + 1.113.6
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a3d874c14f63..c41bcd02764a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.6-SNAPSHOT + 1.113.6 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.6-SNAPSHOT + 1.113.6 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b4cc6f8bafc2..d6f5908c36b4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.6-SNAPSHOT + 1.95.6 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.6-SNAPSHOT + 1.113.6 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 32057fa644ba..a34284fd05cc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.6-SNAPSHOT + 1.113.6 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.6-SNAPSHOT + 1.95.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.6-SNAPSHOT + 1.95.6 com.google.cloud google-cloud-pubsub - 1.113.6-SNAPSHOT + 1.113.6 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 37f682b846f7..6517f7b6b9b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.6-SNAPSHOT + 1.95.6 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.6-SNAPSHOT + 1.113.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7401efde89b0..bb59c5a6a7c2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.6-SNAPSHOT + 1.113.6 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1f24a6ae7936..14e7022a5891 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.5:1.95.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.95.5:1.95.6-SNAPSHOT -google-cloud-pubsub:1.113.5:1.113.6-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.6:1.95.6 +grpc-google-cloud-pubsub-v1:1.95.6:1.95.6 +google-cloud-pubsub:1.113.6:1.113.6 \ No newline at end of file From 29c01652b85dfec698723c813eda5bcc1f6643ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Aug 2021 22:54:02 +0200 Subject: [PATCH 0777/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1 (#755) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 35f8f8f1980e..9de0fa50356d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.13.1 + 1.0.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a34284fd05cc..beeee8bfa03b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.13.1 + 1.0.0 From be830f9abcb7b2c5f2e139da2fbc1441b1038a1f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 6 Aug 2021 16:55:24 -0400 Subject: [PATCH 0778/2363] chore: release 1.113.7-SNAPSHOT (#764) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9de0fa50356d..2323e390ebec 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.6 + 1.113.7-SNAPSHOT pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.6 + 1.95.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.6 + 1.95.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.6 + 1.113.7-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c41bcd02764a..7cc0154e1336 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.6 + 1.113.7-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.6 + 1.113.7-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d6f5908c36b4..8171acffdac2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.6 + 1.95.7-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.6 + 1.113.7-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index beeee8bfa03b..cf54c7d193b2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.6 + 1.113.7-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.6 + 1.95.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.6 + 1.95.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.6 + 1.113.7-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6517f7b6b9b4..928208aca2a8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.6 + 1.95.7-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.6 + 1.113.7-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bb59c5a6a7c2..f0c23ad8e8c9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.6 + 1.113.7-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 14e7022a5891..b5223e3dbd05 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.6:1.95.6 -grpc-google-cloud-pubsub-v1:1.95.6:1.95.6 -google-cloud-pubsub:1.113.6:1.113.6 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.6:1.95.7-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.95.6:1.95.7-SNAPSHOT +google-cloud-pubsub:1.113.6:1.113.7-SNAPSHOT \ No newline at end of file From 4a256edfc2a7fec36b9399f8180427839fe986a1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 10 Aug 2021 05:51:06 +0200 Subject: [PATCH 0779/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.113.6 (#766) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4aee616ce3a4..4dfde1b31e98 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.113.5 + 1.113.6 From d1065e7d297cb2218877818e458a0eb72afe0332 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 9 Aug 2021 21:08:16 -0700 Subject: [PATCH 0780/2363] chore: regenerate README (#767) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-08-10 03:53:28,503 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-10 03:53:29,704 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/38b1dd3c-7f3d-472f-ba31-f947a95784aa/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index a2bfbc5f6245..f95f9754c310 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "7f94d7cc1ef92e4c7cac37ffb257f3e4f0a19a36" + "sha": "18d0b6964b4a5f9216040cc668cce9d54a10a37f" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "3d32990b6f4b57be77455e3ca89e6e21cd0c06b3" + "sha": "6252f2cd074c38f37b44abe5e96d128733eb1b61" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3887aec59a33..abbb93e9f56a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.113.5 + 1.113.6 ``` @@ -58,13 +58,13 @@ compile 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.113.5' +compile 'com.google.cloud:google-cloud-pubsub:1.113.6' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.6" ``` ## Authentication From 2ae28e181ff0561abc63a4b236c8ea5050dda611 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 11 Aug 2021 05:30:11 +0200 Subject: [PATCH 0781/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.0.3 (#768) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.0.2` -> `2.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/compatibility-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.0.3/confidence-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | *** ### Release Notes
    googleapis/java-core ### [`v2.0.3`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​203-httpswwwgithubcomgoogleapisjava-corecomparev202v203-2021-08-10) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.0.2...v2.0.3)
    *** ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. *** * \[ ] If you want to rebase/retry this PR, check this box. *** This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4dfde1b31e98..01d3a457f4b8 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.0.2 + 2.0.3 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f0c23ad8e8c9..821d68b428c9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.0.2 + 2.0.3 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 606ae4b6c9f2..72f5fd948f93 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.0.2 + 2.0.3 tests From eacf63c09aaf427f440d0f50557ca9e13d021988 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Aug 2021 03:42:59 +0000 Subject: [PATCH 0782/2363] chore: release 1.113.7 (#769) :robot: I have created a release \*beep\* \*boop\* --- ### [1.113.7](https://www.github.com/googleapis/java-pubsub/compare/v1.113.6...v1.113.7) (2021-08-11) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.0.3 ([#768](https://www.github.com/googleapis/java-pubsub/issues/768)) ([2ae28e1](https://www.github.com/googleapis/java-pubsub/commit/2ae28e181ff0561abc63a4b236c8ea5050dda611)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index f149d3d4439d..ffc5d03a53bc 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.113.7](https://www.github.com/googleapis/java-pubsub/compare/v1.113.6...v1.113.7) (2021-08-11) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.0.3 ([#768](https://www.github.com/googleapis/java-pubsub/issues/768)) ([2ba610b](https://www.github.com/googleapis/java-pubsub/commit/2ba610bb1134b43c641608364248c794eec5a295)) + ### [1.113.6](https://www.github.com/googleapis/java-pubsub/compare/v1.113.5...v1.113.6) (2021-08-06) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2323e390ebec..989828e252b6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.7-SNAPSHOT + 1.113.7 pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.7-SNAPSHOT + 1.95.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.7-SNAPSHOT + 1.95.7 com.google.cloud google-cloud-pubsub - 1.113.7-SNAPSHOT + 1.113.7
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7cc0154e1336..62c8ae6fd554 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.7-SNAPSHOT + 1.113.7 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.7-SNAPSHOT + 1.113.7 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8171acffdac2..2da1e2dea673 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.7-SNAPSHOT + 1.95.7 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.7-SNAPSHOT + 1.113.7 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index cf54c7d193b2..2b568b4a45f2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.7-SNAPSHOT + 1.113.7 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.7-SNAPSHOT + 1.95.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.7-SNAPSHOT + 1.95.7 com.google.cloud google-cloud-pubsub - 1.113.7-SNAPSHOT + 1.113.7 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 928208aca2a8..5b27c0b65da9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.7-SNAPSHOT + 1.95.7 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.7-SNAPSHOT + 1.113.7 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 821d68b428c9..6b9ec85fe631 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.7-SNAPSHOT + 1.113.7 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b5223e3dbd05..3b4c004ab877 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.6:1.95.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.95.6:1.95.7-SNAPSHOT -google-cloud-pubsub:1.113.6:1.113.7-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.7:1.95.7 +grpc-google-cloud-pubsub-v1:1.95.7:1.95.7 +google-cloud-pubsub:1.113.7:1.113.7 \ No newline at end of file From 6da14dd9602569c80f502cf36ee8888baa204137 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Aug 2021 03:56:42 +0000 Subject: [PATCH 0783/2363] chore: release 1.113.8-SNAPSHOT (#770) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 989828e252b6..6a8a6ff41650 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.7 + 1.113.8-SNAPSHOT pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.7 + 1.95.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.7 + 1.95.8-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.7 + 1.113.8-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 62c8ae6fd554..bd1099b2ddc9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.7 + 1.113.8-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.7 + 1.113.8-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2da1e2dea673..ec9773557341 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.7 + 1.95.8-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.7 + 1.113.8-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2b568b4a45f2..5ba494ca0281 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.7 + 1.113.8-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.7 + 1.95.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.7 + 1.95.8-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.7 + 1.113.8-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5b27c0b65da9..67bd749e8da5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.7 + 1.95.8-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.7 + 1.113.8-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6b9ec85fe631..3c3362f51a33 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.7 + 1.113.8-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3b4c004ab877..860a4dbdee7d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.7:1.95.7 -grpc-google-cloud-pubsub-v1:1.95.7:1.95.7 -google-cloud-pubsub:1.113.7:1.113.7 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.7:1.95.8-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.95.7:1.95.8-SNAPSHOT +google-cloud-pubsub:1.113.7:1.113.8-SNAPSHOT \ No newline at end of file From 84755ca502c043b17da46f49bdb6792ad69f2e3c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 11 Aug 2021 16:20:48 +0200 Subject: [PATCH 0784/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.113.7 (#771) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 01d3a457f4b8..f70a43ed2fe3 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.113.6 + 1.113.7 From 55f38dfe817ab8f735e8ed62a4456d8bdb3ad879 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 11 Aug 2021 07:34:29 -0700 Subject: [PATCH 0785/2363] chore: regenerate README (#773) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-08-11 14:22:55,624 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-11 14:22:56,921 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/299d88d8-eebb-473b-9fdf-cb3c97555e7d/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index f95f9754c310..0130f958be78 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "18d0b6964b4a5f9216040cc668cce9d54a10a37f" + "sha": "55dcf006ce6ada683cb8e401d0cdb5c321841c92" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index abbb93e9f56a..1a55cc750ca5 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.113.6 + 1.113.7 ``` @@ -58,13 +58,13 @@ compile 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.113.6' +compile 'com.google.cloud:google-cloud-pubsub:1.113.7' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.6" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.7" ``` ## Authentication From ecc846b2631fec2fd3dfb85ebe20ef84fdca927d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 11 Aug 2021 16:46:16 +0200 Subject: [PATCH 0786/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.0.4 (#772) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f70a43ed2fe3..44023b688545 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.0.3 + 2.0.4 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3c3362f51a33..d9fe2b6091f3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.0.3 + 2.0.4 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 72f5fd948f93..e8d14e8a68e9 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.0.3 + 2.0.4 tests From b52cf30932c30de7b9bdc127d8588adeb50a4e93 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Aug 2021 14:58:31 +0000 Subject: [PATCH 0787/2363] chore: release 1.113.8 (#775) :robot: I have created a release \*beep\* \*boop\* --- ### [1.113.8](https://www.github.com/googleapis/java-pubsub/compare/v1.113.7...v1.113.8) (2021-08-11) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.0.4 ([#772](https://www.github.com/googleapis/java-pubsub/issues/772)) ([ecc846b](https://www.github.com/googleapis/java-pubsub/commit/ecc846b2631fec2fd3dfb85ebe20ef84fdca927d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index ffc5d03a53bc..21f9c45886bb 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.113.8](https://www.github.com/googleapis/java-pubsub/compare/v1.113.7...v1.113.8) (2021-08-11) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.0.4 ([#772](https://www.github.com/googleapis/java-pubsub/issues/772)) ([37cb279](https://www.github.com/googleapis/java-pubsub/commit/37cb2797cfce84e53b56b37de19c9b467eca91c4)) + ### [1.113.7](https://www.github.com/googleapis/java-pubsub/compare/v1.113.6...v1.113.7) (2021-08-11) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6a8a6ff41650..8b9cdf4d101b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.8-SNAPSHOT + 1.113.8 pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.8-SNAPSHOT + 1.95.8 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.8-SNAPSHOT + 1.95.8 com.google.cloud google-cloud-pubsub - 1.113.8-SNAPSHOT + 1.113.8
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index bd1099b2ddc9..85274c1de6ba 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.8-SNAPSHOT + 1.113.8 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.8-SNAPSHOT + 1.113.8 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ec9773557341..41b5e370203a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.8-SNAPSHOT + 1.95.8 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.8-SNAPSHOT + 1.113.8 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5ba494ca0281..81379802c738 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.8-SNAPSHOT + 1.113.8 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.8-SNAPSHOT + 1.95.8 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.8-SNAPSHOT + 1.95.8 com.google.cloud google-cloud-pubsub - 1.113.8-SNAPSHOT + 1.113.8 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 67bd749e8da5..97675ed08c55 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.8-SNAPSHOT + 1.95.8 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.8-SNAPSHOT + 1.113.8 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d9fe2b6091f3..b5cf9ef1df11 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.8-SNAPSHOT + 1.113.8 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 860a4dbdee7d..002514101921 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.7:1.95.8-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.95.7:1.95.8-SNAPSHOT -google-cloud-pubsub:1.113.7:1.113.8-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.8:1.95.8 +grpc-google-cloud-pubsub-v1:1.95.8:1.95.8 +google-cloud-pubsub:1.113.8:1.113.8 \ No newline at end of file From 2db8ce04dce58ef102a7dfe32ad08babb9fa2915 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Aug 2021 15:10:19 +0000 Subject: [PATCH 0788/2363] chore: release 1.113.9-SNAPSHOT (#776) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8b9cdf4d101b..0a25451b54f3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.8 + 1.113.9-SNAPSHOT pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.8 + 1.95.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.8 + 1.95.9-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.8 + 1.113.9-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 85274c1de6ba..f1ab60fee25f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.8 + 1.113.9-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.8 + 1.113.9-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 41b5e370203a..f591f0689532 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.8 + 1.95.9-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.8 + 1.113.9-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 81379802c738..ac6b12710a67 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.8 + 1.113.9-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.8 + 1.95.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.8 + 1.95.9-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.8 + 1.113.9-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 97675ed08c55..65f5a049800d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.8 + 1.95.9-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.8 + 1.113.9-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b5cf9ef1df11..a9c3ea8942ff 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.8 + 1.113.9-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 002514101921..e828846613e7 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.8:1.95.8 -grpc-google-cloud-pubsub-v1:1.95.8:1.95.8 -google-cloud-pubsub:1.113.8:1.113.8 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.8:1.95.9-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.95.8:1.95.9-SNAPSHOT +google-cloud-pubsub:1.113.8:1.113.9-SNAPSHOT \ No newline at end of file From ecdda2f09635fb5914a9f4debd88d50d58ae3c14 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 11 Aug 2021 18:20:18 +0200 Subject: [PATCH 0789/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.113.8 (#779) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 44023b688545..9f88988683df 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.113.7 + 1.113.8 From 449696c158088cb8a1d710b2d4917df7ef67ee12 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 11 Aug 2021 09:32:16 -0700 Subject: [PATCH 0790/2363] chore: regenerate README (#780) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-08-11 16:22:27,173 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-11 16:22:28,426 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/7a606226-cd34-486a-b9a8-32961b6cb693/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 0130f958be78..ea070a0198f9 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "55dcf006ce6ada683cb8e401d0cdb5c321841c92" + "sha": "3f662d44d04eb8cb9675a4746d6fe9074f524874" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1a55cc750ca5..c4e1c4b253f9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.113.7 + 1.113.8 ``` @@ -58,13 +58,13 @@ compile 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.113.7' +compile 'com.google.cloud:google-cloud-pubsub:1.113.8' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.7" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.8" ``` ## Authentication From da8f2550fa8535862b65bbf022966306312601d8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 Aug 2021 00:04:50 +0200 Subject: [PATCH 0791/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.0.5 (#783) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 9f88988683df..624ef1d9a833 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.0.4 + 2.0.5 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a9c3ea8942ff..db958e2c138d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.0.4 + 2.0.5 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e8d14e8a68e9..5c80a55e8cdd 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.0.4 + 2.0.5 tests From 78c208e540618ab00b2e0ddf57afab22f68b8328 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 Aug 2021 00:05:10 +0200 Subject: [PATCH 0792/2363] deps: update dependency com.google.api.grpc:proto-google-cloud-pubsub-v1 to v1.96.0 (#787) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0a25451b54f3..8c990dbe858a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -53,7 +53,7 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.9-SNAPSHOT + 1.96.0 com.google.api.grpc diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ac6b12710a67..b0f9beb00e52 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -69,7 +69,7 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.9-SNAPSHOT + 1.96.0 com.google.api.grpc From 9c1876aea6b39487984fefd72f5c228fc63f5fc0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 Aug 2021 00:07:15 +0200 Subject: [PATCH 0793/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 (#788) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b0f9beb00e52..400e68b151ee 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.0.0 + 2.0.1 pom import From a7250a5957cdaf442052fbf583cab0e7659e785b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 11 Aug 2021 15:18:13 -0700 Subject: [PATCH 0794/2363] chore: regenerate README (#790) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-08-11 22:06:59,071 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-11 22:07:00,397 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/fadba45d-4b74-4ca3-8f93-fe49608c1c9e/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index ea070a0198f9..7a0694406656 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "3f662d44d04eb8cb9675a4746d6fe9074f524874" + "sha": "7940378db1394e3c5631ec854fa57b35cfb12094" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6252f2cd074c38f37b44abe5e96d128733eb1b61" + "sha": "7e1f6da50524b5d98eb67adbf6dd0805df54233d" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c4e1c4b253f9..73faff426fe3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ compile 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.113.8' +compile 'com.google.cloud:google-cloud-pubsub:1.114.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.113.8" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.0" ``` ## Authentication From 88edb658c05f0a677714c1afb1b8ce73fd95d15a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 Aug 2021 00:19:16 +0200 Subject: [PATCH 0795/2363] deps: update dependency com.google.api.grpc:grpc-google-cloud-pubsub-v1 to v1.96.0 (#786) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8c990dbe858a..ad333be06c44 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -58,7 +58,7 @@ com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.9-SNAPSHOT + 1.96.0 com.google.cloud diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 400e68b151ee..e3f3a0c6792f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -74,7 +74,7 @@ com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.9-SNAPSHOT + 1.96.0 com.google.cloud From 2e386cb3a20eb87326773fd3d92fa069fdc7ecfe Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Aug 2021 22:32:31 +0000 Subject: [PATCH 0796/2363] chore: release 1.113.9 (#789) :robot: I have created a release \*beep\* \*boop\* --- ### [1.113.9](https://www.github.com/googleapis/java-pubsub/compare/v1.113.8...v1.113.9) (2021-08-11) ### Dependencies * update dependency com.google.api.grpc:grpc-google-cloud-pubsub-v1 to v1.96.0 ([#786](https://www.github.com/googleapis/java-pubsub/issues/786)) ([88edb65](https://www.github.com/googleapis/java-pubsub/commit/88edb658c05f0a677714c1afb1b8ce73fd95d15a)) * update dependency com.google.api.grpc:proto-google-cloud-pubsub-v1 to v1.96.0 ([#787](https://www.github.com/googleapis/java-pubsub/issues/787)) ([78c208e](https://www.github.com/googleapis/java-pubsub/commit/78c208e540618ab00b2e0ddf57afab22f68b8328)) * update dependency com.google.cloud:google-cloud-core to v2.0.5 ([#783](https://www.github.com/googleapis/java-pubsub/issues/783)) ([da8f255](https://www.github.com/googleapis/java-pubsub/commit/da8f2550fa8535862b65bbf022966306312601d8)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#788](https://www.github.com/googleapis/java-pubsub/issues/788)) ([9c1876a](https://www.github.com/googleapis/java-pubsub/commit/9c1876aea6b39487984fefd72f5c228fc63f5fc0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 21f9c45886bb..824a4e09a19e 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +### [1.113.9](https://www.github.com/googleapis/java-pubsub/compare/v1.113.8...v1.113.9) (2021-08-11) + + +### Dependencies + +* update dependency com.google.api.grpc:grpc-google-cloud-pubsub-v1 to v1.96.0 ([#786](https://www.github.com/googleapis/java-pubsub/issues/786)) ([57c3c2b](https://www.github.com/googleapis/java-pubsub/commit/57c3c2bfd467fd02a03ec581d9254fe3c9c68f8b)) +* update dependency com.google.api.grpc:proto-google-cloud-pubsub-v1 to v1.96.0 ([#787](https://www.github.com/googleapis/java-pubsub/issues/787)) ([7940378](https://www.github.com/googleapis/java-pubsub/commit/7940378db1394e3c5631ec854fa57b35cfb12094)) +* update dependency com.google.cloud:google-cloud-core to v2.0.5 ([#783](https://www.github.com/googleapis/java-pubsub/issues/783)) ([de3d475](https://www.github.com/googleapis/java-pubsub/commit/de3d47544bfe370330dd6b569927cf77204201bf)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#788](https://www.github.com/googleapis/java-pubsub/issues/788)) ([5d39f85](https://www.github.com/googleapis/java-pubsub/commit/5d39f850040a2c60c5c87a7669f924121e0b8b0a)) + ### [1.113.8](https://www.github.com/googleapis/java-pubsub/compare/v1.113.7...v1.113.8) (2021-08-11) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ad333be06c44..cd566bbce997 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.9-SNAPSHOT + 1.113.9 pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.0 + 1.95.9 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.0 + 1.95.9 com.google.cloud google-cloud-pubsub - 1.113.9-SNAPSHOT + 1.113.9
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f1ab60fee25f..257b3469bdda 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.9-SNAPSHOT + 1.113.9 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.9-SNAPSHOT + 1.113.9 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f591f0689532..8773f71cd864 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.9-SNAPSHOT + 1.95.9 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.9-SNAPSHOT + 1.113.9 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e3f3a0c6792f..226d3397b382 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.9-SNAPSHOT + 1.113.9 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.0 + 1.95.9 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.0 + 1.95.9 com.google.cloud google-cloud-pubsub - 1.113.9-SNAPSHOT + 1.113.9 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 65f5a049800d..b12069ae6173 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.9-SNAPSHOT + 1.95.9 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.9-SNAPSHOT + 1.113.9 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index db958e2c138d..0b0e9a312e98 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.9-SNAPSHOT + 1.113.9 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e828846613e7..e7a175d2f6e9 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.8:1.95.9-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.95.8:1.95.9-SNAPSHOT -google-cloud-pubsub:1.113.8:1.113.9-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.9:1.95.9 +grpc-google-cloud-pubsub-v1:1.95.9:1.95.9 +google-cloud-pubsub:1.113.9:1.113.9 \ No newline at end of file From cab86e35218dd73fb6b932a9a33011cfc3d97088 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Aug 2021 22:46:29 +0000 Subject: [PATCH 0797/2363] chore: release 1.113.10-SNAPSHOT (#791) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index cd566bbce997..f2b29cc80e39 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.9 + 1.113.10-SNAPSHOT pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.9 + 1.95.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.9 + 1.95.10-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.9 + 1.113.10-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 257b3469bdda..c91a21cc57f2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.9 + 1.113.10-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.9 + 1.113.10-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8773f71cd864..bd07fed32686 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.9 + 1.95.10-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.9 + 1.113.10-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 226d3397b382..337e4b256068 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.9 + 1.113.10-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.9 + 1.95.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.9 + 1.95.10-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.113.9 + 1.113.10-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b12069ae6173..eacb91cda59c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.9 + 1.95.10-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.9 + 1.113.10-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0b0e9a312e98..5ebeeca1ad29 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.9 + 1.113.10-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e7a175d2f6e9..e4b12a4ae29e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.9:1.95.9 -grpc-google-cloud-pubsub-v1:1.95.9:1.95.9 -google-cloud-pubsub:1.113.9:1.113.9 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.95.9:1.95.10-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.95.9:1.95.10-SNAPSHOT +google-cloud-pubsub:1.113.9:1.113.10-SNAPSHOT \ No newline at end of file From 9377b7faa1827c43500ea2a9b28f4b004f305162 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 16 Aug 2021 15:16:49 -0700 Subject: [PATCH 0798/2363] build(java): use ENABLE_FLAKYBOT env variable (#792) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/54221b78-14b2-4207-a355-96b5941227ad/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/ff01716e16d2c6e87eaf87197b753ac9fcbbed5d --- java-pubsub/.kokoro/nightly/integration.cfg | 2 +- java-pubsub/.kokoro/nightly/samples.cfg | 2 +- java-pubsub/synth.metadata | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.kokoro/nightly/integration.cfg b/java-pubsub/.kokoro/nightly/integration.cfg index 0048c8ece7e5..e51c7b4c6c11 100644 --- a/java-pubsub/.kokoro/nightly/integration.cfg +++ b/java-pubsub/.kokoro/nightly/integration.cfg @@ -22,7 +22,7 @@ env_vars: { } env_vars: { - key: "ENABLE_BUILD_COP" + key: "ENABLE_FLAKYBOT" value: "true" } diff --git a/java-pubsub/.kokoro/nightly/samples.cfg b/java-pubsub/.kokoro/nightly/samples.cfg index f25429314f4d..9761fd8648cb 100644 --- a/java-pubsub/.kokoro/nightly/samples.cfg +++ b/java-pubsub/.kokoro/nightly/samples.cfg @@ -33,6 +33,6 @@ env_vars: { } env_vars: { - key: "ENABLE_BUILD_COP" + key: "ENABLE_FLAKYBOT" value: "true" } diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index c3c8815d45e8..4e6f5f8822ab 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "554d60273b53ab4a06b13fa0c39b13e3c3e815e1" + "sha": "6fe99f1ebb8057360880062db544aa23542c7617" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1a2878d6909dd10ca4e3c1b5943d6622e996054e" + "sha": "ff01716e16d2c6e87eaf87197b753ac9fcbbed5d" } } ], From f92ba2b6aa7eaea9909c7087d9e324b06ae84839 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 16 Aug 2021 15:34:11 -0700 Subject: [PATCH 0799/2363] chore: regenerate README (#794) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-08-16 22:23:25,398 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-16 22:23:26,623 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/a9eebc21-71d1-4f11-80cf-3d5e3e37b8f1/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 7a0694406656..eb72b5e6a385 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "7940378db1394e3c5631ec854fa57b35cfb12094" + "sha": "4d1d1e7e93511c093eeb7f0e553058035a54b6fb" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7e1f6da50524b5d98eb67adbf6dd0805df54233d" + "sha": "a01e1a0bf70754f51450958b966bd673945d1e6e" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 73faff426fe3..3f03ab99f421 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:20.9.0') +implementation platform('com.google.cloud:libraries-bom:21.0.0') compile 'com.google.cloud:google-cloud-pubsub' ``` From 43166bf4dd53b86bd577b58d468396de8be93e3d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 17 Aug 2021 16:56:24 +0200 Subject: [PATCH 0800/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v21 (#793) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.9.0` -> `21.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/compatibility-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/confidence-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5c80a55e8cdd..6a896e718665 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 20.9.0 + 21.0.0 pom import From 04bfa20e5d71b1bf7f74d7c5ebde0b9edce346bf Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 17 Aug 2021 08:14:40 -0700 Subject: [PATCH 0801/2363] chore: regenerate README (#795) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-08-17 14:58:56,567 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-17 14:58:57,825 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/48a78f98-9f7d-404b-ba80-c5364c06c95c/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index eb72b5e6a385..9d3ee46dc4a7 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "4d1d1e7e93511c093eeb7f0e553058035a54b6fb" + "sha": "e425d544f0ab46b43f73767adfeec9bf0c58ec7d" } }, { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3f03ab99f421..5d2bcbf90ec3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 20.9.0 + 21.0.0 pom import From 4173582a3f909fbe1b7e5b33f75a65bc9fe452b1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 02:20:22 +0200 Subject: [PATCH 0802/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.1 (#796) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.0` -> `1.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.1/compatibility-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.1/confidence-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.0.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​101-httpswwwgithubcomgoogleapisjava-shared-configcomparev100v101-2021-08-18) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.0...v1.0.1)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f2b29cc80e39..c5ce78f0989f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.0 + 1.0.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 337e4b256068..41a04381d310 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.0 + 1.0.1 From 2edb58e5a788812b354ea3521465a00a4bfea4ae Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Fri, 20 Aug 2021 21:27:45 -0400 Subject: [PATCH 0803/2363] chore: generate topic retention changes (#798) * Modifying Publish example in README to match other examples given, and fix issue #6784 * fix: Modifying Publish example in README to match other examples, and fix Issue #11 * feat: Adding support for DLQs Adding delivery attempt count to PubsubMessages as a message attribute, and creating helper function to allow users to get the count without knowing implementation details. * Fix formatting * fix: making changes requested in pull request * fix: creating fix to not populate delivery attempt attribute when dead lettering is not enabled * Adding unit test for case in which a received message has no delivery attempt * Making MessageWaiter class more generic to also be used for outstanding ack operations * Waiting for acks to complete before shutting down a streaming subscriber connection * Fixing formatting error * fix: making sure all publishes complete before shutting down the publisher * adding default max outstanding request bytes * fix: make push endpoint valid https * fix: use default zero value if a flow control setting is not provided * fix lint issues * fix: better cleanup during publisher test * fix: format issues * fix: test timeouts should be a minute * fix: make subscriberIt less flaky * fix: add deprecated tag for deprecated methods * fix: retrying sync pulls in subscriberIT test * Revert "fix: retrying sync pulls in subscriberIT test" This reverts commit fef99561335f6e60e70ca7d0d00ac4d74a9f431e. * fix: do not send ModAck if auto ack extensions are disabled * Adding test for zero ack extension * revert maxAckExtension changes * generate topic retention feature * fix lambdas * fix: schema sample * fix: formatting * fix:docs * fix: doc names --- .../cloud/pubsub/v1/SchemaServiceClient.java | 528 ++++-- .../pubsub/v1/SchemaServiceSettings.java | 72 +- .../pubsub/v1/SubscriptionAdminClient.java | 1571 +++++++++------- .../pubsub/v1/SubscriptionAdminSettings.java | 72 +- .../cloud/pubsub/v1/TopicAdminClient.java | 769 ++++---- .../cloud/pubsub/v1/TopicAdminSettings.java | 68 +- .../cloud/pubsub/v1/gapic_metadata.json | 156 ++ .../google/cloud/pubsub/v1/package-info.java | 65 +- .../v1/stub/GrpcPublisherCallableFactory.java | 44 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 155 +- .../GrpcSchemaServiceCallableFactory.java | 44 +- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 156 +- .../stub/GrpcSubscriberCallableFactory.java | 44 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 146 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 23 +- .../pubsub/v1/stub/PublisherStubSettings.java | 549 +++--- .../pubsub/v1/stub/SchemaServiceStub.java | 31 +- .../v1/stub/SchemaServiceStubSettings.java | 373 ++-- .../cloud/pubsub/v1/stub/SubscriberStub.java | 21 +- .../v1/stub/SubscriberStubSettings.java | 521 +++--- .../google/cloud/pubsub/v1/MockIAMPolicy.java | 8 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 64 +- .../google/cloud/pubsub/v1/MockPublisher.java | 8 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 134 +- .../cloud/pubsub/v1/MockSchemaService.java | 8 +- .../pubsub/v1/MockSchemaServiceImpl.java | 92 +- .../cloud/pubsub/v1/MockSubscriber.java | 8 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 230 ++- .../pubsub/v1/SchemaServiceClientTest.java | 498 ++++- .../v1/SubscriptionAdminClientTest.java | 1597 ++++++++++++----- .../cloud/pubsub/v1/TopicAdminClientTest.java | 713 +++++--- .../com/google/pubsub/v1/ProjectName.java | 90 +- .../google/pubsub/v1/ProjectTopicName.java | 22 - .../com/google/pubsub/v1/PubsubProto.java | 535 +++--- .../java/com/google/pubsub/v1/SchemaName.java | 103 +- .../pubsub/v1/StreamingPullResponse.java | 876 +++++++++ .../v1/StreamingPullResponseOrBuilder.java | 42 + .../com/google/pubsub/v1/Subscription.java | 386 +++- .../pubsub/v1/SubscriptionOrBuilder.java | 61 +- .../main/java/com/google/pubsub/v1/Topic.java | 363 ++++ .../java/com/google/pubsub/v1/TopicName.java | 146 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 56 + .../google/pubsub/v1/UntypedTopicName.java | 22 - .../pubsub/v1/ValidateMessageResponse.java | 2 + .../pubsub/v1/ValidateSchemaResponse.java | 2 + .../main/proto/google/pubsub/v1/pubsub.proto | 36 +- .../main/proto/google/pubsub/v1/schema.proto | 4 +- java-pubsub/synth.metadata | 237 +-- 48 files changed, 7862 insertions(+), 3889 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index cf46acfb48e3..be0bf88a58ff 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.ApiFunction; @@ -28,6 +29,11 @@ import com.google.cloud.pubsub.v1.stub.SchemaServiceStub; import com.google.cloud.pubsub.v1.stub.SchemaServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; @@ -46,25 +52,23 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: Service for doing schema-related operations. * *

    This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * - *

    - * 
    + * 
    {@code
      * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
      *   ProjectName parent = ProjectName.of("[PROJECT]");
      *   Schema schema = Schema.newBuilder().build();
    - *   String schemaId = "";
    + *   String schemaId = "schemaId-697673060";
      *   Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
      * }
    - * 
    - * 
    + * }
    * - *

    Note: close() needs to be called on the schemaServiceClient object to clean up resources such + *

    Note: close() needs to be called on the SchemaServiceClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * *

    The surface of this class includes several types of Java methods for each of the API's @@ -92,29 +96,25 @@ * *

    To customize credentials: * - *

    - * 
    + * 
    {@code
      * SchemaServiceSettings schemaServiceSettings =
      *     SchemaServiceSettings.newBuilder()
      *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      *         .build();
    - * SchemaServiceClient schemaServiceClient =
    - *     SchemaServiceClient.create(schemaServiceSettings);
    - * 
    - * 
    + * SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); + * }
    * - * To customize the endpoint: + *

    To customize the endpoint: * - *

    - * 
    + * 
    {@code
      * SchemaServiceSettings schemaServiceSettings =
      *     SchemaServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    - * SchemaServiceClient schemaServiceClient =
    - *     SchemaServiceClient.create(schemaServiceSettings);
    - * 
    - * 
    + * SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class SchemaServiceClient implements BackgroundResource { private final SchemaServiceSettings settings; private final SchemaServiceStub stub; @@ -135,7 +135,7 @@ public static final SchemaServiceClient create(SchemaServiceSettings settings) /** * Constructs an instance of SchemaServiceClient, using the given stub for making calls. This is - * for advanced usage - prefer to use SchemaServiceSettings}. + * for advanced usage - prefer using create(SchemaServiceSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final SchemaServiceClient create(SchemaServiceStub stub) { @@ -167,20 +167,20 @@ public SchemaServiceStub getStub() { return stub; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ProjectName parent = ProjectName.of("[PROJECT]");
        *   Schema schema = Schema.newBuilder().build();
    -   *   String schemaId = "";
    +   *   String schemaId = "schemaId-697673060";
        *   Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
        * }
    -   * 
    + * }
    * * @param parent Required. The name of the project in which to create the schema. Format is * `projects/{project-id}`. @@ -203,20 +203,20 @@ public final Schema createSchema(ProjectName parent, Schema schema, String schem return createSchema(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   String parent = ProjectName.of("[PROJECT]").toString();
        *   Schema schema = Schema.newBuilder().build();
    -   *   String schemaId = "";
    -   *   Schema response = schemaServiceClient.createSchema(parent.toString(), schema, schemaId);
    +   *   String schemaId = "schemaId-697673060";
    +   *   Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
        * }
    -   * 
    + * }
    * * @param parent Required. The name of the project in which to create the schema. Format is * `projects/{project-id}`. @@ -239,23 +239,23 @@ public final Schema createSchema(String parent, Schema schema, String schemaId) return createSchema(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    -   *   Schema schema = Schema.newBuilder().build();
    -   *   CreateSchemaRequest request = CreateSchemaRequest.newBuilder()
    -   *     .setParent(parent.toString())
    -   *     .setSchema(schema)
    -   *     .build();
    +   *   CreateSchemaRequest request =
    +   *       CreateSchemaRequest.newBuilder()
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
    +   *           .setSchema(Schema.newBuilder().build())
    +   *           .setSchemaId("schemaId-697673060")
    +   *           .build();
        *   Schema response = schemaServiceClient.createSchema(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -264,42 +264,42 @@ public final Schema createSchema(CreateSchemaRequest request) { return createSchemaCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    -   *   Schema schema = Schema.newBuilder().build();
    -   *   CreateSchemaRequest request = CreateSchemaRequest.newBuilder()
    -   *     .setParent(parent.toString())
    -   *     .setSchema(schema)
    -   *     .build();
    -   *   ApiFuture<Schema> future = schemaServiceClient.createSchemaCallable().futureCall(request);
    -   *   // Do something
    +   *   CreateSchemaRequest request =
    +   *       CreateSchemaRequest.newBuilder()
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
    +   *           .setSchema(Schema.newBuilder().build())
    +   *           .setSchemaId("schemaId-697673060")
    +   *           .build();
    +   *   ApiFuture future = schemaServiceClient.createSchemaCallable().futureCall(request);
    +   *   // Do something.
        *   Schema response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable createSchemaCallable() { return stub.createSchemaCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
        *   Schema response = schemaServiceClient.getSchema(name);
        * }
    -   * 
    + * }
    * * @param name Required. The name of the schema to get. Format is * `projects/{project}/schemas/{schema}`. @@ -311,18 +311,18 @@ public final Schema getSchema(SchemaName name) { return getSchema(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    -   *   Schema response = schemaServiceClient.getSchema(name.toString());
    +   *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    +   *   Schema response = schemaServiceClient.getSchema(name);
        * }
    -   * 
    + * }
    * * @param name Required. The name of the schema to get. Format is * `projects/{project}/schemas/{schema}`. @@ -333,21 +333,22 @@ public final Schema getSchema(String name) { return getSchema(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    -   *   GetSchemaRequest request = GetSchemaRequest.newBuilder()
    -   *     .setName(name.toString())
    -   *     .build();
    +   *   GetSchemaRequest request =
    +   *       GetSchemaRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setView(SchemaView.forNumber(0))
    +   *           .build();
        *   Schema response = schemaServiceClient.getSchema(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -356,42 +357,43 @@ public final Schema getSchema(GetSchemaRequest request) { return getSchemaCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    -   *   GetSchemaRequest request = GetSchemaRequest.newBuilder()
    -   *     .setName(name.toString())
    -   *     .build();
    -   *   ApiFuture<Schema> future = schemaServiceClient.getSchemaCallable().futureCall(request);
    -   *   // Do something
    +   *   GetSchemaRequest request =
    +   *       GetSchemaRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setView(SchemaView.forNumber(0))
    +   *           .build();
    +   *   ApiFuture future = schemaServiceClient.getSchemaCallable().futureCall(request);
    +   *   // Do something.
        *   Schema response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable getSchemaCallable() { return stub.getSchemaCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists schemas in a project. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ProjectName parent = ProjectName.of("[PROJECT]");
        *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param parent Required. The name of the project in which to list schemas. Format is * `projects/{project-id}`. @@ -405,20 +407,20 @@ public final ListSchemasPagedResponse listSchemas(ProjectName parent) { return listSchemas(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists schemas in a project. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    -   *   for (Schema element : schemaServiceClient.listSchemas(parent.toString()).iterateAll()) {
    +   *   String parent = ProjectName.of("[PROJECT]").toString();
    +   *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param parent Required. The name of the project in which to list schemas. Format is * `projects/{project-id}`. @@ -429,23 +431,26 @@ public final ListSchemasPagedResponse listSchemas(String parent) { return listSchemas(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists schemas in a project. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    -   *   ListSchemasRequest request = ListSchemasRequest.newBuilder()
    -   *     .setParent(parent.toString())
    -   *     .build();
    +   *   ListSchemasRequest request =
    +   *       ListSchemasRequest.newBuilder()
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
    +   *           .setView(SchemaView.forNumber(0))
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   for (Schema element : schemaServiceClient.listSchemas(request).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -454,43 +459,49 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) { return listSchemasPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists schemas in a project. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    -   *   ListSchemasRequest request = ListSchemasRequest.newBuilder()
    -   *     .setParent(parent.toString())
    -   *     .build();
    -   *   ApiFuture<ListSchemasPagedResponse> future = schemaServiceClient.listSchemasPagedCallable().futureCall(request);
    -   *   // Do something
    +   *   ListSchemasRequest request =
    +   *       ListSchemasRequest.newBuilder()
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
    +   *           .setView(SchemaView.forNumber(0))
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future = schemaServiceClient.listSchemasPagedCallable().futureCall(request);
    +   *   // Do something.
        *   for (Schema element : future.get().iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    */ public final UnaryCallable listSchemasPagedCallable() { return stub.listSchemasPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists schemas in a project. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    -   *   ListSchemasRequest request = ListSchemasRequest.newBuilder()
    -   *     .setParent(parent.toString())
    -   *     .build();
    +   *   ListSchemasRequest request =
    +   *       ListSchemasRequest.newBuilder()
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
    +   *           .setView(SchemaView.forNumber(0))
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   while (true) {
        *     ListSchemasResponse response = schemaServiceClient.listSchemasCallable().call(request);
        *     for (Schema element : response.getSchemasList()) {
    @@ -504,24 +515,24 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
        *     }
        *   }
        * }
    -   * 
    + * }
    */ public final UnaryCallable listSchemasCallable() { return stub.listSchemasCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
        *   schemaServiceClient.deleteSchema(name);
        * }
    -   * 
    + * }
    * * @param name Required. Name of the schema to delete. Format is * `projects/{project}/schemas/{schema}`. @@ -533,18 +544,18 @@ public final void deleteSchema(SchemaName name) { deleteSchema(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    -   *   schemaServiceClient.deleteSchema(name.toString());
    +   *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    +   *   schemaServiceClient.deleteSchema(name);
        * }
    -   * 
    + * }
    * * @param name Required. Name of the schema to delete. Format is * `projects/{project}/schemas/{schema}`. @@ -555,21 +566,21 @@ public final void deleteSchema(String name) { deleteSchema(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    -   *   DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder()
    -   *     .setName(name.toString())
    -   *     .build();
    +   *   DeleteSchemaRequest request =
    +   *       DeleteSchemaRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .build();
        *   schemaServiceClient.deleteSchema(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -578,41 +589,41 @@ public final void deleteSchema(DeleteSchemaRequest request) { deleteSchemaCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    -   *   DeleteSchemaRequest request = DeleteSchemaRequest.newBuilder()
    -   *     .setName(name.toString())
    -   *     .build();
    -   *   ApiFuture<Void> future = schemaServiceClient.deleteSchemaCallable().futureCall(request);
    -   *   // Do something
    +   *   DeleteSchemaRequest request =
    +   *       DeleteSchemaRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .build();
    +   *   ApiFuture future = schemaServiceClient.deleteSchemaCallable().futureCall(request);
    +   *   // Do something.
        *   future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable deleteSchemaCallable() { return stub.deleteSchemaCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Validates a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ProjectName parent = ProjectName.of("[PROJECT]");
        *   Schema schema = Schema.newBuilder().build();
        *   ValidateSchemaResponse response = schemaServiceClient.validateSchema(parent, schema);
        * }
    -   * 
    + * }
    * * @param parent Required. The name of the project in which to validate schemas. Format is * `projects/{project-id}`. @@ -628,19 +639,19 @@ public final ValidateSchemaResponse validateSchema(ProjectName parent, Schema sc return validateSchema(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Validates a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   String parent = ProjectName.of("[PROJECT]").toString();
        *   Schema schema = Schema.newBuilder().build();
    -   *   ValidateSchemaResponse response = schemaServiceClient.validateSchema(parent.toString(), schema);
    +   *   ValidateSchemaResponse response = schemaServiceClient.validateSchema(parent, schema);
        * }
    -   * 
    + * }
    * * @param parent Required. The name of the project in which to validate schemas. Format is * `projects/{project-id}`. @@ -653,23 +664,22 @@ public final ValidateSchemaResponse validateSchema(String parent, Schema schema) return validateSchema(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Validates a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    -   *   Schema schema = Schema.newBuilder().build();
    -   *   ValidateSchemaRequest request = ValidateSchemaRequest.newBuilder()
    -   *     .setParent(parent.toString())
    -   *     .setSchema(schema)
    -   *     .build();
    +   *   ValidateSchemaRequest request =
    +   *       ValidateSchemaRequest.newBuilder()
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
    +   *           .setSchema(Schema.newBuilder().build())
    +   *           .build();
        *   ValidateSchemaResponse response = schemaServiceClient.validateSchema(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -678,46 +688,48 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request return validateSchemaCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Validates a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    -   *   Schema schema = Schema.newBuilder().build();
    -   *   ValidateSchemaRequest request = ValidateSchemaRequest.newBuilder()
    -   *     .setParent(parent.toString())
    -   *     .setSchema(schema)
    -   *     .build();
    -   *   ApiFuture<ValidateSchemaResponse> future = schemaServiceClient.validateSchemaCallable().futureCall(request);
    -   *   // Do something
    +   *   ValidateSchemaRequest request =
    +   *       ValidateSchemaRequest.newBuilder()
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
    +   *           .setSchema(Schema.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       schemaServiceClient.validateSchemaCallable().futureCall(request);
    +   *   // Do something.
        *   ValidateSchemaResponse response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable validateSchemaCallable() { return stub.validateSchemaCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Validates a message against a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    -   *   ValidateMessageRequest request = ValidateMessageRequest.newBuilder()
    -   *     .setParent(parent.toString())
    -   *     .build();
    +   *   ValidateMessageRequest request =
    +   *       ValidateMessageRequest.newBuilder()
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
    +   *           .setMessage(ByteString.EMPTY)
    +   *           .setEncoding(Encoding.forNumber(0))
    +   *           .build();
        *   ValidateMessageResponse response = schemaServiceClient.validateMessage(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -726,29 +738,191 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ return validateMessageCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Validates a message against a schema. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    -   *   ProjectName parent = ProjectName.of("[PROJECT]");
    -   *   ValidateMessageRequest request = ValidateMessageRequest.newBuilder()
    -   *     .setParent(parent.toString())
    -   *     .build();
    -   *   ApiFuture<ValidateMessageResponse> future = schemaServiceClient.validateMessageCallable().futureCall(request);
    -   *   // Do something
    +   *   ValidateMessageRequest request =
    +   *       ValidateMessageRequest.newBuilder()
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
    +   *           .setMessage(ByteString.EMPTY)
    +   *           .setEncoding(Encoding.forNumber(0))
    +   *           .build();
    +   *   ApiFuture future =
    +   *       schemaServiceClient.validateMessageCallable().futureCall(request);
    +   *   // Do something.
        *   ValidateMessageResponse response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable validateMessageCallable() { return stub.validateMessageCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

    Sample code: + * + *

    {@code
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .build();
    +   *   Policy response = schemaServiceClient.setIamPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

    Sample code: + * + *

    {@code
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = schemaServiceClient.setIamPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Policy response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    {@code
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   Policy response = schemaServiceClient.getIamPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

    Sample code: + * + *

    {@code
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = schemaServiceClient.getIamPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Policy response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

    Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

    Sample code: + * + *

    {@code
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
    +   *   TestIamPermissionsResponse response = schemaServiceClient.testIamPermissions(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

    Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

    Sample code: + * + *

    {@code
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       schemaServiceClient.testIamPermissionsCallable().futureCall(request);
    +   *   // Do something.
    +   *   TestIamPermissionsResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 4d2590c18ce3..eb2d803cda8e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; @@ -29,6 +30,11 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.pubsub.v1.stub.SchemaServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; @@ -44,7 +50,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link SchemaServiceClient}. * @@ -61,22 +67,23 @@ * *

    For example, to set the total timeout of createSchema to 30 seconds: * - *

    - * 
    - * SchemaServiceSettings.Builder schemaServiceSettingsBuilder =
    - *     SchemaServiceSettings.newBuilder();
    + * 
    {@code
    + * SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder();
      * schemaServiceSettingsBuilder
      *     .createSchemaSettings()
      *     .setRetrySettings(
    - *         schemaServiceSettingsBuilder.createSchemaSettings().getRetrySettings().toBuilder()
    + *         schemaServiceSettingsBuilder
    + *             .createSchemaSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
    - * 
    - * 
    + * }
    */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class SchemaServiceSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createSchema. */ public UnaryCallSettings createSchemaSettings() { return ((SchemaServiceStubSettings) getStubSettings()).createSchemaSettings(); @@ -109,6 +116,22 @@ public UnaryCallSettings validate return ((SchemaServiceStubSettings) getStubSettings()).validateMessageSettings(); } + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((SchemaServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((SchemaServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + public static final SchemaServiceSettings create(SchemaServiceStubSettings stub) throws IOException { return new SchemaServiceSettings.Builder(stub.toBuilder()).build(); @@ -169,18 +192,15 @@ protected SchemaServiceSettings(Builder settingsBuilder) throws IOException { /** Builder for SchemaServiceSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(SchemaServiceStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(SchemaServiceStubSettings.newBuilder()); - } - protected Builder(SchemaServiceSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -189,6 +209,10 @@ protected Builder(SchemaServiceStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(SchemaServiceStubSettings.newBuilder()); + } + public SchemaServiceStubSettings.Builder getStubSettingsBuilder() { return ((SchemaServiceStubSettings.Builder) getStubSettings()); } @@ -240,6 +264,22 @@ public UnaryCallSettings.Builder deleteSchemaSetting return getStubSettingsBuilder().validateMessageSettings(); } + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + @Override public SchemaServiceSettings build() throws IOException { return new SchemaServiceSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 6c5b7a43d3d7..6cfed59628e6 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.ApiFunction; @@ -68,30 +69,27 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: 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. * - *

    To retrieve messages from a subscription, see the Subscriber class. - * *

    This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * - *

    - * 
    + * 
    {@code
      * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   PushConfig pushConfig = PushConfig.newBuilder().build();
    - *   int ackDeadlineSeconds = 0;
    - *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    + *   int ackDeadlineSeconds = 2135351438;
    + *   Subscription response =
    + *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
      * }
    - * 
    - * 
    + * }
    * - *

    Note: close() needs to be called on the subscriptionAdminClient object to clean up resources + *

    Note: close() needs to be called on the SubscriptionAdminClient object to clean up resources * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). * @@ -120,29 +118,27 @@ * *

    To customize credentials: * - *

    - * 
    + * 
    {@code
      * SubscriptionAdminSettings subscriptionAdminSettings =
      *     SubscriptionAdminSettings.newBuilder()
      *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      *         .build();
      * SubscriptionAdminClient subscriptionAdminClient =
      *     SubscriptionAdminClient.create(subscriptionAdminSettings);
    - * 
    - * 
    + * }
    * - * To customize the endpoint: + *

    To customize the endpoint: * - *

    - * 
    + * 
    {@code
      * SubscriptionAdminSettings subscriptionAdminSettings =
      *     SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
      * SubscriptionAdminClient subscriptionAdminClient =
      *     SubscriptionAdminClient.create(subscriptionAdminSettings);
    - * 
    - * 
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class SubscriptionAdminClient implements BackgroundResource { private final SubscriptionAdminSettings settings; private final SubscriberStub stub; @@ -163,7 +159,7 @@ public static final SubscriptionAdminClient create(SubscriptionAdminSettings set /** * Constructs an instance of SubscriptionAdminClient, using the given stub for making calls. This - * is for advanced usage - prefer to use SubscriptionAdminSettings}. + * is for advanced usage - prefer using create(SubscriptionAdminSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final SubscriptionAdminClient create(SubscriberStub stub) { @@ -195,7 +191,7 @@ public SubscriberStub getStub() { return stub; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already @@ -210,15 +206,16 @@ public SubscriberStub getStub() { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
    -   *   int ackDeadlineSeconds = 0;
    -   *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   Subscription response =
    +   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
        * }
    -   * 
    + * }
    * * @param name Required. The name of the subscription. It must have the format * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a @@ -263,7 +260,7 @@ public final Subscription createSubscription( return createSubscription(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already @@ -278,7 +275,139 @@ public final Subscription createSubscription( * *

    Sample code: * - *

    
    +   * 
    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    +   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   Subscription response =
    +   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    +   * }
    +   * }
    + * + * @param name 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"`. + * @param topic 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. + * @param 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. + * @param ackDeadlineSeconds 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 + * <i>outstanding</i>. 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subscription createSubscription( + ProjectSubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   String name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   Subscription response =
    +   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    +   * }
    +   * }
    + * + * @param name 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"`. + * @param topic 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. + * @param 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. + * @param ackDeadlineSeconds 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 + * <i>outstanding</i>. 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subscription createSubscription( + String name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name) + .setTopic(topic == null ? null : topic.toString()) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. + * + *

    Sample code: + * + *

    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    @@ -328,7 +457,7 @@ public final Subscription createSubscription(
         return createSubscription(request);
       }
     
    -  // AUTO-GENERATED DOCUMENTATION AND METHOD
    +  // AUTO-GENERATED DOCUMENTATION AND METHOD.
       /**
        * Creates a subscription to a given topic. See the [resource name rules]
        * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already
    @@ -343,17 +472,28 @@ public final Subscription createSubscription(
        *
        * 

    Sample code: * - *

    
    -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   Subscription request = Subscription.newBuilder()
    -   *     .setName(name.toString())
    -   *     .setTopic(topic.toString())
    -   *     .build();
    +   * 
    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   Subscription request =
    +   *       Subscription.newBuilder()
    +   *           .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .setPushConfig(PushConfig.newBuilder().build())
    +   *           .setAckDeadlineSeconds(2135351438)
    +   *           .setRetainAckedMessages(true)
    +   *           .setMessageRetentionDuration(Duration.newBuilder().build())
    +   *           .putAllLabels(new HashMap())
    +   *           .setEnableMessageOrdering(true)
    +   *           .setExpirationPolicy(ExpirationPolicy.newBuilder().build())
    +   *           .setFilter("filter-1274492040")
    +   *           .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
    +   *           .setRetryPolicy(RetryPolicy.newBuilder().build())
    +   *           .setDetached(true)
    +   *           .setTopicMessageRetentionDuration(Duration.newBuilder().build())
    +   *           .build();
        *   Subscription response = subscriptionAdminClient.createSubscription(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -433,7 +573,7 @@ public final Subscription createSubscription( return createSubscription(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already @@ -448,36 +588,48 @@ public final Subscription createSubscription( * *

    Sample code: * - *

    
    -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   Subscription request = Subscription.newBuilder()
    -   *     .setName(name.toString())
    -   *     .setTopic(topic.toString())
    -   *     .build();
    -   *   ApiFuture<Subscription> future = subscriptionAdminClient.createSubscriptionCallable().futureCall(request);
    -   *   // Do something
    +   * 
    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   Subscription request =
    +   *       Subscription.newBuilder()
    +   *           .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .setPushConfig(PushConfig.newBuilder().build())
    +   *           .setAckDeadlineSeconds(2135351438)
    +   *           .setRetainAckedMessages(true)
    +   *           .setMessageRetentionDuration(Duration.newBuilder().build())
    +   *           .putAllLabels(new HashMap())
    +   *           .setEnableMessageOrdering(true)
    +   *           .setExpirationPolicy(ExpirationPolicy.newBuilder().build())
    +   *           .setFilter("filter-1274492040")
    +   *           .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build())
    +   *           .setRetryPolicy(RetryPolicy.newBuilder().build())
    +   *           .setDetached(true)
    +   *           .setTopicMessageRetentionDuration(Duration.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.createSubscriptionCallable().futureCall(request);
    +   *   // Do something.
        *   Subscription response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable createSubscriptionCallable() { return stub.createSubscriptionCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration details of a subscription. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
        * }
    -   * 
    + * }
    * * @param subscription Required. The name of the subscription to get. Format is * `projects/{project}/subscriptions/{sub}`. @@ -491,18 +643,18 @@ public final Subscription getSubscription(ProjectSubscriptionName subscription) return getSubscription(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration details of a subscription. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   Subscription response = subscriptionAdminClient.getSubscription(subscription.toString());
        * }
    -   * 
    + * }
    * * @param subscription Required. The name of the subscription to get. Format is * `projects/{project}/subscriptions/{sub}`. @@ -514,21 +666,21 @@ public final Subscription getSubscription(String subscription) { return getSubscription(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration details of a subscription. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .build();
    +   *   GetSubscriptionRequest request =
    +   *       GetSubscriptionRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .build();
        *   Subscription response = subscriptionAdminClient.getSubscription(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -537,53 +689,46 @@ public final Subscription getSubscription(GetSubscriptionRequest request) { return getSubscriptionCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration details of a subscription. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .build();
    -   *   ApiFuture<Subscription> future = subscriptionAdminClient.getSubscriptionCallable().futureCall(request);
    -   *   // Do something
    +   *   GetSubscriptionRequest request =
    +   *       GetSubscriptionRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.getSubscriptionCallable().futureCall(request);
    +   *   // Do something.
        *   Subscription response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable getSubscriptionCallable() { return stub.getSubscriptionCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing subscription. Note that certain properties of a subscription, such as its * topic, are not modifiable. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   int ackDeadlineSeconds = 42;
    -   *   Subscription subscription = Subscription.newBuilder()
    -   *     .setAckDeadlineSeconds(ackDeadlineSeconds)
    -   *     .build();
    -   *   String pathsElement = "ack_deadline_seconds";
    -   *   List<String> paths = Arrays.asList(pathsElement);
    -   *   FieldMask updateMask = FieldMask.newBuilder()
    -   *     .addAllPaths(paths)
    -   *     .build();
    -   *   UpdateSubscriptionRequest request = UpdateSubscriptionRequest.newBuilder()
    -   *     .setSubscription(subscription)
    -   *     .setUpdateMask(updateMask)
    -   *     .build();
    +   *   UpdateSubscriptionRequest request =
    +   *       UpdateSubscriptionRequest.newBuilder()
    +   *           .setSubscription(Subscription.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
        *   Subscription response = subscriptionAdminClient.updateSubscription(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -592,52 +737,45 @@ public final Subscription updateSubscription(UpdateSubscriptionRequest request) return updateSubscriptionCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing subscription. Note that certain properties of a subscription, such as its * topic, are not modifiable. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   int ackDeadlineSeconds = 42;
    -   *   Subscription subscription = Subscription.newBuilder()
    -   *     .setAckDeadlineSeconds(ackDeadlineSeconds)
    -   *     .build();
    -   *   String pathsElement = "ack_deadline_seconds";
    -   *   List<String> paths = Arrays.asList(pathsElement);
    -   *   FieldMask updateMask = FieldMask.newBuilder()
    -   *     .addAllPaths(paths)
    -   *     .build();
    -   *   UpdateSubscriptionRequest request = UpdateSubscriptionRequest.newBuilder()
    -   *     .setSubscription(subscription)
    -   *     .setUpdateMask(updateMask)
    -   *     .build();
    -   *   ApiFuture<Subscription> future = subscriptionAdminClient.updateSubscriptionCallable().futureCall(request);
    -   *   // Do something
    +   *   UpdateSubscriptionRequest request =
    +   *       UpdateSubscriptionRequest.newBuilder()
    +   *           .setSubscription(Subscription.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.updateSubscriptionCallable().futureCall(request);
    +   *   // Do something.
        *   Subscription response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable updateSubscriptionCallable() { return stub.updateSubscriptionCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists matching subscriptions. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectName project = ProjectName.of("[PROJECT]");
        *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param project Required. The name of the project in which to list subscriptions. Format is * `projects/{project-id}`. @@ -651,20 +789,20 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec return listSubscriptions(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists matching subscriptions. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project.toString()).iterateAll()) {
    +   *   String project = ProjectName.of("[PROJECT]").toString();
    +   *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param project Required. The name of the project in which to list subscriptions. Format is * `projects/{project-id}`. @@ -676,23 +814,25 @@ public final ListSubscriptionsPagedResponse listSubscriptions(String project) { return listSubscriptions(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists matching subscriptions. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   ListSubscriptionsRequest request = ListSubscriptionsRequest.newBuilder()
    -   *     .setProject(project.toString())
    -   *     .build();
    +   *   ListSubscriptionsRequest request =
    +   *       ListSubscriptionsRequest.newBuilder()
    +   *           .setProject(ProjectName.of("[PROJECT]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   for (Subscription element : subscriptionAdminClient.listSubscriptions(request).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -701,45 +841,51 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR return listSubscriptionsPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists matching subscriptions. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   ListSubscriptionsRequest request = ListSubscriptionsRequest.newBuilder()
    -   *     .setProject(project.toString())
    -   *     .build();
    -   *   ApiFuture<ListSubscriptionsPagedResponse> future = subscriptionAdminClient.listSubscriptionsPagedCallable().futureCall(request);
    -   *   // Do something
    +   *   ListSubscriptionsRequest request =
    +   *       ListSubscriptionsRequest.newBuilder()
    +   *           .setProject(ProjectName.of("[PROJECT]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.listSubscriptionsPagedCallable().futureCall(request);
    +   *   // Do something.
        *   for (Subscription element : future.get().iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    */ public final UnaryCallable listSubscriptionsPagedCallable() { return stub.listSubscriptionsPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists matching subscriptions. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   ListSubscriptionsRequest request = ListSubscriptionsRequest.newBuilder()
    -   *     .setProject(project.toString())
    -   *     .build();
    +   *   ListSubscriptionsRequest request =
    +   *       ListSubscriptionsRequest.newBuilder()
    +   *           .setProject(ProjectName.of("[PROJECT]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   while (true) {
    -   *     ListSubscriptionsResponse response = subscriptionAdminClient.listSubscriptionsCallable().call(request);
    +   *     ListSubscriptionsResponse response =
    +   *         subscriptionAdminClient.listSubscriptionsCallable().call(request);
        *     for (Subscription element : response.getSubscriptionsList()) {
        *       // doThingsWith(element);
        *     }
    @@ -751,14 +897,14 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
        *     }
        *   }
        * }
    -   * 
    + * }
    */ public final UnaryCallable listSubscriptionsCallable() { return stub.listSubscriptionsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -767,12 +913,12 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   subscriptionAdminClient.deleteSubscription(subscription);
        * }
    -   * 
    + * }
    * * @param subscription Required. The subscription to delete. Format is * `projects/{project}/subscriptions/{sub}`. @@ -786,7 +932,7 @@ public final void deleteSubscription(ProjectSubscriptionName subscription) { deleteSubscription(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -795,12 +941,12 @@ public final void deleteSubscription(ProjectSubscriptionName subscription) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   subscriptionAdminClient.deleteSubscription(subscription.toString());
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   subscriptionAdminClient.deleteSubscription(subscription);
        * }
    -   * 
    + * }
    * * @param subscription Required. The subscription to delete. Format is * `projects/{project}/subscriptions/{sub}`. @@ -812,7 +958,7 @@ public final void deleteSubscription(String subscription) { deleteSubscription(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -821,15 +967,15 @@ public final void deleteSubscription(String subscription) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .build();
    +   *   DeleteSubscriptionRequest request =
    +   *       DeleteSubscriptionRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .build();
        *   subscriptionAdminClient.deleteSubscription(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -838,7 +984,7 @@ public final void deleteSubscription(DeleteSubscriptionRequest request) { deleteSubscriptionCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -847,184 +993,81 @@ public final void deleteSubscription(DeleteSubscriptionRequest request) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .build();
    -   *   ApiFuture<Void> future = subscriptionAdminClient.deleteSubscriptionCallable().futureCall(request);
    -   *   // Do something
    +   *   DeleteSubscriptionRequest request =
    +   *       DeleteSubscriptionRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.deleteSubscriptionCallable().futureCall(request);
    +   *   // Do something.
        *   future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable deleteSubscriptionCallable() { return stub.deleteSubscriptionCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the configuration details of a snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * 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. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   List ackIds = new ArrayList<>();
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
        * }
    -   * 
    + * }
    * - * @param snapshot Required. The name of the snapshot to get. Format is - * `projects/{project}/snapshots/{snap}`. + * @param subscription Required. The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds Required. List of acknowledgment IDs. + * @param ackDeadlineSeconds 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). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final Snapshot getSnapshot(ProjectSnapshotName snapshot) { - GetSnapshotRequest request = - GetSnapshotRequest.newBuilder() - .setSnapshot(snapshot == null ? null : snapshot.toString()) + /* package-private */ final void modifyAckDeadline( + ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { + ModifyAckDeadlineRequest request = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .addAllAckIds(ackIds) + .setAckDeadlineSeconds(ackDeadlineSeconds) .build(); - return getSnapshot(request); + modifyAckDeadline(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the configuration details of a snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * 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. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot.toString());
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   List ackIds = new ArrayList<>();
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
        * }
    -   * 
    - * - * @param snapshot Required. The name of the snapshot to get. Format is - * `projects/{project}/snapshots/{snap}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - /* package-private */ final Snapshot getSnapshot(String snapshot) { - GetSnapshotRequest request = GetSnapshotRequest.newBuilder().setSnapshot(snapshot).build(); - return getSnapshot(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets the configuration details of a snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * - *

    Sample code: - * - *

    
    -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   GetSnapshotRequest request = GetSnapshotRequest.newBuilder()
    -   *     .setSnapshot(snapshot.toString())
    -   *     .build();
    -   *   Snapshot response = subscriptionAdminClient.getSnapshot(request);
    -   * }
    -   * 
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - /* package-private */ final Snapshot getSnapshot(GetSnapshotRequest request) { - return getSnapshotCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets the configuration details of a snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * - *

    Sample code: - * - *

    
    -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   GetSnapshotRequest request = GetSnapshotRequest.newBuilder()
    -   *     .setSnapshot(snapshot.toString())
    -   *     .build();
    -   *   ApiFuture<Snapshot> future = subscriptionAdminClient.getSnapshotCallable().futureCall(request);
    -   *   // Do something
    -   *   Snapshot response = future.get();
    -   * }
    -   * 
    - */ - /* package-private */ final UnaryCallable getSnapshotCallable() { - return stub.getSnapshotCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * 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. - * - *

    Sample code: - * - *

    
    -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   List<String> ackIds = new ArrayList<>();
    -   *   int ackDeadlineSeconds = 0;
    -   *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
    -   * }
    -   * 
    - * - * @param subscription Required. The name of the subscription. Format is - * `projects/{project}/subscriptions/{sub}`. - * @param ackIds Required. List of acknowledgment IDs. - * @param ackDeadlineSeconds 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). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - /* package-private */ final void modifyAckDeadline( - ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { - ModifyAckDeadlineRequest request = - ModifyAckDeadlineRequest.newBuilder() - .setSubscription(subscription == null ? null : subscription.toString()) - .addAllAckIds(ackIds) - .setAckDeadlineSeconds(ackDeadlineSeconds) - .build(); - modifyAckDeadline(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * 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. - * - *

    Sample code: - * - *

    
    -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   List<String> ackIds = new ArrayList<>();
    -   *   int ackDeadlineSeconds = 0;
    -   *   subscriptionAdminClient.modifyAckDeadline(subscription.toString(), ackIds, ackDeadlineSeconds);
    -   * }
    -   * 
    + * }
    * * @param subscription Required. The name of the subscription. Format is * `projects/{project}/subscriptions/{sub}`. @@ -1038,7 +1081,7 @@ public final UnaryCallable deleteSubscriptionC * 600 seconds (10 minutes). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final void modifyAckDeadline( + public final void modifyAckDeadline( String subscription, List ackIds, int ackDeadlineSeconds) { ModifyAckDeadlineRequest request = ModifyAckDeadlineRequest.newBuilder() @@ -1049,7 +1092,7 @@ public final UnaryCallable deleteSubscriptionC modifyAckDeadline(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -1058,28 +1101,26 @@ public final UnaryCallable deleteSubscriptionC * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   List<String> ackIds = new ArrayList<>();
    -   *   int ackDeadlineSeconds = 0;
    -   *   ModifyAckDeadlineRequest request = ModifyAckDeadlineRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .addAllAckIds(ackIds)
    -   *     .setAckDeadlineSeconds(ackDeadlineSeconds)
    -   *     .build();
    +   *   ModifyAckDeadlineRequest request =
    +   *       ModifyAckDeadlineRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .addAllAckIds(new ArrayList())
    +   *           .setAckDeadlineSeconds(2135351438)
    +   *           .build();
        *   subscriptionAdminClient.modifyAckDeadline(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final void modifyAckDeadline(ModifyAckDeadlineRequest request) { + public final void modifyAckDeadline(ModifyAckDeadlineRequest request) { modifyAckDeadlineCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -1088,28 +1129,26 @@ public final UnaryCallable deleteSubscriptionC * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   List<String> ackIds = new ArrayList<>();
    -   *   int ackDeadlineSeconds = 0;
    -   *   ModifyAckDeadlineRequest request = ModifyAckDeadlineRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .addAllAckIds(ackIds)
    -   *     .setAckDeadlineSeconds(ackDeadlineSeconds)
    -   *     .build();
    -   *   ApiFuture<Void> future = subscriptionAdminClient.modifyAckDeadlineCallable().futureCall(request);
    -   *   // Do something
    +   *   ModifyAckDeadlineRequest request =
    +   *       ModifyAckDeadlineRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .addAllAckIds(new ArrayList())
    +   *           .setAckDeadlineSeconds(2135351438)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.modifyAckDeadlineCallable().futureCall(request);
    +   *   // Do something.
        *   future.get();
        * }
    -   * 
    + * }
    */ - /* package-private */ final UnaryCallable - modifyAckDeadlineCallable() { + public final UnaryCallable modifyAckDeadlineCallable() { return stub.modifyAckDeadlineCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The * Pub/Sub system can remove the relevant messages from the subscription. @@ -1119,13 +1158,13 @@ public final UnaryCallable deleteSubscriptionC * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   List<String> ackIds = new ArrayList<>();
    +   *   List ackIds = new ArrayList<>();
        *   subscriptionAdminClient.acknowledge(subscription, ackIds);
        * }
    -   * 
    + * }
    * * @param subscription Required. The subscription whose message is being acknowledged. Format is * `projects/{project}/subscriptions/{sub}`. @@ -1143,7 +1182,7 @@ public final UnaryCallable deleteSubscriptionC acknowledge(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The * Pub/Sub system can remove the relevant messages from the subscription. @@ -1153,13 +1192,13 @@ public final UnaryCallable deleteSubscriptionC * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   List<String> ackIds = new ArrayList<>();
    -   *   subscriptionAdminClient.acknowledge(subscription.toString(), ackIds);
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   List ackIds = new ArrayList<>();
    +   *   subscriptionAdminClient.acknowledge(subscription, ackIds);
        * }
    -   * 
    + * }
    * * @param subscription Required. The subscription whose message is being acknowledged. Format is * `projects/{project}/subscriptions/{sub}`. @@ -1167,13 +1206,13 @@ public final UnaryCallable deleteSubscriptionC * returned by the Pub/Sub system in the `Pull` response. Must not be empty. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final void acknowledge(String subscription, List ackIds) { + public final void acknowledge(String subscription, List ackIds) { AcknowledgeRequest request = AcknowledgeRequest.newBuilder().setSubscription(subscription).addAllAckIds(ackIds).build(); acknowledge(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The * Pub/Sub system can remove the relevant messages from the subscription. @@ -1183,26 +1222,25 @@ public final UnaryCallable deleteSubscriptionC * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   List<String> ackIds = new ArrayList<>();
    -   *   AcknowledgeRequest request = AcknowledgeRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .addAllAckIds(ackIds)
    -   *     .build();
    +   *   AcknowledgeRequest request =
    +   *       AcknowledgeRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .addAllAckIds(new ArrayList())
    +   *           .build();
        *   subscriptionAdminClient.acknowledge(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final void acknowledge(AcknowledgeRequest request) { + public final void acknowledge(AcknowledgeRequest request) { acknowledgeCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The * Pub/Sub system can remove the relevant messages from the subscription. @@ -1212,39 +1250,96 @@ public final UnaryCallable deleteSubscriptionC * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   List<String> ackIds = new ArrayList<>();
    -   *   AcknowledgeRequest request = AcknowledgeRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .addAllAckIds(ackIds)
    -   *     .build();
    -   *   ApiFuture<Void> future = subscriptionAdminClient.acknowledgeCallable().futureCall(request);
    -   *   // Do something
    +   *   AcknowledgeRequest request =
    +   *       AcknowledgeRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .addAllAckIds(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future = subscriptionAdminClient.acknowledgeCallable().futureCall(request);
    +   *   // Do something.
        *   future.get();
        * }
    -   * 
    + * }
    */ - /* package-private */ final UnaryCallable acknowledgeCallable() { + public final UnaryCallable acknowledgeCallable() { return stub.acknowledgeCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many * concurrent pull requests pending for the given subscription. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   boolean returnImmediately = false;
    -   *   int maxMessages = 0;
    -   *   PullResponse response = subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages);
    +   *   int maxMessages = 496131527;
    +   *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);
        * }
    -   * 
    + * }
    + * + * @param subscription Required. The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param maxMessages 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullResponse pull(ProjectSubscriptionName subscription, int maxMessages) { + PullRequest request = + PullRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setMaxMessages(maxMessages) + .build(); + return pull(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   int maxMessages = 496131527;
    +   *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);
    +   * }
    +   * }
    + * + * @param subscription Required. The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param maxMessages 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullResponse pull(String subscription, int maxMessages) { + PullRequest request = + PullRequest.newBuilder().setSubscription(subscription).setMaxMessages(maxMessages).build(); + return pull(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   boolean returnImmediately = true;
    +   *   int maxMessages = 496131527;
    +   *   PullResponse response =
    +   *       subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages);
    +   * }
    +   * }
    * * @param subscription Required. The subscription from which messages should be pulled. Format is * `projects/{project}/subscriptions/{sub}`. @@ -1269,21 +1364,22 @@ public final UnaryCallable deleteSubscriptionC return pull(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many * concurrent pull requests pending for the given subscription. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   boolean returnImmediately = false;
    -   *   int maxMessages = 0;
    -   *   PullResponse response = subscriptionAdminClient.pull(subscription.toString(), returnImmediately, maxMessages);
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   boolean returnImmediately = true;
    +   *   int maxMessages = 496131527;
    +   *   PullResponse response =
    +   *       subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages);
        * }
    -   * 
    + * }
    * * @param subscription Required. The subscription from which messages should be pulled. Format is * `projects/{project}/subscriptions/{sub}`. @@ -1297,8 +1393,7 @@ public final UnaryCallable deleteSubscriptionC * a positive integer. The Pub/Sub system may return fewer than the number specified. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final PullResponse pull( - String subscription, boolean returnImmediately, int maxMessages) { + public final PullResponse pull(String subscription, boolean returnImmediately, int maxMessages) { PullRequest request = PullRequest.newBuilder() .setSubscription(subscription) @@ -1308,58 +1403,58 @@ public final UnaryCallable deleteSubscriptionC return pull(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many * concurrent pull requests pending for the given subscription. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   int maxMessages = 0;
    -   *   PullRequest request = PullRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .setMaxMessages(maxMessages)
    -   *     .build();
    +   *   PullRequest request =
    +   *       PullRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setReturnImmediately(true)
    +   *           .setMaxMessages(496131527)
    +   *           .build();
        *   PullResponse response = subscriptionAdminClient.pull(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final PullResponse pull(PullRequest request) { + public final PullResponse pull(PullRequest request) { return pullCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many * concurrent pull requests pending for the given subscription. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   int maxMessages = 0;
    -   *   PullRequest request = PullRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .setMaxMessages(maxMessages)
    -   *     .build();
    -   *   ApiFuture<PullResponse> future = subscriptionAdminClient.pullCallable().futureCall(request);
    -   *   // Do something
    +   *   PullRequest request =
    +   *       PullRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setReturnImmediately(true)
    +   *           .setMaxMessages(496131527)
    +   *           .build();
    +   *   ApiFuture future = subscriptionAdminClient.pullCallable().futureCall(request);
    +   *   // Do something.
        *   PullResponse response = future.get();
        * }
    -   * 
    + * }
    */ - /* package-private */ final UnaryCallable pullCallable() { + public final UnaryCallable pullCallable() { return stub.pullCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -1370,30 +1465,34 @@ public final UnaryCallable deleteSubscriptionC * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   BidiStream<StreamingPullRequest, StreamingPullResponse> bidiStream =
    +   *   BidiStream bidiStream =
        *       subscriptionAdminClient.streamingPullCallable().call();
    -   *
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   int streamAckDeadlineSeconds = 0;
    -   *   StreamingPullRequest request = StreamingPullRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .setStreamAckDeadlineSeconds(streamAckDeadlineSeconds)
    -   *     .build();
    +   *   StreamingPullRequest request =
    +   *       StreamingPullRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .addAllAckIds(new ArrayList())
    +   *           .addAllModifyDeadlineSeconds(new ArrayList())
    +   *           .addAllModifyDeadlineAckIds(new ArrayList())
    +   *           .setStreamAckDeadlineSeconds(1875467245)
    +   *           .setClientId("clientId908408390")
    +   *           .setMaxOutstandingMessages(-1315266996)
    +   *           .setMaxOutstandingBytes(-2103098517)
    +   *           .build();
        *   bidiStream.send(request);
        *   for (StreamingPullResponse response : bidiStream) {
    -   *     // Do something when receive a response
    +   *     // Do something when a response is received.
        *   }
        * }
    -   * 
    + * }
    */ - /* package-private */ final BidiStreamingCallable + public final BidiStreamingCallable streamingPullCallable() { return stub.streamingPullCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Modifies the `PushConfig` for a specified subscription. * @@ -1404,13 +1503,13 @@ public final UnaryCallable deleteSubscriptionC * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
        *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
        * }
    -   * 
    + * }
    * * @param subscription Required. The name of the subscription. Format is * `projects/{project}/subscriptions/{sub}`. @@ -1429,7 +1528,7 @@ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushCon modifyPushConfig(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Modifies the `PushConfig` for a specified subscription. * @@ -1440,13 +1539,13 @@ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushCon * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
    -   *   subscriptionAdminClient.modifyPushConfig(subscription.toString(), pushConfig);
    +   *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
        * }
    -   * 
    + * }
    * * @param subscription Required. The name of the subscription. Format is * `projects/{project}/subscriptions/{sub}`. @@ -1465,7 +1564,7 @@ public final void modifyPushConfig(String subscription, PushConfig pushConfig) { modifyPushConfig(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Modifies the `PushConfig` for a specified subscription. * @@ -1476,17 +1575,16 @@ public final void modifyPushConfig(String subscription, PushConfig pushConfig) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    -   *   ModifyPushConfigRequest request = ModifyPushConfigRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .setPushConfig(pushConfig)
    -   *     .build();
    +   *   ModifyPushConfigRequest request =
    +   *       ModifyPushConfigRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setPushConfig(PushConfig.newBuilder().build())
    +   *           .build();
        *   subscriptionAdminClient.modifyPushConfig(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1495,7 +1593,7 @@ public final void modifyPushConfig(ModifyPushConfigRequest request) { modifyPushConfigCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Modifies the `PushConfig` for a specified subscription. * @@ -1506,25 +1604,130 @@ public final void modifyPushConfig(ModifyPushConfigRequest request) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    -   *   ModifyPushConfigRequest request = ModifyPushConfigRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .setPushConfig(pushConfig)
    -   *     .build();
    -   *   ApiFuture<Void> future = subscriptionAdminClient.modifyPushConfigCallable().futureCall(request);
    -   *   // Do something
    +   *   ModifyPushConfigRequest request =
    +   *       ModifyPushConfigRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setPushConfig(PushConfig.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.modifyPushConfigCallable().futureCall(request);
    +   *   // Do something.
        *   future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable modifyPushConfigCallable() { return stub.modifyPushConfigCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    +   * }
    +   * }
    + * + * @param snapshot Required. The name of the snapshot to get. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot getSnapshot(ProjectSnapshotName snapshot) { + GetSnapshotRequest request = + GetSnapshotRequest.newBuilder() + .setSnapshot(snapshot == null ? null : snapshot.toString()) + .build(); + return getSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   String snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    +   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    +   * }
    +   * }
    + * + * @param snapshot Required. The name of the snapshot to get. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot getSnapshot(String snapshot) { + GetSnapshotRequest request = GetSnapshotRequest.newBuilder().setSnapshot(snapshot).build(); + return getSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   GetSnapshotRequest request =
    +   *       GetSnapshotRequest.newBuilder()
    +   *           .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +   *           .build();
    +   *   Snapshot response = subscriptionAdminClient.getSnapshot(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot getSnapshot(GetSnapshotRequest request) { + return getSnapshotCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   GetSnapshotRequest request =
    +   *       GetSnapshotRequest.newBuilder()
    +   *           .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.getSnapshotCallable().futureCall(request);
    +   *   // Do something.
    +   *   Snapshot response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getSnapshotCallable() { + return stub.getSnapshotCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the existing snapshots. Snapshots are used in [Seek]( * https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage @@ -1533,14 +1736,14 @@ public final UnaryCallable modifyPushConfigCalla * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectName project = ProjectName.of("[PROJECT]");
        *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param project Required. The name of the project in which to list snapshots. Format is * `projects/{project-id}`. @@ -1554,7 +1757,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { return listSnapshots(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the existing snapshots. Snapshots are used in [Seek]( * https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage @@ -1563,14 +1766,14 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project.toString()).iterateAll()) {
    +   *   String project = ProjectName.of("[PROJECT]").toString();
    +   *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param project Required. The name of the project in which to list snapshots. Format is * `projects/{project-id}`. @@ -1581,7 +1784,7 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) { return listSnapshots(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the existing snapshots. Snapshots are used in [Seek]( * https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage @@ -1590,17 +1793,19 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder()
    -   *     .setProject(project.toString())
    -   *     .build();
    +   *   ListSnapshotsRequest request =
    +   *       ListSnapshotsRequest.newBuilder()
    +   *           .setProject(ProjectName.of("[PROJECT]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   for (Snapshot element : subscriptionAdminClient.listSnapshots(request).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1609,7 +1814,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque return listSnapshotsPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the existing snapshots. Snapshots are used in [Seek]( * https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage @@ -1618,26 +1823,29 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder()
    -   *     .setProject(project.toString())
    -   *     .build();
    -   *   ApiFuture<ListSnapshotsPagedResponse> future = subscriptionAdminClient.listSnapshotsPagedCallable().futureCall(request);
    -   *   // Do something
    +   *   ListSnapshotsRequest request =
    +   *       ListSnapshotsRequest.newBuilder()
    +   *           .setProject(ProjectName.of("[PROJECT]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.listSnapshotsPagedCallable().futureCall(request);
    +   *   // Do something.
        *   for (Snapshot element : future.get().iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    */ public final UnaryCallable listSnapshotsPagedCallable() { return stub.listSnapshotsPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the existing snapshots. Snapshots are used in [Seek]( * https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage @@ -1646,14 +1854,17 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   ListSnapshotsRequest request = ListSnapshotsRequest.newBuilder()
    -   *     .setProject(project.toString())
    -   *     .build();
    +   *   ListSnapshotsRequest request =
    +   *       ListSnapshotsRequest.newBuilder()
    +   *           .setProject(ProjectName.of("[PROJECT]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   while (true) {
    -   *     ListSnapshotsResponse response = subscriptionAdminClient.listSnapshotsCallable().call(request);
    +   *     ListSnapshotsResponse response =
    +   *         subscriptionAdminClient.listSnapshotsCallable().call(request);
        *     for (Snapshot element : response.getSnapshotsList()) {
        *       // doThingsWith(element);
        *     }
    @@ -1665,13 +1876,13 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
        *     }
        *   }
        * }
    -   * 
    + * }
    */ public final UnaryCallable listSnapshotsCallable() { return stub.listSnapshotsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a snapshot from the requested subscription. Snapshots are used in * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to @@ -1688,13 +1899,13 @@ public final UnaryCallable listSnap * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
        * }
    -   * 
    + * }
    * * @param name 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 @@ -1720,7 +1931,7 @@ public final Snapshot createSnapshot( return createSnapshot(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a snapshot from the requested subscription. Snapshots are used in * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to @@ -1737,13 +1948,109 @@ public final Snapshot createSnapshot( * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    +   * }
    +   * }
    + * + * @param name 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 <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription 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}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot createSnapshot(ProjectSnapshotName name, String subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setSubscription(subscription) + .build(); + return createSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   Snapshot response = subscriptionAdminClient.createSnapshot(name.toString(), subscription.toString());
    +   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
        * }
    -   * 
    + * }
    + * + * @param name 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 <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription 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}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot createSnapshot(String name, ProjectSubscriptionName subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name) + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return createSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    +   * }
    +   * }
    * * @param name 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 @@ -1765,7 +2072,7 @@ public final Snapshot createSnapshot(String name, String subscription) { return createSnapshot(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a snapshot from the requested subscription. Snapshots are used in * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to @@ -1782,17 +2089,17 @@ public final Snapshot createSnapshot(String name, String subscription) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder()
    -   *     .setName(name.toString())
    -   *     .setSubscription(subscription.toString())
    -   *     .build();
    +   *   CreateSnapshotRequest request =
    +   *       CreateSnapshotRequest.newBuilder()
    +   *           .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .putAllLabels(new HashMap())
    +   *           .build();
        *   Snapshot response = subscriptionAdminClient.createSnapshot(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1801,7 +2108,7 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { return createSnapshotCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a snapshot from the requested subscription. Snapshots are used in * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to @@ -1818,25 +2125,26 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder()
    -   *     .setName(name.toString())
    -   *     .setSubscription(subscription.toString())
    -   *     .build();
    -   *   ApiFuture<Snapshot> future = subscriptionAdminClient.createSnapshotCallable().futureCall(request);
    -   *   // Do something
    +   *   CreateSnapshotRequest request =
    +   *       CreateSnapshotRequest.newBuilder()
    +   *           .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .putAllLabels(new HashMap())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.createSnapshotCallable().futureCall(request);
    +   *   // Do something.
        *   Snapshot response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable createSnapshotCallable() { return stub.createSnapshotCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing snapshot. Snapshots are used in <a * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> operations, which @@ -1845,27 +2153,16 @@ public final UnaryCallable createSnapshotCallab * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   long seconds = 123456L;
    -   *   Timestamp expireTime = Timestamp.newBuilder()
    -   *     .setSeconds(seconds)
    -   *     .build();
    -   *   Snapshot snapshot = Snapshot.newBuilder()
    -   *     .setExpireTime(expireTime)
    -   *     .build();
    -   *   String pathsElement = "expire_time";
    -   *   List<String> paths = Arrays.asList(pathsElement);
    -   *   FieldMask updateMask = FieldMask.newBuilder()
    -   *     .addAllPaths(paths)
    -   *     .build();
    -   *   UpdateSnapshotRequest request = UpdateSnapshotRequest.newBuilder()
    -   *     .setSnapshot(snapshot)
    -   *     .setUpdateMask(updateMask)
    -   *     .build();
    +   *   UpdateSnapshotRequest request =
    +   *       UpdateSnapshotRequest.newBuilder()
    +   *           .setSnapshot(Snapshot.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
        *   Snapshot response = subscriptionAdminClient.updateSnapshot(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1874,7 +2171,7 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) { return updateSnapshotCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing snapshot. Snapshots are used in <a * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> operations, which @@ -1883,35 +2180,25 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   long seconds = 123456L;
    -   *   Timestamp expireTime = Timestamp.newBuilder()
    -   *     .setSeconds(seconds)
    -   *     .build();
    -   *   Snapshot snapshot = Snapshot.newBuilder()
    -   *     .setExpireTime(expireTime)
    -   *     .build();
    -   *   String pathsElement = "expire_time";
    -   *   List<String> paths = Arrays.asList(pathsElement);
    -   *   FieldMask updateMask = FieldMask.newBuilder()
    -   *     .addAllPaths(paths)
    -   *     .build();
    -   *   UpdateSnapshotRequest request = UpdateSnapshotRequest.newBuilder()
    -   *     .setSnapshot(snapshot)
    -   *     .setUpdateMask(updateMask)
    -   *     .build();
    -   *   ApiFuture<Snapshot> future = subscriptionAdminClient.updateSnapshotCallable().futureCall(request);
    -   *   // Do something
    +   *   UpdateSnapshotRequest request =
    +   *       UpdateSnapshotRequest.newBuilder()
    +   *           .setSnapshot(Snapshot.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.updateSnapshotCallable().futureCall(request);
    +   *   // Do something.
        *   Snapshot response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable updateSnapshotCallable() { return stub.updateSnapshotCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Removes an existing snapshot. Snapshots are used in [Seek] * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage @@ -1923,12 +2210,12 @@ public final UnaryCallable updateSnapshotCallab * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   subscriptionAdminClient.deleteSnapshot(snapshot);
        * }
    -   * 
    + * }
    * * @param snapshot Required. The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. @@ -1942,7 +2229,7 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) { deleteSnapshot(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Removes an existing snapshot. Snapshots are used in [Seek] * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage @@ -1954,12 +2241,12 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   subscriptionAdminClient.deleteSnapshot(snapshot.toString());
    +   *   String snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    +   *   subscriptionAdminClient.deleteSnapshot(snapshot);
        * }
    -   * 
    + * }
    * * @param snapshot Required. The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. @@ -1971,7 +2258,7 @@ public final void deleteSnapshot(String snapshot) { deleteSnapshot(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Removes an existing snapshot. Snapshots are used in [Seek] * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage @@ -1983,15 +2270,15 @@ public final void deleteSnapshot(String snapshot) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder()
    -   *     .setSnapshot(snapshot.toString())
    -   *     .build();
    +   *   DeleteSnapshotRequest request =
    +   *       DeleteSnapshotRequest.newBuilder()
    +   *           .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +   *           .build();
        *   subscriptionAdminClient.deleteSnapshot(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2000,7 +2287,7 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) { deleteSnapshotCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Removes an existing snapshot. Snapshots are used in [Seek] * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage @@ -2012,23 +2299,24 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder()
    -   *     .setSnapshot(snapshot.toString())
    -   *     .build();
    -   *   ApiFuture<Void> future = subscriptionAdminClient.deleteSnapshotCallable().futureCall(request);
    -   *   // Do something
    +   *   DeleteSnapshotRequest request =
    +   *       DeleteSnapshotRequest.newBuilder()
    +   *           .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.deleteSnapshotCallable().futureCall(request);
    +   *   // Do something.
        *   future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable deleteSnapshotCallable() { return stub.deleteSnapshotCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided * in the request. Snapshots are used in [Seek] @@ -2039,15 +2327,15 @@ public final UnaryCallable deleteSnapshotCallable( * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   SeekRequest request = SeekRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .build();
    +   *   SeekRequest request =
    +   *       SeekRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .build();
        *   SeekResponse response = subscriptionAdminClient.seek(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2056,7 +2344,7 @@ public final SeekResponse seek(SeekRequest request) { return seekCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided * in the request. Snapshots are used in [Seek] @@ -2067,23 +2355,23 @@ public final SeekResponse seek(SeekRequest request) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   SeekRequest request = SeekRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .build();
    -   *   ApiFuture<SeekResponse> future = subscriptionAdminClient.seekCallable().futureCall(request);
    -   *   // Do something
    +   *   SeekRequest request =
    +   *       SeekRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .build();
    +   *   ApiFuture future = subscriptionAdminClient.seekCallable().futureCall(request);
    +   *   // Do something.
        *   SeekResponse response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable seekCallable() { return stub.seekCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on the specified resource. Replaces any existing policy. * @@ -2091,17 +2379,16 @@ public final UnaryCallable seekCallable() { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   Policy policy = Policy.newBuilder().build();
    -   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .setPolicy(policy)
    -   *     .build();
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .build();
        *   Policy response = subscriptionAdminClient.setIamPolicy(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2141,7 +2428,7 @@ public final Policy setIamPolicy(String resource, Policy policy) { return setIamPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on the specified resource. Replaces any existing policy. * @@ -2149,40 +2436,40 @@ public final Policy setIamPolicy(String resource, Policy policy) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   Policy policy = Policy.newBuilder().build();
    -   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .setPolicy(policy)
    -   *     .build();
    -   *   ApiFuture<Policy> future = subscriptionAdminClient.setIamPolicyCallable().futureCall(request);
    -   *   // Do something
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = subscriptionAdminClient.setIamPolicyCallable().futureCall(request);
    +   *   // Do something.
        *   Policy response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable setIamPolicyCallable() { return stub.setIamPolicyCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a resource. Returns an empty policy if the resource exists * and does not have a policy set. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .build();
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
        *   Policy response = subscriptionAdminClient.getIamPolicy(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2216,30 +2503,31 @@ public final Policy getIamPolicy(String resource) { return getIamPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a resource. Returns an empty policy if the resource exists * and does not have a policy set. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .build();
    -   *   ApiFuture<Policy> future = subscriptionAdminClient.getIamPolicyCallable().futureCall(request);
    -   *   // Do something
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = subscriptionAdminClient.getIamPolicyCallable().futureCall(request);
    +   *   // Do something.
        *   Policy response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable getIamPolicyCallable() { return stub.getIamPolicyCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If the resource does not * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. @@ -2250,17 +2538,16 @@ public final UnaryCallable getIamPolicyCallable() { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   List<String> permissions = new ArrayList<>();
    -   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .addAllPermissions(permissions)
    -   *     .build();
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
        *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2307,7 +2594,7 @@ public final TestIamPermissionsResponse testIamPermissions( return testIamPermissions(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If the resource does not * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. @@ -2318,19 +2605,19 @@ public final TestIamPermissionsResponse testIamPermissions( * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   List<String> permissions = new ArrayList<>();
    -   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .addAllPermissions(permissions)
    -   *     .build();
    -   *   ApiFuture<TestIamPermissionsResponse> future = subscriptionAdminClient.testIamPermissionsCallable().futureCall(request);
    -   *   // Do something
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       subscriptionAdminClient.testIamPermissionsCallable().futureCall(request);
    +   *   // Do something.
        *   TestIamPermissionsResponse response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable testIamPermissionsCallable() { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 06d12d8ffc01..14cde7756a29 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; @@ -63,7 +64,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link SubscriptionAdminClient}. * @@ -80,22 +81,24 @@ * *

    For example, to set the total timeout of createSubscription to 30 seconds: * - *

    - * 
    + * 
    {@code
      * SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder =
      *     SubscriptionAdminSettings.newBuilder();
      * subscriptionAdminSettingsBuilder
      *     .createSubscriptionSettings()
      *     .setRetrySettings(
    - *         subscriptionAdminSettingsBuilder.createSubscriptionSettings().getRetrySettings().toBuilder()
    + *         subscriptionAdminSettingsBuilder
    + *             .createSubscriptionSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * SubscriptionAdminSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
    - * 
    - * 
    + * }
    */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class SubscriptionAdminSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createSubscription. */ public UnaryCallSettings createSubscriptionSettings() { return ((SubscriberStubSettings) getStubSettings()).createSubscriptionSettings(); @@ -123,29 +126,23 @@ public UnaryCallSettings deleteSubscriptionSet return ((SubscriberStubSettings) getStubSettings()).deleteSubscriptionSettings(); } - /** Returns the object with the settings used for calls to getSnapshot. */ - /* package-private */ UnaryCallSettings getSnapshotSettings() { - return ((SubscriberStubSettings) getStubSettings()).getSnapshotSettings(); - } - /** Returns the object with the settings used for calls to modifyAckDeadline. */ - /* package-private */ UnaryCallSettings - modifyAckDeadlineSettings() { + public UnaryCallSettings modifyAckDeadlineSettings() { return ((SubscriberStubSettings) getStubSettings()).modifyAckDeadlineSettings(); } /** Returns the object with the settings used for calls to acknowledge. */ - /* package-private */ UnaryCallSettings acknowledgeSettings() { + public UnaryCallSettings acknowledgeSettings() { return ((SubscriberStubSettings) getStubSettings()).acknowledgeSettings(); } /** Returns the object with the settings used for calls to pull. */ - /* package-private */ UnaryCallSettings pullSettings() { + public UnaryCallSettings pullSettings() { return ((SubscriberStubSettings) getStubSettings()).pullSettings(); } /** Returns the object with the settings used for calls to streamingPull. */ - /* package-private */ StreamingCallSettings + public StreamingCallSettings streamingPullSettings() { return ((SubscriberStubSettings) getStubSettings()).streamingPullSettings(); } @@ -155,6 +152,11 @@ public UnaryCallSettings modifyPushConfigSetting return ((SubscriberStubSettings) getStubSettings()).modifyPushConfigSettings(); } + /** Returns the object with the settings used for calls to getSnapshot. */ + public UnaryCallSettings getSnapshotSettings() { + return ((SubscriberStubSettings) getStubSettings()).getSnapshotSettings(); + } + /** Returns the object with the settings used for calls to listSnapshots. */ public PagedCallSettings listSnapshotsSettings() { @@ -257,18 +259,15 @@ protected SubscriptionAdminSettings(Builder settingsBuilder) throws IOException /** Builder for SubscriptionAdminSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(SubscriberStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(SubscriberStubSettings.newBuilder()); - } - protected Builder(SubscriptionAdminSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -277,6 +276,10 @@ protected Builder(SubscriberStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(SubscriberStubSettings.newBuilder()); + } + public SubscriberStubSettings.Builder getStubSettingsBuilder() { return ((SubscriberStubSettings.Builder) getStubSettings()); } @@ -324,31 +327,23 @@ public UnaryCallSettings.Builder createSubscriptionS return getStubSettingsBuilder().deleteSubscriptionSettings(); } - /** Returns the builder for the settings used for calls to getSnapshot. */ - /* package-private */ UnaryCallSettings.Builder - getSnapshotSettings() { - return getStubSettingsBuilder().getSnapshotSettings(); - } - /** Returns the builder for the settings used for calls to modifyAckDeadline. */ - /* package-private */ UnaryCallSettings.Builder - modifyAckDeadlineSettings() { + public UnaryCallSettings.Builder modifyAckDeadlineSettings() { return getStubSettingsBuilder().modifyAckDeadlineSettings(); } /** Returns the builder for the settings used for calls to acknowledge. */ - /* package-private */ UnaryCallSettings.Builder - acknowledgeSettings() { + public UnaryCallSettings.Builder acknowledgeSettings() { return getStubSettingsBuilder().acknowledgeSettings(); } /** Returns the builder for the settings used for calls to pull. */ - /* package-private */ UnaryCallSettings.Builder pullSettings() { + public UnaryCallSettings.Builder pullSettings() { return getStubSettingsBuilder().pullSettings(); } /** Returns the builder for the settings used for calls to streamingPull. */ - /* package-private */ StreamingCallSettings.Builder + public StreamingCallSettings.Builder streamingPullSettings() { return getStubSettingsBuilder().streamingPullSettings(); } @@ -358,6 +353,11 @@ public UnaryCallSettings.Builder modifyPushConfi return getStubSettingsBuilder().modifyPushConfigSettings(); } + /** Returns the builder for the settings used for calls to getSnapshot. */ + public UnaryCallSettings.Builder getSnapshotSettings() { + return getStubSettingsBuilder().getSnapshotSettings(); + } + /** Returns the builder for the settings used for calls to listSnapshots. */ public PagedCallSettings.Builder< ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 52920223edcc..177a3d59175c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.ApiFunction; @@ -60,26 +61,22 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND SERVICE +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Service Description: The service that an application uses to manipulate topics, and to send * messages to a topic. * - *

    To publish messages to a topic, see the Publisher class. - * *

    This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * - *

    - * 
    + * 
    {@code
      * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   Topic response = topicAdminClient.createTopic(name);
      * }
    - * 
    - * 
    + * }
    * - *

    Note: close() needs to be called on the topicAdminClient object to clean up resources such as + *

    Note: close() needs to be called on the TopicAdminClient object to clean up resources such as * threads. In the example above, try-with-resources is used, which automatically calls close(). * *

    The surface of this class includes several types of Java methods for each of the API's @@ -107,29 +104,25 @@ * *

    To customize credentials: * - *

    - * 
    + * 
    {@code
      * TopicAdminSettings topicAdminSettings =
      *     TopicAdminSettings.newBuilder()
      *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
      *         .build();
    - * TopicAdminClient topicAdminClient =
    - *     TopicAdminClient.create(topicAdminSettings);
    - * 
    - * 
    + * TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings); + * }
    * - * To customize the endpoint: + *

    To customize the endpoint: * - *

    - * 
    + * 
    {@code
      * TopicAdminSettings topicAdminSettings =
      *     TopicAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
    - * TopicAdminClient topicAdminClient =
    - *     TopicAdminClient.create(topicAdminSettings);
    - * 
    - * 
    + * TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings); + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class TopicAdminClient implements BackgroundResource { private final TopicAdminSettings settings; private final PublisherStub stub; @@ -149,7 +142,7 @@ public static final TopicAdminClient create(TopicAdminSettings settings) throws /** * Constructs an instance of TopicAdminClient, using the given stub for making calls. This is for - * advanced usage - prefer to use TopicAdminSettings}. + * advanced usage - prefer using create(TopicAdminSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final TopicAdminClient create(PublisherStub stub) { @@ -180,19 +173,19 @@ public PublisherStub getStub() { return stub; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] * (https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic response = topicAdminClient.createTopic(name);
        * }
    -   * 
    + * }
    * * @param name Required. The name of the topic. It must have the format * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only @@ -206,19 +199,19 @@ public final Topic createTopic(TopicName name) { return createTopic(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] * (https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   Topic response = topicAdminClient.createTopic(name.toString());
    +   *   String name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    +   *   Topic response = topicAdminClient.createTopic(name);
        * }
    -   * 
    + * }
    * * @param name Required. The name of the topic. It must have the format * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only @@ -261,22 +254,28 @@ public final Topic createTopic(ProjectTopicName name) { return createTopic(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] * (https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   Topic request = Topic.newBuilder()
    -   *     .setName(name.toString())
    -   *     .build();
    +   *   Topic request =
    +   *       Topic.newBuilder()
    +   *           .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .putAllLabels(new HashMap())
    +   *           .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
    +   *           .setKmsKeyName("kmsKeyName412586233")
    +   *           .setSchemaSettings(SchemaSettings.newBuilder().build())
    +   *           .setSatisfiesPzs(true)
    +   *           .setMessageRetentionDuration(Duration.newBuilder().build())
    +   *           .build();
        *   Topic response = topicAdminClient.createTopic(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -285,46 +284,51 @@ public final Topic createTopic(Topic request) { return createTopicCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] * (https://cloud.google.com/pubsub/docs/admin#resource_names). * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   Topic request = Topic.newBuilder()
    -   *     .setName(name.toString())
    -   *     .build();
    -   *   ApiFuture<Topic> future = topicAdminClient.createTopicCallable().futureCall(request);
    -   *   // Do something
    +   *   Topic request =
    +   *       Topic.newBuilder()
    +   *           .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .putAllLabels(new HashMap())
    +   *           .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build())
    +   *           .setKmsKeyName("kmsKeyName412586233")
    +   *           .setSchemaSettings(SchemaSettings.newBuilder().build())
    +   *           .setSatisfiesPzs(true)
    +   *           .setMessageRetentionDuration(Duration.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = topicAdminClient.createTopicCallable().futureCall(request);
    +   *   // Do something.
        *   Topic response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable createTopicCallable() { return stub.createTopicCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing topic. Note that certain properties of a topic are not modifiable. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   Topic topic = Topic.newBuilder().build();
    -   *   FieldMask updateMask = FieldMask.newBuilder().build();
    -   *   UpdateTopicRequest request = UpdateTopicRequest.newBuilder()
    -   *     .setTopic(topic)
    -   *     .setUpdateMask(updateMask)
    -   *     .build();
    +   *   UpdateTopicRequest request =
    +   *       UpdateTopicRequest.newBuilder()
    +   *           .setTopic(Topic.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
        *   Topic response = topicAdminClient.updateTopic(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -333,55 +337,49 @@ public final Topic updateTopic(UpdateTopicRequest request) { return updateTopicCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing topic. Note that certain properties of a topic are not modifiable. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   Topic topic = Topic.newBuilder().build();
    -   *   FieldMask updateMask = FieldMask.newBuilder().build();
    -   *   UpdateTopicRequest request = UpdateTopicRequest.newBuilder()
    -   *     .setTopic(topic)
    -   *     .setUpdateMask(updateMask)
    -   *     .build();
    -   *   ApiFuture<Topic> future = topicAdminClient.updateTopicCallable().futureCall(request);
    -   *   // Do something
    +   *   UpdateTopicRequest request =
    +   *       UpdateTopicRequest.newBuilder()
    +   *           .setTopic(Topic.newBuilder().build())
    +   *           .setUpdateMask(FieldMask.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = topicAdminClient.updateTopicCallable().futureCall(request);
    +   *   // Do something.
        *   Topic response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable updateTopicCallable() { return stub.updateTopicCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   ByteString data = ByteString.copyFromUtf8("");
    -   *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
    -   *     .setData(data)
    -   *     .build();
    -   *   List<PubsubMessage> messages = Arrays.asList(messagesElement);
    +   *   List messages = new ArrayList<>();
        *   PublishResponse response = topicAdminClient.publish(topic, messages);
        * }
    -   * 
    + * }
    * * @param topic Required. The messages in the request will be published on this topic. Format is * `projects/{project}/topics/{topic}`. * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final PublishResponse publish( - TopicName topic, List messages) { + public final PublishResponse publish(TopicName topic, List messages) { PublishRequest request = PublishRequest.newBuilder() .setTopic(topic == null ? null : topic.toString()) @@ -390,104 +388,90 @@ public final UnaryCallable updateTopicCallable() { return publish(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   ByteString data = ByteString.copyFromUtf8("");
    -   *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
    -   *     .setData(data)
    -   *     .build();
    -   *   List<PubsubMessage> messages = Arrays.asList(messagesElement);
    -   *   PublishResponse response = topicAdminClient.publish(topic.toString(), messages);
    +   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    +   *   List messages = new ArrayList<>();
    +   *   PublishResponse response = topicAdminClient.publish(topic, messages);
        * }
    -   * 
    + * }
    * * @param topic Required. The messages in the request will be published on this topic. Format is * `projects/{project}/topics/{topic}`. * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final PublishResponse publish(String topic, List messages) { + public final PublishResponse publish(String topic, List messages) { PublishRequest request = PublishRequest.newBuilder().setTopic(topic).addAllMessages(messages).build(); return publish(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   ByteString data = ByteString.copyFromUtf8("");
    -   *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
    -   *     .setData(data)
    -   *     .build();
    -   *   List<PubsubMessage> messages = Arrays.asList(messagesElement);
    -   *   PublishRequest request = PublishRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .addAllMessages(messages)
    -   *     .build();
    +   *   PublishRequest request =
    +   *       PublishRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .addAllMessages(new ArrayList())
    +   *           .build();
        *   PublishResponse response = topicAdminClient.publish(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final PublishResponse publish(PublishRequest request) { + public final PublishResponse publish(PublishRequest request) { return publishCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   ByteString data = ByteString.copyFromUtf8("");
    -   *   PubsubMessage messagesElement = PubsubMessage.newBuilder()
    -   *     .setData(data)
    -   *     .build();
    -   *   List<PubsubMessage> messages = Arrays.asList(messagesElement);
    -   *   PublishRequest request = PublishRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .addAllMessages(messages)
    -   *     .build();
    -   *   ApiFuture<PublishResponse> future = topicAdminClient.publishCallable().futureCall(request);
    -   *   // Do something
    +   *   PublishRequest request =
    +   *       PublishRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .addAllMessages(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future = topicAdminClient.publishCallable().futureCall(request);
    +   *   // Do something.
        *   PublishResponse response = future.get();
        * }
    -   * 
    + * }
    */ - /* package-private */ final UnaryCallable publishCallable() { + public final UnaryCallable publishCallable() { return stub.publishCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration of a topic. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic response = topicAdminClient.getTopic(topic);
        * }
    -   * 
    + * }
    * * @param topic Required. The name of the topic to get. Format is * `projects/{project}/topics/{topic}`. @@ -499,18 +483,18 @@ public final Topic getTopic(TopicName topic) { return getTopic(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration of a topic. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   Topic response = topicAdminClient.getTopic(topic.toString());
    +   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    +   *   Topic response = topicAdminClient.getTopic(topic);
        * }
    -   * 
    + * }
    * * @param topic Required. The name of the topic to get. Format is * `projects/{project}/topics/{topic}`. @@ -546,21 +530,21 @@ public final Topic getTopic(ProjectTopicName topic) { return getTopic(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration of a topic. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   GetTopicRequest request = GetTopicRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .build();
    +   *   GetTopicRequest request =
    +   *       GetTopicRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .build();
        *   Topic response = topicAdminClient.getTopic(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -569,42 +553,42 @@ public final Topic getTopic(GetTopicRequest request) { return getTopicCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration of a topic. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   GetTopicRequest request = GetTopicRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .build();
    -   *   ApiFuture<Topic> future = topicAdminClient.getTopicCallable().futureCall(request);
    -   *   // Do something
    +   *   GetTopicRequest request =
    +   *       GetTopicRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .build();
    +   *   ApiFuture future = topicAdminClient.getTopicCallable().futureCall(request);
    +   *   // Do something.
        *   Topic response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable getTopicCallable() { return stub.getTopicCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists matching topics. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ProjectName project = ProjectName.of("[PROJECT]");
        *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param project Required. The name of the project in which to list topics. Format is * `projects/{project-id}`. @@ -618,20 +602,20 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) { return listTopics(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists matching topics. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   for (Topic element : topicAdminClient.listTopics(project.toString()).iterateAll()) {
    +   *   String project = ProjectName.of("[PROJECT]").toString();
    +   *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param project Required. The name of the project in which to list topics. Format is * `projects/{project-id}`. @@ -642,23 +626,25 @@ public final ListTopicsPagedResponse listTopics(String project) { return listTopics(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists matching topics. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   ListTopicsRequest request = ListTopicsRequest.newBuilder()
    -   *     .setProject(project.toString())
    -   *     .build();
    +   *   ListTopicsRequest request =
    +   *       ListTopicsRequest.newBuilder()
    +   *           .setProject(ProjectName.of("[PROJECT]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   for (Topic element : topicAdminClient.listTopics(request).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -667,42 +653,46 @@ public final ListTopicsPagedResponse listTopics(ListTopicsRequest request) { return listTopicsPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists matching topics. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   ListTopicsRequest request = ListTopicsRequest.newBuilder()
    -   *     .setProject(project.toString())
    -   *     .build();
    -   *   ApiFuture<ListTopicsPagedResponse> future = topicAdminClient.listTopicsPagedCallable().futureCall(request);
    -   *   // Do something
    +   *   ListTopicsRequest request =
    +   *       ListTopicsRequest.newBuilder()
    +   *           .setProject(ProjectName.of("[PROJECT]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future = topicAdminClient.listTopicsPagedCallable().futureCall(request);
    +   *   // Do something.
        *   for (Topic element : future.get().iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    */ public final UnaryCallable listTopicsPagedCallable() { return stub.listTopicsPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists matching topics. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectName project = ProjectName.of("[PROJECT]");
    -   *   ListTopicsRequest request = ListTopicsRequest.newBuilder()
    -   *     .setProject(project.toString())
    -   *     .build();
    +   *   ListTopicsRequest request =
    +   *       ListTopicsRequest.newBuilder()
    +   *           .setProject(ProjectName.of("[PROJECT]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   while (true) {
        *     ListTopicsResponse response = topicAdminClient.listTopicsCallable().call(request);
        *     for (Topic element : response.getTopicsList()) {
    @@ -716,26 +706,26 @@ public final UnaryCallable listTopic
        *     }
        *   }
        * }
    -   * 
    + * }
    */ public final UnaryCallable listTopicsCallable() { return stub.listTopicsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the attached subscriptions on this topic. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic).iterateAllAsProjectSubscriptionName()) {
    +   *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param topic Required. The name of the topic that subscriptions are attached to. Format is * `projects/{project}/topics/{topic}`. @@ -749,20 +739,20 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(TopicNam return listTopicSubscriptions(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the attached subscriptions on this topic. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic.toString()).iterateAllAsProjectSubscriptionName()) {
    +   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    +   *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param topic Required. The name of the topic that subscriptions are attached to. Format is * `projects/{project}/topics/{topic}`. @@ -803,23 +793,25 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectT return listTopicSubscriptions(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the attached subscriptions on this topic. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .build();
    -   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(request).iterateAllAsProjectSubscriptionName()) {
    +   *   ListTopicSubscriptionsRequest request =
    +   *       ListTopicSubscriptionsRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (String element : topicAdminClient.listTopicSubscriptions(request).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -829,46 +821,52 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( return listTopicSubscriptionsPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the attached subscriptions on this topic. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .build();
    -   *   ApiFuture<ListTopicSubscriptionsPagedResponse> future = topicAdminClient.listTopicSubscriptionsPagedCallable().futureCall(request);
    -   *   // Do something
    -   *   for (ProjectSubscriptionName element : future.get().iterateAllAsProjectSubscriptionName()) {
    +   *   ListTopicSubscriptionsRequest request =
    +   *       ListTopicSubscriptionsRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       topicAdminClient.listTopicSubscriptionsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (String element : future.get().iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    */ public final UnaryCallable listTopicSubscriptionsPagedCallable() { return stub.listTopicSubscriptionsPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the attached subscriptions on this topic. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .build();
    +   *   ListTopicSubscriptionsRequest request =
    +   *       ListTopicSubscriptionsRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   while (true) {
    -   *     ListTopicSubscriptionsResponse response = topicAdminClient.listTopicSubscriptionsCallable().call(request);
    -   *     for (ProjectSubscriptionName element : ProjectSubscriptionName.parseList(response.getSubscriptionsList())) {
    +   *     ListTopicSubscriptionsResponse response =
    +   *         topicAdminClient.listTopicSubscriptionsCallable().call(request);
    +   *     for (String element : response.getSubscriptionsList()) {
        *       // doThingsWith(element);
        *     }
        *     String nextPageToken = response.getNextPageToken();
    @@ -879,14 +877,14 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        *     }
        *   }
        * }
    -   * 
    + * }
    */ public final UnaryCallable listTopicSubscriptionsCallable() { return stub.listTopicSubscriptionsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the snapshots on this topic. Snapshots are used in * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to @@ -895,20 +893,20 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param topic Required. The name of the topic that snapshots are attached to. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final ListTopicSnapshotsPagedResponse listTopicSnapshots(TopicName topic) { + public final ListTopicSnapshotsPagedResponse listTopicSnapshots(TopicName topic) { ListTopicSnapshotsRequest request = ListTopicSnapshotsRequest.newBuilder() .setTopic(topic == null ? null : topic.toString()) @@ -916,7 +914,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( return listTopicSnapshots(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the snapshots on this topic. Snapshots are used in * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to @@ -925,26 +923,26 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   for (String element : topicAdminClient.listTopicSnapshots(topic.toString()).iterateAll()) {
    +   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    +   *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param topic Required. The name of the topic that snapshots are attached to. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final ListTopicSnapshotsPagedResponse listTopicSnapshots(String topic) { + public final ListTopicSnapshotsPagedResponse listTopicSnapshots(String topic) { ListTopicSnapshotsRequest request = ListTopicSnapshotsRequest.newBuilder().setTopic(topic).build(); return listTopicSnapshots(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the snapshots on this topic. Snapshots are used in * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to @@ -953,27 +951,29 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   ListTopicSnapshotsRequest request = ListTopicSnapshotsRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .build();
    +   *   ListTopicSnapshotsRequest request =
    +   *       ListTopicSnapshotsRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   for (String element : topicAdminClient.listTopicSnapshots(request).iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final ListTopicSnapshotsPagedResponse listTopicSnapshots( + public final ListTopicSnapshotsPagedResponse listTopicSnapshots( ListTopicSnapshotsRequest request) { return listTopicSnapshotsPagedCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the snapshots on this topic. Snapshots are used in * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to @@ -982,27 +982,29 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   ListTopicSnapshotsRequest request = ListTopicSnapshotsRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .build();
    -   *   ApiFuture<ListTopicSnapshotsPagedResponse> future = topicAdminClient.listTopicSnapshotsPagedCallable().futureCall(request);
    -   *   // Do something
    +   *   ListTopicSnapshotsRequest request =
    +   *       ListTopicSnapshotsRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       topicAdminClient.listTopicSnapshotsPagedCallable().futureCall(request);
    +   *   // Do something.
        *   for (String element : future.get().iterateAll()) {
        *     // doThingsWith(element);
        *   }
        * }
    -   * 
    + * }
    */ - /* package-private */ final UnaryCallable< - ListTopicSnapshotsRequest, ListTopicSnapshotsPagedResponse> + public final UnaryCallable listTopicSnapshotsPagedCallable() { return stub.listTopicSnapshotsPagedCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the names of the snapshots on this topic. Snapshots are used in * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to @@ -1011,14 +1013,17 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   ListTopicSnapshotsRequest request = ListTopicSnapshotsRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .build();
    +   *   ListTopicSnapshotsRequest request =
    +   *       ListTopicSnapshotsRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
        *   while (true) {
    -   *     ListTopicSnapshotsResponse response = topicAdminClient.listTopicSnapshotsCallable().call(request);
    +   *     ListTopicSnapshotsResponse response =
    +   *         topicAdminClient.listTopicSnapshotsCallable().call(request);
        *     for (String element : response.getSnapshotsList()) {
        *       // doThingsWith(element);
        *     }
    @@ -1030,14 +1035,14 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        *     }
        *   }
        * }
    -   * 
    + * }
    */ - /* package-private */ final UnaryCallable + public final UnaryCallable listTopicSnapshotsCallable() { return stub.listTopicSnapshotsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -1046,12 +1051,12 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   topicAdminClient.deleteTopic(topic);
        * }
    -   * 
    + * }
    * * @param topic Required. Name of the topic to delete. Format is * `projects/{project}/topics/{topic}`. @@ -1063,7 +1068,7 @@ public final void deleteTopic(TopicName topic) { deleteTopic(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -1072,12 +1077,12 @@ public final void deleteTopic(TopicName topic) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   topicAdminClient.deleteTopic(topic.toString());
    +   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    +   *   topicAdminClient.deleteTopic(topic);
        * }
    -   * 
    + * }
    * * @param topic Required. Name of the topic to delete. Format is * `projects/{project}/topics/{topic}`. @@ -1116,7 +1121,7 @@ public final void deleteTopic(ProjectTopicName topic) { deleteTopic(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -1125,15 +1130,15 @@ public final void deleteTopic(ProjectTopicName topic) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   DeleteTopicRequest request = DeleteTopicRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .build();
    +   *   DeleteTopicRequest request =
    +   *       DeleteTopicRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .build();
        *   topicAdminClient.deleteTopic(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1142,7 +1147,7 @@ public final void deleteTopic(DeleteTopicRequest request) { deleteTopicCallable().call(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 @@ -1151,41 +1156,91 @@ public final void deleteTopic(DeleteTopicRequest request) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    -   *   DeleteTopicRequest request = DeleteTopicRequest.newBuilder()
    -   *     .setTopic(topic.toString())
    -   *     .build();
    -   *   ApiFuture<Void> future = topicAdminClient.deleteTopicCallable().futureCall(request);
    -   *   // Do something
    +   *   DeleteTopicRequest request =
    +   *       DeleteTopicRequest.newBuilder()
    +   *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
    +   *           .build();
    +   *   ApiFuture future = topicAdminClient.deleteTopicCallable().futureCall(request);
    +   *   // Do something.
        *   future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable deleteTopicCallable() { return stub.deleteTopicCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Detaches a subscription from this topic. All messages retained in the subscription are dropped. + * Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the + * subscription is a push subscription, pushes to the endpoint will stop. * - *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + *

    Sample code: + * + *

    {@code
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   DetachSubscriptionRequest request =
    +   *       DetachSubscriptionRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .build();
    +   *   DetachSubscriptionResponse response = topicAdminClient.detachSubscription(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionRequest request) { + return detachSubscriptionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Detaches a subscription from this topic. All messages retained in the subscription are dropped. + * Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the + * subscription is a push subscription, pushes to the endpoint will stop. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   Policy policy = Policy.newBuilder().build();
    -   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .setPolicy(policy)
    -   *     .build();
    +   *   DetachSubscriptionRequest request =
    +   *       DetachSubscriptionRequest.newBuilder()
    +   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       topicAdminClient.detachSubscriptionCallable().futureCall(request);
    +   *   // Do something.
    +   *   DetachSubscriptionResponse response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + detachSubscriptionCallable() { + return stub.detachSubscriptionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

    Sample code: + * + *

    {@code
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .build();
        *   Policy response = topicAdminClient.setIamPolicy(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1225,7 +1280,7 @@ public final Policy setIamPolicy(String resource, Policy policy) { return setIamPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Sets the access control policy on the specified resource. Replaces any existing policy. * @@ -1233,40 +1288,40 @@ public final Policy setIamPolicy(String resource, Policy policy) { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   Policy policy = Policy.newBuilder().build();
    -   *   SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .setPolicy(policy)
    -   *     .build();
    -   *   ApiFuture<Policy> future = topicAdminClient.setIamPolicyCallable().futureCall(request);
    -   *   // Do something
    +   *   SetIamPolicyRequest request =
    +   *       SetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setPolicy(Policy.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = topicAdminClient.setIamPolicyCallable().futureCall(request);
    +   *   // Do something.
        *   Policy response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable setIamPolicyCallable() { return stub.setIamPolicyCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * Gets the access control policy for a resource. Returns an empty policyif the resource exists * and does not have a policy set. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .build();
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
        *   Policy response = topicAdminClient.getIamPolicy(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1300,30 +1355,31 @@ public final Policy getIamPolicy(String resource) { return getIamPolicy(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a resource. Returns an empty policy if the resource exists * and does not have a policy set. * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .build();
    -   *   ApiFuture<Policy> future = topicAdminClient.getIamPolicyCallable().futureCall(request);
    -   *   // Do something
    +   *   GetIamPolicyRequest request =
    +   *       GetIamPolicyRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .setOptions(GetPolicyOptions.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = topicAdminClient.getIamPolicyCallable().futureCall(request);
    +   *   // Do something.
        *   Policy response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable getIamPolicyCallable() { return stub.getIamPolicyCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If the resource does not * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. @@ -1334,17 +1390,16 @@ public final UnaryCallable getIamPolicyCallable() { * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   List<String> permissions = new ArrayList<>();
    -   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .addAllPermissions(permissions)
    -   *     .build();
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
        *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(request);
        * }
    -   * 
    + * }
    * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1391,7 +1446,7 @@ public final TestIamPermissionsResponse testIamPermissions( return testIamPermissions(request); } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns permissions that a caller has on the specified resource. If the resource does not * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. @@ -1402,75 +1457,25 @@ public final TestIamPermissionsResponse testIamPermissions( * *

    Sample code: * - *

    
    +   * 
    {@code
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ResourceName resource = ProjectName.of("[PROJECT]");
    -   *   List<String> permissions = new ArrayList<>();
    -   *   TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder()
    -   *     .setResource(resource.toString())
    -   *     .addAllPermissions(permissions)
    -   *     .build();
    -   *   ApiFuture<TestIamPermissionsResponse> future = topicAdminClient.testIamPermissionsCallable().futureCall(request);
    -   *   // Do something
    +   *   TestIamPermissionsRequest request =
    +   *       TestIamPermissionsRequest.newBuilder()
    +   *           .setResource(ProjectName.of("[PROJECT]").toString())
    +   *           .addAllPermissions(new ArrayList())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       topicAdminClient.testIamPermissionsCallable().futureCall(request);
    +   *   // Do something.
        *   TestIamPermissionsResponse response = future.get();
        * }
    -   * 
    + * }
    */ public final UnaryCallable testIamPermissionsCallable() { return stub.testIamPermissionsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Detaches a subscription from this topic. All messages retained in the subscription are dropped. - * Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the - * subscription is a push subscription, pushes to the endpoint will stop. - * - *

    Sample code: - * - *

    
    -   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   DetachSubscriptionRequest request = DetachSubscriptionRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .build();
    -   *   DetachSubscriptionResponse response = topicAdminClient.detachSubscription(request);
    -   * }
    -   * 
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionRequest request) { - return detachSubscriptionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Detaches a subscription from this topic. All messages retained in the subscription are dropped. - * Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the - * subscription is a push subscription, pushes to the endpoint will stop. - * - *

    Sample code: - * - *

    
    -   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   DetachSubscriptionRequest request = DetachSubscriptionRequest.newBuilder()
    -   *     .setSubscription(subscription.toString())
    -   *     .build();
    -   *   ApiFuture<DetachSubscriptionResponse> future = topicAdminClient.detachSubscriptionCallable().futureCall(request);
    -   *   // Do something
    -   *   DetachSubscriptionResponse response = future.get();
    -   * }
    -   * 
    - */ - public final UnaryCallable - detachSubscriptionCallable() { - return stub.detachSubscriptionCallable(); - } - @Override public final void close() { stub.close(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 7c79aabc7ba4..f67d51094df9 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; @@ -56,7 +57,7 @@ import java.util.List; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link TopicAdminClient}. * @@ -73,22 +74,23 @@ * *

    For example, to set the total timeout of createTopic to 30 seconds: * - *

    - * 
    - * TopicAdminSettings.Builder topicAdminSettingsBuilder =
    - *     TopicAdminSettings.newBuilder();
    + * 
    {@code
    + * TopicAdminSettings.Builder topicAdminSettingsBuilder = TopicAdminSettings.newBuilder();
      * topicAdminSettingsBuilder
      *     .createTopicSettings()
      *     .setRetrySettings(
    - *         topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder()
    + *         topicAdminSettingsBuilder
    + *             .createTopicSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build();
    - * 
    - * 
    + * }
    */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class TopicAdminSettings extends ClientSettings { + /** Returns the object with the settings used for calls to createTopic. */ public UnaryCallSettings createTopicSettings() { return ((PublisherStubSettings) getStubSettings()).createTopicSettings(); @@ -100,7 +102,7 @@ public UnaryCallSettings updateTopicSettings() { } /** Returns the object with the settings used for calls to publish. */ - /* package-private */ BatchingCallSettings publishSettings() { + public BatchingCallSettings publishSettings() { return ((PublisherStubSettings) getStubSettings()).publishSettings(); } @@ -125,7 +127,7 @@ public UnaryCallSettings getTopicSettings() { } /** Returns the object with the settings used for calls to listTopicSnapshots. */ - /* package-private */ PagedCallSettings< + public PagedCallSettings< ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> listTopicSnapshotsSettings() { return ((PublisherStubSettings) getStubSettings()).listTopicSnapshotsSettings(); @@ -136,6 +138,12 @@ public UnaryCallSettings deleteTopicSettings() { return ((PublisherStubSettings) getStubSettings()).deleteTopicSettings(); } + /** Returns the object with the settings used for calls to detachSubscription. */ + public UnaryCallSettings + detachSubscriptionSettings() { + return ((PublisherStubSettings) getStubSettings()).detachSubscriptionSettings(); + } + /** Returns the object with the settings used for calls to setIamPolicy. */ public UnaryCallSettings setIamPolicySettings() { return ((PublisherStubSettings) getStubSettings()).setIamPolicySettings(); @@ -152,12 +160,6 @@ public UnaryCallSettings getIamPolicySettings() { return ((PublisherStubSettings) getStubSettings()).testIamPermissionsSettings(); } - /** Returns the object with the settings used for calls to detachSubscription. */ - public UnaryCallSettings - detachSubscriptionSettings() { - return ((PublisherStubSettings) getStubSettings()).detachSubscriptionSettings(); - } - public static final TopicAdminSettings create(PublisherStubSettings stub) throws IOException { return new TopicAdminSettings.Builder(stub.toBuilder()).build(); } @@ -217,18 +219,15 @@ protected TopicAdminSettings(Builder settingsBuilder) throws IOException { /** Builder for TopicAdminSettings. */ public static class Builder extends ClientSettings.Builder { + protected Builder() throws IOException { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(PublisherStubSettings.newBuilder(clientContext)); } - private static Builder createDefault() { - return new Builder(PublisherStubSettings.newBuilder()); - } - protected Builder(TopicAdminSettings settings) { super(settings.getStubSettings().toBuilder()); } @@ -237,6 +236,10 @@ protected Builder(PublisherStubSettings.Builder stubSettings) { super(stubSettings); } + private static Builder createDefault() { + return new Builder(PublisherStubSettings.newBuilder()); + } + public PublisherStubSettings.Builder getStubSettingsBuilder() { return ((PublisherStubSettings.Builder) getStubSettings()); } @@ -265,8 +268,7 @@ public UnaryCallSettings.Builder updateTopicSettings( } /** Returns the builder for the settings used for calls to publish. */ - /* package-private */ BatchingCallSettings.Builder - publishSettings() { + public BatchingCallSettings.Builder publishSettings() { return getStubSettingsBuilder().publishSettings(); } @@ -291,7 +293,7 @@ public UnaryCallSettings.Builder getTopicSettings() { } /** Returns the builder for the settings used for calls to listTopicSnapshots. */ - /* package-private */ PagedCallSettings.Builder< + public PagedCallSettings.Builder< ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> listTopicSnapshotsSettings() { return getStubSettingsBuilder().listTopicSnapshotsSettings(); @@ -302,6 +304,12 @@ public UnaryCallSettings.Builder deleteTopicSettings( return getStubSettingsBuilder().deleteTopicSettings(); } + /** Returns the builder for the settings used for calls to detachSubscription. */ + public UnaryCallSettings.Builder + detachSubscriptionSettings() { + return getStubSettingsBuilder().detachSubscriptionSettings(); + } + /** Returns the builder for the settings used for calls to setIamPolicy. */ public UnaryCallSettings.Builder setIamPolicySettings() { return getStubSettingsBuilder().setIamPolicySettings(); @@ -318,12 +326,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return getStubSettingsBuilder().testIamPermissionsSettings(); } - /** Returns the builder for the settings used for calls to detachSubscription. */ - public UnaryCallSettings.Builder - detachSubscriptionSettings() { - return getStubSettingsBuilder().detachSubscriptionSettings(); - } - @Override public TopicAdminSettings build() throws IOException { return new TopicAdminSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json new file mode 100644 index 000000000000..8efac12d0140 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json @@ -0,0 +1,156 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.pubsub.v1", + "libraryPackage": "com.google.cloud.pubsub.v1", + "services": { + "Publisher": { + "clients": { + "grpc": { + "libraryClient": "TopicAdminClient", + "rpcs": { + "CreateTopic": { + "methods": ["createTopic", "createTopic", "createTopic", "createTopicCallable"] + }, + "DeleteTopic": { + "methods": ["deleteTopic", "deleteTopic", "deleteTopic", "deleteTopicCallable"] + }, + "DetachSubscription": { + "methods": ["detachSubscription", "detachSubscriptionCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetTopic": { + "methods": ["getTopic", "getTopic", "getTopic", "getTopicCallable"] + }, + "ListTopicSnapshots": { + "methods": ["listTopicSnapshots", "listTopicSnapshots", "listTopicSnapshots", "listTopicSnapshotsPagedCallable", "listTopicSnapshotsCallable"] + }, + "ListTopicSubscriptions": { + "methods": ["listTopicSubscriptions", "listTopicSubscriptions", "listTopicSubscriptions", "listTopicSubscriptionsPagedCallable", "listTopicSubscriptionsCallable"] + }, + "ListTopics": { + "methods": ["listTopics", "listTopics", "listTopics", "listTopicsPagedCallable", "listTopicsCallable"] + }, + "Publish": { + "methods": ["publish", "publish", "publish", "publishCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateTopic": { + "methods": ["updateTopic", "updateTopicCallable"] + } + } + } + } + }, + "Subscriber": { + "clients": { + "grpc": { + "libraryClient": "SubscriptionAdminClient", + "rpcs": { + "Acknowledge": { + "methods": ["acknowledge", "acknowledge", "acknowledge", "acknowledgeCallable"] + }, + "CreateSnapshot": { + "methods": ["createSnapshot", "createSnapshot", "createSnapshot", "createSnapshot", "createSnapshot", "createSnapshotCallable"] + }, + "CreateSubscription": { + "methods": ["createSubscription", "createSubscription", "createSubscription", "createSubscription", "createSubscription", "createSubscriptionCallable"] + }, + "DeleteSnapshot": { + "methods": ["deleteSnapshot", "deleteSnapshot", "deleteSnapshot", "deleteSnapshotCallable"] + }, + "DeleteSubscription": { + "methods": ["deleteSubscription", "deleteSubscription", "deleteSubscription", "deleteSubscriptionCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetSnapshot": { + "methods": ["getSnapshot", "getSnapshot", "getSnapshot", "getSnapshotCallable"] + }, + "GetSubscription": { + "methods": ["getSubscription", "getSubscription", "getSubscription", "getSubscriptionCallable"] + }, + "ListSnapshots": { + "methods": ["listSnapshots", "listSnapshots", "listSnapshots", "listSnapshotsPagedCallable", "listSnapshotsCallable"] + }, + "ListSubscriptions": { + "methods": ["listSubscriptions", "listSubscriptions", "listSubscriptions", "listSubscriptionsPagedCallable", "listSubscriptionsCallable"] + }, + "ModifyAckDeadline": { + "methods": ["modifyAckDeadline", "modifyAckDeadline", "modifyAckDeadline", "modifyAckDeadlineCallable"] + }, + "ModifyPushConfig": { + "methods": ["modifyPushConfig", "modifyPushConfig", "modifyPushConfig", "modifyPushConfigCallable"] + }, + "Pull": { + "methods": ["pull", "pull", "pull", "pull", "pull", "pullCallable"] + }, + "Seek": { + "methods": ["seek", "seekCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "StreamingPull": { + "methods": ["streamingPullCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateSnapshot": { + "methods": ["updateSnapshot", "updateSnapshotCallable"] + }, + "UpdateSubscription": { + "methods": ["updateSubscription", "updateSubscriptionCallable"] + } + } + } + } + }, + "SchemaService": { + "clients": { + "grpc": { + "libraryClient": "SchemaServiceClient", + "rpcs": { + "CreateSchema": { + "methods": ["createSchema", "createSchema", "createSchema", "createSchemaCallable"] + }, + "DeleteSchema": { + "methods": ["deleteSchema", "deleteSchema", "deleteSchema", "deleteSchemaCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetSchema": { + "methods": ["getSchema", "getSchema", "getSchema", "getSchemaCallable"] + }, + "ListSchemas": { + "methods": ["listSchemas", "listSchemas", "listSchemas", "listSchemasPagedCallable", "listSchemasCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "ValidateMessage": { + "methods": ["validateMessage", "validateMessageCallable"] + }, + "ValidateSchema": { + "methods": ["validateSchema", "validateSchema", "validateSchema", "validateSchemaCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index a51ede8608dd..820341320aa4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -15,68 +15,59 @@ */ /** - * A client to Cloud Pub/Sub API. + * A client to Cloud Pub/Sub API * *

    The interfaces provided are listed below, along with usage samples. * - *

    =================== SchemaServiceClient =================== - * - *

    Service Description: Service for doing schema-related operations. - * - *

    Sample for SchemaServiceClient: - * - *

    - * 
    - * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    - *   ProjectName parent = ProjectName.of("[PROJECT]");
    - *   Schema schema = Schema.newBuilder().build();
    - *   String schemaId = "";
    - *   Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
    - * }
    - * 
    - * 
    - * - * ================ TopicAdminClient ================ + *

    ======================= TopicAdminClient ======================= * *

    Service Description: The service that an application uses to manipulate topics, and to send * messages to a topic. * - *

    To publish messages to a topic, see the Publisher class. - * *

    Sample for TopicAdminClient: * - *

    - * 
    + * 
    {@code
      * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   Topic response = topicAdminClient.createTopic(name);
      * }
    - * 
    - * 
    + * }
    * - * ======================= SubscriptionAdminClient ======================= + *

    ======================= SubscriptionAdminClient ======================= * *

    Service Description: 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. * - *

    To retrieve messages from a subscription, see the Subscriber class. - * *

    Sample for SubscriptionAdminClient: * - *

    - * 
    + * 
    {@code
      * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   PushConfig pushConfig = PushConfig.newBuilder().build();
    - *   int ackDeadlineSeconds = 0;
    - *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    + *   int ackDeadlineSeconds = 2135351438;
    + *   Subscription response =
    + *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    + * }
    + * }
    + * + *

    ======================= SchemaServiceClient ======================= + * + *

    Service Description: Service for doing schema-related operations. + * + *

    Sample for SchemaServiceClient: + * + *

    {@code
    + * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    + *   ProjectName parent = ProjectName.of("[PROJECT]");
    + *   Schema schema = Schema.newBuilder().build();
    + *   String schemaId = "schemaId-697673060";
    + *   Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
      * }
    - * 
    - * 
    + * }
    */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") package com.google.cloud.pubsub.v1; import javax.annotation.Generated; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index d3089ca30ada..35e7f539aa4f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; -import com.google.api.core.BetaApi; import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcCallableFactory; import com.google.api.gax.grpc.GrpcStubCallableFactory; @@ -31,18 +31,19 @@ import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Pub/Sub API. + * gRPC callable factory implementation for the Publisher service API. * *

    This class is for advanced usage. */ -@Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +@Generated("by gapic-generator-java") public class GrpcPublisherCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 52cdf25dc0bb..950b7223777a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.grpc.GrpcCallSettings; @@ -33,6 +33,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.DetachSubscriptionRequest; @@ -55,16 +56,14 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Pub/Sub API. + * gRPC stub implementation for the Publisher service API. * *

    This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcPublisherStub extends PublisherStub { - private static final MethodDescriptor createTopicMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -72,6 +71,7 @@ public class GrpcPublisherStub extends PublisherStub { .setRequestMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) .build(); + private static final MethodDescriptor updateTopicMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -79,6 +79,7 @@ public class GrpcPublisherStub extends PublisherStub { .setRequestMarshaller(ProtoUtils.marshaller(UpdateTopicRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) .build(); + private static final MethodDescriptor publishMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -86,6 +87,7 @@ public class GrpcPublisherStub extends PublisherStub { .setRequestMarshaller(ProtoUtils.marshaller(PublishRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(PublishResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor getTopicMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -93,6 +95,7 @@ public class GrpcPublisherStub extends PublisherStub { .setRequestMarshaller(ProtoUtils.marshaller(GetTopicRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) .build(); + private static final MethodDescriptor listTopicsMethodDescriptor = MethodDescriptor.newBuilder() @@ -101,6 +104,7 @@ public class GrpcPublisherStub extends PublisherStub { .setRequestMarshaller(ProtoUtils.marshaller(ListTopicsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListTopicsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor< ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse> listTopicSubscriptionsMethodDescriptor = @@ -113,6 +117,7 @@ public class GrpcPublisherStub extends PublisherStub { .setResponseMarshaller( ProtoUtils.marshaller(ListTopicSubscriptionsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor listTopicSnapshotsMethodDescriptor = MethodDescriptor.newBuilder() @@ -123,6 +128,7 @@ public class GrpcPublisherStub extends PublisherStub { .setResponseMarshaller( ProtoUtils.marshaller(ListTopicSnapshotsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteTopicMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -130,6 +136,18 @@ public class GrpcPublisherStub extends PublisherStub { .setRequestMarshaller(ProtoUtils.marshaller(DeleteTopicRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + + private static final MethodDescriptor + detachSubscriptionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Publisher/DetachSubscription") + .setRequestMarshaller( + ProtoUtils.marshaller(DetachSubscriptionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DetachSubscriptionResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor setIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -137,6 +155,7 @@ public class GrpcPublisherStub extends PublisherStub { .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .build(); + private static final MethodDescriptor getIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -144,6 +163,7 @@ public class GrpcPublisherStub extends PublisherStub { .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .build(); + private static final MethodDescriptor testIamPermissionsMethodDescriptor = MethodDescriptor.newBuilder() @@ -154,18 +174,6 @@ public class GrpcPublisherStub extends PublisherStub { .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) .build(); - private static final MethodDescriptor - detachSubscriptionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.pubsub.v1.Publisher/DetachSubscription") - .setRequestMarshaller( - ProtoUtils.marshaller(DetachSubscriptionRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DetachSubscriptionResponse.getDefaultInstance())) - .build(); - - private final BackgroundResource backgroundResources; private final UnaryCallable createTopicCallable; private final UnaryCallable updateTopicCallable; @@ -182,13 +190,15 @@ public class GrpcPublisherStub extends PublisherStub { private final UnaryCallable listTopicSnapshotsPagedCallable; private final UnaryCallable deleteTopicCallable; + private final UnaryCallable + detachSubscriptionCallable; private final UnaryCallable setIamPolicyCallable; private final UnaryCallable getIamPolicyCallable; private final UnaryCallable testIamPermissionsCallable; - private final UnaryCallable - detachSubscriptionCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcPublisherStub create(PublisherStubSettings settings) throws IOException { @@ -226,6 +236,7 @@ protected GrpcPublisherStub( GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createTopicTransportSettings = GrpcCallSettings.newBuilder() @@ -334,6 +345,20 @@ public Map extract(DeleteTopicRequest request) { } }) .build(); + GrpcCallSettings + detachSubscriptionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(detachSubscriptionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DetachSubscriptionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); + } + }) + .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) @@ -374,20 +399,6 @@ public Map extract(TestIamPermissionsRequest request) { } }) .build(); - GrpcCallSettings - detachSubscriptionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(detachSubscriptionMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DetachSubscriptionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); - } - }) - .build(); this.createTopicCallable = callableFactory.createUnaryCallable( @@ -396,7 +407,7 @@ public Map extract(DetachSubscriptionRequest request) { callableFactory.createUnaryCallable( updateTopicTransportSettings, settings.updateTopicSettings(), clientContext); this.publishCallable = - callableFactory.createBatchingCallable( + callableFactory.createUnaryCallable( publishTransportSettings, settings.publishSettings(), clientContext); this.getTopicCallable = callableFactory.createUnaryCallable( @@ -430,6 +441,11 @@ public Map extract(DetachSubscriptionRequest request) { this.deleteTopicCallable = callableFactory.createUnaryCallable( deleteTopicTransportSettings, settings.deleteTopicSettings(), clientContext); + this.detachSubscriptionCallable = + callableFactory.createUnaryCallable( + detachSubscriptionTransportSettings, + settings.detachSubscriptionSettings(), + clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); @@ -441,84 +457,105 @@ public Map extract(DetachSubscriptionRequest request) { testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); - this.detachSubscriptionCallable = - callableFactory.createUnaryCallable( - detachSubscriptionTransportSettings, - settings.detachSubscriptionSettings(), - clientContext); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override public UnaryCallable createTopicCallable() { return createTopicCallable; } + @Override public UnaryCallable updateTopicCallable() { return updateTopicCallable; } + @Override public UnaryCallable publishCallable() { return publishCallable; } + @Override public UnaryCallable getTopicCallable() { return getTopicCallable; } - public UnaryCallable listTopicsPagedCallable() { - return listTopicsPagedCallable; - } - + @Override public UnaryCallable listTopicsCallable() { return listTopicsCallable; } - public UnaryCallable - listTopicSubscriptionsPagedCallable() { - return listTopicSubscriptionsPagedCallable; + @Override + public UnaryCallable listTopicsPagedCallable() { + return listTopicsPagedCallable; } + @Override public UnaryCallable listTopicSubscriptionsCallable() { return listTopicSubscriptionsCallable; } - public UnaryCallable - listTopicSnapshotsPagedCallable() { - return listTopicSnapshotsPagedCallable; + @Override + public UnaryCallable + listTopicSubscriptionsPagedCallable() { + return listTopicSubscriptionsPagedCallable; } + @Override public UnaryCallable listTopicSnapshotsCallable() { return listTopicSnapshotsCallable; } + @Override + public UnaryCallable + listTopicSnapshotsPagedCallable() { + return listTopicSnapshotsPagedCallable; + } + + @Override public UnaryCallable deleteTopicCallable() { return deleteTopicCallable; } + @Override + public UnaryCallable + detachSubscriptionCallable() { + return detachSubscriptionCallable; + } + + @Override public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; } + @Override public UnaryCallable getIamPolicyCallable() { return getIamPolicyCallable; } + @Override public UnaryCallable testIamPermissionsCallable() { return testIamPermissionsCallable; } - public UnaryCallable - detachSubscriptionCallable() { - return detachSubscriptionCallable; - } - @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java index c7e5d89e26e9..b1e3e27ccfaf 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; -import com.google.api.core.BetaApi; import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcCallableFactory; import com.google.api.gax.grpc.GrpcStubCallableFactory; @@ -31,18 +31,19 @@ import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Pub/Sub API. + * gRPC callable factory implementation for the SchemaService service API. * *

    This class is for advanced usage. */ -@Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +@Generated("by gapic-generator-java") public class GrpcSchemaServiceCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index 220d4592c06a..0ca41b379b03 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.grpc.GrpcCallSettings; @@ -26,6 +26,12 @@ import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; @@ -44,16 +50,14 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Pub/Sub API. + * gRPC stub implementation for the SchemaService service API. * *

    This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcSchemaServiceStub extends SchemaServiceStub { - private static final MethodDescriptor createSchemaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -61,6 +65,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setRequestMarshaller(ProtoUtils.marshaller(CreateSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) .build(); + private static final MethodDescriptor getSchemaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -68,6 +73,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setRequestMarshaller(ProtoUtils.marshaller(GetSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) .build(); + private static final MethodDescriptor listSchemasMethodDescriptor = MethodDescriptor.newBuilder() @@ -77,6 +83,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setResponseMarshaller( ProtoUtils.marshaller(ListSchemasResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteSchemaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -84,6 +91,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setRequestMarshaller(ProtoUtils.marshaller(DeleteSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor validateSchemaMethodDescriptor = MethodDescriptor.newBuilder() @@ -94,6 +102,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setResponseMarshaller( ProtoUtils.marshaller(ValidateSchemaResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor validateMessageMethodDescriptor = MethodDescriptor.newBuilder() @@ -105,7 +114,32 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { ProtoUtils.marshaller(ValidateMessageResponse.getDefaultInstance())) .build(); - private final BackgroundResource backgroundResources; + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); private final UnaryCallable createSchemaCallable; private final UnaryCallable getSchemaCallable; @@ -116,7 +150,13 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { private final UnaryCallable validateSchemaCallable; private final UnaryCallable validateMessageCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcSchemaServiceStub create(SchemaServiceStubSettings settings) @@ -155,6 +195,7 @@ protected GrpcSchemaServiceStub( GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createSchemaTransportSettings = GrpcCallSettings.newBuilder() @@ -236,6 +277,46 @@ public Map extract(ValidateMessageRequest request) { } }) .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SetIamPolicyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + } + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetIamPolicyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(TestIamPermissionsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + } + }) + .build(); this.createSchemaCallable = callableFactory.createUnaryCallable( @@ -258,41 +339,86 @@ public Map extract(ValidateMessageRequest request) { this.validateMessageCallable = callableFactory.createUnaryCallable( validateMessageTransportSettings, settings.validateMessageSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override public UnaryCallable createSchemaCallable() { return createSchemaCallable; } + @Override public UnaryCallable getSchemaCallable() { return getSchemaCallable; } - public UnaryCallable listSchemasPagedCallable() { - return listSchemasPagedCallable; - } - + @Override public UnaryCallable listSchemasCallable() { return listSchemasCallable; } + @Override + public UnaryCallable listSchemasPagedCallable() { + return listSchemasPagedCallable; + } + + @Override public UnaryCallable deleteSchemaCallable() { return deleteSchemaCallable; } + @Override public UnaryCallable validateSchemaCallable() { return validateSchemaCallable; } + @Override public UnaryCallable validateMessageCallable() { return validateMessageCallable; } + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 8656445c4225..97d867601dfa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; -import com.google.api.core.BetaApi; import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcCallableFactory; import com.google.api.gax.grpc.GrpcStubCallableFactory; @@ -31,18 +31,19 @@ import com.google.api.gax.rpc.StreamingCallSettings; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for Cloud Pub/Sub API. + * gRPC callable factory implementation for the Subscriber service API. * *

    This class is for advanced usage. */ -@Generated("by gapic-generator") -@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") +@Generated("by gapic-generator-java") public class GrpcSubscriberCallableFactory implements GrpcStubCallableFactory { + @Override public UnaryCallable createUnaryCallable( GrpcCallSettings grpcCallSettings, @@ -55,61 +56,58 @@ public UnaryCallable createUnaryCalla public UnaryCallable createPagedCallable( GrpcCallSettings grpcCallSettings, - PagedCallSettings pagedCallSettings, + PagedCallSettings callSettings, ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable( - grpcCallSettings, pagedCallSettings, clientContext); + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); } @Override public UnaryCallable createBatchingCallable( GrpcCallSettings grpcCallSettings, - BatchingCallSettings batchingCallSettings, + BatchingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, batchingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings operationCallSettings, + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, ClientContext clientContext, OperationsStub operationsStub) { return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, operationCallSettings, clientContext, operationsStub); + grpcCallSettings, callSettings, clientContext, operationsStub); } @Override public BidiStreamingCallable createBidiStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ServerStreamingCallable createServerStreamingCallable( GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings streamingCallSettings, + ServerStreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } @Override public ClientStreamingCallable createClientStreamingCallable( GrpcCallSettings grpcCallSettings, - StreamingCallSettings streamingCallSettings, + StreamingCallSettings callSettings, ClientContext clientContext) { return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, streamingCallSettings, clientContext); + grpcCallSettings, callSettings, clientContext); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index 6d5ecda6eebd..878a2ad7d266 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.grpc.GrpcCallSettings; @@ -33,6 +33,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.CreateSnapshotRequest; @@ -63,16 +64,14 @@ import java.util.concurrent.TimeUnit; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC stub implementation for Cloud Pub/Sub API. + * gRPC stub implementation for the Subscriber service API. * *

    This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public class GrpcSubscriberStub extends SubscriberStub { - private static final MethodDescriptor createSubscriptionMethodDescriptor = MethodDescriptor.newBuilder() @@ -81,6 +80,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) .build(); + private static final MethodDescriptor getSubscriptionMethodDescriptor = MethodDescriptor.newBuilder() @@ -90,6 +90,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(GetSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) .build(); + private static final MethodDescriptor updateSubscriptionMethodDescriptor = MethodDescriptor.newBuilder() @@ -99,6 +100,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(UpdateSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) .build(); + private static final MethodDescriptor listSubscriptionsMethodDescriptor = MethodDescriptor.newBuilder() @@ -109,6 +111,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setResponseMarshaller( ProtoUtils.marshaller(ListSubscriptionsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteSubscriptionMethodDescriptor = MethodDescriptor.newBuilder() @@ -118,13 +121,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(DeleteSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); - private static final MethodDescriptor getSnapshotMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.pubsub.v1.Subscriber/GetSnapshot") - .setRequestMarshaller(ProtoUtils.marshaller(GetSnapshotRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) - .build(); + private static final MethodDescriptor modifyAckDeadlineMethodDescriptor = MethodDescriptor.newBuilder() @@ -134,6 +131,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(ModifyAckDeadlineRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor acknowledgeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -141,6 +139,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller(ProtoUtils.marshaller(AcknowledgeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor pullMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -148,6 +147,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller(ProtoUtils.marshaller(PullRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(PullResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor streamingPullMethodDescriptor = MethodDescriptor.newBuilder() @@ -158,6 +158,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setResponseMarshaller( ProtoUtils.marshaller(StreamingPullResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor modifyPushConfigMethodDescriptor = MethodDescriptor.newBuilder() @@ -167,6 +168,15 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(ModifyPushConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + + private static final MethodDescriptor getSnapshotMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.Subscriber/GetSnapshot") + .setRequestMarshaller(ProtoUtils.marshaller(GetSnapshotRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .build(); + private static final MethodDescriptor listSnapshotsMethodDescriptor = MethodDescriptor.newBuilder() @@ -177,6 +187,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setResponseMarshaller( ProtoUtils.marshaller(ListSnapshotsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor createSnapshotMethodDescriptor = MethodDescriptor.newBuilder() @@ -186,6 +197,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(CreateSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) .build(); + private static final MethodDescriptor updateSnapshotMethodDescriptor = MethodDescriptor.newBuilder() @@ -195,6 +207,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(UpdateSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteSnapshotMethodDescriptor = MethodDescriptor.newBuilder() @@ -204,6 +217,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(DeleteSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor seekMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -211,6 +225,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller(ProtoUtils.marshaller(SeekRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SeekResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor setIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -218,6 +233,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .build(); + private static final MethodDescriptor getIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -225,6 +241,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .build(); + private static final MethodDescriptor testIamPermissionsMethodDescriptor = MethodDescriptor.newBuilder() @@ -236,8 +253,6 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) .build(); - private final BackgroundResource backgroundResources; - private final UnaryCallable createSubscriptionCallable; private final UnaryCallable getSubscriptionCallable; private final UnaryCallable updateSubscriptionCallable; @@ -246,13 +261,13 @@ public class GrpcSubscriberStub extends SubscriberStub { private final UnaryCallable listSubscriptionsPagedCallable; private final UnaryCallable deleteSubscriptionCallable; - private final UnaryCallable getSnapshotCallable; private final UnaryCallable modifyAckDeadlineCallable; private final UnaryCallable acknowledgeCallable; private final UnaryCallable pullCallable; private final BidiStreamingCallable streamingPullCallable; private final UnaryCallable modifyPushConfigCallable; + private final UnaryCallable getSnapshotCallable; private final UnaryCallable listSnapshotsCallable; private final UnaryCallable listSnapshotsPagedCallable; @@ -265,6 +280,8 @@ public class GrpcSubscriberStub extends SubscriberStub { private final UnaryCallable testIamPermissionsCallable; + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcSubscriberStub create(SubscriberStubSettings settings) @@ -303,6 +320,7 @@ protected GrpcSubscriberStub( GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createSubscriptionTransportSettings = GrpcCallSettings.newBuilder() @@ -371,19 +389,6 @@ public Map extract(DeleteSubscriptionRequest request) { } }) .build(); - GrpcCallSettings getSnapshotTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSnapshotMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetSnapshotRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("snapshot", String.valueOf(request.getSnapshot())); - return params.build(); - } - }) - .build(); GrpcCallSettings modifyAckDeadlineTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(modifyAckDeadlineMethodDescriptor) @@ -440,6 +445,19 @@ public Map extract(ModifyPushConfigRequest request) { } }) .build(); + GrpcCallSettings getSnapshotTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSnapshotMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetSnapshotRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("snapshot", String.valueOf(request.getSnapshot())); + return params.build(); + } + }) + .build(); GrpcCallSettings listSnapshotsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSnapshotsMethodDescriptor) @@ -574,9 +592,6 @@ public Map extract(TestIamPermissionsRequest request) { deleteSubscriptionTransportSettings, settings.deleteSubscriptionSettings(), clientContext); - this.getSnapshotCallable = - callableFactory.createUnaryCallable( - getSnapshotTransportSettings, settings.getSnapshotSettings(), clientContext); this.modifyAckDeadlineCallable = callableFactory.createUnaryCallable( modifyAckDeadlineTransportSettings, @@ -594,6 +609,9 @@ public Map extract(TestIamPermissionsRequest request) { this.modifyPushConfigCallable = callableFactory.createUnaryCallable( modifyPushConfigTransportSettings, settings.modifyPushConfigSettings(), clientContext); + this.getSnapshotCallable = + callableFactory.createUnaryCallable( + getSnapshotTransportSettings, settings.getSnapshotSettings(), clientContext); this.listSnapshotsCallable = callableFactory.createUnaryCallable( listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); @@ -624,93 +642,119 @@ public Map extract(TestIamPermissionsRequest request) { settings.testIamPermissionsSettings(), clientContext); - backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override public UnaryCallable createSubscriptionCallable() { return createSubscriptionCallable; } + @Override public UnaryCallable getSubscriptionCallable() { return getSubscriptionCallable; } + @Override public UnaryCallable updateSubscriptionCallable() { return updateSubscriptionCallable; } - public UnaryCallable - listSubscriptionsPagedCallable() { - return listSubscriptionsPagedCallable; - } - + @Override public UnaryCallable listSubscriptionsCallable() { return listSubscriptionsCallable; } - public UnaryCallable deleteSubscriptionCallable() { - return deleteSubscriptionCallable; + @Override + public UnaryCallable + listSubscriptionsPagedCallable() { + return listSubscriptionsPagedCallable; } - public UnaryCallable getSnapshotCallable() { - return getSnapshotCallable; + @Override + public UnaryCallable deleteSubscriptionCallable() { + return deleteSubscriptionCallable; } + @Override public UnaryCallable modifyAckDeadlineCallable() { return modifyAckDeadlineCallable; } + @Override public UnaryCallable acknowledgeCallable() { return acknowledgeCallable; } + @Override public UnaryCallable pullCallable() { return pullCallable; } + @Override public BidiStreamingCallable streamingPullCallable() { return streamingPullCallable; } + @Override public UnaryCallable modifyPushConfigCallable() { return modifyPushConfigCallable; } - public UnaryCallable - listSnapshotsPagedCallable() { - return listSnapshotsPagedCallable; + @Override + public UnaryCallable getSnapshotCallable() { + return getSnapshotCallable; } + @Override public UnaryCallable listSnapshotsCallable() { return listSnapshotsCallable; } + @Override + public UnaryCallable + listSnapshotsPagedCallable() { + return listSnapshotsPagedCallable; + } + + @Override public UnaryCallable createSnapshotCallable() { return createSnapshotCallable; } + @Override public UnaryCallable updateSnapshotCallable() { return updateSnapshotCallable; } + @Override public UnaryCallable deleteSnapshotCallable() { return deleteSnapshotCallable; } + @Override public UnaryCallable seekCallable() { return seekCallable; } + @Override public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; } + @Override public UnaryCallable getIamPolicyCallable() { return getIamPolicyCallable; } + @Override public UnaryCallable testIamPermissionsCallable() { return testIamPermissionsCallable; @@ -718,7 +762,13 @@ public UnaryCallable getIamPolicyCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 93cdf2f03743..9b90ca986f21 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.iam.v1.GetIamPolicyRequest; @@ -44,14 +44,13 @@ import com.google.pubsub.v1.UpdateTopicRequest; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Pub/Sub API. + * Base stub class for the Publisher service API. * *

    This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public abstract class PublisherStub implements BackgroundResource { public UnaryCallable createTopicCallable() { @@ -103,6 +102,11 @@ public UnaryCallable deleteTopicCallable() { throw new UnsupportedOperationException("Not implemented: deleteTopicCallable()"); } + public UnaryCallable + detachSubscriptionCallable() { + throw new UnsupportedOperationException("Not implemented: detachSubscriptionCallable()"); + } + public UnaryCallable setIamPolicyCallable() { throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); } @@ -116,11 +120,6 @@ public UnaryCallable getIamPolicyCallable() { throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); } - public UnaryCallable - detachSubscriptionCallable() { - throw new UnsupportedOperationException("Not implemented: detachSubscriptionCallable()"); - } - @Override public abstract void close(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 696671660eed..e5ea4e34bc01 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; @@ -24,7 +25,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.batching.BatchingSettings; import com.google.api.gax.batching.FlowControlSettings; -import com.google.api.gax.batching.FlowController.LimitExceededBehavior; +import com.google.api.gax.batching.FlowController; import com.google.api.gax.batching.PartitionKey; import com.google.api.gax.batching.RequestBuilder; import com.google.api.gax.core.GaxProperties; @@ -80,7 +81,7 @@ import javax.annotation.Generated; import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link PublisherStub}. * @@ -97,21 +98,21 @@ * *

    For example, to set the total timeout of createTopic to 30 seconds: * - *

    - * 
    - * PublisherStubSettings.Builder topicAdminSettingsBuilder =
    - *     PublisherStubSettings.newBuilder();
    + * 
    {@code
    + * PublisherStubSettings.Builder topicAdminSettingsBuilder = PublisherStubSettings.newBuilder();
      * topicAdminSettingsBuilder
      *     .createTopicSettings()
      *     .setRetrySettings(
    - *         topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder()
    + *         topicAdminSettingsBuilder
    + *             .createTopicSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build();
    - * 
    - * 
    + * }
    */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class PublisherStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = @@ -135,163 +136,12 @@ public class PublisherStubSettings extends StubSettings { ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> listTopicSnapshotsSettings; private final UnaryCallSettings deleteTopicSettings; + private final UnaryCallSettings + detachSubscriptionSettings; private final UnaryCallSettings setIamPolicySettings; private final UnaryCallSettings getIamPolicySettings; private final UnaryCallSettings testIamPermissionsSettings; - private final UnaryCallSettings - detachSubscriptionSettings; - - /** Returns the object with the settings used for calls to createTopic. */ - public UnaryCallSettings createTopicSettings() { - return createTopicSettings; - } - - /** Returns the object with the settings used for calls to updateTopic. */ - public UnaryCallSettings updateTopicSettings() { - return updateTopicSettings; - } - - /** Returns the object with the settings used for calls to publish. */ - public BatchingCallSettings publishSettings() { - return publishSettings; - } - - /** Returns the object with the settings used for calls to getTopic. */ - public UnaryCallSettings getTopicSettings() { - return getTopicSettings; - } - - /** Returns the object with the settings used for calls to listTopics. */ - public PagedCallSettings - listTopicsSettings() { - return listTopicsSettings; - } - - /** Returns the object with the settings used for calls to listTopicSubscriptions. */ - public PagedCallSettings< - ListTopicSubscriptionsRequest, - ListTopicSubscriptionsResponse, - ListTopicSubscriptionsPagedResponse> - listTopicSubscriptionsSettings() { - return listTopicSubscriptionsSettings; - } - - /** Returns the object with the settings used for calls to listTopicSnapshots. */ - public PagedCallSettings< - ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> - listTopicSnapshotsSettings() { - return listTopicSnapshotsSettings; - } - - /** Returns the object with the settings used for calls to deleteTopic. */ - public UnaryCallSettings deleteTopicSettings() { - return deleteTopicSettings; - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** Returns the object with the settings used for calls to detachSubscription. */ - public UnaryCallSettings - detachSubscriptionSettings() { - return detachSubscriptionSettings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public PublisherStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcPublisherStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); - } - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "pubsub.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected PublisherStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createTopicSettings = settingsBuilder.createTopicSettings().build(); - updateTopicSettings = settingsBuilder.updateTopicSettings().build(); - publishSettings = settingsBuilder.publishSettings().build(); - getTopicSettings = settingsBuilder.getTopicSettings().build(); - listTopicsSettings = settingsBuilder.listTopicsSettings().build(); - listTopicSubscriptionsSettings = settingsBuilder.listTopicSubscriptionsSettings().build(); - listTopicSnapshotsSettings = settingsBuilder.listTopicSnapshotsSettings().build(); - deleteTopicSettings = settingsBuilder.deleteTopicSettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); - getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); - testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); - detachSubscriptionSettings = settingsBuilder.detachSubscriptionSettings().build(); - } private static final PagedListDescriptor LIST_TOPICS_PAGE_STR_DESC = @@ -323,9 +173,9 @@ public String extractNextToken(ListTopicsResponse payload) { @Override public Iterable extractResources(ListTopicsResponse payload) { - return payload.getTopicsList() != null - ? payload.getTopicsList() - : ImmutableList.of(); + return payload.getTopicsList() == null + ? ImmutableList.of() + : payload.getTopicsList(); } }; @@ -365,9 +215,9 @@ public String extractNextToken(ListTopicSubscriptionsResponse payload) { @Override public Iterable extractResources(ListTopicSubscriptionsResponse payload) { - return payload.getSubscriptionsList() != null - ? payload.getSubscriptionsList() - : ImmutableList.of(); + return payload.getSubscriptionsList() == null + ? ImmutableList.of() + : payload.getSubscriptionsList(); } }; @@ -404,9 +254,9 @@ public String extractNextToken(ListTopicSnapshotsResponse payload) { @Override public Iterable extractResources(ListTopicSnapshotsResponse payload) { - return payload.getSnapshotsList() != null - ? payload.getSnapshotsList() - : ImmutableList.of(); + return payload.getSnapshotsList() == null + ? ImmutableList.of() + : payload.getSnapshotsList(); } }; @@ -509,8 +359,7 @@ public void splitResponse( List subresponseElements = new ArrayList<>(); long subresponseCount = responder.getMessageCount(); for (int i = 0; i < subresponseCount; i++) { - subresponseElements.add(batchResponse.getMessageIds(batchMessageIndex)); - batchMessageIndex += 1; + subresponseElements.add(batchResponse.getMessageIds(batchMessageIndex++)); } PublishResponse response = PublishResponse.newBuilder().addAllMessageIds(subresponseElements).build(); @@ -538,10 +387,165 @@ public long countBytes(PublishRequest request) { } }; + /** Returns the object with the settings used for calls to createTopic. */ + public UnaryCallSettings createTopicSettings() { + return createTopicSettings; + } + + /** Returns the object with the settings used for calls to updateTopic. */ + public UnaryCallSettings updateTopicSettings() { + return updateTopicSettings; + } + + /** Returns the object with the settings used for calls to publish. */ + public BatchingCallSettings publishSettings() { + return publishSettings; + } + + /** Returns the object with the settings used for calls to getTopic. */ + public UnaryCallSettings getTopicSettings() { + return getTopicSettings; + } + + /** Returns the object with the settings used for calls to listTopics. */ + public PagedCallSettings + listTopicsSettings() { + return listTopicsSettings; + } + + /** Returns the object with the settings used for calls to listTopicSubscriptions. */ + public PagedCallSettings< + ListTopicSubscriptionsRequest, + ListTopicSubscriptionsResponse, + ListTopicSubscriptionsPagedResponse> + listTopicSubscriptionsSettings() { + return listTopicSubscriptionsSettings; + } + + /** Returns the object with the settings used for calls to listTopicSnapshots. */ + public PagedCallSettings< + ListTopicSnapshotsRequest, ListTopicSnapshotsResponse, ListTopicSnapshotsPagedResponse> + listTopicSnapshotsSettings() { + return listTopicSnapshotsSettings; + } + + /** Returns the object with the settings used for calls to deleteTopic. */ + public UnaryCallSettings deleteTopicSettings() { + return deleteTopicSettings; + } + + /** Returns the object with the settings used for calls to detachSubscription. */ + public UnaryCallSettings + detachSubscriptionSettings() { + return detachSubscriptionSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public PublisherStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcPublisherStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "pubsub.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "pubsub.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected PublisherStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createTopicSettings = settingsBuilder.createTopicSettings().build(); + updateTopicSettings = settingsBuilder.updateTopicSettings().build(); + publishSettings = settingsBuilder.publishSettings().build(); + getTopicSettings = settingsBuilder.getTopicSettings().build(); + listTopicsSettings = settingsBuilder.listTopicsSettings().build(); + listTopicSubscriptionsSettings = settingsBuilder.listTopicSubscriptionsSettings().build(); + listTopicSnapshotsSettings = settingsBuilder.listTopicSnapshotsSettings().build(); + deleteTopicSettings = settingsBuilder.deleteTopicSettings().build(); + detachSubscriptionSettings = settingsBuilder.detachSubscriptionSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + /** Builder for PublisherStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createTopicSettings; private final UnaryCallSettings.Builder updateTopicSettings; private final BatchingCallSettings.Builder publishSettings; @@ -558,13 +562,12 @@ public static class Builder extends StubSettings.Builder listTopicSnapshotsSettings; private final UnaryCallSettings.Builder deleteTopicSettings; + private final UnaryCallSettings.Builder + detachSubscriptionSettings; private final UnaryCallSettings.Builder setIamPolicySettings; private final UnaryCallSettings.Builder getIamPolicySettings; private final UnaryCallSettings.Builder testIamPermissionsSettings; - private final UnaryCallSettings.Builder - detachSubscriptionSettings; - private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -572,16 +575,10 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_1_codes", + "retry_policy_0_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_3_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); definitions.put( - "retry_policy_2_codes", + "retry_policy_1_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.ABORTED, @@ -591,6 +588,11 @@ public static class Builder extends StubSettings.BuildernewArrayList( + StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -609,7 +611,7 @@ public static class Builder extends StubSettings.Builder>of( createTopicSettings, @@ -681,34 +670,68 @@ protected Builder(ClientContext clientContext) { listTopicSubscriptionsSettings, listTopicSnapshotsSettings, deleteTopicSettings, + detachSubscriptionSettings, setIamPolicySettings, getIamPolicySettings, - testIamPermissionsSettings, - detachSubscriptionSettings); - + testIamPermissionsSettings); initDefaults(this); } + protected Builder(PublisherStubSettings settings) { + super(settings); + + createTopicSettings = settings.createTopicSettings.toBuilder(); + updateTopicSettings = settings.updateTopicSettings.toBuilder(); + publishSettings = settings.publishSettings.toBuilder(); + getTopicSettings = settings.getTopicSettings.toBuilder(); + listTopicsSettings = settings.listTopicsSettings.toBuilder(); + listTopicSubscriptionsSettings = settings.listTopicSubscriptionsSettings.toBuilder(); + listTopicSnapshotsSettings = settings.listTopicSnapshotsSettings.toBuilder(); + deleteTopicSettings = settings.deleteTopicSettings.toBuilder(); + detachSubscriptionSettings = settings.detachSubscriptionSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createTopicSettings, + updateTopicSettings, + publishSettings, + getTopicSettings, + listTopicsSettings, + listTopicSubscriptionsSettings, + listTopicSnapshotsSettings, + deleteTopicSettings, + detachSubscriptionSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder .createTopicSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateTopicSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .publishSettings() @@ -716,105 +739,73 @@ private static Builder initDefaults(Builder builder) { BatchingSettings.newBuilder() .setElementCountThreshold(100L) .setRequestByteThreshold(1048576L) - .setDelayThreshold(Duration.ofMillis(10)) + .setDelayThreshold(Duration.ofMillis(10L)) .setFlowControlSettings( FlowControlSettings.newBuilder() - .setLimitExceededBehavior(LimitExceededBehavior.Ignore) + .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Ignore) .build()) .build()); + builder .publishSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); builder .getTopicSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); builder .listTopicsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); builder .listTopicSubscriptionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); builder .listTopicSnapshotsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); builder .deleteTopicSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .detachSubscriptionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); builder .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .detachSubscriptionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); return builder; } - protected Builder(PublisherStubSettings settings) { - super(settings); - - createTopicSettings = settings.createTopicSettings.toBuilder(); - updateTopicSettings = settings.updateTopicSettings.toBuilder(); - publishSettings = settings.publishSettings.toBuilder(); - getTopicSettings = settings.getTopicSettings.toBuilder(); - listTopicsSettings = settings.listTopicsSettings.toBuilder(); - listTopicSubscriptionsSettings = settings.listTopicSubscriptionsSettings.toBuilder(); - listTopicSnapshotsSettings = settings.listTopicSnapshotsSettings.toBuilder(); - deleteTopicSettings = settings.deleteTopicSettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - detachSubscriptionSettings = settings.detachSubscriptionSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createTopicSettings, - updateTopicSettings, - publishSettings, - getTopicSettings, - listTopicsSettings, - listTopicSubscriptionsSettings, - listTopicSnapshotsSettings, - deleteTopicSettings, - setIamPolicySettings, - getIamPolicySettings, - testIamPermissionsSettings, - detachSubscriptionSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' /** * Applies the given settings updater function to all of the unary API methods in this service. * *

    Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } @@ -870,6 +861,12 @@ public UnaryCallSettings.Builder deleteTopicSettings( return deleteTopicSettings; } + /** Returns the builder for the settings used for calls to detachSubscription. */ + public UnaryCallSettings.Builder + detachSubscriptionSettings() { + return detachSubscriptionSettings; + } + /** Returns the builder for the settings used for calls to setIamPolicy. */ public UnaryCallSettings.Builder setIamPolicySettings() { return setIamPolicySettings; @@ -886,12 +883,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the builder for the settings used for calls to detachSubscription. */ - public UnaryCallSettings.Builder - detachSubscriptionSettings() { - return detachSubscriptionSettings; - } - @Override public PublisherStubSettings build() throws IOException { return new PublisherStubSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java index d153da5c1141..b194653b3c60 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,13 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; @@ -33,14 +38,13 @@ import com.google.pubsub.v1.ValidateSchemaResponse; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Pub/Sub API. + * Base stub class for the SchemaService service API. * *

    This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public abstract class SchemaServiceStub implements BackgroundResource { public UnaryCallable createSchemaCallable() { @@ -71,6 +75,19 @@ public UnaryCallable validateMe throw new UnsupportedOperationException("Not implemented: validateMessageCallable()"); } + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index c78c64fc2b14..00489c3f749a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; @@ -43,6 +44,11 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; @@ -57,9 +63,8 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; -import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link SchemaServiceStub}. * @@ -76,21 +81,22 @@ * *

    For example, to set the total timeout of createSchema to 30 seconds: * - *

    - * 
    + * 
    {@code
      * SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
      *     SchemaServiceStubSettings.newBuilder();
      * schemaServiceSettingsBuilder
      *     .createSchemaSettings()
      *     .setRetrySettings(
    - *         schemaServiceSettingsBuilder.createSchemaSettings().getRetrySettings().toBuilder()
    + *         schemaServiceSettingsBuilder
    + *             .createSchemaSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
    - * 
    - * 
    + * }
    */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class SchemaServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = @@ -108,6 +114,63 @@ public class SchemaServiceStubSettings extends StubSettings validateMessageSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor + LIST_SCHEMAS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSchemasRequest injectToken(ListSchemasRequest payload, String token) { + return ListSchemasRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSchemasRequest injectPageSize(ListSchemasRequest payload, int pageSize) { + return ListSchemasRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSchemasRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSchemasResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSchemasResponse payload) { + return payload.getSchemasList() == null + ? ImmutableList.of() + : payload.getSchemasList(); + } + }; + + private static final PagedListResponseFactory< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> + LIST_SCHEMAS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSchemasRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SCHEMAS_PAGE_STR_DESC, request, context); + return ListSchemasPagedResponse.createAsync(pageContext, futureResponse); + } + }; /** Returns the object with the settings used for calls to createSchema. */ public UnaryCallSettings createSchemaSettings() { @@ -141,16 +204,32 @@ public UnaryCallSettings validate return validateMessageSettings; } + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public SchemaServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSchemaServiceStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -163,6 +242,11 @@ public static String getDefaultEndpoint() { return "pubsub.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "pubsub.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -216,65 +300,14 @@ protected SchemaServiceStubSettings(Builder settingsBuilder) throws IOException deleteSchemaSettings = settingsBuilder.deleteSchemaSettings().build(); validateSchemaSettings = settingsBuilder.validateSchemaSettings().build(); validateMessageSettings = settingsBuilder.validateMessageSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); } - private static final PagedListDescriptor - LIST_SCHEMAS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListSchemasRequest injectToken(ListSchemasRequest payload, String token) { - return ListSchemasRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListSchemasRequest injectPageSize(ListSchemasRequest payload, int pageSize) { - return ListSchemasRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListSchemasRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListSchemasResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListSchemasResponse payload) { - return payload.getSchemasList() != null - ? payload.getSchemasList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> - LIST_SCHEMAS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListSchemasRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_SCHEMAS_PAGE_STR_DESC, request, context); - return ListSchemasPagedResponse.createAsync(pageContext, futureResponse); - } - }; - /** Builder for SchemaServiceStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createSchemaSettings; private final UnaryCallSettings.Builder getSchemaSettings; private final PagedCallSettings.Builder< @@ -285,50 +318,17 @@ public static class Builder extends StubSettings.Builder validateMessageSettings; - + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; static { ImmutableMap.Builder> definitions = ImmutableMap.builder(); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_4_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.RESOURCE_EXHAUSTED, - StatusCode.Code.ABORTED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_6_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_3_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_2_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.ABORTED, - StatusCode.Code.CANCELLED, - StatusCode.Code.INTERNAL, - StatusCode.Code.RESOURCE_EXHAUSTED, - StatusCode.Code.UNKNOWN, - StatusCode.Code.UNAVAILABLE, - StatusCode.Code.DEADLINE_EXCEEDED))); - definitions.put( - "retry_policy_5_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -337,95 +337,27 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_3_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_6_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_2_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(900000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(900000L)) - .setTotalTimeout(Duration.ofMillis(900000L)) - .build(); - definitions.put("retry_policy_4_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_5_params", settings); settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } protected Builder() { - this((ClientContext) null); + this(((ClientContext) null)); } protected Builder(ClientContext clientContext) { super(clientContext); createSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listSchemasSettings = PagedCallSettings.newBuilder(LIST_SCHEMAS_PAGE_STR_FACT); - deleteSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - validateSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - validateMessageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -434,22 +366,53 @@ protected Builder(ClientContext clientContext) { listSchemasSettings, deleteSchemaSettings, validateSchemaSettings, - validateMessageSettings); - + validateMessageSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); initDefaults(this); } + protected Builder(SchemaServiceStubSettings settings) { + super(settings); + + createSchemaSettings = settings.createSchemaSettings.toBuilder(); + getSchemaSettings = settings.getSchemaSettings.toBuilder(); + listSchemasSettings = settings.listSchemasSettings.toBuilder(); + deleteSchemaSettings = settings.deleteSchemaSettings.toBuilder(); + validateSchemaSettings = settings.validateSchemaSettings.toBuilder(); + validateMessageSettings = settings.validateMessageSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createSchemaSettings, + getSchemaSettings, + listSchemasSettings, + deleteSchemaSettings, + validateSchemaSettings, + validateMessageSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder .createSchemaSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -480,37 +443,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - return builder; - } + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - protected Builder(SchemaServiceStubSettings settings) { - super(settings); + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - createSchemaSettings = settings.createSchemaSettings.toBuilder(); - getSchemaSettings = settings.getSchemaSettings.toBuilder(); - listSchemasSettings = settings.listSchemasSettings.toBuilder(); - deleteSchemaSettings = settings.deleteSchemaSettings.toBuilder(); - validateSchemaSettings = settings.validateSchemaSettings.toBuilder(); - validateMessageSettings = settings.validateMessageSettings.toBuilder(); + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - unaryMethodSettingsBuilders = - ImmutableList.>of( - createSchemaSettings, - getSchemaSettings, - listSchemasSettings, - deleteSchemaSettings, - validateSchemaSettings, - validateMessageSettings); + return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception' /** * Applies the given settings updater function to all of the unary API methods in this service. * *

    Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } @@ -553,6 +510,22 @@ public UnaryCallSettings.Builder deleteSchemaSetting return validateMessageSettings; } + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + @Override public SchemaServiceStubSettings build() throws IOException { return new SchemaServiceStubSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index da19f2a6f973..7233e2008183 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -52,14 +52,13 @@ import com.google.pubsub.v1.UpdateSubscriptionRequest; import javax.annotation.Generated; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Base stub class for Cloud Pub/Sub API. + * Base stub class for the Subscriber service API. * *

    This class is for advanced usage and reflects the underlying API directly. */ -@Generated("by gapic-generator") -@BetaApi("A restructuring of stub classes is planned, so this may break in the future") +@Generated("by gapic-generator-java") public abstract class SubscriberStub implements BackgroundResource { public UnaryCallable createSubscriptionCallable() { @@ -88,10 +87,6 @@ public UnaryCallable deleteSubscriptionCallabl throw new UnsupportedOperationException("Not implemented: deleteSubscriptionCallable()"); } - public UnaryCallable getSnapshotCallable() { - throw new UnsupportedOperationException("Not implemented: getSnapshotCallable()"); - } - public UnaryCallable modifyAckDeadlineCallable() { throw new UnsupportedOperationException("Not implemented: modifyAckDeadlineCallable()"); } @@ -113,6 +108,10 @@ public UnaryCallable modifyPushConfigCallable() throw new UnsupportedOperationException("Not implemented: modifyPushConfigCallable()"); } + public UnaryCallable getSnapshotCallable() { + throw new UnsupportedOperationException("Not implemented: getSnapshotCallable()"); + } + public UnaryCallable listSnapshotsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listSnapshotsPagedCallable()"); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index d061959f1632..5787cd8a5d82 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1.stub; import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; @@ -78,7 +79,7 @@ import javax.annotation.Generated; import org.threeten.bp.Duration; -// AUTO-GENERATED DOCUMENTATION AND CLASS +// AUTO-GENERATED DOCUMENTATION AND CLASS. /** * Settings class to configure an instance of {@link SubscriberStub}. * @@ -95,21 +96,22 @@ * *

    For example, to set the total timeout of createSubscription to 30 seconds: * - *

    - * 
    + * 
    {@code
      * SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder =
      *     SubscriberStubSettings.newBuilder();
      * subscriptionAdminSettingsBuilder
      *     .createSubscriptionSettings()
      *     .setRetrySettings(
    - *         subscriptionAdminSettingsBuilder.createSubscriptionSettings().getRetrySettings().toBuilder()
    + *         subscriptionAdminSettingsBuilder
    + *             .createSubscriptionSettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
    - * 
    - * 
    + * }
    */ -@Generated("by gapic-generator") +@Generated("by gapic-generator-java") public class SubscriberStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = @@ -126,13 +128,13 @@ public class SubscriberStubSettings extends StubSettings ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> listSubscriptionsSettings; private final UnaryCallSettings deleteSubscriptionSettings; - private final UnaryCallSettings getSnapshotSettings; private final UnaryCallSettings modifyAckDeadlineSettings; private final UnaryCallSettings acknowledgeSettings; private final UnaryCallSettings pullSettings; private final StreamingCallSettings streamingPullSettings; private final UnaryCallSettings modifyPushConfigSettings; + private final UnaryCallSettings getSnapshotSettings; private final PagedCallSettings< ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> listSnapshotsSettings; @@ -145,6 +147,120 @@ public class SubscriberStubSettings extends StubSettings private final UnaryCallSettings testIamPermissionsSettings; + private static final PagedListDescriptor< + ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription> + LIST_SUBSCRIPTIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSubscriptionsRequest injectToken( + ListSubscriptionsRequest payload, String token) { + return ListSubscriptionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSubscriptionsRequest injectPageSize( + ListSubscriptionsRequest payload, int pageSize) { + return ListSubscriptionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSubscriptionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSubscriptionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSubscriptionsResponse payload) { + return payload.getSubscriptionsList() == null + ? ImmutableList.of() + : payload.getSubscriptionsList(); + } + }; + + private static final PagedListDescriptor + LIST_SNAPSHOTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSnapshotsRequest injectToken(ListSnapshotsRequest payload, String token) { + return ListSnapshotsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSnapshotsRequest injectPageSize(ListSnapshotsRequest payload, int pageSize) { + return ListSnapshotsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSnapshotsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSnapshotsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSnapshotsResponse payload) { + return payload.getSnapshotsList() == null + ? ImmutableList.of() + : payload.getSnapshotsList(); + } + }; + + private static final PagedListResponseFactory< + ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> + LIST_SUBSCRIPTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSubscriptionsRequest, + ListSubscriptionsResponse, + ListSubscriptionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSubscriptionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SUBSCRIPTIONS_PAGE_STR_DESC, request, context); + return ListSubscriptionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> + LIST_SNAPSHOTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSnapshotsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SNAPSHOTS_PAGE_STR_DESC, request, context); + return ListSnapshotsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createSubscription. */ public UnaryCallSettings createSubscriptionSettings() { return createSubscriptionSettings; @@ -172,11 +288,6 @@ public UnaryCallSettings deleteSubscriptionSet return deleteSubscriptionSettings; } - /** Returns the object with the settings used for calls to getSnapshot. */ - public UnaryCallSettings getSnapshotSettings() { - return getSnapshotSettings; - } - /** Returns the object with the settings used for calls to modifyAckDeadline. */ public UnaryCallSettings modifyAckDeadlineSettings() { return modifyAckDeadlineSettings; @@ -203,6 +314,11 @@ public UnaryCallSettings modifyPushConfigSetting return modifyPushConfigSettings; } + /** Returns the object with the settings used for calls to getSnapshot. */ + public UnaryCallSettings getSnapshotSettings() { + return getSnapshotSettings; + } + /** Returns the object with the settings used for calls to listSnapshots. */ public PagedCallSettings listSnapshotsSettings() { @@ -251,10 +367,10 @@ public SubscriberStub createStub() throws IOException { .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSubscriberStub.create(this); - } else { - throw new UnsupportedOperationException( - "Transport not supported: " + getTransportChannelProvider().getTransportName()); } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -267,6 +383,11 @@ public static String getDefaultEndpoint() { return "pubsub.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "pubsub.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -318,12 +439,12 @@ protected SubscriberStubSettings(Builder settingsBuilder) throws IOException { updateSubscriptionSettings = settingsBuilder.updateSubscriptionSettings().build(); listSubscriptionsSettings = settingsBuilder.listSubscriptionsSettings().build(); deleteSubscriptionSettings = settingsBuilder.deleteSubscriptionSettings().build(); - getSnapshotSettings = settingsBuilder.getSnapshotSettings().build(); modifyAckDeadlineSettings = settingsBuilder.modifyAckDeadlineSettings().build(); acknowledgeSettings = settingsBuilder.acknowledgeSettings().build(); pullSettings = settingsBuilder.pullSettings().build(); streamingPullSettings = settingsBuilder.streamingPullSettings().build(); modifyPushConfigSettings = settingsBuilder.modifyPushConfigSettings().build(); + getSnapshotSettings = settingsBuilder.getSnapshotSettings().build(); listSnapshotsSettings = settingsBuilder.listSnapshotsSettings().build(); createSnapshotSettings = settingsBuilder.createSnapshotSettings().build(); updateSnapshotSettings = settingsBuilder.updateSnapshotSettings().build(); @@ -334,124 +455,9 @@ protected SubscriberStubSettings(Builder settingsBuilder) throws IOException { testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); } - private static final PagedListDescriptor< - ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription> - LIST_SUBSCRIPTIONS_PAGE_STR_DESC = - new PagedListDescriptor< - ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListSubscriptionsRequest injectToken( - ListSubscriptionsRequest payload, String token) { - return ListSubscriptionsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListSubscriptionsRequest injectPageSize( - ListSubscriptionsRequest payload, int pageSize) { - return ListSubscriptionsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListSubscriptionsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListSubscriptionsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListSubscriptionsResponse payload) { - return payload.getSubscriptionsList() != null - ? payload.getSubscriptionsList() - : ImmutableList.of(); - } - }; - - private static final PagedListDescriptor - LIST_SNAPSHOTS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListSnapshotsRequest injectToken(ListSnapshotsRequest payload, String token) { - return ListSnapshotsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListSnapshotsRequest injectPageSize(ListSnapshotsRequest payload, int pageSize) { - return ListSnapshotsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListSnapshotsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListSnapshotsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListSnapshotsResponse payload) { - return payload.getSnapshotsList() != null - ? payload.getSnapshotsList() - : ImmutableList.of(); - } - }; - - private static final PagedListResponseFactory< - ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> - LIST_SUBSCRIPTIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListSubscriptionsRequest, - ListSubscriptionsResponse, - ListSubscriptionsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListSubscriptionsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_SUBSCRIPTIONS_PAGE_STR_DESC, request, context); - return ListSubscriptionsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> - LIST_SNAPSHOTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListSnapshotsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_SNAPSHOTS_PAGE_STR_DESC, request, context); - return ListSnapshotsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - /** Builder for SubscriberStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createSubscriptionSettings; private final UnaryCallSettings.Builder getSubscriptionSettings; @@ -462,7 +468,6 @@ public static class Builder extends StubSettings.Builder deleteSubscriptionSettings; - private final UnaryCallSettings.Builder getSnapshotSettings; private final UnaryCallSettings.Builder modifyAckDeadlineSettings; private final UnaryCallSettings.Builder acknowledgeSettings; @@ -471,6 +476,7 @@ public static class Builder extends StubSettings.Builder modifyPushConfigSettings; + private final UnaryCallSettings.Builder getSnapshotSettings; private final PagedCallSettings.Builder< ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> listSnapshotsSettings; @@ -482,7 +488,6 @@ public static class Builder extends StubSettings.Builder getIamPolicySettings; private final UnaryCallSettings.Builder testIamPermissionsSettings; - private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -493,20 +498,19 @@ public static class Builder extends StubSettings.BuildernewArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.RESOURCE_EXHAUSTED, - StatusCode.Code.ABORTED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); + StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); definitions.put( - "retry_policy_6_codes", + "retry_policy_5_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); definitions.put( - "retry_policy_5_codes", + "retry_policy_3_codes", ImmutableSet.copyOf( Lists.newArrayList( - StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); + StatusCode.Code.DEADLINE_EXCEEDED, + StatusCode.Code.RESOURCE_EXHAUSTED, + StatusCode.Code.ABORTED, + StatusCode.Code.INTERNAL, + StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -525,77 +529,57 @@ public static class Builder extends StubSettings.Builder>of( + createSubscriptionSettings, + getSubscriptionSettings, + updateSubscriptionSettings, + listSubscriptionsSettings, + deleteSubscriptionSettings, + modifyAckDeadlineSettings, + acknowledgeSettings, + pullSettings, + modifyPushConfigSettings, + getSnapshotSettings, + listSnapshotsSettings, + createSnapshotSettings, + updateSnapshotSettings, + deleteSnapshotSettings, + seekSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + private static Builder createDefault() { - Builder builder = new Builder((ClientContext) null); + Builder builder = new Builder(((ClientContext) null)); + builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + return initDefaults(builder); } private static Builder initDefaults(Builder builder) { - builder .createSubscriptionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); builder .getSubscriptionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); builder .updateSubscriptionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); - - builder - .listSubscriptionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); builder - .deleteSubscriptionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + .listSubscriptionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); builder - .getSnapshotSettings() + .deleteSubscriptionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); builder .modifyAckDeadlineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); builder .acknowledgeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); builder .pullSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); + + builder + .modifyPushConfigSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); builder - .modifyPushConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + .getSnapshotSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); builder .listSnapshotsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); builder .createSnapshotSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); builder .updateSnapshotSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); builder .deleteSnapshotSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); builder .seekSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); builder .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); builder .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); builder .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); return builder; } - protected Builder(SubscriberStubSettings settings) { - super(settings); - - createSubscriptionSettings = settings.createSubscriptionSettings.toBuilder(); - getSubscriptionSettings = settings.getSubscriptionSettings.toBuilder(); - updateSubscriptionSettings = settings.updateSubscriptionSettings.toBuilder(); - listSubscriptionsSettings = settings.listSubscriptionsSettings.toBuilder(); - deleteSubscriptionSettings = settings.deleteSubscriptionSettings.toBuilder(); - getSnapshotSettings = settings.getSnapshotSettings.toBuilder(); - modifyAckDeadlineSettings = settings.modifyAckDeadlineSettings.toBuilder(); - acknowledgeSettings = settings.acknowledgeSettings.toBuilder(); - pullSettings = settings.pullSettings.toBuilder(); - streamingPullSettings = settings.streamingPullSettings.toBuilder(); - modifyPushConfigSettings = settings.modifyPushConfigSettings.toBuilder(); - listSnapshotsSettings = settings.listSnapshotsSettings.toBuilder(); - createSnapshotSettings = settings.createSnapshotSettings.toBuilder(); - updateSnapshotSettings = settings.updateSnapshotSettings.toBuilder(); - deleteSnapshotSettings = settings.deleteSnapshotSettings.toBuilder(); - seekSettings = settings.seekSettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createSubscriptionSettings, - getSubscriptionSettings, - updateSubscriptionSettings, - listSubscriptionsSettings, - deleteSubscriptionSettings, - getSnapshotSettings, - modifyAckDeadlineSettings, - acknowledgeSettings, - pullSettings, - modifyPushConfigSettings, - listSnapshotsSettings, - createSnapshotSettings, - updateSnapshotSettings, - deleteSnapshotSettings, - seekSettings, - setIamPolicySettings, - getIamPolicySettings, - testIamPermissionsSettings); - } - - // NEXT_MAJOR_VER: remove 'throws Exception' /** * Applies the given settings updater function to all of the unary API methods in this service. * *

    Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } @@ -817,11 +802,6 @@ public UnaryCallSettings.Builder createSubscriptionS return deleteSubscriptionSettings; } - /** Returns the builder for the settings used for calls to getSnapshot. */ - public UnaryCallSettings.Builder getSnapshotSettings() { - return getSnapshotSettings; - } - /** Returns the builder for the settings used for calls to modifyAckDeadline. */ public UnaryCallSettings.Builder modifyAckDeadlineSettings() { return modifyAckDeadlineSettings; @@ -848,6 +828,11 @@ public UnaryCallSettings.Builder modifyPushConfi return modifyPushConfigSettings; } + /** Returns the builder for the settings used for calls to getSnapshot. */ + public UnaryCallSettings.Builder getSnapshotSettings() { + return getSnapshotSettings; + } + /** Returns the builder for the settings used for calls to listSnapshots. */ public PagedCallSettings.Builder< ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java index 09850727dd74..e7583f2d955f 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockIAMPolicy implements MockGrpcService { private final MockIAMPolicyImpl serviceImpl; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index 4c32d64c9dcb..e4528ae534c8 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.BetaApi; @@ -28,9 +29,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockIAMPolicyImpl extends IAMPolicyImplBase { private List requests; private Queue responses; @@ -62,46 +64,64 @@ public void reset() { } @Override - public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof Policy) { + public void testIamPermissions( + TestIamPermissionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestIamPermissionsResponse) { requests.add(request); - responseObserver.onNext((Policy) response); + responseObserver.onNext(((TestIamPermissionsResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); } } @Override - public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); if (response instanceof Policy) { requests.add(request); - responseObserver.onNext((Policy) response); + responseObserver.onNext(((Policy) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); } } @Override - public void testIamPermissions( - TestIamPermissionsRequest request, - StreamObserver responseObserver) { - Object response = responses.remove(); - if (response instanceof TestIamPermissionsResponse) { + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { requests.add(request); - responseObserver.onNext((TestIamPermissionsResponse) response); + responseObserver.onNext(((Policy) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); } } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java index 21f3fb52779d..78513630a5bb 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockPublisher implements MockGrpcService { private final MockPublisherImpl serviceImpl; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 420a757ad53e..920917858496 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.BetaApi; @@ -38,9 +39,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockPublisherImpl extends PublisherImplBase { private List requests; private Queue responses; @@ -73,72 +75,102 @@ public void reset() { @Override public void createTopic(Topic request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Topic) { requests.add(request); - responseObserver.onNext((Topic) response); + responseObserver.onNext(((Topic) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Topic.class.getName(), + Exception.class.getName()))); } } @Override public void updateTopic(UpdateTopicRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Topic) { requests.add(request); - responseObserver.onNext((Topic) response); + responseObserver.onNext(((Topic) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Topic.class.getName(), + Exception.class.getName()))); } } @Override public void publish(PublishRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof PublishResponse) { requests.add(request); - responseObserver.onNext((PublishResponse) response); + responseObserver.onNext(((PublishResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Publish, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PublishResponse.class.getName(), + Exception.class.getName()))); } } @Override public void getTopic(GetTopicRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Topic) { requests.add(request); - responseObserver.onNext((Topic) response); + responseObserver.onNext(((Topic) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Topic.class.getName(), + Exception.class.getName()))); } } @Override public void listTopics( ListTopicsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListTopicsResponse) { requests.add(request); - responseObserver.onNext((ListTopicsResponse) response); + responseObserver.onNext(((ListTopicsResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTopics, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTopicsResponse.class.getName(), + Exception.class.getName()))); } } @@ -146,15 +178,21 @@ public void listTopics( public void listTopicSubscriptions( ListTopicSubscriptionsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListTopicSubscriptionsResponse) { requests.add(request); - responseObserver.onNext((ListTopicSubscriptionsResponse) response); + responseObserver.onNext(((ListTopicSubscriptionsResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTopicSubscriptions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTopicSubscriptionsResponse.class.getName(), + Exception.class.getName()))); } } @@ -162,29 +200,41 @@ public void listTopicSubscriptions( public void listTopicSnapshots( ListTopicSnapshotsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListTopicSnapshotsResponse) { requests.add(request); - responseObserver.onNext((ListTopicSnapshotsResponse) response); + responseObserver.onNext(((ListTopicSnapshotsResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTopicSnapshots, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTopicSnapshotsResponse.class.getName(), + Exception.class.getName()))); } } @Override public void deleteTopic(DeleteTopicRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTopic, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @@ -192,15 +242,21 @@ public void deleteTopic(DeleteTopicRequest request, StreamObserver respon public void detachSubscription( DetachSubscriptionRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof DetachSubscriptionResponse) { requests.add(request); - responseObserver.onNext((DetachSubscriptionResponse) response); + responseObserver.onNext(((DetachSubscriptionResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DetachSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DetachSubscriptionResponse.class.getName(), + Exception.class.getName()))); } } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java index e469a29f840c..a7fc32c58539 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockSchemaService implements MockGrpcService { private final MockSchemaServiceImpl serviceImpl; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java index be26a2894d4a..5b908db486ca 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.BetaApi; @@ -34,9 +35,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockSchemaServiceImpl extends SchemaServiceImplBase { private List requests; private Queue responses; @@ -69,88 +71,124 @@ public void reset() { @Override public void createSchema(CreateSchemaRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Schema) { requests.add(request); - responseObserver.onNext((Schema) response); + responseObserver.onNext(((Schema) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Schema.class.getName(), + Exception.class.getName()))); } } @Override public void getSchema(GetSchemaRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Schema) { requests.add(request); - responseObserver.onNext((Schema) response); + responseObserver.onNext(((Schema) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Schema.class.getName(), + Exception.class.getName()))); } } @Override public void listSchemas( ListSchemasRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListSchemasResponse) { requests.add(request); - responseObserver.onNext((ListSchemasResponse) response); + responseObserver.onNext(((ListSchemasResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSchemas, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSchemasResponse.class.getName(), + Exception.class.getName()))); } } @Override public void deleteSchema(DeleteSchemaRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @Override public void validateSchema( ValidateSchemaRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ValidateSchemaResponse) { requests.add(request); - responseObserver.onNext((ValidateSchemaResponse) response); + responseObserver.onNext(((ValidateSchemaResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ValidateSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ValidateSchemaResponse.class.getName(), + Exception.class.getName()))); } } @Override public void validateMessage( ValidateMessageRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ValidateMessageResponse) { requests.add(request); - responseObserver.onNext((ValidateMessageResponse) response); + responseObserver.onNext(((ValidateMessageResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ValidateMessage, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ValidateMessageResponse.class.getName(), + Exception.class.getName()))); } } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java index 2f630508d537..8d3f29fe0920 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.BetaApi; @@ -20,9 +21,10 @@ import com.google.protobuf.AbstractMessage; import io.grpc.ServerServiceDefinition; import java.util.List; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockSubscriber implements MockGrpcService { private final MockSubscriberImpl serviceImpl; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index 3d3c2013d287..a181138d93e7 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import com.google.api.core.BetaApi; @@ -46,9 +47,10 @@ import java.util.LinkedList; import java.util.List; import java.util.Queue; +import javax.annotation.Generated; -@javax.annotation.Generated("by GAPIC") @BetaApi +@Generated("by gapic-generator-java") public class MockSubscriberImpl extends SubscriberImplBase { private List requests; private Queue responses; @@ -82,45 +84,63 @@ public void reset() { @Override public void createSubscription( Subscription request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Subscription) { requests.add(request); - responseObserver.onNext((Subscription) response); + responseObserver.onNext(((Subscription) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Subscription.class.getName(), + Exception.class.getName()))); } } @Override public void getSubscription( GetSubscriptionRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Subscription) { requests.add(request); - responseObserver.onNext((Subscription) response); + responseObserver.onNext(((Subscription) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Subscription.class.getName(), + Exception.class.getName()))); } } @Override public void updateSubscription( UpdateSubscriptionRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Subscription) { requests.add(request); - responseObserver.onNext((Subscription) response); + responseObserver.onNext(((Subscription) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Subscription.class.getName(), + Exception.class.getName()))); } } @@ -128,73 +148,103 @@ public void updateSubscription( public void listSubscriptions( ListSubscriptionsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListSubscriptionsResponse) { requests.add(request); - responseObserver.onNext((ListSubscriptionsResponse) response); + responseObserver.onNext(((ListSubscriptionsResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSubscriptions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSubscriptionsResponse.class.getName(), + Exception.class.getName()))); } } @Override public void deleteSubscription( DeleteSubscriptionRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSubscription, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @Override public void modifyAckDeadline( ModifyAckDeadlineRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ModifyAckDeadline, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @Override public void acknowledge(AcknowledgeRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Acknowledge, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @Override public void pull(PullRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof PullResponse) { requests.add(request); - responseObserver.onNext((PullResponse) response); + responseObserver.onNext(((PullResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Pull, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PullResponse.class.getName(), + Exception.class.getName()))); } } @@ -208,11 +258,17 @@ public void onNext(StreamingPullRequest value) { requests.add(value); final Object response = responses.remove(); if (response instanceof StreamingPullResponse) { - responseObserver.onNext((StreamingPullResponse) response); + responseObserver.onNext(((StreamingPullResponse) response)); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StreamingPull, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StreamingPullResponse.class.getName(), + Exception.class.getName()))); } } @@ -232,103 +288,145 @@ public void onCompleted() { @Override public void modifyPushConfig( ModifyPushConfigRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ModifyPushConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @Override public void getSnapshot(GetSnapshotRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Snapshot) { requests.add(request); - responseObserver.onNext((Snapshot) response); + responseObserver.onNext(((Snapshot) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSnapshot, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Snapshot.class.getName(), + Exception.class.getName()))); } } @Override public void listSnapshots( ListSnapshotsRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof ListSnapshotsResponse) { requests.add(request); - responseObserver.onNext((ListSnapshotsResponse) response); + responseObserver.onNext(((ListSnapshotsResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSnapshots, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSnapshotsResponse.class.getName(), + Exception.class.getName()))); } } @Override public void createSnapshot( CreateSnapshotRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Snapshot) { requests.add(request); - responseObserver.onNext((Snapshot) response); + responseObserver.onNext(((Snapshot) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSnapshot, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Snapshot.class.getName(), + Exception.class.getName()))); } } @Override public void updateSnapshot( UpdateSnapshotRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Snapshot) { requests.add(request); - responseObserver.onNext((Snapshot) response); + responseObserver.onNext(((Snapshot) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSnapshot, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Snapshot.class.getName(), + Exception.class.getName()))); } } @Override public void deleteSnapshot( DeleteSnapshotRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof Empty) { requests.add(request); - responseObserver.onNext((Empty) response); + responseObserver.onNext(((Empty) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSnapshot, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @Override public void seek(SeekRequest request, StreamObserver responseObserver) { - Object response = responses.remove(); + Object response = responses.poll(); if (response instanceof SeekResponse) { requests.add(request); - responseObserver.onNext((SeekResponse) response); + responseObserver.onNext(((SeekResponse) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { - responseObserver.onError((Exception) response); + responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method Seek, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SeekResponse.class.getName(), + Exception.class.getName()))); } } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java index 286a1362be8b..ace5e7d42b49 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; @@ -25,10 +26,19 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.common.collect.Lists; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.Encoding; import com.google.pubsub.v1.GetSchemaRequest; import com.google.pubsub.v1.ListSchemasRequest; import com.google.pubsub.v1.ListSchemasResponse; @@ -39,12 +49,13 @@ import com.google.pubsub.v1.ValidateMessageResponse; import com.google.pubsub.v1.ValidateSchemaRequest; import com.google.pubsub.v1.ValidateSchemaResponse; -import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.UUID; +import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -52,39 +63,34 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class SchemaServiceClientTest { - private static MockSchemaService mockSchemaService; - private static MockPublisher mockPublisher; private static MockIAMPolicy mockIAMPolicy; - private static MockSubscriber mockSubscriber; - private static MockServiceHelper serviceHelper; - private SchemaServiceClient client; + private static MockSchemaService mockSchemaService; + private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; + private SchemaServiceClient client; @BeforeClass public static void startStaticServer() { mockSchemaService = new MockSchemaService(); - mockPublisher = new MockPublisher(); mockIAMPolicy = new MockIAMPolicy(); - mockSubscriber = new MockSubscriber(); - serviceHelper = + mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList( - mockSchemaService, mockPublisher, mockIAMPolicy, mockSubscriber)); - serviceHelper.start(); + Arrays.asList(mockSchemaService, mockIAMPolicy)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); SchemaServiceSettings settings = SchemaServiceSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -99,26 +105,26 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") - public void createSchemaTest() { - SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); - String definition = "definition-1014418093"; + public void createSchemaTest() throws Exception { Schema expectedResponse = - Schema.newBuilder().setName(name.toString()).setDefinition(definition).build(); + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .build(); mockSchemaService.addResponse(expectedResponse); ProjectName parent = ProjectName.of("[PROJECT]"); Schema schema = Schema.newBuilder().build(); - String schemaId = "schemaId-153006983"; + String schemaId = "schemaId-697673060"; Schema actualResponse = client.createSchema(parent, schema, schemaId); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSchemaService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateSchemaRequest actualRequest = (CreateSchemaRequest) actualRequests.get(0); + CreateSchemaRequest actualRequest = ((CreateSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertEquals(schema, actualRequest.getSchema()); Assert.assertEquals(schemaId, actualRequest.getSchemaId()); Assert.assertTrue( @@ -128,30 +134,73 @@ public void createSchemaTest() { } @Test - @SuppressWarnings("all") public void createSchemaExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSchemaService.addException(exception); try { ProjectName parent = ProjectName.of("[PROJECT]"); Schema schema = Schema.newBuilder().build(); - String schemaId = "schemaId-153006983"; + String schemaId = "schemaId-697673060"; + client.createSchema(parent, schema, schemaId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .build(); + mockSchemaService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + + Schema actualResponse = client.createSchema(parent, schema, schemaId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSchemaRequest actualRequest = ((CreateSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(schema, actualRequest.getSchema()); + Assert.assertEquals(schemaId, actualRequest.getSchemaId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + try { + String parent = "parent-995424086"; + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; client.createSchema(parent, schema, schemaId); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void getSchemaTest() { - SchemaName name2 = SchemaName.of("[PROJECT]", "[SCHEMA]"); - String definition = "definition-1014418093"; + public void getSchemaTest() throws Exception { Schema expectedResponse = - Schema.newBuilder().setName(name2.toString()).setDefinition(definition).build(); + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .build(); mockSchemaService.addResponse(expectedResponse); SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); @@ -161,9 +210,9 @@ public void getSchemaTest() { List actualRequests = mockSchemaService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSchemaRequest actualRequest = (GetSchemaRequest) actualRequests.get(0); + GetSchemaRequest actualRequest = ((GetSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(name, SchemaName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -171,31 +220,65 @@ public void getSchemaTest() { } @Test - @SuppressWarnings("all") public void getSchemaExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSchemaService.addException(exception); try { SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + client.getSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .build(); + mockSchemaService.addResponse(expectedResponse); + + String name = "name3373707"; + + Schema actualResponse = client.getSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSchemaRequest actualRequest = ((GetSchemaRequest) actualRequests.get(0)); + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + String name = "name3373707"; client.getSchema(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listSchemasTest() { - String nextPageToken = ""; - Schema schemasElement = Schema.newBuilder().build(); - List schemas = Arrays.asList(schemasElement); + public void listSchemasTest() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); ListSchemasResponse expectedResponse = ListSchemasResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllSchemas(schemas) + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) .build(); mockSchemaService.addResponse(expectedResponse); @@ -204,14 +287,15 @@ public void listSchemasTest() { ListSchemasPagedResponse pagedListResponse = client.listSchemas(parent); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); List actualRequests = mockSchemaService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSchemasRequest actualRequest = (ListSchemasRequest) actualRequests.get(0); + ListSchemasRequest actualRequest = ((ListSchemasRequest) actualRequests.get(0)); - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -219,24 +303,65 @@ public void listSchemasTest() { } @Test - @SuppressWarnings("all") public void listSchemasExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSchemaService.addException(exception); try { ProjectName parent = ProjectName.of("[PROJECT]"); + client.listSchemas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSchemasTest2() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemasResponse expectedResponse = + ListSchemasResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockSchemaService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSchemasPagedResponse pagedListResponse = client.listSchemas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSchemasRequest actualRequest = ((ListSchemasRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSchemasExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + try { + String parent = "parent-995424086"; client.listSchemas(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void deleteSchemaTest() { + public void deleteSchemaTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockSchemaService.addResponse(expectedResponse); @@ -246,9 +371,9 @@ public void deleteSchemaTest() { List actualRequests = mockSchemaService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteSchemaRequest actualRequest = (DeleteSchemaRequest) actualRequests.get(0); + DeleteSchemaRequest actualRequest = ((DeleteSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(name, SchemaName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -256,24 +381,55 @@ public void deleteSchemaTest() { } @Test - @SuppressWarnings("all") public void deleteSchemaExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSchemaService.addException(exception); try { SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + client.deleteSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSchemaTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSchemaService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSchema(name); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSchemaRequest actualRequest = ((DeleteSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + try { + String name = "name3373707"; client.deleteSchema(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void validateSchemaTest() { + public void validateSchemaTest() throws Exception { ValidateSchemaResponse expectedResponse = ValidateSchemaResponse.newBuilder().build(); mockSchemaService.addResponse(expectedResponse); @@ -285,9 +441,9 @@ public void validateSchemaTest() { List actualRequests = mockSchemaService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ValidateSchemaRequest actualRequest = (ValidateSchemaRequest) actualRequests.get(0); + ValidateSchemaRequest actualRequest = ((ValidateSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertEquals(schema, actualRequest.getSchema()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -296,40 +452,82 @@ public void validateSchemaTest() { } @Test - @SuppressWarnings("all") public void validateSchemaExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSchemaService.addException(exception); try { ProjectName parent = ProjectName.of("[PROJECT]"); Schema schema = Schema.newBuilder().build(); + client.validateSchema(parent, schema); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void validateSchemaTest2() throws Exception { + ValidateSchemaResponse expectedResponse = ValidateSchemaResponse.newBuilder().build(); + mockSchemaService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Schema schema = Schema.newBuilder().build(); + + ValidateSchemaResponse actualResponse = client.validateSchema(parent, schema); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ValidateSchemaRequest actualRequest = ((ValidateSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(schema, actualRequest.getSchema()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void validateSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + try { + String parent = "parent-995424086"; + Schema schema = Schema.newBuilder().build(); client.validateSchema(parent, schema); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void validateMessageTest() { + public void validateMessageTest() throws Exception { ValidateMessageResponse expectedResponse = ValidateMessageResponse.newBuilder().build(); mockSchemaService.addResponse(expectedResponse); - ProjectName parent = ProjectName.of("[PROJECT]"); ValidateMessageRequest request = - ValidateMessageRequest.newBuilder().setParent(parent.toString()).build(); + ValidateMessageRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setMessage(ByteString.EMPTY) + .setEncoding(Encoding.forNumber(0)) + .build(); ValidateMessageResponse actualResponse = client.validateMessage(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSchemaService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ValidateMessageRequest actualRequest = (ValidateMessageRequest) actualRequests.get(0); + ValidateMessageRequest actualRequest = ((ValidateMessageRequest) actualRequests.get(0)); - Assert.assertEquals(parent, ProjectName.parse(actualRequest.getParent())); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getSchema(), actualRequest.getSchema()); + Assert.assertEquals(request.getMessage(), actualRequest.getMessage()); + Assert.assertEquals(request.getEncoding(), actualRequest.getEncoding()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -337,20 +535,164 @@ public void validateMessageTest() { } @Test - @SuppressWarnings("all") public void validateMessageExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSchemaService.addException(exception); try { - ProjectName parent = ProjectName.of("[PROJECT]"); ValidateMessageRequest request = - ValidateMessageRequest.newBuilder().setParent(parent.toString()).build(); - + ValidateMessageRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setMessage(ByteString.EMPTY) + .setEncoding(Encoding.forNumber(0)) + .build(); client.validateMessage(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. } } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 16cf9889b6f2..00753a6fb25e 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; @@ -29,22 +30,26 @@ import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; -import com.google.api.resourcenames.ResourceName; import com.google.common.collect.Lists; +import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.AbstractMessage; import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.DeadLetterPolicy; import com.google.pubsub.v1.DeleteSnapshotRequest; import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.ExpirationPolicy; import com.google.pubsub.v1.GetSnapshotRequest; import com.google.pubsub.v1.GetSubscriptionRequest; import com.google.pubsub.v1.ListSnapshotsRequest; @@ -59,6 +64,8 @@ import com.google.pubsub.v1.PullRequest; import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.ReceivedMessage; +import com.google.pubsub.v1.RetryPolicy; import com.google.pubsub.v1.SeekRequest; import com.google.pubsub.v1.SeekResponse; import com.google.pubsub.v1.Snapshot; @@ -68,15 +75,15 @@ import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.UpdateSnapshotRequest; import com.google.pubsub.v1.UpdateSubscriptionRequest; -import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; -import java.util.Objects; import java.util.UUID; import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -84,39 +91,34 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class SubscriptionAdminClientTest { - private static MockSchemaService mockSchemaService; - private static MockPublisher mockPublisher; private static MockIAMPolicy mockIAMPolicy; + private static MockServiceHelper mockServiceHelper; private static MockSubscriber mockSubscriber; - private static MockServiceHelper serviceHelper; - private SubscriptionAdminClient client; private LocalChannelProvider channelProvider; + private SubscriptionAdminClient client; @BeforeClass public static void startStaticServer() { - mockSchemaService = new MockSchemaService(); - mockPublisher = new MockPublisher(); - mockIAMPolicy = new MockIAMPolicy(); mockSubscriber = new MockSubscriber(); - serviceHelper = + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList( - mockSchemaService, mockPublisher, mockIAMPolicy, mockSubscriber)); - serviceHelper.start(); + Arrays.asList(mockSubscriber, mockIAMPolicy)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); SubscriptionAdminSettings settings = SubscriptionAdminSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -131,24 +133,23 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") - public void createSubscriptionTest() { - ProjectSubscriptionName name2 = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - TopicName topic2 = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); - int ackDeadlineSeconds2 = 921632575; - boolean retainAckedMessages = false; - boolean enableMessageOrdering = true; - String filter = "filter-1274492040"; - boolean detached = true; + public void createSubscriptionTest() throws Exception { Subscription expectedResponse = Subscription.newBuilder() - .setName(name2.toString()) - .setTopic(topic2.toString()) - .setAckDeadlineSeconds(ackDeadlineSeconds2) - .setRetainAckedMessages(retainAckedMessages) - .setEnableMessageOrdering(enableMessageOrdering) - .setFilter(filter) - .setDetached(detached) + .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -163,10 +164,10 @@ public void createSubscriptionTest() { List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - Subscription actualRequest = (Subscription) actualRequests.get(0); + Subscription actualRequest = ((Subscription) actualRequests.get(0)); - Assert.assertEquals(name, ProjectSubscriptionName.parse(actualRequest.getName())); - Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic())); + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(topic.toString(), actualRequest.getTopic()); Assert.assertEquals(pushConfig, actualRequest.getPushConfig()); Assert.assertEquals(ackDeadlineSeconds, actualRequest.getAckDeadlineSeconds()); Assert.assertTrue( @@ -176,9 +177,8 @@ public void createSubscriptionTest() { } @Test - @SuppressWarnings("all") public void createSubscriptionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { @@ -186,33 +186,214 @@ public void createSubscriptionExceptionTest() throws Exception { TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); PushConfig pushConfig = PushConfig.newBuilder().build(); int ackDeadlineSeconds = 2135351438; - client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void getSubscriptionTest() { + public void createSubscriptionTest2() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockSubscriber.addResponse(expectedResponse); + ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + String topic = "topic110546223"; + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + + Subscription actualResponse = + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + Subscription actualRequest = ((Subscription) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(pushConfig, actualRequest.getPushConfig()); + Assert.assertEquals(ackDeadlineSeconds, actualRequest.getAckDeadlineSeconds()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSubscriptionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + String topic = "topic110546223"; + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSubscriptionTest3() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockSubscriber.addResponse(expectedResponse); + + String name = "name3373707"; TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + + Subscription actualResponse = + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + Subscription actualRequest = ((Subscription) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(topic.toString(), actualRequest.getTopic()); + Assert.assertEquals(pushConfig, actualRequest.getPushConfig()); + Assert.assertEquals(ackDeadlineSeconds, actualRequest.getAckDeadlineSeconds()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSubscriptionExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + String name = "name3373707"; + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSubscriptionTest4() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockSubscriber.addResponse(expectedResponse); + + String name = "name3373707"; + String topic = "topic110546223"; + PushConfig pushConfig = PushConfig.newBuilder().build(); int ackDeadlineSeconds = 2135351438; - boolean retainAckedMessages = false; - boolean enableMessageOrdering = true; - String filter = "filter-1274492040"; - boolean detached = true; + + Subscription actualResponse = + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + Subscription actualRequest = ((Subscription) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(pushConfig, actualRequest.getPushConfig()); + Assert.assertEquals(ackDeadlineSeconds, actualRequest.getAckDeadlineSeconds()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSubscriptionExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + String name = "name3373707"; + String topic = "topic110546223"; + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSubscriptionTest() throws Exception { Subscription expectedResponse = Subscription.newBuilder() - .setName(name.toString()) - .setTopic(topic.toString()) - .setAckDeadlineSeconds(ackDeadlineSeconds) - .setRetainAckedMessages(retainAckedMessages) - .setEnableMessageOrdering(enableMessageOrdering) - .setFilter(filter) - .setDetached(detached) + .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -224,10 +405,9 @@ public void getSubscriptionTest() { List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSubscriptionRequest actualRequest = (GetSubscriptionRequest) actualRequests.get(0); + GetSubscriptionRequest actualRequest = ((GetSubscriptionRequest) actualRequests.get(0)); - Assert.assertEquals( - subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertEquals(subscription.toString(), actualRequest.getSubscription()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -235,54 +415,96 @@ public void getSubscriptionTest() { } @Test - @SuppressWarnings("all") public void getSubscriptionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + client.getSubscription(subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSubscriptionTest2() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockSubscriber.addResponse(expectedResponse); + + String subscription = "subscription341203229"; + + Subscription actualResponse = client.getSubscription(subscription); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSubscriptionRequest actualRequest = ((GetSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + @Test + public void getSubscriptionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + String subscription = "subscription341203229"; client.getSubscription(subscription); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void updateSubscriptionTest() { - ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); - int ackDeadlineSeconds2 = 921632575; - boolean retainAckedMessages = false; - boolean enableMessageOrdering = true; - String filter = "filter-1274492040"; - boolean detached = true; + public void updateSubscriptionTest() throws Exception { Subscription expectedResponse = Subscription.newBuilder() - .setName(name.toString()) - .setTopic(topic.toString()) - .setAckDeadlineSeconds(ackDeadlineSeconds2) - .setRetainAckedMessages(retainAckedMessages) - .setEnableMessageOrdering(enableMessageOrdering) - .setFilter(filter) - .setDetached(detached) + .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); - int ackDeadlineSeconds = 42; - Subscription subscription = - Subscription.newBuilder().setAckDeadlineSeconds(ackDeadlineSeconds).build(); - String pathsElement = "ack_deadline_seconds"; - List paths = Arrays.asList(pathsElement); - FieldMask updateMask = FieldMask.newBuilder().addAllPaths(paths).build(); UpdateSubscriptionRequest request = UpdateSubscriptionRequest.newBuilder() - .setSubscription(subscription) - .setUpdateMask(updateMask) + .setSubscription(Subscription.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); Subscription actualResponse = client.updateSubscription(request); @@ -290,10 +512,10 @@ public void updateSubscriptionTest() { List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateSubscriptionRequest actualRequest = (UpdateSubscriptionRequest) actualRequests.get(0); + UpdateSubscriptionRequest actualRequest = ((UpdateSubscriptionRequest) actualRequests.get(0)); - Assert.assertEquals(subscription, actualRequest.getSubscription()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(request.getSubscription(), actualRequest.getSubscription()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -301,41 +523,30 @@ public void updateSubscriptionTest() { } @Test - @SuppressWarnings("all") public void updateSubscriptionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - int ackDeadlineSeconds = 42; - Subscription subscription = - Subscription.newBuilder().setAckDeadlineSeconds(ackDeadlineSeconds).build(); - String pathsElement = "ack_deadline_seconds"; - List paths = Arrays.asList(pathsElement); - FieldMask updateMask = FieldMask.newBuilder().addAllPaths(paths).build(); UpdateSubscriptionRequest request = UpdateSubscriptionRequest.newBuilder() - .setSubscription(subscription) - .setUpdateMask(updateMask) + .setSubscription(Subscription.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); - client.updateSubscription(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listSubscriptionsTest() { - String nextPageToken = ""; - Subscription subscriptionsElement = Subscription.newBuilder().build(); - List subscriptions = Arrays.asList(subscriptionsElement); + public void listSubscriptionsTest() throws Exception { + Subscription responsesElement = Subscription.newBuilder().build(); ListSubscriptionsResponse expectedResponse = ListSubscriptionsResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllSubscriptions(subscriptions) + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) .build(); mockSubscriber.addResponse(expectedResponse); @@ -343,15 +554,562 @@ public void listSubscriptionsTest() { ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(project); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubscriptionsRequest actualRequest = ((ListSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(project.toString(), actualRequest.getProject()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubscriptionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectName project = ProjectName.of("[PROJECT]"); + client.listSubscriptions(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubscriptionsTest2() throws Exception { + Subscription responsesElement = Subscription.newBuilder().build(); + ListSubscriptionsResponse expectedResponse = + ListSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockSubscriber.addResponse(expectedResponse); + + String project = "project-309310695"; + + ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubscriptionsRequest actualRequest = ((ListSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(project, actualRequest.getProject()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubscriptionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + String project = "project-309310695"; + client.listSubscriptions(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubscriptionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + client.deleteSubscription(subscription); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSubscriptionRequest actualRequest = ((DeleteSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription.toString(), actualRequest.getSubscription()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + client.deleteSubscription(subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubscriptionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + String subscription = "subscription341203229"; + + client.deleteSubscription(subscription); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSubscriptionRequest actualRequest = ((DeleteSubscriptionRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSubscriptionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + String subscription = "subscription341203229"; + client.deleteSubscription(subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyAckDeadlineTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + + client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ModifyAckDeadlineRequest actualRequest = ((ModifyAckDeadlineRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription.toString(), actualRequest.getSubscription()); + Assert.assertEquals(ackIds, actualRequest.getAckIdsList()); + Assert.assertEquals(ackDeadlineSeconds, actualRequest.getAckDeadlineSeconds()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void modifyAckDeadlineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyAckDeadlineTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + String subscription = "subscription341203229"; + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + + client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ModifyAckDeadlineRequest actualRequest = ((ModifyAckDeadlineRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(ackIds, actualRequest.getAckIdsList()); + Assert.assertEquals(ackDeadlineSeconds, actualRequest.getAckDeadlineSeconds()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void modifyAckDeadlineExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + String subscription = "subscription341203229"; + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void acknowledgeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + + client.acknowledge(subscription, ackIds); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AcknowledgeRequest actualRequest = ((AcknowledgeRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription.toString(), actualRequest.getSubscription()); + Assert.assertEquals(ackIds, actualRequest.getAckIdsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void acknowledgeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + client.acknowledge(subscription, ackIds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void acknowledgeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + String subscription = "subscription341203229"; + List ackIds = new ArrayList<>(); + + client.acknowledge(subscription, ackIds); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AcknowledgeRequest actualRequest = ((AcknowledgeRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(ackIds, actualRequest.getAckIdsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void acknowledgeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + String subscription = "subscription341203229"; + List ackIds = new ArrayList<>(); + client.acknowledge(subscription, ackIds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pullTest() throws Exception { + PullResponse expectedResponse = + PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + int maxMessages = 496131527; + + PullResponse actualResponse = client.pull(subscription, maxMessages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PullRequest actualRequest = ((PullRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription.toString(), actualRequest.getSubscription()); + Assert.assertEquals(maxMessages, actualRequest.getMaxMessages()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void pullExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + int maxMessages = 496131527; + client.pull(subscription, maxMessages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pullTest2() throws Exception { + PullResponse expectedResponse = + PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build(); + mockSubscriber.addResponse(expectedResponse); + + String subscription = "subscription341203229"; + int maxMessages = 496131527; + + PullResponse actualResponse = client.pull(subscription, maxMessages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PullRequest actualRequest = ((PullRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(maxMessages, actualRequest.getMaxMessages()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void pullExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + String subscription = "subscription341203229"; + int maxMessages = 496131527; + client.pull(subscription, maxMessages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pullTest3() throws Exception { + PullResponse expectedResponse = + PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + boolean returnImmediately = true; + int maxMessages = 496131527; + + PullResponse actualResponse = client.pull(subscription, returnImmediately, maxMessages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PullRequest actualRequest = ((PullRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription.toString(), actualRequest.getSubscription()); + Assert.assertEquals(returnImmediately, actualRequest.getReturnImmediately()); + Assert.assertEquals(maxMessages, actualRequest.getMaxMessages()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void pullExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + boolean returnImmediately = true; + int maxMessages = 496131527; + client.pull(subscription, returnImmediately, maxMessages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pullTest4() throws Exception { + PullResponse expectedResponse = + PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build(); + mockSubscriber.addResponse(expectedResponse); + + String subscription = "subscription341203229"; + boolean returnImmediately = true; + int maxMessages = 496131527; + + PullResponse actualResponse = client.pull(subscription, returnImmediately, maxMessages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PullRequest actualRequest = ((PullRequest) actualRequests.get(0)); + + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(returnImmediately, actualRequest.getReturnImmediately()); + Assert.assertEquals(maxMessages, actualRequest.getMaxMessages()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void pullExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + String subscription = "subscription341203229"; + boolean returnImmediately = true; + int maxMessages = 496131527; + client.pull(subscription, returnImmediately, maxMessages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void streamingPullTest() throws Exception { + StreamingPullResponse expectedResponse = + StreamingPullResponse.newBuilder() + .addAllReceivedMessages(new ArrayList()) + .setSubscriptionProperties( + StreamingPullResponse.SubscriptionProperties.newBuilder().build()) + .build(); + mockSubscriber.addResponse(expectedResponse); + StreamingPullRequest request = + StreamingPullRequest.newBuilder() + .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .addAllAckIds(new ArrayList()) + .addAllModifyDeadlineSeconds(new ArrayList()) + .addAllModifyDeadlineAckIds(new ArrayList()) + .setStreamAckDeadlineSeconds(1875467245) + .setClientId("clientId908408390") + .setMaxOutstandingMessages(-1315266996) + .setMaxOutstandingBytes(-2103098517) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.streamingPullCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + requestObserver.onCompleted(); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamingPullExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + StreamingPullRequest request = + StreamingPullRequest.newBuilder() + .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .addAllAckIds(new ArrayList()) + .addAllModifyDeadlineSeconds(new ArrayList()) + .addAllModifyDeadlineAckIds(new ArrayList()) + .setStreamAckDeadlineSeconds(1875467245) + .setClientId("clientId908408390") + .setMaxOutstandingMessages(-1315266996) + .setMaxOutstandingBytes(-2103098517) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + BidiStreamingCallable callable = + client.streamingPullCallable(); + ApiStreamObserver requestObserver = + callable.bidiStreamingCall(responseObserver); + + requestObserver.onNext(request); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void modifyPushConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + + client.modifyPushConfig(subscription, pushConfig); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSubscriptionsRequest actualRequest = (ListSubscriptionsRequest) actualRequests.get(0); + ModifyPushConfigRequest actualRequest = ((ModifyPushConfigRequest) actualRequests.get(0)); - Assert.assertEquals(project, ProjectName.parse(actualRequest.getProject())); + Assert.assertEquals(subscription.toString(), actualRequest.getSubscription()); + Assert.assertEquals(pushConfig, actualRequest.getPushConfig()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -359,38 +1117,37 @@ public void listSubscriptionsTest() { } @Test - @SuppressWarnings("all") - public void listSubscriptionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void modifyPushConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - ProjectName project = ProjectName.of("[PROJECT]"); - - client.listSubscriptions(project); + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + client.modifyPushConfig(subscription, pushConfig); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void deleteSubscriptionTest() { + public void modifyPushConfigTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + String subscription = "subscription341203229"; + PushConfig pushConfig = PushConfig.newBuilder().build(); - client.deleteSubscription(subscription); + client.modifyPushConfig(subscription, pushConfig); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteSubscriptionRequest actualRequest = (DeleteSubscriptionRequest) actualRequests.get(0); + ModifyPushConfigRequest actualRequest = ((ModifyPushConfigRequest) actualRequests.get(0)); - Assert.assertEquals( - subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(pushConfig, actualRequest.getPushConfig()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -398,29 +1155,29 @@ public void deleteSubscriptionTest() { } @Test - @SuppressWarnings("all") - public void deleteSubscriptionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void modifyPushConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - - client.deleteSubscription(subscription); + String subscription = "subscription341203229"; + PushConfig pushConfig = PushConfig.newBuilder().build(); + client.modifyPushConfig(subscription, pushConfig); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void getSnapshotTest() { - ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + public void getSnapshotTest() throws Exception { Snapshot expectedResponse = - Snapshot.newBuilder().setName(name.toString()).setTopic(topic.toString()).build(); + Snapshot.newBuilder() + .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); mockSubscriber.addResponse(expectedResponse); ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); @@ -430,9 +1187,9 @@ public void getSnapshotTest() { List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSnapshotRequest actualRequest = (GetSnapshotRequest) actualRequests.get(0); + GetSnapshotRequest actualRequest = ((GetSnapshotRequest) actualRequests.get(0)); - Assert.assertEquals(snapshot, ProjectSnapshotName.parse(actualRequest.getSnapshot())); + Assert.assertEquals(snapshot.toString(), actualRequest.getSnapshot()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -440,42 +1197,40 @@ public void getSnapshotTest() { } @Test - @SuppressWarnings("all") public void getSnapshotExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - client.getSnapshot(snapshot); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void modifyAckDeadlineTest() { - Empty expectedResponse = Empty.newBuilder().build(); + public void getSnapshotTest2() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - List ackIds = new ArrayList<>(); - int ackDeadlineSeconds = 2135351438; + String snapshot = "snapshot284874180"; - client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + Snapshot actualResponse = client.getSnapshot(snapshot); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ModifyAckDeadlineRequest actualRequest = (ModifyAckDeadlineRequest) actualRequests.get(0); + GetSnapshotRequest actualRequest = ((GetSnapshotRequest) actualRequests.get(0)); - Assert.assertEquals( - subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); - Assert.assertEquals(ackIds, actualRequest.getAckIdsList()); - Assert.assertEquals(ackDeadlineSeconds, actualRequest.getAckDeadlineSeconds()); + Assert.assertEquals(snapshot, actualRequest.getSnapshot()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -483,43 +1238,43 @@ public void modifyAckDeadlineTest() { } @Test - @SuppressWarnings("all") - public void modifyAckDeadlineExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void getSnapshotExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - List ackIds = new ArrayList<>(); - int ackDeadlineSeconds = 2135351438; - - client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + String snapshot = "snapshot284874180"; + client.getSnapshot(snapshot); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void acknowledgeTest() { - Empty expectedResponse = Empty.newBuilder().build(); + public void listSnapshotsTest() throws Exception { + Snapshot responsesElement = Snapshot.newBuilder().build(); + ListSnapshotsResponse expectedResponse = + ListSnapshotsResponse.newBuilder() + .setNextPageToken("") + .addAllSnapshots(Arrays.asList(responsesElement)) + .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - List ackIds = new ArrayList<>(); + ProjectName project = ProjectName.of("[PROJECT]"); - client.acknowledge(subscription, ackIds); + ListSnapshotsPagedResponse pagedListResponse = client.listSnapshots(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - AcknowledgeRequest actualRequest = (AcknowledgeRequest) actualRequests.get(0); + ListSnapshotsRequest actualRequest = ((ListSnapshotsRequest) actualRequests.get(0)); - Assert.assertEquals( - subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); - Assert.assertEquals(ackIds, actualRequest.getAckIdsList()); + Assert.assertEquals(project.toString(), actualRequest.getProject()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -527,45 +1282,43 @@ public void acknowledgeTest() { } @Test - @SuppressWarnings("all") - public void acknowledgeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void listSnapshotsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - List ackIds = new ArrayList<>(); - - client.acknowledge(subscription, ackIds); + ProjectName project = ProjectName.of("[PROJECT]"); + client.listSnapshots(project); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void pullTest() { - PullResponse expectedResponse = PullResponse.newBuilder().build(); + public void listSnapshotsTest2() throws Exception { + Snapshot responsesElement = Snapshot.newBuilder().build(); + ListSnapshotsResponse expectedResponse = + ListSnapshotsResponse.newBuilder() + .setNextPageToken("") + .addAllSnapshots(Arrays.asList(responsesElement)) + .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - boolean returnImmediately = false; - int maxMessages = 496131527; + String project = "project-309310695"; - PullResponse actualResponse = client.pull(subscription, returnImmediately, maxMessages); - Assert.assertEquals(expectedResponse, actualResponse); + ListSnapshotsPagedResponse pagedListResponse = client.listSnapshots(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - PullRequest actualRequest = (PullRequest) actualRequests.get(0); + ListSnapshotsRequest actualRequest = ((ListSnapshotsRequest) actualRequests.get(0)); - Assert.assertEquals( - subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); - Assert.assertEquals(returnImmediately, actualRequest.getReturnImmediately()); - Assert.assertEquals(maxMessages, actualRequest.getMaxMessages()); + Assert.assertEquals(project, actualRequest.getProject()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -573,105 +1326,88 @@ public void pullTest() { } @Test - @SuppressWarnings("all") - public void pullExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void listSnapshotsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - boolean returnImmediately = false; - int maxMessages = 496131527; - - client.pull(subscription, returnImmediately, maxMessages); + String project = "project-309310695"; + client.listSnapshots(project); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void streamingPullTest() throws Exception { - StreamingPullResponse expectedResponse = StreamingPullResponse.newBuilder().build(); + public void createSnapshotTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); mockSubscriber.addResponse(expectedResponse); + + ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - int streamAckDeadlineSeconds = 1875467245; - StreamingPullRequest request = - StreamingPullRequest.newBuilder() - .setSubscription(subscription.toString()) - .setStreamAckDeadlineSeconds(streamAckDeadlineSeconds) - .build(); - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = - client.streamingPullCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); + Snapshot actualResponse = client.createSnapshot(name, subscription); + Assert.assertEquals(expectedResponse, actualResponse); - requestObserver.onNext(request); - requestObserver.onCompleted(); + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSnapshotRequest actualRequest = ((CreateSnapshotRequest) actualRequests.get(0)); - List actualResponses = responseObserver.future().get(); - Assert.assertEquals(1, actualResponses.size()); - Assert.assertEquals(expectedResponse, actualResponses.get(0)); + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(subscription.toString(), actualRequest.getSubscription()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); } @Test - @SuppressWarnings("all") - public void streamingPullExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void createSnapshotExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - int streamAckDeadlineSeconds = 1875467245; - StreamingPullRequest request = - StreamingPullRequest.newBuilder() - .setSubscription(subscription.toString()) - .setStreamAckDeadlineSeconds(streamAckDeadlineSeconds) - .build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = - client.streamingPullCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); try { - List actualResponses = responseObserver.future().get(); - Assert.fail("No exception thrown"); - } catch (ExecutionException e) { - Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); - InvalidArgumentException apiException = (InvalidArgumentException) e.getCause(); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + client.createSnapshot(name, subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - @SuppressWarnings("all") - public void modifyPushConfigTest() { - Empty expectedResponse = Empty.newBuilder().build(); + public void createSnapshotTest2() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - PushConfig pushConfig = PushConfig.newBuilder().build(); + ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + String subscription = "subscription341203229"; - client.modifyPushConfig(subscription, pushConfig); + Snapshot actualResponse = client.createSnapshot(name, subscription); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ModifyPushConfigRequest actualRequest = (ModifyPushConfigRequest) actualRequests.get(0); + CreateSnapshotRequest actualRequest = ((CreateSnapshotRequest) actualRequests.get(0)); - Assert.assertEquals( - subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); - Assert.assertEquals(pushConfig, actualRequest.getPushConfig()); + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(subscription, actualRequest.getSubscription()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -679,49 +1415,44 @@ public void modifyPushConfigTest() { } @Test - @SuppressWarnings("all") - public void modifyPushConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void createSnapshotExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - PushConfig pushConfig = PushConfig.newBuilder().build(); - - client.modifyPushConfig(subscription, pushConfig); + ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + String subscription = "subscription341203229"; + client.createSnapshot(name, subscription); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listSnapshotsTest() { - String nextPageToken = ""; - Snapshot snapshotsElement = Snapshot.newBuilder().build(); - List snapshots = Arrays.asList(snapshotsElement); - ListSnapshotsResponse expectedResponse = - ListSnapshotsResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllSnapshots(snapshots) + public void createSnapshotTest3() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); - ProjectName project = ProjectName.of("[PROJECT]"); - - ListSnapshotsPagedResponse pagedListResponse = client.listSnapshots(project); + String name = "name3373707"; + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); + Snapshot actualResponse = client.createSnapshot(name, subscription); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSnapshotsRequest actualRequest = (ListSnapshotsRequest) actualRequests.get(0); + CreateSnapshotRequest actualRequest = ((CreateSnapshotRequest) actualRequests.get(0)); - Assert.assertEquals(project, ProjectName.parse(actualRequest.getProject())); + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(subscription.toString(), actualRequest.getSubscription()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -729,44 +1460,44 @@ public void listSnapshotsTest() { } @Test - @SuppressWarnings("all") - public void listSnapshotsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void createSnapshotExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - ProjectName project = ProjectName.of("[PROJECT]"); - - client.listSnapshots(project); + String name = "name3373707"; + ProjectSubscriptionName subscription = + ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + client.createSnapshot(name, subscription); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void createSnapshotTest() { - ProjectSnapshotName name2 = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + public void createSnapshotTest4() throws Exception { Snapshot expectedResponse = - Snapshot.newBuilder().setName(name2.toString()).setTopic(topic.toString()).build(); + Snapshot.newBuilder() + .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); mockSubscriber.addResponse(expectedResponse); - ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + String name = "name3373707"; + String subscription = "subscription341203229"; Snapshot actualResponse = client.createSnapshot(name, subscription); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateSnapshotRequest actualRequest = (CreateSnapshotRequest) actualRequests.get(0); + CreateSnapshotRequest actualRequest = ((CreateSnapshotRequest) actualRequests.get(0)); - Assert.assertEquals(name, ProjectSnapshotName.parse(actualRequest.getName())); - Assert.assertEquals( - subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(subscription, actualRequest.getSubscription()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -774,50 +1505,46 @@ public void createSnapshotTest() { } @Test - @SuppressWarnings("all") - public void createSnapshotExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void createSnapshotExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - + String name = "name3373707"; + String subscription = "subscription341203229"; client.createSnapshot(name, subscription); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void updateSnapshotTest() { - ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); - TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + public void updateSnapshotTest() throws Exception { Snapshot expectedResponse = - Snapshot.newBuilder().setName(name.toString()).setTopic(topic.toString()).build(); + Snapshot.newBuilder() + .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); mockSubscriber.addResponse(expectedResponse); - long seconds = 123456L; - Timestamp expireTime = Timestamp.newBuilder().setSeconds(seconds).build(); - Snapshot snapshot = Snapshot.newBuilder().setExpireTime(expireTime).build(); - String pathsElement = "expire_time"; - List paths = Arrays.asList(pathsElement); - FieldMask updateMask = FieldMask.newBuilder().addAllPaths(paths).build(); UpdateSnapshotRequest request = - UpdateSnapshotRequest.newBuilder().setSnapshot(snapshot).setUpdateMask(updateMask).build(); + UpdateSnapshotRequest.newBuilder() + .setSnapshot(Snapshot.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); Snapshot actualResponse = client.updateSnapshot(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateSnapshotRequest actualRequest = (UpdateSnapshotRequest) actualRequests.get(0); + UpdateSnapshotRequest actualRequest = ((UpdateSnapshotRequest) actualRequests.get(0)); - Assert.assertEquals(snapshot, actualRequest.getSnapshot()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(request.getSnapshot(), actualRequest.getSnapshot()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -825,34 +1552,25 @@ public void updateSnapshotTest() { } @Test - @SuppressWarnings("all") public void updateSnapshotExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - long seconds = 123456L; - Timestamp expireTime = Timestamp.newBuilder().setSeconds(seconds).build(); - Snapshot snapshot = Snapshot.newBuilder().setExpireTime(expireTime).build(); - String pathsElement = "expire_time"; - List paths = Arrays.asList(pathsElement); - FieldMask updateMask = FieldMask.newBuilder().addAllPaths(paths).build(); UpdateSnapshotRequest request = UpdateSnapshotRequest.newBuilder() - .setSnapshot(snapshot) - .setUpdateMask(updateMask) + .setSnapshot(Snapshot.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); - client.updateSnapshot(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void deleteSnapshotTest() { + public void deleteSnapshotTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockSubscriber.addResponse(expectedResponse); @@ -862,9 +1580,9 @@ public void deleteSnapshotTest() { List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteSnapshotRequest actualRequest = (DeleteSnapshotRequest) actualRequests.get(0); + DeleteSnapshotRequest actualRequest = ((DeleteSnapshotRequest) actualRequests.get(0)); - Assert.assertEquals(snapshot, ProjectSnapshotName.parse(actualRequest.getSnapshot())); + Assert.assertEquals(snapshot.toString(), actualRequest.getSnapshot()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -872,40 +1590,73 @@ public void deleteSnapshotTest() { } @Test - @SuppressWarnings("all") public void deleteSnapshotExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + client.deleteSnapshot(snapshot); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSnapshotTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSubscriber.addResponse(expectedResponse); + String snapshot = "snapshot284874180"; + + client.deleteSnapshot(snapshot); + + List actualRequests = mockSubscriber.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSnapshotRequest actualRequest = ((DeleteSnapshotRequest) actualRequests.get(0)); + + Assert.assertEquals(snapshot, actualRequest.getSnapshot()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSnapshotExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSubscriber.addException(exception); + + try { + String snapshot = "snapshot284874180"; client.deleteSnapshot(snapshot); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void seekTest() { + public void seekTest() throws Exception { SeekResponse expectedResponse = SeekResponse.newBuilder().build(); mockSubscriber.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - SeekRequest request = SeekRequest.newBuilder().setSubscription(subscription.toString()).build(); + SeekRequest request = + SeekRequest.newBuilder() + .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); SeekResponse actualResponse = client.seek(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SeekRequest actualRequest = (SeekRequest) actualRequests.get(0); + SeekRequest actualRequest = ((SeekRequest) actualRequests.get(0)); - Assert.assertEquals( - subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertEquals(request.getSubscription(), actualRequest.getSubscription()); + Assert.assertEquals(request.getTime(), actualRequest.getTime()); + Assert.assertEquals(request.getSnapshot(), actualRequest.getSnapshot()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -913,46 +1664,47 @@ public void seekTest() { } @Test - @SuppressWarnings("all") public void seekExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockSubscriber.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); SeekRequest request = - SeekRequest.newBuilder().setSubscription(subscription.toString()).build(); - + SeekRequest.newBuilder() + .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); client.seek(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void setIamPolicyTest() { - int version = 351608024; - ByteString etag = ByteString.copyFromUtf8("21"); - Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build(); + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); mockIAMPolicy.addResponse(expectedResponse); - ResourceName resource = ProjectName.of("[PROJECT]"); - Policy policy = Policy.newBuilder().build(); SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource.toString()).setPolicy(policy).build(); + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); Policy actualResponse = client.setIamPolicy(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = (SetIamPolicyRequest) actualRequests.get(0); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource())); - Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -960,47 +1712,48 @@ public void setIamPolicyTest() { } @Test - @SuppressWarnings("all") public void setIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockIAMPolicy.addException(exception); try { - ResourceName resource = ProjectName.of("[PROJECT]"); - Policy policy = Policy.newBuilder().build(); SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(resource.toString()) - .setPolicy(policy) + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) .build(); - client.setIamPolicy(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void getIamPolicyTest() { - int version = 351608024; - ByteString etag = ByteString.copyFromUtf8("21"); - Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build(); + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); mockIAMPolicy.addResponse(expectedResponse); - ResourceName resource = ProjectName.of("[PROJECT]"); GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder().setResource(resource.toString()).build(); + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); Policy actualResponse = client.getIamPolicy(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = (GetIamPolicyRequest) actualRequests.get(0); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource())); + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1008,35 +1761,33 @@ public void getIamPolicyTest() { } @Test - @SuppressWarnings("all") public void getIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockIAMPolicy.addException(exception); try { - ResourceName resource = ProjectName.of("[PROJECT]"); GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder().setResource(resource.toString()).build(); - + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); client.getIamPolicy(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void testIamPermissionsTest() { - TestIamPermissionsResponse expectedResponse = TestIamPermissionsResponse.newBuilder().build(); + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); mockIAMPolicy.addResponse(expectedResponse); - ResourceName resource = ProjectName.of("[PROJECT]"); - List permissions = new ArrayList<>(); TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(resource.toString()) - .addAllPermissions(permissions) + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) .build(); TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); @@ -1044,10 +1795,10 @@ public void testIamPermissionsTest() { List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = (TestIamPermissionsRequest) actualRequests.get(0); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource())); - Assert.assertEquals(permissions, actualRequest.getPermissionsList()); + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1055,24 +1806,20 @@ public void testIamPermissionsTest() { } @Test - @SuppressWarnings("all") public void testIamPermissionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockIAMPolicy.addException(exception); try { - ResourceName resource = ProjectName.of("[PROJECT]"); - List permissions = new ArrayList<>(); TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(resource.toString()) - .addAllPermissions(permissions) + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) .build(); - client.testIamPermissions(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index f6c1607dbae5..4cf5a75029c7 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package com.google.cloud.pubsub.v1; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; @@ -26,15 +27,17 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.resourcenames.ResourceName; import com.google.common.collect.Lists; +import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.AbstractMessage; import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.pubsub.v1.DeleteTopicRequest; @@ -47,22 +50,24 @@ import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsRequest; import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.MessageStoragePolicy; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.SchemaSettings; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.UpdateTopicRequest; -import io.grpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; -import java.util.Objects; import java.util.UUID; +import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -70,39 +75,34 @@ import org.junit.BeforeClass; import org.junit.Test; -@javax.annotation.Generated("by GAPIC") +@Generated("by gapic-generator-java") public class TopicAdminClientTest { - private static MockSchemaService mockSchemaService; - private static MockPublisher mockPublisher; private static MockIAMPolicy mockIAMPolicy; - private static MockSubscriber mockSubscriber; - private static MockServiceHelper serviceHelper; - private TopicAdminClient client; + private static MockPublisher mockPublisher; + private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; + private TopicAdminClient client; @BeforeClass public static void startStaticServer() { - mockSchemaService = new MockSchemaService(); mockPublisher = new MockPublisher(); mockIAMPolicy = new MockIAMPolicy(); - mockSubscriber = new MockSubscriber(); - serviceHelper = + mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList( - mockSchemaService, mockPublisher, mockIAMPolicy, mockSubscriber)); - serviceHelper.start(); + Arrays.asList(mockPublisher, mockIAMPolicy)); + mockServiceHelper.start(); } @AfterClass public static void stopServer() { - serviceHelper.stop(); + mockServiceHelper.stop(); } @Before public void setUp() throws IOException { - serviceHelper.reset(); - channelProvider = serviceHelper.createChannelProvider(); + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); TopicAdminSettings settings = TopicAdminSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -117,16 +117,16 @@ public void tearDown() throws Exception { } @Test - @SuppressWarnings("all") - public void createTopicTest() { - TopicName name2 = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); - String kmsKeyName = "kmsKeyName2094986649"; - boolean satisfiesPzs = false; + public void createTopicTest() throws Exception { Topic expectedResponse = Topic.newBuilder() - .setName(name2.toString()) - .setKmsKeyName(kmsKeyName) - .setSatisfiesPzs(satisfiesPzs) + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); @@ -137,9 +137,9 @@ public void createTopicTest() { List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); - Topic actualRequest = (Topic) actualRequests.get(0); + Topic actualRequest = ((Topic) actualRequests.get(0)); - Assert.assertEquals(name, TopicName.parse(actualRequest.getName())); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -147,49 +147,92 @@ public void createTopicTest() { } @Test - @SuppressWarnings("all") public void createTopicExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockPublisher.addException(exception); try { TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + client.createTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test + public void createTopicTest2() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockPublisher.addResponse(expectedResponse); + + String name = "name3373707"; + + Topic actualResponse = client.createTopic(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + Topic actualRequest = ((Topic) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTopicExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + String name = "name3373707"; client.createTopic(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void updateTopicTest() { - TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); - String kmsKeyName = "kmsKeyName2094986649"; - boolean satisfiesPzs = false; + public void updateTopicTest() throws Exception { Topic expectedResponse = Topic.newBuilder() - .setName(name.toString()) - .setKmsKeyName(kmsKeyName) - .setSatisfiesPzs(satisfiesPzs) + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); - Topic topic = Topic.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); UpdateTopicRequest request = - UpdateTopicRequest.newBuilder().setTopic(topic).setUpdateMask(updateMask).build(); + UpdateTopicRequest.newBuilder() + .setTopic(Topic.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); Topic actualResponse = client.updateTopic(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateTopicRequest actualRequest = (UpdateTopicRequest) actualRequests.get(0); + UpdateTopicRequest actualRequest = ((UpdateTopicRequest) actualRequests.get(0)); - Assert.assertEquals(topic, actualRequest.getTopic()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -197,46 +240,40 @@ public void updateTopicTest() { } @Test - @SuppressWarnings("all") public void updateTopicExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockPublisher.addException(exception); try { - Topic topic = Topic.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); UpdateTopicRequest request = - UpdateTopicRequest.newBuilder().setTopic(topic).setUpdateMask(updateMask).build(); - + UpdateTopicRequest.newBuilder() + .setTopic(Topic.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); client.updateTopic(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void publishTest() { - String messageIdsElement = "messageIdsElement-744837059"; - List messageIds = Arrays.asList(messageIdsElement); + public void publishTest() throws Exception { PublishResponse expectedResponse = - PublishResponse.newBuilder().addAllMessageIds(messageIds).build(); + PublishResponse.newBuilder().addAllMessageIds(new ArrayList()).build(); mockPublisher.addResponse(expectedResponse); TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); - ByteString data = ByteString.copyFromUtf8("-86"); - PubsubMessage messagesElement = PubsubMessage.newBuilder().setData(data).build(); - List messages = Arrays.asList(messagesElement); + List messages = new ArrayList<>(); PublishResponse actualResponse = client.publish(topic, messages); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); - PublishRequest actualRequest = (PublishRequest) actualRequests.get(0); + PublishRequest actualRequest = ((PublishRequest) actualRequests.get(0)); - Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic())); + Assert.assertEquals(topic.toString(), actualRequest.getTopic()); Assert.assertEquals(messages, actualRequest.getMessagesList()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -245,35 +282,70 @@ public void publishTest() { } @Test - @SuppressWarnings("all") public void publishExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockPublisher.addException(exception); try { TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); - ByteString data = ByteString.copyFromUtf8("-86"); - PubsubMessage messagesElement = PubsubMessage.newBuilder().setData(data).build(); - List messages = Arrays.asList(messagesElement); + List messages = new ArrayList<>(); + client.publish(topic, messages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void publishTest2() throws Exception { + PublishResponse expectedResponse = + PublishResponse.newBuilder().addAllMessageIds(new ArrayList()).build(); + mockPublisher.addResponse(expectedResponse); + String topic = "topic110546223"; + List messages = new ArrayList<>(); + + PublishResponse actualResponse = client.publish(topic, messages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PublishRequest actualRequest = ((PublishRequest) actualRequests.get(0)); + + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(messages, actualRequest.getMessagesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void publishExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + String topic = "topic110546223"; + List messages = new ArrayList<>(); client.publish(topic, messages); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void getTopicTest() { - TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); - String kmsKeyName = "kmsKeyName2094986649"; - boolean satisfiesPzs = false; + public void getTopicTest() throws Exception { Topic expectedResponse = Topic.newBuilder() - .setName(name.toString()) - .setKmsKeyName(kmsKeyName) - .setSatisfiesPzs(satisfiesPzs) + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); @@ -284,9 +356,9 @@ public void getTopicTest() { List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetTopicRequest actualRequest = (GetTopicRequest) actualRequests.get(0); + GetTopicRequest actualRequest = ((GetTopicRequest) actualRequests.get(0)); - Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic())); + Assert.assertEquals(topic.toString(), actualRequest.getTopic()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -294,31 +366,70 @@ public void getTopicTest() { } @Test - @SuppressWarnings("all") public void getTopicExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockPublisher.addException(exception); try { TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + client.getTopic(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicTest2() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockPublisher.addResponse(expectedResponse); + + String topic = "topic110546223"; + Topic actualResponse = client.getTopic(topic); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTopicRequest actualRequest = ((GetTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTopicExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + String topic = "topic110546223"; client.getTopic(topic); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listTopicsTest() { - String nextPageToken = ""; - Topic topicsElement = Topic.newBuilder().build(); - List topics = Arrays.asList(topicsElement); + public void listTopicsTest() throws Exception { + Topic responsesElement = Topic.newBuilder().build(); ListTopicsResponse expectedResponse = ListTopicsResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllTopics(topics) + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) .build(); mockPublisher.addResponse(expectedResponse); @@ -327,14 +438,15 @@ public void listTopicsTest() { ListTopicsPagedResponse pagedListResponse = client.listTopics(project); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListTopicsRequest actualRequest = (ListTopicsRequest) actualRequests.get(0); + ListTopicsRequest actualRequest = ((ListTopicsRequest) actualRequests.get(0)); - Assert.assertEquals(project, ProjectName.parse(actualRequest.getProject())); + Assert.assertEquals(project.toString(), actualRequest.getProject()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -342,32 +454,70 @@ public void listTopicsTest() { } @Test - @SuppressWarnings("all") public void listTopicsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockPublisher.addException(exception); try { ProjectName project = ProjectName.of("[PROJECT]"); + client.listTopics(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicsTest2() throws Exception { + Topic responsesElement = Topic.newBuilder().build(); + ListTopicsResponse expectedResponse = + ListTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockPublisher.addResponse(expectedResponse); + + String project = "project-309310695"; + + ListTopicsPagedResponse pagedListResponse = client.listTopics(project); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicsRequest actualRequest = ((ListTopicsRequest) actualRequests.get(0)); + + Assert.assertEquals(project, actualRequest.getProject()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTopicsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + String project = "project-309310695"; client.listTopics(project); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listTopicSubscriptionsTest() { - String nextPageToken = ""; - ProjectSubscriptionName subscriptionsElement = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - List subscriptions = Arrays.asList(subscriptionsElement); + public void listTopicSubscriptionsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; ListTopicSubscriptionsResponse expectedResponse = ListTopicSubscriptionsResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllSubscriptions(ProjectSubscriptionName.toStringList(subscriptions)) + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) .build(); mockPublisher.addResponse(expectedResponse); @@ -376,21 +526,16 @@ public void listTopicSubscriptionsTest() { ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(topic); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); - List resourceNames = - Lists.newArrayList(pagedListResponse.iterateAllAsProjectSubscriptionName()); - Assert.assertEquals(1, resourceNames.size()); - Assert.assertEquals( - ProjectSubscriptionName.parse(expectedResponse.getSubscriptionsList().get(0)), - resourceNames.get(0)); List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); ListTopicSubscriptionsRequest actualRequest = - (ListTopicSubscriptionsRequest) actualRequests.get(0); + ((ListTopicSubscriptionsRequest) actualRequests.get(0)); - Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic())); + Assert.assertEquals(topic.toString(), actualRequest.getTopic()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -398,31 +543,71 @@ public void listTopicSubscriptionsTest() { } @Test - @SuppressWarnings("all") public void listTopicSubscriptionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockPublisher.addException(exception); try { TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + client.listTopicSubscriptions(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicSubscriptionsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListTopicSubscriptionsResponse expectedResponse = + ListTopicSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockPublisher.addResponse(expectedResponse); + + String topic = "topic110546223"; + + ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(topic); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicSubscriptionsRequest actualRequest = + ((ListTopicSubscriptionsRequest) actualRequests.get(0)); + + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTopicSubscriptionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + String topic = "topic110546223"; client.listTopicSubscriptions(topic); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void listTopicSnapshotsTest() { - String nextPageToken = ""; - String snapshotsElement = "snapshotsElement1339034092"; - List snapshots = Arrays.asList(snapshotsElement); + public void listTopicSnapshotsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; ListTopicSnapshotsResponse expectedResponse = ListTopicSnapshotsResponse.newBuilder() - .setNextPageToken(nextPageToken) - .addAllSnapshots(snapshots) + .setNextPageToken("") + .addAllSnapshots(Arrays.asList(responsesElement)) .build(); mockPublisher.addResponse(expectedResponse); @@ -431,14 +616,15 @@ public void listTopicSnapshotsTest() { ListTopicSnapshotsPagedResponse pagedListResponse = client.listTopicSnapshots(topic); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + Assert.assertEquals(1, resources.size()); Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListTopicSnapshotsRequest actualRequest = (ListTopicSnapshotsRequest) actualRequests.get(0); + ListTopicSnapshotsRequest actualRequest = ((ListTopicSnapshotsRequest) actualRequests.get(0)); - Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic())); + Assert.assertEquals(topic.toString(), actualRequest.getTopic()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -446,24 +632,65 @@ public void listTopicSnapshotsTest() { } @Test - @SuppressWarnings("all") public void listTopicSnapshotsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockPublisher.addException(exception); try { TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + client.listTopicSnapshots(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicSnapshotsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListTopicSnapshotsResponse expectedResponse = + ListTopicSnapshotsResponse.newBuilder() + .setNextPageToken("") + .addAllSnapshots(Arrays.asList(responsesElement)) + .build(); + mockPublisher.addResponse(expectedResponse); + + String topic = "topic110546223"; + + ListTopicSnapshotsPagedResponse pagedListResponse = client.listTopicSnapshots(topic); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTopicSnapshotsRequest actualRequest = ((ListTopicSnapshotsRequest) actualRequests.get(0)); + + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + @Test + public void listTopicSnapshotsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + String topic = "topic110546223"; client.listTopicSnapshots(topic); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void deleteTopicTest() { + public void deleteTopicTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockPublisher.addResponse(expectedResponse); @@ -473,9 +700,9 @@ public void deleteTopicTest() { List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteTopicRequest actualRequest = (DeleteTopicRequest) actualRequests.get(0); + DeleteTopicRequest actualRequest = ((DeleteTopicRequest) actualRequests.get(0)); - Assert.assertEquals(topic, TopicName.parse(actualRequest.getTopic())); + Assert.assertEquals(topic.toString(), actualRequest.getTopic()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -483,43 +710,71 @@ public void deleteTopicTest() { } @Test - @SuppressWarnings("all") public void deleteTopicExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockPublisher.addException(exception); try { TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + client.deleteTopic(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test + public void deleteTopicTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockPublisher.addResponse(expectedResponse); + + String topic = "topic110546223"; + + client.deleteTopic(topic); + + List actualRequests = mockPublisher.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTopicRequest actualRequest = ((DeleteTopicRequest) actualRequests.get(0)); + + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTopicExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); + + try { + String topic = "topic110546223"; client.deleteTopic(topic); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void setIamPolicyTest() { - int version = 351608024; - ByteString etag = ByteString.copyFromUtf8("21"); - Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build(); - mockIAMPolicy.addResponse(expectedResponse); + public void detachSubscriptionTest() throws Exception { + DetachSubscriptionResponse expectedResponse = DetachSubscriptionResponse.newBuilder().build(); + mockPublisher.addResponse(expectedResponse); - ResourceName resource = ProjectName.of("[PROJECT]"); - Policy policy = Policy.newBuilder().build(); - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource.toString()).setPolicy(policy).build(); + DetachSubscriptionRequest request = + DetachSubscriptionRequest.newBuilder() + .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); - Policy actualResponse = client.setIamPolicy(request); + DetachSubscriptionResponse actualResponse = client.detachSubscription(request); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockIAMPolicy.getRequests(); + List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = (SetIamPolicyRequest) actualRequests.get(0); + DetachSubscriptionRequest actualRequest = ((DetachSubscriptionRequest) actualRequests.get(0)); - Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource())); - Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertEquals(request.getSubscription(), actualRequest.getSubscription()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -527,47 +782,47 @@ public void setIamPolicyTest() { } @Test - @SuppressWarnings("all") - public void setIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); + public void detachSubscriptionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPublisher.addException(exception); try { - ResourceName resource = ProjectName.of("[PROJECT]"); - Policy policy = Policy.newBuilder().build(); - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(resource.toString()) - .setPolicy(policy) + DetachSubscriptionRequest request = + DetachSubscriptionRequest.newBuilder() + .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .build(); - - client.setIamPolicy(request); + client.detachSubscription(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void getIamPolicyTest() { - int version = 351608024; - ByteString etag = ByteString.copyFromUtf8("21"); - Policy expectedResponse = Policy.newBuilder().setVersion(version).setEtag(etag).build(); + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); mockIAMPolicy.addResponse(expectedResponse); - ResourceName resource = ProjectName.of("[PROJECT]"); - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder().setResource(resource.toString()).build(); + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); - Policy actualResponse = client.getIamPolicy(request); + Policy actualResponse = client.setIamPolicy(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = (GetIamPolicyRequest) actualRequests.get(0); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource())); + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -575,46 +830,48 @@ public void getIamPolicyTest() { } @Test - @SuppressWarnings("all") - public void getIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockIAMPolicy.addException(exception); try { - ResourceName resource = ProjectName.of("[PROJECT]"); - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder().setResource(resource.toString()).build(); - - client.getIamPolicy(request); + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setPolicy(Policy.newBuilder().build()) + .build(); + client.setIamPolicy(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void testIamPermissionsTest() { - TestIamPermissionsResponse expectedResponse = TestIamPermissionsResponse.newBuilder().build(); + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); mockIAMPolicy.addResponse(expectedResponse); - ResourceName resource = ProjectName.of("[PROJECT]"); - List permissions = new ArrayList<>(); - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource.toString()) - .addAllPermissions(permissions) + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) .build(); - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Policy actualResponse = client.getIamPolicy(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = (TestIamPermissionsRequest) actualRequests.get(0); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - Assert.assertEquals(Objects.toString(resource), Objects.toString(actualRequest.getResource())); - Assert.assertEquals(permissions, actualRequest.getPermissionsList()); + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -622,47 +879,44 @@ public void testIamPermissionsTest() { } @Test - @SuppressWarnings("all") - public void testIamPermissionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockIAMPolicy.addException(exception); try { - ResourceName resource = ProjectName.of("[PROJECT]"); - List permissions = new ArrayList<>(); - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource.toString()) - .addAllPermissions(permissions) + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) .build(); - - client.testIamPermissions(request); + client.getIamPolicy(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } @Test - @SuppressWarnings("all") - public void detachSubscriptionTest() { - DetachSubscriptionResponse expectedResponse = DetachSubscriptionResponse.newBuilder().build(); - mockPublisher.addResponse(expectedResponse); + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - DetachSubscriptionRequest request = - DetachSubscriptionRequest.newBuilder().setSubscription(subscription.toString()).build(); + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) + .build(); - DetachSubscriptionResponse actualResponse = client.detachSubscription(request); + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); Assert.assertEquals(expectedResponse, actualResponse); - List actualRequests = mockPublisher.getRequests(); + List actualRequests = mockIAMPolicy.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DetachSubscriptionRequest actualRequest = (DetachSubscriptionRequest) actualRequests.get(0); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - Assert.assertEquals( - subscription, ProjectSubscriptionName.parse(actualRequest.getSubscription())); + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -670,21 +924,20 @@ public void detachSubscriptionTest() { } @Test - @SuppressWarnings("all") - public void detachSubscriptionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); - mockPublisher.addException(exception); + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); try { - ProjectSubscriptionName subscription = - ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); - DetachSubscriptionRequest request = - DetachSubscriptionRequest.newBuilder().setSubscription(subscription.toString()).build(); - - client.detachSubscription(request); + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(ProjectName.of("[PROJECT]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception + // Expected exception. } } } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index 42c0ab61f027..4050e3e1aa34 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -23,18 +23,26 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; -/** AUTO-GENERATED DOCUMENTATION AND CLASS */ -@javax.annotation.Generated("by GAPIC protoc plugin") +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") public class ProjectName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = + private static final PathTemplate PROJECT = PathTemplate.createWithoutUrlEncoding("projects/{project}"); - private volatile Map fieldValuesMap; - private final String project; + @Deprecated + protected ProjectName() { + project = null; + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + public String getProject() { return project; } @@ -47,10 +55,6 @@ public Builder toBuilder() { return new Builder(this); } - private ProjectName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - } - public static ProjectName of(String project) { return newBuilder().setProject(project).build(); } @@ -64,7 +68,7 @@ public static ProjectName parse(String formattedString) { return null; } Map matchMap = - PATH_TEMPLATE.validatedMatch( + PROJECT.validatedMatch( formattedString, "ProjectName.parse: formattedString not in valid format"); return of(matchMap.get("project")); } @@ -78,7 +82,7 @@ public static List parseList(List formattedStrings) { } public static List toStringList(List values) { - List list = new ArrayList(values.size()); + List list = new ArrayList<>(values.size()); for (ProjectName value : values) { if (value == null) { list.add(""); @@ -90,15 +94,18 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); + return PROJECT.matches(formattedString); } + @Override public Map getFieldValuesMap() { if (fieldValuesMap == null) { synchronized (this) { if (fieldValuesMap == null) { ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); + if (project != null) { + fieldMapBuilder.put("project", project); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -112,14 +119,35 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PATH_TEMPLATE.instantiate("project", project); + return PROJECT.instantiate("project", project); } - /** Builder for ProjectName. */ - public static class Builder { + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ProjectName that = ((ProjectName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}. */ + public static class Builder { private String project; + protected Builder() {} + public String getProject() { return project; } @@ -129,34 +157,12 @@ public Builder setProject(String project) { return this; } - private Builder() {} - private Builder(ProjectName projectName) { - project = projectName.project; + this.project = projectName.project; } public ProjectName build() { return new ProjectName(this); } } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof ProjectName) { - ProjectName that = (ProjectName) o; - return (this.project.equals(that.project)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - return h; - } } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java index abfffb2eef7f..6f0a86d375d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java @@ -19,8 +19,6 @@ import com.google.api.pathtemplate.PathTemplate; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; import java.util.Map; /** AUTO-GENERATED DOCUMENTATION AND CLASS */ @@ -74,26 +72,6 @@ public static ProjectTopicName parse(String formattedString) { return of(matchMap.get("project"), matchMap.get("topic")); } - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (ProjectTopicName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - public static boolean isParsableFrom(String formattedString) { return PATH_TEMPLATE.matches(formattedString); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 9ce64bc0ccbc..1404e218e93e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -187,6 +187,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -252,268 +256,277 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ersistence_regions\030\001 \003(\t\"t\n\016SchemaSettin" + "gs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" + "eapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.goo" - + "gle.pubsub.v1.Encoding\"\204\003\n\005Topic\022\021\n\004name" + + "gle.pubsub.v1.Encoding\"\303\003\n\005Topic\022\021\n\004name" + "\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#.google.pub" + "sub.v1.Topic.LabelsEntry\022F\n\026message_stor" + "age_policy\030\003 \001(\0132&.google.pubsub.v1.Mess" + "ageStoragePolicy\022\024\n\014kms_key_name\030\005 \001(\t\0229" + "\n\017schema_settings\030\006 \001(\0132 .google.pubsub." + "v1.SchemaSettings\022\025\n\rsatisfies_pzs\030\007 \001(\010" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:T\352AQ\n\033pubsub.googleapis.com/Topi" - + "c\022!projects/{project}/topics/{topic}\022\017_d" - + "eleted-topic_\"\361\001\n\rPubsubMessage\022\014\n\004data\030" - + "\001 \001(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsu" - + "b.v1.PubsubMessage.AttributesEntry\022\022\n\nme" - + "ssage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022\024\n\014ordering_key" - + "\030\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005" - + "topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" - + "om/Topic\"w\n\022UpdateTopicRequest\022+\n\005topic\030" - + "\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001" - + "(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022" - + "6\n\010messages\030\002 \003(\0132\037.google.pubsub.v1.Pub" - + "subMessageB\003\340A\002\"&\n\017PublishResponse\022\023\n\013me" - + "ssage_ids\030\001 \003(\t\"\200\001\n\021ListTopicsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourceman" - + "ager.googleapis.com/Project\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListTopics" - + "Response\022\'\n\006topics\030\001 \003(\0132\027.google.pubsub" - + ".v1.Topic\022\027\n\017next_page_token\030\002 \001(\t\"z\n\035Li" - + "stTopicSubscriptionsRequest\0222\n\005topic\030\001 \001" - + "(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"y" - + "\n\036ListTopicSubscriptionsResponse\022>\n\rsubs" - + "criptions\030\001 \003(\tB\'\372A$\n\"pubsub.googleapis." - + "com/Subscription\022\027\n\017next_page_token\030\002 \001(" - + "\t\"v\n\031ListTopicSnapshotsRequest\0222\n\005topic\030" - + "\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Top" - + "ic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"H\n\032ListTopicSnapshotsResponse\022\021\n\tsnaps" - + "hots\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"H\n\022D" - + "eleteTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035" - + "\n\033pubsub.googleapis.com/Topic\"]\n\031DetachS" - + "ubscriptionRequest\022@\n\014subscription\030\001 \001(\t" - + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" - + "tion\"\034\n\032DetachSubscriptionResponse\"\300\005\n\014S" - + "ubscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030" - + "\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Top" - + "ic\0221\n\013push_config\030\004 \001(\0132\034.google.pubsub." - + "v1.PushConfig\022\034\n\024ack_deadline_seconds\030\005 " - + "\001(\005\022\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032me" - + "ssage_retention_duration\030\010 \001(\0132\031.google." - + "protobuf.Duration\022:\n\006labels\030\t \003(\0132*.goog" - + "le.pubsub.v1.Subscription.LabelsEntry\022\037\n" - + "\027enable_message_ordering\030\n \001(\010\022=\n\021expira" - + "tion_policy\030\013 \001(\0132\".google.pubsub.v1.Exp" - + "irationPolicy\022\016\n\006filter\030\014 \001(\t\022>\n\022dead_le" - + "tter_policy\030\r \001(\0132\".google.pubsub.v1.Dea" - + "dLetterPolicy\0223\n\014retry_policy\030\016 \001(\0132\035.go" - + "ogle.pubsub.v1.RetryPolicy\022\020\n\010detached\030\017" - + " \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub.googleapis.com/" - + "Subscription\022/projects/{project}/subscri" - + "ptions/{subscription}\"u\n\013RetryPolicy\0222\n\017" - + "minimum_backoff\030\001 \001(\0132\031.google.protobuf." - + "Duration\0222\n\017maximum_backoff\030\002 \001(\0132\031.goog" - + "le.protobuf.Duration\"L\n\020DeadLetterPolicy" - + "\022\031\n\021dead_letter_topic\030\001 \001(\t\022\035\n\025max_deliv" - + "ery_attempts\030\002 \001(\005\":\n\020ExpirationPolicy\022&" - + "\n\003ttl\030\001 \001(\0132\031.google.protobuf.Duration\"\255" - + "\002\n\nPushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\n" - + "attributes\030\002 \003(\0132,.google.pubsub.v1.Push" - + "Config.AttributesEntry\022<\n\noidc_token\030\003 \001" - + "(\0132&.google.pubsub.v1.PushConfig.OidcTok" - + "enH\000\032<\n\tOidcToken\022\035\n\025service_account_ema" - + "il\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017Attributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" - + "\025authentication_method\"m\n\017ReceivedMessag" - + "e\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.goo" - + "gle.pubsub.v1.PubsubMessage\022\030\n\020delivery_" - + "attempt\030\003 \001(\005\"Z\n\026GetSubscriptionRequest\022" - + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" - + "ogleapis.com/Subscription\"\214\001\n\031UpdateSubs" - + "criptionRequest\0229\n\014subscription\030\001 \001(\0132\036." - + "google.pubsub.v1.SubscriptionB\003\340A\002\0224\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\"\207\001\n\030ListSubscriptionsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourceman" - + "ager.googleapis.com/Project\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031ListSubscr" - + "iptionsResponse\0225\n\rsubscriptions\030\001 \003(\0132\036" - + ".google.pubsub.v1.Subscription\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"]\n\031DeleteSubscriptionReq" - + "uest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubs" - + "ub.googleapis.com/Subscription\"\223\001\n\027Modif" - + "yPushConfigRequest\022@\n\014subscription\030\001 \001(\t" - + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" - + "tion\0226\n\013push_config\030\002 \001(\0132\034.google.pubsu" - + "b.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014" - + "subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\022!\n\022return_immedia" - + "tely\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B" - + "\003\340A\002\"L\n\014PullResponse\022<\n\021received_message" - + "s\030\001 \003(\0132!.google.pubsub.v1.ReceivedMessa" - + "ge\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subsc" - + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" - + ".com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022" - + "!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Ac" - + "knowledgeRequest\022@\n\014subscription\030\001 \001(\tB*" + + "\022=\n\032message_retention_duration\030\010 \001(\0132\031.g" + + "oogle.protobuf.Duration\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:T\352AQ\n\033pub" + + "sub.googleapis.com/Topic\022!projects/{proj" + + "ect}/topics/{topic}\022\017_deleted-topic_\"\361\001\n" + + "\rPubsubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattribut" + + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" + + "e.AttributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n" + + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017Attribu" + + "tesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"E\n\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" + + "A\035\n\033pubsub.googleapis.com/Topic\"w\n\022Updat" + + "eTopicRequest\022+\n\005topic\030\001 \001(\0132\027.google.pu" + + "bsub.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\016Publ" + + "ishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" + + "b.googleapis.com/Topic\0226\n\010messages\030\002 \003(\013" + + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"&" + + "\n\017PublishResponse\022\023\n\013message_ids\030\001 \003(\t\"\200" + + "\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB3\340" + + "A\002\372A-\n+cloudresourcemanager.googleapis.c" + + "om/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\"V\n\022ListTopicsResponse\022\'\n\006topic" + + "s\030\001 \003(\0132\027.google.pubsub.v1.Topic\022\027\n\017next" + + "_page_token\030\002 \001(\t\"z\n\035ListTopicSubscripti" + + "onsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" + + "b.googleapis.com/Topic\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036ListTopicSubscr" + + "iptionsResponse\022>\n\rsubscriptions\030\001 \003(\tB\'" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "\027\n\017next_page_token\030\002 \001(\t\"v\n\031ListTopicSna" + + "pshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" + + "bsub.googleapis.com/Topic\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\032ListTopicSna" + + "pshotsResponse\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"H\n\022DeleteTopicRequest" + + "\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleap" + + "is.com/Topic\"]\n\031DetachSubscriptionReques" + + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\"\034\n\032DetachSub" + + "scriptionResponse\"\212\006\n\014Subscription\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pu" + + "bsub.googleapis.com/Topic\0221\n\013push_config" + + "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\022\034\n\024" + + "ack_deadline_seconds\030\005 \001(\005\022\035\n\025retain_ack" + + "ed_messages\030\007 \001(\010\022=\n\032message_retention_d" + + "uration\030\010 \001(\0132\031.google.protobuf.Duration" + + "\022:\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subs" + + "cription.LabelsEntry\022\037\n\027enable_message_o" + + "rdering\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\013" + + "2\".google.pubsub.v1.ExpirationPolicy\022\016\n\006" + + "filter\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\013" + + "2\".google.pubsub.v1.DeadLetterPolicy\0223\n\014" + + "retry_policy\030\016 \001(\0132\035.google.pubsub.v1.Re" + + "tryPolicy\022\020\n\010detached\030\017 \001(\010\022H\n topic_mes" + + "sage_retention_duration\030\021 \001(\0132\031.google.p" + + "rotobuf.DurationB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsu" + + "b.googleapis.com/Subscription\022/projects/" + + "{project}/subscriptions/{subscription}\"u" + + "\n\013RetryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031" + + ".google.protobuf.Duration\0222\n\017maximum_bac" + + "koff\030\002 \001(\0132\031.google.protobuf.Duration\"L\n" + + "\020DeadLetterPolicy\022\031\n\021dead_letter_topic\030\001" + + " \001(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020E" + + "xpirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.pr" + + "otobuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_e" + + "ndpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.goog" + + "le.pubsub.v1.PushConfig.AttributesEntry\022" + + "<\n\noidc_token\030\003 \001(\0132&.google.pubsub.v1.P" + + "ushConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025se" + + "rvice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 " + + "\001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001B\027\n\025authentication_method\"" + + "m\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007me" + + "ssage\030\002 \001(\0132\037.google.pubsub.v1.PubsubMes" + + "sage\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n\026GetSub" + + "scriptionRequest\022@\n\014subscription\030\001 \001(\tB*" + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" - + "on\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\251\002\n\024StreamingPu" - + "llRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022\017\n\007a" - + "ck_ids\030\002 \003(\t\022\037\n\027modify_deadline_seconds\030" - + "\003 \003(\005\022\037\n\027modify_deadline_ack_ids\030\004 \003(\t\022(" - + "\n\033stream_ack_deadline_seconds\030\005 \001(\005B\003\340A\002" - + "\022\021\n\tclient_id\030\006 \001(\t\022 \n\030max_outstanding_m" - + "essages\030\007 \001(\003\022\035\n\025max_outstanding_bytes\030\010" - + " \001(\003\"U\n\025StreamingPullResponse\022<\n\021receive" - + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" - + "ivedMessage\"\203\002\n\025CreateSnapshotRequest\0224\n" - + "\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" - + "om/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A" - + "$\n\"pubsub.googleapis.com/Subscription\022C\n" - + "\006labels\030\003 \003(\01323.google.pubsub.v1.CreateS" - + "napshotRequest.LabelsEntry\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025Up" - + "dateSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032." - + "google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" - + "\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic" - + "\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic" - + "\022/\n\013expire_time\030\003 \001(\0132\032.google.protobuf." - + "Timestamp\0226\n\006labels\030\004 \003(\0132&.google.pubsu" - + "b.v1.Snapshot.LabelsEntry\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036p" - + "ubsub.googleapis.com/Snapshot\022\'projects/" - + "{project}/snapshots/{snapshot}\"N\n\022GetSna" - + "pshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036" - + "pubsub.googleapis.com/Snapshot\"\203\001\n\024ListS" - + "napshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-" - + "\n+cloudresourcemanager.googleapis.com/Pr" - + "oject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapsho" - + "ts\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n\017" - + "next_page_token\030\002 \001(\t\"Q\n\025DeleteSnapshotR" - + "equest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub" - + ".googleapis.com/Snapshot\"\276\001\n\013SeekRequest" - + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\022*\n\004time\030\002 \001(\013" - + "2\032.google.protobuf.TimestampH\000\0227\n\010snapsh" - + "ot\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/Sna" - + "pshotH\000B\010\n\006target\"\016\n\014SeekResponse2\243\013\n\tPu" - + "blisher\022q\n\013CreateTopic\022\027.google.pubsub.v" - + "1.Topic\032\027.google.pubsub.v1.Topic\"0\202\323\344\223\002#" - + "\032\036/v1/{name=projects/*/topics/*}:\001*\332A\004na" - + "me\022}\n\013UpdateTopic\022$.google.pubsub.v1.Upd" - + "ateTopicRequest\032\027.google.pubsub.v1.Topic" - + "\"/\202\323\344\223\002)2$/v1/{topic.name=projects/*/top" - + "ics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1" - + ".PublishRequest\032!.google.pubsub.v1.Publi" - + "shResponse\"C\202\323\344\223\002,\"\'/v1/{topic=projects/" - + "*/topics/*}:publish:\001*\332A\016topic,messages\022" - + "w\n\010GetTopic\022!.google.pubsub.v1.GetTopicR" - + "equest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002!\022" - + "\037/v1/{topic=projects/*/topics/*}\332A\005topic" - + "\022\212\001\n\nListTopics\022#.google.pubsub.v1.ListT" - + "opicsRequest\032$.google.pubsub.v1.ListTopi" - + "csResponse\"1\202\323\344\223\002!\022\037/v1/{project=project" - + "s/*}/topics\332A\007project\022\272\001\n\026ListTopicSubsc" - + "riptions\022/.google.pubsub.v1.ListTopicSub" - + "scriptionsRequest\0320.google.pubsub.v1.Lis" - + "tTopicSubscriptionsResponse\"=\202\323\344\223\002/\022-/v1" - + "/{topic=projects/*/topics/*}/subscriptio" - + "ns\332A\005topic\022\252\001\n\022ListTopicSnapshots\022+.goog" - + "le.pubsub.v1.ListTopicSnapshotsRequest\032," - + ".google.pubsub.v1.ListTopicSnapshotsResp" - + "onse\"9\202\323\344\223\002+\022)/v1/{topic=projects/*/topi" - + "cs/*}/snapshots\332A\005topic\022|\n\013DeleteTopic\022$" - + ".google.pubsub.v1.DeleteTopicRequest\032\026.g" - + "oogle.protobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topic" - + "=projects/*/topics/*}\332A\005topic\022\255\001\n\022Detach" - + "Subscription\022+.google.pubsub.v1.DetachSu" - + "bscriptionRequest\032,.google.pubsub.v1.Det" - + "achSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{su" - + "bscription=projects/*/subscriptions/*}:d" - + "etach\032p\312A\025pubsub.googleapis.com\322AUhttps:" - + "//www.googleapis.com/auth/cloud-platform" - + ",https://www.googleapis.com/auth/pubsub2" - + "\203\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036." - + "google.pubsub.v1.Subscription\032\036.google.p" - + "ubsub.v1.Subscription\"^\202\323\344\223\002*\032%/v1/{name" - + "=projects/*/subscriptions/*}:\001*\332A+name,t" - + "opic,push_config,ack_deadline_seconds\022\241\001" - + "\n\017GetSubscription\022(.google.pubsub.v1.Get" - + "SubscriptionRequest\032\036.google.pubsub.v1.S" - + "ubscription\"D\202\323\344\223\002/\022-/v1/{subscription=p" - + "rojects/*/subscriptions/*}\332A\014subscriptio" - + "n\022\240\001\n\022UpdateSubscription\022+.google.pubsub" - + ".v1.UpdateSubscriptionRequest\032\036.google.p" - + "ubsub.v1.Subscription\"=\202\323\344\223\002722/v1/{subs" - + "cription.name=projects/*/subscriptions/*" - + "}:\001*\022\246\001\n\021ListSubscriptions\022*.google.pubs" - + "ub.v1.ListSubscriptionsRequest\032+.google." - + "pubsub.v1.ListSubscriptionsResponse\"8\202\323\344" - + "\223\002(\022&/v1/{project=projects/*}/subscripti" - + "ons\332A\007project\022\237\001\n\022DeleteSubscription\022+.g" - + "oogle.pubsub.v1.DeleteSubscriptionReques" - + "t\032\026.google.protobuf.Empty\"D\202\323\344\223\002/*-/v1/{" - + "subscription=projects/*/subscriptions/*}" - + "\332A\014subscription\022\317\001\n\021ModifyAckDeadline\022*." - + "google.pubsub.v1.ModifyAckDeadlineReques" - + "t\032\026.google.protobuf.Empty\"v\202\323\344\223\002D\"?/v1/{" - + "subscription=projects/*/subscriptions/*}" - + ":modifyAckDeadline:\001*\332A)subscription,ack" - + "_ids,ack_deadline_seconds\022\250\001\n\013Acknowledg" - + "e\022$.google.pubsub.v1.AcknowledgeRequest\032" - + "\026.google.protobuf.Empty\"[\202\323\344\223\002>\"9/v1/{su" - + "bscription=projects/*/subscriptions/*}:a" - + "cknowledge:\001*\332A\024subscription,ack_ids\022\263\001\n" - + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.g" - + "oogle.pubsub.v1.PullResponse\"l\202\323\344\223\0027\"2/v" - + "1/{subscription=projects/*/subscriptions" - + "/*}:pull:\001*\332A,subscription,return_immedi" - + "ately,max_messages\022f\n\rStreamingPull\022&.go" - + "ogle.pubsub.v1.StreamingPullRequest\032\'.go" - + "ogle.pubsub.v1.StreamingPullResponse\"\000(\001" - + "0\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub." - + "v1.ModifyPushConfigRequest\032\026.google.prot" - + "obuf.Empty\"d\202\323\344\223\002C\">/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:modifyPushConf" - + "ig:\001*\332A\030subscription,push_config\022\211\001\n\013Get" - + "Snapshot\022$.google.pubsub.v1.GetSnapshotR" - + "equest\032\032.google.pubsub.v1.Snapshot\"8\202\323\344\223" - + "\002\'\022%/v1/{snapshot=projects/*/snapshots/*" - + "}\332A\010snapshot\022\226\001\n\rListSnapshots\022&.google." - + "pubsub.v1.ListSnapshotsRequest\032\'.google." - + "pubsub.v1.ListSnapshotsResponse\"4\202\323\344\223\002$\022" - + "\"/v1/{project=projects/*}/snapshots\332A\007pr" - + "oject\022\227\001\n\016CreateSnapshot\022\'.google.pubsub" - + ".v1.CreateSnapshotRequest\032\032.google.pubsu" - + "b.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{name=project" - + "s/*/snapshots/*}:\001*\332A\021name,subscription\022" - + "\214\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.Up" - + "dateSnapshotRequest\032\032.google.pubsub.v1.S" - + "napshot\"5\202\323\344\223\002/2*/v1/{snapshot.name=proj" - + "ects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapsho" - + "t\022\'.google.pubsub.v1.DeleteSnapshotReque" - + "st\032\026.google.protobuf.Empty\"8\202\323\344\223\002\'*%/v1/" - + "{snapshot=projects/*/snapshots/*}\332A\010snap" - + "shot\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReq" - + "uest\032\036.google.pubsub.v1.SeekResponse\"=\202\323" - + "\344\223\0027\"2/v1/{subscription=projects/*/subsc" - + "riptions/*}:seek:\001*\032p\312A\025pubsub.googleapi" - + "s.com\322AUhttps://www.googleapis.com/auth/" - + "cloud-platform,https://www.googleapis.co" - + "m/auth/pubsubB\256\001\n\024com.google.pubsub.v1B\013" - + "PubsubProtoP\001Z6google.golang.org/genprot" - + "o/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026Googl" - + "e.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\" - + "V1\352\002\031Google::Cloud::PubSub::V1b\006proto3" + + "on\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subs" + + "cription\030\001 \001(\0132\036.google.pubsub.v1.Subscr" + + "iptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscr" + + "iptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Pro" + + "ject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubs" + + "criptions\030\001 \003(\0132\036.google.pubsub.v1.Subsc" + + "ription\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Dele" + + "teSubscriptionRequest\022@\n\014subscription\030\001 " + + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" + + "ription\"\223\001\n\027ModifyPushConfigRequest\022@\n\014s" + + "ubscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.google" + + "apis.com/Subscription\0226\n\013push_config\030\002 \001" + + "(\0132\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001" + + "\n\013PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "!\n\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014ma" + + "x_messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n" + + "\021received_messages\030\001 \003(\0132!.google.pubsub" + + ".v1.ReceivedMessage\"\225\001\n\030ModifyAckDeadlin" + + "eRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" + + "pubsub.googleapis.com/Subscription\022\024\n\007ac" + + "k_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds" + + "\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A" + + "\002\"\251\002\n\024StreamingPullRequest\022@\n\014subscripti" + + "on\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/" + + "Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_" + + "deadline_seconds\030\003 \003(\005\022\037\n\027modify_deadlin" + + "e_ack_ids\030\004 \003(\t\022(\n\033stream_ack_deadline_s" + + "econds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030" + + "max_outstanding_messages\030\007 \001(\003\022\035\n\025max_ou" + + "tstanding_bytes\030\010 \001(\003\"\362\001\n\025StreamingPullR" + + "esponse\022<\n\021received_messages\030\001 \003(\0132!.goo" + + "gle.pubsub.v1.ReceivedMessage\022_\n\027subscri" + + "ption_properties\030\004 \001(\0132>.google.pubsub.v" + + "1.StreamingPullResponse.SubscriptionProp" + + "erties\032:\n\026SubscriptionProperties\022 \n\030mess" + + "age_ordering_enabled\030\002 \001(\010\"\203\002\n\025CreateSna" + + "pshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubs" + + "ub.googleapis.com/Snapshot\022@\n\014subscripti" + + "on\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/" + + "Subscription\022C\n\006labels\030\003 \003(\01323.google.pu" + + "bsub.v1.CreateSnapshotRequest.LabelsEntr" + + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010sn" + + "apshot\030\001 \001(\0132\032.google.pubsub.v1.Snapshot" + + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name" + + "\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googl" + + "eapis.com/Topic\022/\n\013expire_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\013" + + "2&.google.pubsub.v1.Snapshot.LabelsEntry" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Snap" + + "shot\022\'projects/{project}/snapshots/{snap" + + "shot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030" + + "\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sna" + + "pshot\"\203\001\n\024ListSnapshotsRequest\022D\n\007projec" + + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" + + "ogleapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapshotsResp" + + "onse\022-\n\tsnapshots\030\001 \003(\0132\032.google.pubsub." + + "v1.Snapshot\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\025" + + "DeleteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB" + + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"" + + "\276\001\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" + + "n\022*\n\004time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubsub.goo" + + "gleapis.com/SnapshotH\000B\010\n\006target\"\016\n\014Seek" + + "Response2\243\013\n\tPublisher\022q\n\013CreateTopic\022\027." + + "google.pubsub.v1.Topic\032\027.google.pubsub.v" + + "1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=projects/*/to" + + "pics/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$.googl" + + "e.pubsub.v1.UpdateTopicRequest\032\027.google." + + "pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name" + + "=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .g" + + "oogle.pubsub.v1.PublishRequest\032!.google." + + "pubsub.v1.PublishResponse\"C\202\323\344\223\002,\"\'/v1/{" + + "topic=projects/*/topics/*}:publish:\001*\332A\016" + + "topic,messages\022w\n\010GetTopic\022!.google.pubs" + + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" + + ".Topic\"/\202\323\344\223\002!\022\037/v1/{topic=projects/*/to" + + "pics/*}\332A\005topic\022\212\001\n\nListTopics\022#.google." + + "pubsub.v1.ListTopicsRequest\032$.google.pub" + + "sub.v1.ListTopicsResponse\"1\202\323\344\223\002!\022\037/v1/{" + + "project=projects/*}/topics\332A\007project\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub." + + "v1.ListTopicSubscriptionsRequest\0320.googl" + + "e.pubsub.v1.ListTopicSubscriptionsRespon" + + "se\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/topics" + + "/*}/subscriptions\332A\005topic\022\252\001\n\022ListTopicS" + + "napshots\022+.google.pubsub.v1.ListTopicSna" + + "pshotsRequest\032,.google.pubsub.v1.ListTop" + + "icSnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{topic=" + + "projects/*/topics/*}/snapshots\332A\005topic\022|" + + "\n\013DeleteTopic\022$.google.pubsub.v1.DeleteT" + + "opicRequest\032\026.google.protobuf.Empty\"/\202\323\344" + + "\223\002!*\037/v1/{topic=projects/*/topics/*}\332A\005t" + + "opic\022\255\001\n\022DetachSubscription\022+.google.pub" + + "sub.v1.DetachSubscriptionRequest\032,.googl" + + "e.pubsub.v1.DetachSubscriptionResponse\"<" + + "\202\323\344\223\0026\"4/v1/{subscription=projects/*/sub" + + "scriptions/*}:detach\032p\312A\025pubsub.googleap" + + "is.com\322AUhttps://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/pubsub2\240\025\n\nSubscriber\022\264\001\n\022Create" + + "Subscription\022\036.google.pubsub.v1.Subscrip" + + "tion\032\036.google.pubsub.v1.Subscription\"^\202\323" + + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" + + "/*}:\001*\332A+name,topic,push_config,ack_dead" + + "line_seconds\022\241\001\n\017GetSubscription\022(.googl" + + "e.pubsub.v1.GetSubscriptionRequest\032\036.goo" + + "gle.pubsub.v1.Subscription\"D\202\323\344\223\002/\022-/v1/" + + "{subscription=projects/*/subscriptions/*" + + "}\332A\014subscription\022\240\001\n\022UpdateSubscription\022" + + "+.google.pubsub.v1.UpdateSubscriptionReq" + + "uest\032\036.google.pubsub.v1.Subscription\"=\202\323" + + "\344\223\002722/v1/{subscription.name=projects/*/" + + "subscriptions/*}:\001*\022\246\001\n\021ListSubscription" + + "s\022*.google.pubsub.v1.ListSubscriptionsRe" + + "quest\032+.google.pubsub.v1.ListSubscriptio" + + "nsResponse\"8\202\323\344\223\002(\022&/v1/{project=project" + + "s/*}/subscriptions\332A\007project\022\237\001\n\022DeleteS" + + "ubscription\022+.google.pubsub.v1.DeleteSub" + + "scriptionRequest\032\026.google.protobuf.Empty" + + "\"D\202\323\344\223\002/*-/v1/{subscription=projects/*/s" + + "ubscriptions/*}\332A\014subscription\022\317\001\n\021Modif" + + "yAckDeadline\022*.google.pubsub.v1.ModifyAc" + + "kDeadlineRequest\032\026.google.protobuf.Empty" + + "\"v\202\323\344\223\002D\"?/v1/{subscription=projects/*/s" + + "ubscriptions/*}:modifyAckDeadline:\001*\332A)s" + + "ubscription,ack_ids,ack_deadline_seconds" + + "\022\250\001\n\013Acknowledge\022$.google.pubsub.v1.Ackn" + + "owledgeRequest\032\026.google.protobuf.Empty\"[" + + "\202\323\344\223\002>\"9/v1/{subscription=projects/*/sub" + + "scriptions/*}:acknowledge:\001*\332A\024subscript" + + "ion,ack_ids\022\320\001\n\004Pull\022\035.google.pubsub.v1." + + "PullRequest\032\036.google.pubsub.v1.PullRespo" + + "nse\"\210\001\202\323\344\223\0027\"2/v1/{subscription=projects" + + "/*/subscriptions/*}:pull:\001*\332A,subscripti" + + "on,return_immediately,max_messages\332A\031sub" + + "scription,max_messages\022f\n\rStreamingPull\022" + + "&.google.pubsub.v1.StreamingPullRequest\032" + + "\'.google.pubsub.v1.StreamingPullResponse" + + "\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).google.pub" + + "sub.v1.ModifyPushConfigRequest\032\026.google." + + "protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subscriptio" + + "n=projects/*/subscriptions/*}:modifyPush" + + "Config:\001*\332A\030subscription,push_config\022\211\001\n" + + "\013GetSnapshot\022$.google.pubsub.v1.GetSnaps" + + "hotRequest\032\032.google.pubsub.v1.Snapshot\"8" + + "\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsho" + + "ts/*}\332A\010snapshot\022\226\001\n\rListSnapshots\022&.goo" + + "gle.pubsub.v1.ListSnapshotsRequest\032\'.goo" + + "gle.pubsub.v1.ListSnapshotsResponse\"4\202\323\344" + + "\223\002$\022\"/v1/{project=projects/*}/snapshots\332" + + "A\007project\022\227\001\n\016CreateSnapshot\022\'.google.pu" + + "bsub.v1.CreateSnapshotRequest\032\032.google.p" + + "ubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{name=pro" + + "jects/*/snapshots/*}:\001*\332A\021name,subscript" + + "ion\022\214\001\n\016UpdateSnapshot\022\'.google.pubsub.v" + + "1.UpdateSnapshotRequest\032\032.google.pubsub." + + "v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot.name=" + + "projects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSna" + + "pshot\022\'.google.pubsub.v1.DeleteSnapshotR" + + "equest\032\026.google.protobuf.Empty\"8\202\323\344\223\002\'*%" + + "/v1/{snapshot=projects/*/snapshots/*}\332A\010" + + "snapshot\022\204\001\n\004Seek\022\035.google.pubsub.v1.See" + + "kRequest\032\036.google.pubsub.v1.SeekResponse" + + "\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/s" + + "ubscriptions/*}:seek:\001*\032p\312A\025pubsub.googl" + + "eapis.com\322AUhttps://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapi" + + "s.com/auth/pubsubB\256\001\n\024com.google.pubsub." + + "v1B\013PubsubProtoP\001Z6google.golang.org/gen" + + "proto/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026G" + + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" + + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -556,6 +569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KmsKeyName", "SchemaSettings", "SatisfiesPzs", + "MessageRetentionDuration", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); @@ -702,6 +716,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterPolicy", "RetryPolicy", "Detached", + "TopicMessageRetentionDuration", }); internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); @@ -868,7 +883,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, new java.lang.String[] { - "ReceivedMessages", + "ReceivedMessages", "SubscriptionProperties", + }); + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor = + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor, + new java.lang.String[] { + "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = getDescriptor().getMessageTypes().get(35); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java index 658f517c0ea4..af7c5feab1fb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -23,19 +23,29 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; -/** AUTO-GENERATED DOCUMENTATION AND CLASS */ -@javax.annotation.Generated("by GAPIC protoc plugin") +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") public class SchemaName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = + private static final PathTemplate PROJECT_SCHEMA = PathTemplate.createWithoutUrlEncoding("projects/{project}/schemas/{schema}"); - private volatile Map fieldValuesMap; - private final String project; private final String schema; + @Deprecated + protected SchemaName() { + project = null; + schema = null; + } + + private SchemaName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + schema = Preconditions.checkNotNull(builder.getSchema()); + } + public String getProject() { return project; } @@ -52,11 +62,6 @@ public Builder toBuilder() { return new Builder(this); } - private SchemaName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - schema = Preconditions.checkNotNull(builder.getSchema()); - } - public static SchemaName of(String project, String schema) { return newBuilder().setProject(project).setSchema(schema).build(); } @@ -70,7 +75,7 @@ public static SchemaName parse(String formattedString) { return null; } Map matchMap = - PATH_TEMPLATE.validatedMatch( + PROJECT_SCHEMA.validatedMatch( formattedString, "SchemaName.parse: formattedString not in valid format"); return of(matchMap.get("project"), matchMap.get("schema")); } @@ -84,7 +89,7 @@ public static List parseList(List formattedStrings) { } public static List toStringList(List values) { - List list = new ArrayList(values.size()); + List list = new ArrayList<>(values.size()); for (SchemaName value : values) { if (value == null) { list.add(""); @@ -96,16 +101,21 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); + return PROJECT_SCHEMA.matches(formattedString); } + @Override public Map getFieldValuesMap() { if (fieldValuesMap == null) { synchronized (this) { if (fieldValuesMap == null) { ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("schema", schema); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (schema != null) { + fieldMapBuilder.put("schema", schema); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -119,15 +129,38 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return PATH_TEMPLATE.instantiate("project", project, "schema", schema); + return PROJECT_SCHEMA.instantiate("project", project, "schema", schema); } - /** Builder for SchemaName. */ - public static class Builder { + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SchemaName that = ((SchemaName) o); + return Objects.equals(this.project, that.project) && Objects.equals(this.schema, that.schema); + } + return false; + } + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(schema); + return h; + } + + /** Builder for projects/{project}/schemas/{schema}. */ + public static class Builder { private String project; private String schema; + protected Builder() {} + public String getProject() { return project; } @@ -146,37 +179,13 @@ public Builder setSchema(String schema) { return this; } - private Builder() {} - private Builder(SchemaName schemaName) { - project = schemaName.project; - schema = schemaName.schema; + this.project = schemaName.project; + this.schema = schemaName.schema; } public SchemaName build() { return new SchemaName(this); } } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof SchemaName) { - SchemaName that = (SchemaName) o; - return (this.project.equals(that.project)) && (this.schema.equals(that.schema)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= schema.hashCode(); - return h; - } } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 8b5c0a1ad1d5..2183582d4520 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -83,6 +83,24 @@ private StreamingPullResponse( com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); break; } + case 34: + { + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder subBuilder = + null; + if (subscriptionProperties_ != null) { + subBuilder = subscriptionProperties_.toBuilder(); + } + subscriptionProperties_ = + input.readMessage( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subscriptionProperties_); + subscriptionProperties_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -120,6 +138,568 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.StreamingPullResponse.Builder.class); } + public interface SubscriptionPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * True iff message ordering is enabled for this subscription.
    +     * 
    + * + * bool message_ordering_enabled = 2; + * + * @return The messageOrderingEnabled. + */ + boolean getMessageOrderingEnabled(); + } + /** + * + * + *
    +   * Subscription properties sent as part of the response.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} + */ + public static final class SubscriptionProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + SubscriptionPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubscriptionProperties.newBuilder() to construct. + private SubscriptionProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubscriptionProperties() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubscriptionProperties(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SubscriptionProperties( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + messageOrderingEnabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); + } + + public static final int MESSAGE_ORDERING_ENABLED_FIELD_NUMBER = 2; + private boolean messageOrderingEnabled_; + /** + * + * + *
    +     * True iff message ordering is enabled for this subscription.
    +     * 
    + * + * bool message_ordering_enabled = 2; + * + * @return The messageOrderingEnabled. + */ + @java.lang.Override + public boolean getMessageOrderingEnabled() { + return messageOrderingEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (messageOrderingEnabled_ != false) { + output.writeBool(2, messageOrderingEnabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (messageOrderingEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, messageOrderingEnabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties)) { + return super.equals(obj); + } + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other = + (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) obj; + + if (getMessageOrderingEnabled() != other.getMessageOrderingEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_ORDERING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMessageOrderingEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Subscription properties sent as part of the response.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); + } + + // Construct using + // com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + messageOrderingEnabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getDefaultInstanceForType() { + return com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties build() { + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties buildPartial() { + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = + new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(this); + result.messageOrderingEnabled_ = messageOrderingEnabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) { + return mergeFrom( + (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other) { + if (other + == com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + .getDefaultInstance()) return this; + if (other.getMessageOrderingEnabled() != false) { + setMessageOrderingEnabled(other.getMessageOrderingEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean messageOrderingEnabled_; + /** + * + * + *
    +       * True iff message ordering is enabled for this subscription.
    +       * 
    + * + * bool message_ordering_enabled = 2; + * + * @return The messageOrderingEnabled. + */ + @java.lang.Override + public boolean getMessageOrderingEnabled() { + return messageOrderingEnabled_; + } + /** + * + * + *
    +       * True iff message ordering is enabled for this subscription.
    +       * 
    + * + * bool message_ordering_enabled = 2; + * + * @param value The messageOrderingEnabled to set. + * @return This builder for chaining. + */ + public Builder setMessageOrderingEnabled(boolean value) { + + messageOrderingEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +       * True iff message ordering is enabled for this subscription.
    +       * 
    + * + * bool message_ordering_enabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearMessageOrderingEnabled() { + + messageOrderingEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + private static final com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscriptionProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubscriptionProperties(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; private java.util.List receivedMessages_; /** @@ -189,6 +769,62 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde return receivedMessages_.get(index); } + public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER = 4; + private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscriptionProperties_; + /** + * + * + *
    +   * Properties associated with this subscription.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * + * @return Whether the subscriptionProperties field is set. + */ + @java.lang.Override + public boolean hasSubscriptionProperties() { + return subscriptionProperties_ != null; + } + /** + * + * + *
    +   * Properties associated with this subscription.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * + * @return The subscriptionProperties. + */ + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getSubscriptionProperties() { + return subscriptionProperties_ == null + ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() + : subscriptionProperties_; + } + /** + * + * + *
    +   * Properties associated with this subscription.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + */ + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder + getSubscriptionPropertiesOrBuilder() { + return getSubscriptionProperties(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -206,6 +842,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < receivedMessages_.size(); i++) { output.writeMessage(1, receivedMessages_.get(i)); } + if (subscriptionProperties_ != null) { + output.writeMessage(4, getSubscriptionProperties()); + } unknownFields.writeTo(output); } @@ -218,6 +857,10 @@ public int getSerializedSize() { for (int i = 0; i < receivedMessages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i)); } + if (subscriptionProperties_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubscriptionProperties()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -235,6 +878,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.pubsub.v1.StreamingPullResponse) obj; if (!getReceivedMessagesList().equals(other.getReceivedMessagesList())) return false; + if (hasSubscriptionProperties() != other.hasSubscriptionProperties()) return false; + if (hasSubscriptionProperties()) { + if (!getSubscriptionProperties().equals(other.getSubscriptionProperties())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -250,6 +897,10 @@ public int hashCode() { hash = (37 * hash) + RECEIVED_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getReceivedMessagesList().hashCode(); } + if (hasSubscriptionProperties()) { + hash = (37 * hash) + SUBSCRIPTION_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getSubscriptionProperties().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -404,6 +1055,12 @@ public Builder clear() { } else { receivedMessagesBuilder_.clear(); } + if (subscriptionPropertiesBuilder_ == null) { + subscriptionProperties_ = null; + } else { + subscriptionProperties_ = null; + subscriptionPropertiesBuilder_ = null; + } return this; } @@ -441,6 +1098,11 @@ public com.google.pubsub.v1.StreamingPullResponse buildPartial() { } else { result.receivedMessages_ = receivedMessagesBuilder_.build(); } + if (subscriptionPropertiesBuilder_ == null) { + result.subscriptionProperties_ = subscriptionProperties_; + } else { + result.subscriptionProperties_ = subscriptionPropertiesBuilder_.build(); + } onBuilt(); return result; } @@ -517,6 +1179,9 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) { } } } + if (other.hasSubscriptionProperties()) { + mergeSubscriptionProperties(other.getSubscriptionProperties()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -902,6 +1567,217 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i return receivedMessagesBuilder_; } + private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + subscriptionProperties_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> + subscriptionPropertiesBuilder_; + /** + * + * + *
    +     * Properties associated with this subscription.
    +     * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * + * @return Whether the subscriptionProperties field is set. + */ + public boolean hasSubscriptionProperties() { + return subscriptionPropertiesBuilder_ != null || subscriptionProperties_ != null; + } + /** + * + * + *
    +     * Properties associated with this subscription.
    +     * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * + * @return The subscriptionProperties. + */ + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getSubscriptionProperties() { + if (subscriptionPropertiesBuilder_ == null) { + return subscriptionProperties_ == null + ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() + : subscriptionProperties_; + } else { + return subscriptionPropertiesBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Properties associated with this subscription.
    +     * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + */ + public Builder setSubscriptionProperties( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { + if (subscriptionPropertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subscriptionProperties_ = value; + onChanged(); + } else { + subscriptionPropertiesBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * Properties associated with this subscription.
    +     * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + */ + public Builder setSubscriptionProperties( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder builderForValue) { + if (subscriptionPropertiesBuilder_ == null) { + subscriptionProperties_ = builderForValue.build(); + onChanged(); + } else { + subscriptionPropertiesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * Properties associated with this subscription.
    +     * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + */ + public Builder mergeSubscriptionProperties( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { + if (subscriptionPropertiesBuilder_ == null) { + if (subscriptionProperties_ != null) { + subscriptionProperties_ = + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder( + subscriptionProperties_) + .mergeFrom(value) + .buildPartial(); + } else { + subscriptionProperties_ = value; + } + onChanged(); + } else { + subscriptionPropertiesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * Properties associated with this subscription.
    +     * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + */ + public Builder clearSubscriptionProperties() { + if (subscriptionPropertiesBuilder_ == null) { + subscriptionProperties_ = null; + onChanged(); + } else { + subscriptionProperties_ = null; + subscriptionPropertiesBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * Properties associated with this subscription.
    +     * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + */ + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder + getSubscriptionPropertiesBuilder() { + + onChanged(); + return getSubscriptionPropertiesFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Properties associated with this subscription.
    +     * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + */ + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder + getSubscriptionPropertiesOrBuilder() { + if (subscriptionPropertiesBuilder_ != null) { + return subscriptionPropertiesBuilder_.getMessageOrBuilder(); + } else { + return subscriptionProperties_ == null + ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() + : subscriptionProperties_; + } + } + /** + * + * + *
    +     * Properties associated with this subscription.
    +     * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> + getSubscriptionPropertiesFieldBuilder() { + if (subscriptionPropertiesBuilder_ == null) { + subscriptionPropertiesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder>( + getSubscriptionProperties(), getParentForChildren(), isClean()); + subscriptionProperties_ = null; + } + return subscriptionPropertiesBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 1bed73f42c67..acaeb4240ff7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -74,4 +74,46 @@ public interface StreamingPullResponseOrBuilder * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); + + /** + * + * + *
    +   * Properties associated with this subscription.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * + * @return Whether the subscriptionProperties field is set. + */ + boolean hasSubscriptionProperties(); + /** + * + * + *
    +   * Properties associated with this subscription.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + * + * @return The subscriptionProperties. + */ + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties(); + /** + * + * + *
    +   * Properties associated with this subscription.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * + */ + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder + getSubscriptionPropertiesOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 3b1afd152826..a4e0edaa8830 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -202,6 +202,21 @@ private Subscription( case 120: { detached_ = input.readBool(); + break; + } + case 138: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (topicMessageRetentionDuration_ != null) { + subBuilder = topicMessageRetentionDuration_.toBuilder(); + } + topicMessageRetentionDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(topicMessageRetentionDuration_); + topicMessageRetentionDuration_ = subBuilder.buildPartial(); + } + break; } default: @@ -460,8 +475,9 @@ public int getAckDeadlineSeconds() { * 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] - * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). + * window. This must be true if you would like to [`Seek` to a timestamp] + * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in + * the past to replay previously-acknowledged messages. * * * bool retain_acked_messages = 7; @@ -930,6 +946,75 @@ public boolean getDetached() { return detached_; } + public static final int TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 17; + private com.google.protobuf.Duration topicMessageRetentionDuration_; + /** + * + * + *
    +   * Output only. Indicates the minimum duration for which a message is retained
    +   * after it is published to the subscription's topic. If this field is set,
    +   * messages published to the subscription's topic in the last
    +   * `topic_message_retention_duration` are always available to subscribers. See
    +   * the `message_retention_duration` field in `Topic`. This field is set only
    +   * in responses from the server; it is ignored if it is set in any requests.
    +   * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the topicMessageRetentionDuration field is set. + */ + @java.lang.Override + public boolean hasTopicMessageRetentionDuration() { + return topicMessageRetentionDuration_ != null; + } + /** + * + * + *
    +   * Output only. Indicates the minimum duration for which a message is retained
    +   * after it is published to the subscription's topic. If this field is set,
    +   * messages published to the subscription's topic in the last
    +   * `topic_message_retention_duration` are always available to subscribers. See
    +   * the `message_retention_duration` field in `Topic`. This field is set only
    +   * in responses from the server; it is ignored if it is set in any requests.
    +   * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The topicMessageRetentionDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getTopicMessageRetentionDuration() { + return topicMessageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : topicMessageRetentionDuration_; + } + /** + * + * + *
    +   * Output only. Indicates the minimum duration for which a message is retained
    +   * after it is published to the subscription's topic. If this field is set,
    +   * messages published to the subscription's topic in the last
    +   * `topic_message_retention_duration` are always available to subscribers. See
    +   * the `message_retention_duration` field in `Topic`. This field is set only
    +   * in responses from the server; it is ignored if it is set in any requests.
    +   * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder() { + return getTopicMessageRetentionDuration(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -982,6 +1067,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (detached_ != false) { output.writeBool(15, detached_); } + if (topicMessageRetentionDuration_ != null) { + output.writeMessage(17, getTopicMessageRetentionDuration()); + } unknownFields.writeTo(output); } @@ -1039,6 +1127,11 @@ public int getSerializedSize() { if (detached_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, detached_); } + if (topicMessageRetentionDuration_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, getTopicMessageRetentionDuration()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1082,6 +1175,12 @@ public boolean equals(final java.lang.Object obj) { if (!getRetryPolicy().equals(other.getRetryPolicy())) return false; } if (getDetached() != other.getDetached()) return false; + if (hasTopicMessageRetentionDuration() != other.hasTopicMessageRetentionDuration()) + return false; + if (hasTopicMessageRetentionDuration()) { + if (!getTopicMessageRetentionDuration().equals(other.getTopicMessageRetentionDuration())) + return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1131,6 +1230,10 @@ public int hashCode() { } hash = (37 * hash) + DETACHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDetached()); + if (hasTopicMessageRetentionDuration()) { + hash = (37 * hash) + TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getTopicMessageRetentionDuration().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1340,6 +1443,12 @@ public Builder clear() { } detached_ = false; + if (topicMessageRetentionDurationBuilder_ == null) { + topicMessageRetentionDuration_ = null; + } else { + topicMessageRetentionDuration_ = null; + topicMessageRetentionDurationBuilder_ = null; + } return this; } @@ -1401,6 +1510,11 @@ public com.google.pubsub.v1.Subscription buildPartial() { result.retryPolicy_ = retryPolicyBuilder_.build(); } result.detached_ = detached_; + if (topicMessageRetentionDurationBuilder_ == null) { + result.topicMessageRetentionDuration_ = topicMessageRetentionDuration_; + } else { + result.topicMessageRetentionDuration_ = topicMessageRetentionDurationBuilder_.build(); + } onBuilt(); return result; } @@ -1490,6 +1604,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.getDetached() != false) { setDetached(other.getDetached()); } + if (other.hasTopicMessageRetentionDuration()) { + mergeTopicMessageRetentionDuration(other.getTopicMessageRetentionDuration()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2089,8 +2206,9 @@ public Builder clearAckDeadlineSeconds() { * 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] - * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). + * window. This must be true if you would like to [`Seek` to a timestamp] + * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in + * the past to replay previously-acknowledged messages. * * * bool retain_acked_messages = 7; @@ -2108,8 +2226,9 @@ public boolean getRetainAckedMessages() { * 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] - * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). + * window. This must be true if you would like to [`Seek` to a timestamp] + * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in + * the past to replay previously-acknowledged messages. * * * bool retain_acked_messages = 7; @@ -2130,8 +2249,9 @@ public Builder setRetainAckedMessages(boolean value) { * 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] - * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). + * window. This must be true if you would like to [`Seek` to a timestamp] + * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in + * the past to replay previously-acknowledged messages. * * * bool retain_acked_messages = 7; @@ -3492,6 +3612,256 @@ public Builder clearDetached() { return this; } + private com.google.protobuf.Duration topicMessageRetentionDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + topicMessageRetentionDurationBuilder_; + /** + * + * + *
    +     * Output only. Indicates the minimum duration for which a message is retained
    +     * after it is published to the subscription's topic. If this field is set,
    +     * messages published to the subscription's topic in the last
    +     * `topic_message_retention_duration` are always available to subscribers. See
    +     * the `message_retention_duration` field in `Topic`. This field is set only
    +     * in responses from the server; it is ignored if it is set in any requests.
    +     * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the topicMessageRetentionDuration field is set. + */ + public boolean hasTopicMessageRetentionDuration() { + return topicMessageRetentionDurationBuilder_ != null + || topicMessageRetentionDuration_ != null; + } + /** + * + * + *
    +     * Output only. Indicates the minimum duration for which a message is retained
    +     * after it is published to the subscription's topic. If this field is set,
    +     * messages published to the subscription's topic in the last
    +     * `topic_message_retention_duration` are always available to subscribers. See
    +     * the `message_retention_duration` field in `Topic`. This field is set only
    +     * in responses from the server; it is ignored if it is set in any requests.
    +     * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The topicMessageRetentionDuration. + */ + public com.google.protobuf.Duration getTopicMessageRetentionDuration() { + if (topicMessageRetentionDurationBuilder_ == null) { + return topicMessageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : topicMessageRetentionDuration_; + } else { + return topicMessageRetentionDurationBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. Indicates the minimum duration for which a message is retained
    +     * after it is published to the subscription's topic. If this field is set,
    +     * messages published to the subscription's topic in the last
    +     * `topic_message_retention_duration` are always available to subscribers. See
    +     * the `message_retention_duration` field in `Topic`. This field is set only
    +     * in responses from the server; it is ignored if it is set in any requests.
    +     * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration value) { + if (topicMessageRetentionDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + topicMessageRetentionDuration_ = value; + onChanged(); + } else { + topicMessageRetentionDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * Output only. Indicates the minimum duration for which a message is retained
    +     * after it is published to the subscription's topic. If this field is set,
    +     * messages published to the subscription's topic in the last
    +     * `topic_message_retention_duration` are always available to subscribers. See
    +     * the `message_retention_duration` field in `Topic`. This field is set only
    +     * in responses from the server; it is ignored if it is set in any requests.
    +     * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTopicMessageRetentionDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (topicMessageRetentionDurationBuilder_ == null) { + topicMessageRetentionDuration_ = builderForValue.build(); + onChanged(); + } else { + topicMessageRetentionDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * Output only. Indicates the minimum duration for which a message is retained
    +     * after it is published to the subscription's topic. If this field is set,
    +     * messages published to the subscription's topic in the last
    +     * `topic_message_retention_duration` are always available to subscribers. See
    +     * the `message_retention_duration` field in `Topic`. This field is set only
    +     * in responses from the server; it is ignored if it is set in any requests.
    +     * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration value) { + if (topicMessageRetentionDurationBuilder_ == null) { + if (topicMessageRetentionDuration_ != null) { + topicMessageRetentionDuration_ = + com.google.protobuf.Duration.newBuilder(topicMessageRetentionDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + topicMessageRetentionDuration_ = value; + } + onChanged(); + } else { + topicMessageRetentionDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * Output only. Indicates the minimum duration for which a message is retained
    +     * after it is published to the subscription's topic. If this field is set,
    +     * messages published to the subscription's topic in the last
    +     * `topic_message_retention_duration` are always available to subscribers. See
    +     * the `message_retention_duration` field in `Topic`. This field is set only
    +     * in responses from the server; it is ignored if it is set in any requests.
    +     * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTopicMessageRetentionDuration() { + if (topicMessageRetentionDurationBuilder_ == null) { + topicMessageRetentionDuration_ = null; + onChanged(); + } else { + topicMessageRetentionDuration_ = null; + topicMessageRetentionDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * Output only. Indicates the minimum duration for which a message is retained
    +     * after it is published to the subscription's topic. If this field is set,
    +     * messages published to the subscription's topic in the last
    +     * `topic_message_retention_duration` are always available to subscribers. See
    +     * the `message_retention_duration` field in `Topic`. This field is set only
    +     * in responses from the server; it is ignored if it is set in any requests.
    +     * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuilder() { + + onChanged(); + return getTopicMessageRetentionDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Indicates the minimum duration for which a message is retained
    +     * after it is published to the subscription's topic. If this field is set,
    +     * messages published to the subscription's topic in the last
    +     * `topic_message_retention_duration` are always available to subscribers. See
    +     * the `message_retention_duration` field in `Topic`. This field is set only
    +     * in responses from the server; it is ignored if it is set in any requests.
    +     * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder() { + if (topicMessageRetentionDurationBuilder_ != null) { + return topicMessageRetentionDurationBuilder_.getMessageOrBuilder(); + } else { + return topicMessageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : topicMessageRetentionDuration_; + } + } + /** + * + * + *
    +     * Output only. Indicates the minimum duration for which a message is retained
    +     * after it is published to the subscription's topic. If this field is set,
    +     * messages published to the subscription's topic in the last
    +     * `topic_message_retention_duration` are always available to subscribers. See
    +     * the `message_retention_duration` field in `Topic`. This field is set only
    +     * in responses from the server; it is ignored if it is set in any requests.
    +     * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getTopicMessageRetentionDurationFieldBuilder() { + if (topicMessageRetentionDurationBuilder_ == null) { + topicMessageRetentionDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTopicMessageRetentionDuration(), getParentForChildren(), isClean()); + topicMessageRetentionDuration_ = null; + } + return topicMessageRetentionDurationBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index e19141cb0362..329ab1284daf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -168,8 +168,9 @@ public interface SubscriptionOrBuilder * 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] - * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). + * window. This must be true if you would like to [`Seek` to a timestamp] + * (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in + * the past to replay previously-acknowledged messages. * * * bool retain_acked_messages = 7; @@ -505,4 +506,60 @@ public interface SubscriptionOrBuilder * @return The detached. */ boolean getDetached(); + + /** + * + * + *
    +   * Output only. Indicates the minimum duration for which a message is retained
    +   * after it is published to the subscription's topic. If this field is set,
    +   * messages published to the subscription's topic in the last
    +   * `topic_message_retention_duration` are always available to subscribers. See
    +   * the `message_retention_duration` field in `Topic`. This field is set only
    +   * in responses from the server; it is ignored if it is set in any requests.
    +   * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the topicMessageRetentionDuration field is set. + */ + boolean hasTopicMessageRetentionDuration(); + /** + * + * + *
    +   * Output only. Indicates the minimum duration for which a message is retained
    +   * after it is published to the subscription's topic. If this field is set,
    +   * messages published to the subscription's topic in the last
    +   * `topic_message_retention_duration` are always available to subscribers. See
    +   * the `message_retention_duration` field in `Topic`. This field is set only
    +   * in responses from the server; it is ignored if it is set in any requests.
    +   * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The topicMessageRetentionDuration. + */ + com.google.protobuf.Duration getTopicMessageRetentionDuration(); + /** + * + * + *
    +   * Output only. Indicates the minimum duration for which a message is retained
    +   * after it is published to the subscription's topic. If this field is set,
    +   * messages published to the subscription's topic in the last
    +   * `topic_message_retention_duration` are always available to subscribers. See
    +   * the `message_retention_duration` field in `Topic`. This field is set only
    +   * in responses from the server; it is ignored if it is set in any requests.
    +   * 
    + * + * + * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index e993aaf108e3..f2d2bb19f904 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -134,6 +134,21 @@ private Topic( case 56: { satisfiesPzs_ = input.readBool(); + break; + } + case 66: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (messageRetentionDuration_ != null) { + subBuilder = messageRetentionDuration_.toBuilder(); + } + messageRetentionDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(messageRetentionDuration_); + messageRetentionDuration_ = subBuilder.buildPartial(); + } + break; } default: @@ -514,6 +529,75 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } + public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; + private com.google.protobuf.Duration messageRetentionDuration_; + /** + * + * + *
    +   * Indicates the minimum duration to retain a message after it is published to
    +   * the topic. If this field is set, messages published to the topic in the
    +   * last `message_retention_duration` are always available to subscribers. For
    +   * instance, it allows any attached subscription to [seek to a
    +   * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +   * that is up to `message_retention_duration` in the past. If this field is
    +   * not set, message retention is controlled by settings on individual
    +   * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +   * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + * + * @return Whether the messageRetentionDuration field is set. + */ + @java.lang.Override + public boolean hasMessageRetentionDuration() { + return messageRetentionDuration_ != null; + } + /** + * + * + *
    +   * Indicates the minimum duration to retain a message after it is published to
    +   * the topic. If this field is set, messages published to the topic in the
    +   * last `message_retention_duration` are always available to subscribers. For
    +   * instance, it allows any attached subscription to [seek to a
    +   * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +   * that is up to `message_retention_duration` in the past. If this field is
    +   * not set, message retention is controlled by settings on individual
    +   * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +   * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + * + * @return The messageRetentionDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getMessageRetentionDuration() { + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; + } + /** + * + * + *
    +   * Indicates the minimum duration to retain a message after it is published to
    +   * the topic. If this field is set, messages published to the topic in the
    +   * last `message_retention_duration` are always available to subscribers. For
    +   * instance, it allows any attached subscription to [seek to a
    +   * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +   * that is up to `message_retention_duration` in the past. If this field is
    +   * not set, message retention is controlled by settings on individual
    +   * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +   * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { + return getMessageRetentionDuration(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -545,6 +629,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (satisfiesPzs_ != false) { output.writeBool(7, satisfiesPzs_); } + if (messageRetentionDuration_ != null) { + output.writeMessage(8, getMessageRetentionDuration()); + } unknownFields.writeTo(output); } @@ -580,6 +667,11 @@ public int getSerializedSize() { if (satisfiesPzs_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, satisfiesPzs_); } + if (messageRetentionDuration_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getMessageRetentionDuration()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -607,6 +699,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSchemaSettings().equals(other.getSchemaSettings())) return false; } if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (hasMessageRetentionDuration() != other.hasMessageRetentionDuration()) return false; + if (hasMessageRetentionDuration()) { + if (!getMessageRetentionDuration().equals(other.getMessageRetentionDuration())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -636,6 +732,10 @@ public int hashCode() { } hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + if (hasMessageRetentionDuration()) { + hash = (37 * hash) + MESSAGE_RETENTION_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMessageRetentionDuration().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -817,6 +917,12 @@ public Builder clear() { } satisfiesPzs_ = false; + if (messageRetentionDurationBuilder_ == null) { + messageRetentionDuration_ = null; + } else { + messageRetentionDuration_ = null; + messageRetentionDurationBuilder_ = null; + } return this; } @@ -858,6 +964,11 @@ public com.google.pubsub.v1.Topic buildPartial() { result.schemaSettings_ = schemaSettingsBuilder_.build(); } result.satisfiesPzs_ = satisfiesPzs_; + if (messageRetentionDurationBuilder_ == null) { + result.messageRetentionDuration_ = messageRetentionDuration_; + } else { + result.messageRetentionDuration_ = messageRetentionDurationBuilder_.build(); + } onBuilt(); return result; } @@ -925,6 +1036,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other.getSatisfiesPzs() != false) { setSatisfiesPzs(other.getSatisfiesPzs()); } + if (other.hasMessageRetentionDuration()) { + mergeMessageRetentionDuration(other.getMessageRetentionDuration()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1811,6 +1925,255 @@ public Builder clearSatisfiesPzs() { return this; } + private com.google.protobuf.Duration messageRetentionDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + messageRetentionDurationBuilder_; + /** + * + * + *
    +     * Indicates the minimum duration to retain a message after it is published to
    +     * the topic. If this field is set, messages published to the topic in the
    +     * last `message_retention_duration` are always available to subscribers. For
    +     * instance, it allows any attached subscription to [seek to a
    +     * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +     * that is up to `message_retention_duration` in the past. If this field is
    +     * not set, message retention is controlled by settings on individual
    +     * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +     * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + * + * @return Whether the messageRetentionDuration field is set. + */ + public boolean hasMessageRetentionDuration() { + return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; + } + /** + * + * + *
    +     * Indicates the minimum duration to retain a message after it is published to
    +     * the topic. If this field is set, messages published to the topic in the
    +     * last `message_retention_duration` are always available to subscribers. For
    +     * instance, it allows any attached subscription to [seek to a
    +     * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +     * that is up to `message_retention_duration` in the past. If this field is
    +     * not set, message retention is controlled by settings on individual
    +     * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +     * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + * + * @return The messageRetentionDuration. + */ + public com.google.protobuf.Duration getMessageRetentionDuration() { + if (messageRetentionDurationBuilder_ == null) { + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; + } else { + return messageRetentionDurationBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Indicates the minimum duration to retain a message after it is published to
    +     * the topic. If this field is set, messages published to the topic in the
    +     * last `message_retention_duration` are always available to subscribers. For
    +     * instance, it allows any attached subscription to [seek to a
    +     * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +     * that is up to `message_retention_duration` in the past. If this field is
    +     * not set, message retention is controlled by settings on individual
    +     * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +     * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { + if (messageRetentionDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + messageRetentionDuration_ = value; + onChanged(); + } else { + messageRetentionDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * Indicates the minimum duration to retain a message after it is published to
    +     * the topic. If this field is set, messages published to the topic in the
    +     * last `message_retention_duration` are always available to subscribers. For
    +     * instance, it allows any attached subscription to [seek to a
    +     * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +     * that is up to `message_retention_duration` in the past. If this field is
    +     * not set, message retention is controlled by settings on individual
    +     * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +     * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public Builder setMessageRetentionDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (messageRetentionDurationBuilder_ == null) { + messageRetentionDuration_ = builderForValue.build(); + onChanged(); + } else { + messageRetentionDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * Indicates the minimum duration to retain a message after it is published to
    +     * the topic. If this field is set, messages published to the topic in the
    +     * last `message_retention_duration` are always available to subscribers. For
    +     * instance, it allows any attached subscription to [seek to a
    +     * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +     * that is up to `message_retention_duration` in the past. If this field is
    +     * not set, message retention is controlled by settings on individual
    +     * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +     * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { + if (messageRetentionDurationBuilder_ == null) { + if (messageRetentionDuration_ != null) { + messageRetentionDuration_ = + com.google.protobuf.Duration.newBuilder(messageRetentionDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + messageRetentionDuration_ = value; + } + onChanged(); + } else { + messageRetentionDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * Indicates the minimum duration to retain a message after it is published to
    +     * the topic. If this field is set, messages published to the topic in the
    +     * last `message_retention_duration` are always available to subscribers. For
    +     * instance, it allows any attached subscription to [seek to a
    +     * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +     * that is up to `message_retention_duration` in the past. If this field is
    +     * not set, message retention is controlled by settings on individual
    +     * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +     * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public Builder clearMessageRetentionDuration() { + if (messageRetentionDurationBuilder_ == null) { + messageRetentionDuration_ = null; + onChanged(); + } else { + messageRetentionDuration_ = null; + messageRetentionDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * Indicates the minimum duration to retain a message after it is published to
    +     * the topic. If this field is set, messages published to the topic in the
    +     * last `message_retention_duration` are always available to subscribers. For
    +     * instance, it allows any attached subscription to [seek to a
    +     * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +     * that is up to `message_retention_duration` in the past. If this field is
    +     * not set, message retention is controlled by settings on individual
    +     * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +     * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { + + onChanged(); + return getMessageRetentionDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Indicates the minimum duration to retain a message after it is published to
    +     * the topic. If this field is set, messages published to the topic in the
    +     * last `message_retention_duration` are always available to subscribers. For
    +     * instance, it allows any attached subscription to [seek to a
    +     * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +     * that is up to `message_retention_duration` in the past. If this field is
    +     * not set, message retention is controlled by settings on individual
    +     * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +     * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + */ + public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { + if (messageRetentionDurationBuilder_ != null) { + return messageRetentionDurationBuilder_.getMessageOrBuilder(); + } else { + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; + } + } + /** + * + * + *
    +     * Indicates the minimum duration to retain a message after it is published to
    +     * the topic. If this field is set, messages published to the topic in the
    +     * last `message_retention_duration` are always available to subscribers. For
    +     * instance, it allows any attached subscription to [seek to a
    +     * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +     * that is up to `message_retention_duration` in the past. If this field is
    +     * not set, message retention is controlled by settings on individual
    +     * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +     * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMessageRetentionDurationFieldBuilder() { + if (messageRetentionDurationBuilder_ == null) { + messageRetentionDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMessageRetentionDuration(), getParentForChildren(), isClean()); + messageRetentionDuration_ = null; + } + return messageRetentionDurationBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 14d871ac5cb8..dcb2fa83b1c7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -1,11 +1,11 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * https://www.apache.org/licenses/LICENSE-2.0 + * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -22,45 +22,49 @@ import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; import java.util.Map; import java.util.Objects; +import javax.annotation.Generated; -/** AUTO-GENERATED DOCUMENTATION AND CLASS */ -@javax.annotation.Generated("by GAPIC protoc plugin") +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") public class TopicName implements ResourceName { - - @Deprecated - protected TopicName() {} - - private static final PathTemplate PROJECT_TOPIC_PATH_TEMPLATE = + private static final PathTemplate PROJECT_TOPIC = PathTemplate.createWithoutUrlEncoding("projects/{project}/topics/{topic}"); - private static final String DELETED_TOPIC_FIXED_VALUE = "_deleted-topic_"; - private static final TopicName DELETED_TOPIC_INSTANCE = new TopicName("_deleted-topic_"); - + private static final String DELETED_TOPIC = "_deleted-topic_"; private volatile Map fieldValuesMap; private PathTemplate pathTemplate; private String fixedValue; + private final String project; + private final String topic; - private String project; - private String topic; - - public String getProject() { - return project; - } - - public String getTopic() { - return topic; + @Deprecated + protected TopicName() { + project = null; + topic = null; } private TopicName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); topic = Preconditions.checkNotNull(builder.getTopic()); - pathTemplate = PROJECT_TOPIC_PATH_TEMPLATE; + pathTemplate = PROJECT_TOPIC; } private TopicName(String fixedValue) { this.fixedValue = fixedValue; fieldValuesMap = ImmutableMap.of("", fixedValue); + project = null; + topic = null; + } + + public String getProject() { + return project; + } + + public String getTopic() { + return topic; } public static Builder newBuilder() { @@ -77,17 +81,17 @@ public Builder toBuilder() { } public static TopicName of(String project, String topic) { - return newProjectTopicBuilder().setProject(project).setTopic(topic).build(); + return newBuilder().setProject(project).setTopic(topic).build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static TopicName ofProjectTopicName(String project, String topic) { - return newProjectTopicBuilder().setProject(project).setTopic(topic).build(); + return newBuilder().setProject(project).setTopic(topic).build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static TopicName ofDeletedTopicName() { - return DELETED_TOPIC_INSTANCE; + return new TopicName("_deleted-topic_"); } public static String format(String project, String topic) { @@ -101,25 +105,44 @@ public static String formatProjectTopicName(String project, String topic) { @BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatDeletedTopicName() { - return DELETED_TOPIC_FIXED_VALUE; + return "_deleted-topic_"; } public static TopicName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - if (PROJECT_TOPIC_PATH_TEMPLATE.matches(formattedString)) { - Map matchMap = PROJECT_TOPIC_PATH_TEMPLATE.match(formattedString); + if (PROJECT_TOPIC.matches(formattedString)) { + Map matchMap = PROJECT_TOPIC.match(formattedString); return ofProjectTopicName(matchMap.get("project"), matchMap.get("topic")); - } else if (DELETED_TOPIC_FIXED_VALUE.equals(formattedString)) { - return DELETED_TOPIC_INSTANCE; + } else if (DELETED_TOPIC.equals(formattedString)) { + return new TopicName("_deleted-topic_"); + } + throw new ValidationException("TopicName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TopicName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } } - throw new ValidationException("JobName.parse: formattedString not in valid format"); + return list; } public static boolean isParsableFrom(String formattedString) { - return PROJECT_TOPIC_PATH_TEMPLATE.matches(formattedString) - || DELETED_TOPIC_FIXED_VALUE.equals(formattedString); + return PROJECT_TOPIC.matches(formattedString) || DELETED_TOPIC.equals(formattedString); } @Override @@ -150,9 +173,30 @@ public String toString() { return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + TopicName that = ((TopicName) o); + return Objects.equals(this.project, that.project) && Objects.equals(this.topic, that.topic); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(topic); + return h; + } + /** Builder for projects/{project}/topics/{topic}. */ public static class Builder { - private String project; private String topic; @@ -178,40 +222,14 @@ public Builder setTopic(String topic) { private Builder(TopicName topicName) { Preconditions.checkArgument( - topicName.pathTemplate == PROJECT_TOPIC_PATH_TEMPLATE, - "toBuilder is only supported when TopicName has the pattern of " - + "projects/{project}/topics/{topic}."); - project = topicName.project; - topic = topicName.topic; + Objects.equals(topicName.pathTemplate, PROJECT_TOPIC), + "toBuilder is only supported when TopicName has the pattern of projects/{project}/topics/{topic}"); + this.project = topicName.project; + this.topic = topicName.topic; } public TopicName build() { return new TopicName(this); } } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - TopicName that = (TopicName) o; - return (Objects.equals(this.project, that.project)) - && (Objects.equals(this.topic, that.topic)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(topic); - return h; - } } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 45838fe0f420..e9e3dae79b98 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -235,4 +235,60 @@ public interface TopicOrBuilder * @return The satisfiesPzs. */ boolean getSatisfiesPzs(); + + /** + * + * + *
    +   * Indicates the minimum duration to retain a message after it is published to
    +   * the topic. If this field is set, messages published to the topic in the
    +   * last `message_retention_duration` are always available to subscribers. For
    +   * instance, it allows any attached subscription to [seek to a
    +   * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +   * that is up to `message_retention_duration` in the past. If this field is
    +   * not set, message retention is controlled by settings on individual
    +   * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +   * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + * + * @return Whether the messageRetentionDuration field is set. + */ + boolean hasMessageRetentionDuration(); + /** + * + * + *
    +   * Indicates the minimum duration to retain a message after it is published to
    +   * the topic. If this field is set, messages published to the topic in the
    +   * last `message_retention_duration` are always available to subscribers. For
    +   * instance, it allows any attached subscription to [seek to a
    +   * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +   * that is up to `message_retention_duration` in the past. If this field is
    +   * not set, message retention is controlled by settings on individual
    +   * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +   * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + * + * @return The messageRetentionDuration. + */ + com.google.protobuf.Duration getMessageRetentionDuration(); + /** + * + * + *
    +   * Indicates the minimum duration to retain a message after it is published to
    +   * the topic. If this field is set, messages published to the topic in the
    +   * last `message_retention_duration` are always available to subscribers. For
    +   * instance, it allows any attached subscription to [seek to a
    +   * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
    +   * that is up to `message_retention_duration` in the past. If this field is
    +   * not set, message retention is controlled by settings on individual
    +   * subscriptions. Cannot be more than 7 days or less than 10 minutes.
    +   * 
    + * + * .google.protobuf.Duration message_retention_duration = 8; + */ + com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java index 3dd3deea5b78..cb571b0b80f7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java @@ -19,8 +19,6 @@ import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; import java.util.Map; /** @@ -48,26 +46,6 @@ public static UntypedTopicName parse(String formattedString) { return new UntypedTopicName(formattedString); } - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (UntypedTopicName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - public static boolean isParsableFrom(String formattedString) { return true; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 1b5fd13b0fe4..d86904cf05fc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -23,6 +23,7 @@ * *
      * Response for the `ValidateMessage` method.
    + * Empty for now.
      * 
    * * Protobuf type {@code google.pubsub.v1.ValidateMessageResponse} @@ -257,6 +258,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * Response for the `ValidateMessage` method.
    +   * Empty for now.
        * 
    * * Protobuf type {@code google.pubsub.v1.ValidateMessageResponse} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 2f8a70f0dd15..881b35e95f3d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -23,6 +23,7 @@ * *
      * Response for the `ValidateSchema` method.
    + * Empty for now.
      * 
    * * Protobuf type {@code google.pubsub.v1.ValidateSchemaResponse} @@ -257,6 +258,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
        * Response for the `ValidateSchema` method.
    +   * Empty for now.
        * 
    * * Protobuf type {@code google.pubsub.v1.ValidateSchemaResponse} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 0da37dd7dad1..b1d65626cf28 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -196,6 +196,16 @@ message Topic { // Reserved for future use. This field is set only in responses from the // server; it is ignored if it is set in any requests. bool satisfies_pzs = 7; + + // Indicates the minimum duration to retain a message after it is published to + // the topic. If this field is set, messages published to the topic in the + // last `message_retention_duration` are always available to subscribers. For + // instance, it allows any attached subscription to [seek to a + // timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) + // that is up to `message_retention_duration` in the past. If this field is + // not set, message retention is controlled by settings on individual + // subscriptions. Cannot be more than 7 days or less than 10 minutes. + google.protobuf.Duration message_retention_duration = 8; } // A message that is published by publishers and consumed by subscribers. The @@ -505,6 +515,7 @@ service Subscriber { }; option (google.api.method_signature) = "subscription,return_immediately,max_messages"; + option (google.api.method_signature) = "subscription,max_messages"; } // Establishes a stream with the server, which sends messages down to the @@ -677,8 +688,9 @@ message Subscription { // 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] - // (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time). + // window. This must be true if you would like to [`Seek` to a timestamp] + // (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in + // the past to replay previously-acknowledged messages. bool retain_acked_messages = 7; // How long to retain unacknowledged messages in the subscription's backlog, @@ -739,6 +751,15 @@ message Subscription { // FAILED_PRECONDITION. If the subscription is a push subscription, pushes to // the endpoint will not be made. bool detached = 15; + + // Output only. Indicates the minimum duration for which a message is retained + // after it is published to the subscription's topic. If this field is set, + // messages published to the subscription's topic in the last + // `topic_message_retention_duration` are always available to subscribers. See + // the `message_retention_duration` field in `Topic`. This field is set only + // in responses from the server; it is ignored if it is set in any requests. + google.protobuf.Duration topic_message_retention_duration = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A policy that specifies how Cloud Pub/Sub retries message delivery. @@ -1142,8 +1163,17 @@ message StreamingPullRequest { // Response for the `StreamingPull` method. This response is used to stream // messages from the server to the client. message StreamingPullResponse { + // Subscription properties sent as part of the response. + message SubscriptionProperties { + // True iff message ordering is enabled for this subscription. + bool message_ordering_enabled = 2; + } + // Received Pub/Sub messages. This will not be empty. repeated ReceivedMessage received_messages = 1; + + // Properties associated with this subscription. + SubscriptionProperties subscription_properties = 4; } // Request for the `CreateSnapshot` method. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index 1ace7ef3b0d7..3cdf10d93317 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -237,6 +237,7 @@ message ValidateSchemaRequest { } // Response for the `ValidateSchema` method. +// Empty for now. message ValidateSchemaResponse {} // Request for the `ValidateMessage` method. @@ -270,6 +271,7 @@ message ValidateMessageRequest { } // Response for the `ValidateMessage` method. +// Empty for now. message ValidateMessageResponse {} // Possible encoding types for messages. diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata index 4e6f5f8822ab..dae629feea07 100644 --- a/java-pubsub/synth.metadata +++ b/java-pubsub/synth.metadata @@ -3,23 +3,23 @@ { "git": { "name": ".", - "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "6fe99f1ebb8057360880062db544aa23542c7617" + "remote": "https://github.com/hannahrogers-google/java-pubsub.git", + "sha": "e882af1abcd8f6d4efa4e97faeb613dd392ec982" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", - "internalRef": "361377784" + "sha": "0b896069c16e32304f0289db165c16ee959ce35e", + "internalRef": "391849098" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ff01716e16d2c6e87eaf87197b753ac9fcbbed5d" + "sha": "484b7ec7bdef3909589a83e3d763e7588cb8c37c" } } ], @@ -33,232 +33,5 @@ "generator": "bazel" } } - ], - "generatedFiles": [ - ".github/CODEOWNERS", - ".github/ISSUE_TEMPLATE/bug_report.md", - ".github/ISSUE_TEMPLATE/feature_request.md", - ".github/ISSUE_TEMPLATE/support_request.md", - ".github/PULL_REQUEST_TEMPLATE.md", - ".github/blunderbuss.yml", - ".github/generated-files-bot.yml", - ".github/readme/synth.py", - ".github/release-please.yml", - ".github/snippet-bot.yml", - ".github/trusted-contribution.yml", - ".github/workflows/approve-readme.yaml", - ".github/workflows/auto-release.yaml", - ".github/workflows/ci.yaml", - ".kokoro/build.bat", - ".kokoro/coerce_logs.sh", - ".kokoro/common.cfg", - ".kokoro/common.sh", - ".kokoro/continuous/common.cfg", - ".kokoro/continuous/java8.cfg", - ".kokoro/continuous/readme.cfg", - ".kokoro/dependencies.sh", - ".kokoro/nightly/common.cfg", - ".kokoro/nightly/integration.cfg", - ".kokoro/nightly/java11.cfg", - ".kokoro/nightly/java7.cfg", - ".kokoro/nightly/java8-osx.cfg", - ".kokoro/nightly/java8-win.cfg", - ".kokoro/nightly/java8.cfg", - ".kokoro/nightly/samples.cfg", - ".kokoro/populate-secrets.sh", - ".kokoro/presubmit/clirr.cfg", - ".kokoro/presubmit/common.cfg", - ".kokoro/presubmit/dependencies.cfg", - ".kokoro/presubmit/integration.cfg", - ".kokoro/presubmit/java11.cfg", - ".kokoro/presubmit/java7.cfg", - ".kokoro/presubmit/java8-osx.cfg", - ".kokoro/presubmit/java8-win.cfg", - ".kokoro/presubmit/java8.cfg", - ".kokoro/presubmit/linkage-monitor.cfg", - ".kokoro/presubmit/lint.cfg", - ".kokoro/presubmit/samples.cfg", - ".kokoro/readme.sh", - ".kokoro/release/bump_snapshot.cfg", - ".kokoro/release/common.cfg", - ".kokoro/release/common.sh", - ".kokoro/release/drop.cfg", - ".kokoro/release/drop.sh", - ".kokoro/release/promote.cfg", - ".kokoro/release/promote.sh", - ".kokoro/release/publish_javadoc.cfg", - ".kokoro/release/publish_javadoc.sh", - ".kokoro/release/publish_javadoc11.cfg", - ".kokoro/release/publish_javadoc11.sh", - ".kokoro/release/snapshot.cfg", - ".kokoro/release/snapshot.sh", - ".kokoro/release/stage.cfg", - ".kokoro/release/stage.sh", - ".kokoro/trampoline.sh", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "codecov.yaml", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java", - "google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java", - "google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java", - "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java", - "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java", - "grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java", - "java.header", - "license-checks.xml", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java", - "proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java", - "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto", - "proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto", - "renovate.json", - "samples/install-without-bom/pom.xml", - "samples/pom.xml", - "samples/snapshot/pom.xml", - "samples/snippets/pom.xml" ] } \ No newline at end of file From 946eb33447bb3c86c0c102570b349a90920e2ab2 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Mon, 23 Aug 2021 12:19:46 -0400 Subject: [PATCH 0804/2363] feat: add topic retention support (#803) From 989dab3d81f90d76f20395fa7513a48b86a172af Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 23 Aug 2021 18:51:13 +0200 Subject: [PATCH 0805/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.9.0 (#797) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 41a04381d310..c1f18ac58d3f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -85,7 +85,7 @@ com.google.errorprone error_prone_annotations - 2.8.1 + 2.9.0 From 754d85c06fed92cbdf7f848fc130972ddaab7f13 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 17:26:25 +0000 Subject: [PATCH 0806/2363] chore: release 1.114.0 (#804) :robot: I have created a release \*beep\* \*boop\* --- ## [1.114.0](https://www.github.com/googleapis/java-pubsub/compare/v1.113.9...v1.114.0) (2021-08-23) ### Features * add topic retention support ([#803](https://www.github.com/googleapis/java-pubsub/issues/803)) ([946eb33](https://www.github.com/googleapis/java-pubsub/commit/946eb33447bb3c86c0c102570b349a90920e2ab2)) ### Dependencies * update dependency com.google.errorprone:error_prone_annotations to v2.9.0 ([#797](https://www.github.com/googleapis/java-pubsub/issues/797)) ([989dab3](https://www.github.com/googleapis/java-pubsub/commit/989dab3d81f90d76f20395fa7513a48b86a172af)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 824a4e09a19e..66574ca2c484 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.114.0](https://www.github.com/googleapis/java-pubsub/compare/v1.113.9...v1.114.0) (2021-08-23) + + +### Features + +* add topic retention support ([#803](https://www.github.com/googleapis/java-pubsub/issues/803)) ([898faf8](https://www.github.com/googleapis/java-pubsub/commit/898faf810276901c4ea878278ec55b80664098f7)) + + +### Dependencies + +* update dependency com.google.errorprone:error_prone_annotations to v2.9.0 ([#797](https://www.github.com/googleapis/java-pubsub/issues/797)) ([70bb91d](https://www.github.com/googleapis/java-pubsub/commit/70bb91d7a5cbb6da82837d7bd42a08b4b4fe648e)) + ### [1.113.9](https://www.github.com/googleapis/java-pubsub/compare/v1.113.8...v1.113.9) (2021-08-11) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c5ce78f0989f..27c869a72cb8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.113.10-SNAPSHOT + 1.114.0 pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.10-SNAPSHOT + 1.96.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.10-SNAPSHOT + 1.96.0 com.google.cloud google-cloud-pubsub - 1.113.10-SNAPSHOT + 1.114.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c91a21cc57f2..417df2201368 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.113.10-SNAPSHOT + 1.114.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.113.10-SNAPSHOT + 1.114.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bd07fed32686..b73f819f7eeb 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.10-SNAPSHOT + 1.96.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.10-SNAPSHOT + 1.114.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c1f18ac58d3f..0bc17188d48e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.113.10-SNAPSHOT + 1.114.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.10-SNAPSHOT + 1.96.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.95.10-SNAPSHOT + 1.96.0 com.google.cloud google-cloud-pubsub - 1.113.10-SNAPSHOT + 1.114.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index eacb91cda59c..1e58d175ed85 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.95.10-SNAPSHOT + 1.96.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.113.10-SNAPSHOT + 1.114.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5ebeeca1ad29..4ddd5b4f1300 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.113.10-SNAPSHOT + 1.114.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e4b12a4ae29e..e1099e3944f6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.95.9:1.95.10-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.95.9:1.95.10-SNAPSHOT -google-cloud-pubsub:1.113.9:1.113.10-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.96.0:1.96.0 +grpc-google-cloud-pubsub-v1:1.96.0:1.96.0 +google-cloud-pubsub:1.114.0:1.114.0 \ No newline at end of file From f3926d5ca9af14819806bf593fb39f6ef23d3a95 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 17:42:10 +0000 Subject: [PATCH 0807/2363] chore: release 1.114.1-SNAPSHOT (#805) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 27c869a72cb8..34197f76b0fd 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.0 + 1.114.1-SNAPSHOT pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.0 + 1.96.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.0 + 1.96.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.0 + 1.114.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 417df2201368..ababc8f58c3e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.0 + 1.114.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.0 + 1.114.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b73f819f7eeb..86e44b6e01fc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.0 + 1.96.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.0 + 1.114.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0bc17188d48e..bc0a0534010a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.0 + 1.114.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.0 + 1.96.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.0 + 1.96.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.0 + 1.114.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1e58d175ed85..95e01c2934c4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.0 + 1.96.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.0 + 1.114.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4ddd5b4f1300..78998b2d354c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.0 + 1.114.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e1099e3944f6..7e885b5d657f 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.96.0:1.96.0 -grpc-google-cloud-pubsub-v1:1.96.0:1.96.0 -google-cloud-pubsub:1.114.0:1.114.0 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.96.0:1.96.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.96.0:1.96.1-SNAPSHOT +google-cloud-pubsub:1.114.0:1.114.1-SNAPSHOT \ No newline at end of file From db6d5d87274d001f9d23c307560f3f444c0c2ad3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 23 Aug 2021 22:00:49 +0200 Subject: [PATCH 0808/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.1.0 (#806) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 624ef1d9a833..3706be1e8025 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.0.5 + 2.1.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 78998b2d354c..c28953f29423 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.0.5 + 2.1.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6a896e718665..7bcc74ba4232 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.0.5 + 2.1.0 tests From f026aed9c73821761080880cb4c7f992e0a5e225 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 23 Aug 2021 22:50:25 +0200 Subject: [PATCH 0809/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 (#807) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.0.1` -> `2.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/compatibility-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/confidence-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.1.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​210-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare201v210-2021-08-23) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.0.1...v2.1.0) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v1.1.0 ([#​439](https://www.togithub.com/googleapis/java-shared-dependencies/issues/439)) ([ca52bd9](https://www.github.com/googleapis/java-shared-dependencies/commit/ca52bd9c099c96bf7b5a57aa85d39b58a610c875)) - update dependency com.google.cloud:google-cloud-core-bom to v2.1.0 ([#​444](https://www.togithub.com/googleapis/java-shared-dependencies/issues/444)) ([ff914c6](https://www.github.com/googleapis/java-shared-dependencies/commit/ff914c6de9e3e7fa6ba75591d3d5077c5421827d)) - update dependency com.google.code.gson:gson to v2.8.8 ([#​442](https://www.togithub.com/googleapis/java-shared-dependencies/issues/442)) ([79a093f](https://www.github.com/googleapis/java-shared-dependencies/commit/79a093f9ccea4d47cf8b678570a1c9699029a8b2)) - update dependency com.google.errorprone:error_prone_annotations to v2.9.0 ([#​441](https://www.togithub.com/googleapis/java-shared-dependencies/issues/441)) ([e644a4b](https://www.github.com/googleapis/java-shared-dependencies/commit/e644a4b504ab8aa5771f9be36861d1730ea9bcc9)) - update dependency io.grpc:grpc-bom to v1.40.0 ([#​438](https://www.togithub.com/googleapis/java-shared-dependencies/issues/438)) ([c3f8fb4](https://www.github.com/googleapis/java-shared-dependencies/commit/c3f8fb4408f5dc6c7f7dc0e14f0c24fa755433a5)) - update gax.version to v2.3.0 ([#​437](https://www.togithub.com/googleapis/java-shared-dependencies/issues/437)) ([e59aaad](https://www.github.com/googleapis/java-shared-dependencies/commit/e59aaadd76e40ab5ea31c3e812686a4ba0471a49)) ##### [2.0.1](https://www.github.com/googleapis/java-shared-dependencies/compare/2.0.0...v2.0.1) (2021-08-11) ##### Dependencies - update dependency com.google.api:api-common to v2.0.1 ([#​431](https://www.togithub.com/googleapis/java-shared-dependencies/issues/431)) ([b1a52c8](https://www.github.com/googleapis/java-shared-dependencies/commit/b1a52c83e19be7be80086f2010e928171b046f62)) - update gax.version to v2.1.0 ([#​432](https://www.togithub.com/googleapis/java-shared-dependencies/issues/432)) ([7f53006](https://www.github.com/googleapis/java-shared-dependencies/commit/7f53006d021e839f52325a87d7c4715eff88818d)) - update google.core.version to v2.0.4 ([#​430](https://www.togithub.com/googleapis/java-shared-dependencies/issues/430)) ([d0465ad](https://www.github.com/googleapis/java-shared-dependencies/commit/d0465ad3a79993d4e854078ea992e53ab9add07f)) - update google.core.version to v2.0.5 ([#​434](https://www.togithub.com/googleapis/java-shared-dependencies/issues/434)) ([af00753](https://www.github.com/googleapis/java-shared-dependencies/commit/af0075390034cba5cefede8260ab03f728d525a8))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bc0a0534010a..6cca7cbce701 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.0.1 + 2.1.0 pom import From f701c81c09358625f49b7069768c905845efcd28 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 21:40:27 +0000 Subject: [PATCH 0810/2363] chore: release 1.114.1 (#808) :robot: I have created a release \*beep\* \*boop\* --- ### [1.114.1](https://www.github.com/googleapis/java-pubsub/compare/v1.114.0...v1.114.1) (2021-08-23) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.1.0 ([#806](https://www.github.com/googleapis/java-pubsub/issues/806)) ([db6d5d8](https://www.github.com/googleapis/java-pubsub/commit/db6d5d87274d001f9d23c307560f3f444c0c2ad3)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#807](https://www.github.com/googleapis/java-pubsub/issues/807)) ([f026aed](https://www.github.com/googleapis/java-pubsub/commit/f026aed9c73821761080880cb4c7f992e0a5e225)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 66574ca2c484..f6f4d32b3752 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [1.114.1](https://www.github.com/googleapis/java-pubsub/compare/v1.114.0...v1.114.1) (2021-08-23) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.1.0 ([#806](https://www.github.com/googleapis/java-pubsub/issues/806)) ([744eacd](https://www.github.com/googleapis/java-pubsub/commit/744eacd007c9de224790b75eb5c060acaf6245ec)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#807](https://www.github.com/googleapis/java-pubsub/issues/807)) ([e88ff93](https://www.github.com/googleapis/java-pubsub/commit/e88ff93b0fc476f27221d9e5e4c81811a26815ac)) + ## [1.114.0](https://www.github.com/googleapis/java-pubsub/compare/v1.113.9...v1.114.0) (2021-08-23) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 34197f76b0fd..77e21f97098b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.1-SNAPSHOT + 1.114.1 pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.1-SNAPSHOT + 1.96.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.1-SNAPSHOT + 1.96.1 com.google.cloud google-cloud-pubsub - 1.114.1-SNAPSHOT + 1.114.1
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ababc8f58c3e..9c2c4c67e9eb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.1-SNAPSHOT + 1.114.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.1-SNAPSHOT + 1.114.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 86e44b6e01fc..0d60dea6844f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.1-SNAPSHOT + 1.96.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.1-SNAPSHOT + 1.114.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6cca7cbce701..73602f805fa5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.1-SNAPSHOT + 1.114.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.1-SNAPSHOT + 1.96.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.1-SNAPSHOT + 1.96.1 com.google.cloud google-cloud-pubsub - 1.114.1-SNAPSHOT + 1.114.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 95e01c2934c4..e2e4ed9c4c5a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.1-SNAPSHOT + 1.96.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.1-SNAPSHOT + 1.114.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c28953f29423..4a5a7c6e02c0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.1-SNAPSHOT + 1.114.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7e885b5d657f..9faec0aeb6d2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.96.0:1.96.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.96.0:1.96.1-SNAPSHOT -google-cloud-pubsub:1.114.0:1.114.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.96.1:1.96.1 +grpc-google-cloud-pubsub-v1:1.96.1:1.96.1 +google-cloud-pubsub:1.114.1:1.114.1 \ No newline at end of file From fdad04a60bc1c43b34848d2608739c3cb9930f19 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 22:04:26 +0000 Subject: [PATCH 0811/2363] chore: release 1.114.2-SNAPSHOT (#809) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 77e21f97098b..833c16fe14ae 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.1 + 1.114.2-SNAPSHOT pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.1 + 1.96.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.1 + 1.96.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.1 + 1.114.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9c2c4c67e9eb..f233dd3a4ec1 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.1 + 1.114.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.1 + 1.114.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0d60dea6844f..fee479471c3d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.1 + 1.96.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.1 + 1.114.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 73602f805fa5..07e4c9344f1a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.1 + 1.114.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.1 + 1.96.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.1 + 1.96.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.1 + 1.114.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e2e4ed9c4c5a..6d12a5042150 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.1 + 1.96.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.1 + 1.114.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4a5a7c6e02c0..9c8197532fb8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.1 + 1.114.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9faec0aeb6d2..4e8ef08e517e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.96.1:1.96.1 -grpc-google-cloud-pubsub-v1:1.96.1:1.96.1 -google-cloud-pubsub:1.114.1:1.114.1 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.96.1:1.96.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.96.1:1.96.2-SNAPSHOT +google-cloud-pubsub:1.114.1:1.114.2-SNAPSHOT \ No newline at end of file From 0fbb5b9487a2db55bc07159eba72e7929cf1a906 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Aug 2021 19:45:17 +0200 Subject: [PATCH 0812/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.1 (#810) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3706be1e8025..ddc9299aff34 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.113.8 + 1.114.1 From 4146c6529b718d2c10d910d5d8a6ec2e87fab915 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 24 Aug 2021 10:58:15 -0700 Subject: [PATCH 0813/2363] chore: regenerate README (#812) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-08-24 17:47:46,445 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-24 17:47:47,512 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/2a7edb4e-d1a8-4dd9-970a-8744a9805a3b/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 9d3ee46dc4a7..3f53a15a8a4a 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "e425d544f0ab46b43f73767adfeec9bf0c58ec7d" + "sha": "23c70fbfbea02e03fd7444ff8435096fd0bf4944" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a01e1a0bf70754f51450958b966bd673945d1e6e" + "sha": "8032ab5a32471d85ece8fc261df16cc40fbfa4fb" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5d2bcbf90ec3..78fd2d5537e8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.113.8 + 1.114.1 ``` @@ -58,13 +58,13 @@ compile 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.114.0' +compile 'com.google.cloud:google-cloud-pubsub:1.114.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.1" ``` ## Authentication From 78a295549a61b430113821333466c41b3a2ea98a Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 24 Aug 2021 14:32:20 -0400 Subject: [PATCH 0814/2363] ci: removing linkage-monitor from the required checks (#811) Linkage Monitor is no longer needed, because the Libraries BOM synchronizes with Google Cloud BOM and the shared dependencies BOM https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/2137 --- java-pubsub/.github/sync-repo-settings.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index b2063df152f5..ef217689317a 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -10,7 +10,6 @@ branchProtectionRules: requiredStatusCheckContexts: - dependencies (8) - dependencies (11) - - linkage-monitor - lint - clirr - units (8) @@ -26,7 +25,6 @@ branchProtectionRules: requiredStatusCheckContexts: - dependencies (8) - dependencies (11) - - linkage-monitor - lint - clirr - units (8) @@ -42,7 +40,6 @@ branchProtectionRules: requiredStatusCheckContexts: - dependencies (8) - dependencies (11) - - linkage-monitor - lint - clirr - units (8) From 77ef026e733f3b3af56bdc1b1ae6af7c8d6eba2d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Aug 2021 22:12:25 +0200 Subject: [PATCH 0815/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.1.1 (#813) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ddc9299aff34..ef95bd7f6b26 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.1.0 + 2.1.1 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9c8197532fb8..a63b7a97764c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.1.0 + 2.1.1 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 7bcc74ba4232..daf95dbbeb8e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.1.0 + 2.1.1 tests From 98906693e6bace92271aa413abe441159fe6c80c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 Aug 2021 20:24:49 +0000 Subject: [PATCH 0816/2363] chore: release 1.114.2 (#814) :robot: I have created a release \*beep\* \*boop\* --- ### [1.114.2](https://www.github.com/googleapis/java-pubsub/compare/v1.114.1...v1.114.2) (2021-08-24) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.1.1 ([#813](https://www.github.com/googleapis/java-pubsub/issues/813)) ([77ef026](https://www.github.com/googleapis/java-pubsub/commit/77ef026e733f3b3af56bdc1b1ae6af7c8d6eba2d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index f6f4d32b3752..280089fb182b 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.114.2](https://www.github.com/googleapis/java-pubsub/compare/v1.114.1...v1.114.2) (2021-08-24) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.1.1 ([#813](https://www.github.com/googleapis/java-pubsub/issues/813)) ([e7b0c3c](https://www.github.com/googleapis/java-pubsub/commit/e7b0c3c002e816027c945cac4487394cefd26892)) + ### [1.114.1](https://www.github.com/googleapis/java-pubsub/compare/v1.114.0...v1.114.1) (2021-08-23) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 833c16fe14ae..987df642f787 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.2-SNAPSHOT + 1.114.2 pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.2-SNAPSHOT + 1.96.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.2-SNAPSHOT + 1.96.2 com.google.cloud google-cloud-pubsub - 1.114.2-SNAPSHOT + 1.114.2
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f233dd3a4ec1..28308a47bdfe 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.2-SNAPSHOT + 1.114.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.2-SNAPSHOT + 1.114.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fee479471c3d..c54a9a9cc284 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.2-SNAPSHOT + 1.96.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.2-SNAPSHOT + 1.114.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 07e4c9344f1a..32f9148df19e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.2-SNAPSHOT + 1.114.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.2-SNAPSHOT + 1.96.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.2-SNAPSHOT + 1.96.2 com.google.cloud google-cloud-pubsub - 1.114.2-SNAPSHOT + 1.114.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6d12a5042150..b5508f1eeb8b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.2-SNAPSHOT + 1.96.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.2-SNAPSHOT + 1.114.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a63b7a97764c..ca81814c7a93 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.2-SNAPSHOT + 1.114.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4e8ef08e517e..3550f7de6b21 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.96.1:1.96.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.96.1:1.96.2-SNAPSHOT -google-cloud-pubsub:1.114.1:1.114.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.96.2:1.96.2 +grpc-google-cloud-pubsub-v1:1.96.2:1.96.2 +google-cloud-pubsub:1.114.2:1.114.2 \ No newline at end of file From bd7a7b824fbafa66c705d2cbf37bd984bf37f084 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 Aug 2021 20:36:30 +0000 Subject: [PATCH 0817/2363] chore: release 1.114.3-SNAPSHOT (#815) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 987df642f787..d2cbc1fb343d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.2 + 1.114.3-SNAPSHOT pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.2 + 1.96.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.2 + 1.96.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.2 + 1.114.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 28308a47bdfe..f2b5a724d7e7 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.2 + 1.114.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.2 + 1.114.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c54a9a9cc284..45ad18a0b604 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.2 + 1.96.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.2 + 1.114.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 32f9148df19e..713564e336cc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.2 + 1.114.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.2 + 1.96.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.2 + 1.96.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.2 + 1.114.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b5508f1eeb8b..604f7f986c6e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.2 + 1.96.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.2 + 1.114.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ca81814c7a93..8fcea5220af5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.2 + 1.114.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3550f7de6b21..378e971df8c9 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.96.2:1.96.2 -grpc-google-cloud-pubsub-v1:1.96.2:1.96.2 -google-cloud-pubsub:1.114.2:1.114.2 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.96.2:1.96.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.96.2:1.96.3-SNAPSHOT +google-cloud-pubsub:1.114.2:1.114.3-SNAPSHOT \ No newline at end of file From 9728189a83c7b715a53f7887fb574a93493ee76a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 27 Aug 2021 17:00:50 +0200 Subject: [PATCH 0818/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v22 (#818) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `21.0.0` -> `22.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/compatibility-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/confidence-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index daf95dbbeb8e..8ebef4ac6481 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 21.0.0 + 22.0.0 pom import From a889fc3afe6c21c203ed91c7002a5189130282f8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 27 Aug 2021 08:14:18 -0700 Subject: [PATCH 0819/2363] chore: regenerate README (#819) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-08-27 15:02:59,147 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-27 15:03:00,379 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/a16c954c-99b1-44c1-9c07-24e8d8d6e344/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 3f53a15a8a4a..0da27b8bcf78 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "23c70fbfbea02e03fd7444ff8435096fd0bf4944" + "sha": "59a580f17b8ec361abbc5fe54aad70422b81e188" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8032ab5a32471d85ece8fc261df16cc40fbfa4fb" + "sha": "31728d872f50e439ded2f67fa8d67955b26a4e35" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 78fd2d5537e8..31a84a7cd573 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 21.0.0 + 22.0.0 pom import @@ -51,20 +51,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:21.0.0') +implementation platform('com.google.cloud:libraries-bom:22.0.0') compile 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.114.1' +compile 'com.google.cloud:google-cloud-pubsub:1.114.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.2" ``` ## Authentication From d5f7b1fe120a4cdbed3772e1725ec331c6500975 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Tue, 31 Aug 2021 10:34:18 -0400 Subject: [PATCH 0820/2363] fix: Set publish timeouts to be consistent with desired values (#820) * feat: Add flow control support to publisher * make suggested fixes * chore: Remove note that ordering keys requires enablements. * feat: Add support for server-side flow control * Revert "chore: Remove note that ordering keys requires enablements." This reverts commit 9c113c3e32c28cf0d1de8aad3409b5c509fb1ada. * fix: Fix import order * fix: Make error message more clear about where ordering must be enabled when publishing. * fix: Ensure that messages that are in pending batches for an ordering key are canceled when a previous publish for the ordering keys fails. * fix: Only check keyHasError if ordering keys is non-empty * fix: Set publish timeouts to be consistent with desired values --- .../java/com/google/cloud/pubsub/v1/Publisher.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index d29a619fd199..af7472e96f76 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -657,8 +657,11 @@ public static final class Builder { static final long DEFAULT_REQUEST_BYTES_THRESHOLD = 1000L; // 1 kB static final Duration DEFAULT_DELAY_THRESHOLD = Duration.ofMillis(1); private static final Duration DEFAULT_INITIAL_RPC_TIMEOUT = Duration.ofSeconds(5); - private static final Duration DEFAULT_MAX_RPC_TIMEOUT = Duration.ofSeconds(600); + private static final Duration DEFAULT_MAX_RPC_TIMEOUT = Duration.ofSeconds(60); private static final Duration DEFAULT_TOTAL_TIMEOUT = Duration.ofSeconds(600); + private static final Duration DEFAULT_INITIAL_RETRY_DELAY = Duration.ofMillis(100); + private static final Duration DEFAULT_MAX_RETRY_DELAY = Duration.ofSeconds(60); + private static final double DEFAULT_MULTIPLIER = 1.3; static final BatchingSettings DEFAULT_BATCHING_SETTINGS = BatchingSettings.newBuilder() .setDelayThreshold(DEFAULT_DELAY_THRESHOLD) @@ -672,11 +675,11 @@ public static final class Builder { static final RetrySettings DEFAULT_RETRY_SETTINGS = RetrySettings.newBuilder() .setTotalTimeout(DEFAULT_TOTAL_TIMEOUT) - .setInitialRetryDelay(Duration.ofMillis(100)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofSeconds(60)) + .setInitialRetryDelay(DEFAULT_INITIAL_RETRY_DELAY) + .setRetryDelayMultiplier(DEFAULT_MULTIPLIER) + .setMaxRetryDelay(DEFAULT_MAX_RETRY_DELAY) .setInitialRpcTimeout(DEFAULT_INITIAL_RPC_TIMEOUT) - .setRpcTimeoutMultiplier(1) + .setRpcTimeoutMultiplier(DEFAULT_MULTIPLIER) .setMaxRpcTimeout(DEFAULT_MAX_RPC_TIMEOUT) .build(); static final boolean DEFAULT_ENABLE_MESSAGE_ORDERING = false; From c80738b3e34ae03ec47e6a331f531c0860bfa090 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 31 Aug 2021 07:48:25 -0700 Subject: [PATCH 0821/2363] chore: regenerate README (#822) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-08-31 14:36:37,887 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-31 14:36:39,171 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/04200d1f-6a16-4ee4-a242-8fecf804ce8c/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 0da27b8bcf78..2cb04c3a4e44 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "59a580f17b8ec361abbc5fe54aad70422b81e188" + "sha": "826dc10f5bb373e88b06d390fc2029960a2cad7c" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "31728d872f50e439ded2f67fa8d67955b26a4e35" + "sha": "dfd55ad78a700acf987d592c8279789b1319b8c5" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 31a84a7cd573..31f05ef6ac4d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -53,12 +53,12 @@ If you are using Gradle 5.x or later, add this to your dependencies ```Groovy implementation platform('com.google.cloud:libraries-bom:22.0.0') -compile 'com.google.cloud:google-cloud-pubsub' +implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-pubsub:1.114.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.114.2' ``` If you are using SBT, add this to your dependencies From 5c6a0b4c2c9afb53dac0bb09ea2d829c801b54ad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 31 Aug 2021 20:44:26 +0200 Subject: [PATCH 0822/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.1.2 (#823) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.1` -> `2.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/compatibility-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.2/confidence-slim/2.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.1.2`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​212-httpswwwgithubcomgoogleapisjava-corecomparev211v212-2021-08-31) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.1...v2.1.2)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ef95bd7f6b26..8c24827826d1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.1.1 + 2.1.2 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8fcea5220af5..13441ca4ebe4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.1.1 + 2.1.2 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 8ebef4ac6481..e900f6001c7a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.1.1 + 2.1.2 tests From 5332f3aec0c0986916f66e13ba6aaf42cb31f145 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Sep 2021 00:08:25 +0200 Subject: [PATCH 0823/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 (#824) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.1.0` -> `2.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/compatibility-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/confidence-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.2.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​220-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare210v220-2021-08-31) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.1.0...v2.2.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.5 ([#​456](https://www.togithub.com/googleapis/java-shared-dependencies/issues/456)) ([05b58e8](https://www.github.com/googleapis/java-shared-dependencies/commit/05b58e84ff6617bdcbb1ea644aa6e061bdea0319)) - update dependency com.google.api:api-common to v2.0.2 ([#​450](https://www.togithub.com/googleapis/java-shared-dependencies/issues/450)) ([51caebe](https://www.github.com/googleapis/java-shared-dependencies/commit/51caebe89bfade98866f63952bf82bc663a0179a)) - update dependency com.google.http-client:google-http-client-bom to v1.40.0 ([#​455](https://www.togithub.com/googleapis/java-shared-dependencies/issues/455)) ([82a5e42](https://www.github.com/googleapis/java-shared-dependencies/commit/82a5e42b06570a2c7c9d53b03161b110a44487a1)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.32.1 ([#​447](https://www.togithub.com/googleapis/java-shared-dependencies/issues/447)) ([9d2b895](https://www.github.com/googleapis/java-shared-dependencies/commit/9d2b8958f62daa6a3015a8ac052762fb3d79b35b)) - update dependency io.grpc:grpc-bom to v1.40.1 ([#​451](https://www.togithub.com/googleapis/java-shared-dependencies/issues/451)) ([df668ea](https://www.github.com/googleapis/java-shared-dependencies/commit/df668ead8830a40acf9d5605d47f93c465b779c0)) - update gax.version to v2.4.0 ([#​458](https://www.togithub.com/googleapis/java-shared-dependencies/issues/458)) ([a797d9e](https://www.github.com/googleapis/java-shared-dependencies/commit/a797d9eb8a4bcb3025a9511eae61271278a4a5c9)) - update google.common-protos.version to v2.5.0 ([#​457](https://www.togithub.com/googleapis/java-shared-dependencies/issues/457)) ([38c7bb9](https://www.github.com/googleapis/java-shared-dependencies/commit/38c7bb925414d90ff3065650d06589f79bcab9b6)) - update google.core.version to v2.1.1 ([#​449](https://www.togithub.com/googleapis/java-shared-dependencies/issues/449)) ([b28723a](https://www.github.com/googleapis/java-shared-dependencies/commit/b28723ace0c27ebc73f23a2d094e0fe9ba8a9075)) - update google.core.version to v2.1.2 ([#​459](https://www.togithub.com/googleapis/java-shared-dependencies/issues/459)) ([df4d5b7](https://www.github.com/googleapis/java-shared-dependencies/commit/df4d5b7717386f5e0e2cca87bd9afc56b2c7aee8)) - update iam.version to v1.1.0 ([#​448](https://www.togithub.com/googleapis/java-shared-dependencies/issues/448)) ([3967928](https://www.github.com/googleapis/java-shared-dependencies/commit/39679287f3ef8c1cbca5dfc8aca3f69cfee3d4a6))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 713564e336cc..1706377e7559 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.1.0 + 2.2.0 pom import From 3fd9d4986d53c46591c97efe06a1164469bff685 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Sep 2021 00:08:28 +0200 Subject: [PATCH 0824/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.2 (#816) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.114.1` -> `1.114.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.114.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.114.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.114.2/compatibility-slim/1.114.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.114.2/confidence-slim/1.114.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.114.2`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11142-httpswwwgithubcomgoogleapisjava-pubsubcomparev11141v11142-2021-08-24) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.114.1...v1.114.2)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8c24827826d1..be31989e8597 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.114.1 + 1.114.2 From f6ba932ab1424343a0263be3876ec3b25af6cc3a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 31 Aug 2021 15:24:39 -0700 Subject: [PATCH 0825/2363] chore: regenerate README (#825) This PR was generated using Autosynth. :rainbow:
    Log from Synthtool ``` 2021-08-31 22:10:43,213 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-pubsub/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-31 22:10:44,286 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
    Full log will be available here: https://source.cloud.google.com/results/invocations/9388d349-7014-42fc-875a-992a0c4f3532/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- java-pubsub/.github/readme/synth.metadata/synth.metadata | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata index 2cb04c3a4e44..9b0d4291beea 100644 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ b/java-pubsub/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "826dc10f5bb373e88b06d390fc2029960a2cad7c" + "sha": "eab6f94b82974f03019fa31b819d1b6f932af0c9" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "dfd55ad78a700acf987d592c8279789b1319b8c5" + "sha": "9a238a0623879c3de129a376c6085d4a862f6eb9" } } ] diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 31f05ef6ac4d..329609079ac4 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.114.1 + 1.114.2 ``` From 895a74dc4a4cc3cfedddc78cb24103354507dcc2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 3 Sep 2021 19:20:12 +0000 Subject: [PATCH 0826/2363] chore: release 1.114.3 (#821) :robot: I have created a release \*beep\* \*boop\* --- ### [1.114.3](https://www.github.com/googleapis/java-pubsub/compare/v1.114.2...v1.114.3) (2021-08-31) ### Bug Fixes * Set publish timeouts to be consistent with desired values ([#820](https://www.github.com/googleapis/java-pubsub/issues/820)) ([d5f7b1f](https://www.github.com/googleapis/java-pubsub/commit/d5f7b1fe120a4cdbed3772e1725ec331c6500975)) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.1.2 ([#823](https://www.github.com/googleapis/java-pubsub/issues/823)) ([5c6a0b4](https://www.github.com/googleapis/java-pubsub/commit/5c6a0b4c2c9afb53dac0bb09ea2d829c801b54ad)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#824](https://www.github.com/googleapis/java-pubsub/issues/824)) ([5332f3a](https://www.github.com/googleapis/java-pubsub/commit/5332f3aec0c0986916f66e13ba6aaf42cb31f145)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 280089fb182b..a34e3ed80c6a 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +### [1.114.3](https://www.github.com/googleapis/java-pubsub/compare/v1.114.2...v1.114.3) (2021-08-31) + + +### Bug Fixes + +* Set publish timeouts to be consistent with desired values ([#820](https://www.github.com/googleapis/java-pubsub/issues/820)) ([826dc10](https://www.github.com/googleapis/java-pubsub/commit/826dc10f5bb373e88b06d390fc2029960a2cad7c)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.1.2 ([#823](https://www.github.com/googleapis/java-pubsub/issues/823)) ([cc0786f](https://www.github.com/googleapis/java-pubsub/commit/cc0786f0c8e8c88df15563204953ff8870244fd5)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#824](https://www.github.com/googleapis/java-pubsub/issues/824)) ([32623af](https://www.github.com/googleapis/java-pubsub/commit/32623af172e367b61a5bcb10c0001d5488b1e772)) + ### [1.114.2](https://www.github.com/googleapis/java-pubsub/compare/v1.114.1...v1.114.2) (2021-08-24) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d2cbc1fb343d..452a208234a6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.3-SNAPSHOT + 1.114.3 pom com.google.cloud @@ -53,17 +53,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.3-SNAPSHOT + 1.96.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.3-SNAPSHOT + 1.96.3 com.google.cloud google-cloud-pubsub - 1.114.3-SNAPSHOT + 1.114.3
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f2b5a724d7e7..3cccfc3a1e61 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.3-SNAPSHOT + 1.114.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.3-SNAPSHOT + 1.114.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 45ad18a0b604..ac3d25af83f9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.3-SNAPSHOT + 1.96.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.3-SNAPSHOT + 1.114.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1706377e7559..6101040cd9f7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.3-SNAPSHOT + 1.114.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.3-SNAPSHOT + 1.96.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.3-SNAPSHOT + 1.96.3 com.google.cloud google-cloud-pubsub - 1.114.3-SNAPSHOT + 1.114.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 604f7f986c6e..99f8c3d3e80b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.3-SNAPSHOT + 1.96.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.3-SNAPSHOT + 1.114.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 13441ca4ebe4..8372f79e8de2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.3-SNAPSHOT + 1.114.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 378e971df8c9..c602a1e81427 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.96.2:1.96.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.96.2:1.96.3-SNAPSHOT -google-cloud-pubsub:1.114.2:1.114.3-SNAPSHOT \ No newline at end of file +proto-google-cloud-pubsub-v1:1.96.3:1.96.3 +grpc-google-cloud-pubsub-v1:1.96.3:1.96.3 +google-cloud-pubsub:1.114.3:1.114.3 \ No newline at end of file From 61c1f9c8798bbea237ed239f80909706b3c64b59 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 16 Sep 2021 22:50:00 -0400 Subject: [PATCH 0827/2363] chore: migrate to owlbot (#842) * chore: migrate to owlbot * fix: revert breaking changes Co-authored-by: Hannah Rogers --- java-pubsub/.github/.OwlBot.lock.yaml | 3 + java-pubsub/.github/.OwlBot.yaml | 64 ++++++ java-pubsub/.github/release-trigger.yml | 1 + java-pubsub/.github/trusted-contribution.yml | 3 +- java-pubsub/.github/workflows/ci.yaml | 28 +-- java-pubsub/.kokoro/release/common.sh | 2 +- java-pubsub/.kokoro/release/drop.sh | 2 +- java-pubsub/.kokoro/release/promote.sh | 2 +- .../.kokoro/release/publish_javadoc.sh | 2 +- .../.kokoro/release/publish_javadoc11.sh | 2 +- java-pubsub/.kokoro/release/stage.sh | 2 +- java-pubsub/.kokoro/trampoline.sh | 2 +- java-pubsub/README.md | 6 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 17 +- java-pubsub/google-cloud-pubsub/pom.xml | 8 +- .../cloud/pubsub/v1/SchemaServiceClient.java | 10 +- .../pubsub/v1/SchemaServiceSettings.java | 3 +- .../pubsub/v1/SubscriptionAdminClient.java | 61 +++--- .../pubsub/v1/SubscriptionAdminSettings.java | 3 +- .../cloud/pubsub/v1/TopicAdminClient.java | 46 ++-- .../cloud/pubsub/v1/TopicAdminSettings.java | 3 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 134 +++++------- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 101 ++++----- .../pubsub/v1/stub/GrpcSubscriberStub.java | 202 +++++++----------- .../pubsub/v1/stub/PublisherStubSettings.java | 4 +- .../v1/stub/SchemaServiceStubSettings.java | 4 +- .../v1/stub/SubscriberStubSettings.java | 4 +- java-pubsub/{synth.py => owlbot.py} | 37 ++-- java-pubsub/pom.xml | 4 +- .../com/google/pubsub/v1/SnapshotName.java | 192 +++++++++++++++++ .../google/pubsub/v1/SubscriptionName.java | 192 +++++++++++++++++ java-pubsub/renovate.json | 3 +- java-pubsub/versions.txt | 4 +- 33 files changed, 721 insertions(+), 430 deletions(-) create mode 100644 java-pubsub/.github/.OwlBot.lock.yaml create mode 100644 java-pubsub/.github/.OwlBot.yaml create mode 100644 java-pubsub/.github/release-trigger.yml rename java-pubsub/{synth.py => owlbot.py} (96%) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml new file mode 100644 index 000000000000..225b3669f033 --- /dev/null +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -0,0 +1,3 @@ +docker: + digest: sha256:b328758e5113c392d3eccad613c2b18097eaebcb4d8bf77fab0326a6cad90bc7 + image: gcr.io/repo-automation-bots/owlbot-java:latest diff --git a/java-pubsub/.github/.OwlBot.yaml b/java-pubsub/.github/.OwlBot.yaml new file mode 100644 index 000000000000..8d17bd050dae --- /dev/null +++ b/java-pubsub/.github/.OwlBot.yaml @@ -0,0 +1,64 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +docker: + image: "gcr.io/repo-automation-bots/owlbot-java:latest" + +deep-remove-regex: +- "/grpc-google-.*/src" +- "/proto-google-.*/src" +- "/google-.*/src" + +deep-preserve-regex: +- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" +- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" +- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java" +- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" +- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" +- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java" + +deep-copy-regex: +- source: "/google/pubsub/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/$1/proto-google-cloud-pubsub-$1/src" +- source: "/google/pubsub/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/$1/grpc-google-cloud-pubsub-$1/src" +- source: "/google/pubsub/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/$1/google-cloud-pubsub/src" diff --git a/java-pubsub/.github/release-trigger.yml b/java-pubsub/.github/release-trigger.yml new file mode 100644 index 000000000000..d4ca94189e16 --- /dev/null +++ b/java-pubsub/.github/release-trigger.yml @@ -0,0 +1 @@ +enabled: true diff --git a/java-pubsub/.github/trusted-contribution.yml b/java-pubsub/.github/trusted-contribution.yml index f247d5c78934..a0ba1f7d9078 100644 --- a/java-pubsub/.github/trusted-contribution.yml +++ b/java-pubsub/.github/trusted-contribution.yml @@ -1,2 +1,3 @@ trustedContributors: -- renovate-bot \ No newline at end of file +- renovate-bot +- gcf-owl-bot[bot] diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 65ae6ecdda77..3becb5c022a3 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -12,6 +12,9 @@ jobs: java: [8, 11] steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: ${{matrix.java}} @@ -23,6 +26,9 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: 8 @@ -37,28 +43,21 @@ jobs: java: [8, 11] steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: ${{matrix.java}} - run: java -version - run: .kokoro/dependencies.sh - linkage-monitor: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: 8 - - run: java -version - - name: Install artifacts to local Maven repository - run: .kokoro/build.sh - shell: bash - - name: Validate any conflicts with regard to com.google.cloud:libraries-bom (latest release) - uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: 8 @@ -70,6 +69,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: 8 diff --git a/java-pubsub/.kokoro/release/common.sh b/java-pubsub/.kokoro/release/common.sh index 6e3f65999b3d..7f78ee414faf 100755 --- a/java-pubsub/.kokoro/release/common.sh +++ b/java-pubsub/.kokoro/release/common.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/java-pubsub/.kokoro/release/drop.sh b/java-pubsub/.kokoro/release/drop.sh index 5c4551efa2c0..742ec1a88600 100755 --- a/java-pubsub/.kokoro/release/drop.sh +++ b/java-pubsub/.kokoro/release/drop.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/java-pubsub/.kokoro/release/promote.sh b/java-pubsub/.kokoro/release/promote.sh index 1fa95fa537a3..3cac3d8a97d7 100755 --- a/java-pubsub/.kokoro/release/promote.sh +++ b/java-pubsub/.kokoro/release/promote.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/java-pubsub/.kokoro/release/publish_javadoc.sh b/java-pubsub/.kokoro/release/publish_javadoc.sh index 0c519cf65ca6..7b0bf293e2d5 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2019 Google Inc. +# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.sh b/java-pubsub/.kokoro/release/publish_javadoc11.sh index 01c08a1df723..f50aacee6860 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc11.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc11.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2021 Google Inc. +# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/java-pubsub/.kokoro/release/stage.sh b/java-pubsub/.kokoro/release/stage.sh index 8a1033843cb1..77dc4e8f0f3a 100755 --- a/java-pubsub/.kokoro/release/stage.sh +++ b/java-pubsub/.kokoro/release/stage.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/java-pubsub/.kokoro/trampoline.sh b/java-pubsub/.kokoro/trampoline.sh index 9da0f8398773..8b69b793c9ec 100644 --- a/java-pubsub/.kokoro/trampoline.sh +++ b/java-pubsub/.kokoro/trampoline.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 329609079ac4..cd3643b80178 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,20 +51,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:22.0.0') +implementation platform('com.google.cloud:libraries-bom:23.0.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.114.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.114.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.3" ``` ## Authentication diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 452a208234a6..a940926e467a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -49,11 +49,10 @@ - - com.google.api.grpc - proto-google-cloud-pubsub-v1 - 1.96.3 + com.google.cloud + google-cloud-pubsub + 1.114.3 com.google.api.grpc @@ -61,9 +60,9 @@ 1.96.3 - com.google.cloud - google-cloud-pubsub - 1.114.3 + com.google.api.grpc + proto-google-cloud-pubsub-v1 + 1.96.3 @@ -79,4 +78,4 @@ - \ No newline at end of file + diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3cccfc3a1e61..7bfb2a5cb137 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -157,8 +157,8 @@ maven-compiler-plugin 3.8.1 - 1.7 - 1.7 + 1.8 + 1.8 UTF-8 -Xlint:unchecked @@ -192,4 +192,4 @@ - \ No newline at end of file + diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index be0bf88a58ff..e65f1778312f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.pubsub.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -967,14 +966,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListSchemasPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListSchemasPagedResponse apply(ListSchemasPage input) { - return new ListSchemasPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListSchemasPagedResponse(input), MoreExecutors.directExecutor()); } private ListSchemasPagedResponse(ListSchemasPage page) { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index eb2d803cda8e..e8c50371c422 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -217,14 +217,13 @@ public SchemaServiceStubSettings.Builder getStubSettingsBuilder() { return ((SchemaServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' /** * Applies the given settings updater function to all of the unary API methods in this service. * *

    Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 6cfed59628e6..6d1c6950a5e6 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -16,7 +16,6 @@ package com.google.cloud.pubsub.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -409,13 +408,14 @@ public final Subscription createSubscription( * *

    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   String name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
    -   *   int ackDeadlineSeconds = 0;
    -   *   Subscription response = subscriptionAdminClient.createSubscription(name.toString(), topic.toString(), pushConfig, ackDeadlineSeconds);
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   Subscription response =
    +   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
        * }
    -   * 
    + * } * * @param name Required. The name of the subscription. It must have the format * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a @@ -651,8 +651,8 @@ public final Subscription getSubscription(ProjectSubscriptionName subscription) * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    -   *   Subscription response = subscriptionAdminClient.getSubscription(subscription.toString());
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
        * }
        * }
    * @@ -1172,8 +1172,7 @@ public final UnaryCallable modifyAckDeadlineCal * returned by the Pub/Sub system in the `Pull` response. Must not be empty. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - /* package-private */ final void acknowledge( - ProjectSubscriptionName subscription, List ackIds) { + public final void acknowledge(ProjectSubscriptionName subscription, List ackIds) { AcknowledgeRequest request = AcknowledgeRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -2373,9 +2372,9 @@ public final UnaryCallable seekCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. Replacesany existing policy. * - *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. * *

    Sample code: * @@ -2430,9 +2429,9 @@ public final Policy setIamPolicy(String resource, Policy policy) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. Replacesany existing policy. * - *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. * *

    Sample code: * @@ -2455,7 +2454,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * Gets the access control policy for a resource. Returns an empty policyif the resource exists * and does not have a policy set. * *

    Sample code: @@ -2505,7 +2504,7 @@ public final Policy getIamPolicy(String resource) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * Gets the access control policy for a resource. Returns an empty policyif the resource exists * and does not have a policy set. * *

    Sample code: @@ -2529,11 +2528,11 @@ public final UnaryCallable getIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. * - *

    Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without + *

    Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without * warning. * *

    Sample code: @@ -2596,11 +2595,11 @@ public final TestIamPermissionsResponse testIamPermissions( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. * - *

    Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without + *

    Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without * warning. * *

    Sample code: @@ -2669,12 +2668,7 @@ public static ApiFuture createAsync( ListSubscriptionsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListSubscriptionsPagedResponse apply(ListSubscriptionsPage input) { - return new ListSubscriptionsPagedResponse(input); - } - }, + input -> new ListSubscriptionsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -2754,12 +2748,7 @@ public static ApiFuture createAsync( ListSnapshotsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListSnapshotsPagedResponse apply(ListSnapshotsPage input) { - return new ListSnapshotsPagedResponse(input); - } - }, + input -> new ListSnapshotsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 14cde7756a29..a90bfd14137d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -284,14 +284,13 @@ public SubscriberStubSettings.Builder getStubSettingsBuilder() { return ((SubscriberStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' /** * Applies the given settings updater function to all of the unary API methods in this service. * *

    Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 177a3d59175c..1a9ba28870ee 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -16,7 +16,6 @@ package com.google.cloud.pubsub.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1282,9 +1281,9 @@ public final Policy setIamPolicy(String resource, Policy policy) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the access control policy on the specified resource. Replaces any existing policy. + * Sets the access control policy on the specified resource. Replacesany existing policy. * - *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. * *

    Sample code: * @@ -1357,7 +1356,7 @@ public final Policy getIamPolicy(String resource) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * Gets the access control policy for a resource. Returns an empty policyif the resource exists * and does not have a policy set. * *

    Sample code: @@ -1381,11 +1380,11 @@ public final UnaryCallable getIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. * - *

    Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without + *

    Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without * warning. * *

    Sample code: @@ -1448,11 +1447,11 @@ public final TestIamPermissionsResponse testIamPermissions( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. * - *

    Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without + *

    Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without * warning. * *

    Sample code: @@ -1520,14 +1519,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListTopicsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListTopicsPagedResponse apply(ListTopicsPage input) { - return new ListTopicsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListTopicsPagedResponse(input), MoreExecutors.directExecutor()); } private ListTopicsPagedResponse(ListTopicsPage page) { @@ -1601,12 +1593,7 @@ public static ApiFuture createAsync( ListTopicSubscriptionsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListTopicSubscriptionsPagedResponse apply(ListTopicSubscriptionsPage input) { - return new ListTopicSubscriptionsPagedResponse(input); - } - }, + input -> new ListTopicSubscriptionsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1730,12 +1717,7 @@ public static ApiFuture createAsync( ListTopicSnapshotsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListTopicSnapshotsPagedResponse apply(ListTopicSnapshotsPage input) { - return new ListTopicSnapshotsPagedResponse(input); - } - }, + input -> new ListTopicSnapshotsPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index f67d51094df9..41ebfd68dd01 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -244,14 +244,13 @@ public PublisherStubSettings.Builder getStubSettingsBuilder() { return ((PublisherStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception' /** * Applies the given settings updater function to all of the unary API methods in this service. * *

    Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 950b7223777a..5ccb0793e339 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; @@ -52,7 +51,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -242,65 +240,50 @@ protected GrpcPublisherStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createTopicMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(Topic request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings updateTopicTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateTopicMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateTopicRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic.name", String.valueOf(request.getTopic().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic.name", String.valueOf(request.getTopic().getName())); + return params.build(); }) .build(); GrpcCallSettings publishTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(publishMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PublishRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic", String.valueOf(request.getTopic())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic", String.valueOf(request.getTopic())); + return params.build(); }) .build(); GrpcCallSettings getTopicTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getTopicMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTopicRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic", String.valueOf(request.getTopic())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic", String.valueOf(request.getTopic())); + return params.build(); }) .build(); GrpcCallSettings listTopicsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listTopicsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTopicsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project", String.valueOf(request.getProject())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project", String.valueOf(request.getProject())); + return params.build(); }) .build(); GrpcCallSettings @@ -309,13 +292,10 @@ public Map extract(ListTopicsRequest request) { .newBuilder() .setMethodDescriptor(listTopicSubscriptionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTopicSubscriptionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic", String.valueOf(request.getTopic())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic", String.valueOf(request.getTopic())); + return params.build(); }) .build(); GrpcCallSettings @@ -323,26 +303,20 @@ public Map extract(ListTopicSubscriptionsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listTopicSnapshotsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTopicSnapshotsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic", String.valueOf(request.getTopic())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic", String.valueOf(request.getTopic())); + return params.build(); }) .build(); GrpcCallSettings deleteTopicTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTopicMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteTopicRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic", String.valueOf(request.getTopic())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("topic", String.valueOf(request.getTopic())); + return params.build(); }) .build(); GrpcCallSettings @@ -350,39 +324,30 @@ public Map extract(DeleteTopicRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(detachSubscriptionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DetachSubscriptionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); }) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings @@ -390,13 +355,10 @@ public Map extract(GetIamPolicyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(TestIamPermissionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index 0ca41b379b03..e5cd65fb692a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -23,7 +23,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; @@ -46,7 +45,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -201,52 +199,40 @@ protected GrpcSchemaServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createSchemaMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateSchemaRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getSchemaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSchemaMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetSchemaRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listSchemasTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSchemasMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListSchemasRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteSchemaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSchemaMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteSchemaRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -254,13 +240,10 @@ public Map extract(DeleteSchemaRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(validateSchemaMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ValidateSchemaRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -268,39 +251,30 @@ public Map extract(ValidateSchemaRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(validateMessageMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ValidateMessageRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings @@ -308,13 +282,10 @@ public Map extract(GetIamPolicyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(TestIamPermissionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index 878a2ad7d266..523c0376a3d0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; @@ -60,7 +59,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -326,40 +324,31 @@ protected GrpcSubscriberStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createSubscriptionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(Subscription request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings getSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSubscriptionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetSubscriptionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); }) .build(); GrpcCallSettings updateSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSubscriptionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateSubscriptionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "subscription.name", String.valueOf(request.getSubscription().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "subscription.name", String.valueOf(request.getSubscription().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -367,65 +356,50 @@ public Map extract(UpdateSubscriptionRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listSubscriptionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListSubscriptionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project", String.valueOf(request.getProject())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project", String.valueOf(request.getProject())); + return params.build(); }) .build(); GrpcCallSettings deleteSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSubscriptionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteSubscriptionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); }) .build(); GrpcCallSettings modifyAckDeadlineTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(modifyAckDeadlineMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ModifyAckDeadlineRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); }) .build(); GrpcCallSettings acknowledgeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(acknowledgeMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(AcknowledgeRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); }) .build(); GrpcCallSettings pullTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(pullMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PullRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); }) .build(); GrpcCallSettings streamingPullTransportSettings = @@ -436,117 +410,90 @@ public Map extract(PullRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(modifyPushConfigMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ModifyPushConfigRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); }) .build(); GrpcCallSettings getSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSnapshotMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetSnapshotRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("snapshot", String.valueOf(request.getSnapshot())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("snapshot", String.valueOf(request.getSnapshot())); + return params.build(); }) .build(); GrpcCallSettings listSnapshotsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSnapshotsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListSnapshotsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project", String.valueOf(request.getProject())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("project", String.valueOf(request.getProject())); + return params.build(); }) .build(); GrpcCallSettings createSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createSnapshotMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateSnapshotRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings updateSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSnapshotMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateSnapshotRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("snapshot.name", String.valueOf(request.getSnapshot().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("snapshot.name", String.valueOf(request.getSnapshot().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSnapshotMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteSnapshotRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("snapshot", String.valueOf(request.getSnapshot())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("snapshot", String.valueOf(request.getSnapshot())); + return params.build(); }) .build(); GrpcCallSettings seekTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(seekMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SeekRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("subscription", String.valueOf(request.getSubscription())); + return params.build(); }) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings @@ -554,13 +501,10 @@ public Map extract(GetIamPolicyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(TestIamPermissionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index e5ea4e34bc01..166775ec3c59 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -490,7 +490,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 00489c3f749a..fb8a87653daa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -254,7 +254,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 5787cd8a5d82..32733fbf95de 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -395,7 +395,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/java-pubsub/synth.py b/java-pubsub/owlbot.py similarity index 96% rename from java-pubsub/synth.py rename to java-pubsub/owlbot.py index 991fba4db712..db3167abaa71 100644 --- a/java-pubsub/synth.py +++ b/java-pubsub/owlbot.py @@ -1,10 +1,10 @@ -# Copyright 2018 Google LLC +# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -12,15 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""This script is used to synthesize generated parts of this library.""" - import synthtool as s -import synthtool.languages.java as java +from synthtool.languages import java -AUTOSYNTH_MULTIPLE_COMMITS = True service = 'pubsub' -versions = ['v1'] +version = 'v1' GET_IAM_POLICY_TOPIC = """ // AUTO-GENERATED DOCUMENTATION AND METHOD @@ -428,13 +425,8 @@ IMPORT_PROJECT_TOPIC_NAME = 'import com.google.pubsub.v1.ProjectTopicName;' -for version in versions: - java.bazel_library( - service=service, - version=version, - proto_path=f'google/{service}/{version}', - bazel_target=f'//google/{service}/{version}:google-cloud-{service}-{version}-java', - ) +for library in s.get_staging_dirs(): + # put any special-case replacements here s.replace( '**/stub/SubscriberStubSettings.java', r'setMaxInboundMessageSize\(Integer.MAX_VALUE\)', @@ -518,12 +510,13 @@ PACKAGE + '\n\n' + IMPORT_PROJECT_TOPIC_NAME + '\n' ) - java.format_code('google-cloud-pubsub/src') - java.format_code(f'grpc-google-cloud-{service}-{version}/src') - java.format_code(f'proto-google-cloud-{service}-{version}/src') + s.move(library) -java.common_templates(excludes=[ - ".github/workflows/samples.yaml", - ".kokoro/build.sh", - ".github/sync-repo-settings.yaml", -]) +s.remove_staging_dirs() +java.common_templates( + excludes=[ + ".github/workflows/samples.yaml", + ".kokoro/build.sh", + ".github/sync-repo-settings.yaml", + ] +) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6101040cd9f7..d9ad3ddde9c0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -134,9 +134,9 @@ - proto-google-cloud-pubsub-v1 - grpc-google-cloud-pubsub-v1 google-cloud-pubsub + grpc-google-cloud-pubsub-v1 + proto-google-cloud-pubsub-v1 google-cloud-pubsub-bom diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java new file mode 100644 index 000000000000..fe26eefe0f40 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.pubsub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SnapshotName implements ResourceName { + private static final PathTemplate PROJECT_SNAPSHOT = + PathTemplate.createWithoutUrlEncoding("projects/{project}/snapshots/{snapshot}"); + private volatile Map fieldValuesMap; + private final String project; + private final String snapshot; + + @Deprecated + protected SnapshotName() { + project = null; + snapshot = null; + } + + private SnapshotName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + snapshot = Preconditions.checkNotNull(builder.getSnapshot()); + } + + public String getProject() { + return project; + } + + public String getSnapshot() { + return snapshot; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SnapshotName of(String project, String snapshot) { + return newBuilder().setProject(project).setSnapshot(snapshot).build(); + } + + public static String format(String project, String snapshot) { + return newBuilder().setProject(project).setSnapshot(snapshot).build().toString(); + } + + public static SnapshotName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_SNAPSHOT.validatedMatch( + formattedString, "SnapshotName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("snapshot")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SnapshotName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_SNAPSHOT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (snapshot != null) { + fieldMapBuilder.put("snapshot", snapshot); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_SNAPSHOT.instantiate("project", project, "snapshot", snapshot); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SnapshotName that = ((SnapshotName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.snapshot, that.snapshot); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(snapshot); + return h; + } + + /** Builder for projects/{project}/snapshots/{snapshot}. */ + public static class Builder { + private String project; + private String snapshot; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getSnapshot() { + return snapshot; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setSnapshot(String snapshot) { + this.snapshot = snapshot; + return this; + } + + private Builder(SnapshotName snapshotName) { + this.project = snapshotName.project; + this.snapshot = snapshotName.snapshot; + } + + public SnapshotName build() { + return new SnapshotName(this); + } + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java new file mode 100644 index 000000000000..0eed7889aa68 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.pubsub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SubscriptionName implements ResourceName { + private static final PathTemplate PROJECT_SUBSCRIPTION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/subscriptions/{subscription}"); + private volatile Map fieldValuesMap; + private final String project; + private final String subscription; + + @Deprecated + protected SubscriptionName() { + project = null; + subscription = null; + } + + private SubscriptionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + subscription = Preconditions.checkNotNull(builder.getSubscription()); + } + + public String getProject() { + return project; + } + + public String getSubscription() { + return subscription; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SubscriptionName of(String project, String subscription) { + return newBuilder().setProject(project).setSubscription(subscription).build(); + } + + public static String format(String project, String subscription) { + return newBuilder().setProject(project).setSubscription(subscription).build().toString(); + } + + public static SubscriptionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_SUBSCRIPTION.validatedMatch( + formattedString, "SubscriptionName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("subscription")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SubscriptionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_SUBSCRIPTION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (subscription != null) { + fieldMapBuilder.put("subscription", subscription); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_SUBSCRIPTION.instantiate("project", project, "subscription", subscription); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SubscriptionName that = ((SubscriptionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.subscription, that.subscription); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(subscription); + return h; + } + + /** Builder for projects/{project}/subscriptions/{subscription}. */ + public static class Builder { + private String project; + private String subscription; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getSubscription() { + return subscription; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setSubscription(String subscription) { + this.subscription = subscription; + return this; + } + + private Builder(SubscriptionName subscriptionName) { + this.project = subscriptionName.project; + this.subscription = subscriptionName.subscription; + } + + public SubscriptionName build() { + return new SubscriptionName(this); + } + } +} diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 9bc5d6c36bf6..743bdbb5bd7b 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -50,7 +50,8 @@ "^junit:junit", "^com.google.truth:truth", "^org.mockito:mockito-core", - "^org.objenesis:objenesis" + "^org.objenesis:objenesis", + "^com.google.cloud:google-cloud-conformance-tests" ], "semanticCommitType": "test", "semanticCommitScope": "deps" diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c602a1e81427..d0078ea7c2a0 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -proto-google-cloud-pubsub-v1:1.96.3:1.96.3 +google-cloud-pubsub:1.114.3:1.114.3 grpc-google-cloud-pubsub-v1:1.96.3:1.96.3 -google-cloud-pubsub:1.114.3:1.114.3 \ No newline at end of file +proto-google-cloud-pubsub-v1:1.96.3:1.96.3 From 6a7a8062f085f6196f2808c544f1ab63a1bbb175 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Sep 2021 05:04:28 +0200 Subject: [PATCH 0828/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.1.4 (#835) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.2` -> `2.1.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/compatibility-slim/2.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.4/confidence-slim/2.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes

    googleapis/java-core ### [`v2.1.4`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​214-httpswwwgithubcomgoogleapisjava-corecomparev213v214-2021-09-15) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.3...v2.1.4) ### [`v2.1.3`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​213-httpswwwgithubcomgoogleapisjava-corecomparev212v213-2021-09-10) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.2...v2.1.3)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index be31989e8597..ac1d33f2a8b2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.1.2 + 2.1.4 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8372f79e8de2..fa6db578e0e6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.1.2 + 2.1.4 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e900f6001c7a..0652ccbebead 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.1.2 + 2.1.4 tests From b28afa92f785ea84f41c77ab03c468fb63be6bb3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 17 Sep 2021 08:14:10 +0000 Subject: [PATCH 0829/2363] chore: release 1.114.4-SNAPSHOT (#843) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../clirr-ignored-differences.xml | 10 ---------- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../clirr-ignored-differences.xml | 10 ---------- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 18 insertions(+), 38 deletions(-) delete mode 100644 java-pubsub/grpc-google-cloud-pubsub-v1/clirr-ignored-differences.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a940926e467a..61585ca7eff2 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.3 + 1.114.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.114.3 + 1.114.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.3 + 1.96.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.3 + 1.96.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7bfb2a5cb137..22a31ce9c8c2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.3 + 1.114.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.3 + 1.114.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/clirr-ignored-differences.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/clirr-ignored-differences.xml deleted file mode 100644 index bf6eda2eec44..000000000000 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/clirr-ignored-differences.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 6001 - com/google/pubsub/v1/*Grpc - METHOD_* - - \ No newline at end of file diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ac3d25af83f9..866c5ab8244f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.3 + 1.96.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.3 + 1.114.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d9ad3ddde9c0..907fae773d82 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.3 + 1.114.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.3 + 1.96.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.3 + 1.96.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.3 + 1.114.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml b/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml index da90cd601b6f..223719761f56 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml @@ -16,14 +16,4 @@ com/google/pubsub/v1/*OrBuilder boolean has*(*) - - 7002 - com/google/pubsub/v1/TopicName - java.util.List toStrings(*) - - - 7002 - com/google/pubsub/v1/TopicName - java.util.List parse(*) - diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 99f8c3d3e80b..4bca81b1d81f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.3 + 1.96.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.3 + 1.114.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fa6db578e0e6..48c2a6a5a45d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.3 + 1.114.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d0078ea7c2a0..a24aecfae770 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.114.3:1.114.3 -grpc-google-cloud-pubsub-v1:1.96.3:1.96.3 -proto-google-cloud-pubsub-v1:1.96.3:1.96.3 +google-cloud-pubsub:1.114.3:1.114.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.96.3:1.96.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.96.3:1.96.4-SNAPSHOT From 2832425987868b9c1a8f482ec622dbfa5f75257b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Sep 2021 13:32:23 +0200 Subject: [PATCH 0830/2363] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.1 (#830) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 907fae773d82..39b2f7349e99 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -172,7 +172,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.0 + 3.3.1 html From cdf4265a89f1520d263c807e36a67100489a4cf3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Sep 2021 13:33:54 +0200 Subject: [PATCH 0831/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 (#836) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 39b2f7349e99..b99da7ac15a0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.2.0 + 2.2.1 pom import From 6cd8162816a94651dc3a84427f5254013df97c72 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Sep 2021 13:45:54 +0200 Subject: [PATCH 0832/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.3 (#829) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.3 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index cd3643b80178..e7bdd06cdfa3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.114.2 + 1.114.3 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ac1d33f2a8b2..170af432ffb7 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.114.2 + 1.114.3 From 2d50d3742292a8e73e59439aff3f4c3e66d2e58c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Sep 2021 13:56:15 +0200 Subject: [PATCH 0833/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v23 (#831) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v23 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e7bdd06cdfa3..53d636e328e0 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 22.0.0 + 23.0.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 0652ccbebead..0fddca5ec2d5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 22.0.0 + 23.0.0 pom import From 3acef1859c813e84118a9f1d0e4db409a70f7f1b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Sep 2021 13:56:38 +0200 Subject: [PATCH 0834/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.2 (#838) * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.2 * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.2 Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 61585ca7eff2..e6f26e070715 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.1 + 1.0.2 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b99da7ac15a0..bd31405950d4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.1 + 1.0.2 From d7584af81e8bcefefd65b5cc8012fda193b65c46 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Fri, 17 Sep 2021 05:06:45 -0700 Subject: [PATCH 0835/2363] chore: remove readme autosynth config (#833) Co-authored-by: Hannah Rogers --- .../readme/synth.metadata/synth.metadata | 18 ------ java-pubsub/.github/readme/synth.py | 19 ------- java-pubsub/.kokoro/continuous/readme.cfg | 55 ------------------- 3 files changed, 92 deletions(-) delete mode 100644 java-pubsub/.github/readme/synth.metadata/synth.metadata delete mode 100644 java-pubsub/.github/readme/synth.py delete mode 100644 java-pubsub/.kokoro/continuous/readme.cfg diff --git a/java-pubsub/.github/readme/synth.metadata/synth.metadata b/java-pubsub/.github/readme/synth.metadata/synth.metadata deleted file mode 100644 index 9b0d4291beea..000000000000 --- a/java-pubsub/.github/readme/synth.metadata/synth.metadata +++ /dev/null @@ -1,18 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/java-pubsub.git", - "sha": "eab6f94b82974f03019fa31b819d1b6f932af0c9" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "9a238a0623879c3de129a376c6085d4a862f6eb9" - } - } - ] -} \ No newline at end of file diff --git a/java-pubsub/.github/readme/synth.py b/java-pubsub/.github/readme/synth.py deleted file mode 100644 index 7b48cc28d361..000000000000 --- a/java-pubsub/.github/readme/synth.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""This script is used to synthesize generated the README for this library.""" - -from synthtool.languages import java - -java.custom_templates(["java_library/README.md"]) diff --git a/java-pubsub/.kokoro/continuous/readme.cfg b/java-pubsub/.kokoro/continuous/readme.cfg deleted file mode 100644 index cc3ada374f2f..000000000000 --- a/java-pubsub/.kokoro/continuous/readme.cfg +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/python-multi" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/readme.sh" -} - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.log" - } -} - -# The github token is stored here. -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "yoshi-automation-github-key" - # TODO(theacodes): remove this after secrets have globally propagated - backend_type: FASTCONFIGPUSH - } - } -} - -# Common env vars for all repositories and builds. -env_vars: { - key: "GITHUB_USER" - value: "yoshi-automation" -} -env_vars: { - key: "GITHUB_EMAIL" - value: "yoshi-automation@google.com" -} From 6d5264b186b4895c18bcc9c4901da39904eab449 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Sep 2021 14:30:55 +0200 Subject: [PATCH 0836/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.18.0 (#841) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 170af432ffb7..ff87e1a80bea 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.17.3 + 3.18.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 48c2a6a5a45d..dcdb950c76ed 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.17.3 + 3.18.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 0fddca5ec2d5..4a67c43416a1 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.17.3 + 3.18.0 From eac9b2de1afcbd508d0dca6d296ee21dbdfd0cc6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 17 Sep 2021 12:46:09 +0000 Subject: [PATCH 0837/2363] chore: release 1.114.4 (#844) :robot: I have created a release \*beep\* \*boop\* --- ### [1.114.4](https://www.github.com/googleapis/java-pubsub/compare/v1.114.3...v1.114.4) (2021-09-17) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.1.4 ([#835](https://www.github.com/googleapis/java-pubsub/issues/835)) ([6a7a806](https://www.github.com/googleapis/java-pubsub/commit/6a7a8062f085f6196f2808c544f1ab63a1bbb175)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#836](https://www.github.com/googleapis/java-pubsub/issues/836)) ([cdf4265](https://www.github.com/googleapis/java-pubsub/commit/cdf4265a89f1520d263c807e36a67100489a4cf3)) * update dependency com.google.protobuf:protobuf-java-util to v3.18.0 ([#841](https://www.github.com/googleapis/java-pubsub/issues/841)) ([6d5264b](https://www.github.com/googleapis/java-pubsub/commit/6d5264b186b4895c18bcc9c4901da39904eab449)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index a34e3ed80c6a..b8180c4e2ab4 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +### [1.114.4](https://www.github.com/googleapis/java-pubsub/compare/v1.114.3...v1.114.4) (2021-09-17) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.1.4 ([#835](https://www.github.com/googleapis/java-pubsub/issues/835)) ([2ab94ab](https://www.github.com/googleapis/java-pubsub/commit/2ab94abdc18c010496c50827c1f2eff02dae68e0)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#836](https://www.github.com/googleapis/java-pubsub/issues/836)) ([39770c9](https://www.github.com/googleapis/java-pubsub/commit/39770c9a6641273e4839b758d67ecbf2abd3a63f)) +* update dependency com.google.protobuf:protobuf-java-util to v3.18.0 ([#841](https://www.github.com/googleapis/java-pubsub/issues/841)) ([f5d515c](https://www.github.com/googleapis/java-pubsub/commit/f5d515c718c39dcfb5bf9375e624c1b1c28eb892)) + ### [1.114.3](https://www.github.com/googleapis/java-pubsub/compare/v1.114.2...v1.114.3) (2021-08-31) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e6f26e070715..114fb10bda01 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.4-SNAPSHOT + 1.114.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.114.4-SNAPSHOT + 1.114.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.4-SNAPSHOT + 1.96.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.4-SNAPSHOT + 1.96.4 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 22a31ce9c8c2..27b1ad3f45cd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.4-SNAPSHOT + 1.114.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.4-SNAPSHOT + 1.114.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 866c5ab8244f..6231ae1d706e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.4-SNAPSHOT + 1.96.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.4-SNAPSHOT + 1.114.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bd31405950d4..2c773d87fb5e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.4-SNAPSHOT + 1.114.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.4-SNAPSHOT + 1.96.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.4-SNAPSHOT + 1.96.4 com.google.cloud google-cloud-pubsub - 1.114.4-SNAPSHOT + 1.114.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4bca81b1d81f..cfc428231858 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.4-SNAPSHOT + 1.96.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.4-SNAPSHOT + 1.114.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index dcdb950c76ed..c96a6604839d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.4-SNAPSHOT + 1.114.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a24aecfae770..fdd2004c97b3 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.114.3:1.114.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.96.3:1.96.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.96.3:1.96.4-SNAPSHOT +google-cloud-pubsub:1.114.4:1.114.4 +grpc-google-cloud-pubsub-v1:1.96.4:1.96.4 +proto-google-cloud-pubsub-v1:1.96.4:1.96.4 From db00e71343766d01f6cdb4c14b3e72fa74246950 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 17 Sep 2021 12:58:26 +0000 Subject: [PATCH 0838/2363] chore: release 1.114.5-SNAPSHOT (#845) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 114fb10bda01..cd538e859046 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.4 + 1.114.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.114.4 + 1.114.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.4 + 1.96.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.4 + 1.96.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 27b1ad3f45cd..113d19b27025 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.4 + 1.114.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.4 + 1.114.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6231ae1d706e..1a27885f9fdd 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.4 + 1.96.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.4 + 1.114.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2c773d87fb5e..04abcb6d7827 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.4 + 1.114.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.4 + 1.96.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.4 + 1.96.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.4 + 1.114.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index cfc428231858..a6bae414fb03 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.4 + 1.96.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.4 + 1.114.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c96a6604839d..f6605b248f51 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.4 + 1.114.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index fdd2004c97b3..616208e08342 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.114.4:1.114.4 -grpc-google-cloud-pubsub-v1:1.96.4:1.96.4 -proto-google-cloud-pubsub-v1:1.96.4:1.96.4 +google-cloud-pubsub:1.114.4:1.114.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.96.4:1.96.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.96.4:1.96.5-SNAPSHOT From ef06b148e4e1655e8fdd2fbbef1d174bbb91c1dd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 20 Sep 2021 19:56:54 +0200 Subject: [PATCH 0839/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.4 (#846) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.4 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 53d636e328e0..c7bd99e4a8e7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.114.3 + 1.114.4 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.114.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.114.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.4" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ff87e1a80bea..fa0c50167719 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.114.3 + 1.114.4 From c95a9fd3621d9a0cbae54cbf8e6ba1c8ba01a10c Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Mon, 20 Sep 2021 17:17:42 -0400 Subject: [PATCH 0840/2363] docs(samples): add readme (#849) * docs(samples): add readme * address reviewer comments --- java-pubsub/samples/README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 java-pubsub/samples/README.md diff --git a/java-pubsub/samples/README.md b/java-pubsub/samples/README.md new file mode 100644 index 000000000000..5656f6f4df52 --- /dev/null +++ b/java-pubsub/samples/README.md @@ -0,0 +1,25 @@ +# How to run the samples + +1. Clone this repo and navigate to the `snippets` directory. + ```shell + git clone https://github.com/googlepis/java-pubsub + cd java-pubsub/samples/snippets + ``` + +1. [Obtain GCP user access credentials] via a web flow for your application. + ```shell + gcloud auth application-default login + ``` + +1. With [Maven] installed, run a sample that has the to-do section completed: + ```shell + mvn clean compile exec:java -Dexec.mainClass=pubsub.CreateTopicExample + ``` + +1. To run the samples test: + ```shell + mvn -Dtest=pubsub.AdminIT test + ``` + +[Maven]: https://maven.apache.org/ +[Obtain GCP user access credentials]: https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login \ No newline at end of file From 507f9d141528597205f70924996a2fc34de61162 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 01:10:30 +0200 Subject: [PATCH 0841/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.3 (#853) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.2` -> `1.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/compatibility-slim/1.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/confidence-slim/1.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.0.3`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​103-httpswwwgithubcomgoogleapisjava-shared-configcomparev102v103-2021-09-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.2...v1.0.3)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index cd538e859046..5f8d2aa0112b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.2 + 1.0.3 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 04abcb6d7827..d689fac4e702 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.2 + 1.0.3 From ac14a49fcb81b8d4d9777bd4c323ffda21b3a7e8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 01:26:20 +0200 Subject: [PATCH 0842/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.1.5 (#854) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.4` -> `2.1.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/compatibility-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.5/confidence-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.1.5`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​215-httpswwwgithubcomgoogleapisjava-corecomparev214v215-2021-09-21) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.4...v2.1.5)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fa0c50167719..246bd9e2a4c8 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.1.4 + 2.1.5 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f6605b248f51..76897642b9bd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.1.4 + 2.1.5 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4a67c43416a1..6f7f06e7977c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.1.4 + 2.1.5 tests From e1c6cbc65ef931e23250421b9e43a54509142f0c Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Wed, 22 Sep 2021 11:54:55 -0400 Subject: [PATCH 0843/2363] fix: do not block forever if message size > flow control limits (#847) * Modifying Publish example in README to match other examples given, and fix issue #6784 * fix: Modifying Publish example in README to match other examples, and fix Issue #11 * feat: Adding support for DLQs Adding delivery attempt count to PubsubMessages as a message attribute, and creating helper function to allow users to get the count without knowing implementation details. * Fix formatting * fix: making changes requested in pull request * fix: creating fix to not populate delivery attempt attribute when dead lettering is not enabled * Adding unit test for case in which a received message has no delivery attempt * Making MessageWaiter class more generic to also be used for outstanding ack operations * Waiting for acks to complete before shutting down a streaming subscriber connection * Fixing formatting error * fix: making sure all publishes complete before shutting down the publisher * adding default max outstanding request bytes * fix: make push endpoint valid https * fix: use default zero value if a flow control setting is not provided * fix lint issues * fix: better cleanup during publisher test * fix: format issues * fix: test timeouts should be a minute * fix: make subscriberIt less flaky * fix: add deprecated tag for deprecated methods * fix: retrying sync pulls in subscriberIT test * Revert "fix: retrying sync pulls in subscriberIT test" This reverts commit fef99561335f6e60e70ca7d0d00ac4d74a9f431e. * fix: do not send ModAck if auto ack extensions are disabled * Adding test for zero ack extension * revert maxAckExtension changes * fix: flow control blocks forever * fix: throw flow control exception when message byte size is too big --- .../com/google/cloud/pubsub/v1/Publisher.java | 12 ++ .../cloud/pubsub/v1/PublisherImplTest.java | 121 ++++++++++++++---- 2 files changed, 109 insertions(+), 24 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index af7472e96f76..1ed5e2254435 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -27,6 +27,7 @@ import com.google.api.gax.batching.BatchingSettings; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; +import com.google.api.gax.batching.FlowController.LimitExceededBehavior; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.core.CredentialsProvider; @@ -779,6 +780,11 @@ public Builder setBatchingSettings(BatchingSettings batchingSettings) { Preconditions.checkArgument(batchingSettings.getRequestByteThreshold() > 0); Preconditions.checkNotNull(batchingSettings.getDelayThreshold()); Preconditions.checkArgument(batchingSettings.getDelayThreshold().toMillis() > 0); + FlowControlSettings flowControlSettings = batchingSettings.getFlowControlSettings(); + if (flowControlSettings.getLimitExceededBehavior() != LimitExceededBehavior.Ignore) { + Preconditions.checkArgument(flowControlSettings.getMaxOutstandingElementCount() > 0); + Preconditions.checkArgument(flowControlSettings.getMaxOutstandingRequestBytes() > 0); + } this.batchingSettings = batchingSettings; return this; } @@ -859,6 +865,12 @@ private static class MessageFlowController { } void acquire(long messageSize) throws FlowController.FlowControlException { + if (messageSize > byteLimit) { + logger.log( + Level.WARNING, + "Attempted to publish message with byte size > request byte flow control limit."); + throw new FlowController.MaxOutstandingRequestBytesReachedException(byteLimit); + } lock.lock(); try { if (outstandingMessages >= messageLimit diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 3da6570618e8..c41931de6ee6 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -1019,7 +1019,57 @@ public void testShutDown() throws Exception { } @Test - public void testPublishFlowControl_throwException() throws Exception { + public void invalidFlowControlBytes_throwException() throws Exception { + try { + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(1L) + .setDelayThreshold(Duration.ofSeconds(5)) + .setFlowControlSettings( + FlowControlSettings.newBuilder() + .setLimitExceededBehavior( + FlowController.LimitExceededBehavior.ThrowException) + .setMaxOutstandingElementCount(1L) + .setMaxOutstandingRequestBytes(0L) + .build()) + .build()) + .build(); + fail("Expected an IllegalArgumentException"); + } catch (Exception e) { + assertThat(e).isInstanceOf(IllegalArgumentException.class); + } + } + + @Test + public void invalidFlowControlElementCount_throwException() throws Exception { + try { + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(1L) + .setDelayThreshold(Duration.ofSeconds(5)) + .setFlowControlSettings( + FlowControlSettings.newBuilder() + .setLimitExceededBehavior( + FlowController.LimitExceededBehavior.ThrowException) + .setMaxOutstandingElementCount(0L) + .setMaxOutstandingRequestBytes(1000L) + .build()) + .build()) + .build(); + fail("Expected an IllegalArgumentException"); + } catch (Exception e) { + assertThat(e).isInstanceOf(IllegalArgumentException.class); + } + } + + @Test + public void testMessageExceedsFlowControlLimits_throwException() throws Exception { Publisher publisher = getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) @@ -1030,31 +1080,49 @@ public void testPublishFlowControl_throwException() throws Exception { .setDelayThreshold(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() - .setLimitExceededBehavior( - FlowController.LimitExceededBehavior.ThrowException) + .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) .setMaxOutstandingElementCount(1L) - .setMaxOutstandingRequestBytes(10L) + .setMaxOutstandingRequestBytes(1L) .build()) .build()) .build(); - // Sending a message that is too large results in an exception. - ApiFuture publishFuture1 = sendTestMessage(publisher, "AAAAAAAAAAA"); try { - publishFuture1.get(); - fail("Should have thrown an FlowController.MaxOutstandingRequestBytesReachedException"); + sendTestMessage(publisher, "AAAAAAAAAAAAAAAAAAAAA").get(); + fail("Should have thrown a FlowController.MaxOutstandingRequestBytesReachedException"); } catch (ExecutionException e) { assertThat(e.getCause()) .isInstanceOf(FlowController.MaxOutstandingRequestBytesReachedException.class); } + } - // Sending a second message succeeds. - ApiFuture publishFuture2 = sendTestMessage(publisher, "AAAA"); + @Test + public void testPublishFlowControl_throwException() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setExecutorProvider(SINGLE_THREAD_EXECUTOR) + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(1L) + .setDelayThreshold(Duration.ofSeconds(5)) + .setFlowControlSettings( + FlowControlSettings.newBuilder() + .setLimitExceededBehavior( + FlowController.LimitExceededBehavior.ThrowException) + .setMaxOutstandingElementCount(1L) + .setMaxOutstandingRequestBytes(10L) + .build()) + .build()) + .build(); + + // Sending a message less than the byte limit succeeds. + ApiFuture publishFuture1 = sendTestMessage(publisher, "AAAA"); - // Sending a third message fails because of the outstanding message. - ApiFuture publishFuture3 = sendTestMessage(publisher, "AA"); + // Sending another message fails because of the outstanding message. + ApiFuture publishFuture2 = sendTestMessage(publisher, "AA"); try { - publishFuture3.get(); + publishFuture2.get(); fail("Should have thrown an FlowController.MaxOutstandingElementCountReachedException"); } catch (ExecutionException e) { assertThat(e.getCause()) @@ -1062,7 +1130,7 @@ public void testPublishFlowControl_throwException() throws Exception { } testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("1")); - assertEquals("1", publishFuture2.get()); + assertEquals("1", publishFuture1.get()); // Sending another message succeeds. ApiFuture publishFuture4 = sendTestMessage(publisher, "AAAA"); @@ -1091,22 +1159,27 @@ public void testPublishFlowControl_throwExceptionWithOrderingKey() throws Except .setEnableMessageOrdering(true) .build(); - // Sending a message that is too large results in an exception. - ApiFuture publishFuture1 = - sendTestMessageWithOrderingKey(publisher, "AAAAAAAAAAA", "a"); + // Sending a message less than the byte limit succeeds. + ApiFuture publishFuture1 = sendTestMessageWithOrderingKey(publisher, "AAAA", "a"); + + // Sending another message fails because of the outstanding message. + ApiFuture publishFuture2 = sendTestMessageWithOrderingKey(publisher, "AA", "a"); try { - publishFuture1.get(); - fail("Should have thrown an FlowController.MaxOutstandingRequestBytesReachedException"); + publishFuture2.get(); + fail("Should have thrown an FlowController.MaxOutstandingElementCountReachedException"); } catch (ExecutionException e) { assertThat(e.getCause()) - .isInstanceOf(FlowController.MaxOutstandingRequestBytesReachedException.class); + .isInstanceOf(FlowController.MaxOutstandingElementCountReachedException.class); } - // Sending a second message for the same ordering key fails because the first one failed. - ApiFuture publishFuture2 = sendTestMessageWithOrderingKey(publisher, "AAAA", "a"); + testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("1")); + assertEquals("1", publishFuture1.get()); + + // Sending another message for the same ordering key fails because the one before failed. + ApiFuture publishFuture3 = sendTestMessageWithOrderingKey(publisher, "AAAA", "a"); try { - publishFuture2.get(); - Assert.fail("This should fail."); + publishFuture3.get(); + fail("This should fail."); } catch (ExecutionException e) { assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause()); } From cca32a2ea3deb93f1767957507dcb63c88a893b4 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Wed, 22 Sep 2021 12:17:14 -0400 Subject: [PATCH 0844/2363] fix: reset resource ids before test retries (#852) --- .../test/java/pubsub/DeadLetterQueueIT.java | 23 +++++++---- .../src/test/java/pubsub/SchemaIT.java | 41 ++++++++++++------- 2 files changed, 40 insertions(+), 24 deletions(-) diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java index 17241386edaf..fd9e72a33dd6 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java @@ -44,15 +44,13 @@ public class DeadLetterQueueIT { private PrintStream out; private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String _suffix = UUID.randomUUID().toString(); - private static final String topicId = "topic-" + _suffix; - private static final String subscriptionId = "subscription-" + _suffix; - private static final String deadLetterTopicId = "topic-dlq-" + _suffix; - private static final ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); - private static final ProjectTopicName deadLetterTopicName = - ProjectTopicName.of(projectId, deadLetterTopicId); - private static final ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); + private static String _suffix; + private static String topicId; + private static String subscriptionId; + private static String deadLetterTopicId; + private static ProjectTopicName topicName; + private static ProjectTopicName deadLetterTopicName; + private static ProjectSubscriptionName subscriptionName; private static void requireEnvVar(String varName) { assertNotNull( @@ -75,6 +73,13 @@ private static void publishSomeMessages() throws Exception { @BeforeClass public static void checkRequirements() { requireEnvVar("GOOGLE_CLOUD_PROJECT"); + _suffix = UUID.randomUUID().toString(); + topicId = "topic-" + _suffix; + subscriptionId = "subscription-" + _suffix; + deadLetterTopicId = "topic-dlq-" + _suffix; + topicName = ProjectTopicName.of(projectId, topicId); + deadLetterTopicName = ProjectTopicName.of(projectId, deadLetterTopicId); + subscriptionName = ProjectSubscriptionName.of(projectId, subscriptionId); } @Before diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java index e920891ebe5a..bec908800f0e 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java @@ -43,13 +43,13 @@ public class SchemaIT { private PrintStream out; private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String _suffix = UUID.randomUUID().toString(); - private static final String avroTopicId = "avro-topic-" + _suffix; - private static final String protoTopicId = "proto-topic-" + _suffix; - private static final String avroSubscriptionId = "avro-subscription-" + _suffix; - private static final String protoSubscriptionId = "proto-subscription-" + _suffix; - private static final String avroSchemaId = "avro-schema-" + _suffix; - private static final String protoSchemaId = "proto-schema-" + _suffix; + private static String _suffix; + private static String avroTopicId; + private static String protoTopicId; + private static String avroSubscriptionId; + private static String protoSubscriptionId; + private static String avroSchemaId; + private static String protoSchemaId; ClassLoader classLoader = getClass().getClassLoader(); File avscFile = new File(classLoader.getResource("us-states.avsc").getFile()); @@ -58,14 +58,12 @@ public class SchemaIT { File protoFile = new File(classLoader.getResource("us-states.proto").getFile()); String absoluteProtoFilePath = protoFile.getAbsolutePath(); - private static final TopicName avroTopicName = TopicName.of(projectId, avroTopicId); - private static final TopicName protoTopicName = TopicName.of(projectId, protoTopicId); - private static final ProjectSubscriptionName avroSubscriptionName = - ProjectSubscriptionName.of(projectId, avroSubscriptionId); - private static final ProjectSubscriptionName protoSubscriptionName = - ProjectSubscriptionName.of(projectId, protoSubscriptionId); - private static final SchemaName avroSchemaName = SchemaName.of(projectId, avroSchemaId); - private static final SchemaName protoSchemaName = SchemaName.of(projectId, protoSchemaId); + private static TopicName avroTopicName; + private static TopicName protoTopicName; + private static ProjectSubscriptionName avroSubscriptionName; + private static ProjectSubscriptionName protoSubscriptionName; + private static SchemaName avroSchemaName; + private static SchemaName protoSchemaName; private static void requireEnvVar(String varName) { assertNotNull( @@ -78,6 +76,19 @@ private static void requireEnvVar(String varName) { @Before public void setUp() { + _suffix = UUID.randomUUID().toString(); + avroTopicId = "avro-topic-" + _suffix; + protoTopicId = "proto-topic-" + _suffix; + avroSubscriptionId = "avro-subscription-" + _suffix; + protoSubscriptionId = "proto-subscription-" + _suffix; + avroSchemaId = "avro-schema-" + _suffix; + protoSchemaId = "proto-schema-" + _suffix; + avroTopicName = TopicName.of(projectId, avroTopicId); + protoTopicName = TopicName.of(projectId, protoTopicId); + avroSubscriptionName = ProjectSubscriptionName.of(projectId, avroSubscriptionId); + protoSubscriptionName = ProjectSubscriptionName.of(projectId, protoSubscriptionId); + avroSchemaName = SchemaName.of(projectId, avroSchemaId); + protoSchemaName = SchemaName.of(projectId, protoSchemaId); bout = new ByteArrayOutputStream(); out = new PrintStream(bout); System.setOut(out); From d9699be584c790e6580d5ade563290e57200b7ab Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 20:20:44 +0200 Subject: [PATCH 0845/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.1.6 (#855) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.5` -> `2.1.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.6/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.1.6`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​216-httpswwwgithubcomgoogleapisjava-corecomparev215v216-2021-09-21) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.5...v2.1.6)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 246bd9e2a4c8..91361bf20db4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.1.5 + 2.1.6 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 76897642b9bd..87f33362ab22 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.1.5 + 2.1.6 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6f7f06e7977c..e976ffc42f6a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.1.5 + 2.1.6 tests From 3d44bd9c0ac1a0094d264ac28222a08cea2f3d93 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 22:24:58 +0200 Subject: [PATCH 0846/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 (#856) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d689fac4e702..e2c730c7695f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.2.1 + 2.3.0 pom import From c232271fcc6f58119e8e886f81237fedc0318abd Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Wed, 22 Sep 2021 16:30:17 -0700 Subject: [PATCH 0847/2363] chore: relocate owl bot post processor (#851) chore: relocate owl bot post processor --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.github/.OwlBot.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 225b3669f033..e81cb2bd983d 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: digest: sha256:b328758e5113c392d3eccad613c2b18097eaebcb4d8bf77fab0326a6cad90bc7 - image: gcr.io/repo-automation-bots/owlbot-java:latest + image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest diff --git a/java-pubsub/.github/.OwlBot.yaml b/java-pubsub/.github/.OwlBot.yaml index 8d17bd050dae..3fd3247a0746 100644 --- a/java-pubsub/.github/.OwlBot.yaml +++ b/java-pubsub/.github/.OwlBot.yaml @@ -13,7 +13,7 @@ # limitations under the License. docker: - image: "gcr.io/repo-automation-bots/owlbot-java:latest" + image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" deep-remove-regex: - "/grpc-google-.*/src" From edbbc87953bae24420bf23ce2269f8e26cf4c899 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Sep 2021 22:58:36 +0200 Subject: [PATCH 0848/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.1.7 (#858) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 91361bf20db4..83131b2e9149 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.1.6 + 2.1.7 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 87f33362ab22..93dd6f7bddaf 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.1.6 + 2.1.7 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e976ffc42f6a..edcce1166639 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.1.6 + 2.1.7 tests From 1965b947d55010c4fb6cc3b465d0068febd4b464 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:42:51 +0000 Subject: [PATCH 0849/2363] chore(java): remove dependencyDashboardLabel config from renovate.json (#1220) (#859) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/renovate.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index e81cb2bd983d..afb21e42c1bd 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: - digest: sha256:b328758e5113c392d3eccad613c2b18097eaebcb4d8bf77fab0326a6cad90bc7 image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest + digest: sha256:52b5557b7155a80e6f1684c2376d5eef0df6d8d5c785551e1ff8cc000603b62a diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 743bdbb5bd7b..6b1bd2ba97b5 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -70,8 +70,5 @@ } ], "semanticCommits": true, - "dependencyDashboard": true, - "dependencyDashboardLabels": [ - "type: process" - ] + "dependencyDashboard": true } From d4244458c53c100235b7a5760f19b38892889455 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Fri, 24 Sep 2021 14:50:28 -0400 Subject: [PATCH 0850/2363] chore: make owlbot check required (#857) --- java-pubsub/.github/sync-repo-settings.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index ef217689317a..d7f471548693 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -17,6 +17,7 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google + - OwlBot Post Processor - pattern: 1.111.0-sp isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -32,6 +33,7 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google + - OwlBot Post Processor - pattern: java7 isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -47,6 +49,7 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google + - OwlBot Post Processor permissionRules: - team: yoshi-admins permission: admin From 311fe5b932b2c27404f7a7a5652f8721e1785400 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 27 Sep 2021 15:00:37 -0400 Subject: [PATCH 0851/2363] build: add jdk 17 to java units and dependency builds (#1216) (#861) * update dependencies.sh to not pass MaxPermSize when jdk 17 is used. MaxPermSize is an unrecognized flag in jdk 17. Source-Link: https://github.com/googleapis/synthtool/commit/a4be3384ccb92364795d981f2863f6986fcee620 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:13b7387edb404234610d30473ac48210ae7fe42a136335ee2b2f8a07c4c7f6a5 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.github/blunderbuss.yml | 2 +- java-pubsub/.github/workflows/ci.yaml | 21 +++-- java-pubsub/.kokoro/dependencies.sh | 23 +++++- java-pubsub/README.md | 108 +++++++++++++------------- 5 files changed, 91 insertions(+), 65 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index afb21e42c1bd..5ff6c87c1efd 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:52b5557b7155a80e6f1684c2376d5eef0df6d8d5c785551e1ff8cc000603b62a + digest: sha256:13b7387edb404234610d30473ac48210ae7fe42a136335ee2b2f8a07c4c7f6a5 diff --git a/java-pubsub/.github/blunderbuss.yml b/java-pubsub/.github/blunderbuss.yml index 1a23ea42b141..2176b0543214 100644 --- a/java-pubsub/.github/blunderbuss.yml +++ b/java-pubsub/.github/blunderbuss.yml @@ -1,5 +1,5 @@ # Configuration for the Blunderbuss GitHub app. For more info see -# https://github.com/googleapis/repo-automation-bots/tree/master/packages/blunderbuss +# https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss assign_prs_by: - labels: - samples diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 3becb5c022a3..2425d7234f42 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -1,7 +1,7 @@ on: push: branches: - - master + - main pull_request: name: ci jobs: @@ -9,14 +9,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [8, 11] + java: [8, 11, 17] steps: - uses: actions/checkout@v2 - uses: stCarolas/setup-maven@v4 with: maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: ${{matrix.java}} - run: java -version - run: .kokoro/build.sh @@ -29,8 +30,9 @@ jobs: - uses: stCarolas/setup-maven@v4 with: maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: 8 - run: java -version - run: .kokoro/build.bat @@ -40,14 +42,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [8, 11] + java: [8, 11, 17] steps: - uses: actions/checkout@v2 - uses: stCarolas/setup-maven@v4 with: maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: ${{matrix.java}} - run: java -version - run: .kokoro/dependencies.sh @@ -58,8 +61,9 @@ jobs: - uses: stCarolas/setup-maven@v4 with: maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: 8 - run: java -version - run: .kokoro/build.sh @@ -72,8 +76,9 @@ jobs: - uses: stCarolas/setup-maven@v4 with: maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: 8 - run: java -version - run: .kokoro/build.sh diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index 9030ba8f99ff..9a5105d7ebf4 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -28,7 +28,28 @@ source ${scriptDir}/common.sh java -version echo $JOB_TYPE -export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" +function determineMavenOpts() { + local javaVersion=$( + # filter down to the version line, then pull out the version between quotes, + # then trim the version number down to its minimal number (removing any + # update or suffix number). + java -version 2>&1 | grep "version" \ + | sed -E 's/^.*"(.*?)".*$/\1/g' \ + | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' + ) + + case $javaVersion in + "17") + # MaxPermSize is no longer supported as of jdk 17 + echo -n "-Xmx1024m" + ;; + *) + echo -n "-Xmx1024m -XX:MaxPermSize=128m" + ;; + esac +} + +export MAVEN_OPTS=$(determineMavenOpts) # this should run maven enforcer retry_with_backoff 3 10 \ diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c7bd99e4a8e7..bca700015758 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -236,59 +236,59 @@ In [CreateTopicAndPublishMessages.java](https://github.com/googleapis/google-clo ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/master/samples) directory. +Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/main/samples) directory. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Create Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | -| Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | -| Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | -| Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | -| Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | -| Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | -| Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | -| Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | -| Delete Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | -| Delete Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | -| Delete Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | -| Detach Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | -| Get Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | -| Get Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | -| Get Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | -| List Schemas Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | -| List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | -| List Subscriptions In Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | -| List Topics Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | -| Publish Avro Records Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | -| Publish Protobuf Messages Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | -| Publish With Batch Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | -| Publish With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | -| Publish With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | -| Publish With Error Handler Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | -| Publish With Flow Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | -| Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | -| Publish With Retry Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | -| Publisher Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/PublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublisherExample.java) | -| Receive Messages With Delivery Attempts Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | -| Remove Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | -| Resume Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | -| Set Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | -| Set Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | -| Subscribe Async Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | -| Subscribe Sync Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | -| Subscribe Sync With Lease Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | -| Subscribe With Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | -| Subscribe With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | -| Subscribe With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | -| Subscribe With Error Listener Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | -| Subscribe With Flow Control Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | -| Subscribe With Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | -| Test Subscription Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | -| Test Topic Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | -| Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | -| Update Push Configuration Example | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | -| State | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/utilities/State.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/State.java) | -| State Proto | [source code](https://github.com/googleapis/java-pubsub/blob/master/samples/snippets/src/main/java/utilities/StateProto.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/StateProto.java) | +| Create Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | +| Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | +| Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | +| Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | +| Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | +| Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | +| Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | +| Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | +| Delete Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | +| Delete Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | +| Delete Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | +| Detach Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | +| Get Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | +| Get Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | +| Get Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | +| List Schemas Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | +| List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | +| List Subscriptions In Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | +| List Topics Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | +| Publish Avro Records Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | +| Publish Protobuf Messages Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | +| Publish With Batch Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | +| Publish With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | +| Publish With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | +| Publish With Error Handler Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | +| Publish With Flow Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | +| Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | +| Publish With Retry Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | +| Publisher Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublisherExample.java) | +| Receive Messages With Delivery Attempts Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | +| Remove Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | +| Resume Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | +| Set Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | +| Set Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | +| Subscribe Async Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | +| Subscribe Sync Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | +| Subscribe Sync With Lease Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | +| Subscribe With Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | +| Subscribe With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | +| Subscribe With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | +| Subscribe With Error Listener Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | +| Subscribe With Flow Control Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | +| Subscribe With Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | +| Test Subscription Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | +| Test Topic Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | +| Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | +| Update Push Configuration Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | +| State | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/State.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/State.java) | +| State Proto | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/StateProto.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/StateProto.java) | @@ -397,10 +397,10 @@ Java is a registered trademark of Oracle and/or its affiliates. [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ -[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting -[contributing]: https://github.com/googleapis/java-pubsub/blob/master/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-pubsub/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-pubsub/blob/master/LICENSE +[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting +[contributing]: https://github.com/googleapis/java-pubsub/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/java-pubsub/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/java-pubsub/blob/main/LICENSE [enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=pubsub.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM From f0a7dbb15a8bffb8c1dc29f11ccfac58e25768e5 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 27 Sep 2021 15:26:30 -0400 Subject: [PATCH 0852/2363] chore: change branch master to main in sync-repo-settings.yaml (#863) --- java-pubsub/.github/sync-repo-settings.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index d7f471548693..dd7558686d4f 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -2,7 +2,7 @@ rebaseMergeAllowed: false squashMergeAllowed: true mergeCommitAllowed: false branchProtectionRules: - - pattern: master + - pattern: main isAdminEnforced: true requiredApprovingReviewCount: 1 requiresCodeOwnerReviews: true From 901f512166978a87b8667754620fa9c34bbfa260 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 27 Sep 2021 19:40:19 +0000 Subject: [PATCH 0853/2363] chore: release 1.114.5 (#862) :robot: I have created a release \*beep\* \*boop\* --- ### [1.114.5](https://www.github.com/googleapis/java-pubsub/compare/v1.114.4...v1.114.5) (2021-09-27) ### Bug Fixes * do not block forever if message size > flow control limits ([#847](https://www.github.com/googleapis/java-pubsub/issues/847)) ([e1c6cbc](https://www.github.com/googleapis/java-pubsub/commit/e1c6cbc65ef931e23250421b9e43a54509142f0c)) * reset resource ids before test retries ([#852](https://www.github.com/googleapis/java-pubsub/issues/852)) ([cca32a2](https://www.github.com/googleapis/java-pubsub/commit/cca32a2ea3deb93f1767957507dcb63c88a893b4)) ### Documentation * **samples:** add readme ([#849](https://www.github.com/googleapis/java-pubsub/issues/849)) ([c95a9fd](https://www.github.com/googleapis/java-pubsub/commit/c95a9fd3621d9a0cbae54cbf8e6ba1c8ba01a10c)) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.1.5 ([#854](https://www.github.com/googleapis/java-pubsub/issues/854)) ([ac14a49](https://www.github.com/googleapis/java-pubsub/commit/ac14a49fcb81b8d4d9777bd4c323ffda21b3a7e8)) * update dependency com.google.cloud:google-cloud-core to v2.1.6 ([#855](https://www.github.com/googleapis/java-pubsub/issues/855)) ([d9699be](https://www.github.com/googleapis/java-pubsub/commit/d9699be584c790e6580d5ade563290e57200b7ab)) * update dependency com.google.cloud:google-cloud-core to v2.1.7 ([#858](https://www.github.com/googleapis/java-pubsub/issues/858)) ([edbbc87](https://www.github.com/googleapis/java-pubsub/commit/edbbc87953bae24420bf23ce2269f8e26cf4c899)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#856](https://www.github.com/googleapis/java-pubsub/issues/856)) ([3d44bd9](https://www.github.com/googleapis/java-pubsub/commit/3d44bd9c0ac1a0094d264ac28222a08cea2f3d93)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 21 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 39 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index b8180c4e2ab4..a2a0cc445b35 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +### [1.114.5](https://www.github.com/googleapis/java-pubsub/compare/v1.114.4...v1.114.5) (2021-09-27) + + +### Bug Fixes + +* do not block forever if message size > flow control limits ([#847](https://www.github.com/googleapis/java-pubsub/issues/847)) ([f4ca4b2](https://www.github.com/googleapis/java-pubsub/commit/f4ca4b2d12730d5cef64d6f986b140de2c51147d)) +* reset resource ids before test retries ([#852](https://www.github.com/googleapis/java-pubsub/issues/852)) ([3769e53](https://www.github.com/googleapis/java-pubsub/commit/3769e53225e1c4e32a1a0d5179c2a333258d69a8)) + + +### Documentation + +* **samples:** add readme ([#849](https://www.github.com/googleapis/java-pubsub/issues/849)) ([66135cf](https://www.github.com/googleapis/java-pubsub/commit/66135cf20c4d3c3ffc881b52f0273a14881ac97b)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.1.5 ([#854](https://www.github.com/googleapis/java-pubsub/issues/854)) ([374b8c3](https://www.github.com/googleapis/java-pubsub/commit/374b8c3f25aedd9ebdbb0d8075a201c482dadd40)) +* update dependency com.google.cloud:google-cloud-core to v2.1.6 ([#855](https://www.github.com/googleapis/java-pubsub/issues/855)) ([9fabfc3](https://www.github.com/googleapis/java-pubsub/commit/9fabfc3177ebb08082557803801ade0e12e2e36d)) +* update dependency com.google.cloud:google-cloud-core to v2.1.7 ([#858](https://www.github.com/googleapis/java-pubsub/issues/858)) ([2cd94b5](https://www.github.com/googleapis/java-pubsub/commit/2cd94b57529f683465c8fd969cbf4a435d214b60)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#856](https://www.github.com/googleapis/java-pubsub/issues/856)) ([ab47c15](https://www.github.com/googleapis/java-pubsub/commit/ab47c15a92978fbc994ed2db02ad1f24ed640fd0)) + ### [1.114.4](https://www.github.com/googleapis/java-pubsub/compare/v1.114.3...v1.114.4) (2021-09-17) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5f8d2aa0112b..0df29040ed76 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.5-SNAPSHOT + 1.114.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.114.5-SNAPSHOT + 1.114.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.5-SNAPSHOT + 1.96.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.5-SNAPSHOT + 1.96.5 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 113d19b27025..070e7d1fd98f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.5-SNAPSHOT + 1.114.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.5-SNAPSHOT + 1.114.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1a27885f9fdd..25dd8d5f0e1a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.5-SNAPSHOT + 1.96.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.5-SNAPSHOT + 1.114.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e2c730c7695f..76be1b316f80 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.5-SNAPSHOT + 1.114.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.5-SNAPSHOT + 1.96.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.5-SNAPSHOT + 1.96.5 com.google.cloud google-cloud-pubsub - 1.114.5-SNAPSHOT + 1.114.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a6bae414fb03..8c74b13b4d3e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.5-SNAPSHOT + 1.96.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.5-SNAPSHOT + 1.114.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 93dd6f7bddaf..ae03a621bccc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.5-SNAPSHOT + 1.114.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 616208e08342..02aaa8c0c168 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.114.4:1.114.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.96.4:1.96.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.96.4:1.96.5-SNAPSHOT +google-cloud-pubsub:1.114.5:1.114.5 +grpc-google-cloud-pubsub-v1:1.96.5:1.96.5 +proto-google-cloud-pubsub-v1:1.96.5:1.96.5 From f551d551a88c30425810124ac01aad5e5a7ad8ec Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 27 Sep 2021 19:56:20 +0000 Subject: [PATCH 0854/2363] chore: release 1.114.6-SNAPSHOT (#864) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0df29040ed76..e3bb469f8fe6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.5 + 1.114.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.114.5 + 1.114.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.5 + 1.96.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.5 + 1.96.6-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 070e7d1fd98f..36e550e5ff2f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.5 + 1.114.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.5 + 1.114.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 25dd8d5f0e1a..6f47946c0b6d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.5 + 1.96.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.5 + 1.114.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 76be1b316f80..f21016d2c8e6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.5 + 1.114.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.5 + 1.96.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.5 + 1.96.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.5 + 1.114.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 8c74b13b4d3e..8c6e61b30735 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.5 + 1.96.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.5 + 1.114.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ae03a621bccc..c6bb384162e3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.5 + 1.114.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 02aaa8c0c168..2b231c38090b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.114.5:1.114.5 -grpc-google-cloud-pubsub-v1:1.96.5:1.96.5 -proto-google-cloud-pubsub-v1:1.96.5:1.96.5 +google-cloud-pubsub:1.114.5:1.114.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.96.5:1.96.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.96.5:1.96.6-SNAPSHOT From 032afc0eb13166390ffa6355fb058fd83bb32878 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 29 Sep 2021 11:40:42 -0400 Subject: [PATCH 0855/2363] chore: change branch master to main in github configurations (#866) --- java-pubsub/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bca700015758..8064d9586a89 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.114.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.114.5' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.5" ``` ## Authentication From ced6feda211374783c22293fc112f2965ae36aaa Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 16:12:49 +0200 Subject: [PATCH 0856/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.5 (#865) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.114.4` -> `1.114.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.114.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.114.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.114.5/compatibility-slim/1.114.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.114.5/confidence-slim/1.114.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.114.5`](https://togithub.com/googleapis/java-pubsub/blob/master/CHANGELOG.md#​11145-httpswwwgithubcomgoogleapisjava-pubsubcomparev11144v11145-2021-09-27) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.114.4...v1.114.5)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8064d9586a89..551b10fe861a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.114.4 + 1.114.5 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 83131b2e9149..cb09d75f344e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.114.4 + 1.114.5 From 991e0c75d45ecd08f279dae5a96153e22aa8b254 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 16:30:41 +0200 Subject: [PATCH 0857/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v23.1.0 (#867) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.0.0` -> `23.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/compatibility-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/confidence-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 551b10fe861a..4b586261ef12 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 23.0.0 + 23.1.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:23.0.0') +implementation platform('com.google.cloud:libraries-bom:23.1.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index edcce1166639..fd4666ee67a3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 23.0.0 + 23.1.0 pom import From df359e53b3e44984649c2118016bfc3fc8c59a42 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 6 Oct 2021 00:19:42 +0200 Subject: [PATCH 0858/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.18.1 (#870) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index cb09d75f344e..5f01006b9795 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.18.0 + 3.18.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c6bb384162e3..b0b1467204f1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.18.0 + 3.18.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index fd4666ee67a3..81c5ccac9aed 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.18.0 + 3.18.1 From 5a14bee5f10960a0b7f612e212807bfe7f61d270 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 5 Oct 2021 22:30:15 +0000 Subject: [PATCH 0859/2363] chore: release 1.114.6 (#871) :robot: I have created a release \*beep\* \*boop\* --- ### [1.114.6](https://www.github.com/googleapis/java-pubsub/compare/v1.114.5...v1.114.6) (2021-10-05) ### Dependencies * update dependency com.google.protobuf:protobuf-java-util to v3.18.1 ([#870](https://www.github.com/googleapis/java-pubsub/issues/870)) ([df359e5](https://www.github.com/googleapis/java-pubsub/commit/df359e53b3e44984649c2118016bfc3fc8c59a42)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index a2a0cc445b35..4a9b96b21c50 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.114.6](https://www.github.com/googleapis/java-pubsub/compare/v1.114.5...v1.114.6) (2021-10-05) + + +### Dependencies + +* update dependency com.google.protobuf:protobuf-java-util to v3.18.1 ([#870](https://www.github.com/googleapis/java-pubsub/issues/870)) ([5188e39](https://www.github.com/googleapis/java-pubsub/commit/5188e39a13b97d9fa943c89d9082f58afa3d9d98)) + ### [1.114.5](https://www.github.com/googleapis/java-pubsub/compare/v1.114.4...v1.114.5) (2021-09-27) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e3bb469f8fe6..ab1f93baa322 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.6-SNAPSHOT + 1.114.6 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.114.6-SNAPSHOT + 1.114.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.6-SNAPSHOT + 1.96.6 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.6-SNAPSHOT + 1.96.6
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 36e550e5ff2f..2a78af0a10b0 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.6-SNAPSHOT + 1.114.6 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.6-SNAPSHOT + 1.114.6 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6f47946c0b6d..5ae39463c15c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.6-SNAPSHOT + 1.96.6 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.6-SNAPSHOT + 1.114.6 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f21016d2c8e6..9c344177d958 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.6-SNAPSHOT + 1.114.6 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.6-SNAPSHOT + 1.96.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.6-SNAPSHOT + 1.96.6 com.google.cloud google-cloud-pubsub - 1.114.6-SNAPSHOT + 1.114.6 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 8c6e61b30735..699646791b41 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.6-SNAPSHOT + 1.96.6 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.6-SNAPSHOT + 1.114.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b0b1467204f1..2ec793b42a6f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.6-SNAPSHOT + 1.114.6 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 2b231c38090b..938ca318cf39 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.114.5:1.114.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.96.5:1.96.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.96.5:1.96.6-SNAPSHOT +google-cloud-pubsub:1.114.6:1.114.6 +grpc-google-cloud-pubsub-v1:1.96.6:1.96.6 +proto-google-cloud-pubsub-v1:1.96.6:1.96.6 From 72ef2195114ac76bee2368152654755e9b7a8356 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 5 Oct 2021 22:46:13 +0000 Subject: [PATCH 0860/2363] chore: release 1.114.7-SNAPSHOT (#872) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ab1f93baa322..1a636b5ad7d5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.6 + 1.114.7-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.114.6 + 1.114.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.6 + 1.96.7-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.6 + 1.96.7-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2a78af0a10b0..9c989e282fcf 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.6 + 1.114.7-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.6 + 1.114.7-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5ae39463c15c..3a86d7ee09f8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.6 + 1.96.7-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.6 + 1.114.7-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9c344177d958..83add478643f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.6 + 1.114.7-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.6 + 1.96.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.6 + 1.96.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.6 + 1.114.7-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 699646791b41..b10823d8a1d9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.6 + 1.96.7-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.6 + 1.114.7-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2ec793b42a6f..c851aa7ae712 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.6 + 1.114.7-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 938ca318cf39..a8b2d22f6e67 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.114.6:1.114.6 -grpc-google-cloud-pubsub-v1:1.96.6:1.96.6 -proto-google-cloud-pubsub-v1:1.96.6:1.96.6 +google-cloud-pubsub:1.114.6:1.114.7-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.96.6:1.96.7-SNAPSHOT +proto-google-cloud-pubsub-v1:1.96.6:1.96.7-SNAPSHOT From 29e2eea284e965958652967b70d326aa4ee11a43 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 6 Oct 2021 03:47:28 +0200 Subject: [PATCH 0861/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.6 (#873) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.6 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4b586261ef12..90ca46da3f92 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.114.5 + 1.114.6 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.114.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.114.6' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.6" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5f01006b9795..265df7a46356 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.114.5 + 1.114.6 From 1dc658848a9fb2e48f5a34853ee9d208dee7dfc9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 13 Oct 2021 17:34:20 +0200 Subject: [PATCH 0862/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.1.0 (#875) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.3` -> `1.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/compatibility-slim/1.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/confidence-slim/1.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.1.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​110-httpswwwgithubcomgoogleapisjava-shared-configcomparev103v110-2021-10-12) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.3...v1.1.0) ##### Features - introduce Maven configuration for GraalVM testing ([#​314](https://www.togithub.com/googleapis/java-shared-config/issues/314)) ([28fbeb8](https://www.github.com/googleapis/java-shared-config/commit/28fbeb86c4466a58a05d6933584564dbf3352e79)) ##### Bug Fixes - update doclet version ([#​332](https://www.togithub.com/googleapis/java-shared-config/issues/332)) ([3fd0350](https://www.github.com/googleapis/java-shared-config/commit/3fd035030e4f0954dd1f62f7b8ea62583685880c)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v9.0.1 ([#​327](https://www.togithub.com/googleapis/java-shared-config/issues/327)) ([b6c9b65](https://www.github.com/googleapis/java-shared-config/commit/b6c9b657550db2dee6b36edbb9a6084baee125e2)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.6 ([#​330](https://www.togithub.com/googleapis/java-shared-config/issues/330)) ([271ed7d](https://www.github.com/googleapis/java-shared-config/commit/271ed7dba35623e22fc8a7f7d477e6043e772014)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.6 ([#​331](https://www.togithub.com/googleapis/java-shared-config/issues/331)) ([4f9ba15](https://www.github.com/googleapis/java-shared-config/commit/4f9ba1551df0a2d4fc8c9acca8a951afbe8cb78a)) - update dependency org.junit.vintage:junit-vintage-engine to v5.8.1 ([#​329](https://www.togithub.com/googleapis/java-shared-config/issues/329)) ([4a8789e](https://www.github.com/googleapis/java-shared-config/commit/4a8789ee814ba8a3480beecc76c16fd1cb4e5f12)) ##### [1.0.3](https://www.github.com/googleapis/java-shared-config/compare/v1.0.2...v1.0.3) (2021-09-21) ##### Bug Fixes - update java-docfx-doclet version ([#​315](https://www.togithub.com/googleapis/java-shared-config/issues/315)) ([07af07c](https://www.github.com/googleapis/java-shared-config/commit/07af07c188447ea5728ecd2700121ff477d1c58a)) ##### [1.0.2](https://www.github.com/googleapis/java-shared-config/compare/v1.0.1...v1.0.2) (2021-09-13) ##### Bug Fixes - specify animal-sniffer-maven-plugin version ([#​308](https://www.togithub.com/googleapis/java-shared-config/issues/308)) ([378bf43](https://www.github.com/googleapis/java-shared-config/commit/378bf431383306c1cdd0a4f922956c87edf321b5)) - update java docfx doclet version ([#​312](https://www.togithub.com/googleapis/java-shared-config/issues/312)) ([dd7f6e0](https://www.github.com/googleapis/java-shared-config/commit/dd7f6e0c1a7cc73831b74b4475457611a8c097d3)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v9 ([#​303](https://www.togithub.com/googleapis/java-shared-config/issues/303)) ([71faea3](https://www.github.com/googleapis/java-shared-config/commit/71faea38d4132407598550e2bb4c77f9d4a4d83d)) ##### [1.0.1](https://www.github.com/googleapis/java-shared-config/compare/v1.0.0...v1.0.1) (2021-08-18) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v8.45.1 ([#​292](https://www.togithub.com/googleapis/java-shared-config/issues/292)) ([66bf6e6](https://www.github.com/googleapis/java-shared-config/commit/66bf6e6fb95997b9eb4b34268b8d20c2fbe9ed5a))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1a636b5ad7d5..4c8a91d7ff39 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.3 + 1.1.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 83add478643f..9fde08e9505f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.3 + 1.1.0 From bf9a056ebc04626629c85c92a0b467284105a3be Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 18 Oct 2021 17:00:17 +0000 Subject: [PATCH 0863/2363] build(java): Introduce Native Image testing build script changes (#878) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- .../.kokoro/presubmit/graalvm-native.cfg | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 java-pubsub/.kokoro/presubmit/graalvm-native.cfg diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 5ff6c87c1efd..dc53bbb57be5 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:13b7387edb404234610d30473ac48210ae7fe42a136335ee2b2f8a07c4c7f6a5 + digest: sha256:d4b2141d65566523dfd523f63c6e6899ab1281463bce182a9f600e74b0511875 diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg new file mode 100644 index 000000000000..4c7225ec924e --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -0,0 +1,33 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} From 3b5852361ed62f443b73ffd7a5fc30982f762c03 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Oct 2021 23:56:22 +0200 Subject: [PATCH 0864/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.1.8 (#877) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.7` -> `2.1.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/compatibility-slim/2.1.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.1.8/confidence-slim/2.1.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.1.8`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​218-httpswwwgithubcomgoogleapisjava-corecomparev217v218-2021-10-15) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.7...v2.1.8)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 265df7a46356..0543cb2b36cb 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.1.7 + 2.1.8 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c851aa7ae712..ea2eb5f11c1b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.1.7 + 2.1.8 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 81c5ccac9aed..fc2f2e843bd0 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.1.7 + 2.1.8 tests From cd9695c41c6d353cbec72df40c9140d596af60c7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Oct 2021 04:46:14 +0200 Subject: [PATCH 0865/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.2.0 (#881) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.1.8` -> `2.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/compatibility-slim/2.1.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.2.0/confidence-slim/2.1.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.2.0`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​220-httpswwwgithubcomgoogleapisjava-corecomparev218v220-2021-10-18) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.1.8...v2.2.0) ##### Features - next release from main branch is 2.2.0 ([#​596](https://www.togithub.com/googleapis/java-core/issues/596)) ([cca72b8](https://www.github.com/googleapis/java-core/commit/cca72b82b45e01207bd45c6a2b988981c213c6fd)) ##### Dependencies - update dependency com.google.api:gax-bom to v2.6.1 ([#​600](https://www.togithub.com/googleapis/java-core/issues/600)) ([a0cff6a](https://www.github.com/googleapis/java-core/commit/a0cff6a83506d1da3a8aacd6eafc39ff1ab11583)) ##### [2.1.8](https://www.github.com/googleapis/java-core/compare/v2.1.7...v2.1.8) (2021-10-15) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.32.2 ([#​593](https://www.togithub.com/googleapis/java-core/issues/593)) ([644fc6f](https://www.github.com/googleapis/java-core/commit/644fc6f728b0791c61d85f34c535c09dff862c1d)) - update dependency com.google.api:api-common to v2.0.4 ([#​585](https://www.togithub.com/googleapis/java-core/issues/585)) ([ad4e4b7](https://www.github.com/googleapis/java-core/commit/ad4e4b7e076d8bd52bf621615301ec810917db43)) - update dependency com.google.api:api-common to v2.0.5 ([#​589](https://www.togithub.com/googleapis/java-core/issues/589)) ([c30cc40](https://www.github.com/googleapis/java-core/commit/c30cc40cd8687f79c7154503ee1f602089d62f2d)) - update dependency com.google.api:gax-bom to v2.6.0 ([#​594](https://www.togithub.com/googleapis/java-core/issues/594)) ([710cbe6](https://www.github.com/googleapis/java-core/commit/710cbe6e5121f118a5f4be327e8eeeceddfa04fb)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.6.0 ([#​578](https://www.togithub.com/googleapis/java-core/issues/578)) ([113b686](https://www.github.com/googleapis/java-core/commit/113b6868f98caa64d713f02729c3f16d878252ff)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.3 ([#​574](https://www.togithub.com/googleapis/java-core/issues/574)) ([338444b](https://www.github.com/googleapis/java-core/commit/338444bd4d169bb7fd41242e790c74596948178b)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.4 ([#​584](https://www.togithub.com/googleapis/java-core/issues/584)) ([57211ce](https://www.github.com/googleapis/java-core/commit/57211ce15e9b1a4c1b7468fed217e4ab46ec0a5d)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.5 ([#​587](https://www.togithub.com/googleapis/java-core/issues/587)) ([55f9f4e](https://www.github.com/googleapis/java-core/commit/55f9f4e084defaf8a243bf21afd67302be802b25)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.6 ([#​590](https://www.togithub.com/googleapis/java-core/issues/590)) ([f534c46](https://www.github.com/googleapis/java-core/commit/f534c462fadb479c6fd934c24ac8cd24e06e2698)) - update dependency com.google.auth:google-auth-library-bom to v1.2.0 ([#​581](https://www.togithub.com/googleapis/java-core/issues/581)) ([c32d2c5](https://www.github.com/googleapis/java-core/commit/c32d2c552dfa04b8e5eab27a115ac10832898473)) - update dependency com.google.auth:google-auth-library-bom to v1.2.1 ([#​591](https://www.togithub.com/googleapis/java-core/issues/591)) ([046f95d](https://www.github.com/googleapis/java-core/commit/046f95d8ed0811dd278c40fcfeb2c042e6535996)) - update dependency com.google.guava:guava-bom to v31 ([#​577](https://www.togithub.com/googleapis/java-core/issues/577)) ([4a987fb](https://www.github.com/googleapis/java-core/commit/4a987fbd3f1bd69b0b923fc9a691fc60908ad1cc)) - update dependency com.google.http-client:google-http-client-bom to v1.40.1 ([#​588](https://www.togithub.com/googleapis/java-core/issues/588)) ([3d36d77](https://www.github.com/googleapis/java-core/commit/3d36d77e6db9856c276d6263036764c60f32b7b3)) - update dependency com.google.protobuf:protobuf-bom to v3.18.1 ([#​583](https://www.togithub.com/googleapis/java-core/issues/583)) ([47da21c](https://www.github.com/googleapis/java-core/commit/47da21c793be9477323a234f7e3beaf6b705cd7d)) ##### [2.1.7](https://www.github.com/googleapis/java-core/compare/v2.1.6...v2.1.7) (2021-09-23) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.41.0 ([#​569](https://www.togithub.com/googleapis/java-core/issues/569)) ([36703e9](https://www.github.com/googleapis/java-core/commit/36703e9a1f2d97d465a13220027a27f813da14a8)) ##### [2.1.6](https://www.github.com/googleapis/java-core/compare/v2.1.5...v2.1.6) (2021-09-21) ##### Dependencies - update dependency com.google.api:gax-bom to v2.5.0 ([#​565](https://www.togithub.com/googleapis/java-core/issues/565)) ([3ce8e28](https://www.github.com/googleapis/java-core/commit/3ce8e28813858ea932dc5c54324441f2f0c52d46)) ##### [2.1.5](https://www.github.com/googleapis/java-core/compare/v2.1.4...v2.1.5) (2021-09-21) ##### Dependencies - downgrading protobuf to 3.17.3 ([#​562](https://www.togithub.com/googleapis/java-core/issues/562)) ([5711b83](https://www.github.com/googleapis/java-core/commit/5711b835a19238df1bfa1f2e4dfc115495a55c9b)) ##### [2.1.4](https://www.github.com/googleapis/java-core/compare/v2.1.3...v2.1.4) (2021-09-15) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.1 ([#​556](https://www.togithub.com/googleapis/java-core/issues/556)) ([095efa1](https://www.github.com/googleapis/java-core/commit/095efa1fc1fffde34c6c38a88fee8f91bd495bfc)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.2 ([#​559](https://www.togithub.com/googleapis/java-core/issues/559)) ([3cda672](https://www.github.com/googleapis/java-core/commit/3cda672059727642d1b90f8bcc6bb34546f6893d)) - update dependency com.google.protobuf:protobuf-bom to v3.18.0 ([#​558](https://www.togithub.com/googleapis/java-core/issues/558)) ([85766e6](https://www.github.com/googleapis/java-core/commit/85766e67f0a9f381593ea2d6e9c8f30fc0ba2993)) ##### [2.1.3](https://www.github.com/googleapis/java-core/compare/v2.1.2...v2.1.3) (2021-09-10) ##### Dependencies - update dependency com.google.api:gax-bom to v2.4.1 ([#​549](https://www.togithub.com/googleapis/java-core/issues/549)) ([0b4be35](https://www.github.com/googleapis/java-core/commit/0b4be350d47cab58f3bb4e53d34e913e736a522b)) ##### [2.1.2](https://www.github.com/googleapis/java-core/compare/v2.1.1...v2.1.2) (2021-08-31) ##### Dependencies - update dependency com.google.api:api-common to v2.0.2 ([#​534](https://www.togithub.com/googleapis/java-core/issues/534)) ([1883c81](https://www.github.com/googleapis/java-core/commit/1883c81cb0fdf2f4b34a3a3a17987206d8c452aa)) - update dependency com.google.api:gax-bom to v2.4.0 ([#​540](https://www.togithub.com/googleapis/java-core/issues/540)) ([06b0d6e](https://www.github.com/googleapis/java-core/commit/06b0d6e3ff3c3b6e2aa440a9f893f9b27e0d66d1)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.5.0 ([#​539](https://www.togithub.com/googleapis/java-core/issues/539)) ([9d5a0b0](https://www.github.com/googleapis/java-core/commit/9d5a0b0918f6a1ab264f1ba272dcd8f22b670a7f)) - update dependency com.google.http-client:google-http-client-bom to v1.40.0 ([#​538](https://www.togithub.com/googleapis/java-core/issues/538)) ([150e07d](https://www.github.com/googleapis/java-core/commit/150e07ddb884d163d0efbcf786f04a713d29ed81)) - update dependency io.grpc:grpc-bom to v1.40.1 ([#​535](https://www.togithub.com/googleapis/java-core/issues/535)) ([3cd48a9](https://www.github.com/googleapis/java-core/commit/3cd48a902691ddddb9df9f74517648ca35b5bfd7)) ##### [2.1.1](https://www.github.com/googleapis/java-core/compare/v2.1.0...v2.1.1) (2021-08-24) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.0 ([#​531](https://www.togithub.com/googleapis/java-core/issues/531)) ([1b27f8c](https://www.github.com/googleapis/java-core/commit/1b27f8cbfaffcc9b19103b471db237f2448d7cb8))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0543cb2b36cb..d377c06f1b4a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.1.8 + 2.2.0 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ea2eb5f11c1b..9c7838912a70 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.1.8 + 2.2.0 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index fc2f2e843bd0..34d38f58105d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.1.8 + 2.2.0 tests From ed9c163dba0b161267224ef10ff21be54bea09ee Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Oct 2021 18:20:14 +0200 Subject: [PATCH 0866/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 (#882) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.3.0` -> `2.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.4.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​240-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare230v240-2021-10-18) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.3.0...v2.4.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.0 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.api-client:google-api-client-bom to v1.32.2 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.api:api-common to v2.0.5 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.auth:google-auth-library-bom to v1.2.1 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.guava:guava-bom to v31 ([#​498](https://www.togithub.com/googleapis/java-shared-dependencies/issues/498)) ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.http-client:google-http-client-bom to v1.40.1 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.protobuf:protobuf-bom to v3.18.1 ([#​494](https://www.togithub.com/googleapis/java-shared-dependencies/issues/494)) ([a30e376](https://www.github.com/googleapis/java-shared-dependencies/commit/a30e3762b5fb0e2d31304d211c12eb2c1320f0c1)) - update dependency io.grpc:grpc-bom to v1.41.0 ([#​482](https://www.togithub.com/googleapis/java-shared-dependencies/issues/482)) ([8a7d227](https://www.github.com/googleapis/java-shared-dependencies/commit/8a7d227f2a1dab9ff23d247a4e6131c817804c36)) - update gax.version to v2.6.1 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update iam.version to v1.1.6 ([#​485](https://www.togithub.com/googleapis/java-shared-dependencies/issues/485)) ([cef7e09](https://www.github.com/googleapis/java-shared-dependencies/commit/cef7e090bbc2e3ae775fa83505f98df286ba7d42))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub/pom.xml | 6 +++++- java-pubsub/pom.xml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9c989e282fcf..84639b2bd031 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -41,7 +41,10 @@ com.google.api.grpc proto-google-common-protos
    - + + com.google.auth + google-auth-library-oauth2-http + com.google.api.grpc proto-google-cloud-pubsub-v1 @@ -145,6 +148,7 @@ 3.1.2 + com.google.auth:google-auth-library-oauth2-http:jar io.opencensus:opencensus-impl javax.annotation:javax.annotation-api diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9fde08e9505f..3b5533195729 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.3.0 + 2.4.0 pom import From 2a64db9080561b6328522c51baa5e695b81e3115 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 16:32:18 +0000 Subject: [PATCH 0867/2363] chore: release 1.114.7 (#880) :robot: I have created a release \*beep\* \*boop\* --- ### [1.114.7](https://www.github.com/googleapis/java-pubsub/compare/v1.114.6...v1.114.7) (2021-10-19) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.1.8 ([#877](https://www.github.com/googleapis/java-pubsub/issues/877)) ([3b58523](https://www.github.com/googleapis/java-pubsub/commit/3b5852361ed62f443b73ffd7a5fc30982f762c03)) * update dependency com.google.cloud:google-cloud-core to v2.2.0 ([#881](https://www.github.com/googleapis/java-pubsub/issues/881)) ([cd9695c](https://www.github.com/googleapis/java-pubsub/commit/cd9695c41c6d353cbec72df40c9140d596af60c7)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#882](https://www.github.com/googleapis/java-pubsub/issues/882)) ([ed9c163](https://www.github.com/googleapis/java-pubsub/commit/ed9c163dba0b161267224ef10ff21be54bea09ee)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 4a9b96b21c50..844c1510830d 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +### [1.114.7](https://www.github.com/googleapis/java-pubsub/compare/v1.114.6...v1.114.7) (2021-10-19) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.1.8 ([#877](https://www.github.com/googleapis/java-pubsub/issues/877)) ([c76329b](https://www.github.com/googleapis/java-pubsub/commit/c76329b06f2f620662f4fe4ffefa897daea8703b)) +* update dependency com.google.cloud:google-cloud-core to v2.2.0 ([#881](https://www.github.com/googleapis/java-pubsub/issues/881)) ([1eb4a1f](https://www.github.com/googleapis/java-pubsub/commit/1eb4a1f0a7d318b88cd04f4aefd3191f289e8a0f)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#882](https://www.github.com/googleapis/java-pubsub/issues/882)) ([2c367bb](https://www.github.com/googleapis/java-pubsub/commit/2c367bb22860cbbfa57fca70a436919ac6aa8084)) + ### [1.114.6](https://www.github.com/googleapis/java-pubsub/compare/v1.114.5...v1.114.6) (2021-10-05) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4c8a91d7ff39..927b058908a9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.7-SNAPSHOT + 1.114.7 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.114.7-SNAPSHOT + 1.114.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.7-SNAPSHOT + 1.96.7 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.7-SNAPSHOT + 1.96.7
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 84639b2bd031..f1a8937399f5 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.7-SNAPSHOT + 1.114.7 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.7-SNAPSHOT + 1.114.7 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3a86d7ee09f8..742f01e383e8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.7-SNAPSHOT + 1.96.7 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.7-SNAPSHOT + 1.114.7 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3b5533195729..a6747916a96a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.7-SNAPSHOT + 1.114.7 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.7-SNAPSHOT + 1.96.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.7-SNAPSHOT + 1.96.7 com.google.cloud google-cloud-pubsub - 1.114.7-SNAPSHOT + 1.114.7 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b10823d8a1d9..86dd4f74234a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.7-SNAPSHOT + 1.96.7 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.7-SNAPSHOT + 1.114.7 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9c7838912a70..4a7e01da18de 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.7-SNAPSHOT + 1.114.7 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a8b2d22f6e67..c6c187266c6d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.114.6:1.114.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.96.6:1.96.7-SNAPSHOT -proto-google-cloud-pubsub-v1:1.96.6:1.96.7-SNAPSHOT +google-cloud-pubsub:1.114.7:1.114.7 +grpc-google-cloud-pubsub-v1:1.96.7:1.96.7 +proto-google-cloud-pubsub-v1:1.96.7:1.96.7 From e9278e4a8f86fbbd9c5364362d93dd2148372d1d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 16:44:17 +0000 Subject: [PATCH 0868/2363] chore: release 1.114.8-SNAPSHOT (#883) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 927b058908a9..3b82e26dca5d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.7 + 1.114.8-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.114.7 + 1.114.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.7 + 1.96.8-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.7 + 1.96.8-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f1a8937399f5..a0b0644fff5d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.7 + 1.114.8-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.7 + 1.114.8-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 742f01e383e8..e61f7eb211f9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.7 + 1.96.8-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.7 + 1.114.8-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a6747916a96a..2d39816b2a74 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.7 + 1.114.8-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.7 + 1.96.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.7 + 1.96.8-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.114.7 + 1.114.8-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 86dd4f74234a..0a92c26a4f10 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.7 + 1.96.8-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.7 + 1.114.8-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4a7e01da18de..43a6995d99dd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.7 + 1.114.8-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c6c187266c6d..fab6b0810086 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.114.7:1.114.7 -grpc-google-cloud-pubsub-v1:1.96.7:1.96.7 -proto-google-cloud-pubsub-v1:1.96.7:1.96.7 +google-cloud-pubsub:1.114.7:1.114.8-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.96.7:1.96.8-SNAPSHOT +proto-google-cloud-pubsub-v1:1.96.7:1.96.8-SNAPSHOT From ac289832fcc91f362ff48af090c094ae2e2e9657 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 20 Oct 2021 20:23:17 +0200 Subject: [PATCH 0869/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.7 (#884) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.114.7 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 90ca46da3f92..f8b409080d4f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.114.6 + 1.114.7 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.114.6' +implementation 'com.google.cloud:google-cloud-pubsub:1.114.7' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.6" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.7" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d377c06f1b4a..37a995c7dfc2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.114.6 + 1.114.7 From e2c64baa4c5377f102ddf67122ccb5b660012022 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 25 Oct 2021 16:11:17 +0000 Subject: [PATCH 0870/2363] fix(java): java 17 dependency arguments (#1266) (#888) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.kokoro/dependencies.sh | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index dc53bbb57be5..0df65ebe91a6 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b2141d65566523dfd523f63c6e6899ab1281463bce182a9f600e74b0511875 + digest: sha256:a3ac08d167454718ff057b97a1950d3cb5e16fc39fb3f355d90276285a6cac75 diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index 9a5105d7ebf4..d7476cfe9727 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -38,15 +38,13 @@ function determineMavenOpts() { | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' ) - case $javaVersion in - "17") + if [[ $javaVersion == 17* ]] + then # MaxPermSize is no longer supported as of jdk 17 echo -n "-Xmx1024m" - ;; - *) + else echo -n "-Xmx1024m -XX:MaxPermSize=128m" - ;; - esac + fi } export MAVEN_OPTS=$(determineMavenOpts) From 41dad8d3bb773db9a53ba8fa4c29abf8bcac039b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Oct 2021 21:46:32 +0200 Subject: [PATCH 0871/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.0 (#887) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.1.0` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/compatibility-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/confidence-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.2.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapisjava-shared-configcomparev110v120-2021-10-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.1.0...v1.2.0) ##### Features - Introduce Native Image testing build script changes ([#​1240](https://www.togithub.com/googleapis/java-shared-config/issues/1240)) ([#​334](https://www.togithub.com/googleapis/java-shared-config/issues/334)) ([4643cf1](https://www.github.com/googleapis/java-shared-config/commit/4643cf15be0b37fa8fa905d544d438cda7ef2ecd)) ##### Bug Fixes - **java:** downgrade native maven plugin version ([#​335](https://www.togithub.com/googleapis/java-shared-config/issues/335)) ([5834284](https://www.github.com/googleapis/java-shared-config/commit/5834284176fb34713d10082ce04f3b6abba85ad8))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3b82e26dca5d..643e49c69242 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.1.0 + 1.2.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2d39816b2a74..581df79f98cf 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.1.0 + 1.2.0 From f044f892e6274f184d997a0b688486c5057fef72 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 18:16:45 +0200 Subject: [PATCH 0872/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v24 (#893) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.1.0` -> `24.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/compatibility-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/confidence-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f8b409080d4f..16cfc2c8d1b1 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 23.1.0 + 24.0.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:23.1.0') +implementation platform('com.google.cloud:libraries-bom:24.0.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 34d38f58105d..92c54ebfb452 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 23.1.0 + 24.0.0 pom import From 8b9b82e247755a978118f71721091435ec70b4ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 18:24:17 +0200 Subject: [PATCH 0873/2363] deps: update dependency org.apache.avro:avro to v1.11.0 (#894) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.apache.avro:avro to v1.11.0 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 37a995c7dfc2..af52ee0ee793 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -51,7 +51,7 @@ org.apache.avro avro - 1.10.2 + 1.11.0 compile diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 43a6995d99dd..33cf7dbcc667 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -50,7 +50,7 @@ org.apache.avro avro - 1.10.2 + 1.11.0 compile diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 92c54ebfb452..eb34b3e1a268 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -62,7 +62,7 @@ org.apache.avro avro - 1.10.2 + 1.11.0 org.xerial.snappy From 83a973af3c821f008fd707e00abf5a57e3d03e44 Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Wed, 27 Oct 2021 14:01:47 -0400 Subject: [PATCH 0874/2363] feat: creating java backport (#895) --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 69daeb037240..491c2586ccd7 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -9,3 +9,7 @@ branches: handleGHRelease: true releaseType: java-yoshi branch: java7 + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.114.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index dd7558686d4f..f1bed551b5f5 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -50,6 +50,22 @@ branchProtectionRules: - Kokoro - Against Pub/Sub Lite samples - cla/google - OwlBot Post Processor + - pattern: 1.114.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - Kokoro - Against Pub/Sub Lite samples + - cla/google + - OwlBot Post Processor permissionRules: - team: yoshi-admins permission: admin From 43e6ac7fb21b3ad468701b2419effe93959cde23 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Wed, 27 Oct 2021 12:18:23 -0700 Subject: [PATCH 0875/2363] chore: update repo-metadata.json client_documentation link (#874) --- java-pubsub/.repo-metadata.json | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 93da177cf23b..412b27083b7d 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -3,7 +3,7 @@ "name_pretty": "Cloud Pub/Sub", "api_reference": "https://cloud.google.com/pubsub/", "product_documentation": "https://cloud.google.com/pubsub/docs/", - "client_documentation": "https://googleapis.dev/java/google-cloud-pubsub/latest/index.html", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history", "api_description": "is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications.", "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", "release_level": "ga", diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 16cfc2c8d1b1..3973d4d0b75f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -376,7 +376,7 @@ Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://cloud.google.com/pubsub/docs/ -[javadocs]: https://googleapis.dev/java/google-cloud-pubsub/latest/index.html +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.svg [kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.html [kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.svg From 15f645ce908e48f98f3f43c36627456a39b76201 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Nov 2021 18:58:12 +0100 Subject: [PATCH 0876/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.10.0 (#901) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.errorprone:error_prone_annotations](https://errorprone.info) ([source](https://togithub.com/google/error-prone)) | `2.9.0` -> `2.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.10.0/compatibility-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.10.0/confidence-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    google/error-prone ### [`v2.10.0`](https://togithub.com/google/error-prone/releases/v2.10.0) [Compare Source](https://togithub.com/google/error-prone/compare/v2.9.0...v2.10.0) New checks - [`AlwaysThrows`](http://errorprone.info/bugpattern/AlwaysThrows) - [`StackTraceElementGetClass`](http://errorprone.info/bugpattern/StackTraceElementGetClass) - [`BareDotMetacharacter`](http://errorprone.info/bugpattern/BareDotMetacharacter) - [`DistinctVarargsChecker`](http://errorprone.info/bugpattern/DistinctVarargsChecker) - [`MalformedInlineTag`](http://errorprone.info/bugpattern/MalformedInlineTag) - [`MemoizeConstantVisitorStateLookups`](http://errorprone.info/bugpattern/MemoizeConstantVisitorStateLookups) - [`UnicodeEscape`](http://errorprone.info/bugpattern/UnicodeEscape) - [`FieldMissingNullable`](http://errorprone.info/bugpattern/FieldMissingNullable) - [`Java8ApiChecker`](http://errorprone.info/bugpattern/Java8ApiChecker) - [`ParameterMissingNullable`](http://errorprone.info/bugpattern/ParameterMissingNullable) - [`TooManyParameters`](http://errorprone.info/bugpattern/TooManyParameters) - [`TryWithResourcesVariable`](http://errorprone.info/bugpattern/TryWithResourcesVariable) - [`UnnecessaryFinal`](http://errorprone.info/bugpattern/UnnecessaryFinal) - [`VoidMissingNullable`](http://errorprone.info/bugpattern/VoidMissingNullable) Fixed issues: [#​2616](https://togithub.com/google/error-prone/issues/2616), [#​2629](https://togithub.com/google/error-prone/issues/2629) **Full Changelog**: https://github.com/google/error-prone/compare/v2.9.0...v2.10.0
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 581df79f98cf..84e9716d2d91 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -85,7 +85,7 @@ com.google.errorprone error_prone_annotations - 2.9.0 + 2.10.0 From ee0338a8ffcb3bb7f38cdff595e915f119ad02aa Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 6 Nov 2021 00:36:19 +0000 Subject: [PATCH 0877/2363] Update ci.yaml (#1275) (#902) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.github/workflows/ci.yaml | 16 +--------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 0df65ebe91a6..994dd04bfe64 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a3ac08d167454718ff057b97a1950d3cb5e16fc39fb3f355d90276285a6cac75 + digest: sha256:fecf6bd85f19eb046d913982ea36f6d434f9a49ab0545d25e31186aa64367c0c diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 2425d7234f42..93b337c62839 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -8,13 +8,11 @@ jobs: units: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -27,9 +25,6 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -45,9 +40,6 @@ jobs: java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -58,9 +50,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -73,9 +62,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu From 41ff656c972e211fd9f24016e39bb20b5ec76112 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 8 Nov 2021 21:50:26 +0000 Subject: [PATCH 0878/2363] chore: cleanup cloud RAD generation (#1269) (#904) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.kokoro/release/publish_javadoc11.sh | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 994dd04bfe64..325daaa4b5a2 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:fecf6bd85f19eb046d913982ea36f6d434f9a49ab0545d25e31186aa64367c0c + digest: sha256:204b7af96e6d481f19b0ff377aa379d46bc56dd06e1cc7c523f361dd9cbfeeaa diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.sh b/java-pubsub/.kokoro/release/publish_javadoc11.sh index f50aacee6860..24fc55e5ad4b 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc11.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc11.sh @@ -36,13 +36,9 @@ mvn clean install -B -q -DskipTests=true export NAME=google-cloud-pubsub export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) -# V3 generates docfx yml from javadoc -# generate yml -mvn clean site -B -q -P docFX - -# copy README to docfx-yml dir and rename index.md -cp README.md target/docfx-yml/index.md -# copy CHANGELOG to docfx-yml dir and rename history.md +# cloud RAD generation +mvn clean javadoc:aggregate -B -q -P docFX +# include CHANGELOG cp CHANGELOG.md target/docfx-yml/history.md pushd target/docfx-yml From 42e97bbe20a384ee4c9b6d7533ef583576b96c6b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 9 Nov 2021 14:40:31 +0000 Subject: [PATCH 0879/2363] chore: update jre to 11 for linter (#1278) (#906) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.github/workflows/ci.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 325daaa4b5a2..886d09496d14 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:204b7af96e6d481f19b0ff377aa379d46bc56dd06e1cc7c523f361dd9cbfeeaa + digest: sha256:14ecf64ec36f67c7bf04e3dc0f68eafcc01df3955121c38862b695e2ae7515d8 diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 93b337c62839..05de1f60dcf0 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -53,7 +53,7 @@ jobs: - uses: actions/setup-java@v2 with: distribution: zulu - java-version: 8 + java-version: 11 - run: java -version - run: .kokoro/build.sh env: From 74ba1f79fc4725e4785dd44aa600ad4e7208f735 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 10 Nov 2021 18:05:38 +0100 Subject: [PATCH 0880/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.1 (#905) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 643e49c69242..dd3d19b915f3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.0 + 1.2.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 84e9716d2d91..cc31cca47b08 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.0 + 1.2.1 From 91dda123193fa4435ce2aa03a0f837a19580368e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 10 Nov 2021 18:06:11 +0100 Subject: [PATCH 0881/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.19.1 (#885) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index af52ee0ee793..81e95fb67daa 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.18.1 + 3.19.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 33cf7dbcc667..115b697e662f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.18.1 + 3.19.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index eb34b3e1a268..460707369848 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.18.1 + 3.19.1 From 9ed43ea202d1c57c82a4ed6016e588b70af35934 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 11 Nov 2021 20:30:17 +0000 Subject: [PATCH 0882/2363] chore: update minimum java version to java 8 (#1281) (#909) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/README.md | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 886d09496d14..5d788be0b547 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:14ecf64ec36f67c7bf04e3dc0f68eafcc01df3955121c38862b695e2ae7515d8 + digest: sha256:a744afda1956beb7bd6dc8d0b740a7839bbe402e34e2f4ef24589074db53ceb0 diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3973d4d0b75f..3d74044e6ac3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -298,7 +298,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Supported Java Versions -Java 7 or above is required for using this client. +Java 8 or above is required for using this client. Google's Java client libraries, [Google Cloud Client Libraries][cloudlibs] @@ -367,7 +367,6 @@ Apache 2.0 - See [LICENSE][license] for more information. Java Version | Status ------------ | ------ -Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1] Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] From 5b6c33c1a336f5fd58c0cd015fda7347701571b4 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Fri, 12 Nov 2021 17:39:26 -0500 Subject: [PATCH 0883/2363] chore: handle GH releases in 1.111.0-sp (#921) deps: update gson to 2.8.9 --- java-pubsub/.github/release-please.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 491c2586ccd7..654fffe76767 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -4,6 +4,7 @@ releaseType: java-yoshi branches: - releaseType: java-lts bumpMinorPreMajor: true + handleGHRelease: true branch: 1.111.0-sp - bumpMinorPreMajor: true handleGHRelease: true From 1a70774deba7faf27311aa0579d4f842189c3633 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Nov 2021 17:06:17 +0100 Subject: [PATCH 0884/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 (#919) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.4.0` -> `2.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/compatibility-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/confidence-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.5.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​250-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare240v250-2021-11-12) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.4.0...v2.5.0) ##### Features - next release from main branch is 2.5.0 ([#​510](https://www.togithub.com/googleapis/java-shared-dependencies/issues/510)) ([ca9eb8a](https://www.github.com/googleapis/java-shared-dependencies/commit/ca9eb8a40ae81d69de0d82d9499ef21b0136ae49)) ##### Bug Fixes - dependencies.sh to work with Java 17 ([#​516](https://www.togithub.com/googleapis/java-shared-dependencies/issues/516)) ([8422c1d](https://www.github.com/googleapis/java-shared-dependencies/commit/8422c1d7e9ef479f348e63c530789050b5235426)) ##### Dependencies - update dependency com.google.api:api-common to v2.1.0 ([#​508](https://www.togithub.com/googleapis/java-shared-dependencies/issues/508)) ([ae32d16](https://www.github.com/googleapis/java-shared-dependencies/commit/ae32d1689c78fc1469206c8c0df0ebaca59edd2c)) - update dependency com.google.auth:google-auth-library-bom to v1.2.2 ([#​506](https://www.togithub.com/googleapis/java-shared-dependencies/issues/506)) ([b9a8209](https://www.github.com/googleapis/java-shared-dependencies/commit/b9a82098655f29e858bd0c7a9b1049a379e5062a)) - update dependency com.google.auth:google-auth-library-bom to v1.3.0 ([#​524](https://www.togithub.com/googleapis/java-shared-dependencies/issues/524)) ([fc07879](https://www.github.com/googleapis/java-shared-dependencies/commit/fc07879fa6531e39b21977fe77abc19354a1fd33)) - update dependency com.google.code.gson:gson to v2.8.9 ([#​509](https://www.togithub.com/googleapis/java-shared-dependencies/issues/509)) ([bece99b](https://www.github.com/googleapis/java-shared-dependencies/commit/bece99bb3e0365e60e7376ba18d046ab6436a235)) - update dependency com.google.errorprone:error_prone_annotations to v2.10.0 ([#​512](https://www.togithub.com/googleapis/java-shared-dependencies/issues/512)) ([c281f13](https://www.github.com/googleapis/java-shared-dependencies/commit/c281f137525e2111e97349657be578ed1fc832f2)) - update dependency com.google.protobuf:protobuf-bom to v3.19.1 ([#​505](https://www.togithub.com/googleapis/java-shared-dependencies/issues/505)) ([94cde96](https://www.github.com/googleapis/java-shared-dependencies/commit/94cde96069900f9f8c2ff9a522671d03b26828bd)) - update dependency io.grpc:grpc-bom to v1.42.1 ([#​513](https://www.togithub.com/googleapis/java-shared-dependencies/issues/513)) ([0d2b774](https://www.github.com/googleapis/java-shared-dependencies/commit/0d2b774287a132821cc6fe2789140086bc48d525)) - update dependency org.checkerframework:checker-qual to v3.19.0 ([#​501](https://www.togithub.com/googleapis/java-shared-dependencies/issues/501)) ([2b3e0b5](https://www.github.com/googleapis/java-shared-dependencies/commit/2b3e0b5ddc3a645b20a837f3123394f1ca114f08)) - update dependency org.threeten:threetenbp to v1.5.2 ([#​514](https://www.togithub.com/googleapis/java-shared-dependencies/issues/514)) ([4885f40](https://www.github.com/googleapis/java-shared-dependencies/commit/4885f402e2c70435cd10d4f1b893df9873808c56)) - update gax.version to v2.7.0 ([#​515](https://www.togithub.com/googleapis/java-shared-dependencies/issues/515)) ([567e728](https://www.github.com/googleapis/java-shared-dependencies/commit/567e728b0e59233a04e2d04183e6a0c36cca2437)) - update google.core.version to v2.3.0 ([#​530](https://www.togithub.com/googleapis/java-shared-dependencies/issues/530)) ([78e87e9](https://www.github.com/googleapis/java-shared-dependencies/commit/78e87e96befab34dc4a494e752aeb473cd14a156)) - update iam.version to v1.1.7 ([#​504](https://www.togithub.com/googleapis/java-shared-dependencies/issues/504)) ([63dd583](https://www.github.com/googleapis/java-shared-dependencies/commit/63dd583c80f35b01a66fd1908d41467468c66436))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index cc31cca47b08..bf06564c007b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.4.0 + 2.5.0 pom import From 827d5b22decf5b0d5cdf196dde9c124029e554ed Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Nov 2021 17:06:32 +0100 Subject: [PATCH 0885/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.3.0 (#913) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.2.0` -> `2.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/compatibility-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.0/confidence-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.3.0`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​230-httpswwwgithubcomgoogleapisjava-corecomparev220v230-2021-11-11) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.2.0...v2.3.0) ##### Features - next release from main branch is 2.3.0 ([#​602](https://www.togithub.com/googleapis/java-core/issues/602)) ([34fa5f1](https://www.github.com/googleapis/java-core/commit/34fa5f1e750629d4431d5f97eb8b09ee65ebc016)) ##### Bug Fixes - **java:** java 17 dependency arguments ([#​1266](https://www.togithub.com/googleapis/java-core/issues/1266)) ([#​612](https://www.togithub.com/googleapis/java-core/issues/612)) ([5be3eff](https://www.github.com/googleapis/java-core/commit/5be3eff4041ca39d513979b948afe99f27bb1d20)) ##### Dependencies - update dependency com.google.api:api-common to v2.1.0 ([#​613](https://www.togithub.com/googleapis/java-core/issues/613)) ([62d6ab8](https://www.github.com/googleapis/java-core/commit/62d6ab8b5a7c5edb4482d7afda5b87f4832226ca)) - update dependency com.google.api:gax-bom to v2.7.0 ([#​626](https://www.togithub.com/googleapis/java-core/issues/626)) ([4a1e965](https://www.github.com/googleapis/java-core/commit/4a1e96551e16a5abc5d8f71f9e096a284fc59528)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.1.7 ([#​604](https://www.togithub.com/googleapis/java-core/issues/604)) ([0d36d59](https://www.github.com/googleapis/java-core/commit/0d36d59e4ff8817ba5984579188bfc6d7745348d)) - update dependency com.google.auth:google-auth-library-bom to v1.2.2 ([#​610](https://www.togithub.com/googleapis/java-core/issues/610)) ([c5e33d8](https://www.github.com/googleapis/java-core/commit/c5e33d87d211c22a93ea2e0de1776e7f2fbf6ef7)) - update dependency com.google.auth:google-auth-library-bom to v1.3.0 ([#​627](https://www.togithub.com/googleapis/java-core/issues/627)) ([f4403b2](https://www.github.com/googleapis/java-core/commit/f4403b2af856cc6ce45e2aab277d7e78baa6ecfe)) - update dependency com.google.code.gson:gson to v2.8.9 ([#​615](https://www.togithub.com/googleapis/java-core/issues/615)) ([ec0e387](https://www.github.com/googleapis/java-core/commit/ec0e387d3c96467218406ef4c5da5e59a11e8b7a)) - update dependency com.google.errorprone:error_prone_annotations to v2.10.0 ([#​618](https://www.togithub.com/googleapis/java-core/issues/618)) ([21139a8](https://www.github.com/googleapis/java-core/commit/21139a83821b12b5312e470c61b45ca76a0b921a)) - update dependency com.google.protobuf:protobuf-bom to v3.19.1 ([#​609](https://www.togithub.com/googleapis/java-core/issues/609)) ([28e6333](https://www.github.com/googleapis/java-core/commit/28e6333080fbe10ad8ecdfeef12d80af204f71fd)) - update dependency io.grpc:grpc-bom to v1.42.0 ([#​619](https://www.togithub.com/googleapis/java-core/issues/619)) ([da4cbd5](https://www.github.com/googleapis/java-core/commit/da4cbd5ccc54a81f89635435a2045cfa0de8d722)) - update dependency org.threeten:threetenbp to v1.5.2 ([#​624](https://www.togithub.com/googleapis/java-core/issues/624)) ([91eec9d](https://www.github.com/googleapis/java-core/commit/91eec9d83285e10cd9ecf3e75cb99b9a9d40cb89))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 81e95fb67daa..9f9939252bd9 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.2.0 + 2.3.0 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 115b697e662f..eb42c9c78863 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.2.0 + 2.3.0 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 460707369848..4e8829ecc11d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.2.0 + 2.3.0 tests From b446be3049f737d78117f28253a7ab96924fca60 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Nov 2021 19:52:42 +0100 Subject: [PATCH 0886/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.3.1 (#927) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.0` -> `2.3.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.1/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.3.1`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​231-httpswwwgithubcomgoogleapisjava-corecomparev230v231-2021-11-15) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.0...v2.3.1)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 9f9939252bd9..dd12c7f485de 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.3.0 + 2.3.1 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index eb42c9c78863..e85f5a995303 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.3.0 + 2.3.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4e8829ecc11d..e39780f6ff8c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.3.0 + 2.3.1 tests From 41f72dd56386a442a32aff237900103b4bd0b2a6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Nov 2021 20:00:37 +0100 Subject: [PATCH 0887/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.2 (#928) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.1` -> `1.2.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/compatibility-slim/1.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/confidence-slim/1.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.2.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​122-httpswwwgithubcomgoogleapisjava-shared-configcomparev121v122-2021-11-16) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.1...v1.2.2)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index dd3d19b915f3..2519a0eb6e60 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.1 + 1.2.2 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bf06564c007b..3205a02aab9c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.1 + 1.2.2 From 7063adfb3aaedbe196b95dda3a31b41c4e226d68 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 29 Nov 2021 19:04:28 -0500 Subject: [PATCH 0888/2363] chore: update Java and Python dependencies (#907) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update Java and Python dependencies PiperOrigin-RevId: 408420890 Source-Link: https://github.com/googleapis/googleapis/commit/2921f9fb3bfbd16f6b2da0104373e2b47a80a65e Source-Link: https://github.com/googleapis/googleapis-gen/commit/6598ca8cbbf5226733a099c4506518a5af6ff74c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: update Java and Python dependencies PiperOrigin-RevId: 408420890 Source-Link: https://github.com/googleapis/googleapis/commit/2921f9fb3bfbd16f6b2da0104373e2b47a80a65e Source-Link: https://github.com/googleapis/googleapis-gen/commit/6598ca8cbbf5226733a099c4506518a5af6ff74c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * build: fix build after breaking changes * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * build: fix sample integration tests * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Chanseok Oh --- java-pubsub/.readme-partials.yaml | 20 +-- java-pubsub/README.md | 20 +-- .../clirr-ignored-differences.xml | 15 ++ .../cloud/pubsub/v1/SchemaServiceClient.java | 4 +- .../pubsub/v1/SubscriptionAdminClient.java | 166 +++++++++--------- .../cloud/pubsub/v1/TopicAdminClient.java | 63 +------ .../google/cloud/pubsub/v1/package-info.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../google/cloud/pubsub/it/ITPubSubTest.java | 16 +- .../v1/SubscriptionAdminClientTest.java | 118 ++++++------- .../cloud/pubsub/v1/TopicAdminClientTest.java | 6 +- .../com/google/pubsub/v1/PublisherGrpc.java | 1 + .../google/pubsub/v1/SchemaServiceGrpc.java | 1 + .../com/google/pubsub/v1/SubscriberGrpc.java | 1 + java-pubsub/owlbot.py | 2 +- .../google/pubsub/v1/AcknowledgeRequest.java | 4 +- .../google/pubsub/v1/CreateSchemaRequest.java | 8 +- .../pubsub/v1/CreateSnapshotRequest.java | 8 +- .../google/pubsub/v1/DeadLetterPolicy.java | 4 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 4 +- .../pubsub/v1/DeleteSnapshotRequest.java | 4 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 4 +- .../google/pubsub/v1/DeleteTopicRequest.java | 4 +- .../pubsub/v1/DetachSubscriptionRequest.java | 4 +- .../google/pubsub/v1/GetSchemaRequest.java | 4 +- .../google/pubsub/v1/GetSnapshotRequest.java | 4 +- .../pubsub/v1/GetSubscriptionRequest.java | 4 +- .../com/google/pubsub/v1/GetTopicRequest.java | 4 +- .../google/pubsub/v1/ListSchemasRequest.java | 8 +- .../google/pubsub/v1/ListSchemasResponse.java | 4 +- .../pubsub/v1/ListSnapshotsRequest.java | 8 +- .../pubsub/v1/ListSnapshotsResponse.java | 4 +- .../pubsub/v1/ListSubscriptionsRequest.java | 8 +- .../pubsub/v1/ListSubscriptionsResponse.java | 4 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 8 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 4 +- .../v1/ListTopicSubscriptionsRequest.java | 8 +- .../v1/ListTopicSubscriptionsResponse.java | 4 +- .../google/pubsub/v1/ListTopicsRequest.java | 8 +- .../google/pubsub/v1/ListTopicsResponse.java | 4 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 4 +- .../pubsub/v1/ModifyPushConfigRequest.java | 4 +- .../com/google/pubsub/v1/PublishRequest.java | 4 +- .../com/google/pubsub/v1/PubsubMessage.java | 8 +- .../com/google/pubsub/v1/PullRequest.java | 4 +- .../java/com/google/pubsub/v1/PushConfig.java | 12 +- .../com/google/pubsub/v1/ReceivedMessage.java | 4 +- .../java/com/google/pubsub/v1/Schema.java | 8 +- .../com/google/pubsub/v1/SchemaSettings.java | 4 +- .../com/google/pubsub/v1/SeekRequest.java | 4 +- .../java/com/google/pubsub/v1/Snapshot.java | 8 +- .../pubsub/v1/StreamingPullRequest.java | 8 +- .../com/google/pubsub/v1/Subscription.java | 12 +- .../main/java/com/google/pubsub/v1/Topic.java | 8 +- .../pubsub/v1/ValidateMessageRequest.java | 4 +- .../pubsub/v1/ValidateSchemaRequest.java | 4 +- .../pubsub/CreatePullSubscriptionExample.java | 5 +- .../pubsub/CreatePushSubscriptionExample.java | 5 +- .../pubsub/DeleteSubscriptionExample.java | 5 +- .../pubsub/DetachSubscriptionExample.java | 5 +- .../pubsub/UpdateDeadLetterPolicyExample.java | 5 +- .../UpdatePushConfigurationExample.java | 5 +- .../src/test/java/pubsub/AdminIT.java | 18 +- .../test/java/pubsub/DeadLetterQueueIT.java | 18 +- 64 files changed, 338 insertions(+), 397 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml diff --git a/java-pubsub/.readme-partials.yaml b/java-pubsub/.readme-partials.yaml index c68686327728..640d3b70b7a6 100644 --- a/java-pubsub/.readme-partials.yaml +++ b/java-pubsub/.readme-partials.yaml @@ -6,12 +6,12 @@ custom_content: | ```java import com.google.cloud.pubsub.v1.TopicAdminClient; - import com.google.pubsub.v1.ProjectTopicName; + import com.google.pubsub.v1.TopicName; ``` Then, to create the topic, use the following code: ```java - ProjectTopicName topic = ProjectTopicName.of("test-project", "test-topic"); + TopicName topic = TopicName.of("test-project", "test-topic"); try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { topicAdminClient.createTopic(topic); } @@ -65,14 +65,14 @@ custom_content: | ```java import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PushConfig; - import com.google.pubsub.v1.ProjectSubscriptionName; - import com.google.pubsub.v1.ProjectTopicName; + import com.google.pubsub.v1.SubscriptionName; + import com.google.pubsub.v1.TopicName; ``` Then, to create the subscription, use the following code: ```java - ProjectTopicName topic = ProjectTopicName.of("test-project", "test-topic"); - ProjectSubscriptionName subscription = ProjectSubscriptionName.of("test-project", "test-subscription"); + TopicName topic = TopicName.of("test-project", "test-topic"); + SubscriptionName subscription = SubscriptionName.of("test-project", "test-subscription"); try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { subscriptionAdminClient.createSubscription(subscription, topic, PushConfig.getDefaultInstance(), 0); @@ -90,13 +90,13 @@ custom_content: | import com.google.cloud.pubsub.v1.Subscriber; import com.google.common.util.concurrent.MoreExecutors; import com.google.pubsub.v1.PubsubMessage; - import com.google.pubsub.v1.ProjectSubscriptionName; - import com.google.pubsub.v1.ProjectTopicName; + import com.google.pubsub.v1.SubscriptionName; + import com.google.pubsub.v1.TopicName; ``` Then, to pull messages asynchronously, use the following code: ```java - ProjectSubscriptionName subscription = ProjectSubscriptionName.of("test-project", "test-subscription"); + SubscriptionName subscription = SubscriptionName.of("test-project", "test-subscription"); MessageReceiver receiver = new MessageReceiver() { @@ -109,7 +109,7 @@ custom_content: | Subscriber subscriber = null; try { - subscriber = Subscriber.newBuilder(subscription, receiver).build(); + subscriber = Subscriber.newBuilder(subscription.toString(), receiver).build(); subscriber.addListener( new Subscriber.Listener() { @Override diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3d74044e6ac3..e56239dcd652 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -106,12 +106,12 @@ publishers. Add the following imports at the top of your file: ```java import com.google.cloud.pubsub.v1.TopicAdminClient; -import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.TopicName; ``` Then, to create the topic, use the following code: ```java -ProjectTopicName topic = ProjectTopicName.of("test-project", "test-topic"); +TopicName topic = TopicName.of("test-project", "test-topic"); try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { topicAdminClient.createTopic(topic); } @@ -165,14 +165,14 @@ single, specific topic. Add the following imports at the top of your file: ```java import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PushConfig; -import com.google.pubsub.v1.ProjectSubscriptionName; -import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; ``` Then, to create the subscription, use the following code: ```java -ProjectTopicName topic = ProjectTopicName.of("test-project", "test-topic"); -ProjectSubscriptionName subscription = ProjectSubscriptionName.of("test-project", "test-subscription"); +TopicName topic = TopicName.of("test-project", "test-topic"); +SubscriptionName subscription = SubscriptionName.of("test-project", "test-subscription"); try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { subscriptionAdminClient.createSubscription(subscription, topic, PushConfig.getDefaultInstance(), 0); @@ -190,13 +190,13 @@ import com.google.cloud.pubsub.v1.MessageReceiver; import com.google.cloud.pubsub.v1.Subscriber; import com.google.common.util.concurrent.MoreExecutors; import com.google.pubsub.v1.PubsubMessage; -import com.google.pubsub.v1.ProjectSubscriptionName; -import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; ``` Then, to pull messages asynchronously, use the following code: ```java -ProjectSubscriptionName subscription = ProjectSubscriptionName.of("test-project", "test-subscription"); +SubscriptionName subscription = SubscriptionName.of("test-project", "test-subscription"); MessageReceiver receiver = new MessageReceiver() { @@ -209,7 +209,7 @@ MessageReceiver receiver = Subscriber subscriber = null; try { - subscriber = Subscriber.newBuilder(subscription, receiver).build(); + subscriber = Subscriber.newBuilder(subscription.toString(), receiver).build(); subscriber.addListener( new Subscriber.Listener() { @Override diff --git a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml new file mode 100644 index 000000000000..95c46b0f05fd --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml @@ -0,0 +1,15 @@ + + + + + 7005 + com/google/cloud/pubsub/v1/SubscriptionAdminClient + * + * + + + 7002 + com/google/cloud/pubsub/v1/TopicAdminClient$ListTopicSubscriptions* + java.lang.Iterable *AsProjectSubscriptionName() + + diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index e65f1778312f..562debea0538 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -473,7 +473,7 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = schemaServiceClient.listSchemasPagedCallable().futureCall(request); + * ApiFuture future = schemaServiceClient.listSchemasPagedCallable().futureCall(request); * // Do something. * for (Schema element : future.get().iterateAll()) { * // doThingsWith(element); @@ -503,7 +503,7 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) { * .build(); * while (true) { * ListSchemasResponse response = schemaServiceClient.listSchemasCallable().call(request); - * for (Schema element : response.getSchemasList()) { + * for (Schema element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 6d1c6950a5e6..eb837a289f39 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -48,8 +48,6 @@ import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.pubsub.v1.ModifyPushConfigRequest; import com.google.pubsub.v1.ProjectName; -import com.google.pubsub.v1.ProjectSnapshotName; -import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.ProjectTopicName; import com.google.pubsub.v1.PullRequest; import com.google.pubsub.v1.PullResponse; @@ -57,9 +55,11 @@ import com.google.pubsub.v1.SeekRequest; import com.google.pubsub.v1.SeekResponse; import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.UpdateSnapshotRequest; import com.google.pubsub.v1.UpdateSubscriptionRequest; @@ -79,7 +79,7 @@ * *
    {@code
      * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    - *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    + *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   PushConfig pushConfig = PushConfig.newBuilder().build();
      *   int ackDeadlineSeconds = 2135351438;
    @@ -207,7 +207,7 @@ public SubscriberStub getStub() {
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
        *   int ackDeadlineSeconds = 2135351438;
    @@ -245,10 +245,7 @@ public SubscriberStub getStub() {
        * @throws com.google.api.gax.rpc.ApiException if the remote call fails
        */
       public final Subscription createSubscription(
    -      ProjectSubscriptionName name,
    -      TopicName topic,
    -      PushConfig pushConfig,
    -      int ackDeadlineSeconds) {
    +      SubscriptionName name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) {
         Subscription request =
             Subscription.newBuilder()
                 .setName(name == null ? null : name.toString())
    @@ -276,7 +273,7 @@ public final Subscription createSubscription(
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
        *   int ackDeadlineSeconds = 2135351438;
    @@ -314,7 +311,7 @@ public final Subscription createSubscription(
        * @throws com.google.api.gax.rpc.ApiException if the remote call fails
        */
       public final Subscription createSubscription(
    -      ProjectSubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) {
    +      SubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) {
         Subscription request =
             Subscription.newBuilder()
                 .setName(name == null ? null : name.toString())
    @@ -342,7 +339,7 @@ public final Subscription createSubscription(
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
        *   int ackDeadlineSeconds = 2135351438;
    @@ -408,7 +405,7 @@ public final Subscription createSubscription(
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
        *   int ackDeadlineSeconds = 2135351438;
    @@ -476,7 +473,7 @@ public final Subscription createSubscription(
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   Subscription request =
        *       Subscription.newBuilder()
    -   *           .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
        *           .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
        *           .setPushConfig(PushConfig.newBuilder().build())
        *           .setAckDeadlineSeconds(2135351438)
    @@ -554,12 +551,12 @@ public final Subscription createSubscription(Subscription request) {
        *     

    If the subscriber never acknowledges the message, the Pub/Sub system will eventually * redeliver the message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #createSubscription(ProjectSubscriptionName, TopicName, PushConfig, - * int)} instead. + * @deprecated Use {@link #createSubscription(SubscriptionName, TopicName, PushConfig, int)} + * instead. */ @Deprecated public final Subscription createSubscription( - ProjectSubscriptionName name, + com.google.pubsub.v1.ProjectSubscriptionName name, ProjectTopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) { @@ -592,7 +589,7 @@ public final Subscription createSubscription( * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * Subscription request = * Subscription.newBuilder() - * .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) * .setPushConfig(PushConfig.newBuilder().build()) * .setAckDeadlineSeconds(2135351438) @@ -626,7 +623,7 @@ public final UnaryCallable createSubscriptionCallabl * *

    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
        * }
        * }
    @@ -635,7 +632,7 @@ public final UnaryCallable createSubscriptionCallabl * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Subscription getSubscription(ProjectSubscriptionName subscription) { + public final Subscription getSubscription(SubscriptionName subscription) { GetSubscriptionRequest request = GetSubscriptionRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -651,7 +648,7 @@ public final Subscription getSubscription(ProjectSubscriptionName subscription) * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
        * }
        * }
    @@ -676,7 +673,7 @@ public final Subscription getSubscription(String subscription) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * GetSubscriptionRequest request = * GetSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * Subscription response = subscriptionAdminClient.getSubscription(request); * } @@ -699,7 +696,7 @@ public final Subscription getSubscription(GetSubscriptionRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * GetSubscriptionRequest request = * GetSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * ApiFuture future = * subscriptionAdminClient.getSubscriptionCallable().futureCall(request); @@ -855,7 +852,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * subscriptionAdminClient.listSubscriptionsPagedCallable().futureCall(request); * // Do something. * for (Subscription element : future.get().iterateAll()) { @@ -886,7 +883,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * while (true) { * ListSubscriptionsResponse response = * subscriptionAdminClient.listSubscriptionsCallable().call(request); - * for (Subscription element : response.getSubscriptionsList()) { + * for (Subscription element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -915,7 +912,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   subscriptionAdminClient.deleteSubscription(subscription);
        * }
        * }
    @@ -924,7 +921,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSubscription(ProjectSubscriptionName subscription) { + public final void deleteSubscription(SubscriptionName subscription) { DeleteSubscriptionRequest request = DeleteSubscriptionRequest.newBuilder() .setSubscription(subscription == null ? null : subscription.toString()) @@ -943,7 +940,7 @@ public final void deleteSubscription(ProjectSubscriptionName subscription) { * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   subscriptionAdminClient.deleteSubscription(subscription);
        * }
        * }
    @@ -971,7 +968,7 @@ public final void deleteSubscription(String subscription) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * DeleteSubscriptionRequest request = * DeleteSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * subscriptionAdminClient.deleteSubscription(request); * } @@ -997,7 +994,7 @@ public final void deleteSubscription(DeleteSubscriptionRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * DeleteSubscriptionRequest request = * DeleteSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * ApiFuture future = * subscriptionAdminClient.deleteSubscriptionCallable().futureCall(request); @@ -1021,7 +1018,7 @@ public final UnaryCallable deleteSubscriptionC * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   List ackIds = new ArrayList<>();
        *   int ackDeadlineSeconds = 2135351438;
        *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
    @@ -1040,8 +1037,8 @@ public final UnaryCallable deleteSubscriptionC
        *     600 seconds (10 minutes).
        * @throws com.google.api.gax.rpc.ApiException if the remote call fails
        */
    -  /* package-private */ final void modifyAckDeadline(
    -      ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) {
    +  public final void modifyAckDeadline(
    +      SubscriptionName subscription, List ackIds, int ackDeadlineSeconds) {
         ModifyAckDeadlineRequest request =
             ModifyAckDeadlineRequest.newBuilder()
                 .setSubscription(subscription == null ? null : subscription.toString())
    @@ -1062,7 +1059,7 @@ public final UnaryCallable deleteSubscriptionC
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   List ackIds = new ArrayList<>();
        *   int ackDeadlineSeconds = 2135351438;
        *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
    @@ -1105,7 +1102,7 @@ public final void modifyAckDeadline(
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyAckDeadlineRequest request =
        *       ModifyAckDeadlineRequest.newBuilder()
    -   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
        *           .addAllAckIds(new ArrayList())
        *           .setAckDeadlineSeconds(2135351438)
        *           .build();
    @@ -1133,7 +1130,7 @@ public final void modifyAckDeadline(ModifyAckDeadlineRequest request) {
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyAckDeadlineRequest request =
        *       ModifyAckDeadlineRequest.newBuilder()
    -   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
        *           .addAllAckIds(new ArrayList())
        *           .setAckDeadlineSeconds(2135351438)
        *           .build();
    @@ -1160,7 +1157,7 @@ public final UnaryCallable modifyAckDeadlineCal
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   List ackIds = new ArrayList<>();
        *   subscriptionAdminClient.acknowledge(subscription, ackIds);
        * }
    @@ -1172,7 +1169,7 @@ public final UnaryCallable modifyAckDeadlineCal
        *     returned by the Pub/Sub system in the `Pull` response. Must not be empty.
        * @throws com.google.api.gax.rpc.ApiException if the remote call fails
        */
    -  public final void acknowledge(ProjectSubscriptionName subscription, List ackIds) {
    +  public final void acknowledge(SubscriptionName subscription, List ackIds) {
         AcknowledgeRequest request =
             AcknowledgeRequest.newBuilder()
                 .setSubscription(subscription == null ? null : subscription.toString())
    @@ -1193,7 +1190,7 @@ public final void acknowledge(ProjectSubscriptionName subscription, List
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   List ackIds = new ArrayList<>();
        *   subscriptionAdminClient.acknowledge(subscription, ackIds);
        * }
    @@ -1225,7 +1222,7 @@ public final void acknowledge(String subscription, List ackIds) {
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   AcknowledgeRequest request =
        *       AcknowledgeRequest.newBuilder()
    -   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
        *           .addAllAckIds(new ArrayList())
        *           .build();
        *   subscriptionAdminClient.acknowledge(request);
    @@ -1253,7 +1250,7 @@ public final void acknowledge(AcknowledgeRequest request) {
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   AcknowledgeRequest request =
        *       AcknowledgeRequest.newBuilder()
    -   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
        *           .addAllAckIds(new ArrayList())
        *           .build();
        *   ApiFuture future = subscriptionAdminClient.acknowledgeCallable().futureCall(request);
    @@ -1275,7 +1272,7 @@ public final UnaryCallable acknowledgeCallable() {
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   int maxMessages = 496131527;
        *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);
        * }
    @@ -1287,7 +1284,7 @@ public final UnaryCallable acknowledgeCallable() {
        *     a positive integer. The Pub/Sub system may return fewer than the number specified.
        * @throws com.google.api.gax.rpc.ApiException if the remote call fails
        */
    -  public final PullResponse pull(ProjectSubscriptionName subscription, int maxMessages) {
    +  public final PullResponse pull(SubscriptionName subscription, int maxMessages) {
         PullRequest request =
             PullRequest.newBuilder()
                 .setSubscription(subscription == null ? null : subscription.toString())
    @@ -1305,7 +1302,7 @@ public final PullResponse pull(ProjectSubscriptionName subscription, int maxMess
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   int maxMessages = 496131527;
        *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);
        * }
    @@ -1332,7 +1329,7 @@ public final PullResponse pull(String subscription, int maxMessages) {
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   boolean returnImmediately = true;
        *   int maxMessages = 496131527;
        *   PullResponse response =
    @@ -1352,8 +1349,8 @@ public final PullResponse pull(String subscription, int maxMessages) {
        *     a positive integer. The Pub/Sub system may return fewer than the number specified.
        * @throws com.google.api.gax.rpc.ApiException if the remote call fails
        */
    -  /* package-private */ final PullResponse pull(
    -      ProjectSubscriptionName subscription, boolean returnImmediately, int maxMessages) {
    +  public final PullResponse pull(
    +      SubscriptionName subscription, boolean returnImmediately, int maxMessages) {
         PullRequest request =
             PullRequest.newBuilder()
                 .setSubscription(subscription == null ? null : subscription.toString())
    @@ -1372,7 +1369,7 @@ public final PullResponse pull(String subscription, int maxMessages) {
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   boolean returnImmediately = true;
        *   int maxMessages = 496131527;
        *   PullResponse response =
    @@ -1413,7 +1410,7 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   PullRequest request =
        *       PullRequest.newBuilder()
    -   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
        *           .setReturnImmediately(true)
        *           .setMaxMessages(496131527)
        *           .build();
    @@ -1439,7 +1436,7 @@ public final PullResponse pull(PullRequest request) {
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   PullRequest request =
        *       PullRequest.newBuilder()
    -   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
        *           .setReturnImmediately(true)
        *           .setMaxMessages(496131527)
        *           .build();
    @@ -1470,7 +1467,7 @@ public final UnaryCallable pullCallable() {
        *       subscriptionAdminClient.streamingPullCallable().call();
        *   StreamingPullRequest request =
        *       StreamingPullRequest.newBuilder()
    -   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
        *           .addAllAckIds(new ArrayList())
        *           .addAllModifyDeadlineSeconds(new ArrayList())
        *           .addAllModifyDeadlineAckIds(new ArrayList())
    @@ -1504,7 +1501,7 @@ public final UnaryCallable pullCallable() {
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
        *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
        * }
    @@ -1518,7 +1515,7 @@ public final UnaryCallable pullCallable() {
        *     pausing the subscription if `Pull` or `StreamingPull` is not called.
        * @throws com.google.api.gax.rpc.ApiException if the remote call fails
        */
    -  public final void modifyPushConfig(ProjectSubscriptionName subscription, PushConfig pushConfig) {
    +  public final void modifyPushConfig(SubscriptionName subscription, PushConfig pushConfig) {
         ModifyPushConfigRequest request =
             ModifyPushConfigRequest.newBuilder()
                 .setSubscription(subscription == null ? null : subscription.toString())
    @@ -1540,7 +1537,7 @@ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushCon
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
        *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
        * }
    @@ -1578,7 +1575,7 @@ public final void modifyPushConfig(String subscription, PushConfig pushConfig) {
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyPushConfigRequest request =
        *       ModifyPushConfigRequest.newBuilder()
    -   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
        *           .setPushConfig(PushConfig.newBuilder().build())
        *           .build();
        *   subscriptionAdminClient.modifyPushConfig(request);
    @@ -1607,7 +1604,7 @@ public final void modifyPushConfig(ModifyPushConfigRequest request) {
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyPushConfigRequest request =
        *       ModifyPushConfigRequest.newBuilder()
    -   *           .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +   *           .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
        *           .setPushConfig(PushConfig.newBuilder().build())
        *           .build();
        *   ApiFuture future =
    @@ -1632,7 +1629,7 @@ public final UnaryCallable modifyPushConfigCalla
        *
        * 
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
        * }
        * }
    @@ -1641,7 +1638,7 @@ public final UnaryCallable modifyPushConfigCalla * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot getSnapshot(ProjectSnapshotName snapshot) { + public final Snapshot getSnapshot(SnapshotName snapshot) { GetSnapshotRequest request = GetSnapshotRequest.newBuilder() .setSnapshot(snapshot == null ? null : snapshot.toString()) @@ -1660,7 +1657,7 @@ public final Snapshot getSnapshot(ProjectSnapshotName snapshot) { * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    +   *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
        * }
        * }
    @@ -1687,7 +1684,7 @@ public final Snapshot getSnapshot(String snapshot) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * GetSnapshotRequest request = * GetSnapshotRequest.newBuilder() - * .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .build(); * Snapshot response = subscriptionAdminClient.getSnapshot(request); * } @@ -1713,7 +1710,7 @@ public final Snapshot getSnapshot(GetSnapshotRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * GetSnapshotRequest request = * GetSnapshotRequest.newBuilder() - * .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .build(); * ApiFuture future = * subscriptionAdminClient.getSnapshotCallable().futureCall(request); @@ -1830,7 +1827,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * subscriptionAdminClient.listSnapshotsPagedCallable().futureCall(request); * // Do something. * for (Snapshot element : future.get().iterateAll()) { @@ -1864,7 +1861,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque * while (true) { * ListSnapshotsResponse response = * subscriptionAdminClient.listSnapshotsCallable().call(request); - * for (Snapshot element : response.getSnapshotsList()) { + * for (Snapshot element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1900,8 +1897,8 @@ public final UnaryCallable listSnap * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
        * }
        * }
    @@ -1920,8 +1917,7 @@ public final UnaryCallable listSnap * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot( - ProjectSnapshotName name, ProjectSubscriptionName subscription) { + public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1949,8 +1945,8 @@ public final Snapshot createSnapshot( * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
        * }
        * }
    @@ -1969,7 +1965,7 @@ public final Snapshot createSnapshot( * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot(ProjectSnapshotName name, String subscription) { + public final Snapshot createSnapshot(SnapshotName name, String subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name == null ? null : name.toString()) @@ -1997,8 +1993,8 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    +   *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
        * }
        * }
    @@ -2017,7 +2013,7 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Snapshot createSnapshot(String name, ProjectSubscriptionName subscription) { + public final Snapshot createSnapshot(String name, SubscriptionName subscription) { CreateSnapshotRequest request = CreateSnapshotRequest.newBuilder() .setName(name) @@ -2045,8 +2041,8 @@ public final Snapshot createSnapshot(String name, ProjectSubscriptionName subscr * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    -   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    +   *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
        * }
        * }
    @@ -2092,8 +2088,8 @@ public final Snapshot createSnapshot(String name, String subscription) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * CreateSnapshotRequest request = * CreateSnapshotRequest.newBuilder() - * .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .putAllLabels(new HashMap()) * .build(); * Snapshot response = subscriptionAdminClient.createSnapshot(request); @@ -2128,8 +2124,8 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * CreateSnapshotRequest request = * CreateSnapshotRequest.newBuilder() - * .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .putAllLabels(new HashMap()) * .build(); * ApiFuture future = @@ -2211,7 +2207,7 @@ public final UnaryCallable updateSnapshotCallab * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   subscriptionAdminClient.deleteSnapshot(snapshot);
        * }
        * }
    @@ -2220,7 +2216,7 @@ public final UnaryCallable updateSnapshotCallab * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSnapshot(ProjectSnapshotName snapshot) { + public final void deleteSnapshot(SnapshotName snapshot) { DeleteSnapshotRequest request = DeleteSnapshotRequest.newBuilder() .setSnapshot(snapshot == null ? null : snapshot.toString()) @@ -2242,7 +2238,7 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) { * *
    {@code
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -   *   String snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    +   *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   subscriptionAdminClient.deleteSnapshot(snapshot);
        * }
        * }
    @@ -2273,7 +2269,7 @@ public final void deleteSnapshot(String snapshot) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * DeleteSnapshotRequest request = * DeleteSnapshotRequest.newBuilder() - * .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .build(); * subscriptionAdminClient.deleteSnapshot(request); * } @@ -2302,7 +2298,7 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * DeleteSnapshotRequest request = * DeleteSnapshotRequest.newBuilder() - * .setSnapshot(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + * .setSnapshot(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .build(); * ApiFuture future = * subscriptionAdminClient.deleteSnapshotCallable().futureCall(request); @@ -2330,7 +2326,7 @@ public final UnaryCallable deleteSnapshotCallable( * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * SeekRequest request = * SeekRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * SeekResponse response = subscriptionAdminClient.seek(request); * } @@ -2358,7 +2354,7 @@ public final SeekResponse seek(SeekRequest request) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * SeekRequest request = * SeekRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * ApiFuture future = subscriptionAdminClient.seekCallable().futureCall(request); * // Do something. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 1a9ba28870ee..61b154c1e748 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -27,8 +27,6 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.pubsub.v1.stub.PublisherStub; import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; -import com.google.common.base.Function; -import com.google.common.collect.Iterables; import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -47,7 +45,6 @@ import com.google.pubsub.v1.ListTopicsRequest; import com.google.pubsub.v1.ListTopicsResponse; import com.google.pubsub.v1.ProjectName; -import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.ProjectTopicName; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; @@ -666,7 +663,7 @@ public final ListTopicsPagedResponse listTopics(ListTopicsRequest request) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = topicAdminClient.listTopicsPagedCallable().futureCall(request); + * ApiFuture future = topicAdminClient.listTopicsPagedCallable().futureCall(request); * // Do something. * for (Topic element : future.get().iterateAll()) { * // doThingsWith(element); @@ -694,7 +691,7 @@ public final UnaryCallable listTopic * .build(); * while (true) { * ListTopicsResponse response = topicAdminClient.listTopicsCallable().call(request); - * for (Topic element : response.getTopicsList()) { + * for (Topic element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -834,7 +831,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * topicAdminClient.listTopicSubscriptionsPagedCallable().futureCall(request); * // Do something. * for (String element : future.get().iterateAll()) { @@ -865,7 +862,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * while (true) { * ListTopicSubscriptionsResponse response = * topicAdminClient.listTopicSubscriptionsCallable().call(request); - * for (String element : response.getSubscriptionsList()) { + * for (String element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -989,7 +986,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * topicAdminClient.listTopicSnapshotsPagedCallable().futureCall(request); * // Do something. * for (String element : future.get().iterateAll()) { @@ -1023,7 +1020,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * while (true) { * ListTopicSnapshotsResponse response = * topicAdminClient.listTopicSnapshotsCallable().call(request); - * for (String element : response.getSnapshotsList()) { + * for (String element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1183,7 +1180,7 @@ public final UnaryCallable deleteTopicCallable() { * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * DetachSubscriptionRequest request = * DetachSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * DetachSubscriptionResponse response = topicAdminClient.detachSubscription(request); * } @@ -1208,7 +1205,7 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * DetachSubscriptionRequest request = * DetachSubscriptionRequest.newBuilder() - * .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .build(); * ApiFuture future = * topicAdminClient.detachSubscriptionCallable().futureCall(request); @@ -1600,17 +1597,6 @@ public static ApiFuture createAsync( private ListTopicSubscriptionsPagedResponse(ListTopicSubscriptionsPage page) { super(page, ListTopicSubscriptionsFixedSizeCollection.createEmptyCollection()); } - - public Iterable iterateAllAsProjectSubscriptionName() { - return Iterables.transform( - iterateAll(), - new Function() { - @Override - public ProjectSubscriptionName apply(String arg0) { - return ProjectSubscriptionName.parse(arg0); - } - }); - } } public static class ListTopicSubscriptionsPage @@ -1643,28 +1629,6 @@ public ApiFuture createPageAsync( ApiFuture futureResponse) { return super.createPageAsync(context, futureResponse); } - - public Iterable iterateAllAsProjectSubscriptionName() { - return Iterables.transform( - iterateAll(), - new Function() { - @Override - public ProjectSubscriptionName apply(String arg0) { - return ProjectSubscriptionName.parse(arg0); - } - }); - } - - public Iterable getValuesAsProjectSubscriptionName() { - return Iterables.transform( - getValues(), - new Function() { - @Override - public ProjectSubscriptionName apply(String arg0) { - return ProjectSubscriptionName.parse(arg0); - } - }); - } } public static class ListTopicSubscriptionsFixedSizeCollection @@ -1689,17 +1653,6 @@ protected ListTopicSubscriptionsFixedSizeCollection createCollection( List pages, int collectionSize) { return new ListTopicSubscriptionsFixedSizeCollection(pages, collectionSize); } - - public Iterable getValuesAsProjectSubscriptionName() { - return Iterables.transform( - getValues(), - new Function() { - @Override - public ProjectSubscriptionName apply(String arg0) { - return ProjectSubscriptionName.parse(arg0); - } - }); - } } public static class ListTopicSnapshotsPagedResponse diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 820341320aa4..128d54247511 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -43,7 +43,7 @@ * *
    {@code
      * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    - *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    + *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   PushConfig pushConfig = PushConfig.newBuilder().build();
      *   int ackDeadlineSeconds = 2135351438;
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
    index 5ccb0793e339..2b2e725c1956 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
    @@ -369,7 +369,7 @@ protected GrpcPublisherStub(
             callableFactory.createUnaryCallable(
                 updateTopicTransportSettings, settings.updateTopicSettings(), clientContext);
         this.publishCallable =
    -        callableFactory.createUnaryCallable(
    +        callableFactory.createBatchingCallable(
                 publishTransportSettings, settings.publishSettings(), clientContext);
         this.getTopicCallable =
             callableFactory.createUnaryCallable(
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java
    index 89900c0e4f9c..914a95d8c8bd 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java
    @@ -35,10 +35,10 @@
     import com.google.iam.v1.SetIamPolicyRequest;
     import com.google.iam.v1.TestIamPermissionsRequest;
     import com.google.protobuf.ByteString;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
     import com.google.pubsub.v1.PubsubMessage;
     import com.google.pubsub.v1.PushConfig;
     import com.google.pubsub.v1.Subscription;
    +import com.google.pubsub.v1.SubscriptionName;
     import com.google.pubsub.v1.TopicName;
     import java.util.Collections;
     import java.util.List;
    @@ -94,7 +94,7 @@ private String formatForTest(String resourceName) {
       }
     
       private Subscription getSubscription(
    -      ProjectSubscriptionName subscriptionName,
    +      SubscriptionName subscriptionName,
           TopicName topicName,
           PushConfig pushConfig,
           int ackDeadline) {
    @@ -151,9 +151,8 @@ public void testVPCPushSubscriber() {
                 .setProject(projectId)
                 .setTopic(formatForTest("testing-vpc-push-subscriber-topic"))
                 .build();
    -    ProjectSubscriptionName subscriptionName =
    -        ProjectSubscriptionName.of(
    -            projectId, formatForTest("testing-vpc-push-subscriber-subscription"));
    +    SubscriptionName subscriptionName =
    +        SubscriptionName.of(projectId, formatForTest("testing-vpc-push-subscriber-subscription"));
         topicAdminClient.createTopic(topicName);
     
         try {
    @@ -179,9 +178,8 @@ public void testPublishSubscribe() throws Exception {
                 .setProject(projectId)
                 .setTopic(formatForTest("testing-publish-subscribe-topic"))
                 .build();
    -    ProjectSubscriptionName subscriptionName =
    -        ProjectSubscriptionName.of(
    -            projectId, formatForTest("testing-publish-subscribe-subscription"));
    +    SubscriptionName subscriptionName =
    +        SubscriptionName.of(projectId, formatForTest("testing-publish-subscribe-subscription"));
     
         topicAdminClient.createTopic(topicName);
     
    @@ -191,7 +189,7 @@ public void testPublishSubscribe() throws Exception {
         final BlockingQueue receiveQueue = new LinkedBlockingQueue<>();
         Subscriber subscriber =
             Subscriber.newBuilder(
    -                subscriptionName,
    +                subscriptionName.toString(),
                     new MessageReceiver() {
                       @Override
                       public void receiveMessage(
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    index 00753a6fb25e..9d53a7554a03 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    @@ -59,8 +59,6 @@
     import com.google.pubsub.v1.ModifyAckDeadlineRequest;
     import com.google.pubsub.v1.ModifyPushConfigRequest;
     import com.google.pubsub.v1.ProjectName;
    -import com.google.pubsub.v1.ProjectSnapshotName;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
     import com.google.pubsub.v1.PullRequest;
     import com.google.pubsub.v1.PullResponse;
     import com.google.pubsub.v1.PushConfig;
    @@ -69,9 +67,11 @@
     import com.google.pubsub.v1.SeekRequest;
     import com.google.pubsub.v1.SeekResponse;
     import com.google.pubsub.v1.Snapshot;
    +import com.google.pubsub.v1.SnapshotName;
     import com.google.pubsub.v1.StreamingPullRequest;
     import com.google.pubsub.v1.StreamingPullResponse;
     import com.google.pubsub.v1.Subscription;
    +import com.google.pubsub.v1.SubscriptionName;
     import com.google.pubsub.v1.TopicName;
     import com.google.pubsub.v1.UpdateSnapshotRequest;
     import com.google.pubsub.v1.UpdateSubscriptionRequest;
    @@ -136,7 +136,7 @@ public void tearDown() throws Exception {
       public void createSubscriptionTest() throws Exception {
         Subscription expectedResponse =
             Subscription.newBuilder()
    -            .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setPushConfig(PushConfig.newBuilder().build())
                 .setAckDeadlineSeconds(2135351438)
    @@ -153,7 +153,7 @@ public void createSubscriptionTest() throws Exception {
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
         TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
         PushConfig pushConfig = PushConfig.newBuilder().build();
         int ackDeadlineSeconds = 2135351438;
    @@ -182,7 +182,7 @@ public void createSubscriptionExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
           PushConfig pushConfig = PushConfig.newBuilder().build();
           int ackDeadlineSeconds = 2135351438;
    @@ -197,7 +197,7 @@ public void createSubscriptionExceptionTest() throws Exception {
       public void createSubscriptionTest2() throws Exception {
         Subscription expectedResponse =
             Subscription.newBuilder()
    -            .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setPushConfig(PushConfig.newBuilder().build())
                 .setAckDeadlineSeconds(2135351438)
    @@ -214,7 +214,7 @@ public void createSubscriptionTest2() throws Exception {
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
         String topic = "topic110546223";
         PushConfig pushConfig = PushConfig.newBuilder().build();
         int ackDeadlineSeconds = 2135351438;
    @@ -243,7 +243,7 @@ public void createSubscriptionExceptionTest2() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           String topic = "topic110546223";
           PushConfig pushConfig = PushConfig.newBuilder().build();
           int ackDeadlineSeconds = 2135351438;
    @@ -258,7 +258,7 @@ public void createSubscriptionExceptionTest2() throws Exception {
       public void createSubscriptionTest3() throws Exception {
         Subscription expectedResponse =
             Subscription.newBuilder()
    -            .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setPushConfig(PushConfig.newBuilder().build())
                 .setAckDeadlineSeconds(2135351438)
    @@ -319,7 +319,7 @@ public void createSubscriptionExceptionTest3() throws Exception {
       public void createSubscriptionTest4() throws Exception {
         Subscription expectedResponse =
             Subscription.newBuilder()
    -            .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setPushConfig(PushConfig.newBuilder().build())
                 .setAckDeadlineSeconds(2135351438)
    @@ -380,7 +380,7 @@ public void createSubscriptionExceptionTest4() throws Exception {
       public void getSubscriptionTest() throws Exception {
         Subscription expectedResponse =
             Subscription.newBuilder()
    -            .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setPushConfig(PushConfig.newBuilder().build())
                 .setAckDeadlineSeconds(2135351438)
    @@ -397,8 +397,7 @@ public void getSubscriptionTest() throws Exception {
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSubscriptionName subscription =
    -        ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
     
         Subscription actualResponse = client.getSubscription(subscription);
         Assert.assertEquals(expectedResponse, actualResponse);
    @@ -420,8 +419,7 @@ public void getSubscriptionExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSubscriptionName subscription =
    -          ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           client.getSubscription(subscription);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
    @@ -433,7 +431,7 @@ public void getSubscriptionExceptionTest() throws Exception {
       public void getSubscriptionTest2() throws Exception {
         Subscription expectedResponse =
             Subscription.newBuilder()
    -            .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setPushConfig(PushConfig.newBuilder().build())
                 .setAckDeadlineSeconds(2135351438)
    @@ -484,7 +482,7 @@ public void getSubscriptionExceptionTest2() throws Exception {
       public void updateSubscriptionTest() throws Exception {
         Subscription expectedResponse =
             Subscription.newBuilder()
    -            .setName(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setPushConfig(PushConfig.newBuilder().build())
                 .setAckDeadlineSeconds(2135351438)
    @@ -633,8 +631,7 @@ public void deleteSubscriptionTest() throws Exception {
         Empty expectedResponse = Empty.newBuilder().build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSubscriptionName subscription =
    -        ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
     
         client.deleteSubscription(subscription);
     
    @@ -655,8 +652,7 @@ public void deleteSubscriptionExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSubscriptionName subscription =
    -          ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           client.deleteSubscription(subscription);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
    @@ -703,8 +699,7 @@ public void modifyAckDeadlineTest() throws Exception {
         Empty expectedResponse = Empty.newBuilder().build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSubscriptionName subscription =
    -        ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
         List ackIds = new ArrayList<>();
         int ackDeadlineSeconds = 2135351438;
     
    @@ -729,8 +724,7 @@ public void modifyAckDeadlineExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSubscriptionName subscription =
    -          ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           List ackIds = new ArrayList<>();
           int ackDeadlineSeconds = 2135351438;
           client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
    @@ -785,8 +779,7 @@ public void acknowledgeTest() throws Exception {
         Empty expectedResponse = Empty.newBuilder().build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSubscriptionName subscription =
    -        ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
         List ackIds = new ArrayList<>();
     
         client.acknowledge(subscription, ackIds);
    @@ -809,8 +802,7 @@ public void acknowledgeExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSubscriptionName subscription =
    -          ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           List ackIds = new ArrayList<>();
           client.acknowledge(subscription, ackIds);
           Assert.fail("No exception raised");
    @@ -862,8 +854,7 @@ public void pullTest() throws Exception {
             PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSubscriptionName subscription =
    -        ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
         int maxMessages = 496131527;
     
         PullResponse actualResponse = client.pull(subscription, maxMessages);
    @@ -887,8 +878,7 @@ public void pullExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSubscriptionName subscription =
    -          ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           int maxMessages = 496131527;
           client.pull(subscription, maxMessages);
           Assert.fail("No exception raised");
    @@ -942,8 +932,7 @@ public void pullTest3() throws Exception {
             PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSubscriptionName subscription =
    -        ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
         boolean returnImmediately = true;
         int maxMessages = 496131527;
     
    @@ -969,8 +958,7 @@ public void pullExceptionTest3() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSubscriptionName subscription =
    -          ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           boolean returnImmediately = true;
           int maxMessages = 496131527;
           client.pull(subscription, returnImmediately, maxMessages);
    @@ -1033,7 +1021,7 @@ public void streamingPullTest() throws Exception {
         mockSubscriber.addResponse(expectedResponse);
         StreamingPullRequest request =
             StreamingPullRequest.newBuilder()
    -            .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .addAllAckIds(new ArrayList())
                 .addAllModifyDeadlineSeconds(new ArrayList())
                 .addAllModifyDeadlineAckIds(new ArrayList())
    @@ -1064,7 +1052,7 @@ public void streamingPullExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
         StreamingPullRequest request =
             StreamingPullRequest.newBuilder()
    -            .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .addAllAckIds(new ArrayList())
                 .addAllModifyDeadlineSeconds(new ArrayList())
                 .addAllModifyDeadlineAckIds(new ArrayList())
    @@ -1098,8 +1086,7 @@ public void modifyPushConfigTest() throws Exception {
         Empty expectedResponse = Empty.newBuilder().build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSubscriptionName subscription =
    -        ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
         PushConfig pushConfig = PushConfig.newBuilder().build();
     
         client.modifyPushConfig(subscription, pushConfig);
    @@ -1122,8 +1109,7 @@ public void modifyPushConfigExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSubscriptionName subscription =
    -          ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           PushConfig pushConfig = PushConfig.newBuilder().build();
           client.modifyPushConfig(subscription, pushConfig);
           Assert.fail("No exception raised");
    @@ -1173,14 +1159,14 @@ public void modifyPushConfigExceptionTest2() throws Exception {
       public void getSnapshotTest() throws Exception {
         Snapshot expectedResponse =
             Snapshot.newBuilder()
    -            .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +            .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setExpireTime(Timestamp.newBuilder().build())
                 .putAllLabels(new HashMap())
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +    SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
     
         Snapshot actualResponse = client.getSnapshot(snapshot);
         Assert.assertEquals(expectedResponse, actualResponse);
    @@ -1202,7 +1188,7 @@ public void getSnapshotExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +      SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
           client.getSnapshot(snapshot);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
    @@ -1214,7 +1200,7 @@ public void getSnapshotExceptionTest() throws Exception {
       public void getSnapshotTest2() throws Exception {
         Snapshot expectedResponse =
             Snapshot.newBuilder()
    -            .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +            .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setExpireTime(Timestamp.newBuilder().build())
                 .putAllLabels(new HashMap())
    @@ -1343,16 +1329,15 @@ public void listSnapshotsExceptionTest2() throws Exception {
       public void createSnapshotTest() throws Exception {
         Snapshot expectedResponse =
             Snapshot.newBuilder()
    -            .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +            .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setExpireTime(Timestamp.newBuilder().build())
                 .putAllLabels(new HashMap())
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -    ProjectSubscriptionName subscription =
    -        ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +    SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
     
         Snapshot actualResponse = client.createSnapshot(name, subscription);
         Assert.assertEquals(expectedResponse, actualResponse);
    @@ -1375,9 +1360,8 @@ public void createSnapshotExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    -      ProjectSubscriptionName subscription =
    -          ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +      SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           client.createSnapshot(name, subscription);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
    @@ -1389,14 +1373,14 @@ public void createSnapshotExceptionTest() throws Exception {
       public void createSnapshotTest2() throws Exception {
         Snapshot expectedResponse =
             Snapshot.newBuilder()
    -            .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +            .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setExpireTime(Timestamp.newBuilder().build())
                 .putAllLabels(new HashMap())
                 .build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +    SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
         String subscription = "subscription341203229";
     
         Snapshot actualResponse = client.createSnapshot(name, subscription);
    @@ -1420,7 +1404,7 @@ public void createSnapshotExceptionTest2() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +      SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
           String subscription = "subscription341203229";
           client.createSnapshot(name, subscription);
           Assert.fail("No exception raised");
    @@ -1433,7 +1417,7 @@ public void createSnapshotExceptionTest2() throws Exception {
       public void createSnapshotTest3() throws Exception {
         Snapshot expectedResponse =
             Snapshot.newBuilder()
    -            .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +            .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setExpireTime(Timestamp.newBuilder().build())
                 .putAllLabels(new HashMap())
    @@ -1441,8 +1425,7 @@ public void createSnapshotTest3() throws Exception {
         mockSubscriber.addResponse(expectedResponse);
     
         String name = "name3373707";
    -    ProjectSubscriptionName subscription =
    -        ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +    SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
     
         Snapshot actualResponse = client.createSnapshot(name, subscription);
         Assert.assertEquals(expectedResponse, actualResponse);
    @@ -1466,8 +1449,7 @@ public void createSnapshotExceptionTest3() throws Exception {
     
         try {
           String name = "name3373707";
    -      ProjectSubscriptionName subscription =
    -          ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +      SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
           client.createSnapshot(name, subscription);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
    @@ -1479,7 +1461,7 @@ public void createSnapshotExceptionTest3() throws Exception {
       public void createSnapshotTest4() throws Exception {
         Snapshot expectedResponse =
             Snapshot.newBuilder()
    -            .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +            .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setExpireTime(Timestamp.newBuilder().build())
                 .putAllLabels(new HashMap())
    @@ -1523,7 +1505,7 @@ public void createSnapshotExceptionTest4() throws Exception {
       public void updateSnapshotTest() throws Exception {
         Snapshot expectedResponse =
             Snapshot.newBuilder()
    -            .setName(ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
    +            .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString())
                 .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString())
                 .setExpireTime(Timestamp.newBuilder().build())
                 .putAllLabels(new HashMap())
    @@ -1574,7 +1556,7 @@ public void deleteSnapshotTest() throws Exception {
         Empty expectedResponse = Empty.newBuilder().build();
         mockSubscriber.addResponse(expectedResponse);
     
    -    ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +    SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
     
         client.deleteSnapshot(snapshot);
     
    @@ -1595,7 +1577,7 @@ public void deleteSnapshotExceptionTest() throws Exception {
         mockSubscriber.addException(exception);
     
         try {
    -      ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +      SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
           client.deleteSnapshot(snapshot);
           Assert.fail("No exception raised");
         } catch (InvalidArgumentException e) {
    @@ -1644,7 +1626,7 @@ public void seekTest() throws Exception {
     
         SeekRequest request =
             SeekRequest.newBuilder()
    -            .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .build();
     
         SeekResponse actualResponse = client.seek(request);
    @@ -1671,7 +1653,7 @@ public void seekExceptionTest() throws Exception {
         try {
           SeekRequest request =
               SeekRequest.newBuilder()
    -              .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +              .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                   .build();
           client.seek(request);
           Assert.fail("No exception raised");
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    index 4cf5a75029c7..02d6a55850c9 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    @@ -52,11 +52,11 @@
     import com.google.pubsub.v1.ListTopicsResponse;
     import com.google.pubsub.v1.MessageStoragePolicy;
     import com.google.pubsub.v1.ProjectName;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
     import com.google.pubsub.v1.PublishRequest;
     import com.google.pubsub.v1.PublishResponse;
     import com.google.pubsub.v1.PubsubMessage;
     import com.google.pubsub.v1.SchemaSettings;
    +import com.google.pubsub.v1.SubscriptionName;
     import com.google.pubsub.v1.Topic;
     import com.google.pubsub.v1.TopicName;
     import com.google.pubsub.v1.UpdateTopicRequest;
    @@ -764,7 +764,7 @@ public void detachSubscriptionTest() throws Exception {
     
         DetachSubscriptionRequest request =
             DetachSubscriptionRequest.newBuilder()
    -            .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +            .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                 .build();
     
         DetachSubscriptionResponse actualResponse = client.detachSubscription(request);
    @@ -789,7 +789,7 @@ public void detachSubscriptionExceptionTest() throws Exception {
         try {
           DetachSubscriptionRequest request =
               DetachSubscriptionRequest.newBuilder()
    -              .setSubscription(ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
    +              .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString())
                   .build();
           client.detachSubscription(request);
           Assert.fail("No exception raised");
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java
    index 380561fd8445..638e841d7843 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java
    @@ -28,6 +28,7 @@
     @javax.annotation.Generated(
         value = "by gRPC proto compiler",
         comments = "Source: google/pubsub/v1/pubsub.proto")
    +@io.grpc.stub.annotations.GrpcGenerated
     public final class PublisherGrpc {
     
       private PublisherGrpc() {}
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
    index ce5099a57d4d..c8061efe2c6d 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
    @@ -27,6 +27,7 @@
     @javax.annotation.Generated(
         value = "by gRPC proto compiler",
         comments = "Source: google/pubsub/v1/schema.proto")
    +@io.grpc.stub.annotations.GrpcGenerated
     public final class SchemaServiceGrpc {
     
       private SchemaServiceGrpc() {}
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
    index 295e5e724e58..de5a11c89eca 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
    @@ -29,6 +29,7 @@
     @javax.annotation.Generated(
         value = "by gRPC proto compiler",
         comments = "Source: google/pubsub/v1/pubsub.proto")
    +@io.grpc.stub.annotations.GrpcGenerated
     public final class SubscriberGrpc {
     
       private SubscriberGrpc() {}
    diff --git a/java-pubsub/owlbot.py b/java-pubsub/owlbot.py
    index db3167abaa71..42af76ac6bf6 100644
    --- a/java-pubsub/owlbot.py
    +++ b/java-pubsub/owlbot.py
    @@ -406,7 +406,7 @@
        */
       @Deprecated
       public final Subscription createSubscription(
    -      ProjectSubscriptionName name,
    +      com.google.pubsub.v1.ProjectSubscriptionName name,
           ProjectTopicName topic,
           PushConfig pushConfig,
           int ackDeadlineSeconds) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    index 009081161f45..cf164758b7bf 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    @@ -264,7 +264,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
         for (int i = 0; i < ackIds_.size(); i++) {
    @@ -279,7 +279,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java
    index 6c7618f9c804..e0a121785f03 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java
    @@ -312,13 +312,13 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getParentBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
         }
         if (schema_ != null) {
           output.writeMessage(2, getSchema());
         }
    -    if (!getSchemaIdBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaId_);
         }
         unknownFields.writeTo(output);
    @@ -330,13 +330,13 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getParentBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
         }
         if (schema_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema());
         }
    -    if (!getSchemaIdBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    index 00ea43fcdb11..b37c9f64aa14 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    @@ -392,10 +392,10 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_);
         }
         com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
    @@ -409,10 +409,10 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_);
         }
         for (java.util.Map.Entry entry :
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
    index 773359cfac8d..e543187a8722 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
    @@ -222,7 +222,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getDeadLetterTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deadLetterTopic_);
         }
         if (maxDeliveryAttempts_ != 0) {
    @@ -237,7 +237,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getDeadLetterTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deadLetterTopic_);
         }
         if (maxDeliveryAttempts_ != 0) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java
    index b09de9b8ee89..69a7b241fe05 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java
    @@ -180,7 +180,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
         unknownFields.writeTo(output);
    @@ -192,7 +192,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java
    index d43936019e23..b5529abe6fec 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java
    @@ -180,7 +180,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSnapshotBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_);
         }
         unknownFields.writeTo(output);
    @@ -192,7 +192,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSnapshotBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    index 82bd05b372af..e4ca9d30f135 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    @@ -180,7 +180,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
         unknownFields.writeTo(output);
    @@ -192,7 +192,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    index 68db7a9575a9..db0ba9fbce92 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    @@ -180,7 +180,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
         unknownFields.writeTo(output);
    @@ -192,7 +192,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java
    index 6b738acfaec2..8e56f9e90928 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java
    @@ -180,7 +180,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
         unknownFields.writeTo(output);
    @@ -192,7 +192,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
    index d8dd20048a9b..9eff939622db 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
    @@ -227,7 +227,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
         if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) {
    @@ -242,7 +242,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
         if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    index ee75fc7d33be..2cdf4abfebf3 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    @@ -180,7 +180,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSnapshotBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_);
         }
         unknownFields.writeTo(output);
    @@ -192,7 +192,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSnapshotBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    index 7aed4b01a7ea..1c9992ee8562 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    @@ -180,7 +180,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
         unknownFields.writeTo(output);
    @@ -192,7 +192,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    index acf62a7f738d..0d3e779c5c61 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    @@ -180,7 +180,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
         unknownFields.writeTo(output);
    @@ -192,7 +192,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java
    index 95cf9ecabed7..0c8e4883d5df 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java
    @@ -311,7 +311,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getParentBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
         }
         if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) {
    @@ -320,7 +320,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (pageSize_ != 0) {
           output.writeInt32(3, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
         }
         unknownFields.writeTo(output);
    @@ -332,7 +332,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getParentBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
         }
         if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) {
    @@ -341,7 +341,7 @@ public int getSerializedSize() {
         if (pageSize_ != 0) {
           size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java
    index ea77ff15a3d2..27f189db1171 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java
    @@ -262,7 +262,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < schemas_.size(); i++) {
           output.writeMessage(1, schemas_.get(i));
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
         unknownFields.writeTo(output);
    @@ -277,7 +277,7 @@ public int getSerializedSize() {
         for (int i = 0; i < schemas_.size(); i++) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i));
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    index 72ce020e112d..6958265a69c3 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    @@ -264,13 +264,13 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getProjectBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_);
         }
         if (pageSize_ != 0) {
           output.writeInt32(2, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
         }
         unknownFields.writeTo(output);
    @@ -282,13 +282,13 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getProjectBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_);
         }
         if (pageSize_ != 0) {
           size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    index e355e42f6c4a..d7747b6dd027 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    @@ -263,7 +263,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < snapshots_.size(); i++) {
           output.writeMessage(1, snapshots_.get(i));
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
         unknownFields.writeTo(output);
    @@ -278,7 +278,7 @@ public int getSerializedSize() {
         for (int i = 0; i < snapshots_.size(); i++) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snapshots_.get(i));
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    index a1484c696f75..7599fbf288f2 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    @@ -264,13 +264,13 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getProjectBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_);
         }
         if (pageSize_ != 0) {
           output.writeInt32(2, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
         }
         unknownFields.writeTo(output);
    @@ -282,13 +282,13 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getProjectBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_);
         }
         if (pageSize_ != 0) {
           size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    index 03b7ba951332..614895dde2b7 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    @@ -265,7 +265,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < subscriptions_.size(); i++) {
           output.writeMessage(1, subscriptions_.get(i));
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
         unknownFields.writeTo(output);
    @@ -280,7 +280,7 @@ public int getSerializedSize() {
         for (int i = 0; i < subscriptions_.size(); i++) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, subscriptions_.get(i));
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    index 2edd5bdc81ca..9ba97ba5a3c8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    @@ -264,13 +264,13 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
         if (pageSize_ != 0) {
           output.writeInt32(2, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
         }
         unknownFields.writeTo(output);
    @@ -282,13 +282,13 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
         }
         if (pageSize_ != 0) {
           size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    index a19c8778d431..c098cc39abb1 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    @@ -257,7 +257,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < snapshots_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshots_.getRaw(i));
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
         unknownFields.writeTo(output);
    @@ -277,7 +277,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getSnapshotsList().size();
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    index 2bd00bee6985..d8a5d96fd6e1 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    @@ -264,13 +264,13 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
         if (pageSize_ != 0) {
           output.writeInt32(2, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
         }
         unknownFields.writeTo(output);
    @@ -282,13 +282,13 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
         }
         if (pageSize_ != 0) {
           size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    index 303bd86a4bfa..c81e4fe62712 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    @@ -258,7 +258,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < subscriptions_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscriptions_.getRaw(i));
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
         unknownFields.writeTo(output);
    @@ -278,7 +278,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getSubscriptionsList().size();
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    index b6660177d9ba..17f59fd635bf 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    @@ -264,13 +264,13 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getProjectBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_);
         }
         if (pageSize_ != 0) {
           output.writeInt32(2, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
         }
         unknownFields.writeTo(output);
    @@ -282,13 +282,13 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getProjectBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_);
         }
         if (pageSize_ != 0) {
           size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
         }
    -    if (!getPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    index 6e42dbb0ea7e..0af6dd44790f 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    @@ -262,7 +262,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < topics_.size(); i++) {
           output.writeMessage(1, topics_.get(i));
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
         unknownFields.writeTo(output);
    @@ -277,7 +277,7 @@ public int getSerializedSize() {
         for (int i = 0; i < topics_.size(); i++) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topics_.get(i));
         }
    -    if (!getNextPageTokenBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    index a3e24dce8804..30831833d08a 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    @@ -286,7 +286,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
         if (ackDeadlineSeconds_ != 0) {
    @@ -304,7 +304,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         if (ackDeadlineSeconds_ != 0) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java
    index 0ee605fad967..8833432d8cdd 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java
    @@ -256,7 +256,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
         if (pushConfig_ != null) {
    @@ -271,7 +271,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         if (pushConfig_ != null) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    index f255ee55b38e..3c1a2c428ad8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    @@ -275,7 +275,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
         for (int i = 0; i < messages_.size(); i++) {
    @@ -290,7 +290,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
         }
         for (int i = 0; i < messages_.size(); i++) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    index 29753809842d..bda025a248a8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    @@ -485,13 +485,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         }
         com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
             output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2);
    -    if (!getMessageIdBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageId_);
         }
         if (publishTime_ != null) {
           output.writeMessage(4, getPublishTime());
         }
    -    if (!getOrderingKeyBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderingKey_);
         }
         unknownFields.writeTo(output);
    @@ -516,13 +516,13 @@ public int getSerializedSize() {
                   .build();
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attributes__);
         }
    -    if (!getMessageIdBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageId_);
         }
         if (publishTime_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPublishTime());
         }
    -    if (!getOrderingKeyBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderingKey_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    index 4c59e15a5038..097ffd48de25 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    @@ -234,7 +234,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
         if (returnImmediately_ != false) {
    @@ -252,7 +252,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         if (returnImmediately_ != false) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
    index 12614a75b0dd..74e82b909959 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
    @@ -460,10 +460,10 @@ public final boolean isInitialized() {
     
         @java.lang.Override
         public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -      if (!getServiceAccountEmailBytes().isEmpty()) {
    +      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_);
           }
    -      if (!getAudienceBytes().isEmpty()) {
    +      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_);
           }
           unknownFields.writeTo(output);
    @@ -475,10 +475,10 @@ public int getSerializedSize() {
           if (size != -1) return size;
     
           size = 0;
    -      if (!getServiceAccountEmailBytes().isEmpty()) {
    +      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_);
           }
    -      if (!getAudienceBytes().isEmpty()) {
    +      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_);
           }
           size += unknownFields.getSerializedSize();
    @@ -1415,7 +1415,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getPushEndpointBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pushEndpoint_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pushEndpoint_);
         }
         com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
    @@ -1432,7 +1432,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getPushEndpointBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pushEndpoint_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pushEndpoint_);
         }
         for (java.util.Map.Entry entry :
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
    index 38e472e7ad4e..84c1a8242e30 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
    @@ -269,7 +269,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getAckIdBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackId_);
         }
         if (message_ != null) {
    @@ -287,7 +287,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getAckIdBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ackId_);
         }
         if (message_ != null) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
    index cd8adc77b2cd..c157eb4ba270 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
    @@ -435,13 +435,13 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
         if (type_ != com.google.pubsub.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) {
           output.writeEnum(2, type_);
         }
    -    if (!getDefinitionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, definition_);
         }
         unknownFields.writeTo(output);
    @@ -453,13 +453,13 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
         if (type_ != com.google.pubsub.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) {
           size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_);
         }
    -    if (!getDefinitionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, definition_);
         }
         size += unknownFields.getSerializedSize();
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java
    index bca71d43299e..ee21a2fe6119 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java
    @@ -227,7 +227,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSchemaBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_);
         }
         if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) {
    @@ -242,7 +242,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSchemaBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_);
         }
         if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java
    index f9d6cc75d7aa..a10126f4a5fe 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java
    @@ -402,7 +402,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
         if (targetCase_ == 2) {
    @@ -420,7 +420,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         if (targetCase_ == 2) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java
    index 7097a40b509e..76500746883d 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java
    @@ -448,10 +448,10 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_);
         }
         if (expireTime_ != null) {
    @@ -468,10 +468,10 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
         }
         if (expireTime_ != null) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    index d0c8d9a3f5b8..a5b507540dd2 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    @@ -631,7 +631,7 @@ public final boolean isInitialized() {
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
         getSerializedSize();
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
         for (int i = 0; i < ackIds_.size(); i++) {
    @@ -651,7 +651,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (streamAckDeadlineSeconds_ != 0) {
           output.writeInt32(5, streamAckDeadlineSeconds_);
         }
    -    if (!getClientIdBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clientId_);
         }
         if (maxOutstandingMessages_ != 0L) {
    @@ -669,7 +669,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getSubscriptionBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
         {
    @@ -705,7 +705,7 @@ public int getSerializedSize() {
         if (streamAckDeadlineSeconds_ != 0) {
           size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, streamAckDeadlineSeconds_);
         }
    -    if (!getClientIdBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clientId_);
         }
         if (maxOutstandingMessages_ != 0L) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java
    index a4e0edaa8830..6b45b5f6c933 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java
    @@ -1029,10 +1029,10 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_);
         }
         if (pushConfig_ != null) {
    @@ -1055,7 +1055,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (expirationPolicy_ != null) {
           output.writeMessage(11, getExpirationPolicy());
         }
    -    if (!getFilterBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 12, filter_);
         }
         if (deadLetterPolicy_ != null) {
    @@ -1079,10 +1079,10 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
    -    if (!getTopicBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
         }
         if (pushConfig_ != null) {
    @@ -1115,7 +1115,7 @@ public int getSerializedSize() {
         if (expirationPolicy_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy());
         }
    -    if (!getFilterBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, filter_);
         }
         if (deadLetterPolicy_ != null) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    index f2d2bb19f904..1682c2329b0a 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    @@ -612,7 +612,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
         com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
    @@ -620,7 +620,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (messageStoragePolicy_ != null) {
           output.writeMessage(3, getMessageStoragePolicy());
         }
    -    if (!getKmsKeyNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kmsKeyName_);
         }
         if (schemaSettings_ != null) {
    @@ -641,7 +641,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
         for (java.util.Map.Entry entry :
    @@ -658,7 +658,7 @@ public int getSerializedSize() {
           size +=
               com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessageStoragePolicy());
         }
    -    if (!getKmsKeyNameBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kmsKeyName_);
         }
         if (schemaSettings_ != null) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java
    index d1a77c968b89..c5bdcde47718 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java
    @@ -440,7 +440,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getParentBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
         }
         if (schemaSpecCase_ == 2) {
    @@ -464,7 +464,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getParentBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
         }
         if (schemaSpecCase_ == 2) {
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
    index 631fca4ef1b9..0e62b8478580 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
    @@ -240,7 +240,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    if (!getParentBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
         }
         if (schema_ != null) {
    @@ -255,7 +255,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    if (!getParentBytes().isEmpty()) {
    +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
         }
         if (schema_ != null) {
    diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java
    index b8ba1ae6864c..e58fd621e2c6 100644
    --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java
    +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java
    @@ -19,9 +19,9 @@
     // [START pubsub_create_pull_subscription]
     
     import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
     import com.google.pubsub.v1.PushConfig;
     import com.google.pubsub.v1.Subscription;
    +import com.google.pubsub.v1.SubscriptionName;
     import com.google.pubsub.v1.TopicName;
     import java.io.IOException;
     
    @@ -39,8 +39,7 @@ public static void createPullSubscriptionExample(
           String projectId, String subscriptionId, String topicId) throws IOException {
         try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
           TopicName topicName = TopicName.of(projectId, topicId);
    -      ProjectSubscriptionName subscriptionName =
    -          ProjectSubscriptionName.of(projectId, subscriptionId);
    +      SubscriptionName subscriptionName = SubscriptionName.of(projectId, subscriptionId);
           // Create a pull subscription with default acknowledgement deadline of 10 seconds.
           // Messages not successfully acknowledged within 10 seconds will get resent by the server.
           Subscription subscription =
    diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java
    index db0175b0789f..b77795290209 100644
    --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java
    +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java
    @@ -19,9 +19,9 @@
     // [START pubsub_create_push_subscription]
     
     import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
     import com.google.pubsub.v1.PushConfig;
     import com.google.pubsub.v1.Subscription;
    +import com.google.pubsub.v1.SubscriptionName;
     import com.google.pubsub.v1.TopicName;
     import java.io.IOException;
     
    @@ -41,8 +41,7 @@ public static void createPushSubscriptionExample(
           throws IOException {
         try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
           TopicName topicName = TopicName.of(projectId, topicId);
    -      ProjectSubscriptionName subscriptionName =
    -          ProjectSubscriptionName.of(projectId, subscriptionId);
    +      SubscriptionName subscriptionName = SubscriptionName.of(projectId, subscriptionId);
           PushConfig pushConfig = PushConfig.newBuilder().setPushEndpoint(pushEndpoint).build();
     
           // Create a push subscription with default acknowledgement deadline of 10 seconds.
    diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java
    index 28d683f1ffb6..0142ba2c308a 100644
    --- a/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java
    +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java
    @@ -20,7 +20,7 @@
     
     import com.google.api.gax.rpc.NotFoundException;
     import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
    +import com.google.pubsub.v1.SubscriptionName;
     import java.io.IOException;
     
     public class DeleteSubscriptionExample {
    @@ -36,8 +36,7 @@ public static void main(String... args) throws Exception {
       public static void deleteSubscriptionExample(String projectId, String subscriptionId)
           throws IOException {
         try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -      ProjectSubscriptionName subscriptionName =
    -          ProjectSubscriptionName.of(projectId, subscriptionId);
    +      SubscriptionName subscriptionName = SubscriptionName.of(projectId, subscriptionId);
           try {
             subscriptionAdminClient.deleteSubscription(subscriptionName);
             System.out.println("Deleted subscription.");
    diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java
    index 88ebb8e05bf8..b414563c26a6 100644
    --- a/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java
    +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java
    @@ -20,8 +20,8 @@
     import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
     import com.google.cloud.pubsub.v1.TopicAdminClient;
     import com.google.pubsub.v1.DetachSubscriptionRequest;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
     import com.google.pubsub.v1.Subscription;
    +import com.google.pubsub.v1.SubscriptionName;
     import java.io.IOException;
     
     public class DetachSubscriptionExample {
    @@ -36,8 +36,7 @@ public static void main(String... args) throws Exception {
     
       public static void detachSubscriptionExample(String projectId, String subscriptionId)
           throws IOException {
    -    ProjectSubscriptionName subscriptionName =
    -        ProjectSubscriptionName.of(projectId, subscriptionId);
    +    SubscriptionName subscriptionName = SubscriptionName.of(projectId, subscriptionId);
     
         try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
           topicAdminClient.detachSubscription(
    diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java
    index c8d7babee57a..d2946e8f3963 100644
    --- a/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java
    +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java
    @@ -21,8 +21,8 @@
     import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
     import com.google.protobuf.FieldMask;
     import com.google.pubsub.v1.DeadLetterPolicy;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
     import com.google.pubsub.v1.Subscription;
    +import com.google.pubsub.v1.SubscriptionName;
     import com.google.pubsub.v1.TopicName;
     import com.google.pubsub.v1.UpdateSubscriptionRequest;
     import java.io.IOException;
    @@ -48,8 +48,7 @@ public static void updateDeadLetterPolicyExample(
           throws IOException {
         try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
     
    -      ProjectSubscriptionName subscriptionName =
    -          ProjectSubscriptionName.of(projectId, subscriptionId);
    +      SubscriptionName subscriptionName = SubscriptionName.of(projectId, subscriptionId);
     
           System.out.println(
               "Before: " + subscriptionAdminClient.getSubscription(subscriptionName).getAllFields());
    diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java
    index ae674be74177..d4a583e928ed 100644
    --- a/java-pubsub/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java
    +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java
    @@ -19,9 +19,9 @@
     // [START pubsub_update_push_configuration]
     
     import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
     import com.google.pubsub.v1.PushConfig;
     import com.google.pubsub.v1.Subscription;
    +import com.google.pubsub.v1.SubscriptionName;
     import java.io.IOException;
     
     public class UpdatePushConfigurationExample {
    @@ -37,8 +37,7 @@ public static void main(String... args) throws Exception {
       public static void updatePushConfigurationExample(
           String projectId, String subscriptionId, String pushEndpoint) throws IOException {
         try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    -      ProjectSubscriptionName subscriptionName =
    -          ProjectSubscriptionName.of(projectId, subscriptionId);
    +      SubscriptionName subscriptionName = SubscriptionName.of(projectId, subscriptionId);
           PushConfig pushConfig = PushConfig.newBuilder().setPushEndpoint(pushEndpoint).build();
           subscriptionAdminClient.modifyPushConfig(subscriptionName, pushConfig);
           Subscription subscription = subscriptionAdminClient.getSubscription(subscriptionName);
    diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java
    index 1d198044d37c..59bb4377d5f1 100644
    --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java
    +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java
    @@ -22,8 +22,8 @@
     import com.google.api.gax.rpc.NotFoundException;
     import com.google.cloud.pubsub.v1.SubscriptionAdminClient;
     import com.google.cloud.pubsub.v1.TopicAdminClient;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
    -import com.google.pubsub.v1.ProjectTopicName;
    +import com.google.pubsub.v1.SubscriptionName;
    +import com.google.pubsub.v1.TopicName;
     import java.io.ByteArrayOutputStream;
     import java.io.PrintStream;
     import java.util.UUID;
    @@ -46,13 +46,13 @@ public class AdminIT {
       private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix;
       private static final String pushEndpoint = "https://my-test-project.appspot.com/push";
     
    -  private static final ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId);
    -  private static final ProjectSubscriptionName pullSubscriptionName =
    -      ProjectSubscriptionName.of(projectId, pullSubscriptionId);
    -  private static final ProjectSubscriptionName pushSubscriptionName =
    -      ProjectSubscriptionName.of(projectId, pushSubscriptionId);
    -  private static final ProjectSubscriptionName orderedSubscriptionName =
    -      ProjectSubscriptionName.of(projectId, orderedSubscriptionId);
    +  private static final TopicName topicName = TopicName.of(projectId, topicId);
    +  private static final SubscriptionName pullSubscriptionName =
    +      SubscriptionName.of(projectId, pullSubscriptionId);
    +  private static final SubscriptionName pushSubscriptionName =
    +      SubscriptionName.of(projectId, pushSubscriptionId);
    +  private static final SubscriptionName orderedSubscriptionName =
    +      SubscriptionName.of(projectId, orderedSubscriptionId);
     
       private static void requireEnvVar(String varName) {
         assertNotNull(
    diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java
    index fd9e72a33dd6..8a97d25f5907 100644
    --- a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java
    +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java
    @@ -24,10 +24,10 @@
     import com.google.cloud.pubsub.v1.TopicAdminClient;
     import com.google.cloud.testing.junit4.MultipleAttemptsRule;
     import com.google.protobuf.ByteString;
    -import com.google.pubsub.v1.ProjectSubscriptionName;
    -import com.google.pubsub.v1.ProjectTopicName;
     import com.google.pubsub.v1.PubsubMessage;
    +import com.google.pubsub.v1.SubscriptionName;
     import com.google.pubsub.v1.Topic;
    +import com.google.pubsub.v1.TopicName;
     import java.io.ByteArrayOutputStream;
     import java.io.PrintStream;
     import java.util.UUID;
    @@ -48,9 +48,9 @@ public class DeadLetterQueueIT {
       private static String topicId;
       private static String subscriptionId;
       private static String deadLetterTopicId;
    -  private static ProjectTopicName topicName;
    -  private static ProjectTopicName deadLetterTopicName;
    -  private static ProjectSubscriptionName subscriptionName;
    +  private static TopicName topicName;
    +  private static TopicName deadLetterTopicName;
    +  private static SubscriptionName subscriptionName;
     
       private static void requireEnvVar(String varName) {
         assertNotNull(
    @@ -60,7 +60,7 @@ private static void requireEnvVar(String varName) {
     
       // Helper function to publish a message.
       private static void publishSomeMessages() throws Exception {
    -    ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId);
    +    TopicName topicName = TopicName.of(projectId, topicId);
         Publisher publisher = Publisher.newBuilder(topicName).build();
         ByteString data = ByteString.copyFromUtf8("Hello");
         PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build();
    @@ -77,9 +77,9 @@ public static void checkRequirements() {
         topicId = "topic-" + _suffix;
         subscriptionId = "subscription-" + _suffix;
         deadLetterTopicId = "topic-dlq-" + _suffix;
    -    topicName = ProjectTopicName.of(projectId, topicId);
    -    deadLetterTopicName = ProjectTopicName.of(projectId, deadLetterTopicId);
    -    subscriptionName = ProjectSubscriptionName.of(projectId, subscriptionId);
    +    topicName = TopicName.of(projectId, topicId);
    +    deadLetterTopicName = TopicName.of(projectId, deadLetterTopicId);
    +    subscriptionName = SubscriptionName.of(projectId, subscriptionId);
       }
     
       @Before
    
    From 8b81c9e83276f3541c37f12dae9776c8feeca2f0 Mon Sep 17 00:00:00 2001
    From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
    Date: Tue, 30 Nov 2021 12:52:00 -0500
    Subject: [PATCH 0889/2363] chore: keep beta version intact (#1293) (#936)
    
    Source-Link: https://github.com/googleapis/synthtool/commit/6b5cee730c12697d78183545467319b339b0ba4f
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:94580e16bbb4ea1592fa9dd5c5df76716e17858c0dc975582d096c6ae0dc91f5
    
    Co-authored-by: Owl Bot 
    ---
     java-pubsub/.github/.OwlBot.lock.yaml |  2 +-
     java-pubsub/CONTRIBUTING.md           | 61 +++------------------------
     2 files changed, 8 insertions(+), 55 deletions(-)
    
    diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml
    index 5d788be0b547..621c0d66cd40 100644
    --- a/java-pubsub/.github/.OwlBot.lock.yaml
    +++ b/java-pubsub/.github/.OwlBot.lock.yaml
    @@ -1,3 +1,3 @@
     docker:
       image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
    -  digest: sha256:a744afda1956beb7bd6dc8d0b740a7839bbe402e34e2f4ef24589074db53ceb0
    +  digest: sha256:94580e16bbb4ea1592fa9dd5c5df76716e17858c0dc975582d096c6ae0dc91f5
    diff --git a/java-pubsub/CONTRIBUTING.md b/java-pubsub/CONTRIBUTING.md
    index f2dbdee06bc3..b65dd279c946 100644
    --- a/java-pubsub/CONTRIBUTING.md
    +++ b/java-pubsub/CONTRIBUTING.md
    @@ -53,12 +53,12 @@ mvn -Penable-integration-tests clean verify
     
     ## Code Samples
     
    -Code Samples must be bundled in separate Maven modules, and guarded by a
    -Maven profile with the name `enable-samples`.
    +All code samples must be in compliance with the [java sample formatting guide][3].
    +Code Samples must be bundled in separate Maven modules.
     
     The samples must be separate from the primary project for a few reasons:
    -1. Primary projects have a minimum Java version of Java 7 whereas samples have
    -   a minimum Java version of Java 8. Due to this we need the ability to
    +1. Primary projects have a minimum Java version of Java 8 whereas samples can have
    +   Java version of Java 11. Due to this we need the ability to
        selectively exclude samples from a build run.
     2. Many code samples depend on external GCP services and need
        credentials to access the service.
    @@ -68,39 +68,16 @@ The samples must be separate from the primary project for a few reasons:
     ### Building
     
     ```bash
    -mvn -Penable-samples clean verify
    +mvn clean verify
     ```
     
     Some samples require access to GCP services and require a service account:
     
     ```bash
     export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json
    -mvn -Penable-samples clean verify
    +mvn clean verify
     ```
     
    -### Profile Config
    -
    -1. To add samples in a profile to your Maven project, add the following to your
    -`pom.xml`
    -
    -    ```xml
    -    
    -      [...]
    -      
    -        
    -          enable-samples
    -          
    -            sample
    -          
    -        
    -      
    -      [...]
    -    
    -    ```
    -
    -2. [Activate](#profile-activation) the profile.
    -3. Define your samples in a normal Maven project in the `samples/` directory.
    -
     ### Code Formatting
     
     Code in this repo is formatted with
    @@ -110,30 +87,6 @@ To run formatting on your project, you can run:
     mvn com.coveo:fmt-maven-plugin:format
     ```
     
    -### Profile Activation
    -
    -To include code samples when building and testing the project, enable the 
    -`enable-samples` Maven profile.
    -
    -#### Command line
    -
    -To activate the Maven profile on the command line add `-Penable-samples` to your
    -Maven command.
    -
    -#### Maven `settings.xml`
    -
    -To activate the Maven profile in your `~/.m2/settings.xml` add an entry of
    -`enable-samples` following the instructions in [Active Profiles][2].
    -
    -This method has the benefit of applying to all projects you build (and is
    -respected by IntelliJ IDEA) and is recommended if you are going to be
    -contributing samples to several projects.
    -
    -#### IntelliJ IDEA
    -
    -To activate the Maven Profile inside IntelliJ IDEA, follow the instructions in
    -[Activate Maven profiles][3] to activate `enable-samples`.
    -
     [1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account
     [2]: https://maven.apache.org/settings.html#Active_Profiles
    -[3]: https://www.jetbrains.com/help/idea/work-with-maven-profiles.html#activate_maven_profiles
    +[3]: https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md
    \ No newline at end of file
    
    From c97120087a8f57fe4d882c38455a14f48f34edc3 Mon Sep 17 00:00:00 2001
    From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
    Date: Tue, 30 Nov 2021 23:36:12 +0000
    Subject: [PATCH 0890/2363] chore(ruby): Re-enable bigquery-storage-v1
     generation, which also required updating protobuf from 3.15.3 to 3.18.1 for
     codegen (#876)
    
    - [x] Regenerate this pull request now.
    
    PiperOrigin-RevId: 403132955
    
    Source-Link: https://github.com/googleapis/googleapis/commit/d2977af9e9f1fc0c9dc8368352daa032471f3c63
    
    Source-Link: https://github.com/googleapis/googleapis-gen/commit/99bb13c813c0e9c2682d03a8b3c3bcb382a909c9
    Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTliYjEzYzgxM2MwZTljMjY4MmQwM2E4YjNjM2JjYjM4MmE5MDljOSJ9
    ---
     .../clirr-ignored-differences.xml             |   6 -
     .../pubsub/v1/SubscriptionAdminClient.java    | 610 ++++++++++++++-
     java-pubsub/owlbot.py                         | 697 +++++++++++++++++-
     3 files changed, 1300 insertions(+), 13 deletions(-)
    
    diff --git a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml
    index 95c46b0f05fd..8e64f2d62f1a 100644
    --- a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml
    +++ b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml
    @@ -1,12 +1,6 @@
     
     
     
    -  
    -    7005
    -    com/google/cloud/pubsub/v1/SubscriptionAdminClient
    -    *
    -    *
    -  
       
         7002
         com/google/cloud/pubsub/v1/TopicAdminClient$ListTopicSubscriptions*
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    index eb837a289f39..c3090f67d33c 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    @@ -48,6 +48,8 @@
     import com.google.pubsub.v1.ModifyAckDeadlineRequest;
     import com.google.pubsub.v1.ModifyPushConfigRequest;
     import com.google.pubsub.v1.ProjectName;
    +import com.google.pubsub.v1.ProjectSnapshotName;
    +import com.google.pubsub.v1.ProjectSubscriptionName;
     import com.google.pubsub.v1.ProjectTopicName;
     import com.google.pubsub.v1.PullRequest;
     import com.google.pubsub.v1.PullResponse;
    @@ -556,7 +558,7 @@ public final Subscription createSubscription(Subscription request) {
        */
       @Deprecated
       public final Subscription createSubscription(
    -      com.google.pubsub.v1.ProjectSubscriptionName name,
    +      ProjectSubscriptionName name,
           ProjectTopicName topic,
           PushConfig pushConfig,
           int ackDeadlineSeconds) {
    @@ -570,6 +572,145 @@ public final Subscription createSubscription(
         return createSubscription(request);
       }
     
    +  // AUTO-GENERATED DOCUMENTATION AND METHOD.
    +  /**
    +   * Creates a subscription to a given topic. See the [resource name rules]
    +   * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    +   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   Subscription response =
    +   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    +   * }
    +   * }
    + * + * @param name 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"`. + * @param topic 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. + * @param 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. + * @param ackDeadlineSeconds 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 + * <i>outstanding</i>. 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. + * @deprecated Use {@link #createSubscription(SubscriptionName, String, PushConfig, int)} instead. + */ + @Deprecated + public final Subscription createSubscription( + ProjectSubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   Subscription response =
    +   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    +   * }
    +   * }
    + * + * @param name 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"`. + * @param topic 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. + * @param 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. + * @param ackDeadlineSeconds 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 + * <i>outstanding</i>. 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #createSubscription(SubscriptionName, TopicName, PushConfig, int)} + * instead. + */ + @Deprecated + public final Subscription createSubscription( + ProjectSubscriptionName name, + TopicName topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic == null ? null : topic.toString()) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] @@ -686,6 +827,33 @@ public final Subscription getSubscription(GetSubscriptionRequest request) { return getSubscriptionCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration details of a subscription. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
    +   * }
    +   * }
    + * + * @param subscription Required. The name of the subscription to get. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getSubscription(SubscriptionName)} instead. + */ + @Deprecated + public final Subscription getSubscription(ProjectSubscriptionName subscription) { + GetSubscriptionRequest request = + GetSubscriptionRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return getSubscription(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration details of a subscription. @@ -981,6 +1149,36 @@ public final void deleteSubscription(DeleteSubscriptionRequest request) { deleteSubscriptionCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   subscriptionAdminClient.deleteSubscription(subscription);
    +   * }
    +   * }
    + * + * @param subscription Required. The subscription to delete. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #deleteSubscription(SubscriptionName)} instead. + */ + @Deprecated + public final void deleteSubscription(ProjectSubscriptionName subscription) { + DeleteSubscriptionRequest request = + DeleteSubscriptionRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + deleteSubscription(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes an existing subscription. All messages retained in the subscription are immediately @@ -1117,6 +1315,49 @@ public final void modifyAckDeadline(ModifyAckDeadlineRequest request) { modifyAckDeadlineCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   List ackIds = new ArrayList<>();
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
    +   * }
    +   * }
    + * + * @param subscription Required. The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds Required. List of acknowledgment IDs. + * @param ackDeadlineSeconds 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). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #modifyAckDeadline(SubscriptionName, List, int)} instead. + */ + @Deprecated + final void modifyAckDeadline( + ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { + ModifyAckDeadlineRequest request = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .addAllAckIds(ackIds) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + modifyAckDeadline(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Modifies the ack deadline for a specific message. This method is useful to indicate that more @@ -1236,6 +1477,41 @@ public final void acknowledge(AcknowledgeRequest request) { acknowledgeCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   List ackIds = new ArrayList<>();
    +   *   subscriptionAdminClient.acknowledge(subscription, ackIds);
    +   * }
    +   * }
    + * + * @param subscription Required. The subscription whose message is being acknowledged. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #acknowledge(SubscriptionName, List)} instead. + */ + @Deprecated + public final void acknowledge(ProjectSubscriptionName subscription, List ackIds) { + AcknowledgeRequest request = + AcknowledgeRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .addAllAckIds(ackIds) + .build(); + acknowledge(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The @@ -1418,11 +1694,85 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PullResponse pull(PullRequest request) { + return pullCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   int maxMessages = 496131527;
    +   *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);
    +   * }
    +   * }
    + * + * @param subscription Required. The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param maxMessages 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #pull(SubscriptionName, int)} instead. + */ + @Deprecated + public final PullResponse pull(ProjectSubscriptionName subscription, int maxMessages) { + PullRequest request = + PullRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setMaxMessages(maxMessages) + .build(); + return pull(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   boolean returnImmediately = true;
    +   *   int maxMessages = 496131527;
    +   *   PullResponse response =
    +   *       subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages);
    +   * }
    +   * }
    + * + * @param subscription Required. The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param returnImmediately 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. + * @param maxMessages 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #pull(SubscriptionName, boolean, int)} instead. */ - public final PullResponse pull(PullRequest request) { - return pullCallable().call(request); + @Deprecated + final PullResponse pull( + ProjectSubscriptionName subscription, boolean returnImmediately, int maxMessages) { + PullRequest request = + PullRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setReturnImmediately(returnImmediately) + .setMaxMessages(maxMessages) + .build(); + return pull(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -1589,6 +1939,44 @@ public final void modifyPushConfig(ModifyPushConfigRequest request) { modifyPushConfigCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies the `PushConfig` for a specified subscription. + * + *

    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`. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    +   *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
    +   * }
    +   * }
    + * + * @param subscription Required. The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #modifyPushConfig(SubscriptionName, PushConfig)} instead. + */ + @Deprecated + public final void modifyPushConfig(ProjectSubscriptionName subscription, PushConfig pushConfig) { + ModifyPushConfigRequest request = + ModifyPushConfigRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setPushConfig(pushConfig) + .build(); + modifyPushConfig(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Modifies the `PushConfig` for a specified subscription. @@ -1697,6 +2085,36 @@ public final Snapshot getSnapshot(GetSnapshotRequest request) { return getSnapshotCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    +   * }
    +   * }
    + * + * @param snapshot Required. The name of the snapshot to get. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #getSnapshot(SnapshotName)} instead. + */ + @Deprecated + public final Snapshot getSnapshot(ProjectSnapshotName snapshot) { + GetSnapshotRequest request = + GetSnapshotRequest.newBuilder() + .setSnapshot(snapshot == null ? null : snapshot.toString()) + .build(); + return getSnapshot(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the configuration details of a snapshot. Snapshots are used in <a @@ -2103,6 +2521,157 @@ public final Snapshot createSnapshot(CreateSnapshotRequest request) { return createSnapshotCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    +   * }
    +   * }
    + * + * @param name 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 <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription 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}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #createSnapshot(SnapshotName, SubscriptionName)} instead. + */ + @Deprecated + public final Snapshot createSnapshot( + ProjectSnapshotName name, ProjectSubscriptionName subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return createSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    +   * }
    +   * }
    + * + * @param name 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 <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription 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}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #createSnapshot(String, SubscriptionName)} instead. + */ + @Deprecated + public final Snapshot createSnapshot(String name, ProjectSubscriptionName subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name) + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return createSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    +   * }
    +   * }
    + * + * @param name 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 <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription 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}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #createSnapshot(SnapshotName, String)} instead. + */ + @Deprecated + public final Snapshot createSnapshot(ProjectSnapshotName name, String subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setSubscription(subscription) + .build(); + return createSnapshot(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a snapshot from the requested subscription. Snapshots are used in @@ -2282,6 +2851,39 @@ public final void deleteSnapshot(DeleteSnapshotRequest request) { deleteSnapshotCallable().call(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes an existing snapshot. Snapshots are used in [Seek] + * (https://cloud.google.com/pubsub/docs/replay-overview) 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. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   subscriptionAdminClient.deleteSnapshot(snapshot);
    +   * }
    +   * }
    + * + * @param snapshot Required. The name of the snapshot to delete. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #deleteSnapshot(SnapshotName)} instead. + */ + @Deprecated + public final void deleteSnapshot(ProjectSnapshotName snapshot) { + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder() + .setSnapshot(snapshot == null ? null : snapshot.toString()) + .build(); + deleteSnapshot(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Removes an existing snapshot. Snapshots are used in [Seek] diff --git a/java-pubsub/owlbot.py b/java-pubsub/owlbot.py index 42af76ac6bf6..0d280ad717c9 100644 --- a/java-pubsub/owlbot.py +++ b/java-pubsub/owlbot.py @@ -402,11 +402,11 @@ *

    If the subscriber never acknowledges the message, the Pub/Sub system will eventually * redeliver the message. * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #createSubscription(ProjectSubscriptionName, TopicName, PushConfig, int)} instead. + * @deprecated Use {@link #createSubscription(SubscriptionName, TopicName, PushConfig, int)} instead. */ @Deprecated public final Subscription createSubscription( - com.google.pubsub.v1.ProjectSubscriptionName name, + ProjectSubscriptionName name, ProjectTopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) { @@ -419,11 +419,648 @@ .build(); return createSubscription(request); } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    +   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   Subscription response =
    +   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    +   * }
    +   * }
    + * + * @param name 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"`. + * @param topic 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. + * @param 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. + * @param ackDeadlineSeconds 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 + * <i>outstanding</i>. 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. + * @deprecated Use {@link #createSubscription(SubscriptionName, String, PushConfig, int)} instead. + */ + @Deprecated + public final Subscription createSubscription( + ProjectSubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a subscription to a given topic. See the [resource name rules] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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] + * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in + * the returned Subscription object. Note that for REST API requests, you must specify a name in + * the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    +   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   Subscription response =
    +   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
    +   * }
    +   * }
    + * + * @param name 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"`. + * @param topic 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. + * @param 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. + * @param ackDeadlineSeconds 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 + * <i>outstanding</i>. 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #createSubscription(SubscriptionName, TopicName, PushConfig, int)} instead. + */ + @Deprecated + public final Subscription createSubscription( + ProjectSubscriptionName name, + TopicName topic, + PushConfig pushConfig, + int ackDeadlineSeconds) { + Subscription request = + Subscription.newBuilder() + .setName(name == null ? null : name.toString()) + .setTopic(topic == null ? null : topic.toString()) + .setPushConfig(pushConfig) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + return createSubscription(request); + } +""" + +GET_SUBSCRIPTION_PREVIOUS = r'(\s+public final Subscription getSubscription\(GetSubscriptionRequest request\) {\n\s+return.*\n\s+})' + +GET_SUBSCRIPTION = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration details of a subscription. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
    +   * }
    +   * }
    + * + * @param subscription Required. The name of the subscription to get. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #getSubscription(SubscriptionName)} instead. + */ + @Deprecated + public final Subscription getSubscription(ProjectSubscriptionName subscription) { + GetSubscriptionRequest request = + GetSubscriptionRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return getSubscription(request); + } +""" + +DELETE_SUBSCRIPTION_PREVIOUS = r'(\s+public final void deleteSubscription\(DeleteSubscriptionRequest request\) {\n\s+deleteSubscription.*\n\s+})' + +DELETE_SUBSCRIPTION = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   subscriptionAdminClient.deleteSubscription(subscription);
    +   * }
    +   * }
    + * + * @param subscription Required. The subscription to delete. Format is + * `projects/{project}/subscriptions/{sub}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #deleteSubscription(SubscriptionName)} instead. + */ + @Deprecated + public final void deleteSubscription(ProjectSubscriptionName subscription) { + DeleteSubscriptionRequest request = + DeleteSubscriptionRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + deleteSubscription(request); + } +""" + +MODIFY_ACK_DEADLINE_PREVIOUS = r'(\s+public final void modifyAckDeadline\(ModifyAckDeadlineRequest request\) {\n\s+modifyAckDeadline.*\n\s+})' + +MODIFY_ACK_DEADLINE = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   List ackIds = new ArrayList<>();
    +   *   int ackDeadlineSeconds = 2135351438;
    +   *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
    +   * }
    +   * }
    + * + * @param subscription Required. The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds Required. List of acknowledgment IDs. + * @param ackDeadlineSeconds 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). + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #modifyAckDeadline(SubscriptionName, List, int)} instead. + */ + @Deprecated + final void modifyAckDeadline( + ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { + ModifyAckDeadlineRequest request = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .addAllAckIds(ackIds) + .setAckDeadlineSeconds(ackDeadlineSeconds) + .build(); + modifyAckDeadline(request); + } +""" + +ACKNOWLEDGE_PREVIOUS = r'(\s+public final void acknowledge\(AcknowledgeRequest request\) {\n\s+acknowledge.*\n\s+})' + +ACKNOWLEDGE = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   List ackIds = new ArrayList<>();
    +   *   subscriptionAdminClient.acknowledge(subscription, ackIds);
    +   * }
    +   * }
    + * + * @param subscription Required. The subscription whose message is being acknowledged. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param ackIds 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #acknowledge(SubscriptionName, List)} instead. + */ + @Deprecated + public final void acknowledge(ProjectSubscriptionName subscription, List ackIds) { + AcknowledgeRequest request = + AcknowledgeRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .addAllAckIds(ackIds) + .build(); + acknowledge(request); + } +""" + +PULL_PREVIOUS = r'(\s+public final PullResponse pull\(PullRequest request\) {\n\s+return.*\n\s+})' + +PULL = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   int maxMessages = 496131527;
    +   *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);
    +   * }
    +   * }
    + * + * @param subscription Required. The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param maxMessages 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #pull(SubscriptionName, int)} instead. + */ + @Deprecated + public final PullResponse pull(ProjectSubscriptionName subscription, int maxMessages) { + PullRequest request = + PullRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setMaxMessages(maxMessages) + .build(); + return pull(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many + * concurrent pull requests pending for the given subscription. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   boolean returnImmediately = true;
    +   *   int maxMessages = 496131527;
    +   *   PullResponse response =
    +   *       subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages);
    +   * }
    +   * }
    + * + * @param subscription Required. The subscription from which messages should be pulled. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param returnImmediately 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. + * @param maxMessages 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #pull(SubscriptionName, boolean, int)} instead. + */ + @Deprecated + final PullResponse pull( + ProjectSubscriptionName subscription, boolean returnImmediately, int maxMessages) { + PullRequest request = + PullRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setReturnImmediately(returnImmediately) + .setMaxMessages(maxMessages) + .build(); + return pull(request); + } +""" + +MODIFY_PUSH_CONFIG_PREVIOUS = r'(\s+public final void modifyPushConfig\(ModifyPushConfigRequest request\) {\n\s+modifyPushConfig.*\n\s+})' + +MODIFY_PUSH_CONFIG = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Modifies the `PushConfig` for a specified subscription. + * + *

    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`. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   PushConfig pushConfig = PushConfig.newBuilder().build();
    +   *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
    +   * }
    +   * }
    + * + * @param subscription Required. The name of the subscription. Format is + * `projects/{project}/subscriptions/{sub}`. + * @param 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use {@link #modifyPushConfig(SubscriptionName, PushConfig)} instead. + */ + @Deprecated + public final void modifyPushConfig(ProjectSubscriptionName subscription, PushConfig pushConfig) { + ModifyPushConfigRequest request = + ModifyPushConfigRequest.newBuilder() + .setSubscription(subscription == null ? null : subscription.toString()) + .setPushConfig(pushConfig) + .build(); + modifyPushConfig(request); + } +""" + +CREATE_SNAPSHOT_PREVIOUS = r'(\s+public final Snapshot createSnapshot\(CreateSnapshotRequest request\) {\n\s+return.*\n\s+})' + +CREATE_SNAPSHOT = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    +   * }
    +   * }
    + * + * @param name 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 <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription 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}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #createSnapshot(SnapshotName, SubscriptionName)} instead. + */ + @Deprecated + public final Snapshot createSnapshot( + ProjectSnapshotName name, ProjectSubscriptionName subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return createSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
    +   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    +   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    +   * }
    +   * }
    + * + * @param name 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 <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription 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}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #createSnapshot(String, SubscriptionName)} instead. + */ + @Deprecated + public final Snapshot createSnapshot(String name, ProjectSubscriptionName subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name) + .setSubscription(subscription == null ? null : subscription.toString()) + .build(); + return createSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a snapshot from the requested subscription. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * generated name is populated in the returned Snapshot object. Note that for REST API requests, + * you must specify a name in the request. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    +   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
    +   * }
    +   * }
    + * + * @param name 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 <a + * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name + * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * @param subscription 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}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #createSnapshot(SnapshotName, String)} instead. + */ + @Deprecated + public final Snapshot createSnapshot(ProjectSnapshotName name, String subscription) { + CreateSnapshotRequest request = + CreateSnapshotRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setSubscription(subscription) + .build(); + return createSnapshot(request); + } +""" + +DELETE_SNAPSHOT_PREVIOUS = r'(\s+public final void deleteSnapshot\(DeleteSnapshotRequest request\) {\n\s+deleteSnapshot.*\n\s+})' + +DELETE_SNAPSHOT = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes an existing snapshot. Snapshots are used in [Seek] + * (https://cloud.google.com/pubsub/docs/replay-overview) 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. When the snapshot is deleted, all + * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new + * one may be created with the same name, but the new one has no association with the old snapshot + * or its subscription, unless the same subscription is specified. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   subscriptionAdminClient.deleteSnapshot(snapshot);
    +   * }
    +   * }
    + * + * @param snapshot Required. The name of the snapshot to delete. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #deleteSnapshot(SnapshotName)} instead. + */ + @Deprecated + public final void deleteSnapshot(ProjectSnapshotName snapshot) { + DeleteSnapshotRequest request = + DeleteSnapshotRequest.newBuilder() + .setSnapshot(snapshot == null ? null : snapshot.toString()) + .build(); + deleteSnapshot(request); + } +""" + +GET_SNAPSHOT_PREVIOUS = r'(\s+public final Snapshot getSnapshot\(GetSnapshotRequest request\) {\n\s+return.*\n\s+})' + +GET_SNAPSHOT = """ + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration details of a snapshot. Snapshots are used in <a + * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * + *

    Sample code: + * + *

    {@code
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
    +   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    +   * }
    +   * }
    + * + * @param snapshot Required. The name of the snapshot to get. Format is + * `projects/{project}/snapshots/{snap}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated Use Use {@link #getSnapshot(SnapshotName)} instead. + */ + @Deprecated + public final Snapshot getSnapshot(ProjectSnapshotName snapshot) { + GetSnapshotRequest request = + GetSnapshotRequest.newBuilder() + .setSnapshot(snapshot == null ? null : snapshot.toString()) + .build(); + return getSnapshot(request); + } """ PACKAGE = 'package com.google.cloud.pubsub.v1;' IMPORT_PROJECT_TOPIC_NAME = 'import com.google.pubsub.v1.ProjectTopicName;' +IMPORT_PROJECT_SUBSCRIPTION_NAME = 'import com.google.pubsub.v1.ProjectSubscriptionName;' +IMPORT_PROJECT_SNAPSHOT_NAME = 'import com.google.pubsub.v1.ProjectSnapshotName;' for library in s.get_staging_dirs(): # put any special-case replacements here @@ -504,10 +1141,64 @@ "\g<1>\n\n" + CREATE_SUBSCRIPTION ) + s.replace( + '**/SubscriptionAdminClient.java', + DELETE_SUBSCRIPTION_PREVIOUS, + "\g<1>\n\n" + DELETE_SUBSCRIPTION + ) + + s.replace( + '**/SubscriptionAdminClient.java', + GET_SUBSCRIPTION_PREVIOUS, + "\g<1>\n\n" + GET_SUBSCRIPTION + ) + + s.replace( + '**/SubscriptionAdminClient.java', + MODIFY_ACK_DEADLINE_PREVIOUS, + "\g<1>\n\n" + MODIFY_ACK_DEADLINE + ) + + s.replace( + '**/SubscriptionAdminClient.java', + ACKNOWLEDGE_PREVIOUS, + "\g<1>\n\n" + ACKNOWLEDGE + ) + + s.replace( + '**/SubscriptionAdminClient.java', + PULL_PREVIOUS, + "\g<1>\n\n" + PULL + ) + + s.replace( + '**/SubscriptionAdminClient.java', + MODIFY_PUSH_CONFIG_PREVIOUS, + "\g<1>\n\n" + MODIFY_PUSH_CONFIG + ) + + s.replace( + '**/SubscriptionAdminClient.java', + CREATE_SNAPSHOT_PREVIOUS, + "\g<1>\n\n" + CREATE_SNAPSHOT + ) + + s.replace( + '**/SubscriptionAdminClient.java', + GET_SNAPSHOT_PREVIOUS, + "\g<1>\n\n" + GET_SNAPSHOT + ) + + s.replace( + '**/SubscriptionAdminClient.java', + DELETE_SNAPSHOT_PREVIOUS, + "\g<1>\n\n" + DELETE_SNAPSHOT + ) + s.replace( '**/*AdminClient.java', PACKAGE, - PACKAGE + '\n\n' + IMPORT_PROJECT_TOPIC_NAME + '\n' + PACKAGE + '\n\n' + IMPORT_PROJECT_TOPIC_NAME + '\n' + IMPORT_PROJECT_SUBSCRIPTION_NAME + '\n' + IMPORT_PROJECT_SNAPSHOT_NAME + '\n' ) s.move(library) From aa7cbf0cb81e4da41fa856805f5757be3d01ca0e Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Wed, 1 Dec 2021 14:36:44 -0500 Subject: [PATCH 0891/2363] samples: use LinkedHashMap for ordered publish (#938) * samples: use LinkedHashMap for ordered publish * also update resume publish sample --- .../src/main/java/pubsub/PublishWithOrderingKeys.java | 4 ++-- .../src/main/java/pubsub/ResumePublishWithOrderingKeys.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java index d199e7ff8392..e1509db5a5fd 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java @@ -27,7 +27,7 @@ import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.TopicName; import java.io.IOException; -import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; import java.util.concurrent.TimeUnit; @@ -54,7 +54,7 @@ public static void publishWithOrderingKeysExample(String projectId, String topic .build(); try { - Map messages = new HashMap(); + Map messages = new LinkedHashMap(); messages.put("message1", "key1"); messages.put("message2", "key2"); messages.put("message3", "key1"); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java b/java-pubsub/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java index 06489637d3e8..ce5e9175432e 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java @@ -27,7 +27,7 @@ import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.TopicName; import java.io.IOException; -import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; import java.util.concurrent.TimeUnit; @@ -52,7 +52,7 @@ public static void resumePublishWithOrderingKeysExample(String projectId, String .build(); try { - Map messages = new HashMap(); + Map messages = new LinkedHashMap(); messages.put("message1", "key1"); messages.put("message2", "key2"); messages.put("message3", "key1"); From 75418fa1a256313a0cf311d0a7aa66599a68ade9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 3 Dec 2021 17:06:29 +0100 Subject: [PATCH 0892/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 (#942) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.5.0` -> `2.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/compatibility-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/confidence-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.5.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​251-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare250v251-2021-12-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.5.0...v2.5.1)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3205a02aab9c..b225e6d120fa 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.5.0 + 2.5.1 pom import From 9eb0ce4a57cd121a11cc2de67d6f4c2e92de9edf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 3 Dec 2021 21:16:24 +0100 Subject: [PATCH 0893/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.3.2 (#941) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.1` -> `2.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/compatibility-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.2/confidence-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.3.2`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​232-httpswwwgithubcomgoogleapisjava-corecomparev231v232-2021-12-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.1...v2.3.2)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index dd12c7f485de..a0b977b9eb3e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.3.1 + 2.3.2 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e85f5a995303..06653bfecffc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.3.1 + 2.3.2 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e39780f6ff8c..04f4002bf09a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.3.1 + 2.3.2 tests From 97193a923d727dcc3f4794d935ce992d2c8e8a75 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 5 Dec 2021 06:30:23 +0100 Subject: [PATCH 0894/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.3.3 (#943) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.2` -> `2.3.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/compatibility-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.3/confidence-slim/2.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.3.3`](https://togithub.com/googleapis/java-core/blob/master/CHANGELOG.md#​233-httpswwwgithubcomgoogleapisjava-corecomparev232v233-2021-12-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.2...v2.3.3)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a0b977b9eb3e..90237c2568d4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.3.2 + 2.3.3 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 06653bfecffc..3c1cfeabf04d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.3.2 + 2.3.3 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 04f4002bf09a..e93ed15c9766 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.3.2 + 2.3.3 tests From 2880e585e3e079b1a9311159aa4e01d54665ffb3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Dec 2021 16:40:13 +0000 Subject: [PATCH 0895/2363] chore: release 1.115.0 (#889) :robot: I have created a release \*beep\* \*boop\* --- ## [1.115.0](https://www.github.com/googleapis/java-pubsub/compare/v1.114.7...v1.115.0) (2021-12-05) ### Features * creating java backport ([#895](https://www.github.com/googleapis/java-pubsub/issues/895)) ([83a973a](https://www.github.com/googleapis/java-pubsub/commit/83a973af3c821f008fd707e00abf5a57e3d03e44)) ### Bug Fixes * **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-pubsub/issues/1266)) ([#888](https://www.github.com/googleapis/java-pubsub/issues/888)) ([e2c64ba](https://www.github.com/googleapis/java-pubsub/commit/e2c64baa4c5377f102ddf67122ccb5b660012022)) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.3.0 ([#913](https://www.github.com/googleapis/java-pubsub/issues/913)) ([827d5b2](https://www.github.com/googleapis/java-pubsub/commit/827d5b22decf5b0d5cdf196dde9c124029e554ed)) * update dependency com.google.cloud:google-cloud-core to v2.3.1 ([#927](https://www.github.com/googleapis/java-pubsub/issues/927)) ([b446be3](https://www.github.com/googleapis/java-pubsub/commit/b446be3049f737d78117f28253a7ab96924fca60)) * update dependency com.google.cloud:google-cloud-core to v2.3.2 ([#941](https://www.github.com/googleapis/java-pubsub/issues/941)) ([9eb0ce4](https://www.github.com/googleapis/java-pubsub/commit/9eb0ce4a57cd121a11cc2de67d6f4c2e92de9edf)) * update dependency com.google.cloud:google-cloud-core to v2.3.3 ([#943](https://www.github.com/googleapis/java-pubsub/issues/943)) ([97193a9](https://www.github.com/googleapis/java-pubsub/commit/97193a923d727dcc3f4794d935ce992d2c8e8a75)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#919](https://www.github.com/googleapis/java-pubsub/issues/919)) ([1a70774](https://www.github.com/googleapis/java-pubsub/commit/1a70774deba7faf27311aa0579d4f842189c3633)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#942](https://www.github.com/googleapis/java-pubsub/issues/942)) ([75418fa](https://www.github.com/googleapis/java-pubsub/commit/75418fa1a256313a0cf311d0a7aa66599a68ade9)) * update dependency com.google.errorprone:error_prone_annotations to v2.10.0 ([#901](https://www.github.com/googleapis/java-pubsub/issues/901)) ([15f645c](https://www.github.com/googleapis/java-pubsub/commit/15f645ce908e48f98f3f43c36627456a39b76201)) * update dependency com.google.protobuf:protobuf-java-util to v3.19.1 ([#885](https://www.github.com/googleapis/java-pubsub/issues/885)) ([91dda12](https://www.github.com/googleapis/java-pubsub/commit/91dda123193fa4435ce2aa03a0f837a19580368e)) * update dependency org.apache.avro:avro to v1.11.0 ([#894](https://www.github.com/googleapis/java-pubsub/issues/894)) ([8b9b82e](https://www.github.com/googleapis/java-pubsub/commit/8b9b82e247755a978118f71721091435ec70b4ac)) * update gson to 2.8.9 ([5b6c33c](https://www.github.com/googleapis/java-pubsub/commit/5b6c33c1a336f5fd58c0cd015fda7347701571b4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 26 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 +++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 8 files changed, 44 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 844c1510830d..56f92b58b51c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## [1.115.0](https://www.github.com/googleapis/java-pubsub/compare/v1.114.7...v1.115.0) (2021-12-05) + + +### Features + +* creating java backport ([#895](https://www.github.com/googleapis/java-pubsub/issues/895)) ([51b01e2](https://www.github.com/googleapis/java-pubsub/commit/51b01e254a4be87a8a779fbc5da697c70920d82f)) + + +### Bug Fixes + +* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-pubsub/issues/1266)) ([#888](https://www.github.com/googleapis/java-pubsub/issues/888)) ([ed3ae2f](https://www.github.com/googleapis/java-pubsub/commit/ed3ae2fb0a0c72073f6bae5dc4111424740fd883)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.3.0 ([#913](https://www.github.com/googleapis/java-pubsub/issues/913)) ([adfd456](https://www.github.com/googleapis/java-pubsub/commit/adfd4562a8041d71af65cd98cf1d17b881e35dd3)) +* update dependency com.google.cloud:google-cloud-core to v2.3.1 ([#927](https://www.github.com/googleapis/java-pubsub/issues/927)) ([9fcc996](https://www.github.com/googleapis/java-pubsub/commit/9fcc9965284f6a57dc79f31eb96a2e430cef72e4)) +* update dependency com.google.cloud:google-cloud-core to v2.3.2 ([#941](https://www.github.com/googleapis/java-pubsub/issues/941)) ([41f881b](https://www.github.com/googleapis/java-pubsub/commit/41f881b2d075f9ee730f5eaf24885146d9fadccf)) +* update dependency com.google.cloud:google-cloud-core to v2.3.3 ([#943](https://www.github.com/googleapis/java-pubsub/issues/943)) ([df3a5fe](https://www.github.com/googleapis/java-pubsub/commit/df3a5fecd4d87ae79cba312109242146b84f9e55)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#919](https://www.github.com/googleapis/java-pubsub/issues/919)) ([4adf335](https://www.github.com/googleapis/java-pubsub/commit/4adf335b78ce6b13af22c3c3a64c4ea1a24f05cd)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#942](https://www.github.com/googleapis/java-pubsub/issues/942)) ([44cdcf5](https://www.github.com/googleapis/java-pubsub/commit/44cdcf5d3f1815654b9b255c1096e290a7db9030)) +* update dependency com.google.errorprone:error_prone_annotations to v2.10.0 ([#901](https://www.github.com/googleapis/java-pubsub/issues/901)) ([8733144](https://www.github.com/googleapis/java-pubsub/commit/8733144854aaebfec0cd5f03ab14d820c6d22c0e)) +* update dependency com.google.protobuf:protobuf-java-util to v3.19.1 ([#885](https://www.github.com/googleapis/java-pubsub/issues/885)) ([d0a02a9](https://www.github.com/googleapis/java-pubsub/commit/d0a02a9f320b254a3e4ef60bfff47a6bb3a2427f)) +* update dependency org.apache.avro:avro to v1.11.0 ([#894](https://www.github.com/googleapis/java-pubsub/issues/894)) ([b7ba1a8](https://www.github.com/googleapis/java-pubsub/commit/b7ba1a871c4c26f50d87b41c2627b6e6aef63b3c)) +* update gson to 2.8.9 ([ec97e93](https://www.github.com/googleapis/java-pubsub/commit/ec97e93ae53666d5c5cad71821f12cefa4fbaf2e)) + ### [1.114.7](https://www.github.com/googleapis/java-pubsub/compare/v1.114.6...v1.114.7) (2021-10-19) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2519a0eb6e60..ced5ea112676 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.114.8-SNAPSHOT + 1.115.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.114.8-SNAPSHOT + 1.115.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.8-SNAPSHOT + 1.97.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.8-SNAPSHOT + 1.97.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a0b0644fff5d..7b79ff876dc9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.114.8-SNAPSHOT + 1.115.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.114.8-SNAPSHOT + 1.115.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e61f7eb211f9..068478a897e9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.8-SNAPSHOT + 1.97.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.8-SNAPSHOT + 1.115.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b225e6d120fa..eb90896c051c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.114.8-SNAPSHOT + 1.115.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.8-SNAPSHOT + 1.97.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.96.8-SNAPSHOT + 1.97.0 com.google.cloud google-cloud-pubsub - 1.114.8-SNAPSHOT + 1.115.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0a92c26a4f10..3d94f06a8db4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.96.8-SNAPSHOT + 1.97.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.114.8-SNAPSHOT + 1.115.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3c1cfeabf04d..d6ba900f6330 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.114.8-SNAPSHOT + 1.115.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index fab6b0810086..75deb1c0a67f 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.114.7:1.114.8-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.96.7:1.96.8-SNAPSHOT -proto-google-cloud-pubsub-v1:1.96.7:1.96.8-SNAPSHOT +google-cloud-pubsub:1.115.0:1.115.0 +grpc-google-cloud-pubsub-v1:1.97.0:1.97.0 +proto-google-cloud-pubsub-v1:1.97.0:1.97.0 From bc395e25f9374b22c4dd1693bfb66f265872aec1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 00:16:29 +0100 Subject: [PATCH 0896/2363] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.0 (#940) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    GoogleCloudPlatform/java-repo-tools ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 90237c2568d4..22f470a5001e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index a5f7a7be57b2..81c4384f68f6 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -33,7 +33,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d6ba900f6330..0dbd4e1ff361 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e93ed15c9766..da6dac3ada9b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 From 0502a6e964495126dd3072d4e06cf72814d17138 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 19:23:24 +0100 Subject: [PATCH 0897/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.115.0 (#946) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.115.0 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e56239dcd652..401473386381 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.114.7 + 1.115.0 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.114.7' +implementation 'com.google.cloud:google-cloud-pubsub:1.115.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.114.7" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.0" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 22f470a5001e..4ee4658af867 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.114.7 + 1.115.0 From 95a7bba3c140f75aeb94fd93b5bb9213b1a031f9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 9 Dec 2021 00:06:24 +0100 Subject: [PATCH 0898/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.0 (#948) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.0.0` -> `24.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/compatibility-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/confidence-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 401473386381..d110d6a93577 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.0.0 + 24.1.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.0.0') +implementation platform('com.google.cloud:libraries-bom:24.1.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index da6dac3ada9b..9f38948eae9c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 24.0.0 + 24.1.0 pom import From a52855768fe03556ec2b3ee053e31be6ceb3fff0 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Tue, 21 Dec 2021 14:40:12 -0500 Subject: [PATCH 0899/2363] chore: add enumeration type of library (#951) --- java-pubsub/.repo-metadata.json | 1 + 1 file changed, 1 insertion(+) diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 412b27083b7d..119950039bd1 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -13,5 +13,6 @@ "distribution_name": "com.google.cloud:google-cloud-pubsub", "codeowner_team": "@googleapis/api-pubsub", "api_id": "pubsub.googleapis.com", + "library_type": "GAPIC_COMBO", "requires_billing": true } \ No newline at end of file From 99b22afbc0dace135b6efade429cf09551d79427 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Dec 2021 21:46:31 +0100 Subject: [PATCH 0900/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.1 (#952) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.0` -> `24.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/compatibility-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/confidence-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d110d6a93577..592e4b734353 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.1.0') +implementation platform('com.google.cloud:libraries-bom:24.1.1') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9f38948eae9c..7b8a8b92a647 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import From 9023b6662a6b5d686cb2aa8aaf5927234d547be1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Jan 2022 20:10:23 +0100 Subject: [PATCH 0901/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.4 (#953) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.2` -> `1.2.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/compatibility-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/confidence-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.2.4`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​124-httpswwwgithubcomgoogleapisjava-shared-configcomparev123v124-2022-01-06) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.3...v1.2.4) ### [`v1.2.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​123-httpswwwgithubcomgoogleapisjava-shared-configcomparev122v123-2022-01-04) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 592e4b734353..a698df86da4e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.1.1') +implementation platform('com.google.cloud:libraries-bom:24.1.2') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ced5ea112676..de0d8bb74397 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.4 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index eb90896c051c..4df5279f91ff 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.4 From f32c427813a05ee9bd342650d27ef9dd4ea31323 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:30:10 +0100 Subject: [PATCH 0902/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.3.4 (#955) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.3` -> `2.3.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/compatibility-slim/2.3.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.3.4/confidence-slim/2.3.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.3.4`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​234-httpswwwgithubcomgoogleapisjava-corecomparev233v234-2022-01-06) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.3...v2.3.4)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4ee4658af867..aba7c91d2d8c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.3.3 + 2.3.4 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0dbd4e1ff361..1f3f016300e9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.3.3 + 2.3.4 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 7b8a8b92a647..5b67c7fe7660 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.3.3 + 2.3.4 tests From 499a3e9c8afa7d3c8bf60fc8f527f4b949f7c9d8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:30:20 +0100 Subject: [PATCH 0903/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 (#957) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.5.1` -> `2.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/compatibility-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/confidence-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.6.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​260-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare251v260-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.5.1...v2.6.0) ##### Bug Fixes - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-shared-dependencies/issues/1299)) ([#​546](https://www.togithub.com/googleapis/java-shared-dependencies/issues/546)) ([d8bb8d9](https://www.github.com/googleapis/java-shared-dependencies/commit/d8bb8d9d8e3b8c582f768cd3164e8580ec334511)) - **java:** run Maven in plain console-friendly mode ([#​1301](https://www.togithub.com/googleapis/java-shared-dependencies/issues/1301)) ([#​557](https://www.togithub.com/googleapis/java-shared-dependencies/issues/557)) ([6b57d08](https://www.github.com/googleapis/java-shared-dependencies/commit/6b57d08816ec6c1dfb637cae022624e896930ad8)) ##### Dependencies - gRPC upgrade to 1.43.2 ([#​567](https://www.togithub.com/googleapis/java-shared-dependencies/issues/567)) ([c946655](https://www.github.com/googleapis/java-shared-dependencies/commit/c94665571f26d24fbbb3f89ef5a3db99663bfdba)) - update dependency com.google.api-client:google-api-client-bom to v1.33.0 ([#​563](https://www.togithub.com/googleapis/java-shared-dependencies/issues/563)) ([0aedddb](https://www.github.com/googleapis/java-shared-dependencies/commit/0aedddb9a535753767d56f5910f355c7a1c8509c)) - update dependency com.google.api:api-common to v2.1.2 ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update dependency com.google.http-client:google-http-client-bom to v1.41.0 ([#​562](https://www.togithub.com/googleapis/java-shared-dependencies/issues/562)) ([6da0735](https://www.github.com/googleapis/java-shared-dependencies/commit/6da0735d4db9df998d11c549488a024b800bed65)) - update dependency io.grpc:grpc-bom to v1.43.1 ([#​553](https://www.togithub.com/googleapis/java-shared-dependencies/issues/553)) ([b787c8f](https://www.github.com/googleapis/java-shared-dependencies/commit/b787c8f2032b7ffc9797158c3ff214b7813f34b7)) - update dependency org.apache.httpcomponents:httpcore to v4.4.15 ([#​550](https://www.togithub.com/googleapis/java-shared-dependencies/issues/550)) ([e2d3dba](https://www.github.com/googleapis/java-shared-dependencies/commit/e2d3dbad6dd54c117abb5ab1b6137cfee4e5a32b)) - update dependency org.checkerframework:checker-qual to v3.20.0 ([#​549](https://www.togithub.com/googleapis/java-shared-dependencies/issues/549)) ([586df59](https://www.github.com/googleapis/java-shared-dependencies/commit/586df5949d4ddca11d0705d696882c32d8436c31)) - update gax.version to v2.8.0 ([#​564](https://www.togithub.com/googleapis/java-shared-dependencies/issues/564)) ([9ad5d4f](https://www.github.com/googleapis/java-shared-dependencies/commit/9ad5d4f5385753a0c5739ef400f5d346e3342b84)) - update gax.version to v2.8.1 ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update google.common-protos.version to v2.7.1 ([#​561](https://www.togithub.com/googleapis/java-shared-dependencies/issues/561)) ([9aa860d](https://www.github.com/googleapis/java-shared-dependencies/commit/9aa860d92f745f1d4382eb16439bf17ac6ca8ae9)) - update google.core.version to v2.3.5 ([#​565](https://www.togithub.com/googleapis/java-shared-dependencies/issues/565)) ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update iam.version to v1.2.0 ([#​547](https://www.togithub.com/googleapis/java-shared-dependencies/issues/547)) ([3232c82](https://www.github.com/googleapis/java-shared-dependencies/commit/3232c828b628cb604a200b3e569e56e758e5e11d)) - upgrading protobuf to 3.19.2 ([#​560](https://www.togithub.com/googleapis/java-shared-dependencies/issues/560)) ([7ef3325](https://www.github.com/googleapis/java-shared-dependencies/commit/7ef33250f5473348d3546210b7a534360f476101)) ##### [2.5.1](https://www.github.com/googleapis/java-shared-dependencies/compare/2.5.0...v2.5.1) (2021-12-03) ##### Dependencies - update dependency com.google.api:api-common to v2.1.1 ([#​533](https://www.togithub.com/googleapis/java-shared-dependencies/issues/533)) ([4e23adb](https://www.github.com/googleapis/java-shared-dependencies/commit/4e23adb666dfaa18ae8bf869aca030153de16d62)) - update gax.version to v2.7.1 ([#​544](https://www.togithub.com/googleapis/java-shared-dependencies/issues/544)) ([5a0c480](https://www.github.com/googleapis/java-shared-dependencies/commit/5a0c480671fa834e600edc6ac6fe77967d1b79b3)) - update google.common-protos.version to v2.7.0 ([#​542](https://www.togithub.com/googleapis/java-shared-dependencies/issues/542)) ([af97eb5](https://www.github.com/googleapis/java-shared-dependencies/commit/af97eb5d9cff397080fdb3d4a6dbf7c2692e0358)) - update google.core.version to v2.3.3 ([#​534](https://www.togithub.com/googleapis/java-shared-dependencies/issues/534)) ([885acef](https://www.github.com/googleapis/java-shared-dependencies/commit/885acefe4ff5313eb53dc43b4825ca597b97dcfd))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4df5279f91ff..357478902567 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.5.1 + 2.6.0 pom import From 372ec89a89cee196e8307f938371efc1127eabc9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:30:24 +0100 Subject: [PATCH 0904/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.2 (#956) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.1` -> `24.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/compatibility-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/confidence-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a698df86da4e..370bcac24311 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.1.1 + 24.1.2 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5b67c7fe7660..ce1f4b928a35 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 24.1.1 + 24.1.2 pom import From 05db13db8855ea0d7fba34b4b7f464b1ba4b47ba Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 7 Jan 2022 16:24:43 -0500 Subject: [PATCH 0905/2363] chore: release 1.115.1-SNAPSHOT (#944) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: release 1.115.1-SNAPSHOT * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- .../google-cloud-pubsub/clirr-ignored-differences.xml | 9 --------- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 18 insertions(+), 27 deletions(-) delete mode 100644 java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index de0d8bb74397..21a622e7fb68 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.0 + 1.115.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.0 + 1.115.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.0 + 1.97.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.0 + 1.97.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml deleted file mode 100644 index 8e64f2d62f1a..000000000000 --- a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - 7002 - com/google/cloud/pubsub/v1/TopicAdminClient$ListTopicSubscriptions* - java.lang.Iterable *AsProjectSubscriptionName() - - diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7b79ff876dc9..3b97c879c3c1 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.0 + 1.115.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.0 + 1.115.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 068478a897e9..8a8724462fa0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.0 + 1.97.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.0 + 1.115.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 357478902567..9d3139b43a17 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.0 + 1.115.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.0 + 1.97.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.0 + 1.97.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.115.0 + 1.115.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3d94f06a8db4..5a6e3dbd3140 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.0 + 1.97.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.0 + 1.115.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1f3f016300e9..a06a18d25079 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.0 + 1.115.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 75deb1c0a67f..84f363a6beed 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.0:1.115.0 -grpc-google-cloud-pubsub-v1:1.97.0:1.97.0 -proto-google-cloud-pubsub-v1:1.97.0:1.97.0 +google-cloud-pubsub:1.115.0:1.115.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.97.0:1.97.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.97.0:1.97.1-SNAPSHOT From 0d77d337a6d2b2c2dd56ebe940a32b4c03e1c72c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 22:24:57 +0100 Subject: [PATCH 0906/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.19.2 (#954) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v3.19.2 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index aba7c91d2d8c..9afba63dab26 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.19.1 + 3.19.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a06a18d25079..f2618da68e9a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.19.1 + 3.19.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index ce1f4b928a35..33b41753912e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.19.1 + 3.19.2 From bc7c7d69749da5acffa3f6b97c8ab05422e5f4c3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 22:35:58 +0100 Subject: [PATCH 0907/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.3.5 (#959) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 9afba63dab26..ab9df840ca25 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.3.4 + 2.3.5 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f2618da68e9a..332b4b86890b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.3.4 + 2.3.5 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 33b41753912e..f98c3f8f62fb 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.3.4 + 2.3.5 tests From 4102baf4dd4d54a786c0519d829eea5e02f652e5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 7 Jan 2022 16:55:13 -0500 Subject: [PATCH 0908/2363] chore: release 1.115.1 (#960) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 56f92b58b51c..d6f717597a8b 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +### [1.115.1](https://www.github.com/googleapis/java-pubsub/compare/v1.115.0...v1.115.1) (2022-01-07) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.3.4 ([#955](https://www.github.com/googleapis/java-pubsub/issues/955)) ([b39ecd5](https://www.github.com/googleapis/java-pubsub/commit/b39ecd5db18c99461206b287eb403199eea7a654)) +* update dependency com.google.cloud:google-cloud-core to v2.3.5 ([#959](https://www.github.com/googleapis/java-pubsub/issues/959)) ([5efec45](https://www.github.com/googleapis/java-pubsub/commit/5efec45e1761b642bcef309a45de4342e0f553f7)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#957](https://www.github.com/googleapis/java-pubsub/issues/957)) ([b562ce8](https://www.github.com/googleapis/java-pubsub/commit/b562ce8550d227d99352df17c5c01221153f94fd)) +* update dependency com.google.protobuf:protobuf-java-util to v3.19.2 ([#954](https://www.github.com/googleapis/java-pubsub/issues/954)) ([a1ac149](https://www.github.com/googleapis/java-pubsub/commit/a1ac1491f0c682da6d84e69477823d2446a9c475)) + ## [1.115.0](https://www.github.com/googleapis/java-pubsub/compare/v1.114.7...v1.115.0) (2021-12-05) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 21a622e7fb68..05d44cc88a51 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.1-SNAPSHOT + 1.115.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.1-SNAPSHOT + 1.115.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.1-SNAPSHOT + 1.97.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.1-SNAPSHOT + 1.97.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3b97c879c3c1..c97f6d6a8afb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.1-SNAPSHOT + 1.115.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.1-SNAPSHOT + 1.115.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8a8724462fa0..d4218e30fbcc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.1-SNAPSHOT + 1.97.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.1-SNAPSHOT + 1.115.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9d3139b43a17..7937e43af286 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.1-SNAPSHOT + 1.115.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.1-SNAPSHOT + 1.97.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.1-SNAPSHOT + 1.97.1 com.google.cloud google-cloud-pubsub - 1.115.1-SNAPSHOT + 1.115.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5a6e3dbd3140..3a82a66b5314 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.1-SNAPSHOT + 1.97.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.1-SNAPSHOT + 1.115.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 332b4b86890b..d296648e782b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.1-SNAPSHOT + 1.115.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 84f363a6beed..e25ad01f2a04 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.0:1.115.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.97.0:1.97.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.97.0:1.97.1-SNAPSHOT +google-cloud-pubsub:1.115.1:1.115.1 +grpc-google-cloud-pubsub-v1:1.97.1:1.97.1 +proto-google-cloud-pubsub-v1:1.97.1:1.97.1 From 2ac70167f99a0c9b3c2a27e7806956b36ac3220b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 7 Jan 2022 22:08:18 +0000 Subject: [PATCH 0909/2363] chore: release 1.115.2-SNAPSHOT (#961) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 05d44cc88a51..d52b4e4326e1 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.1 + 1.115.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.1 + 1.115.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.1 + 1.97.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.1 + 1.97.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c97f6d6a8afb..ba02f7f4895c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.1 + 1.115.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.1 + 1.115.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d4218e30fbcc..17b731f9cd9c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.1 + 1.97.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.1 + 1.115.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7937e43af286..b4bbae941aec 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.1 + 1.115.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.1 + 1.97.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.1 + 1.97.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.115.1 + 1.115.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3a82a66b5314..75ca51196c45 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.1 + 1.97.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.1 + 1.115.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d296648e782b..4cab197f7561 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.1 + 1.115.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e25ad01f2a04..077de8c9b76c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.1:1.115.1 -grpc-google-cloud-pubsub-v1:1.97.1:1.97.1 -proto-google-cloud-pubsub-v1:1.97.1:1.97.1 +google-cloud-pubsub:1.115.1:1.115.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.97.1:1.97.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.97.1:1.97.2-SNAPSHOT From 9d151036e55dbacd48ffb036e078ffb78ea5e0f6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 Jan 2022 19:24:18 +0000 Subject: [PATCH 0910/2363] chore(owlbot-java): disable re-writing clirr file in owlbot java post-processor (#1320) (#966) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 621c0d66cd40..20c6ee3c30ca 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:94580e16bbb4ea1592fa9dd5c5df76716e17858c0dc975582d096c6ae0dc91f5 + digest: sha256:efbfc5e9ff713005a037941f8ebcc0c69cc630e3ad934675ee26868705a30897 diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 370bcac24311..8c70ab359c34 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.115.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.115.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.1" ``` ## Authentication From 1582f67aa237fc756508abb52268e1611bf713d4 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 10 Jan 2022 19:58:26 -0500 Subject: [PATCH 0911/2363] chore: change name to api_shortname in .repo-metadata.json (#967) --- java-pubsub/.repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 119950039bd1..7c53f63ca157 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -1,5 +1,5 @@ { - "name": "pubsub", + "api_shortname": "pubsub", "name_pretty": "Cloud Pub/Sub", "api_reference": "https://cloud.google.com/pubsub/", "product_documentation": "https://cloud.google.com/pubsub/docs/", From 797fb4d9cc3b8ba6d926407438d568a159a600e7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 Jan 2022 18:42:18 +0000 Subject: [PATCH 0912/2363] chore(java): update variable name to api_shortname in README template (#1323) (#968) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md | 2 +- java-pubsub/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 20c6ee3c30ca..dddb13b8458b 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:efbfc5e9ff713005a037941f8ebcc0c69cc630e3ad934675ee26868705a30897 + digest: sha256:7f737996c88586c499f7b0c25294c760f9f5eec092289a0e08d2d3f42a069ebb diff --git a/java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md b/java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md index 616371b51473..50c4b14987d7 100644 --- a/java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md +++ b/java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md @@ -21,7 +21,7 @@ If you are still having issues, please include as much information as possible: General, Core, and Other are also allowed as types 2. OS type and version: 3. Java version: -4. pubsub version(s): +4. version(s): #### Steps to reproduce diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8c70ab359c34..e19213611ff9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.1.2') +implementation platform('com.google.cloud:libraries-bom:24.2.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` From 009bd6c1ca8a6914e8eda955aa3ae3019ffa48c5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 17:48:27 +0100 Subject: [PATCH 0913/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.115.1 (#962) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.115.0` -> `1.115.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.1/compatibility-slim/1.115.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.1/confidence-slim/1.115.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.115.1`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​11151-httpswwwgithubcomgoogleapisjava-pubsubcomparev11150v11151-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.115.0...v1.115.1)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e19213611ff9..b6ed68326d29 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.115.0 + 1.115.1 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ab9df840ca25..1135ab9e0df4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.115.0 + 1.115.1 From 7a142e538bd6e5ec5321d913927d785be4701d57 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 17:48:32 +0100 Subject: [PATCH 0914/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v24.2.0 (#970) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.2` -> `24.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/compatibility-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/confidence-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b6ed68326d29..e5277bf266da 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.1.2 + 24.2.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f98c3f8f62fb..0a2e48f9bb42 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 24.1.2 + 24.2.0 pom import From 4e52c330427e95a3110d9ea6be0c334491871049 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 18:00:15 +0100 Subject: [PATCH 0915/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.5 (#969) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.4` -> `1.2.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/compatibility-slim/1.2.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/confidence-slim/1.2.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.2.5`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​125-httpsgithubcomgoogleapisjava-shared-configcomparev124v125-2022-01-11) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.4...v1.2.5)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d52b4e4326e1..04b89d1e8695 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.4 + 1.2.5 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b4bbae941aec..61a482c3c1bd 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.4 + 1.2.5 From cc335242bde64d4b3c233b953ff9aeae2ab732c7 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 13 Jan 2022 17:52:11 -0500 Subject: [PATCH 0916/2363] chore: update release-level in .repo-metadata.json (#976) --- java-pubsub/.repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 7c53f63ca157..6cb07ab00942 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -6,7 +6,7 @@ "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history", "api_description": "is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications.", "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", - "release_level": "ga", + "release_level": "stable", "language": "java", "repo": "googleapis/java-pubsub", "repo_short": "java-pubsub", From 6791b10be65840cac22966dd0fd1abbcfcabac17 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 17 Jan 2022 21:14:24 +0000 Subject: [PATCH 0917/2363] chore(java): update release_type choices to stable and preview (#1331) (#977) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index dddb13b8458b..dcdda8c6d920 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7f737996c88586c499f7b0c25294c760f9f5eec092289a0e08d2d3f42a069ebb + digest: sha256:9669c169d0582f13d6b2d319a43a78fc49f296a883aa48519bd0e5c7d34087c4 diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e5277bf266da..4fc5352e39b0 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -386,7 +386,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-win.html [kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.svg [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html -[stability-image]: https://img.shields.io/badge/stability-ga-green +[stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-pubsub&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication From b9f3f25ca73ad779ddb006f6f73185dc228979a6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Jan 2022 20:00:18 +0100 Subject: [PATCH 0918/2363] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.3.0 (#958) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.codehaus.mojo:build-helper-maven-plugin](http://www.mojohaus.org/build-helper-maven-plugin/) ([source](https://togithub.com/mojohaus/build-helper-maven-plugin)) | `3.2.0` -> `3.3.0` | [![age](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/compatibility-slim/3.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/confidence-slim/3.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1135ab9e0df4..51447c794dfa 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4cab197f7561..9ffd3f13f4d3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source From 2848da67e8947b89f4271a0dfae5a25c56e9471b Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Thu, 20 Jan 2022 11:29:21 -0800 Subject: [PATCH 0919/2363] samples: add subscription with filter example (#978) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: add subscription with filter example * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * populate filter string Co-authored-by: Owl Bot --- java-pubsub/README.md | 1 + .../CreateSubscriptionWithFiltering.java | 59 +++++++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 12 ++++ .../src/test/java/pubsub/SubscriberIT.java | 4 -- 4 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4fc5352e39b0..f3a75ec58a0c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -245,6 +245,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | | Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | | Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | +| Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java new file mode 100644 index 000000000000..40bbac03402c --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java @@ -0,0 +1,59 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_subscription_with_filter] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class CreateSubscriptionWithFiltering { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + String subscriptionId = "your-subscription-id"; + String filter = "attributes.author=\"unknown\""; + + createSubscriptionWithFilteringExample(projectId, topicId, subscriptionId, filter); + } + + public static void createSubscriptionWithFilteringExample( + String projectId, String topicId, String subscriptionId, String filter) throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + Subscription subscription = + subscriptionAdminClient.createSubscription( + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + // Receive messages with attribute key "author" and value "unknown". + .setFilter(filter) + .build()); + + System.out.println( + "Created a subscription with filtering enabled: " + subscription.getAllFields()); + } + } +} +// [END pubsub_create_subscription_with_filter] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index 59bb4377d5f1..b0f57d50a61f 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -44,6 +44,7 @@ public class AdminIT { private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; + private static final String filteredSubscriptionId = "iam-filtered-subscription-" + _suffix; private static final String pushEndpoint = "https://my-test-project.appspot.com/push"; private static final TopicName topicName = TopicName.of(projectId, topicId); @@ -53,6 +54,8 @@ public class AdminIT { SubscriptionName.of(projectId, pushSubscriptionId); private static final SubscriptionName orderedSubscriptionName = SubscriptionName.of(projectId, orderedSubscriptionId); + private static final SubscriptionName filteredSubscriptionName = + SubscriptionName.of(projectId, filteredSubscriptionId); private static void requireEnvVar(String varName) { assertNotNull( @@ -82,6 +85,7 @@ public void tearDown() throws Exception { subscriptionAdminClient.deleteSubscription(pullSubscriptionName); subscriptionAdminClient.deleteSubscription(pushSubscriptionName); subscriptionAdminClient.deleteSubscription(orderedSubscriptionName); + subscriptionAdminClient.deleteSubscription(filteredSubscriptionName); } catch (NotFoundException ignored) { // ignore this as resources may not have been created } @@ -183,6 +187,14 @@ public void testAdmin() throws Exception { assertThat(bout.toString()).contains("Created a subscription with ordering"); assertThat(bout.toString()).contains("enable_message_ordering=true"); + bout.reset(); + // Test create a subscription with filtering enabled + CreateSubscriptionWithFiltering.createSubscriptionWithFilteringExample( + projectId, topicId, filteredSubscriptionId, "attributes.author=\"unknown\""); + assertThat(bout.toString()).contains("Created a subscription with filtering enabled"); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Subscription.filter=attributes.author=\"unknown\""); + bout.reset(); // Test delete subscription. Run twice to delete both pull and push subscriptions. DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pullSubscriptionId); diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java index aae4fb5af189..d0946202ca4a 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -21,8 +21,6 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; -import com.google.api.gax.core.ExecutorProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.cloud.pubsub.v1.Publisher; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.cloud.pubsub.v1.TopicAdminClient; @@ -58,8 +56,6 @@ public class SubscriberIT { private static final TopicName topicName = TopicName.of(projectId, topicId); private static final ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subscriptionId); - private static final ExecutorProvider executorProvider = - InstantiatingExecutorProvider.newBuilder().setExecutorThreadCount(4).build(); private static void requireEnvVar(String varName) { assertNotNull( From ae4f01be9ffb9ec772db1ac921cc6211247731c9 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Thu, 20 Jan 2022 11:42:08 -0800 Subject: [PATCH 0920/2363] chore: additional sample reviewers (#979) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: additional sample reviewers * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * restore initial commit Co-authored-by: Owl Bot --- java-pubsub/.github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS index 0bcf47a666ed..d68f84ce5075 100644 --- a/java-pubsub/.github/CODEOWNERS +++ b/java-pubsub/.github/CODEOWNERS @@ -9,4 +9,4 @@ **/*.java @googleapis/api-pubsub # The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers +samples/**/*.java @googleapis/java-samples-reviewers @GoogleCloudPlatform/api-pubsub-and-pubsublite From d8f684cd73f7b78dbb453eb27c4d098dd5d9bd6e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 21 Jan 2022 21:30:33 +0100 Subject: [PATCH 0921/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.6 (#980) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.5` -> `1.2.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/compatibility-slim/1.2.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/confidence-slim/1.2.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.2.6`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​126-httpsgithubcomgoogleapisjava-shared-configcomparev125v126-2022-01-19) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.5...v1.2.6)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/.github/CODEOWNERS | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS index d68f84ce5075..0bcf47a666ed 100644 --- a/java-pubsub/.github/CODEOWNERS +++ b/java-pubsub/.github/CODEOWNERS @@ -9,4 +9,4 @@ **/*.java @googleapis/api-pubsub # The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers @GoogleCloudPlatform/api-pubsub-and-pubsublite +samples/**/*.java @googleapis/java-samples-reviewers diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 04b89d1e8695..f1f1bfda6d3d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.5 + 1.2.6 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 61a482c3c1bd..b2c747199d42 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.5 + 1.2.6 From ba8ed8f1634a712253310e2dd82998f3c4fa5f8c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Jan 2022 21:26:19 +0100 Subject: [PATCH 0922/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.19.3 (#973) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.19.2` -> `3.19.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.3/compatibility-slim/3.19.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.3/confidence-slim/3.19.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    protocolbuffers/protobuf ### [`v3.19.3`](https://togithub.com/protocolbuffers/protobuf/releases/v3.19.3) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.19.2...v3.19.3) ##### Python - Fix missing Windows wheel for Python 3.10 on PyPI
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 51447c794dfa..6001db421e40 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.19.2 + 3.19.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9ffd3f13f4d3..8860fd0f1a5b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.19.2 + 3.19.3 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 0a2e48f9bb42..627bb6f84275 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.19.2 + 3.19.3 From 1263b4cff8f489233b6a681c1fee833aa623c07d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Jan 2022 21:32:20 +0100 Subject: [PATCH 0923/2363] build(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.9.0 (#974) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-compiler-plugin](https://maven.apache.org/plugins/) | `3.8.1` -> `3.9.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-compiler-plugin/3.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-compiler-plugin/3.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-compiler-plugin/3.9.0/compatibility-slim/3.8.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-compiler-plugin/3.9.0/confidence-slim/3.8.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ba02f7f4895c..a96e62394f73 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -159,7 +159,7 @@ maven-compiler-plugin - 3.8.1 + 3.9.0 1.8 1.8 From b9a6f1b3aed3795b50ba40eaf547ff90a69b3f6d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Feb 2022 04:44:26 +0100 Subject: [PATCH 0924/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 (#988) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.6.0` -> `2.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/compatibility-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/confidence-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.7.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​270-httpsgithubcomgoogleapisjava-shared-dependenciescomparev260v270-2022-01-28) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.6.0...v2.7.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.1 ([#​555](https://togithub.com/googleapis/java-shared-dependencies/issues/555)) ([67b5663](https://togithub.com/googleapis/java-shared-dependencies/commit/67b56635509215fd132b2ffbcaed995a6de93879)) - update dependency com.google.api-client:google-api-client-bom to v1.33.1 ([#​580](https://togithub.com/googleapis/java-shared-dependencies/issues/580)) ([895dba2](https://togithub.com/googleapis/java-shared-dependencies/commit/895dba2afef6c295b0e21a4ccd27feee1b6af8e2)) - update dependency com.google.api:api-common to v2.1.3 ([#​587](https://togithub.com/googleapis/java-shared-dependencies/issues/587)) ([5dbbce8](https://togithub.com/googleapis/java-shared-dependencies/commit/5dbbce80baa045818757912e6db4f222c12b75f6)) - update dependency com.google.auth:google-auth-library-bom to v1.4.0 ([#​578](https://togithub.com/googleapis/java-shared-dependencies/issues/578)) ([c274c62](https://togithub.com/googleapis/java-shared-dependencies/commit/c274c62905192bcc48c82104bf50cbeaa1894c2b)) - update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#​582](https://togithub.com/googleapis/java-shared-dependencies/issues/582)) ([314da38](https://togithub.com/googleapis/java-shared-dependencies/commit/314da38c9f12cf425b5d1be8297e9f2a78d13948)) - update dependency com.google.http-client:google-http-client-bom to v1.41.2 ([#​579](https://togithub.com/googleapis/java-shared-dependencies/issues/579)) ([c8df06d](https://togithub.com/googleapis/java-shared-dependencies/commit/c8df06ddb3f4a975e928bbdd9dfae293e81efa39)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.0 ([#​576](https://togithub.com/googleapis/java-shared-dependencies/issues/576)) ([3315988](https://togithub.com/googleapis/java-shared-dependencies/commit/3315988059ca0223f078b0f760960674bfa8c04a)) - update dependency com.google.protobuf:protobuf-bom to v3.19.3 ([#​571](https://togithub.com/googleapis/java-shared-dependencies/issues/571)) ([c1931e1](https://togithub.com/googleapis/java-shared-dependencies/commit/c1931e1c4611ca3d1e2afac1c9e983cf1ec4a7de)) - update dependency io.grpc:grpc-bom to v1.44.0 ([#​586](https://togithub.com/googleapis/java-shared-dependencies/issues/586)) ([52c47b7](https://togithub.com/googleapis/java-shared-dependencies/commit/52c47b7425af438ba1a82dac87f9002353a6a87a)) - update dependency org.checkerframework:checker-qual to v3.21.1 ([#​554](https://togithub.com/googleapis/java-shared-dependencies/issues/554)) ([81bbb91](https://togithub.com/googleapis/java-shared-dependencies/commit/81bbb91774ab67161371bfd0dfd143de89dee4c9)) - update gax.version to v2.11.0 ([#​581](https://togithub.com/googleapis/java-shared-dependencies/issues/581)) ([1899612](https://togithub.com/googleapis/java-shared-dependencies/commit/189961226f84cdd4e283780d2c7d4a4dffc3e00c)) - update gax.version to v2.9.0 ([#​573](https://togithub.com/googleapis/java-shared-dependencies/issues/573)) ([ee5e38e](https://togithub.com/googleapis/java-shared-dependencies/commit/ee5e38efea574eeb2b5803192da98ba1ce1c8e6e)) - update google.common-protos.version to v2.7.2 ([#​588](https://togithub.com/googleapis/java-shared-dependencies/issues/588)) ([caac0e6](https://togithub.com/googleapis/java-shared-dependencies/commit/caac0e68e336b801becb6322b5b81fce1824ad8a)) - update google.core.version to v2.4.0 ([#​589](https://togithub.com/googleapis/java-shared-dependencies/issues/589)) ([6a292e3](https://togithub.com/googleapis/java-shared-dependencies/commit/6a292e3530a06d6b228f3154ed4e979ef68d7aeb)) - update iam.version to v1.2.1 ([#​569](https://togithub.com/googleapis/java-shared-dependencies/issues/569)) ([62dd270](https://togithub.com/googleapis/java-shared-dependencies/commit/62dd2705b257c4bb539bfe619234f38d0e13b138)) - update opencensus.version to v0.30.0 ([#​552](https://togithub.com/googleapis/java-shared-dependencies/issues/552)) ([ebae62e](https://togithub.com/googleapis/java-shared-dependencies/commit/ebae62eca75234db4fd571f42b8ed0f6ce1bd1f7)) - update opencensus.version to v0.31.0 ([#​585](https://togithub.com/googleapis/java-shared-dependencies/issues/585)) ([021b066](https://togithub.com/googleapis/java-shared-dependencies/commit/021b066a833af1629c89fcca593d16b9786ee0bf))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b2c747199d42..39bafb13c68c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.6.0 + 2.7.0 pom import From 1328227d7fd0499fa916eab8a04b63be9042a4b1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Feb 2022 05:56:41 +0100 Subject: [PATCH 0925/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.4.0 (#986) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.3.5` -> `2.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/compatibility-slim/2.3.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.4.0/confidence-slim/2.3.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.4.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​240-httpsgithubcomgoogleapisjava-corecomparev235v240-2022-01-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.3.5...v2.4.0) ##### Features - **java:** Add native-image support classes to java-core module ([#​637](https://togithub.com/googleapis/java-core/issues/637)) ([154bc18](https://togithub.com/googleapis/java-core/commit/154bc18ba86328d29665c502db1d35e265c92bbf)) ##### Bug Fixes - **java:** initialize LoggerFactory at build time ([#​685](https://togithub.com/googleapis/java-core/issues/685)) ([eb3aba2](https://togithub.com/googleapis/java-core/commit/eb3aba2455a0ab6ffec2c6beb3f3cbb4bcb6008d)) ##### Dependencies - **java:** update actions/github-script action to v5 ([#​1339](https://togithub.com/googleapis/java-core/issues/1339)) ([#​689](https://togithub.com/googleapis/java-core/issues/689)) ([eb462c7](https://togithub.com/googleapis/java-core/commit/eb462c7b1a005ce37d1be58900a244f6b807e5d5)) - update dependency com.google.api-client:google-api-client-bom to v1.33.1 ([#​684](https://togithub.com/googleapis/java-core/issues/684)) ([9ff47e6](https://togithub.com/googleapis/java-core/commit/9ff47e68d0c435d7636d89b03369aabbdfe3663b)) - update dependency com.google.api:api-common to v2.1.3 ([#​694](https://togithub.com/googleapis/java-core/issues/694)) ([684ae80](https://togithub.com/googleapis/java-core/commit/684ae805b8d25747830ce9266fd51a287c018cc9)) - update dependency com.google.api:gax-bom to v2.11.0 ([#​677](https://togithub.com/googleapis/java-core/issues/677)) ([1a578bd](https://togithub.com/googleapis/java-core/commit/1a578bdee2fa229ffbdd8fdde3d66d7e29dedf98)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.2 ([#​695](https://togithub.com/googleapis/java-core/issues/695)) ([1085d2c](https://togithub.com/googleapis/java-core/commit/1085d2cb1d7e8391f981d1f4b97c7724b0107e94)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.1 ([#​667](https://togithub.com/googleapis/java-core/issues/667)) ([b57ec04](https://togithub.com/googleapis/java-core/commit/b57ec047234a1a044458980a8cf7de6a3156bf41)) - update dependency com.google.auth:google-auth-library-bom to v1.4.0 ([#​681](https://togithub.com/googleapis/java-core/issues/681)) ([3273b1e](https://togithub.com/googleapis/java-core/commit/3273b1ed0b1db610790e7832a6c92797a341cc7d)) - update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#​687](https://togithub.com/googleapis/java-core/issues/687)) ([dc4d18d](https://togithub.com/googleapis/java-core/commit/dc4d18de86695fddbcb9d221cc53fdca3faf09f5)) - update dependency com.google.http-client:google-http-client-bom to v1.41.1 ([#​683](https://togithub.com/googleapis/java-core/issues/683)) ([45cb753](https://togithub.com/googleapis/java-core/commit/45cb7535151cfcffa282b4c8d9cd56265cca2ece)) - update dependency com.google.http-client:google-http-client-bom to v1.41.2 ([#​696](https://togithub.com/googleapis/java-core/issues/696)) ([f4875c0](https://togithub.com/googleapis/java-core/commit/f4875c0deecfea3728925e5ee0ef95ee90852301)) - update dependency com.google.protobuf:protobuf-bom to v3.19.3 ([#​674](https://togithub.com/googleapis/java-core/issues/674)) ([c54f997](https://togithub.com/googleapis/java-core/commit/c54f9973b71c91c1fde0a1d128957cd022a27902)) - update dependency io.grpc:grpc-bom to v1.43.2 ([#​665](https://togithub.com/googleapis/java-core/issues/665)) ([752ba6e](https://togithub.com/googleapis/java-core/commit/752ba6e384c382d0e39d8335640eaaea2beee9e1)) - update dependency io.grpc:grpc-bom to v1.44.0 ([#​693](https://togithub.com/googleapis/java-core/issues/693)) ([ed85045](https://togithub.com/googleapis/java-core/commit/ed850455995fc5b5c2dae3595116721316f63698)) - update dependency org.easymock:easymock to v4 ([#​668](https://togithub.com/googleapis/java-core/issues/668)) ([c36e976](https://togithub.com/googleapis/java-core/commit/c36e976c0379c1119dfe643dc3131f2e52130c5c)) - update dependency org.graalvm.sdk:graal-sdk to v22 ([#​680](https://togithub.com/googleapis/java-core/issues/680)) ([0f535f8](https://togithub.com/googleapis/java-core/commit/0f535f869f7ce68192f821d0f3361634676dddf7)) - update graalvm.version to v21.3.1 ([#​679](https://togithub.com/googleapis/java-core/issues/679)) ([dfb305a](https://togithub.com/googleapis/java-core/commit/dfb305acaf9d6db91727e42509fc6b043f07a5ce)) - update graalvm.version to v22.0.0.2 ([#​691](https://togithub.com/googleapis/java-core/issues/691)) ([780b734](https://togithub.com/googleapis/java-core/commit/780b734bb4f26fab49065f303d102033b2c3a3d0)) - update opencensus.version to v0.30.0 ([#​646](https://togithub.com/googleapis/java-core/issues/646)) ([c2caaa7](https://togithub.com/googleapis/java-core/commit/c2caaa7cb2c094318e611ba2c082a8a31fee21ea)) - update opencensus.version to v0.31.0 ([#​692](https://togithub.com/googleapis/java-core/issues/692)) ([bdf7d4e](https://togithub.com/googleapis/java-core/commit/bdf7d4ec05c5314e5f2667287ed3e7cb83667c35)) ##### [2.3.5](https://www.github.com/googleapis/java-core/compare/v2.3.4...v2.3.5) (2022-01-06) ##### Dependencies - update dependency com.google.api:api-common to v2.1.2 ([#​661](https://www.togithub.com/googleapis/java-core/issues/661)) ([0a136d8](https://www.github.com/googleapis/java-core/commit/0a136d8122f6c5042808cbfee9e58dc53e368da6)) - update gax.version to v2.8.1 ([#​663](https://www.togithub.com/googleapis/java-core/issues/663)) ([7c09aa5](https://www.github.com/googleapis/java-core/commit/7c09aa5729408a395f1a8fae94744f9d33638b1a)) ##### [2.3.4](https://www.github.com/googleapis/java-core/compare/v2.3.3...v2.3.4) (2022-01-06) ##### Bug Fixes - fixed compilation warnings from error prone ([e6e7040](https://www.github.com/googleapis/java-core/commit/e6e7040305b19ec9d5468f4cd44d7a29d0d5e470)) - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-core/issues/1299)) ([#​643](https://www.togithub.com/googleapis/java-core/issues/643)) ([0f4c1db](https://www.github.com/googleapis/java-core/commit/0f4c1dbbd89d82f5cc86c2b684d6645699b835b3)) - **java:** run Maven in plain console-friendly mode ([#​1301](https://www.togithub.com/googleapis/java-core/issues/1301)) ([#​652](https://www.togithub.com/googleapis/java-core/issues/652)) ([ab2fa93](https://www.github.com/googleapis/java-core/commit/ab2fa93ba0434f593abb063afad44dc923bf462a)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.0 ([#​658](https://www.togithub.com/googleapis/java-core/issues/658)) ([d417ebd](https://www.github.com/googleapis/java-core/commit/d417ebd7bedc9d4e983f32c87a8d61163502cf1d)) - update dependency com.google.api:gax-bom to v2.8.0 ([#​659](https://www.togithub.com/googleapis/java-core/issues/659)) ([91717ab](https://www.github.com/googleapis/java-core/commit/91717ab9361a31976727b26d08837e8b3838bdb4)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.1 ([#​656](https://www.togithub.com/googleapis/java-core/issues/656)) ([ecfbdc1](https://www.github.com/googleapis/java-core/commit/ecfbdc181087d37d38f7911b9962953f5d246434)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.0 ([#​645](https://www.togithub.com/googleapis/java-core/issues/645)) ([3926b54](https://www.github.com/googleapis/java-core/commit/3926b5423893635dd709b8fc6037fb896396ff13)) - update dependency com.google.http-client:google-http-client-bom to v1.41.0 ([#​657](https://www.togithub.com/googleapis/java-core/issues/657)) ([41a5120](https://www.github.com/googleapis/java-core/commit/41a51201a3712f71f6cf3be3c29db68360b2405f)) - update dependency com.google.protobuf:protobuf-bom to v3.19.2 ([#​655](https://www.togithub.com/googleapis/java-core/issues/655)) ([eb6c037](https://www.github.com/googleapis/java-core/commit/eb6c03729af41e6d7bd9db80644b8ddfd22e78ec)) - update dependency io.grpc:grpc-bom to v1.43.1 ([#​647](https://www.togithub.com/googleapis/java-core/issues/647)) ([275b882](https://www.github.com/googleapis/java-core/commit/275b882918f7625daeb3e98ab26b7b0a2f2cdb7b)) ##### [2.3.3](https://www.github.com/googleapis/java-core/compare/v2.3.2...v2.3.3) (2021-12-02) ##### Dependencies - update dependency com.google.api:gax-bom to v2.7.1 ([#​640](https://www.togithub.com/googleapis/java-core/issues/640)) ([18e033b](https://www.github.com/googleapis/java-core/commit/18e033bdafe536a42ada9f93b0a2b502caea0bcf)) ##### [2.3.2](https://www.github.com/googleapis/java-core/compare/v2.3.1...v2.3.2) (2021-12-02) ##### Dependencies - update dependency com.google.api:api-common to v2.1.1 ([#​632](https://www.togithub.com/googleapis/java-core/issues/632)) ([b9bb47a](https://www.github.com/googleapis/java-core/commit/b9bb47a0b0a6b132c516361d23750a92a32e53be)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.0 ([#​638](https://www.togithub.com/googleapis/java-core/issues/638)) ([74862a8](https://www.github.com/googleapis/java-core/commit/74862a8864eb7bffe6659d1e2a261dd5b934d6ff)) ##### [2.3.1](https://www.github.com/googleapis/java-core/compare/v2.3.0...v2.3.1) (2021-11-15) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.42.1 ([#​629](https://www.togithub.com/googleapis/java-core/issues/629)) ([85fcd99](https://www.github.com/googleapis/java-core/commit/85fcd99237d7526b1b373d07204c4114c49b08b8))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6001db421e40..2fd1901d22a0 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.3.5 + 2.4.0 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8860fd0f1a5b..b8df99d3d509 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.3.5 + 2.4.0 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 627bb6f84275..fb573f6a8b5b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.3.5 + 2.4.0 tests From 9d9b18ca4964ef0653e14e05bead037032a1e900 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Feb 2022 06:04:39 +0100 Subject: [PATCH 0926/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.11.0 (#983) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.errorprone:error_prone_annotations](https://errorprone.info) ([source](https://togithub.com/google/error-prone)) | `2.10.0` -> `2.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.11.0/compatibility-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.11.0/confidence-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    google/error-prone ### [`v2.11.0`](https://togithub.com/google/error-prone/releases/v2.11.0) [Compare Source](https://togithub.com/google/error-prone/compare/v2.10.0...v2.11.0) Error Prone now requires JDK 11 or newer ([https://github.com/google/error-prone/issues/2730](https://togithub.com/google/error-prone/issues/2730)). New checks - [`AutoValueBuilderDefaultsInConstructor`](http://errorprone.info/bugpattern/AutoValueBuilderDefaultsInConstructor) - [`FloggerLogString`](http://errorprone.info/bugpattern/FloggerLogString) - [`UnicodeDirectionalityCharacters`](http://errorprone.info/bugpattern/UnicodeDirectionalityCharacters) - [`UnicodeInCode`](http://errorprone.info/bugpattern/UnicodeInCode) - [`AlreadyChecked`](http://errorprone.info/bugpattern/AlreadyChecked) - [`BugPatternNaming`](http://errorprone.info/bugpattern/BugPatternNaming) - [`MissingImplementsComparable`](http://errorprone.info/bugpattern/MissingImplementsComparable) - [`NegativeCharLiteral`](http://errorprone.info/bugpattern/NegativeCharLiteral) - [`PreferredInterfaceType`](http://errorprone.info/bugpattern/PreferredInterfaceType) - [`StronglyTypeByteString`](http://errorprone.info/bugpattern/StronglyTypeByteString) - [`UsingJsr305CheckReturnValue`](http://errorprone.info/bugpattern/UsingJsr305CheckReturnValue) Fixed issues: [#​2641](https://togithub.com/google/error-prone/issues/2641), [#​2705](https://togithub.com/google/error-prone/issues/2705), [#​2776](https://togithub.com/google/error-prone/issues/2776), [#​2798](https://togithub.com/google/error-prone/issues/2798), [#​2799](https://togithub.com/google/error-prone/issues/2799), [#​2819](https://togithub.com/google/error-prone/issues/2819), [#​2820](https://togithub.com/google/error-prone/issues/2820), [#​2831](https://togithub.com/google/error-prone/issues/2831), [#​2833](https://togithub.com/google/error-prone/issues/2833), [#​2834](https://togithub.com/google/error-prone/issues/2834), [#​2835](https://togithub.com/google/error-prone/issues/2835), [#​2861](https://togithub.com/google/error-prone/issues/2861), [#​2873](https://togithub.com/google/error-prone/issues/2873), [#​2889](https://togithub.com/google/error-prone/issues/2889), [#​2892](https://togithub.com/google/error-prone/issues/2892), [#​2901](https://togithub.com/google/error-prone/issues/2901) **Full Changelog**: https://github.com/google/error-prone/compare/v2.10.0...v2.11.0
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 39bafb13c68c..dc453b673ea8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -85,7 +85,7 @@ com.google.errorprone error_prone_annotations - 2.10.0 + 2.11.0 From e4a09c1a60159ecbee6cf2d915f2502438cbc5d9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 2 Feb 2022 05:08:47 +0000 Subject: [PATCH 0927/2363] deps(java): update actions/github-script action to v5 (#1339) (#984) --- java-pubsub/.github/.OwlBot.lock.yaml | 15 ++++++++++++++- java-pubsub/.github/workflows/approve-readme.yaml | 2 +- java-pubsub/.github/workflows/auto-release.yaml | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index dcdda8c6d920..be3b9bde4fce 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,3 +1,16 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:9669c169d0582f13d6b2d319a43a78fc49f296a883aa48519bd0e5c7d34087c4 + digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 diff --git a/java-pubsub/.github/workflows/approve-readme.yaml b/java-pubsub/.github/workflows/approve-readme.yaml index 7513acaebcc2..c5132427982f 100644 --- a/java-pubsub/.github/workflows/approve-readme.yaml +++ b/java-pubsub/.github/workflows/approve-readme.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v5 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index 9b4fd4d8348d..59c7cadde314 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v5 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true From 30c0172cf3c7608fda8257bf46b2b0d67c2e29ba Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Thu, 3 Feb 2022 10:21:20 -0800 Subject: [PATCH 0928/2363] samples: exit early if no messages are returned (#989) * samples: exit early if no messages are pulled * address kurtis's comments * update comment --- .../src/main/java/pubsub/SubscribeSyncExample.java | 9 +++++++++ .../java/pubsub/SubscribeSyncWithLeaseExample.java | 11 +++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java index 1ece29c3789a..e3a03404470e 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java @@ -60,12 +60,21 @@ public static void subscribeSyncExample( // Use pullCallable().futureCall to asynchronously perform this operation. PullResponse pullResponse = subscriber.pullCallable().call(pullRequest); + + // Stop the program if the pull response is empty to avoid acknowledging + // an empty list of ack IDs. + if (pullResponse.getReceivedMessagesList().isEmpty()) { + System.out.println("No message was pulled. Exiting."); + return; + } + List ackIds = new ArrayList<>(); for (ReceivedMessage message : pullResponse.getReceivedMessagesList()) { // Handle received message // ... ackIds.add(message.getAckId()); } + // Acknowledge received messages. AcknowledgeRequest acknowledgeRequest = AcknowledgeRequest.newBuilder() diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java index e074aa3fa554..67b60420338d 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java @@ -38,9 +38,6 @@ public static void main(String... args) throws Exception { String subscriptionId = "your-subscription-id"; Integer numOfMessages = 10; - projectId = "tz-playground-bigdata"; - subscriptionId = "uno"; - subscribeSyncWithLeaseExample(projectId, subscriptionId, numOfMessages); } @@ -68,8 +65,14 @@ public static void subscribeSyncWithLeaseExample( // Use pullCallable().futureCall to asynchronously perform this operation. PullResponse pullResponse = subscriber.pullCallable().call(pullRequest); - List ackIds = new ArrayList<>(); + // Stop the program if the pull response is empty to avoid acknowledging + // an empty list of ack IDs. + if (pullResponse.getReceivedMessagesList().isEmpty()) { + System.out.println("No message was pulled. Exiting."); + return; + } + List ackIds = new ArrayList<>(); for (ReceivedMessage message : pullResponse.getReceivedMessagesList()) { ackIds.add(message.getAckId()); From 087a089fead96ff2960e5cc01ad9fffc4c2f6fb5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Feb 2022 20:20:48 +0100 Subject: [PATCH 0929/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.19.4 (#987) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.19.3` -> `3.19.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.4/compatibility-slim/3.19.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.4/confidence-slim/3.19.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    protocolbuffers/protobuf ### [`v3.19.4`](https://togithub.com/protocolbuffers/protobuf/releases/v3.19.4) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.19.3...v3.19.4) ### Python - Make libprotobuf symbols local on OSX to fix issue [#​9395](https://togithub.com/protocolbuffers/protobuf/issues/9395) ([#​9435](https://togithub.com/protocolbuffers/protobuf/issues/9435)) ### Ruby - Fixed a data loss bug that could occur when the number of `optional` fields in a message is an exact multiple of 32. ([#​9440](https://togithub.com/protocolbuffers/protobuf/issues/9440)). ### PHP - Fixed a data loss bug that could occur when the number of `optional` fields in a message is an exact multiple of 32. ([#​9440](https://togithub.com/protocolbuffers/protobuf/issues/9440)).
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2fd1901d22a0..f0f95d297cd6 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.19.3 + 3.19.4 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b8df99d3d509..7488f9151bfe 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.19.3 + 3.19.4 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index fb573f6a8b5b..b09c4ff096e0 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.19.3 + 3.19.4 From 1dd793dd3143e58b033e08d683936e6df9db41c8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 19:44:45 +0000 Subject: [PATCH 0930/2363] chore: add kokoro config to run nightly integration test on java11.0.14 (#1347) (#990) --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- .../.kokoro/nightly/java11-integration.cfg | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 java-pubsub/.kokoro/nightly/java11-integration.cfg diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index be3b9bde4fce..8807efcad4be 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 + digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 diff --git a/java-pubsub/.kokoro/nightly/java11-integration.cfg b/java-pubsub/.kokoro/nightly/java11-integration.cfg new file mode 100644 index 000000000000..58049cc38f11 --- /dev/null +++ b/java-pubsub/.kokoro/nightly/java11-integration.cfg @@ -0,0 +1,37 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/java11014" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "ENABLE_FLAKYBOT" + value: "true" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} From b0def492d22498d6f50e37ee03761a1e6de4e150 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 21:14:53 +0000 Subject: [PATCH 0931/2363] chore(main): release 1.115.2 (#981) :robot: I have created a release *beep* *boop* --- ### [1.115.2](https://github.com/googleapis/java-pubsub/compare/v1.115.1...v1.115.2) (2022-02-03) ### Dependencies * **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-pubsub/issues/1339)) ([#984](https://github.com/googleapis/java-pubsub/issues/984)) ([e4a09c1](https://github.com/googleapis/java-pubsub/commit/e4a09c1a60159ecbee6cf2d915f2502438cbc5d9)) * update dependency com.google.cloud:google-cloud-core to v2.4.0 ([#986](https://github.com/googleapis/java-pubsub/issues/986)) ([1328227](https://github.com/googleapis/java-pubsub/commit/1328227d7fd0499fa916eab8a04b63be9042a4b1)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#988](https://github.com/googleapis/java-pubsub/issues/988)) ([b9a6f1b](https://github.com/googleapis/java-pubsub/commit/b9a6f1b3aed3795b50ba40eaf547ff90a69b3f6d)) * update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#983](https://github.com/googleapis/java-pubsub/issues/983)) ([9d9b18c](https://github.com/googleapis/java-pubsub/commit/9d9b18ca4964ef0653e14e05bead037032a1e900)) * update dependency com.google.protobuf:protobuf-java-util to v3.19.3 ([#973](https://github.com/googleapis/java-pubsub/issues/973)) ([ba8ed8f](https://github.com/googleapis/java-pubsub/commit/ba8ed8f1634a712253310e2dd82998f3c4fa5f8c)) * update dependency com.google.protobuf:protobuf-java-util to v3.19.4 ([#987](https://github.com/googleapis/java-pubsub/issues/987)) ([087a089](https://github.com/googleapis/java-pubsub/commit/087a089fead96ff2960e5cc01ad9fffc4c2f6fb5)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index d6f717597a8b..ead4d9b1db6c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +### [1.115.2](https://github.com/googleapis/java-pubsub/compare/v1.115.1...v1.115.2) (2022-02-03) + + +### Dependencies + +* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-pubsub/issues/1339)) ([#984](https://github.com/googleapis/java-pubsub/issues/984)) ([9a1cc0e](https://github.com/googleapis/java-pubsub/commit/9a1cc0eaf344e2f9cded1c331b0e71543f20ef65)) +* update dependency com.google.cloud:google-cloud-core to v2.4.0 ([#986](https://github.com/googleapis/java-pubsub/issues/986)) ([8cdf7a0](https://github.com/googleapis/java-pubsub/commit/8cdf7a0b1dffa1c01e9c739d79af552e6b42796e)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#988](https://github.com/googleapis/java-pubsub/issues/988)) ([8993760](https://github.com/googleapis/java-pubsub/commit/89937606134be8e0eb8b7669c6243f1f3b8a9aad)) +* update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#983](https://github.com/googleapis/java-pubsub/issues/983)) ([abcbb32](https://github.com/googleapis/java-pubsub/commit/abcbb32e442948ff4637df8b657a7f8a0abd3062)) +* update dependency com.google.protobuf:protobuf-java-util to v3.19.3 ([#973](https://github.com/googleapis/java-pubsub/issues/973)) ([13a9f96](https://github.com/googleapis/java-pubsub/commit/13a9f9645661324cc26b23b9eca5d833bf9d089f)) +* update dependency com.google.protobuf:protobuf-java-util to v3.19.4 ([#987](https://github.com/googleapis/java-pubsub/issues/987)) ([ff71dc7](https://github.com/googleapis/java-pubsub/commit/ff71dc73c9950973512920073a0f0491527a0678)) + ### [1.115.1](https://www.github.com/googleapis/java-pubsub/compare/v1.115.0...v1.115.1) (2022-01-07) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f1f1bfda6d3d..4ee103ee5b65 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.2-SNAPSHOT + 1.115.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.2-SNAPSHOT + 1.115.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.2-SNAPSHOT + 1.97.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.2-SNAPSHOT + 1.97.2
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a96e62394f73..7078171a6c72 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.2-SNAPSHOT + 1.115.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.2-SNAPSHOT + 1.115.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 17b731f9cd9c..906629053659 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.2-SNAPSHOT + 1.97.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.2-SNAPSHOT + 1.115.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index dc453b673ea8..c69b71d19b63 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.2-SNAPSHOT + 1.115.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.2-SNAPSHOT + 1.97.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.2-SNAPSHOT + 1.97.2 com.google.cloud google-cloud-pubsub - 1.115.2-SNAPSHOT + 1.115.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 75ca51196c45..be6c4b034842 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.2-SNAPSHOT + 1.97.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.2-SNAPSHOT + 1.115.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7488f9151bfe..06f54c1e4fa9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.2-SNAPSHOT + 1.115.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 077de8c9b76c..63895bc25a90 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.1:1.115.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.97.1:1.97.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.97.1:1.97.2-SNAPSHOT +google-cloud-pubsub:1.115.2:1.115.2 +grpc-google-cloud-pubsub-v1:1.97.2:1.97.2 +proto-google-cloud-pubsub-v1:1.97.2:1.97.2 From 21a2104e1106fd8d01e25af45e5075921ae9d1a4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 4 Feb 2022 01:39:01 +0000 Subject: [PATCH 0932/2363] chore(main): release 1.115.3-SNAPSHOT (#991) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4ee103ee5b65..63dfc4f0bd2e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.2 + 1.115.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.2 + 1.115.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.2 + 1.97.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.2 + 1.97.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7078171a6c72..6c3c3d2ccfef 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.2 + 1.115.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.2 + 1.115.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 906629053659..89d89bb27f35 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.2 + 1.97.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.2 + 1.115.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c69b71d19b63..5ae86576e750 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.2 + 1.115.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.2 + 1.97.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.2 + 1.97.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.115.2 + 1.115.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index be6c4b034842..4af6956e2c62 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.2 + 1.97.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.2 + 1.115.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 06f54c1e4fa9..e369e6098048 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.2 + 1.115.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 63895bc25a90..3ff164da49e2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.2:1.115.2 -grpc-google-cloud-pubsub-v1:1.97.2:1.97.2 -proto-google-cloud-pubsub-v1:1.97.2:1.97.2 +google-cloud-pubsub:1.115.2:1.115.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.97.2:1.97.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.97.2:1.97.3-SNAPSHOT From 5afe6181c139bfa9c797024ad3a9d8ab83c275b7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Feb 2022 22:06:54 +0000 Subject: [PATCH 0933/2363] chore: enable auto release in java (#1349) (#997) * chore: fix auto-release * chore: remove codecov.yml * chore: update license headers for yaml files Source-Link: https://github.com/googleapis/synthtool/commit/5b777277a01a93e7f10c9279521e807b934e78d4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- .../.github/workflows/approve-readme.yaml | 15 +++++++++++++++ .../.github/workflows/auto-release.yaml | 19 +++++++++++++++++-- java-pubsub/.github/workflows/ci.yaml | 15 +++++++++++++++ java-pubsub/.kokoro/build.bat | 15 +++++++++++++++ java-pubsub/README.md | 4 ++-- 6 files changed, 65 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 8807efcad4be..a8ddd81ae949 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 + digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 diff --git a/java-pubsub/.github/workflows/approve-readme.yaml b/java-pubsub/.github/workflows/approve-readme.yaml index c5132427982f..1bb182327612 100644 --- a/java-pubsub/.github/workflows/approve-readme.yaml +++ b/java-pubsub/.github/workflows/approve-readme.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-merge-readme diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index 59c7cadde314..2ba3082bee20 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-release @@ -16,8 +31,8 @@ jobs: return; } - // only approve PRs like "chore: release " - if ( !context.payload.pull_request.title.startsWith("chore: release") ) { + // only approve PRs like "chore(main): release " + if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { return; } diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 05de1f60dcf0..6b5e56aaacd1 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: push: branches: diff --git a/java-pubsub/.kokoro/build.bat b/java-pubsub/.kokoro/build.bat index 05826ad93fe8..cc602c9eba80 100644 --- a/java-pubsub/.kokoro/build.bat +++ b/java-pubsub/.kokoro/build.bat @@ -1,3 +1,18 @@ :: See documentation in type-shell-output.bat +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f3a75ec58a0c..6ab7118fe586 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.115.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.115.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.2" ``` ## Authentication From 9d567db5f667063c867ce1a597379afc2be8bbde Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 8 Feb 2022 00:46:53 +0000 Subject: [PATCH 0934/2363] chore: update auto-release script to fix breaking changes in v5 (#1350) (#998) Source-Link: https://github.com/googleapis/synthtool/commit/53a58c23eb4decb3a17fab07388d42799e158b5f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.github/workflows/auto-release.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index a8ddd81ae949..9786771c434b 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 + digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index 2ba3082bee20..18e23230d98f 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -37,7 +37,7 @@ jobs: } // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.pulls.listFiles.endpoint({ + const filesPromise = github.rest.pulls.listFiles.endpoint({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number, @@ -69,7 +69,7 @@ jobs: return; } - const promise = github.pulls.list.endpoint({ + const promise = github.rest.pulls.list.endpoint({ owner: context.repo.owner, repo: context.repo.repo, state: 'open' @@ -86,7 +86,7 @@ jobs: } // approve release PR - await github.pulls.createReview({ + await github.rest.pulls.createReview({ owner: context.repo.owner, repo: context.repo.repo, body: 'Rubber stamped release!', @@ -95,7 +95,7 @@ jobs: }); // attach kokoro:force-run and automerge labels - await github.issues.addLabels({ + await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number, From e82670d9c8161c505826762ebe1e728ccd90516b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 18:36:52 +0100 Subject: [PATCH 0935/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.7 (#999) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.6` -> `1.2.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/compatibility-slim/1.2.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/confidence-slim/1.2.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.2.7`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​127-httpsgithubcomgoogleapisjava-shared-configcomparev126v127-2022-02-04) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.6...v1.2.7)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 63dfc4f0bd2e..5c15a1569d14 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.6 + 1.2.7 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5ae86576e750..4b713633a429 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.6 + 1.2.7 From f2169aee481862451a193ea31e875f9fb9f562c2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 18:45:02 +0100 Subject: [PATCH 0936/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.1 (#996) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.1.2` -> `3.2.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.1/compatibility-slim/3.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.1/confidence-slim/3.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4b713633a429..bfaf6c974277 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.2 + 3.2.1 From 4e4c2106825b80781e6eb7145d88d05e4e798b5f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 22:46:45 +0100 Subject: [PATCH 0937/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v24.3.0 (#1001) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `24.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/compatibility-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/confidence-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6ab7118fe586..20f61b807c73 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.2.0 + 24.3.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.2.0') +implementation platform('com.google.cloud:libraries-bom:24.3.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b09c4ff096e0..f5ceae45b558 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 24.2.0 + 24.3.0 pom import From 02421cb87c4a9ff92d68e535ee9f781dc474e4a2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Feb 2022 00:12:50 +0100 Subject: [PATCH 0938/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 (#995) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.4.0` -> `2.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.0/compatibility-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.0/confidence-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.5.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​250-httpsgithubcomgoogleapisjava-corecomparev240v250-2022-02-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.4.0...v2.5.0) ##### Features - add limit support to ReadChannel ([#​688](https://togithub.com/googleapis/java-core/issues/688)) ([476109e](https://togithub.com/googleapis/java-core/commit/476109e1943c1a9561cc636ffc64ab8cdd1888f9)) ##### Bug Fixes - **java:** Initialize AsyncSSLPrivateKeyMethod (a grpc netty class) at run-time ([#​702](https://togithub.com/googleapis/java-core/issues/702)) ([24146a3](https://togithub.com/googleapis/java-core/commit/24146a35a10ae06238de9556c24dab5dbd3bcaff)) ##### Dependencies - update dependency com.google.api:gax-bom to v2.12.0 ([#​698](https://togithub.com/googleapis/java-core/issues/698)) ([c10aab8](https://togithub.com/googleapis/java-core/commit/c10aab8a57ff0aad07a700540085e2ed7521b1a1)) - update dependency com.google.protobuf:protobuf-bom to v3.19.4 ([#​699](https://togithub.com/googleapis/java-core/issues/699)) ([5d163f5](https://togithub.com/googleapis/java-core/commit/5d163f591547cd8e0e508b9c824a17da2074b264))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f0f95d297cd6..8658f1d00869 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.4.0 + 2.5.0 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e369e6098048..193b300c25c5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.4.0 + 2.5.0 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f5ceae45b558..2b1c4798c6d3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.4.0 + 2.5.0 tests From 30ab1970b5e744b41bdae16e120031203dddb4ce Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 8 Feb 2022 23:32:43 +0000 Subject: [PATCH 0939/2363] chore(main): release 1.115.3 (#1002) :robot: I have created a release *beep* *boop* --- ### [1.115.3](https://github.com/googleapis/java-pubsub/compare/v1.115.2...v1.115.3) (2022-02-08) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.5.0 ([#995](https://github.com/googleapis/java-pubsub/issues/995)) ([02421cb](https://github.com/googleapis/java-pubsub/commit/02421cb87c4a9ff92d68e535ee9f781dc474e4a2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index ead4d9b1db6c..d97ce5870dce 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.115.3](https://github.com/googleapis/java-pubsub/compare/v1.115.2...v1.115.3) (2022-02-08) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.5.0 ([#995](https://github.com/googleapis/java-pubsub/issues/995)) ([3b3b90a](https://github.com/googleapis/java-pubsub/commit/3b3b90ad1cf520fa8cdfea180002745789ebfce9)) + ### [1.115.2](https://github.com/googleapis/java-pubsub/compare/v1.115.1...v1.115.2) (2022-02-03) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5c15a1569d14..0705705cd384 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.3-SNAPSHOT + 1.115.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.3-SNAPSHOT + 1.115.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.3-SNAPSHOT + 1.97.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.3-SNAPSHOT + 1.97.3
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6c3c3d2ccfef..7d103aab18e8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.3-SNAPSHOT + 1.115.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.3-SNAPSHOT + 1.115.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 89d89bb27f35..46c3a2160764 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.3-SNAPSHOT + 1.97.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.3-SNAPSHOT + 1.115.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bfaf6c974277..611323e4b55e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.3-SNAPSHOT + 1.115.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.3-SNAPSHOT + 1.97.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.3-SNAPSHOT + 1.97.3 com.google.cloud google-cloud-pubsub - 1.115.3-SNAPSHOT + 1.115.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4af6956e2c62..6532a55aba9d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.3-SNAPSHOT + 1.97.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.3-SNAPSHOT + 1.115.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 193b300c25c5..f124a9415bf7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.3-SNAPSHOT + 1.115.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3ff164da49e2..7ce907177b99 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.2:1.115.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.97.2:1.97.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.97.2:1.97.3-SNAPSHOT +google-cloud-pubsub:1.115.3:1.115.3 +grpc-google-cloud-pubsub-v1:1.97.3:1.97.3 +proto-google-cloud-pubsub-v1:1.97.3:1.97.3 From ba2d7b3ba42714a5d78894f5dabdeaf1f8289797 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 9 Feb 2022 00:32:46 +0000 Subject: [PATCH 0940/2363] chore(main): release 1.115.4-SNAPSHOT (#1003) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0705705cd384..4779a4147596 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.3 + 1.115.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.3 + 1.115.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.3 + 1.97.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.3 + 1.97.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7d103aab18e8..d99108098d27 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.3 + 1.115.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.3 + 1.115.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 46c3a2160764..b453e795449d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.3 + 1.97.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.3 + 1.115.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 611323e4b55e..e30a5c4521f6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.3 + 1.115.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.3 + 1.97.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.3 + 1.97.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.115.3 + 1.115.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6532a55aba9d..a9a807686b58 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.3 + 1.97.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.3 + 1.115.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f124a9415bf7..5aeb4d425db3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.3 + 1.115.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7ce907177b99..86f9cde38c68 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.3:1.115.3 -grpc-google-cloud-pubsub-v1:1.97.3:1.97.3 -proto-google-cloud-pubsub-v1:1.97.3:1.97.3 +google-cloud-pubsub:1.115.3:1.115.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.97.3:1.97.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.97.3:1.97.4-SNAPSHOT From bc7778e6525f9860a92d29321273e9878653fd06 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Feb 2022 17:46:54 +0100 Subject: [PATCH 0941/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.5.1 (#1004) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.0` -> `2.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/compatibility-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.1/confidence-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.5.1`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​251-httpsgithubcomgoogleapisjava-corecomparev250v251-2022-02-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.0...v2.5.1)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 20f61b807c73..399a18ccc2f3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.115.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.115.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.3" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8658f1d00869..5e132e7eb55c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.5.0 + 2.5.1 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5aeb4d425db3..cfd5b06e78c2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.5.0 + 2.5.1 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2b1c4798c6d3..18e0670f6c59 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.5.0 + 2.5.1 tests From f7127c1997a31074ae409eaf1d2f3c42ee9012b5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Feb 2022 18:20:49 +0100 Subject: [PATCH 0942/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.115.2 (#992) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.115.1` -> `1.115.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.2/compatibility-slim/1.115.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.2/confidence-slim/1.115.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.115.2`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​11152-httpsgithubcomgoogleapisjava-pubsubcomparev11151v11152-2022-02-03) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.115.1...v1.115.2)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 399a18ccc2f3..af41285a4c86 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.115.1 + 1.115.2 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5e132e7eb55c..0ea1606548c8 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.115.1 + 1.115.2 From 7445df118f23068b7a4072752552213ec423f764 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 10 Feb 2022 17:42:54 +0000 Subject: [PATCH 0943/2363] chore(main): release 1.115.4 (#1005) :robot: I have created a release *beep* *boop* --- ### [1.115.4](https://github.com/googleapis/java-pubsub/compare/v1.115.3...v1.115.4) (2022-02-10) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.5.1 ([#1004](https://github.com/googleapis/java-pubsub/issues/1004)) ([bc7778e](https://github.com/googleapis/java-pubsub/commit/bc7778e6525f9860a92d29321273e9878653fd06)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index d97ce5870dce..2a59e6389c95 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.115.4](https://github.com/googleapis/java-pubsub/compare/v1.115.3...v1.115.4) (2022-02-10) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.5.1 ([#1004](https://github.com/googleapis/java-pubsub/issues/1004)) ([8f6879b](https://github.com/googleapis/java-pubsub/commit/8f6879b8021bf8e6b351249a0352fd0537110fcd)) + ### [1.115.3](https://github.com/googleapis/java-pubsub/compare/v1.115.2...v1.115.3) (2022-02-08) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4779a4147596..afcfa58d869a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.4-SNAPSHOT + 1.115.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.4-SNAPSHOT + 1.115.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.4-SNAPSHOT + 1.97.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.4-SNAPSHOT + 1.97.4
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d99108098d27..1a79b7ab82c2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.4-SNAPSHOT + 1.115.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.4-SNAPSHOT + 1.115.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b453e795449d..ecbb3fb93726 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.4-SNAPSHOT + 1.97.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.4-SNAPSHOT + 1.115.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e30a5c4521f6..3d452c258754 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.4-SNAPSHOT + 1.115.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.4-SNAPSHOT + 1.97.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.4-SNAPSHOT + 1.97.4 com.google.cloud google-cloud-pubsub - 1.115.4-SNAPSHOT + 1.115.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a9a807686b58..4d8bde8360d3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.4-SNAPSHOT + 1.97.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.4-SNAPSHOT + 1.115.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cfd5b06e78c2..396de8da5ad1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.4-SNAPSHOT + 1.115.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 86f9cde38c68..9d696f637d8a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.3:1.115.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.97.3:1.97.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.97.3:1.97.4-SNAPSHOT +google-cloud-pubsub:1.115.4:1.115.4 +grpc-google-cloud-pubsub-v1:1.97.4:1.97.4 +proto-google-cloud-pubsub-v1:1.97.4:1.97.4 From 6411c1dea3ec7fcb1bdb9115c4bf241d417969ed Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 10 Feb 2022 19:03:01 +0000 Subject: [PATCH 0944/2363] chore(main): release 1.115.5-SNAPSHOT (#1007) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index afcfa58d869a..196cfe0c4134 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.4 + 1.115.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.4 + 1.115.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.4 + 1.97.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.4 + 1.97.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1a79b7ab82c2..7cdacb004f09 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.4 + 1.115.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.4 + 1.115.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ecbb3fb93726..ed156f41ad20 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.4 + 1.97.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.4 + 1.115.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3d452c258754..4c79f9091914 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.4 + 1.115.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.4 + 1.97.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.4 + 1.97.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.115.4 + 1.115.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4d8bde8360d3..339c4cd8f814 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.4 + 1.97.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.4 + 1.115.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 396de8da5ad1..db1f515c9770 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.4 + 1.115.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9d696f637d8a..e321575f9775 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.4:1.115.4 -grpc-google-cloud-pubsub-v1:1.97.4:1.97.4 -proto-google-cloud-pubsub-v1:1.97.4:1.97.4 +google-cloud-pubsub:1.115.4:1.115.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.97.4:1.97.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.97.4:1.97.5-SNAPSHOT From b8d7ed4284ed09b15dffe68c6109c7dca8a220b0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 20:38:50 +0100 Subject: [PATCH 0945/2363] deps: update actions/github-script action to v6 (#1010) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/github-script](https://togithub.com/actions/github-script) | action | major | `v5` -> `v6` | --- ### Release Notes
    actions/github-script ### [`v6`](https://togithub.com/actions/github-script/compare/v5...v6) [Compare Source](https://togithub.com/actions/github-script/compare/v5...v6)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index af41285a4c86..aae8cd286393 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.115.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.115.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.4" ``` ## Authentication From c262e5ca4eddace058cf43df82f51ad54df8b22d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 20:38:54 +0100 Subject: [PATCH 0946/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.115.3 (#1006) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.115.2` -> `1.115.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.3/compatibility-slim/1.115.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.3/confidence-slim/1.115.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.115.3`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​11153-httpsgithubcomgoogleapisjava-pubsubcomparev11152v11153-2022-02-08) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.115.2...v1.115.3)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index aae8cd286393..bd0318bb10e6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.115.2 + 1.115.3 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0ea1606548c8..8230af13ccac 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.115.2 + 1.115.3 From 26be487fdcf5191d980e52dc0fbeb27976602e17 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 20:39:13 +0100 Subject: [PATCH 0947/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.5.3 (#1008) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.1` -> `2.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/compatibility-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.3/confidence-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.5.3`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​253-httpsgithubcomgoogleapisjava-corecomparev252v253-2022-02-10) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.2...v2.5.3) ### [`v2.5.2`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​252-httpsgithubcomgoogleapisjava-corecomparev251v252-2022-02-09) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.1...v2.5.2)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8230af13ccac..ad63679d43d3 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.5.1 + 2.5.3 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index db1f515c9770..b5b1249668c2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.5.1 + 2.5.3 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 18e0670f6c59..958cee80fa49 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.5.1 + 2.5.3 tests From 37f651786df87dc9991786e0444df030d3201a30 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 20:56:50 +0100 Subject: [PATCH 0948/2363] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.2 (#1009) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-javadoc-plugin)) | `3.3.1` -> `3.3.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/compatibility-slim/3.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/confidence-slim/3.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4c79f9091914..fc1f437ee365 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -172,7 +172,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.1 + 3.3.2 html From d414e61668e68be693cccbc9d6c4d8d09dfadc3c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 20:54:57 +0000 Subject: [PATCH 0949/2363] chore(main): release 1.115.5 (#1012) :robot: I have created a release *beep* *boop* --- ### [1.115.5](https://github.com/googleapis/java-pubsub/compare/v1.115.4...v1.115.5) (2022-02-11) ### Dependencies * update actions/github-script action to v6 ([#1010](https://github.com/googleapis/java-pubsub/issues/1010)) ([b8d7ed4](https://github.com/googleapis/java-pubsub/commit/b8d7ed4284ed09b15dffe68c6109c7dca8a220b0)) * update dependency com.google.cloud:google-cloud-core to v2.5.3 ([#1008](https://github.com/googleapis/java-pubsub/issues/1008)) ([26be487](https://github.com/googleapis/java-pubsub/commit/26be487fdcf5191d980e52dc0fbeb27976602e17)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 2a59e6389c95..ea74c5671ba3 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [1.115.5](https://github.com/googleapis/java-pubsub/compare/v1.115.4...v1.115.5) (2022-02-11) + + +### Dependencies + +* update actions/github-script action to v6 ([#1010](https://github.com/googleapis/java-pubsub/issues/1010)) ([04ee4c9](https://github.com/googleapis/java-pubsub/commit/04ee4c98bd2c09bbb58bc73c501386c2e7fc927d)) +* update dependency com.google.cloud:google-cloud-core to v2.5.3 ([#1008](https://github.com/googleapis/java-pubsub/issues/1008)) ([0eacfb0](https://github.com/googleapis/java-pubsub/commit/0eacfb0b54f82cf05aa3d100a59d11c5fe0c40ae)) + ### [1.115.4](https://github.com/googleapis/java-pubsub/compare/v1.115.3...v1.115.4) (2022-02-10) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 196cfe0c4134..90bacd8e1fe8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.5-SNAPSHOT + 1.115.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.5-SNAPSHOT + 1.115.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.5-SNAPSHOT + 1.97.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.5-SNAPSHOT + 1.97.5
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7cdacb004f09..2584e6bfb3ac 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.5-SNAPSHOT + 1.115.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.5-SNAPSHOT + 1.115.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ed156f41ad20..2d65d634b532 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.5-SNAPSHOT + 1.97.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.5-SNAPSHOT + 1.115.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index fc1f437ee365..655f67bc9404 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.5-SNAPSHOT + 1.115.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.5-SNAPSHOT + 1.97.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.5-SNAPSHOT + 1.97.5 com.google.cloud google-cloud-pubsub - 1.115.5-SNAPSHOT + 1.115.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 339c4cd8f814..b9358f02f4f9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.5-SNAPSHOT + 1.97.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.5-SNAPSHOT + 1.115.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b5b1249668c2..6328e0c59e48 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.5-SNAPSHOT + 1.115.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e321575f9775..a50dcad55960 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.4:1.115.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.97.4:1.97.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.97.4:1.97.5-SNAPSHOT +google-cloud-pubsub:1.115.5:1.115.5 +grpc-google-cloud-pubsub-v1:1.97.5:1.97.5 +proto-google-cloud-pubsub-v1:1.97.5:1.97.5 From f23f324a36bd60338a30bda620083ab36a141299 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 22:32:44 +0100 Subject: [PATCH 0950/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.115.4 (#1013) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.115.3` -> `1.115.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.4/compatibility-slim/1.115.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.4/confidence-slim/1.115.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.115.4`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​11154-httpsgithubcomgoogleapisjava-pubsubcomparev11153v11154-2022-02-10) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.115.3...v1.115.4)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bd0318bb10e6..b8a97cfad9e9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.115.3 + 1.115.4 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ad63679d43d3..164312830357 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.115.3 + 1.115.4 From 63b47ad7ebb12779a9e38387bd154b7ece96e2ab Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 21:52:53 +0000 Subject: [PATCH 0951/2363] chore(main): release 1.115.6-SNAPSHOT (#1014) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 90bacd8e1fe8..b06f48e0d4b1 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.5 + 1.115.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.5 + 1.115.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.5 + 1.97.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.5 + 1.97.6-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2584e6bfb3ac..0342b1e43d29 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.5 + 1.115.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.5 + 1.115.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2d65d634b532..e668eb428eae 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.5 + 1.97.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.5 + 1.115.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 655f67bc9404..a1b0669ca498 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.5 + 1.115.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.5 + 1.97.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.5 + 1.97.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.115.5 + 1.115.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b9358f02f4f9..2194850ad7d6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.5 + 1.97.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.5 + 1.115.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6328e0c59e48..576bee4d08c7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.5 + 1.115.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a50dcad55960..c964f7695818 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.5:1.115.5 -grpc-google-cloud-pubsub-v1:1.97.5:1.97.5 -proto-google-cloud-pubsub-v1:1.97.5:1.97.5 +google-cloud-pubsub:1.115.5:1.115.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.97.5:1.97.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.97.5:1.97.6-SNAPSHOT From 7fa3a7a7c601e433bc552e0ad2d94464bfc6bfec Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Feb 2022 22:45:20 +0100 Subject: [PATCH 0952/2363] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.9 (#1015) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | org.sonatype.plugins:nexus-staging-maven-plugin | `1.6.8` -> `1.6.9` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/compatibility-slim/1.6.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/confidence-slim/1.6.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b8a97cfad9e9..d63d627228cd 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.115.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.115.5' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.5" ``` ## Authentication diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 81c4384f68f6..c636a6f368e5 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -61,7 +61,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.8 + 1.6.9 true From 6312546638dab1304966f5f1ad3fe581573ae7d3 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Tue, 15 Feb 2022 08:47:15 -0800 Subject: [PATCH 0953/2363] samples: DEFAULT_REQUEST_BYTES_THRESHOLD default (#1019) * samples: DEFAULT_REQUEST_BYTES_THRESHOLD default * typo --- .../src/main/java/pubsub/PublishWithBatchSettingsExample.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java index 176c36f5d48e..7a2252d76c8c 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java @@ -49,8 +49,8 @@ public static void publishWithBatchSettingsExample(String projectId, String topi try { // Batch settings control how the publisher batches messages - long requestBytesThreshold = 5000L; // default : 1 byte - long messageCountBatchSize = 100L; // default : 1 message + long requestBytesThreshold = 5000L; // default : 1000 bytes + long messageCountBatchSize = 100L; // default : 100 message Duration publishDelayThreshold = Duration.ofMillis(100); // default : 1 ms From 98d8d93a6008a9d9726f37d0248a214fbb52b7fa Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 17:56:42 +0100 Subject: [PATCH 0954/2363] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.10 (#1020) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.9` -> `1.6.10` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/compatibility-slim/1.6.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/confidence-slim/1.6.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    sonatype/nexus-maven-plugins ### [`v1.6.10`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.9...release-1.6.10) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.9...release-1.6.10)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index c636a6f368e5..07de59fc57da 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -61,7 +61,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.9 + 1.6.10 true From 4a938dd1b8e9e3412913e4c61179fa9a86b5317b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 19:48:40 +0100 Subject: [PATCH 0955/2363] build(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.10.0 (#1018) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-compiler-plugin](https://maven.apache.org/plugins/) | `3.9.0` -> `3.10.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-compiler-plugin/3.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-compiler-plugin/3.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-compiler-plugin/3.10.0/compatibility-slim/3.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-compiler-plugin/3.10.0/confidence-slim/3.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 0342b1e43d29..27e436e44e31 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -159,7 +159,7 @@ maven-compiler-plugin - 3.9.0 + 3.10.0 1.8 1.8 From 9c46327eccc56206fa4f4748b493e9d8cadfc343 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 19:52:48 +0100 Subject: [PATCH 0956/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.115.5 (#1016) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.115.4` -> `1.115.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.5/compatibility-slim/1.115.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.115.5/confidence-slim/1.115.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.115.5`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​11155-httpsgithubcomgoogleapisjava-pubsubcomparev11154v11155-2022-02-11) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.115.4...v1.115.5)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d63d627228cd..c74e77759212 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.115.4 + 1.115.5 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 164312830357..7a8d960d0fac 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.115.4 + 1.115.5 From 7c684ba931f047d6c9686e4b8d8a94b56f6d5e87 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 17 Feb 2022 14:36:51 +0100 Subject: [PATCH 0957/2363] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.11 (#1021) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.10` -> `1.6.11` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/compatibility-slim/1.6.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/confidence-slim/1.6.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    sonatype/nexus-maven-plugins ### [`v1.6.11`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.10...release-1.6.11) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.10...release-1.6.11)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 07de59fc57da..c3399fdec531 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -61,7 +61,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.10 + 1.6.11 true From f777f9094e2377a9a50735575b3ca0c688b553da Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 25 Feb 2022 22:00:40 +0000 Subject: [PATCH 0958/2363] ci: pull request template includes sample format (#1357) (#1030) Source-Link: https://github.com/googleapis/synthtool/commit/e122cb03ea37652946651346736d99b9dcc4311f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.github/PULL_REQUEST_TEMPLATE.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 9786771c434b..9351fdfb9ac8 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b + digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 diff --git a/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md b/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md index f2a217cb7efb..66a507f7e74a 100644 --- a/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md +++ b/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md @@ -5,3 +5,6 @@ Thank you for opening a Pull Request! Before submitting your PR, there are a few - [ ] Appropriate docs were updated (if necessary) Fixes # ☕️ + +If you write sample code, please follow the [samples format]( +https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). From db8200ac995e9afa3aea47a6836752f329a21a2d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 12:39:33 -0500 Subject: [PATCH 0959/2363] fix: removing misspelled field, add correctly spelled field (#1011) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix!: removing misspelled field, add correctly spelled field PiperOrigin-RevId: 428023165 Source-Link: https://github.com/googleapis/googleapis/commit/63d374da58fba5cf1308cf1df74b0b2afa1454f1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6be9b6c6b6c85face18adbdbdd3fc06356810b4a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmJlOWI2YzZiNmM4NWZhY2UxOGFkYmRiZGQzZmMwNjM1NjgxMGI0YSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Tomo Suzuki --- .../pubsub/v1/SubscriptionAdminClient.java | 2 + .../v1/SubscriptionAdminClientTest.java | 11 + .../com/google/pubsub/v1/PubsubProto.java | 462 +- .../pubsub/v1/StreamingPullResponse.java | 4459 +++++++++++++++-- .../v1/StreamingPullResponseOrBuilder.java | 91 + .../com/google/pubsub/v1/Subscription.java | 122 + .../pubsub/v1/SubscriptionOrBuilder.java | 21 + .../main/proto/google/pubsub/v1/pubsub.proto | 50 + 8 files changed, 4471 insertions(+), 747 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index c3090f67d33c..f5dfe6990650 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -488,6 +488,7 @@ public final Subscription createSubscription( * .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) * .setRetryPolicy(RetryPolicy.newBuilder().build()) * .setDetached(true) + * .setEnableExactlyOnceDelivery(true) * .setTopicMessageRetentionDuration(Duration.newBuilder().build()) * .build(); * Subscription response = subscriptionAdminClient.createSubscription(request); @@ -743,6 +744,7 @@ public final Subscription createSubscription( * .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) * .setRetryPolicy(RetryPolicy.newBuilder().build()) * .setDetached(true) + * .setEnableExactlyOnceDelivery(true) * .setTopicMessageRetentionDuration(Duration.newBuilder().build()) * .build(); * ApiFuture future = diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 9d53a7554a03..4fef8c98cde2 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -149,6 +149,7 @@ public void createSubscriptionTest() throws Exception { .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) .setRetryPolicy(RetryPolicy.newBuilder().build()) .setDetached(true) + .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -210,6 +211,7 @@ public void createSubscriptionTest2() throws Exception { .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) .setRetryPolicy(RetryPolicy.newBuilder().build()) .setDetached(true) + .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -271,6 +273,7 @@ public void createSubscriptionTest3() throws Exception { .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) .setRetryPolicy(RetryPolicy.newBuilder().build()) .setDetached(true) + .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -332,6 +335,7 @@ public void createSubscriptionTest4() throws Exception { .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) .setRetryPolicy(RetryPolicy.newBuilder().build()) .setDetached(true) + .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -393,6 +397,7 @@ public void getSubscriptionTest() throws Exception { .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) .setRetryPolicy(RetryPolicy.newBuilder().build()) .setDetached(true) + .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -444,6 +449,7 @@ public void getSubscriptionTest2() throws Exception { .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) .setRetryPolicy(RetryPolicy.newBuilder().build()) .setDetached(true) + .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -495,6 +501,7 @@ public void updateSubscriptionTest() throws Exception { .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) .setRetryPolicy(RetryPolicy.newBuilder().build()) .setDetached(true) + .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -1015,6 +1022,10 @@ public void streamingPullTest() throws Exception { StreamingPullResponse expectedResponse = StreamingPullResponse.newBuilder() .addAllReceivedMessages(new ArrayList()) + .setAcknowledgeConfirmation( + StreamingPullResponse.AcknowledgeConfirmation.newBuilder().build()) + .setModifyAckDeadlineConfirmation( + StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder().build()) .setSubscriptionProperties( StreamingPullResponse.SubscriptionProperties.newBuilder().build()) .build(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 1404e218e93e..9875c7fe88b6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -187,6 +187,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -304,7 +312,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "is.com/Topic\"]\n\031DetachSubscriptionReques" + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + "googleapis.com/Subscription\"\034\n\032DetachSub" - + "scriptionResponse\"\212\006\n\014Subscription\022\021\n\004na" + + "scriptionResponse\"\260\006\n\014Subscription\022\021\n\004na" + "me\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pu" + "bsub.googleapis.com/Topic\0221\n\013push_config" + "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\022\034\n\024" @@ -318,215 +326,227 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "filter\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\013" + "2\".google.pubsub.v1.DeadLetterPolicy\0223\n\014" + "retry_policy\030\016 \001(\0132\035.google.pubsub.v1.Re" - + "tryPolicy\022\020\n\010detached\030\017 \001(\010\022H\n topic_mes" - + "sage_retention_duration\030\021 \001(\0132\031.google.p" - + "rotobuf.DurationB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsu" - + "b.googleapis.com/Subscription\022/projects/" - + "{project}/subscriptions/{subscription}\"u" - + "\n\013RetryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031" - + ".google.protobuf.Duration\0222\n\017maximum_bac" - + "koff\030\002 \001(\0132\031.google.protobuf.Duration\"L\n" - + "\020DeadLetterPolicy\022\031\n\021dead_letter_topic\030\001" - + " \001(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020E" - + "xpirationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.pr" - + "otobuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_e" - + "ndpoint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.goog" - + "le.pubsub.v1.PushConfig.AttributesEntry\022" - + "<\n\noidc_token\030\003 \001(\0132&.google.pubsub.v1.P" - + "ushConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025se" - + "rvice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 " - + "\001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001B\027\n\025authentication_method\"" - + "m\n\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007me" - + "ssage\030\002 \001(\0132\037.google.pubsub.v1.PubsubMes" - + "sage\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n\026GetSub" - + "scriptionRequest\022@\n\014subscription\030\001 \001(\tB*" - + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" - + "on\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subs" - + "cription\030\001 \001(\0132\036.google.pubsub.v1.Subscr" - + "iptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscr" - + "iptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" - + "+cloudresourcemanager.googleapis.com/Pro" - + "ject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubs" - + "criptions\030\001 \003(\0132\036.google.pubsub.v1.Subsc" - + "ription\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Dele" - + "teSubscriptionRequest\022@\n\014subscription\030\001 " - + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" - + "ription\"\223\001\n\027ModifyPushConfigRequest\022@\n\014s" - + "ubscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.google" - + "apis.com/Subscription\0226\n\013push_config\030\002 \001" - + "(\0132\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001" - + "\n\013PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "!\n\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014ma" - + "x_messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n" - + "\021received_messages\030\001 \003(\0132!.google.pubsub" - + ".v1.ReceivedMessage\"\225\001\n\030ModifyAckDeadlin" - + "eRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" - + "pubsub.googleapis.com/Subscription\022\024\n\007ac" - + "k_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds" - + "\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014sub" + + "tryPolicy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_ex" + + "actly_once_delivery\030\020 \001(\010\022H\n topic_messa" + + "ge_retention_duration\030\021 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub." + + "googleapis.com/Subscription\022/projects/{p" + + "roject}/subscriptions/{subscription}\"u\n\013" + + "RetryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.g" + + "oogle.protobuf.Duration\0222\n\017maximum_backo" + + "ff\030\002 \001(\0132\031.google.protobuf.Duration\"L\n\020D" + + "eadLetterPolicy\022\031\n\021dead_letter_topic\030\001 \001" + + "(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020Exp" + + "irationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.prot" + + "obuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_end" + + "point\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google" + + ".pubsub.v1.PushConfig.AttributesEntry\022<\n" + + "\noidc_token\030\003 \001(\0132&.google.pubsub.v1.Pus" + + "hConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025serv" + + "ice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(" + + "\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001B\027\n\025authentication_method\"m\n" + + "\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007mess" + + "age\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessa" + + "ge\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n\026GetSubsc" + + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subscr" + + "iption\030\001 \001(\0132\036.google.pubsub.v1.Subscrip" + + "tionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscrip" + + "tionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubscr" + + "iptions\030\001 \003(\0132\036.google.pubsub.v1.Subscri" + + "ption\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Delete" + + "SubscriptionRequest\022@\n\014subscription\030\001 \001(" + + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" + + "ption\"\223\001\n\027ModifyPushConfigRequest\022@\n\014sub" + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A" - + "\002\"\251\002\n\024StreamingPullRequest\022@\n\014subscripti" - + "on\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/" - + "Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_" - + "deadline_seconds\030\003 \003(\005\022\037\n\027modify_deadlin" - + "e_ack_ids\030\004 \003(\t\022(\n\033stream_ack_deadline_s" - + "econds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030" - + "max_outstanding_messages\030\007 \001(\003\022\035\n\025max_ou" - + "tstanding_bytes\030\010 \001(\003\"\362\001\n\025StreamingPullR" - + "esponse\022<\n\021received_messages\030\001 \003(\0132!.goo" - + "gle.pubsub.v1.ReceivedMessage\022_\n\027subscri" - + "ption_properties\030\004 \001(\0132>.google.pubsub.v" - + "1.StreamingPullResponse.SubscriptionProp" - + "erties\032:\n\026SubscriptionProperties\022 \n\030mess" - + "age_ordering_enabled\030\002 \001(\010\"\203\002\n\025CreateSna" - + "pshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubs" - + "ub.googleapis.com/Snapshot\022@\n\014subscripti" - + "on\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/" - + "Subscription\022C\n\006labels\030\003 \003(\01323.google.pu" - + "bsub.v1.CreateSnapshotRequest.LabelsEntr" - + "y\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010sn" - + "apshot\030\001 \001(\0132\032.google.pubsub.v1.Snapshot" - + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014\n\004name" - + "\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googl" - + "eapis.com/Topic\022/\n\013expire_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\0226\n\006labels\030\004 \003(\013" - + "2&.google.pubsub.v1.Snapshot.LabelsEntry" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Snap" - + "shot\022\'projects/{project}/snapshots/{snap" - + "shot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030" + + "is.com/Subscription\0226\n\013push_config\030\002 \001(\013" + + "2\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013" + + "PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A" + + "$\n\"pubsub.googleapis.com/Subscription\022!\n" + + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_" + + "messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n\021r" + + "eceived_messages\030\001 \003(\0132!.google.pubsub.v" + + "1.ReceivedMessage\"\225\001\n\030ModifyAckDeadlineR" + + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" + + "bsub.googleapis.com/Subscription\022\024\n\007ack_" + + "ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003" + + " \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subsc" + + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" + + ".com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"" + + "\251\002\n\024StreamingPullRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_de" + + "adline_seconds\030\003 \003(\005\022\037\n\027modify_deadline_" + + "ack_ids\030\004 \003(\t\022(\n\033stream_ack_deadline_sec" + + "onds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030ma" + + "x_outstanding_messages\030\007 \001(\003\022\035\n\025max_outs" + + "tanding_bytes\030\010 \001(\003\"\262\005\n\025StreamingPullRes" + + "ponse\022<\n\021received_messages\030\001 \003(\0132!.googl" + + "e.pubsub.v1.ReceivedMessage\022a\n\030acknowled" + + "ge_confirmation\030\005 \001(\0132?.google.pubsub.v1" + + ".StreamingPullResponse.AcknowledgeConfir" + + "mation\022o\n modify_ack_deadline_confirmati" + + "on\030\003 \001(\0132E.google.pubsub.v1.StreamingPul" + + "lResponse.ModifyAckDeadlineConfirmation\022" + + "_\n\027subscription_properties\030\004 \001(\0132>.googl" + + "e.pubsub.v1.StreamingPullResponse.Subscr" + + "iptionProperties\032j\n\027AcknowledgeConfirmat" + + "ion\022\023\n\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_" + + "ids\030\002 \003(\tB\002\010\001\022\035\n\021unordered_ack_ids\030\003 \003(\t" + + "B\002\010\001\032Q\n\035ModifyAckDeadlineConfirmation\022\023\n" + + "\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_ids\030\002 " + + "\003(\tB\002\010\001\032a\n\026SubscriptionProperties\022%\n\035exa" + + "ctly_once_delivery_enabled\030\001 \001(\010\022 \n\030mess" + + "age_ordering_enabled\030\002 \001(\010J\004\010\002\020\003\"\203\002\n\025Cre" + + "ateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A " + + "\n\036pubsub.googleapis.com/Snapshot\022@\n\014subs" + + "cription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + + "s.com/Subscription\022C\n\006labels\030\003 \003(\01323.goo" + + "gle.pubsub.v1.CreateSnapshotRequest.Labe" + + "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest" + + "\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Sn" + + "apshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014" + + "\n\004name\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub" + + ".googleapis.com/Topic\022/\n\013expire_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\0226\n\006labels" + + "\030\004 \003(\0132&.google.pubsub.v1.Snapshot.Label" + + "sEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.co" + + "m/Snapshot\022\'projects/{project}/snapshots" + + "/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010sna" + + "pshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" + + "om/Snapshot\"\203\001\n\024ListSnapshotsRequest\022D\n\007" + + "project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" + + "ger.googleapis.com/Project\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapsho" + + "tsResponse\022-\n\tsnapshots\030\001 \003(\0132\032.google.p" + + "ubsub.v1.Snapshot\022\027\n\017next_page_token\030\002 \001" + + "(\t\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030" + "\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sna" - + "pshot\"\203\001\n\024ListSnapshotsRequest\022D\n\007projec" - + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" - + "ogleapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapshotsResp" - + "onse\022-\n\tsnapshots\030\001 \003(\0132\032.google.pubsub." - + "v1.Snapshot\022\027\n\017next_page_token\030\002 \001(\t\"Q\n\025" - + "DeleteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB" - + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"" - + "\276\001\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340" - + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\022*\n\004time\030\002 \001(\0132\032.google.protobuf.Timest" - + "ampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubsub.goo" - + "gleapis.com/SnapshotH\000B\010\n\006target\"\016\n\014Seek" - + "Response2\243\013\n\tPublisher\022q\n\013CreateTopic\022\027." - + "google.pubsub.v1.Topic\032\027.google.pubsub.v" - + "1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=projects/*/to" - + "pics/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$.googl" - + "e.pubsub.v1.UpdateTopicRequest\032\027.google." - + "pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topic.name" - + "=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .g" - + "oogle.pubsub.v1.PublishRequest\032!.google." - + "pubsub.v1.PublishResponse\"C\202\323\344\223\002,\"\'/v1/{" - + "topic=projects/*/topics/*}:publish:\001*\332A\016" - + "topic,messages\022w\n\010GetTopic\022!.google.pubs" - + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" - + ".Topic\"/\202\323\344\223\002!\022\037/v1/{topic=projects/*/to" - + "pics/*}\332A\005topic\022\212\001\n\nListTopics\022#.google." - + "pubsub.v1.ListTopicsRequest\032$.google.pub" - + "sub.v1.ListTopicsResponse\"1\202\323\344\223\002!\022\037/v1/{" - + "project=projects/*}/topics\332A\007project\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub." - + "v1.ListTopicSubscriptionsRequest\0320.googl" - + "e.pubsub.v1.ListTopicSubscriptionsRespon" - + "se\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/topics" - + "/*}/subscriptions\332A\005topic\022\252\001\n\022ListTopicS" - + "napshots\022+.google.pubsub.v1.ListTopicSna" - + "pshotsRequest\032,.google.pubsub.v1.ListTop" - + "icSnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{topic=" - + "projects/*/topics/*}/snapshots\332A\005topic\022|" - + "\n\013DeleteTopic\022$.google.pubsub.v1.DeleteT" - + "opicRequest\032\026.google.protobuf.Empty\"/\202\323\344" - + "\223\002!*\037/v1/{topic=projects/*/topics/*}\332A\005t" - + "opic\022\255\001\n\022DetachSubscription\022+.google.pub" - + "sub.v1.DetachSubscriptionRequest\032,.googl" - + "e.pubsub.v1.DetachSubscriptionResponse\"<" - + "\202\323\344\223\0026\"4/v1/{subscription=projects/*/sub" - + "scriptions/*}:detach\032p\312A\025pubsub.googleap" - + "is.com\322AUhttps://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.c" - + "om/auth/pubsub2\240\025\n\nSubscriber\022\264\001\n\022Create" - + "Subscription\022\036.google.pubsub.v1.Subscrip" - + "tion\032\036.google.pubsub.v1.Subscription\"^\202\323" - + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" - + "/*}:\001*\332A+name,topic,push_config,ack_dead" - + "line_seconds\022\241\001\n\017GetSubscription\022(.googl" - + "e.pubsub.v1.GetSubscriptionRequest\032\036.goo" - + "gle.pubsub.v1.Subscription\"D\202\323\344\223\002/\022-/v1/" - + "{subscription=projects/*/subscriptions/*" - + "}\332A\014subscription\022\240\001\n\022UpdateSubscription\022" - + "+.google.pubsub.v1.UpdateSubscriptionReq" - + "uest\032\036.google.pubsub.v1.Subscription\"=\202\323" - + "\344\223\002722/v1/{subscription.name=projects/*/" - + "subscriptions/*}:\001*\022\246\001\n\021ListSubscription" - + "s\022*.google.pubsub.v1.ListSubscriptionsRe" - + "quest\032+.google.pubsub.v1.ListSubscriptio" - + "nsResponse\"8\202\323\344\223\002(\022&/v1/{project=project" - + "s/*}/subscriptions\332A\007project\022\237\001\n\022DeleteS" - + "ubscription\022+.google.pubsub.v1.DeleteSub" - + "scriptionRequest\032\026.google.protobuf.Empty" - + "\"D\202\323\344\223\002/*-/v1/{subscription=projects/*/s" - + "ubscriptions/*}\332A\014subscription\022\317\001\n\021Modif" - + "yAckDeadline\022*.google.pubsub.v1.ModifyAc" - + "kDeadlineRequest\032\026.google.protobuf.Empty" - + "\"v\202\323\344\223\002D\"?/v1/{subscription=projects/*/s" - + "ubscriptions/*}:modifyAckDeadline:\001*\332A)s" - + "ubscription,ack_ids,ack_deadline_seconds" - + "\022\250\001\n\013Acknowledge\022$.google.pubsub.v1.Ackn" - + "owledgeRequest\032\026.google.protobuf.Empty\"[" - + "\202\323\344\223\002>\"9/v1/{subscription=projects/*/sub" - + "scriptions/*}:acknowledge:\001*\332A\024subscript" - + "ion,ack_ids\022\320\001\n\004Pull\022\035.google.pubsub.v1." - + "PullRequest\032\036.google.pubsub.v1.PullRespo" - + "nse\"\210\001\202\323\344\223\0027\"2/v1/{subscription=projects" - + "/*/subscriptions/*}:pull:\001*\332A,subscripti" - + "on,return_immediately,max_messages\332A\031sub" - + "scription,max_messages\022f\n\rStreamingPull\022" - + "&.google.pubsub.v1.StreamingPullRequest\032" - + "\'.google.pubsub.v1.StreamingPullResponse" - + "\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).google.pub" - + "sub.v1.ModifyPushConfigRequest\032\026.google." - + "protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subscriptio" - + "n=projects/*/subscriptions/*}:modifyPush" - + "Config:\001*\332A\030subscription,push_config\022\211\001\n" - + "\013GetSnapshot\022$.google.pubsub.v1.GetSnaps" - + "hotRequest\032\032.google.pubsub.v1.Snapshot\"8" - + "\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsho" - + "ts/*}\332A\010snapshot\022\226\001\n\rListSnapshots\022&.goo" - + "gle.pubsub.v1.ListSnapshotsRequest\032\'.goo" - + "gle.pubsub.v1.ListSnapshotsResponse\"4\202\323\344" - + "\223\002$\022\"/v1/{project=projects/*}/snapshots\332" - + "A\007project\022\227\001\n\016CreateSnapshot\022\'.google.pu" - + "bsub.v1.CreateSnapshotRequest\032\032.google.p" - + "ubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{name=pro" - + "jects/*/snapshots/*}:\001*\332A\021name,subscript" - + "ion\022\214\001\n\016UpdateSnapshot\022\'.google.pubsub.v" - + "1.UpdateSnapshotRequest\032\032.google.pubsub." - + "v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot.name=" - + "projects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSna" - + "pshot\022\'.google.pubsub.v1.DeleteSnapshotR" - + "equest\032\026.google.protobuf.Empty\"8\202\323\344\223\002\'*%" - + "/v1/{snapshot=projects/*/snapshots/*}\332A\010" - + "snapshot\022\204\001\n\004Seek\022\035.google.pubsub.v1.See" - + "kRequest\032\036.google.pubsub.v1.SeekResponse" - + "\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/s" - + "ubscriptions/*}:seek:\001*\032p\312A\025pubsub.googl" - + "eapis.com\322AUhttps://www.googleapis.com/a" - + "uth/cloud-platform,https://www.googleapi" - + "s.com/auth/pubsubB\256\001\n\024com.google.pubsub." - + "v1B\013PubsubProtoP\001Z6google.golang.org/gen" - + "proto/googleapis/pubsub/v1;pubsub\370\001\001\252\002\026G" - + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" - + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" - + "o3" + + "pshot\"\276\001\n\013SeekRequest\022@\n\014subscription\030\001 " + + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" + + "ription\022*\n\004time\030\002 \001(\0132\032.google.protobuf." + + "TimestampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubs" + + "ub.googleapis.com/SnapshotH\000B\010\n\006target\"\016" + + "\n\014SeekResponse2\243\013\n\tPublisher\022q\n\013CreateTo" + + "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu" + + "bsub.v1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=project" + + "s/*/topics/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$" + + ".google.pubsub.v1.UpdateTopicRequest\032\027.g" + + "oogle.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topi" + + "c.name=projects/*/topics/*}:\001*\022\223\001\n\007Publi" + + "sh\022 .google.pubsub.v1.PublishRequest\032!.g" + + "oogle.pubsub.v1.PublishResponse\"C\202\323\344\223\002,\"" + + "\'/v1/{topic=projects/*/topics/*}:publish" + + ":\001*\332A\016topic,messages\022w\n\010GetTopic\022!.googl" + + "e.pubsub.v1.GetTopicRequest\032\027.google.pub" + + "sub.v1.Topic\"/\202\323\344\223\002!\022\037/v1/{topic=project" + + "s/*/topics/*}\332A\005topic\022\212\001\n\nListTopics\022#.g" + + "oogle.pubsub.v1.ListTopicsRequest\032$.goog" + + "le.pubsub.v1.ListTopicsResponse\"1\202\323\344\223\002!\022" + + "\037/v1/{project=projects/*}/topics\332A\007proje" + + "ct\022\272\001\n\026ListTopicSubscriptions\022/.google.p" + + "ubsub.v1.ListTopicSubscriptionsRequest\0320" + + ".google.pubsub.v1.ListTopicSubscriptions" + + "Response\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/" + + "topics/*}/subscriptions\332A\005topic\022\252\001\n\022List" + + "TopicSnapshots\022+.google.pubsub.v1.ListTo" + + "picSnapshotsRequest\032,.google.pubsub.v1.L" + + "istTopicSnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{" + + "topic=projects/*/topics/*}/snapshots\332A\005t" + + "opic\022|\n\013DeleteTopic\022$.google.pubsub.v1.D" + + "eleteTopicRequest\032\026.google.protobuf.Empt" + + "y\"/\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/" + + "*}\332A\005topic\022\255\001\n\022DetachSubscription\022+.goog" + + "le.pubsub.v1.DetachSubscriptionRequest\032," + + ".google.pubsub.v1.DetachSubscriptionResp" + + "onse\"<\202\323\344\223\0026\"4/v1/{subscription=projects" + + "/*/subscriptions/*}:detach\032p\312A\025pubsub.go" + + "ogleapis.com\322AUhttps://www.googleapis.co" + + "m/auth/cloud-platform,https://www.google" + + "apis.com/auth/pubsub2\240\025\n\nSubscriber\022\264\001\n\022" + + "CreateSubscription\022\036.google.pubsub.v1.Su" + + "bscription\032\036.google.pubsub.v1.Subscripti" + + "on\"^\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" + + "ptions/*}:\001*\332A+name,topic,push_config,ac" + + "k_deadline_seconds\022\241\001\n\017GetSubscription\022(" + + ".google.pubsub.v1.GetSubscriptionRequest" + + "\032\036.google.pubsub.v1.Subscription\"D\202\323\344\223\002/" + + "\022-/v1/{subscription=projects/*/subscript" + + "ions/*}\332A\014subscription\022\240\001\n\022UpdateSubscri" + + "ption\022+.google.pubsub.v1.UpdateSubscript" + + "ionRequest\032\036.google.pubsub.v1.Subscripti" + + "on\"=\202\323\344\223\002722/v1/{subscription.name=proje" + + "cts/*/subscriptions/*}:\001*\022\246\001\n\021ListSubscr" + + "iptions\022*.google.pubsub.v1.ListSubscript" + + "ionsRequest\032+.google.pubsub.v1.ListSubsc" + + "riptionsResponse\"8\202\323\344\223\002(\022&/v1/{project=p" + + "rojects/*}/subscriptions\332A\007project\022\237\001\n\022D" + + "eleteSubscription\022+.google.pubsub.v1.Del" + + "eteSubscriptionRequest\032\026.google.protobuf" + + ".Empty\"D\202\323\344\223\002/*-/v1/{subscription=projec" + + "ts/*/subscriptions/*}\332A\014subscription\022\317\001\n" + + "\021ModifyAckDeadline\022*.google.pubsub.v1.Mo" + + "difyAckDeadlineRequest\032\026.google.protobuf" + + ".Empty\"v\202\323\344\223\002D\"?/v1/{subscription=projec" + + "ts/*/subscriptions/*}:modifyAckDeadline:" + + "\001*\332A)subscription,ack_ids,ack_deadline_s" + + "econds\022\250\001\n\013Acknowledge\022$.google.pubsub.v" + + "1.AcknowledgeRequest\032\026.google.protobuf.E" + + "mpty\"[\202\323\344\223\002>\"9/v1/{subscription=projects" + + "/*/subscriptions/*}:acknowledge:\001*\332A\024sub" + + "scription,ack_ids\022\320\001\n\004Pull\022\035.google.pubs" + + "ub.v1.PullRequest\032\036.google.pubsub.v1.Pul" + + "lResponse\"\210\001\202\323\344\223\0027\"2/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:pull:\001*\332A,subs" + + "cription,return_immediately,max_messages" + + "\332A\031subscription,max_messages\022f\n\rStreamin" + + "gPull\022&.google.pubsub.v1.StreamingPullRe" + + "quest\032\'.google.pubsub.v1.StreamingPullRe" + + "sponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).goog" + + "le.pubsub.v1.ModifyPushConfigRequest\032\026.g" + + "oogle.protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subsc" + + "ription=projects/*/subscriptions/*}:modi" + + "fyPushConfig:\001*\332A\030subscription,push_conf" + + "ig\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1.Ge" + + "tSnapshotRequest\032\032.google.pubsub.v1.Snap" + + "shot\"8\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/s" + + "napshots/*}\332A\010snapshot\022\226\001\n\rListSnapshots" + + "\022&.google.pubsub.v1.ListSnapshotsRequest" + + "\032\'.google.pubsub.v1.ListSnapshotsRespons" + + "e\"4\202\323\344\223\002$\022\"/v1/{project=projects/*}/snap" + + "shots\332A\007project\022\227\001\n\016CreateSnapshot\022\'.goo" + + "gle.pubsub.v1.CreateSnapshotRequest\032\032.go" + + "ogle.pubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{na" + + "me=projects/*/snapshots/*}:\001*\332A\021name,sub" + + "scription\022\214\001\n\016UpdateSnapshot\022\'.google.pu" + + "bsub.v1.UpdateSnapshotRequest\032\032.google.p" + + "ubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot" + + ".name=projects/*/snapshots/*}:\001*\022\213\001\n\016Del" + + "eteSnapshot\022\'.google.pubsub.v1.DeleteSna" + + "pshotRequest\032\026.google.protobuf.Empty\"8\202\323" + + "\344\223\002\'*%/v1/{snapshot=projects/*/snapshots" + + "/*}\332A\010snapshot\022\204\001\n\004Seek\022\035.google.pubsub." + + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" + + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" + + "ts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub" + + ".googleapis.com\322AUhttps://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/pubsubB\256\001\n\024com.google.p" + + "ubsub.v1B\013PubsubProtoP\001Z6google.golang.o" + + "rg/genproto/googleapis/pubsub/v1;pubsub\370" + + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" + + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -716,6 +736,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterPolicy", "RetryPolicy", "Detached", + "EnableExactlyOnceDelivery", "TopicMessageRetentionDuration", }); internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = @@ -883,15 +904,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, new java.lang.String[] { - "ReceivedMessages", "SubscriptionProperties", + "ReceivedMessages", + "AcknowledgeConfirmation", + "ModifyAckDeadlineConfirmation", + "SubscriptionProperties", + }); + internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor = + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor, + new java.lang.String[] { + "AckIds", "InvalidAckIds", "UnorderedAckIds", + }); + internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor = + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor, + new java.lang.String[] { + "AckIds", "InvalidAckIds", }); internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor = - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(2); internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor, new java.lang.String[] { - "MessageOrderingEnabled", + "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = getDescriptor().getMessageTypes().get(35); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 2183582d4520..82ca2a8a973a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -83,6 +83,25 @@ private StreamingPullResponse( com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry)); break; } + case 26: + { + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder + subBuilder = null; + if (modifyAckDeadlineConfirmation_ != null) { + subBuilder = modifyAckDeadlineConfirmation_.toBuilder(); + } + modifyAckDeadlineConfirmation_ = + input.readMessage( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(modifyAckDeadlineConfirmation_); + modifyAckDeadlineConfirmation_ = subBuilder.buildPartial(); + } + + break; + } case 34: { com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder subBuilder = @@ -99,6 +118,24 @@ private StreamingPullResponse( subscriptionProperties_ = subBuilder.buildPartial(); } + break; + } + case 42: + { + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder + subBuilder = null; + if (acknowledgeConfirmation_ != null) { + subBuilder = acknowledgeConfirmation_.toBuilder(); + } + acknowledgeConfirmation_ = + input.readMessage( + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(acknowledgeConfirmation_); + acknowledgeConfirmation_ = subBuilder.buildPartial(); + } + break; } default: @@ -138,49 +175,198 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.StreamingPullResponse.Builder.class); } - public interface SubscriptionPropertiesOrBuilder + public interface AcknowledgeConfirmationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) com.google.protobuf.MessageOrBuilder { /** * * *
    -     * True iff message ordering is enabled for this subscription.
    +     * Successfully processed acknowledgement IDs.
          * 
    * - * bool message_ordering_enabled = 2; + * repeated string ack_ids = 1 [ctype = CORD]; * - * @return The messageOrderingEnabled. + * @return A list containing the ackIds. */ - boolean getMessageOrderingEnabled(); + java.util.List getAckIdsList(); + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @return The count of ackIds. + */ + int getAckIdsCount(); + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. + */ + java.lang.String getAckIds(int index); + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. + */ + com.google.protobuf.ByteString getAckIdsBytes(int index); + + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return A list containing the invalidAckIds. + */ + java.util.List getInvalidAckIdsList(); + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return The count of invalidAckIds. + */ + int getInvalidAckIdsCount(); + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The invalidAckIds at the given index. + */ + java.lang.String getInvalidAckIds(int index); + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the invalidAckIds at the given index. + */ + com.google.protobuf.ByteString getInvalidAckIdsBytes(int index); + + /** + * + * + *
    +     * List of acknowledgement IDs that were out of order.
    +     * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @return A list containing the unorderedAckIds. + */ + java.util.List getUnorderedAckIdsList(); + /** + * + * + *
    +     * List of acknowledgement IDs that were out of order.
    +     * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @return The count of unorderedAckIds. + */ + int getUnorderedAckIdsCount(); + /** + * + * + *
    +     * List of acknowledgement IDs that were out of order.
    +     * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The unorderedAckIds at the given index. + */ + java.lang.String getUnorderedAckIds(int index); + /** + * + * + *
    +     * List of acknowledgement IDs that were out of order.
    +     * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the unorderedAckIds at the given index. + */ + com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index); } /** * * *
    -   * Subscription properties sent as part of the response.
    +   * Acknowledgement IDs sent in one or more previous requests to acknowledge a
    +   * previously received message.
        * 
    * - * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} + * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation} */ - public static final class SubscriptionProperties extends com.google.protobuf.GeneratedMessageV3 + public static final class AcknowledgeConfirmation extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) - SubscriptionPropertiesOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) + AcknowledgeConfirmationOrBuilder { private static final long serialVersionUID = 0L; - // Use SubscriptionProperties.newBuilder() to construct. - private SubscriptionProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AcknowledgeConfirmation.newBuilder() to construct. + private AcknowledgeConfirmation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SubscriptionProperties() {} + private AcknowledgeConfirmation() { + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SubscriptionProperties(); + return new AcknowledgeConfirmation(); } @java.lang.Override @@ -188,7 +374,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SubscriptionProperties( + private AcknowledgeConfirmation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -196,6 +382,7 @@ private SubscriptionProperties( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -206,9 +393,34 @@ private SubscriptionProperties( case 0: done = true; break; - case 16: + case 10: { - messageOrderingEnabled_ = input.readBool(); + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ackIds_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + invalidAckIds_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + unorderedAckIds_.add(s); break; } default: @@ -225,6 +437,15 @@ private SubscriptionProperties( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + ackIds_ = ackIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + invalidAckIds_ = invalidAckIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + unorderedAckIds_ = unorderedAckIds_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -232,35 +453,204 @@ private SubscriptionProperties( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable + .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.class, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder.class); } - public static final int MESSAGE_ORDERING_ENABLED_FIELD_NUMBER = 2; - private boolean messageOrderingEnabled_; + public static final int ACK_IDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList ackIds_; /** * * *
    -     * True iff message ordering is enabled for this subscription.
    +     * Successfully processed acknowledgement IDs.
          * 
    * - * bool message_ordering_enabled = 2; + * repeated string ack_ids = 1 [ctype = CORD]; * - * @return The messageOrderingEnabled. + * @return A list containing the ackIds. */ - @java.lang.Override - public boolean getMessageOrderingEnabled() { - return messageOrderingEnabled_; + public com.google.protobuf.ProtocolStringList getAckIdsList() { + return ackIds_; + } + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @return The count of ackIds. + */ + public int getAckIdsCount() { + return ackIds_.size(); + } + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. + */ + public java.lang.String getAckIds(int index) { + return ackIds_.get(index); + } + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. + */ + public com.google.protobuf.ByteString getAckIdsBytes(int index) { + return ackIds_.getByteString(index); + } + + public static final int INVALID_ACK_IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList invalidAckIds_; + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return A list containing the invalidAckIds. + */ + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { + return invalidAckIds_; + } + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return The count of invalidAckIds. + */ + public int getInvalidAckIdsCount() { + return invalidAckIds_.size(); + } + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The invalidAckIds at the given index. + */ + public java.lang.String getInvalidAckIds(int index) { + return invalidAckIds_.get(index); + } + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the invalidAckIds at the given index. + */ + public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { + return invalidAckIds_.getByteString(index); + } + + public static final int UNORDERED_ACK_IDS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList unorderedAckIds_; + /** + * + * + *
    +     * List of acknowledgement IDs that were out of order.
    +     * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @return A list containing the unorderedAckIds. + */ + public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { + return unorderedAckIds_; + } + /** + * + * + *
    +     * List of acknowledgement IDs that were out of order.
    +     * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @return The count of unorderedAckIds. + */ + public int getUnorderedAckIdsCount() { + return unorderedAckIds_.size(); + } + /** + * + * + *
    +     * List of acknowledgement IDs that were out of order.
    +     * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The unorderedAckIds at the given index. + */ + public java.lang.String getUnorderedAckIds(int index) { + return unorderedAckIds_.get(index); + } + /** + * + * + *
    +     * List of acknowledgement IDs that were out of order.
    +     * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the unorderedAckIds at the given index. + */ + public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { + return unorderedAckIds_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -277,8 +667,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (messageOrderingEnabled_ != false) { - output.writeBool(2, messageOrderingEnabled_); + for (int i = 0; i < ackIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackIds_.getRaw(i)); + } + for (int i = 0; i < invalidAckIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, invalidAckIds_.getRaw(i)); + } + for (int i = 0; i < unorderedAckIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unorderedAckIds_.getRaw(i)); } unknownFields.writeTo(output); } @@ -289,8 +685,29 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (messageOrderingEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, messageOrderingEnabled_); + { + int dataSize = 0; + for (int i = 0; i < ackIds_.size(); i++) { + dataSize += computeStringSizeNoTag(ackIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getAckIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < invalidAckIds_.size(); i++) { + dataSize += computeStringSizeNoTag(invalidAckIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getInvalidAckIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < unorderedAckIds_.size(); i++) { + dataSize += computeStringSizeNoTag(unorderedAckIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnorderedAckIdsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,13 +719,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties)) { + if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)) { return super.equals(obj); } - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other = - (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) obj; + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation other = + (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) obj; - if (getMessageOrderingEnabled() != other.getMessageOrderingEnabled()) return false; + if (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false; + if (!getUnorderedAckIdsList().equals(other.getUnorderedAckIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -320,66 +739,76 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MESSAGE_ORDERING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMessageOrderingEnabled()); + if (getAckIdsCount() > 0) { + hash = (37 * hash) + ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getAckIdsList().hashCode(); + } + if (getInvalidAckIdsCount() > 0) { + hash = (37 * hash) + INVALID_ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getInvalidAckIdsList().hashCode(); + } + if (getUnorderedAckIdsCount() > 0) { + hash = (37 * hash) + UNORDERED_ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getUnorderedAckIdsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -387,12 +816,12 @@ public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -410,7 +839,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties prototype) { + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -429,33 +858,34 @@ protected Builder newBuilderForType( * * *
    -     * Subscription properties sent as part of the response.
    +     * Acknowledgement IDs sent in one or more previous requests to acknowledge a
    +     * previously received message.
          * 
    * - * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} + * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) - com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable + .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.class, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder.class); } // Construct using - // com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder() + // com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -472,27 +902,31 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - messageOrderingEnabled_ = false; - + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor; } @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getDefaultInstanceForType() { - return com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + return com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation .getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties build() { - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = buildPartial(); + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation build() { + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -500,10 +934,25 @@ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties build() } @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties buildPartial() { - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = - new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(this); - result.messageOrderingEnabled_ = messageOrderingEnabled_; + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation buildPartial() { + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result = + new com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + ackIds_ = ackIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ackIds_ = ackIds_; + if (((bitField0_ & 0x00000002) != 0)) { + invalidAckIds_ = invalidAckIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.invalidAckIds_ = invalidAckIds_; + if (((bitField0_ & 0x00000004) != 0)) { + unorderedAckIds_ = unorderedAckIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.unorderedAckIds_ = unorderedAckIds_; onBuilt(); return result; } @@ -545,9 +994,9 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) { + if (other instanceof com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) { return mergeFrom( - (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) other); + (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) other); } else { super.mergeFrom(other); return this; @@ -555,12 +1004,39 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other) { + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation other) { if (other - == com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + == com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation .getDefaultInstance()) return this; - if (other.getMessageOrderingEnabled() != false) { - setMessageOrderingEnabled(other.getMessageOrderingEnabled()); + if (!other.ackIds_.isEmpty()) { + if (ackIds_.isEmpty()) { + ackIds_ = other.ackIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAckIdsIsMutable(); + ackIds_.addAll(other.ackIds_); + } + onChanged(); + } + if (!other.invalidAckIds_.isEmpty()) { + if (invalidAckIds_.isEmpty()) { + invalidAckIds_ = other.invalidAckIds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInvalidAckIdsIsMutable(); + invalidAckIds_.addAll(other.invalidAckIds_); + } + onChanged(); + } + if (!other.unorderedAckIds_.isEmpty()) { + if (unorderedAckIds_.isEmpty()) { + unorderedAckIds_ = other.unorderedAckIds_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureUnorderedAckIdsIsMutable(); + unorderedAckIds_.addAll(other.unorderedAckIds_); + } + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -577,12 +1053,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parsedMessage = null; + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -593,37 +1069,94 @@ public Builder mergeFrom( return this; } - private boolean messageOrderingEnabled_; + private int bitField0_; + + private com.google.protobuf.LazyStringList ackIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAckIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); + bitField0_ |= 0x00000001; + } + } /** * * *
    -       * True iff message ordering is enabled for this subscription.
    +       * Successfully processed acknowledgement IDs.
            * 
    * - * bool message_ordering_enabled = 2; + * repeated string ack_ids = 1 [ctype = CORD]; * - * @return The messageOrderingEnabled. + * @return A list containing the ackIds. */ - @java.lang.Override - public boolean getMessageOrderingEnabled() { - return messageOrderingEnabled_; + public com.google.protobuf.ProtocolStringList getAckIdsList() { + return ackIds_.getUnmodifiableView(); } /** * * *
    -       * True iff message ordering is enabled for this subscription.
    +       * Successfully processed acknowledgement IDs.
            * 
    * - * bool message_ordering_enabled = 2; + * repeated string ack_ids = 1 [ctype = CORD]; * - * @param value The messageOrderingEnabled to set. + * @return The count of ackIds. + */ + public int getAckIdsCount() { + return ackIds_.size(); + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. + */ + public java.lang.String getAckIds(int index) { + return ackIds_.get(index); + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. + */ + public com.google.protobuf.ByteString getAckIdsBytes(int index) { + return ackIds_.getByteString(index); + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index to set the value at. + * @param value The ackIds to set. * @return This builder for chaining. */ - public Builder setMessageOrderingEnabled(boolean value) { - - messageOrderingEnabled_ = value; + public Builder setAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); + ackIds_.set(index, value); onChanged(); return this; } @@ -631,142 +1164,2488 @@ public Builder setMessageOrderingEnabled(boolean value) { * * *
    -       * True iff message ordering is enabled for this subscription.
    +       * Successfully processed acknowledgement IDs.
            * 
    * - * bool message_ordering_enabled = 2; + * repeated string ack_ids = 1 [ctype = CORD]; * + * @param value The ackIds to add. * @return This builder for chaining. */ - public Builder clearMessageOrderingEnabled() { - - messageOrderingEnabled_ = false; + public Builder addAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); + ackIds_.add(value); onChanged(); return this; } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param values The ackIds to add. + * @return This builder for chaining. + */ + public Builder addAllAckIds(java.lang.Iterable values) { + ensureAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); + onChanged(); + return this; } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @return This builder for chaining. + */ + public Builder clearAckIds() { + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param value The bytes of the ackIds to add. + * @return This builder for chaining. + */ + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAckIdsIsMutable(); + ackIds_.add(value); + onChanged(); + return this; } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) - } - - // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) - private static final com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(); - } - - public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubscriptionProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubscriptionProperties(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + private com.google.protobuf.LazyStringList invalidAckIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; - public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; - private java.util.List receivedMessages_; - /** - * - * - *
    -   * Received Pub/Sub messages. This will not be empty.
    -   * 
    - * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; - */ - @java.lang.Override - public java.util.List getReceivedMessagesList() { - return receivedMessages_; - } - /** - * - * - *
    -   * Received Pub/Sub messages. This will not be empty.
    -   * 
    - * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; - */ - @java.lang.Override - public java.util.List - getReceivedMessagesOrBuilderList() { - return receivedMessages_; - } - /** - * - * - *
    -   * Received Pub/Sub messages. This will not be empty.
    -   * 
    - * + private void ensureInvalidAckIdsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return A list containing the invalidAckIds. + */ + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { + return invalidAckIds_.getUnmodifiableView(); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return The count of invalidAckIds. + */ + public int getInvalidAckIdsCount() { + return invalidAckIds_.size(); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The invalidAckIds at the given index. + */ + public java.lang.String getInvalidAckIds(int index) { + return invalidAckIds_.get(index); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the invalidAckIds at the given index. + */ + public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { + return invalidAckIds_.getByteString(index); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index to set the value at. + * @param value The invalidAckIds to set. + * @return This builder for chaining. + */ + public Builder setInvalidAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); + invalidAckIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param value The invalidAckIds to add. + * @return This builder for chaining. + */ + public Builder addInvalidAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); + invalidAckIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param values The invalidAckIds to add. + * @return This builder for chaining. + */ + public Builder addAllInvalidAckIds(java.lang.Iterable values) { + ensureInvalidAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidAckIds_); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return This builder for chaining. + */ + public Builder clearInvalidAckIds() { + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param value The bytes of the invalidAckIds to add. + * @return This builder for chaining. + */ + public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInvalidAckIdsIsMutable(); + invalidAckIds_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList unorderedAckIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureUnorderedAckIdsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList(unorderedAckIds_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
    +       * List of acknowledgement IDs that were out of order.
    +       * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @return A list containing the unorderedAckIds. + */ + public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { + return unorderedAckIds_.getUnmodifiableView(); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were out of order.
    +       * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @return The count of unorderedAckIds. + */ + public int getUnorderedAckIdsCount() { + return unorderedAckIds_.size(); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were out of order.
    +       * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The unorderedAckIds at the given index. + */ + public java.lang.String getUnorderedAckIds(int index) { + return unorderedAckIds_.get(index); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were out of order.
    +       * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the unorderedAckIds at the given index. + */ + public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { + return unorderedAckIds_.getByteString(index); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were out of order.
    +       * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @param index The index to set the value at. + * @param value The unorderedAckIds to set. + * @return This builder for chaining. + */ + public Builder setUnorderedAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnorderedAckIdsIsMutable(); + unorderedAckIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were out of order.
    +       * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @param value The unorderedAckIds to add. + * @return This builder for chaining. + */ + public Builder addUnorderedAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnorderedAckIdsIsMutable(); + unorderedAckIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were out of order.
    +       * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @param values The unorderedAckIds to add. + * @return This builder for chaining. + */ + public Builder addAllUnorderedAckIds(java.lang.Iterable values) { + ensureUnorderedAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unorderedAckIds_); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were out of order.
    +       * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @return This builder for chaining. + */ + public Builder clearUnorderedAckIds() { + unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were out of order.
    +       * 
    + * + * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * + * @param value The bytes of the unorderedAckIds to add. + * @return This builder for chaining. + */ + public Builder addUnorderedAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnorderedAckIdsIsMutable(); + unorderedAckIds_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) + private static final com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation(); + } + + public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcknowledgeConfirmation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AcknowledgeConfirmation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModifyAckDeadlineConfirmationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @return A list containing the ackIds. + */ + java.util.List getAckIdsList(); + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @return The count of ackIds. + */ + int getAckIdsCount(); + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. + */ + java.lang.String getAckIds(int index); + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. + */ + com.google.protobuf.ByteString getAckIdsBytes(int index); + + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return A list containing the invalidAckIds. + */ + java.util.List getInvalidAckIdsList(); + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return The count of invalidAckIds. + */ + int getInvalidAckIdsCount(); + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The invalidAckIds at the given index. + */ + java.lang.String getInvalidAckIds(int index); + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the invalidAckIds at the given index. + */ + com.google.protobuf.ByteString getInvalidAckIdsBytes(int index); + } + /** + * + * + *
    +   * Acknowledgement IDs sent in one or more previous requests to modify the
    +   * deadline for a specific message.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation} + */ + public static final class ModifyAckDeadlineConfirmation + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) + ModifyAckDeadlineConfirmationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModifyAckDeadlineConfirmation.newBuilder() to construct. + private ModifyAckDeadlineConfirmation( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModifyAckDeadlineConfirmation() { + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModifyAckDeadlineConfirmation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ModifyAckDeadlineConfirmation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + ackIds_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + invalidAckIds_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + ackIds_ = ackIds_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + invalidAckIds_ = invalidAckIds_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.class, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder + .class); + } + + public static final int ACK_IDS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList ackIds_; + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @return A list containing the ackIds. + */ + public com.google.protobuf.ProtocolStringList getAckIdsList() { + return ackIds_; + } + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @return The count of ackIds. + */ + public int getAckIdsCount() { + return ackIds_.size(); + } + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. + */ + public java.lang.String getAckIds(int index) { + return ackIds_.get(index); + } + /** + * + * + *
    +     * Successfully processed acknowledgement IDs.
    +     * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. + */ + public com.google.protobuf.ByteString getAckIdsBytes(int index) { + return ackIds_.getByteString(index); + } + + public static final int INVALID_ACK_IDS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList invalidAckIds_; + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return A list containing the invalidAckIds. + */ + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { + return invalidAckIds_; + } + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return The count of invalidAckIds. + */ + public int getInvalidAckIdsCount() { + return invalidAckIds_.size(); + } + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The invalidAckIds at the given index. + */ + public java.lang.String getInvalidAckIds(int index) { + return invalidAckIds_.get(index); + } + /** + * + * + *
    +     * List of acknowledgement IDs that were malformed or whose acknowledgement
    +     * deadline has expired.
    +     * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the invalidAckIds at the given index. + */ + public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { + return invalidAckIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < ackIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackIds_.getRaw(i)); + } + for (int i = 0; i < invalidAckIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, invalidAckIds_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < ackIds_.size(); i++) { + dataSize += computeStringSizeNoTag(ackIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getAckIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < invalidAckIds_.size(); i++) { + dataSize += computeStringSizeNoTag(invalidAckIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getInvalidAckIdsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)) { + return super.equals(obj); + } + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation other = + (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) obj; + + if (!getAckIdsList().equals(other.getAckIdsList())) return false; + if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAckIdsCount() > 0) { + hash = (37 * hash) + ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getAckIdsList().hashCode(); + } + if (getInvalidAckIdsCount() > 0) { + hash = (37 * hash) + INVALID_ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getInvalidAckIdsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Acknowledgement IDs sent in one or more previous requests to modify the
    +     * deadline for a specific message.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.class, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getDefaultInstanceForType() { + return com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation build() { + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + buildPartial() { + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result = + new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + ackIds_ = ackIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ackIds_ = ackIds_; + if (((bitField0_ & 0x00000002) != 0)) { + invalidAckIds_ = invalidAckIds_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.invalidAckIds_ = invalidAckIds_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) { + return mergeFrom( + (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation other) { + if (other + == com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance()) return this; + if (!other.ackIds_.isEmpty()) { + if (ackIds_.isEmpty()) { + ackIds_ = other.ackIds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAckIdsIsMutable(); + ackIds_.addAll(other.ackIds_); + } + onChanged(); + } + if (!other.invalidAckIds_.isEmpty()) { + if (invalidAckIds_.isEmpty()) { + invalidAckIds_ = other.invalidAckIds_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInvalidAckIdsIsMutable(); + invalidAckIds_.addAll(other.invalidAckIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList ackIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureAckIdsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @return A list containing the ackIds. + */ + public com.google.protobuf.ProtocolStringList getAckIdsList() { + return ackIds_.getUnmodifiableView(); + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @return The count of ackIds. + */ + public int getAckIdsCount() { + return ackIds_.size(); + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The ackIds at the given index. + */ + public java.lang.String getAckIds(int index) { + return ackIds_.get(index); + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the ackIds at the given index. + */ + public com.google.protobuf.ByteString getAckIdsBytes(int index) { + return ackIds_.getByteString(index); + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param index The index to set the value at. + * @param value The ackIds to set. + * @return This builder for chaining. + */ + public Builder setAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); + ackIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param value The ackIds to add. + * @return This builder for chaining. + */ + public Builder addAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAckIdsIsMutable(); + ackIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param values The ackIds to add. + * @return This builder for chaining. + */ + public Builder addAllAckIds(java.lang.Iterable values) { + ensureAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); + onChanged(); + return this; + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @return This builder for chaining. + */ + public Builder clearAckIds() { + ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * Successfully processed acknowledgement IDs.
    +       * 
    + * + * repeated string ack_ids = 1 [ctype = CORD]; + * + * @param value The bytes of the ackIds to add. + * @return This builder for chaining. + */ + public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAckIdsIsMutable(); + ackIds_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList invalidAckIds_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureInvalidAckIdsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return A list containing the invalidAckIds. + */ + public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { + return invalidAckIds_.getUnmodifiableView(); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return The count of invalidAckIds. + */ + public int getInvalidAckIdsCount() { + return invalidAckIds_.size(); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the element to return. + * @return The invalidAckIds at the given index. + */ + public java.lang.String getInvalidAckIds(int index) { + return invalidAckIds_.get(index); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index of the value to return. + * @return The bytes of the invalidAckIds at the given index. + */ + public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { + return invalidAckIds_.getByteString(index); + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param index The index to set the value at. + * @param value The invalidAckIds to set. + * @return This builder for chaining. + */ + public Builder setInvalidAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); + invalidAckIds_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param value The invalidAckIds to add. + * @return This builder for chaining. + */ + public Builder addInvalidAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvalidAckIdsIsMutable(); + invalidAckIds_.add(value); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param values The invalidAckIds to add. + * @return This builder for chaining. + */ + public Builder addAllInvalidAckIds(java.lang.Iterable values) { + ensureInvalidAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidAckIds_); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @return This builder for chaining. + */ + public Builder clearInvalidAckIds() { + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that were malformed or whose acknowledgement
    +       * deadline has expired.
    +       * 
    + * + * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * + * @param value The bytes of the invalidAckIds to add. + * @return This builder for chaining. + */ + public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInvalidAckIdsIsMutable(); + invalidAckIds_.add(value); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) + private static final com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(); + } + + public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModifyAckDeadlineConfirmation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ModifyAckDeadlineConfirmation(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SubscriptionPropertiesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * True iff exactly once delivery is enabled for this subscription.
    +     * 
    + * + * bool exactly_once_delivery_enabled = 1; + * + * @return The exactlyOnceDeliveryEnabled. + */ + boolean getExactlyOnceDeliveryEnabled(); + + /** + * + * + *
    +     * True iff message ordering is enabled for this subscription.
    +     * 
    + * + * bool message_ordering_enabled = 2; + * + * @return The messageOrderingEnabled. + */ + boolean getMessageOrderingEnabled(); + } + /** + * + * + *
    +   * Subscription properties sent as part of the response.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} + */ + public static final class SubscriptionProperties extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + SubscriptionPropertiesOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubscriptionProperties.newBuilder() to construct. + private SubscriptionProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubscriptionProperties() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubscriptionProperties(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SubscriptionProperties( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + exactlyOnceDeliveryEnabled_ = input.readBool(); + break; + } + case 16: + { + messageOrderingEnabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); + } + + public static final int EXACTLY_ONCE_DELIVERY_ENABLED_FIELD_NUMBER = 1; + private boolean exactlyOnceDeliveryEnabled_; + /** + * + * + *
    +     * True iff exactly once delivery is enabled for this subscription.
    +     * 
    + * + * bool exactly_once_delivery_enabled = 1; + * + * @return The exactlyOnceDeliveryEnabled. + */ + @java.lang.Override + public boolean getExactlyOnceDeliveryEnabled() { + return exactlyOnceDeliveryEnabled_; + } + + public static final int MESSAGE_ORDERING_ENABLED_FIELD_NUMBER = 2; + private boolean messageOrderingEnabled_; + /** + * + * + *
    +     * True iff message ordering is enabled for this subscription.
    +     * 
    + * + * bool message_ordering_enabled = 2; + * + * @return The messageOrderingEnabled. + */ + @java.lang.Override + public boolean getMessageOrderingEnabled() { + return messageOrderingEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (exactlyOnceDeliveryEnabled_ != false) { + output.writeBool(1, exactlyOnceDeliveryEnabled_); + } + if (messageOrderingEnabled_ != false) { + output.writeBool(2, messageOrderingEnabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exactlyOnceDeliveryEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, exactlyOnceDeliveryEnabled_); + } + if (messageOrderingEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, messageOrderingEnabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties)) { + return super.equals(obj); + } + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other = + (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) obj; + + if (getExactlyOnceDeliveryEnabled() != other.getExactlyOnceDeliveryEnabled()) return false; + if (getMessageOrderingEnabled() != other.getMessageOrderingEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EXACTLY_ONCE_DELIVERY_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExactlyOnceDeliveryEnabled()); + hash = (37 * hash) + MESSAGE_ORDERING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMessageOrderingEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Subscription properties sent as part of the response.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.class, + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder.class); + } + + // Construct using + // com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + exactlyOnceDeliveryEnabled_ = false; + + messageOrderingEnabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getDefaultInstanceForType() { + return com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties build() { + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties buildPartial() { + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = + new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(this); + result.exactlyOnceDeliveryEnabled_ = exactlyOnceDeliveryEnabled_; + result.messageOrderingEnabled_ = messageOrderingEnabled_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) { + return mergeFrom( + (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties other) { + if (other + == com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + .getDefaultInstance()) return this; + if (other.getExactlyOnceDeliveryEnabled() != false) { + setExactlyOnceDeliveryEnabled(other.getExactlyOnceDeliveryEnabled()); + } + if (other.getMessageOrderingEnabled() != false) { + setMessageOrderingEnabled(other.getMessageOrderingEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean exactlyOnceDeliveryEnabled_; + /** + * + * + *
    +       * True iff exactly once delivery is enabled for this subscription.
    +       * 
    + * + * bool exactly_once_delivery_enabled = 1; + * + * @return The exactlyOnceDeliveryEnabled. + */ + @java.lang.Override + public boolean getExactlyOnceDeliveryEnabled() { + return exactlyOnceDeliveryEnabled_; + } + /** + * + * + *
    +       * True iff exactly once delivery is enabled for this subscription.
    +       * 
    + * + * bool exactly_once_delivery_enabled = 1; + * + * @param value The exactlyOnceDeliveryEnabled to set. + * @return This builder for chaining. + */ + public Builder setExactlyOnceDeliveryEnabled(boolean value) { + + exactlyOnceDeliveryEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +       * True iff exactly once delivery is enabled for this subscription.
    +       * 
    + * + * bool exactly_once_delivery_enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearExactlyOnceDeliveryEnabled() { + + exactlyOnceDeliveryEnabled_ = false; + onChanged(); + return this; + } + + private boolean messageOrderingEnabled_; + /** + * + * + *
    +       * True iff message ordering is enabled for this subscription.
    +       * 
    + * + * bool message_ordering_enabled = 2; + * + * @return The messageOrderingEnabled. + */ + @java.lang.Override + public boolean getMessageOrderingEnabled() { + return messageOrderingEnabled_; + } + /** + * + * + *
    +       * True iff message ordering is enabled for this subscription.
    +       * 
    + * + * bool message_ordering_enabled = 2; + * + * @param value The messageOrderingEnabled to set. + * @return This builder for chaining. + */ + public Builder setMessageOrderingEnabled(boolean value) { + + messageOrderingEnabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +       * True iff message ordering is enabled for this subscription.
    +       * 
    + * + * bool message_ordering_enabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearMessageOrderingEnabled() { + + messageOrderingEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) + private static final com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(); + } + + public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubscriptionProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SubscriptionProperties(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; + private java.util.List receivedMessages_; + /** + * + * + *
    +   * Received Pub/Sub messages. This will not be empty.
    +   * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + @java.lang.Override + public java.util.List getReceivedMessagesList() { + return receivedMessages_; + } + /** + * + * + *
    +   * Received Pub/Sub messages. This will not be empty.
    +   * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + @java.lang.Override + public java.util.List + getReceivedMessagesOrBuilderList() { + return receivedMessages_; + } + /** + * + * + *
    +   * Received Pub/Sub messages. This will not be empty.
    +   * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + @java.lang.Override + public int getReceivedMessagesCount() { + return receivedMessages_.size(); + } + /** + * + * + *
    +   * Received Pub/Sub messages. This will not be empty.
    +   * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + @java.lang.Override + public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { + return receivedMessages_.get(index); + } + /** + * + * + *
    +   * Received Pub/Sub messages. This will not be empty.
    +   * 
    + * * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; */ @java.lang.Override - public int getReceivedMessagesCount() { - return receivedMessages_.size(); + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { + return receivedMessages_.get(index); } + + public static final int ACKNOWLEDGE_CONFIRMATION_FIELD_NUMBER = 5; + private com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + acknowledgeConfirmation_; /** * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * + * @return Whether the acknowledgeConfirmation field is set. */ @java.lang.Override - public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { - return receivedMessages_.get(index); + public boolean hasAcknowledgeConfirmation() { + return acknowledgeConfirmation_ != null; } /** * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * + * @return The acknowledgeConfirmation. */ @java.lang.Override - public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { - return receivedMessages_.get(index); + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + getAcknowledgeConfirmation() { + return acknowledgeConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance() + : acknowledgeConfirmation_; + } + /** + * + * + *
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + */ + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder + getAcknowledgeConfirmationOrBuilder() { + return getAcknowledgeConfirmation(); + } + + public static final int MODIFY_ACK_DEADLINE_CONFIRMATION_FIELD_NUMBER = 3; + private com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + modifyAckDeadlineConfirmation_; + /** + * + * + *
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * + * @return Whether the modifyAckDeadlineConfirmation field is set. + */ + @java.lang.Override + public boolean hasModifyAckDeadlineConfirmation() { + return modifyAckDeadlineConfirmation_ != null; + } + /** + * + * + *
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * + * @return The modifyAckDeadlineConfirmation. + */ + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getModifyAckDeadlineConfirmation() { + return modifyAckDeadlineConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance() + : modifyAckDeadlineConfirmation_; + } + /** + * + * + *
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + */ + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder + getModifyAckDeadlineConfirmationOrBuilder() { + return getModifyAckDeadlineConfirmation(); } public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER = 4; @@ -842,9 +3721,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < receivedMessages_.size(); i++) { output.writeMessage(1, receivedMessages_.get(i)); } + if (modifyAckDeadlineConfirmation_ != null) { + output.writeMessage(3, getModifyAckDeadlineConfirmation()); + } if (subscriptionProperties_ != null) { output.writeMessage(4, getSubscriptionProperties()); } + if (acknowledgeConfirmation_ != null) { + output.writeMessage(5, getAcknowledgeConfirmation()); + } unknownFields.writeTo(output); } @@ -857,10 +3742,19 @@ public int getSerializedSize() { for (int i = 0; i < receivedMessages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i)); } + if (modifyAckDeadlineConfirmation_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getModifyAckDeadlineConfirmation()); + } if (subscriptionProperties_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubscriptionProperties()); } + if (acknowledgeConfirmation_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAcknowledgeConfirmation()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -878,6 +3772,16 @@ public boolean equals(final java.lang.Object obj) { (com.google.pubsub.v1.StreamingPullResponse) obj; if (!getReceivedMessagesList().equals(other.getReceivedMessagesList())) return false; + if (hasAcknowledgeConfirmation() != other.hasAcknowledgeConfirmation()) return false; + if (hasAcknowledgeConfirmation()) { + if (!getAcknowledgeConfirmation().equals(other.getAcknowledgeConfirmation())) return false; + } + if (hasModifyAckDeadlineConfirmation() != other.hasModifyAckDeadlineConfirmation()) + return false; + if (hasModifyAckDeadlineConfirmation()) { + if (!getModifyAckDeadlineConfirmation().equals(other.getModifyAckDeadlineConfirmation())) + return false; + } if (hasSubscriptionProperties() != other.hasSubscriptionProperties()) return false; if (hasSubscriptionProperties()) { if (!getSubscriptionProperties().equals(other.getSubscriptionProperties())) return false; @@ -897,6 +3801,14 @@ public int hashCode() { hash = (37 * hash) + RECEIVED_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getReceivedMessagesList().hashCode(); } + if (hasAcknowledgeConfirmation()) { + hash = (37 * hash) + ACKNOWLEDGE_CONFIRMATION_FIELD_NUMBER; + hash = (53 * hash) + getAcknowledgeConfirmation().hashCode(); + } + if (hasModifyAckDeadlineConfirmation()) { + hash = (37 * hash) + MODIFY_ACK_DEADLINE_CONFIRMATION_FIELD_NUMBER; + hash = (53 * hash) + getModifyAckDeadlineConfirmation().hashCode(); + } if (hasSubscriptionProperties()) { hash = (37 * hash) + SUBSCRIPTION_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getSubscriptionProperties().hashCode(); @@ -1021,550 +3933,1025 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.StreamingPullResponse.class, - com.google.pubsub.v1.StreamingPullResponse.Builder.class); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.StreamingPullResponse.class, + com.google.pubsub.v1.StreamingPullResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.StreamingPullResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReceivedMessagesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (receivedMessagesBuilder_ == null) { + receivedMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + receivedMessagesBuilder_.clear(); + } + if (acknowledgeConfirmationBuilder_ == null) { + acknowledgeConfirmation_ = null; + } else { + acknowledgeConfirmation_ = null; + acknowledgeConfirmationBuilder_ = null; + } + if (modifyAckDeadlineConfirmationBuilder_ == null) { + modifyAckDeadlineConfirmation_ = null; + } else { + modifyAckDeadlineConfirmation_ = null; + modifyAckDeadlineConfirmationBuilder_ = null; + } + if (subscriptionPropertiesBuilder_ == null) { + subscriptionProperties_ = null; + } else { + subscriptionProperties_ = null; + subscriptionPropertiesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse build() { + com.google.pubsub.v1.StreamingPullResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.StreamingPullResponse buildPartial() { + com.google.pubsub.v1.StreamingPullResponse result = + new com.google.pubsub.v1.StreamingPullResponse(this); + int from_bitField0_ = bitField0_; + if (receivedMessagesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.receivedMessages_ = receivedMessages_; + } else { + result.receivedMessages_ = receivedMessagesBuilder_.build(); + } + if (acknowledgeConfirmationBuilder_ == null) { + result.acknowledgeConfirmation_ = acknowledgeConfirmation_; + } else { + result.acknowledgeConfirmation_ = acknowledgeConfirmationBuilder_.build(); + } + if (modifyAckDeadlineConfirmationBuilder_ == null) { + result.modifyAckDeadlineConfirmation_ = modifyAckDeadlineConfirmation_; + } else { + result.modifyAckDeadlineConfirmation_ = modifyAckDeadlineConfirmationBuilder_.build(); + } + if (subscriptionPropertiesBuilder_ == null) { + result.subscriptionProperties_ = subscriptionProperties_; + } else { + result.subscriptionProperties_ = subscriptionPropertiesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.StreamingPullResponse) { + return mergeFrom((com.google.pubsub.v1.StreamingPullResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) { + if (other == com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance()) return this; + if (receivedMessagesBuilder_ == null) { + if (!other.receivedMessages_.isEmpty()) { + if (receivedMessages_.isEmpty()) { + receivedMessages_ = other.receivedMessages_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReceivedMessagesIsMutable(); + receivedMessages_.addAll(other.receivedMessages_); + } + onChanged(); + } + } else { + if (!other.receivedMessages_.isEmpty()) { + if (receivedMessagesBuilder_.isEmpty()) { + receivedMessagesBuilder_.dispose(); + receivedMessagesBuilder_ = null; + receivedMessages_ = other.receivedMessages_; + bitField0_ = (bitField0_ & ~0x00000001); + receivedMessagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReceivedMessagesFieldBuilder() + : null; + } else { + receivedMessagesBuilder_.addAllMessages(other.receivedMessages_); + } + } + } + if (other.hasAcknowledgeConfirmation()) { + mergeAcknowledgeConfirmation(other.getAcknowledgeConfirmation()); + } + if (other.hasModifyAckDeadlineConfirmation()) { + mergeModifyAckDeadlineConfirmation(other.getModifyAckDeadlineConfirmation()); + } + if (other.hasSubscriptionProperties()) { + mergeSubscriptionProperties(other.getSubscriptionProperties()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.StreamingPullResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.StreamingPullResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - // Construct using com.google.pubsub.v1.StreamingPullResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private int bitField0_; - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + private java.util.List receivedMessages_ = + java.util.Collections.emptyList(); - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getReceivedMessagesFieldBuilder(); + private void ensureReceivedMessagesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + receivedMessages_ = + new java.util.ArrayList(receivedMessages_); + bitField0_ |= 0x00000001; } } - @java.lang.Override - public Builder clear() { - super.clear(); + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder> + receivedMessagesBuilder_; + + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List getReceivedMessagesList() { + if (receivedMessagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(receivedMessages_); + } else { + return receivedMessagesBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public int getReceivedMessagesCount() { + if (receivedMessagesBuilder_ == null) { + return receivedMessages_.size(); + } else { + return receivedMessagesBuilder_.getCount(); + } + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { + if (receivedMessagesBuilder_ == null) { + return receivedMessages_.get(index); + } else { + return receivedMessagesBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { + if (receivedMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceivedMessagesIsMutable(); + receivedMessages_.set(index, value); + onChanged(); + } else { + receivedMessagesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder setReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.set(index, builderForValue.build()); + onChanged(); + } else { + receivedMessagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { + if (receivedMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(value); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { + if (receivedMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(index, value); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages( + com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(builderForValue.build()); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addReceivedMessages( + int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + receivedMessages_.add(index, builderForValue.build()); + onChanged(); + } else { + receivedMessagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder addAllReceivedMessages( + java.lang.Iterable values) { + if (receivedMessagesBuilder_ == null) { + ensureReceivedMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receivedMessages_); + onChanged(); + } else { + receivedMessagesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder clearReceivedMessages() { if (receivedMessagesBuilder_ == null) { receivedMessages_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); } else { receivedMessagesBuilder_.clear(); } - if (subscriptionPropertiesBuilder_ == null) { - subscriptionProperties_ = null; - } else { - subscriptionProperties_ = null; - subscriptionPropertiesBuilder_ = null; - } return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; - } - - @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse getDefaultInstanceForType() { - return com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse build() { - com.google.pubsub.v1.StreamingPullResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.pubsub.v1.StreamingPullResponse buildPartial() { - com.google.pubsub.v1.StreamingPullResponse result = - new com.google.pubsub.v1.StreamingPullResponse(this); - int from_bitField0_ = bitField0_; + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public Builder removeReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.receivedMessages_ = receivedMessages_; - } else { - result.receivedMessages_ = receivedMessagesBuilder_.build(); - } - if (subscriptionPropertiesBuilder_ == null) { - result.subscriptionProperties_ = subscriptionProperties_; + ensureReceivedMessagesIsMutable(); + receivedMessages_.remove(index); + onChanged(); } else { - result.subscriptionProperties_ = subscriptionPropertiesBuilder_.build(); + receivedMessagesBuilder_.remove(index); } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + return this; } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { + return getReceivedMessagesFieldBuilder().getBuilder(index); } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.StreamingPullResponse) { - return mergeFrom((com.google.pubsub.v1.StreamingPullResponse) other); + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { + if (receivedMessagesBuilder_ == null) { + return receivedMessages_.get(index); } else { - super.mergeFrom(other); - return this; + return receivedMessagesBuilder_.getMessageOrBuilder(index); } } - - public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) { - if (other == com.google.pubsub.v1.StreamingPullResponse.getDefaultInstance()) return this; - if (receivedMessagesBuilder_ == null) { - if (!other.receivedMessages_.isEmpty()) { - if (receivedMessages_.isEmpty()) { - receivedMessages_ = other.receivedMessages_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureReceivedMessagesIsMutable(); - receivedMessages_.addAll(other.receivedMessages_); - } - onChanged(); - } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List + getReceivedMessagesOrBuilderList() { + if (receivedMessagesBuilder_ != null) { + return receivedMessagesBuilder_.getMessageOrBuilderList(); } else { - if (!other.receivedMessages_.isEmpty()) { - if (receivedMessagesBuilder_.isEmpty()) { - receivedMessagesBuilder_.dispose(); - receivedMessagesBuilder_ = null; - receivedMessages_ = other.receivedMessages_; - bitField0_ = (bitField0_ & ~0x00000001); - receivedMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReceivedMessagesFieldBuilder() - : null; - } else { - receivedMessagesBuilder_.addAllMessages(other.receivedMessages_); - } - } - } - if (other.hasSubscriptionProperties()) { - mergeSubscriptionProperties(other.getSubscriptionProperties()); + return java.util.Collections.unmodifiableList(receivedMessages_); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { + return getReceivedMessagesFieldBuilder() + .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.pubsub.v1.StreamingPullResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.pubsub.v1.StreamingPullResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { + return getReceivedMessagesFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + } + /** + * + * + *
    +     * Received Pub/Sub messages. This will not be empty.
    +     * 
    + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + */ + public java.util.List + getReceivedMessagesBuilderList() { + return getReceivedMessagesFieldBuilder().getBuilderList(); } - private int bitField0_; - - private java.util.List receivedMessages_ = - java.util.Collections.emptyList(); - - private void ensureReceivedMessagesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - receivedMessages_ = - new java.util.ArrayList(receivedMessages_); - bitField0_ |= 0x00000001; + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder> + getReceivedMessagesFieldBuilder() { + if (receivedMessagesBuilder_ == null) { + receivedMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.ReceivedMessage, + com.google.pubsub.v1.ReceivedMessage.Builder, + com.google.pubsub.v1.ReceivedMessageOrBuilder>( + receivedMessages_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + receivedMessages_ = null; } + return receivedMessagesBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, - com.google.pubsub.v1.ReceivedMessage.Builder, - com.google.pubsub.v1.ReceivedMessageOrBuilder> - receivedMessagesBuilder_; - + private com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + acknowledgeConfirmation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder> + acknowledgeConfirmationBuilder_; /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * + * @return Whether the acknowledgeConfirmation field is set. */ - public java.util.List getReceivedMessagesList() { - if (receivedMessagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(receivedMessages_); - } else { - return receivedMessagesBuilder_.getMessageList(); - } + public boolean hasAcknowledgeConfirmation() { + return acknowledgeConfirmationBuilder_ != null || acknowledgeConfirmation_ != null; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * + * @return The acknowledgeConfirmation. */ - public int getReceivedMessagesCount() { - if (receivedMessagesBuilder_ == null) { - return receivedMessages_.size(); + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + getAcknowledgeConfirmation() { + if (acknowledgeConfirmationBuilder_ == null) { + return acknowledgeConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + .getDefaultInstance() + : acknowledgeConfirmation_; } else { - return receivedMessagesBuilder_.getCount(); + return acknowledgeConfirmationBuilder_.getMessage(); } } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { - if (receivedMessagesBuilder_ == null) { - return receivedMessages_.get(index); + public Builder setAcknowledgeConfirmation( + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { + if (acknowledgeConfirmationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + acknowledgeConfirmation_ = value; + onChanged(); } else { - return receivedMessagesBuilder_.getMessage(index); + acknowledgeConfirmationBuilder_.setMessage(value); } + + return this; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { - if (receivedMessagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceivedMessagesIsMutable(); - receivedMessages_.set(index, value); + public Builder setAcknowledgeConfirmation( + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder + builderForValue) { + if (acknowledgeConfirmationBuilder_ == null) { + acknowledgeConfirmation_ = builderForValue.build(); onChanged(); } else { - receivedMessagesBuilder_.setMessage(index, value); + acknowledgeConfirmationBuilder_.setMessage(builderForValue.build()); } + return this; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - public Builder setReceivedMessages( - int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { - if (receivedMessagesBuilder_ == null) { - ensureReceivedMessagesIsMutable(); - receivedMessages_.set(index, builderForValue.build()); + public Builder mergeAcknowledgeConfirmation( + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { + if (acknowledgeConfirmationBuilder_ == null) { + if (acknowledgeConfirmation_ != null) { + acknowledgeConfirmation_ = + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder( + acknowledgeConfirmation_) + .mergeFrom(value) + .buildPartial(); + } else { + acknowledgeConfirmation_ = value; + } onChanged(); } else { - receivedMessagesBuilder_.setMessage(index, builderForValue.build()); + acknowledgeConfirmationBuilder_.mergeFrom(value); } + return this; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { - if (receivedMessagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceivedMessagesIsMutable(); - receivedMessages_.add(value); + public Builder clearAcknowledgeConfirmation() { + if (acknowledgeConfirmationBuilder_ == null) { + acknowledgeConfirmation_ = null; onChanged(); } else { - receivedMessagesBuilder_.addMessage(value); + acknowledgeConfirmation_ = null; + acknowledgeConfirmationBuilder_ = null; } + return this; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { - if (receivedMessagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReceivedMessagesIsMutable(); - receivedMessages_.add(index, value); - onChanged(); - } else { - receivedMessagesBuilder_.addMessage(index, value); - } - return this; + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder + getAcknowledgeConfirmationBuilder() { + + onChanged(); + return getAcknowledgeConfirmationFieldBuilder().getBuilder(); } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - public Builder addReceivedMessages( - com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { - if (receivedMessagesBuilder_ == null) { - ensureReceivedMessagesIsMutable(); - receivedMessages_.add(builderForValue.build()); - onChanged(); + public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder + getAcknowledgeConfirmationOrBuilder() { + if (acknowledgeConfirmationBuilder_ != null) { + return acknowledgeConfirmationBuilder_.getMessageOrBuilder(); } else { - receivedMessagesBuilder_.addMessage(builderForValue.build()); + return acknowledgeConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + .getDefaultInstance() + : acknowledgeConfirmation_; } - return this; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * */ - public Builder addReceivedMessages( - int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { - if (receivedMessagesBuilder_ == null) { - ensureReceivedMessagesIsMutable(); - receivedMessages_.add(index, builderForValue.build()); - onChanged(); - } else { - receivedMessagesBuilder_.addMessage(index, builderForValue.build()); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder> + getAcknowledgeConfirmationFieldBuilder() { + if (acknowledgeConfirmationBuilder_ == null) { + acknowledgeConfirmationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder>( + getAcknowledgeConfirmation(), getParentForChildren(), isClean()); + acknowledgeConfirmation_ = null; } - return this; + return acknowledgeConfirmationBuilder_; } + + private com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + modifyAckDeadlineConfirmation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder> + modifyAckDeadlineConfirmationBuilder_; /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * + * @return Whether the modifyAckDeadlineConfirmation field is set. */ - public Builder addAllReceivedMessages( - java.lang.Iterable values) { - if (receivedMessagesBuilder_ == null) { - ensureReceivedMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, receivedMessages_); - onChanged(); - } else { - receivedMessagesBuilder_.addAllMessages(values); - } - return this; + public boolean hasModifyAckDeadlineConfirmation() { + return modifyAckDeadlineConfirmationBuilder_ != null + || modifyAckDeadlineConfirmation_ != null; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * + * @return The modifyAckDeadlineConfirmation. */ - public Builder clearReceivedMessages() { - if (receivedMessagesBuilder_ == null) { - receivedMessages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getModifyAckDeadlineConfirmation() { + if (modifyAckDeadlineConfirmationBuilder_ == null) { + return modifyAckDeadlineConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance() + : modifyAckDeadlineConfirmation_; } else { - receivedMessagesBuilder_.clear(); + return modifyAckDeadlineConfirmationBuilder_.getMessage(); } - return this; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - public Builder removeReceivedMessages(int index) { - if (receivedMessagesBuilder_ == null) { - ensureReceivedMessagesIsMutable(); - receivedMessages_.remove(index); + public Builder setModifyAckDeadlineConfirmation( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { + if (modifyAckDeadlineConfirmationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modifyAckDeadlineConfirmation_ = value; onChanged(); } else { - receivedMessagesBuilder_.remove(index); + modifyAckDeadlineConfirmationBuilder_.setMessage(value); } + return this; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { - return getReceivedMessagesFieldBuilder().getBuilder(index); + public Builder setModifyAckDeadlineConfirmation( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder + builderForValue) { + if (modifyAckDeadlineConfirmationBuilder_ == null) { + modifyAckDeadlineConfirmation_ = builderForValue.build(); + onChanged(); + } else { + modifyAckDeadlineConfirmationBuilder_.setMessage(builderForValue.build()); + } + + return this; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { - if (receivedMessagesBuilder_ == null) { - return receivedMessages_.get(index); + public Builder mergeModifyAckDeadlineConfirmation( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { + if (modifyAckDeadlineConfirmationBuilder_ == null) { + if (modifyAckDeadlineConfirmation_ != null) { + modifyAckDeadlineConfirmation_ = + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder( + modifyAckDeadlineConfirmation_) + .mergeFrom(value) + .buildPartial(); + } else { + modifyAckDeadlineConfirmation_ = value; + } + onChanged(); } else { - return receivedMessagesBuilder_.getMessageOrBuilder(index); + modifyAckDeadlineConfirmationBuilder_.mergeFrom(value); } + + return this; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - public java.util.List - getReceivedMessagesOrBuilderList() { - if (receivedMessagesBuilder_ != null) { - return receivedMessagesBuilder_.getMessageOrBuilderList(); + public Builder clearModifyAckDeadlineConfirmation() { + if (modifyAckDeadlineConfirmationBuilder_ == null) { + modifyAckDeadlineConfirmation_ = null; + onChanged(); } else { - return java.util.Collections.unmodifiableList(receivedMessages_); + modifyAckDeadlineConfirmation_ = null; + modifyAckDeadlineConfirmationBuilder_ = null; } + + return this; } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { - return getReceivedMessagesFieldBuilder() - .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder + getModifyAckDeadlineConfirmationBuilder() { + + onChanged(); + return getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(); } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { - return getReceivedMessagesFieldBuilder() - .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); + public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder + getModifyAckDeadlineConfirmationOrBuilder() { + if (modifyAckDeadlineConfirmationBuilder_ != null) { + return modifyAckDeadlineConfirmationBuilder_.getMessageOrBuilder(); + } else { + return modifyAckDeadlineConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance() + : modifyAckDeadlineConfirmation_; + } } /** * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * This field will only be set if `enable_exactly_once_delivery` is set to
    +     * `true`.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * */ - public java.util.List - getReceivedMessagesBuilderList() { - return getReceivedMessagesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, - com.google.pubsub.v1.ReceivedMessage.Builder, - com.google.pubsub.v1.ReceivedMessageOrBuilder> - getReceivedMessagesFieldBuilder() { - if (receivedMessagesBuilder_ == null) { - receivedMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.pubsub.v1.ReceivedMessage, - com.google.pubsub.v1.ReceivedMessage.Builder, - com.google.pubsub.v1.ReceivedMessageOrBuilder>( - receivedMessages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - receivedMessages_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder> + getModifyAckDeadlineConfirmationFieldBuilder() { + if (modifyAckDeadlineConfirmationBuilder_ == null) { + modifyAckDeadlineConfirmationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder>( + getModifyAckDeadlineConfirmation(), getParentForChildren(), isClean()); + modifyAckDeadlineConfirmation_ = null; } - return receivedMessagesBuilder_; + return modifyAckDeadlineConfirmationBuilder_; } private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index acaeb4240ff7..b2bb7ba25673 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -75,6 +75,97 @@ public interface StreamingPullResponseOrBuilder */ com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); + /** + * + * + *
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * + * @return Whether the acknowledgeConfirmation field is set. + */ + boolean hasAcknowledgeConfirmation(); + /** + * + * + *
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + * + * @return The acknowledgeConfirmation. + */ + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation(); + /** + * + * + *
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * + */ + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder + getAcknowledgeConfirmationOrBuilder(); + + /** + * + * + *
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * + * @return Whether the modifyAckDeadlineConfirmation field is set. + */ + boolean hasModifyAckDeadlineConfirmation(); + /** + * + * + *
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + * + * @return The modifyAckDeadlineConfirmation. + */ + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + getModifyAckDeadlineConfirmation(); + /** + * + * + *
    +   * This field will only be set if `enable_exactly_once_delivery` is set to
    +   * `true`.
    +   * 
    + * + * + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * + */ + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder + getModifyAckDeadlineConfirmationOrBuilder(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 6b45b5f6c933..0543e587d94a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -204,6 +204,11 @@ private Subscription( detached_ = input.readBool(); break; } + case 128: + { + enableExactlyOnceDelivery_ = input.readBool(); + break; + } case 138: { com.google.protobuf.Duration.Builder subBuilder = null; @@ -946,6 +951,32 @@ public boolean getDetached() { return detached_; } + public static final int ENABLE_EXACTLY_ONCE_DELIVERY_FIELD_NUMBER = 16; + private boolean enableExactlyOnceDelivery_; + /** + * + * + *
    +   * If true, Pub/Sub provides the following guarantees for the delivery of
    +   * a message with a given value of `message_id` on this subscription:
    +   * * The message sent to a subscriber is guaranteed not to be resent
    +   * before the message's acknowledgement deadline expires.
    +   * * An acknowledged message will not be resent to a subscriber.
    +   * Note that subscribers may still receive multiple copies of a message
    +   * when `enable_exactly_once_delivery` is true if the message was published
    +   * multiple times by a publisher client. These copies are  considered distinct
    +   * by Pub/Sub and have distinct `message_id` values.
    +   * 
    + * + * bool enable_exactly_once_delivery = 16; + * + * @return The enableExactlyOnceDelivery. + */ + @java.lang.Override + public boolean getEnableExactlyOnceDelivery() { + return enableExactlyOnceDelivery_; + } + public static final int TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 17; private com.google.protobuf.Duration topicMessageRetentionDuration_; /** @@ -1067,6 +1098,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (detached_ != false) { output.writeBool(15, detached_); } + if (enableExactlyOnceDelivery_ != false) { + output.writeBool(16, enableExactlyOnceDelivery_); + } if (topicMessageRetentionDuration_ != null) { output.writeMessage(17, getTopicMessageRetentionDuration()); } @@ -1127,6 +1161,9 @@ public int getSerializedSize() { if (detached_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, detached_); } + if (enableExactlyOnceDelivery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, enableExactlyOnceDelivery_); + } if (topicMessageRetentionDuration_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1175,6 +1212,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRetryPolicy().equals(other.getRetryPolicy())) return false; } if (getDetached() != other.getDetached()) return false; + if (getEnableExactlyOnceDelivery() != other.getEnableExactlyOnceDelivery()) return false; if (hasTopicMessageRetentionDuration() != other.hasTopicMessageRetentionDuration()) return false; if (hasTopicMessageRetentionDuration()) { @@ -1230,6 +1268,8 @@ public int hashCode() { } hash = (37 * hash) + DETACHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDetached()); + hash = (37 * hash) + ENABLE_EXACTLY_ONCE_DELIVERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableExactlyOnceDelivery()); if (hasTopicMessageRetentionDuration()) { hash = (37 * hash) + TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getTopicMessageRetentionDuration().hashCode(); @@ -1443,6 +1483,8 @@ public Builder clear() { } detached_ = false; + enableExactlyOnceDelivery_ = false; + if (topicMessageRetentionDurationBuilder_ == null) { topicMessageRetentionDuration_ = null; } else { @@ -1510,6 +1552,7 @@ public com.google.pubsub.v1.Subscription buildPartial() { result.retryPolicy_ = retryPolicyBuilder_.build(); } result.detached_ = detached_; + result.enableExactlyOnceDelivery_ = enableExactlyOnceDelivery_; if (topicMessageRetentionDurationBuilder_ == null) { result.topicMessageRetentionDuration_ = topicMessageRetentionDuration_; } else { @@ -1604,6 +1647,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.getDetached() != false) { setDetached(other.getDetached()); } + if (other.getEnableExactlyOnceDelivery() != false) { + setEnableExactlyOnceDelivery(other.getEnableExactlyOnceDelivery()); + } if (other.hasTopicMessageRetentionDuration()) { mergeTopicMessageRetentionDuration(other.getTopicMessageRetentionDuration()); } @@ -3612,6 +3658,82 @@ public Builder clearDetached() { return this; } + private boolean enableExactlyOnceDelivery_; + /** + * + * + *
    +     * If true, Pub/Sub provides the following guarantees for the delivery of
    +     * a message with a given value of `message_id` on this subscription:
    +     * * The message sent to a subscriber is guaranteed not to be resent
    +     * before the message's acknowledgement deadline expires.
    +     * * An acknowledged message will not be resent to a subscriber.
    +     * Note that subscribers may still receive multiple copies of a message
    +     * when `enable_exactly_once_delivery` is true if the message was published
    +     * multiple times by a publisher client. These copies are  considered distinct
    +     * by Pub/Sub and have distinct `message_id` values.
    +     * 
    + * + * bool enable_exactly_once_delivery = 16; + * + * @return The enableExactlyOnceDelivery. + */ + @java.lang.Override + public boolean getEnableExactlyOnceDelivery() { + return enableExactlyOnceDelivery_; + } + /** + * + * + *
    +     * If true, Pub/Sub provides the following guarantees for the delivery of
    +     * a message with a given value of `message_id` on this subscription:
    +     * * The message sent to a subscriber is guaranteed not to be resent
    +     * before the message's acknowledgement deadline expires.
    +     * * An acknowledged message will not be resent to a subscriber.
    +     * Note that subscribers may still receive multiple copies of a message
    +     * when `enable_exactly_once_delivery` is true if the message was published
    +     * multiple times by a publisher client. These copies are  considered distinct
    +     * by Pub/Sub and have distinct `message_id` values.
    +     * 
    + * + * bool enable_exactly_once_delivery = 16; + * + * @param value The enableExactlyOnceDelivery to set. + * @return This builder for chaining. + */ + public Builder setEnableExactlyOnceDelivery(boolean value) { + + enableExactlyOnceDelivery_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * If true, Pub/Sub provides the following guarantees for the delivery of
    +     * a message with a given value of `message_id` on this subscription:
    +     * * The message sent to a subscriber is guaranteed not to be resent
    +     * before the message's acknowledgement deadline expires.
    +     * * An acknowledged message will not be resent to a subscriber.
    +     * Note that subscribers may still receive multiple copies of a message
    +     * when `enable_exactly_once_delivery` is true if the message was published
    +     * multiple times by a publisher client. These copies are  considered distinct
    +     * by Pub/Sub and have distinct `message_id` values.
    +     * 
    + * + * bool enable_exactly_once_delivery = 16; + * + * @return This builder for chaining. + */ + public Builder clearEnableExactlyOnceDelivery() { + + enableExactlyOnceDelivery_ = false; + onChanged(); + return this; + } + private com.google.protobuf.Duration topicMessageRetentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 329ab1284daf..64a0a771cbe8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -507,6 +507,27 @@ public interface SubscriptionOrBuilder */ boolean getDetached(); + /** + * + * + *
    +   * If true, Pub/Sub provides the following guarantees for the delivery of
    +   * a message with a given value of `message_id` on this subscription:
    +   * * The message sent to a subscriber is guaranteed not to be resent
    +   * before the message's acknowledgement deadline expires.
    +   * * An acknowledged message will not be resent to a subscriber.
    +   * Note that subscribers may still receive multiple copies of a message
    +   * when `enable_exactly_once_delivery` is true if the message was published
    +   * multiple times by a publisher client. These copies are  considered distinct
    +   * by Pub/Sub and have distinct `message_id` values.
    +   * 
    + * + * bool enable_exactly_once_delivery = 16; + * + * @return The enableExactlyOnceDelivery. + */ + boolean getEnableExactlyOnceDelivery(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b1d65626cf28..172801ba3ff6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -752,6 +752,19 @@ message Subscription { // the endpoint will not be made. bool detached = 15; + // If true, Pub/Sub provides the following guarantees for the delivery of + // a message with a given value of `message_id` on this subscription: + // + // * The message sent to a subscriber is guaranteed not to be resent + // before the message's acknowledgement deadline expires. + // * An acknowledged message will not be resent to a subscriber. + // + // Note that subscribers may still receive multiple copies of a message + // when `enable_exactly_once_delivery` is true if the message was published + // multiple times by a publisher client. These copies are considered distinct + // by Pub/Sub and have distinct `message_id` values. + bool enable_exactly_once_delivery = 16; + // Output only. Indicates the minimum duration for which a message is retained // after it is published to the subscription's topic. If this field is set, // messages published to the subscription's topic in the last @@ -1163,8 +1176,35 @@ message StreamingPullRequest { // Response for the `StreamingPull` method. This response is used to stream // messages from the server to the client. message StreamingPullResponse { + // Acknowledgement IDs sent in one or more previous requests to acknowledge a + // previously received message. + message AcknowledgeConfirmation { + // Successfully processed acknowledgement IDs. + repeated string ack_ids = 1 [ctype = CORD]; + + // List of acknowledgement IDs that were malformed or whose acknowledgement + // deadline has expired. + repeated string invalid_ack_ids = 2 [ctype = CORD]; + + // List of acknowledgement IDs that were out of order. + repeated string unordered_ack_ids = 3 [ctype = CORD]; + } + + // Acknowledgement IDs sent in one or more previous requests to modify the + // deadline for a specific message. + message ModifyAckDeadlineConfirmation { + // Successfully processed acknowledgement IDs. + repeated string ack_ids = 1 [ctype = CORD]; + + // List of acknowledgement IDs that were malformed or whose acknowledgement + // deadline has expired. + repeated string invalid_ack_ids = 2 [ctype = CORD]; + } + // Subscription properties sent as part of the response. message SubscriptionProperties { + // True iff exactly once delivery is enabled for this subscription. + bool exactly_once_delivery_enabled = 1; // True iff message ordering is enabled for this subscription. bool message_ordering_enabled = 2; } @@ -1172,6 +1212,16 @@ message StreamingPullResponse { // Received Pub/Sub messages. This will not be empty. repeated ReceivedMessage received_messages = 1; + reserved 2; + + // This field will only be set if `enable_exactly_once_delivery` is set to + // `true`. + AcknowledgeConfirmation acknowledge_confirmation = 5; + + // This field will only be set if `enable_exactly_once_delivery` is set to + // `true`. + ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + // Properties associated with this subscription. SubscriptionProperties subscription_properties = 4; } From 1e03e5557ee6e96fc29c4b1b339c95140fe074ef Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 28 Feb 2022 23:22:18 +0100 Subject: [PATCH 0960/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.2 (#1028) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-project-info-reports-plugin)) | `3.2.1` -> `3.2.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/compatibility-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/confidence-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a1b0669ca498..5d87579bdb17 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.1 + 3.2.2 From 480758229aaf5116ff8137ffc24adb3f5dcf6445 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 1 Mar 2022 22:34:28 +0000 Subject: [PATCH 0961/2363] chore: update github actions (#1361) (#1034) * chore: update github actions * chore: update Source-Link: https://github.com/googleapis/synthtool/commit/1622741e6877d4b335b137ac7e07f7f32d4e5af7 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:e3746f84955528d0fe24bf2e4df89875d6ce5a036af01b9c326d61a38838523a --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- .../.github/workflows/approve-readme.yaml | 2 +- .../.github/workflows/auto-release.yaml | 2 +- java-pubsub/.github/workflows/ci.yaml | 20 +++++++++---------- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 9351fdfb9ac8..53941094cf48 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 + digest: sha256:e3746f84955528d0fe24bf2e4df89875d6ce5a036af01b9c326d61a38838523a diff --git a/java-pubsub/.github/workflows/approve-readme.yaml b/java-pubsub/.github/workflows/approve-readme.yaml index 1bb182327612..f5fc7d5169eb 100644 --- a/java-pubsub/.github/workflows/approve-readme.yaml +++ b/java-pubsub/.github/workflows/approve-readme.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index 18e23230d98f..7a106d007edf 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 6b5e56aaacd1..83ef7f9c2cf3 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -27,8 +27,8 @@ jobs: matrix: java: [8, 11, 17] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: ${{matrix.java}} @@ -39,8 +39,8 @@ jobs: windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 8 @@ -54,8 +54,8 @@ jobs: matrix: java: [8, 11, 17] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: ${{matrix.java}} @@ -64,8 +64,8 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 11 @@ -76,8 +76,8 @@ jobs: clirr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 8 From 1f7a6891d451e701617750c2bc090b7d70e301fc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 19:06:11 +0100 Subject: [PATCH 0962/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 (#1035) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.7.0` -> `2.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/compatibility-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/confidence-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.8.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​280-httpsgithubcomgoogleapisjava-shared-dependenciescomparev270v280-2022-03-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.7.0...v2.8.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.2 ([#​602](https://togithub.com/googleapis/java-shared-dependencies/issues/602)) ([85b132f](https://togithub.com/googleapis/java-shared-dependencies/commit/85b132f5830772646025b6a9fbbb970a941b86b5)) - update dependency com.google.api:api-common to v2.1.4 ([#​605](https://togithub.com/googleapis/java-shared-dependencies/issues/605)) ([ca7d49a](https://togithub.com/googleapis/java-shared-dependencies/commit/ca7d49aee26b6d90abd2afd61c20861d2307fe9c)) - update dependency com.google.auth:google-auth-library-bom to v1.5.3 ([#​614](https://togithub.com/googleapis/java-shared-dependencies/issues/614)) ([e6413f3](https://togithub.com/googleapis/java-shared-dependencies/commit/e6413f3b1be78473ace7085c344eda2d78cdf01a)) - update dependency com.google.cloud:google-cloud-core to v2.5.6 ([#​621](https://togithub.com/googleapis/java-shared-dependencies/issues/621)) ([3d5669f](https://togithub.com/googleapis/java-shared-dependencies/commit/3d5669f215689dd2df71200ffe37d5a9d385cda8)) - update dependency com.google.code.gson:gson to v2.9.0 ([#​611](https://togithub.com/googleapis/java-shared-dependencies/issues/611)) ([f59c28d](https://togithub.com/googleapis/java-shared-dependencies/commit/f59c28d8cd30ada1237f7722135ba148dce6315e)) - update dependency com.google.http-client:google-http-client-bom to v1.41.4 ([#​608](https://togithub.com/googleapis/java-shared-dependencies/issues/608)) ([f9a4f23](https://togithub.com/googleapis/java-shared-dependencies/commit/f9a4f23d3a32148ac59e53eaae6558ccbceca12c)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.1 ([#​606](https://togithub.com/googleapis/java-shared-dependencies/issues/606)) ([3882494](https://togithub.com/googleapis/java-shared-dependencies/commit/3882494770d48fcc02ed19088aa06612a8e440eb)) - update dependency com.google.protobuf:protobuf-bom to v3.19.4 ([#​593](https://togithub.com/googleapis/java-shared-dependencies/issues/593)) ([1e155bf](https://togithub.com/googleapis/java-shared-dependencies/commit/1e155bfc957bbb7e25d2e0994cdecaa81843bdc5)) - update dependency io.grpc:grpc-bom to v1.44.1 ([#​613](https://togithub.com/googleapis/java-shared-dependencies/issues/613)) ([3038a2c](https://togithub.com/googleapis/java-shared-dependencies/commit/3038a2c86cd20c91b65f2d7926eeb739147a68db)) - update dependency junit:junit to v4.13.2 ([#​607](https://togithub.com/googleapis/java-shared-dependencies/issues/607)) ([987e617](https://togithub.com/googleapis/java-shared-dependencies/commit/987e61796c7a093e005fe8832cf39275c391b2c1)) - update dependency org.checkerframework:checker-qual to v3.21.3 ([#​596](https://togithub.com/googleapis/java-shared-dependencies/issues/596)) ([ac5083c](https://togithub.com/googleapis/java-shared-dependencies/commit/ac5083cd010924dc128f041c2cdbab20166a6bf0)) - update gax.version to v2.12.2 ([#​592](https://togithub.com/googleapis/java-shared-dependencies/issues/592)) ([713ff8d](https://togithub.com/googleapis/java-shared-dependencies/commit/713ff8dd94f939c417524616bc47c771a3fbe0cf)) - update google.common-protos.version to v2.7.4 ([#​603](https://togithub.com/googleapis/java-shared-dependencies/issues/603)) ([bb9b4c7](https://togithub.com/googleapis/java-shared-dependencies/commit/bb9b4c7e39552cc73b3b9d4c826b26e8cb74459f)) - update google.core.version ([#​599](https://togithub.com/googleapis/java-shared-dependencies/issues/599)) ([327d0df](https://togithub.com/googleapis/java-shared-dependencies/commit/327d0df9b57203c0d4f426de0380770d3d7910d6)) - update iam.version to v1.2.6 ([#​598](https://togithub.com/googleapis/java-shared-dependencies/issues/598)) ([2801439](https://togithub.com/googleapis/java-shared-dependencies/commit/280143964c7c3b93a8d7f67215ba2cc74ffce761))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5d87579bdb17..b411341b01af 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.7.0 + 2.8.0 pom import From 6a22e4845a17f3691079e377f42978e07e128ce0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 20:08:35 +0100 Subject: [PATCH 0963/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v24.4.0 (#1036) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.3.0` -> `24.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/compatibility-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/confidence-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/snippets/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c74e77759212..417ef7b2817d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.3.0 + 24.4.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.3.0') +implementation platform('com.google.cloud:libraries-bom:24.4.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 958cee80fa49..18280457a340 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 24.3.0 + 24.4.0 pom import From 8f3746bf4ccd1929e4c95972fff64dd27880a442 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Mar 2022 03:02:38 +0100 Subject: [PATCH 0964/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.5.4 (#1017) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.3` -> `2.5.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/compatibility-slim/2.5.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.4/confidence-slim/2.5.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.5.4`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​254-httpsgithubcomgoogleapisjava-corecomparev253v254-2022-02-11) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.3...v2.5.4)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7a8d960d0fac..155e04a22326 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.5.3 + 2.5.4 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 576bee4d08c7..139d0c146d7d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.5.3 + 2.5.4 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 18280457a340..acb33fa561e2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.5.3 + 2.5.4 tests From 812c7a6de8fa36e9ef487d6fcb08d6ca74c931dd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Mar 2022 19:34:19 +0100 Subject: [PATCH 0965/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.5.6 (#1038) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 155e04a22326..444c5c709929 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.5.4 + 2.5.6 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 139d0c146d7d..fa976de8e4b7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.5.4 + 2.5.6 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index acb33fa561e2..01f343c684d7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.5.4 + 2.5.6 tests From 8edcf7921f106673219ab387d4b71a629557587c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 18:46:44 +0000 Subject: [PATCH 0966/2363] chore: fix license header in build.bat (#1363) (#1037) * chore: fix license header in build.bat * chore: add disctribution field for setup-java action Source-Link: https://github.com/googleapis/synthtool/commit/4fea5f40a9075f3ba205ede0b453010cf080e194 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.kokoro/build.bat | 30 +++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 53941094cf48..3473042c086e 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:e3746f84955528d0fe24bf2e4df89875d6ce5a036af01b9c326d61a38838523a + digest: sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e diff --git a/java-pubsub/.kokoro/build.bat b/java-pubsub/.kokoro/build.bat index cc602c9eba80..067cf4a4c489 100644 --- a/java-pubsub/.kokoro/build.bat +++ b/java-pubsub/.kokoro/build.bat @@ -1,18 +1,18 @@ +:: Copyright 2022 Google LLC +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: Github action job to test core java library features on +:: downstream client libraries before they are released. :: See documentation in type-shell-output.bat -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh From 0376d2cd5e93da7c1438b1e3538555a7e06a24bf Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Fri, 4 Mar 2022 08:42:23 -0800 Subject: [PATCH 0967/2363] samples: create subscription with exactly once delivery enabled (#1032) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: create subscription with exactly once delivery enabled * lint * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 1 + ...teSubscriptionWithExactlyOnceDelivery.java | 59 +++++++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 16 ++++- 3 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 417ef7b2817d..fa6ddbde25c8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -245,6 +245,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | | Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | | Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | +| Create Subscription With Exactly Once Delivery | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | | Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java new file mode 100644 index 000000000000..e5f4a0e92909 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_subscription_with_exactly_once_delivery] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class CreateSubscriptionWithExactlyOnceDelivery { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + String subscriptionId = "your-subscription-id"; + + createSubscriptionWithExactlyOnceDeliveryExample(projectId, topicId, subscriptionId); + } + + public static void createSubscriptionWithExactlyOnceDeliveryExample( + String projectId, String topicId, String subscriptionId) throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + Subscription subscription = + subscriptionAdminClient.createSubscription( + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + // Enable exactly once delivery in the subscription. + .setEnableExactlyOnceDelivery(true) + .build()); + + System.out.println( + "Created a subscription with exactly once delivery enabled: " + + subscription.getAllFields()); + } + } +} +// [END pubsub_create_subscription_with_exactly_once_delivery] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index b0f57d50a61f..b84751e0aa41 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -45,6 +45,8 @@ public class AdminIT { private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; private static final String filteredSubscriptionId = "iam-filtered-subscription-" + _suffix; + private static final String exactlyOnceSubscriptionId = + "iam-exactly-once-subscription-" + _suffix; private static final String pushEndpoint = "https://my-test-project.appspot.com/push"; private static final TopicName topicName = TopicName.of(projectId, topicId); @@ -56,6 +58,8 @@ public class AdminIT { SubscriptionName.of(projectId, orderedSubscriptionId); private static final SubscriptionName filteredSubscriptionName = SubscriptionName.of(projectId, filteredSubscriptionId); + private static final SubscriptionName exactlyOnceSubscriptionName = + SubscriptionName.of(projectId, exactlyOnceSubscriptionId); private static void requireEnvVar(String varName) { assertNotNull( @@ -86,6 +90,7 @@ public void tearDown() throws Exception { subscriptionAdminClient.deleteSubscription(pushSubscriptionName); subscriptionAdminClient.deleteSubscription(orderedSubscriptionName); subscriptionAdminClient.deleteSubscription(filteredSubscriptionName); + subscriptionAdminClient.deleteSubscription(exactlyOnceSubscriptionName); } catch (NotFoundException ignored) { // ignore this as resources may not have been created } @@ -196,10 +201,19 @@ public void testAdmin() throws Exception { .contains("google.pubsub.v1.Subscription.filter=attributes.author=\"unknown\""); bout.reset(); - // Test delete subscription. Run twice to delete both pull and push subscriptions. + // Test create a subscription with exactly once delivery enabled + CreateSubscriptionWithExactlyOnceDelivery.createSubscriptionWithExactlyOnceDeliveryExample( + projectId, topicId, exactlyOnceSubscriptionId); + assertThat(bout.toString()) + .contains("Created a subscription with exactly once delivery enabled:"); + assertThat(bout.toString()).contains("enable_exactly_once_delivery=true"); + + bout.reset(); + // Test delete subscription. DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pullSubscriptionId); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pushSubscriptionId); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, orderedSubscriptionId); + DeleteSubscriptionExample.deleteSubscriptionExample(projectId, exactlyOnceSubscriptionId); assertThat(bout.toString()).contains("Deleted subscription."); bout.reset(); From 82860825c0eff63ee274c30f1a40edb4f5de2341 Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Fri, 4 Mar 2022 12:27:11 -0500 Subject: [PATCH 0968/2363] feat: exactly once support v3 (#1022) * Added new interfaces * `AckReplyConsumerWithResponse` * `MessageReceiverWithAckResponse` * Added `AckResponse` enum * Changed `MessageDispatcher` and `StreamingSubscriberConnection` to use builder pattern * Keeps track of whether exactly-once delivery is enabled for a subscription by looking at the subscription's SubscriptionProperties * Set the minimum ack deadline to 60 secs if exactly-once is known to be turned on. * Add new min-lease-extension parameter. If the user sets this, it overrides the auto-set param * Changed `AckId` information for Modacks and Acks to use a new `AckRequestData` object that also includes the message future (if applicable) Minor Updates: * Added `Mockito` dependency for mocking in unit tests --- java-pubsub/google-cloud-pubsub/pom.xml | 5 + .../v1/AckReplyConsumerWithResponse.java | 25 + .../cloud/pubsub/v1/AckRequestData.java | 85 +++ .../google/cloud/pubsub/v1/AckResponse.java | 25 + .../cloud/pubsub/v1/MessageDispatcher.java | 459 ++++++++++----- .../v1/MessageReceiverWithAckResponse.java | 23 + .../cloud/pubsub/v1/ModackRequestData.java | 52 ++ .../v1/StreamingSubscriberConnection.java | 557 ++++++++++++++---- .../google/cloud/pubsub/v1/Subscriber.java | 171 +++++- .../google/cloud/pubsub/it/ITPubSubTest.java | 241 +++++++- .../pubsub/v1/CustomArgumentMatchers.java | 208 +++++++ .../v1/FakeScheduledExecutorService.java | 3 +- .../pubsub/v1/FakeSubscriberServiceImpl.java | 2 +- .../pubsub/v1/MessageDispatcherTest.java | 532 ++++++++++++----- .../v1/StreamingSubscriberConnectionTest.java | 490 +++++++++++++++ .../cloud/pubsub/v1/SubscriberTest.java | 70 ++- java-pubsub/pom.xml | 6 + 17 files changed, 2490 insertions(+), 464 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckResponse.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiverWithAckResponse.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/CustomArgumentMatchers.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 27e436e44e31..22fe71e2de0f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -95,6 +95,11 @@ + + org.mockito + mockito-core + test + junit junit diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java new file mode 100644 index 000000000000..199186004ef5 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java @@ -0,0 +1,25 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import java.util.concurrent.Future; + +public interface AckReplyConsumerWithResponse { + Future ack(); + + Future nack(); +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java new file mode 100644 index 000000000000..3b67ce21970d --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java @@ -0,0 +1,85 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.api.core.SettableApiFuture; +import java.util.Optional; + +public class AckRequestData { + private final String ackId; + private final Optional> messageFuture; + + protected AckRequestData(Builder builder) { + this.ackId = builder.ackId; + this.messageFuture = builder.messageFuture; + } + + public String getAckId() { + return ackId; + } + + public SettableApiFuture getMessageFutureIfExists() { + return this.messageFuture.orElse(null); + } + + public AckRequestData setResponse(AckResponse ackResponse, boolean setResponseOnSuccess) { + if (this.messageFuture.isPresent() && !this.messageFuture.get().isDone()) { + switch (ackResponse) { + case SUCCESSFUL: + if (setResponseOnSuccess) { + this.messageFuture.get().set(ackResponse); + } + break; + case INVALID: + case OTHER: + case PERMISSION_DENIED: + case FAILED_PRECONDITION: + // Non-succesful messages will get set for both acks, nacks, and modacks + this.messageFuture.get().set(ackResponse); + break; + } + } + return this; + } + + public boolean hasMessageFuture() { + return this.messageFuture.isPresent(); + } + + public static Builder newBuilder(String ackId) { + return new Builder(ackId); + } + + /** Builder of {@link AckRequestData AckRequestData}. */ + protected static final class Builder { + private final String ackId; + private Optional> messageFuture = Optional.empty(); + + protected Builder(String ackId) { + this.ackId = ackId; + } + + public Builder setMessageFuture(SettableApiFuture messageFuture) { + this.messageFuture = Optional.of(messageFuture); + return this; + } + + public AckRequestData build() { + return new AckRequestData(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckResponse.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckResponse.java new file mode 100644 index 000000000000..162d87bc189d --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckResponse.java @@ -0,0 +1,25 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +public enum AckResponse { + PERMISSION_DENIED, + FAILED_PRECONDITION, + SUCCESSFUL, + INVALID, + OTHER +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 4177c6e01166..a9f73d5c32bb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -28,19 +28,8 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.ReceivedMessage; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.List; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentMap; -import java.util.concurrent.Executor; -import java.util.concurrent.LinkedBlockingQueue; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.ScheduledFuture; -import java.util.concurrent.TimeUnit; +import java.util.*; +import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.Lock; @@ -57,8 +46,8 @@ */ class MessageDispatcher { private static final Logger logger = Logger.getLogger(MessageDispatcher.class.getName()); - private static final double PERCENTILE_FOR_ACK_DEADLINE_UPDATES = 99.9; + @InternalApi static final double PERCENTILE_FOR_ACK_DEADLINE_UPDATES = 99.9; @InternalApi static final Duration PENDING_ACKS_SEND_DELAY = Duration.ofMillis(100); private final Executor executor; @@ -68,24 +57,31 @@ class MessageDispatcher { private final Duration ackExpirationPadding; private final Duration maxAckExtensionPeriod; - private final int maxSecondsPerAckExtension; - private final MessageReceiver receiver; + private int minDurationPerAckExtensionSeconds; + private final boolean minDurationPerAckExtensionDefaultUsed; + private final int maxDurationPerAckExtensionSeconds; + private final boolean maxDurationPerAckExtensionDefaultUsed; + + // Only one of receiver or receiverWithAckResponse will be set + private MessageReceiver receiver; + private MessageReceiverWithAckResponse receiverWithAckResponse; + private final AckProcessor ackProcessor; private final FlowController flowController; + + private AtomicBoolean enableExactlyOnceDelivery; + private final Waiter messagesWaiter; // Maps ID to "total expiration time". If it takes longer than this, stop extending. private final ConcurrentMap pendingMessages = new ConcurrentHashMap<>(); - private final LinkedBlockingQueue pendingAcks = new LinkedBlockingQueue<>(); - private final LinkedBlockingQueue pendingNacks = new LinkedBlockingQueue<>(); - private final LinkedBlockingQueue pendingReceipts = new LinkedBlockingQueue<>(); + private final LinkedBlockingQueue pendingAcks = new LinkedBlockingQueue<>(); + private final LinkedBlockingQueue pendingNacks = new LinkedBlockingQueue<>(); + private final LinkedBlockingQueue pendingReceipts = new LinkedBlockingQueue<>(); - // Start the deadline at the minimum ack deadline so messages which arrive before this is - // updated will not have a long ack deadline. - private final AtomicInteger messageDeadlineSeconds = - new AtomicInteger(Subscriber.MIN_ACK_DEADLINE_SECONDS); + private final AtomicInteger messageDeadlineSeconds = new AtomicInteger(); private final AtomicBoolean extendDeadline = new AtomicBoolean(true); private final Lock jobLock; private ScheduledFuture backgroundJob; @@ -94,28 +90,6 @@ class MessageDispatcher { // To keep track of number of seconds the receiver takes to process messages. private final Distribution ackLatencyDistribution; - /** Stores the data needed to asynchronously modify acknowledgement deadlines. */ - static class PendingModifyAckDeadline { - final List ackIds; - final int deadlineExtensionSeconds; - - PendingModifyAckDeadline(int deadlineExtensionSeconds, String... ackIds) { - this(deadlineExtensionSeconds, Arrays.asList(ackIds)); - } - - private PendingModifyAckDeadline(int deadlineExtensionSeconds, Collection ackIds) { - this.ackIds = new ArrayList(ackIds); - this.deadlineExtensionSeconds = deadlineExtensionSeconds; - } - - @Override - public String toString() { - return String.format( - "PendingModifyAckDeadline{extension: %d sec, ackIds: %s}", - deadlineExtensionSeconds, ackIds); - } - } - /** Internal representation of a reply to a Pubsub message, to be sent back to the service. */ public enum AckReply { ACK, @@ -124,21 +98,30 @@ public enum AckReply { /** Handles callbacks for acking/nacking messages from the {@link MessageReceiver}. */ private class AckHandler implements ApiFutureCallback { - private final String ackId; + private final AckRequestData ackRequestData; private final int outstandingBytes; private final long receivedTimeMillis; private final Instant totalExpiration; - private AckHandler(String ackId, int outstandingBytes, Instant totalExpiration) { - this.ackId = ackId; + private AckHandler( + AckRequestData ackRequestData, int outstandingBytes, Instant totalExpiration) { + this.ackRequestData = ackRequestData; this.outstandingBytes = outstandingBytes; this.receivedTimeMillis = clock.millisTime(); this.totalExpiration = totalExpiration; } + public AckRequestData getAckRequestData() { + return ackRequestData; + } + + public SettableApiFuture getMessageFutureIfExists() { + return this.ackRequestData.getMessageFutureIfExists(); + } + /** Stop extending deadlines for this message and free flow control. */ private void forget() { - if (pendingMessages.remove(ackId) == null) { + if (pendingMessages.remove(this.ackRequestData.getAckId()) == null) { /* * We're forgetting the message for the second time. Probably because we ran out of total * expiration, forget the message, then the user finishes working on the message, and forget @@ -154,64 +137,77 @@ private void forget() { public void onFailure(Throwable t) { logger.log( Level.WARNING, - "MessageReceiver failed to process ack ID: " + ackId + ", the message will be nacked.", + "MessageReceiver failed to process ack ID: " + + this.ackRequestData.getAckId() + + ", the message will be nacked.", t); - pendingNacks.add(ackId); + this.ackRequestData.setResponse(AckResponse.OTHER, false); + pendingNacks.add(this.ackRequestData); forget(); } @Override public void onSuccess(AckReply reply) { - LinkedBlockingQueue destination; switch (reply) { case ACK: - destination = pendingAcks; + pendingAcks.add(this.ackRequestData); // Record the latency rounded to the next closest integer. ackLatencyDistribution.record( Ints.saturatedCast( (long) Math.ceil((clock.millisTime() - receivedTimeMillis) / 1000D))); break; case NACK: - destination = pendingNacks; + pendingNacks.add(this.ackRequestData); break; default: throw new IllegalArgumentException(String.format("AckReply: %s not supported", reply)); } - destination.add(ackId); forget(); } } interface AckProcessor { - void sendAckOperations( - List acksToSend, List ackDeadlineExtensions); + public void sendAckOperations(List ackRequestDataList); + + public void sendModackOperations(List modackRequestDataList); } - MessageDispatcher( - MessageReceiver receiver, - AckProcessor ackProcessor, - Duration ackExpirationPadding, - Duration maxAckExtensionPeriod, - Duration maxDurationPerAckExtension, - Distribution ackLatencyDistribution, - FlowController flowController, - Executor executor, - ScheduledExecutorService systemExecutor, - ApiClock clock) { - this.executor = executor; - this.systemExecutor = systemExecutor; - this.ackExpirationPadding = ackExpirationPadding; - this.maxAckExtensionPeriod = maxAckExtensionPeriod; - this.maxSecondsPerAckExtension = Math.toIntExact(maxDurationPerAckExtension.getSeconds()); - this.receiver = receiver; - this.ackProcessor = ackProcessor; - this.flowController = flowController; - // 601 buckets of 1s resolution from 0s to MAX_ACK_DEADLINE_SECONDS - this.ackLatencyDistribution = ackLatencyDistribution; + private MessageDispatcher(Builder builder) { + executor = builder.executor; + systemExecutor = builder.systemExecutor; + ackExpirationPadding = builder.ackExpirationPadding; + maxAckExtensionPeriod = builder.maxAckExtensionPeriod; + + minDurationPerAckExtensionSeconds = + Math.toIntExact(builder.minDurationPerAckExtension.getSeconds()); + minDurationPerAckExtensionDefaultUsed = builder.minDurationPerAckExtensionDefaultUsed; + maxDurationPerAckExtensionSeconds = + Math.toIntExact(builder.maxDurationPerAckExtension.getSeconds()); + maxDurationPerAckExtensionDefaultUsed = builder.maxDurationPerAckExtensionDefaultUsed; + + // Start the deadline at the minimum ack deadline so messages which arrive before this is + // updated will not have a long ack deadline. + if (minDurationPerAckExtensionDefaultUsed) { + messageDeadlineSeconds.set(Math.toIntExact(Subscriber.MIN_STREAM_ACK_DEADLINE.getSeconds())); + } else { + messageDeadlineSeconds.set(minDurationPerAckExtensionSeconds); + } + + receiver = builder.receiver; + receiverWithAckResponse = builder.receiverWithAckResponse; + + ackProcessor = builder.ackProcessor; + flowController = builder.flowController; + enableExactlyOnceDelivery = new AtomicBoolean(builder.enableExactlyOnceDelivery); + ackLatencyDistribution = builder.ackLatencyDistribution; + clock = builder.clock; jobLock = new ReentrantLock(); messagesWaiter = new Waiter(); - this.clock = clock; - this.sequentialExecutor = new SequentialExecutorService.AutoExecutor(executor); + sequentialExecutor = new SequentialExecutorService.AutoExecutor(builder.executor); + } + + private boolean shouldSetMessageFuture() { + return receiverWithAckResponse != null; } void start() { @@ -256,7 +252,7 @@ public void run() { newDeadlineSec - ackExpirationPadding.getSeconds(), TimeUnit.SECONDS); } - processOutstandingAckOperations(); + processOutstandingOperations(); } catch (Throwable t) { // Catch everything so that one run failing doesn't prevent subsequent runs. logger.log(Level.WARNING, "failed to run periodic job", t); @@ -286,7 +282,7 @@ void stop() { } finally { jobLock.unlock(); } - processOutstandingAckOperations(); + processOutstandingOperations(); } @InternalApi @@ -299,6 +295,43 @@ int getMessageDeadlineSeconds() { return messageDeadlineSeconds.get(); } + @InternalApi + void setEnableExactlyOnceDelivery(boolean enableExactlyOnceDelivery) { + // Sanity check that we are changing the enableExactlyOnceDelivery state + if (enableExactlyOnceDelivery == this.enableExactlyOnceDelivery.get()) { + return; + } + + this.enableExactlyOnceDelivery.set(enableExactlyOnceDelivery); + + // If a custom value for minDurationPerAckExtension, we should respect that + if (!minDurationPerAckExtensionDefaultUsed) { + return; + } + + // We just need to update the minDurationPerAckExtensionSeconds as the + // maxDurationPerAckExtensionSeconds does not change + int possibleNewMinAckDeadlineExtensionSeconds; + + if (enableExactlyOnceDelivery) { + possibleNewMinAckDeadlineExtensionSeconds = + Math.toIntExact( + Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY.getSeconds()); + } else { + possibleNewMinAckDeadlineExtensionSeconds = + Math.toIntExact(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION.getSeconds()); + } + + // If we are not using the default maxDurationAckExtension, check if the + // minAckDeadlineExtensionExactlyOnce needs to be bounded by the set max + if (!maxDurationPerAckExtensionDefaultUsed + && (possibleNewMinAckDeadlineExtensionSeconds > maxDurationPerAckExtensionSeconds)) { + minDurationPerAckExtensionSeconds = maxDurationPerAckExtensionSeconds; + } else { + minDurationPerAckExtensionSeconds = possibleNewMinAckDeadlineExtensionSeconds; + } + } + private static class OutstandingMessage { private final ReceivedMessage receivedMessage; private final AckHandler ackHandler; @@ -313,9 +346,13 @@ void processReceivedMessages(List messages) { Instant totalExpiration = now().plus(maxAckExtensionPeriod); List outstandingBatch = new ArrayList<>(messages.size()); for (ReceivedMessage message : messages) { + AckRequestData.Builder builder = AckRequestData.newBuilder(message.getAckId()); + if (shouldSetMessageFuture()) { + builder.setMessageFuture(SettableApiFuture.create()); + } + AckRequestData ackRequestData = builder.build(); AckHandler ackHandler = - new AckHandler( - message.getAckId(), message.getMessage().getSerializedSize(), totalExpiration); + new AckHandler(ackRequestData, message.getMessage().getSerializedSize(), totalExpiration); if (pendingMessages.putIfAbsent(message.getAckId(), ackHandler) != null) { // putIfAbsent puts ackHandler if ackID isn't previously mapped, then return the // previously-mapped element. @@ -328,7 +365,7 @@ void processReceivedMessages(List messages) { continue; } outstandingBatch.add(new OutstandingMessage(message, ackHandler)); - pendingReceipts.add(message.getAckId()); + pendingReceipts.add(ackRequestData); } processBatch(outstandingBatch); @@ -363,20 +400,11 @@ private PubsubMessage addDeliveryInfoCount(ReceivedMessage receivedMessage) { } private void processOutstandingMessage(final PubsubMessage message, final AckHandler ackHandler) { - final SettableApiFuture response = SettableApiFuture.create(); - final AckReplyConsumer consumer = - new AckReplyConsumer() { - @Override - public void ack() { - response.set(AckReply.ACK); - } + // This future is for internal bookkeeping to be sent to the StreamingSubscriberConnection + // use below in the consumers + SettableApiFuture ackReplySettableApiFuture = SettableApiFuture.create(); + ApiFutures.addCallback(ackReplySettableApiFuture, ackHandler, MoreExecutors.directExecutor()); - @Override - public void nack() { - response.set(AckReply.NACK); - } - }; - ApiFutures.addCallback(response, ackHandler, MoreExecutors.directExecutor()); Runnable deliverMessageTask = new Runnable() { @Override @@ -392,10 +420,42 @@ public void run() { ackHandler.forget(); return; } + if (shouldSetMessageFuture()) { + // This is the message future that is propagated to the user + SettableApiFuture messageFuture = + ackHandler.getMessageFutureIfExists(); + final AckReplyConsumerWithResponse ackReplyConsumerWithResponse = + new AckReplyConsumerWithResponse() { + @Override + public Future ack() { + ackReplySettableApiFuture.set(AckReply.ACK); + return messageFuture; + } + + @Override + public Future nack() { + ackReplySettableApiFuture.set(AckReply.NACK); + return messageFuture; + } + }; + receiverWithAckResponse.receiveMessage(message, ackReplyConsumerWithResponse); + } else { + final AckReplyConsumer ackReplyConsumer = + new AckReplyConsumer() { + @Override + public void ack() { + ackReplySettableApiFuture.set(AckReply.ACK); + } - receiver.receiveMessage(message, consumer); + @Override + public void nack() { + ackReplySettableApiFuture.set(AckReply.NACK); + } + }; + receiver.receiveMessage(message, ackReplyConsumer); + } } catch (Exception e) { - response.setException(e); + ackReplySettableApiFuture.setException(e); } } }; @@ -409,26 +469,32 @@ public void run() { /** Compute the ideal deadline, set subsequent modacks to this deadline, and return it. */ @InternalApi int computeDeadlineSeconds() { - int sec = ackLatencyDistribution.getPercentile(PERCENTILE_FOR_ACK_DEADLINE_UPDATES); - - if ((maxSecondsPerAckExtension > 0) && (sec > maxSecondsPerAckExtension)) { - sec = maxSecondsPerAckExtension; + int deadlineSeconds = ackLatencyDistribution.getPercentile(PERCENTILE_FOR_ACK_DEADLINE_UPDATES); + + // Bound deadlineSeconds by extensions + if (!maxDurationPerAckExtensionDefaultUsed + && (deadlineSeconds > maxDurationPerAckExtensionSeconds)) { + deadlineSeconds = maxDurationPerAckExtensionSeconds; + } else if (deadlineSeconds < minDurationPerAckExtensionSeconds) { + deadlineSeconds = minDurationPerAckExtensionSeconds; } - // Use Ints.constrainToRange when we get guava 21. - if (sec < Subscriber.MIN_ACK_DEADLINE_SECONDS) { - sec = Subscriber.MIN_ACK_DEADLINE_SECONDS; - } else if (sec > Subscriber.MAX_ACK_DEADLINE_SECONDS) { - sec = Subscriber.MAX_ACK_DEADLINE_SECONDS; + // Bound deadlineSeconds by hard limits in subscriber + if (deadlineSeconds < Subscriber.MIN_STREAM_ACK_DEADLINE.getSeconds()) { + deadlineSeconds = Math.toIntExact(Subscriber.MIN_STREAM_ACK_DEADLINE.getSeconds()); + } else if (deadlineSeconds > Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds()) { + deadlineSeconds = Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds()); } - return sec; + + return deadlineSeconds; } @InternalApi void extendDeadlines() { int extendSeconds = getMessageDeadlineSeconds(); - List modacks = new ArrayList<>(); - PendingModifyAckDeadline modack = new PendingModifyAckDeadline(extendSeconds); + int numAckIdToSend = 0; + Map deadlineExtensionModacks = + new HashMap(); Instant now = now(); Instant extendTo = now.plusSeconds(extendSeconds); @@ -436,7 +502,12 @@ void extendDeadlines() { String ackId = entry.getKey(); Instant totalExpiration = entry.getValue().totalExpiration; if (totalExpiration.isAfter(extendTo)) { - modack.ackIds.add(ackId); + ModackRequestData modackRequestData = + deadlineExtensionModacks.computeIfAbsent( + extendSeconds, + deadlineExtensionSeconds -> new ModackRequestData(deadlineExtensionSeconds)); + modackRequestData.addAckRequestData(entry.getValue().getAckRequestData()); + numAckIdToSend++; continue; } @@ -445,43 +516,161 @@ void extendDeadlines() { entry.getValue().forget(); if (totalExpiration.isAfter(now)) { int sec = Math.max(1, (int) now.until(totalExpiration, ChronoUnit.SECONDS)); - modacks.add(new PendingModifyAckDeadline(sec, ackId)); + ModackRequestData modackRequestData = + deadlineExtensionModacks.computeIfAbsent( + sec, extensionSeconds -> new ModackRequestData(extensionSeconds)); + modackRequestData.addAckRequestData(entry.getValue().getAckRequestData()); + numAckIdToSend++; } } - logger.log(Level.FINER, "Sending {0} modacks", modack.ackIds.size() + modacks.size()); - modacks.add(modack); - List acksToSend = Collections.emptyList(); - ackProcessor.sendAckOperations(acksToSend, modacks); + if (numAckIdToSend > 0) { + logger.log(Level.FINER, "Sending {0} modacks", numAckIdToSend); + ackProcessor.sendModackOperations( + new ArrayList(deadlineExtensionModacks.values())); + } } @InternalApi - void processOutstandingAckOperations() { - List modifyAckDeadlinesToSend = new ArrayList<>(); + void processOutstandingOperations() { + List modackRequestData = new ArrayList(); - List acksToSend = new ArrayList<>(); - pendingAcks.drainTo(acksToSend); - logger.log(Level.FINER, "Sending {0} acks", acksToSend.size()); + // Nacks are modacks with an expiration of 0 + List nackRequestDataList = new ArrayList(); + pendingNacks.drainTo(nackRequestDataList); - PendingModifyAckDeadline nacksToSend = new PendingModifyAckDeadline(0); - pendingNacks.drainTo(nacksToSend.ackIds); - logger.log(Level.FINER, "Sending {0} nacks", nacksToSend.ackIds.size()); - if (!nacksToSend.ackIds.isEmpty()) { - modifyAckDeadlinesToSend.add(nacksToSend); + if (!nackRequestDataList.isEmpty()) { + modackRequestData.add(new ModackRequestData(0, nackRequestDataList)); } + logger.log(Level.FINER, "Sending {0} nacks", nackRequestDataList.size()); - PendingModifyAckDeadline receiptsToSend = - new PendingModifyAckDeadline(getMessageDeadlineSeconds()); - pendingReceipts.drainTo(receiptsToSend.ackIds); - logger.log(Level.FINER, "Sending {0} receipts", receiptsToSend.ackIds.size()); - if (!receiptsToSend.ackIds.isEmpty()) { - modifyAckDeadlinesToSend.add(receiptsToSend); + List ackRequestDataReceipts = new ArrayList(); + pendingReceipts.drainTo(ackRequestDataReceipts); + if (!ackRequestDataReceipts.isEmpty()) { + modackRequestData.add( + new ModackRequestData(this.getMessageDeadlineSeconds(), ackRequestDataReceipts)); } + logger.log(Level.FINER, "Sending {0} receipts", ackRequestDataReceipts.size()); + + ackProcessor.sendModackOperations(modackRequestData); + + List ackRequestDataList = new ArrayList(); + pendingAcks.drainTo(ackRequestDataList); + logger.log(Level.FINER, "Sending {0} acks", ackRequestDataList.size()); - ackProcessor.sendAckOperations(acksToSend, modifyAckDeadlinesToSend); + ackProcessor.sendAckOperations(ackRequestDataList); } private Instant now() { return Instant.ofEpochMilli(clock.millisTime()); } + + /** Builder of {@link MessageDispatcher MessageDispatchers}. */ + public static final class Builder { + private MessageReceiver receiver; + private MessageReceiverWithAckResponse receiverWithAckResponse; + + private AckProcessor ackProcessor; + private Duration ackExpirationPadding; + private Duration maxAckExtensionPeriod; + private Duration minDurationPerAckExtension; + private boolean minDurationPerAckExtensionDefaultUsed; + private Duration maxDurationPerAckExtension; + private boolean maxDurationPerAckExtensionDefaultUsed; + + private Distribution ackLatencyDistribution; + private FlowController flowController; + private boolean enableExactlyOnceDelivery; + + private Executor executor; + private ScheduledExecutorService systemExecutor; + private ApiClock clock; + + protected Builder(MessageReceiver receiver) { + this.receiver = receiver; + } + + protected Builder(MessageReceiverWithAckResponse receiverWithAckResponse) { + this.receiverWithAckResponse = receiverWithAckResponse; + } + + public Builder setAckProcessor(AckProcessor ackProcessor) { + this.ackProcessor = ackProcessor; + return this; + } + + public Builder setAckExpirationPadding(Duration ackExpirationPadding) { + this.ackExpirationPadding = ackExpirationPadding; + return this; + } + + public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { + this.maxAckExtensionPeriod = maxAckExtensionPeriod; + return this; + } + + public Builder setMinDurationPerAckExtension(Duration minDurationPerAckExtension) { + this.minDurationPerAckExtension = minDurationPerAckExtension; + return this; + } + + public Builder setMinDurationPerAckExtensionDefaultUsed( + boolean minDurationPerAckExtensionDefaultUsed) { + this.minDurationPerAckExtensionDefaultUsed = minDurationPerAckExtensionDefaultUsed; + return this; + } + + public Builder setMaxDurationPerAckExtension(Duration maxDurationPerAckExtension) { + this.maxDurationPerAckExtension = maxDurationPerAckExtension; + return this; + } + + public Builder setMaxDurationPerAckExtensionDefaultUsed( + boolean maxDurationPerAckExtensionDefaultUsed) { + this.maxDurationPerAckExtensionDefaultUsed = maxDurationPerAckExtensionDefaultUsed; + return this; + } + + public Builder setAckLatencyDistribution(Distribution ackLatencyDistribution) { + this.ackLatencyDistribution = ackLatencyDistribution; + return this; + } + + public Builder setFlowController(FlowController flowController) { + this.flowController = flowController; + return this; + } + + public Builder setEnableExactlyOnceDelivery(boolean enableExactlyOnceDelivery) { + this.enableExactlyOnceDelivery = enableExactlyOnceDelivery; + return this; + } + + public Builder setExecutor(Executor executor) { + this.executor = executor; + return this; + } + + public Builder setSystemExecutor(ScheduledExecutorService systemExecutor) { + this.systemExecutor = systemExecutor; + return this; + } + + public Builder setApiClock(ApiClock clock) { + this.clock = clock; + return this; + } + + public MessageDispatcher build() { + return new MessageDispatcher(this); + } + } + + public static Builder newBuilder(MessageReceiver receiver) { + return new Builder(receiver); + } + + public static Builder newBuilder(MessageReceiverWithAckResponse receiverWithAckResponse) { + return new Builder(receiverWithAckResponse); + } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiverWithAckResponse.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiverWithAckResponse.java new file mode 100644 index 000000000000..49792be07207 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiverWithAckResponse.java @@ -0,0 +1,23 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.pubsub.v1.PubsubMessage; + +public interface MessageReceiverWithAckResponse { + void receiveMessage(PubsubMessage message, AckReplyConsumerWithResponse consumer); +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java new file mode 100644 index 000000000000..b4d2dae0f6bf --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import java.util.*; + +class ModackRequestData { + private final int deadlineExtensionSeconds; + private List ackRequestData; + + ModackRequestData(int deadlineExtensionSeconds) { + this.deadlineExtensionSeconds = deadlineExtensionSeconds; + this.ackRequestData = new ArrayList(); + } + + ModackRequestData(int deadlineExtensionSeconds, AckRequestData... ackRequestData) { + this.deadlineExtensionSeconds = deadlineExtensionSeconds; + this.ackRequestData = Arrays.asList(ackRequestData); + } + + ModackRequestData(int deadlineExtensionSeconds, List ackRequestData) { + this.deadlineExtensionSeconds = deadlineExtensionSeconds; + this.ackRequestData = ackRequestData; + } + + public int getDeadlineExtensionSeconds() { + return deadlineExtensionSeconds; + } + + public List getAckRequestData() { + return ackRequestData; + } + + public ModackRequestData addAckRequestData(AckRequestData ackRequestData) { + this.ackRequestData.add(ackRequestData); + return this; + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 249d896b7ec2..d1af3a3e96d3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -16,41 +16,31 @@ package com.google.cloud.pubsub.v1; -import static com.google.cloud.pubsub.v1.Subscriber.DEFAULT_MAX_DURATION_PER_ACK_EXTENSION; import static com.google.common.util.concurrent.MoreExecutors.directExecutor; -import com.google.api.core.AbstractApiService; -import com.google.api.core.ApiClock; -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutureCallback; -import com.google.api.core.ApiFutures; -import com.google.api.core.InternalApi; -import com.google.api.core.SettableApiFuture; +import com.google.api.core.*; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; import com.google.api.gax.core.Distribution; import com.google.api.gax.grpc.GrpcCallContext; import com.google.api.gax.grpc.GrpcStatusCode; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.ClientStream; -import com.google.api.gax.rpc.ResponseObserver; -import com.google.api.gax.rpc.StreamController; +import com.google.api.gax.rpc.*; import com.google.cloud.pubsub.v1.MessageDispatcher.AckProcessor; -import com.google.cloud.pubsub.v1.MessageDispatcher.PendingModifyAckDeadline; import com.google.cloud.pubsub.v1.stub.SubscriberStub; import com.google.common.collect.Lists; import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Any; import com.google.protobuf.Empty; -import com.google.pubsub.v1.AcknowledgeRequest; -import com.google.pubsub.v1.ModifyAckDeadlineRequest; -import com.google.pubsub.v1.StreamingPullRequest; -import com.google.pubsub.v1.StreamingPullResponse; +import com.google.protobuf.InvalidProtocolBufferException; +import com.google.pubsub.v1.*; +import com.google.rpc.ErrorInfo; import io.grpc.Status; -import java.util.List; -import java.util.UUID; +import io.grpc.protobuf.StatusProto; +import java.util.*; +import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; @@ -64,15 +54,21 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private static final Logger logger = Logger.getLogger(StreamingSubscriberConnection.class.getName()); - @InternalApi static final Duration DEFAULT_STREAM_ACK_DEADLINE = Duration.ofSeconds(60); - @InternalApi static final Duration MAX_STREAM_ACK_DEADLINE = Duration.ofSeconds(600); - @InternalApi static final Duration MIN_STREAM_ACK_DEADLINE = Duration.ofSeconds(10); private static final Duration INITIAL_CHANNEL_RECONNECT_BACKOFF = Duration.ofMillis(100); private static final Duration MAX_CHANNEL_RECONNECT_BACKOFF = Duration.ofSeconds(10); + + private static final long INITIAL_ACK_OPERATIONS_RECONNECT_BACKOFF_MILLIS = 100; + private static final long MAX_ACK_OPERATIONS_RECONNECT_BACKOFF_MILLIS = + Duration.ofSeconds(10).toMillis(); private static final int MAX_PER_REQUEST_CHANGES = 1000; - private final Duration streamAckDeadline; - private final SubscriberStub stub; + private final String PERMANENT_FAILURE_INVALID_ACK_ID_METADATA = + "PERMANENT_FAILURE_INVALID_ACK_ID"; + private final String TRANSIENT_FAILURE_METADATA_PREFIX = "TRANSIENT_"; + + private Duration inititalStreamAckDeadline; + + private final SubscriberStub subscriberStub; private final int channelAffinity; private final String subscription; private final ScheduledExecutorService systemExecutor; @@ -81,6 +77,9 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final FlowControlSettings flowControlSettings; private final boolean useLegacyFlowControl; + // Keeps track of requests without closed futures + private final Set pendingRequests = ConcurrentHashMap.newKeySet(); + private final AtomicLong channelReconnectBackoffMillis = new AtomicLong(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); private final Waiter ackOperationsWaiter = new Waiter(); @@ -88,6 +87,8 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final Lock lock = new ReentrantLock(); private ClientStream clientStream; + private AtomicBoolean exactlyOnceDeliveryEnabled = new AtomicBoolean(false); + /** * The same clientId is used across all streaming pull connections that are created. This is * intentional, as it indicates to the server that any guarantees made for a stream that @@ -95,48 +96,71 @@ final class StreamingSubscriberConnection extends AbstractApiService implements */ private final String clientId = UUID.randomUUID().toString(); - public StreamingSubscriberConnection( - String subscription, - MessageReceiver receiver, - Duration ackExpirationPadding, - Duration maxAckExtensionPeriod, - Duration maxDurationPerAckExtension, - Distribution ackLatencyDistribution, - SubscriberStub stub, - int channelAffinity, - FlowControlSettings flowControlSettings, - boolean useLegacyFlowControl, - FlowController flowController, - ScheduledExecutorService executor, - ScheduledExecutorService systemExecutor, - ApiClock clock) { - this.subscription = subscription; - this.systemExecutor = systemExecutor; - if (maxDurationPerAckExtension.compareTo(DEFAULT_MAX_DURATION_PER_ACK_EXTENSION) == 0) { - this.streamAckDeadline = DEFAULT_STREAM_ACK_DEADLINE; - } else if (maxDurationPerAckExtension.compareTo(MIN_STREAM_ACK_DEADLINE) < 0) { - this.streamAckDeadline = MIN_STREAM_ACK_DEADLINE; - } else if (maxDurationPerAckExtension.compareTo(MAX_STREAM_ACK_DEADLINE) > 0) { - this.streamAckDeadline = MAX_STREAM_ACK_DEADLINE; + private StreamingSubscriberConnection(Builder builder) { + subscription = builder.subscription; + systemExecutor = builder.systemExecutor; + + // We need to set the default stream ack deadline on the initial request, this will be + // updated by modack requests in the message dispatcher + if (builder.maxDurationPerAckExtensionDefaultUsed) { + // If the default is used, check if exactly once is enabled and set appropriately + if (builder.exactlyOnceDeliveryEnabled) { + inititalStreamAckDeadline = Subscriber.STREAM_ACK_DEADLINE_EXACTLY_ONCE_DELIVERY_DEFAULT; + } else { + inititalStreamAckDeadline = Subscriber.STREAM_ACK_DEADLINE_DEFAULT; + } + } else if (builder.maxDurationPerAckExtension.compareTo(Subscriber.MIN_STREAM_ACK_DEADLINE) + < 0) { + // We will not be able to extend more than the default minimum + inititalStreamAckDeadline = Subscriber.MIN_STREAM_ACK_DEADLINE; + } else if (builder.maxDurationPerAckExtension.compareTo(Subscriber.MAX_STREAM_ACK_DEADLINE) + > 0) { + // Will not be able to extend past the max + inititalStreamAckDeadline = Subscriber.MAX_STREAM_ACK_DEADLINE; + } else { + inititalStreamAckDeadline = builder.maxDurationPerAckExtension; + } + + subscriberStub = builder.subscriberStub; + channelAffinity = builder.channelAffinity; + exactlyOnceDeliveryEnabled.set(builder.exactlyOnceDeliveryEnabled); + + MessageDispatcher.Builder messageDispatcherBuilder; + if (builder.receiver != null) { + messageDispatcherBuilder = MessageDispatcher.newBuilder(builder.receiver); } else { - this.streamAckDeadline = maxDurationPerAckExtension; - } - this.stub = stub; - this.channelAffinity = channelAffinity; - this.messageDispatcher = - new MessageDispatcher( - receiver, - this, - ackExpirationPadding, - maxAckExtensionPeriod, - maxDurationPerAckExtension, - ackLatencyDistribution, - flowController, - executor, - systemExecutor, - clock); - this.flowControlSettings = flowControlSettings; - this.useLegacyFlowControl = useLegacyFlowControl; + messageDispatcherBuilder = MessageDispatcher.newBuilder(builder.receiverWithAckResponse); + } + + messageDispatcher = + messageDispatcherBuilder + .setAckProcessor(this) + .setAckExpirationPadding(builder.ackExpirationPadding) + .setMaxAckExtensionPeriod(builder.maxAckExtensionPeriod) + .setMinDurationPerAckExtension(builder.minDurationPerAckExtension) + .setMinDurationPerAckExtensionDefaultUsed(builder.minDurationPerAckExtensionDefaultUsed) + .setMaxDurationPerAckExtension(builder.maxDurationPerAckExtension) + .setMaxDurationPerAckExtensionDefaultUsed(builder.maxDurationPerAckExtensionDefaultUsed) + .setAckLatencyDistribution(builder.ackLatencyDistribution) + .setFlowController(builder.flowController) + .setEnableExactlyOnceDelivery(builder.exactlyOnceDeliveryEnabled) + .setExecutor(builder.executor) + .setSystemExecutor(builder.systemExecutor) + .setApiClock(builder.clock) + .build(); + + flowControlSettings = builder.flowControlSettings; + useLegacyFlowControl = builder.useLegacyFlowControl; + } + + public StreamingSubscriberConnection setExactlyOnceDeliveryEnabled( + boolean isExactlyOnceDeliveryEnabled) { + exactlyOnceDeliveryEnabled.set(isExactlyOnceDeliveryEnabled); + return this; + } + + public boolean isExactlyOnceDeliveryEnabled() { + return exactlyOnceDeliveryEnabled.get(); } @Override @@ -192,7 +216,14 @@ public void onStart(StreamController controller) { @Override public void onResponse(StreamingPullResponse response) { channelReconnectBackoffMillis.set(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); + + boolean exactlyOnceDeliveryEnabledResponse = + response.getSubscriptionProperties().getExactlyOnceDeliveryEnabled(); + + setExactlyOnceDeliveryEnabled(exactlyOnceDeliveryEnabledResponse); + messageDispatcher.setEnableExactlyOnceDelivery(exactlyOnceDeliveryEnabledResponse); messageDispatcher.processReceivedMessages(response.getReceivedMessagesList()); + // Only request more if we're not shutdown. // If errorFuture is done, the stream has either failed or hung up, // and we don't need to request. @@ -222,10 +253,13 @@ public void onComplete() { private void initialize() { final SettableApiFuture errorFuture = SettableApiFuture.create(); + final ResponseObserver responseObserver = new StreamingPullResponseObserver(errorFuture); + ClientStream initClientStream = - stub.streamingPullCallable() + subscriberStub + .streamingPullCallable() .splitCall( responseObserver, GrpcCallContext.createDefault().withChannelAffinity(channelAffinity)); @@ -236,7 +270,7 @@ private void initialize() { initClientStream.send( StreamingPullRequest.newBuilder() .setSubscription(subscription) - .setStreamAckDeadlineSeconds((int) streamAckDeadline.getSeconds()) + .setStreamAckDeadlineSeconds(Math.toIntExact(inititalStreamAckDeadline.getSeconds())) .setClientId(clientId) .setMaxOutstandingMessages( this.useLegacyFlowControl @@ -287,6 +321,7 @@ public void onFailure(Throwable cause) { cause, GrpcStatusCode.of(Status.fromThrowable(cause).getCode()), false); logger.log(Level.SEVERE, "terminated streaming with exception", gaxException); runShutdown(); + setFailureFutureOutstandingMessages(cause); notifyFailed(gaxException); return; } @@ -319,52 +354,372 @@ private boolean isAlive() { return state == State.RUNNING || state == State.STARTING; } + public void setResponseOutstandingMessages(AckResponse ackResponse) { + // We will close the futures with ackResponse - if there are multiple references to the same + // future they will be handled appropriately + logger.log( + Level.WARNING, "Setting response: {0} on outstanding messages", ackResponse.toString()); + for (AckRequestData ackRequestData : pendingRequests) { + ackRequestData.setResponse(ackResponse, false); + } + + // Clear our pending requests + pendingRequests.clear(); + } + + private void setFailureFutureOutstandingMessages(Throwable t) { + AckResponse ackResponse; + + if (isExactlyOnceDeliveryEnabled()) { + if (!(t instanceof ApiException)) { + ackResponse = AckResponse.OTHER; + } + + ApiException apiException = (ApiException) t; + switch (apiException.getStatusCode().getCode()) { + case FAILED_PRECONDITION: + ackResponse = AckResponse.FAILED_PRECONDITION; + break; + case PERMISSION_DENIED: + ackResponse = AckResponse.PERMISSION_DENIED; + break; + default: + ackResponse = AckResponse.OTHER; + } + } else { + // We should set success regardless if ExactlyOnceDelivery is not enabled + ackResponse = AckResponse.SUCCESSFUL; + } + + setResponseOutstandingMessages(ackResponse); + } + @Override - public void sendAckOperations( - List acksToSend, List ackDeadlineExtensions) { - ApiFutureCallback loggingCallback = - new ApiFutureCallback() { - @Override - public void onSuccess(Empty empty) { - ackOperationsWaiter.incrementPendingCount(-1); - } + public void sendAckOperations(List ackRequestDataList) { + sendAckOperations(ackRequestDataList, INITIAL_ACK_OPERATIONS_RECONNECT_BACKOFF_MILLIS); + } - @Override - public void onFailure(Throwable t) { - ackOperationsWaiter.incrementPendingCount(-1); - Level level = isAlive() ? Level.WARNING : Level.FINER; - logger.log(level, "failed to send operations", t); - } - }; + @Override + public void sendModackOperations(List modackRequestDataList) { + sendModackOperations(modackRequestDataList, INITIAL_ACK_OPERATIONS_RECONNECT_BACKOFF_MILLIS); + } + private void sendAckOperations( + List ackRequestDataList, long currentBackoffMillis) { int pendingOperations = 0; - for (PendingModifyAckDeadline modack : ackDeadlineExtensions) { - for (List idChunk : Lists.partition(modack.ackIds, MAX_PER_REQUEST_CHANGES)) { - ApiFuture future = - stub.modifyAckDeadlineCallable() + for (List ackRequestDataInRequestList : + Lists.partition(ackRequestDataList, MAX_PER_REQUEST_CHANGES)) { + List ackIdsInRequest = new ArrayList<>(); + for (AckRequestData ackRequestData : ackRequestDataInRequestList) { + ackIdsInRequest.add(ackRequestData.getAckId()); + if (ackRequestData.hasMessageFuture()) { + // Add to our pending requests if we care about the response + pendingRequests.add(ackRequestData); + } + } + ApiFutureCallback callback = + getCallback(ackRequestDataInRequestList, 0, false, currentBackoffMillis); + ApiFuture ackFuture = + subscriberStub + .acknowledgeCallable() + .futureCall( + AcknowledgeRequest.newBuilder() + .setSubscription(subscription) + .addAllAckIds(ackIdsInRequest) + .build()); + ApiFutures.addCallback(ackFuture, callback, directExecutor()); + pendingOperations++; + } + ackOperationsWaiter.incrementPendingCount(pendingOperations); + } + + private void sendModackOperations( + List modackRequestDataList, long currentBackoffMillis) { + // Send modacks + int pendingOperations = 0; + for (ModackRequestData modackRequestData : modackRequestDataList) { + List ackIdsInRequest = new ArrayList<>(); + for (List ackRequestDataInRequestList : + Lists.partition(modackRequestData.getAckRequestData(), MAX_PER_REQUEST_CHANGES)) { + for (AckRequestData ackRequestData : ackRequestDataInRequestList) { + ackIdsInRequest.add(ackRequestData.getAckId()); + if (ackRequestData.hasMessageFuture()) { + // Add to our pending requests if we care about the response + pendingRequests.add(ackRequestData); + } + } + ApiFutureCallback callback = + getCallback( + modackRequestData.getAckRequestData(), + modackRequestData.getDeadlineExtensionSeconds(), + true, + currentBackoffMillis); + ApiFuture modackFuture = + subscriberStub + .modifyAckDeadlineCallable() .futureCall( ModifyAckDeadlineRequest.newBuilder() .setSubscription(subscription) - .addAllAckIds(idChunk) - .setAckDeadlineSeconds(modack.deadlineExtensionSeconds) + .addAllAckIds(ackIdsInRequest) + .setAckDeadlineSeconds(modackRequestData.getDeadlineExtensionSeconds()) .build()); - ApiFutures.addCallback(future, loggingCallback, directExecutor()); + ApiFutures.addCallback(modackFuture, callback, directExecutor()); pendingOperations++; } } + ackOperationsWaiter.incrementPendingCount(pendingOperations); + } - for (List idChunk : Lists.partition(acksToSend, MAX_PER_REQUEST_CHANGES)) { - ApiFuture future = - stub.acknowledgeCallable() - .futureCall( - AcknowledgeRequest.newBuilder() - .setSubscription(subscription) - .addAllAckIds(idChunk) - .build()); - ApiFutures.addCallback(future, loggingCallback, directExecutor()); - pendingOperations++; + private Map getMetadataMapFromThrowable(Throwable t) + throws InvalidProtocolBufferException { + // This converts a Throwable (from a "OK" grpc response) to a map of metadata + // will be of the format: + // { + // "ACK-ID-1": "PERMANENT_*", + // "ACK-ID-2": "TRANSIENT_*" + // } + com.google.rpc.Status status = StatusProto.fromThrowable(t); + Map metadataMap = new HashMap<>(); + if (status != null) { + for (Any any : status.getDetailsList()) { + if (any.is(ErrorInfo.class)) { + ErrorInfo errorInfo = any.unpack(ErrorInfo.class); + metadataMap = errorInfo.getMetadataMap(); + } + } } + return metadataMap; + } - ackOperationsWaiter.incrementPendingCount(pendingOperations); + private ApiFutureCallback getCallback( + List ackRequestDataList, + int deadlineExtensionSeconds, + boolean isModack, + long currentBackoffMillis) { + // This callback handles retries, and sets message futures + + // Check if ack or nack + boolean setResponseOnSuccess = (!isModack || (deadlineExtensionSeconds == 0)) ? true : false; + + return new ApiFutureCallback() { + @Override + public void onSuccess(Empty empty) { + ackOperationsWaiter.incrementPendingCount(-1); + for (AckRequestData ackRequestData : ackRequestDataList) { + // This will check if a response is needed, and if it has already been set + ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); + // Remove from our pending operations + pendingRequests.remove(ackRequestData); + } + } + + @Override + public void onFailure(Throwable t) { + // Remove from our pending operations + ackOperationsWaiter.incrementPendingCount(-1); + + if (!isExactlyOnceDeliveryEnabled()) { + Level level = isAlive() ? Level.WARNING : Level.FINER; + logger.log(level, "failed to send operations", t); + return; + } + + List ackRequestDataArrayRetryList = new ArrayList<>(); + try { + Map metadataMap = getMetadataMapFromThrowable(t); + ackRequestDataList.forEach( + ackRequestData -> { + String ackId = ackRequestData.getAckId(); + if (metadataMap.containsKey(ackId)) { + // An error occured + String errorMessage = metadataMap.get(ackId); + if (errorMessage.startsWith(TRANSIENT_FAILURE_METADATA_PREFIX)) { + // Retry all "TRANSIENT_*" error messages - do not set message future + logger.log(Level.WARNING, "Transient error message, will resend", errorMessage); + ackRequestDataArrayRetryList.add(ackRequestData); + } else if (errorMessage.equals(PERMANENT_FAILURE_INVALID_ACK_ID_METADATA)) { + // Permanent failure, send + logger.log( + Level.WARNING, + "Permanent error invalid ack id message, will not resend", + errorMessage); + ackRequestData.setResponse(AckResponse.INVALID, setResponseOnSuccess); + } else { + logger.log( + Level.WARNING, "Unknown error message, will not resend", errorMessage); + ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); + } + } else { + ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); + } + // Remove from our pending + pendingRequests.remove(ackRequestData); + }); + } catch (InvalidProtocolBufferException e) { + // If we fail to parse out the errorInfo, we should retry all + logger.log( + Level.WARNING, "Exception occurred when parsing throwable {0} for errorInfo", t); + ackRequestDataArrayRetryList.addAll(ackRequestDataList); + } + + // Handle retries + if (!ackRequestDataArrayRetryList.isEmpty()) { + long newBackoffMillis = + Math.min(currentBackoffMillis * 2, MAX_ACK_OPERATIONS_RECONNECT_BACKOFF_MILLIS); + systemExecutor.schedule( + new Runnable() { + @Override + public void run() { + if (isModack) { + // Create a new modackRequest with only the retries + ModackRequestData modackRequestData = + new ModackRequestData( + deadlineExtensionSeconds, ackRequestDataArrayRetryList); + sendModackOperations( + Collections.singletonList(modackRequestData), newBackoffMillis); + } else { + sendAckOperations(ackRequestDataArrayRetryList, newBackoffMillis); + } + } + }, + currentBackoffMillis, + TimeUnit.MILLISECONDS); + } + + Level level = isAlive() ? Level.WARNING : Level.FINER; + logger.log(level, "failed to send operations", t); + } + }; + } + + /** Builder of {@link StreamingSubscriberConnection StreamingSubscriberConnections}. */ + public static final class Builder { + private MessageReceiver receiver; + private MessageReceiverWithAckResponse receiverWithAckResponse; + private String subscription; + private Duration ackExpirationPadding; + private Duration maxAckExtensionPeriod; + private Duration minDurationPerAckExtension; + private boolean minDurationPerAckExtensionDefaultUsed; + private Duration maxDurationPerAckExtension; + private boolean maxDurationPerAckExtensionDefaultUsed; + + private Distribution ackLatencyDistribution; + private SubscriberStub subscriberStub; + private int channelAffinity; + private FlowController flowController; + private FlowControlSettings flowControlSettings; + private boolean exactlyOnceDeliveryEnabled; + private boolean useLegacyFlowControl; + private ScheduledExecutorService executor; + private ScheduledExecutorService systemExecutor; + private ApiClock clock; + + protected Builder(MessageReceiver receiver) { + this.receiver = receiver; + } + + protected Builder(MessageReceiverWithAckResponse receiverWithAckResponse) { + this.receiverWithAckResponse = receiverWithAckResponse; + } + + public Builder setSubscription(String subscription) { + this.subscription = subscription; + return this; + } + + public Builder setAckExpirationPadding(Duration ackExpirationPadding) { + this.ackExpirationPadding = ackExpirationPadding; + return this; + } + + public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { + this.maxAckExtensionPeriod = maxAckExtensionPeriod; + return this; + } + + public Builder setMinDurationPerAckExtension(Duration minDurationPerAckExtension) { + this.minDurationPerAckExtension = minDurationPerAckExtension; + return this; + } + + public Builder setMinDurationPerAckExtensionDefaultUsed( + boolean minDurationPerAckExtensionDefaultUsed) { + this.minDurationPerAckExtensionDefaultUsed = minDurationPerAckExtensionDefaultUsed; + return this; + } + + public Builder setMaxDurationPerAckExtension(Duration maxDurationPerAckExtension) { + this.maxDurationPerAckExtension = maxDurationPerAckExtension; + return this; + } + + public Builder setMaxDurationPerAckExtensionDefaultUsed( + boolean maxDurationPerAckExtensionDefaultUsed) { + this.maxDurationPerAckExtensionDefaultUsed = maxDurationPerAckExtensionDefaultUsed; + return this; + } + + public Builder setAckLatencyDistribution(Distribution ackLatencyDistribution) { + this.ackLatencyDistribution = ackLatencyDistribution; + return this; + } + + public Builder setSubscriberStub(SubscriberStub subscriberStub) { + this.subscriberStub = subscriberStub; + return this; + } + + public Builder setChannelAffinity(int channelAffinity) { + this.channelAffinity = channelAffinity; + return this; + } + + public Builder setFlowController(FlowController flowController) { + this.flowController = flowController; + return this; + } + + public Builder setFlowControlSettings(FlowControlSettings flowControlSettings) { + this.flowControlSettings = flowControlSettings; + return this; + } + + public Builder setUseLegacyFlowControl(boolean useLegacyFlowControl) { + this.useLegacyFlowControl = useLegacyFlowControl; + return this; + } + + public Builder setExactlyOnceDeliveryEnabled(boolean exactlyOnceDeliveryEnabled) { + this.exactlyOnceDeliveryEnabled = exactlyOnceDeliveryEnabled; + return this; + } + + public Builder setExecutor(ScheduledExecutorService executor) { + this.executor = executor; + return this; + } + + public Builder setSystemExecutor(ScheduledExecutorService systemExecutor) { + this.systemExecutor = systemExecutor; + return this; + } + + public Builder setClock(ApiClock clock) { + this.clock = clock; + return this; + } + + public StreamingSubscriberConnection build() { + return new StreamingSubscriberConnection(this); + } + } + + public static Builder newBuilder(MessageReceiver receiver) { + return new Builder(receiver); + } + + public static Builder newBuilder(MessageReceiverWithAckResponse receiverWithAckResponse) { + return new Builder(receiverWithAckResponse); } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 656a19fdd5ad..4ee66b03194c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -89,13 +89,28 @@ * details. */ public class Subscriber extends AbstractApiService implements SubscriberInterface { - @InternalApi static final Duration DEFAULT_MAX_DURATION_PER_ACK_EXTENSION = Duration.ofMillis(0); private static final int THREADS_PER_CHANNEL = 5; private static final int MAX_INBOUND_MESSAGE_SIZE = 20 * 1024 * 1024; // 20MB API maximum message size. - @InternalApi static final int MAX_ACK_DEADLINE_SECONDS = 600; - @InternalApi static final int MIN_ACK_DEADLINE_SECONDS = 10; - private static final Duration ACK_EXPIRATION_PADDING = Duration.ofSeconds(5); + + @InternalApi static final Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); + + @InternalApi + static final Duration DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY = + Duration.ofMinutes(1); + + @InternalApi static final Duration DEFAULT_MIN_ACK_DEADLINE_EXTENSION = Duration.ofMinutes(0); + @InternalApi static final Duration DEFAULT_MAX_ACK_DEADLINE_EXTENSION = Duration.ofSeconds(0); + + @InternalApi static final Duration MIN_STREAM_ACK_DEADLINE = Duration.ofSeconds(10); + @InternalApi static final Duration MAX_STREAM_ACK_DEADLINE = Duration.ofSeconds(600); + + @InternalApi static final Duration STREAM_ACK_DEADLINE_DEFAULT = Duration.ofSeconds(60); + + @InternalApi + static final Duration STREAM_ACK_DEADLINE_EXACTLY_ONCE_DELIVERY_DEFAULT = Duration.ofSeconds(60); + + @InternalApi static final Duration ACK_EXPIRATION_PADDING_DEFAULT = Duration.ofSeconds(5); private static final Logger logger = Logger.getLogger(Subscriber.class.getName()); @@ -104,32 +119,43 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final boolean useLegacyFlowControl; private final Duration maxAckExtensionPeriod; private final Duration maxDurationPerAckExtension; + private final boolean maxDurationPerAckExtensionDefaultUsed; + private final Duration minDurationPerAckExtension; + private final boolean minDurationPerAckExtensionDefaultUsed; + // The ExecutorProvider used to generate executors for processing messages. private final ExecutorProvider executorProvider; // An instantiation of the SystemExecutorProvider used for processing acks // and other system actions. @Nullable private final ScheduledExecutorService alarmsExecutor; private final Distribution ackLatencyDistribution = - new Distribution(MAX_ACK_DEADLINE_SECONDS + 1); + new Distribution(Math.toIntExact(MAX_STREAM_ACK_DEADLINE.getSeconds()) + 1); - private SubscriberStub subStub; + private SubscriberStub subscriberStub; private final SubscriberStubSettings subStubSettings; private final FlowController flowController; + private boolean exactlyOnceDeliveryEnabled = false; private final int numPullers; private final MessageReceiver receiver; + private final MessageReceiverWithAckResponse receiverWithAckResponse; private final List streamingSubscriberConnections; private final ApiClock clock; private final List backgroundResources = new ArrayList<>(); private Subscriber(Builder builder) { receiver = builder.receiver; + receiverWithAckResponse = builder.receiverWithAckResponse; flowControlSettings = builder.flowControlSettings; useLegacyFlowControl = builder.useLegacyFlowControl; - subscriptionName = builder.subscriptionName; + subscriptionName = builder.subscription; maxAckExtensionPeriod = builder.maxAckExtensionPeriod; maxDurationPerAckExtension = builder.maxDurationPerAckExtension; + maxDurationPerAckExtensionDefaultUsed = builder.maxDurationPerAckExtensionDefaultUsed; + minDurationPerAckExtension = builder.minDurationPerAckExtension; + minDurationPerAckExtensionDefaultUsed = builder.minDurationPerAckExtensionDefaultUsed; + clock = builder.clock.isPresent() ? builder.clock.get() : CurrentMillisClock.getDefaultClock(); flowController = @@ -140,6 +166,8 @@ private Subscriber(Builder builder) { .setLimitExceededBehavior(LimitExceededBehavior.Block) .build()); + exactlyOnceDeliveryEnabled = builder.exactlyOnceDeliveryEnabled; + this.numPullers = builder.parallelPullCount; executorProvider = builder.executorProvider; @@ -175,7 +203,7 @@ private Subscriber(Builder builder) { // We regularly look up the distribution for a good subscription deadline. // So we seed the distribution with the minimum value to start with. // Distribution is percentile-based, so this value will eventually lose importance. - ackLatencyDistribution.record(MIN_ACK_DEADLINE_SECONDS); + ackLatencyDistribution.record(Math.toIntExact(MIN_STREAM_ACK_DEADLINE.getSeconds())); } /** @@ -189,6 +217,11 @@ public static Builder newBuilder(ProjectSubscriptionName subscription, MessageRe return newBuilder(subscription.toString(), receiver); } + public static Builder newBuilder( + ProjectSubscriptionName subscription, MessageReceiverWithAckResponse receiver) { + return newBuilder(subscription.toString(), receiver); + } + /** * Constructs a new {@link Builder}. * @@ -200,6 +233,10 @@ public static Builder newBuilder(String subscription, MessageReceiver receiver) return new Builder(subscription, receiver); } + public static Builder newBuilder(String subscription, MessageReceiverWithAckResponse receiver) { + return new Builder(subscription, receiver); + } + /** Returns the delivery attempt count for a received {@link PubsubMessage} */ public static Integer getDeliveryAttempt(PubsubMessage message) { if (!message.containsAttributes("googclient_deliveryattempt")) { @@ -262,7 +299,7 @@ protected void doStart() { logger.log(Level.FINE, "Starting subscriber group."); try { - this.subStub = GrpcSubscriberStub.create(subStubSettings); + this.subscriberStub = GrpcSubscriberStub.create(subStubSettings); } catch (IOException e) { // doesn't matter what we throw, the Service will just catch it and fail to start. throw new IllegalStateException(e); @@ -310,7 +347,7 @@ public void run() { private void runShutdown() { stopAllStreamingConnections(); shutdownBackgroundResources(); - subStub.shutdownNow(); + subscriberStub.shutdownNow(); } private void startStreamingConnections() { @@ -321,22 +358,37 @@ private void startStreamingConnections() { backgroundResources.add(new ExecutorAsBackgroundResource((executor))); } - streamingSubscriberConnections.add( - new StreamingSubscriberConnection( - subscriptionName, - receiver, - ACK_EXPIRATION_PADDING, - maxAckExtensionPeriod, - maxDurationPerAckExtension, - ackLatencyDistribution, - subStub, - i, - flowControlSettings, - useLegacyFlowControl, - flowController, - executor, - alarmsExecutor, - clock)); + StreamingSubscriberConnection.Builder streamingSubscriberConnectionBuilder; + + if (receiverWithAckResponse != null) { + streamingSubscriberConnectionBuilder = + StreamingSubscriberConnection.newBuilder(receiverWithAckResponse); + } else { + streamingSubscriberConnectionBuilder = StreamingSubscriberConnection.newBuilder(receiver); + } + + StreamingSubscriberConnection streamingSubscriberConnection = + streamingSubscriberConnectionBuilder + .setSubscription(subscriptionName) + .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT) + .setMaxAckExtensionPeriod(maxAckExtensionPeriod) + .setMinDurationPerAckExtension(minDurationPerAckExtension) + .setMinDurationPerAckExtensionDefaultUsed(minDurationPerAckExtensionDefaultUsed) + .setMaxDurationPerAckExtension(maxDurationPerAckExtension) + .setMaxDurationPerAckExtensionDefaultUsed(maxDurationPerAckExtensionDefaultUsed) + .setAckLatencyDistribution(ackLatencyDistribution) + .setSubscriberStub(subscriberStub) + .setChannelAffinity(i) + .setFlowControlSettings(flowControlSettings) + .setFlowController(flowController) + .setUseLegacyFlowControl(useLegacyFlowControl) + .setExecutor(executor) + .setSystemExecutor(alarmsExecutor) + .setClock(clock) + .setExactlyOnceDeliveryEnabled(exactlyOnceDeliveryEnabled) + .build(); + + streamingSubscriberConnections.add(streamingSubscriberConnection); } startConnections( streamingSubscriberConnections, @@ -402,7 +454,6 @@ private void stopConnections(List connections) { /** Builder of {@link Subscriber Subscribers}. */ public static final class Builder { - private static final Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); static final FlowControlSettings DEFAULT_FLOW_CONTROL_SETTINGS = FlowControlSettings.newBuilder() .setMaxOutstandingElementCount(1000L) @@ -415,15 +466,21 @@ public static final class Builder { .build(); private static final AtomicInteger SYSTEM_EXECUTOR_COUNTER = new AtomicInteger(); - private String subscriptionName; + private String subscription; private MessageReceiver receiver; + private MessageReceiverWithAckResponse receiverWithAckResponse; private Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; - private Duration maxDurationPerAckExtension = DEFAULT_MAX_DURATION_PER_ACK_EXTENSION; + private Duration minDurationPerAckExtension = DEFAULT_MIN_ACK_DEADLINE_EXTENSION; + private boolean minDurationPerAckExtensionDefaultUsed = true; + private Duration maxDurationPerAckExtension = DEFAULT_MAX_ACK_DEADLINE_EXTENSION; + private boolean maxDurationPerAckExtensionDefaultUsed = true; private boolean useLegacyFlowControl = false; private FlowControlSettings flowControlSettings = DEFAULT_FLOW_CONTROL_SETTINGS; + private boolean exactlyOnceDeliveryEnabled = false; + private ExecutorProvider executorProvider = DEFAULT_EXECUTOR_PROVIDER; private ExecutorProvider systemExecutorProvider = null; private TransportChannelProvider channelProvider = @@ -438,11 +495,16 @@ public static final class Builder { private int parallelPullCount = 1; private String endpoint = SubscriberStubSettings.getDefaultEndpoint(); - Builder(String subscriptionName, MessageReceiver receiver) { - this.subscriptionName = subscriptionName; + Builder(String subscription, MessageReceiver receiver) { + this.subscription = subscription; this.receiver = receiver; } + Builder(String subscription, MessageReceiverWithAckResponse receiverWithAckResponse) { + this.subscription = subscription; + this.receiverWithAckResponse = receiverWithAckResponse; + } + /** * {@code ChannelProvider} to use to create Channels, which must point at Cloud Pub/Sub * endpoint. @@ -511,6 +573,22 @@ public Builder setUseLegacyFlowControl(boolean value) { return this; } + /** + * Enables/Disabled ExactlyOnceDelivery + * + *

    Will update the minDurationPerAckExtension if a user-provided value is not set + */ + public Builder setExactlyOnceDeliveryEnabled(boolean exactlyOnceDeliveryEnabled) { + // If exactlyOnceDeliveryIsEnabled we want to update the default minAckDeadlineExtension if + // applicable + if (exactlyOnceDeliveryEnabled && this.minDurationPerAckExtensionDefaultUsed) { + this.minDurationPerAckExtension = DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY; + } + + this.exactlyOnceDeliveryEnabled = exactlyOnceDeliveryEnabled; + return this; + } + /** * Set the maximum period a message ack deadline will be extended. Defaults to one hour. * @@ -537,8 +615,37 @@ public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { *

    MaxDurationPerAckExtension configuration can be disabled by specifying a zero duration. */ public Builder setMaxDurationPerAckExtension(Duration maxDurationPerAckExtension) { - Preconditions.checkArgument(maxDurationPerAckExtension.toMillis() >= 0); + // If a non-default min is set, make sure min is less than max + Preconditions.checkArgument( + maxDurationPerAckExtension.toMillis() >= 0 + && (this.minDurationPerAckExtensionDefaultUsed + || (this.minDurationPerAckExtension.toMillis() + < maxDurationPerAckExtension.toMillis()))); this.maxDurationPerAckExtension = maxDurationPerAckExtension; + this.maxDurationPerAckExtensionDefaultUsed = false; + return this; + } + + /** + * Set the lower bound for a single mod ack extention period. + * + *

    The ack deadline will continue to be extended by up to this duration until + * MinAckExtensionPeriod is reached. Setting MinDurationPerAckExtension bounds the minimum + * amount of time before a mesage re-delivery in the event the Subscriber fails to extend the + * deadline. + * + *

    MinDurationPerAckExtension configuration can be disabled by specifying a zero duration. + */ + public Builder setMinDurationPerAckExtension(Duration minDurationPerAckExtension) { + // If a non-default max is set, make sure min is less than max + Preconditions.checkArgument( + minDurationPerAckExtension.toMillis() >= 0 + && (this.maxDurationPerAckExtensionDefaultUsed + || (minDurationPerAckExtension.toMillis() + < this.maxDurationPerAckExtension.toMillis()))); + + this.minDurationPerAckExtension = minDurationPerAckExtension; + this.minDurationPerAckExtensionDefaultUsed = false; return this; } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java index 914a95d8c8bd..7fcee6b2efc1 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java @@ -17,17 +17,14 @@ package com.google.cloud.pubsub.it; import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotEquals; import static org.junit.Assume.assumeTrue; import com.google.api.gax.rpc.PermissionDeniedException; import com.google.auto.value.AutoValue; import com.google.cloud.ServiceOptions; -import com.google.cloud.pubsub.v1.AckReplyConsumer; -import com.google.cloud.pubsub.v1.MessageReceiver; -import com.google.cloud.pubsub.v1.Publisher; -import com.google.cloud.pubsub.v1.Subscriber; -import com.google.cloud.pubsub.v1.SubscriptionAdminClient; -import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.*; import com.google.common.util.concurrent.MoreExecutors; import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; @@ -35,15 +32,12 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.protobuf.ByteString; -import com.google.pubsub.v1.PubsubMessage; -import com.google.pubsub.v1.PushConfig; -import com.google.pubsub.v1.Subscription; -import com.google.pubsub.v1.SubscriptionName; -import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.*; import java.util.Collections; import java.util.List; import java.util.UUID; import java.util.concurrent.BlockingQueue; +import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; import org.junit.AfterClass; @@ -63,6 +57,8 @@ public class ITPubSubTest { System.getenv("GOOGLE_CLOUD_TESTS_IN_VPCSC") != null && System.getenv("GOOGLE_CLOUD_TESTS_IN_VPCSC").equalsIgnoreCase("true"); + private static final int MAX_INBOUND_MESSAGE_SIZE = 20 * 1024 * 1024; + @Rule public Timeout globalTimeout = Timeout.seconds(300); @AutoValue @@ -76,6 +72,19 @@ static MessageAndConsumer create(PubsubMessage message, AckReplyConsumer consume } } + @AutoValue + abstract static class MessageAndConsumerWithResponse { + abstract PubsubMessage message(); + + abstract AckReplyConsumerWithResponse consumerWithResponse(); + + static MessageAndConsumerWithResponse create( + PubsubMessage message, AckReplyConsumerWithResponse consumerWithResponse) { + return new AutoValue_ITPubSubTest_MessageAndConsumerWithResponse( + message, consumerWithResponse); + } + } + @BeforeClass public static void setupClass() throws Exception { topicAdminClient = TopicAdminClient.create(); @@ -97,12 +106,14 @@ private Subscription getSubscription( SubscriptionName subscriptionName, TopicName topicName, PushConfig pushConfig, - int ackDeadline) { + int ackDeadline, + boolean enableExactlyOnceDelivery) { return Subscription.newBuilder() .setName(subscriptionName.toString()) .setTopic(topicName.toString()) .setPushConfig(pushConfig) .setAckDeadlineSeconds(ackDeadline) + .setEnableExactlyOnceDelivery(enableExactlyOnceDelivery) .build(); } @@ -161,7 +172,8 @@ public void testVPCPushSubscriber() { subscriptionName, topicName, PushConfig.newBuilder().setPushEndpoint("https://random_point").build(), - 10)); + 10, + false)); subscriptionAdminClient.deleteSubscription(subscriptionName); Assert.fail("No exception raised"); } catch (PermissionDeniedException e) { @@ -184,7 +196,7 @@ public void testPublishSubscribe() throws Exception { topicAdminClient.createTopic(topicName); subscriptionAdminClient.createSubscription( - getSubscription(subscriptionName, topicName, PushConfig.newBuilder().build(), 10)); + getSubscription(subscriptionName, topicName, PushConfig.newBuilder().build(), 10, false)); final BlockingQueue receiveQueue = new LinkedBlockingQueue<>(); Subscriber subscriber = @@ -197,6 +209,7 @@ public void receiveMessage( receiveQueue.offer(MessageAndConsumer.create(message, consumer)); } }) + .setExactlyOnceDeliveryEnabled(true) .build(); subscriber.addListener( new Subscriber.Listener() { @@ -217,26 +230,203 @@ public void failed(Subscriber.State from, Throwable failure) { publisher.shutdown(); publisher.awaitTermination(1, TimeUnit.MINUTES); + MessageAndConsumer toAck = pollQueueMessageAndConsumer(receiveQueue); // Ack the first message. - MessageAndConsumer toAck = pollQueue(receiveQueue); toAck.consumer().ack(); - // Nack the other. - MessageAndConsumer toNack = pollQueue(receiveQueue); - assertThat(toNack.message().getData()).isNotEqualTo(toAck.message().getData()); + MessageAndConsumer toNack = pollQueueMessageAndConsumer(receiveQueue); + // Because we are not using ordering keys, we have to compare the received messages to each + // other + assertNotEquals(toNack.message().getData(), toAck.message().getData()); + // Nack toNack.consumer().nack(); // We should get the nacked message back. - MessageAndConsumer redelivered = pollQueue(receiveQueue); - assertThat(redelivered.message().getData()).isEqualTo(toNack.message().getData()); - redelivered.consumer().ack(); + MessageAndConsumer redeliveredToAck = pollQueueMessageAndConsumer(receiveQueue); + assertEquals(toNack.message().getData(), redeliveredToAck.message().getData()); + redeliveredToAck.consumer().ack(); subscriber.stopAsync().awaitTerminated(); subscriptionAdminClient.deleteSubscription(subscriptionName); topicAdminClient.deleteTopic(topicName); } - private MessageAndConsumer pollQueue(BlockingQueue queue) throws InterruptedException { + @Test + public void testPublishSubscribeMessageFutures() throws Exception { + TopicName topicName = + TopicName.newBuilder() + .setProject(projectId) + .setTopic(formatForTest("testing-publish-subscribe-message-futures")) + .build(); + SubscriptionName subscriptionName = + SubscriptionName.of(projectId, formatForTest("testing-publish-subscribe-message-futures")); + + topicAdminClient.createTopic(topicName); + subscriptionAdminClient.createSubscription( + getSubscription(subscriptionName, topicName, PushConfig.newBuilder().build(), 10, false)); + + final BlockingQueue receiveQueue = new LinkedBlockingQueue<>(); + Subscriber subscriber = + Subscriber.newBuilder( + subscriptionName.toString(), + new MessageReceiverWithAckResponse() { + @Override + public void receiveMessage( + final PubsubMessage message, + final AckReplyConsumerWithResponse consumerWithResponse) { + receiveQueue.offer( + MessageAndConsumerWithResponse.create(message, consumerWithResponse)); + } + }) + .setChannelProvider( + SubscriptionAdminSettings.defaultGrpcTransportProviderBuilder() + .setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE) + .build()) + .setExactlyOnceDeliveryEnabled(false) + .build(); + subscriber.addListener( + new Subscriber.Listener() { + public void failed(Subscriber.State from, Throwable failure) { + receiveQueue.offer(failure); + } + }, + MoreExecutors.directExecutor()); + subscriber.startAsync(); + + Publisher publisher = Publisher.newBuilder(topicName).build(); + publisher + .publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("msg1")).build()) + .get(); + publisher + .publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("msg2")).build()) + .get(); + + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + + // Ack the first message. + MessageAndConsumerWithResponse toAck = pollQueueMessageAndConsumerWithResponse(receiveQueue); + Future ackResponseFuture = toAck.consumerWithResponse().ack(); + assertEquals(AckResponse.SUCCESSFUL, ackResponseFuture.get()); + + MessageAndConsumerWithResponse toNack = pollQueueMessageAndConsumerWithResponse(receiveQueue); + // Because we are not using ordering keys, we have to compare the received messages to each + // other + assertNotEquals(toNack.message().getData(), toAck.message().getData()); + Future nackResponseFuture = toNack.consumerWithResponse().nack(); + assertEquals(AckResponse.SUCCESSFUL, nackResponseFuture.get()); + + MessageAndConsumerWithResponse redeliveredToAck = + pollQueueMessageAndConsumerWithResponse(receiveQueue); + Future redeliveredToAckResponse = redeliveredToAck.consumerWithResponse().ack(); + + assertEquals(toNack.message().getData(), redeliveredToAck.message().getData()); + assertEquals(AckResponse.SUCCESSFUL, redeliveredToAckResponse.get()); + + subscriber.stopAsync().awaitTerminated(); + subscriptionAdminClient.deleteSubscription(subscriptionName); + topicAdminClient.deleteTopic(topicName); + } + + @Test + public void testPublishSubscribeExactlyOnce() throws Exception { + TopicName topicName = + TopicName.newBuilder() + .setProject(projectId) + .setTopic(formatForTest("testing-publish-subscribe-exactly-once-topic")) + .build(); + SubscriptionName subscriptionName = + SubscriptionName.of( + projectId, formatForTest("testing-publish-subscribe-exactly-once-subscription")); + + topicAdminClient.createTopic(topicName); + subscriptionAdminClient.createSubscription( + getSubscription(subscriptionName, topicName, PushConfig.newBuilder().build(), 60, true)); + + final BlockingQueue receiveQueue = new LinkedBlockingQueue<>(); + Subscriber subscriber = + Subscriber.newBuilder( + subscriptionName.toString(), + new MessageReceiverWithAckResponse() { + @Override + public void receiveMessage( + final PubsubMessage message, + final AckReplyConsumerWithResponse consumerWithResponse) { + receiveQueue.offer( + MessageAndConsumerWithResponse.create(message, consumerWithResponse)); + } + }) + .setChannelProvider( + SubscriptionAdminSettings.defaultGrpcTransportProviderBuilder() + .setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE) + .build()) + .setExactlyOnceDeliveryEnabled(false) + .build(); + subscriber.addListener( + new Subscriber.Listener() { + public void failed(Subscriber.State from, Throwable failure) { + receiveQueue.offer(failure); + } + }, + MoreExecutors.directExecutor()); + subscriber.startAsync(); + + Publisher publisher = Publisher.newBuilder(topicName).build(); + publisher + .publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("msg1")).build()) + .get(); + publisher + .publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8("msg2")).build()) + .get(); + + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + + // Ack the first message. + MessageAndConsumerWithResponse toAck = pollQueueMessageAndConsumerWithResponse(receiveQueue); + Future ackResponseFuture = toAck.consumerWithResponse().ack(); + assertEquals(AckResponse.SUCCESSFUL, ackResponseFuture.get()); + + MessageAndConsumerWithResponse toNack = pollQueueMessageAndConsumerWithResponse(receiveQueue); + // Because we are not using ordering keys, we have to compare the received messages to each + // other + assertNotEquals(toNack.message().getData(), toAck.message().getData()); + Future nackResponseFuture = toNack.consumerWithResponse().nack(); + assertEquals(AckResponse.SUCCESSFUL, nackResponseFuture.get()); + + MessageAndConsumerWithResponse redeliveredToAck = + pollQueueMessageAndConsumerWithResponse(receiveQueue); + Future redeliveredToAckResponse = redeliveredToAck.consumerWithResponse().ack(); + + assertEquals(toNack.message().getData(), redeliveredToAck.message().getData()); + assertEquals(AckResponse.SUCCESSFUL, redeliveredToAckResponse.get()); + + subscriber.stopAsync().awaitTerminated(); + subscriptionAdminClient.deleteSubscription(subscriptionName); + topicAdminClient.deleteTopic(topicName); + } + + private MessageAndConsumer pollQueueMessageAndConsumer(BlockingQueue queue) + throws InterruptedException { + Object obj = pollQueue(queue); + if (obj instanceof MessageAndConsumer) { + return (MessageAndConsumer) obj; + } + throw new IllegalStateException( + "expected either MessageAndConsumer or Throwable, found: " + obj); + } + + private MessageAndConsumerWithResponse pollQueueMessageAndConsumerWithResponse( + BlockingQueue queue) throws InterruptedException { + Object obj = pollQueue(queue); + if (obj instanceof MessageAndConsumerWithResponse) { + return (MessageAndConsumerWithResponse) obj; + } + throw new IllegalStateException( + "expected either MessageAndConsumerWithResponse or Throwable, found: " + obj); + } + + private Object pollQueue(BlockingQueue queue) throws InterruptedException { Object obj = queue.poll(10, TimeUnit.MINUTES); if (obj == null) { return null; @@ -244,10 +434,7 @@ private MessageAndConsumer pollQueue(BlockingQueue queue) throws Interru if (obj instanceof Throwable) { throw new IllegalStateException("unexpected error", (Throwable) obj); } - if (obj instanceof MessageAndConsumer) { - return (MessageAndConsumer) obj; - } - throw new IllegalStateException( - "expected either MessageAndConsumer or Throwable, found: " + obj); + + return obj; } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/CustomArgumentMatchers.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/CustomArgumentMatchers.java new file mode 100644 index 000000000000..a98e5c4e1f75 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/CustomArgumentMatchers.java @@ -0,0 +1,208 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import java.util.*; +import org.mockito.ArgumentMatcher; + +/** Shared Custom Argument Matchers for Tests w/ Mock Futures */ +public class CustomArgumentMatchers { + public static class AcknowledgeRequestMatcher implements ArgumentMatcher { + private AcknowledgeRequest left; + + AcknowledgeRequestMatcher(AcknowledgeRequest acknowledgeRequest) { + this.left = acknowledgeRequest; + } + + @Override + public boolean matches(AcknowledgeRequest right) { + Set leftAckIdSet = new HashSet(this.left.getAckIdsList()); + Set rightAckIdSet = new HashSet(right.getAckIdsList()); + return this.left.getSubscription().equals(right.getSubscription()) + && leftAckIdSet.equals(rightAckIdSet); + } + } + + public static class ModifyAckDeadlineRequestMatcher + implements ArgumentMatcher { + private ModifyAckDeadlineRequest left; + + ModifyAckDeadlineRequestMatcher(ModifyAckDeadlineRequest modifyAckDeadlineRequest) { + this.left = modifyAckDeadlineRequest; + } + + @Override + public boolean matches(ModifyAckDeadlineRequest right) { + Set leftAckIdSet = new HashSet(this.left.getAckIdsList()); + Set rightAckIdSet = new HashSet(right.getAckIdsList()); + return this.left.getSubscription().equals(right.getSubscription()) + && this.left.getAckDeadlineSeconds() == right.getAckDeadlineSeconds() + && leftAckIdSet.equals(rightAckIdSet); + } + } + + public static class AckRequestDataMatcher implements ArgumentMatcher { + private AckRequestData left; + + private static Comparator comparator = + new Comparator() { + + @Override + public int compare(AckRequestData ackRequestData, AckRequestData t1) { + return ackRequestData.getAckId().compareTo(t1.getAckId()); + } + }; + + AckRequestDataMatcher(AckRequestData left) { + this.left = left; + } + + @Override + public boolean matches(AckRequestData right) { + return this.left.getAckId() == right.getAckId(); + } + } + + public static class AckRequestDataListMatcher implements ArgumentMatcher> { + private List left; + + AckRequestDataListMatcher(List ackRequestDataList) { + this.left = ackRequestDataList; + } + + @Override + public boolean matches(List right) { + // We only really care about the ackIds, the futures will be mocked + if (this.left.size() != right.size()) { + return false; + } + + // We just want to compare the ackIds not the futures and do not care about order (or + // duplicates) + this.left.sort(AckRequestDataMatcher.comparator); + right.sort(AckRequestDataMatcher.comparator); + + Iterator iteratorLeft = this.left.iterator(); + Iterator iteratorRight = right.iterator(); + + while (iteratorLeft.hasNext() && iteratorRight.hasNext()) { + if (iteratorLeft.next().getAckId() != iteratorRight.next().getAckId()) { + return false; + } + } + return true; + } + } + + public static class ModackRequestDataMatcher implements ArgumentMatcher { + private ModackRequestData left; + + private static Comparator comparator = + new Comparator() { + + @Override + public int compare(ModackRequestData left, ModackRequestData right) { + // Compare deadline extensions first + int deadlineExtensionDifference = + left.getDeadlineExtensionSeconds() - right.getDeadlineExtensionSeconds(); + if (deadlineExtensionDifference != 0) { + return deadlineExtensionDifference; + } + + // Then sort and compare ackIds + List ackRequestDataListLeft = left.getAckRequestData(); + List ackRequestDataListRight = right.getAckRequestData(); + + ackRequestDataListLeft.sort(AckRequestDataMatcher.comparator); + ackRequestDataListRight.sort(AckRequestDataMatcher.comparator); + + Iterator iteratorLeft = ackRequestDataListLeft.iterator(); + Iterator iteratorRight = ackRequestDataListRight.iterator(); + int compareAcks; + + while (iteratorLeft.hasNext() && iteratorRight.hasNext()) { + String ackIdLeft = iteratorLeft.next().getAckId(); + String ackIdRight = iteratorRight.next().getAckId(); + compareAcks = ackIdLeft.compareTo(ackIdRight); + + if (compareAcks != 0) { + return compareAcks; + } + } + + if (iteratorLeft.hasNext()) { + return 1; + } + if (iteratorRight.hasNext()) { + return -1; + } else { + return 0; + } + } + }; + + ModackRequestDataMatcher(ModackRequestData left) { + this.left = left; + } + + @Override + public boolean matches(ModackRequestData right) { + return ModackRequestDataMatcher.comparator.compare(this.left, right) == 0; + } + } + + public static class ModackRequestDataListMatcher + implements ArgumentMatcher> { + private List left; + + ModackRequestDataListMatcher(List modackRequestDataList) { + this.left = modackRequestDataList; + } + + @Override + public boolean matches(List right) { + // First check size + if (this.left.size() != right.size()) { + return false; + } + + // Sort first + this.left.sort(ModackRequestDataMatcher.comparator); + right.sort(ModackRequestDataMatcher.comparator); + + Iterator iteratorLeft = this.left.iterator(); + Iterator iteratorRight = right.iterator(); + + ModackRequestData modackRequestDataLeft; + ModackRequestData modackRequestDataRight; + + while (iteratorLeft.hasNext() && iteratorRight.hasNext()) { + + ModackRequestDataMatcher modackRequestDataMatcher = + new ModackRequestDataMatcher(iteratorLeft.next()); + + if (!modackRequestDataMatcher.matches(iteratorRight.next())) { + return false; + } + } + + return true; + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java index e63b68748103..d8f026fee981 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java @@ -16,7 +16,6 @@ package com.google.cloud.pubsub.v1; -import com.google.api.core.ApiClock; import com.google.common.primitives.Ints; import com.google.common.util.concurrent.SettableFuture; import java.util.ArrayList; @@ -48,7 +47,7 @@ public class FakeScheduledExecutorService extends AbstractExecutorService private final FakeClock clock = new FakeClock(); private final Deque expectedWorkQueue = new LinkedList<>(); - public ApiClock getClock() { + public FakeClock getClock() { return clock; } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java index 260071b9ba1a..173248041aec 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java @@ -49,7 +49,7 @@ class FakeSubscriberServiceImpl extends SubscriberImplBase { private final AtomicBoolean subscriptionInitialized = new AtomicBoolean(false); private String subscription = ""; private final AtomicInteger messageAckDeadline = - new AtomicInteger(Subscriber.MIN_ACK_DEADLINE_SECONDS); + new AtomicInteger(Math.toIntExact(Subscriber.STREAM_ACK_DEADLINE_DEFAULT.getSeconds())); private final AtomicInteger getSubscriptionCalled = new AtomicInteger(); private StreamingPullRequest lastSeenRequest; private final List openedStreams = new ArrayList<>(); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 88a015f6e78d..3ff13acfc454 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -17,23 +17,17 @@ package com.google.cloud.pubsub.v1; import static com.google.common.truth.Truth.assertThat; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.*; +import static org.mockito.Mockito.*; -import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; import com.google.api.gax.core.Distribution; -import com.google.auto.value.AutoValue; import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.ByteString; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.ReceivedMessage; -import java.util.ArrayList; -import java.util.Collections; -import java.util.List; -import java.util.concurrent.LinkedBlockingQueue; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import java.util.concurrent.TimeUnit; +import java.util.*; +import java.util.concurrent.*; import org.junit.Before; import org.junit.Test; import org.threeten.bp.Duration; @@ -41,50 +35,51 @@ public class MessageDispatcherTest { private static final ByteString MESSAGE_DATA = ByteString.copyFromUtf8("message-data"); private static final int DELIVERY_INFO_COUNT = 3; + private static final String ACK_ID = "ACK-ID"; private static final ReceivedMessage TEST_MESSAGE = ReceivedMessage.newBuilder() - .setAckId("ackid") + .setAckId(ACK_ID) .setMessage(PubsubMessage.newBuilder().setData(MESSAGE_DATA).build()) .setDeliveryAttempt(DELIVERY_INFO_COUNT) .build(); - private static final Runnable NOOP_RUNNABLE = - new Runnable() { - @Override - public void run() { - // No-op; don't do anything. - } - }; private static final int MAX_SECONDS_PER_ACK_EXTENSION = 60; + private static final int MIN_ACK_DEADLINE_SECONDS = 10; + private static final Duration MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); + private static final Duration ACK_EXPIRATION_PADDING_DEFAULT = + Subscriber.ACK_EXPIRATION_PADDING_DEFAULT; - private MessageDispatcher dispatcher; - private LinkedBlockingQueue consumers; - private List sentAcks; - private List sentModAcks; + private Distribution mockAckLatencyDistribution; + + private MessageDispatcher.AckProcessor mockAckProcessor; private FakeClock clock; - private FlowController flowController; private boolean messageContainsDeliveryAttempt; - @AutoValue - abstract static class ModAckItem { - abstract String ackId(); + private FakeScheduledExecutorService systemExecutor; - abstract int seconds(); + private static MessageReceiver messageReceiver; + private static MessageReceiverWithAckResponse messageReceiverWithAckResponse; - static ModAckItem of(String ackId, int seconds) { - return new AutoValue_MessageDispatcherTest_ModAckItem(ackId, seconds); - } - } + private LinkedBlockingQueue consumers; + private LinkedBlockingQueue consumersWithResponse; @Before public void setUp() { + systemExecutor = new FakeScheduledExecutorService(); + clock = new FakeClock(); + mockAckLatencyDistribution = mock(Distribution.class); + + mockAckProcessor = mock(MessageDispatcher.AckProcessor.class); + messageContainsDeliveryAttempt = true; + consumers = new LinkedBlockingQueue<>(); - sentAcks = new ArrayList<>(); - sentModAcks = new ArrayList<>(); + consumersWithResponse = new LinkedBlockingQueue<>(); - MessageReceiver receiver = + // We are instantiating "real" message receivers to easily ack/nack messages + messageReceiver = new MessageReceiver() { @Override - public void receiveMessage(final PubsubMessage message, final AckReplyConsumer consumer) { + public void receiveMessage( + final PubsubMessage message, final AckReplyConsumer ackReplyConsumer) { assertThat(message.getData()).isEqualTo(MESSAGE_DATA); if (messageContainsDeliveryAttempt) { assertTrue(message.containsAttributes("googclient_deliveryattempt")); @@ -93,159 +88,410 @@ public void receiveMessage(final PubsubMessage message, final AckReplyConsumer c } else { assertFalse(message.containsAttributes("googclient_deliveryattempt")); } - consumers.add(consumer); + consumers.add(ackReplyConsumer); } }; - MessageDispatcher.AckProcessor processor = - new MessageDispatcher.AckProcessor() { - public void sendAckOperations( - List acksToSend, - List ackDeadlineExtensions) { - sentAcks.addAll(acksToSend); - for (MessageDispatcher.PendingModifyAckDeadline modack : ackDeadlineExtensions) { - for (String ackId : modack.ackIds) { - sentModAcks.add(ModAckItem.of(ackId, modack.deadlineExtensionSeconds)); - } + + messageReceiverWithAckResponse = + new MessageReceiverWithAckResponse() { + @Override + public void receiveMessage( + PubsubMessage message, AckReplyConsumerWithResponse ackReplyConsumerWithResponse) { + assertThat(message.getData()).isEqualTo(MESSAGE_DATA); + if (messageContainsDeliveryAttempt) { + assertTrue(message.containsAttributes("googclient_deliveryattempt")); + assertThat(message.getAttributesOrThrow("googclient_deliveryattempt")) + .isEqualTo(Integer.toString(DELIVERY_INFO_COUNT)); + } else { + assertFalse(message.containsAttributes("googclient_deliveryattempt")); } + consumersWithResponse.add(ackReplyConsumerWithResponse); } }; + } - // This executor isn't used because we're not actually scheduling anything until we call - // dispatcher.start(), which we're not doing here. - ScheduledThreadPoolExecutor systemExecutor = new ScheduledThreadPoolExecutor(1); - systemExecutor.shutdownNow(); + @Test + public void testSetupAndTeardown() { + MessageDispatcher messageDispatcher = getMessageDispatcher(); - clock = new FakeClock(); - flowController = - new FlowController( - FlowControlSettings.newBuilder() - .setMaxOutstandingElementCount(1L) - .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) - .build()); - - dispatcher = - new MessageDispatcher( - receiver, - processor, - Duration.ofSeconds(5), - Duration.ofMinutes(60), - Duration.ofSeconds(MAX_SECONDS_PER_ACK_EXTENSION), - new Distribution(Subscriber.MAX_ACK_DEADLINE_SECONDS + 1), - flowController, - MoreExecutors.directExecutor(), - systemExecutor, - clock); - dispatcher.setMessageDeadlineSeconds(Subscriber.MIN_ACK_DEADLINE_SECONDS); + messageDispatcher.start(); + messageDispatcher.stop(); + } - messageContainsDeliveryAttempt = true; + @Test + public void testReceiptMessageReceiver() { + MessageReceiver mockMessageReceiver = mock(MessageReceiver.class); + MessageDispatcher messageDispatcher = getMessageDispatcher(mockMessageReceiver); + messageDispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + messageDispatcher.processOutstandingOperations(); + + // Assert expected behavior + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add( + new ModackRequestData( + MIN_ACK_DEADLINE_SECONDS, AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build())); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); + verify(mockMessageReceiver, never()) + .receiveMessage(eq(TEST_MESSAGE.getMessage()), any(AckReplyConsumer.class)); } @Test - public void testReceipt() { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); - dispatcher.processOutstandingAckOperations(); - assertThat(sentModAcks) - .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); + public void testReceiptMessageReceiverWithAckResponse() { + MessageReceiverWithAckResponse mockMessageReceiverWithAckResponse = + mock(MessageReceiverWithAckResponse.class); + MessageDispatcher messageDispatcher = getMessageDispatcher(mockMessageReceiverWithAckResponse); + messageDispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + messageDispatcher.processOutstandingOperations(); + + // Assert expected behavior + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add( + new ModackRequestData( + MIN_ACK_DEADLINE_SECONDS, AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build())); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); + verify(mockMessageReceiverWithAckResponse, never()) + .receiveMessage(eq(TEST_MESSAGE.getMessage()), any(AckReplyConsumerWithResponse.class)); } @Test - public void testReceiptNoDeliveryAttempt() { - messageContainsDeliveryAttempt = false; - ReceivedMessage messageNoDeliveryAttempt = - ReceivedMessage.newBuilder() - .setAckId("ackid") - .setMessage(PubsubMessage.newBuilder().setData(MESSAGE_DATA).build()) - .build(); - dispatcher.processReceivedMessages(Collections.singletonList(messageNoDeliveryAttempt)); - dispatcher.processOutstandingAckOperations(); - assertThat(sentModAcks) - .contains( - ModAckItem.of( - messageNoDeliveryAttempt.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); + public void testConsumerAckMessageReceiver() { + MessageDispatcher messageDispatcher = getMessageDispatcher(messageReceiver); + messageDispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + + try { + // Ack a message + consumers.take().ack(); + } catch (Throwable t) { + // In case our consumers fail + throw new AssertionError(); + } + + messageDispatcher.processOutstandingOperations(); + + // Assert expected behavior + List ackRequestDataList = new ArrayList(); + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + ackRequestDataList.add(ackRequestData); + + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add(new ModackRequestData(MIN_ACK_DEADLINE_SECONDS, ackRequestData)); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); + verify(mockAckProcessor, times(1)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(ackRequestDataList))); } @Test - public void testAck() throws Exception { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); - consumers.take().ack(); - dispatcher.processOutstandingAckOperations(); - assertThat(sentAcks).contains(TEST_MESSAGE.getAckId()); + public void testConsumerAckMessageReceiverWithAckResponse() { + MessageDispatcher messageDispatcher = getMessageDispatcher(messageReceiverWithAckResponse); + messageDispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + Future ackResponseFuture; + + try { + // Ack a message - at this point we do not care about the message future so just drop it + consumersWithResponse.take().ack(); + } catch (Throwable t) { + // In case our consumers fail + throw new AssertionError(); + } + + messageDispatcher.processOutstandingOperations(); + + // Assert expected behavior + List ackRequestDataList = new ArrayList(); + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + ackRequestDataList.add(ackRequestData); + + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add(new ModackRequestData(MIN_ACK_DEADLINE_SECONDS, ackRequestData)); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); + verify(mockAckProcessor, times(1)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(ackRequestDataList))); + } + + @Test + public void testConsumerNackMessageReceiver() { + MessageDispatcher messageDispatcher = getMessageDispatcher(messageReceiver); + messageDispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + + try { + consumers.take().nack(); + } catch (Throwable t) { + // Just in case something went wrong with our consumers + throw new AssertionError(); + } + + messageDispatcher.processOutstandingOperations(); + + // Assert expected behavior + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add(new ModackRequestData(0, ackRequestData)); + modackRequestDataList.add(new ModackRequestData(MIN_ACK_DEADLINE_SECONDS, ackRequestData)); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); } @Test - public void testNack() throws Exception { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); - consumers.take().nack(); - dispatcher.processOutstandingAckOperations(); - assertThat(sentModAcks).contains(ModAckItem.of(TEST_MESSAGE.getAckId(), 0)); + public void testConsumerNackMessageReceiverWithAckResponse() { + MessageDispatcher messageDispatcher = getMessageDispatcher(messageReceiverWithAckResponse); + messageDispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + + try { + // Ack a message - at this point we do not care about the message future so just drop it + consumersWithResponse.take().nack(); + } catch (Throwable t) { + // Just in case something went wrong with our consumers + throw new AssertionError(); + } + + messageDispatcher.processOutstandingOperations(); + + // Assert expected behavior + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add(new ModackRequestData(0, ackRequestData)); + modackRequestDataList.add(new ModackRequestData(MIN_ACK_DEADLINE_SECONDS, ackRequestData)); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); } @Test - public void testExtension() throws Exception { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); - dispatcher.extendDeadlines(); - assertThat(sentModAcks) - .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); + public void testExtension() { + MessageDispatcher messageDispatcher = getMessageDispatcher(); + messageDispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + messageDispatcher.extendDeadlines(); + + // Assert expected behavior + List ackRequestDataList = new ArrayList(); + + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + ackRequestDataList.add(ackRequestData); + + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add(new ModackRequestData(MIN_ACK_DEADLINE_SECONDS, ackRequestData)); - sentModAcks.clear(); - consumers.take().ack(); - dispatcher.extendDeadlines(); - assertThat(sentModAcks).isEmpty(); + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); } @Test - public void testExtension_Close() { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); - dispatcher.extendDeadlines(); - assertThat(sentModAcks) - .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); - sentModAcks.clear(); + public void testExtension_ExpirationExtension() { + MessageDispatcher messageDispatcher = getMessageDispatcher(); + messageDispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + int secondsLeft = 5; + // Advance clock to have 5 seconds left in extension period + clock.advance(MAX_ACK_EXTENSION_PERIOD.getSeconds() - secondsLeft, TimeUnit.SECONDS); + messageDispatcher.extendDeadlines(); - // Default total expiration is an hour (60*60 seconds). We normally would extend by 10s. - // However, only extend by 5s here, since there's only 5s left before total expiration. - clock.advance(60 * 60 - 5, TimeUnit.SECONDS); - dispatcher.extendDeadlines(); - assertThat(sentModAcks).contains(ModAckItem.of(TEST_MESSAGE.getAckId(), 5)); + // Assert expected behavior + List ackRequestDataList = new ArrayList(); + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + ackRequestDataList.add(ackRequestData); + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add(new ModackRequestData(secondsLeft, ackRequestData)); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); } @Test public void testExtension_GiveUp() throws Exception { - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); - dispatcher.extendDeadlines(); - assertThat(sentModAcks) - .contains(ModAckItem.of(TEST_MESSAGE.getAckId(), Subscriber.MIN_ACK_DEADLINE_SECONDS)); - sentModAcks.clear(); + MessageDispatcher messageDispatcher = getMessageDispatcher(); + messageDispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); // If we run extendDeadlines after totalExpiration, we shouldn't send anything. - // In particular, don't send negative modacks. clock.advance(1, TimeUnit.DAYS); - dispatcher.extendDeadlines(); - assertThat(sentModAcks).isEmpty(); + messageDispatcher.extendDeadlines(); - // We should be able to reserve another item in the flow controller and not block. - flowController.reserve(1, 0); - dispatcher.stop(); + // Assert expected behavior + verify(mockAckProcessor, times(0)).sendAckOperations(eq(Collections.emptyList())); + verify(mockAckProcessor, times(0)).sendModackOperations(eq(Collections.emptyList())); } @Test - public void testDeadlineAdjustment() throws Exception { - assertThat(dispatcher.computeDeadlineSeconds()).isEqualTo(10); + public void testAckExtensionDefaultsExactlyOnceDeliveryOffThenOn() { + // EnableExactlyOnceDelivery is turned off by default + MessageDispatcher messageDispatcher = + MessageDispatcher.newBuilder(mock(MessageReceiver.class)) + .setAckLatencyDistribution(mockAckLatencyDistribution) + .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) + .setMinDurationPerAckExtensionDefaultUsed(true) + .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) + .setMaxDurationPerAckExtensionDefaultUsed(true) + .build(); + + // We should be using the Subscriber set hard deadlines + assertMinAndMaxAckDeadlines( + messageDispatcher, + Math.toIntExact(Subscriber.MIN_STREAM_ACK_DEADLINE.getSeconds()), + Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds())); - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); - clock.advance(42, TimeUnit.SECONDS); - consumers.take().ack(); + messageDispatcher.setEnableExactlyOnceDelivery(true); - assertThat(dispatcher.computeDeadlineSeconds()).isEqualTo(42); + // Should only change min deadline + assertMinAndMaxAckDeadlines( + messageDispatcher, + Math.toIntExact( + Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY.getSeconds()), + Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds())); } @Test - public void testMaxDurationPerAckExtension() throws Exception { - assertThat(dispatcher.computeDeadlineSeconds()).isEqualTo(10); + public void testAckExtensionDefaultsExactlyOnceDeliveryOnThenOff() { + MessageDispatcher messageDispatcher = + MessageDispatcher.newBuilder(mock(MessageReceiver.class)) + .setAckLatencyDistribution(mockAckLatencyDistribution) + .setEnableExactlyOnceDelivery(true) + .setMinDurationPerAckExtension( + Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY) + .setMinDurationPerAckExtensionDefaultUsed(true) + .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) + .setMaxDurationPerAckExtensionDefaultUsed(true) + .build(); + + assertMinAndMaxAckDeadlines( + messageDispatcher, + Math.toIntExact( + Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY.getSeconds()), + Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds())); + + messageDispatcher.setEnableExactlyOnceDelivery(false); + + // Should change min deadline + assertMinAndMaxAckDeadlines( + messageDispatcher, + Math.toIntExact(Subscriber.MIN_STREAM_ACK_DEADLINE.getSeconds()), + Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds())); + } + + @Test + public void testAckExtensionCustomMinExactlyOnceDeliveryOffThenOn() { + int customMinSeconds = 30; + MessageDispatcher messageDispatcher = + MessageDispatcher.newBuilder(mock(MessageReceiver.class)) + .setAckLatencyDistribution(mockAckLatencyDistribution) + .setMinDurationPerAckExtension(Duration.ofSeconds(customMinSeconds)) + .setMinDurationPerAckExtensionDefaultUsed(false) + .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) + .setMaxDurationPerAckExtensionDefaultUsed(true) + .build(); - dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); - clock.advance(MAX_SECONDS_PER_ACK_EXTENSION + 5, TimeUnit.SECONDS); - consumers.take().ack(); + assertMinAndMaxAckDeadlines( + messageDispatcher, + customMinSeconds, + Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds())); + + messageDispatcher.setEnableExactlyOnceDelivery(true); + + // no changes should occur + assertMinAndMaxAckDeadlines( + messageDispatcher, + customMinSeconds, + Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds())); + } + + @Test + public void testAckExtensionCustomMaxExactlyOnceDeliveryOffThenOn() { + int customMaxSeconds = 30; + MessageDispatcher messageDispatcher = + MessageDispatcher.newBuilder(mock(MessageReceiver.class)) + .setAckLatencyDistribution(mockAckLatencyDistribution) + .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) + .setMinDurationPerAckExtensionDefaultUsed(true) + .setMaxDurationPerAckExtension(Duration.ofSeconds(customMaxSeconds)) + .setMaxDurationPerAckExtensionDefaultUsed(false) + .build(); + + assertMinAndMaxAckDeadlines( + messageDispatcher, + Math.toIntExact(Subscriber.MIN_STREAM_ACK_DEADLINE.getSeconds()), + customMaxSeconds); + + messageDispatcher.setEnableExactlyOnceDelivery(true); + + // Because the customMaxSeconds is above the + // DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY, we should use the customMaxSeconds + // as the new min + assertMinAndMaxAckDeadlines(messageDispatcher, customMaxSeconds, customMaxSeconds); + } + + private void assertMinAndMaxAckDeadlines( + MessageDispatcher messageDispatcher, int minAckDeadline, int maxAckDeadline) { + // Helper function to assert if min and max deadlines are being respected + + // Set distribution to return a low value to assert min value + when(mockAckLatencyDistribution.getPercentile( + MessageDispatcher.PERCENTILE_FOR_ACK_DEADLINE_UPDATES)) + .thenReturn(0); + assertEquals(minAckDeadline, messageDispatcher.computeDeadlineSeconds()); + + // Set distribution to return a high value to assert max value + when(mockAckLatencyDistribution.getPercentile( + MessageDispatcher.PERCENTILE_FOR_ACK_DEADLINE_UPDATES)) + .thenReturn(60 * 60); + assertEquals(maxAckDeadline, messageDispatcher.computeDeadlineSeconds()); + } + + private MessageDispatcher getMessageDispatcher() { + return getMessageDispatcher(mock(MessageReceiver.class)); + } + + private MessageDispatcher getMessageDispatcher(MessageReceiver messageReceiver) { + return getMessageDispatcherFromBuilder(MessageDispatcher.newBuilder(messageReceiver)); + } + + private MessageDispatcher getMessageDispatcher( + MessageReceiverWithAckResponse messageReceiverWithAckResponse) { + return getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiverWithAckResponse)); + } + + private MessageDispatcher getMessageDispatcherFromBuilder(MessageDispatcher.Builder builder) { + MessageDispatcher messageDispatcher = + builder + .setAckProcessor(mockAckProcessor) + .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT) + .setMaxAckExtensionPeriod(MAX_ACK_EXTENSION_PERIOD) + .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) + .setMinDurationPerAckExtensionDefaultUsed(true) + .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) + .setMaxDurationPerAckExtensionDefaultUsed(true) + .setAckLatencyDistribution(mock(Distribution.class)) + .setFlowController(mock(FlowController.class)) + .setExecutor(MoreExecutors.directExecutor()) + .setSystemExecutor(systemExecutor) + .setApiClock(clock) + .build(); - assertThat(dispatcher.computeDeadlineSeconds()).isEqualTo(MAX_SECONDS_PER_ACK_EXTENSION); + messageDispatcher.setMessageDeadlineSeconds(MIN_ACK_DEADLINE_SECONDS); + return messageDispatcher; } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java new file mode 100644 index 000000000000..6ad95100175f --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -0,0 +1,490 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static org.junit.Assert.*; +import static org.mockito.Mockito.*; + +import com.google.api.core.ApiFutures; +import com.google.api.core.SettableApiFuture; +import com.google.api.gax.batching.FlowControlSettings; +import com.google.api.gax.batching.FlowController; +import com.google.api.gax.core.Distribution; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.pubsub.v1.stub.SubscriberStub; +import com.google.protobuf.Any; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.rpc.ErrorInfo; +import com.google.rpc.Status; +import io.grpc.StatusException; +import io.grpc.protobuf.StatusProto; +import java.util.*; +import java.util.concurrent.ExecutionException; +import org.junit.After; +import org.junit.Before; +import org.junit.Rule; +import org.junit.Test; +import org.junit.rules.TestName; +import org.threeten.bp.Duration; + +/** Tests for {@link StreamingSubscriberConnection}. */ +public class StreamingSubscriberConnectionTest { + @Rule public TestName testName = new TestName(); + + private FakeScheduledExecutorService systemExecutor; + private FakeScheduledExecutorService executor; + private FakeClock clock; + private SubscriberStub mockSubscriberStub; + + private static final String MOCK_SUBSCRIPTION_NAME = "MOCK-SUBSCRIPTION"; + private static final String MOCK_ACK_ID_SUCCESS = "MOCK-ACK-ID-SUCCESS"; + private static final String MOCK_ACK_ID_SUCCESS_2 = "MOCK-ACK-ID-SUCCESS-2"; + private static final String MOCK_ACK_ID_NACK_SUCCESS = "MOCK-ACK-ID-NACK-SUCCESS"; + // Successful modacks should not return a message + private static final String MOCK_ACK_ID_SUCCESS_NO_MESSAGE = "MOCK-ACK-ID-SUCCESS-NO-MESSAGE"; + private static final String MOCK_ACK_ID_TRANSIENT_FAILURE_UNORDERED_ACK_ID_THEN_SUCCESS = + "MOCK-ACK-ID-TRANSIENT-FAILURE-UNORDERED-ACK-ID-THEN-SUCCESS"; + private static final String MOCK_ACK_ID_TRANSIENT_FAILURE_SERVICE_UNAVAILABLE_THEN_SUCCESS = + "MOCK-ACK-ID-TRANSIENT-FAILURE-SERVICE-UNAVAILABLE-THEN-SUCCESS"; + private static final String MOCK_ACK_ID_INVALID = "MOCK-ACK-ID-INVALID"; + private static final String MOCK_ACK_ID_OTHER = "MOCK-ACK-ID-OTHER"; + + private static final String PERMANENT_FAILURE_INVALID_ACK_ID = "PERMANENT_FAILURE_INVALID_ACK_ID"; + private static final String TRANSIENT_FAILURE_UNORDERED_ACK_ID = + "TRANSIENT_FAILURE_UNORDERED_ACK_ID"; + private static final String TRANSIENT_FAILURE_SERVICE_UNAVAILABLE = + "TRANSIENT_FAILURE_SERVICE_UNAVAILABLE"; + private static final String PERMANENT_FAILURE_OTHER = "I_DO_NOT_MATCH_ANY_KNOWN_ERRORS"; + + private static int MOCK_ACK_EXTENSION_DEFAULT = 10; + private static Duration ACK_EXPIRATION_PADDING_DEFAULT = Duration.ofSeconds(10); + private static int MAX_DURATION_PER_ACK_EXTENSION_DEFAULT_SECONDS = 10; + + @Before + public void setUp() { + systemExecutor = new FakeScheduledExecutorService(); + clock = systemExecutor.getClock(); + mockSubscriberStub = mock(SubscriberStub.class, RETURNS_DEEP_STUBS); + } + + @After + public void tearDown() { + systemExecutor.shutdown(); + } + + @Test + public void testSetupAndTeardown() { + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnection(false); + + streamingSubscriberConnection.startAsync(); + streamingSubscriberConnection.awaitRunning(); + streamingSubscriberConnection.stopAsync(); + streamingSubscriberConnection.awaitTerminated(); + } + + @Test + public void testSendAckOperationsExactlyOnceDisabledNoMessageFutures() { + // Setup mocks + List modackRequestDataList = new ArrayList(); + + ModackRequestData modackRequestDataSuccess = + new ModackRequestData( + MOCK_ACK_EXTENSION_DEFAULT, AckRequestData.newBuilder(MOCK_ACK_ID_SUCCESS).build()); + modackRequestDataList.add(modackRequestDataSuccess); + + ModackRequestData modackRequestDataNack = + new ModackRequestData(0, AckRequestData.newBuilder(MOCK_ACK_ID_SUCCESS).build()); + modackRequestDataList.add(modackRequestDataNack); + + List ackRequestDataList = new ArrayList(); + AckRequestData ackRequestDataSuccess = AckRequestData.newBuilder(MOCK_ACK_ID_SUCCESS).build(); + ackRequestDataList.add(ackRequestDataSuccess); + + // Instantiate class and run operation(s) + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnection(false); + streamingSubscriberConnection.sendAckOperations(ackRequestDataList); + streamingSubscriberConnection.sendModackOperations(modackRequestDataList); + + // Assert expected behavior + verify(mockSubscriberStub, times(2)).modifyAckDeadlineCallable(); + verify(mockSubscriberStub, times(1)).acknowledgeCallable(); + } + + @Test + public void testSendAckOperationsExactlyOnceEnabledMessageFuturesModacks() { + // Setup + + // The list(s) of ackIds allows us to mock the grpc response(s) + List ackIdsInitialRequest = new ArrayList<>(); + List ackIdsRetryRequest = new ArrayList<>(); + + Map errorInfoMetadataMapInitialRequest = new HashMap(); + List modackRequestDataList = new ArrayList(); + + ModackRequestData modackRequestDataDefault = new ModackRequestData(MOCK_ACK_EXTENSION_DEFAULT); + + // Nack SUCCESS + SettableApiFuture messageFutureSuccessExpected = SettableApiFuture.create(); + ModackRequestData modackRequestDataSuccess = + new ModackRequestData( + 0, + AckRequestData.newBuilder(MOCK_ACK_ID_NACK_SUCCESS) + .setMessageFuture(messageFutureSuccessExpected) + .build()); + modackRequestDataList.add(modackRequestDataSuccess); + + // SUCCESS - no message + SettableApiFuture messageFutureNotDoneExpected = SettableApiFuture.create(); + modackRequestDataDefault.addAckRequestData( + AckRequestData.newBuilder(MOCK_ACK_ID_SUCCESS_NO_MESSAGE) + .setMessageFuture(messageFutureNotDoneExpected) + .build()); + ackIdsInitialRequest.add(MOCK_ACK_ID_SUCCESS_NO_MESSAGE); + + // INVALID + SettableApiFuture messageFutureInvalidExpected = SettableApiFuture.create(); + modackRequestDataDefault.addAckRequestData( + AckRequestData.newBuilder(MOCK_ACK_ID_INVALID) + .setMessageFuture(messageFutureInvalidExpected) + .build()); + errorInfoMetadataMapInitialRequest.put(MOCK_ACK_ID_INVALID, PERMANENT_FAILURE_INVALID_ACK_ID); + ackIdsInitialRequest.add(MOCK_ACK_ID_INVALID); + + // OTHER + SettableApiFuture messageFutureOtherExpected = SettableApiFuture.create(); + modackRequestDataDefault.addAckRequestData( + AckRequestData.newBuilder(MOCK_ACK_ID_OTHER) + .setMessageFuture(messageFutureOtherExpected) + .build()); + errorInfoMetadataMapInitialRequest.put(MOCK_ACK_ID_OTHER, PERMANENT_FAILURE_OTHER); + ackIdsInitialRequest.add(MOCK_ACK_ID_OTHER); + + // Initial) FAILURE - TRANSIENT SERVICE UNAVAILABLE + // Retry) SUCCESS - but no message future set + SettableApiFuture messageFutureTransientFailureServiceUnavailableThenSuccess = + SettableApiFuture.create(); + modackRequestDataDefault.addAckRequestData( + AckRequestData.newBuilder(MOCK_ACK_ID_TRANSIENT_FAILURE_SERVICE_UNAVAILABLE_THEN_SUCCESS) + .setMessageFuture(messageFutureTransientFailureServiceUnavailableThenSuccess) + .build()); + errorInfoMetadataMapInitialRequest.put( + MOCK_ACK_ID_TRANSIENT_FAILURE_SERVICE_UNAVAILABLE_THEN_SUCCESS, + TRANSIENT_FAILURE_SERVICE_UNAVAILABLE); + ackIdsInitialRequest.add(MOCK_ACK_ID_TRANSIENT_FAILURE_SERVICE_UNAVAILABLE_THEN_SUCCESS); + ackIdsRetryRequest.add(MOCK_ACK_ID_TRANSIENT_FAILURE_SERVICE_UNAVAILABLE_THEN_SUCCESS); + + // Initial) FAILURE - TRANSIENT - UNORDERED ACK ID + // Retry) SUCCESS - but no message future set + SettableApiFuture messageFutureTransientFailureUnorderedAckIdThenSuccess = + SettableApiFuture.create(); + modackRequestDataDefault.addAckRequestData( + AckRequestData.newBuilder(MOCK_ACK_ID_TRANSIENT_FAILURE_UNORDERED_ACK_ID_THEN_SUCCESS) + .setMessageFuture(messageFutureTransientFailureUnorderedAckIdThenSuccess) + .build()); + errorInfoMetadataMapInitialRequest.put( + MOCK_ACK_ID_TRANSIENT_FAILURE_UNORDERED_ACK_ID_THEN_SUCCESS, + TRANSIENT_FAILURE_UNORDERED_ACK_ID); + ackIdsInitialRequest.add(MOCK_ACK_ID_TRANSIENT_FAILURE_UNORDERED_ACK_ID_THEN_SUCCESS); + ackIdsRetryRequest.add(MOCK_ACK_ID_TRANSIENT_FAILURE_UNORDERED_ACK_ID_THEN_SUCCESS); + + modackRequestDataList.add(modackRequestDataDefault); + + // Build our requests so we can set our mock responses + ModifyAckDeadlineRequest modifyAckDeadlineRequestNack = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .addAckIds(MOCK_ACK_ID_NACK_SUCCESS) + .setAckDeadlineSeconds(0) + .build(); + + ModifyAckDeadlineRequest modifyAckDeadlineRequestInitial = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .addAllAckIds(ackIdsInitialRequest) + .setAckDeadlineSeconds(MOCK_ACK_EXTENSION_DEFAULT) + .build(); + + ModifyAckDeadlineRequest modifyAckDeadlineRequestRetry = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .addAllAckIds(ackIdsRetryRequest) + .setAckDeadlineSeconds(MOCK_ACK_EXTENSION_DEFAULT) + .build(); + + // Set mock grpc responses + when(mockSubscriberStub.modifyAckDeadlineCallable().futureCall(modifyAckDeadlineRequestNack)) + .thenReturn(ApiFutures.immediateFuture(null)); + when(mockSubscriberStub.modifyAckDeadlineCallable().futureCall(modifyAckDeadlineRequestInitial)) + .thenReturn( + ApiFutures.immediateFailedFuture( + getMockStatusException(errorInfoMetadataMapInitialRequest))); + when(mockSubscriberStub + .modifyAckDeadlineCallable() + .futureCall( + argThat( + new CustomArgumentMatchers.ModifyAckDeadlineRequestMatcher( + modifyAckDeadlineRequestRetry)))) + .thenReturn(ApiFutures.immediateFuture(null)); + + // Instantiate class and run operation(s) + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnection(true); + + streamingSubscriberConnection.sendModackOperations(modackRequestDataList); + + // Backoff + systemExecutor.advanceTime(Duration.ofSeconds(200)); + + // Assert expected behavior + verify(mockSubscriberStub.modifyAckDeadlineCallable(), times(1)) + .futureCall(modifyAckDeadlineRequestNack); + verify(mockSubscriberStub.modifyAckDeadlineCallable(), times(1)) + .futureCall(modifyAckDeadlineRequestInitial); + verify(mockSubscriberStub.modifyAckDeadlineCallable(), times(1)) + .futureCall(modifyAckDeadlineRequestRetry); + verify(mockSubscriberStub, never()).acknowledgeCallable(); + + try { + assertEquals(AckResponse.SUCCESSFUL, messageFutureSuccessExpected.get()); + assertEquals(AckResponse.INVALID, messageFutureInvalidExpected.get()); + assertEquals(AckResponse.OTHER, messageFutureOtherExpected.get()); + assertFalse(messageFutureTransientFailureServiceUnavailableThenSuccess.isDone()); + assertFalse(messageFutureTransientFailureUnorderedAckIdThenSuccess.isDone()); + } catch (InterruptedException | ExecutionException e) { + // In case something goes wrong retrieving the futures + throw new AssertionError(); + } + } + + @Test + public void testSendAckOperationsExactlyOnceEnabledMessageFuturesAcks() { + // Setup + + // The list(s) of ackIds allows us to mock the grpc response(s) + List ackIdsInitialRequest = new ArrayList<>(); + List ackIdsRetryRequest = new ArrayList<>(); + + Map errorInfoMetadataMapInitialRequest = new HashMap(); + List ackRequestDataList = new ArrayList(); + + // SUCCESS + SettableApiFuture messageFutureSuccessExpected = SettableApiFuture.create(); + ackRequestDataList.add( + AckRequestData.newBuilder(MOCK_ACK_ID_SUCCESS) + .setMessageFuture(messageFutureSuccessExpected) + .build()); + ackIdsInitialRequest.add(MOCK_ACK_ID_SUCCESS); + + // INVALID + SettableApiFuture messageFutureInvalidExpected = SettableApiFuture.create(); + ackRequestDataList.add( + AckRequestData.newBuilder(MOCK_ACK_ID_INVALID) + .setMessageFuture(messageFutureInvalidExpected) + .build()); + errorInfoMetadataMapInitialRequest.put(MOCK_ACK_ID_INVALID, PERMANENT_FAILURE_INVALID_ACK_ID); + ackIdsInitialRequest.add(MOCK_ACK_ID_INVALID); + + // OTHER + SettableApiFuture messageFutureOtherExpected = SettableApiFuture.create(); + ackRequestDataList.add( + AckRequestData.newBuilder(MOCK_ACK_ID_OTHER) + .setMessageFuture(messageFutureOtherExpected) + .build()); + errorInfoMetadataMapInitialRequest.put(MOCK_ACK_ID_OTHER, PERMANENT_FAILURE_OTHER); + ackIdsInitialRequest.add(MOCK_ACK_ID_OTHER); + + // Initial) FAILURE - TRANSIENT SERVICE UNAVAILABLE + // Retry) SUCCESS + SettableApiFuture messageFutureTransientFailureServiceUnavailableThenSuccess = + SettableApiFuture.create(); + ackRequestDataList.add( + AckRequestData.newBuilder(MOCK_ACK_ID_TRANSIENT_FAILURE_SERVICE_UNAVAILABLE_THEN_SUCCESS) + .setMessageFuture(messageFutureTransientFailureServiceUnavailableThenSuccess) + .build()); + errorInfoMetadataMapInitialRequest.put( + MOCK_ACK_ID_TRANSIENT_FAILURE_SERVICE_UNAVAILABLE_THEN_SUCCESS, + TRANSIENT_FAILURE_SERVICE_UNAVAILABLE); + ackIdsInitialRequest.add(MOCK_ACK_ID_TRANSIENT_FAILURE_SERVICE_UNAVAILABLE_THEN_SUCCESS); + ackIdsRetryRequest.add(MOCK_ACK_ID_TRANSIENT_FAILURE_SERVICE_UNAVAILABLE_THEN_SUCCESS); + + // Initial) FAILURE - TRANSIENT - UNORDERED ACK ID + // Retry) SUCCESS + SettableApiFuture messageFutureTransientFailureUnorderedAckIdThenSuccess = + SettableApiFuture.create(); + ackRequestDataList.add( + AckRequestData.newBuilder(MOCK_ACK_ID_TRANSIENT_FAILURE_UNORDERED_ACK_ID_THEN_SUCCESS) + .setMessageFuture(messageFutureTransientFailureUnorderedAckIdThenSuccess) + .build()); + errorInfoMetadataMapInitialRequest.put( + MOCK_ACK_ID_TRANSIENT_FAILURE_UNORDERED_ACK_ID_THEN_SUCCESS, + TRANSIENT_FAILURE_UNORDERED_ACK_ID); + ackIdsInitialRequest.add(MOCK_ACK_ID_TRANSIENT_FAILURE_UNORDERED_ACK_ID_THEN_SUCCESS); + ackIdsRetryRequest.add(MOCK_ACK_ID_TRANSIENT_FAILURE_UNORDERED_ACK_ID_THEN_SUCCESS); + + // Build our requests so we can set our mock responses + AcknowledgeRequest acknowledgeRequestInitial = + AcknowledgeRequest.newBuilder() + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .addAllAckIds(ackIdsInitialRequest) + .build(); + + AcknowledgeRequest acknowledgeRequestRetry = + AcknowledgeRequest.newBuilder() + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .addAllAckIds(ackIdsRetryRequest) + .build(); + + // Set mock grpc responses + when(mockSubscriberStub.acknowledgeCallable().futureCall(acknowledgeRequestInitial)) + .thenReturn( + ApiFutures.immediateFailedFuture( + getMockStatusException(errorInfoMetadataMapInitialRequest))); + when(mockSubscriberStub + .acknowledgeCallable() + .futureCall( + argThat( + new CustomArgumentMatchers.AcknowledgeRequestMatcher(acknowledgeRequestRetry)))) + .thenReturn(ApiFutures.immediateFuture(null)); + + // Instantiate class and run operation(s) + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnection(true); + + streamingSubscriberConnection.sendAckOperations(ackRequestDataList); + + // Backoff + systemExecutor.advanceTime(Duration.ofMillis(200)); + + // Assert expected behavior; + verify(mockSubscriberStub.acknowledgeCallable(), times(1)) + .futureCall(acknowledgeRequestInitial); + verify(mockSubscriberStub.acknowledgeCallable(), times(1)) + .futureCall( + argThat(new CustomArgumentMatchers.AcknowledgeRequestMatcher(acknowledgeRequestRetry))); + verify(mockSubscriberStub, never()).modifyAckDeadlineCallable(); + + try { + assertEquals(AckResponse.SUCCESSFUL, messageFutureSuccessExpected.get()); + assertEquals(AckResponse.INVALID, messageFutureInvalidExpected.get()); + assertEquals(AckResponse.OTHER, messageFutureOtherExpected.get()); + assertEquals( + AckResponse.SUCCESSFUL, messageFutureTransientFailureServiceUnavailableThenSuccess.get()); + assertEquals( + AckResponse.SUCCESSFUL, messageFutureTransientFailureUnorderedAckIdThenSuccess.get()); + } catch (InterruptedException | ExecutionException e) { + // In case something goes wrong retrieving the futures + throw new AssertionError(); + } + } + + @Test + public void testSetFailureResponseOutstandingMessages() { + // Setup + + List ackRequestDataList = new ArrayList(); + List nackRequestDataList = new ArrayList(); + List> futureList = + new ArrayList>(); + + // Create some acks + for (int i = 0; i < 5; i++) { + SettableApiFuture future = SettableApiFuture.create(); + futureList.add(future); + ackRequestDataList.add( + AckRequestData.newBuilder("ACK-ID-" + i).setMessageFuture(future).build()); + } + + // Create some nacks + for (int i = 5; i < 10; i++) { + SettableApiFuture future = SettableApiFuture.create(); + futureList.add(future); + nackRequestDataList.add( + AckRequestData.newBuilder("ACK-ID-" + i).setMessageFuture(future).build()); + } + + ModackRequestData modackRequestData = new ModackRequestData(0, nackRequestDataList); + + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnection(true); + + streamingSubscriberConnection.sendAckOperations(ackRequestDataList); + streamingSubscriberConnection.sendModackOperations( + Collections.singletonList(modackRequestData)); + + // Assert pending status + futureList.forEach( + ackResponseSettableApiFuture -> { + assertFalse(ackResponseSettableApiFuture.isDone()); + }); + + // Set + streamingSubscriberConnection.setResponseOutstandingMessages(AckResponse.PERMISSION_DENIED); + + // Assert futures + + futureList.forEach( + ackResponseSettableApiFuture -> { + try { + assertEquals(ackResponseSettableApiFuture.get(), AckResponse.PERMISSION_DENIED); + } catch (InterruptedException | ExecutionException e) { + // In case something goes wrong retrieving the futures + throw new AssertionError(); + } + }); + } + + private StreamingSubscriberConnection getStreamingSubscriberConnection( + boolean exactlyOnceDeliveryEnabled) { + return getStreamingSubscriberReceiverFromBuilder( + StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class)), + exactlyOnceDeliveryEnabled); + } + + private StreamingSubscriberConnection getStreamingSubscriberReceiverFromBuilder( + StreamingSubscriberConnection.Builder builder, boolean exactlyOnceDeliveryEnabled) { + return builder + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT) + .setAckLatencyDistribution(mock(Distribution.class)) + .setSubscriberStub(mockSubscriberStub) + .setChannelAffinity(0) + .setFlowControlSettings(mock(FlowControlSettings.class)) + .setFlowController(mock(FlowController.class)) + .setExecutor(executor) + .setSystemExecutor(systemExecutor) + .setClock(clock) + .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) + .setMinDurationPerAckExtensionDefaultUsed(true) + .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) + .setMaxDurationPerAckExtensionDefaultUsed(true) + .setExactlyOnceDeliveryEnabled(exactlyOnceDeliveryEnabled) + .build(); + } + + private StatusException getMockStatusException(Map metadata) { + ErrorInfo errorInfo = ErrorInfo.newBuilder().putAllMetadata(metadata).build(); + Status status = + Status.newBuilder() + .setCode(StatusCode.Code.OK.ordinal()) + .addDetails(Any.pack(errorInfo)) + .build(); + return StatusProto.toStatusException(status); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 4491b6ef9817..ab7021bba8d8 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -16,12 +16,7 @@ package com.google.cloud.pubsub.v1; -import static com.google.cloud.pubsub.v1.StreamingSubscriberConnection.DEFAULT_STREAM_ACK_DEADLINE; -import static com.google.cloud.pubsub.v1.StreamingSubscriberConnection.MAX_STREAM_ACK_DEADLINE; -import static com.google.cloud.pubsub.v1.StreamingSubscriberConnection.MIN_STREAM_ACK_DEADLINE; -import static com.google.cloud.pubsub.v1.Subscriber.DEFAULT_MAX_DURATION_PER_ACK_EXTENSION; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.*; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.core.ExecutorProvider; @@ -30,9 +25,7 @@ import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.FixedTransportChannelProvider; -import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.*; import com.google.cloud.pubsub.v1.Subscriber.Builder; import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.PubsubMessage; @@ -42,9 +35,7 @@ import io.grpc.StatusException; import io.grpc.inprocess.InProcessChannelBuilder; import io.grpc.inprocess.InProcessServerBuilder; -import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.TimeUnit; +import java.util.concurrent.*; import org.junit.After; import org.junit.Before; import org.junit.Rule; @@ -62,6 +53,8 @@ public class SubscriberTest { private FakeScheduledExecutorService fakeExecutor; private FakeSubscriberServiceImpl fakeSubscriberServiceImpl; private Server testServer; + private LinkedBlockingQueue consumersWithResponse; + private MessageReceiverWithAckResponse messageReceiverWithAckResponse; private final MessageReceiver testReceiver = new MessageReceiver() { @@ -75,6 +68,7 @@ public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { @Before public void setUp() throws Exception { + consumersWithResponse = new LinkedBlockingQueue<>(); InProcessServerBuilder serverBuilder = InProcessServerBuilder.forName(testName.getMethodName()); fakeSubscriberServiceImpl = new FakeSubscriberServiceImpl(); fakeExecutor = new FakeScheduledExecutorService(); @@ -82,6 +76,16 @@ public void setUp() throws Exception { serverBuilder.addService(fakeSubscriberServiceImpl); testServer = serverBuilder.build(); testServer.start(); + + messageReceiverWithAckResponse = + new MessageReceiverWithAckResponse() { + @Override + public void receiveMessage( + final PubsubMessage message, + final AckReplyConsumerWithResponse consumerWithResponse) { + consumersWithResponse.add(consumerWithResponse); + } + }; } @After @@ -241,7 +245,7 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { assertEquals( expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); assertEquals( - MIN_STREAM_ACK_DEADLINE.getSeconds(), + Math.toIntExact(Subscriber.MIN_STREAM_ACK_DEADLINE.getSeconds()), fakeSubscriberServiceImpl.getLastSeenRequest().getStreamAckDeadlineSeconds()); subscriber.stopAsync().awaitTerminated(); @@ -255,7 +259,7 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { assertEquals( expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); assertEquals( - MAX_STREAM_ACK_DEADLINE.getSeconds(), + Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds()), fakeSubscriberServiceImpl.getLastSeenRequest().getStreamAckDeadlineSeconds()); subscriber.stopAsync().awaitTerminated(); @@ -275,18 +279,24 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { subscriber.stopAsync().awaitTerminated(); // maxDurationPerAckExtension is unset. - maxDurationPerAckExtension = (int) DEFAULT_MAX_DURATION_PER_ACK_EXTENSION.getSeconds(); - subscriber = - startSubscriber( - getTestSubscriberBuilder(testReceiver) - .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + subscriber = startSubscriber(getTestSubscriberBuilder(testReceiver)); assertEquals( expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); assertEquals( - DEFAULT_STREAM_ACK_DEADLINE.getSeconds(), + Math.toIntExact(Subscriber.STREAM_ACK_DEADLINE_DEFAULT.getSeconds()), fakeSubscriberServiceImpl.getLastSeenRequest().getStreamAckDeadlineSeconds()); subscriber.stopAsync().awaitTerminated(); + + // maxDurationPerAckExtension is unset with exactly once enabled + subscriber = + startSubscriber(getTestSubscriberBuilder(testReceiver).setExactlyOnceDeliveryEnabled(true)); + assertEquals( + expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); + assertEquals( + Math.toIntExact(Subscriber.STREAM_ACK_DEADLINE_EXACTLY_ONCE_DELIVERY_DEFAULT.getSeconds()), + fakeSubscriberServiceImpl.getLastSeenRequest().getStreamAckDeadlineSeconds()); + subscriber.stopAsync().awaitTerminated(); } @Test @@ -325,8 +335,22 @@ private Subscriber startSubscriber(Builder testSubscriberBuilder) { return subscriber; } - private Builder getTestSubscriberBuilder(MessageReceiver receiver) { - return Subscriber.newBuilder(TEST_SUBSCRIPTION, receiver) + private Builder getTestSubscriberBuilder(MessageReceiver messageReceiver) { + return Subscriber.newBuilder(TEST_SUBSCRIPTION, messageReceiver) + .setExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) + .setSystemExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) + .setChannelProvider( + FixedTransportChannelProvider.create(GrpcTransportChannel.create(testChannel))) + .setCredentialsProvider(NoCredentialsProvider.create()) + .setClock(fakeExecutor.getClock()) + .setParallelPullCount(1) + .setFlowControlSettings( + FlowControlSettings.newBuilder().setMaxOutstandingElementCount(1000L).build()); + } + + private Builder getTestSubscriberBuilder( + MessageReceiverWithAckResponse messageReceiverWithAckResponse) { + return Subscriber.newBuilder(TEST_SUBSCRIPTION, messageReceiverWithAckResponse) .setExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) .setSystemExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) .setChannelProvider( @@ -334,7 +358,7 @@ private Builder getTestSubscriberBuilder(MessageReceiver receiver) { .setCredentialsProvider(NoCredentialsProvider.create()) .setClock(fakeExecutor.getClock()) .setParallelPullCount(1) - .setMaxDurationPerAckExtension(Duration.ofSeconds(5)) + .setExactlyOnceDeliveryEnabled(true) .setFlowControlSettings( FlowControlSettings.newBuilder().setMaxOutstandingElementCount(1000L).build()); } diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b411341b01af..1ebae91da3db 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -89,6 +89,12 @@ + + org.mockito + mockito-core + 4.3.1 + test + junit junit From 4d4b35d0cb60b4bc698a9b8daeb5b743fb44d4e5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 4 Mar 2022 13:02:27 -0500 Subject: [PATCH 0969/2363] chore(main): release 1.116.0 (#1031) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 19 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 37 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index ea74c5671ba3..5a6b4468ab1e 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.116.0](https://github.com/googleapis/java-pubsub/compare/v1.115.5...v1.116.0) (2022-03-04) + + +### Features + +* exactly once support v3 ([#1022](https://github.com/googleapis/java-pubsub/issues/1022)) ([02ed621](https://github.com/googleapis/java-pubsub/commit/02ed621f5ca6c96e1bb63cd9a5ed137896313c4f)) + + +### Bug Fixes + +* removing misspelled field, add correctly spelled field ([#1011](https://github.com/googleapis/java-pubsub/issues/1011)) ([2e8b681](https://github.com/googleapis/java-pubsub/commit/2e8b68111c1d50a5322ad1fdc5d3b93561090e98)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.5.4 ([#1017](https://github.com/googleapis/java-pubsub/issues/1017)) ([55c53e3](https://github.com/googleapis/java-pubsub/commit/55c53e34448a0fda7c4ea1fb087bd2dc2dc8e163)) +* update dependency com.google.cloud:google-cloud-core to v2.5.6 ([#1038](https://github.com/googleapis/java-pubsub/issues/1038)) ([c319f59](https://github.com/googleapis/java-pubsub/commit/c319f59f26973dbb0b88f9ccd6c60b3e480392a8)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#1035](https://github.com/googleapis/java-pubsub/issues/1035)) ([10dba36](https://github.com/googleapis/java-pubsub/commit/10dba36088a54860061d5435ac51ef7101eec891)) + ### [1.115.5](https://github.com/googleapis/java-pubsub/compare/v1.115.4...v1.115.5) (2022-02-11) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b06f48e0d4b1..12b602ac7da1 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.115.6-SNAPSHOT + 1.116.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.115.6-SNAPSHOT + 1.116.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.6-SNAPSHOT + 1.98.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.6-SNAPSHOT + 1.98.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 22fe71e2de0f..fa0c376b3152 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.115.6-SNAPSHOT + 1.116.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.115.6-SNAPSHOT + 1.116.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e668eb428eae..7e6e4f55bd59 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.6-SNAPSHOT + 1.98.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.6-SNAPSHOT + 1.116.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1ebae91da3db..871761a9c276 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.115.6-SNAPSHOT + 1.116.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.6-SNAPSHOT + 1.98.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.97.6-SNAPSHOT + 1.98.0 com.google.cloud google-cloud-pubsub - 1.115.6-SNAPSHOT + 1.116.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2194850ad7d6..439e1e4a0934 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.97.6-SNAPSHOT + 1.98.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.115.6-SNAPSHOT + 1.116.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fa976de8e4b7..29fc16f4d45e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.115.6-SNAPSHOT + 1.116.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c964f7695818..d4d5bbb2ca05 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.115.5:1.115.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.97.5:1.97.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.97.5:1.97.6-SNAPSHOT +google-cloud-pubsub:1.116.0:1.116.0 +grpc-google-cloud-pubsub-v1:1.98.0:1.98.0 +proto-google-cloud-pubsub-v1:1.98.0:1.98.0 From 586ca5f1c5c9a839c33ea9637ceb7fc9090e0ad9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 4 Mar 2022 18:14:12 +0000 Subject: [PATCH 0970/2363] chore(main): release 1.116.1-SNAPSHOT (#1039) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 12b602ac7da1..29368bb2a293 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.116.0 + 1.116.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.116.0 + 1.116.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.0 + 1.98.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.0 + 1.98.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index fa0c376b3152..b8f6268bf75b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.116.0 + 1.116.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.116.0 + 1.116.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7e6e4f55bd59..f04935a8bee3 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.0 + 1.98.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.0 + 1.116.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 871761a9c276..8511099e76d3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.116.0 + 1.116.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.0 + 1.98.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.0 + 1.98.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.116.0 + 1.116.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 439e1e4a0934..2ec5b2342543 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.0 + 1.98.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.0 + 1.116.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 29fc16f4d45e..2b875a222913 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.116.0 + 1.116.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d4d5bbb2ca05..7603c3542a9b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.116.0:1.116.0 -grpc-google-cloud-pubsub-v1:1.98.0:1.98.0 -proto-google-cloud-pubsub-v1:1.98.0:1.98.0 +google-cloud-pubsub:1.116.0:1.116.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.98.0:1.98.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.98.0:1.98.1-SNAPSHOT From fb8f57d262c1bd7616263751cde064d9b3667951 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 4 Mar 2022 20:00:16 +0100 Subject: [PATCH 0971/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.116.0 (#1040) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.116.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index fa6ddbde25c8..a3df31f5b3b2 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.115.5 + 1.116.0 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.115.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.116.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.115.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.116.0" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 444c5c709929..ca6c776db094 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.115.5 + 1.116.0 From ca4cab607171c6b685c5746e0dd2f86f2ad79f2e Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Fri, 4 Mar 2022 16:43:15 -0500 Subject: [PATCH 0972/2363] docs(sample): Add sample for Native Image support in Pub/Sub (#1026) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(sample): Add sample for Native Image support in Pub/Sub * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix checkstyle issues * fix header and modify copyright year to 2022 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix link in copyright * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add helper class to utilities directory * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md fix checkstyle * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix sample to also run with standard java Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 + .../samples/native-image-sample/README.md | 77 ++++ .../samples/native-image-sample/pom.xml | 175 ++++++++ .../java/pubsub/NativeImagePubSubSample.java | 385 ++++++++++++++++++ .../java/utilities/PublishOperations.java | 159 ++++++++ .../pubsub/NativeImagePubSubSampleIT.java | 139 +++++++ java-pubsub/samples/pom.xml | 1 + 7 files changed, 938 insertions(+) create mode 100644 java-pubsub/samples/native-image-sample/README.md create mode 100644 java-pubsub/samples/native-image-sample/pom.xml create mode 100644 java-pubsub/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java create mode 100644 java-pubsub/samples/native-image-sample/src/main/java/utilities/PublishOperations.java create mode 100644 java-pubsub/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a3df31f5b3b2..8f60b60bb5c7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -240,6 +240,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Native Image Pub Sub Sample | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java) | +| Publish Operations | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/native-image-sample/src/main/java/utilities/PublishOperations.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/native-image-sample/src/main/java/utilities/PublishOperations.java) | | Create Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | | Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | | Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | diff --git a/java-pubsub/samples/native-image-sample/README.md b/java-pubsub/samples/native-image-sample/README.md new file mode 100644 index 000000000000..ace93bd8e3e2 --- /dev/null +++ b/java-pubsub/samples/native-image-sample/README.md @@ -0,0 +1,77 @@ +# Pub/Sub Sample Application with Native Image + +The Pub/Sub sample application demonstrates some common operations with Pub/Sub and is compatible with Native Image compilation. + +## Setup Instructions + +You will need to follow these prerequisite steps in order to run the samples: + +1. If you have not already, [create a Google Cloud Platform Project](https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project). + +2. Install the [Google Cloud SDK](https://cloud.google.com/sdk/) which will allow you to run the sample with your project's credentials. + + Once installed, log in with Application Default Credentials using the following command: + + ``` + gcloud auth application-default login + ``` + + **Note:** Authenticating with Application Default Credentials is convenient to use during development, but we recommend [alternate methods of authentication](https://cloud.google.com/docs/authentication/production) during production use. + +3. Install the GraalVM compiler. + + You can follow the [official installation instructions](https://www.graalvm.org/docs/getting-started/#install-graalvm) from the GraalVM website. + After following the instructions, ensure that you install the native image extension installed by running: + + ``` + gu install native-image + ``` + + Once you finish following the instructions, verify that the default version of Java is set to the GraalVM version by running `java -version` in a terminal. + + You will see something similar to the below output: + + ``` + $ java -version + + openjdk version "11.0.7" 2020-04-14 + OpenJDK Runtime Environment GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02) + OpenJDK 64-Bit Server VM GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02, mixed mode, sharing) + ``` + +4. [Enable the Pub/Sub APIs](https://console.cloud.google.com/apis/api/pubsub.googleapis.com). + +### Sample + +Navigate to this directory in a new terminal. + +1. Compile the application using the Native Image Compiler. This step may take a few minutes. + + ``` + mvn package -P native -DskipTests + ``` + +2. Run the application: + + ``` + ./target/native-image-sample + ``` + +3. The application will create a new Pub/Sub topic, send and receive a message from it, and then delete the topic. + + ``` + Created topic: projects/YOUR_PROJECT_ID/topics/graal-pubsub-test-00e72640-4e36-4aff-84d2-13b7569b2289 under project: YOUR_PROJECT_ID + Created pull subscription: projects/YOUR_PROJECT_ID/subscriptions/graal-pubsub-test-sub2fb5e3f3-cb26-439b-b88c-9cb0cfca9e45 + Published message with ID: 457327433078420 + Received Payload: Pub/Sub Native Image Test published message at timestamp: 2020-09-23T19:45:42.746514Z + Deleted topic projects/YOUR_PROJECT_ID/topics/graal-pubsub-test-00e72640-4e36-4aff-84d2-13b7569b2289 + Deleted subscription projects/YOUR_PROJECT_ID/subscriptions/graal-pubsub-test-sub2fb5e3f3-cb26-439b-b88c-9cb0cfca9e45 + ``` + +## Sample Integration Test with native Image Support + +In order to run the sample integration test as a native image, call the following command: + + ``` + mvn test -Pnative + ``` \ No newline at end of file diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml new file mode 100644 index 000000000000..afdfa8e563b9 --- /dev/null +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -0,0 +1,175 @@ + + + 4.0.0 + com.google.cloud + native-image-sample + Native Image Sample + https://github.com/googleapis/java-pubsub + + + + com.google.cloud.samples + shared-configuration + 1.2.0 + + + + 11 + 11 + UTF-8 + + + + + + com.google.cloud + libraries-bom + 24.3.0 + pom + import + + + + + + + com.google.cloud + google-cloud-core + + + com.google.cloud + google-cloud-pubsub + + + + junit + junit + 4.13.2 + test + + + com.google.truth + truth + 1.1.3 + test + + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + dependency-jars/ + pubsub.NativeImagePubSubSample + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.2.0 + + + copy-dependencies + package + + copy-dependencies + + + + ${project.build.directory}/dependency-jars/ + + + + + + + + + + + + native + + + + com.google.cloud + native-image-support + 0.12.4 + + + org.junit.vintage + junit-vintage-engine + 5.8.2 + test + + + org.graalvm.buildtools + junit-platform-native + 0.9.9 + test + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + 2.22.2 + + + **/*IT + + + + + org.graalvm.buildtools + native-maven-plugin + 0.9.9 + true + + pubsub.NativeImagePubSubSample + + + --no-fallback + --no-server + --features=com.google.cloud.nativeimage.features.ProtobufMessageFeature + + + + + build-native + + build + test + + package + + + test-native + + test + + test + + + + + + + + \ No newline at end of file diff --git a/java-pubsub/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java b/java-pubsub/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java new file mode 100644 index 000000000000..2e96091a65c0 --- /dev/null +++ b/java-pubsub/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java @@ -0,0 +1,385 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.ServiceOptions; +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.stub.GrpcSubscriberStub; +import com.google.cloud.pubsub.v1.stub.SubscriberStub; +import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.DeadLetterPolicy; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.ReceivedMessage; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.UpdateSubscriptionRequest; +import java.io.IOException; +import java.time.Duration; +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import utilities.PublishOperations; + +/** Pub/Sub sample application compiled with Native Image. */ +public class NativeImagePubSubSample { + + /** Driver for the Pub/Sub Sample application which publishes a message to a specified topic. */ + public static void main(String[] args) throws Exception { + Instant startTime = Instant.now(); + String projectId = ServiceOptions.getDefaultProjectId(); + + String topicId = "native-pubsub-test-" + UUID.randomUUID().toString(); + String pullSubId = "native-pubsub-test-sub" + UUID.randomUUID().toString(); + String pushSubId = "native-pubsub-test-sub" + UUID.randomUUID().toString(); + + try { + // Topic management operations + createTopic(projectId, topicId); + createPullSubscription(projectId, pullSubId, topicId); + createPushSubscription(projectId, pushSubId, topicId); + detachSubscription(projectId, pushSubId); + getTopicPolicy(projectId, topicId); + getSubscriptionPolicy(projectId, pullSubId); + listSubscriptionInProject(projectId); + listSubscriptionInTopic(projectId, topicId); + listTopics(projectId); + updateSubscriptionDeadLetterTopic(projectId, pushSubId, topicId, topicId); + testTopicPermissions(projectId, topicId); + testSubscriptionPermissions(projectId, pushSubId); + + // Publish Operations + PublishOperations.publishMessage(projectId, topicId); + PublishOperations.publishWithBatchSettings(projectId, topicId); + PublishOperations.publishWithCustomAttributes(projectId, topicId); + PublishOperations.publishWithErrorHandler(projectId, topicId); + + // Receive messages + subscribeSync(projectId, pullSubId); + receiveMessagesWithDeliveryAttempts(projectId, pullSubId); + } finally { + deleteTopic(projectId, topicId); + deleteSubscription(projectId, pullSubId); + deleteSubscription(projectId, pushSubId); + } + Instant endTime = Instant.now(); + Duration duration = Duration.between(startTime, endTime); + System.out.println("Duration: " + duration.toString()); + } + + static void createTopic(String projectId, String topicId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + Topic topic = topicAdminClient.createTopic(topicName); + System.out.println("Created topic: " + topic.getName() + " under project: " + projectId); + } + } + + static void createPullSubscription(String projectId, String subscriptionId, String topicId) + throws IOException { + + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + Subscription subscription = + subscriptionAdminClient.createSubscription( + subscriptionName, topicName, PushConfig.getDefaultInstance(), 10); + System.out.println("Created pull subscription: " + subscription.getName()); + } + } + + static void createPushSubscription(String projectId, String subscriptionId, String topicId) + throws IOException { + + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Intentionally set pushEndpoint empty just to exercise API call + PushConfig pushConfig = PushConfig.newBuilder().setPushEndpoint("").build(); + + Subscription subscription = + subscriptionAdminClient.createSubscription(subscriptionName, topicName, pushConfig, 10); + System.out.println("Created push subscription: " + subscription.getName()); + } + } + + static void detachSubscription(String projectId, String subscriptionId) throws IOException { + + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + topicAdminClient.detachSubscription( + DetachSubscriptionRequest.newBuilder() + .setSubscription(subscriptionName.toString()) + .build()); + } + + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + Subscription subscription = subscriptionAdminClient.getSubscription(subscriptionName); + if (subscription.getDetached()) { + System.out.println("Subscription is detached."); + } else { + throw new RuntimeException("Subscription detachment was not successful."); + } + } + } + + static void getSubscriptionPolicy(String projectId, String subscriptionId) throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + GetIamPolicyRequest getIamPolicyRequest = + GetIamPolicyRequest.newBuilder().setResource(subscriptionName.toString()).build(); + Policy policy = subscriptionAdminClient.getIamPolicy(getIamPolicyRequest); + System.out.println("Subscription policy: " + policy.toString().trim()); + } + } + + static void getTopicPolicy(String projectId, String topicId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + GetIamPolicyRequest getIamPolicyRequest = + GetIamPolicyRequest.newBuilder().setResource(topicName.toString()).build(); + Policy policy = topicAdminClient.getIamPolicy(getIamPolicyRequest); + System.out.println("Topic policy: " + policy.toString().trim()); + } + } + + static void listSubscriptionInProject(String projectId) throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectName projectName = ProjectName.of(projectId); + int count = 0; + for (Subscription subscription : + subscriptionAdminClient.listSubscriptions(projectName).iterateAll()) { + count += 1; + } + System.out.println("Subscriptions in project count: " + count); + } + } + + static void listSubscriptionInTopic(String projectId, String topicId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + int count = 0; + for (String subscription : topicAdminClient.listTopicSubscriptions(topicName).iterateAll()) { + count += 1; + } + System.out.println("Subscriptions under topic: " + count); + } + } + + static void listTopics(String projectId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ProjectName projectName = ProjectName.of(projectId); + int count = 0; + for (Topic topic : topicAdminClient.listTopics(projectName).iterateAll()) { + count += 1; + } + System.out.println("Topic count under project: " + count); + } + } + + static void receiveMessagesWithDeliveryAttempts(String projectId, String subscriptionId) { + + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + new MessageReceiver() { + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { + consumer.ack(); + } + }; + + Subscriber subscriber = null; + try { + subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); + // Start the subscriber. + subscriber.startAsync().awaitRunning(); + System.out.println("Successfully started an async message receiver."); + } finally { + // Shut down the subscriber after 10s. Stop receiving messages. + subscriber.stopAsync(); + } + } + + static void subscribeSync(String projectId, String subscriptionId) throws IOException { + SubscriberStubSettings subscriberStubSettings = + SubscriberStubSettings.newBuilder() + .setTransportChannelProvider( + SubscriberStubSettings.defaultGrpcTransportProviderBuilder() + .setMaxInboundMessageSize(20 * 1024 * 1024) // 20MB (maximum message size). + .build()) + .build(); + + try (SubscriberStub subscriber = GrpcSubscriberStub.create(subscriberStubSettings)) { + String subscriptionName = ProjectSubscriptionName.format(projectId, subscriptionId); + PullRequest pullRequest = + PullRequest.newBuilder().setMaxMessages(1).setSubscription(subscriptionName).build(); + + PullResponse pullResponse = subscriber.pullCallable().call(pullRequest); + List ackIds = new ArrayList<>(); + for (ReceivedMessage message : pullResponse.getReceivedMessagesList()) { + String payload = message.getMessage().getData().toStringUtf8(); + ackIds.add(message.getAckId()); + System.out.println("Received Payload: " + payload); + } + + AcknowledgeRequest acknowledgeRequest = + AcknowledgeRequest.newBuilder() + .setSubscription(subscriptionName) + .addAllAckIds(ackIds) + .build(); + + subscriber.acknowledgeCallable().call(acknowledgeRequest); + } + } + + static void updateSubscriptionDeadLetterTopic( + String projectId, String subscriptionId, String topicId, String deadLetterTopicId) + throws IOException { + + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + TopicName topicName = TopicName.of(projectId, topicId); + TopicName deadLetterTopicName = TopicName.of(projectId, deadLetterTopicId); + + DeadLetterPolicy deadLetterPolicy = + DeadLetterPolicy.newBuilder() + .setDeadLetterTopic(deadLetterTopicName.toString()) + .setMaxDeliveryAttempts(20) + .build(); + + Subscription subscription = + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + .setDeadLetterPolicy(deadLetterPolicy) + .build(); + + FieldMask updateMask = FieldMask.newBuilder().addPaths("dead_letter_policy").build(); + + UpdateSubscriptionRequest request = + UpdateSubscriptionRequest.newBuilder() + .setSubscription(subscription) + .setUpdateMask(updateMask) + .build(); + + Subscription response = subscriptionAdminClient.updateSubscription(request); + System.out.println("Updated subscription " + response.getName()); + } + } + + static void testSubscriptionPermissions(String projectId, String subscriptionId) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + List permissions = new ArrayList<>(); + permissions.add("pubsub.subscriptions.consume"); + permissions.add("pubsub.subscriptions.update"); + + TestIamPermissionsRequest testIamPermissionsRequest = + TestIamPermissionsRequest.newBuilder() + .setResource(subscriptionName.toString()) + .addAllPermissions(permissions) + .build(); + + TestIamPermissionsResponse testedPermissionsResponse = + subscriptionAdminClient.testIamPermissions(testIamPermissionsRequest); + + System.out.println( + "Tested PubSub subscription permissions\n" + testedPermissionsResponse.toString().trim()); + } + } + + static void testTopicPermissions(String projectId, String topicId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + + List permissions = new ArrayList<>(); + permissions.add("pubsub.topics.attachSubscription"); + permissions.add("pubsub.topics.publish"); + permissions.add("pubsub.topics.update"); + + TestIamPermissionsRequest testIamPermissionsRequest = + TestIamPermissionsRequest.newBuilder() + .setResource(topicName.toString()) + .addAllPermissions(permissions) + .build(); + + TestIamPermissionsResponse testedPermissionsResponse = + topicAdminClient.testIamPermissions(testIamPermissionsRequest); + + System.out.println( + "Tested topic permissions\n" + testedPermissionsResponse.toString().trim()); + } + } + + static void deleteTopic(String projectId, String topicId) throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + try { + topicAdminClient.deleteTopic(topicName); + System.out.println("Deleted topic " + topicName); + } catch (NotFoundException e) { + System.out.println(e.getMessage()); + } + } + } + + static void deleteSubscription(String projectId, String subscriptionId) throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + try { + subscriptionAdminClient.deleteSubscription(subscriptionName); + System.out.println("Deleted subscription " + subscriptionName); + } catch (NotFoundException e) { + System.out.println(e.getMessage()); + } + } + } +} diff --git a/java-pubsub/samples/native-image-sample/src/main/java/utilities/PublishOperations.java b/java-pubsub/samples/native-image-sample/src/main/java/utilities/PublishOperations.java new file mode 100644 index 000000000000..068312025a52 --- /dev/null +++ b/java-pubsub/samples/native-image-sample/src/main/java/utilities/PublishOperations.java @@ -0,0 +1,159 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package utilities; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; +import com.google.api.gax.rpc.ApiException; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.time.Instant; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.concurrent.ExecutionException; + +/** Sample methods for Publishing messages to a topic in Pub/Sub. */ +public class PublishOperations { + + public static void publishMessage(String projectId, String topicId) throws Exception { + + Publisher publisher = Publisher.newBuilder(TopicName.of(projectId, topicId)).build(); + + try { + String message = "Pub/Sub Native Image Test published message at timestamp: " + Instant.now(); + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + publisher.publish(pubsubMessage); + + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + String messageId = messageIdFuture.get(); + + System.out.println("Published message with ID: " + messageId); + } finally { + publisher.shutdown(); + } + } + + public static void publishWithCustomAttributes(String projectId, String topicId) + throws Exception { + + TopicName topicName = TopicName.of(projectId, topicId); + Publisher publisher = Publisher.newBuilder(topicName).build(); + + try { + String message = "first message"; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = + PubsubMessage.newBuilder() + .setData(data) + .putAllAttributes(Collections.singletonMap("year", "2020")) + .build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + String messageId = messageIdFuture.get(); + System.out.println("Published a message with custom attributes: " + messageId); + } finally { + publisher.shutdown(); + } + } + + public static void publishWithBatchSettings(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + + TopicName topicName = TopicName.of(projectId, topicId); + Publisher publisher = Publisher.newBuilder(topicName).build(); + List> messageIdFutures = new ArrayList<>(); + + try { + // schedule publishing one message at a time : messages get automatically batched + for (int i = 0; i < 100; i++) { + String message = "message " + i; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + messageIdFutures.add(messageIdFuture); + } + } finally { + // Wait on any pending publish requests. + List messageIds = ApiFutures.allAsList(messageIdFutures).get(); + System.out.println("Published " + messageIds.size() + " messages with batch settings."); + + publisher.shutdown(); + } + } + + public static void publishWithErrorHandler(String projectId, String topicId) throws IOException { + + TopicName topicName = TopicName.of(projectId, topicId); + Publisher publisher = null; + + try { + // Create a publisher instance with default settings bound to the topic + publisher = Publisher.newBuilder(topicName).build(); + + List messages = Arrays.asList("first message", "second message"); + + for (final String message : messages) { + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture future = publisher.publish(pubsubMessage); + + // Add an asynchronous callback to handle success / failure + ApiFutures.addCallback( + future, + new ApiFutureCallback() { + + @Override + public void onFailure(Throwable throwable) { + if (throwable instanceof ApiException) { + ApiException apiException = ((ApiException) throwable); + // details on the API exception + System.out.println(apiException.getStatusCode().getCode()); + System.out.println(apiException.isRetryable()); + } + System.out.println("Error publishing message : " + message); + } + + @Override + public void onSuccess(String messageId) { + // Once published, returns server-assigned message ids (unique within the topic) + System.out.println("Success Callback: Published message " + messageId); + } + }, + MoreExecutors.directExecutor()); + } + } finally { + if (publisher != null) { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + } + } + } +} diff --git a/java-pubsub/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java b/java-pubsub/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java new file mode 100644 index 000000000000..c221d735ae06 --- /dev/null +++ b/java-pubsub/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java @@ -0,0 +1,139 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +import static com.google.common.truth.Truth.assertThat; + +import com.google.cloud.ServiceOptions; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import utilities.PublishOperations; + +public class NativeImagePubSubSampleIT { + + private static String TOPIC_ID = "native-pubsub-test-" + UUID.randomUUID(); + private static String PULL_SUB_ID = "native-pubsub-test-sub" + UUID.randomUUID(); + private static String PUSH_SUB_ID = "native-pubsub-test-sub" + UUID.randomUUID(); + private static String PROJECT_ID = ServiceOptions.getDefaultProjectId(); + private static final TopicName TOPIC_NAME = TopicName.of(PROJECT_ID, TOPIC_ID); + private static final SubscriptionName PULL_SUBSCRIPTION_NAME = + SubscriptionName.of(PROJECT_ID, PULL_SUB_ID); + private static final SubscriptionName PUSH_SUBSCRIPTION_NAME = + SubscriptionName.of(PROJECT_ID, PUSH_SUB_ID); + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void cleanUp() throws IOException { + NativeImagePubSubSample.deleteTopic(PROJECT_ID, TOPIC_ID); + NativeImagePubSubSample.deleteSubscription(PROJECT_ID, PULL_SUB_ID); + NativeImagePubSubSample.deleteSubscription(PROJECT_ID, PUSH_SUB_ID); + } + + @Test + public void testRunTopicManagementOperations() throws IOException { + // Topic management operations + NativeImagePubSubSample.createTopic(PROJECT_ID, TOPIC_ID); + NativeImagePubSubSample.createPullSubscription(PROJECT_ID, PULL_SUB_ID, TOPIC_ID); + NativeImagePubSubSample.createPushSubscription(PROJECT_ID, PUSH_SUB_ID, TOPIC_ID); + NativeImagePubSubSample.detachSubscription(PROJECT_ID, PUSH_SUB_ID); + NativeImagePubSubSample.getTopicPolicy(PROJECT_ID, TOPIC_ID); + NativeImagePubSubSample.getSubscriptionPolicy(PROJECT_ID, PULL_SUB_ID); + NativeImagePubSubSample.listSubscriptionInProject(PROJECT_ID); + NativeImagePubSubSample.listSubscriptionInTopic(PROJECT_ID, TOPIC_ID); + NativeImagePubSubSample.listTopics(PROJECT_ID); + NativeImagePubSubSample.updateSubscriptionDeadLetterTopic( + PROJECT_ID, PUSH_SUB_ID, TOPIC_ID, TOPIC_ID); + NativeImagePubSubSample.testTopicPermissions(PROJECT_ID, TOPIC_ID); + NativeImagePubSubSample.testSubscriptionPermissions(PROJECT_ID, PUSH_SUB_ID); + + // Verify create topic and subscriptions + assertThat(bout.toString()) + .contains("Created topic: " + TOPIC_NAME.toString() + " under project: " + PROJECT_ID); + assertThat(bout.toString()) + .contains("Created pull subscription: " + PULL_SUBSCRIPTION_NAME.toString()); + assertThat(bout.toString()) + .contains("Created push subscription: " + PUSH_SUBSCRIPTION_NAME.toString()); + + // Verify detach subscription + assertThat(bout.toString()).contains("Subscription is detached"); + + // Verify topic and subscription IAM policy + assertThat(bout.toString()).contains("Topic policy: etag: \"\\000 \\001"); + assertThat(bout.toString()).contains("Subscription policy: etag: \"\\000 \\001\""); + + // Verify listing of subscriptions and topics + assertThat(bout.toString()).contains("Subscriptions in project count:"); + assertThat(bout.toString()).contains("Subscriptions under topic:"); + assertThat(bout.toString()).contains("Topic count under project:"); + + // Verify update of subscription + assertThat(bout.toString()).contains("Updated subscription " + PUSH_SUBSCRIPTION_NAME); + + // Verify topic permissions + assertThat(bout.toString()).contains("Tested topic permissions"); + assertThat(bout.toString()).contains("permissions: \"pubsub.topics.attachSubscription\""); + assertThat(bout.toString()).contains("permissions: \"pubsub.topics.publish\""); + assertThat(bout.toString()).contains("permissions: \"pubsub.topics.update\""); + + // Verify subscription permissions + assertThat(bout.toString()).contains("Tested PubSub subscription permissions"); + assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.consume\""); + assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.update\""); + } + + @Test + public void testPublishAndSubscribe() throws Exception { + NativeImagePubSubSample.createTopic(PROJECT_ID, TOPIC_ID); + NativeImagePubSubSample.createPullSubscription(PROJECT_ID, PULL_SUB_ID, TOPIC_ID); + + bout.reset(); + + // Publish + PublishOperations.publishMessage(PROJECT_ID, TOPIC_ID); + PublishOperations.publishWithBatchSettings(PROJECT_ID, TOPIC_ID); + PublishOperations.publishWithCustomAttributes(PROJECT_ID, TOPIC_ID); + PublishOperations.publishWithErrorHandler(PROJECT_ID, TOPIC_ID); + + // Subscribe + NativeImagePubSubSample.subscribeSync(PROJECT_ID, PULL_SUB_ID); + NativeImagePubSubSample.receiveMessagesWithDeliveryAttempts(PROJECT_ID, PULL_SUB_ID); + + assertThat(bout.toString()).contains("Published message with ID"); + assertThat(bout.toString()).contains("Published 100 messages with batch settings."); + assertThat(bout.toString()).contains("Published a message with custom attributes"); + assertThat(bout.toString()).contains("Success Callback: Published message"); + assertThat(bout.toString()).contains("Success Callback: Published message"); + assertThat(bout.toString()).contains("Received Payload"); + assertThat(bout.toString()).contains("Successfully started an async message receiver"); + } +} diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index c3399fdec531..e138ae3bcb41 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -46,6 +46,7 @@ install-without-bom snapshot snippets + native-image-sample From 39e5ebb916240a8a0cf60fae6009b9c67aed0000 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 8 Mar 2022 02:43:06 +0000 Subject: [PATCH 0973/2363] chore: update java template (#1367) (#1045) * chore: update java template * chore: fix tests * chore: fix tests * chore: update project Source-Link: https://github.com/googleapis/synthtool/commit/1155a97fed1c195d10ad406d483bc8ac2507f1d7 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.kokoro/nightly/integration.cfg | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 3473042c086e..426cf83e2ec6 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e + digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa diff --git a/java-pubsub/.kokoro/nightly/integration.cfg b/java-pubsub/.kokoro/nightly/integration.cfg index e51c7b4c6c11..a2907a257b2b 100644 --- a/java-pubsub/.kokoro/nightly/integration.cfg +++ b/java-pubsub/.kokoro/nightly/integration.cfg @@ -13,12 +13,12 @@ env_vars: { # TODO: remove this after we've migrated all tests and scripts env_vars: { key: "GCLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" } env_vars: { key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" } env_vars: { From 00651feaac99a19ffca2cd9584ad15a0c708feda Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 04:00:34 +0100 Subject: [PATCH 0974/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 (#1044) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.9` -> `0.9.10` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.10/compatibility-slim/0.9.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.10/confidence-slim/0.9.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    graalvm/native-build-tools ### [`v0.9.10`](https://togithub.com/graalvm/native-build-tools/releases/0.9.10) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.9...0.9.10) #### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Introduce skipNativeTests flag in Maven plugin by [@​sbrannen](https://togithub.com/sbrannen) in [https://github.com/graalvm/native-build-tools/pull/193](https://togithub.com/graalvm/native-build-tools/pull/193) - Fix system property breaking build cacheability by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/192](https://togithub.com/graalvm/native-build-tools/pull/192) - Make sure executable ends with `.exe` under Windows by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/199](https://togithub.com/graalvm/native-build-tools/pull/199) - Make it possible to override the classpath by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/200](https://togithub.com/graalvm/native-build-tools/pull/200) - Upgrade to Gradle 7.4 by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/202](https://togithub.com/graalvm/native-build-tools/pull/202) - Fix race condition if tests are executed in parallel by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/195](https://togithub.com/graalvm/native-build-tools/pull/195) - Add support for `@arg` file by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/205](https://togithub.com/graalvm/native-build-tools/pull/205) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.9...0.9.10
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index afdfa8e563b9..0520e1e81413 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -139,7 +139,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.9 + 0.9.10 true pubsub.NativeImagePubSubSample From 508ee1d0496633deb0a15146a1a7584fba5eca29 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 04:00:51 +0100 Subject: [PATCH 0975/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 (#1043) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.9` -> `0.9.10` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.10/compatibility-slim/0.9.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.10/confidence-slim/0.9.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    graalvm/native-build-tools ### [`v0.9.10`](https://togithub.com/graalvm/native-build-tools/releases/0.9.10) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.9...0.9.10) #### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Introduce skipNativeTests flag in Maven plugin by [@​sbrannen](https://togithub.com/sbrannen) in [https://github.com/graalvm/native-build-tools/pull/193](https://togithub.com/graalvm/native-build-tools/pull/193) - Fix system property breaking build cacheability by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/192](https://togithub.com/graalvm/native-build-tools/pull/192) - Make sure executable ends with `.exe` under Windows by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/199](https://togithub.com/graalvm/native-build-tools/pull/199) - Make it possible to override the classpath by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/200](https://togithub.com/graalvm/native-build-tools/pull/200) - Upgrade to Gradle 7.4 by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/202](https://togithub.com/graalvm/native-build-tools/pull/202) - Fix race condition if tests are executed in parallel by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/195](https://togithub.com/graalvm/native-build-tools/pull/195) - Add support for `@arg` file by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/205](https://togithub.com/graalvm/native-build-tools/pull/205) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.9...0.9.10
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 0520e1e81413..5725bad2cac5 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -118,7 +118,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.9 + 0.9.10 test
    From bc37cfa80276977845013a0e16edadd2c30f5d2a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 17:26:19 +0100 Subject: [PATCH 0976/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.0 (#1046) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 29368bb2a293..0810409ba705 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.7 + 1.3.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8511099e76d3..5ab2a032d25b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.7 + 1.3.0 From 5cc75fa98d065320617b867f9f9b23e663dd9b60 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 17:26:36 +0100 Subject: [PATCH 0977/2363] deps: update dependency com.google.cloud:native-image-support to v0.12.7 (#1042) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 5725bad2cac5..774dc4a83efb 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud native-image-support - 0.12.4 + 0.12.7 org.junit.vintage From 1912e008687246424f96013c907dc0f15816b3a3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 18:15:19 +0100 Subject: [PATCH 0978/2363] test(deps): update dependency org.mockito:mockito-core to v4.4.0 (#1047) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5ab2a032d25b..41eb4d685375 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -92,7 +92,7 @@ org.mockito mockito-core - 4.3.1 + 4.4.0 test From e086bd053a02b65caa259e9fce3bc7dde740f3ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Mar 2022 18:30:16 +0100 Subject: [PATCH 0979/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.5.8 (#1050) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.6` -> `2.5.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/compatibility-slim/2.5.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.8/confidence-slim/2.5.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.5.8`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​258-httpsgithubcomgoogleapisjava-corecomparev257v258-2022-03-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.7...v2.5.8) ### [`v2.5.7`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​257-httpsgithubcomgoogleapisjava-corecomparev256v257-2022-03-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.6...v2.5.7)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ca6c776db094..7125a24adc6a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.5.6 + 2.5.8 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2b875a222913..164a242318fb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.5.6 + 2.5.8 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 01f343c684d7..8eb6e56c039f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.5.6 + 2.5.8 tests From 6913b6a7fb25d580b170736eb804990914811638 Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Wed, 9 Mar 2022 14:12:08 -0500 Subject: [PATCH 0980/2363] Fix: Removed EnableExactlyOnceDelivery from Builders (#1052) Removed EnableExactlyOnceDelivery from `Subscriber.Builder`, `StreamingSubscriberConnection.Builder`, and `MessageDispatcher.Builder`. Added comments to `AckReplyConsumerWithResponse` to be in line with `AckReplyConsumer` --- .../clirr-ignored-differences.xml | 20 +++++++++++ .../v1/AckReplyConsumerWithResponse.java | 26 ++++++++++++++ .../cloud/pubsub/v1/MessageDispatcher.java | 21 ++++-------- .../v1/StreamingSubscriberConnection.java | 23 +++---------- .../google/cloud/pubsub/v1/Subscriber.java | 22 ------------ .../google/cloud/pubsub/it/ITPubSubTest.java | 3 -- .../pubsub/v1/MessageDispatcherTest.java | 34 +++++++++++++------ .../v1/StreamingSubscriberConnectionTest.java | 16 +++++---- .../cloud/pubsub/v1/SubscriberTest.java | 11 ------ 9 files changed, 92 insertions(+), 84 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml diff --git a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml new file mode 100644 index 000000000000..610c1b36207d --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml @@ -0,0 +1,20 @@ + + + + + + 7002 + com/google/cloud/pubsub/v1/Subscriber$Builder + com.google.cloud.pubsub.v1.Subscriber$Builder setExactlyOnceDeliveryEnabled(boolean) + + + 7002 + com/google/cloud/pubsub/v1/StreamingSubscriberConnection$Builder + com.google.cloud.pubsub.v1.StreamingSubscriberConnection$Builder setExactlyOnceDeliveryEnabled(boolean) + + + 7002 + com/google/cloud/pubsub/v1/MessageDispatcher$Builder + com.google.cloud.pubsub.v1.MessageDispatcher$Builder setEnableExactlyOnceDelivery(boolean) + + diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java index 199186004ef5..ec2a27f3ba9a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java @@ -18,8 +18,34 @@ import java.util.concurrent.Future; +/** + * Acknowledging a message in Pub/Sub means that you are done with it, and it will not be delivered + * to this subscription again. You should avoid acknowledging messages until you have *finished* + * processing them, so that in the event of a failure, you receive the message again. + * + *

    If exactly-once delivery is enabled on the subscription, the future returned by the ack/nack + * methods track the state of acknowledgement operation by the server. If the future completes + * successfully, the message is guaranteed NOT to be re-delivered. Otherwise, the future will + * contain an exception with more details about the failure and the message may be re-delivered. + * + *

    If exactly-once delivery is NOT enabled on the subscription, the future returns immediately + * with an AckResponse.SUCCESS. Because re-deliveries are possible, you should ensure that your + * processing code is idempotent, as you may receive any given message more than once. + */ public interface AckReplyConsumerWithResponse { + /** + * Acknowledges that the message has been successfully processed. The service will not send the + * message again. + * + *

    A future representing the server response is returned + */ Future ack(); + /** + * Signals that the message has not been successfully processed. The service should resend the + * message. + * + *

    A future representing the server response is returned + */ Future nack(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index a9f73d5c32bb..31693a1894b4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -70,7 +70,7 @@ class MessageDispatcher { private final FlowController flowController; - private AtomicBoolean enableExactlyOnceDelivery; + private AtomicBoolean exactlyOnceDeliveryEnabled = new AtomicBoolean(false); private final Waiter messagesWaiter; @@ -198,7 +198,6 @@ private MessageDispatcher(Builder builder) { ackProcessor = builder.ackProcessor; flowController = builder.flowController; - enableExactlyOnceDelivery = new AtomicBoolean(builder.enableExactlyOnceDelivery); ackLatencyDistribution = builder.ackLatencyDistribution; clock = builder.clock; jobLock = new ReentrantLock(); @@ -296,13 +295,13 @@ int getMessageDeadlineSeconds() { } @InternalApi - void setEnableExactlyOnceDelivery(boolean enableExactlyOnceDelivery) { - // Sanity check that we are changing the enableExactlyOnceDelivery state - if (enableExactlyOnceDelivery == this.enableExactlyOnceDelivery.get()) { + void setExactlyOnceDeliveryEnabled(boolean exactlyOnceDeliveryEnabled) { + // Sanity check that we are changing the exactlyOnceDeliveryEnabled state + if (exactlyOnceDeliveryEnabled == this.exactlyOnceDeliveryEnabled.get()) { return; } - this.enableExactlyOnceDelivery.set(enableExactlyOnceDelivery); + this.exactlyOnceDeliveryEnabled.set(exactlyOnceDeliveryEnabled); // If a custom value for minDurationPerAckExtension, we should respect that if (!minDurationPerAckExtensionDefaultUsed) { @@ -313,7 +312,7 @@ void setEnableExactlyOnceDelivery(boolean enableExactlyOnceDelivery) { // maxDurationPerAckExtensionSeconds does not change int possibleNewMinAckDeadlineExtensionSeconds; - if (enableExactlyOnceDelivery) { + if (exactlyOnceDeliveryEnabled) { possibleNewMinAckDeadlineExtensionSeconds = Math.toIntExact( Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY.getSeconds()); @@ -323,7 +322,7 @@ void setEnableExactlyOnceDelivery(boolean enableExactlyOnceDelivery) { } // If we are not using the default maxDurationAckExtension, check if the - // minAckDeadlineExtensionExactlyOnce needs to be bounded by the set max + // minAckDeadlineExtensionExactlyOnceDelivery needs to be bounded by the set max if (!maxDurationPerAckExtensionDefaultUsed && (possibleNewMinAckDeadlineExtensionSeconds > maxDurationPerAckExtensionSeconds)) { minDurationPerAckExtensionSeconds = maxDurationPerAckExtensionSeconds; @@ -580,7 +579,6 @@ public static final class Builder { private Distribution ackLatencyDistribution; private FlowController flowController; - private boolean enableExactlyOnceDelivery; private Executor executor; private ScheduledExecutorService systemExecutor; @@ -641,11 +639,6 @@ public Builder setFlowController(FlowController flowController) { return this; } - public Builder setEnableExactlyOnceDelivery(boolean enableExactlyOnceDelivery) { - this.enableExactlyOnceDelivery = enableExactlyOnceDelivery; - return this; - } - public Builder setExecutor(Executor executor) { this.executor = executor; return this; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index d1af3a3e96d3..78f35efea050 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -103,12 +103,7 @@ private StreamingSubscriberConnection(Builder builder) { // We need to set the default stream ack deadline on the initial request, this will be // updated by modack requests in the message dispatcher if (builder.maxDurationPerAckExtensionDefaultUsed) { - // If the default is used, check if exactly once is enabled and set appropriately - if (builder.exactlyOnceDeliveryEnabled) { - inititalStreamAckDeadline = Subscriber.STREAM_ACK_DEADLINE_EXACTLY_ONCE_DELIVERY_DEFAULT; - } else { - inititalStreamAckDeadline = Subscriber.STREAM_ACK_DEADLINE_DEFAULT; - } + inititalStreamAckDeadline = Subscriber.STREAM_ACK_DEADLINE_DEFAULT; } else if (builder.maxDurationPerAckExtension.compareTo(Subscriber.MIN_STREAM_ACK_DEADLINE) < 0) { // We will not be able to extend more than the default minimum @@ -123,7 +118,6 @@ private StreamingSubscriberConnection(Builder builder) { subscriberStub = builder.subscriberStub; channelAffinity = builder.channelAffinity; - exactlyOnceDeliveryEnabled.set(builder.exactlyOnceDeliveryEnabled); MessageDispatcher.Builder messageDispatcherBuilder; if (builder.receiver != null) { @@ -143,7 +137,6 @@ private StreamingSubscriberConnection(Builder builder) { .setMaxDurationPerAckExtensionDefaultUsed(builder.maxDurationPerAckExtensionDefaultUsed) .setAckLatencyDistribution(builder.ackLatencyDistribution) .setFlowController(builder.flowController) - .setEnableExactlyOnceDelivery(builder.exactlyOnceDeliveryEnabled) .setExecutor(builder.executor) .setSystemExecutor(builder.systemExecutor) .setApiClock(builder.clock) @@ -159,7 +152,7 @@ public StreamingSubscriberConnection setExactlyOnceDeliveryEnabled( return this; } - public boolean isExactlyOnceDeliveryEnabled() { + public boolean getExactlyOnceDeliveryEnabled() { return exactlyOnceDeliveryEnabled.get(); } @@ -221,7 +214,7 @@ public void onResponse(StreamingPullResponse response) { response.getSubscriptionProperties().getExactlyOnceDeliveryEnabled(); setExactlyOnceDeliveryEnabled(exactlyOnceDeliveryEnabledResponse); - messageDispatcher.setEnableExactlyOnceDelivery(exactlyOnceDeliveryEnabledResponse); + messageDispatcher.setExactlyOnceDeliveryEnabled(exactlyOnceDeliveryEnabledResponse); messageDispatcher.processReceivedMessages(response.getReceivedMessagesList()); // Only request more if we're not shutdown. @@ -370,7 +363,7 @@ public void setResponseOutstandingMessages(AckResponse ackResponse) { private void setFailureFutureOutstandingMessages(Throwable t) { AckResponse ackResponse; - if (isExactlyOnceDeliveryEnabled()) { + if (getExactlyOnceDeliveryEnabled()) { if (!(t instanceof ApiException)) { ackResponse = AckResponse.OTHER; } @@ -518,7 +511,7 @@ public void onFailure(Throwable t) { // Remove from our pending operations ackOperationsWaiter.incrementPendingCount(-1); - if (!isExactlyOnceDeliveryEnabled()) { + if (!getExactlyOnceDeliveryEnabled()) { Level level = isAlive() ? Level.WARNING : Level.FINER; logger.log(level, "failed to send operations", t); return; @@ -609,7 +602,6 @@ public static final class Builder { private int channelAffinity; private FlowController flowController; private FlowControlSettings flowControlSettings; - private boolean exactlyOnceDeliveryEnabled; private boolean useLegacyFlowControl; private ScheduledExecutorService executor; private ScheduledExecutorService systemExecutor; @@ -690,11 +682,6 @@ public Builder setUseLegacyFlowControl(boolean useLegacyFlowControl) { return this; } - public Builder setExactlyOnceDeliveryEnabled(boolean exactlyOnceDeliveryEnabled) { - this.exactlyOnceDeliveryEnabled = exactlyOnceDeliveryEnabled; - return this; - } - public Builder setExecutor(ScheduledExecutorService executor) { this.executor = executor; return this; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 4ee66b03194c..1bd74f3bb489 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -134,7 +134,6 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private SubscriberStub subscriberStub; private final SubscriberStubSettings subStubSettings; private final FlowController flowController; - private boolean exactlyOnceDeliveryEnabled = false; private final int numPullers; private final MessageReceiver receiver; @@ -166,8 +165,6 @@ private Subscriber(Builder builder) { .setLimitExceededBehavior(LimitExceededBehavior.Block) .build()); - exactlyOnceDeliveryEnabled = builder.exactlyOnceDeliveryEnabled; - this.numPullers = builder.parallelPullCount; executorProvider = builder.executorProvider; @@ -385,7 +382,6 @@ private void startStreamingConnections() { .setExecutor(executor) .setSystemExecutor(alarmsExecutor) .setClock(clock) - .setExactlyOnceDeliveryEnabled(exactlyOnceDeliveryEnabled) .build(); streamingSubscriberConnections.add(streamingSubscriberConnection); @@ -479,8 +475,6 @@ public static final class Builder { private boolean useLegacyFlowControl = false; private FlowControlSettings flowControlSettings = DEFAULT_FLOW_CONTROL_SETTINGS; - private boolean exactlyOnceDeliveryEnabled = false; - private ExecutorProvider executorProvider = DEFAULT_EXECUTOR_PROVIDER; private ExecutorProvider systemExecutorProvider = null; private TransportChannelProvider channelProvider = @@ -573,22 +567,6 @@ public Builder setUseLegacyFlowControl(boolean value) { return this; } - /** - * Enables/Disabled ExactlyOnceDelivery - * - *

    Will update the minDurationPerAckExtension if a user-provided value is not set - */ - public Builder setExactlyOnceDeliveryEnabled(boolean exactlyOnceDeliveryEnabled) { - // If exactlyOnceDeliveryIsEnabled we want to update the default minAckDeadlineExtension if - // applicable - if (exactlyOnceDeliveryEnabled && this.minDurationPerAckExtensionDefaultUsed) { - this.minDurationPerAckExtension = DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY; - } - - this.exactlyOnceDeliveryEnabled = exactlyOnceDeliveryEnabled; - return this; - } - /** * Set the maximum period a message ack deadline will be extended. Defaults to one hour. * diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java index 7fcee6b2efc1..c72d52d3d99e 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java @@ -209,7 +209,6 @@ public void receiveMessage( receiveQueue.offer(MessageAndConsumer.create(message, consumer)); } }) - .setExactlyOnceDeliveryEnabled(true) .build(); subscriber.addListener( new Subscriber.Listener() { @@ -282,7 +281,6 @@ public void receiveMessage( SubscriptionAdminSettings.defaultGrpcTransportProviderBuilder() .setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE) .build()) - .setExactlyOnceDeliveryEnabled(false) .build(); subscriber.addListener( new Subscriber.Listener() { @@ -360,7 +358,6 @@ public void receiveMessage( SubscriptionAdminSettings.defaultGrpcTransportProviderBuilder() .setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE) .build()) - .setExactlyOnceDeliveryEnabled(false) .build(); subscriber.addListener( new Subscriber.Listener() { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 3ff13acfc454..0b48e0991729 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -337,8 +337,7 @@ public void testExtension_GiveUp() throws Exception { } @Test - public void testAckExtensionDefaultsExactlyOnceDeliveryOffThenOn() { - // EnableExactlyOnceDelivery is turned off by default + public void testAckExtensionDefaultsExactlyOnceDeliveryDisabledThenEnabled() { MessageDispatcher messageDispatcher = MessageDispatcher.newBuilder(mock(MessageReceiver.class)) .setAckLatencyDistribution(mockAckLatencyDistribution) @@ -348,13 +347,17 @@ public void testAckExtensionDefaultsExactlyOnceDeliveryOffThenOn() { .setMaxDurationPerAckExtensionDefaultUsed(true) .build(); + // ExactlyOnceDeliveryEnabled is turned off by default + // We should be using the Subscriber set hard deadlines assertMinAndMaxAckDeadlines( messageDispatcher, Math.toIntExact(Subscriber.MIN_STREAM_ACK_DEADLINE.getSeconds()), Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds())); - messageDispatcher.setEnableExactlyOnceDelivery(true); + // This would normally be set from the streaming pull response in the + // StreamingSubscriberConnection + messageDispatcher.setExactlyOnceDeliveryEnabled(true); // Should only change min deadline assertMinAndMaxAckDeadlines( @@ -365,11 +368,10 @@ public void testAckExtensionDefaultsExactlyOnceDeliveryOffThenOn() { } @Test - public void testAckExtensionDefaultsExactlyOnceDeliveryOnThenOff() { + public void testAckExtensionDefaultsExactlyOnceDeliveryEnabledThenDisabled() { MessageDispatcher messageDispatcher = MessageDispatcher.newBuilder(mock(MessageReceiver.class)) .setAckLatencyDistribution(mockAckLatencyDistribution) - .setEnableExactlyOnceDelivery(true) .setMinDurationPerAckExtension( Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY) .setMinDurationPerAckExtensionDefaultUsed(true) @@ -377,13 +379,19 @@ public void testAckExtensionDefaultsExactlyOnceDeliveryOnThenOff() { .setMaxDurationPerAckExtensionDefaultUsed(true) .build(); + // This would normally be set from the streaming pull response in the + // StreamingSubscriberConnection + messageDispatcher.setExactlyOnceDeliveryEnabled(true); + assertMinAndMaxAckDeadlines( messageDispatcher, Math.toIntExact( Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY.getSeconds()), Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds())); - messageDispatcher.setEnableExactlyOnceDelivery(false); + // This would normally be set from the streaming pull response in the + // StreamingSubscriberConnection + messageDispatcher.setExactlyOnceDeliveryEnabled(false); // Should change min deadline assertMinAndMaxAckDeadlines( @@ -393,7 +401,7 @@ public void testAckExtensionDefaultsExactlyOnceDeliveryOnThenOff() { } @Test - public void testAckExtensionCustomMinExactlyOnceDeliveryOffThenOn() { + public void testAckExtensionCustomMinExactlyOnceDeliveryDisabledThenEnabled() { int customMinSeconds = 30; MessageDispatcher messageDispatcher = MessageDispatcher.newBuilder(mock(MessageReceiver.class)) @@ -404,12 +412,15 @@ public void testAckExtensionCustomMinExactlyOnceDeliveryOffThenOn() { .setMaxDurationPerAckExtensionDefaultUsed(true) .build(); + // ExactlyOnceDeliveryEnabled is turned off by default assertMinAndMaxAckDeadlines( messageDispatcher, customMinSeconds, Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds())); - messageDispatcher.setEnableExactlyOnceDelivery(true); + // This would normally be set from the streaming pull response in the + // StreamingSubscriberConnection + messageDispatcher.setExactlyOnceDeliveryEnabled(true); // no changes should occur assertMinAndMaxAckDeadlines( @@ -419,7 +430,7 @@ public void testAckExtensionCustomMinExactlyOnceDeliveryOffThenOn() { } @Test - public void testAckExtensionCustomMaxExactlyOnceDeliveryOffThenOn() { + public void testAckExtensionCustomMaxExactlyOnceDeliveryDisabledThenEnabled() { int customMaxSeconds = 30; MessageDispatcher messageDispatcher = MessageDispatcher.newBuilder(mock(MessageReceiver.class)) @@ -430,12 +441,15 @@ public void testAckExtensionCustomMaxExactlyOnceDeliveryOffThenOn() { .setMaxDurationPerAckExtensionDefaultUsed(false) .build(); + // ExactlyOnceDeliveryEnabled is turned off by default assertMinAndMaxAckDeadlines( messageDispatcher, Math.toIntExact(Subscriber.MIN_STREAM_ACK_DEADLINE.getSeconds()), customMaxSeconds); - messageDispatcher.setEnableExactlyOnceDelivery(true); + // This would normally be set from the streaming pull response in the + // StreamingSubscriberConnection + messageDispatcher.setExactlyOnceDeliveryEnabled(true); // Because the customMaxSeconds is above the // DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY, we should use the customMaxSeconds diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 6ad95100175f..d8e1878dd08f 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -452,13 +452,18 @@ public void testSetFailureResponseOutstandingMessages() { private StreamingSubscriberConnection getStreamingSubscriberConnection( boolean exactlyOnceDeliveryEnabled) { - return getStreamingSubscriberReceiverFromBuilder( - StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class)), - exactlyOnceDeliveryEnabled); + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnectionFromBuilder( + StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class))); + + // This would normally be set from the streaming pull response + streamingSubscriberConnection.setExactlyOnceDeliveryEnabled(exactlyOnceDeliveryEnabled); + + return streamingSubscriberConnection; } - private StreamingSubscriberConnection getStreamingSubscriberReceiverFromBuilder( - StreamingSubscriberConnection.Builder builder, boolean exactlyOnceDeliveryEnabled) { + private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilder( + StreamingSubscriberConnection.Builder builder) { return builder .setSubscription(MOCK_SUBSCRIPTION_NAME) .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT) @@ -474,7 +479,6 @@ private StreamingSubscriberConnection getStreamingSubscriberReceiverFromBuilder( .setMinDurationPerAckExtensionDefaultUsed(true) .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) .setMaxDurationPerAckExtensionDefaultUsed(true) - .setExactlyOnceDeliveryEnabled(exactlyOnceDeliveryEnabled) .build(); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index ab7021bba8d8..612c244fe49c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -287,16 +287,6 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { fakeSubscriberServiceImpl.getLastSeenRequest().getStreamAckDeadlineSeconds()); subscriber.stopAsync().awaitTerminated(); - - // maxDurationPerAckExtension is unset with exactly once enabled - subscriber = - startSubscriber(getTestSubscriberBuilder(testReceiver).setExactlyOnceDeliveryEnabled(true)); - assertEquals( - expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); - assertEquals( - Math.toIntExact(Subscriber.STREAM_ACK_DEADLINE_EXACTLY_ONCE_DELIVERY_DEFAULT.getSeconds()), - fakeSubscriberServiceImpl.getLastSeenRequest().getStreamAckDeadlineSeconds()); - subscriber.stopAsync().awaitTerminated(); } @Test @@ -358,7 +348,6 @@ private Builder getTestSubscriberBuilder( .setCredentialsProvider(NoCredentialsProvider.create()) .setClock(fakeExecutor.getClock()) .setParallelPullCount(1) - .setExactlyOnceDeliveryEnabled(true) .setFlowControlSettings( FlowControlSettings.newBuilder().setMaxOutstandingElementCount(1000L).build()); } From afb7ff04181409080f4a731ae30f71c7d8f58882 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Mar 2022 20:30:36 +0100 Subject: [PATCH 0981/2363] deps: update dependency com.google.cloud:native-image-support to v0.12.8 (#1051) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:native-image-support](https://togithub.com/googleapis/java-core) | `0.12.7` -> `0.12.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.8/compatibility-slim/0.12.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.8/confidence-slim/0.12.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 774dc4a83efb..3c28907e8879 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud native-image-support - 0.12.7 + 0.12.8 org.junit.vintage From e14a003c6e3a942a0e1e8713b8e6041f4471a814 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Mar 2022 21:36:36 +0100 Subject: [PATCH 0982/2363] deps: update dependency com.google.cloud:native-image-support to v0.12.9 (#1053) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 3c28907e8879..9e5929d777b0 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud native-image-support - 0.12.8 + 0.12.9 org.junit.vintage From 23ddb28705eef28dd9e0321cd511377c5a413fbc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Mar 2022 18:11:45 +0100 Subject: [PATCH 0983/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.5.9 (#1054) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7125a24adc6a..8724d7e43d0e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.5.8 + 2.5.9 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 164a242318fb..c8def65fd8c9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.5.8 + 2.5.9 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 8eb6e56c039f..1841793e552d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.5.8 + 2.5.9 tests From e5332f95ecc4300328fc8531ad9209c74636b660 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 17:49:10 +0100 Subject: [PATCH 0984/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v25 (#1059) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v25 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8f60b60bb5c7..664dc9b7badd 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:24.4.0') +implementation platform('com.google.cloud:libraries-bom:25.0.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 9e5929d777b0..9fae435ddaa3 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 24.3.0 + 25.0.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1841793e552d..303ec3d8a5cc 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import From 297be50d6ece9faab9e76f6b4eca2b584dda0cad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 17:49:26 +0100 Subject: [PATCH 0985/2363] build(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.10.1 (#1056) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.10.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b8f6268bf75b..b641a685637b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -164,7 +164,7 @@ maven-compiler-plugin - 3.10.0 + 3.10.1 1.8 1.8 From fd9246b552585f398002b16928c3e5bbc7422df5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 18:15:11 +0100 Subject: [PATCH 0986/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.5.10 (#1057) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8724d7e43d0e..6203e22f9d67 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.5.9 + 2.5.10 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c8def65fd8c9..d34849c6ee0a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.5.9 + 2.5.10 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 303ec3d8a5cc..1bbe632199f8 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.5.9 + 2.5.10 tests From e88d59284fc9b6ad387a4475953e5cadf391d97b Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Tue, 15 Mar 2022 12:43:59 -0400 Subject: [PATCH 0987/2363] samples: add exactly once subscribe sample (#1029) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * created exactly once subscription example * updated example * updated sample * removed tag * cleanup + add tests * checkstyle * formatting * updated some comments, added try-catch * added switch statement to handle ackResponses + minDuration option * added (redundant) default for enum switch statement * copy-paste issue * changed wording in sample * updated wording * code review changes * update comments * Update samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java Co-authored-by: Tianzi Cai * update comments * add a test subscription with exactly once delivery * add imports * remove topicId * updated samples tests * removed extra space * handling null message * combined a try-catch * added new topic in sample test for exactly once delivery * added cleanup * fixed formatting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Tianzi Cai Co-authored-by: Owl Bot --- java-pubsub/README.md | 1 + ...xactlyOnceConsumerWithResponseExample.java | 110 ++++++++++++++++++ .../src/test/java/pubsub/SubscriberIT.java | 40 ++++++- 3 files changed, 149 insertions(+), 2 deletions(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 664dc9b7badd..807cbdc75e95 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -285,6 +285,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Subscribe With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | | Subscribe With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | | Subscribe With Error Listener Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | +| Subscribe With Exactly Once Consumer With Response Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java) | | Subscribe With Flow Control Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | | Subscribe With Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | | Test Subscription Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java new file mode 100644 index 000000000000..8c85364c058c --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java @@ -0,0 +1,110 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscriber_exactly_once] + +import com.google.cloud.pubsub.v1.AckReplyConsumerWithResponse; +import com.google.cloud.pubsub.v1.AckResponse; +import com.google.cloud.pubsub.v1.MessageReceiverWithAckResponse; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class SubscribeWithExactlyOnceConsumerWithResponseExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + subscribeWithExactlyOnceConsumerWithResponseExample(projectId, subscriptionId); + } + + public static void subscribeWithExactlyOnceConsumerWithResponseExample( + String projectId, String subscriptionId) { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver using `AckReplyConsumerWithResponse` + // instead of `AckReplyConsumer` to get a future that tracks the result of the ack call. + // When exactly once delivery is enabled on the subscription, the message is guaranteed + // to not be delivered again if the ack future succeeds. + MessageReceiverWithAckResponse receiverWithResponse = + (PubsubMessage message, AckReplyConsumerWithResponse consumerWithResponse) -> { + try { + // Handle incoming message, then ack the message, and receive an ack response. + System.out.println("Message received: " + message.getData().toStringUtf8()); + Future ackResponseFuture = consumerWithResponse.ack(); + + // Retrieve the completed future for the ack response from the server. + AckResponse ackResponse = ackResponseFuture.get(); + + switch (ackResponse) { + case SUCCESSFUL: + // Success code means that this MessageID will not be delivered again. + System.out.println("Message successfully acked: " + message.getMessageId()); + break; + case INVALID: + System.out.println( + "Message failed to ack with a response of Invalid. Id: " + + message.getMessageId()); + break; + case PERMISSION_DENIED: + System.out.println( + "Message failed to ack with a response of Permission Denied. Id: " + + message.getMessageId()); + break; + case FAILED_PRECONDITION: + System.out.println( + "Message failed to ack with a response of Failed Precondition. Id: " + + message.getMessageId()); + break; + case OTHER: + System.out.println( + "Message failed to ack with a response of Other. Id: " + + message.getMessageId()); + break; + default: + break; + } + } catch (InterruptedException | ExecutionException e) { + System.out.println( + "MessageId: " + message.getMessageId() + " failed when retrieving future"); + } catch (Throwable t) { + System.out.println("Throwable caught" + t.getMessage()); + } + }; + + Subscriber subscriber = null; + try { + subscriber = Subscriber.newBuilder(subscriptionName, receiverWithResponse).build(); + // Start the subscriber. + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + // Allow the subscriber to run for 30s unless an unrecoverable error occurs. + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + // Shut down the subscriber after 30s. Stop receiving messages. + subscriber.stopAsync(); + } + } +} +// [END pubsub_subscriber_exactly_once] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java index d0946202ca4a..ee4e03068727 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -52,10 +52,16 @@ public class SubscriberIT { private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String _suffix = UUID.randomUUID().toString(); private static final String topicId = "subscriber-test-topic-" + _suffix; + private static final String topicIdEod = "subscriber-test-topic-eod" + _suffix; private static final String subscriptionId = "subscriber-test-subscription-" + _suffix; + // For a subscription with exactly once delivery enabled. + private static final String subscriptionEodId = "subscriber-test-subscription-eod" + _suffix; private static final TopicName topicName = TopicName.of(projectId, topicId); + private static final TopicName topicNameEod = TopicName.of(projectId, topicIdEod); private static final ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subscriptionId); + private static final ProjectSubscriptionName subscriptionEodName = + ProjectSubscriptionName.of(projectId, subscriptionEodId); private static void requireEnvVar(String varName) { assertNotNull( @@ -63,8 +69,13 @@ private static void requireEnvVar(String varName) { System.getenv(varName)); } + private static List publishSomeMessages(Integer numOfMessages) throws Exception { + return publishSomeMessages(numOfMessages, topicId); + } + // Helper function to publish some messages. - private static void publishSomeMessages(Integer numOfMessages) throws Exception { + private static List publishSomeMessages(Integer numOfMessages, String topicId) + throws Exception { ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); Publisher publisher = Publisher.newBuilder(topicName).build(); List> messageIdFutures = new ArrayList<>(); @@ -78,7 +89,7 @@ private static void publishSomeMessages(Integer numOfMessages) throws Exception ApiFuture messageIdFuture = publisher.publish(pubsubMessage); messageIdFutures.add(messageIdFuture); } - ApiFutures.allAsList(messageIdFutures).get(); + return ApiFutures.allAsList(messageIdFutures).get(); } // Helper function to retry synchronous pull attempts until all outstanding messages are received. @@ -123,6 +134,9 @@ public void setUp() throws Exception { try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { Topic topic = Topic.newBuilder().setName(topicName.toString()).build(); topicAdminClient.createTopic(topic); + + Topic topicEod = Topic.newBuilder().setName(topicNameEod.toString()).build(); + topicAdminClient.createTopic(topicEod); } try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { @@ -132,6 +146,15 @@ public void setUp() throws Exception { .setTopic(topicName.toString()) .build(); subscriptionAdminClient.createSubscription(subscription); + + Subscription subscriptionEod = + Subscription.newBuilder() + .setName(subscriptionEodName.toString()) + .setTopic(topicNameEod.toString()) + // Enable exactly once delivery in the subscription. + .setEnableExactlyOnceDelivery(true) + .build(); + subscriptionAdminClient.createSubscription(subscriptionEod); } } @@ -139,10 +162,12 @@ public void setUp() throws Exception { public void tearDown() throws Exception { try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { subscriptionAdminClient.deleteSubscription(subscriptionName.toString()); + subscriptionAdminClient.deleteSubscription(subscriptionEodName.toString()); } try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { topicAdminClient.deleteTopic(topicName.toString()); + topicAdminClient.deleteTopic(topicNameEod.toString()); } System.setOut(null); @@ -204,4 +229,15 @@ public void testSubscriber() throws Exception { SubscribeSyncWithLeaseExample.subscribeSyncWithLeaseExample( projectId, subscriptionId, 10)); } + + @Test + public void testSubscriberExactlyOnceDelivery() throws Exception { + List messageIds = publishSomeMessages(10, topicIdEod); + bout.reset(); + SubscribeWithExactlyOnceConsumerWithResponseExample + .subscribeWithExactlyOnceConsumerWithResponseExample(projectId, subscriptionEodId); + for (String messageId : messageIds) { + assertThat(bout.toString()).contains("Message successfully acked: " + messageId); + } + } } From bad240a94ed2f48a9e602467a13a01fa1011b608 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Mar 2022 18:50:55 +0100 Subject: [PATCH 0988/2363] deps: update dependency com.google.cloud:native-image-support to v0.12.10 (#1058) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 9fae435ddaa3..1a562dcd1173 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud native-image-support - 0.12.9 + 0.12.10 org.junit.vintage From 3c5b2ef056f3554473b7a6ebc6a9787ded4d6535 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Fri, 18 Mar 2022 14:48:04 -0400 Subject: [PATCH 0989/2363] docs(sample): use Java 8 for native image sample (#1060) --- java-pubsub/samples/native-image-sample/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 1a562dcd1173..aa2384f8d36c 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -20,8 +20,8 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> - 11 - 11 + 1.8 + 1.8 UTF-8 From 111dc0018caa27e29bff40634214000bc03d762c Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Tue, 22 Mar 2022 10:23:41 -0400 Subject: [PATCH 0990/2363] fix: added a maximum metadata size when creating the subscriber (#1061) --- .../src/main/java/com/google/cloud/pubsub/v1/Subscriber.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 1bd74f3bb489..1d1017dd4837 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -93,6 +93,9 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private static final int MAX_INBOUND_MESSAGE_SIZE = 20 * 1024 * 1024; // 20MB API maximum message size. + private static final int MAX_INBOUND_METADATA_SIZE = + 4 * 1024 * 1024; // 4MB API maximum metadata size + @InternalApi static final Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); @InternalApi @@ -480,6 +483,7 @@ public static final class Builder { private TransportChannelProvider channelProvider = SubscriptionAdminSettings.defaultGrpcTransportProviderBuilder() .setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE) + .setMaxInboundMetadataSize(MAX_INBOUND_METADATA_SIZE) .setKeepAliveTime(Duration.ofMinutes(5)) .build(); private HeaderProvider headerProvider = new NoHeaderProvider(); From ebaf30997c8c3e96f68a8685f1bff7e1317c3d2e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 22 Mar 2022 11:32:15 -0400 Subject: [PATCH 0991/2363] chore(main): release 1.116.1 (#1041) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 27 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 +++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 8 files changed, 45 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 5a6b4468ab1e..2318807f465c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +### [1.116.1](https://github.com/googleapis/java-pubsub/compare/v1.116.0...v1.116.1) (2022-03-22) + + +### Bug Fixes + +* added a maximum metadata size when creating the subscriber ([#1061](https://github.com/googleapis/java-pubsub/issues/1061)) ([3a8c83b](https://github.com/googleapis/java-pubsub/commit/3a8c83b973a1dfbae2ca037125574d74034218ce)) +* Removed EnableExactlyOnceDelivery from Builders ([#1052](https://github.com/googleapis/java-pubsub/issues/1052)) ([9add538](https://github.com/googleapis/java-pubsub/commit/9add53894981d862ac1348d0b641e472b3b3aa79)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.5.10 ([#1057](https://github.com/googleapis/java-pubsub/issues/1057)) ([0b7d19f](https://github.com/googleapis/java-pubsub/commit/0b7d19fe39326c36152267e4d2a13a2b51530ac2)) +* update dependency com.google.cloud:google-cloud-core to v2.5.8 ([#1050](https://github.com/googleapis/java-pubsub/issues/1050)) ([c7551d6](https://github.com/googleapis/java-pubsub/commit/c7551d621343eac4476a16579763e3aab7f71ea9)) +* update dependency com.google.cloud:google-cloud-core to v2.5.9 ([#1054](https://github.com/googleapis/java-pubsub/issues/1054)) ([5b3227f](https://github.com/googleapis/java-pubsub/commit/5b3227f4013a5121a3db34702f90be5a9ba41748)) +* update dependency com.google.cloud:native-image-support to v0.12.10 ([#1058](https://github.com/googleapis/java-pubsub/issues/1058)) ([af2b364](https://github.com/googleapis/java-pubsub/commit/af2b3640eb22e8e78f5beea07a73e2b3127cce71)) +* update dependency com.google.cloud:native-image-support to v0.12.7 ([#1042](https://github.com/googleapis/java-pubsub/issues/1042)) ([fd52aa8](https://github.com/googleapis/java-pubsub/commit/fd52aa8ffaa4d7cb8e0ad19bb6993b5616eb81df)) +* update dependency com.google.cloud:native-image-support to v0.12.8 ([#1051](https://github.com/googleapis/java-pubsub/issues/1051)) ([da2d3fa](https://github.com/googleapis/java-pubsub/commit/da2d3fa91fe4f07455fbe0aa3ccac15e456666c7)) +* update dependency com.google.cloud:native-image-support to v0.12.9 ([#1053](https://github.com/googleapis/java-pubsub/issues/1053)) ([6e97d52](https://github.com/googleapis/java-pubsub/commit/6e97d5222994dc567bc24ab3457f3431ed000134)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 ([#1043](https://github.com/googleapis/java-pubsub/issues/1043)) ([5884bdf](https://github.com/googleapis/java-pubsub/commit/5884bdfafc5ee621935b620e763ca6c0adf67ff7)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 ([#1044](https://github.com/googleapis/java-pubsub/issues/1044)) ([158e7f8](https://github.com/googleapis/java-pubsub/commit/158e7f884660a312b7168cecfa85cf594071a7be)) + + +### Documentation + +* **sample:** Add sample for Native Image support in Pub/Sub ([#1026](https://github.com/googleapis/java-pubsub/issues/1026)) ([a4fa69b](https://github.com/googleapis/java-pubsub/commit/a4fa69b99f34304f7ee7a56fb3c633f018905f09)) +* **sample:** use Java 8 for native image sample ([#1060](https://github.com/googleapis/java-pubsub/issues/1060)) ([2d5c010](https://github.com/googleapis/java-pubsub/commit/2d5c0109fe797698749d2c198cbb5a8a1a9d11dc)) + ## [1.116.0](https://github.com/googleapis/java-pubsub/compare/v1.115.5...v1.116.0) (2022-03-04) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0810409ba705..e99bae697df2 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.116.1-SNAPSHOT + 1.116.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.116.1-SNAPSHOT + 1.116.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.1-SNAPSHOT + 1.98.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.1-SNAPSHOT + 1.98.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b641a685637b..3a57bac0f190 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.116.1-SNAPSHOT + 1.116.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.116.1-SNAPSHOT + 1.116.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f04935a8bee3..41d92c5409d5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.1-SNAPSHOT + 1.98.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.1-SNAPSHOT + 1.116.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 41eb4d685375..03500987395c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.116.1-SNAPSHOT + 1.116.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.1-SNAPSHOT + 1.98.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.1-SNAPSHOT + 1.98.1 com.google.cloud google-cloud-pubsub - 1.116.1-SNAPSHOT + 1.116.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2ec5b2342543..83c5bd205956 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.1-SNAPSHOT + 1.98.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.1-SNAPSHOT + 1.116.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d34849c6ee0a..61bec0d55bf9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.116.1-SNAPSHOT + 1.116.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7603c3542a9b..22a7f0e13003 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.116.0:1.116.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.98.0:1.98.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.98.0:1.98.1-SNAPSHOT +google-cloud-pubsub:1.116.1:1.116.1 +grpc-google-cloud-pubsub-v1:1.98.1:1.98.1 +proto-google-cloud-pubsub-v1:1.98.1:1.98.1 From 861bf527dc65aa155617250205c1319be366a54f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 22 Mar 2022 15:42:14 +0000 Subject: [PATCH 0992/2363] chore(main): release 1.116.2-SNAPSHOT (#1062) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e99bae697df2..922a330d9185 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.116.1 + 1.116.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.116.1 + 1.116.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.1 + 1.98.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.1 + 1.98.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3a57bac0f190..83a7fcd18b97 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.116.1 + 1.116.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.116.1 + 1.116.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 41d92c5409d5..88b918c047f7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.1 + 1.98.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.1 + 1.116.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 03500987395c..e74dde7602fb 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.116.1 + 1.116.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.1 + 1.98.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.1 + 1.98.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.116.1 + 1.116.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 83c5bd205956..50d22fcf9e9d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.1 + 1.98.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.1 + 1.116.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 61bec0d55bf9..428f9f7235af 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.116.1 + 1.116.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 22a7f0e13003..8358abc313ea 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.116.1:1.116.1 -grpc-google-cloud-pubsub-v1:1.98.1:1.98.1 -proto-google-cloud-pubsub-v1:1.98.1:1.98.1 +google-cloud-pubsub:1.116.1:1.116.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.98.1:1.98.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.98.1:1.98.2-SNAPSHOT From 73f6088da6d370d7f0b326f95f7c5dfbfbff3c30 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Mar 2022 16:02:38 +0100 Subject: [PATCH 0993/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.116.1 (#1063) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.116.0` -> `1.116.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.1/compatibility-slim/1.116.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.1/confidence-slim/1.116.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes

    googleapis/java-pubsub ### [`v1.116.1`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​11161-httpsgithubcomgoogleapisjava-pubsubcomparev11160v11161-2022-03-22) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.116.0...v1.116.1)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 807cbdc75e95..c4285e86afc3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.116.0 + 1.116.1 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.116.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.116.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.116.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.116.1" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6203e22f9d67..feca9bfa39db 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.116.0 + 1.116.1 From 54de77086a30c35eebd34c3b5c87942123eeeaa7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 24 Mar 2022 16:12:32 +0100 Subject: [PATCH 0994/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 (#1064) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.10` -> `0.9.11` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.11/compatibility-slim/0.9.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.11/confidence-slim/0.9.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    graalvm/native-build-tools ### [`v0.9.11`](https://togithub.com/graalvm/native-build-tools/releases/0.9.11) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.10...0.9.11) ##### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Add issue templates by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/216](https://togithub.com/graalvm/native-build-tools/pull/216) - Fix [@​arg](https://togithub.com/arg) file not being used for tests in Maven by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/212](https://togithub.com/graalvm/native-build-tools/pull/212) - Make it possible to use environment variables in native tests by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/217](https://togithub.com/graalvm/native-build-tools/pull/217) - Fix incorrect declaration of output directory by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/219](https://togithub.com/graalvm/native-build-tools/pull/219) - Refactor build by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/220](https://togithub.com/graalvm/native-build-tools/pull/220) - Integrate native configuration repository with Gradle by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/204](https://togithub.com/graalvm/native-build-tools/pull/204) - Rework argfile generation by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/223](https://togithub.com/graalvm/native-build-tools/pull/223) - Rename `metadataRepository` and document feature by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/225](https://togithub.com/graalvm/native-build-tools/pull/225) - Support applications with custom packaging types by [@​alvarosanchez](https://togithub.com/alvarosanchez) in [https://github.com/graalvm/native-build-tools/pull/226](https://togithub.com/graalvm/native-build-tools/pull/226) ##### New Contributors - [@​alvarosanchez](https://togithub.com/alvarosanchez) made their first contribution in [https://github.com/graalvm/native-build-tools/pull/226](https://togithub.com/graalvm/native-build-tools/pull/226) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.10...0.9.11
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index aa2384f8d36c..264e8423da55 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -118,7 +118,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.10 + 0.9.11 test From 9d72810119bd570d9b09b331cff01a9614136dd7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 24 Mar 2022 16:14:12 +0100 Subject: [PATCH 0995/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 (#1065) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.10` -> `0.9.11` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.11/compatibility-slim/0.9.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.11/confidence-slim/0.9.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    graalvm/native-build-tools ### [`v0.9.11`](https://togithub.com/graalvm/native-build-tools/releases/0.9.11) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.10...0.9.11) ##### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Add issue templates by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/216](https://togithub.com/graalvm/native-build-tools/pull/216) - Fix [@​arg](https://togithub.com/arg) file not being used for tests in Maven by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/212](https://togithub.com/graalvm/native-build-tools/pull/212) - Make it possible to use environment variables in native tests by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/217](https://togithub.com/graalvm/native-build-tools/pull/217) - Fix incorrect declaration of output directory by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/219](https://togithub.com/graalvm/native-build-tools/pull/219) - Refactor build by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/220](https://togithub.com/graalvm/native-build-tools/pull/220) - Integrate native configuration repository with Gradle by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/204](https://togithub.com/graalvm/native-build-tools/pull/204) - Rework argfile generation by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/223](https://togithub.com/graalvm/native-build-tools/pull/223) - Rename `metadataRepository` and document feature by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/225](https://togithub.com/graalvm/native-build-tools/pull/225) - Support applications with custom packaging types by [@​alvarosanchez](https://togithub.com/alvarosanchez) in [https://github.com/graalvm/native-build-tools/pull/226](https://togithub.com/graalvm/native-build-tools/pull/226) ##### New Contributors - [@​alvarosanchez](https://togithub.com/alvarosanchez) made their first contribution in [https://github.com/graalvm/native-build-tools/pull/226](https://togithub.com/graalvm/native-build-tools/pull/226) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.10...0.9.11
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 264e8423da55..d770e2a287ae 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -139,7 +139,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.10 + 0.9.11 true pubsub.NativeImagePubSubSample From b3a461e206b6671ad12647bd3678cc8b79064d63 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 24 Mar 2022 15:28:12 +0000 Subject: [PATCH 0996/2363] chore(main): release 1.116.2 (#1066) :robot: I have created a release *beep* *boop* --- ### [1.116.2](https://github.com/googleapis/java-pubsub/compare/v1.116.1...v1.116.2) (2022-03-24) ### Dependencies * update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#1064](https://github.com/googleapis/java-pubsub/issues/1064)) ([54de770](https://github.com/googleapis/java-pubsub/commit/54de77086a30c35eebd34c3b5c87942123eeeaa7)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#1065](https://github.com/googleapis/java-pubsub/issues/1065)) ([9d72810](https://github.com/googleapis/java-pubsub/commit/9d72810119bd570d9b09b331cff01a9614136dd7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 2318807f465c..0f99debf4f37 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [1.116.2](https://github.com/googleapis/java-pubsub/compare/v1.116.1...v1.116.2) (2022-03-24) + + +### Dependencies + +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#1064](https://github.com/googleapis/java-pubsub/issues/1064)) ([3ebcc5e](https://github.com/googleapis/java-pubsub/commit/3ebcc5e262bf420fd2ba36f26d8b6350b56f989d)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#1065](https://github.com/googleapis/java-pubsub/issues/1065)) ([d1ce9c6](https://github.com/googleapis/java-pubsub/commit/d1ce9c6cc9fc9c8030c117bff1b0d2d8e317107c)) + ### [1.116.1](https://github.com/googleapis/java-pubsub/compare/v1.116.0...v1.116.1) (2022-03-22) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 922a330d9185..de39225555d0 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.116.2-SNAPSHOT + 1.116.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.116.2-SNAPSHOT + 1.116.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.2-SNAPSHOT + 1.98.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.2-SNAPSHOT + 1.98.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 83a7fcd18b97..1a6fe6b33b82 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.116.2-SNAPSHOT + 1.116.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.116.2-SNAPSHOT + 1.116.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 88b918c047f7..e3eef1561e12 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.2-SNAPSHOT + 1.98.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.2-SNAPSHOT + 1.116.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e74dde7602fb..f0add1b9ce68 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.116.2-SNAPSHOT + 1.116.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.2-SNAPSHOT + 1.98.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.2-SNAPSHOT + 1.98.2 com.google.cloud google-cloud-pubsub - 1.116.2-SNAPSHOT + 1.116.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 50d22fcf9e9d..976f23cc9fdb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.2-SNAPSHOT + 1.98.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.2-SNAPSHOT + 1.116.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 428f9f7235af..4f3a49296eb3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.116.2-SNAPSHOT + 1.116.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8358abc313ea..0d730c92ae1c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.116.1:1.116.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.98.1:1.98.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.98.1:1.98.2-SNAPSHOT +google-cloud-pubsub:1.116.2:1.116.2 +grpc-google-cloud-pubsub-v1:1.98.2:1.98.2 +proto-google-cloud-pubsub-v1:1.98.2:1.98.2 From 257d7a333708423c4456302a24656aad34b32768 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 24 Mar 2022 16:08:39 +0000 Subject: [PATCH 0997/2363] chore(main): release 1.116.3-SNAPSHOT (#1067) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index de39225555d0..484b9b915fdc 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.116.2 + 1.116.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.116.2 + 1.116.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.2 + 1.98.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.2 + 1.98.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1a6fe6b33b82..cb47d7cf0c82 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.116.2 + 1.116.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.116.2 + 1.116.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e3eef1561e12..b66c54b6a04f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.2 + 1.98.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.2 + 1.116.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f0add1b9ce68..c11b5247b295 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.116.2 + 1.116.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.2 + 1.98.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.2 + 1.98.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.116.2 + 1.116.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 976f23cc9fdb..47adabbd0803 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.2 + 1.98.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.2 + 1.116.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4f3a49296eb3..148061d6ac78 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.116.2 + 1.116.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0d730c92ae1c..3a5882e10fde 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.116.2:1.116.2 -grpc-google-cloud-pubsub-v1:1.98.2:1.98.2 -proto-google-cloud-pubsub-v1:1.98.2:1.98.2 +google-cloud-pubsub:1.116.2:1.116.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.98.2:1.98.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.98.2:1.98.3-SNAPSHOT From 08d10cf1e792ad8334f830a79b6d1eb4cb5c23d4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 29 Mar 2022 19:50:13 +0200 Subject: [PATCH 0998/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.2 (#1069) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.0` -> `1.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.3.2`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​132-httpsgithubcomgoogleapisjava-shared-configcomparev131v132-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.1...v1.3.2) ### [`v1.3.1`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​131-httpsgithubcomgoogleapisjava-shared-configcomparev130v131-2022-03-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.0...v1.3.1)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c4285e86afc3..894545f56cb7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.116.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.116.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.116.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.116.2" ``` ## Authentication diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 484b9b915fdc..8f6a5f849766 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.0 + 1.3.2 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c11b5247b295..b03aeaad5cce 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.0 + 1.3.2 From 78886e992e0f0458160319f6eb13f0b1474c63d5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 29 Mar 2022 19:54:19 +0200 Subject: [PATCH 0999/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 (#1072) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.8.0` -> `2.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/compatibility-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/confidence-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.9.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​290-httpsgithubcomgoogleapisjava-shared-dependenciescomparev280v290-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.8.0...v2.9.0) ##### Dependencies - guava 31.1 ([#​635](https://togithub.com/googleapis/java-shared-dependencies/issues/635)) ([0939b06](https://togithub.com/googleapis/java-shared-dependencies/commit/0939b063a79cd4ffafb49cf04861ce577e35efd6)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2 ([#​626](https://togithub.com/googleapis/java-shared-dependencies/issues/626)) ([6014663](https://togithub.com/googleapis/java-shared-dependencies/commit/601466339c9631faa88033d1ff1e31582fb67b7b)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2.20220324 ([#​636](https://togithub.com/googleapis/java-shared-dependencies/issues/636)) ([6c833fa](https://togithub.com/googleapis/java-shared-dependencies/commit/6c833faa7815147013999bfc2bb6935fd8fe6b34)) - update dependency com.google.api-client:google-api-client-bom to v1.33.4 ([#​642](https://togithub.com/googleapis/java-shared-dependencies/issues/642)) ([57bd912](https://togithub.com/googleapis/java-shared-dependencies/commit/57bd9124ce8981b7b3b5d0c87b7c1e5f935b7150)) - update dependency com.google.api:api-common to v2.1.5 ([#​637](https://togithub.com/googleapis/java-shared-dependencies/issues/637)) ([d3a00fa](https://togithub.com/googleapis/java-shared-dependencies/commit/d3a00fa5ce9908000122d8365fb2f2d0e388494b)) - update dependency com.google.auth:google-auth-library-bom to v1.6.0 ([#​631](https://togithub.com/googleapis/java-shared-dependencies/issues/631)) ([53dc7c2](https://togithub.com/googleapis/java-shared-dependencies/commit/53dc7c2fe255a6c7ca059dd414449bf96780f936)) - update dependency com.google.cloud:google-cloud-core-bom to v2.5.11 ([#​644](https://togithub.com/googleapis/java-shared-dependencies/issues/644)) ([4331dcc](https://togithub.com/googleapis/java-shared-dependencies/commit/4331dcc331e8377fcc57e5404321611186ca22cb)) - update dependency com.google.http-client:google-http-client-bom to v1.41.5 ([#​638](https://togithub.com/googleapis/java-shared-dependencies/issues/638)) ([e007d23](https://togithub.com/googleapis/java-shared-dependencies/commit/e007d2381bd388a1c199fc3f31d0b965f8ae592d)) - update dependency io.grpc:grpc-bom to v1.45.0 ([#​630](https://togithub.com/googleapis/java-shared-dependencies/issues/630)) ([20334e3](https://togithub.com/googleapis/java-shared-dependencies/commit/20334e30d256897cd7ef52c646e5c4549cd7ae69)) - update dependency org.threeten:threetenbp to v1.6.0 ([#​633](https://togithub.com/googleapis/java-shared-dependencies/issues/633)) ([1a2716d](https://togithub.com/googleapis/java-shared-dependencies/commit/1a2716d22e442c5cd6adea9449756b9ac3ddbf8e)) - update gax.version to v2.13.0 ([#​641](https://togithub.com/googleapis/java-shared-dependencies/issues/641)) ([b863746](https://togithub.com/googleapis/java-shared-dependencies/commit/b863746727fadd45c35198f58eb862f47fe14945)) - update google.common-protos.version to v2.8.0 ([#​639](https://togithub.com/googleapis/java-shared-dependencies/issues/639)) ([252afba](https://togithub.com/googleapis/java-shared-dependencies/commit/252afba1df8e4cfdf2574d127097b0978b7778c0)) - update google.core.version to v2.5.10 ([#​628](https://togithub.com/googleapis/java-shared-dependencies/issues/628)) ([fec6f51](https://togithub.com/googleapis/java-shared-dependencies/commit/fec6f5121384a04a389bad6f6477a9a5ce468016)) - update iam.version to v1.2.10 ([#​625](https://togithub.com/googleapis/java-shared-dependencies/issues/625)) ([0d7ca29](https://togithub.com/googleapis/java-shared-dependencies/commit/0d7ca2924bd24abe14883c173156bb4dc5fb90bf))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b03aeaad5cce..9776875692c5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.8.0 + 2.9.0 pom import From 282e191b40769a7cd6de1fdee581664a2c806ab7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 30 Mar 2022 01:36:22 +0200 Subject: [PATCH 1000/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.5.11 (#1070) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.10` -> `2.5.11` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/compatibility-slim/2.5.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.5.11/confidence-slim/2.5.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.5.11`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2511-httpsgithubcomgoogleapisjava-corecomparev2510v2511-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.10...v2.5.11)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index feca9bfa39db..aba451d7a90a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.5.10 + 2.5.11 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 148061d6ac78..097607597b32 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.5.10 + 2.5.11 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1bbe632199f8..6267e2921e46 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.5.10 + 2.5.11 tests From a959c7b38452af33fe48629ecebc818ce404bdba Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 30 Mar 2022 01:49:39 +0200 Subject: [PATCH 1001/2363] deps: update dependency com.google.cloud:native-image-support to v0.12.11 (#1071) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:native-image-support to v0.12.11 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index d770e2a287ae..4b6bb5f333ce 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud native-image-support - 0.12.10 + 0.12.11 org.junit.vintage From ad8eb6ac4519cc4c56e6a8e6429693da4fe1c3e9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 30 Mar 2022 00:00:33 +0000 Subject: [PATCH 1002/2363] chore(main): release 1.116.3 (#1073) :robot: I have created a release *beep* *boop* --- ### [1.116.3](https://github.com/googleapis/java-pubsub/compare/v1.116.2...v1.116.3) (2022-03-29) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.5.11 ([#1070](https://github.com/googleapis/java-pubsub/issues/1070)) ([282e191](https://github.com/googleapis/java-pubsub/commit/282e191b40769a7cd6de1fdee581664a2c806ab7)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#1072](https://github.com/googleapis/java-pubsub/issues/1072)) ([78886e9](https://github.com/googleapis/java-pubsub/commit/78886e992e0f0458160319f6eb13f0b1474c63d5)) * update dependency com.google.cloud:native-image-support to v0.12.11 ([#1071](https://github.com/googleapis/java-pubsub/issues/1071)) ([a959c7b](https://github.com/googleapis/java-pubsub/commit/a959c7b38452af33fe48629ecebc818ce404bdba)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 0f99debf4f37..a300abd5da75 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +### [1.116.3](https://github.com/googleapis/java-pubsub/compare/v1.116.2...v1.116.3) (2022-03-29) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.5.11 ([#1070](https://github.com/googleapis/java-pubsub/issues/1070)) ([662e2ec](https://github.com/googleapis/java-pubsub/commit/662e2ec8c4130c237bcfc61efe2e42a9912c8df0)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#1072](https://github.com/googleapis/java-pubsub/issues/1072)) ([56f9e91](https://github.com/googleapis/java-pubsub/commit/56f9e91b3accdf59b077771141fd42d09ebecdf1)) +* update dependency com.google.cloud:native-image-support to v0.12.11 ([#1071](https://github.com/googleapis/java-pubsub/issues/1071)) ([82f4501](https://github.com/googleapis/java-pubsub/commit/82f4501b84ea97b2903f51d8cae2011c1b96abf4)) + ### [1.116.2](https://github.com/googleapis/java-pubsub/compare/v1.116.1...v1.116.2) (2022-03-24) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8f6a5f849766..f335b9bb540a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.116.3-SNAPSHOT + 1.116.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.116.3-SNAPSHOT + 1.116.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.3-SNAPSHOT + 1.98.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.3-SNAPSHOT + 1.98.3
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cb47d7cf0c82..3a826fa32948 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.116.3-SNAPSHOT + 1.116.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.116.3-SNAPSHOT + 1.116.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b66c54b6a04f..0ea5595456be 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.3-SNAPSHOT + 1.98.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.3-SNAPSHOT + 1.116.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9776875692c5..df36a5b11507 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.116.3-SNAPSHOT + 1.116.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.3-SNAPSHOT + 1.98.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.3-SNAPSHOT + 1.98.3 com.google.cloud google-cloud-pubsub - 1.116.3-SNAPSHOT + 1.116.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 47adabbd0803..a0f4e79fd10b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.3-SNAPSHOT + 1.98.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.3-SNAPSHOT + 1.116.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 097607597b32..07cbb09da9b8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.116.3-SNAPSHOT + 1.116.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3a5882e10fde..dd237d44ece0 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.116.2:1.116.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.98.2:1.98.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.98.2:1.98.3-SNAPSHOT +google-cloud-pubsub:1.116.3:1.116.3 +grpc-google-cloud-pubsub-v1:1.98.3:1.98.3 +proto-google-cloud-pubsub-v1:1.98.3:1.98.3 From 49d8a40ed46d17085501561d1a31b19773f97490 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 30 Mar 2022 02:04:16 +0200 Subject: [PATCH 1003/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.116.2 (#1068) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.116.1` -> `1.116.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.2/compatibility-slim/1.116.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.2/confidence-slim/1.116.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.116.2`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​11162-httpsgithubcomgoogleapisjava-pubsubcomparev11161v11162-2022-03-24) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.116.1...v1.116.2)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 894545f56cb7..0405906416a2 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.116.1 + 1.116.2 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index aba451d7a90a..f3a1abe5cfaf 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.116.1 + 1.116.2 From 8f2effa90e5ac2e128496e8970e9b463673bb828 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 30 Mar 2022 00:16:17 +0000 Subject: [PATCH 1004/2363] chore(main): release 1.116.4-SNAPSHOT (#1074) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f335b9bb540a..e270b4459188 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.116.3 + 1.116.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.116.3 + 1.116.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.3 + 1.98.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.3 + 1.98.4-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3a826fa32948..3b0ce6b9cf1f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.116.3 + 1.116.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.116.3 + 1.116.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0ea5595456be..1c7c2324d243 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.3 + 1.98.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.3 + 1.116.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index df36a5b11507..7044da0773be 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.116.3 + 1.116.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.3 + 1.98.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.3 + 1.98.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.116.3 + 1.116.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a0f4e79fd10b..795c5263a491 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.3 + 1.98.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.3 + 1.116.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 07cbb09da9b8..eb894c0ff847 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.116.3 + 1.116.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index dd237d44ece0..839babbaaf43 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.116.3:1.116.3 -grpc-google-cloud-pubsub-v1:1.98.3:1.98.3 -proto-google-cloud-pubsub-v1:1.98.3:1.98.3 +google-cloud-pubsub:1.116.3:1.116.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.98.3:1.98.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.98.3:1.98.4-SNAPSHOT From 210a3c2962804525730987d20779d9aab8ff84b6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 19:04:14 +0200 Subject: [PATCH 1005/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#1076) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 0405906416a2..2f1981f8d684 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import @@ -51,20 +51,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.0.0') +implementation platform('com.google.cloud:libraries-bom:25.1.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.116.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.116.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.116.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.116.3" ``` ## Authentication diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 4b6bb5f333ce..facf1b30da89 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6267e2921e46..952b99023e97 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From fcdda96eeaf6db8a7bbdac01d560638d85841891 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 19:28:16 +0200 Subject: [PATCH 1006/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.116.3 (#1075) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.116.2` -> `1.116.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.3/compatibility-slim/1.116.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.3/confidence-slim/1.116.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.116.3`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​11163-httpsgithubcomgoogleapisjava-pubsubcomparev11162v11163-2022-03-29) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.116.2...v1.116.3)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2f1981f8d684..382a5fe8f161 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.116.2 + 1.116.3 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f3a1abe5cfaf..a11df2365f86 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.116.2 + 1.116.3 From cc7417522e12f8bdaba1ba6ad6a22e4bdef23c80 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 7 Apr 2022 08:52:44 -0700 Subject: [PATCH 1007/2363] chore: Enable Size-Label bot in all googleapis Java repositories (#1381) (#1081) * chore: Enable Size-Label bot in all googleapis Java repositories Auto-label T-shirt size indicator should be assigned on every new pull request in all googleapis Java repositories * Remove product Remove product since it is by default true * add license header Co-authored-by: Neenu Shaji Source-Link: https://github.com/googleapis/synthtool/commit/54b2c6ac75370a4a3582431b4a3080f777ba1f11 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 Co-authored-by: Owl Bot Co-authored-by: Neenu Shaji --- java-pubsub/.github/.OwlBot.lock.yaml | 3 ++- java-pubsub/.github/auto-label.yaml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 java-pubsub/.github/auto-label.yaml diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 426cf83e2ec6..f60d774937f6 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa + digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 +# created: 2022-04-06T16:30:03.627422514Z diff --git a/java-pubsub/.github/auto-label.yaml b/java-pubsub/.github/auto-label.yaml new file mode 100644 index 000000000000..4caef688b745 --- /dev/null +++ b/java-pubsub/.github/auto-label.yaml @@ -0,0 +1,15 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +requestsize: + enabled: true From 5c26f6dd64726ef122d8b62320e8a187dce094ae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Apr 2022 17:52:59 +0200 Subject: [PATCH 1008/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.12.1 (#1080) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7044da0773be..44468d31d168 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -85,7 +85,7 @@ com.google.errorprone error_prone_annotations - 2.11.0 + 2.12.1 From 6996e97233066222b51f268fd1472adc45052ff5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 01:34:36 +0200 Subject: [PATCH 1009/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.13.0 (#1083) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.errorprone:error_prone_annotations](https://errorprone.info) ([source](https://togithub.com/google/error-prone)) | `2.12.1` -> `2.13.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.13.0/compatibility-slim/2.12.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.13.0/confidence-slim/2.12.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    google/error-prone ### [`v2.13.0`](https://togithub.com/google/error-prone/releases/v2.13.0) [Compare Source](https://togithub.com/google/error-prone/compare/v2.12.1...v2.13.0) - Handle all annotations with the simple name `Generated` in `-XepDisableWarningsInGeneratedCode` ([#​3094](https://togithub.com/google/error-prone/issues/3094)) - Reconcile `BugChecker#isSuppressed` with suppression handling in `ErrorProneScanner` ([#​3094](https://togithub.com/google/error-prone/issues/3094)) - Fix a bug in `enclosingPackage` ([`8fa64d4`](https://togithub.com/google/error-prone/commit/8fa64d48f3a1d8df852ed2546ba02b0e2b7585af)) - Improve performance of fix application ([`186334b`](https://togithub.com/google/error-prone/commit/186334bcc45d9c275037cdcce3eb509ae8b7ff50)) - Implicitly treat `@AutoBuilder` setter methods as `@CanIgnoreReturnValue`. - Remove some obsolete checks (`PublicConstructorForAbstractClass`, `HashCodeToString`) [Release Diff: v2.12.1...v2.13.0](https://togithub.com/google/error-prone/compare/v2.12.1...v2.13.0).
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 44468d31d168..208e95a8a6a2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -85,7 +85,7 @@ com.google.errorprone error_prone_annotations - 2.12.1 + 2.13.0 From f7082ddae135884b52e5331e3baea39ae845ccd9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:24:11 +0200 Subject: [PATCH 1010/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 (#1085) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.9.0` -> `2.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/compatibility-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/confidence-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.10.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2100-httpsgithubcomgoogleapisjava-shared-dependenciescomparev290v2100-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.9.0...v2.10.0) ##### Dependencies - google-cloud-core 2.6.0 ([#​668](https://togithub.com/googleapis/java-shared-dependencies/issues/668)) ([22f4d18](https://togithub.com/googleapis/java-shared-dependencies/commit/22f4d1809cbb9848174b3569ab527e4bef00d443)) - reverting protobuf to 3.19.4 ([#​657](https://togithub.com/googleapis/java-shared-dependencies/issues/657)) ([8501e6d](https://togithub.com/googleapis/java-shared-dependencies/commit/8501e6d842c10d2370bbd5d5246070134336bddd)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2.20220328 ([#​646](https://togithub.com/googleapis/java-shared-dependencies/issues/646)) ([7bfd6d7](https://togithub.com/googleapis/java-shared-dependencies/commit/7bfd6d7073859d1955b91b368c6713a72ffa14b6)) - update dependency com.google.api-client:google-api-client-bom to v1.34.0 ([#​662](https://togithub.com/googleapis/java-shared-dependencies/issues/662)) ([1b8e378](https://togithub.com/googleapis/java-shared-dependencies/commit/1b8e378fe0ccf2a28c759868caaf5ba593a95728)) - update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#​652](https://togithub.com/googleapis/java-shared-dependencies/issues/652)) ([1cc80ee](https://togithub.com/googleapis/java-shared-dependencies/commit/1cc80ee984ebcad9bc2a95e2f28c0a49fe924b37)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.0 ([#​669](https://togithub.com/googleapis/java-shared-dependencies/issues/669)) ([61b7834](https://togithub.com/googleapis/java-shared-dependencies/commit/61b78341b34a251722be4805a6bdd895cd64836c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.6 ([#​654](https://togithub.com/googleapis/java-shared-dependencies/issues/654)) ([140ef40](https://togithub.com/googleapis/java-shared-dependencies/commit/140ef405bc17ed83f5ce177df59affca14fbe49c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.7 ([#​658](https://togithub.com/googleapis/java-shared-dependencies/issues/658)) ([f6f93e5](https://togithub.com/googleapis/java-shared-dependencies/commit/f6f93e5b9172c9684623c4c148e4a8fe2fae1e94)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.2 ([#​655](https://togithub.com/googleapis/java-shared-dependencies/issues/655)) ([20cd9ed](https://togithub.com/googleapis/java-shared-dependencies/commit/20cd9eda112c96836a5ab7485a4247ed2bc0edb8)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.3 ([#​663](https://togithub.com/googleapis/java-shared-dependencies/issues/663)) ([f011a46](https://togithub.com/googleapis/java-shared-dependencies/commit/f011a46c551dba16851b4f8c919c40452fc5d5c3)) - update dependency com.google.protobuf:protobuf-bom to v3.20.0 ([#​651](https://togithub.com/googleapis/java-shared-dependencies/issues/651)) ([ad2ff73](https://togithub.com/googleapis/java-shared-dependencies/commit/ad2ff73207dd6493321c77d8eca0022baf13b4ce)) - update dependency io.grpc:grpc-bom to v1.45.1 ([#​647](https://togithub.com/googleapis/java-shared-dependencies/issues/647)) ([38e46fc](https://togithub.com/googleapis/java-shared-dependencies/commit/38e46fc4f03af0a02f30ce4a2fa222c71797ae15)) - update dependency org.checkerframework:checker-qual to v3.21.4 ([#​650](https://togithub.com/googleapis/java-shared-dependencies/issues/650)) ([125e80a](https://togithub.com/googleapis/java-shared-dependencies/commit/125e80ab2c3225a00c03f5ff5de94872ebb94303)) - update gax.version to v2.15.0 ([#​649](https://togithub.com/googleapis/java-shared-dependencies/issues/649)) ([c7f32a6](https://togithub.com/googleapis/java-shared-dependencies/commit/c7f32a68b14520104432282ac9598643700162eb)) - update gax.version to v2.16.0 ([#​664](https://togithub.com/googleapis/java-shared-dependencies/issues/664)) ([caaf941](https://togithub.com/googleapis/java-shared-dependencies/commit/caaf941643af04295f5527a0144587d7bf040862)) - update google.common-protos.version to v2.8.1 ([#​656](https://togithub.com/googleapis/java-shared-dependencies/issues/656)) ([df4a4a2](https://togithub.com/googleapis/java-shared-dependencies/commit/df4a4a2130a3cdb2965ea42962d1ea6a85506ba7)) - update google.common-protos.version to v2.8.2 ([#​659](https://togithub.com/googleapis/java-shared-dependencies/issues/659)) ([b499e2b](https://togithub.com/googleapis/java-shared-dependencies/commit/b499e2bc99506d48d26e35bf6e68c09409ce8b11)) - update google.common-protos.version to v2.8.3 ([#​660](https://togithub.com/googleapis/java-shared-dependencies/issues/660)) ([461081c](https://togithub.com/googleapis/java-shared-dependencies/commit/461081c0cf73057c1f6e07fc573453ad467a60ae)) - update iam.version to v1.3.0 ([#​648](https://togithub.com/googleapis/java-shared-dependencies/issues/648)) ([6670c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/6670c4f61fcf075c543bfd148eea49796e0662ce)) - update iam.version to v1.3.1 ([#​661](https://togithub.com/googleapis/java-shared-dependencies/issues/661)) ([cc8fbe6](https://togithub.com/googleapis/java-shared-dependencies/commit/cc8fbe6eae03341c2ece7d3356febc843a74a812))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 208e95a8a6a2..426f02881d86 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.9.0 + 2.10.0 pom import From 5f695dfe75dbff966f7a53d828e90c95bb7a75de Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:30:11 +0200 Subject: [PATCH 1011/2363] deps: update dependency com.google.cloud:native-image-support to v0.13.1 (#1086) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:native-image-support](https://togithub.com/googleapis/java-core) | `0.12.11` -> `0.13.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.13.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.13.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.13.1/compatibility-slim/0.12.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.13.1/confidence-slim/0.12.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index facf1b30da89..eef316fcb3f6 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud native-image-support - 0.12.11 + 0.13.1 org.junit.vintage From be3d382821bae404899b2b52c53bc84e41877a7d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:40:33 +0200 Subject: [PATCH 1012/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.6.1 (#1084) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.11` -> `2.6.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/compatibility-slim/2.5.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.6.1/confidence-slim/2.5.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.6.1`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​261-httpsgithubcomgoogleapisjava-corecomparev260v261-2022-04-14) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.6.0...v2.6.1) ### [`v2.6.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​260-httpsgithubcomgoogleapisjava-corecomparev2511v260-2022-04-14) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.11...v2.6.0) ##### Features - **java:** remove GoogleJsonClentFeature and OpenCensusFeature after relocation ([#​793](https://togithub.com/googleapis/java-core/issues/793)) ([2880112](https://togithub.com/googleapis/java-core/commit/28801121a50583118286419ac91332a201285c4c)) - **java:** remove Netty Native Image configuration after relocation to gax ([#​771](https://togithub.com/googleapis/java-core/issues/771)) ([9ba04f9](https://togithub.com/googleapis/java-core/commit/9ba04f9f135e1ff7344bb45eeb5796154616ef20)) - **java:** remove protobuf Native Image configuration ([#​784](https://togithub.com/googleapis/java-core/issues/784)) ([0bc8549](https://togithub.com/googleapis/java-core/commit/0bc8549d3364ac169f21cc00c00497cd59998106)) - remove native-image.properties settings after relocation ([#​794](https://togithub.com/googleapis/java-core/issues/794)) ([e24bfdd](https://togithub.com/googleapis/java-core/commit/e24bfddbb9f588fbf69cdc0022cdf67f2c628278)) - remove resource-config after relocation ([#​795](https://togithub.com/googleapis/java-core/issues/795)) ([87e2973](https://togithub.com/googleapis/java-core/commit/87e29733c3714b39000e5fa3d232c35ce69955a2)) - remove substitutions after relocation to gax ([#​789](https://togithub.com/googleapis/java-core/issues/789)) ([29291e9](https://togithub.com/googleapis/java-core/commit/29291e9f50e4500ef5d5c1fe30098d025b216f9a)) ##### Bug Fixes - **java:** register test class for reflection to fix native image test ([#​766](https://togithub.com/googleapis/java-core/issues/766)) ([6fe52c3](https://togithub.com/googleapis/java-core/commit/6fe52c3424546cad7b8158668d3f8a655b56af41)) ##### Dependencies - revert protobuf to 3.19 and common-protos 2.8.3 ([#​798](https://togithub.com/googleapis/java-core/issues/798)) ([0f36a84](https://togithub.com/googleapis/java-core/commit/0f36a848a03c50d5d0187241bccd66fdb0cea862)) - update dependency com.google.api-client:google-api-client-bom to v1.34.0 ([#​800](https://togithub.com/googleapis/java-core/issues/800)) ([8430aee](https://togithub.com/googleapis/java-core/commit/8430aee231100ef13296f22f09265589b2aa0252)) - update dependency com.google.api:gax-bom to v2.16.0 ([#​785](https://togithub.com/googleapis/java-core/issues/785)) ([fd435b0](https://togithub.com/googleapis/java-core/commit/fd435b00f01fac1dc96b5f401b403d67809fa1eb)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.8.1 ([#​792](https://togithub.com/googleapis/java-core/issues/792)) ([4d201ac](https://togithub.com/googleapis/java-core/commit/4d201ac5dc694c9e4a4f06c5580a0c707ea68b87)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.8.2 ([#​796](https://togithub.com/googleapis/java-core/issues/796)) ([dc28a0f](https://togithub.com/googleapis/java-core/commit/dc28a0f2d58bcf4eb3c9b9f129ce8d88470e94e6)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.0 ([#​783](https://togithub.com/googleapis/java-core/issues/783)) ([4ed5ba4](https://togithub.com/googleapis/java-core/commit/4ed5ba4d096cb19f60186cbcfc789f5b058b07f8)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.3.1 ([#​799](https://togithub.com/googleapis/java-core/issues/799)) ([fce5315](https://togithub.com/googleapis/java-core/commit/fce531519184225e103a8faad54e81ae9232210a)) - update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#​788](https://togithub.com/googleapis/java-core/issues/788)) ([4e71f68](https://togithub.com/googleapis/java-core/commit/4e71f680142bf8cffaa519dcb0fd2916458674e2)) - update dependency com.google.http-client:google-http-client-bom to v1.41.6 ([#​791](https://togithub.com/googleapis/java-core/issues/791)) ([fe006c6](https://togithub.com/googleapis/java-core/commit/fe006c60e6cbaff8127a9f6f6792c6a6ce9ff26b)) - update dependency com.google.http-client:google-http-client-bom to v1.41.7 ([#​797](https://togithub.com/googleapis/java-core/issues/797)) ([570f8d5](https://togithub.com/googleapis/java-core/commit/570f8d5870044d1f3026b4aec49a6800d904f1be)) - update dependency com.google.protobuf:protobuf-bom to v3.20.0 ([#​787](https://togithub.com/googleapis/java-core/issues/787)) ([19202bc](https://togithub.com/googleapis/java-core/commit/19202bcb76e28977e0f2c9b02c75c83644bfb438)) - update dependency io.grpc:grpc-bom to v1.45.1 ([#​780](https://togithub.com/googleapis/java-core/issues/780)) ([6e3bf35](https://togithub.com/googleapis/java-core/commit/6e3bf35c501028ac293a401f55c14f1d97fa3953)) ##### [2.5.11](https://togithub.com/googleapis/java-core/compare/v2.5.10...v2.5.11) (2022-03-28) ##### Bug Fixes - **java:** Register Spanner classes for reflection to fix Native Image tests ([#​760](https://togithub.com/googleapis/java-core/issues/760)) ([257de0f](https://togithub.com/googleapis/java-core/commit/257de0f71963550ce11aca608fdf9a99672ff19a)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.4 ([#​776](https://togithub.com/googleapis/java-core/issues/776)) ([1b6fb2a](https://togithub.com/googleapis/java-core/commit/1b6fb2a5b9602f5ff8375deb15f5121851b09bd1)) - update dependency com.google.api:api-common to v2.1.5 ([#​768](https://togithub.com/googleapis/java-core/issues/768)) ([c76c332](https://togithub.com/googleapis/java-core/commit/c76c332b5676bffad2a1e75b094790c9b0488447)) - update dependency com.google.api:gax-bom to v2.13.0 ([#​774](https://togithub.com/googleapis/java-core/issues/774)) ([8075c54](https://togithub.com/googleapis/java-core/commit/8075c54a127496a5330671652678b03f5abdd5c9)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.8.0 ([#​770](https://togithub.com/googleapis/java-core/issues/770)) ([6809477](https://togithub.com/googleapis/java-core/commit/680947779ac9bc58f60c6c18750aac6b756e73b2)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.10 ([#​763](https://togithub.com/googleapis/java-core/issues/763)) ([9f2eb5f](https://togithub.com/googleapis/java-core/commit/9f2eb5fed5d9dc91ee01068a2c4eec9acef38c86)) - update dependency com.google.auth:google-auth-library-bom to v1.6.0 ([#​765](https://togithub.com/googleapis/java-core/issues/765)) ([2eb1924](https://togithub.com/googleapis/java-core/commit/2eb19241f119f39de7d07ee863c9c78a3e7f11a4)) - update dependency com.google.guava:guava to 31.1-jre ([#​772](https://togithub.com/googleapis/java-core/issues/772)) ([060adf3](https://togithub.com/googleapis/java-core/commit/060adf35bf6afdd4b31d790e5484f63eac777a11)) - update dependency com.google.http-client:google-http-client-bom to v1.41.5 ([#​769](https://togithub.com/googleapis/java-core/issues/769)) ([999be7a](https://togithub.com/googleapis/java-core/commit/999be7ab10459b33ab001b5bd84d650aeb13313f)) - update dependency org.threeten:threetenbp to v1.6.0 ([#​767](https://togithub.com/googleapis/java-core/issues/767)) ([9a4a438](https://togithub.com/googleapis/java-core/commit/9a4a438e04acfd0ec15cdfac5da3610223fe0071)) ##### [2.5.10](https://togithub.com/googleapis/java-core/compare/v2.5.9...v2.5.10) (2022-03-10) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.9 ([#​759](https://togithub.com/googleapis/java-core/issues/759)) ([9585d4e](https://togithub.com/googleapis/java-core/commit/9585d4ea8377c087b33e63e46672a79d52e04a4b)) ##### [2.5.9](https://togithub.com/googleapis/java-core/compare/v2.5.8...v2.5.9) (2022-03-09) ##### Dependencies - update dependency io.grpc:grpc-bom to v1.45.0 ([#​756](https://togithub.com/googleapis/java-core/issues/756)) ([403b10a](https://togithub.com/googleapis/java-core/commit/403b10accfe2694dc2a5fac63a374d00585df5bb)) ##### [2.5.8](https://togithub.com/googleapis/java-core/compare/v2.5.7...v2.5.8) (2022-03-08) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.8 ([#​753](https://togithub.com/googleapis/java-core/issues/753)) ([6866b84](https://togithub.com/googleapis/java-core/commit/6866b8407162ecbff7ed5a6eec5e3e4d130fcfa7)) ##### [2.5.7](https://togithub.com/googleapis/java-core/compare/v2.5.6...v2.5.7) (2022-03-08) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.7 ([#​748](https://togithub.com/googleapis/java-core/issues/748)) ([91cc595](https://togithub.com/googleapis/java-core/commit/91cc595c7df73af8e71e4feeb663c973e6bcc8e5)) ##### [2.5.6](https://togithub.com/googleapis/java-core/compare/v2.5.5...v2.5.6) (2022-03-01) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.6 ([#​742](https://togithub.com/googleapis/java-core/issues/742)) ([474e56c](https://togithub.com/googleapis/java-core/commit/474e56cca19f9d7b61f62585ee06f1fbdba0ae46)) ##### [2.5.5](https://togithub.com/googleapis/java-core/compare/v2.5.4...v2.5.5) (2022-02-28) ##### Bug Fixes - **java:** initialize spanner test environment class at build-time ([#​734](https://togithub.com/googleapis/java-core/issues/734)) ([684934e](https://togithub.com/googleapis/java-core/commit/684934efb28e4ed5f5f975aab91adad25bf1ab52)) - **java:** initialize TestTag at build time ([#​732](https://togithub.com/googleapis/java-core/issues/732)) ([a5f1dc2](https://togithub.com/googleapis/java-core/commit/a5f1dc2ed3d71404d699830ba4bea8824e67d0e8)) ##### Dependencies - update actions/setup-java action to v3 ([#​739](https://togithub.com/googleapis/java-core/issues/739)) ([46322e3](https://togithub.com/googleapis/java-core/commit/46322e3a9929195c223fc6399860c1cab4d81eb5)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.4 ([#​728](https://togithub.com/googleapis/java-core/issues/728)) ([3b83bd7](https://togithub.com/googleapis/java-core/commit/3b83bd7dce6a369c6668f0967572ae08df1b77d8)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.4 ([#​729](https://togithub.com/googleapis/java-core/issues/729)) ([0759c2b](https://togithub.com/googleapis/java-core/commit/0759c2b8163d45bf87692e2f131df76dac5f178e)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.5 ([#​735](https://togithub.com/googleapis/java-core/issues/735)) ([cefbf97](https://togithub.com/googleapis/java-core/commit/cefbf978ac21f00b3c4558ebc40ef1f6355ea156)) - update dependency com.google.auth:google-auth-library-bom to v1.5.3 ([#​737](https://togithub.com/googleapis/java-core/issues/737)) ([a1cb8d8](https://togithub.com/googleapis/java-core/commit/a1cb8d81db34142937c85be5c4502036a4b7939d)) - update dependency com.google.code.gson:gson to v2.9.0 ([#​727](https://togithub.com/googleapis/java-core/issues/727)) ([faf8a44](https://togithub.com/googleapis/java-core/commit/faf8a44e8823ecae44d543e6f5c2a9d8598f04fe)) - update dependency com.google.http-client:google-http-client-bom to v1.41.4 ([#​730](https://togithub.com/googleapis/java-core/issues/730)) ([1975b61](https://togithub.com/googleapis/java-core/commit/1975b617e23f7dd0b263e9acb4010b3126e5d7e7)) - update dependency io.grpc:grpc-bom to v1.44.1 ([#​736](https://togithub.com/googleapis/java-core/issues/736)) ([4ca315c](https://togithub.com/googleapis/java-core/commit/4ca315ca400e020badbdf27bb92d1b67680a2e73)) ##### [2.5.4](https://togithub.com/googleapis/java-core/compare/v2.5.3...v2.5.4) (2022-02-11) ##### Dependencies - update actions/github-script action to v6 ([#​724](https://togithub.com/googleapis/java-core/issues/724)) ([b8673d3](https://togithub.com/googleapis/java-core/commit/b8673d3b3ae08cbfed135cd7ff9d891c04e90611)) ##### [2.5.3](https://togithub.com/googleapis/java-core/compare/v2.5.2...v2.5.3) (2022-02-10) ##### Dependencies - update dependency com.google.api:gax-bom to v2.12.2 ([#​719](https://togithub.com/googleapis/java-core/issues/719)) ([4de90d0](https://togithub.com/googleapis/java-core/commit/4de90d05c152c21a1ebb98f6cbff0f9b9c39e5d2)) - update dependency com.google.http-client:google-http-client-bom to v1.41.3 ([#​720](https://togithub.com/googleapis/java-core/issues/720)) ([d2a5b4f](https://togithub.com/googleapis/java-core/commit/d2a5b4ffa598f232b84655a7ac146bfa2e1f24c9)) ##### [2.5.2](https://togithub.com/googleapis/java-core/compare/v2.5.1...v2.5.2) (2022-02-09) ##### Dependencies - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.3 ([#​716](https://togithub.com/googleapis/java-core/issues/716)) ([100e41e](https://togithub.com/googleapis/java-core/commit/100e41e092f35f6e6d187de45bb6dc3e4e760052)) ##### [2.5.1](https://togithub.com/googleapis/java-core/compare/v2.5.0...v2.5.1) (2022-02-08) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.2 ([#​709](https://togithub.com/googleapis/java-core/issues/709)) ([de08f4e](https://togithub.com/googleapis/java-core/commit/de08f4eea6cf4e7813c8da1f6adb28e1e56fd1cd)) - update dependency com.google.api:api-common to v2.1.4 ([#​712](https://togithub.com/googleapis/java-core/issues/712)) ([9cc49de](https://togithub.com/googleapis/java-core/commit/9cc49de654d57e8efdb97c8e3c7f9d8723e79eb9)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.7.3 ([#​710](https://togithub.com/googleapis/java-core/issues/710)) ([a5f1991](https://togithub.com/googleapis/java-core/commit/a5f199157319dfb82cbb24d1b4249d924118de84)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.2.2 ([#​705](https://togithub.com/googleapis/java-core/issues/705)) ([b8722b9](https://togithub.com/googleapis/java-core/commit/b8722b998966b21cd2d9e6208627c34ff046accf))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a11df2365f86..dd7fdabcf869 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.5.11 + 2.6.1 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index eb894c0ff847..cd492c70a72b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.5.11 + 2.6.1 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 952b99023e97..524c6d4b53de 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.5.11 + 2.6.1 tests From 0ca365ac7331b63128818ab6c18b82bca2797e06 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Apr 2022 17:40:35 +0200 Subject: [PATCH 1013/2363] deps: update dependency com.google.errorprone:error_prone_annotations to v2.13.1 (#1087) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.errorprone:error_prone_annotations](https://errorprone.info) ([source](https://togithub.com/google/error-prone)) | `2.13.0` -> `2.13.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.13.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.13.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.13.1/compatibility-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.errorprone:error_prone_annotations/2.13.1/confidence-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    google/error-prone ### [`v2.13.1`](https://togithub.com/google/error-prone/releases/v2.13.1) [Compare Source](https://togithub.com/google/error-prone/compare/v2.13.0...v2.13.1) #### What's Changed - Fix a crash in `UnnecessaryBoxedVariable` in [https://github.com/google/error-prone/pull/3118](https://togithub.com/google/error-prone/pull/3118) - Include the unicode character in the diagnostic message in [https://github.com/google/error-prone/pull/3119](https://togithub.com/google/error-prone/pull/3119) **Full Changelog**: https://github.com/google/error-prone/compare/v2.13.0...v2.13.1
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 426f02881d86..02ea1ade6792 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -85,7 +85,7 @@ com.google.errorprone error_prone_annotations - 2.13.0 + 2.13.1 From 4f3d00b480987e48e522583fc9d88f5785cef86e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Apr 2022 16:22:12 +0200 Subject: [PATCH 1014/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.20.0 (#1078) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.19.4` -> `3.20.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.0/compatibility-slim/3.19.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.0/confidence-slim/3.19.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    protocolbuffers/protobuf ### [`v3.20.0`](https://togithub.com/protocolbuffers/protobuf/releases/v3.20.0) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.19.4...v3.20.0) 2022-03-25 version 3.20.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript) ##### Ruby - Dropped Ruby 2.3 and 2.4 support for CI and releases. ([#​9311](https://togithub.com/protocolbuffers/protobuf/issues/9311)) - Added Ruby 3.1 support for CI and releases ([#​9566](https://togithub.com/protocolbuffers/protobuf/issues/9566)). - Message.decode/encode: Add recursion_limit option ([#​9218](https://togithub.com/protocolbuffers/protobuf/issues/9218)/[#​9486](https://togithub.com/protocolbuffers/protobuf/issues/9486)) - Allocate with xrealloc()/xfree() so message allocation is visible to the Ruby GC. In certain tests this leads to much lower memory usage due to more frequent GC runs ([#​9586](https://togithub.com/protocolbuffers/protobuf/issues/9586)). - Fix conversion of singleton classes in Ruby ([#​9342](https://togithub.com/protocolbuffers/protobuf/issues/9342)) - Suppress warning for intentional circular require ([#​9556](https://togithub.com/protocolbuffers/protobuf/issues/9556)) - JSON will now output shorter strings for double and float fields when possible without losing precision. - Encoding and decoding of binary format will now work properly on big-endian systems. - UTF-8 verification was fixed to properly reject surrogate code points. - Unknown enums for proto2 protos now properly implement proto2's behavior of putting such values in unknown fields. ##### Java - Revert "Standardize on Array copyOf" ([#​9400](https://togithub.com/protocolbuffers/protobuf/issues/9400)) - Resolve more java field accessor name conflicts ([#​8198](https://togithub.com/protocolbuffers/protobuf/issues/8198)) - Don't support map fields in DynamicMessage.Builder.{getFieldBuilder,getRepeatedFieldBuilder} - Fix parseFrom to only throw InvalidProtocolBufferException - InvalidProtocolBufferException now allows arbitrary wrapped Exception types. - Fix bug in `FieldSet.Builder.mergeFrom` - Flush CodedOutputStream also flushes underlying OutputStream - When oneof case is the same and the field type is Message, merge the subfield. (previously it was replaced.)’ - Add [@​CheckReturnValue](https://togithub.com/CheckReturnValue) to some protobuf types - Report original exceptions when parsing JSON - Add more info to [@​deprecated](https://togithub.com/deprecated) javadoc for set/get/has methods - Fix initialization bug in doc comment line numbers - Fix comments for message set wire format. ##### Kotlin - Add test scope to kotlin-test for protobuf-kotlin-lite ([#​9518](https://togithub.com/protocolbuffers/protobuf/issues/9518)) - Add orNull extensions for optional message fields. - Add orNull extensions to all proto3 message fields. ##### Python - Dropped support for Python < 3.7 ([#​9480](https://togithub.com/protocolbuffers/protobuf/issues/9480)) - Protoc is now able to generate python stubs (.pyi) with --pyi_out - Pin multibuild scripts to get manylinux1 wheels back ([#​9216](https://togithub.com/protocolbuffers/protobuf/issues/9216)) - Fix type annotations of some Duration and Timestamp methods. - Repeated field containers are now generic in field types and could be used in type annotations. - Protobuf python generated codes are simplified. Descriptors and message classes' definitions are now dynamic created in internal/builder.py. Insertion Points for messages classes are discarded. - has_presence is added for FieldDescriptor in python - Loosen indexing type requirements to allow valid **index**() implementations rather than only PyLongObjects. - Fix the deepcopy bug caused by not copying message_listener. - Added python JSON parse recursion limit (default 100) - Path info is added for python JSON parse errors - Pure python repeated scalar fields will not able to pickle. Convert to list first. - Timestamp.ToDatetime() now accepts an optional tzinfo parameter. If specified, the function returns a timezone-aware datetime in the given time zone. If omitted or None, the function returns a timezone-naive UTC datetime (as previously). - Adds client_streaming and server_streaming fields to MethodDescriptor. - Add "ensure_ascii" parameter to json_format.MessageToJson. This allows smaller JSON serializations with UTF-8 or other non-ASCII encodings. - Added experimental support for directly assigning numpy scalars and array. - Improve the calculation of public_dependencies in DescriptorPool. - \[Breaking Change] Disallow setting fields to numpy singleton arrays or repeated fields to numpy multi-dimensional arrays. Numpy arrays should be indexed or flattened explicitly before assignment. ##### Compiler - Migrate IsDefault(const std::string\*) and UnsafeSetDefault(const std::string\*) - Implement strong qualified tags for TaggedPtr - Rework allocations to power-of-two byte sizes. - Migrate IsDefault(const std::string\*) and UnsafeSetDefault(const std::string\*) - Implement strong qualified tags for TaggedPtr - Make TaggedPtr Set...() calls explicitly spell out the content type. - Check for parsing error before verifying UTF8. - Enforce a maximum message nesting limit of 32 in the descriptor builder to guard against stack overflows - Fixed bugs in operators for RepeatedPtrIterator - Assert a maximum map alignment for allocated values - Fix proto1 group extension protodb parsing error - Do not log/report the same descriptor symbol multiple times if it contains more than one invalid character. - Add UnknownFieldSet::SerializeToString and SerializeToCodedStream. - Remove explicit default pointers and deprecated API from protocol compiler ##### Arenas - Change Repeated\*Field to reuse memory when using arenas. - Implements pbarenaz for profiling proto arenas - Introduce CreateString() and CreateArenaString() for cleaner semantics - Fix unreferenced parameter for MSVC builds - Add UnsafeSetAllocated to be used for one-of string fields. - Make Arena::AllocateAligned() a public function. - Determine if ArenaDtor related code generation is necessary in one place. - Implement on demand register ArenaDtor for InlinedStringField ##### C++ - Enable testing via CTest ([#​8737](https://togithub.com/protocolbuffers/protobuf/issues/8737)) - Add option to use external GTest in CMake ([#​8736](https://togithub.com/protocolbuffers/protobuf/issues/8736)) - CMake: Set correct sonames for libprotobuf-lite.so and libprotoc.so ([#​8635](https://togithub.com/protocolbuffers/protobuf/issues/8635)) ([#​9529](https://togithub.com/protocolbuffers/protobuf/issues/9529)) - Add cmake option `protobuf_INSTALL` to not install files ([#​7123](https://togithub.com/protocolbuffers/protobuf/issues/7123)) - CMake: Allow custom plugin options e.g. to generate mocks ([#​9105](https://togithub.com/protocolbuffers/protobuf/issues/9105)) - CMake: Use linker version scripts ([#​9545](https://togithub.com/protocolbuffers/protobuf/issues/9545)) - Manually \*struct Cord fields to work better with arenas. - Manually destruct map fields. - Generate narrower code - Fix [https://github.com/protocolbuffers/protobuf/issues/9378](https://togithub.com/protocolbuffers/protobuf/issues/9378) by removing shadowed *cached_size* field - Remove GetPointer() and explicit nullptr defaults. - Add proto_h flag for speeding up large builds - Add missing overload for reference wrapped fields. - Add MergedDescriptorDatabase::FindAllFileNames() - RepeatedField now defines an iterator type instead of using a pointer. - Remove obsolete macros GOOGLE_PROTOBUF_HAS_ONEOF and GOOGLE_PROTOBUF_HAS_ARENAS. ##### PHP - Fix: add missing reserved classnames ([#​9458](https://togithub.com/protocolbuffers/protobuf/issues/9458)) - PHP 8.1 compatibility ([#​9370](https://togithub.com/protocolbuffers/protobuf/issues/9370)) ##### C\# - Fix trim warnings ([#​9182](https://togithub.com/protocolbuffers/protobuf/issues/9182)) - Fixes NullReferenceException when accessing FieldDescriptor.IsPacked ([#​9430](https://togithub.com/protocolbuffers/protobuf/issues/9430)) - Add ToProto() method to all descriptor classes ([#​9426](https://togithub.com/protocolbuffers/protobuf/issues/9426)) - Add an option to preserve proto names in JsonFormatter ([#​6307](https://togithub.com/protocolbuffers/protobuf/issues/6307)) ##### Objective-C - Add prefix_to_proto_package_mappings_path option. ([#​9498](https://togithub.com/protocolbuffers/protobuf/issues/9498)) - Rename `proto_package_to_prefix_mappings_path` to `package_to_prefix_mappings_path`. ([#​9552](https://togithub.com/protocolbuffers/protobuf/issues/9552)) - Add a generation option to control use of forward declarations in headers. ([#​9568](https://togithub.com/protocolbuffers/protobuf/issues/9568))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index dd7fdabcf869..0641da1d936c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.19.4 + 3.20.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cd492c70a72b..2acab582535d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.19.4 + 3.20.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 524c6d4b53de..477894c2c1cb 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.19.4 + 3.20.0 From 718b2603fb17b64760d103e55cdc3db50eacfb34 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Apr 2022 14:34:13 +0000 Subject: [PATCH 1015/2363] chore(main): release 1.116.4 (#1082) :robot: I have created a release *beep* *boop* --- ### [1.116.4](https://github.com/googleapis/java-pubsub/compare/v1.116.3...v1.116.4) (2022-04-19) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.6.1 ([#1084](https://github.com/googleapis/java-pubsub/issues/1084)) ([be3d382](https://github.com/googleapis/java-pubsub/commit/be3d382821bae404899b2b52c53bc84e41877a7d)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#1085](https://github.com/googleapis/java-pubsub/issues/1085)) ([f7082dd](https://github.com/googleapis/java-pubsub/commit/f7082ddae135884b52e5331e3baea39ae845ccd9)) * update dependency com.google.cloud:native-image-support to v0.13.1 ([#1086](https://github.com/googleapis/java-pubsub/issues/1086)) ([5f695df](https://github.com/googleapis/java-pubsub/commit/5f695dfe75dbff966f7a53d828e90c95bb7a75de)) * update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#1080](https://github.com/googleapis/java-pubsub/issues/1080)) ([5c26f6d](https://github.com/googleapis/java-pubsub/commit/5c26f6dd64726ef122d8b62320e8a187dce094ae)) * update dependency com.google.errorprone:error_prone_annotations to v2.13.0 ([#1083](https://github.com/googleapis/java-pubsub/issues/1083)) ([6996e97](https://github.com/googleapis/java-pubsub/commit/6996e97233066222b51f268fd1472adc45052ff5)) * update dependency com.google.errorprone:error_prone_annotations to v2.13.1 ([#1087](https://github.com/googleapis/java-pubsub/issues/1087)) ([0ca365a](https://github.com/googleapis/java-pubsub/commit/0ca365ac7331b63128818ab6c18b82bca2797e06)) * update dependency com.google.protobuf:protobuf-java-util to v3.20.0 ([#1078](https://github.com/googleapis/java-pubsub/issues/1078)) ([4f3d00b](https://github.com/googleapis/java-pubsub/commit/4f3d00b480987e48e522583fc9d88f5785cef86e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index a300abd5da75..3837e1ddcc64 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +### [1.116.4](https://github.com/googleapis/java-pubsub/compare/v1.116.3...v1.116.4) (2022-04-19) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.6.1 ([#1084](https://github.com/googleapis/java-pubsub/issues/1084)) ([b1c4d89](https://github.com/googleapis/java-pubsub/commit/b1c4d899e98fc58bdcd6a38b4544497e65ca591d)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#1085](https://github.com/googleapis/java-pubsub/issues/1085)) ([4826dcb](https://github.com/googleapis/java-pubsub/commit/4826dcb4ce80e165a4c2c7e65a8d6931ebb0abc9)) +* update dependency com.google.cloud:native-image-support to v0.13.1 ([#1086](https://github.com/googleapis/java-pubsub/issues/1086)) ([98c7b2b](https://github.com/googleapis/java-pubsub/commit/98c7b2be08e80744b6bc8e38c327e3874b755df9)) +* update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#1080](https://github.com/googleapis/java-pubsub/issues/1080)) ([d13bd94](https://github.com/googleapis/java-pubsub/commit/d13bd94074740b870c90a216715dfe18bbd6c248)) +* update dependency com.google.errorprone:error_prone_annotations to v2.13.0 ([#1083](https://github.com/googleapis/java-pubsub/issues/1083)) ([3b8cbcb](https://github.com/googleapis/java-pubsub/commit/3b8cbcbee1b7451adcdf1305d90960f682889c44)) +* update dependency com.google.errorprone:error_prone_annotations to v2.13.1 ([#1087](https://github.com/googleapis/java-pubsub/issues/1087)) ([34121f0](https://github.com/googleapis/java-pubsub/commit/34121f0d9943735a231d4c1e045df4f7e822268e)) +* update dependency com.google.protobuf:protobuf-java-util to v3.20.0 ([#1078](https://github.com/googleapis/java-pubsub/issues/1078)) ([b064d6c](https://github.com/googleapis/java-pubsub/commit/b064d6ca8b2b1e6e083dc273073b3734d434ef8c)) + ### [1.116.3](https://github.com/googleapis/java-pubsub/compare/v1.116.2...v1.116.3) (2022-03-29) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e270b4459188..ce8b5c061b37 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.116.4-SNAPSHOT + 1.116.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.116.4-SNAPSHOT + 1.116.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.4-SNAPSHOT + 1.98.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.4-SNAPSHOT + 1.98.4
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3b0ce6b9cf1f..4dfbcc1ef428 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.116.4-SNAPSHOT + 1.116.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.116.4-SNAPSHOT + 1.116.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1c7c2324d243..89314ef0d45b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.4-SNAPSHOT + 1.98.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.4-SNAPSHOT + 1.116.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 02ea1ade6792..b4537f3f5413 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.116.4-SNAPSHOT + 1.116.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.4-SNAPSHOT + 1.98.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.4-SNAPSHOT + 1.98.4 com.google.cloud google-cloud-pubsub - 1.116.4-SNAPSHOT + 1.116.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 795c5263a491..89940693e531 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.4-SNAPSHOT + 1.98.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.4-SNAPSHOT + 1.116.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2acab582535d..ef3e0fa96f87 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.116.4-SNAPSHOT + 1.116.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 839babbaaf43..1741520139f1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.116.3:1.116.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.98.3:1.98.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.98.3:1.98.4-SNAPSHOT +google-cloud-pubsub:1.116.4:1.116.4 +grpc-google-cloud-pubsub-v1:1.98.4:1.98.4 +proto-google-cloud-pubsub-v1:1.98.4:1.98.4 From 86a935817091aaba747bd45c46971438bdcc5b6f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Apr 2022 14:46:20 +0000 Subject: [PATCH 1016/2363] chore(main): release 1.116.5-SNAPSHOT (#1088) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ce8b5c061b37..cb982e5e2d99 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.116.4 + 1.116.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.116.4 + 1.116.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.4 + 1.98.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.4 + 1.98.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4dfbcc1ef428..f5cfdc5a3877 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.116.4 + 1.116.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.116.4 + 1.116.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 89314ef0d45b..27c39206b658 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.4 + 1.98.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.4 + 1.116.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b4537f3f5413..f18a8f846f16 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.116.4 + 1.116.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.4 + 1.98.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.4 + 1.98.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.116.4 + 1.116.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 89940693e531..62fca3e71351 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.4 + 1.98.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.4 + 1.116.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ef3e0fa96f87..b53c2bdbf223 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.116.4 + 1.116.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1741520139f1..3b84b7a0583f 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.116.4:1.116.4 -grpc-google-cloud-pubsub-v1:1.98.4:1.98.4 -proto-google-cloud-pubsub-v1:1.98.4:1.98.4 +google-cloud-pubsub:1.116.4:1.116.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.98.4:1.98.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.98.4:1.98.5-SNAPSHOT From 60df8ac6f34c7bd57a20cdcc5ff9dc22409a4c02 Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Wed, 20 Apr 2022 14:42:25 -0400 Subject: [PATCH 1017/2363] fix: removed beta api annotation for ordering keys (#1094) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: removed ordering beta api tag * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 382a5fe8f161..bdf24231a193 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.116.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.116.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.116.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.116.4" ``` ## Authentication diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 1ed5e2254435..39302d3f7938 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -317,7 +317,6 @@ public void run() { * * @param key The key for which to resume publishing. */ - @BetaApi("Ordering is not yet fully supported and requires special project enablements.") public void resumePublish(String key) { Preconditions.checkState(!shutdown.get(), "Cannot publish on a shut-down publisher."); sequentialExecutor.resumePublish(key); @@ -800,7 +799,6 @@ public Builder setRetrySettings(RetrySettings retrySettings) { } /** Sets the message ordering option. */ - @BetaApi("Ordering is not yet fully supported and requires special project enablements.") public Builder setEnableMessageOrdering(boolean enableMessageOrdering) { this.enableMessageOrdering = enableMessageOrdering; return this; From 7e0c15275f3ea0997c32c81defe9f4146c294ef1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 16:50:38 +0200 Subject: [PATCH 1018/2363] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.0 (#1096) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.3.2` -> `3.4.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/compatibility-slim/3.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/confidence-slim/3.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f18a8f846f16..53af068cd992 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -178,7 +178,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.4.0 html From 9cace6baaff8430e985dc2290b98676234891a71 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 19:44:28 +0200 Subject: [PATCH 1019/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.3 (#1092) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.2` -> `1.3.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/compatibility-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/confidence-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.3.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​133-httpsgithubcomgoogleapisjava-shared-configcomparev132v133-2022-04-19) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.2...v1.3.3)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index cb982e5e2d99..5412ea9edaa4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.2 + 1.3.3 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 53af068cd992..c61debe3381f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.2 + 1.3.3 From 6011560f86b0135f268c018b97e5af6676801505 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 19:46:26 +0200 Subject: [PATCH 1020/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.116.4 (#1090) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.116.3` -> `1.116.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.4/compatibility-slim/1.116.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.116.4/confidence-slim/1.116.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.116.4`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​11164-httpsgithubcomgoogleapisjava-pubsubcomparev11163v11164-2022-04-19) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.116.3...v1.116.4)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bdf24231a193..d1a396e7fbc0 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.116.3 + 1.116.4 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0641da1d936c..3261171c0ad5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.116.3 + 1.116.4 From d2c6baed465fb9f507663e1dd2d7fd1051a5d57f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 19:58:14 +0200 Subject: [PATCH 1021/2363] test(deps): update dependency org.mockito:mockito-core to v4.5.0 (#1091) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.mockito:mockito-core](https://togithub.com/mockito/mockito) | `4.4.0` -> `4.5.0` | [![age](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.5.0/compatibility-slim/4.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.5.0/confidence-slim/4.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    mockito/mockito ### [`v4.5.0`](https://togithub.com/mockito/mockito/releases/v4.5.0) [Compare Source](https://togithub.com/mockito/mockito/compare/v4.4.0...v4.5.0) *Changelog generated by [Shipkit Changelog Gradle Plugin](https://togithub.com/shipkit/shipkit-changelog)* ##### 4.5.0 - 2022-04-19 - [15 commit(s)](https://togithub.com/mockito/mockito/compare/v4.4.0...v4.5.0) by Andrei Silviu Dragnea, Rafael Winterhalter, Rick Ossendrijver, dependabot\[bot] - Bump versions.errorprone from 2.13.0 to 2.13.1 [(#​2621)](https://togithub.com/mockito/mockito/pull/2621) - Bump versions.errorprone from 2.12.1 to 2.13.0 [(#​2619)](https://togithub.com/mockito/mockito/pull/2619) - Groovy inline [(#​2618)](https://togithub.com/mockito/mockito/pull/2618) - Bump actions/setup-java from 2 to 3 [(#​2615)](https://togithub.com/mockito/mockito/pull/2615) - Bump versions.bytebuddy from 1.12.8 to 1.12.9 [(#​2614)](https://togithub.com/mockito/mockito/pull/2614) - Support subclass mocks on Graal VM. [(#​2613)](https://togithub.com/mockito/mockito/pull/2613) - Bump com.diffplug.spotless from 6.4.1 to 6.4.2 [(#​2611)](https://togithub.com/mockito/mockito/pull/2611) - Bump kotlinx-coroutines-core from 1.6.0-native-mt to 1.6.1-native-mt [(#​2609)](https://togithub.com/mockito/mockito/pull/2609) - Bump versions.errorprone from 2.10.0 to 2.12.1 [(#​2608)](https://togithub.com/mockito/mockito/pull/2608) - Bump kotlinVersion from 1.6.10 to 1.6.20 [(#​2607)](https://togithub.com/mockito/mockito/pull/2607) - Bump com.diffplug.spotless from 6.4.0 to 6.4.1 [(#​2606)](https://togithub.com/mockito/mockito/pull/2606) - Bump com.diffplug.spotless from 6.3.0 to 6.4.0 [(#​2605)](https://togithub.com/mockito/mockito/pull/2605) - Bump org.eclipse.osgi from 3.17.100 to 3.17.200 [(#​2597)](https://togithub.com/mockito/mockito/pull/2597) - Deprecate ListUtil and Fields classes [(#​2593)](https://togithub.com/mockito/mockito/pull/2593) - mockito-errorprone seems not compatible with ErrorProne 2.11.0 [(#​2554)](https://togithub.com/mockito/mockito/issues/2554) - NullPointerException from Groovy metaclass methods when using mockito-inline (but not mockito-core) [(#​2522)](https://togithub.com/mockito/mockito/issues/2522)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c61debe3381f..7ffc42c78481 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -92,7 +92,7 @@ org.mockito mockito-core - 4.4.0 + 4.5.0 test From c847afea813550b202b8b2989efe52b45b3251dc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 21:40:27 +0200 Subject: [PATCH 1022/2363] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.13 (#1098) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.11` -> `1.6.13` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/compatibility-slim/1.6.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/confidence-slim/1.6.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    sonatype/nexus-maven-plugins ### [`v1.6.13`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) ### [`v1.6.12`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.11...release-1.6.12) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.11...release-1.6.12)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index e138ae3bcb41..19e0318e7ac6 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -62,7 +62,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.11 + 1.6.13 true From 3dfc7e1dc07d04886822dba9bc1235718f442a6d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 21:40:31 +0200 Subject: [PATCH 1023/2363] test(deps): update dependency org.mockito:mockito-core to v4.5.1 (#1099) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.mockito:mockito-core](https://togithub.com/mockito/mockito) | `4.5.0` -> `4.5.1` | [![age](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.5.1/compatibility-slim/4.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.5.1/confidence-slim/4.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    mockito/mockito ### [`v4.5.1`](https://togithub.com/mockito/mockito/releases/v4.5.1) [Compare Source](https://togithub.com/mockito/mockito/compare/v4.5.0...v4.5.1) *Changelog generated by [Shipkit Changelog Gradle Plugin](https://togithub.com/shipkit/shipkit-changelog)* ##### 4.5.1 - 2022-04-21 - [2 commit(s)](https://togithub.com/mockito/mockito/compare/v4.5.0...v4.5.1) by Jeremy Landis, dependabot\[bot] - Fixes [#​2623](https://togithub.com/mockito/mockito/issues/2623): Use zulu distribution and java 11 for release GHA job [(#​2624)](https://togithub.com/mockito/mockito/pull/2624) - Missing errorprone module for 4.5.0 in central as release was done with jdk 8 [(#​2623)](https://togithub.com/mockito/mockito/issues/2623) - Bump kotlinVersion from 1.6.20 to 1.6.21 [(#​2622)](https://togithub.com/mockito/mockito/pull/2622)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7ffc42c78481..bd9e0fffadca 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -92,7 +92,7 @@ org.mockito mockito-core - 4.5.0 + 4.5.1 test From 3af4c8868b72e054153bdcb02a1eae06b8e1cc5c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 22 Apr 2022 01:04:11 +0200 Subject: [PATCH 1024/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.20.1 (#1100) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.20.0` -> `3.20.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.1/compatibility-slim/3.20.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.1/confidence-slim/3.20.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3261171c0ad5..f651e90474db 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.20.0 + 3.20.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b53c2bdbf223..5e6beb873a15 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.20.0 + 3.20.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 477894c2c1cb..52c7548dabc2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.20.0 + 3.20.1 From 766e4c55194ae6cf096b6d0f8fba592ec0207ff1 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 26 Apr 2022 18:20:12 -0400 Subject: [PATCH 1025/2363] deps: error_prone_annotations from the shared deps BOM (#1102) The shared dependencies BOM has error_prone_annotations entry. Let's use it rather than declaring the version here. --- java-pubsub/README.md | 2 +- java-pubsub/pom.xml | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d1a396e7fbc0..320c470cfd7a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.1.0') +implementation platform('com.google.cloud:libraries-bom:25.2.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bd9e0fffadca..f68a093af17e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -82,12 +82,6 @@ 1.116.5-SNAPSHOT - - com.google.errorprone - error_prone_annotations - 2.13.1 - - org.mockito From f9d465c0fbc2216ab0336c472577aa3ef172bb0b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Apr 2022 17:34:15 +0200 Subject: [PATCH 1026/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v25.2.0 (#1101) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.1.0` -> `25.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/compatibility-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/confidence-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 320c470cfd7a..593f91dec322 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index eef316fcb3f6..fba37c5eb146 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 52c7548dabc2..f73529fd14c8 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import From 8217f7ee387845879b1e415142a71b2909b63d0e Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Wed, 27 Apr 2022 11:58:28 -0400 Subject: [PATCH 1027/2363] fix: adding BetaApi annotation on AckReplyConsumerWithResponse for Exactly Once Delivery (#1097) --- .../google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java index ec2a27f3ba9a..4bde6acbc95f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1; +import com.google.api.core.BetaApi; import java.util.concurrent.Future; /** @@ -32,6 +33,8 @@ * with an AckResponse.SUCCESS. Because re-deliveries are possible, you should ensure that your * processing code is idempotent, as you may receive any given message more than once. */ +@BetaApi( + "This is a preview feature. For more details, see https://cloud.google.com/pubsub/docs/exactly-once-delivery.") public interface AckReplyConsumerWithResponse { /** * Acknowledges that the message has been successfully processed. The service will not send the From 0785c07e2844403de8734e2dd8baeba86241303d Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Wed, 27 Apr 2022 16:05:33 -0400 Subject: [PATCH 1028/2363] docs(sample): remove unused native-image-support dependency (#1103) * docs(sample): remove unused dependency * remove ProtobufMessageFeature --- java-pubsub/samples/native-image-sample/pom.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index fba37c5eb146..e57b72d442ad 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -104,11 +104,6 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> native - - com.google.cloud - native-image-support - 0.13.1 - org.junit.vintage junit-vintage-engine @@ -147,7 +142,6 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> --no-fallback --no-server - --features=com.google.cloud.nativeimage.features.ProtobufMessageFeature
    From 12f5c267e52845511b65a637cf0bfd21389164a9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 Apr 2022 22:24:28 +0200 Subject: [PATCH 1029/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.4.0 (#1105) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.3` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/compatibility-slim/1.3.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/confidence-slim/1.3.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.4.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​140-httpsgithubcomgoogleapisjava-shared-configcomparev133v140-2022-04-28) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.3...v1.4.0) ##### Features - **java:** remove native image module ([#​471](https://togithub.com/googleapis/java-shared-config/issues/471)) ([7fcba01](https://togithub.com/googleapis/java-shared-config/commit/7fcba016b3138d7beaa4e962853f9bc80f59438c)) ##### [1.3.3](https://togithub.com/googleapis/java-shared-config/compare/v1.3.2...v1.3.3) (2022-04-19) ##### Bug Fixes - **java:** remove protobuf feature from native profile ([#​461](https://togithub.com/googleapis/java-shared-config/issues/461)) ([ffd07cb](https://togithub.com/googleapis/java-shared-config/commit/ffd07cb18ee7d45d4daee1d9ea6f6d321fdca874)) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.11 ([#​459](https://togithub.com/googleapis/java-shared-config/issues/459)) ([d20008d](https://togithub.com/googleapis/java-shared-config/commit/d20008df15209708fdf9d06828b567778190f4d0)) - update dependency com.google.cloud:native-image-support to v0.13.1 ([#​465](https://togithub.com/googleapis/java-shared-config/issues/465)) ([b202064](https://togithub.com/googleapis/java-shared-config/commit/b2020648816feb4740ad70acedfed470d7da5bcf)) ##### [1.3.2](https://togithub.com/googleapis/java-shared-config/compare/v1.3.1...v1.3.2) (2022-03-28) ##### Dependencies - revert google-java-format to 1.7 ([#​453](https://togithub.com/googleapis/java-shared-config/issues/453)) ([cbc777f](https://togithub.com/googleapis/java-shared-config/commit/cbc777f3e9ab75edb6fa2e0268a7446ae4111725)) ##### [1.3.1](https://togithub.com/googleapis/java-shared-config/compare/v1.3.0...v1.3.1) (2022-03-25) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.10 ([#​443](https://togithub.com/googleapis/java-shared-config/issues/443)) ([5b39d5e](https://togithub.com/googleapis/java-shared-config/commit/5b39d5ee15121f052226ff873b6ab101e9c71de5)) - update dependency com.google.googlejavaformat:google-java-format to v1.15.0 ([#​426](https://togithub.com/googleapis/java-shared-config/issues/426)) ([4c3c4b6](https://togithub.com/googleapis/java-shared-config/commit/4c3c4b66129632181e6bc363a0ecccf4f5aac914)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#​448](https://togithub.com/googleapis/java-shared-config/issues/448)) ([f7f518e](https://togithub.com/googleapis/java-shared-config/commit/f7f518e87d1d9feb9ac54d7c099f97d8751ee3da)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#​449](https://togithub.com/googleapis/java-shared-config/issues/449)) ([3e1c0b5](https://togithub.com/googleapis/java-shared-config/commit/3e1c0b5a1d2f4a0db88c06a0d683ed90cbc745e2))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5412ea9edaa4..3fb58983b5be 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.3 + 1.4.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f68a093af17e..716e6366e43f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.3 + 1.4.0 From 9e6e8a24f123c1f22a19e9788a85f6d8956d42b1 Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Mon, 2 May 2022 15:04:29 -0400 Subject: [PATCH 1030/2363] fix: added exactly once delivery files to owlbot config (#1106) --- java-pubsub/.github/.OwlBot.yaml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.yaml b/java-pubsub/.github/.OwlBot.yaml index 3fd3247a0746..e768d51d185b 100644 --- a/java-pubsub/.github/.OwlBot.yaml +++ b/java-pubsub/.github/.OwlBot.yaml @@ -28,9 +28,8 @@ deep-preserve-regex: - "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" - "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" - "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/CustomArgumentMatchers.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" @@ -40,20 +39,28 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckResponse.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiverWithAckResponse.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java" deep-copy-regex: - source: "/google/pubsub/(v.*)/.*-java/proto-google-.*/src" From 5489b455f8b3310c5ca57fc517762683018d5b39 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 2 May 2022 21:54:11 +0000 Subject: [PATCH 1031/2363] chore(bazel): update version of Protobuf to v3.20.1 (#1079) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 444328399 Source-Link: https://github.com/googleapis/googleapis/commit/c7ca416c2856aad6a3f7092924e56b8cf0cb2534 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9 feat: AuditConfig for IAM v1 PiperOrigin-RevId: 439356405 Source-Link: https://github.com/googleapis/googleapis/commit/afa2ba156bd5c83ad8168030ab801a8ca84ac819 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3e40c17e1510c95fab58fc2143ccb61cceca5989 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9 --- .../cloud/pubsub/v1/SchemaServiceClient.java | 2 ++ .../pubsub/v1/SubscriptionAdminClient.java | 2 ++ .../cloud/pubsub/v1/TopicAdminClient.java | 2 ++ .../pubsub/v1/SchemaServiceClientTest.java | 7 +++++ .../v1/SubscriptionAdminClientTest.java | 6 +++++ .../cloud/pubsub/v1/TopicAdminClientTest.java | 6 +++++ .../google/pubsub/v1/AcknowledgeRequest.java | 2 ++ .../google/pubsub/v1/CreateSchemaRequest.java | 2 ++ .../pubsub/v1/CreateSnapshotRequest.java | 21 ++++++++------- .../v1/CreateSnapshotRequestOrBuilder.java | 7 ++++- .../google/pubsub/v1/DeadLetterPolicy.java | 2 ++ .../google/pubsub/v1/DeleteSchemaRequest.java | 2 ++ .../pubsub/v1/DeleteSnapshotRequest.java | 2 ++ .../pubsub/v1/DeleteSubscriptionRequest.java | 2 ++ .../google/pubsub/v1/DeleteTopicRequest.java | 2 ++ .../pubsub/v1/DetachSubscriptionRequest.java | 2 ++ .../pubsub/v1/DetachSubscriptionResponse.java | 2 ++ .../google/pubsub/v1/ExpirationPolicy.java | 2 ++ .../google/pubsub/v1/GetSchemaRequest.java | 2 ++ .../google/pubsub/v1/GetSnapshotRequest.java | 2 ++ .../pubsub/v1/GetSubscriptionRequest.java | 2 ++ .../com/google/pubsub/v1/GetTopicRequest.java | 2 ++ .../google/pubsub/v1/ListSchemasRequest.java | 2 ++ .../google/pubsub/v1/ListSchemasResponse.java | 2 ++ .../pubsub/v1/ListSnapshotsRequest.java | 2 ++ .../pubsub/v1/ListSnapshotsResponse.java | 2 ++ .../pubsub/v1/ListSubscriptionsRequest.java | 2 ++ .../pubsub/v1/ListSubscriptionsResponse.java | 2 ++ .../pubsub/v1/ListTopicSnapshotsRequest.java | 2 ++ .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 ++ .../v1/ListTopicSubscriptionsRequest.java | 2 ++ .../v1/ListTopicSubscriptionsResponse.java | 2 ++ .../google/pubsub/v1/ListTopicsRequest.java | 2 ++ .../google/pubsub/v1/ListTopicsResponse.java | 2 ++ .../pubsub/v1/MessageStoragePolicy.java | 2 ++ .../pubsub/v1/ModifyAckDeadlineRequest.java | 2 ++ .../pubsub/v1/ModifyPushConfigRequest.java | 2 ++ .../com/google/pubsub/v1/PublishRequest.java | 2 ++ .../com/google/pubsub/v1/PublishResponse.java | 2 ++ .../com/google/pubsub/v1/PubsubMessage.java | 21 ++++++++------- .../pubsub/v1/PubsubMessageOrBuilder.java | 7 ++++- .../com/google/pubsub/v1/PullRequest.java | 10 +++++++ .../pubsub/v1/PullRequestOrBuilder.java | 2 ++ .../com/google/pubsub/v1/PullResponse.java | 2 ++ .../java/com/google/pubsub/v1/PushConfig.java | 26 ++++++++++++------- .../google/pubsub/v1/PushConfigOrBuilder.java | 7 ++++- .../com/google/pubsub/v1/ReceivedMessage.java | 2 ++ .../com/google/pubsub/v1/RetryPolicy.java | 2 ++ .../java/com/google/pubsub/v1/Schema.java | 2 ++ .../com/google/pubsub/v1/SchemaSettings.java | 2 ++ .../com/google/pubsub/v1/SeekRequest.java | 5 +++- .../com/google/pubsub/v1/SeekResponse.java | 2 ++ .../java/com/google/pubsub/v1/Snapshot.java | 21 ++++++++------- .../google/pubsub/v1/SnapshotOrBuilder.java | 7 ++++- .../pubsub/v1/StreamingPullRequest.java | 2 ++ .../pubsub/v1/StreamingPullResponse.java | 8 ++++++ .../com/google/pubsub/v1/Subscription.java | 21 ++++++++------- .../pubsub/v1/SubscriptionOrBuilder.java | 7 ++++- .../main/java/com/google/pubsub/v1/Topic.java | 21 ++++++++------- .../com/google/pubsub/v1/TopicOrBuilder.java | 7 ++++- .../pubsub/v1/UpdateSnapshotRequest.java | 2 ++ .../pubsub/v1/UpdateSubscriptionRequest.java | 2 ++ .../google/pubsub/v1/UpdateTopicRequest.java | 2 ++ .../pubsub/v1/ValidateMessageRequest.java | 5 +++- .../pubsub/v1/ValidateMessageResponse.java | 2 ++ .../pubsub/v1/ValidateSchemaRequest.java | 2 ++ .../pubsub/v1/ValidateSchemaResponse.java | 2 ++ 67 files changed, 253 insertions(+), 63 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 562debea0538..fd0f238e2a1e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -777,6 +777,7 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ * SetIamPolicyRequest.newBuilder() * .setResource(ProjectName.of("[PROJECT]").toString()) * .setPolicy(Policy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * Policy response = schemaServiceClient.setIamPolicy(request); * } @@ -803,6 +804,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * SetIamPolicyRequest.newBuilder() * .setResource(ProjectName.of("[PROJECT]").toString()) * .setPolicy(Policy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * ApiFuture future = schemaServiceClient.setIamPolicyCallable().futureCall(request); * // Do something. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index f5dfe6990650..8f11330ebadd 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -2984,6 +2984,7 @@ public final UnaryCallable seekCallable() { * SetIamPolicyRequest.newBuilder() * .setResource(ProjectName.of("[PROJECT]").toString()) * .setPolicy(Policy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * Policy response = subscriptionAdminClient.setIamPolicy(request); * } @@ -3041,6 +3042,7 @@ public final Policy setIamPolicy(String resource, Policy policy) { * SetIamPolicyRequest.newBuilder() * .setResource(ProjectName.of("[PROJECT]").toString()) * .setPolicy(Policy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * ApiFuture future = subscriptionAdminClient.setIamPolicyCallable().futureCall(request); * // Do something. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 61b154c1e748..1d3da0057bd8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1233,6 +1233,7 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq * SetIamPolicyRequest.newBuilder() * .setResource(ProjectName.of("[PROJECT]").toString()) * .setPolicy(Policy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * Policy response = topicAdminClient.setIamPolicy(request); * } @@ -1290,6 +1291,7 @@ public final Policy setIamPolicy(String resource, Policy policy) { * SetIamPolicyRequest.newBuilder() * .setResource(ProjectName.of("[PROJECT]").toString()) * .setPolicy(Policy.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * ApiFuture future = topicAdminClient.setIamPolicyCallable().futureCall(request); * // Do something. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java index ace5e7d42b49..864f9f013bfa 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -36,6 +37,7 @@ import com.google.protobuf.AbstractMessage; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; import com.google.pubsub.v1.Encoding; @@ -559,6 +561,7 @@ public void setIamPolicyTest() throws Exception { Policy.newBuilder() .setVersion(351608024) .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); mockIAMPolicy.addResponse(expectedResponse); @@ -567,6 +570,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest.newBuilder() .setResource(ProjectName.of("[PROJECT]").toString()) .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); Policy actualResponse = client.setIamPolicy(request); @@ -578,6 +582,7 @@ public void setIamPolicyTest() throws Exception { Assert.assertEquals(request.getResource(), actualRequest.getResource()); Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -594,6 +599,7 @@ public void setIamPolicyExceptionTest() throws Exception { SetIamPolicyRequest.newBuilder() .setResource(ProjectName.of("[PROJECT]").toString()) .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); client.setIamPolicy(request); Assert.fail("No exception raised"); @@ -608,6 +614,7 @@ public void getIamPolicyTest() throws Exception { Policy.newBuilder() .setVersion(351608024) .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); mockIAMPolicy.addResponse(expectedResponse); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 4fef8c98cde2..dbb87a03e263 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -1679,6 +1680,7 @@ public void setIamPolicyTest() throws Exception { Policy.newBuilder() .setVersion(351608024) .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); mockIAMPolicy.addResponse(expectedResponse); @@ -1687,6 +1689,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest.newBuilder() .setResource(ProjectName.of("[PROJECT]").toString()) .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); Policy actualResponse = client.setIamPolicy(request); @@ -1698,6 +1701,7 @@ public void setIamPolicyTest() throws Exception { Assert.assertEquals(request.getResource(), actualRequest.getResource()); Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1714,6 +1718,7 @@ public void setIamPolicyExceptionTest() throws Exception { SetIamPolicyRequest.newBuilder() .setResource(ProjectName.of("[PROJECT]").toString()) .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); client.setIamPolicy(request); Assert.fail("No exception raised"); @@ -1728,6 +1733,7 @@ public void getIamPolicyTest() throws Exception { Policy.newBuilder() .setVersion(351608024) .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); mockIAMPolicy.addResponse(expectedResponse); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 02d6a55850c9..a3c4e4245f84 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.GetPolicyOptions; @@ -804,6 +805,7 @@ public void setIamPolicyTest() throws Exception { Policy.newBuilder() .setVersion(351608024) .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); mockIAMPolicy.addResponse(expectedResponse); @@ -812,6 +814,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest.newBuilder() .setResource(ProjectName.of("[PROJECT]").toString()) .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); Policy actualResponse = client.setIamPolicy(request); @@ -823,6 +826,7 @@ public void setIamPolicyTest() throws Exception { Assert.assertEquals(request.getResource(), actualRequest.getResource()); Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -839,6 +843,7 @@ public void setIamPolicyExceptionTest() throws Exception { SetIamPolicyRequest.newBuilder() .setResource(ProjectName.of("[PROJECT]").toString()) .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); client.setIamPolicy(request); Assert.fail("No exception raised"); @@ -853,6 +858,7 @@ public void getIamPolicyTest() throws Exception { Policy.newBuilder() .setVersion(351608024) .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) .setEtag(ByteString.EMPTY) .build(); mockIAMPolicy.addResponse(expectedResponse); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index cf164758b7bf..38f0841ad65b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -100,6 +100,8 @@ private AcknowledgeRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index e0a121785f03..9f234893102c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -110,6 +110,8 @@ private CreateSchemaRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index b37c9f64aa14..6140d5e458f5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -110,6 +110,8 @@ private CreateSnapshotRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -314,7 +316,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -351,7 +353,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -369,7 +371,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1089,7 +1091,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1127,7 +1129,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1145,7 +1147,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1170,7 +1172,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -1192,11 +1194,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index b8e0ef2f99a6..647f8506ec36 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -153,7 +153,12 @@ public interface CreateSnapshotRequestOrBuilder * * map<string, string> labels = 3; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index e543187a8722..018a74139edb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -96,6 +96,8 @@ private DeadLetterPolicy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index 69a7b241fe05..84747a7ae6f5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -88,6 +88,8 @@ private DeleteSchemaRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index b5529abe6fec..8113bad2ec87 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -88,6 +88,8 @@ private DeleteSnapshotRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index e4ca9d30f135..90bb5843313b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -88,6 +88,8 @@ private DeleteSubscriptionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index db0ba9fbce92..5b3a9e2cba7e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -88,6 +88,8 @@ private DeleteTopicRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 8e56f9e90928..80e2182143b7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -88,6 +88,8 @@ private DetachSubscriptionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index a473832a211b..425eff37fd8e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -80,6 +80,8 @@ private DetachSubscriptionResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 5c88243ee661..e9ed8b2f7489 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -94,6 +94,8 @@ private ExpirationPolicy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 9eff939622db..9a1f22ba3783 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -96,6 +96,8 @@ private GetSchemaRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 2cdf4abfebf3..e40c7802ecd0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -88,6 +88,8 @@ private GetSnapshotRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 1c9992ee8562..0a0122d3ce95 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -88,6 +88,8 @@ private GetSubscriptionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 0d3e779c5c61..43e15615e2b5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -88,6 +88,8 @@ private GetTopicRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 0c8e4883d5df..9e75e40f44cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -109,6 +109,8 @@ private ListSchemasRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 27f189db1171..d7acc88629cd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -100,6 +100,8 @@ private ListSchemasResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 6958265a69c3..c23abd212785 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -101,6 +101,8 @@ private ListSnapshotsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index d7747b6dd027..8d44aa126299 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -100,6 +100,8 @@ private ListSnapshotsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 7599fbf288f2..d7db4c0ea361 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -101,6 +101,8 @@ private ListSubscriptionsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 614895dde2b7..2370455611c7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -100,6 +100,8 @@ private ListSubscriptionsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 9ba97ba5a3c8..17a383573830 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -101,6 +101,8 @@ private ListTopicSnapshotsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index c098cc39abb1..ea213088612a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -100,6 +100,8 @@ private ListTopicSnapshotsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index d8a5d96fd6e1..ae8c370d6bf5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -101,6 +101,8 @@ private ListTopicSubscriptionsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index c81e4fe62712..16bfc8bfe0a5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -101,6 +101,8 @@ private ListTopicSubscriptionsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 17f59fd635bf..cbb0a15edf6d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -101,6 +101,8 @@ private ListTopicsRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 0af6dd44790f..ba9cb473c1d0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -100,6 +100,8 @@ private ListTopicsResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index b03bda501cfe..c02987c8e375 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -92,6 +92,8 @@ private MessageStoragePolicy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 30831833d08a..f3c067c7d609 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -105,6 +105,8 @@ private ModifyAckDeadlineRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 8833432d8cdd..f3d869b476c5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -103,6 +103,8 @@ private ModifyPushConfigRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 3c1a2c428ad8..4d0732319094 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -101,6 +101,8 @@ private PublishRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 750a740229c1..25caaf8bca7e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -92,6 +92,8 @@ private PublishResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index bda025a248a8..f9243a265818 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -140,6 +140,8 @@ private PubsubMessage( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -232,7 +234,7 @@ public int getAttributesCount() { @java.lang.Override public boolean containsAttributes(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } @@ -272,7 +274,7 @@ public java.util.Map getAttributesMap() { public java.lang.String getAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -291,7 +293,7 @@ public java.lang.String getAttributesOrDefault( @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -989,7 +991,7 @@ public int getAttributesCount() { @java.lang.Override public boolean containsAttributes(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } @@ -1029,7 +1031,7 @@ public java.util.Map getAttributesMap() { public java.lang.String getAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1048,7 +1050,7 @@ public java.lang.String getAttributesOrDefault( @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -1074,7 +1076,7 @@ public Builder clearAttributes() { */ public Builder removeAttributes(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAttributes().getMutableMap().remove(key); return this; @@ -1097,11 +1099,12 @@ public java.util.Map getMutableAttributes() */ public Builder putAttributes(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAttributes().getMutableMap().put(key, value); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index a81cdd8e2895..c06beec09a2a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -87,7 +87,12 @@ public interface PubsubMessageOrBuilder * * map<string, string> attributes = 2; */ - java.lang.String getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 097ffd48de25..81ff046458ec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -98,6 +98,8 @@ private PullRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -192,6 +194,8 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See + * google/pubsub/v1/pubsub.proto;l=1035 * @return The returnImmediately. */ @java.lang.Override @@ -702,6 +706,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See + * google/pubsub/v1/pubsub.proto;l=1035 * @return The returnImmediately. */ @java.lang.Override @@ -726,6 +732,8 @@ public boolean getReturnImmediately() { * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See + * google/pubsub/v1/pubsub.proto;l=1035 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -753,6 +761,8 @@ public Builder setReturnImmediately(boolean value) { * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See + * google/pubsub/v1/pubsub.proto;l=1035 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index eb88907a97ca..962ab395549f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -70,6 +70,8 @@ public interface PullRequestOrBuilder * bool return_immediately = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See + * google/pubsub/v1/pubsub.proto;l=1035 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index bca433c65141..f0482b4c3eea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -93,6 +93,8 @@ private PullResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 74e82b909959..c551db41d5cf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -122,6 +122,8 @@ private PushConfig( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -307,6 +309,8 @@ private OidcToken( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1240,7 +1244,7 @@ public int getAttributesCount() { @java.lang.Override public boolean containsAttributes(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } @@ -1306,7 +1310,7 @@ public java.util.Map getAttributesMap() { public java.lang.String getAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1338,7 +1342,7 @@ public java.lang.String getAttributesOrDefault( @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -1982,7 +1986,7 @@ public int getAttributesCount() { @java.lang.Override public boolean containsAttributes(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetAttributes().getMap().containsKey(key); } @@ -2048,7 +2052,7 @@ public java.util.Map getAttributesMap() { public java.lang.String getAttributesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2080,7 +2084,7 @@ public java.lang.String getAttributesOrDefault( @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetAttributes().getMap(); if (!map.containsKey(key)) { @@ -2119,7 +2123,7 @@ public Builder clearAttributes() { */ public Builder removeAttributes(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableAttributes().getMutableMap().remove(key); return this; @@ -2155,11 +2159,12 @@ public java.util.Map getMutableAttributes() */ public Builder putAttributes(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableAttributes().getMutableMap().put(key, value); return this; } @@ -2309,8 +2314,9 @@ public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { } else { if (authenticationMethodCase_ == 3) { oidcTokenBuilder_.mergeFrom(value); + } else { + oidcTokenBuilder_.setMessage(value); } - oidcTokenBuilder_.setMessage(value); } authenticationMethodCase_ = 3; return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 091a066f98a0..6499b5346ab5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -152,7 +152,12 @@ public interface PushConfigOrBuilder * * map<string, string> attributes = 2; */ - java.lang.String getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 84c1a8242e30..7145c9e058e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -108,6 +108,8 @@ private ReceivedMessage( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 4b6a1934e885..51f5b8e47040 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -116,6 +116,8 @@ private RetryPolicy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index c157eb4ba270..9dfc5bca41b1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -104,6 +104,8 @@ private Schema( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index ee21a2fe6119..38a3b711e7f9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -96,6 +96,8 @@ private SchemaSettings( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index a10126f4a5fe..813c4f2d44ca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -110,6 +110,8 @@ private SeekRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1058,8 +1060,9 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) { } else { if (targetCase_ == 2) { timeBuilder_.mergeFrom(value); + } else { + timeBuilder_.setMessage(value); } - timeBuilder_.setMessage(value); } targetCase_ = 2; return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 3ced96f97f82..fe0aff80d7e2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -79,6 +79,8 @@ private SeekResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 76500746883d..927b203e8e04 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -129,6 +129,8 @@ private Snapshot( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -370,7 +372,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -407,7 +409,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -425,7 +427,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1350,7 +1352,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1388,7 +1390,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1406,7 +1408,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1431,7 +1433,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -1453,11 +1455,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index c8d3ed3ad474..74761e4ad227 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -181,7 +181,12 @@ public interface SnapshotOrBuilder * * map<string, string> labels = 4; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index a5b507540dd2..fbeb6c13bc6f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -160,6 +160,8 @@ private StreamingPullRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 82ca2a8a973a..0ea49f678224 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -149,6 +149,8 @@ private StreamingPullResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -434,6 +436,8 @@ private AcknowledgeConfirmation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1838,6 +1842,8 @@ private ModifyAckDeadlineConfirmation( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2893,6 +2899,8 @@ private SubscriptionProperties( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 0543e587d94a..c05fea07ed7d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -235,6 +235,8 @@ private Subscription( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -595,7 +597,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -632,7 +634,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -650,7 +652,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2580,7 +2582,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -2618,7 +2620,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -2636,7 +2638,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -2661,7 +2663,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -2683,11 +2685,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 64a0a771cbe8..2c85e903fff2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -275,7 +275,12 @@ public interface SubscriptionOrBuilder * * map<string, string> labels = 9; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 1682c2329b0a..6361c9e277b5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -162,6 +162,8 @@ private Topic( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -291,7 +293,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -328,7 +330,7 @@ public java.util.Map getLabelsMap() { @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -346,7 +348,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1239,7 +1241,7 @@ public int getLabelsCount() { @java.lang.Override public boolean containsLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } @@ -1277,7 +1279,7 @@ public java.util.Map getLabelsMap() { public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; @@ -1295,7 +1297,7 @@ public java.lang.String getLabelsOrDefault( @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { @@ -1320,7 +1322,7 @@ public Builder clearLabels() { */ public Builder removeLabels(java.lang.String key) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap().remove(key); return this; @@ -1342,11 +1344,12 @@ public java.util.Map getMutableLabels() { */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map key"); } if (value == null) { - throw new java.lang.NullPointerException(); + throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index e9e3dae79b98..cbc1957b4a6a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -104,7 +104,12 @@ public interface TopicOrBuilder * * map<string, string> labels = 2; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 078d0d1be702..1925b6c4fd10 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -109,6 +109,8 @@ private UpdateSnapshotRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index ffed68bcfdc7..0e9110799f45 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -109,6 +109,8 @@ private UpdateSubscriptionRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 7458cb8ad035..51fe720e67ca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -108,6 +108,8 @@ private UpdateTopicRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index c5bdcde47718..b58b83ebceb1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -124,6 +124,8 @@ private ValidateMessageRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -1225,8 +1227,9 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } else { if (schemaSpecCase_ == 3) { schemaBuilder_.mergeFrom(value); + } else { + schemaBuilder_.setMessage(value); } - schemaBuilder_.setMessage(value); } schemaSpecCase_ = 3; return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index d86904cf05fc..f734b6925340 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -80,6 +80,8 @@ private ValidateMessageResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 0e62b8478580..5aa2bf5dde2a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -102,6 +102,8 @@ private ValidateSchemaRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 881b35e95f3d..e7755cca336c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -80,6 +80,8 @@ private ValidateSchemaResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { From 9aa19a56b1e4376bbb2c3e0a1751e49a46ba4b33 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 5 May 2022 20:48:14 +0000 Subject: [PATCH 1032/2363] chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 (#1107) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 446250659 Source-Link: https://github.com/googleapis/googleapis/commit/dc4ef314fecf1b00833e78288cf2eb4d2b165ad1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 --- .../cloud/pubsub/v1/SchemaServiceClient.java | 66 +++++++- .../pubsub/v1/SchemaServiceSettings.java | 4 +- .../pubsub/v1/SubscriptionAdminClient.java | 146 +++++++++++++++++- .../pubsub/v1/SubscriptionAdminSettings.java | 4 +- .../cloud/pubsub/v1/TopicAdminClient.java | 90 ++++++++++- .../cloud/pubsub/v1/TopicAdminSettings.java | 4 +- .../google/cloud/pubsub/v1/package-info.java | 8 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../GrpcSchemaServiceCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 2 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 2 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../pubsub/v1/stub/PublisherStubSettings.java | 4 +- .../pubsub/v1/stub/SchemaServiceStub.java | 2 +- .../v1/stub/SchemaServiceStubSettings.java | 4 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../v1/stub/SubscriberStubSettings.java | 4 +- .../google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../cloud/pubsub/v1/MockSchemaService.java | 2 +- .../pubsub/v1/MockSchemaServiceImpl.java | 2 +- .../cloud/pubsub/v1/MockSubscriber.java | 2 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../pubsub/v1/SchemaServiceClientTest.java | 2 +- .../v1/SubscriptionAdminClientTest.java | 2 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 2 +- .../com/google/pubsub/v1/ProjectName.java | 2 +- .../java/com/google/pubsub/v1/SchemaName.java | 2 +- .../com/google/pubsub/v1/SnapshotName.java | 2 +- .../google/pubsub/v1/SubscriptionName.java | 2 +- .../java/com/google/pubsub/v1/TopicName.java | 2 +- 35 files changed, 349 insertions(+), 35 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index fd0f238e2a1e..3ab408e71887 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -59,6 +59,8 @@ * calls that map to API methods. Sample code to get started: * *
    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
      *   ProjectName parent = ProjectName.of("[PROJECT]");
      *   Schema schema = Schema.newBuilder().build();
    @@ -96,6 +98,8 @@
      * 

    To customize credentials: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * SchemaServiceSettings schemaServiceSettings =
      *     SchemaServiceSettings.newBuilder()
      *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    @@ -106,6 +110,8 @@
      * 

    To customize the endpoint: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * SchemaServiceSettings schemaServiceSettings =
      *     SchemaServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      * SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings);
    @@ -173,6 +179,8 @@ public SchemaServiceStub getStub() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ProjectName parent = ProjectName.of("[PROJECT]");
        *   Schema schema = Schema.newBuilder().build();
    @@ -209,6 +217,8 @@ public final Schema createSchema(ProjectName parent, Schema schema, String schem
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   String parent = ProjectName.of("[PROJECT]").toString();
        *   Schema schema = Schema.newBuilder().build();
    @@ -245,6 +255,8 @@ public final Schema createSchema(String parent, Schema schema, String schemaId)
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   CreateSchemaRequest request =
        *       CreateSchemaRequest.newBuilder()
    @@ -270,6 +282,8 @@ public final Schema createSchema(CreateSchemaRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   CreateSchemaRequest request =
        *       CreateSchemaRequest.newBuilder()
    @@ -294,6 +308,8 @@ public final UnaryCallable createSchemaCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
        *   Schema response = schemaServiceClient.getSchema(name);
    @@ -317,6 +333,8 @@ public final Schema getSchema(SchemaName name) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
        *   Schema response = schemaServiceClient.getSchema(name);
    @@ -339,6 +357,8 @@ public final Schema getSchema(String name) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   GetSchemaRequest request =
        *       GetSchemaRequest.newBuilder()
    @@ -363,6 +383,8 @@ public final Schema getSchema(GetSchemaRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   GetSchemaRequest request =
        *       GetSchemaRequest.newBuilder()
    @@ -386,6 +408,8 @@ public final UnaryCallable getSchemaCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ProjectName parent = ProjectName.of("[PROJECT]");
        *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
    @@ -413,6 +437,8 @@ public final ListSchemasPagedResponse listSchemas(ProjectName parent) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   String parent = ProjectName.of("[PROJECT]").toString();
        *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
    @@ -437,6 +463,8 @@ public final ListSchemasPagedResponse listSchemas(String parent) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ListSchemasRequest request =
        *       ListSchemasRequest.newBuilder()
    @@ -465,6 +493,8 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ListSchemasRequest request =
        *       ListSchemasRequest.newBuilder()
    @@ -493,6 +523,8 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ListSchemasRequest request =
        *       ListSchemasRequest.newBuilder()
    @@ -527,6 +559,8 @@ public final UnaryCallable listSchemasC
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
        *   schemaServiceClient.deleteSchema(name);
    @@ -550,6 +584,8 @@ public final void deleteSchema(SchemaName name) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
        *   schemaServiceClient.deleteSchema(name);
    @@ -572,6 +608,8 @@ public final void deleteSchema(String name) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   DeleteSchemaRequest request =
        *       DeleteSchemaRequest.newBuilder()
    @@ -595,6 +633,8 @@ public final void deleteSchema(DeleteSchemaRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   DeleteSchemaRequest request =
        *       DeleteSchemaRequest.newBuilder()
    @@ -617,6 +657,8 @@ public final UnaryCallable deleteSchemaCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ProjectName parent = ProjectName.of("[PROJECT]");
        *   Schema schema = Schema.newBuilder().build();
    @@ -645,6 +687,8 @@ public final ValidateSchemaResponse validateSchema(ProjectName parent, Schema sc
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   String parent = ProjectName.of("[PROJECT]").toString();
        *   Schema schema = Schema.newBuilder().build();
    @@ -670,6 +714,8 @@ public final ValidateSchemaResponse validateSchema(String parent, Schema schema)
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ValidateSchemaRequest request =
        *       ValidateSchemaRequest.newBuilder()
    @@ -694,6 +740,8 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ValidateSchemaRequest request =
        *       ValidateSchemaRequest.newBuilder()
    @@ -719,6 +767,8 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ValidateMessageRequest request =
        *       ValidateMessageRequest.newBuilder()
    @@ -744,6 +794,8 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ValidateMessageRequest request =
        *       ValidateMessageRequest.newBuilder()
    @@ -772,6 +824,8 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -799,6 +853,8 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -824,6 +880,8 @@ public final UnaryCallable setIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -849,6 +907,8 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -877,6 +937,8 @@ public final UnaryCallable getIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    @@ -906,6 +968,8 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
    index e8c50371c422..597c33bc6aa7 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    @@ -68,6 +68,8 @@
      * 

    For example, to set the total timeout of createSchema to 30 seconds: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder();
      * schemaServiceSettingsBuilder
      *     .createSchemaSettings()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    index 8f11330ebadd..9b48ca018b25 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    @@ -80,6 +80,8 @@
      * calls that map to API methods. Sample code to get started:
      *
      * 
    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    @@ -120,6 +122,8 @@
      * 

    To customize credentials: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * SubscriptionAdminSettings subscriptionAdminSettings =
      *     SubscriptionAdminSettings.newBuilder()
      *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    @@ -131,6 +135,8 @@
      * 

    To customize the endpoint: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * SubscriptionAdminSettings subscriptionAdminSettings =
      *     SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
      * SubscriptionAdminClient subscriptionAdminClient =
    @@ -208,6 +214,8 @@ public SubscriberStub getStub() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    @@ -274,6 +282,8 @@ public final Subscription createSubscription(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    @@ -340,6 +350,8 @@ public final Subscription createSubscription(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    @@ -406,6 +418,8 @@ public final Subscription createSubscription(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    @@ -472,6 +486,8 @@ public final Subscription createSubscription(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   Subscription request =
        *       Subscription.newBuilder()
    @@ -728,6 +744,8 @@ public final Subscription createSubscription(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   Subscription request =
        *       Subscription.newBuilder()
    @@ -765,6 +783,8 @@ public final UnaryCallable createSubscriptionCallabl
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
    @@ -790,6 +810,8 @@ public final Subscription getSubscription(SubscriptionName subscription) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
    @@ -813,6 +835,8 @@ public final Subscription getSubscription(String subscription) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetSubscriptionRequest request =
        *       GetSubscriptionRequest.newBuilder()
    @@ -863,6 +887,8 @@ public final Subscription getSubscription(ProjectSubscriptionName subscription)
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetSubscriptionRequest request =
        *       GetSubscriptionRequest.newBuilder()
    @@ -887,6 +913,8 @@ public final UnaryCallable getSubscription
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   UpdateSubscriptionRequest request =
        *       UpdateSubscriptionRequest.newBuilder()
    @@ -912,6 +940,8 @@ public final Subscription updateSubscription(UpdateSubscriptionRequest request)
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   UpdateSubscriptionRequest request =
        *       UpdateSubscriptionRequest.newBuilder()
    @@ -936,6 +966,8 @@ public final UnaryCallable updateSubscr
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectName project = ProjectName.of("[PROJECT]");
        *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
    @@ -963,6 +995,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String project = ProjectName.of("[PROJECT]").toString();
        *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
    @@ -988,6 +1022,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(String project) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSubscriptionsRequest request =
        *       ListSubscriptionsRequest.newBuilder()
    @@ -1015,6 +1051,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSubscriptionsRequest request =
        *       ListSubscriptionsRequest.newBuilder()
    @@ -1043,6 +1081,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSubscriptionsRequest request =
        *       ListSubscriptionsRequest.newBuilder()
    @@ -1081,6 +1121,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   subscriptionAdminClient.deleteSubscription(subscription);
    @@ -1109,6 +1151,8 @@ public final void deleteSubscription(SubscriptionName subscription) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   subscriptionAdminClient.deleteSubscription(subscription);
    @@ -1135,6 +1179,8 @@ public final void deleteSubscription(String subscription) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   DeleteSubscriptionRequest request =
        *       DeleteSubscriptionRequest.newBuilder()
    @@ -1191,6 +1237,8 @@ public final void deleteSubscription(ProjectSubscriptionName subscription) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   DeleteSubscriptionRequest request =
        *       DeleteSubscriptionRequest.newBuilder()
    @@ -1217,6 +1265,8 @@ public final UnaryCallable deleteSubscriptionC
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   List ackIds = new ArrayList<>();
    @@ -1258,6 +1308,8 @@ public final void modifyAckDeadline(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   List ackIds = new ArrayList<>();
    @@ -1299,6 +1351,8 @@ public final void modifyAckDeadline(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyAckDeadlineRequest request =
        *       ModifyAckDeadlineRequest.newBuilder()
    @@ -1370,6 +1424,8 @@ final void modifyAckDeadline(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyAckDeadlineRequest request =
        *       ModifyAckDeadlineRequest.newBuilder()
    @@ -1399,6 +1455,8 @@ public final UnaryCallable modifyAckDeadlineCal
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   List ackIds = new ArrayList<>();
    @@ -1432,6 +1490,8 @@ public final void acknowledge(SubscriptionName subscription, List ackIds
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   List ackIds = new ArrayList<>();
    @@ -1462,6 +1522,8 @@ public final void acknowledge(String subscription, List ackIds) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   AcknowledgeRequest request =
        *       AcknowledgeRequest.newBuilder()
    @@ -1525,6 +1587,8 @@ public final void acknowledge(ProjectSubscriptionName subscription, List
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   AcknowledgeRequest request =
        *       AcknowledgeRequest.newBuilder()
    @@ -1549,6 +1613,8 @@ public final UnaryCallable acknowledgeCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   int maxMessages = 496131527;
    @@ -1579,6 +1645,8 @@ public final PullResponse pull(SubscriptionName subscription, int maxMessages) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   int maxMessages = 496131527;
    @@ -1606,6 +1674,8 @@ public final PullResponse pull(String subscription, int maxMessages) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   boolean returnImmediately = true;
    @@ -1646,6 +1716,8 @@ public final PullResponse pull(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   boolean returnImmediately = true;
    @@ -1685,6 +1757,8 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   PullRequest request =
        *       PullRequest.newBuilder()
    @@ -1785,6 +1859,8 @@ final PullResponse pull(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   PullRequest request =
        *       PullRequest.newBuilder()
    @@ -1814,6 +1890,8 @@ public final UnaryCallable pullCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   BidiStream bidiStream =
        *       subscriptionAdminClient.streamingPullCallable().call();
    @@ -1852,6 +1930,8 @@ public final UnaryCallable pullCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
    @@ -1888,6 +1968,8 @@ public final void modifyPushConfig(SubscriptionName subscription, PushConfig pus
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
    @@ -1924,6 +2006,8 @@ public final void modifyPushConfig(String subscription, PushConfig pushConfig) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyPushConfigRequest request =
        *       ModifyPushConfigRequest.newBuilder()
    @@ -1991,6 +2075,8 @@ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushCon
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyPushConfigRequest request =
        *       ModifyPushConfigRequest.newBuilder()
    @@ -2018,6 +2104,8 @@ public final UnaryCallable modifyPushConfigCalla
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    @@ -2046,6 +2134,8 @@ public final Snapshot getSnapshot(SnapshotName snapshot) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    @@ -2071,6 +2161,8 @@ public final Snapshot getSnapshot(String snapshot) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetSnapshotRequest request =
        *       GetSnapshotRequest.newBuilder()
    @@ -2127,6 +2219,8 @@ public final Snapshot getSnapshot(ProjectSnapshotName snapshot) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetSnapshotRequest request =
        *       GetSnapshotRequest.newBuilder()
    @@ -2153,6 +2247,8 @@ public final UnaryCallable getSnapshotCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectName project = ProjectName.of("[PROJECT]");
        *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
    @@ -2183,6 +2279,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String project = ProjectName.of("[PROJECT]").toString();
        *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
    @@ -2210,6 +2308,8 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSnapshotsRequest request =
        *       ListSnapshotsRequest.newBuilder()
    @@ -2240,6 +2340,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSnapshotsRequest request =
        *       ListSnapshotsRequest.newBuilder()
    @@ -2271,6 +2373,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSnapshotsRequest request =
        *       ListSnapshotsRequest.newBuilder()
    @@ -2316,6 +2420,8 @@ public final UnaryCallable listSnap
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    @@ -2364,6 +2470,8 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    @@ -2412,6 +2520,8 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    @@ -2460,6 +2570,8 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription)
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    @@ -2505,6 +2617,8 @@ public final Snapshot createSnapshot(String name, String subscription) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   CreateSnapshotRequest request =
        *       CreateSnapshotRequest.newBuilder()
    @@ -2692,6 +2806,8 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   CreateSnapshotRequest request =
        *       CreateSnapshotRequest.newBuilder()
    @@ -2720,6 +2836,8 @@ public final UnaryCallable createSnapshotCallab
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   UpdateSnapshotRequest request =
        *       UpdateSnapshotRequest.newBuilder()
    @@ -2747,6 +2865,8 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   UpdateSnapshotRequest request =
        *       UpdateSnapshotRequest.newBuilder()
    @@ -2777,6 +2897,8 @@ public final UnaryCallable updateSnapshotCallab
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   subscriptionAdminClient.deleteSnapshot(snapshot);
    @@ -2808,6 +2930,8 @@ public final void deleteSnapshot(SnapshotName snapshot) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   subscriptionAdminClient.deleteSnapshot(snapshot);
    @@ -2837,6 +2961,8 @@ public final void deleteSnapshot(String snapshot) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   DeleteSnapshotRequest request =
        *       DeleteSnapshotRequest.newBuilder()
    @@ -2899,6 +3025,8 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   DeleteSnapshotRequest request =
        *       DeleteSnapshotRequest.newBuilder()
    @@ -2927,6 +3055,8 @@ public final UnaryCallable deleteSnapshotCallable(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SeekRequest request =
        *       SeekRequest.newBuilder()
    @@ -2955,6 +3085,8 @@ public final SeekResponse seek(SeekRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SeekRequest request =
        *       SeekRequest.newBuilder()
    @@ -2979,6 +3111,8 @@ public final UnaryCallable seekCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -3037,6 +3171,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -3062,6 +3198,8 @@ public final UnaryCallable setIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -3112,6 +3250,8 @@ public final Policy getIamPolicy(String resource) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -3140,6 +3280,8 @@ public final UnaryCallable getIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    @@ -3207,6 +3349,8 @@ public final TestIamPermissionsResponse testIamPermissions(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
    index a90bfd14137d..c658184ab155 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    @@ -82,6 +82,8 @@
      * 

    For example, to set the total timeout of createSubscription to 30 seconds: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder =
      *     SubscriptionAdminSettings.newBuilder();
      * subscriptionAdminSettingsBuilder
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    index 1d3da0057bd8..0aa458c06bfc 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    @@ -66,6 +66,8 @@
      * calls that map to API methods. Sample code to get started:
      *
      * 
    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   Topic response = topicAdminClient.createTopic(name);
    @@ -101,6 +103,8 @@
      * 

    To customize credentials: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * TopicAdminSettings topicAdminSettings =
      *     TopicAdminSettings.newBuilder()
      *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    @@ -111,6 +115,8 @@
      * 

    To customize the endpoint: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * TopicAdminSettings topicAdminSettings =
      *     TopicAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
      * TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings);
    @@ -177,6 +183,8 @@ public PublisherStub getStub() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic response = topicAdminClient.createTopic(name);
    @@ -203,6 +211,8 @@ public final Topic createTopic(TopicName name) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   Topic response = topicAdminClient.createTopic(name);
    @@ -258,6 +268,8 @@ public final Topic createTopic(ProjectTopicName name) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   Topic request =
        *       Topic.newBuilder()
    @@ -288,6 +300,8 @@ public final Topic createTopic(Topic request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   Topic request =
        *       Topic.newBuilder()
    @@ -316,6 +330,8 @@ public final UnaryCallable createTopicCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   UpdateTopicRequest request =
        *       UpdateTopicRequest.newBuilder()
    @@ -340,6 +356,8 @@ public final Topic updateTopic(UpdateTopicRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   UpdateTopicRequest request =
        *       UpdateTopicRequest.newBuilder()
    @@ -363,6 +381,8 @@ public final UnaryCallable updateTopicCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   List messages = new ArrayList<>();
    @@ -391,6 +411,8 @@ public final PublishResponse publish(TopicName topic, List messag
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   List messages = new ArrayList<>();
    @@ -416,6 +438,8 @@ public final PublishResponse publish(String topic, List messages)
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   PublishRequest request =
        *       PublishRequest.newBuilder()
    @@ -440,6 +464,8 @@ public final PublishResponse publish(PublishRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   PublishRequest request =
        *       PublishRequest.newBuilder()
    @@ -463,6 +489,8 @@ public final UnaryCallable publishCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic response = topicAdminClient.getTopic(topic);
    @@ -486,6 +514,8 @@ public final Topic getTopic(TopicName topic) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   Topic response = topicAdminClient.getTopic(topic);
    @@ -533,6 +563,8 @@ public final Topic getTopic(ProjectTopicName topic) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   GetTopicRequest request =
        *       GetTopicRequest.newBuilder()
    @@ -556,6 +588,8 @@ public final Topic getTopic(GetTopicRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   GetTopicRequest request =
        *       GetTopicRequest.newBuilder()
    @@ -578,6 +612,8 @@ public final UnaryCallable getTopicCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ProjectName project = ProjectName.of("[PROJECT]");
        *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
    @@ -605,6 +641,8 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String project = ProjectName.of("[PROJECT]").toString();
        *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
    @@ -629,6 +667,8 @@ public final ListTopicsPagedResponse listTopics(String project) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicsRequest request =
        *       ListTopicsRequest.newBuilder()
    @@ -656,6 +696,8 @@ public final ListTopicsPagedResponse listTopics(ListTopicsRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicsRequest request =
        *       ListTopicsRequest.newBuilder()
    @@ -682,6 +724,8 @@ public final UnaryCallable listTopic
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicsRequest request =
        *       ListTopicsRequest.newBuilder()
    @@ -715,6 +759,8 @@ public final UnaryCallable listTopicsCall
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
    @@ -742,6 +788,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(TopicNam
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
    @@ -796,6 +844,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectT
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSubscriptionsRequest request =
        *       ListTopicSubscriptionsRequest.newBuilder()
    @@ -824,6 +874,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSubscriptionsRequest request =
        *       ListTopicSubscriptionsRequest.newBuilder()
    @@ -852,6 +904,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSubscriptionsRequest request =
        *       ListTopicSubscriptionsRequest.newBuilder()
    @@ -890,6 +944,8 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
    @@ -920,6 +976,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(TopicName topic)
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
    @@ -948,6 +1006,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(String topic) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSnapshotsRequest request =
        *       ListTopicSnapshotsRequest.newBuilder()
    @@ -979,6 +1039,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSnapshotsRequest request =
        *       ListTopicSnapshotsRequest.newBuilder()
    @@ -1010,6 +1072,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSnapshotsRequest request =
        *       ListTopicSnapshotsRequest.newBuilder()
    @@ -1048,6 +1112,8 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   topicAdminClient.deleteTopic(topic);
    @@ -1074,6 +1140,8 @@ public final void deleteTopic(TopicName topic) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   topicAdminClient.deleteTopic(topic);
    @@ -1127,6 +1195,8 @@ public final void deleteTopic(ProjectTopicName topic) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   DeleteTopicRequest request =
        *       DeleteTopicRequest.newBuilder()
    @@ -1153,6 +1223,8 @@ public final void deleteTopic(DeleteTopicRequest request) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   DeleteTopicRequest request =
        *       DeleteTopicRequest.newBuilder()
    @@ -1177,6 +1249,8 @@ public final UnaryCallable deleteTopicCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   DetachSubscriptionRequest request =
        *       DetachSubscriptionRequest.newBuilder()
    @@ -1202,6 +1276,8 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   DetachSubscriptionRequest request =
        *       DetachSubscriptionRequest.newBuilder()
    @@ -1228,6 +1304,8 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -1286,6 +1364,8 @@ public final Policy setIamPolicy(String resource, Policy policy) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -1311,6 +1391,8 @@ public final UnaryCallable setIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -1361,6 +1443,8 @@ public final Policy getIamPolicy(String resource) {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -1389,6 +1473,8 @@ public final UnaryCallable getIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    @@ -1456,6 +1542,8 @@ public final TestIamPermissionsResponse testIamPermissions(
        * 

    Sample code: * *

    {@code
    +   * // This snippet has been automatically generated for illustrative purposes only.
    +   * // It may require modifications to work in your environment.
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
    index 41ebfd68dd01..d0efac54ff3f 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    @@ -75,6 +75,8 @@
      * 

    For example, to set the total timeout of createTopic to 30 seconds: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * TopicAdminSettings.Builder topicAdminSettingsBuilder = TopicAdminSettings.newBuilder();
      * topicAdminSettingsBuilder
      *     .createTopicSettings()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    index 128d54247511..6e17761f9e07 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    @@ -27,6 +27,8 @@
      * 

    Sample for TopicAdminClient: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   Topic response = topicAdminClient.createTopic(name);
    @@ -42,6 +44,8 @@
      * 

    Sample for SubscriptionAdminClient: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    @@ -59,6 +63,8 @@
      * 

    Sample for SchemaServiceClient: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
      *   ProjectName parent = ProjectName.of("[PROJECT]");
      *   Schema schema = Schema.newBuilder().build();
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
    index 35e7f539aa4f..140ba04741d8 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
    index 2b2e725c1956..53607aafe6fa 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
    index b1e3e27ccfaf..25bb845003ce 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
    index e5cd65fb692a..4d06023b7941 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
    index 97d867601dfa..555d231b3b54 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
    index 523c0376a3d0..e199d9ae3787 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
    index 9b90ca986f21..c26fe479c05d 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    index 166775ec3c59..aaeb343d30e2 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    @@ -99,6 +99,8 @@
      * 

    For example, to set the total timeout of createTopic to 30 seconds: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * PublisherStubSettings.Builder topicAdminSettingsBuilder = PublisherStubSettings.newBuilder();
      * topicAdminSettingsBuilder
      *     .createTopicSettings()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java
    index b194653b3c60..47aac9109bb8 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
    index fb8a87653daa..a7d8fc4ae439 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    @@ -82,6 +82,8 @@
      * 

    For example, to set the total timeout of createSchema to 30 seconds: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
      *     SchemaServiceStubSettings.newBuilder();
      * schemaServiceSettingsBuilder
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java
    index 7233e2008183..8eeab5261a1f 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    index 32733fbf95de..11a87f726096 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    @@ -97,6 +97,8 @@
      * 

    For example, to set the total timeout of createSubscription to 30 seconds: * *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
      * SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder =
      *     SubscriberStubSettings.newBuilder();
      * subscriptionAdminSettingsBuilder
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java
    index e7583f2d955f..85c3e07a01fa 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java
    index e4528ae534c8..089b0b380a8f 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java
    index 78513630a5bb..31d2b2b09581 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java
    index 920917858496..53f88cfe6570 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java
    index a7fc32c58539..4ebffafed767 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java
    index 5b908db486ca..6124aab4d3c2 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java
    index 8d3f29fe0920..2615733f7d17 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java
    index a181138d93e7..9747d2ca0481 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java
    index 864f9f013bfa..92673b9d9511 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    index dbb87a03e263..d3402991af8d 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    index a3c4e4245f84..0d50563fed6e 100644
    --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java
    index 4050e3e1aa34..9526c02ab60f 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java
    index af7c5feab1fb..c4b5935cdc32 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
    index fe26eefe0f40..d415eefb4518 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java
    index 0eed7889aa68..6433bd9f9aa4 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
    index dcb2fa83b1c7..4d16d44af4e0 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2021 Google LLC
    + * Copyright 2022 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    
    From 629d05db6fb2e5c05a0d87f6a15a2b1fec8154fe Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Fri, 6 May 2022 00:30:20 +0200
    Subject: [PATCH 1033/2363] build(deps): update dependency
     org.apache.maven.plugins:maven-project-info-reports-plugin to v3.3.0 (#1104)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-project-info-reports-plugin)) | `3.2.2` -> `3.3.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/compatibility-slim/3.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/confidence-slim/3.2.2)](https://docs.renovatebot.com/merge-confidence/) |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
    
    ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
    
    ---
    
     - [ ] If you want to rebase/retry this PR, click this checkbox.
    
    ---
    
    This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub).
    ---
     java-pubsub/pom.xml | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml
    index 716e6366e43f..24c8f2329e2d 100644
    --- a/java-pubsub/pom.xml
    +++ b/java-pubsub/pom.xml
    @@ -145,7 +145,7 @@
           
             org.apache.maven.plugins
             maven-project-info-reports-plugin
    -        3.2.2
    +        3.3.0
             
               
                 
    
    From 3a85aa89c11d4f87255e278f4ef3a3f39ac3c1ad Mon Sep 17 00:00:00 2001
    From: Rajanya Dhar <95830086+rajanya-google@users.noreply.github.com>
    Date: Tue, 10 May 2022 14:19:25 -0400
    Subject: [PATCH 1034/2363] feat: Adding grpc compression support for publisher
     client (#1000)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    * Adding gRPC compression support to the library
    
    * Minor comment fix
    
    * Formatting the code
    
    * Adding unit test for compression
    
    * Adding integration test for compression
    
    * Formatting
    
    * Refactoring integration tests to add support for overriding endpoint
    
    * Adding sample for publish with compression; Updating README
    
    * Adding integration test for compression sample
    
    * Adding parameter compressionBytesThreshold to Publisher; Adding logging support in the compression example
    
    * Addressing PR comments
    
    * Addressing checkstyle
    
    * Addressed PR comment
    
    * Addressing PR comment to put a Precondition for compression and its threshold
    
    * Addressing PR review
    
    * Removing logging from example
    
    * Adding logging properties
    
    * Making the publish call unified with context as per PR comments
    
    * Removing sample code as per tianzi@'s comments
    
    * Minor fixes
    
    * Adding gRPC compression support to the library
    
    * Minor comment fix
    
    * Formatting the code
    
    * Adding unit test for compression
    
    * Adding integration test for compression
    
    * Formatting
    
    * Refactoring integration tests to add support for overriding endpoint
    
    * Adding sample for publish with compression; Updating README
    
    * Adding integration test for compression sample
    
    * Adding parameter compressionBytesThreshold to Publisher; Adding logging support in the compression example
    
    * Addressing PR comments
    
    * Addressing checkstyle
    
    * Addressed PR comment
    
    * Addressing PR comment to put a Precondition for compression and its threshold
    
    * Addressing PR review
    
    * Removing logging from example
    
    * Adding logging properties
    
    * Making the publish call unified with context as per PR comments
    
    * Removing sample code as per tianzi@'s comments
    
    * Minor fixes
    
    * Fixing IT
    
    * Creating a class variable publishContext to remove the overhead of GrpcCallContext.createDefault() with every publish call
    
    * fixing lint format
    
    * Addressed PR comments
    
    * Removing test
    
    * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.4.0 (#1105)
    
    [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.3` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/compatibility-slim/1.3.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/confidence-slim/1.3.3)](https://docs.renovatebot.com/merge-confidence/) |
    
    ---
    
    ### Release Notes
    
    
    googleapis/java-shared-config ### [`v1.4.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​140-httpsgithubcomgoogleapisjava-shared-configcomparev133v140-2022-04-28) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.3...v1.4.0) ##### Features - **java:** remove native image module ([#​471](https://togithub.com/googleapis/java-shared-config/issues/471)) ([7fcba01](https://togithub.com/googleapis/java-shared-config/commit/7fcba016b3138d7beaa4e962853f9bc80f59438c)) ##### [1.3.3](https://togithub.com/googleapis/java-shared-config/compare/v1.3.2...v1.3.3) (2022-04-19) ##### Bug Fixes - **java:** remove protobuf feature from native profile ([#​461](https://togithub.com/googleapis/java-shared-config/issues/461)) ([ffd07cb](https://togithub.com/googleapis/java-shared-config/commit/ffd07cb18ee7d45d4daee1d9ea6f6d321fdca874)) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.11 ([#​459](https://togithub.com/googleapis/java-shared-config/issues/459)) ([d20008d](https://togithub.com/googleapis/java-shared-config/commit/d20008df15209708fdf9d06828b567778190f4d0)) - update dependency com.google.cloud:native-image-support to v0.13.1 ([#​465](https://togithub.com/googleapis/java-shared-config/issues/465)) ([b202064](https://togithub.com/googleapis/java-shared-config/commit/b2020648816feb4740ad70acedfed470d7da5bcf)) ##### [1.3.2](https://togithub.com/googleapis/java-shared-config/compare/v1.3.1...v1.3.2) (2022-03-28) ##### Dependencies - revert google-java-format to 1.7 ([#​453](https://togithub.com/googleapis/java-shared-config/issues/453)) ([cbc777f](https://togithub.com/googleapis/java-shared-config/commit/cbc777f3e9ab75edb6fa2e0268a7446ae4111725)) ##### [1.3.1](https://togithub.com/googleapis/java-shared-config/compare/v1.3.0...v1.3.1) (2022-03-25) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.10 ([#​443](https://togithub.com/googleapis/java-shared-config/issues/443)) ([5b39d5e](https://togithub.com/googleapis/java-shared-config/commit/5b39d5ee15121f052226ff873b6ab101e9c71de5)) - update dependency com.google.googlejavaformat:google-java-format to v1.15.0 ([#​426](https://togithub.com/googleapis/java-shared-config/issues/426)) ([4c3c4b6](https://togithub.com/googleapis/java-shared-config/commit/4c3c4b66129632181e6bc363a0ecccf4f5aac914)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#​448](https://togithub.com/googleapis/java-shared-config/issues/448)) ([f7f518e](https://togithub.com/googleapis/java-shared-config/commit/f7f518e87d1d9feb9ac54d7c099f97d8751ee3da)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#​449](https://togithub.com/googleapis/java-shared-config/issues/449)) ([3e1c0b5](https://togithub.com/googleapis/java-shared-config/commit/3e1c0b5a1d2f4a0db88c06a0d683ed90cbc745e2))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). * fix: added exactly once delivery files to owlbot config (#1106) * chore(bazel): update version of Protobuf to v3.20.1 (#1079) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 444328399 Source-Link: https://github.com/googleapis/googleapis/commit/c7ca416c2856aad6a3f7092924e56b8cf0cb2534 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9 feat: AuditConfig for IAM v1 PiperOrigin-RevId: 439356405 Source-Link: https://github.com/googleapis/googleapis/commit/afa2ba156bd5c83ad8168030ab801a8ca84ac819 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3e40c17e1510c95fab58fc2143ccb61cceca5989 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9 * chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 (#1107) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 446250659 Source-Link: https://github.com/googleapis/googleapis/commit/dc4ef314fecf1b00833e78288cf2eb4d2b165ad1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 * build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.3.0 (#1104) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-project-info-reports-plugin)) | `3.2.2` -> `3.3.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/compatibility-slim/3.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/confidence-slim/3.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). * Formatting * Formatting Co-authored-by: WhiteSource Renovate Co-authored-by: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Co-authored-by: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com> --- .../com/google/cloud/pubsub/v1/Publisher.java | 43 +++++++++- .../google/cloud/pubsub/it/ITPubSubTest.java | 80 +++++++++++++++++-- .../cloud/pubsub/v1/PublisherImplTest.java | 25 ++++++ 3 files changed, 142 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 39302d3f7938..399d99658fd5 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -35,6 +35,7 @@ import com.google.api.gax.core.ExecutorProvider; import com.google.api.gax.core.FixedExecutorProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GrpcCallContext; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.HeaderProvider; import com.google.api.gax.rpc.NoHeaderProvider; @@ -50,6 +51,7 @@ import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.TopicNames; +import io.grpc.CallOptions; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; @@ -89,6 +91,8 @@ public class Publisher implements PublisherInterface { private static final Logger logger = Logger.getLogger(Publisher.class.getName()); + private static final String GZIP_COMPRESSION = "gzip"; + private final String topicName; private final BatchingSettings batchingSettings; @@ -114,6 +118,12 @@ public class Publisher implements PublisherInterface { private MessageFlowController flowController = null; + private final boolean enableCompression; + private final long compressionBytesThreshold; + + private final GrpcCallContext publishContext; + private final GrpcCallContext publishContextWithCompression; + /** The maximum number of messages in one request. Defined by the API. */ public static long getApiMaxRequestElementCount() { return 1000L; @@ -140,6 +150,8 @@ private Publisher(Builder builder) throws IOException { this.enableMessageOrdering = builder.enableMessageOrdering; this.messageTransform = builder.messageTransform; + this.enableCompression = builder.enableCompression; + this.compressionBytesThreshold = builder.compressionBytesThreshold; messagesBatches = new HashMap<>(); messagesBatchLock = new ReentrantLock(); @@ -191,6 +203,10 @@ private Publisher(Builder builder) throws IOException { backgroundResources = new BackgroundResourceAggregation(backgroundResourceList); shutdown = new AtomicBoolean(false); messagesWaiter = new Waiter(); + this.publishContext = GrpcCallContext.createDefault(); + this.publishContextWithCompression = + GrpcCallContext.createDefault() + .withCallOptions(CallOptions.DEFAULT.withCompression(GZIP_COMPRESSION)); } /** Topic which the publisher publishes to. */ @@ -431,13 +447,18 @@ private void publishAllWithoutInflightForKey(final String orderingKey) { } private ApiFuture publishCall(OutstandingBatch outstandingBatch) { + GrpcCallContext context = publishContext; + if (enableCompression && outstandingBatch.batchSizeBytes >= compressionBytesThreshold) { + context = publishContextWithCompression; + } return publisherStub .publishCallable() .futureCall( PublishRequest.newBuilder() .setTopic(topicName) .addAllMessages(outstandingBatch.getMessages()) - .build()); + .build(), + context); } private void publishOutstandingBatch(final OutstandingBatch outstandingBatch) { @@ -688,6 +709,8 @@ public static final class Builder { InstantiatingExecutorProvider.newBuilder() .setExecutorThreadCount(THREADS_PER_CPU * Runtime.getRuntime().availableProcessors()) .build(); + static final boolean DEFAULT_ENABLE_COMPRESSION = false; + static final long DEFAULT_COMPRESSION_BYTES_THRESHOLD = 240L; String topicName; private String endpoint = PublisherStubSettings.getDefaultEndpoint(); @@ -717,6 +740,9 @@ public PubsubMessage apply(PubsubMessage input) { } }; + private boolean enableCompression = DEFAULT_ENABLE_COMPRESSION; + private long compressionBytesThreshold = DEFAULT_COMPRESSION_BYTES_THRESHOLD; + private Builder(String topic) { this.topicName = Preconditions.checkNotNull(topic); } @@ -827,6 +853,21 @@ public Builder setEndpoint(String endpoint) { return this; } + /** Gives the ability to enable transport compression. */ + public Builder setEnableCompression(boolean enableCompression) { + this.enableCompression = enableCompression; + return this; + } + + /** + * Sets the threshold (in bytes) above which messages are compressed for transport. Only takes + * effect if setEnableCompression(true) is also called." + */ + public Builder setCompressionBytesThreshold(long compressionBytesThreshold) { + this.compressionBytesThreshold = compressionBytesThreshold; + return this; + } + /** Returns the default BatchingSettings used by the client if settings are not provided. */ public static BatchingSettings getDefaultBatchingSettings() { return DEFAULT_BATCHING_SETTINGS; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java index c72d52d3d99e..290b9927db20 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java @@ -40,11 +40,7 @@ import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Rule; -import org.junit.Test; +import org.junit.*; import org.junit.rules.Timeout; public class ITPubSubTest { @@ -403,6 +399,70 @@ public void failed(Subscriber.State from, Throwable failure) { topicAdminClient.deleteTopic(topicName); } + @Test + public void testPublishSubscribeWithCompression() throws Exception { + TopicName topicName = + TopicName.newBuilder() + .setProject(projectId) + .setTopic(formatForTest("testing-compression-topic")) + .build(); + SubscriptionName subscriptionName = + SubscriptionName.of(projectId, formatForTest("testing-compression-subscription")); + + topicAdminClient.createTopic(topicName); + + subscriptionAdminClient.createSubscription( + getSubscription(subscriptionName, topicName, PushConfig.newBuilder().build(), 10, false)); + + final BlockingQueue receiveQueue = new LinkedBlockingQueue<>(); + Subscriber subscriber = + Subscriber.newBuilder( + subscriptionName.toString(), + new MessageReceiver() { + @Override + public void receiveMessage( + final PubsubMessage message, final AckReplyConsumer consumer) { + receiveQueue.offer(MessageAndConsumer.create(message, consumer)); + } + }) + .build(); + subscriber.addListener( + new Subscriber.Listener() { + public void failed(Subscriber.State from, Throwable failure) { + receiveQueue.offer(failure); + } + }, + MoreExecutors.directExecutor()); + subscriber.startAsync(); + + Publisher publisher = Publisher.newBuilder(topicName).setEnableCompression(true).build(); + + String msg1 = generateMessage("msg1", 1000); + String msg2 = generateMessage("msg2", 1500); + publisher + .publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8(msg1)).build()) + .get(); + publisher + .publish(PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8(msg2)).build()) + .get(); + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + + // Ack the first message. + MessageAndConsumer toAck1 = pollQueueMessageAndConsumer(receiveQueue); + toAck1.consumer().ack(); + + // Ack the second message. + MessageAndConsumer toAck2 = pollQueueMessageAndConsumer(receiveQueue); + toAck2.consumer().ack(); + + assertNotEquals(toAck1.message().getData(), toAck2.message().getData()); + + subscriber.stopAsync().awaitTerminated(); + subscriptionAdminClient.deleteSubscription(subscriptionName); + topicAdminClient.deleteTopic(topicName); + } + private MessageAndConsumer pollQueueMessageAndConsumer(BlockingQueue queue) throws InterruptedException { Object obj = pollQueue(queue); @@ -434,4 +494,14 @@ private Object pollQueue(BlockingQueue queue) throws InterruptedExceptio return obj; } + + /** Generates message of given bytes by repeatedly concatenating a token. */ + private String generateMessage(String token, int bytes) { + String result = ""; + int tokenBytes = token.length(); + for (int i = 0; i < Math.floor(bytes / tokenBytes) + 1; i++) { + result = result.concat(token); + } + return result; + } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index c41931de6ee6..9985efc6be87 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -282,6 +282,31 @@ public void testPublishMixedSizeAndDuration() throws Exception { shutdownTestPublisher(publisher); } + @Test + public void testPublishWithCompression() throws Exception { + Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(2L) + .setDelayThreshold(Duration.ofSeconds(100)) + .build()) + .setEnableCompression(true) + .setCompressionBytesThreshold(100) + .build(); + + testPublisherServiceImpl.addPublishResponse( + PublishResponse.newBuilder().addMessageIds("1").addMessageIds("2")); + ApiFuture publishFuture1 = sendTestMessage(publisher, "A"); + ApiFuture publishFuture2 = sendTestMessage(publisher, "B"); + assertEquals("1", publishFuture1.get()); + assertEquals("2", publishFuture2.get()); + + fakeExecutor.advanceTime(Duration.ofSeconds(100)); + shutdownTestPublisher(publisher); + } + private ApiFuture sendTestMessage(Publisher publisher, String data) { return publisher.publish( PubsubMessage.newBuilder().setData(ByteString.copyFromUtf8(data)).build()); From e998b52718d3ae1d8c88df659111a6a7125d945d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 May 2022 15:13:01 -0400 Subject: [PATCH 1035/2363] chore(main): release 1.117.0 (#1095) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 26 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 +++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 8 files changed, 44 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 3837e1ddcc64..78a950cbd59d 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## [1.117.0](https://github.com/googleapis/java-pubsub/compare/v1.116.4...v1.117.0) (2022-05-10) + + +### Features + +* Adding grpc compression support for publisher client ([#1000](https://github.com/googleapis/java-pubsub/issues/1000)) ([4ad1a3f](https://github.com/googleapis/java-pubsub/commit/4ad1a3fc6e334b6b4efe2167dbe6976c5b5625a6)) +* AuditConfig for IAM v1 ([a1c9b74](https://github.com/googleapis/java-pubsub/commit/a1c9b7448494f50736b9eb5864d49d38a7936280)) + + +### Bug Fixes + +* added exactly once delivery files to owlbot config ([#1106](https://github.com/googleapis/java-pubsub/issues/1106)) ([bb6f105](https://github.com/googleapis/java-pubsub/commit/bb6f105873f94faf564773d821b8d5d01bac94ca)) +* adding BetaApi annotation on AckReplyConsumerWithResponse for Exactly Once Delivery ([#1097](https://github.com/googleapis/java-pubsub/issues/1097)) ([0e89054](https://github.com/googleapis/java-pubsub/commit/0e890546727657ddb5cb23e58d9c57dd65d978f2)) +* removed beta api annotation for ordering keys ([#1094](https://github.com/googleapis/java-pubsub/issues/1094)) ([3f140fb](https://github.com/googleapis/java-pubsub/commit/3f140fbacf3a157b503b081e7c6964a60ae09466)) + + +### Dependencies + +* error_prone_annotations from the shared deps BOM ([#1102](https://github.com/googleapis/java-pubsub/issues/1102)) ([3bb2bec](https://github.com/googleapis/java-pubsub/commit/3bb2bec6534e97b2ee84ac5271819f3aea568a85)) +* update dependency com.google.protobuf:protobuf-java-util to v3.20.1 ([#1100](https://github.com/googleapis/java-pubsub/issues/1100)) ([063b7aa](https://github.com/googleapis/java-pubsub/commit/063b7aa3e10fc4f74278fc36c73af8ac68dce26d)) + + +### Documentation + +* **sample:** remove unused native-image-support dependency ([#1103](https://github.com/googleapis/java-pubsub/issues/1103)) ([e7d9000](https://github.com/googleapis/java-pubsub/commit/e7d9000cd0c236d5ff222e13ca3bc25911aa9bd9)) + ### [1.116.4](https://github.com/googleapis/java-pubsub/compare/v1.116.3...v1.116.4) (2022-04-19) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3fb58983b5be..262a019eac10 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.116.5-SNAPSHOT + 1.117.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.116.5-SNAPSHOT + 1.117.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.5-SNAPSHOT + 1.99.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.5-SNAPSHOT + 1.99.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f5cfdc5a3877..1c9a15b9f0bc 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.116.5-SNAPSHOT + 1.117.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.116.5-SNAPSHOT + 1.117.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 27c39206b658..7620fa30e359 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.5-SNAPSHOT + 1.99.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.5-SNAPSHOT + 1.117.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 24c8f2329e2d..700d99c98a62 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.116.5-SNAPSHOT + 1.117.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.5-SNAPSHOT + 1.99.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.98.5-SNAPSHOT + 1.99.0 com.google.cloud google-cloud-pubsub - 1.116.5-SNAPSHOT + 1.117.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 62fca3e71351..fd4229bfdfb3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.98.5-SNAPSHOT + 1.99.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.116.5-SNAPSHOT + 1.117.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5e6beb873a15..3837ebad905e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.116.5-SNAPSHOT + 1.117.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3b84b7a0583f..905fb7e571a2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.116.4:1.116.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.98.4:1.98.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.98.4:1.98.5-SNAPSHOT +google-cloud-pubsub:1.117.0:1.117.0 +grpc-google-cloud-pubsub-v1:1.99.0:1.99.0 +proto-google-cloud-pubsub-v1:1.99.0:1.99.0 From 7708c9de15b8666efa8d0ccc0a4f15753f4c6e01 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 May 2022 19:30:23 +0000 Subject: [PATCH 1036/2363] chore(main): release 1.117.1-SNAPSHOT (#1108) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 262a019eac10..074b00562749 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.117.0 + 1.117.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.117.0 + 1.117.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.99.0 + 1.99.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.99.0 + 1.99.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1c9a15b9f0bc..96caece2d3b2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.117.0 + 1.117.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.117.0 + 1.117.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7620fa30e359..27e6b281e05c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.99.0 + 1.99.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.117.0 + 1.117.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 700d99c98a62..84752275831f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.117.0 + 1.117.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.99.0 + 1.99.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.99.0 + 1.99.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.117.0 + 1.117.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index fd4229bfdfb3..4a888627ddf2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.99.0 + 1.99.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.117.0 + 1.117.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3837ebad905e..231c036957b6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.117.0 + 1.117.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 905fb7e571a2..592e019bd34c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.117.0:1.117.0 -grpc-google-cloud-pubsub-v1:1.99.0:1.99.0 -proto-google-cloud-pubsub-v1:1.99.0:1.99.0 +google-cloud-pubsub:1.117.0:1.117.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.99.0:1.99.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.99.0:1.99.1-SNAPSHOT From 399724f43cf7ba71f4f3be2db7e6c85d2f53d6fd Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Wed, 11 May 2022 13:04:48 -0400 Subject: [PATCH 1037/2363] feat: creating java backport (#1120) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: creating java backport * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 16 ++++++++++++++++ java-pubsub/README.md | 4 ++-- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 654fffe76767..1a289840090a 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -14,3 +14,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.114.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.116.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index f1bed551b5f5..000c985d7bbe 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -66,6 +66,22 @@ branchProtectionRules: - Kokoro - Against Pub/Sub Lite samples - cla/google - OwlBot Post Processor + - pattern: 1.116.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - Kokoro - Against Pub/Sub Lite samples + - cla/google + - OwlBot Post Processor permissionRules: - team: yoshi-admins permission: admin diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 593f91dec322..e682dceb1255 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.116.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.117.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.116.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.117.0" ``` ## Authentication From 79ff4dd8b24ed565b6f2ad51186b56e27d6dbcd8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 May 2022 20:18:05 +0200 Subject: [PATCH 1038/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.117.0 (#1124) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.117.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e682dceb1255..ac5201b220ca 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.116.4 + 1.117.0 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f651e90474db..9bae0c4109f1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.116.4 + 1.117.0 From 59190d7686da14bc76896a3b8167a2f5aade6a1d Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Fri, 13 May 2022 10:27:20 -0400 Subject: [PATCH 1039/2363] feat: next release from main branch is 1.118.0 (#1127) --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 1a289840090a..91df64cd7925 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -18,3 +18,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.116.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-lts + branch: 1.117.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 000c985d7bbe..72ed88bdd6a5 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -82,6 +82,22 @@ branchProtectionRules: - Kokoro - Against Pub/Sub Lite samples - cla/google - OwlBot Post Processor + - pattern: 1.117.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - Kokoro - Against Pub/Sub Lite samples + - cla/google + - OwlBot Post Processor permissionRules: - team: yoshi-admins permission: admin From fef64ac5d413c98a420ceb003df76113215e6d7c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 13 May 2022 22:56:36 +0200 Subject: [PATCH 1040/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v25.3.0 (#1132) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v25.3.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ac5201b220ca..17adddf9c519 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.2.0') +implementation platform('com.google.cloud:libraries-bom:25.3.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index e57b72d442ad..543ba126e9e3 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f73529fd14c8..9dfa63a45821 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import From 473f35eb8f0a2ad119422188680742bcbd8475dd Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Tue, 17 May 2022 11:46:15 -0700 Subject: [PATCH 1041/2363] samples: publish with gRPC compression (#1131) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: publish with gRPC compression * lint * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * add license header * remove explicit versioning in pom * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 1 + .../PublishWithGrpcCompressionExample.java | 75 +++++++++++++++++++ .../src/main/resources/logging.properties | 23 ++++++ .../src/test/java/pubsub/PublisherIT.java | 5 ++ 4 files changed, 104 insertions(+) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java create mode 100644 java-pubsub/samples/snippets/src/main/resources/logging.properties diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 17adddf9c519..c21360b2fee6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -270,6 +270,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Publish With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | | Publish With Error Handler Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | | Publish With Flow Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | +| Publish With Grpc Compression Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java) | | Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | | Publish With Retry Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | | Publisher Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublisherExample.java) | diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java new file mode 100644 index 000000000000..436428286b0d --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java @@ -0,0 +1,75 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +import com.google.api.core.ApiFuture; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; + +public class PublishWithGrpcCompressionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + // Choose an existing topic. + String topicId = "your-topic-id"; + + publishWithGrpcCompressionExample(projectId, topicId); + } + + public static void publishWithGrpcCompressionExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + TopicName topicName = TopicName.of(projectId, topicId); + + // Create a publisher and set enable compression to true. + Publisher publisher = null; + try { + // Enable compression and configure the compression threshold to 10 bytes (default to 240 B). + // Publish requests of sizes > 10 B (excluding the request headers) will get compressed. + // The number of messages in a publish request is determined by publisher batch settings. + // Batching is turned off by default, i.e. each publish request contains only one message. + publisher = + Publisher.newBuilder(topicName) + .setEnableCompression(true) + .setCompressionBytesThreshold(10L) + .build(); + + byte[] bytes = new byte[1024]; + ByteString data = ByteString.copyFrom(bytes); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic). + // You can look up the actual size of the outbound data using the Java Logging API. + // Configure logging properties as shown in + // https://github.com/googleapis/java-pubsub/tree/main/samples/snippets/src/main/resources/logging.properties + // and look for "OUTBOUND DATA" with "length=" in the output log. + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + String messageId = messageIdFuture.get(); + System.out.println("Published a compressed message of message ID: " + messageId); + } finally { + if (publisher != null) { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} diff --git a/java-pubsub/samples/snippets/src/main/resources/logging.properties b/java-pubsub/samples/snippets/src/main/resources/logging.properties new file mode 100644 index 000000000000..b4c616c803df --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/resources/logging.properties @@ -0,0 +1,23 @@ +## Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# To run the example with the following logging config: +# cd samples/snippets/ +# mvn clean exec:java -Dexec.mainClass=pubsub.PublishWithGrpcCompression -Djava.util.logging.config.file=src/main/resources/logging.properties + +handlers=java.util.logging.FileHandler +.level=FINE +java.util.logging.FileHandler.pattern=log.txt +java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter +java.util.logging.SimpleFormatter.format=[%1$tF %1$tT] %4$-5s %5$s %n \ No newline at end of file diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java index b22912d47efa..cd86aaef6c1c 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/PublisherIT.java @@ -124,5 +124,10 @@ public void testPublisher() throws Exception { for (int i = 1; i <= 4; i++) { assertThat(bout.toString()).contains("message" + i); } + + bout.reset(); + // Test publish with gRPC compression. + PublishWithGrpcCompressionExample.publishWithGrpcCompressionExample(projectId, topicId); + assertThat(bout.toString()).contains("Published a compressed message of message ID: "); } } From a7fbcba487d469c5f58ccde2959daf727148a6b9 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Tue, 17 May 2022 12:28:05 -0700 Subject: [PATCH 1042/2363] samples: pubsub_publisher_with_compression (#1134) --- .../src/main/java/pubsub/PublishWithGrpcCompressionExample.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java index 436428286b0d..ccbf7b5a8725 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java @@ -16,6 +16,7 @@ package pubsub; +// [START pubsub_publisher_with_compression] import com.google.api.core.ApiFuture; import com.google.cloud.pubsub.v1.Publisher; import com.google.protobuf.ByteString; @@ -73,3 +74,4 @@ public static void publishWithGrpcCompressionExample(String projectId, String to } } } +// [END pubsub_publisher_with_compression] From 32566ac7d3e2b35a4c1e68538b9d32d5e1ad50d2 Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Wed, 18 May 2022 10:30:55 -0400 Subject: [PATCH 1043/2363] fix: Too many leases (#1135) * Moved the ackIdsInRequest for modack operations to the correct place. * Wrote tests around expected batching/partition behavior to verify change works as expected --- .../v1/StreamingSubscriberConnection.java | 10 ++- .../v1/StreamingSubscriberConnectionTest.java | 64 +++++++++++++++++-- 2 files changed, 61 insertions(+), 13 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 78f35efea050..b19a1cbbe9af 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -431,9 +431,9 @@ private void sendModackOperations( // Send modacks int pendingOperations = 0; for (ModackRequestData modackRequestData : modackRequestDataList) { - List ackIdsInRequest = new ArrayList<>(); for (List ackRequestDataInRequestList : Lists.partition(modackRequestData.getAckRequestData(), MAX_PER_REQUEST_CHANGES)) { + List ackIdsInRequest = new ArrayList<>(); for (AckRequestData ackRequestData : ackRequestDataInRequestList) { ackIdsInRequest.add(ackRequestData.getAckId()); if (ackRequestData.hasMessageFuture()) { @@ -511,9 +511,10 @@ public void onFailure(Throwable t) { // Remove from our pending operations ackOperationsWaiter.incrementPendingCount(-1); + Level level = isAlive() ? Level.WARNING : Level.FINER; + logger.log(level, "failed to send operations", t); + if (!getExactlyOnceDeliveryEnabled()) { - Level level = isAlive() ? Level.WARNING : Level.FINER; - logger.log(level, "failed to send operations", t); return; } @@ -578,9 +579,6 @@ public void run() { currentBackoffMillis, TimeUnit.MILLISECONDS); } - - Level level = isAlive() ? Level.WARNING : Level.FINER; - logger.log(level, "failed to send operations", t); } }; } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index d8e1878dd08f..95f8897a4b86 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -26,6 +26,7 @@ import com.google.api.gax.core.Distribution; import com.google.api.gax.rpc.StatusCode; import com.google.cloud.pubsub.v1.stub.SubscriberStub; +import com.google.common.collect.Lists; import com.google.protobuf.Any; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.ModifyAckDeadlineRequest; @@ -71,8 +72,8 @@ public class StreamingSubscriberConnectionTest { "TRANSIENT_FAILURE_SERVICE_UNAVAILABLE"; private static final String PERMANENT_FAILURE_OTHER = "I_DO_NOT_MATCH_ANY_KNOWN_ERRORS"; - private static int MOCK_ACK_EXTENSION_DEFAULT = 10; - private static Duration ACK_EXPIRATION_PADDING_DEFAULT = Duration.ofSeconds(10); + private static int MOCK_ACK_EXTENSION_DEFAULT_SECONDS = 10; + private static Duration ACK_EXPIRATION_PADDING_DEFAULT_DURATION = Duration.ofSeconds(10); private static int MAX_DURATION_PER_ACK_EXTENSION_DEFAULT_SECONDS = 10; @Before @@ -105,7 +106,8 @@ public void testSendAckOperationsExactlyOnceDisabledNoMessageFutures() { ModackRequestData modackRequestDataSuccess = new ModackRequestData( - MOCK_ACK_EXTENSION_DEFAULT, AckRequestData.newBuilder(MOCK_ACK_ID_SUCCESS).build()); + MOCK_ACK_EXTENSION_DEFAULT_SECONDS, + AckRequestData.newBuilder(MOCK_ACK_ID_SUCCESS).build()); modackRequestDataList.add(modackRequestDataSuccess); ModackRequestData modackRequestDataNack = @@ -138,7 +140,8 @@ public void testSendAckOperationsExactlyOnceEnabledMessageFuturesModacks() { Map errorInfoMetadataMapInitialRequest = new HashMap(); List modackRequestDataList = new ArrayList(); - ModackRequestData modackRequestDataDefault = new ModackRequestData(MOCK_ACK_EXTENSION_DEFAULT); + ModackRequestData modackRequestDataDefault = + new ModackRequestData(MOCK_ACK_EXTENSION_DEFAULT_SECONDS); // Nack SUCCESS SettableApiFuture messageFutureSuccessExpected = SettableApiFuture.create(); @@ -218,14 +221,14 @@ public void testSendAckOperationsExactlyOnceEnabledMessageFuturesModacks() { ModifyAckDeadlineRequest.newBuilder() .setSubscription(MOCK_SUBSCRIPTION_NAME) .addAllAckIds(ackIdsInitialRequest) - .setAckDeadlineSeconds(MOCK_ACK_EXTENSION_DEFAULT) + .setAckDeadlineSeconds(MOCK_ACK_EXTENSION_DEFAULT_SECONDS) .build(); ModifyAckDeadlineRequest modifyAckDeadlineRequestRetry = ModifyAckDeadlineRequest.newBuilder() .setSubscription(MOCK_SUBSCRIPTION_NAME) .addAllAckIds(ackIdsRetryRequest) - .setAckDeadlineSeconds(MOCK_ACK_EXTENSION_DEFAULT) + .setAckDeadlineSeconds(MOCK_ACK_EXTENSION_DEFAULT_SECONDS) .build(); // Set mock grpc responses @@ -450,6 +453,53 @@ public void testSetFailureResponseOutstandingMessages() { }); } + @Test + public void testMaxPerRequestChanges() { + // Setup mocks + List modackRequestDataList = new ArrayList(); + List ackRequestDataList = new ArrayList(); + + int numAckIds = 3000; + int numMaxPerRequestChanges = 1000; + + List mockAckIds = new ArrayList(); + + for (int i = 0; i < numAckIds; i++) { + String mockAckId = "MOCK-ACK-ID-" + i; + mockAckIds.add(mockAckId); + ackRequestDataList.add(AckRequestData.newBuilder(mockAckId).build()); + } + + modackRequestDataList.add( + new ModackRequestData(MOCK_ACK_EXTENSION_DEFAULT_SECONDS, ackRequestDataList)); + + // Instantiate class and run operation(s) + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnection(false); + streamingSubscriberConnection.sendAckOperations(ackRequestDataList); + streamingSubscriberConnection.sendModackOperations(modackRequestDataList); + + // Assert expected behavior + for (List mockAckIdsInRequest : Lists.partition(mockAckIds, numMaxPerRequestChanges)) { + AcknowledgeRequest expectedAcknowledgeRequest = + AcknowledgeRequest.newBuilder() + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .addAllAckIds(mockAckIdsInRequest) + .build(); + verify(mockSubscriberStub.acknowledgeCallable(), times(1)) + .futureCall(expectedAcknowledgeRequest); + + ModifyAckDeadlineRequest expectedModifyAckDeadlineRequest = + ModifyAckDeadlineRequest.newBuilder() + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .addAllAckIds(mockAckIdsInRequest) + .setAckDeadlineSeconds(MOCK_ACK_EXTENSION_DEFAULT_SECONDS) + .build(); + verify(mockSubscriberStub.modifyAckDeadlineCallable(), times(1)) + .futureCall(expectedModifyAckDeadlineRequest); + } + } + private StreamingSubscriberConnection getStreamingSubscriberConnection( boolean exactlyOnceDeliveryEnabled) { StreamingSubscriberConnection streamingSubscriberConnection = @@ -466,7 +516,7 @@ private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilde StreamingSubscriberConnection.Builder builder) { return builder .setSubscription(MOCK_SUBSCRIPTION_NAME) - .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT) + .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT_DURATION) .setAckLatencyDistribution(mock(Distribution.class)) .setSubscriberStub(mockSubscriberStub) .setChannelAffinity(0) From 9d325791b8cdc5df2d204fa2ccefd98bd2f6db52 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 18 May 2022 17:21:19 -0400 Subject: [PATCH 1044/2363] chore(main): release 1.118.0 (#1125) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 78a950cbd59d..368f95ce4d6c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.118.0](https://github.com/googleapis/java-pubsub/compare/v1.117.0...v1.118.0) (2022-05-18) + + +### Features + +* creating java backport ([#1120](https://github.com/googleapis/java-pubsub/issues/1120)) ([d88f417](https://github.com/googleapis/java-pubsub/commit/d88f4175356b0fdeb0697cfb1a7e6cd83ac0b7a5)) +* next release from main branch is 1.118.0 ([#1127](https://github.com/googleapis/java-pubsub/issues/1127)) ([67605a7](https://github.com/googleapis/java-pubsub/commit/67605a7efb36da5b9e123efb8fe69c58d4cfcbfd)) + + +### Bug Fixes + +* Too many leases ([#1135](https://github.com/googleapis/java-pubsub/issues/1135)) ([c9bcec5](https://github.com/googleapis/java-pubsub/commit/c9bcec531bf175684306e50eaf7ef96ee60cba78)) + ## [1.117.0](https://github.com/googleapis/java-pubsub/compare/v1.116.4...v1.117.0) (2022-05-10) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 074b00562749..9e6bebe9474c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.117.1-SNAPSHOT + 1.118.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.117.1-SNAPSHOT + 1.118.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.99.1-SNAPSHOT + 1.100.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.99.1-SNAPSHOT + 1.100.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 96caece2d3b2..035bcfbea576 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.117.1-SNAPSHOT + 1.118.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.117.1-SNAPSHOT + 1.118.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 27e6b281e05c..70af4fe54a7a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.99.1-SNAPSHOT + 1.100.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.117.1-SNAPSHOT + 1.118.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 84752275831f..527d599e5e5a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.117.1-SNAPSHOT + 1.118.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.99.1-SNAPSHOT + 1.100.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.99.1-SNAPSHOT + 1.100.0 com.google.cloud google-cloud-pubsub - 1.117.1-SNAPSHOT + 1.118.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4a888627ddf2..4b36782f5d35 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.99.1-SNAPSHOT + 1.100.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.117.1-SNAPSHOT + 1.118.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 231c036957b6..aa9bde7be481 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.117.1-SNAPSHOT + 1.118.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 592e019bd34c..5db3331ddd37 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.117.0:1.117.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.99.0:1.99.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.99.0:1.99.1-SNAPSHOT +google-cloud-pubsub:1.118.0:1.118.0 +grpc-google-cloud-pubsub-v1:1.100.0:1.100.0 +proto-google-cloud-pubsub-v1:1.100.0:1.100.0 From f3248b4d626c6bee39cbbc3f73912c49e8dc4713 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 18 May 2022 21:34:12 +0000 Subject: [PATCH 1045/2363] chore(main): release 1.118.1-SNAPSHOT (#1140) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9e6bebe9474c..72eadabf246e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.118.0 + 1.118.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.118.0 + 1.118.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.100.0 + 1.100.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.100.0 + 1.100.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 035bcfbea576..8fc1aaa519f2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.118.0 + 1.118.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.118.0 + 1.118.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 70af4fe54a7a..d90f0766c142 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.100.0 + 1.100.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.118.0 + 1.118.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 527d599e5e5a..892da34d959e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.118.0 + 1.118.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.100.0 + 1.100.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.100.0 + 1.100.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.118.0 + 1.118.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4b36782f5d35..f0c8a7a22d48 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.100.0 + 1.100.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.118.0 + 1.118.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index aa9bde7be481..9cfef835e1ca 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.118.0 + 1.118.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 5db3331ddd37..0f9e90af2f36 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.118.0:1.118.0 -grpc-google-cloud-pubsub-v1:1.100.0:1.100.0 -proto-google-cloud-pubsub-v1:1.100.0:1.100.0 +google-cloud-pubsub:1.118.0:1.118.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.100.0:1.100.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.100.0:1.100.1-SNAPSHOT From 7207e00a7f1594b25a6985113a18cf16204b1c38 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 17:19:23 +0200 Subject: [PATCH 1046/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 (#1142) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 892da34d959e..75e0aade18d6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.10.0 + 2.11.0 pom import From 87dbcb5e50cf34b2563afbd8abfe26bedde58582 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 23:02:19 +0200 Subject: [PATCH 1047/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.118.0 (#1143) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.117.0` -> `1.118.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.118.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.118.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.118.0/compatibility-slim/1.117.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.118.0/confidence-slim/1.117.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c21360b2fee6..520bd1d21cbe 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.117.0 + 1.118.0 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.117.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.118.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.117.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.118.0" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 9bae0c4109f1..3ae07c534ac9 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.117.0 + 1.118.0 From 4c4d856af31ccb102dd59513f10e07498702f2b6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 23:04:28 +0200 Subject: [PATCH 1048/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.7.1 (#1141) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.6.1` -> `2.7.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/compatibility-slim/2.6.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.7.1/confidence-slim/2.6.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3ae07c534ac9..7e52150aa063 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.6.1 + 2.7.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9cfef835e1ca..1bc8c2c71828 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.6.1 + 2.7.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9dfa63a45821..53029225ce2f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.6.1 + 2.7.1 tests From 308b4d7c594d73edd7eed6635bafaf8c4c1b39bf Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 19 May 2022 21:20:33 +0000 Subject: [PATCH 1049/2363] feat: add build scripts for native image testing in Java 17 (#1440) (#1145) Source-Link: https://github.com/googleapis/synthtool/commit/505ce5a7edb58bf6d9d4de10b4bb4e81000ae324 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 --- java-pubsub/.github/.OwlBot.lock.yaml | 4 +-- .../.kokoro/presubmit/graalvm-native-17.cfg | 33 +++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index f60d774937f6..a79f06271b60 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 -# created: 2022-04-06T16:30:03.627422514Z + digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 +# created: 2022-05-19T15:12:45.278246753Z diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg new file mode 100644 index 000000000000..a3f7fb9d4943 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -0,0 +1,33 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm17" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} \ No newline at end of file From 977d1e2124ec760ba1e89005c2f5b3f4c3ecdb1b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 23:22:20 +0200 Subject: [PATCH 1050/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 (#1148) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.11.0` -> `2.12.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/compatibility-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/confidence-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v2.12.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2120-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2110v2120-2022-05-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.11.0...v2.12.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-shared-dependencies/issues/1440)) ([#​697](https://togithub.com/googleapis/java-shared-dependencies/issues/697)) ([f10ec4e](https://togithub.com/googleapis/java-shared-dependencies/commit/f10ec4e664d8fde868effe366b7182a5fad08dd0)) ##### Dependencies - update gax.version to v2.18.1 ([#​695](https://togithub.com/googleapis/java-shared-dependencies/issues/695)) ([09bc61c](https://togithub.com/googleapis/java-shared-dependencies/commit/09bc61c9152a99bfe87554a07324f15ae6217d6e)) - update google.core.version to v2.7.1 ([#​698](https://togithub.com/googleapis/java-shared-dependencies/issues/698)) ([43de259](https://togithub.com/googleapis/java-shared-dependencies/commit/43de2593f1a6e8fa5e34799364ab683246ddd449))
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 75e0aade18d6..3eefe0329651 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.11.0 + 2.12.0 pom import From 2a6519709a7b760c9b8a357a5a5ae21e04acaf83 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 23 May 2022 15:07:32 -0400 Subject: [PATCH 1051/2363] feat: add BigQuery configuration for subscriptions (#1133) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add BigQuery configuration for subscriptions PiperOrigin-RevId: 449031535 Source-Link: https://github.com/googleapis/googleapis/commit/feec34dfac930eb0ab8c3e72ff5794c3f4c5924d Source-Link: https://github.com/googleapis/googleapis-gen/commit/89664e9708c19d532c63f7a16fd79cb631d87aa1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODk2NjRlOTcwOGMxOWQ1MzJjNjNmN2ExNmZkNzljYjYzMWQ4N2FhMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../pubsub/v1/SubscriptionAdminClient.java | 18 +- .../v1/SubscriptionAdminClientTest.java | 8 + .../com/google/pubsub/v1/BigQueryConfig.java | 1318 +++++++++++++++++ .../pubsub/v1/BigQueryConfigOrBuilder.java | 131 ++ .../com/google/pubsub/v1/PubsubProto.java | 533 +++---- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 705 ++++++++- .../pubsub/v1/SubscriptionOrBuilder.java | 90 +- .../main/proto/google/pubsub/v1/pubsub.proto | 78 +- 10 files changed, 2591 insertions(+), 300 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 9b48ca018b25..f65dba1190a1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -235,8 +235,8 @@ public SubscriberStub getStub() { * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. * @param 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. + * configure it. Either `pushConfig` or `bigQueryConfig` can be set, but not both. If both are + * empty, then the subscriber will pull and ack messages using API methods. * @param ackDeadlineSeconds 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 @@ -303,8 +303,8 @@ public final Subscription createSubscription( * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. * @param 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. + * configure it. Either `pushConfig` or `bigQueryConfig` can be set, but not both. If both are + * empty, then the subscriber will pull and ack messages using API methods. * @param ackDeadlineSeconds 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 @@ -371,8 +371,8 @@ public final Subscription createSubscription( * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. * @param 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. + * configure it. Either `pushConfig` or `bigQueryConfig` can be set, but not both. If both are + * empty, then the subscriber will pull and ack messages using API methods. * @param ackDeadlineSeconds 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 @@ -439,8 +439,8 @@ public final Subscription createSubscription( * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. * @param 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. + * configure it. Either `pushConfig` or `bigQueryConfig` can be set, but not both. If both are + * empty, then the subscriber will pull and ack messages using API methods. * @param ackDeadlineSeconds 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 @@ -494,6 +494,7 @@ public final Subscription createSubscription( * .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) * .setPushConfig(PushConfig.newBuilder().build()) + * .setBigqueryConfig(BigQueryConfig.newBuilder().build()) * .setAckDeadlineSeconds(2135351438) * .setRetainAckedMessages(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -752,6 +753,7 @@ public final Subscription createSubscription( * .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) * .setPushConfig(PushConfig.newBuilder().build()) + * .setBigqueryConfig(BigQueryConfig.newBuilder().build()) * .setAckDeadlineSeconds(2135351438) * .setRetainAckedMessages(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index d3402991af8d..e3476adf7af2 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -46,6 +46,7 @@ import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.BigQueryConfig; import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeadLetterPolicy; import com.google.pubsub.v1.DeleteSnapshotRequest; @@ -140,6 +141,7 @@ public void createSubscriptionTest() throws Exception { .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -202,6 +204,7 @@ public void createSubscriptionTest2() throws Exception { .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -264,6 +267,7 @@ public void createSubscriptionTest3() throws Exception { .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -326,6 +330,7 @@ public void createSubscriptionTest4() throws Exception { .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -388,6 +393,7 @@ public void getSubscriptionTest() throws Exception { .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -440,6 +446,7 @@ public void getSubscriptionTest2() throws Exception { .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -492,6 +499,7 @@ public void updateSubscriptionTest() throws Exception { .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java new file mode 100644 index 000000000000..fb58c043bdc7 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -0,0 +1,1318 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Configuration for a BigQuery subscription.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.BigQueryConfig} + */ +public final class BigQueryConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.BigQueryConfig) + BigQueryConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryConfig.newBuilder() to construct. + private BigQueryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryConfig() { + table_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BigQueryConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + table_ = s; + break; + } + case 16: + { + useTopicSchema_ = input.readBool(); + break; + } + case 24: + { + writeMetadata_ = input.readBool(); + break; + } + case 32: + { + dropUnknownFields_ = input.readBool(); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigQueryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.BigQueryConfig.class, + com.google.pubsub.v1.BigQueryConfig.Builder.class); + } + + /** + * + * + *
    +   * Possible states for a BigQuery subscription.
    +   * 
    + * + * Protobuf enum {@code google.pubsub.v1.BigQueryConfig.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The subscription can actively send messages to BigQuery
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * Cannot write to the BigQuery table because of permission denied errors.
    +     * 
    + * + * PERMISSION_DENIED = 2; + */ + PERMISSION_DENIED(2), + /** + * + * + *
    +     * Cannot write to the BigQuery table because it does not exist.
    +     * 
    + * + * NOT_FOUND = 3; + */ + NOT_FOUND(3), + /** + * + * + *
    +     * Cannot write to the BigQuery table due to a schema mismatch.
    +     * 
    + * + * SCHEMA_MISMATCH = 4; + */ + SCHEMA_MISMATCH(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The subscription can actively send messages to BigQuery
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +     * Cannot write to the BigQuery table because of permission denied errors.
    +     * 
    + * + * PERMISSION_DENIED = 2; + */ + public static final int PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
    +     * Cannot write to the BigQuery table because it does not exist.
    +     * 
    + * + * NOT_FOUND = 3; + */ + public static final int NOT_FOUND_VALUE = 3; + /** + * + * + *
    +     * Cannot write to the BigQuery table due to a schema mismatch.
    +     * 
    + * + * SCHEMA_MISMATCH = 4; + */ + public static final int SCHEMA_MISMATCH_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return PERMISSION_DENIED; + case 3: + return NOT_FOUND; + case 4: + return SCHEMA_MISMATCH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.BigQueryConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.BigQueryConfig.State) + } + + public static final int TABLE_FIELD_NUMBER = 1; + private volatile java.lang.Object table_; + /** + * + * + *
    +   * The name of the table to which to write data, of the form
    +   * {projectId}:{datasetId}.{tableId}
    +   * 
    + * + * string table = 1; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } + } + /** + * + * + *
    +   * The name of the table to which to write data, of the form
    +   * {projectId}:{datasetId}.{tableId}
    +   * 
    + * + * string table = 1; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USE_TOPIC_SCHEMA_FIELD_NUMBER = 2; + private boolean useTopicSchema_; + /** + * + * + *
    +   * When true, use the topic's schema as the columns to write to in BigQuery,
    +   * if it exists.
    +   * 
    + * + * bool use_topic_schema = 2; + * + * @return The useTopicSchema. + */ + @java.lang.Override + public boolean getUseTopicSchema() { + return useTopicSchema_; + } + + public static final int WRITE_METADATA_FIELD_NUMBER = 3; + private boolean writeMetadata_; + /** + * + * + *
    +   * When true, write the subscription name, message_id, publish_time,
    +   * attributes, and ordering_key to additional columns in the table. The
    +   * subscription name, message_id, and publish_time fields are put in their own
    +   * columns while all other message properties (other than data) are written to
    +   * a JSON object in the attributes column.
    +   * 
    + * + * bool write_metadata = 3; + * + * @return The writeMetadata. + */ + @java.lang.Override + public boolean getWriteMetadata() { + return writeMetadata_; + } + + public static final int DROP_UNKNOWN_FIELDS_FIELD_NUMBER = 4; + private boolean dropUnknownFields_; + /** + * + * + *
    +   * When true and use_topic_schema is true, any fields that are a part of the
    +   * topic schema that are not part of the BigQuery table schema are dropped
    +   * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
    +   * any messages with extra fields are not written and remain in the
    +   * subscription's backlog.
    +   * 
    + * + * bool drop_unknown_fields = 4; + * + * @return The dropUnknownFields. + */ + @java.lang.Override + public boolean getDropUnknownFields() { + return dropUnknownFields_; + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_; + /** + * + * + *
    +   * Output only. An output-only field that indicates whether or not the subscription can
    +   * receive messages.
    +   * 
    + * + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +   * Output only. An output-only field that indicates whether or not the subscription can
    +   * receive messages.
    +   * 
    + * + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.BigQueryConfig.State getState() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.BigQueryConfig.State result = + com.google.pubsub.v1.BigQueryConfig.State.valueOf(state_); + return result == null ? com.google.pubsub.v1.BigQueryConfig.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); + } + if (useTopicSchema_ != false) { + output.writeBool(2, useTopicSchema_); + } + if (writeMetadata_ != false) { + output.writeBool(3, writeMetadata_); + } + if (dropUnknownFields_ != false) { + output.writeBool(4, dropUnknownFields_); + } + if (state_ != com.google.pubsub.v1.BigQueryConfig.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); + } + if (useTopicSchema_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useTopicSchema_); + } + if (writeMetadata_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, writeMetadata_); + } + if (dropUnknownFields_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dropUnknownFields_); + } + if (state_ != com.google.pubsub.v1.BigQueryConfig.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.BigQueryConfig)) { + return super.equals(obj); + } + com.google.pubsub.v1.BigQueryConfig other = (com.google.pubsub.v1.BigQueryConfig) obj; + + if (!getTable().equals(other.getTable())) return false; + if (getUseTopicSchema() != other.getUseTopicSchema()) return false; + if (getWriteMetadata() != other.getWriteMetadata()) return false; + if (getDropUnknownFields() != other.getDropUnknownFields()) return false; + if (state_ != other.state_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + hash = (37 * hash) + USE_TOPIC_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTopicSchema()); + hash = (37 * hash) + WRITE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWriteMetadata()); + hash = (37 * hash) + DROP_UNKNOWN_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDropUnknownFields()); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.BigQueryConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigQueryConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigQueryConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigQueryConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigQueryConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigQueryConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigQueryConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigQueryConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.BigQueryConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigQueryConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.BigQueryConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigQueryConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.BigQueryConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Configuration for a BigQuery subscription.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.BigQueryConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.BigQueryConfig) + com.google.pubsub.v1.BigQueryConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigQueryConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.BigQueryConfig.class, + com.google.pubsub.v1.BigQueryConfig.Builder.class); + } + + // Construct using com.google.pubsub.v1.BigQueryConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + table_ = ""; + + useTopicSchema_ = false; + + writeMetadata_ = false; + + dropUnknownFields_ = false; + + state_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigQueryConfig_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.BigQueryConfig getDefaultInstanceForType() { + return com.google.pubsub.v1.BigQueryConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.BigQueryConfig build() { + com.google.pubsub.v1.BigQueryConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.BigQueryConfig buildPartial() { + com.google.pubsub.v1.BigQueryConfig result = new com.google.pubsub.v1.BigQueryConfig(this); + result.table_ = table_; + result.useTopicSchema_ = useTopicSchema_; + result.writeMetadata_ = writeMetadata_; + result.dropUnknownFields_ = dropUnknownFields_; + result.state_ = state_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.BigQueryConfig) { + return mergeFrom((com.google.pubsub.v1.BigQueryConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.BigQueryConfig other) { + if (other == com.google.pubsub.v1.BigQueryConfig.getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + onChanged(); + } + if (other.getUseTopicSchema() != false) { + setUseTopicSchema(other.getUseTopicSchema()); + } + if (other.getWriteMetadata() != false) { + setWriteMetadata(other.getWriteMetadata()); + } + if (other.getDropUnknownFields() != false) { + setDropUnknownFields(other.getDropUnknownFields()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.pubsub.v1.BigQueryConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.pubsub.v1.BigQueryConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object table_ = ""; + /** + * + * + *
    +     * The name of the table to which to write data, of the form
    +     * {projectId}:{datasetId}.{tableId}
    +     * 
    + * + * string table = 1; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The name of the table to which to write data, of the form
    +     * {projectId}:{datasetId}.{tableId}
    +     * 
    + * + * string table = 1; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The name of the table to which to write data, of the form
    +     * {projectId}:{datasetId}.{tableId}
    +     * 
    + * + * string table = 1; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + table_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the table to which to write data, of the form
    +     * {projectId}:{datasetId}.{tableId}
    +     * 
    + * + * string table = 1; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + + table_ = getDefaultInstance().getTable(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The name of the table to which to write data, of the form
    +     * {projectId}:{datasetId}.{tableId}
    +     * 
    + * + * string table = 1; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + table_ = value; + onChanged(); + return this; + } + + private boolean useTopicSchema_; + /** + * + * + *
    +     * When true, use the topic's schema as the columns to write to in BigQuery,
    +     * if it exists.
    +     * 
    + * + * bool use_topic_schema = 2; + * + * @return The useTopicSchema. + */ + @java.lang.Override + public boolean getUseTopicSchema() { + return useTopicSchema_; + } + /** + * + * + *
    +     * When true, use the topic's schema as the columns to write to in BigQuery,
    +     * if it exists.
    +     * 
    + * + * bool use_topic_schema = 2; + * + * @param value The useTopicSchema to set. + * @return This builder for chaining. + */ + public Builder setUseTopicSchema(boolean value) { + + useTopicSchema_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * When true, use the topic's schema as the columns to write to in BigQuery,
    +     * if it exists.
    +     * 
    + * + * bool use_topic_schema = 2; + * + * @return This builder for chaining. + */ + public Builder clearUseTopicSchema() { + + useTopicSchema_ = false; + onChanged(); + return this; + } + + private boolean writeMetadata_; + /** + * + * + *
    +     * When true, write the subscription name, message_id, publish_time,
    +     * attributes, and ordering_key to additional columns in the table. The
    +     * subscription name, message_id, and publish_time fields are put in their own
    +     * columns while all other message properties (other than data) are written to
    +     * a JSON object in the attributes column.
    +     * 
    + * + * bool write_metadata = 3; + * + * @return The writeMetadata. + */ + @java.lang.Override + public boolean getWriteMetadata() { + return writeMetadata_; + } + /** + * + * + *
    +     * When true, write the subscription name, message_id, publish_time,
    +     * attributes, and ordering_key to additional columns in the table. The
    +     * subscription name, message_id, and publish_time fields are put in their own
    +     * columns while all other message properties (other than data) are written to
    +     * a JSON object in the attributes column.
    +     * 
    + * + * bool write_metadata = 3; + * + * @param value The writeMetadata to set. + * @return This builder for chaining. + */ + public Builder setWriteMetadata(boolean value) { + + writeMetadata_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * When true, write the subscription name, message_id, publish_time,
    +     * attributes, and ordering_key to additional columns in the table. The
    +     * subscription name, message_id, and publish_time fields are put in their own
    +     * columns while all other message properties (other than data) are written to
    +     * a JSON object in the attributes column.
    +     * 
    + * + * bool write_metadata = 3; + * + * @return This builder for chaining. + */ + public Builder clearWriteMetadata() { + + writeMetadata_ = false; + onChanged(); + return this; + } + + private boolean dropUnknownFields_; + /** + * + * + *
    +     * When true and use_topic_schema is true, any fields that are a part of the
    +     * topic schema that are not part of the BigQuery table schema are dropped
    +     * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
    +     * any messages with extra fields are not written and remain in the
    +     * subscription's backlog.
    +     * 
    + * + * bool drop_unknown_fields = 4; + * + * @return The dropUnknownFields. + */ + @java.lang.Override + public boolean getDropUnknownFields() { + return dropUnknownFields_; + } + /** + * + * + *
    +     * When true and use_topic_schema is true, any fields that are a part of the
    +     * topic schema that are not part of the BigQuery table schema are dropped
    +     * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
    +     * any messages with extra fields are not written and remain in the
    +     * subscription's backlog.
    +     * 
    + * + * bool drop_unknown_fields = 4; + * + * @param value The dropUnknownFields to set. + * @return This builder for chaining. + */ + public Builder setDropUnknownFields(boolean value) { + + dropUnknownFields_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * When true and use_topic_schema is true, any fields that are a part of the
    +     * topic schema that are not part of the BigQuery table schema are dropped
    +     * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
    +     * any messages with extra fields are not written and remain in the
    +     * subscription's backlog.
    +     * 
    + * + * bool drop_unknown_fields = 4; + * + * @return This builder for chaining. + */ + public Builder clearDropUnknownFields() { + + dropUnknownFields_ = false; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
    +     * Output only. An output-only field that indicates whether or not the subscription can
    +     * receive messages.
    +     * 
    + * + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates whether or not the subscription can
    +     * receive messages.
    +     * 
    + * + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates whether or not the subscription can
    +     * receive messages.
    +     * 
    + * + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.BigQueryConfig.State getState() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.BigQueryConfig.State result = + com.google.pubsub.v1.BigQueryConfig.State.valueOf(state_); + return result == null ? com.google.pubsub.v1.BigQueryConfig.State.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates whether or not the subscription can
    +     * receive messages.
    +     * 
    + * + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.pubsub.v1.BigQueryConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates whether or not the subscription can
    +     * receive messages.
    +     * 
    + * + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.BigQueryConfig) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.BigQueryConfig) + private static final com.google.pubsub.v1.BigQueryConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.BigQueryConfig(); + } + + public static com.google.pubsub.v1.BigQueryConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.BigQueryConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java new file mode 100644 index 000000000000..0b972a679d25 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface BigQueryConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.BigQueryConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The name of the table to which to write data, of the form
    +   * {projectId}:{datasetId}.{tableId}
    +   * 
    + * + * string table = 1; + * + * @return The table. + */ + java.lang.String getTable(); + /** + * + * + *
    +   * The name of the table to which to write data, of the form
    +   * {projectId}:{datasetId}.{tableId}
    +   * 
    + * + * string table = 1; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + + /** + * + * + *
    +   * When true, use the topic's schema as the columns to write to in BigQuery,
    +   * if it exists.
    +   * 
    + * + * bool use_topic_schema = 2; + * + * @return The useTopicSchema. + */ + boolean getUseTopicSchema(); + + /** + * + * + *
    +   * When true, write the subscription name, message_id, publish_time,
    +   * attributes, and ordering_key to additional columns in the table. The
    +   * subscription name, message_id, and publish_time fields are put in their own
    +   * columns while all other message properties (other than data) are written to
    +   * a JSON object in the attributes column.
    +   * 
    + * + * bool write_metadata = 3; + * + * @return The writeMetadata. + */ + boolean getWriteMetadata(); + + /** + * + * + *
    +   * When true and use_topic_schema is true, any fields that are a part of the
    +   * topic schema that are not part of the BigQuery table schema are dropped
    +   * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
    +   * any messages with extra fields are not written and remain in the
    +   * subscription's backlog.
    +   * 
    + * + * bool drop_unknown_fields = 4; + * + * @return The dropUnknownFields. + */ + boolean getDropUnknownFields(); + + /** + * + * + *
    +   * Output only. An output-only field that indicates whether or not the subscription can
    +   * receive messages.
    +   * 
    + * + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. An output-only field that indicates whether or not the subscription can
    +   * receive messages.
    +   * 
    + * + * + * .google.pubsub.v1.BigQueryConfig.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.BigQueryConfig.State getState(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 9875c7fe88b6..509ddd3e420b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -135,6 +135,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_BigQueryConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ReceivedMessage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -312,241 +316,252 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "is.com/Topic\"]\n\031DetachSubscriptionReques" + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + "googleapis.com/Subscription\"\034\n\032DetachSub" - + "scriptionResponse\"\260\006\n\014Subscription\022\021\n\004na" + + "scriptionResponse\"\345\007\n\014Subscription\022\021\n\004na" + "me\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pu" + "bsub.googleapis.com/Topic\0221\n\013push_config" - + "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\022\034\n\024" - + "ack_deadline_seconds\030\005 \001(\005\022\035\n\025retain_ack" - + "ed_messages\030\007 \001(\010\022=\n\032message_retention_d" - + "uration\030\010 \001(\0132\031.google.protobuf.Duration" - + "\022:\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subs" - + "cription.LabelsEntry\022\037\n\027enable_message_o" - + "rdering\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\013" - + "2\".google.pubsub.v1.ExpirationPolicy\022\016\n\006" - + "filter\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\013" - + "2\".google.pubsub.v1.DeadLetterPolicy\0223\n\014" - + "retry_policy\030\016 \001(\0132\035.google.pubsub.v1.Re" - + "tryPolicy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_ex" - + "actly_once_delivery\030\020 \001(\010\022H\n topic_messa" - + "ge_retention_duration\030\021 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:X\352AU\n\"pubsub." - + "googleapis.com/Subscription\022/projects/{p" - + "roject}/subscriptions/{subscription}\"u\n\013" - + "RetryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.g" - + "oogle.protobuf.Duration\0222\n\017maximum_backo" - + "ff\030\002 \001(\0132\031.google.protobuf.Duration\"L\n\020D" - + "eadLetterPolicy\022\031\n\021dead_letter_topic\030\001 \001" - + "(\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020Exp" - + "irationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.prot" - + "obuf.Duration\"\255\002\n\nPushConfig\022\025\n\rpush_end" - + "point\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google" - + ".pubsub.v1.PushConfig.AttributesEntry\022<\n" - + "\noidc_token\030\003 \001(\0132&.google.pubsub.v1.Pus" - + "hConfig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025serv" - + "ice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(" - + "\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001B\027\n\025authentication_method\"m\n" - + "\017ReceivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007mess" - + "age\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessa" - + "ge\022\030\n\020delivery_attempt\030\003 \001(\005\"Z\n\026GetSubsc" - + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subscr" - + "iption\030\001 \001(\0132\036.google.pubsub.v1.Subscrip" - + "tionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\"\207\001\n\030ListSubscrip" - + "tionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" - + "loudresourcemanager.googleapis.com/Proje" - + "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubscr" - + "iptions\030\001 \003(\0132\036.google.pubsub.v1.Subscri" - + "ption\022\027\n\017next_page_token\030\002 \001(\t\"]\n\031Delete" - + "SubscriptionRequest\022@\n\014subscription\030\001 \001(" - + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" - + "ption\"\223\001\n\027ModifyPushConfigRequest\022@\n\014sub" - + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\0226\n\013push_config\030\002 \001(\013" - + "2\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013" - + "PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A" - + "$\n\"pubsub.googleapis.com/Subscription\022!\n" - + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_" - + "messages\030\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n\021r" - + "eceived_messages\030\001 \003(\0132!.google.pubsub.v" - + "1.ReceivedMessage\"\225\001\n\030ModifyAckDeadlineR" - + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" - + "bsub.googleapis.com/Subscription\022\024\n\007ack_" - + "ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003" - + " \001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subsc" + + "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\0229\n\017" + + "bigquery_config\030\022 \001(\0132 .google.pubsub.v1" + + ".BigQueryConfig\022\034\n\024ack_deadline_seconds\030" + + "\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032" + + "message_retention_duration\030\010 \001(\0132\031.googl" + + "e.protobuf.Duration\022:\n\006labels\030\t \003(\0132*.go" + + "ogle.pubsub.v1.Subscription.LabelsEntry\022" + + "\037\n\027enable_message_ordering\030\n \001(\010\022=\n\021expi" + + "ration_policy\030\013 \001(\0132\".google.pubsub.v1.E" + + "xpirationPolicy\022\016\n\006filter\030\014 \001(\t\022>\n\022dead_" + + "letter_policy\030\r \001(\0132\".google.pubsub.v1.D" + + "eadLetterPolicy\0223\n\014retry_policy\030\016 \001(\0132\035." + + "google.pubsub.v1.RetryPolicy\022\020\n\010detached" + + "\030\017 \001(\010\022$\n\034enable_exactly_once_delivery\030\020" + + " \001(\010\022H\n topic_message_retention_duration" + + "\030\021 \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228" + + "\n\005state\030\023 \001(\0162$.google.pubsub.v1.Subscri" + + "ption.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOURCE_" + + "ERROR\020\002:X\352AU\n\"pubsub.googleapis.com/Subs" + + "cription\022/projects/{project}/subscriptio" + + "ns/{subscription}\"u\n\013RetryPolicy\0222\n\017mini" + + "mum_backoff\030\001 \001(\0132\031.google.protobuf.Dura" + + "tion\0222\n\017maximum_backoff\030\002 \001(\0132\031.google.p" + + "rotobuf.Duration\"L\n\020DeadLetterPolicy\022\031\n\021" + + "dead_letter_topic\030\001 \001(\t\022\035\n\025max_delivery_" + + "attempts\030\002 \001(\005\":\n\020ExpirationPolicy\022&\n\003tt" + + "l\030\001 \001(\0132\031.google.protobuf.Duration\"\255\002\n\nP" + + "ushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\nattr" + + "ibutes\030\002 \003(\0132,.google.pubsub.v1.PushConf" + + "ig.AttributesEntry\022<\n\noidc_token\030\003 \001(\0132&" + + ".google.pubsub.v1.PushConfig.OidcTokenH\000" + + "\032<\n\tOidcToken\022\035\n\025service_account_email\030\001" + + " \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017AttributesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025aut" + + "hentication_method\"\221\002\n\016BigQueryConfig\022\r\n" + + "\005table\030\001 \001(\t\022\030\n\020use_topic_schema\030\002 \001(\010\022\026" + + "\n\016write_metadata\030\003 \001(\010\022\033\n\023drop_unknown_f" + + "ields\030\004 \001(\010\022:\n\005state\030\005 \001(\0162&.google.pubs" + + "ub.v1.BigQueryConfig.StateB\003\340A\003\"e\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021P" + + "ERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCH" + + "EMA_MISMATCH\020\004\"m\n\017ReceivedMessage\022\016\n\006ack" + + "_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.google.pubs" + + "ub.v1.PubsubMessage\022\030\n\020delivery_attempt\030" + + "\003 \001(\005\"Z\n\026GetSubscriptionRequest\022@\n\014subsc" + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" - + ".com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"" - + "\251\002\n\024StreamingPullRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_de" - + "adline_seconds\030\003 \003(\005\022\037\n\027modify_deadline_" - + "ack_ids\030\004 \003(\t\022(\n\033stream_ack_deadline_sec" - + "onds\030\005 \001(\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030ma" - + "x_outstanding_messages\030\007 \001(\003\022\035\n\025max_outs" - + "tanding_bytes\030\010 \001(\003\"\262\005\n\025StreamingPullRes" - + "ponse\022<\n\021received_messages\030\001 \003(\0132!.googl" - + "e.pubsub.v1.ReceivedMessage\022a\n\030acknowled" - + "ge_confirmation\030\005 \001(\0132?.google.pubsub.v1" - + ".StreamingPullResponse.AcknowledgeConfir" - + "mation\022o\n modify_ack_deadline_confirmati" - + "on\030\003 \001(\0132E.google.pubsub.v1.StreamingPul" - + "lResponse.ModifyAckDeadlineConfirmation\022" - + "_\n\027subscription_properties\030\004 \001(\0132>.googl" - + "e.pubsub.v1.StreamingPullResponse.Subscr" - + "iptionProperties\032j\n\027AcknowledgeConfirmat" - + "ion\022\023\n\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_" - + "ids\030\002 \003(\tB\002\010\001\022\035\n\021unordered_ack_ids\030\003 \003(\t" - + "B\002\010\001\032Q\n\035ModifyAckDeadlineConfirmation\022\023\n" - + "\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017invalid_ack_ids\030\002 " - + "\003(\tB\002\010\001\032a\n\026SubscriptionProperties\022%\n\035exa" - + "ctly_once_delivery_enabled\030\001 \001(\010\022 \n\030mess" - + "age_ordering_enabled\030\002 \001(\010J\004\010\002\020\003\"\203\002\n\025Cre" - + "ateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A " - + "\n\036pubsub.googleapis.com/Snapshot\022@\n\014subs" - + "cription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\022C\n\006labels\030\003 \003(\01323.goo" - + "gle.pubsub.v1.CreateSnapshotRequest.Labe" - + "lsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest" - + "\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.Sn" - + "apshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"\257\002\n\010Snapshot\022\014" - + "\n\004name\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub" - + ".googleapis.com/Topic\022/\n\013expire_time\030\003 \001" - + "(\0132\032.google.protobuf.Timestamp\0226\n\006labels" - + "\030\004 \003(\0132&.google.pubsub.v1.Snapshot.Label" - + "sEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.co" - + "m/Snapshot\022\'projects/{project}/snapshots" - + "/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010sna" - + "pshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" - + "om/Snapshot\"\203\001\n\024ListSnapshotsRequest\022D\n\007" - + "project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" - + "ger.googleapis.com/Project\022\021\n\tpage_size\030" - + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025ListSnapsho" - + "tsResponse\022-\n\tsnapshots\030\001 \003(\0132\032.google.p" - + "ubsub.v1.Snapshot\022\027\n\017next_page_token\030\002 \001" - + "(\t\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030" - + "\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sna" - + "pshot\"\276\001\n\013SeekRequest\022@\n\014subscription\030\001 " - + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" - + "ription\022*\n\004time\030\002 \001(\0132\032.google.protobuf." - + "TimestampH\000\0227\n\010snapshot\030\003 \001(\tB#\372A \n\036pubs" - + "ub.googleapis.com/SnapshotH\000B\010\n\006target\"\016" - + "\n\014SeekResponse2\243\013\n\tPublisher\022q\n\013CreateTo" - + "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu" - + "bsub.v1.Topic\"0\202\323\344\223\002#\032\036/v1/{name=project" - + "s/*/topics/*}:\001*\332A\004name\022}\n\013UpdateTopic\022$" - + ".google.pubsub.v1.UpdateTopicRequest\032\027.g" - + "oogle.pubsub.v1.Topic\"/\202\323\344\223\002)2$/v1/{topi" - + "c.name=projects/*/topics/*}:\001*\022\223\001\n\007Publi" - + "sh\022 .google.pubsub.v1.PublishRequest\032!.g" - + "oogle.pubsub.v1.PublishResponse\"C\202\323\344\223\002,\"" - + "\'/v1/{topic=projects/*/topics/*}:publish" - + ":\001*\332A\016topic,messages\022w\n\010GetTopic\022!.googl" - + "e.pubsub.v1.GetTopicRequest\032\027.google.pub" - + "sub.v1.Topic\"/\202\323\344\223\002!\022\037/v1/{topic=project" - + "s/*/topics/*}\332A\005topic\022\212\001\n\nListTopics\022#.g" - + "oogle.pubsub.v1.ListTopicsRequest\032$.goog" - + "le.pubsub.v1.ListTopicsResponse\"1\202\323\344\223\002!\022" - + "\037/v1/{project=projects/*}/topics\332A\007proje" - + "ct\022\272\001\n\026ListTopicSubscriptions\022/.google.p" - + "ubsub.v1.ListTopicSubscriptionsRequest\0320" - + ".google.pubsub.v1.ListTopicSubscriptions" - + "Response\"=\202\323\344\223\002/\022-/v1/{topic=projects/*/" - + "topics/*}/subscriptions\332A\005topic\022\252\001\n\022List" - + "TopicSnapshots\022+.google.pubsub.v1.ListTo" - + "picSnapshotsRequest\032,.google.pubsub.v1.L" - + "istTopicSnapshotsResponse\"9\202\323\344\223\002+\022)/v1/{" - + "topic=projects/*/topics/*}/snapshots\332A\005t" - + "opic\022|\n\013DeleteTopic\022$.google.pubsub.v1.D" - + "eleteTopicRequest\032\026.google.protobuf.Empt" - + "y\"/\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/" - + "*}\332A\005topic\022\255\001\n\022DetachSubscription\022+.goog" - + "le.pubsub.v1.DetachSubscriptionRequest\032," - + ".google.pubsub.v1.DetachSubscriptionResp" - + "onse\"<\202\323\344\223\0026\"4/v1/{subscription=projects" - + "/*/subscriptions/*}:detach\032p\312A\025pubsub.go" - + "ogleapis.com\322AUhttps://www.googleapis.co" - + "m/auth/cloud-platform,https://www.google" - + "apis.com/auth/pubsub2\240\025\n\nSubscriber\022\264\001\n\022" - + "CreateSubscription\022\036.google.pubsub.v1.Su" - + "bscription\032\036.google.pubsub.v1.Subscripti" - + "on\"^\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" - + "ptions/*}:\001*\332A+name,topic,push_config,ac" - + "k_deadline_seconds\022\241\001\n\017GetSubscription\022(" - + ".google.pubsub.v1.GetSubscriptionRequest" - + "\032\036.google.pubsub.v1.Subscription\"D\202\323\344\223\002/" - + "\022-/v1/{subscription=projects/*/subscript" - + "ions/*}\332A\014subscription\022\240\001\n\022UpdateSubscri" - + "ption\022+.google.pubsub.v1.UpdateSubscript" - + "ionRequest\032\036.google.pubsub.v1.Subscripti" - + "on\"=\202\323\344\223\002722/v1/{subscription.name=proje" - + "cts/*/subscriptions/*}:\001*\022\246\001\n\021ListSubscr" - + "iptions\022*.google.pubsub.v1.ListSubscript" - + "ionsRequest\032+.google.pubsub.v1.ListSubsc" - + "riptionsResponse\"8\202\323\344\223\002(\022&/v1/{project=p" - + "rojects/*}/subscriptions\332A\007project\022\237\001\n\022D" - + "eleteSubscription\022+.google.pubsub.v1.Del" - + "eteSubscriptionRequest\032\026.google.protobuf" - + ".Empty\"D\202\323\344\223\002/*-/v1/{subscription=projec" - + "ts/*/subscriptions/*}\332A\014subscription\022\317\001\n" - + "\021ModifyAckDeadline\022*.google.pubsub.v1.Mo" - + "difyAckDeadlineRequest\032\026.google.protobuf" - + ".Empty\"v\202\323\344\223\002D\"?/v1/{subscription=projec" - + "ts/*/subscriptions/*}:modifyAckDeadline:" - + "\001*\332A)subscription,ack_ids,ack_deadline_s" - + "econds\022\250\001\n\013Acknowledge\022$.google.pubsub.v" - + "1.AcknowledgeRequest\032\026.google.protobuf.E" - + "mpty\"[\202\323\344\223\002>\"9/v1/{subscription=projects" - + "/*/subscriptions/*}:acknowledge:\001*\332A\024sub" - + "scription,ack_ids\022\320\001\n\004Pull\022\035.google.pubs" - + "ub.v1.PullRequest\032\036.google.pubsub.v1.Pul" - + "lResponse\"\210\001\202\323\344\223\0027\"2/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:pull:\001*\332A,subs" - + "cription,return_immediately,max_messages" - + "\332A\031subscription,max_messages\022f\n\rStreamin" - + "gPull\022&.google.pubsub.v1.StreamingPullRe" - + "quest\032\'.google.pubsub.v1.StreamingPullRe" - + "sponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).goog" - + "le.pubsub.v1.ModifyPushConfigRequest\032\026.g" - + "oogle.protobuf.Empty\"d\202\323\344\223\002C\">/v1/{subsc" - + "ription=projects/*/subscriptions/*}:modi" - + "fyPushConfig:\001*\332A\030subscription,push_conf" - + "ig\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1.Ge" - + "tSnapshotRequest\032\032.google.pubsub.v1.Snap" - + "shot\"8\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/s" - + "napshots/*}\332A\010snapshot\022\226\001\n\rListSnapshots" - + "\022&.google.pubsub.v1.ListSnapshotsRequest" - + "\032\'.google.pubsub.v1.ListSnapshotsRespons" - + "e\"4\202\323\344\223\002$\022\"/v1/{project=projects/*}/snap" - + "shots\332A\007project\022\227\001\n\016CreateSnapshot\022\'.goo" - + "gle.pubsub.v1.CreateSnapshotRequest\032\032.go" - + "ogle.pubsub.v1.Snapshot\"@\202\323\344\223\002&\032!/v1/{na" - + "me=projects/*/snapshots/*}:\001*\332A\021name,sub" - + "scription\022\214\001\n\016UpdateSnapshot\022\'.google.pu" - + "bsub.v1.UpdateSnapshotRequest\032\032.google.p" - + "ubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v1/{snapshot" - + ".name=projects/*/snapshots/*}:\001*\022\213\001\n\016Del" - + "eteSnapshot\022\'.google.pubsub.v1.DeleteSna" - + "pshotRequest\032\026.google.protobuf.Empty\"8\202\323" - + "\344\223\002\'*%/v1/{snapshot=projects/*/snapshots" - + "/*}\332A\010snapshot\022\204\001\n\004Seek\022\035.google.pubsub." - + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" - + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" - + "ts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub" - + ".googleapis.com\322AUhttps://www.googleapis" - + ".com/auth/cloud-platform,https://www.goo" - + "gleapis.com/auth/pubsubB\256\001\n\024com.google.p" - + "ubsub.v1B\013PubsubProtoP\001Z6google.golang.o" - + "rg/genproto/googleapis/pubsub/v1;pubsub\370" - + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" - + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" - + "b\006proto3" + + ".com/Subscription\"\214\001\n\031UpdateSubscription" + + "Request\0229\n\014subscription\030\001 \001(\0132\036.google.p" + + "ubsub.v1.SubscriptionB\003\340A\002\0224\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002" + + "\"\207\001\n\030ListSubscriptionsRequest\022D\n\007project" + + "\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goo" + + "gleapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"k\n\031ListSubscriptionsR" + + "esponse\0225\n\rsubscriptions\030\001 \003(\0132\036.google." + + "pubsub.v1.Subscription\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"]\n\031DeleteSubscriptionRequest\022@\n\014" + + "subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googl" + + "eapis.com/Subscription\"\223\001\n\027ModifyPushCon" + + "figRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" + + "\n\"pubsub.googleapis.com/Subscription\0226\n\013" + + "push_config\030\002 \001(\0132\034.google.pubsub.v1.Pus" + + "hConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscrip" + + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\022!\n\022return_immediately\030\002 \001" + + "(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"L\n\014" + + "PullResponse\022<\n\021received_messages\030\001 \003(\0132" + + "!.google.pubsub.v1.ReceivedMessage\"\225\001\n\030M" + + "odifyAckDeadlineRequest\022@\n\014subscription\030" + + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_d" + + "eadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowledg" + + "eRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" + + "pubsub.googleapis.com/Subscription\022\024\n\007ac" + + "k_ids\030\002 \003(\tB\003\340A\002\"\251\002\n\024StreamingPullReques" + + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\022\017\n\007ack_ids\030\002" + + " \003(\t\022\037\n\027modify_deadline_seconds\030\003 \003(\005\022\037\n" + + "\027modify_deadline_ack_ids\030\004 \003(\t\022(\n\033stream" + + "_ack_deadline_seconds\030\005 \001(\005B\003\340A\002\022\021\n\tclie" + + "nt_id\030\006 \001(\t\022 \n\030max_outstanding_messages\030" + + "\007 \001(\003\022\035\n\025max_outstanding_bytes\030\010 \001(\003\"\262\005\n" + + "\025StreamingPullResponse\022<\n\021received_messa" + + "ges\030\001 \003(\0132!.google.pubsub.v1.ReceivedMes" + + "sage\022a\n\030acknowledge_confirmation\030\005 \001(\0132?" + + ".google.pubsub.v1.StreamingPullResponse." + + "AcknowledgeConfirmation\022o\n modify_ack_de" + + "adline_confirmation\030\003 \001(\0132E.google.pubsu" + + "b.v1.StreamingPullResponse.ModifyAckDead" + + "lineConfirmation\022_\n\027subscription_propert" + + "ies\030\004 \001(\0132>.google.pubsub.v1.StreamingPu" + + "llResponse.SubscriptionProperties\032j\n\027Ack" + + "nowledgeConfirmation\022\023\n\007ack_ids\030\001 \003(\tB\002\010" + + "\001\022\033\n\017invalid_ack_ids\030\002 \003(\tB\002\010\001\022\035\n\021unorde" + + "red_ack_ids\030\003 \003(\tB\002\010\001\032Q\n\035ModifyAckDeadli" + + "neConfirmation\022\023\n\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017i" + + "nvalid_ack_ids\030\002 \003(\tB\002\010\001\032a\n\026Subscription" + + "Properties\022%\n\035exactly_once_delivery_enab" + + "led\030\001 \001(\010\022 \n\030message_ordering_enabled\030\002 " + + "\001(\010J\004\010\002\020\003\"\203\002\n\025CreateSnapshotRequest\0224\n\004n" + + "ame\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com" + + "/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022C\n\006l" + + "abels\030\003 \003(\01323.google.pubsub.v1.CreateSna" + + "pshotRequest.LabelsEntry\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025Upda" + + "teSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.go" + + "ogle.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030\002" + + " \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022/" + + "\n\013expire_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp\0226\n\006labels\030\004 \003(\0132&.google.pubsub." + + "v1.Snapshot.LabelsEntry\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pub" + + "sub.googleapis.com/Snapshot\022\'projects/{p" + + "roject}/snapshots/{snapshot}\"N\n\022GetSnaps" + + "hotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pu" + + "bsub.googleapis.com/Snapshot\"\203\001\n\024ListSna" + + "pshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+" + + "cloudresourcemanager.googleapis.com/Proj" + + "ect\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapshots" + + "\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"Q\n\025DeleteSnapshotReq" + + "uest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.g" + + "oogleapis.com/Snapshot\"\276\001\n\013SeekRequest\022@" + + "\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goo" + + "gleapis.com/Subscription\022*\n\004time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampH\000\0227\n\010snapshot" + + "\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/Snaps" + + "hotH\000B\010\n\006target\"\016\n\014SeekResponse2\243\013\n\tPubl" + + "isher\022q\n\013CreateTopic\022\027.google.pubsub.v1." + + "Topic\032\027.google.pubsub.v1.Topic\"0\202\323\344\223\002#\032\036" + + "/v1/{name=projects/*/topics/*}:\001*\332A\004name" + + "\022}\n\013UpdateTopic\022$.google.pubsub.v1.Updat" + + "eTopicRequest\032\027.google.pubsub.v1.Topic\"/" + + "\202\323\344\223\002)2$/v1/{topic.name=projects/*/topic" + + "s/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1.P" + + "ublishRequest\032!.google.pubsub.v1.Publish" + + "Response\"C\202\323\344\223\002,\"\'/v1/{topic=projects/*/" + + "topics/*}:publish:\001*\332A\016topic,messages\022w\n" + + "\010GetTopic\022!.google.pubsub.v1.GetTopicReq" + + "uest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002!\022\037/" + + "v1/{topic=projects/*/topics/*}\332A\005topic\022\212" + + "\001\n\nListTopics\022#.google.pubsub.v1.ListTop" + + "icsRequest\032$.google.pubsub.v1.ListTopics" + + "Response\"1\202\323\344\223\002!\022\037/v1/{project=projects/" + + "*}/topics\332A\007project\022\272\001\n\026ListTopicSubscri" + + "ptions\022/.google.pubsub.v1.ListTopicSubsc" + + "riptionsRequest\0320.google.pubsub.v1.ListT" + + "opicSubscriptionsResponse\"=\202\323\344\223\002/\022-/v1/{" + + "topic=projects/*/topics/*}/subscriptions" + + "\332A\005topic\022\252\001\n\022ListTopicSnapshots\022+.google" + + ".pubsub.v1.ListTopicSnapshotsRequest\032,.g" + + "oogle.pubsub.v1.ListTopicSnapshotsRespon" + + "se\"9\202\323\344\223\002+\022)/v1/{topic=projects/*/topics" + + "/*}/snapshots\332A\005topic\022|\n\013DeleteTopic\022$.g" + + "oogle.pubsub.v1.DeleteTopicRequest\032\026.goo" + + "gle.protobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topic=p" + + "rojects/*/topics/*}\332A\005topic\022\255\001\n\022DetachSu" + + "bscription\022+.google.pubsub.v1.DetachSubs" + + "criptionRequest\032,.google.pubsub.v1.Detac" + + "hSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{subs" + + "cription=projects/*/subscriptions/*}:det" + + "ach\032p\312A\025pubsub.googleapis.com\322AUhttps://" + + "www.googleapis.com/auth/cloud-platform,h" + + "ttps://www.googleapis.com/auth/pubsub2\240\025" + + "\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036.go" + + "ogle.pubsub.v1.Subscription\032\036.google.pub" + + "sub.v1.Subscription\"^\202\323\344\223\002*\032%/v1/{name=p" + + "rojects/*/subscriptions/*}:\001*\332A+name,top" + + "ic,push_config,ack_deadline_seconds\022\241\001\n\017" + + "GetSubscription\022(.google.pubsub.v1.GetSu" + + "bscriptionRequest\032\036.google.pubsub.v1.Sub" + + "scription\"D\202\323\344\223\002/\022-/v1/{subscription=pro" + + "jects/*/subscriptions/*}\332A\014subscription\022" + + "\240\001\n\022UpdateSubscription\022+.google.pubsub.v" + + "1.UpdateSubscriptionRequest\032\036.google.pub" + + "sub.v1.Subscription\"=\202\323\344\223\002722/v1/{subscr" + + "iption.name=projects/*/subscriptions/*}:" + + "\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsub" + + ".v1.ListSubscriptionsRequest\032+.google.pu" + + "bsub.v1.ListSubscriptionsResponse\"8\202\323\344\223\002" + + "(\022&/v1/{project=projects/*}/subscription" + + "s\332A\007project\022\237\001\n\022DeleteSubscription\022+.goo" + + "gle.pubsub.v1.DeleteSubscriptionRequest\032" + + "\026.google.protobuf.Empty\"D\202\323\344\223\002/*-/v1/{su" + + "bscription=projects/*/subscriptions/*}\332A" + + "\014subscription\022\317\001\n\021ModifyAckDeadline\022*.go" + + "ogle.pubsub.v1.ModifyAckDeadlineRequest\032" + + "\026.google.protobuf.Empty\"v\202\323\344\223\002D\"?/v1/{su" + + "bscription=projects/*/subscriptions/*}:m" + + "odifyAckDeadline:\001*\332A)subscription,ack_i" + + "ds,ack_deadline_seconds\022\250\001\n\013Acknowledge\022" + + "$.google.pubsub.v1.AcknowledgeRequest\032\026." + + "google.protobuf.Empty\"[\202\323\344\223\002>\"9/v1/{subs" + + "cription=projects/*/subscriptions/*}:ack" + + "nowledge:\001*\332A\024subscription,ack_ids\022\320\001\n\004P" + + "ull\022\035.google.pubsub.v1.PullRequest\032\036.goo" + + "gle.pubsub.v1.PullResponse\"\210\001\202\323\344\223\0027\"2/v1" + + "/{subscription=projects/*/subscriptions/" + + "*}:pull:\001*\332A,subscription,return_immedia" + + "tely,max_messages\332A\031subscription,max_mes" + + "sages\022f\n\rStreamingPull\022&.google.pubsub.v" + + "1.StreamingPullRequest\032\'.google.pubsub.v" + + "1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Modify" + + "PushConfig\022).google.pubsub.v1.ModifyPush" + + "ConfigRequest\032\026.google.protobuf.Empty\"d\202" + + "\323\344\223\002C\">/v1/{subscription=projects/*/subs" + + "criptions/*}:modifyPushConfig:\001*\332A\030subsc" + + "ription,push_config\022\211\001\n\013GetSnapshot\022$.go" + + "ogle.pubsub.v1.GetSnapshotRequest\032\032.goog" + + "le.pubsub.v1.Snapshot\"8\202\323\344\223\002\'\022%/v1/{snap" + + "shot=projects/*/snapshots/*}\332A\010snapshot\022" + + "\226\001\n\rListSnapshots\022&.google.pubsub.v1.Lis" + + "tSnapshotsRequest\032\'.google.pubsub.v1.Lis" + + "tSnapshotsResponse\"4\202\323\344\223\002$\022\"/v1/{project" + + "=projects/*}/snapshots\332A\007project\022\227\001\n\016Cre" + + "ateSnapshot\022\'.google.pubsub.v1.CreateSna" + + "pshotRequest\032\032.google.pubsub.v1.Snapshot" + + "\"@\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots" + + "/*}:\001*\332A\021name,subscription\022\214\001\n\016UpdateSna" + + "pshot\022\'.google.pubsub.v1.UpdateSnapshotR" + + "equest\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223" + + "\002/2*/v1/{snapshot.name=projects/*/snapsh" + + "ots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pu" + + "bsub.v1.DeleteSnapshotRequest\032\026.google.p" + + "rotobuf.Empty\"8\202\323\344\223\002\'*%/v1/{snapshot=pro" + + "jects/*/snapshots/*}\332A\010snapshot\022\204\001\n\004Seek" + + "\022\035.google.pubsub.v1.SeekRequest\032\036.google" + + ".pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{su" + + "bscription=projects/*/subscriptions/*}:s" + + "eek:\001*\032p\312A\025pubsub.googleapis.com\322AUhttps" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/pubsub" + + "B\256\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001" + + "Z6google.golang.org/genproto/googleapis/" + + "pubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSu" + + "b.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::" + + "Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -726,6 +741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Topic", "PushConfig", + "BigqueryConfig", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", @@ -738,6 +754,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Detached", "EnableExactlyOnceDelivery", "TopicMessageRetentionDuration", + "State", }); internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); @@ -795,8 +812,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_ReceivedMessage_descriptor = + internal_static_google_pubsub_v1_BigQueryConfig_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_BigQueryConfig_descriptor, + new java.lang.String[] { + "Table", "UseTopicSchema", "WriteMetadata", "DropUnknownFields", "State", + }); + internal_static_google_pubsub_v1_ReceivedMessage_descriptor = + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -804,7 +829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -812,7 +837,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -820,7 +845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -828,7 +853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -836,7 +861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -844,7 +869,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -852,7 +877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -860,7 +885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -868,7 +893,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -876,7 +901,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -884,7 +909,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -899,7 +924,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -934,7 +959,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -950,7 +975,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -958,7 +983,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -974,7 +999,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -982,7 +1007,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -990,7 +1015,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -998,7 +1023,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1006,7 +1031,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1014,7 +1039,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 81ff046458ec..c6d954e25283 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -195,7 +195,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1035 + * google/pubsub/v1/pubsub.proto;l=1107 * @return The returnImmediately. */ @java.lang.Override @@ -707,7 +707,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1035 + * google/pubsub/v1/pubsub.proto;l=1107 * @return The returnImmediately. */ @java.lang.Override @@ -733,7 +733,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1035 + * google/pubsub/v1/pubsub.proto;l=1107 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -762,7 +762,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1035 + * google/pubsub/v1/pubsub.proto;l=1107 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 962ab395549f..7c9a4f9540a4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -71,7 +71,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1035 + * google/pubsub/v1/pubsub.proto;l=1107 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index c05fea07ed7d..acf2462dbf8e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -41,6 +41,7 @@ private Subscription() { name_ = ""; topic_ = ""; filter_ = ""; + state_ = 0; } @java.lang.Override @@ -222,6 +223,29 @@ private Subscription( topicMessageRetentionDuration_ = subBuilder.buildPartial(); } + break; + } + case 146: + { + com.google.pubsub.v1.BigQueryConfig.Builder subBuilder = null; + if (bigqueryConfig_ != null) { + subBuilder = bigqueryConfig_.toBuilder(); + } + bigqueryConfig_ = + input.readMessage( + com.google.pubsub.v1.BigQueryConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bigqueryConfig_); + bigqueryConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 152: + { + int rawValue = input.readEnum(); + + state_ = rawValue; break; } default: @@ -271,6 +295,167 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.Subscription.Builder.class); } + /** + * + * + *
    +   * Possible states for a subscription.
    +   * 
    + * + * Protobuf enum {@code google.pubsub.v1.Subscription.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The subscription can actively receive messages
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * The subscription cannot receive messages because of an error with the
    +     * resource to which it pushes messages. See the more detailed error state
    +     * in the corresponding configuration.
    +     * 
    + * + * RESOURCE_ERROR = 2; + */ + RESOURCE_ERROR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The subscription can actively receive messages
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +     * The subscription cannot receive messages because of an error with the
    +     * resource to which it pushes messages. See the more detailed error state
    +     * in the corresponding configuration.
    +     * 
    + * + * RESOURCE_ERROR = 2; + */ + public static final int RESOURCE_ERROR_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return RESOURCE_ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.Subscription.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Subscription.State) + } + public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -394,8 +579,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * *
        * 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.
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -411,8 +597,9 @@ public boolean hasPushConfig() { * *
        * 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.
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -428,8 +615,9 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * *
        * 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.
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -439,6 +627,63 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { return getPushConfig(); } + public static final int BIGQUERY_CONFIG_FIELD_NUMBER = 18; + private com.google.pubsub.v1.BigQueryConfig bigqueryConfig_; + /** + * + * + *
    +   * If delivery to BigQuery is used with this subscription, this field is
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
    +   * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * @return Whether the bigqueryConfig field is set. + */ + @java.lang.Override + public boolean hasBigqueryConfig() { + return bigqueryConfig_ != null; + } + /** + * + * + *
    +   * If delivery to BigQuery is used with this subscription, this field is
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
    +   * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * @return The bigqueryConfig. + */ + @java.lang.Override + public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { + return bigqueryConfig_ == null + ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() + : bigqueryConfig_; + } + /** + * + * + *
    +   * If delivery to BigQuery is used with this subscription, this field is
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
    +   * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + */ + @java.lang.Override + public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() { + return getBigqueryConfig(); + } + public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; private int ackDeadlineSeconds_; /** @@ -1048,6 +1293,48 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB return getTopicMessageRetentionDuration(); } + public static final int STATE_FIELD_NUMBER = 19; + private int state_; + /** + * + * + *
    +   * Output only. An output-only field indicating whether or not the subscription can receive
    +   * messages.
    +   * 
    + * + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +   * Output only. An output-only field indicating whether or not the subscription can receive
    +   * messages.
    +   * 
    + * + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.Subscription.State getState() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.Subscription.State result = + com.google.pubsub.v1.Subscription.State.valueOf(state_); + return result == null ? com.google.pubsub.v1.Subscription.State.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1106,6 +1393,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (topicMessageRetentionDuration_ != null) { output.writeMessage(17, getTopicMessageRetentionDuration()); } + if (bigqueryConfig_ != null) { + output.writeMessage(18, getBigqueryConfig()); + } + if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(19, state_); + } unknownFields.writeTo(output); } @@ -1171,6 +1464,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 17, getTopicMessageRetentionDuration()); } + if (bigqueryConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getBigqueryConfig()); + } + if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, state_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1192,6 +1491,10 @@ public boolean equals(final java.lang.Object obj) { if (hasPushConfig()) { if (!getPushConfig().equals(other.getPushConfig())) return false; } + if (hasBigqueryConfig() != other.hasBigqueryConfig()) return false; + if (hasBigqueryConfig()) { + if (!getBigqueryConfig().equals(other.getBigqueryConfig())) return false; + } if (getAckDeadlineSeconds() != other.getAckDeadlineSeconds()) return false; if (getRetainAckedMessages() != other.getRetainAckedMessages()) return false; if (hasMessageRetentionDuration() != other.hasMessageRetentionDuration()) return false; @@ -1221,6 +1524,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTopicMessageRetentionDuration().equals(other.getTopicMessageRetentionDuration())) return false; } + if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1240,6 +1544,10 @@ public int hashCode() { hash = (37 * hash) + PUSH_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPushConfig().hashCode(); } + if (hasBigqueryConfig()) { + hash = (37 * hash) + BIGQUERY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryConfig().hashCode(); + } hash = (37 * hash) + ACK_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getAckDeadlineSeconds(); hash = (37 * hash) + RETAIN_ACKED_MESSAGES_FIELD_NUMBER; @@ -1276,6 +1584,8 @@ public int hashCode() { hash = (37 * hash) + TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getTopicMessageRetentionDuration().hashCode(); } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1450,6 +1760,12 @@ public Builder clear() { pushConfig_ = null; pushConfigBuilder_ = null; } + if (bigqueryConfigBuilder_ == null) { + bigqueryConfig_ = null; + } else { + bigqueryConfig_ = null; + bigqueryConfigBuilder_ = null; + } ackDeadlineSeconds_ = 0; retainAckedMessages_ = false; @@ -1493,6 +1809,8 @@ public Builder clear() { topicMessageRetentionDuration_ = null; topicMessageRetentionDurationBuilder_ = null; } + state_ = 0; + return this; } @@ -1527,6 +1845,11 @@ public com.google.pubsub.v1.Subscription buildPartial() { } else { result.pushConfig_ = pushConfigBuilder_.build(); } + if (bigqueryConfigBuilder_ == null) { + result.bigqueryConfig_ = bigqueryConfig_; + } else { + result.bigqueryConfig_ = bigqueryConfigBuilder_.build(); + } result.ackDeadlineSeconds_ = ackDeadlineSeconds_; result.retainAckedMessages_ = retainAckedMessages_; if (messageRetentionDurationBuilder_ == null) { @@ -1560,6 +1883,7 @@ public com.google.pubsub.v1.Subscription buildPartial() { } else { result.topicMessageRetentionDuration_ = topicMessageRetentionDurationBuilder_.build(); } + result.state_ = state_; onBuilt(); return result; } @@ -1620,6 +1944,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasPushConfig()) { mergePushConfig(other.getPushConfig()); } + if (other.hasBigqueryConfig()) { + mergeBigqueryConfig(other.getBigqueryConfig()); + } if (other.getAckDeadlineSeconds() != 0) { setAckDeadlineSeconds(other.getAckDeadlineSeconds()); } @@ -1655,6 +1982,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasTopicMessageRetentionDuration()) { mergeTopicMessageRetentionDuration(other.getTopicMessageRetentionDuration()); } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1954,8 +2284,9 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * *
          * 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.
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -1970,8 +2301,9 @@ public boolean hasPushConfig() { * *
          * 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.
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -1992,8 +2324,9 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * *
          * 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.
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2016,8 +2349,9 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { * *
          * 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.
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2037,8 +2371,9 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV * *
          * 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.
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2065,8 +2400,9 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { * *
          * 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.
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2087,8 +2423,9 @@ public Builder clearPushConfig() { * *
          * 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.
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2103,8 +2440,9 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { * *
          * 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.
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2123,8 +2461,9 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * *
          * 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.
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2146,6 +2485,218 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { return pushConfigBuilder_; } + private com.google.pubsub.v1.BigQueryConfig bigqueryConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.BigQueryConfig, + com.google.pubsub.v1.BigQueryConfig.Builder, + com.google.pubsub.v1.BigQueryConfigOrBuilder> + bigqueryConfigBuilder_; + /** + * + * + *
    +     * If delivery to BigQuery is used with this subscription, this field is
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
    +     * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * @return Whether the bigqueryConfig field is set. + */ + public boolean hasBigqueryConfig() { + return bigqueryConfigBuilder_ != null || bigqueryConfig_ != null; + } + /** + * + * + *
    +     * If delivery to BigQuery is used with this subscription, this field is
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
    +     * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * @return The bigqueryConfig. + */ + public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { + if (bigqueryConfigBuilder_ == null) { + return bigqueryConfig_ == null + ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() + : bigqueryConfig_; + } else { + return bigqueryConfigBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * If delivery to BigQuery is used with this subscription, this field is
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
    +     * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + */ + public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { + if (bigqueryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryConfig_ = value; + onChanged(); + } else { + bigqueryConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * If delivery to BigQuery is used with this subscription, this field is
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
    +     * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + */ + public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig.Builder builderForValue) { + if (bigqueryConfigBuilder_ == null) { + bigqueryConfig_ = builderForValue.build(); + onChanged(); + } else { + bigqueryConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * If delivery to BigQuery is used with this subscription, this field is
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
    +     * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + */ + public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { + if (bigqueryConfigBuilder_ == null) { + if (bigqueryConfig_ != null) { + bigqueryConfig_ = + com.google.pubsub.v1.BigQueryConfig.newBuilder(bigqueryConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + bigqueryConfig_ = value; + } + onChanged(); + } else { + bigqueryConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * If delivery to BigQuery is used with this subscription, this field is
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
    +     * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + */ + public Builder clearBigqueryConfig() { + if (bigqueryConfigBuilder_ == null) { + bigqueryConfig_ = null; + onChanged(); + } else { + bigqueryConfig_ = null; + bigqueryConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * If delivery to BigQuery is used with this subscription, this field is
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
    +     * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + */ + public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { + + onChanged(); + return getBigqueryConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * If delivery to BigQuery is used with this subscription, this field is
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
    +     * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + */ + public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() { + if (bigqueryConfigBuilder_ != null) { + return bigqueryConfigBuilder_.getMessageOrBuilder(); + } else { + return bigqueryConfig_ == null + ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() + : bigqueryConfig_; + } + } + /** + * + * + *
    +     * If delivery to BigQuery is used with this subscription, this field is
    +     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +     * but not both. If both are empty, then the subscriber will pull and ack
    +     * messages using API methods.
    +     * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.BigQueryConfig, + com.google.pubsub.v1.BigQueryConfig.Builder, + com.google.pubsub.v1.BigQueryConfigOrBuilder> + getBigqueryConfigFieldBuilder() { + if (bigqueryConfigBuilder_ == null) { + bigqueryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.BigQueryConfig, + com.google.pubsub.v1.BigQueryConfig.Builder, + com.google.pubsub.v1.BigQueryConfigOrBuilder>( + getBigqueryConfig(), getParentForChildren(), isClean()); + bigqueryConfig_ = null; + } + return bigqueryConfigBuilder_; + } + private int ackDeadlineSeconds_; /** * @@ -3987,6 +4538,112 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB return topicMessageRetentionDurationBuilder_; } + private int state_ = 0; + /** + * + * + *
    +     * Output only. An output-only field indicating whether or not the subscription can receive
    +     * messages.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +     * Output only. An output-only field indicating whether or not the subscription can receive
    +     * messages.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output-only field indicating whether or not the subscription can receive
    +     * messages.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.Subscription.State getState() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.Subscription.State result = + com.google.pubsub.v1.Subscription.State.valueOf(state_); + return result == null ? com.google.pubsub.v1.Subscription.State.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Output only. An output-only field indicating whether or not the subscription can receive
    +     * messages.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.pubsub.v1.Subscription.State value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output-only field indicating whether or not the subscription can receive
    +     * messages.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 2c85e903fff2..cd5819192939 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -96,8 +96,9 @@ public interface SubscriptionOrBuilder * *
        * 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.
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -110,8 +111,9 @@ public interface SubscriptionOrBuilder * *
        * 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.
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -124,14 +126,59 @@ public interface SubscriptionOrBuilder * *
        * 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.
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; */ com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder(); + /** + * + * + *
    +   * If delivery to BigQuery is used with this subscription, this field is
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
    +   * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * @return Whether the bigqueryConfig field is set. + */ + boolean hasBigqueryConfig(); + /** + * + * + *
    +   * If delivery to BigQuery is used with this subscription, this field is
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
    +   * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * @return The bigqueryConfig. + */ + com.google.pubsub.v1.BigQueryConfig getBigqueryConfig(); + /** + * + * + *
    +   * If delivery to BigQuery is used with this subscription, this field is
    +   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    +   * but not both. If both are empty, then the subscriber will pull and ack
    +   * messages using API methods.
    +   * 
    + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + */ + com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder(); + /** * * @@ -588,4 +635,35 @@ java.lang.String getLabelsOrDefault( * */ com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder(); + + /** + * + * + *
    +   * Output only. An output-only field indicating whether or not the subscription can receive
    +   * messages.
    +   * 
    + * + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. An output-only field indicating whether or not the subscription can receive
    +   * messages.
    +   * 
    + * + * + * .google.pubsub.v1.Subscription.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.Subscription.State getState(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 172801ba3ff6..5ab209bbd622 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -642,6 +642,20 @@ message Subscription { pattern: "projects/{project}/subscriptions/{subscription}" }; + // Possible states for a subscription. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The subscription can actively receive messages + ACTIVE = 1; + + // The subscription cannot receive messages because of an error with the + // resource to which it pushes messages. See the more detailed error state + // in the corresponding configuration. + RESOURCE_ERROR = 2; + } + // 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 @@ -659,10 +673,17 @@ message Subscription { ]; // 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. + // used to configure it. Either `pushConfig` or `bigQueryConfig` can be set, + // but not both. If both are empty, then the subscriber will pull and ack + // messages using API methods. PushConfig push_config = 4; + // If delivery to BigQuery is used with this subscription, this field is + // used to configure it. Either `pushConfig` or `bigQueryConfig` can be set, + // but not both. If both are empty, then the subscriber will pull and ack + // messages using API methods. + BigQueryConfig bigquery_config = 18; + // 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 @@ -773,6 +794,10 @@ message Subscription { // in responses from the server; it is ignored if it is set in any requests. google.protobuf.Duration topic_message_retention_duration = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An output-only field indicating whether or not the subscription can receive + // messages. + State state = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A policy that specifies how Cloud Pub/Sub retries message delivery. @@ -902,6 +927,53 @@ message PushConfig { } } +// Configuration for a BigQuery subscription. +message BigQueryConfig { + // Possible states for a BigQuery subscription. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The subscription can actively send messages to BigQuery + ACTIVE = 1; + + // Cannot write to the BigQuery table because of permission denied errors. + PERMISSION_DENIED = 2; + + // Cannot write to the BigQuery table because it does not exist. + NOT_FOUND = 3; + + // Cannot write to the BigQuery table due to a schema mismatch. + SCHEMA_MISMATCH = 4; + } + + // The name of the table to which to write data, of the form + // {projectId}:{datasetId}.{tableId} + string table = 1; + + // When true, use the topic's schema as the columns to write to in BigQuery, + // if it exists. + bool use_topic_schema = 2; + + // When true, write the subscription name, message_id, publish_time, + // attributes, and ordering_key to additional columns in the table. The + // subscription name, message_id, and publish_time fields are put in their own + // columns while all other message properties (other than data) are written to + // a JSON object in the attributes column. + bool write_metadata = 3; + + // When true and use_topic_schema is true, any fields that are a part of the + // topic schema that are not part of the BigQuery table schema are dropped + // when writing to BigQuery. Otherwise, the schemas must be kept in sync and + // any messages with extra fields are not written and remain in the + // subscription's backlog. + bool drop_unknown_fields = 4; + + // Output only. An output-only field that indicates whether or not the subscription can + // receive messages. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A message and its corresponding acknowledgment ID. message ReceivedMessage { // This ID can be used to acknowledge the received message. From 67440b32c0b508380a81a5f73b89d4d4eb735d32 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 May 2022 03:48:31 +0000 Subject: [PATCH 1052/2363] chore(main): release 1.119.0 (#1144) :robot: I have created a release *beep* *boop* --- ## [1.119.0](https://github.com/googleapis/java-pubsub/compare/v1.118.0...v1.119.0) (2022-05-23) ### Features * add BigQuery configuration for subscriptions ([#1133](https://github.com/googleapis/java-pubsub/issues/1133)) ([2a65197](https://github.com/googleapis/java-pubsub/commit/2a6519709a7b760c9b8a357a5a5ae21e04acaf83)) * add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-pubsub/issues/1440)) ([#1145](https://github.com/googleapis/java-pubsub/issues/1145)) ([308b4d7](https://github.com/googleapis/java-pubsub/commit/308b4d7c594d73edd7eed6635bafaf8c4c1b39bf)) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.7.1 ([#1141](https://github.com/googleapis/java-pubsub/issues/1141)) ([4c4d856](https://github.com/googleapis/java-pubsub/commit/4c4d856af31ccb102dd59513f10e07498702f2b6)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#1142](https://github.com/googleapis/java-pubsub/issues/1142)) ([7207e00](https://github.com/googleapis/java-pubsub/commit/7207e00a7f1594b25a6985113a18cf16204b1c38)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#1148](https://github.com/googleapis/java-pubsub/issues/1148)) ([977d1e2](https://github.com/googleapis/java-pubsub/commit/977d1e2124ec760ba1e89005c2f5b3f4c3ecdb1b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 15 +++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 33 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 368f95ce4d6c..13277f26baec 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.119.0](https://github.com/googleapis/java-pubsub/compare/v1.118.0...v1.119.0) (2022-05-23) + + +### Features + +* add BigQuery configuration for subscriptions ([#1133](https://github.com/googleapis/java-pubsub/issues/1133)) ([6f271db](https://github.com/googleapis/java-pubsub/commit/6f271db0feadcd338e2c5a0735e3828df5327772)) +* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-pubsub/issues/1440)) ([#1145](https://github.com/googleapis/java-pubsub/issues/1145)) ([2f89017](https://github.com/googleapis/java-pubsub/commit/2f89017c4a9737d0db1456b0b9903ec07a9392e8)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.7.1 ([#1141](https://github.com/googleapis/java-pubsub/issues/1141)) ([851a119](https://github.com/googleapis/java-pubsub/commit/851a1190725d381232270bd80f6b82929f680f5f)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#1142](https://github.com/googleapis/java-pubsub/issues/1142)) ([3cf6d82](https://github.com/googleapis/java-pubsub/commit/3cf6d82f85bdb49f8b5a4f9805506e8a2fafc53c)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#1148](https://github.com/googleapis/java-pubsub/issues/1148)) ([b5b004b](https://github.com/googleapis/java-pubsub/commit/b5b004b69a0d1154f51233e1e47facc1cd13c716)) + ## [1.118.0](https://github.com/googleapis/java-pubsub/compare/v1.117.0...v1.118.0) (2022-05-18) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 72eadabf246e..74853f0e9f2d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.118.1-SNAPSHOT + 1.119.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.118.1-SNAPSHOT + 1.119.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.100.1-SNAPSHOT + 1.101.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.100.1-SNAPSHOT + 1.101.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8fc1aaa519f2..096836909b5b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.118.1-SNAPSHOT + 1.119.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.118.1-SNAPSHOT + 1.119.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d90f0766c142..5f0cf6aaa19b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.100.1-SNAPSHOT + 1.101.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.118.1-SNAPSHOT + 1.119.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3eefe0329651..5c64a3e789d9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.118.1-SNAPSHOT + 1.119.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.100.1-SNAPSHOT + 1.101.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.100.1-SNAPSHOT + 1.101.0 com.google.cloud google-cloud-pubsub - 1.118.1-SNAPSHOT + 1.119.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f0c8a7a22d48..7da517fc6b4b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.100.1-SNAPSHOT + 1.101.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.118.1-SNAPSHOT + 1.119.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1bc8c2c71828..734e31555a1d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.118.1-SNAPSHOT + 1.119.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0f9e90af2f36..84a3034435b6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.118.0:1.118.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.100.0:1.100.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.100.0:1.100.1-SNAPSHOT +google-cloud-pubsub:1.119.0:1.119.0 +grpc-google-cloud-pubsub-v1:1.101.0:1.101.0 +proto-google-cloud-pubsub-v1:1.101.0:1.101.0 From 242979ede3631cb25a4b2f82b666abf607a8fe39 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 May 2022 16:36:11 +0200 Subject: [PATCH 1053/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.0 (#1152) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.20.1` -> `3.21.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.0/compatibility-slim/3.20.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.0/confidence-slim/3.20.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    protocolbuffers/protobuf ### [`v3.21.0`](https://togithub.com/protocolbuffers/protobuf/compare/v3.20.1...v3.21.0) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.20.1...v3.21.0)
    --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7e52150aa063..f38a32da39b1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.20.1 + 3.21.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 734e31555a1d..f68e93e38a2a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.20.1 + 3.21.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 53029225ce2f..6c8874fad740 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.20.1 + 3.21.0 From 0804b37a5f976274271db44d9b8322fadd6b0c88 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 2 Jun 2022 15:13:43 -0400 Subject: [PATCH 1054/2363] chore(main): release 1.119.1-SNAPSHOT (#1150) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 74853f0e9f2d..c566ebb2e0d1 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.119.0 + 1.119.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.119.0 + 1.119.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.0 + 1.101.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.0 + 1.101.1-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 096836909b5b..7dd16acc3f3a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.119.0 + 1.119.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.119.0 + 1.119.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5f0cf6aaa19b..aed7dab19c52 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.0 + 1.101.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.119.0 + 1.119.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5c64a3e789d9..92480d02115c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.119.0 + 1.119.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.0 + 1.101.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.0 + 1.101.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.119.0 + 1.119.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7da517fc6b4b..a17f275d2c5a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.0 + 1.101.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.119.0 + 1.119.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f68e93e38a2a..f784e96f1273 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.119.0 + 1.119.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 84a3034435b6..8a53386d105a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.119.0:1.119.0 -grpc-google-cloud-pubsub-v1:1.101.0:1.101.0 -proto-google-cloud-pubsub-v1:1.101.0:1.101.0 +google-cloud-pubsub:1.119.0:1.119.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.101.0:1.101.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.101.0:1.101.1-SNAPSHOT From ec3e0490034469030822ae3b8f6ebeb0a7743b41 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 3 Jun 2022 01:17:16 +0200 Subject: [PATCH 1055/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.119.0 (#1155) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.119.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 520bd1d21cbe..e16c1bec5969 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.118.0 + 1.119.0 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.118.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.119.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.118.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.119.0" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f38a32da39b1..547905775caf 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.118.0 + 1.119.0 From 8275e5c78f2808f30b1093536906e5125be5ebd0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jun 2022 19:12:27 +0200 Subject: [PATCH 1056/2363] test(deps): update dependency org.mockito:mockito-core to v4.6.1 (#1153) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.mockito:mockito-core](https://togithub.com/mockito/mockito) | `4.5.1` -> `4.6.1` | [![age](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.6.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.6.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.6.1/compatibility-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.6.1/confidence-slim/4.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 92480d02115c..2fb0f65dd8cc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -86,7 +86,7 @@ org.mockito mockito-core - 4.5.1 + 4.6.1 test From d1a12cc7cd0f331e52cd4f4efae43b3d02c3e83d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jun 2022 19:16:32 +0200 Subject: [PATCH 1057/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.1 (#1154) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.0` -> `3.21.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.1/compatibility-slim/3.21.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.1/confidence-slim/3.21.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 547905775caf..6dac3dbbcc11 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.0 + 3.21.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f784e96f1273..5a18aae3d7f3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.0 + 3.21.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6c8874fad740..5f968168a04b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -72,7 +72,7 @@ com.google.protobuf protobuf-java-util - 3.21.0 + 3.21.1 From b63b8e31d9c572c9cb84c5c73698d76e69388cbb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Jun 2022 17:32:28 +0000 Subject: [PATCH 1058/2363] chore(main): release 1.119.1 (#1157) :robot: I have created a release *beep* *boop* --- ## [1.119.1](https://github.com/googleapis/java-pubsub/compare/v1.119.0...v1.119.1) (2022-06-06) ### Dependencies * update dependency com.google.protobuf:protobuf-java-util to v3.21.0 ([#1152](https://github.com/googleapis/java-pubsub/issues/1152)) ([242979e](https://github.com/googleapis/java-pubsub/commit/242979ede3631cb25a4b2f82b666abf607a8fe39)) * update dependency com.google.protobuf:protobuf-java-util to v3.21.1 ([#1154](https://github.com/googleapis/java-pubsub/issues/1154)) ([d1a12cc](https://github.com/googleapis/java-pubsub/commit/d1a12cc7cd0f331e52cd4f4efae43b3d02c3e83d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 27 insertions(+), 19 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 13277f26baec..3f04ff7ef821 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.119.1](https://github.com/googleapis/java-pubsub/compare/v1.119.0...v1.119.1) (2022-06-06) + + +### Dependencies + +* update dependency com.google.protobuf:protobuf-java-util to v3.21.0 ([#1152](https://github.com/googleapis/java-pubsub/issues/1152)) ([d015371](https://github.com/googleapis/java-pubsub/commit/d015371c91e22a1c03494da37a2523110c3437e0)) +* update dependency com.google.protobuf:protobuf-java-util to v3.21.1 ([#1154](https://github.com/googleapis/java-pubsub/issues/1154)) ([61aeecf](https://github.com/googleapis/java-pubsub/commit/61aeecf6c40ad0b9aa93ea48acc8cca0fe4e3764)) + ## [1.119.0](https://github.com/googleapis/java-pubsub/compare/v1.118.0...v1.119.0) (2022-05-23) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e16c1bec5969..f6110faa6296 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.3.0') +implementation platform('com.google.cloud:libraries-bom:25.4.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c566ebb2e0d1..0b01639ba8d9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.119.1-SNAPSHOT + 1.119.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.119.1-SNAPSHOT + 1.119.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.1-SNAPSHOT + 1.101.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.1-SNAPSHOT + 1.101.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7dd16acc3f3a..d36b93d8dfa7 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.119.1-SNAPSHOT + 1.119.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.119.1-SNAPSHOT + 1.119.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index aed7dab19c52..e6212cf0be95 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.1-SNAPSHOT + 1.101.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.119.1-SNAPSHOT + 1.119.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2fb0f65dd8cc..c9ad18afc893 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.119.1-SNAPSHOT + 1.119.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.1-SNAPSHOT + 1.101.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.1-SNAPSHOT + 1.101.1 com.google.cloud google-cloud-pubsub - 1.119.1-SNAPSHOT + 1.119.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a17f275d2c5a..ad43ac99eb1a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.1-SNAPSHOT + 1.101.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.119.1-SNAPSHOT + 1.119.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5a18aae3d7f3..511e0ebd5ba5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.119.1-SNAPSHOT + 1.119.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8a53386d105a..d6109180f7b2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.119.0:1.119.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.101.0:1.101.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.101.0:1.101.1-SNAPSHOT +google-cloud-pubsub:1.119.1:1.119.1 +grpc-google-cloud-pubsub-v1:1.101.1:1.101.1 +proto-google-cloud-pubsub-v1:1.101.1:1.101.1 From 95632fb1414bfbe63a4a3fe1557e3e849984059b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Jun 2022 17:48:12 +0000 Subject: [PATCH 1059/2363] chore(main): release 1.119.2-SNAPSHOT (#1159) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0b01639ba8d9..63a5ac4dce44 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.119.1 + 1.119.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.119.1 + 1.119.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.1 + 1.101.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.1 + 1.101.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d36b93d8dfa7..323ccef69cef 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.119.1 + 1.119.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.119.1 + 1.119.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e6212cf0be95..8e5edf0b9d7d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.1 + 1.101.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.119.1 + 1.119.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c9ad18afc893..a6f2a5ba4502 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.119.1 + 1.119.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.1 + 1.101.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.1 + 1.101.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.119.1 + 1.119.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ad43ac99eb1a..638cab63799b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.1 + 1.101.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.119.1 + 1.119.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 511e0ebd5ba5..ac9337294b28 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.119.1 + 1.119.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d6109180f7b2..fcbfea377a89 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.119.1:1.119.1 -grpc-google-cloud-pubsub-v1:1.101.1:1.101.1 -proto-google-cloud-pubsub-v1:1.101.1:1.101.1 +google-cloud-pubsub:1.119.1:1.119.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.101.1:1.101.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.101.1:1.101.2-SNAPSHOT From afbcd0302800258395fe7b99652ea47fd2773d57 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 9 Jun 2022 22:49:09 +0200 Subject: [PATCH 1060/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.119.1 (#1161) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.119.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f6110faa6296..909bd6e8062b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.119.0 + 1.119.1 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.119.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.119.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.119.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.119.1" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6dac3dbbcc11..6a4fe37f78f2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.119.0 + 1.119.1 From b5efc6123b66ee6cdd2d60732afe2d6f130f5963 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 9 Jun 2022 16:50:00 -0400 Subject: [PATCH 1061/2363] chore(deps): upgrade gapic-generator-java to 2.8.0 and update gax-java to 2.18.1 (#1149) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): upgrade gapic-generator-java to 2.8.0 and update gax-java to 2.18.1 PiperOrigin-RevId: 450543911 Source-Link: https://github.com/googleapis/googleapis/commit/55283447ab72f10b6c2571d770af0498b593e84f Source-Link: https://github.com/googleapis/googleapis-gen/commit/9f6775cab1958982b88967a43e5e806af0f135db Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWY2Nzc1Y2FiMTk1ODk4MmI4ODk2N2E0M2U1ZTgwNmFmMGYxMzVkYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../java/com/google/cloud/pubsub/v1/SchemaServiceClient.java | 4 ---- .../com/google/cloud/pubsub/v1/SubscriptionAdminClient.java | 4 ---- .../java/com/google/cloud/pubsub/v1/TopicAdminClient.java | 4 ---- .../google/cloud/pubsub/v1/stub/PublisherStubSettings.java | 1 - .../cloud/pubsub/v1/stub/SchemaServiceStubSettings.java | 1 - .../google/cloud/pubsub/v1/stub/SubscriberStubSettings.java | 1 - 6 files changed, 15 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 3ab408e71887..f8e0922a4057 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -18,7 +18,6 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -142,7 +141,6 @@ public static final SchemaServiceClient create(SchemaServiceSettings settings) * Constructs an instance of SchemaServiceClient, using the given stub for making calls. This is * for advanced usage - prefer using create(SchemaServiceSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final SchemaServiceClient create(SchemaServiceStub stub) { return new SchemaServiceClient(stub); } @@ -157,7 +155,6 @@ protected SchemaServiceClient(SchemaServiceSettings settings) throws IOException this.stub = ((SchemaServiceStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected SchemaServiceClient(SchemaServiceStub stub) { this.settings = null; this.stub = stub; @@ -167,7 +164,6 @@ public final SchemaServiceSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public SchemaServiceStub getStub() { return stub; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index f65dba1190a1..1772a7307e61 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -18,7 +18,6 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -168,7 +167,6 @@ public static final SubscriptionAdminClient create(SubscriptionAdminSettings set * Constructs an instance of SubscriptionAdminClient, using the given stub for making calls. This * is for advanced usage - prefer using create(SubscriptionAdminSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final SubscriptionAdminClient create(SubscriberStub stub) { return new SubscriptionAdminClient(stub); } @@ -183,7 +181,6 @@ protected SubscriptionAdminClient(SubscriptionAdminSettings settings) throws IOE this.stub = ((SubscriberStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected SubscriptionAdminClient(SubscriberStub stub) { this.settings = null; this.stub = stub; @@ -193,7 +190,6 @@ public final SubscriptionAdminSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public SubscriberStub getStub() { return stub; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 0aa458c06bfc..9b303226994e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -18,7 +18,6 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -146,7 +145,6 @@ public static final TopicAdminClient create(TopicAdminSettings settings) throws * Constructs an instance of TopicAdminClient, using the given stub for making calls. This is for * advanced usage - prefer using create(TopicAdminSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final TopicAdminClient create(PublisherStub stub) { return new TopicAdminClient(stub); } @@ -160,7 +158,6 @@ protected TopicAdminClient(TopicAdminSettings settings) throws IOException { this.stub = ((PublisherStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected TopicAdminClient(PublisherStub stub) { this.settings = null; this.stub = stub; @@ -170,7 +167,6 @@ public final TopicAdminSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public PublisherStub getStub() { return stub; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index aaeb343d30e2..dd5a997402f5 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -458,7 +458,6 @@ public UnaryCallSettings getIamPolicySettings() { return testIamPermissionsSettings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public PublisherStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index a7d8fc4ae439..963e9b7cef44 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -222,7 +222,6 @@ public UnaryCallSettings getIamPolicySettings() { return testIamPermissionsSettings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public SchemaServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 11a87f726096..e94378b17794 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -363,7 +363,6 @@ public UnaryCallSettings getIamPolicySettings() { return testIamPermissionsSettings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public SubscriberStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() From 4f0beda68d8f49e4f84c0d4d08bd6b5a2fae071d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Jun 2022 18:58:30 +0200 Subject: [PATCH 1062/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.0 (#1163) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.4.0` -> `1.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.5.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​150-httpsgithubcomgoogleapisjava-shared-configcomparev140v150-2022-06-10) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.4.0...v1.5.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-shared-config/issues/1440)) ([#​475](https://togithub.com/googleapis/java-shared-config/issues/475)) ([e4dfc1b](https://togithub.com/googleapis/java-shared-config/commit/e4dfc1ba29295158c78c8fcf94467d2a6a33538a)) - to produce Java 8 compatible bytecode when using JDK 9+ ([2468276](https://togithub.com/googleapis/java-shared-config/commit/2468276145cdfe1ca911b52f765e026e77661a09)) ##### Dependencies - update surefire.version to v3.0.0-m7 ([bbfe663](https://togithub.com/googleapis/java-shared-config/commit/bbfe66393af3e49612c9c1e4334ba39c133ea1d0))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 63a5ac4dce44..84e67f52e089 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.4.0 + 1.5.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a6f2a5ba4502..4e91748824b6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.4.0 + 1.5.0 From 4d32e706a447bc406dfd74a352df7e62e9725d09 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Wed, 15 Jun 2022 15:19:59 -0400 Subject: [PATCH 1063/2363] docs(sample): clean up README of native image sample (#1166) --- java-pubsub/samples/native-image-sample/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/java-pubsub/samples/native-image-sample/README.md b/java-pubsub/samples/native-image-sample/README.md index ace93bd8e3e2..5f0cd31e9fab 100644 --- a/java-pubsub/samples/native-image-sample/README.md +++ b/java-pubsub/samples/native-image-sample/README.md @@ -18,25 +18,25 @@ You will need to follow these prerequisite steps in order to run the samples: **Note:** Authenticating with Application Default Credentials is convenient to use during development, but we recommend [alternate methods of authentication](https://cloud.google.com/docs/authentication/production) during production use. -3. Install the GraalVM compiler. +3. Install the native image compiler. - You can follow the [official installation instructions](https://www.graalvm.org/docs/getting-started/#install-graalvm) from the GraalVM website. + You can follow the [official installation instructions](https://www.graalvm.org/docs/getting-started/#install-graalvm). After following the instructions, ensure that you install the native image extension installed by running: ``` gu install native-image ``` - Once you finish following the instructions, verify that the default version of Java is set to the GraalVM version by running `java -version` in a terminal. + Once you finish following the instructions, verify that the default version of Java is set to the correct version by running `java -version` in a terminal. You will see something similar to the below output: ``` $ java -version - openjdk version "11.0.7" 2020-04-14 - OpenJDK Runtime Environment GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02) - OpenJDK 64-Bit Server VM GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02, mixed mode, sharing) + openjdk version "17.0.3" 2022-04-19 + OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06) + OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing) ``` 4. [Enable the Pub/Sub APIs](https://console.cloud.google.com/apis/api/pubsub.googleapis.com). @@ -74,4 +74,4 @@ In order to run the sample integration test as a native image, call the followin ``` mvn test -Pnative - ``` \ No newline at end of file + ``` From 214814a5e7809f7a5392bc7907c8194c86ad9a69 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Jun 2022 02:06:23 +0200 Subject: [PATCH 1064/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 (#1169) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.11` -> `0.9.12` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.12/compatibility-slim/0.9.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.12/confidence-slim/0.9.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    graalvm/native-build-tools ### [`v0.9.12`](https://togithub.com/graalvm/native-build-tools/releases/tag/0.9.12) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.11...0.9.12) ##### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Add Mockito / Byte Buddy support documentation by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/236](https://togithub.com/graalvm/native-build-tools/pull/236) - Prevent builds from failing if no test list is present by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/239](https://togithub.com/graalvm/native-build-tools/pull/239) - Support different agent modes in the native-image Gradle plugin by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/230](https://togithub.com/graalvm/native-build-tools/pull/230) - JVM Reachability Metadata support for Maven by [@​alvarosanchez](https://togithub.com/alvarosanchez) in [https://github.com/graalvm/native-build-tools/pull/240](https://togithub.com/graalvm/native-build-tools/pull/240) - Warn about deprecated agent DSL by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/242](https://togithub.com/graalvm/native-build-tools/pull/242) - Rework Maven plugin by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/247](https://togithub.com/graalvm/native-build-tools/pull/247) - Add Gradle rich output support, configure default metadata URL on Maven by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/249](https://togithub.com/graalvm/native-build-tools/pull/249) - Fix wrong scope for test dependencies by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/251](https://togithub.com/graalvm/native-build-tools/pull/251) - Add documentation for alternative build systems. by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/248](https://togithub.com/graalvm/native-build-tools/pull/248) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.11...0.9.12
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 543ba126e9e3..2c1ddcaa7cdd 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.11 + 0.9.12 test
    From 374b70f91fddcff592f38d2c1ea9fa09056ed3ba Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Jun 2022 02:06:31 +0200 Subject: [PATCH 1065/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 (#1170) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.11` -> `0.9.12` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.12/compatibility-slim/0.9.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.12/confidence-slim/0.9.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    graalvm/native-build-tools ### [`v0.9.12`](https://togithub.com/graalvm/native-build-tools/releases/tag/0.9.12) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.11...0.9.12) ##### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Add Mockito / Byte Buddy support documentation by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/236](https://togithub.com/graalvm/native-build-tools/pull/236) - Prevent builds from failing if no test list is present by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/239](https://togithub.com/graalvm/native-build-tools/pull/239) - Support different agent modes in the native-image Gradle plugin by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/230](https://togithub.com/graalvm/native-build-tools/pull/230) - JVM Reachability Metadata support for Maven by [@​alvarosanchez](https://togithub.com/alvarosanchez) in [https://github.com/graalvm/native-build-tools/pull/240](https://togithub.com/graalvm/native-build-tools/pull/240) - Warn about deprecated agent DSL by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/242](https://togithub.com/graalvm/native-build-tools/pull/242) - Rework Maven plugin by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/247](https://togithub.com/graalvm/native-build-tools/pull/247) - Add Gradle rich output support, configure default metadata URL on Maven by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/249](https://togithub.com/graalvm/native-build-tools/pull/249) - Fix wrong scope for test dependencies by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/251](https://togithub.com/graalvm/native-build-tools/pull/251) - Add documentation for alternative build systems. by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/248](https://togithub.com/graalvm/native-build-tools/pull/248) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.11...0.9.12
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 2c1ddcaa7cdd..23c0fe42852a 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.11 + 0.9.12 true pubsub.NativeImagePubSubSample From 0fd38c503e7fe411110fa19a705692382e6e61ea Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Jun 2022 02:46:12 +0200 Subject: [PATCH 1066/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.0 (#1171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.7.1` -> `2.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/compatibility-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.0/confidence-slim/2.7.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.0`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​280-httpsgithubcomgoogleapisjava-corecomparev271v280-2022-06-21) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.7.1...v2.8.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-core/issues/1440)) ([#​836](https://togithub.com/googleapis/java-core/issues/836)) ([8826d9b](https://togithub.com/googleapis/java-core/commit/8826d9bc05eb9e4a54c40e8578de85ed79c50e99)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.1 ([#​843](https://togithub.com/googleapis/java-core/issues/843)) ([9ffe0c5](https://togithub.com/googleapis/java-core/commit/9ffe0c5b25761abf7ff1bea091aa1db057dff2d0)) - update dependency com.google.api:api-common to v2.2.1 ([#​844](https://togithub.com/googleapis/java-core/issues/844)) ([69dde56](https://togithub.com/googleapis/java-core/commit/69dde5641546b678a385b1ed3a2c7a020f81d285)) - update dependency com.google.api:gax-bom to v2.18.2 ([#​849](https://togithub.com/googleapis/java-core/issues/849)) ([11764b0](https://togithub.com/googleapis/java-core/commit/11764b04629c5bfbc9b0d68174782cc126dc1646)) - update dependency com.google.api.grpc:proto-google-common-protos to v2.9.0 ([#​846](https://togithub.com/googleapis/java-core/issues/846)) ([5dced6d](https://togithub.com/googleapis/java-core/commit/5dced6d25ce0f3e7587d7ac1f6f3713f3b2a18c2)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.4.0 ([#​838](https://togithub.com/googleapis/java-core/issues/838)) ([b0a7afe](https://togithub.com/googleapis/java-core/commit/b0a7afe342a5e15436d439b9cc1e3c58f894ab66)) - update dependency com.google.api.grpc:proto-google-iam-v1 to v1.4.1 ([#​848](https://togithub.com/googleapis/java-core/issues/848)) ([8260997](https://togithub.com/googleapis/java-core/commit/826099767b0aabe0db26eff2f612f0847b451366)) - update dependency com.google.errorprone:error_prone_annotations to v2.14.0 ([#​839](https://togithub.com/googleapis/java-core/issues/839)) ([3459fb6](https://togithub.com/googleapis/java-core/commit/3459fb668557b982cef5682ce47d3c978b83d69c)) - update dependency com.google.http-client:google-http-client-bom to v1.42.0 ([#​845](https://togithub.com/googleapis/java-core/issues/845)) ([2d2c873](https://togithub.com/googleapis/java-core/commit/2d2c873e274b26f4687d569cc3b8ae58c3c5ed54)) - update dependency com.google.protobuf:protobuf-bom to v3.21.0 ([#​840](https://togithub.com/googleapis/java-core/issues/840)) ([037da15](https://togithub.com/googleapis/java-core/commit/037da15b2aed1719e768ba5b4e001caf25952adc)) - update dependency com.google.protobuf:protobuf-bom to v3.21.1 ([#​841](https://togithub.com/googleapis/java-core/issues/841)) ([04b8862](https://togithub.com/googleapis/java-core/commit/04b886224128f1525ad8398815dc62dac87680af)) - update dependency io.grpc:grpc-bom to v1.47.0 ([#​842](https://togithub.com/googleapis/java-core/issues/842)) ([40984e2](https://togithub.com/googleapis/java-core/commit/40984e23242ba954b6ca741ca3f02ec89e92ae57)) ##### [2.7.1](https://togithub.com/googleapis/java-core/compare/v2.7.0...v2.7.1) (2022-05-19) ##### Dependencies - update dependency com.google.api:gax-bom to v2.18.1 ([#​833](https://togithub.com/googleapis/java-core/issues/833)) ([7541115](https://togithub.com/googleapis/java-core/commit/7541115095e0ae28d938a4c9621fd0f82892fe55))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6a4fe37f78f2..3b87aef9c866 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.7.1 + 2.8.0 tests
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ac9337294b28..20a028bb499e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.7.1 + 2.8.0 tests
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5f968168a04b..100ea779ed98 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-core - 2.7.1 + 2.8.0 tests From 9bca996cf8e397473f1d0b2fab3fefa08f116f95 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Wed, 22 Jun 2022 12:29:11 -0400 Subject: [PATCH 1067/2363] samples: create BigQuery subscription (#1168) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add flow control support to publisher * make suggested fixes * chore: Remove note that ordering keys requires enablements. * feat: Add support for server-side flow control * Revert "chore: Remove note that ordering keys requires enablements." This reverts commit 9c113c3e32c28cf0d1de8aad3409b5c509fb1ada. * fix: Fix import order * fix: Make error message more clear about where ordering must be enabled when publishing. * fix: Ensure that messages that are in pending batches for an ordering key are canceled when a previous publish for the ordering keys fails. * fix: Only check keyHasError if ordering keys is non-empty * fix: Set publish timeouts to be consistent with desired values * samples: create BigQuery subscription * samples: create BigQuery subscription * samples: create BigQuery subscription * Make table ID more clear * Fix string * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Fix pom and test creation/teardown * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 3 +- .../samples/install-without-bom/pom.xml | 5 ++ java-pubsub/samples/snapshot/pom.xml | 5 ++ java-pubsub/samples/snippets/pom.xml | 8 ++- .../CreateBigQuerySubscriptionExample.java | 62 +++++++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 57 +++++++++++++++++ 6 files changed, 137 insertions(+), 3 deletions(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 909bd6e8062b..8cddd9ef4a68 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import @@ -243,6 +243,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Native Image Pub Sub Sample | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java) | | Publish Operations | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/native-image-sample/src/main/java/utilities/PublishOperations.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/native-image-sample/src/main/java/utilities/PublishOperations.java) | | Create Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | +| Create Big Query Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | | Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | | Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | | Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3b87aef9c866..1504afe90ec7 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -83,6 +83,11 @@ 2.8.0 tests
    + + com.google.cloud + google-cloud-bigquery + 2.13.3 +
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 20a028bb499e..59313662f6b6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -82,6 +82,11 @@ 2.8.0 tests
    + + com.google.cloud + google-cloud-bigquery + 2.13.3 +
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 100ea779ed98..dcba129551ed 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import @@ -57,8 +57,12 @@ com.google.cloud google-cloud-pubsub
    - + + + com.google.cloud + google-cloud-bigquery + org.apache.avro avro diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java new file mode 100644 index 000000000000..002b6ef1f5ab --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java @@ -0,0 +1,62 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_bigquery_subscription] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.BigQueryConfig; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class CreateBigQuerySubscriptionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + String subscriptionId = "your-subscription-id"; + String bigqueryTableId = "your-project.your-dataset.your-table"; + + createBigQuerySubscription(projectId, topicId, subscriptionId, bigqueryTableId); + } + + public static void createBigQuerySubscription( + String projectId, String topicId, String subscriptionId, String bigqueryTableId) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + BigQueryConfig bigqueryConfig = + BigQueryConfig.newBuilder().setTable(bigqueryTableId).setWriteMetadata(true).build(); + + Subscription subscription = + subscriptionAdminClient.createSubscription( + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + .setBigqueryConfig(bigqueryConfig) + .build()); + + System.out.println("Created a BigQuery subscription: " + subscription.getAllFields()); + } + } +} +// [END pubsub_create_bigquery_subscription] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index b84751e0aa41..e42c8129015d 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -20,6 +20,17 @@ import static junit.framework.TestCase.assertNotNull; import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.bigquery.BigQuery; +import com.google.cloud.bigquery.BigQueryOptions; +import com.google.cloud.bigquery.DatasetId; +import com.google.cloud.bigquery.DatasetInfo; +import com.google.cloud.bigquery.Field; +import com.google.cloud.bigquery.Schema; +import com.google.cloud.bigquery.StandardSQLTypeName; +import com.google.cloud.bigquery.StandardTableDefinition; +import com.google.cloud.bigquery.TableDefinition; +import com.google.cloud.bigquery.TableId; +import com.google.cloud.bigquery.TableInfo; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.pubsub.v1.SubscriptionName; @@ -48,6 +59,10 @@ public class AdminIT { private static final String exactlyOnceSubscriptionId = "iam-exactly-once-subscription-" + _suffix; private static final String pushEndpoint = "https://my-test-project.appspot.com/push"; + private static final String bigqueryDatasetId = + "java_samples_data_set" + _suffix.replace("-", "_"); + private static final String bigquerySubscriptionId = "iam-bigquery-subscription-" + _suffix; + private static final String bigqueryTableId = "java_samples_table_" + _suffix; private static final TopicName topicName = TopicName.of(projectId, topicId); private static final SubscriptionName pullSubscriptionName = @@ -79,6 +94,9 @@ public void setUp() throws Exception { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); System.setOut(out); + + // Create table for BigQuery subscription. + createBigQueryTable(); } @After @@ -102,9 +120,39 @@ public void tearDown() throws Exception { } catch (NotFoundException ignored) { // ignore this as resources may not have been created } + + // Delete BigQuery table. + deleteBigQueryTable(); + System.setOut(null); } + private void createBigQueryTable() throws Exception { + BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService(); + DatasetInfo datasetInfo = DatasetInfo.newBuilder(projectId, bigqueryDatasetId).build(); + bigquery.create(datasetInfo); + + Schema schema = + Schema.of( + Field.of("data", StandardSQLTypeName.STRING), + Field.of("message_id", StandardSQLTypeName.STRING), + Field.of("attributes", StandardSQLTypeName.STRING), + Field.of("subscription_name", StandardSQLTypeName.STRING), + Field.of("publish_time", StandardSQLTypeName.TIMESTAMP)); + + TableId tableId = TableId.of(projectId, bigqueryDatasetId, bigqueryTableId); + TableDefinition tableDefinition = StandardTableDefinition.of(schema); + TableInfo tableInfo = TableInfo.newBuilder(tableId, tableDefinition).build(); + + bigquery.create(tableInfo); + } + + private void deleteBigQueryTable() throws Exception { + BigQuery bigquery = BigQueryOptions.getDefaultInstance().getService(); + DatasetId datasetId = DatasetId.of(projectId, bigqueryDatasetId); + bigquery.delete(datasetId, BigQuery.DatasetDeleteOption.deleteContents()); + } + @Test public void testAdmin() throws Exception { // Test create topic. @@ -208,12 +256,21 @@ public void testAdmin() throws Exception { .contains("Created a subscription with exactly once delivery enabled:"); assertThat(bout.toString()).contains("enable_exactly_once_delivery=true"); + bout.reset(); + // Test create a BigQuery subscription + String bigqueryTablePath = String.join(".", projectId, bigqueryDatasetId, bigqueryTableId); + CreateBigQuerySubscriptionExample.createBigQuerySubscription( + projectId, topicId, bigquerySubscriptionId, bigqueryTablePath); + assertThat(bout.toString()).contains("Created a BigQuery subscription:"); + assertThat(bout.toString()).contains(bigqueryTablePath); + bout.reset(); // Test delete subscription. DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pullSubscriptionId); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pushSubscriptionId); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, orderedSubscriptionId); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, exactlyOnceSubscriptionId); + DeleteSubscriptionExample.deleteSubscriptionExample(projectId, bigquerySubscriptionId); assertThat(bout.toString()).contains("Deleted subscription."); bout.reset(); From 382fc6fdacab6bcb7d5d823b41c8bdad23c930df Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Jun 2022 18:12:24 +0200 Subject: [PATCH 1068/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.13.5 (#1172) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.13.3` -> `2.13.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.5/compatibility-slim/2.13.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.5/confidence-slim/2.13.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery ### [`v2.13.5`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2135-httpsgithubcomgoogleapisjava-bigquerycomparev2134v2135-2022-06-23) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.13.4...v2.13.5) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#​2128](https://togithub.com/googleapis/java-bigquery/issues/2128)) ([3043533](https://togithub.com/googleapis/java-bigquery/commit/3043533608c5659be0313f1942d20314d2157fd4)) ### [`v2.13.4`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2134-httpsgithubcomgoogleapisjava-bigquerycomparev2133v2134-2022-06-22) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.13.3...v2.13.4) ##### Dependencies - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#​2124](https://togithub.com/googleapis/java-bigquery/issues/2124)) ([4542ce9](https://togithub.com/googleapis/java-bigquery/commit/4542ce9a51d9756a8a06d0e33cf3a40d1e321ade)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#​2125](https://togithub.com/googleapis/java-bigquery/issues/2125)) ([6da965f](https://togithub.com/googleapis/java-bigquery/commit/6da965f540a2cdb2eaf845301cfbfbf34b9a6866))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1504afe90ec7..8480feb93b7a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.13.3 + 2.13.5
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 59313662f6b6..59689bf22161 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.13.3 + 2.13.5
    From 811959579ae54778dfc125f75109def8e36671d4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Jun 2022 18:14:36 +0200 Subject: [PATCH 1069/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v25.4.0 (#1158) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.3.0` -> `25.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/compatibility-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/confidence-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 23c0fe42852a..c07efee5a854 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import From eb97cf4959294badab044c98007788b7e3c5b13d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 24 Jun 2022 17:06:22 +0200 Subject: [PATCH 1070/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.13.6 (#1175) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.13.5` -> `2.13.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.6/compatibility-slim/2.13.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.6/confidence-slim/2.13.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery ### [`v2.13.6`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2136-httpsgithubcomgoogleapisjava-bigquerycomparev2135v2136-2022-06-24) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.13.5...v2.13.6) ##### Dependencies - update dependency com.google.apis:google-api-services-bigquery to v2-rev20220611-1.32.1 ([#​2132](https://togithub.com/googleapis/java-bigquery/issues/2132)) ([bddefcf](https://togithub.com/googleapis/java-bigquery/commit/bddefcf647d50ee12fffea80c04613b38b8d02d0)) - update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.8.3 ([#​2135](https://togithub.com/googleapis/java-bigquery/issues/2135)) ([0bd5ddc](https://togithub.com/googleapis/java-bigquery/commit/0bd5ddc0df0a978692252e50c37c94f41a3c4e1d))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8480feb93b7a..230725486f30 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.13.5 + 2.13.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 59689bf22161..511502a0cdb1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.13.5 + 2.13.6 From 8597a5d4b27c2970dd23c2d47010ad05156c6d45 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 24 Jun 2022 12:10:09 -0400 Subject: [PATCH 1071/2363] feat: Enable REST transport for most of Java and Go clients (#1162) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Integrate new gapic-generator-java and rules_gapic PiperOrigin-RevId: 454027580 Source-Link: https://github.com/googleapis/googleapis/commit/1b222777baa702e7135610355706570ed2b56318 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Update pom.xml Co-authored-by: Owl Bot Co-authored-by: Neenu Shaji --- java-pubsub/google-cloud-pubsub/pom.xml | 16 + .../cloud/pubsub/v1/SchemaServiceClient.java | 28 +- .../pubsub/v1/SchemaServiceSettings.java | 23 +- .../pubsub/v1/SubscriptionAdminClient.java | 31 +- .../pubsub/v1/SubscriptionAdminSettings.java | 23 +- .../cloud/pubsub/v1/TopicAdminClient.java | 32 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 23 +- .../HttpJsonPublisherCallableFactory.java | 105 + .../pubsub/v1/stub/HttpJsonPublisherStub.java | 825 +++++++ .../HttpJsonSchemaServiceCallableFactory.java | 105 + .../v1/stub/HttpJsonSchemaServiceStub.java | 639 ++++++ .../HttpJsonSubscriberCallableFactory.java | 105 + .../v1/stub/HttpJsonSubscriberStub.java | 1124 ++++++++++ .../pubsub/v1/stub/PublisherStubSettings.java | 52 +- .../v1/stub/SchemaServiceStubSettings.java | 53 +- .../v1/stub/SubscriberStubSettings.java | 53 +- .../v1/SchemaServiceClientHttpJsonTest.java | 764 +++++++ .../pubsub/v1/SchemaServiceClientTest.java | 12 +- .../SubscriptionAdminClientHttpJsonTest.java | 1966 +++++++++++++++++ .../v1/SubscriptionAdminClientTest.java | 13 +- .../v1/TopicAdminClientHttpJsonTest.java | 1060 +++++++++ .../cloud/pubsub/v1/TopicAdminClientTest.java | 13 +- 22 files changed, 7008 insertions(+), 57 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 323ccef69cef..395ba8898fed 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -65,6 +65,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -136,12 +140,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index f8e0922a4057..0877de078468 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -116,6 +116,20 @@ * SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); * } * + *

    To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
    + * SchemaServiceSettings schemaServiceSettings =
    + *     SchemaServiceSettings.newBuilder()
    + *         .setTransportChannelProvider(
    + *             SchemaServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
    + *         .build();
    + * SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings);
    + * }
    + * *

    Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -531,7 +545,7 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) { * .build(); * while (true) { * ListSchemasResponse response = schemaServiceClient.listSchemasCallable().call(request); - * for (Schema element : response.getResponsesList()) { + * for (Schema element : response.getSchemasList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -825,7 +839,7 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -854,7 +868,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -881,7 +895,7 @@ public final UnaryCallable setIamPolicyCallable() { * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = schemaServiceClient.getIamPolicy(request); @@ -908,7 +922,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture future = schemaServiceClient.getIamPolicyCallable().futureCall(request); @@ -938,7 +952,7 @@ public final UnaryCallable getIamPolicyCallable() { * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * TestIamPermissionsResponse response = schemaServiceClient.testIamPermissions(request); @@ -969,7 +983,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * ApiFuture future = diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 597c33bc6aa7..128405e64613 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -23,6 +23,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -159,11 +160,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return SchemaServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return SchemaServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SchemaServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return SchemaServiceStubSettings.defaultTransportChannelProvider(); } @@ -173,11 +181,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return SchemaServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -215,6 +229,11 @@ private static Builder createDefault() { return new Builder(SchemaServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(SchemaServiceStubSettings.newHttpJsonBuilder()); + } + public SchemaServiceStubSettings.Builder getStubSettingsBuilder() { return ((SchemaServiceStubSettings.Builder) getStubSettings()); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 1772a7307e61..85556d5de1c1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -142,6 +142,21 @@ * SubscriptionAdminClient.create(subscriptionAdminSettings); * } * + *

    To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
    + * SubscriptionAdminSettings subscriptionAdminSettings =
    + *     SubscriptionAdminSettings.newBuilder()
    + *         .setTransportChannelProvider(
    + *             SubscriptionAdminSettings.defaultHttpJsonTransportProviderBuilder().build())
    + *         .build();
    + * SubscriptionAdminClient subscriptionAdminClient =
    + *     SubscriptionAdminClient.create(subscriptionAdminSettings);
    + * }
    + * *

    Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -1091,7 +1106,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * while (true) { * ListSubscriptionsResponse response = * subscriptionAdminClient.listSubscriptionsCallable().call(request); - * for (Subscription element : response.getResponsesList()) { + * for (Subscription element : response.getSubscriptionsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2383,7 +2398,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque * while (true) { * ListSnapshotsResponse response = * subscriptionAdminClient.listSnapshotsCallable().call(request); - * for (Snapshot element : response.getResponsesList()) { + * for (Snapshot element : response.getSnapshotsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3114,7 +3129,7 @@ public final UnaryCallable seekCallable() { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -3174,7 +3189,7 @@ public final Policy setIamPolicy(String resource, Policy policy) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -3201,7 +3216,7 @@ public final UnaryCallable setIamPolicyCallable() { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = subscriptionAdminClient.getIamPolicy(request); @@ -3253,7 +3268,7 @@ public final Policy getIamPolicy(String resource) { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture future = subscriptionAdminClient.getIamPolicyCallable().futureCall(request); @@ -3283,7 +3298,7 @@ public final UnaryCallable getIamPolicyCallable() { * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(request); @@ -3352,7 +3367,7 @@ public final TestIamPermissionsResponse testIamPermissions( * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * ApiFuture future = diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index c658184ab155..c5c56f91d5dd 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -24,6 +24,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -226,11 +227,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return SubscriberStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return SubscriberStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SubscriberStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return SubscriberStubSettings.defaultTransportChannelProvider(); } @@ -240,11 +248,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return SubscriberStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -282,6 +296,11 @@ private static Builder createDefault() { return new Builder(SubscriberStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(SubscriberStubSettings.newHttpJsonBuilder()); + } + public SubscriberStubSettings.Builder getStubSettingsBuilder() { return ((SubscriberStubSettings.Builder) getStubSettings()); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 9b303226994e..d1120f246f9a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -121,6 +121,20 @@ * TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings); * } * + *

    To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

    {@code
    + * // This snippet has been automatically generated for illustrative purposes only.
    + * // It may require modifications to work in your environment.
    + * TopicAdminSettings topicAdminSettings =
    + *     TopicAdminSettings.newBuilder()
    + *         .setTransportChannelProvider(
    + *             TopicAdminSettings.defaultHttpJsonTransportProviderBuilder().build())
    + *         .build();
    + * TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings);
    + * }
    + * *

    Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -731,7 +745,7 @@ public final UnaryCallable listTopic * .build(); * while (true) { * ListTopicsResponse response = topicAdminClient.listTopicsCallable().call(request); - * for (Topic element : response.getResponsesList()) { + * for (Topic element : response.getTopicsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -912,7 +926,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * while (true) { * ListTopicSubscriptionsResponse response = * topicAdminClient.listTopicSubscriptionsCallable().call(request); - * for (String element : response.getResponsesList()) { + * for (String element : response.getSubscriptionsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1080,7 +1094,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * while (true) { * ListTopicSnapshotsResponse response = * topicAdminClient.listTopicSnapshotsCallable().call(request); - * for (String element : response.getResponsesList()) { + * for (String element : response.getSnapshotsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1305,7 +1319,7 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -1365,7 +1379,7 @@ public final Policy setIamPolicy(String resource, Policy policy) { * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setPolicy(Policy.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); @@ -1392,7 +1406,7 @@ public final UnaryCallable setIamPolicyCallable() { * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = topicAdminClient.getIamPolicy(request); @@ -1444,7 +1458,7 @@ public final Policy getIamPolicy(String resource) { * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture future = topicAdminClient.getIamPolicyCallable().futureCall(request); @@ -1474,7 +1488,7 @@ public final UnaryCallable getIamPolicyCallable() { * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(request); @@ -1543,7 +1557,7 @@ public final TestIamPermissionsResponse testIamPermissions( * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource(ProjectName.of("[PROJECT]").toString()) + * .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * ApiFuture future = diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index d0efac54ff3f..ecb1cf70a8c0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.BatchingCallSettings; import com.google.api.gax.rpc.ClientContext; @@ -186,11 +187,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return PublisherStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return PublisherStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return PublisherStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return PublisherStubSettings.defaultTransportChannelProvider(); } @@ -200,11 +208,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return PublisherStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -242,6 +256,11 @@ private static Builder createDefault() { return new Builder(PublisherStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(PublisherStubSettings.newHttpJsonBuilder()); + } + public PublisherStubSettings.Builder getStubSettingsBuilder() { return ((PublisherStubSettings.Builder) getStubSettings()); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java new file mode 100644 index 000000000000..a6ee5b58b9b5 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Publisher service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonPublisherCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java new file mode 100644 index 000000000000..96f674f54df9 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java @@ -0,0 +1,825 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import com.google.pubsub.v1.DeleteTopicRequest; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; +import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.ListTopicSnapshotsRequest; +import com.google.pubsub.v1.ListTopicSnapshotsResponse; +import com.google.pubsub.v1.ListTopicSubscriptionsRequest; +import com.google.pubsub.v1.ListTopicSubscriptionsResponse; +import com.google.pubsub.v1.ListTopicsRequest; +import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.PublishRequest; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.UpdateTopicRequest; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Publisher service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonPublisherStub extends PublisherStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor createTopicMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Publisher/CreateTopic") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/topics/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Topic.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateTopicMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Publisher/UpdateTopic") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{topic.name=projects/*/topics/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "topic.name", request.getTopic().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Topic.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + publishMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Publisher/Publish") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{topic=projects/*/topics/*}:publish", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "topic", request.getTopic()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearTopic().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PublishResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getTopicMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Publisher/GetTopic") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{topic=projects/*/topics/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "topic", request.getTopic()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Topic.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTopicsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Publisher/ListTopics") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{project=projects/*}/topics", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTopicsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse> + listTopicSubscriptionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.pubsub.v1.Publisher/ListTopicSubscriptions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{topic=projects/*/topics/*}/subscriptions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "topic", request.getTopic()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTopicSubscriptionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTopicSnapshotsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Publisher/ListTopicSnapshots") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{topic=projects/*/topics/*}/snapshots", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "topic", request.getTopic()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTopicSnapshotsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteTopicMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Publisher/DeleteTopic") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{topic=projects/*/topics/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "topic", request.getTopic()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + detachSubscriptionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Publisher/DetachSubscription") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{subscription=projects/*/subscriptions/*}:detach", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "subscription", request.getSubscription()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DetachSubscriptionResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/topics/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/subscriptions/*}:setIamPolicy", + "/v1/{resource=projects/*/snapshots/*}:setIamPolicy", + "/v1/{resource=projects/*/schemas/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/topics/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/subscriptions/*}:getIamPolicy", + "/v1/{resource=projects/*/snapshots/*}:getIamPolicy", + "/v1/{resource=projects/*/schemas/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/subscriptions/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/topics/*}:testIamPermissions", + "/v1/{resource=projects/*/snapshots/*}:testIamPermissions", + "/v1/{resource=projects/*/schemas/*}:testIamPermissions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createTopicCallable; + private final UnaryCallable updateTopicCallable; + private final UnaryCallable publishCallable; + private final UnaryCallable getTopicCallable; + private final UnaryCallable listTopicsCallable; + private final UnaryCallable listTopicsPagedCallable; + private final UnaryCallable + listTopicSubscriptionsCallable; + private final UnaryCallable + listTopicSubscriptionsPagedCallable; + private final UnaryCallable + listTopicSnapshotsCallable; + private final UnaryCallable + listTopicSnapshotsPagedCallable; + private final UnaryCallable deleteTopicCallable; + private final UnaryCallable + detachSubscriptionCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonPublisherStub create(PublisherStubSettings settings) + throws IOException { + return new HttpJsonPublisherStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonPublisherStub create(ClientContext clientContext) throws IOException { + return new HttpJsonPublisherStub( + PublisherStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonPublisherStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonPublisherStub( + PublisherStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonPublisherStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonPublisherStub(PublisherStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonPublisherCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonPublisherStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonPublisherStub( + PublisherStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createTopicTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTopicMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateTopicTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateTopicMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings publishTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(publishMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getTopicTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTopicMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listTopicsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTopicsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listTopicSubscriptionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listTopicSubscriptionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listTopicSnapshotsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTopicSnapshotsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteTopicTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTopicMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + detachSubscriptionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(detachSubscriptionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createTopicCallable = + callableFactory.createUnaryCallable( + createTopicTransportSettings, settings.createTopicSettings(), clientContext); + this.updateTopicCallable = + callableFactory.createUnaryCallable( + updateTopicTransportSettings, settings.updateTopicSettings(), clientContext); + this.publishCallable = + callableFactory.createBatchingCallable( + publishTransportSettings, settings.publishSettings(), clientContext); + this.getTopicCallable = + callableFactory.createUnaryCallable( + getTopicTransportSettings, settings.getTopicSettings(), clientContext); + this.listTopicsCallable = + callableFactory.createUnaryCallable( + listTopicsTransportSettings, settings.listTopicsSettings(), clientContext); + this.listTopicsPagedCallable = + callableFactory.createPagedCallable( + listTopicsTransportSettings, settings.listTopicsSettings(), clientContext); + this.listTopicSubscriptionsCallable = + callableFactory.createUnaryCallable( + listTopicSubscriptionsTransportSettings, + settings.listTopicSubscriptionsSettings(), + clientContext); + this.listTopicSubscriptionsPagedCallable = + callableFactory.createPagedCallable( + listTopicSubscriptionsTransportSettings, + settings.listTopicSubscriptionsSettings(), + clientContext); + this.listTopicSnapshotsCallable = + callableFactory.createUnaryCallable( + listTopicSnapshotsTransportSettings, + settings.listTopicSnapshotsSettings(), + clientContext); + this.listTopicSnapshotsPagedCallable = + callableFactory.createPagedCallable( + listTopicSnapshotsTransportSettings, + settings.listTopicSnapshotsSettings(), + clientContext); + this.deleteTopicCallable = + callableFactory.createUnaryCallable( + deleteTopicTransportSettings, settings.deleteTopicSettings(), clientContext); + this.detachSubscriptionCallable = + callableFactory.createUnaryCallable( + detachSubscriptionTransportSettings, + settings.detachSubscriptionSettings(), + clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createTopicMethodDescriptor); + methodDescriptors.add(updateTopicMethodDescriptor); + methodDescriptors.add(publishMethodDescriptor); + methodDescriptors.add(getTopicMethodDescriptor); + methodDescriptors.add(listTopicsMethodDescriptor); + methodDescriptors.add(listTopicSubscriptionsMethodDescriptor); + methodDescriptors.add(listTopicSnapshotsMethodDescriptor); + methodDescriptors.add(deleteTopicMethodDescriptor); + methodDescriptors.add(detachSubscriptionMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createTopicCallable() { + return createTopicCallable; + } + + @Override + public UnaryCallable updateTopicCallable() { + return updateTopicCallable; + } + + @Override + public UnaryCallable publishCallable() { + return publishCallable; + } + + @Override + public UnaryCallable getTopicCallable() { + return getTopicCallable; + } + + @Override + public UnaryCallable listTopicsCallable() { + return listTopicsCallable; + } + + @Override + public UnaryCallable listTopicsPagedCallable() { + return listTopicsPagedCallable; + } + + @Override + public UnaryCallable + listTopicSubscriptionsCallable() { + return listTopicSubscriptionsCallable; + } + + @Override + public UnaryCallable + listTopicSubscriptionsPagedCallable() { + return listTopicSubscriptionsPagedCallable; + } + + @Override + public UnaryCallable + listTopicSnapshotsCallable() { + return listTopicSnapshotsCallable; + } + + @Override + public UnaryCallable + listTopicSnapshotsPagedCallable() { + return listTopicSnapshotsPagedCallable; + } + + @Override + public UnaryCallable deleteTopicCallable() { + return deleteTopicCallable; + } + + @Override + public UnaryCallable + detachSubscriptionCallable() { + return detachSubscriptionCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java new file mode 100644 index 000000000000..3eef08b20a92 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SchemaService service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSchemaServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java new file mode 100644 index 000000000000..b4d220f6184a --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -0,0 +1,639 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import com.google.pubsub.v1.CreateSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemasRequest; +import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.ValidateMessageRequest; +import com.google.pubsub.v1.ValidateMessageResponse; +import com.google.pubsub.v1.ValidateSchemaRequest; +import com.google.pubsub.v1.ValidateSchemaResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SchemaService service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSchemaServiceStub extends SchemaServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.SchemaService/CreateSchema") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/schemas", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "schemaId", request.getSchemaId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("schema", request.getSchema())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Schema.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.SchemaService/GetSchema") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/schemas/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getView()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Schema.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSchemasMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.SchemaService/ListSchemas") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/schemas", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "view", request.getView()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSchemasResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.SchemaService/DeleteSchema") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/schemas/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + validateSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.SchemaService/ValidateSchema") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/schemas:validate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ValidateSchemaResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + validateMessageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.SchemaService/ValidateMessage") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/schemas:validateMessage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ValidateMessageResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/topics/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/subscriptions/*}:setIamPolicy", + "/v1/{resource=projects/*/snapshots/*}:setIamPolicy", + "/v1/{resource=projects/*/schemas/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/topics/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/subscriptions/*}:getIamPolicy", + "/v1/{resource=projects/*/snapshots/*}:getIamPolicy", + "/v1/{resource=projects/*/schemas/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/subscriptions/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/topics/*}:testIamPermissions", + "/v1/{resource=projects/*/snapshots/*}:testIamPermissions", + "/v1/{resource=projects/*/schemas/*}:testIamPermissions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createSchemaCallable; + private final UnaryCallable getSchemaCallable; + private final UnaryCallable listSchemasCallable; + private final UnaryCallable + listSchemasPagedCallable; + private final UnaryCallable deleteSchemaCallable; + private final UnaryCallable validateSchemaCallable; + private final UnaryCallable + validateMessageCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSchemaServiceStub create(SchemaServiceStubSettings settings) + throws IOException { + return new HttpJsonSchemaServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSchemaServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSchemaServiceStub( + SchemaServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSchemaServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSchemaServiceStub( + SchemaServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSchemaServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSchemaServiceStub( + SchemaServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSchemaServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSchemaServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSchemaServiceStub( + SchemaServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listSchemasTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSchemasMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + validateSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(validateSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + validateMessageTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(validateMessageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createSchemaCallable = + callableFactory.createUnaryCallable( + createSchemaTransportSettings, settings.createSchemaSettings(), clientContext); + this.getSchemaCallable = + callableFactory.createUnaryCallable( + getSchemaTransportSettings, settings.getSchemaSettings(), clientContext); + this.listSchemasCallable = + callableFactory.createUnaryCallable( + listSchemasTransportSettings, settings.listSchemasSettings(), clientContext); + this.listSchemasPagedCallable = + callableFactory.createPagedCallable( + listSchemasTransportSettings, settings.listSchemasSettings(), clientContext); + this.deleteSchemaCallable = + callableFactory.createUnaryCallable( + deleteSchemaTransportSettings, settings.deleteSchemaSettings(), clientContext); + this.validateSchemaCallable = + callableFactory.createUnaryCallable( + validateSchemaTransportSettings, settings.validateSchemaSettings(), clientContext); + this.validateMessageCallable = + callableFactory.createUnaryCallable( + validateMessageTransportSettings, settings.validateMessageSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createSchemaMethodDescriptor); + methodDescriptors.add(getSchemaMethodDescriptor); + methodDescriptors.add(listSchemasMethodDescriptor); + methodDescriptors.add(deleteSchemaMethodDescriptor); + methodDescriptors.add(validateSchemaMethodDescriptor); + methodDescriptors.add(validateMessageMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createSchemaCallable() { + return createSchemaCallable; + } + + @Override + public UnaryCallable getSchemaCallable() { + return getSchemaCallable; + } + + @Override + public UnaryCallable listSchemasCallable() { + return listSchemasCallable; + } + + @Override + public UnaryCallable listSchemasPagedCallable() { + return listSchemasPagedCallable; + } + + @Override + public UnaryCallable deleteSchemaCallable() { + return deleteSchemaCallable; + } + + @Override + public UnaryCallable validateSchemaCallable() { + return validateSchemaCallable; + } + + @Override + public UnaryCallable validateMessageCallable() { + return validateMessageCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java new file mode 100644 index 000000000000..5eb399a0ea27 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Subscriber service API. + * + *

    This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSubscriberCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java new file mode 100644 index 000000000000..354ea15f3b1f --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1.stub; + +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.CreateSnapshotRequest; +import com.google.pubsub.v1.DeleteSnapshotRequest; +import com.google.pubsub.v1.DeleteSubscriptionRequest; +import com.google.pubsub.v1.GetSnapshotRequest; +import com.google.pubsub.v1.GetSubscriptionRequest; +import com.google.pubsub.v1.ListSnapshotsRequest; +import com.google.pubsub.v1.ListSnapshotsResponse; +import com.google.pubsub.v1.ListSubscriptionsRequest; +import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.ModifyPushConfigRequest; +import com.google.pubsub.v1.PullRequest; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.UpdateSnapshotRequest; +import com.google.pubsub.v1.UpdateSubscriptionRequest; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Subscriber service API. + * + *

    This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSubscriberStub extends SubscriberStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createSubscriptionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/CreateSubscription") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/subscriptions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Subscription.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getSubscriptionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/GetSubscription") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{subscription=projects/*/subscriptions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "subscription", request.getSubscription()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Subscription.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSubscriptionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/UpdateSubscription") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{subscription.name=projects/*/subscriptions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "subscription.name", request.getSubscription().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Subscription.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSubscriptionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/ListSubscriptions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{project=projects/*}/subscriptions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSubscriptionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteSubscriptionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/DeleteSubscription") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{subscription=projects/*/subscriptions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "subscription", request.getSubscription()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + modifyAckDeadlineMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/ModifyAckDeadline") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{subscription=projects/*/subscriptions/*}:modifyAckDeadline", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "subscription", request.getSubscription()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearSubscription().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor acknowledgeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/Acknowledge") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{subscription=projects/*/subscriptions/*}:acknowledge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "subscription", request.getSubscription()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearSubscription().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor pullMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/Pull") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{subscription=projects/*/subscriptions/*}:pull", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "subscription", request.getSubscription()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearSubscription().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PullResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + modifyPushConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/ModifyPushConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{subscription=projects/*/subscriptions/*}:modifyPushConfig", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "subscription", request.getSubscription()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearSubscription().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getSnapshotMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/GetSnapshot") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{snapshot=projects/*/snapshots/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "snapshot", request.getSnapshot()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Snapshot.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSnapshotsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/ListSnapshots") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{project=projects/*}/snapshots", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSnapshotsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createSnapshotMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/CreateSnapshot") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/snapshots/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Snapshot.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateSnapshotMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/UpdateSnapshot") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{snapshot.name=projects/*/snapshots/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "snapshot.name", request.getSnapshot().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Snapshot.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteSnapshotMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/DeleteSnapshot") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{snapshot=projects/*/snapshots/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "snapshot", request.getSnapshot()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor seekMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.Subscriber/Seek") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{subscription=projects/*/subscriptions/*}:seek", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "subscription", request.getSubscription()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearSubscription().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SeekResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/topics/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/subscriptions/*}:setIamPolicy", + "/v1/{resource=projects/*/snapshots/*}:setIamPolicy", + "/v1/{resource=projects/*/schemas/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/topics/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/subscriptions/*}:getIamPolicy", + "/v1/{resource=projects/*/snapshots/*}:getIamPolicy", + "/v1/{resource=projects/*/schemas/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/subscriptions/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/topics/*}:testIamPermissions", + "/v1/{resource=projects/*/snapshots/*}:testIamPermissions", + "/v1/{resource=projects/*/schemas/*}:testIamPermissions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createSubscriptionCallable; + private final UnaryCallable getSubscriptionCallable; + private final UnaryCallable updateSubscriptionCallable; + private final UnaryCallable + listSubscriptionsCallable; + private final UnaryCallable + listSubscriptionsPagedCallable; + private final UnaryCallable deleteSubscriptionCallable; + private final UnaryCallable modifyAckDeadlineCallable; + private final UnaryCallable acknowledgeCallable; + private final UnaryCallable pullCallable; + private final UnaryCallable modifyPushConfigCallable; + private final UnaryCallable getSnapshotCallable; + private final UnaryCallable listSnapshotsCallable; + private final UnaryCallable + listSnapshotsPagedCallable; + private final UnaryCallable createSnapshotCallable; + private final UnaryCallable updateSnapshotCallable; + private final UnaryCallable deleteSnapshotCallable; + private final UnaryCallable seekCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSubscriberStub create(SubscriberStubSettings settings) + throws IOException { + return new HttpJsonSubscriberStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSubscriberStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSubscriberStub( + SubscriberStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSubscriberStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSubscriberStub( + SubscriberStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSubscriberStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonSubscriberCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSubscriberStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonSubscriberStub( + SubscriberStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createSubscriptionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSubscriptionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getSubscriptionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSubscriptionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateSubscriptionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSubscriptionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listSubscriptionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSubscriptionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteSubscriptionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSubscriptionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings modifyAckDeadlineTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(modifyAckDeadlineMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings acknowledgeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(acknowledgeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings pullTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(pullMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings modifyPushConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(modifyPushConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getSnapshotTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSnapshotMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listSnapshotsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSnapshotsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createSnapshotTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSnapshotMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateSnapshotTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSnapshotMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteSnapshotTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSnapshotMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings seekTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(seekMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createSubscriptionCallable = + callableFactory.createUnaryCallable( + createSubscriptionTransportSettings, + settings.createSubscriptionSettings(), + clientContext); + this.getSubscriptionCallable = + callableFactory.createUnaryCallable( + getSubscriptionTransportSettings, settings.getSubscriptionSettings(), clientContext); + this.updateSubscriptionCallable = + callableFactory.createUnaryCallable( + updateSubscriptionTransportSettings, + settings.updateSubscriptionSettings(), + clientContext); + this.listSubscriptionsCallable = + callableFactory.createUnaryCallable( + listSubscriptionsTransportSettings, + settings.listSubscriptionsSettings(), + clientContext); + this.listSubscriptionsPagedCallable = + callableFactory.createPagedCallable( + listSubscriptionsTransportSettings, + settings.listSubscriptionsSettings(), + clientContext); + this.deleteSubscriptionCallable = + callableFactory.createUnaryCallable( + deleteSubscriptionTransportSettings, + settings.deleteSubscriptionSettings(), + clientContext); + this.modifyAckDeadlineCallable = + callableFactory.createUnaryCallable( + modifyAckDeadlineTransportSettings, + settings.modifyAckDeadlineSettings(), + clientContext); + this.acknowledgeCallable = + callableFactory.createUnaryCallable( + acknowledgeTransportSettings, settings.acknowledgeSettings(), clientContext); + this.pullCallable = + callableFactory.createUnaryCallable( + pullTransportSettings, settings.pullSettings(), clientContext); + this.modifyPushConfigCallable = + callableFactory.createUnaryCallable( + modifyPushConfigTransportSettings, settings.modifyPushConfigSettings(), clientContext); + this.getSnapshotCallable = + callableFactory.createUnaryCallable( + getSnapshotTransportSettings, settings.getSnapshotSettings(), clientContext); + this.listSnapshotsCallable = + callableFactory.createUnaryCallable( + listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); + this.listSnapshotsPagedCallable = + callableFactory.createPagedCallable( + listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); + this.createSnapshotCallable = + callableFactory.createUnaryCallable( + createSnapshotTransportSettings, settings.createSnapshotSettings(), clientContext); + this.updateSnapshotCallable = + callableFactory.createUnaryCallable( + updateSnapshotTransportSettings, settings.updateSnapshotSettings(), clientContext); + this.deleteSnapshotCallable = + callableFactory.createUnaryCallable( + deleteSnapshotTransportSettings, settings.deleteSnapshotSettings(), clientContext); + this.seekCallable = + callableFactory.createUnaryCallable( + seekTransportSettings, settings.seekSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createSubscriptionMethodDescriptor); + methodDescriptors.add(getSubscriptionMethodDescriptor); + methodDescriptors.add(updateSubscriptionMethodDescriptor); + methodDescriptors.add(listSubscriptionsMethodDescriptor); + methodDescriptors.add(deleteSubscriptionMethodDescriptor); + methodDescriptors.add(modifyAckDeadlineMethodDescriptor); + methodDescriptors.add(acknowledgeMethodDescriptor); + methodDescriptors.add(pullMethodDescriptor); + methodDescriptors.add(modifyPushConfigMethodDescriptor); + methodDescriptors.add(getSnapshotMethodDescriptor); + methodDescriptors.add(listSnapshotsMethodDescriptor); + methodDescriptors.add(createSnapshotMethodDescriptor); + methodDescriptors.add(updateSnapshotMethodDescriptor); + methodDescriptors.add(deleteSnapshotMethodDescriptor); + methodDescriptors.add(seekMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createSubscriptionCallable() { + return createSubscriptionCallable; + } + + @Override + public UnaryCallable getSubscriptionCallable() { + return getSubscriptionCallable; + } + + @Override + public UnaryCallable updateSubscriptionCallable() { + return updateSubscriptionCallable; + } + + @Override + public UnaryCallable + listSubscriptionsCallable() { + return listSubscriptionsCallable; + } + + @Override + public UnaryCallable + listSubscriptionsPagedCallable() { + return listSubscriptionsPagedCallable; + } + + @Override + public UnaryCallable deleteSubscriptionCallable() { + return deleteSubscriptionCallable; + } + + @Override + public UnaryCallable modifyAckDeadlineCallable() { + return modifyAckDeadlineCallable; + } + + @Override + public UnaryCallable acknowledgeCallable() { + return acknowledgeCallable; + } + + @Override + public UnaryCallable pullCallable() { + return pullCallable; + } + + @Override + public UnaryCallable modifyPushConfigCallable() { + return modifyPushConfigCallable; + } + + @Override + public UnaryCallable getSnapshotCallable() { + return getSnapshotCallable; + } + + @Override + public UnaryCallable listSnapshotsCallable() { + return listSnapshotsCallable; + } + + @Override + public UnaryCallable + listSnapshotsPagedCallable() { + return listSnapshotsPagedCallable; + } + + @Override + public UnaryCallable createSnapshotCallable() { + return createSnapshotCallable; + } + + @Override + public UnaryCallable updateSnapshotCallable() { + return updateSnapshotCallable; + } + + @Override + public UnaryCallable deleteSnapshotCallable() { + return deleteSnapshotCallable; + } + + @Override + public UnaryCallable seekCallable() { + return seekCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index dd5a997402f5..573fd95971a4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -34,6 +34,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -464,6 +467,11 @@ public PublisherStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcPublisherStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonPublisherStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -496,29 +504,54 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) .setTransportToken( GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return PublisherStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -725,6 +758,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createTopicSettings() diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 963e9b7cef44..5c470e241a1a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -228,6 +231,11 @@ public SchemaServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSchemaServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSchemaServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -260,18 +268,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(SchemaServiceStubSettings.class)) @@ -279,11 +294,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SchemaServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SchemaServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -415,6 +449,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createSchemaSettings() diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index e94378b17794..e9ae4617f31c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -369,6 +372,11 @@ public SubscriberStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSubscriberStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSubscriberStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -401,17 +409,24 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder().setMaxInboundMessageSize(20 << 20); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(SubscriberStubSettings.class)) @@ -419,11 +434,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SubscriberStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SubscriberStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -666,6 +700,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createSubscriptionSettings() diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..c34c46f9de12 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java @@ -0,0 +1,764 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.pubsub.v1.stub.HttpJsonSchemaServiceStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.Encoding; +import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import com.google.pubsub.v1.ValidateMessageRequest; +import com.google.pubsub.v1.ValidateMessageResponse; +import com.google.pubsub.v1.ValidateSchemaResponse; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SchemaServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SchemaServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSchemaServiceStub.getMethodDescriptors(), + SchemaServiceSettings.getDefaultEndpoint()); + SchemaServiceSettings settings = + SchemaServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SchemaServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SchemaServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + + Schema actualResponse = client.createSchema(parent, schema, schemaId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + client.createSchema(parent, schema, schemaId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + + Schema actualResponse = client.createSchema(parent, schema, schemaId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSchemaExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + Schema schema = Schema.newBuilder().build(); + String schemaId = "schemaId-697673060"; + client.createSchema(parent, schema, schemaId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .build(); + mockService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + + Schema actualResponse = client.getSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + client.getSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5662/schemas/schema-5662"; + + Schema actualResponse = client.getSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSchemaExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5662/schemas/schema-5662"; + client.getSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSchemasTest() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemasResponse expectedResponse = + ListSchemasResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListSchemasPagedResponse pagedListResponse = client.listSchemas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSchemasExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listSchemas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSchemasTest2() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemasResponse expectedResponse = + ListSchemasResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListSchemasPagedResponse pagedListResponse = client.listSchemas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSchemasExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listSchemas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSchemaTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + + client.deleteSchema(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + client.deleteSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSchemaTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5662/schemas/schema-5662"; + + client.deleteSchema(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSchemaExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5662/schemas/schema-5662"; + client.deleteSchema(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void validateSchemaTest() throws Exception { + ValidateSchemaResponse expectedResponse = ValidateSchemaResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Schema schema = Schema.newBuilder().build(); + + ValidateSchemaResponse actualResponse = client.validateSchema(parent, schema); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void validateSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Schema schema = Schema.newBuilder().build(); + client.validateSchema(parent, schema); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void validateSchemaTest2() throws Exception { + ValidateSchemaResponse expectedResponse = ValidateSchemaResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + Schema schema = Schema.newBuilder().build(); + + ValidateSchemaResponse actualResponse = client.validateSchema(parent, schema); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void validateSchemaExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + Schema schema = Schema.newBuilder().build(); + client.validateSchema(parent, schema); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void validateMessageTest() throws Exception { + ValidateMessageResponse expectedResponse = ValidateMessageResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ValidateMessageRequest request = + ValidateMessageRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setMessage(ByteString.EMPTY) + .setEncoding(Encoding.forNumber(0)) + .build(); + + ValidateMessageResponse actualResponse = client.validateMessage(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void validateMessageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ValidateMessageRequest request = + ValidateMessageRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setMessage(ByteString.EMPTY) + .setEncoding(Encoding.forNumber(0)) + .build(); + client.validateMessage(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java index 92673b9d9511..60fadbced72b 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -568,7 +568,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -597,7 +597,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -621,7 +621,7 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -648,7 +648,7 @@ public void getIamPolicyExceptionTest() throws Exception { try { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); client.getIamPolicy(request); @@ -666,7 +666,7 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .addAllPermissions(new ArrayList()) .build(); @@ -693,7 +693,7 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .addAllPermissions(new ArrayList()) .build(); client.testIamPermissions(request); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java new file mode 100644 index 000000000000..aee7e10edf9d --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -0,0 +1,1966 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; +import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.pubsub.v1.stub.HttpJsonSubscriberStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.pubsub.v1.BigQueryConfig; +import com.google.pubsub.v1.DeadLetterPolicy; +import com.google.pubsub.v1.ExpirationPolicy; +import com.google.pubsub.v1.ListSnapshotsResponse; +import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.ReceivedMessage; +import com.google.pubsub.v1.RetryPolicy; +import com.google.pubsub.v1.SchemaName; +import com.google.pubsub.v1.SeekRequest; +import com.google.pubsub.v1.SeekResponse; +import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.SnapshotName; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.UpdateSnapshotRequest; +import com.google.pubsub.v1.UpdateSubscriptionRequest; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SubscriptionAdminClientHttpJsonTest { + private static MockHttpService mockService; + private static SubscriptionAdminClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSubscriberStub.getMethodDescriptors(), + SubscriptionAdminSettings.getDefaultEndpoint()); + SubscriptionAdminSettings settings = + SubscriptionAdminSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SubscriptionAdminSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SubscriptionAdminClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createSubscriptionTest() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + + Subscription actualResponse = + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSubscriptionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSubscriptionTest2() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + String topic = "topic110546223"; + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + + Subscription actualResponse = + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSubscriptionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + String topic = "topic110546223"; + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSubscriptionTest3() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7298/subscriptions/subscription-7298"; + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + + Subscription actualResponse = + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSubscriptionExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7298/subscriptions/subscription-7298"; + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSubscriptionTest4() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7298/subscriptions/subscription-7298"; + String topic = "topic110546223"; + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + + Subscription actualResponse = + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSubscriptionExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7298/subscriptions/subscription-7298"; + String topic = "topic110546223"; + PushConfig pushConfig = PushConfig.newBuilder().build(); + int ackDeadlineSeconds = 2135351438; + client.createSubscription(name, topic, pushConfig, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSubscriptionTest() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + Subscription actualResponse = client.getSubscription(subscription); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSubscriptionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + client.getSubscription(subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSubscriptionTest2() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + + Subscription actualResponse = client.getSubscription(subscription); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSubscriptionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + client.getSubscription(subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSubscriptionTest() throws Exception { + Subscription expectedResponse = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UpdateSubscriptionRequest request = + UpdateSubscriptionRequest.newBuilder() + .setSubscription( + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Subscription actualResponse = client.updateSubscription(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSubscriptionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateSubscriptionRequest request = + UpdateSubscriptionRequest.newBuilder() + .setSubscription( + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.updateSubscription(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubscriptionsTest() throws Exception { + Subscription responsesElement = Subscription.newBuilder().build(); + ListSubscriptionsResponse expectedResponse = + ListSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName project = ProjectName.of("[PROJECT]"); + + ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSubscriptionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName project = ProjectName.of("[PROJECT]"); + client.listSubscriptions(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubscriptionsTest2() throws Exception { + Subscription responsesElement = Subscription.newBuilder().build(); + ListSubscriptionsResponse expectedResponse = + ListSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "projects/project-7934"; + + ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSubscriptionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "projects/project-7934"; + client.listSubscriptions(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubscriptionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + client.deleteSubscription(subscription); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSubscriptionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + client.deleteSubscription(subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubscriptionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + + client.deleteSubscription(subscription); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSubscriptionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + client.deleteSubscription(subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyAckDeadlineTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + + client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void modifyAckDeadlineExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyAckDeadlineTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + + client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void modifyAckDeadlineExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + List ackIds = new ArrayList<>(); + int ackDeadlineSeconds = 2135351438; + client.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void acknowledgeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + + client.acknowledge(subscription, ackIds); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void acknowledgeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + List ackIds = new ArrayList<>(); + client.acknowledge(subscription, ackIds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void acknowledgeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + List ackIds = new ArrayList<>(); + + client.acknowledge(subscription, ackIds); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void acknowledgeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + List ackIds = new ArrayList<>(); + client.acknowledge(subscription, ackIds); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pullTest() throws Exception { + PullResponse expectedResponse = + PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + int maxMessages = 496131527; + + PullResponse actualResponse = client.pull(subscription, maxMessages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void pullExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + int maxMessages = 496131527; + client.pull(subscription, maxMessages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pullTest2() throws Exception { + PullResponse expectedResponse = + PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + int maxMessages = 496131527; + + PullResponse actualResponse = client.pull(subscription, maxMessages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void pullExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + int maxMessages = 496131527; + client.pull(subscription, maxMessages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pullTest3() throws Exception { + PullResponse expectedResponse = + PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + boolean returnImmediately = true; + int maxMessages = 496131527; + + PullResponse actualResponse = client.pull(subscription, returnImmediately, maxMessages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void pullExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + boolean returnImmediately = true; + int maxMessages = 496131527; + client.pull(subscription, returnImmediately, maxMessages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pullTest4() throws Exception { + PullResponse expectedResponse = + PullResponse.newBuilder().addAllReceivedMessages(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + boolean returnImmediately = true; + int maxMessages = 496131527; + + PullResponse actualResponse = client.pull(subscription, returnImmediately, maxMessages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void pullExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + boolean returnImmediately = true; + int maxMessages = 496131527; + client.pull(subscription, returnImmediately, maxMessages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void streamingPullUnsupportedMethodTest() throws Exception { + // The streamingPull() method is not supported in REST transport. + // This empty test is generated for technical reasons. + } + + @Test + public void modifyPushConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + + client.modifyPushConfig(subscription, pushConfig); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void modifyPushConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + PushConfig pushConfig = PushConfig.newBuilder().build(); + client.modifyPushConfig(subscription, pushConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void modifyPushConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + PushConfig pushConfig = PushConfig.newBuilder().build(); + + client.modifyPushConfig(subscription, pushConfig); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void modifyPushConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String subscription = "projects/project-1980/subscriptions/subscription-1980"; + PushConfig pushConfig = PushConfig.newBuilder().build(); + client.modifyPushConfig(subscription, pushConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSnapshotTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + + Snapshot actualResponse = client.getSnapshot(snapshot); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSnapshotExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + client.getSnapshot(snapshot); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSnapshotTest2() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String snapshot = "projects/project-2020/snapshots/snapshot-2020"; + + Snapshot actualResponse = client.getSnapshot(snapshot); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSnapshotExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String snapshot = "projects/project-2020/snapshots/snapshot-2020"; + client.getSnapshot(snapshot); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSnapshotsTest() throws Exception { + Snapshot responsesElement = Snapshot.newBuilder().build(); + ListSnapshotsResponse expectedResponse = + ListSnapshotsResponse.newBuilder() + .setNextPageToken("") + .addAllSnapshots(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName project = ProjectName.of("[PROJECT]"); + + ListSnapshotsPagedResponse pagedListResponse = client.listSnapshots(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSnapshotsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName project = ProjectName.of("[PROJECT]"); + client.listSnapshots(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSnapshotsTest2() throws Exception { + Snapshot responsesElement = Snapshot.newBuilder().build(); + ListSnapshotsResponse expectedResponse = + ListSnapshotsResponse.newBuilder() + .setNextPageToken("") + .addAllSnapshots(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "projects/project-7934"; + + ListSnapshotsPagedResponse pagedListResponse = client.listSnapshots(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSnapshotsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "projects/project-7934"; + client.listSnapshots(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSnapshotTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + Snapshot actualResponse = client.createSnapshot(name, subscription); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSnapshotExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + client.createSnapshot(name, subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSnapshotTest2() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + String subscription = "subscription341203229"; + + Snapshot actualResponse = client.createSnapshot(name, subscription); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSnapshotExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + String subscription = "subscription341203229"; + client.createSnapshot(name, subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSnapshotTest3() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4389/snapshots/snapshot-4389"; + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + + Snapshot actualResponse = client.createSnapshot(name, subscription); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSnapshotExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4389/snapshots/snapshot-4389"; + SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]"); + client.createSnapshot(name, subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSnapshotTest4() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4389/snapshots/snapshot-4389"; + String subscription = "subscription341203229"; + + Snapshot actualResponse = client.createSnapshot(name, subscription); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSnapshotExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4389/snapshots/snapshot-4389"; + String subscription = "subscription341203229"; + client.createSnapshot(name, subscription); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSnapshotTest() throws Exception { + Snapshot expectedResponse = + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder() + .setSnapshot( + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Snapshot actualResponse = client.updateSnapshot(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSnapshotExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder() + .setSnapshot( + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.updateSnapshot(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSnapshotTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + + client.deleteSnapshot(snapshot); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSnapshotExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]"); + client.deleteSnapshot(snapshot); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSnapshotTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String snapshot = "projects/project-2020/snapshots/snapshot-2020"; + + client.deleteSnapshot(snapshot); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSnapshotExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String snapshot = "projects/project-2020/snapshots/snapshot-2020"; + client.deleteSnapshot(snapshot); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void seekTest() throws Exception { + SeekResponse expectedResponse = SeekResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SeekRequest request = + SeekRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + + SeekResponse actualResponse = client.seek(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void seekExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SeekRequest request = + SeekRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + client.seek(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index e3476adf7af2..f70afe778f12 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -66,6 +66,7 @@ import com.google.pubsub.v1.PushConfig; import com.google.pubsub.v1.ReceivedMessage; import com.google.pubsub.v1.RetryPolicy; +import com.google.pubsub.v1.SchemaName; import com.google.pubsub.v1.SeekRequest; import com.google.pubsub.v1.SeekResponse; import com.google.pubsub.v1.Snapshot; @@ -1695,7 +1696,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -1724,7 +1725,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -1748,7 +1749,7 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -1775,7 +1776,7 @@ public void getIamPolicyExceptionTest() throws Exception { try { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); client.getIamPolicy(request); @@ -1793,7 +1794,7 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .addAllPermissions(new ArrayList()) .build(); @@ -1820,7 +1821,7 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .addAllPermissions(new ArrayList()) .build(); client.testIamPermissions(request); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java new file mode 100644 index 000000000000..a41d12d64bf1 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -0,0 +1,1060 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; +import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.pubsub.v1.stub.HttpJsonPublisherStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.DetachSubscriptionRequest; +import com.google.pubsub.v1.DetachSubscriptionResponse; +import com.google.pubsub.v1.ListTopicSnapshotsResponse; +import com.google.pubsub.v1.ListTopicSubscriptionsResponse; +import com.google.pubsub.v1.ListTopicsResponse; +import com.google.pubsub.v1.MessageStoragePolicy; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.PublishResponse; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.SchemaName; +import com.google.pubsub.v1.SchemaSettings; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.UpdateTopicRequest; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TopicAdminClientHttpJsonTest { + private static MockHttpService mockService; + private static TopicAdminClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonPublisherStub.getMethodDescriptors(), TopicAdminSettings.getDefaultEndpoint()); + TopicAdminSettings settings = + TopicAdminSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TopicAdminSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TopicAdminClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createTopicTest() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + + Topic actualResponse = client.createTopic(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTopicExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + client.createTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTopicTest2() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7550/topics/topic-7550"; + + Topic actualResponse = client.createTopic(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTopicExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7550/topics/topic-7550"; + client.createTopic(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTopicTest() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UpdateTopicRequest request = + UpdateTopicRequest.newBuilder() + .setTopic( + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Topic actualResponse = client.updateTopic(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateTopicExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateTopicRequest request = + UpdateTopicRequest.newBuilder() + .setTopic( + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.updateTopic(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void publishTest() throws Exception { + PublishResponse expectedResponse = + PublishResponse.newBuilder().addAllMessageIds(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + List messages = new ArrayList<>(); + + PublishResponse actualResponse = client.publish(topic, messages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void publishExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + List messages = new ArrayList<>(); + client.publish(topic, messages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void publishTest2() throws Exception { + PublishResponse expectedResponse = + PublishResponse.newBuilder().addAllMessageIds(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String topic = "projects/project-2486/topics/topic-2486"; + List messages = new ArrayList<>(); + + PublishResponse actualResponse = client.publish(topic, messages); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void publishExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String topic = "projects/project-2486/topics/topic-2486"; + List messages = new ArrayList<>(); + client.publish(topic, messages); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicTest() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + + Topic actualResponse = client.getTopic(topic); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTopicExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + client.getTopic(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTopicTest2() throws Exception { + Topic expectedResponse = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String topic = "projects/project-2486/topics/topic-2486"; + + Topic actualResponse = client.getTopic(topic); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTopicExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String topic = "projects/project-2486/topics/topic-2486"; + client.getTopic(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicsTest() throws Exception { + Topic responsesElement = Topic.newBuilder().build(); + ListTopicsResponse expectedResponse = + ListTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName project = ProjectName.of("[PROJECT]"); + + ListTopicsPagedResponse pagedListResponse = client.listTopics(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTopicsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName project = ProjectName.of("[PROJECT]"); + client.listTopics(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicsTest2() throws Exception { + Topic responsesElement = Topic.newBuilder().build(); + ListTopicsResponse expectedResponse = + ListTopicsResponse.newBuilder() + .setNextPageToken("") + .addAllTopics(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String project = "projects/project-7934"; + + ListTopicsPagedResponse pagedListResponse = client.listTopics(project); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTopicsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTopicsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "projects/project-7934"; + client.listTopics(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicSubscriptionsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListTopicSubscriptionsResponse expectedResponse = + ListTopicSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + + ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(topic); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTopicSubscriptionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + client.listTopicSubscriptions(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicSubscriptionsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListTopicSubscriptionsResponse expectedResponse = + ListTopicSubscriptionsResponse.newBuilder() + .setNextPageToken("") + .addAllSubscriptions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String topic = "projects/project-2486/topics/topic-2486"; + + ListTopicSubscriptionsPagedResponse pagedListResponse = client.listTopicSubscriptions(topic); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubscriptionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTopicSubscriptionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String topic = "projects/project-2486/topics/topic-2486"; + client.listTopicSubscriptions(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicSnapshotsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListTopicSnapshotsResponse expectedResponse = + ListTopicSnapshotsResponse.newBuilder() + .setNextPageToken("") + .addAllSnapshots(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + + ListTopicSnapshotsPagedResponse pagedListResponse = client.listTopicSnapshots(topic); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTopicSnapshotsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + client.listTopicSnapshots(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTopicSnapshotsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + ListTopicSnapshotsResponse expectedResponse = + ListTopicSnapshotsResponse.newBuilder() + .setNextPageToken("") + .addAllSnapshots(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String topic = "projects/project-2486/topics/topic-2486"; + + ListTopicSnapshotsPagedResponse pagedListResponse = client.listTopicSnapshots(topic); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSnapshotsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTopicSnapshotsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String topic = "projects/project-2486/topics/topic-2486"; + client.listTopicSnapshots(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTopicTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + + client.deleteTopic(topic); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTopicExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]"); + client.deleteTopic(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTopicTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String topic = "projects/project-2486/topics/topic-2486"; + + client.deleteTopic(topic); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTopicExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String topic = "projects/project-2486/topics/topic-2486"; + client.deleteTopic(topic); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void detachSubscriptionTest() throws Exception { + DetachSubscriptionResponse expectedResponse = DetachSubscriptionResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + DetachSubscriptionRequest request = + DetachSubscriptionRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + + DetachSubscriptionResponse actualResponse = client.detachSubscription(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void detachSubscriptionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DetachSubscriptionRequest request = + DetachSubscriptionRequest.newBuilder() + .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .build(); + client.detachSubscription(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 0d50563fed6e..a28995e2ad2d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -56,6 +56,7 @@ import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.SchemaName; import com.google.pubsub.v1.SchemaSettings; import com.google.pubsub.v1.SubscriptionName; import com.google.pubsub.v1.Topic; @@ -812,7 +813,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -841,7 +842,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setPolicy(Policy.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); @@ -865,7 +866,7 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -892,7 +893,7 @@ public void getIamPolicyExceptionTest() throws Exception { try { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); client.getIamPolicy(request); @@ -910,7 +911,7 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .addAllPermissions(new ArrayList()) .build(); @@ -937,7 +938,7 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource(ProjectName.of("[PROJECT]").toString()) + .setResource(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .addAllPermissions(new ArrayList()) .build(); client.testIamPermissions(request); From 61853fe1d09d2aae2e5b17b6a70a32b65b35d734 Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Mon, 27 Jun 2022 13:19:15 -0400 Subject: [PATCH 1072/2363] style: expanding wildcard imports for clarity (#1174) --- .../cloud/pubsub/v1/MessageDispatcher.java | 14 ++++++++-- .../v1/StreamingSubscriberConnection.java | 26 ++++++++++++++++--- 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 31693a1894b4..de51d3bf56bf 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -28,8 +28,18 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.ReceivedMessage; -import java.util.*; -import java.util.concurrent.*; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.Executor; +import java.util.concurrent.Future; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; +import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.Lock; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index b19a1cbbe9af..1067fa7e5cd4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -18,13 +18,22 @@ import static com.google.common.util.concurrent.MoreExecutors.directExecutor; -import com.google.api.core.*; +import com.google.api.core.AbstractApiService; +import com.google.api.core.ApiClock; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; +import com.google.api.core.SettableApiFuture; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; import com.google.api.gax.core.Distribution; import com.google.api.gax.grpc.GrpcCallContext; import com.google.api.gax.grpc.GrpcStatusCode; -import com.google.api.gax.rpc.*; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.ClientStream; +import com.google.api.gax.rpc.ResponseObserver; +import com.google.api.gax.rpc.StreamController; import com.google.cloud.pubsub.v1.MessageDispatcher.AckProcessor; import com.google.cloud.pubsub.v1.stub.SubscriberStub; import com.google.common.collect.Lists; @@ -32,11 +41,20 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.InvalidProtocolBufferException; -import com.google.pubsub.v1.*; +import com.google.pubsub.v1.AcknowledgeRequest; +import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; import com.google.rpc.ErrorInfo; import io.grpc.Status; import io.grpc.protobuf.StatusProto; -import java.util.*; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; From 2bbd39d1a894f52bbd96bb09caec76c2a105870f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 27 Jun 2022 21:06:11 +0200 Subject: [PATCH 1073/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 (#1173) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.12.0` -> `2.13.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/compatibility-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/confidence-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes

    googleapis/java-shared-dependencies ### [`v2.13.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2130-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2120v2130-2022-06-22) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.12.0...v2.13.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.0 ([#​709](https://togithub.com/googleapis/java-shared-dependencies/issues/709)) ([239f8c3](https://togithub.com/googleapis/java-shared-dependencies/commit/239f8c33a11e233e6af79aee8c7e68cd156a0554)) - update dependency com.google.api-client:google-api-client-bom to v1.35.1 ([#​713](https://togithub.com/googleapis/java-shared-dependencies/issues/713)) ([6559b45](https://togithub.com/googleapis/java-shared-dependencies/commit/6559b45b027dba783a9525d35e32183d78773cbe)) - update dependency com.google.api:api-common to v2.2.1 ([#​710](https://togithub.com/googleapis/java-shared-dependencies/issues/710)) ([650d4c5](https://togithub.com/googleapis/java-shared-dependencies/commit/650d4c5f8c3cfce711257d47280ad773cd2e2414)) - update dependency com.google.errorprone:error_prone_annotations to v2.14.0 ([#​701](https://togithub.com/googleapis/java-shared-dependencies/issues/701)) ([d24730f](https://togithub.com/googleapis/java-shared-dependencies/commit/d24730f78669f80b109e590b903446e5552e3e36)) - update dependency com.google.http-client:google-http-client-bom to v1.42.0 ([#​711](https://togithub.com/googleapis/java-shared-dependencies/issues/711)) ([5168a18](https://togithub.com/googleapis/java-shared-dependencies/commit/5168a181722128d434a0d0d2ab5cc485686bbc78)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.34.0 ([#​708](https://togithub.com/googleapis/java-shared-dependencies/issues/708)) ([620336e](https://togithub.com/googleapis/java-shared-dependencies/commit/620336e6733e2017116e5e8a7b403b183a728bc1)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.34.1 ([#​712](https://togithub.com/googleapis/java-shared-dependencies/issues/712)) ([a2c18a5](https://togithub.com/googleapis/java-shared-dependencies/commit/a2c18a5bc4152cc9034cec691a29f54a35c38a51)) - update dependency com.google.protobuf:protobuf-bom to v3.21.0 ([#​703](https://togithub.com/googleapis/java-shared-dependencies/issues/703)) ([5f9fe12](https://togithub.com/googleapis/java-shared-dependencies/commit/5f9fe1200b4bdf4c54bf947c21bd3ed02f26f990)) - update dependency com.google.protobuf:protobuf-bom to v3.21.1 ([#​705](https://togithub.com/googleapis/java-shared-dependencies/issues/705)) ([c68edfb](https://togithub.com/googleapis/java-shared-dependencies/commit/c68edfbe7e1993e1112640b867b29aa2fbcf7579)) - update dependency io.grpc:grpc-bom to v1.47.0 ([#​707](https://togithub.com/googleapis/java-shared-dependencies/issues/707)) ([d02918a](https://togithub.com/googleapis/java-shared-dependencies/commit/d02918a0418cd65d1d247f27afb0637f1f8f5666)) - update dependency org.checkerframework:checker-qual to v3.22.1 ([#​706](https://togithub.com/googleapis/java-shared-dependencies/issues/706)) ([545843b](https://togithub.com/googleapis/java-shared-dependencies/commit/545843b492cead230b8cc72a1dae7d4922f33b39)) - update dependency org.checkerframework:checker-qual to v3.22.2 ([#​717](https://togithub.com/googleapis/java-shared-dependencies/issues/717)) ([142852a](https://togithub.com/googleapis/java-shared-dependencies/commit/142852a37140f221197f5c71aed451def353b1e0)) - update gax.version to v2.18.2 ([#​718](https://togithub.com/googleapis/java-shared-dependencies/issues/718)) ([5f8156e](https://togithub.com/googleapis/java-shared-dependencies/commit/5f8156e55c6a07b018a8c5efafa68be781b4288b)) - update google.common-protos.version to v2.9.0 ([#​714](https://togithub.com/googleapis/java-shared-dependencies/issues/714)) ([9e5591e](https://togithub.com/googleapis/java-shared-dependencies/commit/9e5591ec3035350450ecbfebd00e08216433b06c)) - update google.core.version to v2.8.0 ([#​719](https://togithub.com/googleapis/java-shared-dependencies/issues/719)) ([4023c60](https://togithub.com/googleapis/java-shared-dependencies/commit/4023c6063a2c5b5308da531df1a08c90c491965d)) - update iam.version to v1.4.0 ([#​700](https://togithub.com/googleapis/java-shared-dependencies/issues/700)) ([c1097a4](https://togithub.com/googleapis/java-shared-dependencies/commit/c1097a46ab0739b0b7234bc510e4c3d9ce2c2861)) - update iam.version to v1.4.1 ([#​716](https://togithub.com/googleapis/java-shared-dependencies/issues/716)) ([e2dc7c2](https://togithub.com/googleapis/java-shared-dependencies/commit/e2dc7c21c39e007878841e2664d548ec44a72d54))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4e91748824b6..7f84a23f588c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.12.0 + 2.13.0 pom import From 25f8d5830502d2d645f7aa1ee7ff85df725bfd9b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 28 Jun 2022 18:58:13 +0000 Subject: [PATCH 1074/2363] chore: update dependencies for regapic (#1467) (#1177) * chore: update dependencies for regapic * add more dependencies and trigger comment * update goldens * fix indentation * remove duplicate gax-httpjson dependency * remove duplicated dependencies Source-Link: https://github.com/googleapis/synthtool/commit/fa54eb2a78c6ee48613fd33152e2130e949dcbd9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.kokoro/common.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index a79f06271b60..f0625e4d9459 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 -# created: 2022-05-19T15:12:45.278246753Z + digest: sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 +# created: 2022-06-27T15:01:06.405564326Z diff --git a/java-pubsub/.kokoro/common.sh b/java-pubsub/.kokoro/common.sh index ace89f45a9de..f8f957af1112 100644 --- a/java-pubsub/.kokoro/common.sh +++ b/java-pubsub/.kokoro/common.sh @@ -55,4 +55,6 @@ function retry_with_backoff { ## Helper functionss function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } \ No newline at end of file +function println() { printf '%s\n' "$(now) $*"; } + +## Helper comment to trigger updated repo dependency release \ No newline at end of file From 3aceb0a74af089cfbdb7ba5734a10a81ac3211c0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 Jun 2022 02:22:21 +0000 Subject: [PATCH 1075/2363] chore: Disable CLIRR checks on releas (#1474) (#1181) Source-Link: https://github.com/googleapis/synthtool/commit/7a220e27993a25ab3cda26510d5619d97b6952a9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.kokoro/release/stage.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index f0625e4d9459..a454a61e8dc2 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 -# created: 2022-06-27T15:01:06.405564326Z + digest: sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 +# created: 2022-06-29T23:17:33.110417661Z diff --git a/java-pubsub/.kokoro/release/stage.sh b/java-pubsub/.kokoro/release/stage.sh index 77dc4e8f0f3a..1dba8de10857 100755 --- a/java-pubsub/.kokoro/release/stage.sh +++ b/java-pubsub/.kokoro/release/stage.sh @@ -32,6 +32,7 @@ retry_with_backoff 3 10 \ mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DskipTests=true \ + -Dclirr.skip=true \ -DperformRelease=true \ -Dgpg.executable=gpg \ -Dgpg.passphrase=${GPG_PASSPHRASE} \ @@ -42,4 +43,4 @@ then mvn nexus-staging:release -B \ -DperformRelease=true \ --settings=settings.xml -fi \ No newline at end of file +fi From a0c69b7db772fb750efe61759af9c71ec376c59e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 17:34:34 +0000 Subject: [PATCH 1076/2363] chore(main): release 1.120.0 (#1167) :robot: I have created a release *beep* *boop* --- ## [1.120.0](https://github.com/googleapis/java-pubsub/compare/v1.119.1...v1.120.0) (2022-06-30) ### Features * Enable REST transport for most of Java and Go clients ([#1162](https://github.com/googleapis/java-pubsub/issues/1162)) ([8597a5d](https://github.com/googleapis/java-pubsub/commit/8597a5d4b27c2970dd23c2d47010ad05156c6d45)) ### Documentation * **sample:** clean up README of native image sample ([#1166](https://github.com/googleapis/java-pubsub/issues/1166)) ([4d32e70](https://github.com/googleapis/java-pubsub/commit/4d32e706a447bc406dfd74a352df7e62e9725d09)) ### Dependencies * update dependency com.google.cloud:google-cloud-bigquery to v2.13.5 ([#1172](https://github.com/googleapis/java-pubsub/issues/1172)) ([382fc6f](https://github.com/googleapis/java-pubsub/commit/382fc6fdacab6bcb7d5d823b41c8bdad23c930df)) * update dependency com.google.cloud:google-cloud-bigquery to v2.13.6 ([#1175](https://github.com/googleapis/java-pubsub/issues/1175)) ([eb97cf4](https://github.com/googleapis/java-pubsub/commit/eb97cf4959294badab044c98007788b7e3c5b13d)) * update dependency com.google.cloud:google-cloud-core to v2.8.0 ([#1171](https://github.com/googleapis/java-pubsub/issues/1171)) ([0fd38c5](https://github.com/googleapis/java-pubsub/commit/0fd38c503e7fe411110fa19a705692382e6e61ea)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#1173](https://github.com/googleapis/java-pubsub/issues/1173)) ([2bbd39d](https://github.com/googleapis/java-pubsub/commit/2bbd39d1a894f52bbd96bb09caec76c2a105870f)) * update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#1169](https://github.com/googleapis/java-pubsub/issues/1169)) ([214814a](https://github.com/googleapis/java-pubsub/commit/214814a5e7809f7a5392bc7907c8194c86ad9a69)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#1170](https://github.com/googleapis/java-pubsub/issues/1170)) ([374b70f](https://github.com/googleapis/java-pubsub/commit/374b70f91fddcff592f38d2c1ea9fa09056ed3ba)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 22 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 8 files changed, 40 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 3f04ff7ef821..7f5c90633bde 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [1.120.0](https://github.com/googleapis/java-pubsub/compare/v1.119.1...v1.120.0) (2022-06-30) + + +### Features + +* Enable REST transport for most of Java and Go clients ([#1162](https://github.com/googleapis/java-pubsub/issues/1162)) ([c8ebb13](https://github.com/googleapis/java-pubsub/commit/c8ebb1319b7714c03308d8e7af53912b6b6a0d44)) + + +### Documentation + +* **sample:** clean up README of native image sample ([#1166](https://github.com/googleapis/java-pubsub/issues/1166)) ([890987c](https://github.com/googleapis/java-pubsub/commit/890987c0b285c9c5a5224f676e070ceefb90fe02)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-bigquery to v2.13.5 ([#1172](https://github.com/googleapis/java-pubsub/issues/1172)) ([51f4da0](https://github.com/googleapis/java-pubsub/commit/51f4da048e298e6184e9a6bf931a9f1307534c61)) +* update dependency com.google.cloud:google-cloud-bigquery to v2.13.6 ([#1175](https://github.com/googleapis/java-pubsub/issues/1175)) ([9385452](https://github.com/googleapis/java-pubsub/commit/938545266b6b15f93fe82aa253b55ca4d4fd7e22)) +* update dependency com.google.cloud:google-cloud-core to v2.8.0 ([#1171](https://github.com/googleapis/java-pubsub/issues/1171)) ([4b7888f](https://github.com/googleapis/java-pubsub/commit/4b7888f582752982e2c9e1fd03472f5172fa9910)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#1173](https://github.com/googleapis/java-pubsub/issues/1173)) ([925be09](https://github.com/googleapis/java-pubsub/commit/925be095bd8a227f4b49d357dcd386b4149a86f9)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#1169](https://github.com/googleapis/java-pubsub/issues/1169)) ([e8e93e6](https://github.com/googleapis/java-pubsub/commit/e8e93e6c47e2c0a3546453a3aa23263ff3878a55)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#1170](https://github.com/googleapis/java-pubsub/issues/1170)) ([1327e89](https://github.com/googleapis/java-pubsub/commit/1327e89e2e491afe0b05fb458bbea296a8ae101f)) + ## [1.119.1](https://github.com/googleapis/java-pubsub/compare/v1.119.0...v1.119.1) (2022-06-06) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 84e67f52e089..600b209706a4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.119.2-SNAPSHOT + 1.120.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.119.2-SNAPSHOT + 1.120.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.2-SNAPSHOT + 1.102.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.2-SNAPSHOT + 1.102.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 395ba8898fed..8efb3034b9f9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.119.2-SNAPSHOT + 1.120.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.119.2-SNAPSHOT + 1.120.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8e5edf0b9d7d..5b5f90f1a05a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.2-SNAPSHOT + 1.102.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.119.2-SNAPSHOT + 1.120.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7f84a23f588c..395b1e23597d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.119.2-SNAPSHOT + 1.120.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.2-SNAPSHOT + 1.102.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.101.2-SNAPSHOT + 1.102.0 com.google.cloud google-cloud-pubsub - 1.119.2-SNAPSHOT + 1.120.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 638cab63799b..f737e2f1ed4d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.101.2-SNAPSHOT + 1.102.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.119.2-SNAPSHOT + 1.120.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 511502a0cdb1..5e45d581dcd8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.119.2-SNAPSHOT + 1.120.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index fcbfea377a89..0fd7bc0f62dc 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.119.1:1.119.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.101.1:1.101.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.101.1:1.101.2-SNAPSHOT +google-cloud-pubsub:1.120.0:1.120.0 +grpc-google-cloud-pubsub-v1:1.102.0:1.102.0 +proto-google-cloud-pubsub-v1:1.102.0:1.102.0 From 202049e5869b023575952c8b82e77fdd041546fe Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 17:50:12 +0000 Subject: [PATCH 1077/2363] chore(main): release 1.120.1-SNAPSHOT (#1182) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 600b209706a4..61e15de5940a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.0 + 1.120.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.0 + 1.120.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.0 + 1.102.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.0 + 1.102.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8efb3034b9f9..395b4cf5e4b8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.0 + 1.120.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.0 + 1.120.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5b5f90f1a05a..c62bc02ac00d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.0 + 1.102.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.0 + 1.120.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 395b1e23597d..1f4646216b36 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.0 + 1.120.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.0 + 1.102.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.0 + 1.102.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.0 + 1.120.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f737e2f1ed4d..75740eade86c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.0 + 1.102.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.0 + 1.120.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5e45d581dcd8..84f653ed4284 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.0 + 1.120.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0fd7bc0f62dc..9f479697bc32 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.0:1.120.0 -grpc-google-cloud-pubsub-v1:1.102.0:1.102.0 -proto-google-cloud-pubsub-v1:1.102.0:1.102.0 +google-cloud-pubsub:1.120.0:1.120.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.0:1.102.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.0:1.102.1-SNAPSHOT From f4fa0083789f3034f1e51383cd010d5d03212cb9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Jul 2022 23:08:45 +0200 Subject: [PATCH 1078/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.13.8 (#1179) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.13.6` -> `2.13.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.8/compatibility-slim/2.13.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.13.8/confidence-slim/2.13.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery ### [`v2.13.8`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2138-httpsgithubcomgoogleapisjava-bigquerycomparev2137v2138-2022-07-01) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.13.7...v2.13.8) ##### Dependencies - update dependency com.google.cloud:google-cloud-storage to v2.9.0 ([#​2149](https://togithub.com/googleapis/java-bigquery/issues/2149)) ([a07c714](https://togithub.com/googleapis/java-bigquery/commit/a07c714cb90c7ff62a43f7500abe8d54a5cd0936)) ### [`v2.13.7`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2137-httpsgithubcomgoogleapisjava-bigquerycomparev2136v2137-2022-06-29) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.13.6...v2.13.7) ##### Dependencies - update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.8.4 ([#​2140](https://togithub.com/googleapis/java-bigquery/issues/2140)) ([c7ef597](https://togithub.com/googleapis/java-bigquery/commit/c7ef597832505e6c05adb38ac1db5dd15e32d024))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8cddd9ef4a68..22af082b0ad8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.119.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.119.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.0" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 230725486f30..89d77508129e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.13.6 + 2.13.8
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 84f653ed4284..08ce0f882a03 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.13.6 + 2.13.8
    From 616410a696b2dbb195424c005e3bd7a1b148b224 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Jul 2022 23:12:13 +0200 Subject: [PATCH 1079/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.1 (#1178) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.0` -> `2.8.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.1/compatibility-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.1/confidence-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 89d77508129e..af1637988e41 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.0 + 2.8.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 08ce0f882a03..ebad7ed30055 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.0 + 2.8.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index dcba129551ed..5289acfdaca9 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.0 + 2.8.1 tests From 6b7e97b86e0ade4772b41c2708d496424df4164b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 8 Jul 2022 19:58:11 +0000 Subject: [PATCH 1080/2363] chore: fix minor typos in README and pom templates (#1479) (#1186) Source-Link: https://github.com/googleapis/synthtool/commit/18d4e9bb50d0dfb3291de18c51b96a2c835e2446 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index a454a61e8dc2..1b645c012914 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 -# created: 2022-06-29T23:17:33.110417661Z + digest: sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 +# created: 2022-07-07T14:26:11.880812641Z diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 22af082b0ad8..d8bc314a56b8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -11,7 +11,7 @@ Java idiomatic client for [Cloud Pub/Sub][product-docs]. ## Quickstart -If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ```xml @@ -48,20 +48,20 @@ If you are using Maven without BOM, add this to your dependencies: ``` -If you are using Gradle 5.x or later, add this to your dependencies +If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy implementation platform('com.google.cloud:libraries-bom:25.4.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` -If you are using Gradle without BOM, add this to your dependencies +If you are using Gradle without BOM, add this to your dependencies: ```Groovy implementation 'com.google.cloud:google-cloud-pubsub:1.120.0' ``` -If you are using SBT, add this to your dependencies +If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.0" From 303aac221b0b55c57a3188dcfa991c9f18e97271 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 23:35:58 +0200 Subject: [PATCH 1081/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.2 (#1176) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index af1637988e41..4cc2c87a6420 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.1 + 3.21.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ebad7ed30055..45b29b9e6c2b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.1 + 3.21.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5289acfdaca9..4141bdf67b91 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.21.1 + 3.21.2 From b24ca3c5bf77ef9e004c6abac9461b89596ac339 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Mon, 11 Jul 2022 17:36:12 -0400 Subject: [PATCH 1082/2363] chore: add native image checks as required (#1180) --- java-pubsub/.github/sync-repo-settings.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 72ed88bdd6a5..573b243c1a15 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -18,6 +18,8 @@ branchProtectionRules: - Kokoro - Against Pub/Sub Lite samples - cla/google - OwlBot Post Processor + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' - pattern: 1.111.0-sp isAdminEnforced: true requiredApprovingReviewCount: 1 From 250cddaf94cd8daf1fe2cd60a5a31d89ab0fe6ce Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 23:36:26 +0200 Subject: [PATCH 1083/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.1 (#1183) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 61e15de5940a..f2a4ae3c7208 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1f4646216b36..df7c4db65c83 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.1 From cf071f1e113aa2acb1ec6c9f60098d7116a4e044 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 23:36:37 +0200 Subject: [PATCH 1084/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.0 (#1184) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d8bc314a56b8..8faa60b11024 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.119.1 + 1.120.0 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4cc2c87a6420..e0498b450edc 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.119.1 + 1.120.0 From 7d623e1193a661fb73684b5638b2d01b29b544d7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 23:36:48 +0200 Subject: [PATCH 1085/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26 (#1187) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8faa60b11024..dcfb84008a30 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:25.4.0') +implementation platform('com.google.cloud:libraries-bom:26.0.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index c07efee5a854..e292c8e64152 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4141bdf67b91..4fc1b51f3188 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import From d87ede9af8f8511e14554e4574b2dc318c4c502d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 11 Jul 2022 21:50:12 +0000 Subject: [PATCH 1086/2363] chore(main): release 1.120.1 (#1185) :robot: I have created a release *beep* *boop* --- ## [1.120.1](https://github.com/googleapis/java-pubsub/compare/v1.120.0...v1.120.1) (2022-07-11) ### Dependencies * update dependency com.google.cloud:google-cloud-bigquery to v2.13.8 ([#1179](https://github.com/googleapis/java-pubsub/issues/1179)) ([f4fa008](https://github.com/googleapis/java-pubsub/commit/f4fa0083789f3034f1e51383cd010d5d03212cb9)) * update dependency com.google.cloud:google-cloud-core to v2.8.1 ([#1178](https://github.com/googleapis/java-pubsub/issues/1178)) ([616410a](https://github.com/googleapis/java-pubsub/commit/616410a696b2dbb195424c005e3bd7a1b148b224)) * update dependency com.google.protobuf:protobuf-java-util to v3.21.2 ([#1176](https://github.com/googleapis/java-pubsub/issues/1176)) ([303aac2](https://github.com/googleapis/java-pubsub/commit/303aac221b0b55c57a3188dcfa991c9f18e97271)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 10 +++++----- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 10 +++++----- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 29 insertions(+), 20 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 7f5c90633bde..4c8722f97ed3 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.120.1](https://github.com/googleapis/java-pubsub/compare/v1.120.0...v1.120.1) (2022-07-11) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-bigquery to v2.13.8 ([#1179](https://github.com/googleapis/java-pubsub/issues/1179)) ([5fc8f86](https://github.com/googleapis/java-pubsub/commit/5fc8f86b30cafaba1acde6f1f807b345e3b3b953)) +* update dependency com.google.cloud:google-cloud-core to v2.8.1 ([#1178](https://github.com/googleapis/java-pubsub/issues/1178)) ([0052a6c](https://github.com/googleapis/java-pubsub/commit/0052a6c093030eaefa412cb0a8e35787a9b35c01)) +* update dependency com.google.protobuf:protobuf-java-util to v3.21.2 ([#1176](https://github.com/googleapis/java-pubsub/issues/1176)) ([8ffe189](https://github.com/googleapis/java-pubsub/commit/8ffe189170e58cab1de630c41cab6cd8346f98b0)) + ## [1.120.0](https://github.com/googleapis/java-pubsub/compare/v1.119.1...v1.120.0) (2022-06-30) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f2a4ae3c7208..bcf912be254a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.1-SNAPSHOT + 1.120.1 pom com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.0 Google Cloud pubsub BOM @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.1-SNAPSHOT + 1.120.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.1-SNAPSHOT + 1.102.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.1-SNAPSHOT + 1.102.1
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 395b4cf5e4b8..366b16be4624 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.1-SNAPSHOT + 1.120.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.1-SNAPSHOT + 1.120.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c62bc02ac00d..6ca2f16be4d5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.1-SNAPSHOT + 1.102.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.1-SNAPSHOT + 1.120.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index df7c4db65c83..b543c99167be 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.1-SNAPSHOT + 1.120.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.0 @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.1-SNAPSHOT + 1.102.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.1-SNAPSHOT + 1.102.1 com.google.cloud google-cloud-pubsub - 1.120.1-SNAPSHOT + 1.120.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 75740eade86c..72197a8db5d9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.1-SNAPSHOT + 1.102.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.1-SNAPSHOT + 1.120.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 45b29b9e6c2b..426621a075e4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.1-SNAPSHOT + 1.120.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9f479697bc32..440ac5a80b17 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.0:1.120.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.0:1.102.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.0:1.102.1-SNAPSHOT +google-cloud-pubsub:1.120.1:1.120.1 +grpc-google-cloud-pubsub-v1:1.102.1:1.102.1 +proto-google-cloud-pubsub-v1:1.102.1:1.102.1 From 3df6f8898db302cc60bea2a89617eba5c693a8f3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 11 Jul 2022 22:02:16 +0000 Subject: [PATCH 1087/2363] chore(main): release 1.120.2-SNAPSHOT (#1188) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index bcf912be254a..123ceeb9a04d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.1 + 1.120.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.1 + 1.120.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.1 + 1.102.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.1 + 1.102.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 366b16be4624..e74305b38a1e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.1 + 1.120.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.1 + 1.120.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6ca2f16be4d5..5ef4bcd3e689 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.1 + 1.102.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.1 + 1.120.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b543c99167be..460b1bba94bc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.1 + 1.120.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.1 + 1.102.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.1 + 1.102.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.1 + 1.120.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 72197a8db5d9..e58713d31810 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.1 + 1.102.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.1 + 1.120.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 426621a075e4..9f3f0c8eb4e0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.1 + 1.120.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 440ac5a80b17..dd8ac79f8437 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.1:1.120.1 -grpc-google-cloud-pubsub-v1:1.102.1:1.102.1 -proto-google-cloud-pubsub-v1:1.102.1:1.102.1 +google-cloud-pubsub:1.120.1:1.120.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.1:1.102.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.1:1.102.2-SNAPSHOT From c8dba424754827b2ea0b3b3436fefc6771efb997 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 13 Jul 2022 19:24:12 +0000 Subject: [PATCH 1088/2363] fix: enable longpaths support for windows test (#1485) (#1191) Source-Link: https://github.com/googleapis/synthtool/commit/73365620c41d96e97ff474b2c4d39b890ad51967 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.github/workflows/ci.yaml | 2 ++ java-pubsub/README.md | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 1b645c012914..de9173d95efb 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 -# created: 2022-07-07T14:26:11.880812641Z + digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 +# created: 2022-07-13T13:53:17.676447481Z diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 83ef7f9c2cf3..e3bb26e37719 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -39,6 +39,8 @@ jobs: windows: runs-on: windows-latest steps: + - name: Support longpaths + run: git config --system core.longpaths true - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: diff --git a/java-pubsub/README.md b/java-pubsub/README.md index dcfb84008a30..910e26881d08 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.1" ``` ## Authentication From fe165b8db34ffbc3f957b8b53b65f28a34b1ad76 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 14 Jul 2022 20:38:29 +0200 Subject: [PATCH 1089/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 (#1189) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index e292c8e64152..3b195306121f 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.12 + 0.9.13 test From c2dbae166771ef4f4fa8826483d8a46dfe66895e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 14 Jul 2022 20:38:35 +0200 Subject: [PATCH 1090/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 (#1190) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 3b195306121f..ff7d53434948 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.12 + 0.9.13 true pubsub.NativeImagePubSubSample From 154f6ac8e57d675034b41e92f3fed9a3f45cfe2c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Jul 2022 18:52:13 +0200 Subject: [PATCH 1091/2363] build(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.3.0 (#964) * build(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.3.0 * chore: update dependency scopes Co-authored-by: alicejli --- java-pubsub/google-cloud-pubsub/pom.xml | 5 ++++- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e74305b38a1e..b39d9d133fd4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -24,6 +24,7 @@ io.grpc grpc-stub + test io.grpc @@ -84,6 +85,7 @@ io.grpc grpc-core + test com.google.errorprone @@ -96,6 +98,7 @@ com.google.http-client google-http-client + test @@ -166,7 +169,7 @@ org.apache.maven.plugins maven-dependency-plugin - 3.1.2 + 3.3.0 com.google.auth:google-auth-library-oauth2-http:jar diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index ff7d53434948..9a9be2e44bf6 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -79,7 +79,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-dependency-plugin - 3.2.0 + 3.3.0 copy-dependencies From 41e02433e9bbe6f2e16de8c55c52067a54317898 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Jul 2022 19:10:34 +0200 Subject: [PATCH 1092/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.0 (#1193) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 460b1bba94bc..af428b97040a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.3.0 + 3.4.0 From aba50c0a99ad721cf66d979ce17d2b55d899a922 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 19 Jul 2022 13:36:20 +0000 Subject: [PATCH 1093/2363] ci: update template so GAPIC_AUTO repos do not require special approvers for Java code (#1494) (#1194) Source-Link: https://github.com/googleapis/synthtool/commit/da89e53878d92467eb648c610e64f94a614915cc Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9 --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.github/CODEOWNERS | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index de9173d95efb..6610882f836f 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 -# created: 2022-07-13T13:53:17.676447481Z + digest: sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9 +# created: 2022-07-18T21:44:23.94208526Z diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS index 0bcf47a666ed..04d88604a8f0 100644 --- a/java-pubsub/.github/CODEOWNERS +++ b/java-pubsub/.github/CODEOWNERS @@ -6,7 +6,10 @@ # The @googleapis/api-pubsub is the default owner for changes in this repo * @googleapis/yoshi-java @googleapis/api-pubsub + +# for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner **/*.java @googleapis/api-pubsub + # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers From e5a8343c5a5aa90e3bc11484de0f02459cfbf141 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 20 Jul 2022 19:22:14 +0200 Subject: [PATCH 1094/2363] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3 (#1195) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-deploy-plugin](https://maven.apache.org/plugins/) | `2.8.2` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 19e0318e7ac6..8c85def85bf4 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -54,7 +54,7 @@ org.apache.maven.plugins maven-deploy-plugin - 2.8.2 + 3.0.0 true From 6ccfb01c084a0a4760358acc8cbbfbf91d7735fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Bianchin?= Date: Mon, 25 Jul 2022 15:50:23 +0200 Subject: [PATCH 1095/2363] fix: PubSubMessage leak on MessageDispatcher (#1197) --- .../cloud/pubsub/v1/AckReplyConsumerImpl.java | 37 ++++++++++++++++ .../v1/AckReplyConsumerWithResponseImpl.java | 43 +++++++++++++++++++ .../cloud/pubsub/v1/MessageDispatcher.java | 27 +----------- 3 files changed, 82 insertions(+), 25 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerImpl.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerImpl.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerImpl.java new file mode 100644 index 000000000000..f9d4bd15ad92 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerImpl.java @@ -0,0 +1,37 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.SettableApiFuture; + +public class AckReplyConsumerImpl implements AckReplyConsumer { + final SettableApiFuture ackReplySettableApiFuture; + + public AckReplyConsumerImpl( + final SettableApiFuture ackReplySettableApiFuture) { + this.ackReplySettableApiFuture = ackReplySettableApiFuture; + } + + @Override + public void ack() { + ackReplySettableApiFuture.set(MessageDispatcher.AckReply.ACK); + } + + @Override + public void nack() { + ackReplySettableApiFuture.set(MessageDispatcher.AckReply.NACK); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java new file mode 100644 index 000000000000..d0a0316af14d --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.pubsub.v1; + +import com.google.api.core.SettableApiFuture; +import java.util.concurrent.Future; + +public class AckReplyConsumerWithResponseImpl implements AckReplyConsumerWithResponse { + final SettableApiFuture ackReplySettableApiFuture; + final SettableApiFuture messageFuture; + + public AckReplyConsumerWithResponseImpl( + SettableApiFuture ackReplySettableApiFuture, + SettableApiFuture messageFuture) { + this.ackReplySettableApiFuture = ackReplySettableApiFuture; + this.messageFuture = messageFuture; + } + + @Override + public Future ack() { + ackReplySettableApiFuture.set(MessageDispatcher.AckReply.ACK); + return messageFuture; + } + + @Override + public Future nack() { + ackReplySettableApiFuture.set(MessageDispatcher.AckReply.NACK); + return messageFuture; + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index de51d3bf56bf..3c772819a201 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -35,7 +35,6 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.Executor; -import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; @@ -434,33 +433,11 @@ public void run() { SettableApiFuture messageFuture = ackHandler.getMessageFutureIfExists(); final AckReplyConsumerWithResponse ackReplyConsumerWithResponse = - new AckReplyConsumerWithResponse() { - @Override - public Future ack() { - ackReplySettableApiFuture.set(AckReply.ACK); - return messageFuture; - } - - @Override - public Future nack() { - ackReplySettableApiFuture.set(AckReply.NACK); - return messageFuture; - } - }; + new AckReplyConsumerWithResponseImpl(ackReplySettableApiFuture, messageFuture); receiverWithAckResponse.receiveMessage(message, ackReplyConsumerWithResponse); } else { final AckReplyConsumer ackReplyConsumer = - new AckReplyConsumer() { - @Override - public void ack() { - ackReplySettableApiFuture.set(AckReply.ACK); - } - - @Override - public void nack() { - ackReplySettableApiFuture.set(AckReply.NACK); - } - }; + new AckReplyConsumerImpl(ackReplySettableApiFuture); receiver.receiveMessage(message, ackReplyConsumer); } } catch (Exception e) { From 339135939521d8709cc1ccd18ed74b3fc85edae1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 25 Jul 2022 11:30:27 -0400 Subject: [PATCH 1096/2363] chore(main): release 1.120.2 (#1192) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 14 ++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 4c8722f97ed3..30d9cff0e943 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.120.2](https://github.com/googleapis/java-pubsub/compare/v1.120.1...v1.120.2) (2022-07-25) + + +### Bug Fixes + +* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-pubsub/issues/1485)) ([#1191](https://github.com/googleapis/java-pubsub/issues/1191)) ([c4b8d90](https://github.com/googleapis/java-pubsub/commit/c4b8d90a158a3360d626df8ca6378212e09f5a47)) +* PubSubMessage leak on MessageDispatcher ([#1197](https://github.com/googleapis/java-pubsub/issues/1197)) ([1b8c440](https://github.com/googleapis/java-pubsub/commit/1b8c440fccc51dc2291c43b2972b1f5c08dfd65a)) + + +### Dependencies + +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#1189](https://github.com/googleapis/java-pubsub/issues/1189)) ([0d96f8e](https://github.com/googleapis/java-pubsub/commit/0d96f8e2006c145de039d2f00c5eb1d8830eae3d)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#1190](https://github.com/googleapis/java-pubsub/issues/1190)) ([c604080](https://github.com/googleapis/java-pubsub/commit/c6040802bcf97d063e2b91cdb5fa7fe3c3e3b807)) + ## [1.120.1](https://github.com/googleapis/java-pubsub/compare/v1.120.0...v1.120.1) (2022-07-11) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 123ceeb9a04d..a2a6f946c8e6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.2-SNAPSHOT + 1.120.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.2-SNAPSHOT + 1.120.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.2-SNAPSHOT + 1.102.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.2-SNAPSHOT + 1.102.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b39d9d133fd4..d0639a61ef27 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.2-SNAPSHOT + 1.120.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.2-SNAPSHOT + 1.120.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5ef4bcd3e689..29bc35b1de5d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.2-SNAPSHOT + 1.102.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.2-SNAPSHOT + 1.120.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index af428b97040a..506db5d1f7f2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.2-SNAPSHOT + 1.120.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.2-SNAPSHOT + 1.102.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.2-SNAPSHOT + 1.102.2 com.google.cloud google-cloud-pubsub - 1.120.2-SNAPSHOT + 1.120.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e58713d31810..c7f4bd5a8824 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.2-SNAPSHOT + 1.102.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.2-SNAPSHOT + 1.120.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9f3f0c8eb4e0..58ff96c567ba 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.2-SNAPSHOT + 1.120.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index dd8ac79f8437..f82886d7bf63 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.1:1.120.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.1:1.102.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.1:1.102.2-SNAPSHOT +google-cloud-pubsub:1.120.2:1.120.2 +grpc-google-cloud-pubsub-v1:1.102.2:1.102.2 +proto-google-cloud-pubsub-v1:1.102.2:1.102.2 From 3da7a7f12fd84dc65edde765208f98142a68501f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:04:11 +0000 Subject: [PATCH 1097/2363] chore(main): release 1.120.3-SNAPSHOT (#1198) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a2a6f946c8e6..f3d374da5b32 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.2 + 1.120.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.2 + 1.120.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.2 + 1.102.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.2 + 1.102.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d0639a61ef27..7d96e93aaf28 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.2 + 1.120.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.2 + 1.120.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 29bc35b1de5d..2af82fa85ff8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.2 + 1.102.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.2 + 1.120.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 506db5d1f7f2..c1ef65c12bdf 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.2 + 1.120.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.2 + 1.102.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.2 + 1.102.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.2 + 1.120.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c7f4bd5a8824..60b710dcd46c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.2 + 1.102.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.2 + 1.120.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 58ff96c567ba..3153810d0346 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.2 + 1.120.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f82886d7bf63..dbdb48be5ca8 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.2:1.120.2 -grpc-google-cloud-pubsub-v1:1.102.2:1.102.2 -proto-google-cloud-pubsub-v1:1.102.2:1.102.2 +google-cloud-pubsub:1.120.2:1.120.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.2:1.102.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.2:1.102.3-SNAPSHOT From 43a51631e06a2b47712a4213b902b766e7efdc6f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 26 Jul 2022 19:26:29 +0000 Subject: [PATCH 1098/2363] ci: adjust owlbot-java for monorepo (#1500) (#1200) Source-Link: https://github.com/googleapis/synthtool/commit/48f8857c642792150e2474418b1dbf545c162f8d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:b47e411068ffc6e6990cb4e0802fbac9a4488dec7f5f424553518ba21abea208 --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 6610882f836f..f8b912ad0de0 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9 -# created: 2022-07-18T21:44:23.94208526Z + digest: sha256:b47e411068ffc6e6990cb4e0802fbac9a4488dec7f5f424553518ba21abea208 +# created: 2022-07-26T16:25:31.033836225Z diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 910e26881d08..a07fe2f69339 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.2" ``` ## Authentication From 530017285c06f932041497d514bcb452e21b2a5e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Jul 2022 20:56:33 +0200 Subject: [PATCH 1099/2363] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 (#1201) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.junit.vintage:junit-vintage-engine](https://junit.org/junit5/) ([source](https://togithub.com/junit-team/junit5)) | `5.8.2` -> `5.9.0` | [![age](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.0/compatibility-slim/5.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.0/confidence-slim/5.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 9a9be2e44bf6..41b245f27aef 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.junit.vintage junit-vintage-engine - 5.8.2 + 5.9.0 test From 523bec411b6fd4ccadf3de52b5dad691afd031ba Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 27 Jul 2022 19:14:11 +0000 Subject: [PATCH 1100/2363] chore(main): release 1.120.3 (#1202) :robot: I have created a release *beep* *boop* --- ## [1.120.3](https://github.com/googleapis/java-pubsub/compare/v1.120.2...v1.120.3) (2022-07-27) ### Dependencies * update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#1201](https://github.com/googleapis/java-pubsub/issues/1201)) ([5300172](https://github.com/googleapis/java-pubsub/commit/530017285c06f932041497d514bcb452e21b2a5e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 30d9cff0e943..1bbfa25dcccb 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.120.3](https://github.com/googleapis/java-pubsub/compare/v1.120.2...v1.120.3) (2022-07-27) + + +### Dependencies + +* update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#1201](https://github.com/googleapis/java-pubsub/issues/1201)) ([f18e562](https://github.com/googleapis/java-pubsub/commit/f18e5628f54b0ae6858cd046a11824a1698c50c6)) + ## [1.120.2](https://github.com/googleapis/java-pubsub/compare/v1.120.1...v1.120.2) (2022-07-25) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f3d374da5b32..9e20aad798e5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.3-SNAPSHOT + 1.120.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.3-SNAPSHOT + 1.120.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.3-SNAPSHOT + 1.102.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.3-SNAPSHOT + 1.102.3 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7d96e93aaf28..085841f5a080 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.3-SNAPSHOT + 1.120.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.3-SNAPSHOT + 1.120.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2af82fa85ff8..0a4744033817 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.3-SNAPSHOT + 1.102.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.3-SNAPSHOT + 1.120.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c1ef65c12bdf..dac6409b3347 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.3-SNAPSHOT + 1.120.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.3-SNAPSHOT + 1.102.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.3-SNAPSHOT + 1.102.3 com.google.cloud google-cloud-pubsub - 1.120.3-SNAPSHOT + 1.120.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 60b710dcd46c..738f7b9e00c9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.3-SNAPSHOT + 1.102.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.3-SNAPSHOT + 1.120.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3153810d0346..f827e4265aac 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.3-SNAPSHOT + 1.120.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index dbdb48be5ca8..2f3adecd76aa 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.2:1.120.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.2:1.102.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.2:1.102.3-SNAPSHOT +google-cloud-pubsub:1.120.3:1.120.3 +grpc-google-cloud-pubsub-v1:1.102.3:1.102.3 +proto-google-cloud-pubsub-v1:1.102.3:1.102.3 From 0c57412e23cbf790a01d1faa67680d1fc1236e18 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 27 Jul 2022 19:28:18 +0000 Subject: [PATCH 1101/2363] chore(main): release 1.120.4-SNAPSHOT (#1203) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9e20aad798e5..9de499863d76 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.3 + 1.120.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.3 + 1.120.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.3 + 1.102.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.3 + 1.102.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 085841f5a080..dc4a735bc7ed 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.3 + 1.120.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.3 + 1.120.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0a4744033817..ad447da19afc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.3 + 1.102.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.3 + 1.120.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index dac6409b3347..2eef020c836d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.3 + 1.120.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.3 + 1.102.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.3 + 1.102.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.3 + 1.120.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 738f7b9e00c9..bb9e381dd906 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.3 + 1.102.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.3 + 1.120.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f827e4265aac..772dc2a23ad3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.3 + 1.120.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 2f3adecd76aa..ba0a55d103b1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.3:1.120.3 -grpc-google-cloud-pubsub-v1:1.102.3:1.102.3 -proto-google-cloud-pubsub-v1:1.102.3:1.102.3 +google-cloud-pubsub:1.120.3:1.120.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.3:1.102.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.3:1.102.4-SNAPSHOT From 1c502494cdd513b55699d6887d0d8805aa102d9a Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Fri, 29 Jul 2022 14:27:19 -0400 Subject: [PATCH 1102/2363] fix: updating return types of ack/nack futures to be consistent with publish (#1204) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: updating return types of ack/nack to be consistent with publish * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * reverting a README change * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- .../clirr-ignored-differences.xml | 17 +++++++++++++++++ .../pubsub/v1/AckReplyConsumerWithResponse.java | 6 +++--- .../v1/AckReplyConsumerWithResponseImpl.java | 6 +++--- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a07fe2f69339..bedf96eafbe4 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.3" ``` ## Authentication diff --git a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml index 610c1b36207d..36ec9cb95028 100644 --- a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml +++ b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml @@ -17,4 +17,21 @@ com/google/cloud/pubsub/v1/MessageDispatcher$Builder com.google.cloud.pubsub.v1.MessageDispatcher$Builder setEnableExactlyOnceDelivery(boolean) + + + + 7006 + com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse + *ack() + com.google.api.core.ApiFuture + Updating return types to be consistent with Publish + + + + 7006 + com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl + *ack() + com.google.api.core.ApiFuture + Updating return types to be consistent with Publish + diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java index 4bde6acbc95f..59ea25ae768f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java @@ -16,8 +16,8 @@ package com.google.cloud.pubsub.v1; +import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; -import java.util.concurrent.Future; /** * Acknowledging a message in Pub/Sub means that you are done with it, and it will not be delivered @@ -42,7 +42,7 @@ public interface AckReplyConsumerWithResponse { * *

    A future representing the server response is returned */ - Future ack(); + ApiFuture ack(); /** * Signals that the message has not been successfully processed. The service should resend the @@ -50,5 +50,5 @@ public interface AckReplyConsumerWithResponse { * *

    A future representing the server response is returned */ - Future nack(); + ApiFuture nack(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java index d0a0316af14d..6e78a1392e40 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java @@ -15,8 +15,8 @@ */ package com.google.cloud.pubsub.v1; +import com.google.api.core.ApiFuture; import com.google.api.core.SettableApiFuture; -import java.util.concurrent.Future; public class AckReplyConsumerWithResponseImpl implements AckReplyConsumerWithResponse { final SettableApiFuture ackReplySettableApiFuture; @@ -30,13 +30,13 @@ public AckReplyConsumerWithResponseImpl( } @Override - public Future ack() { + public ApiFuture ack() { ackReplySettableApiFuture.set(MessageDispatcher.AckReply.ACK); return messageFuture; } @Override - public Future nack() { + public ApiFuture nack() { ackReplySettableApiFuture.set(MessageDispatcher.AckReply.NACK); return messageFuture; } From 1e1c6b2aeb37d7ac0671f56863ffe55a5f4e8f84 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 29 Jul 2022 17:08:43 -0400 Subject: [PATCH 1103/2363] chore(main): release 1.120.4 (#1205) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 1bbfa25dcccb..3cda39f3c548 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.120.4](https://github.com/googleapis/java-pubsub/compare/v1.120.3...v1.120.4) (2022-07-29) + + +### Bug Fixes + +* updating return types of ack/nack futures to be consistent with publish ([#1204](https://github.com/googleapis/java-pubsub/issues/1204)) ([6e73ab9](https://github.com/googleapis/java-pubsub/commit/6e73ab9618f61ee1915e52abe3b80e356bc3c13f)) + ## [1.120.3](https://github.com/googleapis/java-pubsub/compare/v1.120.2...v1.120.3) (2022-07-27) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9de499863d76..c775e01607de 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.4-SNAPSHOT + 1.120.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.4-SNAPSHOT + 1.120.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.4-SNAPSHOT + 1.102.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.4-SNAPSHOT + 1.102.4 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index dc4a735bc7ed..a755ad204d56 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.4-SNAPSHOT + 1.120.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.4-SNAPSHOT + 1.120.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ad447da19afc..fdba9edf69e2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.4-SNAPSHOT + 1.102.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.4-SNAPSHOT + 1.120.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2eef020c836d..3c0e8f8bbd43 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.4-SNAPSHOT + 1.120.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.4-SNAPSHOT + 1.102.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.4-SNAPSHOT + 1.102.4 com.google.cloud google-cloud-pubsub - 1.120.4-SNAPSHOT + 1.120.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index bb9e381dd906..7398c34d3ed7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.4-SNAPSHOT + 1.102.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.4-SNAPSHOT + 1.120.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 772dc2a23ad3..c532d831c571 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.4-SNAPSHOT + 1.120.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ba0a55d103b1..5738106f2a8b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.3:1.120.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.3:1.102.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.3:1.102.4-SNAPSHOT +google-cloud-pubsub:1.120.4:1.120.4 +grpc-google-cloud-pubsub-v1:1.102.4:1.102.4 +proto-google-cloud-pubsub-v1:1.102.4:1.102.4 From 731a1357445382715e1fe9d98589fb70abfe22a7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 29 Jul 2022 21:20:13 +0000 Subject: [PATCH 1104/2363] chore(main): release 1.120.5-SNAPSHOT (#1206) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c775e01607de..367b669543f7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.4 + 1.120.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.4 + 1.120.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.4 + 1.102.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.4 + 1.102.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a755ad204d56..2a8315a4b93d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.4 + 1.120.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.4 + 1.120.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fdba9edf69e2..7e937ed312c5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.4 + 1.102.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.4 + 1.120.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3c0e8f8bbd43..339d2fe2f2ef 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.4 + 1.120.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.4 + 1.102.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.4 + 1.102.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.4 + 1.120.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7398c34d3ed7..4dba0e558126 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.4 + 1.102.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.4 + 1.120.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c532d831c571..90f2730a6cb0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.4 + 1.120.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 5738106f2a8b..e37ef7f807ed 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.4:1.120.4 -grpc-google-cloud-pubsub-v1:1.102.4:1.102.4 -proto-google-cloud-pubsub-v1:1.102.4:1.102.4 +google-cloud-pubsub:1.120.4:1.120.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.4:1.102.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.4:1.102.5-SNAPSHOT From c7bd10803e82cb52900a7db2dc5c7c9c3c86e14e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 30 Jul 2022 02:30:25 +0200 Subject: [PATCH 1105/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3 (#1207) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.13.0` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/compatibility-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/confidence-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes

    googleapis/java-shared-dependencies ### [`v3.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​300-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2130v300-2022-07-29) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.13.0...v3.0.0) ##### Bug Fixes - enable longpaths support for windows test ([#​1485](https://togithub.com/googleapis/java-shared-dependencies/issues/1485)) ([#​738](https://togithub.com/googleapis/java-shared-dependencies/issues/738)) ([11bc8f8](https://togithub.com/googleapis/java-shared-dependencies/commit/11bc8f81f28be88a97fdeafca21724e33638770c)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.2 ([#​729](https://togithub.com/googleapis/java-shared-dependencies/issues/729)) ([1fa59af](https://togithub.com/googleapis/java-shared-dependencies/commit/1fa59af80abb9f278f57658c10158567e825fec6)) - update dependency com.google.api-client:google-api-client-bom to v2 ([#​746](https://togithub.com/googleapis/java-shared-dependencies/issues/746)) ([2dcb2e0](https://togithub.com/googleapis/java-shared-dependencies/commit/2dcb2e071e0ba0eea21bb575bd13cd559d4a1ca6)) - update dependency com.google.api.grpc:grpc-google-common-protos to v2.9.2 ([#​741](https://togithub.com/googleapis/java-shared-dependencies/issues/741)) ([3352d6c](https://togithub.com/googleapis/java-shared-dependencies/commit/3352d6c36111c04e3f6f3e6360470fa3efb10d8f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.0 ([#​726](https://togithub.com/googleapis/java-shared-dependencies/issues/726)) ([2c5d64c](https://togithub.com/googleapis/java-shared-dependencies/commit/2c5d64c127db8384e49113acfeac6928716a2d7f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.1 ([#​742](https://togithub.com/googleapis/java-shared-dependencies/issues/742)) ([4f53527](https://togithub.com/googleapis/java-shared-dependencies/commit/4f53527bda7f40896711b7c1d1c02453321ffbc8)) - update dependency com.google.cloud:first-party-dependencies to v2 ([#​747](https://togithub.com/googleapis/java-shared-dependencies/issues/747)) ([e970ac0](https://togithub.com/googleapis/java-shared-dependencies/commit/e970ac0599941c825dc2516146a7c6673e68a9b9)) - update dependency com.google.cloud:grpc-gcp to v1.2.1 ([#​751](https://togithub.com/googleapis/java-shared-dependencies/issues/751)) ([b3284b6](https://togithub.com/googleapis/java-shared-dependencies/commit/b3284b6ee52a96a6ea8696a05a94443df9ee5b9f)) - update dependency com.google.cloud:third-party-dependencies to v2 ([#​748](https://togithub.com/googleapis/java-shared-dependencies/issues/748)) ([573b41a](https://togithub.com/googleapis/java-shared-dependencies/commit/573b41a69504372741cbeb01dd200e7c71967186)) - update dependency com.google.http-client:google-http-client-bom to v1.42.1 ([#​730](https://togithub.com/googleapis/java-shared-dependencies/issues/730)) ([6b47126](https://togithub.com/googleapis/java-shared-dependencies/commit/6b47126686b603a5d112e097ce6aa3a1880daf6f)) - update dependency com.google.http-client:google-http-client-bom to v1.42.2 ([#​749](https://togithub.com/googleapis/java-shared-dependencies/issues/749)) ([299d7b0](https://togithub.com/googleapis/java-shared-dependencies/commit/299d7b0d4920644e2c3070d12dd1d97da17a5e88)) - update dependency com.google.protobuf:protobuf-bom to v3.21.2 ([#​722](https://togithub.com/googleapis/java-shared-dependencies/issues/722)) ([7a96b12](https://togithub.com/googleapis/java-shared-dependencies/commit/7a96b1259a526b63e9376fd6cc18b27cddeb5f0f)) - update dependency com.google.protobuf:protobuf-bom to v3.21.3 ([#​756](https://togithub.com/googleapis/java-shared-dependencies/issues/756)) ([3d0bac2](https://togithub.com/googleapis/java-shared-dependencies/commit/3d0bac23487aebb94267c0708f41ff6c02a028a4)) - update dependency com.google.protobuf:protobuf-bom to v3.21.4 ([#​759](https://togithub.com/googleapis/java-shared-dependencies/issues/759)) ([5a54ef1](https://togithub.com/googleapis/java-shared-dependencies/commit/5a54ef1a2d56244166d4fcc46041d62c0dc4b411)) - update dependency io.grpc:grpc-bom to v1.48.0 ([#​752](https://togithub.com/googleapis/java-shared-dependencies/issues/752)) ([20ac908](https://togithub.com/googleapis/java-shared-dependencies/commit/20ac908932a5e7c8e581bdfcd68579d7e1cedd5f)) - update dependency org.checkerframework:checker-qual to v3.23.0 ([#​736](https://togithub.com/googleapis/java-shared-dependencies/issues/736)) ([fc01d8f](https://togithub.com/googleapis/java-shared-dependencies/commit/fc01d8f93f391f12fdb800d5006f0b4505832eeb)) - update gax.version to v2.18.3 ([#​731](https://togithub.com/googleapis/java-shared-dependencies/issues/731)) ([e8ee554](https://togithub.com/googleapis/java-shared-dependencies/commit/e8ee554707acb2f71c739d08e2ff02fbe43ffa52)) - update gax.version to v2.18.4 ([#​735](https://togithub.com/googleapis/java-shared-dependencies/issues/735)) ([11c7415](https://togithub.com/googleapis/java-shared-dependencies/commit/11c74152a84697924de3a0e838b05f606c3098f7)) - update gax.version to v2.18.5 ([#​758](https://togithub.com/googleapis/java-shared-dependencies/issues/758)) ([7469fc1](https://togithub.com/googleapis/java-shared-dependencies/commit/7469fc1cc5095b39a5738e60156711a268f6e052)) - update gax.version to v2.18.6 ([#​763](https://togithub.com/googleapis/java-shared-dependencies/issues/763)) ([b5ca2f7](https://togithub.com/googleapis/java-shared-dependencies/commit/b5ca2f7b4d81c705823253f4f03363a32d2be48b)) - update google.common-protos.version to v2.9.1 ([#​724](https://togithub.com/googleapis/java-shared-dependencies/issues/724)) ([5213dbb](https://togithub.com/googleapis/java-shared-dependencies/commit/5213dbbfa9c9b73d2420ec2be7782f16c9c4955f)) - update google.core.version to v2.8.1 ([#​725](https://togithub.com/googleapis/java-shared-dependencies/issues/725)) ([575858a](https://togithub.com/googleapis/java-shared-dependencies/commit/575858a60f76e46bbc2a2435c2b6c01c8f4ab681)) - update google.core.version to v2.8.3 ([#​760](https://togithub.com/googleapis/java-shared-dependencies/issues/760)) ([cb10ae4](https://togithub.com/googleapis/java-shared-dependencies/commit/cb10ae4b76939215ea465af74163b3d4ad65a548)) - update google.core.version to v2.8.4 ([#​762](https://togithub.com/googleapis/java-shared-dependencies/issues/762)) ([821daaf](https://togithub.com/googleapis/java-shared-dependencies/commit/821daafefdbcfdfe6e363e580747538096a562ef)) - update google.core.version to v2.8.5 ([#​764](https://togithub.com/googleapis/java-shared-dependencies/issues/764)) ([a1f8f50](https://togithub.com/googleapis/java-shared-dependencies/commit/a1f8f501b54143a2cec8e72efd4ceb3ce47f13ae)) - update iam.version to v1.5.0 ([#​732](https://togithub.com/googleapis/java-shared-dependencies/issues/732)) ([9dce0e5](https://togithub.com/googleapis/java-shared-dependencies/commit/9dce0e5199c1e425119adc804304958f58003a27)) - update iam.version to v1.5.1 ([#​737](https://togithub.com/googleapis/java-shared-dependencies/issues/737)) ([df39168](https://togithub.com/googleapis/java-shared-dependencies/commit/df391685d42fcb1b04f03ab1380a594893bdce37)) - update iam.version to v1.5.2 ([#​743](https://togithub.com/googleapis/java-shared-dependencies/issues/743)) ([cdde697](https://togithub.com/googleapis/java-shared-dependencies/commit/cdde697f25a89fc8c2ec7eae6b7c54f69977bb1c))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bedf96eafbe4..e7bae0692dc0 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.4" ``` ## Authentication diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 339d2fe2f2ef..bd31b4ab930a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.13.0 + 3.0.0 pom import From 2571d94bab16794f67961cd711a01993ae441fb5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 30 Jul 2022 01:06:13 +0000 Subject: [PATCH 1106/2363] chore(main): release 1.120.5 (#1208) :robot: I have created a release *beep* *boop* --- ## [1.120.5](https://github.com/googleapis/java-pubsub/compare/v1.120.4...v1.120.5) (2022-07-30) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#1207](https://github.com/googleapis/java-pubsub/issues/1207)) ([c7bd108](https://github.com/googleapis/java-pubsub/commit/c7bd10803e82cb52900a7db2dc5c7c9c3c86e14e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 3cda39f3c548..cb63968ab19c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.120.5](https://github.com/googleapis/java-pubsub/compare/v1.120.4...v1.120.5) (2022-07-30) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#1207](https://github.com/googleapis/java-pubsub/issues/1207)) ([d355509](https://github.com/googleapis/java-pubsub/commit/d355509be963b7d2c357d2c9dd3f97eaa5fd8717)) + ## [1.120.4](https://github.com/googleapis/java-pubsub/compare/v1.120.3...v1.120.4) (2022-07-29) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 367b669543f7..c0d82b1c0126 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.5-SNAPSHOT + 1.120.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.5-SNAPSHOT + 1.120.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.5-SNAPSHOT + 1.102.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.5-SNAPSHOT + 1.102.5
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2a8315a4b93d..8ccbfffbfa5c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.5-SNAPSHOT + 1.120.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.5-SNAPSHOT + 1.120.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7e937ed312c5..fede21c848fe 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.5-SNAPSHOT + 1.102.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.5-SNAPSHOT + 1.120.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bd31b4ab930a..5e366fbfa3e7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.5-SNAPSHOT + 1.120.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.5-SNAPSHOT + 1.102.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.5-SNAPSHOT + 1.102.5 com.google.cloud google-cloud-pubsub - 1.120.5-SNAPSHOT + 1.120.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4dba0e558126..7a9d6db74dba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.5-SNAPSHOT + 1.102.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.5-SNAPSHOT + 1.120.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 90f2730a6cb0..7b0bcac1a75f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.5-SNAPSHOT + 1.120.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e37ef7f807ed..ae2e21a7326c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.4:1.120.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.4:1.102.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.4:1.102.5-SNAPSHOT +google-cloud-pubsub:1.120.5:1.120.5 +grpc-google-cloud-pubsub-v1:1.102.5:1.102.5 +proto-google-cloud-pubsub-v1:1.102.5:1.102.5 From aeef93fafb7358f9ff8f8188b7bed3f325a935b1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 30 Jul 2022 01:18:18 +0000 Subject: [PATCH 1107/2363] chore(main): release 1.120.6-SNAPSHOT (#1209) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c0d82b1c0126..45c836e389a0 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.5 + 1.120.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.5 + 1.120.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.5 + 1.102.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.5 + 1.102.6-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8ccbfffbfa5c..e991aab7af6c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.5 + 1.120.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.5 + 1.120.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fede21c848fe..668cc485871c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.5 + 1.102.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.5 + 1.120.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5e366fbfa3e7..fd2ca6a94396 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.5 + 1.120.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.5 + 1.102.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.5 + 1.102.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.5 + 1.120.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7a9d6db74dba..fec03f83b17a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.5 + 1.102.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.5 + 1.120.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7b0bcac1a75f..b1720fb792d5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.5 + 1.120.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ae2e21a7326c..7320cdb1cb55 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.5:1.120.5 -grpc-google-cloud-pubsub-v1:1.102.5:1.102.5 -proto-google-cloud-pubsub-v1:1.102.5:1.102.5 +google-cloud-pubsub:1.120.5:1.120.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.5:1.102.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.5:1.102.6-SNAPSHOT From 14f9fb87bb546c84b60bcb128b198b2a0f2048ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 1 Aug 2022 16:44:11 +0200 Subject: [PATCH 1108/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.3 (#1211) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.0` -> `1.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/compatibility-slim/1.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/confidence-slim/1.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config ### [`v1.5.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​153-httpsgithubcomgoogleapisjava-shared-configcomparev152v153-2022-07-27) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.2...v1.5.3) ##### Dependencies - update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#​497](https://togithub.com/googleapis/java-shared-config/issues/497)) ([1fc6ab4](https://togithub.com/googleapis/java-shared-config/commit/1fc6ab445624cd4f9c8b161d109f346a9e5ed09a)) - Update doclet to latest version 1.6.0 ([38fb7c3](https://togithub.com/googleapis/java-shared-config/commit/38fb7c3957fb6c9b2da10f9e463cc93a8b80a3a4)) ### [`v1.5.2`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​152-httpsgithubcomgoogleapisjava-shared-configcomparev151v152-2022-07-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.1...v1.5.2) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v10 ([#​435](https://togithub.com/googleapis/java-shared-config/issues/435)) ([bfc8ce1](https://togithub.com/googleapis/java-shared-config/commit/bfc8ce1deca6292147d002d3afe22a09840aa5d6)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#​488](https://togithub.com/googleapis/java-shared-config/issues/488)) ([39b91ee](https://togithub.com/googleapis/java-shared-config/commit/39b91ee1283f0a5fbbe63e8bfd1ec97ab4ab377e)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#​489](https://togithub.com/googleapis/java-shared-config/issues/489)) ([cc3bcfa](https://togithub.com/googleapis/java-shared-config/commit/cc3bcfa2d6717441a8d5b5048fa78c2cf7aabf2b)) ### [`v1.5.1`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​151-httpsgithubcomgoogleapisjava-shared-configcomparev150v151-2022-06-30) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.0...v1.5.1) ##### Dependencies - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#​482](https://togithub.com/googleapis/java-shared-config/issues/482)) ([fbfc6dc](https://togithub.com/googleapis/java-shared-config/commit/fbfc6dc1329faaead3a3114c8599d9267722e7f0)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#​483](https://togithub.com/googleapis/java-shared-config/issues/483)) ([336cb78](https://togithub.com/googleapis/java-shared-config/commit/336cb7827b36583228c9e2b85871ae72f4c55975))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e7bae0692dc0..71d81ff57b48 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.5" ``` ## Authentication diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 45c836e389a0..5d3abcf81920 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.3 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index fd2ca6a94396..d76490aabe62 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.3 From 85a6b78fc99e95b810d8e2d5574a4f0b629f380e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 1 Aug 2022 18:11:10 +0200 Subject: [PATCH 1109/2363] deps: update dependency org.apache.avro:avro to v1.11.1 (#1210) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.apache.avro:avro to v1.11.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e0498b450edc..858f0dfe72bd 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -51,7 +51,7 @@ org.apache.avro avro - 1.11.0 + 1.11.1 compile diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b1720fb792d5..a2179e6a7b5d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -50,7 +50,7 @@ org.apache.avro avro - 1.11.0 + 1.11.1 compile diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4fc1b51f3188..8811bf7a27b9 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -66,7 +66,7 @@ org.apache.avro avro - 1.11.0 + 1.11.1 org.xerial.snappy From 90e7da0121cfb2c4212f2bd60431b8443e92efbe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 1 Aug 2022 18:11:44 +0200 Subject: [PATCH 1110/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.5 (#1212) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 71d81ff57b48..9ad4cbe33a66 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.0 + 1.120.5 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 858f0dfe72bd..820f209552e4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.0 + 1.120.5 From 1ae2e47d6d99ee50eb4020a928e0f1562d17afbf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 1 Aug 2022 18:12:04 +0200 Subject: [PATCH 1111/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.5 (#1213) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.8.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 820f209552e4..d71b02de4dac 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.1 + 2.8.5 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a2179e6a7b5d..dff349361cab 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.1 + 2.8.5 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 8811bf7a27b9..ab84e49b378f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.1 + 2.8.5 tests From bcb2eb4c35bb8829f528ae4a98399ab7c5cc399c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 1 Aug 2022 18:12:21 +0200 Subject: [PATCH 1112/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.4 (#1214) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d71b02de4dac..9a9bde43bc93 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.2 + 3.21.4 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index dff349361cab..6d548ea39b04 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.2 + 3.21.4 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index ab84e49b378f..a3a4ed6c3795 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.21.2 + 3.21.4 From ebd4f64e87702febeed88f0764e2990bd2ac3bbd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 1 Aug 2022 18:14:11 +0200 Subject: [PATCH 1113/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.14.1 (#1215) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.14.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 9a9bde43bc93..e0e36b03478c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.13.8 + 2.14.1
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6d548ea39b04..3ce154a18653 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.13.8 + 2.14.1
    From 1131fbd4a610c4f0fe79721cc288dd9c311fa3f0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 1 Aug 2022 16:44:52 +0000 Subject: [PATCH 1114/2363] chore(main): release 1.120.6 (#1216) :robot: I have created a release *beep* *boop* --- ## [1.120.6](https://github.com/googleapis/java-pubsub/compare/v1.120.5...v1.120.6) (2022-08-01) ### Dependencies * update dependency com.google.cloud:google-cloud-bigquery to v2.14.1 ([#1215](https://github.com/googleapis/java-pubsub/issues/1215)) ([ebd4f64](https://github.com/googleapis/java-pubsub/commit/ebd4f64e87702febeed88f0764e2990bd2ac3bbd)) * update dependency com.google.cloud:google-cloud-core to v2.8.5 ([#1213](https://github.com/googleapis/java-pubsub/issues/1213)) ([1ae2e47](https://github.com/googleapis/java-pubsub/commit/1ae2e47d6d99ee50eb4020a928e0f1562d17afbf)) * update dependency com.google.protobuf:protobuf-java-util to v3.21.4 ([#1214](https://github.com/googleapis/java-pubsub/issues/1214)) ([bcb2eb4](https://github.com/googleapis/java-pubsub/commit/bcb2eb4c35bb8829f528ae4a98399ab7c5cc399c)) * update dependency org.apache.avro:avro to v1.11.1 ([#1210](https://github.com/googleapis/java-pubsub/issues/1210)) ([85a6b78](https://github.com/googleapis/java-pubsub/commit/85a6b78fc99e95b810d8e2d5574a4f0b629f380e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index cb63968ab19c..69fa1651252a 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.120.6](https://github.com/googleapis/java-pubsub/compare/v1.120.5...v1.120.6) (2022-08-01) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-bigquery to v2.14.1 ([#1215](https://github.com/googleapis/java-pubsub/issues/1215)) ([5667492](https://github.com/googleapis/java-pubsub/commit/56674928f2e671487c8d4c0dad4e45368da47e0e)) +* update dependency com.google.cloud:google-cloud-core to v2.8.5 ([#1213](https://github.com/googleapis/java-pubsub/issues/1213)) ([5db0c2c](https://github.com/googleapis/java-pubsub/commit/5db0c2cafcf27a80ac4e18c623fc22c2af252774)) +* update dependency com.google.protobuf:protobuf-java-util to v3.21.4 ([#1214](https://github.com/googleapis/java-pubsub/issues/1214)) ([bfc53d9](https://github.com/googleapis/java-pubsub/commit/bfc53d9fb616b4ee22e2c39dbaf1eed7354142a7)) +* update dependency org.apache.avro:avro to v1.11.1 ([#1210](https://github.com/googleapis/java-pubsub/issues/1210)) ([fafcded](https://github.com/googleapis/java-pubsub/commit/fafcdede6b4e5ef5098b8b04a53d9e42b59cda3d)) + ## [1.120.5](https://github.com/googleapis/java-pubsub/compare/v1.120.4...v1.120.5) (2022-07-30) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5d3abcf81920..3dd47f9b1a77 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.6-SNAPSHOT + 1.120.6 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.6-SNAPSHOT + 1.120.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.6-SNAPSHOT + 1.102.6 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.6-SNAPSHOT + 1.102.6
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e991aab7af6c..01e81eeefeb2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.6-SNAPSHOT + 1.120.6 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.6-SNAPSHOT + 1.120.6 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 668cc485871c..cf9e2248cb8d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.6-SNAPSHOT + 1.102.6 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.6-SNAPSHOT + 1.120.6 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d76490aabe62..b57b262568e8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.6-SNAPSHOT + 1.120.6 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.6-SNAPSHOT + 1.102.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.6-SNAPSHOT + 1.102.6 com.google.cloud google-cloud-pubsub - 1.120.6-SNAPSHOT + 1.120.6 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index fec03f83b17a..4e2d0312fe8b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.6-SNAPSHOT + 1.102.6 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.6-SNAPSHOT + 1.120.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3ce154a18653..1547d6af7568 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.6-SNAPSHOT + 1.120.6 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7320cdb1cb55..6ffc75b71d1c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.5:1.120.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.5:1.102.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.5:1.102.6-SNAPSHOT +google-cloud-pubsub:1.120.6:1.120.6 +grpc-google-cloud-pubsub-v1:1.102.6:1.102.6 +proto-google-cloud-pubsub-v1:1.102.6:1.102.6 From ea78e034c47c3526f8040bd3b573e55063631b4d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 1 Aug 2022 16:58:24 +0000 Subject: [PATCH 1115/2363] chore(main): release 1.120.7-SNAPSHOT (#1217) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3dd47f9b1a77..dccfd5b2d50d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.6 + 1.120.7-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.6 + 1.120.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.6 + 1.102.7-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.6 + 1.102.7-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 01e81eeefeb2..3c0f6102b198 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.6 + 1.120.7-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.6 + 1.120.7-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index cf9e2248cb8d..1779a86214d5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.6 + 1.102.7-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.6 + 1.120.7-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b57b262568e8..a6b11c467228 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.6 + 1.120.7-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.6 + 1.102.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.6 + 1.102.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.6 + 1.120.7-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4e2d0312fe8b..217aee5a98d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.6 + 1.102.7-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.6 + 1.120.7-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1547d6af7568..11737a843b8a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.6 + 1.120.7-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6ffc75b71d1c..f29db5af83e2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.6:1.120.6 -grpc-google-cloud-pubsub-v1:1.102.6:1.102.6 -proto-google-cloud-pubsub-v1:1.102.6:1.102.6 +google-cloud-pubsub:1.120.6:1.120.7-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.6:1.102.7-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.6:1.102.7-SNAPSHOT From 7282cdba740b4602ebf35b3f810442528d32004d Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Mon, 1 Aug 2022 17:23:07 -0400 Subject: [PATCH 1116/2363] fix: Updated log level from WARNING -> INFO for EOD failures (#1218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Updated log level from WARNING -> INFO for EOD failures * formatting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- .../cloud/pubsub/v1/StreamingSubscriberConnection.java | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 9ad4cbe33a66..e98ba1a5f2ec 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.6" ``` ## Authentication diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 1067fa7e5cd4..e7046c1be79a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -547,18 +547,17 @@ public void onFailure(Throwable t) { String errorMessage = metadataMap.get(ackId); if (errorMessage.startsWith(TRANSIENT_FAILURE_METADATA_PREFIX)) { // Retry all "TRANSIENT_*" error messages - do not set message future - logger.log(Level.WARNING, "Transient error message, will resend", errorMessage); + logger.log(Level.INFO, "Transient error message, will resend", errorMessage); ackRequestDataArrayRetryList.add(ackRequestData); } else if (errorMessage.equals(PERMANENT_FAILURE_INVALID_ACK_ID_METADATA)) { // Permanent failure, send logger.log( - Level.WARNING, + Level.INFO, "Permanent error invalid ack id message, will not resend", errorMessage); ackRequestData.setResponse(AckResponse.INVALID, setResponseOnSuccess); } else { - logger.log( - Level.WARNING, "Unknown error message, will not resend", errorMessage); + logger.log(Level.INFO, "Unknown error message, will not resend", errorMessage); ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); } } else { From de0573ff7122a6c804552cbf13826e5c3d24a0ca Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 1 Aug 2022 18:01:50 -0400 Subject: [PATCH 1117/2363] chore(main): release 1.120.7 (#1219) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 69fa1651252a..515a6314adb7 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.120.7](https://github.com/googleapis/java-pubsub/compare/v1.120.6...v1.120.7) (2022-08-01) + + +### Bug Fixes + +* Updated log level from WARNING -> INFO for EOD failures ([#1218](https://github.com/googleapis/java-pubsub/issues/1218)) ([8782533](https://github.com/googleapis/java-pubsub/commit/8782533204fcc312c1063763f5073db83c72382f)) + ## [1.120.6](https://github.com/googleapis/java-pubsub/compare/v1.120.5...v1.120.6) (2022-08-01) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index dccfd5b2d50d..4f9d213daf27 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.7-SNAPSHOT + 1.120.7 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.7-SNAPSHOT + 1.120.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.7-SNAPSHOT + 1.102.7 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.7-SNAPSHOT + 1.102.7 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3c0f6102b198..4bdd42cf69b4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.7-SNAPSHOT + 1.120.7 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.7-SNAPSHOT + 1.120.7 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1779a86214d5..ddb400381f27 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.7-SNAPSHOT + 1.102.7 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.7-SNAPSHOT + 1.120.7 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a6b11c467228..ccc497703e81 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.7-SNAPSHOT + 1.120.7 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.7-SNAPSHOT + 1.102.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.7-SNAPSHOT + 1.102.7 com.google.cloud google-cloud-pubsub - 1.120.7-SNAPSHOT + 1.120.7 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 217aee5a98d7..42186487d95a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.7-SNAPSHOT + 1.102.7 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.7-SNAPSHOT + 1.120.7 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 11737a843b8a..8ec39677c2b9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.7-SNAPSHOT + 1.120.7 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f29db5af83e2..4fe92c588d52 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.6:1.120.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.6:1.102.7-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.6:1.102.7-SNAPSHOT +google-cloud-pubsub:1.120.7:1.120.7 +grpc-google-cloud-pubsub-v1:1.102.7:1.102.7 +proto-google-cloud-pubsub-v1:1.102.7:1.102.7 From 42559b22cca0433da662a8ba62626c06e6c13539 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 1 Aug 2022 22:12:43 +0000 Subject: [PATCH 1118/2363] chore(main): release 1.120.8-SNAPSHOT (#1221) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4f9d213daf27..33bd4890d836 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.7 + 1.120.8-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.7 + 1.120.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.7 + 1.102.8-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.7 + 1.102.8-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4bdd42cf69b4..f64875534256 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.7 + 1.120.8-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.7 + 1.120.8-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ddb400381f27..0af2c33c0c97 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.7 + 1.102.8-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.7 + 1.120.8-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ccc497703e81..f6e4bc5d7ea1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.7 + 1.120.8-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.7 + 1.102.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.7 + 1.102.8-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.7 + 1.120.8-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 42186487d95a..dc452351ce54 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.7 + 1.102.8-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.7 + 1.120.8-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8ec39677c2b9..2ba8f211b757 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.7 + 1.120.8-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4fe92c588d52..2e5488b4e493 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.7:1.120.7 -grpc-google-cloud-pubsub-v1:1.102.7:1.102.7 -proto-google-cloud-pubsub-v1:1.102.7:1.102.7 +google-cloud-pubsub:1.120.7:1.120.8-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.7:1.102.8-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.7:1.102.8-SNAPSHOT From af3a8ddf67463e4084403f7c58fa2050663f2190 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 17:36:05 +0200 Subject: [PATCH 1119/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.6 (#1222) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.8.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e98ba1a5f2ec..abc9e4af33f2 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.6' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.7' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.6" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.7" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e0e36b03478c..c422d6f2eb35 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.5 + 2.8.6 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2ba8f211b757..4cbee56ae96b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.5 + 2.8.6 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a3a4ed6c3795..f34479f616ed 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.5 + 2.8.6 tests From c7a2a55d97b67e0729224dbb789d1dfd41fb5512 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 2 Aug 2022 15:56:12 +0000 Subject: [PATCH 1120/2363] chore(main): release 1.120.8 (#1223) :robot: I have created a release *beep* *boop* --- ## [1.120.8](https://github.com/googleapis/java-pubsub/compare/v1.120.7...v1.120.8) (2022-08-02) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.8.6 ([#1222](https://github.com/googleapis/java-pubsub/issues/1222)) ([af3a8dd](https://github.com/googleapis/java-pubsub/commit/af3a8ddf67463e4084403f7c58fa2050663f2190)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 515a6314adb7..07ce0ca80be6 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.120.8](https://github.com/googleapis/java-pubsub/compare/v1.120.7...v1.120.8) (2022-08-02) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.8.6 ([#1222](https://github.com/googleapis/java-pubsub/issues/1222)) ([55eebf5](https://github.com/googleapis/java-pubsub/commit/55eebf55785a700a67dc3a97b21837acf14d9a64)) + ## [1.120.7](https://github.com/googleapis/java-pubsub/compare/v1.120.6...v1.120.7) (2022-08-01) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 33bd4890d836..b67973bc4c5e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.8-SNAPSHOT + 1.120.8 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.8-SNAPSHOT + 1.120.8 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.8-SNAPSHOT + 1.102.8 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.8-SNAPSHOT + 1.102.8 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f64875534256..8fbdcae8c6e9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.8-SNAPSHOT + 1.120.8 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.8-SNAPSHOT + 1.120.8 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0af2c33c0c97..22c2a47e8eea 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.8-SNAPSHOT + 1.102.8 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.8-SNAPSHOT + 1.120.8 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f6e4bc5d7ea1..b90ef5ca0073 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.8-SNAPSHOT + 1.120.8 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.8-SNAPSHOT + 1.102.8 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.8-SNAPSHOT + 1.102.8 com.google.cloud google-cloud-pubsub - 1.120.8-SNAPSHOT + 1.120.8 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index dc452351ce54..72d3c8b560e9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.8-SNAPSHOT + 1.102.8 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.8-SNAPSHOT + 1.120.8 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4cbee56ae96b..f7204e8e2092 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.8-SNAPSHOT + 1.120.8 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 2e5488b4e493..16c6c5ee9403 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.7:1.120.8-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.7:1.102.8-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.7:1.102.8-SNAPSHOT +google-cloud-pubsub:1.120.8:1.120.8 +grpc-google-cloud-pubsub-v1:1.102.8:1.102.8 +proto-google-cloud-pubsub-v1:1.102.8:1.102.8 From d2db6623fe664375560193a6e76b0c0657c71ff4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:08:12 +0000 Subject: [PATCH 1121/2363] chore(main): release 1.120.9-SNAPSHOT (#1224) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b67973bc4c5e..7b7867a11937 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.8 + 1.120.9-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.8 + 1.120.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.8 + 1.102.9-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.8 + 1.102.9-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8fbdcae8c6e9..ccd7e8602967 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.8 + 1.120.9-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.8 + 1.120.9-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 22c2a47e8eea..03cb11c02ea7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.8 + 1.102.9-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.8 + 1.120.9-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b90ef5ca0073..39eb1082cc26 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.8 + 1.120.9-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.8 + 1.102.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.8 + 1.102.9-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.8 + 1.120.9-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 72d3c8b560e9..b864b3da0a64 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.8 + 1.102.9-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.8 + 1.120.9-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f7204e8e2092..5025097b15c6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.8 + 1.120.9-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 16c6c5ee9403..4cba7a5492f1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.8:1.120.8 -grpc-google-cloud-pubsub-v1:1.102.8:1.102.8 -proto-google-cloud-pubsub-v1:1.102.8:1.102.8 +google-cloud-pubsub:1.120.8:1.120.9-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.8:1.102.9-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.8:1.102.9-SNAPSHOT From 3496c479be96c95b1d8a99cb4aaef37797e28905 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 20:06:02 +0200 Subject: [PATCH 1122/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.6 (#1220) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index abc9e4af33f2..8addaba77708 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.5 + 1.120.6 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c422d6f2eb35..c83e991c438f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.5 + 1.120.6 From 9be14bf2a8416b6cb57859d631ebf8b55521a1ba Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 20:24:48 +0200 Subject: [PATCH 1123/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 (#1226) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8addaba77708..b05efb81c305 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.7' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.8' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.7" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.8" ``` ## Authentication diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 39eb1082cc26..05e73f4cde82 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.0 + 3.0.1 pom import From d2b331f4108dd3fcebcfd0e18a860c1ad9c349f9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 20:44:34 +0200 Subject: [PATCH 1124/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.8 (#1225) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.6` -> `1.120.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.8/compatibility-slim/1.120.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.8/confidence-slim/1.120.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b05efb81c305..b588d4d38a83 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.6 + 1.120.8 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c83e991c438f..0c855799a17f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.6 + 1.120.8 From 52fe2263c4b941113072b088b33b8f0fe7b1d0c4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 20:03:51 +0200 Subject: [PATCH 1125/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.7 (#1227) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0c855799a17f..573cbf20ec05 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.6 + 2.8.7 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5025097b15c6..840b3dd4f525 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.6 + 2.8.7 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f34479f616ed..e173e913626d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.6 + 2.8.7 tests From df2730ba03fc52704c7c26c682a3fd203e95c98d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 3 Aug 2022 18:16:15 +0000 Subject: [PATCH 1126/2363] chore(main): release 1.120.9 (#1228) :robot: I have created a release *beep* *boop* --- ## [1.120.9](https://github.com/googleapis/java-pubsub/compare/v1.120.8...v1.120.9) (2022-08-03) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.8.7 ([#1227](https://github.com/googleapis/java-pubsub/issues/1227)) ([52fe226](https://github.com/googleapis/java-pubsub/commit/52fe2263c4b941113072b088b33b8f0fe7b1d0c4)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#1226](https://github.com/googleapis/java-pubsub/issues/1226)) ([9be14bf](https://github.com/googleapis/java-pubsub/commit/9be14bf2a8416b6cb57859d631ebf8b55521a1ba)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 07ce0ca80be6..f96851b51f33 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.120.9](https://github.com/googleapis/java-pubsub/compare/v1.120.8...v1.120.9) (2022-08-03) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.8.7 ([#1227](https://github.com/googleapis/java-pubsub/issues/1227)) ([e967b2c](https://github.com/googleapis/java-pubsub/commit/e967b2c393a601c7e9dfba33ec2f19ef6e9757c1)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#1226](https://github.com/googleapis/java-pubsub/issues/1226)) ([8fab566](https://github.com/googleapis/java-pubsub/commit/8fab566e2b0ff726bd9a1dff842b11f5c6c9b00b)) + ## [1.120.8](https://github.com/googleapis/java-pubsub/compare/v1.120.7...v1.120.8) (2022-08-02) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7b7867a11937..23bfea673651 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.9-SNAPSHOT + 1.120.9 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.9-SNAPSHOT + 1.120.9 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.9-SNAPSHOT + 1.102.9 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.9-SNAPSHOT + 1.102.9 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ccd7e8602967..32fb71b69f1d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.9-SNAPSHOT + 1.120.9 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.9-SNAPSHOT + 1.120.9 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 03cb11c02ea7..fe92549d2e0b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.9-SNAPSHOT + 1.102.9 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.9-SNAPSHOT + 1.120.9 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 05e73f4cde82..79b43f56db8a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.9-SNAPSHOT + 1.120.9 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.9-SNAPSHOT + 1.102.9 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.9-SNAPSHOT + 1.102.9 com.google.cloud google-cloud-pubsub - 1.120.9-SNAPSHOT + 1.120.9 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b864b3da0a64..12ece048560d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.9-SNAPSHOT + 1.102.9 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.9-SNAPSHOT + 1.120.9 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 840b3dd4f525..16d8ab29561b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.9-SNAPSHOT + 1.120.9 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4cba7a5492f1..d01cd23a7cf6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.8:1.120.9-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.8:1.102.9-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.8:1.102.9-SNAPSHOT +google-cloud-pubsub:1.120.9:1.120.9 +grpc-google-cloud-pubsub-v1:1.102.9:1.102.9 +proto-google-cloud-pubsub-v1:1.102.9:1.102.9 From 8321636df4ac8adc96d05e988f5c44801598ea6b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 3 Aug 2022 18:32:15 +0000 Subject: [PATCH 1127/2363] chore(main): release 1.120.10-SNAPSHOT (#1229) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 23bfea673651..27456c772a92 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.9 + 1.120.10-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.9 + 1.120.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.9 + 1.102.10-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.9 + 1.102.10-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 32fb71b69f1d..d594e368e2d8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.9 + 1.120.10-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.9 + 1.120.10-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fe92549d2e0b..d9593819037d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.9 + 1.102.10-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.9 + 1.120.10-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 79b43f56db8a..8d7159199270 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.9 + 1.120.10-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.9 + 1.102.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.9 + 1.102.10-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.9 + 1.120.10-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 12ece048560d..31af93d632bf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.9 + 1.102.10-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.9 + 1.120.10-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 16d8ab29561b..58249e5a9db3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.9 + 1.120.10-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d01cd23a7cf6..6d3ffcecc901 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.9:1.120.9 -grpc-google-cloud-pubsub-v1:1.102.9:1.102.9 -proto-google-cloud-pubsub-v1:1.102.9:1.102.9 +google-cloud-pubsub:1.120.9:1.120.10-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.9:1.102.10-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.9:1.102.10-SNAPSHOT From dda9a4ad2aaf37048b8fb4a0b10276ccae0fdbcb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Aug 2022 07:06:29 +0200 Subject: [PATCH 1128/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.9 (#1230) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.8` -> `1.120.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.9/compatibility-slim/1.120.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.9/confidence-slim/1.120.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b588d4d38a83..a876236640c6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.8 + 1.120.9 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.8' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.9' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.8" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.9" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 573cbf20ec05..dd45faebaf3d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.8 + 1.120.9 From b1b25233b4e7ef90c23fc1e3cf0cec8a65dff90b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Aug 2022 17:27:11 +0200 Subject: [PATCH 1129/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.8 (#1231) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index dd45faebaf3d..d480a541d101 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.7 + 2.8.8 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 58249e5a9db3..ed275d137b26 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.7 + 2.8.8 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e173e913626d..cb4ce9ac33c3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.7 + 2.8.8 tests From 5964d6d013c0ef314d74c9a838d3b1b71e03d8cb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 4 Aug 2022 15:46:11 +0000 Subject: [PATCH 1130/2363] chore(main): release 1.120.10 (#1232) :robot: I have created a release *beep* *boop* --- ## [1.120.10](https://github.com/googleapis/java-pubsub/compare/v1.120.9...v1.120.10) (2022-08-04) ### Dependencies * update dependency com.google.cloud:google-cloud-core to v2.8.8 ([#1231](https://github.com/googleapis/java-pubsub/issues/1231)) ([b1b2523](https://github.com/googleapis/java-pubsub/commit/b1b25233b4e7ef90c23fc1e3cf0cec8a65dff90b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index f96851b51f33..e362183e6253 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.120.10](https://github.com/googleapis/java-pubsub/compare/v1.120.9...v1.120.10) (2022-08-04) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-core to v2.8.8 ([#1231](https://github.com/googleapis/java-pubsub/issues/1231)) ([9d13dd8](https://github.com/googleapis/java-pubsub/commit/9d13dd8bc43e24815884dde421409136958d4b0f)) + ## [1.120.9](https://github.com/googleapis/java-pubsub/compare/v1.120.8...v1.120.9) (2022-08-03) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 27456c772a92..7976720f34fb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.10-SNAPSHOT + 1.120.10 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.10-SNAPSHOT + 1.120.10 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.10-SNAPSHOT + 1.102.10 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.10-SNAPSHOT + 1.102.10 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d594e368e2d8..9b17a991639a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.10-SNAPSHOT + 1.120.10 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.10-SNAPSHOT + 1.120.10 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d9593819037d..87277082a581 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.10-SNAPSHOT + 1.102.10 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.10-SNAPSHOT + 1.120.10 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8d7159199270..66460c208866 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.10-SNAPSHOT + 1.120.10 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.10-SNAPSHOT + 1.102.10 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.10-SNAPSHOT + 1.102.10 com.google.cloud google-cloud-pubsub - 1.120.10-SNAPSHOT + 1.120.10 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 31af93d632bf..37994e737d9c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.10-SNAPSHOT + 1.102.10 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.10-SNAPSHOT + 1.120.10 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ed275d137b26..e49a3bb21c8f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.10-SNAPSHOT + 1.120.10 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6d3ffcecc901..15d23d64875b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.9:1.120.10-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.9:1.102.10-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.9:1.102.10-SNAPSHOT +google-cloud-pubsub:1.120.10:1.120.10 +grpc-google-cloud-pubsub-v1:1.102.10:1.102.10 +proto-google-cloud-pubsub-v1:1.102.10:1.102.10 From c197487987b9d76919df91c5060e4f46a76da166 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 4 Aug 2022 16:04:11 +0000 Subject: [PATCH 1131/2363] chore(main): release 1.120.11-SNAPSHOT (#1233) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7976720f34fb..58b66a6395ca 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.10 + 1.120.11-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.10 + 1.120.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.10 + 1.102.11-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.10 + 1.102.11-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9b17a991639a..69dd34bba931 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.10 + 1.120.11-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.10 + 1.120.11-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 87277082a581..54ca8095ea9c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.10 + 1.102.11-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.10 + 1.120.11-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 66460c208866..8dde2cee2a1f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.10 + 1.120.11-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.10 + 1.102.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.10 + 1.102.11-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.10 + 1.120.11-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 37994e737d9c..e626363ffa33 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.10 + 1.102.11-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.10 + 1.120.11-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e49a3bb21c8f..f14fced645a5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.10 + 1.120.11-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 15d23d64875b..973d9b1d41de 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.10:1.120.10 -grpc-google-cloud-pubsub-v1:1.102.10:1.102.10 -proto-google-cloud-pubsub-v1:1.102.10:1.102.10 +google-cloud-pubsub:1.120.10:1.120.11-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.10:1.102.11-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.10:1.102.11-SNAPSHOT From 631fc03c6d1c9c2c36c2bd030fcb77d796fc06cb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Aug 2022 17:54:23 +0200 Subject: [PATCH 1132/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.14.2 (#1235) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.14.1` -> `2.14.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.2/compatibility-slim/2.14.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.2/confidence-slim/2.14.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a876236640c6..ade50863955d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.9' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.10' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.9" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.10" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d480a541d101..9de3a99a3dbe 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.14.1 + 2.14.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f14fced645a5..bdd0445f3824 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.14.1 + 2.14.2 From ff0a120a0713fa9888338d75beec0f1d2ae29fed Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 5 Aug 2022 18:22:11 +0200 Subject: [PATCH 1133/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.10 (#1234) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.9` -> `1.120.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.10/compatibility-slim/1.120.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.10/confidence-slim/1.120.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ade50863955d..c86b99f2fd99 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.9 + 1.120.10 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 9de3a99a3dbe..3e2d68c55cd1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.9 + 1.120.10 From 65094edb236fd604e217f0553293f88ce7e223bb Mon Sep 17 00:00:00 2001 From: BenWhitehead Date: Fri, 5 Aug 2022 15:13:03 -0400 Subject: [PATCH 1134/2363] fix: fix dependency declaration to properly include runtime scope (#1238) Change the scope of the following dependencies to runtime from test * io.grpc:grpc-stub * io.grpc:grpc-core * com.google.http-client:google-http-client --- java-pubsub/google-cloud-pubsub/pom.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 69dd34bba931..f172033ded17 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -24,7 +24,7 @@ io.grpc grpc-stub - test + runtime io.grpc @@ -85,7 +85,7 @@ io.grpc grpc-core - test + runtime com.google.errorprone @@ -98,7 +98,7 @@ com.google.http-client google-http-client - test + runtime @@ -169,7 +169,6 @@ org.apache.maven.plugins maven-dependency-plugin - 3.3.0 com.google.auth:google-auth-library-oauth2-http:jar From 2b3f5c0e04a7137ea9de8c02ecdc112deb5e204d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 6 Aug 2022 03:07:58 +0200 Subject: [PATCH 1135/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.14.3 (#1236) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3e2d68c55cd1..45bf18729e7b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.14.2 + 2.14.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bdd0445f3824..f84c43f716c0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.14.2 + 2.14.3 From f34dd6b4027bdcd77e5818484ed0ea3cee0e290a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 6 Aug 2022 04:00:14 +0000 Subject: [PATCH 1136/2363] chore(main): release 1.120.11 (#1237) :robot: I have created a release *beep* *boop* --- ## [1.120.11](https://github.com/googleapis/java-pubsub/compare/v1.120.10...v1.120.11) (2022-08-06) ### Bug Fixes * fix dependency declaration to properly include runtime scope ([#1238](https://github.com/googleapis/java-pubsub/issues/1238)) ([65094ed](https://github.com/googleapis/java-pubsub/commit/65094edb236fd604e217f0553293f88ce7e223bb)) ### Dependencies * update dependency com.google.cloud:google-cloud-bigquery to v2.14.2 ([#1235](https://github.com/googleapis/java-pubsub/issues/1235)) ([631fc03](https://github.com/googleapis/java-pubsub/commit/631fc03c6d1c9c2c36c2bd030fcb77d796fc06cb)) * update dependency com.google.cloud:google-cloud-bigquery to v2.14.3 ([#1236](https://github.com/googleapis/java-pubsub/issues/1236)) ([2b3f5c0](https://github.com/googleapis/java-pubsub/commit/2b3f5c0e04a7137ea9de8c02ecdc112deb5e204d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index e362183e6253..67b5ae8c74a4 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.120.11](https://github.com/googleapis/java-pubsub/compare/v1.120.10...v1.120.11) (2022-08-06) + + +### Bug Fixes + +* fix dependency declaration to properly include runtime scope ([#1238](https://github.com/googleapis/java-pubsub/issues/1238)) ([e9a4ce5](https://github.com/googleapis/java-pubsub/commit/e9a4ce59fdf3773fa41698579984af525a277f38)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-bigquery to v2.14.2 ([#1235](https://github.com/googleapis/java-pubsub/issues/1235)) ([e2af6c3](https://github.com/googleapis/java-pubsub/commit/e2af6c358ef9e7a0d35179bc4a7c793bbc6a0960)) +* update dependency com.google.cloud:google-cloud-bigquery to v2.14.3 ([#1236](https://github.com/googleapis/java-pubsub/issues/1236)) ([399e8d7](https://github.com/googleapis/java-pubsub/commit/399e8d71d5b4aed2fa48e8cba2dce963d25693e3)) + ## [1.120.10](https://github.com/googleapis/java-pubsub/compare/v1.120.9...v1.120.10) (2022-08-04) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 58b66a6395ca..ce8a080d555f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.11-SNAPSHOT + 1.120.11 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.11-SNAPSHOT + 1.120.11 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.11-SNAPSHOT + 1.102.11 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.11-SNAPSHOT + 1.102.11 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f172033ded17..59e71fa4bcc3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.11-SNAPSHOT + 1.120.11 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.11-SNAPSHOT + 1.120.11 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 54ca8095ea9c..da222034d0b1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.11-SNAPSHOT + 1.102.11 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.11-SNAPSHOT + 1.120.11 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8dde2cee2a1f..6d0307272eee 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.11-SNAPSHOT + 1.120.11 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.11-SNAPSHOT + 1.102.11 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.11-SNAPSHOT + 1.102.11 com.google.cloud google-cloud-pubsub - 1.120.11-SNAPSHOT + 1.120.11 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e626363ffa33..f16cc180552c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.11-SNAPSHOT + 1.102.11 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.11-SNAPSHOT + 1.120.11 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f84c43f716c0..73467da75f74 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.11-SNAPSHOT + 1.120.11 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 973d9b1d41de..bec676d3ebdd 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.10:1.120.11-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.10:1.102.11-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.10:1.102.11-SNAPSHOT +google-cloud-pubsub:1.120.11:1.120.11 +grpc-google-cloud-pubsub-v1:1.102.11:1.102.11 +proto-google-cloud-pubsub-v1:1.102.11:1.102.11 From 6ca9c28361c39b180182dc983e2d7b04b8eb16d1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 6 Aug 2022 04:12:32 +0000 Subject: [PATCH 1137/2363] chore(main): release 1.120.12-SNAPSHOT (#1240) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ce8a080d555f..f4abe601e996 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.11 + 1.120.12-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.11 + 1.120.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.11 + 1.102.12-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.11 + 1.102.12-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 59e71fa4bcc3..2c75e92ff1cd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.11 + 1.120.12-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.11 + 1.120.12-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index da222034d0b1..d84b217e0a65 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.11 + 1.102.12-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.11 + 1.120.12-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6d0307272eee..734c11a82cf9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.11 + 1.120.12-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.11 + 1.102.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.11 + 1.102.12-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.11 + 1.120.12-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f16cc180552c..459e9d9ff77f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.11 + 1.102.12-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.11 + 1.120.12-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 73467da75f74..772925ced630 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.11 + 1.120.12-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index bec676d3ebdd..b5065d9d4aae 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.11:1.120.11 -grpc-google-cloud-pubsub-v1:1.102.11:1.102.11 -proto-google-cloud-pubsub-v1:1.102.11:1.102.11 +google-cloud-pubsub:1.120.11:1.120.12-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.11:1.102.12-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.11:1.102.12-SNAPSHOT From 0533fd9b8c6731fc592fc2f6c54fa81fb74d648e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 8 Aug 2022 17:51:31 +0200 Subject: [PATCH 1138/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.11 (#1241) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.11 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c86b99f2fd99..4129709cba2d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.10 + 1.120.11 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.10' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.11' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.10" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.11" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 45bf18729e7b..20f59f4b042c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.10 + 1.120.11 From 049ff81bdaafede43336274d5d9a951872033043 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Aug 2022 17:56:16 +0200 Subject: [PATCH 1139/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.14.4 (#1242) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 20f59f4b042c..fb331c1cf1dd 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.14.3 + 2.14.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 772925ced630..343299bd07d7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.14.3 + 2.14.4 From 5fcf57d1c4f807246c1365b40cd0280fac7d990d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Aug 2022 17:57:47 +0200 Subject: [PATCH 1140/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.5 (#1243) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fb331c1cf1dd..28ed25b4e9f8 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.4 + 3.21.5 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 343299bd07d7..61619647aac8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.4 + 3.21.5 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index cb4ce9ac33c3..627037afd5c2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.21.4 + 3.21.5 From da509fdbf25bd23ea45b06e7cf4655ed18dd41c7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 18:28:12 +0200 Subject: [PATCH 1141/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.14.6 (#1245) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.14.4` -> `2.14.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.6/compatibility-slim/2.14.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.6/confidence-slim/2.14.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4129709cba2d..fc5626539606 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.0.0') +implementation platform('com.google.cloud:libraries-bom:26.1.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 28ed25b4e9f8..65e6d7e2387b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.14.4 + 2.14.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 61619647aac8..4e39c51a10f2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.14.4 + 2.14.6 From ea0f1cdad0f24c885ddc57067004ef15d002252d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 18:36:18 +0200 Subject: [PATCH 1142/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.0 (#1246) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.0.0` -> `26.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/compatibility-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/confidence-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index fc5626539606..6077fcca4594 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 41b245f27aef..a611108d7342 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 627037afd5c2..648856d834f2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import From a3fb0564ed5583ab7b8bcd199f562686d77a0a13 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 20:44:21 +0200 Subject: [PATCH 1143/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.1 (#1249) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 734c11a82cf9..14e484e7ad38 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.4.0 + 3.4.1 From 29d99d8d906fbacd8f9f5a970ed01ac0d8c0d454 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 15:28:50 +0200 Subject: [PATCH 1144/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.9 (#1250) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.8` -> `2.8.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/compatibility-slim/2.8.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.9/confidence-slim/2.8.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.9`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​289-httpsgithubcomgoogleapisjava-corecomparev288v289-2022-08-16) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.8...v2.8.9) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#​900](https://togithub.com/googleapis/java-core/issues/900)) ([c01b47a](https://togithub.com/googleapis/java-core/commit/c01b47a122a9036f8c594cb583dab3512a257597)) - update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#​901](https://togithub.com/googleapis/java-core/issues/901)) ([13e2fd6](https://togithub.com/googleapis/java-core/commit/13e2fd6fbae1d34385ec500aaf4a2b38e19dd6de)) - update dependency org.threeten:threetenbp to v1.6.1 ([#​902](https://togithub.com/googleapis/java-core/issues/902)) ([02dac62](https://togithub.com/googleapis/java-core/commit/02dac62784a6614291836917b022a32745312157))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 65e6d7e2387b..bee4d36511ab 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.8 + 2.8.9 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4e39c51a10f2..bd45dbac59b0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.8 + 2.8.9 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 648856d834f2..78bb1d0b3cbd 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.8 + 2.8.9 tests From 7dfb45b190c4cc6086dd908dc8de3594ea5f3392 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 15:38:25 +0200 Subject: [PATCH 1145/2363] test(deps): update dependency org.mockito:mockito-core to v4.7.0 (#1247) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.mockito:mockito-core](https://togithub.com/mockito/mockito) | `4.6.1` -> `4.7.0` | [![age](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.7.0/compatibility-slim/4.6.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.7.0/confidence-slim/4.6.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 14e484e7ad38..a3ef27ec0194 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -86,7 +86,7 @@ org.mockito mockito-core - 4.6.1 + 4.7.0 test From ebe5df4a99242080313b29e5fac6bdc187024be9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 18 Aug 2022 13:50:17 +0000 Subject: [PATCH 1146/2363] chore(main): release 1.120.12 (#1244) :robot: I have created a release *beep* *boop* --- ## [1.120.12](https://github.com/googleapis/java-pubsub/compare/v1.120.11...v1.120.12) (2022-08-18) ### Dependencies * update dependency com.google.cloud:google-cloud-bigquery to v2.14.4 ([#1242](https://github.com/googleapis/java-pubsub/issues/1242)) ([049ff81](https://github.com/googleapis/java-pubsub/commit/049ff81bdaafede43336274d5d9a951872033043)) * update dependency com.google.cloud:google-cloud-bigquery to v2.14.6 ([#1245](https://github.com/googleapis/java-pubsub/issues/1245)) ([da509fd](https://github.com/googleapis/java-pubsub/commit/da509fdbf25bd23ea45b06e7cf4655ed18dd41c7)) * update dependency com.google.cloud:google-cloud-core to v2.8.9 ([#1250](https://github.com/googleapis/java-pubsub/issues/1250)) ([29d99d8](https://github.com/googleapis/java-pubsub/commit/29d99d8d906fbacd8f9f5a970ed01ac0d8c0d454)) * update dependency com.google.protobuf:protobuf-java-util to v3.21.5 ([#1243](https://github.com/googleapis/java-pubsub/issues/1243)) ([5fcf57d](https://github.com/googleapis/java-pubsub/commit/5fcf57d1c4f807246c1365b40cd0280fac7d990d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 67b5ae8c74a4..5c22f7742468 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.120.12](https://github.com/googleapis/java-pubsub/compare/v1.120.11...v1.120.12) (2022-08-18) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-bigquery to v2.14.4 ([#1242](https://github.com/googleapis/java-pubsub/issues/1242)) ([08cfe80](https://github.com/googleapis/java-pubsub/commit/08cfe805e71831e040f63755acde17ec45c21418)) +* update dependency com.google.cloud:google-cloud-bigquery to v2.14.6 ([#1245](https://github.com/googleapis/java-pubsub/issues/1245)) ([7f933ee](https://github.com/googleapis/java-pubsub/commit/7f933ee35055c608e9f5b72251583060943a79ea)) +* update dependency com.google.cloud:google-cloud-core to v2.8.9 ([#1250](https://github.com/googleapis/java-pubsub/issues/1250)) ([7c8fd41](https://github.com/googleapis/java-pubsub/commit/7c8fd4183523b876983c89d4b7994746b11964c3)) +* update dependency com.google.protobuf:protobuf-java-util to v3.21.5 ([#1243](https://github.com/googleapis/java-pubsub/issues/1243)) ([37eaff8](https://github.com/googleapis/java-pubsub/commit/37eaff859422bb215ace202ffd0adf8a651dadb5)) + ## [1.120.11](https://github.com/googleapis/java-pubsub/compare/v1.120.10...v1.120.11) (2022-08-06) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f4abe601e996..bfa592b21d40 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.12-SNAPSHOT + 1.120.12 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.12-SNAPSHOT + 1.120.12 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.12-SNAPSHOT + 1.102.12 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.12-SNAPSHOT + 1.102.12
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2c75e92ff1cd..c516b9d146c9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.12-SNAPSHOT + 1.120.12 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.12-SNAPSHOT + 1.120.12 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d84b217e0a65..6445a0641de7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.12-SNAPSHOT + 1.102.12 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.12-SNAPSHOT + 1.120.12 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a3ef27ec0194..b7254ccfed17 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.12-SNAPSHOT + 1.120.12 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.12-SNAPSHOT + 1.102.12 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.12-SNAPSHOT + 1.102.12 com.google.cloud google-cloud-pubsub - 1.120.12-SNAPSHOT + 1.120.12 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 459e9d9ff77f..16123177f6a6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.12-SNAPSHOT + 1.102.12 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.12-SNAPSHOT + 1.120.12 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bd45dbac59b0..5316cc9319aa 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.12-SNAPSHOT + 1.120.12 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b5065d9d4aae..0f169b0b2cad 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.11:1.120.12-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.11:1.102.12-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.11:1.102.12-SNAPSHOT +google-cloud-pubsub:1.120.12:1.120.12 +grpc-google-cloud-pubsub-v1:1.102.12:1.102.12 +proto-google-cloud-pubsub-v1:1.102.12:1.102.12 From a3b0a06a6c8cb9ce29e4964d089a1381e50123b6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 18 Aug 2022 14:16:28 +0000 Subject: [PATCH 1147/2363] chore(main): release 1.120.13-SNAPSHOT (#1251) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index bfa592b21d40..86e36cf90e7d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.12 + 1.120.13-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.12 + 1.120.13-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.12 + 1.102.13-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.12 + 1.102.13-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c516b9d146c9..03d0a7d730e1 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.12 + 1.120.13-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.12 + 1.120.13-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6445a0641de7..85f4f5f05ca1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.12 + 1.102.13-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.12 + 1.120.13-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b7254ccfed17..b0207bbb142f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.12 + 1.120.13-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.12 + 1.102.13-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.12 + 1.102.13-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.12 + 1.120.13-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 16123177f6a6..5a44e6d96925 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.12 + 1.102.13-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.12 + 1.120.13-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5316cc9319aa..5907ab096892 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.12 + 1.120.13-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0f169b0b2cad..aabb8503dbd6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.12:1.120.12 -grpc-google-cloud-pubsub-v1:1.102.12:1.102.12 -proto-google-cloud-pubsub-v1:1.102.12:1.102.12 +google-cloud-pubsub:1.120.12:1.120.13-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.12:1.102.13-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.12:1.102.13-SNAPSHOT From a427f7f5cf90dd97888d30a77fc3320f4fe4f2cd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 18 Aug 2022 16:18:18 +0200 Subject: [PATCH 1148/2363] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.1 (#1248) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b0207bbb142f..2e83a12e5752 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -172,7 +172,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 html From 71a562c2bc3d2c30fbeccc68cabc7b5631486524 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Aug 2022 15:26:26 +0200 Subject: [PATCH 1149/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.12 (#1252) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.11` -> `1.120.12` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.12/compatibility-slim/1.120.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.12/confidence-slim/1.120.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6077fcca4594..e1b68eb43833 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.11 + 1.120.12 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.11' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.12' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.11" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.12" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bee4d36511ab..bbd05c9ecc99 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.11 + 1.120.12 From afe74aa0d93f0879ac2b4d1c46c82e46aa9489f9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 23 Aug 2022 23:49:45 +0200 Subject: [PATCH 1150/2363] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.2.0 (#1253) --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 8c85def85bf4..1a9c39a206c4 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -75,7 +75,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.1.2 + 3.2.0 checkstyle-suppressions.xml From 7444f4beb6cb4998e912e45ef6d15ee240b7b315 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Aug 2022 16:22:35 +0200 Subject: [PATCH 1151/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.14.7 (#1254) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.14.6` -> `2.14.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.7/compatibility-slim/2.14.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.14.7/confidence-slim/2.14.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery ### [`v2.14.7`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2147-httpsgithubcomgoogleapisjava-bigquerycomparev2146v2147-2022-08-23) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.14.6...v2.14.7) ##### Bug Fixes - table-not-found issue with executeSelect while running long queries ([#​2222](https://togithub.com/googleapis/java-bigquery/issues/2222)) ([4876569](https://togithub.com/googleapis/java-bigquery/commit/487656973fe3e06d838c1b495ac024ab2c6810f6))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bbd05c9ecc99..f6e434f6b01d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.14.6 + 2.14.7
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5907ab096892..ebd506027870 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.14.6 + 2.14.7
    From f58d1fbc14f7e47b179ad9aa732e0fc255dd2941 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 24 Aug 2022 14:34:13 +0000 Subject: [PATCH 1152/2363] chore(main): release 1.120.13 (#1255) :robot: I have created a release *beep* *boop* --- ## [1.120.13](https://github.com/googleapis/java-pubsub/compare/v1.120.12...v1.120.13) (2022-08-24) ### Dependencies * update dependency com.google.cloud:google-cloud-bigquery to v2.14.7 ([#1254](https://github.com/googleapis/java-pubsub/issues/1254)) ([7444f4b](https://github.com/googleapis/java-pubsub/commit/7444f4beb6cb4998e912e45ef6d15ee240b7b315)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 5c22f7742468..fdc6f9c0fe06 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.120.13](https://github.com/googleapis/java-pubsub/compare/v1.120.12...v1.120.13) (2022-08-24) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-bigquery to v2.14.7 ([#1254](https://github.com/googleapis/java-pubsub/issues/1254)) ([775c993](https://github.com/googleapis/java-pubsub/commit/775c99353d96bcbc0704626999a7af79cf0e557f)) + ## [1.120.12](https://github.com/googleapis/java-pubsub/compare/v1.120.11...v1.120.12) (2022-08-18) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 86e36cf90e7d..1060031879ad 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.13-SNAPSHOT + 1.120.13 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.13-SNAPSHOT + 1.120.13 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.13-SNAPSHOT + 1.102.13 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.13-SNAPSHOT + 1.102.13
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 03d0a7d730e1..ae14176cc994 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.13-SNAPSHOT + 1.120.13 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.13-SNAPSHOT + 1.120.13 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 85f4f5f05ca1..6cdae945fbbb 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.13-SNAPSHOT + 1.102.13 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.13-SNAPSHOT + 1.120.13 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2e83a12e5752..2ea94ac8c7f6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.13-SNAPSHOT + 1.120.13 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.13-SNAPSHOT + 1.102.13 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.13-SNAPSHOT + 1.102.13 com.google.cloud google-cloud-pubsub - 1.120.13-SNAPSHOT + 1.120.13 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5a44e6d96925..00f50780e995 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.13-SNAPSHOT + 1.102.13 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.13-SNAPSHOT + 1.120.13 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ebd506027870..08d7df85b449 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.13-SNAPSHOT + 1.120.13 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index aabb8503dbd6..a4822d0e4860 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.12:1.120.13-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.12:1.102.13-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.12:1.102.13-SNAPSHOT +google-cloud-pubsub:1.120.13:1.120.13 +grpc-google-cloud-pubsub-v1:1.102.13:1.102.13 +proto-google-cloud-pubsub-v1:1.102.13:1.102.13 From 685dd5ec5d749b8174ebff35fb0f5b0ddc09c4a8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Aug 2022 23:46:11 +0200 Subject: [PATCH 1153/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.13 (#1257) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.12` -> `1.120.13` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.13/compatibility-slim/1.120.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.13/confidence-slim/1.120.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.120.13`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​112013-httpsgithubcomgoogleapisjava-pubsubcomparev112012v112013-2022-08-24) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.120.12...v1.120.13) ##### Dependencies - update dependency com.google.cloud:google-cloud-bigquery to v2.14.7 ([#​1254](https://togithub.com/googleapis/java-pubsub/issues/1254)) ([7444f4b](https://togithub.com/googleapis/java-pubsub/commit/7444f4beb6cb4998e912e45ef6d15ee240b7b315))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e1b68eb43833..1e28a68e1145 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.12 + 1.120.13 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.12' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.13' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.12" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.13" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f6e434f6b01d..6e268f08853b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.12 + 1.120.13 From ddb6857b3e87b5ab6527a39ce2b762372b0c2abc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Aug 2022 17:02:22 +0200 Subject: [PATCH 1154/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.10 (#1258) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.9` -> `2.8.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/compatibility-slim/2.8.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/confidence-slim/2.8.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.10`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2810-httpsgithubcomgoogleapisjava-corecomparev289v2810-2022-08-24) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.9...v2.8.10) ##### Dependencies - update dependency com.google.api:gax-bom to v2.19.0 ([#​907](https://togithub.com/googleapis/java-core/issues/907)) ([51b824c](https://togithub.com/googleapis/java-core/commit/51b824c225fd7095138e1ec2b6d47af4e2a34352)) - update dependency io.grpc:grpc-bom to v1.49.0 ([#​908](https://togithub.com/googleapis/java-core/issues/908)) ([fbccd2d](https://togithub.com/googleapis/java-core/commit/fbccd2daceb0984c7cb95f84f89a116e54bf4ddc))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6e268f08853b..0693de35067c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.9 + 2.8.10 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 08d7df85b449..53954d42efb1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.9 + 2.8.10 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 78bb1d0b3cbd..31e324fd9d12 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.9 + 2.8.10 tests From 5fa49d9caa6c4120fb19a0cd28be3a5bbd2fa907 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 29 Aug 2022 15:36:22 +0200 Subject: [PATCH 1155/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.15.0 (#1259) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.14.7` -> `2.15.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.15.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.15.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.15.0/compatibility-slim/2.14.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.15.0/confidence-slim/2.14.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery ### [`v2.15.0`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2150-httpsgithubcomgoogleapisjava-bigquerycomparev2147v2150-2022-08-25) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.14.7...v2.15.0) ##### Features - add preview support for default values ([#​2244](https://togithub.com/googleapis/java-bigquery/issues/2244)) ([fd3d3c5](https://togithub.com/googleapis/java-bigquery/commit/fd3d3c57afed84b4d00aab438d79472a6afa001b))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0693de35067c..100f56372999 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.14.7 + 2.15.0
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 53954d42efb1..c8b1e480b85e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.14.7 + 2.15.0
    From 30929c11340fc651ba1aeda2e125255ca6fc1631 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 31 Aug 2022 22:40:30 +0200 Subject: [PATCH 1156/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.1 (#1260) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.0` -> `26.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/compatibility-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/confidence-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1e28a68e1145..5c37322b6101 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.0') +implementation platform('com.google.cloud:libraries-bom:26.1.1') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index a611108d7342..8136a6d64a05 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 31e324fd9d12..683c7ef071cb 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import From 5825ca7bd1424509307a6991f3a61f3f102082bb Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Thu, 1 Sep 2022 14:06:21 -0400 Subject: [PATCH 1157/2363] chore: removed outdated clirr-ignored-differences content (#1261) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: removed outdated clirr-ignored-differences content * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../clirr-ignored-differences.xml | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml index 36ec9cb95028..fc73daacd1b9 100644 --- a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml +++ b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml @@ -1,37 +1,4 @@ - - - 7002 - com/google/cloud/pubsub/v1/Subscriber$Builder - com.google.cloud.pubsub.v1.Subscriber$Builder setExactlyOnceDeliveryEnabled(boolean) - - - 7002 - com/google/cloud/pubsub/v1/StreamingSubscriberConnection$Builder - com.google.cloud.pubsub.v1.StreamingSubscriberConnection$Builder setExactlyOnceDeliveryEnabled(boolean) - - - 7002 - com/google/cloud/pubsub/v1/MessageDispatcher$Builder - com.google.cloud.pubsub.v1.MessageDispatcher$Builder setEnableExactlyOnceDelivery(boolean) - - - - - 7006 - com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse - *ack() - com.google.api.core.ApiFuture - Updating return types to be consistent with Publish - - - - 7006 - com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl - *ack() - com.google.api.core.ApiFuture - Updating return types to be consistent with Publish - From 4301bb6943a7690819b165079416d3dcf9d78409 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 05:44:43 +0200 Subject: [PATCH 1158/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 (#1265) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.1` -> `3.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v3.0.2`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​302-httpsgithubcomgoogleapisjava-shared-dependenciescomparev301v302-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.1...v3.0.2) ##### Dependencies - Update dependency com.fasterxml.jackson:jackson-bom to v2.13.4 ([#​789](https://togithub.com/googleapis/java-shared-dependencies/issues/789)) ([6cf91a9](https://togithub.com/googleapis/java-shared-dependencies/commit/6cf91a96b9ea6af0fb845b50582dac7aa2892cab)) - Update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#​781](https://togithub.com/googleapis/java-shared-dependencies/issues/781)) ([8859e61](https://togithub.com/googleapis/java-shared-dependencies/commit/8859e61808bfc5cd9546e27e945fc855b36d2554)) - Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#​790](https://togithub.com/googleapis/java-shared-dependencies/issues/790)) ([3431a47](https://togithub.com/googleapis/java-shared-dependencies/commit/3431a471cbf874a67a4f1a42e31f0ed891dedc92)) - Update dependency com.google.auth:google-auth-library-bom to v1.9.0 ([#​773](https://togithub.com/googleapis/java-shared-dependencies/issues/773)) ([27fc79f](https://togithub.com/googleapis/java-shared-dependencies/commit/27fc79f00ee70011df6a368bb8fcfad7f0ce41f0)) - Update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#​776](https://togithub.com/googleapis/java-shared-dependencies/issues/776)) ([bf333b8](https://togithub.com/googleapis/java-shared-dependencies/commit/bf333b8c88072d21cb959db4d3328bbb55d9ef5c)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#​780](https://togithub.com/googleapis/java-shared-dependencies/issues/780)) ([da7f44d](https://togithub.com/googleapis/java-shared-dependencies/commit/da7f44d71d6d7f372b5313dab68ce220308614d4)) - Update dependency io.grpc:grpc-bom to v1.48.1 ([#​768](https://togithub.com/googleapis/java-shared-dependencies/issues/768)) ([5c7768d](https://togithub.com/googleapis/java-shared-dependencies/commit/5c7768d3c9665dd356de6c39c0a6a5fa6e992f2e)) - Update dependency io.grpc:grpc-bom to v1.49.0 ([#​786](https://togithub.com/googleapis/java-shared-dependencies/issues/786)) ([8734812](https://togithub.com/googleapis/java-shared-dependencies/commit/8734812f1b4e2faaa48caf41eff59a85892ae344)) - Update dependency org.checkerframework:checker-qual to v3.24.0 ([#​775](https://togithub.com/googleapis/java-shared-dependencies/issues/775)) ([df74b7b](https://togithub.com/googleapis/java-shared-dependencies/commit/df74b7b0dd5dd592523f302d9fb36adb5991cb0b)) - Update dependency org.checkerframework:checker-qual to v3.25.0 ([#​788](https://togithub.com/googleapis/java-shared-dependencies/issues/788)) ([207035b](https://togithub.com/googleapis/java-shared-dependencies/commit/207035bd04c9305899eea540acbefaf06a7b1ec9)) - Update dependency org.threeten:threetenbp to v1.6.1 ([#​782](https://togithub.com/googleapis/java-shared-dependencies/issues/782)) ([0f218ae](https://togithub.com/googleapis/java-shared-dependencies/commit/0f218aeb6aa33cf1da4a8b1d6c82bbf87946dab9)) - Update gax.version to v2.19.0 ([#​785](https://togithub.com/googleapis/java-shared-dependencies/issues/785)) ([4448331](https://togithub.com/googleapis/java-shared-dependencies/commit/4448331c4c6d88ea8076260776d1d47d24aa19fa)) - Update google.core.version to v2.8.10 ([#​787](https://togithub.com/googleapis/java-shared-dependencies/issues/787)) ([3c344d5](https://togithub.com/googleapis/java-shared-dependencies/commit/3c344d515e3b9215db5a1f8ef550d800d974e558)) - Update google.core.version to v2.8.7 ([#​774](https://togithub.com/googleapis/java-shared-dependencies/issues/774)) ([d0cd5e8](https://togithub.com/googleapis/java-shared-dependencies/commit/d0cd5e8f6ca88787fe0dbf7f30c849cb4c4fae5e)) - Update google.core.version to v2.8.8 ([#​777](https://togithub.com/googleapis/java-shared-dependencies/issues/777)) ([f00571c](https://togithub.com/googleapis/java-shared-dependencies/commit/f00571cd1e9f1c4e011fba4a1e1674c1d8d60200)) - Update google.core.version to v2.8.9 ([#​784](https://togithub.com/googleapis/java-shared-dependencies/issues/784)) ([aa8e505](https://togithub.com/googleapis/java-shared-dependencies/commit/aa8e505dbb1214b2239e55d5ac83b00c167d77e4))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2ea94ac8c7f6..c688dca11d7a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.1 + 3.0.2 pom import From 4a96607e3415498292933dfffb879f1f040ae6c8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 05:56:16 +0200 Subject: [PATCH 1159/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.11 (#1264) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.10` -> `2.8.11` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/compatibility-slim/2.8.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.11/confidence-slim/2.8.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.11`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2811-httpsgithubcomgoogleapisjava-corecomparev2810v2811-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.10...v2.8.11) ##### Dependencies - Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#​911](https://togithub.com/googleapis/java-core/issues/911)) ([4656905](https://togithub.com/googleapis/java-core/commit/4656905956504e4bc4fe224d1f8cd70bbab614d8))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 100f56372999..6859dc07655a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.10 + 2.8.11 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c8b1e480b85e..2bd43542a1a9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.10 + 2.8.11 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 683c7ef071cb..93263b5bdcc3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.10 + 2.8.11 tests From 84e0e5318ef94c62878d7fe10000e350100c20eb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 15:04:13 +0000 Subject: [PATCH 1160/2363] chore(main): release 1.120.14-SNAPSHOT (#1256) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1060031879ad..7e85bdb7f2e6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.13 + 1.120.14-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.13 + 1.120.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.13 + 1.102.14-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.13 + 1.102.14-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ae14176cc994..96cfe1ef0d0e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.13 + 1.120.14-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.13 + 1.120.14-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6cdae945fbbb..9c468525542f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.13 + 1.102.14-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.13 + 1.120.14-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c688dca11d7a..dbc2c94f1316 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.13 + 1.120.14-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.13 + 1.102.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.13 + 1.102.14-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.13 + 1.120.14-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 00f50780e995..d36d047f5119 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.13 + 1.102.14-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.13 + 1.120.14-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2bd43542a1a9..ed916d9011db 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.13 + 1.120.14-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a4822d0e4860..436274a09f13 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.13:1.120.13 -grpc-google-cloud-pubsub-v1:1.102.13:1.102.13 -proto-google-cloud-pubsub-v1:1.102.13:1.102.13 +google-cloud-pubsub:1.120.13:1.120.14-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.13:1.102.14-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.13:1.102.14-SNAPSHOT From 14c9499a52d66d4f0f3c8e88166d98a6fa49df35 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 20:04:19 +0200 Subject: [PATCH 1161/2363] test(deps): update dependency org.mockito:mockito-core to v4.8.0 (#1263) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.mockito:mockito-core](https://togithub.com/mockito/mockito) | `4.7.0` -> `4.8.0` | [![age](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.8.0/compatibility-slim/4.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.8.0/confidence-slim/4.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    mockito/mockito ### [`v4.8.0`](https://togithub.com/mockito/mockito/releases/tag/v4.8.0) *Changelog generated by [Shipkit Changelog Gradle Plugin](https://togithub.com/shipkit/shipkit-changelog)* ##### 4.8.0 - 2022-09-07 - [10 commit(s)](https://togithub.com/mockito/mockito/compare/v4.7.0...v4.8.0) by Alex, James Baker, Johannes Spangenberg, Kurt Alfred Kluever, Rafael Winterhalter, Thibault Helsmoortel, dependabot\[bot] - GitHub Workflows security hardening [(#​2744)](https://togithub.com/mockito/mockito/pull/2744) - Assign GlobalConfiguration initializer to unused variable [(#​2742)](https://togithub.com/mockito/mockito/pull/2742) - Bump com.diffplug.spotless from 6.9.1 to 6.10.0 [(#​2738)](https://togithub.com/mockito/mockito/pull/2738) - Drop varargs collector before invoking a user method. [(#​2736)](https://togithub.com/mockito/mockito/pull/2736) - Bump versions.bytebuddy from 1.12.13 to 1.12.14 [(#​2734)](https://togithub.com/mockito/mockito/pull/2734) - Remove useless thrown exception from constructor [(#​2732)](https://togithub.com/mockito/mockito/pull/2732) - TypeSafeMatching no longer iterates over class methods inefficiently [(#​2729)](https://togithub.com/mockito/mockito/pull/2729) - Fixes [#​2720](https://togithub.com/mockito/mockito/issues/2720): Use StackWalker on Java 9+ to create Locations [(#​2723)](https://togithub.com/mockito/mockito/pull/2723) - LocationImpl adds performance overheads due to instantiating a stack trace [(#​2720)](https://togithub.com/mockito/mockito/issues/2720) - Fixes [#​2626](https://togithub.com/mockito/mockito/issues/2626) : Introduce MockSettings.mockMaker [(#​2701)](https://togithub.com/mockito/mockito/pull/2701) - Introduce option to disable inline-mock-maker for a specific instance [(#​2626)](https://togithub.com/mockito/mockito/issues/2626)
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index dbc2c94f1316..99a532f9ce24 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -86,7 +86,7 @@ org.mockito mockito-core - 4.7.0 + 4.8.0 test From af06fcd9d0c03b8c96826f67d9b07cfee65fe45a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 10 Sep 2022 02:08:14 +0000 Subject: [PATCH 1162/2363] chore: Generated snippets should not be owned by samples reviewers (#1575) (#1268) Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 --- java-pubsub/.github/.OwlBot.lock.yaml | 3 +-- java-pubsub/.github/CODEOWNERS | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index f8b912ad0de0..6259292301cb 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:b47e411068ffc6e6990cb4e0802fbac9a4488dec7f5f424553518ba21abea208 -# created: 2022-07-26T16:25:31.033836225Z + digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS index 04d88604a8f0..125a152c83ac 100644 --- a/java-pubsub/.github/CODEOWNERS +++ b/java-pubsub/.github/CODEOWNERS @@ -13,3 +13,6 @@ # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers + +# Generated snippets should not be owned by samples reviewers +samples/snippets/generated/ @googleapis/yoshi-java From e3ecb33c30f21199f5e367a9adb7391e47085074 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 10 Sep 2022 02:20:16 +0000 Subject: [PATCH 1163/2363] chore(main): release 1.120.14 (#1267) :robot: I have created a release *beep* *boop* --- ## [1.120.14](https://github.com/googleapis/java-pubsub/compare/v1.120.13...v1.120.14) (2022-09-10) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.15.0 ([#1259](https://github.com/googleapis/java-pubsub/issues/1259)) ([5fa49d9](https://github.com/googleapis/java-pubsub/commit/5fa49d9caa6c4120fb19a0cd28be3a5bbd2fa907)) * Update dependency com.google.cloud:google-cloud-core to v2.8.10 ([#1258](https://github.com/googleapis/java-pubsub/issues/1258)) ([ddb6857](https://github.com/googleapis/java-pubsub/commit/ddb6857b3e87b5ab6527a39ce2b762372b0c2abc)) * Update dependency com.google.cloud:google-cloud-core to v2.8.11 ([#1264](https://github.com/googleapis/java-pubsub/issues/1264)) ([4a96607](https://github.com/googleapis/java-pubsub/commit/4a96607e3415498292933dfffb879f1f040ae6c8)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#1265](https://github.com/googleapis/java-pubsub/issues/1265)) ([4301bb6](https://github.com/googleapis/java-pubsub/commit/4301bb6943a7690819b165079416d3dcf9d78409)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index fdc6f9c0fe06..912716f67572 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.120.14](https://github.com/googleapis/java-pubsub/compare/v1.120.13...v1.120.14) (2022-09-10) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.15.0 ([#1259](https://github.com/googleapis/java-pubsub/issues/1259)) ([257cb8f](https://github.com/googleapis/java-pubsub/commit/257cb8f1b38a885dc4c8fb473a79fee1f01a2b57)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.10 ([#1258](https://github.com/googleapis/java-pubsub/issues/1258)) ([37e0034](https://github.com/googleapis/java-pubsub/commit/37e0034660855fc327d3843f8aa78bcda03fe158)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.11 ([#1264](https://github.com/googleapis/java-pubsub/issues/1264)) ([a19bc7a](https://github.com/googleapis/java-pubsub/commit/a19bc7a6bd54a9223575c23df1cac7b2583eb61a)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#1265](https://github.com/googleapis/java-pubsub/issues/1265)) ([52da9da](https://github.com/googleapis/java-pubsub/commit/52da9dae19399e03af8d20c0c29aa600b7e31ed3)) + ## [1.120.13](https://github.com/googleapis/java-pubsub/compare/v1.120.12...v1.120.13) (2022-08-24) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7e85bdb7f2e6..6a7db412729d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.14-SNAPSHOT + 1.120.14 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.14-SNAPSHOT + 1.120.14 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.14-SNAPSHOT + 1.102.14 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.14-SNAPSHOT + 1.102.14
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 96cfe1ef0d0e..9f73caf53a5c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.14-SNAPSHOT + 1.120.14 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.14-SNAPSHOT + 1.120.14 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9c468525542f..d86e016bffcc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.14-SNAPSHOT + 1.102.14 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.14-SNAPSHOT + 1.120.14 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 99a532f9ce24..0b48a05d5377 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.14-SNAPSHOT + 1.120.14 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.14-SNAPSHOT + 1.102.14 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.14-SNAPSHOT + 1.102.14 com.google.cloud google-cloud-pubsub - 1.120.14-SNAPSHOT + 1.120.14 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d36d047f5119..5ec59c8977c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.14-SNAPSHOT + 1.102.14 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.14-SNAPSHOT + 1.120.14 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ed916d9011db..8dda6da9d47c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.14-SNAPSHOT + 1.120.14 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 436274a09f13..ae02763e4d57 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.13:1.120.14-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.13:1.102.14-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.13:1.102.14-SNAPSHOT +google-cloud-pubsub:1.120.14:1.120.14 +grpc-google-cloud-pubsub-v1:1.102.14:1.102.14 +proto-google-cloud-pubsub-v1:1.102.14:1.102.14 From c543f91ea4b25ee5bd8bef0acfcdb82a24878342 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 10 Sep 2022 02:30:17 +0000 Subject: [PATCH 1164/2363] chore(main): release 1.120.15-SNAPSHOT (#1269) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6a7db412729d..10cbbd155129 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.14 + 1.120.15-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.14 + 1.120.15-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.14 + 1.102.15-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.14 + 1.102.15-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9f73caf53a5c..73a90f71aa50 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.14 + 1.120.15-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.14 + 1.120.15-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d86e016bffcc..1b35fa1b57ff 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.14 + 1.102.15-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.14 + 1.120.15-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0b48a05d5377..f484203b43f9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.14 + 1.120.15-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.14 + 1.102.15-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.14 + 1.102.15-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.14 + 1.120.15-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5ec59c8977c6..a7b4d83f8300 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.14 + 1.102.15-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.14 + 1.120.15-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8dda6da9d47c..ae368c862a08 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.14 + 1.120.15-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ae02763e4d57..57e83f7d80a6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.14:1.120.14 -grpc-google-cloud-pubsub-v1:1.102.14:1.102.14 -proto-google-cloud-pubsub-v1:1.102.14:1.102.14 +google-cloud-pubsub:1.120.14:1.120.15-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.14:1.102.15-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.14:1.102.15-SNAPSHOT From db59eeba4d04fb29c6dc0a5ec33287ea7df89c07 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 10 Sep 2022 22:32:31 +0200 Subject: [PATCH 1165/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.14 (#1270) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.13` -> `1.120.14` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.14/compatibility-slim/1.120.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.14/confidence-slim/1.120.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5c37322b6101..cef62646e8b1 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.13 + 1.120.14 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.13' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.14' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.13" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.14" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6859dc07655a..cf66eaf6fcf8 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.13 + 1.120.14 From d8b62b48e723e4d548f1617616c5a425ec53e9c6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 13 Sep 2022 19:50:26 +0200 Subject: [PATCH 1166/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.16.0 (#1271) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.15.0` -> `2.16.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.16.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.16.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.16.0/compatibility-slim/2.15.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.16.0/confidence-slim/2.15.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery ### [`v2.16.0`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2160-httpsgithubcomgoogleapisjava-bigquerycomparev2150v2160-2022-09-12) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.15.0...v2.16.0) ##### Features - Add preserveAsciiControlCharacters to CsvOptions ([#​2143](https://togithub.com/googleapis/java-bigquery/issues/2143)) ([856893f](https://togithub.com/googleapis/java-bigquery/commit/856893f4d8f1b419365d8f179ce9f9e571dec718)) - Add reference file schema option for federated formats ([#​2269](https://togithub.com/googleapis/java-bigquery/issues/2269)) ([8c488e6](https://togithub.com/googleapis/java-bigquery/commit/8c488e64259bd67716342f48f96d2932c5e57c3e)) ##### Bug Fixes - Socket-timeout at bigquery.it.ITNightlyBigQueryTest: testForTableNotFound ([#​2260](https://togithub.com/googleapis/java-bigquery/issues/2260)) ([a9b5fb2](https://togithub.com/googleapis/java-bigquery/commit/a9b5fb2c1078788ddb1ac3169c9ce597af228ac0)) ##### Dependencies - Update dependency com.google.apis:google-api-services-bigquery to v2-rev20220827-2.0.0 ([#​2261](https://togithub.com/googleapis/java-bigquery/issues/2261)) ([3c67d21](https://togithub.com/googleapis/java-bigquery/commit/3c67d21c10f66b3c5313a1733f4e81db42c1b7c3)) - Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.9.3 ([#​2259](https://togithub.com/googleapis/java-bigquery/issues/2259)) ([5e30a04](https://togithub.com/googleapis/java-bigquery/commit/5e30a04e5b14b03e60e587787180b27f605d6abd)) - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#​2267](https://togithub.com/googleapis/java-bigquery/issues/2267)) ([8472fe5](https://togithub.com/googleapis/java-bigquery/commit/8472fe580a8197aaa3957dd3231fed0a9511fbb5))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index cf66eaf6fcf8..3ebff3df91cf 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.15.0 + 2.16.0
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ae368c862a08..44015b18cfa4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.15.0 + 2.16.0
    From 69ad89ea948426dc56a7babbe5df5b99b63517e7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 13 Sep 2022 18:38:14 +0000 Subject: [PATCH 1167/2363] chore(main): release 1.120.15 (#1273) :robot: I have created a release *beep* *boop* --- ## [1.120.15](https://github.com/googleapis/java-pubsub/compare/v1.120.14...v1.120.15) (2022-09-13) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.16.0 ([#1271](https://github.com/googleapis/java-pubsub/issues/1271)) ([d8b62b4](https://github.com/googleapis/java-pubsub/commit/d8b62b48e723e4d548f1617616c5a425ec53e9c6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 912716f67572..2fa69adff358 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.120.15](https://github.com/googleapis/java-pubsub/compare/v1.120.14...v1.120.15) (2022-09-13) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.16.0 ([#1271](https://github.com/googleapis/java-pubsub/issues/1271)) ([439215a](https://github.com/googleapis/java-pubsub/commit/439215aaee1572859d323139c7a86e086a331486)) + ## [1.120.14](https://github.com/googleapis/java-pubsub/compare/v1.120.13...v1.120.14) (2022-09-10) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 10cbbd155129..1515970559eb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.15-SNAPSHOT + 1.120.15 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.15-SNAPSHOT + 1.120.15 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.15-SNAPSHOT + 1.102.15 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.15-SNAPSHOT + 1.102.15
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 73a90f71aa50..c672a32ad75d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.15-SNAPSHOT + 1.120.15 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.15-SNAPSHOT + 1.120.15 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1b35fa1b57ff..b520ffa4713e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.15-SNAPSHOT + 1.102.15 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.15-SNAPSHOT + 1.120.15 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f484203b43f9..1d6db6156944 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.15-SNAPSHOT + 1.120.15 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.15-SNAPSHOT + 1.102.15 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.15-SNAPSHOT + 1.102.15 com.google.cloud google-cloud-pubsub - 1.120.15-SNAPSHOT + 1.120.15 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a7b4d83f8300..5699bde42ece 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.15-SNAPSHOT + 1.102.15 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.15-SNAPSHOT + 1.120.15 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 44015b18cfa4..435e047b292b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.15-SNAPSHOT + 1.120.15 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 57e83f7d80a6..95ccf00127d9 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.14:1.120.15-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.14:1.102.15-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.14:1.102.15-SNAPSHOT +google-cloud-pubsub:1.120.15:1.120.15 +grpc-google-cloud-pubsub-v1:1.102.15:1.102.15 +proto-google-cloud-pubsub-v1:1.102.15:1.102.15 From 5dfef8d09d87599cc9059f00ea6a80e754e7cfad Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 13 Sep 2022 18:56:18 +0000 Subject: [PATCH 1168/2363] chore(main): release 1.120.16-SNAPSHOT (#1274) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1515970559eb..ae8034aa8b73 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.15 + 1.120.16-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.15 + 1.120.16-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.15 + 1.102.16-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.15 + 1.102.16-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c672a32ad75d..c5b46769155b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.15 + 1.120.16-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.15 + 1.120.16-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b520ffa4713e..ef6025e27547 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.15 + 1.102.16-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.15 + 1.120.16-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1d6db6156944..10cd7857c5ab 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.15 + 1.120.16-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.15 + 1.102.16-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.15 + 1.102.16-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.15 + 1.120.16-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5699bde42ece..bb5551f0db52 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.15 + 1.102.16-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.15 + 1.120.16-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 435e047b292b..799082875471 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.15 + 1.120.16-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 95ccf00127d9..43a418e5ad30 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.15:1.120.15 -grpc-google-cloud-pubsub-v1:1.102.15:1.102.15 -proto-google-cloud-pubsub-v1:1.102.15:1.102.15 +google-cloud-pubsub:1.120.15:1.120.16-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.15:1.102.16-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.15:1.102.16-SNAPSHOT From 1837071402ac621990ba78e27e62f54149d2831e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 15 Sep 2022 14:16:34 +0200 Subject: [PATCH 1169/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#1279) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/compatibility-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/confidence-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index cef62646e8b1..be86616757e3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.14' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.15' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.14" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.15" ``` ## Authentication diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 10cd7857c5ab..344a3f08fa06 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.2 + 3.0.3 pom import From 0d3692cf09f2073422d1ac10fe7880713acc5d89 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 Sep 2022 11:40:57 -0400 Subject: [PATCH 1170/2363] chore(main): release 1.120.16 (#1280) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 2fa69adff358..0fa0ae05e842 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.120.16](https://github.com/googleapis/java-pubsub/compare/v1.120.15...v1.120.16) (2022-09-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#1279](https://github.com/googleapis/java-pubsub/issues/1279)) ([654ea40](https://github.com/googleapis/java-pubsub/commit/654ea400f5df0b2544f4b668e1f5ee72f3ea54d2)) + ## [1.120.15](https://github.com/googleapis/java-pubsub/compare/v1.120.14...v1.120.15) (2022-09-13) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ae8034aa8b73..634b882704f5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.16-SNAPSHOT + 1.120.16 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.16-SNAPSHOT + 1.120.16 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.16-SNAPSHOT + 1.102.16 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.16-SNAPSHOT + 1.102.16 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c5b46769155b..ea5197b7c70d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.16-SNAPSHOT + 1.120.16 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.16-SNAPSHOT + 1.120.16 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ef6025e27547..dfa6a8adee6f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.16-SNAPSHOT + 1.102.16 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.16-SNAPSHOT + 1.120.16 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 344a3f08fa06..05e99c9ec51c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.16-SNAPSHOT + 1.120.16 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.16-SNAPSHOT + 1.102.16 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.16-SNAPSHOT + 1.102.16 com.google.cloud google-cloud-pubsub - 1.120.16-SNAPSHOT + 1.120.16 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index bb5551f0db52..48bfc725c90b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.16-SNAPSHOT + 1.102.16 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.16-SNAPSHOT + 1.120.16 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 799082875471..54cd325b600a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.16-SNAPSHOT + 1.120.16 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 43a418e5ad30..8260def29962 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.15:1.120.16-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.15:1.102.16-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.15:1.102.16-SNAPSHOT +google-cloud-pubsub:1.120.16:1.120.16 +grpc-google-cloud-pubsub-v1:1.102.16:1.102.16 +proto-google-cloud-pubsub-v1:1.102.16:1.102.16 From 0f5ed5726a0c734625148fc0e95ee3d8a6e035c3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 Sep 2022 15:52:15 +0000 Subject: [PATCH 1171/2363] chore(main): release 1.120.17-SNAPSHOT (#1282) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 634b882704f5..5b9780760153 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.16 + 1.120.17-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.16 + 1.120.17-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.16 + 1.102.17-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.16 + 1.102.17-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ea5197b7c70d..fba43686ef35 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.16 + 1.120.17-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.16 + 1.120.17-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index dfa6a8adee6f..23e09bf5f081 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.16 + 1.102.17-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.16 + 1.120.17-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 05e99c9ec51c..0805351bcf83 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.16 + 1.120.17-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.16 + 1.102.17-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.16 + 1.102.17-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.16 + 1.120.17-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 48bfc725c90b..4da0569ba866 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.16 + 1.102.17-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.16 + 1.120.17-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 54cd325b600a..6c0e4ec90417 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.16 + 1.120.17-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8260def29962..19efc52fd7de 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.16:1.120.16 -grpc-google-cloud-pubsub-v1:1.102.16:1.102.16 -proto-google-cloud-pubsub-v1:1.102.16:1.102.16 +google-cloud-pubsub:1.120.16:1.120.17-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.16:1.102.17-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.16:1.102.17-SNAPSHOT From f1bf086f5876994a5b2870b5d1885c3f0a54a48f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Sep 2022 20:28:31 +0200 Subject: [PATCH 1172/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.2 (#1284) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index be86616757e3..13b82a8d895c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import @@ -51,20 +51,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.1') +implementation platform('com.google.cloud:libraries-bom:26.1.2') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.15' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.16' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.15" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.16" ``` ## Authentication diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 8136a6d64a05..4c3e52757279 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 93263b5bdcc3..750a63c53856 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import From b3a7849bae8096aab99ec715b01996ddb0c0cfab Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Sep 2022 20:29:11 +0200 Subject: [PATCH 1173/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.16.1 (#1281) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3ebff3df91cf..4fa24b6184e2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.16.0 + 2.16.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6c0e4ec90417..0e07a2bdea8e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.16.0 + 2.16.1 From 1fb826801636f70b34685bf2172e3a2764377bc4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 16:40:36 +0200 Subject: [PATCH 1174/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.16 (#1275) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.14` -> `1.120.16` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.16/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.16/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.16/compatibility-slim/1.120.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.16/confidence-slim/1.120.14)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.120.16`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​112016-httpsgithubcomgoogleapisjava-pubsubcomparev112015v112016-2022-09-15) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.120.15...v1.120.16) ##### Dependencies - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#​1279](https://togithub.com/googleapis/java-pubsub/issues/1279)) ([1837071](https://togithub.com/googleapis/java-pubsub/commit/1837071402ac621990ba78e27e62f54149d2831e)) ### [`v1.120.15`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​112015-httpsgithubcomgoogleapisjava-pubsubcomparev112014v112015-2022-09-13) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.120.14...v1.120.15) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.16.0 ([#​1271](https://togithub.com/googleapis/java-pubsub/issues/1271)) ([d8b62b4](https://togithub.com/googleapis/java-pubsub/commit/d8b62b48e723e4d548f1617616c5a425ec53e9c6))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 13b82a8d895c..adbfbb9cb0ca 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.14 + 1.120.16 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4fa24b6184e2..df70403c6d23 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.14 + 1.120.16 From bd7b93752bb2237a384db5b0250c6de99e377ded Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 16:48:35 +0200 Subject: [PATCH 1175/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.12 (#1278) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.8.12 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com> --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index df70403c6d23..46f1d1dc9020 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.11 + 2.8.12 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0e07a2bdea8e..09ef1d04ae25 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.11 + 2.8.12 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 750a63c53856..340b2a6f28ba 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.11 + 2.8.12 tests From e98620f117026269b722ebd5742f8dbb6df65076 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 16:49:01 +0200 Subject: [PATCH 1176/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.6 (#1277) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com> --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 46f1d1dc9020..1dd6d7c63a70 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.5 + 3.21.6 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 09ef1d04ae25..0268d7a90ff5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.5 + 3.21.6 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 340b2a6f28ba..3f7cf469d82d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.21.5 + 3.21.6 From 959843e274dfa3e77e8802fed66d2b0bb05c943e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 20 Sep 2022 15:02:23 +0000 Subject: [PATCH 1177/2363] chore(main): release 1.120.17 (#1285) :robot: I have created a release *beep* *boop* --- ## [1.120.17](https://github.com/googleapis/java-pubsub/compare/v1.120.16...v1.120.17) (2022-09-20) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.16.1 ([#1281](https://github.com/googleapis/java-pubsub/issues/1281)) ([b3a7849](https://github.com/googleapis/java-pubsub/commit/b3a7849bae8096aab99ec715b01996ddb0c0cfab)) * Update dependency com.google.cloud:google-cloud-core to v2.8.12 ([#1278](https://github.com/googleapis/java-pubsub/issues/1278)) ([bd7b937](https://github.com/googleapis/java-pubsub/commit/bd7b93752bb2237a384db5b0250c6de99e377ded)) * Update dependency com.google.protobuf:protobuf-java-util to v3.21.6 ([#1277](https://github.com/googleapis/java-pubsub/issues/1277)) ([e98620f](https://github.com/googleapis/java-pubsub/commit/e98620f117026269b722ebd5742f8dbb6df65076)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 0fa0ae05e842..2a71e460983a 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.120.17](https://github.com/googleapis/java-pubsub/compare/v1.120.16...v1.120.17) (2022-09-20) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.16.1 ([#1281](https://github.com/googleapis/java-pubsub/issues/1281)) ([aca8ee9](https://github.com/googleapis/java-pubsub/commit/aca8ee98dc74ecc53045f7b84326d85406163338)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.12 ([#1278](https://github.com/googleapis/java-pubsub/issues/1278)) ([4ae1156](https://github.com/googleapis/java-pubsub/commit/4ae115666ba195dca90171a7e1ff81bb6cfcf123)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.21.6 ([#1277](https://github.com/googleapis/java-pubsub/issues/1277)) ([a5aa281](https://github.com/googleapis/java-pubsub/commit/a5aa281787b7a92516ebcc7654d419d9cbd5abc3)) + ## [1.120.16](https://github.com/googleapis/java-pubsub/compare/v1.120.15...v1.120.16) (2022-09-15) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5b9780760153..2da01730b32e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.17-SNAPSHOT + 1.120.17 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.17-SNAPSHOT + 1.120.17 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.17-SNAPSHOT + 1.102.17 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.17-SNAPSHOT + 1.102.17
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index fba43686ef35..72d3c05884bb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.17-SNAPSHOT + 1.120.17 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.17-SNAPSHOT + 1.120.17 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 23e09bf5f081..36389c96bedc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.17-SNAPSHOT + 1.102.17 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.17-SNAPSHOT + 1.120.17 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0805351bcf83..6d50f0407d25 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.17-SNAPSHOT + 1.120.17 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.17-SNAPSHOT + 1.102.17 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.17-SNAPSHOT + 1.102.17 com.google.cloud google-cloud-pubsub - 1.120.17-SNAPSHOT + 1.120.17 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4da0569ba866..100aa8436c5b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.17-SNAPSHOT + 1.102.17 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.17-SNAPSHOT + 1.120.17 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0268d7a90ff5..97b176f1abd3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.17-SNAPSHOT + 1.120.17 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 19efc52fd7de..c9ca0779f0d6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.16:1.120.17-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.16:1.102.17-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.16:1.102.17-SNAPSHOT +google-cloud-pubsub:1.120.17:1.120.17 +grpc-google-cloud-pubsub-v1:1.102.17:1.102.17 +proto-google-cloud-pubsub-v1:1.102.17:1.102.17 From 531ecf4e009c27c42fa7bc3284b10dcd0ac8a4b9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 20 Sep 2022 15:20:56 +0000 Subject: [PATCH 1178/2363] chore(main): release 1.120.18-SNAPSHOT (#1286) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2da01730b32e..3e952f81f9cf 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.17 + 1.120.18-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.17 + 1.120.18-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.17 + 1.102.18-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.17 + 1.102.18-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 72d3c05884bb..d2a354755eab 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.17 + 1.120.18-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.17 + 1.120.18-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 36389c96bedc..7fefca759793 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.17 + 1.102.18-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.17 + 1.120.18-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6d50f0407d25..ee502d9c1c9b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.17 + 1.120.18-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.17 + 1.102.18-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.17 + 1.102.18-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.17 + 1.120.18-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 100aa8436c5b..a89decfb2c39 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.17 + 1.102.18-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.17 + 1.120.18-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 97b176f1abd3..3eee07cb429e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.17 + 1.120.18-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c9ca0779f0d6..e3947a90ae64 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.17:1.120.17 -grpc-google-cloud-pubsub-v1:1.102.17:1.102.17 -proto-google-cloud-pubsub-v1:1.102.17:1.102.17 +google-cloud-pubsub:1.120.17:1.120.18-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.17:1.102.18-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.17:1.102.18-SNAPSHOT From 1fc7d09b661031343e05f75eb455dc65a80e2ee5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 22:04:18 +0200 Subject: [PATCH 1179/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.17 (#1287) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.16` -> `1.120.17` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.17/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.17/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.17/compatibility-slim/1.120.16)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.17/confidence-slim/1.120.16)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.120.17`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​112017-httpsgithubcomgoogleapisjava-pubsubcomparev112016v112017-2022-09-20) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.120.16...v1.120.17) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.16.1 ([#​1281](https://togithub.com/googleapis/java-pubsub/issues/1281)) ([b3a7849](https://togithub.com/googleapis/java-pubsub/commit/b3a7849bae8096aab99ec715b01996ddb0c0cfab)) - Update dependency com.google.cloud:google-cloud-core to v2.8.12 ([#​1278](https://togithub.com/googleapis/java-pubsub/issues/1278)) ([bd7b937](https://togithub.com/googleapis/java-pubsub/commit/bd7b93752bb2237a384db5b0250c6de99e377ded)) - Update dependency com.google.protobuf:protobuf-java-util to v3.21.6 ([#​1277](https://togithub.com/googleapis/java-pubsub/issues/1277)) ([e98620f](https://togithub.com/googleapis/java-pubsub/commit/e98620f117026269b722ebd5742f8dbb6df65076))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index adbfbb9cb0ca..86b19b67d6be 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.16 + 1.120.17 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.16' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.17' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.16" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.17" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1dd6d7c63a70..c0ac55ccb8ac 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.16 + 1.120.17 From 118c55e78adc371a24d535d9c02096d25418f292 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 22:10:37 +0200 Subject: [PATCH 1180/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.13 (#1288) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.12` -> `2.8.13` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/compatibility-slim/2.8.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.13/confidence-slim/2.8.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c0ac55ccb8ac..c78f4a8a5d79 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.12 + 2.8.13 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3eee07cb429e..459413e2f124 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.12 + 2.8.13 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 3f7cf469d82d..6d3a693e4bb5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.12 + 2.8.13 tests From 9343675e213363932ce739ec265e475e5bf6384e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Sep 2022 16:20:13 +0200 Subject: [PATCH 1181/2363] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.9.1 (#1289) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.junit.vintage:junit-vintage-engine](https://junit.org/junit5/) ([source](https://togithub.com/junit-team/junit5)) | `5.9.0` -> `5.9.1` | [![age](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.1/compatibility-slim/5.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.1/confidence-slim/5.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 4c3e52757279..42a59385b3bc 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.junit.vintage junit-vintage-engine - 5.9.0 + 5.9.1 test From 337349a3e85684d9f3779653693bc45bbd16ba3f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Sep 2022 16:22:35 +0200 Subject: [PATCH 1182/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.14 (#1291) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.13` -> `2.8.14` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/compatibility-slim/2.8.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.14/confidence-slim/2.8.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.14`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2814-httpsgithubcomgoogleapisjava-corecomparev2813v2814-2022-09-20) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.13...v2.8.14) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.3 ([#​922](https://togithub.com/googleapis/java-core/issues/922)) ([96b5b4e](https://togithub.com/googleapis/java-core/commit/96b5b4e00004c28cd2d726c2161e94778f6a1c01))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c78f4a8a5d79..dc7286b6e7b5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.13 + 2.8.14 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 459413e2f124..0657e0ba8d46 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.13 + 2.8.14 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6d3a693e4bb5..159f4f2c2172 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.13 + 2.8.14 tests From a173db43e05ca3b115bf67464f53817bb5de29e1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:42:17 +0000 Subject: [PATCH 1183/2363] chore(main): release 1.120.18 (#1290) :robot: I have created a release *beep* *boop* --- ## [1.120.18](https://github.com/googleapis/java-pubsub/compare/v1.120.17...v1.120.18) (2022-09-21) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.8.13 ([#1288](https://github.com/googleapis/java-pubsub/issues/1288)) ([118c55e](https://github.com/googleapis/java-pubsub/commit/118c55e78adc371a24d535d9c02096d25418f292)) * Update dependency com.google.cloud:google-cloud-core to v2.8.14 ([#1291](https://github.com/googleapis/java-pubsub/issues/1291)) ([337349a](https://github.com/googleapis/java-pubsub/commit/337349a3e85684d9f3779653693bc45bbd16ba3f)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.9.1 ([#1289](https://github.com/googleapis/java-pubsub/issues/1289)) ([9343675](https://github.com/googleapis/java-pubsub/commit/9343675e213363932ce739ec265e475e5bf6384e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 2a71e460983a..17205d450f9b 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.120.18](https://github.com/googleapis/java-pubsub/compare/v1.120.17...v1.120.18) (2022-09-21) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.8.13 ([#1288](https://github.com/googleapis/java-pubsub/issues/1288)) ([708a1df](https://github.com/googleapis/java-pubsub/commit/708a1df692b64d86915133ac4ae87e45f4d669d8)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.14 ([#1291](https://github.com/googleapis/java-pubsub/issues/1291)) ([1c479de](https://github.com/googleapis/java-pubsub/commit/1c479de525a28fc323697d9a4e92f6ee3215a18f)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.1 ([#1289](https://github.com/googleapis/java-pubsub/issues/1289)) ([216ba7d](https://github.com/googleapis/java-pubsub/commit/216ba7db4f0fab29c4bf9fc785387b23f64beb5e)) + ## [1.120.17](https://github.com/googleapis/java-pubsub/compare/v1.120.16...v1.120.17) (2022-09-20) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3e952f81f9cf..4d7365d05f0d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.18-SNAPSHOT + 1.120.18 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.18-SNAPSHOT + 1.120.18 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.18-SNAPSHOT + 1.102.18 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.18-SNAPSHOT + 1.102.18
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d2a354755eab..96f0ae8304fc 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.18-SNAPSHOT + 1.120.18 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.18-SNAPSHOT + 1.120.18 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7fefca759793..90ef401e58a3 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.18-SNAPSHOT + 1.102.18 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.18-SNAPSHOT + 1.120.18 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ee502d9c1c9b..f167d96377bb 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.18-SNAPSHOT + 1.120.18 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.18-SNAPSHOT + 1.102.18 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.18-SNAPSHOT + 1.102.18 com.google.cloud google-cloud-pubsub - 1.120.18-SNAPSHOT + 1.120.18 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a89decfb2c39..9e558775c548 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.18-SNAPSHOT + 1.102.18 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.18-SNAPSHOT + 1.120.18 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0657e0ba8d46..cce584fbb8ab 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.18-SNAPSHOT + 1.120.18 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e3947a90ae64..76fec4ad5d27 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.17:1.120.18-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.17:1.102.18-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.17:1.102.18-SNAPSHOT +google-cloud-pubsub:1.120.18:1.120.18 +grpc-google-cloud-pubsub-v1:1.102.18:1.102.18 +proto-google-cloud-pubsub-v1:1.102.18:1.102.18 From 690ffc4e68decbc275d28054959a1dc7408adebb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:56:24 +0000 Subject: [PATCH 1184/2363] chore(main): release 1.120.19-SNAPSHOT (#1292) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4d7365d05f0d..4ca0608d837a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.18 + 1.120.19-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.18 + 1.120.19-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.18 + 1.102.19-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.18 + 1.102.19-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 96f0ae8304fc..aa215fc3bb68 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.18 + 1.120.19-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.18 + 1.120.19-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 90ef401e58a3..1aec9deb7bb6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.18 + 1.102.19-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.18 + 1.120.19-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f167d96377bb..d78632b3bbdf 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.18 + 1.120.19-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.18 + 1.102.19-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.18 + 1.102.19-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.18 + 1.120.19-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9e558775c548..a464d75da898 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.18 + 1.102.19-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.18 + 1.120.19-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cce584fbb8ab..ff65188d4ac4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.18 + 1.120.19-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 76fec4ad5d27..7928e3b9319d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.18:1.120.18 -grpc-google-cloud-pubsub-v1:1.102.18:1.102.18 -proto-google-cloud-pubsub-v1:1.102.18:1.102.18 +google-cloud-pubsub:1.120.18:1.120.19-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.18:1.102.19-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.18:1.102.19-SNAPSHOT From 9c75ae95b2e600ed9478df109e4a6170d1042ee2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Sep 2022 18:00:40 +0200 Subject: [PATCH 1185/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.14 (#1297) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.13` -> `0.9.14` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.14/compatibility-slim/0.9.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.14/confidence-slim/0.9.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 86b19b67d6be..13f73827f7a5 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.17' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.18' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.17" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.18" ``` ## Authentication diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 42a59385b3bc..58b7ba9b78b8 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.13 + 0.9.14 true pubsub.NativeImagePubSubSample From 4f73cba42a303319b3b6bf1e784250ec806631a0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Sep 2022 18:02:35 +0200 Subject: [PATCH 1186/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.18 (#1293) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.17` -> `1.120.18` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.18/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.18/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.18/compatibility-slim/1.120.17)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.18/confidence-slim/1.120.17)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 13f73827f7a5..fc528d0aaf8b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.17 + 1.120.18 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index dc7286b6e7b5..e515a184ce7c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.17 + 1.120.18 From c93ff559a1445a30edd11cb3f9cedceeea2d856a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 26 Sep 2022 16:30:31 +0200 Subject: [PATCH 1187/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.15 (#1299) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.14` -> `2.8.15` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/compatibility-slim/2.8.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.15/confidence-slim/2.8.14)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.15`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2815-httpsgithubcomgoogleapisjava-corecomparev2814v2815-2022-09-23) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.0 ([#​925](https://togithub.com/googleapis/java-core/issues/925)) ([a5475c5](https://togithub.com/googleapis/java-core/commit/a5475c5333ca97392c9e64a883826ea1bd976a01)) - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.1 ([#​926](https://togithub.com/googleapis/java-core/issues/926)) ([3bc96fb](https://togithub.com/googleapis/java-core/commit/3bc96fbba4907d4ac3d24915870132fed596c0d3))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e515a184ce7c..d901d352f24b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.14 + 2.8.15 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ff65188d4ac4..f5f77afe9fb0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.14 + 2.8.15 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 159f4f2c2172..3f6f2ffd75ae 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.14 + 2.8.15 tests From 5831b952005b36addec76f5e1c7f5e9fe904c678 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 26 Sep 2022 22:00:24 +0000 Subject: [PATCH 1188/2363] chore: pin versions of dependencies for compatibility with Python 3.6 (#1588) (#1300) * chore: pin versions of dependencies for compatibility with Python 3.6 * fix path of requirements file in synthtool Source-Link: https://github.com/googleapis/synthtool/commit/69cdb47824170d0b02bf694649ce66613c889040 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- .../.kokoro/release/publish_javadoc.sh | 2 +- .../.kokoro/release/publish_javadoc11.sh | 2 +- java-pubsub/.kokoro/release/stage.sh | 3 +- java-pubsub/.kokoro/requirements.in | 31 ++ java-pubsub/.kokoro/requirements.txt | 452 ++++++++++++++++++ 6 files changed, 488 insertions(+), 4 deletions(-) create mode 100644 java-pubsub/.kokoro/requirements.in create mode 100644 java-pubsub/.kokoro/requirements.txt diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 6259292301cb..791e842d2f88 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 + digest: sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 diff --git a/java-pubsub/.kokoro/release/publish_javadoc.sh b/java-pubsub/.kokoro/release/publish_javadoc.sh index 7b0bf293e2d5..2cf98c0c5211 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.sh b/java-pubsub/.kokoro/release/publish_javadoc11.sh index 24fc55e5ad4b..680a215f327d 100755 --- a/java-pubsub/.kokoro/release/publish_javadoc11.sh +++ b/java-pubsub/.kokoro/release/publish_javadoc11.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/java-pubsub/.kokoro/release/stage.sh b/java-pubsub/.kokoro/release/stage.sh index 1dba8de10857..61e714d6ba56 100755 --- a/java-pubsub/.kokoro/release/stage.sh +++ b/java-pubsub/.kokoro/release/stage.sh @@ -16,7 +16,8 @@ set -eo pipefail # Start the releasetool reporter -python3 -m pip install gcp-releasetool +requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) +python3 -m pip install --require-hashes -r $requirementsFile python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script source $(dirname "$0")/common.sh diff --git a/java-pubsub/.kokoro/requirements.in b/java-pubsub/.kokoro/requirements.in new file mode 100644 index 000000000000..cfdc2e7ed955 --- /dev/null +++ b/java-pubsub/.kokoro/requirements.in @@ -0,0 +1,31 @@ +gcp-docuploader==0.6.3 +google-crc32c==1.3.0 +googleapis-common-protos==1.56.3 +gcp-releasetool==1.8.7 +cachetools==4.2.4 +cffi==1.15.1 +jeepney==0.7.1 +jinja2==3.0.3 +markupsafe==2.0.1 +keyring==23.4.1 +packaging==21.3 +protobuf==3.19.5 +pyjwt==2.4.0 +pyparsing==3.0.9 +pycparser==2.21 +pyperclip==1.8.2 +python-dateutil==2.8.2 +requests==2.27.1 +importlib-metadata==4.8.3 +zipp==3.6.0 +google_api_core==2.8.2 +google-cloud-storage==2.0.0 +google-cloud-core==2.3.1 +typing-extensions==4.1.1 +urllib3==1.26.12 +zipp==3.6.0 +rsa==4.9 +six==1.16.0 +attrs==22.1.0 +google-auth==2.11.0 +idna==3.4 \ No newline at end of file diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt new file mode 100644 index 000000000000..170f1c63abb7 --- /dev/null +++ b/java-pubsub/.kokoro/requirements.txt @@ -0,0 +1,452 @@ +# +# This file is autogenerated by pip-compile with python 3.10 +# To update, run: +# +# pip-compile --allow-unsafe --generate-hashes requirements.in +# +attrs==22.1.0 \ + --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ + --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c + # via + # -r requirements.in + # gcp-releasetool +cachetools==4.2.4 \ + --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ + --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 + # via + # -r requirements.in + # google-auth +certifi==2022.9.14 \ + --hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \ + --hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516 + # via requests +cffi==1.15.1 \ + --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ + --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ + --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ + --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ + --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ + --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ + --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ + --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ + --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ + --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ + --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ + --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ + --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ + --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ + --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ + --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ + --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ + --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ + --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ + --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ + --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ + --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ + --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ + --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ + --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ + --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ + --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ + --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ + --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ + --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ + --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ + --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ + --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ + --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ + --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ + --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ + --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ + --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ + --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ + --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ + --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ + --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ + --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ + --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ + --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ + --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ + --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ + --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ + --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ + --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ + --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ + --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ + --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ + --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ + --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ + --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ + --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ + --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ + --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ + --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ + --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ + --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ + --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ + --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 + # via + # -r requirements.in + # cryptography +charset-normalizer==2.0.12 \ + --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ + --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df + # via requests +click==8.0.4 \ + --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ + --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb + # via + # gcp-docuploader + # gcp-releasetool +colorlog==6.7.0 \ + --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ + --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 + # via gcp-docuploader +cryptography==38.0.1 \ + --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ + --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ + --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ + --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ + --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ + --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ + --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ + --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ + --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ + --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ + --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ + --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ + --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ + --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ + --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ + --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ + --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ + --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ + --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ + --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ + --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ + --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ + --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ + --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ + --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ + --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 + # via + # gcp-releasetool + # secretstorage +gcp-docuploader==0.6.3 \ + --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ + --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b + # via -r requirements.in +gcp-releasetool==1.8.7 \ + --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ + --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d + # via -r requirements.in +google-api-core==2.8.2 \ + --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ + --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 + # via + # -r requirements.in + # google-cloud-core + # google-cloud-storage +google-auth==2.11.0 \ + --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ + --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-core + # google-cloud-storage +google-cloud-core==2.3.1 \ + --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ + --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 + # via + # -r requirements.in + # google-cloud-storage +google-cloud-storage==2.0.0 \ + --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ + --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 + # via + # -r requirements.in + # gcp-docuploader +google-crc32c==1.3.0 \ + --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ + --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ + --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ + --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ + --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ + --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ + --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ + --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ + --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ + --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ + --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ + --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ + --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ + --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ + --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ + --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ + --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ + --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ + --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ + --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ + --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ + --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ + --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ + --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ + --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ + --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ + --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ + --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ + --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ + --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ + --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ + --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ + --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ + --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ + --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ + --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ + --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ + --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ + --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ + --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ + --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ + --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ + --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 + # via + # -r requirements.in + # google-resumable-media +google-resumable-media==2.3.3 \ + --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ + --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 + # via google-cloud-storage +googleapis-common-protos==1.56.3 \ + --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ + --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 + # via + # -r requirements.in + # google-api-core +idna==3.4 \ + --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ + --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 + # via + # -r requirements.in + # requests +importlib-metadata==4.8.3 \ + --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ + --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 + # via + # -r requirements.in + # keyring +jeepney==0.7.1 \ + --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ + --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f + # via + # -r requirements.in + # keyring + # secretstorage +jinja2==3.0.3 \ + --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ + --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 + # via + # -r requirements.in + # gcp-releasetool +keyring==23.4.1 \ + --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ + --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 + # via + # -r requirements.in + # gcp-releasetool +markupsafe==2.0.1 \ + --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ + --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ + --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ + --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ + --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ + --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ + --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ + --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ + --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ + --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ + --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ + --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ + --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ + --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ + --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ + --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ + --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ + --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ + --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ + --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ + --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ + --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ + --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ + --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ + --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ + --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ + --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ + --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ + --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ + --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ + --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ + --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ + --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ + --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ + --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ + --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ + --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ + --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ + --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ + --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ + --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ + --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ + --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ + --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ + --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ + --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ + --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ + --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ + --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ + --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ + --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ + --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ + --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ + --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ + --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ + --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ + --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ + --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ + --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ + --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ + --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ + --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ + --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ + --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ + --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ + --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ + --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ + --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ + --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 + # via + # -r requirements.in + # jinja2 +packaging==21.3 \ + --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ + --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 + # via + # -r requirements.in + # gcp-releasetool +protobuf==3.19.5 \ + --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ + --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ + --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ + --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ + --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ + --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ + --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ + --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ + --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ + --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ + --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ + --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ + --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ + --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ + --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ + --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ + --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ + --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ + --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ + --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ + --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ + --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ + --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ + --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ + --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ + --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de + # via + # -r requirements.in + # gcp-docuploader + # gcp-releasetool + # google-api-core + # google-cloud-storage + # googleapis-common-protos +pyasn1==0.4.8 \ + --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ + --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba + # via + # pyasn1-modules + # rsa +pyasn1-modules==0.2.8 \ + --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ + --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 + # via google-auth +pycparser==2.21 \ + --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ + --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 + # via + # -r requirements.in + # cffi +pyjwt==2.4.0 \ + --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ + --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba + # via + # -r requirements.in + # gcp-releasetool +pyparsing==3.0.9 \ + --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ + --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc + # via + # -r requirements.in + # packaging +pyperclip==1.8.2 \ + --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 + # via + # -r requirements.in + # gcp-releasetool +python-dateutil==2.8.2 \ + --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ + --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 + # via + # -r requirements.in + # gcp-releasetool +requests==2.27.1 \ + --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ + --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-storage +rsa==4.9 \ + --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ + --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 + # via + # -r requirements.in + # google-auth +secretstorage==3.3.3 \ + --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ + --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 + # via keyring +six==1.16.0 \ + --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ + --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 + # via + # -r requirements.in + # gcp-docuploader + # google-auth + # python-dateutil +typing-extensions==4.1.1 \ + --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ + --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 + # via -r requirements.in +urllib3==1.26.12 \ + --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ + --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 + # via + # -r requirements.in + # requests +zipp==3.6.0 \ + --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ + --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc + # via + # -r requirements.in + # importlib-metadata From 88e3a667c31f96e70d0709938cd1f1e58a01007a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Sep 2022 17:02:36 +0200 Subject: [PATCH 1189/2363] deps: update dependency gcp-releasetool to v1.8.8 (#1304) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | gcp-releasetool | `==1.8.7` -> `==1.8.8` | [![age](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/compatibility-slim/1.8.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/confidence-slim/1.8.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From cf9fe0093bcadbbba828e3e67fce236351523cca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Sep 2022 17:12:24 +0200 Subject: [PATCH 1190/2363] deps: update dependency certifi to v2022.9.24 (#1303) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [certifi](https://togithub.com/certifi/python-certifi) | `==2022.9.14` -> `==2022.9.24` | [![age](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/compatibility-slim/2022.9.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/confidence-slim/2022.9.14)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From cabbef15416d6910c654161fec67aff0d43f3498 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Sep 2022 17:20:43 +0200 Subject: [PATCH 1191/2363] deps: update dependency google-auth to v2.11.1 (#1305) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-auth](https://togithub.com/googleapis/google-auth-library-python) | `==2.11.0` -> `==2.11.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-auth/2.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-auth/2.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-auth/2.11.1/compatibility-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-auth/2.11.1/confidence-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 6864cf219349746b6b029bd225f83906a8078012 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Sep 2022 17:28:15 +0200 Subject: [PATCH 1192/2363] deps: update dependency google-api-core to v2.10.1 (#1310) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-api-core](https://togithub.com/googleapis/python-api-core) | `==2.8.2` -> `==2.10.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 96fbe192cac2ae4c2f82232babf694e13f009ead Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Sep 2022 17:42:18 +0200 Subject: [PATCH 1193/2363] deps: update dependency charset-normalizer to v2.1.1 (#1308) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [charset-normalizer](https://togithub.com/ousret/charset_normalizer) | `==2.0.12` -> `==2.1.1` | [![age](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/compatibility-slim/2.0.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/confidence-slim/2.0.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From cad869a1c7d088d94ac0ccf9acbfc169400897ce Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 28 Sep 2022 01:08:22 +0000 Subject: [PATCH 1194/2363] chore: exclude requirements.txt file from renovate-bot (#1594) (#1302) Source-Link: https://github.com/googleapis/synthtool/commit/f58d3135a2fab20e225d98741dbc06d57459b816 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 --- java-pubsub/.github/.OwlBot.lock.yaml | 3 ++- java-pubsub/renovate.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 791e842d2f88..2c3ef72011b4 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 + digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 + diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 6b1bd2ba97b5..6686189a1f32 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -10,6 +10,7 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], + "ignorePaths": [".kokoro/requirements.txt"], "packageRules": [ { "packagePatterns": [ From a5bbef7d950c49132f3df7c6707255552fe95234 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 06:34:14 +0200 Subject: [PATCH 1195/2363] deps: update dependency requests to v2.28.1 (#1321) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [requests](https://requests.readthedocs.io) ([source](https://togithub.com/psf/requests), [changelog](https://togithub.com/psf/requests/blob/master/HISTORY.md)) | `==2.27.1` -> `==2.28.1` | [![age](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/compatibility-slim/2.27.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/confidence-slim/2.27.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    psf/requests ### [`v2.28.1`](https://togithub.com/psf/requests/blob/HEAD/HISTORY.md#​2281-2022-06-29) [Compare Source](https://togithub.com/psf/requests/compare/v2.28.0...v2.28.1) **Improvements** - Speed optimization in `iter_content` with transition to `yield from`. ([#​6170](https://togithub.com/psf/requests/issues/6170)) **Dependencies** - Added support for chardet 5.0.0 ([#​6179](https://togithub.com/psf/requests/issues/6179)) - Added support for charset-normalizer 2.1.0 ([#​6169](https://togithub.com/psf/requests/issues/6169)) ### [`v2.28.0`](https://togithub.com/psf/requests/blob/HEAD/HISTORY.md#​2280-2022-06-09) [Compare Source](https://togithub.com/psf/requests/compare/v2.27.1...v2.28.0) **Deprecations** - ⚠️ Requests has officially dropped support for Python 2.7. ⚠️ ([#​6091](https://togithub.com/psf/requests/issues/6091)) - Requests has officially dropped support for Python 3.6 (including pypy3.6). ([#​6091](https://togithub.com/psf/requests/issues/6091)) **Improvements** - Wrap JSON parsing issues in Request's JSONDecodeError for payloads without an encoding to make `json()` API consistent. ([#​6097](https://togithub.com/psf/requests/issues/6097)) - Parse header components consistently, raising an InvalidHeader error in all invalid cases. ([#​6154](https://togithub.com/psf/requests/issues/6154)) - Added provisional 3.11 support with current beta build. ([#​6155](https://togithub.com/psf/requests/issues/6155)) - Requests got a makeover and we decided to paint it black. ([#​6095](https://togithub.com/psf/requests/issues/6095)) **Bugfixes** - Fixed bug where setting `CURL_CA_BUNDLE` to an empty string would disable cert verification. All Requests 2.x versions before 2.28.0 are affected. ([#​6074](https://togithub.com/psf/requests/issues/6074)) - Fixed urllib3 exception leak, wrapping `urllib3.exceptions.SSLError` with `requests.exceptions.SSLError` for `content` and `iter_content`. ([#​6057](https://togithub.com/psf/requests/issues/6057)) - Fixed issue where invalid Windows registry entires caused proxy resolution to raise an exception rather than ignoring the entry. ([#​6149](https://togithub.com/psf/requests/issues/6149)) - Fixed issue where entire payload could be included in the error message for JSONDecodeError. ([#​6036](https://togithub.com/psf/requests/issues/6036))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From f1fd9765d2274c7565774ca34becb2a406045716 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 06:34:18 +0200 Subject: [PATCH 1196/2363] deps: update dependency google-auth to v2.12.0 (#1313) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-auth](https://togithub.com/googleapis/google-auth-library-python) | `==2.11.0` -> `==2.12.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/compatibility-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/confidence-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/google-auth-library-python ### [`v2.12.0`](https://togithub.com/googleapis/google-auth-library-python/blob/HEAD/CHANGELOG.md#​2120-httpsgithubcomgoogleapisgoogle-auth-library-pythoncomparev2111v2120-2022-09-26) [Compare Source](https://togithub.com/googleapis/google-auth-library-python/compare/v2.11.1...v2.12.0) ##### Features - Retry behavior ([#​1113](https://togithub.com/googleapis/google-auth-library-python/issues/1113)) ([78d3790](https://togithub.com/googleapis/google-auth-library-python/commit/78d37906f0811f9878834ac34d5b83e5cbd58800)) ##### Bug Fixes - Modify RefreshError exception to use gcloud ADC command. ([#​1149](https://togithub.com/googleapis/google-auth-library-python/issues/1149)) ([059fd35](https://togithub.com/googleapis/google-auth-library-python/commit/059fd353d5f2a8527de8bf1fe6dbd5e326c0e29a)) - Revert "Update token refresh threshold from 20 seconds to 5 minutes". ([186464b](https://togithub.com/googleapis/google-auth-library-python/commit/186464bf5920fb3b76499ac542b0fb90023629de)) ### [`v2.11.1`](https://togithub.com/googleapis/google-auth-library-python/blob/HEAD/CHANGELOG.md#​2111-httpsgithubcomgoogleapisgoogle-auth-library-pythoncomparev2110v2111-2022-09-20) [Compare Source](https://togithub.com/googleapis/google-auth-library-python/compare/v2.11.0...v2.11.1) ##### Bug Fixes - Fix socket leak in impersonated_credentials ([#​1123](https://togithub.com/googleapis/google-auth-library-python/issues/1123)) ([b1eb467](https://togithub.com/googleapis/google-auth-library-python/commit/b1eb467f50f0c080e89a122426061b28f0be0567)), closes [#​1122](https://togithub.com/googleapis/google-auth-library-python/issues/1122) - Make pluggable auth tests work in all environments ([#​1114](https://togithub.com/googleapis/google-auth-library-python/issues/1114)) ([bb5c979](https://togithub.com/googleapis/google-auth-library-python/commit/bb5c9791c64e2472a90ba7191f79f4c5fedb2538)) - Skip oauth2client adapter tests if oauth2client is not installed ([#​1132](https://togithub.com/googleapis/google-auth-library-python/issues/1132)) ([d15092f](https://togithub.com/googleapis/google-auth-library-python/commit/d15092ff8b66b3039641d482a0debafde4ba0077)) - Update token refresh threshold from 20 seconds to 5 minutes ([#​1146](https://togithub.com/googleapis/google-auth-library-python/issues/1146)) ([261a561](https://togithub.com/googleapis/google-auth-library-python/commit/261a56138fba33ff7d898ab5907a6098125fefef)) ##### Documentation - **samples:** Add auth samples and tests ([#​1102](https://togithub.com/googleapis/google-auth-library-python/issues/1102)) ([ac87520](https://togithub.com/googleapis/google-auth-library-python/commit/ac875201bc8ba5d638a9eafcd3ccfdeb73a2f0ec))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 11d64e56c624af3f622abe8bc5e7f76a1a5d9963 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 06:34:22 +0200 Subject: [PATCH 1197/2363] deps: update dependency pyjwt to v2.5.0 (#1320) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pyjwt](https://togithub.com/jpadilla/pyjwt) | `==2.4.0` -> `==2.5.0` | [![age](https://badges.renovateapi.com/packages/pypi/pyjwt/2.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/pyjwt/2.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/pyjwt/2.5.0/compatibility-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/pyjwt/2.5.0/confidence-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    jpadilla/pyjwt ### [`v2.5.0`](https://togithub.com/jpadilla/pyjwt/blob/HEAD/CHANGELOG.rst#Unreleased-httpsgithubcomjpadillapyjwtcompare250HEAD) [Compare Source](https://togithub.com/jpadilla/pyjwt/compare/2.4.0...2.5.0) Changed ``` Fixed ~~~~~ - Invalidate token on the exact second the token expires `#​797 `_ Added ~~~~~ ```
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 74cd457cef0198461501829f0480fcd839549241 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 06:36:17 +0200 Subject: [PATCH 1198/2363] deps: update dependency jinja2 to v3.1.2 (#1316) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jinja2](https://palletsprojects.com/p/jinja/) ([changelog](https://jinja.palletsprojects.com/changes/)) | `==3.0.3` -> `==3.1.2` | [![age](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/compatibility-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/confidence-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From c0fee24bab27b8a0962eb0af2829714ef2815487 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 06:44:25 +0200 Subject: [PATCH 1199/2363] deps: update dependency markupsafe to v2.1.1 (#1318) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [markupsafe](https://palletsprojects.com/p/markupsafe/) ([changelog](https://markupsafe.palletsprojects.com/changes/)) | `==2.0.1` -> `==2.1.1` | [![age](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/compatibility-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/confidence-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From e2eb70fa59c2dc3e4f9739e4e3c99bf1292b0b2f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 06:56:12 +0200 Subject: [PATCH 1200/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.16 (#1301) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.15` -> `2.8.16` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.16/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.16/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.16/compatibility-slim/2.8.15)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.16/confidence-slim/2.8.15)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.16`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2816-httpsgithubcomgoogleapisjava-corecomparev2815v2816-2022-09-26) ##### Dependencies - Update dependency org.threeten:threetenbp to v1.6.2 ([#​929](https://togithub.com/googleapis/java-core/issues/929)) ([2f797f9](https://togithub.com/googleapis/java-core/commit/2f797f990eacc112dd982e7a8f9155bc229b7bf3))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d901d352f24b..ae0b8ddb6897 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.15 + 2.8.16 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f5f77afe9fb0..887d638a946d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.15 + 2.8.16 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 3f6f2ffd75ae..e9626df9aa73 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.15 + 2.8.16 tests From 1ca3a7f46e23e03a37cfd5302b5d4020772eef7c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 07:26:23 +0200 Subject: [PATCH 1201/2363] deps: update dependency protobuf to v3.20.2 (#1319) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [protobuf](https://developers.google.com/protocol-buffers/) | `==3.19.5` -> `==3.20.2` | [![age](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/compatibility-slim/3.19.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/confidence-slim/3.19.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 564fa122f3649a0ccd94720784718a9ae693d1ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 07:28:22 +0200 Subject: [PATCH 1202/2363] deps: update dependency jeepney to v0.8.0 (#1315) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jeepney](https://gitlab.com/takluyver/jeepney) | `==0.7.1` -> `==0.8.0` | [![age](https://badges.renovateapi.com/packages/pypi/jeepney/0.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/jeepney/0.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/jeepney/0.8.0/compatibility-slim/0.7.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/jeepney/0.8.0/confidence-slim/0.7.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    takluyver/jeepney ### [`v0.8.0`](https://gitlab.com/takluyver/jeepney/compare/0.7.1...0.8) [Compare Source](https://gitlab.com/takluyver/jeepney/compare/0.7.1...0.8)
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 6a3b5d80d3a5c17ff1bd04d44a45c30a6b18b10b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 07:36:14 +0200 Subject: [PATCH 1203/2363] deps: update dependency keyring to v23.9.3 (#1317) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [keyring](https://togithub.com/jaraco/keyring) | `==23.4.1` -> `==23.9.3` | [![age](https://badges.renovateapi.com/packages/pypi/keyring/23.9.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/keyring/23.9.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/keyring/23.9.3/compatibility-slim/23.4.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/keyring/23.9.3/confidence-slim/23.4.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    jaraco/keyring ### [`v23.9.3`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2393) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.9.2...v23.9.3) - [#​596](https://togithub.com/jaraco/keyring/issues/596): Add workaround for devpi_client hook with wrapped implementation. ### [`v23.9.2`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2392) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.9.1...v23.9.2) - [#​597](https://togithub.com/jaraco/keyring/issues/597): Fixed wrong name in compatibility logic for `properties` (masked by the compatibility fallback). ### [`v23.9.1`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2391) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.9.0...v23.9.1) - [#​593](https://togithub.com/jaraco/keyring/issues/593): Restore `keyring.util.properties` with deprecation warning for backward compatibility. ### [`v23.9.0`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2390) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.8.2...v23.9.0) - [#​588](https://togithub.com/jaraco/keyring/issues/588): Project now depends on `jaraco.classes` for class property support. ### [`v23.8.2`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2382) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.8.1...v23.8.2) - [#​581](https://togithub.com/jaraco/keyring/issues/581): Corrected regression in `libsecret` tests (`.collection` property). ### [`v23.8.1`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2381) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.8.0...v23.8.1) - [#​587](https://togithub.com/jaraco/keyring/issues/587): Fix regression in `libsecret`. ### [`v23.8.0`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2380) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.7.0...v23.8.0) - [#​448](https://togithub.com/jaraco/keyring/issues/448): `SecretService` and `libsecret` backends now support a new `SelectableScheme`, allowing the keys for "username" and "service" to be overridden for compatibility with other schemes such as KeePassXC. - Introduced a new `.with_properties` method on backends to produce a new keyring with different properties. Use for example to get a keyring with a different `keychain` (macOS) or `scheme` (SecretService/libsecret). e.g.:: keypass = keyring.get_keyring().with_properties(scheme='KeePassXC') - `.with_keychain` method on macOS is superseded by `.with_properties` and so is now deprecated. ### [`v23.7.0`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2370) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.6.0...v23.7.0) - [#​582](https://togithub.com/jaraco/keyring/issues/582): Suppress KeyringErrors for devpi client. ### [`v23.6.0`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2360) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.5.1...v23.6.0) - [#​575](https://togithub.com/jaraco/keyring/issues/575): Only require `importlib_metadata` on older Pythons. - [#​579](https://togithub.com/jaraco/keyring/issues/579): Add `.with_keychain` method on macOS for easy reference to alternate keychains. ### [`v23.5.1`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2351) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.5.0...v23.5.1) - The correct config root is now used on Windows. ### [`v23.5.0`](https://togithub.com/jaraco/keyring/blob/HEAD/CHANGES.rst#v2350) [Compare Source](https://togithub.com/jaraco/keyring/compare/v23.4.1...v23.5.0) - Require Python 3.7 or later.
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From bafafcbf910af634b0ebae63ba2c26335a2b0478 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 07:40:24 +0200 Subject: [PATCH 1204/2363] deps: update dependency zipp to v3.8.1 (#1323) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [zipp](https://togithub.com/jaraco/zipp) | `==3.6.0` -> `==3.8.1` | [![age](https://badges.renovateapi.com/packages/pypi/zipp/3.8.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/zipp/3.8.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/zipp/3.8.1/compatibility-slim/3.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/zipp/3.8.1/confidence-slim/3.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    jaraco/zipp ### [`v3.8.1`](https://togithub.com/jaraco/zipp/blob/HEAD/CHANGES.rst#v381) [Compare Source](https://togithub.com/jaraco/zipp/compare/v3.8.0...v3.8.1) \====== Refreshed packaging. Enrolled with Tidelift. ### [`v3.8.0`](https://togithub.com/jaraco/zipp/blob/HEAD/CHANGES.rst#v380) [Compare Source](https://togithub.com/jaraco/zipp/compare/v3.7.0...v3.8.0) \====== Removed compatibility code. ### [`v3.7.0`](https://togithub.com/jaraco/zipp/blob/HEAD/CHANGES.rst#v370) [Compare Source](https://togithub.com/jaraco/zipp/compare/v3.6.0...v3.7.0) \====== Require Python 3.7 or later.
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 7f05f924134b1d2047a5d7ec7707552717d228c7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 08:10:18 +0200 Subject: [PATCH 1205/2363] deps: update dependency importlib-metadata to v4.12.0 (#1314) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [importlib-metadata](https://togithub.com/python/importlib_metadata) | `==4.8.3` -> `==4.12.0` | [![age](https://badges.renovateapi.com/packages/pypi/importlib-metadata/4.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/importlib-metadata/4.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/importlib-metadata/4.12.0/compatibility-slim/4.8.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/importlib-metadata/4.12.0/confidence-slim/4.8.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    python/importlib_metadata ### [`v4.12.0`](https://togithub.com/python/importlib_metadata/blob/HEAD/CHANGES.rst#v4120) [Compare Source](https://togithub.com/python/importlib_metadata/compare/v4.11.4...v4.12.0) \======= - py-93259: Now raise `ValueError` when `None` or an empty string are passed to `Distribution.from_name` (and other callers). ### [`v4.11.4`](https://togithub.com/python/importlib_metadata/blob/HEAD/CHANGES.rst#v4114) [Compare Source](https://togithub.com/python/importlib_metadata/compare/v4.11.3...v4.11.4) \======= - [#​379](https://togithub.com/python/importlib_metadata/issues/379): In `PathDistribution._name_from_stem`, avoid including parts of the extension in the result. - [#​381](https://togithub.com/python/importlib_metadata/issues/381): In `PathDistribution._normalized_name`, ensure names loaded from the stem of the filename are also normalized, ensuring duplicate entry points by packages varying only by non-normalized name are hidden. ### [`v4.11.3`](https://togithub.com/python/importlib_metadata/blob/HEAD/CHANGES.rst#v4113) [Compare Source](https://togithub.com/python/importlib_metadata/compare/v4.11.2...v4.11.3) \======= - [#​372](https://togithub.com/python/importlib_metadata/issues/372): Removed cast of path items in FastPath, not needed. ### [`v4.11.2`](https://togithub.com/python/importlib_metadata/blob/HEAD/CHANGES.rst#v4112) [Compare Source](https://togithub.com/python/importlib_metadata/compare/v4.11.1...v4.11.2) \======= - [#​369](https://togithub.com/python/importlib_metadata/issues/369): Fixed bug where `EntryPoint.extras` was returning match objects and not the extras strings. ### [`v4.11.1`](https://togithub.com/python/importlib_metadata/blob/HEAD/CHANGES.rst#v4111) [Compare Source](https://togithub.com/python/importlib_metadata/compare/v4.11.0...v4.11.1) \======= - [#​367](https://togithub.com/python/importlib_metadata/issues/367): In `Distribution.requires` for egg-info, if `requires.txt` is empty, return an empty list. ### [`v4.11.0`](https://togithub.com/python/importlib_metadata/blob/HEAD/CHANGES.rst#v4110) [Compare Source](https://togithub.com/python/importlib_metadata/compare/v4.10.1...v4.11.0) \======= - bpo-46246: Added `__slots__` to `EntryPoints`. ### [`v4.10.1`](https://togithub.com/python/importlib_metadata/blob/HEAD/CHANGES.rst#v4101) [Compare Source](https://togithub.com/python/importlib_metadata/compare/v4.10.0...v4.10.1) \======= ### [`v4.10.0`](https://togithub.com/python/importlib_metadata/blob/HEAD/CHANGES.rst#v4100) [Compare Source](https://togithub.com/python/importlib_metadata/compare/v4.9.0...v4.10.0) \======= - [#​354](https://togithub.com/python/importlib_metadata/issues/354): Removed `Distribution._local` factory. This functionality was created as a demonstration of the possible implementation. Now, the `pep517 `\_ package provides this functionality directly through `pep517.meta.load `\_. ### [`v4.9.0`](https://togithub.com/python/importlib_metadata/blob/HEAD/CHANGES.rst#v490) [Compare Source](https://togithub.com/python/importlib_metadata/compare/v4.8.3...v4.9.0) \====== - Require Python 3.7 or later.
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 19ae393d5c935faab6b1c8ecf4f096278782e419 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 01:30:29 +0200 Subject: [PATCH 1206/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.17 (#1326) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.16` -> `2.8.17` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.17/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.17/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.17/compatibility-slim/2.8.16)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.17/confidence-slim/2.8.16)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.17`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2817-httpsgithubcomgoogleapisjava-corecomparev2816v2817-2022-09-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.16...v2.8.17) ##### Dependencies - Update dependency cachetools to v5 ([#​943](https://togithub.com/googleapis/java-core/issues/943)) ([c6c511d](https://togithub.com/googleapis/java-core/commit/c6c511d82534e96fe5b42ad9e4886aaa18efaef3)) - Update dependency certifi to v2022.9.24 ([#​934](https://togithub.com/googleapis/java-core/issues/934)) ([c756885](https://togithub.com/googleapis/java-core/commit/c75688575c3c19d0d8a1a2b25c6fe3eb99c229cb)) - Update dependency charset-normalizer to v2.1.1 ([#​938](https://togithub.com/googleapis/java-core/issues/938)) ([1520f65](https://togithub.com/googleapis/java-core/commit/1520f65cf6655aed9767d9470e3729a0fc270b9e)) - Update dependency click to v8.1.3 ([#​946](https://togithub.com/googleapis/java-core/issues/946)) ([6f7a7f5](https://togithub.com/googleapis/java-core/commit/6f7a7f5f318a7c3586fa79a7a0013bca562b059e)) - Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.4 ([#​945](https://togithub.com/googleapis/java-core/issues/945)) ([307e406](https://togithub.com/googleapis/java-core/commit/307e40688d55af3cb96e38972af6035cf846c595)) - Update dependency gcp-releasetool to v1.8.8 ([#​935](https://togithub.com/googleapis/java-core/issues/935)) ([a5ba3b8](https://togithub.com/googleapis/java-core/commit/a5ba3b8d6bc43734bb01b0ba04e11b5262db526b)) - Update dependency google-api-core to v2.10.1 ([#​947](https://togithub.com/googleapis/java-core/issues/947)) ([1f3da64](https://togithub.com/googleapis/java-core/commit/1f3da6450b1a5093aadaa9f299fc797773cc8480)) - Update dependency google-auth to v2.12.0 ([#​948](https://togithub.com/googleapis/java-core/issues/948)) ([361da3d](https://togithub.com/googleapis/java-core/commit/361da3dcaecadd708546447737c5a7c1d9799834)) - Update dependency google-cloud-core to v2.3.2 ([#​936](https://togithub.com/googleapis/java-core/issues/936)) ([99c0013](https://togithub.com/googleapis/java-core/commit/99c001309e1f72b84c41b7df55ff26c9f182863a)) - Update dependency google-cloud-storage to v2.5.0 ([#​949](https://togithub.com/googleapis/java-core/issues/949)) ([cd6cbfb](https://togithub.com/googleapis/java-core/commit/cd6cbfb3b1c45e2f55d51edee74621a7dbe06401)) - Update dependency google-crc32c to v1.5.0 ([#​950](https://togithub.com/googleapis/java-core/issues/950)) ([abd5ff9](https://togithub.com/googleapis/java-core/commit/abd5ff9321304b1238f4dd6fa0b4dd57665b46cc)) - Update dependency googleapis-common-protos to v1.56.4 ([#​937](https://togithub.com/googleapis/java-core/issues/937)) ([bd7d676](https://togithub.com/googleapis/java-core/commit/bd7d676c3f221b59768815ccca000c7763aeb7f9)) - Update dependency importlib-metadata to v4.12.0 ([#​951](https://togithub.com/googleapis/java-core/issues/951)) ([f0d1fe8](https://togithub.com/googleapis/java-core/commit/f0d1fe8cc2079216b95d8fd24a46de5161801b35)) - Update dependency jeepney to v0.8.0 ([#​952](https://togithub.com/googleapis/java-core/issues/952)) ([342614b](https://togithub.com/googleapis/java-core/commit/342614b1275877fb41e8241f0c6061286989df13)) - Update dependency jinja2 to v3.1.2 ([#​953](https://togithub.com/googleapis/java-core/issues/953)) ([a1542bf](https://togithub.com/googleapis/java-core/commit/a1542bf8938a72c85b20f97e642dde3666ea0b04)) - Update dependency keyring to v23.9.3 ([#​954](https://togithub.com/googleapis/java-core/issues/954)) ([34bbdae](https://togithub.com/googleapis/java-core/commit/34bbdaeb312cce804d92d6b041e3098b8a6c04bc)) - Update dependency markupsafe to v2.1.1 ([#​955](https://togithub.com/googleapis/java-core/issues/955)) ([cb444b0](https://togithub.com/googleapis/java-core/commit/cb444b0d274af29ffa3076bd89c42acedf514749)) - Update dependency protobuf to v3.20.2 ([#​956](https://togithub.com/googleapis/java-core/issues/956)) ([949b4fe](https://togithub.com/googleapis/java-core/commit/949b4feab38e8b0f0b32ae80067dc07da5a2a383)) - Update dependency protobuf to v4 ([#​944](https://togithub.com/googleapis/java-core/issues/944)) ([9d379e2](https://togithub.com/googleapis/java-core/commit/9d379e202dd8bedf0c3bbaab3d3ba593813285d9)) - Update dependency pyjwt to v2.5.0 ([#​939](https://togithub.com/googleapis/java-core/issues/939)) ([bd4896e](https://togithub.com/googleapis/java-core/commit/bd4896ed5d0413472ae100b60e5f632506214a97)) - Update dependency requests to v2.28.1 ([#​940](https://togithub.com/googleapis/java-core/issues/940)) ([f64fef9](https://togithub.com/googleapis/java-core/commit/f64fef9ef365b43e1ec195db312862000db18627)) - Update dependency typing-extensions to v4.3.0 ([#​941](https://togithub.com/googleapis/java-core/issues/941)) ([3b8f163](https://togithub.com/googleapis/java-core/commit/3b8f163789f5cb11a4b461411cb7c1e132439449)) - Update dependency zipp to v3.8.1 ([#​942](https://togithub.com/googleapis/java-core/issues/942)) ([96ccc51](https://togithub.com/googleapis/java-core/commit/96ccc51c7107fbbcea6564cdf71fcedb05364761))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ae0b8ddb6897..a827929b24ef 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.16 + 2.8.17 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 887d638a946d..3e45cccd882d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.16 + 2.8.17 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e9626df9aa73..486bd5afa69f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.16 + 2.8.17 tests From d23e6dbe18d87e7e2c175e8896900460deec67e2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 02:02:15 +0200 Subject: [PATCH 1207/2363] deps: update dependency typing-extensions to v4.3.0 (#1322) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [typing-extensions](https://togithub.com/python/typing_extensions) ([changelog](https://togithub.com/python/typing_extensions/blob/main/CHANGELOG.md)) | `==4.1.1` -> `==4.3.0` | [![age](https://badges.renovateapi.com/packages/pypi/typing-extensions/4.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/typing-extensions/4.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/typing-extensions/4.3.0/compatibility-slim/4.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/typing-extensions/4.3.0/confidence-slim/4.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    python/typing_extensions ### [`v4.3.0`](https://togithub.com/python/typing_extensions/blob/HEAD/CHANGELOG.md#Release-430-July-1-2022) [Compare Source](https://togithub.com/python/typing_extensions/compare/4.2.0...4.3.0) - Add `typing_extensions.NamedTuple`, allowing for generic `NamedTuple`s on Python <3.11 (backport from [python/cpython#​92027](https://togithub.com/python/cpython/issues/92027), by Serhiy Storchaka). Patch by Alex Waygood ([@​AlexWaygood](https://togithub.com/AlexWaygood)). - Adjust `typing_extensions.TypedDict` to allow for generic `TypedDict`s on Python <3.11 (backport from [python/cpython#​27663](https://togithub.com/python/cpython/issues/27663), by Samodya Abey). Patch by Alex Waygood ([@​AlexWaygood](https://togithub.com/AlexWaygood)). ### [`v4.2.0`](https://togithub.com/python/typing_extensions/blob/HEAD/CHANGELOG.md#Release-420-April-17-2022) [Compare Source](https://togithub.com/python/typing_extensions/compare/4.1.1...4.2.0) - Re-export `typing.Unpack` and `typing.TypeVarTuple` on Python 3.11. - Add `ParamSpecArgs` and `ParamSpecKwargs` to `__all__`. - Improve "accepts only single type" error messages. - Improve the distributed package. Patch by Marc Mueller ([@​cdce8p](https://togithub.com/cdce8p)). - Update `typing_extensions.dataclass_transform` to rename the `field_descriptors` parameter to `field_specifiers` and accept arbitrary keyword arguments. - Add `typing_extensions.get_overloads` and `typing_extensions.clear_overloads`, and add registry support to `typing_extensions.overload`. Backport from [python/cpython#​89263](https://togithub.com/python/cpython/issues/89263). - Add `typing_extensions.assert_type`. Backport from bpo-46480. - Drop support for Python 3.6. Original patch by Adam Turner ([@​AA-Turner](https://togithub.com/AA-Turner)).
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From b9b8ed356596bec4be93a8c9e11600995a49e1cd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 02:12:20 +0200 Subject: [PATCH 1208/2363] deps: update dependency cachetools to v5 (#1324) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [cachetools](https://togithub.com/tkem/cachetools) | `==4.2.4` -> `==5.2.0` | [![age](https://badges.renovateapi.com/packages/pypi/cachetools/5.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/cachetools/5.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/cachetools/5.2.0/compatibility-slim/4.2.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/cachetools/5.2.0/confidence-slim/4.2.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    tkem/cachetools ### [`v5.2.0`](https://togithub.com/tkem/cachetools/blob/HEAD/CHANGELOG.rst#v520-2022-05-29) [Compare Source](https://togithub.com/tkem/cachetools/compare/v5.1.0...v5.2.0) \=================== - Add `cachetools.keys.methodkey()`. - Add `cache_clear()` function to decorators. - Add `src` directory to `sys.path` for Sphinx autodoc. - Modernize `func` wrappers. ### [`v5.1.0`](https://togithub.com/tkem/cachetools/blob/HEAD/CHANGELOG.rst#v510-2022-05-15) [Compare Source](https://togithub.com/tkem/cachetools/compare/v5.0.0...v5.1.0) \=================== - Add cache decorator parameters as wrapper function attributes. ### [`v5.0.0`](https://togithub.com/tkem/cachetools/blob/HEAD/CHANGELOG.rst#v500-2021-12-21) [Compare Source](https://togithub.com/tkem/cachetools/compare/v4.2.4...v5.0.0) \=================== - Require Python 3.7 or later (breaking change). - Remove deprecated submodules (breaking change). The `cache`, `fifo`, `lfu`, `lru`, `mru`, `rr` and `ttl` submodules have been deleted. Therefore, statements like `from cachetools.ttl import TTLCache` will no longer work. Use `from cachetools import TTLCache` instead. - Pass `self` to `@cachedmethod` key function (breaking change). The `key` function passed to the `@cachedmethod` decorator is now called as `key(self, *args, **kwargs)`. The default key function has been changed to ignore its first argument, so this should only affect applications using custom key functions with the `@cachedmethod` decorator. - Change exact time of expiration in `TTLCache` (breaking change). `TTLCache` items now get expired if their expiration time is less than *or equal to* `timer()`. For applications using the default `timer()`, this should be barely noticable, but it may affect the use of custom timers with larger tick intervals. Note that this also implies that a `TTLCache` with `ttl=0` can no longer hold any items, since they will expire immediately. - Change `Cache.__repr__()` format (breaking change). String representations of cache instances now use a more compact and efficient format, e.g. `LRUCache({1: 1, 2: 2}, maxsize=10, currsize=2)` - Add TLRU cache implementation. - Documentation improvements.
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 1624dc2cc2d73c2cb1199469a504b0146476b3af Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 17:20:20 +0200 Subject: [PATCH 1209/2363] deps: update dependency click to v8.1.3 (#1309) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [click](https://palletsprojects.com/p/click/) ([changelog](https://click.palletsprojects.com/changes/)) | `==8.0.4` -> `==8.1.3` | [![age](https://badges.renovateapi.com/packages/pypi/click/8.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/click/8.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/click/8.1.3/compatibility-slim/8.0.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/click/8.1.3/confidence-slim/8.0.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 3cb8bdee4d4bc336cf1bd6cce82eab93e919fe78 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 17:44:13 +0200 Subject: [PATCH 1210/2363] deps: update dependency google-cloud-core to v2.3.2 (#1306) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-core](https://togithub.com/googleapis/python-cloud-core) | `==2.3.1` -> `==2.3.2` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/compatibility-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/confidence-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). From 4d029803753b62bd3d395fb41d61fd9d07586275 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 30 Sep 2022 16:44:27 +0200 Subject: [PATCH 1211/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.7 (#1327) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.6` -> `3.21.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.7/compatibility-slim/3.21.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.7/confidence-slim/3.21.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    protocolbuffers/protobuf ### [`v3.21.7`](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.6...v3.21.7) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.6...v3.21.7)
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a827929b24ef..1027d69d14b9 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.6 + 3.21.7 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3e45cccd882d..8ed1cbbf89d5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.6 + 3.21.7 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 486bd5afa69f..e3dd2af117a2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.21.6 + 3.21.7 From 4683a8489e4fd26a7308f4183b5c2d676f784a43 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 30 Sep 2022 23:35:49 +0200 Subject: [PATCH 1212/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.18 (#1328) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1027d69d14b9..24782e002121 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.17 + 2.8.18 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8ed1cbbf89d5..05a7295d8f39 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.17 + 2.8.18 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e3dd2af117a2..96df033b527a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.17 + 2.8.18 tests From 0a42a374882c42eae9b3ecaa55547110a0bdc44a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 3 Oct 2022 01:38:19 +0200 Subject: [PATCH 1213/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.20 (#1329) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.18` -> `2.8.20` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/compatibility-slim/2.8.18)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.20/confidence-slim/2.8.18)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.20`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2820-httpsgithubcomgoogleapisjava-corecomparev2819v2820-2022-10-02) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.19...v2.8.20) ##### Dependencies - Update dependency com.google.api:gax-bom to v2.19.2 ([#​969](https://togithub.com/googleapis/java-core/issues/969)) ([1151449](https://togithub.com/googleapis/java-core/commit/1151449c061ab51c45982444db5f9da9d2ce4fb7)) - Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.6 ([#​967](https://togithub.com/googleapis/java-core/issues/967)) ([4a7b524](https://togithub.com/googleapis/java-core/commit/4a7b524fa366484825bedbc0a4f86d4551a6a0e8)) - Update dependency io.grpc:grpc-bom to v1.49.2 ([#​966](https://togithub.com/googleapis/java-core/issues/966)) ([b7738aa](https://togithub.com/googleapis/java-core/commit/b7738aa71fb9cf0994e4ad1dae4bae433754cda0)) ### [`v2.8.19`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2819-httpsgithubcomgoogleapisjava-corecomparev2818v2819-2022-09-30) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.5 ([#​963](https://togithub.com/googleapis/java-core/issues/963)) ([1ee2f9a](https://togithub.com/googleapis/java-core/commit/1ee2f9acd3968b21974a550b6732fe68b18085f4))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 24782e002121..6c86eb7a3fe6 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.18 + 2.8.20 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 05a7295d8f39..bc604531170f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.18 + 2.8.20 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 96df033b527a..02c78f21f55f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.18 + 2.8.20 tests From 8ede16b2576b273136213aaa66e603c409478761 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 3 Oct 2022 15:48:36 +0200 Subject: [PATCH 1214/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 (#1330) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.3` -> `3.0.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/compatibility-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/confidence-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-dependencies ### [`v3.0.4`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​304-httpsgithubcomgoogleapisjava-shared-dependenciescomparev303v304-2022-10-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.3...v3.0.4) ##### Dependencies - Update dependency cachetools to v5 ([#​816](https://togithub.com/googleapis/java-shared-dependencies/issues/816)) ([3f6c408](https://togithub.com/googleapis/java-shared-dependencies/commit/3f6c408210c931c286235f61c7aadea5bf5cfe4d)) - Update dependency certifi to v2022.9.24 ([#​818](https://togithub.com/googleapis/java-shared-dependencies/issues/818)) ([5f04b97](https://togithub.com/googleapis/java-shared-dependencies/commit/5f04b97c2343146600e8c9ee65afdeb58f5743a6)) - Update dependency charset-normalizer to v2.1.1 ([#​822](https://togithub.com/googleapis/java-shared-dependencies/issues/822)) ([6997c5a](https://togithub.com/googleapis/java-shared-dependencies/commit/6997c5acad937ebe3594330de73261a424d42cf3)) - Update dependency click to v8.1.3 ([#​823](https://togithub.com/googleapis/java-shared-dependencies/issues/823)) ([42bf9f8](https://togithub.com/googleapis/java-shared-dependencies/commit/42bf9f834fdafea60f2be7ccbf7d363e058cd7c2)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.7 ([#​837](https://togithub.com/googleapis/java-shared-dependencies/issues/837)) ([d31e507](https://togithub.com/googleapis/java-shared-dependencies/commit/d31e5077c7e036de5e238e9a611df7ced527574a)) - Update dependency gcp-releasetool to v1.8.8 ([#​819](https://togithub.com/googleapis/java-shared-dependencies/issues/819)) ([8245d97](https://togithub.com/googleapis/java-shared-dependencies/commit/8245d975fb12e81454ec7664f9a7c9809bbac697)) - Update dependency gcp-releasetool to v1.8.9 ([#​846](https://togithub.com/googleapis/java-shared-dependencies/issues/846)) ([04e3283](https://togithub.com/googleapis/java-shared-dependencies/commit/04e32831c6e87c372444901013a747d2d02ce38d)) - Update dependency google-api-core to v2.10.1 ([#​824](https://togithub.com/googleapis/java-shared-dependencies/issues/824)) ([818b9aa](https://togithub.com/googleapis/java-shared-dependencies/commit/818b9aa2ac99d8b1f9b39a74b626122aed5f1d94)) - Update dependency google-auth to v2.12.0 ([#​825](https://togithub.com/googleapis/java-shared-dependencies/issues/825)) ([07c544b](https://togithub.com/googleapis/java-shared-dependencies/commit/07c544b5e0fa9f7110bbc957570f7a405962072e)) - Update dependency google-cloud-core to v2.3.2 ([#​820](https://togithub.com/googleapis/java-shared-dependencies/issues/820)) ([2a219e8](https://togithub.com/googleapis/java-shared-dependencies/commit/2a219e86f187ba5ad72f2570bd58ca6100128c43)) - Update dependency google-cloud-storage to v2.5.0 ([#​826](https://togithub.com/googleapis/java-shared-dependencies/issues/826)) ([bb10d18](https://togithub.com/googleapis/java-shared-dependencies/commit/bb10d1858a515f09d365362ffa0110a5b362c96b)) - Update dependency google-crc32c to v1.5.0 ([#​827](https://togithub.com/googleapis/java-shared-dependencies/issues/827)) ([7e5dae6](https://togithub.com/googleapis/java-shared-dependencies/commit/7e5dae60d667cb84b9ee4f6c977bdc35e79e4cf6)) - Update dependency google-resumable-media to v2.4.0 ([#​838](https://togithub.com/googleapis/java-shared-dependencies/issues/838)) ([ad82d63](https://togithub.com/googleapis/java-shared-dependencies/commit/ad82d6378f64039da383509638fb4782908eb4bc)) - Update dependency googleapis-common-protos to v1.56.4 ([#​821](https://togithub.com/googleapis/java-shared-dependencies/issues/821)) ([93d7745](https://togithub.com/googleapis/java-shared-dependencies/commit/93d77458c9bbf84ec367cdb4caaa41e6f71675c6)) - Update dependency importlib-metadata to v4.12.0 ([#​832](https://togithub.com/googleapis/java-shared-dependencies/issues/832)) ([ee19fb1](https://togithub.com/googleapis/java-shared-dependencies/commit/ee19fb1ca5a2a2e1985297e3b72d44de68bc72e3)) - Update dependency importlib-metadata to v4.13.0 ([#​843](https://togithub.com/googleapis/java-shared-dependencies/issues/843)) ([d2ede60](https://togithub.com/googleapis/java-shared-dependencies/commit/d2ede601eee8c875780c7eb5924623537480c509)) - Update dependency importlib-metadata to v5 ([#​845](https://togithub.com/googleapis/java-shared-dependencies/issues/845)) ([03ac7e8](https://togithub.com/googleapis/java-shared-dependencies/commit/03ac7e800274c5f58d2bc4ddd0561bfcdea1bb27)) - Update dependency io.grpc:grpc-bom to v1.49.1 ([#​802](https://togithub.com/googleapis/java-shared-dependencies/issues/802)) ([b8c54bf](https://togithub.com/googleapis/java-shared-dependencies/commit/b8c54bf8f1ddecc788cee151f8afe42de45bdc9d)) - Update dependency io.grpc:grpc-bom to v1.49.2 ([#​842](https://togithub.com/googleapis/java-shared-dependencies/issues/842)) ([1b1cfa2](https://togithub.com/googleapis/java-shared-dependencies/commit/1b1cfa27d05f7732da12721305cf41dcbebda232)) - Update dependency jeepney to v0.8.0 ([#​833](https://togithub.com/googleapis/java-shared-dependencies/issues/833)) ([15d2f9f](https://togithub.com/googleapis/java-shared-dependencies/commit/15d2f9f52b5a3259db0813df3d2424e256ccb372)) - Update dependency jinja2 to v3.1.2 ([#​834](https://togithub.com/googleapis/java-shared-dependencies/issues/834)) ([c188f95](https://togithub.com/googleapis/java-shared-dependencies/commit/c188f95acdb3349f1c4b3ed56e5fffb75e8fbc8d)) - Update dependency keyring to v23.9.3 ([#​828](https://togithub.com/googleapis/java-shared-dependencies/issues/828)) ([b185aaa](https://togithub.com/googleapis/java-shared-dependencies/commit/b185aaae716d4d97cb64f0426cac0e778f11223d)) - Update dependency markupsafe to v2.1.1 ([#​829](https://togithub.com/googleapis/java-shared-dependencies/issues/829)) ([add2825](https://togithub.com/googleapis/java-shared-dependencies/commit/add2825bd34cd80f529dbe0dadb3c84219177916)) - Update dependency org.threeten:threetenbp to v1.6.2 ([#​808](https://togithub.com/googleapis/java-shared-dependencies/issues/808)) ([2d2eabd](https://togithub.com/googleapis/java-shared-dependencies/commit/2d2eabd14d8150207885ea47280c0f7ff3d2962f)) - Update dependency protobuf to v3.20.2 ([#​830](https://togithub.com/googleapis/java-shared-dependencies/issues/830)) ([5afa76f](https://togithub.com/googleapis/java-shared-dependencies/commit/5afa76f9ef4705aecba49abc7bb93982fb1ecf3e)) - Update dependency protobuf to v3.20.3 ([#​839](https://togithub.com/googleapis/java-shared-dependencies/issues/839)) ([d9fc7dd](https://togithub.com/googleapis/java-shared-dependencies/commit/d9fc7ddd3e663458e6ea3f78a3c6241377df0319)) - Update dependency protobuf to v4 ([#​817](https://togithub.com/googleapis/java-shared-dependencies/issues/817)) ([ee8d154](https://togithub.com/googleapis/java-shared-dependencies/commit/ee8d154287ccd256b4dcfa48f28f5ec61a91fe3e)) - Update dependency pyjwt to v2.5.0 ([#​812](https://togithub.com/googleapis/java-shared-dependencies/issues/812)) ([4d4528e](https://togithub.com/googleapis/java-shared-dependencies/commit/4d4528e8ce269d49b99d2dbc4fcda2dc37a058cb)) - Update dependency requests to v2.28.1 ([#​813](https://togithub.com/googleapis/java-shared-dependencies/issues/813)) ([a3a8d89](https://togithub.com/googleapis/java-shared-dependencies/commit/a3a8d89b0117007a7108553c70aa82dd289e1691)) - Update dependency typing-extensions to v4.3.0 ([#​814](https://togithub.com/googleapis/java-shared-dependencies/issues/814)) ([da875e5](https://togithub.com/googleapis/java-shared-dependencies/commit/da875e5e91fa9d8c177e6c3afc9e34242eb914b7)) - Update dependency zipp to v3.8.1 ([#​815](https://togithub.com/googleapis/java-shared-dependencies/issues/815)) ([15585fd](https://togithub.com/googleapis/java-shared-dependencies/commit/15585fd0216013fe93be011f93f391f6269aa777)) - Update gax.version to v2.19.2 ([#​847](https://togithub.com/googleapis/java-shared-dependencies/issues/847)) ([c4afe1f](https://togithub.com/googleapis/java-shared-dependencies/commit/c4afe1fdc88af29ab039cea618d52c15c90e43e9)) - Update google.common-protos.version to v2.9.3 ([#​803](https://togithub.com/googleapis/java-shared-dependencies/issues/803)) ([a3e8e5e](https://togithub.com/googleapis/java-shared-dependencies/commit/a3e8e5eb53a8da14abf3b8d81a4f34fbb2f3b8f9)) - Update google.common-protos.version to v2.9.5 ([#​831](https://togithub.com/googleapis/java-shared-dependencies/issues/831)) ([1c901db](https://togithub.com/googleapis/java-shared-dependencies/commit/1c901db8a7740afaec3e809e51d4d369fbf469c4)) - Update google.common-protos.version to v2.9.6 ([#​844](https://togithub.com/googleapis/java-shared-dependencies/issues/844)) ([9e156be](https://togithub.com/googleapis/java-shared-dependencies/commit/9e156be59bd89959f04252c3045b8cd7a8be8070)) - Update google.core.version to v2.8.13 ([#​804](https://togithub.com/googleapis/java-shared-dependencies/issues/804)) ([45ae571](https://togithub.com/googleapis/java-shared-dependencies/commit/45ae57142bd6d5334eedd46243736b200a459795)) - Update google.core.version to v2.8.14 ([#​805](https://togithub.com/googleapis/java-shared-dependencies/issues/805)) ([02c9397](https://togithub.com/googleapis/java-shared-dependencies/commit/02c9397a84bf3fcca8d04e4c9867cc47689abde2)) - Update google.core.version to v2.8.15 ([#​807](https://togithub.com/googleapis/java-shared-dependencies/issues/807)) ([980856c](https://togithub.com/googleapis/java-shared-dependencies/commit/980856c43981992a3d08f69eac83aeada752d244)) - Update google.core.version to v2.8.16 ([#​810](https://togithub.com/googleapis/java-shared-dependencies/issues/810)) ([c2b2c9a](https://togithub.com/googleapis/java-shared-dependencies/commit/c2b2c9a327fd588f69524bb93a17e5d4ae8f5a42)) - Update google.core.version to v2.8.17 ([#​835](https://togithub.com/googleapis/java-shared-dependencies/issues/835)) ([3def21d](https://togithub.com/googleapis/java-shared-dependencies/commit/3def21df2e4253e3df0da064b6c4e472df079d2b)) - Update google.core.version to v2.8.18 ([#​840](https://togithub.com/googleapis/java-shared-dependencies/issues/840)) ([46566dc](https://togithub.com/googleapis/java-shared-dependencies/commit/46566dc18c4b1ed41c482b4ce21b92651e2f9dc5)) - Update google.core.version to v2.8.19 ([#​841](https://togithub.com/googleapis/java-shared-dependencies/issues/841)) ([99afde9](https://togithub.com/googleapis/java-shared-dependencies/commit/99afde97ea498f549eb75cc58c4ed88edf81b20d)) - Update google.core.version to v2.8.20 ([#​848](https://togithub.com/googleapis/java-shared-dependencies/issues/848)) ([c980c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/c980c4fdfc8890d812b4881ba5b87bfd21269a5f)) - Update iam.version to v1.6.1 ([#​806](https://togithub.com/googleapis/java-shared-dependencies/issues/806)) ([a50158d](https://togithub.com/googleapis/java-shared-dependencies/commit/a50158d3b83cf8e02d8ee08c94e512b5669a927b)) - Update iam.version to v1.6.2 ([#​849](https://togithub.com/googleapis/java-shared-dependencies/issues/849)) ([e43ac96](https://togithub.com/googleapis/java-shared-dependencies/commit/e43ac96bc189a096a9311c9b03e85c86bea07e99))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d78632b3bbdf..0f7698fe9d77 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.3 + 3.0.4 pom import From e6292a3a4a8bb297456b4d86cd6c46fe694c6621 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 3 Oct 2022 13:16:22 -0400 Subject: [PATCH 1215/2363] chore(main): release 1.120.19 (#1298) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 33 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 ++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++-- 8 files changed, 51 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 17205d450f9b..a066fdd57a68 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,38 @@ # Changelog +## [1.120.19](https://github.com/googleapis/java-pubsub/compare/v1.120.18...v1.120.19) (2022-10-03) + + +### Dependencies + +* Update dependency cachetools to v5 ([#1324](https://github.com/googleapis/java-pubsub/issues/1324)) ([72b6d5f](https://github.com/googleapis/java-pubsub/commit/72b6d5f7ce6b464c1f1653699178e989c7eb6a75)) +* Update dependency certifi to v2022.9.24 ([#1303](https://github.com/googleapis/java-pubsub/issues/1303)) ([dc05237](https://github.com/googleapis/java-pubsub/commit/dc052371a1a83a194cb0098f93a8e8dd57d8e5d4)) +* Update dependency charset-normalizer to v2.1.1 ([#1308](https://github.com/googleapis/java-pubsub/issues/1308)) ([fedf2e1](https://github.com/googleapis/java-pubsub/commit/fedf2e1f98bf77de6d6cac18e745819e8250df57)) +* Update dependency click to v8.1.3 ([#1309](https://github.com/googleapis/java-pubsub/issues/1309)) ([0ddcb5b](https://github.com/googleapis/java-pubsub/commit/0ddcb5b324ecc4e3a8cc98bc2ef0d210061a79d5)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.15 ([#1299](https://github.com/googleapis/java-pubsub/issues/1299)) ([11f220c](https://github.com/googleapis/java-pubsub/commit/11f220ca32bf82c87746837e12ae878ee9578704)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.16 ([#1301](https://github.com/googleapis/java-pubsub/issues/1301)) ([186c794](https://github.com/googleapis/java-pubsub/commit/186c79497057847aa577b47d169e3535274b0a2d)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.17 ([#1326](https://github.com/googleapis/java-pubsub/issues/1326)) ([361a2f2](https://github.com/googleapis/java-pubsub/commit/361a2f2ae44098d280c1244479954638d4321a69)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.18 ([#1328](https://github.com/googleapis/java-pubsub/issues/1328)) ([ae23532](https://github.com/googleapis/java-pubsub/commit/ae23532092c80e3b4abe8e1b51f2ef67bb991428)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.20 ([#1329](https://github.com/googleapis/java-pubsub/issues/1329)) ([c37b88e](https://github.com/googleapis/java-pubsub/commit/c37b88e209dd1d58035385676d7c1dfca0da2c4e)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#1330](https://github.com/googleapis/java-pubsub/issues/1330)) ([0f6cc6c](https://github.com/googleapis/java-pubsub/commit/0f6cc6c01e6afeb717487e7435575d243bd0203d)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.21.7 ([#1327](https://github.com/googleapis/java-pubsub/issues/1327)) ([6355eb0](https://github.com/googleapis/java-pubsub/commit/6355eb0ed1fa94a36fbb0169e4b6dc7faed165ff)) +* Update dependency gcp-releasetool to v1.8.8 ([#1304](https://github.com/googleapis/java-pubsub/issues/1304)) ([1c7c6eb](https://github.com/googleapis/java-pubsub/commit/1c7c6eb10a184919d36f7738f4594cd7aff9f87b)) +* Update dependency google-api-core to v2.10.1 ([#1310](https://github.com/googleapis/java-pubsub/issues/1310)) ([14725f2](https://github.com/googleapis/java-pubsub/commit/14725f248082c4397b0058d25984a61a9bf2c5c9)) +* Update dependency google-auth to v2.11.1 ([#1305](https://github.com/googleapis/java-pubsub/issues/1305)) ([a6954d1](https://github.com/googleapis/java-pubsub/commit/a6954d1cf17cb0247e5e153001ec983fb957b410)) +* Update dependency google-auth to v2.12.0 ([#1313](https://github.com/googleapis/java-pubsub/issues/1313)) ([ffcebe4](https://github.com/googleapis/java-pubsub/commit/ffcebe43542d4ab3b2cea1c2dcb5e6b345c4905b)) +* Update dependency google-cloud-core to v2.3.2 ([#1306](https://github.com/googleapis/java-pubsub/issues/1306)) ([fbb4460](https://github.com/googleapis/java-pubsub/commit/fbb44605794a350889ae300f697b76ed9ff41af2)) +* Update dependency importlib-metadata to v4.12.0 ([#1314](https://github.com/googleapis/java-pubsub/issues/1314)) ([e319df0](https://github.com/googleapis/java-pubsub/commit/e319df0bce76b1d8ba25b410225377d624070926)) +* Update dependency jeepney to v0.8.0 ([#1315](https://github.com/googleapis/java-pubsub/issues/1315)) ([5ed336e](https://github.com/googleapis/java-pubsub/commit/5ed336ef0b29fa89a1a508fbc2d3870b5ecff6d3)) +* Update dependency jinja2 to v3.1.2 ([#1316](https://github.com/googleapis/java-pubsub/issues/1316)) ([14ecdc6](https://github.com/googleapis/java-pubsub/commit/14ecdc6f3492e404957f1b16744a4928198d9e92)) +* Update dependency keyring to v23.9.3 ([#1317](https://github.com/googleapis/java-pubsub/issues/1317)) ([3e783d4](https://github.com/googleapis/java-pubsub/commit/3e783d47e8face65ef33b5bc7ca0bf7f0e35ca02)) +* Update dependency markupsafe to v2.1.1 ([#1318](https://github.com/googleapis/java-pubsub/issues/1318)) ([ecd9c76](https://github.com/googleapis/java-pubsub/commit/ecd9c76e2a9cce5c7f9dd6e9a8b84f748f69666a)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.14 ([#1297](https://github.com/googleapis/java-pubsub/issues/1297)) ([7e7ce60](https://github.com/googleapis/java-pubsub/commit/7e7ce60533386afdcd1b313603c468125ad0cb7d)) +* Update dependency protobuf to v3.20.2 ([#1319](https://github.com/googleapis/java-pubsub/issues/1319)) ([f5123fa](https://github.com/googleapis/java-pubsub/commit/f5123fa69ec7ac191d13c86823d105332853d944)) +* Update dependency pyjwt to v2.5.0 ([#1320](https://github.com/googleapis/java-pubsub/issues/1320)) ([a568462](https://github.com/googleapis/java-pubsub/commit/a568462b971908eb3424c9bbb5f49a6543c80fd3)) +* Update dependency requests to v2.28.1 ([#1321](https://github.com/googleapis/java-pubsub/issues/1321)) ([41b105a](https://github.com/googleapis/java-pubsub/commit/41b105a798aa9bcf2ce7ccde34efe119e76d963b)) +* Update dependency typing-extensions to v4.3.0 ([#1322](https://github.com/googleapis/java-pubsub/issues/1322)) ([288cd7e](https://github.com/googleapis/java-pubsub/commit/288cd7eaf90e219c735a89822e3858085e8423fd)) +* Update dependency zipp to v3.8.1 ([#1323](https://github.com/googleapis/java-pubsub/issues/1323)) ([e78a284](https://github.com/googleapis/java-pubsub/commit/e78a284cf07b9bac56087bbbb9f940ee976a3b4a)) + ## [1.120.18](https://github.com/googleapis/java-pubsub/compare/v1.120.17...v1.120.18) (2022-09-21) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4ca0608d837a..b65aae90edd6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.19-SNAPSHOT + 1.120.19 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.19-SNAPSHOT + 1.120.19 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.19-SNAPSHOT + 1.102.19 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.19-SNAPSHOT + 1.102.19
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index aa215fc3bb68..5d5f90042578 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.19-SNAPSHOT + 1.120.19 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.19-SNAPSHOT + 1.120.19 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1aec9deb7bb6..ed3f50284514 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.19-SNAPSHOT + 1.102.19 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.19-SNAPSHOT + 1.120.19 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0f7698fe9d77..5b5bc74b352f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.19-SNAPSHOT + 1.120.19 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.19-SNAPSHOT + 1.102.19 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.19-SNAPSHOT + 1.102.19 com.google.cloud google-cloud-pubsub - 1.120.19-SNAPSHOT + 1.120.19 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a464d75da898..99c8cee699e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.19-SNAPSHOT + 1.102.19 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.19-SNAPSHOT + 1.120.19 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bc604531170f..81cc5f55318d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.19-SNAPSHOT + 1.120.19 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7928e3b9319d..4b3ab0d17ead 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.18:1.120.19-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.18:1.102.19-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.18:1.102.19-SNAPSHOT +google-cloud-pubsub:1.120.19:1.120.19 +grpc-google-cloud-pubsub-v1:1.102.19:1.102.19 +proto-google-cloud-pubsub-v1:1.102.19:1.102.19 From 243ec5546455dcbfdbbf5a8d76d85652fe29ea89 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 3 Oct 2022 20:26:26 +0000 Subject: [PATCH 1216/2363] chore(main): release 1.120.20-SNAPSHOT (#1331) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b65aae90edd6..e7e8f06c5115 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.19 + 1.120.20-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.19 + 1.120.20-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.19 + 1.102.20-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.19 + 1.102.20-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5d5f90042578..45498741e8fc 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.19 + 1.120.20-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.19 + 1.120.20-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ed3f50284514..2444a7194dc5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.19 + 1.102.20-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.19 + 1.120.20-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5b5bc74b352f..ce61801dd5eb 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.19 + 1.120.20-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.19 + 1.102.20-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.19 + 1.102.20-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.19 + 1.120.20-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 99c8cee699e0..bfbc924cdef4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.19 + 1.102.20-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.19 + 1.120.20-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 81cc5f55318d..7f46be1e630d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.19 + 1.120.20-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4b3ab0d17ead..65e3deb8c81a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.19:1.120.19 -grpc-google-cloud-pubsub-v1:1.102.19:1.102.19 -proto-google-cloud-pubsub-v1:1.102.19:1.102.19 +google-cloud-pubsub:1.120.19:1.120.20-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.19:1.102.20-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.19:1.102.20-SNAPSHOT From ef492857a61472eb4c939fffbd120d27feedc1fc Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Tue, 4 Oct 2022 13:28:17 -0400 Subject: [PATCH 1217/2363] chore: added handwritten files to owlbot (#1333) Adding handwritten files to owlbot so they do not get deleted. Added: - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerImpl.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java" --- java-pubsub/.github/.OwlBot.yaml | 2 ++ java-pubsub/README.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.yaml b/java-pubsub/.github/.OwlBot.yaml index e768d51d185b..f5302bbe83be 100644 --- a/java-pubsub/.github/.OwlBot.yaml +++ b/java-pubsub/.github/.OwlBot.yaml @@ -44,7 +44,9 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerImpl.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckResponse.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" diff --git a/java-pubsub/README.md b/java-pubsub/README.md index fc528d0aaf8b..8d9a5307016c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.18' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.19' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.18" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.19" ``` ## Authentication From f94e80a5eaebfc64d31fba44d2a243b2d5fc8872 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 4 Oct 2022 13:59:01 -0400 Subject: [PATCH 1218/2363] chore(bazel): update protobuf to v3.21.7 (#1262) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(bazel): update protobuf to v3.21.7 PiperOrigin-RevId: 477955264 Source-Link: https://github.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9 chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/SchemaServiceClient.java | 231 +++++-- .../pubsub/v1/SchemaServiceSettings.java | 12 +- .../pubsub/v1/SubscriptionAdminClient.java | 511 ++++++++++---- .../pubsub/v1/SubscriptionAdminSettings.java | 7 +- .../cloud/pubsub/v1/TopicAdminClient.java | 315 ++++++--- .../cloud/pubsub/v1/TopicAdminSettings.java | 12 +- .../google/cloud/pubsub/v1/package-info.java | 21 +- .../pubsub/v1/stub/HttpJsonPublisherStub.java | 11 +- .../v1/stub/HttpJsonSchemaServiceStub.java | 11 +- .../v1/stub/HttpJsonSubscriberStub.java | 26 +- .../pubsub/v1/stub/PublisherStubSettings.java | 12 +- .../v1/stub/SchemaServiceStubSettings.java | 12 +- .../v1/stub/SubscriberStubSettings.java | 7 +- .../google/pubsub/v1/AcknowledgeRequest.java | 133 ++-- .../com/google/pubsub/v1/BigQueryConfig.java | 158 ++--- .../google/pubsub/v1/CreateSchemaRequest.java | 145 ++-- .../pubsub/v1/CreateSnapshotRequest.java | 150 ++-- .../google/pubsub/v1/DeadLetterPolicy.java | 123 ++-- .../google/pubsub/v1/DeleteSchemaRequest.java | 112 ++- .../pubsub/v1/DeleteSnapshotRequest.java | 112 ++- .../pubsub/v1/DeleteSubscriptionRequest.java | 112 ++- .../google/pubsub/v1/DeleteTopicRequest.java | 112 ++- .../pubsub/v1/DetachSubscriptionRequest.java | 112 ++- .../pubsub/v1/DetachSubscriptionResponse.java | 99 ++- .../google/pubsub/v1/ExpirationPolicy.java | 119 ++-- .../google/pubsub/v1/GetSchemaRequest.java | 125 ++-- .../google/pubsub/v1/GetSnapshotRequest.java | 112 ++- .../pubsub/v1/GetSubscriptionRequest.java | 112 ++- .../com/google/pubsub/v1/GetTopicRequest.java | 112 ++- .../google/pubsub/v1/ListSchemasRequest.java | 149 ++-- .../google/pubsub/v1/ListSchemasResponse.java | 143 ++-- .../pubsub/v1/ListSnapshotsRequest.java | 136 ++-- .../pubsub/v1/ListSnapshotsResponse.java | 143 ++-- .../pubsub/v1/ListSubscriptionsRequest.java | 136 ++-- .../pubsub/v1/ListSubscriptionsResponse.java | 144 ++-- .../pubsub/v1/ListTopicSnapshotsRequest.java | 136 ++-- .../pubsub/v1/ListTopicSnapshotsResponse.java | 133 ++-- .../v1/ListTopicSubscriptionsRequest.java | 137 ++-- .../v1/ListTopicSubscriptionsResponse.java | 134 ++-- .../google/pubsub/v1/ListTopicsRequest.java | 136 ++-- .../google/pubsub/v1/ListTopicsResponse.java | 143 ++-- .../pubsub/v1/MessageStoragePolicy.java | 120 ++-- .../pubsub/v1/ModifyAckDeadlineRequest.java | 144 ++-- .../pubsub/v1/ModifyPushConfigRequest.java | 133 ++-- .../com/google/pubsub/v1/PublishRequest.java | 145 ++-- .../com/google/pubsub/v1/PublishResponse.java | 120 ++-- .../com/google/pubsub/v1/PubsubMessage.java | 184 ++--- .../com/google/pubsub/v1/PullRequest.java | 134 ++-- .../com/google/pubsub/v1/PullResponse.java | 132 ++-- .../java/com/google/pubsub/v1/PushConfig.java | 292 ++++---- .../com/google/pubsub/v1/ReceivedMessage.java | 144 ++-- .../com/google/pubsub/v1/RetryPolicy.java | 141 ++-- .../java/com/google/pubsub/v1/Schema.java | 138 ++-- .../com/google/pubsub/v1/SchemaSettings.java | 125 ++-- .../com/google/pubsub/v1/SeekRequest.java | 150 ++-- .../com/google/pubsub/v1/SeekResponse.java | 99 ++- .../java/com/google/pubsub/v1/Snapshot.java | 171 ++--- .../pubsub/v1/StreamingPullRequest.java | 243 +++---- .../pubsub/v1/StreamingPullResponse.java | 639 +++++++----------- .../com/google/pubsub/v1/Subscription.java | 385 ++++------- .../main/java/com/google/pubsub/v1/Topic.java | 228 +++---- .../pubsub/v1/UpdateSnapshotRequest.java | 141 ++-- .../pubsub/v1/UpdateSubscriptionRequest.java | 141 ++-- .../google/pubsub/v1/UpdateTopicRequest.java | 140 ++-- .../pubsub/v1/ValidateMessageRequest.java | 174 ++--- .../pubsub/v1/ValidateMessageResponse.java | 99 ++- .../pubsub/v1/ValidateSchemaRequest.java | 132 ++-- .../pubsub/v1/ValidateSchemaResponse.java | 99 ++- 68 files changed, 4189 insertions(+), 5410 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 0877de078468..475877648dac 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -58,8 +58,11 @@ * calls that map to API methods. Sample code to get started: * *
    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
      *   ProjectName parent = ProjectName.of("[PROJECT]");
      *   Schema schema = Schema.newBuilder().build();
    @@ -97,8 +100,11 @@
      * 

    To customize credentials: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * SchemaServiceSettings schemaServiceSettings =
      *     SchemaServiceSettings.newBuilder()
      *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    @@ -109,8 +115,11 @@
      * 

    To customize the endpoint: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * SchemaServiceSettings schemaServiceSettings =
      *     SchemaServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
      * SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings);
    @@ -120,8 +129,11 @@
      * the wire:
      *
      * 
    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * SchemaServiceSettings schemaServiceSettings =
      *     SchemaServiceSettings.newBuilder()
      *         .setTransportChannelProvider(
    @@ -189,8 +201,11 @@ public SchemaServiceStub getStub() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ProjectName parent = ProjectName.of("[PROJECT]");
        *   Schema schema = Schema.newBuilder().build();
    @@ -227,8 +242,11 @@ public final Schema createSchema(ProjectName parent, Schema schema, String schem
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   String parent = ProjectName.of("[PROJECT]").toString();
        *   Schema schema = Schema.newBuilder().build();
    @@ -265,8 +283,11 @@ public final Schema createSchema(String parent, Schema schema, String schemaId)
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   CreateSchemaRequest request =
        *       CreateSchemaRequest.newBuilder()
    @@ -292,8 +313,11 @@ public final Schema createSchema(CreateSchemaRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   CreateSchemaRequest request =
        *       CreateSchemaRequest.newBuilder()
    @@ -318,8 +342,11 @@ public final UnaryCallable createSchemaCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
        *   Schema response = schemaServiceClient.getSchema(name);
    @@ -343,8 +370,11 @@ public final Schema getSchema(SchemaName name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
        *   Schema response = schemaServiceClient.getSchema(name);
    @@ -367,8 +397,11 @@ public final Schema getSchema(String name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   GetSchemaRequest request =
        *       GetSchemaRequest.newBuilder()
    @@ -393,8 +426,11 @@ public final Schema getSchema(GetSchemaRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   GetSchemaRequest request =
        *       GetSchemaRequest.newBuilder()
    @@ -418,8 +454,11 @@ public final UnaryCallable getSchemaCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ProjectName parent = ProjectName.of("[PROJECT]");
        *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
    @@ -447,8 +486,11 @@ public final ListSchemasPagedResponse listSchemas(ProjectName parent) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   String parent = ProjectName.of("[PROJECT]").toString();
        *   for (Schema element : schemaServiceClient.listSchemas(parent).iterateAll()) {
    @@ -473,8 +515,11 @@ public final ListSchemasPagedResponse listSchemas(String parent) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ListSchemasRequest request =
        *       ListSchemasRequest.newBuilder()
    @@ -503,8 +548,11 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ListSchemasRequest request =
        *       ListSchemasRequest.newBuilder()
    @@ -533,8 +581,11 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ListSchemasRequest request =
        *       ListSchemasRequest.newBuilder()
    @@ -569,8 +620,11 @@ public final UnaryCallable listSchemasC
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
        *   schemaServiceClient.deleteSchema(name);
    @@ -594,8 +648,11 @@ public final void deleteSchema(SchemaName name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
        *   schemaServiceClient.deleteSchema(name);
    @@ -618,8 +675,11 @@ public final void deleteSchema(String name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   DeleteSchemaRequest request =
        *       DeleteSchemaRequest.newBuilder()
    @@ -643,8 +703,11 @@ public final void deleteSchema(DeleteSchemaRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   DeleteSchemaRequest request =
        *       DeleteSchemaRequest.newBuilder()
    @@ -667,8 +730,11 @@ public final UnaryCallable deleteSchemaCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ProjectName parent = ProjectName.of("[PROJECT]");
        *   Schema schema = Schema.newBuilder().build();
    @@ -697,8 +763,11 @@ public final ValidateSchemaResponse validateSchema(ProjectName parent, Schema sc
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   String parent = ProjectName.of("[PROJECT]").toString();
        *   Schema schema = Schema.newBuilder().build();
    @@ -724,8 +793,11 @@ public final ValidateSchemaResponse validateSchema(String parent, Schema schema)
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ValidateSchemaRequest request =
        *       ValidateSchemaRequest.newBuilder()
    @@ -750,8 +822,11 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ValidateSchemaRequest request =
        *       ValidateSchemaRequest.newBuilder()
    @@ -777,8 +852,11 @@ public final ValidateSchemaResponse validateSchema(ValidateSchemaRequest request
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ValidateMessageRequest request =
        *       ValidateMessageRequest.newBuilder()
    @@ -804,8 +882,11 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   ValidateMessageRequest request =
        *       ValidateMessageRequest.newBuilder()
    @@ -834,8 +915,11 @@ public final ValidateMessageResponse validateMessage(ValidateMessageRequest requ
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -863,8 +947,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -890,8 +977,11 @@ public final UnaryCallable setIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -917,8 +1007,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -947,8 +1040,11 @@ public final UnaryCallable getIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    @@ -978,8 +1074,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
    index 128405e64613..4d13f3660639 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java
    @@ -69,16 +69,16 @@
      * 

    For example, to set the total timeout of createSchema to 30 seconds: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * SchemaServiceSettings.Builder schemaServiceSettingsBuilder = SchemaServiceSettings.newBuilder();
      * schemaServiceSettingsBuilder
      *     .createSchemaSettings()
      *     .setRetrySettings(
    - *         schemaServiceSettingsBuilder
    - *             .createSchemaSettings()
    - *             .getRetrySettings()
    - *             .toBuilder()
    + *         schemaServiceSettingsBuilder.createSchemaSettings().getRetrySettings().toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    index 85556d5de1c1..4370109a2b84 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java
    @@ -79,8 +79,11 @@
      * calls that map to API methods. Sample code to get started:
      *
      * 
    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    @@ -121,8 +124,11 @@
      * 

    To customize credentials: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * SubscriptionAdminSettings subscriptionAdminSettings =
      *     SubscriptionAdminSettings.newBuilder()
      *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    @@ -134,8 +140,11 @@
      * 

    To customize the endpoint: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * SubscriptionAdminSettings subscriptionAdminSettings =
      *     SubscriptionAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
      * SubscriptionAdminClient subscriptionAdminClient =
    @@ -146,8 +155,11 @@
      * the wire:
      *
      * 
    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * SubscriptionAdminSettings subscriptionAdminSettings =
      *     SubscriptionAdminSettings.newBuilder()
      *         .setTransportChannelProvider(
    @@ -225,8 +237,11 @@ public SubscriberStub getStub() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    @@ -293,8 +308,11 @@ public final Subscription createSubscription(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    @@ -361,8 +379,11 @@ public final Subscription createSubscription(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    @@ -429,8 +450,11 @@ public final Subscription createSubscription(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
    @@ -497,8 +521,11 @@ public final Subscription createSubscription(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   Subscription request =
        *       Subscription.newBuilder()
    @@ -756,8 +783,11 @@ public final Subscription createSubscription(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   Subscription request =
        *       Subscription.newBuilder()
    @@ -796,8 +826,11 @@ public final UnaryCallable createSubscriptionCallabl
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
    @@ -823,8 +856,11 @@ public final Subscription getSubscription(SubscriptionName subscription) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
    @@ -848,8 +884,11 @@ public final Subscription getSubscription(String subscription) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetSubscriptionRequest request =
        *       GetSubscriptionRequest.newBuilder()
    @@ -900,8 +939,11 @@ public final Subscription getSubscription(ProjectSubscriptionName subscription)
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetSubscriptionRequest request =
        *       GetSubscriptionRequest.newBuilder()
    @@ -926,8 +968,11 @@ public final UnaryCallable getSubscription
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   UpdateSubscriptionRequest request =
        *       UpdateSubscriptionRequest.newBuilder()
    @@ -953,8 +998,11 @@ public final Subscription updateSubscription(UpdateSubscriptionRequest request)
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   UpdateSubscriptionRequest request =
        *       UpdateSubscriptionRequest.newBuilder()
    @@ -979,8 +1027,11 @@ public final UnaryCallable updateSubscr
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectName project = ProjectName.of("[PROJECT]");
        *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
    @@ -1008,8 +1059,11 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String project = ProjectName.of("[PROJECT]").toString();
        *   for (Subscription element : subscriptionAdminClient.listSubscriptions(project).iterateAll()) {
    @@ -1035,8 +1089,11 @@ public final ListSubscriptionsPagedResponse listSubscriptions(String project) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSubscriptionsRequest request =
        *       ListSubscriptionsRequest.newBuilder()
    @@ -1064,8 +1121,11 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSubscriptionsRequest request =
        *       ListSubscriptionsRequest.newBuilder()
    @@ -1094,8 +1154,11 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSubscriptionsRequest request =
        *       ListSubscriptionsRequest.newBuilder()
    @@ -1134,8 +1197,11 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   subscriptionAdminClient.deleteSubscription(subscription);
    @@ -1164,8 +1230,11 @@ public final void deleteSubscription(SubscriptionName subscription) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   subscriptionAdminClient.deleteSubscription(subscription);
    @@ -1192,8 +1261,11 @@ public final void deleteSubscription(String subscription) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   DeleteSubscriptionRequest request =
        *       DeleteSubscriptionRequest.newBuilder()
    @@ -1250,8 +1322,11 @@ public final void deleteSubscription(ProjectSubscriptionName subscription) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   DeleteSubscriptionRequest request =
        *       DeleteSubscriptionRequest.newBuilder()
    @@ -1278,8 +1353,11 @@ public final UnaryCallable deleteSubscriptionC
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   List ackIds = new ArrayList<>();
    @@ -1321,8 +1399,11 @@ public final void modifyAckDeadline(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   List ackIds = new ArrayList<>();
    @@ -1364,8 +1445,11 @@ public final void modifyAckDeadline(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyAckDeadlineRequest request =
        *       ModifyAckDeadlineRequest.newBuilder()
    @@ -1437,8 +1521,11 @@ final void modifyAckDeadline(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyAckDeadlineRequest request =
        *       ModifyAckDeadlineRequest.newBuilder()
    @@ -1468,8 +1555,11 @@ public final UnaryCallable modifyAckDeadlineCal
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   List ackIds = new ArrayList<>();
    @@ -1503,8 +1593,11 @@ public final void acknowledge(SubscriptionName subscription, List ackIds
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   List ackIds = new ArrayList<>();
    @@ -1535,8 +1628,11 @@ public final void acknowledge(String subscription, List ackIds) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   AcknowledgeRequest request =
        *       AcknowledgeRequest.newBuilder()
    @@ -1600,8 +1696,11 @@ public final void acknowledge(ProjectSubscriptionName subscription, List
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   AcknowledgeRequest request =
        *       AcknowledgeRequest.newBuilder()
    @@ -1626,8 +1725,11 @@ public final UnaryCallable acknowledgeCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   int maxMessages = 496131527;
    @@ -1658,8 +1760,11 @@ public final PullResponse pull(SubscriptionName subscription, int maxMessages) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   int maxMessages = 496131527;
    @@ -1687,8 +1792,11 @@ public final PullResponse pull(String subscription, int maxMessages) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   boolean returnImmediately = true;
    @@ -1729,8 +1837,11 @@ public final PullResponse pull(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   boolean returnImmediately = true;
    @@ -1770,8 +1881,11 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   PullRequest request =
        *       PullRequest.newBuilder()
    @@ -1872,8 +1986,11 @@ final PullResponse pull(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   PullRequest request =
        *       PullRequest.newBuilder()
    @@ -1903,8 +2020,11 @@ public final UnaryCallable pullCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   BidiStream bidiStream =
        *       subscriptionAdminClient.streamingPullCallable().call();
    @@ -1943,8 +2063,11 @@ public final UnaryCallable pullCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
    @@ -1981,8 +2104,11 @@ public final void modifyPushConfig(SubscriptionName subscription, PushConfig pus
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
        *   PushConfig pushConfig = PushConfig.newBuilder().build();
    @@ -2019,8 +2145,11 @@ public final void modifyPushConfig(String subscription, PushConfig pushConfig) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyPushConfigRequest request =
        *       ModifyPushConfigRequest.newBuilder()
    @@ -2088,8 +2217,11 @@ public final void modifyPushConfig(ProjectSubscriptionName subscription, PushCon
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ModifyPushConfigRequest request =
        *       ModifyPushConfigRequest.newBuilder()
    @@ -2117,8 +2249,11 @@ public final UnaryCallable modifyPushConfigCalla
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    @@ -2147,8 +2282,11 @@ public final Snapshot getSnapshot(SnapshotName snapshot) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
    @@ -2174,8 +2312,11 @@ public final Snapshot getSnapshot(String snapshot) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetSnapshotRequest request =
        *       GetSnapshotRequest.newBuilder()
    @@ -2232,8 +2373,11 @@ public final Snapshot getSnapshot(ProjectSnapshotName snapshot) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetSnapshotRequest request =
        *       GetSnapshotRequest.newBuilder()
    @@ -2260,8 +2404,11 @@ public final UnaryCallable getSnapshotCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ProjectName project = ProjectName.of("[PROJECT]");
        *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
    @@ -2292,8 +2439,11 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String project = ProjectName.of("[PROJECT]").toString();
        *   for (Snapshot element : subscriptionAdminClient.listSnapshots(project).iterateAll()) {
    @@ -2321,8 +2471,11 @@ public final ListSnapshotsPagedResponse listSnapshots(String project) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSnapshotsRequest request =
        *       ListSnapshotsRequest.newBuilder()
    @@ -2353,8 +2506,11 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSnapshotsRequest request =
        *       ListSnapshotsRequest.newBuilder()
    @@ -2386,8 +2542,11 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   ListSnapshotsRequest request =
        *       ListSnapshotsRequest.newBuilder()
    @@ -2433,8 +2592,11 @@ public final UnaryCallable listSnap
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    @@ -2483,8 +2645,11 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SnapshotName name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    @@ -2533,8 +2698,11 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   SubscriptionName subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
    @@ -2583,8 +2751,11 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription)
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String name = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   String subscription = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
    @@ -2630,8 +2801,11 @@ public final Snapshot createSnapshot(String name, String subscription) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   CreateSnapshotRequest request =
        *       CreateSnapshotRequest.newBuilder()
    @@ -2819,8 +2993,11 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   CreateSnapshotRequest request =
        *       CreateSnapshotRequest.newBuilder()
    @@ -2849,8 +3026,11 @@ public final UnaryCallable createSnapshotCallab
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   UpdateSnapshotRequest request =
        *       UpdateSnapshotRequest.newBuilder()
    @@ -2878,8 +3058,11 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   UpdateSnapshotRequest request =
        *       UpdateSnapshotRequest.newBuilder()
    @@ -2910,8 +3093,11 @@ public final UnaryCallable updateSnapshotCallab
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SnapshotName snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]");
        *   subscriptionAdminClient.deleteSnapshot(snapshot);
    @@ -2943,8 +3129,11 @@ public final void deleteSnapshot(SnapshotName snapshot) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   String snapshot = SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
        *   subscriptionAdminClient.deleteSnapshot(snapshot);
    @@ -2974,8 +3163,11 @@ public final void deleteSnapshot(String snapshot) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   DeleteSnapshotRequest request =
        *       DeleteSnapshotRequest.newBuilder()
    @@ -3038,8 +3230,11 @@ public final void deleteSnapshot(ProjectSnapshotName snapshot) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   DeleteSnapshotRequest request =
        *       DeleteSnapshotRequest.newBuilder()
    @@ -3068,8 +3263,11 @@ public final UnaryCallable deleteSnapshotCallable(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SeekRequest request =
        *       SeekRequest.newBuilder()
    @@ -3098,8 +3296,11 @@ public final SeekResponse seek(SeekRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SeekRequest request =
        *       SeekRequest.newBuilder()
    @@ -3124,8 +3325,11 @@ public final UnaryCallable seekCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -3184,8 +3388,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -3211,8 +3418,11 @@ public final UnaryCallable setIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -3263,8 +3473,11 @@ public final Policy getIamPolicy(String resource) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -3293,8 +3506,11 @@ public final UnaryCallable getIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    @@ -3362,8 +3578,11 @@ public final TestIamPermissionsResponse testIamPermissions(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
    index c5c56f91d5dd..1dee81f2ce6e 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java
    @@ -83,8 +83,11 @@
      * 

    For example, to set the total timeout of createSubscription to 30 seconds: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder =
      *     SubscriptionAdminSettings.newBuilder();
      * subscriptionAdminSettingsBuilder
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    index d1120f246f9a..8d9b5f91b88d 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java
    @@ -65,8 +65,11 @@
      * calls that map to API methods. Sample code to get started:
      *
      * 
    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   Topic response = topicAdminClient.createTopic(name);
    @@ -102,8 +105,11 @@
      * 

    To customize credentials: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * TopicAdminSettings topicAdminSettings =
      *     TopicAdminSettings.newBuilder()
      *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    @@ -114,8 +120,11 @@
      * 

    To customize the endpoint: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * TopicAdminSettings topicAdminSettings =
      *     TopicAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
      * TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings);
    @@ -125,8 +134,11 @@
      * the wire:
      *
      * 
    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * TopicAdminSettings topicAdminSettings =
      *     TopicAdminSettings.newBuilder()
      *         .setTransportChannelProvider(
    @@ -193,8 +205,11 @@ public PublisherStub getStub() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic response = topicAdminClient.createTopic(name);
    @@ -221,8 +236,11 @@ public final Topic createTopic(TopicName name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   Topic response = topicAdminClient.createTopic(name);
    @@ -278,8 +296,11 @@ public final Topic createTopic(ProjectTopicName name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   Topic request =
        *       Topic.newBuilder()
    @@ -310,8 +331,11 @@ public final Topic createTopic(Topic request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   Topic request =
        *       Topic.newBuilder()
    @@ -340,8 +364,11 @@ public final UnaryCallable createTopicCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   UpdateTopicRequest request =
        *       UpdateTopicRequest.newBuilder()
    @@ -366,8 +393,11 @@ public final Topic updateTopic(UpdateTopicRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   UpdateTopicRequest request =
        *       UpdateTopicRequest.newBuilder()
    @@ -391,8 +421,11 @@ public final UnaryCallable updateTopicCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   List messages = new ArrayList<>();
    @@ -421,8 +454,11 @@ public final PublishResponse publish(TopicName topic, List messag
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   List messages = new ArrayList<>();
    @@ -448,8 +484,11 @@ public final PublishResponse publish(String topic, List messages)
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   PublishRequest request =
        *       PublishRequest.newBuilder()
    @@ -474,8 +513,11 @@ public final PublishResponse publish(PublishRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   PublishRequest request =
        *       PublishRequest.newBuilder()
    @@ -499,8 +541,11 @@ public final UnaryCallable publishCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   Topic response = topicAdminClient.getTopic(topic);
    @@ -524,8 +569,11 @@ public final Topic getTopic(TopicName topic) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   Topic response = topicAdminClient.getTopic(topic);
    @@ -573,8 +621,11 @@ public final Topic getTopic(ProjectTopicName topic) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   GetTopicRequest request =
        *       GetTopicRequest.newBuilder()
    @@ -598,8 +649,11 @@ public final Topic getTopic(GetTopicRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   GetTopicRequest request =
        *       GetTopicRequest.newBuilder()
    @@ -622,8 +676,11 @@ public final UnaryCallable getTopicCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ProjectName project = ProjectName.of("[PROJECT]");
        *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
    @@ -651,8 +708,11 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String project = ProjectName.of("[PROJECT]").toString();
        *   for (Topic element : topicAdminClient.listTopics(project).iterateAll()) {
    @@ -677,8 +737,11 @@ public final ListTopicsPagedResponse listTopics(String project) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicsRequest request =
        *       ListTopicsRequest.newBuilder()
    @@ -706,8 +769,11 @@ public final ListTopicsPagedResponse listTopics(ListTopicsRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicsRequest request =
        *       ListTopicsRequest.newBuilder()
    @@ -734,8 +800,11 @@ public final UnaryCallable listTopic
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicsRequest request =
        *       ListTopicsRequest.newBuilder()
    @@ -769,8 +838,11 @@ public final UnaryCallable listTopicsCall
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
    @@ -798,8 +870,11 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(TopicNam
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   for (String element : topicAdminClient.listTopicSubscriptions(topic).iterateAll()) {
    @@ -854,8 +929,11 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectT
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSubscriptionsRequest request =
        *       ListTopicSubscriptionsRequest.newBuilder()
    @@ -884,8 +962,11 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSubscriptionsRequest request =
        *       ListTopicSubscriptionsRequest.newBuilder()
    @@ -914,8 +995,11 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSubscriptionsRequest request =
        *       ListTopicSubscriptionsRequest.newBuilder()
    @@ -954,8 +1038,11 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
    @@ -986,8 +1073,11 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(TopicName topic)
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   for (String element : topicAdminClient.listTopicSnapshots(topic).iterateAll()) {
    @@ -1016,8 +1106,11 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(String topic) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSnapshotsRequest request =
        *       ListTopicSnapshotsRequest.newBuilder()
    @@ -1049,8 +1142,11 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSnapshotsRequest request =
        *       ListTopicSnapshotsRequest.newBuilder()
    @@ -1082,8 +1178,11 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   ListTopicSnapshotsRequest request =
        *       ListTopicSnapshotsRequest.newBuilder()
    @@ -1122,8 +1221,11 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
        *   topicAdminClient.deleteTopic(topic);
    @@ -1150,8 +1252,11 @@ public final void deleteTopic(TopicName topic) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
        *   topicAdminClient.deleteTopic(topic);
    @@ -1205,8 +1310,11 @@ public final void deleteTopic(ProjectTopicName topic) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   DeleteTopicRequest request =
        *       DeleteTopicRequest.newBuilder()
    @@ -1233,8 +1341,11 @@ public final void deleteTopic(DeleteTopicRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   DeleteTopicRequest request =
        *       DeleteTopicRequest.newBuilder()
    @@ -1259,8 +1370,11 @@ public final UnaryCallable deleteTopicCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   DetachSubscriptionRequest request =
        *       DetachSubscriptionRequest.newBuilder()
    @@ -1286,8 +1400,11 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   DetachSubscriptionRequest request =
        *       DetachSubscriptionRequest.newBuilder()
    @@ -1314,8 +1431,11 @@ public final DetachSubscriptionResponse detachSubscription(DetachSubscriptionReq
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -1374,8 +1494,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -1401,8 +1524,11 @@ public final UnaryCallable setIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -1453,8 +1579,11 @@ public final Policy getIamPolicy(String resource) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -1483,8 +1612,11 @@ public final UnaryCallable getIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    @@ -1552,8 +1684,11 @@ public final TestIamPermissionsResponse testIamPermissions(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
    index ecb1cf70a8c0..adc9e92c555d 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java
    @@ -76,16 +76,16 @@
      * 

    For example, to set the total timeout of createTopic to 30 seconds: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * TopicAdminSettings.Builder topicAdminSettingsBuilder = TopicAdminSettings.newBuilder();
      * topicAdminSettingsBuilder
      *     .createTopicSettings()
      *     .setRetrySettings(
    - *         topicAdminSettingsBuilder
    - *             .createTopicSettings()
    - *             .getRetrySettings()
    - *             .toBuilder()
    + *         topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build();
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    index 6e17761f9e07..097c53df3598 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java
    @@ -27,8 +27,11 @@
      * 

    Sample for TopicAdminClient: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      *   TopicName name = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      *   Topic response = topicAdminClient.createTopic(name);
    @@ -44,8 +47,11 @@
      * 

    Sample for SubscriptionAdminClient: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      *   SubscriptionName name = SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
    @@ -63,8 +69,11 @@
      * 

    Sample for SchemaServiceClient: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
      *   ProjectName parent = ProjectName.of("[PROJECT]");
      *   Schema schema = Schema.newBuilder().build();
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java
    index 96f674f54df9..2e42c14c7aa6 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java
    @@ -96,7 +96,7 @@ public class HttpJsonPublisherStub extends PublisherStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
    -                              .toBody("*", request.toBuilder().clearName().build()))
    +                              .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
    @@ -130,7 +130,8 @@ public class HttpJsonPublisherStub extends PublisherStub {
                           })
                       .setRequestBodyExtractor(
                           request ->
    -                          ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
    +                          ProtoRestSerializer.create()
    +                              .toBody("*", request.toBuilder().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
    @@ -166,7 +167,7 @@ public class HttpJsonPublisherStub extends PublisherStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearTopic().build()))
    +                                  .toBody("*", request.toBuilder().clearTopic().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -411,7 +412,7 @@ public class HttpJsonPublisherStub extends PublisherStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearResource().build()))
    +                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -488,7 +489,7 @@ public class HttpJsonPublisherStub extends PublisherStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearResource().build()))
    +                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java
    index b4d220f6184a..1e6471c2867e 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java
    @@ -93,7 +93,8 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub {
                               })
                           .setRequestBodyExtractor(
                               request ->
    -                              ProtoRestSerializer.create().toBody("schema", request.getSchema()))
    +                              ProtoRestSerializer.create()
    +                                  .toBody("schema", request.getSchema(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -231,7 +232,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearParent().build()))
    +                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -267,7 +268,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearParent().build()))
    +                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -307,7 +308,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearResource().build()))
    +                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -384,7 +385,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearResource().build()))
    +                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java
    index 354ea15f3b1f..49546ad5d083 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java
    @@ -104,7 +104,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearName().build()))
    +                                  .toBody("*", request.toBuilder().clearName().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -174,7 +174,8 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                               })
                           .setRequestBodyExtractor(
                               request ->
    -                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
    +                              ProtoRestSerializer.create()
    +                                  .toBody("*", request.toBuilder().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -280,7 +281,8 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearSubscription().build()))
    +                                  .toBody(
    +                                      "*", request.toBuilder().clearSubscription().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -315,7 +317,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
    -                              .toBody("*", request.toBuilder().clearSubscription().build()))
    +                              .toBody("*", request.toBuilder().clearSubscription().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
    @@ -348,7 +350,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
    -                              .toBody("*", request.toBuilder().clearSubscription().build()))
    +                              .toBody("*", request.toBuilder().clearSubscription().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
    @@ -385,7 +387,8 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearSubscription().build()))
    +                                  .toBody(
    +                                      "*", request.toBuilder().clearSubscription().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -489,7 +492,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearName().build()))
    +                                  .toBody("*", request.toBuilder().clearName().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -525,7 +528,8 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                               })
                           .setRequestBodyExtractor(
                               request ->
    -                              ProtoRestSerializer.create().toBody("*", request.toBuilder().build()))
    +                              ProtoRestSerializer.create()
    +                                  .toBody("*", request.toBuilder().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -591,7 +595,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
    -                              .toBody("*", request.toBuilder().clearSubscription().build()))
    +                              .toBody("*", request.toBuilder().clearSubscription().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
    @@ -631,7 +635,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearResource().build()))
    +                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    @@ -708,7 +712,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub {
                           .setRequestBodyExtractor(
                               request ->
                                   ProtoRestSerializer.create()
    -                                  .toBody("*", request.toBuilder().clearResource().build()))
    +                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                           .build())
                   .setResponseParser(
                       ProtoMessageResponseParser.newBuilder()
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    index 573fd95971a4..287162b9731e 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java
    @@ -102,16 +102,16 @@
      * 

    For example, to set the total timeout of createTopic to 30 seconds: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * PublisherStubSettings.Builder topicAdminSettingsBuilder = PublisherStubSettings.newBuilder();
      * topicAdminSettingsBuilder
      *     .createTopicSettings()
      *     .setRetrySettings(
    - *         topicAdminSettingsBuilder
    - *             .createTopicSettings()
    - *             .getRetrySettings()
    - *             .toBuilder()
    + *         topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build();
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
    index 5c470e241a1a..ccf2d83bb0d7 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java
    @@ -85,17 +85,17 @@
      * 

    For example, to set the total timeout of createSchema to 30 seconds: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * SchemaServiceStubSettings.Builder schemaServiceSettingsBuilder =
      *     SchemaServiceStubSettings.newBuilder();
      * schemaServiceSettingsBuilder
      *     .createSchemaSettings()
      *     .setRetrySettings(
    - *         schemaServiceSettingsBuilder
    - *             .createSchemaSettings()
    - *             .getRetrySettings()
    - *             .toBuilder()
    + *         schemaServiceSettingsBuilder.createSchemaSettings().getRetrySettings().toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    index e9ae4617f31c..d0b4ca61cdce 100644
    --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java
    @@ -100,8 +100,11 @@
      * 

    For example, to set the total timeout of createSubscription to 30 seconds: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder =
      *     SubscriberStubSettings.newBuilder();
      * subscriptionAdminSettingsBuilder
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    index 38f0841ad65b..a12bd0a5c9ad 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private AcknowledgeRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              subscription_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                ackIds_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              ackIds_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        ackIds_ = ackIds_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor;
    @@ -272,7 +212,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < ackIds_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ackIds_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -292,7 +232,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getAckIdsList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -309,7 +249,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getSubscription().equals(other.getSubscription())) return false;
         if (!getAckIdsList().equals(other.getAckIdsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -326,7 +266,7 @@ public int hashCode() {
           hash = (37 * hash) + ACK_IDS_FIELD_NUMBER;
           hash = (53 * hash) + getAckIdsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -455,17 +395,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.AcknowledgeRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -572,7 +505,7 @@ public Builder mergeFrom(com.google.pubsub.v1.AcknowledgeRequest other) {
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -587,17 +520,44 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.AcknowledgeRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                subscription_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAckIdsIsMutable();
    +                ackIds_.add(s);
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.AcknowledgeRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -942,7 +902,18 @@ public AcknowledgeRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new AcknowledgeRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java
    index fb58c043bdc7..5a0f1be23337 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java
    @@ -53,74 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private BigQueryConfig(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              table_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              useTopicSchema_ = input.readBool();
    -              break;
    -            }
    -          case 24:
    -            {
    -              writeMetadata_ = input.readBool();
    -              break;
    -            }
    -          case 32:
    -            {
    -              dropUnknownFields_ = input.readBool();
    -              break;
    -            }
    -          case 40:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              state_ = rawValue;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_BigQueryConfig_descriptor;
    @@ -522,7 +454,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (state_ != com.google.pubsub.v1.BigQueryConfig.State.STATE_UNSPECIFIED.getNumber()) {
           output.writeEnum(5, state_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -546,7 +478,7 @@ public int getSerializedSize() {
         if (state_ != com.google.pubsub.v1.BigQueryConfig.State.STATE_UNSPECIFIED.getNumber()) {
           size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -566,7 +498,7 @@ public boolean equals(final java.lang.Object obj) {
         if (getWriteMetadata() != other.getWriteMetadata()) return false;
         if (getDropUnknownFields() != other.getDropUnknownFields()) return false;
         if (state_ != other.state_) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -587,7 +519,7 @@ public int hashCode() {
         hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDropUnknownFields());
         hash = (37 * hash) + STATE_FIELD_NUMBER;
         hash = (53 * hash) + state_;
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -715,17 +647,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.BigQueryConfig.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -837,7 +762,7 @@ public Builder mergeFrom(com.google.pubsub.v1.BigQueryConfig other) {
           if (other.state_ != 0) {
             setStateValue(other.getStateValue());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -852,17 +777,61 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.BigQueryConfig parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                table_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                useTopicSchema_ = input.readBool();
    +
    +                break;
    +              } // case 16
    +            case 24:
    +              {
    +                writeMetadata_ = input.readBool();
    +
    +                break;
    +              } // case 24
    +            case 32:
    +              {
    +                dropUnknownFields_ = input.readBool();
    +
    +                break;
    +              } // case 32
    +            case 40:
    +              {
    +                state_ = input.readEnum();
    +
    +                break;
    +              } // case 40
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.BigQueryConfig) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1298,7 +1267,18 @@ public BigQueryConfig parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new BigQueryConfig(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java
    index 9f234893102c..5e405cd6224f 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java
    @@ -53,73 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private CreateSchemaRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.pubsub.v1.Schema.Builder subBuilder = null;
    -              if (schema_ != null) {
    -                subBuilder = schema_.toBuilder();
    -              }
    -              schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(schema_);
    -                schema_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              schemaId_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto
             .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor;
    @@ -323,7 +256,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaId_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -341,7 +274,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -362,7 +295,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getSchema().equals(other.getSchema())) return false;
         }
         if (!getSchemaId().equals(other.getSchemaId())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -381,7 +314,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + SCHEMA_ID_FIELD_NUMBER;
         hash = (53 * hash) + getSchemaId().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -510,17 +443,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.CreateSchemaRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -630,7 +556,7 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSchemaRequest other) {
             schemaId_ = other.schemaId_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -645,17 +571,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.CreateSchemaRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                schemaId_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.CreateSchemaRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1138,7 +1096,18 @@ public CreateSchemaRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new CreateSchemaRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    index 6140d5e458f5..9a5aa29e340c 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java
    @@ -53,73 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private CreateSnapshotRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              subscription_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                labels_ =
    -                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              com.google.protobuf.MapEntry labels__ =
    -                  input.readMessage(
    -                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    -              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor;
    @@ -402,7 +335,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         }
         com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
             output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3);
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -427,7 +360,7 @@ public int getSerializedSize() {
                   .build();
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -446,7 +379,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getName().equals(other.getName())) return false;
         if (!getSubscription().equals(other.getSubscription())) return false;
         if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -465,7 +398,7 @@ public int hashCode() {
           hash = (37 * hash) + LABELS_FIELD_NUMBER;
           hash = (53 * hash) + internalGetLabels().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -614,17 +547,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
         }
     
         // Construct using com.google.pubsub.v1.CreateSnapshotRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -725,7 +651,7 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) {
             onChanged();
           }
           internalGetMutableLabels().mergeFrom(other.internalGetLabels());
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -740,17 +666,54 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.CreateSnapshotRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                subscription_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                com.google.protobuf.MapEntry labels__ =
    +                    input.readMessage(
    +                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
    +                        extensionRegistry);
    +                internalGetMutableLabels()
    +                    .getMutableMap()
    +                    .put(labels__.getKey(), labels__.getValue());
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.CreateSnapshotRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1250,7 +1213,18 @@ public CreateSnapshotRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new CreateSnapshotRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
    index 018a74139edb..8000d51cc360 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java
    @@ -55,57 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private DeadLetterPolicy(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              deadLetterTopic_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              maxDeliveryAttempts_ = input.readInt32();
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor;
    @@ -230,7 +179,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (maxDeliveryAttempts_ != 0) {
           output.writeInt32(2, maxDeliveryAttempts_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -245,7 +194,7 @@ public int getSerializedSize() {
         if (maxDeliveryAttempts_ != 0) {
           size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxDeliveryAttempts_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -262,7 +211,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getDeadLetterTopic().equals(other.getDeadLetterTopic())) return false;
         if (getMaxDeliveryAttempts() != other.getMaxDeliveryAttempts()) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -277,7 +226,7 @@ public int hashCode() {
         hash = (53 * hash) + getDeadLetterTopic().hashCode();
         hash = (37 * hash) + MAX_DELIVERY_ATTEMPTS_FIELD_NUMBER;
         hash = (53 * hash) + getMaxDeliveryAttempts();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -408,17 +357,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.DeadLetterPolicy.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -513,7 +455,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DeadLetterPolicy other) {
           if (other.getMaxDeliveryAttempts() != 0) {
             setMaxDeliveryAttempts(other.getMaxDeliveryAttempts());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -528,17 +470,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.DeadLetterPolicy parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                deadLetterTopic_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                maxDeliveryAttempts_ = input.readInt32();
    +
    +                break;
    +              } // case 16
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.DeadLetterPolicy) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -791,7 +759,18 @@ public DeadLetterPolicy parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new DeadLetterPolicy(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java
    index 84747a7ae6f5..76af0499c985 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private DeleteSchemaRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto
             .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor;
    @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -197,7 +151,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -213,7 +167,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.DeleteSchemaRequest other = (com.google.pubsub.v1.DeleteSchemaRequest) obj;
     
         if (!getName().equals(other.getName())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -226,7 +180,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + NAME_FIELD_NUMBER;
         hash = (53 * hash) + getName().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -355,17 +309,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.DeleteSchemaRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -454,7 +401,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSchemaRequest other) {
             name_ = other.name_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -469,17 +416,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.DeleteSchemaRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.DeleteSchemaRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -636,7 +603,18 @@ public DeleteSchemaRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new DeleteSchemaRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java
    index 8113bad2ec87..8ce57a9b89cb 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private DeleteSnapshotRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              snapshot_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor;
    @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -197,7 +151,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.pubsub.v1.DeleteSnapshotRequest) obj;
     
         if (!getSnapshot().equals(other.getSnapshot())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -227,7 +181,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER;
         hash = (53 * hash) + getSnapshot().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.DeleteSnapshotRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSnapshotRequest other) {
             snapshot_ = other.snapshot_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -470,17 +417,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.DeleteSnapshotRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                snapshot_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.DeleteSnapshotRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -637,7 +604,18 @@ public DeleteSnapshotRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new DeleteSnapshotRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    index 90bb5843313b..c8007fe40431 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private DeleteSubscriptionRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              subscription_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor;
    @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -197,7 +151,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.pubsub.v1.DeleteSubscriptionRequest) obj;
     
         if (!getSubscription().equals(other.getSubscription())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -227,7 +181,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER;
         hash = (53 * hash) + getSubscription().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.DeleteSubscriptionRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSubscriptionRequest other) {
             subscription_ = other.subscription_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -470,17 +417,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.DeleteSubscriptionRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                subscription_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.DeleteSubscriptionRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -637,7 +604,18 @@ public DeleteSubscriptionRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new DeleteSubscriptionRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    index 5b3a9e2cba7e..f75ec13d8843 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private DeleteTopicRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              topic_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor;
    @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -197,7 +151,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -213,7 +167,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.DeleteTopicRequest other = (com.google.pubsub.v1.DeleteTopicRequest) obj;
     
         if (!getTopic().equals(other.getTopic())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -226,7 +180,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + TOPIC_FIELD_NUMBER;
         hash = (53 * hash) + getTopic().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -355,17 +309,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.DeleteTopicRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -454,7 +401,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteTopicRequest other) {
             topic_ = other.topic_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -469,17 +416,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.DeleteTopicRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                topic_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.DeleteTopicRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -636,7 +603,18 @@ public DeleteTopicRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new DeleteTopicRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java
    index 80e2182143b7..a232e2a6bb4e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private DetachSubscriptionRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              subscription_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor;
    @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -197,7 +151,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.pubsub.v1.DetachSubscriptionRequest) obj;
     
         if (!getSubscription().equals(other.getSubscription())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -227,7 +181,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER;
         hash = (53 * hash) + getSubscription().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.DetachSubscriptionRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DetachSubscriptionRequest other) {
             subscription_ = other.subscription_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -470,17 +417,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.DetachSubscriptionRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                subscription_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.DetachSubscriptionRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -637,7 +604,18 @@ public DetachSubscriptionRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new DetachSubscriptionRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java
    index 425eff37fd8e..f2cb157cfc24 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java
    @@ -51,45 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private DetachSubscriptionResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor;
    @@ -119,7 +80,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -128,7 +89,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -144,7 +105,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.DetachSubscriptionResponse other =
             (com.google.pubsub.v1.DetachSubscriptionResponse) obj;
     
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -155,7 +116,7 @@ public int hashCode() {
         }
         int hash = 41;
         hash = (19 * hash) + getDescriptor().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -285,17 +246,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.DetachSubscriptionResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -378,7 +332,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
         public Builder mergeFrom(com.google.pubsub.v1.DetachSubscriptionResponse other) {
           if (other == com.google.pubsub.v1.DetachSubscriptionResponse.getDefaultInstance())
             return this;
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -393,17 +347,31 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.DetachSubscriptionResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.DetachSubscriptionResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -439,7 +407,18 @@ public DetachSubscriptionResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new DetachSubscriptionResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
    index e9ed8b2f7489..5ed187030b96 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java
    @@ -51,59 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ExpirationPolicy(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              com.google.protobuf.Duration.Builder subBuilder = null;
    -              if (ttl_ != null) {
    -                subBuilder = ttl_.toBuilder();
    -              }
    -              ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(ttl_);
    -                ttl_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor;
    @@ -197,7 +144,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (ttl_ != null) {
           output.writeMessage(1, getTtl());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -209,7 +156,7 @@ public int getSerializedSize() {
         if (ttl_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTtl());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -228,7 +175,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasTtl()) {
           if (!getTtl().equals(other.getTtl())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -243,7 +190,7 @@ public int hashCode() {
           hash = (37 * hash) + TTL_FIELD_NUMBER;
           hash = (53 * hash) + getTtl().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -372,17 +319,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ExpirationPolicy.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -478,7 +418,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ExpirationPolicy other) {
           if (other.hasTtl()) {
             mergeTtl(other.getTtl());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -493,17 +433,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ExpirationPolicy parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ExpirationPolicy) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -761,7 +721,18 @@ public ExpirationPolicy parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ExpirationPolicy(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
    index 9a1f22ba3783..68aa7ffaf1a8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java
    @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private GetSchemaRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              view_ = rawValue;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto
             .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor;
    @@ -235,7 +182,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) {
           output.writeEnum(2, view_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -250,7 +197,7 @@ public int getSerializedSize() {
         if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) {
           size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -267,7 +214,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getName().equals(other.getName())) return false;
         if (view_ != other.view_) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -282,7 +229,7 @@ public int hashCode() {
         hash = (53 * hash) + getName().hashCode();
         hash = (37 * hash) + VIEW_FIELD_NUMBER;
         hash = (53 * hash) + view_;
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -410,17 +357,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.GetSchemaRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -515,7 +455,7 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSchemaRequest other) {
           if (other.view_ != 0) {
             setViewValue(other.getViewValue());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -530,17 +470,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.GetSchemaRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                view_ = input.readEnum();
    +
    +                break;
    +              } // case 16
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.GetSchemaRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -797,7 +763,18 @@ public GetSchemaRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new GetSchemaRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    index e40c7802ecd0..6a6ae9bc8279 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private GetSnapshotRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              snapshot_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor;
    @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -197,7 +151,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -213,7 +167,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.GetSnapshotRequest other = (com.google.pubsub.v1.GetSnapshotRequest) obj;
     
         if (!getSnapshot().equals(other.getSnapshot())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -226,7 +180,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER;
         hash = (53 * hash) + getSnapshot().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -355,17 +309,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.GetSnapshotRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -454,7 +401,7 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSnapshotRequest other) {
             snapshot_ = other.snapshot_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -469,17 +416,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.GetSnapshotRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                snapshot_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.GetSnapshotRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -636,7 +603,18 @@ public GetSnapshotRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new GetSnapshotRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    index 0a0122d3ce95..503a81252ddf 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private GetSubscriptionRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              subscription_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor;
    @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -197,7 +151,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) {
             (com.google.pubsub.v1.GetSubscriptionRequest) obj;
     
         if (!getSubscription().equals(other.getSubscription())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -227,7 +181,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER;
         hash = (53 * hash) + getSubscription().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.GetSubscriptionRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSubscriptionRequest other) {
             subscription_ = other.subscription_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -470,17 +417,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.GetSubscriptionRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                subscription_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.GetSubscriptionRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -637,7 +604,18 @@ public GetSubscriptionRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new GetSubscriptionRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    index 43e15615e2b5..70cdef7607e6 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java
    @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private GetTopicRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              topic_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_GetTopicRequest_descriptor;
    @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -197,7 +151,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -213,7 +167,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.GetTopicRequest other = (com.google.pubsub.v1.GetTopicRequest) obj;
     
         if (!getTopic().equals(other.getTopic())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -226,7 +180,7 @@ public int hashCode() {
         hash = (19 * hash) + getDescriptor().hashCode();
         hash = (37 * hash) + TOPIC_FIELD_NUMBER;
         hash = (53 * hash) + getTopic().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -354,17 +308,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.GetTopicRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -452,7 +399,7 @@ public Builder mergeFrom(com.google.pubsub.v1.GetTopicRequest other) {
             topic_ = other.topic_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -467,17 +414,37 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.GetTopicRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                topic_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.GetTopicRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -634,7 +601,18 @@ public GetTopicRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new GetTopicRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java
    index 9e75e40f44cb..5e67fc55e324 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java
    @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListSchemasRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              view_ = rawValue;
    -              break;
    -            }
    -          case 24:
    -            {
    -              pageSize_ = input.readInt32();
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto
             .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor;
    @@ -325,7 +260,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -346,7 +281,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -365,7 +300,7 @@ public boolean equals(final java.lang.Object obj) {
         if (view_ != other.view_) return false;
         if (getPageSize() != other.getPageSize()) return false;
         if (!getPageToken().equals(other.getPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -384,7 +319,7 @@ public int hashCode() {
         hash = (53 * hash) + getPageSize();
         hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -513,17 +448,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListSchemasRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -631,7 +559,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemasRequest other) {
             pageToken_ = other.pageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -646,17 +574,55 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListSchemasRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                view_ = input.readEnum();
    +
    +                break;
    +              } // case 16
    +            case 24:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 24
    +            case 34:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 34
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ListSchemasRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1081,7 +1047,18 @@ public ListSchemasRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListSchemasRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java
    index d7acc88629cd..8dca43ab61c8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java
    @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListSchemasResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                schemas_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              schemas_.add(
    -                  input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        schemas_ = java.util.Collections.unmodifiableList(schemas_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto
             .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor;
    @@ -267,7 +207,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -282,7 +222,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -299,7 +239,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getSchemasList().equals(other.getSchemasList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -316,7 +256,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -445,19 +385,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListSchemasResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getSchemasFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -465,10 +396,11 @@ public Builder clear() {
           super.clear();
           if (schemasBuilder_ == null) {
             schemas_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        schemas_ = null;
             schemasBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           nextPageToken_ = "";
     
           return this;
    @@ -589,7 +521,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemasResponse other) {
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -604,17 +536,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListSchemasResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.pubsub.v1.Schema m =
    +                    input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry);
    +                if (schemasBuilder_ == null) {
    +                  ensureSchemasIsMutable();
    +                  schemas_.add(m);
    +                } else {
    +                  schemasBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ListSchemasResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1107,7 +1071,18 @@ public ListSchemasResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListSchemasResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    index c23abd212785..c89db9526754 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java
    @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListSnapshotsRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              project_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              pageSize_ = input.readInt32();
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor;
    @@ -275,7 +217,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -293,7 +235,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -312,7 +254,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getProject().equals(other.getProject())) return false;
         if (getPageSize() != other.getPageSize()) return false;
         if (!getPageToken().equals(other.getPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -329,7 +271,7 @@ public int hashCode() {
         hash = (53 * hash) + getPageSize();
         hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -458,17 +400,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListSnapshotsRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -570,7 +505,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsRequest other) {
             pageToken_ = other.pageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -585,17 +520,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListSnapshotsRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                project_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 16
    +            case 26:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ListSnapshotsRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -920,7 +887,18 @@ public ListSnapshotsRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListSnapshotsRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    index 8d44aa126299..83ff4f716ff6 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java
    @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListSnapshotsResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                snapshots_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              snapshots_.add(
    -                  input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        snapshots_ = java.util.Collections.unmodifiableList(snapshots_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor;
    @@ -268,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -283,7 +223,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -301,7 +241,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getSnapshotsList().equals(other.getSnapshotsList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -318,7 +258,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -447,19 +387,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListSnapshotsResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getSnapshotsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -467,10 +398,11 @@ public Builder clear() {
           super.clear();
           if (snapshotsBuilder_ == null) {
             snapshots_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        snapshots_ = null;
             snapshotsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           nextPageToken_ = "";
     
           return this;
    @@ -591,7 +523,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsResponse other) {
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -606,17 +538,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListSnapshotsResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.pubsub.v1.Snapshot m =
    +                    input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry);
    +                if (snapshotsBuilder_ == null) {
    +                  ensureSnapshotsIsMutable();
    +                  snapshots_.add(m);
    +                } else {
    +                  snapshotsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ListSnapshotsResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1111,7 +1075,18 @@ public ListSnapshotsResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListSnapshotsResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    index d7db4c0ea361..977a648439e0 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java
    @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListSubscriptionsRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              project_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              pageSize_ = input.readInt32();
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor;
    @@ -275,7 +217,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -293,7 +235,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -312,7 +254,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getProject().equals(other.getProject())) return false;
         if (getPageSize() != other.getPageSize()) return false;
         if (!getPageToken().equals(other.getPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -329,7 +271,7 @@ public int hashCode() {
         hash = (53 * hash) + getPageSize();
         hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -458,17 +400,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListSubscriptionsRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -570,7 +505,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsRequest other) {
             pageToken_ = other.pageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -585,17 +520,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListSubscriptionsRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                project_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 16
    +            case 26:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ListSubscriptionsRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -920,7 +887,18 @@ public ListSubscriptionsRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListSubscriptionsRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    index 2370455611c7..5272760f566e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java
    @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListSubscriptionsResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                subscriptions_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              subscriptions_.add(
    -                  input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor;
    @@ -270,7 +210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -285,7 +225,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -303,7 +243,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -320,7 +260,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -449,19 +389,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListSubscriptionsResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getSubscriptionsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -469,10 +400,11 @@ public Builder clear() {
           super.clear();
           if (subscriptionsBuilder_ == null) {
             subscriptions_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        subscriptions_ = null;
             subscriptionsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           nextPageToken_ = "";
     
           return this;
    @@ -593,7 +525,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsResponse other) {
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -608,17 +540,50 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListSubscriptionsResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.pubsub.v1.Subscription m =
    +                    input.readMessage(
    +                        com.google.pubsub.v1.Subscription.parser(), extensionRegistry);
    +                if (subscriptionsBuilder_ == null) {
    +                  ensureSubscriptionsIsMutable();
    +                  subscriptions_.add(m);
    +                } else {
    +                  subscriptionsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ListSubscriptionsResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1123,7 +1088,18 @@ public ListSubscriptionsResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListSubscriptionsResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    index 17a383573830..2c192cd51205 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java
    @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListTopicSnapshotsRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              topic_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              pageSize_ = input.readInt32();
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor;
    @@ -275,7 +217,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -293,7 +235,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -312,7 +254,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getTopic().equals(other.getTopic())) return false;
         if (getPageSize() != other.getPageSize()) return false;
         if (!getPageToken().equals(other.getPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -329,7 +271,7 @@ public int hashCode() {
         hash = (53 * hash) + getPageSize();
         hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -458,17 +400,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListTopicSnapshotsRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -570,7 +505,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsRequest other) {
             pageToken_ = other.pageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -585,17 +520,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListTopicSnapshotsRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                topic_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 16
    +            case 26:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ListTopicSnapshotsRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -920,7 +887,18 @@ public ListTopicSnapshotsRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListTopicSnapshotsRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    index ea213088612a..06da0e9b4d6a 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java
    @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListTopicSnapshotsResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                snapshots_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              snapshots_.add(s);
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        snapshots_ = snapshots_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor;
    @@ -262,7 +202,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -282,7 +222,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -300,7 +240,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getSnapshotsList().equals(other.getSnapshotsList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -317,7 +257,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -446,17 +386,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListTopicSnapshotsResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -564,7 +497,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other)
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -579,17 +512,44 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListTopicSnapshotsResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureSnapshotsIsMutable();
    +                snapshots_.add(s);
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ListTopicSnapshotsResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -911,7 +871,18 @@ public ListTopicSnapshotsResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListTopicSnapshotsResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    index ae8c370d6bf5..a553a87d005c 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java
    @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListTopicSubscriptionsRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              topic_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              pageSize_ = input.readInt32();
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor;
    @@ -275,7 +217,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -293,7 +235,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -312,7 +254,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getTopic().equals(other.getTopic())) return false;
         if (getPageSize() != other.getPageSize()) return false;
         if (!getPageToken().equals(other.getPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -329,7 +271,7 @@ public int hashCode() {
         hash = (53 * hash) + getPageSize();
         hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -458,17 +400,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListTopicSubscriptionsRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -571,7 +506,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsRequest othe
             pageToken_ = other.pageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -586,18 +521,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListTopicSubscriptionsRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                topic_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 16
    +            case 26:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.pubsub.v1.ListTopicSubscriptionsRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -922,7 +888,18 @@ public ListTopicSubscriptionsRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListTopicSubscriptionsRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    index 16bfc8bfe0a5..45a1ff414989 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java
    @@ -54,66 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListTopicSubscriptionsResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                subscriptions_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              subscriptions_.add(s);
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        subscriptions_ = subscriptions_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor;
    @@ -263,7 +203,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -283,7 +223,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -301,7 +241,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getSubscriptionsList().equals(other.getSubscriptionsList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -318,7 +258,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -447,17 +387,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListTopicSubscriptionsResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -565,7 +498,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsResponse oth
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -580,18 +513,44 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListTopicSubscriptionsResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureSubscriptionsIsMutable();
    +                subscriptions_.add(s);
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage =
    -            (com.google.pubsub.v1.ListTopicSubscriptionsResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -913,7 +872,18 @@ public ListTopicSubscriptionsResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListTopicSubscriptionsResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    index cbb0a15edf6d..5090a1a2705b 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java
    @@ -53,64 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListTopicsRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              project_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              pageSize_ = input.readInt32();
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor;
    @@ -275,7 +217,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -293,7 +235,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -311,7 +253,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getProject().equals(other.getProject())) return false;
         if (getPageSize() != other.getPageSize()) return false;
         if (!getPageToken().equals(other.getPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -328,7 +270,7 @@ public int hashCode() {
         hash = (53 * hash) + getPageSize();
         hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -457,17 +399,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListTopicsRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -569,7 +504,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsRequest other) {
             pageToken_ = other.pageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -584,17 +519,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListTopicsRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                project_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                pageSize_ = input.readInt32();
    +
    +                break;
    +              } // case 16
    +            case 26:
    +              {
    +                pageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ListTopicsRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -919,7 +886,18 @@ public ListTopicsRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListTopicsRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    index ba9cb473c1d0..93556ef25929 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java
    @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ListTopicsResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                topics_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              topics_.add(
    -                  input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              nextPageToken_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        topics_ = java.util.Collections.unmodifiableList(topics_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor;
    @@ -267,7 +207,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -282,7 +222,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -299,7 +239,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getTopicsList().equals(other.getTopicsList())) return false;
         if (!getNextPageToken().equals(other.getNextPageToken())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -316,7 +256,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
         hash = (53 * hash) + getNextPageToken().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -445,19 +385,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ListTopicsResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getTopicsFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -465,10 +396,11 @@ public Builder clear() {
           super.clear();
           if (topicsBuilder_ == null) {
             topics_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        topics_ = null;
             topicsBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           nextPageToken_ = "";
     
           return this;
    @@ -589,7 +521,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsResponse other) {
             nextPageToken_ = other.nextPageToken_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -604,17 +536,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ListTopicsResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.pubsub.v1.Topic m =
    +                    input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry);
    +                if (topicsBuilder_ == null) {
    +                  ensureTopicsIsMutable();
    +                  topics_.add(m);
    +                } else {
    +                  topicsBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                nextPageToken_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ListTopicsResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1105,7 +1069,18 @@ public ListTopicsResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ListTopicsResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    index c02987c8e375..d058d7b81193 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java
    @@ -52,59 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private MessageStoragePolicy(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              allowedPersistenceRegions_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor;
    @@ -215,7 +162,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           com.google.protobuf.GeneratedMessageV3.writeString(
               output, 1, allowedPersistenceRegions_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -232,7 +179,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getAllowedPersistenceRegionsList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -250,7 +197,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getAllowedPersistenceRegionsList().equals(other.getAllowedPersistenceRegionsList()))
           return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -265,7 +212,7 @@ public int hashCode() {
           hash = (37 * hash) + ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER;
           hash = (53 * hash) + getAllowedPersistenceRegionsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -394,17 +341,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.MessageStoragePolicy.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -504,7 +444,7 @@ public Builder mergeFrom(com.google.pubsub.v1.MessageStoragePolicy other) {
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -519,17 +459,38 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.MessageStoragePolicy parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAllowedPersistenceRegionsIsMutable();
    +                allowedPersistenceRegions_.add(s);
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.MessageStoragePolicy) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -772,7 +733,18 @@ public MessageStoragePolicy parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new MessageStoragePolicy(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    index f3c067c7d609..5cc2e406f423 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java
    @@ -53,71 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ModifyAckDeadlineRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              subscription_ = s;
    -              break;
    -            }
    -          case 24:
    -            {
    -              ackDeadlineSeconds_ = input.readInt32();
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                ackIds_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              ackIds_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        ackIds_ = ackIds_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor;
    @@ -297,7 +232,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < ackIds_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ackIds_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -320,7 +255,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getAckIdsList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -339,7 +274,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getSubscription().equals(other.getSubscription())) return false;
         if (!getAckIdsList().equals(other.getAckIdsList())) return false;
         if (getAckDeadlineSeconds() != other.getAckDeadlineSeconds()) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -358,7 +293,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + ACK_DEADLINE_SECONDS_FIELD_NUMBER;
         hash = (53 * hash) + getAckDeadlineSeconds();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -487,17 +422,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ModifyAckDeadlineRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -610,7 +538,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ModifyAckDeadlineRequest other) {
           if (other.getAckDeadlineSeconds() != 0) {
             setAckDeadlineSeconds(other.getAckDeadlineSeconds());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -625,17 +553,50 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ModifyAckDeadlineRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                subscription_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 24:
    +              {
    +                ackDeadlineSeconds_ = input.readInt32();
    +
    +                break;
    +              } // case 24
    +            case 34:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAckIdsIsMutable();
    +                ackIds_.add(s);
    +                break;
    +              } // case 34
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ModifyAckDeadlineRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1035,7 +996,18 @@ public ModifyAckDeadlineRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ModifyAckDeadlineRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java
    index f3d869b476c5..66083f127d3c 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java
    @@ -52,67 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ModifyPushConfigRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              subscription_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.pubsub.v1.PushConfig.Builder subBuilder = null;
    -              if (pushConfig_ != null) {
    -                subBuilder = pushConfig_.toBuilder();
    -              }
    -              pushConfig_ =
    -                  input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(pushConfig_);
    -                pushConfig_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor;
    @@ -264,7 +203,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (pushConfig_ != null) {
           output.writeMessage(2, getPushConfig());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -279,7 +218,7 @@ public int getSerializedSize() {
         if (pushConfig_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPushConfig());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -300,7 +239,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasPushConfig()) {
           if (!getPushConfig().equals(other.getPushConfig())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -317,7 +256,7 @@ public int hashCode() {
           hash = (37 * hash) + PUSH_CONFIG_FIELD_NUMBER;
           hash = (53 * hash) + getPushConfig().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -446,17 +385,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ModifyPushConfigRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -559,7 +491,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ModifyPushConfigRequest other) {
           if (other.hasPushConfig()) {
             mergePushConfig(other.getPushConfig());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -574,17 +506,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ModifyPushConfigRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                subscription_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getPushConfigFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ModifyPushConfigRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -971,7 +929,18 @@ public ModifyPushConfigRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ModifyPushConfigRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    index 4d0732319094..36404928b451 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    @@ -53,67 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private PublishRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              topic_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                messages_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              messages_.add(
    -                  input.readMessage(
    -                      com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry));
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        messages_ = java.util.Collections.unmodifiableList(messages_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_PublishRequest_descriptor;
    @@ -283,7 +222,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < messages_.size(); i++) {
           output.writeMessage(2, messages_.get(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -298,7 +237,7 @@ public int getSerializedSize() {
         for (int i = 0; i < messages_.size(); i++) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, messages_.get(i));
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -315,7 +254,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getTopic().equals(other.getTopic())) return false;
         if (!getMessagesList().equals(other.getMessagesList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -332,7 +271,7 @@ public int hashCode() {
           hash = (37 * hash) + MESSAGES_FIELD_NUMBER;
           hash = (53 * hash) + getMessagesList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -460,19 +399,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.PublishRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getMessagesFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -482,10 +412,11 @@ public Builder clear() {
     
           if (messagesBuilder_ == null) {
             messages_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        messages_ = null;
             messagesBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           return this;
         }
     
    @@ -603,7 +534,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) {
               }
             }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -618,17 +549,50 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.PublishRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                topic_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                com.google.pubsub.v1.PubsubMessage m =
    +                    input.readMessage(
    +                        com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry);
    +                if (messagesBuilder_ == null) {
    +                  ensureMessagesIsMutable();
    +                  messages_.add(m);
    +                } else {
    +                  messagesBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.PublishRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1171,7 +1135,18 @@ public PublishRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new PublishRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java
    index 25caaf8bca7e..dee485dc937e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java
    @@ -52,59 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private PublishResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                messageIds_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              messageIds_.add(s);
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        messageIds_ = messageIds_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_PublishResponse_descriptor;
    @@ -206,7 +153,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < messageIds_.size(); i++) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 1, messageIds_.getRaw(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -223,7 +170,7 @@ public int getSerializedSize() {
           size += dataSize;
           size += 1 * getMessageIdsList().size();
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -239,7 +186,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.PublishResponse other = (com.google.pubsub.v1.PublishResponse) obj;
     
         if (!getMessageIdsList().equals(other.getMessageIdsList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -254,7 +201,7 @@ public int hashCode() {
           hash = (37 * hash) + MESSAGE_IDS_FIELD_NUMBER;
           hash = (53 * hash) + getMessageIdsList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -382,17 +329,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.PublishResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -491,7 +431,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishResponse other) {
             }
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -506,17 +446,38 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.PublishResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureMessageIdsIsMutable();
    +                messageIds_.add(s);
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.PublishResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -740,7 +701,18 @@ public PublishResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new PublishResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    index f9243a265818..2c65daaa11e0 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    @@ -61,95 +61,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private PubsubMessage(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              data_ = input.readBytes();
    -              break;
    -            }
    -          case 18:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                attributes_ =
    -                    com.google.protobuf.MapField.newMapField(
    -                        AttributesDefaultEntryHolder.defaultEntry);
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              com.google.protobuf.MapEntry attributes__ =
    -                  input.readMessage(
    -                      AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
    -                      extensionRegistry);
    -              attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue());
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              messageId_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (publishTime_ != null) {
    -                subBuilder = publishTime_.toBuilder();
    -              }
    -              publishTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(publishTime_);
    -                publishTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 42:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              orderingKey_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
    @@ -496,7 +407,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderingKey_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -527,7 +438,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderingKey_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -550,7 +461,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getPublishTime().equals(other.getPublishTime())) return false;
         }
         if (!getOrderingKey().equals(other.getOrderingKey())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -575,7 +486,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + ORDERING_KEY_FIELD_NUMBER;
         hash = (53 * hash) + getOrderingKey().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -730,17 +641,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
         }
     
         // Construct using com.google.pubsub.v1.PubsubMessage.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -860,7 +764,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) {
             orderingKey_ = other.orderingKey_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -875,17 +779,66 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.PubsubMessage parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                data_ = input.readBytes();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                com.google.protobuf.MapEntry attributes__ =
    +                    input.readMessage(
    +                        AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
    +                        extensionRegistry);
    +                internalGetMutableAttributes()
    +                    .getMutableMap()
    +                    .put(attributes__.getKey(), attributes__.getValue());
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                messageId_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(getPublishTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 42:
    +              {
    +                orderingKey_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 42
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.PubsubMessage) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1611,7 +1564,18 @@ public PubsubMessage parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new PubsubMessage(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    index c6d954e25283..1576416ee86d 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java
    @@ -52,62 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private PullRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              subscription_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              returnImmediately_ = input.readBool();
    -              break;
    -            }
    -          case 24:
    -            {
    -              maxMessages_ = input.readInt32();
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor;
       }
    @@ -247,7 +191,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (maxMessages_ != 0) {
           output.writeInt32(3, maxMessages_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -265,7 +209,7 @@ public int getSerializedSize() {
         if (maxMessages_ != 0) {
           size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxMessages_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -283,7 +227,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getSubscription().equals(other.getSubscription())) return false;
         if (getReturnImmediately() != other.getReturnImmediately()) return false;
         if (getMaxMessages() != other.getMaxMessages()) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -300,7 +244,7 @@ public int hashCode() {
         hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnImmediately());
         hash = (37 * hash) + MAX_MESSAGES_FIELD_NUMBER;
         hash = (53 * hash) + getMaxMessages();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -428,17 +372,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.PullRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -538,7 +475,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PullRequest other) {
           if (other.getMaxMessages() != 0) {
             setMaxMessages(other.getMaxMessages());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -553,17 +490,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.PullRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                subscription_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                returnImmediately_ = input.readBool();
    +
    +                break;
    +              } // case 16
    +            case 24:
    +              {
    +                maxMessages_ = input.readInt32();
    +
    +                break;
    +              } // case 24
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.PullRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -863,7 +832,18 @@ public PullRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new PullRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java
    index f0482b4c3eea..7a020712d3c7 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java
    @@ -52,60 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private PullResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                receivedMessages_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              receivedMessages_.add(
    -                  input.readMessage(
    -                      com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry));
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_PullResponse_descriptor;
    @@ -222,7 +168,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         for (int i = 0; i < receivedMessages_.size(); i++) {
           output.writeMessage(1, receivedMessages_.get(i));
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -234,7 +180,7 @@ public int getSerializedSize() {
         for (int i = 0; i < receivedMessages_.size(); i++) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i));
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -250,7 +196,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.PullResponse other = (com.google.pubsub.v1.PullResponse) obj;
     
         if (!getReceivedMessagesList().equals(other.getReceivedMessagesList())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -265,7 +211,7 @@ public int hashCode() {
           hash = (37 * hash) + RECEIVED_MESSAGES_FIELD_NUMBER;
           hash = (53 * hash) + getReceivedMessagesList().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -393,19 +339,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.PullResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getReceivedMessagesFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -413,10 +350,11 @@ public Builder clear() {
           super.clear();
           if (receivedMessagesBuilder_ == null) {
             receivedMessages_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        receivedMessages_ = null;
             receivedMessagesBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           return this;
         }
     
    @@ -529,7 +467,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PullResponse other) {
               }
             }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -544,17 +482,44 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.PullResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.pubsub.v1.ReceivedMessage m =
    +                    input.readMessage(
    +                        com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry);
    +                if (receivedMessagesBuilder_ == null) {
    +                  ensureReceivedMessagesIsMutable();
    +                  receivedMessages_.add(m);
    +                } else {
    +                  receivedMessagesBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.PullResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1000,7 +965,18 @@ public PullResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new PullResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
    index c551db41d5cf..5dcae2fc969d 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java
    @@ -52,86 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private PushConfig(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              pushEndpoint_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                attributes_ =
    -                    com.google.protobuf.MapField.newMapField(
    -                        AttributesDefaultEntryHolder.defaultEntry);
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              com.google.protobuf.MapEntry attributes__ =
    -                  input.readMessage(
    -                      AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
    -                      extensionRegistry);
    -              attributes_.getMutableMap().put(attributes__.getKey(), attributes__.getValue());
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.pubsub.v1.PushConfig.OidcToken.Builder subBuilder = null;
    -              if (authenticationMethodCase_ == 3) {
    -                subBuilder =
    -                    ((com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_).toBuilder();
    -              }
    -              authenticationMethod_ =
    -                  input.readMessage(
    -                      com.google.pubsub.v1.PushConfig.OidcToken.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(
    -                    (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_);
    -                authenticationMethod_ = subBuilder.buildPartial();
    -              }
    -              authenticationMethodCase_ = 3;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor;
       }
    @@ -266,59 +186,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private OidcToken(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                serviceAccountEmail_ = s;
    -                break;
    -              }
    -            case 18:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -
    -                audience_ = s;
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           return com.google.pubsub.v1.PubsubProto
               .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor;
    @@ -470,7 +337,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_);
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -485,7 +352,7 @@ public int getSerializedSize() {
           if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) {
             size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -503,7 +370,7 @@ public boolean equals(final java.lang.Object obj) {
     
           if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false;
           if (!getAudience().equals(other.getAudience())) return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -518,7 +385,7 @@ public int hashCode() {
           hash = (53 * hash) + getServiceAccountEmail().hashCode();
           hash = (37 * hash) + AUDIENCE_FIELD_NUMBER;
           hash = (53 * hash) + getAudience().hashCode();
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -651,17 +518,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           }
     
           // Construct using com.google.pubsub.v1.PushConfig.OidcToken.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -759,7 +619,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig.OidcToken other) {
               audience_ = other.audience_;
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -774,17 +634,43 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.pubsub.v1.PushConfig.OidcToken parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  serviceAccountEmail_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  audience_ = input.readStringRequireUtf8();
    +
    +                  break;
    +                } // case 18
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage = (com.google.pubsub.v1.PushConfig.OidcToken) e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -1078,7 +964,19 @@ public OidcToken parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new OidcToken(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -1427,7 +1325,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (authenticationMethodCase_ == 3) {
           output.writeMessage(3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -1454,7 +1352,7 @@ public int getSerializedSize() {
               com.google.protobuf.CodedOutputStream.computeMessageSize(
                   3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -1479,7 +1377,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -1504,7 +1402,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -1651,17 +1549,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
         }
     
         // Construct using com.google.pubsub.v1.PushConfig.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -1670,6 +1561,9 @@ public Builder clear() {
           pushEndpoint_ = "";
     
           internalGetMutableAttributes().clear();
    +      if (oidcTokenBuilder_ != null) {
    +        oidcTokenBuilder_.clear();
    +      }
           authenticationMethodCase_ = 0;
           authenticationMethod_ = null;
           return this;
    @@ -1775,7 +1669,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) {
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1790,17 +1684,54 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.PushConfig parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                pushEndpoint_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                com.google.protobuf.MapEntry attributes__ =
    +                    input.readMessage(
    +                        AttributesDefaultEntryHolder.defaultEntry.getParserForType(),
    +                        extensionRegistry);
    +                internalGetMutableAttributes()
    +                    .getMutableMap()
    +                    .put(attributes__.getKey(), attributes__.getValue());
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getOidcTokenFieldBuilder().getBuilder(), extensionRegistry);
    +                authenticationMethodCase_ = 3;
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.PushConfig) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -2448,7 +2379,18 @@ public PushConfig parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new PushConfig(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
    index 7145c9e058e0..5651e06573cb 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java
    @@ -52,72 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ReceivedMessage(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              ackId_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.pubsub.v1.PubsubMessage.Builder subBuilder = null;
    -              if (message_ != null) {
    -                subBuilder = message_.toBuilder();
    -              }
    -              message_ =
    -                  input.readMessage(com.google.pubsub.v1.PubsubMessage.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(message_);
    -                message_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 24:
    -            {
    -              deliveryAttempt_ = input.readInt32();
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_ReceivedMessage_descriptor;
    @@ -280,7 +214,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (deliveryAttempt_ != 0) {
           output.writeInt32(3, deliveryAttempt_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -298,7 +232,7 @@ public int getSerializedSize() {
         if (deliveryAttempt_ != 0) {
           size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, deliveryAttempt_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -319,7 +253,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getMessage().equals(other.getMessage())) return false;
         }
         if (getDeliveryAttempt() != other.getDeliveryAttempt()) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -338,7 +272,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + DELIVERY_ATTEMPT_FIELD_NUMBER;
         hash = (53 * hash) + getDeliveryAttempt();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -466,17 +400,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ReceivedMessage.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -584,7 +511,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ReceivedMessage other) {
           if (other.getDeliveryAttempt() != 0) {
             setDeliveryAttempt(other.getDeliveryAttempt());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -599,17 +526,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ReceivedMessage parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                ackId_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            case 24:
    +              {
    +                deliveryAttempt_ = input.readInt32();
    +
    +                break;
    +              } // case 24
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ReceivedMessage) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1021,7 +980,18 @@ public ReceivedMessage parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ReceivedMessage(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java
    index 51f5b8e47040..fbdcafa1ce44 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java
    @@ -57,75 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private RetryPolicy(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              com.google.protobuf.Duration.Builder subBuilder = null;
    -              if (minimumBackoff_ != null) {
    -                subBuilder = minimumBackoff_.toBuilder();
    -              }
    -              minimumBackoff_ =
    -                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(minimumBackoff_);
    -                minimumBackoff_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.Duration.Builder subBuilder = null;
    -              if (maximumBackoff_ != null) {
    -                subBuilder = maximumBackoff_.toBuilder();
    -              }
    -              maximumBackoff_ =
    -                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(maximumBackoff_);
    -                maximumBackoff_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_descriptor;
       }
    @@ -261,7 +192,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (maximumBackoff_ != null) {
           output.writeMessage(2, getMaximumBackoff());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -276,7 +207,7 @@ public int getSerializedSize() {
         if (maximumBackoff_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumBackoff());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -299,7 +230,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasMaximumBackoff()) {
           if (!getMaximumBackoff().equals(other.getMaximumBackoff())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -318,7 +249,7 @@ public int hashCode() {
           hash = (37 * hash) + MAXIMUM_BACKOFF_FIELD_NUMBER;
           hash = (53 * hash) + getMaximumBackoff().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -453,17 +384,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.RetryPolicy.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -572,7 +496,7 @@ public Builder mergeFrom(com.google.pubsub.v1.RetryPolicy other) {
           if (other.hasMaximumBackoff()) {
             mergeMaximumBackoff(other.getMaximumBackoff());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -587,17 +511,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.RetryPolicy parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getMinimumBackoffFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getMaximumBackoffFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.RetryPolicy) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1021,7 +971,18 @@ public RetryPolicy parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new RetryPolicy(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
    index 9dfc5bca41b1..bb7ac7757a6c 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java
    @@ -54,66 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Schema(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              type_ = rawValue;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              definition_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor;
       }
    @@ -446,7 +386,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, definition_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -464,7 +404,7 @@ public int getSerializedSize() {
         if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, definition_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -482,7 +422,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getName().equals(other.getName())) return false;
         if (type_ != other.type_) return false;
         if (!getDefinition().equals(other.getDefinition())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -499,7 +439,7 @@ public int hashCode() {
         hash = (53 * hash) + type_;
         hash = (37 * hash) + DEFINITION_FIELD_NUMBER;
         hash = (53 * hash) + getDefinition().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -625,17 +565,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.Schema.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -735,7 +668,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Schema other) {
             definition_ = other.definition_;
             onChanged();
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -750,17 +683,49 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.Schema parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                type_ = input.readEnum();
    +
    +                break;
    +              } // case 16
    +            case 26:
    +              {
    +                definition_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.Schema) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1113,7 +1078,18 @@ public Schema parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Schema(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java
    index 38a3b711e7f9..a7174f36765f 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java
    @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private SchemaSettings(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              schema_ = s;
    -              break;
    -            }
    -          case 16:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              encoding_ = rawValue;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_SchemaSettings_descriptor;
    @@ -235,7 +182,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) {
           output.writeEnum(2, encoding_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -250,7 +197,7 @@ public int getSerializedSize() {
         if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) {
           size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, encoding_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -267,7 +214,7 @@ public boolean equals(final java.lang.Object obj) {
     
         if (!getSchema().equals(other.getSchema())) return false;
         if (encoding_ != other.encoding_) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -282,7 +229,7 @@ public int hashCode() {
         hash = (53 * hash) + getSchema().hashCode();
         hash = (37 * hash) + ENCODING_FIELD_NUMBER;
         hash = (53 * hash) + encoding_;
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -410,17 +357,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.SchemaSettings.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -514,7 +454,7 @@ public Builder mergeFrom(com.google.pubsub.v1.SchemaSettings other) {
           if (other.encoding_ != 0) {
             setEncodingValue(other.getEncodingValue());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -529,17 +469,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.SchemaSettings parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                schema_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 16:
    +              {
    +                encoding_ = input.readEnum();
    +
    +                break;
    +              } // case 16
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.SchemaSettings) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -796,7 +762,18 @@ public SchemaSettings parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SchemaSettings(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java
    index 813c4f2d44ca..d29341d6f8d9 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java
    @@ -52,74 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private SeekRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              subscription_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (targetCase_ == 2) {
    -                subBuilder = ((com.google.protobuf.Timestamp) target_).toBuilder();
    -              }
    -              target_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom((com.google.protobuf.Timestamp) target_);
    -                target_ = subBuilder.buildPartial();
    -              }
    -              targetCase_ = 2;
    -              break;
    -            }
    -          case 26:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              targetCase_ = 3;
    -              target_ = s;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor;
       }
    @@ -413,7 +345,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (targetCase_ == 3) {
           com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -433,7 +365,7 @@ public int getSerializedSize() {
         if (targetCase_ == 3) {
           size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -460,7 +392,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -485,7 +417,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -613,17 +545,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.SeekRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -631,6 +556,9 @@ public Builder clear() {
           super.clear();
           subscription_ = "";
     
    +      if (timeBuilder_ != null) {
    +        timeBuilder_.clear();
    +      }
           targetCase_ = 0;
           target_ = null;
           return this;
    @@ -742,7 +670,7 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekRequest other) {
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -757,17 +685,50 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.SeekRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                subscription_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getTimeFieldBuilder().getBuilder(), extensionRegistry);
    +                targetCase_ = 2;
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                targetCase_ = 3;
    +                target_ = s;
    +                break;
    +              } // case 26
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.SeekRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1374,7 +1335,18 @@ public SeekRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SeekRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java
    index fe0aff80d7e2..951b4d2883cd 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java
    @@ -50,45 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private SeekResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_SeekResponse_descriptor;
    @@ -118,7 +79,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -127,7 +88,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -142,7 +103,7 @@ public boolean equals(final java.lang.Object obj) {
         }
         com.google.pubsub.v1.SeekResponse other = (com.google.pubsub.v1.SeekResponse) obj;
     
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -153,7 +114,7 @@ public int hashCode() {
         }
         int hash = 41;
         hash = (19 * hash) + getDescriptor().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -281,17 +242,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.SeekResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -372,7 +326,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     
         public Builder mergeFrom(com.google.pubsub.v1.SeekResponse other) {
           if (other == com.google.pubsub.v1.SeekResponse.getDefaultInstance()) return this;
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -387,17 +341,31 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.SeekResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.SeekResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -433,7 +401,18 @@ public SeekResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new SeekResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java
    index 927b203e8e04..ad5014608ea1 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java
    @@ -57,88 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Snapshot(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              topic_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.protobuf.Timestamp.Builder subBuilder = null;
    -              if (expireTime_ != null) {
    -                subBuilder = expireTime_.toBuilder();
    -              }
    -              expireTime_ =
    -                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(expireTime_);
    -                expireTime_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 34:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                labels_ =
    -                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              com.google.protobuf.MapEntry labels__ =
    -                  input.readMessage(
    -                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    -              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor;
       }
    @@ -461,7 +379,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         }
         com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
             output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -489,7 +407,7 @@ public int getSerializedSize() {
                   .build();
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -511,7 +429,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getExpireTime().equals(other.getExpireTime())) return false;
         }
         if (!internalGetLabels().equals(other.internalGetLabels())) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -534,7 +452,7 @@ public int hashCode() {
           hash = (37 * hash) + LABELS_FIELD_NUMBER;
           hash = (53 * hash) + internalGetLabels().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -684,17 +602,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
         }
     
         // Construct using com.google.pubsub.v1.Snapshot.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -807,7 +718,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) {
             mergeExpireTime(other.getExpireTime());
           }
           internalGetMutableLabels().mergeFrom(other.internalGetLabels());
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -822,17 +733,60 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.Snapshot parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                topic_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                com.google.protobuf.MapEntry labels__ =
    +                    input.readMessage(
    +                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
    +                        extensionRegistry);
    +                internalGetMutableLabels()
    +                    .getMutableMap()
    +                    .put(labels__.getKey(), labels__.getValue());
    +                break;
    +              } // case 34
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.Snapshot) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1511,7 +1465,18 @@ public Snapshot parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Snapshot(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    index fbeb6c13bc6f..5bdfc5493d2e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java
    @@ -58,127 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private StreamingPullRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              subscription_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                ackIds_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              ackIds_.add(s);
    -              break;
    -            }
    -          case 24:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                modifyDeadlineSeconds_ = newIntList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              modifyDeadlineSeconds_.addInt(input.readInt32());
    -              break;
    -            }
    -          case 26:
    -            {
    -              int length = input.readRawVarint32();
    -              int limit = input.pushLimit(length);
    -              if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
    -                modifyDeadlineSeconds_ = newIntList();
    -                mutable_bitField0_ |= 0x00000002;
    -              }
    -              while (input.getBytesUntilLimit() > 0) {
    -                modifyDeadlineSeconds_.addInt(input.readInt32());
    -              }
    -              input.popLimit(limit);
    -              break;
    -            }
    -          case 34:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
    -                modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList();
    -                mutable_bitField0_ |= 0x00000004;
    -              }
    -              modifyDeadlineAckIds_.add(s);
    -              break;
    -            }
    -          case 40:
    -            {
    -              streamAckDeadlineSeconds_ = input.readInt32();
    -              break;
    -            }
    -          case 50:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              clientId_ = s;
    -              break;
    -            }
    -          case 56:
    -            {
    -              maxOutstandingMessages_ = input.readInt64();
    -              break;
    -            }
    -          case 64:
    -            {
    -              maxOutstandingBytes_ = input.readInt64();
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        ackIds_ = ackIds_.getUnmodifiableView();
    -      }
    -      if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -        modifyDeadlineSeconds_.makeImmutable(); // C
    -      }
    -      if (((mutable_bitField0_ & 0x00000004) != 0)) {
    -        modifyDeadlineAckIds_ = modifyDeadlineAckIds_.getUnmodifiableView();
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor;
    @@ -662,7 +541,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (maxOutstandingBytes_ != 0L) {
           output.writeInt64(8, maxOutstandingBytes_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -716,7 +595,7 @@ public int getSerializedSize() {
         if (maxOutstandingBytes_ != 0L) {
           size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, maxOutstandingBytes_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -740,7 +619,7 @@ public boolean equals(final java.lang.Object obj) {
         if (!getClientId().equals(other.getClientId())) return false;
         if (getMaxOutstandingMessages() != other.getMaxOutstandingMessages()) return false;
         if (getMaxOutstandingBytes() != other.getMaxOutstandingBytes()) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -773,7 +652,7 @@ public int hashCode() {
         hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingMessages());
         hash = (37 * hash) + MAX_OUTSTANDING_BYTES_FIELD_NUMBER;
         hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingBytes());
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -904,17 +783,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.StreamingPullRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -1080,7 +952,7 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) {
           if (other.getMaxOutstandingBytes() != 0L) {
             setMaxOutstandingBytes(other.getMaxOutstandingBytes());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1095,17 +967,93 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.StreamingPullRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                subscription_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureAckIdsIsMutable();
    +                ackIds_.add(s);
    +                break;
    +              } // case 18
    +            case 24:
    +              {
    +                int v = input.readInt32();
    +                ensureModifyDeadlineSecondsIsMutable();
    +                modifyDeadlineSeconds_.addInt(v);
    +                break;
    +              } // case 24
    +            case 26:
    +              {
    +                int length = input.readRawVarint32();
    +                int limit = input.pushLimit(length);
    +                ensureModifyDeadlineSecondsIsMutable();
    +                while (input.getBytesUntilLimit() > 0) {
    +                  modifyDeadlineSeconds_.addInt(input.readInt32());
    +                }
    +                input.popLimit(limit);
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                ensureModifyDeadlineAckIdsIsMutable();
    +                modifyDeadlineAckIds_.add(s);
    +                break;
    +              } // case 34
    +            case 40:
    +              {
    +                streamAckDeadlineSeconds_ = input.readInt32();
    +
    +                break;
    +              } // case 40
    +            case 50:
    +              {
    +                clientId_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 50
    +            case 56:
    +              {
    +                maxOutstandingMessages_ = input.readInt64();
    +
    +                break;
    +              } // case 56
    +            case 64:
    +              {
    +                maxOutstandingBytes_ = input.readInt64();
    +
    +                break;
    +              } // case 64
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.StreamingPullRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -2223,7 +2171,18 @@ public StreamingPullRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new StreamingPullRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    index 0ea49f678224..a7ef508cb925 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
    @@ -53,115 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private StreamingPullResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                receivedMessages_ = new java.util.ArrayList();
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              receivedMessages_.add(
    -                  input.readMessage(
    -                      com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry));
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder
    -                  subBuilder = null;
    -              if (modifyAckDeadlineConfirmation_ != null) {
    -                subBuilder = modifyAckDeadlineConfirmation_.toBuilder();
    -              }
    -              modifyAckDeadlineConfirmation_ =
    -                  input.readMessage(
    -                      com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
    -                          .parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(modifyAckDeadlineConfirmation_);
    -                modifyAckDeadlineConfirmation_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder subBuilder =
    -                  null;
    -              if (subscriptionProperties_ != null) {
    -                subBuilder = subscriptionProperties_.toBuilder();
    -              }
    -              subscriptionProperties_ =
    -                  input.readMessage(
    -                      com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(subscriptionProperties_);
    -                subscriptionProperties_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 42:
    -            {
    -              com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder
    -                  subBuilder = null;
    -              if (acknowledgeConfirmation_ != null) {
    -                subBuilder = acknowledgeConfirmation_.toBuilder();
    -              }
    -              acknowledgeConfirmation_ =
    -                  input.readMessage(
    -                      com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.parser(),
    -                      extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(acknowledgeConfirmation_);
    -                acknowledgeConfirmation_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -        receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_);
    -      }
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
    @@ -376,85 +267,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private AcknowledgeConfirmation(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      int mutable_bitField0_ = 0;
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                  ackIds_ = new com.google.protobuf.LazyStringArrayList();
    -                  mutable_bitField0_ |= 0x00000001;
    -                }
    -                ackIds_.add(s);
    -                break;
    -              }
    -            case 18:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                  invalidAckIds_ = new com.google.protobuf.LazyStringArrayList();
    -                  mutable_bitField0_ |= 0x00000002;
    -                }
    -                invalidAckIds_.add(s);
    -                break;
    -              }
    -            case 26:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                if (!((mutable_bitField0_ & 0x00000004) != 0)) {
    -                  unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList();
    -                  mutable_bitField0_ |= 0x00000004;
    -                }
    -                unorderedAckIds_.add(s);
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -          ackIds_ = ackIds_.getUnmodifiableView();
    -        }
    -        if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -          invalidAckIds_ = invalidAckIds_.getUnmodifiableView();
    -        }
    -        if (((mutable_bitField0_ & 0x00000004) != 0)) {
    -          unorderedAckIds_ = unorderedAckIds_.getUnmodifiableView();
    -        }
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           return com.google.pubsub.v1.PubsubProto
               .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor;
    @@ -680,7 +492,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           for (int i = 0; i < unorderedAckIds_.size(); i++) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unorderedAckIds_.getRaw(i));
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -713,7 +525,7 @@ public int getSerializedSize() {
             size += dataSize;
             size += 1 * getUnorderedAckIdsList().size();
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -732,7 +544,7 @@ public boolean equals(final java.lang.Object obj) {
           if (!getAckIdsList().equals(other.getAckIdsList())) return false;
           if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false;
           if (!getUnorderedAckIdsList().equals(other.getUnorderedAckIdsList())) return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -755,7 +567,7 @@ public int hashCode() {
             hash = (37 * hash) + UNORDERED_ACK_IDS_FIELD_NUMBER;
             hash = (53 * hash) + getUnorderedAckIdsList().hashCode();
           }
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -890,17 +702,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     
           // Construct using
           // com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -1042,7 +847,7 @@ public Builder mergeFrom(
               }
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -1057,19 +862,52 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  ensureAckIdsIsMutable();
    +                  ackIds_.add(s);
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  ensureInvalidAckIdsIsMutable();
    +                  invalidAckIds_.add(s);
    +                  break;
    +                } // case 18
    +              case 26:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  ensureUnorderedAckIdsIsMutable();
    +                  unorderedAckIds_.add(s);
    +                  break;
    +                } // case 26
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -1623,7 +1461,19 @@ public AcknowledgeConfirmation parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new AcknowledgeConfirmation(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -1792,72 +1642,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private ModifyAckDeadlineConfirmation(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      int mutable_bitField0_ = 0;
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 10:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                  ackIds_ = new com.google.protobuf.LazyStringArrayList();
    -                  mutable_bitField0_ |= 0x00000001;
    -                }
    -                ackIds_.add(s);
    -                break;
    -              }
    -            case 18:
    -              {
    -                java.lang.String s = input.readStringRequireUtf8();
    -                if (!((mutable_bitField0_ & 0x00000002) != 0)) {
    -                  invalidAckIds_ = new com.google.protobuf.LazyStringArrayList();
    -                  mutable_bitField0_ |= 0x00000002;
    -                }
    -                invalidAckIds_.add(s);
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        if (((mutable_bitField0_ & 0x00000001) != 0)) {
    -          ackIds_ = ackIds_.getUnmodifiableView();
    -        }
    -        if (((mutable_bitField0_ & 0x00000002) != 0)) {
    -          invalidAckIds_ = invalidAckIds_.getUnmodifiableView();
    -        }
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           return com.google.pubsub.v1.PubsubProto
               .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor;
    @@ -2020,7 +1804,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           for (int i = 0; i < invalidAckIds_.size(); i++) {
             com.google.protobuf.GeneratedMessageV3.writeString(output, 2, invalidAckIds_.getRaw(i));
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -2045,7 +1829,7 @@ public int getSerializedSize() {
             size += dataSize;
             size += 1 * getInvalidAckIdsList().size();
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -2064,7 +1848,7 @@ public boolean equals(final java.lang.Object obj) {
     
           if (!getAckIdsList().equals(other.getAckIdsList())) return false;
           if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -2083,7 +1867,7 @@ public int hashCode() {
             hash = (37 * hash) + INVALID_ACK_IDS_FIELD_NUMBER;
             hash = (53 * hash) + getInvalidAckIdsList().hashCode();
           }
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -2224,17 +2008,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     
           // Construct using
           // com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -2362,7 +2139,7 @@ public Builder mergeFrom(
               }
               onChanged();
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -2377,20 +2154,45 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parsedMessage =
    -            null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 10:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  ensureAckIdsIsMutable();
    +                  ackIds_.add(s);
    +                  break;
    +                } // case 10
    +              case 18:
    +                {
    +                  java.lang.String s = input.readStringRequireUtf8();
    +                  ensureInvalidAckIdsIsMutable();
    +                  invalidAckIds_.add(s);
    +                  break;
    +                } // case 18
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -2777,7 +2579,19 @@ public ModifyAckDeadlineConfirmation parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new ModifyAckDeadlineConfirmation(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -2860,55 +2674,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
           return this.unknownFields;
         }
     
    -    private SubscriptionProperties(
    -        com.google.protobuf.CodedInputStream input,
    -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -        throws com.google.protobuf.InvalidProtocolBufferException {
    -      this();
    -      if (extensionRegistry == null) {
    -        throw new java.lang.NullPointerException();
    -      }
    -      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -          com.google.protobuf.UnknownFieldSet.newBuilder();
    -      try {
    -        boolean done = false;
    -        while (!done) {
    -          int tag = input.readTag();
    -          switch (tag) {
    -            case 0:
    -              done = true;
    -              break;
    -            case 8:
    -              {
    -                exactlyOnceDeliveryEnabled_ = input.readBool();
    -                break;
    -              }
    -            case 16:
    -              {
    -                messageOrderingEnabled_ = input.readBool();
    -                break;
    -              }
    -            default:
    -              {
    -                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                  done = true;
    -                }
    -                break;
    -              }
    -          }
    -        }
    -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        throw e.setUnfinishedMessage(this);
    -      } catch (com.google.protobuf.UninitializedMessageException e) {
    -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -      } catch (java.io.IOException e) {
    -        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -      } finally {
    -        this.unknownFields = unknownFields.build();
    -        makeExtensionsImmutable();
    -      }
    -    }
    -
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
           return com.google.pubsub.v1.PubsubProto
               .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor;
    @@ -2980,7 +2745,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
           if (messageOrderingEnabled_ != false) {
             output.writeBool(2, messageOrderingEnabled_);
           }
    -      unknownFields.writeTo(output);
    +      getUnknownFields().writeTo(output);
         }
     
         @java.lang.Override
    @@ -2996,7 +2761,7 @@ public int getSerializedSize() {
           if (messageOrderingEnabled_ != false) {
             size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, messageOrderingEnabled_);
           }
    -      size += unknownFields.getSerializedSize();
    +      size += getUnknownFields().getSerializedSize();
           memoizedSize = size;
           return size;
         }
    @@ -3014,7 +2779,7 @@ public boolean equals(final java.lang.Object obj) {
     
           if (getExactlyOnceDeliveryEnabled() != other.getExactlyOnceDeliveryEnabled()) return false;
           if (getMessageOrderingEnabled() != other.getMessageOrderingEnabled()) return false;
    -      if (!unknownFields.equals(other.unknownFields)) return false;
    +      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
           return true;
         }
     
    @@ -3030,7 +2795,7 @@ public int hashCode() {
               (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExactlyOnceDeliveryEnabled());
           hash = (37 * hash) + MESSAGE_ORDERING_ENABLED_FIELD_NUMBER;
           hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMessageOrderingEnabled());
    -      hash = (29 * hash) + unknownFields.hashCode();
    +      hash = (29 * hash) + getUnknownFields().hashCode();
           memoizedHashCode = hash;
           return hash;
         }
    @@ -3164,17 +2929,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     
           // Construct using
           // com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder()
    -      private Builder() {
    -        maybeForceBuilderInitialization();
    -      }
    +      private Builder() {}
     
           private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
             super(parent);
    -        maybeForceBuilderInitialization();
    -      }
    -
    -      private void maybeForceBuilderInitialization() {
    -        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
           }
     
           @java.lang.Override
    @@ -3276,7 +3034,7 @@ public Builder mergeFrom(
             if (other.getMessageOrderingEnabled() != false) {
               setMessageOrderingEnabled(other.getMessageOrderingEnabled());
             }
    -        this.mergeUnknownFields(other.unknownFields);
    +        this.mergeUnknownFields(other.getUnknownFields());
             onChanged();
             return this;
           }
    @@ -3291,19 +3049,43 @@ public Builder mergeFrom(
               com.google.protobuf.CodedInputStream input,
               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
               throws java.io.IOException {
    -        com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parsedMessage = null;
    +        if (extensionRegistry == null) {
    +          throw new java.lang.NullPointerException();
    +        }
             try {
    -          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +          boolean done = false;
    +          while (!done) {
    +            int tag = input.readTag();
    +            switch (tag) {
    +              case 0:
    +                done = true;
    +                break;
    +              case 8:
    +                {
    +                  exactlyOnceDeliveryEnabled_ = input.readBool();
    +
    +                  break;
    +                } // case 8
    +              case 16:
    +                {
    +                  messageOrderingEnabled_ = input.readBool();
    +
    +                  break;
    +                } // case 16
    +              default:
    +                {
    +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                    done = true; // was an endgroup tag
    +                  }
    +                  break;
    +                } // default:
    +            } // switch (tag)
    +          } // while (!done)
             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -          parsedMessage =
    -              (com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties)
    -                  e.getUnfinishedMessage();
               throw e.unwrapIOException();
             } finally {
    -          if (parsedMessage != null) {
    -            mergeFrom(parsedMessage);
    -          }
    -        }
    +          onChanged();
    +        } // finally
             return this;
           }
     
    @@ -3446,7 +3228,19 @@ public SubscriptionProperties parsePartialFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
    -            return new SubscriptionProperties(input, extensionRegistry);
    +            Builder builder = newBuilder();
    +            try {
    +              builder.mergeFrom(input, extensionRegistry);
    +            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +              throw e.setUnfinishedMessage(builder.buildPartial());
    +            } catch (com.google.protobuf.UninitializedMessageException e) {
    +              throw e.asInvalidProtocolBufferException()
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            } catch (java.io.IOException e) {
    +              throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                  .setUnfinishedMessage(builder.buildPartial());
    +            }
    +            return builder.buildPartial();
               }
             };
     
    @@ -3738,7 +3532,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (acknowledgeConfirmation_ != null) {
           output.writeMessage(5, getAcknowledgeConfirmation());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -3763,7 +3557,7 @@ public int getSerializedSize() {
           size +=
               com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAcknowledgeConfirmation());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -3794,7 +3588,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasSubscriptionProperties()) {
           if (!getSubscriptionProperties().equals(other.getSubscriptionProperties())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -3821,7 +3615,7 @@ public int hashCode() {
           hash = (37 * hash) + SUBSCRIPTION_PROPERTIES_FIELD_NUMBER;
           hash = (53 * hash) + getSubscriptionProperties().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -3951,19 +3745,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.StreamingPullResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
    -        getReceivedMessagesFieldBuilder();
    -      }
         }
     
         @java.lang.Override
    @@ -3971,10 +3756,11 @@ public Builder clear() {
           super.clear();
           if (receivedMessagesBuilder_ == null) {
             receivedMessages_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
           } else {
    +        receivedMessages_ = null;
             receivedMessagesBuilder_.clear();
           }
    +      bitField0_ = (bitField0_ & ~0x00000001);
           if (acknowledgeConfirmationBuilder_ == null) {
             acknowledgeConfirmation_ = null;
           } else {
    @@ -4130,7 +3916,7 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) {
           if (other.hasSubscriptionProperties()) {
             mergeSubscriptionProperties(other.getSubscriptionProperties());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -4145,17 +3931,65 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.StreamingPullResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                com.google.pubsub.v1.ReceivedMessage m =
    +                    input.readMessage(
    +                        com.google.pubsub.v1.ReceivedMessage.parser(), extensionRegistry);
    +                if (receivedMessagesBuilder_ == null) {
    +                  ensureReceivedMessagesIsMutable();
    +                  receivedMessages_.add(m);
    +                } else {
    +                  receivedMessagesBuilder_.addMessage(m);
    +                }
    +                break;
    +              } // case 10
    +            case 26:
    +              {
    +                input.readMessage(
    +                    getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                input.readMessage(
    +                    getSubscriptionPropertiesFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 42:
    +              {
    +                input.readMessage(
    +                    getAcknowledgeConfirmationFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 42
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.StreamingPullResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -5205,7 +5039,18 @@ public StreamingPullResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new StreamingPullResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java
    index acf2462dbf8e..d7958822e2fc 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java
    @@ -55,220 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Subscription(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              topic_ = s;
    -              break;
    -            }
    -          case 34:
    -            {
    -              com.google.pubsub.v1.PushConfig.Builder subBuilder = null;
    -              if (pushConfig_ != null) {
    -                subBuilder = pushConfig_.toBuilder();
    -              }
    -              pushConfig_ =
    -                  input.readMessage(com.google.pubsub.v1.PushConfig.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(pushConfig_);
    -                pushConfig_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 40:
    -            {
    -              ackDeadlineSeconds_ = input.readInt32();
    -              break;
    -            }
    -          case 56:
    -            {
    -              retainAckedMessages_ = input.readBool();
    -              break;
    -            }
    -          case 66:
    -            {
    -              com.google.protobuf.Duration.Builder subBuilder = null;
    -              if (messageRetentionDuration_ != null) {
    -                subBuilder = messageRetentionDuration_.toBuilder();
    -              }
    -              messageRetentionDuration_ =
    -                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(messageRetentionDuration_);
    -                messageRetentionDuration_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 74:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                labels_ =
    -                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              com.google.protobuf.MapEntry labels__ =
    -                  input.readMessage(
    -                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    -              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
    -              break;
    -            }
    -          case 80:
    -            {
    -              enableMessageOrdering_ = input.readBool();
    -              break;
    -            }
    -          case 90:
    -            {
    -              com.google.pubsub.v1.ExpirationPolicy.Builder subBuilder = null;
    -              if (expirationPolicy_ != null) {
    -                subBuilder = expirationPolicy_.toBuilder();
    -              }
    -              expirationPolicy_ =
    -                  input.readMessage(
    -                      com.google.pubsub.v1.ExpirationPolicy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(expirationPolicy_);
    -                expirationPolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 98:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              filter_ = s;
    -              break;
    -            }
    -          case 106:
    -            {
    -              com.google.pubsub.v1.DeadLetterPolicy.Builder subBuilder = null;
    -              if (deadLetterPolicy_ != null) {
    -                subBuilder = deadLetterPolicy_.toBuilder();
    -              }
    -              deadLetterPolicy_ =
    -                  input.readMessage(
    -                      com.google.pubsub.v1.DeadLetterPolicy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(deadLetterPolicy_);
    -                deadLetterPolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 114:
    -            {
    -              com.google.pubsub.v1.RetryPolicy.Builder subBuilder = null;
    -              if (retryPolicy_ != null) {
    -                subBuilder = retryPolicy_.toBuilder();
    -              }
    -              retryPolicy_ =
    -                  input.readMessage(com.google.pubsub.v1.RetryPolicy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(retryPolicy_);
    -                retryPolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 120:
    -            {
    -              detached_ = input.readBool();
    -              break;
    -            }
    -          case 128:
    -            {
    -              enableExactlyOnceDelivery_ = input.readBool();
    -              break;
    -            }
    -          case 138:
    -            {
    -              com.google.protobuf.Duration.Builder subBuilder = null;
    -              if (topicMessageRetentionDuration_ != null) {
    -                subBuilder = topicMessageRetentionDuration_.toBuilder();
    -              }
    -              topicMessageRetentionDuration_ =
    -                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(topicMessageRetentionDuration_);
    -                topicMessageRetentionDuration_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 146:
    -            {
    -              com.google.pubsub.v1.BigQueryConfig.Builder subBuilder = null;
    -              if (bigqueryConfig_ != null) {
    -                subBuilder = bigqueryConfig_.toBuilder();
    -              }
    -              bigqueryConfig_ =
    -                  input.readMessage(
    -                      com.google.pubsub.v1.BigQueryConfig.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(bigqueryConfig_);
    -                bigqueryConfig_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 152:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              state_ = rawValue;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_Subscription_descriptor;
    @@ -1399,7 +1185,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) {
           output.writeEnum(19, state_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -1470,7 +1256,7 @@ public int getSerializedSize() {
         if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) {
           size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, state_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -1525,7 +1311,7 @@ public boolean equals(final java.lang.Object obj) {
             return false;
         }
         if (state_ != other.state_) return false;
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -1586,7 +1372,7 @@ public int hashCode() {
         }
         hash = (37 * hash) + STATE_FIELD_NUMBER;
         hash = (53 * hash) + state_;
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -1734,17 +1520,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
         }
     
         // Construct using com.google.pubsub.v1.Subscription.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -1985,7 +1764,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) {
           if (other.state_ != 0) {
             setStateValue(other.getStateValue());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -2000,17 +1779,142 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.Subscription parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                topic_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 18
    +            case 34:
    +              {
    +                input.readMessage(getPushConfigFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 34
    +            case 40:
    +              {
    +                ackDeadlineSeconds_ = input.readInt32();
    +
    +                break;
    +              } // case 40
    +            case 56:
    +              {
    +                retainAckedMessages_ = input.readBool();
    +
    +                break;
    +              } // case 56
    +            case 66:
    +              {
    +                input.readMessage(
    +                    getMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 66
    +            case 74:
    +              {
    +                com.google.protobuf.MapEntry labels__ =
    +                    input.readMessage(
    +                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
    +                        extensionRegistry);
    +                internalGetMutableLabels()
    +                    .getMutableMap()
    +                    .put(labels__.getKey(), labels__.getValue());
    +                break;
    +              } // case 74
    +            case 80:
    +              {
    +                enableMessageOrdering_ = input.readBool();
    +
    +                break;
    +              } // case 80
    +            case 90:
    +              {
    +                input.readMessage(
    +                    getExpirationPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 90
    +            case 98:
    +              {
    +                filter_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 98
    +            case 106:
    +              {
    +                input.readMessage(
    +                    getDeadLetterPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 106
    +            case 114:
    +              {
    +                input.readMessage(getRetryPolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 114
    +            case 120:
    +              {
    +                detached_ = input.readBool();
    +
    +                break;
    +              } // case 120
    +            case 128:
    +              {
    +                enableExactlyOnceDelivery_ = input.readBool();
    +
    +                break;
    +              } // case 128
    +            case 138:
    +              {
    +                input.readMessage(
    +                    getTopicMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 138
    +            case 146:
    +              {
    +                input.readMessage(getBigqueryConfigFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 146
    +            case 152:
    +              {
    +                state_ = input.readEnum();
    +
    +                break;
    +              } // case 152
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.Subscription) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -4676,7 +4580,18 @@ public Subscription parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Subscription(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    index 6361c9e277b5..1a4f97258678 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    @@ -53,125 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private Topic(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    int mutable_bitField0_ = 0;
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              name_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
    -                labels_ =
    -                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
    -                mutable_bitField0_ |= 0x00000001;
    -              }
    -              com.google.protobuf.MapEntry labels__ =
    -                  input.readMessage(
    -                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
    -              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.pubsub.v1.MessageStoragePolicy.Builder subBuilder = null;
    -              if (messageStoragePolicy_ != null) {
    -                subBuilder = messageStoragePolicy_.toBuilder();
    -              }
    -              messageStoragePolicy_ =
    -                  input.readMessage(
    -                      com.google.pubsub.v1.MessageStoragePolicy.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(messageStoragePolicy_);
    -                messageStoragePolicy_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 42:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              kmsKeyName_ = s;
    -              break;
    -            }
    -          case 50:
    -            {
    -              com.google.pubsub.v1.SchemaSettings.Builder subBuilder = null;
    -              if (schemaSettings_ != null) {
    -                subBuilder = schemaSettings_.toBuilder();
    -              }
    -              schemaSettings_ =
    -                  input.readMessage(
    -                      com.google.pubsub.v1.SchemaSettings.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(schemaSettings_);
    -                schemaSettings_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 56:
    -            {
    -              satisfiesPzs_ = input.readBool();
    -              break;
    -            }
    -          case 66:
    -            {
    -              com.google.protobuf.Duration.Builder subBuilder = null;
    -              if (messageRetentionDuration_ != null) {
    -                subBuilder = messageRetentionDuration_.toBuilder();
    -              }
    -              messageRetentionDuration_ =
    -                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(messageRetentionDuration_);
    -                messageRetentionDuration_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor;
       }
    @@ -634,7 +515,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (messageRetentionDuration_ != null) {
           output.writeMessage(8, getMessageRetentionDuration());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -674,7 +555,7 @@ public int getSerializedSize() {
               com.google.protobuf.CodedOutputStream.computeMessageSize(
                   8, getMessageRetentionDuration());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -705,7 +586,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasMessageRetentionDuration()) {
           if (!getMessageRetentionDuration().equals(other.getMessageRetentionDuration())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -738,7 +619,7 @@ public int hashCode() {
           hash = (37 * hash) + MESSAGE_RETENTION_DURATION_FIELD_NUMBER;
           hash = (53 * hash) + getMessageRetentionDuration().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -884,17 +765,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
         }
     
         // Construct using com.google.pubsub.v1.Topic.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -1041,7 +915,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) {
           if (other.hasMessageRetentionDuration()) {
             mergeMessageRetentionDuration(other.getMessageRetentionDuration());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -1056,17 +930,80 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.Topic parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                name_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                com.google.protobuf.MapEntry labels__ =
    +                    input.readMessage(
    +                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
    +                        extensionRegistry);
    +                internalGetMutableLabels()
    +                    .getMutableMap()
    +                    .put(labels__.getKey(), labels__.getValue());
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(
    +                    getMessageStoragePolicyFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 26
    +            case 42:
    +              {
    +                kmsKeyName_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 42
    +            case 50:
    +              {
    +                input.readMessage(getSchemaSettingsFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 50
    +            case 56:
    +              {
    +                satisfiesPzs_ = input.readBool();
    +
    +                break;
    +              } // case 56
    +            case 66:
    +              {
    +                input.readMessage(
    +                    getMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 66
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.Topic) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -2209,7 +2146,18 @@ public Topic parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new Topic(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
    index 1925b6c4fd10..6f1ac750ace6 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java
    @@ -50,75 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private UpdateSnapshotRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              com.google.pubsub.v1.Snapshot.Builder subBuilder = null;
    -              if (snapshot_ != null) {
    -                subBuilder = snapshot_.toBuilder();
    -              }
    -              snapshot_ =
    -                  input.readMessage(com.google.pubsub.v1.Snapshot.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(snapshot_);
    -                snapshot_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.FieldMask.Builder subBuilder = null;
    -              if (updateMask_ != null) {
    -                subBuilder = updateMask_.toBuilder();
    -              }
    -              updateMask_ =
    -                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(updateMask_);
    -                updateMask_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor;
    @@ -252,7 +183,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (updateMask_ != null) {
           output.writeMessage(2, getUpdateMask());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -267,7 +198,7 @@ public int getSerializedSize() {
         if (updateMask_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -291,7 +222,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasUpdateMask()) {
           if (!getUpdateMask().equals(other.getUpdateMask())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -310,7 +241,7 @@ public int hashCode() {
           hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
           hash = (53 * hash) + getUpdateMask().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -439,17 +370,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.UpdateSnapshotRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -559,7 +483,7 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateSnapshotRequest other) {
           if (other.hasUpdateMask()) {
             mergeUpdateMask(other.getUpdateMask());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -574,17 +498,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.UpdateSnapshotRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getSnapshotFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.UpdateSnapshotRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1009,7 +959,18 @@ public UpdateSnapshotRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new UpdateSnapshotRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java
    index 0e9110799f45..66416bbf7dba 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java
    @@ -50,75 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private UpdateSubscriptionRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              com.google.pubsub.v1.Subscription.Builder subBuilder = null;
    -              if (subscription_ != null) {
    -                subBuilder = subscription_.toBuilder();
    -              }
    -              subscription_ =
    -                  input.readMessage(com.google.pubsub.v1.Subscription.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(subscription_);
    -                subscription_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.FieldMask.Builder subBuilder = null;
    -              if (updateMask_ != null) {
    -                subBuilder = updateMask_.toBuilder();
    -              }
    -              updateMask_ =
    -                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(updateMask_);
    -                updateMask_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor;
    @@ -260,7 +191,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (updateMask_ != null) {
           output.writeMessage(2, getUpdateMask());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -275,7 +206,7 @@ public int getSerializedSize() {
         if (updateMask_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -299,7 +230,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasUpdateMask()) {
           if (!getUpdateMask().equals(other.getUpdateMask())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -318,7 +249,7 @@ public int hashCode() {
           hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
           hash = (53 * hash) + getUpdateMask().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -447,17 +378,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.UpdateSubscriptionRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -567,7 +491,7 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateSubscriptionRequest other) {
           if (other.hasUpdateMask()) {
             mergeUpdateMask(other.getUpdateMask());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -582,17 +506,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.UpdateSubscriptionRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.UpdateSubscriptionRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1032,7 +982,18 @@ public UpdateSubscriptionRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new UpdateSubscriptionRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java
    index 51fe720e67ca..1c91f8962f9e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java
    @@ -50,74 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private UpdateTopicRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              com.google.pubsub.v1.Topic.Builder subBuilder = null;
    -              if (topic_ != null) {
    -                subBuilder = topic_.toBuilder();
    -              }
    -              topic_ = input.readMessage(com.google.pubsub.v1.Topic.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(topic_);
    -                topic_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.protobuf.FieldMask.Builder subBuilder = null;
    -              if (updateMask_ != null) {
    -                subBuilder = updateMask_.toBuilder();
    -              }
    -              updateMask_ =
    -                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(updateMask_);
    -                updateMask_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor;
    @@ -260,7 +192,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (updateMask_ != null) {
           output.writeMessage(2, getUpdateMask());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -275,7 +207,7 @@ public int getSerializedSize() {
         if (updateMask_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -298,7 +230,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasUpdateMask()) {
           if (!getUpdateMask().equals(other.getUpdateMask())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -317,7 +249,7 @@ public int hashCode() {
           hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
           hash = (53 * hash) + getUpdateMask().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -446,17 +378,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.UpdateTopicRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -566,7 +491,7 @@ public Builder mergeFrom(com.google.pubsub.v1.UpdateTopicRequest other) {
           if (other.hasUpdateMask()) {
             mergeUpdateMask(other.getUpdateMask());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -581,17 +506,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.UpdateTopicRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.UpdateTopicRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1032,7 +983,18 @@ public UpdateTopicRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new UpdateTopicRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java
    index b58b83ebceb1..d4fa9d1d4eaf 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java
    @@ -54,86 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ValidateMessageRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -              schemaSpecCase_ = 2;
    -              schemaSpec_ = s;
    -              break;
    -            }
    -          case 26:
    -            {
    -              com.google.pubsub.v1.Schema.Builder subBuilder = null;
    -              if (schemaSpecCase_ == 3) {
    -                subBuilder = ((com.google.pubsub.v1.Schema) schemaSpec_).toBuilder();
    -              }
    -              schemaSpec_ =
    -                  input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom((com.google.pubsub.v1.Schema) schemaSpec_);
    -                schemaSpec_ = subBuilder.buildPartial();
    -              }
    -              schemaSpecCase_ = 3;
    -              break;
    -            }
    -          case 34:
    -            {
    -              message_ = input.readBytes();
    -              break;
    -            }
    -          case 40:
    -            {
    -              int rawValue = input.readEnum();
    -
    -              encoding_ = rawValue;
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto
             .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor;
    @@ -457,7 +377,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) {
           output.writeEnum(5, encoding_);
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -483,7 +403,7 @@ public int getSerializedSize() {
         if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) {
           size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, encoding_);
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -513,7 +433,7 @@ public boolean equals(final java.lang.Object obj) {
           case 0:
           default:
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -542,7 +462,7 @@ public int hashCode() {
           case 0:
           default:
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -671,17 +591,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ValidateMessageRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -689,6 +602,9 @@ public Builder clear() {
           super.clear();
           parent_ = "";
     
    +      if (schemaBuilder_ != null) {
    +        schemaBuilder_.clear();
    +      }
           message_ = com.google.protobuf.ByteString.EMPTY;
     
           encoding_ = 0;
    @@ -813,7 +729,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ValidateMessageRequest other) {
                 break;
               }
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -828,17 +744,62 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ValidateMessageRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                java.lang.String s = input.readStringRequireUtf8();
    +                schemaSpecCase_ = 2;
    +                schemaSpec_ = s;
    +                break;
    +              } // case 18
    +            case 26:
    +              {
    +                input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry);
    +                schemaSpecCase_ = 3;
    +                break;
    +              } // case 26
    +            case 34:
    +              {
    +                message_ = input.readBytes();
    +
    +                break;
    +              } // case 34
    +            case 40:
    +              {
    +                encoding_ = input.readEnum();
    +
    +                break;
    +              } // case 40
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ValidateMessageRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -1500,7 +1461,18 @@ public ValidateMessageRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ValidateMessageRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java
    index f734b6925340..7f06b80f81e8 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java
    @@ -51,45 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ValidateMessageResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto
             .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor;
    @@ -119,7 +80,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -128,7 +89,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -144,7 +105,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.ValidateMessageResponse other =
             (com.google.pubsub.v1.ValidateMessageResponse) obj;
     
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -155,7 +116,7 @@ public int hashCode() {
         }
         int hash = 41;
         hash = (19 * hash) + getDescriptor().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -285,17 +246,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ValidateMessageResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -377,7 +331,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     
         public Builder mergeFrom(com.google.pubsub.v1.ValidateMessageResponse other) {
           if (other == com.google.pubsub.v1.ValidateMessageResponse.getDefaultInstance()) return this;
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -392,17 +346,31 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ValidateMessageResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ValidateMessageResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -438,7 +406,18 @@ public ValidateMessageResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ValidateMessageResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
    index 5aa2bf5dde2a..11127fe402be 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java
    @@ -52,66 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ValidateSchemaRequest(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          case 10:
    -            {
    -              java.lang.String s = input.readStringRequireUtf8();
    -
    -              parent_ = s;
    -              break;
    -            }
    -          case 18:
    -            {
    -              com.google.pubsub.v1.Schema.Builder subBuilder = null;
    -              if (schema_ != null) {
    -                subBuilder = schema_.toBuilder();
    -              }
    -              schema_ = input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry);
    -              if (subBuilder != null) {
    -                subBuilder.mergeFrom(schema_);
    -                schema_ = subBuilder.buildPartial();
    -              }
    -
    -              break;
    -            }
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto
             .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor;
    @@ -248,7 +188,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (schema_ != null) {
           output.writeMessage(2, getSchema());
         }
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -263,7 +203,7 @@ public int getSerializedSize() {
         if (schema_ != null) {
           size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema());
         }
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -284,7 +224,7 @@ public boolean equals(final java.lang.Object obj) {
         if (hasSchema()) {
           if (!getSchema().equals(other.getSchema())) return false;
         }
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -301,7 +241,7 @@ public int hashCode() {
           hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
           hash = (53 * hash) + getSchema().hashCode();
         }
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -430,17 +370,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ValidateSchemaRequest.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -543,7 +476,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ValidateSchemaRequest other) {
           if (other.hasSchema()) {
             mergeSchema(other.getSchema());
           }
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -558,17 +491,43 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ValidateSchemaRequest parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            case 10:
    +              {
    +                parent_ = input.readStringRequireUtf8();
    +
    +                break;
    +              } // case 10
    +            case 18:
    +              {
    +                input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry);
    +
    +                break;
    +              } // case 18
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ValidateSchemaRequest) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -903,7 +862,18 @@ public ValidateSchemaRequest parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ValidateSchemaRequest(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java
    index e7755cca336c..261caad45ce4 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java
    @@ -51,45 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
         return this.unknownFields;
       }
     
    -  private ValidateSchemaResponse(
    -      com.google.protobuf.CodedInputStream input,
    -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    -      throws com.google.protobuf.InvalidProtocolBufferException {
    -    this();
    -    if (extensionRegistry == null) {
    -      throw new java.lang.NullPointerException();
    -    }
    -    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
    -        com.google.protobuf.UnknownFieldSet.newBuilder();
    -    try {
    -      boolean done = false;
    -      while (!done) {
    -        int tag = input.readTag();
    -        switch (tag) {
    -          case 0:
    -            done = true;
    -            break;
    -          default:
    -            {
    -              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
    -                done = true;
    -              }
    -              break;
    -            }
    -        }
    -      }
    -    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -      throw e.setUnfinishedMessage(this);
    -    } catch (com.google.protobuf.UninitializedMessageException e) {
    -      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    -    } catch (java.io.IOException e) {
    -      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    -    } finally {
    -      this.unknownFields = unknownFields.build();
    -      makeExtensionsImmutable();
    -    }
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto
             .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor;
    @@ -119,7 +80,7 @@ public final boolean isInitialized() {
     
       @java.lang.Override
       public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    -    unknownFields.writeTo(output);
    +    getUnknownFields().writeTo(output);
       }
     
       @java.lang.Override
    @@ -128,7 +89,7 @@ public int getSerializedSize() {
         if (size != -1) return size;
     
         size = 0;
    -    size += unknownFields.getSerializedSize();
    +    size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
       }
    @@ -144,7 +105,7 @@ public boolean equals(final java.lang.Object obj) {
         com.google.pubsub.v1.ValidateSchemaResponse other =
             (com.google.pubsub.v1.ValidateSchemaResponse) obj;
     
    -    if (!unknownFields.equals(other.unknownFields)) return false;
    +    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
         return true;
       }
     
    @@ -155,7 +116,7 @@ public int hashCode() {
         }
         int hash = 41;
         hash = (19 * hash) + getDescriptor().hashCode();
    -    hash = (29 * hash) + unknownFields.hashCode();
    +    hash = (29 * hash) + getUnknownFields().hashCode();
         memoizedHashCode = hash;
         return hash;
       }
    @@ -285,17 +246,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         }
     
         // Construct using com.google.pubsub.v1.ValidateSchemaResponse.newBuilder()
    -    private Builder() {
    -      maybeForceBuilderInitialization();
    -    }
    +    private Builder() {}
     
         private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
           super(parent);
    -      maybeForceBuilderInitialization();
    -    }
    -
    -    private void maybeForceBuilderInitialization() {
    -      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
         }
     
         @java.lang.Override
    @@ -377,7 +331,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     
         public Builder mergeFrom(com.google.pubsub.v1.ValidateSchemaResponse other) {
           if (other == com.google.pubsub.v1.ValidateSchemaResponse.getDefaultInstance()) return this;
    -      this.mergeUnknownFields(other.unknownFields);
    +      this.mergeUnknownFields(other.getUnknownFields());
           onChanged();
           return this;
         }
    @@ -392,17 +346,31 @@ public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
    -      com.google.pubsub.v1.ValidateSchemaResponse parsedMessage = null;
    +      if (extensionRegistry == null) {
    +        throw new java.lang.NullPointerException();
    +      }
           try {
    -        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
    +        boolean done = false;
    +        while (!done) {
    +          int tag = input.readTag();
    +          switch (tag) {
    +            case 0:
    +              done = true;
    +              break;
    +            default:
    +              {
    +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
    +                  done = true; // was an endgroup tag
    +                }
    +                break;
    +              } // default:
    +          } // switch (tag)
    +        } // while (!done)
           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    -        parsedMessage = (com.google.pubsub.v1.ValidateSchemaResponse) e.getUnfinishedMessage();
             throw e.unwrapIOException();
           } finally {
    -        if (parsedMessage != null) {
    -          mergeFrom(parsedMessage);
    -        }
    -      }
    +        onChanged();
    +      } // finally
           return this;
         }
     
    @@ -438,7 +406,18 @@ public ValidateSchemaResponse parsePartialFrom(
                 com.google.protobuf.CodedInputStream input,
                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                 throws com.google.protobuf.InvalidProtocolBufferException {
    -          return new ValidateSchemaResponse(input, extensionRegistry);
    +          Builder builder = newBuilder();
    +          try {
    +            builder.mergeFrom(input, extensionRegistry);
    +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
    +            throw e.setUnfinishedMessage(builder.buildPartial());
    +          } catch (com.google.protobuf.UninitializedMessageException e) {
    +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
    +          } catch (java.io.IOException e) {
    +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
    +                .setUnfinishedMessage(builder.buildPartial());
    +          }
    +          return builder.buildPartial();
             }
           };
     
    
    From c6a5ab72dd49e4e1678f3a09e8ff0d5814954e0a Mon Sep 17 00:00:00 2001
    From: "release-please[bot]"
     <55107282+release-please[bot]@users.noreply.github.com>
    Date: Wed, 5 Oct 2022 19:44:19 +0000
    Subject: [PATCH 1219/2363] chore(main): release 1.120.20 (#1335)
    
    :robot: I have created a release *beep* *boop*
    ---
    
    
    ## [1.120.20](https://togithub.com/googleapis/java-pubsub/compare/v1.120.19...v1.120.20) (2022-10-05)
    
    
    ### Bug Fixes
    
    * update protobuf to v3.21.7 ([f94e80a](https://togithub.com/googleapis/java-pubsub/commit/f94e80a5eaebfc64d31fba44d2a243b2d5fc8872))
    
    ---
    This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
    ---
     java-pubsub/CHANGELOG.md                         | 7 +++++++
     java-pubsub/google-cloud-pubsub-bom/pom.xml      | 8 ++++----
     java-pubsub/google-cloud-pubsub/pom.xml          | 4 ++--
     java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml  | 4 ++--
     java-pubsub/pom.xml                              | 8 ++++----
     java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++--
     java-pubsub/samples/snapshot/pom.xml             | 2 +-
     java-pubsub/versions.txt                         | 6 +++---
     8 files changed, 25 insertions(+), 18 deletions(-)
    
    diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md
    index a066fdd57a68..3f25b74c820f 100644
    --- a/java-pubsub/CHANGELOG.md
    +++ b/java-pubsub/CHANGELOG.md
    @@ -1,5 +1,12 @@
     # Changelog
     
    +## [1.120.20](https://github.com/googleapis/java-pubsub/compare/v1.120.19...v1.120.20) (2022-10-05)
    +
    +
    +### Bug Fixes
    +
    +* update protobuf to v3.21.7 ([7c3ea60](https://github.com/googleapis/java-pubsub/commit/7c3ea6016e4288beab722a0c53c5ea132794e2bd))
    +
     ## [1.120.19](https://github.com/googleapis/java-pubsub/compare/v1.120.18...v1.120.19) (2022-10-03)
     
     
    diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml
    index e7e8f06c5115..1e0f81a8b0d5 100644
    --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml
    @@ -3,7 +3,7 @@
       4.0.0
       com.google.cloud
       google-cloud-pubsub-bom
    -  1.120.20-SNAPSHOT
    +  1.120.20
       pom
       
         com.google.cloud
    @@ -52,17 +52,17 @@
           
             com.google.cloud
             google-cloud-pubsub
    -        1.120.20-SNAPSHOT
    +        1.120.20
           
           
             com.google.api.grpc
             grpc-google-cloud-pubsub-v1
    -        1.102.20-SNAPSHOT
    +        1.102.20
           
           
             com.google.api.grpc
             proto-google-cloud-pubsub-v1
    -        1.102.20-SNAPSHOT
    +        1.102.20
           
         
       
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml
    index 45498741e8fc..aa195445df6d 100644
    --- a/java-pubsub/google-cloud-pubsub/pom.xml
    +++ b/java-pubsub/google-cloud-pubsub/pom.xml
    @@ -3,7 +3,7 @@
       4.0.0
       com.google.cloud
       google-cloud-pubsub
    -  1.120.20-SNAPSHOT
    +  1.120.20
       jar
       Google Cloud Pub/Sub
       https://github.com/googleapis/java-pubsub
    @@ -11,7 +11,7 @@
       
         com.google.cloud
         google-cloud-pubsub-parent
    -    1.120.20-SNAPSHOT
    +    1.120.20
       
       
         google-cloud-pubsub
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    index 2444a7194dc5..42cdd08fa171 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml
    @@ -4,13 +4,13 @@
       4.0.0
       com.google.api.grpc
       grpc-google-cloud-pubsub-v1
    -  1.102.20-SNAPSHOT
    +  1.102.20
       grpc-google-cloud-pubsub-v1
       GRPC library for grpc-google-cloud-pubsub-v1
       
         com.google.cloud
         google-cloud-pubsub-parent
    -    1.120.20-SNAPSHOT
    +    1.120.20
       
       
         
    diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml
    index ce61801dd5eb..af19f6597f98 100644
    --- a/java-pubsub/pom.xml
    +++ b/java-pubsub/pom.xml
    @@ -4,7 +4,7 @@
       com.google.cloud
       google-cloud-pubsub-parent
       pom
    -  1.120.20-SNAPSHOT
    +  1.120.20
       Google Cloud Pub/Sub Parent
       https://github.com/googleapis/java-pubsub
       
    @@ -69,17 +69,17 @@
           
             com.google.api.grpc
             proto-google-cloud-pubsub-v1
    -        1.102.20-SNAPSHOT
    +        1.102.20
           
           
             com.google.api.grpc
             grpc-google-cloud-pubsub-v1
    -        1.102.20-SNAPSHOT
    +        1.102.20
           
           
             com.google.cloud
             google-cloud-pubsub
    -        1.120.20-SNAPSHOT
    +        1.120.20
           
     
           
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    index bfbc924cdef4..6fd73d97a069 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml
    @@ -4,13 +4,13 @@
       4.0.0
       com.google.api.grpc
       proto-google-cloud-pubsub-v1
    -  1.102.20-SNAPSHOT
    +  1.102.20
       proto-google-cloud-pubsub-v1
       PROTO library for proto-google-cloud-pubsub-v1
       
         com.google.cloud
         google-cloud-pubsub-parent
    -    1.120.20-SNAPSHOT
    +    1.120.20
       
       
         
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml
    index 7f46be1e630d..5f74c3a6246e 100644
    --- a/java-pubsub/samples/snapshot/pom.xml
    +++ b/java-pubsub/samples/snapshot/pom.xml
    @@ -43,7 +43,7 @@
         
           com.google.cloud
           google-cloud-pubsub
    -      1.120.20-SNAPSHOT
    +      1.120.20
         
         
     
    diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt
    index 65e3deb8c81a..38854f312cd2 100644
    --- a/java-pubsub/versions.txt
    +++ b/java-pubsub/versions.txt
    @@ -1,6 +1,6 @@
     # Format:
     # module:released-version:current-version
     
    -google-cloud-pubsub:1.120.19:1.120.20-SNAPSHOT
    -grpc-google-cloud-pubsub-v1:1.102.19:1.102.20-SNAPSHOT
    -proto-google-cloud-pubsub-v1:1.102.19:1.102.20-SNAPSHOT
    +google-cloud-pubsub:1.120.20:1.120.20
    +grpc-google-cloud-pubsub-v1:1.102.20:1.102.20
    +proto-google-cloud-pubsub-v1:1.102.20:1.102.20
    
    From 4ca2b4562ce25c27e01cb211d16d60c9b0d82281 Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Thu, 6 Oct 2022 03:16:16 +0200
    Subject: [PATCH 1220/2363] chore(deps): update dependency
     com.google.cloud:google-cloud-pubsub to v1.120.19 (#1332)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.18` -> `1.120.20` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.20/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.20/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.20/compatibility-slim/1.120.18)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.20/confidence-slim/1.120.18)](https://docs.renovatebot.com/merge-confidence/) |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
    
    ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
    
    ---
    
     - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost.
    
    ---
    
    This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub).
    
    ---
     java-pubsub/README.md                           | 2 +-
     java-pubsub/samples/install-without-bom/pom.xml | 2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/java-pubsub/README.md b/java-pubsub/README.md
    index 8d9a5307016c..4e00223d9e60 100644
    --- a/java-pubsub/README.md
    +++ b/java-pubsub/README.md
    @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies:
     
       com.google.cloud
       google-cloud-pubsub
    -  1.120.18
    +  1.120.19
     
     
     ```
    diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml
    index 6c86eb7a3fe6..3c8da63beee2 100644
    --- a/java-pubsub/samples/install-without-bom/pom.xml
    +++ b/java-pubsub/samples/install-without-bom/pom.xml
    @@ -44,7 +44,7 @@
         
           com.google.cloud
           google-cloud-pubsub
    -      1.120.18
    +      1.120.19
         
         
     
    
    From 0c44aac0ca588ce19c1decf126aecd0299184a89 Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Thu, 6 Oct 2022 05:24:17 +0200
    Subject: [PATCH 1221/2363] deps: update dependency
     com.google.cloud:google-cloud-bigquery to v2.17.0 (#1334)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.16.1` -> `2.17.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.17.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.17.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.17.0/compatibility-slim/2.16.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.17.0/confidence-slim/2.16.1)](https://docs.renovatebot.com/merge-confidence/) |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
    
    ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.
    
    ---
    
     - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost.
    
    ---
    
    This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub).
    
    ---
     java-pubsub/README.md                           | 4 ++--
     java-pubsub/samples/install-without-bom/pom.xml | 2 +-
     java-pubsub/samples/snapshot/pom.xml            | 2 +-
     3 files changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/java-pubsub/README.md b/java-pubsub/README.md
    index 4e00223d9e60..7f9281fb5f85 100644
    --- a/java-pubsub/README.md
    +++ b/java-pubsub/README.md
    @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub'
     If you are using Gradle without BOM, add this to your dependencies:
     
     ```Groovy
    -implementation 'com.google.cloud:google-cloud-pubsub:1.120.19'
    +implementation 'com.google.cloud:google-cloud-pubsub:1.120.20'
     ```
     
     If you are using SBT, add this to your dependencies:
     
     ```Scala
    -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.19"
    +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.20"
     ```
     
     ## Authentication
    diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml
    index 3c8da63beee2..4e0fee4b2ea8 100644
    --- a/java-pubsub/samples/install-without-bom/pom.xml
    +++ b/java-pubsub/samples/install-without-bom/pom.xml
    @@ -86,7 +86,7 @@
         
           com.google.cloud
           google-cloud-bigquery
    -      2.16.1
    +      2.17.0
         
       
     
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml
    index 5f74c3a6246e..8ca896259b42 100644
    --- a/java-pubsub/samples/snapshot/pom.xml
    +++ b/java-pubsub/samples/snapshot/pom.xml
    @@ -85,7 +85,7 @@
         
           com.google.cloud
           google-cloud-bigquery
    -      2.16.1
    +      2.17.0
         
       
     
    
    From 900dcaf72e07e3bce3911e9566c0c753438215e7 Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Thu, 6 Oct 2022 17:20:17 +0200
    Subject: [PATCH 1222/2363] chore(deps): update dependency
     com.google.cloud:google-cloud-pubsub to v1.120.20 (#1337)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.19` -> `1.120.20` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.20/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.20/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.20/compatibility-slim/1.120.19)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.20/confidence-slim/1.120.19)](https://docs.renovatebot.com/merge-confidence/) |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
    
    ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
    
    ---
    
     - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost.
    
    ---
    
    This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub).
    
    ---
     java-pubsub/README.md                           | 2 +-
     java-pubsub/samples/install-without-bom/pom.xml | 2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/java-pubsub/README.md b/java-pubsub/README.md
    index 7f9281fb5f85..9f29d0d1b5aa 100644
    --- a/java-pubsub/README.md
    +++ b/java-pubsub/README.md
    @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies:
     
       com.google.cloud
       google-cloud-pubsub
    -  1.120.19
    +  1.120.20
     
     
     ```
    diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml
    index 4e0fee4b2ea8..4f1eb0f63619 100644
    --- a/java-pubsub/samples/install-without-bom/pom.xml
    +++ b/java-pubsub/samples/install-without-bom/pom.xml
    @@ -44,7 +44,7 @@
         
           com.google.cloud
           google-cloud-pubsub
    -      1.120.19
    +      1.120.20
         
         
     
    
    From 9e0a4f47a287d8828b4e5a49979978bd4c7f1134 Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Thu, 6 Oct 2022 21:02:22 +0200
    Subject: [PATCH 1223/2363] deps: update dependency
     org.graalvm.buildtools:junit-platform-native to v0.9.14 (#1296)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.13` -> `0.9.14` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.14/compatibility-slim/0.9.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.14/confidence-slim/0.9.13)](https://docs.renovatebot.com/merge-confidence/) |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
    
    ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
    
    ---
    
     - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost.
    
    ---
    
    This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub).
    
    ---
     java-pubsub/samples/native-image-sample/pom.xml | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml
    index 58b7ba9b78b8..e1c867e42a69 100644
    --- a/java-pubsub/samples/native-image-sample/pom.xml
    +++ b/java-pubsub/samples/native-image-sample/pom.xml
    @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
             
               org.graalvm.buildtools
               junit-platform-native
    -          0.9.13
    +          0.9.14
               test
             
           
    
    From 04e4fcc19d2127ca63094f0e071fb6a4c2196783 Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Fri, 7 Oct 2022 20:00:37 +0200
    Subject: [PATCH 1224/2363] chore(deps): update dependency
     com.google.cloud:libraries-bom to v26.1.3 (#1339)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.2` -> `26.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/compatibility-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/confidence-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) |
    
    ---
    
    ### Configuration
    
    📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
    
    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
    
    ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.
    
    🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.
    
    ---
    
     - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost.
    
    ---
    
    This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub).
    
    ---
     java-pubsub/README.md                           | 4 ++--
     java-pubsub/samples/native-image-sample/pom.xml | 2 +-
     java-pubsub/samples/snippets/pom.xml            | 2 +-
     3 files changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/java-pubsub/README.md b/java-pubsub/README.md
    index 9f29d0d1b5aa..9fecfecaf215 100644
    --- a/java-pubsub/README.md
    +++ b/java-pubsub/README.md
    @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
         
           com.google.cloud
           libraries-bom
    -      26.1.2
    +      26.1.3
           pom
           import
         
    @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies:
     If you are using Gradle 5.x or later, add this to your dependencies:
     
     ```Groovy
    -implementation platform('com.google.cloud:libraries-bom:26.1.2')
    +implementation platform('com.google.cloud:libraries-bom:26.1.3')
     
     implementation 'com.google.cloud:google-cloud-pubsub'
     ```
    diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml
    index e1c867e42a69..8e7e6a6834e0 100644
    --- a/java-pubsub/samples/native-image-sample/pom.xml
    +++ b/java-pubsub/samples/native-image-sample/pom.xml
    @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
           
             com.google.cloud
             libraries-bom
    -        26.1.2
    +        26.1.3
             pom
             import
           
    diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml
    index 02c78f21f55f..13b083121cc9 100644
    --- a/java-pubsub/samples/snippets/pom.xml
    +++ b/java-pubsub/samples/snippets/pom.xml
    @@ -45,7 +45,7 @@
           
             com.google.cloud
             libraries-bom
    -        26.1.2
    +        26.1.3
             pom
             import
           
    
    From 7b72a8a262fe9a8608e5974b78694ff63764c38d Mon Sep 17 00:00:00 2001
    From: WhiteSource Renovate 
    Date: Mon, 10 Oct 2022 19:38:24 +0200
    Subject: [PATCH 1225/2363] deps: update dependency
     com.google.cloud:google-cloud-core to v2.8.21 (#1341)
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    
    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.20` -> `2.8.21` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.21/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.21/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.21/compatibility-slim/2.8.20)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.21/confidence-slim/2.8.20)](https://docs.renovatebot.com/merge-confidence/) |
    
    ---
    
    ### Release Notes
    
    
    googleapis/java-core ### [`v2.8.21`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2821-httpsgithubcomgoogleapisjava-corecomparev2820v2821-2022-10-10) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.20...v2.8.21) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.2 ([#​971](https://togithub.com/googleapis/java-core/issues/971)) ([5d778fc](https://togithub.com/googleapis/java-core/commit/5d778fc0d78e67cbcc4eb061da3b66dd3cab440e)) - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.3 ([#​974](https://togithub.com/googleapis/java-core/issues/974)) ([1b7fcb9](https://togithub.com/googleapis/java-core/commit/1b7fcb978da55f8d30cf66941bc8208853fef116))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4f1eb0f63619..08d30c1e8376 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.20 + 2.8.21 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8ca896259b42..a983a8bccb18 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.20 + 2.8.21 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 13b083121cc9..8491cb11f81a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.20 + 2.8.21 tests From f7ef07e6ff66a9798198c1ab27f4a0411743a71b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 10 Oct 2022 19:40:20 +0200 Subject: [PATCH 1226/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.17.1 (#1340) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.17.0` -> `2.17.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.17.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.17.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.17.1/compatibility-slim/2.17.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-bigquery/2.17.1/confidence-slim/2.17.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery ### [`v2.17.1`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#​2171-httpsgithubcomgoogleapisjava-bigquerycomparev2170v2171-2022-10-10) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.17.0...v2.17.1) ##### Dependencies - Update cloud client dependencies ([#​2335](https://togithub.com/googleapis/java-bigquery/issues/2335)) ([f8053d7](https://togithub.com/googleapis/java-bigquery/commit/f8053d7773d225b29e669976c6123b5d30ccd6a8)) - Update cloud client dependencies ([#​2337](https://togithub.com/googleapis/java-bigquery/issues/2337)) ([1194eac](https://togithub.com/googleapis/java-bigquery/commit/1194eacf23d947a0d923a3b3fd3f9460dfc996b3)) - Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.5.6 ([#​2336](https://togithub.com/googleapis/java-bigquery/issues/2336)) ([a86c759](https://togithub.com/googleapis/java-bigquery/commit/a86c7594d0c9e8a480297b028e108c86f4a1e12a))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 08d30c1e8376..317bb621b321 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.17.0 + 2.17.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a983a8bccb18..d5843c1e9661 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.17.0 + 2.17.1 From 699b7a7cd9627158142c67e7b97957901e834db6 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 13 Oct 2022 13:09:14 -0400 Subject: [PATCH 1227/2363] chore: configure 1.117.x branch as java-backport (#1344) --- java-pubsub/.github/release-please.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 91df64cd7925..15303ab7ad67 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -20,5 +20,5 @@ branches: branch: 1.116.x - bumpMinorPreMajor: true handleGHRelease: true - releaseType: java-lts + releaseType: java-backport branch: 1.117.x From aaedc6298f2e545037227e8eea3f094070d10997 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 14 Oct 2022 16:32:13 +0000 Subject: [PATCH 1228/2363] chore(main): release 1.120.21-SNAPSHOT (#1336) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1e0f81a8b0d5..1e7cb0c94b33 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.20 + 1.120.21-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.20 + 1.120.21-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.20 + 1.102.21-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.20 + 1.102.21-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index aa195445df6d..42b814c14146 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.20 + 1.120.21-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.20 + 1.120.21-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 42cdd08fa171..23f915202692 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.20 + 1.102.21-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.20 + 1.120.21-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index af19f6597f98..fb3ae8065588 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.20 + 1.120.21-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.20 + 1.102.21-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.20 + 1.102.21-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.20 + 1.120.21-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6fd73d97a069..02b42cbf1f1e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.20 + 1.102.21-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.20 + 1.120.21-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d5843c1e9661..0107f07c0ee4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.20 + 1.120.21-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 38854f312cd2..7f9887a8a446 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.20:1.120.20 -grpc-google-cloud-pubsub-v1:1.102.20:1.102.20 -proto-google-cloud-pubsub-v1:1.102.20:1.102.20 +google-cloud-pubsub:1.120.20:1.120.21-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.20:1.102.21-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.20:1.102.21-SNAPSHOT From 8e348cab111c96e0df13875493a0a1a60139bc18 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 14 Oct 2022 16:44:14 +0000 Subject: [PATCH 1229/2363] chore(main): release 1.120.21 (#1347) :robot: I have created a release *beep* *boop* --- ## [1.120.21](https://togithub.com/googleapis/java-pubsub/compare/v1.120.20...v1.120.21) (2022-10-14) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.17.0 ([#1334](https://togithub.com/googleapis/java-pubsub/issues/1334)) ([0c44aac](https://togithub.com/googleapis/java-pubsub/commit/0c44aac0ca588ce19c1decf126aecd0299184a89)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.17.1 ([#1340](https://togithub.com/googleapis/java-pubsub/issues/1340)) ([f7ef07e](https://togithub.com/googleapis/java-pubsub/commit/f7ef07e6ff66a9798198c1ab27f4a0411743a71b)) * Update dependency com.google.cloud:google-cloud-core to v2.8.21 ([#1341](https://togithub.com/googleapis/java-pubsub/issues/1341)) ([7b72a8a](https://togithub.com/googleapis/java-pubsub/commit/7b72a8a262fe9a8608e5974b78694ff63764c38d)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.14 ([#1296](https://togithub.com/googleapis/java-pubsub/issues/1296)) ([9e0a4f4](https://togithub.com/googleapis/java-pubsub/commit/9e0a4f47a287d8828b4e5a49979978bd4c7f1134)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 3f25b74c820f..690e2fa10457 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.120.21](https://github.com/googleapis/java-pubsub/compare/v1.120.20...v1.120.21) (2022-10-14) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.17.0 ([#1334](https://github.com/googleapis/java-pubsub/issues/1334)) ([d2edb44](https://github.com/googleapis/java-pubsub/commit/d2edb4457a5a5fdee006b34b1de265b7e73a26e1)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.17.1 ([#1340](https://github.com/googleapis/java-pubsub/issues/1340)) ([2b9c2e8](https://github.com/googleapis/java-pubsub/commit/2b9c2e8af4f83dd8d51272a0539c7ade05041a68)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.21 ([#1341](https://github.com/googleapis/java-pubsub/issues/1341)) ([d219a56](https://github.com/googleapis/java-pubsub/commit/d219a56de3c5a3e5455c3ca063bf0e363a4c476a)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.14 ([#1296](https://github.com/googleapis/java-pubsub/issues/1296)) ([00f61aa](https://github.com/googleapis/java-pubsub/commit/00f61aab905300986945bb67a8737779c3f72da6)) + ## [1.120.20](https://github.com/googleapis/java-pubsub/compare/v1.120.19...v1.120.20) (2022-10-05) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1e7cb0c94b33..9633b9c37425 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.21-SNAPSHOT + 1.120.21 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.21-SNAPSHOT + 1.120.21 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.21-SNAPSHOT + 1.102.21 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.21-SNAPSHOT + 1.102.21 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 42b814c14146..c3c5b319d387 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.21-SNAPSHOT + 1.120.21 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.21-SNAPSHOT + 1.120.21 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 23f915202692..9c80eb1990c5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.21-SNAPSHOT + 1.102.21 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.21-SNAPSHOT + 1.120.21 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index fb3ae8065588..456a3c2ae844 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.21-SNAPSHOT + 1.120.21 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.21-SNAPSHOT + 1.102.21 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.21-SNAPSHOT + 1.102.21 com.google.cloud google-cloud-pubsub - 1.120.21-SNAPSHOT + 1.120.21 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 02b42cbf1f1e..f2287a6b2e4b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.21-SNAPSHOT + 1.102.21 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.21-SNAPSHOT + 1.120.21 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0107f07c0ee4..4e43c4cecbaa 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.21-SNAPSHOT + 1.120.21 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7f9887a8a446..1346bb7db00e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.20:1.120.21-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.20:1.102.21-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.20:1.102.21-SNAPSHOT +google-cloud-pubsub:1.120.21:1.120.21 +grpc-google-cloud-pubsub-v1:1.102.21:1.102.21 +proto-google-cloud-pubsub-v1:1.102.21:1.102.21 From 203c5a196167290053fd85ffcb210529d87e3552 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 14 Oct 2022 16:54:13 +0000 Subject: [PATCH 1230/2363] chore(main): release 1.120.22-SNAPSHOT (#1348) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9633b9c37425..76f6c4eedd04 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.21 + 1.120.22-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.21 + 1.120.22-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.21 + 1.102.22-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.21 + 1.102.22-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c3c5b319d387..ebbddb8a2a01 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.21 + 1.120.22-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.21 + 1.120.22-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9c80eb1990c5..41e3ddc1beba 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.21 + 1.102.22-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.21 + 1.120.22-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 456a3c2ae844..0b3bb37e16c5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.21 + 1.120.22-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.21 + 1.102.22-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.21 + 1.102.22-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.21 + 1.120.22-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f2287a6b2e4b..6389c936f485 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.21 + 1.102.22-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.21 + 1.120.22-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4e43c4cecbaa..14c200412bb7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.21 + 1.120.22-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1346bb7db00e..ea0e170a4ffb 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.21:1.120.21 -grpc-google-cloud-pubsub-v1:1.102.21:1.102.21 -proto-google-cloud-pubsub-v1:1.102.21:1.102.21 +google-cloud-pubsub:1.120.21:1.120.22-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.21:1.102.22-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.21:1.102.22-SNAPSHOT From 037d604ee0ac72851656051cc8841cd9c6c75c40 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Oct 2022 16:40:26 +0200 Subject: [PATCH 1231/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.21 (#1349) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.20` -> `1.120.21` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.21/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.21/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.21/compatibility-slim/1.120.20)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.21/confidence-slim/1.120.20)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 9fecfecaf215..98d7c7da52cf 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.20 + 1.120.21 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.20' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.21' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.20" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.21" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 317bb621b321..e37030e34cde 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.20 + 1.120.21 From 56dcef618c6a4a267e6cd3b32ae3c4688d57f249 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Oct 2022 16:44:22 +0200 Subject: [PATCH 1232/2363] deps: update dependency org.easymock:easymock to v5 (#1350) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.easymock:easymock](http://easymock.org) ([source](https://togithub.com/easymock/easymock)) | `4.3` -> `5.0.0` | [![age](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.0.0/compatibility-slim/4.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.0.0/confidence-slim/4.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0b3bb37e16c5..aa850a2212fe 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -98,7 +98,7 @@ org.easymock easymock - 4.3 + 5.0.0 test From 3e4366c4939dd22227dc6844498b3b3e40aef753 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Oct 2022 16:56:18 +0200 Subject: [PATCH 1233/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.15 (#1352) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.14` -> `0.9.15` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.15/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.15/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.15/compatibility-slim/0.9.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.15/confidence-slim/0.9.14)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 8e7e6a6834e0..80d403cbc32b 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.14 + 0.9.15 true pubsub.NativeImagePubSubSample From 3d323fd450dd0dd378a5cd413f9efdfc3fad53a4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Oct 2022 16:58:19 +0200 Subject: [PATCH 1234/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.15 (#1351) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.14` -> `0.9.15` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.15/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.15/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.15/compatibility-slim/0.9.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.15/confidence-slim/0.9.14)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 80d403cbc32b..8389d1a37289 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.14 + 0.9.15 test From 326d4f896989691d3dbbcec42b0d6947324b101d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 18 Oct 2022 15:18:21 +0000 Subject: [PATCH 1235/2363] chore(main): release 1.120.22 (#1353) :robot: I have created a release *beep* *boop* --- ## [1.120.22](https://togithub.com/googleapis/java-pubsub/compare/v1.120.21...v1.120.22) (2022-10-18) ### Dependencies * Update dependency org.easymock:easymock to v5 ([#1350](https://togithub.com/googleapis/java-pubsub/issues/1350)) ([56dcef6](https://togithub.com/googleapis/java-pubsub/commit/56dcef618c6a4a267e6cd3b32ae3c4688d57f249)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.15 ([#1351](https://togithub.com/googleapis/java-pubsub/issues/1351)) ([3d323fd](https://togithub.com/googleapis/java-pubsub/commit/3d323fd450dd0dd378a5cd413f9efdfc3fad53a4)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.15 ([#1352](https://togithub.com/googleapis/java-pubsub/issues/1352)) ([3e4366c](https://togithub.com/googleapis/java-pubsub/commit/3e4366c4939dd22227dc6844498b3b3e40aef753)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 690e2fa10457..c265b529309f 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.120.22](https://github.com/googleapis/java-pubsub/compare/v1.120.21...v1.120.22) (2022-10-18) + + +### Dependencies + +* Update dependency org.easymock:easymock to v5 ([#1350](https://github.com/googleapis/java-pubsub/issues/1350)) ([1e88543](https://github.com/googleapis/java-pubsub/commit/1e88543393ac16a79288c80d3561f7e5c50f11af)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.15 ([#1351](https://github.com/googleapis/java-pubsub/issues/1351)) ([2af7579](https://github.com/googleapis/java-pubsub/commit/2af757971fd54855936ad95e0cd3f6ab13d50edc)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.15 ([#1352](https://github.com/googleapis/java-pubsub/issues/1352)) ([379e39b](https://github.com/googleapis/java-pubsub/commit/379e39bdb6ed3cd50c5f034fb5ecd40905b43bda)) + ## [1.120.21](https://github.com/googleapis/java-pubsub/compare/v1.120.20...v1.120.21) (2022-10-14) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 76f6c4eedd04..bf9e5bb5dea6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.22-SNAPSHOT + 1.120.22 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.22-SNAPSHOT + 1.120.22 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.22-SNAPSHOT + 1.102.22 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.22-SNAPSHOT + 1.102.22 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ebbddb8a2a01..d3c6e5f09637 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.22-SNAPSHOT + 1.120.22 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.22-SNAPSHOT + 1.120.22 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 41e3ddc1beba..0bff96885d69 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.22-SNAPSHOT + 1.102.22 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.22-SNAPSHOT + 1.120.22 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index aa850a2212fe..86a31972abd7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.22-SNAPSHOT + 1.120.22 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.22-SNAPSHOT + 1.102.22 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.22-SNAPSHOT + 1.102.22 com.google.cloud google-cloud-pubsub - 1.120.22-SNAPSHOT + 1.120.22 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6389c936f485..1411a17ee893 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.22-SNAPSHOT + 1.102.22 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.22-SNAPSHOT + 1.120.22 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 14c200412bb7..71f922c66901 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.22-SNAPSHOT + 1.120.22 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ea0e170a4ffb..e7ea3f16133d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.21:1.120.22-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.21:1.102.22-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.21:1.102.22-SNAPSHOT +google-cloud-pubsub:1.120.22:1.120.22 +grpc-google-cloud-pubsub-v1:1.102.22:1.102.22 +proto-google-cloud-pubsub-v1:1.102.22:1.102.22 From 6d58a50d088805ef92409397c8bb452f3b0e6288 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 18 Oct 2022 15:58:23 +0000 Subject: [PATCH 1236/2363] chore(main): release 1.120.23-SNAPSHOT (#1354) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index bf9e5bb5dea6..8ddde70249db 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.22 + 1.120.23-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.22 + 1.120.23-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.22 + 1.102.23-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.22 + 1.102.23-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d3c6e5f09637..461031f2dddb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.22 + 1.120.23-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.22 + 1.120.23-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0bff96885d69..bdab9edb66f8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.22 + 1.102.23-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.22 + 1.120.23-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 86a31972abd7..8de4410a4731 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.22 + 1.120.23-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.22 + 1.102.23-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.22 + 1.102.23-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.22 + 1.120.23-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1411a17ee893..f9bedd256cee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.22 + 1.102.23-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.22 + 1.120.23-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 71f922c66901..c1040af20245 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.22 + 1.120.23-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e7ea3f16133d..95f10b27fb66 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.22:1.120.22 -grpc-google-cloud-pubsub-v1:1.102.22:1.102.22 -proto-google-cloud-pubsub-v1:1.102.22:1.102.22 +google-cloud-pubsub:1.120.22:1.120.23-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.22:1.102.23-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.22:1.102.23-SNAPSHOT From 96160e1cd315efbbb634c2366e87a4f238c8888a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Oct 2022 23:10:27 +0200 Subject: [PATCH 1237/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.16 (#1358) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.15` -> `0.9.16` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.16/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.16/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.16/compatibility-slim/0.9.15)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.16/confidence-slim/0.9.15)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 98d7c7da52cf..34568bb408fa 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.21' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.22' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.21" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.22" ``` ## Authentication diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 8389d1a37289..4a5ba51e07e9 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.15 + 0.9.16 test From ea59e710a2213f858ed74a7759ed79faf7a7fefb Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 24 Oct 2022 21:12:35 +0000 Subject: [PATCH 1238/2363] chore: [java] remove flatten plugin dependency check (#1663) (#1366) chore: remove check for flatten plugin We have had the check for the flatten-maven-plugin in each Cloud Java client repository. However, the behavior of the plugin has been stable and its not each repository's responsibility to assert the plugin's behavior. A new check is going to be added at the googleapis/java-shared-config repository to assert the plugin's behavior when we upgrade its version. Source-Link: https://togithub.com/googleapis/synthtool/commit/9266ddc3b17fc15f34d2fb88ce8c5f1a4bfe64b0 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:ae72564aa9c368b9ccd96f4af21f87889fd83b9e60635b80844deb5a2ccd08aa --- java-pubsub/.github/.OwlBot.lock.yaml | 3 +- java-pubsub/.kokoro/dependencies.sh | 51 --------------------------- java-pubsub/.kokoro/requirements.in | 2 ++ java-pubsub/.kokoro/requirements.txt | 14 +++++--- 4 files changed, 12 insertions(+), 58 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 2c3ef72011b4..459487d38827 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 - + digest: sha256:ae72564aa9c368b9ccd96f4af21f87889fd83b9e60635b80844deb5a2ccd08aa diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh index d7476cfe9727..bd8960246f66 100755 --- a/java-pubsub/.kokoro/dependencies.sh +++ b/java-pubsub/.kokoro/dependencies.sh @@ -57,54 +57,3 @@ retry_with_backoff 3 10 \ -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true - -echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************" -## Run dependency list completeness check -function completenessCheck() { - # Output dep list with compile scope generated using the original pom - # Running mvn dependency:list on Java versions that support modules will also include the module of the dependency. - # This is stripped from the output as it is not present in the flattened pom. - # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. - msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt - - # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) - msg "Generating dependency list using flattened pom..." - mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt - - # Compare two dependency lists - msg "Comparing dependency lists..." - diff .org-list.txt .new-list.txt >.diff.txt - if [[ $? == 0 ]] - then - msg "Success. No diff!" - else - msg "Diff found. See below: " - msg "You can also check .diff.txt file located in $1." - cat .diff.txt - return 1 - fi -} - -# Allow failures to continue running the script -set +e - -error_count=0 -for path in **/.flattened-pom.xml -do - # Check flattened pom in each dir that contains it for completeness - dir=$(dirname "$path") - pushd "$dir" - completenessCheck "$dir" - error_count=$(($error_count + $?)) - popd -done - -if [[ $error_count == 0 ]] -then - msg "All checks passed." - exit 0 -else - msg "Errors found. See log statements above." - exit 1 -fi diff --git a/java-pubsub/.kokoro/requirements.in b/java-pubsub/.kokoro/requirements.in index cfdc2e7ed955..6aa7cf2b55ee 100644 --- a/java-pubsub/.kokoro/requirements.in +++ b/java-pubsub/.kokoro/requirements.in @@ -16,10 +16,12 @@ pycparser==2.21 pyperclip==1.8.2 python-dateutil==2.8.2 requests==2.27.1 +certifi==2022.9.24 importlib-metadata==4.8.3 zipp==3.6.0 google_api_core==2.8.2 google-cloud-storage==2.0.0 +google-resumable-media==2.3.3 google-cloud-core==2.3.1 typing-extensions==4.1.1 urllib3==1.26.12 diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index 170f1c63abb7..02ae42bb4039 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -16,10 +16,12 @@ cachetools==4.2.4 \ # via # -r requirements.in # google-auth -certifi==2022.9.14 \ - --hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \ - --hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516 - # via requests +certifi==2022.9.24 \ + --hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \ + --hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382 + # via + # -r requirements.in + # requests cffi==1.15.1 \ --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ @@ -218,7 +220,9 @@ google-crc32c==1.3.0 \ google-resumable-media==2.3.3 \ --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 - # via google-cloud-storage + # via + # -r requirements.in + # google-cloud-storage googleapis-common-protos==1.56.3 \ --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 From 03426d6feca8930e715efd7633efce6e2ec9df7b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Oct 2022 23:14:14 +0200 Subject: [PATCH 1239/2363] test(deps): update dependency org.mockito:mockito-core to v4.8.1 (#1363) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.mockito:mockito-core](https://togithub.com/mockito/mockito) | `4.8.0` -> `4.8.1` | [![age](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.8.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.8.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.8.1/compatibility-slim/4.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.mockito:mockito-core/4.8.1/confidence-slim/4.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8de4410a4731..a61c393c444c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -86,7 +86,7 @@ org.mockito mockito-core - 4.8.0 + 4.8.1 test From e71dc8ddaaefd9856f1e05cd38c34562803b9470 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Oct 2022 23:14:38 +0200 Subject: [PATCH 1240/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.22 (#1361) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.21` -> `2.8.22` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.22/compatibility-slim/2.8.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.22/confidence-slim/2.8.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e37030e34cde..e6594d138335 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.21 + 2.8.22 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c1040af20245..6dd1a1996684 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.21 + 2.8.22 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 8491cb11f81a..5c5f7d74c8fc 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.21 + 2.8.22 tests From c70f5d81eff6982199585270a81ca80a5f0737c9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Oct 2022 23:18:25 +0200 Subject: [PATCH 1241/2363] deps: update dependency org.easymock:easymock to v5.0.1 (#1365) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.easymock:easymock](http://easymock.org) ([source](https://togithub.com/easymock/easymock)) | `5.0.0` -> `5.0.1` | [![age](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.0.1/compatibility-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.0.1/confidence-slim/5.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a61c393c444c..33905d5ac597 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -98,7 +98,7 @@ org.easymock easymock - 5.0.0 + 5.0.1 test From bd9d3bb741db7263aba4bed52fe6cd5e153172d0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Oct 2022 23:18:31 +0200 Subject: [PATCH 1242/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.22 (#1355) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.21` -> `1.120.22` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.22/compatibility-slim/1.120.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.22/confidence-slim/1.120.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 34568bb408fa..0bb7b14b110c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.21 + 1.120.22 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e6594d138335..09ea7603b44b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.21 + 1.120.22 From cfda2450976239e8fe55f6162b24155313f16194 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Oct 2022 23:24:30 +0200 Subject: [PATCH 1243/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.8 (#1356) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.7` -> `3.21.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.8/compatibility-slim/3.21.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.8/confidence-slim/3.21.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 09ea7603b44b..f095fd2f1854 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.7 + 3.21.8 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6dd1a1996684..c58d0202c979 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.7 + 3.21.8 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5c5f7d74c8fc..c2a22aa04700 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.21.7 + 3.21.8 From 368d8f6514ce5187318e52a4114bba208f0bb511 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Oct 2022 23:28:14 +0200 Subject: [PATCH 1244/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.4 (#1360) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.3` -> `1.5.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.4/compatibility-slim/1.5.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.4/confidence-slim/1.5.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8ddde70249db..5b4e17ca990c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.3 + 1.5.4 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 33905d5ac597..07cb276f9346 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.3 + 1.5.4 From 243d233d5530c8f5fc4964c36c700b0b80d99f82 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Oct 2022 23:30:14 +0200 Subject: [PATCH 1245/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.16 (#1359) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.15` -> `0.9.16` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.16/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.16/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.16/compatibility-slim/0.9.15)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.16/confidence-slim/0.9.15)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 4a5ba51e07e9..f9d37b7a1407 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.15 + 0.9.16 true pubsub.NativeImagePubSubSample From c3223284d8c30b732a0a670a6cf388520c631ec5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 25 Oct 2022 21:03:06 +0200 Subject: [PATCH 1246/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.5 (#1362) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 07cb276f9346..59c80571bff7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.4 + 3.0.5 pom import From f85a1d1ba19ff97047de7ec2b5a0cd7f82a5c47a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 27 Oct 2022 04:02:14 +0200 Subject: [PATCH 1247/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.24 (#1368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.22` -> `2.8.24` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.24/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.24/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.24/compatibility-slim/2.8.22)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.24/confidence-slim/2.8.22)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.24`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2824-httpsgithubcomgoogleapisjava-corecomparev2823v2824-2022-10-26) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.23...v2.8.24) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.6 ([#​994](https://togithub.com/googleapis/java-core/issues/994)) ([8a7b330](https://togithub.com/googleapis/java-core/commit/8a7b3304f714261501c64180abfc94edaa86d9d4)) - Update dependency com.google.code.gson:gson to v2.10 ([#​995](https://togithub.com/googleapis/java-core/issues/995)) ([5b947a2](https://togithub.com/googleapis/java-core/commit/5b947a2486979ba26175753fcf054ba3d4904b35)) ### [`v2.8.23`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2823-httpsgithubcomgoogleapisjava-corecomparev2822v2823-2022-10-24) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.22...v2.8.23) ##### Dependencies - Update dependency io.grpc:grpc-bom to v1.50.2 ([#​990](https://togithub.com/googleapis/java-core/issues/990)) ([42b1081](https://togithub.com/googleapis/java-core/commit/42b108100173041925cc705f596f388bab26d954)) - Update dependency org.easymock:easymock to v5 ([#​980](https://togithub.com/googleapis/java-core/issues/980)) ([64be350](https://togithub.com/googleapis/java-core/commit/64be350d3713af1a95ca51997194a15c7292f7ae))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f095fd2f1854..76490fec5e8c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.22 + 2.8.24 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c58d0202c979..f0759ac6c889 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.22 + 2.8.24 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c2a22aa04700..454cff93e190 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.22 + 2.8.24 tests From 8dd53dd8cb9f14fad55f613dd2750511b5ff58fb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 27 Oct 2022 16:38:13 +0000 Subject: [PATCH 1248/2363] chore(main): release 1.120.23 (#1367) :robot: I have created a release *beep* *boop* --- ## [1.120.23](https://togithub.com/googleapis/java-pubsub/compare/v1.120.22...v1.120.23) (2022-10-27) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.8.22 ([#1361](https://togithub.com/googleapis/java-pubsub/issues/1361)) ([e71dc8d](https://togithub.com/googleapis/java-pubsub/commit/e71dc8ddaaefd9856f1e05cd38c34562803b9470)) * Update dependency com.google.cloud:google-cloud-core to v2.8.24 ([#1368](https://togithub.com/googleapis/java-pubsub/issues/1368)) ([f85a1d1](https://togithub.com/googleapis/java-pubsub/commit/f85a1d1ba19ff97047de7ec2b5a0cd7f82a5c47a)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.5 ([#1362](https://togithub.com/googleapis/java-pubsub/issues/1362)) ([c322328](https://togithub.com/googleapis/java-pubsub/commit/c3223284d8c30b732a0a670a6cf388520c631ec5)) * Update dependency com.google.protobuf:protobuf-java-util to v3.21.8 ([#1356](https://togithub.com/googleapis/java-pubsub/issues/1356)) ([cfda245](https://togithub.com/googleapis/java-pubsub/commit/cfda2450976239e8fe55f6162b24155313f16194)) * Update dependency org.easymock:easymock to v5.0.1 ([#1365](https://togithub.com/googleapis/java-pubsub/issues/1365)) ([c70f5d8](https://togithub.com/googleapis/java-pubsub/commit/c70f5d81eff6982199585270a81ca80a5f0737c9)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.16 ([#1358](https://togithub.com/googleapis/java-pubsub/issues/1358)) ([96160e1](https://togithub.com/googleapis/java-pubsub/commit/96160e1cd315efbbb634c2366e87a4f238c8888a)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.16 ([#1359](https://togithub.com/googleapis/java-pubsub/issues/1359)) ([243d233](https://togithub.com/googleapis/java-pubsub/commit/243d233d5530c8f5fc4964c36c700b0b80d99f82)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index c265b529309f..59ef054d663f 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.120.23](https://github.com/googleapis/java-pubsub/compare/v1.120.22...v1.120.23) (2022-10-27) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.8.22 ([#1361](https://github.com/googleapis/java-pubsub/issues/1361)) ([0355868](https://github.com/googleapis/java-pubsub/commit/03558680b9fb6493c2c3f1f4b65d8a35668b440f)) +* Update dependency com.google.cloud:google-cloud-core to v2.8.24 ([#1368](https://github.com/googleapis/java-pubsub/issues/1368)) ([9776aad](https://github.com/googleapis/java-pubsub/commit/9776aad7391544b1e0bd2fbe8576180206943bef)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.5 ([#1362](https://github.com/googleapis/java-pubsub/issues/1362)) ([d32c591](https://github.com/googleapis/java-pubsub/commit/d32c591af87b66d8ca9df599ad18183aae31bf15)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.21.8 ([#1356](https://github.com/googleapis/java-pubsub/issues/1356)) ([dc1e0ca](https://github.com/googleapis/java-pubsub/commit/dc1e0ca44c3668d7c9e780d50261dd81ce1d4ee9)) +* Update dependency org.easymock:easymock to v5.0.1 ([#1365](https://github.com/googleapis/java-pubsub/issues/1365)) ([2a807a5](https://github.com/googleapis/java-pubsub/commit/2a807a5b319ed3821da7dac84e4cb4923d07fed7)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.16 ([#1358](https://github.com/googleapis/java-pubsub/issues/1358)) ([226e105](https://github.com/googleapis/java-pubsub/commit/226e1050b0b643cea46bad7cf77d2a9e8857fb02)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.16 ([#1359](https://github.com/googleapis/java-pubsub/issues/1359)) ([3f10227](https://github.com/googleapis/java-pubsub/commit/3f10227cfd7d9029e92e7575771544c7e4b4dd67)) + ## [1.120.22](https://github.com/googleapis/java-pubsub/compare/v1.120.21...v1.120.22) (2022-10-18) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5b4e17ca990c..da820c1ad300 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.23-SNAPSHOT + 1.120.23 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.23-SNAPSHOT + 1.120.23 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.23-SNAPSHOT + 1.102.23 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.23-SNAPSHOT + 1.102.23
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 461031f2dddb..2801e45ce48e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.23-SNAPSHOT + 1.120.23 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.23-SNAPSHOT + 1.120.23 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bdab9edb66f8..3b51d2b4733a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.23-SNAPSHOT + 1.102.23 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.23-SNAPSHOT + 1.120.23 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 59c80571bff7..36978fbd544b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.23-SNAPSHOT + 1.120.23 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.23-SNAPSHOT + 1.102.23 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.23-SNAPSHOT + 1.102.23 com.google.cloud google-cloud-pubsub - 1.120.23-SNAPSHOT + 1.120.23 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f9bedd256cee..276c3dc2737a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.23-SNAPSHOT + 1.102.23 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.23-SNAPSHOT + 1.120.23 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f0759ac6c889..89486bdb569c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.23-SNAPSHOT + 1.120.23 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 95f10b27fb66..792acda6af9a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.22:1.120.23-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.22:1.102.23-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.22:1.102.23-SNAPSHOT +google-cloud-pubsub:1.120.23:1.120.23 +grpc-google-cloud-pubsub-v1:1.102.23:1.102.23 +proto-google-cloud-pubsub-v1:1.102.23:1.102.23 From 280537e638ebbd9d3881e56828a1e99556190b73 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 27 Oct 2022 16:50:19 +0000 Subject: [PATCH 1249/2363] chore(main): release 1.120.24-SNAPSHOT (#1371) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index da820c1ad300..7a12e48683b5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.23 + 1.120.24-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.23 + 1.120.24-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.23 + 1.102.24-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.23 + 1.102.24-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2801e45ce48e..9bdf3a2f08e8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.23 + 1.120.24-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.23 + 1.120.24-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3b51d2b4733a..fadbd6307b71 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.23 + 1.102.24-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.23 + 1.120.24-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 36978fbd544b..efc9762cb4be 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.23 + 1.120.24-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.23 + 1.102.24-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.23 + 1.102.24-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.23 + 1.120.24-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 276c3dc2737a..32e93cf3925e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.23 + 1.102.24-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.23 + 1.120.24-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 89486bdb569c..9c1d12711850 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.23 + 1.120.24-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 792acda6af9a..8e5ef41cec0e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.23:1.120.23 -grpc-google-cloud-pubsub-v1:1.102.23:1.102.23 -proto-google-cloud-pubsub-v1:1.102.23:1.102.23 +google-cloud-pubsub:1.120.23:1.120.24-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.23:1.102.24-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.23:1.102.24-SNAPSHOT From 2f3b0c08063982105934a0c97d663da2a7b31bc3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 28 Oct 2022 10:58:56 -0400 Subject: [PATCH 1250/2363] chore(deps): Update gapic-generator-java to 2.10.1 and gax-java to 2.19.4 (#1364) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): Update gapic-generator-java to 2.10.1 and gax-java to 2.19.4 PiperOrigin-RevId: 482898738 Source-Link: https://github.com/googleapis/googleapis/commit/8886baccc12f49865f3961f956fd122f6d54c6ce Source-Link: https://github.com/googleapis/googleapis-gen/commit/0edcbf1f81ca6c5d1c3846fb6bcfb5d3a0cf43bd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGVkY2JmMWY4MWNhNmM1ZDFjMzg0NmZiNmJjZmI1ZDNhMGNmNDNiZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java index 1e6471c2867e..5112de2e57a3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -124,7 +124,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "view", request.getView()); + serializer.putQueryParam(fields, "view", request.getViewValue()); return fields; }) .setRequestBodyExtractor(request -> null) @@ -160,7 +160,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam(fields, "view", request.getView()); + serializer.putQueryParam(fields, "view", request.getViewValue()); return fields; }) .setRequestBodyExtractor(request -> null) From 7826fe8203e25be8d272d458b9aecfa554c3837c Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Fri, 28 Oct 2022 14:43:36 -0400 Subject: [PATCH 1251/2363] fix: adding an explicit check to prevent empty publishes (#1376) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: adding an explicit check to prevent empty publishes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 0bb7b14b110c..942d05471f4f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.22' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.23' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.22" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.23" ``` ## Authentication diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 399d99658fd5..6803e5a439b8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -462,6 +462,10 @@ private ApiFuture publishCall(OutstandingBatch outstandingBatch } private void publishOutstandingBatch(final OutstandingBatch outstandingBatch) { + if (outstandingBatch.size() == 0) { + logger.log(Level.WARNING, "Attempted to publish batch with zero messages."); + return; + } final ApiFutureCallback futureCallback = new ApiFutureCallback() { @Override From aff561413e4f973e1f281c9903909db737f2a261 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 28 Oct 2022 15:37:14 -0400 Subject: [PATCH 1252/2363] chore(main): release 1.120.24 (#1377) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 59ef054d663f..225f17fc9633 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.120.24](https://github.com/googleapis/java-pubsub/compare/v1.120.23...v1.120.24) (2022-10-28) + + +### Bug Fixes + +* Adding an explicit check to prevent empty publishes ([#1376](https://github.com/googleapis/java-pubsub/issues/1376)) ([689d7da](https://github.com/googleapis/java-pubsub/commit/689d7da1fee7c7def401ba114feef3607cd12cf5)) + ## [1.120.23](https://github.com/googleapis/java-pubsub/compare/v1.120.22...v1.120.23) (2022-10-27) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7a12e48683b5..a5f0b4bf80e5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.24-SNAPSHOT + 1.120.24 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.24-SNAPSHOT + 1.120.24 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.24-SNAPSHOT + 1.102.24 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.24-SNAPSHOT + 1.102.24 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9bdf3a2f08e8..7d8d5782ff3d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.24-SNAPSHOT + 1.120.24 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.24-SNAPSHOT + 1.120.24 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fadbd6307b71..bbe2b300e097 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.24-SNAPSHOT + 1.102.24 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.24-SNAPSHOT + 1.120.24 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index efc9762cb4be..da18975384d1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.24-SNAPSHOT + 1.120.24 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.24-SNAPSHOT + 1.102.24 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.24-SNAPSHOT + 1.102.24 com.google.cloud google-cloud-pubsub - 1.120.24-SNAPSHOT + 1.120.24 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 32e93cf3925e..c80cdba8dc5a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.24-SNAPSHOT + 1.102.24 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.24-SNAPSHOT + 1.120.24 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9c1d12711850..48ffe8c1f1fc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.24-SNAPSHOT + 1.120.24 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8e5ef41cec0e..25288df14d1f 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.23:1.120.24-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.23:1.102.24-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.23:1.102.24-SNAPSHOT +google-cloud-pubsub:1.120.24:1.120.24 +grpc-google-cloud-pubsub-v1:1.102.24:1.102.24 +proto-google-cloud-pubsub-v1:1.102.24:1.102.24 From e2a9ac0a0d0445c7ba6d6089973cb2469c58263c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 28 Oct 2022 19:48:15 +0000 Subject: [PATCH 1253/2363] chore(main): release 1.120.25-SNAPSHOT (#1378) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a5f0b4bf80e5..0ec821cbbca7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.24 + 1.120.25-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.24 + 1.120.25-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.24 + 1.102.25-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.24 + 1.102.25-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7d8d5782ff3d..a5f67b4ed9bd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.24 + 1.120.25-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.24 + 1.120.25-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bbe2b300e097..db9c63c25b9a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.24 + 1.102.25-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.24 + 1.120.25-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index da18975384d1..7aeb8ad5dc61 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.24 + 1.120.25-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.24 + 1.102.25-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.24 + 1.102.25-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.24 + 1.120.25-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c80cdba8dc5a..9612f88bf70c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.24 + 1.102.25-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.24 + 1.120.25-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 48ffe8c1f1fc..cc1d7d794f22 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.24 + 1.120.25-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 25288df14d1f..8a450c950b68 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.24:1.120.24 -grpc-google-cloud-pubsub-v1:1.102.24:1.102.24 -proto-google-cloud-pubsub-v1:1.102.24:1.102.24 +google-cloud-pubsub:1.120.24:1.120.25-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.24:1.102.25-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.24:1.102.25-SNAPSHOT From f82c26d413163849f20148717a273a485b72555a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 29 Oct 2022 00:10:21 +0200 Subject: [PATCH 1254/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.9 (#1370) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.8` -> `3.21.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.9/compatibility-slim/3.21.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.9/confidence-slim/3.21.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    protocolbuffers/protobuf ### [`v3.21.9`](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.8...v3.21.9)
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 76490fec5e8c..13b38dd133c8 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.8 + 3.21.9 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cc1d7d794f22..cec2e5068363 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.8 + 3.21.9 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 454cff93e190..7f45a1e33b48 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.21.8 + 3.21.9 From b0c32246e80955a8e7eb200c5d54e7f8ad578628 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 29 Oct 2022 00:18:12 +0200 Subject: [PATCH 1255/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.23 (#1372) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.22` -> `1.120.24` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.24/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.24/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.24/compatibility-slim/1.120.22)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.24/confidence-slim/1.120.22)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 942d05471f4f..e12cc1c3ddba 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.22 + 1.120.23 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 13b38dd133c8..a50cdcdc4129 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.22 + 1.120.23 From 4a829f6e07693fdb47febb5338c0b138cdff0f56 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 28 Oct 2022 22:26:18 +0000 Subject: [PATCH 1256/2363] chore(deps): update dependency protobuf to v3.20.2 (#1659) (#1374) Co-authored-by: Jeffrey Rennie Co-authored-by: Tomo Suzuki Source-Link: https://togithub.com/googleapis/synthtool/commit/b59cf7b5a91ecab29e21fdfbb7e3b81066229be4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:894d56f45fc3f4f0d5f3bcf790846419ee2d8e44715eae8917d6a1bba2b7283d --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.kokoro/requirements.txt | 50 ++++++++++++--------------- 2 files changed, 24 insertions(+), 28 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 459487d38827..82b5a1a2e2e1 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:ae72564aa9c368b9ccd96f4af21f87889fd83b9e60635b80844deb5a2ccd08aa + digest: sha256:894d56f45fc3f4f0d5f3bcf790846419ee2d8e44715eae8917d6a1bba2b7283d diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index 02ae42bb4039..4a16dfadf82a 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -339,33 +339,29 @@ packaging==21.3 \ # via # -r requirements.in # gcp-releasetool -protobuf==3.19.5 \ - --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ - --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ - --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ - --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ - --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ - --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ - --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ - --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ - --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ - --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ - --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ - --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ - --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ - --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ - --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ - --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ - --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ - --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ - --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ - --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ - --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ - --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ - --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ - --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ - --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ - --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de +protobuf==3.20.2 \ + --hash=sha256:03d76b7bd42ac4a6e109742a4edf81ffe26ffd87c5993126d894fe48a120396a \ + --hash=sha256:09e25909c4297d71d97612f04f41cea8fa8510096864f2835ad2f3b3df5a5559 \ + --hash=sha256:18e34a10ae10d458b027d7638a599c964b030c1739ebd035a1dfc0e22baa3bfe \ + --hash=sha256:291fb4307094bf5ccc29f424b42268640e00d5240bf0d9b86bf3079f7576474d \ + --hash=sha256:2c0b040d0b5d5d207936ca2d02f00f765906622c07d3fa19c23a16a8ca71873f \ + --hash=sha256:384164994727f274cc34b8abd41a9e7e0562801361ee77437099ff6dfedd024b \ + --hash=sha256:3cb608e5a0eb61b8e00fe641d9f0282cd0eedb603be372f91f163cbfbca0ded0 \ + --hash=sha256:5d9402bf27d11e37801d1743eada54372f986a372ec9679673bfcc5c60441151 \ + --hash=sha256:712dca319eee507a1e7df3591e639a2b112a2f4a62d40fe7832a16fd19151750 \ + --hash=sha256:7a5037af4e76c975b88c3becdf53922b5ffa3f2cddf657574a4920a3b33b80f3 \ + --hash=sha256:8228e56a865c27163d5d1d1771d94b98194aa6917bcfb6ce139cbfa8e3c27334 \ + --hash=sha256:84a1544252a933ef07bb0b5ef13afe7c36232a774affa673fc3636f7cee1db6c \ + --hash=sha256:84fe5953b18a383fd4495d375fe16e1e55e0a3afe7b4f7b4d01a3a0649fcda9d \ + --hash=sha256:9c673c8bfdf52f903081816b9e0e612186684f4eb4c17eeb729133022d6032e3 \ + --hash=sha256:a9e5ae5a8e8985c67e8944c23035a0dff2c26b0f5070b2f55b217a1c33bbe8b1 \ + --hash=sha256:b4fdb29c5a7406e3f7ef176b2a7079baa68b5b854f364c21abe327bbeec01cdb \ + --hash=sha256:c184485e0dfba4dfd451c3bd348c2e685d6523543a0f91b9fd4ae90eb09e8422 \ + --hash=sha256:c9cdf251c582c16fd6a9f5e95836c90828d51b0069ad22f463761d27c6c19019 \ + --hash=sha256:e39cf61bb8582bda88cdfebc0db163b774e7e03364bbf9ce1ead13863e81e359 \ + --hash=sha256:e8fbc522303e09036c752a0afcc5c0603e917222d8bedc02813fd73b4b4ed804 \ + --hash=sha256:f34464ab1207114e73bba0794d1257c150a2b89b7a9faf504e00af7c9fd58978 \ + --hash=sha256:f52dabc96ca99ebd2169dadbe018824ebda08a795c7684a0b7d203a290f3adb0 # via # -r requirements.in # gcp-docuploader From 94974633f56c065a0df344d5d930f2f79de5a26f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 28 Oct 2022 23:42:18 +0000 Subject: [PATCH 1257/2363] chore: [java] synthtool not to create an initial gitignore. (#1672) (#1373) * chore: [java] synthtool not to create an initial gitignore. Given that new generated libraries will come to the Java monorepo going forward and that any new hand-written libraries can get a new .gitignore from humans, there's no need to automatically prepare .gitignore file. * deleting gitignore * deleting .gitignore from golden Source-Link: https://togithub.com/googleapis/synthtool/commit/0baf7e4b652fcc7bf77ec341965c62c0b67e722d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:25a679b48797fcdd98fe339c885d9595a8be5c16a275d1b466ba98e6951a3217 --- java-pubsub/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e12cc1c3ddba..976ef81a6c11 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.23' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.24' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.23" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.24" ``` ## Authentication From 9226e5a6e1bf310c3021fca1b5f9a3dd602583f7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 31 Oct 2022 16:07:00 +0100 Subject: [PATCH 1258/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.24 (#1380) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.23` -> `1.120.24` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.24/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.24/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.24/compatibility-slim/1.120.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.120.24/confidence-slim/1.120.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 976ef81a6c11..7623f750aee6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.23 + 1.120.24 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a50cdcdc4129..72eff65a73a0 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.23 + 1.120.24 From e92438a1cdd7d263cd9b613c892596b3a89298e3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Nov 2022 22:50:38 +0100 Subject: [PATCH 1259/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.4 (#1381) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7623f750aee6..acf5b56c090d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.1.3 + 26.1.4 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.3') +implementation platform('com.google.cloud:libraries-bom:26.1.4') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index f9d37b7a1407..189dfb4117f7 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.1.3 + 26.1.4 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 7f45a1e33b48..51bc0a4c3465 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.1.3 + 26.1.4 pom import From 8c27083216c890de291d0db3c387f2ca52603257 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:06:23 +0000 Subject: [PATCH 1260/2363] chore(java): add a note in README for migrated split repos (#1687) (#1392) * chore(java): add a note in README for migrated split repos Disable renovate bot and flaky bot for split repositories that have moved to the Java monorepo. The Java monorepo will pass the "monorepo=True" parameter to java.common_templates method in its owlbot.py files so that the migration note will not appear in the README in the monorepo. Co-authored-by: Jeff Ching Source-Link: https://togithub.com/googleapis/synthtool/commit/d4b291604f148cde065838c498bc8aa79b8dc10e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.kokoro/requirements.txt | 50 +++++++++++++++------------ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 82b5a1a2e2e1..77cf60878e55 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:894d56f45fc3f4f0d5f3bcf790846419ee2d8e44715eae8917d6a1bba2b7283d + digest: sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index 4a16dfadf82a..02ae42bb4039 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -339,29 +339,33 @@ packaging==21.3 \ # via # -r requirements.in # gcp-releasetool -protobuf==3.20.2 \ - --hash=sha256:03d76b7bd42ac4a6e109742a4edf81ffe26ffd87c5993126d894fe48a120396a \ - --hash=sha256:09e25909c4297d71d97612f04f41cea8fa8510096864f2835ad2f3b3df5a5559 \ - --hash=sha256:18e34a10ae10d458b027d7638a599c964b030c1739ebd035a1dfc0e22baa3bfe \ - --hash=sha256:291fb4307094bf5ccc29f424b42268640e00d5240bf0d9b86bf3079f7576474d \ - --hash=sha256:2c0b040d0b5d5d207936ca2d02f00f765906622c07d3fa19c23a16a8ca71873f \ - --hash=sha256:384164994727f274cc34b8abd41a9e7e0562801361ee77437099ff6dfedd024b \ - --hash=sha256:3cb608e5a0eb61b8e00fe641d9f0282cd0eedb603be372f91f163cbfbca0ded0 \ - --hash=sha256:5d9402bf27d11e37801d1743eada54372f986a372ec9679673bfcc5c60441151 \ - --hash=sha256:712dca319eee507a1e7df3591e639a2b112a2f4a62d40fe7832a16fd19151750 \ - --hash=sha256:7a5037af4e76c975b88c3becdf53922b5ffa3f2cddf657574a4920a3b33b80f3 \ - --hash=sha256:8228e56a865c27163d5d1d1771d94b98194aa6917bcfb6ce139cbfa8e3c27334 \ - --hash=sha256:84a1544252a933ef07bb0b5ef13afe7c36232a774affa673fc3636f7cee1db6c \ - --hash=sha256:84fe5953b18a383fd4495d375fe16e1e55e0a3afe7b4f7b4d01a3a0649fcda9d \ - --hash=sha256:9c673c8bfdf52f903081816b9e0e612186684f4eb4c17eeb729133022d6032e3 \ - --hash=sha256:a9e5ae5a8e8985c67e8944c23035a0dff2c26b0f5070b2f55b217a1c33bbe8b1 \ - --hash=sha256:b4fdb29c5a7406e3f7ef176b2a7079baa68b5b854f364c21abe327bbeec01cdb \ - --hash=sha256:c184485e0dfba4dfd451c3bd348c2e685d6523543a0f91b9fd4ae90eb09e8422 \ - --hash=sha256:c9cdf251c582c16fd6a9f5e95836c90828d51b0069ad22f463761d27c6c19019 \ - --hash=sha256:e39cf61bb8582bda88cdfebc0db163b774e7e03364bbf9ce1ead13863e81e359 \ - --hash=sha256:e8fbc522303e09036c752a0afcc5c0603e917222d8bedc02813fd73b4b4ed804 \ - --hash=sha256:f34464ab1207114e73bba0794d1257c150a2b89b7a9faf504e00af7c9fd58978 \ - --hash=sha256:f52dabc96ca99ebd2169dadbe018824ebda08a795c7684a0b7d203a290f3adb0 +protobuf==3.19.5 \ + --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ + --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ + --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ + --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ + --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ + --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ + --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ + --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ + --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ + --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ + --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ + --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ + --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ + --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ + --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ + --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ + --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ + --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ + --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ + --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ + --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ + --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ + --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ + --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ + --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ + --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de # via # -r requirements.in # gcp-docuploader From 274c3e04bca33952fd864d7afc5bb96f2f1f5559 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 8 Nov 2022 17:12:15 +0100 Subject: [PATCH 1261/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.17 (#1388) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.16` -> `0.9.17` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.17/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.17/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.17/compatibility-slim/0.9.16)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.17/confidence-slim/0.9.16)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    graalvm/native-build-tools ### [`v0.9.17`](https://togithub.com/graalvm/native-build-tools/releases/tag/0.9.17) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.16...0.9.17) #### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Make GraalVM installation check lazy by [@​sdeleuze](https://togithub.com/sdeleuze) in [https://togithub.com/graalvm/native-build-tools/pull/345](https://togithub.com/graalvm/native-build-tools/pull/345) - Add a check for the minimal GraalVM version by [@​sdeleuze](https://togithub.com/sdeleuze) in [https://togithub.com/graalvm/native-build-tools/pull/353](https://togithub.com/graalvm/native-build-tools/pull/353) - Bump metadata repo version to 0.2.4 by [@​dnestoro](https://togithub.com/dnestoro) in [https://togithub.com/graalvm/native-build-tools/pull/356](https://togithub.com/graalvm/native-build-tools/pull/356) **Full Changelog**: https://togithub.com/graalvm/native-build-tools/compare/0.9.16...0.9.17
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 189dfb4117f7..47bcb5162bc6 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.16 + 0.9.17 true pubsub.NativeImagePubSubSample From 7a878a5bee8d84509f80f754591f73811b3f3223 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 8 Nov 2022 17:28:18 +0100 Subject: [PATCH 1262/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.27 (#1391) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.24` -> `2.8.27` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.27/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.27/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.27/compatibility-slim/2.8.24)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.27/confidence-slim/2.8.24)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.27`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2827-httpsgithubcomgoogleapisjava-corecomparev2826v2827-2022-11-07) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.26...v2.8.27) ##### Dependencies - Update dependency com.google.api:gax-bom to v2.19.5 ([#​1014](https://togithub.com/googleapis/java-core/issues/1014)) ([00753f8](https://togithub.com/googleapis/java-core/commit/00753f88745ad0232658b634aadf5250c6daad01)) ### [`v2.8.26`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2826-httpsgithubcomgoogleapisjava-corecomparev2825v2826-2022-11-07) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.24...v2.8.26) ##### Dependencies - Update dependency com.google.api-client:google-api-client-bom to v2.0.1 ([#​1011](https://togithub.com/googleapis/java-core/issues/1011)) ([e52b05c](https://togithub.com/googleapis/java-core/commit/e52b05c0b4973258d7d783af725182d5ba834c25)) - Update dependency com.google.api.grpc:proto-google-common-protos to v2.10.0 ([#​1010](https://togithub.com/googleapis/java-core/issues/1010)) ([db9d19e](https://togithub.com/googleapis/java-core/commit/db9d19e9e760bef0c543f7e5da6af172a7ceca06)) - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.7 ([#​1005](https://togithub.com/googleapis/java-core/issues/1005)) ([45513e6](https://togithub.com/googleapis/java-core/commit/45513e639543ca2025d4c4c4cd84f5735c067443))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 72eff65a73a0..c62e981d7c38 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.24 + 2.8.27 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cec2e5068363..2a21c20cb1e3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.24 + 2.8.27 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 51bc0a4c3465..fa52bb6c3f75 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.24 + 2.8.27 tests From 8cd74cd3e6bcc39da9faab98c117a639edee3c2b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 8 Nov 2022 18:04:26 +0100 Subject: [PATCH 1263/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.17 (#1389) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.16` -> `0.9.17` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.17/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.17/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.17/compatibility-slim/0.9.16)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.17/confidence-slim/0.9.16)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    graalvm/native-build-tools ### [`v0.9.17`](https://togithub.com/graalvm/native-build-tools/releases/tag/0.9.17) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.16...0.9.17) #### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Make GraalVM installation check lazy by [@​sdeleuze](https://togithub.com/sdeleuze) in [https://togithub.com/graalvm/native-build-tools/pull/345](https://togithub.com/graalvm/native-build-tools/pull/345) - Add a check for the minimal GraalVM version by [@​sdeleuze](https://togithub.com/sdeleuze) in [https://togithub.com/graalvm/native-build-tools/pull/353](https://togithub.com/graalvm/native-build-tools/pull/353) - Bump metadata repo version to 0.2.4 by [@​dnestoro](https://togithub.com/dnestoro) in [https://togithub.com/graalvm/native-build-tools/pull/356](https://togithub.com/graalvm/native-build-tools/pull/356) **Full Changelog**: https://togithub.com/graalvm/native-build-tools/compare/0.9.16...0.9.17
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 47bcb5162bc6..27d9589e64dc 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.16 + 0.9.17 test
    From e7fff7ff4f1ad4576d0e97866170113e0a5321d0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 9 Nov 2022 17:15:08 -0500 Subject: [PATCH 1264/2363] chore: update google-auth to 2.14.1 (#1703) (#1398) Co-authored-by: Anthonios Partheniou Source-Link: https://github.com/googleapis/synthtool/commit/9457e69470097f8e71b6b497ceece5bc423eaf3a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a3fe0b4c75f322520f548e535ed329df1e475ace3cb4a979b78e003cb822636a Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.kokoro/requirements.in | 7 +-- java-pubsub/.kokoro/requirements.txt | 74 +++++++++++++-------------- 3 files changed, 42 insertions(+), 41 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 77cf60878e55..676aaea0c74d 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a + digest: sha256:a3fe0b4c75f322520f548e535ed329df1e475ace3cb4a979b78e003cb822636a diff --git a/java-pubsub/.kokoro/requirements.in b/java-pubsub/.kokoro/requirements.in index 6aa7cf2b55ee..ae1d92e68084 100644 --- a/java-pubsub/.kokoro/requirements.in +++ b/java-pubsub/.kokoro/requirements.in @@ -1,7 +1,8 @@ -gcp-docuploader==0.6.3 +gcp-docuploader==0.6.4 google-crc32c==1.3.0 googleapis-common-protos==1.56.3 -gcp-releasetool==1.8.7 +gcp-releasetool==1.9.1 +cryptography==38.0.3 cachetools==4.2.4 cffi==1.15.1 jeepney==0.7.1 @@ -29,5 +30,5 @@ zipp==3.6.0 rsa==4.9 six==1.16.0 attrs==22.1.0 -google-auth==2.11.0 +google-auth==2.14.1 idna==3.4 \ No newline at end of file diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index 02ae42bb4039..9c82529c84ff 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -2,7 +2,7 @@ # This file is autogenerated by pip-compile with python 3.10 # To update, run: # -# pip-compile --allow-unsafe --generate-hashes requirements.in +# pip-compile --generate-hashes requirements.in # attrs==22.1.0 \ --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ @@ -104,43 +104,44 @@ colorlog==6.7.0 \ --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 # via gcp-docuploader -cryptography==38.0.1 \ - --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ - --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ - --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ - --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ - --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ - --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ - --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ - --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ - --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ - --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ - --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ - --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ - --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ - --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ - --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ - --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ - --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ - --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ - --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ - --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ - --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ - --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ - --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ - --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ - --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ - --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 +cryptography==38.0.3 \ + --hash=sha256:068147f32fa662c81aebab95c74679b401b12b57494872886eb5c1139250ec5d \ + --hash=sha256:06fc3cc7b6f6cca87bd56ec80a580c88f1da5306f505876a71c8cfa7050257dd \ + --hash=sha256:25c1d1f19729fb09d42e06b4bf9895212292cb27bb50229f5aa64d039ab29146 \ + --hash=sha256:402852a0aea73833d982cabb6d0c3bb582c15483d29fb7085ef2c42bfa7e38d7 \ + --hash=sha256:4e269dcd9b102c5a3d72be3c45d8ce20377b8076a43cbed6f660a1afe365e436 \ + --hash=sha256:5419a127426084933076132d317911e3c6eb77568a1ce23c3ac1e12d111e61e0 \ + --hash=sha256:554bec92ee7d1e9d10ded2f7e92a5d70c1f74ba9524947c0ba0c850c7b011828 \ + --hash=sha256:5e89468fbd2fcd733b5899333bc54d0d06c80e04cd23d8c6f3e0542358c6060b \ + --hash=sha256:65535bc550b70bd6271984d9863a37741352b4aad6fb1b3344a54e6950249b55 \ + --hash=sha256:6ab9516b85bebe7aa83f309bacc5f44a61eeb90d0b4ec125d2d003ce41932d36 \ + --hash=sha256:6addc3b6d593cd980989261dc1cce38263c76954d758c3c94de51f1e010c9a50 \ + --hash=sha256:728f2694fa743a996d7784a6194da430f197d5c58e2f4e278612b359f455e4a2 \ + --hash=sha256:785e4056b5a8b28f05a533fab69febf5004458e20dad7e2e13a3120d8ecec75a \ + --hash=sha256:78cf5eefac2b52c10398a42765bfa981ce2372cbc0457e6bf9658f41ec3c41d8 \ + --hash=sha256:7f836217000342d448e1c9a342e9163149e45d5b5eca76a30e84503a5a96cab0 \ + --hash=sha256:8d41a46251bf0634e21fac50ffd643216ccecfaf3701a063257fe0b2be1b6548 \ + --hash=sha256:984fe150f350a3c91e84de405fe49e688aa6092b3525f407a18b9646f6612320 \ + --hash=sha256:9b24bcff7853ed18a63cfb0c2b008936a9554af24af2fb146e16d8e1aed75748 \ + --hash=sha256:b1b35d9d3a65542ed2e9d90115dfd16bbc027b3f07ee3304fc83580f26e43249 \ + --hash=sha256:b1b52c9e5f8aa2b802d48bd693190341fae201ea51c7a167d69fc48b60e8a959 \ + --hash=sha256:bbf203f1a814007ce24bd4d51362991d5cb90ba0c177a9c08825f2cc304d871f \ + --hash=sha256:be243c7e2bfcf6cc4cb350c0d5cdf15ca6383bbcb2a8ef51d3c9411a9d4386f0 \ + --hash=sha256:bfbe6ee19615b07a98b1d2287d6a6073f734735b49ee45b11324d85efc4d5cbd \ + --hash=sha256:c46837ea467ed1efea562bbeb543994c2d1f6e800785bd5a2c98bc096f5cb220 \ + --hash=sha256:dfb4f4dd568de1b6af9f4cda334adf7d72cf5bc052516e1b2608b683375dd95c \ + --hash=sha256:ed7b00096790213e09eb11c97cc6e2b757f15f3d2f85833cd2d3ec3fe37c1722 # via + # -r requirements.in # gcp-releasetool # secretstorage -gcp-docuploader==0.6.3 \ - --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ - --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b +gcp-docuploader==0.6.4 \ + --hash=sha256:01486419e24633af78fd0167db74a2763974765ee8078ca6eb6964d0ebd388af \ + --hash=sha256:70861190c123d907b3b067da896265ead2eeb9263969d6955c9e0bb091b5ccbf # via -r requirements.in -gcp-releasetool==1.8.7 \ - --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ - --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d +gcp-releasetool==1.9.1 \ + --hash=sha256:952f4055d5d986b070ae2a71c4410b250000f9cc5a1e26398fcd55a5bbc5a15f \ + --hash=sha256:d0d3c814a97c1a237517e837d8cfa668ced8df4b882452578ecef4a4e79c583b # via -r requirements.in google-api-core==2.8.2 \ --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ @@ -149,9 +150,8 @@ google-api-core==2.8.2 \ # -r requirements.in # google-cloud-core # google-cloud-storage -google-auth==2.11.0 \ - --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ - --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb +google-auth==2.14.1 \ + --hash=sha256:f5d8701633bebc12e0deea4df8abd8aff31c28b355360597f7f2ee60f2e4d016 # via # -r requirements.in # gcp-releasetool From a73401ad13ea71cd6ca657cfb11744a12af53aa2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 10 Nov 2022 17:05:44 -0500 Subject: [PATCH 1265/2363] chore(main): release 1.120.25 (#1379) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 225f17fc9633..cbd18d07a3fe 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.120.25](https://github.com/googleapis/java-pubsub/compare/v1.120.24...v1.120.25) (2022-11-09) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.8.27 ([#1391](https://github.com/googleapis/java-pubsub/issues/1391)) ([dd9f1c3](https://github.com/googleapis/java-pubsub/commit/dd9f1c366c9aa5f78dccc01a4dc3e2ee42290be3)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.21.9 ([#1370](https://github.com/googleapis/java-pubsub/issues/1370)) ([8b753a4](https://github.com/googleapis/java-pubsub/commit/8b753a452a3f778402b61565d38a9a2ce90f084a)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.17 ([#1389](https://github.com/googleapis/java-pubsub/issues/1389)) ([6def6bb](https://github.com/googleapis/java-pubsub/commit/6def6bbff8c31af6a008fee89654a13b0db1550f)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.17 ([#1388](https://github.com/googleapis/java-pubsub/issues/1388)) ([0924923](https://github.com/googleapis/java-pubsub/commit/0924923039e30716d66ad8ca519fbdae88946807)) + ## [1.120.24](https://github.com/googleapis/java-pubsub/compare/v1.120.23...v1.120.24) (2022-10-28) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0ec821cbbca7..e2a4b8cc8d0a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.25-SNAPSHOT + 1.120.25 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.25-SNAPSHOT + 1.120.25 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.25-SNAPSHOT + 1.102.25 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.25-SNAPSHOT + 1.102.25
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a5f67b4ed9bd..366d27b52492 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.25-SNAPSHOT + 1.120.25 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.25-SNAPSHOT + 1.120.25 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index db9c63c25b9a..837535fcff5a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.25-SNAPSHOT + 1.102.25 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.25-SNAPSHOT + 1.120.25 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7aeb8ad5dc61..00d652ef79dd 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.25-SNAPSHOT + 1.120.25 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.25-SNAPSHOT + 1.102.25 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.25-SNAPSHOT + 1.102.25 com.google.cloud google-cloud-pubsub - 1.120.25-SNAPSHOT + 1.120.25 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9612f88bf70c..09702fe0058b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.25-SNAPSHOT + 1.102.25 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.25-SNAPSHOT + 1.120.25 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2a21c20cb1e3..4f2ab95c0588 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.25-SNAPSHOT + 1.120.25 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8a450c950b68..7fad62888d01 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.24:1.120.25-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.24:1.102.25-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.24:1.102.25-SNAPSHOT +google-cloud-pubsub:1.120.25:1.120.25 +grpc-google-cloud-pubsub-v1:1.102.25:1.102.25 +proto-google-cloud-pubsub-v1:1.102.25:1.102.25 From 62d0643eebbc3506b7ae2590f7075464925afdd7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 10 Nov 2022 22:18:14 +0000 Subject: [PATCH 1266/2363] chore(main): release 1.120.26-SNAPSHOT (#1400) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e2a4b8cc8d0a..516192825dbf 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.25 + 1.120.26-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.25 + 1.120.26-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.25 + 1.102.26-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.25 + 1.102.26-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 366d27b52492..036350619f6c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.25 + 1.120.26-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.25 + 1.120.26-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 837535fcff5a..bea5adebc84c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.25 + 1.102.26-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.25 + 1.120.26-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 00d652ef79dd..73f916e1316b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.25 + 1.120.26-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.25 + 1.102.26-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.25 + 1.102.26-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.120.25 + 1.120.26-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 09702fe0058b..ee00a88ee8e8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.25 + 1.102.26-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.25 + 1.120.26-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4f2ab95c0588..92f9f239332e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.25 + 1.120.26-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7fad62888d01..88e6e9a3de0b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.25:1.120.25 -grpc-google-cloud-pubsub-v1:1.102.25:1.102.25 -proto-google-cloud-pubsub-v1:1.102.25:1.102.25 +google-cloud-pubsub:1.120.25:1.120.26-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.102.25:1.102.26-SNAPSHOT +proto-google-cloud-pubsub-v1:1.102.25:1.102.26-SNAPSHOT From 7ee563a07fa313d2d0418b936fd42b111e83c1db Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 11 Nov 2022 17:33:59 +0100 Subject: [PATCH 1267/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.25 (#1402) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.120.25 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index acf5b56c090d..cb025c37bc23 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.24 + 1.120.25 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.24' +implementation 'com.google.cloud:google-cloud-pubsub:1.120.25' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.24" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.25" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c62e981d7c38..e7e3ee085af7 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.24 + 1.120.25 From aebd501e9c457dda670406b9b585c3d2635b10f9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 14 Nov 2022 19:24:14 +0100 Subject: [PATCH 1268/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.8.28 (#1399) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.27` -> `2.8.28` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.28/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.28/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.28/compatibility-slim/2.8.27)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.28/confidence-slim/2.8.27)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-core ### [`v2.8.28`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2828-httpsgithubcomgoogleapisjava-corecomparev2827v2828-2022-11-09) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.8 ([#​1020](https://togithub.com/googleapis/java-core/issues/1020)) ([e8b3608](https://togithub.com/googleapis/java-core/commit/e8b360836633345db0a8010590cf9a9753e1a1f9))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e7e3ee085af7..ae0168e1eeec 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.27 + 2.8.28 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 92f9f239332e..edf21786815b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.27 + 2.8.28 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index fa52bb6c3f75..d26df18d7f43 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.27 + 2.8.28 tests From 627882132a2c599c15f0438a72efa8a53f34c35a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 14 Nov 2022 19:27:52 +0100 Subject: [PATCH 1269/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.6 (#1395) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 73f916e1316b..356123d134e6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.5 + 3.0.6 pom import From 6f55db80dfc1d9990ede4806febc020f1ea7084b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 15 Nov 2022 17:17:08 +0100 Subject: [PATCH 1270/2363] test(deps): update dependency org.mockito:mockito-core to v4.9.0 (#1404) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 356123d134e6..409b5cd0f271 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -86,7 +86,7 @@ org.mockito mockito-core - 4.8.1 + 4.9.0 test From b8f1331fef52d73b966f762c2e031bda22dd34a7 Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Wed, 16 Nov 2022 12:06:51 -0500 Subject: [PATCH 1271/2363] feat: next release from main branch is 1.121.0 (#1406) --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 15303ab7ad67..56c267bc325f 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -22,3 +22,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.117.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.120.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 573b243c1a15..e1928598be5c 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -100,6 +100,24 @@ branchProtectionRules: - Kokoro - Against Pub/Sub Lite samples - cla/google - OwlBot Post Processor + - pattern: 1.120.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - Kokoro - Against Pub/Sub Lite samples + - cla/google + - OwlBot Post Processor + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' permissionRules: - team: yoshi-admins permission: admin From 7a48e0a7367f27393dc6f2c89d6320d0efceb284 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 16 Nov 2022 15:16:42 -0500 Subject: [PATCH 1272/2363] chore(java): pom generation to look at root versions.txt (#1706) (#1405) * chore(java): pom generation to look at root versions.txt * not to include irrelevant modules in monorepo Co-authored-by: Burke Davison <40617934+burkedavison@users.noreply.github.com> Co-authored-by: Burke Davison <40617934+burkedavison@users.noreply.github.com> Source-Link: https://github.com/googleapis/synthtool/commit/909f3c8707c331ef181941fa45ad4c90c9368e85 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a57d2ea6d1a77aa96c17ad0850b779ec6295f88b6c1da3d214b2095d140a2066 Co-authored-by: Owl Bot Co-authored-by: Burke Davison <40617934+burkedavison@users.noreply.github.com> --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.kokoro/requirements.in | 2 +- java-pubsub/.kokoro/requirements.txt | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 676aaea0c74d..c1e4d2da2a82 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a3fe0b4c75f322520f548e535ed329df1e475ace3cb4a979b78e003cb822636a + digest: sha256:a57d2ea6d1a77aa96c17ad0850b779ec6295f88b6c1da3d214b2095d140a2066 diff --git a/java-pubsub/.kokoro/requirements.in b/java-pubsub/.kokoro/requirements.in index ae1d92e68084..924f94ae6fa1 100644 --- a/java-pubsub/.kokoro/requirements.in +++ b/java-pubsub/.kokoro/requirements.in @@ -1,4 +1,4 @@ -gcp-docuploader==0.6.4 +gcp-docuploader==0.6.3 google-crc32c==1.3.0 googleapis-common-protos==1.56.3 gcp-releasetool==1.9.1 diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index 9c82529c84ff..71fcafc70316 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -135,9 +135,9 @@ cryptography==38.0.3 \ # -r requirements.in # gcp-releasetool # secretstorage -gcp-docuploader==0.6.4 \ - --hash=sha256:01486419e24633af78fd0167db74a2763974765ee8078ca6eb6964d0ebd388af \ - --hash=sha256:70861190c123d907b3b067da896265ead2eeb9263969d6955c9e0bb091b5ccbf +gcp-docuploader==0.6.3 \ + --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ + --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b # via -r requirements.in gcp-releasetool==1.9.1 \ --hash=sha256:952f4055d5d986b070ae2a71c4410b250000f9cc5a1e26398fcd55a5bbc5a15f \ From f97739390e54597462cf843fc3c83f38f364c928 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 16 Nov 2022 16:54:59 -0500 Subject: [PATCH 1273/2363] test: add presubmit to verify java_library requirements file (#1701) (#1390) * test: add presubmit to verify java_library requirements file Source-Link: https://github.com/googleapis/synthtool/commit/d14818215edae9910959439def57cf180d58f4c9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:27d0a1232b3656f0610cc1a55beb157cb3b63b1ca8b3dfba0bcd8b9dfecda4a1 Co-authored-by: Owl Bot Co-authored-by: Diego Alonso Marquez Palacios --- java-pubsub/.github/.OwlBot.lock.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index c1e4d2da2a82..202e7084cba6 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -14,3 +14,4 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest digest: sha256:a57d2ea6d1a77aa96c17ad0850b779ec6295f88b6c1da3d214b2095d140a2066 + From 353b6229fd52c8baee8b34d1d118c274bf7b028a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 16 Nov 2022 16:55:29 -0500 Subject: [PATCH 1274/2363] chore: require hashes when installing dependencies in owlbot postprocessor job (#1691) (#1383) * chore: install dependencies through requirements file Source-Link: https://github.com/googleapis/synthtool/commit/35f4cbaf1295a726cb43fd4471129ec74b48e04e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:821ab7aba89af2c7907e29297bba024d4cd5366d0684e5eb463391cdf4edc9ee Co-authored-by: Owl Bot Co-authored-by: Diego Alonso Marquez Palacios From 32502dee9c1b661f90a294ee709071d9a741bb44 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 17 Nov 2022 15:52:50 -0500 Subject: [PATCH 1275/2363] chore(main): release 1.121.0 (#1403) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index cbd18d07a3fe..0ce28ff32bff 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.121.0](https://github.com/googleapis/java-pubsub/compare/v1.120.25...v1.121.0) (2022-11-16) + + +### Features + +* Next release from main branch is 1.121.0 ([#1406](https://github.com/googleapis/java-pubsub/issues/1406)) ([1b25b0e](https://github.com/googleapis/java-pubsub/commit/1b25b0e01a7b1068dbebaa5d6516419c11e31b96)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.8.28 ([#1399](https://github.com/googleapis/java-pubsub/issues/1399)) ([ec1cae8](https://github.com/googleapis/java-pubsub/commit/ec1cae87596921078478ed96a22b9ca5b138f729)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.6 ([#1395](https://github.com/googleapis/java-pubsub/issues/1395)) ([a3c32ea](https://github.com/googleapis/java-pubsub/commit/a3c32eadb8e6d4ce730f2f2d1f8960ccd6269ecb)) + ## [1.120.25](https://github.com/googleapis/java-pubsub/compare/v1.120.24...v1.120.25) (2022-11-09) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 516192825dbf..9f050dee746c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.120.26-SNAPSHOT + 1.121.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.120.26-SNAPSHOT + 1.121.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.26-SNAPSHOT + 1.103.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.26-SNAPSHOT + 1.103.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 036350619f6c..d4a8ad0a22f3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.120.26-SNAPSHOT + 1.121.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.120.26-SNAPSHOT + 1.121.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bea5adebc84c..521e783e038e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.26-SNAPSHOT + 1.103.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.26-SNAPSHOT + 1.121.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 409b5cd0f271..d53e65a2f723 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.120.26-SNAPSHOT + 1.121.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.26-SNAPSHOT + 1.103.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.102.26-SNAPSHOT + 1.103.0 com.google.cloud google-cloud-pubsub - 1.120.26-SNAPSHOT + 1.121.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ee00a88ee8e8..764aa0267992 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.102.26-SNAPSHOT + 1.103.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.120.26-SNAPSHOT + 1.121.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index edf21786815b..484ab79b94e7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.120.26-SNAPSHOT + 1.121.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 88e6e9a3de0b..3ceacda012d2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.120.25:1.120.26-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.102.25:1.102.26-SNAPSHOT -proto-google-cloud-pubsub-v1:1.102.25:1.102.26-SNAPSHOT +google-cloud-pubsub:1.121.0:1.121.0 +grpc-google-cloud-pubsub-v1:1.103.0:1.103.0 +proto-google-cloud-pubsub-v1:1.103.0:1.103.0 From a47ea270336377f82944c3238996082774986104 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 17 Nov 2022 21:04:13 +0000 Subject: [PATCH 1276/2363] chore(main): release 1.121.1-SNAPSHOT (#1408) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9f050dee746c..144a1791b55d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.121.0 + 1.121.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.121.0 + 1.121.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.0 + 1.103.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.0 + 1.103.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d4a8ad0a22f3..508079f1f1ea 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.121.0 + 1.121.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.121.0 + 1.121.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 521e783e038e..152630038012 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.0 + 1.103.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.121.0 + 1.121.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d53e65a2f723..8bf9b7d7a08f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.121.0 + 1.121.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.0 + 1.103.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.0 + 1.103.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.121.0 + 1.121.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 764aa0267992..f49a829be6b3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.0 + 1.103.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.121.0 + 1.121.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 484ab79b94e7..90c05dc11a10 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.121.0 + 1.121.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3ceacda012d2..a808647cf873 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.121.0:1.121.0 -grpc-google-cloud-pubsub-v1:1.103.0:1.103.0 -proto-google-cloud-pubsub-v1:1.103.0:1.103.0 +google-cloud-pubsub:1.121.0:1.121.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.103.0:1.103.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.103.0:1.103.1-SNAPSHOT From 4063e3f53edd6bc62c32528b09ba3d4dd13d2f3f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 18 Nov 2022 18:58:34 +0100 Subject: [PATCH 1277/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.121.0 (#1411) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.120.25` -> `1.121.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.121.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.121.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.121.0/compatibility-slim/1.120.25)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.121.0/confidence-slim/1.120.25)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index cb025c37bc23..8363a028cdef 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.120.25 + 1.121.0 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.120.25' +implementation 'com.google.cloud:google-cloud-pubsub:1.121.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.120.25" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.121.0" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ae0168e1eeec..ca32d6bac0ce 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.120.25 + 1.121.0 From 10d108269e8ce4e90ca226efd9ffbcb5caf1c7f0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 18 Nov 2022 23:12:28 +0100 Subject: [PATCH 1278/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.5 (#1412) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.4` -> `26.1.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.5/compatibility-slim/26.1.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.5/confidence-slim/26.1.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8363a028cdef..56a7baa2a31e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.1.4 + 26.1.5 pom import @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.4') +implementation platform('com.google.cloud:libraries-bom:26.1.5') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 27d9589e64dc..5ad825dd51a3 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.1.4 + 26.1.5 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d26df18d7f43..48d551af12a4 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.1.4 + 26.1.5 pom import From adbb31d44ff81e862c8d473aee5028bc445447a9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 21 Nov 2022 22:09:44 +0100 Subject: [PATCH 1279/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.18 (#1414) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 5ad825dd51a3..ba312e74393f 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.17 + 0.9.18 true pubsub.NativeImagePubSubSample From 3c08daeea87633f7f9266b5c302da655d4366a38 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 21 Nov 2022 22:10:14 +0100 Subject: [PATCH 1280/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.18 (#1413) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index ba312e74393f..038c9f60ca18 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.17 + 0.9.18 test From 1470aca5fc1793b87bc4b39a99ddc526616234c9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 21 Nov 2022 23:40:39 +0100 Subject: [PATCH 1281/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.18.0 (#1375) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.18.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Blake Li --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ca32d6bac0ce..46160ed44d78 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.17.1 + 2.18.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 90c05dc11a10..56b47580dfe2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.17.1 + 2.18.0 From f05454e972171ce9535c7a38ae86f77049504c5b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 21 Nov 2022 23:53:31 +0100 Subject: [PATCH 1282/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.19.1 (#1416) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 46160ed44d78..ab442df9eec1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.18.0 + 2.19.1
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 56b47580dfe2..8a58f857f132 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.18.0 + 2.19.1
    From a66dd6530fa91db241272f21e8beaa4b23be3b1f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 21 Nov 2022 23:04:15 +0000 Subject: [PATCH 1283/2363] chore(main): release 1.121.1 (#1415) :robot: I have created a release *beep* *boop* --- ## [1.121.1](https://togithub.com/googleapis/java-pubsub/compare/v1.121.0...v1.121.1) (2022-11-21) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.18.0 ([#1375](https://togithub.com/googleapis/java-pubsub/issues/1375)) ([1470aca](https://togithub.com/googleapis/java-pubsub/commit/1470aca5fc1793b87bc4b39a99ddc526616234c9)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.19.1 ([#1416](https://togithub.com/googleapis/java-pubsub/issues/1416)) ([f05454e](https://togithub.com/googleapis/java-pubsub/commit/f05454e972171ce9535c7a38ae86f77049504c5b)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.18 ([#1413](https://togithub.com/googleapis/java-pubsub/issues/1413)) ([3c08dae](https://togithub.com/googleapis/java-pubsub/commit/3c08daeea87633f7f9266b5c302da655d4366a38)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.18 ([#1414](https://togithub.com/googleapis/java-pubsub/issues/1414)) ([adbb31d](https://togithub.com/googleapis/java-pubsub/commit/adbb31d44ff81e862c8d473aee5028bc445447a9)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 0ce28ff32bff..326bd5c7a8a2 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.121.1](https://github.com/googleapis/java-pubsub/compare/v1.121.0...v1.121.1) (2022-11-21) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.18.0 ([#1375](https://github.com/googleapis/java-pubsub/issues/1375)) ([b6ada4e](https://github.com/googleapis/java-pubsub/commit/b6ada4e06397d785b6747bd989fe6cd9d6e76801)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.19.1 ([#1416](https://github.com/googleapis/java-pubsub/issues/1416)) ([e140a49](https://github.com/googleapis/java-pubsub/commit/e140a4975a5bff4c73254784409f4f3dda27db09)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.18 ([#1413](https://github.com/googleapis/java-pubsub/issues/1413)) ([b3fb828](https://github.com/googleapis/java-pubsub/commit/b3fb828480f491e4275adf0b6367aeb51ac0569e)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.18 ([#1414](https://github.com/googleapis/java-pubsub/issues/1414)) ([74d2dc3](https://github.com/googleapis/java-pubsub/commit/74d2dc3329f6d4e33c977fa1e73df1aca278b9b3)) + ## [1.121.0](https://github.com/googleapis/java-pubsub/compare/v1.120.25...v1.121.0) (2022-11-16) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 144a1791b55d..c6cefaa48244 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.121.1-SNAPSHOT + 1.121.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.121.1-SNAPSHOT + 1.121.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.1-SNAPSHOT + 1.103.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.1-SNAPSHOT + 1.103.1
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 508079f1f1ea..5a422204add4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.121.1-SNAPSHOT + 1.121.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.121.1-SNAPSHOT + 1.121.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 152630038012..450cac9e6254 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.1-SNAPSHOT + 1.103.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.121.1-SNAPSHOT + 1.121.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8bf9b7d7a08f..2f79fb69f1b4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.121.1-SNAPSHOT + 1.121.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.1-SNAPSHOT + 1.103.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.1-SNAPSHOT + 1.103.1 com.google.cloud google-cloud-pubsub - 1.121.1-SNAPSHOT + 1.121.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f49a829be6b3..7f4ae86f51fa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.1-SNAPSHOT + 1.103.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.121.1-SNAPSHOT + 1.121.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8a58f857f132..7e181a719cbb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.121.1-SNAPSHOT + 1.121.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a808647cf873..8dec4d3a391b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.121.0:1.121.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.103.0:1.103.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.103.0:1.103.1-SNAPSHOT +google-cloud-pubsub:1.121.1:1.121.1 +grpc-google-cloud-pubsub-v1:1.103.1:1.103.1 +proto-google-cloud-pubsub-v1:1.103.1:1.103.1 From 7265a4ef9eb366d49302b58419c0f197bd5fd0c3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 21 Nov 2022 23:16:15 +0000 Subject: [PATCH 1284/2363] chore(main): release 1.121.2-SNAPSHOT (#1417) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c6cefaa48244..5cf8de08bde8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.121.1 + 1.121.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.121.1 + 1.121.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.1 + 1.103.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.1 + 1.103.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5a422204add4..486cee22d921 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.121.1 + 1.121.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.121.1 + 1.121.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 450cac9e6254..a269148a514d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.1 + 1.103.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.121.1 + 1.121.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2f79fb69f1b4..33354013101b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.121.1 + 1.121.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.1 + 1.103.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.1 + 1.103.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.121.1 + 1.121.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7f4ae86f51fa..38a43836a6fc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.1 + 1.103.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.121.1 + 1.121.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7e181a719cbb..c5d556e3cb82 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.121.1 + 1.121.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8dec4d3a391b..bb4c6b141674 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.121.1:1.121.1 -grpc-google-cloud-pubsub-v1:1.103.1:1.103.1 -proto-google-cloud-pubsub-v1:1.103.1:1.103.1 +google-cloud-pubsub:1.121.1:1.121.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.103.1:1.103.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.103.1:1.103.2-SNAPSHOT From 741165ab2e968e22a229865aaf349a15261cf3c8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 22 Nov 2022 16:10:24 +0100 Subject: [PATCH 1285/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.121.1 (#1418) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.121.0` -> `1.121.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.121.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.121.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.121.1/compatibility-slim/1.121.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.121.1/confidence-slim/1.121.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 56a7baa2a31e..1b3a3750d940 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.121.0 + 1.121.1 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.121.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.121.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.121.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.121.1" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ab442df9eec1..c151d097a052 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.121.0 + 1.121.1 From 2ce728a8fe2e3d49ca41a36779f2434d1ff81721 Mon Sep 17 00:00:00 2001 From: Mike Micatka <31972785+mmicatka@users.noreply.github.com> Date: Wed, 23 Nov 2022 11:29:04 -0500 Subject: [PATCH 1286/2363] feat: next release from main branch is 1.122.0 (#1409) --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 56c267bc325f..2599810ac077 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -26,3 +26,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.120.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.121.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index e1928598be5c..c396c116bea8 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -118,6 +118,24 @@ branchProtectionRules: - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' + - pattern: 1.121.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - Kokoro - Against Pub/Sub Lite samples + - cla/google + - OwlBot Post Processor + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' permissionRules: - team: yoshi-admins permission: admin From 0a9e0c4f77d0ae4abef341ea659d2371922ad7eb Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Tue, 29 Nov 2022 15:46:10 -0500 Subject: [PATCH 1287/2363] chore: restore missing native image configuration (#1369) --- java-pubsub/.kokoro/build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 476785ec3085..72c7198b2a04 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -69,6 +69,16 @@ integration) verify RETURN_CODE=$? ;; +graalvm) + # Run Unit and Integration Tests with Native Image + mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test + RETURN_CODE=$? + ;; +graalvm17) + # Run Unit and Integration Tests with Native Image + mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test + RETURN_CODE=$? + ;; samples) SAMPLES_DIR=samples # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. From 368dc0b6b7c6412b725f2eeabaa4bd163456c16c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 1 Dec 2022 20:43:18 +0100 Subject: [PATCH 1288/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.5 (#1426) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5cf8de08bde8..f2554a9e9f8e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.4 + 1.5.5 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 33354013101b..164cedff1e9c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.4 + 1.5.5 From d98bfec11f629a7b7560c5a32786550271bfae8a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 1 Dec 2022 20:43:53 +0100 Subject: [PATCH 1289/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.10 (#1425) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c151d097a052..c5a707f41e0b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.9 + 3.21.10 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c5d556e3cb82..ce1f60a56e7c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.9 + 3.21.10 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 48d551af12a4..b6e0de24b2c1 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.21.9 + 3.21.10 From 9af99bccc3b254fefaab1ec170b4bbd595f43a97 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 1 Dec 2022 20:44:58 +0100 Subject: [PATCH 1290/2363] build(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.4.0 (#1422) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 038c9f60ca18..bb3f49257946 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -79,7 +79,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-dependency-plugin - 3.3.0 + 3.4.0 copy-dependencies From df716822b8934b4d40525ec8cbbc45a726edc36b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 2 Dec 2022 13:51:35 -0500 Subject: [PATCH 1291/2363] chore(main): release 1.122.0 (#1419) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 326bd5c7a8a2..ad9716723980 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.122.0](https://github.com/googleapis/java-pubsub/compare/v1.121.1...v1.122.0) (2022-12-01) + + +### Features + +* Next release from main branch is 1.122.0 ([#1409](https://github.com/googleapis/java-pubsub/issues/1409)) ([dad2c82](https://github.com/googleapis/java-pubsub/commit/dad2c82cc22ed40def105514a4bc8446375dc70e)) + + +### Dependencies + +* Update dependency com.google.protobuf:protobuf-java-util to v3.21.10 ([#1425](https://github.com/googleapis/java-pubsub/issues/1425)) ([39c22cb](https://github.com/googleapis/java-pubsub/commit/39c22cb99dadd1dea874e0a57cf2c9fb0dd67328)) + ## [1.121.1](https://github.com/googleapis/java-pubsub/compare/v1.121.0...v1.121.1) (2022-11-21) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f2554a9e9f8e..833266c1399e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.121.2-SNAPSHOT + 1.122.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.121.2-SNAPSHOT + 1.122.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.2-SNAPSHOT + 1.104.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.2-SNAPSHOT + 1.104.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 486cee22d921..300f72d90fc3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.121.2-SNAPSHOT + 1.122.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.121.2-SNAPSHOT + 1.122.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a269148a514d..48f6512fcdec 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.2-SNAPSHOT + 1.104.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.121.2-SNAPSHOT + 1.122.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 164cedff1e9c..42af7fcdcedc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.121.2-SNAPSHOT + 1.122.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.2-SNAPSHOT + 1.104.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.103.2-SNAPSHOT + 1.104.0 com.google.cloud google-cloud-pubsub - 1.121.2-SNAPSHOT + 1.122.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 38a43836a6fc..ba87782db7be 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.103.2-SNAPSHOT + 1.104.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.121.2-SNAPSHOT + 1.122.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ce1f60a56e7c..f707f37479dd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.121.2-SNAPSHOT + 1.122.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index bb4c6b141674..fecac1b445f0 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.121.1:1.121.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.103.1:1.103.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.103.1:1.103.2-SNAPSHOT +google-cloud-pubsub:1.122.0:1.122.0 +grpc-google-cloud-pubsub-v1:1.104.0:1.104.0 +proto-google-cloud-pubsub-v1:1.104.0:1.104.0 From 257211fb8baad6933a1b95b53a3696961cb03a34 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 2 Dec 2022 19:06:14 +0000 Subject: [PATCH 1292/2363] chore(main): release 1.122.1-SNAPSHOT (#1430) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 833266c1399e..6297cb365641 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.122.0 + 1.122.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.122.0 + 1.122.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.0 + 1.104.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.0 + 1.104.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 300f72d90fc3..7720b2d642cb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.122.0 + 1.122.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.122.0 + 1.122.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 48f6512fcdec..b53def48e83d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.0 + 1.104.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.0 + 1.122.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 42af7fcdcedc..2057a96270b9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.122.0 + 1.122.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.0 + 1.104.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.0 + 1.104.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.122.0 + 1.122.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ba87782db7be..4be18493d2b7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.0 + 1.104.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.0 + 1.122.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f707f37479dd..6674681713eb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.122.0 + 1.122.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index fecac1b445f0..5b2979c037e4 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.122.0:1.122.0 -grpc-google-cloud-pubsub-v1:1.104.0:1.104.0 -proto-google-cloud-pubsub-v1:1.104.0:1.104.0 +google-cloud-pubsub:1.122.0:1.122.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.104.0:1.104.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.104.0:1.104.1-SNAPSHOT From 134b13dd62af0b3e8dcf0972063dcafcc5acb4d3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 2 Dec 2022 20:37:40 +0100 Subject: [PATCH 1293/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.19 (#1428) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index bb3f49257946..d5406d385aa8 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.18 + 0.9.19 test From a4bf00944f3cd5da279939fc758c97f877cdc25c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 2 Dec 2022 21:04:29 +0100 Subject: [PATCH 1294/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.19 (#1429) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index d5406d385aa8..3d1439a03e6d 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.18 + 0.9.19 true pubsub.NativeImagePubSubSample From 8c90ce05045b003c928174c1aede4b99c216f417 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 2 Dec 2022 20:18:14 +0000 Subject: [PATCH 1295/2363] chore(main): release 1.122.1 (#1431) :robot: I have created a release *beep* *boop* --- ## [1.122.1](https://togithub.com/googleapis/java-pubsub/compare/v1.122.0...v1.122.1) (2022-12-02) ### Dependencies * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.19 ([#1428](https://togithub.com/googleapis/java-pubsub/issues/1428)) ([134b13d](https://togithub.com/googleapis/java-pubsub/commit/134b13dd62af0b3e8dcf0972063dcafcc5acb4d3)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.19 ([#1429](https://togithub.com/googleapis/java-pubsub/issues/1429)) ([a4bf009](https://togithub.com/googleapis/java-pubsub/commit/a4bf00944f3cd5da279939fc758c97f877cdc25c)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index ad9716723980..d3c708a6e689 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.122.1](https://github.com/googleapis/java-pubsub/compare/v1.122.0...v1.122.1) (2022-12-02) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.19 ([#1428](https://github.com/googleapis/java-pubsub/issues/1428)) ([bfa9c3d](https://github.com/googleapis/java-pubsub/commit/bfa9c3d5f8f7b0d3103fe5d398ed3f753e1bedca)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.19 ([#1429](https://github.com/googleapis/java-pubsub/issues/1429)) ([d3c44e7](https://github.com/googleapis/java-pubsub/commit/d3c44e77532068e53d7d64dd182295ab6b9644bd)) + ## [1.122.0](https://github.com/googleapis/java-pubsub/compare/v1.121.1...v1.122.0) (2022-12-01) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6297cb365641..9b5ab775c4f6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.122.1-SNAPSHOT + 1.122.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.122.1-SNAPSHOT + 1.122.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.1-SNAPSHOT + 1.104.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.1-SNAPSHOT + 1.104.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7720b2d642cb..3652aa6c54c9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.122.1-SNAPSHOT + 1.122.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.122.1-SNAPSHOT + 1.122.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b53def48e83d..17c1cb16209e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.1-SNAPSHOT + 1.104.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.1-SNAPSHOT + 1.122.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2057a96270b9..92b00facc0c2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.122.1-SNAPSHOT + 1.122.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.1-SNAPSHOT + 1.104.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.1-SNAPSHOT + 1.104.1 com.google.cloud google-cloud-pubsub - 1.122.1-SNAPSHOT + 1.122.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4be18493d2b7..7d9ce74d074f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.1-SNAPSHOT + 1.104.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.1-SNAPSHOT + 1.122.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6674681713eb..989ae2006729 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.122.1-SNAPSHOT + 1.122.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 5b2979c037e4..2dde6d58d776 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.122.0:1.122.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.104.0:1.104.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.104.0:1.104.1-SNAPSHOT +google-cloud-pubsub:1.122.1:1.122.1 +grpc-google-cloud-pubsub-v1:1.104.1:1.104.1 +proto-google-cloud-pubsub-v1:1.104.1:1.104.1 From 36051771d3551b57d2d0013d32fd5a0e1428ad3e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 8 Dec 2022 08:34:49 -0500 Subject: [PATCH 1296/2363] chore: upgrade native image checks to graalvm-22.3.0 (#1718) (#1421) chore: upgrade native image checks to graalvm-22.3.0 Source-Link: https://github.com/googleapis/synthtool/commit/5e52896b69b145a3fac6827e4e75e617abdc9dd8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:27b1b1884dce60460d7521b23c2a73376cba90c0ef3d9f0d32e4bdb786959cfd Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 3 +-- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 202e7084cba6..4ca0036da327 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a57d2ea6d1a77aa96c17ad0850b779ec6295f88b6c1da3d214b2095d140a2066 - + digest: sha256:27b1b1884dce60460d7521b23c2a73376cba90c0ef3d9f0d32e4bdb786959cfd diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index a3f7fb9d4943..e20330c3ca60 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 4c7225ec924e..0fd6ba2fa0ce 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.0" } env_vars: { From 2f0d25404bc382c71a59905914f68c5f115a4def Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 8 Dec 2022 13:52:14 +0000 Subject: [PATCH 1297/2363] chore(main): release 1.122.2-SNAPSHOT (#1432) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1b3a3750d940..5e5c42d81842 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.121.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.122.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.121.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.122.1" ``` ## Authentication diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9b5ab775c4f6..50214b1ee638 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.122.1 + 1.122.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.122.1 + 1.122.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.1 + 1.104.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.1 + 1.104.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3652aa6c54c9..843017182c8b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.122.1 + 1.122.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.122.1 + 1.122.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 17c1cb16209e..09bfff4a35e9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.1 + 1.104.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.1 + 1.122.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 92b00facc0c2..b9e8c8370af7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.122.1 + 1.122.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.1 + 1.104.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.1 + 1.104.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.122.1 + 1.122.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7d9ce74d074f..2e8e84377852 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.1 + 1.104.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.1 + 1.122.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 989ae2006729..4d51de736f45 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.122.1 + 1.122.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 2dde6d58d776..058db7fc7664 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.122.1:1.122.1 -grpc-google-cloud-pubsub-v1:1.104.1:1.104.1 -proto-google-cloud-pubsub-v1:1.104.1:1.104.1 +google-cloud-pubsub:1.122.1:1.122.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.104.1:1.104.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.104.1:1.104.2-SNAPSHOT From ea7f193c2825123de9f2eee1b531a1d7f3139ef8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Dec 2022 18:05:28 +0100 Subject: [PATCH 1298/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.122.1 (#1433) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.122.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5e5c42d81842..ff71d5c5979f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.121.1 + 1.122.1 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c5a707f41e0b..82aa2c1f7bb2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.121.1 + 1.122.1 From c0806e846950e6752430adc9a471601f4a91f2f9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Dec 2022 18:06:03 +0100 Subject: [PATCH 1299/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.9.0 (#1435) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.9.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 82aa2c1f7bb2..edb7988cf674 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.8.28 + 2.9.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4d51de736f45..d246c9a4c2d0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.8.28 + 2.9.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b6e0de24b2c1..5b4be2c27ddf 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.8.28 + 2.9.0 tests From 27ae7cc6cdceb5f36e5317092683023a823b8e74 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 Dec 2022 00:11:53 +0100 Subject: [PATCH 1300/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.0 (#1436) * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.0 * fix: update the pubsub fake executor to cancel a pending callables future when cancelled Co-authored-by: hannahrogers-google --- .../google/cloud/pubsub/v1/FakeScheduledExecutorService.java | 1 + java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java index d8f026fee981..cf067e2da1ec 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java @@ -258,6 +258,7 @@ public int compareTo(Delayed o) { @Override public boolean cancel(boolean mayInterruptIfRunning) { synchronized (this) { + future.cancel(mayInterruptIfRunning); cancelled.set(true); return !done.get(); } diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b9e8c8370af7..25875f4ddfb4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.6 + 3.1.0 pom import From 39da87030d4951e5a19e087c000ca3fb64a00916 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 Dec 2022 16:28:57 +0100 Subject: [PATCH 1301/2363] test(deps): update dependency org.mockito:mockito-core to v4.10.0 (#1443) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 25875f4ddfb4..f835468c7811 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -86,7 +86,7 @@ org.mockito mockito-core - 4.9.0 + 4.10.0 test From 89eb0a517039f2b5eaf81f58a99a42900368026f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Dec 2022 07:50:58 -0800 Subject: [PATCH 1302/2363] chore(main): release 1.122.2 (#1442) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index d3c708a6e689..83bff2d0771d 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.122.2](https://github.com/googleapis/java-pubsub/compare/v1.122.1...v1.122.2) (2022-12-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.9.0 ([#1435](https://github.com/googleapis/java-pubsub/issues/1435)) ([786c493](https://github.com/googleapis/java-pubsub/commit/786c49303bc196e548b00ef0cf39d766e8fd71a8)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.0 ([#1436](https://github.com/googleapis/java-pubsub/issues/1436)) ([a40337b](https://github.com/googleapis/java-pubsub/commit/a40337b493454d20a12f70b7817de7b0f2584b84)) + ## [1.122.1](https://github.com/googleapis/java-pubsub/compare/v1.122.0...v1.122.1) (2022-12-02) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 50214b1ee638..9af4bea7d438 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.122.2-SNAPSHOT + 1.122.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.122.2-SNAPSHOT + 1.122.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.2-SNAPSHOT + 1.104.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.2-SNAPSHOT + 1.104.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 843017182c8b..48436016311f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.122.2-SNAPSHOT + 1.122.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.122.2-SNAPSHOT + 1.122.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 09bfff4a35e9..e9798394bccb 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.2-SNAPSHOT + 1.104.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.2-SNAPSHOT + 1.122.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f835468c7811..d1777002760f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.122.2-SNAPSHOT + 1.122.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.2-SNAPSHOT + 1.104.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.2-SNAPSHOT + 1.104.2 com.google.cloud google-cloud-pubsub - 1.122.2-SNAPSHOT + 1.122.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2e8e84377852..5d49bb4b7a29 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.2-SNAPSHOT + 1.104.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.2-SNAPSHOT + 1.122.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d246c9a4c2d0..f66d336fda96 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.122.2-SNAPSHOT + 1.122.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 058db7fc7664..e8284f0610bd 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.122.1:1.122.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.104.1:1.104.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.104.1:1.104.2-SNAPSHOT +google-cloud-pubsub:1.122.2:1.122.2 +grpc-google-cloud-pubsub-v1:1.104.2:1.104.2 +proto-google-cloud-pubsub-v1:1.104.2:1.104.2 From 84f6e2940db5d291cd113af08352a7aa4c4942d5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 15:20:39 -0500 Subject: [PATCH 1303/2363] feat: add schema evolution methods and fields (#1384) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Set `rest_numeric_enums = False` for all gapic rules explicitly PiperOrigin-RevId: 485623855 Source-Link: https://github.com/googleapis/googleapis/commit/807125e7953e32535710924fe4bf0362ac93754d Source-Link: https://github.com/googleapis/googleapis-gen/commit/c4ddd6d651da69658a4762c5eafff5cd8f0e25c5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzRkZGQ2ZDY1MWRhNjk2NThhNDc2MmM1ZWFmZmY1Y2Q4ZjBlMjVjNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Enable requesting numeric enums in "transport=rest" responses for services supporting this (Java, Go, Python, PHP, TypeScript, C#, and Ruby), even if they do not yet turn on REST transport chore: disallow "transport=rest" for services where numeric enums are not confirmed to be supported (except in PHP and Java) PiperOrigin-RevId: 493113566 Source-Link: https://github.com/googleapis/googleapis/commit/758f0d1217d9c7fe398aa5efb1057ce4b6409e55 Source-Link: https://github.com/googleapis/googleapis-gen/commit/78bd8f05e1276363eb14eae70e91fe4bc20703ab Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzhiZDhmMDVlMTI3NjM2M2ViMTRlYWU3MGU5MWZlNGJjMjA3MDNhYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(pubsub): remove extraneous ctype field annotations PiperOrigin-RevId: 496666857 Source-Link: https://github.com/googleapis/googleapis/commit/bc27df2b63e5fd03e85dbcdc3480fed38bea6d36 Source-Link: https://github.com/googleapis/googleapis-gen/commit/941b568027b145bfb540e8ee1df4d4ccd44977fc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTQxYjU2ODAyN2IxNDViZmI1NDBlOGVlMWRmNGQ0Y2NkNDQ5NzdmYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: regenerate API index Source-Link: https://github.com/googleapis/googleapis/commit/b84b4fe3d9ad3ef8c06aaa00114f53061169c531 Source-Link: https://github.com/googleapis/googleapis-gen/commit/916424c97215b12211037b5057b833447d073bbd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTE2NDI0Yzk3MjE1YjEyMjExMDM3YjUwNTdiODMzNDQ3ZDA3M2JiZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add schema evolution methods and fields PiperOrigin-RevId: 500819578 Source-Link: https://github.com/googleapis/googleapis/commit/05a375f20b0e76e0106990aa9fadab98498dbea0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/303c9592c498dc02432daa29acb46d67decfb0c2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzAzYzk1OTJjNDk4ZGMwMjQzMmRhYTI5YWNiNDZkNjdkZWNmYjBjMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Lawrence Qiu Co-authored-by: Kamal Aboul-Hosn --- java-pubsub/README.md | 6 +- .../cloud/pubsub/v1/SchemaServiceClient.java | 628 +++++++++- .../pubsub/v1/SchemaServiceSettings.java | 58 +- .../pubsub/v1/SubscriptionAdminClient.java | 5 +- .../cloud/pubsub/v1/TopicAdminClient.java | 6 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 5 +- .../cloud/pubsub/v1/gapic_metadata.json | 12 + .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 141 +++ .../pubsub/v1/stub/HttpJsonPublisherStub.java | 22 +- .../v1/stub/HttpJsonSchemaServiceStub.java | 253 +++- .../v1/stub/HttpJsonSubscriberStub.java | 40 +- .../pubsub/v1/stub/PublisherStubSettings.java | 5 +- .../pubsub/v1/stub/SchemaServiceStub.java | 28 + .../v1/stub/SchemaServiceStubSettings.java | 175 ++- .../pubsub/v1/MockSchemaServiceImpl.java | 89 ++ .../v1/SchemaServiceClientHttpJsonTest.java | 405 ++++++ .../pubsub/v1/SchemaServiceClientTest.java | 369 ++++++ .../google/pubsub/v1/SchemaServiceGrpc.java | 461 ++++++- .../com/google/pubsub/v1/BigQueryConfig.java | 28 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 8 +- .../google/pubsub/v1/CommitSchemaRequest.java | 892 +++++++++++++ .../v1/CommitSchemaRequestOrBuilder.java | 91 ++ .../v1/DeleteSchemaRevisionRequest.java | 835 +++++++++++++ .../DeleteSchemaRevisionRequestOrBuilder.java | 87 ++ .../google/pubsub/v1/GetSchemaRequest.java | 21 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 6 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 1066 ++++++++++++++++ .../ListSchemaRevisionsRequestOrBuilder.java | 123 ++ .../v1/ListSchemaRevisionsResponse.java | 1104 +++++++++++++++++ .../ListSchemaRevisionsResponseOrBuilder.java | 103 ++ .../com/google/pubsub/v1/PubsubProto.java | 595 ++++----- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../pubsub/v1/RollbackSchemaRequest.java | 820 ++++++++++++ .../v1/RollbackSchemaRequestOrBuilder.java | 83 ++ .../java/com/google/pubsub/v1/Schema.java | 484 ++++++++ .../com/google/pubsub/v1/SchemaOrBuilder.java | 70 ++ .../com/google/pubsub/v1/SchemaProto.java | 242 ++-- .../com/google/pubsub/v1/SchemaSettings.java | 384 ++++++ .../pubsub/v1/SchemaSettingsOrBuilder.java | 58 + .../pubsub/v1/StreamingPullResponse.java | 170 +-- .../com/google/pubsub/v1/Subscription.java | 28 +- .../pubsub/v1/SubscriptionOrBuilder.java | 8 +- .../main/proto/google/pubsub/v1/pubsub.proto | 28 +- .../main/proto/google/pubsub/v1/schema.proto | 154 ++- 45 files changed, 9623 insertions(+), 583 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ff71d5c5979f..1095d02e6503 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,20 +51,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.1.5') +implementation platform('com.google.cloud:libraries-bom:26.3.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.122.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.122.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.122.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.122.2" ``` ## Authentication diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 475877648dac..2444f6b81a58 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -33,12 +33,17 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; +import com.google.pubsub.v1.CommitSchemaRequest; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRevisionRequest; import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemaRevisionsRequest; +import com.google.pubsub.v1.ListSchemaRevisionsResponse; import com.google.pubsub.v1.ListSchemasRequest; import com.google.pubsub.v1.ListSchemasResponse; import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.RollbackSchemaRequest; import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.SchemaName; import com.google.pubsub.v1.ValidateMessageRequest; @@ -135,10 +140,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * SchemaServiceSettings schemaServiceSettings = - * SchemaServiceSettings.newBuilder() - * .setTransportChannelProvider( - * SchemaServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * SchemaServiceSettings.newHttpJsonBuilder().build(); * SchemaServiceClient schemaServiceClient = SchemaServiceClient.create(schemaServiceSettings); * }
    * @@ -613,6 +615,544 @@ public final UnaryCallable listSchemasC return stub.listSchemasCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all schema revisions for the named schema. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   for (Schema element : schemaServiceClient.listSchemaRevisions(name).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param name Required. The name of the schema to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSchemaRevisionsPagedResponse listSchemaRevisions(SchemaName name) { + ListSchemaRevisionsRequest request = + ListSchemaRevisionsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return listSchemaRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all schema revisions for the named schema. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    +   *   for (Schema element : schemaServiceClient.listSchemaRevisions(name).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param name Required. The name of the schema to list revisions for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSchemaRevisionsPagedResponse listSchemaRevisions(String name) { + ListSchemaRevisionsRequest request = + ListSchemaRevisionsRequest.newBuilder().setName(name).build(); + return listSchemaRevisions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all schema revisions for the named schema. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ListSchemaRevisionsRequest request =
    +   *       ListSchemaRevisionsRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setView(SchemaView.forNumber(0))
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (Schema element : schemaServiceClient.listSchemaRevisions(request).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSchemaRevisionsPagedResponse listSchemaRevisions( + ListSchemaRevisionsRequest request) { + return listSchemaRevisionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all schema revisions for the named schema. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ListSchemaRevisionsRequest request =
    +   *       ListSchemaRevisionsRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setView(SchemaView.forNumber(0))
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       schemaServiceClient.listSchemaRevisionsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (Schema element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listSchemaRevisionsPagedCallable() { + return stub.listSchemaRevisionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all schema revisions for the named schema. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   ListSchemaRevisionsRequest request =
    +   *       ListSchemaRevisionsRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setView(SchemaView.forNumber(0))
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListSchemaRevisionsResponse response =
    +   *         schemaServiceClient.listSchemaRevisionsCallable().call(request);
    +   *     for (Schema element : response.getSchemasList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listSchemaRevisionsCallable() { + return stub.listSchemaRevisionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Commits a new schema revision to an existing schema. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   Schema schema = Schema.newBuilder().build();
    +   *   Schema response = schemaServiceClient.commitSchema(name, schema);
    +   * }
    +   * }
    + * + * @param name Required. The name of the schema we are revising. Format is + * `projects/{project}/schemas/{schema}`. + * @param schema Required. The schema revision to commit. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema commitSchema(SchemaName name, Schema schema) { + CommitSchemaRequest request = + CommitSchemaRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setSchema(schema) + .build(); + return commitSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Commits a new schema revision to an existing schema. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    +   *   Schema schema = Schema.newBuilder().build();
    +   *   Schema response = schemaServiceClient.commitSchema(name, schema);
    +   * }
    +   * }
    + * + * @param name Required. The name of the schema we are revising. Format is + * `projects/{project}/schemas/{schema}`. + * @param schema Required. The schema revision to commit. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema commitSchema(String name, Schema schema) { + CommitSchemaRequest request = + CommitSchemaRequest.newBuilder().setName(name).setSchema(schema).build(); + return commitSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Commits a new schema revision to an existing schema. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   CommitSchemaRequest request =
    +   *       CommitSchemaRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setSchema(Schema.newBuilder().build())
    +   *           .build();
    +   *   Schema response = schemaServiceClient.commitSchema(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema commitSchema(CommitSchemaRequest request) { + return commitSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Commits a new schema revision to an existing schema. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   CommitSchemaRequest request =
    +   *       CommitSchemaRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setSchema(Schema.newBuilder().build())
    +   *           .build();
    +   *   ApiFuture future = schemaServiceClient.commitSchemaCallable().futureCall(request);
    +   *   // Do something.
    +   *   Schema response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable commitSchemaCallable() { + return stub.commitSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new schema revision that is a copy of the provided revision_id. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   String revisionId = "revisionId-1507445162";
    +   *   Schema response = schemaServiceClient.rollbackSchema(name, revisionId);
    +   * }
    +   * }
    + * + * @param name Required. The schema being rolled back with revision id. + * @param revisionId Required. The revision ID to roll back to. It must be a revision of the same + * schema. + *

    Example: c7cfa2a8 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema rollbackSchema(SchemaName name, String revisionId) { + RollbackSchemaRequest request = + RollbackSchemaRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRevisionId(revisionId) + .build(); + return rollbackSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new schema revision that is a copy of the provided revision_id. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    +   *   String revisionId = "revisionId-1507445162";
    +   *   Schema response = schemaServiceClient.rollbackSchema(name, revisionId);
    +   * }
    +   * }
    + * + * @param name Required. The schema being rolled back with revision id. + * @param revisionId Required. The revision ID to roll back to. It must be a revision of the same + * schema. + *

    Example: c7cfa2a8 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema rollbackSchema(String name, String revisionId) { + RollbackSchemaRequest request = + RollbackSchemaRequest.newBuilder().setName(name).setRevisionId(revisionId).build(); + return rollbackSchema(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new schema revision that is a copy of the provided revision_id. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   RollbackSchemaRequest request =
    +   *       RollbackSchemaRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setRevisionId("revisionId-1507445162")
    +   *           .build();
    +   *   Schema response = schemaServiceClient.rollbackSchema(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema rollbackSchema(RollbackSchemaRequest request) { + return rollbackSchemaCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new schema revision that is a copy of the provided revision_id. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   RollbackSchemaRequest request =
    +   *       RollbackSchemaRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setRevisionId("revisionId-1507445162")
    +   *           .build();
    +   *   ApiFuture future = schemaServiceClient.rollbackSchemaCallable().futureCall(request);
    +   *   // Do something.
    +   *   Schema response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable rollbackSchemaCallable() { + return stub.rollbackSchemaCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific schema revision. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]");
    +   *   String revisionId = "revisionId-1507445162";
    +   *   Schema response = schemaServiceClient.deleteSchemaRevision(name, revisionId);
    +   * }
    +   * }
    + * + * @param name Required. The name of the schema revision to be deleted, with a revision ID + * explicitly included. + *

    Example: projects/123/schemas/my-schema{@literal @}c7cfa2a8 + * @param revisionId Required. The revision ID to roll back to. It must be a revision of the same + * schema. + *

    Example: c7cfa2a8 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema deleteSchemaRevision(SchemaName name, String revisionId) { + DeleteSchemaRevisionRequest request = + DeleteSchemaRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setRevisionId(revisionId) + .build(); + return deleteSchemaRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific schema revision. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   String name = SchemaName.of("[PROJECT]", "[SCHEMA]").toString();
    +   *   String revisionId = "revisionId-1507445162";
    +   *   Schema response = schemaServiceClient.deleteSchemaRevision(name, revisionId);
    +   * }
    +   * }
    + * + * @param name Required. The name of the schema revision to be deleted, with a revision ID + * explicitly included. + *

    Example: projects/123/schemas/my-schema{@literal @}c7cfa2a8 + * @param revisionId Required. The revision ID to roll back to. It must be a revision of the same + * schema. + *

    Example: c7cfa2a8 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema deleteSchemaRevision(String name, String revisionId) { + DeleteSchemaRevisionRequest request = + DeleteSchemaRevisionRequest.newBuilder().setName(name).setRevisionId(revisionId).build(); + return deleteSchemaRevision(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific schema revision. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   DeleteSchemaRevisionRequest request =
    +   *       DeleteSchemaRevisionRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setRevisionId("revisionId-1507445162")
    +   *           .build();
    +   *   Schema response = schemaServiceClient.deleteSchemaRevision(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Schema deleteSchemaRevision(DeleteSchemaRevisionRequest request) { + return deleteSchemaRevisionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific schema revision. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) {
    +   *   DeleteSchemaRevisionRequest request =
    +   *       DeleteSchemaRevisionRequest.newBuilder()
    +   *           .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString())
    +   *           .setRevisionId("revisionId-1507445162")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       schemaServiceClient.deleteSchemaRevisionCallable().futureCall(request);
    +   *   // Do something.
    +   *   Schema response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable deleteSchemaRevisionCallable() { + return stub.deleteSchemaRevisionCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a schema. @@ -1199,4 +1739,84 @@ protected ListSchemasFixedSizeCollection createCollection( return new ListSchemasFixedSizeCollection(pages, collectionSize); } } + + public static class ListSchemaRevisionsPagedResponse + extends AbstractPagedListResponse< + ListSchemaRevisionsRequest, + ListSchemaRevisionsResponse, + Schema, + ListSchemaRevisionsPage, + ListSchemaRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSchemaRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSchemaRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSchemaRevisionsPagedResponse(ListSchemaRevisionsPage page) { + super(page, ListSchemaRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSchemaRevisionsPage + extends AbstractPage< + ListSchemaRevisionsRequest, + ListSchemaRevisionsResponse, + Schema, + ListSchemaRevisionsPage> { + + private ListSchemaRevisionsPage( + PageContext context, + ListSchemaRevisionsResponse response) { + super(context, response); + } + + private static ListSchemaRevisionsPage createEmptyPage() { + return new ListSchemaRevisionsPage(null, null); + } + + @Override + protected ListSchemaRevisionsPage createPage( + PageContext context, + ListSchemaRevisionsResponse response) { + return new ListSchemaRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSchemaRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSchemaRevisionsRequest, + ListSchemaRevisionsResponse, + Schema, + ListSchemaRevisionsPage, + ListSchemaRevisionsFixedSizeCollection> { + + private ListSchemaRevisionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSchemaRevisionsFixedSizeCollection createEmptyCollection() { + return new ListSchemaRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListSchemaRevisionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSchemaRevisionsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 4d13f3660639..e01dbf09c421 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1; +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPagedResponse; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; import com.google.api.core.ApiFunction; @@ -37,11 +38,16 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; +import com.google.pubsub.v1.CommitSchemaRequest; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRevisionRequest; import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemaRevisionsRequest; +import com.google.pubsub.v1.ListSchemaRevisionsResponse; import com.google.pubsub.v1.ListSchemasRequest; import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.RollbackSchemaRequest; import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.ValidateMessageRequest; import com.google.pubsub.v1.ValidateMessageResponse; @@ -78,7 +84,10 @@ * schemaServiceSettingsBuilder * .createSchemaSettings() * .setRetrySettings( - * schemaServiceSettingsBuilder.createSchemaSettings().getRetrySettings().toBuilder() + * schemaServiceSettingsBuilder + * .createSchemaSettings() + * .getRetrySettings() + * .toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build(); @@ -103,6 +112,28 @@ public UnaryCallSettings getSchemaSettings() { return ((SchemaServiceStubSettings) getStubSettings()).listSchemasSettings(); } + /** Returns the object with the settings used for calls to listSchemaRevisions. */ + public PagedCallSettings< + ListSchemaRevisionsRequest, ListSchemaRevisionsResponse, ListSchemaRevisionsPagedResponse> + listSchemaRevisionsSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).listSchemaRevisionsSettings(); + } + + /** Returns the object with the settings used for calls to commitSchema. */ + public UnaryCallSettings commitSchemaSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).commitSchemaSettings(); + } + + /** Returns the object with the settings used for calls to rollbackSchema. */ + public UnaryCallSettings rollbackSchemaSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).rollbackSchemaSettings(); + } + + /** Returns the object with the settings used for calls to deleteSchemaRevision. */ + public UnaryCallSettings deleteSchemaRevisionSettings() { + return ((SchemaServiceStubSettings) getStubSettings()).deleteSchemaRevisionSettings(); + } + /** Returns the object with the settings used for calls to deleteSchema. */ public UnaryCallSettings deleteSchemaSettings() { return ((SchemaServiceStubSettings) getStubSettings()).deleteSchemaSettings(); @@ -267,6 +298,31 @@ public UnaryCallSettings.Builder getSchemaSettings() { return getStubSettingsBuilder().listSchemasSettings(); } + /** Returns the builder for the settings used for calls to listSchemaRevisions. */ + public PagedCallSettings.Builder< + ListSchemaRevisionsRequest, + ListSchemaRevisionsResponse, + ListSchemaRevisionsPagedResponse> + listSchemaRevisionsSettings() { + return getStubSettingsBuilder().listSchemaRevisionsSettings(); + } + + /** Returns the builder for the settings used for calls to commitSchema. */ + public UnaryCallSettings.Builder commitSchemaSettings() { + return getStubSettingsBuilder().commitSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to rollbackSchema. */ + public UnaryCallSettings.Builder rollbackSchemaSettings() { + return getStubSettingsBuilder().rollbackSchemaSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSchemaRevision. */ + public UnaryCallSettings.Builder + deleteSchemaRevisionSettings() { + return getStubSettingsBuilder().deleteSchemaRevisionSettings(); + } + /** Returns the builder for the settings used for calls to deleteSchema. */ public UnaryCallSettings.Builder deleteSchemaSettings() { return getStubSettingsBuilder().deleteSchemaSettings(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 4370109a2b84..74157333a8d2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -161,10 +161,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * SubscriptionAdminSettings subscriptionAdminSettings = - * SubscriptionAdminSettings.newBuilder() - * .setTransportChannelProvider( - * SubscriptionAdminSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * SubscriptionAdminSettings.newHttpJsonBuilder().build(); * SubscriptionAdminClient subscriptionAdminClient = * SubscriptionAdminClient.create(subscriptionAdminSettings); * }
    diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 8d9b5f91b88d..7a39d7bd627c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -139,11 +139,7 @@ * // - It may require correct/in-range values for request initialization. * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - * TopicAdminSettings topicAdminSettings = - * TopicAdminSettings.newBuilder() - * .setTransportChannelProvider( - * TopicAdminSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * TopicAdminSettings topicAdminSettings = TopicAdminSettings.newHttpJsonBuilder().build(); * TopicAdminClient topicAdminClient = TopicAdminClient.create(topicAdminSettings); * }
    * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index adc9e92c555d..b18ecf1ca44f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -85,7 +85,10 @@ * topicAdminSettingsBuilder * .createTopicSettings() * .setRetrySettings( - * topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder() + * topicAdminSettingsBuilder + * .createTopicSettings() + * .getRetrySettings() + * .toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json index 8efac12d0140..ff5a589d6e07 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json @@ -121,21 +121,33 @@ "grpc": { "libraryClient": "SchemaServiceClient", "rpcs": { + "CommitSchema": { + "methods": ["commitSchema", "commitSchema", "commitSchema", "commitSchemaCallable"] + }, "CreateSchema": { "methods": ["createSchema", "createSchema", "createSchema", "createSchemaCallable"] }, "DeleteSchema": { "methods": ["deleteSchema", "deleteSchema", "deleteSchema", "deleteSchemaCallable"] }, + "DeleteSchemaRevision": { + "methods": ["deleteSchemaRevision", "deleteSchemaRevision", "deleteSchemaRevision", "deleteSchemaRevisionCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, "GetSchema": { "methods": ["getSchema", "getSchema", "getSchema", "getSchemaCallable"] }, + "ListSchemaRevisions": { + "methods": ["listSchemaRevisions", "listSchemaRevisions", "listSchemaRevisions", "listSchemaRevisionsPagedCallable", "listSchemaRevisionsCallable"] + }, "ListSchemas": { "methods": ["listSchemas", "listSchemas", "listSchemas", "listSchemasPagedCallable", "listSchemasCallable"] }, + "RollbackSchema": { + "methods": ["rollbackSchema", "rollbackSchema", "rollbackSchema", "rollbackSchemaCallable"] + }, "SetIamPolicy": { "methods": ["setIamPolicy", "setIamPolicyCallable"] }, diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index 4d06023b7941..aa4a91eb264f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1.stub; +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPagedResponse; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -32,11 +33,16 @@ import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; +import com.google.pubsub.v1.CommitSchemaRequest; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRevisionRequest; import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemaRevisionsRequest; +import com.google.pubsub.v1.ListSchemaRevisionsResponse; import com.google.pubsub.v1.ListSchemasRequest; import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.RollbackSchemaRequest; import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.ValidateMessageRequest; import com.google.pubsub.v1.ValidateMessageResponse; @@ -82,6 +88,45 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { ProtoUtils.marshaller(ListSchemasResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + listSchemaRevisionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.SchemaService/ListSchemaRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSchemaRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSchemaRevisionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor commitSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.SchemaService/CommitSchema") + .setRequestMarshaller(ProtoUtils.marshaller(CommitSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + rollbackSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.SchemaService/RollbackSchema") + .setRequestMarshaller( + ProtoUtils.marshaller(RollbackSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSchemaRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.pubsub.v1.SchemaService/DeleteSchemaRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSchemaRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .build(); + private static final MethodDescriptor deleteSchemaMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -144,6 +189,13 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { private final UnaryCallable listSchemasCallable; private final UnaryCallable listSchemasPagedCallable; + private final UnaryCallable + listSchemaRevisionsCallable; + private final UnaryCallable + listSchemaRevisionsPagedCallable; + private final UnaryCallable commitSchemaCallable; + private final UnaryCallable rollbackSchemaCallable; + private final UnaryCallable deleteSchemaRevisionCallable; private final UnaryCallable deleteSchemaCallable; private final UnaryCallable validateSchemaCallable; private final UnaryCallable @@ -225,6 +277,47 @@ protected GrpcSchemaServiceStub( return params.build(); }) .build(); + GrpcCallSettings + listSchemaRevisionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSchemaRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings commitSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(commitSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings rollbackSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(rollbackSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteSchemaRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSchemaRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings deleteSchemaTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSchemaMethodDescriptor) @@ -301,6 +394,27 @@ protected GrpcSchemaServiceStub( this.listSchemasPagedCallable = callableFactory.createPagedCallable( listSchemasTransportSettings, settings.listSchemasSettings(), clientContext); + this.listSchemaRevisionsCallable = + callableFactory.createUnaryCallable( + listSchemaRevisionsTransportSettings, + settings.listSchemaRevisionsSettings(), + clientContext); + this.listSchemaRevisionsPagedCallable = + callableFactory.createPagedCallable( + listSchemaRevisionsTransportSettings, + settings.listSchemaRevisionsSettings(), + clientContext); + this.commitSchemaCallable = + callableFactory.createUnaryCallable( + commitSchemaTransportSettings, settings.commitSchemaSettings(), clientContext); + this.rollbackSchemaCallable = + callableFactory.createUnaryCallable( + rollbackSchemaTransportSettings, settings.rollbackSchemaSettings(), clientContext); + this.deleteSchemaRevisionCallable = + callableFactory.createUnaryCallable( + deleteSchemaRevisionTransportSettings, + settings.deleteSchemaRevisionSettings(), + clientContext); this.deleteSchemaCallable = callableFactory.createUnaryCallable( deleteSchemaTransportSettings, settings.deleteSchemaSettings(), clientContext); @@ -350,6 +464,33 @@ public UnaryCallable listSchemasPa return listSchemasPagedCallable; } + @Override + public UnaryCallable + listSchemaRevisionsCallable() { + return listSchemaRevisionsCallable; + } + + @Override + public UnaryCallable + listSchemaRevisionsPagedCallable() { + return listSchemaRevisionsPagedCallable; + } + + @Override + public UnaryCallable commitSchemaCallable() { + return commitSchemaCallable; + } + + @Override + public UnaryCallable rollbackSchemaCallable() { + return rollbackSchemaCallable; + } + + @Override + public UnaryCallable deleteSchemaRevisionCallable() { + return deleteSchemaRevisionCallable; + } + @Override public UnaryCallable deleteSchemaCallable() { return deleteSchemaCallable; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java index 2e42c14c7aa6..f7a458447ba1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java @@ -91,12 +91,13 @@ public class HttpJsonPublisherStub extends PublisherStub { request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) + .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -126,12 +127,13 @@ public class HttpJsonPublisherStub extends PublisherStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), false)) + .toBody("*", request.toBuilder().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -162,12 +164,13 @@ public class HttpJsonPublisherStub extends PublisherStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearTopic().build(), false)) + .toBody("*", request.toBuilder().clearTopic().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -197,6 +200,7 @@ public class HttpJsonPublisherStub extends PublisherStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -232,6 +236,7 @@ public class HttpJsonPublisherStub extends PublisherStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -269,6 +274,7 @@ public class HttpJsonPublisherStub extends PublisherStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -304,6 +310,7 @@ public class HttpJsonPublisherStub extends PublisherStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -336,6 +343,7 @@ public class HttpJsonPublisherStub extends PublisherStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -370,6 +378,7 @@ public class HttpJsonPublisherStub extends PublisherStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -407,12 +416,13 @@ public class HttpJsonPublisherStub extends PublisherStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) + .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -447,6 +457,7 @@ public class HttpJsonPublisherStub extends PublisherStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -484,12 +495,13 @@ public class HttpJsonPublisherStub extends PublisherStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) + .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java index 5112de2e57a3..c3a607bf6df4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1.stub; +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPagedResponse; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; import com.google.api.core.BetaApi; @@ -37,11 +38,16 @@ import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; +import com.google.pubsub.v1.CommitSchemaRequest; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRevisionRequest; import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemaRevisionsRequest; +import com.google.pubsub.v1.ListSchemaRevisionsResponse; import com.google.pubsub.v1.ListSchemasRequest; import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.RollbackSchemaRequest; import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.ValidateMessageRequest; import com.google.pubsub.v1.ValidateMessageResponse; @@ -89,12 +95,13 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "schemaId", request.getSchemaId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("schema", request.getSchema(), false)) + .toBody("schema", request.getSchema(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -125,6 +132,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -161,6 +169,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -172,6 +181,152 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + listSchemaRevisionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.SchemaService/ListSchemaRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/schemas/*}:listRevisions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSchemaRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + commitSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.SchemaService/CommitSchema") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/schemas/*}:commit", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Schema.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + rollbackSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.SchemaService/RollbackSchema") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/schemas/*}:rollback", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Schema.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteSchemaRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.pubsub.v1.SchemaService/DeleteSchemaRevision") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/schemas/*}:deleteRevision", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "revisionId", request.getRevisionId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Schema.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor deleteSchemaMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -194,6 +349,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -227,12 +383,13 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) + .toBody("*", request.toBuilder().clearParent().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -263,12 +420,13 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) + .toBody("*", request.toBuilder().clearParent().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -303,12 +461,13 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) + .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -343,6 +502,7 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -380,12 +540,13 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) + .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -399,6 +560,13 @@ public class HttpJsonSchemaServiceStub extends SchemaServiceStub { private final UnaryCallable listSchemasCallable; private final UnaryCallable listSchemasPagedCallable; + private final UnaryCallable + listSchemaRevisionsCallable; + private final UnaryCallable + listSchemaRevisionsPagedCallable; + private final UnaryCallable commitSchemaCallable; + private final UnaryCallable rollbackSchemaCallable; + private final UnaryCallable deleteSchemaRevisionCallable; private final UnaryCallable deleteSchemaCallable; private final UnaryCallable validateSchemaCallable; private final UnaryCallable @@ -465,6 +633,29 @@ protected HttpJsonSchemaServiceStub( .setMethodDescriptor(listSchemasMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + listSchemaRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listSchemaRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings commitSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(commitSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings rollbackSchemaTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(rollbackSchemaMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteSchemaRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSchemaRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings deleteSchemaTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteSchemaMethodDescriptor) @@ -511,6 +702,27 @@ protected HttpJsonSchemaServiceStub( this.listSchemasPagedCallable = callableFactory.createPagedCallable( listSchemasTransportSettings, settings.listSchemasSettings(), clientContext); + this.listSchemaRevisionsCallable = + callableFactory.createUnaryCallable( + listSchemaRevisionsTransportSettings, + settings.listSchemaRevisionsSettings(), + clientContext); + this.listSchemaRevisionsPagedCallable = + callableFactory.createPagedCallable( + listSchemaRevisionsTransportSettings, + settings.listSchemaRevisionsSettings(), + clientContext); + this.commitSchemaCallable = + callableFactory.createUnaryCallable( + commitSchemaTransportSettings, settings.commitSchemaSettings(), clientContext); + this.rollbackSchemaCallable = + callableFactory.createUnaryCallable( + rollbackSchemaTransportSettings, settings.rollbackSchemaSettings(), clientContext); + this.deleteSchemaRevisionCallable = + callableFactory.createUnaryCallable( + deleteSchemaRevisionTransportSettings, + settings.deleteSchemaRevisionSettings(), + clientContext); this.deleteSchemaCallable = callableFactory.createUnaryCallable( deleteSchemaTransportSettings, settings.deleteSchemaSettings(), clientContext); @@ -542,6 +754,10 @@ public static List getMethodDescriptors() { methodDescriptors.add(createSchemaMethodDescriptor); methodDescriptors.add(getSchemaMethodDescriptor); methodDescriptors.add(listSchemasMethodDescriptor); + methodDescriptors.add(listSchemaRevisionsMethodDescriptor); + methodDescriptors.add(commitSchemaMethodDescriptor); + methodDescriptors.add(rollbackSchemaMethodDescriptor); + methodDescriptors.add(deleteSchemaRevisionMethodDescriptor); methodDescriptors.add(deleteSchemaMethodDescriptor); methodDescriptors.add(validateSchemaMethodDescriptor); methodDescriptors.add(validateMessageMethodDescriptor); @@ -571,6 +787,33 @@ public UnaryCallable listSchemasPa return listSchemasPagedCallable; } + @Override + public UnaryCallable + listSchemaRevisionsCallable() { + return listSchemaRevisionsCallable; + } + + @Override + public UnaryCallable + listSchemaRevisionsPagedCallable() { + return listSchemaRevisionsPagedCallable; + } + + @Override + public UnaryCallable commitSchemaCallable() { + return commitSchemaCallable; + } + + @Override + public UnaryCallable rollbackSchemaCallable() { + return rollbackSchemaCallable; + } + + @Override + public UnaryCallable deleteSchemaRevisionCallable() { + return deleteSchemaRevisionCallable; + } + @Override public UnaryCallable deleteSchemaCallable() { return deleteSchemaCallable; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index 49546ad5d083..fb9b368a8f6b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -99,12 +99,13 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) + .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -136,6 +137,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -170,12 +172,13 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), false)) + .toBody("*", request.toBuilder().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -208,6 +211,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -242,6 +246,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -276,13 +281,14 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody( - "*", request.toBuilder().clearSubscription().build(), false)) + "*", request.toBuilder().clearSubscription().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -312,12 +318,13 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearSubscription().build(), false)) + .toBody("*", request.toBuilder().clearSubscription().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -345,12 +352,13 @@ public class HttpJsonSubscriberStub extends SubscriberStub { request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearSubscription().build(), false)) + .toBody("*", request.toBuilder().clearSubscription().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -382,13 +390,14 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody( - "*", request.toBuilder().clearSubscription().build(), false)) + "*", request.toBuilder().clearSubscription().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -419,6 +428,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -454,6 +464,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -487,12 +498,13 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) + .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -524,12 +536,13 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), false)) + .toBody("*", request.toBuilder().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -560,6 +573,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -590,12 +604,13 @@ public class HttpJsonSubscriberStub extends SubscriberStub { request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearSubscription().build(), false)) + .toBody("*", request.toBuilder().clearSubscription().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -630,12 +645,13 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) + .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -670,6 +686,7 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) @@ -707,12 +724,13 @@ public class HttpJsonSubscriberStub extends SubscriberStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) + .toBody("*", request.toBuilder().clearResource().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 287162b9731e..c04234a61296 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -111,7 +111,10 @@ * topicAdminSettingsBuilder * .createTopicSettings() * .setRetrySettings( - * topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder() + * topicAdminSettingsBuilder + * .createTopicSettings() + * .getRetrySettings() + * .toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java index 47aac9109bb8..01446db220e0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1.stub; +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPagedResponse; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; import com.google.api.gax.core.BackgroundResource; @@ -26,11 +27,16 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; +import com.google.pubsub.v1.CommitSchemaRequest; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRevisionRequest; import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemaRevisionsRequest; +import com.google.pubsub.v1.ListSchemaRevisionsResponse; import com.google.pubsub.v1.ListSchemasRequest; import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.RollbackSchemaRequest; import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.ValidateMessageRequest; import com.google.pubsub.v1.ValidateMessageResponse; @@ -63,6 +69,28 @@ public UnaryCallable listSchemasCallabl throw new UnsupportedOperationException("Not implemented: listSchemasCallable()"); } + public UnaryCallable + listSchemaRevisionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSchemaRevisionsPagedCallable()"); + } + + public UnaryCallable + listSchemaRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: listSchemaRevisionsCallable()"); + } + + public UnaryCallable commitSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: commitSchemaCallable()"); + } + + public UnaryCallable rollbackSchemaCallable() { + throw new UnsupportedOperationException("Not implemented: rollbackSchemaCallable()"); + } + + public UnaryCallable deleteSchemaRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSchemaRevisionCallable()"); + } + public UnaryCallable deleteSchemaCallable() { throw new UnsupportedOperationException("Not implemented: deleteSchemaCallable()"); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index ccf2d83bb0d7..240ca05d0e9f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1.stub; +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPagedResponse; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; import com.google.api.core.ApiFunction; @@ -53,11 +54,16 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; +import com.google.pubsub.v1.CommitSchemaRequest; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRevisionRequest; import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemaRevisionsRequest; +import com.google.pubsub.v1.ListSchemaRevisionsResponse; import com.google.pubsub.v1.ListSchemasRequest; import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.RollbackSchemaRequest; import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.ValidateMessageRequest; import com.google.pubsub.v1.ValidateMessageResponse; @@ -95,7 +101,10 @@ * schemaServiceSettingsBuilder * .createSchemaSettings() * .setRetrySettings( - * schemaServiceSettingsBuilder.createSchemaSettings().getRetrySettings().toBuilder() + * schemaServiceSettingsBuilder + * .createSchemaSettings() + * .getRetrySettings() + * .toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build(); @@ -114,6 +123,12 @@ public class SchemaServiceStubSettings extends StubSettings getSchemaSettings; private final PagedCallSettings listSchemasSettings; + private final PagedCallSettings< + ListSchemaRevisionsRequest, ListSchemaRevisionsResponse, ListSchemaRevisionsPagedResponse> + listSchemaRevisionsSettings; + private final UnaryCallSettings commitSchemaSettings; + private final UnaryCallSettings rollbackSchemaSettings; + private final UnaryCallSettings deleteSchemaRevisionSettings; private final UnaryCallSettings deleteSchemaSettings; private final UnaryCallSettings validateSchemaSettings; @@ -160,6 +175,46 @@ public Iterable extractResources(ListSchemasResponse payload) { } }; + private static final PagedListDescriptor< + ListSchemaRevisionsRequest, ListSchemaRevisionsResponse, Schema> + LIST_SCHEMA_REVISIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListSchemaRevisionsRequest, ListSchemaRevisionsResponse, Schema>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSchemaRevisionsRequest injectToken( + ListSchemaRevisionsRequest payload, String token) { + return ListSchemaRevisionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSchemaRevisionsRequest injectPageSize( + ListSchemaRevisionsRequest payload, int pageSize) { + return ListSchemaRevisionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSchemaRevisionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSchemaRevisionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSchemaRevisionsResponse payload) { + return payload.getSchemasList() == null + ? ImmutableList.of() + : payload.getSchemasList(); + } + }; + private static final PagedListResponseFactory< ListSchemasRequest, ListSchemasResponse, ListSchemasPagedResponse> LIST_SCHEMAS_PAGE_STR_FACT = @@ -177,6 +232,27 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListSchemaRevisionsRequest, ListSchemaRevisionsResponse, ListSchemaRevisionsPagedResponse> + LIST_SCHEMA_REVISIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSchemaRevisionsRequest, + ListSchemaRevisionsResponse, + ListSchemaRevisionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSchemaRevisionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SCHEMA_REVISIONS_PAGE_STR_DESC, request, context); + return ListSchemaRevisionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to createSchema. */ public UnaryCallSettings createSchemaSettings() { return createSchemaSettings; @@ -193,6 +269,28 @@ public UnaryCallSettings getSchemaSettings() { return listSchemasSettings; } + /** Returns the object with the settings used for calls to listSchemaRevisions. */ + public PagedCallSettings< + ListSchemaRevisionsRequest, ListSchemaRevisionsResponse, ListSchemaRevisionsPagedResponse> + listSchemaRevisionsSettings() { + return listSchemaRevisionsSettings; + } + + /** Returns the object with the settings used for calls to commitSchema. */ + public UnaryCallSettings commitSchemaSettings() { + return commitSchemaSettings; + } + + /** Returns the object with the settings used for calls to rollbackSchema. */ + public UnaryCallSettings rollbackSchemaSettings() { + return rollbackSchemaSettings; + } + + /** Returns the object with the settings used for calls to deleteSchemaRevision. */ + public UnaryCallSettings deleteSchemaRevisionSettings() { + return deleteSchemaRevisionSettings; + } + /** Returns the object with the settings used for calls to deleteSchema. */ public UnaryCallSettings deleteSchemaSettings() { return deleteSchemaSettings; @@ -334,6 +432,10 @@ protected SchemaServiceStubSettings(Builder settingsBuilder) throws IOException createSchemaSettings = settingsBuilder.createSchemaSettings().build(); getSchemaSettings = settingsBuilder.getSchemaSettings().build(); listSchemasSettings = settingsBuilder.listSchemasSettings().build(); + listSchemaRevisionsSettings = settingsBuilder.listSchemaRevisionsSettings().build(); + commitSchemaSettings = settingsBuilder.commitSchemaSettings().build(); + rollbackSchemaSettings = settingsBuilder.rollbackSchemaSettings().build(); + deleteSchemaRevisionSettings = settingsBuilder.deleteSchemaRevisionSettings().build(); deleteSchemaSettings = settingsBuilder.deleteSchemaSettings().build(); validateSchemaSettings = settingsBuilder.validateSchemaSettings().build(); validateMessageSettings = settingsBuilder.validateMessageSettings().build(); @@ -350,6 +452,15 @@ public static class Builder extends StubSettings.Builder listSchemasSettings; + private final PagedCallSettings.Builder< + ListSchemaRevisionsRequest, + ListSchemaRevisionsResponse, + ListSchemaRevisionsPagedResponse> + listSchemaRevisionsSettings; + private final UnaryCallSettings.Builder commitSchemaSettings; + private final UnaryCallSettings.Builder rollbackSchemaSettings; + private final UnaryCallSettings.Builder + deleteSchemaRevisionSettings; private final UnaryCallSettings.Builder deleteSchemaSettings; private final UnaryCallSettings.Builder validateSchemaSettings; @@ -389,6 +500,11 @@ protected Builder(ClientContext clientContext) { createSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listSchemasSettings = PagedCallSettings.newBuilder(LIST_SCHEMAS_PAGE_STR_FACT); + listSchemaRevisionsSettings = + PagedCallSettings.newBuilder(LIST_SCHEMA_REVISIONS_PAGE_STR_FACT); + commitSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + rollbackSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSchemaRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); validateSchemaSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); validateMessageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -401,6 +517,10 @@ protected Builder(ClientContext clientContext) { createSchemaSettings, getSchemaSettings, listSchemasSettings, + listSchemaRevisionsSettings, + commitSchemaSettings, + rollbackSchemaSettings, + deleteSchemaRevisionSettings, deleteSchemaSettings, validateSchemaSettings, validateMessageSettings, @@ -416,6 +536,10 @@ protected Builder(SchemaServiceStubSettings settings) { createSchemaSettings = settings.createSchemaSettings.toBuilder(); getSchemaSettings = settings.getSchemaSettings.toBuilder(); listSchemasSettings = settings.listSchemasSettings.toBuilder(); + listSchemaRevisionsSettings = settings.listSchemaRevisionsSettings.toBuilder(); + commitSchemaSettings = settings.commitSchemaSettings.toBuilder(); + rollbackSchemaSettings = settings.rollbackSchemaSettings.toBuilder(); + deleteSchemaRevisionSettings = settings.deleteSchemaRevisionSettings.toBuilder(); deleteSchemaSettings = settings.deleteSchemaSettings.toBuilder(); validateSchemaSettings = settings.validateSchemaSettings.toBuilder(); validateMessageSettings = settings.validateMessageSettings.toBuilder(); @@ -428,6 +552,10 @@ protected Builder(SchemaServiceStubSettings settings) { createSchemaSettings, getSchemaSettings, listSchemasSettings, + listSchemaRevisionsSettings, + commitSchemaSettings, + rollbackSchemaSettings, + deleteSchemaRevisionSettings, deleteSchemaSettings, validateSchemaSettings, validateMessageSettings, @@ -478,6 +606,26 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .listSchemaRevisionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .commitSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .rollbackSchemaSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteSchemaRevisionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteSchemaSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -543,6 +691,31 @@ public UnaryCallSettings.Builder getSchemaSettings() { return listSchemasSettings; } + /** Returns the builder for the settings used for calls to listSchemaRevisions. */ + public PagedCallSettings.Builder< + ListSchemaRevisionsRequest, + ListSchemaRevisionsResponse, + ListSchemaRevisionsPagedResponse> + listSchemaRevisionsSettings() { + return listSchemaRevisionsSettings; + } + + /** Returns the builder for the settings used for calls to commitSchema. */ + public UnaryCallSettings.Builder commitSchemaSettings() { + return commitSchemaSettings; + } + + /** Returns the builder for the settings used for calls to rollbackSchema. */ + public UnaryCallSettings.Builder rollbackSchemaSettings() { + return rollbackSchemaSettings; + } + + /** Returns the builder for the settings used for calls to deleteSchemaRevision. */ + public UnaryCallSettings.Builder + deleteSchemaRevisionSettings() { + return deleteSchemaRevisionSettings; + } + /** Returns the builder for the settings used for calls to deleteSchema. */ public UnaryCallSettings.Builder deleteSchemaSettings() { return deleteSchemaSettings; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java index 6124aab4d3c2..7f0464d47492 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -19,11 +19,16 @@ import com.google.api.core.BetaApi; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; +import com.google.pubsub.v1.CommitSchemaRequest; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRevisionRequest; import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemaRevisionsRequest; +import com.google.pubsub.v1.ListSchemaRevisionsResponse; import com.google.pubsub.v1.ListSchemasRequest; import com.google.pubsub.v1.ListSchemasResponse; +import com.google.pubsub.v1.RollbackSchemaRequest; import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.SchemaServiceGrpc.SchemaServiceImplBase; import com.google.pubsub.v1.ValidateMessageRequest; @@ -130,6 +135,90 @@ public void listSchemas( } } + @Override + public void listSchemaRevisions( + ListSchemaRevisionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSchemaRevisionsResponse) { + requests.add(request); + responseObserver.onNext(((ListSchemaRevisionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSchemaRevisions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSchemaRevisionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void commitSchema(CommitSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Schema) { + requests.add(request); + responseObserver.onNext(((Schema) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CommitSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Schema.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void rollbackSchema( + RollbackSchemaRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Schema) { + requests.add(request); + responseObserver.onNext(((Schema) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RollbackSchema, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Schema.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSchemaRevision( + DeleteSchemaRevisionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Schema) { + requests.add(request); + responseObserver.onNext(((Schema) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSchemaRevision, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Schema.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteSchema(DeleteSchemaRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java index c34c46f9de12..e3289e3c23bb 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1; +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPagedResponse; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -40,7 +41,9 @@ import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; import com.google.pubsub.v1.Encoding; +import com.google.pubsub.v1.ListSchemaRevisionsResponse; import com.google.pubsub.v1.ListSchemasResponse; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Schema; @@ -101,6 +104,8 @@ public void createSchemaTest() throws Exception { Schema.newBuilder() .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -150,6 +155,8 @@ public void createSchemaTest2() throws Exception { Schema.newBuilder() .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -199,6 +206,8 @@ public void getSchemaTest() throws Exception { Schema.newBuilder() .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -244,6 +253,8 @@ public void getSchemaTest2() throws Exception { Schema.newBuilder() .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -383,6 +394,400 @@ public void listSchemasExceptionTest2() throws Exception { } } + @Test + public void listSchemaRevisionsTest() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemaRevisionsResponse expectedResponse = + ListSchemaRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + + ListSchemaRevisionsPagedResponse pagedListResponse = client.listSchemaRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSchemaRevisionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + client.listSchemaRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSchemaRevisionsTest2() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemaRevisionsResponse expectedResponse = + ListSchemaRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5662/schemas/schema-5662"; + + ListSchemaRevisionsPagedResponse pagedListResponse = client.listSchemaRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSchemaRevisionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5662/schemas/schema-5662"; + client.listSchemaRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + Schema schema = Schema.newBuilder().build(); + + Schema actualResponse = client.commitSchema(name, schema); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void commitSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + Schema schema = Schema.newBuilder().build(); + client.commitSchema(name, schema); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5662/schemas/schema-5662"; + Schema schema = Schema.newBuilder().build(); + + Schema actualResponse = client.commitSchema(name, schema); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void commitSchemaExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5662/schemas/schema-5662"; + Schema schema = Schema.newBuilder().build(); + client.commitSchema(name, schema); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + String revisionId = "revisionId-1507445162"; + + Schema actualResponse = client.rollbackSchema(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rollbackSchemaExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + String revisionId = "revisionId-1507445162"; + client.rollbackSchema(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5662/schemas/schema-5662"; + String revisionId = "revisionId-1507445162"; + + Schema actualResponse = client.rollbackSchema(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rollbackSchemaExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5662/schemas/schema-5662"; + String revisionId = "revisionId-1507445162"; + client.rollbackSchema(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSchemaRevisionTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + String revisionId = "revisionId-1507445162"; + + Schema actualResponse = client.deleteSchemaRevision(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSchemaRevisionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + String revisionId = "revisionId-1507445162"; + client.deleteSchemaRevision(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSchemaRevisionTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5662/schemas/schema-5662"; + String revisionId = "revisionId-1507445162"; + + Schema actualResponse = client.deleteSchemaRevision(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSchemaRevisionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5662/schemas/schema-5662"; + String revisionId = "revisionId-1507445162"; + client.deleteSchemaRevision(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void deleteSchemaTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java index 60fadbced72b..aa234621f8a9 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1; +import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPagedResponse; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -38,13 +39,19 @@ import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.pubsub.v1.CommitSchemaRequest; import com.google.pubsub.v1.CreateSchemaRequest; import com.google.pubsub.v1.DeleteSchemaRequest; +import com.google.pubsub.v1.DeleteSchemaRevisionRequest; import com.google.pubsub.v1.Encoding; import com.google.pubsub.v1.GetSchemaRequest; +import com.google.pubsub.v1.ListSchemaRevisionsRequest; +import com.google.pubsub.v1.ListSchemaRevisionsResponse; import com.google.pubsub.v1.ListSchemasRequest; import com.google.pubsub.v1.ListSchemasResponse; import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.RollbackSchemaRequest; import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.SchemaName; import com.google.pubsub.v1.ValidateMessageRequest; @@ -112,6 +119,8 @@ public void createSchemaTest() throws Exception { Schema.newBuilder() .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) .build(); mockSchemaService.addResponse(expectedResponse); @@ -157,6 +166,8 @@ public void createSchemaTest2() throws Exception { Schema.newBuilder() .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) .build(); mockSchemaService.addResponse(expectedResponse); @@ -202,6 +213,8 @@ public void getSchemaTest() throws Exception { Schema.newBuilder() .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) .build(); mockSchemaService.addResponse(expectedResponse); @@ -241,6 +254,8 @@ public void getSchemaTest2() throws Exception { Schema.newBuilder() .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) .build(); mockSchemaService.addResponse(expectedResponse); @@ -362,6 +377,360 @@ public void listSchemasExceptionTest2() throws Exception { } } + @Test + public void listSchemaRevisionsTest() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemaRevisionsResponse expectedResponse = + ListSchemaRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockSchemaService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + + ListSchemaRevisionsPagedResponse pagedListResponse = client.listSchemaRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSchemaRevisionsRequest actualRequest = ((ListSchemaRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSchemaRevisionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + client.listSchemaRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSchemaRevisionsTest2() throws Exception { + Schema responsesElement = Schema.newBuilder().build(); + ListSchemaRevisionsResponse expectedResponse = + ListSchemaRevisionsResponse.newBuilder() + .setNextPageToken("") + .addAllSchemas(Arrays.asList(responsesElement)) + .build(); + mockSchemaService.addResponse(expectedResponse); + + String name = "name3373707"; + + ListSchemaRevisionsPagedResponse pagedListResponse = client.listSchemaRevisions(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSchemasList().get(0), resources.get(0)); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSchemaRevisionsRequest actualRequest = ((ListSchemaRevisionsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSchemaRevisionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + String name = "name3373707"; + client.listSchemaRevisions(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSchemaService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + Schema schema = Schema.newBuilder().build(); + + Schema actualResponse = client.commitSchema(name, schema); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitSchemaRequest actualRequest = ((CommitSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(schema, actualRequest.getSchema()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + Schema schema = Schema.newBuilder().build(); + client.commitSchema(name, schema); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void commitSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSchemaService.addResponse(expectedResponse); + + String name = "name3373707"; + Schema schema = Schema.newBuilder().build(); + + Schema actualResponse = client.commitSchema(name, schema); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CommitSchemaRequest actualRequest = ((CommitSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(schema, actualRequest.getSchema()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void commitSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + String name = "name3373707"; + Schema schema = Schema.newBuilder().build(); + client.commitSchema(name, schema); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackSchemaTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSchemaService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + String revisionId = "revisionId-1507445162"; + + Schema actualResponse = client.rollbackSchema(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RollbackSchemaRequest actualRequest = ((RollbackSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(revisionId, actualRequest.getRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rollbackSchemaExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + String revisionId = "revisionId-1507445162"; + client.rollbackSchema(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackSchemaTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSchemaService.addResponse(expectedResponse); + + String name = "name3373707"; + String revisionId = "revisionId-1507445162"; + + Schema actualResponse = client.rollbackSchema(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RollbackSchemaRequest actualRequest = ((RollbackSchemaRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(revisionId, actualRequest.getRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void rollbackSchemaExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + String name = "name3373707"; + String revisionId = "revisionId-1507445162"; + client.rollbackSchema(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSchemaRevisionTest() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSchemaService.addResponse(expectedResponse); + + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + String revisionId = "revisionId-1507445162"; + + Schema actualResponse = client.deleteSchemaRevision(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSchemaRevisionRequest actualRequest = + ((DeleteSchemaRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(revisionId, actualRequest.getRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSchemaRevisionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + SchemaName name = SchemaName.of("[PROJECT]", "[SCHEMA]"); + String revisionId = "revisionId-1507445162"; + client.deleteSchemaRevision(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSchemaRevisionTest2() throws Exception { + Schema expectedResponse = + Schema.newBuilder() + .setName(SchemaName.of("[PROJECT]", "[SCHEMA]").toString()) + .setDefinition("definition-1014418093") + .setRevisionId("revisionId-1507445162") + .setRevisionCreateTime(Timestamp.newBuilder().build()) + .build(); + mockSchemaService.addResponse(expectedResponse); + + String name = "name3373707"; + String revisionId = "revisionId-1507445162"; + + Schema actualResponse = client.deleteSchemaRevision(name, revisionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSchemaService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSchemaRevisionRequest actualRequest = + ((DeleteSchemaRevisionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(revisionId, actualRequest.getRevisionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSchemaRevisionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSchemaService.addException(exception); + + try { + String name = "name3373707"; + String revisionId = "revisionId-1507445162"; + client.deleteSchemaRevision(name, revisionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void deleteSchemaTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index c8061efe2c6d..9921f175e02d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -155,6 +155,180 @@ private SchemaServiceGrpc() {} return getListSchemasMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemaRevisionsRequest, + com.google.pubsub.v1.ListSchemaRevisionsResponse> + getListSchemaRevisionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSchemaRevisions", + requestType = com.google.pubsub.v1.ListSchemaRevisionsRequest.class, + responseType = com.google.pubsub.v1.ListSchemaRevisionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemaRevisionsRequest, + com.google.pubsub.v1.ListSchemaRevisionsResponse> + getListSchemaRevisionsMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.ListSchemaRevisionsRequest, + com.google.pubsub.v1.ListSchemaRevisionsResponse> + getListSchemaRevisionsMethod; + if ((getListSchemaRevisionsMethod = SchemaServiceGrpc.getListSchemaRevisionsMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getListSchemaRevisionsMethod = SchemaServiceGrpc.getListSchemaRevisionsMethod) + == null) { + SchemaServiceGrpc.getListSchemaRevisionsMethod = + getListSchemaRevisionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSchemaRevisions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSchemaRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.ListSchemaRevisionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("ListSchemaRevisions")) + .build(); + } + } + } + return getListSchemaRevisionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.CommitSchemaRequest, com.google.pubsub.v1.Schema> + getCommitSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CommitSchema", + requestType = com.google.pubsub.v1.CommitSchemaRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.CommitSchemaRequest, com.google.pubsub.v1.Schema> + getCommitSchemaMethod() { + io.grpc.MethodDescriptor + getCommitSchemaMethod; + if ((getCommitSchemaMethod = SchemaServiceGrpc.getCommitSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getCommitSchemaMethod = SchemaServiceGrpc.getCommitSchemaMethod) == null) { + SchemaServiceGrpc.getCommitSchemaMethod = + getCommitSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CommitSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.CommitSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("CommitSchema")) + .build(); + } + } + } + return getCommitSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.RollbackSchemaRequest, com.google.pubsub.v1.Schema> + getRollbackSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RollbackSchema", + requestType = com.google.pubsub.v1.RollbackSchemaRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.RollbackSchemaRequest, com.google.pubsub.v1.Schema> + getRollbackSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.RollbackSchemaRequest, com.google.pubsub.v1.Schema> + getRollbackSchemaMethod; + if ((getRollbackSchemaMethod = SchemaServiceGrpc.getRollbackSchemaMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getRollbackSchemaMethod = SchemaServiceGrpc.getRollbackSchemaMethod) == null) { + SchemaServiceGrpc.getRollbackSchemaMethod = + getRollbackSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RollbackSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.RollbackSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("RollbackSchema")) + .build(); + } + } + } + return getRollbackSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.pubsub.v1.DeleteSchemaRevisionRequest, com.google.pubsub.v1.Schema> + getDeleteSchemaRevisionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSchemaRevision", + requestType = com.google.pubsub.v1.DeleteSchemaRevisionRequest.class, + responseType = com.google.pubsub.v1.Schema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.pubsub.v1.DeleteSchemaRevisionRequest, com.google.pubsub.v1.Schema> + getDeleteSchemaRevisionMethod() { + io.grpc.MethodDescriptor< + com.google.pubsub.v1.DeleteSchemaRevisionRequest, com.google.pubsub.v1.Schema> + getDeleteSchemaRevisionMethod; + if ((getDeleteSchemaRevisionMethod = SchemaServiceGrpc.getDeleteSchemaRevisionMethod) == null) { + synchronized (SchemaServiceGrpc.class) { + if ((getDeleteSchemaRevisionMethod = SchemaServiceGrpc.getDeleteSchemaRevisionMethod) + == null) { + SchemaServiceGrpc.getDeleteSchemaRevisionMethod = + getDeleteSchemaRevisionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteSchemaRevision")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.DeleteSchemaRevisionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.pubsub.v1.Schema.getDefaultInstance())) + .setSchemaDescriptor( + new SchemaServiceMethodDescriptorSupplier("DeleteSchemaRevision")) + .build(); + } + } + } + return getDeleteSchemaRevisionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty> getDeleteSchemaMethod; @@ -371,6 +545,63 @@ public void listSchemas( getListSchemasMethod(), responseObserver); } + /** + * + * + *
    +     * Lists all schema revisions for the named schema.
    +     * 
    + */ + public void listSchemaRevisions( + com.google.pubsub.v1.ListSchemaRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSchemaRevisionsMethod(), responseObserver); + } + + /** + * + * + *
    +     * Commits a new schema revision to an existing schema.
    +     * 
    + */ + public void commitSchema( + com.google.pubsub.v1.CommitSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCommitSchemaMethod(), responseObserver); + } + + /** + * + * + *
    +     * Creates a new schema revision that is a copy of the provided revision_id.
    +     * 
    + */ + public void rollbackSchema( + com.google.pubsub.v1.RollbackSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRollbackSchemaMethod(), responseObserver); + } + + /** + * + * + *
    +     * Deletes a specific schema revision.
    +     * 
    + */ + public void deleteSchemaRevision( + com.google.pubsub.v1.DeleteSchemaRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSchemaRevisionMethod(), responseObserver); + } + /** * * @@ -435,6 +666,31 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse>(this, METHODID_LIST_SCHEMAS))) + .addMethod( + getListSchemaRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSchemaRevisionsRequest, + com.google.pubsub.v1.ListSchemaRevisionsResponse>( + this, METHODID_LIST_SCHEMA_REVISIONS))) + .addMethod( + getCommitSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CommitSchemaRequest, com.google.pubsub.v1.Schema>( + this, METHODID_COMMIT_SCHEMA))) + .addMethod( + getRollbackSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.RollbackSchemaRequest, com.google.pubsub.v1.Schema>( + this, METHODID_ROLLBACK_SCHEMA))) + .addMethod( + getDeleteSchemaRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSchemaRevisionRequest, + com.google.pubsub.v1.Schema>(this, METHODID_DELETE_SCHEMA_REVISION))) .addMethod( getDeleteSchemaMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -522,6 +778,71 @@ public void listSchemas( responseObserver); } + /** + * + * + *
    +     * Lists all schema revisions for the named schema.
    +     * 
    + */ + public void listSchemaRevisions( + com.google.pubsub.v1.ListSchemaRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSchemaRevisionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Commits a new schema revision to an existing schema.
    +     * 
    + */ + public void commitSchema( + com.google.pubsub.v1.CommitSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCommitSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Creates a new schema revision that is a copy of the provided revision_id.
    +     * 
    + */ + public void rollbackSchema( + com.google.pubsub.v1.RollbackSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRollbackSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Deletes a specific schema revision.
    +     * 
    + */ + public void deleteSchemaRevision( + com.google.pubsub.v1.DeleteSchemaRevisionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSchemaRevisionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -629,6 +950,58 @@ public com.google.pubsub.v1.ListSchemasResponse listSchemas( getChannel(), getListSchemasMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Lists all schema revisions for the named schema.
    +     * 
    + */ + public com.google.pubsub.v1.ListSchemaRevisionsResponse listSchemaRevisions( + com.google.pubsub.v1.ListSchemaRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemaRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Commits a new schema revision to an existing schema.
    +     * 
    + */ + public com.google.pubsub.v1.Schema commitSchema( + com.google.pubsub.v1.CommitSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCommitSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a new schema revision that is a copy of the provided revision_id.
    +     * 
    + */ + public com.google.pubsub.v1.Schema rollbackSchema( + com.google.pubsub.v1.RollbackSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a specific schema revision.
    +     * 
    + */ + public com.google.pubsub.v1.Schema deleteSchemaRevision( + com.google.pubsub.v1.DeleteSchemaRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaRevisionMethod(), getCallOptions(), request); + } + /** * * @@ -728,6 +1101,59 @@ protected SchemaServiceFutureStub build( getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Lists all schema revisions for the named schema.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.pubsub.v1.ListSchemaRevisionsResponse> + listSchemaRevisions(com.google.pubsub.v1.ListSchemaRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSchemaRevisionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Commits a new schema revision to an existing schema.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + commitSchema(com.google.pubsub.v1.CommitSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCommitSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Creates a new schema revision that is a copy of the provided revision_id.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + rollbackSchema(com.google.pubsub.v1.RollbackSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRollbackSchemaMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Deletes a specific schema revision.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + deleteSchemaRevision(com.google.pubsub.v1.DeleteSchemaRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSchemaRevisionMethod(), getCallOptions()), request); + } + /** * * @@ -773,9 +1199,13 @@ protected SchemaServiceFutureStub build( private static final int METHODID_CREATE_SCHEMA = 0; private static final int METHODID_GET_SCHEMA = 1; private static final int METHODID_LIST_SCHEMAS = 2; - private static final int METHODID_DELETE_SCHEMA = 3; - private static final int METHODID_VALIDATE_SCHEMA = 4; - private static final int METHODID_VALIDATE_MESSAGE = 5; + private static final int METHODID_LIST_SCHEMA_REVISIONS = 3; + private static final int METHODID_COMMIT_SCHEMA = 4; + private static final int METHODID_ROLLBACK_SCHEMA = 5; + private static final int METHODID_DELETE_SCHEMA_REVISION = 6; + private static final int METHODID_DELETE_SCHEMA = 7; + private static final int METHODID_VALIDATE_SCHEMA = 8; + private static final int METHODID_VALIDATE_MESSAGE = 9; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -810,6 +1240,27 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_SCHEMA_REVISIONS: + serviceImpl.listSchemaRevisions( + (com.google.pubsub.v1.ListSchemaRevisionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_COMMIT_SCHEMA: + serviceImpl.commitSchema( + (com.google.pubsub.v1.CommitSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLLBACK_SCHEMA: + serviceImpl.rollbackSchema( + (com.google.pubsub.v1.RollbackSchemaRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SCHEMA_REVISION: + serviceImpl.deleteSchemaRevision( + (com.google.pubsub.v1.DeleteSchemaRevisionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_SCHEMA: serviceImpl.deleteSchema( (com.google.pubsub.v1.DeleteSchemaRequest) request, @@ -894,6 +1345,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateSchemaMethod()) .addMethod(getGetSchemaMethod()) .addMethod(getListSchemasMethod()) + .addMethod(getListSchemaRevisionsMethod()) + .addMethod(getCommitSchemaMethod()) + .addMethod(getRollbackSchemaMethod()) + .addMethod(getDeleteSchemaRevisionMethod()) .addMethod(getDeleteSchemaMethod()) .addMethod(getValidateSchemaMethod()) .addMethod(getValidateMessageMethod()) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 5a0f1be23337..8a84a3d740b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -389,8 +389,8 @@ public boolean getDropUnknownFields() { * * *
    -   * Output only. An output-only field that indicates whether or not the subscription can
    -   * receive messages.
    +   * Output only. An output-only field that indicates whether or not the
    +   * subscription can receive messages.
        * 
    * * @@ -407,8 +407,8 @@ public int getStateValue() { * * *
    -   * Output only. An output-only field that indicates whether or not the subscription can
    -   * receive messages.
    +   * Output only. An output-only field that indicates whether or not the
    +   * subscription can receive messages.
        * 
    * * @@ -1134,8 +1134,8 @@ public Builder clearDropUnknownFields() { * * *
    -     * Output only. An output-only field that indicates whether or not the subscription can
    -     * receive messages.
    +     * Output only. An output-only field that indicates whether or not the
    +     * subscription can receive messages.
          * 
    * * @@ -1152,8 +1152,8 @@ public int getStateValue() { * * *
    -     * Output only. An output-only field that indicates whether or not the subscription can
    -     * receive messages.
    +     * Output only. An output-only field that indicates whether or not the
    +     * subscription can receive messages.
          * 
    * * @@ -1173,8 +1173,8 @@ public Builder setStateValue(int value) { * * *
    -     * Output only. An output-only field that indicates whether or not the subscription can
    -     * receive messages.
    +     * Output only. An output-only field that indicates whether or not the
    +     * subscription can receive messages.
          * 
    * * @@ -1194,8 +1194,8 @@ public com.google.pubsub.v1.BigQueryConfig.State getState() { * * *
    -     * Output only. An output-only field that indicates whether or not the subscription can
    -     * receive messages.
    +     * Output only. An output-only field that indicates whether or not the
    +     * subscription can receive messages.
          * 
    * * @@ -1218,8 +1218,8 @@ public Builder setState(com.google.pubsub.v1.BigQueryConfig.State value) { * * *
    -     * Output only. An output-only field that indicates whether or not the subscription can
    -     * receive messages.
    +     * Output only. An output-only field that indicates whether or not the
    +     * subscription can receive messages.
          * 
    * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 0b972a679d25..1a9275f0873b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -102,8 +102,8 @@ public interface BigQueryConfigOrBuilder * * *
    -   * Output only. An output-only field that indicates whether or not the subscription can
    -   * receive messages.
    +   * Output only. An output-only field that indicates whether or not the
    +   * subscription can receive messages.
        * 
    * * @@ -117,8 +117,8 @@ public interface BigQueryConfigOrBuilder * * *
    -   * Output only. An output-only field that indicates whether or not the subscription can
    -   * receive messages.
    +   * Output only. An output-only field that indicates whether or not the
    +   * subscription can receive messages.
        * 
    * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java new file mode 100644 index 000000000000..4e92ecefd89c --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -0,0 +1,892 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Request for CommitSchema method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.CommitSchemaRequest} + */ +public final class CommitSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.CommitSchemaRequest) + CommitSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CommitSchemaRequest.newBuilder() to construct. + private CommitSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CommitSchemaRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CommitSchemaRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CommitSchemaRequest.class, + com.google.pubsub.v1.CommitSchemaRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
    +   * Required. The name of the schema we are revising.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The name of the schema we are revising.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_FIELD_NUMBER = 2; + private com.google.pubsub.v1.Schema schema_; + /** + * + * + *
    +   * Required. The schema revision to commit.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the schema field is set. + */ + @java.lang.Override + public boolean hasSchema() { + return schema_ != null; + } + /** + * + * + *
    +   * Required. The schema revision to commit.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + @java.lang.Override + public com.google.pubsub.v1.Schema getSchema() { + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + } + /** + * + * + *
    +   * Required. The schema revision to commit.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { + return getSchema(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (schema_ != null) { + output.writeMessage(2, getSchema()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (schema_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.CommitSchemaRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.CommitSchemaRequest other = (com.google.pubsub.v1.CommitSchemaRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasSchema() != other.hasSchema()) return false; + if (hasSchema()) { + if (!getSchema().equals(other.getSchema())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSchema()) { + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.CommitSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for CommitSchema method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.CommitSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CommitSchemaRequest) + com.google.pubsub.v1.CommitSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CommitSchemaRequest.class, + com.google.pubsub.v1.CommitSchemaRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.CommitSchemaRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (schemaBuilder_ == null) { + schema_ = null; + } else { + schema_ = null; + schemaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.CommitSchemaRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.CommitSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.CommitSchemaRequest build() { + com.google.pubsub.v1.CommitSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.CommitSchemaRequest buildPartial() { + com.google.pubsub.v1.CommitSchemaRequest result = + new com.google.pubsub.v1.CommitSchemaRequest(this); + result.name_ = name_; + if (schemaBuilder_ == null) { + result.schema_ = schema_; + } else { + result.schema_ = schemaBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.CommitSchemaRequest) { + return mergeFrom((com.google.pubsub.v1.CommitSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.CommitSchemaRequest other) { + if (other == com.google.pubsub.v1.CommitSchemaRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSchema()) { + mergeSchema(other.getSchema()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. The name of the schema we are revising.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The name of the schema we are revising.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The name of the schema we are revising.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the schema we are revising.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the schema we are revising.
    +     * Format is `projects/{project}/schemas/{schema}`.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.pubsub.v1.Schema schema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemaBuilder_; + /** + * + * + *
    +     * Required. The schema revision to commit.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the schema field is set. + */ + public boolean hasSchema() { + return schemaBuilder_ != null || schema_ != null; + } + /** + * + * + *
    +     * Required. The schema revision to commit.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + public com.google.pubsub.v1.Schema getSchema() { + if (schemaBuilder_ == null) { + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + } else { + return schemaBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Required. The schema revision to commit.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSchema(com.google.pubsub.v1.Schema value) { + if (schemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schema_ = value; + onChanged(); + } else { + schemaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * Required. The schema revision to commit.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { + if (schemaBuilder_ == null) { + schema_ = builderForValue.build(); + onChanged(); + } else { + schemaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * Required. The schema revision to commit.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSchema(com.google.pubsub.v1.Schema value) { + if (schemaBuilder_ == null) { + if (schema_ != null) { + schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); + } else { + schema_ = value; + } + onChanged(); + } else { + schemaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * Required. The schema revision to commit.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSchema() { + if (schemaBuilder_ == null) { + schema_ = null; + onChanged(); + } else { + schema_ = null; + schemaBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * Required. The schema revision to commit.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { + + onChanged(); + return getSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Required. The schema revision to commit.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { + if (schemaBuilder_ != null) { + return schemaBuilder_.getMessageOrBuilder(); + } else { + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; + } + } + /** + * + * + *
    +     * Required. The schema revision to commit.
    +     * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + getSchemaFieldBuilder() { + if (schemaBuilder_ == null) { + schemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + getSchema(), getParentForChildren(), isClean()); + schema_ = null; + } + return schemaBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CommitSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.CommitSchemaRequest) + private static final com.google.pubsub.v1.CommitSchemaRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.CommitSchemaRequest(); + } + + public static com.google.pubsub.v1.CommitSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommitSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.CommitSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..331bf5ae3bfd --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface CommitSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CommitSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the schema we are revising.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the schema we are revising.
    +   * Format is `projects/{project}/schemas/{schema}`.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The schema revision to commit.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the schema field is set. + */ + boolean hasSchema(); + /** + * + * + *
    +   * Required. The schema revision to commit.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + com.google.pubsub.v1.Schema getSchema(); + /** + * + * + *
    +   * Required. The schema revision to commit.
    +   * 
    + * + * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java new file mode 100644 index 000000000000..a6779112fc98 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -0,0 +1,835 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Request for the `DeleteSchemaRevision` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.DeleteSchemaRevisionRequest} + */ +public final class DeleteSchemaRevisionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRevisionRequest) + DeleteSchemaRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSchemaRevisionRequest.newBuilder() to construct. + private DeleteSchemaRevisionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSchemaRevisionRequest() { + name_ = ""; + revisionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSchemaRevisionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeleteSchemaRevisionRequest.class, + com.google.pubsub.v1.DeleteSchemaRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
    +   * Required. The name of the schema revision to be deleted, with a revision ID
    +   * explicitly included.
    +   * Example: projects/123/schemas/my-schema@c7cfa2a8
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The name of the schema revision to be deleted, with a revision ID
    +   * explicitly included.
    +   * Example: projects/123/schemas/my-schema@c7cfa2a8
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object revisionId_; + /** + * + * + *
    +   * Required. The revision ID to roll back to.
    +   * It must be a revision of the same schema.
    +   *   Example: c7cfa2a8
    +   * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The revision ID to roll back to.
    +   * It must be a revision of the same schema.
    +   *   Example: c7cfa2a8
    +   * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.DeleteSchemaRevisionRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.DeleteSchemaRevisionRequest other = + (com.google.pubsub.v1.DeleteSchemaRevisionRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.DeleteSchemaRevisionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for the `DeleteSchemaRevision` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.DeleteSchemaRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSchemaRevisionRequest) + com.google.pubsub.v1.DeleteSchemaRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.DeleteSchemaRevisionRequest.class, + com.google.pubsub.v1.DeleteSchemaRevisionRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.DeleteSchemaRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + revisionId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.DeleteSchemaRevisionRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.DeleteSchemaRevisionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.DeleteSchemaRevisionRequest build() { + com.google.pubsub.v1.DeleteSchemaRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.DeleteSchemaRevisionRequest buildPartial() { + com.google.pubsub.v1.DeleteSchemaRevisionRequest result = + new com.google.pubsub.v1.DeleteSchemaRevisionRequest(this); + result.name_ = name_; + result.revisionId_ = revisionId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.DeleteSchemaRevisionRequest) { + return mergeFrom((com.google.pubsub.v1.DeleteSchemaRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.DeleteSchemaRevisionRequest other) { + if (other == com.google.pubsub.v1.DeleteSchemaRevisionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + revisionId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. The name of the schema revision to be deleted, with a revision ID
    +     * explicitly included.
    +     * Example: projects/123/schemas/my-schema@c7cfa2a8
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The name of the schema revision to be deleted, with a revision ID
    +     * explicitly included.
    +     * Example: projects/123/schemas/my-schema@c7cfa2a8
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The name of the schema revision to be deleted, with a revision ID
    +     * explicitly included.
    +     * Example: projects/123/schemas/my-schema@c7cfa2a8
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the schema revision to be deleted, with a revision ID
    +     * explicitly included.
    +     * Example: projects/123/schemas/my-schema@c7cfa2a8
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the schema revision to be deleted, with a revision ID
    +     * explicitly included.
    +     * Example: projects/123/schemas/my-schema@c7cfa2a8
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object revisionId_ = ""; + /** + * + * + *
    +     * Required. The revision ID to roll back to.
    +     * It must be a revision of the same schema.
    +     *   Example: c7cfa2a8
    +     * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The revision ID to roll back to.
    +     * It must be a revision of the same schema.
    +     *   Example: c7cfa2a8
    +     * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The revision ID to roll back to.
    +     * It must be a revision of the same schema.
    +     *   Example: c7cfa2a8
    +     * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + revisionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The revision ID to roll back to.
    +     * It must be a revision of the same schema.
    +     *   Example: c7cfa2a8
    +     * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + + revisionId_ = getDefaultInstance().getRevisionId(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The revision ID to roll back to.
    +     * It must be a revision of the same schema.
    +     *   Example: c7cfa2a8
    +     * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + revisionId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSchemaRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.DeleteSchemaRevisionRequest) + private static final com.google.pubsub.v1.DeleteSchemaRevisionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.DeleteSchemaRevisionRequest(); + } + + public static com.google.pubsub.v1.DeleteSchemaRevisionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSchemaRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.DeleteSchemaRevisionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..28ded9ab4a85 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface DeleteSchemaRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSchemaRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the schema revision to be deleted, with a revision ID
    +   * explicitly included.
    +   * Example: projects/123/schemas/my-schema@c7cfa2a8
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the schema revision to be deleted, with a revision ID
    +   * explicitly included.
    +   * Example: projects/123/schemas/my-schema@c7cfa2a8
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The revision ID to roll back to.
    +   * It must be a revision of the same schema.
    +   *   Example: c7cfa2a8
    +   * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
    +   * Required. The revision ID to roll back to.
    +   * It must be a revision of the same schema.
    +   *   Example: c7cfa2a8
    +   * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 68aa7ffaf1a8..216c903435e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -130,8 +130,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
        * The set of fields to return in the response. If not set, returns a Schema
    -   * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    -   * fields.
    +   * with all fields filled out. Set to `BASIC` to omit the `definition`.
        * 
    * * .google.pubsub.v1.SchemaView view = 2; @@ -147,8 +146,7 @@ public int getViewValue() { * *
        * The set of fields to return in the response. If not set, returns a Schema
    -   * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    -   * fields.
    +   * with all fields filled out. Set to `BASIC` to omit the `definition`.
        * 
    * * .google.pubsub.v1.SchemaView view = 2; @@ -637,8 +635,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
          * The set of fields to return in the response. If not set, returns a Schema
    -     * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    -     * fields.
    +     * with all fields filled out. Set to `BASIC` to omit the `definition`.
          * 
    * * .google.pubsub.v1.SchemaView view = 2; @@ -654,8 +651,7 @@ public int getViewValue() { * *
          * The set of fields to return in the response. If not set, returns a Schema
    -     * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    -     * fields.
    +     * with all fields filled out. Set to `BASIC` to omit the `definition`.
          * 
    * * .google.pubsub.v1.SchemaView view = 2; @@ -674,8 +670,7 @@ public Builder setViewValue(int value) { * *
          * The set of fields to return in the response. If not set, returns a Schema
    -     * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    -     * fields.
    +     * with all fields filled out. Set to `BASIC` to omit the `definition`.
          * 
    * * .google.pubsub.v1.SchemaView view = 2; @@ -693,8 +688,7 @@ public com.google.pubsub.v1.SchemaView getView() { * *
          * The set of fields to return in the response. If not set, returns a Schema
    -     * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    -     * fields.
    +     * with all fields filled out. Set to `BASIC` to omit the `definition`.
          * 
    * * .google.pubsub.v1.SchemaView view = 2; @@ -716,8 +710,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { * *
          * The set of fields to return in the response. If not set, returns a Schema
    -     * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    -     * fields.
    +     * with all fields filled out. Set to `BASIC` to omit the `definition`.
          * 
    * * .google.pubsub.v1.SchemaView view = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 54c9481e252a..250f9dbad866 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -59,8 +59,7 @@ public interface GetSchemaRequestOrBuilder * *
        * The set of fields to return in the response. If not set, returns a Schema
    -   * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    -   * fields.
    +   * with all fields filled out. Set to `BASIC` to omit the `definition`.
        * 
    * * .google.pubsub.v1.SchemaView view = 2; @@ -73,8 +72,7 @@ public interface GetSchemaRequestOrBuilder * *
        * The set of fields to return in the response. If not set, returns a Schema
    -   * with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
    -   * fields.
    +   * with all fields filled out. Set to `BASIC` to omit the `definition`.
        * 
    * * .google.pubsub.v1.SchemaView view = 2; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java new file mode 100644 index 000000000000..2880af64a8ff --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -0,0 +1,1066 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Request for the `ListSchemaRevisions` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsRequest} + */ +public final class ListSchemaRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsRequest) + ListSchemaRevisionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSchemaRevisionsRequest.newBuilder() to construct. + private ListSchemaRevisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSchemaRevisionsRequest() { + name_ = ""; + view_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSchemaRevisionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSchemaRevisionsRequest.class, + com.google.pubsub.v1.ListSchemaRevisionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
    +   * Required. The name of the schema to list revisions for.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The name of the schema to list revisions for.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 2; + private int view_; + /** + * + * + *
    +   * The set of Schema fields to return in the response. If not set, returns
    +   * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +   * retrieve all fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
    +   * The set of Schema fields to return in the response. If not set, returns
    +   * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +   * retrieve all fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The view. + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaView getView() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_; + /** + * + * + *
    +   * The maximum number of revisions to return per page.
    +   * 
    + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + private volatile java.lang.Object pageToken_; + /** + * + * + *
    +   * The page token, received from a previous ListSchemaRevisions call.
    +   * Provide this to retrieve the subsequent page.
    +   * 
    + * + * string page_token = 4; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * The page token, received from a previous ListSchemaRevisions call.
    +   * Provide this to retrieve the subsequent page.
    +   * 
    + * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(2, view_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListSchemaRevisionsRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListSchemaRevisionsRequest other = + (com.google.pubsub.v1.ListSchemaRevisionsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (view_ != other.view_) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.ListSchemaRevisionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for the `ListSchemaRevisions` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemaRevisionsRequest) + com.google.pubsub.v1.ListSchemaRevisionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSchemaRevisionsRequest.class, + com.google.pubsub.v1.ListSchemaRevisionsRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListSchemaRevisionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + view_ = 0; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemaRevisionsRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.ListSchemaRevisionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemaRevisionsRequest build() { + com.google.pubsub.v1.ListSchemaRevisionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemaRevisionsRequest buildPartial() { + com.google.pubsub.v1.ListSchemaRevisionsRequest result = + new com.google.pubsub.v1.ListSchemaRevisionsRequest(this); + result.name_ = name_; + result.view_ = view_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListSchemaRevisionsRequest) { + return mergeFrom((com.google.pubsub.v1.ListSchemaRevisionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListSchemaRevisionsRequest other) { + if (other == com.google.pubsub.v1.ListSchemaRevisionsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + view_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. The name of the schema to list revisions for.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The name of the schema to list revisions for.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The name of the schema to list revisions for.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the schema to list revisions for.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The name of the schema to list revisions for.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int view_ = 0; + /** + * + * + *
    +     * The set of Schema fields to return in the response. If not set, returns
    +     * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +     * retrieve all fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
    +     * The set of Schema fields to return in the response. If not set, returns
    +     * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +     * retrieve all fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + + view_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The set of Schema fields to return in the response. If not set, returns
    +     * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +     * retrieve all fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The view. + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaView getView() { + @SuppressWarnings("deprecation") + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * The set of Schema fields to return in the response. If not set, returns
    +     * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +     * retrieve all fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.pubsub.v1.SchemaView value) { + if (value == null) { + throw new NullPointerException(); + } + + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The set of Schema fields to return in the response. If not set, returns
    +     * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +     * retrieve all fields.
    +     * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return This builder for chaining. + */ + public Builder clearView() { + + view_ = 0; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
    +     * The maximum number of revisions to return per page.
    +     * 
    + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
    +     * The maximum number of revisions to return per page.
    +     * 
    + * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum number of revisions to return per page.
    +     * 
    + * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
    +     * The page token, received from a previous ListSchemaRevisions call.
    +     * Provide this to retrieve the subsequent page.
    +     * 
    + * + * string page_token = 4; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The page token, received from a previous ListSchemaRevisions call.
    +     * Provide this to retrieve the subsequent page.
    +     * 
    + * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The page token, received from a previous ListSchemaRevisions call.
    +     * Provide this to retrieve the subsequent page.
    +     * 
    + * + * string page_token = 4; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The page token, received from a previous ListSchemaRevisions call.
    +     * Provide this to retrieve the subsequent page.
    +     * 
    + * + * string page_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The page token, received from a previous ListSchemaRevisions call.
    +     * Provide this to retrieve the subsequent page.
    +     * 
    + * + * string page_token = 4; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemaRevisionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSchemaRevisionsRequest) + private static final com.google.pubsub.v1.ListSchemaRevisionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSchemaRevisionsRequest(); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemaRevisionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemaRevisionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..4d2c8f372bc3 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface ListSchemaRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemaRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the schema to list revisions for.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The name of the schema to list revisions for.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * The set of Schema fields to return in the response. If not set, returns
    +   * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +   * retrieve all fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
    +   * The set of Schema fields to return in the response. If not set, returns
    +   * Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
    +   * retrieve all fields.
    +   * 
    + * + * .google.pubsub.v1.SchemaView view = 2; + * + * @return The view. + */ + com.google.pubsub.v1.SchemaView getView(); + + /** + * + * + *
    +   * The maximum number of revisions to return per page.
    +   * 
    + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * The page token, received from a previous ListSchemaRevisions call.
    +   * Provide this to retrieve the subsequent page.
    +   * 
    + * + * string page_token = 4; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
    +   * The page token, received from a previous ListSchemaRevisions call.
    +   * Provide this to retrieve the subsequent page.
    +   * 
    + * + * string page_token = 4; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java new file mode 100644 index 000000000000..417e71d01c11 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -0,0 +1,1104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Response for the `ListSchemaRevisions` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsResponse} + */ +public final class ListSchemaRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsResponse) + ListSchemaRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSchemaRevisionsResponse.newBuilder() to construct. + private ListSchemaRevisionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSchemaRevisionsResponse() { + schemas_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSchemaRevisionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSchemaRevisionsResponse.class, + com.google.pubsub.v1.ListSchemaRevisionsResponse.Builder.class); + } + + public static final int SCHEMAS_FIELD_NUMBER = 1; + private java.util.List schemas_; + /** + * + * + *
    +   * The revisions of the schema.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + @java.lang.Override + public java.util.List getSchemasList() { + return schemas_; + } + /** + * + * + *
    +   * The revisions of the schema.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + @java.lang.Override + public java.util.List getSchemasOrBuilderList() { + return schemas_; + } + /** + * + * + *
    +   * The revisions of the schema.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + @java.lang.Override + public int getSchemasCount() { + return schemas_.size(); + } + /** + * + * + *
    +   * The revisions of the schema.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + @java.lang.Override + public com.google.pubsub.v1.Schema getSchemas(int index) { + return schemas_.get(index); + } + /** + * + * + *
    +   * The revisions of the schema.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + @java.lang.Override + public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { + return schemas_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
    +   * A token that can be sent as `page_token` to retrieve the next page.
    +   * If this field is empty, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
    +   * A token that can be sent as `page_token` to retrieve the next page.
    +   * If this field is empty, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < schemas_.size(); i++) { + output.writeMessage(1, schemas_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < schemas_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.ListSchemaRevisionsResponse)) { + return super.equals(obj); + } + com.google.pubsub.v1.ListSchemaRevisionsResponse other = + (com.google.pubsub.v1.ListSchemaRevisionsResponse) obj; + + if (!getSchemasList().equals(other.getSchemasList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSchemasCount() > 0) { + hash = (37 * hash) + SCHEMAS_FIELD_NUMBER; + hash = (53 * hash) + getSchemasList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.ListSchemaRevisionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Response for the `ListSchemaRevisions` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemaRevisionsResponse) + com.google.pubsub.v1.ListSchemaRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.ListSchemaRevisionsResponse.class, + com.google.pubsub.v1.ListSchemaRevisionsResponse.Builder.class); + } + + // Construct using com.google.pubsub.v1.ListSchemaRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (schemasBuilder_ == null) { + schemas_ = java.util.Collections.emptyList(); + } else { + schemas_ = null; + schemasBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemaRevisionsResponse getDefaultInstanceForType() { + return com.google.pubsub.v1.ListSchemaRevisionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemaRevisionsResponse build() { + com.google.pubsub.v1.ListSchemaRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemaRevisionsResponse buildPartial() { + com.google.pubsub.v1.ListSchemaRevisionsResponse result = + new com.google.pubsub.v1.ListSchemaRevisionsResponse(this); + int from_bitField0_ = bitField0_; + if (schemasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + schemas_ = java.util.Collections.unmodifiableList(schemas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.schemas_ = schemas_; + } else { + result.schemas_ = schemasBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.ListSchemaRevisionsResponse) { + return mergeFrom((com.google.pubsub.v1.ListSchemaRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.ListSchemaRevisionsResponse other) { + if (other == com.google.pubsub.v1.ListSchemaRevisionsResponse.getDefaultInstance()) + return this; + if (schemasBuilder_ == null) { + if (!other.schemas_.isEmpty()) { + if (schemas_.isEmpty()) { + schemas_ = other.schemas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSchemasIsMutable(); + schemas_.addAll(other.schemas_); + } + onChanged(); + } + } else { + if (!other.schemas_.isEmpty()) { + if (schemasBuilder_.isEmpty()) { + schemasBuilder_.dispose(); + schemasBuilder_ = null; + schemas_ = other.schemas_; + bitField0_ = (bitField0_ & ~0x00000001); + schemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSchemasFieldBuilder() + : null; + } else { + schemasBuilder_.addAllMessages(other.schemas_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.pubsub.v1.Schema m = + input.readMessage(com.google.pubsub.v1.Schema.parser(), extensionRegistry); + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(m); + } else { + schemasBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List schemas_ = + java.util.Collections.emptyList(); + + private void ensureSchemasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + schemas_ = new java.util.ArrayList(schemas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + schemasBuilder_; + + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public java.util.List getSchemasList() { + if (schemasBuilder_ == null) { + return java.util.Collections.unmodifiableList(schemas_); + } else { + return schemasBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public int getSchemasCount() { + if (schemasBuilder_ == null) { + return schemas_.size(); + } else { + return schemasBuilder_.getCount(); + } + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public com.google.pubsub.v1.Schema getSchemas(int index) { + if (schemasBuilder_ == null) { + return schemas_.get(index); + } else { + return schemasBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.set(index, value); + onChanged(); + } else { + schemasBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.set(index, builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder addSchemas(com.google.pubsub.v1.Schema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.add(value); + onChanged(); + } else { + schemasBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { + if (schemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSchemasIsMutable(); + schemas_.add(index, value); + onChanged(); + } else { + schemasBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builderForValue) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.add(index, builderForValue.build()); + onChanged(); + } else { + schemasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder addAllSchemas(java.lang.Iterable values) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemas_); + onChanged(); + } else { + schemasBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder clearSchemas() { + if (schemasBuilder_ == null) { + schemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + schemasBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public Builder removeSchemas(int index) { + if (schemasBuilder_ == null) { + ensureSchemasIsMutable(); + schemas_.remove(index); + onChanged(); + } else { + schemasBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public com.google.pubsub.v1.Schema.Builder getSchemasBuilder(int index) { + return getSchemasFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { + if (schemasBuilder_ == null) { + return schemas_.get(index); + } else { + return schemasBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public java.util.List + getSchemasOrBuilderList() { + if (schemasBuilder_ != null) { + return schemasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(schemas_); + } + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public com.google.pubsub.v1.Schema.Builder addSchemasBuilder() { + return getSchemasFieldBuilder().addBuilder(com.google.pubsub.v1.Schema.getDefaultInstance()); + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public com.google.pubsub.v1.Schema.Builder addSchemasBuilder(int index) { + return getSchemasFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.Schema.getDefaultInstance()); + } + /** + * + * + *
    +     * The revisions of the schema.
    +     * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + public java.util.List getSchemasBuilderList() { + return getSchemasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder> + getSchemasFieldBuilder() { + if (schemasBuilder_ == null) { + schemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.Schema, + com.google.pubsub.v1.Schema.Builder, + com.google.pubsub.v1.SchemaOrBuilder>( + schemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + schemas_ = null; + } + return schemasBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
    +     * A token that can be sent as `page_token` to retrieve the next page.
    +     * If this field is empty, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * A token that can be sent as `page_token` to retrieve the next page.
    +     * If this field is empty, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * A token that can be sent as `page_token` to retrieve the next page.
    +     * If this field is empty, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * A token that can be sent as `page_token` to retrieve the next page.
    +     * If this field is empty, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
    +     * A token that can be sent as `page_token` to retrieve the next page.
    +     * If this field is empty, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemaRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.ListSchemaRevisionsResponse) + private static final com.google.pubsub.v1.ListSchemaRevisionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.ListSchemaRevisionsResponse(); + } + + public static com.google.pubsub.v1.ListSchemaRevisionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchemaRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.ListSchemaRevisionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..0ace05c4221e --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface ListSchemaRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemaRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The revisions of the schema.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + java.util.List getSchemasList(); + /** + * + * + *
    +   * The revisions of the schema.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + com.google.pubsub.v1.Schema getSchemas(int index); + /** + * + * + *
    +   * The revisions of the schema.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + int getSchemasCount(); + /** + * + * + *
    +   * The revisions of the schema.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + java.util.List getSchemasOrBuilderList(); + /** + * + * + *
    +   * The revisions of the schema.
    +   * 
    + * + * repeated .google.pubsub.v1.Schema schemas = 1; + */ + com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index); + + /** + * + * + *
    +   * A token that can be sent as `page_token` to retrieve the next page.
    +   * If this field is empty, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
    +   * A token that can be sent as `page_token` to retrieve the next page.
    +   * If this field is empty, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 509ddd3e420b..40af0aacaabd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -265,303 +265,304 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uf/field_mask.proto\032\037google/protobuf/tim" + "estamp.proto\032\035google/pubsub/v1/schema.pr" + "oto\";\n\024MessageStoragePolicy\022#\n\033allowed_p" - + "ersistence_regions\030\001 \003(\t\"t\n\016SchemaSettin" - + "gs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" - + "eapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.goo" - + "gle.pubsub.v1.Encoding\"\303\003\n\005Topic\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(\0132#.google.pub" - + "sub.v1.Topic.LabelsEntry\022F\n\026message_stor" - + "age_policy\030\003 \001(\0132&.google.pubsub.v1.Mess" - + "ageStoragePolicy\022\024\n\014kms_key_name\030\005 \001(\t\0229" - + "\n\017schema_settings\030\006 \001(\0132 .google.pubsub." - + "v1.SchemaSettings\022\025\n\rsatisfies_pzs\030\007 \001(\010" - + "\022=\n\032message_retention_duration\030\010 \001(\0132\031.g" - + "oogle.protobuf.Duration\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:T\352AQ\n\033pub" - + "sub.googleapis.com/Topic\022!projects/{proj" - + "ect}/topics/{topic}\022\017_deleted-topic_\"\361\001\n" - + "\rPubsubMessage\022\014\n\004data\030\001 \001(\014\022C\n\nattribut" - + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" - + "e.AttributesEntry\022\022\n\nmessage_id\030\003 \001(\t\0220\n" - + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\024\n\014ordering_key\030\005 \001(\t\0321\n\017Attribu" - + "tesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"E\n\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" - + "A\035\n\033pubsub.googleapis.com/Topic\"w\n\022Updat" - + "eTopicRequest\022+\n\005topic\030\001 \001(\0132\027.google.pu" - + "bsub.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\"|\n\016Publ" - + "ishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" - + "b.googleapis.com/Topic\0226\n\010messages\030\002 \003(\013" - + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"&" - + "\n\017PublishResponse\022\023\n\013message_ids\030\001 \003(\t\"\200" - + "\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB3\340" - + "A\002\372A-\n+cloudresourcemanager.googleapis.c" - + "om/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"V\n\022ListTopicsResponse\022\'\n\006topic" - + "s\030\001 \003(\0132\027.google.pubsub.v1.Topic\022\027\n\017next" - + "_page_token\030\002 \001(\t\"z\n\035ListTopicSubscripti" - + "onsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsu" - + "b.googleapis.com/Topic\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036ListTopicSubscr" - + "iptionsResponse\022>\n\rsubscriptions\030\001 \003(\tB\'" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "\027\n\017next_page_token\030\002 \001(\t\"v\n\031ListTopicSna" - + "pshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" - + "bsub.googleapis.com/Topic\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"H\n\032ListTopicSna" - + "pshotsResponse\022\021\n\tsnapshots\030\001 \003(\t\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"H\n\022DeleteTopicRequest" - + "\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleap" - + "is.com/Topic\"]\n\031DetachSubscriptionReques" - + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\"\034\n\032DetachSub" - + "scriptionResponse\"\345\007\n\014Subscription\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pu" - + "bsub.googleapis.com/Topic\0221\n\013push_config" - + "\030\004 \001(\0132\034.google.pubsub.v1.PushConfig\0229\n\017" - + "bigquery_config\030\022 \001(\0132 .google.pubsub.v1" - + ".BigQueryConfig\022\034\n\024ack_deadline_seconds\030" - + "\005 \001(\005\022\035\n\025retain_acked_messages\030\007 \001(\010\022=\n\032" - + "message_retention_duration\030\010 \001(\0132\031.googl" - + "e.protobuf.Duration\022:\n\006labels\030\t \003(\0132*.go" - + "ogle.pubsub.v1.Subscription.LabelsEntry\022" - + "\037\n\027enable_message_ordering\030\n \001(\010\022=\n\021expi" - + "ration_policy\030\013 \001(\0132\".google.pubsub.v1.E" - + "xpirationPolicy\022\016\n\006filter\030\014 \001(\t\022>\n\022dead_" - + "letter_policy\030\r \001(\0132\".google.pubsub.v1.D" - + "eadLetterPolicy\0223\n\014retry_policy\030\016 \001(\0132\035." - + "google.pubsub.v1.RetryPolicy\022\020\n\010detached" - + "\030\017 \001(\010\022$\n\034enable_exactly_once_delivery\030\020" - + " \001(\010\022H\n topic_message_retention_duration" - + "\030\021 \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228" - + "\n\005state\030\023 \001(\0162$.google.pubsub.v1.Subscri" - + "ption.StateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022\025\n\021STAT" - + "E_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOURCE_" - + "ERROR\020\002:X\352AU\n\"pubsub.googleapis.com/Subs" - + "cription\022/projects/{project}/subscriptio" - + "ns/{subscription}\"u\n\013RetryPolicy\0222\n\017mini" - + "mum_backoff\030\001 \001(\0132\031.google.protobuf.Dura" - + "tion\0222\n\017maximum_backoff\030\002 \001(\0132\031.google.p" - + "rotobuf.Duration\"L\n\020DeadLetterPolicy\022\031\n\021" - + "dead_letter_topic\030\001 \001(\t\022\035\n\025max_delivery_" - + "attempts\030\002 \001(\005\":\n\020ExpirationPolicy\022&\n\003tt" - + "l\030\001 \001(\0132\031.google.protobuf.Duration\"\255\002\n\nP" - + "ushConfig\022\025\n\rpush_endpoint\030\001 \001(\t\022@\n\nattr" - + "ibutes\030\002 \003(\0132,.google.pubsub.v1.PushConf" - + "ig.AttributesEntry\022<\n\noidc_token\030\003 \001(\0132&" - + ".google.pubsub.v1.PushConfig.OidcTokenH\000" - + "\032<\n\tOidcToken\022\035\n\025service_account_email\030\001" - + " \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017AttributesEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025aut" - + "hentication_method\"\221\002\n\016BigQueryConfig\022\r\n" - + "\005table\030\001 \001(\t\022\030\n\020use_topic_schema\030\002 \001(\010\022\026" - + "\n\016write_metadata\030\003 \001(\010\022\033\n\023drop_unknown_f" - + "ields\030\004 \001(\010\022:\n\005state\030\005 \001(\0162&.google.pubs" - + "ub.v1.BigQueryConfig.StateB\003\340A\003\"e\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021P" - + "ERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCH" - + "EMA_MISMATCH\020\004\"m\n\017ReceivedMessage\022\016\n\006ack" - + "_id\030\001 \001(\t\0220\n\007message\030\002 \001(\0132\037.google.pubs" - + "ub.v1.PubsubMessage\022\030\n\020delivery_attempt\030" - + "\003 \001(\005\"Z\n\026GetSubscriptionRequest\022@\n\014subsc" - + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" - + ".com/Subscription\"\214\001\n\031UpdateSubscription" - + "Request\0229\n\014subscription\030\001 \001(\0132\036.google.p" - + "ubsub.v1.SubscriptionB\003\340A\002\0224\n\013update_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002" - + "\"\207\001\n\030ListSubscriptionsRequest\022D\n\007project" - + "\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goo" - + "gleapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022" - + "\n\npage_token\030\003 \001(\t\"k\n\031ListSubscriptionsR" - + "esponse\0225\n\rsubscriptions\030\001 \003(\0132\036.google." - + "pubsub.v1.Subscription\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"]\n\031DeleteSubscriptionRequest\022@\n\014" - + "subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\"\223\001\n\027ModifyPushCon" - + "figRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" - + "\n\"pubsub.googleapis.com/Subscription\0226\n\013" - + "push_config\030\002 \001(\0132\034.google.pubsub.v1.Pus" - + "hConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscrip" - + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\022!\n\022return_immediately\030\002 \001" - + "(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"L\n\014" - + "PullResponse\022<\n\021received_messages\030\001 \003(\0132" - + "!.google.pubsub.v1.ReceivedMessage\"\225\001\n\030M" - + "odifyAckDeadlineRequest\022@\n\014subscription\030" - + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_d" - + "eadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowledg" - + "eRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" - + "pubsub.googleapis.com/Subscription\022\024\n\007ac" - + "k_ids\030\002 \003(\tB\003\340A\002\"\251\002\n\024StreamingPullReques" - + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\022\017\n\007ack_ids\030\002" - + " \003(\t\022\037\n\027modify_deadline_seconds\030\003 \003(\005\022\037\n" - + "\027modify_deadline_ack_ids\030\004 \003(\t\022(\n\033stream" - + "_ack_deadline_seconds\030\005 \001(\005B\003\340A\002\022\021\n\tclie" - + "nt_id\030\006 \001(\t\022 \n\030max_outstanding_messages\030" - + "\007 \001(\003\022\035\n\025max_outstanding_bytes\030\010 \001(\003\"\262\005\n" - + "\025StreamingPullResponse\022<\n\021received_messa" - + "ges\030\001 \003(\0132!.google.pubsub.v1.ReceivedMes" - + "sage\022a\n\030acknowledge_confirmation\030\005 \001(\0132?" - + ".google.pubsub.v1.StreamingPullResponse." - + "AcknowledgeConfirmation\022o\n modify_ack_de" - + "adline_confirmation\030\003 \001(\0132E.google.pubsu" - + "b.v1.StreamingPullResponse.ModifyAckDead" - + "lineConfirmation\022_\n\027subscription_propert" - + "ies\030\004 \001(\0132>.google.pubsub.v1.StreamingPu" - + "llResponse.SubscriptionProperties\032j\n\027Ack" - + "nowledgeConfirmation\022\023\n\007ack_ids\030\001 \003(\tB\002\010" - + "\001\022\033\n\017invalid_ack_ids\030\002 \003(\tB\002\010\001\022\035\n\021unorde" - + "red_ack_ids\030\003 \003(\tB\002\010\001\032Q\n\035ModifyAckDeadli" - + "neConfirmation\022\023\n\007ack_ids\030\001 \003(\tB\002\010\001\022\033\n\017i" - + "nvalid_ack_ids\030\002 \003(\tB\002\010\001\032a\n\026Subscription" - + "Properties\022%\n\035exactly_once_delivery_enab" - + "led\030\001 \001(\010\022 \n\030message_ordering_enabled\030\002 " - + "\001(\010J\004\010\002\020\003\"\203\002\n\025CreateSnapshotRequest\0224\n\004n" - + "ame\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com" - + "/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022C\n\006l" - + "abels\030\003 \003(\01323.google.pubsub.v1.CreateSna" - + "pshotRequest.LabelsEntry\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025Upda" - + "teSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.go" - + "ogle.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030\002" - + " \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022/" - + "\n\013expire_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestamp\0226\n\006labels\030\004 \003(\0132&.google.pubsub." - + "v1.Snapshot.LabelsEntry\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pub" - + "sub.googleapis.com/Snapshot\022\'projects/{p" - + "roject}/snapshots/{snapshot}\"N\n\022GetSnaps" - + "hotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pu" - + "bsub.googleapis.com/Snapshot\"\203\001\n\024ListSna" - + "pshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+" - + "cloudresourcemanager.googleapis.com/Proj" - + "ect\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapshots" - + "\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"Q\n\025DeleteSnapshotReq" + + "ersistence_regions\030\001 \003(\t\"\251\001\n\016SchemaSetti" + + "ngs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.goog" + + "leapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.go" + + "ogle.pubsub.v1.Encoding\022\031\n\021first_revisio" + + "n_id\030\003 \001(\t\022\030\n\020last_revision_id\030\004 \001(\t\"\303\003\n" + + "\005Topic\022\021\n\004name\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(" + + "\0132#.google.pubsub.v1.Topic.LabelsEntry\022F" + + "\n\026message_storage_policy\030\003 \001(\0132&.google." + + "pubsub.v1.MessageStoragePolicy\022\024\n\014kms_ke" + + "y_name\030\005 \001(\t\0229\n\017schema_settings\030\006 \001(\0132 ." + + "google.pubsub.v1.SchemaSettings\022\025\n\rsatis" + + "fies_pzs\030\007 \001(\010\022=\n\032message_retention_dura" + + "tion\030\010 \001(\0132\031.google.protobuf.Duration\032-\n" + + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001:T\352AQ\n\033pubsub.googleapis.com/Topic\022!" + + "projects/{project}/topics/{topic}\022\017_dele" + + "ted-topic_\"\361\001\n\rPubsubMessage\022\014\n\004data\030\001 \001" + + "(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub.v" + + "1.PubsubMessage.AttributesEntry\022\022\n\nmessa" + + "ge_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022\024\n\014ordering_key\030\005 " + + "\001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005top" + + "ic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/" + + "Topic\"w\n\022UpdateTopicRequest\022+\n\005topic\030\001 \001" + + "(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001(\tB" + + "#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\010" + + "messages\030\002 \003(\0132\037.google.pubsub.v1.Pubsub" + + "MessageB\003\340A\002\"&\n\017PublishResponse\022\023\n\013messa" + + "ge_ids\030\001 \003(\t\"\200\001\n\021ListTopicsRequest\022D\n\007pr" + + "oject\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanage" + + "r.googleapis.com/Project\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListTopicsRes" + + "ponse\022\'\n\006topics\030\001 \003(\0132\027.google.pubsub.v1" + + ".Topic\022\027\n\017next_page_token\030\002 \001(\t\"z\n\035ListT" + + "opicSubscriptionsRequest\0222\n\005topic\030\001 \001(\tB" + + "#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022\021\n\t" + + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036L" + + "istTopicSubscriptionsResponse\022>\n\rsubscri" + + "ptions\030\001 \003(\tB\'\372A$\n\"pubsub.googleapis.com" + + "/Subscription\022\027\n\017next_page_token\030\002 \001(\t\"v" + + "\n\031ListTopicSnapshotsRequest\0222\n\005topic\030\001 \001" + + "(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H" + + "\n\032ListTopicSnapshotsResponse\022\021\n\tsnapshot" + + "s\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"H\n\022Dele" + + "teTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033p" + + "ubsub.googleapis.com/Topic\"]\n\031DetachSubs" + + "criptionRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" + + "n\"\034\n\032DetachSubscriptionResponse\"\345\007\n\014Subs" + + "cription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001" + + "(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022" + + "1\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1." + + "PushConfig\0229\n\017bigquery_config\030\022 \001(\0132 .go" + + "ogle.pubsub.v1.BigQueryConfig\022\034\n\024ack_dea" + + "dline_seconds\030\005 \001(\005\022\035\n\025retain_acked_mess" + + "ages\030\007 \001(\010\022=\n\032message_retention_duration" + + "\030\010 \001(\0132\031.google.protobuf.Duration\022:\n\006lab" + + "els\030\t \003(\0132*.google.pubsub.v1.Subscriptio" + + "n.LabelsEntry\022\037\n\027enable_message_ordering" + + "\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\0132\".goog" + + "le.pubsub.v1.ExpirationPolicy\022\016\n\006filter\030" + + "\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\0132\".goog" + + "le.pubsub.v1.DeadLetterPolicy\0223\n\014retry_p" + + "olicy\030\016 \001(\0132\035.google.pubsub.v1.RetryPoli" + + "cy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_exactly_o" + + "nce_delivery\030\020 \001(\010\022H\n topic_message_rete" + + "ntion_duration\030\021 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\003\0228\n\005state\030\023 \001(\0162$.google.pub" + + "sub.v1.Subscription.StateB\003\340A\003\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020" + + "\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.googl" + + "eapis.com/Subscription\022/projects/{projec" + + "t}/subscriptions/{subscription}\"u\n\013Retry" + + "Policy\0222\n\017minimum_backoff\030\001 \001(\0132\031.google" + + ".protobuf.Duration\0222\n\017maximum_backoff\030\002 " + + "\001(\0132\031.google.protobuf.Duration\"L\n\020DeadLe" + + "tterPolicy\022\031\n\021dead_letter_topic\030\001 \001(\t\022\035\n" + + "\025max_delivery_attempts\030\002 \001(\005\":\n\020Expirati" + + "onPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.protobuf." + + "Duration\"\255\002\n\nPushConfig\022\025\n\rpush_endpoint" + + "\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google.pubs" + + "ub.v1.PushConfig.AttributesEntry\022<\n\noidc" + + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" + + "ig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025service_a" + + "ccount_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017" + + "AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001B\027\n\025authentication_method\"\221\002\n\016Big" + + "QueryConfig\022\r\n\005table\030\001 \001(\t\022\030\n\020use_topic_" + + "schema\030\002 \001(\010\022\026\n\016write_metadata\030\003 \001(\010\022\033\n\023" + + "drop_unknown_fields\030\004 \001(\010\022:\n\005state\030\005 \001(\016" + + "2&.google.pubsub.v1.BigQueryConfig.State" + + "B\003\340A\003\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_" + + "FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\"m\n\017Received" + + "Message\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\013" + + "2\037.google.pubsub.v1.PubsubMessage\022\030\n\020del" + + "ivery_attempt\030\003 \001(\005\"Z\n\026GetSubscriptionRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\"\214\001\n\031Upda" + + "teSubscriptionRequest\0229\n\014subscription\030\001 " + + "\001(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"\207\001\n\030ListSubscriptionsRequ" + + "est\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022\021\n\tpag" + + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031List" + + "SubscriptionsResponse\0225\n\rsubscriptions\030\001" + + " \003(\0132\036.google.pubsub.v1.Subscription\022\027\n\017" + + "next_page_token\030\002 \001(\t\"]\n\031DeleteSubscript" + + "ionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" + + "\n\"pubsub.googleapis.com/Subscription\"\223\001\n" + + "\027ModifyPushConfigRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\0226\n\013push_config\030\002 \001(\0132\034.google" + + ".pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullReque" + + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" + + ".googleapis.com/Subscription\022!\n\022return_i" + + "mmediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030" + + "\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n\021received_m" + + "essages\030\001 \003(\0132!.google.pubsub.v1.Receive" + + "dMessage\"\225\001\n\030ModifyAckDeadlineRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" + + "leapis.com/Subscription\022\024\n\007ack_ids\030\004 \003(\t" + + "B\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002" + + "\"l\n\022AcknowledgeRequest\022@\n\014subscription\030\001" + + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" + + "cription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\251\002\n\024Strea" + + "mingPullRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" + + "n\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_deadline_se" + + "conds\030\003 \003(\005\022\037\n\027modify_deadline_ack_ids\030\004" + + " \003(\t\022(\n\033stream_ack_deadline_seconds\030\005 \001(" + + "\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030max_outstan" + + "ding_messages\030\007 \001(\003\022\035\n\025max_outstanding_b" + + "ytes\030\010 \001(\003\"\236\005\n\025StreamingPullResponse\022<\n\021" + + "received_messages\030\001 \003(\0132!.google.pubsub." + + "v1.ReceivedMessage\022a\n\030acknowledge_confir" + + "mation\030\005 \001(\0132?.google.pubsub.v1.Streamin" + + "gPullResponse.AcknowledgeConfirmation\022o\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132" + + "E.google.pubsub.v1.StreamingPullResponse" + + ".ModifyAckDeadlineConfirmation\022_\n\027subscr" + + "iption_properties\030\004 \001(\0132>.google.pubsub." + + "v1.StreamingPullResponse.SubscriptionPro" + + "perties\032^\n\027AcknowledgeConfirmation\022\017\n\007ac" + + "k_ids\030\001 \003(\t\022\027\n\017invalid_ack_ids\030\002 \003(\t\022\031\n\021" + + "unordered_ack_ids\030\003 \003(\t\032I\n\035ModifyAckDead" + + "lineConfirmation\022\017\n\007ack_ids\030\001 \003(\t\022\027\n\017inv" + + "alid_ack_ids\030\002 \003(\t\032a\n\026SubscriptionProper" + + "ties\022%\n\035exactly_once_delivery_enabled\030\001 " + + "\001(\010\022 \n\030message_ordering_enabled\030\002 \001(\010J\004\010" + + "\002\020\003\"\203\002\n\025CreateSnapshotRequest\0224\n\004name\030\001 " + + "\001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snaps" + + "hot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsu" + + "b.googleapis.com/Subscription\022C\n\006labels\030" + + "\003 \003(\01323.google.pubsub.v1.CreateSnapshotR" + + "equest.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnap" + + "shotRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.p" + + "ubsub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\257\002\n" + + "\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB " + + "\372A\035\n\033pubsub.googleapis.com/Topic\022/\n\013expi" + + "re_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "p\0226\n\006labels\030\004 \003(\0132&.google.pubsub.v1.Sna" + + "pshot.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.go" + + "ogleapis.com/Snapshot\022\'projects/{project" + + "}/snapshots/{snapshot}\"N\n\022GetSnapshotReq" + "uest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.g" - + "oogleapis.com/Snapshot\"\276\001\n\013SeekRequest\022@" - + "\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goo" - + "gleapis.com/Subscription\022*\n\004time\030\002 \001(\0132\032" - + ".google.protobuf.TimestampH\000\0227\n\010snapshot" - + "\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/Snaps" - + "hotH\000B\010\n\006target\"\016\n\014SeekResponse2\243\013\n\tPubl" - + "isher\022q\n\013CreateTopic\022\027.google.pubsub.v1." - + "Topic\032\027.google.pubsub.v1.Topic\"0\202\323\344\223\002#\032\036" - + "/v1/{name=projects/*/topics/*}:\001*\332A\004name" - + "\022}\n\013UpdateTopic\022$.google.pubsub.v1.Updat" - + "eTopicRequest\032\027.google.pubsub.v1.Topic\"/" - + "\202\323\344\223\002)2$/v1/{topic.name=projects/*/topic" - + "s/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1.P" - + "ublishRequest\032!.google.pubsub.v1.Publish" - + "Response\"C\202\323\344\223\002,\"\'/v1/{topic=projects/*/" - + "topics/*}:publish:\001*\332A\016topic,messages\022w\n" - + "\010GetTopic\022!.google.pubsub.v1.GetTopicReq" - + "uest\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002!\022\037/" - + "v1/{topic=projects/*/topics/*}\332A\005topic\022\212" - + "\001\n\nListTopics\022#.google.pubsub.v1.ListTop" - + "icsRequest\032$.google.pubsub.v1.ListTopics" - + "Response\"1\202\323\344\223\002!\022\037/v1/{project=projects/" - + "*}/topics\332A\007project\022\272\001\n\026ListTopicSubscri" - + "ptions\022/.google.pubsub.v1.ListTopicSubsc" - + "riptionsRequest\0320.google.pubsub.v1.ListT" - + "opicSubscriptionsResponse\"=\202\323\344\223\002/\022-/v1/{" - + "topic=projects/*/topics/*}/subscriptions" - + "\332A\005topic\022\252\001\n\022ListTopicSnapshots\022+.google" - + ".pubsub.v1.ListTopicSnapshotsRequest\032,.g" - + "oogle.pubsub.v1.ListTopicSnapshotsRespon" - + "se\"9\202\323\344\223\002+\022)/v1/{topic=projects/*/topics" - + "/*}/snapshots\332A\005topic\022|\n\013DeleteTopic\022$.g" - + "oogle.pubsub.v1.DeleteTopicRequest\032\026.goo" - + "gle.protobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topic=p" - + "rojects/*/topics/*}\332A\005topic\022\255\001\n\022DetachSu" - + "bscription\022+.google.pubsub.v1.DetachSubs" - + "criptionRequest\032,.google.pubsub.v1.Detac" - + "hSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{subs" - + "cription=projects/*/subscriptions/*}:det" - + "ach\032p\312A\025pubsub.googleapis.com\322AUhttps://" - + "www.googleapis.com/auth/cloud-platform,h" - + "ttps://www.googleapis.com/auth/pubsub2\240\025" - + "\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036.go" - + "ogle.pubsub.v1.Subscription\032\036.google.pub" - + "sub.v1.Subscription\"^\202\323\344\223\002*\032%/v1/{name=p" - + "rojects/*/subscriptions/*}:\001*\332A+name,top" - + "ic,push_config,ack_deadline_seconds\022\241\001\n\017" - + "GetSubscription\022(.google.pubsub.v1.GetSu" - + "bscriptionRequest\032\036.google.pubsub.v1.Sub" - + "scription\"D\202\323\344\223\002/\022-/v1/{subscription=pro" - + "jects/*/subscriptions/*}\332A\014subscription\022" - + "\240\001\n\022UpdateSubscription\022+.google.pubsub.v" - + "1.UpdateSubscriptionRequest\032\036.google.pub" - + "sub.v1.Subscription\"=\202\323\344\223\002722/v1/{subscr" - + "iption.name=projects/*/subscriptions/*}:" - + "\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsub" - + ".v1.ListSubscriptionsRequest\032+.google.pu" - + "bsub.v1.ListSubscriptionsResponse\"8\202\323\344\223\002" - + "(\022&/v1/{project=projects/*}/subscription" - + "s\332A\007project\022\237\001\n\022DeleteSubscription\022+.goo" - + "gle.pubsub.v1.DeleteSubscriptionRequest\032" - + "\026.google.protobuf.Empty\"D\202\323\344\223\002/*-/v1/{su" - + "bscription=projects/*/subscriptions/*}\332A" - + "\014subscription\022\317\001\n\021ModifyAckDeadline\022*.go" - + "ogle.pubsub.v1.ModifyAckDeadlineRequest\032" - + "\026.google.protobuf.Empty\"v\202\323\344\223\002D\"?/v1/{su" - + "bscription=projects/*/subscriptions/*}:m" - + "odifyAckDeadline:\001*\332A)subscription,ack_i" - + "ds,ack_deadline_seconds\022\250\001\n\013Acknowledge\022" - + "$.google.pubsub.v1.AcknowledgeRequest\032\026." - + "google.protobuf.Empty\"[\202\323\344\223\002>\"9/v1/{subs" - + "cription=projects/*/subscriptions/*}:ack" - + "nowledge:\001*\332A\024subscription,ack_ids\022\320\001\n\004P" - + "ull\022\035.google.pubsub.v1.PullRequest\032\036.goo" - + "gle.pubsub.v1.PullResponse\"\210\001\202\323\344\223\0027\"2/v1" - + "/{subscription=projects/*/subscriptions/" - + "*}:pull:\001*\332A,subscription,return_immedia" - + "tely,max_messages\332A\031subscription,max_mes" - + "sages\022f\n\rStreamingPull\022&.google.pubsub.v" - + "1.StreamingPullRequest\032\'.google.pubsub.v" - + "1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Modify" - + "PushConfig\022).google.pubsub.v1.ModifyPush" - + "ConfigRequest\032\026.google.protobuf.Empty\"d\202" - + "\323\344\223\002C\">/v1/{subscription=projects/*/subs" - + "criptions/*}:modifyPushConfig:\001*\332A\030subsc" - + "ription,push_config\022\211\001\n\013GetSnapshot\022$.go" - + "ogle.pubsub.v1.GetSnapshotRequest\032\032.goog" - + "le.pubsub.v1.Snapshot\"8\202\323\344\223\002\'\022%/v1/{snap" - + "shot=projects/*/snapshots/*}\332A\010snapshot\022" - + "\226\001\n\rListSnapshots\022&.google.pubsub.v1.Lis" - + "tSnapshotsRequest\032\'.google.pubsub.v1.Lis" - + "tSnapshotsResponse\"4\202\323\344\223\002$\022\"/v1/{project" - + "=projects/*}/snapshots\332A\007project\022\227\001\n\016Cre" - + "ateSnapshot\022\'.google.pubsub.v1.CreateSna" - + "pshotRequest\032\032.google.pubsub.v1.Snapshot" - + "\"@\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots" - + "/*}:\001*\332A\021name,subscription\022\214\001\n\016UpdateSna" - + "pshot\022\'.google.pubsub.v1.UpdateSnapshotR" - + "equest\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223" - + "\002/2*/v1/{snapshot.name=projects/*/snapsh" - + "ots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pu" - + "bsub.v1.DeleteSnapshotRequest\032\026.google.p" - + "rotobuf.Empty\"8\202\323\344\223\002\'*%/v1/{snapshot=pro" - + "jects/*/snapshots/*}\332A\010snapshot\022\204\001\n\004Seek" - + "\022\035.google.pubsub.v1.SeekRequest\032\036.google" - + ".pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{su" - + "bscription=projects/*/subscriptions/*}:s" - + "eek:\001*\032p\312A\025pubsub.googleapis.com\322AUhttps" - + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/pubsub" - + "B\256\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001" - + "Z6google.golang.org/genproto/googleapis/" - + "pubsub/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSu" - + "b.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::" - + "Cloud::PubSub::V1b\006proto3" + + "oogleapis.com/Snapshot\"\203\001\n\024ListSnapshots" + + "Request\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudr" + + "esourcemanager.googleapis.com/Project\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025" + + "ListSnapshotsResponse\022-\n\tsnapshots\030\001 \003(\013" + + "2\032.google.pubsub.v1.Snapshot\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"Q\n\025DeleteSnapshotRequest\0228" + + "\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googlea" + + "pis.com/Snapshot\"\276\001\n\013SeekRequest\022@\n\014subs" + + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + + "s.com/Subscription\022*\n\004time\030\002 \001(\0132\032.googl" + + "e.protobuf.TimestampH\000\0227\n\010snapshot\030\003 \001(\t" + + "B#\372A \n\036pubsub.googleapis.com/SnapshotH\000B" + + "\010\n\006target\"\016\n\014SeekResponse2\243\013\n\tPublisher\022" + + "q\n\013CreateTopic\022\027.google.pubsub.v1.Topic\032" + + "\027.google.pubsub.v1.Topic\"0\202\323\344\223\002#\032\036/v1/{n" + + "ame=projects/*/topics/*}:\001*\332A\004name\022}\n\013Up" + + "dateTopic\022$.google.pubsub.v1.UpdateTopic" + + "Request\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002)" + + "2$/v1/{topic.name=projects/*/topics/*}:\001" + + "*\022\223\001\n\007Publish\022 .google.pubsub.v1.Publish" + + "Request\032!.google.pubsub.v1.PublishRespon" + + "se\"C\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" + + "/*}:publish:\001*\332A\016topic,messages\022w\n\010GetTo" + + "pic\022!.google.pubsub.v1.GetTopicRequest\032\027" + + ".google.pubsub.v1.Topic\"/\202\323\344\223\002!\022\037/v1/{to" + + "pic=projects/*/topics/*}\332A\005topic\022\212\001\n\nLis" + + "tTopics\022#.google.pubsub.v1.ListTopicsReq" + + "uest\032$.google.pubsub.v1.ListTopicsRespon" + + "se\"1\202\323\344\223\002!\022\037/v1/{project=projects/*}/top" + + "ics\332A\007project\022\272\001\n\026ListTopicSubscriptions" + + "\022/.google.pubsub.v1.ListTopicSubscriptio" + + "nsRequest\0320.google.pubsub.v1.ListTopicSu" + + "bscriptionsResponse\"=\202\323\344\223\002/\022-/v1/{topic=" + + "projects/*/topics/*}/subscriptions\332A\005top" + + "ic\022\252\001\n\022ListTopicSnapshots\022+.google.pubsu" + + "b.v1.ListTopicSnapshotsRequest\032,.google." + + "pubsub.v1.ListTopicSnapshotsResponse\"9\202\323" + + "\344\223\002+\022)/v1/{topic=projects/*/topics/*}/sn" + + "apshots\332A\005topic\022|\n\013DeleteTopic\022$.google." + + "pubsub.v1.DeleteTopicRequest\032\026.google.pr" + + "otobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topic=project" + + "s/*/topics/*}\332A\005topic\022\255\001\n\022DetachSubscrip" + + "tion\022+.google.pubsub.v1.DetachSubscripti" + + "onRequest\032,.google.pubsub.v1.DetachSubsc" + + "riptionResponse\"<\202\323\344\223\0026\"4/v1/{subscripti" + + "on=projects/*/subscriptions/*}:detach\032p\312" + + "A\025pubsub.googleapis.com\322AUhttps://www.go" + + "ogleapis.com/auth/cloud-platform,https:/" + + "/www.googleapis.com/auth/pubsub2\240\025\n\nSubs" + + "criber\022\264\001\n\022CreateSubscription\022\036.google.p" + + "ubsub.v1.Subscription\032\036.google.pubsub.v1" + + ".Subscription\"^\202\323\344\223\002*\032%/v1/{name=project" + + "s/*/subscriptions/*}:\001*\332A+name,topic,pus" + + "h_config,ack_deadline_seconds\022\241\001\n\017GetSub" + + "scription\022(.google.pubsub.v1.GetSubscrip" + + "tionRequest\032\036.google.pubsub.v1.Subscript" + + "ion\"D\202\323\344\223\002/\022-/v1/{subscription=projects/" + + "*/subscriptions/*}\332A\014subscription\022\240\001\n\022Up" + + "dateSubscription\022+.google.pubsub.v1.Upda" + + "teSubscriptionRequest\032\036.google.pubsub.v1" + + ".Subscription\"=\202\323\344\223\002722/v1/{subscription" + + ".name=projects/*/subscriptions/*}:\001*\022\246\001\n" + + "\021ListSubscriptions\022*.google.pubsub.v1.Li" + + "stSubscriptionsRequest\032+.google.pubsub.v" + + "1.ListSubscriptionsResponse\"8\202\323\344\223\002(\022&/v1" + + "/{project=projects/*}/subscriptions\332A\007pr" + + "oject\022\237\001\n\022DeleteSubscription\022+.google.pu" + + "bsub.v1.DeleteSubscriptionRequest\032\026.goog" + + "le.protobuf.Empty\"D\202\323\344\223\002/*-/v1/{subscrip" + + "tion=projects/*/subscriptions/*}\332A\014subsc" + + "ription\022\317\001\n\021ModifyAckDeadline\022*.google.p" + + "ubsub.v1.ModifyAckDeadlineRequest\032\026.goog" + + "le.protobuf.Empty\"v\202\323\344\223\002D\"?/v1/{subscrip" + + "tion=projects/*/subscriptions/*}:modifyA" + + "ckDeadline:\001*\332A)subscription,ack_ids,ack" + + "_deadline_seconds\022\250\001\n\013Acknowledge\022$.goog" + + "le.pubsub.v1.AcknowledgeRequest\032\026.google" + + ".protobuf.Empty\"[\202\323\344\223\002>\"9/v1/{subscripti" + + "on=projects/*/subscriptions/*}:acknowled" + + "ge:\001*\332A\024subscription,ack_ids\022\320\001\n\004Pull\022\035." + + "google.pubsub.v1.PullRequest\032\036.google.pu" + + "bsub.v1.PullResponse\"\210\001\202\323\344\223\0027\"2/v1/{subs" + + "cription=projects/*/subscriptions/*}:pul" + + "l:\001*\332A,subscription,return_immediately,m" + + "ax_messages\332A\031subscription,max_messages\022" + + "f\n\rStreamingPull\022&.google.pubsub.v1.Stre" + + "amingPullRequest\032\'.google.pubsub.v1.Stre" + + "amingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushCo" + + "nfig\022).google.pubsub.v1.ModifyPushConfig" + + "Request\032\026.google.protobuf.Empty\"d\202\323\344\223\002C\"" + + ">/v1/{subscription=projects/*/subscripti" + + "ons/*}:modifyPushConfig:\001*\332A\030subscriptio" + + "n,push_config\022\211\001\n\013GetSnapshot\022$.google.p" + + "ubsub.v1.GetSnapshotRequest\032\032.google.pub" + + "sub.v1.Snapshot\"8\202\323\344\223\002\'\022%/v1/{snapshot=p" + + "rojects/*/snapshots/*}\332A\010snapshot\022\226\001\n\rLi" + + "stSnapshots\022&.google.pubsub.v1.ListSnaps" + + "hotsRequest\032\'.google.pubsub.v1.ListSnaps" + + "hotsResponse\"4\202\323\344\223\002$\022\"/v1/{project=proje" + + "cts/*}/snapshots\332A\007project\022\227\001\n\016CreateSna" + + "pshot\022\'.google.pubsub.v1.CreateSnapshotR" + + "equest\032\032.google.pubsub.v1.Snapshot\"@\202\323\344\223" + + "\002&\032!/v1/{name=projects/*/snapshots/*}:\001*" + + "\332A\021name,subscription\022\214\001\n\016UpdateSnapshot\022" + + "\'.google.pubsub.v1.UpdateSnapshotRequest" + + "\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v" + + "1/{snapshot.name=projects/*/snapshots/*}" + + ":\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v" + + "1.DeleteSnapshotRequest\032\026.google.protobu" + + "f.Empty\"8\202\323\344\223\002\'*%/v1/{snapshot=projects/" + + "*/snapshots/*}\332A\010snapshot\022\204\001\n\004Seek\022\035.goo" + + "gle.pubsub.v1.SeekRequest\032\036.google.pubsu" + + "b.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscrip" + + "tion=projects/*/subscriptions/*}:seek:\001*" + + "\032p\312A\025pubsub.googleapis.com\322AUhttps://www" + + ".googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/pubsubB\256\001\n\024c" + + "om.google.pubsub.v1B\013PubsubProtoP\001Z6goog" + + "le.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::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -591,7 +592,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SchemaSettings_descriptor, new java.lang.String[] { - "Schema", "Encoding", + "Schema", "Encoding", "FirstRevisionId", "LastRevisionId", }); internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 1576416ee86d..8565ba78e03d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -139,7 +139,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1107 + * google/pubsub/v1/pubsub.proto;l=1117 * @return The returnImmediately. */ @java.lang.Override @@ -676,7 +676,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1107 + * google/pubsub/v1/pubsub.proto;l=1117 * @return The returnImmediately. */ @java.lang.Override @@ -702,7 +702,7 @@ public boolean getReturnImmediately() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1107 + * google/pubsub/v1/pubsub.proto;l=1117 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -731,7 +731,7 @@ public Builder setReturnImmediately(boolean value) { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1107 + * google/pubsub/v1/pubsub.proto;l=1117 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 7c9a4f9540a4..43814a65513b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -71,7 +71,7 @@ public interface PullRequestOrBuilder *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1107 + * google/pubsub/v1/pubsub.proto;l=1117 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java new file mode 100644 index 000000000000..f133b3c34781 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -0,0 +1,820 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Request for the `RollbackSchema` method.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.RollbackSchemaRequest} + */ +public final class RollbackSchemaRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.RollbackSchemaRequest) + RollbackSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RollbackSchemaRequest.newBuilder() to construct. + private RollbackSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RollbackSchemaRequest() { + name_ = ""; + revisionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RollbackSchemaRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.RollbackSchemaRequest.class, + com.google.pubsub.v1.RollbackSchemaRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
    +   * Required. The schema being rolled back with revision id.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The schema being rolled back with revision id.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object revisionId_; + /** + * + * + *
    +   * Required. The revision ID to roll back to.
    +   * It must be a revision of the same schema.
    +   *   Example: c7cfa2a8
    +   * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. The revision ID to roll back to.
    +   * It must be a revision of the same schema.
    +   *   Example: c7cfa2a8
    +   * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.RollbackSchemaRequest)) { + return super.equals(obj); + } + com.google.pubsub.v1.RollbackSchemaRequest other = + (com.google.pubsub.v1.RollbackSchemaRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.RollbackSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Request for the `RollbackSchema` method.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.RollbackSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.RollbackSchemaRequest) + com.google.pubsub.v1.RollbackSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.RollbackSchemaRequest.class, + com.google.pubsub.v1.RollbackSchemaRequest.Builder.class); + } + + // Construct using com.google.pubsub.v1.RollbackSchemaRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + revisionId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.SchemaProto + .internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.RollbackSchemaRequest getDefaultInstanceForType() { + return com.google.pubsub.v1.RollbackSchemaRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.RollbackSchemaRequest build() { + com.google.pubsub.v1.RollbackSchemaRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.RollbackSchemaRequest buildPartial() { + com.google.pubsub.v1.RollbackSchemaRequest result = + new com.google.pubsub.v1.RollbackSchemaRequest(this); + result.name_ = name_; + result.revisionId_ = revisionId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.RollbackSchemaRequest) { + return mergeFrom((com.google.pubsub.v1.RollbackSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.RollbackSchemaRequest other) { + if (other == com.google.pubsub.v1.RollbackSchemaRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + revisionId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. The schema being rolled back with revision id.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The schema being rolled back with revision id.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The schema being rolled back with revision id.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The schema being rolled back with revision id.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The schema being rolled back with revision id.
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object revisionId_ = ""; + /** + * + * + *
    +     * Required. The revision ID to roll back to.
    +     * It must be a revision of the same schema.
    +     *   Example: c7cfa2a8
    +     * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. The revision ID to roll back to.
    +     * It must be a revision of the same schema.
    +     *   Example: c7cfa2a8
    +     * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. The revision ID to roll back to.
    +     * It must be a revision of the same schema.
    +     *   Example: c7cfa2a8
    +     * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + revisionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The revision ID to roll back to.
    +     * It must be a revision of the same schema.
    +     *   Example: c7cfa2a8
    +     * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + + revisionId_ = getDefaultInstance().getRevisionId(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. The revision ID to roll back to.
    +     * It must be a revision of the same schema.
    +     *   Example: c7cfa2a8
    +     * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + revisionId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.RollbackSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.RollbackSchemaRequest) + private static final com.google.pubsub.v1.RollbackSchemaRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.RollbackSchemaRequest(); + } + + public static com.google.pubsub.v1.RollbackSchemaRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.RollbackSchemaRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..4c5e776bcb14 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/schema.proto + +package com.google.pubsub.v1; + +public interface RollbackSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.RollbackSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The schema being rolled back with revision id.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
    +   * Required. The schema being rolled back with revision id.
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Required. The revision ID to roll back to.
    +   * It must be a revision of the same schema.
    +   *   Example: c7cfa2a8
    +   * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
    +   * Required. The revision ID to roll back to.
    +   * It must be a revision of the same schema.
    +   *   Example: c7cfa2a8
    +   * 
    + * + * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index bb7ac7757a6c..ac2a12b5e3ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -41,6 +41,7 @@ private Schema() { name_ = ""; type_ = 0; definition_ = ""; + revisionId_ = ""; } @java.lang.Override @@ -363,6 +364,113 @@ public com.google.protobuf.ByteString getDefinitionBytes() { } } + public static final int REVISION_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object revisionId_; + /** + * + * + *
    +   * Output only. Immutable. The revision ID of the schema.
    +   * 
    + * + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
    +   * Output only. Immutable. The revision ID of the schema.
    +   * 
    + * + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp revisionCreateTime_; + /** + * + * + *
    +   * Output only. The timestamp that the revision was created.
    +   * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + @java.lang.Override + public boolean hasRevisionCreateTime() { + return revisionCreateTime_ != null; + } + /** + * + * + *
    +   * Output only. The timestamp that the revision was created.
    +   * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRevisionCreateTime() { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + /** + * + * + *
    +   * Output only. The timestamp that the revision was created.
    +   * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + return getRevisionCreateTime(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -386,6 +494,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, definition_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, revisionId_); + } + if (revisionCreateTime_ != null) { + output.writeMessage(6, getRevisionCreateTime()); + } getUnknownFields().writeTo(output); } @@ -404,6 +518,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, definition_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); + } + if (revisionCreateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRevisionCreateTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -422,6 +542,11 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; if (!getDefinition().equals(other.getDefinition())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; + if (hasRevisionCreateTime()) { + if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -439,6 +564,12 @@ public int hashCode() { hash = (53 * hash) + type_; hash = (37 * hash) + DEFINITION_FIELD_NUMBER; hash = (53 * hash) + getDefinition().hashCode(); + hash = (37 * hash) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + if (hasRevisionCreateTime()) { + hash = (37 * hash) + REVISION_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRevisionCreateTime().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -580,6 +711,14 @@ public Builder clear() { definition_ = ""; + revisionId_ = ""; + + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTime_ = null; + } else { + revisionCreateTime_ = null; + revisionCreateTimeBuilder_ = null; + } return this; } @@ -608,6 +747,12 @@ public com.google.pubsub.v1.Schema buildPartial() { result.name_ = name_; result.type_ = type_; result.definition_ = definition_; + result.revisionId_ = revisionId_; + if (revisionCreateTimeBuilder_ == null) { + result.revisionCreateTime_ = revisionCreateTime_; + } else { + result.revisionCreateTime_ = revisionCreateTimeBuilder_.build(); + } onBuilt(); return result; } @@ -668,6 +813,13 @@ public Builder mergeFrom(com.google.pubsub.v1.Schema other) { definition_ = other.definition_; onChanged(); } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + onChanged(); + } + if (other.hasRevisionCreateTime()) { + mergeRevisionCreateTime(other.getRevisionCreateTime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -712,6 +864,19 @@ public Builder mergeFrom( break; } // case 26 + case 34: + { + revisionId_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 50: + { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1046,6 +1211,325 @@ public Builder setDefinitionBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object revisionId_ = ""; + /** + * + * + *
    +     * Output only. Immutable. The revision ID of the schema.
    +     * 
    + * + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Output only. Immutable. The revision ID of the schema.
    +     * 
    + * + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Output only. Immutable. The revision ID of the schema.
    +     * 
    + * + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + revisionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Immutable. The revision ID of the schema.
    +     * 
    + * + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + + revisionId_ = getDefaultInstance().getRevisionId(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Immutable. The revision ID of the schema.
    +     * 
    + * + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + revisionId_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp revisionCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revisionCreateTimeBuilder_; + /** + * + * + *
    +     * Output only. The timestamp that the revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + public boolean hasRevisionCreateTime() { + return revisionCreateTimeBuilder_ != null || revisionCreateTime_ != null; + } + /** + * + * + *
    +     * Output only. The timestamp that the revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + public com.google.protobuf.Timestamp getRevisionCreateTime() { + if (revisionCreateTimeBuilder_ == null) { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } else { + return revisionCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. The timestamp that the revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + revisionCreateTime_ = value; + onChanged(); + } else { + revisionCreateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
    +     * Output only. The timestamp that the revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTime_ = builderForValue.build(); + onChanged(); + } else { + revisionCreateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
    +     * Output only. The timestamp that the revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { + if (revisionCreateTimeBuilder_ == null) { + if (revisionCreateTime_ != null) { + revisionCreateTime_ = + com.google.protobuf.Timestamp.newBuilder(revisionCreateTime_) + .mergeFrom(value) + .buildPartial(); + } else { + revisionCreateTime_ = value; + } + onChanged(); + } else { + revisionCreateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
    +     * Output only. The timestamp that the revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRevisionCreateTime() { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTime_ = null; + onChanged(); + } else { + revisionCreateTime_ = null; + revisionCreateTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
    +     * Output only. The timestamp that the revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { + + onChanged(); + return getRevisionCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. The timestamp that the revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { + if (revisionCreateTimeBuilder_ != null) { + return revisionCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; + } + } + /** + * + * + *
    +     * Output only. The timestamp that the revision was created.
    +     * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRevisionCreateTimeFieldBuilder() { + if (revisionCreateTimeBuilder_ == null) { + revisionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), getParentForChildren(), isClean()); + revisionCreateTime_ = null; + } + return revisionCreateTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 30c88d8aa204..34ad87bb7da1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -103,4 +103,74 @@ public interface SchemaOrBuilder * @return The bytes for definition. */ com.google.protobuf.ByteString getDefinitionBytes(); + + /** + * + * + *
    +   * Output only. Immutable. The revision ID of the schema.
    +   * 
    + * + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
    +   * Output only. Immutable. The revision ID of the schema.
    +   * 
    + * + * + * string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); + + /** + * + * + *
    +   * Output only. The timestamp that the revision was created.
    +   * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the revisionCreateTime field is set. + */ + boolean hasRevisionCreateTime(); + /** + * + * + *
    +   * Output only. The timestamp that the revision was created.
    +   * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The revisionCreateTime. + */ + com.google.protobuf.Timestamp getRevisionCreateTime(); + /** + * + * + *
    +   * Output only. The timestamp that the revision was created.
    +   * 
    + * + * + * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index f692cb8914ed..2a4147c0fc72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -47,6 +47,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -80,73 +100,107 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pubsub.v1\032\034google/api/annotations.proto\032" + "\027google/api/client.proto\032\037google/api/fie" + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032\033google/protobuf/empty.proto\"\341\001\n\006Sc" - + "hema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035." - + "google.pubsub.v1.Schema.Type\022\022\n\ndefiniti" - + "on\030\003 \001(\t\";\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\023" - + "\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n\034pubs" - + "ub.googleapis.com/Schema\022#projects/{proj" - + "ect}/schemas/{schema}\"\215\001\n\023CreateSchemaRe" - + "quest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubsub.go" - + "ogleapis.com/Schema\022-\n\006schema\030\002 \001(\0132\030.go" - + "ogle.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschema_id\030" - + "\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001 \001(\tB" - + "$\340A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n" - + "\004view\030\002 \001(\0162\034.google.pubsub.v1.SchemaVie" - + "w\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030\001 \001(\t" - + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" - + "s.com/Project\022*\n\004view\030\002 \001(\0162\034.google.pub" - + "sub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\n" - + "page_token\030\004 \001(\t\"Y\n\023ListSchemasResponse\022" - + ")\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1.Sche" - + "ma\022\027\n\017next_page_token\030\002 \001(\t\"I\n\023DeleteSch" - + "emaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub" - + ".googleapis.com/Schema\"\213\001\n\025ValidateSchem" - + "aRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudr" - + "esourcemanager.googleapis.com/Project\022-\n" - + "\006schema\030\002 \001(\0132\030.google.pubsub.v1.SchemaB" - + "\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n\026Valid" - + "ateMessageRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" - + "-\n+cloudresourcemanager.googleapis.com/P" - + "roject\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub.google" - + "apis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132\030.goog" - + "le.pubsub.v1.SchemaH\000\022\017\n\007message\030\004 \001(\014\022," - + "\n\010encoding\030\005 \001(\0162\032.google.pubsub.v1.Enco" - + "dingB\r\n\013schema_spec\"\031\n\027ValidateMessageRe" - + "sponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIEW_UNSP" - + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010Encodi" - + "ng\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JSON\020\001\022\n" - + "\n\006BINARY\020\0022\367\007\n\rSchemaService\022\232\001\n\014CreateS" - + "chema\022%.google.pubsub.v1.CreateSchemaReq" - + "uest\032\030.google.pubsub.v1.Schema\"I\202\323\344\223\002)\"\037" - + "/v1/{parent=projects/*}/schemas:\006schema\332" - + "A\027parent,schema,schema_id\022y\n\tGetSchema\022\"" - + ".google.pubsub.v1.GetSchemaRequest\032\030.goo" - + "gle.pubsub.v1.Schema\".\202\323\344\223\002!\022\037/v1/{name=" - + "projects/*/schemas/*}\332A\004name\022\214\001\n\013ListSch" - + "emas\022$.google.pubsub.v1.ListSchemasReque" - + "st\032%.google.pubsub.v1.ListSchemasRespons" - + "e\"0\202\323\344\223\002!\022\037/v1/{parent=projects/*}/schem" - + "as\332A\006parent\022}\n\014DeleteSchema\022%.google.pub" - + "sub.v1.DeleteSchemaRequest\032\026.google.prot" - + "obuf.Empty\".\202\323\344\223\002!*\037/v1/{name=projects/*" - + "/schemas/*}\332A\004name\022\250\001\n\016ValidateSchema\022\'." - + "google.pubsub.v1.ValidateSchemaRequest\032(" - + ".google.pubsub.v1.ValidateSchemaResponse" - + "\"C\202\323\344\223\002-\"(/v1/{parent=projects/*}/schema" - + "s:validate:\001*\332A\rparent,schema\022\242\001\n\017Valida" - + "teMessage\022(.google.pubsub.v1.ValidateMes" - + "sageRequest\032).google.pubsub.v1.ValidateM" - + "essageResponse\":\202\323\344\223\0024\"//v1/{parent=proj" - + "ects/*}/schemas:validateMessage:\001*\032p\312A\025p" - + "ubsub.googleapis.com\322AUhttps://www.googl" - + "eapis.com/auth/cloud-platform,https://ww" - + "w.googleapis.com/auth/pubsubB\256\001\n\024com.goo" - + "gle.pubsub.v1B\013SchemaProtoP\001Z6google.gol" - + "ang.org/genproto/googleapis/pubsub/v1;pu" - + "bsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Googl" - + "e\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSu" - + "b::V1b\006proto3" + + "roto\032\033google/protobuf/empty.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\275\002\n\006Schema\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035.google." + + "pubsub.v1.Schema.Type\022\022\n\ndefinition\030\003 \001(" + + "\t\022\033\n\013revision_id\030\004 \001(\tB\006\340A\005\340A\003\022=\n\024revisi" + + "on_create_time\030\006 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\";\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + + "D\020\000\022\023\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n" + + "\034pubsub.googleapis.com/Schema\022#projects/" + + "{project}/schemas/{schema}\"\215\001\n\023CreateSch" + + "emaRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubs" + + "ub.googleapis.com/Schema\022-\n\006schema\030\002 \001(\013" + + "2\030.google.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschem" + + "a_id\030\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001" + + " \001(\tB$\340A\002\372A\036\n\034pubsub.googleapis.com/Sche" + + "ma\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1.Sche" + + "maView\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022*\n\004view\030\002 \001(\0162\034.googl" + + "e.pubsub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(" + + "\005\022\022\n\npage_token\030\004 \001(\t\"Y\n\023ListSchemasResp" + + "onse\022)\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1" + + ".Schema\022\027\n\017next_page_token\030\002 \001(\t\"\243\001\n\032Lis" + + "tSchemaRevisionsRequest\0222\n\004name\030\001 \001(\tB$\340" + + "A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n\004v" + + "iew\030\002 \001(\0162\034.google.pubsub.v1.SchemaView\022" + + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"a" + + "\n\033ListSchemaRevisionsResponse\022)\n\007schemas" + + "\030\001 \003(\0132\030.google.pubsub.v1.Schema\022\027\n\017next" + + "_page_token\030\002 \001(\t\"x\n\023CommitSchemaRequest" + + "\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googleapi" + + "s.com/Schema\022-\n\006schema\030\002 \001(\0132\030.google.pu" + + "bsub.v1.SchemaB\003\340A\002\"e\n\025RollbackSchemaReq" + + "uest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" + + "eapis.com/Schema\022\030\n\013revision_id\030\002 \001(\tB\003\340" + + "A\002\"k\n\033DeleteSchemaRevisionRequest\0222\n\004nam" + + "e\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googleapis.com/S" + + "chema\022\030\n\013revision_id\030\002 \001(\tB\003\340A\002\"I\n\023Delet" + + "eSchemaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pu" + + "bsub.googleapis.com/Schema\"\213\001\n\025ValidateS" + + "chemaRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cl" + + "oudresourcemanager.googleapis.com/Projec" + + "t\022-\n\006schema\030\002 \001(\0132\030.google.pubsub.v1.Sch" + + "emaB\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n\026V" + + "alidateMessageRequest\022C\n\006parent\030\001 \001(\tB3\340" + + "A\002\372A-\n+cloudresourcemanager.googleapis.c" + + "om/Project\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub.go" + + "ogleapis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132\030." + + "google.pubsub.v1.SchemaH\000\022\017\n\007message\030\004 \001" + + "(\014\022,\n\010encoding\030\005 \001(\0162\032.google.pubsub.v1." + + "EncodingB\r\n\013schema_spec\"\031\n\027ValidateMessa" + + "geResponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIEW_" + + "UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010En" + + "coding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JSON" + + "\020\001\022\n\n\006BINARY\020\0022\210\r\n\rSchemaService\022\232\001\n\014Cre" + + "ateSchema\022%.google.pubsub.v1.CreateSchem" + + "aRequest\032\030.google.pubsub.v1.Schema\"I\202\323\344\223" + + "\002)\"\037/v1/{parent=projects/*}/schemas:\006sch" + + "ema\332A\027parent,schema,schema_id\022y\n\tGetSche" + + "ma\022\".google.pubsub.v1.GetSchemaRequest\032\030" + + ".google.pubsub.v1.Schema\".\202\323\344\223\002!\022\037/v1/{n" + + "ame=projects/*/schemas/*}\332A\004name\022\214\001\n\013Lis" + + "tSchemas\022$.google.pubsub.v1.ListSchemasR" + + "equest\032%.google.pubsub.v1.ListSchemasRes" + + "ponse\"0\202\323\344\223\002!\022\037/v1/{parent=projects/*}/s" + + "chemas\332A\006parent\022\260\001\n\023ListSchemaRevisions\022" + + ",.google.pubsub.v1.ListSchemaRevisionsRe" + + "quest\032-.google.pubsub.v1.ListSchemaRevis" + + "ionsResponse\"<\202\323\344\223\002/\022-/v1/{name=projects" + + "/*/schemas/*}:listRevisions\332A\004name\022\220\001\n\014C" + + "ommitSchema\022%.google.pubsub.v1.CommitSch" + + "emaRequest\032\030.google.pubsub.v1.Schema\"?\202\323" + + "\344\223\002+\"&/v1/{name=projects/*/schemas/*}:co" + + "mmit:\001*\332A\013name,schema\022\233\001\n\016RollbackSchema" + + "\022\'.google.pubsub.v1.RollbackSchemaReques" + + "t\032\030.google.pubsub.v1.Schema\"F\202\323\344\223\002-\"(/v1" + + "/{name=projects/*/schemas/*}:rollback:\001*" + + "\332A\020name,revision_id\022\252\001\n\024DeleteSchemaRevi" + + "sion\022-.google.pubsub.v1.DeleteSchemaRevi" + + "sionRequest\032\030.google.pubsub.v1.Schema\"I\202" + + "\323\344\223\0020*./v1/{name=projects/*/schemas/*}:d" + + "eleteRevision\332A\020name,revision_id\022}\n\014Dele" + + "teSchema\022%.google.pubsub.v1.DeleteSchema" + + "Request\032\026.google.protobuf.Empty\".\202\323\344\223\002!*" + + "\037/v1/{name=projects/*/schemas/*}\332A\004name\022" + + "\250\001\n\016ValidateSchema\022\'.google.pubsub.v1.Va" + + "lidateSchemaRequest\032(.google.pubsub.v1.V" + + "alidateSchemaResponse\"C\202\323\344\223\002-\"(/v1/{pare" + + "nt=projects/*}/schemas:validate:\001*\332A\rpar" + + "ent,schema\022\242\001\n\017ValidateMessage\022(.google." + + "pubsub.v1.ValidateMessageRequest\032).googl" + + "e.pubsub.v1.ValidateMessageResponse\":\202\323\344" + + "\223\0024\"//v1/{parent=projects/*}/schemas:val" + + "idateMessage:\001*\032p\312A\025pubsub.googleapis.co" + + "m\322AUhttps://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/au" + + "th/pubsubB\256\001\n\024com.google.pubsub.v1B\013Sche" + + "maProtoP\001Z6google.golang.org/genproto/go" + + "ogleapis/pubsub/v1;pubsub\370\001\001\252\002\026Google.Cl" + + "oud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002" + + "\031Google::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -157,13 +211,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_pubsub_v1_Schema_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_pubsub_v1_Schema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Schema_descriptor, new java.lang.String[] { - "Name", "Type", "Definition", + "Name", "Type", "Definition", "RevisionId", "RevisionCreateTime", }); internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor = getDescriptor().getMessageTypes().get(1); @@ -197,8 +252,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Schemas", "NextPageToken", }); - internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor = + internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor, + new java.lang.String[] { + "Name", "View", "PageSize", "PageToken", + }); + internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor, + new java.lang.String[] { + "Schemas", "NextPageToken", + }); + internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor, + new java.lang.String[] { + "Name", "Schema", + }); + internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor, + new java.lang.String[] { + "Name", "RevisionId", + }); + internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor, + new java.lang.String[] { + "Name", "RevisionId", + }); + internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor, @@ -206,7 +301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor, @@ -214,13 +309,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Schema", }); internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor, @@ -228,7 +323,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Name", "Schema", "Message", "Encoding", "SchemaSpec", }); internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor, @@ -249,6 +344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index a7174f36765f..c618f10d6c3e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -40,6 +40,8 @@ private SchemaSettings(com.google.protobuf.GeneratedMessageV3.Builder builder private SchemaSettings() { schema_ = ""; encoding_ = 0; + firstRevisionId_ = ""; + lastRevisionId_ = ""; } @java.lang.Override @@ -162,6 +164,112 @@ public com.google.pubsub.v1.Encoding getEncoding() { return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } + public static final int FIRST_REVISION_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object firstRevisionId_; + /** + * + * + *
    +   * The minimum (inclusive) revision allowed for validating messages. If empty
    +   * or not present, allow any revision to be validated against last_revision or
    +   * any revision created before.
    +   * 
    + * + * string first_revision_id = 3; + * + * @return The firstRevisionId. + */ + @java.lang.Override + public java.lang.String getFirstRevisionId() { + java.lang.Object ref = firstRevisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstRevisionId_ = s; + return s; + } + } + /** + * + * + *
    +   * The minimum (inclusive) revision allowed for validating messages. If empty
    +   * or not present, allow any revision to be validated against last_revision or
    +   * any revision created before.
    +   * 
    + * + * string first_revision_id = 3; + * + * @return The bytes for firstRevisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirstRevisionIdBytes() { + java.lang.Object ref = firstRevisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firstRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LAST_REVISION_ID_FIELD_NUMBER = 4; + private volatile java.lang.Object lastRevisionId_; + /** + * + * + *
    +   * The maximum (inclusive) revision allowed for validating messages. If empty
    +   * or not present, allow any revision to be validated against first_revision
    +   * or any revision created after.
    +   * 
    + * + * string last_revision_id = 4; + * + * @return The lastRevisionId. + */ + @java.lang.Override + public java.lang.String getLastRevisionId() { + java.lang.Object ref = lastRevisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastRevisionId_ = s; + return s; + } + } + /** + * + * + *
    +   * The maximum (inclusive) revision allowed for validating messages. If empty
    +   * or not present, allow any revision to be validated against first_revision
    +   * or any revision created after.
    +   * 
    + * + * string last_revision_id = 4; + * + * @return The bytes for lastRevisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLastRevisionIdBytes() { + java.lang.Object ref = lastRevisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -182,6 +290,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(2, encoding_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firstRevisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, firstRevisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastRevisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastRevisionId_); + } getUnknownFields().writeTo(output); } @@ -197,6 +311,12 @@ public int getSerializedSize() { if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, encoding_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firstRevisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firstRevisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastRevisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastRevisionId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -214,6 +334,8 @@ public boolean equals(final java.lang.Object obj) { if (!getSchema().equals(other.getSchema())) return false; if (encoding_ != other.encoding_) return false; + if (!getFirstRevisionId().equals(other.getFirstRevisionId())) return false; + if (!getLastRevisionId().equals(other.getLastRevisionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -229,6 +351,10 @@ public int hashCode() { hash = (53 * hash) + getSchema().hashCode(); hash = (37 * hash) + ENCODING_FIELD_NUMBER; hash = (53 * hash) + encoding_; + hash = (37 * hash) + FIRST_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirstRevisionId().hashCode(); + hash = (37 * hash) + LAST_REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getLastRevisionId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -370,6 +496,10 @@ public Builder clear() { encoding_ = 0; + firstRevisionId_ = ""; + + lastRevisionId_ = ""; + return this; } @@ -398,6 +528,8 @@ public com.google.pubsub.v1.SchemaSettings buildPartial() { com.google.pubsub.v1.SchemaSettings result = new com.google.pubsub.v1.SchemaSettings(this); result.schema_ = schema_; result.encoding_ = encoding_; + result.firstRevisionId_ = firstRevisionId_; + result.lastRevisionId_ = lastRevisionId_; onBuilt(); return result; } @@ -454,6 +586,14 @@ public Builder mergeFrom(com.google.pubsub.v1.SchemaSettings other) { if (other.encoding_ != 0) { setEncodingValue(other.getEncodingValue()); } + if (!other.getFirstRevisionId().isEmpty()) { + firstRevisionId_ = other.firstRevisionId_; + onChanged(); + } + if (!other.getLastRevisionId().isEmpty()) { + lastRevisionId_ = other.lastRevisionId_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -492,6 +632,18 @@ public Builder mergeFrom( break; } // case 16 + case 26: + { + firstRevisionId_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + lastRevisionId_ = input.readStringRequireUtf8(); + + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -730,6 +882,238 @@ public Builder clearEncoding() { return this; } + private java.lang.Object firstRevisionId_ = ""; + /** + * + * + *
    +     * The minimum (inclusive) revision allowed for validating messages. If empty
    +     * or not present, allow any revision to be validated against last_revision or
    +     * any revision created before.
    +     * 
    + * + * string first_revision_id = 3; + * + * @return The firstRevisionId. + */ + public java.lang.String getFirstRevisionId() { + java.lang.Object ref = firstRevisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firstRevisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The minimum (inclusive) revision allowed for validating messages. If empty
    +     * or not present, allow any revision to be validated against last_revision or
    +     * any revision created before.
    +     * 
    + * + * string first_revision_id = 3; + * + * @return The bytes for firstRevisionId. + */ + public com.google.protobuf.ByteString getFirstRevisionIdBytes() { + java.lang.Object ref = firstRevisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firstRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The minimum (inclusive) revision allowed for validating messages. If empty
    +     * or not present, allow any revision to be validated against last_revision or
    +     * any revision created before.
    +     * 
    + * + * string first_revision_id = 3; + * + * @param value The firstRevisionId to set. + * @return This builder for chaining. + */ + public Builder setFirstRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + firstRevisionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The minimum (inclusive) revision allowed for validating messages. If empty
    +     * or not present, allow any revision to be validated against last_revision or
    +     * any revision created before.
    +     * 
    + * + * string first_revision_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearFirstRevisionId() { + + firstRevisionId_ = getDefaultInstance().getFirstRevisionId(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The minimum (inclusive) revision allowed for validating messages. If empty
    +     * or not present, allow any revision to be validated against last_revision or
    +     * any revision created before.
    +     * 
    + * + * string first_revision_id = 3; + * + * @param value The bytes for firstRevisionId to set. + * @return This builder for chaining. + */ + public Builder setFirstRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + firstRevisionId_ = value; + onChanged(); + return this; + } + + private java.lang.Object lastRevisionId_ = ""; + /** + * + * + *
    +     * The maximum (inclusive) revision allowed for validating messages. If empty
    +     * or not present, allow any revision to be validated against first_revision
    +     * or any revision created after.
    +     * 
    + * + * string last_revision_id = 4; + * + * @return The lastRevisionId. + */ + public java.lang.String getLastRevisionId() { + java.lang.Object ref = lastRevisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + lastRevisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * The maximum (inclusive) revision allowed for validating messages. If empty
    +     * or not present, allow any revision to be validated against first_revision
    +     * or any revision created after.
    +     * 
    + * + * string last_revision_id = 4; + * + * @return The bytes for lastRevisionId. + */ + public com.google.protobuf.ByteString getLastRevisionIdBytes() { + java.lang.Object ref = lastRevisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + lastRevisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * The maximum (inclusive) revision allowed for validating messages. If empty
    +     * or not present, allow any revision to be validated against first_revision
    +     * or any revision created after.
    +     * 
    + * + * string last_revision_id = 4; + * + * @param value The lastRevisionId to set. + * @return This builder for chaining. + */ + public Builder setLastRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + lastRevisionId_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum (inclusive) revision allowed for validating messages. If empty
    +     * or not present, allow any revision to be validated against first_revision
    +     * or any revision created after.
    +     * 
    + * + * string last_revision_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearLastRevisionId() { + + lastRevisionId_ = getDefaultInstance().getLastRevisionId(); + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum (inclusive) revision allowed for validating messages. If empty
    +     * or not present, allow any revision to be validated against first_revision
    +     * or any revision created after.
    +     * 
    + * + * string last_revision_id = 4; + * + * @param value The bytes for lastRevisionId to set. + * @return This builder for chaining. + */ + public Builder setLastRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + lastRevisionId_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index f44178d47155..6fad23f77274 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -82,4 +82,62 @@ public interface SchemaSettingsOrBuilder * @return The encoding. */ com.google.pubsub.v1.Encoding getEncoding(); + + /** + * + * + *
    +   * The minimum (inclusive) revision allowed for validating messages. If empty
    +   * or not present, allow any revision to be validated against last_revision or
    +   * any revision created before.
    +   * 
    + * + * string first_revision_id = 3; + * + * @return The firstRevisionId. + */ + java.lang.String getFirstRevisionId(); + /** + * + * + *
    +   * The minimum (inclusive) revision allowed for validating messages. If empty
    +   * or not present, allow any revision to be validated against last_revision or
    +   * any revision created before.
    +   * 
    + * + * string first_revision_id = 3; + * + * @return The bytes for firstRevisionId. + */ + com.google.protobuf.ByteString getFirstRevisionIdBytes(); + + /** + * + * + *
    +   * The maximum (inclusive) revision allowed for validating messages. If empty
    +   * or not present, allow any revision to be validated against first_revision
    +   * or any revision created after.
    +   * 
    + * + * string last_revision_id = 4; + * + * @return The lastRevisionId. + */ + java.lang.String getLastRevisionId(); + /** + * + * + *
    +   * The maximum (inclusive) revision allowed for validating messages. If empty
    +   * or not present, allow any revision to be validated against first_revision
    +   * or any revision created after.
    +   * 
    + * + * string last_revision_id = 4; + * + * @return The bytes for lastRevisionId. + */ + com.google.protobuf.ByteString getLastRevisionIdBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index a7ef508cb925..5203cb412d34 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -80,7 +80,7 @@ public interface AcknowledgeConfirmationOrBuilder * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return A list containing the ackIds. */ @@ -92,7 +92,7 @@ public interface AcknowledgeConfirmationOrBuilder * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return The count of ackIds. */ @@ -104,7 +104,7 @@ public interface AcknowledgeConfirmationOrBuilder * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -117,7 +117,7 @@ public interface AcknowledgeConfirmationOrBuilder * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -132,7 +132,7 @@ public interface AcknowledgeConfirmationOrBuilder * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return A list containing the invalidAckIds. */ @@ -145,7 +145,7 @@ public interface AcknowledgeConfirmationOrBuilder * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return The count of invalidAckIds. */ @@ -158,7 +158,7 @@ public interface AcknowledgeConfirmationOrBuilder * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -172,7 +172,7 @@ public interface AcknowledgeConfirmationOrBuilder * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -186,7 +186,7 @@ public interface AcknowledgeConfirmationOrBuilder * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @return A list containing the unorderedAckIds. */ @@ -198,7 +198,7 @@ public interface AcknowledgeConfirmationOrBuilder * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @return The count of unorderedAckIds. */ @@ -210,7 +210,7 @@ public interface AcknowledgeConfirmationOrBuilder * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. @@ -223,7 +223,7 @@ public interface AcknowledgeConfirmationOrBuilder * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. @@ -291,7 +291,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return A list containing the ackIds. */ @@ -305,7 +305,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return The count of ackIds. */ @@ -319,7 +319,7 @@ public int getAckIdsCount() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -334,7 +334,7 @@ public java.lang.String getAckIds(int index) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -353,7 +353,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return A list containing the invalidAckIds. */ @@ -368,7 +368,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return The count of invalidAckIds. */ @@ -383,7 +383,7 @@ public int getInvalidAckIdsCount() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -399,7 +399,7 @@ public java.lang.String getInvalidAckIds(int index) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -417,7 +417,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @return A list containing the unorderedAckIds. */ @@ -431,7 +431,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @return The count of unorderedAckIds. */ @@ -445,7 +445,7 @@ public int getUnorderedAckIdsCount() { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. @@ -460,7 +460,7 @@ public java.lang.String getUnorderedAckIds(int index) { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. @@ -929,7 +929,7 @@ private void ensureAckIdsIsMutable() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return A list containing the ackIds. */ @@ -943,7 +943,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return The count of ackIds. */ @@ -957,7 +957,7 @@ public int getAckIdsCount() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -972,7 +972,7 @@ public java.lang.String getAckIds(int index) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -987,7 +987,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index to set the value at. * @param value The ackIds to set. @@ -1009,7 +1009,7 @@ public Builder setAckIds(int index, java.lang.String value) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param value The ackIds to add. * @return This builder for chaining. @@ -1030,7 +1030,7 @@ public Builder addAckIds(java.lang.String value) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param values The ackIds to add. * @return This builder for chaining. @@ -1048,7 +1048,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return This builder for chaining. */ @@ -1065,7 +1065,7 @@ public Builder clearAckIds() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param value The bytes of the ackIds to add. * @return This builder for chaining. @@ -1098,7 +1098,7 @@ private void ensureInvalidAckIdsIsMutable() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return A list containing the invalidAckIds. */ @@ -1113,7 +1113,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return The count of invalidAckIds. */ @@ -1128,7 +1128,7 @@ public int getInvalidAckIdsCount() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -1144,7 +1144,7 @@ public java.lang.String getInvalidAckIds(int index) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -1160,7 +1160,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index to set the value at. * @param value The invalidAckIds to set. @@ -1183,7 +1183,7 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param value The invalidAckIds to add. * @return This builder for chaining. @@ -1205,7 +1205,7 @@ public Builder addInvalidAckIds(java.lang.String value) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param values The invalidAckIds to add. * @return This builder for chaining. @@ -1224,7 +1224,7 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return This builder for chaining. */ @@ -1242,7 +1242,7 @@ public Builder clearInvalidAckIds() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. @@ -1274,7 +1274,7 @@ private void ensureUnorderedAckIdsIsMutable() { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @return A list containing the unorderedAckIds. */ @@ -1288,7 +1288,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @return The count of unorderedAckIds. */ @@ -1302,7 +1302,7 @@ public int getUnorderedAckIdsCount() { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. @@ -1317,7 +1317,7 @@ public java.lang.String getUnorderedAckIds(int index) { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. @@ -1332,7 +1332,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @param index The index to set the value at. * @param value The unorderedAckIds to set. @@ -1354,7 +1354,7 @@ public Builder setUnorderedAckIds(int index, java.lang.String value) { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @param value The unorderedAckIds to add. * @return This builder for chaining. @@ -1375,7 +1375,7 @@ public Builder addUnorderedAckIds(java.lang.String value) { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @param values The unorderedAckIds to add. * @return This builder for chaining. @@ -1393,7 +1393,7 @@ public Builder addAllUnorderedAckIds(java.lang.Iterable values * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @return This builder for chaining. */ @@ -1410,7 +1410,7 @@ public Builder clearUnorderedAckIds() { * List of acknowledgement IDs that were out of order. *
    * - * repeated string unordered_ack_ids = 3 [ctype = CORD]; + * repeated string unordered_ack_ids = 3; * * @param value The bytes of the unorderedAckIds to add. * @return This builder for chaining. @@ -1505,7 +1505,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return A list containing the ackIds. */ @@ -1517,7 +1517,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return The count of ackIds. */ @@ -1529,7 +1529,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -1542,7 +1542,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -1557,7 +1557,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return A list containing the invalidAckIds. */ @@ -1570,7 +1570,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return The count of invalidAckIds. */ @@ -1583,7 +1583,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -1597,7 +1597,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -1667,7 +1667,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return A list containing the ackIds. */ @@ -1681,7 +1681,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return The count of ackIds. */ @@ -1695,7 +1695,7 @@ public int getAckIdsCount() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -1710,7 +1710,7 @@ public java.lang.String getAckIds(int index) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -1729,7 +1729,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return A list containing the invalidAckIds. */ @@ -1744,7 +1744,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return The count of invalidAckIds. */ @@ -1759,7 +1759,7 @@ public int getInvalidAckIdsCount() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -1775,7 +1775,7 @@ public java.lang.String getInvalidAckIds(int index) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -2214,7 +2214,7 @@ private void ensureAckIdsIsMutable() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return A list containing the ackIds. */ @@ -2228,7 +2228,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return The count of ackIds. */ @@ -2242,7 +2242,7 @@ public int getAckIdsCount() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -2257,7 +2257,7 @@ public java.lang.String getAckIds(int index) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -2272,7 +2272,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param index The index to set the value at. * @param value The ackIds to set. @@ -2294,7 +2294,7 @@ public Builder setAckIds(int index, java.lang.String value) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param value The ackIds to add. * @return This builder for chaining. @@ -2315,7 +2315,7 @@ public Builder addAckIds(java.lang.String value) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param values The ackIds to add. * @return This builder for chaining. @@ -2333,7 +2333,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @return This builder for chaining. */ @@ -2350,7 +2350,7 @@ public Builder clearAckIds() { * Successfully processed acknowledgement IDs. *
    * - * repeated string ack_ids = 1 [ctype = CORD]; + * repeated string ack_ids = 1; * * @param value The bytes of the ackIds to add. * @return This builder for chaining. @@ -2383,7 +2383,7 @@ private void ensureInvalidAckIdsIsMutable() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return A list containing the invalidAckIds. */ @@ -2398,7 +2398,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return The count of invalidAckIds. */ @@ -2413,7 +2413,7 @@ public int getInvalidAckIdsCount() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -2429,7 +2429,7 @@ public java.lang.String getInvalidAckIds(int index) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -2445,7 +2445,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param index The index to set the value at. * @param value The invalidAckIds to set. @@ -2468,7 +2468,7 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param value The invalidAckIds to add. * @return This builder for chaining. @@ -2490,7 +2490,7 @@ public Builder addInvalidAckIds(java.lang.String value) { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param values The invalidAckIds to add. * @return This builder for chaining. @@ -2509,7 +2509,7 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @return This builder for chaining. */ @@ -2527,7 +2527,7 @@ public Builder clearInvalidAckIds() { * deadline has expired. *
    * - * repeated string invalid_ack_ids = 2 [ctype = CORD]; + * repeated string invalid_ack_ids = 2; * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index d7958822e2fc..99327262a95a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1085,8 +1085,8 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB * * *
    -   * Output only. An output-only field indicating whether or not the subscription can receive
    -   * messages.
    +   * Output only. An output-only field indicating whether or not the
    +   * subscription can receive messages.
        * 
    * * @@ -1103,8 +1103,8 @@ public int getStateValue() { * * *
    -   * Output only. An output-only field indicating whether or not the subscription can receive
    -   * messages.
    +   * Output only. An output-only field indicating whether or not the
    +   * subscription can receive messages.
        * 
    * * @@ -4447,8 +4447,8 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB * * *
    -     * Output only. An output-only field indicating whether or not the subscription can receive
    -     * messages.
    +     * Output only. An output-only field indicating whether or not the
    +     * subscription can receive messages.
          * 
    * * @@ -4465,8 +4465,8 @@ public int getStateValue() { * * *
    -     * Output only. An output-only field indicating whether or not the subscription can receive
    -     * messages.
    +     * Output only. An output-only field indicating whether or not the
    +     * subscription can receive messages.
          * 
    * * @@ -4486,8 +4486,8 @@ public Builder setStateValue(int value) { * * *
    -     * Output only. An output-only field indicating whether or not the subscription can receive
    -     * messages.
    +     * Output only. An output-only field indicating whether or not the
    +     * subscription can receive messages.
          * 
    * * @@ -4507,8 +4507,8 @@ public com.google.pubsub.v1.Subscription.State getState() { * * *
    -     * Output only. An output-only field indicating whether or not the subscription can receive
    -     * messages.
    +     * Output only. An output-only field indicating whether or not the
    +     * subscription can receive messages.
          * 
    * * @@ -4531,8 +4531,8 @@ public Builder setState(com.google.pubsub.v1.Subscription.State value) { * * *
    -     * Output only. An output-only field indicating whether or not the subscription can receive
    -     * messages.
    +     * Output only. An output-only field indicating whether or not the
    +     * subscription can receive messages.
          * 
    * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index cd5819192939..63e20a119635 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -640,8 +640,8 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Output only. An output-only field indicating whether or not the subscription can receive
    -   * messages.
    +   * Output only. An output-only field indicating whether or not the
    +   * subscription can receive messages.
        * 
    * * @@ -655,8 +655,8 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Output only. An output-only field indicating whether or not the subscription can receive
    -   * messages.
    +   * Output only. An output-only field indicating whether or not the
    +   * subscription can receive messages.
        * 
    * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 5ab209bbd622..661633b61025 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -157,6 +157,16 @@ message SchemaSettings { // The encoding of messages validated against `schema`. Encoding encoding = 2; + + // The minimum (inclusive) revision allowed for validating messages. If empty + // or not present, allow any revision to be validated against last_revision or + // any revision created before. + string first_revision_id = 3; + + // The maximum (inclusive) revision allowed for validating messages. If empty + // or not present, allow any revision to be validated against first_revision + // or any revision created after. + string last_revision_id = 4; } // A topic resource. @@ -795,8 +805,8 @@ message Subscription { google.protobuf.Duration topic_message_retention_duration = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. An output-only field indicating whether or not the subscription can receive - // messages. + // Output only. An output-only field indicating whether or not the + // subscription can receive messages. State state = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -969,8 +979,8 @@ message BigQueryConfig { // subscription's backlog. bool drop_unknown_fields = 4; - // Output only. An output-only field that indicates whether or not the subscription can - // receive messages. + // Output only. An output-only field that indicates whether or not the + // subscription can receive messages. State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -1252,25 +1262,25 @@ message StreamingPullResponse { // previously received message. message AcknowledgeConfirmation { // Successfully processed acknowledgement IDs. - repeated string ack_ids = 1 [ctype = CORD]; + repeated string ack_ids = 1; // List of acknowledgement IDs that were malformed or whose acknowledgement // deadline has expired. - repeated string invalid_ack_ids = 2 [ctype = CORD]; + repeated string invalid_ack_ids = 2; // List of acknowledgement IDs that were out of order. - repeated string unordered_ack_ids = 3 [ctype = CORD]; + repeated string unordered_ack_ids = 3; } // Acknowledgement IDs sent in one or more previous requests to modify the // deadline for a specific message. message ModifyAckDeadlineConfirmation { // Successfully processed acknowledgement IDs. - repeated string ack_ids = 1 [ctype = CORD]; + repeated string ack_ids = 1; // List of acknowledgement IDs that were malformed or whose acknowledgement // deadline has expired. - repeated string invalid_ack_ids = 2 [ctype = CORD]; + repeated string invalid_ack_ids = 2; } // Subscription properties sent as part of the response. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index 3cdf10d93317..1b1483b875b2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSub.V1"; @@ -63,6 +64,41 @@ service SchemaService { option (google.api.method_signature) = "parent"; } + // Lists all schema revisions for the named schema. + rpc ListSchemaRevisions(ListSchemaRevisionsRequest) + returns (ListSchemaRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/schemas/*}:listRevisions" + }; + option (google.api.method_signature) = "name"; + } + + // Commits a new schema revision to an existing schema. + rpc CommitSchema(CommitSchemaRequest) returns (Schema) { + option (google.api.http) = { + post: "/v1/{name=projects/*/schemas/*}:commit" + body: "*" + }; + option (google.api.method_signature) = "name,schema"; + } + + // Creates a new schema revision that is a copy of the provided revision_id. + rpc RollbackSchema(RollbackSchemaRequest) returns (Schema) { + option (google.api.http) = { + post: "/v1/{name=projects/*/schemas/*}:rollback" + body: "*" + }; + option (google.api.method_signature) = "name,revision_id"; + } + + // Deletes a specific schema revision. + rpc DeleteSchemaRevision(DeleteSchemaRevisionRequest) returns (Schema) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/schemas/*}:deleteRevision" + }; + option (google.api.method_signature) = "name,revision_id"; + } + // Deletes a schema. rpc DeleteSchema(DeleteSchemaRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -120,6 +156,29 @@ message Schema { // the full definition of the schema that is a valid schema definition of // the type specified in `type`. string definition = 3; + + // Output only. Immutable. The revision ID of the schema. + string revision_id = 4 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. The timestamp that the revision was created. + google.protobuf.Timestamp revision_create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// View of Schema object fields to be returned by GetSchema and ListSchemas. +enum SchemaView { + // The default / unset value. + // The API will default to the BASIC view. + SCHEMA_VIEW_UNSPECIFIED = 0; + + // Include the name and type of the schema, but not the definition. + BASIC = 1; + + // Include all Schema object fields. + FULL = 2; } // Request for the CreateSchema method. @@ -148,19 +207,6 @@ message CreateSchemaRequest { string schema_id = 3; } -// View of Schema object fields to be returned by GetSchema and ListSchemas. -enum SchemaView { - // The default / unset value. - // The API will default to the BASIC view. - SCHEMA_VIEW_UNSPECIFIED = 0; - - // Include the name and type of the schema, but not the definition. - BASIC = 1; - - // Include all Schema object fields. - FULL = 2; -} - // Request for the GetSchema method. message GetSchemaRequest { // Required. The name of the schema to get. @@ -171,8 +217,7 @@ message GetSchemaRequest { ]; // The set of fields to return in the response. If not set, returns a Schema - // with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all - // fields. + // with all fields filled out. Set to `BASIC` to omit the `definition`. SchemaView view = 2; } @@ -211,6 +256,83 @@ message ListSchemasResponse { string next_page_token = 2; } +// Request for the `ListSchemaRevisions` method. +message ListSchemaRevisionsRequest { + // Required. The name of the schema to list revisions for. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; + + // The set of Schema fields to return in the response. If not set, returns + // Schemas with `name` and `type`, but not `definition`. Set to `FULL` to + // retrieve all fields. + SchemaView view = 2; + + // The maximum number of revisions to return per page. + int32 page_size = 3; + + // The page token, received from a previous ListSchemaRevisions call. + // Provide this to retrieve the subsequent page. + string page_token = 4; +} + +// Response for the `ListSchemaRevisions` method. +message ListSchemaRevisionsResponse { + // The revisions of the schema. + repeated Schema schemas = 1; + + // A token that can be sent as `page_token` to retrieve the next page. + // If this field is empty, there are no subsequent pages. + string next_page_token = 2; +} + +// Request for CommitSchema method. +message CommitSchemaRequest { + // Required. The name of the schema we are revising. + // Format is `projects/{project}/schemas/{schema}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; + + // Required. The schema revision to commit. + Schema schema = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the `RollbackSchema` method. +message RollbackSchemaRequest { + // Required. The schema being rolled back with revision id. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; + + // Required. The revision ID to roll back to. + // It must be a revision of the same schema. + // + // Example: c7cfa2a8 + string revision_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the `DeleteSchemaRevision` method. +message DeleteSchemaRevisionRequest { + // Required. The name of the schema revision to be deleted, with a revision ID + // explicitly included. + // + // Example: projects/123/schemas/my-schema@c7cfa2a8 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; + + // Required. The revision ID to roll back to. + // It must be a revision of the same schema. + // + // Example: c7cfa2a8 + string revision_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Request for the `DeleteSchema` method. message DeleteSchemaRequest { // Required. Name of the schema to delete. From 815480d6cdeeacd45dafad344a23cb53d784f8e2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 10 Jan 2023 21:34:42 +0000 Subject: [PATCH 1304/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.1 (#1450) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d1777002760f..7acc2737767e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.1.0 + 3.1.1 pom import From 78e68a2c3d1b25a6e7ee6ede7654897a0e7d8340 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 21:50:11 +0000 Subject: [PATCH 1305/2363] chore(main): release 1.122.3-SNAPSHOT (#1444) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9af4bea7d438..d5779e8103b3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.122.2 + 1.122.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.122.2 + 1.122.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.2 + 1.104.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.2 + 1.104.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 48436016311f..17ed89ea08dd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.122.2 + 1.122.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.122.2 + 1.122.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e9798394bccb..333d0d17cfed 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.2 + 1.104.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.2 + 1.122.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7acc2737767e..a9b758dcfacf 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.122.2 + 1.122.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.2 + 1.104.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.2 + 1.104.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.122.2 + 1.122.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5d49bb4b7a29..f1d3023d7839 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.2 + 1.104.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.2 + 1.122.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f66d336fda96..ed5f3eab32ef 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.122.2 + 1.122.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e8284f0610bd..2e9b6ca46fc5 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.122.2:1.122.2 -grpc-google-cloud-pubsub-v1:1.104.2:1.104.2 -proto-google-cloud-pubsub-v1:1.104.2:1.104.2 +google-cloud-pubsub:1.122.2:1.122.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.104.2:1.104.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.104.2:1.104.3-SNAPSHOT From 6906b61613e15c2cb41b98fc394989a1a3514278 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 10 Jan 2023 21:51:08 +0000 Subject: [PATCH 1306/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.122.2 (#1445) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.122.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1095d02e6503..4bb1dc42944e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.122.1 + 1.122.2 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index edb7988cf674..5823094a4b2d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.122.1 + 1.122.2 From c9085585f2fc05cbf734986718f3af7b0d211bdd Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 14:06:56 -0800 Subject: [PATCH 1307/2363] chore(main): release 1.123.0 (#1452) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 83bff2d0771d..83815a67cdbc 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.123.0](https://github.com/googleapis/java-pubsub/compare/v1.122.2...v1.123.0) (2023-01-10) + + +### Features + +* Add schema evolution methods and fields ([#1384](https://github.com/googleapis/java-pubsub/issues/1384)) ([746a6e0](https://github.com/googleapis/java-pubsub/commit/746a6e040eb94d73bfbaece051d08c60c9885326)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.1 ([#1450](https://github.com/googleapis/java-pubsub/issues/1450)) ([2dcbcad](https://github.com/googleapis/java-pubsub/commit/2dcbcadfa56282733ab7998ec9cf360f0a71eaca)) + ## [1.122.2](https://github.com/googleapis/java-pubsub/compare/v1.122.1...v1.122.2) (2022-12-15) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d5779e8103b3..4ed77c54538f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.122.3-SNAPSHOT + 1.123.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.122.3-SNAPSHOT + 1.123.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.3-SNAPSHOT + 1.105.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.3-SNAPSHOT + 1.105.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 17ed89ea08dd..32c8fb89ae8d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.122.3-SNAPSHOT + 1.123.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.122.3-SNAPSHOT + 1.123.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 333d0d17cfed..1830f44db67e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.3-SNAPSHOT + 1.105.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.3-SNAPSHOT + 1.123.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a9b758dcfacf..34f742ac672c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.122.3-SNAPSHOT + 1.123.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.3-SNAPSHOT + 1.105.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.104.3-SNAPSHOT + 1.105.0 com.google.cloud google-cloud-pubsub - 1.122.3-SNAPSHOT + 1.123.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f1d3023d7839..fdc78b8255b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.104.3-SNAPSHOT + 1.105.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.122.3-SNAPSHOT + 1.123.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ed5f3eab32ef..1aacf5a9d080 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.122.3-SNAPSHOT + 1.123.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 2e9b6ca46fc5..c83fc37b6433 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.122.2:1.122.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.104.2:1.104.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.104.2:1.104.3-SNAPSHOT +google-cloud-pubsub:1.123.0:1.123.0 +grpc-google-cloud-pubsub-v1:1.105.0:1.105.0 +proto-google-cloud-pubsub-v1:1.105.0:1.105.0 From e7c67e0ac54f4ba48dc29ae54be0da6272e751a3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 20 Jan 2023 18:32:19 +0000 Subject: [PATCH 1308/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.2 (#1463) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4bb1dc42944e..77aba1d2761a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,20 +51,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.3.0') +implementation platform('com.google.cloud:libraries-bom:26.4.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.122.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.122.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.0" ``` ## Authentication diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 34f742ac672c..484fc16fc512 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.1.1 + 3.1.2 pom import From 0de7f8736270192624f435066da68372b7cea9c6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 20 Jan 2023 18:40:21 +0000 Subject: [PATCH 1309/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.20.2 (#1441) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.20.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5823094a4b2d..5673eabc2aa4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.19.1 + 2.20.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1aacf5a9d080..03e8af9fc67e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.19.1 + 2.20.2 From edaee5f6f6f00de1abd16aa33c28be876364ab8c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 20 Jan 2023 18:40:48 +0000 Subject: [PATCH 1310/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.12 (#1437) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5673eabc2aa4..cdfeaffdfba3 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.10 + 3.21.12 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 03e8af9fc67e..b4f8f7088f95 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.10 + 3.21.12 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5b4be2c27ddf..9709a1db3773 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.21.10 + 3.21.12 From 7d65682438c7d512aa764c1a0d5c3499ad15d65a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 20 Jan 2023 18:43:17 +0000 Subject: [PATCH 1311/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.9.2 (#1449) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.9.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index cdfeaffdfba3..0c22d2bf3b7b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.9.0 + 2.9.2 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b4f8f7088f95..95586827c58c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.9.0 + 2.9.2 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9709a1db3773..efb1504e2bb2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.9.0 + 2.9.2 tests From bc22cb19e09c325fac78b4a742209e5f7d59b4ea Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 20 Jan 2023 18:43:58 +0000 Subject: [PATCH 1312/2363] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.9.2 (#1451) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 3d1439a03e6d..f3357aba7d80 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.junit.vintage junit-vintage-engine - 5.9.1 + 5.9.2 test From 23d7e8d7b7de31a2ede85efd48d72fa2446b49bd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 20 Jan 2023 18:44:36 +0000 Subject: [PATCH 1313/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.0 (#1454) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 77aba1d2761a..b8e47b4c2bbf 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.122.2 + 1.123.0 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0c22d2bf3b7b..f11db34c0946 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.122.2 + 1.123.0 From 5aad315c65aac07e8b19aa31115922641edeb5b1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 20 Jan 2023 18:45:43 +0000 Subject: [PATCH 1314/2363] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.2.1 (#1455) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.2.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 1a9c39a206c4..b415653ba622 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -75,7 +75,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.2.0 + 3.2.1 checkstyle-suppressions.xml From 94e9386f800b158e96032d097cb73e54ef01403a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 18:46:11 +0000 Subject: [PATCH 1315/2363] chore(main): release 1.123.1-SNAPSHOT (#1453) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4ed77c54538f..232a53b1b5c9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.0 + 1.123.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.0 + 1.123.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.0 + 1.105.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.0 + 1.105.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 32c8fb89ae8d..0c96a8b3284e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.0 + 1.123.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.0 + 1.123.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1830f44db67e..291d8e174766 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.0 + 1.105.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.0 + 1.123.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 484fc16fc512..778485b34543 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.0 + 1.123.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.0 + 1.105.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.0 + 1.105.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.0 + 1.123.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index fdc78b8255b4..a84b64462309 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.0 + 1.105.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.0 + 1.123.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 95586827c58c..1bc4be7061d2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.0 + 1.123.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c83fc37b6433..c93c07a4c8ef 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.0:1.123.0 -grpc-google-cloud-pubsub-v1:1.105.0:1.105.0 -proto-google-cloud-pubsub-v1:1.105.0:1.105.0 +google-cloud-pubsub:1.123.0:1.123.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.0:1.105.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.0:1.105.1-SNAPSHOT From ca806cbdbb2c633ffc444128f8a7ea9201fcaca3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 10:47:26 -0800 Subject: [PATCH 1316/2363] chore: Upgrade to later version of gcp-uploader and protobuf (#1741) (#1460) * chore: Upgrade to later version of gcp-uploader and protobuf * chore: Add secretstorage version * chore: Use python 3.9.13 * chore: Unpin all python versions * chore: Rerun pipcompile tool * chore: Rerun pipcompile tool with --allow-unsafe * chore: Add --require-hashes * chore: Update requirements file * chore: Remove --require-hashes * chore: Print python version * chore: Add new generated hashes for requirements.txt * chore: Remove python version check in cloud build * chore: Allow synthtool to update python dependencies * chore: Add typing-extensions into requirements * chore: Unpin docker requirements.in file * chore: Add java synthtool validation * chore: Add check to import java synthtool python package Source-Link: https://github.com/googleapis/synthtool/commit/91904bfb986c51516389fb591c67053cdf4de104 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:4566cf7fcd0eece77705330267b2b61a70165711c7829d049b60bc2f1bbcd74e Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 +- java-pubsub/.kokoro/requirements.in | 40 +----- java-pubsub/.kokoro/requirements.txt | 192 ++++++++++---------------- 3 files changed, 81 insertions(+), 155 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 4ca0036da327..2b48c81e3722 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,4 +1,4 @@ -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:27b1b1884dce60460d7521b23c2a73376cba90c0ef3d9f0d32e4bdb786959cfd + digest: sha256:4566cf7fcd0eece77705330267b2b61a70165711c7829d049b60bc2f1bbcd74e diff --git a/java-pubsub/.kokoro/requirements.in b/java-pubsub/.kokoro/requirements.in index 924f94ae6fa1..b19a8dbfdd5e 100644 --- a/java-pubsub/.kokoro/requirements.in +++ b/java-pubsub/.kokoro/requirements.in @@ -1,34 +1,6 @@ -gcp-docuploader==0.6.3 -google-crc32c==1.3.0 -googleapis-common-protos==1.56.3 -gcp-releasetool==1.9.1 -cryptography==38.0.3 -cachetools==4.2.4 -cffi==1.15.1 -jeepney==0.7.1 -jinja2==3.0.3 -markupsafe==2.0.1 -keyring==23.4.1 -packaging==21.3 -protobuf==3.19.5 -pyjwt==2.4.0 -pyparsing==3.0.9 -pycparser==2.21 -pyperclip==1.8.2 -python-dateutil==2.8.2 -requests==2.27.1 -certifi==2022.9.24 -importlib-metadata==4.8.3 -zipp==3.6.0 -google_api_core==2.8.2 -google-cloud-storage==2.0.0 -google-resumable-media==2.3.3 -google-cloud-core==2.3.1 -typing-extensions==4.1.1 -urllib3==1.26.12 -zipp==3.6.0 -rsa==4.9 -six==1.16.0 -attrs==22.1.0 -google-auth==2.14.1 -idna==3.4 \ No newline at end of file +gcp-docuploader +gcp-releasetool +wheel +setuptools +typing-extensions +click<8.1.0 \ No newline at end of file diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index 71fcafc70316..1dfe630412d9 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -1,27 +1,21 @@ # -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.9 +# by the following command: # -# pip-compile --generate-hashes requirements.in +# pip-compile --allow-unsafe --generate-hashes requirements.in # attrs==22.1.0 \ --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c - # via - # -r requirements.in - # gcp-releasetool + # via gcp-releasetool cachetools==4.2.4 \ --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 - # via - # -r requirements.in - # google-auth -certifi==2022.9.24 \ - --hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \ - --hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382 - # via - # -r requirements.in - # requests + # via google-auth +certifi==2022.12.7 \ + --hash=sha256:35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3 \ + --hash=sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18 + # via requests cffi==1.15.1 \ --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ @@ -87,9 +81,7 @@ cffi==1.15.1 \ --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 - # via - # -r requirements.in - # cryptography + # via cryptography charset-normalizer==2.0.12 \ --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df @@ -98,6 +90,7 @@ click==8.0.4 \ --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb # via + # -r requirements.in # gcp-docuploader # gcp-releasetool colorlog==6.7.0 \ @@ -132,12 +125,11 @@ cryptography==38.0.3 \ --hash=sha256:dfb4f4dd568de1b6af9f4cda334adf7d72cf5bc052516e1b2608b683375dd95c \ --hash=sha256:ed7b00096790213e09eb11c97cc6e2b757f15f3d2f85833cd2d3ec3fe37c1722 # via - # -r requirements.in # gcp-releasetool # secretstorage -gcp-docuploader==0.6.3 \ - --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ - --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b +gcp-docuploader==0.6.4 \ + --hash=sha256:01486419e24633af78fd0167db74a2763974765ee8078ca6eb6964d0ebd388af \ + --hash=sha256:70861190c123d907b3b067da896265ead2eeb9263969d6955c9e0bb091b5ccbf # via -r requirements.in gcp-releasetool==1.9.1 \ --hash=sha256:952f4055d5d986b070ae2a71c4410b250000f9cc5a1e26398fcd55a5bbc5a15f \ @@ -147,13 +139,12 @@ google-api-core==2.8.2 \ --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 # via - # -r requirements.in # google-cloud-core # google-cloud-storage google-auth==2.14.1 \ + --hash=sha256:ccaa901f31ad5cbb562615eb8b664b3dd0bf5404a67618e642307f00613eda4d \ --hash=sha256:f5d8701633bebc12e0deea4df8abd8aff31c28b355360597f7f2ee60f2e4d016 # via - # -r requirements.in # gcp-releasetool # google-api-core # google-cloud-core @@ -161,15 +152,11 @@ google-auth==2.14.1 \ google-cloud-core==2.3.1 \ --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 - # via - # -r requirements.in - # google-cloud-storage + # via google-cloud-storage google-cloud-storage==2.0.0 \ --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 - # via - # -r requirements.in - # gcp-docuploader + # via gcp-docuploader google-crc32c==1.3.0 \ --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ @@ -214,52 +201,37 @@ google-crc32c==1.3.0 \ --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 - # via - # -r requirements.in - # google-resumable-media + # via google-resumable-media google-resumable-media==2.3.3 \ --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 - # via - # -r requirements.in - # google-cloud-storage + # via google-cloud-storage googleapis-common-protos==1.56.3 \ --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 - # via - # -r requirements.in - # google-api-core + # via google-api-core idna==3.4 \ --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 - # via - # -r requirements.in - # requests + # via requests importlib-metadata==4.8.3 \ --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 + # via keyring +jeepney==0.8.0 \ + --hash=sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806 \ + --hash=sha256:c0a454ad016ca575060802ee4d590dd912e35c122fa04e70306de3d076cce755 # via - # -r requirements.in - # keyring -jeepney==0.7.1 \ - --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ - --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f - # via - # -r requirements.in # keyring # secretstorage jinja2==3.0.3 \ --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 - # via - # -r requirements.in - # gcp-releasetool + # via gcp-releasetool keyring==23.4.1 \ --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 - # via - # -r requirements.in - # gcp-releasetool + # via gcp-releasetool markupsafe==2.0.1 \ --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ @@ -330,49 +302,41 @@ markupsafe==2.0.1 \ --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 - # via - # -r requirements.in - # jinja2 + # via jinja2 packaging==21.3 \ --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 + # via gcp-releasetool +protobuf==3.20.1 \ + --hash=sha256:06059eb6953ff01e56a25cd02cca1a9649a75a7e65397b5b9b4e929ed71d10cf \ + --hash=sha256:097c5d8a9808302fb0da7e20edf0b8d4703274d140fd25c5edabddcde43e081f \ + --hash=sha256:284f86a6207c897542d7e956eb243a36bb8f9564c1742b253462386e96c6b78f \ + --hash=sha256:32ca378605b41fd180dfe4e14d3226386d8d1b002ab31c969c366549e66a2bb7 \ + --hash=sha256:3cc797c9d15d7689ed507b165cd05913acb992d78b379f6014e013f9ecb20996 \ + --hash=sha256:62f1b5c4cd6c5402b4e2d63804ba49a327e0c386c99b1675c8a0fefda23b2067 \ + --hash=sha256:69ccfdf3657ba59569c64295b7d51325f91af586f8d5793b734260dfe2e94e2c \ + --hash=sha256:6f50601512a3d23625d8a85b1638d914a0970f17920ff39cec63aaef80a93fb7 \ + --hash=sha256:7403941f6d0992d40161aa8bb23e12575637008a5a02283a930addc0508982f9 \ + --hash=sha256:755f3aee41354ae395e104d62119cb223339a8f3276a0cd009ffabfcdd46bb0c \ + --hash=sha256:77053d28427a29987ca9caf7b72ccafee011257561259faba8dd308fda9a8739 \ + --hash=sha256:7e371f10abe57cee5021797126c93479f59fccc9693dafd6bd5633ab67808a91 \ + --hash=sha256:9016d01c91e8e625141d24ec1b20fed584703e527d28512aa8c8707f105a683c \ + --hash=sha256:9be73ad47579abc26c12024239d3540e6b765182a91dbc88e23658ab71767153 \ + --hash=sha256:adc31566d027f45efe3f44eeb5b1f329da43891634d61c75a5944e9be6dd42c9 \ + --hash=sha256:adfc6cf69c7f8c50fd24c793964eef18f0ac321315439d94945820612849c388 \ + --hash=sha256:af0ebadc74e281a517141daad9d0f2c5d93ab78e9d455113719a45a49da9db4e \ + --hash=sha256:cb29edb9eab15742d791e1025dd7b6a8f6fcb53802ad2f6e3adcb102051063ab \ + --hash=sha256:cd68be2559e2a3b84f517fb029ee611546f7812b1fdd0aa2ecc9bc6ec0e4fdde \ + --hash=sha256:cdee09140e1cd184ba9324ec1df410e7147242b94b5f8b0c64fc89e38a8ba531 \ + --hash=sha256:db977c4ca738dd9ce508557d4fce0f5aebd105e158c725beec86feb1f6bc20d8 \ + --hash=sha256:dd5789b2948ca702c17027c84c2accb552fc30f4622a98ab5c51fcfe8c50d3e7 \ + --hash=sha256:e250a42f15bf9d5b09fe1b293bdba2801cd520a9f5ea2d7fb7536d4441811d20 \ + --hash=sha256:ff8d8fa42675249bb456f5db06c00de6c2f4c27a065955917b28c4f15978b9c3 # via - # -r requirements.in - # gcp-releasetool -protobuf==3.19.5 \ - --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ - --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ - --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ - --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ - --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ - --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ - --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ - --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ - --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ - --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ - --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ - --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ - --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ - --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ - --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ - --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ - --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ - --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ - --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ - --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ - --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ - --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ - --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ - --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ - --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ - --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de - # via - # -r requirements.in # gcp-docuploader # gcp-releasetool # google-api-core # google-cloud-storage - # googleapis-common-protos pyasn1==0.4.8 \ --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba @@ -386,71 +350,61 @@ pyasn1-modules==0.2.8 \ pycparser==2.21 \ --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 - # via - # -r requirements.in - # cffi + # via cffi pyjwt==2.4.0 \ --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba - # via - # -r requirements.in - # gcp-releasetool + # via gcp-releasetool pyparsing==3.0.9 \ --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc - # via - # -r requirements.in - # packaging + # via packaging pyperclip==1.8.2 \ --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 - # via - # -r requirements.in - # gcp-releasetool + # via gcp-releasetool python-dateutil==2.8.2 \ --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 - # via - # -r requirements.in - # gcp-releasetool + # via gcp-releasetool requests==2.27.1 \ --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d # via - # -r requirements.in # gcp-releasetool # google-api-core # google-cloud-storage rsa==4.9 \ --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 - # via - # -r requirements.in - # google-auth + # via google-auth secretstorage==3.3.3 \ --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 # via keyring +setuptools==65.6.3 \ + --hash=sha256:57f6f22bde4e042978bcd50176fdb381d7c21a9efa4041202288d3737a0c6a54 \ + --hash=sha256:a7620757bf984b58deaf32fc8a4577a9bbc0850cf92c20e1ce41c38c19e5fb75 + # via -r requirements.in six==1.16.0 \ --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 # via - # -r requirements.in # gcp-docuploader # google-auth # python-dateutil -typing-extensions==4.1.1 \ - --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ - --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 +typing-extensions==4.4.0 \ + --hash=sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \ + --hash=sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e # via -r requirements.in urllib3==1.26.12 \ --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 - # via - # -r requirements.in - # requests + # via requests +wheel==0.38.4 \ + --hash=sha256:965f5259b566725405b05e7cf774052044b1ed30119b5d586b2703aafe8719ac \ + --hash=sha256:b60533f3f5d530e971d6737ca6d58681ee434818fab630c83a734bb10c083ce8 + # via -r requirements.in zipp==3.6.0 \ --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc - # via - # -r requirements.in - # importlib-metadata + # via importlib-metadata From cfaa3c36157b8133e4557bdcc4bef913c0544567 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 12:52:29 -0800 Subject: [PATCH 1317/2363] chore(main): release 1.123.1 (#1466) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 11 +++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 29 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 83815a67cdbc..72125217a205 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [1.123.1](https://github.com/googleapis/java-pubsub/compare/v1.123.0...v1.123.1) (2023-01-20) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.20.2 ([#1441](https://github.com/googleapis/java-pubsub/issues/1441)) ([a675556](https://github.com/googleapis/java-pubsub/commit/a67555664a070eb03b6f8bb7115e32e2b9d9a11a)) +* Update dependency com.google.cloud:google-cloud-core to v2.9.2 ([#1449](https://github.com/googleapis/java-pubsub/issues/1449)) ([e68c9e0](https://github.com/googleapis/java-pubsub/commit/e68c9e0e0808c441e04049154fb0c44f42fed562)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.2 ([#1463](https://github.com/googleapis/java-pubsub/issues/1463)) ([e9e6649](https://github.com/googleapis/java-pubsub/commit/e9e664951b027979969e983c7e525aff6e4ddc68)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.21.12 ([#1437](https://github.com/googleapis/java-pubsub/issues/1437)) ([88f7a99](https://github.com/googleapis/java-pubsub/commit/88f7a991c43e6358ccc3ad248473400a2a0e50e8)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.2 ([#1451](https://github.com/googleapis/java-pubsub/issues/1451)) ([054572a](https://github.com/googleapis/java-pubsub/commit/054572a86ecc2cedcdbcf3eae8c9fb07caed504a)) + ## [1.123.0](https://github.com/googleapis/java-pubsub/compare/v1.122.2...v1.123.0) (2023-01-10) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 232a53b1b5c9..6412802537fb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.1-SNAPSHOT + 1.123.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.1-SNAPSHOT + 1.123.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.1-SNAPSHOT + 1.105.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.1-SNAPSHOT + 1.105.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 0c96a8b3284e..da0d31be0737 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.1-SNAPSHOT + 1.123.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.1-SNAPSHOT + 1.123.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 291d8e174766..a7f07dde098c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.1-SNAPSHOT + 1.105.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.1-SNAPSHOT + 1.123.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 778485b34543..7ba1933f10c0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.1-SNAPSHOT + 1.123.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.1-SNAPSHOT + 1.105.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.1-SNAPSHOT + 1.105.1 com.google.cloud google-cloud-pubsub - 1.123.1-SNAPSHOT + 1.123.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a84b64462309..544755695204 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.1-SNAPSHOT + 1.105.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.1-SNAPSHOT + 1.123.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1bc4be7061d2..25b9b251720a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.1-SNAPSHOT + 1.123.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c93c07a4c8ef..c0a57cf56725 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.0:1.123.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.0:1.105.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.0:1.105.1-SNAPSHOT +google-cloud-pubsub:1.123.1:1.123.1 +grpc-google-cloud-pubsub-v1:1.105.1:1.105.1 +proto-google-cloud-pubsub-v1:1.105.1:1.105.1 From 59b0a4af6a09d4242eb913e0ff339bd0d4c12165 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 16:01:57 -0500 Subject: [PATCH 1318/2363] build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /.kokoro (#1439) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /.kokoro Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.9.24 to 2022.12.7. - [Release notes](https://github.com/certifi/python-certifi/releases) - [Commits](https://github.com/certifi/python-certifi/compare/2022.09.24...2022.12.07) --- updated-dependencies: - dependency-name: certifi dependency-type: direct:production ... Signed-off-by: dependabot[bot] * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Owl Bot From 06791ea7e1c13c4cb2edb1f3d34fed0cca85966c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 21:18:12 +0000 Subject: [PATCH 1319/2363] chore(main): release 1.123.2-SNAPSHOT (#1467) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6412802537fb..3597f4b66cea 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.1 + 1.123.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.1 + 1.123.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.1 + 1.105.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.1 + 1.105.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index da0d31be0737..b8137200171a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.1 + 1.123.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.1 + 1.123.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a7f07dde098c..6be5ca701940 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.1 + 1.105.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.1 + 1.123.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7ba1933f10c0..d96cf74302e5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.1 + 1.123.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.1 + 1.105.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.1 + 1.105.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.1 + 1.123.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 544755695204..12707aab68e5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.1 + 1.105.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.1 + 1.123.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 25b9b251720a..c09b34d770b1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.1 + 1.123.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c0a57cf56725..b573bf71ffcf 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.1:1.123.1 -grpc-google-cloud-pubsub-v1:1.105.1:1.105.1 -proto-google-cloud-pubsub-v1:1.105.1:1.105.1 +google-cloud-pubsub:1.123.1:1.123.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.1:1.105.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.1:1.105.2-SNAPSHOT From a957c898c62877d36c4c9b4fe8b762f957e5b229 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Feb 2023 16:26:11 +0000 Subject: [PATCH 1320/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.2.0 (#1474) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.2.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b8e47b4c2bbf..52e2155f5d0d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,20 +51,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.4.0') +implementation platform('com.google.cloud:libraries-bom:26.6.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.1" ``` ## Authentication diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d96cf74302e5..4e6700d44992 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.1.2 + 3.2.0 pom import From bb0eb62fc70b7ff88f3d9c6505a7a4c0491ef3bd Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 16:54:02 -0500 Subject: [PATCH 1321/2363] chore(main): release 1.123.2 (#1475) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 72125217a205..ec85c0231e21 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.123.2](https://github.com/googleapis/java-pubsub/compare/v1.123.1...v1.123.2) (2023-02-06) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.2.0 ([#1474](https://github.com/googleapis/java-pubsub/issues/1474)) ([5fccae4](https://github.com/googleapis/java-pubsub/commit/5fccae49f912a24c14d144fdcc9617d5a5ae110a)) + ## [1.123.1](https://github.com/googleapis/java-pubsub/compare/v1.123.0...v1.123.1) (2023-01-20) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3597f4b66cea..30e0d92371bf 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.2-SNAPSHOT + 1.123.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.2-SNAPSHOT + 1.123.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.2-SNAPSHOT + 1.105.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.2-SNAPSHOT + 1.105.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b8137200171a..2aac2fa45ef9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.2-SNAPSHOT + 1.123.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.2-SNAPSHOT + 1.123.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6be5ca701940..91892b5ffa6e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.2-SNAPSHOT + 1.105.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.2-SNAPSHOT + 1.123.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4e6700d44992..afbf4062833e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.2-SNAPSHOT + 1.123.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.2-SNAPSHOT + 1.105.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.2-SNAPSHOT + 1.105.2 com.google.cloud google-cloud-pubsub - 1.123.2-SNAPSHOT + 1.123.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 12707aab68e5..1de82390bfb2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.2-SNAPSHOT + 1.105.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.2-SNAPSHOT + 1.123.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c09b34d770b1..6057fa47c3f4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.2-SNAPSHOT + 1.123.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b573bf71ffcf..25c218aa788e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.1:1.123.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.1:1.105.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.1:1.105.2-SNAPSHOT +google-cloud-pubsub:1.123.2:1.123.2 +grpc-google-cloud-pubsub-v1:1.105.2:1.105.2 +proto-google-cloud-pubsub-v1:1.105.2:1.105.2 From 64c90e5ec4567af1436340d7c57d5c2620165ca6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 22:08:11 +0000 Subject: [PATCH 1322/2363] chore(main): release 1.123.3-SNAPSHOT (#1476) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 30e0d92371bf..102764e93f3f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.2 + 1.123.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.2 + 1.123.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.2 + 1.105.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.2 + 1.105.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2aac2fa45ef9..5e9dccea7aec 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.2 + 1.123.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.2 + 1.123.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 91892b5ffa6e..a58e2923ed1b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.2 + 1.105.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.2 + 1.123.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index afbf4062833e..a08986a6c7fd 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.2 + 1.123.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.2 + 1.105.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.2 + 1.105.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.2 + 1.123.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1de82390bfb2..4ea601366ca9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.2 + 1.105.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.2 + 1.123.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6057fa47c3f4..ceb261a8c5a8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.2 + 1.123.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 25c218aa788e..10f0fe1dc806 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.2:1.123.2 -grpc-google-cloud-pubsub-v1:1.105.2:1.105.2 -proto-google-cloud-pubsub-v1:1.105.2:1.105.2 +google-cloud-pubsub:1.123.2:1.123.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.2:1.105.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.2:1.105.3-SNAPSHOT From 2ce985c48172dfe71c7becbd218d4a53cac873b6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 21 Feb 2023 17:41:14 +0000 Subject: [PATCH 1323/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.21.0 (#1470) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.21.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f11db34c0946..4dab04395373 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.20.2 + 2.21.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ceb261a8c5a8..5bcd2dad7aa1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.20.2 + 2.21.0 From c3f78925fe09fbfe9da966d21f5013fc1189b67b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 21 Feb 2023 17:41:43 +0000 Subject: [PATCH 1324/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.1 (#1468) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 52e2155f5d0d..537c6d88093e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.0 + 1.123.1 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4dab04395373..662263d975b2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.0 + 1.123.1 From 57b93bc661fb888cbccf65002cb60528823d6153 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 21 Feb 2023 17:42:13 +0000 Subject: [PATCH 1325/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.10.0 (#1464) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.10.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 662263d975b2..a03d8dd331f3 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.9.2 + 2.10.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5bcd2dad7aa1..d330274ab943 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.9.2 + 2.10.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index efb1504e2bb2..03b7197ad48a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.9.2 + 2.10.0 tests From 4436546b9e7ba5c7089fd2e80cd12a2336682450 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 21 Feb 2023 17:43:00 +0000 Subject: [PATCH 1326/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.4.0 (#1446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.4.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 537c6d88093e..d852b027fa58 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.1.5 + 26.4.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index f3357aba7d80..ae129c3e7f20 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.1.5 + 26.4.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 03b7197ad48a..223c6ca701e7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.1.5 + 26.4.0 pom import From 214c96e0f7c4fb1ad4ddcd6d184dac90fe2fdac8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 21 Feb 2023 17:43:21 +0000 Subject: [PATCH 1327/2363] test(deps): update dependency org.mockito:mockito-core to v4.11.0 (#1447) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a08986a6c7fd..f705ad8b168c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -86,7 +86,7 @@ org.mockito mockito-core - 4.10.0 + 4.11.0 test From ff938d06e13f77570b003a3061917321698fe5c9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 21 Feb 2023 09:56:52 -0800 Subject: [PATCH 1328/2363] build(deps): bump cryptography from 38.0.3 to 39.0.1 in /synthtool/gcp/templates/java_library/.kokoro (#1761) (#1478) * build(deps): bump cryptography Bumps [cryptography](https://github.com/pyca/cryptography) from 38.0.3 to 39.0.1. - [Release notes](https://github.com/pyca/cryptography/releases) - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/38.0.3...39.0.1) --- updated-dependencies: - dependency-name: cryptography dependency-type: indirect ... * chore: disabling dependabot --------- Source-Link: https://github.com/googleapis/synthtool/commit/0c6f8d4ac5358553ee734e26574f390bc43a736e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:5ee35ee919254a3d1e7d4f8abbf1b8c8869ade317ceb2e4df709af1b4b3e9ca1 Signed-off-by: dependabot[bot] Co-authored-by: Owl Bot Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tomo Suzuki Co-authored-by: ddixit14 --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.github/dependabot.yml | 14 ++++ java-pubsub/.kokoro/requirements.txt | 101 ++++++++++++-------------- java-pubsub/README.md | 6 +- 4 files changed, 63 insertions(+), 60 deletions(-) create mode 100644 java-pubsub/.github/dependabot.yml diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 2b48c81e3722..090264303f34 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:4566cf7fcd0eece77705330267b2b61a70165711c7829d049b60bc2f1bbcd74e + digest: sha256:5ee35ee919254a3d1e7d4f8abbf1b8c8869ade317ceb2e4df709af1b4b3e9ca1 diff --git a/java-pubsub/.github/dependabot.yml b/java-pubsub/.github/dependabot.yml new file mode 100644 index 000000000000..c8f413b0da30 --- /dev/null +++ b/java-pubsub/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" + schedule: + interval: "daily" + # Disable version updates for Maven dependencies + open-pull-requests-limit: 0 + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "daily" + # Disable version updates for pip dependencies + open-pull-requests-limit: 0 \ No newline at end of file diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index 1dfe630412d9..cfadd22ce9b9 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -97,33 +97,28 @@ colorlog==6.7.0 \ --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 # via gcp-docuploader -cryptography==38.0.3 \ - --hash=sha256:068147f32fa662c81aebab95c74679b401b12b57494872886eb5c1139250ec5d \ - --hash=sha256:06fc3cc7b6f6cca87bd56ec80a580c88f1da5306f505876a71c8cfa7050257dd \ - --hash=sha256:25c1d1f19729fb09d42e06b4bf9895212292cb27bb50229f5aa64d039ab29146 \ - --hash=sha256:402852a0aea73833d982cabb6d0c3bb582c15483d29fb7085ef2c42bfa7e38d7 \ - --hash=sha256:4e269dcd9b102c5a3d72be3c45d8ce20377b8076a43cbed6f660a1afe365e436 \ - --hash=sha256:5419a127426084933076132d317911e3c6eb77568a1ce23c3ac1e12d111e61e0 \ - --hash=sha256:554bec92ee7d1e9d10ded2f7e92a5d70c1f74ba9524947c0ba0c850c7b011828 \ - --hash=sha256:5e89468fbd2fcd733b5899333bc54d0d06c80e04cd23d8c6f3e0542358c6060b \ - --hash=sha256:65535bc550b70bd6271984d9863a37741352b4aad6fb1b3344a54e6950249b55 \ - --hash=sha256:6ab9516b85bebe7aa83f309bacc5f44a61eeb90d0b4ec125d2d003ce41932d36 \ - --hash=sha256:6addc3b6d593cd980989261dc1cce38263c76954d758c3c94de51f1e010c9a50 \ - --hash=sha256:728f2694fa743a996d7784a6194da430f197d5c58e2f4e278612b359f455e4a2 \ - --hash=sha256:785e4056b5a8b28f05a533fab69febf5004458e20dad7e2e13a3120d8ecec75a \ - --hash=sha256:78cf5eefac2b52c10398a42765bfa981ce2372cbc0457e6bf9658f41ec3c41d8 \ - --hash=sha256:7f836217000342d448e1c9a342e9163149e45d5b5eca76a30e84503a5a96cab0 \ - --hash=sha256:8d41a46251bf0634e21fac50ffd643216ccecfaf3701a063257fe0b2be1b6548 \ - --hash=sha256:984fe150f350a3c91e84de405fe49e688aa6092b3525f407a18b9646f6612320 \ - --hash=sha256:9b24bcff7853ed18a63cfb0c2b008936a9554af24af2fb146e16d8e1aed75748 \ - --hash=sha256:b1b35d9d3a65542ed2e9d90115dfd16bbc027b3f07ee3304fc83580f26e43249 \ - --hash=sha256:b1b52c9e5f8aa2b802d48bd693190341fae201ea51c7a167d69fc48b60e8a959 \ - --hash=sha256:bbf203f1a814007ce24bd4d51362991d5cb90ba0c177a9c08825f2cc304d871f \ - --hash=sha256:be243c7e2bfcf6cc4cb350c0d5cdf15ca6383bbcb2a8ef51d3c9411a9d4386f0 \ - --hash=sha256:bfbe6ee19615b07a98b1d2287d6a6073f734735b49ee45b11324d85efc4d5cbd \ - --hash=sha256:c46837ea467ed1efea562bbeb543994c2d1f6e800785bd5a2c98bc096f5cb220 \ - --hash=sha256:dfb4f4dd568de1b6af9f4cda334adf7d72cf5bc052516e1b2608b683375dd95c \ - --hash=sha256:ed7b00096790213e09eb11c97cc6e2b757f15f3d2f85833cd2d3ec3fe37c1722 +cryptography==39.0.1 \ + --hash=sha256:0f8da300b5c8af9f98111ffd512910bc792b4c77392a9523624680f7956a99d4 \ + --hash=sha256:35f7c7d015d474f4011e859e93e789c87d21f6f4880ebdc29896a60403328f1f \ + --hash=sha256:5aa67414fcdfa22cf052e640cb5ddc461924a045cacf325cd164e65312d99502 \ + --hash=sha256:5d2d8b87a490bfcd407ed9d49093793d0f75198a35e6eb1a923ce1ee86c62b41 \ + --hash=sha256:6687ef6d0a6497e2b58e7c5b852b53f62142cfa7cd1555795758934da363a965 \ + --hash=sha256:6f8ba7f0328b79f08bdacc3e4e66fb4d7aab0c3584e0bd41328dce5262e26b2e \ + --hash=sha256:706843b48f9a3f9b9911979761c91541e3d90db1ca905fd63fee540a217698bc \ + --hash=sha256:807ce09d4434881ca3a7594733669bd834f5b2c6d5c7e36f8c00f691887042ad \ + --hash=sha256:83e17b26de248c33f3acffb922748151d71827d6021d98c70e6c1a25ddd78505 \ + --hash=sha256:96f1157a7c08b5b189b16b47bc9db2332269d6680a196341bf30046330d15388 \ + --hash=sha256:aec5a6c9864be7df2240c382740fcf3b96928c46604eaa7f3091f58b878c0bb6 \ + --hash=sha256:b0afd054cd42f3d213bf82c629efb1ee5f22eba35bf0eec88ea9ea7304f511a2 \ + --hash=sha256:ced4e447ae29ca194449a3f1ce132ded8fcab06971ef5f618605aacaa612beac \ + --hash=sha256:d1f6198ee6d9148405e49887803907fe8962a23e6c6f83ea7d98f1c0de375695 \ + --hash=sha256:e124352fd3db36a9d4a21c1aa27fd5d051e621845cb87fb851c08f4f75ce8be6 \ + --hash=sha256:e422abdec8b5fa8462aa016786680720d78bdce7a30c652b7fadf83a4ba35336 \ + --hash=sha256:ef8b72fa70b348724ff1218267e7f7375b8de4e8194d1636ee60510aae104cd0 \ + --hash=sha256:f0c64d1bd842ca2633e74a1a28033d139368ad959872533b1bab8c80e8240a0c \ + --hash=sha256:f24077a3b5298a5a06a8e0536e3ea9ec60e4c7ac486755e5fb6e6ea9b3500106 \ + --hash=sha256:fdd188c8a6ef8769f148f88f859884507b954cc64db6b52f66ef199bb9ad660a \ + --hash=sha256:fe913f20024eb2cb2f323e42a64bdf2911bb9738a15dba7d3cce48151034e3a8 # via # gcp-releasetool # secretstorage @@ -307,31 +302,29 @@ packaging==21.3 \ --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 # via gcp-releasetool -protobuf==3.20.1 \ - --hash=sha256:06059eb6953ff01e56a25cd02cca1a9649a75a7e65397b5b9b4e929ed71d10cf \ - --hash=sha256:097c5d8a9808302fb0da7e20edf0b8d4703274d140fd25c5edabddcde43e081f \ - --hash=sha256:284f86a6207c897542d7e956eb243a36bb8f9564c1742b253462386e96c6b78f \ - --hash=sha256:32ca378605b41fd180dfe4e14d3226386d8d1b002ab31c969c366549e66a2bb7 \ - --hash=sha256:3cc797c9d15d7689ed507b165cd05913acb992d78b379f6014e013f9ecb20996 \ - --hash=sha256:62f1b5c4cd6c5402b4e2d63804ba49a327e0c386c99b1675c8a0fefda23b2067 \ - --hash=sha256:69ccfdf3657ba59569c64295b7d51325f91af586f8d5793b734260dfe2e94e2c \ - --hash=sha256:6f50601512a3d23625d8a85b1638d914a0970f17920ff39cec63aaef80a93fb7 \ - --hash=sha256:7403941f6d0992d40161aa8bb23e12575637008a5a02283a930addc0508982f9 \ - --hash=sha256:755f3aee41354ae395e104d62119cb223339a8f3276a0cd009ffabfcdd46bb0c \ - --hash=sha256:77053d28427a29987ca9caf7b72ccafee011257561259faba8dd308fda9a8739 \ - --hash=sha256:7e371f10abe57cee5021797126c93479f59fccc9693dafd6bd5633ab67808a91 \ - --hash=sha256:9016d01c91e8e625141d24ec1b20fed584703e527d28512aa8c8707f105a683c \ - --hash=sha256:9be73ad47579abc26c12024239d3540e6b765182a91dbc88e23658ab71767153 \ - --hash=sha256:adc31566d027f45efe3f44eeb5b1f329da43891634d61c75a5944e9be6dd42c9 \ - --hash=sha256:adfc6cf69c7f8c50fd24c793964eef18f0ac321315439d94945820612849c388 \ - --hash=sha256:af0ebadc74e281a517141daad9d0f2c5d93ab78e9d455113719a45a49da9db4e \ - --hash=sha256:cb29edb9eab15742d791e1025dd7b6a8f6fcb53802ad2f6e3adcb102051063ab \ - --hash=sha256:cd68be2559e2a3b84f517fb029ee611546f7812b1fdd0aa2ecc9bc6ec0e4fdde \ - --hash=sha256:cdee09140e1cd184ba9324ec1df410e7147242b94b5f8b0c64fc89e38a8ba531 \ - --hash=sha256:db977c4ca738dd9ce508557d4fce0f5aebd105e158c725beec86feb1f6bc20d8 \ - --hash=sha256:dd5789b2948ca702c17027c84c2accb552fc30f4622a98ab5c51fcfe8c50d3e7 \ - --hash=sha256:e250a42f15bf9d5b09fe1b293bdba2801cd520a9f5ea2d7fb7536d4441811d20 \ - --hash=sha256:ff8d8fa42675249bb456f5db06c00de6c2f4c27a065955917b28c4f15978b9c3 +protobuf==3.20.2 \ + --hash=sha256:03d76b7bd42ac4a6e109742a4edf81ffe26ffd87c5993126d894fe48a120396a \ + --hash=sha256:09e25909c4297d71d97612f04f41cea8fa8510096864f2835ad2f3b3df5a5559 \ + --hash=sha256:18e34a10ae10d458b027d7638a599c964b030c1739ebd035a1dfc0e22baa3bfe \ + --hash=sha256:291fb4307094bf5ccc29f424b42268640e00d5240bf0d9b86bf3079f7576474d \ + --hash=sha256:2c0b040d0b5d5d207936ca2d02f00f765906622c07d3fa19c23a16a8ca71873f \ + --hash=sha256:384164994727f274cc34b8abd41a9e7e0562801361ee77437099ff6dfedd024b \ + --hash=sha256:3cb608e5a0eb61b8e00fe641d9f0282cd0eedb603be372f91f163cbfbca0ded0 \ + --hash=sha256:5d9402bf27d11e37801d1743eada54372f986a372ec9679673bfcc5c60441151 \ + --hash=sha256:712dca319eee507a1e7df3591e639a2b112a2f4a62d40fe7832a16fd19151750 \ + --hash=sha256:7a5037af4e76c975b88c3becdf53922b5ffa3f2cddf657574a4920a3b33b80f3 \ + --hash=sha256:8228e56a865c27163d5d1d1771d94b98194aa6917bcfb6ce139cbfa8e3c27334 \ + --hash=sha256:84a1544252a933ef07bb0b5ef13afe7c36232a774affa673fc3636f7cee1db6c \ + --hash=sha256:84fe5953b18a383fd4495d375fe16e1e55e0a3afe7b4f7b4d01a3a0649fcda9d \ + --hash=sha256:9c673c8bfdf52f903081816b9e0e612186684f4eb4c17eeb729133022d6032e3 \ + --hash=sha256:a9e5ae5a8e8985c67e8944c23035a0dff2c26b0f5070b2f55b217a1c33bbe8b1 \ + --hash=sha256:b4fdb29c5a7406e3f7ef176b2a7079baa68b5b854f364c21abe327bbeec01cdb \ + --hash=sha256:c184485e0dfba4dfd451c3bd348c2e685d6523543a0f91b9fd4ae90eb09e8422 \ + --hash=sha256:c9cdf251c582c16fd6a9f5e95836c90828d51b0069ad22f463761d27c6c19019 \ + --hash=sha256:e39cf61bb8582bda88cdfebc0db163b774e7e03364bbf9ce1ead13863e81e359 \ + --hash=sha256:e8fbc522303e09036c752a0afcc5c0603e917222d8bedc02813fd73b4b4ed804 \ + --hash=sha256:f34464ab1207114e73bba0794d1257c150a2b89b7a9faf504e00af7c9fd58978 \ + --hash=sha256:f52dabc96ca99ebd2169dadbe018824ebda08a795c7684a0b7d203a290f3adb0 # via # gcp-docuploader # gcp-releasetool @@ -381,10 +374,6 @@ secretstorage==3.3.3 \ --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 # via keyring -setuptools==65.6.3 \ - --hash=sha256:57f6f22bde4e042978bcd50176fdb381d7c21a9efa4041202288d3737a0c6a54 \ - --hash=sha256:a7620757bf984b58deaf32fc8a4577a9bbc0850cf92c20e1ce41c38c19e5fb75 - # via -r requirements.in six==1.16.0 \ --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d852b027fa58..7abc55873f60 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,20 +51,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.6.0') +implementation platform('com.google.cloud:libraries-bom:26.7.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.2" ``` ## Authentication From 1cf960b00c7f93b09d5871eec7c57eb227a2c7b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Feb 2023 18:10:14 +0000 Subject: [PATCH 1329/2363] build(deps): bump protobuf from 3.20.1 to 3.20.2 in /.kokoro (#1465) Bumps [protobuf](https://togithub.com/protocolbuffers/protobuf) from 3.20.1 to 3.20.2.
    Release notes

    Sourced from protobuf's releases.

    Protocol Buffers v3.20.2

    C++

    Commits

    [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=protobuf&package-manager=pip&previous-version=3.20.1&new-version=3.20.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
    Dependabot commands and options
    You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language You can disable automated security fix PRs for this repo from the [Security Alerts page](https://togithub.com/googleapis/java-pubsub/network/alerts).
    From c1b2219df03ed58dd1c7899682ce9c1131e4272b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Feb 2023 15:30:56 +0000 Subject: [PATCH 1330/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.3.0 (#1491) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.3.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7abc55873f60..1170e921e116 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.7.0') +implementation platform('com.google.cloud:libraries-bom:26.8.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f705ad8b168c..ace18aee3c9a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.2.0 + 3.3.0 pom import From 3f615bc3b2eca50c18c05a8a5c7e94fa2b77975c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 22 Feb 2023 10:31:31 -0500 Subject: [PATCH 1331/2363] build(deps): update releasetool version for release scripts (#1768) (#1493) This should fix release script reporting back to the release PRs Source-Link: https://github.com/googleapis/synthtool/commit/4c15ec0960687db8e6da43535fa1ee0e92fbb817 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:e62f3ea524b11c1cd6ff7f80362736d86c0056631346b5b106a421686fce2726 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.kokoro/requirements.in | 2 +- java-pubsub/.kokoro/requirements.txt | 12 ++++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 090264303f34..a5361a30a366 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:5ee35ee919254a3d1e7d4f8abbf1b8c8869ade317ceb2e4df709af1b4b3e9ca1 + digest: sha256:e62f3ea524b11c1cd6ff7f80362736d86c0056631346b5b106a421686fce2726 diff --git a/java-pubsub/.kokoro/requirements.in b/java-pubsub/.kokoro/requirements.in index b19a8dbfdd5e..2092cc741d9c 100644 --- a/java-pubsub/.kokoro/requirements.in +++ b/java-pubsub/.kokoro/requirements.in @@ -1,5 +1,5 @@ gcp-docuploader -gcp-releasetool +gcp-releasetool>=1.10.5 # required for compatibility with cryptography>=39.x wheel setuptools typing-extensions diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index cfadd22ce9b9..c80f0a87cc53 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.9 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # # pip-compile --allow-unsafe --generate-hashes requirements.in @@ -126,9 +126,9 @@ gcp-docuploader==0.6.4 \ --hash=sha256:01486419e24633af78fd0167db74a2763974765ee8078ca6eb6964d0ebd388af \ --hash=sha256:70861190c123d907b3b067da896265ead2eeb9263969d6955c9e0bb091b5ccbf # via -r requirements.in -gcp-releasetool==1.9.1 \ - --hash=sha256:952f4055d5d986b070ae2a71c4410b250000f9cc5a1e26398fcd55a5bbc5a15f \ - --hash=sha256:d0d3c814a97c1a237517e837d8cfa668ced8df4b882452578ecef4a4e79c583b +gcp-releasetool==1.10.5 \ + --hash=sha256:174b7b102d704b254f2a26a3eda2c684fd3543320ec239baf771542a2e58e109 \ + --hash=sha256:e29d29927fe2ca493105a82958c6873bb2b90d503acac56be2c229e74de0eec9 # via -r requirements.in google-api-core==2.8.2 \ --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ @@ -374,6 +374,10 @@ secretstorage==3.3.3 \ --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 # via keyring +setuptools==67.3.2 \ + --hash=sha256:95f00380ef2ffa41d9bba85d95b27689d923c93dfbafed4aecd7cf988a25e012 \ + --hash=sha256:bb6d8e508de562768f2027902929f8523932fcd1fb784e6d573d2cafac995a48 + # via -r requirements.in six==1.16.0 \ --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 From 430ad698d57e8785ec59fd4344d907dbc2b5f068 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Feb 2023 15:32:00 +0000 Subject: [PATCH 1332/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.11.0 (#1490) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.11.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a03d8dd331f3..b764f71d37cc 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.10.0 + 2.11.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d330274ab943..8888a03890a8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.10.0 + 2.11.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 223c6ca701e7..73fd6a08ba98 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.10.0 + 2.11.0 tests From c3b3559505dfbd94bf3bc627aa2819bc9a04193c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Feb 2023 15:32:22 +0000 Subject: [PATCH 1333/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.22.0 (#1489) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.22.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b764f71d37cc..cfcb3c0fc03a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.21.0 + 2.22.0
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8888a03890a8..579bf3fd1960 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.21.0 + 2.22.0
    From 4c289ecbe08ed4f1c5e3ba9d471c1f454c9cec0d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Feb 2023 15:32:45 +0000 Subject: [PATCH 1334/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.8.0 (#1488) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.8.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1170e921e116..8fc63ee91f02 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.4.0 + 26.8.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index ae129c3e7f20..1f2350e325cd 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.4.0 + 26.8.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 73fd6a08ba98..3b1b0f005410 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.4.0 + 26.8.0 pom import From 4943fbe03c6224ad9984384397e4bf0b6ab9b665 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Feb 2023 15:33:10 +0000 Subject: [PATCH 1335/2363] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.0 (#1486) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index b415653ba622..ae14077f5b19 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -54,7 +54,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.0.0 + 3.1.0 true From 688bd9eb1f188a5ff984d2b3df555fd34477b315 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Feb 2023 15:33:37 +0000 Subject: [PATCH 1336/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.2 (#1483) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8fc63ee91f02..3204a705f534 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.1 + 1.123.2 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index cfcb3c0fc03a..49618b9fbeef 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.1 + 1.123.2 From bc585224efca61a24497c2f371af05135afcc214 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Feb 2023 15:33:58 +0000 Subject: [PATCH 1337/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.20 (#1485) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.20 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 1f2350e325cd..24a41b6d9125 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.19 + 0.9.20 true pubsub.NativeImagePubSubSample From 5420496babd8b00406d70e71539262e71d2c25d3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Feb 2023 15:34:21 +0000 Subject: [PATCH 1338/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.20 (#1484) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.20 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 24a41b6d9125..4e571aa3894e 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.19 + 0.9.20 test
    From 0acea0e5dc6a3ae7bc9e1a05adeb2a46055bf2da Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 22 Feb 2023 19:48:17 +0000 Subject: [PATCH 1339/2363] chore(main): release 1.123.3 (#1482) :robot: I have created a release *beep* *boop* --- ## [1.123.3](https://togithub.com/googleapis/java-pubsub/compare/v1.123.2...v1.123.3) (2023-02-22) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.21.0 ([#1470](https://togithub.com/googleapis/java-pubsub/issues/1470)) ([2ce985c](https://togithub.com/googleapis/java-pubsub/commit/2ce985c48172dfe71c7becbd218d4a53cac873b6)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.22.0 ([#1489](https://togithub.com/googleapis/java-pubsub/issues/1489)) ([c3b3559](https://togithub.com/googleapis/java-pubsub/commit/c3b3559505dfbd94bf3bc627aa2819bc9a04193c)) * Update dependency com.google.cloud:google-cloud-core to v2.10.0 ([#1464](https://togithub.com/googleapis/java-pubsub/issues/1464)) ([57b93bc](https://togithub.com/googleapis/java-pubsub/commit/57b93bc661fb888cbccf65002cb60528823d6153)) * Update dependency com.google.cloud:google-cloud-core to v2.11.0 ([#1490](https://togithub.com/googleapis/java-pubsub/issues/1490)) ([430ad69](https://togithub.com/googleapis/java-pubsub/commit/430ad698d57e8785ec59fd4344d907dbc2b5f068)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.3.0 ([#1491](https://togithub.com/googleapis/java-pubsub/issues/1491)) ([c1b2219](https://togithub.com/googleapis/java-pubsub/commit/c1b2219df03ed58dd1c7899682ce9c1131e4272b)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.20 ([#1484](https://togithub.com/googleapis/java-pubsub/issues/1484)) ([5420496](https://togithub.com/googleapis/java-pubsub/commit/5420496babd8b00406d70e71539262e71d2c25d3)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.20 ([#1485](https://togithub.com/googleapis/java-pubsub/issues/1485)) ([bc58522](https://togithub.com/googleapis/java-pubsub/commit/bc585224efca61a24497c2f371af05135afcc214)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index ec85c0231e21..e79a6a6a1a82 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.123.3](https://github.com/googleapis/java-pubsub/compare/v1.123.2...v1.123.3) (2023-02-22) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.21.0 ([#1470](https://github.com/googleapis/java-pubsub/issues/1470)) ([105c293](https://github.com/googleapis/java-pubsub/commit/105c2933d3f71389e2629e4871767199fe53f7f4)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.22.0 ([#1489](https://github.com/googleapis/java-pubsub/issues/1489)) ([665436c](https://github.com/googleapis/java-pubsub/commit/665436cb9a0900fd62a6197e73baecf13de21597)) +* Update dependency com.google.cloud:google-cloud-core to v2.10.0 ([#1464](https://github.com/googleapis/java-pubsub/issues/1464)) ([8cab4e2](https://github.com/googleapis/java-pubsub/commit/8cab4e2f0b8455a30aa71a7915a836730ee7f059)) +* Update dependency com.google.cloud:google-cloud-core to v2.11.0 ([#1490](https://github.com/googleapis/java-pubsub/issues/1490)) ([c42474a](https://github.com/googleapis/java-pubsub/commit/c42474a8c1a98e7533edef47acf9c7210b99a56e)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.3.0 ([#1491](https://github.com/googleapis/java-pubsub/issues/1491)) ([e5e3227](https://github.com/googleapis/java-pubsub/commit/e5e32273a515cf9ce22ffffb58a8f7a252556526)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.20 ([#1484](https://github.com/googleapis/java-pubsub/issues/1484)) ([8206d12](https://github.com/googleapis/java-pubsub/commit/8206d129d819617a3dd8ebdab531d3fc7b7289f1)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.20 ([#1485](https://github.com/googleapis/java-pubsub/issues/1485)) ([d0e9b2a](https://github.com/googleapis/java-pubsub/commit/d0e9b2a8197f91029ae26fdec7e88f7ca38dab79)) + ## [1.123.2](https://github.com/googleapis/java-pubsub/compare/v1.123.1...v1.123.2) (2023-02-06) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 102764e93f3f..6b640533bc24 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.3-SNAPSHOT + 1.123.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.3-SNAPSHOT + 1.123.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.3-SNAPSHOT + 1.105.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.3-SNAPSHOT + 1.105.3
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5e9dccea7aec..bf443d303d99 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.3-SNAPSHOT + 1.123.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.3-SNAPSHOT + 1.123.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a58e2923ed1b..f58c4ae64d2e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.3-SNAPSHOT + 1.105.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.3-SNAPSHOT + 1.123.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ace18aee3c9a..5511ff3005e8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.3-SNAPSHOT + 1.123.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.3-SNAPSHOT + 1.105.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.3-SNAPSHOT + 1.105.3 com.google.cloud google-cloud-pubsub - 1.123.3-SNAPSHOT + 1.123.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4ea601366ca9..15396477e3ea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.3-SNAPSHOT + 1.105.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.3-SNAPSHOT + 1.123.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 579bf3fd1960..2f20f6f5fcd2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.3-SNAPSHOT + 1.123.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 10f0fe1dc806..1470d1490d61 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.2:1.123.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.2:1.105.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.2:1.105.3-SNAPSHOT +google-cloud-pubsub:1.123.3:1.123.3 +grpc-google-cloud-pubsub-v1:1.105.3:1.105.3 +proto-google-cloud-pubsub-v1:1.105.3:1.105.3 From 4b028d59f5a0dcb5431af4768c4c4377f203f495 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Feb 2023 21:32:38 +0000 Subject: [PATCH 1340/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.3 (#1495) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3204a705f534..848c0e5ee827 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.2 + 1.123.3 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.3" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 49618b9fbeef..50c363fc5e73 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.2 + 1.123.3 From 9b4ecce9db0d2379212d5f1746248aff104cb403 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Feb 2023 21:33:07 +0000 Subject: [PATCH 1341/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.23.0 (#1496) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.23.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 50c363fc5e73..aca3a3984c32 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.22.0 + 2.23.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2f20f6f5fcd2..e00c2bdd5620 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.22.0 + 2.23.0 From d3f8cc641134ab3c7dd82b666e0fd2f1379dfcbc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 22 Feb 2023 21:46:17 +0000 Subject: [PATCH 1342/2363] chore(main): release 1.123.4-SNAPSHOT (#1494) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6b640533bc24..d0aae45eeea6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.3 + 1.123.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.3 + 1.123.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.3 + 1.105.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.3 + 1.105.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index bf443d303d99..a9f7874e63c5 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.3 + 1.123.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.3 + 1.123.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f58c4ae64d2e..5d1ce718f673 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.3 + 1.105.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.3 + 1.123.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5511ff3005e8..858c634899ea 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.3 + 1.123.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.3 + 1.105.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.3 + 1.105.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.3 + 1.123.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 15396477e3ea..884bb1205cd2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.3 + 1.105.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.3 + 1.123.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e00c2bdd5620..aadbc77eaa59 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.3 + 1.123.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1470d1490d61..dbf8b290e0ed 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.3:1.123.3 -grpc-google-cloud-pubsub-v1:1.105.3:1.105.3 -proto-google-cloud-pubsub-v1:1.105.3:1.105.3 +google-cloud-pubsub:1.123.3:1.123.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.3:1.105.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.3:1.105.4-SNAPSHOT From 8e7dc64625adf1b64ffb713994377bc199253122 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 23 Feb 2023 18:03:07 -0500 Subject: [PATCH 1343/2363] chore(main): release 1.123.4 (#1497) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index e79a6a6a1a82..a16cd14632ad 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.123.4](https://github.com/googleapis/java-pubsub/compare/v1.123.3...v1.123.4) (2023-02-22) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.23.0 ([#1496](https://github.com/googleapis/java-pubsub/issues/1496)) ([713d727](https://github.com/googleapis/java-pubsub/commit/713d727db447f02e3c6cc7dfbb656fcebba54121)) + ## [1.123.3](https://github.com/googleapis/java-pubsub/compare/v1.123.2...v1.123.3) (2023-02-22) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d0aae45eeea6..5fdca872914a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.4-SNAPSHOT + 1.123.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.4-SNAPSHOT + 1.123.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.4-SNAPSHOT + 1.105.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.4-SNAPSHOT + 1.105.4 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a9f7874e63c5..7d441b631eb8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.4-SNAPSHOT + 1.123.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.4-SNAPSHOT + 1.123.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5d1ce718f673..89c24da77a98 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.4-SNAPSHOT + 1.105.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.4-SNAPSHOT + 1.123.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 858c634899ea..c0c9076bec7e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.4-SNAPSHOT + 1.123.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.4-SNAPSHOT + 1.105.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.4-SNAPSHOT + 1.105.4 com.google.cloud google-cloud-pubsub - 1.123.4-SNAPSHOT + 1.123.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 884bb1205cd2..5ac370117735 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.4-SNAPSHOT + 1.105.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.4-SNAPSHOT + 1.123.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index aadbc77eaa59..e9b28959b332 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.4-SNAPSHOT + 1.123.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index dbf8b290e0ed..a2218b4eee2b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.3:1.123.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.3:1.105.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.3:1.105.4-SNAPSHOT +google-cloud-pubsub:1.123.4:1.123.4 +grpc-google-cloud-pubsub-v1:1.105.4:1.105.4 +proto-google-cloud-pubsub-v1:1.105.4:1.105.4 From 5c96bccd1b83ca318b75eccbe917ec2102cb18da Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 23 Feb 2023 23:24:12 +0000 Subject: [PATCH 1344/2363] chore(main): release 1.123.5-SNAPSHOT (#1500) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 848c0e5ee827..8596fc51a8d0 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.8.0') +implementation platform('com.google.cloud:libraries-bom:26.9.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5fdca872914a..16ef83dc60f0 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.4 + 1.123.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.4 + 1.123.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.4 + 1.105.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.4 + 1.105.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7d441b631eb8..ca2e9cbc2f0f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.4 + 1.123.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.4 + 1.123.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 89c24da77a98..189117fd265c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.4 + 1.105.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.4 + 1.123.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c0c9076bec7e..b714c3fa6ce0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.4 + 1.123.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.4 + 1.105.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.4 + 1.105.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.4 + 1.123.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5ac370117735..61b4d2e4a153 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.4 + 1.105.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.4 + 1.123.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e9b28959b332..13096cc750ab 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.4 + 1.123.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a2218b4eee2b..10365cbfb5d7 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.4:1.123.4 -grpc-google-cloud-pubsub-v1:1.105.4:1.105.4 -proto-google-cloud-pubsub-v1:1.105.4:1.105.4 +google-cloud-pubsub:1.123.4:1.123.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.4:1.105.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.4:1.105.5-SNAPSHOT From 8b7e8f854643227e0763a1a2e592a76b072fe304 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 28 Feb 2023 11:56:06 -0500 Subject: [PATCH 1345/2363] chore: generate non-cloud client library (#1770) (#1503) * chore: add proto group prefix * add test case for generating google maps * run new tests in ci * parameterize group id for proto artifacts * use helper to compute group id of proto artifacts * verify non cloud library generation * change artifact name in golden * restore new client test * change description * change description * add comments to _proto_group_id Source-Link: https://github.com/googleapis/synthtool/commit/269a915036d3523ad357af5af597a8b0f0f783cc Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:9bf82029163bc06d58f56682afd1893a42ace3e04b0359accb86f79c6ecdc9f9 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index a5361a30a366..6b83f060e758 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:e62f3ea524b11c1cd6ff7f80362736d86c0056631346b5b106a421686fce2726 + digest: sha256:9bf82029163bc06d58f56682afd1893a42ace3e04b0359accb86f79c6ecdc9f9 diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8596fc51a8d0..065a401b24db 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.4" ``` ## Authentication From 4bcb90dc462c817ac2ccb7874fd5fe2994f337b4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 3 Mar 2023 15:44:24 +0000 Subject: [PATCH 1346/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.4 (#1502) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 065a401b24db..81f80fd2e097 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.3 + 1.123.4 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index aca3a3984c32..20c4ad384ba1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.3 + 1.123.4 From f2ed993bdd6425153634a6eb19c7664458b73e2e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 3 Mar 2023 15:44:55 +0000 Subject: [PATCH 1347/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.12.0 (#1509) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 20c4ad384ba1..aa061a5ac72b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.11.0 + 2.12.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 13096cc750ab..aae7092d677a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.11.0 + 2.12.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 3b1b0f005410..8cc2f75a6381 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.11.0 + 2.12.0 tests From 69f266378d1bf94143f1f5a88f64e08c359568f4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 3 Mar 2023 15:45:21 +0000 Subject: [PATCH 1348/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.4.0 (#1510) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b714c3fa6ce0..576da76748cf 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.3.0 + 3.4.0 pom import From 6dfc901a2bf48af33f3c3b0b8eac9188cbff98fb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 3 Mar 2023 15:48:28 +0000 Subject: [PATCH 1349/2363] build(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.11.0 (#1508) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.11.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ca2e9cbc2f0f..ab0ca17bfe35 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -182,7 +182,7 @@ maven-compiler-plugin - 3.10.1 + 3.11.0 1.8 1.8 From a782ed578867f3a4fd607fea97d7ab8fb523e4a3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 3 Mar 2023 16:58:41 -0500 Subject: [PATCH 1350/2363] chore(main): release 1.123.5 (#1513) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index a16cd14632ad..01ac74db9bba 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.123.5](https://github.com/googleapis/java-pubsub/compare/v1.123.4...v1.123.5) (2023-03-03) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.12.0 ([#1509](https://github.com/googleapis/java-pubsub/issues/1509)) ([6f70d8a](https://github.com/googleapis/java-pubsub/commit/6f70d8a96577ac93647f4d13adc6b31889efeddf)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.4.0 ([#1510](https://github.com/googleapis/java-pubsub/issues/1510)) ([0d0ece7](https://github.com/googleapis/java-pubsub/commit/0d0ece70f1527932abb04d9719de68a1367c5881)) + ## [1.123.4](https://github.com/googleapis/java-pubsub/compare/v1.123.3...v1.123.4) (2023-02-22) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 16ef83dc60f0..035e9a1f3cc7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.5-SNAPSHOT + 1.123.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.5-SNAPSHOT + 1.123.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.5-SNAPSHOT + 1.105.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.5-SNAPSHOT + 1.105.5 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ab0ca17bfe35..d42a4605fff7 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.5-SNAPSHOT + 1.123.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.5-SNAPSHOT + 1.123.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 189117fd265c..3a28a58e7654 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.5-SNAPSHOT + 1.105.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.5-SNAPSHOT + 1.123.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 576da76748cf..2d93c85267b7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.5-SNAPSHOT + 1.123.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.5-SNAPSHOT + 1.105.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.5-SNAPSHOT + 1.105.5 com.google.cloud google-cloud-pubsub - 1.123.5-SNAPSHOT + 1.123.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 61b4d2e4a153..64b2bdf512f8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.5-SNAPSHOT + 1.105.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.5-SNAPSHOT + 1.123.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index aae7092d677a..a60e5c240ef9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.5-SNAPSHOT + 1.123.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 10365cbfb5d7..963b839a2ddd 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.4:1.123.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.4:1.105.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.4:1.105.5-SNAPSHOT +google-cloud-pubsub:1.123.5:1.123.5 +grpc-google-cloud-pubsub-v1:1.105.5:1.105.5 +proto-google-cloud-pubsub-v1:1.105.5:1.105.5 From 2e4607096d2bd9def532981d40550e3189e88742 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 3 Mar 2023 22:14:34 +0000 Subject: [PATCH 1351/2363] chore(main): release 1.123.6-SNAPSHOT (#1514) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 035e9a1f3cc7..079c7e7ab896 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.5 + 1.123.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.5 + 1.123.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.5 + 1.105.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.5 + 1.105.6-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d42a4605fff7..1f8094800640 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.5 + 1.123.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.5 + 1.123.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3a28a58e7654..1c4a069fc14f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.5 + 1.105.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.5 + 1.123.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2d93c85267b7..5ef20a263281 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.5 + 1.123.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.5 + 1.105.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.5 + 1.105.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.5 + 1.123.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 64b2bdf512f8..fee873bba08e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.5 + 1.105.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.5 + 1.123.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a60e5c240ef9..8a6fd15233f6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.5 + 1.123.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 963b839a2ddd..812e7fe8d168 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.5:1.123.5 -grpc-google-cloud-pubsub-v1:1.105.5:1.105.5 -proto-google-cloud-pubsub-v1:1.105.5:1.105.5 +google-cloud-pubsub:1.123.5:1.123.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.5:1.105.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.5:1.105.6-SNAPSHOT From d6e8a5601e5d90b77b210883d3d70700fa60fb1c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 9 Mar 2023 18:40:34 +0000 Subject: [PATCH 1352/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.23.2 (#1512) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.23.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 81f80fd2e097..57f7a6f6b011 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,20 +51,20 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.9.0') +implementation platform('com.google.cloud:libraries-bom:26.10.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.5" ``` ## Authentication diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index aa061a5ac72b..4b0ffe2cda10 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.23.0 + 2.23.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8a6fd15233f6..c22f2107ce36 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.23.0 + 2.23.2 From 7051a3d8edc1c3c86d27c273d839fc849835950f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 9 Mar 2023 20:47:14 +0000 Subject: [PATCH 1353/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.5 (#1515) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 57f7a6f6b011..e65b28784fce 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.4 + 1.123.5 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4b0ffe2cda10..f120a4a418d6 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.4 + 1.123.5 From 6a4a0b5d5ea0bdbf49faaae664a491e2a2216917 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Fri, 10 Mar 2023 20:48:25 -0500 Subject: [PATCH 1354/2363] samples: Schema evolution (#1469) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Minor fixes for comments * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Fix rollback example * Formatting * Formatting and wording fixes * Add new schemas to test directory * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 9 + .../java/pubsub/CommitAvroSchemaExample.java | 69 ++++++++ .../java/pubsub/CommitProtoSchemaExample.java | 69 ++++++++ .../java/pubsub/CreateAvroSchemaExample.java | 4 +- .../java/pubsub/CreateProtoSchemaExample.java | 4 +- ...CreateTopicWithSchemaRevisionsExample.java | 82 +++++++++ .../pubsub/DeleteSchemaRevisionExample.java | 55 ++++++ .../java/pubsub/GetSchemaRevisionExample.java | 51 ++++++ .../pubsub/ListSchemaRevisionsExample.java | 46 +++++ .../java/pubsub/RollbackSchemaExample.java | 53 ++++++ ...bscribeWithAvroSchemaRevisionsExample.java | 158 ++++++++++++++++++ .../java/pubsub/UpdateTopicSchemaExample.java | 80 +++++++++ .../src/main/resources/us-states-plus.avsc | 24 +++ .../src/main/resources/us-states-plus.proto | 10 ++ .../src/test/java/pubsub/SchemaIT.java | 146 ++++++++++++++-- .../src/test/resources/us-states-plus.avsc | 24 +++ .../src/test/resources/us-states-plus.proto | 10 ++ 17 files changed, 876 insertions(+), 18 deletions(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/GetSchemaRevisionExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/ListSchemaRevisionsExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/RollbackSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java create mode 100644 java-pubsub/samples/snippets/src/main/resources/us-states-plus.avsc create mode 100644 java-pubsub/samples/snippets/src/main/resources/us-states-plus.proto create mode 100644 java-pubsub/samples/snippets/src/test/resources/us-states-plus.avsc create mode 100644 java-pubsub/samples/snippets/src/test/resources/us-states-plus.proto diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e65b28784fce..b63c3b1513c9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -242,6 +242,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | --------------------------- | --------------------------------- | ------ | | Native Image Pub Sub Sample | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java) | | Publish Operations | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/native-image-sample/src/main/java/utilities/PublishOperations.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/native-image-sample/src/main/java/utilities/PublishOperations.java) | +| Commit Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java) | +| Commit Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | | Create Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | | Create Big Query Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | | Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | @@ -253,13 +255,17 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | +| Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | | Delete Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | +| Delete Schema Revision Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | | Delete Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | | Delete Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | | Detach Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | | Get Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | +| Get Schema Revision Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetSchemaRevisionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSchemaRevisionExample.java) | | Get Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | | Get Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | +| List Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSchemaRevisionsExample.java) | | List Schemas Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | | List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | | List Subscriptions In Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | @@ -278,12 +284,14 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Receive Messages With Delivery Attempts Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | | Remove Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | | Resume Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | +| Rollback Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/RollbackSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RollbackSchemaExample.java) | | Set Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | | Set Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | | Subscribe Async Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | | Subscribe Sync Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | | Subscribe Sync With Lease Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | | Subscribe With Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | +| Subscribe With Avro Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java) | | Subscribe With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | | Subscribe With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | | Subscribe With Error Listener Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | @@ -294,6 +302,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Test Topic Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | | Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | | Update Push Configuration Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | +| Update Topic Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | | State | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/State.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/State.java) | | State Proto | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/StateProto.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/StateProto.java) | diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java new file mode 100644 index 000000000000..e6ac8f2787fd --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java @@ -0,0 +1,69 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_commit_avro_schema] + +import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Paths; + +public class CommitAvroSchemaExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String schemaId = "your-schema-id"; + String avscFile = "path/to/an/avro/schema/file/(.avsc)/formatted/in/json"; + + commitAvroSchemaExample(projectId, schemaId, avscFile); + } + + public static Schema commitAvroSchemaExample(String projectId, String schemaId, String avscFile) + throws IOException { + + ProjectName projectName = ProjectName.of(projectId); + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + // Read an Avro schema file formatted in JSON as a string. + String avscSource = new String(Files.readAllBytes(Paths.get(avscFile))); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + + Schema schema = + schemaServiceClient.commitSchema( + schemaName.toString(), + Schema.newBuilder() + .setName(schemaName.toString()) + .setType(Schema.Type.AVRO) + .setDefinition(avscSource) + .build()); + + System.out.println("Committed a schema using an Avro schema:\n" + schema); + return schema; + } catch (AlreadyExistsException e) { + System.out.println(schemaName + "already exists."); + return null; + } + } +} +// [END pubsub_commit_avro_schema] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java new file mode 100644 index 000000000000..b32de29dc655 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java @@ -0,0 +1,69 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_commit_proto_schema] + +import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.ProjectName; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Paths; + +public class CommitProtoSchemaExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String schemaId = "your-schema-id"; + String protoFile = "path/to/a/proto/file/(.proto)/formatted/in/protocol/buffers"; + + commitProtoSchemaExample(projectId, schemaId, protoFile); + } + + public static Schema commitProtoSchemaExample(String projectId, String schemaId, String protoFile) + throws IOException { + + ProjectName projectName = ProjectName.of(projectId); + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + // Read a proto file as a string. + String protoSource = new String(Files.readAllBytes(Paths.get(protoFile))); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + + Schema schema = + schemaServiceClient.commitSchema( + schemaName.toString(), + Schema.newBuilder() + .setName(schemaName.toString()) + .setType(Schema.Type.PROTOCOL_BUFFER) + .setDefinition(protoSource) + .build()); + + System.out.println("Committed a schema using a protobuf schema:\n" + schema); + return schema; + } catch (AlreadyExistsException e) { + System.out.println(schemaName + "already exists."); + return null; + } + } +} +// [END pubsub_commit_proto_schema] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java index 1b93b7fbe4bb..393b128b3b26 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java @@ -38,7 +38,7 @@ public static void main(String... args) throws Exception { createAvroSchemaExample(projectId, schemaId, avscFile); } - public static void createAvroSchemaExample(String projectId, String schemaId, String avscFile) + public static Schema createAvroSchemaExample(String projectId, String schemaId, String avscFile) throws IOException { ProjectName projectName = ProjectName.of(projectId); @@ -60,8 +60,10 @@ public static void createAvroSchemaExample(String projectId, String schemaId, St schemaId); System.out.println("Created a schema using an Avro schema:\n" + schema); + return schema; } catch (AlreadyExistsException e) { System.out.println(schemaName + "already exists."); + return null; } } } diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java index a8efdeb8e6b4..e7b5bf113e07 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java @@ -38,7 +38,7 @@ public static void main(String... args) throws Exception { createProtoSchemaExample(projectId, schemaId, protoFile); } - public static void createProtoSchemaExample(String projectId, String schemaId, String protoFile) + public static Schema createProtoSchemaExample(String projectId, String schemaId, String protoFile) throws IOException { ProjectName projectName = ProjectName.of(projectId); @@ -60,8 +60,10 @@ public static void createProtoSchemaExample(String projectId, String schemaId, S schemaId); System.out.println("Created a schema using a protobuf schema:\n" + schema); + return schema; } catch (AlreadyExistsException e) { System.out.println(schemaName + "already exists."); + return null; } } } diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java new file mode 100644 index 000000000000..69322d927642 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java @@ -0,0 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_schema_revisions] + +import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.Encoding; +import com.google.pubsub.v1.SchemaName; +import com.google.pubsub.v1.SchemaSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithSchemaRevisionsExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Use an existing schema. + String schemaId = "your-schema-id"; + // Choose either BINARY or JSON message serialization in this topic. + Encoding encoding = Encoding.BINARY; + // Set the minimum and maximum revsion ID + String firstRevisionId = "your-revision-id"; + String lastRevisionId = "your-revision-id"; + + createTopicWithSchemaRevisionsExample( + projectId, topicId, schemaId, firstRevisionId, lastRevisionId, encoding); + } + + public static void createTopicWithSchemaRevisionsExample( + String projectId, + String topicId, + String schemaId, + String firstRevisionid, + String lastRevisionId, + Encoding encoding) + throws IOException { + TopicName topicName = TopicName.of(projectId, topicId); + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + SchemaSettings schemaSettings = + SchemaSettings.newBuilder() + .setSchema(schemaName.toString()) + .setFirstRevisionId(firstRevisionid) + .setLastRevisionId(lastRevisionId) + .setEncoding(encoding) + .build(); + + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setSchemaSettings(schemaSettings) + .build()); + + System.out.println("Created topic with schema: " + topic.getName()); + } catch (AlreadyExistsException e) { + System.out.println(schemaName + "already exists."); + } + } +} +// [END pubsub_create_topic_with_schema_revisions] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java new file mode 100644 index 000000000000..30aa65a53536 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_delete_schema_revision] + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.DeleteSchemaRevisionRequest; +import com.google.pubsub.v1.SchemaName; +import java.io.IOException; + +public class DeleteSchemaRevisionExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String schemaId = "your-schema-id@your-revision-id"; + + deleteSchemaRevisionExample(projectId, schemaId); + } + + public static void deleteSchemaRevisionExample(String projectId, String schemaId) + throws IOException { + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + + DeleteSchemaRevisionRequest request = + DeleteSchemaRevisionRequest.newBuilder().setName(schemaName.toString()).build(); + + schemaServiceClient.deleteSchemaRevision(request); + + System.out.println("Deleted a schema revision:" + schemaName); + + } catch (NotFoundException e) { + System.out.println(schemaName + "not found."); + } + } +} +// [END pubsub_delete_schema_revision] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/GetSchemaRevisionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/GetSchemaRevisionExample.java new file mode 100644 index 000000000000..ce8c17ee8379 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/GetSchemaRevisionExample.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_get_schema_revision] + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import java.io.IOException; + +public class GetSchemaRevisionExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String schemaId = "your-schema-id[@your-schema-revision]"; + getSchemaRevisionExample(projectId, schemaId); + } + + public static void getSchemaRevisionExample(String projectId, String schemaId) + throws IOException { + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + + Schema schema = schemaServiceClient.getSchema(schemaName); + + System.out.println("Got a schema:\n" + schema); + + } catch (NotFoundException e) { + System.out.println(schemaName + "not found."); + } + } +} +// [END pubsub_get_schema_revision] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/ListSchemaRevisionsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/ListSchemaRevisionsExample.java new file mode 100644 index 000000000000..69cfa59ab2c8 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/ListSchemaRevisionsExample.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_list_schema_revisions] +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import java.io.IOException; + +public class ListSchemaRevisionsExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String schemaId = "your-schema-id"; + + listSchemaRevisionsExample(projectId, schemaId); + } + + public static void listSchemaRevisionsExample(String projectId, String schemaId) + throws IOException { + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + for (Schema schema : schemaServiceClient.listSchemaRevisions(schemaName).iterateAll()) { + System.out.println(schema); + } + System.out.println("Listed schema revisions."); + } + } +} +// [END pubsub_list_schema_revisions] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/RollbackSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/RollbackSchemaExample.java new file mode 100644 index 000000000000..0af304ed5203 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/RollbackSchemaExample.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_rollback_schema] + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.pubsub.v1.Schema; +import com.google.pubsub.v1.SchemaName; +import java.io.IOException; + +public class RollbackSchemaExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project"; + String schemaId = "your-schema"; + String revisionId = "your-revision"; + + rollbackSchemaExample(projectId, schemaId, revisionId); + } + + public static void rollbackSchemaExample(String projectId, String schemaId, String revisionId) + throws IOException { + SchemaName schemaName = SchemaName.of(projectId, schemaId); + + try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { + + Schema schema = schemaServiceClient.rollbackSchema(schemaName, revisionId); + + System.out.println("Rolled back a schema:" + schema); + + } catch (NotFoundException e) { + System.out.println(schemaName + "not found."); + } + } +} +// [END pubsub_rollback_schema] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java new file mode 100644 index 000000000000..6c2d31efee28 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java @@ -0,0 +1,158 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscribe_avro_records_with_revisions] + +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.SchemaServiceClient; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.Schema; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import org.apache.avro.io.Decoder; +import org.apache.avro.io.DecoderFactory; +import org.apache.avro.specific.SpecificDatumReader; +import utilities.State; + +public class SubscribeWithAvroSchemaRevisionsExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + // Use an existing subscription. + String subscriptionId = "your-subscription-id"; + + subscribeWithAvroSchemaRevisionsExample(projectId, subscriptionId); + } + + static SchemaServiceClient getSchemaServiceClient() { + try { + return SchemaServiceClient.create(); + } catch (IOException e) { + System.out.println("Could not get schema client: " + e); + return null; + } + } + + public static void subscribeWithAvroSchemaRevisionsExample( + String projectId, String subscriptionId) { + // Used to get the schemas for revsions. + final SchemaServiceClient schemaServiceClient = getSchemaServiceClient(); + if (schemaServiceClient == null) { + return; + } + + // Cache for the readers for different revision IDs. + Map> revisionReaders = + new HashMap>(); + + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + // Get the schema encoding type. + String name = message.getAttributesMap().get("googclient_schemaname"); + String revision = message.getAttributesMap().get("googclient_schemarevisionid"); + + SpecificDatumReader reader = null; + synchronized (revisionReaders) { + reader = revisionReaders.get(revision); + } + if (reader == null) { + // This is the first time we are seeing this revision. We need to + // fetch the schema and cache its decoder. It would be more typical + // to do this asynchronously, but is shown here in a synchronous + // way to ease readability. + try { + Schema schema = schemaServiceClient.getSchema(name + "@" + revision); + org.apache.avro.Schema avroSchema = + new org.apache.avro.Schema.Parser().parse(schema.getDefinition()); + reader = new SpecificDatumReader(State.getClassSchema(), avroSchema); + synchronized (revisionReaders) { + revisionReaders.put(revision, reader); + } + } catch (Exception e) { + System.out.println("Could not get schema: " + e); + // Without the schema, we cannot read the message, so nack it. + consumer.nack(); + return; + } + } + + ByteString data = message.getData(); + // Send the message data to a byte[] input stream. + InputStream inputStream = new ByteArrayInputStream(data.toByteArray()); + + String encoding = message.getAttributesMap().get("googclient_schemaencoding"); + + Decoder decoder = null; + + // Prepare an appropriate decoder for the message data in the input stream + // based on the schema encoding type. + try { + switch (encoding) { + case "BINARY": + decoder = DecoderFactory.get().directBinaryDecoder(inputStream, /*reuse=*/ null); + System.out.println("Receiving a binary-encoded message:"); + break; + case "JSON": + decoder = DecoderFactory.get().jsonDecoder(State.getClassSchema(), inputStream); + System.out.println("Receiving a JSON-encoded message:"); + break; + default: + System.out.println("Unknown message type; nacking."); + consumer.nack(); + break; + } + + // Obtain an object of the generated Avro class using the decoder. + State state = reader.read(null, decoder); + System.out.println(state.getName() + " is abbreviated as " + state.getPostAbbr()); + + // Ack the message. + consumer.ack(); + } catch (IOException e) { + System.err.println(e); + // If we failed to process the message, nack it. + consumer.nack(); + } + }; + + Subscriber subscriber = null; + try { + subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + subscriber.stopAsync(); + } + } +} +// [END pubsub_subscribe_avro_records_with_revisions] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java new file mode 100644 index 000000000000..4383fffd61f0 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java @@ -0,0 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_update_topic_schema] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.SchemaSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.UpdateTopicRequest; +import java.io.IOException; + +public class UpdateTopicSchemaExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + // This is an existing topic that has schema settings attached to it. + String topicId = "your-topic-id"; + // Set the minimum and maximum revsion ID + String firstRevisionId = "your-revision-id"; + String lastRevisionId = "your-revision-id"; + + UpdateTopicSchemaExample.updateTopicSchemaExample( + projectId, topicId, firstRevisionId, lastRevisionId); + } + + public static void updateTopicSchemaExample( + String projectId, String topicId, String firstRevisionid, String lastRevisionId) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + + TopicName topicName = TopicName.of(projectId, topicId); + + // Construct the schema settings with the changes you want to make. + SchemaSettings schemaSettings = + SchemaSettings.newBuilder() + .setFirstRevisionId(firstRevisionid) + .setLastRevisionId(lastRevisionId) + .build(); + + // Construct the topic with the schema settings you want to change. + Topic topic = + Topic.newBuilder() + .setName(topicName.toString()) + .setSchemaSettings(schemaSettings) + .build(); + + // Construct a field mask to indicate which field to update in the topic. + FieldMask updateMask = + FieldMask.newBuilder() + .addPaths("schema_settings.first_revision_id") + .addPaths("schema_settings.last_revision_id") + .build(); + + UpdateTopicRequest request = + UpdateTopicRequest.newBuilder().setTopic(topic).setUpdateMask(updateMask).build(); + + Topic response = topicAdminClient.updateTopic(request); + + System.out.println("Updated topic with schema: " + topic.getName()); + } + } +} +// [END pubsub_update_topic_schema] diff --git a/java-pubsub/samples/snippets/src/main/resources/us-states-plus.avsc b/java-pubsub/samples/snippets/src/main/resources/us-states-plus.avsc new file mode 100644 index 000000000000..74225ae7e2e6 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/resources/us-states-plus.avsc @@ -0,0 +1,24 @@ +{ + "type":"record", + "name":"State", + "namespace":"utilities", + "doc":"A list of states in the United States of America.", + "fields":[ + { + "name":"name", + "type":"string", + "doc":"The common name of the state." + }, + { + "name":"post_abbr", + "type":"string", + "doc":"The postal code abbreviation of the state." + }, + { + "name":"population", + "type":"long", + "default":0, + "doc":"The population of the state." + } + ] +} diff --git a/java-pubsub/samples/snippets/src/main/resources/us-states-plus.proto b/java-pubsub/samples/snippets/src/main/resources/us-states-plus.proto new file mode 100644 index 000000000000..646c7dcb61ef --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/resources/us-states-plus.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package utilities; +option java_outer_classname = "StateProto"; + +message State { + string name = 1; + string post_abbr = 2; + int64 population = 3; +} diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java index bec908800f0e..2874ae519bd9 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java @@ -26,6 +26,7 @@ import com.google.cloud.testing.junit4.MultipleAttemptsRule; import com.google.pubsub.v1.Encoding; import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.Schema; import com.google.pubsub.v1.SchemaName; import com.google.pubsub.v1.TopicName; import java.io.ByteArrayOutputStream; @@ -46,6 +47,7 @@ public class SchemaIT { private static String _suffix; private static String avroTopicId; private static String protoTopicId; + private static String protoTopicWithRevisionsId; private static String avroSubscriptionId; private static String protoSubscriptionId; private static String avroSchemaId; @@ -54,12 +56,17 @@ public class SchemaIT { ClassLoader classLoader = getClass().getClassLoader(); File avscFile = new File(classLoader.getResource("us-states.avsc").getFile()); String absoluteAvscFilePath = avscFile.getAbsolutePath(); + File avscRevisionFile = new File(classLoader.getResource("us-states-plus.avsc").getFile()); + String absoluteAvscRevisionFilePath = avscRevisionFile.getAbsolutePath(); - File protoFile = new File(classLoader.getResource("us-states.proto").getFile()); + File protoFile = new File(classLoader.getResource("us-states-plus.proto").getFile()); String absoluteProtoFilePath = protoFile.getAbsolutePath(); + File protoRevisionFile = new File(classLoader.getResource("us-states.proto").getFile()); + String absoluteProtoRevisionFilePath = protoFile.getAbsolutePath(); private static TopicName avroTopicName; private static TopicName protoTopicName; + private static TopicName protoTopicWithRevisionsName; private static ProjectSubscriptionName avroSubscriptionName; private static ProjectSubscriptionName protoSubscriptionName; private static SchemaName avroSchemaName; @@ -79,12 +86,14 @@ public void setUp() { _suffix = UUID.randomUUID().toString(); avroTopicId = "avro-topic-" + _suffix; protoTopicId = "proto-topic-" + _suffix; + protoTopicWithRevisionsId = "proto-topic-with-revisions-" + _suffix; avroSubscriptionId = "avro-subscription-" + _suffix; protoSubscriptionId = "proto-subscription-" + _suffix; avroSchemaId = "avro-schema-" + _suffix; protoSchemaId = "proto-schema-" + _suffix; avroTopicName = TopicName.of(projectId, avroTopicId); protoTopicName = TopicName.of(projectId, protoTopicId); + protoTopicWithRevisionsName = TopicName.of(projectId, protoTopicWithRevisionsId); avroSubscriptionName = ProjectSubscriptionName.of(projectId, avroSubscriptionId); protoSubscriptionName = ProjectSubscriptionName.of(projectId, protoSubscriptionId); avroSchemaName = SchemaName.of(projectId, avroSchemaId); @@ -98,26 +107,49 @@ public void setUp() { public void tearDown() throws Exception { // Delete the schemas if they have not been cleaned up. try (SchemaServiceClient schemaServiceClient = SchemaServiceClient.create()) { - schemaServiceClient.deleteSchema(protoSchemaName); - schemaServiceClient.deleteSchema(avroSchemaName); - } catch (NotFoundException ignored) { - // Ignore this as resources may have already been cleaned up. + try { + schemaServiceClient.deleteSchema(protoSchemaName); + } catch (NotFoundException ignored) { + // Ignore this as resources may have already been cleaned up. + } + try { + schemaServiceClient.deleteSchema(avroSchemaName); + } catch (NotFoundException ignored) { + // Ignore this as resources may have already been cleaned up. + } } // Delete the subscriptions. try (SubscriptionAdminClient subscriptionAdmin = SubscriptionAdminClient.create()) { - subscriptionAdmin.deleteSubscription(avroSubscriptionName.toString()); - subscriptionAdmin.deleteSubscription(protoSubscriptionName.toString()); - } catch (NotFoundException ignored) { - // Ignore this as resources may have already been cleaned up. + try { + subscriptionAdmin.deleteSubscription(avroSubscriptionName.toString()); + } catch (NotFoundException ignored) { + // Ignore this as resources may have already been cleaned up. + } + try { + subscriptionAdmin.deleteSubscription(protoSubscriptionName.toString()); + } catch (NotFoundException ignored) { + // Ignore this as resources may have already been cleaned up. + } } // Delete the topics. try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - topicAdminClient.deleteTopic(avroTopicName.toString()); - topicAdminClient.deleteTopic(protoTopicName.toString()); - } catch (NotFoundException ignored) { - // Ignore this as resources may have already been cleaned up. + try { + topicAdminClient.deleteTopic(avroTopicName.toString()); + } catch (NotFoundException ignored) { + // Ignore this as resources may have already been cleaned up. + } + try { + topicAdminClient.deleteTopic(protoTopicName.toString()); + } catch (NotFoundException ignored) { + // Ignore this as resources may have already been cleaned up. + } + try { + topicAdminClient.deleteTopic(protoTopicWithRevisionsName.toString()); + } catch (NotFoundException ignored) { + // Ignore this as resources may have already been cleaned up. + } } System.setOut(null); } @@ -125,28 +157,67 @@ public void tearDown() throws Exception { @Test public void testSchema() throws Exception { // Test creating Avro schema. - CreateAvroSchemaExample.createAvroSchemaExample(projectId, avroSchemaId, absoluteAvscFilePath); + Schema avroSchema = + CreateAvroSchemaExample.createAvroSchemaExample( + projectId, avroSchemaId, absoluteAvscFilePath); assertThat(bout.toString()).contains("Created a schema using an Avro schema:"); assertThat(bout.toString()).contains(avroSchemaName.toString()); + bout.reset(); + // Test committing Avro schema. + CommitAvroSchemaExample.commitAvroSchemaExample( + projectId, avroSchemaId, absoluteAvscRevisionFilePath); + assertThat(bout.toString()).contains("Committed a schema using an Avro schema:"); + assertThat(bout.toString()).contains(avroSchemaName.toString()); + + bout.reset(); // Test creating Proto schema. - CreateProtoSchemaExample.createProtoSchemaExample( - projectId, protoSchemaId, absoluteProtoFilePath); + final Schema protoSchema = + CreateProtoSchemaExample.createProtoSchemaExample( + projectId, protoSchemaId, absoluteProtoFilePath); assertThat(bout.toString()).contains("Created a schema using a protobuf schema:"); assertThat(bout.toString()).contains(protoSchemaName.toString()); + bout.reset(); + // Test committing Proto schema. + final Schema protoSchemaRevision = + CommitProtoSchemaExample.commitProtoSchemaExample( + projectId, protoSchemaId, absoluteProtoRevisionFilePath); + assertThat(bout.toString()).contains("Committed a schema using a protobuf schema:"); + assertThat(bout.toString()).contains(protoSchemaName.toString()); + + bout.reset(); + // Test rolling back a schema. + RollbackSchemaExample.rollbackSchemaExample( + projectId, protoSchemaId, protoSchema.getRevisionId()); + assertThat(bout.toString()).contains("Rolled back a schema:"); + assertThat(bout.toString()).contains(protoSchemaName.toString()); + bout.reset(); // Test getting a schema. GetSchemaExample.getSchemaExample(projectId, avroSchemaId); assertThat(bout.toString()).contains("Got a schema:"); assertThat(bout.toString()).contains(avroSchemaName.toString()); + bout.reset(); + // Test getting a schema revision. + GetSchemaRevisionExample.getSchemaRevisionExample( + projectId, protoSchemaId + "@" + protoSchemaRevision.getRevisionId()); + assertThat(bout.toString()).contains("Got a schema:"); + assertThat(bout.toString()).contains(protoSchemaName.toString()); + bout.reset(); // Test listing schemas. ListSchemasExample.listSchemasExample(projectId); assertThat(bout.toString()).contains("Listed schemas."); assertThat(bout.toString()).contains(avroSchemaName.toString()); + bout.reset(); + // Test listing schema revisions. + ListSchemaRevisionsExample.listSchemaRevisionsExample(projectId, protoSchemaId); + assertThat(bout.toString()).contains("Listed schema revisions."); + assertThat(bout.toString()).contains(protoSchemaName.toString()); + bout.reset(); // Test creating a topic with an Avro schema with BINARY encoding. CreateTopicWithSchemaExample.createTopicWithSchemaExample( @@ -159,6 +230,19 @@ public void testSchema() throws Exception { projectId, protoTopicId, protoSchemaId, Encoding.JSON); assertThat(bout.toString()).contains("Created topic with schema: " + protoTopicName.toString()); + bout.reset(); + // Test creating a topic with a proto schema with revisions specified. + CreateTopicWithSchemaRevisionsExample.createTopicWithSchemaRevisionsExample( + projectId, + protoTopicWithRevisionsId, + protoSchemaId, + protoSchema.getRevisionId(), + protoSchemaRevision.getRevisionId(), + Encoding.BINARY); + assertThat(bout.toString()) + .contains("Created topic with schema: " + protoTopicWithRevisionsName.toString()); + + bout.reset(); // Attach a default pull subscription to each topic. CreatePullSubscriptionExample.createPullSubscriptionExample( projectId, avroSubscriptionId, avroTopicId); @@ -177,6 +261,19 @@ public void testSchema() throws Exception { assertThat(bout.toString()).contains("Publishing a JSON-formatted message:"); assertThat(bout.toString()).contains("Published message ID:"); + bout.reset(); + // Test receiving BINARY-encoded Avro records. + SubscribeWithAvroSchemaRevisionsExample.subscribeWithAvroSchemaRevisionsExample( + projectId, avroSubscriptionId); + assertThat(bout.toString()).contains("Receiving a binary-encoded message:"); + assertThat(bout.toString()).contains(" is abbreviated as "); + + bout.reset(); + // Test publishing BINARY-encoded Avro records. + PublishAvroRecordsExample.publishAvroRecordsExample(projectId, avroTopicId); + assertThat(bout.toString()).contains("Preparing a BINARY encoder..."); + assertThat(bout.toString()).contains("Published message ID:"); + bout.reset(); // Test receiving BINARY-encoded Avro records. SubscribeWithAvroSchemaExample.subscribeWithAvroSchemaExample(projectId, avroSubscriptionId); @@ -189,6 +286,23 @@ public void testSchema() throws Exception { assertThat(bout.toString()).contains("Received a JSON-formatted message:"); assertThat(bout.toString()).contains("Ack'ed the message"); + bout.reset(); + // Test updating a topic schema settings + UpdateTopicSchemaExample.updateTopicSchemaExample( + projectId, + protoTopicWithRevisionsId, + protoSchemaRevision.getRevisionId(), + protoSchemaRevision.getRevisionId()); + assertThat(bout.toString()) + .contains("Updated topic with schema: " + protoTopicWithRevisionsName.toString()); + + bout.reset(); + // Test deleting a schema revision. + DeleteSchemaRevisionExample.deleteSchemaRevisionExample( + projectId, protoSchemaId + "@" + protoSchemaRevision.getRevisionId()); + assertThat(bout.toString()).contains("Deleted a schema revision:"); + assertThat(bout.toString()).contains(protoSchemaName.toString()); + bout.reset(); // Test deleting a schema. DeleteSchemaExample.deleteSchemaExample(projectId, avroSchemaId); diff --git a/java-pubsub/samples/snippets/src/test/resources/us-states-plus.avsc b/java-pubsub/samples/snippets/src/test/resources/us-states-plus.avsc new file mode 100644 index 000000000000..74225ae7e2e6 --- /dev/null +++ b/java-pubsub/samples/snippets/src/test/resources/us-states-plus.avsc @@ -0,0 +1,24 @@ +{ + "type":"record", + "name":"State", + "namespace":"utilities", + "doc":"A list of states in the United States of America.", + "fields":[ + { + "name":"name", + "type":"string", + "doc":"The common name of the state." + }, + { + "name":"post_abbr", + "type":"string", + "doc":"The postal code abbreviation of the state." + }, + { + "name":"population", + "type":"long", + "default":0, + "doc":"The population of the state." + } + ] +} diff --git a/java-pubsub/samples/snippets/src/test/resources/us-states-plus.proto b/java-pubsub/samples/snippets/src/test/resources/us-states-plus.proto new file mode 100644 index 000000000000..646c7dcb61ef --- /dev/null +++ b/java-pubsub/samples/snippets/src/test/resources/us-states-plus.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package utilities; +option java_outer_classname = "StateProto"; + +message State { + string name = 1; + string post_abbr = 2; + int64 population = 3; +} From cfe6832779778a4c5acb63fb9646191486e36c11 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Tue, 14 Mar 2023 08:37:05 -0400 Subject: [PATCH 1355/2363] Samples: Fix schema exception handling (#1520) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Minor fixes for comments * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Fix rollback example * Formatting * Formatting and wording fixes * Add new schemas to test directory * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Samples: Fix exception handling * fix: Set x-goog-request-params for streaming pull request * Revert "fix: Set x-goog-request-params for streaming pull request" This reverts commit 3185a3e9d48680d75cc70745f7ea0048d726556b. --------- Co-authored-by: Owl Bot --- .../src/main/java/pubsub/CommitAvroSchemaExample.java | 6 +++--- .../src/main/java/pubsub/CommitProtoSchemaExample.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java index e6ac8f2787fd..8f24e75a26a6 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java @@ -18,7 +18,7 @@ // [START pubsub_commit_avro_schema] -import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.api.gax.rpc.NotFoundException; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Schema; @@ -60,8 +60,8 @@ public static Schema commitAvroSchemaExample(String projectId, String schemaId, System.out.println("Committed a schema using an Avro schema:\n" + schema); return schema; - } catch (AlreadyExistsException e) { - System.out.println(schemaName + "already exists."); + } catch (NotFoundException e) { + System.out.println(schemaName + "does not exist."); return null; } } diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java index b32de29dc655..e609b9a5fd96 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java @@ -18,7 +18,7 @@ // [START pubsub_commit_proto_schema] -import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.api.gax.rpc.NotFoundException; import com.google.cloud.pubsub.v1.SchemaServiceClient; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.Schema; @@ -60,8 +60,8 @@ public static Schema commitProtoSchemaExample(String projectId, String schemaId, System.out.println("Committed a schema using a protobuf schema:\n" + schema); return schema; - } catch (AlreadyExistsException e) { - System.out.println(schemaName + "already exists."); + } catch (NotFoundException e) { + System.out.println(schemaName + "does not exist."); return null; } } From 0f0f7768663aa1e903be4ec2e040c4a62e497e2b Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Thu, 16 Mar 2023 14:15:45 -0400 Subject: [PATCH 1356/2363] fix: set x-goog-request-params for streaming pull request (#1522) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Minor fixes for comments * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Fix rollback example * Formatting * Formatting and wording fixes * Add new schemas to test directory * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Samples: Fix exception handling * fix: Set x-goog-request-params for streaming pull request * Revert "fix: Set x-goog-request-params for streaming pull request" This reverts commit 3185a3e9d48680d75cc70745f7ea0048d726556b. * Revert "Revert "fix: Set x-goog-request-params for streaming pull request"" This reverts commit 3b1f4d9c0751a8fa676159842208b4213d764ee6. --------- Co-authored-by: Owl Bot --- .../pubsub/v1/StreamingSubscriberConnection.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index e7046c1be79a..26547529ec44 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -36,6 +36,8 @@ import com.google.api.gax.rpc.StreamController; import com.google.cloud.pubsub.v1.MessageDispatcher.AckProcessor; import com.google.cloud.pubsub.v1.stub.SubscriberStub; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists; import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Any; @@ -86,6 +88,8 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private Duration inititalStreamAckDeadline; + private final Map> streamMetadata; + private final SubscriberStub subscriberStub; private final int channelAffinity; private final String subscription; @@ -134,6 +138,9 @@ private StreamingSubscriberConnection(Builder builder) { inititalStreamAckDeadline = builder.maxDurationPerAckExtension; } + streamMetadata = + ImmutableMap.of("x-goog-request-params", ImmutableList.of("subscription=" + subscription)); + subscriberStub = builder.subscriberStub; channelAffinity = builder.channelAffinity; @@ -273,7 +280,9 @@ private void initialize() { .streamingPullCallable() .splitCall( responseObserver, - GrpcCallContext.createDefault().withChannelAffinity(channelAffinity)); + GrpcCallContext.createDefault() + .withChannelAffinity(channelAffinity) + .withExtraHeaders(streamMetadata)); logger.log(Level.FINER, "Initializing stream to subscription {0}", subscription); // We need to set streaming ack deadline, but it's not useful since we'll modack to send receipt From 2fd95182fd7c33b752e6ce38ac154083578a85eb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 16 Mar 2023 14:16:09 -0400 Subject: [PATCH 1357/2363] chore(main): release 1.123.6 (#1518) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 01ac74db9bba..f5cc44cd4cc1 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.123.6](https://github.com/googleapis/java-pubsub/compare/v1.123.5...v1.123.6) (2023-03-14) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.23.2 ([#1512](https://github.com/googleapis/java-pubsub/issues/1512)) ([60e889e](https://github.com/googleapis/java-pubsub/commit/60e889e587511cc948af440be7733dc4af531dd1)) + ## [1.123.5](https://github.com/googleapis/java-pubsub/compare/v1.123.4...v1.123.5) (2023-03-03) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 079c7e7ab896..44f84ce20a2a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.6-SNAPSHOT + 1.123.6 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.6-SNAPSHOT + 1.123.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.6-SNAPSHOT + 1.105.6 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.6-SNAPSHOT + 1.105.6 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1f8094800640..18e377d7cbaf 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.6-SNAPSHOT + 1.123.6 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.6-SNAPSHOT + 1.123.6 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1c4a069fc14f..e44b0bf6b211 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.6-SNAPSHOT + 1.105.6 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.6-SNAPSHOT + 1.123.6 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5ef20a263281..6e496d046c18 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.6-SNAPSHOT + 1.123.6 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.6-SNAPSHOT + 1.105.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.6-SNAPSHOT + 1.105.6 com.google.cloud google-cloud-pubsub - 1.123.6-SNAPSHOT + 1.123.6 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index fee873bba08e..2ccf710063a3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.6-SNAPSHOT + 1.105.6 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.6-SNAPSHOT + 1.123.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c22f2107ce36..0360d5f54bfd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.6-SNAPSHOT + 1.123.6 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 812e7fe8d168..30a3ad7e4157 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.5:1.123.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.5:1.105.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.5:1.105.6-SNAPSHOT +google-cloud-pubsub:1.123.6:1.123.6 +grpc-google-cloud-pubsub-v1:1.105.6:1.105.6 +proto-google-cloud-pubsub-v1:1.105.6:1.105.6 From 0ae1ca39d6424a9899cb2d11c2edf01c5acc04ba Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 16 Mar 2023 14:16:38 -0400 Subject: [PATCH 1358/2363] chore: fix broken links in `README.md` (#1776) (#1524) * chore: fix cloud cli link in `README.md` * Revert "chore: fix cloud cli link in `README.md`" This reverts commit c8bcf7cf3e2acb12183d0d5da9dfe186be5279fc. * chore: fix cloud cli link in README.md * cap letters * fix maven version link Source-Link: https://github.com/googleapis/synthtool/commit/f0dc278accd789c07cc890bf8d9e11a249c544bc Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:381a48baae37646d72557adaa2c2035a84462cfd830269dfb3847b7d7ca9e96d Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 6b83f060e758..902cb9b80d3c 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:9bf82029163bc06d58f56682afd1893a42ace3e04b0359accb86f79c6ecdc9f9 + digest: sha256:381a48baae37646d72557adaa2c2035a84462cfd830269dfb3847b7d7ca9e96d diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b63c3b1513c9..d474168daa55 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -82,7 +82,7 @@ The client application making API calls must be granted [authorization scopes][a You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Pub/Sub [API enabled][enable-api]. You will need to [enable billing][enable-billing] to use Google Cloud Pub/Sub. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by -[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line: +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. ### Installation and setup @@ -404,14 +404,14 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-pubsub&core=gav +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.5 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles [iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects -[cloud-sdk]: https://cloud.google.com/sdk/ +[cloud-cli]: https://cloud.google.com/cli [troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting [contributing]: https://github.com/googleapis/java-pubsub/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/java-pubsub/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct From c2f21c2281cc6f5dabffdf40e377bd49d2b414b3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 16 Mar 2023 18:36:11 +0000 Subject: [PATCH 1359/2363] chore(main): release 1.123.7-SNAPSHOT (#1526) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 44f84ce20a2a..3b712ad9499b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.6 + 1.123.7-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.6 + 1.123.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.6 + 1.105.7-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.6 + 1.105.7-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 18e377d7cbaf..f0da4cd74f48 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.6 + 1.123.7-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.6 + 1.123.7-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e44b0bf6b211..c8b1561e0d6e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.6 + 1.105.7-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.6 + 1.123.7-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6e496d046c18..639607053dc0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.6 + 1.123.7-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.6 + 1.105.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.6 + 1.105.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.6 + 1.123.7-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2ccf710063a3..dc0dcbc2e93e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.6 + 1.105.7-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.6 + 1.123.7-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0360d5f54bfd..355cfaa3506c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.6 + 1.123.7-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 30a3ad7e4157..72ca0040cea0 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.6:1.123.6 -grpc-google-cloud-pubsub-v1:1.105.6:1.105.6 -proto-google-cloud-pubsub-v1:1.105.6:1.105.6 +google-cloud-pubsub:1.123.6:1.123.7-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.6:1.105.7-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.6:1.105.7-SNAPSHOT From 7cd08a6fe79600d0c208b16b58a4a852b3ccdbe2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 21 Mar 2023 20:55:17 +0000 Subject: [PATCH 1360/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.6 (#1528) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d474168daa55..f90a96944ed6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.5 + 1.123.6 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.6" ``` ## Authentication @@ -404,7 +404,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.5 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.6 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f120a4a418d6..c00245627c2d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.5 + 1.123.6 From 0ab9b2018cddfd48022aee36deefaf4c37e97e58 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 21 Mar 2023 20:55:43 +0000 Subject: [PATCH 1361/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.5.0 (#1532) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.5.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 639607053dc0..3310d04869de 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.4.0 + 3.5.0 pom import From 1d476c3cbaa5e711be8d7eb760a1942d3d1efff5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 21 Mar 2023 17:12:45 -0400 Subject: [PATCH 1362/2363] chore: Adding release-please annotations to readme files (#1781) (#1530) * chore: Adding release-please annotations to readme files Source-Link: https://github.com/googleapis/synthtool/commit/327d46fbfc2c02ff9237c3107513bfa682a94da0 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bf5639d265d70f6137d57d42ae781a6f4e26d4085ff4e018e71350480f9b3996 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 902cb9b80d3c..91bb69e63cac 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:381a48baae37646d72557adaa2c2035a84462cfd830269dfb3847b7d7ca9e96d + digest: sha256:bf5639d265d70f6137d57d42ae781a6f4e26d4085ff4e018e71350480f9b3996 diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f90a96944ed6..3c4c32d7e144 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -66,6 +66,7 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.6" ``` + ## Authentication From a0999a8f71993f1ecce4718a11c27eb937a27f81 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 22 Mar 2023 13:17:53 -0400 Subject: [PATCH 1363/2363] chore(main): release 1.123.7 (#1533) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index f5cc44cd4cc1..c1471a4b6c4c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.123.7](https://github.com/googleapis/java-pubsub/compare/v1.123.6...v1.123.7) (2023-03-21) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.5.0 ([#1532](https://github.com/googleapis/java-pubsub/issues/1532)) ([d63fba7](https://github.com/googleapis/java-pubsub/commit/d63fba73d5ea445144f625f7b67622351694c818)) + ## [1.123.6](https://github.com/googleapis/java-pubsub/compare/v1.123.5...v1.123.6) (2023-03-14) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3b712ad9499b..88baead74d95 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.7-SNAPSHOT + 1.123.7 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.7-SNAPSHOT + 1.123.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.7-SNAPSHOT + 1.105.7 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.7-SNAPSHOT + 1.105.7 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f0da4cd74f48..210b7adb9792 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.7-SNAPSHOT + 1.123.7 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.7-SNAPSHOT + 1.123.7 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c8b1561e0d6e..ab26608c3950 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.7-SNAPSHOT + 1.105.7 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.7-SNAPSHOT + 1.123.7 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3310d04869de..9ee72cff1b46 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.7-SNAPSHOT + 1.123.7 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.7-SNAPSHOT + 1.105.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.7-SNAPSHOT + 1.105.7 com.google.cloud google-cloud-pubsub - 1.123.7-SNAPSHOT + 1.123.7 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index dc0dcbc2e93e..0b0f5b551f30 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.7-SNAPSHOT + 1.105.7 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.7-SNAPSHOT + 1.123.7 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 355cfaa3506c..ace753c7b8f3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.7-SNAPSHOT + 1.123.7 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 72ca0040cea0..bf6e424e6af3 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.6:1.123.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.6:1.105.7-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.6:1.105.7-SNAPSHOT +google-cloud-pubsub:1.123.7:1.123.7 +grpc-google-cloud-pubsub-v1:1.105.7:1.105.7 +proto-google-cloud-pubsub-v1:1.105.7:1.105.7 From a1c31ff0a90a7e065d12d2860187b97132a58e0e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 22 Mar 2023 17:32:13 +0000 Subject: [PATCH 1364/2363] chore(main): release 1.123.8-SNAPSHOT (#1534) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 88baead74d95..b62e73e7b3d4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.7 + 1.123.8-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.7 + 1.123.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.7 + 1.105.8-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.7 + 1.105.8-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 210b7adb9792..acc78d7c8312 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.7 + 1.123.8-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.7 + 1.123.8-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ab26608c3950..d51905b9e536 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.7 + 1.105.8-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.7 + 1.123.8-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9ee72cff1b46..c672a4b95588 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.7 + 1.123.8-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.7 + 1.105.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.7 + 1.105.8-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.7 + 1.123.8-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0b0f5b551f30..3b99057648c4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.7 + 1.105.8-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.7 + 1.123.8-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ace753c7b8f3..384c778af3b1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.7 + 1.123.8-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index bf6e424e6af3..25867c1ee7be 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.7:1.123.7 -grpc-google-cloud-pubsub-v1:1.105.7:1.105.7 -proto-google-cloud-pubsub-v1:1.105.7:1.105.7 +google-cloud-pubsub:1.123.7:1.123.8-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.7:1.105.8-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.7:1.105.8-SNAPSHOT From 59112baa67cd9e2de818b3ebcc364762379372bf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 22 Mar 2023 18:56:29 +0000 Subject: [PATCH 1365/2363] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3 (#1521) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 4e571aa3894e..ef7efc71f8bc 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 2.22.2 + 3.0.0 **/*IT From e7f6bd1d6d1b27363857d08c31acfb740904d8f8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Mar 2023 18:42:29 +0100 Subject: [PATCH 1366/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.7 (#1535) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.7 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3c4c32d7e144..954e6d04add7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.6 + 1.123.7 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.6' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.7' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.6" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.7" ``` @@ -405,7 +405,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.6 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.7 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c00245627c2d..590aca1706c6 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.6 + 1.123.7 From cd923a12ad0cbbea0be3e0cc861b4bac3dc5739f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 31 Mar 2023 11:07:57 -0400 Subject: [PATCH 1367/2363] chore: skip google-iam-policy rather than java-iam (#1779) (#1527) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: skip google-iam-policy rather than java-iam (#1779) Source-Link: https://github.com/googleapis/synthtool/commit/3c19c3314ccdff81c1d02b7665cb48de46ae5928 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:5df8b62e8da534f7604daef347698f6701e34b3f61713712a3384ac88fc32088 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: maitrimangal <121899734+maitrimangal@users.noreply.github.com> --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/README.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 91bb69e63cac..1b061c7c041e 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:bf5639d265d70f6137d57d42ae781a6f4e26d4085ff4e018e71350480f9b3996 + digest: sha256:5df8b62e8da534f7604daef347698f6701e34b3f61713712a3384ac88fc32088 \ No newline at end of file diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 954e6d04add7..653bdd0db35a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -66,7 +66,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.7" ``` - ## Authentication From 9b9b3c9714ac89e41cd7aa1f79ff6859f0215fac Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 31 Mar 2023 16:08:24 +0100 Subject: [PATCH 1368/2363] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.1 (#1536) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 653bdd0db35a..c3d4c28bbf34 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.10.0') +implementation platform('com.google.cloud:libraries-bom:26.11.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index ae14077f5b19..b15c43331a2e 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -54,7 +54,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.0 + 3.1.1 true From c841b9cec7b3d3cfcf070b33ca51cc229f821d89 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 4 Apr 2023 10:29:33 -0400 Subject: [PATCH 1369/2363] chore: README template fix in google-cloud-java (#1785) (#1538) Source-Link: https://github.com/googleapis/synthtool/commit/43c709a188a1aaaf3778e77e25332b10ff9413e0 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:3387f93d4577788512112ff69ddab746ae9192ddd9f13cfd175ef310d62d7d30 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/README.md | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 1b061c7c041e..d7abbc602ed0 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:5df8b62e8da534f7604daef347698f6701e34b3f61713712a3384ac88fc32088 \ No newline at end of file + digest: sha256:3387f93d4577788512112ff69ddab746ae9192ddd9f13cfd175ef310d62d7d30 diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c3d4c28bbf34..1c9077bde84d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -36,8 +36,9 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: ``` -If you are using Maven without BOM, add this to your dependencies: +If you are using Maven without the BOM, add this to your dependencies: + ```xml @@ -66,6 +67,7 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.7" ``` + ## Authentication @@ -412,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-cli]: https://cloud.google.com/cli -[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md [contributing]: https://github.com/googleapis/java-pubsub/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/java-pubsub/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/java-pubsub/blob/main/LICENSE From c82007ba5096439d91809e60e8f9d57c13949a30 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 4 Apr 2023 16:06:44 +0100 Subject: [PATCH 1370/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.6.0 (#1541) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.6.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c672a4b95588..c1825c48d2e8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.5.0 + 3.6.0 pom import From 55dd6c523aa70eef20d23c0a1d6578d18b583e10 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 4 Apr 2023 14:35:24 -0400 Subject: [PATCH 1371/2363] chore(main): release 1.123.8 (#1542) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index c1471a4b6c4c..fd8054c06413 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.123.8](https://github.com/googleapis/java-pubsub/compare/v1.123.7...v1.123.8) (2023-04-04) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.6.0 ([#1541](https://github.com/googleapis/java-pubsub/issues/1541)) ([828db7c](https://github.com/googleapis/java-pubsub/commit/828db7cfde91284db019b85552d64ca92e8ebe07)) + ## [1.123.7](https://github.com/googleapis/java-pubsub/compare/v1.123.6...v1.123.7) (2023-03-21) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b62e73e7b3d4..69a3b5f0b53e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.8-SNAPSHOT + 1.123.8 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.8-SNAPSHOT + 1.123.8 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.8-SNAPSHOT + 1.105.8 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.8-SNAPSHOT + 1.105.8 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index acc78d7c8312..b0cc273fe862 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.8-SNAPSHOT + 1.123.8 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.8-SNAPSHOT + 1.123.8 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d51905b9e536..0ff7da5162fd 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.8-SNAPSHOT + 1.105.8 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.8-SNAPSHOT + 1.123.8 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c1825c48d2e8..acab67546a1d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.8-SNAPSHOT + 1.123.8 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.8-SNAPSHOT + 1.105.8 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.8-SNAPSHOT + 1.105.8 com.google.cloud google-cloud-pubsub - 1.123.8-SNAPSHOT + 1.123.8 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3b99057648c4..e512ab03339c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.8-SNAPSHOT + 1.105.8 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.8-SNAPSHOT + 1.123.8 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 384c778af3b1..2a57d9cdc909 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.8-SNAPSHOT + 1.123.8 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 25867c1ee7be..e12b8db55d03 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.7:1.123.8-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.7:1.105.8-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.7:1.105.8-SNAPSHOT +google-cloud-pubsub:1.123.8:1.123.8 +grpc-google-cloud-pubsub-v1:1.105.8:1.105.8 +proto-google-cloud-pubsub-v1:1.105.8:1.105.8 From 9fc577d928be8be8982a72971675fada5d835392 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 4 Apr 2023 18:52:16 +0000 Subject: [PATCH 1372/2363] chore(main): release 1.123.9-SNAPSHOT (#1543) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 69a3b5f0b53e..e4d1aba45610 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.8 + 1.123.9-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.8 + 1.123.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.8 + 1.105.9-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.8 + 1.105.9-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b0cc273fe862..8350ae6ac32b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.8 + 1.123.9-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.8 + 1.123.9-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0ff7da5162fd..558894aa4c10 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.8 + 1.105.9-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.8 + 1.123.9-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index acab67546a1d..e04eb07411ad 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.8 + 1.123.9-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.8 + 1.105.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.8 + 1.105.9-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.8 + 1.123.9-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e512ab03339c..cc3bc8601fd8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.8 + 1.105.9-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.8 + 1.123.9-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2a57d9cdc909..9e6f06927ed0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.8 + 1.123.9-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e12b8db55d03..e05a4b1fe574 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.8:1.123.8 -grpc-google-cloud-pubsub-v1:1.105.8:1.105.8 -proto-google-cloud-pubsub-v1:1.105.8:1.105.8 +google-cloud-pubsub:1.123.8:1.123.9-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.8:1.105.9-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.8:1.105.9-SNAPSHOT From 548d031e22ee45cdb9b1f78761b0fa126d816790 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Apr 2023 15:21:35 +0100 Subject: [PATCH 1373/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.9.0 (#1498) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.9.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: maitrimangal <121899734+maitrimangal@users.noreply.github.com> --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1c9077bde84d..47d09cd6008b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.8.0 + 26.9.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index ef7efc71f8bc..fb91ad1702ea 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.8.0 + 26.9.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 8cc2f75a6381..c886c9704fe4 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.8.0 + 26.9.0 pom import From 87eaeab24815e2a09732ca0d66840e30b5905aca Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Apr 2023 15:49:28 +0100 Subject: [PATCH 1374/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.8 (#1546) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.8 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 10 +++++----- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 47d09cd6008b..8f3e0548a9d4 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.7 + 1.123.8 ``` @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.11.0') +implementation platform('com.google.cloud:libraries-bom:26.12.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.7' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.8' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.7" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.8" ``` @@ -406,7 +406,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.7 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.8 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 590aca1706c6..fc1a21a91008 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.7 + 1.123.8 From 512249dee81c57372dad4427167d4bb6d51fdecf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Apr 2023 16:36:42 +0100 Subject: [PATCH 1375/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.21 (#1547) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.21 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index fb91ad1702ea..a99cf5401483 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.20 + 0.9.21 test From 3288a7b5044bef80ecea0822089b3975e036b29c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Apr 2023 16:37:08 +0100 Subject: [PATCH 1376/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.21 (#1548) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.21 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index a99cf5401483..83c566934dec 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.20 + 0.9.21 true pubsub.NativeImagePubSubSample From 94871df44b90d2ab9bb5962c948417c6aba0889d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Apr 2023 17:02:11 +0100 Subject: [PATCH 1377/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.12.0 (#1549) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.12.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8f3e0548a9d4..74d049220e85 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.9.0 + 26.12.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 83c566934dec..c32183b5d339 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.9.0 + 26.12.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c886c9704fe4..77440b8d5f8b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.9.0 + 26.12.0 pom import From c5ed6c77c094893d0fa0b0d36b72fc44a2544703 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Apr 2023 15:18:49 -0400 Subject: [PATCH 1378/2363] chore(main): release 1.123.9 (#1550) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index fd8054c06413..ab7ccb4254c3 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.123.9](https://github.com/googleapis/java-pubsub/compare/v1.123.8...v1.123.9) (2023-04-13) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.21 ([#1547](https://github.com/googleapis/java-pubsub/issues/1547)) ([e78f210](https://github.com/googleapis/java-pubsub/commit/e78f210c9b72b0b9fb561ef8f41eb1aa2d8be4d7)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.21 ([#1548](https://github.com/googleapis/java-pubsub/issues/1548)) ([42957f8](https://github.com/googleapis/java-pubsub/commit/42957f8c93a07c7db5e3f007644b9508ef9dfe73)) + ## [1.123.8](https://github.com/googleapis/java-pubsub/compare/v1.123.7...v1.123.8) (2023-04-04) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e4d1aba45610..dd80fe26b65a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.9-SNAPSHOT + 1.123.9 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.9-SNAPSHOT + 1.123.9 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.9-SNAPSHOT + 1.105.9 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.9-SNAPSHOT + 1.105.9 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8350ae6ac32b..699175fd6850 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.9-SNAPSHOT + 1.123.9 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.9-SNAPSHOT + 1.123.9 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 558894aa4c10..6a531c1d384c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.9-SNAPSHOT + 1.105.9 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.9-SNAPSHOT + 1.123.9 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e04eb07411ad..3d634ae79528 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.9-SNAPSHOT + 1.123.9 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.9-SNAPSHOT + 1.105.9 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.9-SNAPSHOT + 1.105.9 com.google.cloud google-cloud-pubsub - 1.123.9-SNAPSHOT + 1.123.9 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index cc3bc8601fd8..c5c55b2fd2ff 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.9-SNAPSHOT + 1.105.9 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.9-SNAPSHOT + 1.123.9 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9e6f06927ed0..433f94b5754b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.9-SNAPSHOT + 1.123.9 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e05a4b1fe574..fe536b1dde4e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.8:1.123.9-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.8:1.105.9-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.8:1.105.9-SNAPSHOT +google-cloud-pubsub:1.123.9:1.123.9 +grpc-google-cloud-pubsub-v1:1.105.9:1.105.9 +proto-google-cloud-pubsub-v1:1.105.9:1.105.9 From 0b217f56506589853abe974caf45c625752fe57b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Apr 2023 19:38:13 +0000 Subject: [PATCH 1379/2363] chore(main): release 1.123.10-SNAPSHOT (#1552) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index dd80fe26b65a..f44f582f7b75 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.9 + 1.123.10-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.9 + 1.123.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.9 + 1.105.10-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.9 + 1.105.10-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 699175fd6850..993b2cbd1d5b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.9 + 1.123.10-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.9 + 1.123.10-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6a531c1d384c..d8ed46e40049 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.9 + 1.105.10-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.9 + 1.123.10-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3d634ae79528..e4560e3d4aa0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.9 + 1.123.10-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.9 + 1.105.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.9 + 1.105.10-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.9 + 1.123.10-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c5c55b2fd2ff..eebd95d7c1f7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.9 + 1.105.10-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.9 + 1.123.10-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 433f94b5754b..65d8cdb94e40 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.9 + 1.123.10-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index fe536b1dde4e..0df82ad9b322 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.9:1.123.9 -grpc-google-cloud-pubsub-v1:1.105.9:1.105.9 -proto-google-cloud-pubsub-v1:1.105.9:1.105.9 +google-cloud-pubsub:1.123.9:1.123.10-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.9:1.105.10-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.9:1.105.10-SNAPSHOT From 5bcc0bc20849e1c659fdcadfbdf563071efc0a6a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 14 Apr 2023 19:14:15 +0100 Subject: [PATCH 1380/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.7.0 (#1551) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.7.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 74d049220e85..8c66e09659ad 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.8' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.9' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.8" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.9" ``` @@ -406,7 +406,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.8 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.9 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e4560e3d4aa0..3986bf3ba56b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.6.0 + 3.7.0 pom import From 64f69cecd96f751d411b54a00855d35a9756c383 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 14 Apr 2023 19:14:28 +0100 Subject: [PATCH 1381/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.9 (#1553) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8c66e09659ad..847ddcca6273 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.8 + 1.123.9 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fc1a21a91008..a6c507b53154 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.8 + 1.123.9 From fca1e194f4382d56420d718a1cf90b2ef49aa8ac Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 17 Apr 2023 15:23:42 +0100 Subject: [PATCH 1382/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.24.5 (#1555) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a6c507b53154..1901f360a2ce 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.23.2 + 2.24.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 65d8cdb94e40..6f93e9629f03 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.23.2 + 2.24.5 From b2a18cbd13e7fec4024eee32006492cdafe38fcf Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 17 Apr 2023 14:19:06 -0400 Subject: [PATCH 1383/2363] chore(main): release 1.123.10 (#1554) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index ab7ccb4254c3..54fdb2690af1 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.123.10](https://github.com/googleapis/java-pubsub/compare/v1.123.9...v1.123.10) (2023-04-17) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.24.5 ([#1555](https://github.com/googleapis/java-pubsub/issues/1555)) ([7d81b06](https://github.com/googleapis/java-pubsub/commit/7d81b063465f23b1779c2137bc1706dafdaea042)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.7.0 ([#1551](https://github.com/googleapis/java-pubsub/issues/1551)) ([bccf566](https://github.com/googleapis/java-pubsub/commit/bccf566c6072aa34ebad451880835625217f9fe4)) + ## [1.123.9](https://github.com/googleapis/java-pubsub/compare/v1.123.8...v1.123.9) (2023-04-13) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f44f582f7b75..d8f2c2a0c3d9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.10-SNAPSHOT + 1.123.10 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.10-SNAPSHOT + 1.123.10 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.10-SNAPSHOT + 1.105.10 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.10-SNAPSHOT + 1.105.10 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 993b2cbd1d5b..29be193fd28e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.10-SNAPSHOT + 1.123.10 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.10-SNAPSHOT + 1.123.10 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d8ed46e40049..cda661a4518c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.10-SNAPSHOT + 1.105.10 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.10-SNAPSHOT + 1.123.10 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3986bf3ba56b..f960f721252c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.10-SNAPSHOT + 1.123.10 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.10-SNAPSHOT + 1.105.10 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.10-SNAPSHOT + 1.105.10 com.google.cloud google-cloud-pubsub - 1.123.10-SNAPSHOT + 1.123.10 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index eebd95d7c1f7..b4a78b8c708b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.10-SNAPSHOT + 1.105.10 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.10-SNAPSHOT + 1.123.10 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6f93e9629f03..65984289a9a6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.10-SNAPSHOT + 1.123.10 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0df82ad9b322..6f7c4c1db9a8 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.9:1.123.10-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.9:1.105.10-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.9:1.105.10-SNAPSHOT +google-cloud-pubsub:1.123.10:1.123.10 +grpc-google-cloud-pubsub-v1:1.105.10:1.105.10 +proto-google-cloud-pubsub-v1:1.105.10:1.105.10 From ae66a2c6e9970f830ecd3b85612f81cf8f448c5c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 17 Apr 2023 18:32:49 +0000 Subject: [PATCH 1384/2363] chore(main): release 1.123.11-SNAPSHOT (#1556) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d8f2c2a0c3d9..890de0baf13f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.10 + 1.123.11-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.10 + 1.123.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.10 + 1.105.11-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.10 + 1.105.11-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 29be193fd28e..067ba77de153 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.10 + 1.123.11-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.10 + 1.123.11-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index cda661a4518c..e0976297a619 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.10 + 1.105.11-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.10 + 1.123.11-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f960f721252c..43a4d6219a0f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.10 + 1.123.11-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.10 + 1.105.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.10 + 1.105.11-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.10 + 1.123.11-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b4a78b8c708b..890e434868d3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.10 + 1.105.11-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.10 + 1.123.11-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 65984289a9a6..849b4ad7635d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.10 + 1.123.11-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6f7c4c1db9a8..704fdacfbfd0 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.10:1.123.10 -grpc-google-cloud-pubsub-v1:1.105.10:1.105.10 -proto-google-cloud-pubsub-v1:1.105.10:1.105.10 +google-cloud-pubsub:1.123.10:1.123.11-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.10:1.105.11-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.10:1.105.11-SNAPSHOT From 64f5c28ea3ac0eb43768ad7efddf87aa39f995c3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 18 Apr 2023 17:50:10 +0200 Subject: [PATCH 1385/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.10 (#1557) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.10 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 847ddcca6273..1541e9365cd5 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.9 + 1.123.10 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.9' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.10' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.9" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.10" ``` @@ -406,7 +406,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.9 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.10 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1901f360a2ce..bb8508283b19 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.9 + 1.123.10 From 43b474e303ddd11c617f37da20be1435dd1e38c1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Apr 2023 20:42:46 +0200 Subject: [PATCH 1386/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.15.0 (#1558) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.16.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1541e9365cd5..283cff2f88aa 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.12.0') +implementation platform('com.google.cloud:libraries-bom:26.13.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bb8508283b19..f5908af18b0f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.12.0 + 2.16.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 849b4ad7635d..80f80689291d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.12.0 + 2.16.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 77440b8d5f8b..a07616883839 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.12.0 + 2.16.0 tests From 3da51b798b11fc819d147a99ed59869c53a53315 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 27 Apr 2023 00:14:26 +0200 Subject: [PATCH 1387/2363] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.2.2 (#1560) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.2.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index b15c43331a2e..f7b7d38653f7 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -75,7 +75,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.2.1 + 3.2.2 checkstyle-suppressions.xml From 4b5a8f427552ace7b04e75031869d9307a96f8a8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 27 Apr 2023 00:14:56 +0200 Subject: [PATCH 1388/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.8.0 (#1561) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 43a4d6219a0f..2ace4c42d7fd 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.7.0 + 3.8.0 pom import From b4a96f44437299e39f159440f66abe35c96a1b71 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 27 Apr 2023 15:59:01 +0200 Subject: [PATCH 1389/2363] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.9.3 (#1563) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index c32183b5d339..eacec644ac08 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.junit.vintage junit-vintage-engine - 5.9.2 + 5.9.3 test From 92bc310adf41c8b502f212dd4b985db52c85701c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 27 Apr 2023 10:25:01 -0400 Subject: [PATCH 1390/2363] chore(main): release 1.123.11 (#1562) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 54fdb2690af1..bb8589f51e4f 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.123.11](https://github.com/googleapis/java-pubsub/compare/v1.123.10...v1.123.11) (2023-04-27) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.15.0 ([#1558](https://github.com/googleapis/java-pubsub/issues/1558)) ([acf0a4f](https://github.com/googleapis/java-pubsub/commit/acf0a4f1b893b5be19167e87b958e722e53b2aee)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.8.0 ([#1561](https://github.com/googleapis/java-pubsub/issues/1561)) ([13bfd09](https://github.com/googleapis/java-pubsub/commit/13bfd09a9ba81e725a61f2b36c5d38fabcd8df56)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.3 ([#1563](https://github.com/googleapis/java-pubsub/issues/1563)) ([c2329d2](https://github.com/googleapis/java-pubsub/commit/c2329d289d3447e72904d20e9c89065b59d7e6de)) + ## [1.123.10](https://github.com/googleapis/java-pubsub/compare/v1.123.9...v1.123.10) (2023-04-17) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 890de0baf13f..29271dd2b5f5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.11-SNAPSHOT + 1.123.11 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.11-SNAPSHOT + 1.123.11 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.11-SNAPSHOT + 1.105.11 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.11-SNAPSHOT + 1.105.11 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 067ba77de153..8875d08bdcbe 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.11-SNAPSHOT + 1.123.11 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.11-SNAPSHOT + 1.123.11 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e0976297a619..d13615e90ee5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.11-SNAPSHOT + 1.105.11 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.11-SNAPSHOT + 1.123.11 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2ace4c42d7fd..2d1ef506c5e8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.11-SNAPSHOT + 1.123.11 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.11-SNAPSHOT + 1.105.11 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.11-SNAPSHOT + 1.105.11 com.google.cloud google-cloud-pubsub - 1.123.11-SNAPSHOT + 1.123.11 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 890e434868d3..3006be83ad04 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.11-SNAPSHOT + 1.105.11 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.11-SNAPSHOT + 1.123.11 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 80f80689291d..fa48f9940c1b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.11-SNAPSHOT + 1.123.11 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 704fdacfbfd0..4b457d51bc9b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.10:1.123.11-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.10:1.105.11-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.10:1.105.11-SNAPSHOT +google-cloud-pubsub:1.123.11:1.123.11 +grpc-google-cloud-pubsub-v1:1.105.11:1.105.11 +proto-google-cloud-pubsub-v1:1.105.11:1.105.11 From bf3f949eeda657d84685b0f3857d20cfb90fed91 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 27 Apr 2023 14:38:13 +0000 Subject: [PATCH 1391/2363] chore(main): release 1.123.12-SNAPSHOT (#1564) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 29271dd2b5f5..5dae8ee49331 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.11 + 1.123.12-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.11 + 1.123.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.11 + 1.105.12-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.11 + 1.105.12-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8875d08bdcbe..1c8cf9a881da 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.11 + 1.123.12-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.11 + 1.123.12-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d13615e90ee5..5191770930b9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.11 + 1.105.12-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.11 + 1.123.12-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2d1ef506c5e8..31cf6efc9c28 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.11 + 1.123.12-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.11 + 1.105.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.11 + 1.105.12-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.11 + 1.123.12-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3006be83ad04..481123487c80 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.11 + 1.105.12-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.11 + 1.123.12-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fa48f9940c1b..1819cae1e776 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.11 + 1.123.12-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4b457d51bc9b..14d5584e1f57 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.11:1.123.11 -grpc-google-cloud-pubsub-v1:1.105.11:1.105.11 -proto-google-cloud-pubsub-v1:1.105.11:1.105.11 +google-cloud-pubsub:1.123.11:1.123.12-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.11:1.105.12-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.11:1.105.12-SNAPSHOT From 8b46a591b105469e564c4489a63541cdb1f2a9c6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 2 May 2023 23:34:24 +0200 Subject: [PATCH 1392/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.11 (#1565) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.11 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 283cff2f88aa..027970f22d2e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.10 + 1.123.11 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.10' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.11' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.10" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.11" ``` @@ -406,7 +406,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.10 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.11 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f5908af18b0f..870dd0873e33 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.10 + 1.123.11 From 03bef1b1c18c21c9ad23639670ed58b4c16caad2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 2 May 2023 23:34:41 +0200 Subject: [PATCH 1393/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.25.0 (#1566) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.25.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 870dd0873e33..3facbfff25a1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.24.5 + 2.25.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1819cae1e776..dd44a29ce130 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.24.5 + 2.25.0 From c11ad01d14ed0836e8811233368e4e65bc7956eb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 May 2023 22:26:23 +0200 Subject: [PATCH 1394/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.9.0 - abandoned (#1471) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.xerial.snappy:snappy-java](https://togithub.com/xerial/snappy-java) | `1.1.8.4` -> `1.1.9.0` | [![age](https://badges.renovateapi.com/packages/maven/org.xerial.snappy:snappy-java/1.1.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.xerial.snappy:snappy-java/1.1.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.xerial.snappy:snappy-java/1.1.9.0/compatibility-slim/1.1.8.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.xerial.snappy:snappy-java/1.1.9.0/confidence-slim/1.1.8.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    xerial/snappy-java ### [`v1.1.9.0`](https://togithub.com/xerial/snappy-java/releases/tag/v1.1.9.0) [Compare Source](https://togithub.com/xerial/snappy-java/compare/1.1.8.4...v1.1.9.0) ##### What's Changed This version upgrades the native libraries to Snappy 1.1.9. Currently, only a limited number of platforms are supported, including: - Win32/64 (Only Intel) - Mac64 (Intel, M1, M2). We no longer support Mac32 - Linux32, 64 (Intel, Arm), arm, armv6, armv7 - android-arm32 - ppc64le, ppc64 If you need more platform support, send a PR to build a native library with a [docker-based cross compiler](https://togithub.com/dockcross/dockcross) (See Makefile and Makefile.common for the reference). If a cross compiler for your platform is not available, create a PR with a native library built with `make native` command. ##### 🚀 Features - Add uncompressDoubleArray that takes offset and length [@​ashley-taylor](https://togithub.com/ashley-taylor) ([#​307](https://togithub.com/xerial/snappy-java/issues/307)) - Build native library for Snappy 1.1.9 [@​xerial](https://togithub.com/xerial) ([#​380](https://togithub.com/xerial/snappy-java/issues/380)) - Upgrade to snappy-1.1.9 [@​xerial](https://togithub.com/xerial) ([#​379](https://togithub.com/xerial/snappy-java/issues/379)) - Add Java 17 build test to GitHub action [@​wangyum](https://togithub.com/wangyum) ([#​346](https://togithub.com/xerial/snappy-java/issues/346)) - Adding ppc64le support in Travis [@​Abhijit-Mane](https://togithub.com/Abhijit-Mane) ([#​286](https://togithub.com/xerial/snappy-java/issues/286)) - Build on riscv64 [@​zinovya](https://togithub.com/zinovya) ([#​283](https://togithub.com/xerial/snappy-java/issues/283)) - Upgrade bitshuffle to 0.3.4 ([#​380](https://togithub.com/xerial/snappy-java/issues/380)) ##### 👋 Deprecated - Removed pure-java support [@​xerial](https://togithub.com/xerial) ([#​381](https://togithub.com/xerial/snappy-java/issues/381)) because it may cause data corruption. ##### Bug Fixes - Use original compressed and uncompressed buffer's position [@​viirya](https://togithub.com/viirya) ([#​293](https://togithub.com/xerial/snappy-java/issues/293)) - [#​302](https://togithub.com/xerial/snappy-java/issues/302) Fixed running snappy-java as OSGi bundle on Apple Silicon (M1 Pro) [@​zh-muxa](https://togithub.com/zh-muxa) ([#​303](https://togithub.com/xerial/snappy-java/issues/303)) - Avoid explicit class name in throw_exception [@​viirya](https://togithub.com/viirya) ([#​291](https://togithub.com/xerial/snappy-java/issues/291)) ##### 🔗 Dependency Updates - Update airframe-log to 22.9.3 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​349](https://togithub.com/xerial/snappy-java/issues/349)) - Update hadoop-common to 2.7.7 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​313](https://togithub.com/xerial/snappy-java/issues/313)) - Update scalafmt-core to 3.5.9 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​344](https://togithub.com/xerial/snappy-java/issues/344)) - Update airframe-log to 22.9.2 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​347](https://togithub.com/xerial/snappy-java/issues/347)) - Update scalafmt-core to 2.7.5 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​323](https://togithub.com/xerial/snappy-java/issues/323)) - Update sbt to 1.7.1 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​336](https://togithub.com/xerial/snappy-java/issues/336)) - Update airframe-log to 22.9.0 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​343](https://togithub.com/xerial/snappy-java/issues/343)) - Update sbt-scalafmt to 2.4.6 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​317](https://togithub.com/xerial/snappy-java/issues/317)) - Update scalafmt-core to 2.6.4 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​318](https://togithub.com/xerial/snappy-java/issues/318)) - Update airframe-log to 21.12.1 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​319](https://togithub.com/xerial/snappy-java/issues/319)) - Update sbt-sonatype to 3.9.13 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​320](https://togithub.com/xerial/snappy-java/issues/320)) - Update sbt to 1.6.2 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​321](https://togithub.com/xerial/snappy-java/issues/321)) - Update sbt to 1.5.8 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​316](https://togithub.com/xerial/snappy-java/issues/316)) - Update sbt-osgi to 0.9.6 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​312](https://togithub.com/xerial/snappy-java/issues/312)) - Update junit-interface to 0.13.3 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​311](https://togithub.com/xerial/snappy-java/issues/311)) - Upgrade sbt to 1.5.6 [@​xerial](https://togithub.com/xerial) ([#​301](https://togithub.com/xerial/snappy-java/issues/301)) - Bump olafurpg/setup-scala from 10 to 13 [@​dependabot](https://togithub.com/dependabot) ([#​375](https://togithub.com/xerial/snappy-java/issues/375)) - Bump actions/checkout from 2 to 3 [@​dependabot](https://togithub.com/dependabot) ([#​376](https://togithub.com/xerial/snappy-java/issues/376)) - Bump actions/cache from 1 to 3 [@​dependabot](https://togithub.com/dependabot) ([#​377](https://togithub.com/xerial/snappy-java/issues/377)) - Update scalafmt-core to 3.7.1 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​368](https://togithub.com/xerial/snappy-java/issues/368)) - Update sbt to 1.8.2 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​366](https://togithub.com/xerial/snappy-java/issues/366)) - Update sbt to 1.7.3 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​355](https://togithub.com/xerial/snappy-java/issues/355)) ##### 🛠 Internal Updates - Add release drafter [@​xerial](https://togithub.com/xerial) ([#​378](https://togithub.com/xerial/snappy-java/issues/378)) - Add dependabot [@​xerial](https://togithub.com/xerial) ([#​374](https://togithub.com/xerial/snappy-java/issues/374)) - Add scalafmt dialect [@​xerial](https://togithub.com/xerial) ([#​373](https://togithub.com/xerial/snappy-java/issues/373)) - Add release automation workflow [@​xerial](https://togithub.com/xerial) ([#​384](https://togithub.com/xerial/snappy-java/issues/384)) - Update airframe-log to 22.12.6 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​372](https://togithub.com/xerial/snappy-java/issues/372)) - Update hadoop-common to 2.10.2 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​371](https://togithub.com/xerial/snappy-java/issues/371)) - Update sbt-pgp to 2.2.1 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​361](https://togithub.com/xerial/snappy-java/issues/361)) - Update plexus-classworlds to 2.7.0 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​359](https://togithub.com/xerial/snappy-java/issues/359)) - Update sbt-scalafmt to 2.5.0 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​358](https://togithub.com/xerial/snappy-java/issues/358)) - Update sbt-sonatype to 3.9.17 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​370](https://togithub.com/xerial/snappy-java/issues/370)) - Update sbt-sonatype to 3.9.15 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​360](https://togithub.com/xerial/snappy-java/issues/360)) - Update sbt-sonatype to 3.9.14 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​357](https://togithub.com/xerial/snappy-java/issues/357)) ##### 📚 Docs - Remove pure-java support [@​xerial](https://togithub.com/xerial) ([#​381](https://togithub.com/xerial/snappy-java/issues/381)) - Fix links in Javadoc badge [@​valery1707](https://togithub.com/valery1707) ([#​350](https://togithub.com/xerial/snappy-java/issues/350)) - Fix links into benchmark results [@​valery1707](https://togithub.com/valery1707) ([#​351](https://togithub.com/xerial/snappy-java/issues/351)) - Fixes [#​280](https://togithub.com/xerial/snappy-java/issues/280) Typo - java.io.tmpdir not java.io.tempdir [@​lehnerj](https://togithub.com/lehnerj) ([#​325](https://togithub.com/xerial/snappy-java/issues/325)) - Small typo fix [@​atisvagyok](https://togithub.com/atisvagyok) ([#​294](https://togithub.com/xerial/snappy-java/issues/294)) **Full Changelog**: https://togithub.com/xerial/snappy-java/compare/1.1.8.4...v1.1.9
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3facbfff25a1..654cb1e0db85 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.8.4 + 1.1.9.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index dd44a29ce130..38bf95cc5018 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.8.4 + 1.1.9.0 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a07616883839..0442a80b1de6 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -71,7 +71,7 @@ org.xerial.snappy snappy-java - 1.1.8.4 + 1.1.9.0 com.google.protobuf From deca74fa63d91eb3dac95f153f32a1fd8fad782d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 15:34:25 +0200 Subject: [PATCH 1395/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.22 (#1570) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.21` -> `0.9.22` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.22/compatibility-slim/0.9.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.22/confidence-slim/0.9.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    graalvm/native-build-tools ### [`v0.9.22`](https://togithub.com/graalvm/native-build-tools/releases/tag/0.9.22) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.21...0.9.22) #### What's Changed - Fix lookup of metadata repository by [@​melix](https://togithub.com/melix) in [https://togithub.com/graalvm/native-build-tools/pull/425](https://togithub.com/graalvm/native-build-tools/pull/425) - Add support for `default-for` attribute by [@​sdeleuze](https://togithub.com/sdeleuze) in [https://togithub.com/graalvm/native-build-tools/pull/432](https://togithub.com/graalvm/native-build-tools/pull/432) - Bump metadata version to 0.3.0 by [@​dnestoro](https://togithub.com/dnestoro) in [https://togithub.com/graalvm/native-build-tools/pull/434](https://togithub.com/graalvm/native-build-tools/pull/434) **Full Changelog**: https://togithub.com/graalvm/native-build-tools/compare/0.9.21...0.9.22
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 027970f22d2e..bd72988cdb66 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.13.0') +implementation platform('com.google.cloud:libraries-bom:26.14.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index eacec644ac08..96a199010d82 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.21 + 0.9.22 test
    From 174cfdba74105c8bf97380eb3a9595bd75344d9a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 15:36:13 +0200 Subject: [PATCH 1396/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.9.1 (#1572) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.xerial.snappy:snappy-java](https://togithub.com/xerial/snappy-java) | `1.1.9.0` -> `1.1.9.1` | [![age](https://badges.renovateapi.com/packages/maven/org.xerial.snappy:snappy-java/1.1.9.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.xerial.snappy:snappy-java/1.1.9.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.xerial.snappy:snappy-java/1.1.9.1/compatibility-slim/1.1.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.xerial.snappy:snappy-java/1.1.9.1/confidence-slim/1.1.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    xerial/snappy-java ### [`v1.1.9.1`](https://togithub.com/xerial/snappy-java/releases/tag/v1.1.9.1) [Compare Source](https://togithub.com/xerial/snappy-java/compare/v1.1.9.0...v1.1.9.1) ##### What's Changed - Removed snappy debug assertion with -DNDEBUG c++ flag [@​xerial](https://togithub.com/xerial) ([#​386](https://togithub.com/xerial/snappy-java/issues/386)) It produces smaller native libraries ##### 🐛 Bug Fixes - Fix java8 compatibility [#​389](https://togithub.com/xerial/snappy-java/issues/389) [@​xerial](https://togithub.com/xerial) ([#​390](https://togithub.com/xerial/snappy-java/issues/390)) ##### 🔗 Dependency Updates - Update org.osgi.core to 6.0.0 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​387](https://togithub.com/xerial/snappy-java/issues/387)) ##### 🛠 Internal Updates - Update sbt script [@​xerial](https://togithub.com/xerial) ([#​385](https://togithub.com/xerial/snappy-java/issues/385)) - Update airframe-log to 23.1.4 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​383](https://togithub.com/xerial/snappy-java/issues/383)) - Update org.osgi.core to 4.3.1 [@​xerial-bot](https://togithub.com/xerial-bot) ([#​315](https://togithub.com/xerial/snappy-java/issues/315)) **Full Changelog**: https://togithub.com/xerial/snappy-java/compare/v1.1.9.0...v1.1.10
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 654cb1e0db85..82e57a6d9671 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.9.0 + 1.1.9.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 38bf95cc5018..0b7ac50ab005 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.9.0 + 1.1.9.1 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 0442a80b1de6..72faf812bfbf 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -71,7 +71,7 @@ org.xerial.snappy snappy-java - 1.1.9.0 + 1.1.9.1 com.google.protobuf From 2c0f7e5d1863a843387cf936345bf89ec8215ed2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 15:38:34 +0200 Subject: [PATCH 1397/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.22 (#1571) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.21` -> `0.9.22` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.22/compatibility-slim/0.9.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.22/confidence-slim/0.9.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    graalvm/native-build-tools ### [`v0.9.22`](https://togithub.com/graalvm/native-build-tools/releases/tag/0.9.22) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.21...0.9.22) #### What's Changed - Fix lookup of metadata repository by [@​melix](https://togithub.com/melix) in [https://togithub.com/graalvm/native-build-tools/pull/425](https://togithub.com/graalvm/native-build-tools/pull/425) - Add support for `default-for` attribute by [@​sdeleuze](https://togithub.com/sdeleuze) in [https://togithub.com/graalvm/native-build-tools/pull/432](https://togithub.com/graalvm/native-build-tools/pull/432) - Bump metadata version to 0.3.0 by [@​dnestoro](https://togithub.com/dnestoro) in [https://togithub.com/graalvm/native-build-tools/pull/434](https://togithub.com/graalvm/native-build-tools/pull/434) **Full Changelog**: https://togithub.com/graalvm/native-build-tools/compare/0.9.21...0.9.22
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 96a199010d82..bf84c6e82bb3 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.21 + 0.9.22 true pubsub.NativeImagePubSubSample From c64dc71059a331899090ca850189fa3ebb5be381 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 12 May 2023 13:48:22 +0000 Subject: [PATCH 1398/2363] chore(deps): update ghcr.io/graalvm/graalvm-ce docker tag to v22.3.2 (#1793) (#1569) Co-authored-by: Mridula <66699525+mpeddada1@users.noreply.github.com> Source-Link: https://togithub.com/googleapis/synthtool/commit/99ad07938fb6bcddcc7b1b586be699d72440758b Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8dd8395defb6a5069b0b10c435058bf13980606ba1967e2b3925ed50fc3cb22f --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index d7abbc602ed0..35478afe3fdd 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:3387f93d4577788512112ff69ddab746ae9192ddd9f13cfd175ef310d62d7d30 + digest: sha256:8dd8395defb6a5069b0b10c435058bf13980606ba1967e2b3925ed50fc3cb22f diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index e20330c3ca60..f52533545896 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.0" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.2" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 0fd6ba2fa0ce..44b1004875b6 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.0" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.2" } env_vars: { From ba087eb5c0c82b33021808d609ead25245deea1e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 16:40:17 +0200 Subject: [PATCH 1399/2363] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.1.0 (#1573) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-surefire-plugin](https://maven.apache.org/surefire/) | `3.0.0` -> `3.1.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-surefire-plugin/3.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-surefire-plugin/3.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-surefire-plugin/3.1.0/compatibility-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-surefire-plugin/3.1.0/confidence-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index bf84c6e82bb3..a66c27d4451a 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.0.0 + 3.1.0 **/*IT From bbd09dd2a9c8fe73c6e6a103bc8dcc2d939c6d90 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 16:52:16 +0200 Subject: [PATCH 1400/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.17.0 (#1574) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/gapic-generator-java) | `2.16.0` -> `2.17.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.17.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.17.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.17.0/compatibility-slim/2.16.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.17.0/confidence-slim/2.16.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/gapic-generator-java ### [`v2.17.0`](https://togithub.com/googleapis/gapic-generator-java/blob/HEAD/CHANGELOG.md#​2170-httpsgithubcomgoogleapisgapic-generator-javacomparev2160v2170-2023-04-11) [Compare Source](https://togithub.com/googleapis/gapic-generator-java/compare/v2.16.0...v2.17.0) ##### Features - Add `FunctionalInterface` annotation ([#​1515](https://togithub.com/googleapis/gapic-generator-java/issues/1515)) ([66c0509](https://togithub.com/googleapis/gapic-generator-java/commit/66c05093b5c56208c3f785e9cf0f5b50f5ad16d4)) - Add stream method for `ServerStream` ([#​1575](https://togithub.com/googleapis/gapic-generator-java/issues/1575)) ([e38c8ec](https://togithub.com/googleapis/gapic-generator-java/commit/e38c8ec4c2fca131c91e264c7b3e2cad9243a6e5)) - Add stream methods for `Page` ([#​1425](https://togithub.com/googleapis/gapic-generator-java/issues/1425)) ([cf0e01a](https://togithub.com/googleapis/gapic-generator-java/commit/cf0e01a47258c46a1b4431920b8d7cd24ae9b801)) ##### Bug Fixes - Add javadoc for `ApiFutures` ([#​1609](https://togithub.com/googleapis/gapic-generator-java/issues/1609)) ([4bb0a5e](https://togithub.com/googleapis/gapic-generator-java/commit/4bb0a5e3ce78878841e87a47cd457995ea9ed87e)) - **deps:** Remove unnecessary auto-value in api-common-java ([#​1621](https://togithub.com/googleapis/gapic-generator-java/issues/1621)) ([ffeb820](https://togithub.com/googleapis/gapic-generator-java/commit/ffeb820ab5a530ca0f8a91d873b07b4ebaea320b)) ##### Dependencies - Update dependency cryptography to v39.0.2 ([#​1592](https://togithub.com/googleapis/gapic-generator-java/issues/1592)) ([74cf36e](https://togithub.com/googleapis/gapic-generator-java/commit/74cf36e628a7f0d2e00c3bf1426be9b8089df8af)) - Update dependency gcp-docuploader to v0.6.5 ([#​1593](https://togithub.com/googleapis/gapic-generator-java/issues/1593)) ([501ee9c](https://togithub.com/googleapis/gapic-generator-java/commit/501ee9c61bd3f0091bf07d0e60c1dcd2319d1a17)) - Update dependency google-cloud-core to v2.3.2 ([#​1595](https://togithub.com/googleapis/gapic-generator-java/issues/1595)) ([335a104](https://togithub.com/googleapis/gapic-generator-java/commit/335a104d4846623a25497f5650ea553d5cca677a)) - Update dependency net.bytebuddy:byte-buddy to v1.14.3 ([#​1567](https://togithub.com/googleapis/gapic-generator-java/issues/1567)) ([a270ceb](https://togithub.com/googleapis/gapic-generator-java/commit/a270cebfeb8d1bb2270cef93f19c44935ed980cf)) - Update dependency org.threeten:threetenbp to v1.6.8 ([#​1590](https://togithub.com/googleapis/gapic-generator-java/issues/1590)) ([26d1c3e](https://togithub.com/googleapis/gapic-generator-java/commit/26d1c3e511c6fa3a353c3205c06fa8dad6019715)) - Update dependency org.threeten:threetenbp to v1.6.8 ([#​1591](https://togithub.com/googleapis/gapic-generator-java/issues/1591)) ([c3bed81](https://togithub.com/googleapis/gapic-generator-java/commit/c3bed81d540db51aaaa6e057133efa96b0f814a8)) - Update dependency urllib3 to v1.26.15 ([#​1596](https://togithub.com/googleapis/gapic-generator-java/issues/1596)) ([3288fb3](https://togithub.com/googleapis/gapic-generator-java/commit/3288fb323d957b182bf246540f9f17157afc5285)) - Update google api dependencies ([#​1578](https://togithub.com/googleapis/gapic-generator-java/issues/1578)) ([c537aba](https://togithub.com/googleapis/gapic-generator-java/commit/c537aba9d1c6cd4ecdcdc7ce0914a6c605c58b68))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 82e57a6d9671..422ce34bf241 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.16.0 + 2.17.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0b7ac50ab005..ef44290ea728 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.16.0 + 2.17.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 72faf812bfbf..61c84b0e9057 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.16.0 + 2.17.0 tests From 85b2613e97551b96f0ef3f0e0f3692934f961cf8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 16:54:25 +0200 Subject: [PATCH 1401/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.9.0 (#1576) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 31cf6efc9c28..757dc56d7f77 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.8.0 + 3.9.0 pom import From 4518e499f2a168b443441c2a9ad4a9d7d03efba3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 16:54:52 +0200 Subject: [PATCH 1402/2363] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.4.0 (#1575) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 422ce34bf241..2e2edc52800a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -96,7 +96,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.3.0 + 3.4.0 add-snippets-source diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ef44290ea728..2e3cf5981bd4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -95,7 +95,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.3.0 + 3.4.0 add-snippets-source From c146ed0867974fd429c47de8fad2cde193774e76 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 17:06:47 +0200 Subject: [PATCH 1403/2363] deps: update dependency org.easymock:easymock to v5.1.0 (#1448) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.easymock:easymock](http://easymock.org) ([source](https://togithub.com/easymock/easymock)) | `5.0.1` -> `5.1.0` | [![age](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.1.0/compatibility-slim/5.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.easymock:easymock/5.1.0/confidence-slim/5.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 757dc56d7f77..f0bcf84f7764 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -98,7 +98,7 @@ org.easymock easymock - 5.0.1 + 5.1.0 test From 17376830e1b0371bffb08242b93d42852e6d8604 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 17:16:14 +0200 Subject: [PATCH 1404/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.13.0 (#1559) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.12.0` -> `26.13.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.13.0/compatibility-slim/26.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.13.0/confidence-slim/26.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-cloud-bom ### [`v26.13.0`](https://togithub.com/googleapis/java-cloud-bom/blob/HEAD/CHANGELOG.md#​26130-httpsgithubcomgoogleapisjava-cloud-bomcomparev26120v26130-2023-04-20) [Compare Source](https://togithub.com/googleapis/java-cloud-bom/compare/v26.12.0...v26.13.0) ##### Dependencies - update dependency com.google.cloud:first-party-dependencies to v3.7.0 ([#​5917](https://togithub.com/googleapis/java-cloud-bom/issues/5917)) ([46cbbfa](https://togithub.com/googleapis/java-cloud-bom/commit/46cbbfadda5ba334dc6a4228024a61e8a9588cd7)) - update dependency com.google.cloud:gapic-libraries-bom to v1.9.0 ([#​5927](https://togithub.com/googleapis/java-cloud-bom/issues/5927)) ([49303bd](https://togithub.com/googleapis/java-cloud-bom/commit/49303bdf07fe4a709d515d1cbd3ef1fa083373af)) - update dependency com.google.cloud:google-cloud-bigquery to v2.24.5 ([#​5926](https://togithub.com/googleapis/java-cloud-bom/issues/5926)) ([6ecfd47](https://togithub.com/googleapis/java-cloud-bom/commit/6ecfd47c1ecf83f4b4f996c48ccc0d23df994719)) - update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v2.35.0 ([#​5925](https://togithub.com/googleapis/java-cloud-bom/issues/5925)) ([181cf7a](https://togithub.com/googleapis/java-cloud-bom/commit/181cf7aed06b5e875c8c1750d50e4023a5f8bee0)) - update dependency com.google.cloud:google-cloud-bigtable-bom to v2.20.4 ([#​5932](https://togithub.com/googleapis/java-cloud-bom/issues/5932)) ([d5ef51c](https://togithub.com/googleapis/java-cloud-bom/commit/d5ef51c2b1b48aef8eff8683029239c14a57fad3)) - update dependency com.google.cloud:google-cloud-datastore-bom to v2.14.3 ([#​5923](https://togithub.com/googleapis/java-cloud-bom/issues/5923)) ([82e1036](https://togithub.com/googleapis/java-cloud-bom/commit/82e10369bf430faf72a98487a5ce5267b5ae668f)) - update dependency com.google.cloud:google-cloud-firestore-bom to v3.9.4 ([#​5918](https://togithub.com/googleapis/java-cloud-bom/issues/5918)) ([cc6a30d](https://togithub.com/googleapis/java-cloud-bom/commit/cc6a30d6de77e6ef822b2f8ee0d1f3688c51c9e5)) - update dependency com.google.cloud:google-cloud-logging-bom to v3.14.8 ([#​5933](https://togithub.com/googleapis/java-cloud-bom/issues/5933)) ([5451255](https://togithub.com/googleapis/java-cloud-bom/commit/54512558b4f71b9af0e0fc69d034a1927265be95)) - update dependency com.google.cloud:google-cloud-logging-logback to v0.130.10-alpha ([#​5941](https://togithub.com/googleapis/java-cloud-bom/issues/5941)) ([d7bf039](https://togithub.com/googleapis/java-cloud-bom/commit/d7bf03917289e7bfdccfb6164738d4fa3306a7cc)) - update dependency com.google.cloud:google-cloud-nio to v0.126.13 ([#​5919](https://togithub.com/googleapis/java-cloud-bom/issues/5919)) ([28f172d](https://togithub.com/googleapis/java-cloud-bom/commit/28f172de4b72988623f07b5af3f427ecb10917ac)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.123.10 ([#​5934](https://togithub.com/googleapis/java-cloud-bom/issues/5934)) ([0fb277c](https://togithub.com/googleapis/java-cloud-bom/commit/0fb277c0adff79513ab79bc6c1fd3db2a3f4a054)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.123.9 ([#​5924](https://togithub.com/googleapis/java-cloud-bom/issues/5924)) ([59ea6f0](https://togithub.com/googleapis/java-cloud-bom/commit/59ea6f0d2aa4e69e36c71ea56284b17a59305004)) - update dependency com.google.cloud:google-cloud-pubsublite-bom to v1.12.3 ([#​5935](https://togithub.com/googleapis/java-cloud-bom/issues/5935)) ([bf9ed0c](https://togithub.com/googleapis/java-cloud-bom/commit/bf9ed0cd480a19eaf295a482badcc96f22950526)) - update dependency com.google.cloud:google-cloud-spanner-bom to v6.40.1 ([#​5916](https://togithub.com/googleapis/java-cloud-bom/issues/5916)) ([94b5c34](https://togithub.com/googleapis/java-cloud-bom/commit/94b5c3458e792c91ae7f0fc26a283cfc10219a86)) - update dependency com.google.cloud:google-cloud-spanner-jdbc to v2.9.12 ([#​5940](https://togithub.com/googleapis/java-cloud-bom/issues/5940)) ([7c53255](https://togithub.com/googleapis/java-cloud-bom/commit/7c5325546bc7630b0c65a2b317660298286a3f50)) - update dependency com.google.cloud:google-cloud-storage-bom to v2.22.0 ([#​5920](https://togithub.com/googleapis/java-cloud-bom/issues/5920)) ([21507fd](https://togithub.com/googleapis/java-cloud-bom/commit/21507fded910de06fe9dfaf5aa432f6bad60fcb9))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bd72988cdb66..43584a70cca5 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.12.0 + 26.13.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index a66c27d4451a..1ea0031dbae4 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.12.0 + 26.13.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 61c84b0e9057..70b0993b2034 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.12.0 + 26.13.0 pom import From 9f315d0fe8ecd1b66629806c242d8ceccfc0629d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 17:32:13 +0200 Subject: [PATCH 1405/2363] build(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.5.0 - abandoned (#1457) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-dependency-plugin](https://maven.apache.org/plugins/) | `3.4.0` -> `3.5.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-dependency-plugin/3.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-dependency-plugin/3.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-dependency-plugin/3.5.0/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-dependency-plugin/3.5.0/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 1ea0031dbae4..92b64a73d486 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -79,7 +79,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-dependency-plugin - 3.4.0 + 3.5.0 copy-dependencies From e2c9eab54c00e026840ea89155cdddb364699689 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 17:48:42 +0200 Subject: [PATCH 1406/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.14.0 (#1577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.14.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 43584a70cca5..8cb1716c75f4 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.13.0 + 26.14.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 92b64a73d486..ee6389c22a60 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.13.0 + 26.14.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 70b0993b2034..5f50801f9dbc 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.13.0 + 26.14.0 pom import From c2ecbe8554eaf3a838b38f15fa1b0913b44e3173 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 18:00:30 +0200 Subject: [PATCH 1407/2363] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.5.0 (#1487) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.4.1` -> `3.5.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.5.0/compatibility-slim/3.4.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.5.0/confidence-slim/3.4.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f0bcf84f7764..b870d607f267 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -172,7 +172,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.1 + 3.5.0 html From 3cd569189f8aa22141c9a199b21d606c9dc9116e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 May 2023 14:00:39 -0400 Subject: [PATCH 1408/2363] build(deps): bump cryptography from 38.0.3 to 39.0.1 in /.kokoro (#1477) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): bump cryptography from 38.0.3 to 39.0.1 in /.kokoro Bumps [cryptography](https://github.com/pyca/cryptography) from 38.0.3 to 39.0.1. - [Release notes](https://github.com/pyca/cryptography/releases) - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/38.0.3...39.0.1) --- updated-dependencies: - dependency-name: cryptography dependency-type: indirect ... Signed-off-by: dependabot[bot] * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Owl Bot Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com> From 2d8f684d77487700611939ac4e14aacfa6dabaf5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 20:20:20 +0200 Subject: [PATCH 1409/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.2 (#1456) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.4.1` -> `3.4.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.2/compatibility-slim/3.4.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.2/confidence-slim/3.4.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b870d607f267..1575140dd6ca 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.4.1 + 3.4.2 From 8a8773b2bc8e25f9141d7d856d74644ff29d5aed Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 May 2023 20:47:11 +0200 Subject: [PATCH 1410/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.3 (#1579) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1575140dd6ca..2ecce87207b1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.4.2 + 3.4.3 From ab02da8afca9526362f8b4d38e3fd49ddf6b3eff Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 15 May 2023 10:01:06 -0400 Subject: [PATCH 1411/2363] chore(main): release 1.123.12 (#1568) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 14 ++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index bb8589f51e4f..250dc1abcf48 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.123.12](https://github.com/googleapis/java-pubsub/compare/v1.123.11...v1.123.12) (2023-05-12) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.25.0 ([#1566](https://github.com/googleapis/java-pubsub/issues/1566)) ([7e63280](https://github.com/googleapis/java-pubsub/commit/7e632806b83b5c849ea50fdf3085b2db7bdbeff3)) +* Update dependency com.google.cloud:google-cloud-core to v2.17.0 ([#1574](https://github.com/googleapis/java-pubsub/issues/1574)) ([9c80f14](https://github.com/googleapis/java-pubsub/commit/9c80f1493a5149a76b55d9f1d178684e1b5dde80)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.9.0 ([#1576](https://github.com/googleapis/java-pubsub/issues/1576)) ([03a027f](https://github.com/googleapis/java-pubsub/commit/03a027fb2619444511d25ef7100c7ac850c1dca1)) +* Update dependency org.easymock:easymock to v5.1.0 ([#1448](https://github.com/googleapis/java-pubsub/issues/1448)) ([5ad86fe](https://github.com/googleapis/java-pubsub/commit/5ad86fe783a2fcdfe6102a9916c65b1c4139b3da)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.22 ([#1570](https://github.com/googleapis/java-pubsub/issues/1570)) ([bbe9a8b](https://github.com/googleapis/java-pubsub/commit/bbe9a8b6594a0e6b777ceb3b97e8d625446e34e4)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.22 ([#1571](https://github.com/googleapis/java-pubsub/issues/1571)) ([e7b62d3](https://github.com/googleapis/java-pubsub/commit/e7b62d35aa3c73f55a474d406da094ded02d07f1)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.9.0 - abandoned ([#1471](https://github.com/googleapis/java-pubsub/issues/1471)) ([1620e00](https://github.com/googleapis/java-pubsub/commit/1620e00cf1632699fa37a78059dfb86e707dbccc)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.9.1 ([#1572](https://github.com/googleapis/java-pubsub/issues/1572)) ([1ec2fec](https://github.com/googleapis/java-pubsub/commit/1ec2feca66ab8b29edf8f9dd0d4b8df8261e709a)) + ## [1.123.11](https://github.com/googleapis/java-pubsub/compare/v1.123.10...v1.123.11) (2023-04-27) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5dae8ee49331..4a1628b91ca5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.12-SNAPSHOT + 1.123.12 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.12-SNAPSHOT + 1.123.12 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.12-SNAPSHOT + 1.105.12 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.12-SNAPSHOT + 1.105.12
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1c8cf9a881da..f301990f7205 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.12-SNAPSHOT + 1.123.12 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.12-SNAPSHOT + 1.123.12 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5191770930b9..1ffeb1c1869e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.12-SNAPSHOT + 1.105.12 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.12-SNAPSHOT + 1.123.12 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2ecce87207b1..3f04dd86ee5a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.12-SNAPSHOT + 1.123.12 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.12-SNAPSHOT + 1.105.12 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.12-SNAPSHOT + 1.105.12 com.google.cloud google-cloud-pubsub - 1.123.12-SNAPSHOT + 1.123.12 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 481123487c80..c9ee7fa8597f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.12-SNAPSHOT + 1.105.12 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.12-SNAPSHOT + 1.123.12 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2e3cf5981bd4..2934172feedd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.12-SNAPSHOT + 1.123.12 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 14d5584e1f57..c2b145b4c283 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.11:1.123.12-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.11:1.105.12-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.11:1.105.12-SNAPSHOT +google-cloud-pubsub:1.123.12:1.123.12 +grpc-google-cloud-pubsub-v1:1.105.12:1.105.12 +proto-google-cloud-pubsub-v1:1.105.12:1.105.12 From abb30757a34135990d4532e73eeb518d6d864b0a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 15 May 2023 14:16:13 +0000 Subject: [PATCH 1412/2363] chore(main): release 1.123.13-SNAPSHOT (#1580) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4a1628b91ca5..f85e7af09de8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.12 + 1.123.13-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.12 + 1.123.13-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.12 + 1.105.13-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.12 + 1.105.13-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f301990f7205..2ffa31249fb2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.12 + 1.123.13-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.12 + 1.123.13-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1ffeb1c1869e..30e99bf92614 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.12 + 1.105.13-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.12 + 1.123.13-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3f04dd86ee5a..d5b95f728b3a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.12 + 1.123.13-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.12 + 1.105.13-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.12 + 1.105.13-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.12 + 1.123.13-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c9ee7fa8597f..c33dc03507b1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.12 + 1.105.13-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.12 + 1.123.13-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2934172feedd..3cebc180371a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.12 + 1.123.13-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c2b145b4c283..8b33e08fde64 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.12:1.123.12 -grpc-google-cloud-pubsub-v1:1.105.12:1.105.12 -proto-google-cloud-pubsub-v1:1.105.12:1.105.12 +google-cloud-pubsub:1.123.12:1.123.13-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.12:1.105.13-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.12:1.105.13-SNAPSHOT From 394069cdccbe337594321d6abacfae1a1cab4d1f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 19 May 2023 13:36:10 -0400 Subject: [PATCH 1413/2363] build: migrate release scripts (#1799) (#1584) Source-Link: https://github.com/googleapis/synthtool/commit/1fd6dff029bb3d873a4780e616388f802f086907 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:ad9cabee4c022f1aab04a71332369e0c23841062124818a4490f73337f790337 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 2 +- java-pubsub/.github/release-trigger.yml | 1 + java-pubsub/README.md | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 35478afe3fdd..aadf54f6438e 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:8dd8395defb6a5069b0b10c435058bf13980606ba1967e2b3925ed50fc3cb22f + digest: sha256:ad9cabee4c022f1aab04a71332369e0c23841062124818a4490f73337f790337 diff --git a/java-pubsub/.github/release-trigger.yml b/java-pubsub/.github/release-trigger.yml index d4ca94189e16..d8f21db7400b 100644 --- a/java-pubsub/.github/release-trigger.yml +++ b/java-pubsub/.github/release-trigger.yml @@ -1 +1,2 @@ enabled: true +multiScmName: java-pubsub diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8cb1716c75f4..4ef8c914ddb2 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.14.0') +implementation platform('com.google.cloud:libraries-bom:26.15.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.11' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.12' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.11" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.12" ``` @@ -406,7 +406,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.11 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.12 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From 6f8c3467daba51e67c909b6c5b4ec3417c1ff78d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 23 May 2023 03:52:19 +0200 Subject: [PATCH 1414/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.26.0 (#1582) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.26.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2e2edc52800a..40fda668d880 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.25.0 + 2.26.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3cebc180371a..90ed9fb33c7b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.25.0 + 2.26.0 From d591ebb2b2d83c0d68b69f68ea6ce8197c17198b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 23 May 2023 03:52:37 +0200 Subject: [PATCH 1415/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.12 (#1581) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.12 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4ef8c914ddb2..0571cd2115c1 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.11 + 1.123.12 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 40fda668d880..deffce443d8c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.11 + 1.123.12 From 432a2624efa68f6ea2e9c6c55ef5dd83a6c59939 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 May 2023 23:39:41 +0200 Subject: [PATCH 1416/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.26.1 (#1585) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index deffce443d8c..b1eb68448900 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.26.0 + 2.26.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 90ed9fb33c7b..b2da201e4c91 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.26.0 + 2.26.1
    From dc2d4820b5a161792cdbddd70c86216a16bcd620 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 May 2023 23:40:24 +0200 Subject: [PATCH 1417/2363] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.3.0 (#1586) --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index f7b7d38653f7..10a43a507a47 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -75,7 +75,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.2.2 + 3.3.0 checkstyle-suppressions.xml From 6d721a2a232a447a47611a7c4b6f6f2602da6077 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 May 2023 23:41:50 +0200 Subject: [PATCH 1418/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.0 (#1590) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b1eb68448900..37a85f94946e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.9.1 + 1.1.10.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b2da201e4c91..513b4e5d13a3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.9.1 + 1.1.10.0 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5f50801f9dbc..f20ee599c773 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -71,7 +71,7 @@ org.xerial.snappy snappy-java - 1.1.9.1 + 1.1.10.0 com.google.protobuf From 84057a336f91d4502923011133c52a4392466f62 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 May 2023 23:54:43 +0200 Subject: [PATCH 1419/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.10.0 (#1592) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d5b95f728b3a..e61a333f16ee 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.9.0 + 3.10.0 pom import From 16c40f25eb5c5363455dd4b050afd1d72e39e77f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 26 May 2023 22:46:11 +0200 Subject: [PATCH 1420/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.10.1 (#1594) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e61a333f16ee..a446387435e9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.10.0 + 3.10.1 pom import From d20588c20120e2a3db727bc7d4829daf9d3a7491 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 May 2023 16:05:06 +0200 Subject: [PATCH 1421/2363] build(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.6.0 (#1589) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index ee6389c22a60..dac3c12f52ce 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -79,7 +79,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-dependency-plugin - 3.5.0 + 3.6.0 copy-dependencies From 24dfa0332a390b6cfefda68bd53d71bb66c944ca Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 May 2023 16:15:12 +0200 Subject: [PATCH 1422/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.18.1 (#1591) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 37a85f94946e..699b69d61935 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.17.0 + 2.18.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 513b4e5d13a3..06ac9f7a6b59 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.17.0 + 2.18.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f20ee599c773..1f9b1d448bed 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.17.0 + 2.18.1 tests From 1bcdb4df70bd61d1378ba194f1c1a7a53f30fe1e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 May 2023 19:55:35 +0200 Subject: [PATCH 1423/2363] test(deps): update dependency com.google.truth:truth to v1.1.4 (#1596) --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a446387435e9..9bc7dfdd330d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.1.3 + 1.1.4 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 699b69d61935..09b6f50d0b58 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.1.3 + 1.1.4 test diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index dac3c12f52ce..8422578b0029 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.1.3 + 1.1.4 test
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 06ac9f7a6b59..416223919348 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.1.3 + 1.1.4 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1f9b1d448bed..432b612311d5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -88,7 +88,7 @@ com.google.truth truth - 1.1.3 + 1.1.4 test From c8c2f7168e690dc34e2fb35257f53ebf8737af97 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 30 May 2023 13:59:29 -0400 Subject: [PATCH 1424/2363] chore(main): release 1.123.13 (#1587) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 250dc1abcf48..0b064e3d3972 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.123.13](https://github.com/googleapis/java-pubsub/compare/v1.123.12...v1.123.13) (2023-05-30) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.26.0 ([#1582](https://github.com/googleapis/java-pubsub/issues/1582)) ([a7c09b7](https://github.com/googleapis/java-pubsub/commit/a7c09b763845fc78e5382f79365467d4bdb8a24d)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.26.1 ([#1585](https://github.com/googleapis/java-pubsub/issues/1585)) ([e2c37bf](https://github.com/googleapis/java-pubsub/commit/e2c37bfcee74a6f95cc3c15cf1f9d3d1602b77ff)) +* Update dependency com.google.cloud:google-cloud-core to v2.18.1 ([#1591](https://github.com/googleapis/java-pubsub/issues/1591)) ([1637f0d](https://github.com/googleapis/java-pubsub/commit/1637f0db2a89b20d28a6812b6abb4f36bfd46f80)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.10.0 ([#1592](https://github.com/googleapis/java-pubsub/issues/1592)) ([a6be7b7](https://github.com/googleapis/java-pubsub/commit/a6be7b7870ba776fd9b39a0b16d45ba51fcc8ad6)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.10.1 ([#1594](https://github.com/googleapis/java-pubsub/issues/1594)) ([52263ce](https://github.com/googleapis/java-pubsub/commit/52263ce63d4cbda649121e465f4bdc78bbfa8e44)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.0 ([#1590](https://github.com/googleapis/java-pubsub/issues/1590)) ([338f31f](https://github.com/googleapis/java-pubsub/commit/338f31f96deb09fe93e1306986a7887d285a9d06)) + ## [1.123.12](https://github.com/googleapis/java-pubsub/compare/v1.123.11...v1.123.12) (2023-05-12) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f85e7af09de8..4abfcaca05d2 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.13-SNAPSHOT + 1.123.13 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.13-SNAPSHOT + 1.123.13 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.13-SNAPSHOT + 1.105.13 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.13-SNAPSHOT + 1.105.13
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2ffa31249fb2..fce81b69369f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.13-SNAPSHOT + 1.123.13 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.13-SNAPSHOT + 1.123.13 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 30e99bf92614..7076d896bf2c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.13-SNAPSHOT + 1.105.13 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.13-SNAPSHOT + 1.123.13 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9bc7dfdd330d..cb342bbeb798 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.13-SNAPSHOT + 1.123.13 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.13-SNAPSHOT + 1.105.13 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.13-SNAPSHOT + 1.105.13 com.google.cloud google-cloud-pubsub - 1.123.13-SNAPSHOT + 1.123.13 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c33dc03507b1..47cfc5f3d3f3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.13-SNAPSHOT + 1.105.13 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.13-SNAPSHOT + 1.123.13 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 416223919348..650d953010e7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.13-SNAPSHOT + 1.123.13 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8b33e08fde64..bd395cab3731 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.12:1.123.13-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.12:1.105.13-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.12:1.105.13-SNAPSHOT +google-cloud-pubsub:1.123.13:1.123.13 +grpc-google-cloud-pubsub-v1:1.105.13:1.105.13 +proto-google-cloud-pubsub-v1:1.105.13:1.105.13 From 3bc1eb9055490cc555e5e04f2c5faf25c5405dda Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 30 May 2023 18:14:17 +0000 Subject: [PATCH 1425/2363] chore(main): release 1.123.14-SNAPSHOT (#1597) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4abfcaca05d2..8a886d0dac0d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.13 + 1.123.14-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.13 + 1.123.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.13 + 1.105.14-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.13 + 1.105.14-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index fce81b69369f..902f34f2b543 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.13 + 1.123.14-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.13 + 1.123.14-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7076d896bf2c..d4811165ecff 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.13 + 1.105.14-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.13 + 1.123.14-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index cb342bbeb798..720002d5a17a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.13 + 1.123.14-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.13 + 1.105.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.13 + 1.105.14-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.13 + 1.123.14-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 47cfc5f3d3f3..45a2ceaed37c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.13 + 1.105.14-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.13 + 1.123.14-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 650d953010e7..026f33c684a9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.13 + 1.123.14-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index bd395cab3731..0a5ec4a21898 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.13:1.123.13 -grpc-google-cloud-pubsub-v1:1.105.13:1.105.13 -proto-google-cloud-pubsub-v1:1.105.13:1.105.13 +google-cloud-pubsub:1.123.13:1.123.14-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.13:1.105.14-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.13:1.105.14-SNAPSHOT From 32e13946f1ee72c259f9e8728c6bd334e031112f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Jun 2023 16:20:30 +0200 Subject: [PATCH 1426/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.11.0 (#1605) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.11.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 0571cd2115c1..0eb41cf24c23 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.15.0') +implementation platform('com.google.cloud:libraries-bom:26.16.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.12' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.13' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.12" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.13" ``` @@ -406,7 +406,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.12 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.13 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 720002d5a17a..72ab10b004c1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.10.1 + 3.11.0 pom import From bcc1f4cb46f44bd5cab30cd47c5a30ec99f5cd50 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Jun 2023 16:21:04 +0200 Subject: [PATCH 1427/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.19.0 (#1604) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.19.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 09b6f50d0b58..aef96942b025 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.18.1 + 2.19.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 026f33c684a9..0245520754a9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.18.1 + 2.19.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 432b612311d5..9398d6fade7d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.18.1 + 2.19.0 tests From 664ffbe61cf9312a94a450e6a7e2a943667fb645 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Jun 2023 16:21:23 +0200 Subject: [PATCH 1428/2363] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.1.2 (#1603) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.1.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 8422578b0029..5bf6dae19bb4 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.1.0 + 3.1.2 **/*IT From 335933f575a75132c69f5aeb57e2aa5fc6c2d27c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 10:55:13 -0400 Subject: [PATCH 1429/2363] chore(main): release 1.123.14 (#1607) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 0b064e3d3972..6b741b53e280 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.123.14](https://github.com/googleapis/java-pubsub/compare/v1.123.13...v1.123.14) (2023-06-12) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.19.0 ([#1604](https://github.com/googleapis/java-pubsub/issues/1604)) ([7ac609e](https://github.com/googleapis/java-pubsub/commit/7ac609e44c20db73460fe39919439c3a2b597454)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.11.0 ([#1605](https://github.com/googleapis/java-pubsub/issues/1605)) ([077ac04](https://github.com/googleapis/java-pubsub/commit/077ac04214be23f6693734c157925a5607ada869)) + ## [1.123.13](https://github.com/googleapis/java-pubsub/compare/v1.123.12...v1.123.13) (2023-05-30) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8a886d0dac0d..d723d168e1e7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.14-SNAPSHOT + 1.123.14 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.14-SNAPSHOT + 1.123.14 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.14-SNAPSHOT + 1.105.14 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.14-SNAPSHOT + 1.105.14 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 902f34f2b543..f9c7007b4a10 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.14-SNAPSHOT + 1.123.14 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.14-SNAPSHOT + 1.123.14 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d4811165ecff..e01a6fe5f9f7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.14-SNAPSHOT + 1.105.14 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.14-SNAPSHOT + 1.123.14 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 72ab10b004c1..9d2d22c45914 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.14-SNAPSHOT + 1.123.14 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.14-SNAPSHOT + 1.105.14 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.14-SNAPSHOT + 1.105.14 com.google.cloud google-cloud-pubsub - 1.123.14-SNAPSHOT + 1.123.14 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 45a2ceaed37c..658f6450ea59 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.14-SNAPSHOT + 1.105.14 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.14-SNAPSHOT + 1.123.14 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0245520754a9..b57591f20eb7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.14-SNAPSHOT + 1.123.14 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0a5ec4a21898..2113cfa4c2ff 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.13:1.123.14-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.13:1.105.14-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.13:1.105.14-SNAPSHOT +google-cloud-pubsub:1.123.14:1.123.14 +grpc-google-cloud-pubsub-v1:1.105.14:1.105.14 +proto-google-cloud-pubsub-v1:1.105.14:1.105.14 From 57d2daaed1f4144d2e07261123763f55945c9b2f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Jun 2023 16:55:40 +0200 Subject: [PATCH 1430/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.6 (#1600) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d723d168e1e7..6b57e9dfb72b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.5 + 1.5.6 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9d2d22c45914..47a20be29e3f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.5 + 1.5.6 From dc040346d3ec16765a4d8f408d4cad4b3665c6a9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Jun 2023 16:56:10 +0200 Subject: [PATCH 1431/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.27.0 (#1599) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.27.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index aef96942b025..efb929c0e00c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.26.1 + 2.27.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b57591f20eb7..467b26059430 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.26.1 + 2.27.0 From 3849595f34005af7672b85c183f9d5e2e358c85d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 15:10:13 +0000 Subject: [PATCH 1432/2363] chore(main): release 1.123.15-SNAPSHOT (#1608) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6b57e9dfb72b..a28d63d23070 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.14 + 1.123.15-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.14 + 1.123.15-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.14 + 1.105.15-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.14 + 1.105.15-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f9c7007b4a10..d87c9ea74330 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.14 + 1.123.15-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.14 + 1.123.15-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e01a6fe5f9f7..596ea4577d1c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.14 + 1.105.15-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.14 + 1.123.15-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 47a20be29e3f..37435a251493 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.14 + 1.123.15-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.14 + 1.105.15-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.14 + 1.105.15-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.14 + 1.123.15-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 658f6450ea59..1b5b4668ea5e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.14 + 1.105.15-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.14 + 1.123.15-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 467b26059430..622c5d4bd89c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.14 + 1.123.15-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 2113cfa4c2ff..9adcde413377 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.14:1.123.14 -grpc-google-cloud-pubsub-v1:1.105.14:1.105.14 -proto-google-cloud-pubsub-v1:1.105.14:1.105.14 +google-cloud-pubsub:1.123.14:1.123.15-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.14:1.105.15-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.14:1.105.15-SNAPSHOT From 67bfee3e4e3429a0fe36b9120d7958286eeb2a2c Mon Sep 17 00:00:00 2001 From: maitrimangal <121899734+maitrimangal@users.noreply.github.com> Date: Mon, 12 Jun 2023 11:48:52 -0400 Subject: [PATCH 1433/2363] docs: adding pubsub emulator example (#1602) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * adding pubsub emulator example * docs: adding pubsub emulator example * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 1 + .../java/pubsub/UsePubSubEmulatorExample.java | 70 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 0eb41cf24c23..95934003ecf6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -304,6 +304,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Test Topic Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | | Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | | Update Push Configuration Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | +| Use Pub Sub Emulator Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | | Update Topic Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | | State | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/State.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/State.java) | | State Proto | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/StateProto.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/StateProto.java) | diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java new file mode 100644 index 000000000000..f4c69eac45ca --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java @@ -0,0 +1,70 @@ +/* + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +import com.google.api.gax.core.CredentialsProvider; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.rpc.FixedTransportChannelProvider; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.pubsub.v1.TopicName; +import io.grpc.ManagedChannel; +import io.grpc.ManagedChannelBuilder; +import java.io.IOException; + +/** + * Snippet that demonstrates creating Pub/Sub clients using the Google Cloud Pub/Sub emulator. + * + *

    Note: clients cannot start/stop the emulator. + */ +public class UsePubSubEmulatorExample { + + public static void main(String... args) throws IOException { + // [START pubsub_use_emulator] + String hostport = System.getenv("PUBSUB_EMULATOR_HOST"); + ManagedChannel channel = ManagedChannelBuilder.forTarget(hostport).usePlaintext().build(); + try { + TransportChannelProvider channelProvider = + FixedTransportChannelProvider.create(GrpcTransportChannel.create(channel)); + CredentialsProvider credentialsProvider = NoCredentialsProvider.create(); + + // Set the channel and credentials provider when creating a `TopicAdminClient`. + // Similarly for SubscriptionAdminClient + TopicAdminClient topicClient = + TopicAdminClient.create( + TopicAdminSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(credentialsProvider) + .build()); + + TopicName topicName = TopicName.of("my-project-id", "my-topic-id"); + // Set the channel and credentials provider when creating a `Publisher`. + // Similarly for Subscriber + Publisher publisher = + Publisher.newBuilder(topicName) + .setChannelProvider(channelProvider) + .setCredentialsProvider(credentialsProvider) + .build(); + } finally { + channel.shutdown(); + } + // [END pubsub_use_emulator] + } +} From 8b6626cf61305dcc2c68559e4e29e12dc02fad4c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Jun 2023 16:10:31 +0200 Subject: [PATCH 1434/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.13 (#1598) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.13 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 95934003ecf6..26cabae4b3fd 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.12 + 1.123.13 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index efb929c0e00c..bc3576d0bbfd 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.12 + 1.123.13 From 0d962f35fc519f589630116f5bd3bec0a40506d7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Jun 2023 17:19:49 +0200 Subject: [PATCH 1435/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.5 (#1595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 37435a251493..0db5fb7db594 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.4.3 + 3.4.5 From 49b61bc375b9ed48532178a6be5fd6cd9d39a013 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Jun 2023 17:39:14 +0200 Subject: [PATCH 1436/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.27.1 (#1614) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.27.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 26cabae4b3fd..031914578a6b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.13' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.14' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.13" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.14" ``` @@ -304,8 +304,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Test Topic Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | | Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | | Update Push Configuration Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | -| Use Pub Sub Emulator Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | | Update Topic Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | +| Use Pub Sub Emulator Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | | State | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/State.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/State.java) | | State Proto | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/StateProto.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/StateProto.java) | @@ -407,7 +407,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.13 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.14 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bc3576d0bbfd..cb6364813588 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.27.0 + 2.27.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 622c5d4bd89c..951e749389be 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.27.0 + 2.27.1 From 804f9fb0c963ef7a86b6457b3200d469b02e49b6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 16 Jun 2023 15:36:16 -0400 Subject: [PATCH 1437/2363] build(deps): bump requests from 2.27.1 to 2.31.0 in /.kokoro (#1588) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): bump requests from 2.27.1 to 2.31.0 in /.kokoro Bumps [requests](https://github.com/psf/requests) from 2.27.1 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.27.1...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: indirect ... Signed-off-by: dependabot[bot] * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Owl Bot From 330b8e617d681c03316dac2d218a54623032a1aa Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 16 Jun 2023 16:16:31 -0400 Subject: [PATCH 1438/2363] chore(deps): Update gapic-generator-java to 2.21.0 (#1462) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): Update gapic-generator-java to 2.21.0 PiperOrigin-RevId: 538365689 Source-Link: https://github.com/googleapis/googleapis/commit/7ac8a2479bd197e4d7533e1ae9bf1877823f0c26 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e58eedb75d3c07878097cdfbfd3ffdb7646763a3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTU4ZWVkYjc1ZDNjMDc4NzgwOTdjZGZiZmQzZmZkYjc2NDY3NjNhMyJ9 chore: upgrading protobuf to 23.2 for code generation PiperOrigin-RevId: 537035741 Source-Link: https://github.com/googleapis/googleapis/commit/640f7439448629156b3ff30adc0332cc8b7ce52c Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ec02ed2022878f99c94c763060ff6a018896b6e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWVjMDJlZDIwMjI4NzhmOTljOTRjNzYzMDYwZmY2YTAxODg5NmI2ZSJ9 feat: add push config wrapper fields PiperOrigin-RevId: 534994946 Source-Link: https://github.com/googleapis/googleapis/commit/64ecfebceee57a7fd22723d1b11b729270baf9c5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/03534b3dd4c926f706729d979d893458db7e174d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDM1MzRiM2RkNGM5MjZmNzA2NzI5ZDk3OWQ4OTM0NThkYjdlMTc0ZCJ9 chore: upgrading Protobuf to 23.1 and gRPC to 1.55.0 in code generation PiperOrigin-RevId: 534084593 Source-Link: https://github.com/googleapis/googleapis/commit/aa4559a97f79225fc57c9f70b5f84fe620e8292e Source-Link: https://github.com/googleapis/googleapis-gen/commit/370325af8236732f5885f5940e0ef481fee83003 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzcwMzI1YWY4MjM2NzMyZjU4ODVmNTk0MGUwZWY0ODFmZWU4MzAwMyJ9 feat: add cloud storage subscription fields PiperOrigin-RevId: 531202368 Source-Link: https://github.com/googleapis/googleapis/commit/8a4cc94afcb9ecf3c604ebefbfab2c645e977e7d Source-Link: https://github.com/googleapis/googleapis-gen/commit/ec60ad76356d88e99fa4844fbd90fdcca728f5cb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWM2MGFkNzYzNTZkODhlOTlmYTQ4NDRmYmQ5MGZkY2NhNzI4ZjVjYiJ9 chore: update import paths for Go targets to match open source location chore: update go_package in protos to match open source location chore: add explicit release levels to Go gapic targets PiperOrigin-RevId: 520705454 Source-Link: https://github.com/googleapis/googleapis/commit/1cfcea4fbef317c44cc13d73017a0b0462c4737d Source-Link: https://github.com/googleapis/googleapis-gen/commit/15732ab75211b0255433d6f87415e8a3ce466826 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTU3MzJhYjc1MjExYjAyNTU0MzNkNmY4NzQxNWU4YTNjZTQ2NjgyNiJ9 chore(deps): Update gapic-generator-java to 2.16.0 PiperOrigin-RevId: 520153493 Source-Link: https://github.com/googleapis/googleapis/commit/26a424a2e4190c3103ab6f5d00c3144c89161b20 Source-Link: https://github.com/googleapis/googleapis-gen/commit/78f1567661df07bea7425e4341012e7b77c11254 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzhmMTU2NzY2MWRmMDdiZWE3NDI1ZTQzNDEwMTJlN2I3N2MxMTI1NCJ9 docs: Add x-ref for ordering messages docs: Clarify subscription expiration policy PiperOrigin-RevId: 511270484 Source-Link: https://github.com/googleapis/googleapis/commit/4dea519175b3ba0697c71249b77f681a3c90af51 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8dbb4dbade5a3a90cc3839dd25976a8c0a675286 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGRiYjRkYmFkZTVhM2E5MGNjMzgzOWRkMjU5NzZhOGMwYTY3NTI4NiJ9 feat: Make INTERNAL a retryable error for Pull PiperOrigin-RevId: 510255779 Source-Link: https://github.com/googleapis/googleapis/commit/58e4422ffda317bbbb03e30bb4620afa8ad1c7d6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d67c1eb9f045f342a1dbad6666af3c1331eae615 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDY3YzFlYjlmMDQ1ZjM0MmExZGJhZDY2NjZhZjNjMTMzMWVhZTYxNSJ9 feat: Add temporary_failed_ack_ids to ModifyAckDeadlineConfirmation PiperOrigin-RevId: 510255074 Source-Link: https://github.com/googleapis/googleapis/commit/7427d37520b0f9ccdcd1a5a83288cdeea43cf826 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c7d5aacbca6a81c35930abf219536447d0e58702 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzdkNWFhY2JjYTZhODFjMzU5MzBhYmYyMTk1MzY0NDdkMGU1ODcwMiJ9 docs: Clarify BigQueryConfig PERMISSION_DENIED state PiperOrigin-RevId: 509847316 Source-Link: https://github.com/googleapis/googleapis/commit/d753d6386b031aa031b53d7bb1c23a23a78ee615 Source-Link: https://github.com/googleapis/googleapis-gen/commit/da4e7fe0044b303303ef4c8e46efaf0fcc98e8bf Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGE0ZTdmZTAwNDRiMzAzMzAzZWY0YzhlNDZlZmFmMGZjYzk4ZThiZiJ9 docs: Clarify subscription description PiperOrigin-RevId: 509847159 Source-Link: https://github.com/googleapis/googleapis/commit/2a1543a1c0e72f03a95a4be9f32e30fc4cedf879 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a4996434dc7ede3eb40ee6098130520e7d8049a9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTQ5OTY0MzRkYzdlZGUzZWI0MGVlNjA5ODEzMDUyMGU3ZDgwNDlhOSJ9 docs: Replacing HTML code with Markdown docs: Fix PullResponse description docs: Fix Pull description PiperOrigin-RevId: 509846267 Source-Link: https://github.com/googleapis/googleapis/commit/bb626b17c39848285f7f69ed978c843a900cee56 Source-Link: https://github.com/googleapis/googleapis-gen/commit/34c8b57847276f7d67ced245b56075b9cde86094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzRjOGI1Nzg0NzI3NmY3ZDY3Y2VkMjQ1YjU2MDc1YjljZGU4NjA5NCJ9 docs: Update Pub/Sub topic retention limit from 7 days to 31 days PiperOrigin-RevId: 509846179 Source-Link: https://github.com/googleapis/googleapis/commit/19473b44ae71bd853e30cfdc6cf0adb3818bc9c9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/db895f1453c272f599f219dcacdd4f08c3f3bb6c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGI4OTVmMTQ1M2MyNzJmNTk5ZjIxOWRjYWNkZDRmMDhjM2YzYmI2YyJ9 feat: Add google.api.method.signature to update methods PiperOrigin-RevId: 509649352 Source-Link: https://github.com/googleapis/googleapis/commit/1870ba2163526fa9fba63bf899c92707476d4603 Source-Link: https://github.com/googleapis/googleapis-gen/commit/515dcdfdd27ff00c30e555bdf17b7743e21457e9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTE1ZGNkZmRkMjdmZjAwYzMwZTU1NWJkZjE3Yjc3NDNlMjE0NTdlOSJ9 docs: Mark revision_id in CommitSchemaRevisionRequest deprecated PiperOrigin-RevId: 508076213 Source-Link: https://github.com/googleapis/googleapis/commit/3b9ae88062e8f0f6603cc8bcba945197cc60d314 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d5e26492de9100eb2cf686ea7bccf2498b6600d4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDVlMjY0OTJkZTkxMDBlYjJjZjY4NmVhN2JjY2YyNDk4YjY2MDBkNCJ9 chore(deps): Update gapic-generator-java to 2.14.0 PiperOrigin-RevId: 503433217 Source-Link: https://github.com/googleapis/googleapis/commit/c252ad5a80d95515825a2e167c3dec20bcca48af Source-Link: https://github.com/googleapis/googleapis-gen/commit/488dc64e7fe3bc46c3267c50b9ff8e85f139fe7b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDg4ZGM2NGU3ZmUzYmM0NmMzMjY3YzUwYjlmZjhlODVmMTM5ZmU3YiJ9 chore(bazel): update protobuf to v3.21.12 PiperOrigin-RevId: 503267695 Source-Link: https://github.com/googleapis/googleapis/commit/c79059008c6d2e66d4cc65a1a7d8bee7160e3f83 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b98230b9e68a3828cf138296e9a20e03749ae0a0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjk4MjMwYjllNjhhMzgyOGNmMTM4Mjk2ZTlhMjBlMDM3NDlhZTBhMCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- .../cloud/pubsub/v1/SchemaServiceClient.java | 16 +- .../pubsub/v1/SchemaServiceSettings.java | 2 +- .../pubsub/v1/SubscriptionAdminClient.java | 190 +- .../pubsub/v1/SubscriptionAdminSettings.java | 2 +- .../cloud/pubsub/v1/TopicAdminClient.java | 35 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 2 +- .../cloud/pubsub/v1/gapic_metadata.json | 6 +- .../google/cloud/pubsub/v1/package-info.java | 2 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 76 +- .../GrpcSchemaServiceCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 82 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 112 +- .../HttpJsonPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/HttpJsonPublisherStub.java | 75 +- .../HttpJsonSchemaServiceCallableFactory.java | 2 +- .../v1/stub/HttpJsonSchemaServiceStub.java | 81 +- .../HttpJsonSubscriberCallableFactory.java | 2 +- .../v1/stub/HttpJsonSubscriberStub.java | 122 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../pubsub/v1/stub/PublisherStubSettings.java | 2 +- .../pubsub/v1/stub/SchemaServiceStub.java | 2 +- .../v1/stub/SchemaServiceStubSettings.java | 57 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../v1/stub/SubscriberStubSettings.java | 97 +- .../google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../cloud/pubsub/v1/MockSchemaService.java | 2 +- .../pubsub/v1/MockSchemaServiceImpl.java | 2 +- .../cloud/pubsub/v1/MockSubscriber.java | 2 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../v1/SchemaServiceClientHttpJsonTest.java | 2 +- .../pubsub/v1/SchemaServiceClientTest.java | 2 +- .../SubscriptionAdminClientHttpJsonTest.java | 138 +- .../v1/SubscriptionAdminClientTest.java | 54 +- .../v1/TopicAdminClientHttpJsonTest.java | 53 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 24 +- .../com/google/pubsub/v1/PublisherGrpc.java | 161 +- .../google/pubsub/v1/SchemaServiceGrpc.java | 176 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 342 +- .../google/pubsub/v1/AcknowledgeRequest.java | 71 +- .../com/google/pubsub/v1/BigQueryConfig.java | 114 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 4 +- .../google/pubsub/v1/CloudStorageConfig.java | 3401 +++++++++++++++++ .../v1/CloudStorageConfigOrBuilder.java | 269 ++ .../google/pubsub/v1/CommitSchemaRequest.java | 83 +- .../google/pubsub/v1/CreateSchemaRequest.java | 120 +- .../v1/CreateSchemaRequestOrBuilder.java | 5 + .../pubsub/v1/CreateSnapshotRequest.java | 165 +- .../v1/CreateSnapshotRequestOrBuilder.java | 33 +- .../google/pubsub/v1/DeadLetterPolicy.java | 70 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 6 + .../google/pubsub/v1/DeleteSchemaRequest.java | 33 +- .../v1/DeleteSchemaRevisionRequest.java | 156 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 30 +- .../pubsub/v1/DeleteSnapshotRequest.java | 33 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 33 +- .../google/pubsub/v1/DeleteTopicRequest.java | 33 +- .../pubsub/v1/DetachSubscriptionRequest.java | 33 +- .../pubsub/v1/DetachSubscriptionResponse.java | 5 - .../google/pubsub/v1/ExpirationPolicy.java | 65 +- .../google/pubsub/v1/GetSchemaRequest.java | 54 +- .../google/pubsub/v1/GetSnapshotRequest.java | 33 +- .../pubsub/v1/GetSubscriptionRequest.java | 33 +- .../com/google/pubsub/v1/GetTopicRequest.java | 33 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 84 +- .../v1/ListSchemaRevisionsResponse.java | 43 +- .../google/pubsub/v1/ListSchemasRequest.java | 84 +- .../google/pubsub/v1/ListSchemasResponse.java | 42 +- .../pubsub/v1/ListSnapshotsRequest.java | 63 +- .../pubsub/v1/ListSnapshotsResponse.java | 42 +- .../pubsub/v1/ListSubscriptionsRequest.java | 63 +- .../pubsub/v1/ListSubscriptionsResponse.java | 42 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 63 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 69 +- .../v1/ListTopicSubscriptionsRequest.java | 63 +- .../v1/ListTopicSubscriptionsResponse.java | 69 +- .../google/pubsub/v1/ListTopicsRequest.java | 63 +- .../google/pubsub/v1/ListTopicsResponse.java | 42 +- .../pubsub/v1/MessageStoragePolicy.java | 51 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 83 +- .../pubsub/v1/ModifyPushConfigRequest.java | 98 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 3 + .../com/google/pubsub/v1/ProjectName.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 60 +- .../com/google/pubsub/v1/PublishResponse.java | 51 +- .../com/google/pubsub/v1/PubsubMessage.java | 161 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 5 +- .../com/google/pubsub/v1/PubsubProto.java | 739 ++-- .../com/google/pubsub/v1/PullRequest.java | 65 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PullResponse.java | 93 +- .../pubsub/v1/PullResponseOrBuilder.java | 15 +- .../java/com/google/pubsub/v1/PushConfig.java | 2189 +++++++++-- .../google/pubsub/v1/PushConfigOrBuilder.java | 116 +- .../com/google/pubsub/v1/ReceivedMessage.java | 114 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 4 + .../com/google/pubsub/v1/RetryPolicy.java | 135 +- .../pubsub/v1/RollbackSchemaRequest.java | 58 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 + .../java/com/google/pubsub/v1/Schema.java | 148 +- .../java/com/google/pubsub/v1/SchemaName.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 199 +- .../com/google/pubsub/v1/SchemaSettings.java | 90 +- .../com/google/pubsub/v1/SeekRequest.java | 54 +- .../pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/SeekResponse.java | 5 - .../java/com/google/pubsub/v1/Snapshot.java | 130 +- .../com/google/pubsub/v1/SnapshotName.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 1 - .../pubsub/v1/StreamingPullRequest.java | 191 +- .../pubsub/v1/StreamingPullResponse.java | 1132 +++++- .../com/google/pubsub/v1/Subscription.java | 1093 ++++-- .../google/pubsub/v1/SubscriptionName.java | 2 +- .../pubsub/v1/SubscriptionOrBuilder.java | 105 +- .../main/java/com/google/pubsub/v1/Topic.java | 297 +- .../java/com/google/pubsub/v1/TopicName.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 9 +- .../pubsub/v1/UpdateSnapshotRequest.java | 119 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 124 +- .../google/pubsub/v1/UpdateTopicRequest.java | 118 +- .../pubsub/v1/ValidateMessageRequest.java | 97 +- .../v1/ValidateMessageRequestOrBuilder.java | 5 +- .../pubsub/v1/ValidateMessageResponse.java | 5 - .../pubsub/v1/ValidateSchemaRequest.java | 83 +- .../pubsub/v1/ValidateSchemaResponse.java | 5 - .../main/proto/google/pubsub/v1/pubsub.proto | 188 +- .../main/proto/google/pubsub/v1/schema.proto | 16 +- 132 files changed, 11998 insertions(+), 3966 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 031914578a6b..265fd5c5a2b3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.16.0') +implementation platform('com.google.cloud:libraries-bom:26.17.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 2444f6b81a58..2bf0c15f2f8c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1047,10 +1047,9 @@ public final UnaryCallable rollbackSchemaCallable * * @param name Required. The name of the schema revision to be deleted, with a revision ID * explicitly included. - *

    Example: projects/123/schemas/my-schema{@literal @}c7cfa2a8 - * @param revisionId Required. The revision ID to roll back to. It must be a revision of the same - * schema. - *

    Example: c7cfa2a8 + *

    Example: `projects/123/schemas/my-schema{@literal @}c7cfa2a8` + * @param revisionId Optional. This field is deprecated and should not be used for specifying the + * revision ID. The revision ID should be specified via the `name` parameter. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Schema deleteSchemaRevision(SchemaName name, String revisionId) { @@ -1083,10 +1082,9 @@ public final Schema deleteSchemaRevision(SchemaName name, String revisionId) { * * @param name Required. The name of the schema revision to be deleted, with a revision ID * explicitly included. - *

    Example: projects/123/schemas/my-schema{@literal @}c7cfa2a8 - * @param revisionId Required. The revision ID to roll back to. It must be a revision of the same - * schema. - *

    Example: c7cfa2a8 + *

    Example: `projects/123/schemas/my-schema{@literal @}c7cfa2a8` + * @param revisionId Optional. This field is deprecated and should not be used for specifying the + * revision ID. The revision ID should be specified via the `name` parameter. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Schema deleteSchemaRevision(String name, String revisionId) { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index e01dbf09c421..67d08bb63206 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 74157333a8d2..e040337a4f14 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeleteSnapshotRequest; @@ -258,13 +259,12 @@ public SubscriberStub getStub() { * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. Either `pushConfig` or `bigQueryConfig` can be set, but not both. If both are - * empty, then the subscriber will pull and ack messages using API methods. + * configure it. * @param ackDeadlineSeconds 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 - * <i>outstanding</i>. During that time period, the message will not be - * redelivered (on a best-effort basis). + * _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 @@ -329,13 +329,12 @@ public final Subscription createSubscription( * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. Either `pushConfig` or `bigQueryConfig` can be set, but not both. If both are - * empty, then the subscriber will pull and ack messages using API methods. + * configure it. * @param ackDeadlineSeconds 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 - * <i>outstanding</i>. During that time period, the message will not be - * redelivered (on a best-effort basis). + * _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 @@ -400,13 +399,12 @@ public final Subscription createSubscription( * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. Either `pushConfig` or `bigQueryConfig` can be set, but not both. If both are - * empty, then the subscriber will pull and ack messages using API methods. + * configure it. * @param ackDeadlineSeconds 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 - * <i>outstanding</i>. During that time period, the message will not be - * redelivered (on a best-effort basis). + * _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 @@ -471,13 +469,12 @@ public final Subscription createSubscription( * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be * `_deleted-topic_` if the topic has been deleted. * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. Either `pushConfig` or `bigQueryConfig` can be set, but not both. If both are - * empty, then the subscriber will pull and ack messages using API methods. + * configure it. * @param ackDeadlineSeconds 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 - * <i>outstanding</i>. During that time period, the message will not be - * redelivered (on a best-effort basis). + * _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 @@ -530,6 +527,7 @@ public final Subscription createSubscription( * .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) * .setPushConfig(PushConfig.newBuilder().build()) * .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + * .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) * .setAckDeadlineSeconds(2135351438) * .setRetainAckedMessages(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -792,6 +790,7 @@ public final Subscription createSubscription( * .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) * .setPushConfig(PushConfig.newBuilder().build()) * .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + * .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) * .setAckDeadlineSeconds(2135351438) * .setRetainAckedMessages(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -957,6 +956,40 @@ public final UnaryCallable getSubscription return stub.getSubscriptionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing subscription. Note that certain properties of a subscription, such as its + * topic, are not modifiable. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   Subscription subscription = Subscription.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   Subscription response = subscriptionAdminClient.updateSubscription(subscription, updateMask);
    +   * }
    +   * }
    + * + * @param subscription Required. The updated subscription object. + * @param updateMask Required. Indicates which fields in the provided subscription to update. Must + * be specified and non-empty. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Subscription updateSubscription(Subscription subscription, FieldMask updateMask) { + UpdateSubscriptionRequest request = + UpdateSubscriptionRequest.newBuilder() + .setSubscription(subscription) + .setUpdateMask(updateMask) + .build(); + return updateSubscription(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing subscription. Note that certain properties of a subscription, such as its @@ -1716,8 +1749,7 @@ public final UnaryCallable acknowledgeCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many - * concurrent pull requests pending for the given subscription. + * Pulls messages from the server. * *

    Sample code: * @@ -1751,8 +1783,7 @@ public final PullResponse pull(SubscriptionName subscription, int maxMessages) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many - * concurrent pull requests pending for the given subscription. + * Pulls messages from the server. * *

    Sample code: * @@ -1783,8 +1814,7 @@ public final PullResponse pull(String subscription, int maxMessages) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many - * concurrent pull requests pending for the given subscription. + * Pulls messages from the server. * *

    Sample code: * @@ -1828,8 +1858,7 @@ public final PullResponse pull( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many - * concurrent pull requests pending for the given subscription. + * Pulls messages from the server. * *

    Sample code: * @@ -1872,8 +1901,7 @@ public final PullResponse pull(String subscription, boolean returnImmediately, i // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many - * concurrent pull requests pending for the given subscription. + * Pulls messages from the server. * *

    Sample code: * @@ -1977,8 +2005,7 @@ final PullResponse pull( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many - * concurrent pull requests pending for the given subscription. + * Pulls messages from the server. * *

    Sample code: * @@ -2238,10 +2265,10 @@ public final UnaryCallable modifyPushConfigCalla // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the configuration details of a snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Gets the configuration details of a snapshot. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -2271,10 +2298,10 @@ public final Snapshot getSnapshot(SnapshotName snapshot) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the configuration details of a snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Gets the configuration details of a snapshot. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -2301,10 +2328,10 @@ public final Snapshot getSnapshot(String snapshot) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the configuration details of a snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Gets the configuration details of a snapshot. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -2362,10 +2389,10 @@ public final Snapshot getSnapshot(ProjectSnapshotName snapshot) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the configuration details of a snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Gets the configuration details of a snapshot. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -2603,9 +2630,9 @@ public final UnaryCallable listSnap * * @param name 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * subscription. Note that for REST API requests, you must specify a name. See the [resource + * name rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is + * `projects/{project}/snapshots/{snap}`. * @param subscription 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 @@ -2656,9 +2683,9 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri * * @param name 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * subscription. Note that for REST API requests, you must specify a name. See the [resource + * name rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is + * `projects/{project}/snapshots/{snap}`. * @param subscription 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 @@ -2709,9 +2736,9 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) { * * @param name 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * subscription. Note that for REST API requests, you must specify a name. See the [resource + * name rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is + * `projects/{project}/snapshots/{snap}`. * @param subscription 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 @@ -2762,9 +2789,9 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription) * * @param name 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * subscription. Note that for REST API requests, you must specify a name. See the [resource + * name rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is + * `projects/{project}/snapshots/{snap}`. * @param subscription 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 @@ -3015,10 +3042,43 @@ public final UnaryCallable createSnapshotCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Updates an existing snapshot. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
    +   *   Snapshot snapshot = Snapshot.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   Snapshot response = subscriptionAdminClient.updateSnapshot(snapshot, updateMask);
    +   * }
    +   * }
    + * + * @param snapshot Required. The updated snapshot object. + * @param updateMask Required. Indicates which fields in the provided snapshot to update. Must be + * specified and non-empty. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Snapshot updateSnapshot(Snapshot snapshot, FieldMask updateMask) { + UpdateSnapshotRequest request = + UpdateSnapshotRequest.newBuilder().setSnapshot(snapshot).setUpdateMask(updateMask).build(); + return updateSnapshot(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing snapshot. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * @@ -3047,10 +3107,10 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. + * Updates an existing snapshot. Snapshots are used in + * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 1dee81f2ce6e..7f50be718939 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 7a39d7bd627c..80a3b3fa4d8c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,6 +33,7 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.DetachSubscriptionRequest; import com.google.pubsub.v1.DetachSubscriptionResponse; @@ -353,6 +354,38 @@ public final UnaryCallable createTopicCallable() { return stub.createTopicCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing topic. Note that certain properties of a topic are not modifiable. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
    +   *   Topic topic = Topic.newBuilder().build();
    +   *   FieldMask updateMask = FieldMask.newBuilder().build();
    +   *   Topic response = topicAdminClient.updateTopic(topic, updateMask);
    +   * }
    +   * }
    + * + * @param topic Required. The updated topic object. + * @param updateMask 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. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Topic updateTopic(Topic topic, FieldMask updateMask) { + UpdateTopicRequest request = + UpdateTopicRequest.newBuilder().setTopic(topic).setUpdateMask(updateMask).build(); + return updateTopic(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates an existing topic. Note that certain properties of a topic are not modifiable. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index b18ecf1ca44f..9dd62bda3e65 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json index ff5a589d6e07..2cf1c90a41e9 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/gapic_metadata.json @@ -44,7 +44,7 @@ "methods": ["testIamPermissions", "testIamPermissionsCallable"] }, "UpdateTopic": { - "methods": ["updateTopic", "updateTopicCallable"] + "methods": ["updateTopic", "updateTopic", "updateTopicCallable"] } } } @@ -107,10 +107,10 @@ "methods": ["testIamPermissions", "testIamPermissionsCallable"] }, "UpdateSnapshot": { - "methods": ["updateSnapshot", "updateSnapshotCallable"] + "methods": ["updateSnapshot", "updateSnapshot", "updateSnapshotCallable"] }, "UpdateSubscription": { - "methods": ["updateSubscription", "updateSubscriptionCallable"] + "methods": ["updateSubscription", "updateSubscription", "updateSubscriptionCallable"] } } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 097c53df3598..5e73e3a64e8a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index 140ba04741d8..60af80164279 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 53607aafe6fa..d4c26515d7a6 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,8 +25,8 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -241,9 +241,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(createTopicMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings updateTopicTransportSettings = @@ -251,9 +251,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(updateTopicMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic.name", String.valueOf(request.getTopic().getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic.name", String.valueOf(request.getTopic().getName())); + return builder.build(); }) .build(); GrpcCallSettings publishTransportSettings = @@ -261,9 +261,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(publishMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic", String.valueOf(request.getTopic())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic", String.valueOf(request.getTopic())); + return builder.build(); }) .build(); GrpcCallSettings getTopicTransportSettings = @@ -271,9 +271,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(getTopicMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic", String.valueOf(request.getTopic())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic", String.valueOf(request.getTopic())); + return builder.build(); }) .build(); GrpcCallSettings listTopicsTransportSettings = @@ -281,9 +281,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(listTopicsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project", String.valueOf(request.getProject())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); }) .build(); GrpcCallSettings @@ -293,9 +293,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(listTopicSubscriptionsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic", String.valueOf(request.getTopic())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic", String.valueOf(request.getTopic())); + return builder.build(); }) .build(); GrpcCallSettings @@ -304,9 +304,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(listTopicSnapshotsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic", String.valueOf(request.getTopic())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic", String.valueOf(request.getTopic())); + return builder.build(); }) .build(); GrpcCallSettings deleteTopicTransportSettings = @@ -314,9 +314,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(deleteTopicMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("topic", String.valueOf(request.getTopic())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic", String.valueOf(request.getTopic())); + return builder.build(); }) .build(); GrpcCallSettings @@ -325,9 +325,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(detachSubscriptionMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); }) .build(); GrpcCallSettings setIamPolicyTransportSettings = @@ -335,9 +335,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = @@ -345,9 +345,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); }) .build(); GrpcCallSettings @@ -356,9 +356,9 @@ protected GrpcPublisherStub( .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); }) .build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java index 25bb845003ce..b7ad8cab401c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index aa4a91eb264f..cbaf6a608809 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,8 +24,8 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -252,9 +252,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(createSchemaMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); }) .build(); GrpcCallSettings getSchemaTransportSettings = @@ -262,9 +262,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(getSchemaMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings listSchemasTransportSettings = @@ -272,9 +272,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(listSchemasMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); }) .build(); GrpcCallSettings @@ -283,9 +283,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(listSchemaRevisionsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings commitSchemaTransportSettings = @@ -293,9 +293,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(commitSchemaMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings rollbackSchemaTransportSettings = @@ -303,9 +303,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(rollbackSchemaMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings deleteSchemaRevisionTransportSettings = @@ -313,9 +313,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(deleteSchemaRevisionMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings deleteSchemaTransportSettings = @@ -323,9 +323,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(deleteSchemaMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings @@ -334,9 +334,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(validateSchemaMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); }) .build(); GrpcCallSettings @@ -345,9 +345,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(validateMessageMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); }) .build(); GrpcCallSettings setIamPolicyTransportSettings = @@ -355,9 +355,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = @@ -365,9 +365,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); }) .build(); GrpcCallSettings @@ -376,9 +376,9 @@ protected GrpcSchemaServiceStub( .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); }) .build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 555d231b3b54..27f99f671ab0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index e199d9ae3787..b3651167cae7 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,8 +25,8 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; import com.google.iam.v1.SetIamPolicyRequest; @@ -325,9 +325,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(createSubscriptionMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings getSubscriptionTransportSettings = @@ -335,9 +335,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(getSubscriptionMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); }) .build(); GrpcCallSettings updateSubscriptionTransportSettings = @@ -345,10 +345,10 @@ protected GrpcSubscriberStub( .setMethodDescriptor(updateSubscriptionMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( "subscription.name", String.valueOf(request.getSubscription().getName())); - return params.build(); + return builder.build(); }) .build(); GrpcCallSettings @@ -357,9 +357,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(listSubscriptionsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project", String.valueOf(request.getProject())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); }) .build(); GrpcCallSettings deleteSubscriptionTransportSettings = @@ -367,9 +367,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(deleteSubscriptionMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); }) .build(); GrpcCallSettings modifyAckDeadlineTransportSettings = @@ -377,9 +377,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(modifyAckDeadlineMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); }) .build(); GrpcCallSettings acknowledgeTransportSettings = @@ -387,9 +387,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(acknowledgeMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); }) .build(); GrpcCallSettings pullTransportSettings = @@ -397,9 +397,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(pullMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); }) .build(); GrpcCallSettings streamingPullTransportSettings = @@ -411,9 +411,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(modifyPushConfigMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); }) .build(); GrpcCallSettings getSnapshotTransportSettings = @@ -421,9 +421,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(getSnapshotMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("snapshot", String.valueOf(request.getSnapshot())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("snapshot", String.valueOf(request.getSnapshot())); + return builder.build(); }) .build(); GrpcCallSettings listSnapshotsTransportSettings = @@ -431,9 +431,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(listSnapshotsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("project", String.valueOf(request.getProject())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); }) .build(); GrpcCallSettings createSnapshotTransportSettings = @@ -441,9 +441,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(createSnapshotMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); }) .build(); GrpcCallSettings updateSnapshotTransportSettings = @@ -451,9 +451,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(updateSnapshotMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("snapshot.name", String.valueOf(request.getSnapshot().getName())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("snapshot.name", String.valueOf(request.getSnapshot().getName())); + return builder.build(); }) .build(); GrpcCallSettings deleteSnapshotTransportSettings = @@ -461,9 +461,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(deleteSnapshotMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("snapshot", String.valueOf(request.getSnapshot())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("snapshot", String.valueOf(request.getSnapshot())); + return builder.build(); }) .build(); GrpcCallSettings seekTransportSettings = @@ -471,9 +471,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(seekMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("subscription", String.valueOf(request.getSubscription())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); }) .build(); GrpcCallSettings setIamPolicyTransportSettings = @@ -481,9 +481,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = @@ -491,9 +491,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); }) .build(); GrpcCallSettings @@ -502,9 +502,9 @@ protected GrpcSubscriberStub( .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); }) .build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java index a6ee5b58b9b5..cd5b6e6f2eaa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java index f7a458447ba1..5ae0dfc9e2d2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,6 +31,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -577,26 +578,56 @@ protected HttpJsonPublisherStub( HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createTopicMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings updateTopicTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateTopicMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic.name", String.valueOf(request.getTopic().getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings publishTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(publishMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic", String.valueOf(request.getTopic())); + return builder.build(); + }) .build(); HttpJsonCallSettings getTopicTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getTopicMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic", String.valueOf(request.getTopic())); + return builder.build(); + }) .build(); HttpJsonCallSettings listTopicsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listTopicsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) .build(); HttpJsonCallSettings listTopicSubscriptionsTransportSettings = @@ -604,39 +635,81 @@ protected HttpJsonPublisherStub( .newBuilder() .setMethodDescriptor(listTopicSubscriptionsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic", String.valueOf(request.getTopic())); + return builder.build(); + }) .build(); HttpJsonCallSettings listTopicSnapshotsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listTopicSnapshotsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic", String.valueOf(request.getTopic())); + return builder.build(); + }) .build(); HttpJsonCallSettings deleteTopicTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteTopicMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("topic", String.valueOf(request.getTopic())); + return builder.build(); + }) .build(); HttpJsonCallSettings detachSubscriptionTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(detachSubscriptionMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); + }) .build(); HttpJsonCallSettings setIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) .build(); this.createTopicCallable = diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java index 3eef08b20a92..c1db412c1914 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java index c3a607bf6df4..186405096db9 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,6 +30,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -622,16 +623,34 @@ protected HttpJsonSchemaServiceStub( HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createSchemaMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings getSchemaTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getSchemaMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings listSchemasTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listSchemasMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings listSchemaRevisionsTransportSettings = @@ -639,55 +658,115 @@ protected HttpJsonSchemaServiceStub( .newBuilder() .setMethodDescriptor(listSchemaRevisionsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings commitSchemaTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(commitSchemaMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings rollbackSchemaTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(rollbackSchemaMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings deleteSchemaRevisionTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteSchemaRevisionMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings deleteSchemaTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteSchemaMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings validateSchemaTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(validateSchemaMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings validateMessageTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(validateMessageMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) .build(); HttpJsonCallSettings setIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) .build(); this.createSchemaCallable = diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java index 5eb399a0ea27..7acbff90fa04 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index fb9b368a8f6b..010a08bace8c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,7 +29,9 @@ import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.UnaryCallable; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -55,6 +57,8 @@ import com.google.pubsub.v1.SeekRequest; import com.google.pubsub.v1.SeekResponse; import com.google.pubsub.v1.Snapshot; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; import com.google.pubsub.v1.Subscription; import com.google.pubsub.v1.UpdateSnapshotRequest; import com.google.pubsub.v1.UpdateSubscriptionRequest; @@ -810,95 +814,204 @@ protected HttpJsonSubscriberStub( HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createSubscriptionMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings getSubscriptionTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getSubscriptionMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); + }) .build(); HttpJsonCallSettings updateSubscriptionTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateSubscriptionMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "subscription.name", String.valueOf(request.getSubscription().getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings listSubscriptionsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listSubscriptionsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) .build(); HttpJsonCallSettings deleteSubscriptionTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteSubscriptionMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); + }) .build(); HttpJsonCallSettings modifyAckDeadlineTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(modifyAckDeadlineMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); + }) .build(); HttpJsonCallSettings acknowledgeTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(acknowledgeMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); + }) .build(); HttpJsonCallSettings pullTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(pullMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); + }) .build(); HttpJsonCallSettings modifyPushConfigTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(modifyPushConfigMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); + }) .build(); HttpJsonCallSettings getSnapshotTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getSnapshotMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("snapshot", String.valueOf(request.getSnapshot())); + return builder.build(); + }) .build(); HttpJsonCallSettings listSnapshotsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listSnapshotsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) .build(); HttpJsonCallSettings createSnapshotTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createSnapshotMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings updateSnapshotTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateSnapshotMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("snapshot.name", String.valueOf(request.getSnapshot().getName())); + return builder.build(); + }) .build(); HttpJsonCallSettings deleteSnapshotTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteSnapshotMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("snapshot", String.valueOf(request.getSnapshot())); + return builder.build(); + }) .build(); HttpJsonCallSettings seekTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(seekMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("subscription", String.valueOf(request.getSubscription())); + return builder.build(); + }) .build(); HttpJsonCallSettings setIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) .build(); HttpJsonCallSettings getIamPolicyTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) .build(); HttpJsonCallSettings testIamPermissionsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) .build(); this.createSubscriptionCallable = @@ -1108,6 +1221,13 @@ public UnaryCallable getIamPolicyCallable() { return testIamPermissionsCallable; } + @Override + public BidiStreamingCallable + streamingPullCallable() { + throw new UnsupportedOperationException( + "Not implemented: streamingPullCallable(). REST transport is not implemented for this method yet."); + } + @Override public final void close() { try { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index c26fe479c05d..5b8ed6112a56 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index c04234a61296..16cdef839499 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java index 01446db220e0..ab52003751aa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 240ca05d0e9f..3be71b72af36 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,6 +72,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.threeten.bp.Duration; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -476,6 +477,9 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); + definitions.put( + "retry_policy_7_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -485,6 +489,17 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_7_params", settings); settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); definitions.put("no_retry_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); @@ -593,53 +608,53 @@ private static Builder createHttpJsonDefault() { private static Builder initDefaults(Builder builder) { builder .createSchemaSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder .getSchemaSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder .listSchemasSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder .listSchemaRevisionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder .commitSchemaSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder .rollbackSchemaSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder .deleteSchemaRevisionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder .deleteSchemaSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder .validateSchemaSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder .validateMessageSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_7_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_7_params")); builder .setIamPolicySettings() diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index 8eeab5261a1f..f04f4acd5dca 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index d0b4ca61cdce..eaeb42a9ba5d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -535,13 +535,21 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_4_codes", + "retry_policy_5_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNKNOWN, StatusCode.Code.ABORTED, StatusCode.Code.UNAVAILABLE))); definitions.put( - "retry_policy_5_codes", + "retry_policy_6_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_4_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNKNOWN, + StatusCode.Code.ABORTED, + StatusCode.Code.UNAVAILABLE, + StatusCode.Code.INTERNAL))); definitions.put( "retry_policy_3_codes", ImmutableSet.copyOf( @@ -569,7 +577,7 @@ public static class Builder extends StubSettings.Builder()) - .setEnableMessageOrdering(true) - .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) - .setFilter("filter-1274492040") - .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) - .setRetryPolicy(RetryPolicy.newBuilder().build()) - .setDetached(true) - .setEnableExactlyOnceDelivery(true) - .setTopicMessageRetentionDuration(Duration.newBuilder().build()) - .build()) - .setUpdateMask(FieldMask.newBuilder().build()) + Subscription subscription = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Subscription actualResponse = client.updateSubscription(request); + Subscription actualResponse = client.updateSubscription(subscription, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -566,30 +570,28 @@ public void updateSubscriptionExceptionTest() throws Exception { mockService.addException(exception); try { - UpdateSubscriptionRequest request = - UpdateSubscriptionRequest.newBuilder() - .setSubscription( - Subscription.newBuilder() - .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) - .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) - .setPushConfig(PushConfig.newBuilder().build()) - .setBigqueryConfig(BigQueryConfig.newBuilder().build()) - .setAckDeadlineSeconds(2135351438) - .setRetainAckedMessages(true) - .setMessageRetentionDuration(Duration.newBuilder().build()) - .putAllLabels(new HashMap()) - .setEnableMessageOrdering(true) - .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) - .setFilter("filter-1274492040") - .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) - .setRetryPolicy(RetryPolicy.newBuilder().build()) - .setDetached(true) - .setEnableExactlyOnceDelivery(true) - .setTopicMessageRetentionDuration(Duration.newBuilder().build()) - .build()) - .setUpdateMask(FieldMask.newBuilder().build()) + Subscription subscription = + Subscription.newBuilder() + .setName(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setPushConfig(PushConfig.newBuilder().build()) + .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setAckDeadlineSeconds(2135351438) + .setRetainAckedMessages(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) + .putAllLabels(new HashMap()) + .setEnableMessageOrdering(true) + .setExpirationPolicy(ExpirationPolicy.newBuilder().build()) + .setFilter("filter-1274492040") + .setDeadLetterPolicy(DeadLetterPolicy.newBuilder().build()) + .setRetryPolicy(RetryPolicy.newBuilder().build()) + .setDetached(true) + .setEnableExactlyOnceDelivery(true) + .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .build(); - client.updateSubscription(request); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSubscription(subscription, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1619,19 +1621,16 @@ public void updateSnapshotTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - UpdateSnapshotRequest request = - UpdateSnapshotRequest.newBuilder() - .setSnapshot( - Snapshot.newBuilder() - .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) - .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) - .setExpireTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .build()) - .setUpdateMask(FieldMask.newBuilder().build()) + Snapshot snapshot = + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Snapshot actualResponse = client.updateSnapshot(request); + Snapshot actualResponse = client.updateSnapshot(snapshot, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1657,18 +1656,15 @@ public void updateSnapshotExceptionTest() throws Exception { mockService.addException(exception); try { - UpdateSnapshotRequest request = - UpdateSnapshotRequest.newBuilder() - .setSnapshot( - Snapshot.newBuilder() - .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) - .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) - .setExpireTime(Timestamp.newBuilder().build()) - .putAllLabels(new HashMap()) - .build()) - .setUpdateMask(FieldMask.newBuilder().build()) + Snapshot snapshot = + Snapshot.newBuilder() + .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) + .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .setExpireTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) .build(); - client.updateSnapshot(request); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSnapshot(snapshot, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index f70afe778f12..c636cdcd3cc1 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,6 +47,7 @@ import com.google.protobuf.Timestamp; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.BigQueryConfig; +import com.google.pubsub.v1.CloudStorageConfig; import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeadLetterPolicy; import com.google.pubsub.v1.DeleteSnapshotRequest; @@ -143,6 +144,7 @@ public void createSubscriptionTest() throws Exception { .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -206,6 +208,7 @@ public void createSubscriptionTest2() throws Exception { .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -269,6 +272,7 @@ public void createSubscriptionTest3() throws Exception { .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -332,6 +336,7 @@ public void createSubscriptionTest4() throws Exception { .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -395,6 +400,7 @@ public void getSubscriptionTest() throws Exception { .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -448,6 +454,7 @@ public void getSubscriptionTest2() throws Exception { .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -501,6 +508,7 @@ public void updateSubscriptionTest() throws Exception { .setTopic(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) + .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -516,21 +524,18 @@ public void updateSubscriptionTest() throws Exception { .build(); mockSubscriber.addResponse(expectedResponse); - UpdateSubscriptionRequest request = - UpdateSubscriptionRequest.newBuilder() - .setSubscription(Subscription.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); + Subscription subscription = Subscription.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Subscription actualResponse = client.updateSubscription(request); + Subscription actualResponse = client.updateSubscription(subscription, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); UpdateSubscriptionRequest actualRequest = ((UpdateSubscriptionRequest) actualRequests.get(0)); - Assert.assertEquals(request.getSubscription(), actualRequest.getSubscription()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertEquals(subscription, actualRequest.getSubscription()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -543,12 +548,9 @@ public void updateSubscriptionExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - UpdateSubscriptionRequest request = - UpdateSubscriptionRequest.newBuilder() - .setSubscription(Subscription.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateSubscription(request); + Subscription subscription = Subscription.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSubscription(subscription, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1533,21 +1535,18 @@ public void updateSnapshotTest() throws Exception { .build(); mockSubscriber.addResponse(expectedResponse); - UpdateSnapshotRequest request = - UpdateSnapshotRequest.newBuilder() - .setSnapshot(Snapshot.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); + Snapshot snapshot = Snapshot.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Snapshot actualResponse = client.updateSnapshot(request); + Snapshot actualResponse = client.updateSnapshot(snapshot, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockSubscriber.getRequests(); Assert.assertEquals(1, actualRequests.size()); UpdateSnapshotRequest actualRequest = ((UpdateSnapshotRequest) actualRequests.get(0)); - Assert.assertEquals(request.getSnapshot(), actualRequest.getSnapshot()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertEquals(snapshot, actualRequest.getSnapshot()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1560,12 +1559,9 @@ public void updateSnapshotExceptionTest() throws Exception { mockSubscriber.addException(exception); try { - UpdateSnapshotRequest request = - UpdateSnapshotRequest.newBuilder() - .setSnapshot(Snapshot.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateSnapshot(request); + Snapshot snapshot = Snapshot.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSnapshot(snapshot, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index a41d12d64bf1..c18152b5d5ad 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -57,7 +57,6 @@ import com.google.pubsub.v1.SubscriptionName; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; -import com.google.pubsub.v1.UpdateTopicRequest; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; @@ -219,22 +218,19 @@ public void updateTopicTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - UpdateTopicRequest request = - UpdateTopicRequest.newBuilder() - .setTopic( - Topic.newBuilder() - .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) - .putAllLabels(new HashMap()) - .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") - .setSchemaSettings(SchemaSettings.newBuilder().build()) - .setSatisfiesPzs(true) - .setMessageRetentionDuration(Duration.newBuilder().build()) - .build()) - .setUpdateMask(FieldMask.newBuilder().build()) + Topic topic = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Topic actualResponse = client.updateTopic(request); + Topic actualResponse = client.updateTopic(topic, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -260,21 +256,18 @@ public void updateTopicExceptionTest() throws Exception { mockService.addException(exception); try { - UpdateTopicRequest request = - UpdateTopicRequest.newBuilder() - .setTopic( - Topic.newBuilder() - .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) - .putAllLabels(new HashMap()) - .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") - .setSchemaSettings(SchemaSettings.newBuilder().build()) - .setSatisfiesPzs(true) - .setMessageRetentionDuration(Duration.newBuilder().build()) - .build()) - .setUpdateMask(FieldMask.newBuilder().build()) + Topic topic = + Topic.newBuilder() + .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) + .putAllLabels(new HashMap()) + .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setSchemaSettings(SchemaSettings.newBuilder().build()) + .setSatisfiesPzs(true) + .setMessageRetentionDuration(Duration.newBuilder().build()) .build(); - client.updateTopic(request); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTopic(topic, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index a28995e2ad2d..1693f7e40b22 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -220,21 +220,18 @@ public void updateTopicTest() throws Exception { .build(); mockPublisher.addResponse(expectedResponse); - UpdateTopicRequest request = - UpdateTopicRequest.newBuilder() - .setTopic(Topic.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); + Topic topic = Topic.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Topic actualResponse = client.updateTopic(request); + Topic actualResponse = client.updateTopic(topic, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockPublisher.getRequests(); Assert.assertEquals(1, actualRequests.size()); UpdateTopicRequest actualRequest = ((UpdateTopicRequest) actualRequests.get(0)); - Assert.assertEquals(request.getTopic(), actualRequest.getTopic()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertEquals(topic, actualRequest.getTopic()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -247,12 +244,9 @@ public void updateTopicExceptionTest() throws Exception { mockPublisher.addException(exception); try { - UpdateTopicRequest request = - UpdateTopicRequest.newBuilder() - .setTopic(Topic.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateTopic(request); + Topic topic = Topic.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTopic(topic, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 638e841d7843..6dd738dad500 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -458,7 +458,7 @@ public PublisherFutureStub newStub( * messages to a topic. *
    */ - public abstract static class PublisherImplBase implements io.grpc.BindableService { + public interface AsyncService { /** * @@ -468,7 +468,7 @@ public abstract static class PublisherImplBase implements io.grpc.BindableServic * (https://cloud.google.com/pubsub/docs/admin#resource_names). *
    */ - public void createTopic( + default void createTopic( com.google.pubsub.v1.Topic request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -483,7 +483,7 @@ public void createTopic( * topic are not modifiable. *
    */ - public void updateTopic( + default void updateTopic( com.google.pubsub.v1.UpdateTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -498,7 +498,7 @@ public void updateTopic( * does not exist. *
    */ - public void publish( + default void publish( com.google.pubsub.v1.PublishRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPublishMethod(), responseObserver); @@ -511,7 +511,7 @@ public void publish( * Gets the configuration of a topic. *
    */ - public void getTopic( + default void getTopic( com.google.pubsub.v1.GetTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTopicMethod(), responseObserver); @@ -524,7 +524,7 @@ public void getTopic( * Lists matching topics. *
    */ - public void listTopics( + default void listTopics( com.google.pubsub.v1.ListTopicsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTopicsMethod(), responseObserver); @@ -537,7 +537,7 @@ public void listTopics( * Lists the names of the attached subscriptions on this topic. *
    */ - public void listTopicSubscriptions( + default void listTopicSubscriptions( com.google.pubsub.v1.ListTopicSubscriptionsRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -556,7 +556,7 @@ public void listTopicSubscriptions( * state captured by a snapshot. *
    */ - public void listTopicSnapshots( + default void listTopicSnapshots( com.google.pubsub.v1.ListTopicSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -575,7 +575,7 @@ public void listTopicSnapshots( * not deleted, but their `topic` field is set to `_deleted-topic_`. *
    */ - public void deleteTopic( + default void deleteTopic( com.google.pubsub.v1.DeleteTopicRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -592,79 +592,33 @@ public void deleteTopic( * subscription, pushes to the endpoint will stop. *
    */ - public void detachSubscription( + default void detachSubscription( com.google.pubsub.v1.DetachSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDetachSubscriptionMethod(), responseObserver); } + } + + /** + * Base class for the server implementation of the service Publisher. + * + *
    +   * The service that an application uses to manipulate topics, and to send
    +   * messages to a topic.
    +   * 
    + */ + public abstract static class PublisherImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - this, METHODID_CREATE_TOPIC))) - .addMethod( - getUpdateTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>( - this, METHODID_UPDATE_TOPIC))) - .addMethod( - getPublishMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>( - this, METHODID_PUBLISH))) - .addMethod( - getGetTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>( - this, METHODID_GET_TOPIC))) - .addMethod( - getListTopicsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicsRequest, - com.google.pubsub.v1.ListTopicsResponse>(this, METHODID_LIST_TOPICS))) - .addMethod( - getListTopicSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicSubscriptionsRequest, - com.google.pubsub.v1.ListTopicSubscriptionsResponse>( - this, METHODID_LIST_TOPIC_SUBSCRIPTIONS))) - .addMethod( - getListTopicSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListTopicSnapshotsRequest, - com.google.pubsub.v1.ListTopicSnapshotsResponse>( - this, METHODID_LIST_TOPIC_SNAPSHOTS))) - .addMethod( - getDeleteTopicMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_TOPIC))) - .addMethod( - getDetachSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DetachSubscriptionRequest, - com.google.pubsub.v1.DetachSubscriptionResponse>( - this, METHODID_DETACH_SUBSCRIPTION))) - .build(); + return PublisherGrpc.bindService(this); } } /** - * + * A stub to allow clients to do asynchronous rpc calls to service Publisher. * *
        * The service that an application uses to manipulate topics, and to send
    @@ -838,7 +792,7 @@ public void detachSubscription(
       }
     
       /**
    -   *
    +   * A stub to allow clients to do synchronous rpc calls to service Publisher.
        *
        * 
        * The service that an application uses to manipulate topics, and to send
    @@ -986,7 +940,7 @@ public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription(
       }
     
       /**
    -   *
    +   * A stub to allow clients to do ListenableFuture-style rpc calls to service Publisher.
        *
        * 
        * The service that an application uses to manipulate topics, and to send
    @@ -1155,10 +1109,10 @@ private static final class MethodHandlers
               io.grpc.stub.ServerCalls.ServerStreamingMethod,
               io.grpc.stub.ServerCalls.ClientStreamingMethod,
               io.grpc.stub.ServerCalls.BidiStreamingMethod {
    -    private final PublisherImplBase serviceImpl;
    +    private final AsyncService serviceImpl;
         private final int methodId;
     
    -    MethodHandlers(PublisherImplBase serviceImpl, int methodId) {
    +    MethodHandlers(AsyncService serviceImpl, int methodId) {
           this.serviceImpl = serviceImpl;
           this.methodId = methodId;
         }
    @@ -1232,6 +1186,67 @@ public io.grpc.stub.StreamObserver invoke(
         }
       }
     
    +  public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
    +    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
    +        .addMethod(
    +            getCreateTopicMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers(
    +                    service, METHODID_CREATE_TOPIC)))
    +        .addMethod(
    +            getUpdateTopicMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic>(
    +                    service, METHODID_UPDATE_TOPIC)))
    +        .addMethod(
    +            getPublishMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse>(
    +                    service, METHODID_PUBLISH)))
    +        .addMethod(
    +            getGetTopicMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic>(
    +                    service, METHODID_GET_TOPIC)))
    +        .addMethod(
    +            getListTopicsMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.ListTopicsRequest,
    +                    com.google.pubsub.v1.ListTopicsResponse>(service, METHODID_LIST_TOPICS)))
    +        .addMethod(
    +            getListTopicSubscriptionsMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.ListTopicSubscriptionsRequest,
    +                    com.google.pubsub.v1.ListTopicSubscriptionsResponse>(
    +                    service, METHODID_LIST_TOPIC_SUBSCRIPTIONS)))
    +        .addMethod(
    +            getListTopicSnapshotsMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.ListTopicSnapshotsRequest,
    +                    com.google.pubsub.v1.ListTopicSnapshotsResponse>(
    +                    service, METHODID_LIST_TOPIC_SNAPSHOTS)))
    +        .addMethod(
    +            getDeleteTopicMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty>(
    +                    service, METHODID_DELETE_TOPIC)))
    +        .addMethod(
    +            getDetachSubscriptionMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.DetachSubscriptionRequest,
    +                    com.google.pubsub.v1.DetachSubscriptionResponse>(
    +                    service, METHODID_DETACH_SUBSCRIPTION)))
    +        .build();
    +  }
    +
       private abstract static class PublisherBaseDescriptorSupplier
           implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
               io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
    index 9921f175e02d..db5994ee198f 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java
    @@ -502,7 +502,7 @@ public SchemaServiceFutureStub newStub(
        * Service for doing schema-related operations.
        * 
    */ - public abstract static class SchemaServiceImplBase implements io.grpc.BindableService { + public interface AsyncService { /** * @@ -511,7 +511,7 @@ public abstract static class SchemaServiceImplBase implements io.grpc.BindableSe * Creates a schema. *
    */ - public void createSchema( + default void createSchema( com.google.pubsub.v1.CreateSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -525,7 +525,7 @@ public void createSchema( * Gets a schema. *
    */ - public void getSchema( + default void getSchema( com.google.pubsub.v1.GetSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); @@ -538,7 +538,7 @@ public void getSchema( * Lists schemas in a project. *
    */ - public void listSchemas( + default void listSchemas( com.google.pubsub.v1.ListSchemasRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -552,7 +552,7 @@ public void listSchemas( * Lists all schema revisions for the named schema. *
    */ - public void listSchemaRevisions( + default void listSchemaRevisions( com.google.pubsub.v1.ListSchemaRevisionsRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -567,7 +567,7 @@ public void listSchemaRevisions( * Commits a new schema revision to an existing schema. *
    */ - public void commitSchema( + default void commitSchema( com.google.pubsub.v1.CommitSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -581,7 +581,7 @@ public void commitSchema( * Creates a new schema revision that is a copy of the provided revision_id. *
    */ - public void rollbackSchema( + default void rollbackSchema( com.google.pubsub.v1.RollbackSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -595,7 +595,7 @@ public void rollbackSchema( * Deletes a specific schema revision. *
    */ - public void deleteSchemaRevision( + default void deleteSchemaRevision( com.google.pubsub.v1.DeleteSchemaRevisionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -609,7 +609,7 @@ public void deleteSchemaRevision( * Deletes a schema. *
    */ - public void deleteSchema( + default void deleteSchema( com.google.pubsub.v1.DeleteSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -623,7 +623,7 @@ public void deleteSchema( * Validates a schema. *
    */ - public void validateSchema( + default void validateSchema( com.google.pubsub.v1.ValidateSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -637,85 +637,33 @@ public void validateSchema( * Validates a message against a schema. *
    */ - public void validateMessage( + default void validateMessage( com.google.pubsub.v1.ValidateMessageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getValidateMessageMethod(), responseObserver); } + } + + /** + * Base class for the server implementation of the service SchemaService. + * + *
    +   * Service for doing schema-related operations.
    +   * 
    + */ + public abstract static class SchemaServiceImplBase + implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema>( - this, METHODID_CREATE_SCHEMA))) - .addMethod( - getGetSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema>( - this, METHODID_GET_SCHEMA))) - .addMethod( - getListSchemasMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSchemasRequest, - com.google.pubsub.v1.ListSchemasResponse>(this, METHODID_LIST_SCHEMAS))) - .addMethod( - getListSchemaRevisionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSchemaRevisionsRequest, - com.google.pubsub.v1.ListSchemaRevisionsResponse>( - this, METHODID_LIST_SCHEMA_REVISIONS))) - .addMethod( - getCommitSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.CommitSchemaRequest, com.google.pubsub.v1.Schema>( - this, METHODID_COMMIT_SCHEMA))) - .addMethod( - getRollbackSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.RollbackSchemaRequest, com.google.pubsub.v1.Schema>( - this, METHODID_ROLLBACK_SCHEMA))) - .addMethod( - getDeleteSchemaRevisionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSchemaRevisionRequest, - com.google.pubsub.v1.Schema>(this, METHODID_DELETE_SCHEMA_REVISION))) - .addMethod( - getDeleteSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SCHEMA))) - .addMethod( - getValidateSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ValidateSchemaRequest, - com.google.pubsub.v1.ValidateSchemaResponse>(this, METHODID_VALIDATE_SCHEMA))) - .addMethod( - getValidateMessageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ValidateMessageRequest, - com.google.pubsub.v1.ValidateMessageResponse>( - this, METHODID_VALIDATE_MESSAGE))) - .build(); + return SchemaServiceGrpc.bindService(this); } } /** - * + * A stub to allow clients to do asynchronous rpc calls to service SchemaService. * *
        * Service for doing schema-related operations.
    @@ -894,7 +842,7 @@ public void validateMessage(
       }
     
       /**
    -   *
    +   * A stub to allow clients to do synchronous rpc calls to service SchemaService.
        *
        * 
        * Service for doing schema-related operations.
    @@ -1043,7 +991,7 @@ public com.google.pubsub.v1.ValidateMessageResponse validateMessage(
       }
     
       /**
    -   *
    +   * A stub to allow clients to do ListenableFuture-style rpc calls to service SchemaService.
        *
        * 
        * Service for doing schema-related operations.
    @@ -1212,10 +1160,10 @@ private static final class MethodHandlers
               io.grpc.stub.ServerCalls.ServerStreamingMethod,
               io.grpc.stub.ServerCalls.ClientStreamingMethod,
               io.grpc.stub.ServerCalls.BidiStreamingMethod {
    -    private final SchemaServiceImplBase serviceImpl;
    +    private final AsyncService serviceImpl;
         private final int methodId;
     
    -    MethodHandlers(SchemaServiceImplBase serviceImpl, int methodId) {
    +    MethodHandlers(AsyncService serviceImpl, int methodId) {
           this.serviceImpl = serviceImpl;
           this.methodId = methodId;
         }
    @@ -1294,6 +1242,74 @@ public io.grpc.stub.StreamObserver invoke(
         }
       }
     
    +  public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
    +    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
    +        .addMethod(
    +            getCreateSchemaMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema>(
    +                    service, METHODID_CREATE_SCHEMA)))
    +        .addMethod(
    +            getGetSchemaMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema>(
    +                    service, METHODID_GET_SCHEMA)))
    +        .addMethod(
    +            getListSchemasMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.ListSchemasRequest,
    +                    com.google.pubsub.v1.ListSchemasResponse>(service, METHODID_LIST_SCHEMAS)))
    +        .addMethod(
    +            getListSchemaRevisionsMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.ListSchemaRevisionsRequest,
    +                    com.google.pubsub.v1.ListSchemaRevisionsResponse>(
    +                    service, METHODID_LIST_SCHEMA_REVISIONS)))
    +        .addMethod(
    +            getCommitSchemaMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.CommitSchemaRequest, com.google.pubsub.v1.Schema>(
    +                    service, METHODID_COMMIT_SCHEMA)))
    +        .addMethod(
    +            getRollbackSchemaMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.RollbackSchemaRequest, com.google.pubsub.v1.Schema>(
    +                    service, METHODID_ROLLBACK_SCHEMA)))
    +        .addMethod(
    +            getDeleteSchemaRevisionMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.DeleteSchemaRevisionRequest, com.google.pubsub.v1.Schema>(
    +                    service, METHODID_DELETE_SCHEMA_REVISION)))
    +        .addMethod(
    +            getDeleteSchemaMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty>(
    +                    service, METHODID_DELETE_SCHEMA)))
    +        .addMethod(
    +            getValidateSchemaMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.ValidateSchemaRequest,
    +                    com.google.pubsub.v1.ValidateSchemaResponse>(
    +                    service, METHODID_VALIDATE_SCHEMA)))
    +        .addMethod(
    +            getValidateMessageMethod(),
    +            io.grpc.stub.ServerCalls.asyncUnaryCall(
    +                new MethodHandlers<
    +                    com.google.pubsub.v1.ValidateMessageRequest,
    +                    com.google.pubsub.v1.ValidateMessageResponse>(
    +                    service, METHODID_VALIDATE_MESSAGE)))
    +        .build();
    +  }
    +
       private abstract static class SchemaServiceBaseDescriptorSupplier
           implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
               io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
    index de5a11c89eca..a18f965bfb96 100644
    --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
    +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java
    @@ -735,7 +735,7 @@ public SubscriberFutureStub newStub(
        * establishing a bi-directional stream using the `StreamingPull` method.
        * 
    */ - public abstract static class SubscriberImplBase implements io.grpc.BindableService { + public interface AsyncService { /** * @@ -753,7 +753,7 @@ public abstract static class SubscriberImplBase implements io.grpc.BindableServi * API requests, you must specify a name in the request. *
    */ - public void createSubscription( + default void createSubscription( com.google.pubsub.v1.Subscription request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -767,7 +767,7 @@ public void createSubscription( * Gets the configuration details of a subscription. *
    */ - public void getSubscription( + default void getSubscription( com.google.pubsub.v1.GetSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -782,7 +782,7 @@ public void getSubscription( * subscription, such as its topic, are not modifiable. *
    */ - public void updateSubscription( + default void updateSubscription( com.google.pubsub.v1.UpdateSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -796,7 +796,7 @@ public void updateSubscription( * Lists matching subscriptions. *
    */ - public void listSubscriptions( + default void listSubscriptions( com.google.pubsub.v1.ListSubscriptionsRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -815,7 +815,7 @@ public void listSubscriptions( * subscription or its topic unless the same topic is specified. *
    */ - public void deleteSubscription( + default void deleteSubscription( com.google.pubsub.v1.DeleteSubscriptionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -833,7 +833,7 @@ public void deleteSubscription( * subscription-level `ackDeadlineSeconds` used for subsequent messages. *
    */ - public void modifyAckDeadline( + default void modifyAckDeadline( com.google.pubsub.v1.ModifyAckDeadlineRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -852,7 +852,7 @@ public void modifyAckDeadline( * than once will not result in an error. *
    */ - public void acknowledge( + default void acknowledge( com.google.pubsub.v1.AcknowledgeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -863,12 +863,10 @@ public void acknowledge( * * *
    -     * Pulls messages from the server. The server may return `UNAVAILABLE` if
    -     * there are too many concurrent pull requests pending for the given
    -     * subscription.
    +     * Pulls messages from the server.
          * 
    */ - public void pull( + default void pull( com.google.pubsub.v1.PullRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPullMethod(), responseObserver); @@ -887,7 +885,7 @@ public void pull( * underlying RPC channel. *
    */ - public io.grpc.stub.StreamObserver streamingPull( + default io.grpc.stub.StreamObserver streamingPull( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( getStreamingPullMethod(), responseObserver); @@ -904,7 +902,7 @@ public io.grpc.stub.StreamObserver st * continuously through the call regardless of changes to the `PushConfig`. *
    */ - public void modifyPushConfig( + default void modifyPushConfig( com.google.pubsub.v1.ModifyPushConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -916,13 +914,13 @@ public void modifyPushConfig( * *
          * Gets the configuration details of a snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ - public void getSnapshot( + default void getSnapshot( com.google.pubsub.v1.GetSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -940,7 +938,7 @@ public void getSnapshot( * state captured by a snapshot. *
    */ - public void listSnapshots( + default void listSnapshots( com.google.pubsub.v1.ListSnapshotsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -969,7 +967,7 @@ public void listSnapshots( * REST API requests, you must specify a name in the request. *
    */ - public void createSnapshot( + default void createSnapshot( com.google.pubsub.v1.CreateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -981,14 +979,13 @@ public void createSnapshot( * *
          * Updates an existing snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ - public void updateSnapshot( + default void updateSnapshot( com.google.pubsub.v1.UpdateSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -1010,7 +1007,7 @@ public void updateSnapshot( * snapshot or its subscription, unless the same subscription is specified. *
    */ - public void deleteSnapshot( + default void deleteSnapshot( com.google.pubsub.v1.DeleteSnapshotRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( @@ -1030,118 +1027,32 @@ public void deleteSnapshot( * snapshot must be on the same topic. *
    */ - public void seek( + default void seek( com.google.pubsub.v1.SeekRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSeekMethod(), responseObserver); } + } + + /** + * Base class for the server implementation of the service Subscriber. + * + *
    +   * 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.
    +   * 
    + */ + public abstract static class SubscriberImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>( - this, METHODID_CREATE_SUBSCRIPTION))) - .addMethod( - getGetSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSubscriptionRequest, - com.google.pubsub.v1.Subscription>(this, METHODID_GET_SUBSCRIPTION))) - .addMethod( - getUpdateSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateSubscriptionRequest, - com.google.pubsub.v1.Subscription>(this, METHODID_UPDATE_SUBSCRIPTION))) - .addMethod( - getListSubscriptionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSubscriptionsRequest, - com.google.pubsub.v1.ListSubscriptionsResponse>( - this, METHODID_LIST_SUBSCRIPTIONS))) - .addMethod( - getDeleteSubscriptionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SUBSCRIPTION))) - .addMethod( - getModifyAckDeadlineMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>( - this, METHODID_MODIFY_ACK_DEADLINE))) - .addMethod( - getAcknowledgeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>( - this, METHODID_ACKNOWLEDGE))) - .addMethod( - getPullMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>( - this, METHODID_PULL))) - .addMethod( - getStreamingPullMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.pubsub.v1.StreamingPullRequest, - com.google.pubsub.v1.StreamingPullResponse>(this, METHODID_STREAMING_PULL))) - .addMethod( - getModifyPushConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>( - this, METHODID_MODIFY_PUSH_CONFIG))) - .addMethod( - getGetSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>( - this, METHODID_GET_SNAPSHOT))) - .addMethod( - getListSnapshotsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.ListSnapshotsRequest, - com.google.pubsub.v1.ListSnapshotsResponse>(this, METHODID_LIST_SNAPSHOTS))) - .addMethod( - getCreateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>( - this, METHODID_CREATE_SNAPSHOT))) - .addMethod( - getUpdateSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>( - this, METHODID_UPDATE_SNAPSHOT))) - .addMethod( - getDeleteSnapshotMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SNAPSHOT))) - .addMethod( - getSeekMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>( - this, METHODID_SEEK))) - .build(); + return SubscriberGrpc.bindService(this); } } /** - * + * A stub to allow clients to do asynchronous rpc calls to service Subscriber. * *
        * The service that an application uses to manipulate subscriptions and to
    @@ -1299,9 +1210,7 @@ public void acknowledge(
          *
          *
          * 
    -     * Pulls messages from the server. The server may return `UNAVAILABLE` if
    -     * there are too many concurrent pull requests pending for the given
    -     * subscription.
    +     * Pulls messages from the server.
          * 
    */ public void pull( @@ -1355,10 +1264,10 @@ public void modifyPushConfig( * *
          * Gets the configuration details of a snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public void getSnapshot( @@ -1426,11 +1335,10 @@ public void createSnapshot( * *
          * Updates an existing snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public void updateSnapshot( @@ -1488,7 +1396,7 @@ public void seek( } /** - * + * A stub to allow clients to do synchronous rpc calls to service Subscriber. * *
        * The service that an application uses to manipulate subscriptions and to
    @@ -1625,9 +1533,7 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq
          *
          *
          * 
    -     * Pulls messages from the server. The server may return `UNAVAILABLE` if
    -     * there are too many concurrent pull requests pending for the given
    -     * subscription.
    +     * Pulls messages from the server.
          * 
    */ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) { @@ -1657,10 +1563,10 @@ public com.google.protobuf.Empty modifyPushConfig( * *
          * Gets the configuration details of a snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public com.google.pubsub.v1.Snapshot getSnapshot( @@ -1719,11 +1625,10 @@ public com.google.pubsub.v1.Snapshot createSnapshot( * *
          * Updates an existing snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public com.google.pubsub.v1.Snapshot updateSnapshot( @@ -1773,7 +1678,7 @@ public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest r } /** - * + * A stub to allow clients to do ListenableFuture-style rpc calls to service Subscriber. * *
        * The service that an application uses to manipulate subscriptions and to
    @@ -1911,9 +1816,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
          *
          *
          * 
    -     * Pulls messages from the server. The server may return `UNAVAILABLE` if
    -     * there are too many concurrent pull requests pending for the given
    -     * subscription.
    +     * Pulls messages from the server.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -1944,10 +1847,10 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Gets the configuration details of a snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -2007,11 +1910,10 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Updates an existing snapshot. Snapshots are used in
    -     * <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
    -     * 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.
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -2083,10 +1985,10 @@ private static final class MethodHandlers io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SubscriberImplBase serviceImpl; + private final AsyncService serviceImpl; private final int methodId; - MethodHandlers(SubscriberImplBase serviceImpl, int methodId) { + MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @@ -2193,6 +2095,108 @@ public io.grpc.stub.StreamObserver invoke( } } + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription>( + service, METHODID_CREATE_SUBSCRIPTION))) + .addMethod( + getGetSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSubscriptionRequest, com.google.pubsub.v1.Subscription>( + service, METHODID_GET_SUBSCRIPTION))) + .addMethod( + getUpdateSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSubscriptionRequest, + com.google.pubsub.v1.Subscription>(service, METHODID_UPDATE_SUBSCRIPTION))) + .addMethod( + getListSubscriptionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSubscriptionsRequest, + com.google.pubsub.v1.ListSubscriptionsResponse>( + service, METHODID_LIST_SUBSCRIPTIONS))) + .addMethod( + getDeleteSubscriptionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSubscriptionRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_SUBSCRIPTION))) + .addMethod( + getModifyAckDeadlineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyAckDeadlineRequest, com.google.protobuf.Empty>( + service, METHODID_MODIFY_ACK_DEADLINE))) + .addMethod( + getAcknowledgeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.AcknowledgeRequest, com.google.protobuf.Empty>( + service, METHODID_ACKNOWLEDGE))) + .addMethod( + getPullMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.PullRequest, com.google.pubsub.v1.PullResponse>( + service, METHODID_PULL))) + .addMethod( + getStreamingPullMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.pubsub.v1.StreamingPullRequest, + com.google.pubsub.v1.StreamingPullResponse>(service, METHODID_STREAMING_PULL))) + .addMethod( + getModifyPushConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ModifyPushConfigRequest, com.google.protobuf.Empty>( + service, METHODID_MODIFY_PUSH_CONFIG))) + .addMethod( + getGetSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.GetSnapshotRequest, com.google.pubsub.v1.Snapshot>( + service, METHODID_GET_SNAPSHOT))) + .addMethod( + getListSnapshotsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.ListSnapshotsRequest, + com.google.pubsub.v1.ListSnapshotsResponse>(service, METHODID_LIST_SNAPSHOTS))) + .addMethod( + getCreateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.CreateSnapshotRequest, com.google.pubsub.v1.Snapshot>( + service, METHODID_CREATE_SNAPSHOT))) + .addMethod( + getUpdateSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.UpdateSnapshotRequest, com.google.pubsub.v1.Snapshot>( + service, METHODID_UPDATE_SNAPSHOT))) + .addMethod( + getDeleteSnapshotMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.DeleteSnapshotRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_SNAPSHOT))) + .addMethod( + getSeekMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.pubsub.v1.SeekRequest, com.google.pubsub.v1.SeekResponse>( + service, METHODID_SEEK))) + .build(); + } + private abstract static class SubscriberBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index a12bd0a5c9ad..fe1a9733ea26 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -39,7 +39,7 @@ private AcknowledgeRequest(com.google.protobuf.GeneratedMessageV3.Builder bui private AcknowledgeRequest() { subscription_ = ""; - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AcknowledgeRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; @@ -69,7 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object subscription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; /** * * @@ -124,7 +121,10 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } public static final int ACK_IDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList ackIds_; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList ackIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -404,10 +404,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; subscription_ = ""; - - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -435,17 +434,24 @@ public com.google.pubsub.v1.AcknowledgeRequest build() { public com.google.pubsub.v1.AcknowledgeRequest buildPartial() { com.google.pubsub.v1.AcknowledgeRequest result = new com.google.pubsub.v1.AcknowledgeRequest(this); - int from_bitField0_ = bitField0_; - result.subscription_ = subscription_; - if (((bitField0_ & 0x00000001) != 0)) { - ackIds_ = ackIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + if (bitField0_ != 0) { + buildPartial0(result); } - result.ackIds_ = ackIds_; onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.AcknowledgeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subscription_ = subscription_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + ackIds_.makeImmutable(); + result.ackIds_ = ackIds_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -493,12 +499,13 @@ public Builder mergeFrom(com.google.pubsub.v1.AcknowledgeRequest other) { if (other == com.google.pubsub.v1.AcknowledgeRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.ackIds_.isEmpty()) { if (ackIds_.isEmpty()) { ackIds_ = other.ackIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000002; } else { ensureAckIdsIsMutable(); ackIds_.addAll(other.ackIds_); @@ -534,7 +541,7 @@ public Builder mergeFrom( case 10: { subscription_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -633,8 +640,8 @@ public Builder setSubscription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -653,8 +660,8 @@ public Builder setSubscription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSubscription() { - subscription_ = getDefaultInstance().getSubscription(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -678,20 +685,20 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList ackIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAckIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!ackIds_.isModifiable()) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000002; } /** * @@ -707,7 +714,8 @@ private void ensureAckIdsIsMutable() { * @return A list containing the ackIds. */ public com.google.protobuf.ProtocolStringList getAckIdsList() { - return ackIds_.getUnmodifiableView(); + ackIds_.makeImmutable(); + return ackIds_; } /** * @@ -780,6 +788,7 @@ public Builder setAckIds(int index, java.lang.String value) { } ensureAckIdsIsMutable(); ackIds_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -803,6 +812,7 @@ public Builder addAckIds(java.lang.String value) { } ensureAckIdsIsMutable(); ackIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -823,6 +833,7 @@ public Builder addAckIds(java.lang.String value) { public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -840,8 +851,9 @@ public Builder addAllAckIds(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearAckIds() { - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -866,6 +878,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 8a84a3d740b4..4d2dbf75c3ec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_BigQueryConfig_descriptor; @@ -103,6 +98,11 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
          * Cannot write to the BigQuery table because of permission denied errors.
    +     * This can happen if
    +     * - Pub/Sub SA has not been granted the [appropriate BigQuery IAM
    +     * permissions](https://cloud.google.com/pubsub/docs/create-subscription#assign_bigquery_service_account)
    +     * - bigquery.googleapis.com API is not enabled for the project
    +     * ([instructions](https://cloud.google.com/service-usage/docs/enable-disable))
          * 
    * * PERMISSION_DENIED = 2; @@ -156,6 +156,11 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
          * Cannot write to the BigQuery table because of permission denied errors.
    +     * This can happen if
    +     * - Pub/Sub SA has not been granted the [appropriate BigQuery IAM
    +     * permissions](https://cloud.google.com/pubsub/docs/create-subscription#assign_bigquery_service_account)
    +     * - bigquery.googleapis.com API is not enabled for the project
    +     * ([instructions](https://cloud.google.com/service-usage/docs/enable-disable))
          * 
    * * PERMISSION_DENIED = 2; @@ -270,13 +275,15 @@ private State(int value) { } public static final int TABLE_FIELD_NUMBER = 1; - private volatile java.lang.Object table_; + + @SuppressWarnings("serial") + private volatile java.lang.Object table_ = ""; /** * * *
        * The name of the table to which to write data, of the form
    -   * {projectId}:{datasetId}.{tableId}
    +   * {projectId}.{datasetId}.{tableId}
        * 
    * * string table = 1; @@ -300,7 +307,7 @@ public java.lang.String getTable() { * *
        * The name of the table to which to write data, of the form
    -   * {projectId}:{datasetId}.{tableId}
    +   * {projectId}.{datasetId}.{tableId}
        * 
    * * string table = 1; @@ -321,7 +328,7 @@ public com.google.protobuf.ByteString getTableBytes() { } public static final int USE_TOPIC_SCHEMA_FIELD_NUMBER = 2; - private boolean useTopicSchema_; + private boolean useTopicSchema_ = false; /** * * @@ -340,7 +347,7 @@ public boolean getUseTopicSchema() { } public static final int WRITE_METADATA_FIELD_NUMBER = 3; - private boolean writeMetadata_; + private boolean writeMetadata_ = false; /** * * @@ -362,7 +369,7 @@ public boolean getWriteMetadata() { } public static final int DROP_UNKNOWN_FIELDS_FIELD_NUMBER = 4; - private boolean dropUnknownFields_; + private boolean dropUnknownFields_ = false; /** * * @@ -384,7 +391,7 @@ public boolean getDropUnknownFields() { } public static final int STATE_FIELD_NUMBER = 5; - private int state_; + private int state_ = 0; /** * * @@ -419,9 +426,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.pubsub.v1.BigQueryConfig.State getState() { - @SuppressWarnings("deprecation") com.google.pubsub.v1.BigQueryConfig.State result = - com.google.pubsub.v1.BigQueryConfig.State.valueOf(state_); + com.google.pubsub.v1.BigQueryConfig.State.forNumber(state_); return result == null ? com.google.pubsub.v1.BigQueryConfig.State.UNRECOGNIZED : result; } @@ -656,16 +662,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; table_ = ""; - useTopicSchema_ = false; - writeMetadata_ = false; - dropUnknownFields_ = false; - state_ = 0; - return this; } @@ -692,15 +694,32 @@ public com.google.pubsub.v1.BigQueryConfig build() { @java.lang.Override public com.google.pubsub.v1.BigQueryConfig buildPartial() { com.google.pubsub.v1.BigQueryConfig result = new com.google.pubsub.v1.BigQueryConfig(this); - result.table_ = table_; - result.useTopicSchema_ = useTopicSchema_; - result.writeMetadata_ = writeMetadata_; - result.dropUnknownFields_ = dropUnknownFields_; - result.state_ = state_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.BigQueryConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.table_ = table_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.useTopicSchema_ = useTopicSchema_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.writeMetadata_ = writeMetadata_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dropUnknownFields_ = dropUnknownFields_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -748,6 +767,7 @@ public Builder mergeFrom(com.google.pubsub.v1.BigQueryConfig other) { if (other == com.google.pubsub.v1.BigQueryConfig.getDefaultInstance()) return this; if (!other.getTable().isEmpty()) { table_ = other.table_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getUseTopicSchema() != false) { @@ -791,31 +811,31 @@ public Builder mergeFrom( case 10: { table_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { useTopicSchema_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { writeMetadata_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { dropUnknownFields_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 case 40: { state_ = input.readEnum(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -835,13 +855,15 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object table_ = ""; /** * * *
          * The name of the table to which to write data, of the form
    -     * {projectId}:{datasetId}.{tableId}
    +     * {projectId}.{datasetId}.{tableId}
          * 
    * * string table = 1; @@ -864,7 +886,7 @@ public java.lang.String getTable() { * *
          * The name of the table to which to write data, of the form
    -     * {projectId}:{datasetId}.{tableId}
    +     * {projectId}.{datasetId}.{tableId}
          * 
    * * string table = 1; @@ -887,7 +909,7 @@ public com.google.protobuf.ByteString getTableBytes() { * *
          * The name of the table to which to write data, of the form
    -     * {projectId}:{datasetId}.{tableId}
    +     * {projectId}.{datasetId}.{tableId}
          * 
    * * string table = 1; @@ -899,8 +921,8 @@ public Builder setTable(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - table_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -909,7 +931,7 @@ public Builder setTable(java.lang.String value) { * *
          * The name of the table to which to write data, of the form
    -     * {projectId}:{datasetId}.{tableId}
    +     * {projectId}.{datasetId}.{tableId}
          * 
    * * string table = 1; @@ -917,8 +939,8 @@ public Builder setTable(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTable() { - table_ = getDefaultInstance().getTable(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -927,7 +949,7 @@ public Builder clearTable() { * *
          * The name of the table to which to write data, of the form
    -     * {projectId}:{datasetId}.{tableId}
    +     * {projectId}.{datasetId}.{tableId}
          * 
    * * string table = 1; @@ -940,8 +962,8 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - table_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -979,6 +1001,7 @@ public boolean getUseTopicSchema() { public Builder setUseTopicSchema(boolean value) { useTopicSchema_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -995,7 +1018,7 @@ public Builder setUseTopicSchema(boolean value) { * @return This builder for chaining. */ public Builder clearUseTopicSchema() { - + bitField0_ = (bitField0_ & ~0x00000002); useTopicSchema_ = false; onChanged(); return this; @@ -1040,6 +1063,7 @@ public boolean getWriteMetadata() { public Builder setWriteMetadata(boolean value) { writeMetadata_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1059,7 +1083,7 @@ public Builder setWriteMetadata(boolean value) { * @return This builder for chaining. */ public Builder clearWriteMetadata() { - + bitField0_ = (bitField0_ & ~0x00000004); writeMetadata_ = false; onChanged(); return this; @@ -1104,6 +1128,7 @@ public boolean getDropUnknownFields() { public Builder setDropUnknownFields(boolean value) { dropUnknownFields_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1123,7 +1148,7 @@ public Builder setDropUnknownFields(boolean value) { * @return This builder for chaining. */ public Builder clearDropUnknownFields() { - + bitField0_ = (bitField0_ & ~0x00000008); dropUnknownFields_ = false; onChanged(); return this; @@ -1164,8 +1189,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1185,9 +1210,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.pubsub.v1.BigQueryConfig.State getState() { - @SuppressWarnings("deprecation") com.google.pubsub.v1.BigQueryConfig.State result = - com.google.pubsub.v1.BigQueryConfig.State.valueOf(state_); + com.google.pubsub.v1.BigQueryConfig.State.forNumber(state_); return result == null ? com.google.pubsub.v1.BigQueryConfig.State.UNRECOGNIZED : result; } /** @@ -1209,7 +1233,7 @@ public Builder setState(com.google.pubsub.v1.BigQueryConfig.State value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000010; state_ = value.getNumber(); onChanged(); return this; @@ -1229,7 +1253,7 @@ public Builder setState(com.google.pubsub.v1.BigQueryConfig.State value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000010); state_ = 0; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 1a9275f0873b..0d649b85f7b0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface BigQueryConfigOrBuilder * *
        * The name of the table to which to write data, of the form
    -   * {projectId}:{datasetId}.{tableId}
    +   * {projectId}.{datasetId}.{tableId}
        * 
    * * string table = 1; @@ -41,7 +41,7 @@ public interface BigQueryConfigOrBuilder * *
        * The name of the table to which to write data, of the form
    -   * {projectId}:{datasetId}.{tableId}
    +   * {projectId}.{datasetId}.{tableId}
        * 
    * * string table = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java new file mode 100644 index 000000000000..abc9ac644529 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -0,0 +1,3401 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Configuration for a Cloud Storage subscription.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.CloudStorageConfig} + */ +public final class CloudStorageConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig) + CloudStorageConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudStorageConfig.newBuilder() to construct. + private CloudStorageConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorageConfig() { + bucket_ = ""; + filenamePrefix_ = ""; + filenameSuffix_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorageConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CloudStorageConfig.class, + com.google.pubsub.v1.CloudStorageConfig.Builder.class); + } + + /** + * + * + *
    +   * Possible states for a Cloud Storage subscription.
    +   * 
    + * + * Protobuf enum {@code google.pubsub.v1.CloudStorageConfig.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The subscription can actively send messages to Cloud Storage.
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * Cannot write to the Cloud Storage bucket because of permission denied
    +     * errors.
    +     * 
    + * + * PERMISSION_DENIED = 2; + */ + PERMISSION_DENIED(2), + /** + * + * + *
    +     * Cannot write to the Cloud Storage bucket because it does not exist.
    +     * 
    + * + * NOT_FOUND = 3; + */ + NOT_FOUND(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The subscription can actively send messages to Cloud Storage.
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +     * Cannot write to the Cloud Storage bucket because of permission denied
    +     * errors.
    +     * 
    + * + * PERMISSION_DENIED = 2; + */ + public static final int PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
    +     * Cannot write to the Cloud Storage bucket because it does not exist.
    +     * 
    + * + * NOT_FOUND = 3; + */ + public static final int NOT_FOUND_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return PERMISSION_DENIED; + case 3: + return NOT_FOUND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.CloudStorageConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.CloudStorageConfig.State) + } + + public interface TextConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CloudStorageConfig.TextConfig) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Configuration for writing message data in text format.
    +   * Message payloads will be written to files as raw text, separated by a
    +   * newline.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.TextConfig} + */ + public static final class TextConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig.TextConfig) + TextConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextConfig.newBuilder() to construct. + private TextConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CloudStorageConfig.TextConfig.class, + com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.CloudStorageConfig.TextConfig)) { + return super.equals(obj); + } + com.google.pubsub.v1.CloudStorageConfig.TextConfig other = + (com.google.pubsub.v1.CloudStorageConfig.TextConfig) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.CloudStorageConfig.TextConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Configuration for writing message data in text format.
    +     * Message payloads will be written to files as raw text, separated by a
    +     * newline.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.TextConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CloudStorageConfig.TextConfig) + com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CloudStorageConfig.TextConfig.class, + com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder.class); + } + + // Construct using com.google.pubsub.v1.CloudStorageConfig.TextConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.TextConfig getDefaultInstanceForType() { + return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.TextConfig build() { + com.google.pubsub.v1.CloudStorageConfig.TextConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.TextConfig buildPartial() { + com.google.pubsub.v1.CloudStorageConfig.TextConfig result = + new com.google.pubsub.v1.CloudStorageConfig.TextConfig(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.CloudStorageConfig.TextConfig) { + return mergeFrom((com.google.pubsub.v1.CloudStorageConfig.TextConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig.TextConfig other) { + if (other == com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CloudStorageConfig.TextConfig) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.CloudStorageConfig.TextConfig) + private static final com.google.pubsub.v1.CloudStorageConfig.TextConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.CloudStorageConfig.TextConfig(); + } + + public static com.google.pubsub.v1.CloudStorageConfig.TextConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.TextConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AvroConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CloudStorageConfig.AvroConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * When true, write the subscription name, message_id, publish_time,
    +     * attributes, and ordering_key as additional fields in the output.
    +     * 
    + * + * bool write_metadata = 1; + * + * @return The writeMetadata. + */ + boolean getWriteMetadata(); + } + /** + * + * + *
    +   * Configuration for writing message data in Avro format.
    +   * Message payloads and metadata will be written to files as an Avro binary.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.AvroConfig} + */ + public static final class AvroConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig.AvroConfig) + AvroConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvroConfig.newBuilder() to construct. + private AvroConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvroConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvroConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.class, + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder.class); + } + + public static final int WRITE_METADATA_FIELD_NUMBER = 1; + private boolean writeMetadata_ = false; + /** + * + * + *
    +     * When true, write the subscription name, message_id, publish_time,
    +     * attributes, and ordering_key as additional fields in the output.
    +     * 
    + * + * bool write_metadata = 1; + * + * @return The writeMetadata. + */ + @java.lang.Override + public boolean getWriteMetadata() { + return writeMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (writeMetadata_ != false) { + output.writeBool(1, writeMetadata_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (writeMetadata_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, writeMetadata_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.CloudStorageConfig.AvroConfig)) { + return super.equals(obj); + } + com.google.pubsub.v1.CloudStorageConfig.AvroConfig other = + (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) obj; + + if (getWriteMetadata() != other.getWriteMetadata()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WRITE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWriteMetadata()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.CloudStorageConfig.AvroConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Configuration for writing message data in Avro format.
    +     * Message payloads and metadata will be written to files as an Avro binary.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.AvroConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CloudStorageConfig.AvroConfig) + com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.class, + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder.class); + } + + // Construct using com.google.pubsub.v1.CloudStorageConfig.AvroConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + writeMetadata_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getDefaultInstanceForType() { + return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.AvroConfig build() { + com.google.pubsub.v1.CloudStorageConfig.AvroConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.AvroConfig buildPartial() { + com.google.pubsub.v1.CloudStorageConfig.AvroConfig result = + new com.google.pubsub.v1.CloudStorageConfig.AvroConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig.AvroConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.writeMetadata_ = writeMetadata_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.CloudStorageConfig.AvroConfig) { + return mergeFrom((com.google.pubsub.v1.CloudStorageConfig.AvroConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig.AvroConfig other) { + if (other == com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance()) + return this; + if (other.getWriteMetadata() != false) { + setWriteMetadata(other.getWriteMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + writeMetadata_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean writeMetadata_; + /** + * + * + *
    +       * When true, write the subscription name, message_id, publish_time,
    +       * attributes, and ordering_key as additional fields in the output.
    +       * 
    + * + * bool write_metadata = 1; + * + * @return The writeMetadata. + */ + @java.lang.Override + public boolean getWriteMetadata() { + return writeMetadata_; + } + /** + * + * + *
    +       * When true, write the subscription name, message_id, publish_time,
    +       * attributes, and ordering_key as additional fields in the output.
    +       * 
    + * + * bool write_metadata = 1; + * + * @param value The writeMetadata to set. + * @return This builder for chaining. + */ + public Builder setWriteMetadata(boolean value) { + + writeMetadata_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * When true, write the subscription name, message_id, publish_time,
    +       * attributes, and ordering_key as additional fields in the output.
    +       * 
    + * + * bool write_metadata = 1; + * + * @return This builder for chaining. + */ + public Builder clearWriteMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + writeMetadata_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CloudStorageConfig.AvroConfig) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.CloudStorageConfig.AvroConfig) + private static final com.google.pubsub.v1.CloudStorageConfig.AvroConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.CloudStorageConfig.AvroConfig(); + } + + public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int outputFormatCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object outputFormat_; + + public enum OutputFormatCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT_CONFIG(4), + AVRO_CONFIG(5), + OUTPUTFORMAT_NOT_SET(0); + private final int value; + + private OutputFormatCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OutputFormatCase valueOf(int value) { + return forNumber(value); + } + + public static OutputFormatCase forNumber(int value) { + switch (value) { + case 4: + return TEXT_CONFIG; + case 5: + return AVRO_CONFIG; + case 0: + return OUTPUTFORMAT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OutputFormatCase getOutputFormatCase() { + return OutputFormatCase.forNumber(outputFormatCase_); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + /** + * + * + *
    +   * Required. User-provided name for the Cloud Storage bucket.
    +   * The bucket must be created by the user. The bucket name must be without
    +   * any prefix like "gs://". See the [bucket naming
    +   * requirements] (https://cloud.google.com/storage/docs/buckets#naming).
    +   * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. User-provided name for the Cloud Storage bucket.
    +   * The bucket must be created by the user. The bucket name must be without
    +   * any prefix like "gs://". See the [bucket naming
    +   * requirements] (https://cloud.google.com/storage/docs/buckets#naming).
    +   * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILENAME_PREFIX_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filenamePrefix_ = ""; + /** + * + * + *
    +   * User-provided prefix for Cloud Storage filename. See the [object naming
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * 
    + * + * string filename_prefix = 2; + * + * @return The filenamePrefix. + */ + @java.lang.Override + public java.lang.String getFilenamePrefix() { + java.lang.Object ref = filenamePrefix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filenamePrefix_ = s; + return s; + } + } + /** + * + * + *
    +   * User-provided prefix for Cloud Storage filename. See the [object naming
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * 
    + * + * string filename_prefix = 2; + * + * @return The bytes for filenamePrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilenamePrefixBytes() { + java.lang.Object ref = filenamePrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filenamePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILENAME_SUFFIX_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object filenameSuffix_ = ""; + /** + * + * + *
    +   * User-provided suffix for Cloud Storage filename. See the [object naming
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * 
    + * + * string filename_suffix = 3; + * + * @return The filenameSuffix. + */ + @java.lang.Override + public java.lang.String getFilenameSuffix() { + java.lang.Object ref = filenameSuffix_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filenameSuffix_ = s; + return s; + } + } + /** + * + * + *
    +   * User-provided suffix for Cloud Storage filename. See the [object naming
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * 
    + * + * string filename_suffix = 3; + * + * @return The bytes for filenameSuffix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilenameSuffixBytes() { + java.lang.Object ref = filenameSuffix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filenameSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_CONFIG_FIELD_NUMBER = 4; + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in text format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * @return Whether the textConfig field is set. + */ + @java.lang.Override + public boolean hasTextConfig() { + return outputFormatCase_ == 4; + } + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in text format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * @return The textConfig. + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { + if (outputFormatCase_ == 4) { + return (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_; + } + return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); + } + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in text format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder() { + if (outputFormatCase_ == 4) { + return (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_; + } + return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); + } + + public static final int AVRO_CONFIG_FIELD_NUMBER = 5; + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in Avro format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * @return Whether the avroConfig field is set. + */ + @java.lang.Override + public boolean hasAvroConfig() { + return outputFormatCase_ == 5; + } + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in Avro format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * @return The avroConfig. + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { + if (outputFormatCase_ == 5) { + return (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_; + } + return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); + } + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in Avro format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder() { + if (outputFormatCase_ == 5) { + return (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_; + } + return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); + } + + public static final int MAX_DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration maxDuration_; + /** + * + * + *
    +   * The maximum duration that can elapse before a new Cloud Storage file is
    +   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +   * the subscription's acknowledgement deadline.
    +   * 
    + * + * .google.protobuf.Duration max_duration = 6; + * + * @return Whether the maxDuration field is set. + */ + @java.lang.Override + public boolean hasMaxDuration() { + return maxDuration_ != null; + } + /** + * + * + *
    +   * The maximum duration that can elapse before a new Cloud Storage file is
    +   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +   * the subscription's acknowledgement deadline.
    +   * 
    + * + * .google.protobuf.Duration max_duration = 6; + * + * @return The maxDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getMaxDuration() { + return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; + } + /** + * + * + *
    +   * The maximum duration that can elapse before a new Cloud Storage file is
    +   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +   * the subscription's acknowledgement deadline.
    +   * 
    + * + * .google.protobuf.Duration max_duration = 6; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { + return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; + } + + public static final int MAX_BYTES_FIELD_NUMBER = 7; + private long maxBytes_ = 0L; + /** + * + * + *
    +   * The maximum bytes that can be written to a Cloud Storage file before a new
    +   * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
    +   * in cases where messages are larger than the limit.
    +   * 
    + * + * int64 max_bytes = 7; + * + * @return The maxBytes. + */ + @java.lang.Override + public long getMaxBytes() { + return maxBytes_; + } + + public static final int STATE_FIELD_NUMBER = 9; + private int state_ = 0; + /** + * + * + *
    +   * Output only. An output-only field that indicates whether or not the
    +   * subscription can receive messages.
    +   * 
    + * + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +   * Output only. An output-only field that indicates whether or not the
    +   * subscription can receive messages.
    +   * 
    + * + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.State getState() { + com.google.pubsub.v1.CloudStorageConfig.State result = + com.google.pubsub.v1.CloudStorageConfig.State.forNumber(state_); + return result == null ? com.google.pubsub.v1.CloudStorageConfig.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenamePrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filenamePrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameSuffix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filenameSuffix_); + } + if (outputFormatCase_ == 4) { + output.writeMessage(4, (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_); + } + if (outputFormatCase_ == 5) { + output.writeMessage(5, (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_); + } + if (maxDuration_ != null) { + output.writeMessage(6, getMaxDuration()); + } + if (maxBytes_ != 0L) { + output.writeInt64(7, maxBytes_); + } + if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenamePrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filenamePrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameSuffix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filenameSuffix_); + } + if (outputFormatCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_); + } + if (outputFormatCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_); + } + if (maxDuration_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaxDuration()); + } + if (maxBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxBytes_); + } + if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.CloudStorageConfig)) { + return super.equals(obj); + } + com.google.pubsub.v1.CloudStorageConfig other = (com.google.pubsub.v1.CloudStorageConfig) obj; + + if (!getBucket().equals(other.getBucket())) return false; + if (!getFilenamePrefix().equals(other.getFilenamePrefix())) return false; + if (!getFilenameSuffix().equals(other.getFilenameSuffix())) return false; + if (hasMaxDuration() != other.hasMaxDuration()) return false; + if (hasMaxDuration()) { + if (!getMaxDuration().equals(other.getMaxDuration())) return false; + } + if (getMaxBytes() != other.getMaxBytes()) return false; + if (state_ != other.state_) return false; + if (!getOutputFormatCase().equals(other.getOutputFormatCase())) return false; + switch (outputFormatCase_) { + case 4: + if (!getTextConfig().equals(other.getTextConfig())) return false; + break; + case 5: + if (!getAvroConfig().equals(other.getAvroConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (37 * hash) + FILENAME_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getFilenamePrefix().hashCode(); + hash = (37 * hash) + FILENAME_SUFFIX_FIELD_NUMBER; + hash = (53 * hash) + getFilenameSuffix().hashCode(); + if (hasMaxDuration()) { + hash = (37 * hash) + MAX_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxDuration().hashCode(); + } + hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBytes()); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + switch (outputFormatCase_) { + case 4: + hash = (37 * hash) + TEXT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTextConfig().hashCode(); + break; + case 5: + hash = (37 * hash) + AVRO_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAvroConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.CloudStorageConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.CloudStorageConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.CloudStorageConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Configuration for a Cloud Storage subscription.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.CloudStorageConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CloudStorageConfig) + com.google.pubsub.v1.CloudStorageConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.CloudStorageConfig.class, + com.google.pubsub.v1.CloudStorageConfig.Builder.class); + } + + // Construct using com.google.pubsub.v1.CloudStorageConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucket_ = ""; + filenamePrefix_ = ""; + filenameSuffix_ = ""; + if (textConfigBuilder_ != null) { + textConfigBuilder_.clear(); + } + if (avroConfigBuilder_ != null) { + avroConfigBuilder_.clear(); + } + maxDuration_ = null; + if (maxDurationBuilder_ != null) { + maxDurationBuilder_.dispose(); + maxDurationBuilder_ = null; + } + maxBytes_ = 0L; + state_ = 0; + outputFormatCase_ = 0; + outputFormat_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig getDefaultInstanceForType() { + return com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig build() { + com.google.pubsub.v1.CloudStorageConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig buildPartial() { + com.google.pubsub.v1.CloudStorageConfig result = + new com.google.pubsub.v1.CloudStorageConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucket_ = bucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filenamePrefix_ = filenamePrefix_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filenameSuffix_ = filenameSuffix_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.maxDuration_ = + maxDurationBuilder_ == null ? maxDuration_ : maxDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.maxBytes_ = maxBytes_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.CloudStorageConfig result) { + result.outputFormatCase_ = outputFormatCase_; + result.outputFormat_ = this.outputFormat_; + if (outputFormatCase_ == 4 && textConfigBuilder_ != null) { + result.outputFormat_ = textConfigBuilder_.build(); + } + if (outputFormatCase_ == 5 && avroConfigBuilder_ != null) { + result.outputFormat_ = avroConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.CloudStorageConfig) { + return mergeFrom((com.google.pubsub.v1.CloudStorageConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig other) { + if (other == com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance()) return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilenamePrefix().isEmpty()) { + filenamePrefix_ = other.filenamePrefix_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getFilenameSuffix().isEmpty()) { + filenameSuffix_ = other.filenameSuffix_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasMaxDuration()) { + mergeMaxDuration(other.getMaxDuration()); + } + if (other.getMaxBytes() != 0L) { + setMaxBytes(other.getMaxBytes()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getOutputFormatCase()) { + case TEXT_CONFIG: + { + mergeTextConfig(other.getTextConfig()); + break; + } + case AVRO_CONFIG: + { + mergeAvroConfig(other.getAvroConfig()); + break; + } + case OUTPUTFORMAT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filenamePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + filenameSuffix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getTextConfigFieldBuilder().getBuilder(), extensionRegistry); + outputFormatCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getAvroConfigFieldBuilder().getBuilder(), extensionRegistry); + outputFormatCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getMaxDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + maxBytes_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int outputFormatCase_ = 0; + private java.lang.Object outputFormat_; + + public OutputFormatCase getOutputFormatCase() { + return OutputFormatCase.forNumber(outputFormatCase_); + } + + public Builder clearOutputFormat() { + outputFormatCase_ = 0; + outputFormat_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object bucket_ = ""; + /** + * + * + *
    +     * Required. User-provided name for the Cloud Storage bucket.
    +     * The bucket must be created by the user. The bucket name must be without
    +     * any prefix like "gs://". See the [bucket naming
    +     * requirements] (https://cloud.google.com/storage/docs/buckets#naming).
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. User-provided name for the Cloud Storage bucket.
    +     * The bucket must be created by the user. The bucket name must be without
    +     * any prefix like "gs://". See the [bucket naming
    +     * requirements] (https://cloud.google.com/storage/docs/buckets#naming).
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. User-provided name for the Cloud Storage bucket.
    +     * The bucket must be created by the user. The bucket name must be without
    +     * any prefix like "gs://". See the [bucket naming
    +     * requirements] (https://cloud.google.com/storage/docs/buckets#naming).
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. User-provided name for the Cloud Storage bucket.
    +     * The bucket must be created by the user. The bucket name must be without
    +     * any prefix like "gs://". See the [bucket naming
    +     * requirements] (https://cloud.google.com/storage/docs/buckets#naming).
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. User-provided name for the Cloud Storage bucket.
    +     * The bucket must be created by the user. The bucket name must be without
    +     * any prefix like "gs://". See the [bucket naming
    +     * requirements] (https://cloud.google.com/storage/docs/buckets#naming).
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filenamePrefix_ = ""; + /** + * + * + *
    +     * User-provided prefix for Cloud Storage filename. See the [object naming
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * 
    + * + * string filename_prefix = 2; + * + * @return The filenamePrefix. + */ + public java.lang.String getFilenamePrefix() { + java.lang.Object ref = filenamePrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filenamePrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * User-provided prefix for Cloud Storage filename. See the [object naming
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * 
    + * + * string filename_prefix = 2; + * + * @return The bytes for filenamePrefix. + */ + public com.google.protobuf.ByteString getFilenamePrefixBytes() { + java.lang.Object ref = filenamePrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filenamePrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * User-provided prefix for Cloud Storage filename. See the [object naming
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * 
    + * + * string filename_prefix = 2; + * + * @param value The filenamePrefix to set. + * @return This builder for chaining. + */ + public Builder setFilenamePrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filenamePrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * User-provided prefix for Cloud Storage filename. See the [object naming
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * 
    + * + * string filename_prefix = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilenamePrefix() { + filenamePrefix_ = getDefaultInstance().getFilenamePrefix(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * User-provided prefix for Cloud Storage filename. See the [object naming
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * 
    + * + * string filename_prefix = 2; + * + * @param value The bytes for filenamePrefix to set. + * @return This builder for chaining. + */ + public Builder setFilenamePrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filenamePrefix_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object filenameSuffix_ = ""; + /** + * + * + *
    +     * User-provided suffix for Cloud Storage filename. See the [object naming
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * 
    + * + * string filename_suffix = 3; + * + * @return The filenameSuffix. + */ + public java.lang.String getFilenameSuffix() { + java.lang.Object ref = filenameSuffix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filenameSuffix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * User-provided suffix for Cloud Storage filename. See the [object naming
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * 
    + * + * string filename_suffix = 3; + * + * @return The bytes for filenameSuffix. + */ + public com.google.protobuf.ByteString getFilenameSuffixBytes() { + java.lang.Object ref = filenameSuffix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filenameSuffix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * User-provided suffix for Cloud Storage filename. See the [object naming
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * 
    + * + * string filename_suffix = 3; + * + * @param value The filenameSuffix to set. + * @return This builder for chaining. + */ + public Builder setFilenameSuffix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filenameSuffix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * User-provided suffix for Cloud Storage filename. See the [object naming
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * 
    + * + * string filename_suffix = 3; + * + * @return This builder for chaining. + */ + public Builder clearFilenameSuffix() { + filenameSuffix_ = getDefaultInstance().getFilenameSuffix(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +     * User-provided suffix for Cloud Storage filename. See the [object naming
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * 
    + * + * string filename_suffix = 3; + * + * @param value The bytes for filenameSuffix to set. + * @return This builder for chaining. + */ + public Builder setFilenameSuffixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filenameSuffix_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig.TextConfig, + com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder> + textConfigBuilder_; + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in text format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * @return Whether the textConfig field is set. + */ + @java.lang.Override + public boolean hasTextConfig() { + return outputFormatCase_ == 4; + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in text format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * @return The textConfig. + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { + if (textConfigBuilder_ == null) { + if (outputFormatCase_ == 4) { + return (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_; + } + return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); + } else { + if (outputFormatCase_ == 4) { + return textConfigBuilder_.getMessage(); + } + return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); + } + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in text format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + */ + public Builder setTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig value) { + if (textConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputFormat_ = value; + onChanged(); + } else { + textConfigBuilder_.setMessage(value); + } + outputFormatCase_ = 4; + return this; + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in text format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + */ + public Builder setTextConfig( + com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder builderForValue) { + if (textConfigBuilder_ == null) { + outputFormat_ = builderForValue.build(); + onChanged(); + } else { + textConfigBuilder_.setMessage(builderForValue.build()); + } + outputFormatCase_ = 4; + return this; + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in text format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + */ + public Builder mergeTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig value) { + if (textConfigBuilder_ == null) { + if (outputFormatCase_ == 4 + && outputFormat_ + != com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance()) { + outputFormat_ = + com.google.pubsub.v1.CloudStorageConfig.TextConfig.newBuilder( + (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_) + .mergeFrom(value) + .buildPartial(); + } else { + outputFormat_ = value; + } + onChanged(); + } else { + if (outputFormatCase_ == 4) { + textConfigBuilder_.mergeFrom(value); + } else { + textConfigBuilder_.setMessage(value); + } + } + outputFormatCase_ = 4; + return this; + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in text format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + */ + public Builder clearTextConfig() { + if (textConfigBuilder_ == null) { + if (outputFormatCase_ == 4) { + outputFormatCase_ = 0; + outputFormat_ = null; + onChanged(); + } + } else { + if (outputFormatCase_ == 4) { + outputFormatCase_ = 0; + outputFormat_ = null; + } + textConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in text format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + */ + public com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder getTextConfigBuilder() { + return getTextConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in text format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder() { + if ((outputFormatCase_ == 4) && (textConfigBuilder_ != null)) { + return textConfigBuilder_.getMessageOrBuilder(); + } else { + if (outputFormatCase_ == 4) { + return (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_; + } + return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); + } + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in text format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig.TextConfig, + com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder> + getTextConfigFieldBuilder() { + if (textConfigBuilder_ == null) { + if (!(outputFormatCase_ == 4)) { + outputFormat_ = com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); + } + textConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig.TextConfig, + com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder>( + (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_, + getParentForChildren(), + isClean()); + outputFormat_ = null; + } + outputFormatCase_ = 4; + onChanged(); + return textConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig.AvroConfig, + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder> + avroConfigBuilder_; + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in Avro format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * @return Whether the avroConfig field is set. + */ + @java.lang.Override + public boolean hasAvroConfig() { + return outputFormatCase_ == 5; + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in Avro format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * @return The avroConfig. + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { + if (avroConfigBuilder_ == null) { + if (outputFormatCase_ == 5) { + return (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_; + } + return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); + } else { + if (outputFormatCase_ == 5) { + return avroConfigBuilder_.getMessage(); + } + return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); + } + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in Avro format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + */ + public Builder setAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig value) { + if (avroConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + outputFormat_ = value; + onChanged(); + } else { + avroConfigBuilder_.setMessage(value); + } + outputFormatCase_ = 5; + return this; + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in Avro format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + */ + public Builder setAvroConfig( + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder builderForValue) { + if (avroConfigBuilder_ == null) { + outputFormat_ = builderForValue.build(); + onChanged(); + } else { + avroConfigBuilder_.setMessage(builderForValue.build()); + } + outputFormatCase_ = 5; + return this; + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in Avro format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + */ + public Builder mergeAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig value) { + if (avroConfigBuilder_ == null) { + if (outputFormatCase_ == 5 + && outputFormat_ + != com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance()) { + outputFormat_ = + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.newBuilder( + (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_) + .mergeFrom(value) + .buildPartial(); + } else { + outputFormat_ = value; + } + onChanged(); + } else { + if (outputFormatCase_ == 5) { + avroConfigBuilder_.mergeFrom(value); + } else { + avroConfigBuilder_.setMessage(value); + } + } + outputFormatCase_ = 5; + return this; + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in Avro format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + */ + public Builder clearAvroConfig() { + if (avroConfigBuilder_ == null) { + if (outputFormatCase_ == 5) { + outputFormatCase_ = 0; + outputFormat_ = null; + onChanged(); + } + } else { + if (outputFormatCase_ == 5) { + outputFormatCase_ = 0; + outputFormat_ = null; + } + avroConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in Avro format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + */ + public com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder getAvroConfigBuilder() { + return getAvroConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in Avro format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder() { + if ((outputFormatCase_ == 5) && (avroConfigBuilder_ != null)) { + return avroConfigBuilder_.getMessageOrBuilder(); + } else { + if (outputFormatCase_ == 5) { + return (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_; + } + return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); + } + } + /** + * + * + *
    +     * If set, message data will be written to Cloud Storage in Avro format.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig.AvroConfig, + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder> + getAvroConfigFieldBuilder() { + if (avroConfigBuilder_ == null) { + if (!(outputFormatCase_ == 5)) { + outputFormat_ = com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); + } + avroConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig.AvroConfig, + com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, + com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder>( + (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_, + getParentForChildren(), + isClean()); + outputFormat_ = null; + } + outputFormatCase_ = 5; + onChanged(); + return avroConfigBuilder_; + } + + private com.google.protobuf.Duration maxDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxDurationBuilder_; + /** + * + * + *
    +     * The maximum duration that can elapse before a new Cloud Storage file is
    +     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +     * the subscription's acknowledgement deadline.
    +     * 
    + * + * .google.protobuf.Duration max_duration = 6; + * + * @return Whether the maxDuration field is set. + */ + public boolean hasMaxDuration() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +     * The maximum duration that can elapse before a new Cloud Storage file is
    +     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +     * the subscription's acknowledgement deadline.
    +     * 
    + * + * .google.protobuf.Duration max_duration = 6; + * + * @return The maxDuration. + */ + public com.google.protobuf.Duration getMaxDuration() { + if (maxDurationBuilder_ == null) { + return maxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxDuration_; + } else { + return maxDurationBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * The maximum duration that can elapse before a new Cloud Storage file is
    +     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +     * the subscription's acknowledgement deadline.
    +     * 
    + * + * .google.protobuf.Duration max_duration = 6; + */ + public Builder setMaxDuration(com.google.protobuf.Duration value) { + if (maxDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxDuration_ = value; + } else { + maxDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum duration that can elapse before a new Cloud Storage file is
    +     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +     * the subscription's acknowledgement deadline.
    +     * 
    + * + * .google.protobuf.Duration max_duration = 6; + */ + public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (maxDurationBuilder_ == null) { + maxDuration_ = builderForValue.build(); + } else { + maxDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum duration that can elapse before a new Cloud Storage file is
    +     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +     * the subscription's acknowledgement deadline.
    +     * 
    + * + * .google.protobuf.Duration max_duration = 6; + */ + public Builder mergeMaxDuration(com.google.protobuf.Duration value) { + if (maxDurationBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && maxDuration_ != null + && maxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMaxDurationBuilder().mergeFrom(value); + } else { + maxDuration_ = value; + } + } else { + maxDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum duration that can elapse before a new Cloud Storage file is
    +     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +     * the subscription's acknowledgement deadline.
    +     * 
    + * + * .google.protobuf.Duration max_duration = 6; + */ + public Builder clearMaxDuration() { + bitField0_ = (bitField0_ & ~0x00000020); + maxDuration_ = null; + if (maxDurationBuilder_ != null) { + maxDurationBuilder_.dispose(); + maxDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum duration that can elapse before a new Cloud Storage file is
    +     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +     * the subscription's acknowledgement deadline.
    +     * 
    + * + * .google.protobuf.Duration max_duration = 6; + */ + public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getMaxDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * The maximum duration that can elapse before a new Cloud Storage file is
    +     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +     * the subscription's acknowledgement deadline.
    +     * 
    + * + * .google.protobuf.Duration max_duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { + if (maxDurationBuilder_ != null) { + return maxDurationBuilder_.getMessageOrBuilder(); + } else { + return maxDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxDuration_; + } + } + /** + * + * + *
    +     * The maximum duration that can elapse before a new Cloud Storage file is
    +     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +     * the subscription's acknowledgement deadline.
    +     * 
    + * + * .google.protobuf.Duration max_duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMaxDurationFieldBuilder() { + if (maxDurationBuilder_ == null) { + maxDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxDuration(), getParentForChildren(), isClean()); + maxDuration_ = null; + } + return maxDurationBuilder_; + } + + private long maxBytes_; + /** + * + * + *
    +     * The maximum bytes that can be written to a Cloud Storage file before a new
    +     * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
    +     * in cases where messages are larger than the limit.
    +     * 
    + * + * int64 max_bytes = 7; + * + * @return The maxBytes. + */ + @java.lang.Override + public long getMaxBytes() { + return maxBytes_; + } + /** + * + * + *
    +     * The maximum bytes that can be written to a Cloud Storage file before a new
    +     * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
    +     * in cases where messages are larger than the limit.
    +     * 
    + * + * int64 max_bytes = 7; + * + * @param value The maxBytes to set. + * @return This builder for chaining. + */ + public Builder setMaxBytes(long value) { + + maxBytes_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * The maximum bytes that can be written to a Cloud Storage file before a new
    +     * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
    +     * in cases where messages are larger than the limit.
    +     * 
    + * + * int64 max_bytes = 7; + * + * @return This builder for chaining. + */ + public Builder clearMaxBytes() { + bitField0_ = (bitField0_ & ~0x00000040); + maxBytes_ = 0L; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
    +     * Output only. An output-only field that indicates whether or not the
    +     * subscription can receive messages.
    +     * 
    + * + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates whether or not the
    +     * subscription can receive messages.
    +     * 
    + * + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates whether or not the
    +     * subscription can receive messages.
    +     * 
    + * + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig.State getState() { + com.google.pubsub.v1.CloudStorageConfig.State result = + com.google.pubsub.v1.CloudStorageConfig.State.forNumber(state_); + return result == null ? com.google.pubsub.v1.CloudStorageConfig.State.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates whether or not the
    +     * subscription can receive messages.
    +     * 
    + * + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates whether or not the
    +     * subscription can receive messages.
    +     * 
    + * + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CloudStorageConfig) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.CloudStorageConfig) + private static final com.google.pubsub.v1.CloudStorageConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.CloudStorageConfig(); + } + + public static com.google.pubsub.v1.CloudStorageConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java new file mode 100644 index 000000000000..1f9f35c90aa9 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -0,0 +1,269 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface CloudStorageConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CloudStorageConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. User-provided name for the Cloud Storage bucket.
    +   * The bucket must be created by the user. The bucket name must be without
    +   * any prefix like "gs://". See the [bucket naming
    +   * requirements] (https://cloud.google.com/storage/docs/buckets#naming).
    +   * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucket. + */ + java.lang.String getBucket(); + /** + * + * + *
    +   * Required. User-provided name for the Cloud Storage bucket.
    +   * The bucket must be created by the user. The bucket name must be without
    +   * any prefix like "gs://". See the [bucket naming
    +   * requirements] (https://cloud.google.com/storage/docs/buckets#naming).
    +   * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); + + /** + * + * + *
    +   * User-provided prefix for Cloud Storage filename. See the [object naming
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * 
    + * + * string filename_prefix = 2; + * + * @return The filenamePrefix. + */ + java.lang.String getFilenamePrefix(); + /** + * + * + *
    +   * User-provided prefix for Cloud Storage filename. See the [object naming
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * 
    + * + * string filename_prefix = 2; + * + * @return The bytes for filenamePrefix. + */ + com.google.protobuf.ByteString getFilenamePrefixBytes(); + + /** + * + * + *
    +   * User-provided suffix for Cloud Storage filename. See the [object naming
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * 
    + * + * string filename_suffix = 3; + * + * @return The filenameSuffix. + */ + java.lang.String getFilenameSuffix(); + /** + * + * + *
    +   * User-provided suffix for Cloud Storage filename. See the [object naming
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * 
    + * + * string filename_suffix = 3; + * + * @return The bytes for filenameSuffix. + */ + com.google.protobuf.ByteString getFilenameSuffixBytes(); + + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in text format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * @return Whether the textConfig field is set. + */ + boolean hasTextConfig(); + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in text format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * @return The textConfig. + */ + com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig(); + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in text format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + */ + com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder(); + + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in Avro format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * @return Whether the avroConfig field is set. + */ + boolean hasAvroConfig(); + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in Avro format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * @return The avroConfig. + */ + com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig(); + /** + * + * + *
    +   * If set, message data will be written to Cloud Storage in Avro format.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + */ + com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder(); + + /** + * + * + *
    +   * The maximum duration that can elapse before a new Cloud Storage file is
    +   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +   * the subscription's acknowledgement deadline.
    +   * 
    + * + * .google.protobuf.Duration max_duration = 6; + * + * @return Whether the maxDuration field is set. + */ + boolean hasMaxDuration(); + /** + * + * + *
    +   * The maximum duration that can elapse before a new Cloud Storage file is
    +   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +   * the subscription's acknowledgement deadline.
    +   * 
    + * + * .google.protobuf.Duration max_duration = 6; + * + * @return The maxDuration. + */ + com.google.protobuf.Duration getMaxDuration(); + /** + * + * + *
    +   * The maximum duration that can elapse before a new Cloud Storage file is
    +   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    +   * the subscription's acknowledgement deadline.
    +   * 
    + * + * .google.protobuf.Duration max_duration = 6; + */ + com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder(); + + /** + * + * + *
    +   * The maximum bytes that can be written to a Cloud Storage file before a new
    +   * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
    +   * in cases where messages are larger than the limit.
    +   * 
    + * + * int64 max_bytes = 7; + * + * @return The maxBytes. + */ + long getMaxBytes(); + + /** + * + * + *
    +   * Output only. An output-only field that indicates whether or not the
    +   * subscription can receive messages.
    +   * 
    + * + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. An output-only field that indicates whether or not the
    +   * subscription can receive messages.
    +   * 
    + * + * + * .google.pubsub.v1.CloudStorageConfig.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.CloudStorageConfig.State getState(); + + com.google.pubsub.v1.CloudStorageConfig.OutputFormatCase getOutputFormatCase(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index 4e92ecefd89c..13389fd756d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommitSchemaRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -165,7 +162,7 @@ public com.google.pubsub.v1.Schema getSchema() { */ @java.lang.Override public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { - return getSchema(); + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } private byte memoizedIsInitialized = -1; @@ -378,12 +375,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - - if (schemaBuilder_ == null) { - schema_ = null; - } else { - schema_ = null; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); schemaBuilder_ = null; } return this; @@ -413,16 +409,23 @@ public com.google.pubsub.v1.CommitSchemaRequest build() { public com.google.pubsub.v1.CommitSchemaRequest buildPartial() { com.google.pubsub.v1.CommitSchemaRequest result = new com.google.pubsub.v1.CommitSchemaRequest(this); - result.name_ = name_; - if (schemaBuilder_ == null) { - result.schema_ = schema_; - } else { - result.schema_ = schemaBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.CommitSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -470,6 +473,7 @@ public Builder mergeFrom(com.google.pubsub.v1.CommitSchemaRequest other) { if (other == com.google.pubsub.v1.CommitSchemaRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSchema()) { @@ -504,13 +508,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -530,6 +534,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -600,8 +606,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -620,8 +626,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -645,8 +651,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -669,7 +675,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the schema field is set. */ public boolean hasSchema() { - return schemaBuilder_ != null || schema_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -704,11 +710,11 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { throw new NullPointerException(); } schema_ = value; - onChanged(); } else { schemaBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -723,11 +729,11 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); - onChanged(); } else { schemaBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -741,16 +747,18 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { */ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { if (schemaBuilder_ == null) { - if (schema_ != null) { - schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && schema_ != null + && schema_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); } else { schema_ = value; } - onChanged(); } else { schemaBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -763,14 +771,13 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSchema() { - if (schemaBuilder_ == null) { - schema_ = null; - onChanged(); - } else { - schema_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); schemaBuilder_ = null; } - + onChanged(); return this; } /** @@ -783,7 +790,7 @@ public Builder clearSchema() { * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSchemaFieldBuilder().getBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 5e405cd6224f..6f9cbf0d0ff1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSchemaRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; @@ -69,7 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,6 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
        * Required. The schema object to create.
    +   *
        * This schema's `name` parameter is ignored. The schema object returned
        * by CreateSchema will have a `name` made using the given `parent` and
        * `schema_id`.
    @@ -148,6 +146,7 @@ public boolean hasSchema() {
        *
        * 
        * Required. The schema object to create.
    +   *
        * This schema's `name` parameter is ignored. The schema object returned
        * by CreateSchema will have a `name` made using the given `parent` and
        * `schema_id`.
    @@ -166,6 +165,7 @@ public com.google.pubsub.v1.Schema getSchema() {
        *
        * 
        * Required. The schema object to create.
    +   *
        * This schema's `name` parameter is ignored. The schema object returned
        * by CreateSchema will have a `name` made using the given `parent` and
        * `schema_id`.
    @@ -175,17 +175,20 @@ public com.google.pubsub.v1.Schema getSchema() {
        */
       @java.lang.Override
       public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
    -    return getSchema();
    +    return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_;
       }
     
       public static final int SCHEMA_ID_FIELD_NUMBER = 3;
    -  private volatile java.lang.Object schemaId_;
    +
    +  @SuppressWarnings("serial")
    +  private volatile java.lang.Object schemaId_ = "";
       /**
        *
        *
        * 
        * The ID to use for the schema, which will become the final component of
        * the schema's resource name.
    +   *
        * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
        * name constraints.
        * 
    @@ -212,6 +215,7 @@ public java.lang.String getSchemaId() { *
        * The ID to use for the schema, which will become the final component of
        * the schema's resource name.
    +   *
        * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
        * name constraints.
        * 
    @@ -452,16 +456,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (schemaBuilder_ == null) { - schema_ = null; - } else { - schema_ = null; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); schemaBuilder_ = null; } schemaId_ = ""; - return this; } @@ -489,17 +491,26 @@ public com.google.pubsub.v1.CreateSchemaRequest build() { public com.google.pubsub.v1.CreateSchemaRequest buildPartial() { com.google.pubsub.v1.CreateSchemaRequest result = new com.google.pubsub.v1.CreateSchemaRequest(this); - result.parent_ = parent_; - if (schemaBuilder_ == null) { - result.schema_ = schema_; - } else { - result.schema_ = schemaBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.schemaId_ = schemaId_; onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.CreateSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.schemaId_ = schemaId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -547,6 +558,7 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSchemaRequest other) { if (other == com.google.pubsub.v1.CreateSchemaRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSchema()) { @@ -554,6 +566,7 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSchemaRequest other) { } if (!other.getSchemaId().isEmpty()) { schemaId_ = other.schemaId_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -585,19 +598,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { schemaId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -617,6 +630,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -687,8 +702,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -707,8 +722,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -732,8 +747,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -749,6 +764,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
          * Required. The schema object to create.
    +     *
          * This schema's `name` parameter is ignored. The schema object returned
          * by CreateSchema will have a `name` made using the given `parent` and
          * `schema_id`.
    @@ -759,13 +775,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
          * @return Whether the schema field is set.
          */
         public boolean hasSchema() {
    -      return schemaBuilder_ != null || schema_ != null;
    +      return ((bitField0_ & 0x00000002) != 0);
         }
         /**
          *
          *
          * 
          * Required. The schema object to create.
    +     *
          * This schema's `name` parameter is ignored. The schema object returned
          * by CreateSchema will have a `name` made using the given `parent` and
          * `schema_id`.
    @@ -787,6 +804,7 @@ public com.google.pubsub.v1.Schema getSchema() {
          *
          * 
          * Required. The schema object to create.
    +     *
          * This schema's `name` parameter is ignored. The schema object returned
          * by CreateSchema will have a `name` made using the given `parent` and
          * `schema_id`.
    @@ -800,11 +818,11 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) {
               throw new NullPointerException();
             }
             schema_ = value;
    -        onChanged();
           } else {
             schemaBuilder_.setMessage(value);
           }
    -
    +      bitField0_ |= 0x00000002;
    +      onChanged();
           return this;
         }
         /**
    @@ -812,6 +830,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) {
          *
          * 
          * Required. The schema object to create.
    +     *
          * This schema's `name` parameter is ignored. The schema object returned
          * by CreateSchema will have a `name` made using the given `parent` and
          * `schema_id`.
    @@ -822,11 +841,11 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) {
         public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) {
           if (schemaBuilder_ == null) {
             schema_ = builderForValue.build();
    -        onChanged();
           } else {
             schemaBuilder_.setMessage(builderForValue.build());
           }
    -
    +      bitField0_ |= 0x00000002;
    +      onChanged();
           return this;
         }
         /**
    @@ -834,6 +853,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) {
          *
          * 
          * Required. The schema object to create.
    +     *
          * This schema's `name` parameter is ignored. The schema object returned
          * by CreateSchema will have a `name` made using the given `parent` and
          * `schema_id`.
    @@ -843,16 +863,18 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) {
          */
         public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
           if (schemaBuilder_ == null) {
    -        if (schema_ != null) {
    -          schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial();
    +        if (((bitField0_ & 0x00000002) != 0)
    +            && schema_ != null
    +            && schema_ != com.google.pubsub.v1.Schema.getDefaultInstance()) {
    +          getSchemaBuilder().mergeFrom(value);
             } else {
               schema_ = value;
             }
    -        onChanged();
           } else {
             schemaBuilder_.mergeFrom(value);
           }
    -
    +      bitField0_ |= 0x00000002;
    +      onChanged();
           return this;
         }
         /**
    @@ -860,6 +882,7 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
          *
          * 
          * Required. The schema object to create.
    +     *
          * This schema's `name` parameter is ignored. The schema object returned
          * by CreateSchema will have a `name` made using the given `parent` and
          * `schema_id`.
    @@ -868,14 +891,13 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) {
          * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
          */
         public Builder clearSchema() {
    -      if (schemaBuilder_ == null) {
    -        schema_ = null;
    -        onChanged();
    -      } else {
    -        schema_ = null;
    +      bitField0_ = (bitField0_ & ~0x00000002);
    +      schema_ = null;
    +      if (schemaBuilder_ != null) {
    +        schemaBuilder_.dispose();
             schemaBuilder_ = null;
           }
    -
    +      onChanged();
           return this;
         }
         /**
    @@ -883,6 +905,7 @@ public Builder clearSchema() {
          *
          * 
          * Required. The schema object to create.
    +     *
          * This schema's `name` parameter is ignored. The schema object returned
          * by CreateSchema will have a `name` made using the given `parent` and
          * `schema_id`.
    @@ -891,7 +914,7 @@ public Builder clearSchema() {
          * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
          */
         public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() {
    -
    +      bitField0_ |= 0x00000002;
           onChanged();
           return getSchemaFieldBuilder().getBuilder();
         }
    @@ -900,6 +923,7 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() {
          *
          * 
          * Required. The schema object to create.
    +     *
          * This schema's `name` parameter is ignored. The schema object returned
          * by CreateSchema will have a `name` made using the given `parent` and
          * `schema_id`.
    @@ -919,6 +943,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
          *
          * 
          * Required. The schema object to create.
    +     *
          * This schema's `name` parameter is ignored. The schema object returned
          * by CreateSchema will have a `name` made using the given `parent` and
          * `schema_id`.
    @@ -950,6 +975,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() {
          * 
          * The ID to use for the schema, which will become the final component of
          * the schema's resource name.
    +     *
          * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
          * name constraints.
          * 
    @@ -975,6 +1001,7 @@ public java.lang.String getSchemaId() { *
          * The ID to use for the schema, which will become the final component of
          * the schema's resource name.
    +     *
          * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
          * name constraints.
          * 
    @@ -1000,6 +1027,7 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { *
          * The ID to use for the schema, which will become the final component of
          * the schema's resource name.
    +     *
          * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
          * name constraints.
          * 
    @@ -1013,8 +1041,8 @@ public Builder setSchemaId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schemaId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1024,6 +1052,7 @@ public Builder setSchemaId(java.lang.String value) { *
          * The ID to use for the schema, which will become the final component of
          * the schema's resource name.
    +     *
          * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
          * name constraints.
          * 
    @@ -1033,8 +1062,8 @@ public Builder setSchemaId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchemaId() { - schemaId_ = getDefaultInstance().getSchemaId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1044,6 +1073,7 @@ public Builder clearSchemaId() { *
          * The ID to use for the schema, which will become the final component of
          * the schema's resource name.
    +     *
          * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
          * name constraints.
          * 
    @@ -1058,8 +1088,8 @@ public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schemaId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index 395a549cfcfc..ac0506961e2a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -59,6 +59,7 @@ public interface CreateSchemaRequestOrBuilder * *
        * Required. The schema object to create.
    +   *
        * This schema's `name` parameter is ignored. The schema object returned
        * by CreateSchema will have a `name` made using the given `parent` and
        * `schema_id`.
    @@ -74,6 +75,7 @@ public interface CreateSchemaRequestOrBuilder
        *
        * 
        * Required. The schema object to create.
    +   *
        * This schema's `name` parameter is ignored. The schema object returned
        * by CreateSchema will have a `name` made using the given `parent` and
        * `schema_id`.
    @@ -89,6 +91,7 @@ public interface CreateSchemaRequestOrBuilder
        *
        * 
        * Required. The schema object to create.
    +   *
        * This schema's `name` parameter is ignored. The schema object returned
        * by CreateSchema will have a `name` made using the given `parent` and
        * `schema_id`.
    @@ -104,6 +107,7 @@ public interface CreateSchemaRequestOrBuilder
        * 
        * The ID to use for the schema, which will become the final component of
        * the schema's resource name.
    +   *
        * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
        * name constraints.
        * 
    @@ -119,6 +123,7 @@ public interface CreateSchemaRequestOrBuilder *
        * The ID to use for the schema, which will become the final component of
        * the schema's resource name.
    +   *
        * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
        * name constraints.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 9a5aa29e340c..cda71e023be7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSnapshotRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; @@ -80,7 +75,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -88,9 +85,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource - * name rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * must specify a name. See the [resource name + * rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format + * is `projects/{project}/snapshots/{snap}`. *
    * * @@ -118,9 +115,9 @@ public java.lang.String getName() { * 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource - * name rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * must specify a name. See the [resource name + * rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format + * is `projects/{project}/snapshots/{snap}`. *
    * * @@ -143,7 +140,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SUBSCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object subscription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; /** * * @@ -224,6 +223,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -240,8 +240,8 @@ public int getLabelsCount() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 3; @@ -263,8 +263,8 @@ public java.util.Map getLabels() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 3; @@ -277,14 +277,17 @@ public java.util.Map getLabelsMap() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 3; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -295,8 +298,8 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 3; @@ -556,10 +559,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - subscription_ = ""; - internalGetMutableLabels().clear(); return this; } @@ -588,15 +590,27 @@ public com.google.pubsub.v1.CreateSnapshotRequest build() { public com.google.pubsub.v1.CreateSnapshotRequest buildPartial() { com.google.pubsub.v1.CreateSnapshotRequest result = new com.google.pubsub.v1.CreateSnapshotRequest(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.subscription_ = subscription_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.CreateSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subscription_ = subscription_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -644,13 +658,16 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { if (other == com.google.pubsub.v1.CreateSnapshotRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; + bitField0_ |= 0x00000002; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000004; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -680,13 +697,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { subscription_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -698,6 +715,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -727,9 +745,9 @@ public Builder mergeFrom( * 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource - * name rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * must specify a name. See the [resource name + * rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format + * is `projects/{project}/snapshots/{snap}`. *
    * * @@ -756,9 +774,9 @@ public java.lang.String getName() { * 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource - * name rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * must specify a name. See the [resource name + * rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format + * is `projects/{project}/snapshots/{snap}`. *
    * * @@ -785,9 +803,9 @@ public com.google.protobuf.ByteString getNameBytes() { * 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource - * name rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * must specify a name. See the [resource name + * rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format + * is `projects/{project}/snapshots/{snap}`. *
    * * @@ -801,8 +819,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -813,9 +831,9 @@ public Builder setName(java.lang.String value) { * 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource - * name rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * must specify a name. See the [resource name + * rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format + * is `projects/{project}/snapshots/{snap}`. *
    * * @@ -825,8 +843,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -837,9 +855,9 @@ public Builder clearName() { * 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource - * name rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * must specify a name. See the [resource name + * rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format + * is `projects/{project}/snapshots/{snap}`. *
    * * @@ -854,8 +872,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -951,8 +969,8 @@ public Builder setSubscription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - subscription_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -978,8 +996,8 @@ public Builder setSubscription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSubscription() { - subscription_ = getDefaultInstance().getSubscription(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1010,8 +1028,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - subscription_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1027,14 +1045,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000004; + onChanged(); return labels_; } @@ -1045,8 +1063,8 @@ public int getLabelsCount() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 3; @@ -1068,8 +1086,8 @@ public java.util.Map getLabels() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 3; @@ -1082,15 +1100,17 @@ public java.util.Map getLabelsMap() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 3; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1101,8 +1121,8 @@ public java.lang.String getLabelsOrDefault( * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 3; @@ -1120,6 +1140,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1127,8 +1148,8 @@ public Builder clearLabels() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 3; @@ -1143,14 +1164,15 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000004; return internalGetMutableLabels().getMutableMap(); } /** * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 3; @@ -1162,22 +1184,23 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 3; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 647f8506ec36..acb4bc2d4cf6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -30,9 +30,9 @@ public interface CreateSnapshotRequestOrBuilder * 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource - * name rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * must specify a name. See the [resource name + * rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format + * is `projects/{project}/snapshots/{snap}`. *
    * * @@ -49,9 +49,9 @@ public interface CreateSnapshotRequestOrBuilder * 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource - * name rules</a>. Format is `projects/{project}/snapshots/{snap}`. + * must specify a name. See the [resource name + * rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format + * is `projects/{project}/snapshots/{snap}`. *
    * * @@ -111,8 +111,8 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 3; @@ -122,8 +122,8 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 3; @@ -136,8 +136,8 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 3; @@ -147,13 +147,12 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 3; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, @@ -163,8 +162,8 @@ java.lang.String getLabelsOrDefault( * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 8000d51cc360..0bdf92596cdc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -24,6 +24,7 @@ *
      * 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.
      * 
    @@ -50,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeadLetterPolicy(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; @@ -71,7 +67,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DEAD_LETTER_TOPIC_FIELD_NUMBER = 1; - private volatile java.lang.Object deadLetterTopic_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deadLetterTopic_ = ""; /** * * @@ -81,6 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * account associated with the enclosing 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 subscription attached to this topic * since messages published to a topic with no subscriptions are lost. @@ -111,6 +110,7 @@ public java.lang.String getDeadLetterTopic() { * account associated with the enclosing 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 subscription attached to this topic * since messages published to a topic with no subscriptions are lost. @@ -134,19 +134,23 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { } public static final int MAX_DELIVERY_ATTEMPTS_FIELD_NUMBER = 2; - private int maxDeliveryAttempts_; + private int maxDeliveryAttempts_ = 0; /** * * *
        * The maximum number of delivery attempts for any message. The value must be
        * between 5 and 100.
    +   *
        * The number of delivery attempts is defined as 1 + (the sum of number of
        * NACKs and 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 honored on a best effort basis.
    +   *
        * If this parameter is 0, a default value of 5 is used.
        * 
    * @@ -331,6 +335,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
        * 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.
        * 
    @@ -366,10 +371,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; deadLetterTopic_ = ""; - maxDeliveryAttempts_ = 0; - return this; } @@ -397,12 +401,23 @@ public com.google.pubsub.v1.DeadLetterPolicy build() { public com.google.pubsub.v1.DeadLetterPolicy buildPartial() { com.google.pubsub.v1.DeadLetterPolicy result = new com.google.pubsub.v1.DeadLetterPolicy(this); - result.deadLetterTopic_ = deadLetterTopic_; - result.maxDeliveryAttempts_ = maxDeliveryAttempts_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.DeadLetterPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deadLetterTopic_ = deadLetterTopic_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxDeliveryAttempts_ = maxDeliveryAttempts_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -450,6 +465,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DeadLetterPolicy other) { if (other == com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance()) return this; if (!other.getDeadLetterTopic().isEmpty()) { deadLetterTopic_ = other.deadLetterTopic_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getMaxDeliveryAttempts() != 0) { @@ -484,13 +500,13 @@ public Builder mergeFrom( case 10: { deadLetterTopic_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { maxDeliveryAttempts_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -510,6 +526,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object deadLetterTopic_ = ""; /** * @@ -520,6 +538,7 @@ public Builder mergeFrom( * account associated with the enclosing 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 subscription attached to this topic * since messages published to a topic with no subscriptions are lost. @@ -549,6 +568,7 @@ public java.lang.String getDeadLetterTopic() { * account associated with the enclosing 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 subscription attached to this topic * since messages published to a topic with no subscriptions are lost. @@ -578,6 +598,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * account associated with the enclosing 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 subscription attached to this topic * since messages published to a topic with no subscriptions are lost. @@ -592,8 +613,8 @@ public Builder setDeadLetterTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deadLetterTopic_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -606,6 +627,7 @@ public Builder setDeadLetterTopic(java.lang.String value) { * account associated with the enclosing 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 subscription attached to this topic * since messages published to a topic with no subscriptions are lost. @@ -616,8 +638,8 @@ public Builder setDeadLetterTopic(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeadLetterTopic() { - deadLetterTopic_ = getDefaultInstance().getDeadLetterTopic(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -630,6 +652,7 @@ public Builder clearDeadLetterTopic() { * account associated with the enclosing 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 subscription attached to this topic * since messages published to a topic with no subscriptions are lost. @@ -645,8 +668,8 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deadLetterTopic_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -658,12 +681,16 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { *
          * The maximum number of delivery attempts for any message. The value must be
          * between 5 and 100.
    +     *
          * The number of delivery attempts is defined as 1 + (the sum of number of
          * NACKs and 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 honored on a best effort basis.
    +     *
          * If this parameter is 0, a default value of 5 is used.
          * 
    * @@ -681,12 +708,16 @@ public int getMaxDeliveryAttempts() { *
          * The maximum number of delivery attempts for any message. The value must be
          * between 5 and 100.
    +     *
          * The number of delivery attempts is defined as 1 + (the sum of number of
          * NACKs and 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 honored on a best effort basis.
    +     *
          * If this parameter is 0, a default value of 5 is used.
          * 
    * @@ -698,6 +729,7 @@ public int getMaxDeliveryAttempts() { public Builder setMaxDeliveryAttempts(int value) { maxDeliveryAttempts_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -707,12 +739,16 @@ public Builder setMaxDeliveryAttempts(int value) { *
          * The maximum number of delivery attempts for any message. The value must be
          * between 5 and 100.
    +     *
          * The number of delivery attempts is defined as 1 + (the sum of number of
          * NACKs and 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 honored on a best effort basis.
    +     *
          * If this parameter is 0, a default value of 5 is used.
          * 
    * @@ -721,7 +757,7 @@ public Builder setMaxDeliveryAttempts(int value) { * @return This builder for chaining. */ public Builder clearMaxDeliveryAttempts() { - + bitField0_ = (bitField0_ & ~0x00000002); maxDeliveryAttempts_ = 0; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 1e3060f7b618..92ad0369219a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -32,6 +32,7 @@ public interface DeadLetterPolicyOrBuilder * account associated with the enclosing 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 subscription attached to this topic * since messages published to a topic with no subscriptions are lost. @@ -51,6 +52,7 @@ public interface DeadLetterPolicyOrBuilder * account associated with the enclosing 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 subscription attached to this topic * since messages published to a topic with no subscriptions are lost. @@ -68,12 +70,16 @@ public interface DeadLetterPolicyOrBuilder *
        * The maximum number of delivery attempts for any message. The value must be
        * between 5 and 100.
    +   *
        * The number of delivery attempts is defined as 1 + (the sum of number of
        * NACKs and 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 honored on a best effort basis.
    +   *
        * If this parameter is 0, a default value of 5 is used.
        * 
    * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index 76af0499c985..c1e6ded198bd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSchemaRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -318,8 +315,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -347,11 +344,20 @@ public com.google.pubsub.v1.DeleteSchemaRequest build() { public com.google.pubsub.v1.DeleteSchemaRequest buildPartial() { com.google.pubsub.v1.DeleteSchemaRequest result = new com.google.pubsub.v1.DeleteSchemaRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.DeleteSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -399,6 +405,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSchemaRequest other) { if (other == com.google.pubsub.v1.DeleteSchemaRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -430,7 +437,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -450,6 +457,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -520,8 +529,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -540,8 +549,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -565,8 +574,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index a6779112fc98..030124772dc4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSchemaRevisionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; @@ -69,14 +64,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
        * Required. The name of the schema revision to be deleted, with a revision ID
        * explicitly included.
    -   * Example: projects/123/schemas/my-schema@c7cfa2a8
    +   *
    +   * Example: `projects/123/schemas/my-schema@c7cfa2a8`
        * 
    * * @@ -103,7 +101,8 @@ public java.lang.String getName() { *
        * Required. The name of the schema revision to be deleted, with a revision ID
        * explicitly included.
    -   * Example: projects/123/schemas/my-schema@c7cfa2a8
    +   *
    +   * Example: `projects/123/schemas/my-schema@c7cfa2a8`
        * 
    * * @@ -126,21 +125,27 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REVISION_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object revisionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; /** * * *
    -   * Required. The revision ID to roll back to.
    -   * It must be a revision of the same schema.
    -   *   Example: c7cfa2a8
    +   * Optional. This field is deprecated and should not be used for specifying
    +   * the revision ID. The revision ID should be specified via the `name`
    +   * parameter.
        * 
    * - * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The revisionId. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { @@ -156,16 +161,20 @@ public java.lang.String getRevisionId() { * * *
    -   * Required. The revision ID to roll back to.
    -   * It must be a revision of the same schema.
    -   *   Example: c7cfa2a8
    +   * Optional. This field is deprecated and should not be used for specifying
    +   * the revision ID. The revision ID should be specified via the `name`
    +   * parameter.
        * 
    * - * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The bytes for revisionId. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { @@ -384,10 +393,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - revisionId_ = ""; - return this; } @@ -415,12 +423,23 @@ public com.google.pubsub.v1.DeleteSchemaRevisionRequest build() { public com.google.pubsub.v1.DeleteSchemaRevisionRequest buildPartial() { com.google.pubsub.v1.DeleteSchemaRevisionRequest result = new com.google.pubsub.v1.DeleteSchemaRevisionRequest(this); - result.name_ = name_; - result.revisionId_ = revisionId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.DeleteSchemaRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionId_ = revisionId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -469,10 +488,12 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSchemaRevisionRequest other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getRevisionId().isEmpty()) { revisionId_ = other.revisionId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -504,13 +525,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { revisionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -530,6 +551,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -537,7 +560,8 @@ public Builder mergeFrom( *
          * Required. The name of the schema revision to be deleted, with a revision ID
          * explicitly included.
    -     * Example: projects/123/schemas/my-schema@c7cfa2a8
    +     *
    +     * Example: `projects/123/schemas/my-schema@c7cfa2a8`
          * 
    * * @@ -563,7 +587,8 @@ public java.lang.String getName() { *
          * Required. The name of the schema revision to be deleted, with a revision ID
          * explicitly included.
    -     * Example: projects/123/schemas/my-schema@c7cfa2a8
    +     *
    +     * Example: `projects/123/schemas/my-schema@c7cfa2a8`
          * 
    * * @@ -589,7 +614,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
          * Required. The name of the schema revision to be deleted, with a revision ID
          * explicitly included.
    -     * Example: projects/123/schemas/my-schema@c7cfa2a8
    +     *
    +     * Example: `projects/123/schemas/my-schema@c7cfa2a8`
          * 
    * * @@ -603,8 +629,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -614,7 +640,8 @@ public Builder setName(java.lang.String value) { *
          * Required. The name of the schema revision to be deleted, with a revision ID
          * explicitly included.
    -     * Example: projects/123/schemas/my-schema@c7cfa2a8
    +     *
    +     * Example: `projects/123/schemas/my-schema@c7cfa2a8`
          * 
    * * @@ -624,8 +651,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -635,7 +662,8 @@ public Builder clearName() { *
          * Required. The name of the schema revision to be deleted, with a revision ID
          * explicitly included.
    -     * Example: projects/123/schemas/my-schema@c7cfa2a8
    +     *
    +     * Example: `projects/123/schemas/my-schema@c7cfa2a8`
          * 
    * * @@ -650,8 +678,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -661,15 +689,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * Required. The revision ID to roll back to.
    -     * It must be a revision of the same schema.
    -     *   Example: c7cfa2a8
    +     * Optional. This field is deprecated and should not be used for specifying
    +     * the revision ID. The revision ID should be specified via the `name`
    +     * parameter.
          * 
    * - * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The revisionId. */ + @java.lang.Deprecated public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { @@ -685,15 +717,19 @@ public java.lang.String getRevisionId() { * * *
    -     * Required. The revision ID to roll back to.
    -     * It must be a revision of the same schema.
    -     *   Example: c7cfa2a8
    +     * Optional. This field is deprecated and should not be used for specifying
    +     * the revision ID. The revision ID should be specified via the `name`
    +     * parameter.
          * 
    * - * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The bytes for revisionId. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { @@ -709,22 +745,26 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { * * *
    -     * Required. The revision ID to roll back to.
    -     * It must be a revision of the same schema.
    -     *   Example: c7cfa2a8
    +     * Optional. This field is deprecated and should not be used for specifying
    +     * the revision ID. The revision ID should be specified via the `name`
    +     * parameter.
          * 
    * - * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @param value The revisionId to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setRevisionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - revisionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -732,18 +772,22 @@ public Builder setRevisionId(java.lang.String value) { * * *
    -     * Required. The revision ID to roll back to.
    -     * It must be a revision of the same schema.
    -     *   Example: c7cfa2a8
    +     * Optional. This field is deprecated and should not be used for specifying
    +     * the revision ID. The revision ID should be specified via the `name`
    +     * parameter.
          * 
    * - * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearRevisionId() { - revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -751,23 +795,27 @@ public Builder clearRevisionId() { * * *
    -     * Required. The revision ID to roll back to.
    -     * It must be a revision of the same schema.
    -     *   Example: c7cfa2a8
    +     * Optional. This field is deprecated and should not be used for specifying
    +     * the revision ID. The revision ID should be specified via the `name`
    +     * parameter.
          * 
    * - * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @param value The bytes for revisionId to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - revisionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 28ded9ab4a85..b5540b2a8d15 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -29,7 +29,8 @@ public interface DeleteSchemaRevisionRequestOrBuilder *
        * Required. The name of the schema revision to be deleted, with a revision ID
        * explicitly included.
    -   * Example: projects/123/schemas/my-schema@c7cfa2a8
    +   *
    +   * Example: `projects/123/schemas/my-schema@c7cfa2a8`
        * 
    * * @@ -45,7 +46,8 @@ public interface DeleteSchemaRevisionRequestOrBuilder *
        * Required. The name of the schema revision to be deleted, with a revision ID
        * explicitly included.
    -   * Example: projects/123/schemas/my-schema@c7cfa2a8
    +   *
    +   * Example: `projects/123/schemas/my-schema@c7cfa2a8`
        * 
    * * @@ -60,28 +62,36 @@ public interface DeleteSchemaRevisionRequestOrBuilder * * *
    -   * Required. The revision ID to roll back to.
    -   * It must be a revision of the same schema.
    -   *   Example: c7cfa2a8
    +   * Optional. This field is deprecated and should not be used for specifying
    +   * the revision ID. The revision ID should be specified via the `name`
    +   * parameter.
        * 
    * - * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The revisionId. */ + @java.lang.Deprecated java.lang.String getRevisionId(); /** * * *
    -   * Required. The revision ID to roll back to.
    -   * It must be a revision of the same schema.
    -   *   Example: c7cfa2a8
    +   * Optional. This field is deprecated and should not be used for specifying
    +   * the revision ID. The revision ID should be specified via the `name`
    +   * parameter.
        * 
    * - * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string revision_id = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See + * google/pubsub/v1/schema.proto;l=331 * @return The bytes for revisionId. */ + @java.lang.Deprecated com.google.protobuf.ByteString getRevisionIdBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 8ce57a9b89cb..0d4b02596de1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSnapshotRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SNAPSHOT_FIELD_NUMBER = 1; - private volatile java.lang.Object snapshot_; + + @SuppressWarnings("serial") + private volatile java.lang.Object snapshot_ = ""; /** * * @@ -319,8 +316,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; snapshot_ = ""; - return this; } @@ -348,11 +345,20 @@ public com.google.pubsub.v1.DeleteSnapshotRequest build() { public com.google.pubsub.v1.DeleteSnapshotRequest buildPartial() { com.google.pubsub.v1.DeleteSnapshotRequest result = new com.google.pubsub.v1.DeleteSnapshotRequest(this); - result.snapshot_ = snapshot_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.DeleteSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshot_ = snapshot_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -400,6 +406,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSnapshotRequest other) { if (other == com.google.pubsub.v1.DeleteSnapshotRequest.getDefaultInstance()) return this; if (!other.getSnapshot().isEmpty()) { snapshot_ = other.snapshot_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -431,7 +438,7 @@ public Builder mergeFrom( case 10: { snapshot_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -451,6 +458,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object snapshot_ = ""; /** * @@ -521,8 +530,8 @@ public Builder setSnapshot(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - snapshot_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -541,8 +550,8 @@ public Builder setSnapshot(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSnapshot() { - snapshot_ = getDefaultInstance().getSnapshot(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -566,8 +575,8 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - snapshot_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index c8007fe40431..ff10872ea0c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSubscriptionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object subscription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; /** * * @@ -319,8 +316,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; subscription_ = ""; - return this; } @@ -348,11 +345,20 @@ public com.google.pubsub.v1.DeleteSubscriptionRequest build() { public com.google.pubsub.v1.DeleteSubscriptionRequest buildPartial() { com.google.pubsub.v1.DeleteSubscriptionRequest result = new com.google.pubsub.v1.DeleteSubscriptionRequest(this); - result.subscription_ = subscription_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.DeleteSubscriptionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subscription_ = subscription_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -400,6 +406,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteSubscriptionRequest other) { if (other == com.google.pubsub.v1.DeleteSubscriptionRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -431,7 +438,7 @@ public Builder mergeFrom( case 10: { subscription_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -451,6 +458,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object subscription_ = ""; /** * @@ -521,8 +530,8 @@ public Builder setSubscription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -541,8 +550,8 @@ public Builder setSubscription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSubscription() { - subscription_ = getDefaultInstance().getSubscription(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -566,8 +575,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index f75ec13d8843..9674387af24f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteTopicRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TOPIC_FIELD_NUMBER = 1; - private volatile java.lang.Object topic_; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; /** * * @@ -318,8 +315,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; topic_ = ""; - return this; } @@ -347,11 +344,20 @@ public com.google.pubsub.v1.DeleteTopicRequest build() { public com.google.pubsub.v1.DeleteTopicRequest buildPartial() { com.google.pubsub.v1.DeleteTopicRequest result = new com.google.pubsub.v1.DeleteTopicRequest(this); - result.topic_ = topic_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.DeleteTopicRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topic_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -399,6 +405,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DeleteTopicRequest other) { if (other == com.google.pubsub.v1.DeleteTopicRequest.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -430,7 +437,7 @@ public Builder mergeFrom( case 10: { topic_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -450,6 +457,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object topic_ = ""; /** * @@ -520,8 +529,8 @@ public Builder setTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - topic_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -540,8 +549,8 @@ public Builder setTopic(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTopic() { - topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -565,8 +574,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - topic_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index a232e2a6bb4e..f6bd9b3f23bf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetachSubscriptionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object subscription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; /** * * @@ -319,8 +316,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; subscription_ = ""; - return this; } @@ -348,11 +345,20 @@ public com.google.pubsub.v1.DetachSubscriptionRequest build() { public com.google.pubsub.v1.DetachSubscriptionRequest buildPartial() { com.google.pubsub.v1.DetachSubscriptionRequest result = new com.google.pubsub.v1.DetachSubscriptionRequest(this); - result.subscription_ = subscription_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.DetachSubscriptionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subscription_ = subscription_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -400,6 +406,7 @@ public Builder mergeFrom(com.google.pubsub.v1.DetachSubscriptionRequest other) { if (other == com.google.pubsub.v1.DetachSubscriptionRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -431,7 +438,7 @@ public Builder mergeFrom( case 10: { subscription_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -451,6 +458,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object subscription_ = ""; /** * @@ -521,8 +530,8 @@ public Builder setSubscription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -541,8 +550,8 @@ public Builder setSubscription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSubscription() { - subscription_ = getDefaultInstance().getSubscription(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -566,8 +575,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index f2cb157cfc24..b9e8a8769b83 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -46,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DetachSubscriptionResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 5ed187030b96..975358e93f60 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -46,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExpirationPolicy(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; @@ -124,7 +119,7 @@ public com.google.protobuf.Duration getTtl() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { - return getTtl(); + return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; } private byte memoizedIsInitialized = -1; @@ -328,10 +323,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (ttlBuilder_ == null) { - ttl_ = null; - } else { - ttl_ = null; + bitField0_ = 0; + ttl_ = null; + if (ttlBuilder_ != null) { + ttlBuilder_.dispose(); ttlBuilder_ = null; } return this; @@ -361,15 +356,20 @@ public com.google.pubsub.v1.ExpirationPolicy build() { public com.google.pubsub.v1.ExpirationPolicy buildPartial() { com.google.pubsub.v1.ExpirationPolicy result = new com.google.pubsub.v1.ExpirationPolicy(this); - if (ttlBuilder_ == null) { - result.ttl_ = ttl_; - } else { - result.ttl_ = ttlBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ExpirationPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ttl_ = ttlBuilder_ == null ? ttl_ : ttlBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -447,7 +447,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -467,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Duration ttl_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -490,7 +492,7 @@ public Builder mergeFrom( * @return Whether the ttl field is set. */ public boolean hasTtl() { - return ttlBuilder_ != null || ttl_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -535,11 +537,11 @@ public Builder setTtl(com.google.protobuf.Duration value) { throw new NullPointerException(); } ttl_ = value; - onChanged(); } else { ttlBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -559,11 +561,11 @@ public Builder setTtl(com.google.protobuf.Duration value) { public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { if (ttlBuilder_ == null) { ttl_ = builderForValue.build(); - onChanged(); } else { ttlBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -582,16 +584,18 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { */ public Builder mergeTtl(com.google.protobuf.Duration value) { if (ttlBuilder_ == null) { - if (ttl_ != null) { - ttl_ = com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && ttl_ != null + && ttl_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTtlBuilder().mergeFrom(value); } else { ttl_ = value; } - onChanged(); } else { ttlBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -609,14 +613,13 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { * .google.protobuf.Duration ttl = 1; */ public Builder clearTtl() { - if (ttlBuilder_ == null) { - ttl_ = null; - onChanged(); - } else { - ttl_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + ttl_ = null; + if (ttlBuilder_ != null) { + ttlBuilder_.dispose(); ttlBuilder_ = null; } - + onChanged(); return this; } /** @@ -634,7 +637,7 @@ public Builder clearTtl() { * .google.protobuf.Duration ttl = 1; */ public com.google.protobuf.Duration.Builder getTtlBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTtlFieldBuilder().getBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 216c903435e0..4fa498b2bcbc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSchemaRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; @@ -69,7 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -124,7 +121,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VIEW_FIELD_NUMBER = 2; - private int view_; + private int view_ = 0; /** * * @@ -155,8 +152,7 @@ public int getViewValue() { */ @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } @@ -364,10 +360,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - view_ = 0; - return this; } @@ -395,12 +390,23 @@ public com.google.pubsub.v1.GetSchemaRequest build() { public com.google.pubsub.v1.GetSchemaRequest buildPartial() { com.google.pubsub.v1.GetSchemaRequest result = new com.google.pubsub.v1.GetSchemaRequest(this); - result.name_ = name_; - result.view_ = view_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.GetSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -448,6 +454,7 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSchemaRequest other) { if (other == com.google.pubsub.v1.GetSchemaRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.view_ != 0) { @@ -482,13 +489,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { view_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -508,6 +515,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -578,8 +587,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -598,8 +607,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -623,8 +632,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -660,8 +669,8 @@ public int getViewValue() { * @return This builder for chaining. */ public Builder setViewValue(int value) { - view_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -679,8 +688,7 @@ public Builder setViewValue(int value) { */ @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } /** @@ -700,7 +708,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; view_ = value.getNumber(); onChanged(); return this; @@ -718,7 +726,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { * @return This builder for chaining. */ public Builder clearView() { - + bitField0_ = (bitField0_ & ~0x00000002); view_ = 0; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 6a6ae9bc8279..6295e6d363ea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSnapshotRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SNAPSHOT_FIELD_NUMBER = 1; - private volatile java.lang.Object snapshot_; + + @SuppressWarnings("serial") + private volatile java.lang.Object snapshot_ = ""; /** * * @@ -318,8 +315,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; snapshot_ = ""; - return this; } @@ -347,11 +344,20 @@ public com.google.pubsub.v1.GetSnapshotRequest build() { public com.google.pubsub.v1.GetSnapshotRequest buildPartial() { com.google.pubsub.v1.GetSnapshotRequest result = new com.google.pubsub.v1.GetSnapshotRequest(this); - result.snapshot_ = snapshot_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.GetSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshot_ = snapshot_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -399,6 +405,7 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSnapshotRequest other) { if (other == com.google.pubsub.v1.GetSnapshotRequest.getDefaultInstance()) return this; if (!other.getSnapshot().isEmpty()) { snapshot_ = other.snapshot_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -430,7 +437,7 @@ public Builder mergeFrom( case 10: { snapshot_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -450,6 +457,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object snapshot_ = ""; /** * @@ -520,8 +529,8 @@ public Builder setSnapshot(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - snapshot_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -540,8 +549,8 @@ public Builder setSnapshot(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSnapshot() { - snapshot_ = getDefaultInstance().getSnapshot(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -565,8 +574,8 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - snapshot_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 503a81252ddf..7738ad6d687e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSubscriptionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object subscription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; /** * * @@ -319,8 +316,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; subscription_ = ""; - return this; } @@ -348,11 +345,20 @@ public com.google.pubsub.v1.GetSubscriptionRequest build() { public com.google.pubsub.v1.GetSubscriptionRequest buildPartial() { com.google.pubsub.v1.GetSubscriptionRequest result = new com.google.pubsub.v1.GetSubscriptionRequest(this); - result.subscription_ = subscription_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.GetSubscriptionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subscription_ = subscription_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -400,6 +406,7 @@ public Builder mergeFrom(com.google.pubsub.v1.GetSubscriptionRequest other) { if (other == com.google.pubsub.v1.GetSubscriptionRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -431,7 +438,7 @@ public Builder mergeFrom( case 10: { subscription_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -451,6 +458,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object subscription_ = ""; /** * @@ -521,8 +530,8 @@ public Builder setSubscription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -541,8 +550,8 @@ public Builder setSubscription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSubscription() { - subscription_ = getDefaultInstance().getSubscription(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -566,8 +575,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 70cdef7607e6..ac39d1bb9fea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetTopicRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TOPIC_FIELD_NUMBER = 1; - private volatile java.lang.Object topic_; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; /** * * @@ -317,8 +314,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; topic_ = ""; - return this; } @@ -345,11 +342,20 @@ public com.google.pubsub.v1.GetTopicRequest build() { @java.lang.Override public com.google.pubsub.v1.GetTopicRequest buildPartial() { com.google.pubsub.v1.GetTopicRequest result = new com.google.pubsub.v1.GetTopicRequest(this); - result.topic_ = topic_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.GetTopicRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topic_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -397,6 +403,7 @@ public Builder mergeFrom(com.google.pubsub.v1.GetTopicRequest other) { if (other == com.google.pubsub.v1.GetTopicRequest.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -428,7 +435,7 @@ public Builder mergeFrom( case 10: { topic_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -448,6 +455,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object topic_ = ""; /** * @@ -518,8 +527,8 @@ public Builder setTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - topic_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -538,8 +547,8 @@ public Builder setTopic(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTopic() { - topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -563,8 +572,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - topic_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 2880af64a8ff..97ff9f5e6be7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchemaRevisionsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; @@ -70,7 +65,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -123,7 +120,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VIEW_FIELD_NUMBER = 2; - private int view_; + private int view_ = 0; /** * * @@ -156,13 +153,12 @@ public int getViewValue() { */ @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -180,7 +176,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -454,14 +452,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - view_ = 0; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -489,14 +484,29 @@ public com.google.pubsub.v1.ListSchemaRevisionsRequest build() { public com.google.pubsub.v1.ListSchemaRevisionsRequest buildPartial() { com.google.pubsub.v1.ListSchemaRevisionsRequest result = new com.google.pubsub.v1.ListSchemaRevisionsRequest(this); - result.name_ = name_; - result.view_ = view_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ListSchemaRevisionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -545,6 +555,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemaRevisionsRequest other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.view_ != 0) { @@ -555,6 +566,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemaRevisionsRequest other) } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -586,25 +598,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { view_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -624,6 +636,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -691,8 +705,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -710,8 +724,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -734,8 +748,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -773,8 +787,8 @@ public int getViewValue() { * @return This builder for chaining. */ public Builder setViewValue(int value) { - view_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -793,8 +807,7 @@ public Builder setViewValue(int value) { */ @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } /** @@ -815,7 +828,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; view_ = value.getNumber(); onChanged(); return this; @@ -834,7 +847,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { * @return This builder for chaining. */ public Builder clearView() { - + bitField0_ = (bitField0_ & ~0x00000002); view_ = 0; onChanged(); return this; @@ -871,6 +884,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -886,7 +900,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -956,8 +970,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -974,8 +988,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -997,8 +1011,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 417e71d01c11..989afe4853c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchemaRevisionsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; @@ -69,6 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SCHEMAS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List schemas_; /** * @@ -137,7 +134,9 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -395,6 +394,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (schemasBuilder_ == null) { schemas_ = java.util.Collections.emptyList(); } else { @@ -403,7 +403,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -431,7 +430,16 @@ public com.google.pubsub.v1.ListSchemaRevisionsResponse build() { public com.google.pubsub.v1.ListSchemaRevisionsResponse buildPartial() { com.google.pubsub.v1.ListSchemaRevisionsResponse result = new com.google.pubsub.v1.ListSchemaRevisionsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.pubsub.v1.ListSchemaRevisionsResponse result) { if (schemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { schemas_ = java.util.Collections.unmodifiableList(schemas_); @@ -441,9 +449,13 @@ public com.google.pubsub.v1.ListSchemaRevisionsResponse buildPartial() { } else { result.schemas_ = schemasBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.pubsub.v1.ListSchemaRevisionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -521,6 +533,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemaRevisionsResponse other) } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -564,7 +577,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -994,8 +1007,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1012,8 +1025,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1035,8 +1048,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 5e67fc55e324..6e11925afc0b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchemasRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; @@ -70,7 +65,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +122,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int VIEW_FIELD_NUMBER = 2; - private int view_; + private int view_ = 0; /** * * @@ -158,13 +155,12 @@ public int getViewValue() { */ @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -182,7 +178,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -457,14 +455,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - view_ = 0; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -492,14 +487,29 @@ public com.google.pubsub.v1.ListSchemasRequest build() { public com.google.pubsub.v1.ListSchemasRequest buildPartial() { com.google.pubsub.v1.ListSchemasRequest result = new com.google.pubsub.v1.ListSchemasRequest(this); - result.parent_ = parent_; - result.view_ = view_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ListSchemasRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -547,6 +557,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemasRequest other) { if (other == com.google.pubsub.v1.ListSchemasRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.view_ != 0) { @@ -557,6 +568,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemasRequest other) { } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -588,25 +600,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { view_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -626,6 +638,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -696,8 +710,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -716,8 +730,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -741,8 +755,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -780,8 +794,8 @@ public int getViewValue() { * @return This builder for chaining. */ public Builder setViewValue(int value) { - view_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -800,8 +814,7 @@ public Builder setViewValue(int value) { */ @java.lang.Override public com.google.pubsub.v1.SchemaView getView() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.valueOf(view_); + com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } /** @@ -822,7 +835,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; view_ = value.getNumber(); onChanged(); return this; @@ -841,7 +854,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { * @return This builder for chaining. */ public Builder clearView() { - + bitField0_ = (bitField0_ & ~0x00000002); view_ = 0; onChanged(); return this; @@ -878,6 +891,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -893,7 +907,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -966,8 +980,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -985,8 +999,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1009,8 +1023,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 8dca43ab61c8..368e715b340c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchemasResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; @@ -69,6 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SCHEMAS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List schemas_; /** * @@ -137,7 +134,9 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -394,6 +393,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (schemasBuilder_ == null) { schemas_ = java.util.Collections.emptyList(); } else { @@ -402,7 +402,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -430,7 +429,15 @@ public com.google.pubsub.v1.ListSchemasResponse build() { public com.google.pubsub.v1.ListSchemasResponse buildPartial() { com.google.pubsub.v1.ListSchemasResponse result = new com.google.pubsub.v1.ListSchemasResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.pubsub.v1.ListSchemasResponse result) { if (schemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { schemas_ = java.util.Collections.unmodifiableList(schemas_); @@ -440,9 +447,13 @@ public com.google.pubsub.v1.ListSchemasResponse buildPartial() { } else { result.schemas_ = schemasBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.pubsub.v1.ListSchemasResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -519,6 +530,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemasResponse other) { } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -562,7 +574,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -992,8 +1004,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1010,8 +1022,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1033,8 +1045,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index c89db9526754..fb37aec5396b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSnapshotsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; @@ -69,7 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; /** * * @@ -124,7 +121,7 @@ public com.google.protobuf.ByteString getProjectBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -142,7 +139,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -409,12 +408,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; project_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -442,13 +439,26 @@ public com.google.pubsub.v1.ListSnapshotsRequest build() { public com.google.pubsub.v1.ListSnapshotsRequest buildPartial() { com.google.pubsub.v1.ListSnapshotsRequest result = new com.google.pubsub.v1.ListSnapshotsRequest(this); - result.project_ = project_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ListSnapshotsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -496,6 +506,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsRequest other) { if (other == com.google.pubsub.v1.ListSnapshotsRequest.getDefaultInstance()) return this; if (!other.getProject().isEmpty()) { project_ = other.project_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -503,6 +514,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsRequest other) { } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -534,19 +546,19 @@ public Builder mergeFrom( case 10: { project_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -566,6 +578,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object project_ = ""; /** * @@ -636,8 +650,8 @@ public Builder setProject(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - project_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -656,8 +670,8 @@ public Builder setProject(java.lang.String value) { * @return This builder for chaining. */ public Builder clearProject() { - project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -681,8 +695,8 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - project_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -718,6 +732,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -733,7 +748,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -806,8 +821,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -825,8 +840,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -849,8 +864,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 83ff4f716ff6..04f8668c86d9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSnapshotsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; @@ -69,6 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SNAPSHOTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List snapshots_; /** * @@ -138,7 +135,9 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -396,6 +395,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (snapshotsBuilder_ == null) { snapshots_ = java.util.Collections.emptyList(); } else { @@ -404,7 +404,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -432,7 +431,15 @@ public com.google.pubsub.v1.ListSnapshotsResponse build() { public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { com.google.pubsub.v1.ListSnapshotsResponse result = new com.google.pubsub.v1.ListSnapshotsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.pubsub.v1.ListSnapshotsResponse result) { if (snapshotsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { snapshots_ = java.util.Collections.unmodifiableList(snapshots_); @@ -442,9 +449,13 @@ public com.google.pubsub.v1.ListSnapshotsResponse buildPartial() { } else { result.snapshots_ = snapshotsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.pubsub.v1.ListSnapshotsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -521,6 +532,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsResponse other) { } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -564,7 +576,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -996,8 +1008,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1014,8 +1026,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1037,8 +1049,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 977a648439e0..18b22ab18b13 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSubscriptionsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; @@ -69,7 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; /** * * @@ -124,7 +121,7 @@ public com.google.protobuf.ByteString getProjectBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -142,7 +139,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -409,12 +408,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; project_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -442,13 +439,26 @@ public com.google.pubsub.v1.ListSubscriptionsRequest build() { public com.google.pubsub.v1.ListSubscriptionsRequest buildPartial() { com.google.pubsub.v1.ListSubscriptionsRequest result = new com.google.pubsub.v1.ListSubscriptionsRequest(this); - result.project_ = project_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ListSubscriptionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -496,6 +506,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsRequest other) { if (other == com.google.pubsub.v1.ListSubscriptionsRequest.getDefaultInstance()) return this; if (!other.getProject().isEmpty()) { project_ = other.project_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -503,6 +514,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsRequest other) { } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -534,19 +546,19 @@ public Builder mergeFrom( case 10: { project_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -566,6 +578,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object project_ = ""; /** * @@ -636,8 +650,8 @@ public Builder setProject(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - project_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -656,8 +670,8 @@ public Builder setProject(java.lang.String value) { * @return This builder for chaining. */ public Builder clearProject() { - project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -681,8 +695,8 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - project_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -718,6 +732,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -733,7 +748,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -806,8 +821,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -825,8 +840,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -849,8 +864,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 5272760f566e..3b04845c96cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSubscriptionsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; @@ -69,6 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List subscriptions_; /** * @@ -138,7 +135,9 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -398,6 +397,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (subscriptionsBuilder_ == null) { subscriptions_ = java.util.Collections.emptyList(); } else { @@ -406,7 +406,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -434,7 +433,15 @@ public com.google.pubsub.v1.ListSubscriptionsResponse build() { public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { com.google.pubsub.v1.ListSubscriptionsResponse result = new com.google.pubsub.v1.ListSubscriptionsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.pubsub.v1.ListSubscriptionsResponse result) { if (subscriptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { subscriptions_ = java.util.Collections.unmodifiableList(subscriptions_); @@ -444,9 +451,13 @@ public com.google.pubsub.v1.ListSubscriptionsResponse buildPartial() { } else { result.subscriptions_ = subscriptionsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.pubsub.v1.ListSubscriptionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -523,6 +534,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsResponse other) { } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -567,7 +579,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1007,8 +1019,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1026,8 +1038,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1050,8 +1062,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 2c192cd51205..28083755023a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSnapshotsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; @@ -69,7 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TOPIC_FIELD_NUMBER = 1; - private volatile java.lang.Object topic_; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; /** * * @@ -124,7 +121,7 @@ public com.google.protobuf.ByteString getTopicBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -142,7 +139,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -409,12 +408,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; topic_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -442,13 +439,26 @@ public com.google.pubsub.v1.ListTopicSnapshotsRequest build() { public com.google.pubsub.v1.ListTopicSnapshotsRequest buildPartial() { com.google.pubsub.v1.ListTopicSnapshotsRequest result = new com.google.pubsub.v1.ListTopicSnapshotsRequest(this); - result.topic_ = topic_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ListTopicSnapshotsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -496,6 +506,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsRequest other) { if (other == com.google.pubsub.v1.ListTopicSnapshotsRequest.getDefaultInstance()) return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -503,6 +514,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsRequest other) { } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -534,19 +546,19 @@ public Builder mergeFrom( case 10: { topic_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -566,6 +578,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object topic_ = ""; /** * @@ -636,8 +650,8 @@ public Builder setTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - topic_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -656,8 +670,8 @@ public Builder setTopic(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTopic() { - topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -681,8 +695,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - topic_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -718,6 +732,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -733,7 +748,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -806,8 +821,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -825,8 +840,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -849,8 +864,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 06da0e9b4d6a..6d228e04572c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -38,7 +38,7 @@ private ListTopicSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builde } private ListTopicSnapshotsResponse() { - snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; + snapshots_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSnapshotsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; @@ -69,7 +64,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SNAPSHOTS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList snapshots_; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList snapshots_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -130,7 +128,9 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -395,10 +395,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + snapshots_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; - return this; } @@ -426,17 +425,24 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse build() { public com.google.pubsub.v1.ListTopicSnapshotsResponse buildPartial() { com.google.pubsub.v1.ListTopicSnapshotsResponse result = new com.google.pubsub.v1.ListTopicSnapshotsResponse(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - snapshots_ = snapshots_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + if (bitField0_ != 0) { + buildPartial0(result); } - result.snapshots_ = snapshots_; - result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ListTopicSnapshotsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + snapshots_.makeImmutable(); + result.snapshots_ = snapshots_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -486,7 +492,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) if (!other.snapshots_.isEmpty()) { if (snapshots_.isEmpty()) { snapshots_ = other.snapshots_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureSnapshotsIsMutable(); snapshots_.addAll(other.snapshots_); @@ -495,6 +501,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSnapshotsResponse other) } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -533,7 +540,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -555,14 +562,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList snapshots_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList snapshots_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSnapshotsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!snapshots_.isModifiable()) { snapshots_ = new com.google.protobuf.LazyStringArrayList(snapshots_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -576,7 +583,8 @@ private void ensureSnapshotsIsMutable() { * @return A list containing the snapshots. */ public com.google.protobuf.ProtocolStringList getSnapshotsList() { - return snapshots_.getUnmodifiableView(); + snapshots_.makeImmutable(); + return snapshots_; } /** * @@ -641,6 +649,7 @@ public Builder setSnapshots(int index, java.lang.String value) { } ensureSnapshotsIsMutable(); snapshots_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -662,6 +671,7 @@ public Builder addSnapshots(java.lang.String value) { } ensureSnapshotsIsMutable(); snapshots_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -680,6 +690,7 @@ public Builder addSnapshots(java.lang.String value) { public Builder addAllSnapshots(java.lang.Iterable values) { ensureSnapshotsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snapshots_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -695,8 +706,9 @@ public Builder addAllSnapshots(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearSnapshots() { - snapshots_ = com.google.protobuf.LazyStringArrayList.EMPTY; + snapshots_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -719,6 +731,7 @@ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureSnapshotsIsMutable(); snapshots_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -790,8 +803,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -809,8 +822,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -833,8 +846,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index a553a87d005c..89da55072444 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSubscriptionsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; @@ -69,7 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TOPIC_FIELD_NUMBER = 1; - private volatile java.lang.Object topic_; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; /** * * @@ -124,7 +121,7 @@ public com.google.protobuf.ByteString getTopicBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -142,7 +139,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -409,12 +408,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; topic_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -442,13 +439,26 @@ public com.google.pubsub.v1.ListTopicSubscriptionsRequest build() { public com.google.pubsub.v1.ListTopicSubscriptionsRequest buildPartial() { com.google.pubsub.v1.ListTopicSubscriptionsRequest result = new com.google.pubsub.v1.ListTopicSubscriptionsRequest(this); - result.topic_ = topic_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ListTopicSubscriptionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -497,6 +507,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsRequest othe return this; if (!other.getTopic().isEmpty()) { topic_ = other.topic_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -504,6 +515,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsRequest othe } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -535,19 +547,19 @@ public Builder mergeFrom( case 10: { topic_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -567,6 +579,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object topic_ = ""; /** * @@ -637,8 +651,8 @@ public Builder setTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - topic_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -657,8 +671,8 @@ public Builder setTopic(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTopic() { - topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +696,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - topic_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -719,6 +733,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -734,7 +749,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -807,8 +822,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -826,8 +841,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -850,8 +865,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 45a1ff414989..27e96f6501c0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -39,7 +39,7 @@ private ListTopicSubscriptionsResponse( } private ListTopicSubscriptionsResponse() { - subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicSubscriptionsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; @@ -70,7 +65,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUBSCRIPTIONS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList subscriptions_; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subscriptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -131,7 +129,9 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -396,10 +396,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; - return this; } @@ -427,17 +426,24 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse build() { public com.google.pubsub.v1.ListTopicSubscriptionsResponse buildPartial() { com.google.pubsub.v1.ListTopicSubscriptionsResponse result = new com.google.pubsub.v1.ListTopicSubscriptionsResponse(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - subscriptions_ = subscriptions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + if (bitField0_ != 0) { + buildPartial0(result); } - result.subscriptions_ = subscriptions_; - result.nextPageToken_ = nextPageToken_; onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ListTopicSubscriptionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + subscriptions_.makeImmutable(); + result.subscriptions_ = subscriptions_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -487,7 +493,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsResponse oth if (!other.subscriptions_.isEmpty()) { if (subscriptions_.isEmpty()) { subscriptions_ = other.subscriptions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureSubscriptionsIsMutable(); subscriptions_.addAll(other.subscriptions_); @@ -496,6 +502,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicSubscriptionsResponse oth } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -534,7 +541,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -556,14 +563,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList subscriptions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList subscriptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSubscriptionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!subscriptions_.isModifiable()) { subscriptions_ = new com.google.protobuf.LazyStringArrayList(subscriptions_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -577,7 +584,8 @@ private void ensureSubscriptionsIsMutable() { * @return A list containing the subscriptions. */ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { - return subscriptions_.getUnmodifiableView(); + subscriptions_.makeImmutable(); + return subscriptions_; } /** * @@ -642,6 +650,7 @@ public Builder setSubscriptions(int index, java.lang.String value) { } ensureSubscriptionsIsMutable(); subscriptions_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -663,6 +672,7 @@ public Builder addSubscriptions(java.lang.String value) { } ensureSubscriptionsIsMutable(); subscriptions_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -681,6 +691,7 @@ public Builder addSubscriptions(java.lang.String value) { public Builder addAllSubscriptions(java.lang.Iterable values) { ensureSubscriptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subscriptions_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -696,8 +707,9 @@ public Builder addAllSubscriptions(java.lang.Iterable values) * @return This builder for chaining. */ public Builder clearSubscriptions() { - subscriptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -720,6 +732,7 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureSubscriptionsIsMutable(); subscriptions_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -791,8 +804,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -810,8 +823,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -834,8 +847,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 5090a1a2705b..f3f738e2cd7d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; @@ -69,7 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; /** * * @@ -124,7 +121,7 @@ public com.google.protobuf.ByteString getProjectBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -142,7 +139,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -408,12 +407,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; project_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -441,13 +438,26 @@ public com.google.pubsub.v1.ListTopicsRequest build() { public com.google.pubsub.v1.ListTopicsRequest buildPartial() { com.google.pubsub.v1.ListTopicsRequest result = new com.google.pubsub.v1.ListTopicsRequest(this); - result.project_ = project_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ListTopicsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,6 +505,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsRequest other) { if (other == com.google.pubsub.v1.ListTopicsRequest.getDefaultInstance()) return this; if (!other.getProject().isEmpty()) { project_ = other.project_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -502,6 +513,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsRequest other) { } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -533,19 +545,19 @@ public Builder mergeFrom( case 10: { project_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -565,6 +577,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object project_ = ""; /** * @@ -635,8 +649,8 @@ public Builder setProject(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - project_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -655,8 +669,8 @@ public Builder setProject(java.lang.String value) { * @return This builder for chaining. */ public Builder clearProject() { - project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -680,8 +694,8 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - project_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -717,6 +731,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -732,7 +747,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -805,8 +820,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -824,8 +839,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -848,8 +863,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 93556ef25929..2855ea04de98 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListTopicsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; @@ -69,6 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TOPICS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List topics_; /** * @@ -137,7 +134,9 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -394,6 +393,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (topicsBuilder_ == null) { topics_ = java.util.Collections.emptyList(); } else { @@ -402,7 +402,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -430,7 +429,15 @@ public com.google.pubsub.v1.ListTopicsResponse build() { public com.google.pubsub.v1.ListTopicsResponse buildPartial() { com.google.pubsub.v1.ListTopicsResponse result = new com.google.pubsub.v1.ListTopicsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.pubsub.v1.ListTopicsResponse result) { if (topicsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { topics_ = java.util.Collections.unmodifiableList(topics_); @@ -440,9 +447,13 @@ public com.google.pubsub.v1.ListTopicsResponse buildPartial() { } else { result.topics_ = topicsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.pubsub.v1.ListTopicsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -519,6 +530,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsResponse other) { } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -562,7 +574,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -990,8 +1002,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1008,8 +1020,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1031,8 +1043,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index d058d7b81193..9d6df8b6a6bd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -38,7 +38,7 @@ private MessageStoragePolicy(com.google.protobuf.GeneratedMessageV3.Builder b } private MessageStoragePolicy() { - allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MessageStoragePolicy(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; @@ -68,7 +63,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList allowedPersistenceRegions_; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedPersistenceRegions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -350,8 +348,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = 0; + allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -379,16 +377,21 @@ public com.google.pubsub.v1.MessageStoragePolicy build() { public com.google.pubsub.v1.MessageStoragePolicy buildPartial() { com.google.pubsub.v1.MessageStoragePolicy result = new com.google.pubsub.v1.MessageStoragePolicy(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - allowedPersistenceRegions_ = allowedPersistenceRegions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + if (bitField0_ != 0) { + buildPartial0(result); } - result.allowedPersistenceRegions_ = allowedPersistenceRegions_; onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.MessageStoragePolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + allowedPersistenceRegions_.makeImmutable(); + result.allowedPersistenceRegions_ = allowedPersistenceRegions_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -437,7 +440,7 @@ public Builder mergeFrom(com.google.pubsub.v1.MessageStoragePolicy other) { if (!other.allowedPersistenceRegions_.isEmpty()) { if (allowedPersistenceRegions_.isEmpty()) { allowedPersistenceRegions_ = other.allowedPersistenceRegions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.addAll(other.allowedPersistenceRegions_); @@ -496,15 +499,15 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList allowedPersistenceRegions_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList allowedPersistenceRegions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAllowedPersistenceRegionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!allowedPersistenceRegions_.isModifiable()) { allowedPersistenceRegions_ = new com.google.protobuf.LazyStringArrayList(allowedPersistenceRegions_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -522,7 +525,8 @@ private void ensureAllowedPersistenceRegionsIsMutable() { * @return A list containing the allowedPersistenceRegions. */ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { - return allowedPersistenceRegions_.getUnmodifiableView(); + allowedPersistenceRegions_.makeImmutable(); + return allowedPersistenceRegions_; } /** * @@ -603,6 +607,7 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { } ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -628,6 +633,7 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) { } ensureAllowedPersistenceRegionsIsMutable(); allowedPersistenceRegions_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -650,6 +656,7 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) { public Builder addAllAllowedPersistenceRegions(java.lang.Iterable values) { ensureAllowedPersistenceRegionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedPersistenceRegions_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -669,8 +676,9 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable values) { ensureAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -863,8 +875,9 @@ public Builder addAllAckIds(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearAckIds() { - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -887,6 +900,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -936,6 +950,7 @@ public int getAckDeadlineSeconds() { public Builder setAckDeadlineSeconds(int value) { ackDeadlineSeconds_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -958,7 +973,7 @@ public Builder setAckDeadlineSeconds(int value) { * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { - + bitField0_ = (bitField0_ & ~0x00000004); ackDeadlineSeconds_ = 0; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 66083f127d3c..2a3bddc2dbba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModifyPushConfigRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object subscription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; /** * * @@ -129,6 +126,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * *
        * 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
    @@ -149,6 +147,7 @@ public boolean hasPushConfig() {
        *
        * 
        * 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
    @@ -169,6 +168,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() {
        *
        * 
        * 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
    @@ -180,7 +180,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() {
        */
       @java.lang.Override
       public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
    -    return getPushConfig();
    +    return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_;
       }
     
       private byte memoizedIsInitialized = -1;
    @@ -394,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         @java.lang.Override
         public Builder clear() {
           super.clear();
    +      bitField0_ = 0;
           subscription_ = "";
    -
    -      if (pushConfigBuilder_ == null) {
    -        pushConfig_ = null;
    -      } else {
    -        pushConfig_ = null;
    +      pushConfig_ = null;
    +      if (pushConfigBuilder_ != null) {
    +        pushConfigBuilder_.dispose();
             pushConfigBuilder_ = null;
           }
           return this;
    @@ -429,16 +428,23 @@ public com.google.pubsub.v1.ModifyPushConfigRequest build() {
         public com.google.pubsub.v1.ModifyPushConfigRequest buildPartial() {
           com.google.pubsub.v1.ModifyPushConfigRequest result =
               new com.google.pubsub.v1.ModifyPushConfigRequest(this);
    -      result.subscription_ = subscription_;
    -      if (pushConfigBuilder_ == null) {
    -        result.pushConfig_ = pushConfig_;
    -      } else {
    -        result.pushConfig_ = pushConfigBuilder_.build();
    +      if (bitField0_ != 0) {
    +        buildPartial0(result);
           }
           onBuilt();
           return result;
         }
     
    +    private void buildPartial0(com.google.pubsub.v1.ModifyPushConfigRequest result) {
    +      int from_bitField0_ = bitField0_;
    +      if (((from_bitField0_ & 0x00000001) != 0)) {
    +        result.subscription_ = subscription_;
    +      }
    +      if (((from_bitField0_ & 0x00000002) != 0)) {
    +        result.pushConfig_ = pushConfigBuilder_ == null ? pushConfig_ : pushConfigBuilder_.build();
    +      }
    +    }
    +
         @java.lang.Override
         public Builder clone() {
           return super.clone();
    @@ -486,6 +492,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ModifyPushConfigRequest other) {
           if (other == com.google.pubsub.v1.ModifyPushConfigRequest.getDefaultInstance()) return this;
           if (!other.getSubscription().isEmpty()) {
             subscription_ = other.subscription_;
    +        bitField0_ |= 0x00000001;
             onChanged();
           }
           if (other.hasPushConfig()) {
    @@ -520,13 +527,13 @@ public Builder mergeFrom(
                 case 10:
                   {
                     subscription_ = input.readStringRequireUtf8();
    -
    +                bitField0_ |= 0x00000001;
                     break;
                   } // case 10
                 case 18:
                   {
                     input.readMessage(getPushConfigFieldBuilder().getBuilder(), extensionRegistry);
    -
    +                bitField0_ |= 0x00000002;
                     break;
                   } // case 18
                 default:
    @@ -546,6 +553,8 @@ public Builder mergeFrom(
           return this;
         }
     
    +    private int bitField0_;
    +
         private java.lang.Object subscription_ = "";
         /**
          *
    @@ -616,8 +625,8 @@ public Builder setSubscription(java.lang.String value) {
           if (value == null) {
             throw new NullPointerException();
           }
    -
           subscription_ = value;
    +      bitField0_ |= 0x00000001;
           onChanged();
           return this;
         }
    @@ -636,8 +645,8 @@ public Builder setSubscription(java.lang.String value) {
          * @return This builder for chaining.
          */
         public Builder clearSubscription() {
    -
           subscription_ = getDefaultInstance().getSubscription();
    +      bitField0_ = (bitField0_ & ~0x00000001);
           onChanged();
           return this;
         }
    @@ -661,8 +670,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
             throw new NullPointerException();
           }
           checkByteStringIsUtf8(value);
    -
           subscription_ = value;
    +      bitField0_ |= 0x00000001;
           onChanged();
           return this;
         }
    @@ -678,6 +687,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
          *
          * 
          * 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
    @@ -690,13 +700,14 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
          * @return Whether the pushConfig field is set.
          */
         public boolean hasPushConfig() {
    -      return pushConfigBuilder_ != null || pushConfig_ != null;
    +      return ((bitField0_ & 0x00000002) != 0);
         }
         /**
          *
          *
          * 
          * 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
    @@ -722,6 +733,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() {
          *
          * 
          * 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
    @@ -737,11 +749,11 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
               throw new NullPointerException();
             }
             pushConfig_ = value;
    -        onChanged();
           } else {
             pushConfigBuilder_.setMessage(value);
           }
    -
    +      bitField0_ |= 0x00000002;
    +      onChanged();
           return this;
         }
         /**
    @@ -749,6 +761,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
          *
          * 
          * 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
    @@ -761,11 +774,11 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) {
         public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) {
           if (pushConfigBuilder_ == null) {
             pushConfig_ = builderForValue.build();
    -        onChanged();
           } else {
             pushConfigBuilder_.setMessage(builderForValue.build());
           }
    -
    +      bitField0_ |= 0x00000002;
    +      onChanged();
           return this;
         }
         /**
    @@ -773,6 +786,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV
          *
          * 
          * 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
    @@ -784,19 +798,18 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV
          */
         public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
           if (pushConfigBuilder_ == null) {
    -        if (pushConfig_ != null) {
    -          pushConfig_ =
    -              com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (((bitField0_ & 0x00000002) != 0)
    +            && pushConfig_ != null
    +            && pushConfig_ != com.google.pubsub.v1.PushConfig.getDefaultInstance()) {
    +          getPushConfigBuilder().mergeFrom(value);
             } else {
               pushConfig_ = value;
             }
    -        onChanged();
           } else {
             pushConfigBuilder_.mergeFrom(value);
           }
    -
    +      bitField0_ |= 0x00000002;
    +      onChanged();
           return this;
         }
         /**
    @@ -804,6 +817,7 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
          *
          * 
          * 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
    @@ -814,14 +828,13 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) {
          * 
          */
         public Builder clearPushConfig() {
    -      if (pushConfigBuilder_ == null) {
    -        pushConfig_ = null;
    -        onChanged();
    -      } else {
    -        pushConfig_ = null;
    +      bitField0_ = (bitField0_ & ~0x00000002);
    +      pushConfig_ = null;
    +      if (pushConfigBuilder_ != null) {
    +        pushConfigBuilder_.dispose();
             pushConfigBuilder_ = null;
           }
    -
    +      onChanged();
           return this;
         }
         /**
    @@ -829,6 +842,7 @@ public Builder clearPushConfig() {
          *
          * 
          * 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
    @@ -839,7 +853,7 @@ public Builder clearPushConfig() {
          * 
          */
         public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() {
    -
    +      bitField0_ |= 0x00000002;
           onChanged();
           return getPushConfigFieldBuilder().getBuilder();
         }
    @@ -848,6 +862,7 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() {
          *
          * 
          * 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
    @@ -871,6 +886,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() {
          *
          * 
          * 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
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java
    index 10a208c31a07..5979b8605e81 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java
    @@ -59,6 +59,7 @@ public interface ModifyPushConfigRequestOrBuilder
        *
        * 
        * 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
    @@ -76,6 +77,7 @@ public interface ModifyPushConfigRequestOrBuilder
        *
        * 
        * 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
    @@ -93,6 +95,7 @@ public interface ModifyPushConfigRequestOrBuilder
        *
        * 
        * 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
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java
    index 9526c02ab60f..2db62c0e7881 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2022 Google LLC
    + * Copyright 2023 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    index 36404928b451..c331a792e030 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java
    @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new PublishRequest();
       }
     
    -  @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    -    return this.unknownFields;
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_PublishRequest_descriptor;
    @@ -69,7 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       }
     
       public static final int TOPIC_FIELD_NUMBER = 1;
    -  private volatile java.lang.Object topic_;
    +
    +  @SuppressWarnings("serial")
    +  private volatile java.lang.Object topic_ = "";
       /**
        *
        *
    @@ -124,6 +121,8 @@ public com.google.protobuf.ByteString getTopicBytes() {
       }
     
       public static final int MESSAGES_FIELD_NUMBER = 2;
    +
    +  @SuppressWarnings("serial")
       private java.util.List messages_;
       /**
        *
    @@ -408,15 +407,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         @java.lang.Override
         public Builder clear() {
           super.clear();
    +      bitField0_ = 0;
           topic_ = "";
    -
           if (messagesBuilder_ == null) {
             messages_ = java.util.Collections.emptyList();
           } else {
             messages_ = null;
             messagesBuilder_.clear();
           }
    -      bitField0_ = (bitField0_ & ~0x00000001);
    +      bitField0_ = (bitField0_ & ~0x00000002);
           return this;
         }
     
    @@ -443,19 +442,31 @@ public com.google.pubsub.v1.PublishRequest build() {
         @java.lang.Override
         public com.google.pubsub.v1.PublishRequest buildPartial() {
           com.google.pubsub.v1.PublishRequest result = new com.google.pubsub.v1.PublishRequest(this);
    -      int from_bitField0_ = bitField0_;
    -      result.topic_ = topic_;
    +      buildPartialRepeatedFields(result);
    +      if (bitField0_ != 0) {
    +        buildPartial0(result);
    +      }
    +      onBuilt();
    +      return result;
    +    }
    +
    +    private void buildPartialRepeatedFields(com.google.pubsub.v1.PublishRequest result) {
           if (messagesBuilder_ == null) {
    -        if (((bitField0_ & 0x00000001) != 0)) {
    +        if (((bitField0_ & 0x00000002) != 0)) {
               messages_ = java.util.Collections.unmodifiableList(messages_);
    -          bitField0_ = (bitField0_ & ~0x00000001);
    +          bitField0_ = (bitField0_ & ~0x00000002);
             }
             result.messages_ = messages_;
           } else {
             result.messages_ = messagesBuilder_.build();
           }
    -      onBuilt();
    -      return result;
    +    }
    +
    +    private void buildPartial0(com.google.pubsub.v1.PublishRequest result) {
    +      int from_bitField0_ = bitField0_;
    +      if (((from_bitField0_ & 0x00000001) != 0)) {
    +        result.topic_ = topic_;
    +      }
         }
     
         @java.lang.Override
    @@ -505,13 +516,14 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) {
           if (other == com.google.pubsub.v1.PublishRequest.getDefaultInstance()) return this;
           if (!other.getTopic().isEmpty()) {
             topic_ = other.topic_;
    +        bitField0_ |= 0x00000001;
             onChanged();
           }
           if (messagesBuilder_ == null) {
             if (!other.messages_.isEmpty()) {
               if (messages_.isEmpty()) {
                 messages_ = other.messages_;
    -            bitField0_ = (bitField0_ & ~0x00000001);
    +            bitField0_ = (bitField0_ & ~0x00000002);
               } else {
                 ensureMessagesIsMutable();
                 messages_.addAll(other.messages_);
    @@ -524,7 +536,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) {
                 messagesBuilder_.dispose();
                 messagesBuilder_ = null;
                 messages_ = other.messages_;
    -            bitField0_ = (bitField0_ & ~0x00000001);
    +            bitField0_ = (bitField0_ & ~0x00000002);
                 messagesBuilder_ =
                     com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                         ? getMessagesFieldBuilder()
    @@ -563,7 +575,7 @@ public Builder mergeFrom(
                 case 10:
                   {
                     topic_ = input.readStringRequireUtf8();
    -
    +                bitField0_ |= 0x00000001;
                     break;
                   } // case 10
                 case 18:
    @@ -668,8 +680,8 @@ public Builder setTopic(java.lang.String value) {
           if (value == null) {
             throw new NullPointerException();
           }
    -
           topic_ = value;
    +      bitField0_ |= 0x00000001;
           onChanged();
           return this;
         }
    @@ -688,8 +700,8 @@ public Builder setTopic(java.lang.String value) {
          * @return This builder for chaining.
          */
         public Builder clearTopic() {
    -
           topic_ = getDefaultInstance().getTopic();
    +      bitField0_ = (bitField0_ & ~0x00000001);
           onChanged();
           return this;
         }
    @@ -713,8 +725,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
             throw new NullPointerException();
           }
           checkByteStringIsUtf8(value);
    -
           topic_ = value;
    +      bitField0_ |= 0x00000001;
           onChanged();
           return this;
         }
    @@ -723,9 +735,9 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
             java.util.Collections.emptyList();
     
         private void ensureMessagesIsMutable() {
    -      if (!((bitField0_ & 0x00000001) != 0)) {
    +      if (!((bitField0_ & 0x00000002) != 0)) {
             messages_ = new java.util.ArrayList(messages_);
    -        bitField0_ |= 0x00000001;
    +        bitField0_ |= 0x00000002;
           }
         }
     
    @@ -962,7 +974,7 @@ public Builder addAllMessages(
         public Builder clearMessages() {
           if (messagesBuilder_ == null) {
             messages_ = java.util.Collections.emptyList();
    -        bitField0_ = (bitField0_ & ~0x00000001);
    +        bitField0_ = (bitField0_ & ~0x00000002);
             onChanged();
           } else {
             messagesBuilder_.clear();
    @@ -1097,7 +1109,7 @@ public java.util.List getMessagesBui
                     com.google.pubsub.v1.PubsubMessage,
                     com.google.pubsub.v1.PubsubMessage.Builder,
                     com.google.pubsub.v1.PubsubMessageOrBuilder>(
    -                messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
    +                messages_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
             messages_ = null;
           }
           return messagesBuilder_;
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java
    index dee485dc937e..703699f5df49 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java
    @@ -38,7 +38,7 @@ private PublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builde
       }
     
       private PublishResponse() {
    -    messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +    messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
       }
     
       @java.lang.Override
    @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new PublishResponse();
       }
     
    -  @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    -    return this.unknownFields;
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_PublishResponse_descriptor;
    @@ -68,7 +63,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       }
     
       public static final int MESSAGE_IDS_FIELD_NUMBER = 1;
    -  private com.google.protobuf.LazyStringList messageIds_;
    +
    +  @SuppressWarnings("serial")
    +  private com.google.protobuf.LazyStringArrayList messageIds_ =
    +      com.google.protobuf.LazyStringArrayList.emptyList();
       /**
        *
        *
    @@ -338,8 +336,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         @java.lang.Override
         public Builder clear() {
           super.clear();
    -      messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    -      bitField0_ = (bitField0_ & ~0x00000001);
    +      bitField0_ = 0;
    +      messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
           return this;
         }
     
    @@ -366,16 +364,21 @@ public com.google.pubsub.v1.PublishResponse build() {
         @java.lang.Override
         public com.google.pubsub.v1.PublishResponse buildPartial() {
           com.google.pubsub.v1.PublishResponse result = new com.google.pubsub.v1.PublishResponse(this);
    -      int from_bitField0_ = bitField0_;
    -      if (((bitField0_ & 0x00000001) != 0)) {
    -        messageIds_ = messageIds_.getUnmodifiableView();
    -        bitField0_ = (bitField0_ & ~0x00000001);
    +      if (bitField0_ != 0) {
    +        buildPartial0(result);
           }
    -      result.messageIds_ = messageIds_;
           onBuilt();
           return result;
         }
     
    +    private void buildPartial0(com.google.pubsub.v1.PublishResponse result) {
    +      int from_bitField0_ = bitField0_;
    +      if (((from_bitField0_ & 0x00000001) != 0)) {
    +        messageIds_.makeImmutable();
    +        result.messageIds_ = messageIds_;
    +      }
    +    }
    +
         @java.lang.Override
         public Builder clone() {
           return super.clone();
    @@ -424,7 +427,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishResponse other) {
           if (!other.messageIds_.isEmpty()) {
             if (messageIds_.isEmpty()) {
               messageIds_ = other.messageIds_;
    -          bitField0_ = (bitField0_ & ~0x00000001);
    +          bitField0_ |= 0x00000001;
             } else {
               ensureMessageIdsIsMutable();
               messageIds_.addAll(other.messageIds_);
    @@ -483,14 +486,14 @@ public Builder mergeFrom(
     
         private int bitField0_;
     
    -    private com.google.protobuf.LazyStringList messageIds_ =
    -        com.google.protobuf.LazyStringArrayList.EMPTY;
    +    private com.google.protobuf.LazyStringArrayList messageIds_ =
    +        com.google.protobuf.LazyStringArrayList.emptyList();
     
         private void ensureMessageIdsIsMutable() {
    -      if (!((bitField0_ & 0x00000001) != 0)) {
    +      if (!messageIds_.isModifiable()) {
             messageIds_ = new com.google.protobuf.LazyStringArrayList(messageIds_);
    -        bitField0_ |= 0x00000001;
           }
    +      bitField0_ |= 0x00000001;
         }
         /**
          *
    @@ -506,7 +509,8 @@ private void ensureMessageIdsIsMutable() {
          * @return A list containing the messageIds.
          */
         public com.google.protobuf.ProtocolStringList getMessageIdsList() {
    -      return messageIds_.getUnmodifiableView();
    +      messageIds_.makeImmutable();
    +      return messageIds_;
         }
         /**
          *
    @@ -579,6 +583,7 @@ public Builder setMessageIds(int index, java.lang.String value) {
           }
           ensureMessageIdsIsMutable();
           messageIds_.set(index, value);
    +      bitField0_ |= 0x00000001;
           onChanged();
           return this;
         }
    @@ -602,6 +607,7 @@ public Builder addMessageIds(java.lang.String value) {
           }
           ensureMessageIdsIsMutable();
           messageIds_.add(value);
    +      bitField0_ |= 0x00000001;
           onChanged();
           return this;
         }
    @@ -622,6 +628,7 @@ public Builder addMessageIds(java.lang.String value) {
         public Builder addAllMessageIds(java.lang.Iterable values) {
           ensureMessageIdsIsMutable();
           com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messageIds_);
    +      bitField0_ |= 0x00000001;
           onChanged();
           return this;
         }
    @@ -639,8 +646,9 @@ public Builder addAllMessageIds(java.lang.Iterable values) {
          * @return This builder for chaining.
          */
         public Builder clearMessageIds() {
    -      messageIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    +      messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
           bitField0_ = (bitField0_ & ~0x00000001);
    +      ;
           onChanged();
           return this;
         }
    @@ -665,6 +673,7 @@ public Builder addMessageIdsBytes(com.google.protobuf.ByteString value) {
           checkByteStringIsUtf8(value);
           ensureMessageIdsIsMutable();
           messageIds_.add(value);
    +      bitField0_ |= 0x00000001;
           onChanged();
           return this;
         }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    index 2c65daaa11e0..e1d0676c46ee 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java
    @@ -56,11 +56,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new PubsubMessage();
       }
     
    -  @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    -    return this.unknownFields;
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto
             .internal_static_google_pubsub_v1_PubsubMessage_descriptor;
    @@ -88,7 +83,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
       }
     
       public static final int DATA_FIELD_NUMBER = 1;
    -  private com.google.protobuf.ByteString data_;
    +  private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
       /**
        *
        *
    @@ -119,6 +114,7 @@ private static final class AttributesDefaultEntryHolder {
                 "");
       }
     
    +  @SuppressWarnings("serial")
       private com.google.protobuf.MapField attributes_;
     
       private com.google.protobuf.MapField internalGetAttributes() {
    @@ -182,8 +178,10 @@ public java.util.Map getAttributesMap() {
        * map<string, string> attributes = 2;
        */
       @java.lang.Override
    -  public java.lang.String getAttributesOrDefault(
    -      java.lang.String key, java.lang.String defaultValue) {
    +  public /* nullable */ java.lang.String getAttributesOrDefault(
    +      java.lang.String key,
    +      /* nullable */
    +      java.lang.String defaultValue) {
         if (key == null) {
           throw new NullPointerException("map key");
         }
    @@ -214,7 +212,9 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) {
       }
     
       public static final int MESSAGE_ID_FIELD_NUMBER = 3;
    -  private volatile java.lang.Object messageId_;
    +
    +  @SuppressWarnings("serial")
    +  private volatile java.lang.Object messageId_ = "";
       /**
        *
        *
    @@ -317,11 +317,13 @@ public com.google.protobuf.Timestamp getPublishTime() {
        */
       @java.lang.Override
       public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    -    return getPublishTime();
    +    return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_;
       }
     
       public static final int ORDERING_KEY_FIELD_NUMBER = 5;
    -  private volatile java.lang.Object orderingKey_;
    +
    +  @SuppressWarnings("serial")
    +  private volatile java.lang.Object orderingKey_ = "";
       /**
        *
        *
    @@ -332,6 +334,8 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
        * 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.
    +   * For more information, see [ordering
    +   * messages](https://cloud.google.com/pubsub/docs/ordering).
        * 
    * * string ordering_key = 5; @@ -360,6 +364,8 @@ public java.lang.String getOrderingKey() { * 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. + * For more information, see [ordering + * messages](https://cloud.google.com/pubsub/docs/ordering). *
    * * string ordering_key = 5; @@ -650,19 +656,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; data_ = com.google.protobuf.ByteString.EMPTY; - internalGetMutableAttributes().clear(); messageId_ = ""; - - if (publishTimeBuilder_ == null) { - publishTime_ = null; - } else { - publishTime_ = null; + publishTime_ = null; + if (publishTimeBuilder_ != null) { + publishTimeBuilder_.dispose(); publishTimeBuilder_ = null; } orderingKey_ = ""; - return this; } @@ -689,21 +692,34 @@ public com.google.pubsub.v1.PubsubMessage build() { @java.lang.Override public com.google.pubsub.v1.PubsubMessage buildPartial() { com.google.pubsub.v1.PubsubMessage result = new com.google.pubsub.v1.PubsubMessage(this); - int from_bitField0_ = bitField0_; - result.data_ = data_; - result.attributes_ = internalGetAttributes(); - result.attributes_.makeImmutable(); - result.messageId_ = messageId_; - if (publishTimeBuilder_ == null) { - result.publishTime_ = publishTime_; - } else { - result.publishTime_ = publishTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.orderingKey_ = orderingKey_; onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.PubsubMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.data_ = data_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.messageId_ = messageId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.publishTime_ = + publishTimeBuilder_ == null ? publishTime_ : publishTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderingKey_ = orderingKey_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -753,8 +769,10 @@ public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) { setData(other.getData()); } internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + bitField0_ |= 0x00000002; if (!other.getMessageId().isEmpty()) { messageId_ = other.messageId_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasPublishTime()) { @@ -762,6 +780,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) { } if (!other.getOrderingKey().isEmpty()) { orderingKey_ = other.orderingKey_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -793,7 +812,7 @@ public Builder mergeFrom( case 10: { data_ = input.readBytes(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -805,24 +824,25 @@ public Builder mergeFrom( internalGetMutableAttributes() .getMutableMap() .put(attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 26: { messageId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getPublishTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { orderingKey_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -878,8 +898,8 @@ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - data_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -896,7 +916,7 @@ public Builder setData(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearData() { - + bitField0_ = (bitField0_ & ~0x00000001); data_ = getDefaultInstance().getData(); onChanged(); return this; @@ -915,8 +935,6 @@ public Builder clearData() { private com.google.protobuf.MapField internalGetMutableAttributes() { - onChanged(); - ; if (attributes_ == null) { attributes_ = com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); @@ -924,6 +942,8 @@ public Builder clearData() { if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return attributes_; } @@ -981,8 +1001,10 @@ public java.util.Map getAttributesMap() { * map<string, string> attributes = 2; */ @java.lang.Override - public java.lang.String getAttributesOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1013,6 +1035,7 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { } public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableAttributes().getMutableMap().clear(); return this; } @@ -1037,6 +1060,7 @@ public Builder removeAttributes(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { + bitField0_ |= 0x00000002; return internalGetMutableAttributes().getMutableMap(); } /** @@ -1057,8 +1081,8 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAttributes().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -1074,6 +1098,7 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { */ public Builder putAllAttributes(java.util.Map values) { internalGetMutableAttributes().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -1147,8 +1172,8 @@ public Builder setMessageId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - messageId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1167,8 +1192,8 @@ public Builder setMessageId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearMessageId() { - messageId_ = getDefaultInstance().getMessageId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1192,8 +1217,8 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - messageId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1218,7 +1243,7 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { * @return Whether the publishTime field is set. */ public boolean hasPublishTime() { - return publishTimeBuilder_ != null || publishTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1259,11 +1284,11 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } publishTime_ = value; - onChanged(); } else { publishTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1280,11 +1305,11 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) { public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (publishTimeBuilder_ == null) { publishTime_ = builderForValue.build(); - onChanged(); } else { publishTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1300,19 +1325,18 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa */ public Builder mergePublishTime(com.google.protobuf.Timestamp value) { if (publishTimeBuilder_ == null) { - if (publishTime_ != null) { - publishTime_ = - com.google.protobuf.Timestamp.newBuilder(publishTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && publishTime_ != null + && publishTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getPublishTimeBuilder().mergeFrom(value); } else { publishTime_ = value; } - onChanged(); } else { publishTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1327,14 +1351,13 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp publish_time = 4; */ public Builder clearPublishTime() { - if (publishTimeBuilder_ == null) { - publishTime_ = null; - onChanged(); - } else { - publishTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + publishTime_ = null; + if (publishTimeBuilder_ != null) { + publishTimeBuilder_.dispose(); publishTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1349,7 +1372,7 @@ public Builder clearPublishTime() { * .google.protobuf.Timestamp publish_time = 4; */ public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getPublishTimeFieldBuilder().getBuilder(); } @@ -1412,6 +1435,8 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * 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. + * For more information, see [ordering + * messages](https://cloud.google.com/pubsub/docs/ordering). *
    * * string ordering_key = 5; @@ -1439,6 +1464,8 @@ public java.lang.String getOrderingKey() { * 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. + * For more information, see [ordering + * messages](https://cloud.google.com/pubsub/docs/ordering). *
    * * string ordering_key = 5; @@ -1466,6 +1493,8 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { * 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. + * For more information, see [ordering + * messages](https://cloud.google.com/pubsub/docs/ordering). *
    * * string ordering_key = 5; @@ -1477,8 +1506,8 @@ public Builder setOrderingKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - orderingKey_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1492,6 +1521,8 @@ public Builder setOrderingKey(java.lang.String value) { * 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. + * For more information, see [ordering + * messages](https://cloud.google.com/pubsub/docs/ordering). *
    * * string ordering_key = 5; @@ -1499,8 +1530,8 @@ public Builder setOrderingKey(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOrderingKey() { - orderingKey_ = getDefaultInstance().getOrderingKey(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1514,6 +1545,8 @@ public Builder clearOrderingKey() { * 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. + * For more information, see [ordering + * messages](https://cloud.google.com/pubsub/docs/ordering). *
    * * string ordering_key = 5; @@ -1526,8 +1559,8 @@ public Builder setOrderingKeyBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - orderingKey_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index c06beec09a2a..ed7758c4437d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -87,7 +87,6 @@ public interface PubsubMessageOrBuilder * * map<string, string> attributes = 2; */ - /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, @@ -188,6 +187,8 @@ java.lang.String getAttributesOrDefault( * 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. + * For more information, see [ordering + * messages](https://cloud.google.com/pubsub/docs/ordering). *
    * * string ordering_key = 5; @@ -205,6 +206,8 @@ java.lang.String getAttributesOrDefault( * 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. + * For more information, see [ordering + * messages](https://cloud.google.com/pubsub/docs/ordering). *
    * * string ordering_key = 5; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 40af0aacaabd..500404845293 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -131,6 +131,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -139,6 +147,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_BigQueryConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ReceivedMessage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -265,302 +285,326 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "uf/field_mask.proto\032\037google/protobuf/tim" + "estamp.proto\032\035google/pubsub/v1/schema.pr" + "oto\";\n\024MessageStoragePolicy\022#\n\033allowed_p" - + "ersistence_regions\030\001 \003(\t\"\251\001\n\016SchemaSetti" - + "ngs\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.goog" - + "leapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.go" - + "ogle.pubsub.v1.Encoding\022\031\n\021first_revisio" - + "n_id\030\003 \001(\t\022\030\n\020last_revision_id\030\004 \001(\t\"\303\003\n" - + "\005Topic\022\021\n\004name\030\001 \001(\tB\003\340A\002\0223\n\006labels\030\002 \003(" - + "\0132#.google.pubsub.v1.Topic.LabelsEntry\022F" - + "\n\026message_storage_policy\030\003 \001(\0132&.google." - + "pubsub.v1.MessageStoragePolicy\022\024\n\014kms_ke" - + "y_name\030\005 \001(\t\0229\n\017schema_settings\030\006 \001(\0132 ." - + "google.pubsub.v1.SchemaSettings\022\025\n\rsatis" - + "fies_pzs\030\007 \001(\010\022=\n\032message_retention_dura" - + "tion\030\010 \001(\0132\031.google.protobuf.Duration\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001:T\352AQ\n\033pubsub.googleapis.com/Topic\022!" - + "projects/{project}/topics/{topic}\022\017_dele" - + "ted-topic_\"\361\001\n\rPubsubMessage\022\014\n\004data\030\001 \001" - + "(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub.v" - + "1.PubsubMessage.AttributesEntry\022\022\n\nmessa" - + "ge_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.goog" - + "le.protobuf.Timestamp\022\024\n\014ordering_key\030\005 " - + "\001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005top" - + "ic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/" - + "Topic\"w\n\022UpdateTopicRequest\022+\n\005topic\030\001 \001" - + "(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "kB\003\340A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001(\tB" - + "#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\010" - + "messages\030\002 \003(\0132\037.google.pubsub.v1.Pubsub" - + "MessageB\003\340A\002\"&\n\017PublishResponse\022\023\n\013messa" - + "ge_ids\030\001 \003(\t\"\200\001\n\021ListTopicsRequest\022D\n\007pr" - + "oject\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanage" - + "r.googleapis.com/Project\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListTopicsRes" - + "ponse\022\'\n\006topics\030\001 \003(\0132\027.google.pubsub.v1" - + ".Topic\022\027\n\017next_page_token\030\002 \001(\t\"z\n\035ListT" - + "opicSubscriptionsRequest\0222\n\005topic\030\001 \001(\tB" - + "#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"y\n\036L" - + "istTopicSubscriptionsResponse\022>\n\rsubscri" - + "ptions\030\001 \003(\tB\'\372A$\n\"pubsub.googleapis.com" - + "/Subscription\022\027\n\017next_page_token\030\002 \001(\t\"v" - + "\n\031ListTopicSnapshotsRequest\0222\n\005topic\030\001 \001" - + "(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"H" - + "\n\032ListTopicSnapshotsResponse\022\021\n\tsnapshot" - + "s\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"H\n\022Dele" - + "teTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033p" - + "ubsub.googleapis.com/Topic\"]\n\031DetachSubs" - + "criptionRequest\022@\n\014subscription\030\001 \001(\tB*\340" - + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\"\034\n\032DetachSubscriptionResponse\"\345\007\n\014Subs" - + "cription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001" - + "(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022" - + "1\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1." - + "PushConfig\0229\n\017bigquery_config\030\022 \001(\0132 .go" - + "ogle.pubsub.v1.BigQueryConfig\022\034\n\024ack_dea" - + "dline_seconds\030\005 \001(\005\022\035\n\025retain_acked_mess" - + "ages\030\007 \001(\010\022=\n\032message_retention_duration" - + "\030\010 \001(\0132\031.google.protobuf.Duration\022:\n\006lab" - + "els\030\t \003(\0132*.google.pubsub.v1.Subscriptio" - + "n.LabelsEntry\022\037\n\027enable_message_ordering" - + "\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\0132\".goog" - + "le.pubsub.v1.ExpirationPolicy\022\016\n\006filter\030" - + "\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\0132\".goog" - + "le.pubsub.v1.DeadLetterPolicy\0223\n\014retry_p" - + "olicy\030\016 \001(\0132\035.google.pubsub.v1.RetryPoli" - + "cy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_exactly_o" - + "nce_delivery\030\020 \001(\010\022H\n topic_message_rete" - + "ntion_duration\030\021 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\003\0228\n\005state\030\023 \001(\0162$.google.pub" - + "sub.v1.Subscription.StateB\003\340A\003\032-\n\013Labels" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020" - + "\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.googl" - + "eapis.com/Subscription\022/projects/{projec" - + "t}/subscriptions/{subscription}\"u\n\013Retry" - + "Policy\0222\n\017minimum_backoff\030\001 \001(\0132\031.google" - + ".protobuf.Duration\0222\n\017maximum_backoff\030\002 " - + "\001(\0132\031.google.protobuf.Duration\"L\n\020DeadLe" - + "tterPolicy\022\031\n\021dead_letter_topic\030\001 \001(\t\022\035\n" - + "\025max_delivery_attempts\030\002 \001(\005\":\n\020Expirati" - + "onPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.protobuf." - + "Duration\"\255\002\n\nPushConfig\022\025\n\rpush_endpoint" - + "\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google.pubs" - + "ub.v1.PushConfig.AttributesEntry\022<\n\noidc" - + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" - + "ig.OidcTokenH\000\032<\n\tOidcToken\022\035\n\025service_a" - + "ccount_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t\0321\n\017" - + "AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001B\027\n\025authentication_method\"\221\002\n\016Big" - + "QueryConfig\022\r\n\005table\030\001 \001(\t\022\030\n\020use_topic_" - + "schema\030\002 \001(\010\022\026\n\016write_metadata\030\003 \001(\010\022\033\n\023" - + "drop_unknown_fields\030\004 \001(\010\022:\n\005state\030\005 \001(\016" - + "2&.google.pubsub.v1.BigQueryConfig.State" - + "B\003\340A\003\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n" - + "\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_" - + "FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\"m\n\017Received" - + "Message\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 \001(\013" - + "2\037.google.pubsub.v1.PubsubMessage\022\030\n\020del" - + "ivery_attempt\030\003 \001(\005\"Z\n\026GetSubscriptionRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\"\214\001\n\031Upda" - + "teSubscriptionRequest\0229\n\014subscription\030\001 " - + "\001(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\002" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"\207\001\n\030ListSubscriptionsRequ" - + "est\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" - + "rcemanager.googleapis.com/Project\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\031List" - + "SubscriptionsResponse\0225\n\rsubscriptions\030\001" - + " \003(\0132\036.google.pubsub.v1.Subscription\022\027\n\017" - + "next_page_token\030\002 \001(\t\"]\n\031DeleteSubscript" - + "ionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" - + "\n\"pubsub.googleapis.com/Subscription\"\223\001\n" - + "\027ModifyPushConfigRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\0226\n\013push_config\030\002 \001(\0132\034.google" - + ".pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullReque" - + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\022!\n\022return_i" - + "mmediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030" - + "\003 \001(\005B\003\340A\002\"L\n\014PullResponse\022<\n\021received_m" - + "essages\030\001 \003(\0132!.google.pubsub.v1.Receive" - + "dMessage\"\225\001\n\030ModifyAckDeadlineRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" - + "leapis.com/Subscription\022\024\n\007ack_ids\030\004 \003(\t" - + "B\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002" - + "\"l\n\022AcknowledgeRequest\022@\n\014subscription\030\001" - + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" - + "cription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\251\002\n\024Strea" - + "mingPullRequest\022@\n\014subscription\030\001 \001(\tB*\340" - + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\022\017\n\007ack_ids\030\002 \003(\t\022\037\n\027modify_deadline_se" - + "conds\030\003 \003(\005\022\037\n\027modify_deadline_ack_ids\030\004" - + " \003(\t\022(\n\033stream_ack_deadline_seconds\030\005 \001(" - + "\005B\003\340A\002\022\021\n\tclient_id\030\006 \001(\t\022 \n\030max_outstan" - + "ding_messages\030\007 \001(\003\022\035\n\025max_outstanding_b" - + "ytes\030\010 \001(\003\"\236\005\n\025StreamingPullResponse\022<\n\021" - + "received_messages\030\001 \003(\0132!.google.pubsub." - + "v1.ReceivedMessage\022a\n\030acknowledge_confir" - + "mation\030\005 \001(\0132?.google.pubsub.v1.Streamin" - + "gPullResponse.AcknowledgeConfirmation\022o\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132" - + "E.google.pubsub.v1.StreamingPullResponse" - + ".ModifyAckDeadlineConfirmation\022_\n\027subscr" - + "iption_properties\030\004 \001(\0132>.google.pubsub." - + "v1.StreamingPullResponse.SubscriptionPro" - + "perties\032^\n\027AcknowledgeConfirmation\022\017\n\007ac" - + "k_ids\030\001 \003(\t\022\027\n\017invalid_ack_ids\030\002 \003(\t\022\031\n\021" - + "unordered_ack_ids\030\003 \003(\t\032I\n\035ModifyAckDead" - + "lineConfirmation\022\017\n\007ack_ids\030\001 \003(\t\022\027\n\017inv" - + "alid_ack_ids\030\002 \003(\t\032a\n\026SubscriptionProper" - + "ties\022%\n\035exactly_once_delivery_enabled\030\001 " - + "\001(\010\022 \n\030message_ordering_enabled\030\002 \001(\010J\004\010" - + "\002\020\003\"\203\002\n\025CreateSnapshotRequest\0224\n\004name\030\001 " - + "\001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snaps" - + "hot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsu" - + "b.googleapis.com/Subscription\022C\n\006labels\030" - + "\003 \003(\01323.google.pubsub.v1.CreateSnapshotR" - + "equest.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnap" - + "shotRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.p" - + "ubsub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\257\002\n" - + "\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030\002 \001(\tB " - + "\372A\035\n\033pubsub.googleapis.com/Topic\022/\n\013expi" - + "re_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "p\0226\n\006labels\030\004 \003(\0132&.google.pubsub.v1.Sna" - + "pshot.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.go" - + "ogleapis.com/Snapshot\022\'projects/{project" - + "}/snapshots/{snapshot}\"N\n\022GetSnapshotReq" - + "uest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.g" - + "oogleapis.com/Snapshot\"\203\001\n\024ListSnapshots" - + "Request\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudr" - + "esourcemanager.googleapis.com/Project\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"_\n\025" - + "ListSnapshotsResponse\022-\n\tsnapshots\030\001 \003(\013" - + "2\032.google.pubsub.v1.Snapshot\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"Q\n\025DeleteSnapshotRequest\0228" - + "\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googlea" - + "pis.com/Snapshot\"\276\001\n\013SeekRequest\022@\n\014subs" - + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\022*\n\004time\030\002 \001(\0132\032.googl" - + "e.protobuf.TimestampH\000\0227\n\010snapshot\030\003 \001(\t" - + "B#\372A \n\036pubsub.googleapis.com/SnapshotH\000B" - + "\010\n\006target\"\016\n\014SeekResponse2\243\013\n\tPublisher\022" - + "q\n\013CreateTopic\022\027.google.pubsub.v1.Topic\032" - + "\027.google.pubsub.v1.Topic\"0\202\323\344\223\002#\032\036/v1/{n" - + "ame=projects/*/topics/*}:\001*\332A\004name\022}\n\013Up" - + "dateTopic\022$.google.pubsub.v1.UpdateTopic" - + "Request\032\027.google.pubsub.v1.Topic\"/\202\323\344\223\002)" - + "2$/v1/{topic.name=projects/*/topics/*}:\001" - + "*\022\223\001\n\007Publish\022 .google.pubsub.v1.Publish" - + "Request\032!.google.pubsub.v1.PublishRespon" - + "se\"C\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" - + "/*}:publish:\001*\332A\016topic,messages\022w\n\010GetTo" - + "pic\022!.google.pubsub.v1.GetTopicRequest\032\027" - + ".google.pubsub.v1.Topic\"/\202\323\344\223\002!\022\037/v1/{to" - + "pic=projects/*/topics/*}\332A\005topic\022\212\001\n\nLis" - + "tTopics\022#.google.pubsub.v1.ListTopicsReq" - + "uest\032$.google.pubsub.v1.ListTopicsRespon" - + "se\"1\202\323\344\223\002!\022\037/v1/{project=projects/*}/top" - + "ics\332A\007project\022\272\001\n\026ListTopicSubscriptions" - + "\022/.google.pubsub.v1.ListTopicSubscriptio" - + "nsRequest\0320.google.pubsub.v1.ListTopicSu" - + "bscriptionsResponse\"=\202\323\344\223\002/\022-/v1/{topic=" - + "projects/*/topics/*}/subscriptions\332A\005top" - + "ic\022\252\001\n\022ListTopicSnapshots\022+.google.pubsu" - + "b.v1.ListTopicSnapshotsRequest\032,.google." - + "pubsub.v1.ListTopicSnapshotsResponse\"9\202\323" - + "\344\223\002+\022)/v1/{topic=projects/*/topics/*}/sn" - + "apshots\332A\005topic\022|\n\013DeleteTopic\022$.google." - + "pubsub.v1.DeleteTopicRequest\032\026.google.pr" - + "otobuf.Empty\"/\202\323\344\223\002!*\037/v1/{topic=project" - + "s/*/topics/*}\332A\005topic\022\255\001\n\022DetachSubscrip" - + "tion\022+.google.pubsub.v1.DetachSubscripti" - + "onRequest\032,.google.pubsub.v1.DetachSubsc" - + "riptionResponse\"<\202\323\344\223\0026\"4/v1/{subscripti" - + "on=projects/*/subscriptions/*}:detach\032p\312" - + "A\025pubsub.googleapis.com\322AUhttps://www.go" - + "ogleapis.com/auth/cloud-platform,https:/" - + "/www.googleapis.com/auth/pubsub2\240\025\n\nSubs" - + "criber\022\264\001\n\022CreateSubscription\022\036.google.p" - + "ubsub.v1.Subscription\032\036.google.pubsub.v1" - + ".Subscription\"^\202\323\344\223\002*\032%/v1/{name=project" - + "s/*/subscriptions/*}:\001*\332A+name,topic,pus" - + "h_config,ack_deadline_seconds\022\241\001\n\017GetSub" - + "scription\022(.google.pubsub.v1.GetSubscrip" - + "tionRequest\032\036.google.pubsub.v1.Subscript" - + "ion\"D\202\323\344\223\002/\022-/v1/{subscription=projects/" - + "*/subscriptions/*}\332A\014subscription\022\240\001\n\022Up" - + "dateSubscription\022+.google.pubsub.v1.Upda" - + "teSubscriptionRequest\032\036.google.pubsub.v1" - + ".Subscription\"=\202\323\344\223\002722/v1/{subscription" - + ".name=projects/*/subscriptions/*}:\001*\022\246\001\n" - + "\021ListSubscriptions\022*.google.pubsub.v1.Li" - + "stSubscriptionsRequest\032+.google.pubsub.v" - + "1.ListSubscriptionsResponse\"8\202\323\344\223\002(\022&/v1" - + "/{project=projects/*}/subscriptions\332A\007pr" - + "oject\022\237\001\n\022DeleteSubscription\022+.google.pu" - + "bsub.v1.DeleteSubscriptionRequest\032\026.goog" - + "le.protobuf.Empty\"D\202\323\344\223\002/*-/v1/{subscrip" - + "tion=projects/*/subscriptions/*}\332A\014subsc" - + "ription\022\317\001\n\021ModifyAckDeadline\022*.google.p" - + "ubsub.v1.ModifyAckDeadlineRequest\032\026.goog" - + "le.protobuf.Empty\"v\202\323\344\223\002D\"?/v1/{subscrip" - + "tion=projects/*/subscriptions/*}:modifyA" - + "ckDeadline:\001*\332A)subscription,ack_ids,ack" - + "_deadline_seconds\022\250\001\n\013Acknowledge\022$.goog" - + "le.pubsub.v1.AcknowledgeRequest\032\026.google" - + ".protobuf.Empty\"[\202\323\344\223\002>\"9/v1/{subscripti" - + "on=projects/*/subscriptions/*}:acknowled" - + "ge:\001*\332A\024subscription,ack_ids\022\320\001\n\004Pull\022\035." - + "google.pubsub.v1.PullRequest\032\036.google.pu" - + "bsub.v1.PullResponse\"\210\001\202\323\344\223\0027\"2/v1/{subs" - + "cription=projects/*/subscriptions/*}:pul" - + "l:\001*\332A,subscription,return_immediately,m" - + "ax_messages\332A\031subscription,max_messages\022" - + "f\n\rStreamingPull\022&.google.pubsub.v1.Stre" - + "amingPullRequest\032\'.google.pubsub.v1.Stre" - + "amingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushCo" - + "nfig\022).google.pubsub.v1.ModifyPushConfig" - + "Request\032\026.google.protobuf.Empty\"d\202\323\344\223\002C\"" - + ">/v1/{subscription=projects/*/subscripti" - + "ons/*}:modifyPushConfig:\001*\332A\030subscriptio" - + "n,push_config\022\211\001\n\013GetSnapshot\022$.google.p" - + "ubsub.v1.GetSnapshotRequest\032\032.google.pub" - + "sub.v1.Snapshot\"8\202\323\344\223\002\'\022%/v1/{snapshot=p" - + "rojects/*/snapshots/*}\332A\010snapshot\022\226\001\n\rLi" - + "stSnapshots\022&.google.pubsub.v1.ListSnaps" - + "hotsRequest\032\'.google.pubsub.v1.ListSnaps" - + "hotsResponse\"4\202\323\344\223\002$\022\"/v1/{project=proje" - + "cts/*}/snapshots\332A\007project\022\227\001\n\016CreateSna" - + "pshot\022\'.google.pubsub.v1.CreateSnapshotR" - + "equest\032\032.google.pubsub.v1.Snapshot\"@\202\323\344\223" - + "\002&\032!/v1/{name=projects/*/snapshots/*}:\001*" - + "\332A\021name,subscription\022\214\001\n\016UpdateSnapshot\022" - + "\'.google.pubsub.v1.UpdateSnapshotRequest" - + "\032\032.google.pubsub.v1.Snapshot\"5\202\323\344\223\002/2*/v" - + "1/{snapshot.name=projects/*/snapshots/*}" - + ":\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v" - + "1.DeleteSnapshotRequest\032\026.google.protobu" - + "f.Empty\"8\202\323\344\223\002\'*%/v1/{snapshot=projects/" - + "*/snapshots/*}\332A\010snapshot\022\204\001\n\004Seek\022\035.goo" - + "gle.pubsub.v1.SeekRequest\032\036.google.pubsu" - + "b.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscrip" - + "tion=projects/*/subscriptions/*}:seek:\001*" - + "\032p\312A\025pubsub.googleapis.com\322AUhttps://www" - + ".googleapis.com/auth/cloud-platform,http" - + "s://www.googleapis.com/auth/pubsubB\256\001\n\024c" - + "om.google.pubsub.v1B\013PubsubProtoP\001Z6goog" - + "le.golang.org/genproto/googleapis/pubsub" - + "/v1;pubsub\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002" + + "ersistence_regions\030\001 \003(\t\"\252\001\n\016SchemaSetti" + + "ngs\0225\n\006schema\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.goo" + + "gleapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.g" + + "oogle.pubsub.v1.Encoding\022\031\n\021first_revisi" + + "on_id\030\003 \001(\t\022\030\n\020last_revision_id\030\004 \001(\t\"\304\003" + + "\n\005Topic\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223\n\006labels\030\002 " + + "\003(\0132#.google.pubsub.v1.Topic.LabelsEntry" + + "\022F\n\026message_storage_policy\030\003 \001(\0132&.googl" + + "e.pubsub.v1.MessageStoragePolicy\022\024\n\014kms_" + + "key_name\030\005 \001(\t\0229\n\017schema_settings\030\006 \001(\0132" + + " .google.pubsub.v1.SchemaSettings\022\025\n\rsat" + + "isfies_pzs\030\007 \001(\010\022=\n\032message_retention_du" + + "ration\030\010 \001(\0132\031.google.protobuf.Duration\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001:T\352AQ\n\033pubsub.googleapis.com/Topic" + + "\022!projects/{project}/topics/{topic}\022\017_de" + + "leted-topic_\"\361\001\n\rPubsubMessage\022\014\n\004data\030\001" + + " \001(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub" + + ".v1.PubsubMessage.AttributesEntry\022\022\n\nmes" + + "sage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022\024\n\014ordering_key\030" + + "\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"F\n\017GetTopicRequest\0223\n\005t" + + "opic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.c" + + "om/Topic\"y\n\022UpdateTopicRequest\022,\n\005topic\030" + + "\001 \001(\0132\027.google.pubsub.v1.TopicB\004\342A\001\002\0225\n\013" + + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\004\342A\001\002\"~\n\016PublishRequest\0223\n\005topic\030\001" + + " \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Top" + + "ic\0227\n\010messages\030\002 \003(\0132\037.google.pubsub.v1." + + "PubsubMessageB\004\342A\001\002\"&\n\017PublishResponse\022\023" + + "\n\013message_ids\030\001 \003(\t\"\201\001\n\021ListTopicsReques" + + "t\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresour" + + "cemanager.googleapis.com/Project\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListT" + + "opicsResponse\022\'\n\006topics\030\001 \003(\0132\027.google.p" + + "ubsub.v1.Topic\022\027\n\017next_page_token\030\002 \001(\t\"" + + "{\n\035ListTopicSubscriptionsRequest\0223\n\005topi" + + "c\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.com/" + + "Topic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\"y\n\036ListTopicSubscriptionsResponse\022>" + + "\n\rsubscriptions\030\001 \003(\tB\'\372A$\n\"pubsub.googl" + + "eapis.com/Subscription\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"w\n\031ListTopicSnapshotsRequest\0223\n\005" + + "topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis." + + "com/Topic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"H\n\032ListTopicSnapshotsResponse\022\021" + + "\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001" + + "(\t\"I\n\022DeleteTopicRequest\0223\n\005topic\030\001 \001(\tB" + + "$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Topic\"^\n" + + "\031DetachSubscriptionRequest\022A\n\014subscripti" + + "on\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com" + + "/Subscription\"\034\n\032DetachSubscriptionRespo" + + "nse\"\255\010\n\014Subscription\022\022\n\004name\030\001 \001(\tB\004\342A\001\002" + + "\0223\n\005topic\030\002 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googlea" + + "pis.com/Topic\0221\n\013push_config\030\004 \001(\0132\034.goo" + + "gle.pubsub.v1.PushConfig\0229\n\017bigquery_con" + + "fig\030\022 \001(\0132 .google.pubsub.v1.BigQueryCon" + + "fig\022B\n\024cloud_storage_config\030\026 \001(\0132$.goog" + + "le.pubsub.v1.CloudStorageConfig\022\034\n\024ack_d" + + "eadline_seconds\030\005 \001(\005\022\035\n\025retain_acked_me" + + "ssages\030\007 \001(\010\022=\n\032message_retention_durati" + + "on\030\010 \001(\0132\031.google.protobuf.Duration\022:\n\006l" + + "abels\030\t \003(\0132*.google.pubsub.v1.Subscript" + + "ion.LabelsEntry\022\037\n\027enable_message_orderi" + + "ng\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\0132\".go" + + "ogle.pubsub.v1.ExpirationPolicy\022\016\n\006filte" + + "r\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\0132\".go" + + "ogle.pubsub.v1.DeadLetterPolicy\0223\n\014retry" + + "_policy\030\016 \001(\0132\035.google.pubsub.v1.RetryPo" + + "licy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_exactly" + + "_once_delivery\030\020 \001(\010\022I\n topic_message_re" + + "tention_duration\030\021 \001(\0132\031.google.protobuf" + + ".DurationB\004\342A\001\003\0229\n\005state\030\023 \001(\0162$.google." + + "pubsub.v1.Subscription.StateB\004\342A\001\003\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" + + "IVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.g" + + "oogleapis.com/Subscription\022/projects/{pr" + + "oject}/subscriptions/{subscription}\"u\n\013R" + + "etryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.go" + + "ogle.protobuf.Duration\0222\n\017maximum_backof" + + "f\030\002 \001(\0132\031.google.protobuf.Duration\"L\n\020De" + + "adLetterPolicy\022\031\n\021dead_letter_topic\030\001 \001(" + + "\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020Expi" + + "rationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.proto" + + "buf.Duration\"\362\003\n\nPushConfig\022\025\n\rpush_endp" + + "oint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google." + + "pubsub.v1.PushConfig.AttributesEntry\022<\n\n" + + "oidc_token\030\003 \001(\0132&.google.pubsub.v1.Push" + + "Config.OidcTokenH\000\022D\n\016pubsub_wrapper\030\004 \001" + + "(\0132*.google.pubsub.v1.PushConfig.PubsubW" + + "rapperH\001\022<\n\nno_wrapper\030\005 \001(\0132&.google.pu" + + "bsub.v1.PushConfig.NoWrapperH\001\032<\n\tOidcTo" + + "ken\022\035\n\025service_account_email\030\001 \001(\t\022\020\n\010au" + + "dience\030\002 \001(\t\032\017\n\rPubsubWrapper\032#\n\tNoWrapp" + + "er\022\026\n\016write_metadata\030\001 \001(\010\0321\n\017Attributes" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" + + "\025authentication_methodB\t\n\007wrapper\"\222\002\n\016Bi" + + "gQueryConfig\022\r\n\005table\030\001 \001(\t\022\030\n\020use_topic" + + "_schema\030\002 \001(\010\022\026\n\016write_metadata\030\003 \001(\010\022\033\n" + + "\023drop_unknown_fields\030\004 \001(\010\022;\n\005state\030\005 \001(" + + "\0162&.google.pubsub.v1.BigQueryConfig.Stat" + + "eB\004\342A\001\003\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" + + "T_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\"\210\004\n\022Cloud" + + "StorageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001\002\022\027\n\017f" + + "ilename_prefix\030\002 \001(\t\022\027\n\017filename_suffix\030" + + "\003 \001(\t\022F\n\013text_config\030\004 \001(\0132/.google.pubs" + + "ub.v1.CloudStorageConfig.TextConfigH\000\022F\n" + + "\013avro_config\030\005 \001(\0132/.google.pubsub.v1.Cl" + + "oudStorageConfig.AvroConfigH\000\022/\n\014max_dur" + + "ation\030\006 \001(\0132\031.google.protobuf.Duration\022\021" + + "\n\tmax_bytes\030\007 \001(\003\022?\n\005state\030\t \001(\0162*.googl" + + "e.pubsub.v1.CloudStorageConfig.StateB\004\342A" + + "\001\003\032\014\n\nTextConfig\032$\n\nAvroConfig\022\026\n\016write_" + + "metadata\030\001 \001(\010\"P\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020" + + "\002\022\r\n\tNOT_FOUND\020\003B\017\n\routput_format\"m\n\017Rec" + + "eivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030" + + "\002 \001(\0132\037.google.pubsub.v1.PubsubMessage\022\030" + + "\n\020delivery_attempt\030\003 \001(\005\"[\n\026GetSubscript" + + "ionRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A" + + "$\n\"pubsub.googleapis.com/Subscription\"\216\001" + + "\n\031UpdateSubscriptionRequest\022:\n\014subscript" + + "ion\030\001 \001(\0132\036.google.pubsub.v1.Subscriptio" + + "nB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\004\342A\001\002\"\210\001\n\030ListSubscript" + + "ionsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubscr" + + "iptions\030\001 \003(\0132\036.google.pubsub.v1.Subscri" + + "ption\022\027\n\017next_page_token\030\002 \001(\t\"^\n\031Delete" + + "SubscriptionRequest\022A\n\014subscription\030\001 \001(" + + "\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscr" + + "iption\"\225\001\n\027ModifyPushConfigRequest\022A\n\014su" + + "bscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.google" + + "apis.com/Subscription\0227\n\013push_config\030\002 \001" + + "(\0132\034.google.pubsub.v1.PushConfigB\004\342A\001\002\"\220" + + "\001\n\013PullRequest\022A\n\014subscription\030\001 \001(\tB+\342A" + + "\001\002\372A$\n\"pubsub.googleapis.com/Subscriptio" + + "n\022\"\n\022return_immediately\030\002 \001(\010B\006\030\001\342A\001\001\022\032\n" + + "\014max_messages\030\003 \001(\005B\004\342A\001\002\"L\n\014PullRespons" + + "e\022<\n\021received_messages\030\001 \003(\0132!.google.pu" + + "bsub.v1.ReceivedMessage\"\230\001\n\030ModifyAckDea" + + "dlineRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "\025\n\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024ack_deadline_s" + + "econds\030\003 \001(\005B\004\342A\001\002\"n\n\022AcknowledgeRequest" + + "\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\022\025\n\007ack_ids\030\002" + + " \003(\tB\004\342A\001\002\"\253\002\n\024StreamingPullRequest\022A\n\014s" + + "ubscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googl" + + "eapis.com/Subscription\022\017\n\007ack_ids\030\002 \003(\t\022" + + "\037\n\027modify_deadline_seconds\030\003 \003(\005\022\037\n\027modi" + + "fy_deadline_ack_ids\030\004 \003(\t\022)\n\033stream_ack_" + + "deadline_seconds\030\005 \001(\005B\004\342A\001\002\022\021\n\tclient_i" + + "d\030\006 \001(\t\022 \n\030max_outstanding_messages\030\007 \001(" + + "\003\022\035\n\025max_outstanding_bytes\030\010 \001(\003\"\335\005\n\025Str" + + "eamingPullResponse\022<\n\021received_messages\030" + + "\001 \003(\0132!.google.pubsub.v1.ReceivedMessage" + + "\022a\n\030acknowledge_confirmation\030\005 \001(\0132?.goo" + + "gle.pubsub.v1.StreamingPullResponse.Ackn" + + "owledgeConfirmation\022o\n modify_ack_deadli" + + "ne_confirmation\030\003 \001(\0132E.google.pubsub.v1" + + ".StreamingPullResponse.ModifyAckDeadline" + + "Confirmation\022_\n\027subscription_properties\030" + + "\004 \001(\0132>.google.pubsub.v1.StreamingPullRe" + + "sponse.SubscriptionProperties\032\200\001\n\027Acknow" + + "ledgeConfirmation\022\017\n\007ack_ids\030\001 \003(\t\022\027\n\017in" + + "valid_ack_ids\030\002 \003(\t\022\031\n\021unordered_ack_ids" + + "\030\003 \003(\t\022 \n\030temporary_failed_ack_ids\030\004 \003(\t" + + "\032k\n\035ModifyAckDeadlineConfirmation\022\017\n\007ack" + + "_ids\030\001 \003(\t\022\027\n\017invalid_ack_ids\030\002 \003(\t\022 \n\030t" + + "emporary_failed_ack_ids\030\003 \003(\t\032a\n\026Subscri" + + "ptionProperties\022%\n\035exactly_once_delivery" + + "_enabled\030\001 \001(\010\022 \n\030message_ordering_enabl" + + "ed\030\002 \001(\010\"\205\002\n\025CreateSnapshotRequest\0225\n\004na" + + "me\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googleapis.com" + + "/Snapshot\022A\n\014subscription\030\002 \001(\tB+\342A\001\002\372A$" + + "\n\"pubsub.googleapis.com/Subscription\022C\n\006" + + "labels\030\003 \003(\01323.google.pubsub.v1.CreateSn" + + "apshotRequest.LabelsEntry\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\202\001\n\025Upd" + + "ateSnapshotRequest\0222\n\010snapshot\030\001 \001(\0132\032.g" + + "oogle.pubsub.v1.SnapshotB\004\342A\001\002\0225\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\004\342A\001\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topi" + + "c\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topi" + + "c\022/\n\013expire_time\030\003 \001(\0132\032.google.protobuf" + + ".Timestamp\0226\n\006labels\030\004 \003(\0132&.google.pubs" + + "ub.v1.Snapshot.LabelsEntry\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036" + + "pubsub.googleapis.com/Snapshot\022\'projects" + + "/{project}/snapshots/{snapshot}\"O\n\022GetSn" + + "apshotRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A " + + "\n\036pubsub.googleapis.com/Snapshot\"\204\001\n\024Lis" + + "tSnapshotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002" + + "\372A-\n+cloudresourcemanager.googleapis.com" + + "/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnap" + + "shots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022" + + "\027\n\017next_page_token\030\002 \001(\t\"R\n\025DeleteSnapsh" + + "otRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pu" + + "bsub.googleapis.com/Snapshot\"\277\001\n\013SeekReq" + + "uest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\022*\n\004time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampH\000\0227\n\010s" + + "napshot\030\003 \001(\tB#\372A \n\036pubsub.googleapis.co" + + "m/SnapshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270" + + "\013\n\tPublisher\022q\n\013CreateTopic\022\027.google.pub" + + "sub.v1.Topic\032\027.google.pubsub.v1.Topic\"0\332" + + "A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topic" + + "s/*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub." + + "v1.UpdateTopicRequest\032\027.google.pubsub.v1" + + ".Topic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/" + + "{topic.name=projects/*/topics/*}:\001*\022\223\001\n\007" + + "Publish\022 .google.pubsub.v1.PublishReques" + + "t\032!.google.pubsub.v1.PublishResponse\"C\332A" + + "\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=projec" + + "ts/*/topics/*}:publish:\001*\022w\n\010GetTopic\022!." + + "google.pubsub.v1.GetTopicRequest\032\027.googl" + + "e.pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{" + + "topic=projects/*/topics/*}\022\212\001\n\nListTopic" + + "s\022#.google.pubsub.v1.ListTopicsRequest\032$" + + ".google.pubsub.v1.ListTopicsResponse\"1\332A" + + "\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}" + + "/topics\022\272\001\n\026ListTopicSubscriptions\022/.goo" + + "gle.pubsub.v1.ListTopicSubscriptionsRequ" + + "est\0320.google.pubsub.v1.ListTopicSubscrip" + + "tionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topi" + + "c=projects/*/topics/*}/subscriptions\022\252\001\n" + + "\022ListTopicSnapshots\022+.google.pubsub.v1.L" + + "istTopicSnapshotsRequest\032,.google.pubsub" + + ".v1.ListTopicSnapshotsResponse\"9\332A\005topic" + + "\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/" + + "snapshots\022|\n\013DeleteTopic\022$.google.pubsub" + + ".v1.DeleteTopicRequest\032\026.google.protobuf" + + ".Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=proje" + + "cts/*/topics/*}\022\255\001\n\022DetachSubscription\022+" + + ".google.pubsub.v1.DetachSubscriptionRequ" + + "est\032,.google.pubsub.v1.DetachSubscriptio" + + "nResponse\"<\202\323\344\223\0026\"4/v1/{subscription=pro" + + "jects/*/subscriptions/*}:detach\032p\312A\025pubs" + + "ub.googleapis.com\322AUhttps://www.googleap" + + "is.com/auth/cloud-platform,https://www.g" + + "oogleapis.com/auth/pubsub2\322\025\n\nSubscriber" + + "\022\264\001\n\022CreateSubscription\022\036.google.pubsub." + + "v1.Subscription\032\036.google.pubsub.v1.Subsc" + + "ription\"^\332A+name,topic,push_config,ack_d" + + "eadline_seconds\202\323\344\223\002*\032%/v1/{name=project" + + "s/*/subscriptions/*}:\001*\022\241\001\n\017GetSubscript" + + "ion\022(.google.pubsub.v1.GetSubscriptionRe" + + "quest\032\036.google.pubsub.v1.Subscription\"D\332" + + "A\014subscription\202\323\344\223\002/\022-/v1/{subscription=" + + "projects/*/subscriptions/*}\022\273\001\n\022UpdateSu" + + "bscription\022+.google.pubsub.v1.UpdateSubs" + + "criptionRequest\032\036.google.pubsub.v1.Subsc" + + "ription\"X\332A\030subscription,update_mask\202\323\344\223" + + "\002722/v1/{subscription.name=projects/*/su" + + "bscriptions/*}:\001*\022\246\001\n\021ListSubscriptions\022" + + "*.google.pubsub.v1.ListSubscriptionsRequ" + + "est\032+.google.pubsub.v1.ListSubscriptions" + + "Response\"8\332A\007project\202\323\344\223\002(\022&/v1/{project" + + "=projects/*}/subscriptions\022\237\001\n\022DeleteSub" + + "scription\022+.google.pubsub.v1.DeleteSubsc" + + "riptionRequest\032\026.google.protobuf.Empty\"D" + + "\332A\014subscription\202\323\344\223\002/*-/v1/{subscription" + + "=projects/*/subscriptions/*}\022\317\001\n\021ModifyA" + + "ckDeadline\022*.google.pubsub.v1.ModifyAckD" + + "eadlineRequest\032\026.google.protobuf.Empty\"v" + + "\332A)subscription,ack_ids,ack_deadline_sec" + + "onds\202\323\344\223\002D\"?/v1/{subscription=projects/*" + + "/subscriptions/*}:modifyAckDeadline:\001*\022\250" + + "\001\n\013Acknowledge\022$.google.pubsub.v1.Acknow" + + "ledgeRequest\032\026.google.protobuf.Empty\"[\332A" + + "\024subscription,ack_ids\202\323\344\223\002>\"9/v1/{subscr" + + "iption=projects/*/subscriptions/*}:ackno" + + "wledge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.Pu" + + "llRequest\032\036.google.pubsub.v1.PullRespons" + + "e\"\210\001\332A,subscription,return_immediately,m" + + "ax_messages\332A\031subscription,max_messages\202" + + "\323\344\223\0027\"2/v1/{subscription=projects/*/subs" + + "criptions/*}:pull:\001*\022f\n\rStreamingPull\022&." + + "google.pubsub.v1.StreamingPullRequest\032\'." + + "google.pubsub.v1.StreamingPullResponse\"\000" + + "(\0010\001\022\273\001\n\020ModifyPushConfig\022).google.pubsu" + + "b.v1.ModifyPushConfigRequest\032\026.google.pr" + + "otobuf.Empty\"d\332A\030subscription,push_confi" + + "g\202\323\344\223\002C\">/v1/{subscription=projects/*/su" + + "bscriptions/*}:modifyPushConfig:\001*\022\211\001\n\013G" + + "etSnapshot\022$.google.pubsub.v1.GetSnapsho" + + "tRequest\032\032.google.pubsub.v1.Snapshot\"8\332A" + + "\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/" + + "*/snapshots/*}\022\226\001\n\rListSnapshots\022&.googl" + + "e.pubsub.v1.ListSnapshotsRequest\032\'.googl" + + "e.pubsub.v1.ListSnapshotsResponse\"4\332A\007pr" + + "oject\202\323\344\223\002$\022\"/v1/{project=projects/*}/sn" + + "apshots\022\227\001\n\016CreateSnapshot\022\'.google.pubs" + + "ub.v1.CreateSnapshotRequest\032\032.google.pub" + + "sub.v1.Snapshot\"@\332A\021name,subscription\202\323\344" + + "\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001" + + "*\022\243\001\n\016UpdateSnapshot\022\'.google.pubsub.v1." + + "UpdateSnapshotRequest\032\032.google.pubsub.v1" + + ".Snapshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/" + + "2*/v1/{snapshot.name=projects/*/snapshot" + + "s/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubs" + + "ub.v1.DeleteSnapshotRequest\032\026.google.pro" + + "tobuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{sna" + + "pshot=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035" + + ".google.pubsub.v1.SeekRequest\032\036.google.p" + + "ubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subs" + + "cription=projects/*/subscriptions/*}:see" + + "k:\001*\032p\312A\025pubsub.googleapis.com\322AUhttps:/" + + "/www.googleapis.com/auth/cloud-platform," + + "https://www.googleapis.com/auth/pubsubB\252" + + "\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z2" + + "cloud.google.com/go/pubsub/apiv1/pubsubp" + + "b;pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002" + "\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud:" + ":PubSub::V1b\006proto3" }; @@ -743,6 +787,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PushConfig", "BigqueryConfig", + "CloudStorageConfig", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", @@ -795,7 +840,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, new java.lang.String[] { - "PushEndpoint", "Attributes", "OidcToken", "AuthenticationMethod", + "PushEndpoint", + "Attributes", + "OidcToken", + "PubsubWrapper", + "NoWrapper", + "AuthenticationMethod", + "Wrapper", }); internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor = internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0); @@ -805,8 +856,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ServiceAccountEmail", "Audience", }); - internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor = internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor, + new java.lang.String[] { + "WriteMetadata", + }); + internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(3); internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, @@ -821,8 +886,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Table", "UseTopicSchema", "WriteMetadata", "DropUnknownFields", "State", }); - internal_static_google_pubsub_v1_ReceivedMessage_descriptor = + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = getDescriptor().getMessageTypes().get(23); + internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, + new java.lang.String[] { + "Bucket", + "FilenamePrefix", + "FilenameSuffix", + "TextConfig", + "AvroConfig", + "MaxDuration", + "MaxBytes", + "State", + "OutputFormat", + }); + internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor = + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor = + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor, + new java.lang.String[] { + "WriteMetadata", + }); + internal_static_google_pubsub_v1_ReceivedMessage_descriptor = + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -830,7 +925,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -838,7 +933,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -846,7 +941,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -854,7 +949,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -862,7 +957,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -870,7 +965,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -878,7 +973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -886,7 +981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -894,7 +989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -902,7 +997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -910,7 +1005,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -925,7 +1020,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -941,7 +1036,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor, new java.lang.String[] { - "AckIds", "InvalidAckIds", "UnorderedAckIds", + "AckIds", "InvalidAckIds", "UnorderedAckIds", "TemporaryFailedAckIds", }); internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor = internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(1); @@ -949,7 +1044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor, new java.lang.String[] { - "AckIds", "InvalidAckIds", + "AckIds", "InvalidAckIds", "TemporaryFailedAckIds", }); internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor = internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(2); @@ -960,7 +1055,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -976,7 +1071,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -984,7 +1079,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1000,7 +1095,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1008,7 +1103,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1016,7 +1111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1024,7 +1119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1032,7 +1127,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1040,7 +1135,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 8565ba78e03d..1eb3db22957c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PullRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } @@ -66,7 +61,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object subscription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; /** * * @@ -121,7 +118,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } public static final int RETURN_IMMEDIATELY_FIELD_NUMBER = 2; - private boolean returnImmediately_; + private boolean returnImmediately_ = false; /** * * @@ -139,7 +136,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1117 + * google/pubsub/v1/pubsub.proto;l=1221 * @return The returnImmediately. */ @java.lang.Override @@ -149,7 +146,7 @@ public boolean getReturnImmediately() { } public static final int MAX_MESSAGES_FIELD_NUMBER = 3; - private int maxMessages_; + private int maxMessages_ = 0; /** * * @@ -381,12 +378,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; subscription_ = ""; - returnImmediately_ = false; - maxMessages_ = 0; - return this; } @@ -413,13 +408,26 @@ public com.google.pubsub.v1.PullRequest build() { @java.lang.Override public com.google.pubsub.v1.PullRequest buildPartial() { com.google.pubsub.v1.PullRequest result = new com.google.pubsub.v1.PullRequest(this); - result.subscription_ = subscription_; - result.returnImmediately_ = returnImmediately_; - result.maxMessages_ = maxMessages_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.PullRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subscription_ = subscription_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.returnImmediately_ = returnImmediately_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxMessages_ = maxMessages_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -467,6 +475,7 @@ public Builder mergeFrom(com.google.pubsub.v1.PullRequest other) { if (other == com.google.pubsub.v1.PullRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getReturnImmediately() != false) { @@ -504,19 +513,19 @@ public Builder mergeFrom( case 10: { subscription_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { returnImmediately_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { maxMessages_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -536,6 +545,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object subscription_ = ""; /** * @@ -606,8 +617,8 @@ public Builder setSubscription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -626,8 +637,8 @@ public Builder setSubscription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSubscription() { - subscription_ = getDefaultInstance().getSubscription(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -651,8 +662,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -676,7 +687,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1117 + * google/pubsub/v1/pubsub.proto;l=1221 * @return The returnImmediately. */ @java.lang.Override @@ -702,7 +713,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1117 + * google/pubsub/v1/pubsub.proto;l=1221 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -710,6 +721,7 @@ public boolean getReturnImmediately() { public Builder setReturnImmediately(boolean value) { returnImmediately_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -731,12 +743,12 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1117 + * google/pubsub/v1/pubsub.proto;l=1221 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearReturnImmediately() { - + bitField0_ = (bitField0_ & ~0x00000002); returnImmediately_ = false; onChanged(); return this; @@ -777,6 +789,7 @@ public int getMaxMessages() { public Builder setMaxMessages(int value) { maxMessages_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -794,7 +807,7 @@ public Builder setMaxMessages(int value) { * @return This builder for chaining. */ public Builder clearMaxMessages() { - + bitField0_ = (bitField0_ & ~0x00000004); maxMessages_ = 0; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 43814a65513b..477636c7aa57 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -71,7 +71,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1117 + * google/pubsub/v1/pubsub.proto;l=1221 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 7a020712d3c7..ebded4a91cb4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PullResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PullResponse_descriptor; @@ -68,13 +63,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List receivedMessages_; /** * * *
        * 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
    +   * messages available in the backlog, or if no messages could be returned
    +   * before the request timeout. 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.
        * 
    @@ -90,7 +88,8 @@ public java.util.List getReceivedMessagesL * *
        * 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
    +   * messages available in the backlog, or if no messages could be returned
    +   * before the request timeout. 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.
        * 
    @@ -107,7 +106,8 @@ public java.util.List getReceivedMessagesL * *
        * 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
    +   * messages available in the backlog, or if no messages could be returned
    +   * before the request timeout. 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.
        * 
    @@ -123,7 +123,8 @@ public int getReceivedMessagesCount() { * *
        * 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
    +   * messages available in the backlog, or if no messages could be returned
    +   * before the request timeout. 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.
        * 
    @@ -139,7 +140,8 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * *
        * 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
    +   * messages available in the backlog, or if no messages could be returned
    +   * before the request timeout. 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.
        * 
    @@ -348,6 +350,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (receivedMessagesBuilder_ == null) { receivedMessages_ = java.util.Collections.emptyList(); } else { @@ -381,7 +384,15 @@ public com.google.pubsub.v1.PullResponse build() { @java.lang.Override public com.google.pubsub.v1.PullResponse buildPartial() { com.google.pubsub.v1.PullResponse result = new com.google.pubsub.v1.PullResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.pubsub.v1.PullResponse result) { if (receivedMessagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); @@ -391,8 +402,10 @@ public com.google.pubsub.v1.PullResponse buildPartial() { } else { result.receivedMessages_ = receivedMessagesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.pubsub.v1.PullResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -547,7 +560,8 @@ private void ensureReceivedMessagesIsMutable() { * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -566,7 +580,8 @@ public java.util.List getReceivedMessagesL * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -585,7 +600,8 @@ public int getReceivedMessagesCount() { * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -604,7 +620,8 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -629,7 +646,8 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -652,7 +670,8 @@ public Builder setReceivedMessages( * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -677,7 +696,8 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -702,7 +722,8 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -725,7 +746,8 @@ public Builder addReceivedMessages( * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -748,7 +770,8 @@ public Builder addReceivedMessages( * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -771,7 +794,8 @@ public Builder addAllReceivedMessages( * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -793,7 +817,8 @@ public Builder clearReceivedMessages() { * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -815,7 +840,8 @@ public Builder removeReceivedMessages(int index) { * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -830,7 +856,8 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(i * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -849,7 +876,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -869,7 +897,8 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -885,7 +914,8 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    @@ -901,7 +931,8 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * *
          * 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
    +     * messages available in the backlog, or if no messages could be returned
    +     * before the request timeout. 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.
          * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index f7843870eeea..be7b61b164e8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -28,7 +28,8 @@ public interface PullResponseOrBuilder * *
        * 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
    +   * messages available in the backlog, or if no messages could be returned
    +   * before the request timeout. 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.
        * 
    @@ -41,7 +42,8 @@ public interface PullResponseOrBuilder * *
        * 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
    +   * messages available in the backlog, or if no messages could be returned
    +   * before the request timeout. 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.
        * 
    @@ -54,7 +56,8 @@ public interface PullResponseOrBuilder * *
        * 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
    +   * messages available in the backlog, or if no messages could be returned
    +   * before the request timeout. 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.
        * 
    @@ -67,7 +70,8 @@ public interface PullResponseOrBuilder * *
        * 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
    +   * messages available in the backlog, or if no messages could be returned
    +   * before the request timeout. 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.
        * 
    @@ -81,7 +85,8 @@ public interface PullResponseOrBuilder * *
        * 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
    +   * messages available in the backlog, or if no messages could be returned
    +   * before the request timeout. 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.
        * 
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 5dcae2fc969d..612b8586ffc9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PushConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; } @@ -87,9 +82,9 @@ public interface OidcTokenOrBuilder *
          * [Service account
          * email](https://cloud.google.com/iam/docs/service-accounts)
    -     * to be used for generating the OIDC token. The caller (for
    -     * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
    -     * have the iam.serviceAccounts.actAs permission for the service account.
    +     * used for generating the OIDC token. For more information
    +     * on setting up authentication, see
    +     * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
          * 
    * * string service_account_email = 1; @@ -103,9 +98,9 @@ public interface OidcTokenOrBuilder *
          * [Service account
          * email](https://cloud.google.com/iam/docs/service-accounts)
    -     * to be used for generating the OIDC token. The caller (for
    -     * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
    -     * have the iam.serviceAccounts.actAs permission for the service account.
    +     * used for generating the OIDC token. For more information
    +     * on setting up authentication, see
    +     * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
          * 
    * * string service_account_email = 1; @@ -181,11 +176,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OidcToken(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; @@ -202,16 +192,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 1; - private volatile java.lang.Object serviceAccountEmail_; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountEmail_ = ""; /** * * *
          * [Service account
          * email](https://cloud.google.com/iam/docs/service-accounts)
    -     * to be used for generating the OIDC token. The caller (for
    -     * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
    -     * have the iam.serviceAccounts.actAs permission for the service account.
    +     * used for generating the OIDC token. For more information
    +     * on setting up authentication, see
    +     * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
          * 
    * * string service_account_email = 1; @@ -236,9 +228,9 @@ public java.lang.String getServiceAccountEmail() { *
          * [Service account
          * email](https://cloud.google.com/iam/docs/service-accounts)
    -     * to be used for generating the OIDC token. The caller (for
    -     * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
    -     * have the iam.serviceAccounts.actAs permission for the service account.
    +     * used for generating the OIDC token. For more information
    +     * on setting up authentication, see
    +     * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
          * 
    * * string service_account_email = 1; @@ -259,7 +251,9 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } public static final int AUDIENCE_FIELD_NUMBER = 2; - private volatile java.lang.Object audience_; + + @SuppressWarnings("serial") + private volatile java.lang.Object audience_ = ""; /** * * @@ -527,10 +521,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; serviceAccountEmail_ = ""; - audience_ = ""; - return this; } @@ -558,12 +551,23 @@ public com.google.pubsub.v1.PushConfig.OidcToken build() { public com.google.pubsub.v1.PushConfig.OidcToken buildPartial() { com.google.pubsub.v1.PushConfig.OidcToken result = new com.google.pubsub.v1.PushConfig.OidcToken(this); - result.serviceAccountEmail_ = serviceAccountEmail_; - result.audience_ = audience_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.PushConfig.OidcToken result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAccountEmail_ = serviceAccountEmail_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.audience_ = audience_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -613,10 +617,12 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig.OidcToken other) { if (other == com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance()) return this; if (!other.getServiceAccountEmail().isEmpty()) { serviceAccountEmail_ = other.serviceAccountEmail_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getAudience().isEmpty()) { audience_ = other.audience_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -648,13 +654,13 @@ public Builder mergeFrom( case 10: { serviceAccountEmail_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { audience_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -674,6 +680,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object serviceAccountEmail_ = ""; /** * @@ -681,9 +689,9 @@ public Builder mergeFrom( *
            * [Service account
            * email](https://cloud.google.com/iam/docs/service-accounts)
    -       * to be used for generating the OIDC token. The caller (for
    -       * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
    -       * have the iam.serviceAccounts.actAs permission for the service account.
    +       * used for generating the OIDC token. For more information
    +       * on setting up authentication, see
    +       * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
            * 
    * * string service_account_email = 1; @@ -707,9 +715,9 @@ public java.lang.String getServiceAccountEmail() { *
            * [Service account
            * email](https://cloud.google.com/iam/docs/service-accounts)
    -       * to be used for generating the OIDC token. The caller (for
    -       * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
    -       * have the iam.serviceAccounts.actAs permission for the service account.
    +       * used for generating the OIDC token. For more information
    +       * on setting up authentication, see
    +       * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
            * 
    * * string service_account_email = 1; @@ -733,9 +741,9 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { *
            * [Service account
            * email](https://cloud.google.com/iam/docs/service-accounts)
    -       * to be used for generating the OIDC token. The caller (for
    -       * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
    -       * have the iam.serviceAccounts.actAs permission for the service account.
    +       * used for generating the OIDC token. For more information
    +       * on setting up authentication, see
    +       * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
            * 
    * * string service_account_email = 1; @@ -747,8 +755,8 @@ public Builder setServiceAccountEmail(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - serviceAccountEmail_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -758,9 +766,9 @@ public Builder setServiceAccountEmail(java.lang.String value) { *
            * [Service account
            * email](https://cloud.google.com/iam/docs/service-accounts)
    -       * to be used for generating the OIDC token. The caller (for
    -       * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
    -       * have the iam.serviceAccounts.actAs permission for the service account.
    +       * used for generating the OIDC token. For more information
    +       * on setting up authentication, see
    +       * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
            * 
    * * string service_account_email = 1; @@ -768,8 +776,8 @@ public Builder setServiceAccountEmail(java.lang.String value) { * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { - serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -779,9 +787,9 @@ public Builder clearServiceAccountEmail() { *
            * [Service account
            * email](https://cloud.google.com/iam/docs/service-accounts)
    -       * to be used for generating the OIDC token. The caller (for
    -       * CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must
    -       * have the iam.serviceAccounts.actAs permission for the service account.
    +       * used for generating the OIDC token. For more information
    +       * on setting up authentication, see
    +       * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
            * 
    * * string service_account_email = 1; @@ -794,8 +802,8 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - serviceAccountEmail_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -876,8 +884,8 @@ public Builder setAudience(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - audience_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -898,8 +906,8 @@ public Builder setAudience(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAudience() { - audience_ = getDefaultInstance().getAudience(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -925,8 +933,8 @@ public Builder setAudienceBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - audience_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -995,160 +1003,1193 @@ public com.google.pubsub.v1.PushConfig.OidcToken getDefaultInstanceForType() { } } - private int authenticationMethodCase_ = 0; - private java.lang.Object authenticationMethod_; - - public enum AuthenticationMethodCase + public interface PubsubWrapperOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig.PubsubWrapper) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * The payload to the push endpoint is in the form of the JSON representation
    +   * of a PubsubMessage
    +   * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.PushConfig.PubsubWrapper} + */ + public static final class PubsubWrapper extends com.google.protobuf.GeneratedMessageV3 implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - OIDC_TOKEN(3), - AUTHENTICATIONMETHOD_NOT_SET(0); - private final int value; + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.PubsubWrapper) + PubsubWrapperOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubsubWrapper.newBuilder() to construct. + private PubsubWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - private AuthenticationMethodCase(int value) { - this.value = value; + private PubsubWrapper() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubsubWrapper(); } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AuthenticationMethodCase valueOf(int value) { - return forNumber(value); + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor; } - public static AuthenticationMethodCase forNumber(int value) { - switch (value) { - case 3: - return OIDC_TOKEN; - case 0: - return AUTHENTICATIONMETHOD_NOT_SET; - default: - return null; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PushConfig.PubsubWrapper.class, + com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } + if (!(obj instanceof com.google.pubsub.v1.PushConfig.PubsubWrapper)) { + return super.equals(obj); + } + com.google.pubsub.v1.PushConfig.PubsubWrapper other = + (com.google.pubsub.v1.PushConfig.PubsubWrapper) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - public int getNumber() { - return this.value; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - }; - public AuthenticationMethodCase getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber(authenticationMethodCase_); - } + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int PUSH_ENDPOINT_FIELD_NUMBER = 1; - private volatile java.lang.Object pushEndpoint_; - /** - * - * - *
    -   * A URL locating the endpoint to which messages should be pushed.
    -   * For example, a Webhook endpoint might use `https://example.com/push`.
    -   * 
    - * - * string push_endpoint = 1; - * - * @return The pushEndpoint. - */ - @java.lang.Override - public java.lang.String getPushEndpoint() { - java.lang.Object ref = pushEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pushEndpoint_ = s; - return s; + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - } - /** - * - * - *
    -   * A URL locating the endpoint to which messages should be pushed.
    -   * For example, a Webhook endpoint might use `https://example.com/push`.
    -   * 
    - * - * string push_endpoint = 1; - * - * @return The bytes for pushEndpoint. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPushEndpointBytes() { - java.lang.Object ref = pushEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pushEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - } - public static final int ATTRIBUTES_FIELD_NUMBER = 2; + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private static final class AttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private com.google.protobuf.MapField attributes_; + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private com.google.protobuf.MapField internalGetAttributes() { - if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry); + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - return attributes_; - } - public int getAttributesCount() { - return internalGetAttributes().getMap().size(); - } - /** - * - * - *
    -   * Endpoint configuration attributes that can be used to control different
    -   * aspects of the message delivery.
    -   * The only currently supported attribute is `x-goog-version`, which you can
    -   * use to change the format of the pushed message. This attribute
    -   * indicates the version of the data expected by the endpoint. This
    -   * controls the shape of the pushed message (i.e., its fields and metadata).
    -   * If not present during the `CreateSubscription` call, it will default to
    -   * the version of the Pub/Sub API used to make such call. If not present in a
    -   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
    -   * calls will always return a valid version, even if the subscription was
    -   * created without this attribute.
    -   * The only supported values for the `x-goog-version` attribute are:
    -   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
    -   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    -   * For example:
    -   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    -   * 
    - * - * map<string, string> attributes = 2; - */ - @java.lang.Override - public boolean containsAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - return internalGetAttributes().getMap().containsKey(key); - } - /** Use {@link #getAttributesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated + + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.PushConfig.PubsubWrapper prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * The payload to the push endpoint is in the form of the JSON representation
    +     * of a PubsubMessage
    +     * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.PushConfig.PubsubWrapper} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig.PubsubWrapper) + com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PushConfig.PubsubWrapper.class, + com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder.class); + } + + // Construct using com.google.pubsub.v1.PushConfig.PubsubWrapper.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.PubsubWrapper getDefaultInstanceForType() { + return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.PubsubWrapper build() { + com.google.pubsub.v1.PushConfig.PubsubWrapper result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.PubsubWrapper buildPartial() { + com.google.pubsub.v1.PushConfig.PubsubWrapper result = + new com.google.pubsub.v1.PushConfig.PubsubWrapper(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.PushConfig.PubsubWrapper) { + return mergeFrom((com.google.pubsub.v1.PushConfig.PubsubWrapper) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PushConfig.PubsubWrapper other) { + if (other == com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig.PubsubWrapper) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.PubsubWrapper) + private static final com.google.pubsub.v1.PushConfig.PubsubWrapper DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig.PubsubWrapper(); + } + + public static com.google.pubsub.v1.PushConfig.PubsubWrapper getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubsubWrapper parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.PubsubWrapper getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NoWrapperOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig.NoWrapper) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * When true, writes the Pub/Sub message metadata to
    +     * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
    +     * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
    +     * 
    + * + * bool write_metadata = 1; + * + * @return The writeMetadata. + */ + boolean getWriteMetadata(); + } + /** + * + * + *
    +   * Sets the `data` field as the HTTP body for delivery.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.PushConfig.NoWrapper} + */ + public static final class NoWrapper extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.NoWrapper) + NoWrapperOrBuilder { + private static final long serialVersionUID = 0L; + // Use NoWrapper.newBuilder() to construct. + private NoWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NoWrapper() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NoWrapper(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PushConfig.NoWrapper.class, + com.google.pubsub.v1.PushConfig.NoWrapper.Builder.class); + } + + public static final int WRITE_METADATA_FIELD_NUMBER = 1; + private boolean writeMetadata_ = false; + /** + * + * + *
    +     * When true, writes the Pub/Sub message metadata to
    +     * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
    +     * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
    +     * 
    + * + * bool write_metadata = 1; + * + * @return The writeMetadata. + */ + @java.lang.Override + public boolean getWriteMetadata() { + return writeMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (writeMetadata_ != false) { + output.writeBool(1, writeMetadata_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (writeMetadata_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, writeMetadata_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.PushConfig.NoWrapper)) { + return super.equals(obj); + } + com.google.pubsub.v1.PushConfig.NoWrapper other = + (com.google.pubsub.v1.PushConfig.NoWrapper) obj; + + if (getWriteMetadata() != other.getWriteMetadata()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WRITE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWriteMetadata()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.PushConfig.NoWrapper prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Sets the `data` field as the HTTP body for delivery.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.PushConfig.NoWrapper} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig.NoWrapper) + com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PushConfig.NoWrapper.class, + com.google.pubsub.v1.PushConfig.NoWrapper.Builder.class); + } + + // Construct using com.google.pubsub.v1.PushConfig.NoWrapper.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + writeMetadata_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.NoWrapper getDefaultInstanceForType() { + return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.NoWrapper build() { + com.google.pubsub.v1.PushConfig.NoWrapper result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.NoWrapper buildPartial() { + com.google.pubsub.v1.PushConfig.NoWrapper result = + new com.google.pubsub.v1.PushConfig.NoWrapper(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.PushConfig.NoWrapper result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.writeMetadata_ = writeMetadata_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.PushConfig.NoWrapper) { + return mergeFrom((com.google.pubsub.v1.PushConfig.NoWrapper) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PushConfig.NoWrapper other) { + if (other == com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance()) return this; + if (other.getWriteMetadata() != false) { + setWriteMetadata(other.getWriteMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + writeMetadata_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean writeMetadata_; + /** + * + * + *
    +       * When true, writes the Pub/Sub message metadata to
    +       * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
    +       * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
    +       * 
    + * + * bool write_metadata = 1; + * + * @return The writeMetadata. + */ + @java.lang.Override + public boolean getWriteMetadata() { + return writeMetadata_; + } + /** + * + * + *
    +       * When true, writes the Pub/Sub message metadata to
    +       * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
    +       * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
    +       * 
    + * + * bool write_metadata = 1; + * + * @param value The writeMetadata to set. + * @return This builder for chaining. + */ + public Builder setWriteMetadata(boolean value) { + + writeMetadata_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * When true, writes the Pub/Sub message metadata to
    +       * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
    +       * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
    +       * 
    + * + * bool write_metadata = 1; + * + * @return This builder for chaining. + */ + public Builder clearWriteMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + writeMetadata_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig.NoWrapper) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PushConfig.NoWrapper) + private static final com.google.pubsub.v1.PushConfig.NoWrapper DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PushConfig.NoWrapper(); + } + + public static com.google.pubsub.v1.PushConfig.NoWrapper getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NoWrapper parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.PushConfig.NoWrapper getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int authenticationMethodCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object authenticationMethod_; + + public enum AuthenticationMethodCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OIDC_TOKEN(3), + AUTHENTICATIONMETHOD_NOT_SET(0); + private final int value; + + private AuthenticationMethodCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthenticationMethodCase valueOf(int value) { + return forNumber(value); + } + + public static AuthenticationMethodCase forNumber(int value) { + switch (value) { + case 3: + return OIDC_TOKEN; + case 0: + return AUTHENTICATIONMETHOD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + } + + private int wrapperCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object wrapper_; + + public enum WrapperCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PUBSUB_WRAPPER(4), + NO_WRAPPER(5), + WRAPPER_NOT_SET(0); + private final int value; + + private WrapperCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WrapperCase valueOf(int value) { + return forNumber(value); + } + + public static WrapperCase forNumber(int value) { + switch (value) { + case 4: + return PUBSUB_WRAPPER; + case 5: + return NO_WRAPPER; + case 0: + return WRAPPER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public WrapperCase getWrapperCase() { + return WrapperCase.forNumber(wrapperCase_); + } + + public static final int PUSH_ENDPOINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pushEndpoint_ = ""; + /** + * + * + *
    +   * A URL locating the endpoint to which messages should be pushed.
    +   * For example, a Webhook endpoint might use `https://example.com/push`.
    +   * 
    + * + * string push_endpoint = 1; + * + * @return The pushEndpoint. + */ + @java.lang.Override + public java.lang.String getPushEndpoint() { + java.lang.Object ref = pushEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pushEndpoint_ = s; + return s; + } + } + /** + * + * + *
    +   * A URL locating the endpoint to which messages should be pushed.
    +   * For example, a Webhook endpoint might use `https://example.com/push`.
    +   * 
    + * + * string push_endpoint = 1; + * + * @return The bytes for pushEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPushEndpointBytes() { + java.lang.Object ref = pushEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pushEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 2; + + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField attributes_; + + private com.google.protobuf.MapField internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField(AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + * + * + *
    +   * Endpoint configuration attributes that can be used to control different
    +   * aspects of the message delivery.
    +   *
    +   * The only currently supported attribute is `x-goog-version`, which you can
    +   * use to change the format of the pushed message. This attribute
    +   * indicates the version of the data expected by the endpoint. This
    +   * controls the shape of the pushed message (i.e., its fields and metadata).
    +   *
    +   * If not present during the `CreateSubscription` call, it will default to
    +   * the version of the Pub/Sub API used to make such call. If not present in a
    +   * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
    +   * calls will always return a valid version, even if the subscription was
    +   * created without this attribute.
    +   *
    +   * The only supported values for the `x-goog-version` attribute are:
    +   *
    +   * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
    +   * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   *
    +   * For example:
    +   * `attributes { "x-goog-version": "v1" }`
    +   * 
    + * + * map<string, string> attributes = 2; + */ + @java.lang.Override + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAttributes().getMap().containsKey(key); + } + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } @@ -1158,20 +2199,25 @@ public java.util.Map getAttributes() { *
        * Endpoint configuration attributes that can be used to control different
        * aspects of the message delivery.
    +   *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    +   *
        * If not present during the `CreateSubscription` call, it will default to
        * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    +   *
        * The only supported values for the `x-goog-version` attribute are:
    +   *
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   *
        * For example:
    -   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +   * `attributes { "x-goog-version": "v1" }`
        * 
    * * map<string, string> attributes = 2; @@ -1186,27 +2232,34 @@ public java.util.Map getAttributesMap() { *
        * Endpoint configuration attributes that can be used to control different
        * aspects of the message delivery.
    +   *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    +   *
        * If not present during the `CreateSubscription` call, it will default to
        * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    +   *
        * The only supported values for the `x-goog-version` attribute are:
    +   *
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   *
        * For example:
    -   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +   * `attributes { "x-goog-version": "v1" }`
        * 
    * * map<string, string> attributes = 2; */ @java.lang.Override - public java.lang.String getAttributesOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1219,20 +2272,25 @@ public java.lang.String getAttributesOrDefault( *
        * Endpoint configuration attributes that can be used to control different
        * aspects of the message delivery.
    +   *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    +   *
        * If not present during the `CreateSubscription` call, it will default to
        * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    +   *
        * The only supported values for the `x-goog-version` attribute are:
    +   *
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   *
        * For example:
    -   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +   * `attributes { "x-goog-version": "v1" }`
        * 
    * * map<string, string> attributes = 2; @@ -1303,6 +2361,114 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); } + public static final int PUBSUB_WRAPPER_FIELD_NUMBER = 4; + /** + * + * + *
    +   * When set, the payload to the push endpoint is in the form of the JSON
    +   * representation of a PubsubMessage
    +   * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +   * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * @return Whether the pubsubWrapper field is set. + */ + @java.lang.Override + public boolean hasPubsubWrapper() { + return wrapperCase_ == 4; + } + /** + * + * + *
    +   * When set, the payload to the push endpoint is in the form of the JSON
    +   * representation of a PubsubMessage
    +   * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +   * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * @return The pubsubWrapper. + */ + @java.lang.Override + public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { + if (wrapperCase_ == 4) { + return (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_; + } + return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); + } + /** + * + * + *
    +   * When set, the payload to the push endpoint is in the form of the JSON
    +   * representation of a PubsubMessage
    +   * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +   * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + */ + @java.lang.Override + public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder() { + if (wrapperCase_ == 4) { + return (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_; + } + return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); + } + + public static final int NO_WRAPPER_FIELD_NUMBER = 5; + /** + * + * + *
    +   * When set, the payload to the push endpoint is not wrapped.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * @return Whether the noWrapper field is set. + */ + @java.lang.Override + public boolean hasNoWrapper() { + return wrapperCase_ == 5; + } + /** + * + * + *
    +   * When set, the payload to the push endpoint is not wrapped.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * @return The noWrapper. + */ + @java.lang.Override + public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { + if (wrapperCase_ == 5) { + return (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_; + } + return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); + } + /** + * + * + *
    +   * When set, the payload to the push endpoint is not wrapped.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + */ + @java.lang.Override + public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder() { + if (wrapperCase_ == 5) { + return (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_; + } + return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1325,6 +2491,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (authenticationMethodCase_ == 3) { output.writeMessage(3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); } + if (wrapperCase_ == 4) { + output.writeMessage(4, (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_); + } + if (wrapperCase_ == 5) { + output.writeMessage(5, (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_); + } getUnknownFields().writeTo(output); } @@ -1352,6 +2524,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); } + if (wrapperCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_); + } + if (wrapperCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1377,6 +2559,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getWrapperCase().equals(other.getWrapperCase())) return false; + switch (wrapperCase_) { + case 4: + if (!getPubsubWrapper().equals(other.getPubsubWrapper())) return false; + break; + case 5: + if (!getNoWrapper().equals(other.getNoWrapper())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1402,6 +2595,18 @@ public int hashCode() { case 0: default: } + switch (wrapperCase_) { + case 4: + hash = (37 * hash) + PUBSUB_WRAPPER_FIELD_NUMBER; + hash = (53 * hash) + getPubsubWrapper().hashCode(); + break; + case 5: + hash = (37 * hash) + NO_WRAPPER_FIELD_NUMBER; + hash = (53 * hash) + getNoWrapper().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1558,14 +2763,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; pushEndpoint_ = ""; - internalGetMutableAttributes().clear(); if (oidcTokenBuilder_ != null) { oidcTokenBuilder_.clear(); } + if (pubsubWrapperBuilder_ != null) { + pubsubWrapperBuilder_.clear(); + } + if (noWrapperBuilder_ != null) { + noWrapperBuilder_.clear(); + } authenticationMethodCase_ = 0; authenticationMethod_ = null; + wrapperCase_ = 0; + wrapper_ = null; return this; } @@ -1592,22 +2805,41 @@ public com.google.pubsub.v1.PushConfig build() { @java.lang.Override public com.google.pubsub.v1.PushConfig buildPartial() { com.google.pubsub.v1.PushConfig result = new com.google.pubsub.v1.PushConfig(this); - int from_bitField0_ = bitField0_; - result.pushEndpoint_ = pushEndpoint_; - result.attributes_ = internalGetAttributes(); - result.attributes_.makeImmutable(); - if (authenticationMethodCase_ == 3) { - if (oidcTokenBuilder_ == null) { - result.authenticationMethod_ = authenticationMethod_; - } else { - result.authenticationMethod_ = oidcTokenBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.authenticationMethodCase_ = authenticationMethodCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.PushConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pushEndpoint_ = pushEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.PushConfig result) { + result.authenticationMethodCase_ = authenticationMethodCase_; + result.authenticationMethod_ = this.authenticationMethod_; + if (authenticationMethodCase_ == 3 && oidcTokenBuilder_ != null) { + result.authenticationMethod_ = oidcTokenBuilder_.build(); + } + result.wrapperCase_ = wrapperCase_; + result.wrapper_ = this.wrapper_; + if (wrapperCase_ == 4 && pubsubWrapperBuilder_ != null) { + result.wrapper_ = pubsubWrapperBuilder_.build(); + } + if (wrapperCase_ == 5 && noWrapperBuilder_ != null) { + result.wrapper_ = noWrapperBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1655,9 +2887,11 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { if (other == com.google.pubsub.v1.PushConfig.getDefaultInstance()) return this; if (!other.getPushEndpoint().isEmpty()) { pushEndpoint_ = other.pushEndpoint_; + bitField0_ |= 0x00000001; onChanged(); } internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + bitField0_ |= 0x00000002; switch (other.getAuthenticationMethodCase()) { case OIDC_TOKEN: { @@ -1669,6 +2903,22 @@ public Builder mergeFrom(com.google.pubsub.v1.PushConfig other) { break; } } + switch (other.getWrapperCase()) { + case PUBSUB_WRAPPER: + { + mergePubsubWrapper(other.getPubsubWrapper()); + break; + } + case NO_WRAPPER: + { + mergeNoWrapper(other.getNoWrapper()); + break; + } + case WRAPPER_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1698,7 +2948,7 @@ public Builder mergeFrom( case 10: { pushEndpoint_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1710,6 +2960,7 @@ public Builder mergeFrom( internalGetMutableAttributes() .getMutableMap() .put(attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1718,6 +2969,18 @@ public Builder mergeFrom( authenticationMethodCase_ = 3; break; } // case 26 + case 34: + { + input.readMessage(getPubsubWrapperFieldBuilder().getBuilder(), extensionRegistry); + wrapperCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getNoWrapperFieldBuilder().getBuilder(), extensionRegistry); + wrapperCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1749,6 +3012,20 @@ public Builder clearAuthenticationMethod() { return this; } + private int wrapperCase_ = 0; + private java.lang.Object wrapper_; + + public WrapperCase getWrapperCase() { + return WrapperCase.forNumber(wrapperCase_); + } + + public Builder clearWrapper() { + wrapperCase_ = 0; + wrapper_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object pushEndpoint_ = ""; @@ -1815,8 +3092,8 @@ public Builder setPushEndpoint(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pushEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1833,8 +3110,8 @@ public Builder setPushEndpoint(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPushEndpoint() { - pushEndpoint_ = getDefaultInstance().getPushEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1856,8 +3133,8 @@ public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pushEndpoint_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1875,8 +3152,6 @@ public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField internalGetMutableAttributes() { - onChanged(); - ; if (attributes_ == null) { attributes_ = com.google.protobuf.MapField.newMapField(AttributesDefaultEntryHolder.defaultEntry); @@ -1884,6 +3159,8 @@ public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) { if (!attributes_.isMutable()) { attributes_ = attributes_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return attributes_; } @@ -1896,20 +3173,25 @@ public int getAttributesCount() { *
          * Endpoint configuration attributes that can be used to control different
          * aspects of the message delivery.
    +     *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    +     *
          * If not present during the `CreateSubscription` call, it will default to
          * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    +     *
          * The only supported values for the `x-goog-version` attribute are:
    +     *
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     *
          * For example:
    -     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +     * `attributes { "x-goog-version": "v1" }`
          * 
    * * map<string, string> attributes = 2; @@ -1933,20 +3215,25 @@ public java.util.Map getAttributes() { *
          * Endpoint configuration attributes that can be used to control different
          * aspects of the message delivery.
    +     *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    +     *
          * If not present during the `CreateSubscription` call, it will default to
          * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    +     *
          * The only supported values for the `x-goog-version` attribute are:
    +     *
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     *
          * For example:
    -     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +     * `attributes { "x-goog-version": "v1" }`
          * 
    * * map<string, string> attributes = 2; @@ -1961,27 +3248,34 @@ public java.util.Map getAttributesMap() { *
          * Endpoint configuration attributes that can be used to control different
          * aspects of the message delivery.
    +     *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    +     *
          * If not present during the `CreateSubscription` call, it will default to
          * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    +     *
          * The only supported values for the `x-goog-version` attribute are:
    +     *
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     *
          * For example:
    -     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +     * `attributes { "x-goog-version": "v1" }`
          * 
    * * map<string, string> attributes = 2; */ @java.lang.Override - public java.lang.String getAttributesOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getAttributesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1994,20 +3288,25 @@ public java.lang.String getAttributesOrDefault( *
          * Endpoint configuration attributes that can be used to control different
          * aspects of the message delivery.
    +     *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    +     *
          * If not present during the `CreateSubscription` call, it will default to
          * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    +     *
          * The only supported values for the `x-goog-version` attribute are:
    +     *
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     *
          * For example:
    -     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +     * `attributes { "x-goog-version": "v1" }`
          * 
    * * map<string, string> attributes = 2; @@ -2025,6 +3324,7 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { } public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableAttributes().getMutableMap().clear(); return this; } @@ -2034,20 +3334,25 @@ public Builder clearAttributes() { *
          * Endpoint configuration attributes that can be used to control different
          * aspects of the message delivery.
    +     *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    +     *
          * If not present during the `CreateSubscription` call, it will default to
          * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    +     *
          * The only supported values for the `x-goog-version` attribute are:
    +     *
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     *
          * For example:
    -     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +     * `attributes { "x-goog-version": "v1" }`
          * 
    * * map<string, string> attributes = 2; @@ -2062,6 +3367,7 @@ public Builder removeAttributes(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { + bitField0_ |= 0x00000002; return internalGetMutableAttributes().getMutableMap(); } /** @@ -2070,20 +3376,25 @@ public java.util.Map getMutableAttributes() *
          * Endpoint configuration attributes that can be used to control different
          * aspects of the message delivery.
    +     *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    +     *
          * If not present during the `CreateSubscription` call, it will default to
          * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    +     *
          * The only supported values for the `x-goog-version` attribute are:
    +     *
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     *
          * For example:
    -     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +     * `attributes { "x-goog-version": "v1" }`
          * 
    * * map<string, string> attributes = 2; @@ -2095,8 +3406,8 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAttributes().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -2105,26 +3416,32 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { *
          * Endpoint configuration attributes that can be used to control different
          * aspects of the message delivery.
    +     *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
          * indicates the version of the data expected by the endpoint. This
          * controls the shape of the pushed message (i.e., its fields and metadata).
    +     *
          * If not present during the `CreateSubscription` call, it will default to
          * the version of the Pub/Sub API used to make such call. If not present in a
          * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
          * calls will always return a valid version, even if the subscription was
          * created without this attribute.
    +     *
          * The only supported values for the `x-goog-version` attribute are:
    +     *
          * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
          * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +     *
          * For example:
    -     * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +     * `attributes { "x-goog-version": "v1" }`
          * 
    * * map<string, string> attributes = 2; */ public Builder putAllAttributes(java.util.Map values) { internalGetMutableAttributes().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -2343,10 +3660,444 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( } authenticationMethodCase_ = 3; onChanged(); - ; return oidcTokenBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.PubsubWrapper, + com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, + com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder> + pubsubWrapperBuilder_; + /** + * + * + *
    +     * When set, the payload to the push endpoint is in the form of the JSON
    +     * representation of a PubsubMessage
    +     * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +     * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * @return Whether the pubsubWrapper field is set. + */ + @java.lang.Override + public boolean hasPubsubWrapper() { + return wrapperCase_ == 4; + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is in the form of the JSON
    +     * representation of a PubsubMessage
    +     * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +     * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * @return The pubsubWrapper. + */ + @java.lang.Override + public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { + if (pubsubWrapperBuilder_ == null) { + if (wrapperCase_ == 4) { + return (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_; + } + return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); + } else { + if (wrapperCase_ == 4) { + return pubsubWrapperBuilder_.getMessage(); + } + return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); + } + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is in the form of the JSON
    +     * representation of a PubsubMessage
    +     * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +     * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + */ + public Builder setPubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper value) { + if (pubsubWrapperBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + wrapper_ = value; + onChanged(); + } else { + pubsubWrapperBuilder_.setMessage(value); + } + wrapperCase_ = 4; + return this; + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is in the form of the JSON
    +     * representation of a PubsubMessage
    +     * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +     * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + */ + public Builder setPubsubWrapper( + com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder builderForValue) { + if (pubsubWrapperBuilder_ == null) { + wrapper_ = builderForValue.build(); + onChanged(); + } else { + pubsubWrapperBuilder_.setMessage(builderForValue.build()); + } + wrapperCase_ = 4; + return this; + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is in the form of the JSON
    +     * representation of a PubsubMessage
    +     * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +     * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + */ + public Builder mergePubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper value) { + if (pubsubWrapperBuilder_ == null) { + if (wrapperCase_ == 4 + && wrapper_ != com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance()) { + wrapper_ = + com.google.pubsub.v1.PushConfig.PubsubWrapper.newBuilder( + (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_) + .mergeFrom(value) + .buildPartial(); + } else { + wrapper_ = value; + } + onChanged(); + } else { + if (wrapperCase_ == 4) { + pubsubWrapperBuilder_.mergeFrom(value); + } else { + pubsubWrapperBuilder_.setMessage(value); + } + } + wrapperCase_ = 4; + return this; + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is in the form of the JSON
    +     * representation of a PubsubMessage
    +     * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +     * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + */ + public Builder clearPubsubWrapper() { + if (pubsubWrapperBuilder_ == null) { + if (wrapperCase_ == 4) { + wrapperCase_ = 0; + wrapper_ = null; + onChanged(); + } + } else { + if (wrapperCase_ == 4) { + wrapperCase_ = 0; + wrapper_ = null; + } + pubsubWrapperBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is in the form of the JSON
    +     * representation of a PubsubMessage
    +     * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +     * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + */ + public com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder getPubsubWrapperBuilder() { + return getPubsubWrapperFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is in the form of the JSON
    +     * representation of a PubsubMessage
    +     * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +     * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + */ + @java.lang.Override + public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder() { + if ((wrapperCase_ == 4) && (pubsubWrapperBuilder_ != null)) { + return pubsubWrapperBuilder_.getMessageOrBuilder(); + } else { + if (wrapperCase_ == 4) { + return (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_; + } + return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); + } + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is in the form of the JSON
    +     * representation of a PubsubMessage
    +     * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +     * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.PubsubWrapper, + com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, + com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder> + getPubsubWrapperFieldBuilder() { + if (pubsubWrapperBuilder_ == null) { + if (!(wrapperCase_ == 4)) { + wrapper_ = com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); + } + pubsubWrapperBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.PubsubWrapper, + com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, + com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder>( + (com.google.pubsub.v1.PushConfig.PubsubWrapper) wrapper_, + getParentForChildren(), + isClean()); + wrapper_ = null; + } + wrapperCase_ = 4; + onChanged(); + return pubsubWrapperBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.NoWrapper, + com.google.pubsub.v1.PushConfig.NoWrapper.Builder, + com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder> + noWrapperBuilder_; + /** + * + * + *
    +     * When set, the payload to the push endpoint is not wrapped.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * @return Whether the noWrapper field is set. + */ + @java.lang.Override + public boolean hasNoWrapper() { + return wrapperCase_ == 5; + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is not wrapped.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * @return The noWrapper. + */ + @java.lang.Override + public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { + if (noWrapperBuilder_ == null) { + if (wrapperCase_ == 5) { + return (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_; + } + return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); + } else { + if (wrapperCase_ == 5) { + return noWrapperBuilder_.getMessage(); + } + return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); + } + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is not wrapped.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + */ + public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { + if (noWrapperBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + wrapper_ = value; + onChanged(); + } else { + noWrapperBuilder_.setMessage(value); + } + wrapperCase_ = 5; + return this; + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is not wrapped.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + */ + public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper.Builder builderForValue) { + if (noWrapperBuilder_ == null) { + wrapper_ = builderForValue.build(); + onChanged(); + } else { + noWrapperBuilder_.setMessage(builderForValue.build()); + } + wrapperCase_ = 5; + return this; + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is not wrapped.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + */ + public Builder mergeNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { + if (noWrapperBuilder_ == null) { + if (wrapperCase_ == 5 + && wrapper_ != com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance()) { + wrapper_ = + com.google.pubsub.v1.PushConfig.NoWrapper.newBuilder( + (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_) + .mergeFrom(value) + .buildPartial(); + } else { + wrapper_ = value; + } + onChanged(); + } else { + if (wrapperCase_ == 5) { + noWrapperBuilder_.mergeFrom(value); + } else { + noWrapperBuilder_.setMessage(value); + } + } + wrapperCase_ = 5; + return this; + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is not wrapped.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + */ + public Builder clearNoWrapper() { + if (noWrapperBuilder_ == null) { + if (wrapperCase_ == 5) { + wrapperCase_ = 0; + wrapper_ = null; + onChanged(); + } + } else { + if (wrapperCase_ == 5) { + wrapperCase_ = 0; + wrapper_ = null; + } + noWrapperBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is not wrapped.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + */ + public com.google.pubsub.v1.PushConfig.NoWrapper.Builder getNoWrapperBuilder() { + return getNoWrapperFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is not wrapped.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + */ + @java.lang.Override + public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder() { + if ((wrapperCase_ == 5) && (noWrapperBuilder_ != null)) { + return noWrapperBuilder_.getMessageOrBuilder(); + } else { + if (wrapperCase_ == 5) { + return (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_; + } + return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); + } + } + /** + * + * + *
    +     * When set, the payload to the push endpoint is not wrapped.
    +     * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.NoWrapper, + com.google.pubsub.v1.PushConfig.NoWrapper.Builder, + com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder> + getNoWrapperFieldBuilder() { + if (noWrapperBuilder_ == null) { + if (!(wrapperCase_ == 5)) { + wrapper_ = com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); + } + noWrapperBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PushConfig.NoWrapper, + com.google.pubsub.v1.PushConfig.NoWrapper.Builder, + com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder>( + (com.google.pubsub.v1.PushConfig.NoWrapper) wrapper_, + getParentForChildren(), + isClean()); + wrapper_ = null; + } + wrapperCase_ = 5; + onChanged(); + return noWrapperBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 6499b5346ab5..70bf10b41375 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -56,20 +56,25 @@ public interface PushConfigOrBuilder *
        * Endpoint configuration attributes that can be used to control different
        * aspects of the message delivery.
    +   *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    +   *
        * If not present during the `CreateSubscription` call, it will default to
        * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    +   *
        * The only supported values for the `x-goog-version` attribute are:
    +   *
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   *
        * For example:
    -   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +   * `attributes { "x-goog-version": "v1" }`
        * 
    * * map<string, string> attributes = 2; @@ -81,20 +86,25 @@ public interface PushConfigOrBuilder *
        * Endpoint configuration attributes that can be used to control different
        * aspects of the message delivery.
    +   *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    +   *
        * If not present during the `CreateSubscription` call, it will default to
        * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    +   *
        * The only supported values for the `x-goog-version` attribute are:
    +   *
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   *
        * For example:
    -   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +   * `attributes { "x-goog-version": "v1" }`
        * 
    * * map<string, string> attributes = 2; @@ -109,20 +119,25 @@ public interface PushConfigOrBuilder *
        * Endpoint configuration attributes that can be used to control different
        * aspects of the message delivery.
    +   *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    +   *
        * If not present during the `CreateSubscription` call, it will default to
        * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    +   *
        * The only supported values for the `x-goog-version` attribute are:
    +   *
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   *
        * For example:
    -   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +   * `attributes { "x-goog-version": "v1" }`
        * 
    * * map<string, string> attributes = 2; @@ -134,25 +149,29 @@ public interface PushConfigOrBuilder *
        * Endpoint configuration attributes that can be used to control different
        * aspects of the message delivery.
    +   *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    +   *
        * If not present during the `CreateSubscription` call, it will default to
        * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    +   *
        * The only supported values for the `x-goog-version` attribute are:
    +   *
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   *
        * For example:
    -   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +   * `attributes { "x-goog-version": "v1" }`
        * 
    * * map<string, string> attributes = 2; */ - /* nullable */ java.lang.String getAttributesOrDefault( java.lang.String key, @@ -164,20 +183,25 @@ java.lang.String getAttributesOrDefault( *
        * Endpoint configuration attributes that can be used to control different
        * aspects of the message delivery.
    +   *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
        * indicates the version of the data expected by the endpoint. This
        * controls the shape of the pushed message (i.e., its fields and metadata).
    +   *
        * If not present during the `CreateSubscription` call, it will default to
        * the version of the Pub/Sub API used to make such call. If not present in a
        * `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
        * calls will always return a valid version, even if the subscription was
        * created without this attribute.
    +   *
        * The only supported values for the `x-goog-version` attribute are:
    +   *
        * * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
        * * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
    +   *
        * For example:
    -   * <pre><code>attributes { "x-goog-version": "v1" } </code></pre>
    +   * `attributes { "x-goog-version": "v1" }`
        * 
    * * map<string, string> attributes = 2; @@ -222,5 +246,83 @@ java.lang.String getAttributesOrDefault( */ com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(); - public com.google.pubsub.v1.PushConfig.AuthenticationMethodCase getAuthenticationMethodCase(); + /** + * + * + *
    +   * When set, the payload to the push endpoint is in the form of the JSON
    +   * representation of a PubsubMessage
    +   * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +   * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * @return Whether the pubsubWrapper field is set. + */ + boolean hasPubsubWrapper(); + /** + * + * + *
    +   * When set, the payload to the push endpoint is in the form of the JSON
    +   * representation of a PubsubMessage
    +   * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +   * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * @return The pubsubWrapper. + */ + com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper(); + /** + * + * + *
    +   * When set, the payload to the push endpoint is in the form of the JSON
    +   * representation of a PubsubMessage
    +   * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
    +   * 
    + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + */ + com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder(); + + /** + * + * + *
    +   * When set, the payload to the push endpoint is not wrapped.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * @return Whether the noWrapper field is set. + */ + boolean hasNoWrapper(); + /** + * + * + *
    +   * When set, the payload to the push endpoint is not wrapped.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * @return The noWrapper. + */ + com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper(); + /** + * + * + *
    +   * When set, the payload to the push endpoint is not wrapped.
    +   * 
    + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + */ + com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder(); + + com.google.pubsub.v1.PushConfig.AuthenticationMethodCase getAuthenticationMethodCase(); + + com.google.pubsub.v1.PushConfig.WrapperCase getWrapperCase(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 5651e06573cb..387e1a9a33c0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReceivedMessage(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ACK_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object ackId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object ackId_ = ""; /** * * @@ -159,26 +156,30 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { */ @java.lang.Override public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { - return getMessage(); + return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } public static final int DELIVERY_ATTEMPT_FIELD_NUMBER = 3; - private int deliveryAttempt_; + private int deliveryAttempt_ = 0; /** * * *
        * 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.
        * 
    * @@ -409,16 +410,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; ackId_ = ""; - - if (messageBuilder_ == null) { - message_ = null; - } else { - message_ = null; + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); messageBuilder_ = null; } deliveryAttempt_ = 0; - return this; } @@ -445,17 +444,26 @@ public com.google.pubsub.v1.ReceivedMessage build() { @java.lang.Override public com.google.pubsub.v1.ReceivedMessage buildPartial() { com.google.pubsub.v1.ReceivedMessage result = new com.google.pubsub.v1.ReceivedMessage(this); - result.ackId_ = ackId_; - if (messageBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = messageBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.deliveryAttempt_ = deliveryAttempt_; onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ReceivedMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ackId_ = ackId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deliveryAttempt_ = deliveryAttempt_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -503,6 +511,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ReceivedMessage other) { if (other == com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()) return this; if (!other.getAckId().isEmpty()) { ackId_ = other.ackId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasMessage()) { @@ -540,19 +549,19 @@ public Builder mergeFrom( case 10: { ackId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { deliveryAttempt_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -572,6 +581,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object ackId_ = ""; /** * @@ -633,8 +644,8 @@ public Builder setAckId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ackId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -650,8 +661,8 @@ public Builder setAckId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAckId() { - ackId_ = getDefaultInstance().getAckId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -672,8 +683,8 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ackId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -696,7 +707,7 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { * @return Whether the message field is set. */ public boolean hasMessage() { - return messageBuilder_ != null || message_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -733,11 +744,11 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { throw new NullPointerException(); } message_ = value; - onChanged(); } else { messageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -752,11 +763,11 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); - onChanged(); } else { messageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -770,19 +781,18 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForV */ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { - if (message_ != null) { - message_ = - com.google.pubsub.v1.PubsubMessage.newBuilder(message_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && message_ != null + && message_ != com.google.pubsub.v1.PubsubMessage.getDefaultInstance()) { + getMessageBuilder().mergeFrom(value); } else { message_ = value; } - onChanged(); } else { messageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -795,14 +805,13 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { * .google.pubsub.v1.PubsubMessage message = 2; */ public Builder clearMessage() { - if (messageBuilder_ == null) { - message_ = null; - onChanged(); - } else { - message_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); messageBuilder_ = null; } - + onChanged(); return this; } /** @@ -815,7 +824,7 @@ public Builder clearMessage() { * .google.pubsub.v1.PubsubMessage message = 2; */ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMessageFieldBuilder().getBuilder(); } @@ -870,15 +879,19 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { *
          * 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.
          * 
    * @@ -896,15 +909,19 @@ public int getDeliveryAttempt() { *
          * 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.
          * 
    * @@ -916,6 +933,7 @@ public int getDeliveryAttempt() { public Builder setDeliveryAttempt(int value) { deliveryAttempt_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -925,15 +943,19 @@ public Builder setDeliveryAttempt(int value) { *
          * 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.
          * 
    * @@ -942,7 +964,7 @@ public Builder setDeliveryAttempt(int value) { * @return This builder for chaining. */ public Builder clearDeliveryAttempt() { - + bitField0_ = (bitField0_ & ~0x00000004); deliveryAttempt_ = 0; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 805690b39fb0..565e61167eab 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -89,15 +89,19 @@ public interface ReceivedMessageOrBuilder *
        * 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.
        * 
    * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index fbdcafa1ce44..4e856c8f7a0c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -23,10 +23,13 @@ * *
      * 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.
    + *
      * 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 may not match the configuration. That is,
      * delay can be more or less than configured backoff.
    @@ -52,11 +55,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new RetryPolicy();
       }
     
    -  @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    -    return this.unknownFields;
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_descriptor;
       }
    @@ -118,7 +116,9 @@ public com.google.protobuf.Duration getMinimumBackoff() {
        */
       @java.lang.Override
       public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() {
    -    return getMinimumBackoff();
    +    return minimumBackoff_ == null
    +        ? com.google.protobuf.Duration.getDefaultInstance()
    +        : minimumBackoff_;
       }
     
       public static final int MAXIMUM_BACKOFF_FIELD_NUMBER = 2;
    @@ -169,7 +169,9 @@ public com.google.protobuf.Duration getMaximumBackoff() {
        */
       @java.lang.Override
       public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() {
    -    return getMaximumBackoff();
    +    return maximumBackoff_ == null
    +        ? com.google.protobuf.Duration.getDefaultInstance()
    +        : maximumBackoff_;
       }
     
       private byte memoizedIsInitialized = -1;
    @@ -353,10 +355,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        * 
        * 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.
    +   *
        * 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 may not match the configuration. That is,
        * delay can be more or less than configured backoff.
    @@ -393,16 +398,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         @java.lang.Override
         public Builder clear() {
           super.clear();
    -      if (minimumBackoffBuilder_ == null) {
    -        minimumBackoff_ = null;
    -      } else {
    -        minimumBackoff_ = null;
    +      bitField0_ = 0;
    +      minimumBackoff_ = null;
    +      if (minimumBackoffBuilder_ != null) {
    +        minimumBackoffBuilder_.dispose();
             minimumBackoffBuilder_ = null;
           }
    -      if (maximumBackoffBuilder_ == null) {
    -        maximumBackoff_ = null;
    -      } else {
    -        maximumBackoff_ = null;
    +      maximumBackoff_ = null;
    +      if (maximumBackoffBuilder_ != null) {
    +        maximumBackoffBuilder_.dispose();
             maximumBackoffBuilder_ = null;
           }
           return this;
    @@ -431,20 +435,25 @@ public com.google.pubsub.v1.RetryPolicy build() {
         @java.lang.Override
         public com.google.pubsub.v1.RetryPolicy buildPartial() {
           com.google.pubsub.v1.RetryPolicy result = new com.google.pubsub.v1.RetryPolicy(this);
    -      if (minimumBackoffBuilder_ == null) {
    -        result.minimumBackoff_ = minimumBackoff_;
    -      } else {
    -        result.minimumBackoff_ = minimumBackoffBuilder_.build();
    -      }
    -      if (maximumBackoffBuilder_ == null) {
    -        result.maximumBackoff_ = maximumBackoff_;
    -      } else {
    -        result.maximumBackoff_ = maximumBackoffBuilder_.build();
    +      if (bitField0_ != 0) {
    +        buildPartial0(result);
           }
           onBuilt();
           return result;
         }
     
    +    private void buildPartial0(com.google.pubsub.v1.RetryPolicy result) {
    +      int from_bitField0_ = bitField0_;
    +      if (((from_bitField0_ & 0x00000001) != 0)) {
    +        result.minimumBackoff_ =
    +            minimumBackoffBuilder_ == null ? minimumBackoff_ : minimumBackoffBuilder_.build();
    +      }
    +      if (((from_bitField0_ & 0x00000002) != 0)) {
    +        result.maximumBackoff_ =
    +            maximumBackoffBuilder_ == null ? maximumBackoff_ : maximumBackoffBuilder_.build();
    +      }
    +    }
    +
         @java.lang.Override
         public Builder clone() {
           return super.clone();
    @@ -525,13 +534,13 @@ public Builder mergeFrom(
                 case 10:
                   {
                     input.readMessage(getMinimumBackoffFieldBuilder().getBuilder(), extensionRegistry);
    -
    +                bitField0_ |= 0x00000001;
                     break;
                   } // case 10
                 case 18:
                   {
                     input.readMessage(getMaximumBackoffFieldBuilder().getBuilder(), extensionRegistry);
    -
    +                bitField0_ |= 0x00000002;
                     break;
                   } // case 18
                 default:
    @@ -551,6 +560,8 @@ public Builder mergeFrom(
           return this;
         }
     
    +    private int bitField0_;
    +
         private com.google.protobuf.Duration minimumBackoff_;
         private com.google.protobuf.SingleFieldBuilderV3<
                 com.google.protobuf.Duration,
    @@ -570,7 +581,7 @@ public Builder mergeFrom(
          * @return Whether the minimumBackoff field is set.
          */
         public boolean hasMinimumBackoff() {
    -      return minimumBackoffBuilder_ != null || minimumBackoff_ != null;
    +      return ((bitField0_ & 0x00000001) != 0);
         }
         /**
          *
    @@ -609,11 +620,11 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) {
               throw new NullPointerException();
             }
             minimumBackoff_ = value;
    -        onChanged();
           } else {
             minimumBackoffBuilder_.setMessage(value);
           }
    -
    +      bitField0_ |= 0x00000001;
    +      onChanged();
           return this;
         }
         /**
    @@ -629,11 +640,11 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) {
         public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue) {
           if (minimumBackoffBuilder_ == null) {
             minimumBackoff_ = builderForValue.build();
    -        onChanged();
           } else {
             minimumBackoffBuilder_.setMessage(builderForValue.build());
           }
    -
    +      bitField0_ |= 0x00000001;
    +      onChanged();
           return this;
         }
         /**
    @@ -648,19 +659,18 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderFor
          */
         public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) {
           if (minimumBackoffBuilder_ == null) {
    -        if (minimumBackoff_ != null) {
    -          minimumBackoff_ =
    -              com.google.protobuf.Duration.newBuilder(minimumBackoff_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (((bitField0_ & 0x00000001) != 0)
    +            && minimumBackoff_ != null
    +            && minimumBackoff_ != com.google.protobuf.Duration.getDefaultInstance()) {
    +          getMinimumBackoffBuilder().mergeFrom(value);
             } else {
               minimumBackoff_ = value;
             }
    -        onChanged();
           } else {
             minimumBackoffBuilder_.mergeFrom(value);
           }
    -
    +      bitField0_ |= 0x00000001;
    +      onChanged();
           return this;
         }
         /**
    @@ -674,14 +684,13 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) {
          * .google.protobuf.Duration minimum_backoff = 1;
          */
         public Builder clearMinimumBackoff() {
    -      if (minimumBackoffBuilder_ == null) {
    -        minimumBackoff_ = null;
    -        onChanged();
    -      } else {
    -        minimumBackoff_ = null;
    +      bitField0_ = (bitField0_ & ~0x00000001);
    +      minimumBackoff_ = null;
    +      if (minimumBackoffBuilder_ != null) {
    +        minimumBackoffBuilder_.dispose();
             minimumBackoffBuilder_ = null;
           }
    -
    +      onChanged();
           return this;
         }
         /**
    @@ -695,7 +704,7 @@ public Builder clearMinimumBackoff() {
          * .google.protobuf.Duration minimum_backoff = 1;
          */
         public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() {
    -
    +      bitField0_ |= 0x00000001;
           onChanged();
           return getMinimumBackoffFieldBuilder().getBuilder();
         }
    @@ -764,7 +773,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() {
          * @return Whether the maximumBackoff field is set.
          */
         public boolean hasMaximumBackoff() {
    -      return maximumBackoffBuilder_ != null || maximumBackoff_ != null;
    +      return ((bitField0_ & 0x00000002) != 0);
         }
         /**
          *
    @@ -803,11 +812,11 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) {
               throw new NullPointerException();
             }
             maximumBackoff_ = value;
    -        onChanged();
           } else {
             maximumBackoffBuilder_.setMessage(value);
           }
    -
    +      bitField0_ |= 0x00000002;
    +      onChanged();
           return this;
         }
         /**
    @@ -823,11 +832,11 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) {
         public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue) {
           if (maximumBackoffBuilder_ == null) {
             maximumBackoff_ = builderForValue.build();
    -        onChanged();
           } else {
             maximumBackoffBuilder_.setMessage(builderForValue.build());
           }
    -
    +      bitField0_ |= 0x00000002;
    +      onChanged();
           return this;
         }
         /**
    @@ -842,19 +851,18 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderFor
          */
         public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) {
           if (maximumBackoffBuilder_ == null) {
    -        if (maximumBackoff_ != null) {
    -          maximumBackoff_ =
    -              com.google.protobuf.Duration.newBuilder(maximumBackoff_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (((bitField0_ & 0x00000002) != 0)
    +            && maximumBackoff_ != null
    +            && maximumBackoff_ != com.google.protobuf.Duration.getDefaultInstance()) {
    +          getMaximumBackoffBuilder().mergeFrom(value);
             } else {
               maximumBackoff_ = value;
             }
    -        onChanged();
           } else {
             maximumBackoffBuilder_.mergeFrom(value);
           }
    -
    +      bitField0_ |= 0x00000002;
    +      onChanged();
           return this;
         }
         /**
    @@ -868,14 +876,13 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) {
          * .google.protobuf.Duration maximum_backoff = 2;
          */
         public Builder clearMaximumBackoff() {
    -      if (maximumBackoffBuilder_ == null) {
    -        maximumBackoff_ = null;
    -        onChanged();
    -      } else {
    -        maximumBackoff_ = null;
    +      bitField0_ = (bitField0_ & ~0x00000002);
    +      maximumBackoff_ = null;
    +      if (maximumBackoffBuilder_ != null) {
    +        maximumBackoffBuilder_.dispose();
             maximumBackoffBuilder_ = null;
           }
    -
    +      onChanged();
           return this;
         }
         /**
    @@ -889,7 +896,7 @@ public Builder clearMaximumBackoff() {
          * .google.protobuf.Duration maximum_backoff = 2;
          */
         public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() {
    -
    +      bitField0_ |= 0x00000002;
           onChanged();
           return getMaximumBackoffFieldBuilder().getBuilder();
         }
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java
    index f133b3c34781..8ce9a74a8270 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java
    @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new RollbackSchemaRequest();
       }
     
    -  @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    -    return this.unknownFields;
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.SchemaProto
             .internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor;
    @@ -69,7 +64,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
       }
     
       public static final int NAME_FIELD_NUMBER = 1;
    -  private volatile java.lang.Object name_;
    +
    +  @SuppressWarnings("serial")
    +  private volatile java.lang.Object name_ = "";
       /**
        *
        *
    @@ -122,13 +119,16 @@ public com.google.protobuf.ByteString getNameBytes() {
       }
     
       public static final int REVISION_ID_FIELD_NUMBER = 2;
    -  private volatile java.lang.Object revisionId_;
    +
    +  @SuppressWarnings("serial")
    +  private volatile java.lang.Object revisionId_ = "";
       /**
        *
        *
        * 
        * Required. The revision ID to roll back to.
        * It must be a revision of the same schema.
    +   *
        *   Example: c7cfa2a8
        * 
    * @@ -154,6 +154,7 @@ public java.lang.String getRevisionId() { *
        * Required. The revision ID to roll back to.
        * It must be a revision of the same schema.
    +   *
        *   Example: c7cfa2a8
        * 
    * @@ -380,10 +381,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - revisionId_ = ""; - return this; } @@ -411,12 +411,23 @@ public com.google.pubsub.v1.RollbackSchemaRequest build() { public com.google.pubsub.v1.RollbackSchemaRequest buildPartial() { com.google.pubsub.v1.RollbackSchemaRequest result = new com.google.pubsub.v1.RollbackSchemaRequest(this); - result.name_ = name_; - result.revisionId_ = revisionId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.RollbackSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionId_ = revisionId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -464,10 +475,12 @@ public Builder mergeFrom(com.google.pubsub.v1.RollbackSchemaRequest other) { if (other == com.google.pubsub.v1.RollbackSchemaRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getRevisionId().isEmpty()) { revisionId_ = other.revisionId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -499,13 +512,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { revisionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -525,6 +538,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -592,8 +607,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -611,8 +626,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -635,8 +650,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -648,6 +663,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
          * Required. The revision ID to roll back to.
          * It must be a revision of the same schema.
    +     *
          *   Example: c7cfa2a8
          * 
    * @@ -672,6 +688,7 @@ public java.lang.String getRevisionId() { *
          * Required. The revision ID to roll back to.
          * It must be a revision of the same schema.
    +     *
          *   Example: c7cfa2a8
          * 
    * @@ -696,6 +713,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { *
          * Required. The revision ID to roll back to.
          * It must be a revision of the same schema.
    +     *
          *   Example: c7cfa2a8
          * 
    * @@ -708,8 +726,8 @@ public Builder setRevisionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - revisionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -719,6 +737,7 @@ public Builder setRevisionId(java.lang.String value) { *
          * Required. The revision ID to roll back to.
          * It must be a revision of the same schema.
    +     *
          *   Example: c7cfa2a8
          * 
    * @@ -727,8 +746,8 @@ public Builder setRevisionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearRevisionId() { - revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -738,6 +757,7 @@ public Builder clearRevisionId() { *
          * Required. The revision ID to roll back to.
          * It must be a revision of the same schema.
    +     *
          *   Example: c7cfa2a8
          * 
    * @@ -751,8 +771,8 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - revisionId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 4c5e776bcb14..ed3bbeeda841 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -58,6 +58,7 @@ public interface RollbackSchemaRequestOrBuilder *
        * Required. The revision ID to roll back to.
        * It must be a revision of the same schema.
    +   *
        *   Example: c7cfa2a8
        * 
    * @@ -72,6 +73,7 @@ public interface RollbackSchemaRequestOrBuilder *
        * Required. The revision ID to roll back to.
        * It must be a revision of the same schema.
    +   *
        *   Example: c7cfa2a8
        * 
    * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index ac2a12b5e3ee..fba590176efb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Schema(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; } @@ -226,7 +221,9 @@ private Type(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -277,7 +274,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TYPE_FIELD_NUMBER = 2; - private int type_; + private int type_ = 0; /** * * @@ -306,13 +303,14 @@ public int getTypeValue() { */ @java.lang.Override public com.google.pubsub.v1.Schema.Type getType() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.valueOf(type_); + com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.forNumber(type_); return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; } public static final int DEFINITION_FIELD_NUMBER = 3; - private volatile java.lang.Object definition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object definition_ = ""; /** * * @@ -365,7 +363,9 @@ public com.google.protobuf.ByteString getDefinitionBytes() { } public static final int REVISION_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object revisionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; /** * * @@ -468,7 +468,9 @@ public com.google.protobuf.Timestamp getRevisionCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { - return getRevisionCreateTime(); + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } private byte memoizedIsInitialized = -1; @@ -705,18 +707,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - type_ = 0; - definition_ = ""; - revisionId_ = ""; - - if (revisionCreateTimeBuilder_ == null) { - revisionCreateTime_ = null; - } else { - revisionCreateTime_ = null; + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); revisionCreateTimeBuilder_ = null; } return this; @@ -744,19 +742,35 @@ public com.google.pubsub.v1.Schema build() { @java.lang.Override public com.google.pubsub.v1.Schema buildPartial() { com.google.pubsub.v1.Schema result = new com.google.pubsub.v1.Schema(this); - result.name_ = name_; - result.type_ = type_; - result.definition_ = definition_; - result.revisionId_ = revisionId_; - if (revisionCreateTimeBuilder_ == null) { - result.revisionCreateTime_ = revisionCreateTime_; - } else { - result.revisionCreateTime_ = revisionCreateTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.Schema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.definition_ = definition_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.revisionId_ = revisionId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.revisionCreateTime_ = + revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -804,6 +818,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Schema other) { if (other == com.google.pubsub.v1.Schema.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.type_ != 0) { @@ -811,10 +826,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Schema other) { } if (!other.getDefinition().isEmpty()) { definition_ = other.definition_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getRevisionId().isEmpty()) { revisionId_ = other.revisionId_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasRevisionCreateTime()) { @@ -849,32 +866,32 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { type_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { definition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { revisionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 50: { input.readMessage( getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 50 default: @@ -894,6 +911,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -958,8 +977,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -976,8 +995,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -999,8 +1018,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1034,8 +1053,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1052,8 +1071,7 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.pubsub.v1.Schema.Type getType() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.valueOf(type_); + com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.forNumber(type_); return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; } /** @@ -1072,7 +1090,7 @@ public Builder setType(com.google.pubsub.v1.Schema.Type value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; @@ -1089,7 +1107,7 @@ public Builder setType(com.google.pubsub.v1.Schema.Type value) { * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; @@ -1162,8 +1180,8 @@ public Builder setDefinition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - definition_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1181,8 +1199,8 @@ public Builder setDefinition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDefinition() { - definition_ = getDefaultInstance().getDefinition(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1205,8 +1223,8 @@ public Builder setDefinitionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - definition_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1278,8 +1296,8 @@ public Builder setRevisionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - revisionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1297,8 +1315,8 @@ public Builder setRevisionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearRevisionId() { - revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1321,8 +1339,8 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - revisionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1347,7 +1365,7 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { * @return Whether the revisionCreateTime field is set. */ public boolean hasRevisionCreateTime() { - return revisionCreateTimeBuilder_ != null || revisionCreateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1388,11 +1406,11 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } revisionCreateTime_ = value; - onChanged(); } else { revisionCreateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1409,11 +1427,11 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (revisionCreateTimeBuilder_ == null) { revisionCreateTime_ = builderForValue.build(); - onChanged(); } else { revisionCreateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1429,19 +1447,18 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder build */ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { - if (revisionCreateTime_ != null) { - revisionCreateTime_ = - com.google.protobuf.Timestamp.newBuilder(revisionCreateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && revisionCreateTime_ != null + && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRevisionCreateTimeBuilder().mergeFrom(value); } else { revisionCreateTime_ = value; } - onChanged(); } else { revisionCreateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1456,14 +1473,13 @@ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearRevisionCreateTime() { - if (revisionCreateTimeBuilder_ == null) { - revisionCreateTime_ = null; - onChanged(); - } else { - revisionCreateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + revisionCreateTime_ = null; + if (revisionCreateTimeBuilder_ != null) { + revisionCreateTimeBuilder_.dispose(); revisionCreateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1478,7 +1494,7 @@ public Builder clearRevisionCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getRevisionCreateTimeFieldBuilder().getBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java index c4b5935cdc32..1b2c9a90870a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index 2a4147c0fc72..52269ea42cc3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -101,106 +101,107 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027google/api/client.proto\032\037google/api/fie" + "ld_behavior.proto\032\031google/api/resource.p" + "roto\032\033google/protobuf/empty.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\275\002\n\006Schema\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035.google." - + "pubsub.v1.Schema.Type\022\022\n\ndefinition\030\003 \001(" - + "\t\022\033\n\013revision_id\030\004 \001(\tB\006\340A\005\340A\003\022=\n\024revisi" + + "e/protobuf/timestamp.proto\"\276\002\n\006Schema\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022+\n\004type\030\002 \001(\0162\035.google" + + ".pubsub.v1.Schema.Type\022\022\n\ndefinition\030\003 \001" + + "(\t\022\032\n\013revision_id\030\004 \001(\tB\005\342A\002\005\003\022>\n\024revisi" + "on_create_time\030\006 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\";\n\004Type\022\024\n\020TYPE_UNSPECIFIE" - + "D\020\000\022\023\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n" - + "\034pubsub.googleapis.com/Schema\022#projects/" - + "{project}/schemas/{schema}\"\215\001\n\023CreateSch" - + "emaRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubs" - + "ub.googleapis.com/Schema\022-\n\006schema\030\002 \001(\013" - + "2\030.google.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschem" - + "a_id\030\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001" - + " \001(\tB$\340A\002\372A\036\n\034pubsub.googleapis.com/Sche" - + "ma\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1.Sche" - + "maView\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030" - + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" - + "leapis.com/Project\022*\n\004view\030\002 \001(\0162\034.googl" - + "e.pubsub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(" - + "\005\022\022\n\npage_token\030\004 \001(\t\"Y\n\023ListSchemasResp" - + "onse\022)\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1" - + ".Schema\022\027\n\017next_page_token\030\002 \001(\t\"\243\001\n\032Lis" - + "tSchemaRevisionsRequest\0222\n\004name\030\001 \001(\tB$\340" - + "A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n\004v" - + "iew\030\002 \001(\0162\034.google.pubsub.v1.SchemaView\022" - + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"a" - + "\n\033ListSchemaRevisionsResponse\022)\n\007schemas" - + "\030\001 \003(\0132\030.google.pubsub.v1.Schema\022\027\n\017next" - + "_page_token\030\002 \001(\t\"x\n\023CommitSchemaRequest" - + "\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googleapi" - + "s.com/Schema\022-\n\006schema\030\002 \001(\0132\030.google.pu" - + "bsub.v1.SchemaB\003\340A\002\"e\n\025RollbackSchemaReq" - + "uest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" - + "eapis.com/Schema\022\030\n\013revision_id\030\002 \001(\tB\003\340" - + "A\002\"k\n\033DeleteSchemaRevisionRequest\0222\n\004nam" - + "e\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googleapis.com/S" - + "chema\022\030\n\013revision_id\030\002 \001(\tB\003\340A\002\"I\n\023Delet" - + "eSchemaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pu" - + "bsub.googleapis.com/Schema\"\213\001\n\025ValidateS" - + "chemaRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cl" - + "oudresourcemanager.googleapis.com/Projec" - + "t\022-\n\006schema\030\002 \001(\0132\030.google.pubsub.v1.Sch" - + "emaB\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n\026V" - + "alidateMessageRequest\022C\n\006parent\030\001 \001(\tB3\340" - + "A\002\372A-\n+cloudresourcemanager.googleapis.c" - + "om/Project\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub.go" - + "ogleapis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132\030." - + "google.pubsub.v1.SchemaH\000\022\017\n\007message\030\004 \001" - + "(\014\022,\n\010encoding\030\005 \001(\0162\032.google.pubsub.v1." - + "EncodingB\r\n\013schema_spec\"\031\n\027ValidateMessa" - + "geResponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIEW_" - + "UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010En" - + "coding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JSON" - + "\020\001\022\n\n\006BINARY\020\0022\210\r\n\rSchemaService\022\232\001\n\014Cre" - + "ateSchema\022%.google.pubsub.v1.CreateSchem" - + "aRequest\032\030.google.pubsub.v1.Schema\"I\202\323\344\223" - + "\002)\"\037/v1/{parent=projects/*}/schemas:\006sch" - + "ema\332A\027parent,schema,schema_id\022y\n\tGetSche" - + "ma\022\".google.pubsub.v1.GetSchemaRequest\032\030" - + ".google.pubsub.v1.Schema\".\202\323\344\223\002!\022\037/v1/{n" - + "ame=projects/*/schemas/*}\332A\004name\022\214\001\n\013Lis" - + "tSchemas\022$.google.pubsub.v1.ListSchemasR" - + "equest\032%.google.pubsub.v1.ListSchemasRes" - + "ponse\"0\202\323\344\223\002!\022\037/v1/{parent=projects/*}/s" - + "chemas\332A\006parent\022\260\001\n\023ListSchemaRevisions\022" - + ",.google.pubsub.v1.ListSchemaRevisionsRe" - + "quest\032-.google.pubsub.v1.ListSchemaRevis" - + "ionsResponse\"<\202\323\344\223\002/\022-/v1/{name=projects" - + "/*/schemas/*}:listRevisions\332A\004name\022\220\001\n\014C" - + "ommitSchema\022%.google.pubsub.v1.CommitSch" - + "emaRequest\032\030.google.pubsub.v1.Schema\"?\202\323" - + "\344\223\002+\"&/v1/{name=projects/*/schemas/*}:co" - + "mmit:\001*\332A\013name,schema\022\233\001\n\016RollbackSchema" - + "\022\'.google.pubsub.v1.RollbackSchemaReques" - + "t\032\030.google.pubsub.v1.Schema\"F\202\323\344\223\002-\"(/v1" - + "/{name=projects/*/schemas/*}:rollback:\001*" - + "\332A\020name,revision_id\022\252\001\n\024DeleteSchemaRevi" - + "sion\022-.google.pubsub.v1.DeleteSchemaRevi" - + "sionRequest\032\030.google.pubsub.v1.Schema\"I\202" - + "\323\344\223\0020*./v1/{name=projects/*/schemas/*}:d" - + "eleteRevision\332A\020name,revision_id\022}\n\014Dele" - + "teSchema\022%.google.pubsub.v1.DeleteSchema" - + "Request\032\026.google.protobuf.Empty\".\202\323\344\223\002!*" - + "\037/v1/{name=projects/*/schemas/*}\332A\004name\022" - + "\250\001\n\016ValidateSchema\022\'.google.pubsub.v1.Va" - + "lidateSchemaRequest\032(.google.pubsub.v1.V" - + "alidateSchemaResponse\"C\202\323\344\223\002-\"(/v1/{pare" - + "nt=projects/*}/schemas:validate:\001*\332A\rpar" - + "ent,schema\022\242\001\n\017ValidateMessage\022(.google." - + "pubsub.v1.ValidateMessageRequest\032).googl" - + "e.pubsub.v1.ValidateMessageResponse\":\202\323\344" - + "\223\0024\"//v1/{parent=projects/*}/schemas:val" - + "idateMessage:\001*\032p\312A\025pubsub.googleapis.co" - + "m\322AUhttps://www.googleapis.com/auth/clou" - + "d-platform,https://www.googleapis.com/au" - + "th/pubsubB\256\001\n\024com.google.pubsub.v1B\013Sche" - + "maProtoP\001Z6google.golang.org/genproto/go" - + "ogleapis/pubsub/v1;pubsub\370\001\001\252\002\026Google.Cl" - + "oud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002" - + "\031Google::Cloud::PubSub::V1b\006proto3" + + "imestampB\004\342A\001\003\";\n\004Type\022\024\n\020TYPE_UNSPECIFI" + + "ED\020\000\022\023\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC" + + "\n\034pubsub.googleapis.com/Schema\022#projects" + + "/{project}/schemas/{schema}\"\217\001\n\023CreateSc" + + "hemaRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\022\034pu" + + "bsub.googleapis.com/Schema\022.\n\006schema\030\002 \001" + + "(\0132\030.google.pubsub.v1.SchemaB\004\342A\001\002\022\021\n\tsc" + + "hema_id\030\003 \001(\t\"s\n\020GetSchemaRequest\0223\n\004nam" + + "e\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/" + + "Schema\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1." + + "SchemaView\"\255\001\n\022ListSchemasRequest\022D\n\006par" + + "ent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager" + + ".googleapis.com/Project\022*\n\004view\030\002 \001(\0162\034." + + "google.pubsub.v1.SchemaView\022\021\n\tpage_size" + + "\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"Y\n\023ListSchema" + + "sResponse\022)\n\007schemas\030\001 \003(\0132\030.google.pubs" + + "ub.v1.Schema\022\027\n\017next_page_token\030\002 \001(\t\"\244\001" + + "\n\032ListSchemaRevisionsRequest\0223\n\004name\030\001 \001" + + "(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/Schem" + + "a\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1.Schem" + + "aView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004" + + " \001(\t\"a\n\033ListSchemaRevisionsResponse\022)\n\007s" + + "chemas\030\001 \003(\0132\030.google.pubsub.v1.Schema\022\027" + + "\n\017next_page_token\030\002 \001(\t\"z\n\023CommitSchemaR" + + "equest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.go" + + "ogleapis.com/Schema\022.\n\006schema\030\002 \001(\0132\030.go" + + "ogle.pubsub.v1.SchemaB\004\342A\001\002\"g\n\025RollbackS" + + "chemaRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pub" + + "sub.googleapis.com/Schema\022\031\n\013revision_id" + + "\030\002 \001(\tB\004\342A\001\002\"o\n\033DeleteSchemaRevisionRequ" + + "est\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.googl" + + "eapis.com/Schema\022\033\n\013revision_id\030\002 \001(\tB\006\030" + + "\001\342A\001\001\"J\n\023DeleteSchemaRequest\0223\n\004name\030\001 \001" + + "(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/Schem" + + "a\"\215\001\n\025ValidateSchemaRequest\022D\n\006parent\030\001 " + + "\001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.googl" + + "eapis.com/Project\022.\n\006schema\030\002 \001(\0132\030.goog" + + "le.pubsub.v1.SchemaB\004\342A\001\002\"\030\n\026ValidateSch" + + "emaResponse\"\213\002\n\026ValidateMessageRequest\022D" + + "\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\0221\n\004name\030\002 \001" + + "(\tB!\372A\036\n\034pubsub.googleapis.com/SchemaH\000\022" + + "*\n\006schema\030\003 \001(\0132\030.google.pubsub.v1.Schem" + + "aH\000\022\017\n\007message\030\004 \001(\014\022,\n\010encoding\030\005 \001(\0162\032" + + ".google.pubsub.v1.EncodingB\r\n\013schema_spe" + + "c\"\031\n\027ValidateMessageResponse*>\n\nSchemaVi" + + "ew\022\033\n\027SCHEMA_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC" + + "\020\001\022\010\n\004FULL\020\002*:\n\010Encoding\022\030\n\024ENCODING_UNS" + + "PECIFIED\020\000\022\010\n\004JSON\020\001\022\n\n\006BINARY\020\0022\210\r\n\rSch" + + "emaService\022\232\001\n\014CreateSchema\022%.google.pub" + + "sub.v1.CreateSchemaRequest\032\030.google.pubs" + + "ub.v1.Schema\"I\332A\027parent,schema,schema_id" + + "\202\323\344\223\002)\"\037/v1/{parent=projects/*}/schemas:" + + "\006schema\022y\n\tGetSchema\022\".google.pubsub.v1." + + "GetSchemaRequest\032\030.google.pubsub.v1.Sche" + + "ma\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=projects/*/" + + "schemas/*}\022\214\001\n\013ListSchemas\022$.google.pubs" + + "ub.v1.ListSchemasRequest\032%.google.pubsub" + + ".v1.ListSchemasResponse\"0\332A\006parent\202\323\344\223\002!" + + "\022\037/v1/{parent=projects/*}/schemas\022\260\001\n\023Li" + + "stSchemaRevisions\022,.google.pubsub.v1.Lis" + + "tSchemaRevisionsRequest\032-.google.pubsub." + + "v1.ListSchemaRevisionsResponse\"<\332A\004name\202" + + "\323\344\223\002/\022-/v1/{name=projects/*/schemas/*}:l" + + "istRevisions\022\220\001\n\014CommitSchema\022%.google.p" + + "ubsub.v1.CommitSchemaRequest\032\030.google.pu" + + "bsub.v1.Schema\"?\332A\013name,schema\202\323\344\223\002+\"&/v" + + "1/{name=projects/*/schemas/*}:commit:\001*\022" + + "\233\001\n\016RollbackSchema\022\'.google.pubsub.v1.Ro" + + "llbackSchemaRequest\032\030.google.pubsub.v1.S" + + "chema\"F\332A\020name,revision_id\202\323\344\223\002-\"(/v1/{n" + + "ame=projects/*/schemas/*}:rollback:\001*\022\252\001" + + "\n\024DeleteSchemaRevision\022-.google.pubsub.v" + + "1.DeleteSchemaRevisionRequest\032\030.google.p" + + "ubsub.v1.Schema\"I\332A\020name,revision_id\202\323\344\223" + + "\0020*./v1/{name=projects/*/schemas/*}:dele" + + "teRevision\022}\n\014DeleteSchema\022%.google.pubs" + + "ub.v1.DeleteSchemaRequest\032\026.google.proto" + + "buf.Empty\".\332A\004name\202\323\344\223\002!*\037/v1/{name=proj" + + "ects/*/schemas/*}\022\250\001\n\016ValidateSchema\022\'.g" + + "oogle.pubsub.v1.ValidateSchemaRequest\032(." + + "google.pubsub.v1.ValidateSchemaResponse\"" + + "C\332A\rparent,schema\202\323\344\223\002-\"(/v1/{parent=pro" + + "jects/*}/schemas:validate:\001*\022\242\001\n\017Validat" + + "eMessage\022(.google.pubsub.v1.ValidateMess" + + "ageRequest\032).google.pubsub.v1.ValidateMe" + + "ssageResponse\":\202\323\344\223\0024\"//v1/{parent=proje" + + "cts/*}/schemas:validateMessage:\001*\032p\312A\025pu" + + "bsub.googleapis.com\322AUhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" + + "le.pubsub.v1B\013SchemaProtoP\001Z2cloud.googl" + + "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" + + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" + + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index c618f10d6c3e..afd8d25edf2f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SchemaSettings(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_SchemaSettings_descriptor; @@ -71,7 +66,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SCHEMA_FIELD_NUMBER = 1; - private volatile java.lang.Object schema_; + + @SuppressWarnings("serial") + private volatile java.lang.Object schema_ = ""; /** * * @@ -130,7 +127,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { } public static final int ENCODING_FIELD_NUMBER = 2; - private int encoding_; + private int encoding_ = 0; /** * * @@ -159,13 +156,14 @@ public int getEncodingValue() { */ @java.lang.Override public com.google.pubsub.v1.Encoding getEncoding() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(encoding_); + com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.forNumber(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } public static final int FIRST_REVISION_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object firstRevisionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object firstRevisionId_ = ""; /** * * @@ -218,7 +216,9 @@ public com.google.protobuf.ByteString getFirstRevisionIdBytes() { } public static final int LAST_REVISION_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object lastRevisionId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object lastRevisionId_ = ""; /** * * @@ -492,14 +492,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; schema_ = ""; - encoding_ = 0; - firstRevisionId_ = ""; - lastRevisionId_ = ""; - return this; } @@ -526,14 +523,29 @@ public com.google.pubsub.v1.SchemaSettings build() { @java.lang.Override public com.google.pubsub.v1.SchemaSettings buildPartial() { com.google.pubsub.v1.SchemaSettings result = new com.google.pubsub.v1.SchemaSettings(this); - result.schema_ = schema_; - result.encoding_ = encoding_; - result.firstRevisionId_ = firstRevisionId_; - result.lastRevisionId_ = lastRevisionId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.SchemaSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.schema_ = schema_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.encoding_ = encoding_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.firstRevisionId_ = firstRevisionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lastRevisionId_ = lastRevisionId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -581,6 +593,7 @@ public Builder mergeFrom(com.google.pubsub.v1.SchemaSettings other) { if (other == com.google.pubsub.v1.SchemaSettings.getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; + bitField0_ |= 0x00000001; onChanged(); } if (other.encoding_ != 0) { @@ -588,10 +601,12 @@ public Builder mergeFrom(com.google.pubsub.v1.SchemaSettings other) { } if (!other.getFirstRevisionId().isEmpty()) { firstRevisionId_ = other.firstRevisionId_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getLastRevisionId().isEmpty()) { lastRevisionId_ = other.lastRevisionId_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -623,25 +638,25 @@ public Builder mergeFrom( case 10: { schema_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { encoding_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { firstRevisionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { lastRevisionId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -661,6 +676,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object schema_ = ""; /** * @@ -737,8 +754,8 @@ public Builder setSchema(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - schema_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -759,8 +776,8 @@ public Builder setSchema(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSchema() { - schema_ = getDefaultInstance().getSchema(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -786,8 +803,8 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - schema_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -821,8 +838,8 @@ public int getEncodingValue() { * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - encoding_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -839,8 +856,7 @@ public Builder setEncodingValue(int value) { */ @java.lang.Override public com.google.pubsub.v1.Encoding getEncoding() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(encoding_); + com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.forNumber(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } /** @@ -859,7 +875,7 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; encoding_ = value.getNumber(); onChanged(); return this; @@ -876,7 +892,7 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { * @return This builder for chaining. */ public Builder clearEncoding() { - + bitField0_ = (bitField0_ & ~0x00000002); encoding_ = 0; onChanged(); return this; @@ -949,8 +965,8 @@ public Builder setFirstRevisionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - firstRevisionId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -968,8 +984,8 @@ public Builder setFirstRevisionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFirstRevisionId() { - firstRevisionId_ = getDefaultInstance().getFirstRevisionId(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -992,8 +1008,8 @@ public Builder setFirstRevisionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - firstRevisionId_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1065,8 +1081,8 @@ public Builder setLastRevisionId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - lastRevisionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1084,8 +1100,8 @@ public Builder setLastRevisionId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLastRevisionId() { - lastRevisionId_ = getDefaultInstance().getLastRevisionId(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1108,8 +1124,8 @@ public Builder setLastRevisionIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - lastRevisionId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index d29341d6f8d9..9bc91481e955 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SeekRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } @@ -66,6 +61,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int targetCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object target_; public enum TargetCase @@ -113,7 +110,9 @@ public TargetCase getTargetCase() { } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object subscription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; /** * * @@ -554,8 +553,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; subscription_ = ""; - if (timeBuilder_ != null) { timeBuilder_.clear(); } @@ -587,22 +586,29 @@ public com.google.pubsub.v1.SeekRequest build() { @java.lang.Override public com.google.pubsub.v1.SeekRequest buildPartial() { com.google.pubsub.v1.SeekRequest result = new com.google.pubsub.v1.SeekRequest(this); - result.subscription_ = subscription_; - if (targetCase_ == 2) { - if (timeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = timeBuilder_.build(); - } - } - if (targetCase_ == 3) { - result.target_ = target_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.targetCase_ = targetCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.SeekRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subscription_ = subscription_; + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.SeekRequest result) { + result.targetCase_ = targetCase_; + result.target_ = this.target_; + if (targetCase_ == 2 && timeBuilder_ != null) { + result.target_ = timeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -650,6 +656,7 @@ public Builder mergeFrom(com.google.pubsub.v1.SeekRequest other) { if (other == com.google.pubsub.v1.SeekRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; + bitField0_ |= 0x00000001; onChanged(); } switch (other.getTargetCase()) { @@ -699,7 +706,7 @@ public Builder mergeFrom( case 10: { subscription_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -746,6 +753,8 @@ public Builder clearTarget() { return this; } + private int bitField0_; + private java.lang.Object subscription_ = ""; /** * @@ -813,8 +822,8 @@ public Builder setSubscription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -832,8 +841,8 @@ public Builder setSubscription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSubscription() { - subscription_ = getDefaultInstance().getSubscription(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -856,8 +865,8 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1153,7 +1162,6 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { } targetCase_ = 2; onChanged(); - ; return timeBuilder_; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index b82800a006c6..0732b39cca9b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -160,5 +160,5 @@ public interface SeekRequestOrBuilder */ com.google.protobuf.ByteString getSnapshotBytes(); - public com.google.pubsub.v1.SeekRequest.TargetCase getTargetCase(); + com.google.pubsub.v1.SeekRequest.TargetCase getTargetCase(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 951b4d2883cd..8d8d73e9a75b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SeekResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_SeekResponse_descriptor; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index ad5014608ea1..10c44204317f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Snapshot(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor; } @@ -82,7 +77,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -131,7 +128,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TOPIC_FIELD_NUMBER = 2; - private volatile java.lang.Object topic_; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; /** * * @@ -249,7 +248,7 @@ public com.google.protobuf.Timestamp getExpireTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - return getExpireTime(); + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } public static final int LABELS_FIELD_NUMBER = 4; @@ -265,6 +264,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -325,7 +325,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -611,14 +614,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - topic_ = ""; - - if (expireTimeBuilder_ == null) { - expireTime_ = null; - } else { - expireTime_ = null; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); expireTimeBuilder_ = null; } internalGetMutableLabels().clear(); @@ -647,20 +648,30 @@ public com.google.pubsub.v1.Snapshot build() { @java.lang.Override public com.google.pubsub.v1.Snapshot buildPartial() { com.google.pubsub.v1.Snapshot result = new com.google.pubsub.v1.Snapshot(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.topic_ = topic_; - if (expireTimeBuilder_ == null) { - result.expireTime_ = expireTime_; - } else { - result.expireTime_ = expireTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.Snapshot result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -708,16 +719,19 @@ public Builder mergeFrom(com.google.pubsub.v1.Snapshot other) { if (other == com.google.pubsub.v1.Snapshot.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTopic().isEmpty()) { topic_ = other.topic_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasExpireTime()) { mergeExpireTime(other.getExpireTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -747,19 +761,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { topic_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -771,6 +785,7 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -853,8 +868,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -870,8 +885,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -892,8 +907,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -959,8 +974,8 @@ public Builder setTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - topic_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -976,8 +991,8 @@ public Builder setTopic(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTopic() { - topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -998,8 +1013,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - topic_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1031,7 +1046,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { - return expireTimeBuilder_ != null || expireTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1086,11 +1101,11 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } expireTime_ = value; - onChanged(); } else { expireTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1114,11 +1129,11 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); - onChanged(); } else { expireTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1141,17 +1156,18 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (expireTime_ != null) { - expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; } - onChanged(); } else { expireTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1173,14 +1189,13 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp expire_time = 3; */ public Builder clearExpireTime() { - if (expireTimeBuilder_ == null) { - expireTime_ = null; - onChanged(); - } else { - expireTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); expireTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1202,7 +1217,7 @@ public Builder clearExpireTime() { * .google.protobuf.Timestamp expire_time = 3; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } @@ -1279,14 +1294,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000008; + onChanged(); return labels_; } @@ -1341,8 +1356,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1372,6 +1389,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1395,6 +1413,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** @@ -1414,8 +1433,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; return this; } /** @@ -1430,6 +1449,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java index d415eefb4518..2aba349b38c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 74761e4ad227..96511c907fe0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -181,7 +181,6 @@ public interface SnapshotOrBuilder * * map<string, string> labels = 4; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 5bdfc5493d2e..fb7ed2b18e3c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -41,9 +41,9 @@ private StreamingPullRequest(com.google.protobuf.GeneratedMessageV3.Builder b private StreamingPullRequest() { subscription_ = ""; - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); modifyDeadlineSeconds_ = emptyIntList(); - modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); clientId_ = ""; } @@ -53,11 +53,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingPullRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; @@ -74,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SUBSCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object subscription_; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; /** * * @@ -133,7 +130,10 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } public static final int ACK_IDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList ackIds_; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList ackIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -210,6 +210,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { } public static final int MODIFY_DEADLINE_SECONDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_; /** * @@ -289,7 +291,10 @@ public int getModifyDeadlineSeconds(int index) { private int modifyDeadlineSecondsMemoizedSerializedSize = -1; public static final int MODIFY_DEADLINE_ACK_IDS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList modifyDeadlineAckIds_; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList modifyDeadlineAckIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -366,7 +371,7 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { } public static final int STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; - private int streamAckDeadlineSeconds_; + private int streamAckDeadlineSeconds_ = 0; /** * * @@ -387,7 +392,9 @@ public int getStreamAckDeadlineSeconds() { } public static final int CLIENT_ID_FIELD_NUMBER = 6; - private volatile java.lang.Object clientId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; /** * * @@ -446,7 +453,7 @@ public com.google.protobuf.ByteString getClientIdBytes() { } public static final int MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER = 7; - private long maxOutstandingMessages_; + private long maxOutstandingMessages_ = 0L; /** * * @@ -472,7 +479,7 @@ public long getMaxOutstandingMessages() { } public static final int MAX_OUTSTANDING_BYTES_FIELD_NUMBER = 8; - private long maxOutstandingBytes_; + private long maxOutstandingBytes_ = 0L; /** * * @@ -792,22 +799,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; subscription_ = ""; - - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); modifyDeadlineSeconds_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); streamAckDeadlineSeconds_ = 0; - clientId_ = ""; - maxOutstandingMessages_ = 0L; - maxOutstandingBytes_ = 0L; - return this; } @@ -835,29 +835,47 @@ public com.google.pubsub.v1.StreamingPullRequest build() { public com.google.pubsub.v1.StreamingPullRequest buildPartial() { com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this); - int from_bitField0_ = bitField0_; - result.subscription_ = subscription_; - if (((bitField0_ & 0x00000001) != 0)) { - ackIds_ = ackIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.ackIds_ = ackIds_; - if (((bitField0_ & 0x00000002) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.pubsub.v1.StreamingPullRequest result) { + if (((bitField0_ & 0x00000004) != 0)) { modifyDeadlineSeconds_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.modifyDeadlineSeconds_ = modifyDeadlineSeconds_; - if (((bitField0_ & 0x00000004) != 0)) { - modifyDeadlineAckIds_ = modifyDeadlineAckIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + } + + private void buildPartial0(com.google.pubsub.v1.StreamingPullRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subscription_ = subscription_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + ackIds_.makeImmutable(); + result.ackIds_ = ackIds_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + modifyDeadlineAckIds_.makeImmutable(); + result.modifyDeadlineAckIds_ = modifyDeadlineAckIds_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.streamAckDeadlineSeconds_ = streamAckDeadlineSeconds_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.maxOutstandingMessages_ = maxOutstandingMessages_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.maxOutstandingBytes_ = maxOutstandingBytes_; } - result.modifyDeadlineAckIds_ = modifyDeadlineAckIds_; - result.streamAckDeadlineSeconds_ = streamAckDeadlineSeconds_; - result.clientId_ = clientId_; - result.maxOutstandingMessages_ = maxOutstandingMessages_; - result.maxOutstandingBytes_ = maxOutstandingBytes_; - onBuilt(); - return result; } @java.lang.Override @@ -907,12 +925,13 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (other == com.google.pubsub.v1.StreamingPullRequest.getDefaultInstance()) return this; if (!other.getSubscription().isEmpty()) { subscription_ = other.subscription_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.ackIds_.isEmpty()) { if (ackIds_.isEmpty()) { ackIds_ = other.ackIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000002; } else { ensureAckIdsIsMutable(); ackIds_.addAll(other.ackIds_); @@ -922,7 +941,7 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (!other.modifyDeadlineSeconds_.isEmpty()) { if (modifyDeadlineSeconds_.isEmpty()) { modifyDeadlineSeconds_ = other.modifyDeadlineSeconds_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.addAll(other.modifyDeadlineSeconds_); @@ -932,7 +951,7 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (!other.modifyDeadlineAckIds_.isEmpty()) { if (modifyDeadlineAckIds_.isEmpty()) { modifyDeadlineAckIds_ = other.modifyDeadlineAckIds_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000008; } else { ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.addAll(other.modifyDeadlineAckIds_); @@ -944,6 +963,7 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { } if (!other.getClientId().isEmpty()) { clientId_ = other.clientId_; + bitField0_ |= 0x00000020; onChanged(); } if (other.getMaxOutstandingMessages() != 0L) { @@ -981,7 +1001,7 @@ public Builder mergeFrom( case 10: { subscription_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1019,25 +1039,25 @@ public Builder mergeFrom( case 40: { streamAckDeadlineSeconds_ = input.readInt32(); - + bitField0_ |= 0x00000010; break; } // case 40 case 50: { clientId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 56: { maxOutstandingMessages_ = input.readInt64(); - + bitField0_ |= 0x00000040; break; } // case 56 case 64: { maxOutstandingBytes_ = input.readInt64(); - + bitField0_ |= 0x00000080; break; } // case 64 default: @@ -1135,8 +1155,8 @@ public Builder setSubscription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1157,8 +1177,8 @@ public Builder setSubscription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSubscription() { - subscription_ = getDefaultInstance().getSubscription(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1184,20 +1204,20 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - subscription_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringList ackIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList ackIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAckIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!ackIds_.isModifiable()) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000002; } /** * @@ -1215,7 +1235,8 @@ private void ensureAckIdsIsMutable() { * @return A list containing the ackIds. */ public com.google.protobuf.ProtocolStringList getAckIdsList() { - return ackIds_.getUnmodifiableView(); + ackIds_.makeImmutable(); + return ackIds_; } /** * @@ -1296,6 +1317,7 @@ public Builder setAckIds(int index, java.lang.String value) { } ensureAckIdsIsMutable(); ackIds_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1321,6 +1343,7 @@ public Builder addAckIds(java.lang.String value) { } ensureAckIdsIsMutable(); ackIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1343,6 +1366,7 @@ public Builder addAckIds(java.lang.String value) { public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1362,8 +1386,9 @@ public Builder addAllAckIds(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearAckIds() { - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -1390,6 +1415,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1397,9 +1423,9 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); private void ensureModifyDeadlineSecondsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { modifyDeadlineSeconds_ = mutableCopy(modifyDeadlineSeconds_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } /** @@ -1424,7 +1450,7 @@ private void ensureModifyDeadlineSecondsIsMutable() { * @return A list containing the modifyDeadlineSeconds. */ public java.util.List getModifyDeadlineSecondsList() { - return ((bitField0_ & 0x00000002) != 0) + return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) : modifyDeadlineSeconds_; } @@ -1501,6 +1527,7 @@ public int getModifyDeadlineSeconds(int index) { * @return This builder for chaining. */ public Builder setModifyDeadlineSeconds(int index, int value) { + ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.setInt(index, value); onChanged(); @@ -1529,6 +1556,7 @@ public Builder setModifyDeadlineSeconds(int index, int value) { * @return This builder for chaining. */ public Builder addModifyDeadlineSeconds(int value) { + ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.addInt(value); onChanged(); @@ -1586,19 +1614,19 @@ public Builder addAllModifyDeadlineSeconds( */ public Builder clearModifyDeadlineSeconds() { modifyDeadlineSeconds_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } - private com.google.protobuf.LazyStringList modifyDeadlineAckIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList modifyDeadlineAckIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureModifyDeadlineAckIdsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!modifyDeadlineAckIds_.isModifiable()) { modifyDeadlineAckIds_ = new com.google.protobuf.LazyStringArrayList(modifyDeadlineAckIds_); - bitField0_ |= 0x00000004; } + bitField0_ |= 0x00000008; } /** * @@ -1616,7 +1644,8 @@ private void ensureModifyDeadlineAckIdsIsMutable() { * @return A list containing the modifyDeadlineAckIds. */ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { - return modifyDeadlineAckIds_.getUnmodifiableView(); + modifyDeadlineAckIds_.makeImmutable(); + return modifyDeadlineAckIds_; } /** * @@ -1697,6 +1726,7 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) { } ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.set(index, value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1722,6 +1752,7 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) { } ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1744,6 +1775,7 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) { public Builder addAllModifyDeadlineAckIds(java.lang.Iterable values) { ensureModifyDeadlineAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modifyDeadlineAckIds_); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1763,8 +1795,9 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v * @return This builder for chaining. */ public Builder clearModifyDeadlineAckIds() { - modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } @@ -1791,6 +1824,7 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureModifyDeadlineAckIdsIsMutable(); modifyDeadlineAckIds_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1832,6 +1866,7 @@ public int getStreamAckDeadlineSeconds() { public Builder setStreamAckDeadlineSeconds(int value) { streamAckDeadlineSeconds_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1850,7 +1885,7 @@ public Builder setStreamAckDeadlineSeconds(int value) { * @return This builder for chaining. */ public Builder clearStreamAckDeadlineSeconds() { - + bitField0_ = (bitField0_ & ~0x00000010); streamAckDeadlineSeconds_ = 0; onChanged(); return this; @@ -1932,8 +1967,8 @@ public Builder setClientId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clientId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1954,8 +1989,8 @@ public Builder setClientId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearClientId() { - clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1981,8 +2016,8 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clientId_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2034,6 +2069,7 @@ public long getMaxOutstandingMessages() { public Builder setMaxOutstandingMessages(long value) { maxOutstandingMessages_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2057,7 +2093,7 @@ public Builder setMaxOutstandingMessages(long value) { * @return This builder for chaining. */ public Builder clearMaxOutstandingMessages() { - + bitField0_ = (bitField0_ & ~0x00000040); maxOutstandingMessages_ = 0L; onChanged(); return this; @@ -2110,6 +2146,7 @@ public long getMaxOutstandingBytes() { public Builder setMaxOutstandingBytes(long value) { maxOutstandingBytes_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2133,7 +2170,7 @@ public Builder setMaxOutstandingBytes(long value) { * @return This builder for chaining. */ public Builder clearMaxOutstandingBytes() { - + bitField0_ = (bitField0_ & ~0x00000080); maxOutstandingBytes_ = 0L; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 5203cb412d34..eda888e51825 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingPullResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; @@ -229,6 +224,57 @@ public interface AcknowledgeConfirmationOrBuilder * @return The bytes of the unorderedAckIds at the given index. */ com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index); + + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @return A list containing the temporaryFailedAckIds. + */ + java.util.List getTemporaryFailedAckIdsList(); + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @return The count of temporaryFailedAckIds. + */ + int getTemporaryFailedAckIdsCount(); + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @param index The index of the element to return. + * @return The temporaryFailedAckIds at the given index. + */ + java.lang.String getTemporaryFailedAckIds(int index); + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the temporaryFailedAckIds at the given index. + */ + com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index); } /** * @@ -251,9 +297,10 @@ private AcknowledgeConfirmation(com.google.protobuf.GeneratedMessageV3.Builder + * List of acknowledgement IDs that failed processing with temporary issues. + *
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @return A list containing the temporaryFailedAckIds. + */ + public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { + return temporaryFailedAckIds_; + } + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @return The count of temporaryFailedAckIds. + */ + public int getTemporaryFailedAckIdsCount() { + return temporaryFailedAckIds_.size(); + } + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @param index The index of the element to return. + * @return The temporaryFailedAckIds at the given index. + */ + public java.lang.String getTemporaryFailedAckIds(int index) { + return temporaryFailedAckIds_.get(index); + } + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the temporaryFailedAckIds at the given index. + */ + public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { + return temporaryFailedAckIds_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -492,6 +607,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < unorderedAckIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unorderedAckIds_.getRaw(i)); } + for (int i = 0; i < temporaryFailedAckIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, temporaryFailedAckIds_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -525,6 +644,14 @@ public int getSerializedSize() { size += dataSize; size += 1 * getUnorderedAckIdsList().size(); } + { + int dataSize = 0; + for (int i = 0; i < temporaryFailedAckIds_.size(); i++) { + dataSize += computeStringSizeNoTag(temporaryFailedAckIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getTemporaryFailedAckIdsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -544,6 +671,8 @@ public boolean equals(final java.lang.Object obj) { if (!getAckIdsList().equals(other.getAckIdsList())) return false; if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false; if (!getUnorderedAckIdsList().equals(other.getUnorderedAckIdsList())) return false; + if (!getTemporaryFailedAckIdsList().equals(other.getTemporaryFailedAckIdsList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -567,6 +696,10 @@ public int hashCode() { hash = (37 * hash) + UNORDERED_ACK_IDS_FIELD_NUMBER; hash = (53 * hash) + getUnorderedAckIdsList().hashCode(); } + if (getTemporaryFailedAckIdsCount() > 0) { + hash = (37 * hash) + TEMPORARY_FAILED_ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getTemporaryFailedAckIdsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -711,12 +844,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = 0; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -746,24 +878,32 @@ public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation build( public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation buildPartial() { com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result = new com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result) { int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - ackIds_ = ackIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + if (((from_bitField0_ & 0x00000001) != 0)) { + ackIds_.makeImmutable(); + result.ackIds_ = ackIds_; } - result.ackIds_ = ackIds_; - if (((bitField0_ & 0x00000002) != 0)) { - invalidAckIds_ = invalidAckIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + if (((from_bitField0_ & 0x00000002) != 0)) { + invalidAckIds_.makeImmutable(); + result.invalidAckIds_ = invalidAckIds_; } - result.invalidAckIds_ = invalidAckIds_; - if (((bitField0_ & 0x00000004) != 0)) { - unorderedAckIds_ = unorderedAckIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + if (((from_bitField0_ & 0x00000004) != 0)) { + unorderedAckIds_.makeImmutable(); + result.unorderedAckIds_ = unorderedAckIds_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + temporaryFailedAckIds_.makeImmutable(); + result.temporaryFailedAckIds_ = temporaryFailedAckIds_; } - result.unorderedAckIds_ = unorderedAckIds_; - onBuilt(); - return result; } @java.lang.Override @@ -820,7 +960,7 @@ public Builder mergeFrom( if (!other.ackIds_.isEmpty()) { if (ackIds_.isEmpty()) { ackIds_ = other.ackIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureAckIdsIsMutable(); ackIds_.addAll(other.ackIds_); @@ -830,7 +970,7 @@ public Builder mergeFrom( if (!other.invalidAckIds_.isEmpty()) { if (invalidAckIds_.isEmpty()) { invalidAckIds_ = other.invalidAckIds_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureInvalidAckIdsIsMutable(); invalidAckIds_.addAll(other.invalidAckIds_); @@ -840,13 +980,23 @@ public Builder mergeFrom( if (!other.unorderedAckIds_.isEmpty()) { if (unorderedAckIds_.isEmpty()) { unorderedAckIds_ = other.unorderedAckIds_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.addAll(other.unorderedAckIds_); } onChanged(); } + if (!other.temporaryFailedAckIds_.isEmpty()) { + if (temporaryFailedAckIds_.isEmpty()) { + temporaryFailedAckIds_ = other.temporaryFailedAckIds_; + bitField0_ |= 0x00000008; + } else { + ensureTemporaryFailedAckIdsIsMutable(); + temporaryFailedAckIds_.addAll(other.temporaryFailedAckIds_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -894,6 +1044,13 @@ public Builder mergeFrom( unorderedAckIds_.add(s); break; } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTemporaryFailedAckIdsIsMutable(); + temporaryFailedAckIds_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -913,14 +1070,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList ackIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList ackIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAckIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!ackIds_.isModifiable()) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -934,7 +1091,8 @@ private void ensureAckIdsIsMutable() { * @return A list containing the ackIds. */ public com.google.protobuf.ProtocolStringList getAckIdsList() { - return ackIds_.getUnmodifiableView(); + ackIds_.makeImmutable(); + return ackIds_; } /** * @@ -999,6 +1157,7 @@ public Builder setAckIds(int index, java.lang.String value) { } ensureAckIdsIsMutable(); ackIds_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1020,6 +1179,7 @@ public Builder addAckIds(java.lang.String value) { } ensureAckIdsIsMutable(); ackIds_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1038,6 +1198,7 @@ public Builder addAckIds(java.lang.String value) { public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1053,8 +1214,9 @@ public Builder addAllAckIds(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearAckIds() { - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -1077,18 +1239,19 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringList invalidAckIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList invalidAckIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureInvalidAckIdsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!invalidAckIds_.isModifiable()) { invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -1103,7 +1266,8 @@ private void ensureInvalidAckIdsIsMutable() { * @return A list containing the invalidAckIds. */ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { - return invalidAckIds_.getUnmodifiableView(); + invalidAckIds_.makeImmutable(); + return invalidAckIds_; } /** * @@ -1172,6 +1336,7 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { } ensureInvalidAckIdsIsMutable(); invalidAckIds_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1194,6 +1359,7 @@ public Builder addInvalidAckIds(java.lang.String value) { } ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1213,6 +1379,7 @@ public Builder addInvalidAckIds(java.lang.String value) { public Builder addAllInvalidAckIds(java.lang.Iterable values) { ensureInvalidAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidAckIds_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1229,8 +1396,9 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * @return This builder for chaining. */ public Builder clearInvalidAckIds() { - invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -1254,18 +1422,19 @@ public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } - private com.google.protobuf.LazyStringList unorderedAckIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList unorderedAckIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureUnorderedAckIdsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!unorderedAckIds_.isModifiable()) { unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList(unorderedAckIds_); - bitField0_ |= 0x00000004; } + bitField0_ |= 0x00000004; } /** * @@ -1279,7 +1448,8 @@ private void ensureUnorderedAckIdsIsMutable() { * @return A list containing the unorderedAckIds. */ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { - return unorderedAckIds_.getUnmodifiableView(); + unorderedAckIds_.makeImmutable(); + return unorderedAckIds_; } /** * @@ -1344,6 +1514,7 @@ public Builder setUnorderedAckIds(int index, java.lang.String value) { } ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.set(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1365,6 +1536,7 @@ public Builder addUnorderedAckIds(java.lang.String value) { } ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1383,6 +1555,7 @@ public Builder addUnorderedAckIds(java.lang.String value) { public Builder addAllUnorderedAckIds(java.lang.Iterable values) { ensureUnorderedAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unorderedAckIds_); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1398,8 +1571,9 @@ public Builder addAllUnorderedAckIds(java.lang.Iterable values * @return This builder for chaining. */ public Builder clearUnorderedAckIds() { - unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } @@ -1422,6 +1596,182 @@ public Builder addUnorderedAckIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureUnorderedAckIdsIsMutable(); unorderedAckIds_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTemporaryFailedAckIdsIsMutable() { + if (!temporaryFailedAckIds_.isModifiable()) { + temporaryFailedAckIds_ = + new com.google.protobuf.LazyStringArrayList(temporaryFailedAckIds_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @return A list containing the temporaryFailedAckIds. + */ + public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { + temporaryFailedAckIds_.makeImmutable(); + return temporaryFailedAckIds_; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @return The count of temporaryFailedAckIds. + */ + public int getTemporaryFailedAckIdsCount() { + return temporaryFailedAckIds_.size(); + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @param index The index of the element to return. + * @return The temporaryFailedAckIds at the given index. + */ + public java.lang.String getTemporaryFailedAckIds(int index) { + return temporaryFailedAckIds_.get(index); + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @param index The index of the value to return. + * @return The bytes of the temporaryFailedAckIds at the given index. + */ + public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { + return temporaryFailedAckIds_.getByteString(index); + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @param index The index to set the value at. + * @param value The temporaryFailedAckIds to set. + * @return This builder for chaining. + */ + public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTemporaryFailedAckIdsIsMutable(); + temporaryFailedAckIds_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @param value The temporaryFailedAckIds to add. + * @return This builder for chaining. + */ + public Builder addTemporaryFailedAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTemporaryFailedAckIdsIsMutable(); + temporaryFailedAckIds_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @param values The temporaryFailedAckIds to add. + * @return This builder for chaining. + */ + public Builder addAllTemporaryFailedAckIds(java.lang.Iterable values) { + ensureTemporaryFailedAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, temporaryFailedAckIds_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @return This builder for chaining. + */ + public Builder clearTemporaryFailedAckIds() { + temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 4; + * + * @param value The bytes of the temporaryFailedAckIds to add. + * @return This builder for chaining. + */ + public Builder addTemporaryFailedAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTemporaryFailedAckIdsIsMutable(); + temporaryFailedAckIds_.add(value); + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1603,6 +1953,57 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The bytes of the invalidAckIds at the given index. */ com.google.protobuf.ByteString getInvalidAckIdsBytes(int index); + + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @return A list containing the temporaryFailedAckIds. + */ + java.util.List getTemporaryFailedAckIdsList(); + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @return The count of temporaryFailedAckIds. + */ + int getTemporaryFailedAckIdsCount(); + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @param index The index of the element to return. + * @return The temporaryFailedAckIds at the given index. + */ + java.lang.String getTemporaryFailedAckIds(int index); + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the temporaryFailedAckIds at the given index. + */ + com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index); } /** * @@ -1627,8 +2028,9 @@ private ModifyAckDeadlineConfirmation( } private ModifyAckDeadlineConfirmation() { - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -1637,11 +2039,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ModifyAckDeadlineConfirmation(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor; @@ -1659,7 +2056,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ACK_IDS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList ackIds_; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList ackIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -1720,7 +2120,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { } public static final int INVALID_ACK_IDS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList invalidAckIds_; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList invalidAckIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -1784,6 +2187,70 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { return invalidAckIds_.getByteString(index); } + public static final int TEMPORARY_FAILED_ACK_IDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @return A list containing the temporaryFailedAckIds. + */ + public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { + return temporaryFailedAckIds_; + } + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @return The count of temporaryFailedAckIds. + */ + public int getTemporaryFailedAckIdsCount() { + return temporaryFailedAckIds_.size(); + } + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @param index The index of the element to return. + * @return The temporaryFailedAckIds at the given index. + */ + public java.lang.String getTemporaryFailedAckIds(int index) { + return temporaryFailedAckIds_.get(index); + } + /** + * + * + *
    +     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the temporaryFailedAckIds at the given index. + */ + public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { + return temporaryFailedAckIds_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1804,6 +2271,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < invalidAckIds_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, invalidAckIds_.getRaw(i)); } + for (int i = 0; i < temporaryFailedAckIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, temporaryFailedAckIds_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -1829,6 +2300,14 @@ public int getSerializedSize() { size += dataSize; size += 1 * getInvalidAckIdsList().size(); } + { + int dataSize = 0; + for (int i = 0; i < temporaryFailedAckIds_.size(); i++) { + dataSize += computeStringSizeNoTag(temporaryFailedAckIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getTemporaryFailedAckIdsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1848,6 +2327,8 @@ public boolean equals(final java.lang.Object obj) { if (!getAckIdsList().equals(other.getAckIdsList())) return false; if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false; + if (!getTemporaryFailedAckIdsList().equals(other.getTemporaryFailedAckIdsList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1867,6 +2348,10 @@ public int hashCode() { hash = (37 * hash) + INVALID_ACK_IDS_FIELD_NUMBER; hash = (53 * hash) + getInvalidAckIdsList().hashCode(); } + if (getTemporaryFailedAckIdsCount() > 0) { + hash = (37 * hash) + TEMPORARY_FAILED_ACK_IDS_FIELD_NUMBER; + hash = (53 * hash) + getTemporaryFailedAckIdsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2017,10 +2502,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = 0; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -2051,22 +2536,31 @@ public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation buildPartial() { com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result = - new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - ackIds_ = ackIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ackIds_ = ackIds_; - if (((bitField0_ & 0x00000002) != 0)) { - invalidAckIds_ = invalidAckIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(this); + if (bitField0_ != 0) { + buildPartial0(result); } - result.invalidAckIds_ = invalidAckIds_; onBuilt(); return result; } + private void buildPartial0( + com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + ackIds_.makeImmutable(); + result.ackIds_ = ackIds_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + invalidAckIds_.makeImmutable(); + result.invalidAckIds_ = invalidAckIds_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + temporaryFailedAckIds_.makeImmutable(); + result.temporaryFailedAckIds_ = temporaryFailedAckIds_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2122,7 +2616,7 @@ public Builder mergeFrom( if (!other.ackIds_.isEmpty()) { if (ackIds_.isEmpty()) { ackIds_ = other.ackIds_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureAckIdsIsMutable(); ackIds_.addAll(other.ackIds_); @@ -2132,13 +2626,23 @@ public Builder mergeFrom( if (!other.invalidAckIds_.isEmpty()) { if (invalidAckIds_.isEmpty()) { invalidAckIds_ = other.invalidAckIds_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureInvalidAckIdsIsMutable(); invalidAckIds_.addAll(other.invalidAckIds_); } onChanged(); } + if (!other.temporaryFailedAckIds_.isEmpty()) { + if (temporaryFailedAckIds_.isEmpty()) { + temporaryFailedAckIds_ = other.temporaryFailedAckIds_; + bitField0_ |= 0x00000004; + } else { + ensureTemporaryFailedAckIdsIsMutable(); + temporaryFailedAckIds_.addAll(other.temporaryFailedAckIds_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2179,6 +2683,13 @@ public Builder mergeFrom( invalidAckIds_.add(s); break; } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTemporaryFailedAckIdsIsMutable(); + temporaryFailedAckIds_.add(s); + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2198,14 +2709,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList ackIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList ackIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureAckIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!ackIds_.isModifiable()) { ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -2219,7 +2730,8 @@ private void ensureAckIdsIsMutable() { * @return A list containing the ackIds. */ public com.google.protobuf.ProtocolStringList getAckIdsList() { - return ackIds_.getUnmodifiableView(); + ackIds_.makeImmutable(); + return ackIds_; } /** * @@ -2284,6 +2796,7 @@ public Builder setAckIds(int index, java.lang.String value) { } ensureAckIdsIsMutable(); ackIds_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2305,6 +2818,7 @@ public Builder addAckIds(java.lang.String value) { } ensureAckIdsIsMutable(); ackIds_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2323,6 +2837,7 @@ public Builder addAckIds(java.lang.String value) { public Builder addAllAckIds(java.lang.Iterable values) { ensureAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ackIds_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2338,8 +2853,9 @@ public Builder addAllAckIds(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearAckIds() { - ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -2362,18 +2878,19 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAckIdsIsMutable(); ackIds_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } - private com.google.protobuf.LazyStringList invalidAckIds_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList invalidAckIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureInvalidAckIdsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!invalidAckIds_.isModifiable()) { invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -2388,7 +2905,8 @@ private void ensureInvalidAckIdsIsMutable() { * @return A list containing the invalidAckIds. */ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { - return invalidAckIds_.getUnmodifiableView(); + invalidAckIds_.makeImmutable(); + return invalidAckIds_; } /** * @@ -2457,6 +2975,7 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { } ensureInvalidAckIdsIsMutable(); invalidAckIds_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2479,6 +2998,7 @@ public Builder addInvalidAckIds(java.lang.String value) { } ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2498,6 +3018,7 @@ public Builder addInvalidAckIds(java.lang.String value) { public Builder addAllInvalidAckIds(java.lang.Iterable values) { ensureInvalidAckIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidAckIds_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2514,8 +3035,9 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * @return This builder for chaining. */ public Builder clearInvalidAckIds() { - invalidAckIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; + invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -2539,6 +3061,182 @@ public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureInvalidAckIdsIsMutable(); invalidAckIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTemporaryFailedAckIdsIsMutable() { + if (!temporaryFailedAckIds_.isModifiable()) { + temporaryFailedAckIds_ = + new com.google.protobuf.LazyStringArrayList(temporaryFailedAckIds_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @return A list containing the temporaryFailedAckIds. + */ + public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { + temporaryFailedAckIds_.makeImmutable(); + return temporaryFailedAckIds_; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @return The count of temporaryFailedAckIds. + */ + public int getTemporaryFailedAckIdsCount() { + return temporaryFailedAckIds_.size(); + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @param index The index of the element to return. + * @return The temporaryFailedAckIds at the given index. + */ + public java.lang.String getTemporaryFailedAckIds(int index) { + return temporaryFailedAckIds_.get(index); + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @param index The index of the value to return. + * @return The bytes of the temporaryFailedAckIds at the given index. + */ + public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { + return temporaryFailedAckIds_.getByteString(index); + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @param index The index to set the value at. + * @param value The temporaryFailedAckIds to set. + * @return This builder for chaining. + */ + public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTemporaryFailedAckIdsIsMutable(); + temporaryFailedAckIds_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @param value The temporaryFailedAckIds to add. + * @return This builder for chaining. + */ + public Builder addTemporaryFailedAckIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTemporaryFailedAckIdsIsMutable(); + temporaryFailedAckIds_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @param values The temporaryFailedAckIds to add. + * @return This builder for chaining. + */ + public Builder addAllTemporaryFailedAckIds(java.lang.Iterable values) { + ensureTemporaryFailedAckIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, temporaryFailedAckIds_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @return This builder for chaining. + */ + public Builder clearTemporaryFailedAckIds() { + temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
    +       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * 
    + * + * repeated string temporary_failed_ack_ids = 3; + * + * @param value The bytes of the temporaryFailedAckIds to add. + * @return This builder for chaining. + */ + public Builder addTemporaryFailedAckIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTemporaryFailedAckIdsIsMutable(); + temporaryFailedAckIds_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2669,11 +3367,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SubscriptionProperties(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; @@ -2690,7 +3383,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXACTLY_ONCE_DELIVERY_ENABLED_FIELD_NUMBER = 1; - private boolean exactlyOnceDeliveryEnabled_; + private boolean exactlyOnceDeliveryEnabled_ = false; /** * * @@ -2708,7 +3401,7 @@ public boolean getExactlyOnceDeliveryEnabled() { } public static final int MESSAGE_ORDERING_ENABLED_FIELD_NUMBER = 2; - private boolean messageOrderingEnabled_; + private boolean messageOrderingEnabled_ = false; /** * * @@ -2938,10 +3631,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; exactlyOnceDeliveryEnabled_ = false; - messageOrderingEnabled_ = false; - return this; } @@ -2971,12 +3663,24 @@ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties build() public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties buildPartial() { com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result = new com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties(this); - result.exactlyOnceDeliveryEnabled_ = exactlyOnceDeliveryEnabled_; - result.messageOrderingEnabled_ = messageOrderingEnabled_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.exactlyOnceDeliveryEnabled_ = exactlyOnceDeliveryEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.messageOrderingEnabled_ = messageOrderingEnabled_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3063,13 +3767,13 @@ public Builder mergeFrom( case 8: { exactlyOnceDeliveryEnabled_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { messageOrderingEnabled_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -3089,6 +3793,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean exactlyOnceDeliveryEnabled_; /** * @@ -3120,6 +3826,7 @@ public boolean getExactlyOnceDeliveryEnabled() { public Builder setExactlyOnceDeliveryEnabled(boolean value) { exactlyOnceDeliveryEnabled_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3135,7 +3842,7 @@ public Builder setExactlyOnceDeliveryEnabled(boolean value) { * @return This builder for chaining. */ public Builder clearExactlyOnceDeliveryEnabled() { - + bitField0_ = (bitField0_ & ~0x00000001); exactlyOnceDeliveryEnabled_ = false; onChanged(); return this; @@ -3172,6 +3879,7 @@ public boolean getMessageOrderingEnabled() { public Builder setMessageOrderingEnabled(boolean value) { messageOrderingEnabled_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3187,7 +3895,7 @@ public Builder setMessageOrderingEnabled(boolean value) { * @return This builder for chaining. */ public Builder clearMessageOrderingEnabled() { - + bitField0_ = (bitField0_ & ~0x00000002); messageOrderingEnabled_ = false; onChanged(); return this; @@ -3261,6 +3969,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List receivedMessages_; /** * @@ -3386,7 +4096,9 @@ public boolean hasAcknowledgeConfirmation() { @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder() { - return getAcknowledgeConfirmation(); + return acknowledgeConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance() + : acknowledgeConfirmation_; } public static final int MODIFY_ACK_DEADLINE_CONFIRMATION_FIELD_NUMBER = 3; @@ -3447,7 +4159,10 @@ public boolean hasModifyAckDeadlineConfirmation() { @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder() { - return getModifyAckDeadlineConfirmation(); + return modifyAckDeadlineConfirmation_ == null + ? com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance() + : modifyAckDeadlineConfirmation_; } public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER = 4; @@ -3503,7 +4218,9 @@ public boolean hasSubscriptionProperties() { @java.lang.Override public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder() { - return getSubscriptionProperties(); + return subscriptionProperties_ == null + ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() + : subscriptionProperties_; } private byte memoizedIsInitialized = -1; @@ -3754,6 +4471,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (receivedMessagesBuilder_ == null) { receivedMessages_ = java.util.Collections.emptyList(); } else { @@ -3761,22 +4479,19 @@ public Builder clear() { receivedMessagesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - if (acknowledgeConfirmationBuilder_ == null) { - acknowledgeConfirmation_ = null; - } else { - acknowledgeConfirmation_ = null; + acknowledgeConfirmation_ = null; + if (acknowledgeConfirmationBuilder_ != null) { + acknowledgeConfirmationBuilder_.dispose(); acknowledgeConfirmationBuilder_ = null; } - if (modifyAckDeadlineConfirmationBuilder_ == null) { - modifyAckDeadlineConfirmation_ = null; - } else { - modifyAckDeadlineConfirmation_ = null; + modifyAckDeadlineConfirmation_ = null; + if (modifyAckDeadlineConfirmationBuilder_ != null) { + modifyAckDeadlineConfirmationBuilder_.dispose(); modifyAckDeadlineConfirmationBuilder_ = null; } - if (subscriptionPropertiesBuilder_ == null) { - subscriptionProperties_ = null; - } else { - subscriptionProperties_ = null; + subscriptionProperties_ = null; + if (subscriptionPropertiesBuilder_ != null) { + subscriptionPropertiesBuilder_.dispose(); subscriptionPropertiesBuilder_ = null; } return this; @@ -3806,7 +4521,15 @@ public com.google.pubsub.v1.StreamingPullResponse build() { public com.google.pubsub.v1.StreamingPullResponse buildPartial() { com.google.pubsub.v1.StreamingPullResponse result = new com.google.pubsub.v1.StreamingPullResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.pubsub.v1.StreamingPullResponse result) { if (receivedMessagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { receivedMessages_ = java.util.Collections.unmodifiableList(receivedMessages_); @@ -3816,23 +4539,28 @@ public com.google.pubsub.v1.StreamingPullResponse buildPartial() { } else { result.receivedMessages_ = receivedMessagesBuilder_.build(); } - if (acknowledgeConfirmationBuilder_ == null) { - result.acknowledgeConfirmation_ = acknowledgeConfirmation_; - } else { - result.acknowledgeConfirmation_ = acknowledgeConfirmationBuilder_.build(); + } + + private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acknowledgeConfirmation_ = + acknowledgeConfirmationBuilder_ == null + ? acknowledgeConfirmation_ + : acknowledgeConfirmationBuilder_.build(); } - if (modifyAckDeadlineConfirmationBuilder_ == null) { - result.modifyAckDeadlineConfirmation_ = modifyAckDeadlineConfirmation_; - } else { - result.modifyAckDeadlineConfirmation_ = modifyAckDeadlineConfirmationBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modifyAckDeadlineConfirmation_ = + modifyAckDeadlineConfirmationBuilder_ == null + ? modifyAckDeadlineConfirmation_ + : modifyAckDeadlineConfirmationBuilder_.build(); } - if (subscriptionPropertiesBuilder_ == null) { - result.subscriptionProperties_ = subscriptionProperties_; - } else { - result.subscriptionProperties_ = subscriptionPropertiesBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.subscriptionProperties_ = + subscriptionPropertiesBuilder_ == null + ? subscriptionProperties_ + : subscriptionPropertiesBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -3959,21 +4687,21 @@ public Builder mergeFrom( { input.readMessage( getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getSubscriptionPropertiesFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getAcknowledgeConfirmationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 42 default: @@ -4371,7 +5099,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * @return Whether the acknowledgeConfirmation field is set. */ public boolean hasAcknowledgeConfirmation() { - return acknowledgeConfirmationBuilder_ != null || acknowledgeConfirmation_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -4417,11 +5145,11 @@ public Builder setAcknowledgeConfirmation( throw new NullPointerException(); } acknowledgeConfirmation_ = value; - onChanged(); } else { acknowledgeConfirmationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4441,11 +5169,11 @@ public Builder setAcknowledgeConfirmation( builderForValue) { if (acknowledgeConfirmationBuilder_ == null) { acknowledgeConfirmation_ = builderForValue.build(); - onChanged(); } else { acknowledgeConfirmationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4463,20 +5191,20 @@ public Builder setAcknowledgeConfirmation( public Builder mergeAcknowledgeConfirmation( com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation value) { if (acknowledgeConfirmationBuilder_ == null) { - if (acknowledgeConfirmation_ != null) { - acknowledgeConfirmation_ = - com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder( - acknowledgeConfirmation_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && acknowledgeConfirmation_ != null + && acknowledgeConfirmation_ + != com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation + .getDefaultInstance()) { + getAcknowledgeConfirmationBuilder().mergeFrom(value); } else { acknowledgeConfirmation_ = value; } - onChanged(); } else { acknowledgeConfirmationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -4492,14 +5220,13 @@ public Builder mergeAcknowledgeConfirmation( * */ public Builder clearAcknowledgeConfirmation() { - if (acknowledgeConfirmationBuilder_ == null) { - acknowledgeConfirmation_ = null; - onChanged(); - } else { - acknowledgeConfirmation_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + acknowledgeConfirmation_ = null; + if (acknowledgeConfirmationBuilder_ != null) { + acknowledgeConfirmationBuilder_.dispose(); acknowledgeConfirmationBuilder_ = null; } - + onChanged(); return this; } /** @@ -4516,7 +5243,7 @@ public Builder clearAcknowledgeConfirmation() { */ public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder getAcknowledgeConfirmationBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getAcknowledgeConfirmationFieldBuilder().getBuilder(); } @@ -4594,8 +5321,7 @@ public Builder clearAcknowledgeConfirmation() { * @return Whether the modifyAckDeadlineConfirmation field is set. */ public boolean hasModifyAckDeadlineConfirmation() { - return modifyAckDeadlineConfirmationBuilder_ != null - || modifyAckDeadlineConfirmation_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -4641,11 +5367,11 @@ public Builder setModifyAckDeadlineConfirmation( throw new NullPointerException(); } modifyAckDeadlineConfirmation_ = value; - onChanged(); } else { modifyAckDeadlineConfirmationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4665,11 +5391,11 @@ public Builder setModifyAckDeadlineConfirmation( builderForValue) { if (modifyAckDeadlineConfirmationBuilder_ == null) { modifyAckDeadlineConfirmation_ = builderForValue.build(); - onChanged(); } else { modifyAckDeadlineConfirmationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4687,20 +5413,20 @@ public Builder setModifyAckDeadlineConfirmation( public Builder mergeModifyAckDeadlineConfirmation( com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation value) { if (modifyAckDeadlineConfirmationBuilder_ == null) { - if (modifyAckDeadlineConfirmation_ != null) { - modifyAckDeadlineConfirmation_ = - com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder( - modifyAckDeadlineConfirmation_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && modifyAckDeadlineConfirmation_ != null + && modifyAckDeadlineConfirmation_ + != com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation + .getDefaultInstance()) { + getModifyAckDeadlineConfirmationBuilder().mergeFrom(value); } else { modifyAckDeadlineConfirmation_ = value; } - onChanged(); } else { modifyAckDeadlineConfirmationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -4716,14 +5442,13 @@ public Builder mergeModifyAckDeadlineConfirmation( * */ public Builder clearModifyAckDeadlineConfirmation() { - if (modifyAckDeadlineConfirmationBuilder_ == null) { - modifyAckDeadlineConfirmation_ = null; - onChanged(); - } else { - modifyAckDeadlineConfirmation_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + modifyAckDeadlineConfirmation_ = null; + if (modifyAckDeadlineConfirmationBuilder_ != null) { + modifyAckDeadlineConfirmationBuilder_.dispose(); modifyAckDeadlineConfirmationBuilder_ = null; } - + onChanged(); return this; } /** @@ -4740,7 +5465,7 @@ public Builder clearModifyAckDeadlineConfirmation() { */ public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder getModifyAckDeadlineConfirmationBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(); } @@ -4817,7 +5542,7 @@ public Builder clearModifyAckDeadlineConfirmation() { * @return Whether the subscriptionProperties field is set. */ public boolean hasSubscriptionProperties() { - return subscriptionPropertiesBuilder_ != null || subscriptionProperties_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -4860,11 +5585,11 @@ public Builder setSubscriptionProperties( throw new NullPointerException(); } subscriptionProperties_ = value; - onChanged(); } else { subscriptionPropertiesBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4882,11 +5607,11 @@ public Builder setSubscriptionProperties( com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder builderForValue) { if (subscriptionPropertiesBuilder_ == null) { subscriptionProperties_ = builderForValue.build(); - onChanged(); } else { subscriptionPropertiesBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4903,20 +5628,20 @@ public Builder setSubscriptionProperties( public Builder mergeSubscriptionProperties( com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties value) { if (subscriptionPropertiesBuilder_ == null) { - if (subscriptionProperties_ != null) { - subscriptionProperties_ = - com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder( - subscriptionProperties_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && subscriptionProperties_ != null + && subscriptionProperties_ + != com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties + .getDefaultInstance()) { + getSubscriptionPropertiesBuilder().mergeFrom(value); } else { subscriptionProperties_ = value; } - onChanged(); } else { subscriptionPropertiesBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -4931,14 +5656,13 @@ public Builder mergeSubscriptionProperties( * */ public Builder clearSubscriptionProperties() { - if (subscriptionPropertiesBuilder_ == null) { - subscriptionProperties_ = null; - onChanged(); - } else { - subscriptionProperties_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + subscriptionProperties_ = null; + if (subscriptionPropertiesBuilder_ != null) { + subscriptionPropertiesBuilder_.dispose(); subscriptionPropertiesBuilder_ = null; } - + onChanged(); return this; } /** @@ -4954,7 +5678,7 @@ public Builder clearSubscriptionProperties() { */ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder getSubscriptionPropertiesBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getSubscriptionPropertiesFieldBuilder().getBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 99327262a95a..caeb039653ca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -22,7 +22,9 @@ * * *
    - * A subscription resource.
    + * A subscription resource. If none of `push_config`, `bigquery_config`, or
    + * `cloud_storage_config` is set, then the subscriber will pull and ack messages
    + * using API methods. At most one of these fields may be set.
      * 
    * * Protobuf type {@code google.pubsub.v1.Subscription} @@ -50,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Subscription(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Subscription_descriptor; @@ -243,7 +240,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -302,7 +301,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TOPIC_FIELD_NUMBER = 2; - private volatile java.lang.Object topic_; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; /** * * @@ -365,9 +366,7 @@ public com.google.protobuf.ByteString getTopicBytes() { * *
        * If push delivery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -383,9 +382,7 @@ public boolean hasPushConfig() { * *
        * If push delivery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -401,16 +398,14 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * *
        * If push delivery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; */ @java.lang.Override public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { - return getPushConfig(); + return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } public static final int BIGQUERY_CONFIG_FIELD_NUMBER = 18; @@ -420,9 +415,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * *
        * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; @@ -438,9 +431,7 @@ public boolean hasBigqueryConfig() { * *
        * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; @@ -458,20 +449,73 @@ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { * *
        * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; */ @java.lang.Override public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() { - return getBigqueryConfig(); + return bigqueryConfig_ == null + ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() + : bigqueryConfig_; + } + + public static final int CLOUD_STORAGE_CONFIG_FIELD_NUMBER = 22; + private com.google.pubsub.v1.CloudStorageConfig cloudStorageConfig_; + /** + * + * + *
    +   * If delivery to Google Cloud Storage is used with this subscription, this
    +   * field is used to configure it.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * @return Whether the cloudStorageConfig field is set. + */ + @java.lang.Override + public boolean hasCloudStorageConfig() { + return cloudStorageConfig_ != null; + } + /** + * + * + *
    +   * If delivery to Google Cloud Storage is used with this subscription, this
    +   * field is used to configure it.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * @return The cloudStorageConfig. + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { + return cloudStorageConfig_ == null + ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() + : cloudStorageConfig_; + } + /** + * + * + *
    +   * If delivery to Google Cloud Storage is used with this subscription, this
    +   * field is used to configure it.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + */ + @java.lang.Override + public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder() { + return cloudStorageConfig_ == null + ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() + : cloudStorageConfig_; } public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; - private int ackDeadlineSeconds_; + private int ackDeadlineSeconds_ = 0; /** * * @@ -479,8 +523,9 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * 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 <i>outstanding</i>. During that time period, the + * 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 @@ -489,8 +534,10 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * 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. *
    @@ -505,7 +552,7 @@ public int getAckDeadlineSeconds() { } public static final int RETAIN_ACKED_MESSAGES_FIELD_NUMBER = 7; - private boolean retainAckedMessages_; + private boolean retainAckedMessages_ = false; /** * * @@ -587,7 +634,9 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { - return getMessageRetentionDuration(); + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; } public static final int LABELS_FIELD_NUMBER = 9; @@ -603,6 +652,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -619,8 +669,8 @@ public int getLabelsCount() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 9; @@ -642,8 +692,8 @@ public java.util.Map getLabels() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 9; @@ -656,14 +706,17 @@ public java.util.Map getLabelsMap() { * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -674,8 +727,8 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 9; @@ -693,7 +746,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int ENABLE_MESSAGE_ORDERING_FIELD_NUMBER = 10; - private boolean enableMessageOrdering_; + private boolean enableMessageOrdering_ = false; /** * * @@ -724,7 +777,8 @@ public boolean getEnableMessageOrdering() { * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -744,7 +798,8 @@ public boolean hasExpirationPolicy() { * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -766,18 +821,23 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; */ @java.lang.Override public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder() { - return getExpirationPolicy(); + return expirationPolicy_ == null + ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() + : expirationPolicy_; } public static final int FILTER_FIELD_NUMBER = 12; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -842,6 +902,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * 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 @@ -863,6 +924,7 @@ public boolean hasDeadLetterPolicy() { * 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 @@ -886,6 +948,7 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { * 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 @@ -896,7 +959,9 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { */ @java.lang.Override public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() { - return getDeadLetterPolicy(); + return deadLetterPolicy_ == null + ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() + : deadLetterPolicy_; } public static final int RETRY_POLICY_FIELD_NUMBER = 14; @@ -907,6 +972,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild *
        * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
    +   *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -927,6 +993,7 @@ public boolean hasRetryPolicy() {
        * 
        * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
    +   *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -949,6 +1016,7 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() {
        * 
        * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
    +   *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -959,11 +1027,13 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() {
        */
       @java.lang.Override
       public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
    -    return getRetryPolicy();
    +    return retryPolicy_ == null
    +        ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance()
    +        : retryPolicy_;
       }
     
       public static final int DETACHED_FIELD_NUMBER = 15;
    -  private boolean detached_;
    +  private boolean detached_ = false;
       /**
        *
        *
    @@ -985,16 +1055,18 @@ public boolean getDetached() {
       }
     
       public static final int ENABLE_EXACTLY_ONCE_DELIVERY_FIELD_NUMBER = 16;
    -  private boolean enableExactlyOnceDelivery_;
    +  private boolean enableExactlyOnceDelivery_ = false;
       /**
        *
        *
        * 
        * If true, Pub/Sub provides the following guarantees for the delivery of
        * a message with a given value of `message_id` on this subscription:
    +   *
        * * The message sent to a subscriber is guaranteed not to be resent
        * before the message's acknowledgement deadline expires.
        * * An acknowledged message will not be resent to a subscriber.
    +   *
        * Note that subscribers may still receive multiple copies of a message
        * when `enable_exactly_once_delivery` is true if the message was published
        * multiple times by a publisher client. These copies are  considered distinct
    @@ -1076,11 +1148,13 @@ public com.google.protobuf.Duration getTopicMessageRetentionDuration() {
        */
       @java.lang.Override
       public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrBuilder() {
    -    return getTopicMessageRetentionDuration();
    +    return topicMessageRetentionDuration_ == null
    +        ? com.google.protobuf.Duration.getDefaultInstance()
    +        : topicMessageRetentionDuration_;
       }
     
       public static final int STATE_FIELD_NUMBER = 19;
    -  private int state_;
    +  private int state_ = 0;
       /**
        *
        *
    @@ -1115,9 +1189,8 @@ public int getStateValue() {
        */
       @java.lang.Override
       public com.google.pubsub.v1.Subscription.State getState() {
    -    @SuppressWarnings("deprecation")
         com.google.pubsub.v1.Subscription.State result =
    -        com.google.pubsub.v1.Subscription.State.valueOf(state_);
    +        com.google.pubsub.v1.Subscription.State.forNumber(state_);
         return result == null ? com.google.pubsub.v1.Subscription.State.UNRECOGNIZED : result;
       }
     
    @@ -1185,6 +1258,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
         if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) {
           output.writeEnum(19, state_);
         }
    +    if (cloudStorageConfig_ != null) {
    +      output.writeMessage(22, getCloudStorageConfig());
    +    }
         getUnknownFields().writeTo(output);
       }
     
    @@ -1256,6 +1332,9 @@ public int getSerializedSize() {
         if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) {
           size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, state_);
         }
    +    if (cloudStorageConfig_ != null) {
    +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getCloudStorageConfig());
    +    }
         size += getUnknownFields().getSerializedSize();
         memoizedSize = size;
         return size;
    @@ -1281,6 +1360,10 @@ public boolean equals(final java.lang.Object obj) {
         if (hasBigqueryConfig()) {
           if (!getBigqueryConfig().equals(other.getBigqueryConfig())) return false;
         }
    +    if (hasCloudStorageConfig() != other.hasCloudStorageConfig()) return false;
    +    if (hasCloudStorageConfig()) {
    +      if (!getCloudStorageConfig().equals(other.getCloudStorageConfig())) return false;
    +    }
         if (getAckDeadlineSeconds() != other.getAckDeadlineSeconds()) return false;
         if (getRetainAckedMessages() != other.getRetainAckedMessages()) return false;
         if (hasMessageRetentionDuration() != other.hasMessageRetentionDuration()) return false;
    @@ -1334,6 +1417,10 @@ public int hashCode() {
           hash = (37 * hash) + BIGQUERY_CONFIG_FIELD_NUMBER;
           hash = (53 * hash) + getBigqueryConfig().hashCode();
         }
    +    if (hasCloudStorageConfig()) {
    +      hash = (37 * hash) + CLOUD_STORAGE_CONFIG_FIELD_NUMBER;
    +      hash = (53 * hash) + getCloudStorageConfig().hashCode();
    +    }
         hash = (37 * hash) + ACK_DEADLINE_SECONDS_FIELD_NUMBER;
         hash = (53 * hash) + getAckDeadlineSeconds();
         hash = (37 * hash) + RETAIN_ACKED_MESSAGES_FIELD_NUMBER;
    @@ -1475,7 +1562,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        *
        * 
    -   * A subscription resource.
    +   * A subscription resource. If none of `push_config`, `bigquery_config`, or
    +   * `cloud_storage_config` is set, then the subscriber will pull and ack messages
    +   * using API methods. At most one of these fields may be set.
        * 
    * * Protobuf type {@code google.pubsub.v1.Subscription} @@ -1529,67 +1618,57 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - topic_ = ""; - - if (pushConfigBuilder_ == null) { - pushConfig_ = null; - } else { - pushConfig_ = null; + pushConfig_ = null; + if (pushConfigBuilder_ != null) { + pushConfigBuilder_.dispose(); pushConfigBuilder_ = null; } - if (bigqueryConfigBuilder_ == null) { - bigqueryConfig_ = null; - } else { - bigqueryConfig_ = null; + bigqueryConfig_ = null; + if (bigqueryConfigBuilder_ != null) { + bigqueryConfigBuilder_.dispose(); bigqueryConfigBuilder_ = null; } + cloudStorageConfig_ = null; + if (cloudStorageConfigBuilder_ != null) { + cloudStorageConfigBuilder_.dispose(); + cloudStorageConfigBuilder_ = null; + } ackDeadlineSeconds_ = 0; - retainAckedMessages_ = false; - - if (messageRetentionDurationBuilder_ == null) { - messageRetentionDuration_ = null; - } else { - messageRetentionDuration_ = null; + messageRetentionDuration_ = null; + if (messageRetentionDurationBuilder_ != null) { + messageRetentionDurationBuilder_.dispose(); messageRetentionDurationBuilder_ = null; } internalGetMutableLabels().clear(); enableMessageOrdering_ = false; - - if (expirationPolicyBuilder_ == null) { - expirationPolicy_ = null; - } else { - expirationPolicy_ = null; + expirationPolicy_ = null; + if (expirationPolicyBuilder_ != null) { + expirationPolicyBuilder_.dispose(); expirationPolicyBuilder_ = null; } filter_ = ""; - - if (deadLetterPolicyBuilder_ == null) { - deadLetterPolicy_ = null; - } else { - deadLetterPolicy_ = null; + deadLetterPolicy_ = null; + if (deadLetterPolicyBuilder_ != null) { + deadLetterPolicyBuilder_.dispose(); deadLetterPolicyBuilder_ = null; } - if (retryPolicyBuilder_ == null) { - retryPolicy_ = null; - } else { - retryPolicy_ = null; + retryPolicy_ = null; + if (retryPolicyBuilder_ != null) { + retryPolicyBuilder_.dispose(); retryPolicyBuilder_ = null; } detached_ = false; - enableExactlyOnceDelivery_ = false; - - if (topicMessageRetentionDurationBuilder_ == null) { - topicMessageRetentionDuration_ = null; - } else { - topicMessageRetentionDuration_ = null; + topicMessageRetentionDuration_ = null; + if (topicMessageRetentionDurationBuilder_ != null) { + topicMessageRetentionDurationBuilder_.dispose(); topicMessageRetentionDurationBuilder_ = null; } state_ = 0; - return this; } @@ -1616,55 +1695,83 @@ public com.google.pubsub.v1.Subscription build() { @java.lang.Override public com.google.pubsub.v1.Subscription buildPartial() { com.google.pubsub.v1.Subscription result = new com.google.pubsub.v1.Subscription(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.Subscription result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.topic_ = topic_; - if (pushConfigBuilder_ == null) { - result.pushConfig_ = pushConfig_; - } else { - result.pushConfig_ = pushConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (bigqueryConfigBuilder_ == null) { - result.bigqueryConfig_ = bigqueryConfig_; - } else { - result.bigqueryConfig_ = bigqueryConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.topic_ = topic_; } - result.ackDeadlineSeconds_ = ackDeadlineSeconds_; - result.retainAckedMessages_ = retainAckedMessages_; - if (messageRetentionDurationBuilder_ == null) { - result.messageRetentionDuration_ = messageRetentionDuration_; - } else { - result.messageRetentionDuration_ = messageRetentionDurationBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pushConfig_ = pushConfigBuilder_ == null ? pushConfig_ : pushConfigBuilder_.build(); } - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.enableMessageOrdering_ = enableMessageOrdering_; - if (expirationPolicyBuilder_ == null) { - result.expirationPolicy_ = expirationPolicy_; - } else { - result.expirationPolicy_ = expirationPolicyBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.bigqueryConfig_ = + bigqueryConfigBuilder_ == null ? bigqueryConfig_ : bigqueryConfigBuilder_.build(); } - result.filter_ = filter_; - if (deadLetterPolicyBuilder_ == null) { - result.deadLetterPolicy_ = deadLetterPolicy_; - } else { - result.deadLetterPolicy_ = deadLetterPolicyBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.cloudStorageConfig_ = + cloudStorageConfigBuilder_ == null + ? cloudStorageConfig_ + : cloudStorageConfigBuilder_.build(); } - if (retryPolicyBuilder_ == null) { - result.retryPolicy_ = retryPolicy_; - } else { - result.retryPolicy_ = retryPolicyBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ackDeadlineSeconds_ = ackDeadlineSeconds_; } - result.detached_ = detached_; - result.enableExactlyOnceDelivery_ = enableExactlyOnceDelivery_; - if (topicMessageRetentionDurationBuilder_ == null) { - result.topicMessageRetentionDuration_ = topicMessageRetentionDuration_; - } else { - result.topicMessageRetentionDuration_ = topicMessageRetentionDurationBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.retainAckedMessages_ = retainAckedMessages_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.messageRetentionDuration_ = + messageRetentionDurationBuilder_ == null + ? messageRetentionDuration_ + : messageRetentionDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.enableMessageOrdering_ = enableMessageOrdering_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.expirationPolicy_ = + expirationPolicyBuilder_ == null ? expirationPolicy_ : expirationPolicyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.deadLetterPolicy_ = + deadLetterPolicyBuilder_ == null ? deadLetterPolicy_ : deadLetterPolicyBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.retryPolicy_ = + retryPolicyBuilder_ == null ? retryPolicy_ : retryPolicyBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.detached_ = detached_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.enableExactlyOnceDelivery_ = enableExactlyOnceDelivery_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.topicMessageRetentionDuration_ = + topicMessageRetentionDurationBuilder_ == null + ? topicMessageRetentionDuration_ + : topicMessageRetentionDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.state_ = state_; } - result.state_ = state_; - onBuilt(); - return result; } @java.lang.Override @@ -1714,10 +1821,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other == com.google.pubsub.v1.Subscription.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTopic().isEmpty()) { topic_ = other.topic_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasPushConfig()) { @@ -1726,6 +1835,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasBigqueryConfig()) { mergeBigqueryConfig(other.getBigqueryConfig()); } + if (other.hasCloudStorageConfig()) { + mergeCloudStorageConfig(other.getCloudStorageConfig()); + } if (other.getAckDeadlineSeconds() != 0) { setAckDeadlineSeconds(other.getAckDeadlineSeconds()); } @@ -1736,6 +1848,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { mergeMessageRetentionDuration(other.getMessageRetentionDuration()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000100; if (other.getEnableMessageOrdering() != false) { setEnableMessageOrdering(other.getEnableMessageOrdering()); } @@ -1744,6 +1857,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000800; onChanged(); } if (other.hasDeadLetterPolicy()) { @@ -1793,38 +1907,38 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { topic_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage(getPushConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 34 case 40: { ackDeadlineSeconds_ = input.readInt32(); - + bitField0_ |= 0x00000020; break; } // case 40 case 56: { retainAckedMessages_ = input.readBool(); - + bitField0_ |= 0x00000040; break; } // case 56 case 66: { input.readMessage( getMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 66 case 74: @@ -1836,71 +1950,79 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000100; break; } // case 74 case 80: { enableMessageOrdering_ = input.readBool(); - + bitField0_ |= 0x00000200; break; } // case 80 case 90: { input.readMessage( getExpirationPolicyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 90 case 98: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000800; break; } // case 98 case 106: { input.readMessage( getDeadLetterPolicyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 106 case 114: { input.readMessage(getRetryPolicyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 114 case 120: { detached_ = input.readBool(); - + bitField0_ |= 0x00004000; break; } // case 120 case 128: { enableExactlyOnceDelivery_ = input.readBool(); - + bitField0_ |= 0x00008000; break; } // case 128 case 138: { input.readMessage( getTopicMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00010000; break; } // case 138 case 146: { input.readMessage(getBigqueryConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 146 case 152: { state_ = input.readEnum(); - + bitField0_ |= 0x00020000; break; } // case 152 + case 178: + { + input.readMessage( + getCloudStorageConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1996,8 +2118,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2018,8 +2140,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2045,8 +2167,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2124,8 +2246,8 @@ public Builder setTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - topic_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2145,8 +2267,8 @@ public Builder setTopic(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTopic() { - topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2171,8 +2293,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - topic_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2188,9 +2310,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * *
          * If push delivery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2198,16 +2318,14 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * @return Whether the pushConfig field is set. */ public boolean hasPushConfig() { - return pushConfigBuilder_ != null || pushConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * * *
          * If push delivery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2228,9 +2346,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * *
          * If push delivery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2241,11 +2357,11 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { throw new NullPointerException(); } pushConfig_ = value; - onChanged(); } else { pushConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2253,9 +2369,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { * *
          * If push delivery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2263,11 +2377,11 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) { if (pushConfigBuilder_ == null) { pushConfig_ = builderForValue.build(); - onChanged(); } else { pushConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2275,28 +2389,25 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV * *
          * If push delivery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; */ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { - if (pushConfig_ != null) { - pushConfig_ = - com.google.pubsub.v1.PushConfig.newBuilder(pushConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && pushConfig_ != null + && pushConfig_ != com.google.pubsub.v1.PushConfig.getDefaultInstance()) { + getPushConfigBuilder().mergeFrom(value); } else { pushConfig_ = value; } - onChanged(); } else { pushConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2304,22 +2415,19 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { * *
          * If push delivery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; */ public Builder clearPushConfig() { - if (pushConfigBuilder_ == null) { - pushConfig_ = null; - onChanged(); - } else { - pushConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + pushConfig_ = null; + if (pushConfigBuilder_ != null) { + pushConfigBuilder_.dispose(); pushConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -2327,15 +2435,13 @@ public Builder clearPushConfig() { * *
          * If push delivery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; */ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getPushConfigFieldBuilder().getBuilder(); } @@ -2344,9 +2450,7 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { * *
          * If push delivery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2365,9 +2469,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * *
          * If push delivery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -2400,9 +2502,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * *
          * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; @@ -2410,16 +2510,14 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * @return Whether the bigqueryConfig field is set. */ public boolean hasBigqueryConfig() { - return bigqueryConfigBuilder_ != null || bigqueryConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * * *
          * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; @@ -2440,9 +2538,7 @@ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { * *
          * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; @@ -2453,11 +2549,11 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { throw new NullPointerException(); } bigqueryConfig_ = value; - onChanged(); } else { bigqueryConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2465,9 +2561,7 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { * *
          * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; @@ -2475,11 +2569,11 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig.Builder builderForValue) { if (bigqueryConfigBuilder_ == null) { bigqueryConfig_ = builderForValue.build(); - onChanged(); } else { bigqueryConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2487,28 +2581,25 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig.Builder bui * *
          * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; */ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { if (bigqueryConfigBuilder_ == null) { - if (bigqueryConfig_ != null) { - bigqueryConfig_ = - com.google.pubsub.v1.BigQueryConfig.newBuilder(bigqueryConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && bigqueryConfig_ != null + && bigqueryConfig_ != com.google.pubsub.v1.BigQueryConfig.getDefaultInstance()) { + getBigqueryConfigBuilder().mergeFrom(value); } else { bigqueryConfig_ = value; } - onChanged(); } else { bigqueryConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2516,22 +2607,19 @@ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { * *
          * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; */ public Builder clearBigqueryConfig() { - if (bigqueryConfigBuilder_ == null) { - bigqueryConfig_ = null; - onChanged(); - } else { - bigqueryConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + bigqueryConfig_ = null; + if (bigqueryConfigBuilder_ != null) { + bigqueryConfigBuilder_.dispose(); bigqueryConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -2539,15 +2627,13 @@ public Builder clearBigqueryConfig() { * *
          * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; */ public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getBigqueryConfigFieldBuilder().getBuilder(); } @@ -2556,9 +2642,7 @@ public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { * *
          * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; @@ -2577,9 +2661,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * *
          * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -     * but not both. If both are empty, then the subscriber will pull and ack
    -     * messages using API methods.
    +     * used to configure it.
          * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; @@ -2601,6 +2683,200 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() return bigqueryConfigBuilder_; } + private com.google.pubsub.v1.CloudStorageConfig cloudStorageConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig, + com.google.pubsub.v1.CloudStorageConfig.Builder, + com.google.pubsub.v1.CloudStorageConfigOrBuilder> + cloudStorageConfigBuilder_; + /** + * + * + *
    +     * If delivery to Google Cloud Storage is used with this subscription, this
    +     * field is used to configure it.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * @return Whether the cloudStorageConfig field is set. + */ + public boolean hasCloudStorageConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
    +     * If delivery to Google Cloud Storage is used with this subscription, this
    +     * field is used to configure it.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * @return The cloudStorageConfig. + */ + public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { + if (cloudStorageConfigBuilder_ == null) { + return cloudStorageConfig_ == null + ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() + : cloudStorageConfig_; + } else { + return cloudStorageConfigBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * If delivery to Google Cloud Storage is used with this subscription, this
    +     * field is used to configure it.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + */ + public Builder setCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig value) { + if (cloudStorageConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cloudStorageConfig_ = value; + } else { + cloudStorageConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * If delivery to Google Cloud Storage is used with this subscription, this
    +     * field is used to configure it.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + */ + public Builder setCloudStorageConfig( + com.google.pubsub.v1.CloudStorageConfig.Builder builderForValue) { + if (cloudStorageConfigBuilder_ == null) { + cloudStorageConfig_ = builderForValue.build(); + } else { + cloudStorageConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * If delivery to Google Cloud Storage is used with this subscription, this
    +     * field is used to configure it.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + */ + public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig value) { + if (cloudStorageConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && cloudStorageConfig_ != null + && cloudStorageConfig_ + != com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance()) { + getCloudStorageConfigBuilder().mergeFrom(value); + } else { + cloudStorageConfig_ = value; + } + } else { + cloudStorageConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +     * If delivery to Google Cloud Storage is used with this subscription, this
    +     * field is used to configure it.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + */ + public Builder clearCloudStorageConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + cloudStorageConfig_ = null; + if (cloudStorageConfigBuilder_ != null) { + cloudStorageConfigBuilder_.dispose(); + cloudStorageConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * If delivery to Google Cloud Storage is used with this subscription, this
    +     * field is used to configure it.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + */ + public com.google.pubsub.v1.CloudStorageConfig.Builder getCloudStorageConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCloudStorageConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * If delivery to Google Cloud Storage is used with this subscription, this
    +     * field is used to configure it.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + */ + public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder() { + if (cloudStorageConfigBuilder_ != null) { + return cloudStorageConfigBuilder_.getMessageOrBuilder(); + } else { + return cloudStorageConfig_ == null + ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() + : cloudStorageConfig_; + } + } + /** + * + * + *
    +     * If delivery to Google Cloud Storage is used with this subscription, this
    +     * field is used to configure it.
    +     * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig, + com.google.pubsub.v1.CloudStorageConfig.Builder, + com.google.pubsub.v1.CloudStorageConfigOrBuilder> + getCloudStorageConfigFieldBuilder() { + if (cloudStorageConfigBuilder_ == null) { + cloudStorageConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.CloudStorageConfig, + com.google.pubsub.v1.CloudStorageConfig.Builder, + com.google.pubsub.v1.CloudStorageConfigOrBuilder>( + getCloudStorageConfig(), getParentForChildren(), isClean()); + cloudStorageConfig_ = null; + } + return cloudStorageConfigBuilder_; + } + private int ackDeadlineSeconds_; /** * @@ -2609,8 +2885,9 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * 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 <i>outstanding</i>. During that time period, the + * 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 @@ -2619,8 +2896,10 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * 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. *
    @@ -2640,8 +2919,9 @@ public int getAckDeadlineSeconds() { * 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 <i>outstanding</i>. During that time period, the + * 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 @@ -2650,8 +2930,10 @@ public int getAckDeadlineSeconds() { * 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. *
    @@ -2664,6 +2946,7 @@ public int getAckDeadlineSeconds() { public Builder setAckDeadlineSeconds(int value) { ackDeadlineSeconds_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2674,8 +2957,9 @@ public Builder setAckDeadlineSeconds(int value) { * 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 <i>outstanding</i>. During that time period, the + * 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 @@ -2684,8 +2968,10 @@ public Builder setAckDeadlineSeconds(int value) { * 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. *
    @@ -2695,7 +2981,7 @@ public Builder setAckDeadlineSeconds(int value) { * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { - + bitField0_ = (bitField0_ & ~0x00000020); ackDeadlineSeconds_ = 0; onChanged(); return this; @@ -2742,6 +3028,7 @@ public boolean getRetainAckedMessages() { public Builder setRetainAckedMessages(boolean value) { retainAckedMessages_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2762,7 +3049,7 @@ public Builder setRetainAckedMessages(boolean value) { * @return This builder for chaining. */ public Builder clearRetainAckedMessages() { - + bitField0_ = (bitField0_ & ~0x00000040); retainAckedMessages_ = false; onChanged(); return this; @@ -2791,7 +3078,7 @@ public Builder clearRetainAckedMessages() { * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { - return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2838,11 +3125,11 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { throw new NullPointerException(); } messageRetentionDuration_ = value; - onChanged(); } else { messageRetentionDurationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2863,11 +3150,11 @@ public Builder setMessageRetentionDuration( com.google.protobuf.Duration.Builder builderForValue) { if (messageRetentionDurationBuilder_ == null) { messageRetentionDuration_ = builderForValue.build(); - onChanged(); } else { messageRetentionDurationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2886,19 +3173,18 @@ public Builder setMessageRetentionDuration( */ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { - if (messageRetentionDuration_ != null) { - messageRetentionDuration_ = - com.google.protobuf.Duration.newBuilder(messageRetentionDuration_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && messageRetentionDuration_ != null + && messageRetentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMessageRetentionDurationBuilder().mergeFrom(value); } else { messageRetentionDuration_ = value; } - onChanged(); } else { messageRetentionDurationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2916,14 +3202,13 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * .google.protobuf.Duration message_retention_duration = 8; */ public Builder clearMessageRetentionDuration() { - if (messageRetentionDurationBuilder_ == null) { - messageRetentionDuration_ = null; - onChanged(); - } else { - messageRetentionDuration_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + messageRetentionDuration_ = null; + if (messageRetentionDurationBuilder_ != null) { + messageRetentionDurationBuilder_.dispose(); messageRetentionDurationBuilder_ = null; } - + onChanged(); return this; } /** @@ -2941,7 +3226,7 @@ public Builder clearMessageRetentionDuration() { * .google.protobuf.Duration message_retention_duration = 8; */ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getMessageRetentionDurationFieldBuilder().getBuilder(); } @@ -3010,14 +3295,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000100; + onChanged(); return labels_; } @@ -3028,8 +3313,8 @@ public int getLabelsCount() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 9; @@ -3051,8 +3336,8 @@ public java.util.Map getLabels() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 9; @@ -3065,15 +3350,17 @@ public java.util.Map getLabelsMap() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 9; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3084,8 +3371,8 @@ public java.lang.String getLabelsOrDefault( * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 9; @@ -3103,6 +3390,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -3110,8 +3398,8 @@ public Builder clearLabels() { * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 9; @@ -3126,14 +3414,15 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 9; @@ -3145,22 +3434,23 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; return this; } /** * * *
    -     * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -     * managing labels</a>.
    +     * See [Creating and managing
    +     * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * * map<string, string> labels = 9; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; return this; } @@ -3201,6 +3491,7 @@ public boolean getEnableMessageOrdering() { public Builder setEnableMessageOrdering(boolean value) { enableMessageOrdering_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3219,7 +3510,7 @@ public Builder setEnableMessageOrdering(boolean value) { * @return This builder for chaining. */ public Builder clearEnableMessageOrdering() { - + bitField0_ = (bitField0_ & ~0x00000200); enableMessageOrdering_ = false; onChanged(); return this; @@ -3240,7 +3531,8 @@ public Builder clearEnableMessageOrdering() { * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -3248,7 +3540,7 @@ public Builder clearEnableMessageOrdering() { * @return Whether the expirationPolicy field is set. */ public boolean hasExpirationPolicy() { - return expirationPolicyBuilder_ != null || expirationPolicy_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3259,7 +3551,8 @@ public boolean hasExpirationPolicy() { * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -3284,7 +3577,8 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -3295,11 +3589,11 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) throw new NullPointerException(); } expirationPolicy_ = value; - onChanged(); } else { expirationPolicyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3311,7 +3605,8 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -3320,11 +3615,11 @@ public Builder setExpirationPolicy( com.google.pubsub.v1.ExpirationPolicy.Builder builderForValue) { if (expirationPolicyBuilder_ == null) { expirationPolicy_ = builderForValue.build(); - onChanged(); } else { expirationPolicyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3336,26 +3631,26 @@ public Builder setExpirationPolicy( * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; */ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) { if (expirationPolicyBuilder_ == null) { - if (expirationPolicy_ != null) { - expirationPolicy_ = - com.google.pubsub.v1.ExpirationPolicy.newBuilder(expirationPolicy_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && expirationPolicy_ != null + && expirationPolicy_ != com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance()) { + getExpirationPolicyBuilder().mergeFrom(value); } else { expirationPolicy_ = value; } - onChanged(); } else { expirationPolicyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -3367,20 +3662,20 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; */ public Builder clearExpirationPolicy() { - if (expirationPolicyBuilder_ == null) { - expirationPolicy_ = null; - onChanged(); - } else { - expirationPolicy_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + expirationPolicy_ = null; + if (expirationPolicyBuilder_ != null) { + expirationPolicyBuilder_.dispose(); expirationPolicyBuilder_ = null; } - + onChanged(); return this; } /** @@ -3392,13 +3687,14 @@ public Builder clearExpirationPolicy() { * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; */ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getExpirationPolicyFieldBuilder().getBuilder(); } @@ -3411,7 +3707,8 @@ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder( * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -3434,7 +3731,8 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -3529,8 +3827,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3550,8 +3848,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -3576,8 +3874,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3595,6 +3893,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * 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 @@ -3606,7 +3905,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * @return Whether the deadLetterPolicy field is set. */ public boolean hasDeadLetterPolicy() { - return deadLetterPolicyBuilder_ != null || deadLetterPolicy_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -3615,6 +3914,7 @@ public boolean hasDeadLetterPolicy() { * 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 @@ -3641,6 +3941,7 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { * 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 @@ -3655,11 +3956,11 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) throw new NullPointerException(); } deadLetterPolicy_ = value; - onChanged(); } else { deadLetterPolicyBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3669,6 +3970,7 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) * 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 @@ -3681,11 +3983,11 @@ public Builder setDeadLetterPolicy( com.google.pubsub.v1.DeadLetterPolicy.Builder builderForValue) { if (deadLetterPolicyBuilder_ == null) { deadLetterPolicy_ = builderForValue.build(); - onChanged(); } else { deadLetterPolicyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3695,6 +3997,7 @@ public Builder setDeadLetterPolicy( * 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 @@ -3705,19 +4008,18 @@ public Builder setDeadLetterPolicy( */ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) { if (deadLetterPolicyBuilder_ == null) { - if (deadLetterPolicy_ != null) { - deadLetterPolicy_ = - com.google.pubsub.v1.DeadLetterPolicy.newBuilder(deadLetterPolicy_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && deadLetterPolicy_ != null + && deadLetterPolicy_ != com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance()) { + getDeadLetterPolicyBuilder().mergeFrom(value); } else { deadLetterPolicy_ = value; } - onChanged(); } else { deadLetterPolicyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -3727,6 +4029,7 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value * 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 @@ -3736,14 +4039,13 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; */ public Builder clearDeadLetterPolicy() { - if (deadLetterPolicyBuilder_ == null) { - deadLetterPolicy_ = null; - onChanged(); - } else { - deadLetterPolicy_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + deadLetterPolicy_ = null; + if (deadLetterPolicyBuilder_ != null) { + deadLetterPolicyBuilder_.dispose(); deadLetterPolicyBuilder_ = null; } - + onChanged(); return this; } /** @@ -3753,6 +4055,7 @@ public Builder clearDeadLetterPolicy() { * 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 @@ -3762,7 +4065,7 @@ public Builder clearDeadLetterPolicy() { * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; */ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getDeadLetterPolicyFieldBuilder().getBuilder(); } @@ -3773,6 +4076,7 @@ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder( * 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 @@ -3797,6 +4101,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * 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 @@ -3834,6 +4139,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild *
          * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
    +     *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -3845,7 +4151,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
          * @return Whether the retryPolicy field is set.
          */
         public boolean hasRetryPolicy() {
    -      return retryPolicyBuilder_ != null || retryPolicy_ != null;
    +      return ((bitField0_ & 0x00002000) != 0);
         }
         /**
          *
    @@ -3853,6 +4159,7 @@ public boolean hasRetryPolicy() {
          * 
          * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
    +     *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -3878,6 +4185,7 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() {
          * 
          * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
    +     *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -3892,11 +4200,11 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
               throw new NullPointerException();
             }
             retryPolicy_ = value;
    -        onChanged();
           } else {
             retryPolicyBuilder_.setMessage(value);
           }
    -
    +      bitField0_ |= 0x00002000;
    +      onChanged();
           return this;
         }
         /**
    @@ -3905,6 +4213,7 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
          * 
          * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
    +     *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -3916,11 +4225,11 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
         public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderForValue) {
           if (retryPolicyBuilder_ == null) {
             retryPolicy_ = builderForValue.build();
    -        onChanged();
           } else {
             retryPolicyBuilder_.setMessage(builderForValue.build());
           }
    -
    +      bitField0_ |= 0x00002000;
    +      onChanged();
           return this;
         }
         /**
    @@ -3929,6 +4238,7 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo
          * 
          * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
    +     *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -3939,19 +4249,18 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo
          */
         public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
           if (retryPolicyBuilder_ == null) {
    -        if (retryPolicy_ != null) {
    -          retryPolicy_ =
    -              com.google.pubsub.v1.RetryPolicy.newBuilder(retryPolicy_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (((bitField0_ & 0x00002000) != 0)
    +            && retryPolicy_ != null
    +            && retryPolicy_ != com.google.pubsub.v1.RetryPolicy.getDefaultInstance()) {
    +          getRetryPolicyBuilder().mergeFrom(value);
             } else {
               retryPolicy_ = value;
             }
    -        onChanged();
           } else {
             retryPolicyBuilder_.mergeFrom(value);
           }
    -
    +      bitField0_ |= 0x00002000;
    +      onChanged();
           return this;
         }
         /**
    @@ -3960,6 +4269,7 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
          * 
          * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
    +     *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -3969,14 +4279,13 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
          * .google.pubsub.v1.RetryPolicy retry_policy = 14;
          */
         public Builder clearRetryPolicy() {
    -      if (retryPolicyBuilder_ == null) {
    -        retryPolicy_ = null;
    -        onChanged();
    -      } else {
    -        retryPolicy_ = null;
    +      bitField0_ = (bitField0_ & ~0x00002000);
    +      retryPolicy_ = null;
    +      if (retryPolicyBuilder_ != null) {
    +        retryPolicyBuilder_.dispose();
             retryPolicyBuilder_ = null;
           }
    -
    +      onChanged();
           return this;
         }
         /**
    @@ -3985,6 +4294,7 @@ public Builder clearRetryPolicy() {
          * 
          * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
    +     *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -3994,7 +4304,7 @@ public Builder clearRetryPolicy() {
          * .google.pubsub.v1.RetryPolicy retry_policy = 14;
          */
         public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
    -
    +      bitField0_ |= 0x00002000;
           onChanged();
           return getRetryPolicyFieldBuilder().getBuilder();
         }
    @@ -4004,6 +4314,7 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
          * 
          * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
    +     *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -4027,6 +4338,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
          * 
          * A policy that specifies how Pub/Sub retries message delivery for this
          * subscription.
    +     *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
          * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -4091,6 +4403,7 @@ public boolean getDetached() {
         public Builder setDetached(boolean value) {
     
           detached_ = value;
    +      bitField0_ |= 0x00004000;
           onChanged();
           return this;
         }
    @@ -4110,7 +4423,7 @@ public Builder setDetached(boolean value) {
          * @return This builder for chaining.
          */
         public Builder clearDetached() {
    -
    +      bitField0_ = (bitField0_ & ~0x00004000);
           detached_ = false;
           onChanged();
           return this;
    @@ -4123,9 +4436,11 @@ public Builder clearDetached() {
          * 
          * If true, Pub/Sub provides the following guarantees for the delivery of
          * a message with a given value of `message_id` on this subscription:
    +     *
          * * The message sent to a subscriber is guaranteed not to be resent
          * before the message's acknowledgement deadline expires.
          * * An acknowledged message will not be resent to a subscriber.
    +     *
          * Note that subscribers may still receive multiple copies of a message
          * when `enable_exactly_once_delivery` is true if the message was published
          * multiple times by a publisher client. These copies are  considered distinct
    @@ -4146,9 +4461,11 @@ public boolean getEnableExactlyOnceDelivery() {
          * 
          * If true, Pub/Sub provides the following guarantees for the delivery of
          * a message with a given value of `message_id` on this subscription:
    +     *
          * * The message sent to a subscriber is guaranteed not to be resent
          * before the message's acknowledgement deadline expires.
          * * An acknowledged message will not be resent to a subscriber.
    +     *
          * Note that subscribers may still receive multiple copies of a message
          * when `enable_exactly_once_delivery` is true if the message was published
          * multiple times by a publisher client. These copies are  considered distinct
    @@ -4163,6 +4480,7 @@ public boolean getEnableExactlyOnceDelivery() {
         public Builder setEnableExactlyOnceDelivery(boolean value) {
     
           enableExactlyOnceDelivery_ = value;
    +      bitField0_ |= 0x00008000;
           onChanged();
           return this;
         }
    @@ -4172,9 +4490,11 @@ public Builder setEnableExactlyOnceDelivery(boolean value) {
          * 
          * If true, Pub/Sub provides the following guarantees for the delivery of
          * a message with a given value of `message_id` on this subscription:
    +     *
          * * The message sent to a subscriber is guaranteed not to be resent
          * before the message's acknowledgement deadline expires.
          * * An acknowledged message will not be resent to a subscriber.
    +     *
          * Note that subscribers may still receive multiple copies of a message
          * when `enable_exactly_once_delivery` is true if the message was published
          * multiple times by a publisher client. These copies are  considered distinct
    @@ -4186,7 +4506,7 @@ public Builder setEnableExactlyOnceDelivery(boolean value) {
          * @return This builder for chaining.
          */
         public Builder clearEnableExactlyOnceDelivery() {
    -
    +      bitField0_ = (bitField0_ & ~0x00008000);
           enableExactlyOnceDelivery_ = false;
           onChanged();
           return this;
    @@ -4217,8 +4537,7 @@ public Builder clearEnableExactlyOnceDelivery() {
          * @return Whether the topicMessageRetentionDuration field is set.
          */
         public boolean hasTopicMessageRetentionDuration() {
    -      return topicMessageRetentionDurationBuilder_ != null
    -          || topicMessageRetentionDuration_ != null;
    +      return ((bitField0_ & 0x00010000) != 0);
         }
         /**
          *
    @@ -4269,11 +4588,11 @@ public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration val
               throw new NullPointerException();
             }
             topicMessageRetentionDuration_ = value;
    -        onChanged();
           } else {
             topicMessageRetentionDurationBuilder_.setMessage(value);
           }
    -
    +      bitField0_ |= 0x00010000;
    +      onChanged();
           return this;
         }
         /**
    @@ -4296,11 +4615,11 @@ public Builder setTopicMessageRetentionDuration(
             com.google.protobuf.Duration.Builder builderForValue) {
           if (topicMessageRetentionDurationBuilder_ == null) {
             topicMessageRetentionDuration_ = builderForValue.build();
    -        onChanged();
           } else {
             topicMessageRetentionDurationBuilder_.setMessage(builderForValue.build());
           }
    -
    +      bitField0_ |= 0x00010000;
    +      onChanged();
           return this;
         }
         /**
    @@ -4321,19 +4640,19 @@ public Builder setTopicMessageRetentionDuration(
          */
         public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration value) {
           if (topicMessageRetentionDurationBuilder_ == null) {
    -        if (topicMessageRetentionDuration_ != null) {
    -          topicMessageRetentionDuration_ =
    -              com.google.protobuf.Duration.newBuilder(topicMessageRetentionDuration_)
    -                  .mergeFrom(value)
    -                  .buildPartial();
    +        if (((bitField0_ & 0x00010000) != 0)
    +            && topicMessageRetentionDuration_ != null
    +            && topicMessageRetentionDuration_
    +                != com.google.protobuf.Duration.getDefaultInstance()) {
    +          getTopicMessageRetentionDurationBuilder().mergeFrom(value);
             } else {
               topicMessageRetentionDuration_ = value;
             }
    -        onChanged();
           } else {
             topicMessageRetentionDurationBuilder_.mergeFrom(value);
           }
    -
    +      bitField0_ |= 0x00010000;
    +      onChanged();
           return this;
         }
         /**
    @@ -4353,14 +4672,13 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v
          * 
          */
         public Builder clearTopicMessageRetentionDuration() {
    -      if (topicMessageRetentionDurationBuilder_ == null) {
    -        topicMessageRetentionDuration_ = null;
    -        onChanged();
    -      } else {
    -        topicMessageRetentionDuration_ = null;
    +      bitField0_ = (bitField0_ & ~0x00010000);
    +      topicMessageRetentionDuration_ = null;
    +      if (topicMessageRetentionDurationBuilder_ != null) {
    +        topicMessageRetentionDurationBuilder_.dispose();
             topicMessageRetentionDurationBuilder_ = null;
           }
    -
    +      onChanged();
           return this;
         }
         /**
    @@ -4380,7 +4698,7 @@ public Builder clearTopicMessageRetentionDuration() {
          * 
          */
         public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuilder() {
    -
    +      bitField0_ |= 0x00010000;
           onChanged();
           return getTopicMessageRetentionDurationFieldBuilder().getBuilder();
         }
    @@ -4477,8 +4795,8 @@ public int getStateValue() {
          * @return This builder for chaining.
          */
         public Builder setStateValue(int value) {
    -
           state_ = value;
    +      bitField0_ |= 0x00020000;
           onChanged();
           return this;
         }
    @@ -4498,9 +4816,8 @@ public Builder setStateValue(int value) {
          */
         @java.lang.Override
         public com.google.pubsub.v1.Subscription.State getState() {
    -      @SuppressWarnings("deprecation")
           com.google.pubsub.v1.Subscription.State result =
    -          com.google.pubsub.v1.Subscription.State.valueOf(state_);
    +          com.google.pubsub.v1.Subscription.State.forNumber(state_);
           return result == null ? com.google.pubsub.v1.Subscription.State.UNRECOGNIZED : result;
         }
         /**
    @@ -4522,7 +4839,7 @@ public Builder setState(com.google.pubsub.v1.Subscription.State value) {
           if (value == null) {
             throw new NullPointerException();
           }
    -
    +      bitField0_ |= 0x00020000;
           state_ = value.getNumber();
           onChanged();
           return this;
    @@ -4542,7 +4859,7 @@ public Builder setState(com.google.pubsub.v1.Subscription.State value) {
          * @return This builder for chaining.
          */
         public Builder clearState() {
    -
    +      bitField0_ = (bitField0_ & ~0x00020000);
           state_ = 0;
           onChanged();
           return this;
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java
    index 6433bd9f9aa4..8ed44f614308 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2022 Google LLC
    + * Copyright 2023 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java
    index 63e20a119635..b2cd3d36272e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java
    @@ -96,9 +96,7 @@ public interface SubscriptionOrBuilder
        *
        * 
        * If push delivery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -111,9 +109,7 @@ public interface SubscriptionOrBuilder * *
        * If push delivery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -126,9 +122,7 @@ public interface SubscriptionOrBuilder * *
        * If push delivery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.PushConfig push_config = 4; @@ -140,9 +134,7 @@ public interface SubscriptionOrBuilder * *
        * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; @@ -155,9 +147,7 @@ public interface SubscriptionOrBuilder * *
        * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; @@ -170,15 +160,51 @@ public interface SubscriptionOrBuilder * *
        * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it. Either `pushConfig` or `bigQueryConfig` can be set,
    -   * but not both. If both are empty, then the subscriber will pull and ack
    -   * messages using API methods.
    +   * used to configure it.
        * 
    * * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; */ com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder(); + /** + * + * + *
    +   * If delivery to Google Cloud Storage is used with this subscription, this
    +   * field is used to configure it.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * @return Whether the cloudStorageConfig field is set. + */ + boolean hasCloudStorageConfig(); + /** + * + * + *
    +   * If delivery to Google Cloud Storage is used with this subscription, this
    +   * field is used to configure it.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * @return The cloudStorageConfig. + */ + com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig(); + /** + * + * + *
    +   * If delivery to Google Cloud Storage is used with this subscription, this
    +   * field is used to configure it.
    +   * 
    + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + */ + com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder(); + /** * * @@ -186,8 +212,9 @@ public interface SubscriptionOrBuilder * 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 <i>outstanding</i>. During that time period, the + * 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 @@ -196,8 +223,10 @@ public interface SubscriptionOrBuilder * 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. *
    @@ -280,8 +309,8 @@ public interface SubscriptionOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 9; @@ -291,8 +320,8 @@ public interface SubscriptionOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 9; @@ -305,8 +334,8 @@ public interface SubscriptionOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 9; @@ -316,13 +345,12 @@ public interface SubscriptionOrBuilder * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 9; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, @@ -332,8 +360,8 @@ java.lang.String getLabelsOrDefault( * * *
    -   * See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
    -   * managing labels</a>.
    +   * See [Creating and managing
    +   * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * * map<string, string> labels = 9; @@ -365,7 +393,8 @@ java.lang.String getLabelsOrDefault( * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -382,7 +411,8 @@ java.lang.String getLabelsOrDefault( * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -399,7 +429,8 @@ java.lang.String getLabelsOrDefault( * 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. + * value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + * but `expiration_policy.ttl` is not set, the subscription never expires. *
    * * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; @@ -446,6 +477,7 @@ java.lang.String getLabelsOrDefault( * 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 @@ -464,6 +496,7 @@ java.lang.String getLabelsOrDefault( * 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 @@ -482,6 +515,7 @@ java.lang.String getLabelsOrDefault( * 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 @@ -498,6 +532,7 @@ java.lang.String getLabelsOrDefault( *
        * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
    +   *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -515,6 +550,7 @@ java.lang.String getLabelsOrDefault(
        * 
        * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
    +   *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -532,6 +568,7 @@ java.lang.String getLabelsOrDefault(
        * 
        * A policy that specifies how Pub/Sub retries message delivery for this
        * subscription.
    +   *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
        * RetryPolicy will be triggered on NACKs or acknowledgement deadline
    @@ -565,9 +602,11 @@ java.lang.String getLabelsOrDefault(
        * 
        * If true, Pub/Sub provides the following guarantees for the delivery of
        * a message with a given value of `message_id` on this subscription:
    +   *
        * * The message sent to a subscriber is guaranteed not to be resent
        * before the message's acknowledgement deadline expires.
        * * An acknowledged message will not be resent to a subscriber.
    +   *
        * Note that subscribers may still receive multiple copies of a message
        * when `enable_exactly_once_delivery` is true if the message was published
        * multiple times by a publisher client. These copies are  considered distinct
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    index 1a4f97258678..2d500773b224 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java
    @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
         return new Topic();
       }
     
    -  @java.lang.Override
    -  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    -    return this.unknownFields;
    -  }
    -
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
         return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor;
       }
    @@ -78,7 +73,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
       }
     
       public static final int NAME_FIELD_NUMBER = 1;
    -  private volatile java.lang.Object name_;
    +
    +  @SuppressWarnings("serial")
    +  private volatile java.lang.Object name_ = "";
       /**
        *
        *
    @@ -149,6 +146,7 @@ private static final class LabelsDefaultEntryHolder {
                 "");
       }
     
    +  @SuppressWarnings("serial")
       private com.google.protobuf.MapField labels_;
     
       private com.google.protobuf.MapField internalGetLabels() {
    @@ -209,7 +207,10 @@ public java.util.Map getLabelsMap() {
        * map<string, string> labels = 2;
        */
       @java.lang.Override
    -  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
    +  public /* nullable */ java.lang.String getLabelsOrDefault(
    +      java.lang.String key,
    +      /* nullable */
    +      java.lang.String defaultValue) {
         if (key == null) {
           throw new NullPointerException("map key");
         }
    @@ -289,17 +290,22 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() {
        */
       @java.lang.Override
       public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder() {
    -    return getMessageStoragePolicy();
    +    return messageStoragePolicy_ == null
    +        ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance()
    +        : messageStoragePolicy_;
       }
     
       public static final int KMS_KEY_NAME_FIELD_NUMBER = 5;
    -  private volatile java.lang.Object kmsKeyName_;
    +
    +  @SuppressWarnings("serial")
    +  private volatile java.lang.Object kmsKeyName_ = "";
       /**
        *
        *
        * 
        * 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/*`.
        * 
    * @@ -325,6 +331,7 @@ public java.lang.String getKmsKeyName() { *
        * 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/*`.
        * 
    * @@ -390,11 +397,13 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { */ @java.lang.Override public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() { - return getSchemaSettings(); + return schemaSettings_ == null + ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() + : schemaSettings_; } public static final int SATISFIES_PZS_FIELD_NUMBER = 7; - private boolean satisfiesPzs_; + private boolean satisfiesPzs_ = false; /** * * @@ -425,7 +434,7 @@ public boolean getSatisfiesPzs() { * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; @@ -447,7 +456,7 @@ public boolean hasMessageRetentionDuration() { * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; @@ -471,14 +480,16 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { - return getMessageRetentionDuration(); + return messageRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : messageRetentionDuration_; } private byte memoizedIsInitialized = -1; @@ -774,29 +785,24 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - internalGetMutableLabels().clear(); - if (messageStoragePolicyBuilder_ == null) { - messageStoragePolicy_ = null; - } else { - messageStoragePolicy_ = null; + messageStoragePolicy_ = null; + if (messageStoragePolicyBuilder_ != null) { + messageStoragePolicyBuilder_.dispose(); messageStoragePolicyBuilder_ = null; } kmsKeyName_ = ""; - - if (schemaSettingsBuilder_ == null) { - schemaSettings_ = null; - } else { - schemaSettings_ = null; + schemaSettings_ = null; + if (schemaSettingsBuilder_ != null) { + schemaSettingsBuilder_.dispose(); schemaSettingsBuilder_ = null; } satisfiesPzs_ = false; - - if (messageRetentionDurationBuilder_ == null) { - messageRetentionDuration_ = null; - } else { - messageRetentionDuration_ = null; + messageRetentionDuration_ = null; + if (messageRetentionDurationBuilder_ != null) { + messageRetentionDurationBuilder_.dispose(); messageRetentionDurationBuilder_ = null; } return this; @@ -824,29 +830,44 @@ public com.google.pubsub.v1.Topic build() { @java.lang.Override public com.google.pubsub.v1.Topic buildPartial() { com.google.pubsub.v1.Topic result = new com.google.pubsub.v1.Topic(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.Topic result) { int from_bitField0_ = bitField0_; - result.name_ = name_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (messageStoragePolicyBuilder_ == null) { - result.messageStoragePolicy_ = messageStoragePolicy_; - } else { - result.messageStoragePolicy_ = messageStoragePolicyBuilder_.build(); + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.kmsKeyName_ = kmsKeyName_; - if (schemaSettingsBuilder_ == null) { - result.schemaSettings_ = schemaSettings_; - } else { - result.schemaSettings_ = schemaSettingsBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); } - result.satisfiesPzs_ = satisfiesPzs_; - if (messageRetentionDurationBuilder_ == null) { - result.messageRetentionDuration_ = messageRetentionDuration_; - } else { - result.messageRetentionDuration_ = messageRetentionDurationBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.messageStoragePolicy_ = + messageStoragePolicyBuilder_ == null + ? messageStoragePolicy_ + : messageStoragePolicyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.schemaSettings_ = + schemaSettingsBuilder_ == null ? schemaSettings_ : schemaSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.messageRetentionDuration_ = + messageRetentionDurationBuilder_ == null + ? messageRetentionDuration_ + : messageRetentionDurationBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -896,14 +917,17 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other == com.google.pubsub.v1.Topic.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000002; if (other.hasMessageStoragePolicy()) { mergeMessageStoragePolicy(other.getMessageStoragePolicy()); } if (!other.getKmsKeyName().isEmpty()) { kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasSchemaSettings()) { @@ -944,7 +968,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -956,38 +980,39 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getMessageStoragePolicyFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 42: { kmsKeyName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 case 50: { input.readMessage(getSchemaSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 50 case 56: { satisfiesPzs_ = input.readBool(); - + bitField0_ |= 0x00000020; break; } // case 56 case 66: { input.readMessage( getMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 default: @@ -1085,8 +1110,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1107,8 +1132,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1134,8 +1159,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1151,14 +1176,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return labels_; } @@ -1213,8 +1238,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1244,6 +1271,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1267,6 +1295,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000002; return internalGetMutableLabels().getMutableMap(); } /** @@ -1286,8 +1315,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -1302,6 +1331,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } @@ -1325,7 +1355,7 @@ public Builder putAllLabels(java.util.Map va * @return Whether the messageStoragePolicy field is set. */ public boolean hasMessageStoragePolicy() { - return messageStoragePolicyBuilder_ != null || messageStoragePolicy_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1366,11 +1396,11 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy throw new NullPointerException(); } messageStoragePolicy_ = value; - onChanged(); } else { messageStoragePolicyBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1388,11 +1418,11 @@ public Builder setMessageStoragePolicy( com.google.pubsub.v1.MessageStoragePolicy.Builder builderForValue) { if (messageStoragePolicyBuilder_ == null) { messageStoragePolicy_ = builderForValue.build(); - onChanged(); } else { messageStoragePolicyBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1408,19 +1438,19 @@ public Builder setMessageStoragePolicy( */ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy value) { if (messageStoragePolicyBuilder_ == null) { - if (messageStoragePolicy_ != null) { - messageStoragePolicy_ = - com.google.pubsub.v1.MessageStoragePolicy.newBuilder(messageStoragePolicy_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && messageStoragePolicy_ != null + && messageStoragePolicy_ + != com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance()) { + getMessageStoragePolicyBuilder().mergeFrom(value); } else { messageStoragePolicy_ = value; } - onChanged(); } else { messageStoragePolicyBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1435,14 +1465,13 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; */ public Builder clearMessageStoragePolicy() { - if (messageStoragePolicyBuilder_ == null) { - messageStoragePolicy_ = null; - onChanged(); - } else { - messageStoragePolicy_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + messageStoragePolicy_ = null; + if (messageStoragePolicyBuilder_ != null) { + messageStoragePolicyBuilder_.dispose(); messageStoragePolicyBuilder_ = null; } - + onChanged(); return this; } /** @@ -1457,7 +1486,7 @@ public Builder clearMessageStoragePolicy() { * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; */ public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicyBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getMessageStoragePolicyFieldBuilder().getBuilder(); } @@ -1516,6 +1545,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic *
          * 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/*`.
          * 
    * @@ -1540,6 +1570,7 @@ public java.lang.String getKmsKeyName() { *
          * 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/*`.
          * 
    * @@ -1564,6 +1595,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { *
          * 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/*`.
          * 
    * @@ -1576,8 +1608,8 @@ public Builder setKmsKeyName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - kmsKeyName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1587,6 +1619,7 @@ public Builder setKmsKeyName(java.lang.String value) { *
          * 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/*`.
          * 
    * @@ -1595,8 +1628,8 @@ public Builder setKmsKeyName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearKmsKeyName() { - kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1606,6 +1639,7 @@ public Builder clearKmsKeyName() { *
          * 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/*`.
          * 
    * @@ -1619,8 +1653,8 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kmsKeyName_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1643,7 +1677,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { * @return Whether the schemaSettings field is set. */ public boolean hasSchemaSettings() { - return schemaSettingsBuilder_ != null || schemaSettings_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1680,11 +1714,11 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { throw new NullPointerException(); } schemaSettings_ = value; - onChanged(); } else { schemaSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1699,11 +1733,11 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder builderForValue) { if (schemaSettingsBuilder_ == null) { schemaSettings_ = builderForValue.build(); - onChanged(); } else { schemaSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1717,19 +1751,18 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder bui */ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { if (schemaSettingsBuilder_ == null) { - if (schemaSettings_ != null) { - schemaSettings_ = - com.google.pubsub.v1.SchemaSettings.newBuilder(schemaSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && schemaSettings_ != null + && schemaSettings_ != com.google.pubsub.v1.SchemaSettings.getDefaultInstance()) { + getSchemaSettingsBuilder().mergeFrom(value); } else { schemaSettings_ = value; } - onChanged(); } else { schemaSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1742,14 +1775,13 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ public Builder clearSchemaSettings() { - if (schemaSettingsBuilder_ == null) { - schemaSettings_ = null; - onChanged(); - } else { - schemaSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + schemaSettings_ = null; + if (schemaSettingsBuilder_ != null) { + schemaSettingsBuilder_.dispose(); schemaSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1762,7 +1794,7 @@ public Builder clearSchemaSettings() { * .google.pubsub.v1.SchemaSettings schema_settings = 6; */ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getSchemaSettingsFieldBuilder().getBuilder(); } @@ -1843,6 +1875,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1859,7 +1892,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - + bitField0_ = (bitField0_ & ~0x00000020); satisfiesPzs_ = false; onChanged(); return this; @@ -1882,7 +1915,7 @@ public Builder clearSatisfiesPzs() { * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; @@ -1890,7 +1923,7 @@ public Builder clearSatisfiesPzs() { * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { - return messageRetentionDurationBuilder_ != null || messageRetentionDuration_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1903,7 +1936,7 @@ public boolean hasMessageRetentionDuration() { * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; @@ -1930,7 +1963,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; @@ -1941,11 +1974,11 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { throw new NullPointerException(); } messageRetentionDuration_ = value; - onChanged(); } else { messageRetentionDurationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1959,7 +1992,7 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; @@ -1968,11 +2001,11 @@ public Builder setMessageRetentionDuration( com.google.protobuf.Duration.Builder builderForValue) { if (messageRetentionDurationBuilder_ == null) { messageRetentionDuration_ = builderForValue.build(); - onChanged(); } else { messageRetentionDurationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1986,26 +2019,25 @@ public Builder setMessageRetentionDuration( * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; */ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { - if (messageRetentionDuration_ != null) { - messageRetentionDuration_ = - com.google.protobuf.Duration.newBuilder(messageRetentionDuration_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && messageRetentionDuration_ != null + && messageRetentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMessageRetentionDurationBuilder().mergeFrom(value); } else { messageRetentionDuration_ = value; } - onChanged(); } else { messageRetentionDurationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2019,20 +2051,19 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; */ public Builder clearMessageRetentionDuration() { - if (messageRetentionDurationBuilder_ == null) { - messageRetentionDuration_ = null; - onChanged(); - } else { - messageRetentionDuration_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + messageRetentionDuration_ = null; + if (messageRetentionDurationBuilder_ != null) { + messageRetentionDurationBuilder_.dispose(); messageRetentionDurationBuilder_ = null; } - + onChanged(); return this; } /** @@ -2046,13 +2077,13 @@ public Builder clearMessageRetentionDuration() { * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; */ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getMessageRetentionDurationFieldBuilder().getBuilder(); } @@ -2067,7 +2098,7 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; @@ -2092,7 +2123,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 4d16d44af4e0..8af73d814c75 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index cbc1957b4a6a..f95f9b119842 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -104,7 +104,6 @@ public interface TopicOrBuilder * * map<string, string> labels = 2; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, @@ -169,6 +168,7 @@ java.lang.String getLabelsOrDefault( *
        * 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/*`.
        * 
    * @@ -183,6 +183,7 @@ java.lang.String getLabelsOrDefault( *
        * 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/*`.
        * 
    * @@ -252,7 +253,7 @@ java.lang.String getLabelsOrDefault( * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; @@ -271,7 +272,7 @@ java.lang.String getLabelsOrDefault( * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; @@ -290,7 +291,7 @@ java.lang.String getLabelsOrDefault( * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) * that is up to `message_retention_duration` in the past. If this field is * not set, message retention is controlled by settings on individual - * subscriptions. Cannot be more than 7 days or less than 10 minutes. + * subscriptions. Cannot be more than 31 days or less than 10 minutes. *
    * * .google.protobuf.Duration message_retention_duration = 8; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 6f1ac750ace6..479d73fd9bbd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSnapshotRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; @@ -108,7 +103,7 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { */ @java.lang.Override public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { - return getSnapshot(); + return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -160,7 +155,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -379,16 +374,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (snapshotBuilder_ == null) { - snapshot_ = null; - } else { - snapshot_ = null; + bitField0_ = 0; + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); snapshotBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -418,20 +412,23 @@ public com.google.pubsub.v1.UpdateSnapshotRequest build() { public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { com.google.pubsub.v1.UpdateSnapshotRequest result = new com.google.pubsub.v1.UpdateSnapshotRequest(this); - if (snapshotBuilder_ == null) { - result.snapshot_ = snapshot_; - } else { - result.snapshot_ = snapshotBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.UpdateSnapshotRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -512,13 +509,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getSnapshotFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -538,6 +535,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.pubsub.v1.Snapshot snapshot_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.Snapshot, @@ -557,7 +556,7 @@ public Builder mergeFrom( * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { - return snapshotBuilder_ != null || snapshot_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -594,11 +593,11 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { throw new NullPointerException(); } snapshot_ = value; - onChanged(); } else { snapshotBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -614,11 +613,11 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotBuilder_ == null) { snapshot_ = builderForValue.build(); - onChanged(); } else { snapshotBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -633,17 +632,18 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue */ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { if (snapshotBuilder_ == null) { - if (snapshot_ != null) { - snapshot_ = - com.google.pubsub.v1.Snapshot.newBuilder(snapshot_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && snapshot_ != null + && snapshot_ != com.google.pubsub.v1.Snapshot.getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); } else { snapshot_ = value; } - onChanged(); } else { snapshotBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -657,14 +657,13 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { * */ public Builder clearSnapshot() { - if (snapshotBuilder_ == null) { - snapshot_ = null; - onChanged(); - } else { - snapshot_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); snapshotBuilder_ = null; } - + onChanged(); return this; } /** @@ -678,7 +677,7 @@ public Builder clearSnapshot() { * */ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSnapshotFieldBuilder().getBuilder(); } @@ -746,7 +745,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -787,11 +786,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -808,11 +807,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -828,17 +827,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -853,14 +853,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -875,7 +874,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 66416bbf7dba..5faaddf5c3d3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSubscriptionRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; @@ -116,7 +111,9 @@ public com.google.pubsub.v1.Subscription getSubscription() { */ @java.lang.Override public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { - return getSubscription(); + return subscription_ == null + ? com.google.pubsub.v1.Subscription.getDefaultInstance() + : subscription_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -168,7 +165,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -387,16 +384,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (subscriptionBuilder_ == null) { - subscription_ = null; - } else { - subscription_ = null; + bitField0_ = 0; + subscription_ = null; + if (subscriptionBuilder_ != null) { + subscriptionBuilder_.dispose(); subscriptionBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -426,20 +422,24 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest build() { public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { com.google.pubsub.v1.UpdateSubscriptionRequest result = new com.google.pubsub.v1.UpdateSubscriptionRequest(this); - if (subscriptionBuilder_ == null) { - result.subscription_ = subscription_; - } else { - result.subscription_ = subscriptionBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.UpdateSubscriptionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subscription_ = + subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -520,13 +520,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -546,6 +546,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.pubsub.v1.Subscription subscription_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.Subscription, @@ -566,7 +568,7 @@ public Builder mergeFrom( * @return Whether the subscription field is set. */ public boolean hasSubscription() { - return subscriptionBuilder_ != null || subscription_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -607,11 +609,11 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { throw new NullPointerException(); } subscription_ = value; - onChanged(); } else { subscriptionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -628,11 +630,11 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builderForValue) { if (subscriptionBuilder_ == null) { subscription_ = builderForValue.build(); - onChanged(); } else { subscriptionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -648,19 +650,18 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builder */ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { if (subscriptionBuilder_ == null) { - if (subscription_ != null) { - subscription_ = - com.google.pubsub.v1.Subscription.newBuilder(subscription_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && subscription_ != null + && subscription_ != com.google.pubsub.v1.Subscription.getDefaultInstance()) { + getSubscriptionBuilder().mergeFrom(value); } else { subscription_ = value; } - onChanged(); } else { subscriptionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -675,14 +676,13 @@ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { * */ public Builder clearSubscription() { - if (subscriptionBuilder_ == null) { - subscription_ = null; - onChanged(); - } else { - subscription_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + subscription_ = null; + if (subscriptionBuilder_ != null) { + subscriptionBuilder_.dispose(); subscriptionBuilder_ = null; } - + onChanged(); return this; } /** @@ -697,7 +697,7 @@ public Builder clearSubscription() { * */ public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSubscriptionFieldBuilder().getBuilder(); } @@ -769,7 +769,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -810,11 +810,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -831,11 +831,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -851,17 +851,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -876,14 +877,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -898,7 +898,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 1c91f8962f9e..90fb13963f68 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateTopicRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; @@ -108,7 +103,7 @@ public com.google.pubsub.v1.Topic getTopic() { */ @java.lang.Override public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { - return getTopic(); + return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -169,7 +164,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -387,16 +382,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (topicBuilder_ == null) { - topic_ = null; - } else { - topic_ = null; + bitField0_ = 0; + topic_ = null; + if (topicBuilder_ != null) { + topicBuilder_.dispose(); topicBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -426,20 +420,23 @@ public com.google.pubsub.v1.UpdateTopicRequest build() { public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { com.google.pubsub.v1.UpdateTopicRequest result = new com.google.pubsub.v1.UpdateTopicRequest(this); - if (topicBuilder_ == null) { - result.topic_ = topic_; - } else { - result.topic_ = topicBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.UpdateTopicRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -520,13 +517,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -546,6 +543,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.pubsub.v1.Topic topic_; private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.Topic, @@ -564,7 +563,7 @@ public Builder mergeFrom( * @return Whether the topic field is set. */ public boolean hasTopic() { - return topicBuilder_ != null || topic_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -599,11 +598,11 @@ public Builder setTopic(com.google.pubsub.v1.Topic value) { throw new NullPointerException(); } topic_ = value; - onChanged(); } else { topicBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -618,11 +617,11 @@ public Builder setTopic(com.google.pubsub.v1.Topic value) { public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicBuilder_ == null) { topic_ = builderForValue.build(); - onChanged(); } else { topicBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -636,16 +635,18 @@ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { */ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { if (topicBuilder_ == null) { - if (topic_ != null) { - topic_ = com.google.pubsub.v1.Topic.newBuilder(topic_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && topic_ != null + && topic_ != com.google.pubsub.v1.Topic.getDefaultInstance()) { + getTopicBuilder().mergeFrom(value); } else { topic_ = value; } - onChanged(); } else { topicBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -658,14 +659,13 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTopic() { - if (topicBuilder_ == null) { - topic_ = null; - onChanged(); - } else { - topic_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + topic_ = null; + if (topicBuilder_ != null) { + topicBuilder_.dispose(); topicBuilder_ = null; } - + onChanged(); return this; } /** @@ -678,7 +678,7 @@ public Builder clearTopic() { * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTopicFieldBuilder().getBuilder(); } @@ -746,7 +746,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -793,11 +793,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -817,11 +817,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -840,17 +840,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -868,14 +869,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -893,7 +893,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index d4fa9d1d4eaf..499f3d5583bd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidateMessageRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; @@ -70,6 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int schemaSpecCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object schemaSpec_; public enum SchemaSpecCase @@ -117,7 +114,9 @@ public SchemaSpecCase getSchemaSpecCase() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -177,6 +176,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
        * Name of the schema against which to validate.
    +   *
        * Format is `projects/{project}/schemas/{schema}`.
        * 
    * @@ -192,6 +192,7 @@ public boolean hasName() { * *
        * Name of the schema against which to validate.
    +   *
        * Format is `projects/{project}/schemas/{schema}`.
        * 
    * @@ -220,6 +221,7 @@ public java.lang.String getName() { * *
        * Name of the schema against which to validate.
    +   *
        * Format is `projects/{project}/schemas/{schema}`.
        * 
    * @@ -296,7 +298,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } public static final int MESSAGE_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString message_; + private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -314,7 +316,7 @@ public com.google.protobuf.ByteString getMessage() { } public static final int ENCODING_FIELD_NUMBER = 5; - private int encoding_; + private int encoding_ = 0; /** * * @@ -343,8 +345,7 @@ public int getEncodingValue() { */ @java.lang.Override public com.google.pubsub.v1.Encoding getEncoding() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(encoding_); + com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.forNumber(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } @@ -600,15 +601,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - if (schemaBuilder_ != null) { schemaBuilder_.clear(); } message_ = com.google.protobuf.ByteString.EMPTY; - encoding_ = 0; - schemaSpecCase_ = 0; schemaSpec_ = null; return this; @@ -638,24 +637,35 @@ public com.google.pubsub.v1.ValidateMessageRequest build() { public com.google.pubsub.v1.ValidateMessageRequest buildPartial() { com.google.pubsub.v1.ValidateMessageRequest result = new com.google.pubsub.v1.ValidateMessageRequest(this); - result.parent_ = parent_; - if (schemaSpecCase_ == 2) { - result.schemaSpec_ = schemaSpec_; - } - if (schemaSpecCase_ == 3) { - if (schemaBuilder_ == null) { - result.schemaSpec_ = schemaSpec_; - } else { - result.schemaSpec_ = schemaBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.message_ = message_; - result.encoding_ = encoding_; - result.schemaSpecCase_ = schemaSpecCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ValidateMessageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.encoding_ = encoding_; + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.ValidateMessageRequest result) { + result.schemaSpecCase_ = schemaSpecCase_; + result.schemaSpec_ = this.schemaSpec_; + if (schemaSpecCase_ == 3 && schemaBuilder_ != null) { + result.schemaSpec_ = schemaBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -703,6 +713,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ValidateMessageRequest other) { if (other == com.google.pubsub.v1.ValidateMessageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getMessage() != com.google.protobuf.ByteString.EMPTY) { @@ -758,7 +769,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -777,13 +788,13 @@ public Builder mergeFrom( case 34: { message_ = input.readBytes(); - + bitField0_ |= 0x00000008; break; } // case 34 case 40: { encoding_ = input.readEnum(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -817,6 +828,8 @@ public Builder clearSchemaSpec() { return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -887,8 +900,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -907,8 +920,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -932,8 +945,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -943,6 +956,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
          * Name of the schema against which to validate.
    +     *
          * Format is `projects/{project}/schemas/{schema}`.
          * 
    * @@ -959,6 +973,7 @@ public boolean hasName() { * *
          * Name of the schema against which to validate.
    +     *
          * Format is `projects/{project}/schemas/{schema}`.
          * 
    * @@ -988,6 +1003,7 @@ public java.lang.String getName() { * *
          * Name of the schema against which to validate.
    +     *
          * Format is `projects/{project}/schemas/{schema}`.
          * 
    * @@ -1017,6 +1033,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
          * Name of the schema against which to validate.
    +     *
          * Format is `projects/{project}/schemas/{schema}`.
          * 
    * @@ -1039,6 +1056,7 @@ public Builder setName(java.lang.String value) { * *
          * Name of the schema against which to validate.
    +     *
          * Format is `projects/{project}/schemas/{schema}`.
          * 
    * @@ -1059,6 +1077,7 @@ public Builder clearName() { * *
          * Name of the schema against which to validate.
    +     *
          * Format is `projects/{project}/schemas/{schema}`.
          * 
    * @@ -1280,7 +1299,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } schemaSpecCase_ = 3; onChanged(); - ; return schemaBuilder_; } @@ -1316,8 +1334,8 @@ public Builder setMessage(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - message_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1333,7 +1351,7 @@ public Builder setMessage(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearMessage() { - + bitField0_ = (bitField0_ & ~0x00000008); message_ = getDefaultInstance().getMessage(); onChanged(); return this; @@ -1368,8 +1386,8 @@ public int getEncodingValue() { * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - encoding_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1386,8 +1404,7 @@ public Builder setEncodingValue(int value) { */ @java.lang.Override public com.google.pubsub.v1.Encoding getEncoding() { - @SuppressWarnings("deprecation") - com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.valueOf(encoding_); + com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.forNumber(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } /** @@ -1406,7 +1423,7 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000010; encoding_ = value.getNumber(); onChanged(); return this; @@ -1423,7 +1440,7 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { * @return This builder for chaining. */ public Builder clearEncoding() { - + bitField0_ = (bitField0_ & ~0x00000010); encoding_ = 0; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index f2c3968c00e3..0498d3699e85 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -59,6 +59,7 @@ public interface ValidateMessageRequestOrBuilder * *
        * Name of the schema against which to validate.
    +   *
        * Format is `projects/{project}/schemas/{schema}`.
        * 
    * @@ -72,6 +73,7 @@ public interface ValidateMessageRequestOrBuilder * *
        * Name of the schema against which to validate.
    +   *
        * Format is `projects/{project}/schemas/{schema}`.
        * 
    * @@ -85,6 +87,7 @@ public interface ValidateMessageRequestOrBuilder * *
        * Name of the schema against which to validate.
    +   *
        * Format is `projects/{project}/schemas/{schema}`.
        * 
    * @@ -167,5 +170,5 @@ public interface ValidateMessageRequestOrBuilder */ com.google.pubsub.v1.Encoding getEncoding(); - public com.google.pubsub.v1.ValidateMessageRequest.SchemaSpecCase getSchemaSpecCase(); + com.google.pubsub.v1.ValidateMessageRequest.SchemaSpecCase getSchemaSpecCase(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 7f06b80f81e8..601fa796f7ad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -46,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidateMessageResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 11127fe402be..9022200bc411 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidateSchemaRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; @@ -68,7 +63,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -165,7 +162,7 @@ public com.google.pubsub.v1.Schema getSchema() { */ @java.lang.Override public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { - return getSchema(); + return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } private byte memoizedIsInitialized = -1; @@ -379,12 +376,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (schemaBuilder_ == null) { - schema_ = null; - } else { - schema_ = null; + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); schemaBuilder_ = null; } return this; @@ -414,16 +410,23 @@ public com.google.pubsub.v1.ValidateSchemaRequest build() { public com.google.pubsub.v1.ValidateSchemaRequest buildPartial() { com.google.pubsub.v1.ValidateSchemaRequest result = new com.google.pubsub.v1.ValidateSchemaRequest(this); - result.parent_ = parent_; - if (schemaBuilder_ == null) { - result.schema_ = schema_; - } else { - result.schema_ = schemaBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.pubsub.v1.ValidateSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -471,6 +474,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ValidateSchemaRequest other) { if (other == com.google.pubsub.v1.ValidateSchemaRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSchema()) { @@ -505,13 +509,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -531,6 +535,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -601,8 +607,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -621,8 +627,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -646,8 +652,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -670,7 +676,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the schema field is set. */ public boolean hasSchema() { - return schemaBuilder_ != null || schema_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -705,11 +711,11 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { throw new NullPointerException(); } schema_ = value; - onChanged(); } else { schemaBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -724,11 +730,11 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { if (schemaBuilder_ == null) { schema_ = builderForValue.build(); - onChanged(); } else { schemaBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -742,16 +748,18 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { */ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { if (schemaBuilder_ == null) { - if (schema_ != null) { - schema_ = com.google.pubsub.v1.Schema.newBuilder(schema_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && schema_ != null + && schema_ != com.google.pubsub.v1.Schema.getDefaultInstance()) { + getSchemaBuilder().mergeFrom(value); } else { schema_ = value; } - onChanged(); } else { schemaBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -764,14 +772,13 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSchema() { - if (schemaBuilder_ == null) { - schema_ = null; - onChanged(); - } else { - schema_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + schema_ = null; + if (schemaBuilder_ != null) { + schemaBuilder_.dispose(); schemaBuilder_ = null; } - + onChanged(); return this; } /** @@ -784,7 +791,7 @@ public Builder clearSchema() { * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSchemaFieldBuilder().getBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 261caad45ce4..16439aa705b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -46,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidateSchemaResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 661633b61025..5f63854a42a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ import "google/pubsub/v1/schema.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSub.V1"; -option go_package = "google.golang.org/genproto/googleapis/pubsub/v1;pubsub"; +option go_package = "cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb"; option java_multiple_files = true; option java_outer_classname = "PubsubProto"; option java_package = "com.google.pubsub.v1"; @@ -60,6 +60,7 @@ service Publisher { patch: "/v1/{topic.name=projects/*/topics/*}" body: "*" }; + option (google.api.method_signature) = "topic,update_mask"; } // Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic @@ -214,7 +215,7 @@ message Topic { // timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) // that is up to `message_retention_duration` in the past. If this field is // not set, message retention is controlled by settings on individual - // subscriptions. Cannot be more than 7 days or less than 10 minutes. + // subscriptions. Cannot be more than 31 days or less than 10 minutes. google.protobuf.Duration message_retention_duration = 8; } @@ -253,6 +254,8 @@ message PubsubMessage { // 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. + // For more information, see [ordering + // messages](https://cloud.google.com/pubsub/docs/ordering). string ordering_key = 5; } @@ -461,6 +464,7 @@ service Subscriber { patch: "/v1/{subscription.name=projects/*/subscriptions/*}" body: "*" }; + option (google.api.method_signature) = "subscription,update_mask"; } // Lists matching subscriptions. @@ -515,9 +519,7 @@ service Subscriber { option (google.api.method_signature) = "subscription,ack_ids"; } - // Pulls messages from the server. The server may return `UNAVAILABLE` if - // there are too many concurrent pull requests pending for the given - // subscription. + // Pulls messages from the server. rpc Pull(PullRequest) returns (PullResponse) { option (google.api.http) = { post: "/v1/{subscription=projects/*/subscriptions/*}:pull" @@ -554,10 +556,10 @@ service Subscriber { } // Gets the configuration details of a snapshot. 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. + // [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. rpc GetSnapshot(GetSnapshotRequest) returns (Snapshot) { option (google.api.http) = { get: "/v1/{snapshot=projects/*/snapshots/*}" @@ -602,16 +604,16 @@ service Subscriber { } // Updates an existing snapshot. 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. + // [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. rpc UpdateSnapshot(UpdateSnapshotRequest) returns (Snapshot) { option (google.api.http) = { patch: "/v1/{snapshot.name=projects/*/snapshots/*}" body: "*" }; + option (google.api.method_signature) = "snapshot,update_mask"; } // Removes an existing snapshot. Snapshots are used in [Seek] @@ -645,7 +647,9 @@ service Subscriber { } } -// A subscription resource. +// A subscription resource. If none of `push_config`, `bigquery_config`, or +// `cloud_storage_config` is set, then the subscriber will pull and ack messages +// using API methods. At most one of these fields may be set. message Subscription { option (google.api.resource) = { type: "pubsub.googleapis.com/Subscription" @@ -683,21 +687,21 @@ message Subscription { ]; // If push delivery is used with this subscription, this field is - // used to configure it. Either `pushConfig` or `bigQueryConfig` can be set, - // but not both. If both are empty, then the subscriber will pull and ack - // messages using API methods. + // used to configure it. PushConfig push_config = 4; // If delivery to BigQuery is used with this subscription, this field is - // used to configure it. Either `pushConfig` or `bigQueryConfig` can be set, - // but not both. If both are empty, then the subscriber will pull and ack - // messages using API methods. + // used to configure it. BigQueryConfig bigquery_config = 18; + // If delivery to Google Cloud Storage is used with this subscription, this + // field is used to configure it. + CloudStorageConfig cloud_storage_config = 22; + // 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 + // 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 @@ -732,8 +736,8 @@ message Subscription { // minutes. google.protobuf.Duration message_retention_duration = 8; - // See Creating and - // managing labels. + // See [Creating and managing + // labels](https://cloud.google.com/pubsub/docs/labels). map labels = 9; // If true, messages published with the same `ordering_key` in `PubsubMessage` @@ -747,7 +751,8 @@ message Subscription { // 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. + // value for `expiration_policy.ttl` is 1 day. If `expiration_policy` is set, + // but `expiration_policy.ttl` is not set, the subscription never expires. ExpirationPolicy expiration_policy = 11; // An expression written in the Pub/Sub [filter @@ -884,9 +889,9 @@ message PushConfig { message OidcToken { // [Service account // email](https://cloud.google.com/iam/docs/service-accounts) - // to be used for generating the OIDC token. The caller (for - // CreateSubscription, UpdateSubscription, and ModifyPushConfig RPCs) must - // have the iam.serviceAccounts.actAs permission for the service account. + // used for generating the OIDC token. For more information + // on setting up authentication, see + // [Push subscriptions](https://cloud.google.com/pubsub/docs/push). string service_account_email = 1; // Audience to be used when generating OIDC token. The audience claim @@ -898,6 +903,19 @@ message PushConfig { string audience = 2; } + // The payload to the push endpoint is in the form of the JSON representation + // of a PubsubMessage + // (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage). + message PubsubWrapper {} + + // Sets the `data` field as the HTTP body for delivery. + message NoWrapper { + // When true, writes the Pub/Sub message metadata to + // `x-goog-pubsub-:` headers of the HTTP request. Writes the + // Pub/Sub message attributes to `:` headers of the HTTP request. + bool write_metadata = 1; + } + // A URL locating the endpoint to which messages should be pushed. // For example, a Webhook endpoint might use `https://example.com/push`. string push_endpoint = 1; @@ -922,7 +940,7 @@ message PushConfig { // * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API. // // For example: - //
    attributes { "x-goog-version": "v1" } 
    + // `attributes { "x-goog-version": "v1" }` map attributes = 2; // An authentication method used by push endpoints to verify the source of @@ -935,6 +953,18 @@ message PushConfig { // `Authorization` header in the HTTP request for every pushed message. OidcToken oidc_token = 3; } + + // The format of the delivered message to the push endpoint is defined by + // the chosen wrapper. When unset, `PubsubWrapper` is used. + oneof wrapper { + // When set, the payload to the push endpoint is in the form of the JSON + // representation of a PubsubMessage + // (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage). + PubsubWrapper pubsub_wrapper = 4; + + // When set, the payload to the push endpoint is not wrapped. + NoWrapper no_wrapper = 5; + } } // Configuration for a BigQuery subscription. @@ -948,6 +978,11 @@ message BigQueryConfig { ACTIVE = 1; // Cannot write to the BigQuery table because of permission denied errors. + // This can happen if + // - Pub/Sub SA has not been granted the [appropriate BigQuery IAM + // permissions](https://cloud.google.com/pubsub/docs/create-subscription#assign_bigquery_service_account) + // - bigquery.googleapis.com API is not enabled for the project + // ([instructions](https://cloud.google.com/service-usage/docs/enable-disable)) PERMISSION_DENIED = 2; // Cannot write to the BigQuery table because it does not exist. @@ -958,7 +993,7 @@ message BigQueryConfig { } // The name of the table to which to write data, of the form - // {projectId}:{datasetId}.{tableId} + // {projectId}.{datasetId}.{tableId} string table = 1; // When true, use the topic's schema as the columns to write to in BigQuery, @@ -984,6 +1019,75 @@ message BigQueryConfig { State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Configuration for a Cloud Storage subscription. +message CloudStorageConfig { + // Configuration for writing message data in text format. + // Message payloads will be written to files as raw text, separated by a + // newline. + message TextConfig {} + + // Configuration for writing message data in Avro format. + // Message payloads and metadata will be written to files as an Avro binary. + message AvroConfig { + // When true, write the subscription name, message_id, publish_time, + // attributes, and ordering_key as additional fields in the output. + bool write_metadata = 1; + } + + // Possible states for a Cloud Storage subscription. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The subscription can actively send messages to Cloud Storage. + ACTIVE = 1; + + // Cannot write to the Cloud Storage bucket because of permission denied + // errors. + PERMISSION_DENIED = 2; + + // Cannot write to the Cloud Storage bucket because it does not exist. + NOT_FOUND = 3; + } + + // Required. User-provided name for the Cloud Storage bucket. + // The bucket must be created by the user. The bucket name must be without + // any prefix like "gs://". See the [bucket naming + // requirements] (https://cloud.google.com/storage/docs/buckets#naming). + string bucket = 1 [(google.api.field_behavior) = REQUIRED]; + + // User-provided prefix for Cloud Storage filename. See the [object naming + // requirements](https://cloud.google.com/storage/docs/objects#naming). + string filename_prefix = 2; + + // User-provided suffix for Cloud Storage filename. See the [object naming + // requirements](https://cloud.google.com/storage/docs/objects#naming). + string filename_suffix = 3; + + // Defaults to text format. + oneof output_format { + // If set, message data will be written to Cloud Storage in text format. + TextConfig text_config = 4; + + // If set, message data will be written to Cloud Storage in Avro format. + AvroConfig avro_config = 5; + } + + // The maximum duration that can elapse before a new Cloud Storage file is + // created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed + // the subscription's acknowledgement deadline. + google.protobuf.Duration max_duration = 6; + + // The maximum bytes that can be written to a Cloud Storage file before a new + // file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded + // in cases where messages are larger than the limit. + int64 max_bytes = 7; + + // Output only. An output-only field that indicates whether or not the + // subscription can receive messages. + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A message and its corresponding acknowledgment ID. message ReceivedMessage { // This ID can be used to acknowledge the received message. @@ -1127,7 +1231,8 @@ message PullRequest { // Response for the `Pull` method. message PullResponse { // 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 + // messages available in the backlog, or if no messages could be returned + // before the request timeout. 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. repeated ReceivedMessage received_messages = 1; @@ -1270,6 +1375,9 @@ message StreamingPullResponse { // List of acknowledgement IDs that were out of order. repeated string unordered_ack_ids = 3; + + // List of acknowledgement IDs that failed processing with temporary issues. + repeated string temporary_failed_ack_ids = 4; } // Acknowledgement IDs sent in one or more previous requests to modify the @@ -1281,12 +1389,16 @@ message StreamingPullResponse { // List of acknowledgement IDs that were malformed or whose acknowledgement // deadline has expired. repeated string invalid_ack_ids = 2; + + // List of acknowledgement IDs that failed processing with temporary issues. + repeated string temporary_failed_ack_ids = 3; } // Subscription properties sent as part of the response. message SubscriptionProperties { // True iff exactly once delivery is enabled for this subscription. bool exactly_once_delivery_enabled = 1; + // True iff message ordering is enabled for this subscription. bool message_ordering_enabled = 2; } @@ -1294,8 +1406,6 @@ message StreamingPullResponse { // Received Pub/Sub messages. This will not be empty. repeated ReceivedMessage received_messages = 1; - reserved 2; - // This field will only be set if `enable_exactly_once_delivery` is set to // `true`. AcknowledgeConfirmation acknowledge_confirmation = 5; @@ -1313,9 +1423,9 @@ message CreateSnapshotRequest { // 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}`. + // must specify a name. See the [resource name + // rules](https://cloud.google.com/pubsub/docs/admin#resource_names). Format + // is `projects/{project}/snapshots/{snap}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } @@ -1337,8 +1447,8 @@ message CreateSnapshotRequest { } ]; - // See Creating and - // managing labels. + // See [Creating and managing + // labels](https://cloud.google.com/pubsub/docs/labels). map labels = 3; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index 1b1483b875b2..32aa0d75cd63 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSub.V1"; -option go_package = "google.golang.org/genproto/googleapis/pubsub/v1;pubsub"; +option go_package = "cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb"; option java_multiple_files = true; option java_outer_classname = "SchemaProto"; option java_package = "com.google.pubsub.v1"; @@ -320,17 +320,17 @@ message DeleteSchemaRevisionRequest { // Required. The name of the schema revision to be deleted, with a revision ID // explicitly included. // - // Example: projects/123/schemas/my-schema@c7cfa2a8 + // Example: `projects/123/schemas/my-schema@c7cfa2a8` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } ]; - // Required. The revision ID to roll back to. - // It must be a revision of the same schema. - // - // Example: c7cfa2a8 - string revision_id = 2 [(google.api.field_behavior) = REQUIRED]; + // Optional. This field is deprecated and should not be used for specifying + // the revision ID. The revision ID should be specified via the `name` + // parameter. + string revision_id = 2 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; } // Request for the `DeleteSchema` method. From 06c2997a564087d639e9ae10610b35480444ac07 Mon Sep 17 00:00:00 2001 From: maitrimangal <121899734+maitrimangal@users.noreply.github.com> Date: Tue, 20 Jun 2023 13:46:21 -0400 Subject: [PATCH 1439/2363] fix: Fixing the shutdown logic for streaming subscriber connection (#1613) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Fixing the shutdown logic for streaming subscriber connection * fix: Fixing the shutdown logic for streaming subscriber connection * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/StreamingSubscriberConnection.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 26547529ec44..160032c7a674 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -191,15 +191,14 @@ protected void doStart() { @Override protected void doStop() { - runShutdown(); - lock.lock(); try { clientStream.closeSendWithError(Status.CANCELLED.asException()); } finally { lock.unlock(); - notifyStopped(); } + runShutdown(); + notifyStopped(); } private void runShutdown() { From 5fde8344fdae2142a04e3cd52f1f7ac136d4e6b9 Mon Sep 17 00:00:00 2001 From: Casey O'Hare Date: Tue, 20 Jun 2023 14:28:39 -0400 Subject: [PATCH 1440/2363] samples: Payload Unwrapping (#1621) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: Payload Unwrapping * samples: Payload Unwrapping * samples: Payload Unwrapping * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 1 + ...reatePushNoWrapperSubscriptionExample.java | 63 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 265fd5c5a2b3..fd6b3a7c5c8b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -250,6 +250,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Big Query Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | | Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | | Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | +| Create Push No Wrapper Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java) | | Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | | Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | | Create Subscription With Exactly Once Delivery | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java new file mode 100644 index 000000000000..39e364ae6eab --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java @@ -0,0 +1,63 @@ +/* + * Copyright 2016 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_push_no_wrapper_subscription] + +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.PushConfig.NoWrapper; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreatePushNoWrapperSubscriptionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + String topicId = "your-topic-id"; + String pushEndpoint = "https://my-test-project.appspot.com/push"; + + createPushSubscriptionExample(projectId, subscriptionId, topicId, pushEndpoint); + } + + public static void createPushSubscriptionExample( + String projectId, String subscriptionId, String topicId, String pushEndpoint) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + SubscriptionName subscriptionName = SubscriptionName.of(projectId, subscriptionId); + NoWrapper noWrapper = + NoWrapper.newBuilder() + // Determines if message metadata is added to the HTTP headers of + // the delivered message. + .setWriteMetadata(true) + .build(); + PushConfig pushConfig = + PushConfig.newBuilder().setPushEndpoint(pushEndpoint).setNoWrapper(noWrapper).build(); + + // Create a push subscription with default acknowledgement deadline of 10 seconds. + // Messages not successfully acknowledged within 10 seconds will get resent by the server. + Subscription subscription = + subscriptionAdminClient.createSubscription(subscriptionName, topicName, pushConfig, 10); + System.out.println("Created push subscription: " + subscription.getName()); + } + } +} +// [END pubsub_create_push_no_wrapper_subscription] From 1a523c446efda37f8bee82ceeb4d96f039bc8e46 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Jun 2023 18:11:21 +0200 Subject: [PATCH 1441/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.28.0 (#1626) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index cb6364813588..772a32d6399b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.27.1 + 2.28.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 951e749389be..17126a6cfa23 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.27.1 + 2.28.0 From c6b9510590fc70d39228b1ff37c8dc9341fdfe8a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Jun 2023 18:12:05 +0200 Subject: [PATCH 1442/2363] test(deps): update dependency com.google.truth:truth to v1.1.5 (#1625) --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0db5fb7db594..16de0358059a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.1.4 + 1.1.5 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 772a32d6399b..90fef867e75f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.1.4 + 1.1.5 test diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 5bf6dae19bb4..7fdbd1123634 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.1.4 + 1.1.5 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 17126a6cfa23..6357c3b55c77 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.1.4 + 1.1.5 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9398d6fade7d..34d0c6149f82 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -88,7 +88,7 @@ com.google.truth truth - 1.1.4 + 1.1.5 test From 75b9c8f4de8995ab4d6491544ecaca20d28248fc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Jun 2023 18:12:23 +0200 Subject: [PATCH 1443/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.23 (#1623) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.23 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 7fdbd1123634..5b83fbe19766 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.22 + 0.9.23 test From d5d08863db1663513a184713955b88e818667217 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 21 Jun 2023 12:12:43 -0400 Subject: [PATCH 1444/2363] chore: Update `dependabot.yml` template (#1813) (#1622) * chore: Update `dependabot.yml` template not to touch pip dependencies Source-Link: https://github.com/googleapis/synthtool/commit/f961eb0fe51109238128055897ccba1b70dbd804 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:af2eda87a54601ae7b7b2be5055c17b43ac98a7805b586772db314de8a7d4a1d Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 3 ++- java-pubsub/.github/dependabot.yml | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index aadf54f6438e..73568a1e998c 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:ad9cabee4c022f1aab04a71332369e0c23841062124818a4490f73337f790337 + digest: sha256:af2eda87a54601ae7b7b2be5055c17b43ac98a7805b586772db314de8a7d4a1d +# created: 2023-06-16T02:10:09.149325782Z diff --git a/java-pubsub/.github/dependabot.yml b/java-pubsub/.github/dependabot.yml index c8f413b0da30..fde1ced49fb9 100644 --- a/java-pubsub/.github/dependabot.yml +++ b/java-pubsub/.github/dependabot.yml @@ -5,10 +5,13 @@ updates: schedule: interval: "daily" # Disable version updates for Maven dependencies - open-pull-requests-limit: 0 + # we use renovate-bot as well as shared-dependencies BOM to update maven dependencies. + ignore: "*" - package-ecosystem: "pip" directory: "/" schedule: interval: "daily" # Disable version updates for pip dependencies - open-pull-requests-limit: 0 \ No newline at end of file + # If a security vulnerability comes in, we will be notified about + # it via template in the synthtool repository. + ignore: "*" From 21d7fe122f88edea3d27b5c02ee083390fa4292d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Jun 2023 18:13:03 +0200 Subject: [PATCH 1445/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.1 [security] (#1620) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.1 [security] * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 90fef867e75f..a7202f7cf5be 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.0 + 1.1.10.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6357c3b55c77..eb49a2397de8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.0 + 1.1.10.1 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 34d0c6149f82..a6c9da36295b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -71,7 +71,7 @@ org.xerial.snappy snappy-java - 1.1.10.0 + 1.1.10.1 com.google.protobuf From 0901a4d27c9ac4aac38f7e2ccf3d69b325b48afe Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Jun 2023 18:13:22 +0200 Subject: [PATCH 1446/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.1 - abandoned (#1616) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot From 64d158c1e0ccc3caeedac5a49dfd1b3d216c322f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 Jun 2023 18:06:37 +0200 Subject: [PATCH 1447/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.12.0 (#1630) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 16de0358059a..1332c5b3d373 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.11.0 + 3.12.0 pom import From e58918ba60daff8e4225a750df90d8cb6454f0f3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 22 Jun 2023 14:28:00 -0400 Subject: [PATCH 1448/2363] chore: Java 8 unit test to build code in Java 17 and run tests on Java 8 (#1800) (#1628) * chore: Java 8 unit test to build code in Java 17 and run tests on Java 8 (#1800) * Our Java projects are configured to produce Java 8-compatible bytecode via https://github.com/googleapis/java-shared-config/blob/main/pom.xml#L848. This unit test change ensures this config is applied correctly. * For the repositories that mark "dependencies (8)" and "dependencies (11)" as required, they should point to only "dependencies (17)" via `.github/sync-repo-settings.yaml` and repo's Settings tab. Source-Link: https://github.com/googleapis/synthtool/commit/cbe010084fc59dc15730c86e9b8e03ddac1de050 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:32851debfefed2b66038e0141f1b5c2103bb59ba80b7475adbc10ef7abab3de7 * dependencies (17) --------- Co-authored-by: Owl Bot Co-authored-by: Tomo Suzuki --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.github/dependabot.yml | 6 +++-- java-pubsub/.github/sync-repo-settings.yaml | 3 +-- java-pubsub/.github/workflows/ci.yaml | 26 +++++++++++++++++++-- java-pubsub/.kokoro/build.sh | 3 ++- 5 files changed, 33 insertions(+), 9 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 73568a1e998c..47a70ea40cf3 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:af2eda87a54601ae7b7b2be5055c17b43ac98a7805b586772db314de8a7d4a1d -# created: 2023-06-16T02:10:09.149325782Z + digest: sha256:32851debfefed2b66038e0141f1b5c2103bb59ba80b7475adbc10ef7abab3de7 +# created: 2023-06-22T15:06:52.039318836Z diff --git a/java-pubsub/.github/dependabot.yml b/java-pubsub/.github/dependabot.yml index fde1ced49fb9..203f9eaccf13 100644 --- a/java-pubsub/.github/dependabot.yml +++ b/java-pubsub/.github/dependabot.yml @@ -6,7 +6,8 @@ updates: interval: "daily" # Disable version updates for Maven dependencies # we use renovate-bot as well as shared-dependencies BOM to update maven dependencies. - ignore: "*" + ignore: + - dependency-name: "*" - package-ecosystem: "pip" directory: "/" schedule: @@ -14,4 +15,5 @@ updates: # Disable version updates for pip dependencies # If a security vulnerability comes in, we will be notified about # it via template in the synthtool repository. - ignore: "*" + ignore: + - dependency-name: "*" diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index c396c116bea8..5f005e32f427 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -8,8 +8,7 @@ branchProtectionRules: requiresCodeOwnerReviews: true requiresStrictStatusChecks: false requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) + - dependencies (17) - lint - clirr - units (8) diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index e3bb26e37719..65436cde4190 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - java: [8, 11, 17] + java: [11, 17] steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 @@ -36,6 +36,28 @@ jobs: - run: .kokoro/build.sh env: JOB_TYPE: test + units-java8: + # Building using Java 17 and run the tests with Java 8 runtime + name: "units (8)" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: 8 + distribution: zulu + - name: "Set jvm system property environment variable for surefire plugin (unit tests)" + # Maven surefire plugin (unit tests) allows us to specify JVM to run the tests. + # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm + run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV + shell: bash + - uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: zulu + - run: .kokoro/build.sh + env: + JOB_TYPE: test windows: runs-on: windows-latest steps: @@ -54,7 +76,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [8, 11, 17] + java: [17] steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 72c7198b2a04..351d0d40c60b 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -47,7 +47,8 @@ set +e case ${JOB_TYPE} in test) - mvn test -B -Dclirr.skip=true -Denforcer.skip=true + echo "SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT}" + mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true ${SUREFIRE_JVM_OPT} RETURN_CODE=$? ;; lint) From 0635ca244d5aa5886815f1208eb512da4400a5d6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 Jun 2023 20:28:26 +0200 Subject: [PATCH 1449/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.14 (#1612) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.123.13` -> `1.123.14` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.123.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.123.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.123.14/compatibility-slim/1.123.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-pubsub/1.123.14/confidence-slim/1.123.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub ### [`v1.123.14`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#​112314-httpsgithubcomgoogleapisjava-pubsubcomparev112313v112314-2023-06-12) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.123.13...v1.123.14) ##### Dependencies - Update dependency com.google.cloud:google-cloud-core to v2.19.0 ([#​1604](https://togithub.com/googleapis/java-pubsub/issues/1604)) ([bcc1f4c](https://togithub.com/googleapis/java-pubsub/commit/bcc1f4cb46f44bd5cab30cd47c5a30ec99f5cd50)) - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.11.0 ([#​1605](https://togithub.com/googleapis/java-pubsub/issues/1605)) ([32e1394](https://togithub.com/googleapis/java-pubsub/commit/32e13946f1ee72c259f9e8728c6bd334e031112f))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index fd6b3a7c5c8b..ee8b0809ce26 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.13 + 1.123.14 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a7202f7cf5be..f4bd72fb6453 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.13 + 1.123.14 From badf65c33f2b18581a1e1607e656e9d6c01d2e53 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 Jun 2023 20:57:45 +0200 Subject: [PATCH 1450/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.23 (#1624) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.23 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 5b83fbe19766..810e0b6520f4 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.22 + 0.9.23 true pubsub.NativeImagePubSubSample From 1e45e4aba2a7e57eb9aac36ba5b614bd3b2a2ad1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 Jun 2023 20:58:26 +0200 Subject: [PATCH 1451/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.20.0 (#1629) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f4bd72fb6453..114a4cd40cd1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.19.0 + 2.20.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index eb49a2397de8..45cf8cc10777 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.19.0 + 2.20.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a6c9da36295b..a34463f806ec 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.19.0 + 2.20.0 tests From 6fb238530e0eb52fa31662726cf8ddc1a9354d04 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 22 Jun 2023 15:57:55 -0400 Subject: [PATCH 1452/2363] chore(main): release 1.123.15 (#1609) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 25 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 +++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 8 files changed, 43 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 6b741b53e280..e1663e2b3e07 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## [1.123.15](https://github.com/googleapis/java-pubsub/compare/v1.123.14...v1.123.15) (2023-06-22) + + +### Bug Fixes + +* Fixing the shutdown logic for streaming subscriber connection ([#1613](https://github.com/googleapis/java-pubsub/issues/1613)) ([09aff9c](https://github.com/googleapis/java-pubsub/commit/09aff9c59bab646c0bae857f3bca9dc8e9eeebd1)) + + +### Documentation + +* Adding pubsub emulator example ([#1602](https://github.com/googleapis/java-pubsub/issues/1602)) ([8ded110](https://github.com/googleapis/java-pubsub/commit/8ded11041c63f1f75f0612c081ba6b476b6b89b8)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.27.0 ([#1599](https://github.com/googleapis/java-pubsub/issues/1599)) ([3b4b7d0](https://github.com/googleapis/java-pubsub/commit/3b4b7d0522d8eb136800dd546acb8880b8b28e9e)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.27.1 ([#1614](https://github.com/googleapis/java-pubsub/issues/1614)) ([a974e08](https://github.com/googleapis/java-pubsub/commit/a974e08b45d49ca275c19a4e94e66b4b831a0fad)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.28.0 ([#1626](https://github.com/googleapis/java-pubsub/issues/1626)) ([a4a02b4](https://github.com/googleapis/java-pubsub/commit/a4a02b4fd0a3827c3e321c56223731f0a828e8c5)) +* Update dependency com.google.cloud:google-cloud-core to v2.20.0 ([#1629](https://github.com/googleapis/java-pubsub/issues/1629)) ([5f88f4f](https://github.com/googleapis/java-pubsub/commit/5f88f4f5f6fd1c8f2c0e7523b6919a6a477d785c)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.12.0 ([#1630](https://github.com/googleapis/java-pubsub/issues/1630)) ([b444a9d](https://github.com/googleapis/java-pubsub/commit/b444a9d825300519681a205a833ae9d816e89cf2)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.23 ([#1623](https://github.com/googleapis/java-pubsub/issues/1623)) ([b5f8e49](https://github.com/googleapis/java-pubsub/commit/b5f8e4961dd473c98641d8b78c958db1e0e8d01e)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.23 ([#1624](https://github.com/googleapis/java-pubsub/issues/1624)) ([68ada24](https://github.com/googleapis/java-pubsub/commit/68ada243897a763e04d4858ad052050e09326371)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.1 - abandoned ([#1616](https://github.com/googleapis/java-pubsub/issues/1616)) ([48ec282](https://github.com/googleapis/java-pubsub/commit/48ec282753f8068df135cee55febe5dba97be1b5)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.1 [security] ([#1620](https://github.com/googleapis/java-pubsub/issues/1620)) ([a1cb267](https://github.com/googleapis/java-pubsub/commit/a1cb2673f5e6556472a87a0fb2acbc3e0ddfd933)) + ## [1.123.14](https://github.com/googleapis/java-pubsub/compare/v1.123.13...v1.123.14) (2023-06-12) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a28d63d23070..a61507ca12a2 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.15-SNAPSHOT + 1.123.15 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.15-SNAPSHOT + 1.123.15 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.15-SNAPSHOT + 1.105.15 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.15-SNAPSHOT + 1.105.15 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d87c9ea74330..666e3a2d05c8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.15-SNAPSHOT + 1.123.15 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.15-SNAPSHOT + 1.123.15 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 596ea4577d1c..b0abc682c54e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.15-SNAPSHOT + 1.105.15 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.15-SNAPSHOT + 1.123.15 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1332c5b3d373..1733f6d2d2ca 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.15-SNAPSHOT + 1.123.15 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.15-SNAPSHOT + 1.105.15 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.15-SNAPSHOT + 1.105.15 com.google.cloud google-cloud-pubsub - 1.123.15-SNAPSHOT + 1.123.15 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1b5b4668ea5e..661f2df6ec1f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.15-SNAPSHOT + 1.105.15 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.15-SNAPSHOT + 1.123.15 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 45cf8cc10777..0f57e67963c7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.15-SNAPSHOT + 1.123.15 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9adcde413377..0dff0f59d195 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.14:1.123.15-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.14:1.105.15-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.14:1.105.15-SNAPSHOT +google-cloud-pubsub:1.123.15:1.123.15 +grpc-google-cloud-pubsub-v1:1.105.15:1.105.15 +proto-google-cloud-pubsub-v1:1.105.15:1.105.15 From faa0f5bb43d98d0cfada60bb5b9b34dbfd1fd10a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 23 Jun 2023 14:28:09 -0400 Subject: [PATCH 1453/2363] chore(main): release 1.123.16-SNAPSHOT (#1631) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a61507ca12a2..fdd3e7f6bdce 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.15 + 1.123.16-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.15 + 1.123.16-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.15 + 1.105.16-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.15 + 1.105.16-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 666e3a2d05c8..9399478ad966 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.15 + 1.123.16-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.15 + 1.123.16-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b0abc682c54e..fa7f44685343 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.15 + 1.105.16-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.15 + 1.123.16-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1733f6d2d2ca..d05997d27f8b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.15 + 1.123.16-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.15 + 1.105.16-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.15 + 1.105.16-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.15 + 1.123.16-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 661f2df6ec1f..0e39612fb781 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.15 + 1.105.16-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.15 + 1.123.16-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0f57e67963c7..fb12ef9bb497 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.15 + 1.123.16-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0dff0f59d195..56c90e3e6ebb 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.15:1.123.15 -grpc-google-cloud-pubsub-v1:1.105.15:1.105.15 -proto-google-cloud-pubsub-v1:1.105.15:1.105.15 +google-cloud-pubsub:1.123.15:1.123.16-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.15:1.105.16-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.15:1.105.16-SNAPSHOT From 68c81201c94f6239cdd47d7df6241b5c926d1332 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 26 Jun 2023 16:31:22 +0200 Subject: [PATCH 1454/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.15 (#1632) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.15 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ee8b0809ce26..26cabbca766a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.14 + 1.123.15 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.14' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.15' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.14" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.15" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.14 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.15 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 114a4cd40cd1..33ce30f02a96 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.14 + 1.123.15 From c1d1c4d8c46f0040f3de7028503389809a6a2cbb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 26 Jun 2023 16:53:06 +0200 Subject: [PATCH 1455/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.23.3 (#1634) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v3.23.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 33ce30f02a96..2253090b4c13 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.21.12 + 3.23.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fb12ef9bb497..918f7452aa50 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.21.12 + 3.23.3 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a34463f806ec..06954e284fd8 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.21.12 + 3.23.3 From 1a23dab8a5313c7a2ad7f55b90420aa1f7e8852b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 26 Jun 2023 16:53:21 +0200 Subject: [PATCH 1456/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.15.0 (#1583) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.15.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: maitrimangal <121899734+maitrimangal@users.noreply.github.com> --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 26cabbca766a..bd4163ed82e4 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.14.0 + 26.15.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 810e0b6520f4..6ee1df367563 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.14.0 + 26.15.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 06954e284fd8..d623640aade6 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.14.0 + 26.15.0 pom import From b9474827aba7d075eed916d523650babb2d48895 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 26 Jun 2023 17:43:51 +0200 Subject: [PATCH 1457/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.17.0 (#1636) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.17.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bd4163ed82e4..91c91f2a1ae3 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.15.0 + 26.17.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 6ee1df367563..dd356262f7a8 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.15.0 + 26.17.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d623640aade6..ac37786c99e3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.15.0 + 26.17.0 pom import From 056e6a10aea5c0a10f0827d1b8665d5246867884 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Jun 2023 12:35:41 -0400 Subject: [PATCH 1458/2363] chore(main): release 1.123.16 (#1635) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index e1663e2b3e07..70fd356edb88 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.123.16](https://github.com/googleapis/java-pubsub/compare/v1.123.15...v1.123.16) (2023-06-26) + + +### Dependencies + +* Update dependency com.google.protobuf:protobuf-java-util to v3.23.3 ([#1634](https://github.com/googleapis/java-pubsub/issues/1634)) ([2481c4b](https://github.com/googleapis/java-pubsub/commit/2481c4b8799bbe78542b4a8dd6c2484be08f30a1)) + ## [1.123.15](https://github.com/googleapis/java-pubsub/compare/v1.123.14...v1.123.15) (2023-06-22) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fdd3e7f6bdce..0d9dad650a08 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.16-SNAPSHOT + 1.123.16 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.16-SNAPSHOT + 1.123.16 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.16-SNAPSHOT + 1.105.16 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.16-SNAPSHOT + 1.105.16 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9399478ad966..2aae458de7f5 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.16-SNAPSHOT + 1.123.16 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.16-SNAPSHOT + 1.123.16 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fa7f44685343..0e2e4baeefd7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.16-SNAPSHOT + 1.105.16 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.16-SNAPSHOT + 1.123.16 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d05997d27f8b..1992053ee34d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.16-SNAPSHOT + 1.123.16 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.16-SNAPSHOT + 1.105.16 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.16-SNAPSHOT + 1.105.16 com.google.cloud google-cloud-pubsub - 1.123.16-SNAPSHOT + 1.123.16 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0e39612fb781..3a48177a4034 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.16-SNAPSHOT + 1.105.16 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.16-SNAPSHOT + 1.123.16 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 918f7452aa50..35c5a58a07a4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.16-SNAPSHOT + 1.123.16 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 56c90e3e6ebb..dcd0d6ec397d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.15:1.123.16-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.15:1.105.16-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.15:1.105.16-SNAPSHOT +google-cloud-pubsub:1.123.16:1.123.16 +grpc-google-cloud-pubsub-v1:1.105.16:1.105.16 +proto-google-cloud-pubsub-v1:1.105.16:1.105.16 From 9bd836aeb0dc1c8827d6c888a2894ba66224725d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Jun 2023 16:50:13 +0000 Subject: [PATCH 1459/2363] chore(main): release 1.123.17-SNAPSHOT (#1637) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0d9dad650a08..36cfecf17d40 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.16 + 1.123.17-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.16 + 1.123.17-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.16 + 1.105.17-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.16 + 1.105.17-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2aae458de7f5..06af438b8857 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.16 + 1.123.17-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.16 + 1.123.17-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0e2e4baeefd7..3e5840a529cd 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.16 + 1.105.17-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.16 + 1.123.17-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1992053ee34d..90f6f6d5e9a8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.16 + 1.123.17-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.16 + 1.105.17-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.16 + 1.105.17-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.16 + 1.123.17-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3a48177a4034..384c430013bb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.16 + 1.105.17-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.16 + 1.123.17-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 35c5a58a07a4..79f1b37eaec3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.16 + 1.123.17-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index dcd0d6ec397d..0a42ecd36cd0 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.16:1.123.16 -grpc-google-cloud-pubsub-v1:1.105.16:1.105.16 -proto-google-cloud-pubsub-v1:1.105.16:1.105.16 +google-cloud-pubsub:1.123.16:1.123.17-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.16:1.105.17-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.16:1.105.17-SNAPSHOT From 8985bde8050f072f10ab5abe66d2ea5a232b30a3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 26 Jun 2023 21:13:13 +0200 Subject: [PATCH 1460/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.16 (#1638) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.16 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 91c91f2a1ae3..1513b5f3d83d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.15 + 1.123.16 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.15' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.16' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.15" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.16" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.15 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.16 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2253090b4c13..0aeee0c64980 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.15 + 1.123.16 From e25be5a6ccc286003f51a65c9e67fe89b32d4c0b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 26 Jun 2023 23:23:00 +0200 Subject: [PATCH 1461/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.29.0 (#1633) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.29.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0aeee0c64980..80ab460e5911 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.28.0 + 2.29.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 79f1b37eaec3..2b685b32f4a3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.28.0 + 2.29.0 From 534fa79ebe89647d470a63c490e6d05065ca1c01 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Jun 2023 21:38:16 +0000 Subject: [PATCH 1462/2363] chore(main): release 1.123.17 (#1640) :robot: I have created a release *beep* *boop* --- ## [1.123.17](https://togithub.com/googleapis/java-pubsub/compare/v1.123.16...v1.123.17) (2023-06-26) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.29.0 ([#1633](https://togithub.com/googleapis/java-pubsub/issues/1633)) ([e25be5a](https://togithub.com/googleapis/java-pubsub/commit/e25be5a6ccc286003f51a65c9e67fe89b32d4c0b)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 70fd356edb88..06ea4b28d77d 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.123.17](https://github.com/googleapis/java-pubsub/compare/v1.123.16...v1.123.17) (2023-06-26) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.29.0 ([#1633](https://github.com/googleapis/java-pubsub/issues/1633)) ([20096e7](https://github.com/googleapis/java-pubsub/commit/20096e7b64f9b62051f51ad28aa49b95f78b3e6b)) + ## [1.123.16](https://github.com/googleapis/java-pubsub/compare/v1.123.15...v1.123.16) (2023-06-26) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 36cfecf17d40..c308437426aa 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.17-SNAPSHOT + 1.123.17 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.17-SNAPSHOT + 1.123.17 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.17-SNAPSHOT + 1.105.17 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.17-SNAPSHOT + 1.105.17 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 06af438b8857..cc97af9cdb0d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.17-SNAPSHOT + 1.123.17 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.17-SNAPSHOT + 1.123.17 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3e5840a529cd..49940a0e75af 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.17-SNAPSHOT + 1.105.17 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.17-SNAPSHOT + 1.123.17 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 90f6f6d5e9a8..3a73ffe993bc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.17-SNAPSHOT + 1.123.17 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.17-SNAPSHOT + 1.105.17 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.17-SNAPSHOT + 1.105.17 com.google.cloud google-cloud-pubsub - 1.123.17-SNAPSHOT + 1.123.17 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 384c430013bb..4e37bb94a9d4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.17-SNAPSHOT + 1.105.17 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.17-SNAPSHOT + 1.123.17 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2b685b32f4a3..92e29cc0d4de 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.17-SNAPSHOT + 1.123.17 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0a42ecd36cd0..417ec440da79 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.16:1.123.17-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.16:1.105.17-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.16:1.105.17-SNAPSHOT +google-cloud-pubsub:1.123.17:1.123.17 +grpc-google-cloud-pubsub-v1:1.105.17:1.105.17 +proto-google-cloud-pubsub-v1:1.105.17:1.105.17 From 3e38a1389ac4cc041de77e1efc61f19ad30263ee Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 27 Jun 2023 10:32:03 -0400 Subject: [PATCH 1463/2363] docs: tightened requirements on cloud storage subscription filename suffixes (#1639) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: tightened requirements on cloud storage subscription filename suffixes PiperOrigin-RevId: 543503563 Source-Link: https://github.com/googleapis/googleapis/commit/212ecef96e3ea7c67465ff3f52680301ad0ea1f9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/532d27eea6ff128fdcbb3332176e894e76dcc685 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTMyZDI3ZWVhNmZmMTI4ZmRjYmIzMzMyMTc2ZTg5NGU3NmRjYzY4NSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../com/google/pubsub/v1/PublisherGrpc.java | 2 +- .../google/pubsub/v1/SchemaServiceGrpc.java | 2 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 2 +- .../google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../v1/AcknowledgeRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CloudStorageConfig.java | 23 ++++++++++++------- .../v1/CloudStorageConfigOrBuilder.java | 8 ++++--- .../google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../v1/CommitSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../v1/CreateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/CreateSnapshotRequest.java | 2 +- .../v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../v1/DeleteSchemaRevisionRequest.java | 2 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../DeleteSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../v1/DeleteTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../DetachSubscriptionResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Encoding.java | 2 +- .../google/pubsub/v1/ExpirationPolicy.java | 2 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/GetSchemaRequest.java | 2 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../v1/GetSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/GetSubscriptionRequest.java | 2 +- .../v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../v1/ListSchemaRevisionsResponse.java | 2 +- .../ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasRequest.java | 2 +- .../v1/ListSchemasRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasResponse.java | 2 +- .../v1/ListSchemasResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsRequest.java | 2 +- .../v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsResponse.java | 2 +- .../v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../ListSubscriptionsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsRequest.java | 2 +- ...istTopicSubscriptionsRequestOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsResponse.java | 2 +- ...stTopicSubscriptionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsRequest.java | 2 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsResponse.java | 2 +- .../v1/ListTopicsResponseOrBuilder.java | 2 +- .../pubsub/v1/MessageStoragePolicy.java | 2 +- .../v1/MessageStoragePolicyOrBuilder.java | 2 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 2 +- .../pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishResponse.java | 2 +- .../pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubMessage.java | 2 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 2 +- .../com/google/pubsub/v1/PullRequest.java | 10 ++++---- .../pubsub/v1/PullRequestOrBuilder.java | 4 ++-- .../com/google/pubsub/v1/PullResponse.java | 2 +- .../pubsub/v1/PullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PushConfig.java | 2 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/RetryPolicy.java | 2 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../pubsub/v1/RollbackSchemaRequest.java | 2 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Schema.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 2 +- .../com/google/pubsub/v1/SchemaSettings.java | 2 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SchemaView.java | 2 +- .../com/google/pubsub/v1/SeekRequest.java | 2 +- .../pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/SeekResponse.java | 2 +- .../pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Snapshot.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullRequest.java | 2 +- .../v1/StreamingPullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 2 +- .../v1/StreamingPullResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 2 +- .../pubsub/v1/SubscriptionOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Topic.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../UpdateSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../v1/UpdateTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageRequest.java | 2 +- .../v1/ValidateMessageRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageResponse.java | 2 +- .../v1/ValidateMessageResponseOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaRequest.java | 2 +- .../v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaResponse.java | 2 +- .../v1/ValidateSchemaResponseOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 3 ++- 130 files changed, 154 insertions(+), 144 deletions(-) diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 6dd738dad500..0b28b656f696 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index db5994ee198f..de291b4f6e5f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index a18f965bfb96..db35d0a087e2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index fe1a9733ea26..ad61b3fa8b72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 4951b0bb1184..b2e049435e15 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 4d2dbf75c3ec..536ed0caf4f3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 0d649b85f7b0..a498ded180a6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index abc9ac644529..8fb85ab64a34 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1386,7 +1386,8 @@ public com.google.protobuf.ByteString getFilenamePrefixBytes() { * *
        * User-provided suffix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    +   * not end in "/".
        * 
    * * string filename_suffix = 3; @@ -1410,7 +1411,8 @@ public java.lang.String getFilenameSuffix() { * *
        * User-provided suffix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    +   * not end in "/".
        * 
    * * string filename_suffix = 3; @@ -2448,7 +2450,8 @@ public Builder setFilenamePrefixBytes(com.google.protobuf.ByteString value) { * *
          * User-provided suffix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    +     * not end in "/".
          * 
    * * string filename_suffix = 3; @@ -2471,7 +2474,8 @@ public java.lang.String getFilenameSuffix() { * *
          * User-provided suffix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    +     * not end in "/".
          * 
    * * string filename_suffix = 3; @@ -2494,7 +2498,8 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { * *
          * User-provided suffix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    +     * not end in "/".
          * 
    * * string filename_suffix = 3; @@ -2516,7 +2521,8 @@ public Builder setFilenameSuffix(java.lang.String value) { * *
          * User-provided suffix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    +     * not end in "/".
          * 
    * * string filename_suffix = 3; @@ -2534,7 +2540,8 @@ public Builder clearFilenameSuffix() { * *
          * User-provided suffix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    +     * not end in "/".
          * 
    * * string filename_suffix = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 1f9f35c90aa9..5122f804a3a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -86,7 +86,8 @@ public interface CloudStorageConfigOrBuilder * *
        * User-provided suffix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    +   * not end in "/".
        * 
    * * string filename_suffix = 3; @@ -99,7 +100,8 @@ public interface CloudStorageConfigOrBuilder * *
        * User-provided suffix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    +   * not end in "/".
        * 
    * * string filename_suffix = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index 13389fd756d1..ba816deeb41b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 331bf5ae3bfd..7ac207df8b46 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 6f9cbf0d0ff1..82fe63cea74c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index ac0506961e2a..c4cc829626de 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index cda71e023be7..58c4a1896ab9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index acb4bc2d4cf6..2f24bc12309b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 0bdf92596cdc..08f316b308cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 92ad0369219a..57c34d3892e8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index c1e6ded198bd..05b705298f2b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 5b4e5d304997..9a119b4b651c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 030124772dc4..d057aaf47353 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index b5540b2a8d15..1286bce9f87e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 0d4b02596de1..3d494f98f671 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 43c455746a7d..c69c25ca8692 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index ff10872ea0c8..d91bb8783da0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index d4832080468d..53ffc2512095 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 9674387af24f..a4055d287565 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index a7267ded0b51..8360c7745d53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index f6bd9b3f23bf..910c1f9e2c5d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 27cd842bc897..6b348ec14048 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index b9e8a8769b83..0eae1bac20d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index ce75ecb805ad..4d8a60b3aae8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 838fe7682ec6..6f07b9ea47b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 975358e93f60..89229dd471d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index ac04be2f73d2..1b35de3b7914 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 4fa498b2bcbc..61bf3ff17b76 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 250f9dbad866..2ec773994bc9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 6295e6d363ea..1953ee97c6a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index f101510fd07c..9eecf39ab37c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 7738ad6d687e..66577cd6cc62 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index ca8af6c8b535..bc2288db3d77 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index ac39d1bb9fea..59b81305a18b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index b3695fc5a52c..72ce889daaa0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 97ff9f5e6be7..cba091850dce 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 4d2c8f372bc3..13e6188f6aab 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 989afe4853c6..da0e793f16e2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 0ace05c4221e..49517becbd73 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 6e11925afc0b..11cb59d07d08 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index bd5787e76b26..9c69b0a4b7cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 368e715b340c..969592443ec0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 3ee2015b1640..ca5c661c16d3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index fb37aec5396b..d2b19ce97ab2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index c4a67ace02a1..36487bebd2f6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 04f8668c86d9..cc42bfb6c35c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index bbbf2955d158..4559682d5359 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 18b22ab18b13..63bbc9cd4d16 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 73b1fac514ae..db2839f6779e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 3b04845c96cb..629620e65c9b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 1dcf23dd0835..439c431a5743 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 28083755023a..103e28b75e37 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 3e338270597d..d965d0d29859 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 6d228e04572c..9d0eb36e12f9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 778a800084e0..b24d10865f6b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 89da55072444..737bd00b73da 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 2d09f889582a..d6bc07531cbd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 27e96f6501c0..f270eed8dd5b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index dffc961dbfaf..d8c6f021e1f4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index f3f738e2cd7d..5c2e9d64bbb8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 8f5219329ea2..3e0d2ffb03f0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 2855ea04de98..b3f73a27dd48 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index c29de35145b2..fd03ece34773 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 9d6df8b6a6bd..afec846d7135 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index e606797dc128..8edf41faa577 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 6316c7763183..8348ebf3c01a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 663ca36d93de..8c0843c7d3bc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 2a3bddc2dbba..a1b5050eedf9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 5979b8605e81..96d5ca4c1528 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index c331a792e030..2268fc1626d2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index d233bca828bf..a0b5cde08a73 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 703699f5df49..0a0905e94aba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 27dbe63f8802..7d6f78725dcc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index e1d0676c46ee..cab47a3c008f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index ed7758c4437d..9e73913c8bdf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 500404845293..fcb75b41f6e3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 1eb3db22957c..fac062007787 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1221 + * google/pubsub/v1/pubsub.proto;l=1222 * @return The returnImmediately. */ @java.lang.Override @@ -687,7 +687,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1221 + * google/pubsub/v1/pubsub.proto;l=1222 * @return The returnImmediately. */ @java.lang.Override @@ -713,7 +713,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1221 + * google/pubsub/v1/pubsub.proto;l=1222 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -743,7 +743,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1221 + * google/pubsub/v1/pubsub.proto;l=1222 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 477636c7aa57..5cb9c98a3584 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,7 +71,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1221 + * google/pubsub/v1/pubsub.proto;l=1222 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index ebded4a91cb4..65b827fd0589 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index be7b61b164e8..16d1f7e5a638 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 612b8586ffc9..7124ca38f6c5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 70bf10b41375..dade5167a2cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 387e1a9a33c0..3e70473df9aa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 565e61167eab..d5617c6525b0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 4e856c8f7a0c..aee326393e16 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index e3ace44c049d..967fa903c627 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 8ce9a74a8270..6de995c705a3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index ed3bbeeda841..b7562292e450 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index fba590176efb..7cdbcff9e629 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 34ad87bb7da1..98612c8c110d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index 52269ea42cc3..296a9bc5c403 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index afd8d25edf2f..e43b99679154 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 6fad23f77274..b65abdf201b0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 2d9433fd1b44..c9ff100cd870 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 9bc91481e955..4cded2d70389 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 0732b39cca9b..009aaa5f85fd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 8d8d73e9a75b..141e78c27c4c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 5cdd14219fc4..9b2fd097d677 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 10c44204317f..bbf7ea473eaa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 96511c907fe0..89d6b8dbcd54 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index fb7ed2b18e3c..20d715043a9f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index eca392820f8c..1a8ca38b560e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index eda888e51825..52505da103ef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index b2bb7ba25673..e9d7b80f8b2d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index caeb039653ca..6e21f6ef27b0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index b2cd3d36272e..c6b27d21366e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 2d500773b224..40ee471a5585 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index f95f9b119842..6c86372857e2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 479d73fd9bbd..03e24bcc3a68 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 2acbd11207d0..27027e92b45a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 5faaddf5c3d3..921ead79e6ad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 730dc304b190..ab0f57de345a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 90fb13963f68..49ef30ab305b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index c65735f57634..ce746a8ab89d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 499f3d5583bd..8a5c924a6600 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 0498d3699e85..30ee884fc35f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 601fa796f7ad..b865330f1a9b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index e8be64dc789a..fb77170930c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 9022200bc411..e287bbd48d7f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 2c972155fbb0..a7e443e7b04b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 16439aa705b4..002d5b390343 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index 9e8467fc160b..a6d1fa45fc76 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 5f63854a42a0..9ff80f2f6b52 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1061,7 +1061,8 @@ message CloudStorageConfig { string filename_prefix = 2; // User-provided suffix for Cloud Storage filename. See the [object naming - // requirements](https://cloud.google.com/storage/docs/objects#naming). + // requirements](https://cloud.google.com/storage/docs/objects#naming). Must + // not end in "/". string filename_suffix = 3; // Defaults to text format. From f9a52f96d06c50011371ec7af5f33f51eee82019 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 Jun 2023 16:46:29 +0200 Subject: [PATCH 1464/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.17 (#1642) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.17 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1513b5f3d83d..0e5f5c562b3e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.16 + 1.123.17 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.16' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.17' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.16" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.17" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.16 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.17 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 80ab460e5911..b03eed3345c6 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.16 + 1.123.17 From 869a98f9bb3072ce7c1370419e009e0be00f6504 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 27 Jun 2023 15:00:25 +0000 Subject: [PATCH 1465/2363] chore(main): release 1.123.18-SNAPSHOT (#1641) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c308437426aa..fe4098d82568 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.17 + 1.123.18-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.17 + 1.123.18-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.17 + 1.105.18-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.17 + 1.105.18-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cc97af9cdb0d..c6726e8ab9b6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.17 + 1.123.18-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.17 + 1.123.18-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 49940a0e75af..06791f02dcb1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.17 + 1.105.18-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.17 + 1.123.18-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3a73ffe993bc..bbf132aa75c9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.17 + 1.123.18-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.17 + 1.105.18-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.17 + 1.105.18-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.17 + 1.123.18-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4e37bb94a9d4..2ebad2547a3e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.17 + 1.105.18-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.17 + 1.123.18-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 92e29cc0d4de..95f20cfc8623 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.17 + 1.123.18-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 417ec440da79..550d82af4dcf 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.17:1.123.17 -grpc-google-cloud-pubsub-v1:1.105.17:1.105.17 -proto-google-cloud-pubsub-v1:1.105.17:1.105.17 +google-cloud-pubsub:1.123.17:1.123.18-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.17:1.105.18-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.17:1.105.18-SNAPSHOT From 61fb6339a37a0615a2601d2e0a3b8cf326ffd075 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 27 Jun 2023 15:44:30 -0400 Subject: [PATCH 1466/2363] ci: javadoc job (JDK 17) in ci.yaml (#1819) (#1644) This also changes the JDK distribution from zulu to temurin https://github.com/actions/setup-java#eclipse-temurin Source-Link: https://github.com/googleapis/synthtool/commit/ef9fe2ef6d92c7ff967d9d4f704035b3f5c9051d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:31c8276a1bfb43766597d32645721c029cb94571f1b8d996cb2c290744fe52f9 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.github/workflows/ci.yaml | 26 +++++++++++++++++++------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 47a70ea40cf3..258389d1aa68 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:32851debfefed2b66038e0141f1b5c2103bb59ba80b7475adbc10ef7abab3de7 -# created: 2023-06-22T15:06:52.039318836Z + digest: sha256:31c8276a1bfb43766597d32645721c029cb94571f1b8d996cb2c290744fe52f9 +# created: 2023-06-27T18:51:58.922150125Z diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 65436cde4190..e27b2c57563c 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: - distribution: zulu + distribution: temurin java-version: ${{matrix.java}} - run: java -version - run: .kokoro/build.sh @@ -45,7 +45,7 @@ jobs: - uses: actions/setup-java@v3 with: java-version: 8 - distribution: zulu + distribution: temurin - name: "Set jvm system property environment variable for surefire plugin (unit tests)" # Maven surefire plugin (unit tests) allows us to specify JVM to run the tests. # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm @@ -54,7 +54,7 @@ jobs: - uses: actions/setup-java@v3 with: java-version: 17 - distribution: zulu + distribution: temurin - run: .kokoro/build.sh env: JOB_TYPE: test @@ -66,7 +66,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: - distribution: zulu + distribution: temurin java-version: 8 - run: java -version - run: .kokoro/build.bat @@ -81,17 +81,29 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: - distribution: zulu + distribution: temurin java-version: ${{matrix.java}} - run: java -version - run: .kokoro/dependencies.sh + javadoc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 17 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: javadoc lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: - distribution: zulu + distribution: temurin java-version: 11 - run: java -version - run: .kokoro/build.sh @@ -103,7 +115,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: - distribution: zulu + distribution: temurin java-version: 8 - run: java -version - run: .kokoro/build.sh From 9a9d931a23714d98f86ac558c417094c13ec8f1d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Jun 2023 22:04:48 +0200 Subject: [PATCH 1467/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.18.0 (#1645) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.18.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 0e5f5c562b3e..7ebc70a9ebc2 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.17.0 + 26.18.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.17.0') +implementation platform('com.google.cloud:libraries-bom:26.18.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index dd356262f7a8..14b84204b96e 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.17.0 + 26.18.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index ac37786c99e3..587a64c11674 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.17.0 + 26.18.0 pom import From bcacb5c64b13bd6f03543b54e89d2cd17654acaf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 17 Jul 2023 16:26:12 +0200 Subject: [PATCH 1468/2363] deps: update dependency org.apache.avro:avro to v1.11.2 (#1646) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b03eed3345c6..cb7f112480ad 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -51,7 +51,7 @@ org.apache.avro avro - 1.11.1 + 1.11.2 compile diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 95f20cfc8623..c9735d83b74d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -50,7 +50,7 @@ org.apache.avro avro - 1.11.1 + 1.11.2 compile diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 587a64c11674..63d053992b42 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -66,7 +66,7 @@ org.apache.avro avro - 1.11.1 + 1.11.2 org.xerial.snappy From 009e5b23b9a6a97e899b36cd2a33c06f652fad43 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 17 Jul 2023 16:26:30 +0200 Subject: [PATCH 1469/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.23.4 (#1649) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index cb7f112480ad..1804f927a3ef 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.23.3 + 3.23.4 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c9735d83b74d..6173cd5e78bb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.23.3 + 3.23.4 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 63d053992b42..9fe9b279b07b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.23.3 + 3.23.4 From e2146c47f650a643150824ee5f13a8cd765577c2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 17 Jul 2023 16:27:23 +0200 Subject: [PATCH 1470/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.0 (#1651) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bbf132aa75c9..466ab2a63820 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.12.0 + 3.13.0 pom import From bdeee55c2de5d81c8a7dcdb28f05db15d7b0e5f7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 17 Jul 2023 16:27:49 +0200 Subject: [PATCH 1471/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.2 (#1654) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1804f927a3ef..e199974614f5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.1 + 1.1.10.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6173cd5e78bb..bb11718143e5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.1 + 1.1.10.2 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9fe9b279b07b..994ea4da5a87 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -71,7 +71,7 @@ org.xerial.snappy snappy-java - 1.1.10.1 + 1.1.10.2 com.google.protobuf From 3c0ef155e6a94de554a4ac3162992493591db13a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 17 Jul 2023 21:48:55 +0200 Subject: [PATCH 1472/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.21.0 (#1650) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e199974614f5..572742ecf671 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.20.0 + 2.21.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bb11718143e5..039476597dfc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.20.0 + 2.21.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 994ea4da5a87..a352d25f70a5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.20.0 + 2.21.0 tests From 9e695ab4a35a0d33dc4bfce923f434d566aa74e6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 17 Jul 2023 16:08:04 -0400 Subject: [PATCH 1473/2363] chore(main): release 1.123.18 (#1643) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 16 ++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 34 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 06ea4b28d77d..fd9b7a0ac7f3 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## [1.123.18](https://github.com/googleapis/java-pubsub/compare/v1.123.17...v1.123.18) (2023-07-17) + + +### Documentation + +* Tightened requirements on cloud storage subscription filename suffixes ([#1639](https://github.com/googleapis/java-pubsub/issues/1639)) ([34a182a](https://github.com/googleapis/java-pubsub/commit/34a182a1655c843cd728850b278ba2e9ce9a5680)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.21.0 ([#1650](https://github.com/googleapis/java-pubsub/issues/1650)) ([69879d4](https://github.com/googleapis/java-pubsub/commit/69879d4c9d7a220f9c5a38b144d49e71ad3b94d0)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.0 ([#1651](https://github.com/googleapis/java-pubsub/issues/1651)) ([83fdbe2](https://github.com/googleapis/java-pubsub/commit/83fdbe2435d8fa03b5648272a794874ff910fcb6)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.23.4 ([#1649](https://github.com/googleapis/java-pubsub/issues/1649)) ([9f9c5ca](https://github.com/googleapis/java-pubsub/commit/9f9c5ca2abddde274c79cf36bf2aea91b7b8b455)) +* Update dependency org.apache.avro:avro to v1.11.2 ([#1646](https://github.com/googleapis/java-pubsub/issues/1646)) ([5859fe4](https://github.com/googleapis/java-pubsub/commit/5859fe4c6540fa577942f38e117798d3c3cdc498)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.2 ([#1654](https://github.com/googleapis/java-pubsub/issues/1654)) ([05445f0](https://github.com/googleapis/java-pubsub/commit/05445f0ccf1cd78a604ec267d7a146cdd1770c59)) + ## [1.123.17](https://github.com/googleapis/java-pubsub/compare/v1.123.16...v1.123.17) (2023-06-26) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fe4098d82568..c71fbb398d49 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.18-SNAPSHOT + 1.123.18 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.18-SNAPSHOT + 1.123.18 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.18-SNAPSHOT + 1.105.18 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.18-SNAPSHOT + 1.105.18 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c6726e8ab9b6..63a8167c3887 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.18-SNAPSHOT + 1.123.18 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.18-SNAPSHOT + 1.123.18 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 06791f02dcb1..e8f65f9eaabc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.18-SNAPSHOT + 1.105.18 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.18-SNAPSHOT + 1.123.18 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 466ab2a63820..c63e2dfbadaa 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.18-SNAPSHOT + 1.123.18 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.18-SNAPSHOT + 1.105.18 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.18-SNAPSHOT + 1.105.18 com.google.cloud google-cloud-pubsub - 1.123.18-SNAPSHOT + 1.123.18 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2ebad2547a3e..661e9021e04d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.18-SNAPSHOT + 1.105.18 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.18-SNAPSHOT + 1.123.18 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 039476597dfc..3063bf1e9645 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.18-SNAPSHOT + 1.123.18 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 550d82af4dcf..37a541348a54 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.17:1.123.18-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.17:1.105.18-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.17:1.105.18-SNAPSHOT +google-cloud-pubsub:1.123.18:1.123.18 +grpc-google-cloud-pubsub-v1:1.105.18:1.105.18 +proto-google-cloud-pubsub-v1:1.105.18:1.105.18 From c2e51b1d8f0652bb1c2eb04bd8be25e9fda9c9e1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jul 2023 16:20:07 -0400 Subject: [PATCH 1474/2363] build(deps): bump cryptography from 39.0.1 to 41.0.2 in /.kokoro (#1655) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): bump cryptography from 39.0.1 to 41.0.2 in /.kokoro Bumps [cryptography](https://github.com/pyca/cryptography) from 39.0.1 to 41.0.2. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/39.0.1...41.0.2) --- updated-dependencies: - dependency-name: cryptography dependency-type: indirect ... Signed-off-by: dependabot[bot] * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Owl Bot From 65924086e496c5587d92983ce9ade2c46b688317 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 17 Jul 2023 20:34:14 +0000 Subject: [PATCH 1475/2363] chore(main): release 1.123.19-SNAPSHOT (#1657) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c71fbb398d49..7ddd2a20ca49 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.18 + 1.123.19-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.18 + 1.123.19-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.18 + 1.105.19-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.18 + 1.105.19-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 63a8167c3887..bf414a6e861e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.18 + 1.123.19-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.18 + 1.123.19-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e8f65f9eaabc..7be16474a524 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.18 + 1.105.19-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.18 + 1.123.19-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c63e2dfbadaa..cf56f20e758f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.18 + 1.123.19-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.18 + 1.105.19-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.18 + 1.105.19-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.18 + 1.123.19-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 661e9021e04d..97916d59984c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.18 + 1.105.19-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.18 + 1.123.19-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3063bf1e9645..a55679a3d0c3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.18 + 1.123.19-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 37a541348a54..6dca705d6bc2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.18:1.123.18 -grpc-google-cloud-pubsub-v1:1.105.18:1.105.18 -proto-google-cloud-pubsub-v1:1.105.18:1.105.18 +google-cloud-pubsub:1.123.18:1.123.19-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.18:1.105.19-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.18:1.105.19-SNAPSHOT From 15d7ffe46df78ec400839e601864bc955c5ea20e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Jul 2023 17:34:34 +0200 Subject: [PATCH 1476/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.30.1 (#1656) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.30.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7ebc70a9ebc2..5242a4d3c4b7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.17' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.18' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.17" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.18" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.17 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.18 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 572742ecf671..a655ba71d6c0 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.29.0 + 2.30.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a55679a3d0c3..3e6bcd358309 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.29.0 + 2.30.1 From 8da7e95b2400e22c9aa61768152f41e9ba69673e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Jul 2023 17:34:53 +0200 Subject: [PATCH 1477/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.18 (#1658) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.18 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5242a4d3c4b7..f08670c14c24 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.17 + 1.123.18 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a655ba71d6c0..7cbed262fa66 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.17 + 1.123.18 From 82176c18bb7f5f1443241d4505d8d8ed402ed55e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Jul 2023 17:35:11 +0200 Subject: [PATCH 1478/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.19.0 (#1659) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.19.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f08670c14c24..2fe83530a7b8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.18.0 + 26.19.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.18.0') +implementation platform('com.google.cloud:libraries-bom:26.19.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 14b84204b96e..f91e6e923be2 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.18.0 + 26.19.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a352d25f70a5..e6482909d1de 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.18.0 + 26.19.0 pom import From 0146e36901f3900348d8331ffc18305c2fde7f9c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Jul 2023 17:35:30 +0200 Subject: [PATCH 1479/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.7 (#1660) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.7 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7ddd2a20ca49..75ed5c0c4cdc 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.6 + 1.5.7 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index cf56f20e758f..4cc316facfc3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.6 + 1.5.7 From 5d062187ed1fd463d122491a4b4747383c67faca Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Jul 2023 21:49:36 +0200 Subject: [PATCH 1480/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.21.1 (#1662) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7cbed262fa66..01ecf9b031f2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.21.0 + 2.21.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3e6bcd358309..b059393c2618 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.21.0 + 2.21.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e6482909d1de..1c0c9d20c0ee 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.21.0 + 2.21.1 tests From 47f8a3465a81228aebe02486c5edffa3f89ac59f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 24 Jul 2023 20:48:14 +0200 Subject: [PATCH 1481/2363] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.10.0 (#1666) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.junit.vintage:junit-vintage-engine](https://junit.org/junit5/) ([source](https://togithub.com/junit-team/junit5)) | `5.9.3` -> `5.10.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.junit.vintage:junit-vintage-engine/5.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.junit.vintage:junit-vintage-engine/5.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.junit.vintage:junit-vintage-engine/5.9.3/5.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.junit.vintage:junit-vintage-engine/5.9.3/5.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index f91e6e923be2..40bd15b830cb 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.junit.vintage junit-vintage-engine - 5.9.3 + 5.10.0 test From c55725449952461d975ef36e3bf0dd7f51bab64f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 24 Jul 2023 20:48:19 +0200 Subject: [PATCH 1482/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.3 (#1665) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.xerial.snappy:snappy-java](https://togithub.com/xerial/snappy-java) | `1.1.10.2` -> `1.1.10.3` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.xerial.snappy:snappy-java/1.1.10.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.xerial.snappy:snappy-java/1.1.10.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.xerial.snappy:snappy-java/1.1.10.2/1.1.10.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.xerial.snappy:snappy-java/1.1.10.2/1.1.10.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    xerial/snappy-java (org.xerial.snappy:snappy-java) ### [`v1.1.10.3`](https://togithub.com/xerial/snappy-java/releases/tag/v1.1.10.3) [Compare Source](https://togithub.com/xerial/snappy-java/compare/v1.1.10.2...v1.1.10.3) ##### What's Changed ##### 🐛 Bug Fixes - Fix the `GLIBC_2.32 not found` issue of `libsnappyjava.so` in certain Linux distributions on s390x by [@​kun-lu20](https://togithub.com/kun-lu20) in [https://togithub.com/xerial/snappy-java/pull/481](https://togithub.com/xerial/snappy-java/pull/481) ##### 🔗 Dependency Updates - Update scalafmt-core to 3.7.10 by [@​xerial-bot](https://togithub.com/xerial-bot) in [https://togithub.com/xerial/snappy-java/pull/480](https://togithub.com/xerial/snappy-java/pull/480) - Update native libraries by [@​github-actions](https://togithub.com/github-actions) in [https://togithub.com/xerial/snappy-java/pull/482](https://togithub.com/xerial/snappy-java/pull/482) ##### New Contributors - [@​kun-lu20](https://togithub.com/kun-lu20) made their first contribution in [https://togithub.com/xerial/snappy-java/pull/481](https://togithub.com/xerial/snappy-java/pull/481) **Full Changelog**: https://togithub.com/xerial/snappy-java/compare/v1.1.10.2...v1.1.10.3
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 01ecf9b031f2..d99e15929f8f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.2 + 1.1.10.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b059393c2618..bd59b6d47e04 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.2 + 1.1.10.3 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1c0c9d20c0ee..2c4261707e8e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -71,7 +71,7 @@ org.xerial.snappy snappy-java - 1.1.10.2 + 1.1.10.3 com.google.protobuf From 8b5cfac4934b67bee076595b829e99f297708c43 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 19:24:18 +0000 Subject: [PATCH 1483/2363] chore: Update the Java code generator (gapic-generator-java) to 2.23.1 (#1664) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 549674836 Source-Link: https://togithub.com/googleapis/googleapis/commit/3b7a12146fed6cb648046439a2dad0b3ad56d202 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/2d643a4eff8c8ef4c9d5a2e59d2a0ca7c991eab6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmQ2NDNhNGVmZjhjOGVmNGM5ZDVhMmU1OWQyYTBjYTdjOTkxZWFiNiJ9 --- .../reflect-config.json | 2603 +++++++++++++++++ 1 file changed, 2603 insertions(+) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json new file mode 100644 index 000000000000..8fd73b027294 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -0,0 +1,2603 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$LogType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.AcknowledgeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.AcknowledgeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.BigQueryConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.BigQueryConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.BigQueryConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CloudStorageConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CloudStorageConfig$AvroConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CloudStorageConfig$AvroConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CloudStorageConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CloudStorageConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CloudStorageConfig$TextConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CloudStorageConfig$TextConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CommitSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CommitSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CreateSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CreateSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CreateSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.CreateSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeadLetterPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeadLetterPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeleteSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeleteSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeleteSchemaRevisionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeleteSchemaRevisionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeleteSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeleteSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeleteSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeleteSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeleteTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DeleteTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DetachSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DetachSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DetachSubscriptionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.DetachSubscriptionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Encoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ExpirationPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ExpirationPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.GetSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.GetSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.GetSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.GetSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.GetSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.GetSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.GetTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.GetTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSchemaRevisionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSchemaRevisionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSchemasRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSchemasRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSchemasResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSchemasResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSnapshotsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSnapshotsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSnapshotsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSnapshotsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSubscriptionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSubscriptionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSubscriptionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListSubscriptionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicSnapshotsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicSnapshotsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicSnapshotsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicSnapshotsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicSubscriptionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicSubscriptionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicSubscriptionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicSubscriptionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ListTopicsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.MessageStoragePolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.MessageStoragePolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ModifyAckDeadlineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ModifyAckDeadlineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ModifyPushConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ModifyPushConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PublishRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PublishRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PublishResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PublishResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PubsubMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PubsubMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PullRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PullRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PullResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PullResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PushConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PushConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PushConfig$NoWrapper", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PushConfig$NoWrapper$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PushConfig$OidcToken", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PushConfig$OidcToken$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PushConfig$PubsubWrapper", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PushConfig$PubsubWrapper$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ReceivedMessage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ReceivedMessage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.RetryPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.RetryPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.RollbackSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.RollbackSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Schema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Schema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Schema$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.SchemaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.SchemaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.SchemaView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.SeekRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.SeekRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.SeekResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.SeekResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Snapshot", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Snapshot$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.StreamingPullRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.StreamingPullRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.StreamingPullResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.StreamingPullResponse$AcknowledgeConfirmation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.StreamingPullResponse$AcknowledgeConfirmation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.StreamingPullResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.StreamingPullResponse$ModifyAckDeadlineConfirmation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.StreamingPullResponse$ModifyAckDeadlineConfirmation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.StreamingPullResponse$SubscriptionProperties", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.StreamingPullResponse$SubscriptionProperties$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Subscription", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Subscription$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Subscription$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Topic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Topic$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.UpdateSnapshotRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.UpdateSnapshotRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.UpdateSubscriptionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.UpdateSubscriptionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.UpdateTopicRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.UpdateTopicRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ValidateMessageRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ValidateMessageRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ValidateMessageResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ValidateMessageResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ValidateSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ValidateSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ValidateSchemaResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.ValidateSchemaResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file From 9a03d10c1804d0baf613ede5842dc6f51ef9cc1f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 24 Jul 2023 20:28:18 +0000 Subject: [PATCH 1484/2363] chore: update requirements.txt to address dependabot security alerts (#1829) (#1667) * chore: update dependencies in requirements.txt to address dependabot security alerts * update dependencies within gcp/templates --------- Co-authored-by: Anthonios Partheniou Source-Link: https://togithub.com/googleapis/synthtool/commit/af76aa51249c5f6d8efb66e8ac390ec651f9f2f6 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:46d2d262cd285c638656c8bde468011b723dc0c7ffd6a5ecc2650fe639c82e8f --- java-pubsub/.github/.OwlBot.lock.yaml | 4 +- java-pubsub/.kokoro/requirements.txt | 573 +++++++++++++++----------- 2 files changed, 332 insertions(+), 245 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 258389d1aa68..d5500ef44246 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:31c8276a1bfb43766597d32645721c029cb94571f1b8d996cb2c290744fe52f9 -# created: 2023-06-27T18:51:58.922150125Z + digest: sha256:46d2d262cd285c638656c8bde468011b723dc0c7ffd6a5ecc2650fe639c82e8f +# created: 2023-07-24T14:21:17.707234503Z diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index c80f0a87cc53..32989051e7f9 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -1,20 +1,20 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.9 # by the following command: # -# pip-compile --allow-unsafe --generate-hashes requirements.in +# pip-compile requirements.in --generate-hashes --upgrade # -attrs==22.1.0 \ - --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ - --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c +attrs==23.1.0 \ + --hash=sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04 \ + --hash=sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015 # via gcp-releasetool -cachetools==4.2.4 \ - --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ - --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 +cachetools==5.3.1 \ + --hash=sha256:95ef631eeaea14ba2e36f06437f36463aac3a096799e876ee55e5cdccb102590 \ + --hash=sha256:dce83f2d9b4e1f732a8cd44af8e8fab2dbe46201467fc98b3ef8f269092bf62b # via google-auth -certifi==2022.12.7 \ - --hash=sha256:35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3 \ - --hash=sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18 +certifi==2023.5.7 \ + --hash=sha256:0f0d56dc5a6ad56fd4ba36484d6cc34451e1c6548c61daad8c320169f91eddc7 \ + --hash=sha256:c6c2e98f5c7869efca1f8916fed228dd91539f9f1b444c314c06eef02980c716 # via requests cffi==1.15.1 \ --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ @@ -82,9 +82,82 @@ cffi==1.15.1 \ --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 # via cryptography -charset-normalizer==2.0.12 \ - --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ - --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df +charset-normalizer==3.2.0 \ + --hash=sha256:04e57ab9fbf9607b77f7d057974694b4f6b142da9ed4a199859d9d4d5c63fe96 \ + --hash=sha256:09393e1b2a9461950b1c9a45d5fd251dc7c6f228acab64da1c9c0165d9c7765c \ + --hash=sha256:0b87549028f680ca955556e3bd57013ab47474c3124dc069faa0b6545b6c9710 \ + --hash=sha256:1000fba1057b92a65daec275aec30586c3de2401ccdcd41f8a5c1e2c87078706 \ + --hash=sha256:1249cbbf3d3b04902ff081ffbb33ce3377fa6e4c7356f759f3cd076cc138d020 \ + --hash=sha256:1920d4ff15ce893210c1f0c0e9d19bfbecb7983c76b33f046c13a8ffbd570252 \ + --hash=sha256:193cbc708ea3aca45e7221ae58f0fd63f933753a9bfb498a3b474878f12caaad \ + --hash=sha256:1a100c6d595a7f316f1b6f01d20815d916e75ff98c27a01ae817439ea7726329 \ + --hash=sha256:1f30b48dd7fa1474554b0b0f3fdfdd4c13b5c737a3c6284d3cdc424ec0ffff3a \ + --hash=sha256:203f0c8871d5a7987be20c72442488a0b8cfd0f43b7973771640fc593f56321f \ + --hash=sha256:246de67b99b6851627d945db38147d1b209a899311b1305dd84916f2b88526c6 \ + --hash=sha256:2dee8e57f052ef5353cf608e0b4c871aee320dd1b87d351c28764fc0ca55f9f4 \ + --hash=sha256:2efb1bd13885392adfda4614c33d3b68dee4921fd0ac1d3988f8cbb7d589e72a \ + --hash=sha256:2f4ac36d8e2b4cc1aa71df3dd84ff8efbe3bfb97ac41242fbcfc053c67434f46 \ + --hash=sha256:3170c9399da12c9dc66366e9d14da8bf7147e1e9d9ea566067bbce7bb74bd9c2 \ + --hash=sha256:3b1613dd5aee995ec6d4c69f00378bbd07614702a315a2cf6c1d21461fe17c23 \ + --hash=sha256:3bb3d25a8e6c0aedd251753a79ae98a093c7e7b471faa3aa9a93a81431987ace \ + --hash=sha256:3bb7fda7260735efe66d5107fb7e6af6a7c04c7fce9b2514e04b7a74b06bf5dd \ + --hash=sha256:41b25eaa7d15909cf3ac4c96088c1f266a9a93ec44f87f1d13d4a0e86c81b982 \ + --hash=sha256:45de3f87179c1823e6d9e32156fb14c1927fcc9aba21433f088fdfb555b77c10 \ + --hash=sha256:46fb8c61d794b78ec7134a715a3e564aafc8f6b5e338417cb19fe9f57a5a9bf2 \ + --hash=sha256:48021783bdf96e3d6de03a6e39a1171ed5bd7e8bb93fc84cc649d11490f87cea \ + --hash=sha256:4957669ef390f0e6719db3613ab3a7631e68424604a7b448f079bee145da6e09 \ + --hash=sha256:5e86d77b090dbddbe78867a0275cb4df08ea195e660f1f7f13435a4649e954e5 \ + --hash=sha256:6339d047dab2780cc6220f46306628e04d9750f02f983ddb37439ca47ced7149 \ + --hash=sha256:681eb3d7e02e3c3655d1b16059fbfb605ac464c834a0c629048a30fad2b27489 \ + --hash=sha256:6c409c0deba34f147f77efaa67b8e4bb83d2f11c8806405f76397ae5b8c0d1c9 \ + --hash=sha256:7095f6fbfaa55defb6b733cfeb14efaae7a29f0b59d8cf213be4e7ca0b857b80 \ + --hash=sha256:70c610f6cbe4b9fce272c407dd9d07e33e6bf7b4aa1b7ffb6f6ded8e634e3592 \ + --hash=sha256:72814c01533f51d68702802d74f77ea026b5ec52793c791e2da806a3844a46c3 \ + --hash=sha256:7a4826ad2bd6b07ca615c74ab91f32f6c96d08f6fcc3902ceeedaec8cdc3bcd6 \ + --hash=sha256:7c70087bfee18a42b4040bb9ec1ca15a08242cf5867c58726530bdf3945672ed \ + --hash=sha256:855eafa5d5a2034b4621c74925d89c5efef61418570e5ef9b37717d9c796419c \ + --hash=sha256:8700f06d0ce6f128de3ccdbc1acaea1ee264d2caa9ca05daaf492fde7c2a7200 \ + --hash=sha256:89f1b185a01fe560bc8ae5f619e924407efca2191b56ce749ec84982fc59a32a \ + --hash=sha256:8b2c760cfc7042b27ebdb4a43a4453bd829a5742503599144d54a032c5dc7e9e \ + --hash=sha256:8c2f5e83493748286002f9369f3e6607c565a6a90425a3a1fef5ae32a36d749d \ + --hash=sha256:8e098148dd37b4ce3baca71fb394c81dc5d9c7728c95df695d2dca218edf40e6 \ + --hash=sha256:94aea8eff76ee6d1cdacb07dd2123a68283cb5569e0250feab1240058f53b623 \ + --hash=sha256:95eb302ff792e12aba9a8b8f8474ab229a83c103d74a750ec0bd1c1eea32e669 \ + --hash=sha256:9bd9b3b31adcb054116447ea22caa61a285d92e94d710aa5ec97992ff5eb7cf3 \ + --hash=sha256:9e608aafdb55eb9f255034709e20d5a83b6d60c054df0802fa9c9883d0a937aa \ + --hash=sha256:a103b3a7069b62f5d4890ae1b8f0597618f628b286b03d4bc9195230b154bfa9 \ + --hash=sha256:a386ebe437176aab38c041de1260cd3ea459c6ce5263594399880bbc398225b2 \ + --hash=sha256:a38856a971c602f98472050165cea2cdc97709240373041b69030be15047691f \ + --hash=sha256:a401b4598e5d3f4a9a811f3daf42ee2291790c7f9d74b18d75d6e21dda98a1a1 \ + --hash=sha256:a7647ebdfb9682b7bb97e2a5e7cb6ae735b1c25008a70b906aecca294ee96cf4 \ + --hash=sha256:aaf63899c94de41fe3cf934601b0f7ccb6b428c6e4eeb80da72c58eab077b19a \ + --hash=sha256:b0dac0ff919ba34d4df1b6131f59ce95b08b9065233446be7e459f95554c0dc8 \ + --hash=sha256:baacc6aee0b2ef6f3d308e197b5d7a81c0e70b06beae1f1fcacffdbd124fe0e3 \ + --hash=sha256:bf420121d4c8dce6b889f0e8e4ec0ca34b7f40186203f06a946fa0276ba54029 \ + --hash=sha256:c04a46716adde8d927adb9457bbe39cf473e1e2c2f5d0a16ceb837e5d841ad4f \ + --hash=sha256:c0b21078a4b56965e2b12f247467b234734491897e99c1d51cee628da9786959 \ + --hash=sha256:c1c76a1743432b4b60ab3358c937a3fe1341c828ae6194108a94c69028247f22 \ + --hash=sha256:c4983bf937209c57240cff65906b18bb35e64ae872da6a0db937d7b4af845dd7 \ + --hash=sha256:c4fb39a81950ec280984b3a44f5bd12819953dc5fa3a7e6fa7a80db5ee853952 \ + --hash=sha256:c57921cda3a80d0f2b8aec7e25c8aa14479ea92b5b51b6876d975d925a2ea346 \ + --hash=sha256:c8063cf17b19661471ecbdb3df1c84f24ad2e389e326ccaf89e3fb2484d8dd7e \ + --hash=sha256:ccd16eb18a849fd8dcb23e23380e2f0a354e8daa0c984b8a732d9cfaba3a776d \ + --hash=sha256:cd6dbe0238f7743d0efe563ab46294f54f9bc8f4b9bcf57c3c666cc5bc9d1299 \ + --hash=sha256:d62e51710986674142526ab9f78663ca2b0726066ae26b78b22e0f5e571238dd \ + --hash=sha256:db901e2ac34c931d73054d9797383d0f8009991e723dab15109740a63e7f902a \ + --hash=sha256:e03b8895a6990c9ab2cdcd0f2fe44088ca1c65ae592b8f795c3294af00a461c3 \ + --hash=sha256:e1c8a2f4c69e08e89632defbfabec2feb8a8d99edc9f89ce33c4b9e36ab63037 \ + --hash=sha256:e4b749b9cc6ee664a3300bb3a273c1ca8068c46be705b6c31cf5d276f8628a94 \ + --hash=sha256:e6a5bf2cba5ae1bb80b154ed68a3cfa2fa00fde979a7f50d6598d3e17d9ac20c \ + --hash=sha256:e857a2232ba53ae940d3456f7533ce6ca98b81917d47adc3c7fd55dad8fab858 \ + --hash=sha256:ee4006268ed33370957f55bf2e6f4d263eaf4dc3cfc473d1d90baff6ed36ce4a \ + --hash=sha256:eef9df1eefada2c09a5e7a40991b9fc6ac6ef20b1372abd48d2794a316dc0449 \ + --hash=sha256:f058f6963fd82eb143c692cecdc89e075fa0828db2e5b291070485390b2f1c9c \ + --hash=sha256:f25c229a6ba38a35ae6e25ca1264621cc25d4d38dca2942a7fce0b67a4efe918 \ + --hash=sha256:f2a1d0fd4242bd8643ce6f98927cf9c04540af6efa92323e9d3124f57727bfc1 \ + --hash=sha256:f7560358a6811e52e9c4d142d497f1a6e10103d3a6881f18d04dbce3729c0e2c \ + --hash=sha256:f779d3ad205f108d14e99bb3859aa7dd8e9c68874617c72354d7ecaec2a054ac \ + --hash=sha256:f87f746ee241d30d6ed93969de31e5ffd09a2961a051e60ae6bddde9ec3583aa # via requests click==8.0.4 \ --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ @@ -97,121 +170,152 @@ colorlog==6.7.0 \ --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 # via gcp-docuploader -cryptography==39.0.1 \ - --hash=sha256:0f8da300b5c8af9f98111ffd512910bc792b4c77392a9523624680f7956a99d4 \ - --hash=sha256:35f7c7d015d474f4011e859e93e789c87d21f6f4880ebdc29896a60403328f1f \ - --hash=sha256:5aa67414fcdfa22cf052e640cb5ddc461924a045cacf325cd164e65312d99502 \ - --hash=sha256:5d2d8b87a490bfcd407ed9d49093793d0f75198a35e6eb1a923ce1ee86c62b41 \ - --hash=sha256:6687ef6d0a6497e2b58e7c5b852b53f62142cfa7cd1555795758934da363a965 \ - --hash=sha256:6f8ba7f0328b79f08bdacc3e4e66fb4d7aab0c3584e0bd41328dce5262e26b2e \ - --hash=sha256:706843b48f9a3f9b9911979761c91541e3d90db1ca905fd63fee540a217698bc \ - --hash=sha256:807ce09d4434881ca3a7594733669bd834f5b2c6d5c7e36f8c00f691887042ad \ - --hash=sha256:83e17b26de248c33f3acffb922748151d71827d6021d98c70e6c1a25ddd78505 \ - --hash=sha256:96f1157a7c08b5b189b16b47bc9db2332269d6680a196341bf30046330d15388 \ - --hash=sha256:aec5a6c9864be7df2240c382740fcf3b96928c46604eaa7f3091f58b878c0bb6 \ - --hash=sha256:b0afd054cd42f3d213bf82c629efb1ee5f22eba35bf0eec88ea9ea7304f511a2 \ - --hash=sha256:ced4e447ae29ca194449a3f1ce132ded8fcab06971ef5f618605aacaa612beac \ - --hash=sha256:d1f6198ee6d9148405e49887803907fe8962a23e6c6f83ea7d98f1c0de375695 \ - --hash=sha256:e124352fd3db36a9d4a21c1aa27fd5d051e621845cb87fb851c08f4f75ce8be6 \ - --hash=sha256:e422abdec8b5fa8462aa016786680720d78bdce7a30c652b7fadf83a4ba35336 \ - --hash=sha256:ef8b72fa70b348724ff1218267e7f7375b8de4e8194d1636ee60510aae104cd0 \ - --hash=sha256:f0c64d1bd842ca2633e74a1a28033d139368ad959872533b1bab8c80e8240a0c \ - --hash=sha256:f24077a3b5298a5a06a8e0536e3ea9ec60e4c7ac486755e5fb6e6ea9b3500106 \ - --hash=sha256:fdd188c8a6ef8769f148f88f859884507b954cc64db6b52f66ef199bb9ad660a \ - --hash=sha256:fe913f20024eb2cb2f323e42a64bdf2911bb9738a15dba7d3cce48151034e3a8 +cryptography==41.0.2 \ + --hash=sha256:01f1d9e537f9a15b037d5d9ee442b8c22e3ae11ce65ea1f3316a41c78756b711 \ + --hash=sha256:079347de771f9282fbfe0e0236c716686950c19dee1b76240ab09ce1624d76d7 \ + --hash=sha256:182be4171f9332b6741ee818ec27daff9fb00349f706629f5cbf417bd50e66fd \ + --hash=sha256:192255f539d7a89f2102d07d7375b1e0a81f7478925b3bc2e0549ebf739dae0e \ + --hash=sha256:2a034bf7d9ca894720f2ec1d8b7b5832d7e363571828037f9e0c4f18c1b58a58 \ + --hash=sha256:342f3767e25876751e14f8459ad85e77e660537ca0a066e10e75df9c9e9099f0 \ + --hash=sha256:439c3cc4c0d42fa999b83ded80a9a1fb54d53c58d6e59234cfe97f241e6c781d \ + --hash=sha256:49c3222bb8f8e800aead2e376cbef687bc9e3cb9b58b29a261210456a7783d83 \ + --hash=sha256:674b669d5daa64206c38e507808aae49904c988fa0a71c935e7006a3e1e83831 \ + --hash=sha256:7a9a3bced53b7f09da251685224d6a260c3cb291768f54954e28f03ef14e3766 \ + --hash=sha256:7af244b012711a26196450d34f483357e42aeddb04128885d95a69bd8b14b69b \ + --hash=sha256:7d230bf856164de164ecb615ccc14c7fc6de6906ddd5b491f3af90d3514c925c \ + --hash=sha256:84609ade00a6ec59a89729e87a503c6e36af98ddcd566d5f3be52e29ba993182 \ + --hash=sha256:9a6673c1828db6270b76b22cc696f40cde9043eb90373da5c2f8f2158957f42f \ + --hash=sha256:9b6d717393dbae53d4e52684ef4f022444fc1cce3c48c38cb74fca29e1f08eaa \ + --hash=sha256:9c3fe6534d59d071ee82081ca3d71eed3210f76ebd0361798c74abc2bcf347d4 \ + --hash=sha256:a719399b99377b218dac6cf547b6ec54e6ef20207b6165126a280b0ce97e0d2a \ + --hash=sha256:b332cba64d99a70c1e0836902720887fb4529ea49ea7f5462cf6640e095e11d2 \ + --hash=sha256:d124682c7a23c9764e54ca9ab5b308b14b18eba02722b8659fb238546de83a76 \ + --hash=sha256:d73f419a56d74fef257955f51b18d046f3506270a5fd2ac5febbfa259d6c0fa5 \ + --hash=sha256:f0dc40e6f7aa37af01aba07277d3d64d5a03dc66d682097541ec4da03cc140ee \ + --hash=sha256:f14ad275364c8b4e525d018f6716537ae7b6d369c094805cae45300847e0894f \ + --hash=sha256:f772610fe364372de33d76edcd313636a25684edb94cee53fd790195f5989d14 # via # gcp-releasetool # secretstorage -gcp-docuploader==0.6.4 \ - --hash=sha256:01486419e24633af78fd0167db74a2763974765ee8078ca6eb6964d0ebd388af \ - --hash=sha256:70861190c123d907b3b067da896265ead2eeb9263969d6955c9e0bb091b5ccbf +gcp-docuploader==0.6.5 \ + --hash=sha256:30221d4ac3e5a2b9c69aa52fdbef68cc3f27d0e6d0d90e220fc024584b8d2318 \ + --hash=sha256:b7458ef93f605b9d46a4bf3a8dc1755dad1f31d030c8679edf304e343b347eea # via -r requirements.in -gcp-releasetool==1.10.5 \ - --hash=sha256:174b7b102d704b254f2a26a3eda2c684fd3543320ec239baf771542a2e58e109 \ - --hash=sha256:e29d29927fe2ca493105a82958c6873bb2b90d503acac56be2c229e74de0eec9 +gcp-releasetool==1.16.0 \ + --hash=sha256:27bf19d2e87aaa884096ff941aa3c592c482be3d6a2bfe6f06afafa6af2353e3 \ + --hash=sha256:a316b197a543fd036209d0caba7a8eb4d236d8e65381c80cbc6d7efaa7606d63 # via -r requirements.in -google-api-core==2.8.2 \ - --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ - --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 +google-api-core==2.11.1 \ + --hash=sha256:25d29e05a0058ed5f19c61c0a78b1b53adea4d9364b464d014fbda941f6d1c9a \ + --hash=sha256:d92a5a92dc36dd4f4b9ee4e55528a90e432b059f93aee6ad857f9de8cc7ae94a # via # google-cloud-core # google-cloud-storage -google-auth==2.14.1 \ - --hash=sha256:ccaa901f31ad5cbb562615eb8b664b3dd0bf5404a67618e642307f00613eda4d \ - --hash=sha256:f5d8701633bebc12e0deea4df8abd8aff31c28b355360597f7f2ee60f2e4d016 +google-auth==2.22.0 \ + --hash=sha256:164cba9af4e6e4e40c3a4f90a1a6c12ee56f14c0b4868d1ca91b32826ab334ce \ + --hash=sha256:d61d1b40897407b574da67da1a833bdc10d5a11642566e506565d1b1a46ba873 # via # gcp-releasetool # google-api-core # google-cloud-core # google-cloud-storage -google-cloud-core==2.3.1 \ - --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ - --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 +google-cloud-core==2.3.3 \ + --hash=sha256:37b80273c8d7eee1ae816b3a20ae43585ea50506cb0e60f3cf5be5f87f1373cb \ + --hash=sha256:fbd11cad3e98a7e5b0343dc07cb1039a5ffd7a5bb96e1f1e27cee4bda4a90863 # via google-cloud-storage -google-cloud-storage==2.0.0 \ - --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ - --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 +google-cloud-storage==2.10.0 \ + --hash=sha256:934b31ead5f3994e5360f9ff5750982c5b6b11604dc072bc452c25965e076dc7 \ + --hash=sha256:9433cf28801671de1c80434238fb1e7e4a1ba3087470e90f70c928ea77c2b9d7 # via gcp-docuploader -google-crc32c==1.3.0 \ - --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ - --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ - --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ - --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ - --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ - --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ - --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ - --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ - --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ - --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ - --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ - --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ - --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ - --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ - --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ - --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ - --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ - --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ - --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ - --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ - --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ - --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ - --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ - --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ - --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ - --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ - --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ - --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ - --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ - --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ - --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ - --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ - --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ - --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ - --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ - --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ - --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ - --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ - --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ - --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ - --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ - --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ - --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 +google-crc32c==1.5.0 \ + --hash=sha256:024894d9d3cfbc5943f8f230e23950cd4906b2fe004c72e29b209420a1e6b05a \ + --hash=sha256:02c65b9817512edc6a4ae7c7e987fea799d2e0ee40c53ec573a692bee24de876 \ + --hash=sha256:02ebb8bf46c13e36998aeaad1de9b48f4caf545e91d14041270d9dca767b780c \ + --hash=sha256:07eb3c611ce363c51a933bf6bd7f8e3878a51d124acfc89452a75120bc436289 \ + --hash=sha256:1034d91442ead5a95b5aaef90dbfaca8633b0247d1e41621d1e9f9db88c36298 \ + --hash=sha256:116a7c3c616dd14a3de8c64a965828b197e5f2d121fedd2f8c5585c547e87b02 \ + --hash=sha256:19e0a019d2c4dcc5e598cd4a4bc7b008546b0358bd322537c74ad47a5386884f \ + --hash=sha256:1c7abdac90433b09bad6c43a43af253e688c9cfc1c86d332aed13f9a7c7f65e2 \ + --hash=sha256:1e986b206dae4476f41bcec1faa057851f3889503a70e1bdb2378d406223994a \ + --hash=sha256:272d3892a1e1a2dbc39cc5cde96834c236d5327e2122d3aaa19f6614531bb6eb \ + --hash=sha256:278d2ed7c16cfc075c91378c4f47924c0625f5fc84b2d50d921b18b7975bd210 \ + --hash=sha256:2ad40e31093a4af319dadf503b2467ccdc8f67c72e4bcba97f8c10cb078207b5 \ + --hash=sha256:2e920d506ec85eb4ba50cd4228c2bec05642894d4c73c59b3a2fe20346bd00ee \ + --hash=sha256:3359fc442a743e870f4588fcf5dcbc1bf929df1fad8fb9905cd94e5edb02e84c \ + --hash=sha256:37933ec6e693e51a5b07505bd05de57eee12f3e8c32b07da7e73669398e6630a \ + --hash=sha256:398af5e3ba9cf768787eef45c803ff9614cc3e22a5b2f7d7ae116df8b11e3314 \ + --hash=sha256:3b747a674c20a67343cb61d43fdd9207ce5da6a99f629c6e2541aa0e89215bcd \ + --hash=sha256:461665ff58895f508e2866824a47bdee72497b091c730071f2b7575d5762ab65 \ + --hash=sha256:4c6fdd4fccbec90cc8a01fc00773fcd5fa28db683c116ee3cb35cd5da9ef6c37 \ + --hash=sha256:5829b792bf5822fd0a6f6eb34c5f81dd074f01d570ed7f36aa101d6fc7a0a6e4 \ + --hash=sha256:596d1f98fc70232fcb6590c439f43b350cb762fb5d61ce7b0e9db4539654cc13 \ + --hash=sha256:5ae44e10a8e3407dbe138984f21e536583f2bba1be9491239f942c2464ac0894 \ + --hash=sha256:635f5d4dd18758a1fbd1049a8e8d2fee4ffed124462d837d1a02a0e009c3ab31 \ + --hash=sha256:64e52e2b3970bd891309c113b54cf0e4384762c934d5ae56e283f9a0afcd953e \ + --hash=sha256:66741ef4ee08ea0b2cc3c86916ab66b6aef03768525627fd6a1b34968b4e3709 \ + --hash=sha256:67b741654b851abafb7bc625b6d1cdd520a379074e64b6a128e3b688c3c04740 \ + --hash=sha256:6ac08d24c1f16bd2bf5eca8eaf8304812f44af5cfe5062006ec676e7e1d50afc \ + --hash=sha256:6f998db4e71b645350b9ac28a2167e6632c239963ca9da411523bb439c5c514d \ + --hash=sha256:72218785ce41b9cfd2fc1d6a017dc1ff7acfc4c17d01053265c41a2c0cc39b8c \ + --hash=sha256:74dea7751d98034887dbd821b7aae3e1d36eda111d6ca36c206c44478035709c \ + --hash=sha256:759ce4851a4bb15ecabae28f4d2e18983c244eddd767f560165563bf9aefbc8d \ + --hash=sha256:77e2fd3057c9d78e225fa0a2160f96b64a824de17840351b26825b0848022906 \ + --hash=sha256:7c074fece789b5034b9b1404a1f8208fc2d4c6ce9decdd16e8220c5a793e6f61 \ + --hash=sha256:7c42c70cd1d362284289c6273adda4c6af8039a8ae12dc451dcd61cdabb8ab57 \ + --hash=sha256:7f57f14606cd1dd0f0de396e1e53824c371e9544a822648cd76c034d209b559c \ + --hash=sha256:83c681c526a3439b5cf94f7420471705bbf96262f49a6fe546a6db5f687a3d4a \ + --hash=sha256:8485b340a6a9e76c62a7dce3c98e5f102c9219f4cfbf896a00cf48caf078d438 \ + --hash=sha256:84e6e8cd997930fc66d5bb4fde61e2b62ba19d62b7abd7a69920406f9ecca946 \ + --hash=sha256:89284716bc6a5a415d4eaa11b1726d2d60a0cd12aadf5439828353662ede9dd7 \ + --hash=sha256:8b87e1a59c38f275c0e3676fc2ab6d59eccecfd460be267ac360cc31f7bcde96 \ + --hash=sha256:8f24ed114432de109aa9fd317278518a5af2d31ac2ea6b952b2f7782b43da091 \ + --hash=sha256:98cb4d057f285bd80d8778ebc4fde6b4d509ac3f331758fb1528b733215443ae \ + --hash=sha256:998679bf62b7fb599d2878aa3ed06b9ce688b8974893e7223c60db155f26bd8d \ + --hash=sha256:9ba053c5f50430a3fcfd36f75aff9caeba0440b2d076afdb79a318d6ca245f88 \ + --hash=sha256:9c99616c853bb585301df6de07ca2cadad344fd1ada6d62bb30aec05219c45d2 \ + --hash=sha256:a1fd716e7a01f8e717490fbe2e431d2905ab8aa598b9b12f8d10abebb36b04dd \ + --hash=sha256:a2355cba1f4ad8b6988a4ca3feed5bff33f6af2d7f134852cf279c2aebfde541 \ + --hash=sha256:b1f8133c9a275df5613a451e73f36c2aea4fe13c5c8997e22cf355ebd7bd0728 \ + --hash=sha256:b8667b48e7a7ef66afba2c81e1094ef526388d35b873966d8a9a447974ed9178 \ + --hash=sha256:ba1eb1843304b1e5537e1fca632fa894d6f6deca8d6389636ee5b4797affb968 \ + --hash=sha256:be82c3c8cfb15b30f36768797a640e800513793d6ae1724aaaafe5bf86f8f346 \ + --hash=sha256:c02ec1c5856179f171e032a31d6f8bf84e5a75c45c33b2e20a3de353b266ebd8 \ + --hash=sha256:c672d99a345849301784604bfeaeba4db0c7aae50b95be04dd651fd2a7310b93 \ + --hash=sha256:c6c777a480337ac14f38564ac88ae82d4cd238bf293f0a22295b66eb89ffced7 \ + --hash=sha256:cae0274952c079886567f3f4f685bcaf5708f0a23a5f5216fdab71f81a6c0273 \ + --hash=sha256:cd67cf24a553339d5062eff51013780a00d6f97a39ca062781d06b3a73b15462 \ + --hash=sha256:d3515f198eaa2f0ed49f8819d5732d70698c3fa37384146079b3799b97667a94 \ + --hash=sha256:d5280312b9af0976231f9e317c20e4a61cd2f9629b7bfea6a693d1878a264ebd \ + --hash=sha256:de06adc872bcd8c2a4e0dc51250e9e65ef2ca91be023b9d13ebd67c2ba552e1e \ + --hash=sha256:e1674e4307fa3024fc897ca774e9c7562c957af85df55efe2988ed9056dc4e57 \ + --hash=sha256:e2096eddb4e7c7bdae4bd69ad364e55e07b8316653234a56552d9c988bd2d61b \ + --hash=sha256:e560628513ed34759456a416bf86b54b2476c59144a9138165c9a1575801d0d9 \ + --hash=sha256:edfedb64740750e1a3b16152620220f51d58ff1b4abceb339ca92e934775c27a \ + --hash=sha256:f13cae8cc389a440def0c8c52057f37359014ccbc9dc1f0827936bcd367c6100 \ + --hash=sha256:f314013e7dcd5cf45ab1945d92e713eec788166262ae8deb2cfacd53def27325 \ + --hash=sha256:f583edb943cf2e09c60441b910d6a20b4d9d626c75a36c8fcac01a6c96c01183 \ + --hash=sha256:fd8536e902db7e365f49e7d9029283403974ccf29b13fc7028b97e2295b33556 \ + --hash=sha256:fe70e325aa68fa4b5edf7d1a4b6f691eb04bbccac0ace68e34820d283b5f80d4 # via google-resumable-media -google-resumable-media==2.3.3 \ - --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ - --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 +google-resumable-media==2.5.0 \ + --hash=sha256:218931e8e2b2a73a58eb354a288e03a0fd5fb1c4583261ac6e4c078666468c93 \ + --hash=sha256:da1bd943e2e114a56d85d6848497ebf9be6a14d3db23e9fc57581e7c3e8170ec # via google-cloud-storage -googleapis-common-protos==1.56.3 \ - --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ - --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 +googleapis-common-protos==1.59.1 \ + --hash=sha256:0cbedb6fb68f1c07e18eb4c48256320777707e7d0c55063ae56c15db3224a61e \ + --hash=sha256:b35d530fe825fb4227857bc47ad84c33c809ac96f312e13182bdeaa2abe1178a # via google-api-core idna==3.4 \ --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 # via requests -importlib-metadata==4.8.3 \ - --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ - --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 +importlib-metadata==6.8.0 \ + --hash=sha256:3ebb78df84a805d7698245025b975d9d67053cd94c79245ba4b3eb694abe68bb \ + --hash=sha256:dbace7892d8c0c4ac1ad096662232f831d4e64f4c4545bd53016a3e9d4654743 + # via keyring +jaraco-classes==3.3.0 \ + --hash=sha256:10afa92b6743f25c0cf5f37c6bb6e18e2c5bb84a16527ccfc0040ea377e7aaeb \ + --hash=sha256:c063dd08e89217cee02c8d5e5ec560f2c8ce6cdc2fcdc2e68f7b2e5547ed3621 # via keyring jeepney==0.8.0 \ --hash=sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806 \ @@ -219,139 +323,119 @@ jeepney==0.8.0 \ # via # keyring # secretstorage -jinja2==3.0.3 \ - --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ - --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 +jinja2==3.1.2 \ + --hash=sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852 \ + --hash=sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61 # via gcp-releasetool -keyring==23.4.1 \ - --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ - --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 +keyring==24.2.0 \ + --hash=sha256:4901caaf597bfd3bbd78c9a0c7c4c29fcd8310dab2cffefe749e916b6527acd6 \ + --hash=sha256:ca0746a19ec421219f4d713f848fa297a661a8a8c1504867e55bfb5e09091509 # via gcp-releasetool -markupsafe==2.0.1 \ - --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ - --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ - --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ - --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ - --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ - --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ - --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ - --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ - --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ - --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ - --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ - --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ - --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ - --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ - --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ - --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ - --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ - --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ - --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ - --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ - --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ - --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ - --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ - --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ - --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ - --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ - --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ - --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ - --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ - --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ - --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ - --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ - --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ - --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ - --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ - --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ - --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ - --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ - --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ - --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ - --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ - --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ - --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ - --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ - --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ - --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ - --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ - --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ - --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ - --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ - --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ - --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ - --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ - --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ - --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ - --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ - --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ - --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ - --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ - --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ - --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ - --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ - --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ - --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ - --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ - --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ - --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ - --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ - --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 +markupsafe==2.1.3 \ + --hash=sha256:05fb21170423db021895e1ea1e1f3ab3adb85d1c2333cbc2310f2a26bc77272e \ + --hash=sha256:0a4e4a1aff6c7ac4cd55792abf96c915634c2b97e3cc1c7129578aa68ebd754e \ + --hash=sha256:10bbfe99883db80bdbaff2dcf681dfc6533a614f700da1287707e8a5d78a8431 \ + --hash=sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686 \ + --hash=sha256:1577735524cdad32f9f694208aa75e422adba74f1baee7551620e43a3141f559 \ + --hash=sha256:1b40069d487e7edb2676d3fbdb2b0829ffa2cd63a2ec26c4938b2d34391b4ecc \ + --hash=sha256:282c2cb35b5b673bbcadb33a585408104df04f14b2d9b01d4c345a3b92861c2c \ + --hash=sha256:2c1b19b3aaacc6e57b7e25710ff571c24d6c3613a45e905b1fde04d691b98ee0 \ + --hash=sha256:2ef12179d3a291be237280175b542c07a36e7f60718296278d8593d21ca937d4 \ + --hash=sha256:338ae27d6b8745585f87218a3f23f1512dbf52c26c28e322dbe54bcede54ccb9 \ + --hash=sha256:3c0fae6c3be832a0a0473ac912810b2877c8cb9d76ca48de1ed31e1c68386575 \ + --hash=sha256:3fd4abcb888d15a94f32b75d8fd18ee162ca0c064f35b11134be77050296d6ba \ + --hash=sha256:42de32b22b6b804f42c5d98be4f7e5e977ecdd9ee9b660fda1a3edf03b11792d \ + --hash=sha256:504b320cd4b7eff6f968eddf81127112db685e81f7e36e75f9f84f0df46041c3 \ + --hash=sha256:525808b8019e36eb524b8c68acdd63a37e75714eac50e988180b169d64480a00 \ + --hash=sha256:56d9f2ecac662ca1611d183feb03a3fa4406469dafe241673d521dd5ae92a155 \ + --hash=sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac \ + --hash=sha256:65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52 \ + --hash=sha256:68e78619a61ecf91e76aa3e6e8e33fc4894a2bebe93410754bd28fce0a8a4f9f \ + --hash=sha256:69c0f17e9f5a7afdf2cc9fb2d1ce6aabdb3bafb7f38017c0b77862bcec2bbad8 \ + --hash=sha256:6b2b56950d93e41f33b4223ead100ea0fe11f8e6ee5f641eb753ce4b77a7042b \ + --hash=sha256:787003c0ddb00500e49a10f2844fac87aa6ce977b90b0feaaf9de23c22508b24 \ + --hash=sha256:7ef3cb2ebbf91e330e3bb937efada0edd9003683db6b57bb108c4001f37a02ea \ + --hash=sha256:8023faf4e01efadfa183e863fefde0046de576c6f14659e8782065bcece22198 \ + --hash=sha256:8758846a7e80910096950b67071243da3e5a20ed2546e6392603c096778d48e0 \ + --hash=sha256:8afafd99945ead6e075b973fefa56379c5b5c53fd8937dad92c662da5d8fd5ee \ + --hash=sha256:8c41976a29d078bb235fea9b2ecd3da465df42a562910f9022f1a03107bd02be \ + --hash=sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2 \ + --hash=sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707 \ + --hash=sha256:962f82a3086483f5e5f64dbad880d31038b698494799b097bc59c2edf392fce6 \ + --hash=sha256:9dcdfd0eaf283af041973bff14a2e143b8bd64e069f4c383416ecd79a81aab58 \ + --hash=sha256:aa7bd130efab1c280bed0f45501b7c8795f9fdbeb02e965371bbef3523627779 \ + --hash=sha256:ab4a0df41e7c16a1392727727e7998a467472d0ad65f3ad5e6e765015df08636 \ + --hash=sha256:ad9e82fb8f09ade1c3e1b996a6337afac2b8b9e365f926f5a61aacc71adc5b3c \ + --hash=sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad \ + --hash=sha256:b076b6226fb84157e3f7c971a47ff3a679d837cf338547532ab866c57930dbee \ + --hash=sha256:b7ff0f54cb4ff66dd38bebd335a38e2c22c41a8ee45aa608efc890ac3e3931bc \ + --hash=sha256:bfce63a9e7834b12b87c64d6b155fdd9b3b96191b6bd334bf37db7ff1fe457f2 \ + --hash=sha256:c011a4149cfbcf9f03994ec2edffcb8b1dc2d2aede7ca243746df97a5d41ce48 \ + --hash=sha256:c9c804664ebe8f83a211cace637506669e7890fec1b4195b505c214e50dd4eb7 \ + --hash=sha256:ca379055a47383d02a5400cb0d110cef0a776fc644cda797db0c5696cfd7e18e \ + --hash=sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b \ + --hash=sha256:cd0f502fe016460680cd20aaa5a76d241d6f35a1c3350c474bac1273803893fa \ + --hash=sha256:ceb01949af7121f9fc39f7d27f91be8546f3fb112c608bc4029aef0bab86a2a5 \ + --hash=sha256:d080e0a5eb2529460b30190fcfcc4199bd7f827663f858a226a81bc27beaa97e \ + --hash=sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb \ + --hash=sha256:df0be2b576a7abbf737b1575f048c23fb1d769f267ec4358296f31c2479db8f9 \ + --hash=sha256:e09031c87a1e51556fdcb46e5bd4f59dfb743061cf93c4d6831bf894f125eb57 \ + --hash=sha256:e4dd52d80b8c83fdce44e12478ad2e85c64ea965e75d66dbeafb0a3e77308fcc \ + --hash=sha256:fec21693218efe39aa7f8599346e90c705afa52c5b31ae019b2e57e8f6542bb2 # via jinja2 -packaging==21.3 \ - --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ - --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 +more-itertools==9.1.0 \ + --hash=sha256:cabaa341ad0389ea83c17a94566a53ae4c9d07349861ecb14dc6d0345cf9ac5d \ + --hash=sha256:d2bc7f02446e86a68911e58ded76d6561eea00cddfb2a91e7019bbb586c799f3 + # via jaraco-classes +packaging==23.1 \ + --hash=sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61 \ + --hash=sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f # via gcp-releasetool -protobuf==3.20.2 \ - --hash=sha256:03d76b7bd42ac4a6e109742a4edf81ffe26ffd87c5993126d894fe48a120396a \ - --hash=sha256:09e25909c4297d71d97612f04f41cea8fa8510096864f2835ad2f3b3df5a5559 \ - --hash=sha256:18e34a10ae10d458b027d7638a599c964b030c1739ebd035a1dfc0e22baa3bfe \ - --hash=sha256:291fb4307094bf5ccc29f424b42268640e00d5240bf0d9b86bf3079f7576474d \ - --hash=sha256:2c0b040d0b5d5d207936ca2d02f00f765906622c07d3fa19c23a16a8ca71873f \ - --hash=sha256:384164994727f274cc34b8abd41a9e7e0562801361ee77437099ff6dfedd024b \ - --hash=sha256:3cb608e5a0eb61b8e00fe641d9f0282cd0eedb603be372f91f163cbfbca0ded0 \ - --hash=sha256:5d9402bf27d11e37801d1743eada54372f986a372ec9679673bfcc5c60441151 \ - --hash=sha256:712dca319eee507a1e7df3591e639a2b112a2f4a62d40fe7832a16fd19151750 \ - --hash=sha256:7a5037af4e76c975b88c3becdf53922b5ffa3f2cddf657574a4920a3b33b80f3 \ - --hash=sha256:8228e56a865c27163d5d1d1771d94b98194aa6917bcfb6ce139cbfa8e3c27334 \ - --hash=sha256:84a1544252a933ef07bb0b5ef13afe7c36232a774affa673fc3636f7cee1db6c \ - --hash=sha256:84fe5953b18a383fd4495d375fe16e1e55e0a3afe7b4f7b4d01a3a0649fcda9d \ - --hash=sha256:9c673c8bfdf52f903081816b9e0e612186684f4eb4c17eeb729133022d6032e3 \ - --hash=sha256:a9e5ae5a8e8985c67e8944c23035a0dff2c26b0f5070b2f55b217a1c33bbe8b1 \ - --hash=sha256:b4fdb29c5a7406e3f7ef176b2a7079baa68b5b854f364c21abe327bbeec01cdb \ - --hash=sha256:c184485e0dfba4dfd451c3bd348c2e685d6523543a0f91b9fd4ae90eb09e8422 \ - --hash=sha256:c9cdf251c582c16fd6a9f5e95836c90828d51b0069ad22f463761d27c6c19019 \ - --hash=sha256:e39cf61bb8582bda88cdfebc0db163b774e7e03364bbf9ce1ead13863e81e359 \ - --hash=sha256:e8fbc522303e09036c752a0afcc5c0603e917222d8bedc02813fd73b4b4ed804 \ - --hash=sha256:f34464ab1207114e73bba0794d1257c150a2b89b7a9faf504e00af7c9fd58978 \ - --hash=sha256:f52dabc96ca99ebd2169dadbe018824ebda08a795c7684a0b7d203a290f3adb0 +protobuf==3.20.3 \ + --hash=sha256:03038ac1cfbc41aa21f6afcbcd357281d7521b4157926f30ebecc8d4ea59dcb7 \ + --hash=sha256:28545383d61f55b57cf4df63eebd9827754fd2dc25f80c5253f9184235db242c \ + --hash=sha256:2e3427429c9cffebf259491be0af70189607f365c2f41c7c3764af6f337105f2 \ + --hash=sha256:398a9e0c3eaceb34ec1aee71894ca3299605fa8e761544934378bbc6c97de23b \ + --hash=sha256:44246bab5dd4b7fbd3c0c80b6f16686808fab0e4aca819ade6e8d294a29c7050 \ + --hash=sha256:447d43819997825d4e71bf5769d869b968ce96848b6479397e29fc24c4a5dfe9 \ + --hash=sha256:67a3598f0a2dcbc58d02dd1928544e7d88f764b47d4a286202913f0b2801c2e7 \ + --hash=sha256:74480f79a023f90dc6e18febbf7b8bac7508420f2006fabd512013c0c238f454 \ + --hash=sha256:819559cafa1a373b7096a482b504ae8a857c89593cf3a25af743ac9ecbd23480 \ + --hash=sha256:899dc660cd599d7352d6f10d83c95df430a38b410c1b66b407a6b29265d66469 \ + --hash=sha256:8c0c984a1b8fef4086329ff8dd19ac77576b384079247c770f29cc8ce3afa06c \ + --hash=sha256:9aae4406ea63d825636cc11ffb34ad3379335803216ee3a856787bcf5ccc751e \ + --hash=sha256:a7ca6d488aa8ff7f329d4c545b2dbad8ac31464f1d8b1c87ad1346717731e4db \ + --hash=sha256:b6cc7ba72a8850621bfec987cb72623e703b7fe2b9127a161ce61e61558ad905 \ + --hash=sha256:bf01b5720be110540be4286e791db73f84a2b721072a3711efff6c324cdf074b \ + --hash=sha256:c02ce36ec760252242a33967d51c289fd0e1c0e6e5cc9397e2279177716add86 \ + --hash=sha256:d9e4432ff660d67d775c66ac42a67cf2453c27cb4d738fc22cb53b5d84c135d4 \ + --hash=sha256:daa564862dd0d39c00f8086f88700fdbe8bc717e993a21e90711acfed02f2402 \ + --hash=sha256:de78575669dddf6099a8a0f46a27e82a1783c557ccc38ee620ed8cc96d3be7d7 \ + --hash=sha256:e64857f395505ebf3d2569935506ae0dfc4a15cb80dc25261176c784662cdcc4 \ + --hash=sha256:f4bd856d702e5b0d96a00ec6b307b0f51c1982c2bf9c0052cf9019e9a544ba99 \ + --hash=sha256:f4c42102bc82a51108e449cbb32b19b180022941c727bac0cfd50170341f16ee # via # gcp-docuploader # gcp-releasetool # google-api-core - # google-cloud-storage -pyasn1==0.4.8 \ - --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ - --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba +pyasn1==0.5.0 \ + --hash=sha256:87a2121042a1ac9358cabcaf1d07680ff97ee6404333bacca15f76aa8ad01a57 \ + --hash=sha256:97b7290ca68e62a832558ec3976f15cbf911bf5d7c7039d8b861c2a0ece69fde # via # pyasn1-modules # rsa -pyasn1-modules==0.2.8 \ - --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ - --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 +pyasn1-modules==0.3.0 \ + --hash=sha256:5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c \ + --hash=sha256:d3ccd6ed470d9ffbc716be08bd90efbd44d0734bc9303818f7336070984a162d # via google-auth pycparser==2.21 \ --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 # via cffi -pyjwt==2.4.0 \ - --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ - --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba +pyjwt==2.7.0 \ + --hash=sha256:ba2b425b15ad5ef12f200dc67dd56af4e26de2331f965c5439994dad075876e1 \ + --hash=sha256:bd6ca4a3c4285c1a2d4349e5a035fdf8fb94e04ccd0fcbe6ba289dae9cc3e074 # via gcp-releasetool -pyparsing==3.0.9 \ - --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ - --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc - # via packaging pyperclip==1.8.2 \ --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 # via gcp-releasetool @@ -359,9 +443,9 @@ python-dateutil==2.8.2 \ --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 # via gcp-releasetool -requests==2.27.1 \ - --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ - --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d +requests==2.31.0 \ + --hash=sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f \ + --hash=sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1 # via # gcp-releasetool # google-api-core @@ -374,10 +458,6 @@ secretstorage==3.3.3 \ --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 # via keyring -setuptools==67.3.2 \ - --hash=sha256:95f00380ef2ffa41d9bba85d95b27689d923c93dfbafed4aecd7cf988a25e012 \ - --hash=sha256:bb6d8e508de562768f2027902929f8523932fcd1fb784e6d573d2cafac995a48 - # via -r requirements.in six==1.16.0 \ --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 @@ -385,19 +465,26 @@ six==1.16.0 \ # gcp-docuploader # google-auth # python-dateutil -typing-extensions==4.4.0 \ - --hash=sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa \ - --hash=sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e +typing-extensions==4.7.1 \ + --hash=sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36 \ + --hash=sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2 # via -r requirements.in -urllib3==1.26.12 \ - --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ - --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 - # via requests -wheel==0.38.4 \ - --hash=sha256:965f5259b566725405b05e7cf774052044b1ed30119b5d586b2703aafe8719ac \ - --hash=sha256:b60533f3f5d530e971d6737ca6d58681ee434818fab630c83a734bb10c083ce8 +urllib3==1.26.16 \ + --hash=sha256:8d36afa7616d8ab714608411b4a3b13e58f463aee519024578e062e141dce20f \ + --hash=sha256:8f135f6502756bde6b2a9b28989df5fbe87c9970cecaa69041edcce7f0589b14 + # via + # google-auth + # requests +wheel==0.40.0 \ + --hash=sha256:cd1196f3faee2b31968d626e1731c94f99cbdb67cf5a46e4f5656cbee7738873 \ + --hash=sha256:d236b20e7cb522daf2390fa84c55eea81c5c30190f90f29ae2ca1ad8355bf247 # via -r requirements.in -zipp==3.6.0 \ - --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ - --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc +zipp==3.16.1 \ + --hash=sha256:0b37c326d826d5ca35f2b9685cd750292740774ef16190008b00a0227c256fe0 \ + --hash=sha256:857b158da2cbf427b376da1c24fd11faecbac5a4ac7523c3607f8a01f94c2ec0 # via importlib-metadata + +# WARNING: The following packages were not pinned, but pip requires them to be +# pinned when the requirements file includes hashes and the requirement is not +# satisfied by a package already installed. Consider using the --allow-unsafe flag. +# setuptools From f67700468e3975665f8544c90663714f73dd3471 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jul 2023 16:22:13 +0200 Subject: [PATCH 1485/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.1 (#1663) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/sdk-platform-java) | `3.13.0` -> `3.13.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-shared-dependencies/3.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-shared-dependencies/3.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-shared-dependencies/3.13.0/3.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-shared-dependencies/3.13.0/3.13.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4cc316facfc3..fef23d1c70e9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.13.0 + 3.13.1 pom import From 668e561c9919d571e4908277d0ea420a066db841 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 14:38:13 +0000 Subject: [PATCH 1486/2363] chore(main): release 1.123.19 (#1661) :robot: I have created a release *beep* *boop* --- ## [1.123.19](https://togithub.com/googleapis/java-pubsub/compare/v1.123.18...v1.123.19) (2023-07-25) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.30.1 ([#1656](https://togithub.com/googleapis/java-pubsub/issues/1656)) ([15d7ffe](https://togithub.com/googleapis/java-pubsub/commit/15d7ffe46df78ec400839e601864bc955c5ea20e)) * Update dependency com.google.cloud:google-cloud-core to v2.21.1 ([#1662](https://togithub.com/googleapis/java-pubsub/issues/1662)) ([5d06218](https://togithub.com/googleapis/java-pubsub/commit/5d062187ed1fd463d122491a4b4747383c67faca)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.1 ([#1663](https://togithub.com/googleapis/java-pubsub/issues/1663)) ([f677004](https://togithub.com/googleapis/java-pubsub/commit/f67700468e3975665f8544c90663714f73dd3471)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.0 ([#1666](https://togithub.com/googleapis/java-pubsub/issues/1666)) ([47f8a34](https://togithub.com/googleapis/java-pubsub/commit/47f8a3465a81228aebe02486c5edffa3f89ac59f)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.3 ([#1665](https://togithub.com/googleapis/java-pubsub/issues/1665)) ([c557254](https://togithub.com/googleapis/java-pubsub/commit/c55725449952461d975ef36e3bf0dd7f51bab64f)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 11 +++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 29 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index fd9b7a0ac7f3..3fabb8d55590 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [1.123.19](https://github.com/googleapis/java-pubsub/compare/v1.123.18...v1.123.19) (2023-07-25) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.30.1 ([#1656](https://github.com/googleapis/java-pubsub/issues/1656)) ([4fe4bc4](https://github.com/googleapis/java-pubsub/commit/4fe4bc49d82753e3e185f0a2c4694d80e48808f7)) +* Update dependency com.google.cloud:google-cloud-core to v2.21.1 ([#1662](https://github.com/googleapis/java-pubsub/issues/1662)) ([e10292c](https://github.com/googleapis/java-pubsub/commit/e10292c16f24870a91584f716545ff210302a7bc)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.1 ([#1663](https://github.com/googleapis/java-pubsub/issues/1663)) ([50f4ff1](https://github.com/googleapis/java-pubsub/commit/50f4ff10140699a02d1ec550b05ff6d1aa39c762)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.0 ([#1666](https://github.com/googleapis/java-pubsub/issues/1666)) ([d8712a3](https://github.com/googleapis/java-pubsub/commit/d8712a31459b8f9497dff7a866c8a8795ca60af9)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.3 ([#1665](https://github.com/googleapis/java-pubsub/issues/1665)) ([ad1c515](https://github.com/googleapis/java-pubsub/commit/ad1c5157eadc4bf2d43b7dc332ac4150d732912d)) + ## [1.123.18](https://github.com/googleapis/java-pubsub/compare/v1.123.17...v1.123.18) (2023-07-17) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 75ed5c0c4cdc..d955b0ab50c9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.19-SNAPSHOT + 1.123.19 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.19-SNAPSHOT + 1.123.19 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.19-SNAPSHOT + 1.105.19 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.19-SNAPSHOT + 1.105.19
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index bf414a6e861e..7baaec4cb1ef 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.19-SNAPSHOT + 1.123.19 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.19-SNAPSHOT + 1.123.19 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7be16474a524..a5e3f436dee2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.19-SNAPSHOT + 1.105.19 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.19-SNAPSHOT + 1.123.19 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index fef23d1c70e9..7c308a1cde62 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.19-SNAPSHOT + 1.123.19 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.19-SNAPSHOT + 1.105.19 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.19-SNAPSHOT + 1.105.19 com.google.cloud google-cloud-pubsub - 1.123.19-SNAPSHOT + 1.123.19 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 97916d59984c..358086454cfc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.19-SNAPSHOT + 1.105.19 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.19-SNAPSHOT + 1.123.19 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bd59b6d47e04..e204be57348e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.19-SNAPSHOT + 1.123.19 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6dca705d6bc2..ca059bcef05d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.18:1.123.19-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.18:1.105.19-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.18:1.105.19-SNAPSHOT +google-cloud-pubsub:1.123.19:1.123.19 +grpc-google-cloud-pubsub-v1:1.105.19:1.105.19 +proto-google-cloud-pubsub-v1:1.105.19:1.105.19 From 0febeb64676698d540276cc66e184e17ac483cfa Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 14:52:14 +0000 Subject: [PATCH 1487/2363] chore(main): release 1.123.20-SNAPSHOT (#1668) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d955b0ab50c9..c2f716f5b307 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.19 + 1.123.20-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.19 + 1.123.20-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.19 + 1.105.20-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.19 + 1.105.20-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7baaec4cb1ef..3bb63bbe0c03 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.19 + 1.123.20-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.19 + 1.123.20-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a5e3f436dee2..73ab117a04ae 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.19 + 1.105.20-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.19 + 1.123.20-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7c308a1cde62..86915bf1bb32 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.19 + 1.123.20-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.19 + 1.105.20-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.19 + 1.105.20-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.19 + 1.123.20-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 358086454cfc..07fd5a36dec7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.19 + 1.105.20-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.19 + 1.123.20-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e204be57348e..f1cf6fafca24 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.19 + 1.123.20-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ca059bcef05d..cda983d01aa7 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.19:1.123.19 -grpc-google-cloud-pubsub-v1:1.105.19:1.105.19 -proto-google-cloud-pubsub-v1:1.105.19:1.105.19 +google-cloud-pubsub:1.123.19:1.123.20-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.19:1.105.20-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.19:1.105.20-SNAPSHOT From cd4c8b51b3f1a328fedcd98cc562cbe04f275ab5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jul 2023 20:52:19 +0200 Subject: [PATCH 1488/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.31.0 (#1671) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.30.1` -> `2.31.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquery/2.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquery/2.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquery/2.30.1/2.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquery/2.30.1/2.31.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery (com.google.cloud:google-cloud-bigquery) ### [`v2.31.0`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#2310-2023-07-25) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.30.1...v2.31.0) ##### Features - Adds Exception handling to handle ALREADY EXISTS error ([#​2788](https://togithub.com/googleapis/java-bigquery/issues/2788)) ([67a07ea](https://togithub.com/googleapis/java-bigquery/commit/67a07ea45c4635a2e9d43220d4bc34780eb512ef)) ##### Dependencies - Update arrow.version to v12.0.1 ([#​2750](https://togithub.com/googleapis/java-bigquery/issues/2750)) ([f92bee5](https://togithub.com/googleapis/java-bigquery/commit/f92bee558f6de070fb9f525bb47a824dc2c53e07)) - Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.24.0 ([#​2811](https://togithub.com/googleapis/java-bigquery/issues/2811)) ([b660063](https://togithub.com/googleapis/java-bigquery/commit/b6600635e01f930fa19769cb2594ef4f43226124)) - Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.28.0 ([#​2812](https://togithub.com/googleapis/java-bigquery/issues/2812)) ([921716d](https://togithub.com/googleapis/java-bigquery/commit/921716d54ea34f1914d16f7774124175be488087)) - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.1 ([#​2806](https://togithub.com/googleapis/java-bigquery/issues/2806)) ([df3cd76](https://togithub.com/googleapis/java-bigquery/commit/df3cd761b5111bb0f174f691765697aa1bcbebde)) - Update dependency org.junit.vintage:junit-vintage-engine to v5.10.0 ([#​2808](https://togithub.com/googleapis/java-bigquery/issues/2808)) ([694f711](https://togithub.com/googleapis/java-bigquery/commit/694f7111d7497126d429c5dda17f44f661279582)) - Update github/codeql-action action to v2.21.0 ([#​2803](https://togithub.com/googleapis/java-bigquery/issues/2803)) ([c6c536c](https://togithub.com/googleapis/java-bigquery/commit/c6c536c618908425f288fa0e6f516df2cc6a4b97))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2fe83530a7b8..907a828d2703 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.18' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.19' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.18" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.19" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.18 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.19 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d99e15929f8f..5fc9a8870b47 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.30.1 + 2.31.0
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f1cf6fafca24..2c7aac2243ec 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.30.1 + 2.31.0
    From e01365771e9a4eb1399fb288fbf3a2118f5c5cd6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:10:16 +0000 Subject: [PATCH 1489/2363] chore(main): release 1.123.20 (#1672) :robot: I have created a release *beep* *boop* --- ## [1.123.20](https://togithub.com/googleapis/java-pubsub/compare/v1.123.19...v1.123.20) (2023-07-25) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.31.0 ([#1671](https://togithub.com/googleapis/java-pubsub/issues/1671)) ([cd4c8b5](https://togithub.com/googleapis/java-pubsub/commit/cd4c8b51b3f1a328fedcd98cc562cbe04f275ab5)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 3fabb8d55590..658dddfb6c10 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.123.20](https://github.com/googleapis/java-pubsub/compare/v1.123.19...v1.123.20) (2023-07-25) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.31.0 ([#1671](https://github.com/googleapis/java-pubsub/issues/1671)) ([c51d396](https://github.com/googleapis/java-pubsub/commit/c51d39688464c51ffdb046368b4f8e926360d72e)) + ## [1.123.19](https://github.com/googleapis/java-pubsub/compare/v1.123.18...v1.123.19) (2023-07-25) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c2f716f5b307..5244438183d5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.20-SNAPSHOT + 1.123.20 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.20-SNAPSHOT + 1.123.20 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.20-SNAPSHOT + 1.105.20 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.20-SNAPSHOT + 1.105.20
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3bb63bbe0c03..8c863e3a6782 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.20-SNAPSHOT + 1.123.20 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.20-SNAPSHOT + 1.123.20 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 73ab117a04ae..88ccb572ad3a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.20-SNAPSHOT + 1.105.20 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.20-SNAPSHOT + 1.123.20 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 86915bf1bb32..d25f1b340891 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.20-SNAPSHOT + 1.123.20 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.20-SNAPSHOT + 1.105.20 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.20-SNAPSHOT + 1.105.20 com.google.cloud google-cloud-pubsub - 1.123.20-SNAPSHOT + 1.123.20 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 07fd5a36dec7..f0d48a997f57 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.20-SNAPSHOT + 1.105.20 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.20-SNAPSHOT + 1.123.20 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2c7aac2243ec..342b1adeb9ba 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.20-SNAPSHOT + 1.123.20 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index cda983d01aa7..21f76842dfcc 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.19:1.123.20-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.19:1.105.20-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.19:1.105.20-SNAPSHOT +google-cloud-pubsub:1.123.20:1.123.20 +grpc-google-cloud-pubsub-v1:1.105.20:1.105.20 +proto-google-cloud-pubsub-v1:1.105.20:1.105.20 From e4948fb0ef7696332cdb1092c8adeac75f096d7f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jul 2023 21:18:14 +0200 Subject: [PATCH 1490/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.19 (#1670) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.123.18` -> `1.123.19` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.123.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.123.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.123.18/1.123.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.123.18/1.123.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub) ### [`v1.123.19`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#112319-2023-07-25) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.123.18...v1.123.19) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.30.1 ([#​1656](https://togithub.com/googleapis/java-pubsub/issues/1656)) ([15d7ffe](https://togithub.com/googleapis/java-pubsub/commit/15d7ffe46df78ec400839e601864bc955c5ea20e)) - Update dependency com.google.cloud:google-cloud-core to v2.21.1 ([#​1662](https://togithub.com/googleapis/java-pubsub/issues/1662)) ([5d06218](https://togithub.com/googleapis/java-pubsub/commit/5d062187ed1fd463d122491a4b4747383c67faca)) - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.1 ([#​1663](https://togithub.com/googleapis/java-pubsub/issues/1663)) ([f677004](https://togithub.com/googleapis/java-pubsub/commit/f67700468e3975665f8544c90663714f73dd3471)) - Update dependency org.junit.vintage:junit-vintage-engine to v5.10.0 ([#​1666](https://togithub.com/googleapis/java-pubsub/issues/1666)) ([47f8a34](https://togithub.com/googleapis/java-pubsub/commit/47f8a3465a81228aebe02486c5edffa3f89ac59f)) - Update dependency org.xerial.snappy:snappy-java to v1.1.10.3 ([#​1665](https://togithub.com/googleapis/java-pubsub/issues/1665)) ([c557254](https://togithub.com/googleapis/java-pubsub/commit/c55725449952461d975ef36e3bf0dd7f51bab64f))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 907a828d2703..4231823318ce 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.18 + 1.123.19 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5fc9a8870b47..18dd2e712a7d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.18 + 1.123.19 From 30f18cbe6e087cfae453706f739d38b95b165c1b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:32:15 +0000 Subject: [PATCH 1491/2363] chore(main): release 1.123.21-SNAPSHOT (#1673) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5244438183d5..e169738f4dac 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.20 + 1.123.21-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.20 + 1.123.21-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.20 + 1.105.21-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.20 + 1.105.21-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8c863e3a6782..ec268acff4e5 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.20 + 1.123.21-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.20 + 1.123.21-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 88ccb572ad3a..68180f76258a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.20 + 1.105.21-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.20 + 1.123.21-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d25f1b340891..3fdac3b70c46 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.20 + 1.123.21-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.20 + 1.105.21-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.20 + 1.105.21-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.123.20 + 1.123.21-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f0d48a997f57..02061cfcf202 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.20 + 1.105.21-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.20 + 1.123.21-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 342b1adeb9ba..48f2c95d7adc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.20 + 1.123.21-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 21f76842dfcc..4851e4d73c3a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.20:1.123.20 -grpc-google-cloud-pubsub-v1:1.105.20:1.105.20 -proto-google-cloud-pubsub-v1:1.105.20:1.105.20 +google-cloud-pubsub:1.123.20:1.123.21-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.105.20:1.105.21-SNAPSHOT +proto-google-cloud-pubsub-v1:1.105.20:1.105.21-SNAPSHOT From 2099bbe83a58d5d432682d8ab104f61ad39e53d9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 26 Jul 2023 17:40:13 +0200 Subject: [PATCH 1492/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.20 (#1674) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.123.19` -> `1.123.20` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.123.19/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.123.19/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub) ### [`v1.123.20`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#112320-2023-07-25) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.31.0 ([#​1671](https://togithub.com/googleapis/java-pubsub/issues/1671)) ([cd4c8b5](https://togithub.com/googleapis/java-pubsub/commit/cd4c8b51b3f1a328fedcd98cc562cbe04f275ab5))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4231823318ce..b001b98751c6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.19 + 1.123.20 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.19' +implementation 'com.google.cloud:google-cloud-pubsub:1.123.20' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.19" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.20" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.19 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.20 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 18dd2e712a7d..1be91db899f4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.19 + 1.123.20 From bda6ed53f1c5db02aa472d6c8aaf6a0081ccad66 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:22:54 -0400 Subject: [PATCH 1493/2363] docs: clarified where ordering_key will be written if write_metadata is set (#1675) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: clarified where ordering_key will be written if write_metadata is set PiperOrigin-RevId: 551210991 Source-Link: https://github.com/googleapis/googleapis/commit/7c762d770a82da397956b80379a6fb73505835af Source-Link: https://github.com/googleapis/googleapis-gen/commit/15fe4c5ff5ebd52911b429b05b992e232f53351e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTVmZTRjNWZmNWViZDUyOTExYjQyOWIwNWI5OTJlMjMyZjUzMzUxZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/pubsub/v1/CloudStorageConfig.java | 30 +++++++++++++++---- .../com/google/pubsub/v1/PullRequest.java | 8 ++--- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 6 +++- 4 files changed, 35 insertions(+), 11 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 8fb85ab64a34..a4532a62fc8d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -682,7 +682,11 @@ public interface AvroConfigOrBuilder * *
          * When true, write the subscription name, message_id, publish_time,
    -     * attributes, and ordering_key as additional fields in the output.
    +     * attributes, and ordering_key as additional fields in the output. The
    +     * subscription name, message_id, and publish_time fields are put in their
    +     * own fields while all other message properties other than data (for
    +     * example, an ordering_key, if present) are added as entries in the
    +     * attributes map.
          * 
    * * bool write_metadata = 1; @@ -741,7 +745,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * When true, write the subscription name, message_id, publish_time,
    -     * attributes, and ordering_key as additional fields in the output.
    +     * attributes, and ordering_key as additional fields in the output. The
    +     * subscription name, message_id, and publish_time fields are put in their
    +     * own fields while all other message properties other than data (for
    +     * example, an ordering_key, if present) are added as entries in the
    +     * attributes map.
          * 
    * * bool write_metadata = 1; @@ -1104,7 +1112,11 @@ public Builder mergeFrom( * *
            * When true, write the subscription name, message_id, publish_time,
    -       * attributes, and ordering_key as additional fields in the output.
    +       * attributes, and ordering_key as additional fields in the output. The
    +       * subscription name, message_id, and publish_time fields are put in their
    +       * own fields while all other message properties other than data (for
    +       * example, an ordering_key, if present) are added as entries in the
    +       * attributes map.
            * 
    * * bool write_metadata = 1; @@ -1120,7 +1132,11 @@ public boolean getWriteMetadata() { * *
            * When true, write the subscription name, message_id, publish_time,
    -       * attributes, and ordering_key as additional fields in the output.
    +       * attributes, and ordering_key as additional fields in the output. The
    +       * subscription name, message_id, and publish_time fields are put in their
    +       * own fields while all other message properties other than data (for
    +       * example, an ordering_key, if present) are added as entries in the
    +       * attributes map.
            * 
    * * bool write_metadata = 1; @@ -1140,7 +1156,11 @@ public Builder setWriteMetadata(boolean value) { * *
            * When true, write the subscription name, message_id, publish_time,
    -       * attributes, and ordering_key as additional fields in the output.
    +       * attributes, and ordering_key as additional fields in the output. The
    +       * subscription name, message_id, and publish_time fields are put in their
    +       * own fields while all other message properties other than data (for
    +       * example, an ordering_key, if present) are added as entries in the
    +       * attributes map.
            * 
    * * bool write_metadata = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index fac062007787..8dd2697450ec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1222 + * google/pubsub/v1/pubsub.proto;l=1226 * @return The returnImmediately. */ @java.lang.Override @@ -687,7 +687,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1222 + * google/pubsub/v1/pubsub.proto;l=1226 * @return The returnImmediately. */ @java.lang.Override @@ -713,7 +713,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1222 + * google/pubsub/v1/pubsub.proto;l=1226 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -743,7 +743,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1222 + * google/pubsub/v1/pubsub.proto;l=1226 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 5cb9c98a3584..963c7f799f5b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -71,7 +71,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1222 + * google/pubsub/v1/pubsub.proto;l=1226 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 9ff80f2f6b52..4468de17831e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1030,7 +1030,11 @@ message CloudStorageConfig { // Message payloads and metadata will be written to files as an Avro binary. message AvroConfig { // When true, write the subscription name, message_id, publish_time, - // attributes, and ordering_key as additional fields in the output. + // attributes, and ordering_key as additional fields in the output. The + // subscription name, message_id, and publish_time fields are put in their + // own fields while all other message properties other than data (for + // example, an ordering_key, if present) are added as entries in the + // attributes map. bool write_metadata = 1; } From 8e910289b99b9bb8edf2dca6769a3593f2333d71 Mon Sep 17 00:00:00 2001 From: Burke Davison <40617934+burkedavison@users.noreply.github.com> Date: Thu, 27 Jul 2023 15:19:14 +0000 Subject: [PATCH 1494/2363] feat: setup 1.123.x lts branch (#1676) --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 2599810ac077..c6976da6a2ad 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -30,3 +30,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.121.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.123.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 5f005e32f427..d02beedaeac7 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -135,6 +135,23 @@ branchProtectionRules: - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' + - pattern: 1.123.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (17) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - Kokoro - Against Pub/Sub Lite samples + - cla/google + - OwlBot Post Processor + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' permissionRules: - team: yoshi-admins permission: admin From 6e655791c13536b2ed5154ad3f7f0522dc34a9ab Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 12:02:24 -0400 Subject: [PATCH 1495/2363] chore(main): release 1.124.0 (#1678) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 658dddfb6c10..a6692e628a26 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.124.0](https://github.com/googleapis/java-pubsub/compare/v1.123.20...v1.124.0) (2023-07-27) + + +### Features + +* Setup 1.123.x lts branch ([#1676](https://github.com/googleapis/java-pubsub/issues/1676)) ([a60b887](https://github.com/googleapis/java-pubsub/commit/a60b88772d69d367f90bbe61bc4e157338193b0f)) + + +### Documentation + +* Clarified where ordering_key will be written if write_metadata is set ([#1675](https://github.com/googleapis/java-pubsub/issues/1675)) ([462746c](https://github.com/googleapis/java-pubsub/commit/462746cfbf9b712118b67349f2f4f4cebf45932a)) + ## [1.123.20](https://github.com/googleapis/java-pubsub/compare/v1.123.19...v1.123.20) (2023-07-25) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e169738f4dac..1b1c22f9bcae 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.123.21-SNAPSHOT + 1.124.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.123.21-SNAPSHOT + 1.124.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.21-SNAPSHOT + 1.106.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.21-SNAPSHOT + 1.106.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ec268acff4e5..21457228c343 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.123.21-SNAPSHOT + 1.124.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.123.21-SNAPSHOT + 1.124.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 68180f76258a..78490937c0ab 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.21-SNAPSHOT + 1.106.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.21-SNAPSHOT + 1.124.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3fdac3b70c46..67d7cf6f64c9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.123.21-SNAPSHOT + 1.124.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.21-SNAPSHOT + 1.106.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.105.21-SNAPSHOT + 1.106.0 com.google.cloud google-cloud-pubsub - 1.123.21-SNAPSHOT + 1.124.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 02061cfcf202..37bda9ac207e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.105.21-SNAPSHOT + 1.106.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.123.21-SNAPSHOT + 1.124.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 48f2c95d7adc..59308ca32f68 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.123.21-SNAPSHOT + 1.124.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4851e4d73c3a..741c90de509a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.123.20:1.123.21-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.105.20:1.105.21-SNAPSHOT -proto-google-cloud-pubsub-v1:1.105.20:1.105.21-SNAPSHOT +google-cloud-pubsub:1.124.0:1.124.0 +grpc-google-cloud-pubsub-v1:1.106.0:1.106.0 +proto-google-cloud-pubsub-v1:1.106.0:1.106.0 From 17b414fa13a37eab7e45957320a885eec0985103 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 16:16:40 +0000 Subject: [PATCH 1496/2363] chore(main): release 1.124.1-SNAPSHOT (#1680) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1b1c22f9bcae..846eaba8ea10 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.124.0 + 1.124.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.124.0 + 1.124.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.0 + 1.106.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.0 + 1.106.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 21457228c343..6542052a3e33 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.124.0 + 1.124.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.124.0 + 1.124.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 78490937c0ab..f65bf592fee0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.0 + 1.106.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.0 + 1.124.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 67d7cf6f64c9..07f64e576f2d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.124.0 + 1.124.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.0 + 1.106.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.0 + 1.106.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.124.0 + 1.124.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 37bda9ac207e..2f7caeadf7f8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.0 + 1.106.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.0 + 1.124.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 59308ca32f68..4f44f3bbaca7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.124.0 + 1.124.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 741c90de509a..ea3de29f2319 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.124.0:1.124.0 -grpc-google-cloud-pubsub-v1:1.106.0:1.106.0 -proto-google-cloud-pubsub-v1:1.106.0:1.106.0 +google-cloud-pubsub:1.124.0:1.124.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.106.0:1.106.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.106.0:1.106.1-SNAPSHOT From 9d92c810ac3b4825c2e084c644f139b1ee719c21 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 27 Jul 2023 22:14:19 +0200 Subject: [PATCH 1497/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.124.0 (#1682) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.123.20` -> `1.124.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.124.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.124.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.123.20/1.124.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.123.20/1.124.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub) ### [`v1.124.0`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#11240-2023-07-27) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.123.20...v1.124.0) ##### Features - Setup 1.123.x lts branch ([#​1676](https://togithub.com/googleapis/java-pubsub/issues/1676)) ([8e91028](https://togithub.com/googleapis/java-pubsub/commit/8e910289b99b9bb8edf2dca6769a3593f2333d71)) ##### Documentation - Clarified where ordering_key will be written if write_metadata is set ([#​1675](https://togithub.com/googleapis/java-pubsub/issues/1675)) ([bda6ed5](https://togithub.com/googleapis/java-pubsub/commit/bda6ed53f1c5db02aa472d6c8aaf6a0081ccad66))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b001b98751c6..d99ed165a56f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.123.20 + 1.124.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.123.20' +implementation 'com.google.cloud:google-cloud-pubsub:1.124.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.123.20" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.124.0" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.123.20 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.124.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1be91db899f4..bcdce48112b5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.123.20 + 1.124.0 From b8135336251bce9f1848765e896a00a17d880155 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 20:14:34 +0000 Subject: [PATCH 1498/2363] build(deps): bump certifi from 2023.5.7 to 2023.7.22 in /.kokoro (#1669) Bumps [certifi](https://togithub.com/certifi/python-certifi) from 2023.5.7 to 2023.7.22.
    Commits

    [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=certifi&package-manager=pip&previous-version=2023.5.7&new-version=2023.7.22)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
    Dependabot commands and options
    You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://togithub.com/googleapis/java-pubsub/network/alerts).
    From 01a9de8f31ef06857cdc8aa3d9c5b8bd9e2774fd Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 11:05:27 -0400 Subject: [PATCH 1499/2363] build(deps): bump certifi from 2023.5.7 to 2023.7.22 in /synthtool/gcp/templates/java_library/.kokoro (#1837) (#1681) build(deps): bump certifi Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.5.7 to 2023.7.22. - [Commits](https://github.com/certifi/python-certifi/compare/2023.05.07...2023.07.22) --- updated-dependencies: - dependency-name: certifi dependency-type: indirect ... Source-Link: https://github.com/googleapis/synthtool/commit/d85e1d678a829da6f2f5664392a6cd8e95ba8341 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:3a95f1b9b1102865ca551b76be51d2bdb850900c4db2f6d79269e7af81ac8f84 Signed-off-by: dependabot[bot] Co-authored-by: Owl Bot Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.kokoro/requirements.txt | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index d5500ef44246..fa335912bd92 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:46d2d262cd285c638656c8bde468011b723dc0c7ffd6a5ecc2650fe639c82e8f -# created: 2023-07-24T14:21:17.707234503Z + digest: sha256:3a95f1b9b1102865ca551b76be51d2bdb850900c4db2f6d79269e7af81ac8f84 +# created: 2023-07-27T18:37:44.251188775Z diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index 32989051e7f9..a73256ab80be 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -12,9 +12,9 @@ cachetools==5.3.1 \ --hash=sha256:95ef631eeaea14ba2e36f06437f36463aac3a096799e876ee55e5cdccb102590 \ --hash=sha256:dce83f2d9b4e1f732a8cd44af8e8fab2dbe46201467fc98b3ef8f269092bf62b # via google-auth -certifi==2023.5.7 \ - --hash=sha256:0f0d56dc5a6ad56fd4ba36484d6cc34451e1c6548c61daad8c320169f91eddc7 \ - --hash=sha256:c6c2e98f5c7869efca1f8916fed228dd91539f9f1b444c314c06eef02980c716 +certifi==2023.7.22 \ + --hash=sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082 \ + --hash=sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9 # via requests cffi==1.15.1 \ --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ @@ -485,6 +485,5 @@ zipp==3.16.1 \ # via importlib-metadata # WARNING: The following packages were not pinned, but pip requires them to be -# pinned when the requirements file includes hashes and the requirement is not -# satisfied by a package already installed. Consider using the --allow-unsafe flag. +# pinned when the requirements file includes hashes. Consider using the --allow-unsafe flag. # setuptools From 90d44a08597ba5e5b615e0da35c85c868256c703 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 31 Jul 2023 17:05:43 +0200 Subject: [PATCH 1500/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.20.0 (#1683) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.20.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d99ed165a56f..dcb7bd17d085 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.19.0 + 26.20.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.19.0') +implementation platform('com.google.cloud:libraries-bom:26.20.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 40bd15b830cb..f2cc15c85a99 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.19.0 + 26.20.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2c4261707e8e..12fbff40e595 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.19.0 + 26.20.0 pom import From 72799e33278886e9b9ba6a45ac69c89772a562a1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 3 Aug 2023 21:41:20 +0200 Subject: [PATCH 1501/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.21.0 (#1684) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.21.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index dcb7bd17d085..19f58edbdd4e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.20.0 + 26.21.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.20.0') +implementation platform('com.google.cloud:libraries-bom:26.21.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index f2cc15c85a99..998139068e55 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.20.0 + 26.21.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 12fbff40e595..8c11cfcefae8 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.20.0 + 26.21.0 pom import From b7d6cf251603e4de56929c632f6ce6f4cfd516f1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 3 Aug 2023 21:41:42 +0200 Subject: [PATCH 1502/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.22.0 (#1687) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.22.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bcdce48112b5..1cd128ba7dcc 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.21.1 + 2.22.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4f44f3bbaca7..e7d688174832 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.21.1 + 2.22.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 8c11cfcefae8..4f1ce5f129d8 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.21.1 + 2.22.0 tests From 990aeb530608ab2341f3a567169db647d02c46c8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 3 Aug 2023 21:41:57 +0200 Subject: [PATCH 1503/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.14.0 (#1688) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.14.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 07f64e576f2d..d1f916649e8c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.13.1 + 3.14.0 pom import From b168ecf6b3b3ed32895ca7b3e86ef49045547438 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 19:56:14 +0000 Subject: [PATCH 1504/2363] chore(main): release 1.124.1 (#1691) :robot: I have created a release *beep* *boop* --- ## [1.124.1](https://togithub.com/googleapis/java-pubsub/compare/v1.124.0...v1.124.1) (2023-08-03) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.22.0 ([#1687](https://togithub.com/googleapis/java-pubsub/issues/1687)) ([b7d6cf2](https://togithub.com/googleapis/java-pubsub/commit/b7d6cf251603e4de56929c632f6ce6f4cfd516f1)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.14.0 ([#1688](https://togithub.com/googleapis/java-pubsub/issues/1688)) ([990aeb5](https://togithub.com/googleapis/java-pubsub/commit/990aeb530608ab2341f3a567169db647d02c46c8)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index a6692e628a26..01f68f8f36db 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.124.1](https://github.com/googleapis/java-pubsub/compare/v1.124.0...v1.124.1) (2023-08-03) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.22.0 ([#1687](https://github.com/googleapis/java-pubsub/issues/1687)) ([220f318](https://github.com/googleapis/java-pubsub/commit/220f3181562a848cd786cc0126e8e3ad382787c7)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.14.0 ([#1688](https://github.com/googleapis/java-pubsub/issues/1688)) ([0ded9f1](https://github.com/googleapis/java-pubsub/commit/0ded9f172af637db5d4302b146a24ecdd5b1bde2)) + ## [1.124.0](https://github.com/googleapis/java-pubsub/compare/v1.123.20...v1.124.0) (2023-07-27) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 846eaba8ea10..2af7c1c48282 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.124.1-SNAPSHOT + 1.124.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.124.1-SNAPSHOT + 1.124.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.1-SNAPSHOT + 1.106.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.1-SNAPSHOT + 1.106.1
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6542052a3e33..8891c925b2d4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.124.1-SNAPSHOT + 1.124.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.124.1-SNAPSHOT + 1.124.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f65bf592fee0..fae67e330699 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.1-SNAPSHOT + 1.106.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.1-SNAPSHOT + 1.124.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d1f916649e8c..fd86172fdae0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.124.1-SNAPSHOT + 1.124.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.1-SNAPSHOT + 1.106.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.1-SNAPSHOT + 1.106.1 com.google.cloud google-cloud-pubsub - 1.124.1-SNAPSHOT + 1.124.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2f7caeadf7f8..e4a7195220ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.1-SNAPSHOT + 1.106.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.1-SNAPSHOT + 1.124.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e7d688174832..810706cd12fe 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.124.1-SNAPSHOT + 1.124.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ea3de29f2319..0bdfb11e7e60 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.124.0:1.124.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.106.0:1.106.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.106.0:1.106.1-SNAPSHOT +google-cloud-pubsub:1.124.1:1.124.1 +grpc-google-cloud-pubsub-v1:1.106.1:1.106.1 +proto-google-cloud-pubsub-v1:1.106.1:1.106.1 From e64625b867cab6fd39afa1faf6f367ce2dd64483 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Aug 2023 20:12:12 +0000 Subject: [PATCH 1505/2363] chore(main): release 1.124.2-SNAPSHOT (#1692) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2af7c1c48282..3e575aa7c85a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.124.1 + 1.124.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.124.1 + 1.124.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.1 + 1.106.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.1 + 1.106.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8891c925b2d4..67e745044782 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.124.1 + 1.124.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.124.1 + 1.124.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fae67e330699..26b4e370c6a6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.1 + 1.106.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.1 + 1.124.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index fd86172fdae0..71ffc6c30491 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.124.1 + 1.124.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.1 + 1.106.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.1 + 1.106.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.124.1 + 1.124.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e4a7195220ee..6497b298e00d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.1 + 1.106.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.1 + 1.124.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 810706cd12fe..6e4bdf426345 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.124.1 + 1.124.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0bdfb11e7e60..6804058832ca 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.124.1:1.124.1 -grpc-google-cloud-pubsub-v1:1.106.1:1.106.1 -proto-google-cloud-pubsub-v1:1.106.1:1.106.1 +google-cloud-pubsub:1.124.1:1.124.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.106.1:1.106.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.106.1:1.106.2-SNAPSHOT From b29ca828a73c895cec4031ade2c5a32254d03f60 Mon Sep 17 00:00:00 2001 From: amfisher-404 Date: Mon, 7 Aug 2023 16:00:24 -0400 Subject: [PATCH 1506/2363] fix: update Publish retry backoff settings (#1686) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update Publisher.java Change default RetrySettings to use a multiplier of 4 instead of 1.3, to address aggressive retry on RESOURCE_EXHAUSTED errors. (Unfortunately, we can't set different retrySettings per error code.) * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 6803e5a439b8..d0437cb58ae1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -686,7 +686,7 @@ public static final class Builder { private static final Duration DEFAULT_TOTAL_TIMEOUT = Duration.ofSeconds(600); private static final Duration DEFAULT_INITIAL_RETRY_DELAY = Duration.ofMillis(100); private static final Duration DEFAULT_MAX_RETRY_DELAY = Duration.ofSeconds(60); - private static final double DEFAULT_MULTIPLIER = 1.3; + private static final double DEFAULT_MULTIPLIER = 4; static final BatchingSettings DEFAULT_BATCHING_SETTINGS = BatchingSettings.newBuilder() .setDelayThreshold(DEFAULT_DELAY_THRESHOLD) From e64b1330757220182a30f735f0ca4c92561312e4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Aug 2023 17:30:09 +0200 Subject: [PATCH 1507/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.24 (#1695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.24 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 19f58edbdd4e..ee456ea6506d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.124.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.124.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.124.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.124.1" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.124.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.124.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 998139068e55..8e765feed98a 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.23 + 0.9.24 test From 64472023d9683344ed9c2789f46df000f927ee81 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Aug 2023 17:30:43 +0200 Subject: [PATCH 1508/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.24 (#1696) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.24 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 8e765feed98a..f03f5f7998f4 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.23 + 0.9.24 true pubsub.NativeImagePubSubSample From 68f20fd014e316eeea91975fe45973b6b40bc187 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Aug 2023 17:44:57 +0200 Subject: [PATCH 1509/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.31.1 (#1697) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.31.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1cd128ba7dcc..c7e00684512a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.31.0 + 2.31.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6e4bdf426345..36904fae8156 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.31.0 + 2.31.1 From 0d47aad3253f84deb1eab98bf7d362fd853ad3f2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 15 Aug 2023 18:26:31 +0200 Subject: [PATCH 1510/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.22.0 (#1700) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.22.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ee456ea6506d..6dbde9963ffc 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.21.0 + 26.22.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.21.0') +implementation platform('com.google.cloud:libraries-bom:26.22.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index f03f5f7998f4..6b99a122a63b 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.21.0 + 26.22.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4f1ce5f129d8..5f30768f68f7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.21.0 + 26.22.0 pom import From 19ead13bdf9370b1ccb4adc6ea98c733a1d1926c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 24 Aug 2023 21:10:53 +0200 Subject: [PATCH 1511/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.124.1 (#1693) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.124.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6dbde9963ffc..5db40bce5ffb 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.124.0 + 1.124.1 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c7e00684512a..60442f4cfdf3 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.124.0 + 1.124.1 From 22ab5a8460633698780fb39a277baf1491e944eb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 24 Aug 2023 15:11:04 -0400 Subject: [PATCH 1512/2363] chore(main): release 1.124.2 (#1694) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 14 ++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 01f68f8f36db..b761399ff6a0 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.124.2](https://github.com/googleapis/java-pubsub/compare/v1.124.1...v1.124.2) (2023-08-15) + + +### Bug Fixes + +* Update Publish retry backoff settings ([#1686](https://github.com/googleapis/java-pubsub/issues/1686)) ([63a74d9](https://github.com/googleapis/java-pubsub/commit/63a74d98fdee56a98819d135a676a67fcc24961a)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.31.1 ([#1697](https://github.com/googleapis/java-pubsub/issues/1697)) ([9e90790](https://github.com/googleapis/java-pubsub/commit/9e907901e0f5f78adfffb3e61974e9f8fd756f96)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.24 ([#1695](https://github.com/googleapis/java-pubsub/issues/1695)) ([ec64036](https://github.com/googleapis/java-pubsub/commit/ec640361a471111001f22667fa7e38123b731025)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.24 ([#1696](https://github.com/googleapis/java-pubsub/issues/1696)) ([cc9ae19](https://github.com/googleapis/java-pubsub/commit/cc9ae19865c0ece3789a8c2fa22afb5fbd306dc9)) + ## [1.124.1](https://github.com/googleapis/java-pubsub/compare/v1.124.0...v1.124.1) (2023-08-03) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3e575aa7c85a..8dd3398725e1 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.124.2-SNAPSHOT + 1.124.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.124.2-SNAPSHOT + 1.124.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.2-SNAPSHOT + 1.106.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.2-SNAPSHOT + 1.106.2
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 67e745044782..f1b9a721530b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.124.2-SNAPSHOT + 1.124.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.124.2-SNAPSHOT + 1.124.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 26b4e370c6a6..5bcd56d0bbed 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.2-SNAPSHOT + 1.106.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.2-SNAPSHOT + 1.124.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 71ffc6c30491..1ab8bea9a9d8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.124.2-SNAPSHOT + 1.124.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.2-SNAPSHOT + 1.106.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.2-SNAPSHOT + 1.106.2 com.google.cloud google-cloud-pubsub - 1.124.2-SNAPSHOT + 1.124.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6497b298e00d..24a5f7485777 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.2-SNAPSHOT + 1.106.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.2-SNAPSHOT + 1.124.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 36904fae8156..444548334f1c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.124.2-SNAPSHOT + 1.124.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6804058832ca..9aa77eed5df8 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.124.1:1.124.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.106.1:1.106.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.106.1:1.106.2-SNAPSHOT +google-cloud-pubsub:1.124.2:1.124.2 +grpc-google-cloud-pubsub-v1:1.106.2:1.106.2 +proto-google-cloud-pubsub-v1:1.106.2:1.106.2 From 44a5be53899820d82c59c3f87dbf8fabeb77616c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 24 Aug 2023 15:21:58 -0400 Subject: [PATCH 1513/2363] fix: Make retry policy back off more aggressively for RPCs that retry RESOURCE_EXHAUSTD (#1704) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Make retry policy back off more aggressively for RPCs that retry RESOURCE_EXHAUSTD PiperOrigin-RevId: 557935020 Source-Link: https://github.com/googleapis/googleapis/commit/38e1f31e46d840075f14d9716b592e8a53c89855 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5bbe39d37218a420b2368c37541de5887db7d6af Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWJiZTM5ZDM3MjE4YTQyMGIyMzY4YzM3NTQxZGU1ODg3ZGI3ZDZhZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java | 2 +- .../com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 16cdef839499..73510eee061a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -654,7 +654,7 @@ public static class Builder extends StubSettings.Builder Date: Thu, 24 Aug 2023 15:52:59 -0400 Subject: [PATCH 1514/2363] build(deps): bump cryptography from 41.0.2 to 41.0.3 in /.kokoro (#1689) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): bump cryptography from 41.0.2 to 41.0.3 in /.kokoro Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.2 to 41.0.3. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/41.0.2...41.0.3) --- updated-dependencies: - dependency-name: cryptography dependency-type: indirect ... Signed-off-by: dependabot[bot] * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Owl Bot Co-authored-by: maitrimangal <121899734+maitrimangal@users.noreply.github.com> From bcf385ce14eef7add8d02168ef5cc634710d378b Mon Sep 17 00:00:00 2001 From: maitrimangal <121899734+maitrimangal@users.noreply.github.com> Date: Thu, 24 Aug 2023 16:06:05 -0400 Subject: [PATCH 1515/2363] feat: Receipt modack (#1540) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * receipt-modack for exactly once * changing setup * changing the pendingReceipt List * using scheduled fixed rate * using blocked queues * using blocked queues * using blocked queues * adding null safety * adding null safety * removing list * adding list back * if permanent failure, remove outstandingmsg from queue * adding snippet of test * adding method to streaming subscriber * adding method to streaming subscriber * adding notifyAcks * changing notifyAckFailed calls * addressing some comments * changed logic to use one datastructure * fixing notifyFailed * fixing notifyFailed * changing Pair to custom class * removing the not needed data structure * Fixing test * Fixing test * Fixing test * Fixing test * fixing format * fixing test to call receiveMessage * testing test failure * testing test failure * testing test failure * increasing timestamp to test * increasing timestamp to test * adding log statement for testing * Fixing lint * Adding more logs * batch size log * changing method to syncronized * fixing for loop to not remove as we are iterating * trying a concurrent map * fix: syncronizing notifyFailed * fix: removing unused import * fix: reformat * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: removing System.out.println statements * fix: reviewign comments * fix: lint * adding another ordering key test example * fix: trying to run this test again * fix: trying to run this test again * fix: removing commented code * fix: removing commented code * resolving the comments from review * adding custom matcher * adding custom matcher * adding custom matcher * adding custom matcher * adding custom matcher correcting the matching statement * lint * removing comments * removing comments * removing comments * changing messageMatcher to messageDataMatcher, and fixing other nit things * lint * addressing review comments * addressing review comments --------- Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/MessageDispatcher.java | 71 +++++++++++++- .../v1/StreamingSubscriberConnection.java | 4 + .../cloud/pubsub/v1/MessageDataMatcher.java | 35 +++++++ .../pubsub/v1/MessageDispatcherTest.java | 94 +++++++++++++++++++ 4 files changed, 200 insertions(+), 4 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDataMatcher.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 3c772819a201..9556849bbac4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -30,8 +30,11 @@ import com.google.pubsub.v1.ReceivedMessage; import java.util.ArrayList; import java.util.HashMap; +import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Map.Entry; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.Executor; @@ -89,7 +92,8 @@ class MessageDispatcher { private final LinkedBlockingQueue pendingAcks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingNacks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingReceipts = new LinkedBlockingQueue<>(); - + private final LinkedHashMap outstandingReceipts = + new LinkedHashMap(); private final AtomicInteger messageDeadlineSeconds = new AtomicInteger(); private final AtomicBoolean extendDeadline = new AtomicBoolean(true); private final Lock jobLock; @@ -350,6 +354,28 @@ private OutstandingMessage(ReceivedMessage receivedMessage, AckHandler ackHandle } } + private static class ReceiptCompleteData { + private OutstandingMessage outstandingMessage; + private Boolean receiptComplete; + + private ReceiptCompleteData(OutstandingMessage outstandingMessage) { + this.outstandingMessage = outstandingMessage; + this.receiptComplete = false; + } + + private OutstandingMessage getOutstandingMessage() { + return this.outstandingMessage; + } + + private Boolean isReceiptComplete() { + return this.receiptComplete; + } + + private void notifyReceiptComplete() { + this.receiptComplete = true; + } + } + void processReceivedMessages(List messages) { Instant totalExpiration = now().plus(maxAckExtensionPeriod); List outstandingBatch = new ArrayList<>(messages.size()); @@ -361,7 +387,13 @@ void processReceivedMessages(List messages) { AckRequestData ackRequestData = builder.build(); AckHandler ackHandler = new AckHandler(ackRequestData, message.getMessage().getSerializedSize(), totalExpiration); - if (pendingMessages.putIfAbsent(message.getAckId(), ackHandler) != null) { + OutstandingMessage outstandingMessage = new OutstandingMessage(message, ackHandler); + + if (this.exactlyOnceDeliveryEnabled.get()) { + // For exactly once deliveries we don't add to outstanding batch because we first + // process the receipt modack. If that is successful then we process the message. + outstandingReceipts.put(message.getAckId(), new ReceiptCompleteData(outstandingMessage)); + } else if (pendingMessages.putIfAbsent(message.getAckId(), ackHandler) != null) { // putIfAbsent puts ackHandler if ackID isn't previously mapped, then return the // previously-mapped element. // If the previous element is not null, we already have the message and the new one is @@ -371,14 +403,44 @@ void processReceivedMessages(List messages) { // we want to eventually // totally expire so that pubsub service sends us the message again. continue; + } else { + outstandingBatch.add(outstandingMessage); } - outstandingBatch.add(new OutstandingMessage(message, ackHandler)); pendingReceipts.add(ackRequestData); } - processBatch(outstandingBatch); } + synchronized void notifyAckSuccess(AckRequestData ackRequestData) { + + if (outstandingReceipts.containsKey(ackRequestData.getAckId())) { + outstandingReceipts.get(ackRequestData.getAckId()).notifyReceiptComplete(); + List outstandingBatch = new ArrayList<>(); + + for (Iterator> it = + outstandingReceipts.entrySet().iterator(); + it.hasNext(); ) { + Map.Entry receipt = it.next(); + // If receipt is complete then add to outstandingBatch to process the batch + if (receipt.getValue().isReceiptComplete()) { + it.remove(); + if (pendingMessages.putIfAbsent( + receipt.getKey(), receipt.getValue().getOutstandingMessage().ackHandler) + == null) { + outstandingBatch.add(receipt.getValue().getOutstandingMessage()); + } + } else { + break; + } + } + processBatch(outstandingBatch); + } + } + + synchronized void notifyAckFailed(AckRequestData ackRequestData) { + outstandingReceipts.remove(ackRequestData.getAckId()); + } + private void processBatch(List batch) { messagesWaiter.incrementPendingCount(batch.size()); for (OutstandingMessage message : batch) { @@ -519,6 +581,7 @@ void extendDeadlines() { @InternalApi void processOutstandingOperations() { + List modackRequestData = new ArrayList(); // Nacks are modacks with an expiration of 0 diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 160032c7a674..014771f2a248 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -527,6 +527,7 @@ public void onSuccess(Empty empty) { for (AckRequestData ackRequestData : ackRequestDataList) { // This will check if a response is needed, and if it has already been set ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); + messageDispatcher.notifyAckSuccess(ackRequestData); // Remove from our pending operations pendingRequests.remove(ackRequestData); } @@ -564,12 +565,15 @@ public void onFailure(Throwable t) { "Permanent error invalid ack id message, will not resend", errorMessage); ackRequestData.setResponse(AckResponse.INVALID, setResponseOnSuccess); + messageDispatcher.notifyAckFailed(ackRequestData); } else { logger.log(Level.INFO, "Unknown error message, will not resend", errorMessage); ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); + messageDispatcher.notifyAckFailed(ackRequestData); } } else { ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); + messageDispatcher.notifyAckSuccess(ackRequestData); } // Remove from our pending pendingRequests.remove(ackRequestData); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDataMatcher.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDataMatcher.java new file mode 100644 index 000000000000..745b18244bcd --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDataMatcher.java @@ -0,0 +1,35 @@ +/* + * Copyright 2017 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import org.mockito.ArgumentMatcher; + +public class MessageDataMatcher implements ArgumentMatcher { + + private ByteString expectedData; + + public MessageDataMatcher(ByteString expectedData) { + this.expectedData = expectedData; + } + + @Override + public boolean matches(PubsubMessage message2) { + return (expectedData.equals(message2.getData())); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 0b48e0991729..9321272b41aa 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -139,6 +139,100 @@ public void testReceiptMessageReceiver() { .receiveMessage(eq(TEST_MESSAGE.getMessage()), any(AckReplyConsumer.class)); } + @Test + public void testReceiptModackWithOrderingForExactlyOnceDelivered() { + + MessageReceiverWithAckResponse mockMessageReceiverWithAckResponse = + mock(MessageReceiverWithAckResponse.class); + MessageDispatcher messageDispatcher = getMessageDispatcher(mockMessageReceiverWithAckResponse); + messageDispatcher.setExactlyOnceDeliveryEnabled(true); + + ReceivedMessage TEST_MESSAGE1 = + ReceivedMessage.newBuilder() + .setAckId("ACK_ID1") + .setMessage( + PubsubMessage.newBuilder() + .setData(ByteString.copyFromUtf8("message-data1")) + .build()) + .setDeliveryAttempt(DELIVERY_INFO_COUNT) + .build(); + ReceivedMessage TEST_MESSAGE2 = + ReceivedMessage.newBuilder() + .setAckId("ACK_ID2") + .setMessage( + PubsubMessage.newBuilder() + .setData(ByteString.copyFromUtf8("message-data2")) + .build()) + .setDeliveryAttempt(DELIVERY_INFO_COUNT) + .build(); + ReceivedMessage TEST_MESSAGE3 = + ReceivedMessage.newBuilder() + .setAckId("ACK_ID3") + .setMessage( + PubsubMessage.newBuilder() + .setData(ByteString.copyFromUtf8("message-data3")) + .build()) + .setDeliveryAttempt(DELIVERY_INFO_COUNT) + .build(); + + messageDispatcher.processReceivedMessages( + Arrays.asList(TEST_MESSAGE3, TEST_MESSAGE2, TEST_MESSAGE1)); + + messageDispatcher.processOutstandingOperations(); + verify(mockMessageReceiverWithAckResponse, never()) + .receiveMessage(eq(TEST_MESSAGE.getMessage()), any(AckReplyConsumerWithResponse.class)); + + AckRequestData ackRequestData1 = AckRequestData.newBuilder(TEST_MESSAGE1.getAckId()).build(); + AckRequestData ackRequestData2 = AckRequestData.newBuilder(TEST_MESSAGE2.getAckId()).build(); + AckRequestData ackRequestData3 = AckRequestData.newBuilder(TEST_MESSAGE3.getAckId()).build(); + messageDispatcher.notifyAckSuccess(ackRequestData2); + messageDispatcher.processOutstandingOperations(); + + messageDispatcher.notifyAckSuccess(ackRequestData1); + messageDispatcher.notifyAckSuccess(ackRequestData3); + messageDispatcher.processOutstandingOperations(); + + verify(mockMessageReceiverWithAckResponse, times(1)) + .receiveMessage( + argThat(new MessageDataMatcher(TEST_MESSAGE3.getMessage().getData())), + any(AckReplyConsumerWithResponse.class)); + verify(mockMessageReceiverWithAckResponse, times(1)) + .receiveMessage( + argThat(new MessageDataMatcher(TEST_MESSAGE2.getMessage().getData())), + any(AckReplyConsumerWithResponse.class)); + verify(mockMessageReceiverWithAckResponse, times(1)) + .receiveMessage( + argThat(new MessageDataMatcher(TEST_MESSAGE1.getMessage().getData())), + any(AckReplyConsumerWithResponse.class)); + } + + @Test + public void testReceiptModackForExactlyOnceDelivered() { + + MessageReceiverWithAckResponse mockMessageReceiverWithAckResponse = + mock(MessageReceiverWithAckResponse.class); + MessageDispatcher messageDispatcher = getMessageDispatcher(mockMessageReceiverWithAckResponse); + messageDispatcher.setExactlyOnceDeliveryEnabled(true); + + messageDispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + + messageDispatcher.processOutstandingOperations(); + verify(mockMessageReceiverWithAckResponse, never()) + .receiveMessage(eq(TEST_MESSAGE.getMessage()), any(AckReplyConsumerWithResponse.class)); + + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + messageDispatcher.notifyAckSuccess(ackRequestData); + messageDispatcher.processOutstandingOperations(); + + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add(new ModackRequestData(MIN_ACK_DEADLINE_SECONDS, ackRequestData)); + + verify(mockMessageReceiverWithAckResponse, times(1)) + .receiveMessage( + argThat(new MessageDataMatcher(TEST_MESSAGE.getMessage().getData())), + any(AckReplyConsumerWithResponse.class)); + } + @Test public void testReceiptMessageReceiverWithAckResponse() { MessageReceiverWithAckResponse mockMessageReceiverWithAckResponse = From 44579ce0838cfafa493e3913ac19636dfe3d4df7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 24 Aug 2023 20:24:13 +0000 Subject: [PATCH 1516/2363] chore(main): release 1.124.3-SNAPSHOT (#1706) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5db40bce5ffb..77bdf25b71e8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.124.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.124.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.124.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.124.2" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.124.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.124.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8dd3398725e1..ec9b460728e5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.124.2 + 1.124.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.124.2 + 1.124.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.2 + 1.106.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.2 + 1.106.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f1b9a721530b..8d0da9db54e8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.124.2 + 1.124.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.124.2 + 1.124.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5bcd56d0bbed..22d8cdc6ff7d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.2 + 1.106.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.2 + 1.124.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1ab8bea9a9d8..65894ca29eec 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.124.2 + 1.124.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.2 + 1.106.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.2 + 1.106.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.124.2 + 1.124.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 24a5f7485777..bea53cafb969 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.2 + 1.106.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.2 + 1.124.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 444548334f1c..0fb4755a6c8e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.124.2 + 1.124.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9aa77eed5df8..152bce34e423 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.124.2:1.124.2 -grpc-google-cloud-pubsub-v1:1.106.2:1.106.2 -proto-google-cloud-pubsub-v1:1.106.2:1.106.2 +google-cloud-pubsub:1.124.2:1.124.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.106.2:1.106.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.106.2:1.106.3-SNAPSHOT From 2bab56ca02916c58a6f3a8b03a65ea181fa99839 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 25 Aug 2023 20:12:45 +0200 Subject: [PATCH 1517/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.25 (#1709) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 6b99a122a63b..30e0399d44b7 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.24 + 0.9.25 test From e79f846975a0e9e2046a9af3a1f113e1e2c5004f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 25 Aug 2023 20:13:00 +0200 Subject: [PATCH 1518/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.25 (#1710) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 30e0399d44b7..b914c2b28d8a 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.24 + 0.9.25 true pubsub.NativeImagePubSubSample From 1bc53c8d6a783d0a37bc693b3d40ad9fab414c38 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 8 Sep 2023 21:56:50 +0200 Subject: [PATCH 1519/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.15.0 (#1718) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 65894ca29eec..f3d370b01100 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.14.0 + 3.15.0 pom import From 9c1c8e4357bbb8b5c43827b1d4207f86c1de2ded Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 8 Sep 2023 21:57:04 +0200 Subject: [PATCH 1520/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.26 (#1716) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index b914c2b28d8a..67ee189ea8b0 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.25 + 0.9.26 true pubsub.NativeImagePubSubSample From ace61cc39c0cab8a2f67e9362d7659ecb73ed765 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 8 Sep 2023 21:57:32 +0200 Subject: [PATCH 1521/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.23.0 (#1717) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 60442f4cfdf3..512653890cf1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.22.0 + 2.23.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0fb4755a6c8e..377d95512a54 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.22.0 + 2.23.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5f30768f68f7..016a8f05af1d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.22.0 + 2.23.0 tests From f1df0e343c56e8540181541f32fa1878a1b53460 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 8 Sep 2023 21:57:45 +0200 Subject: [PATCH 1522/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.26 (#1715) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 67ee189ea8b0..2cc0341c2fdd 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.25 + 0.9.26 test From 616eeac69dfaf9c960ebc0f59d8f1b0e7ce3590d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 8 Sep 2023 21:58:03 +0200 Subject: [PATCH 1523/2363] deps: update actions/checkout action to v4 (#1712) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update actions/checkout action to v4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/workflows/samples.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/samples.yaml b/java-pubsub/.github/workflows/samples.yaml index 016279315911..f1a27f81c575 100644 --- a/java-pubsub/.github/workflows/samples.yaml +++ b/java-pubsub/.github/workflows/samples.yaml @@ -5,7 +5,7 @@ jobs: checkstyle: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions/setup-java@v1 with: java-version: 8 From ffdca812118d527be77ae214094c031c4bab984c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 8 Sep 2023 21:58:17 +0200 Subject: [PATCH 1524/2363] deps: update dependency org.easymock:easymock to v5.2.0 (#1711) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f3d370b01100..85a97916e126 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -98,7 +98,7 @@ org.easymock easymock - 5.1.0 + 5.2.0 test From c9604345a625b59264e3731b761b1c0bdfce514b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 8 Sep 2023 21:59:49 +0200 Subject: [PATCH 1525/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.24.3 (#1698) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 512653890cf1..4d5b3bdba5dc 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.23.4 + 3.24.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 377d95512a54..b6e26590e154 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.23.4 + 3.24.3 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 016a8f05af1d..71a0c58801df 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.23.4 + 3.24.3 From a5c198a60428be33e8e2f4a825210ca471779a59 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 12 Sep 2023 17:03:28 -0400 Subject: [PATCH 1526/2363] chore: for Java repos RenovateBot to ignore GitHub Actions workflow file (#1855) (#1714) chore: for Java repos RenovateBot to ignore GitHub Actions workflow file The actions used in the GitHub Actions workflow files do not appear in libraries' dependencies and mostly maintained by Java postprocessor templates. IgnorePath option document: https://docs.renovatebot.com/configuration-options/ Source-Link: https://github.com/googleapis/synthtool/commit/1543029c843989702adbe789acdead153ad696d1 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:88ba8dcc5c2c7792e1c3511381f4ab329002a1c42c512f66ca87ced572dfbf9f Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/renovate.json | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index fa335912bd92..52eaa54d82b2 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:3a95f1b9b1102865ca551b76be51d2bdb850900c4db2f6d79269e7af81ac8f84 -# created: 2023-07-27T18:37:44.251188775Z + digest: sha256:88ba8dcc5c2c7792e1c3511381f4ab329002a1c42c512f66ca87ced572dfbf9f +# created: 2023-09-05T18:54:42.225408832Z diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 6686189a1f32..977082821109 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -10,7 +10,10 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], - "ignorePaths": [".kokoro/requirements.txt"], + "ignorePaths": [ + ".kokoro/requirements.txt", + ".github/workflows/**" + ], "packageRules": [ { "packagePatterns": [ From 7ae88314517ccc74285a09c901587cb4094be26c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 13 Sep 2023 00:35:49 +0200 Subject: [PATCH 1527/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.31.2 (#1713) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4d5b3bdba5dc..63512687ad2a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.31.1 + 2.31.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b6e26590e154..f3659744f42e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.31.1 + 2.31.2
    From 506bbb663e2a603711c214c3ad918ff25aa54e09 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 10:37:46 -0400 Subject: [PATCH 1528/2363] chore(main): release 1.125.0 (#1708) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 26 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 +++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 8 files changed, 44 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index b761399ff6a0..03006cb74198 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## [1.125.0](https://github.com/googleapis/java-pubsub/compare/v1.124.2...v1.125.0) (2023-09-12) + + +### Features + +* Receipt modack ([#1540](https://github.com/googleapis/java-pubsub/issues/1540)) ([74d8da9](https://github.com/googleapis/java-pubsub/commit/74d8da97c42b672e3f9f26b9a535d6bac948a402)) + + +### Bug Fixes + +* Make retry policy back off more aggressively for RPCs that retry RESOURCE_EXHAUSTD ([#1704](https://github.com/googleapis/java-pubsub/issues/1704)) ([f61e7e0](https://github.com/googleapis/java-pubsub/commit/f61e7e0e2895a90e30ecf4dcbfa8c70022947d9e)) + + +### Dependencies + +* Update actions/checkout action to v4 ([#1712](https://github.com/googleapis/java-pubsub/issues/1712)) ([404c492](https://github.com/googleapis/java-pubsub/commit/404c492823306c1448c62383b9ea88cf9e43b970)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.31.2 ([#1713](https://github.com/googleapis/java-pubsub/issues/1713)) ([32cb43c](https://github.com/googleapis/java-pubsub/commit/32cb43cce40f7a39602eb7d9b39a88eb229fc4ef)) +* Update dependency com.google.cloud:google-cloud-core to v2.23.0 ([#1717](https://github.com/googleapis/java-pubsub/issues/1717)) ([929f778](https://github.com/googleapis/java-pubsub/commit/929f778e341aefe61206e55de828bf5a86e4efd3)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.15.0 ([#1718](https://github.com/googleapis/java-pubsub/issues/1718)) ([0eeaa19](https://github.com/googleapis/java-pubsub/commit/0eeaa19a640513e80d595ca7c4016e26fc30871b)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.24.3 ([#1698](https://github.com/googleapis/java-pubsub/issues/1698)) ([1157fbf](https://github.com/googleapis/java-pubsub/commit/1157fbff92204eae55bb24ad803f0b8e1336ac10)) +* Update dependency org.easymock:easymock to v5.2.0 ([#1711](https://github.com/googleapis/java-pubsub/issues/1711)) ([313f6dd](https://github.com/googleapis/java-pubsub/commit/313f6dd8b82fbc57df066615e285325969b6d2e4)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.25 ([#1709](https://github.com/googleapis/java-pubsub/issues/1709)) ([1cc8a53](https://github.com/googleapis/java-pubsub/commit/1cc8a53a416acdd5f9cd4fc598f2f5f182a2ad44)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.26 ([#1715](https://github.com/googleapis/java-pubsub/issues/1715)) ([f2cc75f](https://github.com/googleapis/java-pubsub/commit/f2cc75f960521e8be50cf354e00024d66fb8f7fb)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.25 ([#1710](https://github.com/googleapis/java-pubsub/issues/1710)) ([9764c3f](https://github.com/googleapis/java-pubsub/commit/9764c3f740cd726ad09cef82039561bd145fbe0c)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.26 ([#1716](https://github.com/googleapis/java-pubsub/issues/1716)) ([6c9e949](https://github.com/googleapis/java-pubsub/commit/6c9e9493ec7aeaa0711ad2155fa6a549937284df)) + ## [1.124.2](https://github.com/googleapis/java-pubsub/compare/v1.124.1...v1.124.2) (2023-08-15) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ec9b460728e5..37f5bae47209 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.124.3-SNAPSHOT + 1.125.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.124.3-SNAPSHOT + 1.125.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.3-SNAPSHOT + 1.107.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.3-SNAPSHOT + 1.107.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8d0da9db54e8..e308f0dfa235 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.124.3-SNAPSHOT + 1.125.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.124.3-SNAPSHOT + 1.125.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 22d8cdc6ff7d..ce51936f35f1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.3-SNAPSHOT + 1.107.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.3-SNAPSHOT + 1.125.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 85a97916e126..5c4497186080 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.124.3-SNAPSHOT + 1.125.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.3-SNAPSHOT + 1.107.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.106.3-SNAPSHOT + 1.107.0 com.google.cloud google-cloud-pubsub - 1.124.3-SNAPSHOT + 1.125.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index bea53cafb969..150aa919ac04 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.106.3-SNAPSHOT + 1.107.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.124.3-SNAPSHOT + 1.125.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f3659744f42e..1e1b7fc88ccf 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.124.3-SNAPSHOT + 1.125.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 152bce34e423..669c03e38f2e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.124.2:1.124.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.106.2:1.106.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.106.2:1.106.3-SNAPSHOT +google-cloud-pubsub:1.125.0:1.125.0 +grpc-google-cloud-pubsub-v1:1.107.0:1.107.0 +proto-google-cloud-pubsub-v1:1.107.0:1.107.0 From 6ea889547195d9de4b347e8ef86332b7a773d512 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:50:53 +0000 Subject: [PATCH 1529/2363] chore(main): release 1.125.1-SNAPSHOT (#1722) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 37f5bae47209..a9e95161f6f3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.0 + 1.125.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.0 + 1.125.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.0 + 1.107.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.0 + 1.107.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e308f0dfa235..d2b1fe9e4bc0 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.0 + 1.125.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.0 + 1.125.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ce51936f35f1..556344eb3e94 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.0 + 1.107.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.0 + 1.125.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5c4497186080..59dc182f2c5b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.0 + 1.125.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.0 + 1.107.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.0 + 1.107.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.0 + 1.125.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 150aa919ac04..71778cee3030 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.0 + 1.107.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.0 + 1.125.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1e1b7fc88ccf..1415b405b910 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.0 + 1.125.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 669c03e38f2e..bcb8bfc8d903 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.0:1.125.0 -grpc-google-cloud-pubsub-v1:1.107.0:1.107.0 -proto-google-cloud-pubsub-v1:1.107.0:1.107.0 +google-cloud-pubsub:1.125.0:1.125.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.0:1.107.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.0:1.107.1-SNAPSHOT From af31bd1ed26b5aa0310b65021a839debaee963f8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 13 Sep 2023 20:43:52 +0200 Subject: [PATCH 1530/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.124.2 (#1707) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.124.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 77bdf25b71e8..6fa71d70fa48 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.124.1 + 1.124.2 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 63512687ad2a..fce1ccd59154 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.124.1 + 1.124.2 From 170f1dc4a2929800302833ff79d160d8625e24e3 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Thu, 14 Sep 2023 16:16:34 +0000 Subject: [PATCH 1531/2363] chore: preserve MessageDataMatcher from being deleted by owl bot (#1724) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: preserve MessageDataMatcher from being deleted by owl bot * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.yaml | 1 + java-pubsub/README.md | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.yaml b/java-pubsub/.github/.OwlBot.yaml index f5302bbe83be..d9ed293caf17 100644 --- a/java-pubsub/.github/.OwlBot.yaml +++ b/java-pubsub/.github/.OwlBot.yaml @@ -34,6 +34,7 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDataMatcher.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6fa71d70fa48..8203e7afcc23 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.124.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.124.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.0" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.124.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From 0c74ce86dc8b17b101ed6b2e9c5321149d765629 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 14 Sep 2023 23:10:44 +0200 Subject: [PATCH 1532/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.23.0 (#1726) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.23.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8203e7afcc23..b3c67a224776 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.22.0 + 26.23.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.22.0') +implementation platform('com.google.cloud:libraries-bom:26.23.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 2cc0341c2fdd..068c4081d028 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.22.0 + 26.23.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 71a0c58801df..6a03ce2173c0 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.22.0 + 26.23.0 pom import From bb68f16e34d301bea342b2982d33b63b81c911c1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 14 Sep 2023 23:10:59 +0200 Subject: [PATCH 1533/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.0 (#1723) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b3c67a224776..61654d875d50 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.124.2 + 1.125.0 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fce1ccd59154..06384db6cb98 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.124.2 + 1.125.0 From f035c18a87c0ac78d3d708b904e7faa02707ff83 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 14 Sep 2023 23:11:16 +0200 Subject: [PATCH 1534/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.32.0 (#1725) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 06384db6cb98..6cedafeeea9f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.31.2 + 2.32.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1415b405b910..3b751ab10a4b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.31.2 + 2.32.0 From 141d823f0c3a1b614e83a37e8b1dfaaf294e7c7e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 14 Sep 2023 23:13:16 +0200 Subject: [PATCH 1535/2363] deps: update actions/checkout action to v4 - abandoned (#1719) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update actions/checkout action to v4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot From f6a3011a7e9e52170271b08724b9273b8dcc8292 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:42:13 +0000 Subject: [PATCH 1536/2363] chore(main): release 1.125.1 (#1727) :robot: I have created a release *beep* *boop* --- ## [1.125.1](https://togithub.com/googleapis/java-pubsub/compare/v1.125.0...v1.125.1) (2023-09-14) ### Dependencies * Update actions/checkout action to v4 - abandoned ([#1719](https://togithub.com/googleapis/java-pubsub/issues/1719)) ([141d823](https://togithub.com/googleapis/java-pubsub/commit/141d823f0c3a1b614e83a37e8b1dfaaf294e7c7e)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.32.0 ([#1725](https://togithub.com/googleapis/java-pubsub/issues/1725)) ([f035c18](https://togithub.com/googleapis/java-pubsub/commit/f035c18a87c0ac78d3d708b904e7faa02707ff83)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 03006cb74198..e170aae16268 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.125.1](https://github.com/googleapis/java-pubsub/compare/v1.125.0...v1.125.1) (2023-09-14) + + +### Dependencies + +* Update actions/checkout action to v4 - abandoned ([#1719](https://github.com/googleapis/java-pubsub/issues/1719)) ([b82f15a](https://github.com/googleapis/java-pubsub/commit/b82f15a099f3366620f5e22764b043911ebd88d1)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.32.0 ([#1725](https://github.com/googleapis/java-pubsub/issues/1725)) ([f40f09a](https://github.com/googleapis/java-pubsub/commit/f40f09a185c035cc03b6be6ec62f880da9f7b377)) + ## [1.125.0](https://github.com/googleapis/java-pubsub/compare/v1.124.2...v1.125.0) (2023-09-12) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a9e95161f6f3..5e132ef443f3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.1-SNAPSHOT + 1.125.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.1-SNAPSHOT + 1.125.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.1-SNAPSHOT + 1.107.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.1-SNAPSHOT + 1.107.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d2b1fe9e4bc0..44705e7b75f7 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.1-SNAPSHOT + 1.125.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.1-SNAPSHOT + 1.125.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 556344eb3e94..bc965976cfc4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.1-SNAPSHOT + 1.107.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.1-SNAPSHOT + 1.125.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 59dc182f2c5b..d259167580ea 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.1-SNAPSHOT + 1.125.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.1-SNAPSHOT + 1.107.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.1-SNAPSHOT + 1.107.1 com.google.cloud google-cloud-pubsub - 1.125.1-SNAPSHOT + 1.125.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 71778cee3030..16d40bbc2bd2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.1-SNAPSHOT + 1.107.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.1-SNAPSHOT + 1.125.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3b751ab10a4b..06d347fc874d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.1-SNAPSHOT + 1.125.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index bcb8bfc8d903..c516a57cad83 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.0:1.125.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.0:1.107.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.0:1.107.1-SNAPSHOT +google-cloud-pubsub:1.125.1:1.125.1 +grpc-google-cloud-pubsub-v1:1.107.1:1.107.1 +proto-google-cloud-pubsub-v1:1.107.1:1.107.1 From 30333922e1b84ef2b6c7544296e981df8ec95aa0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 14 Sep 2023 21:56:13 +0000 Subject: [PATCH 1537/2363] chore(main): release 1.125.2-SNAPSHOT (#1728) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5e132ef443f3..fdbce7d2b706 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.1 + 1.125.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.1 + 1.125.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.1 + 1.107.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.1 + 1.107.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 44705e7b75f7..eedc4ffe5187 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.1 + 1.125.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.1 + 1.125.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bc965976cfc4..8bd25b28c65e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.1 + 1.107.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.1 + 1.125.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d259167580ea..b331d93c5615 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.1 + 1.125.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.1 + 1.107.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.1 + 1.107.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.1 + 1.125.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 16d40bbc2bd2..b7e09ac04a72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.1 + 1.107.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.1 + 1.125.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 06d347fc874d..ecafa3cdb8f7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.1 + 1.125.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c516a57cad83..bfa212a9288c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.1:1.125.1 -grpc-google-cloud-pubsub-v1:1.107.1:1.107.1 -proto-google-cloud-pubsub-v1:1.107.1:1.107.1 +google-cloud-pubsub:1.125.1:1.125.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.1:1.107.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.1:1.107.2-SNAPSHOT From b0e93e5f58132c849cbac24b3eb648fae1dceafd Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 15 Sep 2023 11:59:03 -0400 Subject: [PATCH 1538/2363] chore: Update the Java code generator (gapic-generator-java) to 2.25.0 (#1720) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update the Java code generator (gapic-generator-java) to 2.25.0 PiperOrigin-RevId: 563824709 Source-Link: https://github.com/googleapis/googleapis/commit/8fe4127b6bd66764c7a854d555d05ff4914b6716 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c8c0112151b19d890bb49b747b0ab28b816d47b1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhjMDExMjE1MWIxOWQ4OTBiYjQ5Yjc0N2IwYWIyOGI4MTZkNDdiMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../src/main/java/com/google/pubsub/v1/ProjectName.java | 2 +- .../src/main/java/com/google/pubsub/v1/SchemaName.java | 2 +- .../src/main/java/com/google/pubsub/v1/SnapshotName.java | 2 +- .../src/main/java/com/google/pubsub/v1/SubscriptionName.java | 2 +- .../src/main/java/com/google/pubsub/v1/TopicName.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index 2db62c0e7881..d04475ab0515 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -127,7 +127,7 @@ public boolean equals(Object o) { if (o == this) { return true; } - if (o != null || getClass() == o.getClass()) { + if (o != null && getClass() == o.getClass()) { ProjectName that = ((ProjectName) o); return Objects.equals(this.project, that.project); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java index 1b2c9a90870a..2d8968ddf28e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -137,7 +137,7 @@ public boolean equals(Object o) { if (o == this) { return true; } - if (o != null || getClass() == o.getClass()) { + if (o != null && getClass() == o.getClass()) { SchemaName that = ((SchemaName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.schema, that.schema); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java index 2aba349b38c8..4642f23233d0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java @@ -137,7 +137,7 @@ public boolean equals(Object o) { if (o == this) { return true; } - if (o != null || getClass() == o.getClass()) { + if (o != null && getClass() == o.getClass()) { SnapshotName that = ((SnapshotName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.snapshot, that.snapshot); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java index 8ed44f614308..ad49b90dddb2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java @@ -137,7 +137,7 @@ public boolean equals(Object o) { if (o == this) { return true; } - if (o != null || getClass() == o.getClass()) { + if (o != null && getClass() == o.getClass()) { SubscriptionName that = ((SubscriptionName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.subscription, that.subscription); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 8af73d814c75..6fc356a2bbe4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -178,7 +178,7 @@ public boolean equals(Object o) { if (o == this) { return true; } - if (o != null || getClass() == o.getClass()) { + if (o != null && getClass() == o.getClass()) { TopicName that = ((TopicName) o); return Objects.equals(this.project, that.project) && Objects.equals(this.topic, that.topic); } From fc2231fc684b7d607f428b7b9578e8a7b06e379d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 15 Sep 2023 17:59:22 +0200 Subject: [PATCH 1539/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.1 (#1729) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 61654d875d50..040bf394d0ab 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.0 + 1.125.1 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.1" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6cedafeeea9f..960a8de7ee8a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.0 + 1.125.1 From a4adf5af09510e61b6709ddb986fc14cdc099d0b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 15 Sep 2023 17:59:38 +0200 Subject: [PATCH 1540/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.27 (#1731) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.27 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 068c4081d028..c83eccf5cae7 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.26 + 0.9.27 true pubsub.NativeImagePubSubSample From 565f262132c031d5d36169584e6d96f6801317cf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 18 Sep 2023 17:40:31 +0200 Subject: [PATCH 1541/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.27 (#1730) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index c83eccf5cae7..44a971a58727 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.26 + 0.9.27 test From 504e804fbfd164ef5bf3282f63250b7777f34e61 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 18 Sep 2023 17:40:47 +0200 Subject: [PATCH 1542/2363] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.6.0 (#1733) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b331d93c5615..c12dffffc325 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -172,7 +172,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.5.0 + 3.6.0 html From 3d67774643e2f93fb580193a12e8ff1149fbcc44 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 18 Sep 2023 15:54:16 +0000 Subject: [PATCH 1543/2363] chore(main): release 1.125.2 (#1732) :robot: I have created a release *beep* *boop* --- ## [1.125.2](https://togithub.com/googleapis/java-pubsub/compare/v1.125.1...v1.125.2) (2023-09-18) ### Dependencies * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.27 ([#1730](https://togithub.com/googleapis/java-pubsub/issues/1730)) ([565f262](https://togithub.com/googleapis/java-pubsub/commit/565f262132c031d5d36169584e6d96f6801317cf)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.27 ([#1731](https://togithub.com/googleapis/java-pubsub/issues/1731)) ([a4adf5a](https://togithub.com/googleapis/java-pubsub/commit/a4adf5af09510e61b6709ddb986fc14cdc099d0b)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index e170aae16268..5b46b77f7841 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.125.2](https://github.com/googleapis/java-pubsub/compare/v1.125.1...v1.125.2) (2023-09-18) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.27 ([#1730](https://github.com/googleapis/java-pubsub/issues/1730)) ([687a855](https://github.com/googleapis/java-pubsub/commit/687a855580a9c8fe7f0d4a8952cb3ca46ff6f736)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.27 ([#1731](https://github.com/googleapis/java-pubsub/issues/1731)) ([403b7e7](https://github.com/googleapis/java-pubsub/commit/403b7e72c275464a67f6998bb975d95026a8480d)) + ## [1.125.1](https://github.com/googleapis/java-pubsub/compare/v1.125.0...v1.125.1) (2023-09-14) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fdbce7d2b706..56507d63b4d5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.2-SNAPSHOT + 1.125.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.2-SNAPSHOT + 1.125.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.2-SNAPSHOT + 1.107.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.2-SNAPSHOT + 1.107.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index eedc4ffe5187..793312d77300 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.2-SNAPSHOT + 1.125.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.2-SNAPSHOT + 1.125.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8bd25b28c65e..5f316d6eab7e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.2-SNAPSHOT + 1.107.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.2-SNAPSHOT + 1.125.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c12dffffc325..0744883da520 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.2-SNAPSHOT + 1.125.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.2-SNAPSHOT + 1.107.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.2-SNAPSHOT + 1.107.2 com.google.cloud google-cloud-pubsub - 1.125.2-SNAPSHOT + 1.125.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b7e09ac04a72..9185fcd18522 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.2-SNAPSHOT + 1.107.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.2-SNAPSHOT + 1.125.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ecafa3cdb8f7..db31968750c3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.2-SNAPSHOT + 1.125.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index bfa212a9288c..421bc8347a7c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.1:1.125.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.1:1.107.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.1:1.107.2-SNAPSHOT +google-cloud-pubsub:1.125.2:1.125.2 +grpc-google-cloud-pubsub-v1:1.107.2:1.107.2 +proto-google-cloud-pubsub-v1:1.107.2:1.107.2 From 520b87c6ba6f8a459f49fb1cf9b330c20c25c7c8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:08:18 +0000 Subject: [PATCH 1544/2363] chore(main): release 1.125.3-SNAPSHOT (#1734) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 56507d63b4d5..2f14f3cd4944 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.2 + 1.125.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.2 + 1.125.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.2 + 1.107.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.2 + 1.107.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 793312d77300..d8ad47c662cf 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.2 + 1.125.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.2 + 1.125.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5f316d6eab7e..a2d16d90b46b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.2 + 1.107.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.2 + 1.125.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0744883da520..b55c07f75675 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.2 + 1.125.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.2 + 1.107.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.2 + 1.107.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.2 + 1.125.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9185fcd18522..b63d7ca8eff3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.2 + 1.107.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.2 + 1.125.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index db31968750c3..b399d273bbde 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.2 + 1.125.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 421bc8347a7c..674c96e7650b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.2:1.125.2 -grpc-google-cloud-pubsub-v1:1.107.2:1.107.2 -proto-google-cloud-pubsub-v1:1.107.2:1.107.2 +google-cloud-pubsub:1.125.2:1.125.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.2:1.107.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.2:1.107.3-SNAPSHOT From 7327196285ec6116dc1dde731c5d7feed80f86e6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Sep 2023 16:09:35 +0200 Subject: [PATCH 1545/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.2 (#1735) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 040bf394d0ab..b7ebdb884e3a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.1 + 1.125.2 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.2" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 960a8de7ee8a..6295bbddf2ec 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.1 + 1.125.2 From caeaa6c1f8f354b93a65af518289a326856b388c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Sep 2023 20:17:23 +0200 Subject: [PATCH 1546/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.4 [security] (#1742) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6295bbddf2ec..bc9188793d45 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.3 + 1.1.10.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b399d273bbde..61f735c7a73d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.3 + 1.1.10.4 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6a03ce2173c0..35c8f88b2b71 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -71,7 +71,7 @@ org.xerial.snappy snappy-java - 1.1.10.3 + 1.1.10.4 com.google.protobuf From f715d4370b6d0cf216c495c8f16a969da9331deb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Sep 2023 20:19:07 +0200 Subject: [PATCH 1547/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.24.1 (#1737) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bc9188793d45..3c2bfd88c406 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.23.0 + 2.24.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 61f735c7a73d..2e36e5d37a89 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.23.0 + 2.24.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 35c8f88b2b71..8e832b12e0af 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.23.0 + 2.24.1 tests From 4981df483b53bd00e49329fd01d66dd563465551 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 27 Sep 2023 15:54:26 -0400 Subject: [PATCH 1548/2363] build(deps): bump org.xerial.snappy:snappy-java (#1745) Bumps [org.xerial.snappy:snappy-java](https://github.com/xerial/snappy-java) from 1.1.10.3 to 1.1.10.4. - [Release notes](https://github.com/xerial/snappy-java/releases) - [Commits](https://github.com/xerial/snappy-java/compare/v1.1.10.3...v1.1.10.4) --- updated-dependencies: - dependency-name: org.xerial.snappy:snappy-java dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> From 853c4f0b6ea72398e757f59543bcffa8a375bc07 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 27 Sep 2023 15:54:33 -0400 Subject: [PATCH 1549/2363] build(deps): bump org.xerial.snappy:snappy-java in /samples/snapshot (#1744) Bumps [org.xerial.snappy:snappy-java](https://github.com/xerial/snappy-java) from 1.1.10.3 to 1.1.10.4. - [Release notes](https://github.com/xerial/snappy-java/releases) - [Commits](https://github.com/xerial/snappy-java/compare/v1.1.10.3...v1.1.10.4) --- updated-dependencies: - dependency-name: org.xerial.snappy:snappy-java dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> From a1c6d026433b30c708bde0b84492462c73f061f3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 27 Sep 2023 15:54:45 -0400 Subject: [PATCH 1550/2363] build(deps): bump org.xerial.snappy:snappy-java in /samples/snippets (#1743) Bumps [org.xerial.snappy:snappy-java](https://github.com/xerial/snappy-java) from 1.1.10.3 to 1.1.10.4. - [Release notes](https://github.com/xerial/snappy-java/releases) - [Commits](https://github.com/xerial/snappy-java/compare/v1.1.10.3...v1.1.10.4) --- updated-dependencies: - dependency-name: org.xerial.snappy:snappy-java dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> From 3cf5bcac8467b8a481bfbd08e343090ca7d12951 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Sep 2023 22:19:29 +0200 Subject: [PATCH 1551/2363] deps: update dependency org.apache.avro:avro to v1.11.3 (#1740) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3c2bfd88c406..14099e3dc06c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -51,7 +51,7 @@ org.apache.avro avro - 1.11.2 + 1.11.3 compile diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2e36e5d37a89..f641deb38a51 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -50,7 +50,7 @@ org.apache.avro avro - 1.11.2 + 1.11.3 compile diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 8e832b12e0af..187b4747a7e5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -66,7 +66,7 @@ org.apache.avro avro - 1.11.2 + 1.11.3 org.xerial.snappy From e49ec3b7a7c442df168f03f5cc7b4427378ea295 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Sep 2023 22:35:48 +0200 Subject: [PATCH 1552/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.5 (#1746) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 14099e3dc06c..dd7e5d89439c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.4 + 1.1.10.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f641deb38a51..b5a833bd7b8d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.4 + 1.1.10.5 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 187b4747a7e5..4b74c8bb1908 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -71,7 +71,7 @@ org.xerial.snappy snappy-java - 1.1.10.4 + 1.1.10.5 com.google.protobuf From 595e9a92ad15ed9b57c2cb592bb41cacc95a862f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Sep 2023 22:50:22 +0200 Subject: [PATCH 1553/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.16.1 (#1738) * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.16.1 * chore: fixes from `dependencies.sh` --------- Co-authored-by: Diego Marquez --- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d8ad47c662cf..aa5076aedb19 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -84,7 +84,7 @@ io.grpc - grpc-core + grpc-inprocess runtime diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b55c07f75675..6e70cd0c244d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.15.0 + 3.16.1 pom import From e3fa6f404e247a35167a80177779ddb3c5b58a78 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 27 Sep 2023 21:04:16 +0000 Subject: [PATCH 1554/2363] chore(main): release 1.125.3 (#1747) :robot: I have created a release *beep* *boop* --- ## [1.125.3](https://togithub.com/googleapis/java-pubsub/compare/v1.125.2...v1.125.3) (2023-09-27) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.24.1 ([#1737](https://togithub.com/googleapis/java-pubsub/issues/1737)) ([f715d43](https://togithub.com/googleapis/java-pubsub/commit/f715d4370b6d0cf216c495c8f16a969da9331deb)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.16.1 ([#1738](https://togithub.com/googleapis/java-pubsub/issues/1738)) ([595e9a9](https://togithub.com/googleapis/java-pubsub/commit/595e9a92ad15ed9b57c2cb592bb41cacc95a862f)) * Update dependency org.apache.avro:avro to v1.11.3 ([#1740](https://togithub.com/googleapis/java-pubsub/issues/1740)) ([3cf5bca](https://togithub.com/googleapis/java-pubsub/commit/3cf5bcac8467b8a481bfbd08e343090ca7d12951)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.4 [security] ([#1742](https://togithub.com/googleapis/java-pubsub/issues/1742)) ([caeaa6c](https://togithub.com/googleapis/java-pubsub/commit/caeaa6c1f8f354b93a65af518289a326856b388c)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.5 ([#1746](https://togithub.com/googleapis/java-pubsub/issues/1746)) ([e49ec3b](https://togithub.com/googleapis/java-pubsub/commit/e49ec3b7a7c442df168f03f5cc7b4427378ea295)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 11 +++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 29 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 5b46b77f7841..3b9866558e01 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [1.125.3](https://github.com/googleapis/java-pubsub/compare/v1.125.2...v1.125.3) (2023-09-27) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.24.1 ([#1737](https://github.com/googleapis/java-pubsub/issues/1737)) ([48a4432](https://github.com/googleapis/java-pubsub/commit/48a44321ad34edd8c297ccc57445ec36916171cb)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.16.1 ([#1738](https://github.com/googleapis/java-pubsub/issues/1738)) ([e2cf7c1](https://github.com/googleapis/java-pubsub/commit/e2cf7c110b72dff695a46a972687a595216934e6)) +* Update dependency org.apache.avro:avro to v1.11.3 ([#1740](https://github.com/googleapis/java-pubsub/issues/1740)) ([971b35f](https://github.com/googleapis/java-pubsub/commit/971b35f5d26263ef3c1d83b6282680ac1608c032)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.4 [security] ([#1742](https://github.com/googleapis/java-pubsub/issues/1742)) ([70ba500](https://github.com/googleapis/java-pubsub/commit/70ba500cc014cb9d0e1799997aa0682239b97cde)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.5 ([#1746](https://github.com/googleapis/java-pubsub/issues/1746)) ([a4b1994](https://github.com/googleapis/java-pubsub/commit/a4b199414cad5cb061330832b2bf2a8bbe76bcbd)) + ## [1.125.2](https://github.com/googleapis/java-pubsub/compare/v1.125.1...v1.125.2) (2023-09-18) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2f14f3cd4944..3776eeb2be30 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.3-SNAPSHOT + 1.125.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.3-SNAPSHOT + 1.125.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.3-SNAPSHOT + 1.107.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.3-SNAPSHOT + 1.107.3 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index aa5076aedb19..c416b9fc60e4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.3-SNAPSHOT + 1.125.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.3-SNAPSHOT + 1.125.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a2d16d90b46b..e2fe6c2a42e1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.3-SNAPSHOT + 1.107.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.3-SNAPSHOT + 1.125.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6e70cd0c244d..bf006c7725fa 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.3-SNAPSHOT + 1.125.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.3-SNAPSHOT + 1.107.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.3-SNAPSHOT + 1.107.3 com.google.cloud google-cloud-pubsub - 1.125.3-SNAPSHOT + 1.125.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b63d7ca8eff3..914d4e5b595e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.3-SNAPSHOT + 1.107.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.3-SNAPSHOT + 1.125.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b5a833bd7b8d..4a5f13ce34a0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.3-SNAPSHOT + 1.125.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 674c96e7650b..6c855d4c3c9b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.2:1.125.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.2:1.107.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.2:1.107.3-SNAPSHOT +google-cloud-pubsub:1.125.3:1.125.3 +grpc-google-cloud-pubsub-v1:1.107.3:1.107.3 +proto-google-cloud-pubsub-v1:1.107.3:1.107.3 From 1548e2c4b8dca4acdf6d0a2ec4bab5d84f1b0174 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 28 Sep 2023 16:57:24 +0200 Subject: [PATCH 1555/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.3 (#1749) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b7ebdb884e3a..23b5ce56826f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.2 + 1.125.3 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.3" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index dd7e5d89439c..04f965cf7f47 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.2 + 1.125.3 From 6cb1f0a2149cee327ec25466117389be0f0828fe Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 28 Sep 2023 16:58:41 +0200 Subject: [PATCH 1556/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.33.0 (#1750) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.33.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 04f965cf7f47..469491f39816 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.32.0 + 2.33.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4a5f13ce34a0..a640c845fbde 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.32.0 + 2.33.0 From 8b4b37bb68ac616ccf79c23c44b8b0e4eaf3c91a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:12:14 +0000 Subject: [PATCH 1557/2363] chore(main): release 1.125.4-SNAPSHOT (#1748) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3776eeb2be30..9e90beb8f7bc 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.3 + 1.125.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.3 + 1.125.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.3 + 1.107.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.3 + 1.107.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c416b9fc60e4..b64b393a9406 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.3 + 1.125.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.3 + 1.125.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e2fe6c2a42e1..64920e984a3d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.3 + 1.107.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.3 + 1.125.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bf006c7725fa..3357900771a5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.3 + 1.125.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.3 + 1.107.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.3 + 1.107.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.3 + 1.125.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 914d4e5b595e..3d568b6f5ba3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.3 + 1.107.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.3 + 1.125.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a640c845fbde..3471eed767c6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.3 + 1.125.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6c855d4c3c9b..0b03ade7323b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.3:1.125.3 -grpc-google-cloud-pubsub-v1:1.107.3:1.107.3 -proto-google-cloud-pubsub-v1:1.107.3:1.107.3 +google-cloud-pubsub:1.125.3:1.125.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.3:1.107.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.3:1.107.4-SNAPSHOT From 3e7c5a0dbe2b56f6e6d1fbaef8387bb724cf8973 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:28:15 +0000 Subject: [PATCH 1558/2363] chore(main): release 1.125.4 (#1751) :robot: I have created a release *beep* *boop* --- ## [1.125.4](https://togithub.com/googleapis/java-pubsub/compare/v1.125.3...v1.125.4) (2023-09-28) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.33.0 ([#1750](https://togithub.com/googleapis/java-pubsub/issues/1750)) ([6cb1f0a](https://togithub.com/googleapis/java-pubsub/commit/6cb1f0a2149cee327ec25466117389be0f0828fe)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 3b9866558e01..9c2ce18e1aa4 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.125.4](https://github.com/googleapis/java-pubsub/compare/v1.125.3...v1.125.4) (2023-09-28) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.33.0 ([#1750](https://github.com/googleapis/java-pubsub/issues/1750)) ([bcbfcd0](https://github.com/googleapis/java-pubsub/commit/bcbfcd0dd65c2ca0f20d3579109728737f1292bc)) + ## [1.125.3](https://github.com/googleapis/java-pubsub/compare/v1.125.2...v1.125.3) (2023-09-27) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9e90beb8f7bc..c292cbf7f6f7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.4-SNAPSHOT + 1.125.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.4-SNAPSHOT + 1.125.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.4-SNAPSHOT + 1.107.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.4-SNAPSHOT + 1.107.4 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b64b393a9406..40625516dda3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.4-SNAPSHOT + 1.125.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.4-SNAPSHOT + 1.125.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 64920e984a3d..267a09046265 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.4-SNAPSHOT + 1.107.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.4-SNAPSHOT + 1.125.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3357900771a5..632d9290605a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.4-SNAPSHOT + 1.125.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.4-SNAPSHOT + 1.107.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.4-SNAPSHOT + 1.107.4 com.google.cloud google-cloud-pubsub - 1.125.4-SNAPSHOT + 1.125.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3d568b6f5ba3..6159622cef36 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.4-SNAPSHOT + 1.107.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.4-SNAPSHOT + 1.125.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3471eed767c6..d4b4a9cc21d5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.4-SNAPSHOT + 1.125.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0b03ade7323b..dff8f92a4ae4 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.3:1.125.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.3:1.107.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.3:1.107.4-SNAPSHOT +google-cloud-pubsub:1.125.4:1.125.4 +grpc-google-cloud-pubsub-v1:1.107.4:1.107.4 +proto-google-cloud-pubsub-v1:1.107.4:1.107.4 From 50160a7934bb25c0adbd0629c9212fe8969710fd Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 15:42:13 +0000 Subject: [PATCH 1559/2363] chore(main): release 1.125.5-SNAPSHOT (#1752) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c292cbf7f6f7..8c3e893d66a4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.4 + 1.125.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.4 + 1.125.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.4 + 1.107.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.4 + 1.107.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 40625516dda3..b051db8b62b9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.4 + 1.125.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.4 + 1.125.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 267a09046265..c4f6f48fe4d5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.4 + 1.107.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.4 + 1.125.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 632d9290605a..fdbfb0d02b18 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.4 + 1.125.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.4 + 1.107.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.4 + 1.107.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.4 + 1.125.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6159622cef36..34028fc54820 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.4 + 1.107.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.4 + 1.125.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d4b4a9cc21d5..b0f8d4abce3b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.4 + 1.125.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index dff8f92a4ae4..8ac5380ae364 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.4:1.125.4 -grpc-google-cloud-pubsub-v1:1.107.4:1.107.4 -proto-google-cloud-pubsub-v1:1.107.4:1.107.4 +google-cloud-pubsub:1.125.4:1.125.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.4:1.107.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.4:1.107.5-SNAPSHOT From 0b7697a690dc2344ccfadc4100375156a18d4dad Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 13:30:27 -0400 Subject: [PATCH 1560/2363] chore(deps): Update gapic-generator-java to 2.26.0 (#1741) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): Update gapic-generator-java to 2.26.0 PiperOrigin-RevId: 567624307 Source-Link: https://github.com/googleapis/googleapis/commit/2ecf4defdf5b4564491e7eee9a4b436b58b29e35 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a5cfbd9a05b3a134e92886114db776fb33cec9f2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTVjZmJkOWEwNWIzYTEzNGU5Mjg4NjExNGRiNzc2ZmIzM2NlYzlmMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../src/main/java/com/google/pubsub/v1/PublisherGrpc.java | 6 +++--- .../main/java/com/google/pubsub/v1/SchemaServiceGrpc.java | 6 +++--- .../src/main/java/com/google/pubsub/v1/SubscriberGrpc.java | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 0b28b656f696..004e591c3435 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -33,7 +33,7 @@ public final class PublisherGrpc { private PublisherGrpc() {} - public static final String SERVICE_NAME = "google.pubsub.v1.Publisher"; + public static final java.lang.String SERVICE_NAME = "google.pubsub.v1.Publisher"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< @@ -1271,9 +1271,9 @@ private static final class PublisherFileDescriptorSupplier private static final class PublisherMethodDescriptorSupplier extends PublisherBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; + private final java.lang.String methodName; - PublisherMethodDescriptorSupplier(String methodName) { + PublisherMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index de291b4f6e5f..3b11ea3dc71d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -32,7 +32,7 @@ public final class SchemaServiceGrpc { private SchemaServiceGrpc() {} - public static final String SERVICE_NAME = "google.pubsub.v1.SchemaService"; + public static final java.lang.String SERVICE_NAME = "google.pubsub.v1.SchemaService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< @@ -1334,9 +1334,9 @@ private static final class SchemaServiceFileDescriptorSupplier private static final class SchemaServiceMethodDescriptorSupplier extends SchemaServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; + private final java.lang.String methodName; - SchemaServiceMethodDescriptorSupplier(String methodName) { + SchemaServiceMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index db35d0a087e2..7007b4f21795 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -34,7 +34,7 @@ public final class SubscriberGrpc { private SubscriberGrpc() {} - public static final String SERVICE_NAME = "google.pubsub.v1.Subscriber"; + public static final java.lang.String SERVICE_NAME = "google.pubsub.v1.Subscriber"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< @@ -2221,9 +2221,9 @@ private static final class SubscriberFileDescriptorSupplier private static final class SubscriberMethodDescriptorSupplier extends SubscriberBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; + private final java.lang.String methodName; - SubscriberMethodDescriptorSupplier(String methodName) { + SubscriberMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } From fbc5f026db21e6badfe2a80895f6b6a378ea143b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 20:46:16 +0000 Subject: [PATCH 1561/2363] chore(main): release 1.125.5 (#1754) :robot: I have created a release *beep* *boop* --- ## [1.125.5](https://togithub.com/googleapis/java-pubsub/compare/v1.125.4...v1.125.5) (2023-09-28) ### Dependencies * Update gapic-generator-java to 2.26.0 ([0b7697a](https://togithub.com/googleapis/java-pubsub/commit/0b7697a690dc2344ccfadc4100375156a18d4dad)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 28 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 9c2ce18e1aa4..4c8039c852c7 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.125.5](https://github.com/googleapis/java-pubsub/compare/v1.125.4...v1.125.5) (2023-09-28) + + +### Dependencies + +* Update gapic-generator-java to 2.26.0 ([935849c](https://github.com/googleapis/java-pubsub/commit/935849cedbb70a0821be56828dd0abeccbccc21c)) + ## [1.125.4](https://github.com/googleapis/java-pubsub/compare/v1.125.3...v1.125.4) (2023-09-28) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 23b5ce56826f..7bfeb8e0c0fd 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.4" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8c3e893d66a4..8ce8d6a0d0ec 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.5-SNAPSHOT + 1.125.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.5-SNAPSHOT + 1.125.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.5-SNAPSHOT + 1.107.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.5-SNAPSHOT + 1.107.5 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b051db8b62b9..3cb9050154f6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.5-SNAPSHOT + 1.125.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.5-SNAPSHOT + 1.125.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c4f6f48fe4d5..aeb70717c20b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.5-SNAPSHOT + 1.107.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.5-SNAPSHOT + 1.125.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index fdbfb0d02b18..3817715fd481 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.5-SNAPSHOT + 1.125.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.5-SNAPSHOT + 1.107.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.5-SNAPSHOT + 1.107.5 com.google.cloud google-cloud-pubsub - 1.125.5-SNAPSHOT + 1.125.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 34028fc54820..7b88c8fd99df 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.5-SNAPSHOT + 1.107.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.5-SNAPSHOT + 1.125.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b0f8d4abce3b..15ba0258330f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.5-SNAPSHOT + 1.125.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8ac5380ae364..5cb477d3ab2b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.4:1.125.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.4:1.107.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.4:1.107.5-SNAPSHOT +google-cloud-pubsub:1.125.5:1.125.5 +grpc-google-cloud-pubsub-v1:1.107.5:1.107.5 +proto-google-cloud-pubsub-v1:1.107.5:1.107.5 From 882d8d5dd116b51ef4d76d363939dd0fb36680fb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 28 Sep 2023 21:00:27 +0000 Subject: [PATCH 1562/2363] chore(main): release 1.125.6-SNAPSHOT (#1755) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8ce8d6a0d0ec..2fe25afc4d48 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.5 + 1.125.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.5 + 1.125.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.5 + 1.107.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.5 + 1.107.6-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3cb9050154f6..a46e1e622d4b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.5 + 1.125.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.5 + 1.125.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index aeb70717c20b..4b53af89782b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.5 + 1.107.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.5 + 1.125.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3817715fd481..8add478e749c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.5 + 1.125.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.5 + 1.107.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.5 + 1.107.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.5 + 1.125.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7b88c8fd99df..440a55b505d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.5 + 1.107.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.5 + 1.125.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 15ba0258330f..47dfe89ff263 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.5 + 1.125.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 5cb477d3ab2b..3d8d3910f344 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.5:1.125.5 -grpc-google-cloud-pubsub-v1:1.107.5:1.107.5 -proto-google-cloud-pubsub-v1:1.107.5:1.107.5 +google-cloud-pubsub:1.125.5:1.125.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.5:1.107.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.5:1.107.6-SNAPSHOT From 403f1c567c67d4264e91d972ec7f300a2c08bdfd Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 5 Oct 2023 11:58:13 -0400 Subject: [PATCH 1563/2363] build: removing unnecessary maven-compiler-plugin configuration (#1761) The maven-compiler-plugin configuration is already defined in the shared config pom.xml. This project does not need to declare the plugin and its configuration. https://togithub.com/googleapis/java-shared-config/blob/778a547a09de71dbf9e5a42b155f12d15c319864/pom.xml#L738 --- java-pubsub/README.md | 8 ++++---- .../google-cloud-pubsub/EnableAutoValue.txt | 0 java-pubsub/google-cloud-pubsub/pom.xml | 18 ------------------ 3 files changed, 4 insertions(+), 22 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/EnableAutoValue.txt diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7bfeb8e0c0fd..44052f52e57f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.23.0') +implementation platform('com.google.cloud:libraries-bom:26.24.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.5" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.5 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub/EnableAutoValue.txt b/java-pubsub/google-cloud-pubsub/EnableAutoValue.txt new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a46e1e622d4b..e6b7e40b8710 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -180,24 +180,6 @@ - - maven-compiler-plugin - 3.11.0 - - 1.8 - 1.8 - UTF-8 - -Xlint:unchecked - - - com.google.auto.value - auto-value - ${auto-value-annotation.version} - - - - - org.codehaus.mojo flatten-maven-plugin From 65ca6d41f0ffc83849e730233cdecd889e478dfa Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Tue, 10 Oct 2023 09:49:09 -0400 Subject: [PATCH 1564/2363] build: do not declare javadoc plugin version (#1766) --- java-pubsub/pom.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8add478e749c..4e7ba6eaf00b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -172,7 +172,6 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.6.0 html From 614da18161a402d7f21a741b6f5d771093bdf9fe Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 10 Oct 2023 17:43:47 +0200 Subject: [PATCH 1565/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.24.0 (#1757) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.24.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 44052f52e57f..4cc322ff9b58 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.23.0 + 26.24.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 44a971a58727..cf7da4eff691 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.23.0 + 26.24.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4b74c8bb1908..8404144ac746 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.23.0 + 26.24.0 pom import From 5ac83d6ca19ba8c3cebce86ede4d302f21c8f3d6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 10 Oct 2023 17:50:31 +0200 Subject: [PATCH 1566/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.24.4 (#1760) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v3.24.4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 469491f39816..2f9bf1eeec51 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.24.3 + 3.24.4 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 47dfe89ff263..fda1095636c2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.24.3 + 3.24.4 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 8404144ac746..b6899f3c16cc 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -76,7 +76,7 @@ com.google.protobuf protobuf-java-util - 3.24.3 + 3.24.4 From 0c62091e41e45d8a76a593ceb9f1ebfe3a367e86 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 10 Oct 2023 17:52:26 +0200 Subject: [PATCH 1567/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.8 (#1763) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2fe25afc4d48..2cf59adfb4ad 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.7 + 1.5.8 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4e7ba6eaf00b..1c2a0afd4208 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.7 + 1.5.8 From c7540943da1c4bfda2bdfe3f6bffebc8ad217c70 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 10 Oct 2023 17:52:43 +0200 Subject: [PATCH 1568/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.25.0 (#1764) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2f9bf1eeec51..3e742058114b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.24.1 + 2.25.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fda1095636c2..4f0e861fcc78 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.24.1 + 2.25.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b6899f3c16cc..7ffe9b828689 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.24.1 + 2.25.0 tests From 5f0ca06acc5e966ef9c0a55c72b6d6a68f46d1d6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 10 Oct 2023 19:23:53 +0200 Subject: [PATCH 1569/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.33.1 (#1756) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.33.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3e742058114b..e76fdeee0954 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.33.0 + 2.33.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4f0e861fcc78..4e3ef7cbbdfa 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.33.0 + 2.33.1 From 57362054a8f13668bc0054f75f99b8a633229547 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 10 Oct 2023 19:35:51 +0200 Subject: [PATCH 1570/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 (#1765) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1c2a0afd4208..a7f7c08c9a01 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.16.1 + 3.17.0 pom import From bfada63e9484f3007bdd4e09c59d74c578fdf120 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 Oct 2023 17:50:14 +0000 Subject: [PATCH 1571/2363] chore(main): release 1.125.6 (#1767) :robot: I have created a release *beep* *boop* --- ## [1.125.6](https://togithub.com/googleapis/java-pubsub/compare/v1.125.5...v1.125.6) (2023-10-10) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.33.1 ([#1756](https://togithub.com/googleapis/java-pubsub/issues/1756)) ([5f0ca06](https://togithub.com/googleapis/java-pubsub/commit/5f0ca06acc5e966ef9c0a55c72b6d6a68f46d1d6)) * Update dependency com.google.cloud:google-cloud-core to v2.25.0 ([#1764](https://togithub.com/googleapis/java-pubsub/issues/1764)) ([c754094](https://togithub.com/googleapis/java-pubsub/commit/c7540943da1c4bfda2bdfe3f6bffebc8ad217c70)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#1765](https://togithub.com/googleapis/java-pubsub/issues/1765)) ([5736205](https://togithub.com/googleapis/java-pubsub/commit/57362054a8f13668bc0054f75f99b8a633229547)) * Update dependency com.google.protobuf:protobuf-java-util to v3.24.4 ([#1760](https://togithub.com/googleapis/java-pubsub/issues/1760)) ([5ac83d6](https://togithub.com/googleapis/java-pubsub/commit/5ac83d6ca19ba8c3cebce86ede4d302f21c8f3d6)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 4c8039c852c7..604e1150a5ae 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.125.6](https://github.com/googleapis/java-pubsub/compare/v1.125.5...v1.125.6) (2023-10-10) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.33.1 ([#1756](https://github.com/googleapis/java-pubsub/issues/1756)) ([239f474](https://github.com/googleapis/java-pubsub/commit/239f474fefd2313a6842c63c4202d835008647e3)) +* Update dependency com.google.cloud:google-cloud-core to v2.25.0 ([#1764](https://github.com/googleapis/java-pubsub/issues/1764)) ([72404ea](https://github.com/googleapis/java-pubsub/commit/72404eabcc3695b8072091587515562d852a6108)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#1765](https://github.com/googleapis/java-pubsub/issues/1765)) ([a447292](https://github.com/googleapis/java-pubsub/commit/a447292d07ae1d9b03866dbdd9549c1b10564b28)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.24.4 ([#1760](https://github.com/googleapis/java-pubsub/issues/1760)) ([10a64c6](https://github.com/googleapis/java-pubsub/commit/10a64c6b872a14decf3a799ebd985395358dc32c)) + ## [1.125.5](https://github.com/googleapis/java-pubsub/compare/v1.125.4...v1.125.5) (2023-09-28) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2cf59adfb4ad..dbfe7f0ac03b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.6-SNAPSHOT + 1.125.6 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.6-SNAPSHOT + 1.125.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.6-SNAPSHOT + 1.107.6 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.6-SNAPSHOT + 1.107.6 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e6b7e40b8710..5046ffe61c2f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.6-SNAPSHOT + 1.125.6 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.6-SNAPSHOT + 1.125.6 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 4b53af89782b..faff6d6b7ded 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.6-SNAPSHOT + 1.107.6 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.6-SNAPSHOT + 1.125.6 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a7f7c08c9a01..890b585e5ede 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.6-SNAPSHOT + 1.125.6 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.6-SNAPSHOT + 1.107.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.6-SNAPSHOT + 1.107.6 com.google.cloud google-cloud-pubsub - 1.125.6-SNAPSHOT + 1.125.6 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 440a55b505d1..d6efdd69bfec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.6-SNAPSHOT + 1.107.6 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.6-SNAPSHOT + 1.125.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4e3ef7cbbdfa..beb11a6bda1e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.6-SNAPSHOT + 1.125.6 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3d8d3910f344..91b424672ca1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.5:1.125.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.5:1.107.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.5:1.107.6-SNAPSHOT +google-cloud-pubsub:1.125.6:1.125.6 +grpc-google-cloud-pubsub-v1:1.107.6:1.107.6 +proto-google-cloud-pubsub-v1:1.107.6:1.107.6 From ffd035fc22390efaaf582b5cbe4eb57fde6f80a6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 Oct 2023 18:04:14 +0000 Subject: [PATCH 1572/2363] chore(main): release 1.125.7-SNAPSHOT (#1768) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index dbfe7f0ac03b..f4137db879c3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.6 + 1.125.7-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.6 + 1.125.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.6 + 1.107.7-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.6 + 1.107.7-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5046ffe61c2f..215849078777 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.6 + 1.125.7-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.6 + 1.125.7-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index faff6d6b7ded..7402d883709a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.6 + 1.107.7-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.6 + 1.125.7-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 890b585e5ede..5935b98c3768 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.6 + 1.125.7-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.6 + 1.107.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.6 + 1.107.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.6 + 1.125.7-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d6efdd69bfec..be06f0558ece 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.6 + 1.107.7-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.6 + 1.125.7-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index beb11a6bda1e..4ff51328713d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.6 + 1.125.7-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 91b424672ca1..4aa1ad27117c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.6:1.125.6 -grpc-google-cloud-pubsub-v1:1.107.6:1.107.6 -proto-google-cloud-pubsub-v1:1.107.6:1.107.6 +google-cloud-pubsub:1.125.6:1.125.7-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.6:1.107.7-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.6:1.107.7-SNAPSHOT From 9f284c724fe9b88c497bd7e3a695fa0892ae393d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:23:35 -0400 Subject: [PATCH 1573/2363] chore: bump urllib3 from 2.0.3 to 2.0.6 in /docker/owlbot/java/src (#1873) (#1769) Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.0.3 to 2.0.6. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](https://github.com/urllib3/urllib3/compare/2.0.3...2.0.6) --- updated-dependencies: - dependency-name: urllib3 dependency-type: indirect ... Source-Link: https://github.com/googleapis/synthtool/commit/e19b0b1ba296650dd264bf06003ee4d71a32d98b Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:411589ea6aca20f400adb0291a11fb9f12bf3f968ff7e5ec1d2a2eb1800ea5d1 Signed-off-by: dependabot[bot] Co-authored-by: Owl Bot Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jeffrey Rennie Co-authored-by: Anthonios Partheniou --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.kokoro/requirements.txt | 10 ++++++---- java-pubsub/README.md | 6 +++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 52eaa54d82b2..641e636aea67 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:88ba8dcc5c2c7792e1c3511381f4ab329002a1c42c512f66ca87ced572dfbf9f -# created: 2023-09-05T18:54:42.225408832Z + digest: sha256:411589ea6aca20f400adb0291a11fb9f12bf3f968ff7e5ec1d2a2eb1800ea5d1 +# created: 2023-10-11T14:20:39.368918544Z diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index a73256ab80be..59de49234092 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -418,6 +418,7 @@ protobuf==3.20.3 \ # gcp-docuploader # gcp-releasetool # google-api-core + # googleapis-common-protos pyasn1==0.5.0 \ --hash=sha256:87a2121042a1ac9358cabcaf1d07680ff97ee6404333bacca15f76aa8ad01a57 \ --hash=sha256:97b7290ca68e62a832558ec3976f15cbf911bf5d7c7039d8b861c2a0ece69fde @@ -469,9 +470,9 @@ typing-extensions==4.7.1 \ --hash=sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36 \ --hash=sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2 # via -r requirements.in -urllib3==1.26.16 \ - --hash=sha256:8d36afa7616d8ab714608411b4a3b13e58f463aee519024578e062e141dce20f \ - --hash=sha256:8f135f6502756bde6b2a9b28989df5fbe87c9970cecaa69041edcce7f0589b14 +urllib3==1.26.17 \ + --hash=sha256:24d6a242c28d29af46c3fae832c36db3bbebcc533dd1bb549172cd739c82df21 \ + --hash=sha256:94a757d178c9be92ef5539b8840d48dc9cf1b2709c9d6b588232a055c524458b # via # google-auth # requests @@ -485,5 +486,6 @@ zipp==3.16.1 \ # via importlib-metadata # WARNING: The following packages were not pinned, but pip requires them to be -# pinned when the requirements file includes hashes. Consider using the --allow-unsafe flag. +# pinned when the requirements file includes hashes and the requirement is not +# satisfied by a package already installed. Consider using the --allow-unsafe flag. # setuptools diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4cc322ff9b58..06de7314ad96 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.6" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.5 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.6 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From 7f1e7d80c956d1fba49ebca81988269ad318d724 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Wed, 11 Oct 2023 23:10:20 -0400 Subject: [PATCH 1574/2363] ci: javadoc as a required check (#1705) --- java-pubsub/.github/sync-repo-settings.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index d02beedaeac7..46e11116de9c 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -19,6 +19,7 @@ branchProtectionRules: - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' + - javadoc - pattern: 1.111.0-sp isAdminEnforced: true requiredApprovingReviewCount: 1 From 92ac3533c0ebfc9583c4c959523e6c93e956676d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 17 Oct 2023 21:28:14 +0200 Subject: [PATCH 1575/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.6.0 (#1774) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.8` -> `1.6.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-shared-config/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-shared-config/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-shared-config/1.5.8/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-shared-config/1.5.8/1.6.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-shared-config (com.google.cloud:google-cloud-shared-config) ### [`v1.6.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#160-2023-10-17) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.8...v1.6.0) ##### Features - Add graal-sdk dependency management to java-shared-config ([#​683](https://togithub.com/googleapis/java-shared-config/issues/683)) ([5cd1d84](https://togithub.com/googleapis/java-shared-config/commit/5cd1d84bf2d68dbe8f9fa7e02d9065082bd56726))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 06de7314ad96..940f97b9dbbb 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.24.0') +implementation platform('com.google.cloud:libraries-bom:26.25.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f4137db879c3..9c5463f15a25 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.8 + 1.6.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5935b98c3768..db71a345781c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.8 + 1.6.0 From 8fa0824d0f64d40203f5116f287a00da57b25005 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 17 Oct 2023 21:28:24 +0200 Subject: [PATCH 1576/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.25.0 (#1771) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.24.0` -> `26.25.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:libraries-bom/26.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:libraries-bom/26.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:libraries-bom/26.24.0/26.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:libraries-bom/26.24.0/26.25.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-cloud-bom (com.google.cloud:libraries-bom) ### [`v26.25.0`](https://togithub.com/googleapis/java-cloud-bom/blob/HEAD/CHANGELOG.md#26250-2023-10-14) [Compare Source](https://togithub.com/googleapis/java-cloud-bom/compare/v26.24.0...v26.25.0) ##### Dependencies - update dependency com.google.cloud:first-party-dependencies to v3.17.0 ([#​6226](https://togithub.com/googleapis/java-cloud-bom/issues/6226)) ([df72701](https://togithub.com/googleapis/java-cloud-bom/commit/df72701ecb3b339cdc1b3af9d137de7d95ed50aa)) - update dependency com.google.cloud:gapic-libraries-bom to v1.22.0 ([#​6240](https://togithub.com/googleapis/java-cloud-bom/issues/6240)) ([addef06](https://togithub.com/googleapis/java-cloud-bom/commit/addef066873995631b99009f8ea6f7cd58088b5f)) - update dependency com.google.cloud:google-cloud-bigquery to v2.33.2 ([#​6236](https://togithub.com/googleapis/java-cloud-bom/issues/6236)) ([68c7e4e](https://togithub.com/googleapis/java-cloud-bom/commit/68c7e4e4197db0da9d776b93d1fe0efdaa3165db)) - update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v2.44.0 ([#​6235](https://togithub.com/googleapis/java-cloud-bom/issues/6235)) ([53d1f18](https://togithub.com/googleapis/java-cloud-bom/commit/53d1f18c3f63e28a69db44e37724b7eba6146bc9)) - update dependency com.google.cloud:google-cloud-bigtable-bom to v2.28.0 ([#​6241](https://togithub.com/googleapis/java-cloud-bom/issues/6241)) ([9b145d6](https://togithub.com/googleapis/java-cloud-bom/commit/9b145d6e3883fe91a78d7b097be1358d34e41d54)) - update dependency com.google.cloud:google-cloud-datastore-bom to v2.17.3 ([#​6228](https://togithub.com/googleapis/java-cloud-bom/issues/6228)) ([f2d317d](https://togithub.com/googleapis/java-cloud-bom/commit/f2d317def4b5f7f5e924136acbd07314976ef15e)) - update dependency com.google.cloud:google-cloud-firestore-bom to v3.15.1 ([#​6233](https://togithub.com/googleapis/java-cloud-bom/issues/6233)) ([43553e8](https://togithub.com/googleapis/java-cloud-bom/commit/43553e81ffc9d134652e8da7995917e11a9ae5c6)) - update dependency com.google.cloud:google-cloud-logging-bom to v3.15.11 ([#​6230](https://togithub.com/googleapis/java-cloud-bom/issues/6230)) ([6e9467a](https://togithub.com/googleapis/java-cloud-bom/commit/6e9467a4fa2c3e42b92792b3c8266d72e4982722)) - update dependency com.google.cloud:google-cloud-logging-logback to v0.130.24-alpha ([#​6234](https://togithub.com/googleapis/java-cloud-bom/issues/6234)) ([16a9be9](https://togithub.com/googleapis/java-cloud-bom/commit/16a9be91e49cf82c20d6bea56fd25c3905b2b14f)) - update dependency com.google.cloud:google-cloud-nio to v0.127.5 ([#​6238](https://togithub.com/googleapis/java-cloud-bom/issues/6238)) ([db7424d](https://togithub.com/googleapis/java-cloud-bom/commit/db7424d9b1368e5f437dcbc5f14a0b2e6d5cd0b2)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.125.6 ([#​6231](https://togithub.com/googleapis/java-cloud-bom/issues/6231)) ([6a2418b](https://togithub.com/googleapis/java-cloud-bom/commit/6a2418be05d99470831dcf1ba3b1f0927cdfdd30)) - update dependency com.google.cloud:google-cloud-pubsublite-bom to v1.12.16 ([#​6239](https://togithub.com/googleapis/java-cloud-bom/issues/6239)) ([585750a](https://togithub.com/googleapis/java-cloud-bom/commit/585750a437826986c180b07f866a5133126f4455)) - update dependency com.google.cloud:google-cloud-spanner-bom to v6.50.1 ([#​6229](https://togithub.com/googleapis/java-cloud-bom/issues/6229)) ([9ce48f0](https://togithub.com/googleapis/java-cloud-bom/commit/9ce48f0a0967ce164a61fe8d8f63bbbdddbaf664)) - update dependency com.google.cloud:google-cloud-spanner-jdbc to v2.14.0 ([#​6242](https://togithub.com/googleapis/java-cloud-bom/issues/6242)) ([ff93f99](https://togithub.com/googleapis/java-cloud-bom/commit/ff93f99ebfdc0226a59487cb8c91e4baaac96bcd)) - update dependency com.google.cloud:google-cloud-storage-bom to v2.28.0 ([#​6243](https://togithub.com/googleapis/java-cloud-bom/issues/6243)) ([a2a0d44](https://togithub.com/googleapis/java-cloud-bom/commit/a2a0d44b9f1dacbd964ef15939eb9f02805093f4)) - update dependency com.google.googlejavaformat:google-java-format to v1.18.1 ([#​6221](https://togithub.com/googleapis/java-cloud-bom/issues/6221)) ([8a07930](https://togithub.com/googleapis/java-cloud-bom/commit/8a07930be3b3f86536af5dc0fb6906401772fd08))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 940f97b9dbbb..a678151051c1 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.24.0 + 26.25.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index cf7da4eff691..839c06479f33 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.24.0 + 26.25.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 7ffe9b828689..c8011340db02 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.24.0 + 26.25.0 pom import From 064492ddac12e94403e9cbdfec2eca6529db27e4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 17 Oct 2023 21:30:43 +0200 Subject: [PATCH 1577/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.33.2 (#1770) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.33.1` -> `2.33.2` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquery/2.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquery/2.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquery/2.33.1/2.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquery/2.33.1/2.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery (com.google.cloud:google-cloud-bigquery) ### [`v2.33.2`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#2332-2023-10-11) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.33.1...v2.33.2) ##### Bug Fixes - GetDouble in read API path ([#​2919](https://togithub.com/googleapis/java-bigquery/issues/2919)) ([436ee8e](https://togithub.com/googleapis/java-bigquery/commit/436ee8ebe9104f6ca721f1a14bd409158c7bdb5a)) ##### Dependencies - Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.29.0 ([#​2911](https://togithub.com/googleapis/java-bigquery/issues/2911)) ([052f5c2](https://togithub.com/googleapis/java-bigquery/commit/052f5c2f722243be39c0d93b1f81b81a0db48ef1)) - Update dependency com.google.apis:google-api-services-bigquery to v2-rev20230925-2.0.0 ([#​2921](https://togithub.com/googleapis/java-bigquery/issues/2921)) ([f0fb64f](https://togithub.com/googleapis/java-bigquery/commit/f0fb64f43817c5aa53adb6c5152afe3fd44b7df1)) - Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.33.0 ([#​2912](https://togithub.com/googleapis/java-bigquery/issues/2912)) ([e053494](https://togithub.com/googleapis/java-bigquery/commit/e05349476a8d987b2cd24ee6a80b2d9b7b9463ee)) - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#​2931](https://togithub.com/googleapis/java-bigquery/issues/2931)) ([25a94f1](https://togithub.com/googleapis/java-bigquery/commit/25a94f1da840c0cb32bed882e18f7b10f9890d04)) - Update github/codeql-action action to v2.22.0 ([#​2926](https://togithub.com/googleapis/java-bigquery/issues/2926)) ([33ce4ae](https://togithub.com/googleapis/java-bigquery/commit/33ce4aee8b10f630212d96901af00f063c43f440)) - Update github/codeql-action action to v2.22.1 ([#​2934](https://togithub.com/googleapis/java-bigquery/issues/2934)) ([7ae7b99](https://togithub.com/googleapis/java-bigquery/commit/7ae7b99ab21fcd6e74cbaa95e750da961c09ae80)) - Update ossf/scorecard-action action to v2.3.0 ([#​2927](https://togithub.com/googleapis/java-bigquery/issues/2927)) ([93bfd8e](https://togithub.com/googleapis/java-bigquery/commit/93bfd8eb7fe35121e97b06cf8b103a3960fe9535))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e76fdeee0954..0e712496d31d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.33.1 + 2.33.2
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4ff51328713d..12fa41b0c4d3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.33.1 + 2.33.2
    From 782cbd5f1963a7ade83f97ebfafc0cd236ecf58a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 17 Oct 2023 19:52:16 +0000 Subject: [PATCH 1578/2363] chore(main): release 1.125.7 (#1776) :robot: I have created a release *beep* *boop* --- ## [1.125.7](https://togithub.com/googleapis/java-pubsub/compare/v1.125.6...v1.125.7) (2023-10-17) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.33.2 ([#1770](https://togithub.com/googleapis/java-pubsub/issues/1770)) ([064492d](https://togithub.com/googleapis/java-pubsub/commit/064492ddac12e94403e9cbdfec2eca6529db27e4)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 604e1150a5ae..7bd3918dd7b1 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.125.7](https://github.com/googleapis/java-pubsub/compare/v1.125.6...v1.125.7) (2023-10-17) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.33.2 ([#1770](https://github.com/googleapis/java-pubsub/issues/1770)) ([db73af7](https://github.com/googleapis/java-pubsub/commit/db73af7bca53faae2e135ec9a1899e36ac19025c)) + ## [1.125.6](https://github.com/googleapis/java-pubsub/compare/v1.125.5...v1.125.6) (2023-10-10) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9c5463f15a25..e68d55456d72 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.7-SNAPSHOT + 1.125.7 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.7-SNAPSHOT + 1.125.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.7-SNAPSHOT + 1.107.7 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.7-SNAPSHOT + 1.107.7
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 215849078777..f99ebe4333e8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.7-SNAPSHOT + 1.125.7 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.7-SNAPSHOT + 1.125.7 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7402d883709a..9b8be146ed60 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.7-SNAPSHOT + 1.107.7 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.7-SNAPSHOT + 1.125.7 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index db71a345781c..5833a6394c19 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.7-SNAPSHOT + 1.125.7 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.7-SNAPSHOT + 1.107.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.7-SNAPSHOT + 1.107.7 com.google.cloud google-cloud-pubsub - 1.125.7-SNAPSHOT + 1.125.7 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index be06f0558ece..5dacb252802a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.7-SNAPSHOT + 1.107.7 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.7-SNAPSHOT + 1.125.7 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 12fa41b0c4d3..056cb7bb4144 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.7-SNAPSHOT + 1.125.7 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4aa1ad27117c..25adc9f8786b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.6:1.125.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.6:1.107.7-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.6:1.107.7-SNAPSHOT +google-cloud-pubsub:1.125.7:1.125.7 +grpc-google-cloud-pubsub-v1:1.107.7:1.107.7 +proto-google-cloud-pubsub-v1:1.107.7:1.107.7 From c44430bacf2da2b2df42d1f5931a39aecf11dd2d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 18 Oct 2023 20:04:03 +0200 Subject: [PATCH 1579/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.7 (#1753) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.7 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a678151051c1..858cf196449a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.3 + 1.125.7 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.6' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.7' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.6" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.7" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.6 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.7 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0e712496d31d..2d42f8900e39 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.3 + 1.125.7 From 7f424923a5e6f221d9f8b2bedc384ccf0f502d31 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:04:33 -0400 Subject: [PATCH 1580/2363] chore: track customization in templates (#1876) (#1775) Source-Link: https://github.com/googleapis/synthtool/commit/a79241941a00783e0da86853c455e899567c3ccb Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:d0a8eb7ffc63ddce4c63191373d6e99d5385516423c396de207dedf2b6db7427 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.kokoro/nightly/integration.cfg | 1 + java-pubsub/.kokoro/nightly/java11-integration.cfg | 1 + java-pubsub/.kokoro/presubmit/integration.cfg | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 641e636aea67..cd91b662b949 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:411589ea6aca20f400adb0291a11fb9f12bf3f968ff7e5ec1d2a2eb1800ea5d1 -# created: 2023-10-11T14:20:39.368918544Z + digest: sha256:d0a8eb7ffc63ddce4c63191373d6e99d5385516423c396de207dedf2b6db7427 +# created: 2023-10-17T17:33:29.360983119Z diff --git a/java-pubsub/.kokoro/nightly/integration.cfg b/java-pubsub/.kokoro/nightly/integration.cfg index a2907a257b2b..5a95c68284c4 100644 --- a/java-pubsub/.kokoro/nightly/integration.cfg +++ b/java-pubsub/.kokoro/nightly/integration.cfg @@ -35,3 +35,4 @@ env_vars: { key: "SECRET_MANAGER_KEYS" value: "java-it-service-account" } + diff --git a/java-pubsub/.kokoro/nightly/java11-integration.cfg b/java-pubsub/.kokoro/nightly/java11-integration.cfg index 58049cc38f11..6a6ef94eff28 100644 --- a/java-pubsub/.kokoro/nightly/java11-integration.cfg +++ b/java-pubsub/.kokoro/nightly/java11-integration.cfg @@ -35,3 +35,4 @@ env_vars: { key: "SECRET_MANAGER_KEYS" value: "java-it-service-account" } + diff --git a/java-pubsub/.kokoro/presubmit/integration.cfg b/java-pubsub/.kokoro/presubmit/integration.cfg index dded67a9d54a..5864c603e5ad 100644 --- a/java-pubsub/.kokoro/presubmit/integration.cfg +++ b/java-pubsub/.kokoro/presubmit/integration.cfg @@ -31,3 +31,4 @@ env_vars: { key: "SECRET_MANAGER_KEYS" value: "java-it-service-account" } + From 5b60d814a8b86e35470d61f0a7c813c8252f97cb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 18 Oct 2023 18:18:23 +0000 Subject: [PATCH 1581/2363] chore(main): release 1.125.8-SNAPSHOT (#1777) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e68d55456d72..a36b2c491fb0 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.7 + 1.125.8-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.7 + 1.125.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.7 + 1.107.8-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.7 + 1.107.8-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f99ebe4333e8..ad1b7ec94962 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.7 + 1.125.8-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.7 + 1.125.8-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9b8be146ed60..160cb4a98cf1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.7 + 1.107.8-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.7 + 1.125.8-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5833a6394c19..1beab16d3241 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.7 + 1.125.8-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.7 + 1.107.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.7 + 1.107.8-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.7 + 1.125.8-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5dacb252802a..5d0d15ed5db0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.7 + 1.107.8-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.7 + 1.125.8-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 056cb7bb4144..b0fcadc38b54 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.7 + 1.125.8-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 25adc9f8786b..74bcf9e212c2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.7:1.125.7 -grpc-google-cloud-pubsub-v1:1.107.7:1.107.7 -proto-google-cloud-pubsub-v1:1.107.7:1.107.7 +google-cloud-pubsub:1.125.7:1.125.8-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.7:1.107.8-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.7:1.107.8-SNAPSHOT From d1dae17d46730a07558ee097747f481cdb35f6f4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:15:35 -0700 Subject: [PATCH 1582/2363] docs: modified some descriptions (#1773) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: modified some descriptions PiperOrigin-RevId: 573936401 Source-Link: https://github.com/googleapis/googleapis/commit/c1f013491bc8dce60e93ca355ea494ee2e522dd8 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a063e1be04179c7386317bb395dea10eb38229b2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTA2M2UxYmUwNDE3OWM3Mzg2MzE3YmIzOTVkZWExMGViMzgyMjliMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../pubsub/v1/SubscriptionAdminClient.java | 104 ++++++------- .../cloud/pubsub/v1/TopicAdminClient.java | 8 +- .../com/google/pubsub/v1/PublisherGrpc.java | 8 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 40 ++--- .../pubsub/v1/CreateSnapshotRequest.java | 28 ++-- .../v1/CreateSnapshotRequestOrBuilder.java | 8 +- .../pubsub/v1/MessageStoragePolicy.java | 143 ++++++++++-------- .../v1/MessageStoragePolicyOrBuilder.java | 44 +++--- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 27 ++-- 11 files changed, 219 insertions(+), 201 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index e040337a4f14..068970f64f1b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -222,15 +222,15 @@ public SubscriberStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in - * the returned Subscription object. Note that for REST API requests, you must specify a name in - * the request. + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. * *

    Sample code: * @@ -292,15 +292,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in - * the returned Subscription object. Note that for REST API requests, you must specify a name in - * the request. + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. * *

    Sample code: * @@ -362,15 +362,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in - * the returned Subscription object. Note that for REST API requests, you must specify a name in - * the request. + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. * *

    Sample code: * @@ -432,15 +432,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in - * the returned Subscription object. Note that for REST API requests, you must specify a name in - * the request. + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. * *

    Sample code: * @@ -502,15 +502,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in - * the returned Subscription object. Note that for REST API requests, you must specify a name in - * the request. + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. * *

    Sample code: * @@ -765,15 +765,15 @@ public final Subscription createSubscription( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already - * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in - * the returned Subscription object. Note that for REST API requests, you must specify a name in - * the request. + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is + * populated in the returned Subscription object. Note that for REST API requests, you must + * specify a name in the request. * *

    Sample code: * @@ -2609,9 +2609,9 @@ public final UnaryCallable listSnap * 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). 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 [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * The generated name is populated in the returned Snapshot object. Note that for REST API + * requests, you must specify a name in the request. * *

    Sample code: * @@ -2631,7 +2631,7 @@ public final UnaryCallable listSnap * @param name 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is + * name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -2662,9 +2662,9 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri * 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). 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 [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * The generated name is populated in the returned Snapshot object. Note that for REST API + * requests, you must specify a name in the request. * *

    Sample code: * @@ -2684,7 +2684,7 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri * @param name 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is + * name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -2715,9 +2715,9 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) { * 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). 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 [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * The generated name is populated in the returned Snapshot object. Note that for REST API + * requests, you must specify a name in the request. * *

    Sample code: * @@ -2737,7 +2737,7 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) { * @param name 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is + * name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -2768,9 +2768,9 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription) * 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). 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 [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * The generated name is populated in the returned Snapshot object. Note that for REST API + * requests, you must specify a name in the request. * *

    Sample code: * @@ -2790,7 +2790,7 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription) * @param name 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format is + * name rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -2818,9 +2818,9 @@ public final Snapshot createSnapshot(String name, String subscription) { * 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). 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 [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * The generated name is populated in the returned Snapshot object. Note that for REST API + * requests, you must specify a name in the request. * *

    Sample code: * @@ -3010,9 +3010,9 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti * 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). 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 [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * The generated name is populated in the returned Snapshot object. Note that for REST API + * requests, you must specify a name in the request. * *

    Sample code: * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 80a3b3fa4d8c..b1f0dc35fe26 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -197,7 +197,7 @@ public PublisherStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * *

    Sample code: * @@ -228,7 +228,7 @@ public final Topic createTopic(TopicName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * *

    Sample code: * @@ -288,7 +288,7 @@ public final Topic createTopic(ProjectTopicName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * *

    Sample code: * @@ -323,7 +323,7 @@ public final Topic createTopic(Topic request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates the given topic with the given name. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * *

    Sample code: * diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 004e591c3435..020bf6f9d85f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -465,7 +465,7 @@ public interface AsyncService { * *

          * Creates the given topic with the given name. See the [resource name rules]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * 
    */ default void createTopic( @@ -640,7 +640,7 @@ protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callO * *
          * Creates the given topic with the given name. See the [resource name rules]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * 
    */ public void createTopic( @@ -816,7 +816,7 @@ protected PublisherBlockingStub build( * *
          * Creates the given topic with the given name. See the [resource name rules]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * 
    */ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { @@ -963,7 +963,7 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
          * Creates the given topic with the given name. See the [resource name rules]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * 
    */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 7007b4f21795..c90e438e897b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -742,15 +742,15 @@ public interface AsyncService { * *
          * Creates a subscription to a given topic. See the [resource name rules]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * 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]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
    -     * name is populated in the returned Subscription object. Note that for REST
    -     * API requests, you must specify a name in the request.
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
    +     * generated name is populated in the returned Subscription object. Note that
    +     * for REST API requests, you must specify a name in the request.
          * 
    */ default void createSubscription( @@ -962,7 +962,7 @@ default void listSnapshots( * 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The * generated name is populated in the returned Snapshot object. Note that for * REST API requests, you must specify a name in the request. *
    @@ -1075,15 +1075,15 @@ protected SubscriberStub build(io.grpc.Channel channel, io.grpc.CallOptions call * *
          * Creates a subscription to a given topic. See the [resource name rules]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * 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]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
    -     * name is populated in the returned Subscription object. Note that for REST
    -     * API requests, you must specify a name in the request.
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
    +     * generated name is populated in the returned Subscription object. Note that
    +     * for REST API requests, you must specify a name in the request.
          * 
    */ public void createSubscription( @@ -1316,7 +1316,7 @@ public void listSnapshots( * 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The * generated name is populated in the returned Snapshot object. Note that for * REST API requests, you must specify a name in the request. *
    @@ -1421,15 +1421,15 @@ protected SubscriberBlockingStub build( * *
          * Creates a subscription to a given topic. See the [resource name rules]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * 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]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
    -     * name is populated in the returned Subscription object. Note that for REST
    -     * API requests, you must specify a name in the request.
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
    +     * generated name is populated in the returned Subscription object. Note that
    +     * for REST API requests, you must specify a name in the request.
          * 
    */ public com.google.pubsub.v1.Subscription createSubscription( @@ -1609,7 +1609,7 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( * 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The * generated name is populated in the returned Snapshot object. Note that for * REST API requests, you must specify a name in the request. *
    @@ -1702,15 +1702,15 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Creates a subscription to a given topic. See the [resource name rules]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names).
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * 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]
    -     * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated
    -     * name is populated in the returned Subscription object. Note that for REST
    -     * API requests, you must specify a name in the request.
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
    +     * generated name is populated in the returned Subscription object. Note that
    +     * for REST API requests, you must specify a name in the request.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -1894,7 +1894,7 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The + * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The * generated name is populated in the returned Snapshot object. Note that for * REST API requests, you must specify a name in the request. *
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 58c4a1896ab9..3918f5ca6849 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -86,8 +86,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. *
    * * @@ -116,8 +116,8 @@ public java.lang.String getName() { * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. *
    * * @@ -746,8 +746,8 @@ public Builder mergeFrom( * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. *
    * * @@ -775,8 +775,8 @@ public java.lang.String getName() { * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. *
    * * @@ -804,8 +804,8 @@ public com.google.protobuf.ByteString getNameBytes() { * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. *
    * * @@ -832,8 +832,8 @@ public Builder setName(java.lang.String value) { * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. *
    * * @@ -856,8 +856,8 @@ public Builder clearName() { * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. *
    * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 2f24bc12309b..ee4a6d68fb0d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -31,8 +31,8 @@ public interface CreateSnapshotRequestOrBuilder * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. *
    * * @@ -50,8 +50,8 @@ public interface CreateSnapshotRequestOrBuilder * 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format - * is `projects/{project}/snapshots/{snap}`. + * rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + * Format is `projects/{project}/snapshots/{snap}`. *
    * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index afec846d7135..06c6e9aba23c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -71,11 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * A list of IDs of GCP regions where messages that are published to the topic
    -   * may be persisted in storage. Messages published by publishers running in
    -   * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list means that
    -   * no regions are allowed, and is not a valid configuration.
    +   * A list of IDs of Google Cloud regions where messages that are published
    +   * to the topic may be persisted in storage. Messages published by publishers
    +   * running in non-allowed Google Cloud regions (or running outside of Google
    +   * Cloud altogether) are routed for storage in one of the allowed regions.
    +   * An empty list means that no regions are allowed, and is not a valid
    +   * configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -89,11 +90,12 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * *
    -   * A list of IDs of GCP regions where messages that are published to the topic
    -   * may be persisted in storage. Messages published by publishers running in
    -   * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list means that
    -   * no regions are allowed, and is not a valid configuration.
    +   * A list of IDs of Google Cloud regions where messages that are published
    +   * to the topic may be persisted in storage. Messages published by publishers
    +   * running in non-allowed Google Cloud regions (or running outside of Google
    +   * Cloud altogether) are routed for storage in one of the allowed regions.
    +   * An empty list means that no regions are allowed, and is not a valid
    +   * configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -107,11 +109,12 @@ public int getAllowedPersistenceRegionsCount() { * * *
    -   * A list of IDs of GCP regions where messages that are published to the topic
    -   * may be persisted in storage. Messages published by publishers running in
    -   * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list means that
    -   * no regions are allowed, and is not a valid configuration.
    +   * A list of IDs of Google Cloud regions where messages that are published
    +   * to the topic may be persisted in storage. Messages published by publishers
    +   * running in non-allowed Google Cloud regions (or running outside of Google
    +   * Cloud altogether) are routed for storage in one of the allowed regions.
    +   * An empty list means that no regions are allowed, and is not a valid
    +   * configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -126,11 +129,12 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * *
    -   * A list of IDs of GCP regions where messages that are published to the topic
    -   * may be persisted in storage. Messages published by publishers running in
    -   * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list means that
    -   * no regions are allowed, and is not a valid configuration.
    +   * A list of IDs of Google Cloud regions where messages that are published
    +   * to the topic may be persisted in storage. Messages published by publishers
    +   * running in non-allowed Google Cloud regions (or running outside of Google
    +   * Cloud altogether) are routed for storage in one of the allowed regions.
    +   * An empty list means that no regions are allowed, and is not a valid
    +   * configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -513,11 +517,12 @@ private void ensureAllowedPersistenceRegionsIsMutable() { * * *
    -     * A list of IDs of GCP regions where messages that are published to the topic
    -     * may be persisted in storage. Messages published by publishers running in
    -     * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list means that
    -     * no regions are allowed, and is not a valid configuration.
    +     * A list of IDs of Google Cloud regions where messages that are published
    +     * to the topic may be persisted in storage. Messages published by publishers
    +     * running in non-allowed Google Cloud regions (or running outside of Google
    +     * Cloud altogether) are routed for storage in one of the allowed regions.
    +     * An empty list means that no regions are allowed, and is not a valid
    +     * configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -532,11 +537,12 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * *
    -     * A list of IDs of GCP regions where messages that are published to the topic
    -     * may be persisted in storage. Messages published by publishers running in
    -     * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list means that
    -     * no regions are allowed, and is not a valid configuration.
    +     * A list of IDs of Google Cloud regions where messages that are published
    +     * to the topic may be persisted in storage. Messages published by publishers
    +     * running in non-allowed Google Cloud regions (or running outside of Google
    +     * Cloud altogether) are routed for storage in one of the allowed regions.
    +     * An empty list means that no regions are allowed, and is not a valid
    +     * configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -550,11 +556,12 @@ public int getAllowedPersistenceRegionsCount() { * * *
    -     * A list of IDs of GCP regions where messages that are published to the topic
    -     * may be persisted in storage. Messages published by publishers running in
    -     * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list means that
    -     * no regions are allowed, and is not a valid configuration.
    +     * A list of IDs of Google Cloud regions where messages that are published
    +     * to the topic may be persisted in storage. Messages published by publishers
    +     * running in non-allowed Google Cloud regions (or running outside of Google
    +     * Cloud altogether) are routed for storage in one of the allowed regions.
    +     * An empty list means that no regions are allowed, and is not a valid
    +     * configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -569,11 +576,12 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * *
    -     * A list of IDs of GCP regions where messages that are published to the topic
    -     * may be persisted in storage. Messages published by publishers running in
    -     * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list means that
    -     * no regions are allowed, and is not a valid configuration.
    +     * A list of IDs of Google Cloud regions where messages that are published
    +     * to the topic may be persisted in storage. Messages published by publishers
    +     * running in non-allowed Google Cloud regions (or running outside of Google
    +     * Cloud altogether) are routed for storage in one of the allowed regions.
    +     * An empty list means that no regions are allowed, and is not a valid
    +     * configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -588,11 +596,12 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde * * *
    -     * A list of IDs of GCP regions where messages that are published to the topic
    -     * may be persisted in storage. Messages published by publishers running in
    -     * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list means that
    -     * no regions are allowed, and is not a valid configuration.
    +     * A list of IDs of Google Cloud regions where messages that are published
    +     * to the topic may be persisted in storage. Messages published by publishers
    +     * running in non-allowed Google Cloud regions (or running outside of Google
    +     * Cloud altogether) are routed for storage in one of the allowed regions.
    +     * An empty list means that no regions are allowed, and is not a valid
    +     * configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -615,11 +624,12 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { * * *
    -     * A list of IDs of GCP regions where messages that are published to the topic
    -     * may be persisted in storage. Messages published by publishers running in
    -     * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list means that
    -     * no regions are allowed, and is not a valid configuration.
    +     * A list of IDs of Google Cloud regions where messages that are published
    +     * to the topic may be persisted in storage. Messages published by publishers
    +     * running in non-allowed Google Cloud regions (or running outside of Google
    +     * Cloud altogether) are routed for storage in one of the allowed regions.
    +     * An empty list means that no regions are allowed, and is not a valid
    +     * configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -641,11 +651,12 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) { * * *
    -     * A list of IDs of GCP regions where messages that are published to the topic
    -     * may be persisted in storage. Messages published by publishers running in
    -     * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list means that
    -     * no regions are allowed, and is not a valid configuration.
    +     * A list of IDs of Google Cloud regions where messages that are published
    +     * to the topic may be persisted in storage. Messages published by publishers
    +     * running in non-allowed Google Cloud regions (or running outside of Google
    +     * Cloud altogether) are routed for storage in one of the allowed regions.
    +     * An empty list means that no regions are allowed, and is not a valid
    +     * configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; @@ -664,11 +675,12 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable - * A list of IDs of GCP regions where messages that are published to the topic - * may be persisted in storage. Messages published by publishers running in - * non-allowed GCP regions (or running outside of GCP altogether) will be - * routed for storage in one of the allowed regions. An empty list means that - * no regions are allowed, and is not a valid configuration. + * A list of IDs of Google Cloud regions where messages that are published + * to the topic may be persisted in storage. Messages published by publishers + * running in non-allowed Google Cloud regions (or running outside of Google + * Cloud altogether) are routed for storage in one of the allowed regions. + * An empty list means that no regions are allowed, and is not a valid + * configuration. *
    * * repeated string allowed_persistence_regions = 1; @@ -686,11 +698,12 @@ public Builder clearAllowedPersistenceRegions() { * * *
    -     * A list of IDs of GCP regions where messages that are published to the topic
    -     * may be persisted in storage. Messages published by publishers running in
    -     * non-allowed GCP regions (or running outside of GCP altogether) will be
    -     * routed for storage in one of the allowed regions. An empty list means that
    -     * no regions are allowed, and is not a valid configuration.
    +     * A list of IDs of Google Cloud regions where messages that are published
    +     * to the topic may be persisted in storage. Messages published by publishers
    +     * running in non-allowed Google Cloud regions (or running outside of Google
    +     * Cloud altogether) are routed for storage in one of the allowed regions.
    +     * An empty list means that no regions are allowed, and is not a valid
    +     * configuration.
          * 
    * * repeated string allowed_persistence_regions = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 8edf41faa577..5f075aca0cfd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -27,11 +27,12 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * A list of IDs of GCP regions where messages that are published to the topic
    -   * may be persisted in storage. Messages published by publishers running in
    -   * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list means that
    -   * no regions are allowed, and is not a valid configuration.
    +   * A list of IDs of Google Cloud regions where messages that are published
    +   * to the topic may be persisted in storage. Messages published by publishers
    +   * running in non-allowed Google Cloud regions (or running outside of Google
    +   * Cloud altogether) are routed for storage in one of the allowed regions.
    +   * An empty list means that no regions are allowed, and is not a valid
    +   * configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -43,11 +44,12 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * A list of IDs of GCP regions where messages that are published to the topic
    -   * may be persisted in storage. Messages published by publishers running in
    -   * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list means that
    -   * no regions are allowed, and is not a valid configuration.
    +   * A list of IDs of Google Cloud regions where messages that are published
    +   * to the topic may be persisted in storage. Messages published by publishers
    +   * running in non-allowed Google Cloud regions (or running outside of Google
    +   * Cloud altogether) are routed for storage in one of the allowed regions.
    +   * An empty list means that no regions are allowed, and is not a valid
    +   * configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -59,11 +61,12 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * A list of IDs of GCP regions where messages that are published to the topic
    -   * may be persisted in storage. Messages published by publishers running in
    -   * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list means that
    -   * no regions are allowed, and is not a valid configuration.
    +   * A list of IDs of Google Cloud regions where messages that are published
    +   * to the topic may be persisted in storage. Messages published by publishers
    +   * running in non-allowed Google Cloud regions (or running outside of Google
    +   * Cloud altogether) are routed for storage in one of the allowed regions.
    +   * An empty list means that no regions are allowed, and is not a valid
    +   * configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; @@ -76,11 +79,12 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * A list of IDs of GCP regions where messages that are published to the topic
    -   * may be persisted in storage. Messages published by publishers running in
    -   * non-allowed GCP regions (or running outside of GCP altogether) will be
    -   * routed for storage in one of the allowed regions. An empty list means that
    -   * no regions are allowed, and is not a valid configuration.
    +   * A list of IDs of Google Cloud regions where messages that are published
    +   * to the topic may be persisted in storage. Messages published by publishers
    +   * running in non-allowed Google Cloud regions (or running outside of Google
    +   * Cloud altogether) are routed for storage in one of the allowed regions.
    +   * An empty list means that no regions are allowed, and is not a valid
    +   * configuration.
        * 
    * * repeated string allowed_persistence_regions = 1; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 8dd2697450ec..476d5384dba5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1226 + * google/pubsub/v1/pubsub.proto;l=1227 * @return The returnImmediately. */ @java.lang.Override @@ -687,7 +687,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1226 + * google/pubsub/v1/pubsub.proto;l=1227 * @return The returnImmediately. */ @java.lang.Override @@ -713,7 +713,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1226 + * google/pubsub/v1/pubsub.proto;l=1227 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -743,7 +743,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1226 + * google/pubsub/v1/pubsub.proto;l=1227 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 963c7f799f5b..740269f4aab5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -71,7 +71,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1226 + * google/pubsub/v1/pubsub.proto;l=1227 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 4468de17831e..700324dc755b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -44,7 +44,7 @@ service Publisher { "https://www.googleapis.com/auth/pubsub"; // Creates the given topic with the given name. See the [resource name rules] - // (https://cloud.google.com/pubsub/docs/admin#resource_names). + // (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). rpc CreateTopic(Topic) returns (Topic) { option (google.api.http) = { put: "/v1/{name=projects/*/topics/*}" @@ -137,11 +137,12 @@ service Publisher { // A policy constraining the storage of messages published to the topic. message MessageStoragePolicy { - // A list of IDs of GCP regions where messages that are published to the topic - // may be persisted in storage. Messages published by publishers running in - // non-allowed GCP regions (or running outside of GCP altogether) will be - // routed for storage in one of the allowed regions. An empty list means that - // no regions are allowed, and is not a valid configuration. + // A list of IDs of Google Cloud regions where messages that are published + // to the topic may be persisted in storage. Messages published by publishers + // running in non-allowed Google Cloud regions (or running outside of Google + // Cloud altogether) are routed for storage in one of the allowed regions. + // An empty list means that no regions are allowed, and is not a valid + // configuration. repeated string allowed_persistence_regions = 1; } @@ -430,16 +431,16 @@ service Subscriber { "https://www.googleapis.com/auth/pubsub"; // Creates a subscription to a given topic. See the [resource name rules] - // (https://cloud.google.com/pubsub/docs/admin#resource_names). + // (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). // 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] - // (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated - // name is populated in the returned Subscription object. Note that for REST - // API requests, you must specify a name in the request. + // (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The + // generated name is populated in the returned Subscription object. Note that + // for REST API requests, you must specify a name in the request. rpc CreateSubscription(Subscription) returns (Subscription) { option (google.api.http) = { put: "/v1/{name=projects/*/subscriptions/*}" @@ -592,7 +593,7 @@ service Subscriber { // 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] - // (https://cloud.google.com/pubsub/docs/admin#resource_names). The + // (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The // generated name is populated in the returned Snapshot object. Note that for // REST API requests, you must specify a name in the request. rpc CreateSnapshot(CreateSnapshotRequest) returns (Snapshot) { @@ -1429,8 +1430,8 @@ message CreateSnapshotRequest { // 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](https://cloud.google.com/pubsub/docs/admin#resource_names). Format - // is `projects/{project}/snapshots/{snap}`. + // rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). + // Format is `projects/{project}/snapshots/{snap}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } From b8b91dc9d122c56a18e4d2bec448e639afbbbd80 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 23 Oct 2023 17:24:53 +0200 Subject: [PATCH 1583/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.26.0 (#1780) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2d42f8900e39..5bb7a2fd729c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.25.0 + 2.26.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b0fcadc38b54..c3cad2637f34 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.25.0 + 2.26.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c8011340db02..6aca9545c989 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -94,7 +94,7 @@ com.google.cloud google-cloud-core - 2.25.0 + 2.26.0 tests From fc1c9109a2b0daa6f981aaabbab40d7bbb9834ae Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 23 Oct 2023 17:25:12 +0200 Subject: [PATCH 1584/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.28 (#1783) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 839c06479f33..d21ebf70356a 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.27 + 0.9.28 true pubsub.NativeImagePubSubSample From 9c6e6458d3e336688ab6ecc9f3d4d3c97f9da496 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 23 Oct 2023 17:25:31 +0200 Subject: [PATCH 1585/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.28 (#1782) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index d21ebf70356a..46aadf5e4718 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.27 + 0.9.28 test From d532b6358d80f75711ddf821ab110374568f9396 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 23 Oct 2023 17:25:50 +0200 Subject: [PATCH 1586/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 (#1781) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1beab16d3241..bebf4a8a122a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.17.0 + 3.18.0 pom import From 24127c76e2040ef3fcbb579df04858c00360b635 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Mon, 23 Oct 2023 12:05:55 -0400 Subject: [PATCH 1587/2363] chore: Set blunderbuss config to auto-assign issues and PRs (#1784) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Minor fixes for comments * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Fix rollback example * Formatting * Formatting and wording fixes * Add new schemas to test directory * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Samples: Fix exception handling * fix: Set x-goog-request-params for streaming pull request * Revert "fix: Set x-goog-request-params for streaming pull request" This reverts commit 3185a3e9d48680d75cc70745f7ea0048d726556b. * Revert "Revert "fix: Set x-goog-request-params for streaming pull request"" This reverts commit 3b1f4d9c0751a8fa676159842208b4213d764ee6. * Thread example * Add examples for limited and unlimited exeuctors * Add back missing semicolon * Revert changes to original async example * Revert changes to original async example * Add examples of different threading models * Make variables final to conform to style. * Fix catches * Fix ids * Fix naming * Revert "Merge pull request #2 from kamalaboulhosn/ML_experiments" This reverts commit 5a435fad03f8c5bc577906ef0088b9899c2963cd, reversing changes made to c3a572560f74fa8e10b7f354352bdd736e6f58aa. * Set blunderbuss config to auto-assign issues and PRs * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot From 45877428be0cd1b925f2ab336f1b2b0c274b7d43 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 13:36:35 -0400 Subject: [PATCH 1588/2363] chore(main): release 1.125.8 (#1779) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 15 +++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 33 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 7bd3918dd7b1..f417a370531c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.125.8](https://github.com/googleapis/java-pubsub/compare/v1.125.7...v1.125.8) (2023-10-23) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.26.0 ([#1780](https://github.com/googleapis/java-pubsub/issues/1780)) ([2d38175](https://github.com/googleapis/java-pubsub/commit/2d381751b51cb69b6ab248ee56fe9ce5bf7f5cd5)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 ([#1781](https://github.com/googleapis/java-pubsub/issues/1781)) ([5b6cb15](https://github.com/googleapis/java-pubsub/commit/5b6cb15ce9f459061875329ba1fc6d4b84909666)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.28 ([#1782](https://github.com/googleapis/java-pubsub/issues/1782)) ([c9be478](https://github.com/googleapis/java-pubsub/commit/c9be478c3558928fc603c81fc07c4d8ba6d853b4)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.28 ([#1783](https://github.com/googleapis/java-pubsub/issues/1783)) ([5e39b79](https://github.com/googleapis/java-pubsub/commit/5e39b799d5d7b41325f9564a6044c0f0b4b05fdc)) + + +### Documentation + +* Modified some descriptions ([#1773](https://github.com/googleapis/java-pubsub/issues/1773)) ([17bd055](https://github.com/googleapis/java-pubsub/commit/17bd05512ba71083eb898a3ff8c5dc53c9bbb08d)) + ## [1.125.7](https://github.com/googleapis/java-pubsub/compare/v1.125.6...v1.125.7) (2023-10-17) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a36b2c491fb0..fb0d61a2ff5e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.8-SNAPSHOT + 1.125.8 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.8-SNAPSHOT + 1.125.8 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.8-SNAPSHOT + 1.107.8 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.8-SNAPSHOT + 1.107.8 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ad1b7ec94962..c4aaf143d542 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.8-SNAPSHOT + 1.125.8 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.8-SNAPSHOT + 1.125.8 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 160cb4a98cf1..a93bf9131790 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.8-SNAPSHOT + 1.107.8 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.8-SNAPSHOT + 1.125.8 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bebf4a8a122a..72b5cb5a0800 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.8-SNAPSHOT + 1.125.8 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.8-SNAPSHOT + 1.107.8 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.8-SNAPSHOT + 1.107.8 com.google.cloud google-cloud-pubsub - 1.125.8-SNAPSHOT + 1.125.8 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5d0d15ed5db0..ac1967ff7206 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.8-SNAPSHOT + 1.107.8 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.8-SNAPSHOT + 1.125.8 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c3cad2637f34..d65650a65a78 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.8-SNAPSHOT + 1.125.8 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 74bcf9e212c2..6e0defd278bc 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.7:1.125.8-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.7:1.107.8-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.7:1.107.8-SNAPSHOT +google-cloud-pubsub:1.125.8:1.125.8 +grpc-google-cloud-pubsub-v1:1.107.8:1.107.8 +proto-google-cloud-pubsub-v1:1.107.8:1.107.8 From b95ebf73d02c9ff00f8b60cf59172061a7b7eb50 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:52:14 +0000 Subject: [PATCH 1589/2363] chore(main): release 1.125.9-SNAPSHOT (#1786) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fb0d61a2ff5e..ee2dfe995d89 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.8 + 1.125.9-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.8 + 1.125.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.8 + 1.107.9-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.8 + 1.107.9-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c4aaf143d542..9dfd82664f7b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.8 + 1.125.9-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.8 + 1.125.9-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a93bf9131790..112bc9de23e4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.8 + 1.107.9-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.8 + 1.125.9-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 72b5cb5a0800..963da9e7b282 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.8 + 1.125.9-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.8 + 1.107.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.8 + 1.107.9-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.8 + 1.125.9-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ac1967ff7206..37f9dc755d10 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.8 + 1.107.9-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.8 + 1.125.9-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d65650a65a78..56854db45b94 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.8 + 1.125.9-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6e0defd278bc..d2c3174af3ae 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.8:1.125.8 -grpc-google-cloud-pubsub-v1:1.107.8:1.107.8 -proto-google-cloud-pubsub-v1:1.107.8:1.107.8 +google-cloud-pubsub:1.125.8:1.125.9-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.8:1.107.9-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.8:1.107.9-SNAPSHOT From 81aa0df53ba84eff680bea2189c22e7a6f0cedd6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 23 Oct 2023 23:43:49 +0200 Subject: [PATCH 1590/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.8 (#1788) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.8 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 858cf196449a..3c9afababd81 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.7 + 1.125.8 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.7' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.8' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.7" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.8" ``` @@ -408,7 +408,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.7 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.8 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5bb7a2fd729c..028fa76bb5f5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.7 + 1.125.8 From b27e3ecbdf2b3a20c6528072fd352e7f50f63de1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Oct 2023 20:09:57 +0200 Subject: [PATCH 1591/2363] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.3.1 (#1791) --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 10a43a507a47..678328275588 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -75,7 +75,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.3.0 + 3.3.1 checkstyle-suppressions.xml From 9009d4caf1a46f582459d4f86beea75b99af9dd4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Oct 2023 20:10:47 +0200 Subject: [PATCH 1592/2363] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.2.1 (#1789) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.2.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 46aadf5e4718..ddbdd3bd510e 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.1.2 + 3.2.1 **/*IT From a0fe73a2192832fde341b7321447894f12056914 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 25 Oct 2023 16:40:56 -0400 Subject: [PATCH 1593/2363] chore: bump urllib3 from 1.26.17 to 1.26.18 in /synthtool/gcp/templates/java_library/.kokoro (#1885) (#1790) Source-Link: https://github.com/googleapis/synthtool/commit/e4a9d44f7d1ddda567c14bce7df4d93fdb010de0 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:4875b2142cb4325542ba4f3175a81921c4b2b8256db012b220e3ca9637b34154 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.kokoro/requirements.txt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index cd91b662b949..8058621d830f 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d0a8eb7ffc63ddce4c63191373d6e99d5385516423c396de207dedf2b6db7427 -# created: 2023-10-17T17:33:29.360983119Z + digest: sha256:4875b2142cb4325542ba4f3175a81921c4b2b8256db012b220e3ca9637b34154 +# created: 2023-10-24T01:51:42.863726766Z diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index 59de49234092..c5c11bbe7925 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -470,9 +470,9 @@ typing-extensions==4.7.1 \ --hash=sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36 \ --hash=sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2 # via -r requirements.in -urllib3==1.26.17 \ - --hash=sha256:24d6a242c28d29af46c3fae832c36db3bbebcc533dd1bb549172cd739c82df21 \ - --hash=sha256:94a757d178c9be92ef5539b8840d48dc9cf1b2709c9d6b588232a055c524458b +urllib3==1.26.18 \ + --hash=sha256:34b97092d7e0a3a8cf7cd10e386f401b3737364026c45e622aa02903dffe0f07 \ + --hash=sha256:f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0 # via # google-auth # requests From 7c849e17223c8a29eed55a981a9217036f92b6d3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 25 Oct 2023 23:22:22 +0200 Subject: [PATCH 1594/2363] build(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.6.1 (#1787) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index ddbdd3bd510e..31802075589b 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -79,7 +79,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-dependency-plugin - 3.6.0 + 3.6.1 copy-dependencies From d78138919c592a1b4f2e7b03cfc2ed729e499a0d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 27 Oct 2023 20:22:21 +0200 Subject: [PATCH 1595/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.26.0 (#1797) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.25.0` -> `26.26.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:libraries-bom/26.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:libraries-bom/26.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:libraries-bom/26.25.0/26.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:libraries-bom/26.25.0/26.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-cloud-bom (com.google.cloud:libraries-bom) ### [`v26.26.0`](https://togithub.com/googleapis/java-cloud-bom/blob/HEAD/CHANGELOG.md#26260-2023-10-26) ##### Dependencies - update dependency com.google.cloud:first-party-dependencies to v3.18.0 ([#​6251](https://togithub.com/googleapis/java-cloud-bom/issues/6251)) ([36e7d60](https://togithub.com/googleapis/java-cloud-bom/commit/36e7d60c9013faeb5913ccc7646c2d0d907c3bd1)) - update dependency com.google.cloud:gapic-libraries-bom to v1.23.0 ([#​6260](https://togithub.com/googleapis/java-cloud-bom/issues/6260)) ([f1cf9a7](https://togithub.com/googleapis/java-cloud-bom/commit/f1cf9a79c17c2a229ccee7fe3d9b1a17f4b33f6b)) - update dependency com.google.cloud:google-cloud-bigquery to v2.34.0 ([#​6271](https://togithub.com/googleapis/java-cloud-bom/issues/6271)) ([b1175d6](https://togithub.com/googleapis/java-cloud-bom/commit/b1175d6dc862e8912d76a65bb93bcb33e9baae2a)) - update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v2.44.1 ([#​6266](https://togithub.com/googleapis/java-cloud-bom/issues/6266)) ([77d4658](https://togithub.com/googleapis/java-cloud-bom/commit/77d46584f02e01cc8106cdc9ddd5e28f0d4f499a)) - update dependency com.google.cloud:google-cloud-bigtable-bom to v2.29.0 ([#​6268](https://togithub.com/googleapis/java-cloud-bom/issues/6268)) ([8ef482d](https://togithub.com/googleapis/java-cloud-bom/commit/8ef482de2ea24642f7c654f2fc3fd03be8b3f4c2)) - update dependency com.google.cloud:google-cloud-datastore-bom to v2.17.4 ([#​6253](https://togithub.com/googleapis/java-cloud-bom/issues/6253)) ([8fc049d](https://togithub.com/googleapis/java-cloud-bom/commit/8fc049d6bad2420d36cfcccd92a04063708cd0a7)) - update dependency com.google.cloud:google-cloud-firestore-bom to v3.15.2 ([#​6252](https://togithub.com/googleapis/java-cloud-bom/issues/6252)) ([f40ca76](https://togithub.com/googleapis/java-cloud-bom/commit/f40ca7684e34f11d735985d9c94dcca61c988251)) - update dependency com.google.cloud:google-cloud-logging-bom to v3.15.12 ([#​6267](https://togithub.com/googleapis/java-cloud-bom/issues/6267)) ([d06156f](https://togithub.com/googleapis/java-cloud-bom/commit/d06156f6b8580b2b59923dee68ea81b69b98a6f9)) - update dependency com.google.cloud:google-cloud-logging-logback to v0.130.25-alpha ([#​6270](https://togithub.com/googleapis/java-cloud-bom/issues/6270)) ([19380bf](https://togithub.com/googleapis/java-cloud-bom/commit/19380bf302885fb14c74326022a93ca7990e2208)) - update dependency com.google.cloud:google-cloud-nio to v0.127.6 ([#​6257](https://togithub.com/googleapis/java-cloud-bom/issues/6257)) ([6d0b6d1](https://togithub.com/googleapis/java-cloud-bom/commit/6d0b6d10c4b72187a19e2c04c9a1e39a8be4ec4e)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.125.7 ([#​6249](https://togithub.com/googleapis/java-cloud-bom/issues/6249)) ([a0bfee4](https://togithub.com/googleapis/java-cloud-bom/commit/a0bfee488b0d74f9b68918ae01d4bf130520d2c5)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.125.8 ([#​6254](https://togithub.com/googleapis/java-cloud-bom/issues/6254)) ([6d6d260](https://togithub.com/googleapis/java-cloud-bom/commit/6d6d26008a91a9d1f523fbc26aaef5128105735c)) - update dependency com.google.cloud:google-cloud-pubsublite-bom to v1.12.17 ([#​6265](https://togithub.com/googleapis/java-cloud-bom/issues/6265)) ([e896c4e](https://togithub.com/googleapis/java-cloud-bom/commit/e896c4e65a82c3a072d7c8c40b6008abe31902d0)) - update dependency com.google.cloud:google-cloud-spanner-bom to v6.51.0 ([#​6246](https://togithub.com/googleapis/java-cloud-bom/issues/6246)) ([4b9b60d](https://togithub.com/googleapis/java-cloud-bom/commit/4b9b60df0e240de0f3ac6ad729d53de2039ad0ef)) - update dependency com.google.cloud:google-cloud-spanner-bom to v6.52.1 ([#​6250](https://togithub.com/googleapis/java-cloud-bom/issues/6250)) ([acfcad7](https://togithub.com/googleapis/java-cloud-bom/commit/acfcad73122e6ff646a93fb330901d13dc901bad)) - update dependency com.google.cloud:google-cloud-spanner-jdbc to v2.14.1 ([#​6247](https://togithub.com/googleapis/java-cloud-bom/issues/6247)) ([89c15d9](https://togithub.com/googleapis/java-cloud-bom/commit/89c15d991c068f0ab756f01bd61a0e945c54a5ff)) - update dependency com.google.cloud:google-cloud-spanner-jdbc to v2.14.2 ([#​6259](https://togithub.com/googleapis/java-cloud-bom/issues/6259)) ([ae482cb](https://togithub.com/googleapis/java-cloud-bom/commit/ae482cb75ad518e667694f639135e10332064857)) - update dependency com.google.cloud:google-cloud-storage-bom to v2.29.0 ([#​6256](https://togithub.com/googleapis/java-cloud-bom/issues/6256)) ([a906ca4](https://togithub.com/googleapis/java-cloud-bom/commit/a906ca4be8fa60d8dbb38f2fa5a22af4ce079bac)) - update dependency commons-cli:commons-cli to v1.6.0 ([#​6269](https://togithub.com/googleapis/java-cloud-bom/issues/6269)) ([4961764](https://togithub.com/googleapis/java-cloud-bom/commit/49617645309f5dbeb92b852df0e65876d5c2e0bb)) - update dependency commons-io:commons-io to v2.15.0 ([#​6264](https://togithub.com/googleapis/java-cloud-bom/issues/6264)) ([a21c002](https://togithub.com/googleapis/java-cloud-bom/commit/a21c002105ce63d4470be4fb8e6a9938c47e9e2d))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3c9afababd81..70ac9363025a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.25.0 + 26.26.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.25.0') +implementation platform('com.google.cloud:libraries-bom:26.26.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 31802075589b..ec3aa4cd9f43 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.25.0 + 26.26.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6aca9545c989..49a302ccb7ea 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.25.0 + 26.26.0 pom import From dbfbc4fd1ca872409119476bfd1feff8af25bc4b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 27 Oct 2023 20:22:30 +0200 Subject: [PATCH 1596/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.34.0 (#1795) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.33.2` -> `2.34.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquery/2.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquery/2.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquery/2.33.2/2.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquery/2.33.2/2.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery (com.google.cloud:google-cloud-bigquery) ### [`v2.34.0`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#2340-2023-10-26) [Compare Source](https://togithub.com/googleapis/java-bigquery/compare/v2.33.2...v2.34.0) ##### Features - Add BigLakeConfiguration Property in StandardTableDefinition.java ([#​2916](https://togithub.com/googleapis/java-bigquery/issues/2916)) ([1d660fa](https://togithub.com/googleapis/java-bigquery/commit/1d660fa19f0d82c2b6ec2ea9590881e513274c25)) - Add support for Dataset property storageBillingModel ([#​2913](https://togithub.com/googleapis/java-bigquery/issues/2913)) ([f452cf4](https://togithub.com/googleapis/java-bigquery/commit/f452cf4e100b6cc211681a840ddbd0be5108d01e)) - Add support for preview features ([#​2923](https://togithub.com/googleapis/java-bigquery/issues/2923)) ([113b8f2](https://togithub.com/googleapis/java-bigquery/commit/113b8f27419365c7277c6a300c5f07cea954cca1)) ##### Dependencies - Update actions/checkout action to v4.1.1 ([#​2950](https://togithub.com/googleapis/java-bigquery/issues/2950)) ([c556c18](https://togithub.com/googleapis/java-bigquery/commit/c556c1837baf0d53245452d6a152910df7883262)) - Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.30.0 ([#​2942](https://togithub.com/googleapis/java-bigquery/issues/2942)) ([e760fca](https://togithub.com/googleapis/java-bigquery/commit/e760fcae98b23ff4e7fc3ae25f2437be220e9df9)) - Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.31.0 ([#​2967](https://togithub.com/googleapis/java-bigquery/issues/2967)) ([7ed55b5](https://togithub.com/googleapis/java-bigquery/commit/7ed55b5c075dbac827c6201d0398ff87d8240b38)) - Update dependency com.google.apis:google-api-services-bigquery to v2-rev20231008-2.0.0 ([#​2946](https://togithub.com/googleapis/java-bigquery/issues/2946)) ([3d0da5b](https://togithub.com/googleapis/java-bigquery/commit/3d0da5b5a20f49721477afbed10ea3fff43652bb)) - Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.34.0 ([#​2943](https://togithub.com/googleapis/java-bigquery/issues/2943)) ([18162c3](https://togithub.com/googleapis/java-bigquery/commit/18162c37c97eff6387e0f58d211f2c1725a9c8d3)) - Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.35.0 ([#​2968](https://togithub.com/googleapis/java-bigquery/issues/2968)) ([219db2c](https://togithub.com/googleapis/java-bigquery/commit/219db2c0023610d2adcba4889a9b785df2113893)) - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 ([#​2955](https://togithub.com/googleapis/java-bigquery/issues/2955)) ([1ee18eb](https://togithub.com/googleapis/java-bigquery/commit/1ee18ebeb90adeb371ef04cbfc7b18be2c24d1e8)) - Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.28 ([#​2956](https://togithub.com/googleapis/java-bigquery/issues/2956)) ([b03effd](https://togithub.com/googleapis/java-bigquery/commit/b03effd3b5f5fd6365de9a6267a1a8ace46d7718)) - Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.28 ([#​2957](https://togithub.com/googleapis/java-bigquery/issues/2957)) ([6465e41](https://togithub.com/googleapis/java-bigquery/commit/6465e413c93e01069f86c80fc424715d46f9067b)) - Update github/codeql-action action to v2.22.2 ([#​2944](https://togithub.com/googleapis/java-bigquery/issues/2944)) ([f584e59](https://togithub.com/googleapis/java-bigquery/commit/f584e59571f0c7918d2d83a19b00d49bd5b558c4)) - Update github/codeql-action action to v2.22.3 ([#​2954](https://togithub.com/googleapis/java-bigquery/issues/2954)) ([1b2bc18](https://togithub.com/googleapis/java-bigquery/commit/1b2bc18bf49d06e1ccd29745be649108dd28cfa5)) - Update github/codeql-action action to v2.22.4 ([#​2958](https://togithub.com/googleapis/java-bigquery/issues/2958)) ([de9bcee](https://togithub.com/googleapis/java-bigquery/commit/de9bcee50ba682ffa93aae063191a8880741507d)) - Update ossf/scorecard-action action to v2.3.1 ([#​2960](https://togithub.com/googleapis/java-bigquery/issues/2960)) ([855e698](https://togithub.com/googleapis/java-bigquery/commit/855e69889f68592608c8a56070ffdafdf8365f57))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 028fa76bb5f5..aa92dfca1518 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.33.2 + 2.34.0
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 56854db45b94..954fc62e6418 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.33.2 + 2.34.0
    From 68e747fd012a763b21b5b44489f78aa1e025cbd8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 27 Oct 2023 18:42:14 +0000 Subject: [PATCH 1597/2363] chore(main): release 1.125.9 (#1798) :robot: I have created a release *beep* *boop* --- ## [1.125.9](https://togithub.com/googleapis/java-pubsub/compare/v1.125.8...v1.125.9) (2023-10-27) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.34.0 ([#1795](https://togithub.com/googleapis/java-pubsub/issues/1795)) ([dbfbc4f](https://togithub.com/googleapis/java-pubsub/commit/dbfbc4fd1ca872409119476bfd1feff8af25bc4b)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index f417a370531c..94be9dbc445b 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.125.9](https://github.com/googleapis/java-pubsub/compare/v1.125.8...v1.125.9) (2023-10-27) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.34.0 ([#1795](https://github.com/googleapis/java-pubsub/issues/1795)) ([670daf1](https://github.com/googleapis/java-pubsub/commit/670daf1c74242dfa54e9747924d094cbcaac4d37)) + ## [1.125.8](https://github.com/googleapis/java-pubsub/compare/v1.125.7...v1.125.8) (2023-10-23) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ee2dfe995d89..adb9fe3c9404 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.9-SNAPSHOT + 1.125.9 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.9-SNAPSHOT + 1.125.9 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.9-SNAPSHOT + 1.107.9 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.9-SNAPSHOT + 1.107.9
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9dfd82664f7b..1e6ef14de3ea 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.9-SNAPSHOT + 1.125.9 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.9-SNAPSHOT + 1.125.9 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 112bc9de23e4..688a4fa6e6f6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.9-SNAPSHOT + 1.107.9 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.9-SNAPSHOT + 1.125.9 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 963da9e7b282..3c6da186d9bf 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.9-SNAPSHOT + 1.125.9 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.9-SNAPSHOT + 1.107.9 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.9-SNAPSHOT + 1.107.9 com.google.cloud google-cloud-pubsub - 1.125.9-SNAPSHOT + 1.125.9 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 37f9dc755d10..f6d19c1528ba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.9-SNAPSHOT + 1.107.9 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.9-SNAPSHOT + 1.125.9 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 954fc62e6418..d8668c275aa7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.9-SNAPSHOT + 1.125.9 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d2c3174af3ae..b03b71bf23ce 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.8:1.125.9-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.8:1.107.9-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.8:1.107.9-SNAPSHOT +google-cloud-pubsub:1.125.9:1.125.9 +grpc-google-cloud-pubsub-v1:1.107.9:1.107.9 +proto-google-cloud-pubsub-v1:1.107.9:1.107.9 From 4c5bc193c5360423e8b1b8f8bb366f819443a6a1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 27 Oct 2023 18:56:14 +0000 Subject: [PATCH 1598/2363] chore(main): release 1.125.10-SNAPSHOT (#1799) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index adb9fe3c9404..d863af302476 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.9 + 1.125.10-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.9 + 1.125.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.9 + 1.107.10-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.9 + 1.107.10-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1e6ef14de3ea..b643bb33aaa5 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.9 + 1.125.10-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.9 + 1.125.10-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 688a4fa6e6f6..56787b13f989 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.9 + 1.107.10-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.9 + 1.125.10-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3c6da186d9bf..a54c1c478469 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.9 + 1.125.10-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.9 + 1.107.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.9 + 1.107.10-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.9 + 1.125.10-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f6d19c1528ba..adac6f13b511 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.9 + 1.107.10-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.9 + 1.125.10-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d8668c275aa7..2232ccae1d8f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.9 + 1.125.10-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b03b71bf23ce..b938ab00af28 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.9:1.125.9 -grpc-google-cloud-pubsub-v1:1.107.9:1.107.9 -proto-google-cloud-pubsub-v1:1.107.9:1.107.9 +google-cloud-pubsub:1.125.9:1.125.10-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.9:1.107.10-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.9:1.107.10-SNAPSHOT From 67fa9f48bac347425e7721c85d3c365d1c8770ad Mon Sep 17 00:00:00 2001 From: maitrimangal <121899734+maitrimangal@users.noreply.github.com> Date: Fri, 27 Oct 2023 15:34:49 -0400 Subject: [PATCH 1599/2363] docs: Adding a GCS subscription example (#1762) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Adding a GCS subscription example * removing the avro imoprt * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * adding optional GCS Configurations as well * adding test case * fixing lint * Removing Testcase * Removing Testcase * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * added max duration example * merge conflicts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 1 + .../samples/install-without-bom/pom.xml | 5 ++ java-pubsub/samples/snapshot/pom.xml | 5 ++ java-pubsub/samples/snippets/pom.xml | 4 + ...CreateCloudStorageSubscriptionExample.java | 78 +++++++++++++++++++ 5 files changed, 93 insertions(+) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 70ac9363025a..8f3b812e4443 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -248,6 +248,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Commit Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | | Create Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | | Create Big Query Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | +| Create Cloud Storage Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java) | | Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | | Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | | Create Push No Wrapper Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java) | diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index aa92dfca1518..c45fcbaf06b2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -88,6 +88,11 @@ google-cloud-bigquery 2.34.0 + + com.google.cloud + google-cloud-storage + 2.28.0 + diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2232ccae1d8f..f9557f330613 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -87,6 +87,11 @@ google-cloud-bigquery 2.34.0 + + com.google.cloud + google-cloud-storage + 2.28.0 + diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 49a302ccb7ea..5c1961fe7ed3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -63,6 +63,10 @@ com.google.cloud google-cloud-bigquery + + com.google.cloud + google-cloud-storage + org.apache.avro avro diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java new file mode 100644 index 000000000000..654ba3857876 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java @@ -0,0 +1,78 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_cloud_storage_subscription] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.protobuf.Duration; +import com.google.pubsub.v1.CloudStorageConfig; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class CreateCloudStorageSubscriptionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + String subscriptionId = "your-subscription-id"; + String bucket = "your-bucket"; + String filenamePrefix = "log_events_"; + String filenameSuffix = ".text"; + Duration maxDuration = Duration.newBuilder().setSeconds(300).build(); + + createCloudStorageSubscription( + projectId, topicId, subscriptionId, bucket, filenamePrefix, filenameSuffix, maxDuration); + } + + public static void createCloudStorageSubscription( + String projectId, + String topicId, + String subscriptionId, + String bucket, + String filenamePrefix, + String filenameSuffix, + Duration maxDuration) + throws IOException { + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + CloudStorageConfig cloudStorageConfig = + CloudStorageConfig.newBuilder() + .setBucket(bucket) + .setFilenamePrefix(filenamePrefix) + .setFilenameSuffix(filenameSuffix) + .setMaxDuration(maxDuration) + .build(); + + Subscription subscription = + subscriptionAdminClient.createSubscription( + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + .setCloudStorageConfig(cloudStorageConfig) + .build()); + + System.out.println("Created a CloudStorage subscription: " + subscription.getAllFields()); + } + } +} +// [END pubsub_create_cloud_storage_subscription] From e98e29eb4ccb636cfdbfa28c17c915dbc40b1ca8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 27 Oct 2023 22:23:20 +0200 Subject: [PATCH 1600/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.29.0 (#1800) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c45fcbaf06b2..a8ced67e5fb2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.28.0 + 2.29.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f9557f330613..eae9a983a090 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.28.0 + 2.29.0 From 73cc69186070c1bf331b8d4dbeee6d7a9a039f3c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 30 Oct 2023 16:06:25 +0100 Subject: [PATCH 1601/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.9 (#1802) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.125.8` -> `1.125.9` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.125.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.125.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.125.8/1.125.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.125.8/1.125.9?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub) ### [`v1.125.9`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#11259-2023-10-27) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.125.8...v1.125.9) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.34.0 ([#​1795](https://togithub.com/googleapis/java-pubsub/issues/1795)) ([dbfbc4f](https://togithub.com/googleapis/java-pubsub/commit/dbfbc4fd1ca872409119476bfd1feff8af25bc4b))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8f3b812e4443..79c1bdd0028a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.8 + 1.125.9 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.8' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.9' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.8" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.9" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.8 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.9 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a8ced67e5fb2..fc16f18d3f0e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.8 + 1.125.9 From 0f1c35c46102839e0424de93163092564db8a787 Mon Sep 17 00:00:00 2001 From: maitrimangal <121899734+maitrimangal@users.noreply.github.com> Date: Tue, 31 Oct 2023 09:45:03 -0400 Subject: [PATCH 1602/2363] docs: renaming the CreateUnwrappedPushSubscription File (#1794) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * renaming this file * docs: renaming this file * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- ...ple.java => CreateUnwrappedPushSubscriptionExample.java} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename java-pubsub/samples/snippets/src/main/java/pubsub/{CreatePushNoWrapperSubscriptionExample.java => CreateUnwrappedPushSubscriptionExample.java} (94%) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 79c1bdd0028a..5d2060635f29 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -251,7 +251,6 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Cloud Storage Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java) | | Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | | Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | -| Create Push No Wrapper Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java) | | Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | | Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | | Create Subscription With Exactly Once Delivery | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | @@ -260,6 +259,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | | Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | +| Create Unwrapped Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | | Delete Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | | Delete Schema Revision Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | | Delete Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java similarity index 94% rename from java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java rename to java-pubsub/samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java index 39e364ae6eab..d2fef438225d 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreatePushNoWrapperSubscriptionExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java @@ -16,7 +16,7 @@ package pubsub; -// [START pubsub_create_push_no_wrapper_subscription] +// [START pubsub_create_unwrapped_push_subscription] import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.pubsub.v1.PushConfig; @@ -26,7 +26,7 @@ import com.google.pubsub.v1.TopicName; import java.io.IOException; -public class CreatePushNoWrapperSubscriptionExample { +public class CreateUnwrappedPushSubscriptionExample { public static void main(String... args) throws Exception { // TODO(developer): Replace these variables before running the sample. String projectId = "your-project-id"; @@ -60,4 +60,4 @@ public static void createPushSubscriptionExample( } } } -// [END pubsub_create_push_no_wrapper_subscription] +// [END pubsub_create_unwrapped_push_subscription] From 330f7754411c0704c5a4977a057206397074212a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:13:56 -0400 Subject: [PATCH 1603/2363] chore: update graalvm version to 22.3.3 in kokoro cfg files. (#1889) (#1804) Source-Link: https://github.com/googleapis/synthtool/commit/1547f9a33de075d31d434bb3c9d7f53f068e0ff3 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bc2bf47c7370f1b1a8a46b0c104ce7e43644ac58902c9de265fe1f253fcc2506 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 8058621d830f..f930d4846feb 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:4875b2142cb4325542ba4f3175a81921c4b2b8256db012b220e3ca9637b34154 -# created: 2023-10-24T01:51:42.863726766Z + digest: sha256:bc2bf47c7370f1b1a8a46b0c104ce7e43644ac58902c9de265fe1f253fcc2506 +# created: 2023-10-31T13:44:21.909247346Z diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index f52533545896..fb5bb678ffcc 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.2" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.3" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 44b1004875b6..59efee340c53 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.2" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.3" } env_vars: { From 99dfc1c23eb21009e4297f5f08782c56e75972cd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 31 Oct 2023 19:14:27 +0100 Subject: [PATCH 1604/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.6.1 (#1806) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d863af302476..89858a093208 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.6.0 + 1.6.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a54c1c478469..6b027a10543f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.6.0 + 1.6.1 From 86d281382c2990a6f13b197de7b59dcdbdac3a6f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:30:47 -0400 Subject: [PATCH 1605/2363] chore(main): release 1.125.10 (#1801) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 94be9dbc445b..3745684eeba9 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.125.10](https://github.com/googleapis/java-pubsub/compare/v1.125.9...v1.125.10) (2023-10-31) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-storage to v2.29.0 ([#1800](https://github.com/googleapis/java-pubsub/issues/1800)) ([8c43cc2](https://github.com/googleapis/java-pubsub/commit/8c43cc2443f333c646c27cee4ee70434167213ba)) + + +### Documentation + +* Adding a GCS subscription example ([#1762](https://github.com/googleapis/java-pubsub/issues/1762)) ([3ce824c](https://github.com/googleapis/java-pubsub/commit/3ce824c78c7eaf37fc3bc0ed2a4b3b1d952ed9bc)) +* Renaming the CreateUnwrappedPushSubscription File ([#1794](https://github.com/googleapis/java-pubsub/issues/1794)) ([3264290](https://github.com/googleapis/java-pubsub/commit/326429092ac73d184b5e887ce5107220f96199b7)) + ## [1.125.9](https://github.com/googleapis/java-pubsub/compare/v1.125.8...v1.125.9) (2023-10-27) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 89858a093208..278f7015b315 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.10-SNAPSHOT + 1.125.10 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.10-SNAPSHOT + 1.125.10 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.10-SNAPSHOT + 1.107.10 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.10-SNAPSHOT + 1.107.10 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b643bb33aaa5..74d71d33cb71 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.10-SNAPSHOT + 1.125.10 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.10-SNAPSHOT + 1.125.10 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 56787b13f989..95fe0ddf6614 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.10-SNAPSHOT + 1.107.10 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.10-SNAPSHOT + 1.125.10 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6b027a10543f..7ae7a7d94b42 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.10-SNAPSHOT + 1.125.10 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.10-SNAPSHOT + 1.107.10 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.10-SNAPSHOT + 1.107.10 com.google.cloud google-cloud-pubsub - 1.125.10-SNAPSHOT + 1.125.10 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index adac6f13b511..13e95f7f6374 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.10-SNAPSHOT + 1.107.10 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.10-SNAPSHOT + 1.125.10 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index eae9a983a090..ba69143c32f1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.10-SNAPSHOT + 1.125.10 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b938ab00af28..0b1895272721 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.9:1.125.10-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.9:1.107.10-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.9:1.107.10-SNAPSHOT +google-cloud-pubsub:1.125.10:1.125.10 +grpc-google-cloud-pubsub-v1:1.107.10:1.107.10 +proto-google-cloud-pubsub-v1:1.107.10:1.107.10 From 5f41453da5bf83e8f01909a95cb4d9c95507b3fe Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 18:46:14 +0000 Subject: [PATCH 1606/2363] chore(main): release 1.125.11-SNAPSHOT (#1808) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 278f7015b315..65e86798b940 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.10 + 1.125.11-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.10 + 1.125.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.10 + 1.107.11-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.10 + 1.107.11-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 74d71d33cb71..4b74f0372ecb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.10 + 1.125.11-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.10 + 1.125.11-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 95fe0ddf6614..ba3109412199 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.10 + 1.107.11-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.10 + 1.125.11-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7ae7a7d94b42..c0f8d77cb3c7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.10 + 1.125.11-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.10 + 1.107.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.10 + 1.107.11-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.10 + 1.125.11-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 13e95f7f6374..e3d72048658d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.10 + 1.107.11-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.10 + 1.125.11-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ba69143c32f1..cfb744752efa 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.10 + 1.125.11-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0b1895272721..d126a32ba826 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.10:1.125.10 -grpc-google-cloud-pubsub-v1:1.107.10:1.107.10 -proto-google-cloud-pubsub-v1:1.107.10:1.107.10 +google-cloud-pubsub:1.125.10:1.125.11-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.10:1.107.11-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.10:1.107.11-SNAPSHOT From f74a943a0f1f6dad03faec2dfabf66e840c7ea94 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Tue, 31 Oct 2023 17:19:49 -0400 Subject: [PATCH 1607/2363] chore: Set blunderbuss config to auto-assign issues and PRs (#1805) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Minor fixes for comments * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Fix rollback example * Formatting * Formatting and wording fixes * Add new schemas to test directory * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Samples: Fix exception handling * fix: Set x-goog-request-params for streaming pull request * Revert "fix: Set x-goog-request-params for streaming pull request" This reverts commit 3185a3e9d48680d75cc70745f7ea0048d726556b. * Revert "Revert "fix: Set x-goog-request-params for streaming pull request"" This reverts commit 3b1f4d9c0751a8fa676159842208b4213d764ee6. * Thread example * Add examples for limited and unlimited exeuctors * Add back missing semicolon * Revert changes to original async example * Revert changes to original async example * Add examples of different threading models * Make variables final to conform to style. * Fix catches * Fix ids * Fix naming * Set blunderbuss config to auto-assign issues and PRs * Revert "Merge pull request #1 from kamalaboulhosn/ML_experiments" This reverts commit 81bff5b74ff32fb572174a14d4f57ee7c8eee8e3, reversing changes made to c3a572560f74fa8e10b7f354352bdd736e6f58aa. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Revert "🦉 Updates from OwlBot post-processor" This reverts commit 52d6e34e0ea1c9d67813f74fcda8d3b0252ccbe3. --------- Co-authored-by: Owl Bot --- java-pubsub/.github/blunderbuss.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java-pubsub/.github/blunderbuss.yml b/java-pubsub/.github/blunderbuss.yml index 2176b0543214..44ab091e1e65 100644 --- a/java-pubsub/.github/blunderbuss.yml +++ b/java-pubsub/.github/blunderbuss.yml @@ -1,5 +1,9 @@ # Configuration for the Blunderbuss GitHub app. For more info see # https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss +assign_issues: + - maitrimangal +assign_prs: + - maitrimangal assign_prs_by: - labels: - samples From d58247800fa0de661a69d7d1c836a5fb2d98ec1c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 1 Nov 2023 19:49:24 +0100 Subject: [PATCH 1608/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.19.0 (#1811) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.19.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/blunderbuss.yml | 4 ---- java-pubsub/README.md | 6 +++--- java-pubsub/pom.xml | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/java-pubsub/.github/blunderbuss.yml b/java-pubsub/.github/blunderbuss.yml index 44ab091e1e65..2176b0543214 100644 --- a/java-pubsub/.github/blunderbuss.yml +++ b/java-pubsub/.github/blunderbuss.yml @@ -1,9 +1,5 @@ # Configuration for the Blunderbuss GitHub app. For more info see # https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss -assign_issues: - - maitrimangal -assign_prs: - - maitrimangal assign_prs_by: - labels: - samples diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5d2060635f29..44b50a02a0b8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.9' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.10' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.9" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.10" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.9 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.10 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c0f8d77cb3c7..7d03edbe2e32 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.18.0 + 3.19.0 pom import From 3c90c24554c06ced61d0324cf7fe8254b1c2db87 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 1 Nov 2023 19:49:51 +0100 Subject: [PATCH 1609/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.27.0 (#1810) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.27.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fc16f18d3f0e..c520274f3411 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.26.0 + 2.27.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cfb744752efa..167bb62a778a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.26.0 + 2.27.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5c1961fe7ed3..656beaee51be 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.26.0 + 2.27.0 tests From a7522feee4c930902263505b10607398265c3fb8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 1 Nov 2023 19:08:14 +0000 Subject: [PATCH 1610/2363] chore(main): release 1.125.11 (#1813) :robot: I have created a release *beep* *boop* --- ## [1.125.11](https://togithub.com/googleapis/java-pubsub/compare/v1.125.10...v1.125.11) (2023-11-01) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.27.0 ([#1810](https://togithub.com/googleapis/java-pubsub/issues/1810)) ([3c90c24](https://togithub.com/googleapis/java-pubsub/commit/3c90c24554c06ced61d0324cf7fe8254b1c2db87)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.19.0 ([#1811](https://togithub.com/googleapis/java-pubsub/issues/1811)) ([d582478](https://togithub.com/googleapis/java-pubsub/commit/d58247800fa0de661a69d7d1c836a5fb2d98ec1c)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 3745684eeba9..98dfab8d93aa 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.125.11](https://github.com/googleapis/java-pubsub/compare/v1.125.10...v1.125.11) (2023-11-01) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.27.0 ([#1810](https://github.com/googleapis/java-pubsub/issues/1810)) ([edd89f3](https://github.com/googleapis/java-pubsub/commit/edd89f36061cd1518f81eb7b33e42cf5c35c659d)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.19.0 ([#1811](https://github.com/googleapis/java-pubsub/issues/1811)) ([d671bcb](https://github.com/googleapis/java-pubsub/commit/d671bcb9b0e6c425eb33bdafea9c20b543020363)) + ## [1.125.10](https://github.com/googleapis/java-pubsub/compare/v1.125.9...v1.125.10) (2023-10-31) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 65e86798b940..8e235fa71616 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.11-SNAPSHOT + 1.125.11 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.11-SNAPSHOT + 1.125.11 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.11-SNAPSHOT + 1.107.11 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.11-SNAPSHOT + 1.107.11 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4b74f0372ecb..e7f7ec37a700 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.11-SNAPSHOT + 1.125.11 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.11-SNAPSHOT + 1.125.11 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ba3109412199..7f545c2f1617 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.11-SNAPSHOT + 1.107.11 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.11-SNAPSHOT + 1.125.11 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7d03edbe2e32..3eaebd3b3560 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.11-SNAPSHOT + 1.125.11 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.11-SNAPSHOT + 1.107.11 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.11-SNAPSHOT + 1.107.11 com.google.cloud google-cloud-pubsub - 1.125.11-SNAPSHOT + 1.125.11 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e3d72048658d..ebf07378aeca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.11-SNAPSHOT + 1.107.11 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.11-SNAPSHOT + 1.125.11 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 167bb62a778a..6d3928d8203f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.11-SNAPSHOT + 1.125.11 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d126a32ba826..84de9341f36b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.10:1.125.11-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.10:1.107.11-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.10:1.107.11-SNAPSHOT +google-cloud-pubsub:1.125.11:1.125.11 +grpc-google-cloud-pubsub-v1:1.107.11:1.107.11 +proto-google-cloud-pubsub-v1:1.107.11:1.107.11 From b266f04171b40796b6d6a90bf5a553ea2709143f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 1 Nov 2023 19:22:14 +0000 Subject: [PATCH 1611/2363] chore(main): release 1.125.12-SNAPSHOT (#1814) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8e235fa71616..64f6cc971fd9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.11 + 1.125.12-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.11 + 1.125.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.11 + 1.107.12-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.11 + 1.107.12-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e7f7ec37a700..995415700c5b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.11 + 1.125.12-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.11 + 1.125.12-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7f545c2f1617..e300fb030ee0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.11 + 1.107.12-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.11 + 1.125.12-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3eaebd3b3560..9159ba167d1b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.11 + 1.125.12-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.11 + 1.107.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.11 + 1.107.12-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.11 + 1.125.12-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ebf07378aeca..19ce429035ca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.11 + 1.107.12-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.11 + 1.125.12-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6d3928d8203f..210d747e3a1d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.11 + 1.125.12-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 84de9341f36b..b48d1d3c8247 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.11:1.125.11 -grpc-google-cloud-pubsub-v1:1.107.11:1.107.11 -proto-google-cloud-pubsub-v1:1.107.11:1.107.11 +google-cloud-pubsub:1.125.11:1.125.12-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.11:1.107.12-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.11:1.107.12-SNAPSHOT From c198a4f49c8f6b68ce48161b7fc76d2790b66410 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Wed, 1 Nov 2023 15:54:00 -0400 Subject: [PATCH 1612/2363] chore: add blunderbuss config to owlbot exclusion list and update config to include desired changes (#1812) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Minor fixes for comments * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Fix rollback example * Formatting * Formatting and wording fixes * Add new schemas to test directory * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Samples: Fix exception handling * fix: Set x-goog-request-params for streaming pull request * Revert "fix: Set x-goog-request-params for streaming pull request" This reverts commit 3185a3e9d48680d75cc70745f7ea0048d726556b. * Revert "Revert "fix: Set x-goog-request-params for streaming pull request"" This reverts commit 3b1f4d9c0751a8fa676159842208b4213d764ee6. * Thread example * Add examples for limited and unlimited exeuctors * Add back missing semicolon * Revert changes to original async example * Revert changes to original async example * Add examples of different threading models * Make variables final to conform to style. * Fix catches * Fix ids * Fix naming * Set blunderbuss config to auto-assign issues and PRs * Revert "Merge pull request #1 from kamalaboulhosn/ML_experiments" This reverts commit 81bff5b74ff32fb572174a14d4f57ee7c8eee8e3, reversing changes made to c3a572560f74fa8e10b7f354352bdd736e6f58aa. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Revert "🦉 Updates from OwlBot post-processor" This reverts commit 52d6e34e0ea1c9d67813f74fcda8d3b0252ccbe3. * chore: add blunderbuss config to owlbot exclusion list * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/blunderbuss.yml | 4 ++++ java-pubsub/owlbot.py | 1 + 2 files changed, 5 insertions(+) diff --git a/java-pubsub/.github/blunderbuss.yml b/java-pubsub/.github/blunderbuss.yml index 2176b0543214..44ab091e1e65 100644 --- a/java-pubsub/.github/blunderbuss.yml +++ b/java-pubsub/.github/blunderbuss.yml @@ -1,5 +1,9 @@ # Configuration for the Blunderbuss GitHub app. For more info see # https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss +assign_issues: + - maitrimangal +assign_prs: + - maitrimangal assign_prs_by: - labels: - samples diff --git a/java-pubsub/owlbot.py b/java-pubsub/owlbot.py index 0d280ad717c9..69cab5df98d0 100644 --- a/java-pubsub/owlbot.py +++ b/java-pubsub/owlbot.py @@ -1209,5 +1209,6 @@ ".github/workflows/samples.yaml", ".kokoro/build.sh", ".github/sync-repo-settings.yaml", + ".github/blunderbuss.yml", ] ) From d9b70e8c8637ee64b97c95f9aede52175c67eb4b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 1 Nov 2023 21:14:15 +0100 Subject: [PATCH 1613/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.10 (#1809) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.10 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 44b50a02a0b8..225194745777 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.9 + 1.125.10 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c520274f3411..9c12bfb8c78b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.9 + 1.125.10 From 627857ea59a525b05a2c641ae43b0eebcf3f1ec8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 1 Nov 2023 21:53:25 +0100 Subject: [PATCH 1614/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.11 (#1815) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.11 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 225194745777..060eeb9dd0dd 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.10 + 1.125.11 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.10' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.11' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.10" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.11" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.10 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.11 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 9c12bfb8c78b..0bf7f3b758e3 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.10 + 1.125.11 From ba9e44d1b1c6c48ef108670333c991c70a1f676e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 3 Nov 2023 15:19:46 +0100 Subject: [PATCH 1615/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.29.1 (#1817) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0bf7f3b758e3..bb36c121e22e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.29.0 + 2.29.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 210d747e3a1d..702e2921248e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.29.0 + 2.29.1 From 0bba0f34bee2b0807504fcb6bb310f4c02a3a901 Mon Sep 17 00:00:00 2001 From: maitrimangal <121899734+maitrimangal@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:13:47 -0500 Subject: [PATCH 1616/2363] fix: concurrent modification of processing receievd messages (#1807) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: concurrent modification of processing receievd messages * Removing synchronized keyword, and making outstandingReceipts into a concurrentMap * Removing synchronized keyword for notifyAckSuccess and failure as well * fixing lint * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../com/google/cloud/pubsub/v1/MessageDispatcher.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 9556849bbac4..b257594ea536 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -31,7 +31,6 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; -import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -92,8 +91,8 @@ class MessageDispatcher { private final LinkedBlockingQueue pendingAcks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingNacks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingReceipts = new LinkedBlockingQueue<>(); - private final LinkedHashMap outstandingReceipts = - new LinkedHashMap(); + private final ConcurrentMap outstandingReceipts = + new ConcurrentHashMap(); private final AtomicInteger messageDeadlineSeconds = new AtomicInteger(); private final AtomicBoolean extendDeadline = new AtomicBoolean(true); private final Lock jobLock; @@ -411,7 +410,7 @@ void processReceivedMessages(List messages) { processBatch(outstandingBatch); } - synchronized void notifyAckSuccess(AckRequestData ackRequestData) { + void notifyAckSuccess(AckRequestData ackRequestData) { if (outstandingReceipts.containsKey(ackRequestData.getAckId())) { outstandingReceipts.get(ackRequestData.getAckId()).notifyReceiptComplete(); @@ -437,7 +436,7 @@ synchronized void notifyAckSuccess(AckRequestData ackRequestData) { } } - synchronized void notifyAckFailed(AckRequestData ackRequestData) { + void notifyAckFailed(AckRequestData ackRequestData) { outstandingReceipts.remove(ackRequestData.getAckId()); } From cd9301e06263785d5d602240eab6717d3fb44985 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 21 Nov 2023 23:09:59 +0100 Subject: [PATCH 1617/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.27.0 (#1822) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.27.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 060eeb9dd0dd..72c99b78af9b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.26.0 + 26.27.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.26.0') +implementation platform('com.google.cloud:libraries-bom:26.27.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index ec3aa4cd9f43..4753746476cd 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.26.0 + 26.27.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 656beaee51be..5cd420306daa 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.26.0 + 26.27.0 pom import From 8d536828aa31029c80662205bdb8cad7ca409be6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 21 Nov 2023 23:10:15 +0100 Subject: [PATCH 1618/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.34.2 (#1821) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bb36c121e22e..5ba658d24ff7 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.34.0 + 2.34.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 702e2921248e..7e0e5be66ee2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.34.0 + 2.34.2 com.google.cloud From 00dbcf7b42361f4ec3968b493deb4f569804ee93 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 21 Nov 2023 23:10:36 +0100 Subject: [PATCH 1619/2363] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.10.1 (#1819) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 4753746476cd..dd902c86a3ef 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.junit.vintage junit-vintage-engine - 5.10.0 + 5.10.1 test From 6775b2e2cb2edacf70b183c76d9841e2610b20a7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 25 Nov 2023 04:28:56 -0700 Subject: [PATCH 1620/2363] chore(main): release 1.125.12 (#1818) --- java-pubsub/CHANGELOG.md | 14 ++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 98dfab8d93aa..a7cb7291d5ed 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.125.12](https://github.com/googleapis/java-pubsub/compare/v1.125.11...v1.125.12) (2023-11-21) + + +### Bug Fixes + +* Concurrent modification of processing receievd messages ([#1807](https://github.com/googleapis/java-pubsub/issues/1807)) ([d162126](https://github.com/googleapis/java-pubsub/commit/d16212627b0d9b6616e0a9b20af2c430e2f6b36f)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.34.2 ([#1821](https://github.com/googleapis/java-pubsub/issues/1821)) ([c21ba1a](https://github.com/googleapis/java-pubsub/commit/c21ba1a51acf3411e7f9793f579a103ee1d36f38)) +* Update dependency com.google.cloud:google-cloud-storage to v2.29.1 ([#1817](https://github.com/googleapis/java-pubsub/issues/1817)) ([e179b94](https://github.com/googleapis/java-pubsub/commit/e179b94b7034fbb6c10775b0fe469ab129c0d6c8)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.1 ([#1819](https://github.com/googleapis/java-pubsub/issues/1819)) ([af84aa3](https://github.com/googleapis/java-pubsub/commit/af84aa3f5434d3e8ff2122b72cae0fc1c7323742)) + ## [1.125.11](https://github.com/googleapis/java-pubsub/compare/v1.125.10...v1.125.11) (2023-11-01) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 64f6cc971fd9..e44ca58d43be 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.12-SNAPSHOT + 1.125.12 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.12-SNAPSHOT + 1.125.12 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.12-SNAPSHOT + 1.107.12 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.12-SNAPSHOT + 1.107.12 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 995415700c5b..60e3b7194854 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.12-SNAPSHOT + 1.125.12 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.12-SNAPSHOT + 1.125.12 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e300fb030ee0..009a1d68785a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.12-SNAPSHOT + 1.107.12 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.12-SNAPSHOT + 1.125.12 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9159ba167d1b..ca4a2bc79fef 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.12-SNAPSHOT + 1.125.12 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.12-SNAPSHOT + 1.107.12 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.12-SNAPSHOT + 1.107.12 com.google.cloud google-cloud-pubsub - 1.125.12-SNAPSHOT + 1.125.12 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 19ce429035ca..2b50eb079ecd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.12-SNAPSHOT + 1.107.12 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.12-SNAPSHOT + 1.125.12 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7e0e5be66ee2..06fb551616c9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.12-SNAPSHOT + 1.125.12 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b48d1d3c8247..179870983b46 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.11:1.125.12-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.11:1.107.12-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.11:1.107.12-SNAPSHOT +google-cloud-pubsub:1.125.12:1.125.12 +grpc-google-cloud-pubsub-v1:1.107.12:1.107.12 +proto-google-cloud-pubsub-v1:1.107.12:1.107.12 From de602ade5b3e482353233a64c718b481ea883d51 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 27 Nov 2023 16:22:10 +0100 Subject: [PATCH 1621/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.12 (#1828) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.12 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 72c99b78af9b..c0e69f40758a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.11 + 1.125.12 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.11' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.12' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.11" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.12" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.11 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.12 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5ba658d24ff7..152457e0913f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.11 + 1.125.12 From ce9e8527db6877122b4f748be462236b448f4a4d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 27 Nov 2023 15:44:14 +0000 Subject: [PATCH 1622/2363] chore(main): release 1.125.13-SNAPSHOT (#1827) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e44ca58d43be..6a86834941e2 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.12 + 1.125.13-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.12 + 1.125.13-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.12 + 1.107.13-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.12 + 1.107.13-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 60e3b7194854..a029dd11dfa8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.12 + 1.125.13-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.12 + 1.125.13-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 009a1d68785a..bcf97ceef08b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.12 + 1.107.13-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.12 + 1.125.13-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ca4a2bc79fef..d8fa6653cb58 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.12 + 1.125.13-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.12 + 1.107.13-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.12 + 1.107.13-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.12 + 1.125.13-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2b50eb079ecd..f7e6da3a2306 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.12 + 1.107.13-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.12 + 1.125.13-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 06fb551616c9..763990efa71a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.12 + 1.125.13-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 179870983b46..e781134d50b2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.12:1.125.12 -grpc-google-cloud-pubsub-v1:1.107.12:1.107.12 -proto-google-cloud-pubsub-v1:1.107.12:1.107.12 +google-cloud-pubsub:1.125.12:1.125.13-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.12:1.107.13-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.12:1.107.13-SNAPSHOT From 362b64aba57a9b01c4fbad172e888beceb320278 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Nov 2023 21:50:35 +0100 Subject: [PATCH 1623/2363] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.5.0 (#1826) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 152457e0913f..8b6883d0dcd4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -101,7 +101,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.4.0 + 3.5.0 add-snippets-source diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 763990efa71a..fecc20cf32b5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -100,7 +100,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.4.0 + 3.5.0 add-snippets-source From 38d81bf11dbf7a8bb8389dbe2e2e496431acc3f4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 30 Nov 2023 17:53:44 +0100 Subject: [PATCH 1624/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.20.0 (#1831) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d8fa6653cb58..fa44d6195a7f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.19.0 + 3.20.0 pom import From 092df3a35194b569f40260a1b73b63d46240ad9b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 30 Nov 2023 17:54:16 +0100 Subject: [PATCH 1625/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.25.1 (#1816) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8b6883d0dcd4..291f34cc3fae 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.24.4 + 3.25.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fecc20cf32b5..8f762f2e1d3b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.24.4 + 3.25.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5cd420306daa..78ece2240b61 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 3.24.4 + 3.25.1 From 3b92f0ad197abf563323623f6a1d1c169370d5a2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 1 Dec 2023 00:18:35 +0100 Subject: [PATCH 1626/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.28.0 (#1830) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 291f34cc3fae..f1c736587178 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.27.0 + 2.28.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8f762f2e1d3b..1a906a1eee50 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.27.0 + 2.28.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 78ece2240b61..b2282edd27a5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.27.0 + 2.28.0 tests From a3cc038cff4297fe73b89f10cb2763a9542ab1af Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 23:36:17 +0000 Subject: [PATCH 1627/2363] chore(main): release 1.125.13 (#1833) :robot: I have created a release *beep* *boop* --- ## [1.125.13](https://togithub.com/googleapis/java-pubsub/compare/v1.125.12...v1.125.13) (2023-11-30) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.28.0 ([#1830](https://togithub.com/googleapis/java-pubsub/issues/1830)) ([3b92f0a](https://togithub.com/googleapis/java-pubsub/commit/3b92f0ad197abf563323623f6a1d1c169370d5a2)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.20.0 ([#1831](https://togithub.com/googleapis/java-pubsub/issues/1831)) ([38d81bf](https://togithub.com/googleapis/java-pubsub/commit/38d81bf11dbf7a8bb8389dbe2e2e496431acc3f4)) * Update dependency com.google.protobuf:protobuf-java-util to v3.25.1 ([#1816](https://togithub.com/googleapis/java-pubsub/issues/1816)) ([092df3a](https://togithub.com/googleapis/java-pubsub/commit/092df3a35194b569f40260a1b73b63d46240ad9b)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index a7cb7291d5ed..547b68d6bc86 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.125.13](https://github.com/googleapis/java-pubsub/compare/v1.125.12...v1.125.13) (2023-11-30) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.28.0 ([#1830](https://github.com/googleapis/java-pubsub/issues/1830)) ([8990b7c](https://github.com/googleapis/java-pubsub/commit/8990b7ca7cfbb08cd117f59bbf18c67dd1e7fb18)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.20.0 ([#1831](https://github.com/googleapis/java-pubsub/issues/1831)) ([d188af8](https://github.com/googleapis/java-pubsub/commit/d188af8815927b409f72c968cbd6a8685976d08b)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.25.1 ([#1816](https://github.com/googleapis/java-pubsub/issues/1816)) ([e4f2b26](https://github.com/googleapis/java-pubsub/commit/e4f2b2605b17024f983a8ccf50ed19d169c15d90)) + ## [1.125.12](https://github.com/googleapis/java-pubsub/compare/v1.125.11...v1.125.12) (2023-11-21) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6a86834941e2..0539a8cb7cc4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.13-SNAPSHOT + 1.125.13 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.13-SNAPSHOT + 1.125.13 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.13-SNAPSHOT + 1.107.13 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.13-SNAPSHOT + 1.107.13 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a029dd11dfa8..53ad0fded7ee 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.13-SNAPSHOT + 1.125.13 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.13-SNAPSHOT + 1.125.13 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bcf97ceef08b..601f8793cde5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.13-SNAPSHOT + 1.107.13 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.13-SNAPSHOT + 1.125.13 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index fa44d6195a7f..4f538ab53e5b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.13-SNAPSHOT + 1.125.13 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.13-SNAPSHOT + 1.107.13 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.13-SNAPSHOT + 1.107.13 com.google.cloud google-cloud-pubsub - 1.125.13-SNAPSHOT + 1.125.13 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f7e6da3a2306..977e30241846 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.13-SNAPSHOT + 1.107.13 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.13-SNAPSHOT + 1.125.13 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1a906a1eee50..8a954efadfda 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.13-SNAPSHOT + 1.125.13 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e781134d50b2..d92cb37a2264 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.12:1.125.13-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.12:1.107.13-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.12:1.107.13-SNAPSHOT +google-cloud-pubsub:1.125.13:1.125.13 +grpc-google-cloud-pubsub-v1:1.107.13:1.107.13 +proto-google-cloud-pubsub-v1:1.107.13:1.107.13 From 23263351781149370761f7acd368d4abe8073b6a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 23:50:21 +0000 Subject: [PATCH 1628/2363] chore(main): release 1.125.14-SNAPSHOT (#1835) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0539a8cb7cc4..fa186be44ce7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.13 + 1.125.14-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.13 + 1.125.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.13 + 1.107.14-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.13 + 1.107.14-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 53ad0fded7ee..5310f092afbe 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.13 + 1.125.14-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.13 + 1.125.14-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 601f8793cde5..a3a9782dd791 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.13 + 1.107.14-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.13 + 1.125.14-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4f538ab53e5b..f6022a64f68f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.13 + 1.125.14-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.13 + 1.107.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.13 + 1.107.14-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.125.13 + 1.125.14-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 977e30241846..4dff24db31d4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.13 + 1.107.14-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.13 + 1.125.14-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8a954efadfda..3cc2a229ed98 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.13 + 1.125.14-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d92cb37a2264..7dbf465fd215 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.13:1.125.13 -grpc-google-cloud-pubsub-v1:1.107.13:1.107.13 -proto-google-cloud-pubsub-v1:1.107.13:1.107.13 +google-cloud-pubsub:1.125.13:1.125.14-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.107.13:1.107.14-SNAPSHOT +proto-google-cloud-pubsub-v1:1.107.13:1.107.14-SNAPSHOT From 42c47d44d7ecf8aad7daedaef8d4d08cd7d97094 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Dec 2023 16:22:21 +0100 Subject: [PATCH 1629/2363] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.2.2 (#1820) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index dd902c86a3ef..3838f02b880f 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.2.1 + 3.2.2 **/*IT From 56c12cc3673537c12f869978b1f0a09ed62411a1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Dec 2023 16:22:36 +0100 Subject: [PATCH 1630/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.13 (#1836) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.125.13 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c0e69f40758a..c88331c1e8ef 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.12 + 1.125.13 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.12' +implementation 'com.google.cloud:google-cloud-pubsub:1.125.13' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.12" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.13" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.12 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.13 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f1c736587178..ed69c0ed2e6b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.12 + 1.125.13 From def488adb22711492e682b79b16c16648fd2f172 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 10:22:55 -0500 Subject: [PATCH 1631/2363] ci: Update ci.yaml to introduce Java 21 unit testing (#1907) (#1837) Source-Link: https://github.com/googleapis/synthtool/commit/c06d605503f34e91c9d7dfee8f5287d58b5988ae Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6f431774e11cc46619cf093fd1481193c4024031073697fa18f0099b943aab88 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.github/workflows/ci.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index f930d4846feb..d304652e1c44 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:bc2bf47c7370f1b1a8a46b0c104ce7e43644ac58902c9de265fe1f253fcc2506 -# created: 2023-10-31T13:44:21.909247346Z + digest: sha256:6f431774e11cc46619cf093fd1481193c4024031073697fa18f0099b943aab88 +# created: 2023-12-01T19:50:20.444857406Z diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index e27b2c57563c..ae66b1973b17 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - java: [11, 17] + java: [11, 17, 21] steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 From 26d3a52613bc67622b2a78490ad1f5e94614e3b0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 10:23:25 -0500 Subject: [PATCH 1632/2363] feat: add `use_table_schema` field to BigQueryConfig (#1838) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add `use_table_schema` field to BigQueryConfig PiperOrigin-RevId: 587079085 Source-Link: https://github.com/googleapis/googleapis/commit/95fabe6ae89c9206e89fd38a4d5c0f40c13bedfb Source-Link: https://github.com/googleapis/googleapis-gen/commit/90b35e9d8bc6780a80db3bababefc29072fa3506 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTBiMzVlOWQ4YmM2NzgwYTgwZGIzYmFiYWJlZmMyOTA3MmZhMzUwNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../com/google/pubsub/v1/BigQueryConfig.java | 129 ++++- .../pubsub/v1/BigQueryConfigOrBuilder.java | 22 +- .../com/google/pubsub/v1/PubsubProto.java | 454 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 12 +- 6 files changed, 380 insertions(+), 247 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 536ed0caf4f3..2683f75dfef9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -333,11 +333,12 @@ public com.google.protobuf.ByteString getTableBytes() { * * *
    -   * When true, use the topic's schema as the columns to write to in BigQuery,
    -   * if it exists.
    +   * Optional. When true, use the topic's schema as the columns to write to in
    +   * BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
    +   * enabled at the same time.
        * 
    * - * bool use_topic_schema = 2; + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useTopicSchema. */ @@ -431,6 +432,26 @@ public com.google.pubsub.v1.BigQueryConfig.State getState() { return result == null ? com.google.pubsub.v1.BigQueryConfig.State.UNRECOGNIZED : result; } + public static final int USE_TABLE_SCHEMA_FIELD_NUMBER = 6; + private boolean useTableSchema_ = false; + /** + * + * + *
    +   * Optional. When true, use the BigQuery table's schema as the columns to
    +   * write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
    +   * enabled at the same time.
    +   * 
    + * + * bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useTableSchema. + */ + @java.lang.Override + public boolean getUseTableSchema() { + return useTableSchema_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -460,6 +481,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.pubsub.v1.BigQueryConfig.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, state_); } + if (useTableSchema_ != false) { + output.writeBool(6, useTableSchema_); + } getUnknownFields().writeTo(output); } @@ -484,6 +508,9 @@ public int getSerializedSize() { if (state_ != com.google.pubsub.v1.BigQueryConfig.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); } + if (useTableSchema_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, useTableSchema_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -504,6 +531,7 @@ public boolean equals(final java.lang.Object obj) { if (getWriteMetadata() != other.getWriteMetadata()) return false; if (getDropUnknownFields() != other.getDropUnknownFields()) return false; if (state_ != other.state_) return false; + if (getUseTableSchema() != other.getUseTableSchema()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -525,6 +553,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDropUnknownFields()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + hash = (37 * hash) + USE_TABLE_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTableSchema()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -668,6 +698,7 @@ public Builder clear() { writeMetadata_ = false; dropUnknownFields_ = false; state_ = 0; + useTableSchema_ = false; return this; } @@ -718,6 +749,9 @@ private void buildPartial0(com.google.pubsub.v1.BigQueryConfig result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.useTableSchema_ = useTableSchema_; + } } @java.lang.Override @@ -782,6 +816,9 @@ public Builder mergeFrom(com.google.pubsub.v1.BigQueryConfig other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.getUseTableSchema() != false) { + setUseTableSchema(other.getUseTableSchema()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -838,6 +875,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 40 + case 48: + { + useTableSchema_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -973,11 +1016,12 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { * * *
    -     * When true, use the topic's schema as the columns to write to in BigQuery,
    -     * if it exists.
    +     * Optional. When true, use the topic's schema as the columns to write to in
    +     * BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
    +     * enabled at the same time.
          * 
    * - * bool use_topic_schema = 2; + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useTopicSchema. */ @@ -989,11 +1033,12 @@ public boolean getUseTopicSchema() { * * *
    -     * When true, use the topic's schema as the columns to write to in BigQuery,
    -     * if it exists.
    +     * Optional. When true, use the topic's schema as the columns to write to in
    +     * BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
    +     * enabled at the same time.
          * 
    * - * bool use_topic_schema = 2; + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The useTopicSchema to set. * @return This builder for chaining. @@ -1009,11 +1054,12 @@ public Builder setUseTopicSchema(boolean value) { * * *
    -     * When true, use the topic's schema as the columns to write to in BigQuery,
    -     * if it exists.
    +     * Optional. When true, use the topic's schema as the columns to write to in
    +     * BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
    +     * enabled at the same time.
          * 
    * - * bool use_topic_schema = 2; + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1259,6 +1305,65 @@ public Builder clearState() { return this; } + private boolean useTableSchema_; + /** + * + * + *
    +     * Optional. When true, use the BigQuery table's schema as the columns to
    +     * write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
    +     * enabled at the same time.
    +     * 
    + * + * bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useTableSchema. + */ + @java.lang.Override + public boolean getUseTableSchema() { + return useTableSchema_; + } + /** + * + * + *
    +     * Optional. When true, use the BigQuery table's schema as the columns to
    +     * write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
    +     * enabled at the same time.
    +     * 
    + * + * bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The useTableSchema to set. + * @return This builder for chaining. + */ + public Builder setUseTableSchema(boolean value) { + + useTableSchema_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. When true, use the BigQuery table's schema as the columns to
    +     * write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
    +     * enabled at the same time.
    +     * 
    + * + * bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUseTableSchema() { + bitField0_ = (bitField0_ & ~0x00000020); + useTableSchema_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index a498ded180a6..bc805214fe5f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -54,11 +54,12 @@ public interface BigQueryConfigOrBuilder * * *
    -   * When true, use the topic's schema as the columns to write to in BigQuery,
    -   * if it exists.
    +   * Optional. When true, use the topic's schema as the columns to write to in
    +   * BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
    +   * enabled at the same time.
        * 
    * - * bool use_topic_schema = 2; + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The useTopicSchema. */ @@ -128,4 +129,19 @@ public interface BigQueryConfigOrBuilder * @return The state. */ com.google.pubsub.v1.BigQueryConfig.State getState(); + + /** + * + * + *
    +   * Optional. When true, use the BigQuery table's schema as the columns to
    +   * write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
    +   * enabled at the same time.
    +   * 
    + * + * bool use_table_schema = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useTableSchema. + */ + boolean getUseTableSchema(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index fcb75b41f6e3..b680117a046f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -383,230 +383,231 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dience\030\002 \001(\t\032\017\n\rPubsubWrapper\032#\n\tNoWrapp" + "er\022\026\n\016write_metadata\030\001 \001(\010\0321\n\017Attributes" + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" - + "\025authentication_methodB\t\n\007wrapper\"\222\002\n\016Bi" - + "gQueryConfig\022\r\n\005table\030\001 \001(\t\022\030\n\020use_topic" - + "_schema\030\002 \001(\010\022\026\n\016write_metadata\030\003 \001(\010\022\033\n" - + "\023drop_unknown_fields\030\004 \001(\010\022;\n\005state\030\005 \001(" - + "\0162&.google.pubsub.v1.BigQueryConfig.Stat" - + "eB\004\342A\001\003\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" - + "T_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\"\210\004\n\022Cloud" - + "StorageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001\002\022\027\n\017f" - + "ilename_prefix\030\002 \001(\t\022\027\n\017filename_suffix\030" - + "\003 \001(\t\022F\n\013text_config\030\004 \001(\0132/.google.pubs" - + "ub.v1.CloudStorageConfig.TextConfigH\000\022F\n" - + "\013avro_config\030\005 \001(\0132/.google.pubsub.v1.Cl" - + "oudStorageConfig.AvroConfigH\000\022/\n\014max_dur" - + "ation\030\006 \001(\0132\031.google.protobuf.Duration\022\021" - + "\n\tmax_bytes\030\007 \001(\003\022?\n\005state\030\t \001(\0162*.googl" - + "e.pubsub.v1.CloudStorageConfig.StateB\004\342A" - + "\001\003\032\014\n\nTextConfig\032$\n\nAvroConfig\022\026\n\016write_" - + "metadata\030\001 \001(\010\"P\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020" - + "\002\022\r\n\tNOT_FOUND\020\003B\017\n\routput_format\"m\n\017Rec" - + "eivedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030" - + "\002 \001(\0132\037.google.pubsub.v1.PubsubMessage\022\030" - + "\n\020delivery_attempt\030\003 \001(\005\"[\n\026GetSubscript" - + "ionRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A" - + "$\n\"pubsub.googleapis.com/Subscription\"\216\001" - + "\n\031UpdateSubscriptionRequest\022:\n\014subscript" - + "ion\030\001 \001(\0132\036.google.pubsub.v1.Subscriptio" - + "nB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pr" - + "otobuf.FieldMaskB\004\342A\001\002\"\210\001\n\030ListSubscript" - + "ionsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+c" - + "loudresourcemanager.googleapis.com/Proje" - + "ct\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"k\n\031ListSubscriptionsResponse\0225\n\rsubscr" - + "iptions\030\001 \003(\0132\036.google.pubsub.v1.Subscri" - + "ption\022\027\n\017next_page_token\030\002 \001(\t\"^\n\031Delete" - + "SubscriptionRequest\022A\n\014subscription\030\001 \001(" - + "\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscr" - + "iption\"\225\001\n\027ModifyPushConfigRequest\022A\n\014su" - + "bscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.google" - + "apis.com/Subscription\0227\n\013push_config\030\002 \001" - + "(\0132\034.google.pubsub.v1.PushConfigB\004\342A\001\002\"\220" - + "\001\n\013PullRequest\022A\n\014subscription\030\001 \001(\tB+\342A" - + "\001\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\022\"\n\022return_immediately\030\002 \001(\010B\006\030\001\342A\001\001\022\032\n" - + "\014max_messages\030\003 \001(\005B\004\342A\001\002\"L\n\014PullRespons" - + "e\022<\n\021received_messages\030\001 \003(\0132!.google.pu" - + "bsub.v1.ReceivedMessage\"\230\001\n\030ModifyAckDea" - + "dlineRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002" + + "\025authentication_methodB\t\n\007wrapper\"\270\002\n\016Bi" + + "gQueryConfig\022\r\n\005table\030\001 \001(\t\022\036\n\020use_topic" + + "_schema\030\002 \001(\010B\004\342A\001\001\022\026\n\016write_metadata\030\003 " + + "\001(\010\022\033\n\023drop_unknown_fields\030\004 \001(\010\022;\n\005stat" + + "e\030\005 \001(\0162&.google.pubsub.v1.BigQueryConfi" + + "g.StateB\004\342A\001\003\022\036\n\020use_table_schema\030\006 \001(\010B" + + "\004\342A\001\001\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_" + + "FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\"\210\004\n\022CloudSt" + + "orageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001\002\022\027\n\017fil" + + "ename_prefix\030\002 \001(\t\022\027\n\017filename_suffix\030\003 " + + "\001(\t\022F\n\013text_config\030\004 \001(\0132/.google.pubsub" + + ".v1.CloudStorageConfig.TextConfigH\000\022F\n\013a" + + "vro_config\030\005 \001(\0132/.google.pubsub.v1.Clou" + + "dStorageConfig.AvroConfigH\000\022/\n\014max_durat" + + "ion\030\006 \001(\0132\031.google.protobuf.Duration\022\021\n\t" + + "max_bytes\030\007 \001(\003\022?\n\005state\030\t \001(\0162*.google." + + "pubsub.v1.CloudStorageConfig.StateB\004\342A\001\003" + + "\032\014\n\nTextConfig\032$\n\nAvroConfig\022\026\n\016write_me" + + "tadata\030\001 \001(\010\"P\n\005State\022\025\n\021STATE_UNSPECIFI" + + "ED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022" + + "\r\n\tNOT_FOUND\020\003B\017\n\routput_format\"m\n\017Recei" + + "vedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 " + + "\001(\0132\037.google.pubsub.v1.PubsubMessage\022\030\n\020" + + "delivery_attempt\030\003 \001(\005\"[\n\026GetSubscriptio" + + "nRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\"\216\001\n\031" + + "UpdateSubscriptionRequest\022:\n\014subscriptio" + + "n\030\001 \001(\0132\036.google.pubsub.v1.SubscriptionB" + + "\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\004\342A\001\002\"\210\001\n\030ListSubscriptio" + + "nsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+clo" + + "udresourcemanager.googleapis.com/Project" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "k\n\031ListSubscriptionsResponse\0225\n\rsubscrip" + + "tions\030\001 \003(\0132\036.google.pubsub.v1.Subscript" + + "ion\022\027\n\017next_page_token\030\002 \001(\t\"^\n\031DeleteSu" + + "bscriptionRequest\022A\n\014subscription\030\001 \001(\tB" + + "+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscrip" + + "tion\"\225\001\n\027ModifyPushConfigRequest\022A\n\014subs" + + "cription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\0227\n\013push_config\030\002 \001(\013" + + "2\034.google.pubsub.v1.PushConfigB\004\342A\001\002\"\220\001\n" + + "\013PullRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002" + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "\025\n\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024ack_deadline_s" - + "econds\030\003 \001(\005B\004\342A\001\002\"n\n\022AcknowledgeRequest" - + "\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\022\025\n\007ack_ids\030\002" - + " \003(\tB\004\342A\001\002\"\253\002\n\024StreamingPullRequest\022A\n\014s" - + "ubscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\022\017\n\007ack_ids\030\002 \003(\t\022" - + "\037\n\027modify_deadline_seconds\030\003 \003(\005\022\037\n\027modi" - + "fy_deadline_ack_ids\030\004 \003(\t\022)\n\033stream_ack_" - + "deadline_seconds\030\005 \001(\005B\004\342A\001\002\022\021\n\tclient_i" - + "d\030\006 \001(\t\022 \n\030max_outstanding_messages\030\007 \001(" - + "\003\022\035\n\025max_outstanding_bytes\030\010 \001(\003\"\335\005\n\025Str" - + "eamingPullResponse\022<\n\021received_messages\030" - + "\001 \003(\0132!.google.pubsub.v1.ReceivedMessage" - + "\022a\n\030acknowledge_confirmation\030\005 \001(\0132?.goo" - + "gle.pubsub.v1.StreamingPullResponse.Ackn" - + "owledgeConfirmation\022o\n modify_ack_deadli" - + "ne_confirmation\030\003 \001(\0132E.google.pubsub.v1" - + ".StreamingPullResponse.ModifyAckDeadline" - + "Confirmation\022_\n\027subscription_properties\030" - + "\004 \001(\0132>.google.pubsub.v1.StreamingPullRe" - + "sponse.SubscriptionProperties\032\200\001\n\027Acknow" - + "ledgeConfirmation\022\017\n\007ack_ids\030\001 \003(\t\022\027\n\017in" - + "valid_ack_ids\030\002 \003(\t\022\031\n\021unordered_ack_ids" - + "\030\003 \003(\t\022 \n\030temporary_failed_ack_ids\030\004 \003(\t" - + "\032k\n\035ModifyAckDeadlineConfirmation\022\017\n\007ack" - + "_ids\030\001 \003(\t\022\027\n\017invalid_ack_ids\030\002 \003(\t\022 \n\030t" - + "emporary_failed_ack_ids\030\003 \003(\t\032a\n\026Subscri" - + "ptionProperties\022%\n\035exactly_once_delivery" - + "_enabled\030\001 \001(\010\022 \n\030message_ordering_enabl" - + "ed\030\002 \001(\010\"\205\002\n\025CreateSnapshotRequest\0225\n\004na" - + "me\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googleapis.com" - + "/Snapshot\022A\n\014subscription\030\002 \001(\tB+\342A\001\002\372A$" - + "\n\"pubsub.googleapis.com/Subscription\022C\n\006" - + "labels\030\003 \003(\01323.google.pubsub.v1.CreateSn" - + "apshotRequest.LabelsEntry\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\202\001\n\025Upd" - + "ateSnapshotRequest\0222\n\010snapshot\030\001 \001(\0132\032.g" - + "oogle.pubsub.v1.SnapshotB\004\342A\001\002\0225\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" - + "\004\342A\001\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topi" - + "c\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topi" - + "c\022/\n\013expire_time\030\003 \001(\0132\032.google.protobuf" - + ".Timestamp\0226\n\006labels\030\004 \003(\0132&.google.pubs" - + "ub.v1.Snapshot.LabelsEntry\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036" - + "pubsub.googleapis.com/Snapshot\022\'projects" - + "/{project}/snapshots/{snapshot}\"O\n\022GetSn" - + "apshotRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A " - + "\n\036pubsub.googleapis.com/Snapshot\"\204\001\n\024Lis" - + "tSnapshotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002" - + "\372A-\n+cloudresourcemanager.googleapis.com" - + "/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnap" - + "shots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022" - + "\027\n\017next_page_token\030\002 \001(\t\"R\n\025DeleteSnapsh" - + "otRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pu" - + "bsub.googleapis.com/Snapshot\"\277\001\n\013SeekReq" - + "uest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\022*\n\004time\030" - + "\002 \001(\0132\032.google.protobuf.TimestampH\000\0227\n\010s" - + "napshot\030\003 \001(\tB#\372A \n\036pubsub.googleapis.co" - + "m/SnapshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270" - + "\013\n\tPublisher\022q\n\013CreateTopic\022\027.google.pub" - + "sub.v1.Topic\032\027.google.pubsub.v1.Topic\"0\332" - + "A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topic" - + "s/*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub." - + "v1.UpdateTopicRequest\032\027.google.pubsub.v1" - + ".Topic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/" - + "{topic.name=projects/*/topics/*}:\001*\022\223\001\n\007" - + "Publish\022 .google.pubsub.v1.PublishReques" - + "t\032!.google.pubsub.v1.PublishResponse\"C\332A" - + "\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=projec" - + "ts/*/topics/*}:publish:\001*\022w\n\010GetTopic\022!." - + "google.pubsub.v1.GetTopicRequest\032\027.googl" - + "e.pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{" - + "topic=projects/*/topics/*}\022\212\001\n\nListTopic" - + "s\022#.google.pubsub.v1.ListTopicsRequest\032$" - + ".google.pubsub.v1.ListTopicsResponse\"1\332A" - + "\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}" - + "/topics\022\272\001\n\026ListTopicSubscriptions\022/.goo" - + "gle.pubsub.v1.ListTopicSubscriptionsRequ" - + "est\0320.google.pubsub.v1.ListTopicSubscrip" - + "tionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topi" - + "c=projects/*/topics/*}/subscriptions\022\252\001\n" - + "\022ListTopicSnapshots\022+.google.pubsub.v1.L" - + "istTopicSnapshotsRequest\032,.google.pubsub" - + ".v1.ListTopicSnapshotsResponse\"9\332A\005topic" - + "\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/" - + "snapshots\022|\n\013DeleteTopic\022$.google.pubsub" - + ".v1.DeleteTopicRequest\032\026.google.protobuf" - + ".Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=proje" - + "cts/*/topics/*}\022\255\001\n\022DetachSubscription\022+" - + ".google.pubsub.v1.DetachSubscriptionRequ" - + "est\032,.google.pubsub.v1.DetachSubscriptio" - + "nResponse\"<\202\323\344\223\0026\"4/v1/{subscription=pro" - + "jects/*/subscriptions/*}:detach\032p\312A\025pubs" - + "ub.googleapis.com\322AUhttps://www.googleap" - + "is.com/auth/cloud-platform,https://www.g" - + "oogleapis.com/auth/pubsub2\322\025\n\nSubscriber" - + "\022\264\001\n\022CreateSubscription\022\036.google.pubsub." - + "v1.Subscription\032\036.google.pubsub.v1.Subsc" - + "ription\"^\332A+name,topic,push_config,ack_d" - + "eadline_seconds\202\323\344\223\002*\032%/v1/{name=project" - + "s/*/subscriptions/*}:\001*\022\241\001\n\017GetSubscript" - + "ion\022(.google.pubsub.v1.GetSubscriptionRe" - + "quest\032\036.google.pubsub.v1.Subscription\"D\332" - + "A\014subscription\202\323\344\223\002/\022-/v1/{subscription=" - + "projects/*/subscriptions/*}\022\273\001\n\022UpdateSu" - + "bscription\022+.google.pubsub.v1.UpdateSubs" - + "criptionRequest\032\036.google.pubsub.v1.Subsc" - + "ription\"X\332A\030subscription,update_mask\202\323\344\223" - + "\002722/v1/{subscription.name=projects/*/su" - + "bscriptions/*}:\001*\022\246\001\n\021ListSubscriptions\022" - + "*.google.pubsub.v1.ListSubscriptionsRequ" - + "est\032+.google.pubsub.v1.ListSubscriptions" - + "Response\"8\332A\007project\202\323\344\223\002(\022&/v1/{project" - + "=projects/*}/subscriptions\022\237\001\n\022DeleteSub" - + "scription\022+.google.pubsub.v1.DeleteSubsc" - + "riptionRequest\032\026.google.protobuf.Empty\"D" - + "\332A\014subscription\202\323\344\223\002/*-/v1/{subscription" - + "=projects/*/subscriptions/*}\022\317\001\n\021ModifyA" - + "ckDeadline\022*.google.pubsub.v1.ModifyAckD" - + "eadlineRequest\032\026.google.protobuf.Empty\"v" - + "\332A)subscription,ack_ids,ack_deadline_sec" - + "onds\202\323\344\223\002D\"?/v1/{subscription=projects/*" - + "/subscriptions/*}:modifyAckDeadline:\001*\022\250" - + "\001\n\013Acknowledge\022$.google.pubsub.v1.Acknow" - + "ledgeRequest\032\026.google.protobuf.Empty\"[\332A" - + "\024subscription,ack_ids\202\323\344\223\002>\"9/v1/{subscr" - + "iption=projects/*/subscriptions/*}:ackno" - + "wledge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.Pu" - + "llRequest\032\036.google.pubsub.v1.PullRespons" - + "e\"\210\001\332A,subscription,return_immediately,m" - + "ax_messages\332A\031subscription,max_messages\202" - + "\323\344\223\0027\"2/v1/{subscription=projects/*/subs" - + "criptions/*}:pull:\001*\022f\n\rStreamingPull\022&." - + "google.pubsub.v1.StreamingPullRequest\032\'." - + "google.pubsub.v1.StreamingPullResponse\"\000" - + "(\0010\001\022\273\001\n\020ModifyPushConfig\022).google.pubsu" - + "b.v1.ModifyPushConfigRequest\032\026.google.pr" - + "otobuf.Empty\"d\332A\030subscription,push_confi" - + "g\202\323\344\223\002C\">/v1/{subscription=projects/*/su" - + "bscriptions/*}:modifyPushConfig:\001*\022\211\001\n\013G" - + "etSnapshot\022$.google.pubsub.v1.GetSnapsho" - + "tRequest\032\032.google.pubsub.v1.Snapshot\"8\332A" - + "\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/" - + "*/snapshots/*}\022\226\001\n\rListSnapshots\022&.googl" - + "e.pubsub.v1.ListSnapshotsRequest\032\'.googl" - + "e.pubsub.v1.ListSnapshotsResponse\"4\332A\007pr" - + "oject\202\323\344\223\002$\022\"/v1/{project=projects/*}/sn" - + "apshots\022\227\001\n\016CreateSnapshot\022\'.google.pubs" - + "ub.v1.CreateSnapshotRequest\032\032.google.pub" - + "sub.v1.Snapshot\"@\332A\021name,subscription\202\323\344" - + "\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001" - + "*\022\243\001\n\016UpdateSnapshot\022\'.google.pubsub.v1." - + "UpdateSnapshotRequest\032\032.google.pubsub.v1" - + ".Snapshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/" - + "2*/v1/{snapshot.name=projects/*/snapshot" - + "s/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubs" - + "ub.v1.DeleteSnapshotRequest\032\026.google.pro" - + "tobuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{sna" - + "pshot=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035" - + ".google.pubsub.v1.SeekRequest\032\036.google.p" - + "ubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subs" - + "cription=projects/*/subscriptions/*}:see" - + "k:\001*\032p\312A\025pubsub.googleapis.com\322AUhttps:/" - + "/www.googleapis.com/auth/cloud-platform," - + "https://www.googleapis.com/auth/pubsubB\252" - + "\001\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z2" - + "cloud.google.com/go/pubsub/apiv1/pubsubp" - + "b;pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002" - + "\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud:" - + ":PubSub::V1b\006proto3" + + "\"\n\022return_immediately\030\002 \001(\010B\006\030\001\342A\001\001\022\032\n\014m" + + "ax_messages\030\003 \001(\005B\004\342A\001\002\"L\n\014PullResponse\022" + + "<\n\021received_messages\030\001 \003(\0132!.google.pubs" + + "ub.v1.ReceivedMessage\"\230\001\n\030ModifyAckDeadl" + + "ineRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A" + + "$\n\"pubsub.googleapis.com/Subscription\022\025\n" + + "\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024ack_deadline_sec" + + "onds\030\003 \001(\005B\004\342A\001\002\"n\n\022AcknowledgeRequest\022A" + + "\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.go" + + "ogleapis.com/Subscription\022\025\n\007ack_ids\030\002 \003" + + "(\tB\004\342A\001\002\"\253\002\n\024StreamingPullRequest\022A\n\014sub" + + "scription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googlea" + + "pis.com/Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n" + + "\027modify_deadline_seconds\030\003 \003(\005\022\037\n\027modify" + + "_deadline_ack_ids\030\004 \003(\t\022)\n\033stream_ack_de" + + "adline_seconds\030\005 \001(\005B\004\342A\001\002\022\021\n\tclient_id\030" + + "\006 \001(\t\022 \n\030max_outstanding_messages\030\007 \001(\003\022" + + "\035\n\025max_outstanding_bytes\030\010 \001(\003\"\335\005\n\025Strea" + + "mingPullResponse\022<\n\021received_messages\030\001 " + + "\003(\0132!.google.pubsub.v1.ReceivedMessage\022a" + + "\n\030acknowledge_confirmation\030\005 \001(\0132?.googl" + + "e.pubsub.v1.StreamingPullResponse.Acknow" + + "ledgeConfirmation\022o\n modify_ack_deadline" + + "_confirmation\030\003 \001(\0132E.google.pubsub.v1.S" + + "treamingPullResponse.ModifyAckDeadlineCo" + + "nfirmation\022_\n\027subscription_properties\030\004 " + + "\001(\0132>.google.pubsub.v1.StreamingPullResp" + + "onse.SubscriptionProperties\032\200\001\n\027Acknowle" + + "dgeConfirmation\022\017\n\007ack_ids\030\001 \003(\t\022\027\n\017inva" + + "lid_ack_ids\030\002 \003(\t\022\031\n\021unordered_ack_ids\030\003" + + " \003(\t\022 \n\030temporary_failed_ack_ids\030\004 \003(\t\032k" + + "\n\035ModifyAckDeadlineConfirmation\022\017\n\007ack_i" + + "ds\030\001 \003(\t\022\027\n\017invalid_ack_ids\030\002 \003(\t\022 \n\030tem" + + "porary_failed_ack_ids\030\003 \003(\t\032a\n\026Subscript" + + "ionProperties\022%\n\035exactly_once_delivery_e" + + "nabled\030\001 \001(\010\022 \n\030message_ordering_enabled" + + "\030\002 \001(\010\"\205\002\n\025CreateSnapshotRequest\0225\n\004name" + + "\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googleapis.com/S" + + "napshot\022A\n\014subscription\030\002 \001(\tB+\342A\001\002\372A$\n\"" + + "pubsub.googleapis.com/Subscription\022C\n\006la" + + "bels\030\003 \003(\01323.google.pubsub.v1.CreateSnap" + + "shotRequest.LabelsEntry\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\202\001\n\025Updat" + + "eSnapshotRequest\0222\n\010snapshot\030\001 \001(\0132\032.goo" + + "gle.pubsub.v1.SnapshotB\004\342A\001\002\0225\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342" + + "A\001\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030" + + "\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022" + + "/\n\013expire_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestamp\0226\n\006labels\030\004 \003(\0132&.google.pubsub" + + ".v1.Snapshot.LabelsEntry\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pu" + + "bsub.googleapis.com/Snapshot\022\'projects/{" + + "project}/snapshots/{snapshot}\"O\n\022GetSnap" + + "shotRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036" + + "pubsub.googleapis.com/Snapshot\"\204\001\n\024ListS" + + "napshotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapsh" + + "ots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n" + + "\017next_page_token\030\002 \001(\t\"R\n\025DeleteSnapshot" + + "Request\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pubs" + + "ub.googleapis.com/Snapshot\"\277\001\n\013SeekReque" + + "st\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsu" + + "b.googleapis.com/Subscription\022*\n\004time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampH\000\0227\n\010sna" + + "pshot\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/" + + "SnapshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n" + + "\tPublisher\022q\n\013CreateTopic\022\027.google.pubsu" + + "b.v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A\004" + + "name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/" + + "*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v1" + + ".UpdateTopicRequest\032\027.google.pubsub.v1.T" + + "opic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{t" + + "opic.name=projects/*/topics/*}:\001*\022\223\001\n\007Pu" + + "blish\022 .google.pubsub.v1.PublishRequest\032" + + "!.google.pubsub.v1.PublishResponse\"C\332A\016t" + + "opic,messages\202\323\344\223\002,\"\'/v1/{topic=projects" + + "/*/topics/*}:publish:\001*\022w\n\010GetTopic\022!.go" + + "ogle.pubsub.v1.GetTopicRequest\032\027.google." + + "pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{to" + + "pic=projects/*/topics/*}\022\212\001\n\nListTopics\022" + + "#.google.pubsub.v1.ListTopicsRequest\032$.g" + + "oogle.pubsub.v1.ListTopicsResponse\"1\332A\007p" + + "roject\202\323\344\223\002!\022\037/v1/{project=projects/*}/t" + + "opics\022\272\001\n\026ListTopicSubscriptions\022/.googl" + + "e.pubsub.v1.ListTopicSubscriptionsReques" + + "t\0320.google.pubsub.v1.ListTopicSubscripti" + + "onsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=" + + "projects/*/topics/*}/subscriptions\022\252\001\n\022L" + + "istTopicSnapshots\022+.google.pubsub.v1.Lis" + + "tTopicSnapshotsRequest\032,.google.pubsub.v" + + "1.ListTopicSnapshotsResponse\"9\332A\005topic\202\323" + + "\344\223\002+\022)/v1/{topic=projects/*/topics/*}/sn" + + "apshots\022|\n\013DeleteTopic\022$.google.pubsub.v" + + "1.DeleteTopicRequest\032\026.google.protobuf.E" + + "mpty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=project" + + "s/*/topics/*}\022\255\001\n\022DetachSubscription\022+.g" + + "oogle.pubsub.v1.DetachSubscriptionReques" + + "t\032,.google.pubsub.v1.DetachSubscriptionR" + + "esponse\"<\202\323\344\223\0026\"4/v1/{subscription=proje" + + "cts/*/subscriptions/*}:detach\032p\312A\025pubsub" + + ".googleapis.com\322AUhttps://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/pubsub2\322\025\n\nSubscriber\022\264" + + "\001\n\022CreateSubscription\022\036.google.pubsub.v1" + + ".Subscription\032\036.google.pubsub.v1.Subscri" + + "ption\"^\332A+name,topic,push_config,ack_dea" + + "dline_seconds\202\323\344\223\002*\032%/v1/{name=projects/" + + "*/subscriptions/*}:\001*\022\241\001\n\017GetSubscriptio" + + "n\022(.google.pubsub.v1.GetSubscriptionRequ" + + "est\032\036.google.pubsub.v1.Subscription\"D\332A\014" + + "subscription\202\323\344\223\002/\022-/v1/{subscription=pr" + + "ojects/*/subscriptions/*}\022\273\001\n\022UpdateSubs" + + "cription\022+.google.pubsub.v1.UpdateSubscr" + + "iptionRequest\032\036.google.pubsub.v1.Subscri" + + "ption\"X\332A\030subscription,update_mask\202\323\344\223\0027" + + "22/v1/{subscription.name=projects/*/subs" + + "criptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*." + + "google.pubsub.v1.ListSubscriptionsReques" + + "t\032+.google.pubsub.v1.ListSubscriptionsRe" + + "sponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=p" + + "rojects/*}/subscriptions\022\237\001\n\022DeleteSubsc" + + "ription\022+.google.pubsub.v1.DeleteSubscri" + + "ptionRequest\032\026.google.protobuf.Empty\"D\332A" + + "\014subscription\202\323\344\223\002/*-/v1/{subscription=p" + + "rojects/*/subscriptions/*}\022\317\001\n\021ModifyAck" + + "Deadline\022*.google.pubsub.v1.ModifyAckDea" + + "dlineRequest\032\026.google.protobuf.Empty\"v\332A" + + ")subscription,ack_ids,ack_deadline_secon" + + "ds\202\323\344\223\002D\"?/v1/{subscription=projects/*/s" + + "ubscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" + + "\013Acknowledge\022$.google.pubsub.v1.Acknowle" + + "dgeRequest\032\026.google.protobuf.Empty\"[\332A\024s" + + "ubscription,ack_ids\202\323\344\223\002>\"9/v1/{subscrip" + + "tion=projects/*/subscriptions/*}:acknowl" + + "edge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.Pull" + + "Request\032\036.google.pubsub.v1.PullResponse\"" + + "\210\001\332A,subscription,return_immediately,max" + + "_messages\332A\031subscription,max_messages\202\323\344" + + "\223\0027\"2/v1/{subscription=projects/*/subscr" + + "iptions/*}:pull:\001*\022f\n\rStreamingPull\022&.go" + + "ogle.pubsub.v1.StreamingPullRequest\032\'.go" + + "ogle.pubsub.v1.StreamingPullResponse\"\000(\001" + + "0\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub." + + "v1.ModifyPushConfigRequest\032\026.google.prot" + + "obuf.Empty\"d\332A\030subscription,push_config\202" + + "\323\344\223\002C\">/v1/{subscription=projects/*/subs" + + "criptions/*}:modifyPushConfig:\001*\022\211\001\n\013Get" + + "Snapshot\022$.google.pubsub.v1.GetSnapshotR" + + "equest\032\032.google.pubsub.v1.Snapshot\"8\332A\010s" + + "napshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/" + + "snapshots/*}\022\226\001\n\rListSnapshots\022&.google." + + "pubsub.v1.ListSnapshotsRequest\032\'.google." + + "pubsub.v1.ListSnapshotsResponse\"4\332A\007proj" + + "ect\202\323\344\223\002$\022\"/v1/{project=projects/*}/snap" + + "shots\022\227\001\n\016CreateSnapshot\022\'.google.pubsub" + + ".v1.CreateSnapshotRequest\032\032.google.pubsu" + + "b.v1.Snapshot\"@\332A\021name,subscription\202\323\344\223\002" + + "&\032!/v1/{name=projects/*/snapshots/*}:\001*\022" + + "\243\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.Up" + + "dateSnapshotRequest\032\032.google.pubsub.v1.S" + + "napshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*" + + "/v1/{snapshot.name=projects/*/snapshots/" + + "*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsub" + + ".v1.DeleteSnapshotRequest\032\026.google.proto" + + "buf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snaps" + + "hot=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.g" + + "oogle.pubsub.v1.SeekRequest\032\036.google.pub" + + "sub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscr" + + "iption=projects/*/subscriptions/*}:seek:" + + "\001*\032p\312A\025pubsub.googleapis.com\322AUhttps://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/pubsubB\252\001\n" + + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z2cl" + + "oud.google.com/go/pubsub/apiv1/pubsubpb;" + + "pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026G" + + "oogle\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::P" + + "ubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -884,7 +885,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, new java.lang.String[] { - "Table", "UseTopicSchema", "WriteMetadata", "DropUnknownFields", "State", + "Table", + "UseTopicSchema", + "WriteMetadata", + "DropUnknownFields", + "State", + "UseTableSchema", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = getDescriptor().getMessageTypes().get(23); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 476d5384dba5..30c5431b8d25 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1227 + * google/pubsub/v1/pubsub.proto;l=1233 * @return The returnImmediately. */ @java.lang.Override @@ -687,7 +687,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1227 + * google/pubsub/v1/pubsub.proto;l=1233 * @return The returnImmediately. */ @java.lang.Override @@ -713,7 +713,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1227 + * google/pubsub/v1/pubsub.proto;l=1233 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -743,7 +743,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1227 + * google/pubsub/v1/pubsub.proto;l=1233 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 740269f4aab5..9f9ccf387b3c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -71,7 +71,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1227 + * google/pubsub/v1/pubsub.proto;l=1233 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 700324dc755b..393893b1033f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -997,9 +997,10 @@ message BigQueryConfig { // {projectId}.{datasetId}.{tableId} string table = 1; - // When true, use the topic's schema as the columns to write to in BigQuery, - // if it exists. - bool use_topic_schema = 2; + // Optional. When true, use the topic's schema as the columns to write to in + // BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be + // enabled at the same time. + bool use_topic_schema = 2 [(google.api.field_behavior) = OPTIONAL]; // When true, write the subscription name, message_id, publish_time, // attributes, and ordering_key to additional columns in the table. The @@ -1018,6 +1019,11 @@ message BigQueryConfig { // Output only. An output-only field that indicates whether or not the // subscription can receive messages. State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. When true, use the BigQuery table's schema as the columns to + // write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be + // enabled at the same time. + bool use_table_schema = 6 [(google.api.field_behavior) = OPTIONAL]; } // Configuration for a Cloud Storage subscription. From 4f765275ac525cf12f42d1398d9560e53a93f446 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Dec 2023 23:39:18 +0100 Subject: [PATCH 1633/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.28.0 (#1844) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.28.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c88331c1e8ef..6edc0987fddb 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.27.0 + 26.28.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.27.0') +implementation platform('com.google.cloud:libraries-bom:26.28.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 3838f02b880f..ee24544d06c0 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.27.0 + 26.28.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b2282edd27a5..75d49362377e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.27.0 + 26.28.0 pom import From 3313f282934e17fd6d8840599a1300df4ac0416e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 7 Dec 2023 17:39:34 -0500 Subject: [PATCH 1634/2363] build(deps): bump cryptography from 41.0.2 to 41.0.3 in /synthtool/gcp/templates/java_library/.kokoro (#1846) (#1842) build(deps): bump cryptography Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.2 to 41.0.3. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/41.0.2...41.0.3) --- updated-dependencies: - dependency-name: cryptography dependency-type: indirect ... Source-Link: https://github.com/googleapis/synthtool/commit/bfb4e631084fff256869cd33bcb6aaa55f1c736d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:11d59eabd49dc088f8339fb96e9da79ba4b3a73b3d49a8a4e0263e91edd053ba Signed-off-by: dependabot[bot] Co-authored-by: Owl Bot Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Burke Davison <40617934+burkedavison@users.noreply.github.com> Co-authored-by: Jeffrey Rennie Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com> --- java-pubsub/.github/.OwlBot.lock.yaml | 4 +-- java-pubsub/.kokoro/requirements.txt | 48 +++++++++++++-------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index d304652e1c44..31c6fe5f1329 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:6f431774e11cc46619cf093fd1481193c4024031073697fa18f0099b943aab88 -# created: 2023-12-01T19:50:20.444857406Z + digest: sha256:11d59eabd49dc088f8339fb96e9da79ba4b3a73b3d49a8a4e0263e91edd053ba +# created: 2023-12-05T18:46:43.811070085Z diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index c5c11bbe7925..6a36ccab4637 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -170,30 +170,30 @@ colorlog==6.7.0 \ --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 # via gcp-docuploader -cryptography==41.0.2 \ - --hash=sha256:01f1d9e537f9a15b037d5d9ee442b8c22e3ae11ce65ea1f3316a41c78756b711 \ - --hash=sha256:079347de771f9282fbfe0e0236c716686950c19dee1b76240ab09ce1624d76d7 \ - --hash=sha256:182be4171f9332b6741ee818ec27daff9fb00349f706629f5cbf417bd50e66fd \ - --hash=sha256:192255f539d7a89f2102d07d7375b1e0a81f7478925b3bc2e0549ebf739dae0e \ - --hash=sha256:2a034bf7d9ca894720f2ec1d8b7b5832d7e363571828037f9e0c4f18c1b58a58 \ - --hash=sha256:342f3767e25876751e14f8459ad85e77e660537ca0a066e10e75df9c9e9099f0 \ - --hash=sha256:439c3cc4c0d42fa999b83ded80a9a1fb54d53c58d6e59234cfe97f241e6c781d \ - --hash=sha256:49c3222bb8f8e800aead2e376cbef687bc9e3cb9b58b29a261210456a7783d83 \ - --hash=sha256:674b669d5daa64206c38e507808aae49904c988fa0a71c935e7006a3e1e83831 \ - --hash=sha256:7a9a3bced53b7f09da251685224d6a260c3cb291768f54954e28f03ef14e3766 \ - --hash=sha256:7af244b012711a26196450d34f483357e42aeddb04128885d95a69bd8b14b69b \ - --hash=sha256:7d230bf856164de164ecb615ccc14c7fc6de6906ddd5b491f3af90d3514c925c \ - --hash=sha256:84609ade00a6ec59a89729e87a503c6e36af98ddcd566d5f3be52e29ba993182 \ - --hash=sha256:9a6673c1828db6270b76b22cc696f40cde9043eb90373da5c2f8f2158957f42f \ - --hash=sha256:9b6d717393dbae53d4e52684ef4f022444fc1cce3c48c38cb74fca29e1f08eaa \ - --hash=sha256:9c3fe6534d59d071ee82081ca3d71eed3210f76ebd0361798c74abc2bcf347d4 \ - --hash=sha256:a719399b99377b218dac6cf547b6ec54e6ef20207b6165126a280b0ce97e0d2a \ - --hash=sha256:b332cba64d99a70c1e0836902720887fb4529ea49ea7f5462cf6640e095e11d2 \ - --hash=sha256:d124682c7a23c9764e54ca9ab5b308b14b18eba02722b8659fb238546de83a76 \ - --hash=sha256:d73f419a56d74fef257955f51b18d046f3506270a5fd2ac5febbfa259d6c0fa5 \ - --hash=sha256:f0dc40e6f7aa37af01aba07277d3d64d5a03dc66d682097541ec4da03cc140ee \ - --hash=sha256:f14ad275364c8b4e525d018f6716537ae7b6d369c094805cae45300847e0894f \ - --hash=sha256:f772610fe364372de33d76edcd313636a25684edb94cee53fd790195f5989d14 +cryptography==41.0.3 \ + --hash=sha256:0d09fb5356f975974dbcb595ad2d178305e5050656affb7890a1583f5e02a306 \ + --hash=sha256:23c2d778cf829f7d0ae180600b17e9fceea3c2ef8b31a99e3c694cbbf3a24b84 \ + --hash=sha256:3fb248989b6363906827284cd20cca63bb1a757e0a2864d4c1682a985e3dca47 \ + --hash=sha256:41d7aa7cdfded09b3d73a47f429c298e80796c8e825ddfadc84c8a7f12df212d \ + --hash=sha256:42cb413e01a5d36da9929baa9d70ca90d90b969269e5a12d39c1e0d475010116 \ + --hash=sha256:4c2f0d35703d61002a2bbdcf15548ebb701cfdd83cdc12471d2bae80878a4207 \ + --hash=sha256:4fd871184321100fb400d759ad0cddddf284c4b696568204d281c902fc7b0d81 \ + --hash=sha256:5259cb659aa43005eb55a0e4ff2c825ca111a0da1814202c64d28a985d33b087 \ + --hash=sha256:57a51b89f954f216a81c9d057bf1a24e2f36e764a1ca9a501a6964eb4a6800dd \ + --hash=sha256:652627a055cb52a84f8c448185922241dd5217443ca194d5739b44612c5e6507 \ + --hash=sha256:67e120e9a577c64fe1f611e53b30b3e69744e5910ff3b6e97e935aeb96005858 \ + --hash=sha256:6af1c6387c531cd364b72c28daa29232162010d952ceb7e5ca8e2827526aceae \ + --hash=sha256:6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34 \ + --hash=sha256:7efe8041897fe7a50863e51b77789b657a133c75c3b094e51b5e4b5cec7bf906 \ + --hash=sha256:84537453d57f55a50a5b6835622ee405816999a7113267739a1b4581f83535bd \ + --hash=sha256:8f09daa483aedea50d249ef98ed500569841d6498aa9c9f4b0531b9964658922 \ + --hash=sha256:95dd7f261bb76948b52a5330ba5202b91a26fbac13ad0e9fc8a3ac04752058c7 \ + --hash=sha256:a74fbcdb2a0d46fe00504f571a2a540532f4c188e6ccf26f1f178480117b33c4 \ + --hash=sha256:a983e441a00a9d57a4d7c91b3116a37ae602907a7618b882c8013b5762e80574 \ + --hash=sha256:ab8de0d091acbf778f74286f4989cf3d1528336af1b59f3e5d2ebca8b5fe49e1 \ + --hash=sha256:aeb57c421b34af8f9fe830e1955bf493a86a7996cc1338fe41b30047d16e962c \ + --hash=sha256:ce785cf81a7bdade534297ef9e490ddff800d956625020ab2ec2780a556c313e \ + --hash=sha256:d0d651aa754ef58d75cec6edfbd21259d93810b73f6ec246436a21b7841908de # via # gcp-releasetool # secretstorage From cf1675ffc25f562b8ea64af5c639a614e7a7c85e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Dec 2023 23:39:52 +0100 Subject: [PATCH 1635/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.30.1 (#1841) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ed69c0ed2e6b..5c1280ed127d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.29.1 + 2.30.1
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3cc2a229ed98..7d10cee54f07 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.29.1 + 2.30.1
    From 97464e455d297d6024597b296b932b3dc080c5c1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Dec 2023 16:26:36 +0100 Subject: [PATCH 1636/2363] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.2.3 (#1848) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.2.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6edc0987fddb..bc24174764e0 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.28.0') +implementation platform('com.google.cloud:libraries-bom:26.29.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index ee24544d06c0..d658bba3f3ce 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.2.2 + 3.2.3 **/*IT From 318e783c2acc292cde4a3cc315956ee2c2c51f91 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Dec 2023 16:26:54 +0100 Subject: [PATCH 1637/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.29.0 (#1847) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.29.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bc24174764e0..e8765d4adfc0 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.28.0 + 26.29.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index d658bba3f3ce..c8318500983a 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.28.0 + 26.29.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 75d49362377e..58cbe0e1d88f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.28.0 + 26.29.0 pom import From a5a417ca1913043837203cdd1fd42d5a697f0da4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Dec 2023 16:27:10 +0100 Subject: [PATCH 1638/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.1 (#1845) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.1 * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fa186be44ce7..39714920a7cb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.6.1 + 1.7.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f6022a64f68f..37f0920a1b55 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.6.1 + 1.7.1 From 3d53252b696b763c0181ce2d44f86a55434d43e1 Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Tue, 19 Dec 2023 14:53:28 -0500 Subject: [PATCH 1639/2363] fix: Swap writer and reader schema to correct places in sample (#1849) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Minor fixes for comments * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Fix rollback example * Formatting * Formatting and wording fixes * Add new schemas to test directory * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Samples: Fix exception handling * fix: Set x-goog-request-params for streaming pull request * Revert "fix: Set x-goog-request-params for streaming pull request" This reverts commit 3185a3e9d48680d75cc70745f7ea0048d726556b. * Revert "Revert "fix: Set x-goog-request-params for streaming pull request"" This reverts commit 3b1f4d9c0751a8fa676159842208b4213d764ee6. * Thread example * Add examples for limited and unlimited exeuctors * Add back missing semicolon * Revert changes to original async example * Revert changes to original async example * Add examples of different threading models * Make variables final to conform to style. * Fix catches * Fix ids * Fix naming * Revert "Merge pull request #2 from kamalaboulhosn/ML_experiments" This reverts commit 5a435fad03f8c5bc577906ef0088b9899c2963cd, reversing changes made to c3a572560f74fa8e10b7f354352bdd736e6f58aa. * Set blunderbuss config to auto-assign issues and PRs * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: Swap writer and reader schema to correct places in sample * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java index 6c2d31efee28..20486700634a 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java @@ -93,7 +93,7 @@ public static void subscribeWithAvroSchemaRevisionsExample( Schema schema = schemaServiceClient.getSchema(name + "@" + revision); org.apache.avro.Schema avroSchema = new org.apache.avro.Schema.Parser().parse(schema.getDefinition()); - reader = new SpecificDatumReader(State.getClassSchema(), avroSchema); + reader = new SpecificDatumReader(avroSchema, State.getClassSchema()); synchronized (revisionReaders) { revisionReaders.put(revision, reader); } From e5db1cd9c71d7c5d40ae73ef14319d2bea252676 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 2 Jan 2024 18:08:38 +0100 Subject: [PATCH 1640/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.5.0 (#1823) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 37f0920a1b55..35c62bf6babd 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.4.5 + 3.5.0 From 3fd6e7c4d23bb72e69816944ceb5ae1da342eb39 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 2 Jan 2024 18:08:57 +0100 Subject: [PATCH 1641/2363] test(deps): update dependency com.google.truth:truth to v1.2.0 (#1850) --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 35c62bf6babd..74e8531a44c3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.1.5 + 1.2.0 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5c1280ed127d..bedd4b707676 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.1.5 + 1.2.0 test diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index c8318500983a..d7dfc9687302 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.1.5 + 1.2.0 test
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7d10cee54f07..a19040f745a9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.1.5 + 1.2.0 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 58cbe0e1d88f..ba9075966a9e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.1.5 + 1.2.0 test From 097ba2b2d4077eb90edebe84dd5d88500a836c7e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 5 Jan 2024 10:37:33 -0500 Subject: [PATCH 1642/2363] build(deps): bump cryptography from 41.0.3 to 41.0.6 in /synthtool/gcp/templates/java_library/.kokoro (#1908) (#1843) build(deps): bump cryptography Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.3 to 41.0.6. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/41.0.3...41.0.6) --- updated-dependencies: - dependency-name: cryptography dependency-type: indirect ... Source-Link: https://github.com/googleapis/synthtool/commit/ea6f80056a7d22f4d3a3e8fee2d59cdc746470bd Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:81f75d962cd28b7ad10740a643b8069b8fa0357cb495b782eef8560bb7a8fd65 Signed-off-by: dependabot[bot] Co-authored-by: Owl Bot Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Diego Marquez --- java-pubsub/.github/.OwlBot.lock.yaml | 4 +-- java-pubsub/.kokoro/requirements.txt | 48 +++++++++++++-------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 31c6fe5f1329..f56920557239 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:11d59eabd49dc088f8339fb96e9da79ba4b3a73b3d49a8a4e0263e91edd053ba -# created: 2023-12-05T18:46:43.811070085Z + digest: sha256:81f75d962cd28b7ad10740a643b8069b8fa0357cb495b782eef8560bb7a8fd65 +# created: 2023-12-05T19:16:19.735195992Z diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt index 6a36ccab4637..445c5c1f0929 100644 --- a/java-pubsub/.kokoro/requirements.txt +++ b/java-pubsub/.kokoro/requirements.txt @@ -170,30 +170,30 @@ colorlog==6.7.0 \ --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 # via gcp-docuploader -cryptography==41.0.3 \ - --hash=sha256:0d09fb5356f975974dbcb595ad2d178305e5050656affb7890a1583f5e02a306 \ - --hash=sha256:23c2d778cf829f7d0ae180600b17e9fceea3c2ef8b31a99e3c694cbbf3a24b84 \ - --hash=sha256:3fb248989b6363906827284cd20cca63bb1a757e0a2864d4c1682a985e3dca47 \ - --hash=sha256:41d7aa7cdfded09b3d73a47f429c298e80796c8e825ddfadc84c8a7f12df212d \ - --hash=sha256:42cb413e01a5d36da9929baa9d70ca90d90b969269e5a12d39c1e0d475010116 \ - --hash=sha256:4c2f0d35703d61002a2bbdcf15548ebb701cfdd83cdc12471d2bae80878a4207 \ - --hash=sha256:4fd871184321100fb400d759ad0cddddf284c4b696568204d281c902fc7b0d81 \ - --hash=sha256:5259cb659aa43005eb55a0e4ff2c825ca111a0da1814202c64d28a985d33b087 \ - --hash=sha256:57a51b89f954f216a81c9d057bf1a24e2f36e764a1ca9a501a6964eb4a6800dd \ - --hash=sha256:652627a055cb52a84f8c448185922241dd5217443ca194d5739b44612c5e6507 \ - --hash=sha256:67e120e9a577c64fe1f611e53b30b3e69744e5910ff3b6e97e935aeb96005858 \ - --hash=sha256:6af1c6387c531cd364b72c28daa29232162010d952ceb7e5ca8e2827526aceae \ - --hash=sha256:6d192741113ef5e30d89dcb5b956ef4e1578f304708701b8b73d38e3e1461f34 \ - --hash=sha256:7efe8041897fe7a50863e51b77789b657a133c75c3b094e51b5e4b5cec7bf906 \ - --hash=sha256:84537453d57f55a50a5b6835622ee405816999a7113267739a1b4581f83535bd \ - --hash=sha256:8f09daa483aedea50d249ef98ed500569841d6498aa9c9f4b0531b9964658922 \ - --hash=sha256:95dd7f261bb76948b52a5330ba5202b91a26fbac13ad0e9fc8a3ac04752058c7 \ - --hash=sha256:a74fbcdb2a0d46fe00504f571a2a540532f4c188e6ccf26f1f178480117b33c4 \ - --hash=sha256:a983e441a00a9d57a4d7c91b3116a37ae602907a7618b882c8013b5762e80574 \ - --hash=sha256:ab8de0d091acbf778f74286f4989cf3d1528336af1b59f3e5d2ebca8b5fe49e1 \ - --hash=sha256:aeb57c421b34af8f9fe830e1955bf493a86a7996cc1338fe41b30047d16e962c \ - --hash=sha256:ce785cf81a7bdade534297ef9e490ddff800d956625020ab2ec2780a556c313e \ - --hash=sha256:d0d651aa754ef58d75cec6edfbd21259d93810b73f6ec246436a21b7841908de +cryptography==41.0.6 \ + --hash=sha256:068bc551698c234742c40049e46840843f3d98ad7ce265fd2bd4ec0d11306596 \ + --hash=sha256:0f27acb55a4e77b9be8d550d762b0513ef3fc658cd3eb15110ebbcbd626db12c \ + --hash=sha256:2132d5865eea673fe6712c2ed5fb4fa49dba10768bb4cc798345748380ee3660 \ + --hash=sha256:3288acccef021e3c3c10d58933f44e8602cf04dba96d9796d70d537bb2f4bbc4 \ + --hash=sha256:35f3f288e83c3f6f10752467c48919a7a94b7d88cc00b0668372a0d2ad4f8ead \ + --hash=sha256:398ae1fc711b5eb78e977daa3cbf47cec20f2c08c5da129b7a296055fbb22aed \ + --hash=sha256:422e3e31d63743855e43e5a6fcc8b4acab860f560f9321b0ee6269cc7ed70cc3 \ + --hash=sha256:48783b7e2bef51224020efb61b42704207dde583d7e371ef8fc2a5fb6c0aabc7 \ + --hash=sha256:4d03186af98b1c01a4eda396b137f29e4e3fb0173e30f885e27acec8823c1b09 \ + --hash=sha256:5daeb18e7886a358064a68dbcaf441c036cbdb7da52ae744e7b9207b04d3908c \ + --hash=sha256:60e746b11b937911dc70d164060d28d273e31853bb359e2b2033c9e93e6f3c43 \ + --hash=sha256:742ae5e9a2310e9dade7932f9576606836ed174da3c7d26bc3d3ab4bd49b9f65 \ + --hash=sha256:7e00fb556bda398b99b0da289ce7053639d33b572847181d6483ad89835115f6 \ + --hash=sha256:85abd057699b98fce40b41737afb234fef05c67e116f6f3650782c10862c43da \ + --hash=sha256:8efb2af8d4ba9dbc9c9dd8f04d19a7abb5b49eab1f3694e7b5a16a5fc2856f5c \ + --hash=sha256:ae236bb8760c1e55b7a39b6d4d32d2279bc6c7c8500b7d5a13b6fb9fc97be35b \ + --hash=sha256:afda76d84b053923c27ede5edc1ed7d53e3c9f475ebaf63c68e69f1403c405a8 \ + --hash=sha256:b27a7fd4229abef715e064269d98a7e2909ebf92eb6912a9603c7e14c181928c \ + --hash=sha256:b648fe2a45e426aaee684ddca2632f62ec4613ef362f4d681a9a6283d10e079d \ + --hash=sha256:c5a550dc7a3b50b116323e3d376241829fd326ac47bc195e04eb33a8170902a9 \ + --hash=sha256:da46e2b5df770070412c46f87bac0849b8d685c5f2679771de277a422c7d0b86 \ + --hash=sha256:f39812f70fc5c71a15aa3c97b2bbe213c3f2a460b79bd21c40d033bb34a9bf36 \ + --hash=sha256:ff369dd19e8fe0528b02e8df9f2aeb2479f89b1270d90f96a63500afe9af5cae # via # gcp-releasetool # secretstorage From 04d45bcbd8c4ead872c9bf6b4c63b41e231f943d Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Fri, 5 Jan 2024 14:40:45 -0500 Subject: [PATCH 1643/2363] fix: Use message ordering enabled property that comes with streaming pull responses (#1851) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Minor fixes for comments * samples: Schema evolution (#1499) * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Add back in working asserts * Formatting fixes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Version/delete fixes * samples: schema evolution * samples: schema evolution * Format fixes * Fix documentation for field. * Add back in working asserts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Formatting fixes * Version/delete fixes --------- Co-authored-by: Owl Bot * Fix rollback example * Formatting * Formatting and wording fixes * Add new schemas to test directory * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Samples: Fix exception handling * fix: Set x-goog-request-params for streaming pull request * Revert "fix: Set x-goog-request-params for streaming pull request" This reverts commit 3185a3e9d48680d75cc70745f7ea0048d726556b. * Revert "Revert "fix: Set x-goog-request-params for streaming pull request"" This reverts commit 3b1f4d9c0751a8fa676159842208b4213d764ee6. * Thread example * Add examples for limited and unlimited exeuctors * Add back missing semicolon * Revert changes to original async example * Revert changes to original async example * Add examples of different threading models * Make variables final to conform to style. * Fix catches * Fix ids * Fix naming * Revert "Merge pull request #2 from kamalaboulhosn/ML_experiments" This reverts commit 5a435fad03f8c5bc577906ef0088b9899c2963cd, reversing changes made to c3a572560f74fa8e10b7f354352bdd736e6f58aa. * Set blunderbuss config to auto-assign issues and PRs * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: Swap writer and reader schema to correct places in sample * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: Use message ordering enabled property that comes with streaming pull responses so that messages are only delivered to the callback one at a time in order when ordering is actually enabled --------- Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/MessageDispatcher.java | 8 +- .../v1/StreamingSubscriberConnection.java | 3 + .../pubsub/v1/MessageDispatcherTest.java | 119 +++++++++++++++++- 3 files changed, 124 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index b257594ea536..635bc92d53f2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -82,6 +82,7 @@ class MessageDispatcher { private final FlowController flowController; private AtomicBoolean exactlyOnceDeliveryEnabled = new AtomicBoolean(false); + private AtomicBoolean messageOrderingEnabled = new AtomicBoolean(false); private final Waiter messagesWaiter; @@ -343,6 +344,11 @@ void setExactlyOnceDeliveryEnabled(boolean exactlyOnceDeliveryEnabled) { } } + @InternalApi + void setMessageOrderingEnabled(boolean messageOrderingEnabled) { + this.messageOrderingEnabled.set(messageOrderingEnabled); + } + private static class OutstandingMessage { private final ReceivedMessage receivedMessage; private final AckHandler ackHandler; @@ -506,7 +512,7 @@ public void run() { } } }; - if (message.getOrderingKey().isEmpty()) { + if (!messageOrderingEnabled.get() || message.getOrderingKey().isEmpty()) { executor.execute(deliverMessageTask); } else { sequentialExecutor.submit(message.getOrderingKey(), deliverMessageTask); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 014771f2a248..7849bdb74df9 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -236,9 +236,12 @@ public void onResponse(StreamingPullResponse response) { boolean exactlyOnceDeliveryEnabledResponse = response.getSubscriptionProperties().getExactlyOnceDeliveryEnabled(); + boolean messageOrderingEnabledResponse = + response.getSubscriptionProperties().getMessageOrderingEnabled(); setExactlyOnceDeliveryEnabled(exactlyOnceDeliveryEnabledResponse); messageDispatcher.setExactlyOnceDeliveryEnabled(exactlyOnceDeliveryEnabledResponse); + messageDispatcher.setMessageOrderingEnabled(messageOrderingEnabledResponse); messageDispatcher.processReceivedMessages(response.getReceivedMessagesList()); // Only request more if we're not shutdown. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 9321272b41aa..c608ee8d5c1a 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -30,18 +30,41 @@ import java.util.concurrent.*; import org.junit.Before; import org.junit.Test; +import org.mockito.invocation.InvocationOnMock; +import org.mockito.stubbing.Answer; import org.threeten.bp.Duration; public class MessageDispatcherTest { private static final ByteString MESSAGE_DATA = ByteString.copyFromUtf8("message-data"); private static final int DELIVERY_INFO_COUNT = 3; private static final String ACK_ID = "ACK-ID"; + private static final String ORDERING_KEY = "KEY"; private static final ReceivedMessage TEST_MESSAGE = ReceivedMessage.newBuilder() .setAckId(ACK_ID) .setMessage(PubsubMessage.newBuilder().setData(MESSAGE_DATA).build()) .setDeliveryAttempt(DELIVERY_INFO_COUNT) .build(); + private static final ByteString ORDERED_MESSAGE_DATA_1 = ByteString.copyFromUtf8("message-data1"); + private static final ReceivedMessage ORDERED_TEST_MESSAGE_1 = + ReceivedMessage.newBuilder() + .setAckId("ACK-ID-1") + .setMessage( + PubsubMessage.newBuilder() + .setData(ORDERED_MESSAGE_DATA_1) + .setOrderingKey(ORDERING_KEY) + .build()) + .build(); + private static final ByteString ORDERED_MESSAGE_DATA_2 = ByteString.copyFromUtf8("message-data2"); + private static final ReceivedMessage ORDERED_TEST_MESSAGE_2 = + ReceivedMessage.newBuilder() + .setAckId("ACK-ID-2") + .setMessage( + PubsubMessage.newBuilder() + .setData(ORDERED_MESSAGE_DATA_2) + .setOrderingKey(ORDERING_KEY) + .build()) + .build(); private static final int MAX_SECONDS_PER_ACK_EXTENSION = 60; private static final int MIN_ACK_DEADLINE_SECONDS = 10; private static final Duration MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); @@ -494,6 +517,84 @@ public void testAckExtensionDefaultsExactlyOnceDeliveryEnabledThenDisabled() { Math.toIntExact(Subscriber.MAX_STREAM_ACK_DEADLINE.getSeconds())); } + @Test + public void testOrderedDeliveryOrderingDisabled() throws Exception { + MessageReceiver mockMessageReceiver = mock(MessageReceiver.class); + MessageDispatcher messageDispatcher = + getMessageDispatcher(mockMessageReceiver, Executors.newFixedThreadPool(5)); + + // This would normally be set from the streaming pull response in the + // StreamingSubscriberConnection + messageDispatcher.setMessageOrderingEnabled(false); + + CountDownLatch receiveCalls = new CountDownLatch(2); + + doAnswer( + new Answer() { + public Void answer(InvocationOnMock invocation) throws Exception { + Thread.sleep(1000); + receiveCalls.countDown(); + return null; + } + }) + .when(mockMessageReceiver) + .receiveMessage(eq(ORDERED_TEST_MESSAGE_1.getMessage()), any(AckReplyConsumer.class)); + doAnswer( + new Answer() { + public Void answer(InvocationOnMock invocation) { + // Ensure the previous method didn't finish and we could process in parallel. + assertEquals(2, receiveCalls.getCount()); + receiveCalls.countDown(); + return null; + } + }) + .when(mockMessageReceiver) + .receiveMessage(eq(ORDERED_TEST_MESSAGE_2.getMessage()), any(AckReplyConsumer.class)); + + messageDispatcher.processReceivedMessages( + Arrays.asList(ORDERED_TEST_MESSAGE_1, ORDERED_TEST_MESSAGE_2)); + receiveCalls.await(); + } + + @Test + public void testOrderedDeliveryOrderingEnabled() throws Exception { + MessageReceiver mockMessageReceiver = mock(MessageReceiver.class); + MessageDispatcher messageDispatcher = + getMessageDispatcher(mockMessageReceiver, Executors.newFixedThreadPool(5)); + + // This would normally be set from the streaming pull response in the + // StreamingSubscriberConnection + messageDispatcher.setMessageOrderingEnabled(true); + + CountDownLatch receiveCalls = new CountDownLatch(2); + + doAnswer( + new Answer() { + public Void answer(InvocationOnMock invocation) throws Exception { + Thread.sleep(1000); + receiveCalls.countDown(); + return null; + } + }) + .when(mockMessageReceiver) + .receiveMessage(eq(ORDERED_TEST_MESSAGE_1.getMessage()), any(AckReplyConsumer.class)); + doAnswer( + new Answer() { + public Void answer(InvocationOnMock invocation) { + // Ensure the previous method has finished completely. + assertEquals(1, receiveCalls.getCount()); + receiveCalls.countDown(); + return null; + } + }) + .when(mockMessageReceiver) + .receiveMessage(eq(ORDERED_TEST_MESSAGE_2.getMessage()), any(AckReplyConsumer.class)); + + messageDispatcher.processReceivedMessages( + Arrays.asList(ORDERED_TEST_MESSAGE_1, ORDERED_TEST_MESSAGE_2)); + receiveCalls.await(); + } + @Test public void testAckExtensionCustomMinExactlyOnceDeliveryDisabledThenEnabled() { int customMinSeconds = 30; @@ -569,20 +670,28 @@ private void assertMinAndMaxAckDeadlines( } private MessageDispatcher getMessageDispatcher() { - return getMessageDispatcher(mock(MessageReceiver.class)); + return getMessageDispatcher(mock(MessageReceiver.class), MoreExecutors.directExecutor()); } private MessageDispatcher getMessageDispatcher(MessageReceiver messageReceiver) { - return getMessageDispatcherFromBuilder(MessageDispatcher.newBuilder(messageReceiver)); + return getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiver), MoreExecutors.directExecutor()); + } + + private MessageDispatcher getMessageDispatcher( + MessageReceiver messageReceiver, Executor executor) { + return getMessageDispatcherFromBuilder(MessageDispatcher.newBuilder(messageReceiver), executor); } private MessageDispatcher getMessageDispatcher( MessageReceiverWithAckResponse messageReceiverWithAckResponse) { return getMessageDispatcherFromBuilder( - MessageDispatcher.newBuilder(messageReceiverWithAckResponse)); + MessageDispatcher.newBuilder(messageReceiverWithAckResponse), + MoreExecutors.directExecutor()); } - private MessageDispatcher getMessageDispatcherFromBuilder(MessageDispatcher.Builder builder) { + private MessageDispatcher getMessageDispatcherFromBuilder( + MessageDispatcher.Builder builder, Executor executor) { MessageDispatcher messageDispatcher = builder .setAckProcessor(mockAckProcessor) @@ -594,7 +703,7 @@ private MessageDispatcher getMessageDispatcherFromBuilder(MessageDispatcher.Buil .setMaxDurationPerAckExtensionDefaultUsed(true) .setAckLatencyDistribution(mock(Distribution.class)) .setFlowController(mock(FlowController.class)) - .setExecutor(MoreExecutors.directExecutor()) + .setExecutor(executor) .setSystemExecutor(systemExecutor) .setApiClock(clock) .build(); From 7159ad0cabd39a04a8de76c0d1983bd771683abe Mon Sep 17 00:00:00 2001 From: hannahrogers-google <52459909+hannahrogers-google@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:19:27 -0800 Subject: [PATCH 1644/2363] fix: temporarily remove publisher tests causing timeouts (#1860) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update PublisherImplTest.java * Update PublisherImplTest.java * Update PublisherImplTest.java * Update PublisherImplTest.java * Update PublisherImplTest.java * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Update PublisherImplTest.java * Update PublisherImplTest.java * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Update PublisherImplTest.java * Update PublisherImplTest.java * Update PublisherImplTest.java * Update PublisherImplTest.java * Update PublisherImplTest.java * Update PublisherImplTest.java * Update PublisherImplTest.java * Update PublisherImplTest.java * Update PublisherImplTest.java * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Update PublisherImplTest.java * fix: temporarily remove publisher tests causing timeouts * Update PublisherImplTest.java --------- Co-authored-by: Owl Bot --- .../google/cloud/pubsub/v1/PublisherImplTest.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 9985efc6be87..9785b7716c29 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -56,7 +56,6 @@ import java.util.concurrent.TimeUnit; import org.easymock.EasyMock; import org.junit.After; -import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -501,7 +500,6 @@ public void testEnableMessageOrdering_overwritesMaxAttempts() throws Exception { assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES)); } - @Test /** * Make sure that resume publishing works as expected: * @@ -513,6 +511,10 @@ public void testEnableMessageOrdering_overwritesMaxAttempts() throws Exception { *
  • publish with key orderA, which should now succeed * */ + /* + Temporarily disabled due to https://github.com/googleapis/java-pubsub/issues/1861. + TODO(maitrimangal): Enable once resolved. + @Test public void testResumePublish() throws Exception { Publisher publisher = getTestPublisherBuilder() @@ -538,13 +540,13 @@ public void testResumePublish() throws Exception { try { future1.get(); - Assert.fail("This should fail."); + fail("This should fail."); } catch (ExecutionException e) { } try { future2.get(); - Assert.fail("This should fail."); + fail("This should fail."); } catch (ExecutionException e) { } @@ -554,14 +556,14 @@ public void testResumePublish() throws Exception { try { future3.get(); - Assert.fail("This should fail."); + fail("This should fail."); } catch (ExecutionException e) { assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause()); } try { future4.get(); - Assert.fail("This should fail."); + fail("This should fail."); } catch (ExecutionException e) { assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause()); } @@ -641,6 +643,7 @@ public void testPublishThrowExceptionForUnsubmittedOrderingKeyMessage() throws E assertEquals(SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION, e.getCause()); } } + */ private ApiFuture sendTestMessageWithOrderingKey( Publisher publisher, String data, String orderingKey) { From a380ece6398204b0d6adaf3075decc3cc48a613b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 13 Jan 2024 00:31:55 +0100 Subject: [PATCH 1645/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.21.0 (#1854) Co-authored-by: Tomo Suzuki --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 74e8531a44c3..da62fb89f8ee 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.20.0 + 3.21.0 pom import From 73e5029d0360e7257e2a36f5bd6f9fee9620057c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:01:19 -0500 Subject: [PATCH 1646/2363] fix(deps): Update the Java code generator (gapic-generator-java) to 2.31.0 (#1855) --- .../cloud/pubsub/v1/SchemaServiceClient.java | 252 +++++++++++- .../pubsub/v1/SubscriptionAdminClient.java | 364 +++++++++++++++++- .../cloud/pubsub/v1/TopicAdminClient.java | 233 ++++++++++- .../pubsub/v1/stub/PublisherStubSettings.java | 6 + .../v1/stub/SchemaServiceStubSettings.java | 6 + .../v1/stub/SubscriberStubSettings.java | 6 + 6 files changed, 828 insertions(+), 39 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 2bf0c15f2f8c..ddc98a2f0ae2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -79,19 +79,245 @@ *

    Note: close() needs to be called on the SchemaServiceClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

    The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

      - *
    1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
    2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
    3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
    + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Methods
    MethodDescriptionMethod Variants
    CreateSchema

    Creates a schema.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • createSchema(CreateSchemaRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • createSchema(ProjectName parent, Schema schema, String schemaId) + *
    • createSchema(String parent, Schema schema, String schemaId) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • createSchemaCallable() + *
    + *
    GetSchema

    Gets a schema.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • getSchema(GetSchemaRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • getSchema(SchemaName name) + *
    • getSchema(String name) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • getSchemaCallable() + *
    + *
    ListSchemas

    Lists schemas in a project.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • listSchemas(ListSchemasRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • listSchemas(ProjectName parent) + *
    • listSchemas(String parent) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • listSchemasPagedCallable() + *
    • listSchemasCallable() + *
    + *
    ListSchemaRevisions

    Lists all schema revisions for the named schema.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • listSchemaRevisions(ListSchemaRevisionsRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • listSchemaRevisions(SchemaName name) + *
    • listSchemaRevisions(String name) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • listSchemaRevisionsPagedCallable() + *
    • listSchemaRevisionsCallable() + *
    + *
    CommitSchema

    Commits a new schema revision to an existing schema.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • commitSchema(CommitSchemaRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • commitSchema(SchemaName name, Schema schema) + *
    • commitSchema(String name, Schema schema) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • commitSchemaCallable() + *
    + *
    RollbackSchema

    Creates a new schema revision that is a copy of the provided revision_id.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • rollbackSchema(RollbackSchemaRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • rollbackSchema(SchemaName name, String revisionId) + *
    • rollbackSchema(String name, String revisionId) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • rollbackSchemaCallable() + *
    + *
    DeleteSchemaRevision

    Deletes a specific schema revision.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • deleteSchemaRevision(DeleteSchemaRevisionRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • deleteSchemaRevision(SchemaName name, String revisionId) + *
    • deleteSchemaRevision(String name, String revisionId) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • deleteSchemaRevisionCallable() + *
    + *
    DeleteSchema

    Deletes a schema.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • deleteSchema(DeleteSchemaRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • deleteSchema(SchemaName name) + *
    • deleteSchema(String name) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • deleteSchemaCallable() + *
    + *
    ValidateSchema

    Validates a schema.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • validateSchema(ValidateSchemaRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • validateSchema(ProjectName parent, Schema schema) + *
    • validateSchema(String parent, Schema schema) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • validateSchemaCallable() + *
    + *
    ValidateMessage

    Validates a message against a schema.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • validateMessage(ValidateMessageRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • validateMessageCallable() + *
    + *
    SetIamPolicy

    Sets the access control policy on the specified resource. Replacesany existing policy. + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • setIamPolicy(SetIamPolicyRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • setIamPolicyCallable() + *
    + *
    GetIamPolicy

    Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • getIamPolicy(GetIamPolicyRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • getIamPolicyCallable() + *
    + *
    TestIamPermissions

    Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

    Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • testIamPermissions(TestIamPermissionsRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • testIamPermissionsCallable() + *
    + *
    * *

    See the individual methods for example code. * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 068970f64f1b..e7617298c763 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -99,19 +99,357 @@ * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). * - *

    The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

      - *
    1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
    2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
    3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
    + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Methods
    MethodDescriptionMethod Variants
    CreateSubscription

    Creates a subscription to a given topic. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). 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] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Subscription object. Note that for REST API requests, you must specify a name in the request.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • createSubscription(Subscription request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • createSubscription(SubscriptionName name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) + *
    • createSubscription(SubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) + *
    • createSubscription(String name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) + *
    • createSubscription(String name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • createSubscriptionCallable() + *
    + *
    GetSubscription

    Gets the configuration details of a subscription.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • getSubscription(GetSubscriptionRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • getSubscription(SubscriptionName subscription) + *
    • getSubscription(String subscription) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • getSubscriptionCallable() + *
    + *
    UpdateSubscription

    Updates an existing subscription. Note that certain properties of a subscription, such as its topic, are not modifiable.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • updateSubscription(UpdateSubscriptionRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • updateSubscription(Subscription subscription, FieldMask updateMask) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • updateSubscriptionCallable() + *
    + *
    ListSubscriptions

    Lists matching subscriptions.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • listSubscriptions(ListSubscriptionsRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • listSubscriptions(ProjectName project) + *
    • listSubscriptions(String project) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • listSubscriptionsPagedCallable() + *
    • listSubscriptionsCallable() + *
    + *
    DeleteSubscription

    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.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • deleteSubscription(DeleteSubscriptionRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • deleteSubscription(SubscriptionName subscription) + *
    • deleteSubscription(String subscription) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • deleteSubscriptionCallable() + *
    + *
    ModifyAckDeadline

    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.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • modifyAckDeadline(ModifyAckDeadlineRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • modifyAckDeadline(SubscriptionName subscription, List<String> ackIds, int ackDeadlineSeconds) + *
    • modifyAckDeadline(String subscription, List<String> ackIds, int ackDeadlineSeconds) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • modifyAckDeadlineCallable() + *
    + *
    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.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • acknowledge(AcknowledgeRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • acknowledge(SubscriptionName subscription, List<String> ackIds) + *
    • acknowledge(String subscription, List<String> ackIds) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • acknowledgeCallable() + *
    + *
    Pull

    Pulls messages from the server.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • pull(PullRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • pull(SubscriptionName subscription, int maxMessages) + *
    • pull(String subscription, int maxMessages) + *
    • pull(SubscriptionName subscription, boolean returnImmediately, int maxMessages) + *
    • pull(String subscription, boolean returnImmediately, int maxMessages) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • pullCallable() + *
    + *
    StreamingPull

    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.

    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • streamingPullCallable() + *
    + *
    ModifyPushConfig

    Modifies the `PushConfig` for a specified subscription. + *

    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`.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • modifyPushConfig(ModifyPushConfigRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • modifyPushConfig(SubscriptionName subscription, PushConfig pushConfig) + *
    • modifyPushConfig(String subscription, PushConfig pushConfig) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • modifyPushConfigCallable() + *
    + *
    GetSnapshot

    Gets the configuration details of a snapshot. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • getSnapshot(GetSnapshotRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • getSnapshot(SnapshotName snapshot) + *
    • getSnapshot(String snapshot) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • getSnapshotCallable() + *
    + *
    ListSnapshots

    Lists the existing snapshots. Snapshots are used in [Seek]( https://cloud.google.com/pubsub/docs/replay-overview) 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.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • listSnapshots(ListSnapshotsRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • listSnapshots(ProjectName project) + *
    • listSnapshots(String project) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • listSnapshotsPagedCallable() + *
    • listSnapshotsCallable() + *
    + *
    CreateSnapshot

    Creates a snapshot from the requested subscription. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Snapshot object. Note that for REST API requests, you must specify a name in the request.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • createSnapshot(CreateSnapshotRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • createSnapshot(SnapshotName name, SubscriptionName subscription) + *
    • createSnapshot(SnapshotName name, String subscription) + *
    • createSnapshot(String name, SubscriptionName subscription) + *
    • createSnapshot(String name, String subscription) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • createSnapshotCallable() + *
    + *
    UpdateSnapshot

    Updates an existing snapshot. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • updateSnapshot(UpdateSnapshotRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • updateSnapshot(Snapshot snapshot, FieldMask updateMask) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • updateSnapshotCallable() + *
    + *
    DeleteSnapshot

    Removes an existing snapshot. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) 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. When the snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with the same name, but the new one has no association with the old snapshot or its subscription, unless the same subscription is specified.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • deleteSnapshot(DeleteSnapshotRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • deleteSnapshot(SnapshotName snapshot) + *
    • deleteSnapshot(String snapshot) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • deleteSnapshotCallable() + *
    + *
    Seek

    Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided in the request. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the snapshot must be on the same topic.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • seek(SeekRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • seekCallable() + *
    + *
    SetIamPolicy

    Sets the access control policy on the specified resource. Replacesany existing policy. + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • setIamPolicy(SetIamPolicyRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • setIamPolicyCallable() + *
    + *
    GetIamPolicy

    Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • getIamPolicy(GetIamPolicyRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • getIamPolicyCallable() + *
    + *
    TestIamPermissions

    Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

    Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • testIamPermissions(TestIamPermissionsRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • testIamPermissionsCallable() + *
    + *
    * *

    See the individual methods for example code. * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index b1f0dc35fe26..4e265258505b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -80,19 +80,226 @@ *

    Note: close() needs to be called on the TopicAdminClient object to clean up resources such as * threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

    The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

      - *
    1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
    2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
    3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
    + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Methods
    MethodDescriptionMethod Variants
    CreateTopic

    Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • createTopic(Topic request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • createTopic(TopicName name) + *
    • createTopic(String name) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • createTopicCallable() + *
    + *
    UpdateTopic

    Updates an existing topic. Note that certain properties of a topic are not modifiable.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • updateTopic(UpdateTopicRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • updateTopic(Topic topic, FieldMask updateMask) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • updateTopicCallable() + *
    + *
    Publish

    Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • publish(PublishRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • publish(TopicName topic, List<PubsubMessage> messages) + *
    • publish(String topic, List<PubsubMessage> messages) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • publishCallable() + *
    + *
    GetTopic

    Gets the configuration of a topic.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • getTopic(GetTopicRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • getTopic(TopicName topic) + *
    • getTopic(String topic) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • getTopicCallable() + *
    + *
    ListTopics

    Lists matching topics.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • listTopics(ListTopicsRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • listTopics(ProjectName project) + *
    • listTopics(String project) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • listTopicsPagedCallable() + *
    • listTopicsCallable() + *
    + *
    ListTopicSubscriptions

    Lists the names of the attached subscriptions on this topic.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • listTopicSubscriptions(ListTopicSubscriptionsRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • listTopicSubscriptions(TopicName topic) + *
    • listTopicSubscriptions(String topic) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • listTopicSubscriptionsPagedCallable() + *
    • listTopicSubscriptionsCallable() + *
    + *
    ListTopicSnapshots

    Lists the names of the snapshots on this topic. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • listTopicSnapshots(ListTopicSnapshotsRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • listTopicSnapshots(TopicName topic) + *
    • listTopicSnapshots(String topic) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • listTopicSnapshotsPagedCallable() + *
    • listTopicSnapshotsCallable() + *
    + *
    DeleteTopic

    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_`.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • deleteTopic(DeleteTopicRequest request) + *
    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • deleteTopic(TopicName topic) + *
    • deleteTopic(String topic) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • deleteTopicCallable() + *
    + *
    DetachSubscription

    Detaches a subscription from this topic. All messages retained in the subscription are dropped. Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the subscription is a push subscription, pushes to the endpoint will stop.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • detachSubscription(DetachSubscriptionRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • detachSubscriptionCallable() + *
    + *
    SetIamPolicy

    Sets the access control policy on the specified resource. Replacesany existing policy. + *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • setIamPolicy(SetIamPolicyRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • setIamPolicyCallable() + *
    + *
    GetIamPolicy

    Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • getIamPolicy(GetIamPolicyRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • getIamPolicyCallable() + *
    + *
    TestIamPermissions

    Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

    Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

    + *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    + *
      + *
    • testIamPermissions(TestIamPermissionsRequest request) + *
    + *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    + *
      + *
    • testIamPermissionsCallable() + *
    + *
    * *

    See the individual methods for example code. * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 73510eee061a..f3c49568898d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -480,6 +480,12 @@ public PublisherStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "pubsub"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 3be71b72af36..8b036328d2d1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -340,6 +340,12 @@ public SchemaServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "pubsub"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 459c80624fd3..c517f17d66a1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -385,6 +385,12 @@ public SubscriberStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "pubsub"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); From 32dfbdfa0791a4068052245dfa67a3d24d2628eb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 11:28:16 -0500 Subject: [PATCH 1647/2363] chore(main): release 1.126.0 (#1839) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 21 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 39 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 547b68d6bc86..091a7109bb74 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## [1.126.0](https://github.com/googleapis/java-pubsub/compare/v1.125.13...v1.126.0) (2024-01-13) + + +### Features + +* Add `use_table_schema` field to BigQueryConfig ([#1838](https://github.com/googleapis/java-pubsub/issues/1838)) ([8653f4f](https://github.com/googleapis/java-pubsub/commit/8653f4f3dbd61466b8ea05b342c5f66c9e536cf1)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.31.0 ([#1855](https://github.com/googleapis/java-pubsub/issues/1855)) ([7e733d2](https://github.com/googleapis/java-pubsub/commit/7e733d20093e0cd492758dd1ff3efc3a72eb1e0c)) +* Swap writer and reader schema to correct places in sample ([#1849](https://github.com/googleapis/java-pubsub/issues/1849)) ([1c79ad7](https://github.com/googleapis/java-pubsub/commit/1c79ad7336f51ffd4e177be5c2f2a7de902b47b8)) +* Temporarily remove publisher tests causing timeouts ([#1860](https://github.com/googleapis/java-pubsub/issues/1860)) ([a8fa24d](https://github.com/googleapis/java-pubsub/commit/a8fa24d7185d5345e746f8e2563afffe08f3bd6e)) +* Use message ordering enabled property that comes with streaming pull responses ([#1851](https://github.com/googleapis/java-pubsub/issues/1851)) ([d816138](https://github.com/googleapis/java-pubsub/commit/d8161380e232fd4be408e6298827423907a027fb)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.21.0 ([#1854](https://github.com/googleapis/java-pubsub/issues/1854)) ([b36825b](https://github.com/googleapis/java-pubsub/commit/b36825bf476f8bf83a7ca594932e03d06bc05f07)) +* Update dependency com.google.cloud:google-cloud-storage to v2.30.1 ([#1841](https://github.com/googleapis/java-pubsub/issues/1841)) ([d6f1352](https://github.com/googleapis/java-pubsub/commit/d6f1352ec3debe106ba238343c0c05b9278dc964)) + ## [1.125.13](https://github.com/googleapis/java-pubsub/compare/v1.125.12...v1.125.13) (2023-11-30) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 39714920a7cb..61460ed9af1b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.125.14-SNAPSHOT + 1.126.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.125.14-SNAPSHOT + 1.126.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.14-SNAPSHOT + 1.108.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.14-SNAPSHOT + 1.108.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5310f092afbe..f77782b401c1 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.125.14-SNAPSHOT + 1.126.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.125.14-SNAPSHOT + 1.126.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a3a9782dd791..f3e521109fd1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.14-SNAPSHOT + 1.108.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.14-SNAPSHOT + 1.126.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index da62fb89f8ee..7cf0b592e720 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.125.14-SNAPSHOT + 1.126.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.14-SNAPSHOT + 1.108.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.107.14-SNAPSHOT + 1.108.0 com.google.cloud google-cloud-pubsub - 1.125.14-SNAPSHOT + 1.126.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4dff24db31d4..e27b4d615a18 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.107.14-SNAPSHOT + 1.108.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.125.14-SNAPSHOT + 1.126.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a19040f745a9..bce5c7d4f05b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.125.14-SNAPSHOT + 1.126.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7dbf465fd215..101beca339dd 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.125.13:1.125.14-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.107.13:1.107.14-SNAPSHOT -proto-google-cloud-pubsub-v1:1.107.13:1.107.14-SNAPSHOT +google-cloud-pubsub:1.126.0:1.126.0 +grpc-google-cloud-pubsub-v1:1.108.0:1.108.0 +proto-google-cloud-pubsub-v1:1.108.0:1.108.0 From 632d2a4c659e20282a340d1b3b0d13c154183a00 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 16:42:17 +0000 Subject: [PATCH 1648/2363] chore(main): release 1.126.1-SNAPSHOT (#1862) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 61460ed9af1b..04408abfe221 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.0 + 1.126.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.0 + 1.126.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.0 + 1.108.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.0 + 1.108.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f77782b401c1..8c9a7687cad0 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.0 + 1.126.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.0 + 1.126.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f3e521109fd1..b8b3e3f1d897 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.0 + 1.108.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.0 + 1.126.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7cf0b592e720..4ffa585d601c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.0 + 1.126.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.0 + 1.108.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.0 + 1.108.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.0 + 1.126.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e27b4d615a18..d43ce584b090 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.0 + 1.108.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.0 + 1.126.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bce5c7d4f05b..3fe333e496ca 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.0 + 1.126.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 101beca339dd..67e7730ab995 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.0:1.126.0 -grpc-google-cloud-pubsub-v1:1.108.0:1.108.0 -proto-google-cloud-pubsub-v1:1.108.0:1.108.0 +google-cloud-pubsub:1.126.0:1.126.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.0:1.108.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.0:1.108.1-SNAPSHOT From 72f02a427eb28f83eb62ae8c7359e2ac6994a014 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 09:43:14 -0500 Subject: [PATCH 1649/2363] chore: Create renovate_config_check.yaml (#1920) (#1869) * chore: Create renovate_config_check.yaml Source-Link: https://github.com/googleapis/synthtool/commit/6612ab8f3afcd5e292aecd647f0fa68812c9f5b5 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 6 ++--- .../workflows/renovate_config_check.yaml | 25 +++++++++++++++++++ java-pubsub/README.md | 8 +++--- 3 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 java-pubsub/.github/workflows/renovate_config_check.yaml diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index f56920557239..dc05a72762fe 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -1,4 +1,4 @@ -# Copyright 2023 Google LLC +# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:81f75d962cd28b7ad10740a643b8069b8fa0357cb495b782eef8560bb7a8fd65 -# created: 2023-12-05T19:16:19.735195992Z + digest: sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc +# created: 2024-01-22T14:14:20.913785597Z diff --git a/java-pubsub/.github/workflows/renovate_config_check.yaml b/java-pubsub/.github/workflows/renovate_config_check.yaml new file mode 100644 index 000000000000..87d8eb2be8cd --- /dev/null +++ b/java-pubsub/.github/workflows/renovate_config_check.yaml @@ -0,0 +1,25 @@ +name: Renovate Bot Config Validation + +on: + pull_request: + paths: + - 'renovate.json' + +jobs: + renovate_bot_config_validation: + runs-on: ubuntu-22.04 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install Renovate and Config Validator + run: | + npm install -g npm@latest + npm install --global renovate + renovate-config-validator diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e8765d4adfc0..7a51da7f5a79 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.29.0') +implementation platform('com.google.cloud:libraries-bom:26.30.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.125.13' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.125.13" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.0" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.125.13 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From 04e240fa07eacb9bec4fea395974f27ece1d66b3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:08:48 +0100 Subject: [PATCH 1650/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.30.0 (#1853) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.30.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bedd4b707676..01ed43ae481a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.28.0 + 2.30.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3fe333e496ca..231eaa0aaf3e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.28.0 + 2.30.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index ba9075966a9e..375515ebbc27 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.28.0 + 2.30.0 tests From 311030305a43665b0c3ed735ddbd99cfc6872fbe Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:10:04 +0100 Subject: [PATCH 1651/2363] test(deps): update dependency com.google.truth:truth to v1.3.0 (#1867) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test(deps): update dependency com.google.truth:truth to v1.3.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4ffa585d601c..93610e2961ee 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.2.0 + 1.3.0 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 01ed43ae481a..38a3ba60d9c8 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.2.0 + 1.3.0 test diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index d7dfc9687302..94c8dd805699 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.2.0 + 1.3.0 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 231eaa0aaf3e..c30d0abc1a91 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.2.0 + 1.3.0 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 375515ebbc27..be355792f011 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.2.0 + 1.3.0 test From c37370552cb1634cddc438cfe3b2f02e5c634795 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:10:39 +0100 Subject: [PATCH 1652/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 (#1865) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 93610e2961ee..e4496ca98524 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.21.0 + 3.22.0 pom import From 26af0b050e1da7465898d65cd25acfcddbdfd7ba Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:10:57 +0100 Subject: [PATCH 1653/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.0 (#1863) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7a51da7f5a79..f35bd76d8a54 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.125.13 + 1.126.0 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 38a3ba60d9c8..8db3841fc33a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.125.13 + 1.126.0 From 587ee7e2ed6de36d1d7078b6d7fd9556681a2bb0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:11:11 +0100 Subject: [PATCH 1654/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.25.2 (#1858) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8db3841fc33a..a3e5a8cfde10 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.25.1 + 3.25.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c30d0abc1a91..074458a269bd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.25.1 + 3.25.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index be355792f011..b112305d04a3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 3.25.1 + 3.25.2 From 81cd1f1dca0c826594e55b6e533c0bf52a026dc8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:11:25 +0100 Subject: [PATCH 1655/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.32.0 (#1857) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a3e5a8cfde10..e6e13bf8811c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.30.1 + 2.32.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 074458a269bd..7a005a1ffb32 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.30.1 + 2.32.0 From 1265e5d77bef7666ca78b19ce459f97bde9059da Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:32:24 +0100 Subject: [PATCH 1656/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.30.0 (#1864) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.30.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f35bd76d8a54..75d1565f7fab 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.29.0 + 26.30.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 94c8dd805699..6ba2d91b2b66 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.29.0 + 26.30.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b112305d04a3..a2085f3c1d25 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.29.0 + 26.30.0 pom import From 384bd698e5e2788851035030aa546c355e3b1a49 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:33:50 +0100 Subject: [PATCH 1657/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.36.0 (#1840) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e6e13bf8811c..0f157e442f27 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.34.2 + 2.36.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7a005a1ffb32..df44f1d09be4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.34.2 + 2.36.0 com.google.cloud From 21dc56b7835b21555def86b2788a1a8563d05534 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 24 Jan 2024 22:34:12 +0100 Subject: [PATCH 1658/2363] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.2.5 (#1856) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 6ba2d91b2b66..b766b632656c 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.2.3 + 3.2.5 **/*IT From 3a99a5b61e4d6f384d35f460b7fbb47417cf8c9b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Jan 2024 17:36:27 +0100 Subject: [PATCH 1659/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.32.1 (#1874) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0f157e442f27..c5e44bb0af6c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.32.0 + 2.32.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index df44f1d09be4..676f5d31ae10 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.32.0 + 2.32.1 From 2cc03f4425318eee36c6ba95c0fb7a47b1713a8b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Jan 2024 18:18:15 +0100 Subject: [PATCH 1660/2363] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 (#1873) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/sdk-platform-java) | `3.22.0` -> `3.23.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-shared-dependencies/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-shared-dependencies/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-shared-dependencies/3.22.0/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-shared-dependencies/3.22.0/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e4496ca98524..cb7672249a21 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.22.0 + 3.23.0 pom import From 5b43841f6562031a83583ce3f1ca2fa59604e9da Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Jan 2024 18:19:46 +0100 Subject: [PATCH 1661/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.31.0 (#1872) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c5e44bb0af6c..dbf74e07c06e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.30.0 + 2.31.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 676f5d31ae10..02770276bbf7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.30.0 + 2.31.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a2085f3c1d25..26215fd06791 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.30.0 + 2.31.0 tests From a83d9dcc1c799fc2abf72020646aa36b718d9064 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:34:15 +0000 Subject: [PATCH 1662/2363] chore(main): release 1.126.1 (#1871) :robot: I have created a release *beep* *boop* --- ## [1.126.1](https://togithub.com/googleapis/java-pubsub/compare/v1.126.0...v1.126.1) (2024-01-25) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.36.0 ([#1840](https://togithub.com/googleapis/java-pubsub/issues/1840)) ([384bd69](https://togithub.com/googleapis/java-pubsub/commit/384bd698e5e2788851035030aa546c355e3b1a49)) * Update dependency com.google.cloud:google-cloud-core to v2.30.0 ([#1853](https://togithub.com/googleapis/java-pubsub/issues/1853)) ([04e240f](https://togithub.com/googleapis/java-pubsub/commit/04e240fa07eacb9bec4fea395974f27ece1d66b3)) * Update dependency com.google.cloud:google-cloud-core to v2.31.0 ([#1872](https://togithub.com/googleapis/java-pubsub/issues/1872)) ([5b43841](https://togithub.com/googleapis/java-pubsub/commit/5b43841f6562031a83583ce3f1ca2fa59604e9da)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 ([#1865](https://togithub.com/googleapis/java-pubsub/issues/1865)) ([c373705](https://togithub.com/googleapis/java-pubsub/commit/c37370552cb1634cddc438cfe3b2f02e5c634795)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 ([#1873](https://togithub.com/googleapis/java-pubsub/issues/1873)) ([2cc03f4](https://togithub.com/googleapis/java-pubsub/commit/2cc03f4425318eee36c6ba95c0fb7a47b1713a8b)) * Update dependency com.google.cloud:google-cloud-storage to v2.32.0 ([#1857](https://togithub.com/googleapis/java-pubsub/issues/1857)) ([81cd1f1](https://togithub.com/googleapis/java-pubsub/commit/81cd1f1dca0c826594e55b6e533c0bf52a026dc8)) * Update dependency com.google.cloud:google-cloud-storage to v2.32.1 ([#1874](https://togithub.com/googleapis/java-pubsub/issues/1874)) ([3a99a5b](https://togithub.com/googleapis/java-pubsub/commit/3a99a5b61e4d6f384d35f460b7fbb47417cf8c9b)) * Update dependency com.google.protobuf:protobuf-java-util to v3.25.2 ([#1858](https://togithub.com/googleapis/java-pubsub/issues/1858)) ([587ee7e](https://togithub.com/googleapis/java-pubsub/commit/587ee7e2ed6de36d1d7078b6d7fd9556681a2bb0)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 14 ++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 091a7109bb74..46203e22e7e1 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.126.1](https://github.com/googleapis/java-pubsub/compare/v1.126.0...v1.126.1) (2024-01-25) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.36.0 ([#1840](https://github.com/googleapis/java-pubsub/issues/1840)) ([8c5117d](https://github.com/googleapis/java-pubsub/commit/8c5117d02511acd5469d863ea483f6e765e29292)) +* Update dependency com.google.cloud:google-cloud-core to v2.30.0 ([#1853](https://github.com/googleapis/java-pubsub/issues/1853)) ([db36def](https://github.com/googleapis/java-pubsub/commit/db36deff6a4187cb98ddd68259efd6034762060e)) +* Update dependency com.google.cloud:google-cloud-core to v2.31.0 ([#1872](https://github.com/googleapis/java-pubsub/issues/1872)) ([06db9a0](https://github.com/googleapis/java-pubsub/commit/06db9a05a80b2d7f38aefff2d5e0b33e3fa1a2c9)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 ([#1865](https://github.com/googleapis/java-pubsub/issues/1865)) ([f4c6f51](https://github.com/googleapis/java-pubsub/commit/f4c6f5112e8285264a497b3a141c31f77fea6ee2)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 ([#1873](https://github.com/googleapis/java-pubsub/issues/1873)) ([0d445f1](https://github.com/googleapis/java-pubsub/commit/0d445f173574433aed2770d9cc949672221b839e)) +* Update dependency com.google.cloud:google-cloud-storage to v2.32.0 ([#1857](https://github.com/googleapis/java-pubsub/issues/1857)) ([d673e55](https://github.com/googleapis/java-pubsub/commit/d673e55e69f60f5a6f6bae10e2f62d7fd0dfa89f)) +* Update dependency com.google.cloud:google-cloud-storage to v2.32.1 ([#1874](https://github.com/googleapis/java-pubsub/issues/1874)) ([adae8a4](https://github.com/googleapis/java-pubsub/commit/adae8a4aadb08532076fd02710d0e41336ec096c)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.25.2 ([#1858](https://github.com/googleapis/java-pubsub/issues/1858)) ([8fa6354](https://github.com/googleapis/java-pubsub/commit/8fa635427927e1859332896b8373abccd5881949)) + ## [1.126.0](https://github.com/googleapis/java-pubsub/compare/v1.125.13...v1.126.0) (2024-01-13) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 04408abfe221..6dad3340da79 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.1-SNAPSHOT + 1.126.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.1-SNAPSHOT + 1.126.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8c9a7687cad0..68fae81c76b1 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.1-SNAPSHOT + 1.126.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.1-SNAPSHOT + 1.126.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b8b3e3f1d897..ce8e69246da9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.1-SNAPSHOT + 1.126.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index cb7672249a21..2fda24b44c5d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.1-SNAPSHOT + 1.126.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 com.google.cloud google-cloud-pubsub - 1.126.1-SNAPSHOT + 1.126.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d43ce584b090..4239252525ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1-SNAPSHOT + 1.108.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.1-SNAPSHOT + 1.126.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 02770276bbf7..cf3457fb3220 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.1-SNAPSHOT + 1.126.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 67e7730ab995..6e91b66b08d1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.0:1.126.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.0:1.108.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.0:1.108.1-SNAPSHOT +google-cloud-pubsub:1.126.1:1.126.1 +grpc-google-cloud-pubsub-v1:1.108.1:1.108.1 +proto-google-cloud-pubsub-v1:1.108.1:1.108.1 From fc80eef18b7a8144682d06df681c6e9590518567 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:48:16 +0000 Subject: [PATCH 1663/2363] chore(main): release 1.126.2-SNAPSHOT (#1876) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6dad3340da79..a020e128cc18 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.1 + 1.126.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 68fae81c76b1..d588ee783af4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.1 + 1.126.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ce8e69246da9..722836773329 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.1 + 1.126.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2fda24b44c5d..719b2d735c62 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.1 + 1.126.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4239252525ed..2f649852f424 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.1 + 1.108.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.1 + 1.126.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cf3457fb3220..842cbf9ed55f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6e91b66b08d1..64ecc9876bf2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.1:1.126.1 -grpc-google-cloud-pubsub-v1:1.108.1:1.108.1 -proto-google-cloud-pubsub-v1:1.108.1:1.108.1 +google-cloud-pubsub:1.126.1:1.126.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.1:1.108.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.1:1.108.2-SNAPSHOT From 849b2834593b021e49d7fe40ab09563271f44bdd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Jan 2024 22:01:41 +0100 Subject: [PATCH 1664/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.1 (#1877) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 75d1565f7fab..4f9b1de5213c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.0 + 1.126.1 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.1" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index dbf74e07c06e..a57a7f99d95e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.0 + 1.126.1 From 6dace930c83521bc154d168d900c12e87df0f762 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Fri, 26 Jan 2024 17:05:23 +0000 Subject: [PATCH 1665/2363] fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 (#1875) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Run latest owlbot locally * chore: Add owl-bot-staging * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/SchemaServiceClient.java | 124 +- .../pubsub/v1/SubscriptionAdminClient.java | 272 +- .../cloud/pubsub/v1/TopicAdminClient.java | 123 +- .../pubsub/v1/stub/PublisherStubSettings.java | 20 +- .../v1/stub/SchemaServiceStubSettings.java | 20 +- .../v1/stub/SubscriberStubSettings.java | 20 +- .../reflect-config.json | 54 + .../v1/TopicAdminClientHttpJsonTest.java | 8 + .../cloud/pubsub/v1/TopicAdminClientTest.java | 6 + .../com/google/pubsub/v1/PublisherGrpc.java | 18 +- .../google/pubsub/v1/SchemaServiceGrpc.java | 2 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 34 +- .../google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../v1/AcknowledgeRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/BigQueryConfig.java | 110 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 24 +- .../google/pubsub/v1/CloudStorageConfig.java | 502 ++-- .../v1/CloudStorageConfigOrBuilder.java | 107 +- .../google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../v1/CommitSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSchemaRequest.java | 30 +- .../v1/CreateSchemaRequestOrBuilder.java | 10 +- .../pubsub/v1/CreateSnapshotRequest.java | 46 +- .../v1/CreateSnapshotRequestOrBuilder.java | 22 +- .../google/pubsub/v1/DeadLetterPolicy.java | 110 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 32 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../v1/DeleteSchemaRevisionRequest.java | 2 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../DeleteSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../v1/DeleteTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../DetachSubscriptionResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Encoding.java | 2 +- .../google/pubsub/v1/ExpirationPolicy.java | 170 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 44 +- .../google/pubsub/v1/GetSchemaRequest.java | 2 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../v1/GetSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/GetSubscriptionRequest.java | 2 +- .../v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../v1/IngestionDataSourceSettings.java | 2623 +++++++++++++++++ .../IngestionDataSourceSettingsOrBuilder.java | 68 + .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../v1/ListSchemaRevisionsResponse.java | 2 +- .../ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasRequest.java | 2 +- .../v1/ListSchemasRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasResponse.java | 2 +- .../v1/ListSchemasResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsRequest.java | 74 +- .../v1/ListSnapshotsRequestOrBuilder.java | 22 +- .../pubsub/v1/ListSnapshotsResponse.java | 189 +- .../v1/ListSnapshotsResponseOrBuilder.java | 46 +- .../pubsub/v1/ListSubscriptionsRequest.java | 74 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 22 +- .../pubsub/v1/ListSubscriptionsResponse.java | 182 +- .../ListSubscriptionsResponseOrBuilder.java | 44 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 74 +- .../ListTopicSnapshotsRequestOrBuilder.java | 22 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 96 +- .../ListTopicSnapshotsResponseOrBuilder.java | 30 +- .../v1/ListTopicSubscriptionsRequest.java | 74 +- ...istTopicSubscriptionsRequestOrBuilder.java | 22 +- .../v1/ListTopicSubscriptionsResponse.java | 135 +- ...stTopicSubscriptionsResponseOrBuilder.java | 42 +- .../google/pubsub/v1/ListTopicsRequest.java | 74 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 22 +- .../google/pubsub/v1/ListTopicsResponse.java | 159 +- .../v1/ListTopicsResponseOrBuilder.java | 39 +- .../pubsub/v1/MessageStoragePolicy.java | 319 +- .../v1/MessageStoragePolicyOrBuilder.java | 83 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 14 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 5 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 2 +- .../pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishResponse.java | 106 +- .../pubsub/v1/PublishResponseOrBuilder.java | 34 +- .../com/google/pubsub/v1/PubsubMessage.java | 215 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 75 +- .../com/google/pubsub/v1/PubsubProto.java | 796 ++--- .../com/google/pubsub/v1/PullRequest.java | 10 +- .../pubsub/v1/PullRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/PullResponse.java | 186 +- .../pubsub/v1/PullResponseOrBuilder.java | 42 +- .../java/com/google/pubsub/v1/PushConfig.java | 574 ++-- .../google/pubsub/v1/PushConfigOrBuilder.java | 114 +- .../com/google/pubsub/v1/ReceivedMessage.java | 114 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 31 +- .../com/google/pubsub/v1/RetryPolicy.java | 204 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 47 +- .../pubsub/v1/RollbackSchemaRequest.java | 2 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Schema.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 2 +- .../com/google/pubsub/v1/SchemaSettings.java | 147 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 42 +- .../java/com/google/pubsub/v1/SchemaView.java | 2 +- .../com/google/pubsub/v1/SeekRequest.java | 140 +- .../pubsub/v1/SeekRequestOrBuilder.java | 44 +- .../com/google/pubsub/v1/SeekResponse.java | 2 +- .../pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Snapshot.java | 183 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 59 +- .../pubsub/v1/StreamingPullRequest.java | 518 ++-- .../v1/StreamingPullRequestOrBuilder.java | 153 +- .../pubsub/v1/StreamingPullResponse.java | 1021 ++++--- .../v1/StreamingPullResponseOrBuilder.java | 80 +- .../com/google/pubsub/v1/Subscription.java | 1081 ++++--- .../pubsub/v1/SubscriptionOrBuilder.java | 281 +- .../main/java/com/google/pubsub/v1/Topic.java | 1088 +++++-- .../com/google/pubsub/v1/TopicOrBuilder.java | 199 +- .../pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../UpdateSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../v1/UpdateTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageRequest.java | 2 +- .../v1/ValidateMessageRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageResponse.java | 2 +- .../v1/ValidateMessageResponseOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaRequest.java | 2 +- .../v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaResponse.java | 2 +- .../v1/ValidateSchemaResponseOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 855 +++--- .../main/proto/google/pubsub/v1/schema.proto | 4 +- 142 files changed, 10068 insertions(+), 4963 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index ddc98a2f0ae2..02b4aef141eb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -80,240 +80,240 @@ * as threads. In the example above, try-with-resources is used, which automatically calls close(). * * - * + * * * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * @@ -449,7 +449,7 @@ public SchemaServiceStub getStub() { * will have a `name` made using the given `parent` and `schema_id`. * @param schemaId The ID to use for the schema, which will become the final component of the * schema's resource name. - *

    See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name + *

    See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name * constraints. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -490,7 +490,7 @@ public final Schema createSchema(ProjectName parent, Schema schema, String schem * will have a `name` made using the given `parent` and `schema_id`. * @param schemaId The ID to use for the schema, which will become the final component of the * schema's resource name. - *

    See https://cloud.google.com/pubsub/docs/admin#resource_names for resource name + *

    See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name * constraints. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index e7617298c763..7eca1a773a49 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -100,352 +100,352 @@ * close(). * *

    MethodsMethods
    MethodDescriptionMethod Variants
    CreateSchema

    CreateSchema

    Creates a schema.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • createSchema(CreateSchemaRequest request) + *
    • createSchema(CreateSchemaRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • createSchema(ProjectName parent, Schema schema, String schemaId) - *
    • createSchema(String parent, Schema schema, String schemaId) + *
    • createSchema(ProjectName parent, Schema schema, String schemaId) + *

    • createSchema(String parent, Schema schema, String schemaId) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • createSchemaCallable() + *
    • createSchemaCallable() *

    *
    GetSchema

    GetSchema

    Gets a schema.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • getSchema(GetSchemaRequest request) + *
    • getSchema(GetSchemaRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • getSchema(SchemaName name) - *
    • getSchema(String name) + *
    • getSchema(SchemaName name) + *

    • getSchema(String name) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • getSchemaCallable() + *
    • getSchemaCallable() *

    *
    ListSchemas

    ListSchemas

    Lists schemas in a project.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • listSchemas(ListSchemasRequest request) + *
    • listSchemas(ListSchemasRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • listSchemas(ProjectName parent) - *
    • listSchemas(String parent) + *
    • listSchemas(ProjectName parent) + *

    • listSchemas(String parent) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • listSchemasPagedCallable() - *
    • listSchemasCallable() + *
    • listSchemasPagedCallable() + *

    • listSchemasCallable() *

    *
    ListSchemaRevisions

    ListSchemaRevisions

    Lists all schema revisions for the named schema.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • listSchemaRevisions(ListSchemaRevisionsRequest request) + *
    • listSchemaRevisions(ListSchemaRevisionsRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • listSchemaRevisions(SchemaName name) - *
    • listSchemaRevisions(String name) + *
    • listSchemaRevisions(SchemaName name) + *

    • listSchemaRevisions(String name) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • listSchemaRevisionsPagedCallable() - *
    • listSchemaRevisionsCallable() + *
    • listSchemaRevisionsPagedCallable() + *

    • listSchemaRevisionsCallable() *

    *
    CommitSchema

    CommitSchema

    Commits a new schema revision to an existing schema.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • commitSchema(CommitSchemaRequest request) + *
    • commitSchema(CommitSchemaRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • commitSchema(SchemaName name, Schema schema) - *
    • commitSchema(String name, Schema schema) + *
    • commitSchema(SchemaName name, Schema schema) + *

    • commitSchema(String name, Schema schema) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • commitSchemaCallable() + *
    • commitSchemaCallable() *

    *
    RollbackSchema

    RollbackSchema

    Creates a new schema revision that is a copy of the provided revision_id.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • rollbackSchema(RollbackSchemaRequest request) + *
    • rollbackSchema(RollbackSchemaRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • rollbackSchema(SchemaName name, String revisionId) - *
    • rollbackSchema(String name, String revisionId) + *
    • rollbackSchema(SchemaName name, String revisionId) + *

    • rollbackSchema(String name, String revisionId) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • rollbackSchemaCallable() + *
    • rollbackSchemaCallable() *

    *
    DeleteSchemaRevision

    DeleteSchemaRevision

    Deletes a specific schema revision.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • deleteSchemaRevision(DeleteSchemaRevisionRequest request) + *
    • deleteSchemaRevision(DeleteSchemaRevisionRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • deleteSchemaRevision(SchemaName name, String revisionId) - *
    • deleteSchemaRevision(String name, String revisionId) + *
    • deleteSchemaRevision(SchemaName name, String revisionId) + *

    • deleteSchemaRevision(String name, String revisionId) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • deleteSchemaRevisionCallable() + *
    • deleteSchemaRevisionCallable() *

    *
    DeleteSchema

    DeleteSchema

    Deletes a schema.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • deleteSchema(DeleteSchemaRequest request) + *
    • deleteSchema(DeleteSchemaRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • deleteSchema(SchemaName name) - *
    • deleteSchema(String name) + *
    • deleteSchema(SchemaName name) + *

    • deleteSchema(String name) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • deleteSchemaCallable() + *
    • deleteSchemaCallable() *

    *
    ValidateSchema

    ValidateSchema

    Validates a schema.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • validateSchema(ValidateSchemaRequest request) + *
    • validateSchema(ValidateSchemaRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • validateSchema(ProjectName parent, Schema schema) - *
    • validateSchema(String parent, Schema schema) + *
    • validateSchema(ProjectName parent, Schema schema) + *

    • validateSchema(String parent, Schema schema) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • validateSchemaCallable() + *
    • validateSchemaCallable() *

    *
    ValidateMessage

    ValidateMessage

    Validates a message against a schema.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • validateMessage(ValidateMessageRequest request) + *
    • validateMessage(ValidateMessageRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • validateMessageCallable() + *
    • validateMessageCallable() *

    *
    SetIamPolicy

    SetIamPolicy

    Sets the access control policy on the specified resource. Replacesany existing policy. *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • setIamPolicy(SetIamPolicyRequest request) + *
    • setIamPolicy(SetIamPolicyRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • setIamPolicyCallable() + *
    • setIamPolicyCallable() *

    *
    GetIamPolicy

    GetIamPolicy

    Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • getIamPolicy(GetIamPolicyRequest request) + *
    • getIamPolicy(GetIamPolicyRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • getIamPolicyCallable() + *
    • getIamPolicyCallable() *

    *
    TestIamPermissions

    TestIamPermissions

    Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

    Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • testIamPermissions(TestIamPermissionsRequest request) + *
    • testIamPermissions(TestIamPermissionsRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • testIamPermissionsCallable() + *
    • testIamPermissionsCallable() *

    *
    - * + * * * * * * * - * + * * * * * - * + * * * * * - * - * + * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * - * + * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * @@ -596,12 +596,12 @@ public SubscriberStub getStub() { * @param topic 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. - * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. - * @param ackDeadlineSeconds 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 + * @param pushConfig Optional. If push delivery is used with this subscription, this field is used + * to configure it. + * @param ackDeadlineSeconds Optional. 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 @@ -666,12 +666,12 @@ public final Subscription createSubscription( * @param topic 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. - * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. - * @param ackDeadlineSeconds 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 + * @param pushConfig Optional. If push delivery is used with this subscription, this field is used + * to configure it. + * @param ackDeadlineSeconds Optional. 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 @@ -736,12 +736,12 @@ public final Subscription createSubscription( * @param topic 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. - * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. - * @param ackDeadlineSeconds 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 + * @param pushConfig Optional. If push delivery is used with this subscription, this field is used + * to configure it. + * @param ackDeadlineSeconds Optional. 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 @@ -806,12 +806,12 @@ public final Subscription createSubscription( * @param topic 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. - * @param pushConfig If push delivery is used with this subscription, this field is used to - * configure it. - * @param ackDeadlineSeconds 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 + * @param pushConfig Optional. If push delivery is used with this subscription, this field is used + * to configure it. + * @param ackDeadlineSeconds Optional. 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 @@ -1296,8 +1296,8 @@ public final UnaryCallable getSubscription // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing subscription. Note that certain properties of a subscription, such as its - * topic, are not modifiable. + * Updates an existing subscription by updating the fields specified in the update mask. Note that + * certain properties of a subscription, such as its topic, are not modifiable. * *

    Sample code: * @@ -1330,8 +1330,8 @@ public final Subscription updateSubscription(Subscription subscription, FieldMas // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing subscription. Note that certain properties of a subscription, such as its - * topic, are not modifiable. + * Updates an existing subscription by updating the fields specified in the update mask. Note that + * certain properties of a subscription, such as its topic, are not modifiable. * *

    Sample code: * @@ -1360,8 +1360,8 @@ public final Subscription updateSubscription(UpdateSubscriptionRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing subscription. Note that certain properties of a subscription, such as its - * topic, are not modifiable. + * Updates an existing subscription by updating the fields specified in the update mask. Note that + * certain properties of a subscription, such as its topic, are not modifiable. * *

    Sample code: * @@ -1742,8 +1742,8 @@ public final UnaryCallable deleteSubscriptionC * 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). + * The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify in + * a single request is 600 seconds (10 minutes). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void modifyAckDeadline( @@ -1788,8 +1788,8 @@ public final void modifyAckDeadline( * 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). + * The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify in + * a single request is 600 seconds (10 minutes). * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void modifyAckDeadline( @@ -3380,9 +3380,9 @@ public final UnaryCallable createSnapshotCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing snapshot. Snapshots are used in - * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to - * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of + * Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are + * used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: @@ -3413,9 +3413,9 @@ public final Snapshot updateSnapshot(Snapshot snapshot, FieldMask updateMask) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing snapshot. Snapshots are used in - * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to - * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of + * Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are + * used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: @@ -3445,9 +3445,9 @@ public final Snapshot updateSnapshot(UpdateSnapshotRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing snapshot. Snapshots are used in - * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to - * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of + * Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are + * used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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. * *

    Sample code: diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 4e265258505b..a80ed29ec33b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -81,221 +81,221 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * *

    MethodsMethods
    MethodDescriptionMethod Variants
    CreateSubscription

    CreateSubscription

    Creates a subscription to a given topic. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). 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] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Subscription object. Note that for REST API requests, you must specify a name in the request.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • createSubscription(Subscription request) + *
    • createSubscription(Subscription request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • createSubscription(SubscriptionName name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) - *
    • createSubscription(SubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) - *
    • createSubscription(String name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) - *
    • createSubscription(String name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) + *
    • createSubscription(SubscriptionName name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) + *

    • createSubscription(SubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) + *

    • createSubscription(String name, TopicName topic, PushConfig pushConfig, int ackDeadlineSeconds) + *

    • createSubscription(String name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • createSubscriptionCallable() + *
    • createSubscriptionCallable() *

    *
    GetSubscription

    GetSubscription

    Gets the configuration details of a subscription.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • getSubscription(GetSubscriptionRequest request) + *
    • getSubscription(GetSubscriptionRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • getSubscription(SubscriptionName subscription) - *
    • getSubscription(String subscription) + *
    • getSubscription(SubscriptionName subscription) + *

    • getSubscription(String subscription) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • getSubscriptionCallable() + *
    • getSubscriptionCallable() *

    *
    UpdateSubscription

    Updates an existing subscription. Note that certain properties of a subscription, such as its topic, are not modifiable.

    UpdateSubscription

    Updates an existing subscription by updating the fields specified in the update mask. Note that certain properties of a subscription, such as its topic, are not modifiable.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • updateSubscription(UpdateSubscriptionRequest request) + *
    • updateSubscription(UpdateSubscriptionRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • updateSubscription(Subscription subscription, FieldMask updateMask) + *
    • updateSubscription(Subscription subscription, FieldMask updateMask) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • updateSubscriptionCallable() + *
    • updateSubscriptionCallable() *

    *
    ListSubscriptions

    ListSubscriptions

    Lists matching subscriptions.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • listSubscriptions(ListSubscriptionsRequest request) + *
    • listSubscriptions(ListSubscriptionsRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • listSubscriptions(ProjectName project) - *
    • listSubscriptions(String project) + *
    • listSubscriptions(ProjectName project) + *

    • listSubscriptions(String project) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • listSubscriptionsPagedCallable() - *
    • listSubscriptionsCallable() + *
    • listSubscriptionsPagedCallable() + *

    • listSubscriptionsCallable() *

    *
    DeleteSubscription

    DeleteSubscription

    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.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • deleteSubscription(DeleteSubscriptionRequest request) + *
    • deleteSubscription(DeleteSubscriptionRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • deleteSubscription(SubscriptionName subscription) - *
    • deleteSubscription(String subscription) + *
    • deleteSubscription(SubscriptionName subscription) + *

    • deleteSubscription(String subscription) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • deleteSubscriptionCallable() + *
    • deleteSubscriptionCallable() *

    *
    ModifyAckDeadline

    ModifyAckDeadline

    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.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • modifyAckDeadline(ModifyAckDeadlineRequest request) + *
    • modifyAckDeadline(ModifyAckDeadlineRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • modifyAckDeadline(SubscriptionName subscription, List<String> ackIds, int ackDeadlineSeconds) - *
    • modifyAckDeadline(String subscription, List<String> ackIds, int ackDeadlineSeconds) + *
    • modifyAckDeadline(SubscriptionName subscription, List<String> ackIds, int ackDeadlineSeconds) + *

    • modifyAckDeadline(String subscription, List<String> ackIds, int ackDeadlineSeconds) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • modifyAckDeadlineCallable() + *
    • modifyAckDeadlineCallable() *

    *
    Acknowledge

    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.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • acknowledge(AcknowledgeRequest request) + *
    • acknowledge(AcknowledgeRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • acknowledge(SubscriptionName subscription, List<String> ackIds) - *
    • acknowledge(String subscription, List<String> ackIds) + *
    • acknowledge(SubscriptionName subscription, List<String> ackIds) + *

    • acknowledge(String subscription, List<String> ackIds) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • acknowledgeCallable() + *
    • acknowledgeCallable() *

    *
    Pull

    Pull

    Pulls messages from the server.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • pull(PullRequest request) + *
    • pull(PullRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • pull(SubscriptionName subscription, int maxMessages) - *
    • pull(String subscription, int maxMessages) - *
    • pull(SubscriptionName subscription, boolean returnImmediately, int maxMessages) - *
    • pull(String subscription, boolean returnImmediately, int maxMessages) + *
    • pull(SubscriptionName subscription, int maxMessages) + *

    • pull(String subscription, int maxMessages) + *

    • pull(SubscriptionName subscription, boolean returnImmediately, int maxMessages) + *

    • pull(String subscription, boolean returnImmediately, int maxMessages) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • pullCallable() + *
    • pullCallable() *

    *
    StreamingPull

    StreamingPull

    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.

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • streamingPullCallable() + *
    • streamingPullCallable() *

    *
    ModifyPushConfig

    ModifyPushConfig

    Modifies the `PushConfig` for a specified subscription. *

    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`.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • modifyPushConfig(ModifyPushConfigRequest request) + *
    • modifyPushConfig(ModifyPushConfigRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • modifyPushConfig(SubscriptionName subscription, PushConfig pushConfig) - *
    • modifyPushConfig(String subscription, PushConfig pushConfig) + *
    • modifyPushConfig(SubscriptionName subscription, PushConfig pushConfig) + *

    • modifyPushConfig(String subscription, PushConfig pushConfig) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • modifyPushConfigCallable() + *
    • modifyPushConfigCallable() *

    *
    GetSnapshot

    GetSnapshot

    Gets the configuration details of a snapshot. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • getSnapshot(GetSnapshotRequest request) + *
    • getSnapshot(GetSnapshotRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • getSnapshot(SnapshotName snapshot) - *
    • getSnapshot(String snapshot) + *
    • getSnapshot(SnapshotName snapshot) + *

    • getSnapshot(String snapshot) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • getSnapshotCallable() + *
    • getSnapshotCallable() *

    *
    ListSnapshots

    ListSnapshots

    Lists the existing snapshots. Snapshots are used in [Seek]( https://cloud.google.com/pubsub/docs/replay-overview) 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.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • listSnapshots(ListSnapshotsRequest request) + *
    • listSnapshots(ListSnapshotsRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • listSnapshots(ProjectName project) - *
    • listSnapshots(String project) + *
    • listSnapshots(ProjectName project) + *

    • listSnapshots(String project) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • listSnapshotsPagedCallable() - *
    • listSnapshotsCallable() + *
    • listSnapshotsPagedCallable() + *

    • listSnapshotsCallable() *

    *
    CreateSnapshot

    CreateSnapshot

    Creates a snapshot from the requested subscription. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The generated name is populated in the returned Snapshot object. Note that for REST API requests, you must specify a name in the request.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • createSnapshot(CreateSnapshotRequest request) + *
    • createSnapshot(CreateSnapshotRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • createSnapshot(SnapshotName name, SubscriptionName subscription) - *
    • createSnapshot(SnapshotName name, String subscription) - *
    • createSnapshot(String name, SubscriptionName subscription) - *
    • createSnapshot(String name, String subscription) + *
    • createSnapshot(SnapshotName name, SubscriptionName subscription) + *

    • createSnapshot(SnapshotName name, String subscription) + *

    • createSnapshot(String name, SubscriptionName subscription) + *

    • createSnapshot(String name, String subscription) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • createSnapshotCallable() + *
    • createSnapshotCallable() *

    *
    UpdateSnapshot

    Updates an existing snapshot. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.

    UpdateSnapshot

    Updates an existing snapshot by updating the fields specified in the update mask. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • updateSnapshot(UpdateSnapshotRequest request) + *
    • updateSnapshot(UpdateSnapshotRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • updateSnapshot(Snapshot snapshot, FieldMask updateMask) + *
    • updateSnapshot(Snapshot snapshot, FieldMask updateMask) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • updateSnapshotCallable() + *
    • updateSnapshotCallable() *

    *
    DeleteSnapshot

    DeleteSnapshot

    Removes an existing snapshot. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) 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. When the snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with the same name, but the new one has no association with the old snapshot or its subscription, unless the same subscription is specified.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • deleteSnapshot(DeleteSnapshotRequest request) + *
    • deleteSnapshot(DeleteSnapshotRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • deleteSnapshot(SnapshotName snapshot) - *
    • deleteSnapshot(String snapshot) + *
    • deleteSnapshot(SnapshotName snapshot) + *

    • deleteSnapshot(String snapshot) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • deleteSnapshotCallable() + *
    • deleteSnapshotCallable() *

    *
    Seek

    Seek

    Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided in the request. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the snapshot must be on the same topic.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • seek(SeekRequest request) + *
    • seek(SeekRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • seekCallable() + *
    • seekCallable() *

    *
    SetIamPolicy

    SetIamPolicy

    Sets the access control policy on the specified resource. Replacesany existing policy. *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • setIamPolicy(SetIamPolicyRequest request) + *
    • setIamPolicy(SetIamPolicyRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • setIamPolicyCallable() + *
    • setIamPolicyCallable() *

    *
    GetIamPolicy

    GetIamPolicy

    Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • getIamPolicy(GetIamPolicyRequest request) + *
    • getIamPolicy(GetIamPolicyRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • getIamPolicyCallable() + *
    • getIamPolicyCallable() *

    *
    TestIamPermissions

    TestIamPermissions

    Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

    Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • testIamPermissions(TestIamPermissionsRequest request) + *
    • testIamPermissions(TestIamPermissionsRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • testIamPermissionsCallable() + *
    • testIamPermissionsCallable() *

    *
    - * + * * * * * * * - * + * * * * * - * - * + * + * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * @@ -515,6 +515,7 @@ public final Topic createTopic(ProjectTopicName name) { * .setSchemaSettings(SchemaSettings.newBuilder().build()) * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) + * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) * .build(); * Topic response = topicAdminClient.createTopic(request); * } @@ -550,6 +551,7 @@ public final Topic createTopic(Topic request) { * .setSchemaSettings(SchemaSettings.newBuilder().build()) * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) + * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) * .build(); * ApiFuture future = topicAdminClient.createTopicCallable().futureCall(request); * // Do something. @@ -563,7 +565,8 @@ public final UnaryCallable createTopicCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing topic. Note that certain properties of a topic are not modifiable. + * Updates an existing topic by updating the fields specified in the update mask. Note that + * certain properties of a topic are not modifiable. * *

    Sample code: * @@ -595,7 +598,8 @@ public final Topic updateTopic(Topic topic, FieldMask updateMask) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing topic. Note that certain properties of a topic are not modifiable. + * Updates an existing topic by updating the fields specified in the update mask. Note that + * certain properties of a topic are not modifiable. * *

    Sample code: * @@ -624,7 +628,8 @@ public final Topic updateTopic(UpdateTopicRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an existing topic. Note that certain properties of a topic are not modifiable. + * Updates an existing topic by updating the fields specified in the update mask. Note that + * certain properties of a topic are not modifiable. * *

    Sample code: * diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index f3c49568898d..262a09205535 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -480,6 +480,15 @@ public PublisherStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -760,7 +769,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -773,7 +781,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -941,6 +948,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public PublisherStubSettings build() throws IOException { return new PublisherStubSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 8b036328d2d1..bb5e127d3209 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -340,6 +340,15 @@ public SchemaServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -591,7 +600,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -604,7 +612,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -770,6 +777,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SchemaServiceStubSettings build() throws IOException { return new SchemaServiceStubSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index c517f17d66a1..93122a8318b4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -385,6 +385,15 @@ public SubscriberStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -721,7 +730,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -734,7 +742,6 @@ private static Builder createHttpJsonDefault() { builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -954,6 +961,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public SubscriberStubSettings build() throws IOException { return new SubscriberStubSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 8fd73b027294..441c326d248b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -1691,6 +1691,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsKinesis", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsKinesis$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsKinesis$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", "queryAllDeclaredConstructors": true, @@ -2456,6 +2501,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.Topic$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.UpdateSnapshotRequest", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index c18152b5d5ad..2dc4d6e09b17 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -45,6 +45,7 @@ import com.google.protobuf.FieldMask; import com.google.pubsub.v1.DetachSubscriptionRequest; import com.google.pubsub.v1.DetachSubscriptionResponse; +import com.google.pubsub.v1.IngestionDataSourceSettings; import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsResponse; @@ -115,6 +116,7 @@ public void createTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -165,6 +167,7 @@ public void createTopicTest2() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -215,6 +218,7 @@ public void updateTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -227,6 +231,7 @@ public void updateTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -265,6 +270,7 @@ public void updateTopicExceptionTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateTopic(topic, updateMask); @@ -373,6 +379,7 @@ public void getTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -423,6 +430,7 @@ public void getTopicTest2() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 1693f7e40b22..44a9c11c5705 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -45,6 +45,7 @@ import com.google.pubsub.v1.DetachSubscriptionRequest; import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.GetTopicRequest; +import com.google.pubsub.v1.IngestionDataSourceSettings; import com.google.pubsub.v1.ListTopicSnapshotsRequest; import com.google.pubsub.v1.ListTopicSnapshotsResponse; import com.google.pubsub.v1.ListTopicSubscriptionsRequest; @@ -129,6 +130,7 @@ public void createTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); @@ -173,6 +175,7 @@ public void createTopicTest2() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); @@ -217,6 +220,7 @@ public void updateTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); @@ -342,6 +346,7 @@ public void getTopicTest() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); @@ -386,6 +391,7 @@ public void getTopicTest2() throws Exception { .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) + .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .build(); mockPublisher.addResponse(expectedResponse); diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 020bf6f9d85f..18d2202b118c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -479,8 +479,8 @@ default void createTopic( * * *

    -     * Updates an existing topic. Note that certain properties of a
    -     * topic are not modifiable.
    +     * Updates an existing topic by updating the fields specified in the update
    +     * mask. Note that certain properties of a topic are not modifiable.
          * 
    */ default void updateTopic( @@ -656,8 +656,8 @@ public void createTopic( * * *
    -     * Updates an existing topic. Note that certain properties of a
    -     * topic are not modifiable.
    +     * Updates an existing topic by updating the fields specified in the update
    +     * mask. Note that certain properties of a topic are not modifiable.
          * 
    */ public void updateTopic( @@ -828,8 +828,8 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request * * *
    -     * Updates an existing topic. Note that certain properties of a
    -     * topic are not modifiable.
    +     * Updates an existing topic by updating the fields specified in the update
    +     * mask. Note that certain properties of a topic are not modifiable.
          * 
    */ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { @@ -976,8 +976,8 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
    -     * Updates an existing topic. Note that certain properties of a
    -     * topic are not modifiable.
    +     * Updates an existing topic by updating the fields specified in the update
    +     * mask. Note that certain properties of a topic are not modifiable.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index 3b11ea3dc71d..ab612d2c509c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index c90e438e897b..3bf65b4e3c6a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -778,8 +778,9 @@ default void getSubscription( * * *
    -     * Updates an existing subscription. Note that certain properties of a
    -     * subscription, such as its topic, are not modifiable.
    +     * Updates an existing subscription by updating the fields specified in the
    +     * update mask. Note that certain properties of a subscription, such as its
    +     * topic, are not modifiable.
          * 
    */ default void updateSubscription( @@ -978,7 +979,8 @@ default void createSnapshot( * * *
    -     * Updates an existing snapshot. Snapshots are used in
    +     * Updates an existing snapshot by updating the fields specified in the update
    +     * mask. Snapshots are used in
          * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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
    @@ -1115,8 +1117,9 @@ public void getSubscription(
          *
          *
          * 
    -     * Updates an existing subscription. Note that certain properties of a
    -     * subscription, such as its topic, are not modifiable.
    +     * Updates an existing subscription by updating the fields specified in the
    +     * update mask. Note that certain properties of a subscription, such as its
    +     * topic, are not modifiable.
          * 
    */ public void updateSubscription( @@ -1334,7 +1337,8 @@ public void createSnapshot( * * *
    -     * Updates an existing snapshot. Snapshots are used in
    +     * Updates an existing snapshot by updating the fields specified in the update
    +     * mask. Snapshots are used in
          * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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
    @@ -1455,8 +1459,9 @@ public com.google.pubsub.v1.Subscription getSubscription(
          *
          *
          * 
    -     * Updates an existing subscription. Note that certain properties of a
    -     * subscription, such as its topic, are not modifiable.
    +     * Updates an existing subscription by updating the fields specified in the
    +     * update mask. Note that certain properties of a subscription, such as its
    +     * topic, are not modifiable.
          * 
    */ public com.google.pubsub.v1.Subscription updateSubscription( @@ -1624,7 +1629,8 @@ public com.google.pubsub.v1.Snapshot createSnapshot( * * *
    -     * Updates an existing snapshot. Snapshots are used in
    +     * Updates an existing snapshot by updating the fields specified in the update
    +     * mask. Snapshots are used in
          * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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
    @@ -1736,8 +1742,9 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
          *
          *
          * 
    -     * Updates an existing subscription. Note that certain properties of a
    -     * subscription, such as its topic, are not modifiable.
    +     * Updates an existing subscription by updating the fields specified in the
    +     * update mask. Note that certain properties of a subscription, such as its
    +     * topic, are not modifiable.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -1909,7 +1916,8 @@ protected SubscriberFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
    -     * Updates an existing snapshot. Snapshots are used in
    +     * Updates an existing snapshot by updating the fields specified in the update
    +     * mask. Snapshots are used in
          * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    index ad61b3fa8b72..f118acddd3b0 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2023 Google LLC
    + * Copyright 2024 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java
    index b2e049435e15..ef4ff0f2cf07 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2023 Google LLC
    + * Copyright 2024 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java
    index 2683f75dfef9..8bc70c28b02e 100644
    --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java
    +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java
    @@ -1,5 +1,5 @@
     /*
    - * Copyright 2023 Google LLC
    + * Copyright 2024 Google LLC
      *
      * Licensed under the Apache License, Version 2.0 (the "License");
      * you may not use this file except in compliance with the License.
    @@ -128,6 +128,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
          * SCHEMA_MISMATCH = 4;
          */
         SCHEMA_MISMATCH(4),
    +    /**
    +     *
    +     *
    +     * 
    +     * Cannot write to the destination because enforce_in_transit is set to true
    +     * and the destination locations are not in the allowed regions.
    +     * 
    + * + * IN_TRANSIT_LOCATION_RESTRICTION = 5; + */ + IN_TRANSIT_LOCATION_RESTRICTION(5), UNRECOGNIZED(-1), ; @@ -186,6 +197,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * SCHEMA_MISMATCH = 4; */ public static final int SCHEMA_MISMATCH_VALUE = 4; + /** + * + * + *
    +     * Cannot write to the destination because enforce_in_transit is set to true
    +     * and the destination locations are not in the allowed regions.
    +     * 
    + * + * IN_TRANSIT_LOCATION_RESTRICTION = 5; + */ + public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -221,6 +243,8 @@ public static State forNumber(int value) { return NOT_FOUND; case 4: return SCHEMA_MISMATCH; + case 5: + return IN_TRANSIT_LOCATION_RESTRICTION; default: return null; } @@ -282,11 +306,11 @@ private State(int value) { * * *
    -   * The name of the table to which to write data, of the form
    +   * Optional. The name of the table to which to write data, of the form
        * {projectId}.{datasetId}.{tableId}
        * 
    * - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The table. */ @@ -306,11 +330,11 @@ public java.lang.String getTable() { * * *
    -   * The name of the table to which to write data, of the form
    +   * Optional. The name of the table to which to write data, of the form
        * {projectId}.{datasetId}.{tableId}
        * 
    * - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for table. */ @@ -353,14 +377,14 @@ public boolean getUseTopicSchema() { * * *
    -   * When true, write the subscription name, message_id, publish_time,
    +   * Optional. When true, write the subscription name, message_id, publish_time,
        * attributes, and ordering_key to additional columns in the table. The
        * subscription name, message_id, and publish_time fields are put in their own
        * columns while all other message properties (other than data) are written to
        * a JSON object in the attributes column.
        * 
    * - * bool write_metadata = 3; + * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -375,14 +399,14 @@ public boolean getWriteMetadata() { * * *
    -   * When true and use_topic_schema is true, any fields that are a part of the
    -   * topic schema that are not part of the BigQuery table schema are dropped
    -   * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
    -   * any messages with extra fields are not written and remain in the
    +   * Optional. When true and use_topic_schema is true, any fields that are a
    +   * part of the topic schema that are not part of the BigQuery table schema are
    +   * dropped when writing to BigQuery. Otherwise, the schemas must be kept in
    +   * sync and any messages with extra fields are not written and remain in the
        * subscription's backlog.
        * 
    * - * bool drop_unknown_fields = 4; + * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dropUnknownFields. */ @@ -905,11 +929,11 @@ public Builder mergeFrom( * * *
    -     * The name of the table to which to write data, of the form
    +     * Optional. The name of the table to which to write data, of the form
          * {projectId}.{datasetId}.{tableId}
          * 
    * - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The table. */ @@ -928,11 +952,11 @@ public java.lang.String getTable() { * * *
    -     * The name of the table to which to write data, of the form
    +     * Optional. The name of the table to which to write data, of the form
          * {projectId}.{datasetId}.{tableId}
          * 
    * - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for table. */ @@ -951,11 +975,11 @@ public com.google.protobuf.ByteString getTableBytes() { * * *
    -     * The name of the table to which to write data, of the form
    +     * Optional. The name of the table to which to write data, of the form
          * {projectId}.{datasetId}.{tableId}
          * 
    * - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The table to set. * @return This builder for chaining. @@ -973,11 +997,11 @@ public Builder setTable(java.lang.String value) { * * *
    -     * The name of the table to which to write data, of the form
    +     * Optional. The name of the table to which to write data, of the form
          * {projectId}.{datasetId}.{tableId}
          * 
    * - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -991,11 +1015,11 @@ public Builder clearTable() { * * *
    -     * The name of the table to which to write data, of the form
    +     * Optional. The name of the table to which to write data, of the form
          * {projectId}.{datasetId}.{tableId}
          * 
    * - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for table to set. * @return This builder for chaining. @@ -1075,14 +1099,14 @@ public Builder clearUseTopicSchema() { * * *
    -     * When true, write the subscription name, message_id, publish_time,
    +     * Optional. When true, write the subscription name, message_id, publish_time,
          * attributes, and ordering_key to additional columns in the table. The
          * subscription name, message_id, and publish_time fields are put in their own
          * columns while all other message properties (other than data) are written to
          * a JSON object in the attributes column.
          * 
    * - * bool write_metadata = 3; + * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1094,14 +1118,14 @@ public boolean getWriteMetadata() { * * *
    -     * When true, write the subscription name, message_id, publish_time,
    +     * Optional. When true, write the subscription name, message_id, publish_time,
          * attributes, and ordering_key to additional columns in the table. The
          * subscription name, message_id, and publish_time fields are put in their own
          * columns while all other message properties (other than data) are written to
          * a JSON object in the attributes column.
          * 
    * - * bool write_metadata = 3; + * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The writeMetadata to set. * @return This builder for chaining. @@ -1117,14 +1141,14 @@ public Builder setWriteMetadata(boolean value) { * * *
    -     * When true, write the subscription name, message_id, publish_time,
    +     * Optional. When true, write the subscription name, message_id, publish_time,
          * attributes, and ordering_key to additional columns in the table. The
          * subscription name, message_id, and publish_time fields are put in their own
          * columns while all other message properties (other than data) are written to
          * a JSON object in the attributes column.
          * 
    * - * bool write_metadata = 3; + * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1140,14 +1164,14 @@ public Builder clearWriteMetadata() { * * *
    -     * When true and use_topic_schema is true, any fields that are a part of the
    -     * topic schema that are not part of the BigQuery table schema are dropped
    -     * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
    -     * any messages with extra fields are not written and remain in the
    +     * Optional. When true and use_topic_schema is true, any fields that are a
    +     * part of the topic schema that are not part of the BigQuery table schema are
    +     * dropped when writing to BigQuery. Otherwise, the schemas must be kept in
    +     * sync and any messages with extra fields are not written and remain in the
          * subscription's backlog.
          * 
    * - * bool drop_unknown_fields = 4; + * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dropUnknownFields. */ @@ -1159,14 +1183,14 @@ public boolean getDropUnknownFields() { * * *
    -     * When true and use_topic_schema is true, any fields that are a part of the
    -     * topic schema that are not part of the BigQuery table schema are dropped
    -     * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
    -     * any messages with extra fields are not written and remain in the
    +     * Optional. When true and use_topic_schema is true, any fields that are a
    +     * part of the topic schema that are not part of the BigQuery table schema are
    +     * dropped when writing to BigQuery. Otherwise, the schemas must be kept in
    +     * sync and any messages with extra fields are not written and remain in the
          * subscription's backlog.
          * 
    * - * bool drop_unknown_fields = 4; + * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The dropUnknownFields to set. * @return This builder for chaining. @@ -1182,14 +1206,14 @@ public Builder setDropUnknownFields(boolean value) { * * *
    -     * When true and use_topic_schema is true, any fields that are a part of the
    -     * topic schema that are not part of the BigQuery table schema are dropped
    -     * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
    -     * any messages with extra fields are not written and remain in the
    +     * Optional. When true and use_topic_schema is true, any fields that are a
    +     * part of the topic schema that are not part of the BigQuery table schema are
    +     * dropped when writing to BigQuery. Otherwise, the schemas must be kept in
    +     * sync and any messages with extra fields are not written and remain in the
          * subscription's backlog.
          * 
    * - * bool drop_unknown_fields = 4; + * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index bc805214fe5f..2742cc0019db 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,11 @@ public interface BigQueryConfigOrBuilder * * *
    -   * The name of the table to which to write data, of the form
    +   * Optional. The name of the table to which to write data, of the form
        * {projectId}.{datasetId}.{tableId}
        * 
    * - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The table. */ @@ -40,11 +40,11 @@ public interface BigQueryConfigOrBuilder * * *
    -   * The name of the table to which to write data, of the form
    +   * Optional. The name of the table to which to write data, of the form
        * {projectId}.{datasetId}.{tableId}
        * 
    * - * string table = 1; + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for table. */ @@ -69,14 +69,14 @@ public interface BigQueryConfigOrBuilder * * *
    -   * When true, write the subscription name, message_id, publish_time,
    +   * Optional. When true, write the subscription name, message_id, publish_time,
        * attributes, and ordering_key to additional columns in the table. The
        * subscription name, message_id, and publish_time fields are put in their own
        * columns while all other message properties (other than data) are written to
        * a JSON object in the attributes column.
        * 
    * - * bool write_metadata = 3; + * bool write_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -86,14 +86,14 @@ public interface BigQueryConfigOrBuilder * * *
    -   * When true and use_topic_schema is true, any fields that are a part of the
    -   * topic schema that are not part of the BigQuery table schema are dropped
    -   * when writing to BigQuery. Otherwise, the schemas must be kept in sync and
    -   * any messages with extra fields are not written and remain in the
    +   * Optional. When true and use_topic_schema is true, any fields that are a
    +   * part of the topic schema that are not part of the BigQuery table schema are
    +   * dropped when writing to BigQuery. Otherwise, the schemas must be kept in
    +   * sync and any messages with extra fields are not written and remain in the
        * subscription's backlog.
        * 
    * - * bool drop_unknown_fields = 4; + * bool drop_unknown_fields = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dropUnknownFields. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index a4532a62fc8d..b44f9b42789e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -116,6 +116,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * NOT_FOUND = 3; */ NOT_FOUND(3), + /** + * + * + *
    +     * Cannot write to the destination because enforce_in_transit is set to true
    +     * and the destination locations are not in the allowed regions.
    +     * 
    + * + * IN_TRANSIT_LOCATION_RESTRICTION = 4; + */ + IN_TRANSIT_LOCATION_RESTRICTION(4), UNRECOGNIZED(-1), ; @@ -160,6 +171,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * NOT_FOUND = 3; */ public static final int NOT_FOUND_VALUE = 3; + /** + * + * + *
    +     * Cannot write to the destination because enforce_in_transit is set to true
    +     * and the destination locations are not in the allowed regions.
    +     * 
    + * + * IN_TRANSIT_LOCATION_RESTRICTION = 4; + */ + public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -193,6 +215,8 @@ public static State forNumber(int value) { return PERMISSION_DENIED; case 3: return NOT_FOUND; + case 4: + return IN_TRANSIT_LOCATION_RESTRICTION; default: return null; } @@ -681,15 +705,15 @@ public interface AvroConfigOrBuilder * * *
    -     * When true, write the subscription name, message_id, publish_time,
    -     * attributes, and ordering_key as additional fields in the output. The
    -     * subscription name, message_id, and publish_time fields are put in their
    -     * own fields while all other message properties other than data (for
    -     * example, an ordering_key, if present) are added as entries in the
    -     * attributes map.
    +     * Optional. When true, write the subscription name, message_id,
    +     * publish_time, attributes, and ordering_key as additional fields in the
    +     * output. The subscription name, message_id, and publish_time fields are
    +     * put in their own fields while all other message properties other than
    +     * data (for example, an ordering_key, if present) are added as entries in
    +     * the attributes map.
          * 
    * - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -744,15 +768,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * When true, write the subscription name, message_id, publish_time,
    -     * attributes, and ordering_key as additional fields in the output. The
    -     * subscription name, message_id, and publish_time fields are put in their
    -     * own fields while all other message properties other than data (for
    -     * example, an ordering_key, if present) are added as entries in the
    -     * attributes map.
    +     * Optional. When true, write the subscription name, message_id,
    +     * publish_time, attributes, and ordering_key as additional fields in the
    +     * output. The subscription name, message_id, and publish_time fields are
    +     * put in their own fields while all other message properties other than
    +     * data (for example, an ordering_key, if present) are added as entries in
    +     * the attributes map.
          * 
    * - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1111,15 +1135,15 @@ public Builder mergeFrom( * * *
    -       * When true, write the subscription name, message_id, publish_time,
    -       * attributes, and ordering_key as additional fields in the output. The
    -       * subscription name, message_id, and publish_time fields are put in their
    -       * own fields while all other message properties other than data (for
    -       * example, an ordering_key, if present) are added as entries in the
    -       * attributes map.
    +       * Optional. When true, write the subscription name, message_id,
    +       * publish_time, attributes, and ordering_key as additional fields in the
    +       * output. The subscription name, message_id, and publish_time fields are
    +       * put in their own fields while all other message properties other than
    +       * data (for example, an ordering_key, if present) are added as entries in
    +       * the attributes map.
            * 
    * - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1131,15 +1155,15 @@ public boolean getWriteMetadata() { * * *
    -       * When true, write the subscription name, message_id, publish_time,
    -       * attributes, and ordering_key as additional fields in the output. The
    -       * subscription name, message_id, and publish_time fields are put in their
    -       * own fields while all other message properties other than data (for
    -       * example, an ordering_key, if present) are added as entries in the
    -       * attributes map.
    +       * Optional. When true, write the subscription name, message_id,
    +       * publish_time, attributes, and ordering_key as additional fields in the
    +       * output. The subscription name, message_id, and publish_time fields are
    +       * put in their own fields while all other message properties other than
    +       * data (for example, an ordering_key, if present) are added as entries in
    +       * the attributes map.
            * 
    * - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The writeMetadata to set. * @return This builder for chaining. @@ -1155,15 +1179,15 @@ public Builder setWriteMetadata(boolean value) { * * *
    -       * When true, write the subscription name, message_id, publish_time,
    -       * attributes, and ordering_key as additional fields in the output. The
    -       * subscription name, message_id, and publish_time fields are put in their
    -       * own fields while all other message properties other than data (for
    -       * example, an ordering_key, if present) are added as entries in the
    -       * attributes map.
    +       * Optional. When true, write the subscription name, message_id,
    +       * publish_time, attributes, and ordering_key as additional fields in the
    +       * output. The subscription name, message_id, and publish_time fields are
    +       * put in their own fields while all other message properties other than
    +       * data (for example, an ordering_key, if present) are added as entries in
    +       * the attributes map.
            * 
    * - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1352,11 +1376,11 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
    -   * User-provided prefix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * Optional. User-provided prefix for Cloud Storage filename. See the [object
    +   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
        * 
    * - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenamePrefix. */ @@ -1376,11 +1400,11 @@ public java.lang.String getFilenamePrefix() { * * *
    -   * User-provided prefix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * Optional. User-provided prefix for Cloud Storage filename. See the [object
    +   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
        * 
    * - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenamePrefix. */ @@ -1405,12 +1429,12 @@ public com.google.protobuf.ByteString getFilenamePrefixBytes() { * * *
    -   * User-provided suffix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    -   * not end in "/".
    +   * Optional. User-provided suffix for Cloud Storage filename. See the [object
    +   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * Must not end in "/".
        * 
    * - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenameSuffix. */ @@ -1430,12 +1454,12 @@ public java.lang.String getFilenameSuffix() { * * *
    -   * User-provided suffix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    -   * not end in "/".
    +   * Optional. User-provided suffix for Cloud Storage filename. See the [object
    +   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * Must not end in "/".
        * 
    * - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenameSuffix. */ @@ -1457,10 +1481,13 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { * * *
    -   * If set, message data will be written to Cloud Storage in text format.
    +   * Optional. If set, message data will be written to Cloud Storage in text
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the textConfig field is set. */ @@ -1472,10 +1499,13 @@ public boolean hasTextConfig() { * * *
    -   * If set, message data will be written to Cloud Storage in text format.
    +   * Optional. If set, message data will be written to Cloud Storage in text
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The textConfig. */ @@ -1490,10 +1520,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { * * *
    -   * If set, message data will be written to Cloud Storage in text format.
    +   * Optional. If set, message data will be written to Cloud Storage in text
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder() { @@ -1508,10 +1541,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig * * *
    -   * If set, message data will be written to Cloud Storage in Avro format.
    +   * Optional. If set, message data will be written to Cloud Storage in Avro
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the avroConfig field is set. */ @@ -1523,10 +1559,13 @@ public boolean hasAvroConfig() { * * *
    -   * If set, message data will be written to Cloud Storage in Avro format.
    +   * Optional. If set, message data will be written to Cloud Storage in Avro
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The avroConfig. */ @@ -1541,10 +1580,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { * * *
    -   * If set, message data will be written to Cloud Storage in Avro format.
    +   * Optional. If set, message data will be written to Cloud Storage in Avro
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder() { @@ -1560,12 +1602,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig * * *
    -   * The maximum duration that can elapse before a new Cloud Storage file is
    -   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -   * the subscription's acknowledgement deadline.
    +   * Optional. The maximum duration that can elapse before a new Cloud Storage
    +   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +   * exceed the subscription's acknowledgement deadline.
        * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maxDuration field is set. */ @@ -1577,12 +1620,13 @@ public boolean hasMaxDuration() { * * *
    -   * The maximum duration that can elapse before a new Cloud Storage file is
    -   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -   * the subscription's acknowledgement deadline.
    +   * Optional. The maximum duration that can elapse before a new Cloud Storage
    +   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +   * exceed the subscription's acknowledgement deadline.
        * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maxDuration. */ @@ -1594,12 +1638,13 @@ public com.google.protobuf.Duration getMaxDuration() { * * *
    -   * The maximum duration that can elapse before a new Cloud Storage file is
    -   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -   * the subscription's acknowledgement deadline.
    +   * Optional. The maximum duration that can elapse before a new Cloud Storage
    +   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +   * exceed the subscription's acknowledgement deadline.
        * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { @@ -1612,12 +1657,12 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { * * *
    -   * The maximum bytes that can be written to a Cloud Storage file before a new
    -   * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
    -   * in cases where messages are larger than the limit.
    +   * Optional. The maximum bytes that can be written to a Cloud Storage file
    +   * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
    +   * be exceeded in cases where messages are larger than the limit.
        * 
    * - * int64 max_bytes = 7; + * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxBytes. */ @@ -2358,11 +2403,11 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * * *
    -     * User-provided prefix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * Optional. User-provided prefix for Cloud Storage filename. See the [object
    +     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
          * 
    * - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenamePrefix. */ @@ -2381,11 +2426,11 @@ public java.lang.String getFilenamePrefix() { * * *
    -     * User-provided prefix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * Optional. User-provided prefix for Cloud Storage filename. See the [object
    +     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
          * 
    * - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenamePrefix. */ @@ -2404,11 +2449,11 @@ public com.google.protobuf.ByteString getFilenamePrefixBytes() { * * *
    -     * User-provided prefix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * Optional. User-provided prefix for Cloud Storage filename. See the [object
    +     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
          * 
    * - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filenamePrefix to set. * @return This builder for chaining. @@ -2426,11 +2471,11 @@ public Builder setFilenamePrefix(java.lang.String value) { * * *
    -     * User-provided prefix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * Optional. User-provided prefix for Cloud Storage filename. See the [object
    +     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
          * 
    * - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2444,11 +2489,11 @@ public Builder clearFilenamePrefix() { * * *
    -     * User-provided prefix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * Optional. User-provided prefix for Cloud Storage filename. See the [object
    +     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
          * 
    * - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filenamePrefix to set. * @return This builder for chaining. @@ -2469,12 +2514,12 @@ public Builder setFilenamePrefixBytes(com.google.protobuf.ByteString value) { * * *
    -     * User-provided suffix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    -     * not end in "/".
    +     * Optional. User-provided suffix for Cloud Storage filename. See the [object
    +     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * Must not end in "/".
          * 
    * - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenameSuffix. */ @@ -2493,12 +2538,12 @@ public java.lang.String getFilenameSuffix() { * * *
    -     * User-provided suffix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    -     * not end in "/".
    +     * Optional. User-provided suffix for Cloud Storage filename. See the [object
    +     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * Must not end in "/".
          * 
    * - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenameSuffix. */ @@ -2517,12 +2562,12 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { * * *
    -     * User-provided suffix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    -     * not end in "/".
    +     * Optional. User-provided suffix for Cloud Storage filename. See the [object
    +     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * Must not end in "/".
          * 
    * - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filenameSuffix to set. * @return This builder for chaining. @@ -2540,12 +2585,12 @@ public Builder setFilenameSuffix(java.lang.String value) { * * *
    -     * User-provided suffix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    -     * not end in "/".
    +     * Optional. User-provided suffix for Cloud Storage filename. See the [object
    +     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * Must not end in "/".
          * 
    * - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2559,12 +2604,12 @@ public Builder clearFilenameSuffix() { * * *
    -     * User-provided suffix for Cloud Storage filename. See the [object naming
    -     * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    -     * not end in "/".
    +     * Optional. User-provided suffix for Cloud Storage filename. See the [object
    +     * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    +     * Must not end in "/".
          * 
    * - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filenameSuffix to set. * @return This builder for chaining. @@ -2589,10 +2634,13 @@ public Builder setFilenameSuffixBytes(com.google.protobuf.ByteString value) { * * *
    -     * If set, message data will be written to Cloud Storage in text format.
    +     * Optional. If set, message data will be written to Cloud Storage in text
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the textConfig field is set. */ @@ -2604,10 +2652,13 @@ public boolean hasTextConfig() { * * *
    -     * If set, message data will be written to Cloud Storage in text format.
    +     * Optional. If set, message data will be written to Cloud Storage in text
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The textConfig. */ @@ -2629,10 +2680,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { * * *
    -     * If set, message data will be written to Cloud Storage in text format.
    +     * Optional. If set, message data will be written to Cloud Storage in text
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig value) { if (textConfigBuilder_ == null) { @@ -2651,10 +2705,13 @@ public Builder setTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig * * *
    -     * If set, message data will be written to Cloud Storage in text format.
    +     * Optional. If set, message data will be written to Cloud Storage in text
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTextConfig( com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder builderForValue) { @@ -2671,10 +2728,13 @@ public Builder setTextConfig( * * *
    -     * If set, message data will be written to Cloud Storage in text format.
    +     * Optional. If set, message data will be written to Cloud Storage in text
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig value) { if (textConfigBuilder_ == null) { @@ -2704,10 +2764,13 @@ public Builder mergeTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfi * * *
    -     * If set, message data will be written to Cloud Storage in text format.
    +     * Optional. If set, message data will be written to Cloud Storage in text
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTextConfig() { if (textConfigBuilder_ == null) { @@ -2729,10 +2792,13 @@ public Builder clearTextConfig() { * * *
    -     * If set, message data will be written to Cloud Storage in text format.
    +     * Optional. If set, message data will be written to Cloud Storage in text
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder getTextConfigBuilder() { return getTextConfigFieldBuilder().getBuilder(); @@ -2741,10 +2807,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder getTextConfigB * * *
    -     * If set, message data will be written to Cloud Storage in text format.
    +     * Optional. If set, message data will be written to Cloud Storage in text
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder() { @@ -2761,10 +2830,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig * * *
    -     * If set, message data will be written to Cloud Storage in text format.
    +     * Optional. If set, message data will be written to Cloud Storage in text
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.CloudStorageConfig.TextConfig, @@ -2799,10 +2871,13 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig * * *
    -     * If set, message data will be written to Cloud Storage in Avro format.
    +     * Optional. If set, message data will be written to Cloud Storage in Avro
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the avroConfig field is set. */ @@ -2814,10 +2889,13 @@ public boolean hasAvroConfig() { * * *
    -     * If set, message data will be written to Cloud Storage in Avro format.
    +     * Optional. If set, message data will be written to Cloud Storage in Avro
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The avroConfig. */ @@ -2839,10 +2917,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { * * *
    -     * If set, message data will be written to Cloud Storage in Avro format.
    +     * Optional. If set, message data will be written to Cloud Storage in Avro
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig value) { if (avroConfigBuilder_ == null) { @@ -2861,10 +2942,13 @@ public Builder setAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig * * *
    -     * If set, message data will be written to Cloud Storage in Avro format.
    +     * Optional. If set, message data will be written to Cloud Storage in Avro
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAvroConfig( com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder builderForValue) { @@ -2881,10 +2965,13 @@ public Builder setAvroConfig( * * *
    -     * If set, message data will be written to Cloud Storage in Avro format.
    +     * Optional. If set, message data will be written to Cloud Storage in Avro
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig value) { if (avroConfigBuilder_ == null) { @@ -2914,10 +3001,13 @@ public Builder mergeAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfi * * *
    -     * If set, message data will be written to Cloud Storage in Avro format.
    +     * Optional. If set, message data will be written to Cloud Storage in Avro
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAvroConfig() { if (avroConfigBuilder_ == null) { @@ -2939,10 +3029,13 @@ public Builder clearAvroConfig() { * * *
    -     * If set, message data will be written to Cloud Storage in Avro format.
    +     * Optional. If set, message data will be written to Cloud Storage in Avro
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder getAvroConfigBuilder() { return getAvroConfigFieldBuilder().getBuilder(); @@ -2951,10 +3044,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder getAvroConfigB * * *
    -     * If set, message data will be written to Cloud Storage in Avro format.
    +     * Optional. If set, message data will be written to Cloud Storage in Avro
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder() { @@ -2971,10 +3067,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig * * *
    -     * If set, message data will be written to Cloud Storage in Avro format.
    +     * Optional. If set, message data will be written to Cloud Storage in Avro
    +     * format.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.CloudStorageConfig.AvroConfig, @@ -3010,12 +3109,13 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig * * *
    -     * The maximum duration that can elapse before a new Cloud Storage file is
    -     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -     * the subscription's acknowledgement deadline.
    +     * Optional. The maximum duration that can elapse before a new Cloud Storage
    +     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +     * exceed the subscription's acknowledgement deadline.
          * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maxDuration field is set. */ @@ -3026,12 +3126,13 @@ public boolean hasMaxDuration() { * * *
    -     * The maximum duration that can elapse before a new Cloud Storage file is
    -     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -     * the subscription's acknowledgement deadline.
    +     * Optional. The maximum duration that can elapse before a new Cloud Storage
    +     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +     * exceed the subscription's acknowledgement deadline.
          * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maxDuration. */ @@ -3048,12 +3149,13 @@ public com.google.protobuf.Duration getMaxDuration() { * * *
    -     * The maximum duration that can elapse before a new Cloud Storage file is
    -     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -     * the subscription's acknowledgement deadline.
    +     * Optional. The maximum duration that can elapse before a new Cloud Storage
    +     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +     * exceed the subscription's acknowledgement deadline.
          * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaxDuration(com.google.protobuf.Duration value) { if (maxDurationBuilder_ == null) { @@ -3072,12 +3174,13 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { * * *
    -     * The maximum duration that can elapse before a new Cloud Storage file is
    -     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -     * the subscription's acknowledgement deadline.
    +     * Optional. The maximum duration that can elapse before a new Cloud Storage
    +     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +     * exceed the subscription's acknowledgement deadline.
          * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForValue) { if (maxDurationBuilder_ == null) { @@ -3093,12 +3196,13 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal * * *
    -     * The maximum duration that can elapse before a new Cloud Storage file is
    -     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -     * the subscription's acknowledgement deadline.
    +     * Optional. The maximum duration that can elapse before a new Cloud Storage
    +     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +     * exceed the subscription's acknowledgement deadline.
          * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { if (maxDurationBuilder_ == null) { @@ -3120,12 +3224,13 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { * * *
    -     * The maximum duration that can elapse before a new Cloud Storage file is
    -     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -     * the subscription's acknowledgement deadline.
    +     * Optional. The maximum duration that can elapse before a new Cloud Storage
    +     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +     * exceed the subscription's acknowledgement deadline.
          * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaxDuration() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3141,12 +3246,13 @@ public Builder clearMaxDuration() { * * *
    -     * The maximum duration that can elapse before a new Cloud Storage file is
    -     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -     * the subscription's acknowledgement deadline.
    +     * Optional. The maximum duration that can elapse before a new Cloud Storage
    +     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +     * exceed the subscription's acknowledgement deadline.
          * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { bitField0_ |= 0x00000020; @@ -3157,12 +3263,13 @@ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { * * *
    -     * The maximum duration that can elapse before a new Cloud Storage file is
    -     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -     * the subscription's acknowledgement deadline.
    +     * Optional. The maximum duration that can elapse before a new Cloud Storage
    +     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +     * exceed the subscription's acknowledgement deadline.
          * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { if (maxDurationBuilder_ != null) { @@ -3177,12 +3284,13 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { * * *
    -     * The maximum duration that can elapse before a new Cloud Storage file is
    -     * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -     * the subscription's acknowledgement deadline.
    +     * Optional. The maximum duration that can elapse before a new Cloud Storage
    +     * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +     * exceed the subscription's acknowledgement deadline.
          * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -3206,12 +3314,12 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { * * *
    -     * The maximum bytes that can be written to a Cloud Storage file before a new
    -     * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
    -     * in cases where messages are larger than the limit.
    +     * Optional. The maximum bytes that can be written to a Cloud Storage file
    +     * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
    +     * be exceeded in cases where messages are larger than the limit.
          * 
    * - * int64 max_bytes = 7; + * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxBytes. */ @@ -3223,12 +3331,12 @@ public long getMaxBytes() { * * *
    -     * The maximum bytes that can be written to a Cloud Storage file before a new
    -     * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
    -     * in cases where messages are larger than the limit.
    +     * Optional. The maximum bytes that can be written to a Cloud Storage file
    +     * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
    +     * be exceeded in cases where messages are larger than the limit.
          * 
    * - * int64 max_bytes = 7; + * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxBytes to set. * @return This builder for chaining. @@ -3244,12 +3352,12 @@ public Builder setMaxBytes(long value) { * * *
    -     * The maximum bytes that can be written to a Cloud Storage file before a new
    -     * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
    -     * in cases where messages are larger than the limit.
    +     * Optional. The maximum bytes that can be written to a Cloud Storage file
    +     * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
    +     * be exceeded in cases where messages are larger than the limit.
          * 
    * - * int64 max_bytes = 7; + * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 5122f804a3a2..780c0ea61ebb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,11 +58,11 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * User-provided prefix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * Optional. User-provided prefix for Cloud Storage filename. See the [object
    +   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
        * 
    * - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenamePrefix. */ @@ -71,11 +71,11 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * User-provided prefix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * Optional. User-provided prefix for Cloud Storage filename. See the [object
    +   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
        * 
    * - * string filename_prefix = 2; + * string filename_prefix = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenamePrefix. */ @@ -85,12 +85,12 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * User-provided suffix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    -   * not end in "/".
    +   * Optional. User-provided suffix for Cloud Storage filename. See the [object
    +   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * Must not end in "/".
        * 
    * - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filenameSuffix. */ @@ -99,12 +99,12 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * User-provided suffix for Cloud Storage filename. See the [object naming
    -   * requirements](https://cloud.google.com/storage/docs/objects#naming). Must
    -   * not end in "/".
    +   * Optional. User-provided suffix for Cloud Storage filename. See the [object
    +   * naming requirements](https://cloud.google.com/storage/docs/objects#naming).
    +   * Must not end in "/".
        * 
    * - * string filename_suffix = 3; + * string filename_suffix = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filenameSuffix. */ @@ -114,10 +114,13 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * If set, message data will be written to Cloud Storage in text format.
    +   * Optional. If set, message data will be written to Cloud Storage in text
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the textConfig field is set. */ @@ -126,10 +129,13 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * If set, message data will be written to Cloud Storage in text format.
    +   * Optional. If set, message data will be written to Cloud Storage in text
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The textConfig. */ @@ -138,10 +144,13 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * If set, message data will be written to Cloud Storage in text format.
    +   * Optional. If set, message data will be written to Cloud Storage in text
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4; + * + * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfigOrBuilder(); @@ -149,10 +158,13 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * If set, message data will be written to Cloud Storage in Avro format.
    +   * Optional. If set, message data will be written to Cloud Storage in Avro
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the avroConfig field is set. */ @@ -161,10 +173,13 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * If set, message data will be written to Cloud Storage in Avro format.
    +   * Optional. If set, message data will be written to Cloud Storage in Avro
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The avroConfig. */ @@ -173,10 +188,13 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * If set, message data will be written to Cloud Storage in Avro format.
    +   * Optional. If set, message data will be written to Cloud Storage in Avro
    +   * format.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5; + * + * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfigOrBuilder(); @@ -184,12 +202,13 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * The maximum duration that can elapse before a new Cloud Storage file is
    -   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -   * the subscription's acknowledgement deadline.
    +   * Optional. The maximum duration that can elapse before a new Cloud Storage
    +   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +   * exceed the subscription's acknowledgement deadline.
        * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maxDuration field is set. */ @@ -198,12 +217,13 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * The maximum duration that can elapse before a new Cloud Storage file is
    -   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -   * the subscription's acknowledgement deadline.
    +   * Optional. The maximum duration that can elapse before a new Cloud Storage
    +   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +   * exceed the subscription's acknowledgement deadline.
        * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maxDuration. */ @@ -212,12 +232,13 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * The maximum duration that can elapse before a new Cloud Storage file is
    -   * created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
    -   * the subscription's acknowledgement deadline.
    +   * Optional. The maximum duration that can elapse before a new Cloud Storage
    +   * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
    +   * exceed the subscription's acknowledgement deadline.
        * 
    * - * .google.protobuf.Duration max_duration = 6; + * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder(); @@ -225,12 +246,12 @@ public interface CloudStorageConfigOrBuilder * * *
    -   * The maximum bytes that can be written to a Cloud Storage file before a new
    -   * file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded
    -   * in cases where messages are larger than the limit.
    +   * Optional. The maximum bytes that can be written to a Cloud Storage file
    +   * before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
    +   * be exceeded in cases where messages are larger than the limit.
        * 
    * - * int64 max_bytes = 7; + * int64 max_bytes = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxBytes. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index ba816deeb41b..2c1c5b2dd492 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 7ac207df8b46..3bdf1c9bf7ff 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 82fe63cea74c..c53c7f0ab84b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -189,8 +189,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. *
    * * string schema_id = 3; @@ -216,8 +216,8 @@ public java.lang.String getSchemaId() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. *
    * * string schema_id = 3; @@ -976,8 +976,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. *
    * * string schema_id = 3; @@ -1002,8 +1002,8 @@ public java.lang.String getSchemaId() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. *
    * * string schema_id = 3; @@ -1028,8 +1028,8 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. * * * string schema_id = 3; @@ -1053,8 +1053,8 @@ public Builder setSchemaId(java.lang.String value) { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. * * * string schema_id = 3; @@ -1074,8 +1074,8 @@ public Builder clearSchemaId() { * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. * * * string schema_id = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index c4cc829626de..4d7883850abb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -108,8 +108,8 @@ public interface CreateSchemaRequestOrBuilder * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. * * * string schema_id = 3; @@ -124,8 +124,8 @@ public interface CreateSchemaRequestOrBuilder * The ID to use for the schema, which will become the final component of * the schema's resource name. * - * See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - * name constraints. + * See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + * resource name constraints. * * * string schema_id = 3; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 3918f5ca6849..5cd0670a26e6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -240,11 +240,11 @@ public int getLabelsCount() { * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -263,11 +263,11 @@ public java.util.Map getLabels() { * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -277,11 +277,11 @@ public java.util.Map getLabelsMap() { * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -298,11 +298,11 @@ public java.util.Map getLabelsMap() { * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -1063,11 +1063,11 @@ public int getLabelsCount() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -1086,11 +1086,11 @@ public java.util.Map getLabels() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -1100,11 +1100,11 @@ public java.util.Map getLabelsMap() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -1121,11 +1121,11 @@ public java.util.Map getLabelsMap() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -1148,11 +1148,11 @@ public Builder clearLabels() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -1171,11 +1171,11 @@ public java.util.Map getMutableLabels() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -1192,11 +1192,11 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index ee4a6d68fb0d..ae5776a895f0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -111,22 +111,22 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -136,22 +136,22 @@ public interface CreateSnapshotRequestOrBuilder * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -162,11 +162,11 @@ java.lang.String getLabelsOrDefault( * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 3; + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 08f316b308cb..04e61da321d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,18 +74,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * 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-pubsub.iam.gserviceaccount.com) must have
    -   * permission to Publish() to this topic.
    +   * Optional. The name of the topic to which dead letter messages should be
    +   * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
    +   * service account associated with the enclosing 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 subscription attached to this topic
        * since messages published to a topic with no subscriptions are lost.
        * 
    * - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deadLetterTopic. */ @@ -105,18 +105,18 @@ public java.lang.String getDeadLetterTopic() { * * *
    -   * 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-pubsub.iam.gserviceaccount.com) must have
    -   * permission to Publish() to this topic.
    +   * Optional. The name of the topic to which dead letter messages should be
    +   * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
    +   * service account associated with the enclosing 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 subscription attached to this topic
        * since messages published to a topic with no subscriptions are lost.
        * 
    * - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for deadLetterTopic. */ @@ -139,8 +139,8 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * * *
    -   * The maximum number of delivery attempts for any message. The value must be
    -   * between 5 and 100.
    +   * Optional. The maximum number of delivery attempts for any message. The
    +   * value must be between 5 and 100.
        *
        * The number of delivery attempts is defined as 1 + (the sum of number of
        * NACKs and number of times the acknowledgement deadline has been exceeded
    @@ -154,7 +154,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() {
        * If this parameter is 0, a default value of 5 is used.
        * 
    * - * int32 max_delivery_attempts = 2; + * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxDeliveryAttempts. */ @@ -533,18 +533,18 @@ public Builder mergeFrom( * * *
    -     * 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-pubsub.iam.gserviceaccount.com) must have
    -     * permission to Publish() to this topic.
    +     * Optional. The name of the topic to which dead letter messages should be
    +     * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
    +     * service account associated with the enclosing 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 subscription attached to this topic
          * since messages published to a topic with no subscriptions are lost.
          * 
    * - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deadLetterTopic. */ @@ -563,18 +563,18 @@ public java.lang.String getDeadLetterTopic() { * * *
    -     * 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-pubsub.iam.gserviceaccount.com) must have
    -     * permission to Publish() to this topic.
    +     * Optional. The name of the topic to which dead letter messages should be
    +     * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
    +     * service account associated with the enclosing 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 subscription attached to this topic
          * since messages published to a topic with no subscriptions are lost.
          * 
    * - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for deadLetterTopic. */ @@ -593,18 +593,18 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * * *
    -     * 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-pubsub.iam.gserviceaccount.com) must have
    -     * permission to Publish() to this topic.
    +     * Optional. The name of the topic to which dead letter messages should be
    +     * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
    +     * service account associated with the enclosing 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 subscription attached to this topic
          * since messages published to a topic with no subscriptions are lost.
          * 
    * - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The deadLetterTopic to set. * @return This builder for chaining. @@ -622,18 +622,18 @@ public Builder setDeadLetterTopic(java.lang.String value) { * * *
    -     * 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-pubsub.iam.gserviceaccount.com) must have
    -     * permission to Publish() to this topic.
    +     * Optional. The name of the topic to which dead letter messages should be
    +     * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
    +     * service account associated with the enclosing 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 subscription attached to this topic
          * since messages published to a topic with no subscriptions are lost.
          * 
    * - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -647,18 +647,18 @@ public Builder clearDeadLetterTopic() { * * *
    -     * 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-pubsub.iam.gserviceaccount.com) must have
    -     * permission to Publish() to this topic.
    +     * Optional. The name of the topic to which dead letter messages should be
    +     * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
    +     * service account associated with the enclosing 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 subscription attached to this topic
          * since messages published to a topic with no subscriptions are lost.
          * 
    * - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. @@ -679,8 +679,8 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { * * *
    -     * The maximum number of delivery attempts for any message. The value must be
    -     * between 5 and 100.
    +     * Optional. The maximum number of delivery attempts for any message. The
    +     * value must be between 5 and 100.
          *
          * The number of delivery attempts is defined as 1 + (the sum of number of
          * NACKs and number of times the acknowledgement deadline has been exceeded
    @@ -694,7 +694,7 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) {
          * If this parameter is 0, a default value of 5 is used.
          * 
    * - * int32 max_delivery_attempts = 2; + * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxDeliveryAttempts. */ @@ -706,8 +706,8 @@ public int getMaxDeliveryAttempts() { * * *
    -     * The maximum number of delivery attempts for any message. The value must be
    -     * between 5 and 100.
    +     * Optional. The maximum number of delivery attempts for any message. The
    +     * value must be between 5 and 100.
          *
          * The number of delivery attempts is defined as 1 + (the sum of number of
          * NACKs and number of times the acknowledgement deadline has been exceeded
    @@ -721,7 +721,7 @@ public int getMaxDeliveryAttempts() {
          * If this parameter is 0, a default value of 5 is used.
          * 
    * - * int32 max_delivery_attempts = 2; + * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxDeliveryAttempts to set. * @return This builder for chaining. @@ -737,8 +737,8 @@ public Builder setMaxDeliveryAttempts(int value) { * * *
    -     * The maximum number of delivery attempts for any message. The value must be
    -     * between 5 and 100.
    +     * Optional. The maximum number of delivery attempts for any message. The
    +     * value must be between 5 and 100.
          *
          * The number of delivery attempts is defined as 1 + (the sum of number of
          * NACKs and number of times the acknowledgement deadline has been exceeded
    @@ -752,7 +752,7 @@ public Builder setMaxDeliveryAttempts(int value) {
          * If this parameter is 0, a default value of 5 is used.
          * 
    * - * int32 max_delivery_attempts = 2; + * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 57c34d3892e8..8782315f61b6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,18 +27,18 @@ public interface DeadLetterPolicyOrBuilder * * *
    -   * 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-pubsub.iam.gserviceaccount.com) must have
    -   * permission to Publish() to this topic.
    +   * Optional. The name of the topic to which dead letter messages should be
    +   * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
    +   * service account associated with the enclosing 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 subscription attached to this topic
        * since messages published to a topic with no subscriptions are lost.
        * 
    * - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deadLetterTopic. */ @@ -47,18 +47,18 @@ public interface DeadLetterPolicyOrBuilder * * *
    -   * 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-pubsub.iam.gserviceaccount.com) must have
    -   * permission to Publish() to this topic.
    +   * Optional. The name of the topic to which dead letter messages should be
    +   * published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
    +   * service account associated with the enclosing 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 subscription attached to this topic
        * since messages published to a topic with no subscriptions are lost.
        * 
    * - * string dead_letter_topic = 1; + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for deadLetterTopic. */ @@ -68,8 +68,8 @@ public interface DeadLetterPolicyOrBuilder * * *
    -   * The maximum number of delivery attempts for any message. The value must be
    -   * between 5 and 100.
    +   * Optional. The maximum number of delivery attempts for any message. The
    +   * value must be between 5 and 100.
        *
        * The number of delivery attempts is defined as 1 + (the sum of number of
        * NACKs and number of times the acknowledgement deadline has been exceeded
    @@ -83,7 +83,7 @@ public interface DeadLetterPolicyOrBuilder
        * If this parameter is 0, a default value of 5 is used.
        * 
    * - * int32 max_delivery_attempts = 2; + * int32 max_delivery_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxDeliveryAttempts. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index 05b705298f2b..f2b94a7609c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 9a119b4b651c..a40fb98aa780 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index d057aaf47353..3f028830247e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 1286bce9f87e..5b6bb574f190 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 3d494f98f671..a8429c3def10 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index c69c25ca8692..49328a977811 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index d91bb8783da0..28aecaaddec6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 53ffc2512095..793cb2a1636e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index a4055d287565..df449fac8926 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 8360c7745d53..00b6fa902151 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 910c1f9e2c5d..b563d3d387df 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 6b348ec14048..50b968b41da8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 0eae1bac20d1..a0c910e2c57d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 4d8a60b3aae8..e667c16efcaf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 6f07b9ea47b4..883df5b84aa3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 89229dd471d7..a64bf1fec913 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -67,15 +67,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * 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 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.
    +   * Optional. 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 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.
        * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the ttl field is set. */ @@ -87,15 +87,15 @@ public boolean hasTtl() { * * *
    -   * 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 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.
    +   * Optional. 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 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.
        * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ttl. */ @@ -107,15 +107,15 @@ public com.google.protobuf.Duration getTtl() { * * *
    -   * 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 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.
    +   * Optional. 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 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.
        * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { @@ -479,15 +479,15 @@ public Builder mergeFrom( * * *
    -     * 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 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.
    +     * Optional. 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 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.
          * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the ttl field is set. */ @@ -498,15 +498,15 @@ public boolean hasTtl() { * * *
    -     * 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 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.
    +     * Optional. 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 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.
          * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ttl. */ @@ -521,15 +521,15 @@ public com.google.protobuf.Duration getTtl() { * * *
    -     * 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 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.
    +     * Optional. 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 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.
          * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTtl(com.google.protobuf.Duration value) { if (ttlBuilder_ == null) { @@ -548,15 +548,15 @@ public Builder setTtl(com.google.protobuf.Duration value) { * * *
    -     * 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 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.
    +     * Optional. 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 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.
          * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { if (ttlBuilder_ == null) { @@ -572,15 +572,15 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { * * *
    -     * 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 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.
    +     * Optional. 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 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.
          * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeTtl(com.google.protobuf.Duration value) { if (ttlBuilder_ == null) { @@ -602,15 +602,15 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { * * *
    -     * 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 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.
    +     * Optional. 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 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.
          * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTtl() { bitField0_ = (bitField0_ & ~0x00000001); @@ -626,15 +626,15 @@ public Builder clearTtl() { * * *
    -     * 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 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.
    +     * Optional. 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 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.
          * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getTtlBuilder() { bitField0_ |= 0x00000001; @@ -645,15 +645,15 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() { * * *
    -     * 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 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.
    +     * Optional. 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 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.
          * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { if (ttlBuilder_ != null) { @@ -666,15 +666,15 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { * * *
    -     * 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 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.
    +     * Optional. 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 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.
          * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 1b35de3b7914..c46d53a5fa13 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,15 +27,15 @@ public interface ExpirationPolicyOrBuilder * * *
    -   * 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 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.
    +   * Optional. 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 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.
        * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the ttl field is set. */ @@ -44,15 +44,15 @@ public interface ExpirationPolicyOrBuilder * * *
    -   * 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 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.
    +   * Optional. 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 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.
        * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ttl. */ @@ -61,15 +61,15 @@ public interface ExpirationPolicyOrBuilder * * *
    -   * 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 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.
    +   * Optional. 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 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.
        * 
    * - * .google.protobuf.Duration ttl = 1; + * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 61bf3ff17b76..9d6a6bd871db 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 2ec773994bc9..81fa8291fcc1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 1953ee97c6a2..54051d6112c4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 9eecf39ab37c..2c195ca682c7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 66577cd6cc62..f2bfee1613ef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index bc2288db3d77..a61e7e84f7f3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 59b81305a18b..2b801c10ad62 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 72ce889daaa0..3e38266a3b59 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java new file mode 100644 index 000000000000..04c354d8b0b3 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -0,0 +1,2623 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +/** + * + * + *
    + * Settings for an ingestion data source on a topic.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings} + */ +public final class IngestionDataSourceSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings) + IngestionDataSourceSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use IngestionDataSourceSettings.newBuilder() to construct. + private IngestionDataSourceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IngestionDataSourceSettings() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IngestionDataSourceSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.class, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); + } + + public interface AwsKinesisOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Kinesis
    +     * ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Kinesis
    +     * ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getState(); + + /** + * + * + *
    +     * Required. The Kinesis stream ARN to ingest data from.
    +     * 
    + * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The streamArn. + */ + java.lang.String getStreamArn(); + /** + * + * + *
    +     * Required. The Kinesis stream ARN to ingest data from.
    +     * 
    + * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for streamArn. + */ + com.google.protobuf.ByteString getStreamArnBytes(); + + /** + * + * + *
    +     * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
    +     * Fan-Out mode. The consumer must be already created and ready to be used.
    +     * 
    + * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The consumerArn. + */ + java.lang.String getConsumerArn(); + /** + * + * + *
    +     * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
    +     * Fan-Out mode. The consumer must be already created and ready to be used.
    +     * 
    + * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for consumerArn. + */ + com.google.protobuf.ByteString getConsumerArnBytes(); + + /** + * + * + *
    +     * Required. AWS role ARN to be used for Federated Identity authentication
    +     * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
    +     * required permissions that need to be attached to it.
    +     * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + java.lang.String getAwsRoleArn(); + /** + * + * + *
    +     * Required. AWS role ARN to be used for Federated Identity authentication
    +     * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
    +     * required permissions that need to be attached to it.
    +     * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + com.google.protobuf.ByteString getAwsRoleArnBytes(); + + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
    +     * the provided role). The `aws_role_arn` must be set up with
    +     * `accounts.google.com:sub` equals to this service account number.
    +     * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + java.lang.String getGcpServiceAccount(); + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
    +     * the provided role). The `aws_role_arn` must be set up with
    +     * `accounts.google.com:sub` equals to this service account number.
    +     * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + com.google.protobuf.ByteString getGcpServiceAccountBytes(); + } + /** + * + * + *
    +   * Ingestion settings for Amazon Kinesis Data Streams.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} + */ + public static final class AwsKinesis extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) + AwsKinesisOrBuilder { + private static final long serialVersionUID = 0L; + // Use AwsKinesis.newBuilder() to construct. + private AwsKinesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AwsKinesis() { + state_ = 0; + streamArn_ = ""; + consumerArn_ = ""; + awsRoleArn_ = ""; + gcpServiceAccount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsKinesis(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder.class); + } + + /** + * + * + *
    +     * Possible states for managed ingestion from Amazon Kinesis Data Streams.
    +     * 
    + * + * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +       * Ingestion is active.
    +       * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +       * Permission denied encountered while consuming data from Kinesis.
    +       * This can happen if:
    +       *   - The provided `aws_role_arn` does not exist or does not have the
    +       *     appropriate permissions attached.
    +       *   - The provided `aws_role_arn` is not set up properly for Identity
    +       *     Federation using `gcp_service_account`.
    +       *   - The Pub/Sub SA is not granted the
    +       *     `iam.serviceAccounts.getOpenIdToken` permission on
    +       *     `gcp_service_account`.
    +       * 
    + * + * KINESIS_PERMISSION_DENIED = 2; + */ + KINESIS_PERMISSION_DENIED(2), + /** + * + * + *
    +       * Permission denied encountered while publishing to the topic. This can
    +       * happen due to Pub/Sub SA has not been granted the [appropriate publish
    +       * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
    +       * 
    + * + * PUBLISH_PERMISSION_DENIED = 3; + */ + PUBLISH_PERMISSION_DENIED(3), + /** + * + * + *
    +       * The Kinesis stream does not exist.
    +       * 
    + * + * STREAM_NOT_FOUND = 4; + */ + STREAM_NOT_FOUND(4), + /** + * + * + *
    +       * The Kinesis consumer does not exist.
    +       * 
    + * + * CONSUMER_NOT_FOUND = 5; + */ + CONSUMER_NOT_FOUND(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +       * Ingestion is active.
    +       * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +       * Permission denied encountered while consuming data from Kinesis.
    +       * This can happen if:
    +       *   - The provided `aws_role_arn` does not exist or does not have the
    +       *     appropriate permissions attached.
    +       *   - The provided `aws_role_arn` is not set up properly for Identity
    +       *     Federation using `gcp_service_account`.
    +       *   - The Pub/Sub SA is not granted the
    +       *     `iam.serviceAccounts.getOpenIdToken` permission on
    +       *     `gcp_service_account`.
    +       * 
    + * + * KINESIS_PERMISSION_DENIED = 2; + */ + public static final int KINESIS_PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
    +       * Permission denied encountered while publishing to the topic. This can
    +       * happen due to Pub/Sub SA has not been granted the [appropriate publish
    +       * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
    +       * 
    + * + * PUBLISH_PERMISSION_DENIED = 3; + */ + public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** + * + * + *
    +       * The Kinesis stream does not exist.
    +       * 
    + * + * STREAM_NOT_FOUND = 4; + */ + public static final int STREAM_NOT_FOUND_VALUE = 4; + /** + * + * + *
    +       * The Kinesis consumer does not exist.
    +       * 
    + * + * CONSUMER_NOT_FOUND = 5; + */ + public static final int CONSUMER_NOT_FOUND_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return KINESIS_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return STREAM_NOT_FOUND; + case 5: + return CONSUMER_NOT_FOUND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Kinesis
    +     * ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Kinesis
    +     * ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.UNRECOGNIZED + : result; + } + + public static final int STREAM_ARN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object streamArn_ = ""; + /** + * + * + *
    +     * Required. The Kinesis stream ARN to ingest data from.
    +     * 
    + * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The streamArn. + */ + @java.lang.Override + public java.lang.String getStreamArn() { + java.lang.Object ref = streamArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + streamArn_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The Kinesis stream ARN to ingest data from.
    +     * 
    + * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for streamArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStreamArnBytes() { + java.lang.Object ref = streamArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + streamArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONSUMER_ARN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object consumerArn_ = ""; + /** + * + * + *
    +     * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
    +     * Fan-Out mode. The consumer must be already created and ready to be used.
    +     * 
    + * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The consumerArn. + */ + @java.lang.Override + public java.lang.String getConsumerArn() { + java.lang.Object ref = consumerArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerArn_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
    +     * Fan-Out mode. The consumer must be already created and ready to be used.
    +     * 
    + * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for consumerArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsumerArnBytes() { + java.lang.Object ref = consumerArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AWS_ROLE_ARN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object awsRoleArn_ = ""; + /** + * + * + *
    +     * Required. AWS role ARN to be used for Federated Identity authentication
    +     * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
    +     * required permissions that need to be attached to it.
    +     * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + @java.lang.Override + public java.lang.String getAwsRoleArn() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + awsRoleArn_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. AWS role ARN to be used for Federated Identity authentication
    +     * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
    +     * required permissions that need to be attached to it.
    +     * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAwsRoleArnBytes() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + awsRoleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_SERVICE_ACCOUNT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
    +     * the provided role). The `aws_role_arn` must be set up with
    +     * `accounts.google.com:sub` equals to this service account number.
    +     * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + @java.lang.Override + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
    +     * the provided role). The `aws_role_arn` must be set up with
    +     * `accounts.google.com:sub` equals to this service account number.
    +     * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, streamArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, consumerArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, awsRoleArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, gcpServiceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, consumerArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, awsRoleArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, gcpServiceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis other = + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) obj; + + if (state_ != other.state_) return false; + if (!getStreamArn().equals(other.getStreamArn())) return false; + if (!getConsumerArn().equals(other.getConsumerArn())) return false; + if (!getAwsRoleArn().equals(other.getAwsRoleArn())) return false; + if (!getGcpServiceAccount().equals(other.getGcpServiceAccount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STREAM_ARN_FIELD_NUMBER; + hash = (53 * hash) + getStreamArn().hashCode(); + hash = (37 * hash) + CONSUMER_ARN_FIELD_NUMBER; + hash = (53 * hash) + getConsumerArn().hashCode(); + hash = (37 * hash) + AWS_ROLE_ARN_FIELD_NUMBER; + hash = (53 * hash) + getAwsRoleArn().hashCode(); + hash = (37 * hash) + GCP_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getGcpServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Ingestion settings for Amazon Kinesis Data Streams.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + streamArn_ = ""; + consumerArn_ = ""; + awsRoleArn_ = ""; + gcpServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis build() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis result = + new com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.streamArn_ = streamArn_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.consumerArn_ = consumerArn_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.awsRoleArn_ = awsRoleArn_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.gcpServiceAccount_ = gcpServiceAccount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getStreamArn().isEmpty()) { + streamArn_ = other.streamArn_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getConsumerArn().isEmpty()) { + consumerArn_ = other.consumerArn_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAwsRoleArn().isEmpty()) { + awsRoleArn_ = other.awsRoleArn_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGcpServiceAccount().isEmpty()) { + gcpServiceAccount_ = other.gcpServiceAccount_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + streamArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + consumerArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + awsRoleArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + gcpServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Kinesis
    +       * ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Kinesis
    +       * ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Kinesis
    +       * ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Kinesis
    +       * ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Kinesis
    +       * ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object streamArn_ = ""; + /** + * + * + *
    +       * Required. The Kinesis stream ARN to ingest data from.
    +       * 
    + * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The streamArn. + */ + public java.lang.String getStreamArn() { + java.lang.Object ref = streamArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + streamArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The Kinesis stream ARN to ingest data from.
    +       * 
    + * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for streamArn. + */ + public com.google.protobuf.ByteString getStreamArnBytes() { + java.lang.Object ref = streamArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + streamArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The Kinesis stream ARN to ingest data from.
    +       * 
    + * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The streamArn to set. + * @return This builder for chaining. + */ + public Builder setStreamArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + streamArn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The Kinesis stream ARN to ingest data from.
    +       * 
    + * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearStreamArn() { + streamArn_ = getDefaultInstance().getStreamArn(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The Kinesis stream ARN to ingest data from.
    +       * 
    + * + * string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for streamArn to set. + * @return This builder for chaining. + */ + public Builder setStreamArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + streamArn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object consumerArn_ = ""; + /** + * + * + *
    +       * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
    +       * Fan-Out mode. The consumer must be already created and ready to be used.
    +       * 
    + * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The consumerArn. + */ + public java.lang.String getConsumerArn() { + java.lang.Object ref = consumerArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
    +       * Fan-Out mode. The consumer must be already created and ready to be used.
    +       * 
    + * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for consumerArn. + */ + public com.google.protobuf.ByteString getConsumerArnBytes() { + java.lang.Object ref = consumerArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
    +       * Fan-Out mode. The consumer must be already created and ready to be used.
    +       * 
    + * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The consumerArn to set. + * @return This builder for chaining. + */ + public Builder setConsumerArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerArn_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
    +       * Fan-Out mode. The consumer must be already created and ready to be used.
    +       * 
    + * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearConsumerArn() { + consumerArn_ = getDefaultInstance().getConsumerArn(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The Kinesis consumer ARN to used for ingestion in Enhanced
    +       * Fan-Out mode. The consumer must be already created and ready to be used.
    +       * 
    + * + * string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for consumerArn to set. + * @return This builder for chaining. + */ + public Builder setConsumerArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerArn_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object awsRoleArn_ = ""; + /** + * + * + *
    +       * Required. AWS role ARN to be used for Federated Identity authentication
    +       * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
    +       * required permissions that need to be attached to it.
    +       * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + public java.lang.String getAwsRoleArn() { + java.lang.Object ref = awsRoleArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + awsRoleArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. AWS role ARN to be used for Federated Identity authentication
    +       * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
    +       * required permissions that need to be attached to it.
    +       * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + public com.google.protobuf.ByteString getAwsRoleArnBytes() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + awsRoleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. AWS role ARN to be used for Federated Identity authentication
    +       * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
    +       * required permissions that need to be attached to it.
    +       * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The awsRoleArn to set. + * @return This builder for chaining. + */ + public Builder setAwsRoleArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + awsRoleArn_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. AWS role ARN to be used for Federated Identity authentication
    +       * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
    +       * required permissions that need to be attached to it.
    +       * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAwsRoleArn() { + awsRoleArn_ = getDefaultInstance().getAwsRoleArn(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. AWS role ARN to be used for Federated Identity authentication
    +       * with Kinesis. Check the Pub/Sub docs for how to set up this role and the
    +       * required permissions that need to be attached to it.
    +       * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for awsRoleArn to set. + * @return This builder for chaining. + */ + public Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + awsRoleArn_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
    +       * the provided role). The `aws_role_arn` must be set up with
    +       * `accounts.google.com:sub` equals to this service account number.
    +       * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
    +       * the provided role). The `aws_role_arn` must be set up with
    +       * `accounts.google.com:sub` equals to this service account number.
    +       * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
    +       * the provided role). The `aws_role_arn` must be set up with
    +       * `accounts.google.com:sub` equals to this service account number.
    +       * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpServiceAccount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
    +       * the provided role). The `aws_role_arn` must be set up with
    +       * `accounts.google.com:sub` equals to this service account number.
    +       * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGcpServiceAccount() { + gcpServiceAccount_ = getDefaultInstance().getGcpServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
    +       * the provided role). The `aws_role_arn` must be set up with
    +       * `accounts.google.com:sub` equals to this service account number.
    +       * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsKinesis parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AWS_KINESIS(1), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return AWS_KINESIS; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int AWS_KINESIS_FIELD_NUMBER = 1; + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + @java.lang.Override + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sourceCase_ == 1) { + output.writeMessage(1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings other = + (com.google.pubsub.v1.IngestionDataSourceSettings) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getAwsKinesis().equals(other.getAwsKinesis())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (sourceCase_) { + case 1: + hash = (37 * hash) + AWS_KINESIS_FIELD_NUMBER; + hash = (53 * hash) + getAwsKinesis().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.IngestionDataSourceSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Settings for an ingestion data source on a topic.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings) + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.class, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (awsKinesisBuilder_ != null) { + awsKinesisBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings build() { + com.google.pubsub.v1.IngestionDataSourceSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings result = + new com.google.pubsub.v1.IngestionDataSourceSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && awsKinesisBuilder_ != null) { + result.source_ = awsKinesisBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings other) { + if (other == com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) + return this; + switch (other.getSourceCase()) { + case AWS_KINESIS: + { + mergeAwsKinesis(other.getAwsKinesis()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAwsKinesisFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + awsKinesisBuilder_; + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + @java.lang.Override + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return awsKinesisBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + awsKinesisBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { + if (awsKinesisBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + awsKinesisBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + awsKinesisBuilder_.mergeFrom(value); + } else { + awsKinesisBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + awsKinesisBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder + getAwsKinesisBuilder() { + return getAwsKinesisFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { + return awsKinesisBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + getAwsKinesisFieldBuilder() { + if (awsKinesisBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + awsKinesisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return awsKinesisBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings) + private static final com.google.pubsub.v1.IngestionDataSourceSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestionDataSourceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java new file mode 100644 index 000000000000..a343777ad212 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +package com.google.pubsub.v1; + +public interface IngestionDataSourceSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + boolean hasAwsKinesis(); + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis(); + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder getAwsKinesisOrBuilder(); + + com.google.pubsub.v1.IngestionDataSourceSettings.SourceCase getSourceCase(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index cba091850dce..2831126cfe92 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 13e6188f6aab..dbe66052f3a4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index da0e793f16e2..924db94367cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 49517becbd73..062f6c84bdee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 11cb59d07d08..55743761434e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 9c69b0a4b7cb..d8728e99970f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 969592443ec0..44683e3f53c7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index ca5c661c16d3..bbdfbc82d480 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index d2b19ce97ab2..79ec013a9b44 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,10 +126,10 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
    -   * Maximum number of snapshots to return.
    +   * Optional. Maximum number of snapshots to return.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -146,12 +146,12 @@ public int getPageSize() { * * *
    -   * The value returned by the last `ListSnapshotsResponse`; indicates that this
    -   * is a continuation of a prior `ListSnapshots` call, and that the system
    -   * should return the next page of data.
    +   * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    +   * that this is a continuation of a prior `ListSnapshots` call, and that the
    +   * system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,12 +171,12 @@ public java.lang.String getPageToken() { * * *
    -   * The value returned by the last `ListSnapshotsResponse`; indicates that this
    -   * is a continuation of a prior `ListSnapshots` call, and that the system
    -   * should return the next page of data.
    +   * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    +   * that this is a continuation of a prior `ListSnapshots` call, and that the
    +   * system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -706,10 +706,10 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
    -     * Maximum number of snapshots to return.
    +     * Optional. Maximum number of snapshots to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -721,10 +721,10 @@ public int getPageSize() { * * *
    -     * Maximum number of snapshots to return.
    +     * Optional. Maximum number of snapshots to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -740,10 +740,10 @@ public Builder setPageSize(int value) { * * *
    -     * Maximum number of snapshots to return.
    +     * Optional. Maximum number of snapshots to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,12 +759,12 @@ public Builder clearPageSize() { * * *
    -     * The value returned by the last `ListSnapshotsResponse`; indicates that this
    -     * is a continuation of a prior `ListSnapshots` call, and that the system
    -     * should return the next page of data.
    +     * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    +     * that this is a continuation of a prior `ListSnapshots` call, and that the
    +     * system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -783,12 +783,12 @@ public java.lang.String getPageToken() { * * *
    -     * The value returned by the last `ListSnapshotsResponse`; indicates that this
    -     * is a continuation of a prior `ListSnapshots` call, and that the system
    -     * should return the next page of data.
    +     * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    +     * that this is a continuation of a prior `ListSnapshots` call, and that the
    +     * system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -807,12 +807,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * The value returned by the last `ListSnapshotsResponse`; indicates that this
    -     * is a continuation of a prior `ListSnapshots` call, and that the system
    -     * should return the next page of data.
    +     * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    +     * that this is a continuation of a prior `ListSnapshots` call, and that the
    +     * system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -830,12 +830,12 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * The value returned by the last `ListSnapshotsResponse`; indicates that this
    -     * is a continuation of a prior `ListSnapshots` call, and that the system
    -     * should return the next page of data.
    +     * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    +     * that this is a continuation of a prior `ListSnapshots` call, and that the
    +     * system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -849,12 +849,12 @@ public Builder clearPageToken() { * * *
    -     * The value returned by the last `ListSnapshotsResponse`; indicates that this
    -     * is a continuation of a prior `ListSnapshots` call, and that the system
    -     * should return the next page of data.
    +     * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    +     * that this is a continuation of a prior `ListSnapshots` call, and that the
    +     * system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 36487bebd2f6..05f0505adee9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,10 +58,10 @@ public interface ListSnapshotsRequestOrBuilder * * *
    -   * Maximum number of snapshots to return.
    +   * Optional. Maximum number of snapshots to return.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,12 +71,12 @@ public interface ListSnapshotsRequestOrBuilder * * *
    -   * The value returned by the last `ListSnapshotsResponse`; indicates that this
    -   * is a continuation of a prior `ListSnapshots` call, and that the system
    -   * should return the next page of data.
    +   * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    +   * that this is a continuation of a prior `ListSnapshots` call, and that the
    +   * system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -85,12 +85,12 @@ public interface ListSnapshotsRequestOrBuilder * * *
    -   * The value returned by the last `ListSnapshotsResponse`; indicates that this
    -   * is a continuation of a prior `ListSnapshots` call, and that the system
    -   * should return the next page of data.
    +   * Optional. The value returned by the last `ListSnapshotsResponse`; indicates
    +   * that this is a continuation of a prior `ListSnapshots` call, and that the
    +   * system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index cc42bfb6c35c..1c9846664659 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,10 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The resulting snapshots.
    +   * Optional. The resulting snapshots.
        * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getSnapshotsList() { @@ -84,10 +86,12 @@ public java.util.List getSnapshotsList() { * * *
    -   * The resulting snapshots.
    +   * Optional. The resulting snapshots.
        * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -98,10 +102,12 @@ public java.util.List getSnapshotsList() { * * *
    -   * The resulting snapshots.
    +   * Optional. The resulting snapshots.
        * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getSnapshotsCount() { @@ -111,10 +117,12 @@ public int getSnapshotsCount() { * * *
    -   * The resulting snapshots.
    +   * Optional. The resulting snapshots.
        * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.Snapshot getSnapshots(int index) { @@ -124,10 +132,12 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { * * *
    -   * The resulting snapshots.
    +   * Optional. The resulting snapshots.
        * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { @@ -142,11 +152,12 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { * * *
    -   * If not empty, indicates that there may be more snapshot that match the
    -   * request; this value should be passed in a new `ListSnapshotsRequest`.
    +   * Optional. If not empty, indicates that there may be more snapshot that
    +   * match the request; this value should be passed in a new
    +   * `ListSnapshotsRequest`.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -166,11 +177,12 @@ public java.lang.String getNextPageToken() { * * *
    -   * If not empty, indicates that there may be more snapshot that match the
    -   * request; this value should be passed in a new `ListSnapshotsRequest`.
    +   * Optional. If not empty, indicates that there may be more snapshot that
    +   * match the request; this value should be passed in a new
    +   * `ListSnapshotsRequest`.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -618,10 +630,12 @@ private void ensureSnapshotsIsMutable() { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSnapshotsList() { if (snapshotsBuilder_ == null) { @@ -634,10 +648,12 @@ public java.util.List getSnapshotsList() { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getSnapshotsCount() { if (snapshotsBuilder_ == null) { @@ -650,10 +666,12 @@ public int getSnapshotsCount() { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { if (snapshotsBuilder_ == null) { @@ -666,10 +684,12 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { @@ -688,10 +708,12 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { @@ -707,10 +729,12 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { @@ -729,10 +753,12 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { if (snapshotsBuilder_ == null) { @@ -751,10 +777,12 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { @@ -770,10 +798,12 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValu * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder builderForValue) { if (snapshotsBuilder_ == null) { @@ -789,10 +819,12 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllSnapshots( java.lang.Iterable values) { @@ -809,10 +841,12 @@ public Builder addAllSnapshots( * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSnapshots() { if (snapshotsBuilder_ == null) { @@ -828,10 +862,12 @@ public Builder clearSnapshots() { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeSnapshots(int index) { if (snapshotsBuilder_ == null) { @@ -847,10 +883,12 @@ public Builder removeSnapshots(int index) { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder().getBuilder(index); @@ -859,10 +897,12 @@ public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { if (snapshotsBuilder_ == null) { @@ -875,10 +915,12 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSnapshotsOrBuilderList() { @@ -892,10 +934,12 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { return getSnapshotsFieldBuilder() @@ -905,10 +949,12 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder() @@ -918,10 +964,12 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { * * *
    -     * The resulting snapshots.
    +     * Optional. The resulting snapshots.
          * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSnapshotsBuilderList() { return getSnapshotsFieldBuilder().getBuilderList(); @@ -949,11 +997,12 @@ public java.util.List getSnapshotsBuilder * * *
    -     * If not empty, indicates that there may be more snapshot that match the
    -     * request; this value should be passed in a new `ListSnapshotsRequest`.
    +     * Optional. If not empty, indicates that there may be more snapshot that
    +     * match the request; this value should be passed in a new
    +     * `ListSnapshotsRequest`.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -972,11 +1021,12 @@ public java.lang.String getNextPageToken() { * * *
    -     * If not empty, indicates that there may be more snapshot that match the
    -     * request; this value should be passed in a new `ListSnapshotsRequest`.
    +     * Optional. If not empty, indicates that there may be more snapshot that
    +     * match the request; this value should be passed in a new
    +     * `ListSnapshotsRequest`.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -995,11 +1045,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
    -     * If not empty, indicates that there may be more snapshot that match the
    -     * request; this value should be passed in a new `ListSnapshotsRequest`.
    +     * Optional. If not empty, indicates that there may be more snapshot that
    +     * match the request; this value should be passed in a new
    +     * `ListSnapshotsRequest`.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The nextPageToken to set. * @return This builder for chaining. @@ -1017,11 +1068,12 @@ public Builder setNextPageToken(java.lang.String value) { * * *
    -     * If not empty, indicates that there may be more snapshot that match the
    -     * request; this value should be passed in a new `ListSnapshotsRequest`.
    +     * Optional. If not empty, indicates that there may be more snapshot that
    +     * match the request; this value should be passed in a new
    +     * `ListSnapshotsRequest`.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1035,11 +1087,12 @@ public Builder clearNextPageToken() { * * *
    -     * If not empty, indicates that there may be more snapshot that match the
    -     * request; this value should be passed in a new `ListSnapshotsRequest`.
    +     * Optional. If not empty, indicates that there may be more snapshot that
    +     * match the request; this value should be passed in a new
    +     * `ListSnapshotsRequest`.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 4559682d5359..0c3fc0c72d55 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,50 +27,60 @@ public interface ListSnapshotsResponseOrBuilder * * *
    -   * The resulting snapshots.
    +   * Optional. The resulting snapshots.
        * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getSnapshotsList(); /** * * *
    -   * The resulting snapshots.
    +   * Optional. The resulting snapshots.
        * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.Snapshot getSnapshots(int index); /** * * *
    -   * The resulting snapshots.
    +   * Optional. The resulting snapshots.
        * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getSnapshotsCount(); /** * * *
    -   * The resulting snapshots.
    +   * Optional. The resulting snapshots.
        * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getSnapshotsOrBuilderList(); /** * * *
    -   * The resulting snapshots.
    +   * Optional. The resulting snapshots.
        * 
    * - * repeated .google.pubsub.v1.Snapshot snapshots = 1; + * + * repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index); @@ -78,11 +88,12 @@ public interface ListSnapshotsResponseOrBuilder * * *
    -   * If not empty, indicates that there may be more snapshot that match the
    -   * request; this value should be passed in a new `ListSnapshotsRequest`.
    +   * Optional. If not empty, indicates that there may be more snapshot that
    +   * match the request; this value should be passed in a new
    +   * `ListSnapshotsRequest`.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -91,11 +102,12 @@ public interface ListSnapshotsResponseOrBuilder * * *
    -   * If not empty, indicates that there may be more snapshot that match the
    -   * request; this value should be passed in a new `ListSnapshotsRequest`.
    +   * Optional. If not empty, indicates that there may be more snapshot that
    +   * match the request; this value should be passed in a new
    +   * `ListSnapshotsRequest`.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 63bbc9cd4d16..9097f6578d2a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,10 +126,10 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
    -   * Maximum number of subscriptions to return.
    +   * Optional. Maximum number of subscriptions to return.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -146,12 +146,12 @@ public int getPageSize() { * * *
    -   * The value returned by the last `ListSubscriptionsResponse`; indicates that
    -   * this is a continuation of a prior `ListSubscriptions` call, and that the
    -   * system should return the next page of data.
    +   * Optional. The value returned by the last `ListSubscriptionsResponse`;
    +   * indicates that this is a continuation of a prior `ListSubscriptions` call,
    +   * and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,12 +171,12 @@ public java.lang.String getPageToken() { * * *
    -   * The value returned by the last `ListSubscriptionsResponse`; indicates that
    -   * this is a continuation of a prior `ListSubscriptions` call, and that the
    -   * system should return the next page of data.
    +   * Optional. The value returned by the last `ListSubscriptionsResponse`;
    +   * indicates that this is a continuation of a prior `ListSubscriptions` call,
    +   * and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -706,10 +706,10 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
    -     * Maximum number of subscriptions to return.
    +     * Optional. Maximum number of subscriptions to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -721,10 +721,10 @@ public int getPageSize() { * * *
    -     * Maximum number of subscriptions to return.
    +     * Optional. Maximum number of subscriptions to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -740,10 +740,10 @@ public Builder setPageSize(int value) { * * *
    -     * Maximum number of subscriptions to return.
    +     * Optional. Maximum number of subscriptions to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,12 +759,12 @@ public Builder clearPageSize() { * * *
    -     * The value returned by the last `ListSubscriptionsResponse`; indicates that
    -     * this is a continuation of a prior `ListSubscriptions` call, and that the
    -     * system should return the next page of data.
    +     * Optional. The value returned by the last `ListSubscriptionsResponse`;
    +     * indicates that this is a continuation of a prior `ListSubscriptions` call,
    +     * and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -783,12 +783,12 @@ public java.lang.String getPageToken() { * * *
    -     * The value returned by the last `ListSubscriptionsResponse`; indicates that
    -     * this is a continuation of a prior `ListSubscriptions` call, and that the
    -     * system should return the next page of data.
    +     * Optional. The value returned by the last `ListSubscriptionsResponse`;
    +     * indicates that this is a continuation of a prior `ListSubscriptions` call,
    +     * and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -807,12 +807,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * The value returned by the last `ListSubscriptionsResponse`; indicates that
    -     * this is a continuation of a prior `ListSubscriptions` call, and that the
    -     * system should return the next page of data.
    +     * Optional. The value returned by the last `ListSubscriptionsResponse`;
    +     * indicates that this is a continuation of a prior `ListSubscriptions` call,
    +     * and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -830,12 +830,12 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * The value returned by the last `ListSubscriptionsResponse`; indicates that
    -     * this is a continuation of a prior `ListSubscriptions` call, and that the
    -     * system should return the next page of data.
    +     * Optional. The value returned by the last `ListSubscriptionsResponse`;
    +     * indicates that this is a continuation of a prior `ListSubscriptions` call,
    +     * and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -849,12 +849,12 @@ public Builder clearPageToken() { * * *
    -     * The value returned by the last `ListSubscriptionsResponse`; indicates that
    -     * this is a continuation of a prior `ListSubscriptions` call, and that the
    -     * system should return the next page of data.
    +     * Optional. The value returned by the last `ListSubscriptionsResponse`;
    +     * indicates that this is a continuation of a prior `ListSubscriptions` call,
    +     * and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index db2839f6779e..d557e4be46b7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,10 +58,10 @@ public interface ListSubscriptionsRequestOrBuilder * * *
    -   * Maximum number of subscriptions to return.
    +   * Optional. Maximum number of subscriptions to return.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,12 +71,12 @@ public interface ListSubscriptionsRequestOrBuilder * * *
    -   * The value returned by the last `ListSubscriptionsResponse`; indicates that
    -   * this is a continuation of a prior `ListSubscriptions` call, and that the
    -   * system should return the next page of data.
    +   * Optional. The value returned by the last `ListSubscriptionsResponse`;
    +   * indicates that this is a continuation of a prior `ListSubscriptions` call,
    +   * and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -85,12 +85,12 @@ public interface ListSubscriptionsRequestOrBuilder * * *
    -   * The value returned by the last `ListSubscriptionsResponse`; indicates that
    -   * this is a continuation of a prior `ListSubscriptions` call, and that the
    -   * system should return the next page of data.
    +   * Optional. The value returned by the last `ListSubscriptionsResponse`;
    +   * indicates that this is a continuation of a prior `ListSubscriptions` call,
    +   * and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 629620e65c9b..98d4253175ec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,10 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The subscriptions that match the request.
    +   * Optional. The subscriptions that match the request.
        * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getSubscriptionsList() { @@ -84,10 +86,12 @@ public java.util.List getSubscriptionsList() * * *
    -   * The subscriptions that match the request.
    +   * Optional. The subscriptions that match the request.
        * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -98,10 +102,12 @@ public java.util.List getSubscriptionsList() * * *
    -   * The subscriptions that match the request.
    +   * Optional. The subscriptions that match the request.
        * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getSubscriptionsCount() { @@ -111,10 +117,12 @@ public int getSubscriptionsCount() { * * *
    -   * The subscriptions that match the request.
    +   * Optional. The subscriptions that match the request.
        * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.Subscription getSubscriptions(int index) { @@ -124,10 +132,12 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { * * *
    -   * The subscriptions that match the request.
    +   * Optional. The subscriptions that match the request.
        * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) { @@ -142,12 +152,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int * * *
    -   * If not empty, indicates that there may be more subscriptions that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more subscriptions that
    +   * match the request; this value should be passed in a new
        * `ListSubscriptionsRequest` to get more subscriptions.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -167,12 +177,12 @@ public java.lang.String getNextPageToken() { * * *
    -   * If not empty, indicates that there may be more subscriptions that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more subscriptions that
    +   * match the request; this value should be passed in a new
        * `ListSubscriptionsRequest` to get more subscriptions.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -621,10 +631,12 @@ private void ensureSubscriptionsIsMutable() { * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSubscriptionsList() { if (subscriptionsBuilder_ == null) { @@ -637,10 +649,12 @@ public java.util.List getSubscriptionsList() * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getSubscriptionsCount() { if (subscriptionsBuilder_ == null) { @@ -653,10 +667,12 @@ public int getSubscriptionsCount() { * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { if (subscriptionsBuilder_ == null) { @@ -669,10 +685,12 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { @@ -691,10 +709,12 @@ public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription val * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSubscriptions( int index, com.google.pubsub.v1.Subscription.Builder builderForValue) { @@ -711,10 +731,12 @@ public Builder setSubscriptions( * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { @@ -733,10 +755,12 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription value) { if (subscriptionsBuilder_ == null) { @@ -755,10 +779,12 @@ public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription val * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builderForValue) { if (subscriptionsBuilder_ == null) { @@ -774,10 +800,12 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builde * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addSubscriptions( int index, com.google.pubsub.v1.Subscription.Builder builderForValue) { @@ -794,10 +822,12 @@ public Builder addSubscriptions( * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllSubscriptions( java.lang.Iterable values) { @@ -814,10 +844,12 @@ public Builder addAllSubscriptions( * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSubscriptions() { if (subscriptionsBuilder_ == null) { @@ -833,10 +865,12 @@ public Builder clearSubscriptions() { * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeSubscriptions(int index) { if (subscriptionsBuilder_ == null) { @@ -852,10 +886,12 @@ public Builder removeSubscriptions(int index) { * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder().getBuilder(index); @@ -864,10 +900,12 @@ public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int ind * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index) { if (subscriptionsBuilder_ == null) { @@ -880,10 +918,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSubscriptionsOrBuilderList() { @@ -897,10 +937,12 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { return getSubscriptionsFieldBuilder() @@ -910,10 +952,12 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder() @@ -923,10 +967,12 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int ind * * *
    -     * The subscriptions that match the request.
    +     * Optional. The subscriptions that match the request.
          * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getSubscriptionsBuilderList() { return getSubscriptionsFieldBuilder().getBuilderList(); @@ -957,12 +1003,12 @@ public java.util.List getSubscription * * *
    -     * If not empty, indicates that there may be more subscriptions that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more subscriptions that
    +     * match the request; this value should be passed in a new
          * `ListSubscriptionsRequest` to get more subscriptions.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -981,12 +1027,12 @@ public java.lang.String getNextPageToken() { * * *
    -     * If not empty, indicates that there may be more subscriptions that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more subscriptions that
    +     * match the request; this value should be passed in a new
          * `ListSubscriptionsRequest` to get more subscriptions.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -1005,12 +1051,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
    -     * If not empty, indicates that there may be more subscriptions that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more subscriptions that
    +     * match the request; this value should be passed in a new
          * `ListSubscriptionsRequest` to get more subscriptions.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The nextPageToken to set. * @return This builder for chaining. @@ -1028,12 +1074,12 @@ public Builder setNextPageToken(java.lang.String value) { * * *
    -     * If not empty, indicates that there may be more subscriptions that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more subscriptions that
    +     * match the request; this value should be passed in a new
          * `ListSubscriptionsRequest` to get more subscriptions.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1047,12 +1093,12 @@ public Builder clearNextPageToken() { * * *
    -     * If not empty, indicates that there may be more subscriptions that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more subscriptions that
    +     * match the request; this value should be passed in a new
          * `ListSubscriptionsRequest` to get more subscriptions.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 439c431a5743..74d60d6a7a51 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,40 +27,48 @@ public interface ListSubscriptionsResponseOrBuilder * * *
    -   * The subscriptions that match the request.
    +   * Optional. The subscriptions that match the request.
        * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getSubscriptionsList(); /** * * *
    -   * The subscriptions that match the request.
    +   * Optional. The subscriptions that match the request.
        * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.Subscription getSubscriptions(int index); /** * * *
    -   * The subscriptions that match the request.
    +   * Optional. The subscriptions that match the request.
        * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getSubscriptionsCount(); /** * * *
    -   * The subscriptions that match the request.
    +   * Optional. The subscriptions that match the request.
        * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getSubscriptionsOrBuilderList(); @@ -68,10 +76,12 @@ public interface ListSubscriptionsResponseOrBuilder * * *
    -   * The subscriptions that match the request.
    +   * Optional. The subscriptions that match the request.
        * 
    * - * repeated .google.pubsub.v1.Subscription subscriptions = 1; + * + * repeated .google.pubsub.v1.Subscription subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int index); @@ -79,12 +89,12 @@ public interface ListSubscriptionsResponseOrBuilder * * *
    -   * If not empty, indicates that there may be more subscriptions that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more subscriptions that
    +   * match the request; this value should be passed in a new
        * `ListSubscriptionsRequest` to get more subscriptions.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -93,12 +103,12 @@ public interface ListSubscriptionsResponseOrBuilder * * *
    -   * If not empty, indicates that there may be more subscriptions that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more subscriptions that
    +   * match the request; this value should be passed in a new
        * `ListSubscriptionsRequest` to get more subscriptions.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 103e28b75e37..b3418a718b53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,10 +126,10 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -   * Maximum number of snapshot names to return.
    +   * Optional. Maximum number of snapshot names to return.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -146,12 +146,12 @@ public int getPageSize() { * * *
    -   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    -   * that this is a continuation of a prior `ListTopicSnapshots` call, and
    -   * that the system should return the next page of data.
    +   * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    +   * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
    +   * and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,12 +171,12 @@ public java.lang.String getPageToken() { * * *
    -   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    -   * that this is a continuation of a prior `ListTopicSnapshots` call, and
    -   * that the system should return the next page of data.
    +   * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    +   * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
    +   * and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -706,10 +706,10 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * *
    -     * Maximum number of snapshot names to return.
    +     * Optional. Maximum number of snapshot names to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -721,10 +721,10 @@ public int getPageSize() { * * *
    -     * Maximum number of snapshot names to return.
    +     * Optional. Maximum number of snapshot names to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -740,10 +740,10 @@ public Builder setPageSize(int value) { * * *
    -     * Maximum number of snapshot names to return.
    +     * Optional. Maximum number of snapshot names to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,12 +759,12 @@ public Builder clearPageSize() { * * *
    -     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    -     * that this is a continuation of a prior `ListTopicSnapshots` call, and
    -     * that the system should return the next page of data.
    +     * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    +     * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
    +     * and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -783,12 +783,12 @@ public java.lang.String getPageToken() { * * *
    -     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    -     * that this is a continuation of a prior `ListTopicSnapshots` call, and
    -     * that the system should return the next page of data.
    +     * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    +     * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
    +     * and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -807,12 +807,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    -     * that this is a continuation of a prior `ListTopicSnapshots` call, and
    -     * that the system should return the next page of data.
    +     * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    +     * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
    +     * and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -830,12 +830,12 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    -     * that this is a continuation of a prior `ListTopicSnapshots` call, and
    -     * that the system should return the next page of data.
    +     * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    +     * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
    +     * and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -849,12 +849,12 @@ public Builder clearPageToken() { * * *
    -     * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    -     * that this is a continuation of a prior `ListTopicSnapshots` call, and
    -     * that the system should return the next page of data.
    +     * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    +     * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
    +     * and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index d965d0d29859..505e00fe2b36 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,10 +58,10 @@ public interface ListTopicSnapshotsRequestOrBuilder * * *
    -   * Maximum number of snapshot names to return.
    +   * Optional. Maximum number of snapshot names to return.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,12 +71,12 @@ public interface ListTopicSnapshotsRequestOrBuilder * * *
    -   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    -   * that this is a continuation of a prior `ListTopicSnapshots` call, and
    -   * that the system should return the next page of data.
    +   * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    +   * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
    +   * and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -85,12 +85,12 @@ public interface ListTopicSnapshotsRequestOrBuilder * * *
    -   * The value returned by the last `ListTopicSnapshotsResponse`; indicates
    -   * that this is a continuation of a prior `ListTopicSnapshots` call, and
    -   * that the system should return the next page of data.
    +   * Optional. The value returned by the last `ListTopicSnapshotsResponse`;
    +   * indicates that this is a continuation of a prior `ListTopicSnapshots` call,
    +   * and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 9d0eb36e12f9..2b6561aa6e87 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,10 +72,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The names of the snapshots that match the request.
    +   * Optional. The names of the snapshots that match the request.
        * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the snapshots. */ @@ -86,10 +86,10 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { * * *
    -   * The names of the snapshots that match the request.
    +   * Optional. The names of the snapshots that match the request.
        * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of snapshots. */ @@ -100,10 +100,10 @@ public int getSnapshotsCount() { * * *
    -   * The names of the snapshots that match the request.
    +   * Optional. The names of the snapshots that match the request.
        * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -115,10 +115,10 @@ public java.lang.String getSnapshots(int index) { * * *
    -   * The names of the snapshots that match the request.
    +   * Optional. The names of the snapshots that match the request.
        * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. @@ -135,12 +135,12 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { * * *
    -   * If not empty, indicates that there may be more snapshots that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more snapshots that
    +   * match the request; this value should be passed in a new
        * `ListTopicSnapshotsRequest` to get more snapshots.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -160,12 +160,12 @@ public java.lang.String getNextPageToken() { * * *
    -   * If not empty, indicates that there may be more snapshots that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more snapshots that
    +   * match the request; this value should be passed in a new
        * `ListTopicSnapshotsRequest` to get more snapshots.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -575,10 +575,10 @@ private void ensureSnapshotsIsMutable() { * * *
    -     * The names of the snapshots that match the request.
    +     * Optional. The names of the snapshots that match the request.
          * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the snapshots. */ @@ -590,10 +590,10 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { * * *
    -     * The names of the snapshots that match the request.
    +     * Optional. The names of the snapshots that match the request.
          * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of snapshots. */ @@ -604,10 +604,10 @@ public int getSnapshotsCount() { * * *
    -     * The names of the snapshots that match the request.
    +     * Optional. The names of the snapshots that match the request.
          * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -619,10 +619,10 @@ public java.lang.String getSnapshots(int index) { * * *
    -     * The names of the snapshots that match the request.
    +     * Optional. The names of the snapshots that match the request.
          * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. @@ -634,10 +634,10 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { * * *
    -     * The names of the snapshots that match the request.
    +     * Optional. The names of the snapshots that match the request.
          * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The snapshots to set. @@ -657,10 +657,10 @@ public Builder setSnapshots(int index, java.lang.String value) { * * *
    -     * The names of the snapshots that match the request.
    +     * Optional. The names of the snapshots that match the request.
          * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The snapshots to add. * @return This builder for chaining. @@ -679,10 +679,10 @@ public Builder addSnapshots(java.lang.String value) { * * *
    -     * The names of the snapshots that match the request.
    +     * Optional. The names of the snapshots that match the request.
          * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The snapshots to add. * @return This builder for chaining. @@ -698,10 +698,10 @@ public Builder addAllSnapshots(java.lang.Iterable values) { * * *
    -     * The names of the snapshots that match the request.
    +     * Optional. The names of the snapshots that match the request.
          * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -716,10 +716,10 @@ public Builder clearSnapshots() { * * *
    -     * The names of the snapshots that match the request.
    +     * Optional. The names of the snapshots that match the request.
          * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the snapshots to add. * @return This builder for chaining. @@ -741,12 +741,12 @@ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { * * *
    -     * If not empty, indicates that there may be more snapshots that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more snapshots that
    +     * match the request; this value should be passed in a new
          * `ListTopicSnapshotsRequest` to get more snapshots.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -765,12 +765,12 @@ public java.lang.String getNextPageToken() { * * *
    -     * If not empty, indicates that there may be more snapshots that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more snapshots that
    +     * match the request; this value should be passed in a new
          * `ListTopicSnapshotsRequest` to get more snapshots.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -789,12 +789,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
    -     * If not empty, indicates that there may be more snapshots that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more snapshots that
    +     * match the request; this value should be passed in a new
          * `ListTopicSnapshotsRequest` to get more snapshots.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The nextPageToken to set. * @return This builder for chaining. @@ -812,12 +812,12 @@ public Builder setNextPageToken(java.lang.String value) { * * *
    -     * If not empty, indicates that there may be more snapshots that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more snapshots that
    +     * match the request; this value should be passed in a new
          * `ListTopicSnapshotsRequest` to get more snapshots.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -831,12 +831,12 @@ public Builder clearNextPageToken() { * * *
    -     * If not empty, indicates that there may be more snapshots that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more snapshots that
    +     * match the request; this value should be passed in a new
          * `ListTopicSnapshotsRequest` to get more snapshots.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index b24d10865f6b..abbe62fa5681 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,10 +27,10 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
    -   * The names of the snapshots that match the request.
    +   * Optional. The names of the snapshots that match the request.
        * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the snapshots. */ @@ -39,10 +39,10 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
    -   * The names of the snapshots that match the request.
    +   * Optional. The names of the snapshots that match the request.
        * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of snapshots. */ @@ -51,10 +51,10 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
    -   * The names of the snapshots that match the request.
    +   * Optional. The names of the snapshots that match the request.
        * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -64,10 +64,10 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
    -   * The names of the snapshots that match the request.
    +   * Optional. The names of the snapshots that match the request.
        * 
    * - * repeated string snapshots = 1; + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. @@ -78,12 +78,12 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
    -   * If not empty, indicates that there may be more snapshots that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more snapshots that
    +   * match the request; this value should be passed in a new
        * `ListTopicSnapshotsRequest` to get more snapshots.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -92,12 +92,12 @@ public interface ListTopicSnapshotsResponseOrBuilder * * *
    -   * If not empty, indicates that there may be more snapshots that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more snapshots that
    +   * match the request; this value should be passed in a new
        * `ListTopicSnapshotsRequest` to get more snapshots.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 737bd00b73da..01ba987d2e9c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,10 +126,10 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -   * Maximum number of subscription names to return.
    +   * Optional. Maximum number of subscription names to return.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -146,12 +146,12 @@ public int getPageSize() { * * *
    -   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    -   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    -   * that the system should return the next page of data.
    +   * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    +   * indicates that this is a continuation of a prior `ListTopicSubscriptions`
    +   * call, and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,12 +171,12 @@ public java.lang.String getPageToken() { * * *
    -   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    -   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    -   * that the system should return the next page of data.
    +   * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    +   * indicates that this is a continuation of a prior `ListTopicSubscriptions`
    +   * call, and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -707,10 +707,10 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * *
    -     * Maximum number of subscription names to return.
    +     * Optional. Maximum number of subscription names to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -722,10 +722,10 @@ public int getPageSize() { * * *
    -     * Maximum number of subscription names to return.
    +     * Optional. Maximum number of subscription names to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -741,10 +741,10 @@ public Builder setPageSize(int value) { * * *
    -     * Maximum number of subscription names to return.
    +     * Optional. Maximum number of subscription names to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -760,12 +760,12 @@ public Builder clearPageSize() { * * *
    -     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    -     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    -     * that the system should return the next page of data.
    +     * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    +     * indicates that this is a continuation of a prior `ListTopicSubscriptions`
    +     * call, and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -784,12 +784,12 @@ public java.lang.String getPageToken() { * * *
    -     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    -     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    -     * that the system should return the next page of data.
    +     * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    +     * indicates that this is a continuation of a prior `ListTopicSubscriptions`
    +     * call, and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -808,12 +808,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    -     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    -     * that the system should return the next page of data.
    +     * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    +     * indicates that this is a continuation of a prior `ListTopicSubscriptions`
    +     * call, and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -831,12 +831,12 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    -     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    -     * that the system should return the next page of data.
    +     * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    +     * indicates that this is a continuation of a prior `ListTopicSubscriptions`
    +     * call, and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -850,12 +850,12 @@ public Builder clearPageToken() { * * *
    -     * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    -     * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    -     * that the system should return the next page of data.
    +     * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    +     * indicates that this is a continuation of a prior `ListTopicSubscriptions`
    +     * call, and that the system should return the next page of data.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index d6bc07531cbd..bf8a6cd5a208 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,10 +58,10 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * *
    -   * Maximum number of subscription names to return.
    +   * Optional. Maximum number of subscription names to return.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,12 +71,12 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * *
    -   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    -   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    -   * that the system should return the next page of data.
    +   * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    +   * indicates that this is a continuation of a prior `ListTopicSubscriptions`
    +   * call, and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -85,12 +85,12 @@ public interface ListTopicSubscriptionsRequestOrBuilder * * *
    -   * The value returned by the last `ListTopicSubscriptionsResponse`; indicates
    -   * that this is a continuation of a prior `ListTopicSubscriptions` call, and
    -   * that the system should return the next page of data.
    +   * Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
    +   * indicates that this is a continuation of a prior `ListTopicSubscriptions`
    +   * call, and that the system should return the next page of data.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index f270eed8dd5b..e139fec3041b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,10 +73,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The names of subscriptions attached to the topic specified in the request.
    +   * Optional. The names of subscriptions attached to the topic specified in the
    +   * request.
        * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the subscriptions. */ @@ -87,10 +90,13 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { * * *
    -   * The names of subscriptions attached to the topic specified in the request.
    +   * Optional. The names of subscriptions attached to the topic specified in the
    +   * request.
        * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of subscriptions. */ @@ -101,10 +107,13 @@ public int getSubscriptionsCount() { * * *
    -   * The names of subscriptions attached to the topic specified in the request.
    +   * Optional. The names of subscriptions attached to the topic specified in the
    +   * request.
        * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The subscriptions at the given index. @@ -116,10 +125,13 @@ public java.lang.String getSubscriptions(int index) { * * *
    -   * The names of subscriptions attached to the topic specified in the request.
    +   * Optional. The names of subscriptions attached to the topic specified in the
    +   * request.
        * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. @@ -136,12 +148,12 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { * * *
    -   * If not empty, indicates that there may be more subscriptions that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more subscriptions that
    +   * match the request; this value should be passed in a new
        * `ListTopicSubscriptionsRequest` to get more subscriptions.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -161,12 +173,12 @@ public java.lang.String getNextPageToken() { * * *
    -   * If not empty, indicates that there may be more subscriptions that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more subscriptions that
    +   * match the request; this value should be passed in a new
        * `ListTopicSubscriptionsRequest` to get more subscriptions.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -576,10 +588,13 @@ private void ensureSubscriptionsIsMutable() { * * *
    -     * The names of subscriptions attached to the topic specified in the request.
    +     * Optional. The names of subscriptions attached to the topic specified in the
    +     * request.
          * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the subscriptions. */ @@ -591,10 +606,13 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { * * *
    -     * The names of subscriptions attached to the topic specified in the request.
    +     * Optional. The names of subscriptions attached to the topic specified in the
    +     * request.
          * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of subscriptions. */ @@ -605,10 +623,13 @@ public int getSubscriptionsCount() { * * *
    -     * The names of subscriptions attached to the topic specified in the request.
    +     * Optional. The names of subscriptions attached to the topic specified in the
    +     * request.
          * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The subscriptions at the given index. @@ -620,10 +641,13 @@ public java.lang.String getSubscriptions(int index) { * * *
    -     * The names of subscriptions attached to the topic specified in the request.
    +     * Optional. The names of subscriptions attached to the topic specified in the
    +     * request.
          * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. @@ -635,10 +659,13 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { * * *
    -     * The names of subscriptions attached to the topic specified in the request.
    +     * Optional. The names of subscriptions attached to the topic specified in the
    +     * request.
          * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index to set the value at. * @param value The subscriptions to set. @@ -658,10 +685,13 @@ public Builder setSubscriptions(int index, java.lang.String value) { * * *
    -     * The names of subscriptions attached to the topic specified in the request.
    +     * Optional. The names of subscriptions attached to the topic specified in the
    +     * request.
          * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The subscriptions to add. * @return This builder for chaining. @@ -680,10 +710,13 @@ public Builder addSubscriptions(java.lang.String value) { * * *
    -     * The names of subscriptions attached to the topic specified in the request.
    +     * Optional. The names of subscriptions attached to the topic specified in the
    +     * request.
          * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param values The subscriptions to add. * @return This builder for chaining. @@ -699,10 +732,13 @@ public Builder addAllSubscriptions(java.lang.Iterable values) * * *
    -     * The names of subscriptions attached to the topic specified in the request.
    +     * Optional. The names of subscriptions attached to the topic specified in the
    +     * request.
          * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -717,10 +753,13 @@ public Builder clearSubscriptions() { * * *
    -     * The names of subscriptions attached to the topic specified in the request.
    +     * Optional. The names of subscriptions attached to the topic specified in the
    +     * request.
          * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes of the subscriptions to add. * @return This builder for chaining. @@ -742,12 +781,12 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { * * *
    -     * If not empty, indicates that there may be more subscriptions that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more subscriptions that
    +     * match the request; this value should be passed in a new
          * `ListTopicSubscriptionsRequest` to get more subscriptions.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -766,12 +805,12 @@ public java.lang.String getNextPageToken() { * * *
    -     * If not empty, indicates that there may be more subscriptions that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more subscriptions that
    +     * match the request; this value should be passed in a new
          * `ListTopicSubscriptionsRequest` to get more subscriptions.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -790,12 +829,12 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
    -     * If not empty, indicates that there may be more subscriptions that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more subscriptions that
    +     * match the request; this value should be passed in a new
          * `ListTopicSubscriptionsRequest` to get more subscriptions.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The nextPageToken to set. * @return This builder for chaining. @@ -813,12 +852,12 @@ public Builder setNextPageToken(java.lang.String value) { * * *
    -     * If not empty, indicates that there may be more subscriptions that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more subscriptions that
    +     * match the request; this value should be passed in a new
          * `ListTopicSubscriptionsRequest` to get more subscriptions.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -832,12 +871,12 @@ public Builder clearNextPageToken() { * * *
    -     * If not empty, indicates that there may be more subscriptions that match
    -     * the request; this value should be passed in a new
    +     * Optional. If not empty, indicates that there may be more subscriptions that
    +     * match the request; this value should be passed in a new
          * `ListTopicSubscriptionsRequest` to get more subscriptions.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index d8c6f021e1f4..942228db785d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,10 +27,13 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
    -   * The names of subscriptions attached to the topic specified in the request.
    +   * Optional. The names of subscriptions attached to the topic specified in the
    +   * request.
        * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the subscriptions. */ @@ -39,10 +42,13 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
    -   * The names of subscriptions attached to the topic specified in the request.
    +   * Optional. The names of subscriptions attached to the topic specified in the
    +   * request.
        * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of subscriptions. */ @@ -51,10 +57,13 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
    -   * The names of subscriptions attached to the topic specified in the request.
    +   * Optional. The names of subscriptions attached to the topic specified in the
    +   * request.
        * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The subscriptions at the given index. @@ -64,10 +73,13 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
    -   * The names of subscriptions attached to the topic specified in the request.
    +   * Optional. The names of subscriptions attached to the topic specified in the
    +   * request.
        * 
    * - * repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... } + * + * repeated string subscriptions = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the subscriptions at the given index. @@ -78,12 +90,12 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
    -   * If not empty, indicates that there may be more subscriptions that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more subscriptions that
    +   * match the request; this value should be passed in a new
        * `ListTopicSubscriptionsRequest` to get more subscriptions.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -92,12 +104,12 @@ public interface ListTopicSubscriptionsResponseOrBuilder * * *
    -   * If not empty, indicates that there may be more subscriptions that match
    -   * the request; this value should be passed in a new
    +   * Optional. If not empty, indicates that there may be more subscriptions that
    +   * match the request; this value should be passed in a new
        * `ListTopicSubscriptionsRequest` to get more subscriptions.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 5c2e9d64bbb8..0bb992da2375 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -126,10 +126,10 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
    -   * Maximum number of topics to return.
    +   * Optional. Maximum number of topics to return.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -146,12 +146,12 @@ public int getPageSize() { * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,12 +171,12 @@ public java.lang.String getPageToken() { * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -705,10 +705,10 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
    -     * Maximum number of topics to return.
    +     * Optional. Maximum number of topics to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -720,10 +720,10 @@ public int getPageSize() { * * *
    -     * Maximum number of topics to return.
    +     * Optional. Maximum number of topics to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -739,10 +739,10 @@ public Builder setPageSize(int value) { * * *
    -     * Maximum number of topics to return.
    +     * Optional. Maximum number of topics to return.
          * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -758,12 +758,12 @@ public Builder clearPageSize() { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -782,12 +782,12 @@ public java.lang.String getPageToken() { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -806,12 +806,12 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -829,12 +829,12 @@ public Builder setPageToken(java.lang.String value) { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -848,12 +848,12 @@ public Builder clearPageToken() { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 3e0d2ffb03f0..8abf06b9616d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,10 +58,10 @@ public interface ListTopicsRequestOrBuilder * * *
    -   * Maximum number of topics to return.
    +   * Optional. Maximum number of topics to return.
        * 
    * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -71,12 +71,12 @@ public interface ListTopicsRequestOrBuilder * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -85,12 +85,12 @@ public interface ListTopicsRequestOrBuilder * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index b3f73a27dd48..d4541e1a5bdb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,10 +71,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The resulting topics.
    +   * Optional. The resulting topics.
        * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getTopicsList() { @@ -84,10 +85,11 @@ public java.util.List getTopicsList() { * * *
    -   * The resulting topics.
    +   * Optional. The resulting topics.
        * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getTopicsOrBuilderList() { @@ -97,10 +99,11 @@ public java.util.List getTopicsOr * * *
    -   * The resulting topics.
    +   * Optional. The resulting topics.
        * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getTopicsCount() { @@ -110,10 +113,11 @@ public int getTopicsCount() { * * *
    -   * The resulting topics.
    +   * Optional. The resulting topics.
        * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.Topic getTopics(int index) { @@ -123,10 +127,11 @@ public com.google.pubsub.v1.Topic getTopics(int index) { * * *
    -   * The resulting topics.
    +   * Optional. The resulting topics.
        * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { @@ -141,11 +146,11 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { * * *
    -   * If not empty, indicates that there may be more topics that match the
    -   * request; this value should be passed in a new `ListTopicsRequest`.
    +   * Optional. If not empty, indicates that there may be more topics that match
    +   * the request; this value should be passed in a new `ListTopicsRequest`.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -165,11 +170,11 @@ public java.lang.String getNextPageToken() { * * *
    -   * If not empty, indicates that there may be more topics that match the
    -   * request; this value should be passed in a new `ListTopicsRequest`.
    +   * Optional. If not empty, indicates that there may be more topics that match
    +   * the request; this value should be passed in a new `ListTopicsRequest`.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -615,10 +620,11 @@ private void ensureTopicsIsMutable() { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTopicsList() { if (topicsBuilder_ == null) { @@ -631,10 +637,11 @@ public java.util.List getTopicsList() { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getTopicsCount() { if (topicsBuilder_ == null) { @@ -647,10 +654,11 @@ public int getTopicsCount() { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Topic getTopics(int index) { if (topicsBuilder_ == null) { @@ -663,10 +671,11 @@ public com.google.pubsub.v1.Topic getTopics(int index) { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { @@ -685,10 +694,11 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { @@ -704,10 +714,11 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics(com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { @@ -726,10 +737,11 @@ public Builder addTopics(com.google.pubsub.v1.Topic value) { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { if (topicsBuilder_ == null) { @@ -748,10 +760,11 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { @@ -767,10 +780,11 @@ public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderForValue) { if (topicsBuilder_ == null) { @@ -786,10 +800,11 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllTopics(java.lang.Iterable values) { if (topicsBuilder_ == null) { @@ -805,10 +820,11 @@ public Builder addAllTopics(java.lang.Iterable - * The resulting topics. + * Optional. The resulting topics. * * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTopics() { if (topicsBuilder_ == null) { @@ -824,10 +840,11 @@ public Builder clearTopics() { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeTopics(int index) { if (topicsBuilder_ == null) { @@ -843,10 +860,11 @@ public Builder removeTopics(int index) { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Topic.Builder getTopicsBuilder(int index) { return getTopicsFieldBuilder().getBuilder(index); @@ -855,10 +873,11 @@ public com.google.pubsub.v1.Topic.Builder getTopicsBuilder(int index) { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { if (topicsBuilder_ == null) { @@ -871,10 +890,11 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTopicsOrBuilderList() { if (topicsBuilder_ != null) { @@ -887,10 +907,11 @@ public java.util.List getTopicsOr * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { return getTopicsFieldBuilder().addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); @@ -899,10 +920,11 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { return getTopicsFieldBuilder() @@ -912,10 +934,11 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { * * *
    -     * The resulting topics.
    +     * Optional. The resulting topics.
          * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getTopicsBuilderList() { return getTopicsFieldBuilder().getBuilderList(); @@ -943,11 +966,11 @@ public java.util.List getTopicsBuilderList() * * *
    -     * If not empty, indicates that there may be more topics that match the
    -     * request; this value should be passed in a new `ListTopicsRequest`.
    +     * Optional. If not empty, indicates that there may be more topics that match
    +     * the request; this value should be passed in a new `ListTopicsRequest`.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -966,11 +989,11 @@ public java.lang.String getNextPageToken() { * * *
    -     * If not empty, indicates that there may be more topics that match the
    -     * request; this value should be passed in a new `ListTopicsRequest`.
    +     * Optional. If not empty, indicates that there may be more topics that match
    +     * the request; this value should be passed in a new `ListTopicsRequest`.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ @@ -989,11 +1012,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
    -     * If not empty, indicates that there may be more topics that match the
    -     * request; this value should be passed in a new `ListTopicsRequest`.
    +     * Optional. If not empty, indicates that there may be more topics that match
    +     * the request; this value should be passed in a new `ListTopicsRequest`.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The nextPageToken to set. * @return This builder for chaining. @@ -1011,11 +1034,11 @@ public Builder setNextPageToken(java.lang.String value) { * * *
    -     * If not empty, indicates that there may be more topics that match the
    -     * request; this value should be passed in a new `ListTopicsRequest`.
    +     * Optional. If not empty, indicates that there may be more topics that match
    +     * the request; this value should be passed in a new `ListTopicsRequest`.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1029,11 +1052,11 @@ public Builder clearNextPageToken() { * * *
    -     * If not empty, indicates that there may be more topics that match the
    -     * request; this value should be passed in a new `ListTopicsRequest`.
    +     * Optional. If not empty, indicates that there may be more topics that match
    +     * the request; this value should be passed in a new `ListTopicsRequest`.
          * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index fd03ece34773..42d7bcb44ccc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,50 +27,55 @@ public interface ListTopicsResponseOrBuilder * * *
    -   * The resulting topics.
    +   * Optional. The resulting topics.
        * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getTopicsList(); /** * * *
    -   * The resulting topics.
    +   * Optional. The resulting topics.
        * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.Topic getTopics(int index); /** * * *
    -   * The resulting topics.
    +   * Optional. The resulting topics.
        * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getTopicsCount(); /** * * *
    -   * The resulting topics.
    +   * Optional. The resulting topics.
        * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getTopicsOrBuilderList(); /** * * *
    -   * The resulting topics.
    +   * Optional. The resulting topics.
        * 
    * - * repeated .google.pubsub.v1.Topic topics = 1; + * repeated .google.pubsub.v1.Topic topics = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index); @@ -78,11 +83,11 @@ public interface ListTopicsResponseOrBuilder * * *
    -   * If not empty, indicates that there may be more topics that match the
    -   * request; this value should be passed in a new `ListTopicsRequest`.
    +   * Optional. If not empty, indicates that there may be more topics that match
    +   * the request; this value should be passed in a new `ListTopicsRequest`.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The nextPageToken. */ @@ -91,11 +96,11 @@ public interface ListTopicsResponseOrBuilder * * *
    -   * If not empty, indicates that there may be more topics that match the
    -   * request; this value should be passed in a new `ListTopicsRequest`.
    +   * Optional. If not empty, indicates that there may be more topics that match
    +   * the request; this value should be passed in a new `ListTopicsRequest`.
        * 
    * - * string next_page_token = 2; + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for nextPageToken. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 06c6e9aba23c..eb2f9ffbff53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,15 +71,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * A list of IDs of Google Cloud regions where messages that are published
    -   * to the topic may be persisted in storage. Messages published by publishers
    -   * running in non-allowed Google Cloud regions (or running outside of Google
    -   * Cloud altogether) are routed for storage in one of the allowed regions.
    -   * An empty list means that no regions are allowed, and is not a valid
    -   * configuration.
    +   * Optional. A list of IDs of Google Cloud regions where messages that are
    +   * published to the topic may be persisted in storage. Messages published by
    +   * publishers running in non-allowed Google Cloud regions (or running outside
    +   * of Google Cloud altogether) are routed for storage in one of the allowed
    +   * regions. An empty list means that no regions are allowed, and is not a
    +   * valid configuration.
        * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the allowedPersistenceRegions. */ @@ -90,15 +92,17 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * *
    -   * A list of IDs of Google Cloud regions where messages that are published
    -   * to the topic may be persisted in storage. Messages published by publishers
    -   * running in non-allowed Google Cloud regions (or running outside of Google
    -   * Cloud altogether) are routed for storage in one of the allowed regions.
    -   * An empty list means that no regions are allowed, and is not a valid
    -   * configuration.
    +   * Optional. A list of IDs of Google Cloud regions where messages that are
    +   * published to the topic may be persisted in storage. Messages published by
    +   * publishers running in non-allowed Google Cloud regions (or running outside
    +   * of Google Cloud altogether) are routed for storage in one of the allowed
    +   * regions. An empty list means that no regions are allowed, and is not a
    +   * valid configuration.
        * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of allowedPersistenceRegions. */ @@ -109,15 +113,17 @@ public int getAllowedPersistenceRegionsCount() { * * *
    -   * A list of IDs of Google Cloud regions where messages that are published
    -   * to the topic may be persisted in storage. Messages published by publishers
    -   * running in non-allowed Google Cloud regions (or running outside of Google
    -   * Cloud altogether) are routed for storage in one of the allowed regions.
    -   * An empty list means that no regions are allowed, and is not a valid
    -   * configuration.
    +   * Optional. A list of IDs of Google Cloud regions where messages that are
    +   * published to the topic may be persisted in storage. Messages published by
    +   * publishers running in non-allowed Google Cloud regions (or running outside
    +   * of Google Cloud altogether) are routed for storage in one of the allowed
    +   * regions. An empty list means that no regions are allowed, and is not a
    +   * valid configuration.
        * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. @@ -129,15 +135,17 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * *
    -   * A list of IDs of Google Cloud regions where messages that are published
    -   * to the topic may be persisted in storage. Messages published by publishers
    -   * running in non-allowed Google Cloud regions (or running outside of Google
    -   * Cloud altogether) are routed for storage in one of the allowed regions.
    -   * An empty list means that no regions are allowed, and is not a valid
    -   * configuration.
    +   * Optional. A list of IDs of Google Cloud regions where messages that are
    +   * published to the topic may be persisted in storage. Messages published by
    +   * publishers running in non-allowed Google Cloud regions (or running outside
    +   * of Google Cloud altogether) are routed for storage in one of the allowed
    +   * regions. An empty list means that no regions are allowed, and is not a
    +   * valid configuration.
        * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. @@ -146,6 +154,28 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde return allowedPersistenceRegions_.getByteString(index); } + public static final int ENFORCE_IN_TRANSIT_FIELD_NUMBER = 2; + private boolean enforceInTransit_ = false; + /** + * + * + *
    +   * Optional. If true, `allowed_persistence_regions` is also used to enforce
    +   * in-transit guarantees for messages. That is, Pub/Sub will fail
    +   * Publish operations on this topic and subscribe operations
    +   * on any subscription attached to this topic in any region that is
    +   * not in `allowed_persistence_regions`.
    +   * 
    + * + * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enforceInTransit. + */ + @java.lang.Override + public boolean getEnforceInTransit() { + return enforceInTransit_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -164,6 +194,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 1, allowedPersistenceRegions_.getRaw(i)); } + if (enforceInTransit_ != false) { + output.writeBool(2, enforceInTransit_); + } getUnknownFields().writeTo(output); } @@ -181,6 +214,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAllowedPersistenceRegionsList().size(); } + if (enforceInTransit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enforceInTransit_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -199,6 +235,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAllowedPersistenceRegionsList().equals(other.getAllowedPersistenceRegionsList())) return false; + if (getEnforceInTransit() != other.getEnforceInTransit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,6 +251,8 @@ public int hashCode() { hash = (37 * hash) + ALLOWED_PERSISTENCE_REGIONS_FIELD_NUMBER; hash = (53 * hash) + getAllowedPersistenceRegionsList().hashCode(); } + hash = (37 * hash) + ENFORCE_IN_TRANSIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnforceInTransit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -354,6 +393,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + enforceInTransit_ = false; return this; } @@ -394,6 +434,9 @@ private void buildPartial0(com.google.pubsub.v1.MessageStoragePolicy result) { allowedPersistenceRegions_.makeImmutable(); result.allowedPersistenceRegions_ = allowedPersistenceRegions_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enforceInTransit_ = enforceInTransit_; + } } @java.lang.Override @@ -451,6 +494,9 @@ public Builder mergeFrom(com.google.pubsub.v1.MessageStoragePolicy other) { } onChanged(); } + if (other.getEnforceInTransit() != false) { + setEnforceInTransit(other.getEnforceInTransit()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -484,6 +530,12 @@ public Builder mergeFrom( allowedPersistenceRegions_.add(s); break; } // case 10 + case 16: + { + enforceInTransit_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -517,15 +569,17 @@ private void ensureAllowedPersistenceRegionsIsMutable() { * * *
    -     * A list of IDs of Google Cloud regions where messages that are published
    -     * to the topic may be persisted in storage. Messages published by publishers
    -     * running in non-allowed Google Cloud regions (or running outside of Google
    -     * Cloud altogether) are routed for storage in one of the allowed regions.
    -     * An empty list means that no regions are allowed, and is not a valid
    -     * configuration.
    +     * Optional. A list of IDs of Google Cloud regions where messages that are
    +     * published to the topic may be persisted in storage. Messages published by
    +     * publishers running in non-allowed Google Cloud regions (or running outside
    +     * of Google Cloud altogether) are routed for storage in one of the allowed
    +     * regions. An empty list means that no regions are allowed, and is not a
    +     * valid configuration.
          * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the allowedPersistenceRegions. */ @@ -537,15 +591,17 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() * * *
    -     * A list of IDs of Google Cloud regions where messages that are published
    -     * to the topic may be persisted in storage. Messages published by publishers
    -     * running in non-allowed Google Cloud regions (or running outside of Google
    -     * Cloud altogether) are routed for storage in one of the allowed regions.
    -     * An empty list means that no regions are allowed, and is not a valid
    -     * configuration.
    +     * Optional. A list of IDs of Google Cloud regions where messages that are
    +     * published to the topic may be persisted in storage. Messages published by
    +     * publishers running in non-allowed Google Cloud regions (or running outside
    +     * of Google Cloud altogether) are routed for storage in one of the allowed
    +     * regions. An empty list means that no regions are allowed, and is not a
    +     * valid configuration.
          * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of allowedPersistenceRegions. */ @@ -556,15 +612,17 @@ public int getAllowedPersistenceRegionsCount() { * * *
    -     * A list of IDs of Google Cloud regions where messages that are published
    -     * to the topic may be persisted in storage. Messages published by publishers
    -     * running in non-allowed Google Cloud regions (or running outside of Google
    -     * Cloud altogether) are routed for storage in one of the allowed regions.
    -     * An empty list means that no regions are allowed, and is not a valid
    -     * configuration.
    +     * Optional. A list of IDs of Google Cloud regions where messages that are
    +     * published to the topic may be persisted in storage. Messages published by
    +     * publishers running in non-allowed Google Cloud regions (or running outside
    +     * of Google Cloud altogether) are routed for storage in one of the allowed
    +     * regions. An empty list means that no regions are allowed, and is not a
    +     * valid configuration.
          * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. @@ -576,15 +634,17 @@ public java.lang.String getAllowedPersistenceRegions(int index) { * * *
    -     * A list of IDs of Google Cloud regions where messages that are published
    -     * to the topic may be persisted in storage. Messages published by publishers
    -     * running in non-allowed Google Cloud regions (or running outside of Google
    -     * Cloud altogether) are routed for storage in one of the allowed regions.
    -     * An empty list means that no regions are allowed, and is not a valid
    -     * configuration.
    +     * Optional. A list of IDs of Google Cloud regions where messages that are
    +     * published to the topic may be persisted in storage. Messages published by
    +     * publishers running in non-allowed Google Cloud regions (or running outside
    +     * of Google Cloud altogether) are routed for storage in one of the allowed
    +     * regions. An empty list means that no regions are allowed, and is not a
    +     * valid configuration.
          * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. @@ -596,15 +656,17 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde * * *
    -     * A list of IDs of Google Cloud regions where messages that are published
    -     * to the topic may be persisted in storage. Messages published by publishers
    -     * running in non-allowed Google Cloud regions (or running outside of Google
    -     * Cloud altogether) are routed for storage in one of the allowed regions.
    -     * An empty list means that no regions are allowed, and is not a valid
    -     * configuration.
    +     * Optional. A list of IDs of Google Cloud regions where messages that are
    +     * published to the topic may be persisted in storage. Messages published by
    +     * publishers running in non-allowed Google Cloud regions (or running outside
    +     * of Google Cloud altogether) are routed for storage in one of the allowed
    +     * regions. An empty list means that no regions are allowed, and is not a
    +     * valid configuration.
          * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The allowedPersistenceRegions to set. @@ -624,15 +686,17 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { * * *
    -     * A list of IDs of Google Cloud regions where messages that are published
    -     * to the topic may be persisted in storage. Messages published by publishers
    -     * running in non-allowed Google Cloud regions (or running outside of Google
    -     * Cloud altogether) are routed for storage in one of the allowed regions.
    -     * An empty list means that no regions are allowed, and is not a valid
    -     * configuration.
    +     * Optional. A list of IDs of Google Cloud regions where messages that are
    +     * published to the topic may be persisted in storage. Messages published by
    +     * publishers running in non-allowed Google Cloud regions (or running outside
    +     * of Google Cloud altogether) are routed for storage in one of the allowed
    +     * regions. An empty list means that no regions are allowed, and is not a
    +     * valid configuration.
          * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The allowedPersistenceRegions to add. * @return This builder for chaining. @@ -651,15 +715,17 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) { * * *
    -     * A list of IDs of Google Cloud regions where messages that are published
    -     * to the topic may be persisted in storage. Messages published by publishers
    -     * running in non-allowed Google Cloud regions (or running outside of Google
    -     * Cloud altogether) are routed for storage in one of the allowed regions.
    -     * An empty list means that no regions are allowed, and is not a valid
    -     * configuration.
    +     * Optional. A list of IDs of Google Cloud regions where messages that are
    +     * published to the topic may be persisted in storage. Messages published by
    +     * publishers running in non-allowed Google Cloud regions (or running outside
    +     * of Google Cloud altogether) are routed for storage in one of the allowed
    +     * regions. An empty list means that no regions are allowed, and is not a
    +     * valid configuration.
          * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The allowedPersistenceRegions to add. * @return This builder for chaining. @@ -675,15 +741,17 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable - * A list of IDs of Google Cloud regions where messages that are published - * to the topic may be persisted in storage. Messages published by publishers - * running in non-allowed Google Cloud regions (or running outside of Google - * Cloud altogether) are routed for storage in one of the allowed regions. - * An empty list means that no regions are allowed, and is not a valid - * configuration. + * Optional. A list of IDs of Google Cloud regions where messages that are + * published to the topic may be persisted in storage. Messages published by + * publishers running in non-allowed Google Cloud regions (or running outside + * of Google Cloud altogether) are routed for storage in one of the allowed + * regions. An empty list means that no regions are allowed, and is not a + * valid configuration. * * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -698,15 +766,17 @@ public Builder clearAllowedPersistenceRegions() { * * *
    -     * A list of IDs of Google Cloud regions where messages that are published
    -     * to the topic may be persisted in storage. Messages published by publishers
    -     * running in non-allowed Google Cloud regions (or running outside of Google
    -     * Cloud altogether) are routed for storage in one of the allowed regions.
    -     * An empty list means that no regions are allowed, and is not a valid
    -     * configuration.
    +     * Optional. A list of IDs of Google Cloud regions where messages that are
    +     * published to the topic may be persisted in storage. Messages published by
    +     * publishers running in non-allowed Google Cloud regions (or running outside
    +     * of Google Cloud altogether) are routed for storage in one of the allowed
    +     * regions. An empty list means that no regions are allowed, and is not a
    +     * valid configuration.
          * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the allowedPersistenceRegions to add. * @return This builder for chaining. @@ -723,6 +793,71 @@ public Builder addAllowedPersistenceRegionsBytes(com.google.protobuf.ByteString return this; } + private boolean enforceInTransit_; + /** + * + * + *
    +     * Optional. If true, `allowed_persistence_regions` is also used to enforce
    +     * in-transit guarantees for messages. That is, Pub/Sub will fail
    +     * Publish operations on this topic and subscribe operations
    +     * on any subscription attached to this topic in any region that is
    +     * not in `allowed_persistence_regions`.
    +     * 
    + * + * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enforceInTransit. + */ + @java.lang.Override + public boolean getEnforceInTransit() { + return enforceInTransit_; + } + /** + * + * + *
    +     * Optional. If true, `allowed_persistence_regions` is also used to enforce
    +     * in-transit guarantees for messages. That is, Pub/Sub will fail
    +     * Publish operations on this topic and subscribe operations
    +     * on any subscription attached to this topic in any region that is
    +     * not in `allowed_persistence_regions`.
    +     * 
    + * + * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enforceInTransit to set. + * @return This builder for chaining. + */ + public Builder setEnforceInTransit(boolean value) { + + enforceInTransit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. If true, `allowed_persistence_regions` is also used to enforce
    +     * in-transit guarantees for messages. That is, Pub/Sub will fail
    +     * Publish operations on this topic and subscribe operations
    +     * on any subscription attached to this topic in any region that is
    +     * not in `allowed_persistence_regions`.
    +     * 
    + * + * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnforceInTransit() { + bitField0_ = (bitField0_ & ~0x00000002); + enforceInTransit_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 5f075aca0cfd..bc798cf5b351 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,15 +27,17 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * A list of IDs of Google Cloud regions where messages that are published
    -   * to the topic may be persisted in storage. Messages published by publishers
    -   * running in non-allowed Google Cloud regions (or running outside of Google
    -   * Cloud altogether) are routed for storage in one of the allowed regions.
    -   * An empty list means that no regions are allowed, and is not a valid
    -   * configuration.
    +   * Optional. A list of IDs of Google Cloud regions where messages that are
    +   * published to the topic may be persisted in storage. Messages published by
    +   * publishers running in non-allowed Google Cloud regions (or running outside
    +   * of Google Cloud altogether) are routed for storage in one of the allowed
    +   * regions. An empty list means that no regions are allowed, and is not a
    +   * valid configuration.
        * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the allowedPersistenceRegions. */ @@ -44,15 +46,17 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * A list of IDs of Google Cloud regions where messages that are published
    -   * to the topic may be persisted in storage. Messages published by publishers
    -   * running in non-allowed Google Cloud regions (or running outside of Google
    -   * Cloud altogether) are routed for storage in one of the allowed regions.
    -   * An empty list means that no regions are allowed, and is not a valid
    -   * configuration.
    +   * Optional. A list of IDs of Google Cloud regions where messages that are
    +   * published to the topic may be persisted in storage. Messages published by
    +   * publishers running in non-allowed Google Cloud regions (or running outside
    +   * of Google Cloud altogether) are routed for storage in one of the allowed
    +   * regions. An empty list means that no regions are allowed, and is not a
    +   * valid configuration.
        * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of allowedPersistenceRegions. */ @@ -61,15 +65,17 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * A list of IDs of Google Cloud regions where messages that are published
    -   * to the topic may be persisted in storage. Messages published by publishers
    -   * running in non-allowed Google Cloud regions (or running outside of Google
    -   * Cloud altogether) are routed for storage in one of the allowed regions.
    -   * An empty list means that no regions are allowed, and is not a valid
    -   * configuration.
    +   * Optional. A list of IDs of Google Cloud regions where messages that are
    +   * published to the topic may be persisted in storage. Messages published by
    +   * publishers running in non-allowed Google Cloud regions (or running outside
    +   * of Google Cloud altogether) are routed for storage in one of the allowed
    +   * regions. An empty list means that no regions are allowed, and is not a
    +   * valid configuration.
        * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The allowedPersistenceRegions at the given index. @@ -79,18 +85,37 @@ public interface MessageStoragePolicyOrBuilder * * *
    -   * A list of IDs of Google Cloud regions where messages that are published
    -   * to the topic may be persisted in storage. Messages published by publishers
    -   * running in non-allowed Google Cloud regions (or running outside of Google
    -   * Cloud altogether) are routed for storage in one of the allowed regions.
    -   * An empty list means that no regions are allowed, and is not a valid
    -   * configuration.
    +   * Optional. A list of IDs of Google Cloud regions where messages that are
    +   * published to the topic may be persisted in storage. Messages published by
    +   * publishers running in non-allowed Google Cloud regions (or running outside
    +   * of Google Cloud altogether) are routed for storage in one of the allowed
    +   * regions. An empty list means that no regions are allowed, and is not a
    +   * valid configuration.
        * 
    * - * repeated string allowed_persistence_regions = 1; + * + * repeated string allowed_persistence_regions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the allowedPersistenceRegions at the given index. */ com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index); + + /** + * + * + *
    +   * Optional. If true, `allowed_persistence_regions` is also used to enforce
    +   * in-transit guarantees for messages. That is, Pub/Sub will fail
    +   * Publish operations on this topic and subscribe operations
    +   * on any subscription attached to this topic in any region that is
    +   * not in `allowed_persistence_regions`.
    +   * 
    + * + * bool enforce_in_transit = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enforceInTransit. + */ + boolean getEnforceInTransit(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 8348ebf3c01a..0e876c7b520b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -197,7 +197,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * 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). + * The maximum deadline you can specify in a single request is 600 seconds + * (10 minutes). * * * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -917,7 +918,8 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { * 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). + * The maximum deadline you can specify in a single request is 600 seconds + * (10 minutes). * * * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -939,7 +941,8 @@ public int getAckDeadlineSeconds() { * 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). + * The maximum deadline you can specify in a single request is 600 seconds + * (10 minutes). * * * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -965,7 +968,8 @@ public Builder setAckDeadlineSeconds(int value) { * 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). + * The maximum deadline you can specify in a single request is 600 seconds + * (10 minutes). * * * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 8c0843c7d3bc..ebc7adb1217c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -116,7 +116,8 @@ public interface ModifyAckDeadlineRequestOrBuilder * 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). + * The maximum deadline you can specify in a single request is 600 seconds + * (10 minutes). * * * int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index a1b5050eedf9..149b4c6b700b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 96d5ca4c1528..070e63226fac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 2268fc1626d2..69e13fab3b96 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index a0b5cde08a73..c4309802a593 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 0a0905e94aba..dcc525d03323 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,12 +71,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * The server-assigned ID of each published message, in the same order as
    -   * the messages in the request. IDs are guaranteed to be unique within
    -   * the topic.
    +   * Optional. The server-assigned ID of each published message, in the same
    +   * order as the messages in the request. IDs are guaranteed to be unique
    +   * within the topic.
        * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the messageIds. */ @@ -87,12 +87,12 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { * * *
    -   * The server-assigned ID of each published message, in the same order as
    -   * the messages in the request. IDs are guaranteed to be unique within
    -   * the topic.
    +   * Optional. The server-assigned ID of each published message, in the same
    +   * order as the messages in the request. IDs are guaranteed to be unique
    +   * within the topic.
        * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of messageIds. */ @@ -103,12 +103,12 @@ public int getMessageIdsCount() { * * *
    -   * The server-assigned ID of each published message, in the same order as
    -   * the messages in the request. IDs are guaranteed to be unique within
    -   * the topic.
    +   * Optional. The server-assigned ID of each published message, in the same
    +   * order as the messages in the request. IDs are guaranteed to be unique
    +   * within the topic.
        * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The messageIds at the given index. @@ -120,12 +120,12 @@ public java.lang.String getMessageIds(int index) { * * *
    -   * The server-assigned ID of each published message, in the same order as
    -   * the messages in the request. IDs are guaranteed to be unique within
    -   * the topic.
    +   * Optional. The server-assigned ID of each published message, in the same
    +   * order as the messages in the request. IDs are guaranteed to be unique
    +   * within the topic.
        * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. @@ -499,12 +499,12 @@ private void ensureMessageIdsIsMutable() { * * *
    -     * The server-assigned ID of each published message, in the same order as
    -     * the messages in the request. IDs are guaranteed to be unique within
    -     * the topic.
    +     * Optional. The server-assigned ID of each published message, in the same
    +     * order as the messages in the request. IDs are guaranteed to be unique
    +     * within the topic.
          * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the messageIds. */ @@ -516,12 +516,12 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { * * *
    -     * The server-assigned ID of each published message, in the same order as
    -     * the messages in the request. IDs are guaranteed to be unique within
    -     * the topic.
    +     * Optional. The server-assigned ID of each published message, in the same
    +     * order as the messages in the request. IDs are guaranteed to be unique
    +     * within the topic.
          * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of messageIds. */ @@ -532,12 +532,12 @@ public int getMessageIdsCount() { * * *
    -     * The server-assigned ID of each published message, in the same order as
    -     * the messages in the request. IDs are guaranteed to be unique within
    -     * the topic.
    +     * Optional. The server-assigned ID of each published message, in the same
    +     * order as the messages in the request. IDs are guaranteed to be unique
    +     * within the topic.
          * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The messageIds at the given index. @@ -549,12 +549,12 @@ public java.lang.String getMessageIds(int index) { * * *
    -     * The server-assigned ID of each published message, in the same order as
    -     * the messages in the request. IDs are guaranteed to be unique within
    -     * the topic.
    +     * Optional. The server-assigned ID of each published message, in the same
    +     * order as the messages in the request. IDs are guaranteed to be unique
    +     * within the topic.
          * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. @@ -566,12 +566,12 @@ public com.google.protobuf.ByteString getMessageIdsBytes(int index) { * * *
    -     * The server-assigned ID of each published message, in the same order as
    -     * the messages in the request. IDs are guaranteed to be unique within
    -     * the topic.
    +     * Optional. The server-assigned ID of each published message, in the same
    +     * order as the messages in the request. IDs are guaranteed to be unique
    +     * within the topic.
          * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The messageIds to set. @@ -591,12 +591,12 @@ public Builder setMessageIds(int index, java.lang.String value) { * * *
    -     * The server-assigned ID of each published message, in the same order as
    -     * the messages in the request. IDs are guaranteed to be unique within
    -     * the topic.
    +     * Optional. The server-assigned ID of each published message, in the same
    +     * order as the messages in the request. IDs are guaranteed to be unique
    +     * within the topic.
          * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The messageIds to add. * @return This builder for chaining. @@ -615,12 +615,12 @@ public Builder addMessageIds(java.lang.String value) { * * *
    -     * The server-assigned ID of each published message, in the same order as
    -     * the messages in the request. IDs are guaranteed to be unique within
    -     * the topic.
    +     * Optional. The server-assigned ID of each published message, in the same
    +     * order as the messages in the request. IDs are guaranteed to be unique
    +     * within the topic.
          * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The messageIds to add. * @return This builder for chaining. @@ -636,12 +636,12 @@ public Builder addAllMessageIds(java.lang.Iterable values) { * * *
    -     * The server-assigned ID of each published message, in the same order as
    -     * the messages in the request. IDs are guaranteed to be unique within
    -     * the topic.
    +     * Optional. The server-assigned ID of each published message, in the same
    +     * order as the messages in the request. IDs are guaranteed to be unique
    +     * within the topic.
          * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -656,12 +656,12 @@ public Builder clearMessageIds() { * * *
    -     * The server-assigned ID of each published message, in the same order as
    -     * the messages in the request. IDs are guaranteed to be unique within
    -     * the topic.
    +     * Optional. The server-assigned ID of each published message, in the same
    +     * order as the messages in the request. IDs are guaranteed to be unique
    +     * within the topic.
          * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the messageIds to add. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 7d6f78725dcc..a657c199d188 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,12 +27,12 @@ public interface PublishResponseOrBuilder * * *
    -   * The server-assigned ID of each published message, in the same order as
    -   * the messages in the request. IDs are guaranteed to be unique within
    -   * the topic.
    +   * Optional. The server-assigned ID of each published message, in the same
    +   * order as the messages in the request. IDs are guaranteed to be unique
    +   * within the topic.
        * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the messageIds. */ @@ -41,12 +41,12 @@ public interface PublishResponseOrBuilder * * *
    -   * The server-assigned ID of each published message, in the same order as
    -   * the messages in the request. IDs are guaranteed to be unique within
    -   * the topic.
    +   * Optional. The server-assigned ID of each published message, in the same
    +   * order as the messages in the request. IDs are guaranteed to be unique
    +   * within the topic.
        * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of messageIds. */ @@ -55,12 +55,12 @@ public interface PublishResponseOrBuilder * * *
    -   * The server-assigned ID of each published message, in the same order as
    -   * the messages in the request. IDs are guaranteed to be unique within
    -   * the topic.
    +   * Optional. The server-assigned ID of each published message, in the same
    +   * order as the messages in the request. IDs are guaranteed to be unique
    +   * within the topic.
        * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The messageIds at the given index. @@ -70,12 +70,12 @@ public interface PublishResponseOrBuilder * * *
    -   * The server-assigned ID of each published message, in the same order as
    -   * the messages in the request. IDs are guaranteed to be unique within
    -   * the topic.
    +   * Optional. The server-assigned ID of each published message, in the same
    +   * order as the messages in the request. IDs are guaranteed to be unique
    +   * within the topic.
        * 
    * - * repeated string message_ids = 1; + * repeated string message_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the messageIds at the given index. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index cab47a3c008f..8f310f54c46b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -88,11 +88,11 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
    -   * The message data field. If this field is empty, the message must contain
    -   * at least one attribute.
    +   * Optional. The message data field. If this field is empty, the message must
    +   * contain at least one attribute.
        * 
    * - * bytes data = 1; + * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The data. */ @@ -131,12 +131,13 @@ public int getAttributesCount() { * * *
    -   * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data. This can be used to filter messages on the
    +   * Optional. Attributes for this message. If this field is empty, the message
    +   * must contain non-empty data. This can be used to filter messages on the
        * subscription.
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsAttributes(java.lang.String key) { @@ -155,12 +156,13 @@ public java.util.Map getAttributes() { * * *
    -   * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data. This can be used to filter messages on the
    +   * Optional. Attributes for this message. If this field is empty, the message
    +   * must contain non-empty data. This can be used to filter messages on the
        * subscription.
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { @@ -170,12 +172,13 @@ public java.util.Map getAttributesMap() { * * *
    -   * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data. This can be used to filter messages on the
    +   * Optional. Attributes for this message. If this field is empty, the message
    +   * must contain non-empty data. This can be used to filter messages on the
        * subscription.
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( @@ -192,12 +195,13 @@ public java.util.Map getAttributesMap() { * * *
    -   * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data. This can be used to filter messages on the
    +   * Optional. Attributes for this message. If this field is empty, the message
    +   * must contain non-empty data. This can be used to filter messages on the
        * subscription.
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { @@ -328,17 +332,17 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * * *
    -   * 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.
    -   * For more information, see [ordering
    +   * Optional. 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. For more
    +   * information, see [ordering
        * messages](https://cloud.google.com/pubsub/docs/ordering).
        * 
    * - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderingKey. */ @@ -358,17 +362,17 @@ public java.lang.String getOrderingKey() { * * *
    -   * 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.
    -   * For more information, see [ordering
    +   * Optional. 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. For more
    +   * information, see [ordering
        * messages](https://cloud.google.com/pubsub/docs/ordering).
        * 
    * - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderingKey. */ @@ -869,11 +873,11 @@ public Builder mergeFrom( * * *
    -     * The message data field. If this field is empty, the message must contain
    -     * at least one attribute.
    +     * Optional. The message data field. If this field is empty, the message must
    +     * contain at least one attribute.
          * 
    * - * bytes data = 1; + * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The data. */ @@ -885,11 +889,11 @@ public com.google.protobuf.ByteString getData() { * * *
    -     * The message data field. If this field is empty, the message must contain
    -     * at least one attribute.
    +     * Optional. The message data field. If this field is empty, the message must
    +     * contain at least one attribute.
          * 
    * - * bytes data = 1; + * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The data to set. * @return This builder for chaining. @@ -907,11 +911,11 @@ public Builder setData(com.google.protobuf.ByteString value) { * * *
    -     * The message data field. If this field is empty, the message must contain
    -     * at least one attribute.
    +     * Optional. The message data field. If this field is empty, the message must
    +     * contain at least one attribute.
          * 
    * - * bytes data = 1; + * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -954,12 +958,13 @@ public int getAttributesCount() { * * *
    -     * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data. This can be used to filter messages on the
    +     * Optional. Attributes for this message. If this field is empty, the message
    +     * must contain non-empty data. This can be used to filter messages on the
          * subscription.
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsAttributes(java.lang.String key) { @@ -978,12 +983,13 @@ public java.util.Map getAttributes() { * * *
    -     * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data. This can be used to filter messages on the
    +     * Optional. Attributes for this message. If this field is empty, the message
    +     * must contain non-empty data. This can be used to filter messages on the
          * subscription.
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { @@ -993,12 +999,13 @@ public java.util.Map getAttributesMap() { * * *
    -     * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data. This can be used to filter messages on the
    +     * Optional. Attributes for this message. If this field is empty, the message
    +     * must contain non-empty data. This can be used to filter messages on the
          * subscription.
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( @@ -1015,12 +1022,13 @@ public java.util.Map getAttributesMap() { * * *
    -     * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data. This can be used to filter messages on the
    +     * Optional. Attributes for this message. If this field is empty, the message
    +     * must contain non-empty data. This can be used to filter messages on the
          * subscription.
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { @@ -1043,12 +1051,13 @@ public Builder clearAttributes() { * * *
    -     * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data. This can be used to filter messages on the
    +     * Optional. Attributes for this message. If this field is empty, the message
    +     * must contain non-empty data. This can be used to filter messages on the
          * subscription.
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAttributes(java.lang.String key) { if (key == null) { @@ -1067,12 +1076,13 @@ public java.util.Map getMutableAttributes() * * *
    -     * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data. This can be used to filter messages on the
    +     * Optional. Attributes for this message. If this field is empty, the message
    +     * must contain non-empty data. This can be used to filter messages on the
          * subscription.
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAttributes(java.lang.String key, java.lang.String value) { if (key == null) { @@ -1089,12 +1099,13 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { * * *
    -     * Attributes for this message. If this field is empty, the message must
    -     * contain non-empty data. This can be used to filter messages on the
    +     * Optional. Attributes for this message. If this field is empty, the message
    +     * must contain non-empty data. This can be used to filter messages on the
          * subscription.
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllAttributes(java.util.Map values) { internalGetMutableAttributes().getMutableMap().putAll(values); @@ -1429,17 +1440,17 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * * *
    -     * 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.
    -     * For more information, see [ordering
    +     * Optional. 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. For more
    +     * information, see [ordering
          * messages](https://cloud.google.com/pubsub/docs/ordering).
          * 
    * - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderingKey. */ @@ -1458,17 +1469,17 @@ public java.lang.String getOrderingKey() { * * *
    -     * 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.
    -     * For more information, see [ordering
    +     * Optional. 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. For more
    +     * information, see [ordering
          * messages](https://cloud.google.com/pubsub/docs/ordering).
          * 
    * - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderingKey. */ @@ -1487,17 +1498,17 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { * * *
    -     * 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.
    -     * For more information, see [ordering
    +     * Optional. 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. For more
    +     * information, see [ordering
          * messages](https://cloud.google.com/pubsub/docs/ordering).
          * 
    * - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderingKey to set. * @return This builder for chaining. @@ -1515,17 +1526,17 @@ public Builder setOrderingKey(java.lang.String value) { * * *
    -     * 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.
    -     * For more information, see [ordering
    +     * Optional. 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. For more
    +     * information, see [ordering
          * messages](https://cloud.google.com/pubsub/docs/ordering).
          * 
    * - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1539,17 +1550,17 @@ public Builder clearOrderingKey() { * * *
    -     * 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.
    -     * For more information, see [ordering
    +     * Optional. 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. For more
    +     * information, see [ordering
          * messages](https://cloud.google.com/pubsub/docs/ordering).
          * 
    * - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderingKey to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 9e73913c8bdf..2736aca97b2a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,11 @@ public interface PubsubMessageOrBuilder * * *
    -   * The message data field. If this field is empty, the message must contain
    -   * at least one attribute.
    +   * Optional. The message data field. If this field is empty, the message must
    +   * contain at least one attribute.
        * 
    * - * bytes data = 1; + * bytes data = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The data. */ @@ -41,24 +41,26 @@ public interface PubsubMessageOrBuilder * * *
    -   * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data. This can be used to filter messages on the
    +   * Optional. Attributes for this message. If this field is empty, the message
    +   * must contain non-empty data. This can be used to filter messages on the
        * subscription.
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAttributesCount(); /** * * *
    -   * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data. This can be used to filter messages on the
    +   * Optional. Attributes for this message. If this field is empty, the message
    +   * must contain non-empty data. This can be used to filter messages on the
        * subscription.
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ boolean containsAttributes(java.lang.String key); /** Use {@link #getAttributesMap()} instead. */ @@ -68,24 +70,26 @@ public interface PubsubMessageOrBuilder * * *
    -   * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data. This can be used to filter messages on the
    +   * Optional. Attributes for this message. If this field is empty, the message
    +   * must contain non-empty data. This can be used to filter messages on the
        * subscription.
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map getAttributesMap(); /** * * *
    -   * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data. This can be used to filter messages on the
    +   * Optional. Attributes for this message. If this field is empty, the message
    +   * must contain non-empty data. This can be used to filter messages on the
        * subscription.
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ java.lang.String getAttributesOrDefault( @@ -96,12 +100,13 @@ java.lang.String getAttributesOrDefault( * * *
    -   * Attributes for this message. If this field is empty, the message must
    -   * contain non-empty data. This can be used to filter messages on the
    +   * Optional. Attributes for this message. If this field is empty, the message
    +   * must contain non-empty data. This can be used to filter messages on the
        * subscription.
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.lang.String getAttributesOrThrow(java.lang.String key); @@ -181,17 +186,17 @@ java.lang.String getAttributesOrDefault( * * *
    -   * 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.
    -   * For more information, see [ordering
    +   * Optional. 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. For more
    +   * information, see [ordering
        * messages](https://cloud.google.com/pubsub/docs/ordering).
        * 
    * - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderingKey. */ @@ -200,17 +205,17 @@ java.lang.String getAttributesOrDefault( * * *
    -   * 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.
    -   * For more information, see [ordering
    +   * Optional. 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. For more
    +   * information, see [ordering
        * messages](https://cloud.google.com/pubsub/docs/ordering).
        * 
    * - * string ordering_key = 5; + * string ordering_key = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderingKey. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index b680117a046f..971dec18f1d8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,6 +35,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_SchemaSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -284,330 +292,366 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/protobuf/empty.proto\032 google/protob" + "uf/field_mask.proto\032\037google/protobuf/tim" + "estamp.proto\032\035google/pubsub/v1/schema.pr" - + "oto\";\n\024MessageStoragePolicy\022#\n\033allowed_p" - + "ersistence_regions\030\001 \003(\t\"\252\001\n\016SchemaSetti" + + "oto\"c\n\024MessageStoragePolicy\022)\n\033allowed_p" + + "ersistence_regions\030\001 \003(\tB\004\342A\001\001\022 \n\022enforc" + + "e_in_transit\030\002 \001(\010B\004\342A\001\001\"\274\001\n\016SchemaSetti" + "ngs\0225\n\006schema\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.goo" - + "gleapis.com/Schema\022,\n\010encoding\030\002 \001(\0162\032.g" - + "oogle.pubsub.v1.Encoding\022\031\n\021first_revisi" - + "on_id\030\003 \001(\t\022\030\n\020last_revision_id\030\004 \001(\t\"\304\003" - + "\n\005Topic\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223\n\006labels\030\002 " - + "\003(\0132#.google.pubsub.v1.Topic.LabelsEntry" - + "\022F\n\026message_storage_policy\030\003 \001(\0132&.googl" - + "e.pubsub.v1.MessageStoragePolicy\022\024\n\014kms_" - + "key_name\030\005 \001(\t\0229\n\017schema_settings\030\006 \001(\0132" - + " .google.pubsub.v1.SchemaSettings\022\025\n\rsat" - + "isfies_pzs\030\007 \001(\010\022=\n\032message_retention_du" - + "ration\030\010 \001(\0132\031.google.protobuf.Duration\032" - + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001:T\352AQ\n\033pubsub.googleapis.com/Topic" - + "\022!projects/{project}/topics/{topic}\022\017_de" - + "leted-topic_\"\361\001\n\rPubsubMessage\022\014\n\004data\030\001" - + " \001(\014\022C\n\nattributes\030\002 \003(\0132/.google.pubsub" - + ".v1.PubsubMessage.AttributesEntry\022\022\n\nmes" - + "sage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022\024\n\014ordering_key\030" - + "\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"F\n\017GetTopicRequest\0223\n\005t" - + "opic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.c" - + "om/Topic\"y\n\022UpdateTopicRequest\022,\n\005topic\030" - + "\001 \001(\0132\027.google.pubsub.v1.TopicB\004\342A\001\002\0225\n\013" - + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" - + "dMaskB\004\342A\001\002\"~\n\016PublishRequest\0223\n\005topic\030\001" + + "gleapis.com/Schema\0222\n\010encoding\030\002 \001(\0162\032.g" + + "oogle.pubsub.v1.EncodingB\004\342A\001\001\022\037\n\021first_" + + "revision_id\030\003 \001(\tB\004\342A\001\001\022\036\n\020last_revision" + + "_id\030\004 \001(\tB\004\342A\001\001\"\360\003\n\033IngestionDataSourceS" + + "ettings\022U\n\013aws_kinesis\030\001 \001(\01328.google.pu" + + "bsub.v1.IngestionDataSourceSettings.AwsK" + + "inesisB\004\342A\001\001H\000\032\357\002\n\nAwsKinesis\022S\n\005state\030\001" + + " \001(\0162>.google.pubsub.v1.IngestionDataSou" + + "rceSettings.AwsKinesis.StateB\004\342A\001\003\022\030\n\nst" + + "ream_arn\030\002 \001(\tB\004\342A\001\002\022\032\n\014consumer_arn\030\003 \001" + + "(\tB\004\342A\001\002\022\032\n\014aws_role_arn\030\004 \001(\tB\004\342A\001\002\022!\n\023" + + "gcp_service_account\030\005 \001(\tB\004\342A\001\002\"\226\001\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031" + + "KINESIS_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_P" + + "ERMISSION_DENIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004" + + "\022\026\n\022CONSUMER_NOT_FOUND\020\005B\010\n\006source\"\303\005\n\005T" + + "opic\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0229\n\006labels\030\002 \003(\013" + + "2#.google.pubsub.v1.Topic.LabelsEntryB\004\342" + + "A\001\001\022L\n\026message_storage_policy\030\003 \001(\0132&.go" + + "ogle.pubsub.v1.MessageStoragePolicyB\004\342A\001" + + "\001\022\032\n\014kms_key_name\030\005 \001(\tB\004\342A\001\001\022?\n\017schema_" + + "settings\030\006 \001(\0132 .google.pubsub.v1.Schema" + + "SettingsB\004\342A\001\001\022\033\n\rsatisfies_pzs\030\007 \001(\010B\004\342" + + "A\001\001\022C\n\032message_retention_duration\030\010 \001(\0132" + + "\031.google.protobuf.DurationB\004\342A\001\001\0222\n\005stat" + + "e\030\t \001(\0162\035.google.pubsub.v1.Topic.StateB\004" + + "\342A\001\003\022[\n\036ingestion_data_source_settings\030\n" + + " \001(\0132-.google.pubsub.v1.IngestionDataSou" + + "rceSettingsB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030INGESTIO" + + "N_RESOURCE_ERROR\020\002:T\352AQ\n\033pubsub.googleap" + + "is.com/Topic\022!projects/{project}/topics/" + + "{topic}\022\017_deleted-topic_\"\203\002\n\rPubsubMessa" + + "ge\022\022\n\004data\030\001 \001(\014B\004\342A\001\001\022I\n\nattributes\030\002 \003" + + "(\0132/.google.pubsub.v1.PubsubMessage.Attr" + + "ibutesEntryB\004\342A\001\001\022\022\n\nmessage_id\030\003 \001(\t\0220\n" + + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022\032\n\014ordering_key\030\005 \001(\tB\004\342A\001\001\0321\n\017A" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"F\n\017GetTopicRequest\0223\n\005topic\030\001 \001(\t" + + "B$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Topic\"y" + + "\n\022UpdateTopicRequest\022,\n\005topic\030\001 \001(\0132\027.go" + + "ogle.pubsub.v1.TopicB\004\342A\001\002\0225\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001" + + "\002\"~\n\016PublishRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002" + + "\372A\035\n\033pubsub.googleapis.com/Topic\0227\n\010mess" + + "ages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMess" + + "ageB\004\342A\001\002\",\n\017PublishResponse\022\031\n\013message_" + + "ids\030\001 \003(\tB\004\342A\001\001\"\215\001\n\021ListTopicsRequest\022E\n" + + "\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\022\027\n\tpage_siz" + + "e\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"" + + "b\n\022ListTopicsResponse\022-\n\006topics\030\001 \003(\0132\027." + + "google.pubsub.v1.TopicB\004\342A\001\001\022\035\n\017next_pag" + + "e_token\030\002 \001(\tB\004\342A\001\001\"\207\001\n\035ListTopicSubscri" + + "ptionsRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" + + "ubsub.googleapis.com/Topic\022\027\n\tpage_size\030" + + "\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\203\001" + + "\n\036ListTopicSubscriptionsResponse\022B\n\rsubs" + + "criptions\030\001 \003(\tB+\342A\001\001\372A$\n\"pubsub.googlea" + + "pis.com/Subscription\022\035\n\017next_page_token\030" + + "\002 \001(\tB\004\342A\001\001\"\203\001\n\031ListTopicSnapshotsReques" + + "t\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.google" + + "apis.com/Topic\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" + + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"T\n\032ListTopicSn" + + "apshotsResponse\022\027\n\tsnapshots\030\001 \003(\tB\004\342A\001\001" + + "\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"I\n\022Delet" + + "eTopicRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" + + "ubsub.googleapis.com/Topic\"^\n\031DetachSubs" + + "criptionRequest\022A\n\014subscription\030\001 \001(\tB+\342" + + "A\001\002\372A$\n\"pubsub.googleapis.com/Subscripti" + + "on\"\034\n\032DetachSubscriptionResponse\"\201\t\n\014Sub" + + "scription\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223\n\005topic\030\002" + " \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Top" - + "ic\0227\n\010messages\030\002 \003(\0132\037.google.pubsub.v1." - + "PubsubMessageB\004\342A\001\002\"&\n\017PublishResponse\022\023" - + "\n\013message_ids\030\001 \003(\t\"\201\001\n\021ListTopicsReques" - + "t\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresour" - + "cemanager.googleapis.com/Project\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"V\n\022ListT" - + "opicsResponse\022\'\n\006topics\030\001 \003(\0132\027.google.p" - + "ubsub.v1.Topic\022\027\n\017next_page_token\030\002 \001(\t\"" - + "{\n\035ListTopicSubscriptionsRequest\0223\n\005topi" - + "c\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.com/" - + "Topic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"y\n\036ListTopicSubscriptionsResponse\022>" - + "\n\rsubscriptions\030\001 \003(\tB\'\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\"w\n\031ListTopicSnapshotsRequest\0223\n\005" - + "topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis." - + "com/Topic\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"H\n\032ListTopicSnapshotsResponse\022\021" - + "\n\tsnapshots\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001" - + "(\t\"I\n\022DeleteTopicRequest\0223\n\005topic\030\001 \001(\tB" - + "$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Topic\"^\n" - + "\031DetachSubscriptionRequest\022A\n\014subscripti" - + "on\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com" - + "/Subscription\"\034\n\032DetachSubscriptionRespo" - + "nse\"\255\010\n\014Subscription\022\022\n\004name\030\001 \001(\tB\004\342A\001\002" - + "\0223\n\005topic\030\002 \001(\tB$\342A\001\002\372A\035\n\033pubsub.googlea" - + "pis.com/Topic\0221\n\013push_config\030\004 \001(\0132\034.goo" - + "gle.pubsub.v1.PushConfig\0229\n\017bigquery_con" - + "fig\030\022 \001(\0132 .google.pubsub.v1.BigQueryCon" - + "fig\022B\n\024cloud_storage_config\030\026 \001(\0132$.goog" - + "le.pubsub.v1.CloudStorageConfig\022\034\n\024ack_d" - + "eadline_seconds\030\005 \001(\005\022\035\n\025retain_acked_me" - + "ssages\030\007 \001(\010\022=\n\032message_retention_durati" - + "on\030\010 \001(\0132\031.google.protobuf.Duration\022:\n\006l" - + "abels\030\t \003(\0132*.google.pubsub.v1.Subscript" - + "ion.LabelsEntry\022\037\n\027enable_message_orderi" - + "ng\030\n \001(\010\022=\n\021expiration_policy\030\013 \001(\0132\".go" - + "ogle.pubsub.v1.ExpirationPolicy\022\016\n\006filte" - + "r\030\014 \001(\t\022>\n\022dead_letter_policy\030\r \001(\0132\".go" - + "ogle.pubsub.v1.DeadLetterPolicy\0223\n\014retry" - + "_policy\030\016 \001(\0132\035.google.pubsub.v1.RetryPo" - + "licy\022\020\n\010detached\030\017 \001(\010\022$\n\034enable_exactly" - + "_once_delivery\030\020 \001(\010\022I\n topic_message_re" - + "tention_duration\030\021 \001(\0132\031.google.protobuf" - + ".DurationB\004\342A\001\003\0229\n\005state\030\023 \001(\0162$.google." - + "pubsub.v1.Subscription.StateB\004\342A\001\003\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" - + "IVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.g" - + "oogleapis.com/Subscription\022/projects/{pr" - + "oject}/subscriptions/{subscription}\"u\n\013R" - + "etryPolicy\0222\n\017minimum_backoff\030\001 \001(\0132\031.go" - + "ogle.protobuf.Duration\0222\n\017maximum_backof" - + "f\030\002 \001(\0132\031.google.protobuf.Duration\"L\n\020De" - + "adLetterPolicy\022\031\n\021dead_letter_topic\030\001 \001(" - + "\t\022\035\n\025max_delivery_attempts\030\002 \001(\005\":\n\020Expi" - + "rationPolicy\022&\n\003ttl\030\001 \001(\0132\031.google.proto" - + "buf.Duration\"\362\003\n\nPushConfig\022\025\n\rpush_endp" - + "oint\030\001 \001(\t\022@\n\nattributes\030\002 \003(\0132,.google." - + "pubsub.v1.PushConfig.AttributesEntry\022<\n\n" - + "oidc_token\030\003 \001(\0132&.google.pubsub.v1.Push" - + "Config.OidcTokenH\000\022D\n\016pubsub_wrapper\030\004 \001" - + "(\0132*.google.pubsub.v1.PushConfig.PubsubW" - + "rapperH\001\022<\n\nno_wrapper\030\005 \001(\0132&.google.pu" - + "bsub.v1.PushConfig.NoWrapperH\001\032<\n\tOidcTo" - + "ken\022\035\n\025service_account_email\030\001 \001(\t\022\020\n\010au" - + "dience\030\002 \001(\t\032\017\n\rPubsubWrapper\032#\n\tNoWrapp" - + "er\022\026\n\016write_metadata\030\001 \001(\010\0321\n\017Attributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" - + "\025authentication_methodB\t\n\007wrapper\"\270\002\n\016Bi" - + "gQueryConfig\022\r\n\005table\030\001 \001(\t\022\036\n\020use_topic" - + "_schema\030\002 \001(\010B\004\342A\001\001\022\026\n\016write_metadata\030\003 " - + "\001(\010\022\033\n\023drop_unknown_fields\030\004 \001(\010\022;\n\005stat" - + "e\030\005 \001(\0162&.google.pubsub.v1.BigQueryConfi" - + "g.StateB\004\342A\001\003\022\036\n\020use_table_schema\030\006 \001(\010B" - + "\004\342A\001\001\"e\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n" - + "\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_" - + "FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\"\210\004\n\022CloudSt" - + "orageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001\002\022\027\n\017fil" - + "ename_prefix\030\002 \001(\t\022\027\n\017filename_suffix\030\003 " - + "\001(\t\022F\n\013text_config\030\004 \001(\0132/.google.pubsub" - + ".v1.CloudStorageConfig.TextConfigH\000\022F\n\013a" - + "vro_config\030\005 \001(\0132/.google.pubsub.v1.Clou" - + "dStorageConfig.AvroConfigH\000\022/\n\014max_durat" - + "ion\030\006 \001(\0132\031.google.protobuf.Duration\022\021\n\t" - + "max_bytes\030\007 \001(\003\022?\n\005state\030\t \001(\0162*.google." - + "pubsub.v1.CloudStorageConfig.StateB\004\342A\001\003" - + "\032\014\n\nTextConfig\032$\n\nAvroConfig\022\026\n\016write_me" - + "tadata\030\001 \001(\010\"P\n\005State\022\025\n\021STATE_UNSPECIFI" - + "ED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022" - + "\r\n\tNOT_FOUND\020\003B\017\n\routput_format\"m\n\017Recei" - + "vedMessage\022\016\n\006ack_id\030\001 \001(\t\0220\n\007message\030\002 " - + "\001(\0132\037.google.pubsub.v1.PubsubMessage\022\030\n\020" - + "delivery_attempt\030\003 \001(\005\"[\n\026GetSubscriptio" - + "nRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\"\216\001\n\031" - + "UpdateSubscriptionRequest\022:\n\014subscriptio" - + "n\030\001 \001(\0132\036.google.pubsub.v1.SubscriptionB" - + "\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\004\342A\001\002\"\210\001\n\030ListSubscriptio" - + "nsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+clo" - + "udresourcemanager.googleapis.com/Project" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" - + "k\n\031ListSubscriptionsResponse\0225\n\rsubscrip" - + "tions\030\001 \003(\0132\036.google.pubsub.v1.Subscript" - + "ion\022\027\n\017next_page_token\030\002 \001(\t\"^\n\031DeleteSu" - + "bscriptionRequest\022A\n\014subscription\030\001 \001(\tB" - + "+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscrip" - + "tion\"\225\001\n\027ModifyPushConfigRequest\022A\n\014subs" - + "cription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\0227\n\013push_config\030\002 \001(\013" - + "2\034.google.pubsub.v1.PushConfigB\004\342A\001\002\"\220\001\n" - + "\013PullRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "\"\n\022return_immediately\030\002 \001(\010B\006\030\001\342A\001\001\022\032\n\014m" - + "ax_messages\030\003 \001(\005B\004\342A\001\002\"L\n\014PullResponse\022" - + "<\n\021received_messages\030\001 \003(\0132!.google.pubs" - + "ub.v1.ReceivedMessage\"\230\001\n\030ModifyAckDeadl" - + "ineRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A" - + "$\n\"pubsub.googleapis.com/Subscription\022\025\n" - + "\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024ack_deadline_sec" - + "onds\030\003 \001(\005B\004\342A\001\002\"n\n\022AcknowledgeRequest\022A" - + "\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.go" - + "ogleapis.com/Subscription\022\025\n\007ack_ids\030\002 \003" - + "(\tB\004\342A\001\002\"\253\002\n\024StreamingPullRequest\022A\n\014sub" + + "ic\0227\n\013push_config\030\004 \001(\0132\034.google.pubsub." + + "v1.PushConfigB\004\342A\001\001\022?\n\017bigquery_config\030\022" + + " \001(\0132 .google.pubsub.v1.BigQueryConfigB\004" + + "\342A\001\001\022H\n\024cloud_storage_config\030\026 \001(\0132$.goo" + + "gle.pubsub.v1.CloudStorageConfigB\004\342A\001\001\022\"" + + "\n\024ack_deadline_seconds\030\005 \001(\005B\004\342A\001\001\022#\n\025re" + + "tain_acked_messages\030\007 \001(\010B\004\342A\001\001\022C\n\032messa" + + "ge_retention_duration\030\010 \001(\0132\031.google.pro" + + "tobuf.DurationB\004\342A\001\001\022@\n\006labels\030\t \003(\0132*.g" + + "oogle.pubsub.v1.Subscription.LabelsEntry" + + "B\004\342A\001\001\022%\n\027enable_message_ordering\030\n \001(\010B" + + "\004\342A\001\001\022C\n\021expiration_policy\030\013 \001(\0132\".googl" + + "e.pubsub.v1.ExpirationPolicyB\004\342A\001\001\022\024\n\006fi" + + "lter\030\014 \001(\tB\004\342A\001\001\022D\n\022dead_letter_policy\030\r" + + " \001(\0132\".google.pubsub.v1.DeadLetterPolicy" + + "B\004\342A\001\001\0229\n\014retry_policy\030\016 \001(\0132\035.google.pu" + + "bsub.v1.RetryPolicyB\004\342A\001\001\022\026\n\010detached\030\017 " + + "\001(\010B\004\342A\001\001\022*\n\034enable_exactly_once_deliver" + + "y\030\020 \001(\010B\004\342A\001\001\022I\n topic_message_retention" + + "_duration\030\021 \001(\0132\031.google.protobuf.Durati" + + "onB\004\342A\001\003\0229\n\005state\030\023 \001(\0162$.google.pubsub." + + "v1.Subscription.StateB\004\342A\001\003\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022" + + "\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.googleap" + + "is.com/Subscription\022/projects/{project}/" + + "subscriptions/{subscription}\"\201\001\n\013RetryPo" + + "licy\0228\n\017minimum_backoff\030\001 \001(\0132\031.google.p" + + "rotobuf.DurationB\004\342A\001\001\0228\n\017maximum_backof" + + "f\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001" + + "\"X\n\020DeadLetterPolicy\022\037\n\021dead_letter_topi" + + "c\030\001 \001(\tB\004\342A\001\001\022#\n\025max_delivery_attempts\030\002" + + " \001(\005B\004\342A\001\001\"@\n\020ExpirationPolicy\022,\n\003ttl\030\001 " + + "\001(\0132\031.google.protobuf.DurationB\004\342A\001\001\"\242\004\n" + + "\nPushConfig\022\033\n\rpush_endpoint\030\001 \001(\tB\004\342A\001\001" + + "\022F\n\nattributes\030\002 \003(\0132,.google.pubsub.v1." + + "PushConfig.AttributesEntryB\004\342A\001\001\022B\n\noidc" + + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" + + "ig.OidcTokenB\004\342A\001\001H\000\022J\n\016pubsub_wrapper\030\004" + + " \001(\0132*.google.pubsub.v1.PushConfig.Pubsu" + + "bWrapperB\004\342A\001\001H\001\022B\n\nno_wrapper\030\005 \001(\0132&.g" + + "oogle.pubsub.v1.PushConfig.NoWrapperB\004\342A" + + "\001\001H\001\032H\n\tOidcToken\022#\n\025service_account_ema" + + "il\030\001 \001(\tB\004\342A\001\001\022\026\n\010audience\030\002 \001(\tB\004\342A\001\001\032\017" + + "\n\rPubsubWrapper\032)\n\tNoWrapper\022\034\n\016write_me" + + "tadata\030\001 \001(\010B\004\342A\001\001\0321\n\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authent" + + "ication_methodB\t\n\007wrapper\"\360\002\n\016BigQueryCo" + + "nfig\022\023\n\005table\030\001 \001(\tB\004\342A\001\001\022\036\n\020use_topic_s" + + "chema\030\002 \001(\010B\004\342A\001\001\022\034\n\016write_metadata\030\003 \001(" + + "\010B\004\342A\001\001\022!\n\023drop_unknown_fields\030\004 \001(\010B\004\342A" + + "\001\001\022;\n\005state\030\005 \001(\0162&.google.pubsub.v1.Big" + + "QueryConfig.StateB\004\342A\001\003\022\036\n\020use_table_sch" + + "ema\030\006 \001(\010B\004\342A\001\001\"\212\001\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIE" + + "D\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022" + + "#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\327\004\n" + + "\022CloudStorageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001" + + "\002\022\035\n\017filename_prefix\030\002 \001(\tB\004\342A\001\001\022\035\n\017file" + + "name_suffix\030\003 \001(\tB\004\342A\001\001\022L\n\013text_config\030\004" + + " \001(\0132/.google.pubsub.v1.CloudStorageConf" + + "ig.TextConfigB\004\342A\001\001H\000\022L\n\013avro_config\030\005 \001" + + "(\0132/.google.pubsub.v1.CloudStorageConfig" + + ".AvroConfigB\004\342A\001\001H\000\0225\n\014max_duration\030\006 \001(" + + "\0132\031.google.protobuf.DurationB\004\342A\001\001\022\027\n\tma" + + "x_bytes\030\007 \001(\003B\004\342A\001\001\022?\n\005state\030\t \001(\0162*.goo" + + "gle.pubsub.v1.CloudStorageConfig.StateB\004" + + "\342A\001\003\032\014\n\nTextConfig\032*\n\nAvroConfig\022\034\n\016writ" + + "e_metadata\030\001 \001(\010B\004\342A\001\001\"u\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION" + + "_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_L" + + "OCATION_RESTRICTION\020\004B\017\n\routput_format\"\177" + + "\n\017ReceivedMessage\022\024\n\006ack_id\030\001 \001(\tB\004\342A\001\001\022" + + "6\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pubs" + + "ubMessageB\004\342A\001\001\022\036\n\020delivery_attempt\030\003 \001(" + + "\005B\004\342A\001\001\"[\n\026GetSubscriptionRequest\022A\n\014sub" + "scription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googlea" - + "pis.com/Subscription\022\017\n\007ack_ids\030\002 \003(\t\022\037\n" - + "\027modify_deadline_seconds\030\003 \003(\005\022\037\n\027modify" - + "_deadline_ack_ids\030\004 \003(\t\022)\n\033stream_ack_de" - + "adline_seconds\030\005 \001(\005B\004\342A\001\002\022\021\n\tclient_id\030" - + "\006 \001(\t\022 \n\030max_outstanding_messages\030\007 \001(\003\022" - + "\035\n\025max_outstanding_bytes\030\010 \001(\003\"\335\005\n\025Strea" - + "mingPullResponse\022<\n\021received_messages\030\001 " - + "\003(\0132!.google.pubsub.v1.ReceivedMessage\022a" - + "\n\030acknowledge_confirmation\030\005 \001(\0132?.googl" - + "e.pubsub.v1.StreamingPullResponse.Acknow" - + "ledgeConfirmation\022o\n modify_ack_deadline" - + "_confirmation\030\003 \001(\0132E.google.pubsub.v1.S" - + "treamingPullResponse.ModifyAckDeadlineCo" - + "nfirmation\022_\n\027subscription_properties\030\004 " - + "\001(\0132>.google.pubsub.v1.StreamingPullResp" - + "onse.SubscriptionProperties\032\200\001\n\027Acknowle" - + "dgeConfirmation\022\017\n\007ack_ids\030\001 \003(\t\022\027\n\017inva" - + "lid_ack_ids\030\002 \003(\t\022\031\n\021unordered_ack_ids\030\003" - + " \003(\t\022 \n\030temporary_failed_ack_ids\030\004 \003(\t\032k" - + "\n\035ModifyAckDeadlineConfirmation\022\017\n\007ack_i" - + "ds\030\001 \003(\t\022\027\n\017invalid_ack_ids\030\002 \003(\t\022 \n\030tem" - + "porary_failed_ack_ids\030\003 \003(\t\032a\n\026Subscript" - + "ionProperties\022%\n\035exactly_once_delivery_e" - + "nabled\030\001 \001(\010\022 \n\030message_ordering_enabled" - + "\030\002 \001(\010\"\205\002\n\025CreateSnapshotRequest\0225\n\004name" + + "pis.com/Subscription\"\216\001\n\031UpdateSubscript" + + "ionRequest\022:\n\014subscription\030\001 \001(\0132\036.googl" + + "e.pubsub.v1.SubscriptionB\004\342A\001\002\0225\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\004\342A\001\002\"\224\001\n\030ListSubscriptionsRequest\022E\n\007pr" + + "oject\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanag" + + "er.googleapis.com/Project\022\027\n\tpage_size\030\002" + + " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"w\n\031" + + "ListSubscriptionsResponse\022;\n\rsubscriptio" + + "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription" + + "B\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"^\n" + + "\031DeleteSubscriptionRequest\022A\n\014subscripti" + + "on\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com" + + "/Subscription\"\225\001\n\027ModifyPushConfigReques" + + "t\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub" + + ".googleapis.com/Subscription\0227\n\013push_con" + + "fig\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB" + + "\004\342A\001\002\"\220\001\n\013PullRequest\022A\n\014subscription\030\001 " + + "\001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subs" + + "cription\022\"\n\022return_immediately\030\002 \001(\010B\006\030\001" + + "\342A\001\001\022\032\n\014max_messages\030\003 \001(\005B\004\342A\001\002\"R\n\014Pull" + + "Response\022B\n\021received_messages\030\001 \003(\0132!.go" + + "ogle.pubsub.v1.ReceivedMessageB\004\342A\001\001\"\230\001\n" + + "\030ModifyAckDeadlineRequest\022A\n\014subscriptio" + + "n\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/" + + "Subscription\022\025\n\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024a" + + "ck_deadline_seconds\030\003 \001(\005B\004\342A\001\002\"n\n\022Ackno" + + "wledgeRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\022\025\n\007ack_ids\030\002 \003(\tB\004\342A\001\002\"\317\002\n\024StreamingPul" + + "lRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\025\n\007a" + + "ck_ids\030\002 \003(\tB\004\342A\001\001\022%\n\027modify_deadline_se" + + "conds\030\003 \003(\005B\004\342A\001\001\022%\n\027modify_deadline_ack" + + "_ids\030\004 \003(\tB\004\342A\001\001\022)\n\033stream_ack_deadline_" + + "seconds\030\005 \001(\005B\004\342A\001\002\022\027\n\tclient_id\030\006 \001(\tB\004" + + "\342A\001\001\022&\n\030max_outstanding_messages\030\007 \001(\003B\004" + + "\342A\001\001\022#\n\025max_outstanding_bytes\030\010 \001(\003B\004\342A\001" + + "\001\"\253\006\n\025StreamingPullResponse\022B\n\021received_" + + "messages\030\001 \003(\0132!.google.pubsub.v1.Receiv" + + "edMessageB\004\342A\001\001\022g\n\030acknowledge_confirmat" + + "ion\030\005 \001(\0132?.google.pubsub.v1.StreamingPu" + + "llResponse.AcknowledgeConfirmationB\004\342A\001\001" + + "\022u\n modify_ack_deadline_confirmation\030\003 \001" + + "(\0132E.google.pubsub.v1.StreamingPullRespo" + + "nse.ModifyAckDeadlineConfirmationB\004\342A\001\001\022" + + "e\n\027subscription_properties\030\004 \001(\0132>.googl" + + "e.pubsub.v1.StreamingPullResponse.Subscr" + + "iptionPropertiesB\004\342A\001\001\032\230\001\n\027AcknowledgeCo" + + "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" + + "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022\037\n\021unordered_ac" + + "k_ids\030\003 \003(\tB\004\342A\001\001\022&\n\030temporary_failed_ac" + + "k_ids\030\004 \003(\tB\004\342A\001\001\032}\n\035ModifyAckDeadlineCo" + + "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" + + "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022&\n\030temporary_fa" + + "iled_ack_ids\030\003 \003(\tB\004\342A\001\001\032m\n\026Subscription" + + "Properties\022+\n\035exactly_once_delivery_enab" + + "led\030\001 \001(\010B\004\342A\001\001\022&\n\030message_ordering_enab" + + "led\030\002 \001(\010B\004\342A\001\001\"\213\002\n\025CreateSnapshotReques" + + "t\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googlea" + + "pis.com/Snapshot\022A\n\014subscription\030\002 \001(\tB+" + + "\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscript" + + "ion\022I\n\006labels\030\003 \003(\01323.google.pubsub.v1.C" + + "reateSnapshotRequest.LabelsEntryB\004\342A\001\001\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"\202\001\n\025UpdateSnapshotRequest\0222\n\010snaps" + + "hot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\004\342" + + "A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\004\342A\001\002\"\305\002\n\010Snapshot\022\022\n\004name\030" + + "\001 \001(\tB\004\342A\001\001\0223\n\005topic\030\002 \001(\tB$\342A\001\001\372A\035\n\033pub" + + "sub.googleapis.com/Topic\0225\n\013expire_time\030" + + "\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\022" + + "<\n\006labels\030\004 \003(\0132&.google.pubsub.v1.Snaps" + + "hot.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsu" + + "b.googleapis.com/Snapshot\022\'projects/{pro" + + "ject}/snapshots/{snapshot}\"O\n\022GetSnapsho" + + "tRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pub" + + "sub.googleapis.com/Snapshot\"\220\001\n\024ListSnap" + + "shotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+" + + "cloudresourcemanager.googleapis.com/Proj" + + "ect\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" + + "en\030\003 \001(\tB\004\342A\001\001\"k\n\025ListSnapshotsResponse\022" + + "3\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" + + "apshotB\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342" + + "A\001\001\"R\n\025DeleteSnapshotRequest\0229\n\010snapshot" + "\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googleapis.com/S" - + "napshot\022A\n\014subscription\030\002 \001(\tB+\342A\001\002\372A$\n\"" - + "pubsub.googleapis.com/Subscription\022C\n\006la" - + "bels\030\003 \003(\01323.google.pubsub.v1.CreateSnap" - + "shotRequest.LabelsEntry\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\202\001\n\025Updat" - + "eSnapshotRequest\0222\n\010snapshot\030\001 \001(\0132\032.goo" - + "gle.pubsub.v1.SnapshotB\004\342A\001\002\0225\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342" - + "A\001\002\"\257\002\n\010Snapshot\022\014\n\004name\030\001 \001(\t\022/\n\005topic\030" - + "\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022" - + "/\n\013expire_time\030\003 \001(\0132\032.google.protobuf.T" - + "imestamp\0226\n\006labels\030\004 \003(\0132&.google.pubsub" - + ".v1.Snapshot.LabelsEntry\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pu" - + "bsub.googleapis.com/Snapshot\022\'projects/{" - + "project}/snapshots/{snapshot}\"O\n\022GetSnap" - + "shotRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036" - + "pubsub.googleapis.com/Snapshot\"\204\001\n\024ListS" - + "napshotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A" - + "-\n+cloudresourcemanager.googleapis.com/P" - + "roject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\"_\n\025ListSnapshotsResponse\022-\n\tsnapsh" - + "ots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot\022\027\n" - + "\017next_page_token\030\002 \001(\t\"R\n\025DeleteSnapshot" - + "Request\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pubs" - + "ub.googleapis.com/Snapshot\"\277\001\n\013SeekReque" - + "st\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsu" - + "b.googleapis.com/Subscription\022*\n\004time\030\002 " - + "\001(\0132\032.google.protobuf.TimestampH\000\0227\n\010sna" - + "pshot\030\003 \001(\tB#\372A \n\036pubsub.googleapis.com/" - + "SnapshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n" - + "\tPublisher\022q\n\013CreateTopic\022\027.google.pubsu" - + "b.v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A\004" - + "name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/" - + "*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v1" - + ".UpdateTopicRequest\032\027.google.pubsub.v1.T" - + "opic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{t" - + "opic.name=projects/*/topics/*}:\001*\022\223\001\n\007Pu" - + "blish\022 .google.pubsub.v1.PublishRequest\032" - + "!.google.pubsub.v1.PublishResponse\"C\332A\016t" - + "opic,messages\202\323\344\223\002,\"\'/v1/{topic=projects" - + "/*/topics/*}:publish:\001*\022w\n\010GetTopic\022!.go" - + "ogle.pubsub.v1.GetTopicRequest\032\027.google." - + "pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{to" - + "pic=projects/*/topics/*}\022\212\001\n\nListTopics\022" - + "#.google.pubsub.v1.ListTopicsRequest\032$.g" - + "oogle.pubsub.v1.ListTopicsResponse\"1\332A\007p" - + "roject\202\323\344\223\002!\022\037/v1/{project=projects/*}/t" - + "opics\022\272\001\n\026ListTopicSubscriptions\022/.googl" - + "e.pubsub.v1.ListTopicSubscriptionsReques" - + "t\0320.google.pubsub.v1.ListTopicSubscripti" - + "onsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=" - + "projects/*/topics/*}/subscriptions\022\252\001\n\022L" - + "istTopicSnapshots\022+.google.pubsub.v1.Lis" - + "tTopicSnapshotsRequest\032,.google.pubsub.v" - + "1.ListTopicSnapshotsResponse\"9\332A\005topic\202\323" - + "\344\223\002+\022)/v1/{topic=projects/*/topics/*}/sn" - + "apshots\022|\n\013DeleteTopic\022$.google.pubsub.v" - + "1.DeleteTopicRequest\032\026.google.protobuf.E" - + "mpty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=project" - + "s/*/topics/*}\022\255\001\n\022DetachSubscription\022+.g" - + "oogle.pubsub.v1.DetachSubscriptionReques" - + "t\032,.google.pubsub.v1.DetachSubscriptionR" - + "esponse\"<\202\323\344\223\0026\"4/v1/{subscription=proje" - + "cts/*/subscriptions/*}:detach\032p\312A\025pubsub" - + ".googleapis.com\322AUhttps://www.googleapis" - + ".com/auth/cloud-platform,https://www.goo" - + "gleapis.com/auth/pubsub2\322\025\n\nSubscriber\022\264" - + "\001\n\022CreateSubscription\022\036.google.pubsub.v1" - + ".Subscription\032\036.google.pubsub.v1.Subscri" - + "ption\"^\332A+name,topic,push_config,ack_dea" - + "dline_seconds\202\323\344\223\002*\032%/v1/{name=projects/" - + "*/subscriptions/*}:\001*\022\241\001\n\017GetSubscriptio" - + "n\022(.google.pubsub.v1.GetSubscriptionRequ" - + "est\032\036.google.pubsub.v1.Subscription\"D\332A\014" - + "subscription\202\323\344\223\002/\022-/v1/{subscription=pr" - + "ojects/*/subscriptions/*}\022\273\001\n\022UpdateSubs" - + "cription\022+.google.pubsub.v1.UpdateSubscr" - + "iptionRequest\032\036.google.pubsub.v1.Subscri" - + "ption\"X\332A\030subscription,update_mask\202\323\344\223\0027" - + "22/v1/{subscription.name=projects/*/subs" - + "criptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*." - + "google.pubsub.v1.ListSubscriptionsReques" - + "t\032+.google.pubsub.v1.ListSubscriptionsRe" - + "sponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=p" - + "rojects/*}/subscriptions\022\237\001\n\022DeleteSubsc" - + "ription\022+.google.pubsub.v1.DeleteSubscri" - + "ptionRequest\032\026.google.protobuf.Empty\"D\332A" - + "\014subscription\202\323\344\223\002/*-/v1/{subscription=p" - + "rojects/*/subscriptions/*}\022\317\001\n\021ModifyAck" - + "Deadline\022*.google.pubsub.v1.ModifyAckDea" - + "dlineRequest\032\026.google.protobuf.Empty\"v\332A" - + ")subscription,ack_ids,ack_deadline_secon" - + "ds\202\323\344\223\002D\"?/v1/{subscription=projects/*/s" - + "ubscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" - + "\013Acknowledge\022$.google.pubsub.v1.Acknowle" - + "dgeRequest\032\026.google.protobuf.Empty\"[\332A\024s" - + "ubscription,ack_ids\202\323\344\223\002>\"9/v1/{subscrip" - + "tion=projects/*/subscriptions/*}:acknowl" - + "edge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.Pull" - + "Request\032\036.google.pubsub.v1.PullResponse\"" - + "\210\001\332A,subscription,return_immediately,max" - + "_messages\332A\031subscription,max_messages\202\323\344" - + "\223\0027\"2/v1/{subscription=projects/*/subscr" - + "iptions/*}:pull:\001*\022f\n\rStreamingPull\022&.go" - + "ogle.pubsub.v1.StreamingPullRequest\032\'.go" - + "ogle.pubsub.v1.StreamingPullResponse\"\000(\001" - + "0\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub." - + "v1.ModifyPushConfigRequest\032\026.google.prot" - + "obuf.Empty\"d\332A\030subscription,push_config\202" - + "\323\344\223\002C\">/v1/{subscription=projects/*/subs" - + "criptions/*}:modifyPushConfig:\001*\022\211\001\n\013Get" - + "Snapshot\022$.google.pubsub.v1.GetSnapshotR" - + "equest\032\032.google.pubsub.v1.Snapshot\"8\332A\010s" - + "napshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/" - + "snapshots/*}\022\226\001\n\rListSnapshots\022&.google." - + "pubsub.v1.ListSnapshotsRequest\032\'.google." - + "pubsub.v1.ListSnapshotsResponse\"4\332A\007proj" - + "ect\202\323\344\223\002$\022\"/v1/{project=projects/*}/snap" - + "shots\022\227\001\n\016CreateSnapshot\022\'.google.pubsub" - + ".v1.CreateSnapshotRequest\032\032.google.pubsu" - + "b.v1.Snapshot\"@\332A\021name,subscription\202\323\344\223\002" - + "&\032!/v1/{name=projects/*/snapshots/*}:\001*\022" - + "\243\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.Up" - + "dateSnapshotRequest\032\032.google.pubsub.v1.S" - + "napshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*" - + "/v1/{snapshot.name=projects/*/snapshots/" - + "*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsub" - + ".v1.DeleteSnapshotRequest\032\026.google.proto" - + "buf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snaps" - + "hot=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.g" - + "oogle.pubsub.v1.SeekRequest\032\036.google.pub" - + "sub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscr" - + "iption=projects/*/subscriptions/*}:seek:" - + "\001*\032p\312A\025pubsub.googleapis.com\322AUhttps://w" - + "ww.googleapis.com/auth/cloud-platform,ht" - + "tps://www.googleapis.com/auth/pubsubB\252\001\n" - + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z2cl" - + "oud.google.com/go/pubsub/apiv1/pubsubpb;" - + "pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026G" - + "oogle\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::P" - + "ubSub::V1b\006proto3" + + "napshot\"\311\001\n\013SeekRequest\022A\n\014subscription\030" + + "\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\0220\n\004time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\001H\000\022;\n\010snapshot\030\003 \001(\tB\'" + + "\342A\001\001\372A \n\036pubsub.googleapis.com/SnapshotH" + + "\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublishe" + + "r\022q\n\013CreateTopic\022\027.google.pubsub.v1.Topi" + + "c\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002" + + "#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTo" + + "picRequest\032\027.google.pubsub.v1.Topic\"C\332A\021" + + "topic,update_mask\202\323\344\223\002)2$/v1/{topic.name" + + "=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .g" + + "oogle.pubsub.v1.PublishRequest\032!.google." + + "pubsub.v1.PublishResponse\"C\332A\016topic,mess" + + "ages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" + + "/*}:publish:\001*\022w\n\010GetTopic\022!.google.pubs" + + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" + + ".Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=proje" + + "cts/*/topics/*}\022\212\001\n\nListTopics\022#.google." + + "pubsub.v1.ListTopicsRequest\032$.google.pub" + + "sub.v1.ListTopicsResponse\"1\332A\007project\202\323\344" + + "\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub." + + "v1.ListTopicSubscriptionsRequest\0320.googl" + + "e.pubsub.v1.ListTopicSubscriptionsRespon" + + "se\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/" + + "*/topics/*}/subscriptions\022\252\001\n\022ListTopicS" + + "napshots\022+.google.pubsub.v1.ListTopicSna" + + "pshotsRequest\032,.google.pubsub.v1.ListTop" + + "icSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1" + + "/{topic=projects/*/topics/*}/snapshots\022|" + + "\n\013DeleteTopic\022$.google.pubsub.v1.DeleteT" + + "opicRequest\032\026.google.protobuf.Empty\"/\332A\005" + + "topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topic" + + "s/*}\022\255\001\n\022DetachSubscription\022+.google.pub" + + "sub.v1.DetachSubscriptionRequest\032,.googl" + + "e.pubsub.v1.DetachSubscriptionResponse\"<" + + "\202\323\344\223\0026\"4/v1/{subscription=projects/*/sub" + + "scriptions/*}:detach\032p\312A\025pubsub.googleap" + + "is.com\322AUhttps://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Create" + + "Subscription\022\036.google.pubsub.v1.Subscrip" + + "tion\032\036.google.pubsub.v1.Subscription\"^\332A" + + "+name,topic,push_config,ack_deadline_sec" + + "onds\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" + + "ptions/*}:\001*\022\241\001\n\017GetSubscription\022(.googl" + + "e.pubsub.v1.GetSubscriptionRequest\032\036.goo" + + "gle.pubsub.v1.Subscription\"D\332A\014subscript" + + "ion\202\323\344\223\002/\022-/v1/{subscription=projects/*/" + + "subscriptions/*}\022\273\001\n\022UpdateSubscription\022" + + "+.google.pubsub.v1.UpdateSubscriptionReq" + + "uest\032\036.google.pubsub.v1.Subscription\"X\332A" + + "\030subscription,update_mask\202\323\344\223\002722/v1/{su" + + "bscription.name=projects/*/subscriptions" + + "/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google.pu" + + "bsub.v1.ListSubscriptionsRequest\032+.googl" + + "e.pubsub.v1.ListSubscriptionsResponse\"8\332" + + "A\007project\202\323\344\223\002(\022&/v1/{project=projects/*" + + "}/subscriptions\022\237\001\n\022DeleteSubscription\022+" + + ".google.pubsub.v1.DeleteSubscriptionRequ" + + "est\032\026.google.protobuf.Empty\"D\332A\014subscrip" + + "tion\202\323\344\223\002/*-/v1/{subscription=projects/*" + + "/subscriptions/*}\022\317\001\n\021ModifyAckDeadline\022" + + "*.google.pubsub.v1.ModifyAckDeadlineRequ" + + "est\032\026.google.protobuf.Empty\"v\332A)subscrip" + + "tion,ack_ids,ack_deadline_seconds\202\323\344\223\002D\"" + + "?/v1/{subscription=projects/*/subscripti" + + "ons/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowle" + + "dge\022$.google.pubsub.v1.AcknowledgeReques" + + "t\032\026.google.protobuf.Empty\"[\332A\024subscripti" + + "on,ack_ids\202\323\344\223\002>\"9/v1/{subscription=proj" + + "ects/*/subscriptions/*}:acknowledge:\001*\022\320" + + "\001\n\004Pull\022\035.google.pubsub.v1.PullRequest\032\036" + + ".google.pubsub.v1.PullResponse\"\210\001\332A,subs" + + "cription,return_immediately,max_messages" + + "\332A\031subscription,max_messages\202\323\344\223\0027\"2/v1/" + + "{subscription=projects/*/subscriptions/*" + + "}:pull:\001*\022f\n\rStreamingPull\022&.google.pubs" + + "ub.v1.StreamingPullRequest\032\'.google.pubs" + + "ub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Mo" + + "difyPushConfig\022).google.pubsub.v1.Modify" + + "PushConfigRequest\032\026.google.protobuf.Empt" + + "y\"d\332A\030subscription,push_config\202\323\344\223\002C\">/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022" + + "$.google.pubsub.v1.GetSnapshotRequest\032\032." + + "google.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323" + + "\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots" + + "/*}\022\226\001\n\rListSnapshots\022&.google.pubsub.v1" + + ".ListSnapshotsRequest\032\'.google.pubsub.v1" + + ".ListSnapshotsResponse\"4\332A\007project\202\323\344\223\002$" + + "\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" + + "\016CreateSnapshot\022\'.google.pubsub.v1.Creat" + + "eSnapshotRequest\032\032.google.pubsub.v1.Snap" + + "shot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{n" + + "ame=projects/*/snapshots/*}:\001*\022\243\001\n\016Updat" + + "eSnapshot\022\'.google.pubsub.v1.UpdateSnaps" + + "hotRequest\032\032.google.pubsub.v1.Snapshot\"L" + + "\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{snap" + + "shot.name=projects/*/snapshots/*}:\001*\022\213\001\n" + + "\016DeleteSnapshot\022\'.google.pubsub.v1.Delet" + + "eSnapshotRequest\032\026.google.protobuf.Empty" + + "\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=proje" + + "cts/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pub" + + "sub.v1.SeekRequest\032\036.google.pubsub.v1.Se" + + "ekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:seek:\001*\032p\312A\025pu" + + "bsub.googleapis.com\322AUhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" + + "le.pubsub.v1B\013PubsubProtoP\001Z2cloud.googl" + + "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" + + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" + + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -629,7 +673,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor, new java.lang.String[] { - "AllowedPersistenceRegions", + "AllowedPersistenceRegions", "EnforceInTransit", }); internal_static_google_pubsub_v1_SchemaSettings_descriptor = getDescriptor().getMessageTypes().get(1); @@ -639,7 +683,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Schema", "Encoding", "FirstRevisionId", "LastRevisionId", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor, + new java.lang.String[] { + "AwsKinesis", "Source", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor, + new java.lang.String[] { + "State", "StreamArn", "ConsumerArn", "AwsRoleArn", "GcpServiceAccount", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, @@ -651,6 +713,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SchemaSettings", "SatisfiesPzs", "MessageRetentionDuration", + "State", + "IngestionDataSourceSettings", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); @@ -661,7 +725,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -677,7 +741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, @@ -685,7 +749,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, @@ -693,7 +757,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, @@ -701,7 +765,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, @@ -709,7 +773,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, @@ -717,7 +781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, @@ -725,7 +789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, @@ -733,7 +797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, @@ -741,7 +805,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, @@ -749,7 +813,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, @@ -757,7 +821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, @@ -765,7 +829,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, @@ -773,13 +837,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -812,7 +876,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -820,7 +884,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -828,7 +892,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -836,7 +900,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -880,7 +944,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, @@ -893,7 +957,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UseTableSchema", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, @@ -923,7 +987,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WriteMetadata", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -931,7 +995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -939,7 +1003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -947,7 +1011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -955,7 +1019,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -963,7 +1027,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -971,7 +1035,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -979,7 +1043,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -987,7 +1051,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -995,7 +1059,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -1003,7 +1067,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -1011,7 +1075,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -1026,7 +1090,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -1061,7 +1125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -1077,7 +1141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -1085,7 +1149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1101,7 +1165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1109,7 +1173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1117,7 +1181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1125,7 +1189,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1133,7 +1197,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1141,7 +1205,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 30c5431b8d25..7375cea5d480 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1233 + * google/pubsub/v1/pubsub.proto;l=1359 * @return The returnImmediately. */ @java.lang.Override @@ -687,7 +687,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1233 + * google/pubsub/v1/pubsub.proto;l=1359 * @return The returnImmediately. */ @java.lang.Override @@ -713,7 +713,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1233 + * google/pubsub/v1/pubsub.proto;l=1359 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -743,7 +743,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1233 + * google/pubsub/v1/pubsub.proto;l=1359 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 9f9ccf387b3c..4f2b226c5018 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,7 +71,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1233 + * google/pubsub/v1/pubsub.proto;l=1359 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 65b827fd0589..2b68241833ad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,14 +70,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Received Pub/Sub messages. The list will be empty if there are no more
    -   * messages available in the backlog, or if no messages could be returned
    +   * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +   * more messages available in the backlog, or if no messages could be returned
        * before the request timeout. 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.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getReceivedMessagesList() { @@ -87,14 +89,16 @@ public java.util.List getReceivedMessagesL * * *
    -   * Received Pub/Sub messages. The list will be empty if there are no more
    -   * messages available in the backlog, or if no messages could be returned
    +   * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +   * more messages available in the backlog, or if no messages could be returned
        * before the request timeout. 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.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -105,14 +109,16 @@ public java.util.List getReceivedMessagesL * * *
    -   * Received Pub/Sub messages. The list will be empty if there are no more
    -   * messages available in the backlog, or if no messages could be returned
    +   * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +   * more messages available in the backlog, or if no messages could be returned
        * before the request timeout. 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.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getReceivedMessagesCount() { @@ -122,14 +128,16 @@ public int getReceivedMessagesCount() { * * *
    -   * Received Pub/Sub messages. The list will be empty if there are no more
    -   * messages available in the backlog, or if no messages could be returned
    +   * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +   * more messages available in the backlog, or if no messages could be returned
        * before the request timeout. 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.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { @@ -139,14 +147,16 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
    -   * Received Pub/Sub messages. The list will be empty if there are no more
    -   * messages available in the backlog, or if no messages could be returned
    +   * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +   * more messages available in the backlog, or if no messages could be returned
        * before the request timeout. 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.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { @@ -559,14 +569,16 @@ private void ensureReceivedMessagesIsMutable() { * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesList() { if (receivedMessagesBuilder_ == null) { @@ -579,14 +591,16 @@ public java.util.List getReceivedMessagesL * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getReceivedMessagesCount() { if (receivedMessagesBuilder_ == null) { @@ -599,14 +613,16 @@ public int getReceivedMessagesCount() { * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -619,14 +635,16 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -645,14 +663,16 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -669,14 +689,16 @@ public Builder setReceivedMessages( * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -695,14 +717,16 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -721,14 +745,16 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -745,14 +771,16 @@ public Builder addReceivedMessages( * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -769,14 +797,16 @@ public Builder addReceivedMessages( * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllReceivedMessages( java.lang.Iterable values) { @@ -793,14 +823,16 @@ public Builder addAllReceivedMessages( * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReceivedMessages() { if (receivedMessagesBuilder_ == null) { @@ -816,14 +848,16 @@ public Builder clearReceivedMessages() { * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -839,14 +873,16 @@ public Builder removeReceivedMessages(int index) { * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); @@ -855,14 +891,16 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(i * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { if (receivedMessagesBuilder_ == null) { @@ -875,14 +913,16 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesOrBuilderList() { @@ -896,14 +936,16 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { return getReceivedMessagesFieldBuilder() @@ -913,14 +955,16 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder() @@ -930,14 +974,16 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * * *
    -     * Received Pub/Sub messages. The list will be empty if there are no more
    -     * messages available in the backlog, or if no messages could be returned
    +     * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +     * more messages available in the backlog, or if no messages could be returned
          * before the request timeout. 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.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesBuilderList() { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 16d1f7e5a638..39112729e423 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,56 +27,64 @@ public interface PullResponseOrBuilder * * *
    -   * Received Pub/Sub messages. The list will be empty if there are no more
    -   * messages available in the backlog, or if no messages could be returned
    +   * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +   * more messages available in the backlog, or if no messages could be returned
        * before the request timeout. 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.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getReceivedMessagesList(); /** * * *
    -   * Received Pub/Sub messages. The list will be empty if there are no more
    -   * messages available in the backlog, or if no messages could be returned
    +   * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +   * more messages available in the backlog, or if no messages could be returned
        * before the request timeout. 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.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); /** * * *
    -   * Received Pub/Sub messages. The list will be empty if there are no more
    -   * messages available in the backlog, or if no messages could be returned
    +   * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +   * more messages available in the backlog, or if no messages could be returned
        * before the request timeout. 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.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getReceivedMessagesCount(); /** * * *
    -   * Received Pub/Sub messages. The list will be empty if there are no more
    -   * messages available in the backlog, or if no messages could be returned
    +   * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +   * more messages available in the backlog, or if no messages could be returned
        * before the request timeout. 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.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getReceivedMessagesOrBuilderList(); @@ -84,14 +92,16 @@ public interface PullResponseOrBuilder * * *
    -   * Received Pub/Sub messages. The list will be empty if there are no more
    -   * messages available in the backlog, or if no messages could be returned
    +   * Optional. Received Pub/Sub messages. The list will be empty if there are no
    +   * more messages available in the backlog, or if no messages could be returned
        * before the request timeout. 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.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 7124ca38f6c5..074068dc41ab 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -80,14 +80,14 @@ public interface OidcTokenOrBuilder * * *
    -     * [Service account
    +     * Optional. [Service account
          * email](https://cloud.google.com/iam/docs/service-accounts)
          * used for generating the OIDC token. For more information
          * on setting up authentication, see
          * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
          * 
    * - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccountEmail. */ @@ -96,14 +96,14 @@ public interface OidcTokenOrBuilder * * *
    -     * [Service account
    +     * Optional. [Service account
          * email](https://cloud.google.com/iam/docs/service-accounts)
          * used for generating the OIDC token. For more information
          * on setting up authentication, see
          * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
          * 
    * - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccountEmail. */ @@ -113,15 +113,16 @@ public interface OidcTokenOrBuilder * * *
    -     * Audience to be used when generating OIDC token. The audience claim
    -     * identifies the recipients that the JWT is intended for. The audience
    -     * value is a single case-sensitive string. Having multiple values (array)
    -     * for the audience field is not supported. More info about the OIDC JWT
    -     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    -     * Note: if not specified, the Push endpoint URL will be used.
    +     * Optional. Audience to be used when generating OIDC token. The audience
    +     * claim identifies the recipients that the JWT is intended for. The
    +     * audience value is a single case-sensitive string. Having multiple values
    +     * (array) for the audience field is not supported. More info about the OIDC
    +     * JWT token audience here:
    +     * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
    +     * the Push endpoint URL will be used.
          * 
    * - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The audience. */ @@ -130,15 +131,16 @@ public interface OidcTokenOrBuilder * * *
    -     * Audience to be used when generating OIDC token. The audience claim
    -     * identifies the recipients that the JWT is intended for. The audience
    -     * value is a single case-sensitive string. Having multiple values (array)
    -     * for the audience field is not supported. More info about the OIDC JWT
    -     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    -     * Note: if not specified, the Push endpoint URL will be used.
    +     * Optional. Audience to be used when generating OIDC token. The audience
    +     * claim identifies the recipients that the JWT is intended for. The
    +     * audience value is a single case-sensitive string. Having multiple values
    +     * (array) for the audience field is not supported. More info about the OIDC
    +     * JWT token audience here:
    +     * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
    +     * the Push endpoint URL will be used.
          * 
    * - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for audience. */ @@ -199,14 +201,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * [Service account
    +     * Optional. [Service account
          * email](https://cloud.google.com/iam/docs/service-accounts)
          * used for generating the OIDC token. For more information
          * on setting up authentication, see
          * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
          * 
    * - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccountEmail. */ @@ -226,14 +228,14 @@ public java.lang.String getServiceAccountEmail() { * * *
    -     * [Service account
    +     * Optional. [Service account
          * email](https://cloud.google.com/iam/docs/service-accounts)
          * used for generating the OIDC token. For more information
          * on setting up authentication, see
          * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
          * 
    * - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccountEmail. */ @@ -258,15 +260,16 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * * *
    -     * Audience to be used when generating OIDC token. The audience claim
    -     * identifies the recipients that the JWT is intended for. The audience
    -     * value is a single case-sensitive string. Having multiple values (array)
    -     * for the audience field is not supported. More info about the OIDC JWT
    -     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    -     * Note: if not specified, the Push endpoint URL will be used.
    +     * Optional. Audience to be used when generating OIDC token. The audience
    +     * claim identifies the recipients that the JWT is intended for. The
    +     * audience value is a single case-sensitive string. Having multiple values
    +     * (array) for the audience field is not supported. More info about the OIDC
    +     * JWT token audience here:
    +     * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
    +     * the Push endpoint URL will be used.
          * 
    * - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The audience. */ @@ -286,15 +289,16 @@ public java.lang.String getAudience() { * * *
    -     * Audience to be used when generating OIDC token. The audience claim
    -     * identifies the recipients that the JWT is intended for. The audience
    -     * value is a single case-sensitive string. Having multiple values (array)
    -     * for the audience field is not supported. More info about the OIDC JWT
    -     * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    -     * Note: if not specified, the Push endpoint URL will be used.
    +     * Optional. Audience to be used when generating OIDC token. The audience
    +     * claim identifies the recipients that the JWT is intended for. The
    +     * audience value is a single case-sensitive string. Having multiple values
    +     * (array) for the audience field is not supported. More info about the OIDC
    +     * JWT token audience here:
    +     * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
    +     * the Push endpoint URL will be used.
          * 
    * - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for audience. */ @@ -687,14 +691,14 @@ public Builder mergeFrom( * * *
    -       * [Service account
    +       * Optional. [Service account
            * email](https://cloud.google.com/iam/docs/service-accounts)
            * used for generating the OIDC token. For more information
            * on setting up authentication, see
            * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
            * 
    * - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The serviceAccountEmail. */ @@ -713,14 +717,14 @@ public java.lang.String getServiceAccountEmail() { * * *
    -       * [Service account
    +       * Optional. [Service account
            * email](https://cloud.google.com/iam/docs/service-accounts)
            * used for generating the OIDC token. For more information
            * on setting up authentication, see
            * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
            * 
    * - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for serviceAccountEmail. */ @@ -739,14 +743,14 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * * *
    -       * [Service account
    +       * Optional. [Service account
            * email](https://cloud.google.com/iam/docs/service-accounts)
            * used for generating the OIDC token. For more information
            * on setting up authentication, see
            * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
            * 
    * - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The serviceAccountEmail to set. * @return This builder for chaining. @@ -764,14 +768,14 @@ public Builder setServiceAccountEmail(java.lang.String value) { * * *
    -       * [Service account
    +       * Optional. [Service account
            * email](https://cloud.google.com/iam/docs/service-accounts)
            * used for generating the OIDC token. For more information
            * on setting up authentication, see
            * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
            * 
    * - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -785,14 +789,14 @@ public Builder clearServiceAccountEmail() { * * *
    -       * [Service account
    +       * Optional. [Service account
            * email](https://cloud.google.com/iam/docs/service-accounts)
            * used for generating the OIDC token. For more information
            * on setting up authentication, see
            * [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
            * 
    * - * string service_account_email = 1; + * string service_account_email = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. @@ -813,15 +817,16 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) * * *
    -       * Audience to be used when generating OIDC token. The audience claim
    -       * identifies the recipients that the JWT is intended for. The audience
    -       * value is a single case-sensitive string. Having multiple values (array)
    -       * for the audience field is not supported. More info about the OIDC JWT
    -       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    -       * Note: if not specified, the Push endpoint URL will be used.
    +       * Optional. Audience to be used when generating OIDC token. The audience
    +       * claim identifies the recipients that the JWT is intended for. The
    +       * audience value is a single case-sensitive string. Having multiple values
    +       * (array) for the audience field is not supported. More info about the OIDC
    +       * JWT token audience here:
    +       * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
    +       * the Push endpoint URL will be used.
            * 
    * - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The audience. */ @@ -840,15 +845,16 @@ public java.lang.String getAudience() { * * *
    -       * Audience to be used when generating OIDC token. The audience claim
    -       * identifies the recipients that the JWT is intended for. The audience
    -       * value is a single case-sensitive string. Having multiple values (array)
    -       * for the audience field is not supported. More info about the OIDC JWT
    -       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    -       * Note: if not specified, the Push endpoint URL will be used.
    +       * Optional. Audience to be used when generating OIDC token. The audience
    +       * claim identifies the recipients that the JWT is intended for. The
    +       * audience value is a single case-sensitive string. Having multiple values
    +       * (array) for the audience field is not supported. More info about the OIDC
    +       * JWT token audience here:
    +       * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
    +       * the Push endpoint URL will be used.
            * 
    * - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for audience. */ @@ -867,15 +873,16 @@ public com.google.protobuf.ByteString getAudienceBytes() { * * *
    -       * Audience to be used when generating OIDC token. The audience claim
    -       * identifies the recipients that the JWT is intended for. The audience
    -       * value is a single case-sensitive string. Having multiple values (array)
    -       * for the audience field is not supported. More info about the OIDC JWT
    -       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    -       * Note: if not specified, the Push endpoint URL will be used.
    +       * Optional. Audience to be used when generating OIDC token. The audience
    +       * claim identifies the recipients that the JWT is intended for. The
    +       * audience value is a single case-sensitive string. Having multiple values
    +       * (array) for the audience field is not supported. More info about the OIDC
    +       * JWT token audience here:
    +       * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
    +       * the Push endpoint URL will be used.
            * 
    * - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The audience to set. * @return This builder for chaining. @@ -893,15 +900,16 @@ public Builder setAudience(java.lang.String value) { * * *
    -       * Audience to be used when generating OIDC token. The audience claim
    -       * identifies the recipients that the JWT is intended for. The audience
    -       * value is a single case-sensitive string. Having multiple values (array)
    -       * for the audience field is not supported. More info about the OIDC JWT
    -       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    -       * Note: if not specified, the Push endpoint URL will be used.
    +       * Optional. Audience to be used when generating OIDC token. The audience
    +       * claim identifies the recipients that the JWT is intended for. The
    +       * audience value is a single case-sensitive string. Having multiple values
    +       * (array) for the audience field is not supported. More info about the OIDC
    +       * JWT token audience here:
    +       * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
    +       * the Push endpoint URL will be used.
            * 
    * - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -915,15 +923,16 @@ public Builder clearAudience() { * * *
    -       * Audience to be used when generating OIDC token. The audience claim
    -       * identifies the recipients that the JWT is intended for. The audience
    -       * value is a single case-sensitive string. Having multiple values (array)
    -       * for the audience field is not supported. More info about the OIDC JWT
    -       * token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3
    -       * Note: if not specified, the Push endpoint URL will be used.
    +       * Optional. Audience to be used when generating OIDC token. The audience
    +       * claim identifies the recipients that the JWT is intended for. The
    +       * audience value is a single case-sensitive string. Having multiple values
    +       * (array) for the audience field is not supported. More info about the OIDC
    +       * JWT token audience here:
    +       * https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
    +       * the Push endpoint URL will be used.
            * 
    * - * string audience = 2; + * string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for audience to set. * @return This builder for chaining. @@ -1438,12 +1447,12 @@ public interface NoWrapperOrBuilder * * *
    -     * When true, writes the Pub/Sub message metadata to
    +     * Optional. When true, writes the Pub/Sub message metadata to
          * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
          * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
          * 
    * - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1497,12 +1506,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * When true, writes the Pub/Sub message metadata to
    +     * Optional. When true, writes the Pub/Sub message metadata to
          * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
          * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
          * 
    * - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1859,12 +1868,12 @@ public Builder mergeFrom( * * *
    -       * When true, writes the Pub/Sub message metadata to
    +       * Optional. When true, writes the Pub/Sub message metadata to
            * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
            * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
            * 
    * - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The writeMetadata. */ @@ -1876,12 +1885,12 @@ public boolean getWriteMetadata() { * * *
    -       * When true, writes the Pub/Sub message metadata to
    +       * Optional. When true, writes the Pub/Sub message metadata to
            * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
            * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
            * 
    * - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The writeMetadata to set. * @return This builder for chaining. @@ -1897,12 +1906,12 @@ public Builder setWriteMetadata(boolean value) { * * *
    -       * When true, writes the Pub/Sub message metadata to
    +       * Optional. When true, writes the Pub/Sub message metadata to
            * `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
            * Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
            * 
    * - * bool write_metadata = 1; + * bool write_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2080,11 +2089,11 @@ public WrapperCase getWrapperCase() { * * *
    -   * A URL locating the endpoint to which messages should be pushed.
    +   * Optional. A URL locating the endpoint to which messages should be pushed.
        * For example, a Webhook endpoint might use `https://example.com/push`.
        * 
    * - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pushEndpoint. */ @@ -2104,11 +2113,11 @@ public java.lang.String getPushEndpoint() { * * *
    -   * A URL locating the endpoint to which messages should be pushed.
    +   * Optional. A URL locating the endpoint to which messages should be pushed.
        * For example, a Webhook endpoint might use `https://example.com/push`.
        * 
    * - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pushEndpoint. */ @@ -2155,8 +2164,8 @@ public int getAttributesCount() { * * *
    -   * Endpoint configuration attributes that can be used to control different
    -   * aspects of the message delivery.
    +   * Optional. Endpoint configuration attributes that can be used to control
    +   * different aspects of the message delivery.
        *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
    @@ -2178,7 +2187,8 @@ public int getAttributesCount() {
        * `attributes { "x-goog-version": "v1" }`
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsAttributes(java.lang.String key) { @@ -2197,8 +2207,8 @@ public java.util.Map getAttributes() { * * *
    -   * Endpoint configuration attributes that can be used to control different
    -   * aspects of the message delivery.
    +   * Optional. Endpoint configuration attributes that can be used to control
    +   * different aspects of the message delivery.
        *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
    @@ -2220,7 +2230,8 @@ public java.util.Map getAttributes() {
        * `attributes { "x-goog-version": "v1" }`
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { @@ -2230,8 +2241,8 @@ public java.util.Map getAttributesMap() { * * *
    -   * Endpoint configuration attributes that can be used to control different
    -   * aspects of the message delivery.
    +   * Optional. Endpoint configuration attributes that can be used to control
    +   * different aspects of the message delivery.
        *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
    @@ -2253,7 +2264,8 @@ public java.util.Map getAttributesMap() {
        * `attributes { "x-goog-version": "v1" }`
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( @@ -2270,8 +2282,8 @@ public java.util.Map getAttributesMap() { * * *
    -   * Endpoint configuration attributes that can be used to control different
    -   * aspects of the message delivery.
    +   * Optional. Endpoint configuration attributes that can be used to control
    +   * different aspects of the message delivery.
        *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
    @@ -2293,7 +2305,8 @@ public java.util.Map getAttributesMap() {
        * `attributes { "x-goog-version": "v1" }`
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { @@ -2312,11 +2325,14 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { * * *
    -   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -   * `Authorization` header in the HTTP request for every pushed message.
    +   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +   * token as an `Authorization` header in the HTTP request for every pushed
    +   * message.
        * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oidcToken field is set. */ @@ -2328,11 +2344,14 @@ public boolean hasOidcToken() { * * *
    -   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -   * `Authorization` header in the HTTP request for every pushed message.
    +   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +   * token as an `Authorization` header in the HTTP request for every pushed
    +   * message.
        * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oidcToken. */ @@ -2347,11 +2366,14 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { * * *
    -   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -   * `Authorization` header in the HTTP request for every pushed message.
    +   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +   * token as an `Authorization` header in the HTTP request for every pushed
    +   * message.
        * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() { @@ -2366,12 +2388,14 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( * * *
    -   * When set, the payload to the push endpoint is in the form of the JSON
    -   * representation of a PubsubMessage
    +   * Optional. When set, the payload to the push endpoint is in the form of
    +   * the JSON representation of a PubsubMessage
        * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
        * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pubsubWrapper field is set. */ @@ -2383,12 +2407,14 @@ public boolean hasPubsubWrapper() { * * *
    -   * When set, the payload to the push endpoint is in the form of the JSON
    -   * representation of a PubsubMessage
    +   * Optional. When set, the payload to the push endpoint is in the form of
    +   * the JSON representation of a PubsubMessage
        * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
        * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pubsubWrapper. */ @@ -2403,12 +2429,14 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { * * *
    -   * When set, the payload to the push endpoint is in the form of the JSON
    -   * representation of a PubsubMessage
    +   * Optional. When set, the payload to the push endpoint is in the form of
    +   * the JSON representation of a PubsubMessage
        * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
        * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder() { @@ -2423,10 +2451,12 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr * * *
    -   * When set, the payload to the push endpoint is not wrapped.
    +   * Optional. When set, the payload to the push endpoint is not wrapped.
        * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the noWrapper field is set. */ @@ -2438,10 +2468,12 @@ public boolean hasNoWrapper() { * * *
    -   * When set, the payload to the push endpoint is not wrapped.
    +   * Optional. When set, the payload to the push endpoint is not wrapped.
        * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The noWrapper. */ @@ -2456,10 +2488,12 @@ public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { * * *
    -   * When set, the payload to the push endpoint is not wrapped.
    +   * Optional. When set, the payload to the push endpoint is not wrapped.
        * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder() { @@ -3033,11 +3067,11 @@ public Builder clearWrapper() { * * *
    -     * A URL locating the endpoint to which messages should be pushed.
    +     * Optional. A URL locating the endpoint to which messages should be pushed.
          * For example, a Webhook endpoint might use `https://example.com/push`.
          * 
    * - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pushEndpoint. */ @@ -3056,11 +3090,11 @@ public java.lang.String getPushEndpoint() { * * *
    -     * A URL locating the endpoint to which messages should be pushed.
    +     * Optional. A URL locating the endpoint to which messages should be pushed.
          * For example, a Webhook endpoint might use `https://example.com/push`.
          * 
    * - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pushEndpoint. */ @@ -3079,11 +3113,11 @@ public com.google.protobuf.ByteString getPushEndpointBytes() { * * *
    -     * A URL locating the endpoint to which messages should be pushed.
    +     * Optional. A URL locating the endpoint to which messages should be pushed.
          * For example, a Webhook endpoint might use `https://example.com/push`.
          * 
    * - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pushEndpoint to set. * @return This builder for chaining. @@ -3101,11 +3135,11 @@ public Builder setPushEndpoint(java.lang.String value) { * * *
    -     * A URL locating the endpoint to which messages should be pushed.
    +     * Optional. A URL locating the endpoint to which messages should be pushed.
          * For example, a Webhook endpoint might use `https://example.com/push`.
          * 
    * - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3119,11 +3153,11 @@ public Builder clearPushEndpoint() { * * *
    -     * A URL locating the endpoint to which messages should be pushed.
    +     * Optional. A URL locating the endpoint to which messages should be pushed.
          * For example, a Webhook endpoint might use `https://example.com/push`.
          * 
    * - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pushEndpoint to set. * @return This builder for chaining. @@ -3171,8 +3205,8 @@ public int getAttributesCount() { * * *
    -     * Endpoint configuration attributes that can be used to control different
    -     * aspects of the message delivery.
    +     * Optional. Endpoint configuration attributes that can be used to control
    +     * different aspects of the message delivery.
          *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
    @@ -3194,7 +3228,8 @@ public int getAttributesCount() {
          * `attributes { "x-goog-version": "v1" }`
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsAttributes(java.lang.String key) { @@ -3213,8 +3248,8 @@ public java.util.Map getAttributes() { * * *
    -     * Endpoint configuration attributes that can be used to control different
    -     * aspects of the message delivery.
    +     * Optional. Endpoint configuration attributes that can be used to control
    +     * different aspects of the message delivery.
          *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
    @@ -3236,7 +3271,8 @@ public java.util.Map getAttributes() {
          * `attributes { "x-goog-version": "v1" }`
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAttributesMap() { @@ -3246,8 +3282,8 @@ public java.util.Map getAttributesMap() { * * *
    -     * Endpoint configuration attributes that can be used to control different
    -     * aspects of the message delivery.
    +     * Optional. Endpoint configuration attributes that can be used to control
    +     * different aspects of the message delivery.
          *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
    @@ -3269,7 +3305,8 @@ public java.util.Map getAttributesMap() {
          * `attributes { "x-goog-version": "v1" }`
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAttributesOrDefault( @@ -3286,8 +3323,8 @@ public java.util.Map getAttributesMap() { * * *
    -     * Endpoint configuration attributes that can be used to control different
    -     * aspects of the message delivery.
    +     * Optional. Endpoint configuration attributes that can be used to control
    +     * different aspects of the message delivery.
          *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
    @@ -3309,7 +3346,8 @@ public java.util.Map getAttributesMap() {
          * `attributes { "x-goog-version": "v1" }`
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getAttributesOrThrow(java.lang.String key) { @@ -3332,8 +3370,8 @@ public Builder clearAttributes() { * * *
    -     * Endpoint configuration attributes that can be used to control different
    -     * aspects of the message delivery.
    +     * Optional. Endpoint configuration attributes that can be used to control
    +     * different aspects of the message delivery.
          *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
    @@ -3355,7 +3393,8 @@ public Builder clearAttributes() {
          * `attributes { "x-goog-version": "v1" }`
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAttributes(java.lang.String key) { if (key == null) { @@ -3374,8 +3413,8 @@ public java.util.Map getMutableAttributes() * * *
    -     * Endpoint configuration attributes that can be used to control different
    -     * aspects of the message delivery.
    +     * Optional. Endpoint configuration attributes that can be used to control
    +     * different aspects of the message delivery.
          *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
    @@ -3397,7 +3436,8 @@ public java.util.Map getMutableAttributes()
          * `attributes { "x-goog-version": "v1" }`
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAttributes(java.lang.String key, java.lang.String value) { if (key == null) { @@ -3414,8 +3454,8 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { * * *
    -     * Endpoint configuration attributes that can be used to control different
    -     * aspects of the message delivery.
    +     * Optional. Endpoint configuration attributes that can be used to control
    +     * different aspects of the message delivery.
          *
          * The only currently supported attribute is `x-goog-version`, which you can
          * use to change the format of the pushed message. This attribute
    @@ -3437,7 +3477,8 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) {
          * `attributes { "x-goog-version": "v1" }`
          * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllAttributes(java.util.Map values) { internalGetMutableAttributes().getMutableMap().putAll(values); @@ -3454,11 +3495,14 @@ public Builder putAllAttributes(java.util.Map - * If specified, Pub/Sub will generate and attach an OIDC JWT token as an - * `Authorization` header in the HTTP request for every pushed message. + * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT + * token as an `Authorization` header in the HTTP request for every pushed + * message. * * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oidcToken field is set. */ @@ -3470,11 +3514,14 @@ public boolean hasOidcToken() { * * *
    -     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -     * `Authorization` header in the HTTP request for every pushed message.
    +     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +     * token as an `Authorization` header in the HTTP request for every pushed
    +     * message.
          * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oidcToken. */ @@ -3496,11 +3543,14 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { * * *
    -     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -     * `Authorization` header in the HTTP request for every pushed message.
    +     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +     * token as an `Authorization` header in the HTTP request for every pushed
    +     * message.
          * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { if (oidcTokenBuilder_ == null) { @@ -3519,11 +3569,14 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { * * *
    -     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -     * `Authorization` header in the HTTP request for every pushed message.
    +     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +     * token as an `Authorization` header in the HTTP request for every pushed
    +     * message.
          * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder builderForValue) { if (oidcTokenBuilder_ == null) { @@ -3539,11 +3592,14 @@ public Builder setOidcToken(com.google.pubsub.v1.PushConfig.OidcToken.Builder bu * * *
    -     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -     * `Authorization` header in the HTTP request for every pushed message.
    +     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +     * token as an `Authorization` header in the HTTP request for every pushed
    +     * message.
          * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { if (oidcTokenBuilder_ == null) { @@ -3573,11 +3629,14 @@ public Builder mergeOidcToken(com.google.pubsub.v1.PushConfig.OidcToken value) { * * *
    -     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -     * `Authorization` header in the HTTP request for every pushed message.
    +     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +     * token as an `Authorization` header in the HTTP request for every pushed
    +     * message.
          * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOidcToken() { if (oidcTokenBuilder_ == null) { @@ -3599,11 +3658,14 @@ public Builder clearOidcToken() { * * *
    -     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -     * `Authorization` header in the HTTP request for every pushed message.
    +     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +     * token as an `Authorization` header in the HTTP request for every pushed
    +     * message.
          * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.OidcToken.Builder getOidcTokenBuilder() { return getOidcTokenFieldBuilder().getBuilder(); @@ -3612,11 +3674,14 @@ public com.google.pubsub.v1.PushConfig.OidcToken.Builder getOidcTokenBuilder() { * * *
    -     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -     * `Authorization` header in the HTTP request for every pushed message.
    +     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +     * token as an `Authorization` header in the HTTP request for every pushed
    +     * message.
          * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder() { @@ -3633,11 +3698,14 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( * * *
    -     * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -     * `Authorization` header in the HTTP request for every pushed message.
    +     * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +     * token as an `Authorization` header in the HTTP request for every pushed
    +     * message.
          * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig.OidcToken, @@ -3672,12 +3740,14 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( * * *
    -     * When set, the payload to the push endpoint is in the form of the JSON
    -     * representation of a PubsubMessage
    +     * Optional. When set, the payload to the push endpoint is in the form of
    +     * the JSON representation of a PubsubMessage
          * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
          * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pubsubWrapper field is set. */ @@ -3689,12 +3759,14 @@ public boolean hasPubsubWrapper() { * * *
    -     * When set, the payload to the push endpoint is in the form of the JSON
    -     * representation of a PubsubMessage
    +     * Optional. When set, the payload to the push endpoint is in the form of
    +     * the JSON representation of a PubsubMessage
          * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
          * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pubsubWrapper. */ @@ -3716,12 +3788,14 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { * * *
    -     * When set, the payload to the push endpoint is in the form of the JSON
    -     * representation of a PubsubMessage
    +     * Optional. When set, the payload to the push endpoint is in the form of
    +     * the JSON representation of a PubsubMessage
          * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
          * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper value) { if (pubsubWrapperBuilder_ == null) { @@ -3740,12 +3814,14 @@ public Builder setPubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper va * * *
    -     * When set, the payload to the push endpoint is in the form of the JSON
    -     * representation of a PubsubMessage
    +     * Optional. When set, the payload to the push endpoint is in the form of
    +     * the JSON representation of a PubsubMessage
          * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
          * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPubsubWrapper( com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder builderForValue) { @@ -3762,12 +3838,14 @@ public Builder setPubsubWrapper( * * *
    -     * When set, the payload to the push endpoint is in the form of the JSON
    -     * representation of a PubsubMessage
    +     * Optional. When set, the payload to the push endpoint is in the form of
    +     * the JSON representation of a PubsubMessage
          * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
          * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper value) { if (pubsubWrapperBuilder_ == null) { @@ -3796,12 +3874,14 @@ public Builder mergePubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper * * *
    -     * When set, the payload to the push endpoint is in the form of the JSON
    -     * representation of a PubsubMessage
    +     * Optional. When set, the payload to the push endpoint is in the form of
    +     * the JSON representation of a PubsubMessage
          * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
          * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPubsubWrapper() { if (pubsubWrapperBuilder_ == null) { @@ -3823,12 +3903,14 @@ public Builder clearPubsubWrapper() { * * *
    -     * When set, the payload to the push endpoint is in the form of the JSON
    -     * representation of a PubsubMessage
    +     * Optional. When set, the payload to the push endpoint is in the form of
    +     * the JSON representation of a PubsubMessage
          * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
          * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder getPubsubWrapperBuilder() { return getPubsubWrapperFieldBuilder().getBuilder(); @@ -3837,12 +3919,14 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder getPubsubWrapperBui * * *
    -     * When set, the payload to the push endpoint is in the form of the JSON
    -     * representation of a PubsubMessage
    +     * Optional. When set, the payload to the push endpoint is in the form of
    +     * the JSON representation of a PubsubMessage
          * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
          * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder() { @@ -3859,12 +3943,14 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr * * *
    -     * When set, the payload to the push endpoint is in the form of the JSON
    -     * representation of a PubsubMessage
    +     * Optional. When set, the payload to the push endpoint is in the form of
    +     * the JSON representation of a PubsubMessage
          * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
          * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig.PubsubWrapper, @@ -3899,10 +3985,12 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr * * *
    -     * When set, the payload to the push endpoint is not wrapped.
    +     * Optional. When set, the payload to the push endpoint is not wrapped.
          * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the noWrapper field is set. */ @@ -3914,10 +4002,12 @@ public boolean hasNoWrapper() { * * *
    -     * When set, the payload to the push endpoint is not wrapped.
    +     * Optional. When set, the payload to the push endpoint is not wrapped.
          * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The noWrapper. */ @@ -3939,10 +4029,12 @@ public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { * * *
    -     * When set, the payload to the push endpoint is not wrapped.
    +     * Optional. When set, the payload to the push endpoint is not wrapped.
          * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { if (noWrapperBuilder_ == null) { @@ -3961,10 +4053,12 @@ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { * * *
    -     * When set, the payload to the push endpoint is not wrapped.
    +     * Optional. When set, the payload to the push endpoint is not wrapped.
          * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper.Builder builderForValue) { if (noWrapperBuilder_ == null) { @@ -3980,10 +4074,12 @@ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper.Builder bu * * *
    -     * When set, the payload to the push endpoint is not wrapped.
    +     * Optional. When set, the payload to the push endpoint is not wrapped.
          * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { if (noWrapperBuilder_ == null) { @@ -4012,10 +4108,12 @@ public Builder mergeNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { * * *
    -     * When set, the payload to the push endpoint is not wrapped.
    +     * Optional. When set, the payload to the push endpoint is not wrapped.
          * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearNoWrapper() { if (noWrapperBuilder_ == null) { @@ -4037,10 +4135,12 @@ public Builder clearNoWrapper() { * * *
    -     * When set, the payload to the push endpoint is not wrapped.
    +     * Optional. When set, the payload to the push endpoint is not wrapped.
          * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.NoWrapper.Builder getNoWrapperBuilder() { return getNoWrapperFieldBuilder().getBuilder(); @@ -4049,10 +4149,12 @@ public com.google.pubsub.v1.PushConfig.NoWrapper.Builder getNoWrapperBuilder() { * * *
    -     * When set, the payload to the push endpoint is not wrapped.
    +     * Optional. When set, the payload to the push endpoint is not wrapped.
          * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder() { @@ -4069,10 +4171,12 @@ public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder( * * *
    -     * When set, the payload to the push endpoint is not wrapped.
    +     * Optional. When set, the payload to the push endpoint is not wrapped.
          * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig.NoWrapper, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index dade5167a2cb..b39c32241740 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,11 @@ public interface PushConfigOrBuilder * * *
    -   * A URL locating the endpoint to which messages should be pushed.
    +   * Optional. A URL locating the endpoint to which messages should be pushed.
        * For example, a Webhook endpoint might use `https://example.com/push`.
        * 
    * - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pushEndpoint. */ @@ -40,11 +40,11 @@ public interface PushConfigOrBuilder * * *
    -   * A URL locating the endpoint to which messages should be pushed.
    +   * Optional. A URL locating the endpoint to which messages should be pushed.
        * For example, a Webhook endpoint might use `https://example.com/push`.
        * 
    * - * string push_endpoint = 1; + * string push_endpoint = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pushEndpoint. */ @@ -54,8 +54,8 @@ public interface PushConfigOrBuilder * * *
    -   * Endpoint configuration attributes that can be used to control different
    -   * aspects of the message delivery.
    +   * Optional. Endpoint configuration attributes that can be used to control
    +   * different aspects of the message delivery.
        *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
    @@ -77,15 +77,16 @@ public interface PushConfigOrBuilder
        * `attributes { "x-goog-version": "v1" }`
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAttributesCount(); /** * * *
    -   * Endpoint configuration attributes that can be used to control different
    -   * aspects of the message delivery.
    +   * Optional. Endpoint configuration attributes that can be used to control
    +   * different aspects of the message delivery.
        *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
    @@ -107,7 +108,8 @@ public interface PushConfigOrBuilder
        * `attributes { "x-goog-version": "v1" }`
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ boolean containsAttributes(java.lang.String key); /** Use {@link #getAttributesMap()} instead. */ @@ -117,8 +119,8 @@ public interface PushConfigOrBuilder * * *
    -   * Endpoint configuration attributes that can be used to control different
    -   * aspects of the message delivery.
    +   * Optional. Endpoint configuration attributes that can be used to control
    +   * different aspects of the message delivery.
        *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
    @@ -140,15 +142,16 @@ public interface PushConfigOrBuilder
        * `attributes { "x-goog-version": "v1" }`
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map getAttributesMap(); /** * * *
    -   * Endpoint configuration attributes that can be used to control different
    -   * aspects of the message delivery.
    +   * Optional. Endpoint configuration attributes that can be used to control
    +   * different aspects of the message delivery.
        *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
    @@ -170,7 +173,8 @@ public interface PushConfigOrBuilder
        * `attributes { "x-goog-version": "v1" }`
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ java.lang.String getAttributesOrDefault( @@ -181,8 +185,8 @@ java.lang.String getAttributesOrDefault( * * *
    -   * Endpoint configuration attributes that can be used to control different
    -   * aspects of the message delivery.
    +   * Optional. Endpoint configuration attributes that can be used to control
    +   * different aspects of the message delivery.
        *
        * The only currently supported attribute is `x-goog-version`, which you can
        * use to change the format of the pushed message. This attribute
    @@ -204,7 +208,8 @@ java.lang.String getAttributesOrDefault(
        * `attributes { "x-goog-version": "v1" }`
        * 
    * - * map<string, string> attributes = 2; + * map<string, string> attributes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.lang.String getAttributesOrThrow(java.lang.String key); @@ -212,11 +217,14 @@ java.lang.String getAttributesOrDefault( * * *
    -   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -   * `Authorization` header in the HTTP request for every pushed message.
    +   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +   * token as an `Authorization` header in the HTTP request for every pushed
    +   * message.
        * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oidcToken field is set. */ @@ -225,11 +233,14 @@ java.lang.String getAttributesOrDefault( * * *
    -   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -   * `Authorization` header in the HTTP request for every pushed message.
    +   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +   * token as an `Authorization` header in the HTTP request for every pushed
    +   * message.
        * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oidcToken. */ @@ -238,11 +249,14 @@ java.lang.String getAttributesOrDefault( * * *
    -   * If specified, Pub/Sub will generate and attach an OIDC JWT token as an
    -   * `Authorization` header in the HTTP request for every pushed message.
    +   * Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
    +   * token as an `Authorization` header in the HTTP request for every pushed
    +   * message.
        * 
    * - * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3; + * + * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder(); @@ -250,12 +264,14 @@ java.lang.String getAttributesOrDefault( * * *
    -   * When set, the payload to the push endpoint is in the form of the JSON
    -   * representation of a PubsubMessage
    +   * Optional. When set, the payload to the push endpoint is in the form of
    +   * the JSON representation of a PubsubMessage
        * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
        * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pubsubWrapper field is set. */ @@ -264,12 +280,14 @@ java.lang.String getAttributesOrDefault( * * *
    -   * When set, the payload to the push endpoint is in the form of the JSON
    -   * representation of a PubsubMessage
    +   * Optional. When set, the payload to the push endpoint is in the form of
    +   * the JSON representation of a PubsubMessage
        * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
        * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pubsubWrapper. */ @@ -278,12 +296,14 @@ java.lang.String getAttributesOrDefault( * * *
    -   * When set, the payload to the push endpoint is in the form of the JSON
    -   * representation of a PubsubMessage
    +   * Optional. When set, the payload to the push endpoint is in the form of
    +   * the JSON representation of a PubsubMessage
        * (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
        * 
    * - * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4; + * + * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOrBuilder(); @@ -291,10 +311,12 @@ java.lang.String getAttributesOrDefault( * * *
    -   * When set, the payload to the push endpoint is not wrapped.
    +   * Optional. When set, the payload to the push endpoint is not wrapped.
        * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the noWrapper field is set. */ @@ -303,10 +325,12 @@ java.lang.String getAttributesOrDefault( * * *
    -   * When set, the payload to the push endpoint is not wrapped.
    +   * Optional. When set, the payload to the push endpoint is not wrapped.
        * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The noWrapper. */ @@ -315,10 +339,12 @@ java.lang.String getAttributesOrDefault( * * *
    -   * When set, the payload to the push endpoint is not wrapped.
    +   * Optional. When set, the payload to the push endpoint is not wrapped.
        * 
    * - * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5; + * + * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 3e70473df9aa..8fd798b36af8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,10 +70,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * This ID can be used to acknowledge the received message.
    +   * Optional. This ID can be used to acknowledge the received message.
        * 
    * - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackId. */ @@ -93,10 +93,10 @@ public java.lang.String getAckId() { * * *
    -   * This ID can be used to acknowledge the received message.
    +   * Optional. This ID can be used to acknowledge the received message.
        * 
    * - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for ackId. */ @@ -119,10 +119,11 @@ public com.google.protobuf.ByteString getAckIdBytes() { * * *
    -   * The message.
    +   * Optional. The message.
        * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the message field is set. */ @@ -134,10 +135,11 @@ public boolean hasMessage() { * * *
    -   * The message.
    +   * Optional. The message.
        * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The message. */ @@ -149,10 +151,11 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { * * *
    -   * The message.
    +   * Optional. The message.
        * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { @@ -165,8 +168,8 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * *
    -   * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    -   * the associated message to a subscriber.
    +   * Optional. The approximate number of times that 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.
    @@ -183,7 +186,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
        * If a DeadLetterPolicy is not set on the subscription, this will be 0.
        * 
    * - * int32 delivery_attempt = 3; + * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deliveryAttempt. */ @@ -588,10 +591,10 @@ public Builder mergeFrom( * * *
    -     * This ID can be used to acknowledge the received message.
    +     * Optional. This ID can be used to acknowledge the received message.
          * 
    * - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackId. */ @@ -610,10 +613,10 @@ public java.lang.String getAckId() { * * *
    -     * This ID can be used to acknowledge the received message.
    +     * Optional. This ID can be used to acknowledge the received message.
          * 
    * - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for ackId. */ @@ -632,10 +635,10 @@ public com.google.protobuf.ByteString getAckIdBytes() { * * *
    -     * This ID can be used to acknowledge the received message.
    +     * Optional. This ID can be used to acknowledge the received message.
          * 
    * - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ackId to set. * @return This builder for chaining. @@ -653,10 +656,10 @@ public Builder setAckId(java.lang.String value) { * * *
    -     * This ID can be used to acknowledge the received message.
    +     * Optional. This ID can be used to acknowledge the received message.
          * 
    * - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -670,10 +673,10 @@ public Builder clearAckId() { * * *
    -     * This ID can be used to acknowledge the received message.
    +     * Optional. This ID can be used to acknowledge the received message.
          * 
    * - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for ackId to set. * @return This builder for chaining. @@ -699,10 +702,11 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { * * *
    -     * The message.
    +     * Optional. The message.
          * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the message field is set. */ @@ -713,10 +717,11 @@ public boolean hasMessage() { * * *
    -     * The message.
    +     * Optional. The message.
          * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The message. */ @@ -733,10 +738,11 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { * * *
    -     * The message.
    +     * Optional. The message.
          * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { @@ -755,10 +761,11 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { * * *
    -     * The message.
    +     * Optional. The message.
          * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForValue) { if (messageBuilder_ == null) { @@ -774,10 +781,11 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForV * * *
    -     * The message.
    +     * Optional. The message.
          * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { if (messageBuilder_ == null) { @@ -799,10 +807,11 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { * * *
    -     * The message.
    +     * Optional. The message.
          * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); @@ -818,10 +827,11 @@ public Builder clearMessage() { * * *
    -     * The message.
    +     * Optional. The message.
          * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { bitField0_ |= 0x00000002; @@ -832,10 +842,11 @@ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { * * *
    -     * The message.
    +     * Optional. The message.
          * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { @@ -850,10 +861,11 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * *
    -     * The message.
    +     * Optional. The message.
          * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PubsubMessage, @@ -877,8 +889,8 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * * *
    -     * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    -     * the associated message to a subscriber.
    +     * Optional. The approximate number of times that 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.
    @@ -895,7 +907,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() {
          * If a DeadLetterPolicy is not set on the subscription, this will be 0.
          * 
    * - * int32 delivery_attempt = 3; + * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deliveryAttempt. */ @@ -907,8 +919,8 @@ public int getDeliveryAttempt() { * * *
    -     * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    -     * the associated message to a subscriber.
    +     * Optional. The approximate number of times that 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.
    @@ -925,7 +937,7 @@ public int getDeliveryAttempt() {
          * If a DeadLetterPolicy is not set on the subscription, this will be 0.
          * 
    * - * int32 delivery_attempt = 3; + * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The deliveryAttempt to set. * @return This builder for chaining. @@ -941,8 +953,8 @@ public Builder setDeliveryAttempt(int value) { * * *
    -     * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    -     * the associated message to a subscriber.
    +     * Optional. The approximate number of times that 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.
    @@ -959,7 +971,7 @@ public Builder setDeliveryAttempt(int value) {
          * If a DeadLetterPolicy is not set on the subscription, this will be 0.
          * 
    * - * int32 delivery_attempt = 3; + * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index d5617c6525b0..e8b2c0622e08 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,10 +27,10 @@ public interface ReceivedMessageOrBuilder * * *
    -   * This ID can be used to acknowledge the received message.
    +   * Optional. This ID can be used to acknowledge the received message.
        * 
    * - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackId. */ @@ -39,10 +39,10 @@ public interface ReceivedMessageOrBuilder * * *
    -   * This ID can be used to acknowledge the received message.
    +   * Optional. This ID can be used to acknowledge the received message.
        * 
    * - * string ack_id = 1; + * string ack_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for ackId. */ @@ -52,10 +52,11 @@ public interface ReceivedMessageOrBuilder * * *
    -   * The message.
    +   * Optional. The message.
        * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the message field is set. */ @@ -64,10 +65,11 @@ public interface ReceivedMessageOrBuilder * * *
    -   * The message.
    +   * Optional. The message.
        * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The message. */ @@ -76,10 +78,11 @@ public interface ReceivedMessageOrBuilder * * *
    -   * The message.
    +   * Optional. The message.
        * 
    * - * .google.pubsub.v1.PubsubMessage message = 2; + * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder(); @@ -87,8 +90,8 @@ public interface ReceivedMessageOrBuilder * * *
    -   * The approximate number of times that Cloud Pub/Sub has attempted to deliver
    -   * the associated message to a subscriber.
    +   * Optional. The approximate number of times that 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.
    @@ -105,7 +108,7 @@ public interface ReceivedMessageOrBuilder
        * If a DeadLetterPolicy is not set on the subscription, this will be 0.
        * 
    * - * int32 delivery_attempt = 3; + * int32 delivery_attempt = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The deliveryAttempt. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index aee326393e16..31375806dc78 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ * * *
    - * A policy that specifies how Cloud Pub/Sub retries message delivery.
    + * A policy that specifies how Pub/Sub retries message delivery.
      *
      * Retry delay will be exponential based on provided minimum and maximum
      * backoffs. https://en.wikipedia.org/wiki/Exponential_backoff.
    @@ -74,11 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        *
        *
        * 
    -   * The minimum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * Optional. The minimum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
        * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the minimumBackoff field is set. */ @@ -90,11 +91,12 @@ public boolean hasMinimumBackoff() { * * *
    -   * The minimum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * Optional. The minimum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
        * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The minimumBackoff. */ @@ -108,11 +110,12 @@ public com.google.protobuf.Duration getMinimumBackoff() { * * *
    -   * The minimum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * Optional. The minimum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
        * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { @@ -127,11 +130,13 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { * * *
    -   * The maximum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * Optional. The maximum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 600
    +   * seconds.
        * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maximumBackoff field is set. */ @@ -143,11 +148,13 @@ public boolean hasMaximumBackoff() { * * *
    -   * The maximum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * Optional. The maximum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 600
    +   * seconds.
        * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maximumBackoff. */ @@ -161,11 +168,13 @@ public com.google.protobuf.Duration getMaximumBackoff() { * * *
    -   * The maximum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * Optional. The maximum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 600
    +   * seconds.
        * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { @@ -354,7 +363,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
    -   * A policy that specifies how Cloud Pub/Sub retries message delivery.
    +   * A policy that specifies how Pub/Sub retries message delivery.
        *
        * Retry delay will be exponential based on provided minimum and maximum
        * backoffs. https://en.wikipedia.org/wiki/Exponential_backoff.
    @@ -572,11 +581,13 @@ public Builder mergeFrom(
          *
          *
          * 
    -     * The minimum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * Optional. The minimum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
          * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the minimumBackoff field is set. */ @@ -587,11 +598,13 @@ public boolean hasMinimumBackoff() { * * *
    -     * The minimum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * Optional. The minimum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
          * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The minimumBackoff. */ @@ -608,11 +621,13 @@ public com.google.protobuf.Duration getMinimumBackoff() { * * *
    -     * The minimum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * Optional. The minimum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
          * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMinimumBackoff(com.google.protobuf.Duration value) { if (minimumBackoffBuilder_ == null) { @@ -631,11 +646,13 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) { * * *
    -     * The minimum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * Optional. The minimum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
          * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderForValue) { if (minimumBackoffBuilder_ == null) { @@ -651,11 +668,13 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderFor * * *
    -     * The minimum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * Optional. The minimum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
          * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { if (minimumBackoffBuilder_ == null) { @@ -677,11 +696,13 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { * * *
    -     * The minimum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * Optional. The minimum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
          * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMinimumBackoff() { bitField0_ = (bitField0_ & ~0x00000001); @@ -697,11 +718,13 @@ public Builder clearMinimumBackoff() { * * *
    -     * The minimum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * Optional. The minimum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
          * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() { bitField0_ |= 0x00000001; @@ -712,11 +735,13 @@ public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() { * * *
    -     * The minimum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * Optional. The minimum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
          * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { if (minimumBackoffBuilder_ != null) { @@ -731,11 +756,13 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { * * *
    -     * The minimum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +     * Optional. The minimum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
          * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -764,11 +791,14 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { * * *
    -     * The maximum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * Optional. The maximum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 600
    +     * seconds.
          * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maximumBackoff field is set. */ @@ -779,11 +809,14 @@ public boolean hasMaximumBackoff() { * * *
    -     * The maximum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * Optional. The maximum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 600
    +     * seconds.
          * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maximumBackoff. */ @@ -800,11 +833,14 @@ public com.google.protobuf.Duration getMaximumBackoff() { * * *
    -     * The maximum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * Optional. The maximum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 600
    +     * seconds.
          * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaximumBackoff(com.google.protobuf.Duration value) { if (maximumBackoffBuilder_ == null) { @@ -823,11 +859,14 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) { * * *
    -     * The maximum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * Optional. The maximum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 600
    +     * seconds.
          * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderForValue) { if (maximumBackoffBuilder_ == null) { @@ -843,11 +882,14 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderFor * * *
    -     * The maximum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * Optional. The maximum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 600
    +     * seconds.
          * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { if (maximumBackoffBuilder_ == null) { @@ -869,11 +911,14 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { * * *
    -     * The maximum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * Optional. The maximum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 600
    +     * seconds.
          * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMaximumBackoff() { bitField0_ = (bitField0_ & ~0x00000002); @@ -889,11 +934,14 @@ public Builder clearMaximumBackoff() { * * *
    -     * The maximum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * Optional. The maximum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 600
    +     * seconds.
          * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() { bitField0_ |= 0x00000002; @@ -904,11 +952,14 @@ public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() { * * *
    -     * The maximum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * Optional. The maximum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 600
    +     * seconds.
          * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { if (maximumBackoffBuilder_ != null) { @@ -923,11 +974,14 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { * * *
    -     * The maximum delay between consecutive deliveries of a given message.
    -     * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +     * Optional. The maximum delay between consecutive deliveries of a given
    +     * message. Value should be between 0 and 600 seconds. Defaults to 600
    +     * seconds.
          * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 967fa903c627..42cfa2210391 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,11 +27,12 @@ public interface RetryPolicyOrBuilder * * *
    -   * The minimum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * Optional. The minimum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
        * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the minimumBackoff field is set. */ @@ -40,11 +41,12 @@ public interface RetryPolicyOrBuilder * * *
    -   * The minimum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * Optional. The minimum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
        * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The minimumBackoff. */ @@ -53,11 +55,12 @@ public interface RetryPolicyOrBuilder * * *
    -   * The minimum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 10 seconds.
    +   * Optional. The minimum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 10 seconds.
        * 
    * - * .google.protobuf.Duration minimum_backoff = 1; + * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder(); @@ -65,11 +68,13 @@ public interface RetryPolicyOrBuilder * * *
    -   * The maximum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * Optional. The maximum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 600
    +   * seconds.
        * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the maximumBackoff field is set. */ @@ -78,11 +83,13 @@ public interface RetryPolicyOrBuilder * * *
    -   * The maximum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * Optional. The maximum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 600
    +   * seconds.
        * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The maximumBackoff. */ @@ -91,11 +98,13 @@ public interface RetryPolicyOrBuilder * * *
    -   * The maximum delay between consecutive deliveries of a given message.
    -   * Value should be between 0 and 600 seconds. Defaults to 600 seconds.
    +   * Optional. The maximum delay between consecutive deliveries of a given
    +   * message. Value should be between 0 and 600 seconds. Defaults to 600
    +   * seconds.
        * 
    * - * .google.protobuf.Duration maximum_backoff = 2; + * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 6de995c705a3..3b9f46ddca5f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index b7562292e450..992986674fff 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 7cdbcff9e629..1eef47c396af 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 98612c8c110d..d16516796cbd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index 296a9bc5c403..d04c35cb0149 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index e43b99679154..fdf613987db5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -132,10 +132,10 @@ public com.google.protobuf.ByteString getSchemaBytes() { * * *
    -   * The encoding of messages validated against `schema`.
    +   * Optional. The encoding of messages validated against `schema`.
        * 
    * - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enum numeric value on the wire for encoding. */ @@ -147,10 +147,10 @@ public int getEncodingValue() { * * *
    -   * The encoding of messages validated against `schema`.
    +   * Optional. The encoding of messages validated against `schema`.
        * 
    * - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The encoding. */ @@ -168,12 +168,12 @@ public com.google.pubsub.v1.Encoding getEncoding() { * * *
    -   * The minimum (inclusive) revision allowed for validating messages. If empty
    -   * or not present, allow any revision to be validated against last_revision or
    -   * any revision created before.
    +   * Optional. The minimum (inclusive) revision allowed for validating messages.
    +   * If empty or not present, allow any revision to be validated against
    +   * last_revision or any revision created before.
        * 
    * - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The firstRevisionId. */ @@ -193,12 +193,12 @@ public java.lang.String getFirstRevisionId() { * * *
    -   * The minimum (inclusive) revision allowed for validating messages. If empty
    -   * or not present, allow any revision to be validated against last_revision or
    -   * any revision created before.
    +   * Optional. The minimum (inclusive) revision allowed for validating messages.
    +   * If empty or not present, allow any revision to be validated against
    +   * last_revision or any revision created before.
        * 
    * - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for firstRevisionId. */ @@ -223,12 +223,12 @@ public com.google.protobuf.ByteString getFirstRevisionIdBytes() { * * *
    -   * The maximum (inclusive) revision allowed for validating messages. If empty
    -   * or not present, allow any revision to be validated against first_revision
    -   * or any revision created after.
    +   * Optional. The maximum (inclusive) revision allowed for validating messages.
    +   * If empty or not present, allow any revision to be validated against
    +   * first_revision or any revision created after.
        * 
    * - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The lastRevisionId. */ @@ -248,12 +248,12 @@ public java.lang.String getLastRevisionId() { * * *
    -   * The maximum (inclusive) revision allowed for validating messages. If empty
    -   * or not present, allow any revision to be validated against first_revision
    -   * or any revision created after.
    +   * Optional. The maximum (inclusive) revision allowed for validating messages.
    +   * If empty or not present, allow any revision to be validated against
    +   * first_revision or any revision created after.
        * 
    * - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for lastRevisionId. */ @@ -814,10 +814,11 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { * * *
    -     * The encoding of messages validated against `schema`.
    +     * Optional. The encoding of messages validated against `schema`.
          * 
    * - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for encoding. */ @@ -829,10 +830,11 @@ public int getEncodingValue() { * * *
    -     * The encoding of messages validated against `schema`.
    +     * Optional. The encoding of messages validated against `schema`.
          * 
    * - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. @@ -847,10 +849,11 @@ public Builder setEncodingValue(int value) { * * *
    -     * The encoding of messages validated against `schema`.
    +     * Optional. The encoding of messages validated against `schema`.
          * 
    * - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The encoding. */ @@ -863,10 +866,11 @@ public com.google.pubsub.v1.Encoding getEncoding() { * * *
    -     * The encoding of messages validated against `schema`.
    +     * Optional. The encoding of messages validated against `schema`.
          * 
    * - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The encoding to set. * @return This builder for chaining. @@ -884,10 +888,11 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { * * *
    -     * The encoding of messages validated against `schema`.
    +     * Optional. The encoding of messages validated against `schema`.
          * 
    * - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -903,12 +908,12 @@ public Builder clearEncoding() { * * *
    -     * The minimum (inclusive) revision allowed for validating messages. If empty
    -     * or not present, allow any revision to be validated against last_revision or
    -     * any revision created before.
    +     * Optional. The minimum (inclusive) revision allowed for validating messages.
    +     * If empty or not present, allow any revision to be validated against
    +     * last_revision or any revision created before.
          * 
    * - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The firstRevisionId. */ @@ -927,12 +932,12 @@ public java.lang.String getFirstRevisionId() { * * *
    -     * The minimum (inclusive) revision allowed for validating messages. If empty
    -     * or not present, allow any revision to be validated against last_revision or
    -     * any revision created before.
    +     * Optional. The minimum (inclusive) revision allowed for validating messages.
    +     * If empty or not present, allow any revision to be validated against
    +     * last_revision or any revision created before.
          * 
    * - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for firstRevisionId. */ @@ -951,12 +956,12 @@ public com.google.protobuf.ByteString getFirstRevisionIdBytes() { * * *
    -     * The minimum (inclusive) revision allowed for validating messages. If empty
    -     * or not present, allow any revision to be validated against last_revision or
    -     * any revision created before.
    +     * Optional. The minimum (inclusive) revision allowed for validating messages.
    +     * If empty or not present, allow any revision to be validated against
    +     * last_revision or any revision created before.
          * 
    * - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The firstRevisionId to set. * @return This builder for chaining. @@ -974,12 +979,12 @@ public Builder setFirstRevisionId(java.lang.String value) { * * *
    -     * The minimum (inclusive) revision allowed for validating messages. If empty
    -     * or not present, allow any revision to be validated against last_revision or
    -     * any revision created before.
    +     * Optional. The minimum (inclusive) revision allowed for validating messages.
    +     * If empty or not present, allow any revision to be validated against
    +     * last_revision or any revision created before.
          * 
    * - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -993,12 +998,12 @@ public Builder clearFirstRevisionId() { * * *
    -     * The minimum (inclusive) revision allowed for validating messages. If empty
    -     * or not present, allow any revision to be validated against last_revision or
    -     * any revision created before.
    +     * Optional. The minimum (inclusive) revision allowed for validating messages.
    +     * If empty or not present, allow any revision to be validated against
    +     * last_revision or any revision created before.
          * 
    * - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for firstRevisionId to set. * @return This builder for chaining. @@ -1019,12 +1024,12 @@ public Builder setFirstRevisionIdBytes(com.google.protobuf.ByteString value) { * * *
    -     * The maximum (inclusive) revision allowed for validating messages. If empty
    -     * or not present, allow any revision to be validated against first_revision
    -     * or any revision created after.
    +     * Optional. The maximum (inclusive) revision allowed for validating messages.
    +     * If empty or not present, allow any revision to be validated against
    +     * first_revision or any revision created after.
          * 
    * - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The lastRevisionId. */ @@ -1043,12 +1048,12 @@ public java.lang.String getLastRevisionId() { * * *
    -     * The maximum (inclusive) revision allowed for validating messages. If empty
    -     * or not present, allow any revision to be validated against first_revision
    -     * or any revision created after.
    +     * Optional. The maximum (inclusive) revision allowed for validating messages.
    +     * If empty or not present, allow any revision to be validated against
    +     * first_revision or any revision created after.
          * 
    * - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for lastRevisionId. */ @@ -1067,12 +1072,12 @@ public com.google.protobuf.ByteString getLastRevisionIdBytes() { * * *
    -     * The maximum (inclusive) revision allowed for validating messages. If empty
    -     * or not present, allow any revision to be validated against first_revision
    -     * or any revision created after.
    +     * Optional. The maximum (inclusive) revision allowed for validating messages.
    +     * If empty or not present, allow any revision to be validated against
    +     * first_revision or any revision created after.
          * 
    * - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The lastRevisionId to set. * @return This builder for chaining. @@ -1090,12 +1095,12 @@ public Builder setLastRevisionId(java.lang.String value) { * * *
    -     * The maximum (inclusive) revision allowed for validating messages. If empty
    -     * or not present, allow any revision to be validated against first_revision
    -     * or any revision created after.
    +     * Optional. The maximum (inclusive) revision allowed for validating messages.
    +     * If empty or not present, allow any revision to be validated against
    +     * first_revision or any revision created after.
          * 
    * - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1109,12 +1114,12 @@ public Builder clearLastRevisionId() { * * *
    -     * The maximum (inclusive) revision allowed for validating messages. If empty
    -     * or not present, allow any revision to be validated against first_revision
    -     * or any revision created after.
    +     * Optional. The maximum (inclusive) revision allowed for validating messages.
    +     * If empty or not present, allow any revision to be validated against
    +     * first_revision or any revision created after.
          * 
    * - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for lastRevisionId to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index b65abdf201b0..19823f45f7a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,10 +62,10 @@ public interface SchemaSettingsOrBuilder * * *
    -   * The encoding of messages validated against `schema`.
    +   * Optional. The encoding of messages validated against `schema`.
        * 
    * - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enum numeric value on the wire for encoding. */ @@ -74,10 +74,10 @@ public interface SchemaSettingsOrBuilder * * *
    -   * The encoding of messages validated against `schema`.
    +   * Optional. The encoding of messages validated against `schema`.
        * 
    * - * .google.pubsub.v1.Encoding encoding = 2; + * .google.pubsub.v1.Encoding encoding = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The encoding. */ @@ -87,12 +87,12 @@ public interface SchemaSettingsOrBuilder * * *
    -   * The minimum (inclusive) revision allowed for validating messages. If empty
    -   * or not present, allow any revision to be validated against last_revision or
    -   * any revision created before.
    +   * Optional. The minimum (inclusive) revision allowed for validating messages.
    +   * If empty or not present, allow any revision to be validated against
    +   * last_revision or any revision created before.
        * 
    * - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The firstRevisionId. */ @@ -101,12 +101,12 @@ public interface SchemaSettingsOrBuilder * * *
    -   * The minimum (inclusive) revision allowed for validating messages. If empty
    -   * or not present, allow any revision to be validated against last_revision or
    -   * any revision created before.
    +   * Optional. The minimum (inclusive) revision allowed for validating messages.
    +   * If empty or not present, allow any revision to be validated against
    +   * last_revision or any revision created before.
        * 
    * - * string first_revision_id = 3; + * string first_revision_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for firstRevisionId. */ @@ -116,12 +116,12 @@ public interface SchemaSettingsOrBuilder * * *
    -   * The maximum (inclusive) revision allowed for validating messages. If empty
    -   * or not present, allow any revision to be validated against first_revision
    -   * or any revision created after.
    +   * Optional. The maximum (inclusive) revision allowed for validating messages.
    +   * If empty or not present, allow any revision to be validated against
    +   * first_revision or any revision created after.
        * 
    * - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The lastRevisionId. */ @@ -130,12 +130,12 @@ public interface SchemaSettingsOrBuilder * * *
    -   * The maximum (inclusive) revision allowed for validating messages. If empty
    -   * or not present, allow any revision to be validated against first_revision
    -   * or any revision created after.
    +   * Optional. The maximum (inclusive) revision allowed for validating messages.
    +   * If empty or not present, allow any revision to be validated against
    +   * first_revision or any revision created after.
        * 
    * - * string last_revision_id = 4; + * string last_revision_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for lastRevisionId. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index c9ff100cd870..80ca623ebe73 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 4cded2d70389..6e6d5f347747 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -169,7 +169,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -   * The time to seek to.
    +   * Optional. 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
    @@ -182,7 +182,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
        * and already-expunged messages will not be restored.
        * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the time field is set. */ @@ -194,7 +194,7 @@ public boolean hasTime() { * * *
    -   * The time to seek to.
    +   * Optional. 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
    @@ -207,7 +207,7 @@ public boolean hasTime() {
        * and already-expunged messages will not be restored.
        * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The time. */ @@ -222,7 +222,7 @@ public com.google.protobuf.Timestamp getTime() { * * *
    -   * The time to seek to.
    +   * Optional. 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
    @@ -235,7 +235,7 @@ public com.google.protobuf.Timestamp getTime() {
        * and already-expunged messages will not be restored.
        * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { @@ -250,12 +250,14 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * *
    -   * 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}`.
    +   * Optional. 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}`.
        * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return Whether the snapshot field is set. */ @@ -266,12 +268,14 @@ public boolean hasSnapshot() { * * *
    -   * 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}`.
    +   * Optional. 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}`.
        * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -295,12 +299,14 @@ public java.lang.String getSnapshot() { * * *
    -   * 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}`.
    +   * Optional. 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}`.
        * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ @@ -880,7 +886,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * *
    -     * The time to seek to.
    +     * Optional. 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
    @@ -893,7 +899,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
          * and already-expunged messages will not be restored.
          * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the time field is set. */ @@ -905,7 +911,7 @@ public boolean hasTime() { * * *
    -     * The time to seek to.
    +     * Optional. 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
    @@ -918,7 +924,7 @@ public boolean hasTime() {
          * and already-expunged messages will not be restored.
          * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The time. */ @@ -940,7 +946,7 @@ public com.google.protobuf.Timestamp getTime() { * * *
    -     * The time to seek to.
    +     * Optional. 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
    @@ -953,7 +959,7 @@ public com.google.protobuf.Timestamp getTime() {
          * and already-expunged messages will not be restored.
          * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTime(com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { @@ -972,7 +978,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) { * * *
    -     * The time to seek to.
    +     * Optional. 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
    @@ -985,7 +991,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) {
          * and already-expunged messages will not be restored.
          * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (timeBuilder_ == null) { @@ -1001,7 +1007,7 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) { * * *
    -     * The time to seek to.
    +     * Optional. 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
    @@ -1014,7 +1020,7 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) {
          * and already-expunged messages will not be restored.
          * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeTime(com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { @@ -1041,7 +1047,7 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) { * * *
    -     * The time to seek to.
    +     * Optional. 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
    @@ -1054,7 +1060,7 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) {
          * and already-expunged messages will not be restored.
          * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTime() { if (timeBuilder_ == null) { @@ -1076,7 +1082,7 @@ public Builder clearTime() { * * *
    -     * The time to seek to.
    +     * Optional. 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
    @@ -1089,7 +1095,7 @@ public Builder clearTime() {
          * and already-expunged messages will not be restored.
          * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { return getTimeFieldBuilder().getBuilder(); @@ -1098,7 +1104,7 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { * * *
    -     * The time to seek to.
    +     * Optional. 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
    @@ -1111,7 +1117,7 @@ public com.google.protobuf.Timestamp.Builder getTimeBuilder() {
          * and already-expunged messages will not be restored.
          * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { @@ -1128,7 +1134,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * *
    -     * The time to seek to.
    +     * Optional. 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
    @@ -1141,7 +1147,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
          * and already-expunged messages will not be restored.
          * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1169,12 +1175,14 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * *
    -     * 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}`.
    +     * Optional. 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}`.
          * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return Whether the snapshot field is set. */ @@ -1186,12 +1194,14 @@ public boolean hasSnapshot() { * * *
    -     * 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}`.
    +     * Optional. 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}`.
          * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -1216,12 +1226,14 @@ public java.lang.String getSnapshot() { * * *
    -     * 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}`.
    +     * Optional. 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}`.
          * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ @@ -1246,12 +1258,14 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * *
    -     * 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}`.
    +     * Optional. 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}`.
          * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The snapshot to set. * @return This builder for chaining. @@ -1269,12 +1283,14 @@ public Builder setSnapshot(java.lang.String value) { * * *
    -     * 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}`.
    +     * Optional. 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}`.
          * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1290,12 +1306,14 @@ public Builder clearSnapshot() { * * *
    -     * 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}`.
    +     * Optional. 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}`.
          * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for snapshot to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 009aaa5f85fd..54a98d0d9b53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -56,7 +56,7 @@ public interface SeekRequestOrBuilder * * *
    -   * The time to seek to.
    +   * Optional. 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
    @@ -69,7 +69,7 @@ public interface SeekRequestOrBuilder
        * and already-expunged messages will not be restored.
        * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the time field is set. */ @@ -78,7 +78,7 @@ public interface SeekRequestOrBuilder * * *
    -   * The time to seek to.
    +   * Optional. 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
    @@ -91,7 +91,7 @@ public interface SeekRequestOrBuilder
        * and already-expunged messages will not be restored.
        * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The time. */ @@ -100,7 +100,7 @@ public interface SeekRequestOrBuilder * * *
    -   * The time to seek to.
    +   * Optional. 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
    @@ -113,7 +113,7 @@ public interface SeekRequestOrBuilder
        * and already-expunged messages will not be restored.
        * 
    * - * .google.protobuf.Timestamp time = 2; + * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); @@ -121,12 +121,14 @@ public interface SeekRequestOrBuilder * * *
    -   * 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}`.
    +   * Optional. 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}`.
        * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return Whether the snapshot field is set. */ @@ -135,12 +137,14 @@ public interface SeekRequestOrBuilder * * *
    -   * 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}`.
    +   * Optional. 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}`.
        * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The snapshot. */ @@ -149,12 +153,14 @@ public interface SeekRequestOrBuilder * * *
    -   * 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}`.
    +   * Optional. 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}`.
        * 
    * - * string snapshot = 3 [(.google.api.resource_reference) = { ... } + * + * string snapshot = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for snapshot. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 141e78c27c4c..de422ae442a3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 9b2fd097d677..0ad90788f2cc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index bbf7ea473eaa..ac68f828df33 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -84,10 +84,10 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
    -   * The name of the snapshot.
    +   * Optional. The name of the snapshot.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -107,10 +107,10 @@ public java.lang.String getName() { * * *
    -   * The name of the snapshot.
    +   * Optional. The name of the snapshot.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -135,10 +135,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -   * The name of the topic from which this snapshot is retaining messages.
    +   * Optional. The name of the topic from which this snapshot is retaining
    +   * messages.
        * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -158,10 +161,13 @@ public java.lang.String getTopic() { * * *
    -   * The name of the topic from which this snapshot is retaining messages.
    +   * Optional. The name of the topic from which this snapshot is retaining
    +   * messages.
        * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -184,7 +190,7 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -   * The snapshot is guaranteed to exist up until this time.
    +   * Optional. 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
    @@ -196,7 +202,8 @@ public com.google.protobuf.ByteString getTopicBytes() {
        * snapshot that would expire in less than 1 hour after creation.
        * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expireTime field is set. */ @@ -208,7 +215,7 @@ public boolean hasExpireTime() { * * *
    -   * The snapshot is guaranteed to exist up until this time.
    +   * Optional. 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
    @@ -220,7 +227,8 @@ public boolean hasExpireTime() {
        * snapshot that would expire in less than 1 hour after creation.
        * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expireTime. */ @@ -232,7 +240,7 @@ public com.google.protobuf.Timestamp getExpireTime() { * * *
    -   * The snapshot is guaranteed to exist up until this time.
    +   * Optional. 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
    @@ -244,7 +252,8 @@ public com.google.protobuf.Timestamp getExpireTime() {
        * snapshot that would expire in less than 1 hour after creation.
        * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -281,11 +290,11 @@ public int getLabelsCount() { * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -304,11 +313,11 @@ public java.util.Map getLabels() { * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -318,11 +327,11 @@ public java.util.Map getLabelsMap() { * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -339,11 +348,11 @@ public java.util.Map getLabelsMap() { * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -812,10 +821,10 @@ public Builder mergeFrom( * * *
    -     * The name of the snapshot.
    +     * Optional. The name of the snapshot.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -834,10 +843,10 @@ public java.lang.String getName() { * * *
    -     * The name of the snapshot.
    +     * Optional. The name of the snapshot.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -856,10 +865,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * The name of the snapshot.
    +     * Optional. The name of the snapshot.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The name to set. * @return This builder for chaining. @@ -877,10 +886,10 @@ public Builder setName(java.lang.String value) { * * *
    -     * The name of the snapshot.
    +     * Optional. The name of the snapshot.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -894,10 +903,10 @@ public Builder clearName() { * * *
    -     * The name of the snapshot.
    +     * Optional. The name of the snapshot.
          * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -918,10 +927,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * The name of the topic from which this snapshot is retaining messages.
    +     * Optional. The name of the topic from which this snapshot is retaining
    +     * messages.
          * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -940,10 +952,13 @@ public java.lang.String getTopic() { * * *
    -     * The name of the topic from which this snapshot is retaining messages.
    +     * Optional. The name of the topic from which this snapshot is retaining
    +     * messages.
          * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -962,10 +977,13 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * The name of the topic from which this snapshot is retaining messages.
    +     * Optional. The name of the topic from which this snapshot is retaining
    +     * messages.
          * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -983,10 +1001,13 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * The name of the topic from which this snapshot is retaining messages.
    +     * Optional. The name of the topic from which this snapshot is retaining
    +     * messages.
          * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1000,10 +1021,13 @@ public Builder clearTopic() { * * *
    -     * The name of the topic from which this snapshot is retaining messages.
    +     * Optional. The name of the topic from which this snapshot is retaining
    +     * messages.
          * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. @@ -1029,7 +1053,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * *
    -     * The snapshot is guaranteed to exist up until this time.
    +     * Optional. 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
    @@ -1041,7 +1065,8 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
          * snapshot that would expire in less than 1 hour after creation.
          * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expireTime field is set. */ @@ -1052,7 +1077,7 @@ public boolean hasExpireTime() { * * *
    -     * The snapshot is guaranteed to exist up until this time.
    +     * Optional. 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
    @@ -1064,7 +1089,8 @@ public boolean hasExpireTime() {
          * snapshot that would expire in less than 1 hour after creation.
          * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expireTime. */ @@ -1081,7 +1107,7 @@ public com.google.protobuf.Timestamp getExpireTime() { * * *
    -     * The snapshot is guaranteed to exist up until this time.
    +     * Optional. 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
    @@ -1093,7 +1119,8 @@ public com.google.protobuf.Timestamp getExpireTime() {
          * snapshot that would expire in less than 1 hour after creation.
          * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1112,7 +1139,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { * * *
    -     * The snapshot is guaranteed to exist up until this time.
    +     * Optional. 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
    @@ -1124,7 +1151,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
          * snapshot that would expire in less than 1 hour after creation.
          * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { @@ -1140,7 +1168,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
    -     * The snapshot is guaranteed to exist up until this time.
    +     * Optional. 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
    @@ -1152,7 +1180,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
          * snapshot that would expire in less than 1 hour after creation.
          * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -1174,7 +1203,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { * * *
    -     * The snapshot is guaranteed to exist up until this time.
    +     * Optional. 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
    @@ -1186,7 +1215,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
          * snapshot that would expire in less than 1 hour after creation.
          * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1202,7 +1232,7 @@ public Builder clearExpireTime() { * * *
    -     * The snapshot is guaranteed to exist up until this time.
    +     * Optional. 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
    @@ -1214,7 +1244,8 @@ public Builder clearExpireTime() {
          * snapshot that would expire in less than 1 hour after creation.
          * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000004; @@ -1225,7 +1256,7 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { * * *
    -     * The snapshot is guaranteed to exist up until this time.
    +     * Optional. 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
    @@ -1237,7 +1268,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
          * snapshot that would expire in less than 1 hour after creation.
          * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { @@ -1252,7 +1284,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * * *
    -     * The snapshot is guaranteed to exist up until this time.
    +     * Optional. 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
    @@ -1264,7 +1296,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
          * snapshot that would expire in less than 1 hour after creation.
          * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1312,11 +1345,11 @@ public int getLabelsCount() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -1335,11 +1368,11 @@ public java.util.Map getLabels() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -1349,11 +1382,11 @@ public java.util.Map getLabelsMap() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -1370,11 +1403,11 @@ public java.util.Map getLabelsMap() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -1397,11 +1430,11 @@ public Builder clearLabels() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -1420,11 +1453,11 @@ public java.util.Map getMutableLabels() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -1441,11 +1474,11 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 89d6b8dbcd54..44cb3d5168d6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,10 +27,10 @@ public interface SnapshotOrBuilder * * *
    -   * The name of the snapshot.
    +   * Optional. The name of the snapshot.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -39,10 +39,10 @@ public interface SnapshotOrBuilder * * *
    -   * The name of the snapshot.
    +   * Optional. The name of the snapshot.
        * 
    * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -52,10 +52,13 @@ public interface SnapshotOrBuilder * * *
    -   * The name of the topic from which this snapshot is retaining messages.
    +   * Optional. The name of the topic from which this snapshot is retaining
    +   * messages.
        * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -64,10 +67,13 @@ public interface SnapshotOrBuilder * * *
    -   * The name of the topic from which this snapshot is retaining messages.
    +   * Optional. The name of the topic from which this snapshot is retaining
    +   * messages.
        * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -77,7 +83,7 @@ public interface SnapshotOrBuilder * * *
    -   * The snapshot is guaranteed to exist up until this time.
    +   * Optional. 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
    @@ -89,7 +95,8 @@ public interface SnapshotOrBuilder
        * snapshot that would expire in less than 1 hour after creation.
        * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expireTime field is set. */ @@ -98,7 +105,7 @@ public interface SnapshotOrBuilder * * *
    -   * The snapshot is guaranteed to exist up until this time.
    +   * Optional. 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
    @@ -110,7 +117,8 @@ public interface SnapshotOrBuilder
        * snapshot that would expire in less than 1 hour after creation.
        * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expireTime. */ @@ -119,7 +127,7 @@ public interface SnapshotOrBuilder * * *
    -   * The snapshot is guaranteed to exist up until this time.
    +   * Optional. 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
    @@ -131,7 +139,8 @@ public interface SnapshotOrBuilder
        * snapshot that would expire in less than 1 hour after creation.
        * 
    * - * .google.protobuf.Timestamp expire_time = 3; + * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); @@ -139,22 +148,22 @@ public interface SnapshotOrBuilder * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -164,22 +173,22 @@ public interface SnapshotOrBuilder * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -190,11 +199,11 @@ java.lang.String getLabelsOrDefault( * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 20d715043a9f..cca88533399e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,14 +138,15 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -   * 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`.
    +   * Optional. 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`.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -156,14 +157,15 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -   * 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`.
    +   * Optional. 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`.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -174,14 +176,15 @@ public int getAckIdsCount() { * * *
    -   * 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`.
    +   * Optional. 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`.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -193,14 +196,15 @@ public java.lang.String getAckIds(int index) { * * *
    -   * 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`.
    +   * Optional. 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`.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -217,7 +221,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -   * The list of new ack deadlines for the IDs listed in
    +   * Optional. The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
        * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
        * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -230,7 +234,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
        * be aborted with status `INVALID_ARGUMENT`.
        * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineSeconds. */ @@ -242,7 +247,7 @@ public java.util.List getModifyDeadlineSecondsList() { * * *
    -   * The list of new ack deadlines for the IDs listed in
    +   * Optional. The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
        * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
        * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -255,7 +260,8 @@ public java.util.List getModifyDeadlineSecondsList() {
        * be aborted with status `INVALID_ARGUMENT`.
        * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineSeconds. */ @@ -266,7 +272,7 @@ public int getModifyDeadlineSecondsCount() { * * *
    -   * The list of new ack deadlines for the IDs listed in
    +   * Optional. The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
        * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
        * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -279,7 +285,8 @@ public int getModifyDeadlineSecondsCount() {
        * be aborted with status `INVALID_ARGUMENT`.
        * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. @@ -299,14 +306,15 @@ public int getModifyDeadlineSeconds(int index) { * * *
    -   * 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
    +   * Optional. 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.
        * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineAckIds. */ @@ -317,14 +325,15 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { * * *
    -   * 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
    +   * Optional. 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.
        * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineAckIds. */ @@ -335,14 +344,15 @@ public int getModifyDeadlineAckIdsCount() { * * *
    -   * 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
    +   * Optional. 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.
        * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. @@ -354,14 +364,15 @@ public java.lang.String getModifyDeadlineAckIds(int index) { * * *
    -   * 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
    +   * Optional. 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.
        * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. @@ -399,15 +410,15 @@ public int getStreamAckDeadlineSeconds() { * * *
    -   * 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 be used for
    +   * Optional. 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 be used for
        * different client instances.
        * 
    * - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The clientId. */ @@ -427,15 +438,15 @@ public java.lang.String getClientId() { * * *
    -   * 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 be used for
    +   * Optional. 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 be used for
        * different client instances.
        * 
    * - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for clientId. */ @@ -458,8 +469,8 @@ public com.google.protobuf.ByteString getClientIdBytes() { * * *
    -   * Flow control settings for the maximum number of outstanding messages. When
    -   * there are `max_outstanding_messages` or more currently sent to the
    +   * Optional. Flow control settings for the maximum number of outstanding
    +   * messages. When there are `max_outstanding_messages` currently sent to the
        * streaming pull client that have not yet been acked or nacked, the server
        * stops sending more messages. The sending of messages resumes once the
        * number of outstanding messages is less than this value. If the value is
    @@ -469,7 +480,7 @@ public com.google.protobuf.ByteString getClientIdBytes() {
        * `INVALID_ARGUMENT`.
        * 
    * - * int64 max_outstanding_messages = 7; + * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingMessages. */ @@ -484,18 +495,18 @@ public long getMaxOutstandingMessages() { * * *
    -   * Flow control settings for the maximum number of outstanding bytes. When
    -   * there are `max_outstanding_bytes` or more worth of messages currently sent
    -   * to the streaming pull client that have not yet been acked or nacked, the
    -   * server will stop sending more messages. The sending of messages resumes
    -   * once the number of outstanding bytes is less than this value. If the value
    -   * is <= 0, there is no limit to the number of outstanding bytes. This
    -   * property can only be set on the initial StreamingPullRequest. If it is set
    -   * on a subsequent request, the stream will be aborted with status
    +   * Optional. Flow control settings for the maximum number of outstanding
    +   * bytes. When there are `max_outstanding_bytes` or more worth of messages
    +   * currently sent to the streaming pull client that have not yet been acked or
    +   * nacked, the server will stop sending more messages. The sending of messages
    +   * resumes once the number of outstanding bytes is less than this value. If
    +   * the value is <= 0, there is no limit to the number of outstanding bytes.
    +   * This property can only be set on the initial StreamingPullRequest. If it is
    +   * set on a subsequent request, the stream will be aborted with status
        * `INVALID_ARGUMENT`.
        * 
    * - * int64 max_outstanding_bytes = 8; + * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingBytes. */ @@ -1223,14 +1234,15 @@ private void ensureAckIdsIsMutable() { * * *
    -     * 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`.
    +     * Optional. 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`.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -1242,14 +1254,15 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * 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`.
    +     * Optional. 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`.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -1260,14 +1273,15 @@ public int getAckIdsCount() { * * *
    -     * 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`.
    +     * Optional. 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`.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -1279,14 +1293,15 @@ public java.lang.String getAckIds(int index) { * * *
    -     * 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`.
    +     * Optional. 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`.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -1298,14 +1313,15 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * 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`.
    +     * Optional. 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`.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The ackIds to set. @@ -1325,14 +1341,15 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -     * 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`.
    +     * Optional. 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`.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ackIds to add. * @return This builder for chaining. @@ -1351,14 +1368,15 @@ public Builder addAckIds(java.lang.String value) { * * *
    -     * 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`.
    +     * Optional. 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`.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The ackIds to add. * @return This builder for chaining. @@ -1374,14 +1392,15 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -     * 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`.
    +     * Optional. 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`.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1396,14 +1415,15 @@ public Builder clearAckIds() { * * *
    -     * 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`.
    +     * Optional. 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`.
          * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the ackIds to add. * @return This builder for chaining. @@ -1432,7 +1452,7 @@ private void ensureModifyDeadlineSecondsIsMutable() { * * *
    -     * The list of new ack deadlines for the IDs listed in
    +     * Optional. The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
          * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
          * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -1445,7 +1465,8 @@ private void ensureModifyDeadlineSecondsIsMutable() {
          * be aborted with status `INVALID_ARGUMENT`.
          * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineSeconds. */ @@ -1458,7 +1479,7 @@ public java.util.List getModifyDeadlineSecondsList() { * * *
    -     * The list of new ack deadlines for the IDs listed in
    +     * Optional. The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
          * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
          * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -1471,7 +1492,8 @@ public java.util.List getModifyDeadlineSecondsList() {
          * be aborted with status `INVALID_ARGUMENT`.
          * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineSeconds. */ @@ -1482,7 +1504,7 @@ public int getModifyDeadlineSecondsCount() { * * *
    -     * The list of new ack deadlines for the IDs listed in
    +     * Optional. The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
          * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
          * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -1495,7 +1517,8 @@ public int getModifyDeadlineSecondsCount() {
          * be aborted with status `INVALID_ARGUMENT`.
          * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. @@ -1507,7 +1530,7 @@ public int getModifyDeadlineSeconds(int index) { * * *
    -     * The list of new ack deadlines for the IDs listed in
    +     * Optional. The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
          * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
          * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -1520,7 +1543,8 @@ public int getModifyDeadlineSeconds(int index) {
          * be aborted with status `INVALID_ARGUMENT`.
          * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The modifyDeadlineSeconds to set. @@ -1537,7 +1561,7 @@ public Builder setModifyDeadlineSeconds(int index, int value) { * * *
    -     * The list of new ack deadlines for the IDs listed in
    +     * Optional. The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
          * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
          * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -1550,7 +1574,8 @@ public Builder setModifyDeadlineSeconds(int index, int value) {
          * be aborted with status `INVALID_ARGUMENT`.
          * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The modifyDeadlineSeconds to add. * @return This builder for chaining. @@ -1566,7 +1591,7 @@ public Builder addModifyDeadlineSeconds(int value) { * * *
    -     * The list of new ack deadlines for the IDs listed in
    +     * Optional. The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
          * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
          * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -1579,7 +1604,8 @@ public Builder addModifyDeadlineSeconds(int value) {
          * be aborted with status `INVALID_ARGUMENT`.
          * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The modifyDeadlineSeconds to add. * @return This builder for chaining. @@ -1595,7 +1621,7 @@ public Builder addAllModifyDeadlineSeconds( * * *
    -     * The list of new ack deadlines for the IDs listed in
    +     * Optional. The list of new ack deadlines for the IDs listed in
          * `modify_deadline_ack_ids`. The size of this list must be the same as the
          * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
          * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -1608,7 +1634,8 @@ public Builder addAllModifyDeadlineSeconds(
          * be aborted with status `INVALID_ARGUMENT`.
          * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1632,14 +1659,15 @@ private void ensureModifyDeadlineAckIdsIsMutable() { * * *
    -     * 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
    +     * Optional. 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.
          * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineAckIds. */ @@ -1651,14 +1679,15 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { * * *
    -     * 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
    +     * Optional. 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.
          * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineAckIds. */ @@ -1669,14 +1698,15 @@ public int getModifyDeadlineAckIdsCount() { * * *
    -     * 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
    +     * Optional. 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.
          * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. @@ -1688,14 +1718,15 @@ public java.lang.String getModifyDeadlineAckIds(int index) { * * *
    -     * 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
    +     * Optional. 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.
          * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. @@ -1707,14 +1738,15 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { * * *
    -     * 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
    +     * Optional. 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.
          * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The modifyDeadlineAckIds to set. @@ -1734,14 +1766,15 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) { * * *
    -     * 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
    +     * Optional. 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.
          * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The modifyDeadlineAckIds to add. * @return This builder for chaining. @@ -1760,14 +1793,15 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) { * * *
    -     * 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
    +     * Optional. 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.
          * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The modifyDeadlineAckIds to add. * @return This builder for chaining. @@ -1783,14 +1817,15 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v * * *
    -     * 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
    +     * Optional. 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.
          * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1805,14 +1840,15 @@ public Builder clearModifyDeadlineAckIds() { * * *
    -     * 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
    +     * Optional. 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.
          * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the modifyDeadlineAckIds to add. * @return This builder for chaining. @@ -1896,15 +1932,15 @@ public Builder clearStreamAckDeadlineSeconds() { * * *
    -     * 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 be used for
    +     * Optional. 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 be used for
          * different client instances.
          * 
    * - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The clientId. */ @@ -1923,15 +1959,15 @@ public java.lang.String getClientId() { * * *
    -     * 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 be used for
    +     * Optional. 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 be used for
          * different client instances.
          * 
    * - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for clientId. */ @@ -1950,15 +1986,15 @@ public com.google.protobuf.ByteString getClientIdBytes() { * * *
    -     * 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 be used for
    +     * Optional. 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 be used for
          * different client instances.
          * 
    * - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The clientId to set. * @return This builder for chaining. @@ -1976,15 +2012,15 @@ public Builder setClientId(java.lang.String value) { * * *
    -     * 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 be used for
    +     * Optional. 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 be used for
          * different client instances.
          * 
    * - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1998,15 +2034,15 @@ public Builder clearClientId() { * * *
    -     * 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 be used for
    +     * Optional. 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 be used for
          * different client instances.
          * 
    * - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for clientId to set. * @return This builder for chaining. @@ -2027,8 +2063,8 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { * * *
    -     * Flow control settings for the maximum number of outstanding messages. When
    -     * there are `max_outstanding_messages` or more currently sent to the
    +     * Optional. Flow control settings for the maximum number of outstanding
    +     * messages. When there are `max_outstanding_messages` currently sent to the
          * streaming pull client that have not yet been acked or nacked, the server
          * stops sending more messages. The sending of messages resumes once the
          * number of outstanding messages is less than this value. If the value is
    @@ -2038,7 +2074,7 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) {
          * `INVALID_ARGUMENT`.
          * 
    * - * int64 max_outstanding_messages = 7; + * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingMessages. */ @@ -2050,8 +2086,8 @@ public long getMaxOutstandingMessages() { * * *
    -     * Flow control settings for the maximum number of outstanding messages. When
    -     * there are `max_outstanding_messages` or more currently sent to the
    +     * Optional. Flow control settings for the maximum number of outstanding
    +     * messages. When there are `max_outstanding_messages` currently sent to the
          * streaming pull client that have not yet been acked or nacked, the server
          * stops sending more messages. The sending of messages resumes once the
          * number of outstanding messages is less than this value. If the value is
    @@ -2061,7 +2097,7 @@ public long getMaxOutstandingMessages() {
          * `INVALID_ARGUMENT`.
          * 
    * - * int64 max_outstanding_messages = 7; + * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxOutstandingMessages to set. * @return This builder for chaining. @@ -2077,8 +2113,8 @@ public Builder setMaxOutstandingMessages(long value) { * * *
    -     * Flow control settings for the maximum number of outstanding messages. When
    -     * there are `max_outstanding_messages` or more currently sent to the
    +     * Optional. Flow control settings for the maximum number of outstanding
    +     * messages. When there are `max_outstanding_messages` currently sent to the
          * streaming pull client that have not yet been acked or nacked, the server
          * stops sending more messages. The sending of messages resumes once the
          * number of outstanding messages is less than this value. If the value is
    @@ -2088,7 +2124,7 @@ public Builder setMaxOutstandingMessages(long value) {
          * `INVALID_ARGUMENT`.
          * 
    * - * int64 max_outstanding_messages = 7; + * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2104,18 +2140,18 @@ public Builder clearMaxOutstandingMessages() { * * *
    -     * Flow control settings for the maximum number of outstanding bytes. When
    -     * there are `max_outstanding_bytes` or more worth of messages currently sent
    -     * to the streaming pull client that have not yet been acked or nacked, the
    -     * server will stop sending more messages. The sending of messages resumes
    -     * once the number of outstanding bytes is less than this value. If the value
    -     * is <= 0, there is no limit to the number of outstanding bytes. This
    -     * property can only be set on the initial StreamingPullRequest. If it is set
    -     * on a subsequent request, the stream will be aborted with status
    +     * Optional. Flow control settings for the maximum number of outstanding
    +     * bytes. When there are `max_outstanding_bytes` or more worth of messages
    +     * currently sent to the streaming pull client that have not yet been acked or
    +     * nacked, the server will stop sending more messages. The sending of messages
    +     * resumes once the number of outstanding bytes is less than this value. If
    +     * the value is <= 0, there is no limit to the number of outstanding bytes.
    +     * This property can only be set on the initial StreamingPullRequest. If it is
    +     * set on a subsequent request, the stream will be aborted with status
          * `INVALID_ARGUMENT`.
          * 
    * - * int64 max_outstanding_bytes = 8; + * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingBytes. */ @@ -2127,18 +2163,18 @@ public long getMaxOutstandingBytes() { * * *
    -     * Flow control settings for the maximum number of outstanding bytes. When
    -     * there are `max_outstanding_bytes` or more worth of messages currently sent
    -     * to the streaming pull client that have not yet been acked or nacked, the
    -     * server will stop sending more messages. The sending of messages resumes
    -     * once the number of outstanding bytes is less than this value. If the value
    -     * is <= 0, there is no limit to the number of outstanding bytes. This
    -     * property can only be set on the initial StreamingPullRequest. If it is set
    -     * on a subsequent request, the stream will be aborted with status
    +     * Optional. Flow control settings for the maximum number of outstanding
    +     * bytes. When there are `max_outstanding_bytes` or more worth of messages
    +     * currently sent to the streaming pull client that have not yet been acked or
    +     * nacked, the server will stop sending more messages. The sending of messages
    +     * resumes once the number of outstanding bytes is less than this value. If
    +     * the value is <= 0, there is no limit to the number of outstanding bytes.
    +     * This property can only be set on the initial StreamingPullRequest. If it is
    +     * set on a subsequent request, the stream will be aborted with status
          * `INVALID_ARGUMENT`.
          * 
    * - * int64 max_outstanding_bytes = 8; + * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The maxOutstandingBytes to set. * @return This builder for chaining. @@ -2154,18 +2190,18 @@ public Builder setMaxOutstandingBytes(long value) { * * *
    -     * Flow control settings for the maximum number of outstanding bytes. When
    -     * there are `max_outstanding_bytes` or more worth of messages currently sent
    -     * to the streaming pull client that have not yet been acked or nacked, the
    -     * server will stop sending more messages. The sending of messages resumes
    -     * once the number of outstanding bytes is less than this value. If the value
    -     * is <= 0, there is no limit to the number of outstanding bytes. This
    -     * property can only be set on the initial StreamingPullRequest. If it is set
    -     * on a subsequent request, the stream will be aborted with status
    +     * Optional. Flow control settings for the maximum number of outstanding
    +     * bytes. When there are `max_outstanding_bytes` or more worth of messages
    +     * currently sent to the streaming pull client that have not yet been acked or
    +     * nacked, the server will stop sending more messages. The sending of messages
    +     * resumes once the number of outstanding bytes is less than this value. If
    +     * the value is <= 0, there is no limit to the number of outstanding bytes.
    +     * This property can only be set on the initial StreamingPullRequest. If it is
    +     * set on a subsequent request, the stream will be aborted with status
          * `INVALID_ARGUMENT`.
          * 
    * - * int64 max_outstanding_bytes = 8; + * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 1a8ca38b560e..4a35dfcb96a3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,14 +62,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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`.
    +   * Optional. 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`.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -78,14 +79,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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`.
    +   * Optional. 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`.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -94,14 +96,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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`.
    +   * Optional. 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`.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -111,14 +114,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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`.
    +   * Optional. 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`.
        * 
    * - * repeated string ack_ids = 2; + * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -129,7 +133,7 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * The list of new ack deadlines for the IDs listed in
    +   * Optional. The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
        * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
        * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -142,7 +146,8 @@ public interface StreamingPullRequestOrBuilder
        * be aborted with status `INVALID_ARGUMENT`.
        * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineSeconds. */ @@ -151,7 +156,7 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * The list of new ack deadlines for the IDs listed in
    +   * Optional. The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
        * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
        * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -164,7 +169,8 @@ public interface StreamingPullRequestOrBuilder
        * be aborted with status `INVALID_ARGUMENT`.
        * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineSeconds. */ @@ -173,7 +179,7 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * The list of new ack deadlines for the IDs listed in
    +   * Optional. The list of new ack deadlines for the IDs listed in
        * `modify_deadline_ack_ids`. The size of this list must be the same as the
        * size of `modify_deadline_ack_ids`. If it differs the stream will be aborted
        * with `INVALID_ARGUMENT`. Each element in this list is applied to the
    @@ -186,7 +192,8 @@ public interface StreamingPullRequestOrBuilder
        * be aborted with status `INVALID_ARGUMENT`.
        * 
    * - * repeated int32 modify_deadline_seconds = 3; + * repeated int32 modify_deadline_seconds = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineSeconds at the given index. @@ -197,14 +204,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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
    +   * Optional. 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.
        * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the modifyDeadlineAckIds. */ @@ -213,14 +221,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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
    +   * Optional. 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.
        * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of modifyDeadlineAckIds. */ @@ -229,14 +238,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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
    +   * Optional. 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.
        * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The modifyDeadlineAckIds at the given index. @@ -246,14 +256,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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
    +   * Optional. 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.
        * 
    * - * repeated string modify_deadline_ack_ids = 4; + * repeated string modify_deadline_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the modifyDeadlineAckIds at the given index. @@ -280,15 +291,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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 be used for
    +   * Optional. 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 be used for
        * different client instances.
        * 
    * - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The clientId. */ @@ -297,15 +308,15 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * 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 be used for
    +   * Optional. 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 be used for
        * different client instances.
        * 
    * - * string client_id = 6; + * string client_id = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for clientId. */ @@ -315,8 +326,8 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Flow control settings for the maximum number of outstanding messages. When
    -   * there are `max_outstanding_messages` or more currently sent to the
    +   * Optional. Flow control settings for the maximum number of outstanding
    +   * messages. When there are `max_outstanding_messages` currently sent to the
        * streaming pull client that have not yet been acked or nacked, the server
        * stops sending more messages. The sending of messages resumes once the
        * number of outstanding messages is less than this value. If the value is
    @@ -326,7 +337,7 @@ public interface StreamingPullRequestOrBuilder
        * `INVALID_ARGUMENT`.
        * 
    * - * int64 max_outstanding_messages = 7; + * int64 max_outstanding_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingMessages. */ @@ -336,18 +347,18 @@ public interface StreamingPullRequestOrBuilder * * *
    -   * Flow control settings for the maximum number of outstanding bytes. When
    -   * there are `max_outstanding_bytes` or more worth of messages currently sent
    -   * to the streaming pull client that have not yet been acked or nacked, the
    -   * server will stop sending more messages. The sending of messages resumes
    -   * once the number of outstanding bytes is less than this value. If the value
    -   * is <= 0, there is no limit to the number of outstanding bytes. This
    -   * property can only be set on the initial StreamingPullRequest. If it is set
    -   * on a subsequent request, the stream will be aborted with status
    +   * Optional. Flow control settings for the maximum number of outstanding
    +   * bytes. When there are `max_outstanding_bytes` or more worth of messages
    +   * currently sent to the streaming pull client that have not yet been acked or
    +   * nacked, the server will stop sending more messages. The sending of messages
    +   * resumes once the number of outstanding bytes is less than this value. If
    +   * the value is <= 0, there is no limit to the number of outstanding bytes.
    +   * This property can only be set on the initial StreamingPullRequest. If it is
    +   * set on a subsequent request, the stream will be aborted with status
        * `INVALID_ARGUMENT`.
        * 
    * - * int64 max_outstanding_bytes = 8; + * int64 max_outstanding_bytes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The maxOutstandingBytes. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 52505da103ef..98c34b9fdf82 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,10 +72,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -84,10 +84,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -96,10 +96,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -109,10 +109,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -123,11 +123,11 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -136,11 +136,11 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -149,11 +149,11 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -163,11 +163,11 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -178,10 +178,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgement IDs that were out of order.
          * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the unorderedAckIds. */ @@ -190,10 +190,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgement IDs that were out of order.
          * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of unorderedAckIds. */ @@ -202,10 +202,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgement IDs that were out of order.
          * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. @@ -215,10 +215,10 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgement IDs that were out of order.
          * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. @@ -229,10 +229,12 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -241,10 +243,12 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -253,10 +257,12 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -266,10 +272,12 @@ public interface AcknowledgeConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -333,10 +341,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -347,10 +355,10 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -361,10 +369,10 @@ public int getAckIdsCount() { * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -376,10 +384,10 @@ public java.lang.String getAckIds(int index) { * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -397,11 +405,11 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -412,11 +420,11 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -427,11 +435,11 @@ public int getInvalidAckIdsCount() { * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -443,11 +451,11 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -465,10 +473,10 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -     * List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgement IDs that were out of order.
          * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the unorderedAckIds. */ @@ -479,10 +487,10 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * * *
    -     * List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgement IDs that were out of order.
          * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of unorderedAckIds. */ @@ -493,10 +501,10 @@ public int getUnorderedAckIdsCount() { * * *
    -     * List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgement IDs that were out of order.
          * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. @@ -508,10 +516,10 @@ public java.lang.String getUnorderedAckIds(int index) { * * *
    -     * List of acknowledgement IDs that were out of order.
    +     * Optional. List of acknowledgement IDs that were out of order.
          * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. @@ -529,10 +537,12 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -543,10 +553,12 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -557,10 +569,12 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -572,10 +586,12 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 4; + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -1083,10 +1099,10 @@ private void ensureAckIdsIsMutable() { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -1098,10 +1114,10 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -1112,10 +1128,10 @@ public int getAckIdsCount() { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -1127,10 +1143,10 @@ public java.lang.String getAckIds(int index) { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -1142,10 +1158,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The ackIds to set. @@ -1165,10 +1181,10 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ackIds to add. * @return This builder for chaining. @@ -1187,10 +1203,10 @@ public Builder addAckIds(java.lang.String value) { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The ackIds to add. * @return This builder for chaining. @@ -1206,10 +1222,10 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1224,10 +1240,10 @@ public Builder clearAckIds() { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the ackIds to add. * @return This builder for chaining. @@ -1257,11 +1273,11 @@ private void ensureInvalidAckIdsIsMutable() { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -1273,11 +1289,11 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -1288,11 +1304,11 @@ public int getInvalidAckIdsCount() { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -1304,11 +1320,11 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -1320,11 +1336,11 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The invalidAckIds to set. @@ -1344,11 +1360,11 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The invalidAckIds to add. * @return This builder for chaining. @@ -1367,11 +1383,11 @@ public Builder addInvalidAckIds(java.lang.String value) { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The invalidAckIds to add. * @return This builder for chaining. @@ -1387,11 +1403,11 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1406,11 +1422,11 @@ public Builder clearInvalidAckIds() { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. @@ -1440,10 +1456,11 @@ private void ensureUnorderedAckIdsIsMutable() { * * *
    -       * List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgement IDs that were out of order.
            * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the unorderedAckIds. */ @@ -1455,10 +1472,11 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * * *
    -       * List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgement IDs that were out of order.
            * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of unorderedAckIds. */ @@ -1469,10 +1487,11 @@ public int getUnorderedAckIdsCount() { * * *
    -       * List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgement IDs that were out of order.
            * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The unorderedAckIds at the given index. @@ -1484,10 +1503,11 @@ public java.lang.String getUnorderedAckIds(int index) { * * *
    -       * List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgement IDs that were out of order.
            * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the unorderedAckIds at the given index. @@ -1499,10 +1519,11 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * * *
    -       * List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgement IDs that were out of order.
            * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The unorderedAckIds to set. @@ -1522,10 +1543,11 @@ public Builder setUnorderedAckIds(int index, java.lang.String value) { * * *
    -       * List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgement IDs that were out of order.
            * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The unorderedAckIds to add. * @return This builder for chaining. @@ -1544,10 +1566,11 @@ public Builder addUnorderedAckIds(java.lang.String value) { * * *
    -       * List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgement IDs that were out of order.
            * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The unorderedAckIds to add. * @return This builder for chaining. @@ -1563,10 +1586,11 @@ public Builder addAllUnorderedAckIds(java.lang.Iterable values * * *
    -       * List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgement IDs that were out of order.
            * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1581,10 +1605,11 @@ public Builder clearUnorderedAckIds() { * * *
    -       * List of acknowledgement IDs that were out of order.
    +       * Optional. List of acknowledgement IDs that were out of order.
            * 
    * - * repeated string unordered_ack_ids = 3; + * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the unorderedAckIds to add. * @return This builder for chaining. @@ -1615,10 +1640,13 @@ private void ensureTemporaryFailedAckIdsIsMutable() { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -1630,10 +1658,13 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -1644,10 +1675,13 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -1659,10 +1693,13 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -1674,10 +1711,13 @@ public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The temporaryFailedAckIds to set. @@ -1697,10 +1737,13 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The temporaryFailedAckIds to add. * @return This builder for chaining. @@ -1719,10 +1762,13 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The temporaryFailedAckIds to add. * @return This builder for chaining. @@ -1738,10 +1784,13 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -1756,10 +1805,13 @@ public Builder clearTemporaryFailedAckIds() { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 4; + * + * repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the temporaryFailedAckIds to add. * @return This builder for chaining. @@ -1852,10 +1904,10 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -1864,10 +1916,10 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -1876,10 +1928,10 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -1889,10 +1941,10 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -1903,11 +1955,11 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -1916,11 +1968,11 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -1929,11 +1981,11 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -1943,11 +1995,11 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -1958,10 +2010,12 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -1970,10 +2024,12 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -1982,10 +2038,12 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -1995,10 +2053,12 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -2064,10 +2124,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -2078,10 +2138,10 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -2092,10 +2152,10 @@ public int getAckIdsCount() { * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -2107,10 +2167,10 @@ public java.lang.String getAckIds(int index) { * * *
    -     * Successfully processed acknowledgement IDs.
    +     * Optional. Successfully processed acknowledgement IDs.
          * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -2128,11 +2188,11 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -2143,11 +2203,11 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -2158,11 +2218,11 @@ public int getInvalidAckIdsCount() { * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -2174,11 +2234,11 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -     * List of acknowledgement IDs that were malformed or whose acknowledgement
    -     * deadline has expired.
    +     * Optional. List of acknowledgement IDs that were malformed or whose
    +     * acknowledgement deadline has expired.
          * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -2196,10 +2256,12 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -2210,10 +2272,12 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -2224,10 +2288,12 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -2239,10 +2305,12 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -     * List of acknowledgement IDs that failed processing with temporary issues.
    +     * Optional. List of acknowledgement IDs that failed processing with
    +     * temporary issues.
          * 
    * - * repeated string temporary_failed_ack_ids = 3; + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -2722,10 +2790,10 @@ private void ensureAckIdsIsMutable() { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the ackIds. */ @@ -2737,10 +2805,10 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of ackIds. */ @@ -2751,10 +2819,10 @@ public int getAckIdsCount() { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The ackIds at the given index. @@ -2766,10 +2834,10 @@ public java.lang.String getAckIds(int index) { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the ackIds at the given index. @@ -2781,10 +2849,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The ackIds to set. @@ -2804,10 +2872,10 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ackIds to add. * @return This builder for chaining. @@ -2826,10 +2894,10 @@ public Builder addAckIds(java.lang.String value) { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The ackIds to add. * @return This builder for chaining. @@ -2845,10 +2913,10 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2863,10 +2931,10 @@ public Builder clearAckIds() { * * *
    -       * Successfully processed acknowledgement IDs.
    +       * Optional. Successfully processed acknowledgement IDs.
            * 
    * - * repeated string ack_ids = 1; + * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the ackIds to add. * @return This builder for chaining. @@ -2896,11 +2964,11 @@ private void ensureInvalidAckIdsIsMutable() { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the invalidAckIds. */ @@ -2912,11 +2980,11 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of invalidAckIds. */ @@ -2927,11 +2995,11 @@ public int getInvalidAckIdsCount() { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The invalidAckIds at the given index. @@ -2943,11 +3011,11 @@ public java.lang.String getInvalidAckIds(int index) { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the invalidAckIds at the given index. @@ -2959,11 +3027,11 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The invalidAckIds to set. @@ -2983,11 +3051,11 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The invalidAckIds to add. * @return This builder for chaining. @@ -3006,11 +3074,11 @@ public Builder addInvalidAckIds(java.lang.String value) { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The invalidAckIds to add. * @return This builder for chaining. @@ -3026,11 +3094,11 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3045,11 +3113,11 @@ public Builder clearInvalidAckIds() { * * *
    -       * List of acknowledgement IDs that were malformed or whose acknowledgement
    -       * deadline has expired.
    +       * Optional. List of acknowledgement IDs that were malformed or whose
    +       * acknowledgement deadline has expired.
            * 
    * - * repeated string invalid_ack_ids = 2; + * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the invalidAckIds to add. * @return This builder for chaining. @@ -3080,10 +3148,13 @@ private void ensureTemporaryFailedAckIdsIsMutable() { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the temporaryFailedAckIds. */ @@ -3095,10 +3166,13 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of temporaryFailedAckIds. */ @@ -3109,10 +3183,13 @@ public int getTemporaryFailedAckIdsCount() { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The temporaryFailedAckIds at the given index. @@ -3124,10 +3201,13 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the temporaryFailedAckIds at the given index. @@ -3139,10 +3219,13 @@ public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The temporaryFailedAckIds to set. @@ -3162,10 +3245,13 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The temporaryFailedAckIds to add. * @return This builder for chaining. @@ -3184,10 +3270,13 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The temporaryFailedAckIds to add. * @return This builder for chaining. @@ -3203,10 +3292,13 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -3221,10 +3313,13 @@ public Builder clearTemporaryFailedAckIds() { * * *
    -       * List of acknowledgement IDs that failed processing with temporary issues.
    +       * Optional. List of acknowledgement IDs that failed processing with
    +       * temporary issues.
            * 
    * - * repeated string temporary_failed_ack_ids = 3; + * + * repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the temporaryFailedAckIds to add. * @return This builder for chaining. @@ -3318,10 +3413,12 @@ public interface SubscriptionPropertiesOrBuilder * * *
    -     * True iff exactly once delivery is enabled for this subscription.
    +     * Optional. True iff exactly once delivery is enabled for this
    +     * subscription.
          * 
    * - * bool exactly_once_delivery_enabled = 1; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The exactlyOnceDeliveryEnabled. */ @@ -3331,10 +3428,10 @@ public interface SubscriptionPropertiesOrBuilder * * *
    -     * True iff message ordering is enabled for this subscription.
    +     * Optional. True iff message ordering is enabled for this subscription.
          * 
    * - * bool message_ordering_enabled = 2; + * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The messageOrderingEnabled. */ @@ -3388,10 +3485,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * True iff exactly once delivery is enabled for this subscription.
    +     * Optional. True iff exactly once delivery is enabled for this
    +     * subscription.
          * 
    * - * bool exactly_once_delivery_enabled = 1; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The exactlyOnceDeliveryEnabled. */ @@ -3406,10 +3505,10 @@ public boolean getExactlyOnceDeliveryEnabled() { * * *
    -     * True iff message ordering is enabled for this subscription.
    +     * Optional. True iff message ordering is enabled for this subscription.
          * 
    * - * bool message_ordering_enabled = 2; + * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The messageOrderingEnabled. */ @@ -3800,10 +3899,12 @@ public Builder mergeFrom( * * *
    -       * True iff exactly once delivery is enabled for this subscription.
    +       * Optional. True iff exactly once delivery is enabled for this
    +       * subscription.
            * 
    * - * bool exactly_once_delivery_enabled = 1; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The exactlyOnceDeliveryEnabled. */ @@ -3815,10 +3916,12 @@ public boolean getExactlyOnceDeliveryEnabled() { * * *
    -       * True iff exactly once delivery is enabled for this subscription.
    +       * Optional. True iff exactly once delivery is enabled for this
    +       * subscription.
            * 
    * - * bool exactly_once_delivery_enabled = 1; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The exactlyOnceDeliveryEnabled to set. * @return This builder for chaining. @@ -3834,10 +3937,12 @@ public Builder setExactlyOnceDeliveryEnabled(boolean value) { * * *
    -       * True iff exactly once delivery is enabled for this subscription.
    +       * Optional. True iff exactly once delivery is enabled for this
    +       * subscription.
            * 
    * - * bool exactly_once_delivery_enabled = 1; + * bool exactly_once_delivery_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -3853,10 +3958,10 @@ public Builder clearExactlyOnceDeliveryEnabled() { * * *
    -       * True iff message ordering is enabled for this subscription.
    +       * Optional. True iff message ordering is enabled for this subscription.
            * 
    * - * bool message_ordering_enabled = 2; + * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The messageOrderingEnabled. */ @@ -3868,10 +3973,10 @@ public boolean getMessageOrderingEnabled() { * * *
    -       * True iff message ordering is enabled for this subscription.
    +       * Optional. True iff message ordering is enabled for this subscription.
            * 
    * - * bool message_ordering_enabled = 2; + * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The messageOrderingEnabled to set. * @return This builder for chaining. @@ -3887,10 +3992,10 @@ public Builder setMessageOrderingEnabled(boolean value) { * * *
    -       * True iff message ordering is enabled for this subscription.
    +       * Optional. True iff message ordering is enabled for this subscription.
            * 
    * - * bool message_ordering_enabled = 2; + * bool message_ordering_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3976,10 +4081,12 @@ public com.google.protobuf.Parser getParserForType() { * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages. This will not be empty.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getReceivedMessagesList() { @@ -3989,10 +4096,12 @@ public java.util.List getReceivedMessagesL * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages. This will not be empty.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List @@ -4003,10 +4112,12 @@ public java.util.List getReceivedMessagesL * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages. This will not be empty.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getReceivedMessagesCount() { @@ -4016,10 +4127,12 @@ public int getReceivedMessagesCount() { * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages. This will not be empty.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { @@ -4029,10 +4142,12 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages. This will not be empty.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { @@ -4046,12 +4161,12 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the acknowledgeConfirmation field is set. @@ -4064,12 +4179,12 @@ public boolean hasAcknowledgeConfirmation() { * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The acknowledgeConfirmation. @@ -4085,12 +4200,12 @@ public boolean hasAcknowledgeConfirmation() { * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -4108,12 +4223,12 @@ public boolean hasAcknowledgeConfirmation() { * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the modifyAckDeadlineConfirmation field is set. @@ -4126,12 +4241,12 @@ public boolean hasModifyAckDeadlineConfirmation() { * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The modifyAckDeadlineConfirmation. @@ -4148,12 +4263,12 @@ public boolean hasModifyAckDeadlineConfirmation() { * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -4171,11 +4286,11 @@ public boolean hasModifyAckDeadlineConfirmation() { * * *
    -   * Properties associated with this subscription.
    +   * Optional. Properties associated with this subscription.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the subscriptionProperties field is set. @@ -4188,11 +4303,11 @@ public boolean hasSubscriptionProperties() { * * *
    -   * Properties associated with this subscription.
    +   * Optional. Properties associated with this subscription.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The subscriptionProperties. @@ -4208,11 +4323,11 @@ public boolean hasSubscriptionProperties() { * * *
    -   * Properties associated with this subscription.
    +   * Optional. Properties associated with this subscription.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -4744,10 +4859,12 @@ private void ensureReceivedMessagesIsMutable() { * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesList() { if (receivedMessagesBuilder_ == null) { @@ -4760,10 +4877,12 @@ public java.util.List getReceivedMessagesL * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getReceivedMessagesCount() { if (receivedMessagesBuilder_ == null) { @@ -4776,10 +4895,12 @@ public int getReceivedMessagesCount() { * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -4792,10 +4913,12 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -4814,10 +4937,12 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -4834,10 +4959,12 @@ public Builder setReceivedMessages( * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -4856,10 +4983,12 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessage value) { if (receivedMessagesBuilder_ == null) { @@ -4878,10 +5007,12 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -4898,10 +5029,12 @@ public Builder addReceivedMessages( * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReceivedMessages( int index, com.google.pubsub.v1.ReceivedMessage.Builder builderForValue) { @@ -4918,10 +5051,12 @@ public Builder addReceivedMessages( * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllReceivedMessages( java.lang.Iterable values) { @@ -4938,10 +5073,12 @@ public Builder addAllReceivedMessages( * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReceivedMessages() { if (receivedMessagesBuilder_ == null) { @@ -4957,10 +5094,12 @@ public Builder clearReceivedMessages() { * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeReceivedMessages(int index) { if (receivedMessagesBuilder_ == null) { @@ -4976,10 +5115,12 @@ public Builder removeReceivedMessages(int index) { * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); @@ -4988,10 +5129,12 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(i * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index) { if (receivedMessagesBuilder_ == null) { @@ -5004,10 +5147,12 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesOrBuilderList() { @@ -5021,10 +5166,12 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { return getReceivedMessagesFieldBuilder() @@ -5034,10 +5181,12 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder() @@ -5047,10 +5196,12 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * * *
    -     * Received Pub/Sub messages. This will not be empty.
    +     * Optional. Received Pub/Sub messages. This will not be empty.
          * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getReceivedMessagesBuilderList() { @@ -5088,12 +5239,12 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the acknowledgeConfirmation field is set. @@ -5105,12 +5256,12 @@ public boolean hasAcknowledgeConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The acknowledgeConfirmation. @@ -5130,12 +5281,12 @@ public boolean hasAcknowledgeConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAcknowledgeConfirmation( @@ -5156,12 +5307,12 @@ public Builder setAcknowledgeConfirmation( * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAcknowledgeConfirmation( @@ -5180,12 +5331,12 @@ public Builder setAcknowledgeConfirmation( * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeAcknowledgeConfirmation( @@ -5211,12 +5362,12 @@ public Builder mergeAcknowledgeConfirmation( * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearAcknowledgeConfirmation() { @@ -5233,12 +5384,12 @@ public Builder clearAcknowledgeConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder @@ -5251,12 +5402,12 @@ public Builder clearAcknowledgeConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder @@ -5274,12 +5425,12 @@ public Builder clearAcknowledgeConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5310,12 +5461,12 @@ public Builder clearAcknowledgeConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the modifyAckDeadlineConfirmation field is set. @@ -5327,12 +5478,12 @@ public boolean hasModifyAckDeadlineConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The modifyAckDeadlineConfirmation. @@ -5352,12 +5503,12 @@ public boolean hasModifyAckDeadlineConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setModifyAckDeadlineConfirmation( @@ -5378,12 +5529,12 @@ public Builder setModifyAckDeadlineConfirmation( * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setModifyAckDeadlineConfirmation( @@ -5402,12 +5553,12 @@ public Builder setModifyAckDeadlineConfirmation( * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeModifyAckDeadlineConfirmation( @@ -5433,12 +5584,12 @@ public Builder mergeModifyAckDeadlineConfirmation( * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearModifyAckDeadlineConfirmation() { @@ -5455,12 +5606,12 @@ public Builder clearModifyAckDeadlineConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder @@ -5473,12 +5624,12 @@ public Builder clearModifyAckDeadlineConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder @@ -5496,12 +5647,12 @@ public Builder clearModifyAckDeadlineConfirmation() { * * *
    -     * This field will only be set if `enable_exactly_once_delivery` is set to
    -     * `true`.
    +     * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +     * set to `true`.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -5532,11 +5683,11 @@ public Builder clearModifyAckDeadlineConfirmation() { * * *
    -     * Properties associated with this subscription.
    +     * Optional. Properties associated with this subscription.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the subscriptionProperties field is set. @@ -5548,11 +5699,11 @@ public boolean hasSubscriptionProperties() { * * *
    -     * Properties associated with this subscription.
    +     * Optional. Properties associated with this subscription.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The subscriptionProperties. @@ -5571,11 +5722,11 @@ public boolean hasSubscriptionProperties() { * * *
    -     * Properties associated with this subscription.
    +     * Optional. Properties associated with this subscription.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSubscriptionProperties( @@ -5596,11 +5747,11 @@ public Builder setSubscriptionProperties( * * *
    -     * Properties associated with this subscription.
    +     * Optional. Properties associated with this subscription.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSubscriptionProperties( @@ -5618,11 +5769,11 @@ public Builder setSubscriptionProperties( * * *
    -     * Properties associated with this subscription.
    +     * Optional. Properties associated with this subscription.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeSubscriptionProperties( @@ -5648,11 +5799,11 @@ public Builder mergeSubscriptionProperties( * * *
    -     * Properties associated with this subscription.
    +     * Optional. Properties associated with this subscription.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSubscriptionProperties() { @@ -5669,11 +5820,11 @@ public Builder clearSubscriptionProperties() { * * *
    -     * Properties associated with this subscription.
    +     * Optional. Properties associated with this subscription.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder @@ -5686,11 +5837,11 @@ public Builder clearSubscriptionProperties() { * * *
    -     * Properties associated with this subscription.
    +     * Optional. Properties associated with this subscription.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder @@ -5707,11 +5858,11 @@ public Builder clearSubscriptionProperties() { * * *
    -     * Properties associated with this subscription.
    +     * Optional. Properties associated with this subscription.
          * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index e9d7b80f8b2d..e8968c231017 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,40 +27,48 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages. This will not be empty.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getReceivedMessagesList(); /** * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages. This will not be empty.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); /** * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages. This will not be empty.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getReceivedMessagesCount(); /** * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages. This will not be empty.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.List getReceivedMessagesOrBuilderList(); @@ -68,10 +76,12 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * Received Pub/Sub messages. This will not be empty.
    +   * Optional. Received Pub/Sub messages. This will not be empty.
        * 
    * - * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1; + * + * repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index); @@ -79,12 +89,12 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the acknowledgeConfirmation field is set. @@ -94,12 +104,12 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The acknowledgeConfirmation. @@ -109,12 +119,12 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5; + * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder @@ -124,12 +134,12 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the modifyAckDeadlineConfirmation field is set. @@ -139,12 +149,12 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The modifyAckDeadlineConfirmation. @@ -155,12 +165,12 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * This field will only be set if `enable_exactly_once_delivery` is set to
    -   * `true`.
    +   * Optional. This field will only be set if `enable_exactly_once_delivery` is
    +   * set to `true`.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder @@ -170,11 +180,11 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * Properties associated with this subscription.
    +   * Optional. Properties associated with this subscription.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the subscriptionProperties field is set. @@ -184,11 +194,11 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * Properties associated with this subscription.
    +   * Optional. Properties associated with this subscription.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The subscriptionProperties. @@ -198,11 +208,11 @@ public interface StreamingPullResponseOrBuilder * * *
    -   * Properties associated with this subscription.
    +   * Optional. Properties associated with this subscription.
        * 
    * * - * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4; + * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 6e21f6ef27b0..f8a13c5f0d4d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -365,11 +365,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -   * If push delivery is used with this subscription, this field is
    +   * Optional. If push delivery is used with this subscription, this field is
        * used to configure it.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pushConfig field is set. */ @@ -381,11 +382,12 @@ public boolean hasPushConfig() { * * *
    -   * If push delivery is used with this subscription, this field is
    +   * Optional. If push delivery is used with this subscription, this field is
        * used to configure it.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pushConfig. */ @@ -397,11 +399,12 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * * *
    -   * If push delivery is used with this subscription, this field is
    +   * Optional. If push delivery is used with this subscription, this field is
        * used to configure it.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { @@ -414,11 +417,13 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * *
    -   * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it.
    +   * Optional. If delivery to BigQuery is used with this subscription, this
    +   * field is used to configure it.
        * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the bigqueryConfig field is set. */ @@ -430,11 +435,13 @@ public boolean hasBigqueryConfig() { * * *
    -   * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it.
    +   * Optional. If delivery to BigQuery is used with this subscription, this
    +   * field is used to configure it.
        * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bigqueryConfig. */ @@ -448,11 +455,13 @@ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { * * *
    -   * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it.
    +   * Optional. If delivery to BigQuery is used with this subscription, this
    +   * field is used to configure it.
        * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() { @@ -467,11 +476,13 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * * *
    -   * If delivery to Google Cloud Storage is used with this subscription, this
    -   * field is used to configure it.
    +   * Optional. If delivery to Google Cloud Storage is used with this
    +   * subscription, this field is used to configure it.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the cloudStorageConfig field is set. */ @@ -483,11 +494,13 @@ public boolean hasCloudStorageConfig() { * * *
    -   * If delivery to Google Cloud Storage is used with this subscription, this
    -   * field is used to configure it.
    +   * Optional. If delivery to Google Cloud Storage is used with this
    +   * subscription, this field is used to configure it.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The cloudStorageConfig. */ @@ -501,11 +514,13 @@ public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { * * *
    -   * If delivery to Google Cloud Storage is used with this subscription, this
    -   * field is used to configure it.
    +   * Optional. If delivery to Google Cloud Storage is used with this
    +   * subscription, this field is used to configure it.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder() { @@ -520,11 +535,11 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB * * *
    -   * 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).
    +   * Optional. 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
    @@ -542,7 +557,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB
        * system will eventually redeliver the message.
        * 
    * - * int32 ack_deadline_seconds = 5; + * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackDeadlineSeconds. */ @@ -557,7 +572,7 @@ public int getAckDeadlineSeconds() { * * *
    -   * Indicates whether to retain acknowledged messages. If true, then
    +   * Optional. 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]
    @@ -565,7 +580,7 @@ public int getAckDeadlineSeconds() {
        * the past to replay previously-acknowledged messages.
        * 
    * - * bool retain_acked_messages = 7; + * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The retainAckedMessages. */ @@ -580,15 +595,16 @@ public boolean getRetainAckedMessages() { * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -600,15 +616,16 @@ public boolean hasMessageRetentionDuration() { * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -622,15 +639,16 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { @@ -669,11 +687,11 @@ public int getLabelsCount() { * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -692,11 +710,11 @@ public java.util.Map getLabels() { * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -706,11 +724,11 @@ public java.util.Map getLabelsMap() { * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -727,11 +745,11 @@ public java.util.Map getLabelsMap() { * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -751,13 +769,13 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * bool enable_message_ordering = 10; + * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableMessageOrdering. */ @@ -772,16 +790,18 @@ public boolean getEnableMessageOrdering() { * * *
    -   * 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
    +   * Optional. 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. If `expiration_policy` is set,
        * but `expiration_policy.ttl` is not set, the subscription never expires.
        * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expirationPolicy field is set. */ @@ -793,16 +813,18 @@ public boolean hasExpirationPolicy() { * * *
    -   * 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
    +   * Optional. 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. If `expiration_policy` is set,
        * but `expiration_policy.ttl` is not set, the subscription never expires.
        * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expirationPolicy. */ @@ -816,16 +838,18 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { * * *
    -   * 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
    +   * Optional. 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. If `expiration_policy` is set,
        * but `expiration_policy.ttl` is not set, the subscription never expires.
        * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder() { @@ -842,14 +866,14 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * * *
    -   * An expression written in the Pub/Sub [filter
    +   * Optional. An expression written in the Pub/Sub [filter
        * language](https://cloud.google.com/pubsub/docs/filtering). 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.
        * 
    * - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -869,14 +893,14 @@ public java.lang.String getFilter() { * * *
    -   * An expression written in the Pub/Sub [filter
    +   * Optional. An expression written in the Pub/Sub [filter
        * language](https://cloud.google.com/pubsub/docs/filtering). 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.
        * 
    * - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -899,17 +923,19 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -   * A policy that specifies the conditions for dead lettering messages in
    -   * this subscription. If dead_letter_policy is not set, dead lettering
    -   * is disabled.
    +   * Optional. 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
    +   * The 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.
        * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the deadLetterPolicy field is set. */ @@ -921,17 +947,19 @@ public boolean hasDeadLetterPolicy() { * * *
    -   * A policy that specifies the conditions for dead lettering messages in
    -   * this subscription. If dead_letter_policy is not set, dead lettering
    -   * is disabled.
    +   * Optional. 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
    +   * The 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.
        * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The deadLetterPolicy. */ @@ -945,17 +973,19 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { * * *
    -   * A policy that specifies the conditions for dead lettering messages in
    -   * this subscription. If dead_letter_policy is not set, dead lettering
    -   * is disabled.
    +   * Optional. 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
    +   * The 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.
        * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() { @@ -970,8 +1000,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * *
    -   * A policy that specifies how Pub/Sub retries message delivery for this
    -   * subscription.
    +   * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +   * this subscription.
        *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
    @@ -979,7 +1009,9 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
        * exceeded events for a given message.
        * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the retryPolicy field is set. */ @@ -991,8 +1023,8 @@ public boolean hasRetryPolicy() { * * *
    -   * A policy that specifies how Pub/Sub retries message delivery for this
    -   * subscription.
    +   * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +   * this subscription.
        *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
    @@ -1000,7 +1032,9 @@ public boolean hasRetryPolicy() {
        * exceeded events for a given message.
        * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The retryPolicy. */ @@ -1014,8 +1048,8 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * *
    -   * A policy that specifies how Pub/Sub retries message delivery for this
    -   * subscription.
    +   * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +   * this subscription.
        *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
    @@ -1023,7 +1057,9 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() {
        * exceeded events for a given message.
        * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { @@ -1038,14 +1074,14 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * * *
    -   * Indicates whether the subscription is detached from its topic. Detached
    -   * subscriptions don't receive messages from their topic and don't retain any
    -   * backlog. `Pull` and `StreamingPull` requests will return
    +   * Optional. Indicates whether the subscription is detached from its topic.
    +   * Detached subscriptions don't receive messages from their topic and don't
    +   * retain any backlog. `Pull` and `StreamingPull` requests will return
        * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
        * the endpoint will not be made.
        * 
    * - * bool detached = 15; + * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The detached. */ @@ -1060,8 +1096,9 @@ public boolean getDetached() { * * *
    -   * If true, Pub/Sub provides the following guarantees for the delivery of
    -   * a message with a given value of `message_id` on this subscription:
    +   * Optional. If true, Pub/Sub provides the following guarantees for the
    +   * delivery of a message with a given value of `message_id` on this
    +   * subscription:
        *
        * * The message sent to a subscriber is guaranteed not to be resent
        * before the message's acknowledgement deadline expires.
    @@ -1073,7 +1110,7 @@ public boolean getDetached() {
        * by Pub/Sub and have distinct `message_id` values.
        * 
    * - * bool enable_exactly_once_delivery = 16; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableExactlyOnceDelivery. */ @@ -2309,11 +2346,12 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { * * *
    -     * If push delivery is used with this subscription, this field is
    +     * Optional. If push delivery is used with this subscription, this field is
          * used to configure it.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pushConfig field is set. */ @@ -2324,11 +2362,12 @@ public boolean hasPushConfig() { * * *
    -     * If push delivery is used with this subscription, this field is
    +     * Optional. If push delivery is used with this subscription, this field is
          * used to configure it.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pushConfig. */ @@ -2345,11 +2384,12 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { * * *
    -     * If push delivery is used with this subscription, this field is
    +     * Optional. If push delivery is used with this subscription, this field is
          * used to configure it.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { @@ -2368,11 +2408,12 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { * * *
    -     * If push delivery is used with this subscription, this field is
    +     * Optional. If push delivery is used with this subscription, this field is
          * used to configure it.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForValue) { if (pushConfigBuilder_ == null) { @@ -2388,11 +2429,12 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV * * *
    -     * If push delivery is used with this subscription, this field is
    +     * Optional. If push delivery is used with this subscription, this field is
          * used to configure it.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { if (pushConfigBuilder_ == null) { @@ -2414,11 +2456,12 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { * * *
    -     * If push delivery is used with this subscription, this field is
    +     * Optional. If push delivery is used with this subscription, this field is
          * used to configure it.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPushConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2434,11 +2477,12 @@ public Builder clearPushConfig() { * * *
    -     * If push delivery is used with this subscription, this field is
    +     * Optional. If push delivery is used with this subscription, this field is
          * used to configure it.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { bitField0_ |= 0x00000004; @@ -2449,11 +2493,12 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { * * *
    -     * If push delivery is used with this subscription, this field is
    +     * Optional. If push delivery is used with this subscription, this field is
          * used to configure it.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { if (pushConfigBuilder_ != null) { @@ -2468,11 +2513,12 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * *
    -     * If push delivery is used with this subscription, this field is
    +     * Optional. If push delivery is used with this subscription, this field is
          * used to configure it.
          * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.PushConfig, @@ -2501,11 +2547,13 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * * *
    -     * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it.
    +     * Optional. If delivery to BigQuery is used with this subscription, this
    +     * field is used to configure it.
          * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the bigqueryConfig field is set. */ @@ -2516,11 +2564,13 @@ public boolean hasBigqueryConfig() { * * *
    -     * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it.
    +     * Optional. If delivery to BigQuery is used with this subscription, this
    +     * field is used to configure it.
          * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bigqueryConfig. */ @@ -2537,11 +2587,13 @@ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { * * *
    -     * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it.
    +     * Optional. If delivery to BigQuery is used with this subscription, this
    +     * field is used to configure it.
          * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { if (bigqueryConfigBuilder_ == null) { @@ -2560,11 +2612,13 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { * * *
    -     * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it.
    +     * Optional. If delivery to BigQuery is used with this subscription, this
    +     * field is used to configure it.
          * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig.Builder builderForValue) { if (bigqueryConfigBuilder_ == null) { @@ -2580,11 +2634,13 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig.Builder bui * * *
    -     * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it.
    +     * Optional. If delivery to BigQuery is used with this subscription, this
    +     * field is used to configure it.
          * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { if (bigqueryConfigBuilder_ == null) { @@ -2606,11 +2662,13 @@ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { * * *
    -     * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it.
    +     * Optional. If delivery to BigQuery is used with this subscription, this
    +     * field is used to configure it.
          * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBigqueryConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2626,11 +2684,13 @@ public Builder clearBigqueryConfig() { * * *
    -     * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it.
    +     * Optional. If delivery to BigQuery is used with this subscription, this
    +     * field is used to configure it.
          * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { bitField0_ |= 0x00000008; @@ -2641,11 +2701,13 @@ public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { * * *
    -     * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it.
    +     * Optional. If delivery to BigQuery is used with this subscription, this
    +     * field is used to configure it.
          * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() { if (bigqueryConfigBuilder_ != null) { @@ -2660,11 +2722,13 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * * *
    -     * If delivery to BigQuery is used with this subscription, this field is
    -     * used to configure it.
    +     * Optional. If delivery to BigQuery is used with this subscription, this
    +     * field is used to configure it.
          * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.BigQueryConfig, @@ -2693,11 +2757,13 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * * *
    -     * If delivery to Google Cloud Storage is used with this subscription, this
    -     * field is used to configure it.
    +     * Optional. If delivery to Google Cloud Storage is used with this
    +     * subscription, this field is used to configure it.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the cloudStorageConfig field is set. */ @@ -2708,11 +2774,13 @@ public boolean hasCloudStorageConfig() { * * *
    -     * If delivery to Google Cloud Storage is used with this subscription, this
    -     * field is used to configure it.
    +     * Optional. If delivery to Google Cloud Storage is used with this
    +     * subscription, this field is used to configure it.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The cloudStorageConfig. */ @@ -2729,11 +2797,13 @@ public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { * * *
    -     * If delivery to Google Cloud Storage is used with this subscription, this
    -     * field is used to configure it.
    +     * Optional. If delivery to Google Cloud Storage is used with this
    +     * subscription, this field is used to configure it.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig value) { if (cloudStorageConfigBuilder_ == null) { @@ -2752,11 +2822,13 @@ public Builder setCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig val * * *
    -     * If delivery to Google Cloud Storage is used with this subscription, this
    -     * field is used to configure it.
    +     * Optional. If delivery to Google Cloud Storage is used with this
    +     * subscription, this field is used to configure it.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setCloudStorageConfig( com.google.pubsub.v1.CloudStorageConfig.Builder builderForValue) { @@ -2773,11 +2845,13 @@ public Builder setCloudStorageConfig( * * *
    -     * If delivery to Google Cloud Storage is used with this subscription, this
    -     * field is used to configure it.
    +     * Optional. If delivery to Google Cloud Storage is used with this
    +     * subscription, this field is used to configure it.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig value) { if (cloudStorageConfigBuilder_ == null) { @@ -2800,11 +2874,13 @@ public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig v * * *
    -     * If delivery to Google Cloud Storage is used with this subscription, this
    -     * field is used to configure it.
    +     * Optional. If delivery to Google Cloud Storage is used with this
    +     * subscription, this field is used to configure it.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearCloudStorageConfig() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2820,11 +2896,13 @@ public Builder clearCloudStorageConfig() { * * *
    -     * If delivery to Google Cloud Storage is used with this subscription, this
    -     * field is used to configure it.
    +     * Optional. If delivery to Google Cloud Storage is used with this
    +     * subscription, this field is used to configure it.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfig.Builder getCloudStorageConfigBuilder() { bitField0_ |= 0x00000010; @@ -2835,11 +2913,13 @@ public com.google.pubsub.v1.CloudStorageConfig.Builder getCloudStorageConfigBuil * * *
    -     * If delivery to Google Cloud Storage is used with this subscription, this
    -     * field is used to configure it.
    +     * Optional. If delivery to Google Cloud Storage is used with this
    +     * subscription, this field is used to configure it.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder() { if (cloudStorageConfigBuilder_ != null) { @@ -2854,11 +2934,13 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB * * *
    -     * If delivery to Google Cloud Storage is used with this subscription, this
    -     * field is used to configure it.
    +     * Optional. If delivery to Google Cloud Storage is used with this
    +     * subscription, this field is used to configure it.
          * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.CloudStorageConfig, @@ -2882,11 +2964,11 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB * * *
    -     * 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).
    +     * Optional. 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
    @@ -2904,7 +2986,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB
          * system will eventually redeliver the message.
          * 
    * - * int32 ack_deadline_seconds = 5; + * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackDeadlineSeconds. */ @@ -2916,11 +2998,11 @@ public int getAckDeadlineSeconds() { * * *
    -     * 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).
    +     * Optional. 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
    @@ -2938,7 +3020,7 @@ public int getAckDeadlineSeconds() {
          * system will eventually redeliver the message.
          * 
    * - * int32 ack_deadline_seconds = 5; + * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ackDeadlineSeconds to set. * @return This builder for chaining. @@ -2954,11 +3036,11 @@ public Builder setAckDeadlineSeconds(int value) { * * *
    -     * 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).
    +     * Optional. 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
    @@ -2976,7 +3058,7 @@ public Builder setAckDeadlineSeconds(int value) {
          * system will eventually redeliver the message.
          * 
    * - * int32 ack_deadline_seconds = 5; + * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2992,7 +3074,7 @@ public Builder clearAckDeadlineSeconds() { * * *
    -     * Indicates whether to retain acknowledged messages. If true, then
    +     * Optional. 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]
    @@ -3000,7 +3082,7 @@ public Builder clearAckDeadlineSeconds() {
          * the past to replay previously-acknowledged messages.
          * 
    * - * bool retain_acked_messages = 7; + * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The retainAckedMessages. */ @@ -3012,7 +3094,7 @@ public boolean getRetainAckedMessages() { * * *
    -     * Indicates whether to retain acknowledged messages. If true, then
    +     * Optional. 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]
    @@ -3020,7 +3102,7 @@ public boolean getRetainAckedMessages() {
          * the past to replay previously-acknowledged messages.
          * 
    * - * bool retain_acked_messages = 7; + * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The retainAckedMessages to set. * @return This builder for chaining. @@ -3036,7 +3118,7 @@ public Builder setRetainAckedMessages(boolean value) { * * *
    -     * Indicates whether to retain acknowledged messages. If true, then
    +     * Optional. 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]
    @@ -3044,7 +3126,7 @@ public Builder setRetainAckedMessages(boolean value) {
          * the past to replay previously-acknowledged messages.
          * 
    * - * bool retain_acked_messages = 7; + * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3065,15 +3147,16 @@ public Builder clearRetainAckedMessages() { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -3084,15 +3167,16 @@ public boolean hasMessageRetentionDuration() { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -3109,15 +3193,16 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { @@ -3136,15 +3221,16 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -3161,15 +3247,16 @@ public Builder setMessageRetentionDuration( * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { @@ -3191,15 +3278,16 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessageRetentionDuration() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3215,15 +3303,16 @@ public Builder clearMessageRetentionDuration() { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { bitField0_ |= 0x00000080; @@ -3234,15 +3323,16 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { if (messageRetentionDurationBuilder_ != null) { @@ -3257,15 +3347,16 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -3313,11 +3404,11 @@ public int getLabelsCount() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -3336,11 +3427,11 @@ public java.util.Map getLabels() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -3350,11 +3441,11 @@ public java.util.Map getLabelsMap() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -3371,11 +3462,11 @@ public java.util.Map getLabelsMap() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -3398,11 +3489,11 @@ public Builder clearLabels() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -3421,11 +3512,11 @@ public java.util.Map getMutableLabels() { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -3442,11 +3533,11 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
    -     * See [Creating and managing
    +     * Optional. See [Creating and managing
          * labels](https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); @@ -3459,13 +3550,13 @@ public Builder putAllLabels(java.util.Map va * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * bool enable_message_ordering = 10; + * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableMessageOrdering. */ @@ -3477,13 +3568,13 @@ public boolean getEnableMessageOrdering() { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * bool enable_message_ordering = 10; + * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The enableMessageOrdering to set. * @return This builder for chaining. @@ -3499,13 +3590,13 @@ public Builder setEnableMessageOrdering(boolean value) { * * *
    -     * 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.
    +     * Optional. 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.
          * 
    * - * bool enable_message_ordering = 10; + * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3526,16 +3617,18 @@ public Builder clearEnableMessageOrdering() { * * *
    -     * 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
    +     * Optional. 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. If `expiration_policy` is set,
          * but `expiration_policy.ttl` is not set, the subscription never expires.
          * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expirationPolicy field is set. */ @@ -3546,16 +3639,18 @@ public boolean hasExpirationPolicy() { * * *
    -     * 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
    +     * Optional. 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. If `expiration_policy` is set,
          * but `expiration_policy.ttl` is not set, the subscription never expires.
          * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expirationPolicy. */ @@ -3572,16 +3667,18 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { * * *
    -     * 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
    +     * Optional. 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. If `expiration_policy` is set,
          * but `expiration_policy.ttl` is not set, the subscription never expires.
          * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) { if (expirationPolicyBuilder_ == null) { @@ -3600,16 +3697,18 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) * * *
    -     * 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
    +     * Optional. 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. If `expiration_policy` is set,
          * but `expiration_policy.ttl` is not set, the subscription never expires.
          * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExpirationPolicy( com.google.pubsub.v1.ExpirationPolicy.Builder builderForValue) { @@ -3626,16 +3725,18 @@ public Builder setExpirationPolicy( * * *
    -     * 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
    +     * Optional. 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. If `expiration_policy` is set,
          * but `expiration_policy.ttl` is not set, the subscription never expires.
          * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) { if (expirationPolicyBuilder_ == null) { @@ -3657,16 +3758,18 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value * * *
    -     * 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
    +     * Optional. 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. If `expiration_policy` is set,
          * but `expiration_policy.ttl` is not set, the subscription never expires.
          * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExpirationPolicy() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3682,16 +3785,18 @@ public Builder clearExpirationPolicy() { * * *
    -     * 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
    +     * Optional. 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. If `expiration_policy` is set,
          * but `expiration_policy.ttl` is not set, the subscription never expires.
          * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() { bitField0_ |= 0x00000400; @@ -3702,16 +3807,18 @@ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder( * * *
    -     * 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
    +     * Optional. 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. If `expiration_policy` is set,
          * but `expiration_policy.ttl` is not set, the subscription never expires.
          * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder() { if (expirationPolicyBuilder_ != null) { @@ -3726,16 +3833,18 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * * *
    -     * 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
    +     * Optional. 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. If `expiration_policy` is set,
          * but `expiration_policy.ttl` is not set, the subscription never expires.
          * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.ExpirationPolicy, @@ -3759,14 +3868,14 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * * *
    -     * An expression written in the Pub/Sub [filter
    +     * Optional. An expression written in the Pub/Sub [filter
          * language](https://cloud.google.com/pubsub/docs/filtering). 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.
          * 
    * - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -3785,14 +3894,14 @@ public java.lang.String getFilter() { * * *
    -     * An expression written in the Pub/Sub [filter
    +     * Optional. An expression written in the Pub/Sub [filter
          * language](https://cloud.google.com/pubsub/docs/filtering). 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.
          * 
    * - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -3811,14 +3920,14 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
    -     * An expression written in the Pub/Sub [filter
    +     * Optional. An expression written in the Pub/Sub [filter
          * language](https://cloud.google.com/pubsub/docs/filtering). 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.
          * 
    * - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -3836,14 +3945,14 @@ public Builder setFilter(java.lang.String value) { * * *
    -     * An expression written in the Pub/Sub [filter
    +     * Optional. An expression written in the Pub/Sub [filter
          * language](https://cloud.google.com/pubsub/docs/filtering). 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.
          * 
    * - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3857,14 +3966,14 @@ public Builder clearFilter() { * * *
    -     * An expression written in the Pub/Sub [filter
    +     * Optional. An expression written in the Pub/Sub [filter
          * language](https://cloud.google.com/pubsub/docs/filtering). 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.
          * 
    * - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -3890,17 +3999,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
    -     * A policy that specifies the conditions for dead lettering messages in
    -     * this subscription. If dead_letter_policy is not set, dead lettering
    -     * is disabled.
    +     * Optional. 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
    +     * The 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.
          * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the deadLetterPolicy field is set. */ @@ -3911,17 +4022,19 @@ public boolean hasDeadLetterPolicy() { * * *
    -     * A policy that specifies the conditions for dead lettering messages in
    -     * this subscription. If dead_letter_policy is not set, dead lettering
    -     * is disabled.
    +     * Optional. 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
    +     * The 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.
          * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The deadLetterPolicy. */ @@ -3938,17 +4051,19 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { * * *
    -     * A policy that specifies the conditions for dead lettering messages in
    -     * this subscription. If dead_letter_policy is not set, dead lettering
    -     * is disabled.
    +     * Optional. 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
    +     * The 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.
          * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) { if (deadLetterPolicyBuilder_ == null) { @@ -3967,17 +4082,19 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) * * *
    -     * A policy that specifies the conditions for dead lettering messages in
    -     * this subscription. If dead_letter_policy is not set, dead lettering
    -     * is disabled.
    +     * Optional. 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
    +     * The 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.
          * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setDeadLetterPolicy( com.google.pubsub.v1.DeadLetterPolicy.Builder builderForValue) { @@ -3994,17 +4111,19 @@ public Builder setDeadLetterPolicy( * * *
    -     * A policy that specifies the conditions for dead lettering messages in
    -     * this subscription. If dead_letter_policy is not set, dead lettering
    -     * is disabled.
    +     * Optional. 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
    +     * The 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.
          * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) { if (deadLetterPolicyBuilder_ == null) { @@ -4026,17 +4145,19 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value * * *
    -     * A policy that specifies the conditions for dead lettering messages in
    -     * this subscription. If dead_letter_policy is not set, dead lettering
    -     * is disabled.
    +     * Optional. 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
    +     * The 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.
          * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearDeadLetterPolicy() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4052,17 +4173,19 @@ public Builder clearDeadLetterPolicy() { * * *
    -     * A policy that specifies the conditions for dead lettering messages in
    -     * this subscription. If dead_letter_policy is not set, dead lettering
    -     * is disabled.
    +     * Optional. 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
    +     * The 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.
          * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() { bitField0_ |= 0x00001000; @@ -4073,17 +4196,19 @@ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder( * * *
    -     * A policy that specifies the conditions for dead lettering messages in
    -     * this subscription. If dead_letter_policy is not set, dead lettering
    -     * is disabled.
    +     * Optional. 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
    +     * The 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.
          * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder() { if (deadLetterPolicyBuilder_ != null) { @@ -4098,17 +4223,19 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * *
    -     * A policy that specifies the conditions for dead lettering messages in
    -     * this subscription. If dead_letter_policy is not set, dead lettering
    -     * is disabled.
    +     * Optional. 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
    +     * The 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.
          * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.DeadLetterPolicy, @@ -4137,8 +4264,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * *
    -     * A policy that specifies how Pub/Sub retries message delivery for this
    -     * subscription.
    +     * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +     * this subscription.
          *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
    @@ -4146,7 +4273,9 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild
          * exceeded events for a given message.
          * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the retryPolicy field is set. */ @@ -4157,8 +4286,8 @@ public boolean hasRetryPolicy() { * * *
    -     * A policy that specifies how Pub/Sub retries message delivery for this
    -     * subscription.
    +     * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +     * this subscription.
          *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
    @@ -4166,7 +4295,9 @@ public boolean hasRetryPolicy() {
          * exceeded events for a given message.
          * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The retryPolicy. */ @@ -4183,8 +4314,8 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * *
    -     * A policy that specifies how Pub/Sub retries message delivery for this
    -     * subscription.
    +     * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +     * this subscription.
          *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
    @@ -4192,7 +4323,9 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() {
          * exceeded events for a given message.
          * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { if (retryPolicyBuilder_ == null) { @@ -4211,8 +4344,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * *
    -     * A policy that specifies how Pub/Sub retries message delivery for this
    -     * subscription.
    +     * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +     * this subscription.
          *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
    @@ -4220,7 +4353,9 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
          * exceeded events for a given message.
          * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderForValue) { if (retryPolicyBuilder_ == null) { @@ -4236,8 +4371,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo * * *
    -     * A policy that specifies how Pub/Sub retries message delivery for this
    -     * subscription.
    +     * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +     * this subscription.
          *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
    @@ -4245,7 +4380,9 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo
          * exceeded events for a given message.
          * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { if (retryPolicyBuilder_ == null) { @@ -4267,8 +4404,8 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * *
    -     * A policy that specifies how Pub/Sub retries message delivery for this
    -     * subscription.
    +     * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +     * this subscription.
          *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
    @@ -4276,7 +4413,9 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) {
          * exceeded events for a given message.
          * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRetryPolicy() { bitField0_ = (bitField0_ & ~0x00002000); @@ -4292,8 +4431,8 @@ public Builder clearRetryPolicy() { * * *
    -     * A policy that specifies how Pub/Sub retries message delivery for this
    -     * subscription.
    +     * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +     * this subscription.
          *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
    @@ -4301,7 +4440,9 @@ public Builder clearRetryPolicy() {
          * exceeded events for a given message.
          * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { bitField0_ |= 0x00002000; @@ -4312,8 +4453,8 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { * * *
    -     * A policy that specifies how Pub/Sub retries message delivery for this
    -     * subscription.
    +     * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +     * this subscription.
          *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
    @@ -4321,7 +4462,9 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() {
          * exceeded events for a given message.
          * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { if (retryPolicyBuilder_ != null) { @@ -4336,8 +4479,8 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * * *
    -     * A policy that specifies how Pub/Sub retries message delivery for this
    -     * subscription.
    +     * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +     * this subscription.
          *
          * If not set, the default retry policy is applied. This generally implies
          * that messages will be retried as soon as possible for healthy subscribers.
    @@ -4345,7 +4488,9 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
          * exceeded events for a given message.
          * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.RetryPolicy, @@ -4369,14 +4514,14 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * * *
    -     * Indicates whether the subscription is detached from its topic. Detached
    -     * subscriptions don't receive messages from their topic and don't retain any
    -     * backlog. `Pull` and `StreamingPull` requests will return
    +     * Optional. Indicates whether the subscription is detached from its topic.
    +     * Detached subscriptions don't receive messages from their topic and don't
    +     * retain any backlog. `Pull` and `StreamingPull` requests will return
          * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
          * the endpoint will not be made.
          * 
    * - * bool detached = 15; + * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The detached. */ @@ -4388,14 +4533,14 @@ public boolean getDetached() { * * *
    -     * Indicates whether the subscription is detached from its topic. Detached
    -     * subscriptions don't receive messages from their topic and don't retain any
    -     * backlog. `Pull` and `StreamingPull` requests will return
    +     * Optional. Indicates whether the subscription is detached from its topic.
    +     * Detached subscriptions don't receive messages from their topic and don't
    +     * retain any backlog. `Pull` and `StreamingPull` requests will return
          * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
          * the endpoint will not be made.
          * 
    * - * bool detached = 15; + * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The detached to set. * @return This builder for chaining. @@ -4411,14 +4556,14 @@ public Builder setDetached(boolean value) { * * *
    -     * Indicates whether the subscription is detached from its topic. Detached
    -     * subscriptions don't receive messages from their topic and don't retain any
    -     * backlog. `Pull` and `StreamingPull` requests will return
    +     * Optional. Indicates whether the subscription is detached from its topic.
    +     * Detached subscriptions don't receive messages from their topic and don't
    +     * retain any backlog. `Pull` and `StreamingPull` requests will return
          * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
          * the endpoint will not be made.
          * 
    * - * bool detached = 15; + * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -4434,8 +4579,9 @@ public Builder clearDetached() { * * *
    -     * If true, Pub/Sub provides the following guarantees for the delivery of
    -     * a message with a given value of `message_id` on this subscription:
    +     * Optional. If true, Pub/Sub provides the following guarantees for the
    +     * delivery of a message with a given value of `message_id` on this
    +     * subscription:
          *
          * * The message sent to a subscriber is guaranteed not to be resent
          * before the message's acknowledgement deadline expires.
    @@ -4447,7 +4593,8 @@ public Builder clearDetached() {
          * by Pub/Sub and have distinct `message_id` values.
          * 
    * - * bool enable_exactly_once_delivery = 16; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enableExactlyOnceDelivery. */ @@ -4459,8 +4606,9 @@ public boolean getEnableExactlyOnceDelivery() { * * *
    -     * If true, Pub/Sub provides the following guarantees for the delivery of
    -     * a message with a given value of `message_id` on this subscription:
    +     * Optional. If true, Pub/Sub provides the following guarantees for the
    +     * delivery of a message with a given value of `message_id` on this
    +     * subscription:
          *
          * * The message sent to a subscriber is guaranteed not to be resent
          * before the message's acknowledgement deadline expires.
    @@ -4472,7 +4620,8 @@ public boolean getEnableExactlyOnceDelivery() {
          * by Pub/Sub and have distinct `message_id` values.
          * 
    * - * bool enable_exactly_once_delivery = 16; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enableExactlyOnceDelivery to set. * @return This builder for chaining. @@ -4488,8 +4637,9 @@ public Builder setEnableExactlyOnceDelivery(boolean value) { * * *
    -     * If true, Pub/Sub provides the following guarantees for the delivery of
    -     * a message with a given value of `message_id` on this subscription:
    +     * Optional. If true, Pub/Sub provides the following guarantees for the
    +     * delivery of a message with a given value of `message_id` on this
    +     * subscription:
          *
          * * The message sent to a subscriber is guaranteed not to be resent
          * before the message's acknowledgement deadline expires.
    @@ -4501,7 +4651,8 @@ public Builder setEnableExactlyOnceDelivery(boolean value) {
          * by Pub/Sub and have distinct `message_id` values.
          * 
    * - * bool enable_exactly_once_delivery = 16; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index c6b27d21366e..7aea7c12d72a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -95,11 +95,12 @@ public interface SubscriptionOrBuilder * * *
    -   * If push delivery is used with this subscription, this field is
    +   * Optional. If push delivery is used with this subscription, this field is
        * used to configure it.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the pushConfig field is set. */ @@ -108,11 +109,12 @@ public interface SubscriptionOrBuilder * * *
    -   * If push delivery is used with this subscription, this field is
    +   * Optional. If push delivery is used with this subscription, this field is
        * used to configure it.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The pushConfig. */ @@ -121,11 +123,12 @@ public interface SubscriptionOrBuilder * * *
    -   * If push delivery is used with this subscription, this field is
    +   * Optional. If push delivery is used with this subscription, this field is
        * used to configure it.
        * 
    * - * .google.pubsub.v1.PushConfig push_config = 4; + * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder(); @@ -133,11 +136,13 @@ public interface SubscriptionOrBuilder * * *
    -   * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it.
    +   * Optional. If delivery to BigQuery is used with this subscription, this
    +   * field is used to configure it.
        * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the bigqueryConfig field is set. */ @@ -146,11 +151,13 @@ public interface SubscriptionOrBuilder * * *
    -   * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it.
    +   * Optional. If delivery to BigQuery is used with this subscription, this
    +   * field is used to configure it.
        * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The bigqueryConfig. */ @@ -159,11 +166,13 @@ public interface SubscriptionOrBuilder * * *
    -   * If delivery to BigQuery is used with this subscription, this field is
    -   * used to configure it.
    +   * Optional. If delivery to BigQuery is used with this subscription, this
    +   * field is used to configure it.
        * 
    * - * .google.pubsub.v1.BigQueryConfig bigquery_config = 18; + * + * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder(); @@ -171,11 +180,13 @@ public interface SubscriptionOrBuilder * * *
    -   * If delivery to Google Cloud Storage is used with this subscription, this
    -   * field is used to configure it.
    +   * Optional. If delivery to Google Cloud Storage is used with this
    +   * subscription, this field is used to configure it.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the cloudStorageConfig field is set. */ @@ -184,11 +195,13 @@ public interface SubscriptionOrBuilder * * *
    -   * If delivery to Google Cloud Storage is used with this subscription, this
    -   * field is used to configure it.
    +   * Optional. If delivery to Google Cloud Storage is used with this
    +   * subscription, this field is used to configure it.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The cloudStorageConfig. */ @@ -197,11 +210,13 @@ public interface SubscriptionOrBuilder * * *
    -   * If delivery to Google Cloud Storage is used with this subscription, this
    -   * field is used to configure it.
    +   * Optional. If delivery to Google Cloud Storage is used with this
    +   * subscription, this field is used to configure it.
        * 
    * - * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22; + * + * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder(); @@ -209,11 +224,11 @@ public interface SubscriptionOrBuilder * * *
    -   * 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).
    +   * Optional. 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
    @@ -231,7 +246,7 @@ public interface SubscriptionOrBuilder
        * system will eventually redeliver the message.
        * 
    * - * int32 ack_deadline_seconds = 5; + * int32 ack_deadline_seconds = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ackDeadlineSeconds. */ @@ -241,7 +256,7 @@ public interface SubscriptionOrBuilder * * *
    -   * Indicates whether to retain acknowledged messages. If true, then
    +   * Optional. 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]
    @@ -249,7 +264,7 @@ public interface SubscriptionOrBuilder
        * the past to replay previously-acknowledged messages.
        * 
    * - * bool retain_acked_messages = 7; + * bool retain_acked_messages = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The retainAckedMessages. */ @@ -259,15 +274,16 @@ public interface SubscriptionOrBuilder * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -276,15 +292,16 @@ public interface SubscriptionOrBuilder * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -293,15 +310,16 @@ public interface SubscriptionOrBuilder * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder(); @@ -309,22 +327,22 @@ public interface SubscriptionOrBuilder * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -334,22 +352,22 @@ public interface SubscriptionOrBuilder * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -360,11 +378,11 @@ java.lang.String getLabelsOrDefault( * * *
    -   * See [Creating and managing
    +   * Optional. See [Creating and managing
        * labels](https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 9; + * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); @@ -372,13 +390,13 @@ java.lang.String getLabelsOrDefault( * * *
    -   * 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.
    +   * Optional. 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.
        * 
    * - * bool enable_message_ordering = 10; + * bool enable_message_ordering = 10 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableMessageOrdering. */ @@ -388,16 +406,18 @@ java.lang.String getLabelsOrDefault( * * *
    -   * 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
    +   * Optional. 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. If `expiration_policy` is set,
        * but `expiration_policy.ttl` is not set, the subscription never expires.
        * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the expirationPolicy field is set. */ @@ -406,16 +426,18 @@ java.lang.String getLabelsOrDefault( * * *
    -   * 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
    +   * Optional. 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. If `expiration_policy` is set,
        * but `expiration_policy.ttl` is not set, the subscription never expires.
        * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The expirationPolicy. */ @@ -424,16 +446,18 @@ java.lang.String getLabelsOrDefault( * * *
    -   * 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
    +   * Optional. 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. If `expiration_policy` is set,
        * but `expiration_policy.ttl` is not set, the subscription never expires.
        * 
    * - * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11; + * + * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuilder(); @@ -441,14 +465,14 @@ java.lang.String getLabelsOrDefault( * * *
    -   * An expression written in the Pub/Sub [filter
    +   * Optional. An expression written in the Pub/Sub [filter
        * language](https://cloud.google.com/pubsub/docs/filtering). 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.
        * 
    * - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -457,14 +481,14 @@ java.lang.String getLabelsOrDefault( * * *
    -   * An expression written in the Pub/Sub [filter
    +   * Optional. An expression written in the Pub/Sub [filter
        * language](https://cloud.google.com/pubsub/docs/filtering). 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.
        * 
    * - * string filter = 12; + * string filter = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -474,17 +498,19 @@ java.lang.String getLabelsOrDefault( * * *
    -   * A policy that specifies the conditions for dead lettering messages in
    -   * this subscription. If dead_letter_policy is not set, dead lettering
    -   * is disabled.
    +   * Optional. 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
    +   * The 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.
        * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the deadLetterPolicy field is set. */ @@ -493,17 +519,19 @@ java.lang.String getLabelsOrDefault( * * *
    -   * A policy that specifies the conditions for dead lettering messages in
    -   * this subscription. If dead_letter_policy is not set, dead lettering
    -   * is disabled.
    +   * Optional. 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
    +   * The 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.
        * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The deadLetterPolicy. */ @@ -512,17 +540,19 @@ java.lang.String getLabelsOrDefault( * * *
    -   * A policy that specifies the conditions for dead lettering messages in
    -   * this subscription. If dead_letter_policy is not set, dead lettering
    -   * is disabled.
    +   * Optional. 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
    +   * The 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.
        * 
    * - * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13; + * + * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuilder(); @@ -530,8 +560,8 @@ java.lang.String getLabelsOrDefault( * * *
    -   * A policy that specifies how Pub/Sub retries message delivery for this
    -   * subscription.
    +   * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +   * this subscription.
        *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
    @@ -539,7 +569,9 @@ java.lang.String getLabelsOrDefault(
        * exceeded events for a given message.
        * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the retryPolicy field is set. */ @@ -548,8 +580,8 @@ java.lang.String getLabelsOrDefault( * * *
    -   * A policy that specifies how Pub/Sub retries message delivery for this
    -   * subscription.
    +   * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +   * this subscription.
        *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
    @@ -557,7 +589,9 @@ java.lang.String getLabelsOrDefault(
        * exceeded events for a given message.
        * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The retryPolicy. */ @@ -566,8 +600,8 @@ java.lang.String getLabelsOrDefault( * * *
    -   * A policy that specifies how Pub/Sub retries message delivery for this
    -   * subscription.
    +   * Optional. A policy that specifies how Pub/Sub retries message delivery for
    +   * this subscription.
        *
        * If not set, the default retry policy is applied. This generally implies
        * that messages will be retried as soon as possible for healthy subscribers.
    @@ -575,7 +609,9 @@ java.lang.String getLabelsOrDefault(
        * exceeded events for a given message.
        * 
    * - * .google.pubsub.v1.RetryPolicy retry_policy = 14; + * + * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder(); @@ -583,14 +619,14 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Indicates whether the subscription is detached from its topic. Detached
    -   * subscriptions don't receive messages from their topic and don't retain any
    -   * backlog. `Pull` and `StreamingPull` requests will return
    +   * Optional. Indicates whether the subscription is detached from its topic.
    +   * Detached subscriptions don't receive messages from their topic and don't
    +   * retain any backlog. `Pull` and `StreamingPull` requests will return
        * FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
        * the endpoint will not be made.
        * 
    * - * bool detached = 15; + * bool detached = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The detached. */ @@ -600,8 +636,9 @@ java.lang.String getLabelsOrDefault( * * *
    -   * If true, Pub/Sub provides the following guarantees for the delivery of
    -   * a message with a given value of `message_id` on this subscription:
    +   * Optional. If true, Pub/Sub provides the following guarantees for the
    +   * delivery of a message with a given value of `message_id` on this
    +   * subscription:
        *
        * * The message sent to a subscriber is guaranteed not to be resent
        * before the message's acknowledgement deadline expires.
    @@ -613,7 +650,7 @@ java.lang.String getLabelsOrDefault(
        * by Pub/Sub and have distinct `message_id` values.
        * 
    * - * bool enable_exactly_once_delivery = 16; + * bool enable_exactly_once_delivery = 16 [(.google.api.field_behavior) = OPTIONAL]; * * @return The enableExactlyOnceDelivery. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 40ee471a5585..760ec1fa6dbf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Topic() { name_ = ""; kmsKeyName_ = ""; + state_ = 0; } @java.lang.Override @@ -72,6 +73,167 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.Topic.class, com.google.pubsub.v1.Topic.Builder.class); } + /** + * + * + *
    +   * The state of the topic.
    +   * 
    + * + * Protobuf enum {@code google.pubsub.v1.Topic.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +     * The topic does not have any persistent errors.
    +     * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +     * Ingestion from the data source has encountered a permanent error.
    +     * See the more detailed error state in the corresponding ingestion
    +     * source configuration.
    +     * 
    + * + * INGESTION_RESOURCE_ERROR = 2; + */ + INGESTION_RESOURCE_ERROR(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. This value is unused.
    +     * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * The topic does not have any persistent errors.
    +     * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +     * Ingestion from the data source has encountered a permanent error.
    +     * See the more detailed error state in the corresponding ingestion
    +     * source configuration.
    +     * 
    + * + * INGESTION_RESOURCE_ERROR = 2; + */ + public static final int INGESTION_RESOURCE_ERROR_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return INGESTION_RESOURCE_ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.Topic.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Topic.State) + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -163,11 +325,11 @@ public int getLabelsCount() { * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -186,11 +348,11 @@ public java.util.Map getLabels() { * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -200,11 +362,11 @@ public java.util.Map getLabelsMap() { * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -221,11 +383,11 @@ public java.util.Map getLabelsMap() { * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -245,12 +407,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
    -   * Policy constraining the set of Google Cloud Platform regions where messages
    -   * published to the topic may be stored. If not present, then no constraints
    -   * are in effect.
    +   * Optional. Policy constraining the set of Google Cloud Platform regions
    +   * where messages published to the topic may be stored. If not present, then
    +   * no constraints are in effect.
        * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageStoragePolicy field is set. */ @@ -262,12 +426,14 @@ public boolean hasMessageStoragePolicy() { * * *
    -   * Policy constraining the set of Google Cloud Platform regions where messages
    -   * published to the topic may be stored. If not present, then no constraints
    -   * are in effect.
    +   * Optional. Policy constraining the set of Google Cloud Platform regions
    +   * where messages published to the topic may be stored. If not present, then
    +   * no constraints are in effect.
        * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageStoragePolicy. */ @@ -281,12 +447,14 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { * * *
    -   * Policy constraining the set of Google Cloud Platform regions where messages
    -   * published to the topic may be stored. If not present, then no constraints
    -   * are in effect.
    +   * Optional. Policy constraining the set of Google Cloud Platform regions
    +   * where messages published to the topic may be stored. If not present, then
    +   * no constraints are in effect.
        * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder() { @@ -303,13 +471,13 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * * *
    -   * The resource name of the Cloud KMS CryptoKey to be used to protect access
    -   * to messages published on this topic.
    +   * Optional. 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/*`.
        * 
    * - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKeyName. */ @@ -329,13 +497,13 @@ public java.lang.String getKmsKeyName() { * * *
    -   * The resource name of the Cloud KMS CryptoKey to be used to protect access
    -   * to messages published on this topic.
    +   * Optional. 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/*`.
        * 
    * - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKeyName. */ @@ -358,10 +526,12 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * * *
    -   * Settings for validating messages published against a schema.
    +   * Optional. Settings for validating messages published against a schema.
        * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the schemaSettings field is set. */ @@ -373,10 +543,12 @@ public boolean hasSchemaSettings() { * * *
    -   * Settings for validating messages published against a schema.
    +   * Optional. Settings for validating messages published against a schema.
        * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The schemaSettings. */ @@ -390,10 +562,12 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { * * *
    -   * Settings for validating messages published against a schema.
    +   * Optional. Settings for validating messages published against a schema.
        * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() { @@ -408,11 +582,11 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * * *
    -   * Reserved for future use. This field is set only in responses from the
    -   * server; it is ignored if it is set in any requests.
    +   * Optional. Reserved for future use. This field is set only in responses from
    +   * the server; it is ignored if it is set in any requests.
        * 
    * - * bool satisfies_pzs = 7; + * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The satisfiesPzs. */ @@ -427,17 +601,20 @@ public boolean getSatisfiesPzs() { * * *
    -   * Indicates the minimum duration to retain a message after it is published to
    -   * the topic. If this field is set, messages published to the topic in the
    -   * last `message_retention_duration` are always available to subscribers. For
    -   * instance, it allows any attached subscription to [seek to a
    +   * Optional. Indicates the minimum duration to retain a message after it is
    +   * published to the topic. If this field is set, messages published to the
    +   * topic in the last `message_retention_duration` are always available to
    +   * subscribers. For instance, it allows any attached subscription to [seek to
    +   * a
        * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
        * that is up to `message_retention_duration` in the past. If this field is
        * not set, message retention is controlled by settings on individual
        * subscriptions. Cannot be more than 31 days or less than 10 minutes.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -449,17 +626,20 @@ public boolean hasMessageRetentionDuration() { * * *
    -   * Indicates the minimum duration to retain a message after it is published to
    -   * the topic. If this field is set, messages published to the topic in the
    -   * last `message_retention_duration` are always available to subscribers. For
    -   * instance, it allows any attached subscription to [seek to a
    +   * Optional. Indicates the minimum duration to retain a message after it is
    +   * published to the topic. If this field is set, messages published to the
    +   * topic in the last `message_retention_duration` are always available to
    +   * subscribers. For instance, it allows any attached subscription to [seek to
    +   * a
        * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
        * that is up to `message_retention_duration` in the past. If this field is
        * not set, message retention is controlled by settings on individual
        * subscriptions. Cannot be more than 31 days or less than 10 minutes.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -473,17 +653,20 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * * *
    -   * Indicates the minimum duration to retain a message after it is published to
    -   * the topic. If this field is set, messages published to the topic in the
    -   * last `message_retention_duration` are always available to subscribers. For
    -   * instance, it allows any attached subscription to [seek to a
    +   * Optional. Indicates the minimum duration to retain a message after it is
    +   * published to the topic. If this field is set, messages published to the
    +   * topic in the last `message_retention_duration` are always available to
    +   * subscribers. For instance, it allows any attached subscription to [seek to
    +   * a
        * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
        * that is up to `message_retention_duration` in the past. If this field is
        * not set, message retention is controlled by settings on individual
        * subscriptions. Cannot be more than 31 days or less than 10 minutes.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { @@ -492,6 +675,102 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde : messageRetentionDuration_; } + public static final int STATE_FIELD_NUMBER = 9; + private int state_ = 0; + /** + * + * + *
    +   * Output only. An output-only field indicating the state of the topic.
    +   * 
    + * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +   * Output only. An output-only field indicating the state of the topic.
    +   * 
    + * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.Topic.State getState() { + com.google.pubsub.v1.Topic.State result = com.google.pubsub.v1.Topic.State.forNumber(state_); + return result == null ? com.google.pubsub.v1.Topic.State.UNRECOGNIZED : result; + } + + public static final int INGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER = 10; + private com.google.pubsub.v1.IngestionDataSourceSettings ingestionDataSourceSettings_; + /** + * + * + *
    +   * Optional. Settings for managed ingestion from a data source into this
    +   * topic.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ingestionDataSourceSettings field is set. + */ + @java.lang.Override + public boolean hasIngestionDataSourceSettings() { + return ingestionDataSourceSettings_ != null; + } + /** + * + * + *
    +   * Optional. Settings for managed ingestion from a data source into this
    +   * topic.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ingestionDataSourceSettings. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings() { + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; + } + /** + * + * + *
    +   * Optional. Settings for managed ingestion from a data source into this
    +   * topic.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder + getIngestionDataSourceSettingsOrBuilder() { + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -526,6 +805,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (messageRetentionDuration_ != null) { output.writeMessage(8, getMessageRetentionDuration()); } + if (state_ != com.google.pubsub.v1.Topic.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(9, state_); + } + if (ingestionDataSourceSettings_ != null) { + output.writeMessage(10, getIngestionDataSourceSettings()); + } getUnknownFields().writeTo(output); } @@ -566,6 +851,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getMessageRetentionDuration()); } + if (state_ != com.google.pubsub.v1.Topic.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + if (ingestionDataSourceSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getIngestionDataSourceSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -597,6 +890,12 @@ public boolean equals(final java.lang.Object obj) { if (hasMessageRetentionDuration()) { if (!getMessageRetentionDuration().equals(other.getMessageRetentionDuration())) return false; } + if (state_ != other.state_) return false; + if (hasIngestionDataSourceSettings() != other.hasIngestionDataSourceSettings()) return false; + if (hasIngestionDataSourceSettings()) { + if (!getIngestionDataSourceSettings().equals(other.getIngestionDataSourceSettings())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -630,6 +929,12 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_RETENTION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMessageRetentionDuration().hashCode(); } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasIngestionDataSourceSettings()) { + hash = (37 * hash) + INGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getIngestionDataSourceSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -805,6 +1110,12 @@ public Builder clear() { messageRetentionDurationBuilder_.dispose(); messageRetentionDurationBuilder_ = null; } + state_ = 0; + ingestionDataSourceSettings_ = null; + if (ingestionDataSourceSettingsBuilder_ != null) { + ingestionDataSourceSettingsBuilder_.dispose(); + ingestionDataSourceSettingsBuilder_ = null; + } return this; } @@ -868,6 +1179,15 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { ? messageRetentionDuration_ : messageRetentionDurationBuilder_.build(); } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.ingestionDataSourceSettings_ = + ingestionDataSourceSettingsBuilder_ == null + ? ingestionDataSourceSettings_ + : ingestionDataSourceSettingsBuilder_.build(); + } } @java.lang.Override @@ -939,6 +1259,12 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other.hasMessageRetentionDuration()) { mergeMessageRetentionDuration(other.getMessageRetentionDuration()); } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasIngestionDataSourceSettings()) { + mergeIngestionDataSourceSettings(other.getIngestionDataSourceSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1015,6 +1341,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 66 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: + { + input.readMessage( + getIngestionDataSourceSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1194,11 +1533,11 @@ public int getLabelsCount() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -1217,11 +1556,11 @@ public java.util.Map getLabels() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -1231,11 +1570,11 @@ public java.util.Map getLabelsMap() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -1252,11 +1591,11 @@ public java.util.Map getLabelsMap() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -1279,11 +1618,11 @@ public Builder clearLabels() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -1302,11 +1641,11 @@ public java.util.Map getMutableLabels() { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -1323,11 +1662,11 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
    -     * See [Creating and managing labels]
    +     * Optional. See [Creating and managing labels]
          * (https://cloud.google.com/pubsub/docs/labels).
          * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); @@ -1345,12 +1684,14 @@ public Builder putAllLabels(java.util.Map va * * *
    -     * Policy constraining the set of Google Cloud Platform regions where messages
    -     * published to the topic may be stored. If not present, then no constraints
    -     * are in effect.
    +     * Optional. Policy constraining the set of Google Cloud Platform regions
    +     * where messages published to the topic may be stored. If not present, then
    +     * no constraints are in effect.
          * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageStoragePolicy field is set. */ @@ -1361,12 +1702,14 @@ public boolean hasMessageStoragePolicy() { * * *
    -     * Policy constraining the set of Google Cloud Platform regions where messages
    -     * published to the topic may be stored. If not present, then no constraints
    -     * are in effect.
    +     * Optional. Policy constraining the set of Google Cloud Platform regions
    +     * where messages published to the topic may be stored. If not present, then
    +     * no constraints are in effect.
          * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageStoragePolicy. */ @@ -1383,12 +1726,14 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { * * *
    -     * Policy constraining the set of Google Cloud Platform regions where messages
    -     * published to the topic may be stored. If not present, then no constraints
    -     * are in effect.
    +     * Optional. Policy constraining the set of Google Cloud Platform regions
    +     * where messages published to the topic may be stored. If not present, then
    +     * no constraints are in effect.
          * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy value) { if (messageStoragePolicyBuilder_ == null) { @@ -1407,12 +1752,14 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy * * *
    -     * Policy constraining the set of Google Cloud Platform regions where messages
    -     * published to the topic may be stored. If not present, then no constraints
    -     * are in effect.
    +     * Optional. Policy constraining the set of Google Cloud Platform regions
    +     * where messages published to the topic may be stored. If not present, then
    +     * no constraints are in effect.
          * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageStoragePolicy( com.google.pubsub.v1.MessageStoragePolicy.Builder builderForValue) { @@ -1429,12 +1776,14 @@ public Builder setMessageStoragePolicy( * * *
    -     * Policy constraining the set of Google Cloud Platform regions where messages
    -     * published to the topic may be stored. If not present, then no constraints
    -     * are in effect.
    +     * Optional. Policy constraining the set of Google Cloud Platform regions
    +     * where messages published to the topic may be stored. If not present, then
    +     * no constraints are in effect.
          * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy value) { if (messageStoragePolicyBuilder_ == null) { @@ -1457,12 +1806,14 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli * * *
    -     * Policy constraining the set of Google Cloud Platform regions where messages
    -     * published to the topic may be stored. If not present, then no constraints
    -     * are in effect.
    +     * Optional. Policy constraining the set of Google Cloud Platform regions
    +     * where messages published to the topic may be stored. If not present, then
    +     * no constraints are in effect.
          * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessageStoragePolicy() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1478,12 +1829,14 @@ public Builder clearMessageStoragePolicy() { * * *
    -     * Policy constraining the set of Google Cloud Platform regions where messages
    -     * published to the topic may be stored. If not present, then no constraints
    -     * are in effect.
    +     * Optional. Policy constraining the set of Google Cloud Platform regions
    +     * where messages published to the topic may be stored. If not present, then
    +     * no constraints are in effect.
          * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicyBuilder() { bitField0_ |= 0x00000004; @@ -1494,12 +1847,14 @@ public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicy * * *
    -     * Policy constraining the set of Google Cloud Platform regions where messages
    -     * published to the topic may be stored. If not present, then no constraints
    -     * are in effect.
    +     * Optional. Policy constraining the set of Google Cloud Platform regions
    +     * where messages published to the topic may be stored. If not present, then
    +     * no constraints are in effect.
          * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder() { if (messageStoragePolicyBuilder_ != null) { @@ -1514,12 +1869,14 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * * *
    -     * Policy constraining the set of Google Cloud Platform regions where messages
    -     * published to the topic may be stored. If not present, then no constraints
    -     * are in effect.
    +     * Optional. Policy constraining the set of Google Cloud Platform regions
    +     * where messages published to the topic may be stored. If not present, then
    +     * no constraints are in effect.
          * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.MessageStoragePolicy, @@ -1543,13 +1900,13 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * * *
    -     * The resource name of the Cloud KMS CryptoKey to be used to protect access
    -     * to messages published on this topic.
    +     * Optional. 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/*`.
          * 
    * - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKeyName. */ @@ -1568,13 +1925,13 @@ public java.lang.String getKmsKeyName() { * * *
    -     * The resource name of the Cloud KMS CryptoKey to be used to protect access
    -     * to messages published on this topic.
    +     * Optional. 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/*`.
          * 
    * - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKeyName. */ @@ -1593,13 +1950,13 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * * *
    -     * The resource name of the Cloud KMS CryptoKey to be used to protect access
    -     * to messages published on this topic.
    +     * Optional. 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/*`.
          * 
    * - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The kmsKeyName to set. * @return This builder for chaining. @@ -1617,13 +1974,13 @@ public Builder setKmsKeyName(java.lang.String value) { * * *
    -     * The resource name of the Cloud KMS CryptoKey to be used to protect access
    -     * to messages published on this topic.
    +     * Optional. 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/*`.
          * 
    * - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1637,13 +1994,13 @@ public Builder clearKmsKeyName() { * * *
    -     * The resource name of the Cloud KMS CryptoKey to be used to protect access
    -     * to messages published on this topic.
    +     * Optional. 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/*`.
          * 
    * - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. @@ -1669,10 +2026,12 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * Settings for validating messages published against a schema.
    +     * Optional. Settings for validating messages published against a schema.
          * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the schemaSettings field is set. */ @@ -1683,10 +2042,12 @@ public boolean hasSchemaSettings() { * * *
    -     * Settings for validating messages published against a schema.
    +     * Optional. Settings for validating messages published against a schema.
          * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The schemaSettings. */ @@ -1703,10 +2064,12 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { * * *
    -     * Settings for validating messages published against a schema.
    +     * Optional. Settings for validating messages published against a schema.
          * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { if (schemaSettingsBuilder_ == null) { @@ -1725,10 +2088,12 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { * * *
    -     * Settings for validating messages published against a schema.
    +     * Optional. Settings for validating messages published against a schema.
          * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder builderForValue) { if (schemaSettingsBuilder_ == null) { @@ -1744,10 +2109,12 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder bui * * *
    -     * Settings for validating messages published against a schema.
    +     * Optional. Settings for validating messages published against a schema.
          * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { if (schemaSettingsBuilder_ == null) { @@ -1769,10 +2136,12 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { * * *
    -     * Settings for validating messages published against a schema.
    +     * Optional. Settings for validating messages published against a schema.
          * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSchemaSettings() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1788,10 +2157,12 @@ public Builder clearSchemaSettings() { * * *
    -     * Settings for validating messages published against a schema.
    +     * Optional. Settings for validating messages published against a schema.
          * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { bitField0_ |= 0x00000010; @@ -1802,10 +2173,12 @@ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { * * *
    -     * Settings for validating messages published against a schema.
    +     * Optional. Settings for validating messages published against a schema.
          * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() { if (schemaSettingsBuilder_ != null) { @@ -1820,10 +2193,12 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * * *
    -     * Settings for validating messages published against a schema.
    +     * Optional. Settings for validating messages published against a schema.
          * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.SchemaSettings, @@ -1847,11 +2222,11 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * * *
    -     * Reserved for future use. This field is set only in responses from the
    -     * server; it is ignored if it is set in any requests.
    +     * Optional. Reserved for future use. This field is set only in responses from
    +     * the server; it is ignored if it is set in any requests.
          * 
    * - * bool satisfies_pzs = 7; + * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The satisfiesPzs. */ @@ -1863,11 +2238,11 @@ public boolean getSatisfiesPzs() { * * *
    -     * Reserved for future use. This field is set only in responses from the
    -     * server; it is ignored if it is set in any requests.
    +     * Optional. Reserved for future use. This field is set only in responses from
    +     * the server; it is ignored if it is set in any requests.
          * 
    * - * bool satisfies_pzs = 7; + * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The satisfiesPzs to set. * @return This builder for chaining. @@ -1883,11 +2258,11 @@ public Builder setSatisfiesPzs(boolean value) { * * *
    -     * Reserved for future use. This field is set only in responses from the
    -     * server; it is ignored if it is set in any requests.
    +     * Optional. Reserved for future use. This field is set only in responses from
    +     * the server; it is ignored if it is set in any requests.
          * 
    * - * bool satisfies_pzs = 7; + * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1908,17 +2283,20 @@ public Builder clearSatisfiesPzs() { * * *
    -     * Indicates the minimum duration to retain a message after it is published to
    -     * the topic. If this field is set, messages published to the topic in the
    -     * last `message_retention_duration` are always available to subscribers. For
    -     * instance, it allows any attached subscription to [seek to a
    +     * Optional. Indicates the minimum duration to retain a message after it is
    +     * published to the topic. If this field is set, messages published to the
    +     * topic in the last `message_retention_duration` are always available to
    +     * subscribers. For instance, it allows any attached subscription to [seek to
    +     * a
          * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
          * that is up to `message_retention_duration` in the past. If this field is
          * not set, message retention is controlled by settings on individual
          * subscriptions. Cannot be more than 31 days or less than 10 minutes.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -1929,17 +2307,20 @@ public boolean hasMessageRetentionDuration() { * * *
    -     * Indicates the minimum duration to retain a message after it is published to
    -     * the topic. If this field is set, messages published to the topic in the
    -     * last `message_retention_duration` are always available to subscribers. For
    -     * instance, it allows any attached subscription to [seek to a
    +     * Optional. Indicates the minimum duration to retain a message after it is
    +     * published to the topic. If this field is set, messages published to the
    +     * topic in the last `message_retention_duration` are always available to
    +     * subscribers. For instance, it allows any attached subscription to [seek to
    +     * a
          * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
          * that is up to `message_retention_duration` in the past. If this field is
          * not set, message retention is controlled by settings on individual
          * subscriptions. Cannot be more than 31 days or less than 10 minutes.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -1956,17 +2337,20 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * * *
    -     * Indicates the minimum duration to retain a message after it is published to
    -     * the topic. If this field is set, messages published to the topic in the
    -     * last `message_retention_duration` are always available to subscribers. For
    -     * instance, it allows any attached subscription to [seek to a
    +     * Optional. Indicates the minimum duration to retain a message after it is
    +     * published to the topic. If this field is set, messages published to the
    +     * topic in the last `message_retention_duration` are always available to
    +     * subscribers. For instance, it allows any attached subscription to [seek to
    +     * a
          * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
          * that is up to `message_retention_duration` in the past. If this field is
          * not set, message retention is controlled by settings on individual
          * subscriptions. Cannot be more than 31 days or less than 10 minutes.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { @@ -1985,17 +2369,20 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { * * *
    -     * Indicates the minimum duration to retain a message after it is published to
    -     * the topic. If this field is set, messages published to the topic in the
    -     * last `message_retention_duration` are always available to subscribers. For
    -     * instance, it allows any attached subscription to [seek to a
    +     * Optional. Indicates the minimum duration to retain a message after it is
    +     * published to the topic. If this field is set, messages published to the
    +     * topic in the last `message_retention_duration` are always available to
    +     * subscribers. For instance, it allows any attached subscription to [seek to
    +     * a
          * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
          * that is up to `message_retention_duration` in the past. If this field is
          * not set, message retention is controlled by settings on individual
          * subscriptions. Cannot be more than 31 days or less than 10 minutes.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMessageRetentionDuration( com.google.protobuf.Duration.Builder builderForValue) { @@ -2012,17 +2399,20 @@ public Builder setMessageRetentionDuration( * * *
    -     * Indicates the minimum duration to retain a message after it is published to
    -     * the topic. If this field is set, messages published to the topic in the
    -     * last `message_retention_duration` are always available to subscribers. For
    -     * instance, it allows any attached subscription to [seek to a
    +     * Optional. Indicates the minimum duration to retain a message after it is
    +     * published to the topic. If this field is set, messages published to the
    +     * topic in the last `message_retention_duration` are always available to
    +     * subscribers. For instance, it allows any attached subscription to [seek to
    +     * a
          * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
          * that is up to `message_retention_duration` in the past. If this field is
          * not set, message retention is controlled by settings on individual
          * subscriptions. Cannot be more than 31 days or less than 10 minutes.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { @@ -2044,17 +2434,20 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * * *
    -     * Indicates the minimum duration to retain a message after it is published to
    -     * the topic. If this field is set, messages published to the topic in the
    -     * last `message_retention_duration` are always available to subscribers. For
    -     * instance, it allows any attached subscription to [seek to a
    +     * Optional. Indicates the minimum duration to retain a message after it is
    +     * published to the topic. If this field is set, messages published to the
    +     * topic in the last `message_retention_duration` are always available to
    +     * subscribers. For instance, it allows any attached subscription to [seek to
    +     * a
          * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
          * that is up to `message_retention_duration` in the past. If this field is
          * not set, message retention is controlled by settings on individual
          * subscriptions. Cannot be more than 31 days or less than 10 minutes.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMessageRetentionDuration() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2070,17 +2463,20 @@ public Builder clearMessageRetentionDuration() { * * *
    -     * Indicates the minimum duration to retain a message after it is published to
    -     * the topic. If this field is set, messages published to the topic in the
    -     * last `message_retention_duration` are always available to subscribers. For
    -     * instance, it allows any attached subscription to [seek to a
    +     * Optional. Indicates the minimum duration to retain a message after it is
    +     * published to the topic. If this field is set, messages published to the
    +     * topic in the last `message_retention_duration` are always available to
    +     * subscribers. For instance, it allows any attached subscription to [seek to
    +     * a
          * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
          * that is up to `message_retention_duration` in the past. If this field is
          * not set, message retention is controlled by settings on individual
          * subscriptions. Cannot be more than 31 days or less than 10 minutes.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { bitField0_ |= 0x00000040; @@ -2091,17 +2487,20 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() * * *
    -     * Indicates the minimum duration to retain a message after it is published to
    -     * the topic. If this field is set, messages published to the topic in the
    -     * last `message_retention_duration` are always available to subscribers. For
    -     * instance, it allows any attached subscription to [seek to a
    +     * Optional. Indicates the minimum duration to retain a message after it is
    +     * published to the topic. If this field is set, messages published to the
    +     * topic in the last `message_retention_duration` are always available to
    +     * subscribers. For instance, it allows any attached subscription to [seek to
    +     * a
          * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
          * that is up to `message_retention_duration` in the past. If this field is
          * not set, message retention is controlled by settings on individual
          * subscriptions. Cannot be more than 31 days or less than 10 minutes.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder() { if (messageRetentionDurationBuilder_ != null) { @@ -2116,17 +2515,20 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * * *
    -     * Indicates the minimum duration to retain a message after it is published to
    -     * the topic. If this field is set, messages published to the topic in the
    -     * last `message_retention_duration` are always available to subscribers. For
    -     * instance, it allows any attached subscription to [seek to a
    +     * Optional. Indicates the minimum duration to retain a message after it is
    +     * published to the topic. If this field is set, messages published to the
    +     * topic in the last `message_retention_duration` are always available to
    +     * subscribers. For instance, it allows any attached subscription to [seek to
    +     * a
          * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
          * that is up to `message_retention_duration` in the past. If this field is
          * not set, message retention is controlled by settings on individual
          * subscriptions. Cannot be more than 31 days or less than 10 minutes.
          * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, @@ -2145,6 +2547,316 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde return messageRetentionDurationBuilder_; } + private int state_ = 0; + /** + * + * + *
    +     * Output only. An output-only field indicating the state of the topic.
    +     * 
    + * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +     * Output only. An output-only field indicating the state of the topic.
    +     * 
    + * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output-only field indicating the state of the topic.
    +     * 
    + * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.Topic.State getState() { + com.google.pubsub.v1.Topic.State result = com.google.pubsub.v1.Topic.State.forNumber(state_); + return result == null ? com.google.pubsub.v1.Topic.State.UNRECOGNIZED : result; + } + /** + * + * + *
    +     * Output only. An output-only field indicating the state of the topic.
    +     * 
    + * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.pubsub.v1.Topic.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. An output-only field indicating the state of the topic.
    +     * 
    + * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + private com.google.pubsub.v1.IngestionDataSourceSettings ingestionDataSourceSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder, + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> + ingestionDataSourceSettingsBuilder_; + /** + * + * + *
    +     * Optional. Settings for managed ingestion from a data source into this
    +     * topic.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ingestionDataSourceSettings field is set. + */ + public boolean hasIngestionDataSourceSettings() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
    +     * Optional. Settings for managed ingestion from a data source into this
    +     * topic.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ingestionDataSourceSettings. + */ + public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings() { + if (ingestionDataSourceSettingsBuilder_ == null) { + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; + } else { + return ingestionDataSourceSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. Settings for managed ingestion from a data source into this
    +     * topic.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIngestionDataSourceSettings( + com.google.pubsub.v1.IngestionDataSourceSettings value) { + if (ingestionDataSourceSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestionDataSourceSettings_ = value; + } else { + ingestionDataSourceSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Settings for managed ingestion from a data source into this
    +     * topic.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIngestionDataSourceSettings( + com.google.pubsub.v1.IngestionDataSourceSettings.Builder builderForValue) { + if (ingestionDataSourceSettingsBuilder_ == null) { + ingestionDataSourceSettings_ = builderForValue.build(); + } else { + ingestionDataSourceSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Settings for managed ingestion from a data source into this
    +     * topic.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIngestionDataSourceSettings( + com.google.pubsub.v1.IngestionDataSourceSettings value) { + if (ingestionDataSourceSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && ingestionDataSourceSettings_ != null + && ingestionDataSourceSettings_ + != com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) { + getIngestionDataSourceSettingsBuilder().mergeFrom(value); + } else { + ingestionDataSourceSettings_ = value; + } + } else { + ingestionDataSourceSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Settings for managed ingestion from a data source into this
    +     * topic.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIngestionDataSourceSettings() { + bitField0_ = (bitField0_ & ~0x00000100); + ingestionDataSourceSettings_ = null; + if (ingestionDataSourceSettingsBuilder_ != null) { + ingestionDataSourceSettingsBuilder_.dispose(); + ingestionDataSourceSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Settings for managed ingestion from a data source into this
    +     * topic.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.Builder + getIngestionDataSourceSettingsBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getIngestionDataSourceSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Settings for managed ingestion from a data source into this
    +     * topic.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder + getIngestionDataSourceSettingsOrBuilder() { + if (ingestionDataSourceSettingsBuilder_ != null) { + return ingestionDataSourceSettingsBuilder_.getMessageOrBuilder(); + } else { + return ingestionDataSourceSettings_ == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() + : ingestionDataSourceSettings_; + } + } + /** + * + * + *
    +     * Optional. Settings for managed ingestion from a data source into this
    +     * topic.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder, + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> + getIngestionDataSourceSettingsFieldBuilder() { + if (ingestionDataSourceSettingsBuilder_ == null) { + ingestionDataSourceSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder, + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder>( + getIngestionDataSourceSettings(), getParentForChildren(), isClean()); + ingestionDataSourceSettings_ = null; + } + return ingestionDataSourceSettingsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 6c86372857e2..a644cc3136d9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,22 +62,22 @@ public interface TopicOrBuilder * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -87,22 +87,22 @@ public interface TopicOrBuilder * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -113,11 +113,11 @@ java.lang.String getLabelsOrDefault( * * *
    -   * See [Creating and managing labels]
    +   * Optional. See [Creating and managing labels]
        * (https://cloud.google.com/pubsub/docs/labels).
        * 
    * - * map<string, string> labels = 2; + * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); @@ -125,12 +125,14 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Policy constraining the set of Google Cloud Platform regions where messages
    -   * published to the topic may be stored. If not present, then no constraints
    -   * are in effect.
    +   * Optional. Policy constraining the set of Google Cloud Platform regions
    +   * where messages published to the topic may be stored. If not present, then
    +   * no constraints are in effect.
        * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageStoragePolicy field is set. */ @@ -139,12 +141,14 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Policy constraining the set of Google Cloud Platform regions where messages
    -   * published to the topic may be stored. If not present, then no constraints
    -   * are in effect.
    +   * Optional. Policy constraining the set of Google Cloud Platform regions
    +   * where messages published to the topic may be stored. If not present, then
    +   * no constraints are in effect.
        * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageStoragePolicy. */ @@ -153,12 +157,14 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Policy constraining the set of Google Cloud Platform regions where messages
    -   * published to the topic may be stored. If not present, then no constraints
    -   * are in effect.
    +   * Optional. Policy constraining the set of Google Cloud Platform regions
    +   * where messages published to the topic may be stored. If not present, then
    +   * no constraints are in effect.
        * 
    * - * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3; + * + * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolicyOrBuilder(); @@ -166,13 +172,13 @@ java.lang.String getLabelsOrDefault( * * *
    -   * The resource name of the Cloud KMS CryptoKey to be used to protect access
    -   * to messages published on this topic.
    +   * Optional. 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/*`.
        * 
    * - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The kmsKeyName. */ @@ -181,13 +187,13 @@ java.lang.String getLabelsOrDefault( * * *
    -   * The resource name of the Cloud KMS CryptoKey to be used to protect access
    -   * to messages published on this topic.
    +   * Optional. 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/*`.
        * 
    * - * string kms_key_name = 5; + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for kmsKeyName. */ @@ -197,10 +203,12 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Settings for validating messages published against a schema.
    +   * Optional. Settings for validating messages published against a schema.
        * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the schemaSettings field is set. */ @@ -209,10 +217,12 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Settings for validating messages published against a schema.
    +   * Optional. Settings for validating messages published against a schema.
        * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The schemaSettings. */ @@ -221,10 +231,12 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Settings for validating messages published against a schema.
    +   * Optional. Settings for validating messages published against a schema.
        * 
    * - * .google.pubsub.v1.SchemaSettings schema_settings = 6; + * + * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder(); @@ -232,11 +244,11 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Reserved for future use. This field is set only in responses from the
    -   * server; it is ignored if it is set in any requests.
    +   * Optional. Reserved for future use. This field is set only in responses from
    +   * the server; it is ignored if it is set in any requests.
        * 
    * - * bool satisfies_pzs = 7; + * bool satisfies_pzs = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The satisfiesPzs. */ @@ -246,17 +258,20 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Indicates the minimum duration to retain a message after it is published to
    -   * the topic. If this field is set, messages published to the topic in the
    -   * last `message_retention_duration` are always available to subscribers. For
    -   * instance, it allows any attached subscription to [seek to a
    +   * Optional. Indicates the minimum duration to retain a message after it is
    +   * published to the topic. If this field is set, messages published to the
    +   * topic in the last `message_retention_duration` are always available to
    +   * subscribers. For instance, it allows any attached subscription to [seek to
    +   * a
        * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
        * that is up to `message_retention_duration` in the past. If this field is
        * not set, message retention is controlled by settings on individual
        * subscriptions. Cannot be more than 31 days or less than 10 minutes.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the messageRetentionDuration field is set. */ @@ -265,17 +280,20 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Indicates the minimum duration to retain a message after it is published to
    -   * the topic. If this field is set, messages published to the topic in the
    -   * last `message_retention_duration` are always available to subscribers. For
    -   * instance, it allows any attached subscription to [seek to a
    +   * Optional. Indicates the minimum duration to retain a message after it is
    +   * published to the topic. If this field is set, messages published to the
    +   * topic in the last `message_retention_duration` are always available to
    +   * subscribers. For instance, it allows any attached subscription to [seek to
    +   * a
        * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
        * that is up to `message_retention_duration` in the past. If this field is
        * not set, message retention is controlled by settings on individual
        * subscriptions. Cannot be more than 31 days or less than 10 minutes.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The messageRetentionDuration. */ @@ -284,17 +302,92 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Indicates the minimum duration to retain a message after it is published to
    -   * the topic. If this field is set, messages published to the topic in the
    -   * last `message_retention_duration` are always available to subscribers. For
    -   * instance, it allows any attached subscription to [seek to a
    +   * Optional. Indicates the minimum duration to retain a message after it is
    +   * published to the topic. If this field is set, messages published to the
    +   * topic in the last `message_retention_duration` are always available to
    +   * subscribers. For instance, it allows any attached subscription to [seek to
    +   * a
        * timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
        * that is up to `message_retention_duration` in the past. If this field is
        * not set, message retention is controlled by settings on individual
        * subscriptions. Cannot be more than 31 days or less than 10 minutes.
        * 
    * - * .google.protobuf.Duration message_retention_duration = 8; + * + * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder(); + + /** + * + * + *
    +   * Output only. An output-only field indicating the state of the topic.
    +   * 
    + * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +   * Output only. An output-only field indicating the state of the topic.
    +   * 
    + * + * .google.pubsub.v1.Topic.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.Topic.State getState(); + + /** + * + * + *
    +   * Optional. Settings for managed ingestion from a data source into this
    +   * topic.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the ingestionDataSourceSettings field is set. + */ + boolean hasIngestionDataSourceSettings(); + /** + * + * + *
    +   * Optional. Settings for managed ingestion from a data source into this
    +   * topic.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The ingestionDataSourceSettings. + */ + com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings(); + /** + * + * + *
    +   * Optional. Settings for managed ingestion from a data source into this
    +   * topic.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder + getIngestionDataSourceSettingsOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 03e24bcc3a68..19b2ed7aadef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 27027e92b45a..442f147ed7ab 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 921ead79e6ad..744e91a07c13 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index ab0f57de345a..d812038a424f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 49ef30ab305b..415a8fa8f250 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index ce746a8ab89d..825ab31fda11 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 8a5c924a6600..fb823741ce86 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 30ee884fc35f..f4d4702b2b2e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index b865330f1a9b..e56de6312547 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index fb77170930c1..b20450cb4b42 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index e287bbd48d7f..8a55996d78dd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index a7e443e7b04b..751ea98d54f5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 002d5b390343..99c7e1d36bbf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index a6d1fa45fc76..9879319b9fa1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 393893b1033f..c548b26808dc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -53,8 +53,8 @@ service Publisher { option (google.api.method_signature) = "name"; } - // Updates an existing topic. Note that certain properties of a - // topic are not modifiable. + // Updates an existing topic by updating the fields specified in the update + // mask. Note that certain properties of a topic are not modifiable. rpc UpdateTopic(UpdateTopicRequest) returns (Topic) { option (google.api.http) = { patch: "/v1/{topic.name=projects/*/topics/*}" @@ -137,13 +137,21 @@ service Publisher { // A policy constraining the storage of messages published to the topic. message MessageStoragePolicy { - // A list of IDs of Google Cloud regions where messages that are published - // to the topic may be persisted in storage. Messages published by publishers - // running in non-allowed Google Cloud regions (or running outside of Google - // Cloud altogether) are routed for storage in one of the allowed regions. - // An empty list means that no regions are allowed, and is not a valid - // configuration. - repeated string allowed_persistence_regions = 1; + // Optional. A list of IDs of Google Cloud regions where messages that are + // published to the topic may be persisted in storage. Messages published by + // publishers running in non-allowed Google Cloud regions (or running outside + // of Google Cloud altogether) are routed for storage in one of the allowed + // regions. An empty list means that no regions are allowed, and is not a + // valid configuration. + repeated string allowed_persistence_regions = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, `allowed_persistence_regions` is also used to enforce + // in-transit guarantees for messages. That is, Pub/Sub will fail + // Publish operations on this topic and subscribe operations + // on any subscription attached to this topic in any region that is + // not in `allowed_persistence_regions`. + bool enforce_in_transit = 2 [(google.api.field_behavior) = OPTIONAL]; } // Settings for validating messages published against a schema. @@ -157,18 +165,83 @@ message SchemaSettings { (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } ]; - // The encoding of messages validated against `schema`. - Encoding encoding = 2; + // Optional. The encoding of messages validated against `schema`. + Encoding encoding = 2 [(google.api.field_behavior) = OPTIONAL]; - // The minimum (inclusive) revision allowed for validating messages. If empty - // or not present, allow any revision to be validated against last_revision or - // any revision created before. - string first_revision_id = 3; + // Optional. The minimum (inclusive) revision allowed for validating messages. + // If empty or not present, allow any revision to be validated against + // last_revision or any revision created before. + string first_revision_id = 3 [(google.api.field_behavior) = OPTIONAL]; - // The maximum (inclusive) revision allowed for validating messages. If empty - // or not present, allow any revision to be validated against first_revision - // or any revision created after. - string last_revision_id = 4; + // Optional. The maximum (inclusive) revision allowed for validating messages. + // If empty or not present, allow any revision to be validated against + // first_revision or any revision created after. + string last_revision_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings for an ingestion data source on a topic. +message IngestionDataSourceSettings { + // Ingestion settings for Amazon Kinesis Data Streams. + message AwsKinesis { + // Possible states for managed ingestion from Amazon Kinesis Data Streams. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Ingestion is active. + ACTIVE = 1; + + // Permission denied encountered while consuming data from Kinesis. + // This can happen if: + // - The provided `aws_role_arn` does not exist or does not have the + // appropriate permissions attached. + // - The provided `aws_role_arn` is not set up properly for Identity + // Federation using `gcp_service_account`. + // - The Pub/Sub SA is not granted the + // `iam.serviceAccounts.getOpenIdToken` permission on + // `gcp_service_account`. + KINESIS_PERMISSION_DENIED = 2; + + // Permission denied encountered while publishing to the topic. This can + // happen due to Pub/Sub SA has not been granted the [appropriate publish + // permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher) + PUBLISH_PERMISSION_DENIED = 3; + + // The Kinesis stream does not exist. + STREAM_NOT_FOUND = 4; + + // The Kinesis consumer does not exist. + CONSUMER_NOT_FOUND = 5; + } + + // Output only. An output-only field that indicates the state of the Kinesis + // ingestion source. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The Kinesis stream ARN to ingest data from. + string stream_arn = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Kinesis consumer ARN to used for ingestion in Enhanced + // Fan-Out mode. The consumer must be already created and ready to be used. + string consumer_arn = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. AWS role ARN to be used for Federated Identity authentication + // with Kinesis. Check the Pub/Sub docs for how to set up this role and the + // required permissions that need to be attached to it. + string aws_role_arn = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The GCP service account to be used for Federated Identity + // authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for + // the provided role). The `aws_role_arn` must be set up with + // `accounts.google.com:sub` equals to this service account number. + string gcp_service_account = 5 [(google.api.field_behavior) = REQUIRED]; + } + + // Only one source type can have settings set. + oneof source { + // Optional. Amazon Kinesis Data Streams. + AwsKinesis aws_kinesis = 1 [(google.api.field_behavior) = OPTIONAL]; + } } // A topic resource. @@ -179,6 +252,20 @@ message Topic { pattern: "_deleted-topic_" }; + // The state of the topic. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The topic does not have any persistent errors. + ACTIVE = 1; + + // Ingestion from the data source has encountered a permanent error. + // See the more detailed error state in the corresponding ingestion + // source configuration. + INGESTION_RESOURCE_ERROR = 2; + } + // 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 (`-`), @@ -187,37 +274,48 @@ message Topic { // must not start with `"goog"`. string name = 1 [(google.api.field_behavior) = REQUIRED]; - // See [Creating and managing labels] + // Optional. See [Creating and managing labels] // (https://cloud.google.com/pubsub/docs/labels). - map labels = 2; + map labels = 2 [(google.api.field_behavior) = OPTIONAL]; - // Policy constraining the set of Google Cloud Platform regions where messages - // published to the topic may be stored. If not present, then no constraints - // are in effect. - MessageStoragePolicy message_storage_policy = 3; + // Optional. Policy constraining the set of Google Cloud Platform regions + // where messages published to the topic may be stored. If not present, then + // no constraints are in effect. + MessageStoragePolicy message_storage_policy = 3 + [(google.api.field_behavior) = OPTIONAL]; - // The resource name of the Cloud KMS CryptoKey to be used to protect access - // to messages published on this topic. + // Optional. 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/*`. - string kms_key_name = 5; + string kms_key_name = 5 [(google.api.field_behavior) = OPTIONAL]; - // Settings for validating messages published against a schema. - SchemaSettings schema_settings = 6; + // Optional. Settings for validating messages published against a schema. + SchemaSettings schema_settings = 6 [(google.api.field_behavior) = OPTIONAL]; - // Reserved for future use. This field is set only in responses from the - // server; it is ignored if it is set in any requests. - bool satisfies_pzs = 7; + // Optional. Reserved for future use. This field is set only in responses from + // the server; it is ignored if it is set in any requests. + bool satisfies_pzs = 7 [(google.api.field_behavior) = OPTIONAL]; - // Indicates the minimum duration to retain a message after it is published to - // the topic. If this field is set, messages published to the topic in the - // last `message_retention_duration` are always available to subscribers. For - // instance, it allows any attached subscription to [seek to a + // Optional. Indicates the minimum duration to retain a message after it is + // published to the topic. If this field is set, messages published to the + // topic in the last `message_retention_duration` are always available to + // subscribers. For instance, it allows any attached subscription to [seek to + // a // timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) // that is up to `message_retention_duration` in the past. If this field is // not set, message retention is controlled by settings on individual // subscriptions. Cannot be more than 31 days or less than 10 minutes. - google.protobuf.Duration message_retention_duration = 8; + google.protobuf.Duration message_retention_duration = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. An output-only field indicating the state of the topic. + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Settings for managed ingestion from a data source into this + // topic. + IngestionDataSourceSettings ingestion_data_source_settings = 10 + [(google.api.field_behavior) = OPTIONAL]; } // A message that is published by publishers and consumed by subscribers. The @@ -229,14 +327,14 @@ message Topic { // (https://cloud.google.com/pubsub/quotas) for more information about message // limits. message PubsubMessage { - // The message data field. If this field is empty, the message must contain - // at least one attribute. - bytes data = 1; + // Optional. The message data field. If this field is empty, the message must + // contain at least one attribute. + bytes data = 1 [(google.api.field_behavior) = OPTIONAL]; - // Attributes for this message. If this field is empty, the message must - // contain non-empty data. This can be used to filter messages on the + // Optional. Attributes for this message. If this field is empty, the message + // must contain non-empty data. This can be used to filter messages on the // subscription. - map attributes = 2; + map attributes = 2 [(google.api.field_behavior) = OPTIONAL]; // 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 @@ -249,15 +347,15 @@ message PubsubMessage { // publisher in a `Publish` call. google.protobuf.Timestamp publish_time = 4; - // 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. - // For more information, see [ordering + // Optional. 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. For more + // information, see [ordering // messages](https://cloud.google.com/pubsub/docs/ordering). - string ordering_key = 5; + string ordering_key = 5 [(google.api.field_behavior) = OPTIONAL]; } // Request for the GetTopic method. @@ -299,10 +397,10 @@ message PublishRequest { // Response for the `Publish` method. message PublishResponse { - // The server-assigned ID of each published message, in the same order as - // the messages in the request. IDs are guaranteed to be unique within - // the topic. - repeated string message_ids = 1; + // Optional. The server-assigned ID of each published message, in the same + // order as the messages in the request. IDs are guaranteed to be unique + // within the topic. + repeated string message_ids = 1 [(google.api.field_behavior) = OPTIONAL]; } // Request for the `ListTopics` method. @@ -316,23 +414,23 @@ message ListTopicsRequest { } ]; - // Maximum number of topics to return. - int32 page_size = 2; + // Optional. Maximum number of topics to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // 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. - string page_token = 3; + // Optional. 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. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `ListTopics` method. message ListTopicsResponse { - // The resulting topics. - repeated Topic topics = 1; + // Optional. The resulting topics. + repeated Topic topics = 1 [(google.api.field_behavior) = OPTIONAL]; - // If not empty, indicates that there may be more topics that match the - // request; this value should be passed in a new `ListTopicsRequest`. - string next_page_token = 2; + // Optional. If not empty, indicates that there may be more topics that match + // the request; this value should be passed in a new `ListTopicsRequest`. + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request for the `ListTopicSubscriptions` method. @@ -344,26 +442,30 @@ message ListTopicSubscriptionsRequest { (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; - // Maximum number of subscription names to return. - int32 page_size = 2; + // Optional. Maximum number of subscription names to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // The value returned by the last `ListTopicSubscriptionsResponse`; indicates - // that this is a continuation of a prior `ListTopicSubscriptions` call, and - // that the system should return the next page of data. - string page_token = 3; + // Optional. The value returned by the last `ListTopicSubscriptionsResponse`; + // indicates that this is a continuation of a prior `ListTopicSubscriptions` + // call, and that the system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `ListTopicSubscriptions` method. message ListTopicSubscriptionsResponse { - // The names of subscriptions attached to the topic specified in the request. - repeated string subscriptions = 1 [(google.api.resource_reference) = { - type: "pubsub.googleapis.com/Subscription" - }]; + // Optional. The names of subscriptions attached to the topic specified in the + // request. + repeated string subscriptions = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Subscription" + } + ]; - // If not empty, indicates that there may be more subscriptions that match - // the request; this value should be passed in a new + // Optional. If not empty, indicates that there may be more subscriptions that + // match the request; this value should be passed in a new // `ListTopicSubscriptionsRequest` to get more subscriptions. - string next_page_token = 2; + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request for the `ListTopicSnapshots` method. @@ -375,24 +477,24 @@ message ListTopicSnapshotsRequest { (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; - // Maximum number of snapshot names to return. - int32 page_size = 2; + // Optional. Maximum number of snapshot names to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // The value returned by the last `ListTopicSnapshotsResponse`; indicates - // that this is a continuation of a prior `ListTopicSnapshots` call, and - // that the system should return the next page of data. - string page_token = 3; + // Optional. The value returned by the last `ListTopicSnapshotsResponse`; + // indicates that this is a continuation of a prior `ListTopicSnapshots` call, + // and that the system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `ListTopicSnapshots` method. message ListTopicSnapshotsResponse { - // The names of the snapshots that match the request. - repeated string snapshots = 1; + // Optional. The names of the snapshots that match the request. + repeated string snapshots = 1 [(google.api.field_behavior) = OPTIONAL]; - // If not empty, indicates that there may be more snapshots that match - // the request; this value should be passed in a new + // Optional. If not empty, indicates that there may be more snapshots that + // match the request; this value should be passed in a new // `ListTopicSnapshotsRequest` to get more snapshots. - string next_page_token = 2; + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request for the `DeleteTopic` method. @@ -458,8 +560,9 @@ service Subscriber { option (google.api.method_signature) = "subscription"; } - // Updates an existing subscription. Note that certain properties of a - // subscription, such as its topic, are not modifiable. + // Updates an existing subscription by updating the fields specified in the + // update mask. Note that certain properties of a subscription, such as its + // topic, are not modifiable. rpc UpdateSubscription(UpdateSubscriptionRequest) returns (Subscription) { option (google.api.http) = { patch: "/v1/{subscription.name=projects/*/subscriptions/*}" @@ -604,7 +707,8 @@ service Subscriber { option (google.api.method_signature) = "name,subscription"; } - // Updates an existing snapshot. Snapshots are used in + // Updates an existing snapshot by updating the fields specified in the update + // mask. Snapshots are used in // [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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 @@ -687,23 +791,24 @@ message Subscription { (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; - // If push delivery is used with this subscription, this field is - // used to configure it. - PushConfig push_config = 4; - - // If delivery to BigQuery is used with this subscription, this field is + // Optional. If push delivery is used with this subscription, this field is // used to configure it. - BigQueryConfig bigquery_config = 18; + PushConfig push_config = 4 [(google.api.field_behavior) = OPTIONAL]; - // If delivery to Google Cloud Storage is used with this subscription, this + // Optional. If delivery to BigQuery is used with this subscription, this // field is used to configure it. - CloudStorageConfig cloud_storage_config = 22; - - // 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). + BigQueryConfig bigquery_config = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If delivery to Google Cloud Storage is used with this + // subscription, this field is used to configure it. + CloudStorageConfig cloud_storage_config = 22 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. 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 @@ -719,78 +824,81 @@ message Subscription { // // If the subscriber never acknowledges the message, the Pub/Sub // system will eventually redeliver the message. - int32 ack_deadline_seconds = 5; + int32 ack_deadline_seconds = 5 [(google.api.field_behavior) = OPTIONAL]; - // Indicates whether to retain acknowledged messages. If true, then + // Optional. 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] // (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in // the past to replay previously-acknowledged messages. - bool retain_acked_messages = 7; + bool retain_acked_messages = 7 [(google.api.field_behavior) = OPTIONAL]; - // 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. - google.protobuf.Duration message_retention_duration = 8; + // Optional. 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. + google.protobuf.Duration message_retention_duration = 8 + [(google.api.field_behavior) = OPTIONAL]; - // See [Creating and managing + // Optional. See [Creating and managing // labels](https://cloud.google.com/pubsub/docs/labels). - map labels = 9; - - // If true, messages published with the same `ordering_key` in `PubsubMessage` - // will be delivered to the subscribers in the order in which they - // are received by the Pub/Sub system. Otherwise, they may be delivered in - // any order. - bool enable_message_ordering = 10; - - // A policy that specifies the conditions for this subscription's expiration. - // A subscription is considered active as long as any connected subscriber is - // successfully consuming messages from the subscription or is issuing - // operations on the subscription. If `expiration_policy` is not set, a - // *default policy* with `ttl` of 31 days will be used. The minimum allowed + map labels = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. 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. + bool enable_message_ordering = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. 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. If `expiration_policy` is set, // but `expiration_policy.ttl` is not set, the subscription never expires. - ExpirationPolicy expiration_policy = 11; + ExpirationPolicy expiration_policy = 11 + [(google.api.field_behavior) = OPTIONAL]; - // An expression written in the Pub/Sub [filter + // Optional. An expression written in the Pub/Sub [filter // language](https://cloud.google.com/pubsub/docs/filtering). 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. - string filter = 12; + string filter = 12 [(google.api.field_behavior) = OPTIONAL]; - // A policy that specifies the conditions for dead lettering messages in - // this subscription. If dead_letter_policy is not set, dead lettering - // is disabled. + // Optional. 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 + // The 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. - DeadLetterPolicy dead_letter_policy = 13; + DeadLetterPolicy dead_letter_policy = 13 + [(google.api.field_behavior) = OPTIONAL]; - // A policy that specifies how Pub/Sub retries message delivery for this - // subscription. + // Optional. A policy that specifies how Pub/Sub retries message delivery for + // this subscription. // // If not set, the default retry policy is applied. This generally implies // that messages will be retried as soon as possible for healthy subscribers. // RetryPolicy will be triggered on NACKs or acknowledgement deadline // exceeded events for a given message. - RetryPolicy retry_policy = 14; + RetryPolicy retry_policy = 14 [(google.api.field_behavior) = OPTIONAL]; - // Indicates whether the subscription is detached from its topic. Detached - // subscriptions don't receive messages from their topic and don't retain any - // backlog. `Pull` and `StreamingPull` requests will return + // Optional. Indicates whether the subscription is detached from its topic. + // Detached subscriptions don't receive messages from their topic and don't + // retain any backlog. `Pull` and `StreamingPull` requests will return // FAILED_PRECONDITION. If the subscription is a push subscription, pushes to // the endpoint will not be made. - bool detached = 15; + bool detached = 15 [(google.api.field_behavior) = OPTIONAL]; - // If true, Pub/Sub provides the following guarantees for the delivery of - // a message with a given value of `message_id` on this subscription: + // Optional. If true, Pub/Sub provides the following guarantees for the + // delivery of a message with a given value of `message_id` on this + // subscription: // // * The message sent to a subscriber is guaranteed not to be resent // before the message's acknowledgement deadline expires. @@ -800,7 +908,8 @@ message Subscription { // when `enable_exactly_once_delivery` is true if the message was published // multiple times by a publisher client. These copies are considered distinct // by Pub/Sub and have distinct `message_id` values. - bool enable_exactly_once_delivery = 16; + bool enable_exactly_once_delivery = 16 + [(google.api.field_behavior) = OPTIONAL]; // Output only. Indicates the minimum duration for which a message is retained // after it is published to the subscription's topic. If this field is set, @@ -816,7 +925,7 @@ message Subscription { State state = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// A policy that specifies how Cloud Pub/Sub retries message delivery. +// A policy that specifies how Pub/Sub retries message delivery. // // Retry delay will be exponential based on provided minimum and maximum // backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. @@ -828,13 +937,16 @@ message Subscription { // between consecutive deliveries may not match the configuration. That is, // delay can be more or less than configured backoff. message RetryPolicy { - // The minimum delay between consecutive deliveries of a given message. - // Value should be between 0 and 600 seconds. Defaults to 10 seconds. - google.protobuf.Duration minimum_backoff = 1; - - // The maximum delay between consecutive deliveries of a given message. - // Value should be between 0 and 600 seconds. Defaults to 600 seconds. - google.protobuf.Duration maximum_backoff = 2; + // Optional. The minimum delay between consecutive deliveries of a given + // message. Value should be between 0 and 600 seconds. Defaults to 10 seconds. + google.protobuf.Duration minimum_backoff = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum delay between consecutive deliveries of a given + // message. Value should be between 0 and 600 seconds. Defaults to 600 + // seconds. + google.protobuf.Duration maximum_backoff = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Dead lettering is done on a best effort basis. The same message might be @@ -843,19 +955,19 @@ message RetryPolicy { // If validation on any of the fields fails at subscription creation/updation, // the create/update subscription request will fail. message DeadLetterPolicy { - // 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-pubsub.iam.gserviceaccount.com) must have - // permission to Publish() to this topic. + // Optional. The name of the topic to which dead letter messages should be + // published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub + // service account associated with the enclosing 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 subscription attached to this topic // since messages published to a topic with no subscriptions are lost. - string dead_letter_topic = 1; + string dead_letter_topic = 1 [(google.api.field_behavior) = OPTIONAL]; - // The maximum number of delivery attempts for any message. The value must be - // between 5 and 100. + // Optional. The maximum number of delivery attempts for any message. The + // value must be between 5 and 100. // // The number of delivery attempts is defined as 1 + (the sum of number of // NACKs and number of times the acknowledgement deadline has been exceeded @@ -867,19 +979,19 @@ message DeadLetterPolicy { // This field will be honored on a best effort basis. // // If this parameter is 0, a default value of 5 is used. - int32 max_delivery_attempts = 2; + int32 max_delivery_attempts = 2 [(google.api.field_behavior) = OPTIONAL]; } // A policy that specifies the conditions for resource expiration (i.e., // automatic resource deletion). message ExpirationPolicy { - // 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 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. - google.protobuf.Duration ttl = 1; + // Optional. 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 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. + google.protobuf.Duration ttl = 1 [(google.api.field_behavior) = OPTIONAL]; } // Configuration for a push delivery endpoint. @@ -888,20 +1000,21 @@ message PushConfig { // [OpenID Connect // token](https://developers.google.com/identity/protocols/OpenIDConnect). message OidcToken { - // [Service account + // Optional. [Service account // email](https://cloud.google.com/iam/docs/service-accounts) // used for generating the OIDC token. For more information // on setting up authentication, see // [Push subscriptions](https://cloud.google.com/pubsub/docs/push). - string service_account_email = 1; - - // Audience to be used when generating OIDC token. The audience claim - // identifies the recipients that the JWT is intended for. The audience - // value is a single case-sensitive string. Having multiple values (array) - // for the audience field is not supported. More info about the OIDC JWT - // token audience here: https://tools.ietf.org/html/rfc7519#section-4.1.3 - // Note: if not specified, the Push endpoint URL will be used. - string audience = 2; + string service_account_email = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Audience to be used when generating OIDC token. The audience + // claim identifies the recipients that the JWT is intended for. The + // audience value is a single case-sensitive string. Having multiple values + // (array) for the audience field is not supported. More info about the OIDC + // JWT token audience here: + // https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, + // the Push endpoint URL will be used. + string audience = 2 [(google.api.field_behavior) = OPTIONAL]; } // The payload to the push endpoint is in the form of the JSON representation @@ -911,18 +1024,18 @@ message PushConfig { // Sets the `data` field as the HTTP body for delivery. message NoWrapper { - // When true, writes the Pub/Sub message metadata to + // Optional. When true, writes the Pub/Sub message metadata to // `x-goog-pubsub-:` headers of the HTTP request. Writes the // Pub/Sub message attributes to `:` headers of the HTTP request. - bool write_metadata = 1; + bool write_metadata = 1 [(google.api.field_behavior) = OPTIONAL]; } - // A URL locating the endpoint to which messages should be pushed. + // Optional. A URL locating the endpoint to which messages should be pushed. // For example, a Webhook endpoint might use `https://example.com/push`. - string push_endpoint = 1; + string push_endpoint = 1 [(google.api.field_behavior) = OPTIONAL]; - // Endpoint configuration attributes that can be used to control different - // aspects of the message delivery. + // Optional. Endpoint configuration attributes that can be used to control + // different aspects of the message delivery. // // The only currently supported attribute is `x-goog-version`, which you can // use to change the format of the pushed message. This attribute @@ -942,29 +1055,30 @@ message PushConfig { // // For example: // `attributes { "x-goog-version": "v1" }` - map attributes = 2; + map attributes = 2 [(google.api.field_behavior) = OPTIONAL]; // An authentication method used by push endpoints to verify the source of // push requests. This can be used with push endpoints that are private by - // default to allow requests only from the Cloud Pub/Sub system, for example. + // default to allow requests only from the Pub/Sub system, for example. // This field is optional and should be set only by users interested in // authenticated push. oneof authentication_method { - // If specified, Pub/Sub will generate and attach an OIDC JWT token as an - // `Authorization` header in the HTTP request for every pushed message. - OidcToken oidc_token = 3; + // Optional. If specified, Pub/Sub will generate and attach an OIDC JWT + // token as an `Authorization` header in the HTTP request for every pushed + // message. + OidcToken oidc_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // The format of the delivered message to the push endpoint is defined by // the chosen wrapper. When unset, `PubsubWrapper` is used. oneof wrapper { - // When set, the payload to the push endpoint is in the form of the JSON - // representation of a PubsubMessage + // Optional. When set, the payload to the push endpoint is in the form of + // the JSON representation of a PubsubMessage // (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage). - PubsubWrapper pubsub_wrapper = 4; + PubsubWrapper pubsub_wrapper = 4 [(google.api.field_behavior) = OPTIONAL]; - // When set, the payload to the push endpoint is not wrapped. - NoWrapper no_wrapper = 5; + // Optional. When set, the payload to the push endpoint is not wrapped. + NoWrapper no_wrapper = 5 [(google.api.field_behavior) = OPTIONAL]; } } @@ -991,30 +1105,34 @@ message BigQueryConfig { // Cannot write to the BigQuery table due to a schema mismatch. SCHEMA_MISMATCH = 4; + + // Cannot write to the destination because enforce_in_transit is set to true + // and the destination locations are not in the allowed regions. + IN_TRANSIT_LOCATION_RESTRICTION = 5; } - // The name of the table to which to write data, of the form + // Optional. The name of the table to which to write data, of the form // {projectId}.{datasetId}.{tableId} - string table = 1; + string table = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. When true, use the topic's schema as the columns to write to in // BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be // enabled at the same time. bool use_topic_schema = 2 [(google.api.field_behavior) = OPTIONAL]; - // When true, write the subscription name, message_id, publish_time, + // Optional. When true, write the subscription name, message_id, publish_time, // attributes, and ordering_key to additional columns in the table. The // subscription name, message_id, and publish_time fields are put in their own // columns while all other message properties (other than data) are written to // a JSON object in the attributes column. - bool write_metadata = 3; + bool write_metadata = 3 [(google.api.field_behavior) = OPTIONAL]; - // When true and use_topic_schema is true, any fields that are a part of the - // topic schema that are not part of the BigQuery table schema are dropped - // when writing to BigQuery. Otherwise, the schemas must be kept in sync and - // any messages with extra fields are not written and remain in the + // Optional. When true and use_topic_schema is true, any fields that are a + // part of the topic schema that are not part of the BigQuery table schema are + // dropped when writing to BigQuery. Otherwise, the schemas must be kept in + // sync and any messages with extra fields are not written and remain in the // subscription's backlog. - bool drop_unknown_fields = 4; + bool drop_unknown_fields = 4 [(google.api.field_behavior) = OPTIONAL]; // Output only. An output-only field that indicates whether or not the // subscription can receive messages. @@ -1036,13 +1154,13 @@ message CloudStorageConfig { // Configuration for writing message data in Avro format. // Message payloads and metadata will be written to files as an Avro binary. message AvroConfig { - // When true, write the subscription name, message_id, publish_time, - // attributes, and ordering_key as additional fields in the output. The - // subscription name, message_id, and publish_time fields are put in their - // own fields while all other message properties other than data (for - // example, an ordering_key, if present) are added as entries in the - // attributes map. - bool write_metadata = 1; + // Optional. When true, write the subscription name, message_id, + // publish_time, attributes, and ordering_key as additional fields in the + // output. The subscription name, message_id, and publish_time fields are + // put in their own fields while all other message properties other than + // data (for example, an ordering_key, if present) are added as entries in + // the attributes map. + bool write_metadata = 1 [(google.api.field_behavior) = OPTIONAL]; } // Possible states for a Cloud Storage subscription. @@ -1059,6 +1177,10 @@ message CloudStorageConfig { // Cannot write to the Cloud Storage bucket because it does not exist. NOT_FOUND = 3; + + // Cannot write to the destination because enforce_in_transit is set to true + // and the destination locations are not in the allowed regions. + IN_TRANSIT_LOCATION_RESTRICTION = 4; } // Required. User-provided name for the Cloud Storage bucket. @@ -1067,33 +1189,36 @@ message CloudStorageConfig { // requirements] (https://cloud.google.com/storage/docs/buckets#naming). string bucket = 1 [(google.api.field_behavior) = REQUIRED]; - // User-provided prefix for Cloud Storage filename. See the [object naming - // requirements](https://cloud.google.com/storage/docs/objects#naming). - string filename_prefix = 2; + // Optional. User-provided prefix for Cloud Storage filename. See the [object + // naming requirements](https://cloud.google.com/storage/docs/objects#naming). + string filename_prefix = 2 [(google.api.field_behavior) = OPTIONAL]; - // User-provided suffix for Cloud Storage filename. See the [object naming - // requirements](https://cloud.google.com/storage/docs/objects#naming). Must - // not end in "/". - string filename_suffix = 3; + // Optional. User-provided suffix for Cloud Storage filename. See the [object + // naming requirements](https://cloud.google.com/storage/docs/objects#naming). + // Must not end in "/". + string filename_suffix = 3 [(google.api.field_behavior) = OPTIONAL]; // Defaults to text format. oneof output_format { - // If set, message data will be written to Cloud Storage in text format. - TextConfig text_config = 4; + // Optional. If set, message data will be written to Cloud Storage in text + // format. + TextConfig text_config = 4 [(google.api.field_behavior) = OPTIONAL]; - // If set, message data will be written to Cloud Storage in Avro format. - AvroConfig avro_config = 5; + // Optional. If set, message data will be written to Cloud Storage in Avro + // format. + AvroConfig avro_config = 5 [(google.api.field_behavior) = OPTIONAL]; } - // The maximum duration that can elapse before a new Cloud Storage file is - // created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed - // the subscription's acknowledgement deadline. - google.protobuf.Duration max_duration = 6; + // Optional. The maximum duration that can elapse before a new Cloud Storage + // file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not + // exceed the subscription's acknowledgement deadline. + google.protobuf.Duration max_duration = 6 + [(google.api.field_behavior) = OPTIONAL]; - // The maximum bytes that can be written to a Cloud Storage file before a new - // file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be exceeded - // in cases where messages are larger than the limit. - int64 max_bytes = 7; + // Optional. The maximum bytes that can be written to a Cloud Storage file + // before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may + // be exceeded in cases where messages are larger than the limit. + int64 max_bytes = 7 [(google.api.field_behavior) = OPTIONAL]; // Output only. An output-only field that indicates whether or not the // subscription can receive messages. @@ -1102,14 +1227,14 @@ message CloudStorageConfig { // A message and its corresponding acknowledgment ID. message ReceivedMessage { - // This ID can be used to acknowledge the received message. - string ack_id = 1; + // Optional. This ID can be used to acknowledge the received message. + string ack_id = 1 [(google.api.field_behavior) = OPTIONAL]; - // The message. - PubsubMessage message = 2; + // Optional. The message. + PubsubMessage message = 2 [(google.api.field_behavior) = OPTIONAL]; - // The approximate number of times that Cloud Pub/Sub has attempted to deliver - // the associated message to a subscriber. + // Optional. The approximate number of times that 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. @@ -1124,7 +1249,7 @@ message ReceivedMessage { // 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. - int32 delivery_attempt = 3; + int32 delivery_attempt = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request for the GetSubscription method. @@ -1161,24 +1286,25 @@ message ListSubscriptionsRequest { } ]; - // Maximum number of subscriptions to return. - int32 page_size = 2; + // Optional. Maximum number of subscriptions to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // The value returned by the last `ListSubscriptionsResponse`; indicates that - // this is a continuation of a prior `ListSubscriptions` call, and that the - // system should return the next page of data. - string page_token = 3; + // Optional. The value returned by the last `ListSubscriptionsResponse`; + // indicates that this is a continuation of a prior `ListSubscriptions` call, + // and that the system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `ListSubscriptions` method. message ListSubscriptionsResponse { - // The subscriptions that match the request. - repeated Subscription subscriptions = 1; + // Optional. The subscriptions that match the request. + repeated Subscription subscriptions = 1 + [(google.api.field_behavior) = OPTIONAL]; - // If not empty, indicates that there may be more subscriptions that match - // the request; this value should be passed in a new + // Optional. If not empty, indicates that there may be more subscriptions that + // match the request; this value should be passed in a new // `ListSubscriptionsRequest` to get more subscriptions. - string next_page_token = 2; + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request for the DeleteSubscription method. @@ -1242,12 +1368,13 @@ message PullRequest { // Response for the `Pull` method. message PullResponse { - // Received Pub/Sub messages. The list will be empty if there are no more - // messages available in the backlog, or if no messages could be returned + // Optional. Received Pub/Sub messages. The list will be empty if there are no + // more messages available in the backlog, or if no messages could be returned // before the request timeout. 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. - repeated ReceivedMessage received_messages = 1; + repeated ReceivedMessage received_messages = 1 + [(google.api.field_behavior) = OPTIONAL]; } // Request for the ModifyAckDeadline method. @@ -1271,7 +1398,8 @@ message ModifyAckDeadlineRequest { // 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). + // The maximum deadline you can specify in a single request is 600 seconds + // (10 minutes). int32 ack_deadline_seconds = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -1307,14 +1435,15 @@ message StreamingPullRequest { } ]; - // 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`. - repeated string ack_ids = 2; + // Optional. 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`. + repeated string ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; - // The list of new ack deadlines for the IDs listed in + // Optional. The list of new ack deadlines for the IDs listed in // `modify_deadline_ack_ids`. The size of this list must be the same as the // size of `modify_deadline_ack_ids`. If it differs the stream will be aborted // with `INVALID_ARGUMENT`. Each element in this list is applied to the @@ -1325,14 +1454,16 @@ message StreamingPullRequest { // the message is immediately made available for another streaming or // non-streaming pull request. If the value is < 0 (an error), the stream will // be aborted with status `INVALID_ARGUMENT`. - repeated int32 modify_deadline_seconds = 3; + repeated int32 modify_deadline_seconds = 3 + [(google.api.field_behavior) = OPTIONAL]; - // 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 + // Optional. 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. - repeated string modify_deadline_ack_ids = 4; + repeated string modify_deadline_ack_ids = 4 + [(google.api.field_behavior) = OPTIONAL]; // Required. The ack deadline to use for the stream. This must be provided in // the first request on the stream, but it can also be updated on subsequent @@ -1341,16 +1472,16 @@ message StreamingPullRequest { int32 stream_ack_deadline_seconds = 5 [(google.api.field_behavior) = REQUIRED]; - // 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 be used for + // Optional. 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 be used for // different client instances. - string client_id = 6; + string client_id = 6 [(google.api.field_behavior) = OPTIONAL]; - // Flow control settings for the maximum number of outstanding messages. When - // there are `max_outstanding_messages` or more currently sent to the + // Optional. Flow control settings for the maximum number of outstanding + // messages. When there are `max_outstanding_messages` currently sent to the // streaming pull client that have not yet been acked or nacked, the server // stops sending more messages. The sending of messages resumes once the // number of outstanding messages is less than this value. If the value is @@ -1358,18 +1489,18 @@ message StreamingPullRequest { // property can only be set on the initial StreamingPullRequest. If it is set // on a subsequent request, the stream will be aborted with status // `INVALID_ARGUMENT`. - int64 max_outstanding_messages = 7; - - // Flow control settings for the maximum number of outstanding bytes. When - // there are `max_outstanding_bytes` or more worth of messages currently sent - // to the streaming pull client that have not yet been acked or nacked, the - // server will stop sending more messages. The sending of messages resumes - // once the number of outstanding bytes is less than this value. If the value - // is <= 0, there is no limit to the number of outstanding bytes. This - // property can only be set on the initial StreamingPullRequest. If it is set - // on a subsequent request, the stream will be aborted with status + int64 max_outstanding_messages = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Flow control settings for the maximum number of outstanding + // bytes. When there are `max_outstanding_bytes` or more worth of messages + // currently sent to the streaming pull client that have not yet been acked or + // nacked, the server will stop sending more messages. The sending of messages + // resumes once the number of outstanding bytes is less than this value. If + // the value is <= 0, there is no limit to the number of outstanding bytes. + // This property can only be set on the initial StreamingPullRequest. If it is + // set on a subsequent request, the stream will be aborted with status // `INVALID_ARGUMENT`. - int64 max_outstanding_bytes = 8; + int64 max_outstanding_bytes = 8 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `StreamingPull` method. This response is used to stream @@ -1378,56 +1509,69 @@ message StreamingPullResponse { // Acknowledgement IDs sent in one or more previous requests to acknowledge a // previously received message. message AcknowledgeConfirmation { - // Successfully processed acknowledgement IDs. - repeated string ack_ids = 1; - - // List of acknowledgement IDs that were malformed or whose acknowledgement - // deadline has expired. - repeated string invalid_ack_ids = 2; - - // List of acknowledgement IDs that were out of order. - repeated string unordered_ack_ids = 3; - - // List of acknowledgement IDs that failed processing with temporary issues. - repeated string temporary_failed_ack_ids = 4; + // Optional. Successfully processed acknowledgement IDs. + repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of acknowledgement IDs that were malformed or whose + // acknowledgement deadline has expired. + repeated string invalid_ack_ids = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of acknowledgement IDs that were out of order. + repeated string unordered_ack_ids = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of acknowledgement IDs that failed processing with + // temporary issues. + repeated string temporary_failed_ack_ids = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Acknowledgement IDs sent in one or more previous requests to modify the // deadline for a specific message. message ModifyAckDeadlineConfirmation { - // Successfully processed acknowledgement IDs. - repeated string ack_ids = 1; - - // List of acknowledgement IDs that were malformed or whose acknowledgement - // deadline has expired. - repeated string invalid_ack_ids = 2; - - // List of acknowledgement IDs that failed processing with temporary issues. - repeated string temporary_failed_ack_ids = 3; + // Optional. Successfully processed acknowledgement IDs. + repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of acknowledgement IDs that were malformed or whose + // acknowledgement deadline has expired. + repeated string invalid_ack_ids = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of acknowledgement IDs that failed processing with + // temporary issues. + repeated string temporary_failed_ack_ids = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Subscription properties sent as part of the response. message SubscriptionProperties { - // True iff exactly once delivery is enabled for this subscription. - bool exactly_once_delivery_enabled = 1; + // Optional. True iff exactly once delivery is enabled for this + // subscription. + bool exactly_once_delivery_enabled = 1 + [(google.api.field_behavior) = OPTIONAL]; - // True iff message ordering is enabled for this subscription. - bool message_ordering_enabled = 2; + // Optional. True iff message ordering is enabled for this subscription. + bool message_ordering_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Received Pub/Sub messages. This will not be empty. - repeated ReceivedMessage received_messages = 1; + // Optional. Received Pub/Sub messages. This will not be empty. + repeated ReceivedMessage received_messages = 1 + [(google.api.field_behavior) = OPTIONAL]; - // This field will only be set if `enable_exactly_once_delivery` is set to - // `true`. - AcknowledgeConfirmation acknowledge_confirmation = 5; + // Optional. This field will only be set if `enable_exactly_once_delivery` is + // set to `true`. + AcknowledgeConfirmation acknowledge_confirmation = 5 + [(google.api.field_behavior) = OPTIONAL]; - // This field will only be set if `enable_exactly_once_delivery` is set to - // `true`. - ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3; + // Optional. This field will only be set if `enable_exactly_once_delivery` is + // set to `true`. + ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Properties associated with this subscription. - SubscriptionProperties subscription_properties = 4; + // Optional. Properties associated with this subscription. + SubscriptionProperties subscription_properties = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Request for the `CreateSnapshot` method. @@ -1459,9 +1603,9 @@ message CreateSnapshotRequest { } ]; - // See [Creating and managing + // Optional. See [Creating and managing // labels](https://cloud.google.com/pubsub/docs/labels). - map labels = 3; + map labels = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request for the UpdateSnapshot method. @@ -1486,15 +1630,17 @@ message Snapshot { pattern: "projects/{project}/snapshots/{snapshot}" }; - // The name of the snapshot. - string name = 1; + // Optional. The name of the snapshot. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; - // The name of the topic from which this snapshot is retaining messages. + // Optional. The name of the topic from which this snapshot is retaining + // messages. string topic = 2 [ + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; - // The snapshot is guaranteed to exist up until this time. + // Optional. 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 @@ -1504,11 +1650,12 @@ message Snapshot { // 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. - google.protobuf.Timestamp expire_time = 3; + google.protobuf.Timestamp expire_time = 3 + [(google.api.field_behavior) = OPTIONAL]; - // See [Creating and managing labels] + // Optional. See [Creating and managing labels] // (https://cloud.google.com/pubsub/docs/labels). - map labels = 4; + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; } // Request for the GetSnapshot method. @@ -1532,23 +1679,24 @@ message ListSnapshotsRequest { } ]; - // Maximum number of snapshots to return. - int32 page_size = 2; + // Optional. Maximum number of snapshots to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // The value returned by the last `ListSnapshotsResponse`; indicates that this - // is a continuation of a prior `ListSnapshots` call, and that the system - // should return the next page of data. - string page_token = 3; + // Optional. The value returned by the last `ListSnapshotsResponse`; indicates + // that this is a continuation of a prior `ListSnapshots` call, and that the + // system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `ListSnapshots` method. message ListSnapshotsResponse { - // The resulting snapshots. - repeated Snapshot snapshots = 1; + // Optional. The resulting snapshots. + repeated Snapshot snapshots = 1 [(google.api.field_behavior) = OPTIONAL]; - // If not empty, indicates that there may be more snapshot that match the - // request; this value should be passed in a new `ListSnapshotsRequest`. - string next_page_token = 2; + // Optional. If not empty, indicates that there may be more snapshot that + // match the request; this value should be passed in a new + // `ListSnapshotsRequest`. + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request for the `DeleteSnapshot` method. @@ -1572,7 +1720,7 @@ message SeekRequest { ]; oneof target { - // The time to seek to. + // Optional. 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 @@ -1583,14 +1731,17 @@ message SeekRequest { // 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. - google.protobuf.Timestamp time = 2; - - // 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}`. - string snapshot = 3 [(google.api.resource_reference) = { - type: "pubsub.googleapis.com/Snapshot" - }]; + google.protobuf.Timestamp time = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. 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}`. + string snapshot = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "pubsub.googleapis.com/Snapshot" + } + ]; } } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index 32aa0d75cd63..bd17cf0f892c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -202,8 +202,8 @@ message CreateSchemaRequest { // The ID to use for the schema, which will become the final component of // the schema's resource name. // - // See https://cloud.google.com/pubsub/docs/admin#resource_names for resource - // name constraints. + // See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for + // resource name constraints. string schema_id = 3; } From 820be6f386d9b837880d2b26cecbacfd32b7b1a2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 26 Jan 2024 18:05:53 +0100 Subject: [PATCH 1666/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.37.0 (#1878) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a57a7f99d95e..038b328af54c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.36.0 + 2.37.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 842cbf9ed55f..308cc1e534f0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.36.0 + 2.37.0 com.google.cloud From 5320664d3d9f410d3ddc76d7f2cc0c6d309c3786 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:00:28 +0000 Subject: [PATCH 1667/2363] chore(main): release 1.126.2 (#1879) :robot: I have created a release *beep* *boop* --- ## [1.126.2](https://togithub.com/googleapis/java-pubsub/compare/v1.126.1...v1.126.2) (2024-01-26) ### Bug Fixes * **deps:** Update the Java code generator (gapic-generator-java) to 2.32.0 ([#1875](https://togithub.com/googleapis/java-pubsub/issues/1875)) ([6dace93](https://togithub.com/googleapis/java-pubsub/commit/6dace930c83521bc154d168d900c12e87df0f762)) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.37.0 ([#1878](https://togithub.com/googleapis/java-pubsub/issues/1878)) ([820be6f](https://togithub.com/googleapis/java-pubsub/commit/820be6f386d9b837880d2b26cecbacfd32b7b1a2)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 46203e22e7e1..5a883226aef7 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.126.2](https://github.com/googleapis/java-pubsub/compare/v1.126.1...v1.126.2) (2024-01-26) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.32.0 ([#1875](https://github.com/googleapis/java-pubsub/issues/1875)) ([0aac3e4](https://github.com/googleapis/java-pubsub/commit/0aac3e4c9c5671ce8f3b98056cc3710cd5ca9d07)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.37.0 ([#1878](https://github.com/googleapis/java-pubsub/issues/1878)) ([16dee8b](https://github.com/googleapis/java-pubsub/commit/16dee8bce115f59d8518ca1ae0e39dd87d81f802)) + ## [1.126.1](https://github.com/googleapis/java-pubsub/compare/v1.126.0...v1.126.1) (2024-01-25) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a020e128cc18..290a760e6420 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.2-SNAPSHOT + 1.126.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.2-SNAPSHOT + 1.126.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d588ee783af4..c2d790d87bcc 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.2-SNAPSHOT + 1.126.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.2-SNAPSHOT + 1.126.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 722836773329..378bdfeafcea 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.2-SNAPSHOT + 1.126.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 719b2d735c62..5fd62cff7ce8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.2-SNAPSHOT + 1.126.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 com.google.cloud google-cloud-pubsub - 1.126.2-SNAPSHOT + 1.126.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2f649852f424..53045daa1a3b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2-SNAPSHOT + 1.108.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.2-SNAPSHOT + 1.126.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 308cc1e534f0..8ec9a62451f3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.2-SNAPSHOT + 1.126.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 64ecc9876bf2..743e4d8f8508 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.1:1.126.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.1:1.108.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.1:1.108.2-SNAPSHOT +google-cloud-pubsub:1.126.2:1.126.2 +grpc-google-cloud-pubsub-v1:1.108.2:1.108.2 +proto-google-cloud-pubsub-v1:1.108.2:1.108.2 From f6e37d57fa95ad7232fe9d7f278ed600fdfd8a15 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:14:15 +0000 Subject: [PATCH 1668/2363] chore(main): release 1.126.3-SNAPSHOT (#1880) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 290a760e6420..b8d3fc0a38a3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.2 + 1.126.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c2d790d87bcc..14dca02b04af 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.2 + 1.126.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 378bdfeafcea..686abc57808f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.2 + 1.126.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5fd62cff7ce8..628287c8ee02 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.2 + 1.126.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 53045daa1a3b..581378af5cde 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.2 + 1.108.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.2 + 1.126.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8ec9a62451f3..965d9d592786 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 743e4d8f8508..fc723dc08a19 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.2:1.126.2 -grpc-google-cloud-pubsub-v1:1.108.2:1.108.2 -proto-google-cloud-pubsub-v1:1.108.2:1.108.2 +google-cloud-pubsub:1.126.2:1.126.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.2:1.108.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.2:1.108.3-SNAPSHOT From e72ab31146241c0a6d56394403bb80193f2efb84 Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Tue, 30 Jan 2024 14:02:10 -0500 Subject: [PATCH 1669/2363] chore: remove obsolete release job configs (#1870) --- java-pubsub/.kokoro/release/bump_snapshot.cfg | 53 -- java-pubsub/.kokoro/release/bump_snapshot.sh | 30 -- java-pubsub/.kokoro/release/common.cfg | 49 -- java-pubsub/.kokoro/release/common.sh | 50 -- java-pubsub/.kokoro/release/drop.cfg | 6 - java-pubsub/.kokoro/release/drop.sh | 32 -- java-pubsub/.kokoro/release/promote.cfg | 6 - java-pubsub/.kokoro/release/promote.sh | 34 -- .../.kokoro/release/publish_javadoc.cfg | 23 - .../.kokoro/release/publish_javadoc.sh | 53 -- .../.kokoro/release/publish_javadoc11.cfg | 30 -- .../.kokoro/release/publish_javadoc11.sh | 63 --- java-pubsub/.kokoro/release/snapshot.cfg | 6 - java-pubsub/.kokoro/release/snapshot.sh | 33 -- java-pubsub/.kokoro/release/stage.cfg | 19 - java-pubsub/.kokoro/release/stage.sh | 47 -- java-pubsub/.kokoro/requirements.in | 6 - java-pubsub/.kokoro/requirements.txt | 491 ------------------ java-pubsub/owlbot.py | 2 + 19 files changed, 2 insertions(+), 1031 deletions(-) delete mode 100644 java-pubsub/.kokoro/release/bump_snapshot.cfg delete mode 100755 java-pubsub/.kokoro/release/bump_snapshot.sh delete mode 100644 java-pubsub/.kokoro/release/common.cfg delete mode 100755 java-pubsub/.kokoro/release/common.sh delete mode 100644 java-pubsub/.kokoro/release/drop.cfg delete mode 100755 java-pubsub/.kokoro/release/drop.sh delete mode 100644 java-pubsub/.kokoro/release/promote.cfg delete mode 100755 java-pubsub/.kokoro/release/promote.sh delete mode 100644 java-pubsub/.kokoro/release/publish_javadoc.cfg delete mode 100755 java-pubsub/.kokoro/release/publish_javadoc.sh delete mode 100644 java-pubsub/.kokoro/release/publish_javadoc11.cfg delete mode 100755 java-pubsub/.kokoro/release/publish_javadoc11.sh delete mode 100644 java-pubsub/.kokoro/release/snapshot.cfg delete mode 100755 java-pubsub/.kokoro/release/snapshot.sh delete mode 100644 java-pubsub/.kokoro/release/stage.cfg delete mode 100755 java-pubsub/.kokoro/release/stage.sh delete mode 100644 java-pubsub/.kokoro/requirements.in delete mode 100644 java-pubsub/.kokoro/requirements.txt diff --git a/java-pubsub/.kokoro/release/bump_snapshot.cfg b/java-pubsub/.kokoro/release/bump_snapshot.cfg deleted file mode 100644 index a2a5982a8190..000000000000 --- a/java-pubsub/.kokoro/release/bump_snapshot.cfg +++ /dev/null @@ -1,53 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-pubsub/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/bump_snapshot.sh" -} - -# tokens used by release-please to keep an up-to-date release PR. -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-key-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-token-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-url-release-please" - } - } -} diff --git a/java-pubsub/.kokoro/release/bump_snapshot.sh b/java-pubsub/.kokoro/release/bump_snapshot.sh deleted file mode 100755 index bf54b4900f6f..000000000000 --- a/java-pubsub/.kokoro/release/bump_snapshot.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -export NPM_CONFIG_PREFIX=/home/node/.npm-global - -if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then - # Groom the snapshot release PR immediately after publishing a release - npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ - --repo-url=googleapis/java-pubsub \ - --package-name="pubsub" \ - --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ - --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ - --snapshot \ - --release-type=java-auth-yoshi -fi diff --git a/java-pubsub/.kokoro/release/common.cfg b/java-pubsub/.kokoro/release/common.cfg deleted file mode 100644 index 7eeae74d53e5..000000000000 --- a/java-pubsub/.kokoro/release/common.cfg +++ /dev/null @@ -1,49 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-pubsub/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-keyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-passphrase" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-pubkeyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "sonatype-credentials" - } - } -} diff --git a/java-pubsub/.kokoro/release/common.sh b/java-pubsub/.kokoro/release/common.sh deleted file mode 100755 index 7f78ee414faf..000000000000 --- a/java-pubsub/.kokoro/release/common.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Get secrets from keystore and set and environment variables -setup_environment_secrets() { - export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase) - export GPG_TTY=$(tty) - export GPG_HOMEDIR=/gpg - mkdir $GPG_HOMEDIR - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-keyring $GPG_HOMEDIR/secring.gpg - export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f1 -d'|') - export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f2 -d'|') -} - -create_settings_xml_file() { - echo " - - - ossrh - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-staging - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-snapshots - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - -" > $1 -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/release/drop.cfg b/java-pubsub/.kokoro/release/drop.cfg deleted file mode 100644 index fa56231bdddd..000000000000 --- a/java-pubsub/.kokoro/release/drop.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/drop.sh" -} diff --git a/java-pubsub/.kokoro/release/drop.sh b/java-pubsub/.kokoro/release/drop.sh deleted file mode 100755 index 742ec1a88600..000000000000 --- a/java-pubsub/.kokoro/release/drop.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:drop -B \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/java-pubsub/.kokoro/release/promote.cfg b/java-pubsub/.kokoro/release/promote.cfg deleted file mode 100644 index 08d54e6ab17b..000000000000 --- a/java-pubsub/.kokoro/release/promote.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/promote.sh" -} diff --git a/java-pubsub/.kokoro/release/promote.sh b/java-pubsub/.kokoro/release/promote.sh deleted file mode 100755 index 3cac3d8a97d7..000000000000 --- a/java-pubsub/.kokoro/release/promote.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh - -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/java-pubsub/.kokoro/release/publish_javadoc.cfg b/java-pubsub/.kokoro/release/publish_javadoc.cfg deleted file mode 100644 index 9e3e80619ee1..000000000000 --- a/java-pubsub/.kokoro/release/publish_javadoc.cfg +++ /dev/null @@ -1,23 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/doc-templates/" - -env_vars: { - key: "STAGING_BUCKET" - value: "docs-staging" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/publish_javadoc.sh" -} - - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} diff --git a/java-pubsub/.kokoro/release/publish_javadoc.sh b/java-pubsub/.kokoro/release/publish_javadoc.sh deleted file mode 100755 index 2cf98c0c5211..000000000000 --- a/java-pubsub/.kokoro/release/publish_javadoc.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET}" ]]; then - echo "Need to set STAGING_BUCKET environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-pubsub -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# build the docs -mvn site -B -q - -pushd target/site/apidocs - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET} diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.cfg b/java-pubsub/.kokoro/release/publish_javadoc11.cfg deleted file mode 100644 index f56e0021b4b2..000000000000 --- a/java-pubsub/.kokoro/release/publish_javadoc11.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# cloud-rad production -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2" -} - -# Configure the docker image for kokoro-trampoline -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/publish_javadoc11.sh" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} - -# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" diff --git a/java-pubsub/.kokoro/release/publish_javadoc11.sh b/java-pubsub/.kokoro/release/publish_javadoc11.sh deleted file mode 100755 index 680a215f327d..000000000000 --- a/java-pubsub/.kokoro/release/publish_javadoc11.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-pubsub -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# cloud RAD generation -mvn clean javadoc:aggregate -B -q -P docFX -# include CHANGELOG -cp CHANGELOG.md target/docfx-yml/history.md - -pushd target/docfx-yml - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --xrefs devsite://java/gax \ - --xrefs devsite://java/google-cloud-core \ - --xrefs devsite://java/api-common \ - --xrefs devsite://java/proto-google-common-protos \ - --xrefs devsite://java/google-api-client \ - --xrefs devsite://java/google-http-client \ - --xrefs devsite://java/protobuf \ - --language java - -# upload yml to production bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx diff --git a/java-pubsub/.kokoro/release/snapshot.cfg b/java-pubsub/.kokoro/release/snapshot.cfg deleted file mode 100644 index 3c445f2dc424..000000000000 --- a/java-pubsub/.kokoro/release/snapshot.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/snapshot.sh" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/release/snapshot.sh b/java-pubsub/.kokoro/release/snapshot.sh deleted file mode 100755 index 1f55b77024d8..000000000000 --- a/java-pubsub/.kokoro/release/snapshot.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -source $(dirname "$0")/common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -# ensure we're trying to push a snapshot (no-result returns non-zero exit code) -grep SNAPSHOT versions.txt - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} diff --git a/java-pubsub/.kokoro/release/stage.cfg b/java-pubsub/.kokoro/release/stage.cfg deleted file mode 100644 index 587130b55bd4..000000000000 --- a/java-pubsub/.kokoro/release/stage.cfg +++ /dev/null @@ -1,19 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/release/stage.sh" -} - -# Need to save the properties file -action { - define_artifacts { - regex: "github/java-pubsub/target/nexus-staging/staging/*.properties" - strip_prefix: "github/java-pubsub" - } -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" -} diff --git a/java-pubsub/.kokoro/release/stage.sh b/java-pubsub/.kokoro/release/stage.sh deleted file mode 100755 index 61e714d6ba56..000000000000 --- a/java-pubsub/.kokoro/release/stage.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Start the releasetool reporter -requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) -python3 -m pip install --require-hashes -r $requirementsFile -python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script - -source $(dirname "$0")/common.sh -source $(dirname "$0")/../common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -# attempt to stage 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DskipTests=true \ - -Dclirr.skip=true \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} - -if [[ -n "${AUTORELEASE_PR}" ]] -then - mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml -fi diff --git a/java-pubsub/.kokoro/requirements.in b/java-pubsub/.kokoro/requirements.in deleted file mode 100644 index 2092cc741d9c..000000000000 --- a/java-pubsub/.kokoro/requirements.in +++ /dev/null @@ -1,6 +0,0 @@ -gcp-docuploader -gcp-releasetool>=1.10.5 # required for compatibility with cryptography>=39.x -wheel -setuptools -typing-extensions -click<8.1.0 \ No newline at end of file diff --git a/java-pubsub/.kokoro/requirements.txt b/java-pubsub/.kokoro/requirements.txt deleted file mode 100644 index 445c5c1f0929..000000000000 --- a/java-pubsub/.kokoro/requirements.txt +++ /dev/null @@ -1,491 +0,0 @@ -# -# This file is autogenerated by pip-compile with Python 3.9 -# by the following command: -# -# pip-compile requirements.in --generate-hashes --upgrade -# -attrs==23.1.0 \ - --hash=sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04 \ - --hash=sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015 - # via gcp-releasetool -cachetools==5.3.1 \ - --hash=sha256:95ef631eeaea14ba2e36f06437f36463aac3a096799e876ee55e5cdccb102590 \ - --hash=sha256:dce83f2d9b4e1f732a8cd44af8e8fab2dbe46201467fc98b3ef8f269092bf62b - # via google-auth -certifi==2023.7.22 \ - --hash=sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082 \ - --hash=sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9 - # via requests -cffi==1.15.1 \ - --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ - --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ - --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ - --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ - --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ - --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ - --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ - --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ - --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ - --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ - --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ - --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ - --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ - --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ - --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ - --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ - --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ - --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ - --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ - --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ - --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ - --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ - --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ - --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ - --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ - --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ - --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ - --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ - --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ - --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ - --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ - --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ - --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ - --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ - --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ - --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ - --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ - --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ - --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ - --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ - --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ - --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ - --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ - --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ - --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ - --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ - --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ - --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ - --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ - --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ - --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ - --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ - --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ - --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ - --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ - --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ - --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ - --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ - --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ - --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ - --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ - --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ - --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ - --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 - # via cryptography -charset-normalizer==3.2.0 \ - --hash=sha256:04e57ab9fbf9607b77f7d057974694b4f6b142da9ed4a199859d9d4d5c63fe96 \ - --hash=sha256:09393e1b2a9461950b1c9a45d5fd251dc7c6f228acab64da1c9c0165d9c7765c \ - --hash=sha256:0b87549028f680ca955556e3bd57013ab47474c3124dc069faa0b6545b6c9710 \ - --hash=sha256:1000fba1057b92a65daec275aec30586c3de2401ccdcd41f8a5c1e2c87078706 \ - --hash=sha256:1249cbbf3d3b04902ff081ffbb33ce3377fa6e4c7356f759f3cd076cc138d020 \ - --hash=sha256:1920d4ff15ce893210c1f0c0e9d19bfbecb7983c76b33f046c13a8ffbd570252 \ - --hash=sha256:193cbc708ea3aca45e7221ae58f0fd63f933753a9bfb498a3b474878f12caaad \ - --hash=sha256:1a100c6d595a7f316f1b6f01d20815d916e75ff98c27a01ae817439ea7726329 \ - --hash=sha256:1f30b48dd7fa1474554b0b0f3fdfdd4c13b5c737a3c6284d3cdc424ec0ffff3a \ - --hash=sha256:203f0c8871d5a7987be20c72442488a0b8cfd0f43b7973771640fc593f56321f \ - --hash=sha256:246de67b99b6851627d945db38147d1b209a899311b1305dd84916f2b88526c6 \ - --hash=sha256:2dee8e57f052ef5353cf608e0b4c871aee320dd1b87d351c28764fc0ca55f9f4 \ - --hash=sha256:2efb1bd13885392adfda4614c33d3b68dee4921fd0ac1d3988f8cbb7d589e72a \ - --hash=sha256:2f4ac36d8e2b4cc1aa71df3dd84ff8efbe3bfb97ac41242fbcfc053c67434f46 \ - --hash=sha256:3170c9399da12c9dc66366e9d14da8bf7147e1e9d9ea566067bbce7bb74bd9c2 \ - --hash=sha256:3b1613dd5aee995ec6d4c69f00378bbd07614702a315a2cf6c1d21461fe17c23 \ - --hash=sha256:3bb3d25a8e6c0aedd251753a79ae98a093c7e7b471faa3aa9a93a81431987ace \ - --hash=sha256:3bb7fda7260735efe66d5107fb7e6af6a7c04c7fce9b2514e04b7a74b06bf5dd \ - --hash=sha256:41b25eaa7d15909cf3ac4c96088c1f266a9a93ec44f87f1d13d4a0e86c81b982 \ - --hash=sha256:45de3f87179c1823e6d9e32156fb14c1927fcc9aba21433f088fdfb555b77c10 \ - --hash=sha256:46fb8c61d794b78ec7134a715a3e564aafc8f6b5e338417cb19fe9f57a5a9bf2 \ - --hash=sha256:48021783bdf96e3d6de03a6e39a1171ed5bd7e8bb93fc84cc649d11490f87cea \ - --hash=sha256:4957669ef390f0e6719db3613ab3a7631e68424604a7b448f079bee145da6e09 \ - --hash=sha256:5e86d77b090dbddbe78867a0275cb4df08ea195e660f1f7f13435a4649e954e5 \ - --hash=sha256:6339d047dab2780cc6220f46306628e04d9750f02f983ddb37439ca47ced7149 \ - --hash=sha256:681eb3d7e02e3c3655d1b16059fbfb605ac464c834a0c629048a30fad2b27489 \ - --hash=sha256:6c409c0deba34f147f77efaa67b8e4bb83d2f11c8806405f76397ae5b8c0d1c9 \ - --hash=sha256:7095f6fbfaa55defb6b733cfeb14efaae7a29f0b59d8cf213be4e7ca0b857b80 \ - --hash=sha256:70c610f6cbe4b9fce272c407dd9d07e33e6bf7b4aa1b7ffb6f6ded8e634e3592 \ - --hash=sha256:72814c01533f51d68702802d74f77ea026b5ec52793c791e2da806a3844a46c3 \ - --hash=sha256:7a4826ad2bd6b07ca615c74ab91f32f6c96d08f6fcc3902ceeedaec8cdc3bcd6 \ - --hash=sha256:7c70087bfee18a42b4040bb9ec1ca15a08242cf5867c58726530bdf3945672ed \ - --hash=sha256:855eafa5d5a2034b4621c74925d89c5efef61418570e5ef9b37717d9c796419c \ - --hash=sha256:8700f06d0ce6f128de3ccdbc1acaea1ee264d2caa9ca05daaf492fde7c2a7200 \ - --hash=sha256:89f1b185a01fe560bc8ae5f619e924407efca2191b56ce749ec84982fc59a32a \ - --hash=sha256:8b2c760cfc7042b27ebdb4a43a4453bd829a5742503599144d54a032c5dc7e9e \ - --hash=sha256:8c2f5e83493748286002f9369f3e6607c565a6a90425a3a1fef5ae32a36d749d \ - --hash=sha256:8e098148dd37b4ce3baca71fb394c81dc5d9c7728c95df695d2dca218edf40e6 \ - --hash=sha256:94aea8eff76ee6d1cdacb07dd2123a68283cb5569e0250feab1240058f53b623 \ - --hash=sha256:95eb302ff792e12aba9a8b8f8474ab229a83c103d74a750ec0bd1c1eea32e669 \ - --hash=sha256:9bd9b3b31adcb054116447ea22caa61a285d92e94d710aa5ec97992ff5eb7cf3 \ - --hash=sha256:9e608aafdb55eb9f255034709e20d5a83b6d60c054df0802fa9c9883d0a937aa \ - --hash=sha256:a103b3a7069b62f5d4890ae1b8f0597618f628b286b03d4bc9195230b154bfa9 \ - --hash=sha256:a386ebe437176aab38c041de1260cd3ea459c6ce5263594399880bbc398225b2 \ - --hash=sha256:a38856a971c602f98472050165cea2cdc97709240373041b69030be15047691f \ - --hash=sha256:a401b4598e5d3f4a9a811f3daf42ee2291790c7f9d74b18d75d6e21dda98a1a1 \ - --hash=sha256:a7647ebdfb9682b7bb97e2a5e7cb6ae735b1c25008a70b906aecca294ee96cf4 \ - --hash=sha256:aaf63899c94de41fe3cf934601b0f7ccb6b428c6e4eeb80da72c58eab077b19a \ - --hash=sha256:b0dac0ff919ba34d4df1b6131f59ce95b08b9065233446be7e459f95554c0dc8 \ - --hash=sha256:baacc6aee0b2ef6f3d308e197b5d7a81c0e70b06beae1f1fcacffdbd124fe0e3 \ - --hash=sha256:bf420121d4c8dce6b889f0e8e4ec0ca34b7f40186203f06a946fa0276ba54029 \ - --hash=sha256:c04a46716adde8d927adb9457bbe39cf473e1e2c2f5d0a16ceb837e5d841ad4f \ - --hash=sha256:c0b21078a4b56965e2b12f247467b234734491897e99c1d51cee628da9786959 \ - --hash=sha256:c1c76a1743432b4b60ab3358c937a3fe1341c828ae6194108a94c69028247f22 \ - --hash=sha256:c4983bf937209c57240cff65906b18bb35e64ae872da6a0db937d7b4af845dd7 \ - --hash=sha256:c4fb39a81950ec280984b3a44f5bd12819953dc5fa3a7e6fa7a80db5ee853952 \ - --hash=sha256:c57921cda3a80d0f2b8aec7e25c8aa14479ea92b5b51b6876d975d925a2ea346 \ - --hash=sha256:c8063cf17b19661471ecbdb3df1c84f24ad2e389e326ccaf89e3fb2484d8dd7e \ - --hash=sha256:ccd16eb18a849fd8dcb23e23380e2f0a354e8daa0c984b8a732d9cfaba3a776d \ - --hash=sha256:cd6dbe0238f7743d0efe563ab46294f54f9bc8f4b9bcf57c3c666cc5bc9d1299 \ - --hash=sha256:d62e51710986674142526ab9f78663ca2b0726066ae26b78b22e0f5e571238dd \ - --hash=sha256:db901e2ac34c931d73054d9797383d0f8009991e723dab15109740a63e7f902a \ - --hash=sha256:e03b8895a6990c9ab2cdcd0f2fe44088ca1c65ae592b8f795c3294af00a461c3 \ - --hash=sha256:e1c8a2f4c69e08e89632defbfabec2feb8a8d99edc9f89ce33c4b9e36ab63037 \ - --hash=sha256:e4b749b9cc6ee664a3300bb3a273c1ca8068c46be705b6c31cf5d276f8628a94 \ - --hash=sha256:e6a5bf2cba5ae1bb80b154ed68a3cfa2fa00fde979a7f50d6598d3e17d9ac20c \ - --hash=sha256:e857a2232ba53ae940d3456f7533ce6ca98b81917d47adc3c7fd55dad8fab858 \ - --hash=sha256:ee4006268ed33370957f55bf2e6f4d263eaf4dc3cfc473d1d90baff6ed36ce4a \ - --hash=sha256:eef9df1eefada2c09a5e7a40991b9fc6ac6ef20b1372abd48d2794a316dc0449 \ - --hash=sha256:f058f6963fd82eb143c692cecdc89e075fa0828db2e5b291070485390b2f1c9c \ - --hash=sha256:f25c229a6ba38a35ae6e25ca1264621cc25d4d38dca2942a7fce0b67a4efe918 \ - --hash=sha256:f2a1d0fd4242bd8643ce6f98927cf9c04540af6efa92323e9d3124f57727bfc1 \ - --hash=sha256:f7560358a6811e52e9c4d142d497f1a6e10103d3a6881f18d04dbce3729c0e2c \ - --hash=sha256:f779d3ad205f108d14e99bb3859aa7dd8e9c68874617c72354d7ecaec2a054ac \ - --hash=sha256:f87f746ee241d30d6ed93969de31e5ffd09a2961a051e60ae6bddde9ec3583aa - # via requests -click==8.0.4 \ - --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ - --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb - # via - # -r requirements.in - # gcp-docuploader - # gcp-releasetool -colorlog==6.7.0 \ - --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ - --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 - # via gcp-docuploader -cryptography==41.0.6 \ - --hash=sha256:068bc551698c234742c40049e46840843f3d98ad7ce265fd2bd4ec0d11306596 \ - --hash=sha256:0f27acb55a4e77b9be8d550d762b0513ef3fc658cd3eb15110ebbcbd626db12c \ - --hash=sha256:2132d5865eea673fe6712c2ed5fb4fa49dba10768bb4cc798345748380ee3660 \ - --hash=sha256:3288acccef021e3c3c10d58933f44e8602cf04dba96d9796d70d537bb2f4bbc4 \ - --hash=sha256:35f3f288e83c3f6f10752467c48919a7a94b7d88cc00b0668372a0d2ad4f8ead \ - --hash=sha256:398ae1fc711b5eb78e977daa3cbf47cec20f2c08c5da129b7a296055fbb22aed \ - --hash=sha256:422e3e31d63743855e43e5a6fcc8b4acab860f560f9321b0ee6269cc7ed70cc3 \ - --hash=sha256:48783b7e2bef51224020efb61b42704207dde583d7e371ef8fc2a5fb6c0aabc7 \ - --hash=sha256:4d03186af98b1c01a4eda396b137f29e4e3fb0173e30f885e27acec8823c1b09 \ - --hash=sha256:5daeb18e7886a358064a68dbcaf441c036cbdb7da52ae744e7b9207b04d3908c \ - --hash=sha256:60e746b11b937911dc70d164060d28d273e31853bb359e2b2033c9e93e6f3c43 \ - --hash=sha256:742ae5e9a2310e9dade7932f9576606836ed174da3c7d26bc3d3ab4bd49b9f65 \ - --hash=sha256:7e00fb556bda398b99b0da289ce7053639d33b572847181d6483ad89835115f6 \ - --hash=sha256:85abd057699b98fce40b41737afb234fef05c67e116f6f3650782c10862c43da \ - --hash=sha256:8efb2af8d4ba9dbc9c9dd8f04d19a7abb5b49eab1f3694e7b5a16a5fc2856f5c \ - --hash=sha256:ae236bb8760c1e55b7a39b6d4d32d2279bc6c7c8500b7d5a13b6fb9fc97be35b \ - --hash=sha256:afda76d84b053923c27ede5edc1ed7d53e3c9f475ebaf63c68e69f1403c405a8 \ - --hash=sha256:b27a7fd4229abef715e064269d98a7e2909ebf92eb6912a9603c7e14c181928c \ - --hash=sha256:b648fe2a45e426aaee684ddca2632f62ec4613ef362f4d681a9a6283d10e079d \ - --hash=sha256:c5a550dc7a3b50b116323e3d376241829fd326ac47bc195e04eb33a8170902a9 \ - --hash=sha256:da46e2b5df770070412c46f87bac0849b8d685c5f2679771de277a422c7d0b86 \ - --hash=sha256:f39812f70fc5c71a15aa3c97b2bbe213c3f2a460b79bd21c40d033bb34a9bf36 \ - --hash=sha256:ff369dd19e8fe0528b02e8df9f2aeb2479f89b1270d90f96a63500afe9af5cae - # via - # gcp-releasetool - # secretstorage -gcp-docuploader==0.6.5 \ - --hash=sha256:30221d4ac3e5a2b9c69aa52fdbef68cc3f27d0e6d0d90e220fc024584b8d2318 \ - --hash=sha256:b7458ef93f605b9d46a4bf3a8dc1755dad1f31d030c8679edf304e343b347eea - # via -r requirements.in -gcp-releasetool==1.16.0 \ - --hash=sha256:27bf19d2e87aaa884096ff941aa3c592c482be3d6a2bfe6f06afafa6af2353e3 \ - --hash=sha256:a316b197a543fd036209d0caba7a8eb4d236d8e65381c80cbc6d7efaa7606d63 - # via -r requirements.in -google-api-core==2.11.1 \ - --hash=sha256:25d29e05a0058ed5f19c61c0a78b1b53adea4d9364b464d014fbda941f6d1c9a \ - --hash=sha256:d92a5a92dc36dd4f4b9ee4e55528a90e432b059f93aee6ad857f9de8cc7ae94a - # via - # google-cloud-core - # google-cloud-storage -google-auth==2.22.0 \ - --hash=sha256:164cba9af4e6e4e40c3a4f90a1a6c12ee56f14c0b4868d1ca91b32826ab334ce \ - --hash=sha256:d61d1b40897407b574da67da1a833bdc10d5a11642566e506565d1b1a46ba873 - # via - # gcp-releasetool - # google-api-core - # google-cloud-core - # google-cloud-storage -google-cloud-core==2.3.3 \ - --hash=sha256:37b80273c8d7eee1ae816b3a20ae43585ea50506cb0e60f3cf5be5f87f1373cb \ - --hash=sha256:fbd11cad3e98a7e5b0343dc07cb1039a5ffd7a5bb96e1f1e27cee4bda4a90863 - # via google-cloud-storage -google-cloud-storage==2.10.0 \ - --hash=sha256:934b31ead5f3994e5360f9ff5750982c5b6b11604dc072bc452c25965e076dc7 \ - --hash=sha256:9433cf28801671de1c80434238fb1e7e4a1ba3087470e90f70c928ea77c2b9d7 - # via gcp-docuploader -google-crc32c==1.5.0 \ - --hash=sha256:024894d9d3cfbc5943f8f230e23950cd4906b2fe004c72e29b209420a1e6b05a \ - --hash=sha256:02c65b9817512edc6a4ae7c7e987fea799d2e0ee40c53ec573a692bee24de876 \ - --hash=sha256:02ebb8bf46c13e36998aeaad1de9b48f4caf545e91d14041270d9dca767b780c \ - --hash=sha256:07eb3c611ce363c51a933bf6bd7f8e3878a51d124acfc89452a75120bc436289 \ - --hash=sha256:1034d91442ead5a95b5aaef90dbfaca8633b0247d1e41621d1e9f9db88c36298 \ - --hash=sha256:116a7c3c616dd14a3de8c64a965828b197e5f2d121fedd2f8c5585c547e87b02 \ - --hash=sha256:19e0a019d2c4dcc5e598cd4a4bc7b008546b0358bd322537c74ad47a5386884f \ - --hash=sha256:1c7abdac90433b09bad6c43a43af253e688c9cfc1c86d332aed13f9a7c7f65e2 \ - --hash=sha256:1e986b206dae4476f41bcec1faa057851f3889503a70e1bdb2378d406223994a \ - --hash=sha256:272d3892a1e1a2dbc39cc5cde96834c236d5327e2122d3aaa19f6614531bb6eb \ - --hash=sha256:278d2ed7c16cfc075c91378c4f47924c0625f5fc84b2d50d921b18b7975bd210 \ - --hash=sha256:2ad40e31093a4af319dadf503b2467ccdc8f67c72e4bcba97f8c10cb078207b5 \ - --hash=sha256:2e920d506ec85eb4ba50cd4228c2bec05642894d4c73c59b3a2fe20346bd00ee \ - --hash=sha256:3359fc442a743e870f4588fcf5dcbc1bf929df1fad8fb9905cd94e5edb02e84c \ - --hash=sha256:37933ec6e693e51a5b07505bd05de57eee12f3e8c32b07da7e73669398e6630a \ - --hash=sha256:398af5e3ba9cf768787eef45c803ff9614cc3e22a5b2f7d7ae116df8b11e3314 \ - --hash=sha256:3b747a674c20a67343cb61d43fdd9207ce5da6a99f629c6e2541aa0e89215bcd \ - --hash=sha256:461665ff58895f508e2866824a47bdee72497b091c730071f2b7575d5762ab65 \ - --hash=sha256:4c6fdd4fccbec90cc8a01fc00773fcd5fa28db683c116ee3cb35cd5da9ef6c37 \ - --hash=sha256:5829b792bf5822fd0a6f6eb34c5f81dd074f01d570ed7f36aa101d6fc7a0a6e4 \ - --hash=sha256:596d1f98fc70232fcb6590c439f43b350cb762fb5d61ce7b0e9db4539654cc13 \ - --hash=sha256:5ae44e10a8e3407dbe138984f21e536583f2bba1be9491239f942c2464ac0894 \ - --hash=sha256:635f5d4dd18758a1fbd1049a8e8d2fee4ffed124462d837d1a02a0e009c3ab31 \ - --hash=sha256:64e52e2b3970bd891309c113b54cf0e4384762c934d5ae56e283f9a0afcd953e \ - --hash=sha256:66741ef4ee08ea0b2cc3c86916ab66b6aef03768525627fd6a1b34968b4e3709 \ - --hash=sha256:67b741654b851abafb7bc625b6d1cdd520a379074e64b6a128e3b688c3c04740 \ - --hash=sha256:6ac08d24c1f16bd2bf5eca8eaf8304812f44af5cfe5062006ec676e7e1d50afc \ - --hash=sha256:6f998db4e71b645350b9ac28a2167e6632c239963ca9da411523bb439c5c514d \ - --hash=sha256:72218785ce41b9cfd2fc1d6a017dc1ff7acfc4c17d01053265c41a2c0cc39b8c \ - --hash=sha256:74dea7751d98034887dbd821b7aae3e1d36eda111d6ca36c206c44478035709c \ - --hash=sha256:759ce4851a4bb15ecabae28f4d2e18983c244eddd767f560165563bf9aefbc8d \ - --hash=sha256:77e2fd3057c9d78e225fa0a2160f96b64a824de17840351b26825b0848022906 \ - --hash=sha256:7c074fece789b5034b9b1404a1f8208fc2d4c6ce9decdd16e8220c5a793e6f61 \ - --hash=sha256:7c42c70cd1d362284289c6273adda4c6af8039a8ae12dc451dcd61cdabb8ab57 \ - --hash=sha256:7f57f14606cd1dd0f0de396e1e53824c371e9544a822648cd76c034d209b559c \ - --hash=sha256:83c681c526a3439b5cf94f7420471705bbf96262f49a6fe546a6db5f687a3d4a \ - --hash=sha256:8485b340a6a9e76c62a7dce3c98e5f102c9219f4cfbf896a00cf48caf078d438 \ - --hash=sha256:84e6e8cd997930fc66d5bb4fde61e2b62ba19d62b7abd7a69920406f9ecca946 \ - --hash=sha256:89284716bc6a5a415d4eaa11b1726d2d60a0cd12aadf5439828353662ede9dd7 \ - --hash=sha256:8b87e1a59c38f275c0e3676fc2ab6d59eccecfd460be267ac360cc31f7bcde96 \ - --hash=sha256:8f24ed114432de109aa9fd317278518a5af2d31ac2ea6b952b2f7782b43da091 \ - --hash=sha256:98cb4d057f285bd80d8778ebc4fde6b4d509ac3f331758fb1528b733215443ae \ - --hash=sha256:998679bf62b7fb599d2878aa3ed06b9ce688b8974893e7223c60db155f26bd8d \ - --hash=sha256:9ba053c5f50430a3fcfd36f75aff9caeba0440b2d076afdb79a318d6ca245f88 \ - --hash=sha256:9c99616c853bb585301df6de07ca2cadad344fd1ada6d62bb30aec05219c45d2 \ - --hash=sha256:a1fd716e7a01f8e717490fbe2e431d2905ab8aa598b9b12f8d10abebb36b04dd \ - --hash=sha256:a2355cba1f4ad8b6988a4ca3feed5bff33f6af2d7f134852cf279c2aebfde541 \ - --hash=sha256:b1f8133c9a275df5613a451e73f36c2aea4fe13c5c8997e22cf355ebd7bd0728 \ - --hash=sha256:b8667b48e7a7ef66afba2c81e1094ef526388d35b873966d8a9a447974ed9178 \ - --hash=sha256:ba1eb1843304b1e5537e1fca632fa894d6f6deca8d6389636ee5b4797affb968 \ - --hash=sha256:be82c3c8cfb15b30f36768797a640e800513793d6ae1724aaaafe5bf86f8f346 \ - --hash=sha256:c02ec1c5856179f171e032a31d6f8bf84e5a75c45c33b2e20a3de353b266ebd8 \ - --hash=sha256:c672d99a345849301784604bfeaeba4db0c7aae50b95be04dd651fd2a7310b93 \ - --hash=sha256:c6c777a480337ac14f38564ac88ae82d4cd238bf293f0a22295b66eb89ffced7 \ - --hash=sha256:cae0274952c079886567f3f4f685bcaf5708f0a23a5f5216fdab71f81a6c0273 \ - --hash=sha256:cd67cf24a553339d5062eff51013780a00d6f97a39ca062781d06b3a73b15462 \ - --hash=sha256:d3515f198eaa2f0ed49f8819d5732d70698c3fa37384146079b3799b97667a94 \ - --hash=sha256:d5280312b9af0976231f9e317c20e4a61cd2f9629b7bfea6a693d1878a264ebd \ - --hash=sha256:de06adc872bcd8c2a4e0dc51250e9e65ef2ca91be023b9d13ebd67c2ba552e1e \ - --hash=sha256:e1674e4307fa3024fc897ca774e9c7562c957af85df55efe2988ed9056dc4e57 \ - --hash=sha256:e2096eddb4e7c7bdae4bd69ad364e55e07b8316653234a56552d9c988bd2d61b \ - --hash=sha256:e560628513ed34759456a416bf86b54b2476c59144a9138165c9a1575801d0d9 \ - --hash=sha256:edfedb64740750e1a3b16152620220f51d58ff1b4abceb339ca92e934775c27a \ - --hash=sha256:f13cae8cc389a440def0c8c52057f37359014ccbc9dc1f0827936bcd367c6100 \ - --hash=sha256:f314013e7dcd5cf45ab1945d92e713eec788166262ae8deb2cfacd53def27325 \ - --hash=sha256:f583edb943cf2e09c60441b910d6a20b4d9d626c75a36c8fcac01a6c96c01183 \ - --hash=sha256:fd8536e902db7e365f49e7d9029283403974ccf29b13fc7028b97e2295b33556 \ - --hash=sha256:fe70e325aa68fa4b5edf7d1a4b6f691eb04bbccac0ace68e34820d283b5f80d4 - # via google-resumable-media -google-resumable-media==2.5.0 \ - --hash=sha256:218931e8e2b2a73a58eb354a288e03a0fd5fb1c4583261ac6e4c078666468c93 \ - --hash=sha256:da1bd943e2e114a56d85d6848497ebf9be6a14d3db23e9fc57581e7c3e8170ec - # via google-cloud-storage -googleapis-common-protos==1.59.1 \ - --hash=sha256:0cbedb6fb68f1c07e18eb4c48256320777707e7d0c55063ae56c15db3224a61e \ - --hash=sha256:b35d530fe825fb4227857bc47ad84c33c809ac96f312e13182bdeaa2abe1178a - # via google-api-core -idna==3.4 \ - --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ - --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 - # via requests -importlib-metadata==6.8.0 \ - --hash=sha256:3ebb78df84a805d7698245025b975d9d67053cd94c79245ba4b3eb694abe68bb \ - --hash=sha256:dbace7892d8c0c4ac1ad096662232f831d4e64f4c4545bd53016a3e9d4654743 - # via keyring -jaraco-classes==3.3.0 \ - --hash=sha256:10afa92b6743f25c0cf5f37c6bb6e18e2c5bb84a16527ccfc0040ea377e7aaeb \ - --hash=sha256:c063dd08e89217cee02c8d5e5ec560f2c8ce6cdc2fcdc2e68f7b2e5547ed3621 - # via keyring -jeepney==0.8.0 \ - --hash=sha256:5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806 \ - --hash=sha256:c0a454ad016ca575060802ee4d590dd912e35c122fa04e70306de3d076cce755 - # via - # keyring - # secretstorage -jinja2==3.1.2 \ - --hash=sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852 \ - --hash=sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61 - # via gcp-releasetool -keyring==24.2.0 \ - --hash=sha256:4901caaf597bfd3bbd78c9a0c7c4c29fcd8310dab2cffefe749e916b6527acd6 \ - --hash=sha256:ca0746a19ec421219f4d713f848fa297a661a8a8c1504867e55bfb5e09091509 - # via gcp-releasetool -markupsafe==2.1.3 \ - --hash=sha256:05fb21170423db021895e1ea1e1f3ab3adb85d1c2333cbc2310f2a26bc77272e \ - --hash=sha256:0a4e4a1aff6c7ac4cd55792abf96c915634c2b97e3cc1c7129578aa68ebd754e \ - --hash=sha256:10bbfe99883db80bdbaff2dcf681dfc6533a614f700da1287707e8a5d78a8431 \ - --hash=sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686 \ - --hash=sha256:1577735524cdad32f9f694208aa75e422adba74f1baee7551620e43a3141f559 \ - --hash=sha256:1b40069d487e7edb2676d3fbdb2b0829ffa2cd63a2ec26c4938b2d34391b4ecc \ - --hash=sha256:282c2cb35b5b673bbcadb33a585408104df04f14b2d9b01d4c345a3b92861c2c \ - --hash=sha256:2c1b19b3aaacc6e57b7e25710ff571c24d6c3613a45e905b1fde04d691b98ee0 \ - --hash=sha256:2ef12179d3a291be237280175b542c07a36e7f60718296278d8593d21ca937d4 \ - --hash=sha256:338ae27d6b8745585f87218a3f23f1512dbf52c26c28e322dbe54bcede54ccb9 \ - --hash=sha256:3c0fae6c3be832a0a0473ac912810b2877c8cb9d76ca48de1ed31e1c68386575 \ - --hash=sha256:3fd4abcb888d15a94f32b75d8fd18ee162ca0c064f35b11134be77050296d6ba \ - --hash=sha256:42de32b22b6b804f42c5d98be4f7e5e977ecdd9ee9b660fda1a3edf03b11792d \ - --hash=sha256:504b320cd4b7eff6f968eddf81127112db685e81f7e36e75f9f84f0df46041c3 \ - --hash=sha256:525808b8019e36eb524b8c68acdd63a37e75714eac50e988180b169d64480a00 \ - --hash=sha256:56d9f2ecac662ca1611d183feb03a3fa4406469dafe241673d521dd5ae92a155 \ - --hash=sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac \ - --hash=sha256:65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52 \ - --hash=sha256:68e78619a61ecf91e76aa3e6e8e33fc4894a2bebe93410754bd28fce0a8a4f9f \ - --hash=sha256:69c0f17e9f5a7afdf2cc9fb2d1ce6aabdb3bafb7f38017c0b77862bcec2bbad8 \ - --hash=sha256:6b2b56950d93e41f33b4223ead100ea0fe11f8e6ee5f641eb753ce4b77a7042b \ - --hash=sha256:787003c0ddb00500e49a10f2844fac87aa6ce977b90b0feaaf9de23c22508b24 \ - --hash=sha256:7ef3cb2ebbf91e330e3bb937efada0edd9003683db6b57bb108c4001f37a02ea \ - --hash=sha256:8023faf4e01efadfa183e863fefde0046de576c6f14659e8782065bcece22198 \ - --hash=sha256:8758846a7e80910096950b67071243da3e5a20ed2546e6392603c096778d48e0 \ - --hash=sha256:8afafd99945ead6e075b973fefa56379c5b5c53fd8937dad92c662da5d8fd5ee \ - --hash=sha256:8c41976a29d078bb235fea9b2ecd3da465df42a562910f9022f1a03107bd02be \ - --hash=sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2 \ - --hash=sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707 \ - --hash=sha256:962f82a3086483f5e5f64dbad880d31038b698494799b097bc59c2edf392fce6 \ - --hash=sha256:9dcdfd0eaf283af041973bff14a2e143b8bd64e069f4c383416ecd79a81aab58 \ - --hash=sha256:aa7bd130efab1c280bed0f45501b7c8795f9fdbeb02e965371bbef3523627779 \ - --hash=sha256:ab4a0df41e7c16a1392727727e7998a467472d0ad65f3ad5e6e765015df08636 \ - --hash=sha256:ad9e82fb8f09ade1c3e1b996a6337afac2b8b9e365f926f5a61aacc71adc5b3c \ - --hash=sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad \ - --hash=sha256:b076b6226fb84157e3f7c971a47ff3a679d837cf338547532ab866c57930dbee \ - --hash=sha256:b7ff0f54cb4ff66dd38bebd335a38e2c22c41a8ee45aa608efc890ac3e3931bc \ - --hash=sha256:bfce63a9e7834b12b87c64d6b155fdd9b3b96191b6bd334bf37db7ff1fe457f2 \ - --hash=sha256:c011a4149cfbcf9f03994ec2edffcb8b1dc2d2aede7ca243746df97a5d41ce48 \ - --hash=sha256:c9c804664ebe8f83a211cace637506669e7890fec1b4195b505c214e50dd4eb7 \ - --hash=sha256:ca379055a47383d02a5400cb0d110cef0a776fc644cda797db0c5696cfd7e18e \ - --hash=sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b \ - --hash=sha256:cd0f502fe016460680cd20aaa5a76d241d6f35a1c3350c474bac1273803893fa \ - --hash=sha256:ceb01949af7121f9fc39f7d27f91be8546f3fb112c608bc4029aef0bab86a2a5 \ - --hash=sha256:d080e0a5eb2529460b30190fcfcc4199bd7f827663f858a226a81bc27beaa97e \ - --hash=sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb \ - --hash=sha256:df0be2b576a7abbf737b1575f048c23fb1d769f267ec4358296f31c2479db8f9 \ - --hash=sha256:e09031c87a1e51556fdcb46e5bd4f59dfb743061cf93c4d6831bf894f125eb57 \ - --hash=sha256:e4dd52d80b8c83fdce44e12478ad2e85c64ea965e75d66dbeafb0a3e77308fcc \ - --hash=sha256:fec21693218efe39aa7f8599346e90c705afa52c5b31ae019b2e57e8f6542bb2 - # via jinja2 -more-itertools==9.1.0 \ - --hash=sha256:cabaa341ad0389ea83c17a94566a53ae4c9d07349861ecb14dc6d0345cf9ac5d \ - --hash=sha256:d2bc7f02446e86a68911e58ded76d6561eea00cddfb2a91e7019bbb586c799f3 - # via jaraco-classes -packaging==23.1 \ - --hash=sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61 \ - --hash=sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f - # via gcp-releasetool -protobuf==3.20.3 \ - --hash=sha256:03038ac1cfbc41aa21f6afcbcd357281d7521b4157926f30ebecc8d4ea59dcb7 \ - --hash=sha256:28545383d61f55b57cf4df63eebd9827754fd2dc25f80c5253f9184235db242c \ - --hash=sha256:2e3427429c9cffebf259491be0af70189607f365c2f41c7c3764af6f337105f2 \ - --hash=sha256:398a9e0c3eaceb34ec1aee71894ca3299605fa8e761544934378bbc6c97de23b \ - --hash=sha256:44246bab5dd4b7fbd3c0c80b6f16686808fab0e4aca819ade6e8d294a29c7050 \ - --hash=sha256:447d43819997825d4e71bf5769d869b968ce96848b6479397e29fc24c4a5dfe9 \ - --hash=sha256:67a3598f0a2dcbc58d02dd1928544e7d88f764b47d4a286202913f0b2801c2e7 \ - --hash=sha256:74480f79a023f90dc6e18febbf7b8bac7508420f2006fabd512013c0c238f454 \ - --hash=sha256:819559cafa1a373b7096a482b504ae8a857c89593cf3a25af743ac9ecbd23480 \ - --hash=sha256:899dc660cd599d7352d6f10d83c95df430a38b410c1b66b407a6b29265d66469 \ - --hash=sha256:8c0c984a1b8fef4086329ff8dd19ac77576b384079247c770f29cc8ce3afa06c \ - --hash=sha256:9aae4406ea63d825636cc11ffb34ad3379335803216ee3a856787bcf5ccc751e \ - --hash=sha256:a7ca6d488aa8ff7f329d4c545b2dbad8ac31464f1d8b1c87ad1346717731e4db \ - --hash=sha256:b6cc7ba72a8850621bfec987cb72623e703b7fe2b9127a161ce61e61558ad905 \ - --hash=sha256:bf01b5720be110540be4286e791db73f84a2b721072a3711efff6c324cdf074b \ - --hash=sha256:c02ce36ec760252242a33967d51c289fd0e1c0e6e5cc9397e2279177716add86 \ - --hash=sha256:d9e4432ff660d67d775c66ac42a67cf2453c27cb4d738fc22cb53b5d84c135d4 \ - --hash=sha256:daa564862dd0d39c00f8086f88700fdbe8bc717e993a21e90711acfed02f2402 \ - --hash=sha256:de78575669dddf6099a8a0f46a27e82a1783c557ccc38ee620ed8cc96d3be7d7 \ - --hash=sha256:e64857f395505ebf3d2569935506ae0dfc4a15cb80dc25261176c784662cdcc4 \ - --hash=sha256:f4bd856d702e5b0d96a00ec6b307b0f51c1982c2bf9c0052cf9019e9a544ba99 \ - --hash=sha256:f4c42102bc82a51108e449cbb32b19b180022941c727bac0cfd50170341f16ee - # via - # gcp-docuploader - # gcp-releasetool - # google-api-core - # googleapis-common-protos -pyasn1==0.5.0 \ - --hash=sha256:87a2121042a1ac9358cabcaf1d07680ff97ee6404333bacca15f76aa8ad01a57 \ - --hash=sha256:97b7290ca68e62a832558ec3976f15cbf911bf5d7c7039d8b861c2a0ece69fde - # via - # pyasn1-modules - # rsa -pyasn1-modules==0.3.0 \ - --hash=sha256:5bd01446b736eb9d31512a30d46c1ac3395d676c6f3cafa4c03eb54b9925631c \ - --hash=sha256:d3ccd6ed470d9ffbc716be08bd90efbd44d0734bc9303818f7336070984a162d - # via google-auth -pycparser==2.21 \ - --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ - --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 - # via cffi -pyjwt==2.7.0 \ - --hash=sha256:ba2b425b15ad5ef12f200dc67dd56af4e26de2331f965c5439994dad075876e1 \ - --hash=sha256:bd6ca4a3c4285c1a2d4349e5a035fdf8fb94e04ccd0fcbe6ba289dae9cc3e074 - # via gcp-releasetool -pyperclip==1.8.2 \ - --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 - # via gcp-releasetool -python-dateutil==2.8.2 \ - --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ - --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 - # via gcp-releasetool -requests==2.31.0 \ - --hash=sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f \ - --hash=sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1 - # via - # gcp-releasetool - # google-api-core - # google-cloud-storage -rsa==4.9 \ - --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ - --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 - # via google-auth -secretstorage==3.3.3 \ - --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ - --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 - # via keyring -six==1.16.0 \ - --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ - --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 - # via - # gcp-docuploader - # google-auth - # python-dateutil -typing-extensions==4.7.1 \ - --hash=sha256:440d5dd3af93b060174bf433bccd69b0babc3b15b1a8dca43789fd7f61514b36 \ - --hash=sha256:b75ddc264f0ba5615db7ba217daeb99701ad295353c45f9e95963337ceeeffb2 - # via -r requirements.in -urllib3==1.26.18 \ - --hash=sha256:34b97092d7e0a3a8cf7cd10e386f401b3737364026c45e622aa02903dffe0f07 \ - --hash=sha256:f8ecc1bba5667413457c529ab955bf8c67b45db799d159066261719e328580a0 - # via - # google-auth - # requests -wheel==0.40.0 \ - --hash=sha256:cd1196f3faee2b31968d626e1731c94f99cbdb67cf5a46e4f5656cbee7738873 \ - --hash=sha256:d236b20e7cb522daf2390fa84c55eea81c5c30190f90f29ae2ca1ad8355bf247 - # via -r requirements.in -zipp==3.16.1 \ - --hash=sha256:0b37c326d826d5ca35f2b9685cd750292740774ef16190008b00a0227c256fe0 \ - --hash=sha256:857b158da2cbf427b376da1c24fd11faecbac5a4ac7523c3607f8a01f94c2ec0 - # via importlib-metadata - -# WARNING: The following packages were not pinned, but pip requires them to be -# pinned when the requirements file includes hashes and the requirement is not -# satisfied by a package already installed. Consider using the --allow-unsafe flag. -# setuptools diff --git a/java-pubsub/owlbot.py b/java-pubsub/owlbot.py index 69cab5df98d0..6cb015af0174 100644 --- a/java-pubsub/owlbot.py +++ b/java-pubsub/owlbot.py @@ -1210,5 +1210,7 @@ ".kokoro/build.sh", ".github/sync-repo-settings.yaml", ".github/blunderbuss.yml", + '.kokoro/requirements.in', + '.kokoro/requirements.txt' ] ) From c8b7ecbff180ffc547c19c06cb46db60b567df67 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 6 Feb 2024 18:11:38 -0500 Subject: [PATCH 1670/2363] chore: removing Kokoro - Against Pub/Sub Lite samples from required checks (#1894) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: removing Kokoro - Against Pub/Sub Lite samples from required checks The "Kokoro - Against Pub/Sub Lite samples" has been failing for a while. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/sync-repo-settings.yaml | 1 - java-pubsub/README.md | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 46e11116de9c..2cd50ab0010c 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -14,7 +14,6 @@ branchProtectionRules: - units (8) - units (11) - 'Kokoro - Test: Integration' - - Kokoro - Against Pub/Sub Lite samples - cla/google - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4f9b1de5213c..9873ea9d1631 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.30.0') +implementation platform('com.google.cloud:libraries-bom:26.31.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.2" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From 67426bdf31a0155198cb01315d7971c16aa159ef Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 6 Feb 2024 18:27:23 -0500 Subject: [PATCH 1671/2363] ci: unmanaged dependency check (#1892) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci: unmanaged dependency check This is is the implementation for the one I got your review in go/cloud-sdk-java-dependency-governance-design. This check will avoid accidentally adding a third-party dependency. b/320677249 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../workflows/unmanaged_dependency_check.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 java-pubsub/.github/workflows/unmanaged_dependency_check.yaml diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml new file mode 100644 index 000000000000..62c5fa4a0887 --- /dev/null +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -0,0 +1,22 @@ +on: + pull_request: +name: Unmanaged dependency check +jobs: + unmanaged_dependency_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + - name: Install modules + shell: bash + run: | + # No argument to build.sh installs the modules in local Maven + # repository + .kokoro/build.sh + - name: Unmanaged dependency check + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@unmanaged-dependencies-check-latest + with: + bom-path: google-cloud-pubsub-bom/pom.xml From 3adecdc069388b46bb4c54e1fd91d4e0f342be2c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 7 Feb 2024 05:12:03 +0100 Subject: [PATCH 1672/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.32.0 (#1885) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 038b328af54c..ab1e205bffba 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.31.0 + 2.32.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 965d9d592786..c02e9627fcbb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.31.0 + 2.32.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 26215fd06791..8b63238f903c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.31.0 + 2.32.0 tests From b32a942e28f0403819f1e6cc0db9a1b17b83d8dd Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Wed, 7 Feb 2024 04:24:16 +0000 Subject: [PATCH 1673/2363] chore: use sdk-platform-java-config to consolidate build configs (#1895) --- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/owlbot.py | 4 +++- java-pubsub/pom.xml | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index fb5bb678ffcc..90d9a20a085a 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17:22.3.3" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.24.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 59efee340c53..948177be87f9 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm:22.3.3" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.24.0" } env_vars: { diff --git a/java-pubsub/owlbot.py b/java-pubsub/owlbot.py index 6cb015af0174..1ef474bc49cf 100644 --- a/java-pubsub/owlbot.py +++ b/java-pubsub/owlbot.py @@ -1211,6 +1211,8 @@ ".github/sync-repo-settings.yaml", ".github/blunderbuss.yml", '.kokoro/requirements.in', - '.kokoro/requirements.txt' + '.kokoro/requirements.txt', + '.kokoro/presubmit/graalvm-native.cfg', + '.kokoro/presubmit/graalvm-native-17.cfg' ] ) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 628287c8ee02..764995a45569 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -13,8 +13,8 @@ com.google.cloud - google-cloud-shared-config - 1.7.1 + sdk-platform-java-config + 3.24.0 @@ -61,7 +61,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.23.0 + ${google-cloud-shared-dependencies.version} pom import From b3fdf9965bbb17d1c09149daf04dd6048693894b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 7 Feb 2024 12:56:19 -0500 Subject: [PATCH 1674/2363] chore: adjust renovate bot configs to update the sdk-platform-java-config artifact (#1921) (#1884) chore: update renovate bot configs to update the sdk-platform-java-config artifact Source-Link: https://github.com/googleapis/synthtool/commit/d7828c02a5b1aeb8dcf3aa6c55f8fdf407a0156f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:0d1bb26a1a99ae0456176bf891b8490e9aab424a5cb4e4d301d9703c4dc43b58 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/renovate.json | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index dc05a72762fe..bf48c82da143 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc -# created: 2024-01-22T14:14:20.913785597Z + digest: sha256:0d1bb26a1a99ae0456176bf891b8490e9aab424a5cb4e4d301d9703c4dc43b58 +# created: 2024-01-30T19:46:55.029238294Z diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 977082821109..10ded9f10d44 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -14,6 +14,17 @@ ".kokoro/requirements.txt", ".github/workflows/**" ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "^.kokoro/presubmit/graalvm-native.*.cfg$" + ], + "matchStrings": ["value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\""], + "depNameTemplate": "com.google.cloud:sdk-platform-java-config", + "datasourceTemplate": "maven" + } + ], "packageRules": [ { "packagePatterns": [ From 1ae6a8fd6cc626c2d5532e38241fd84b39bb15dc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 7 Feb 2024 20:13:09 +0100 Subject: [PATCH 1675/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.31.0 (#1883) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.31.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 9873ea9d1631..f17677181c77 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.30.0 + 26.31.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index b766b632656c..3a75434c475f 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.30.0 + 26.31.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 8b63238f903c..dec1fffa3c6b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.30.0 + 26.31.0 pom import From 9f4cbb50ed111d11067052213b06c3c35f5a923f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 Feb 2024 01:14:07 +0100 Subject: [PATCH 1676/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.2 (#1881) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.2 * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f17677181c77..68423c089c09 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ab1e205bffba..8a23573ba59f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.1 + 1.126.2 From 77cf35cbb5dce67bdb6ab98a8122ed0723fce07b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:30:16 +0000 Subject: [PATCH 1677/2363] chore(main): release 1.126.3 (#1896) :robot: I have created a release *beep* *boop* --- ## [1.126.3](https://togithub.com/googleapis/java-pubsub/compare/v1.126.2...v1.126.3) (2024-02-08) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.32.0 ([#1885](https://togithub.com/googleapis/java-pubsub/issues/1885)) ([3adecdc](https://togithub.com/googleapis/java-pubsub/commit/3adecdc069388b46bb4c54e1fd91d4e0f342be2c)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 5a883226aef7..8721be429abe 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.126.3](https://github.com/googleapis/java-pubsub/compare/v1.126.2...v1.126.3) (2024-02-08) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.32.0 ([#1885](https://github.com/googleapis/java-pubsub/issues/1885)) ([a2063cf](https://github.com/googleapis/java-pubsub/commit/a2063cf8f1f792f5ad1994bff00f367b399c0ff2)) + ## [1.126.2](https://github.com/googleapis/java-pubsub/compare/v1.126.1...v1.126.2) (2024-01-26) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b8d3fc0a38a3..cbf0b858c4db 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.3-SNAPSHOT + 1.126.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.3-SNAPSHOT + 1.126.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 14dca02b04af..650cb553f75b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.3-SNAPSHOT + 1.126.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.3-SNAPSHOT + 1.126.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 686abc57808f..236f1fbe5d85 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.3-SNAPSHOT + 1.126.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 764995a45569..321bef25a667 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.3-SNAPSHOT + 1.126.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 com.google.cloud google-cloud-pubsub - 1.126.3-SNAPSHOT + 1.126.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 581378af5cde..6e94b2ee19bc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3-SNAPSHOT + 1.108.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.3-SNAPSHOT + 1.126.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c02e9627fcbb..b1e557e8b42b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.3-SNAPSHOT + 1.126.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index fc723dc08a19..8cce4bec8cf7 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.2:1.126.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.2:1.108.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.2:1.108.3-SNAPSHOT +google-cloud-pubsub:1.126.3:1.126.3 +grpc-google-cloud-pubsub-v1:1.108.3:1.108.3 +proto-google-cloud-pubsub-v1:1.108.3:1.108.3 From e21159082e81ec2f580de58ec7d5510c719c7d76 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:44:16 +0000 Subject: [PATCH 1678/2363] chore(main): release 1.126.4-SNAPSHOT (#1901) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index cbf0b858c4db..276983e5dc4b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.3 + 1.126.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 650cb553f75b..860c849af2b3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.3 + 1.126.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 236f1fbe5d85..2b9af8e224f7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.3 + 1.126.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 321bef25a667..8c5700e1ed93 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.3 + 1.126.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6e94b2ee19bc..0ad7b2a8fb36 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.3 + 1.108.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.3 + 1.126.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b1e557e8b42b..94159b432e38 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8cce4bec8cf7..a8c7ca076073 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.3:1.126.3 -grpc-google-cloud-pubsub-v1:1.108.3:1.108.3 -proto-google-cloud-pubsub-v1:1.108.3:1.108.3 +google-cloud-pubsub:1.126.3:1.126.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.3:1.108.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.3:1.108.4-SNAPSHOT From 57453f84a0d47adf2280ba2376a40e472aa7ec04 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 Feb 2024 21:25:20 +0100 Subject: [PATCH 1679/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.3 (#1902) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 68423c089c09..89680132d621 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.3" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8a23573ba59f..b6169a62c0ca 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.2 + 1.126.3 From a292bf2d2bbf2309fa06dce3cf899635d13b3c0e Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 8 Feb 2024 15:41:19 -0500 Subject: [PATCH 1680/2363] chore: change assignees for issues and PRs to michaelpri10 (#1899) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: change assignees for issues and PRs to michaelpri10 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/blunderbuss.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/blunderbuss.yml b/java-pubsub/.github/blunderbuss.yml index 44ab091e1e65..97998e463e04 100644 --- a/java-pubsub/.github/blunderbuss.yml +++ b/java-pubsub/.github/blunderbuss.yml @@ -1,9 +1,9 @@ # Configuration for the Blunderbuss GitHub app. For more info see # https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss assign_issues: - - maitrimangal + - michaelpri10 assign_prs: - - maitrimangal + - michaelpri10 assign_prs_by: - labels: - samples From fcd31eaf8d965bbe4c62e426e556b03be5c83467 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Fri, 9 Feb 2024 15:45:21 -0500 Subject: [PATCH 1681/2363] fix: Message ordering fix for #1889 (#1903) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: change assignees for issues and PRs to michaelpri10 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: Revert PR#1807 and use a LinkedHasMap in the MessageDispatcher * fix: Make processedReceivedMessages thread-safe * fix: Only synchronize on the outstandingReceipts object in the MessageDispatcher --------- Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/MessageDispatcher.java | 52 +++++++++++-------- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 635bc92d53f2..1810badd2453 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -31,6 +31,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -92,8 +93,8 @@ class MessageDispatcher { private final LinkedBlockingQueue pendingAcks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingNacks = new LinkedBlockingQueue<>(); private final LinkedBlockingQueue pendingReceipts = new LinkedBlockingQueue<>(); - private final ConcurrentMap outstandingReceipts = - new ConcurrentHashMap(); + private final LinkedHashMap outstandingReceipts = + new LinkedHashMap(); private final AtomicInteger messageDeadlineSeconds = new AtomicInteger(); private final AtomicBoolean extendDeadline = new AtomicBoolean(true); private final Lock jobLock; @@ -397,7 +398,9 @@ void processReceivedMessages(List messages) { if (this.exactlyOnceDeliveryEnabled.get()) { // For exactly once deliveries we don't add to outstanding batch because we first // process the receipt modack. If that is successful then we process the message. - outstandingReceipts.put(message.getAckId(), new ReceiptCompleteData(outstandingMessage)); + synchronized (outstandingReceipts) { + outstandingReceipts.put(message.getAckId(), new ReceiptCompleteData(outstandingMessage)); + } } else if (pendingMessages.putIfAbsent(message.getAckId(), ackHandler) != null) { // putIfAbsent puts ackHandler if ackID isn't previously mapped, then return the // previously-mapped element. @@ -417,33 +420,36 @@ void processReceivedMessages(List messages) { } void notifyAckSuccess(AckRequestData ackRequestData) { - - if (outstandingReceipts.containsKey(ackRequestData.getAckId())) { - outstandingReceipts.get(ackRequestData.getAckId()).notifyReceiptComplete(); - List outstandingBatch = new ArrayList<>(); - - for (Iterator> it = - outstandingReceipts.entrySet().iterator(); - it.hasNext(); ) { - Map.Entry receipt = it.next(); - // If receipt is complete then add to outstandingBatch to process the batch - if (receipt.getValue().isReceiptComplete()) { - it.remove(); - if (pendingMessages.putIfAbsent( - receipt.getKey(), receipt.getValue().getOutstandingMessage().ackHandler) - == null) { - outstandingBatch.add(receipt.getValue().getOutstandingMessage()); + synchronized (outstandingReceipts) { + if (outstandingReceipts.containsKey(ackRequestData.getAckId())) { + outstandingReceipts.get(ackRequestData.getAckId()).notifyReceiptComplete(); + List outstandingBatch = new ArrayList<>(); + + for (Iterator> it = + outstandingReceipts.entrySet().iterator(); + it.hasNext(); ) { + Map.Entry receipt = it.next(); + // If receipt is complete then add to outstandingBatch to process the batch + if (receipt.getValue().isReceiptComplete()) { + it.remove(); + if (pendingMessages.putIfAbsent( + receipt.getKey(), receipt.getValue().getOutstandingMessage().ackHandler) + == null) { + outstandingBatch.add(receipt.getValue().getOutstandingMessage()); + } + } else { + break; } - } else { - break; } + processBatch(outstandingBatch); } - processBatch(outstandingBatch); } } void notifyAckFailed(AckRequestData ackRequestData) { - outstandingReceipts.remove(ackRequestData.getAckId()); + synchronized (outstandingReceipts) { + outstandingReceipts.remove(ackRequestData.getAckId()); + } } private void processBatch(List batch) { From 42d2a64146a0a3eb13141cb3a72891d337a8c320 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 16:30:00 -0500 Subject: [PATCH 1682/2363] chore(main): release 1.126.4 (#1905) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 8721be429abe..92946f1843b6 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.126.4](https://github.com/googleapis/java-pubsub/compare/v1.126.3...v1.126.4) (2024-02-09) + + +### Bug Fixes + +* Message ordering fix for [#1889](https://github.com/googleapis/java-pubsub/issues/1889) ([#1903](https://github.com/googleapis/java-pubsub/issues/1903)) ([22a87c6](https://github.com/googleapis/java-pubsub/commit/22a87c67f07b55266e277f83f5ceb17d9f32f67e)) + ## [1.126.3](https://github.com/googleapis/java-pubsub/compare/v1.126.2...v1.126.3) (2024-02-08) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 276983e5dc4b..795bf000c4e7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.4-SNAPSHOT + 1.126.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.4-SNAPSHOT + 1.126.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 860c849af2b3..cb705395dcf4 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.4-SNAPSHOT + 1.126.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.4-SNAPSHOT + 1.126.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2b9af8e224f7..ab59fe1ad89e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.4-SNAPSHOT + 1.126.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8c5700e1ed93..6de969e6a669 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.4-SNAPSHOT + 1.126.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 com.google.cloud google-cloud-pubsub - 1.126.4-SNAPSHOT + 1.126.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0ad7b2a8fb36..e06710a625cc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4-SNAPSHOT + 1.108.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.4-SNAPSHOT + 1.126.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 94159b432e38..adcd70028d47 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.4-SNAPSHOT + 1.126.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a8c7ca076073..451bc8f07466 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.3:1.126.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.3:1.108.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.3:1.108.4-SNAPSHOT +google-cloud-pubsub:1.126.4:1.126.4 +grpc-google-cloud-pubsub-v1:1.108.4:1.108.4 +proto-google-cloud-pubsub-v1:1.108.4:1.108.4 From bd158b44fa69b62c2262dea603528f156051897f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 9 Feb 2024 22:32:42 +0100 Subject: [PATCH 1683/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 (#1888) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 3a75434c475f..29826de5f63a 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.9.28 + 0.10.0 true pubsub.NativeImagePubSubSample From a9bf99fef29510b00fe7b1be1639823081c76a60 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 9 Feb 2024 22:35:10 +0100 Subject: [PATCH 1684/2363] test(deps): update dependency com.google.truth:truth to v1.4.0 (#1890) --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6de969e6a669..227cd7d2de65 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.3.0 + 1.4.0 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b6169a62c0ca..e40c9caaa15b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.3.0 + 1.4.0 test diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 29826de5f63a..5a064d826e57 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.3.0 + 1.4.0 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index adcd70028d47..52c09eace241 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.3.0 + 1.4.0 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index dec1fffa3c6b..34c2c4bdeb71 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.3.0 + 1.4.0 test From 9eba07a988a12362bea63303644981d0125c4eed Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 9 Feb 2024 22:35:34 +0100 Subject: [PATCH 1685/2363] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 (#1891) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 5a064d826e57..e114bce2dd11 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.junit.vintage junit-vintage-engine - 5.10.1 + 5.10.2 test From 1aa41d3d29fc3cf006087732b3f423c3356a15f4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 21:52:17 +0000 Subject: [PATCH 1686/2363] chore(main): release 1.126.5-SNAPSHOT (#1906) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 795bf000c4e7..53f63069fceb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.4 + 1.126.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cb705395dcf4..567acd1833f9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.4 + 1.126.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ab59fe1ad89e..5eed7d4f0bd0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.4 + 1.126.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 227cd7d2de65..4271f426dbba 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.4 + 1.126.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e06710a625cc..f0c1bcae9c45 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.4 + 1.108.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.4 + 1.126.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 52c09eace241..62ac26115dde 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 451bc8f07466..cff6d8a2842f 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.4:1.126.4 -grpc-google-cloud-pubsub-v1:1.108.4:1.108.4 -proto-google-cloud-pubsub-v1:1.108.4:1.108.4 +google-cloud-pubsub:1.126.4:1.126.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.4:1.108.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.4:1.108.5-SNAPSHOT From cdf23f38071dbbbe12e12fdff4f764f5170b4a4d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Feb 2024 16:52:43 +0100 Subject: [PATCH 1687/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.4 (#1908) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 89680132d621..e5617be6d32c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.4" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e40c9caaa15b..79d2e3bd2a6a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.3 + 1.126.4 From 4c7fa7d74637a1a3b608ecf230eb79dd0626c2be Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Feb 2024 18:28:36 +0100 Subject: [PATCH 1688/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.33.0 (#1900) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 79d2e3bd2a6a..5e9dceefebab 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.32.1 + 2.33.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 62ac26115dde..fee5457c86e7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.32.1 + 2.33.0 From 56026980404470c4ac109d3c67d1d73ec84b9008 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Feb 2024 18:29:19 +0100 Subject: [PATCH 1689/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.37.1 (#1898) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5e9dceefebab..7495bf7a5d4e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.37.0 + 2.37.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fee5457c86e7..78bf34fcd137 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.37.0 + 2.37.1 com.google.cloud From 4902fc50edb2dfb7490ecba69fc84f003ec56de3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 Feb 2024 18:29:43 +0100 Subject: [PATCH 1690/2363] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 (#1887) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index e114bce2dd11..6b5b1b6f7b54 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.9.28 + 0.10.0 test From c16bf1429ff865455008f9bede681d17198d2676 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:42:16 +0000 Subject: [PATCH 1691/2363] chore(main): release 1.126.5 (#1907) :robot: I have created a release *beep* *boop* --- ## [1.126.5](https://togithub.com/googleapis/java-pubsub/compare/v1.126.4...v1.126.5) (2024-02-12) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.37.1 ([#1898](https://togithub.com/googleapis/java-pubsub/issues/1898)) ([5602698](https://togithub.com/googleapis/java-pubsub/commit/56026980404470c4ac109d3c67d1d73ec84b9008)) * Update dependency com.google.cloud:google-cloud-storage to v2.33.0 ([#1900](https://togithub.com/googleapis/java-pubsub/issues/1900)) ([4c7fa7d](https://togithub.com/googleapis/java-pubsub/commit/4c7fa7d74637a1a3b608ecf230eb79dd0626c2be)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 ([#1887](https://togithub.com/googleapis/java-pubsub/issues/1887)) ([4902fc5](https://togithub.com/googleapis/java-pubsub/commit/4902fc50edb2dfb7490ecba69fc84f003ec56de3)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 ([#1888](https://togithub.com/googleapis/java-pubsub/issues/1888)) ([bd158b4](https://togithub.com/googleapis/java-pubsub/commit/bd158b44fa69b62c2262dea603528f156051897f)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#1891](https://togithub.com/googleapis/java-pubsub/issues/1891)) ([9eba07a](https://togithub.com/googleapis/java-pubsub/commit/9eba07a988a12362bea63303644981d0125c4eed)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 11 +++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 29 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 92946f1843b6..702c2f306dee 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [1.126.5](https://github.com/googleapis/java-pubsub/compare/v1.126.4...v1.126.5) (2024-02-12) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.37.1 ([#1898](https://github.com/googleapis/java-pubsub/issues/1898)) ([fc0dc96](https://github.com/googleapis/java-pubsub/commit/fc0dc962bcb7467fe4008263a80d1ed1e29167a0)) +* Update dependency com.google.cloud:google-cloud-storage to v2.33.0 ([#1900](https://github.com/googleapis/java-pubsub/issues/1900)) ([0efceb4](https://github.com/googleapis/java-pubsub/commit/0efceb4f4068c70565676dc2ddcf629ec4f0489f)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 ([#1887](https://github.com/googleapis/java-pubsub/issues/1887)) ([2bfa5cc](https://github.com/googleapis/java-pubsub/commit/2bfa5cc894e5a14b1d890bdcad348eeb14520f95)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 ([#1888](https://github.com/googleapis/java-pubsub/issues/1888)) ([5017789](https://github.com/googleapis/java-pubsub/commit/5017789c996246ece0c5428c68c9c6681b760bca)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#1891](https://github.com/googleapis/java-pubsub/issues/1891)) ([231ba51](https://github.com/googleapis/java-pubsub/commit/231ba51c8bd2e6a8f3e0171626d35761bd07ae19)) + ## [1.126.4](https://github.com/googleapis/java-pubsub/compare/v1.126.3...v1.126.4) (2024-02-09) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 53f63069fceb..170d987c1410 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.5-SNAPSHOT + 1.126.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.5-SNAPSHOT + 1.126.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 567acd1833f9..5f752ae7f5d2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.5-SNAPSHOT + 1.126.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.5-SNAPSHOT + 1.126.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5eed7d4f0bd0..709f489cc8b2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.5-SNAPSHOT + 1.126.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4271f426dbba..629d902cd1c6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.5-SNAPSHOT + 1.126.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 com.google.cloud google-cloud-pubsub - 1.126.5-SNAPSHOT + 1.126.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f0c1bcae9c45..2b28f30e138a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5-SNAPSHOT + 1.108.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.5-SNAPSHOT + 1.126.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 78bf34fcd137..c7d13fde93b5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.5-SNAPSHOT + 1.126.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index cff6d8a2842f..9a3da02ec81d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.4:1.126.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.4:1.108.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.4:1.108.5-SNAPSHOT +google-cloud-pubsub:1.126.5:1.126.5 +grpc-google-cloud-pubsub-v1:1.108.5:1.108.5 +proto-google-cloud-pubsub-v1:1.108.5:1.108.5 From d2991dee1a1e63de1053467442b7a0ade2631a89 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:56:16 +0000 Subject: [PATCH 1692/2363] chore(main): release 1.126.6-SNAPSHOT (#1909) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 170d987c1410..a54e61ef1085 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.5 + 1.126.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 5f752ae7f5d2..7285bd4cd63b 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.5 + 1.126.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 709f489cc8b2..13368046b0f0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.5 + 1.126.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 629d902cd1c6..0b694993e142 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.5 + 1.126.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2b28f30e138a..b4058e5686f3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.5 + 1.108.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.5 + 1.126.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c7d13fde93b5..9069462fdbca 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9a3da02ec81d..a0ed9a679809 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.5:1.126.5 -grpc-google-cloud-pubsub-v1:1.108.5:1.108.5 -proto-google-cloud-pubsub-v1:1.108.5:1.108.5 +google-cloud-pubsub:1.126.5:1.126.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.5:1.108.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.5:1.108.6-SNAPSHOT From 2b03e09a9df505c835c0acb2bb983e045e26c467 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 00:11:16 +0100 Subject: [PATCH 1693/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.32.0 (#1911) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.32.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 10 +++++----- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e5617be6d32c..7426a06e7756 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.31.0 + 26.32.0 pom import @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.31.0') +implementation platform('com.google.cloud:libraries-bom:26.32.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.5" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.5 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 6b5b1b6f7b54..9e97dc1bc814 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.31.0 + 26.32.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 34c2c4bdeb71..63cf928a6d85 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.31.0 + 26.32.0 pom import From a5e5a6b4cd996c984be6af10728e66ba2f5b7a3e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 13 Feb 2024 00:35:53 +0100 Subject: [PATCH 1694/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.5 (#1910) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7426a06e7756..d4e76d6ed488 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7495bf7a5d4e..d32756239258 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.4 + 1.126.5 From 7ecece72a60a7db95b3c424ce4780bd2ce76e1d9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Feb 2024 06:48:26 +0100 Subject: [PATCH 1695/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.25.0 (#1913) --- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 90d9a20a085a..5e86d37f0769 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.24.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.25.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 948177be87f9..8e8cded782d0 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.24.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.25.0" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0b694993e142..66aaa55b0d9d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.24.0 + 3.25.0 From b96c32d2ea813eb911f58efe95fae00b42eedff7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Feb 2024 06:49:19 +0100 Subject: [PATCH 1696/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.33.0 (#1912) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d32756239258..93b89585f20d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.32.0 + 2.33.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9069462fdbca..4fa7a51643ba 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.32.0 + 2.33.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 63cf928a6d85..2bacc76948e3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.32.0 + 2.33.0 tests From 61ddbbd33dba03ef9d9c378e48a055cbe2fca7e6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 00:50:25 -0500 Subject: [PATCH 1697/2363] chore(java): make org.graalvm.buildtools:junit-platform-native a test dependency upgrade in renovate (#1922) (#1893) Source-Link: https://github.com/googleapis/synthtool/commit/ee0dedaa6aa1276d9876dddd06655c988f8bd6a2 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:1fb09a3eb66af09221da69087fd1b4d075bc7c79e508d0708f5dc0f842069da2 Co-authored-by: Owl Bot Co-authored-by: Mike Prieto --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/renovate.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index bf48c82da143..b49924db5515 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:0d1bb26a1a99ae0456176bf891b8490e9aab424a5cb4e4d301d9703c4dc43b58 -# created: 2024-01-30T19:46:55.029238294Z + digest: sha256:1fb09a3eb66af09221da69087fd1b4d075bc7c79e508d0708f5dc0f842069da2 +# created: 2024-02-05T19:43:08.106031548Z \ No newline at end of file diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 10ded9f10d44..bd4ed7ef1365 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -66,7 +66,8 @@ "^com.google.truth:truth", "^org.mockito:mockito-core", "^org.objenesis:objenesis", - "^com.google.cloud:google-cloud-conformance-tests" + "^com.google.cloud:google-cloud-conformance-tests", + "^org.graalvm.buildtools:junit-platform-native" ], "semanticCommitType": "test", "semanticCommitScope": "deps" From ceddcb0449810a9d933ba46e5370d156fa6f1e52 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 06:02:16 +0000 Subject: [PATCH 1698/2363] chore(main): release 1.126.6 (#1914) :robot: I have created a release *beep* *boop* --- ## [1.126.6](https://togithub.com/googleapis/java-pubsub/compare/v1.126.5...v1.126.6) (2024-02-14) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.33.0 ([#1912](https://togithub.com/googleapis/java-pubsub/issues/1912)) ([b96c32d](https://togithub.com/googleapis/java-pubsub/commit/b96c32d2ea813eb911f58efe95fae00b42eedff7)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.25.0 ([#1913](https://togithub.com/googleapis/java-pubsub/issues/1913)) ([7ecece7](https://togithub.com/googleapis/java-pubsub/commit/7ecece72a60a7db95b3c424ce4780bd2ce76e1d9)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 702c2f306dee..78e67849afba 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.126.6](https://github.com/googleapis/java-pubsub/compare/v1.126.5...v1.126.6) (2024-02-14) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.33.0 ([#1912](https://github.com/googleapis/java-pubsub/issues/1912)) ([9691c6f](https://github.com/googleapis/java-pubsub/commit/9691c6fabd82eb07fcb5135019be8d6fb260ce6f)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.25.0 ([#1913](https://github.com/googleapis/java-pubsub/issues/1913)) ([9636c55](https://github.com/googleapis/java-pubsub/commit/9636c5526e5cf4507bed69349321b686ddf7ab27)) + ## [1.126.5](https://github.com/googleapis/java-pubsub/compare/v1.126.4...v1.126.5) (2024-02-12) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a54e61ef1085..5eaf3f36f2d3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.6-SNAPSHOT + 1.126.6 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.6-SNAPSHOT + 1.126.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7285bd4cd63b..0dcb6ffb5122 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.6-SNAPSHOT + 1.126.6 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.6-SNAPSHOT + 1.126.6 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 13368046b0f0..f3c60406b33a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.6-SNAPSHOT + 1.126.6 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 66aaa55b0d9d..a6c14fe0b149 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.6-SNAPSHOT + 1.126.6 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 com.google.cloud google-cloud-pubsub - 1.126.6-SNAPSHOT + 1.126.6 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b4058e5686f3..a60cf56bc17d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6-SNAPSHOT + 1.108.6 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.6-SNAPSHOT + 1.126.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4fa7a51643ba..85e70e723e50 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.6-SNAPSHOT + 1.126.6 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a0ed9a679809..6e589188d2c1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.5:1.126.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.5:1.108.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.5:1.108.6-SNAPSHOT +google-cloud-pubsub:1.126.6:1.126.6 +grpc-google-cloud-pubsub-v1:1.108.6:1.108.6 +proto-google-cloud-pubsub-v1:1.108.6:1.108.6 From bf2efe6ad41130e98a5fe61ce8b78c85fdf6dccc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 06:18:17 +0000 Subject: [PATCH 1699/2363] chore(main): release 1.126.7-SNAPSHOT (#1915) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5eaf3f36f2d3..83a67875db58 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.6 + 1.126.7-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.6 + 1.126.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 0dcb6ffb5122..f6d9c47d5581 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.6 + 1.126.7-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.6 + 1.126.7-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f3c60406b33a..79bd99cb347b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.6 + 1.126.7-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a6c14fe0b149..915b009ad78c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.6 + 1.126.7-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.126.6 + 1.126.7-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a60cf56bc17d..7914373f1895 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.6 + 1.108.7-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.6 + 1.126.7-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 85e70e723e50..d6096d745f0d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.6 + 1.126.7-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6e589188d2c1..931417aaad09 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.6:1.126.6 -grpc-google-cloud-pubsub-v1:1.108.6:1.108.6 -proto-google-cloud-pubsub-v1:1.108.6:1.108.6 +google-cloud-pubsub:1.126.6:1.126.7-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.108.6:1.108.7-SNAPSHOT +proto-google-cloud-pubsub-v1:1.108.6:1.108.7-SNAPSHOT From 2bbdfbfeb8423a500afa99d4916431916fe84532 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Feb 2024 15:46:42 +0100 Subject: [PATCH 1700/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.6 (#1916) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.126.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d4e76d6ed488..53cd42194a11 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.126.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.6" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.5 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.6 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 93b89585f20d..214ca7a91884 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.5 + 1.126.6 From 6192cfde40e17f823e2c8c9ad9b9c86f4f432abe Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 16 Feb 2024 14:34:31 -0500 Subject: [PATCH 1701/2363] ci: prepare sample build in CloudBuild (#1921) --- java-pubsub/.cloudbuild/samples_build.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 java-pubsub/.cloudbuild/samples_build.yaml diff --git a/java-pubsub/.cloudbuild/samples_build.yaml b/java-pubsub/.cloudbuild/samples_build.yaml new file mode 100644 index 000000000000..1c3ed5366651 --- /dev/null +++ b/java-pubsub/.cloudbuild/samples_build.yaml @@ -0,0 +1,17 @@ +steps: +- name: gcr.io/cloud-devrel-kokoro-resources/java8 + entrypoint: ls + args: [ + '-alt', + ] +- name: gcr.io/cloud-devrel-kokoro-resources/java8 + entrypoint: pwd +- name: gcr.io/cloud-devrel-kokoro-resources/java8 + entrypoint: bash + args: [ + './kokoro/build.sh' + ] + env: + - 'JOB_TYPE=samples' + +timeout: 300m From 1ebb78b42b8174ee26cbbda6b3db1b8a43514144 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 03:51:17 +0100 Subject: [PATCH 1702/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.34.0 (#1917) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 214ca7a91884..4e881b4e69df 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.33.0 + 2.34.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d6096d745f0d..454db1eeb64f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.33.0 + 2.34.0 From a4f5737531eb18347a39fec5b33137e5af687f7d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 03:52:42 +0100 Subject: [PATCH 1703/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v3.25.3 (#1919) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4e881b4e69df..2d271fafe843 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.25.2 + 3.25.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 454db1eeb64f..9fce81e47ba9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.25.2 + 3.25.3 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2bacc76948e3..3669fd9afbf5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 3.25.2 + 3.25.3 From 4fb63b6955553442e04de103e86a5f1bb8c20d66 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 03:52:54 +0100 Subject: [PATCH 1704/2363] test(deps): update dependency org.graalvm.buildtools:junit-platform-native to v0.10.1 (#1924) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 9e97dc1bc814..38aaf94e9334 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.10.0 + 0.10.1 test From 21b4b079161720e673e82e6040c4748921af32f4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 03:53:15 +0100 Subject: [PATCH 1705/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.1 (#1923) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 38aaf94e9334..bcd8cf8cde08 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.10.0 + 0.10.1 true pubsub.NativeImagePubSubSample From 830bb8d73eb8c98f13bb3da65ae9bef2606af1dd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 03:53:46 +0100 Subject: [PATCH 1706/2363] test(deps): update dependency com.google.truth:truth to v1.4.1 (#1922) --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 915b009ad78c..45588af169da 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.4.0 + 1.4.1 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2d271fafe843..53cd42567760 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.4.0 + 1.4.1 test diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index bcd8cf8cde08..5646266c728d 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.4.0 + 1.4.1 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9fce81e47ba9..bc2430778b2f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.4.0 + 1.4.1 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 3669fd9afbf5..41c2b38a84b3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.4.0 + 1.4.1 test From ca6643fb19b3d754481b90c61792c2c8a58d68eb Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 20 Feb 2024 22:02:49 -0500 Subject: [PATCH 1707/2363] feat: Add an API method for reordering firewall policies (#1868) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: small fix in Pub/Sub ingestion comments PiperOrigin-RevId: 606977953 Source-Link: https://github.com/googleapis/googleapis/commit/3d989d19608052ca0e91767129bb55c2ba2572a9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/375142e33353dd56aca4cf6d67b9dc550aad03a3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzc1MTQyZTMzMzUzZGQ1NmFjYTRjZjZkNjdiOWRjNTUwYWFkMDNhMyJ9 chore: set packed = false on field_behavior extension PiperOrigin-RevId: 604675854 Source-Link: https://github.com/googleapis/googleapis/commit/42c04fea4338ba626095ec2cde5ea75827191581 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1ed8a97a00d02fe456f6ebd4160c5b2b000ad75 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTFlZDhhOTdhMDBkMDJmZTQ1NmY2ZWJkNDE2MGM1YjJiMDAwYWQ3NSJ9 build: Update protobuf to 25.2 in WORKSPACE build: Update grpc to 1.60.0 in WORKSPACE build: Remove pin for boringssl in WORKSPACE build: Update bazel to 6.3.0 in .bazeliskrc PiperOrigin-RevId: 603226138 Source-Link: https://github.com/googleapis/googleapis/commit/2aec9e178dab3427c0ad5654c94a069e0bc7224c Source-Link: https://github.com/googleapis/googleapis-gen/commit/e9a5c2ef37b4d69c93e39141d87aae0b193c00b1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTlhNWMyZWYzN2I0ZDY5YzkzZTM5MTQxZDg3YWFlMGIxOTNjMDBiMSJ9 feat: add enforce_in_transit fields and optional annotations PiperOrigin-RevId: 601205737 Source-Link: https://github.com/googleapis/googleapis/commit/27f83015e8aacb6695f56435b3185f6d45fad995 Source-Link: https://github.com/googleapis/googleapis-gen/commit/daf775c7ecd90de69e1304b840a28d201c025f08 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGFmNzc1YzdlY2Q5MGRlNjllMTMwNGI4NDBhMjhkMjAxYzAyNWYwOCJ9 feat: add `ingestion_data_source_settings` field to `Topic` PiperOrigin-RevId: 600786127 Source-Link: https://github.com/googleapis/googleapis/commit/708f769ea3987faa1b810fcb44d9e0ee9172b352 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3b85818ca8f12ace75390cea24e5f3df5ac70be7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2I4NTgxOGNhOGYxMmFjZTc1MzkwY2VhMjRlNWYzZGY1YWM3MGJlNyJ9 fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 PiperOrigin-RevId: 599914188 Source-Link: https://github.com/googleapis/googleapis/commit/17e6661f8bf43374633adf950454ed8e69bdcee1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d86ba5be537e489435105ca85566cc4103301aba Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add an API method for reordering firewall policies PiperOrigin-RevId: 607015517 Source-Link: https://github.com/googleapis/googleapis/commit/c43e216cc37c82f16b829f583fd9f6864e34c2c0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/71c27adc96b0c80093b4a413815bd93943196bb2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzFjMjdhZGM5NmIwYzgwMDkzYjRhNDEzODE1YmQ5Mzk0MzE5NmJiMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../cloud/pubsub/v1/SchemaServiceClient.java | 2 +- .../pubsub/v1/SchemaServiceSettings.java | 3 +- .../pubsub/v1/SubscriptionAdminClient.java | 2 +- .../pubsub/v1/SubscriptionAdminSettings.java | 3 +- .../cloud/pubsub/v1/TopicAdminClient.java | 2 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 3 +- .../google/cloud/pubsub/v1/package-info.java | 2 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../GrpcSchemaServiceCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 2 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 2 +- .../HttpJsonPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/HttpJsonPublisherStub.java | 2 +- .../HttpJsonSchemaServiceCallableFactory.java | 2 +- .../v1/stub/HttpJsonSchemaServiceStub.java | 2 +- .../HttpJsonSubscriberCallableFactory.java | 2 +- .../v1/stub/HttpJsonSubscriberStub.java | 2 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../pubsub/v1/stub/PublisherStubSettings.java | 4 +- .../pubsub/v1/stub/SchemaServiceStub.java | 2 +- .../v1/stub/SchemaServiceStubSettings.java | 4 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../v1/stub/SubscriberStubSettings.java | 4 +- .../reflect-config.json | 135 ++++ .../google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../cloud/pubsub/v1/MockSchemaService.java | 2 +- .../pubsub/v1/MockSchemaServiceImpl.java | 2 +- .../cloud/pubsub/v1/MockSubscriber.java | 2 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../v1/SchemaServiceClientHttpJsonTest.java | 2 +- .../pubsub/v1/SchemaServiceClientTest.java | 2 +- .../SubscriptionAdminClientHttpJsonTest.java | 2 +- .../v1/SubscriptionAdminClientTest.java | 2 +- .../v1/TopicAdminClientHttpJsonTest.java | 2 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 2 +- .../google/pubsub/v1/AcknowledgeRequest.java | 1 + .../v1/AcknowledgeRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/BigQueryConfig.java | 1 + .../pubsub/v1/BigQueryConfigOrBuilder.java | 1 + .../google/pubsub/v1/CloudStorageConfig.java | 28 +- .../v1/CloudStorageConfigOrBuilder.java | 1 + .../google/pubsub/v1/CommitSchemaRequest.java | 28 +- .../v1/CommitSchemaRequestOrBuilder.java | 1 + .../google/pubsub/v1/CreateSchemaRequest.java | 28 +- .../v1/CreateSchemaRequestOrBuilder.java | 1 + .../pubsub/v1/CreateSnapshotRequest.java | 10 +- .../v1/CreateSnapshotRequestOrBuilder.java | 1 + .../google/pubsub/v1/DeadLetterPolicy.java | 1 + .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 1 + .../google/pubsub/v1/DeleteSchemaRequest.java | 1 + .../v1/DeleteSchemaRequestOrBuilder.java | 1 + .../v1/DeleteSchemaRevisionRequest.java | 1 + .../DeleteSchemaRevisionRequestOrBuilder.java | 1 + .../pubsub/v1/DeleteSnapshotRequest.java | 1 + .../v1/DeleteSnapshotRequestOrBuilder.java | 1 + .../pubsub/v1/DeleteSubscriptionRequest.java | 1 + .../DeleteSubscriptionRequestOrBuilder.java | 1 + .../google/pubsub/v1/DeleteTopicRequest.java | 1 + .../v1/DeleteTopicRequestOrBuilder.java | 1 + .../pubsub/v1/DetachSubscriptionRequest.java | 1 + .../DetachSubscriptionRequestOrBuilder.java | 1 + .../pubsub/v1/DetachSubscriptionResponse.java | 1 + .../DetachSubscriptionResponseOrBuilder.java | 1 + .../java/com/google/pubsub/v1/Encoding.java | 1 + .../google/pubsub/v1/ExpirationPolicy.java | 28 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 1 + .../google/pubsub/v1/GetSchemaRequest.java | 1 + .../pubsub/v1/GetSchemaRequestOrBuilder.java | 1 + .../google/pubsub/v1/GetSnapshotRequest.java | 1 + .../v1/GetSnapshotRequestOrBuilder.java | 1 + .../pubsub/v1/GetSubscriptionRequest.java | 1 + .../v1/GetSubscriptionRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/GetTopicRequest.java | 1 + .../pubsub/v1/GetTopicRequestOrBuilder.java | 1 + .../v1/IngestionDataSourceSettings.java | 3 +- .../IngestionDataSourceSettingsOrBuilder.java | 1 + .../pubsub/v1/ListSchemaRevisionsRequest.java | 1 + .../ListSchemaRevisionsRequestOrBuilder.java | 1 + .../v1/ListSchemaRevisionsResponse.java | 1 + .../ListSchemaRevisionsResponseOrBuilder.java | 1 + .../google/pubsub/v1/ListSchemasRequest.java | 1 + .../v1/ListSchemasRequestOrBuilder.java | 1 + .../google/pubsub/v1/ListSchemasResponse.java | 1 + .../v1/ListSchemasResponseOrBuilder.java | 1 + .../pubsub/v1/ListSnapshotsRequest.java | 1 + .../v1/ListSnapshotsRequestOrBuilder.java | 1 + .../pubsub/v1/ListSnapshotsResponse.java | 1 + .../v1/ListSnapshotsResponseOrBuilder.java | 1 + .../pubsub/v1/ListSubscriptionsRequest.java | 1 + .../v1/ListSubscriptionsRequestOrBuilder.java | 1 + .../pubsub/v1/ListSubscriptionsResponse.java | 1 + .../ListSubscriptionsResponseOrBuilder.java | 1 + .../pubsub/v1/ListTopicSnapshotsRequest.java | 1 + .../ListTopicSnapshotsRequestOrBuilder.java | 1 + .../pubsub/v1/ListTopicSnapshotsResponse.java | 1 + .../ListTopicSnapshotsResponseOrBuilder.java | 1 + .../v1/ListTopicSubscriptionsRequest.java | 1 + ...istTopicSubscriptionsRequestOrBuilder.java | 1 + .../v1/ListTopicSubscriptionsResponse.java | 1 + ...stTopicSubscriptionsResponseOrBuilder.java | 1 + .../google/pubsub/v1/ListTopicsRequest.java | 1 + .../pubsub/v1/ListTopicsRequestOrBuilder.java | 1 + .../google/pubsub/v1/ListTopicsResponse.java | 1 + .../v1/ListTopicsResponseOrBuilder.java | 1 + .../pubsub/v1/MessageStoragePolicy.java | 1 + .../v1/MessageStoragePolicyOrBuilder.java | 1 + .../pubsub/v1/ModifyAckDeadlineRequest.java | 1 + .../v1/ModifyAckDeadlineRequestOrBuilder.java | 1 + .../pubsub/v1/ModifyPushConfigRequest.java | 28 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/ProjectName.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 1 + .../pubsub/v1/PublishRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/PublishResponse.java | 1 + .../pubsub/v1/PublishResponseOrBuilder.java | 1 + .../com/google/pubsub/v1/PubsubMessage.java | 37 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 1 + .../com/google/pubsub/v1/PubsubProto.java | 717 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 9 +- .../pubsub/v1/PullRequestOrBuilder.java | 3 +- .../com/google/pubsub/v1/PullResponse.java | 1 + .../pubsub/v1/PullResponseOrBuilder.java | 1 + .../java/com/google/pubsub/v1/PushConfig.java | 10 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 1 + .../com/google/pubsub/v1/ReceivedMessage.java | 28 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 1 + .../com/google/pubsub/v1/RetryPolicy.java | 42 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 1 + .../pubsub/v1/RollbackSchemaRequest.java | 1 + .../v1/RollbackSchemaRequestOrBuilder.java | 1 + .../java/com/google/pubsub/v1/Schema.java | 28 +- .../java/com/google/pubsub/v1/SchemaName.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 1 + .../com/google/pubsub/v1/SchemaProto.java | 200 ++--- .../com/google/pubsub/v1/SchemaSettings.java | 1 + .../pubsub/v1/SchemaSettingsOrBuilder.java | 1 + .../java/com/google/pubsub/v1/SchemaView.java | 1 + .../com/google/pubsub/v1/SeekRequest.java | 1 + .../pubsub/v1/SeekRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/SeekResponse.java | 1 + .../pubsub/v1/SeekResponseOrBuilder.java | 1 + .../java/com/google/pubsub/v1/Snapshot.java | 37 +- .../com/google/pubsub/v1/SnapshotName.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 1 + .../pubsub/v1/StreamingPullRequest.java | 33 +- .../v1/StreamingPullRequestOrBuilder.java | 1 + .../pubsub/v1/StreamingPullResponse.java | 57 +- .../v1/StreamingPullResponseOrBuilder.java | 1 + .../com/google/pubsub/v1/Subscription.java | 135 ++-- .../google/pubsub/v1/SubscriptionName.java | 2 +- .../pubsub/v1/SubscriptionOrBuilder.java | 1 + .../main/java/com/google/pubsub/v1/Topic.java | 115 +-- .../java/com/google/pubsub/v1/TopicName.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 10 +- .../pubsub/v1/UpdateSnapshotRequest.java | 42 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 1 + .../pubsub/v1/UpdateSubscriptionRequest.java | 42 +- .../UpdateSubscriptionRequestOrBuilder.java | 1 + .../google/pubsub/v1/UpdateTopicRequest.java | 42 +- .../v1/UpdateTopicRequestOrBuilder.java | 1 + .../pubsub/v1/ValidateMessageRequest.java | 1 + .../v1/ValidateMessageRequestOrBuilder.java | 1 + .../pubsub/v1/ValidateMessageResponse.java | 1 + .../v1/ValidateMessageResponseOrBuilder.java | 1 + .../pubsub/v1/ValidateSchemaRequest.java | 28 +- .../v1/ValidateSchemaRequestOrBuilder.java | 1 + .../pubsub/v1/ValidateSchemaResponse.java | 1 + .../v1/ValidateSchemaResponseOrBuilder.java | 1 + .../main/proto/google/pubsub/v1/pubsub.proto | 5 +- 174 files changed, 1338 insertions(+), 769 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 02b4aef141eb..ae7ee1af2af0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 67d08bb63206..152cb4fb993a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -207,7 +207,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return SchemaServiceStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return SchemaServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 7eca1a773a49..8f23232175ab 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 7f50be718939..a306bf2b92d4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -246,7 +246,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return SubscriberStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return SubscriberStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index a80ed29ec33b..6449c2f8ca3d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 9dd62bda3e65..c4db6a8d592e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -206,7 +206,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return PublisherStubSettings.defaultTransportChannelProvider(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { return PublisherStubSettings.defaultApiClientHeaderProviderBuilder(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 5e73e3a64e8a..70eed8c36c4c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index 60af80164279..0ca66bdc8ed1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index d4c26515d7a6..3ea32264e91a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java index b7ad8cab401c..e2728094e85e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index cbaf6a608809..d3fbc1d67a61 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 27f99f671ab0..8b12c81c0f64 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index b3651167cae7..b3c3e671b620 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java index cd5b6e6f2eaa..bf26ec9df175 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java index 5ae0dfc9e2d2..cc52e013292d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java index c1db412c1914..049e3978e5d6 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java index 186405096db9..0d63ad8252b4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java index 7acbff90fa04..6ed7053d57b6 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index 010a08bace8c..ea305a93835c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 5b8ed6112a56..011ad51e2152 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 262a09205535..11c0eadd7dda 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -539,7 +539,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) @@ -547,7 +546,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java index ab52003751aa..b36f779af747 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index bb5e127d3209..e63ac6d7c4f7 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -399,7 +399,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -408,7 +407,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index f04f4acd5dca..94b56c5a1b1f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 93122a8318b4..85c2a53d776e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -443,7 +443,6 @@ public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( @@ -452,7 +451,6 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 441c326d248b..de5e1f2be5d0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -674,6 +674,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", "queryAllDeclaredConstructors": true, @@ -809,6 +818,114 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", "queryAllDeclaredConstructors": true, @@ -872,6 +989,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java index c17e00ad22ac..9b682f478ebc 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index e18c2a7bcfdf..f65568ec0ec0 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java index 2a26cd59aa17..adb60419dad6 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 47cf6f416fb9..75c254dc5d92 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java index 29559fa86e8a..2073458cc22b 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java index 8510e1b77cfd..f49e2cc45609 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java index 13b54dd7ad6d..33c80a1110f5 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index 389fc6561e12..d2d89203163d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java index 964b25a6e458..06df1993b200 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java index 7d216444b16b..a33b9c5bd6db 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 433d1aa6c487..1943554ac0a7 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index c636cdcd3cc1..470a2633464c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index 2dc4d6e09b17..821411d6d115 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 44a9c11c5705..fa7e7bd06eb3 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index f118acddd3b0..7d02c1dae369 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index ef4ff0f2cf07..47b7ef171d3f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface AcknowledgeRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 8bc70c28b02e..4ada7989654f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 2742cc0019db..1162f9931a68 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface BigQueryConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index b44f9b42789e..def2b0461d2b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -1262,6 +1263,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getDefaultInstanceForT } } + private int bitField0_; private int outputFormatCase_ = 0; @SuppressWarnings("serial") @@ -1614,7 +1616,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig */ @java.lang.Override public boolean hasMaxDuration() { - return maxDuration_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1741,7 +1743,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputFormatCase_ == 5) { output.writeMessage(5, (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_); } - if (maxDuration_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getMaxDuration()); } if (maxBytes_ != 0L) { @@ -1778,7 +1780,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) outputFormat_); } - if (maxDuration_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMaxDuration()); } if (maxBytes_ != 0L) { @@ -1988,10 +1990,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.CloudStorageConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMaxDurationFieldBuilder(); + } } @java.lang.Override @@ -2062,9 +2073,11 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.filenameSuffix_ = filenameSuffix_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.maxDuration_ = maxDurationBuilder_ == null ? maxDuration_ : maxDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.maxBytes_ = maxBytes_; @@ -2072,6 +2085,7 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.pubsub.v1.CloudStorageConfig result) { @@ -3216,8 +3230,10 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { } else { maxDurationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000020; - onChanged(); + if (maxDuration_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 780c0ea61ebb..8b561caf3162 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface CloudStorageConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index 2c1c5b2dd492..b0cd6869168e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.CommitSchemaRequest.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -134,7 +136,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasSchema() { - return schema_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -182,7 +184,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSchema()); } getUnknownFields().writeTo(output); @@ -197,7 +199,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } size += getUnknownFields().getSerializedSize(); @@ -366,10 +368,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.CommitSchemaRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + } } @java.lang.Override @@ -421,9 +432,12 @@ private void buildPartial0(com.google.pubsub.v1.CommitSchemaRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -757,8 +771,10 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } else { schemaBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (schema_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 3bdf1c9bf7ff..638f15d9862d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface CommitSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index c53c7f0ab84b..ab23cc3db87d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -63,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.CreateSchemaRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -139,7 +141,7 @@ public com.google.protobuf.ByteString getParentBytes() { */ @java.lang.Override public boolean hasSchema() { - return schema_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -254,7 +256,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSchema()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { @@ -272,7 +274,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { @@ -447,10 +449,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.CreateSchemaRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + } } @java.lang.Override @@ -503,12 +514,15 @@ private void buildPartial0(com.google.pubsub.v1.CreateSchemaRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.schemaId_ = schemaId_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -873,8 +887,10 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } else { schemaBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (schema_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index 4d7883850abb..b72efe40c3ec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface CreateSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 5cd0670a26e6..48f0131c225c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -55,7 +56,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetLabels(); @@ -520,7 +522,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 3: return internalGetLabels(); @@ -530,7 +533,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 3: return internalGetMutableLabels(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index ae5776a895f0..ecd2d5d2f06e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface CreateSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 04e61da321d7..a5b1e01329ad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 8782315f61b6..ef589a2a79f7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeadLetterPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index f2b94a7609c8..d6b1e3c5808b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index a40fb98aa780..9faabb2bcb64 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeleteSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 3f028830247e..5d17ea9f2ecf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 5b6bb574f190..c795a1e1d989 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeleteSchemaRevisionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index a8429c3def10..6ce385f7ec8f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 49328a977811..fa454e7356e4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeleteSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 28aecaaddec6..6dd19306310d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 793cb2a1636e..22525f2bd325 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeleteSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index df449fac8926..6691a8e02717 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 00b6fa902151..236ae63cca76 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DeleteTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index b563d3d387df..ed63937e3b17 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 50b968b41da8..0fa26b570bc3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DetachSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index a0c910e2c57d..8974d658affa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index e667c16efcaf..0d50e273cddd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface DetachSubscriptionResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 883df5b84aa3..5fa8f2e584dd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index a64bf1fec913..cf5dfe323ab7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -61,6 +62,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ExpirationPolicy.Builder.class); } + private int bitField0_; public static final int TTL_FIELD_NUMBER = 1; private com.google.protobuf.Duration ttl_; /** @@ -81,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasTtl() { - return ttl_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -136,7 +138,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (ttl_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTtl()); } getUnknownFields().writeTo(output); @@ -148,7 +150,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (ttl_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTtl()); } size += getUnknownFields().getSerializedSize(); @@ -314,10 +316,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.ExpirationPolicy.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTtlFieldBuilder(); + } } @java.lang.Override @@ -365,9 +376,12 @@ public com.google.pubsub.v1.ExpirationPolicy buildPartial() { private void buildPartial0(com.google.pubsub.v1.ExpirationPolicy result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.ttl_ = ttlBuilder_ == null ? ttl_ : ttlBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -594,8 +608,10 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { } else { ttlBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (ttl_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index c46d53a5fa13..39d5d21b79b6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ExpirationPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 9d6a6bd871db..a849d24bc0be 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 81fa8291fcc1..09647ffcebfd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface GetSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 54051d6112c4..5e453d1f7bcb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 2c195ca682c7..24afcaa926db 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface GetSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index f2bfee1613ef..b46914346304 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index a61e7e84f7f3..b9fd18e9c35d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface GetSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 2b801c10ad62..237a2210720e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 3e38266a3b59..423d0053c4e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface GetTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 04c354d8b0b3..1e2f25b46c8d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -260,7 +261,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -     * Possible states for managed ingestion from Amazon Kinesis Data Streams.
    +     * Possible states for ingestion from Amazon Kinesis Data Streams.
          * 
    * * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index a343777ad212..7191edd93bba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface IngestionDataSourceSettingsOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 2831126cfe92..3c3ae0b53f3a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index dbe66052f3a4..9fc4c67719b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSchemaRevisionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 924db94367cb..f48aabaef01e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 062f6c84bdee..03a233f0b918 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSchemaRevisionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 55743761434e..cea16a7e6b26 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index d8728e99970f..0b8eb8c94b42 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSchemasRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 44683e3f53c7..eb6b7c8cd4e7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index bbdfbc82d480..4a7c6da09d37 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSchemasResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 79ec013a9b44..e375b23129ef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 05f0505adee9..6add8724c391 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSnapshotsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 1c9846664659..5fa3caa84fc6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 0c3fc0c72d55..3a0fc2f18cf2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSnapshotsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 9097f6578d2a..0d1033830660 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index d557e4be46b7..cf0a23a85610 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSubscriptionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 98d4253175ec..38bcdaa7b864 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 74d60d6a7a51..9702ee6a8529 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListSubscriptionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index b3418a718b53..04d59ac071f6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 505e00fe2b36..ed7e3b6ba35e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicSnapshotsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 2b6561aa6e87..9e0ddfe5a4ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index abbe62fa5681..d8fa52928961 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicSnapshotsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 01ba987d2e9c..1cd0ec4d9388 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index bf8a6cd5a208..f566e81cfe58 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicSubscriptionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index e139fec3041b..3b1394a941f8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 942228db785d..b1d983699d62 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicSubscriptionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 0bb992da2375..49f2b04d779d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 8abf06b9616d..2207da516ac1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index d4541e1a5bdb..1ddab4ffe8c5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 42d7bcb44ccc..fa0fc598b13e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ListTopicsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index eb2f9ffbff53..8b59c4383ee7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index bc798cf5b351..50763bc80c8a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface MessageStoragePolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 0e876c7b520b..58c76b3cb037 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index ebc7adb1217c..3286db14ce52 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ModifyAckDeadlineRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 149b4c6b700b..8cb3d6f3b548 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ModifyPushConfigRequest.Builder.class); } + private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -140,7 +142,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { */ @java.lang.Override public boolean hasPushConfig() { - return pushConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -200,7 +202,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); } - if (pushConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPushConfig()); } getUnknownFields().writeTo(output); @@ -215,7 +217,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); } - if (pushConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPushConfig()); } size += getUnknownFields().getSerializedSize(); @@ -385,10 +387,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.ModifyPushConfigRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPushConfigFieldBuilder(); + } } @java.lang.Override @@ -440,9 +451,12 @@ private void buildPartial0(com.google.pubsub.v1.ModifyPushConfigRequest result) if (((from_bitField0_ & 0x00000001) != 0)) { result.subscription_ = subscription_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.pushConfig_ = pushConfigBuilder_ == null ? pushConfig_ : pushConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -808,8 +822,10 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { } else { pushConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (pushConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 070e63226fac..15f80a19be3b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ModifyPushConfigRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index d04475ab0515..64195e3fcec1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 69e13fab3b96..0c0b2828ae3f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index c4309802a593..46faa9c9301c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PublishRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index dcc525d03323..2d8fc0182a21 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index a657c199d188..1d7365285b44 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PublishResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 8f310f54c46b..493f01ccec87 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -63,7 +64,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetAttributes(); @@ -82,6 +84,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.PubsubMessage.Builder.class); } + private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** @@ -289,7 +292,7 @@ public com.google.protobuf.ByteString getMessageIdBytes() { */ @java.lang.Override public boolean hasPublishTime() { - return publishTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -411,7 +414,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageId_); } - if (publishTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPublishTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) { @@ -442,7 +445,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageId_); } - if (publishTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPublishTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) { @@ -621,7 +624,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetAttributes(); @@ -631,7 +635,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableAttributes(); @@ -651,10 +656,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.pubsub.v1.PubsubMessage.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPublishTimeFieldBuilder(); + } } @java.lang.Override @@ -715,13 +729,16 @@ private void buildPartial0(com.google.pubsub.v1.PubsubMessage result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.messageId_ = messageId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.publishTime_ = publishTimeBuilder_ == null ? publishTime_ : publishTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.orderingKey_ = orderingKey_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1346,8 +1363,10 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) { } else { publishTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (publishTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 2736aca97b2a..1509232e73a7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PubsubMessageOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 971dec18f1d8..68742839540e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public final class PubsubProto { @@ -292,366 +293,362 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/protobuf/empty.proto\032 google/protob" + "uf/field_mask.proto\032\037google/protobuf/tim" + "estamp.proto\032\035google/pubsub/v1/schema.pr" - + "oto\"c\n\024MessageStoragePolicy\022)\n\033allowed_p" - + "ersistence_regions\030\001 \003(\tB\004\342A\001\001\022 \n\022enforc" - + "e_in_transit\030\002 \001(\010B\004\342A\001\001\"\274\001\n\016SchemaSetti" - + "ngs\0225\n\006schema\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.goo" - + "gleapis.com/Schema\0222\n\010encoding\030\002 \001(\0162\032.g" - + "oogle.pubsub.v1.EncodingB\004\342A\001\001\022\037\n\021first_" - + "revision_id\030\003 \001(\tB\004\342A\001\001\022\036\n\020last_revision" - + "_id\030\004 \001(\tB\004\342A\001\001\"\360\003\n\033IngestionDataSourceS" - + "ettings\022U\n\013aws_kinesis\030\001 \001(\01328.google.pu" - + "bsub.v1.IngestionDataSourceSettings.AwsK" - + "inesisB\004\342A\001\001H\000\032\357\002\n\nAwsKinesis\022S\n\005state\030\001" - + " \001(\0162>.google.pubsub.v1.IngestionDataSou" - + "rceSettings.AwsKinesis.StateB\004\342A\001\003\022\030\n\nst" - + "ream_arn\030\002 \001(\tB\004\342A\001\002\022\032\n\014consumer_arn\030\003 \001" - + "(\tB\004\342A\001\002\022\032\n\014aws_role_arn\030\004 \001(\tB\004\342A\001\002\022!\n\023" - + "gcp_service_account\030\005 \001(\tB\004\342A\001\002\"\226\001\n\005Stat" - + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031" - + "KINESIS_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_P" - + "ERMISSION_DENIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004" - + "\022\026\n\022CONSUMER_NOT_FOUND\020\005B\010\n\006source\"\303\005\n\005T" - + "opic\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0229\n\006labels\030\002 \003(\013" - + "2#.google.pubsub.v1.Topic.LabelsEntryB\004\342" - + "A\001\001\022L\n\026message_storage_policy\030\003 \001(\0132&.go" - + "ogle.pubsub.v1.MessageStoragePolicyB\004\342A\001" - + "\001\022\032\n\014kms_key_name\030\005 \001(\tB\004\342A\001\001\022?\n\017schema_" - + "settings\030\006 \001(\0132 .google.pubsub.v1.Schema" - + "SettingsB\004\342A\001\001\022\033\n\rsatisfies_pzs\030\007 \001(\010B\004\342" - + "A\001\001\022C\n\032message_retention_duration\030\010 \001(\0132" - + "\031.google.protobuf.DurationB\004\342A\001\001\0222\n\005stat" - + "e\030\t \001(\0162\035.google.pubsub.v1.Topic.StateB\004" - + "\342A\001\003\022[\n\036ingestion_data_source_settings\030\n" - + " \001(\0132-.google.pubsub.v1.IngestionDataSou" - + "rceSettingsB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State\022\025\n\021STA" - + "TE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030INGESTIO" - + "N_RESOURCE_ERROR\020\002:T\352AQ\n\033pubsub.googleap" - + "is.com/Topic\022!projects/{project}/topics/" - + "{topic}\022\017_deleted-topic_\"\203\002\n\rPubsubMessa" - + "ge\022\022\n\004data\030\001 \001(\014B\004\342A\001\001\022I\n\nattributes\030\002 \003" - + "(\0132/.google.pubsub.v1.PubsubMessage.Attr" - + "ibutesEntryB\004\342A\001\001\022\022\n\nmessage_id\030\003 \001(\t\0220\n" - + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022\032\n\014ordering_key\030\005 \001(\tB\004\342A\001\001\0321\n\017A" - + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"F\n\017GetTopicRequest\0223\n\005topic\030\001 \001(\t" - + "B$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Topic\"y" - + "\n\022UpdateTopicRequest\022,\n\005topic\030\001 \001(\0132\027.go" - + "ogle.pubsub.v1.TopicB\004\342A\001\002\0225\n\013update_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001" - + "\002\"~\n\016PublishRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002" - + "\372A\035\n\033pubsub.googleapis.com/Topic\0227\n\010mess" - + "ages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMess" - + "ageB\004\342A\001\002\",\n\017PublishResponse\022\031\n\013message_" - + "ids\030\001 \003(\tB\004\342A\001\001\"\215\001\n\021ListTopicsRequest\022E\n" - + "\007project\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" - + "nager.googleapis.com/Project\022\027\n\tpage_siz" - + "e\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"" - + "b\n\022ListTopicsResponse\022-\n\006topics\030\001 \003(\0132\027." - + "google.pubsub.v1.TopicB\004\342A\001\001\022\035\n\017next_pag" - + "e_token\030\002 \001(\tB\004\342A\001\001\"\207\001\n\035ListTopicSubscri" - + "ptionsRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" - + "ubsub.googleapis.com/Topic\022\027\n\tpage_size\030" - + "\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\203\001" - + "\n\036ListTopicSubscriptionsResponse\022B\n\rsubs" - + "criptions\030\001 \003(\tB+\342A\001\001\372A$\n\"pubsub.googlea" - + "pis.com/Subscription\022\035\n\017next_page_token\030" - + "\002 \001(\tB\004\342A\001\001\"\203\001\n\031ListTopicSnapshotsReques" - + "t\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033pubsub.google" - + "apis.com/Topic\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022" - + "\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"T\n\032ListTopicSn" - + "apshotsResponse\022\027\n\tsnapshots\030\001 \003(\tB\004\342A\001\001" - + "\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"I\n\022Delet" - + "eTopicRequest\0223\n\005topic\030\001 \001(\tB$\342A\001\002\372A\035\n\033p" - + "ubsub.googleapis.com/Topic\"^\n\031DetachSubs" - + "criptionRequest\022A\n\014subscription\030\001 \001(\tB+\342" - + "A\001\002\372A$\n\"pubsub.googleapis.com/Subscripti" - + "on\"\034\n\032DetachSubscriptionResponse\"\201\t\n\014Sub" - + "scription\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223\n\005topic\030\002" - + " \001(\tB$\342A\001\002\372A\035\n\033pubsub.googleapis.com/Top" - + "ic\0227\n\013push_config\030\004 \001(\0132\034.google.pubsub." - + "v1.PushConfigB\004\342A\001\001\022?\n\017bigquery_config\030\022" - + " \001(\0132 .google.pubsub.v1.BigQueryConfigB\004" - + "\342A\001\001\022H\n\024cloud_storage_config\030\026 \001(\0132$.goo" - + "gle.pubsub.v1.CloudStorageConfigB\004\342A\001\001\022\"" - + "\n\024ack_deadline_seconds\030\005 \001(\005B\004\342A\001\001\022#\n\025re" - + "tain_acked_messages\030\007 \001(\010B\004\342A\001\001\022C\n\032messa" - + "ge_retention_duration\030\010 \001(\0132\031.google.pro" - + "tobuf.DurationB\004\342A\001\001\022@\n\006labels\030\t \003(\0132*.g" - + "oogle.pubsub.v1.Subscription.LabelsEntry" - + "B\004\342A\001\001\022%\n\027enable_message_ordering\030\n \001(\010B" - + "\004\342A\001\001\022C\n\021expiration_policy\030\013 \001(\0132\".googl" - + "e.pubsub.v1.ExpirationPolicyB\004\342A\001\001\022\024\n\006fi" - + "lter\030\014 \001(\tB\004\342A\001\001\022D\n\022dead_letter_policy\030\r" - + " \001(\0132\".google.pubsub.v1.DeadLetterPolicy" - + "B\004\342A\001\001\0229\n\014retry_policy\030\016 \001(\0132\035.google.pu" - + "bsub.v1.RetryPolicyB\004\342A\001\001\022\026\n\010detached\030\017 " - + "\001(\010B\004\342A\001\001\022*\n\034enable_exactly_once_deliver" - + "y\030\020 \001(\010B\004\342A\001\001\022I\n topic_message_retention" - + "_duration\030\021 \001(\0132\031.google.protobuf.Durati" - + "onB\004\342A\001\003\0229\n\005state\030\023 \001(\0162$.google.pubsub." - + "v1.Subscription.StateB\004\342A\001\003\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022" - + "\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub.googleap" - + "is.com/Subscription\022/projects/{project}/" - + "subscriptions/{subscription}\"\201\001\n\013RetryPo" - + "licy\0228\n\017minimum_backoff\030\001 \001(\0132\031.google.p" - + "rotobuf.DurationB\004\342A\001\001\0228\n\017maximum_backof" - + "f\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001" - + "\"X\n\020DeadLetterPolicy\022\037\n\021dead_letter_topi" - + "c\030\001 \001(\tB\004\342A\001\001\022#\n\025max_delivery_attempts\030\002" - + " \001(\005B\004\342A\001\001\"@\n\020ExpirationPolicy\022,\n\003ttl\030\001 " - + "\001(\0132\031.google.protobuf.DurationB\004\342A\001\001\"\242\004\n" - + "\nPushConfig\022\033\n\rpush_endpoint\030\001 \001(\tB\004\342A\001\001" - + "\022F\n\nattributes\030\002 \003(\0132,.google.pubsub.v1." - + "PushConfig.AttributesEntryB\004\342A\001\001\022B\n\noidc" - + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" - + "ig.OidcTokenB\004\342A\001\001H\000\022J\n\016pubsub_wrapper\030\004" - + " \001(\0132*.google.pubsub.v1.PushConfig.Pubsu" - + "bWrapperB\004\342A\001\001H\001\022B\n\nno_wrapper\030\005 \001(\0132&.g" - + "oogle.pubsub.v1.PushConfig.NoWrapperB\004\342A" - + "\001\001H\001\032H\n\tOidcToken\022#\n\025service_account_ema" - + "il\030\001 \001(\tB\004\342A\001\001\022\026\n\010audience\030\002 \001(\tB\004\342A\001\001\032\017" - + "\n\rPubsubWrapper\032)\n\tNoWrapper\022\034\n\016write_me" - + "tadata\030\001 \001(\010B\004\342A\001\001\0321\n\017AttributesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authent" - + "ication_methodB\t\n\007wrapper\"\360\002\n\016BigQueryCo" - + "nfig\022\023\n\005table\030\001 \001(\tB\004\342A\001\001\022\036\n\020use_topic_s" - + "chema\030\002 \001(\010B\004\342A\001\001\022\034\n\016write_metadata\030\003 \001(" - + "\010B\004\342A\001\001\022!\n\023drop_unknown_fields\030\004 \001(\010B\004\342A" - + "\001\001\022;\n\005state\030\005 \001(\0162&.google.pubsub.v1.Big" - + "QueryConfig.StateB\004\342A\001\003\022\036\n\020use_table_sch" - + "ema\030\006 \001(\010B\004\342A\001\001\"\212\001\n\005State\022\025\n\021STATE_UNSPE" - + "CIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIE" - + "D\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022" - + "#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\327\004\n" - + "\022CloudStorageConfig\022\024\n\006bucket\030\001 \001(\tB\004\342A\001" - + "\002\022\035\n\017filename_prefix\030\002 \001(\tB\004\342A\001\001\022\035\n\017file" - + "name_suffix\030\003 \001(\tB\004\342A\001\001\022L\n\013text_config\030\004" - + " \001(\0132/.google.pubsub.v1.CloudStorageConf" - + "ig.TextConfigB\004\342A\001\001H\000\022L\n\013avro_config\030\005 \001" - + "(\0132/.google.pubsub.v1.CloudStorageConfig" - + ".AvroConfigB\004\342A\001\001H\000\0225\n\014max_duration\030\006 \001(" - + "\0132\031.google.protobuf.DurationB\004\342A\001\001\022\027\n\tma" - + "x_bytes\030\007 \001(\003B\004\342A\001\001\022?\n\005state\030\t \001(\0162*.goo" - + "gle.pubsub.v1.CloudStorageConfig.StateB\004" - + "\342A\001\003\032\014\n\nTextConfig\032*\n\nAvroConfig\022\034\n\016writ" - + "e_metadata\030\001 \001(\010B\004\342A\001\001\"u\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION" - + "_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_L" - + "OCATION_RESTRICTION\020\004B\017\n\routput_format\"\177" - + "\n\017ReceivedMessage\022\024\n\006ack_id\030\001 \001(\tB\004\342A\001\001\022" - + "6\n\007message\030\002 \001(\0132\037.google.pubsub.v1.Pubs" - + "ubMessageB\004\342A\001\001\022\036\n\020delivery_attempt\030\003 \001(" - + "\005B\004\342A\001\001\"[\n\026GetSubscriptionRequest\022A\n\014sub" - + "scription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googlea" - + "pis.com/Subscription\"\216\001\n\031UpdateSubscript" - + "ionRequest\022:\n\014subscription\030\001 \001(\0132\036.googl" - + "e.pubsub.v1.SubscriptionB\004\342A\001\002\0225\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" - + "\004\342A\001\002\"\224\001\n\030ListSubscriptionsRequest\022E\n\007pr" - + "oject\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanag" - + "er.googleapis.com/Project\022\027\n\tpage_size\030\002" - + " \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"w\n\031" - + "ListSubscriptionsResponse\022;\n\rsubscriptio" - + "ns\030\001 \003(\0132\036.google.pubsub.v1.Subscription" - + "B\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\"^\n" - + "\031DeleteSubscriptionRequest\022A\n\014subscripti" - + "on\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com" - + "/Subscription\"\225\001\n\027ModifyPushConfigReques" - + "t\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\0227\n\013push_con" - + "fig\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB" - + "\004\342A\001\002\"\220\001\n\013PullRequest\022A\n\014subscription\030\001 " - + "\001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Subs" - + "cription\022\"\n\022return_immediately\030\002 \001(\010B\006\030\001" - + "\342A\001\001\022\032\n\014max_messages\030\003 \001(\005B\004\342A\001\002\"R\n\014Pull" - + "Response\022B\n\021received_messages\030\001 \003(\0132!.go" - + "ogle.pubsub.v1.ReceivedMessageB\004\342A\001\001\"\230\001\n" - + "\030ModifyAckDeadlineRequest\022A\n\014subscriptio" - + "n\030\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/" - + "Subscription\022\025\n\007ack_ids\030\004 \003(\tB\004\342A\001\002\022\"\n\024a" - + "ck_deadline_seconds\030\003 \001(\005B\004\342A\001\002\"n\n\022Ackno" - + "wledgeRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\022\025\n\007ack_ids\030\002 \003(\tB\004\342A\001\002\"\317\002\n\024StreamingPul" - + "lRequest\022A\n\014subscription\030\001 \001(\tB+\342A\001\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022\025\n\007a" - + "ck_ids\030\002 \003(\tB\004\342A\001\001\022%\n\027modify_deadline_se" - + "conds\030\003 \003(\005B\004\342A\001\001\022%\n\027modify_deadline_ack" - + "_ids\030\004 \003(\tB\004\342A\001\001\022)\n\033stream_ack_deadline_" - + "seconds\030\005 \001(\005B\004\342A\001\002\022\027\n\tclient_id\030\006 \001(\tB\004" - + "\342A\001\001\022&\n\030max_outstanding_messages\030\007 \001(\003B\004" - + "\342A\001\001\022#\n\025max_outstanding_bytes\030\010 \001(\003B\004\342A\001" - + "\001\"\253\006\n\025StreamingPullResponse\022B\n\021received_" - + "messages\030\001 \003(\0132!.google.pubsub.v1.Receiv" - + "edMessageB\004\342A\001\001\022g\n\030acknowledge_confirmat" - + "ion\030\005 \001(\0132?.google.pubsub.v1.StreamingPu" - + "llResponse.AcknowledgeConfirmationB\004\342A\001\001" - + "\022u\n modify_ack_deadline_confirmation\030\003 \001" - + "(\0132E.google.pubsub.v1.StreamingPullRespo" - + "nse.ModifyAckDeadlineConfirmationB\004\342A\001\001\022" - + "e\n\027subscription_properties\030\004 \001(\0132>.googl" - + "e.pubsub.v1.StreamingPullResponse.Subscr" - + "iptionPropertiesB\004\342A\001\001\032\230\001\n\027AcknowledgeCo" - + "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" - + "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022\037\n\021unordered_ac" - + "k_ids\030\003 \003(\tB\004\342A\001\001\022&\n\030temporary_failed_ac" - + "k_ids\030\004 \003(\tB\004\342A\001\001\032}\n\035ModifyAckDeadlineCo" - + "nfirmation\022\025\n\007ack_ids\030\001 \003(\tB\004\342A\001\001\022\035\n\017inv" - + "alid_ack_ids\030\002 \003(\tB\004\342A\001\001\022&\n\030temporary_fa" - + "iled_ack_ids\030\003 \003(\tB\004\342A\001\001\032m\n\026Subscription" - + "Properties\022+\n\035exactly_once_delivery_enab" - + "led\030\001 \001(\010B\004\342A\001\001\022&\n\030message_ordering_enab" - + "led\030\002 \001(\010B\004\342A\001\001\"\213\002\n\025CreateSnapshotReques" - + "t\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googlea" - + "pis.com/Snapshot\022A\n\014subscription\030\002 \001(\tB+" - + "\342A\001\002\372A$\n\"pubsub.googleapis.com/Subscript" - + "ion\022I\n\006labels\030\003 \003(\01323.google.pubsub.v1.C" - + "reateSnapshotRequest.LabelsEntryB\004\342A\001\001\032-" - + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\"\202\001\n\025UpdateSnapshotRequest\0222\n\010snaps" - + "hot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\004\342" - + "A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMaskB\004\342A\001\002\"\305\002\n\010Snapshot\022\022\n\004name\030" - + "\001 \001(\tB\004\342A\001\001\0223\n\005topic\030\002 \001(\tB$\342A\001\001\372A\035\n\033pub" - + "sub.googleapis.com/Topic\0225\n\013expire_time\030" - + "\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\022" - + "<\n\006labels\030\004 \003(\0132&.google.pubsub.v1.Snaps" - + "hot.LabelsEntryB\004\342A\001\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsu" - + "b.googleapis.com/Snapshot\022\'projects/{pro" - + "ject}/snapshots/{snapshot}\"O\n\022GetSnapsho" - + "tRequest\0229\n\010snapshot\030\001 \001(\tB\'\342A\001\002\372A \n\036pub" - + "sub.googleapis.com/Snapshot\"\220\001\n\024ListSnap" - + "shotsRequest\022E\n\007project\030\001 \001(\tB4\342A\001\002\372A-\n+" - + "cloudresourcemanager.googleapis.com/Proj" - + "ect\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" - + "en\030\003 \001(\tB\004\342A\001\001\"k\n\025ListSnapshotsResponse\022" - + "3\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" - + "apshotB\004\342A\001\001\022\035\n\017next_page_token\030\002 \001(\tB\004\342" - + "A\001\001\"R\n\025DeleteSnapshotRequest\0229\n\010snapshot" - + "\030\001 \001(\tB\'\342A\001\002\372A \n\036pubsub.googleapis.com/S" - + "napshot\"\311\001\n\013SeekRequest\022A\n\014subscription\030" - + "\001 \001(\tB+\342A\001\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\0220\n\004time\030\002 \001(\0132\032.google.protob" - + "uf.TimestampB\004\342A\001\001H\000\022;\n\010snapshot\030\003 \001(\tB\'" - + "\342A\001\001\372A \n\036pubsub.googleapis.com/SnapshotH" - + "\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublishe" - + "r\022q\n\013CreateTopic\022\027.google.pubsub.v1.Topi" - + "c\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002" - + "#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTo" - + "picRequest\032\027.google.pubsub.v1.Topic\"C\332A\021" - + "topic,update_mask\202\323\344\223\002)2$/v1/{topic.name" - + "=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .g" - + "oogle.pubsub.v1.PublishRequest\032!.google." - + "pubsub.v1.PublishResponse\"C\332A\016topic,mess" - + "ages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics" - + "/*}:publish:\001*\022w\n\010GetTopic\022!.google.pubs" - + "ub.v1.GetTopicRequest\032\027.google.pubsub.v1" - + ".Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=proje" - + "cts/*/topics/*}\022\212\001\n\nListTopics\022#.google." - + "pubsub.v1.ListTopicsRequest\032$.google.pub" - + "sub.v1.ListTopicsResponse\"1\332A\007project\202\323\344" - + "\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub." - + "v1.ListTopicSubscriptionsRequest\0320.googl" - + "e.pubsub.v1.ListTopicSubscriptionsRespon" - + "se\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/" - + "*/topics/*}/subscriptions\022\252\001\n\022ListTopicS" - + "napshots\022+.google.pubsub.v1.ListTopicSna" - + "pshotsRequest\032,.google.pubsub.v1.ListTop" - + "icSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1" - + "/{topic=projects/*/topics/*}/snapshots\022|" - + "\n\013DeleteTopic\022$.google.pubsub.v1.DeleteT" - + "opicRequest\032\026.google.protobuf.Empty\"/\332A\005" - + "topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topic" - + "s/*}\022\255\001\n\022DetachSubscription\022+.google.pub" - + "sub.v1.DetachSubscriptionRequest\032,.googl" - + "e.pubsub.v1.DetachSubscriptionResponse\"<" - + "\202\323\344\223\0026\"4/v1/{subscription=projects/*/sub" - + "scriptions/*}:detach\032p\312A\025pubsub.googleap" - + "is.com\322AUhttps://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.c" - + "om/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Create" - + "Subscription\022\036.google.pubsub.v1.Subscrip" - + "tion\032\036.google.pubsub.v1.Subscription\"^\332A" - + "+name,topic,push_config,ack_deadline_sec" - + "onds\202\323\344\223\002*\032%/v1/{name=projects/*/subscri" - + "ptions/*}:\001*\022\241\001\n\017GetSubscription\022(.googl" - + "e.pubsub.v1.GetSubscriptionRequest\032\036.goo" - + "gle.pubsub.v1.Subscription\"D\332A\014subscript" - + "ion\202\323\344\223\002/\022-/v1/{subscription=projects/*/" - + "subscriptions/*}\022\273\001\n\022UpdateSubscription\022" - + "+.google.pubsub.v1.UpdateSubscriptionReq" - + "uest\032\036.google.pubsub.v1.Subscription\"X\332A" - + "\030subscription,update_mask\202\323\344\223\002722/v1/{su" - + "bscription.name=projects/*/subscriptions" - + "/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google.pu" - + "bsub.v1.ListSubscriptionsRequest\032+.googl" - + "e.pubsub.v1.ListSubscriptionsResponse\"8\332" - + "A\007project\202\323\344\223\002(\022&/v1/{project=projects/*" - + "}/subscriptions\022\237\001\n\022DeleteSubscription\022+" - + ".google.pubsub.v1.DeleteSubscriptionRequ" - + "est\032\026.google.protobuf.Empty\"D\332A\014subscrip" - + "tion\202\323\344\223\002/*-/v1/{subscription=projects/*" - + "/subscriptions/*}\022\317\001\n\021ModifyAckDeadline\022" - + "*.google.pubsub.v1.ModifyAckDeadlineRequ" - + "est\032\026.google.protobuf.Empty\"v\332A)subscrip" - + "tion,ack_ids,ack_deadline_seconds\202\323\344\223\002D\"" - + "?/v1/{subscription=projects/*/subscripti" - + "ons/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowle" - + "dge\022$.google.pubsub.v1.AcknowledgeReques" - + "t\032\026.google.protobuf.Empty\"[\332A\024subscripti" - + "on,ack_ids\202\323\344\223\002>\"9/v1/{subscription=proj" - + "ects/*/subscriptions/*}:acknowledge:\001*\022\320" - + "\001\n\004Pull\022\035.google.pubsub.v1.PullRequest\032\036" - + ".google.pubsub.v1.PullResponse\"\210\001\332A,subs" - + "cription,return_immediately,max_messages" - + "\332A\031subscription,max_messages\202\323\344\223\0027\"2/v1/" - + "{subscription=projects/*/subscriptions/*" - + "}:pull:\001*\022f\n\rStreamingPull\022&.google.pubs" - + "ub.v1.StreamingPullRequest\032\'.google.pubs" - + "ub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Mo" - + "difyPushConfig\022).google.pubsub.v1.Modify" - + "PushConfigRequest\032\026.google.protobuf.Empt" - + "y\"d\332A\030subscription,push_config\202\323\344\223\002C\">/v" - + "1/{subscription=projects/*/subscriptions" - + "/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022" - + "$.google.pubsub.v1.GetSnapshotRequest\032\032." - + "google.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323" - + "\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots" - + "/*}\022\226\001\n\rListSnapshots\022&.google.pubsub.v1" - + ".ListSnapshotsRequest\032\'.google.pubsub.v1" - + ".ListSnapshotsResponse\"4\332A\007project\202\323\344\223\002$" - + "\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" - + "\016CreateSnapshot\022\'.google.pubsub.v1.Creat" - + "eSnapshotRequest\032\032.google.pubsub.v1.Snap" - + "shot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{n" - + "ame=projects/*/snapshots/*}:\001*\022\243\001\n\016Updat" - + "eSnapshot\022\'.google.pubsub.v1.UpdateSnaps" - + "hotRequest\032\032.google.pubsub.v1.Snapshot\"L" - + "\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{snap" - + "shot.name=projects/*/snapshots/*}:\001*\022\213\001\n" - + "\016DeleteSnapshot\022\'.google.pubsub.v1.Delet" - + "eSnapshotRequest\032\026.google.protobuf.Empty" - + "\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=proje" - + "cts/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pub" - + "sub.v1.SeekRequest\032\036.google.pubsub.v1.Se" - + "ekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:seek:\001*\032p\312A\025pu" - + "bsub.googleapis.com\322AUhttps://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" - + "le.pubsub.v1B\013PubsubProtoP\001Z2cloud.googl" - + "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" - + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" - + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" - + "b\006proto3" + + "oto\"a\n\024MessageStoragePolicy\022(\n\033allowed_p" + + "ersistence_regions\030\001 \003(\tB\003\340A\001\022\037\n\022enforce" + + "_in_transit\030\002 \001(\010B\003\340A\001\"\270\001\n\016SchemaSetting" + + "s\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.google" + + "apis.com/Schema\0221\n\010encoding\030\002 \001(\0162\032.goog" + + "le.pubsub.v1.EncodingB\003\340A\001\022\036\n\021first_revi" + + "sion_id\030\003 \001(\tB\003\340A\001\022\035\n\020last_revision_id\030\004" + + " \001(\tB\003\340A\001\"\352\003\n\033IngestionDataSourceSetting" + + "s\022T\n\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" + + "1.IngestionDataSourceSettings.AwsKinesis" + + "B\003\340A\001H\000\032\352\002\n\nAwsKinesis\022R\n\005state\030\001 \001(\0162>." + + "google.pubsub.v1.IngestionDataSourceSett" + + "ings.AwsKinesis.StateB\003\340A\003\022\027\n\nstream_arn" + + "\030\002 \001(\tB\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031" + + "\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_service" + + "_account\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINESIS_PERM" + + "ISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DE" + + "NIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022CONSUMER" + + "_NOT_FOUND\020\005B\010\n\006source\"\272\005\n\005Topic\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pub" + + "sub.v1.Topic.LabelsEntryB\003\340A\001\022K\n\026message" + + "_storage_policy\030\003 \001(\0132&.google.pubsub.v1" + + ".MessageStoragePolicyB\003\340A\001\022\031\n\014kms_key_na" + + "me\030\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 " + + ".google.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n" + + "\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_ret" + + "ention_duration\030\010 \001(\0132\031.google.protobuf." + + "DurationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pu" + + "bsub.v1.Topic.StateB\003\340A\003\022Z\n\036ingestion_da" + + "ta_source_settings\030\n \001(\0132-.google.pubsub" + + ".v1.IngestionDataSourceSettingsB\003\340A\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006A" + + "CTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:T\352" + + "AQ\n\033pubsub.googleapis.com/Topic\022!project" + + "s/{project}/topics/{topic}\022\017_deleted-top" + + "ic_\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001" + + "\022H\n\nattributes\030\002 \003(\0132/.google.pubsub.v1." + + "PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\nme" + + "ssage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022\031\n\014ordering_key" + + "\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicReques" + + "t\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googlea" + + "pis.com/Topic\"w\n\022UpdateTopicRequest\022+\n\005t" + + "opic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005topi" + + "c\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/T" + + "opic\0226\n\010messages\030\002 \003(\0132\037.google.pubsub.v" + + "1.PubsubMessageB\003\340A\002\"+\n\017PublishResponse\022" + + "\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopics" + + "Request\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudr" + + "esourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(" + + "\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006topics\030\001" + + " \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n\017ne" + + "xt_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSu" + + "bscriptionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A" + + "\035\n\033pubsub.googleapis.com/Topic\022\026\n\tpage_s" + + "ize\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"" + + "\201\001\n\036ListTopicSubscriptionsResponse\022A\n\rsu" + + "bscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.google" + + "apis.com/Subscription\022\034\n\017next_page_token" + + "\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsReques" + + "t\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googlea" + + "pis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnaps" + + "hotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017" + + "next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopi" + + "cRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub." + + "googleapis.com/Topic\"]\n\031DetachSubscripti" + + "onRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\"\034\n\032D" + + "etachSubscriptionResponse\"\357\010\n\014Subscripti" + + "on\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A" + + "\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\013pus" + + "h_config\030\004 \001(\0132\034.google.pubsub.v1.PushCo" + + "nfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132 .goo" + + "gle.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n\024clo" + + "ud_storage_config\030\026 \001(\0132$.google.pubsub." + + "v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_deadli" + + "ne_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_me" + + "ssages\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_d" + + "uration\030\010 \001(\0132\031.google.protobuf.Duration" + + "B\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubsub.v1" + + ".Subscription.LabelsEntryB\003\340A\001\022$\n\027enable" + + "_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021expirati" + + "on_policy\030\013 \001(\0132\".google.pubsub.v1.Expir" + + "ationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n" + + "\022dead_letter_policy\030\r \001(\0132\".google.pubsu" + + "b.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry_poli" + + "cy\030\016 \001(\0132\035.google.pubsub.v1.RetryPolicyB" + + "\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_ex" + + "actly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n topic_" + + "message_retention_duration\030\021 \001(\0132\031.googl" + + "e.protobuf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\0162" + + "$.google.pubsub.v1.Subscription.StateB\003\340" + + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020" + + "\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"" + + "pubsub.googleapis.com/Subscription\022/proj" + + "ects/{project}/subscriptions/{subscripti" + + "on}\"\177\n\013RetryPolicy\0227\n\017minimum_backoff\030\001 " + + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\0227\n\017m" + + "aximum_backoff\030\002 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\001\"V\n\020DeadLetterPolicy\022\036\n\021dead" + + "_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_delivery" + + "_attempts\030\002 \001(\005B\003\340A\001\"?\n\020ExpirationPolicy" + + "\022+\n\003ttl\030\001 \001(\0132\031.google.protobuf.Duration" + + "B\003\340A\001\"\232\004\n\nPushConfig\022\032\n\rpush_endpoint\030\001 " + + "\001(\tB\003\340A\001\022E\n\nattributes\030\002 \003(\0132,.google.pu" + + "bsub.v1.PushConfig.AttributesEntryB\003\340A\001\022" + + "A\n\noidc_token\030\003 \001(\0132&.google.pubsub.v1.P" + + "ushConfig.OidcTokenB\003\340A\001H\000\022I\n\016pubsub_wra" + + "pper\030\004 \001(\0132*.google.pubsub.v1.PushConfig" + + ".PubsubWrapperB\003\340A\001H\001\022A\n\nno_wrapper\030\005 \001(" + + "\0132&.google.pubsub.v1.PushConfig.NoWrappe" + + "rB\003\340A\001H\001\032F\n\tOidcToken\022\"\n\025service_account" + + "_email\030\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001(\tB\003\340A\001" + + "\032\017\n\rPubsubWrapper\032(\n\tNoWrapper\022\033\n\016write_" + + "metadata\030\001 \001(\010B\003\340A\001\0321\n\017AttributesEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authen" + + "tication_methodB\t\n\007wrapper\"\352\002\n\016BigQueryC" + + "onfig\022\022\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_topic_s" + + "chema\030\002 \001(\010B\003\340A\001\022\033\n\016write_metadata\030\003 \001(\010" + + "B\003\340A\001\022 \n\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022" + + ":\n\005state\030\005 \001(\0162&.google.pubsub.v1.BigQue" + + "ryConfig.StateB\003\340A\003\022\035\n\020use_table_schema\030" + + "\006 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r" + + "\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN" + + "_TRANSIT_LOCATION_RESTRICTION\020\005\"\316\004\n\022Clou" + + "dStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017f" + + "ilename_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_su" + + "ffix\030\003 \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.g" + + "oogle.pubsub.v1.CloudStorageConfig.TextC" + + "onfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.goog" + + "le.pubsub.v1.CloudStorageConfig.AvroConf" + + "igB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google" + + ".protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001" + + "(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v" + + "1.CloudStorageConfig.StateB\003\340A\003\032\014\n\nTextC" + + "onfig\032)\n\nAvroConfig\022\033\n\016write_metadata\030\001 " + + "\001(\010B\003\340A\001\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" + + "\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tN" + + "OT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RESTRI" + + "CTION\020\004B\017\n\routput_format\"|\n\017ReceivedMess" + + "age\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(" + + "\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022" + + "\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSub" + + "scriptionRequest\022@\n\014subscription\030\001 \001(\tB*" + + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" + + "on\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subs" + + "cription\030\001 \001(\0132\036.google.pubsub.v1.Subscr" + + "iptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscr" + + "iptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Pro" + + "ject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok" + + "en\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRespon" + + "se\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsu" + + "b.v1.SubscriptionB\003\340A\001\022\034\n\017next_page_toke" + + "n\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionReques" + + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\"\223\001\n\027ModifyPu" + + "shConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" + + "n\0226\n\013push_config\030\002 \001(\0132\034.google.pubsub.v" + + "1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\022!\n\022return_immediatel" + + "y\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A" + + "\002\"Q\n\014PullResponse\022A\n\021received_messages\030\001" + + " \003(\0132!.google.pubsub.v1.ReceivedMessageB" + + "\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A" + + "\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022" + + "AcknowledgeRequest\022@\n\014subscription\030\001 \001(\t" + + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" + + "tion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024Streaming" + + "PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A" + + "$\n\"pubsub.googleapis.com/Subscription\022\024\n" + + "\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_s" + + "econds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack" + + "_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_s" + + "econds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A" + + "\001\022%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001" + + "\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n" + + "\025StreamingPullResponse\022A\n\021received_messa" + + "ges\030\001 \003(\0132!.google.pubsub.v1.ReceivedMes" + + "sageB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 " + + "\001(\0132?.google.pubsub.v1.StreamingPullResp" + + "onse.AcknowledgeConfirmationB\003\340A\001\022t\n mod" + + "ify_ack_deadline_confirmation\030\003 \001(\0132E.go" + + "ogle.pubsub.v1.StreamingPullResponse.Mod" + + "ifyAckDeadlineConfirmationB\003\340A\001\022d\n\027subsc" + + "ription_properties\030\004 \001(\0132>.google.pubsub" + + ".v1.StreamingPullResponse.SubscriptionPr" + + "opertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmatio" + + "n\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_i" + + "ds\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\t" + + "B\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB" + + "\003\340A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n" + + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002" + + " \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 " + + "\003(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035ex" + + "actly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%" + + "\n\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002" + + "\n\025CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340" + + "A\002\372A \n\036pubsub.googleapis.com/Snapshot\022@\n" + + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.goog" + + "leapis.com/Subscription\022H\n\006labels\030\003 \003(\0132" + + "3.google.pubsub.v1.CreateSnapshotRequest" + + ".LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnaps" + + "hotRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pu" + + "bsub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010" + + "Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001" + + "(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\022" + + "4\n\013expire_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.p" + + "ubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001:L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'" + + "projects/{project}/snapshots/{snapshot}\"" + + "N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB" + + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"" + + "\215\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001(" + + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" + + "is.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + + "\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshots" + + "Response\0222\n\tsnapshots\030\001 \003(\0132\032.google.pub" + + "sub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_token\030" + + "\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010s" + + "napshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis" + + ".com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014subscri" + + "ption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.c" + + "om/Subscription\022/\n\004time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001" + + "(\tB&\340A\001\372A \n\036pubsub.googleapis.com/Snapsh" + + "otH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPubli" + + "sher\022q\n\013CreateTopic\022\027.google.pubsub.v1.T" + + "opic\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323" + + "\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022" + + "\221\001\n\013UpdateTopic\022$.google.pubsub.v1.Updat" + + "eTopicRequest\032\027.google.pubsub.v1.Topic\"C" + + "\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{topic.n" + + "ame=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022" + + " .google.pubsub.v1.PublishRequest\032!.goog" + + "le.pubsub.v1.PublishResponse\"C\332A\016topic,m" + + "essages\202\323\344\223\002,\"\'/v1/{topic=projects/*/top" + + "ics/*}:publish:\001*\022w\n\010GetTopic\022!.google.p" + + "ubsub.v1.GetTopicRequest\032\027.google.pubsub" + + ".v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=pr" + + "ojects/*/topics/*}\022\212\001\n\nListTopics\022#.goog" + + "le.pubsub.v1.ListTopicsRequest\032$.google." + + "pubsub.v1.ListTopicsResponse\"1\332A\007project" + + "\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022" + + "\272\001\n\026ListTopicSubscriptions\022/.google.pubs" + + "ub.v1.ListTopicSubscriptionsRequest\0320.go" + + "ogle.pubsub.v1.ListTopicSubscriptionsRes" + + "ponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projec" + + "ts/*/topics/*}/subscriptions\022\252\001\n\022ListTop" + + "icSnapshots\022+.google.pubsub.v1.ListTopic" + + "SnapshotsRequest\032,.google.pubsub.v1.List" + + "TopicSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)" + + "/v1/{topic=projects/*/topics/*}/snapshot" + + "s\022|\n\013DeleteTopic\022$.google.pubsub.v1.Dele" + + "teTopicRequest\032\026.google.protobuf.Empty\"/" + + "\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/to" + + "pics/*}\022\255\001\n\022DetachSubscription\022+.google." + + "pubsub.v1.DetachSubscriptionRequest\032,.go" + + "ogle.pubsub.v1.DetachSubscriptionRespons" + + "e\"<\202\323\344\223\0026\"4/v1/{subscription=projects/*/" + + "subscriptions/*}:detach\032p\312A\025pubsub.googl" + + "eapis.com\322AUhttps://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapi" + + "s.com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Cre" + + "ateSubscription\022\036.google.pubsub.v1.Subsc" + + "ription\032\036.google.pubsub.v1.Subscription\"" + + "^\332A+name,topic,push_config,ack_deadline_" + + "seconds\202\323\344\223\002*\032%/v1/{name=projects/*/subs" + + "criptions/*}:\001*\022\241\001\n\017GetSubscription\022(.go" + + "ogle.pubsub.v1.GetSubscriptionRequest\032\036." + + "google.pubsub.v1.Subscription\"D\332A\014subscr" + + "iption\202\323\344\223\002/\022-/v1/{subscription=projects" + + "/*/subscriptions/*}\022\273\001\n\022UpdateSubscripti" + + "on\022+.google.pubsub.v1.UpdateSubscription" + + "Request\032\036.google.pubsub.v1.Subscription\"" + + "X\332A\030subscription,update_mask\202\323\344\223\002722/v1/" + + "{subscription.name=projects/*/subscripti" + + "ons/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google" + + ".pubsub.v1.ListSubscriptionsRequest\032+.go" + + "ogle.pubsub.v1.ListSubscriptionsResponse" + + "\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=project" + + "s/*}/subscriptions\022\237\001\n\022DeleteSubscriptio" + + "n\022+.google.pubsub.v1.DeleteSubscriptionR" + + "equest\032\026.google.protobuf.Empty\"D\332A\014subsc" + + "ription\202\323\344\223\002/*-/v1/{subscription=project" + + "s/*/subscriptions/*}\022\317\001\n\021ModifyAckDeadli" + + "ne\022*.google.pubsub.v1.ModifyAckDeadlineR" + + "equest\032\026.google.protobuf.Empty\"v\332A)subsc" + + "ription,ack_ids,ack_deadline_seconds\202\323\344\223" + + "\002D\"?/v1/{subscription=projects/*/subscri" + + "ptions/*}:modifyAckDeadline:\001*\022\250\001\n\013Ackno" + + "wledge\022$.google.pubsub.v1.AcknowledgeReq" + + "uest\032\026.google.protobuf.Empty\"[\332A\024subscri" + + "ption,ack_ids\202\323\344\223\002>\"9/v1/{subscription=p" + + "rojects/*/subscriptions/*}:acknowledge:\001" + + "*\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullReques" + + "t\032\036.google.pubsub.v1.PullResponse\"\210\001\332A,s" + + "ubscription,return_immediately,max_messa" + + "ges\332A\031subscription,max_messages\202\323\344\223\0027\"2/" + + "v1/{subscription=projects/*/subscription" + + "s/*}:pull:\001*\022f\n\rStreamingPull\022&.google.p" + + "ubsub.v1.StreamingPullRequest\032\'.google.p" + + "ubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" + + "\020ModifyPushConfig\022).google.pubsub.v1.Mod" + + "ifyPushConfigRequest\032\026.google.protobuf.E" + + "mpty\"d\332A\030subscription,push_config\202\323\344\223\002C\"" + + ">/v1/{subscription=projects/*/subscripti" + + "ons/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapsh" + + "ot\022$.google.pubsub.v1.GetSnapshotRequest" + + "\032\032.google.pubsub.v1.Snapshot\"8\332A\010snapsho" + + "t\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsh" + + "ots/*}\022\226\001\n\rListSnapshots\022&.google.pubsub" + + ".v1.ListSnapshotsRequest\032\'.google.pubsub" + + ".v1.ListSnapshotsResponse\"4\332A\007project\202\323\344" + + "\223\002$\022\"/v1/{project=projects/*}/snapshots\022" + + "\227\001\n\016CreateSnapshot\022\'.google.pubsub.v1.Cr" + + "eateSnapshotRequest\032\032.google.pubsub.v1.S" + + "napshot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1" + + "/{name=projects/*/snapshots/*}:\001*\022\243\001\n\016Up" + + "dateSnapshot\022\'.google.pubsub.v1.UpdateSn" + + "apshotRequest\032\032.google.pubsub.v1.Snapsho" + + "t\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{s" + + "napshot.name=projects/*/snapshots/*}:\001*\022" + + "\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.De" + + "leteSnapshotRequest\032\026.google.protobuf.Em" + + "pty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=pr" + + "ojects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google." + + "pubsub.v1.SeekRequest\032\036.google.pubsub.v1" + + ".SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscription" + + "=projects/*/subscriptions/*}:seek:\001*\032p\312A" + + "\025pubsub.googleapis.com\322AUhttps://www.goo" + + "gleapis.com/auth/cloud-platform,https://" + + "www.googleapis.com/auth/pubsubB\252\001\n\024com.g" + + "oogle.pubsub.v1B\013PubsubProtoP\001Z2cloud.go" + + "ogle.com/go/pubsub/apiv1/pubsubpb;pubsub" + + "pb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\" + + "Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 7375cea5d480..49e0f1204090 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -136,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1359 + * google/pubsub/v1/pubsub.proto;l=1358 * @return The returnImmediately. */ @java.lang.Override @@ -687,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1359 + * google/pubsub/v1/pubsub.proto;l=1358 * @return The returnImmediately. */ @java.lang.Override @@ -713,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1359 + * google/pubsub/v1/pubsub.proto;l=1358 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -743,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1359 + * google/pubsub/v1/pubsub.proto;l=1358 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 4f2b226c5018..bcc0846fab10 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PullRequestOrBuilder @@ -71,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1359 + * google/pubsub/v1/pubsub.proto;l=1358 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 2b68241833ad..f63d9e26be85 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 39112729e423..dd54132aab25 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PullResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 074068dc41ab..01c977f883d0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -53,7 +54,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetAttributes(); @@ -2759,7 +2761,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetAttributes(); @@ -2769,7 +2772,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableAttributes(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index b39c32241740..6fa337bfdcc4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface PushConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 8fd798b36af8..c29968fa1235 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ReceivedMessage.Builder.class); } + private int bitField0_; public static final int ACK_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getAckIdBytes() { */ @java.lang.Override public boolean hasMessage() { - return message_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -212,7 +214,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackId_); } - if (message_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getMessage()); } if (deliveryAttempt_ != 0) { @@ -230,7 +232,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ackId_); } - if (message_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMessage()); } if (deliveryAttempt_ != 0) { @@ -404,10 +406,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.ReceivedMessage.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMessageFieldBuilder(); + } } @java.lang.Override @@ -459,12 +470,15 @@ private void buildPartial0(com.google.pubsub.v1.ReceivedMessage result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.ackId_ = ackId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.deliveryAttempt_ = deliveryAttempt_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -799,8 +813,10 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { } else { messageBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (message_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index e8b2c0622e08..c264dbcffba2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ReceivedMessageOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 31375806dc78..1d732b864693 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.RetryPolicy.class, com.google.pubsub.v1.RetryPolicy.Builder.class); } + private int bitField0_; public static final int MINIMUM_BACKOFF_FIELD_NUMBER = 1; private com.google.protobuf.Duration minimumBackoff_; /** @@ -85,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasMinimumBackoff() { - return minimumBackoff_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -142,7 +144,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { */ @java.lang.Override public boolean hasMaximumBackoff() { - return maximumBackoff_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -197,10 +199,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (minimumBackoff_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMinimumBackoff()); } - if (maximumBackoff_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMaximumBackoff()); } getUnknownFields().writeTo(output); @@ -212,10 +214,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (minimumBackoff_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinimumBackoff()); } - if (maximumBackoff_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaximumBackoff()); } size += getUnknownFields().getSerializedSize(); @@ -398,10 +400,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.RetryPolicy.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMinimumBackoffFieldBuilder(); + getMaximumBackoffFieldBuilder(); + } } @java.lang.Override @@ -453,14 +465,18 @@ public com.google.pubsub.v1.RetryPolicy buildPartial() { private void buildPartial0(com.google.pubsub.v1.RetryPolicy result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.minimumBackoff_ = minimumBackoffBuilder_ == null ? minimumBackoff_ : minimumBackoffBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maximumBackoff_ = maximumBackoffBuilder_ == null ? maximumBackoff_ : maximumBackoffBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -688,8 +704,10 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { } else { minimumBackoffBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (minimumBackoff_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -903,8 +921,10 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { } else { maximumBackoffBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (maximumBackoff_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 42cfa2210391..243fada307ce 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface RetryPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 3b9f46ddca5f..c35c26333314 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 992986674fff..4ee8574d4224 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface RollbackSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 1eef47c396af..3966a39d4fd6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -220,6 +221,7 @@ private Type(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Schema.Type) } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -434,7 +436,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { */ @java.lang.Override public boolean hasRevisionCreateTime() { - return revisionCreateTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -499,7 +501,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, revisionId_); } - if (revisionCreateTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getRevisionCreateTime()); } getUnknownFields().writeTo(output); @@ -523,7 +525,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); } - if (revisionCreateTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRevisionCreateTime()); } size += getUnknownFields().getSerializedSize(); @@ -698,10 +700,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.Schema.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRevisionCreateTimeFieldBuilder(); + } } @java.lang.Override @@ -763,12 +774,15 @@ private void buildPartial0(com.google.pubsub.v1.Schema result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.revisionId_ = revisionId_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.revisionCreateTime_ = revisionCreateTimeBuilder_ == null ? revisionCreateTime_ : revisionCreateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1457,8 +1471,10 @@ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { } else { revisionCreateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (revisionCreateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java index 2d8968ddf28e..d4bb6fa5fb70 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index d16516796cbd..10e502b3370e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SchemaOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index d04c35cb0149..a9aa772115ea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public final class SchemaProto { @@ -101,107 +102,106 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027google/api/client.proto\032\037google/api/fie" + "ld_behavior.proto\032\031google/api/resource.p" + "roto\032\033google/protobuf/empty.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\276\002\n\006Schema\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\002\022+\n\004type\030\002 \001(\0162\035.google" - + ".pubsub.v1.Schema.Type\022\022\n\ndefinition\030\003 \001" - + "(\t\022\032\n\013revision_id\030\004 \001(\tB\005\342A\002\005\003\022>\n\024revisi" + + "e/protobuf/timestamp.proto\"\275\002\n\006Schema\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022+\n\004type\030\002 \001(\0162\035.google." + + "pubsub.v1.Schema.Type\022\022\n\ndefinition\030\003 \001(" + + "\t\022\033\n\013revision_id\030\004 \001(\tB\006\340A\005\340A\003\022=\n\024revisi" + "on_create_time\030\006 \001(\0132\032.google.protobuf.T" - + "imestampB\004\342A\001\003\";\n\004Type\022\024\n\020TYPE_UNSPECIFI" - + "ED\020\000\022\023\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC" - + "\n\034pubsub.googleapis.com/Schema\022#projects" - + "/{project}/schemas/{schema}\"\217\001\n\023CreateSc" - + "hemaRequest\0225\n\006parent\030\001 \001(\tB%\342A\001\002\372A\036\022\034pu" - + "bsub.googleapis.com/Schema\022.\n\006schema\030\002 \001" - + "(\0132\030.google.pubsub.v1.SchemaB\004\342A\001\002\022\021\n\tsc" - + "hema_id\030\003 \001(\t\"s\n\020GetSchemaRequest\0223\n\004nam" - + "e\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/" - + "Schema\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1." - + "SchemaView\"\255\001\n\022ListSchemasRequest\022D\n\006par" - + "ent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanager" - + ".googleapis.com/Project\022*\n\004view\030\002 \001(\0162\034." - + "google.pubsub.v1.SchemaView\022\021\n\tpage_size" - + "\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"Y\n\023ListSchema" - + "sResponse\022)\n\007schemas\030\001 \003(\0132\030.google.pubs" - + "ub.v1.Schema\022\027\n\017next_page_token\030\002 \001(\t\"\244\001" - + "\n\032ListSchemaRevisionsRequest\0223\n\004name\030\001 \001" - + "(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/Schem" - + "a\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1.Schem" - + "aView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004" - + " \001(\t\"a\n\033ListSchemaRevisionsResponse\022)\n\007s" - + "chemas\030\001 \003(\0132\030.google.pubsub.v1.Schema\022\027" - + "\n\017next_page_token\030\002 \001(\t\"z\n\023CommitSchemaR" - + "equest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.go" - + "ogleapis.com/Schema\022.\n\006schema\030\002 \001(\0132\030.go" - + "ogle.pubsub.v1.SchemaB\004\342A\001\002\"g\n\025RollbackS" - + "chemaRequest\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pub" - + "sub.googleapis.com/Schema\022\031\n\013revision_id" - + "\030\002 \001(\tB\004\342A\001\002\"o\n\033DeleteSchemaRevisionRequ" - + "est\0223\n\004name\030\001 \001(\tB%\342A\001\002\372A\036\n\034pubsub.googl" - + "eapis.com/Schema\022\033\n\013revision_id\030\002 \001(\tB\006\030" - + "\001\342A\001\001\"J\n\023DeleteSchemaRequest\0223\n\004name\030\001 \001" - + "(\tB%\342A\001\002\372A\036\n\034pubsub.googleapis.com/Schem" - + "a\"\215\001\n\025ValidateSchemaRequest\022D\n\006parent\030\001 " - + "\001(\tB4\342A\001\002\372A-\n+cloudresourcemanager.googl" - + "eapis.com/Project\022.\n\006schema\030\002 \001(\0132\030.goog" - + "le.pubsub.v1.SchemaB\004\342A\001\002\"\030\n\026ValidateSch" - + "emaResponse\"\213\002\n\026ValidateMessageRequest\022D" - + "\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcema" - + "nager.googleapis.com/Project\0221\n\004name\030\002 \001" - + "(\tB!\372A\036\n\034pubsub.googleapis.com/SchemaH\000\022" - + "*\n\006schema\030\003 \001(\0132\030.google.pubsub.v1.Schem" - + "aH\000\022\017\n\007message\030\004 \001(\014\022,\n\010encoding\030\005 \001(\0162\032" - + ".google.pubsub.v1.EncodingB\r\n\013schema_spe" - + "c\"\031\n\027ValidateMessageResponse*>\n\nSchemaVi" - + "ew\022\033\n\027SCHEMA_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC" - + "\020\001\022\010\n\004FULL\020\002*:\n\010Encoding\022\030\n\024ENCODING_UNS" - + "PECIFIED\020\000\022\010\n\004JSON\020\001\022\n\n\006BINARY\020\0022\210\r\n\rSch" - + "emaService\022\232\001\n\014CreateSchema\022%.google.pub" - + "sub.v1.CreateSchemaRequest\032\030.google.pubs" - + "ub.v1.Schema\"I\332A\027parent,schema,schema_id" - + "\202\323\344\223\002)\"\037/v1/{parent=projects/*}/schemas:" - + "\006schema\022y\n\tGetSchema\022\".google.pubsub.v1." - + "GetSchemaRequest\032\030.google.pubsub.v1.Sche" - + "ma\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=projects/*/" - + "schemas/*}\022\214\001\n\013ListSchemas\022$.google.pubs" - + "ub.v1.ListSchemasRequest\032%.google.pubsub" - + ".v1.ListSchemasResponse\"0\332A\006parent\202\323\344\223\002!" - + "\022\037/v1/{parent=projects/*}/schemas\022\260\001\n\023Li" - + "stSchemaRevisions\022,.google.pubsub.v1.Lis" - + "tSchemaRevisionsRequest\032-.google.pubsub." - + "v1.ListSchemaRevisionsResponse\"<\332A\004name\202" - + "\323\344\223\002/\022-/v1/{name=projects/*/schemas/*}:l" - + "istRevisions\022\220\001\n\014CommitSchema\022%.google.p" - + "ubsub.v1.CommitSchemaRequest\032\030.google.pu" - + "bsub.v1.Schema\"?\332A\013name,schema\202\323\344\223\002+\"&/v" - + "1/{name=projects/*/schemas/*}:commit:\001*\022" - + "\233\001\n\016RollbackSchema\022\'.google.pubsub.v1.Ro" - + "llbackSchemaRequest\032\030.google.pubsub.v1.S" - + "chema\"F\332A\020name,revision_id\202\323\344\223\002-\"(/v1/{n" - + "ame=projects/*/schemas/*}:rollback:\001*\022\252\001" - + "\n\024DeleteSchemaRevision\022-.google.pubsub.v" - + "1.DeleteSchemaRevisionRequest\032\030.google.p" - + "ubsub.v1.Schema\"I\332A\020name,revision_id\202\323\344\223" - + "\0020*./v1/{name=projects/*/schemas/*}:dele" - + "teRevision\022}\n\014DeleteSchema\022%.google.pubs" - + "ub.v1.DeleteSchemaRequest\032\026.google.proto" - + "buf.Empty\".\332A\004name\202\323\344\223\002!*\037/v1/{name=proj" - + "ects/*/schemas/*}\022\250\001\n\016ValidateSchema\022\'.g" - + "oogle.pubsub.v1.ValidateSchemaRequest\032(." - + "google.pubsub.v1.ValidateSchemaResponse\"" - + "C\332A\rparent,schema\202\323\344\223\002-\"(/v1/{parent=pro" - + "jects/*}/schemas:validate:\001*\022\242\001\n\017Validat" - + "eMessage\022(.google.pubsub.v1.ValidateMess" - + "ageRequest\032).google.pubsub.v1.ValidateMe" - + "ssageResponse\":\202\323\344\223\0024\"//v1/{parent=proje" - + "cts/*}/schemas:validateMessage:\001*\032p\312A\025pu" - + "bsub.googleapis.com\322AUhttps://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/pubsubB\252\001\n\024com.goog" - + "le.pubsub.v1B\013SchemaProtoP\001Z2cloud.googl" - + "e.com/go/pubsub/apiv1/pubsubpb;pubsubpb\370" - + "\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Clo" - + "ud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1" - + "b\006proto3" + + "imestampB\003\340A\003\";\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + + "D\020\000\022\023\n\017PROTOCOL_BUFFER\020\001\022\010\n\004AVRO\020\002:F\352AC\n" + + "\034pubsub.googleapis.com/Schema\022#projects/" + + "{project}/schemas/{schema}\"\215\001\n\023CreateSch" + + "emaRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\022\034pubs" + + "ub.googleapis.com/Schema\022-\n\006schema\030\002 \001(\013" + + "2\030.google.pubsub.v1.SchemaB\003\340A\002\022\021\n\tschem" + + "a_id\030\003 \001(\t\"r\n\020GetSchemaRequest\0222\n\004name\030\001" + + " \001(\tB$\340A\002\372A\036\n\034pubsub.googleapis.com/Sche" + + "ma\022*\n\004view\030\002 \001(\0162\034.google.pubsub.v1.Sche" + + "maView\"\254\001\n\022ListSchemasRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022*\n\004view\030\002 \001(\0162\034.googl" + + "e.pubsub.v1.SchemaView\022\021\n\tpage_size\030\003 \001(" + + "\005\022\022\n\npage_token\030\004 \001(\t\"Y\n\023ListSchemasResp" + + "onse\022)\n\007schemas\030\001 \003(\0132\030.google.pubsub.v1" + + ".Schema\022\027\n\017next_page_token\030\002 \001(\t\"\243\001\n\032Lis" + + "tSchemaRevisionsRequest\0222\n\004name\030\001 \001(\tB$\340" + + "A\002\372A\036\n\034pubsub.googleapis.com/Schema\022*\n\004v" + + "iew\030\002 \001(\0162\034.google.pubsub.v1.SchemaView\022" + + "\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"a" + + "\n\033ListSchemaRevisionsResponse\022)\n\007schemas" + + "\030\001 \003(\0132\030.google.pubsub.v1.Schema\022\027\n\017next" + + "_page_token\030\002 \001(\t\"x\n\023CommitSchemaRequest" + + "\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googleapi" + + "s.com/Schema\022-\n\006schema\030\002 \001(\0132\030.google.pu" + + "bsub.v1.SchemaB\003\340A\002\"e\n\025RollbackSchemaReq" + + "uest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googl" + + "eapis.com/Schema\022\030\n\013revision_id\030\002 \001(\tB\003\340" + + "A\002\"m\n\033DeleteSchemaRevisionRequest\0222\n\004nam" + + "e\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.googleapis.com/S" + + "chema\022\032\n\013revision_id\030\002 \001(\tB\005\030\001\340A\001\"I\n\023Del" + + "eteSchemaRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034" + + "pubsub.googleapis.com/Schema\"\213\001\n\025Validat" + + "eSchemaRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+" + + "cloudresourcemanager.googleapis.com/Proj" + + "ect\022-\n\006schema\030\002 \001(\0132\030.google.pubsub.v1.S" + + "chemaB\003\340A\002\"\030\n\026ValidateSchemaResponse\"\212\002\n" + + "\026ValidateMessageRequest\022C\n\006parent\030\001 \001(\tB" + + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" + + ".com/Project\0221\n\004name\030\002 \001(\tB!\372A\036\n\034pubsub." + + "googleapis.com/SchemaH\000\022*\n\006schema\030\003 \001(\0132" + + "\030.google.pubsub.v1.SchemaH\000\022\017\n\007message\030\004" + + " \001(\014\022,\n\010encoding\030\005 \001(\0162\032.google.pubsub.v" + + "1.EncodingB\r\n\013schema_spec\"\031\n\027ValidateMes" + + "sageResponse*>\n\nSchemaView\022\033\n\027SCHEMA_VIE" + + "W_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002*:\n\010" + + "Encoding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\010\n\004JS" + + "ON\020\001\022\n\n\006BINARY\020\0022\210\r\n\rSchemaService\022\232\001\n\014C" + + "reateSchema\022%.google.pubsub.v1.CreateSch" + + "emaRequest\032\030.google.pubsub.v1.Schema\"I\332A" + + "\027parent,schema,schema_id\202\323\344\223\002)\"\037/v1/{par" + + "ent=projects/*}/schemas:\006schema\022y\n\tGetSc" + + "hema\022\".google.pubsub.v1.GetSchemaRequest" + + "\032\030.google.pubsub.v1.Schema\".\332A\004name\202\323\344\223\002" + + "!\022\037/v1/{name=projects/*/schemas/*}\022\214\001\n\013L" + + "istSchemas\022$.google.pubsub.v1.ListSchema" + + "sRequest\032%.google.pubsub.v1.ListSchemasR" + + "esponse\"0\332A\006parent\202\323\344\223\002!\022\037/v1/{parent=pr" + + "ojects/*}/schemas\022\260\001\n\023ListSchemaRevision" + + "s\022,.google.pubsub.v1.ListSchemaRevisions" + + "Request\032-.google.pubsub.v1.ListSchemaRev" + + "isionsResponse\"<\332A\004name\202\323\344\223\002/\022-/v1/{name" + + "=projects/*/schemas/*}:listRevisions\022\220\001\n" + + "\014CommitSchema\022%.google.pubsub.v1.CommitS" + + "chemaRequest\032\030.google.pubsub.v1.Schema\"?" + + "\332A\013name,schema\202\323\344\223\002+\"&/v1/{name=projects" + + "/*/schemas/*}:commit:\001*\022\233\001\n\016RollbackSche" + + "ma\022\'.google.pubsub.v1.RollbackSchemaRequ" + + "est\032\030.google.pubsub.v1.Schema\"F\332A\020name,r" + + "evision_id\202\323\344\223\002-\"(/v1/{name=projects/*/s" + + "chemas/*}:rollback:\001*\022\252\001\n\024DeleteSchemaRe" + + "vision\022-.google.pubsub.v1.DeleteSchemaRe" + + "visionRequest\032\030.google.pubsub.v1.Schema\"" + + "I\332A\020name,revision_id\202\323\344\223\0020*./v1/{name=pr" + + "ojects/*/schemas/*}:deleteRevision\022}\n\014De" + + "leteSchema\022%.google.pubsub.v1.DeleteSche" + + "maRequest\032\026.google.protobuf.Empty\".\332A\004na" + + "me\202\323\344\223\002!*\037/v1/{name=projects/*/schemas/*" + + "}\022\250\001\n\016ValidateSchema\022\'.google.pubsub.v1." + + "ValidateSchemaRequest\032(.google.pubsub.v1" + + ".ValidateSchemaResponse\"C\332A\rparent,schem" + + "a\202\323\344\223\002-\"(/v1/{parent=projects/*}/schemas" + + ":validate:\001*\022\242\001\n\017ValidateMessage\022(.googl" + + "e.pubsub.v1.ValidateMessageRequest\032).goo" + + "gle.pubsub.v1.ValidateMessageResponse\":\202" + + "\323\344\223\0024\"//v1/{parent=projects/*}/schemas:v" + + "alidateMessage:\001*\032p\312A\025pubsub.googleapis." + + "com\322AUhttps://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Sc" + + "hemaProtoP\001Z2cloud.google.com/go/pubsub/" + + "apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026Google.Clou" + + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" + + "oogle::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index fdf613987db5..6542c6f6aaf6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 19823f45f7a2..22df58e9df75 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SchemaSettingsOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 80ca623ebe73..83354637bc60 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 6e6d5f347747..732adf8b5d96 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 54a98d0d9b53..0b5968b3e142 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SeekRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index de422ae442a3..e7ff73bf51ef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 0ad90788f2cc..78d0e1c4c130 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SeekResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index ac68f828df33..61ed093bc3d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -58,7 +59,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 4: return internalGetLabels(); @@ -76,6 +78,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.pubsub.v1.Snapshot.class, com.google.pubsub.v1.Snapshot.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -209,7 +212,7 @@ public com.google.protobuf.ByteString getTopicBytes() { */ @java.lang.Override public boolean hasExpireTime() { - return expireTime_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -386,7 +389,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getExpireTime()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -406,7 +409,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } - if (expireTime_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); } for (java.util.Map.Entry entry : @@ -585,7 +588,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 4: return internalGetLabels(); @@ -595,7 +599,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 4: return internalGetMutableLabels(); @@ -614,10 +619,19 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.pubsub.v1.Snapshot.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExpireTimeFieldBuilder(); + } } @java.lang.Override @@ -672,13 +686,16 @@ private void buildPartial0(com.google.pubsub.v1.Snapshot result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.topic_ = topic_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1195,8 +1212,10 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (expireTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java index 4642f23233d0..4e3ee0846296 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 44cb3d5168d6..d304660a839a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SnapshotOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index cca88533399e..fb0b8c4cd963 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -216,7 +217,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { public static final int MODIFY_DEADLINE_SECONDS_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_; + private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); /** * * @@ -846,7 +847,6 @@ public com.google.pubsub.v1.StreamingPullRequest build() { public com.google.pubsub.v1.StreamingPullRequest buildPartial() { com.google.pubsub.v1.StreamingPullRequest result = new com.google.pubsub.v1.StreamingPullRequest(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -854,14 +854,6 @@ public com.google.pubsub.v1.StreamingPullRequest buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.pubsub.v1.StreamingPullRequest result) { - if (((bitField0_ & 0x00000004) != 0)) { - modifyDeadlineSeconds_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.modifyDeadlineSeconds_ = modifyDeadlineSeconds_; - } - private void buildPartial0(com.google.pubsub.v1.StreamingPullRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -871,6 +863,10 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullRequest result) { ackIds_.makeImmutable(); result.ackIds_ = ackIds_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + modifyDeadlineSeconds_.makeImmutable(); + result.modifyDeadlineSeconds_ = modifyDeadlineSeconds_; + } if (((from_bitField0_ & 0x00000008) != 0)) { modifyDeadlineAckIds_.makeImmutable(); result.modifyDeadlineAckIds_ = modifyDeadlineAckIds_; @@ -952,7 +948,8 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (!other.modifyDeadlineSeconds_.isEmpty()) { if (modifyDeadlineSeconds_.isEmpty()) { modifyDeadlineSeconds_ = other.modifyDeadlineSeconds_; - bitField0_ = (bitField0_ & ~0x00000004); + modifyDeadlineSeconds_.makeImmutable(); + bitField0_ |= 0x00000004; } else { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.addAll(other.modifyDeadlineSeconds_); @@ -1443,10 +1440,10 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); private void ensureModifyDeadlineSecondsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - modifyDeadlineSeconds_ = mutableCopy(modifyDeadlineSeconds_); - bitField0_ |= 0x00000004; + if (!modifyDeadlineSeconds_.isModifiable()) { + modifyDeadlineSeconds_ = makeMutableCopy(modifyDeadlineSeconds_); } + bitField0_ |= 0x00000004; } /** * @@ -1471,9 +1468,8 @@ private void ensureModifyDeadlineSecondsIsMutable() { * @return A list containing the modifyDeadlineSeconds. */ public java.util.List getModifyDeadlineSecondsList() { - return ((bitField0_ & 0x00000004) != 0) - ? java.util.Collections.unmodifiableList(modifyDeadlineSeconds_) - : modifyDeadlineSeconds_; + modifyDeadlineSeconds_.makeImmutable(); + return modifyDeadlineSeconds_; } /** * @@ -1554,6 +1550,7 @@ public Builder setModifyDeadlineSeconds(int index, int value) { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.setInt(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1584,6 +1581,7 @@ public Builder addModifyDeadlineSeconds(int value) { ensureModifyDeadlineSecondsIsMutable(); modifyDeadlineSeconds_.addInt(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1614,6 +1612,7 @@ public Builder addAllModifyDeadlineSeconds( java.lang.Iterable values) { ensureModifyDeadlineSecondsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modifyDeadlineSeconds_); + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 4a35dfcb96a3..392a3b401879 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface StreamingPullRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 98c34b9fdf82..fc79cb7f82bb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -4073,6 +4074,7 @@ public com.google.protobuf.Parser getParserForType() { } } + private int bitField0_; public static final int RECEIVED_MESSAGES_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -4173,7 +4175,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde */ @java.lang.Override public boolean hasAcknowledgeConfirmation() { - return acknowledgeConfirmation_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -4235,7 +4237,7 @@ public boolean hasAcknowledgeConfirmation() { */ @java.lang.Override public boolean hasModifyAckDeadlineConfirmation() { - return modifyAckDeadlineConfirmation_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -4297,7 +4299,7 @@ public boolean hasModifyAckDeadlineConfirmation() { */ @java.lang.Override public boolean hasSubscriptionProperties() { - return subscriptionProperties_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -4355,13 +4357,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < receivedMessages_.size(); i++) { output.writeMessage(1, receivedMessages_.get(i)); } - if (modifyAckDeadlineConfirmation_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getModifyAckDeadlineConfirmation()); } - if (subscriptionProperties_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getSubscriptionProperties()); } - if (acknowledgeConfirmation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getAcknowledgeConfirmation()); } getUnknownFields().writeTo(output); @@ -4376,16 +4378,16 @@ public int getSerializedSize() { for (int i = 0; i < receivedMessages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, receivedMessages_.get(i)); } - if (modifyAckDeadlineConfirmation_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, getModifyAckDeadlineConfirmation()); } - if (subscriptionProperties_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubscriptionProperties()); } - if (acknowledgeConfirmation_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAcknowledgeConfirmation()); } @@ -4577,10 +4579,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.StreamingPullResponse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReceivedMessagesFieldBuilder(); + getAcknowledgeConfirmationFieldBuilder(); + getModifyAckDeadlineConfirmationFieldBuilder(); + getSubscriptionPropertiesFieldBuilder(); + } } @java.lang.Override @@ -4658,24 +4672,29 @@ private void buildPartialRepeatedFields(com.google.pubsub.v1.StreamingPullRespon private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.acknowledgeConfirmation_ = acknowledgeConfirmationBuilder_ == null ? acknowledgeConfirmation_ : acknowledgeConfirmationBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.modifyAckDeadlineConfirmation_ = modifyAckDeadlineConfirmationBuilder_ == null ? modifyAckDeadlineConfirmation_ : modifyAckDeadlineConfirmationBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.subscriptionProperties_ = subscriptionPropertiesBuilder_ == null ? subscriptionProperties_ : subscriptionPropertiesBuilder_.build(); + to_bitField0_ |= 0x00000004; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -5354,8 +5373,10 @@ public Builder mergeAcknowledgeConfirmation( } else { acknowledgeConfirmationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (acknowledgeConfirmation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** @@ -5576,8 +5597,10 @@ public Builder mergeModifyAckDeadlineConfirmation( } else { modifyAckDeadlineConfirmationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (modifyAckDeadlineConfirmation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -5791,8 +5814,10 @@ public Builder mergeSubscriptionProperties( } else { subscriptionPropertiesBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (subscriptionProperties_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index e8968c231017..38c37b680b39 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface StreamingPullResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index f8a13c5f0d4d..8aae021aaddd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -59,7 +60,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 9: return internalGetLabels(); @@ -239,6 +241,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Subscription.State) } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -376,7 +379,7 @@ public com.google.protobuf.ByteString getTopicBytes() { */ @java.lang.Override public boolean hasPushConfig() { - return pushConfig_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -429,7 +432,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { */ @java.lang.Override public boolean hasBigqueryConfig() { - return bigqueryConfig_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -488,7 +491,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() */ @java.lang.Override public boolean hasCloudStorageConfig() { - return cloudStorageConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -610,7 +613,7 @@ public boolean getRetainAckedMessages() { */ @java.lang.Override public boolean hasMessageRetentionDuration() { - return messageRetentionDuration_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -807,7 +810,7 @@ public boolean getEnableMessageOrdering() { */ @java.lang.Override public boolean hasExpirationPolicy() { - return expirationPolicy_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -941,7 +944,7 @@ public com.google.protobuf.ByteString getFilterBytes() { */ @java.lang.Override public boolean hasDeadLetterPolicy() { - return deadLetterPolicy_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1017,7 +1020,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild */ @java.lang.Override public boolean hasRetryPolicy() { - return retryPolicy_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1141,7 +1144,7 @@ public boolean getEnableExactlyOnceDelivery() { */ @java.lang.Override public boolean hasTopicMessageRetentionDuration() { - return topicMessageRetentionDuration_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -1251,7 +1254,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); } - if (pushConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPushConfig()); } if (ackDeadlineSeconds_ != 0) { @@ -1260,7 +1263,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (retainAckedMessages_ != false) { output.writeBool(7, retainAckedMessages_); } - if (messageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getMessageRetentionDuration()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -1268,16 +1271,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableMessageOrdering_ != false) { output.writeBool(10, enableMessageOrdering_); } - if (expirationPolicy_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(11, getExpirationPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, filter_); } - if (deadLetterPolicy_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(13, getDeadLetterPolicy()); } - if (retryPolicy_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(14, getRetryPolicy()); } if (detached_ != false) { @@ -1286,16 +1289,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableExactlyOnceDelivery_ != false) { output.writeBool(16, enableExactlyOnceDelivery_); } - if (topicMessageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(17, getTopicMessageRetentionDuration()); } - if (bigqueryConfig_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(18, getBigqueryConfig()); } if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(19, state_); } - if (cloudStorageConfig_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(22, getCloudStorageConfig()); } getUnknownFields().writeTo(output); @@ -1313,7 +1316,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); } - if (pushConfig_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPushConfig()); } if (ackDeadlineSeconds_ != 0) { @@ -1322,7 +1325,7 @@ public int getSerializedSize() { if (retainAckedMessages_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, retainAckedMessages_); } - if (messageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getMessageRetentionDuration()); @@ -1340,16 +1343,16 @@ public int getSerializedSize() { if (enableMessageOrdering_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableMessageOrdering_); } - if (expirationPolicy_ != null) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, filter_); } - if (deadLetterPolicy_ != null) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeadLetterPolicy()); } - if (retryPolicy_ != null) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRetryPolicy()); } if (detached_ != false) { @@ -1358,18 +1361,18 @@ public int getSerializedSize() { if (enableExactlyOnceDelivery_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, enableExactlyOnceDelivery_); } - if (topicMessageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 17, getTopicMessageRetentionDuration()); } - if (bigqueryConfig_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getBigqueryConfig()); } if (state_ != com.google.pubsub.v1.Subscription.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, state_); } - if (cloudStorageConfig_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getCloudStorageConfig()); } size += getUnknownFields().getSerializedSize(); @@ -1616,7 +1619,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 9: return internalGetLabels(); @@ -1626,7 +1630,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 9: return internalGetMutableLabels(); @@ -1646,10 +1651,26 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.pubsub.v1.Subscription.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPushConfigFieldBuilder(); + getBigqueryConfigFieldBuilder(); + getCloudStorageConfigFieldBuilder(); + getMessageRetentionDurationFieldBuilder(); + getExpirationPolicyFieldBuilder(); + getDeadLetterPolicyFieldBuilder(); + getRetryPolicyFieldBuilder(); + getTopicMessageRetentionDurationFieldBuilder(); + } } @java.lang.Override @@ -1747,18 +1768,22 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.topic_ = topic_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.pushConfig_ = pushConfigBuilder_ == null ? pushConfig_ : pushConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.bigqueryConfig_ = bigqueryConfigBuilder_ == null ? bigqueryConfig_ : bigqueryConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.cloudStorageConfig_ = cloudStorageConfigBuilder_ == null ? cloudStorageConfig_ : cloudStorageConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.ackDeadlineSeconds_ = ackDeadlineSeconds_; @@ -1771,6 +1796,7 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { messageRetentionDurationBuilder_ == null ? messageRetentionDuration_ : messageRetentionDurationBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { result.labels_ = internalGetLabels(); @@ -1782,6 +1808,7 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { if (((from_bitField0_ & 0x00000400) != 0)) { result.expirationPolicy_ = expirationPolicyBuilder_ == null ? expirationPolicy_ : expirationPolicyBuilder_.build(); + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000800) != 0)) { result.filter_ = filter_; @@ -1789,10 +1816,12 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { if (((from_bitField0_ & 0x00001000) != 0)) { result.deadLetterPolicy_ = deadLetterPolicyBuilder_ == null ? deadLetterPolicy_ : deadLetterPolicyBuilder_.build(); + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00002000) != 0)) { result.retryPolicy_ = retryPolicyBuilder_ == null ? retryPolicy_ : retryPolicyBuilder_.build(); + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00004000) != 0)) { result.detached_ = detached_; @@ -1805,10 +1834,12 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { topicMessageRetentionDurationBuilder_ == null ? topicMessageRetentionDuration_ : topicMessageRetentionDurationBuilder_.build(); + to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00020000) != 0)) { result.state_ = state_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2448,8 +2479,10 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { } else { pushConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (pushConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -2654,8 +2687,10 @@ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { } else { bigqueryConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; - onChanged(); + if (bigqueryConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } /** @@ -2866,8 +2901,10 @@ public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig v } else { cloudStorageConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (cloudStorageConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -3270,8 +3307,10 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) } else { messageRetentionDurationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; - onChanged(); + if (messageRetentionDuration_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } return this; } /** @@ -3750,8 +3789,10 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value } else { expirationPolicyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000400; - onChanged(); + if (expirationPolicy_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } return this; } /** @@ -4137,8 +4178,10 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value } else { deadLetterPolicyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00001000; - onChanged(); + if (deadLetterPolicy_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } /** @@ -4396,8 +4439,10 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { } else { retryPolicyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00002000; - onChanged(); + if (retryPolicy_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } return this; } /** @@ -4802,8 +4847,10 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v } else { topicMessageRetentionDurationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00010000; - onChanged(); + if (topicMessageRetentionDuration_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java index ad49b90dddb2..a8731d5c9433 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 7aea7c12d72a..6b57f92f865c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface SubscriptionOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 760ec1fa6dbf..e8ecc6fd255b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -55,7 +56,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -234,6 +236,7 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Topic.State) } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -420,7 +423,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasMessageStoragePolicy() { - return messageStoragePolicy_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -537,7 +540,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { */ @java.lang.Override public boolean hasSchemaSettings() { - return schemaSettings_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -620,7 +623,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasMessageRetentionDuration() { - return messageRetentionDuration_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -717,8 +720,7 @@ public com.google.pubsub.v1.Topic.State getState() { * * *
    -   * Optional. Settings for managed ingestion from a data source into this
    -   * topic.
    +   * Optional. Settings for ingestion from a data source into this topic.
        * 
    * * @@ -729,14 +731,13 @@ public com.google.pubsub.v1.Topic.State getState() { */ @java.lang.Override public boolean hasIngestionDataSourceSettings() { - return ingestionDataSourceSettings_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * * *
    -   * Optional. Settings for managed ingestion from a data source into this
    -   * topic.
    +   * Optional. Settings for ingestion from a data source into this topic.
        * 
    * * @@ -755,8 +756,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe * * *
    -   * Optional. Settings for managed ingestion from a data source into this
    -   * topic.
    +   * Optional. Settings for ingestion from a data source into this topic.
        * 
    * * @@ -790,25 +790,25 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - if (messageStoragePolicy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getMessageStoragePolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kmsKeyName_); } - if (schemaSettings_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getSchemaSettings()); } if (satisfiesPzs_ != false) { output.writeBool(7, satisfiesPzs_); } - if (messageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getMessageRetentionDuration()); } if (state_ != com.google.pubsub.v1.Topic.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } - if (ingestionDataSourceSettings_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getIngestionDataSourceSettings()); } getUnknownFields().writeTo(output); @@ -833,20 +833,20 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__); } - if (messageStoragePolicy_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessageStoragePolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kmsKeyName_); } - if (schemaSettings_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSchemaSettings()); } if (satisfiesPzs_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, satisfiesPzs_); } - if (messageRetentionDuration_ != null) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getMessageRetentionDuration()); @@ -854,7 +854,7 @@ public int getSerializedSize() { if (state_ != com.google.pubsub.v1.Topic.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } - if (ingestionDataSourceSettings_ != null) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getIngestionDataSourceSettings()); @@ -1052,7 +1052,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -1062,7 +1063,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { switch (number) { case 2: return internalGetMutableLabels(); @@ -1081,10 +1083,22 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.pubsub.v1.Topic.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMessageStoragePolicyFieldBuilder(); + getSchemaSettingsFieldBuilder(); + getMessageRetentionDurationFieldBuilder(); + getIngestionDataSourceSettingsFieldBuilder(); + } } @java.lang.Override @@ -1157,11 +1171,13 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.messageStoragePolicy_ = messageStoragePolicyBuilder_ == null ? messageStoragePolicy_ : messageStoragePolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.kmsKeyName_ = kmsKeyName_; @@ -1169,6 +1185,7 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { if (((from_bitField0_ & 0x00000010) != 0)) { result.schemaSettings_ = schemaSettingsBuilder_ == null ? schemaSettings_ : schemaSettingsBuilder_.build(); + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; @@ -1178,6 +1195,7 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { messageRetentionDurationBuilder_ == null ? messageRetentionDuration_ : messageRetentionDurationBuilder_.build(); + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; @@ -1187,7 +1205,9 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { ingestionDataSourceSettingsBuilder_ == null ? ingestionDataSourceSettings_ : ingestionDataSourceSettingsBuilder_.build(); + to_bitField0_ |= 0x00000008; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1798,8 +1818,10 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli } else { messageStoragePolicyBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; - onChanged(); + if (messageStoragePolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } return this; } /** @@ -2128,8 +2150,10 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { } else { schemaSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; - onChanged(); + if (schemaSettings_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } return this; } /** @@ -2426,8 +2450,10 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) } else { messageRetentionDurationBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000040; - onChanged(); + if (messageRetentionDuration_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } return this; } /** @@ -2651,8 +2677,7 @@ public Builder clearState() { * * *
    -     * Optional. Settings for managed ingestion from a data source into this
    -     * topic.
    +     * Optional. Settings for ingestion from a data source into this topic.
          * 
    * * @@ -2668,8 +2693,7 @@ public boolean hasIngestionDataSourceSettings() { * * *
    -     * Optional. Settings for managed ingestion from a data source into this
    -     * topic.
    +     * Optional. Settings for ingestion from a data source into this topic.
          * 
    * * @@ -2691,8 +2715,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe * * *
    -     * Optional. Settings for managed ingestion from a data source into this
    -     * topic.
    +     * Optional. Settings for ingestion from a data source into this topic.
          * 
    * * @@ -2717,8 +2740,7 @@ public Builder setIngestionDataSourceSettings( * * *
    -     * Optional. Settings for managed ingestion from a data source into this
    -     * topic.
    +     * Optional. Settings for ingestion from a data source into this topic.
          * 
    * * @@ -2740,8 +2762,7 @@ public Builder setIngestionDataSourceSettings( * * *
    -     * Optional. Settings for managed ingestion from a data source into this
    -     * topic.
    +     * Optional. Settings for ingestion from a data source into this topic.
          * 
    * * @@ -2762,16 +2783,17 @@ public Builder mergeIngestionDataSourceSettings( } else { ingestionDataSourceSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; - onChanged(); + if (ingestionDataSourceSettings_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } return this; } /** * * *
    -     * Optional. Settings for managed ingestion from a data source into this
    -     * topic.
    +     * Optional. Settings for ingestion from a data source into this topic.
          * 
    * * @@ -2792,8 +2814,7 @@ public Builder clearIngestionDataSourceSettings() { * * *
    -     * Optional. Settings for managed ingestion from a data source into this
    -     * topic.
    +     * Optional. Settings for ingestion from a data source into this topic.
          * 
    * * @@ -2810,8 +2831,7 @@ public Builder clearIngestionDataSourceSettings() { * * *
    -     * Optional. Settings for managed ingestion from a data source into this
    -     * topic.
    +     * Optional. Settings for ingestion from a data source into this topic.
          * 
    * * @@ -2832,8 +2852,7 @@ public Builder clearIngestionDataSourceSettings() { * * *
    -     * Optional. Settings for managed ingestion from a data source into this
    -     * topic.
    +     * Optional. Settings for ingestion from a data source into this topic.
          * 
    * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 6fc356a2bbe4..abae4f031772 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index a644cc3136d9..0e44025b451d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface TopicOrBuilder @@ -350,8 +351,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Optional. Settings for managed ingestion from a data source into this
    -   * topic.
    +   * Optional. Settings for ingestion from a data source into this topic.
        * 
    * * @@ -365,8 +365,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Optional. Settings for managed ingestion from a data source into this
    -   * topic.
    +   * Optional. Settings for ingestion from a data source into this topic.
        * 
    * * @@ -380,8 +379,7 @@ java.lang.String getLabelsOrDefault( * * *
    -   * Optional. Settings for managed ingestion from a data source into this
    -   * topic.
    +   * Optional. Settings for ingestion from a data source into this topic.
        * 
    * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 19b2ed7aadef..69e80a8385d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.UpdateSnapshotRequest.Builder.class); } + private int bitField0_; public static final int SNAPSHOT_FIELD_NUMBER = 1; private com.google.pubsub.v1.Snapshot snapshot_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasSnapshot() { - return snapshot_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -123,7 +125,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -172,10 +174,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (snapshot_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSnapshot()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -187,10 +189,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (snapshot_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshot()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -365,10 +367,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.UpdateSnapshotRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSnapshotFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -421,12 +433,16 @@ public com.google.pubsub.v1.UpdateSnapshotRequest buildPartial() { private void buildPartial0(com.google.pubsub.v1.UpdateSnapshotRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -642,8 +658,10 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { } else { snapshotBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (snapshot_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -837,8 +855,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 442f147ed7ab..daf1d090a9e1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface UpdateSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 744e91a07c13..7f71bf3ace52 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.UpdateSubscriptionRequest.Builder.class); } + private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private com.google.pubsub.v1.Subscription subscription_; /** @@ -77,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasSubscription() { - return subscription_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -133,7 +135,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -182,10 +184,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (subscription_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSubscription()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -197,10 +199,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (subscription_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubscription()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -375,10 +377,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.UpdateSubscriptionRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSubscriptionFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -431,13 +443,17 @@ public com.google.pubsub.v1.UpdateSubscriptionRequest buildPartial() { private void buildPartial0(com.google.pubsub.v1.UpdateSubscriptionRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.subscription_ = subscriptionBuilder_ == null ? subscription_ : subscriptionBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -660,8 +676,10 @@ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { } else { subscriptionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (subscription_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -861,8 +879,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index d812038a424f..9904952bf69e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface UpdateSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 415a8fa8f250..5ce3a927d4cc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -60,6 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.UpdateTopicRequest.Builder.class); } + private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; private com.google.pubsub.v1.Topic topic_; /** @@ -75,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { */ @java.lang.Override public boolean hasTopic() { - return topic_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -126,7 +128,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { */ @java.lang.Override public boolean hasUpdateMask() { - return updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -181,10 +183,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (topic_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getTopic()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getUpdateMask()); } getUnknownFields().writeTo(output); @@ -196,10 +198,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (topic_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTopic()); } - if (updateMask_ != null) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); @@ -373,10 +375,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.UpdateTopicRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTopicFieldBuilder(); + getUpdateMaskFieldBuilder(); + } } @java.lang.Override @@ -429,12 +441,16 @@ public com.google.pubsub.v1.UpdateTopicRequest buildPartial() { private void buildPartial0(com.google.pubsub.v1.UpdateTopicRequest result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.topic_ = topicBuilder_ == null ? topic_ : topicBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -645,8 +661,10 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { } else { topicBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; - onChanged(); + if (topic_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } return this; } /** @@ -850,8 +868,10 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } else { updateMaskBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 825ab31fda11..024f90ccc628 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface UpdateTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index fb823741ce86..8b0bc262a53c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index f4d4702b2b2e..18436cb2db0b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ValidateMessageRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index e56de6312547..77c2d1c4d99b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index b20450cb4b42..2cb87b7fe67e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ValidateMessageResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 8a55996d78dd..d4f978e33c34 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** @@ -62,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.pubsub.v1.ValidateSchemaRequest.Builder.class); } + private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -134,7 +136,7 @@ public com.google.protobuf.ByteString getParentBytes() { */ @java.lang.Override public boolean hasSchema() { - return schema_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -182,7 +184,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSchema()); } getUnknownFields().writeTo(output); @@ -197,7 +199,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (schema_ != null) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } size += getUnknownFields().getSerializedSize(); @@ -367,10 +369,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.ValidateSchemaRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSchemaFieldBuilder(); + } } @java.lang.Override @@ -422,9 +433,12 @@ private void buildPartial0(com.google.pubsub.v1.ValidateSchemaRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -758,8 +772,10 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } else { schemaBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - onChanged(); + if (schema_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } return this; } /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 751ea98d54f5..0f3cf4413512 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ValidateSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 99c7e1d36bbf..3d801baa386f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index 9879319b9fa1..f31accde5e52 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -16,6 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 3.25.2 package com.google.pubsub.v1; public interface ValidateSchemaResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index c548b26808dc..93e1e84a77a8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -183,7 +183,7 @@ message SchemaSettings { message IngestionDataSourceSettings { // Ingestion settings for Amazon Kinesis Data Streams. message AwsKinesis { - // Possible states for managed ingestion from Amazon Kinesis Data Streams. + // Possible states for ingestion from Amazon Kinesis Data Streams. enum State { // Default value. This value is unused. STATE_UNSPECIFIED = 0; @@ -312,8 +312,7 @@ message Topic { // Output only. An output-only field indicating the state of the topic. State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. Settings for managed ingestion from a data source into this - // topic. + // Optional. Settings for ingestion from a data source into this topic. IngestionDataSourceSettings ingestion_data_source_settings = 10 [(google.api.field_behavior) = OPTIONAL]; } From e89dfea408f5f142bec6a74f4966952f8594af65 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 04:03:07 +0100 Subject: [PATCH 1708/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.37.2 (#1918) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 53cd42567760..bbe7f529165f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.37.1 + 2.37.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bc2430778b2f..74b8cc3e0e71 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.37.1 + 2.37.2 com.google.cloud From 5455e9f2c8bb75b38a9f7fb5c40a1e41e6587b88 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 04:05:35 +0100 Subject: [PATCH 1709/2363] test(deps): update dependency org.graalvm.buildtools:junit-platform-native to v0.10.1 (#1927) From 7cd81a8a1203bd64bbef0f9484fe7feb8ccd7f6d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 Feb 2024 23:42:07 +0100 Subject: [PATCH 1710/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.33.0 (#1929) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.33.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 53cd42194a11..f5b1c982a58e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.32.0 + 26.33.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.32.0') +implementation platform('com.google.cloud:libraries-bom:26.33.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 5646266c728d..93d38c764181 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.32.0 + 26.33.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 41c2b38a84b3..926c8afce9ab 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.32.0 + 26.33.0 pom import From 26ce5adbea14e2415ab0c8f8ee7fca9b19e09f0e Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 23 Feb 2024 15:18:16 -0500 Subject: [PATCH 1711/2363] ci: setting up samples_build.yaml (2) (#1930) Enhancing the sample_build.yaml gradually. Current status: - AdminIT failed - DeadLetterQueueIT succeeded - PublisherIT succeeded - SchemaIT succeeded - SubscriberIT succeeded Merging this for now as this has good progress itself. We'll address AdminIT in a subsequent pull request. --- java-pubsub/.cloudbuild/samples_build.yaml | 26 +++++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.cloudbuild/samples_build.yaml b/java-pubsub/.cloudbuild/samples_build.yaml index 1c3ed5366651..2d4a498e397f 100644 --- a/java-pubsub/.cloudbuild/samples_build.yaml +++ b/java-pubsub/.cloudbuild/samples_build.yaml @@ -1,17 +1,31 @@ steps: -- name: gcr.io/cloud-devrel-kokoro-resources/java8 +- name: gcr.io/cloud-devrel-public-resources/java8 entrypoint: ls args: [ '-alt', ] -- name: gcr.io/cloud-devrel-kokoro-resources/java8 +- name: gcr.io/cloud-devrel-public-resources/java8 + entrypoint: curl + args: [ + '--header', + 'Metadata-Flavor: Google', + 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email' + ] +- name: gcr.io/cloud-devrel-public-resources/java8 entrypoint: pwd -- name: gcr.io/cloud-devrel-kokoro-resources/java8 +- name: gcr.io/cloud-devrel-public-resources/java8 entrypoint: bash args: [ - './kokoro/build.sh' + '.kokoro/build.sh' ] env: - 'JOB_TYPE=samples' - -timeout: 300m + - 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample' +- name: gcr.io/cloud-devrel-public-resources/java8 + entrypoint: echo + args: [ + 'Sample job succeeded', + ] +timeout: 3600s +options: + defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET From 2f567ac282db628b11ccbdd384e8352ed57a7bf6 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Wed, 28 Feb 2024 15:18:35 +0000 Subject: [PATCH 1712/2363] feat: next release from main branch is 1.126.0 (#1933) --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index c6976da6a2ad..43fa6c78aebc 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -34,3 +34,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.123.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.125.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 2cd50ab0010c..875095277335 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -152,6 +152,23 @@ branchProtectionRules: - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' + - pattern: 1.125.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (17) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' + - javadoc permissionRules: - team: yoshi-admins permission: admin From a31f145ae9e6ca3badca0e30e0f405627580e0a1 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Wed, 28 Feb 2024 13:26:35 -0500 Subject: [PATCH 1713/2363] feat: Add universe domain support for Java (#1904) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: change assignees for issues and PRs to michaelpri10 * feat: Add setUniverseDomain option for Publisher and Subscriber * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Set default endpoint as null for Subscribers and Publishers * chore: Remove unneeded sample snippet --------- Co-authored-by: Owl Bot --- .../java/com/google/cloud/pubsub/v1/Publisher.java | 10 +++++++++- .../java/com/google/cloud/pubsub/v1/Subscriber.java | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index d0437cb58ae1..efaba6cf1e17 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -185,6 +185,7 @@ private Publisher(Builder builder) throws IOException { .setExecutorProvider(FixedExecutorProvider.create(executor)) .setTransportChannelProvider(builder.channelProvider) .setEndpoint(builder.endpoint) + .setUniverseDomain(builder.universeDomain) .setHeaderProvider(builder.headerProvider); stubSettings .publishSettings() @@ -717,7 +718,8 @@ public static final class Builder { static final long DEFAULT_COMPRESSION_BYTES_THRESHOLD = 240L; String topicName; - private String endpoint = PublisherStubSettings.getDefaultEndpoint(); + private String endpoint = null; + private String universeDomain = null; // Batching options BatchingSettings batchingSettings = DEFAULT_BATCHING_SETTINGS; @@ -857,6 +859,12 @@ public Builder setEndpoint(String endpoint) { return this; } + /** Gives the ability to override the universe domain. */ + public Builder setUniverseDomain(String universeDomain) { + this.universeDomain = universeDomain; + return this; + } + /** Gives the ability to enable transport compression. */ public Builder setEnableCompression(boolean enableCompression) { this.enableCompression = enableCompression; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 1d1017dd4837..1723c72b17ff 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -192,6 +192,7 @@ private Subscriber(Builder builder) { .setTransportChannelProvider(channelProvider) .setHeaderProvider(builder.headerProvider) .setEndpoint(builder.endpoint) + .setUniverseDomain(builder.universeDomain) .build(); // TODO(pongad): what about internal header?? } catch (Exception e) { @@ -491,7 +492,8 @@ public static final class Builder { SubscriptionAdminSettings.defaultCredentialsProviderBuilder().build(); private Optional clock = Optional.absent(); private int parallelPullCount = 1; - private String endpoint = SubscriberStubSettings.getDefaultEndpoint(); + private String endpoint = null; + private String universeDomain = null; Builder(String subscription, MessageReceiver receiver) { this.subscription = subscription; @@ -670,6 +672,12 @@ public Builder setEndpoint(String endpoint) { return this; } + /** Gives the ability to override the universe domain. */ + public Builder setUniverseDomain(String universeDomain) { + this.universeDomain = universeDomain; + return this; + } + /** Gives the ability to set a custom clock. */ Builder setClock(ApiClock clock) { this.clock = Optional.of(clock); From c7ace70d4975f3dfb6691106e16a9b33c9ea538c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:45:51 -0500 Subject: [PATCH 1714/2363] chore(main): release 1.127.0 (#1926) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 17 +++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 35 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 78e67849afba..5f5740f5fb54 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.127.0](https://github.com/googleapis/java-pubsub/compare/v1.126.6...v1.127.0) (2024-02-28) + + +### Features + +* Add an API method for reordering firewall policies ([#1868](https://github.com/googleapis/java-pubsub/issues/1868)) ([2039f7e](https://github.com/googleapis/java-pubsub/commit/2039f7e9bee9db1991fae1118e4a6b8ad88ea30c)) +* Add universe domain support for Java ([#1904](https://github.com/googleapis/java-pubsub/issues/1904)) ([1e316d3](https://github.com/googleapis/java-pubsub/commit/1e316d33d2b7c87f6b76580cd9f905fe90a664c7)) +* Next release from main branch is 1.126.0 ([#1933](https://github.com/googleapis/java-pubsub/issues/1933)) ([255d8bc](https://github.com/googleapis/java-pubsub/commit/255d8bca3509e9a9dc2d82c95fabb32590423565)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.37.2 ([#1918](https://github.com/googleapis/java-pubsub/issues/1918)) ([b8846f9](https://github.com/googleapis/java-pubsub/commit/b8846f9dbf71854af1379c40669e017dd4e005d1)) +* Update dependency com.google.cloud:google-cloud-storage to v2.34.0 ([#1917](https://github.com/googleapis/java-pubsub/issues/1917)) ([4a7d6b9](https://github.com/googleapis/java-pubsub/commit/4a7d6b971f0d16d867c56679d1e7bfbba4e4a67a)) +* Update dependency com.google.protobuf:protobuf-java-util to v3.25.3 ([#1919](https://github.com/googleapis/java-pubsub/issues/1919)) ([4bf13bb](https://github.com/googleapis/java-pubsub/commit/4bf13bb5f346a53ecf8e1e73e5f3b6d1c99ddf93)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.1 ([#1923](https://github.com/googleapis/java-pubsub/issues/1923)) ([cd704bd](https://github.com/googleapis/java-pubsub/commit/cd704bd57b2596d82f2f791476a109a771995b4d)) + ## [1.126.6](https://github.com/googleapis/java-pubsub/compare/v1.126.5...v1.126.6) (2024-02-14) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 83a67875db58..058dd438b3ad 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.126.7-SNAPSHOT + 1.127.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.126.7-SNAPSHOT + 1.127.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f6d9c47d5581..685a4fa202d6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.126.7-SNAPSHOT + 1.127.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.126.7-SNAPSHOT + 1.127.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 79bd99cb347b..d69da8167e7e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.7-SNAPSHOT + 1.127.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 45588af169da..e513fdcebceb 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.126.7-SNAPSHOT + 1.127.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0 com.google.cloud google-cloud-pubsub - 1.126.7-SNAPSHOT + 1.127.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7914373f1895..13584b0133a9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.108.7-SNAPSHOT + 1.109.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.126.7-SNAPSHOT + 1.127.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 74b8cc3e0e71..35f328423eaf 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.126.7-SNAPSHOT + 1.127.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 931417aaad09..b644f710a17a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.126.6:1.126.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.108.6:1.108.7-SNAPSHOT -proto-google-cloud-pubsub-v1:1.108.6:1.108.7-SNAPSHOT +google-cloud-pubsub:1.127.0:1.127.0 +grpc-google-cloud-pubsub-v1:1.109.0:1.109.0 +proto-google-cloud-pubsub-v1:1.109.0:1.109.0 From f314c118fc9d80b8e9e2daefb65dcf18b7dfce4b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 28 Feb 2024 20:02:18 +0000 Subject: [PATCH 1715/2363] chore(main): release 1.127.1-SNAPSHOT (#1934) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 058dd438b3ad..fa3bfe31b96f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.0 + 1.127.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 685a4fa202d6..cd3cfe185693 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.0 + 1.127.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d69da8167e7e..6a3ba8220581 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.0 + 1.127.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e513fdcebceb..53792a02ce43 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.0 + 1.127.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 13584b0133a9..03fc0d62c15a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.0 + 1.109.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.0 + 1.127.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 35f328423eaf..bc297f89ce43 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b644f710a17a..29079cbd385b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.0:1.127.0 -grpc-google-cloud-pubsub-v1:1.109.0:1.109.0 -proto-google-cloud-pubsub-v1:1.109.0:1.109.0 +google-cloud-pubsub:1.127.0:1.127.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.109.0:1.109.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.109.0:1.109.1-SNAPSHOT From 831c1d8d19f69e905de0777a7de67242bd4f1aab Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 29 Feb 2024 20:07:45 +0100 Subject: [PATCH 1716/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.0 (#1935) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f5b1c982a58e..70e7b9caaaad 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.126.6 + 1.127.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.126.6' +implementation 'com.google.cloud:google-cloud-pubsub:1.127.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.126.6" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.0" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.126.6 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bbe7f529165f..032c84239249 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.126.6 + 1.127.0 From 7efe4ad40ebda37dc2ee954cc88f5d20411dd5f0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Mar 2024 17:10:07 +0100 Subject: [PATCH 1717/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 (#1937) --- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 5e86d37f0769..56db68092d21 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.25.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.27.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 8e8cded782d0..6283184778e7 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.25.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.27.0" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 53792a02ce43..78f83277d2d4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.25.0 + 3.27.0 From 3f47a640bf46161ec63e165bd3fe6534d2638aae Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Mar 2024 17:10:49 +0100 Subject: [PATCH 1718/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.4 (#1932) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fa3bfe31b96f..6bdc2ef985f9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.7.1 + 1.7.4 Google Cloud pubsub BOM From f5a1df89b574ef8a0841ef42bb186dbd1f5abf33 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Mar 2024 17:12:42 +0100 Subject: [PATCH 1719/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.35.0 (#1936) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 032c84239249..661908dec505 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.33.0 + 2.35.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bc297f89ce43..bda5c4528fd2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.33.0 + 2.35.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 926c8afce9ab..2c9d39079063 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.33.0 + 2.35.0 tests From 5ef3e22531c75fc39a55f6d3d3e54094d265d7e0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Mar 2024 17:13:22 +0100 Subject: [PATCH 1720/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.38.0 (#1931) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 661908dec505..d7c4132b315c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.37.2 + 2.38.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bda5c4528fd2..59ec7a69f4a6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.37.2 + 2.38.0 com.google.cloud From cf628499fdb367a6b0ac0919b6c0e462bd181b9a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:28:17 +0000 Subject: [PATCH 1721/2363] chore(main): release 1.127.1 (#1939) :robot: I have created a release *beep* *boop* --- ## [1.127.1](https://togithub.com/googleapis/java-pubsub/compare/v1.127.0...v1.127.1) (2024-03-04) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.38.0 ([#1931](https://togithub.com/googleapis/java-pubsub/issues/1931)) ([5ef3e22](https://togithub.com/googleapis/java-pubsub/commit/5ef3e22531c75fc39a55f6d3d3e54094d265d7e0)) * Update dependency com.google.cloud:google-cloud-core to v2.35.0 ([#1936](https://togithub.com/googleapis/java-pubsub/issues/1936)) ([f5a1df8](https://togithub.com/googleapis/java-pubsub/commit/f5a1df89b574ef8a0841ef42bb186dbd1f5abf33)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 ([#1937](https://togithub.com/googleapis/java-pubsub/issues/1937)) ([7efe4ad](https://togithub.com/googleapis/java-pubsub/commit/7efe4ad40ebda37dc2ee954cc88f5d20411dd5f0)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 5f5740f5fb54..afd36bfec124 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.127.1](https://github.com/googleapis/java-pubsub/compare/v1.127.0...v1.127.1) (2024-03-04) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.38.0 ([#1931](https://github.com/googleapis/java-pubsub/issues/1931)) ([357c901](https://github.com/googleapis/java-pubsub/commit/357c901029a8bc5fb9800a7fae6f3d93080c0a0d)) +* Update dependency com.google.cloud:google-cloud-core to v2.35.0 ([#1936](https://github.com/googleapis/java-pubsub/issues/1936)) ([785e6d1](https://github.com/googleapis/java-pubsub/commit/785e6d1e4f2234d2c49183fc06d3f73de537171b)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 ([#1937](https://github.com/googleapis/java-pubsub/issues/1937)) ([75e7e5e](https://github.com/googleapis/java-pubsub/commit/75e7e5e9eede53e87a6bc8ccda957990ea9b0673)) + ## [1.127.0](https://github.com/googleapis/java-pubsub/compare/v1.126.6...v1.127.0) (2024-02-28) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6bdc2ef985f9..eec78be7badd 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.1-SNAPSHOT + 1.127.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.1-SNAPSHOT + 1.127.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cd3cfe185693..c7a8e188db41 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.1-SNAPSHOT + 1.127.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.1-SNAPSHOT + 1.127.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6a3ba8220581..eab2eaf2d945 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.1-SNAPSHOT + 1.127.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 78f83277d2d4..f4e6aa8b7a2f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.1-SNAPSHOT + 1.127.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 com.google.cloud google-cloud-pubsub - 1.127.1-SNAPSHOT + 1.127.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 03fc0d62c15a..8a5feb8ef6ea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1-SNAPSHOT + 1.109.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.1-SNAPSHOT + 1.127.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 59ec7a69f4a6..556c52990a1f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.1-SNAPSHOT + 1.127.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 29079cbd385b..15e405fcbd92 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.0:1.127.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.109.0:1.109.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.109.0:1.109.1-SNAPSHOT +google-cloud-pubsub:1.127.1:1.127.1 +grpc-google-cloud-pubsub-v1:1.109.1:1.109.1 +proto-google-cloud-pubsub-v1:1.109.1:1.109.1 From aaa46fc007c8da127eb7e30dddd01b44603bb47e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:42:43 +0000 Subject: [PATCH 1722/2363] chore(main): release 1.127.2-SNAPSHOT (#1940) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index eec78be7badd..ab0076423a81 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.1 + 1.127.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c7a8e188db41..1ee822317913 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.1 + 1.127.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index eab2eaf2d945..2590e388b549 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.1 + 1.127.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f4e6aa8b7a2f..08e7b3c076ff 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.1 + 1.127.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 8a5feb8ef6ea..a8388438172a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.1 + 1.109.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.1 + 1.127.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 556c52990a1f..1d48c6e7c2e5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 15e405fcbd92..32abe1742b3f 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.1:1.127.1 -grpc-google-cloud-pubsub-v1:1.109.1:1.109.1 -proto-google-cloud-pubsub-v1:1.109.1:1.109.1 +google-cloud-pubsub:1.127.1:1.127.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.109.1:1.109.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.109.1:1.109.2-SNAPSHOT From 1cbc554cde285fcd686c364c6c25fe50229855da Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 7 Mar 2024 12:57:21 -0500 Subject: [PATCH 1723/2363] test: Change policy member in SetPolicy examples (#1943) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test: Change policy member in SetTopicPolicyExample * test: Change policy member in SetSubscriptionPolicyExample * style: Format SetTopic/SubscriptionPolicyExample * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- .../src/main/java/pubsub/SetSubscriptionPolicyExample.java | 5 ++++- .../src/main/java/pubsub/SetTopicPolicyExample.java | 5 ++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 70e7b9caaaad..b94a1cb896b7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.127.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.127.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.1" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java index f0a449de8aca..f5b19f6854b6 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java @@ -46,7 +46,10 @@ public static void setSubscriptionPolicyExample(String projectId, String subscri // Create new role -> members binding Binding binding = - Binding.newBuilder().setRole("roles/pubsub.editor").addMembers("allUsers").build(); + Binding.newBuilder() + .setRole("roles/pubsub.editor") + .addMembers("domain:google.com") + .build(); // Add new binding to updated policy Policy updatedPolicy = Policy.newBuilder(oldPolicy).addBindings(binding).build(); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java index 7e987c218b74..6a2359e8c355 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java @@ -44,7 +44,10 @@ public static void setTopicPolicyExample(String projectId, String topicId) throw // Create new role -> members binding Binding binding = - Binding.newBuilder().setRole("roles/pubsub.editor").addMembers("allUsers").build(); + Binding.newBuilder() + .setRole("roles/pubsub.editor") + .addMembers("domain:google.com") + .build(); // Add new binding to updated policy Policy updatedPolicy = Policy.newBuilder(oldPolicy).addBindings(binding).build(); From 48800fa81a4c34415d8df2e6cab191d1e2603f1d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 7 Mar 2024 13:19:52 -0500 Subject: [PATCH 1724/2363] fix(deps): Update the Java code generator (gapic-generator-java) to 2.37.0 (#1938) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(deps): Update the Java code generator (gapic-generator-java) to 2.37.0 PiperOrigin-RevId: 611816371 Source-Link: https://github.com/googleapis/googleapis/commit/2a40f63ea714c7f4c6856a5db4d1f3cc7d4c4b18 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d30ff0767777b381fb1617f67a90e3abd3bdc6dc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDMwZmYwNzY3Nzc3YjM4MWZiMTYxN2Y2N2E5MGUzYWJkM2JkYzZkYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../com/google/cloud/pubsub/v1/SchemaServiceSettings.java | 2 -- .../google/cloud/pubsub/v1/SubscriptionAdminSettings.java | 2 -- .../java/com/google/cloud/pubsub/v1/TopicAdminSettings.java | 2 -- .../pubsub/v1/stub/HttpJsonPublisherCallableFactory.java | 4 ---- .../google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java | 2 -- .../v1/stub/HttpJsonSchemaServiceCallableFactory.java | 4 ---- .../cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java | 2 -- .../pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java | 4 ---- .../google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java | 2 -- .../src/main/java/com/google/pubsub/v1/TopicName.java | 6 ------ 10 files changed, 30 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 152cb4fb993a..e2dd281e0dca 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -217,7 +217,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -259,7 +258,6 @@ private static Builder createDefault() { return new Builder(SchemaServiceStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(SchemaServiceStubSettings.newHttpJsonBuilder()); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index a306bf2b92d4..306237dcb738 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -256,7 +256,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -298,7 +297,6 @@ private static Builder createDefault() { return new Builder(SubscriberStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(SubscriberStubSettings.newHttpJsonBuilder()); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index c4db6a8d592e..9c82ebce0f4d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -216,7 +216,6 @@ public static Builder newBuilder() { } /** Returns a new REST builder for this class. */ - @BetaApi public static Builder newHttpJsonBuilder() { return Builder.createHttpJsonDefault(); } @@ -258,7 +257,6 @@ private static Builder createDefault() { return new Builder(PublisherStubSettings.newBuilder()); } - @BetaApi private static Builder createHttpJsonDefault() { return new Builder(PublisherStubSettings.newHttpJsonBuilder()); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java index bf26ec9df175..3d2309c69de3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java @@ -16,7 +16,6 @@ package com.google.cloud.pubsub.v1.stub; -import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; @@ -41,7 +40,6 @@ *

    This class is for advanced usage. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonPublisherCallableFactory implements HttpJsonStubCallableFactory { @@ -73,8 +71,6 @@ public UnaryCallable createBatchingCa httpJsonCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java index cc52e013292d..3c129b6ed707 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java @@ -20,7 +20,6 @@ import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse; import static com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -69,7 +68,6 @@ *

    This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonPublisherStub extends PublisherStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java index 049e3978e5d6..c4dedadb0cc5 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java @@ -16,7 +16,6 @@ package com.google.cloud.pubsub.v1.stub; -import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; @@ -41,7 +40,6 @@ *

    This class is for advanced usage. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonSchemaServiceCallableFactory implements HttpJsonStubCallableFactory { @@ -73,8 +71,6 @@ public UnaryCallable createBatchingCa httpJsonCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java index 0d63ad8252b4..1d797dc71761 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -19,7 +19,6 @@ import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPagedResponse; import static com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -69,7 +68,6 @@ *

    This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonSchemaServiceStub extends SchemaServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java index 6ed7053d57b6..ec35b3dfe781 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java @@ -16,7 +16,6 @@ package com.google.cloud.pubsub.v1.stub; -import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.HttpJsonCallSettings; import com.google.api.gax.httpjson.HttpJsonCallableFactory; import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; @@ -41,7 +40,6 @@ *

    This class is for advanced usage. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonSubscriberCallableFactory implements HttpJsonStubCallableFactory { @@ -73,8 +71,6 @@ public UnaryCallable createBatchingCa httpJsonCallSettings, callSettings, clientContext); } - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") @Override public OperationCallable createOperationCallable( diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index ea305a93835c..53559f580a05 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -19,7 +19,6 @@ import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse; import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse; -import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -77,7 +76,6 @@ *

    This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator-java") -@BetaApi public class HttpJsonSubscriberStub extends SubscriberStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index abae4f031772..8fe96fcb8dc4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -16,7 +16,6 @@ package com.google.pubsub.v1; -import com.google.api.core.BetaApi; import com.google.api.pathtemplate.PathTemplate; import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; @@ -71,7 +70,6 @@ public static Builder newBuilder() { return new Builder(); } - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static Builder newProjectTopicBuilder() { return new Builder(); } @@ -84,12 +82,10 @@ public static TopicName of(String project, String topic) { return newBuilder().setProject(project).setTopic(topic).build(); } - @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static TopicName ofProjectTopicName(String project, String topic) { return newBuilder().setProject(project).setTopic(topic).build(); } - @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static TopicName ofDeletedTopicName() { return new TopicName("_deleted-topic_"); } @@ -98,12 +94,10 @@ public static String format(String project, String topic) { return newBuilder().setProject(project).setTopic(topic).build().toString(); } - @BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectTopicName(String project, String topic) { return newBuilder().setProject(project).setTopic(topic).build().toString(); } - @BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatDeletedTopicName() { return "_deleted-topic_"; } From 3c4f60eaeeed25b14d198bc13691de0f46e7814e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Mar 2024 19:20:07 +0100 Subject: [PATCH 1725/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.1 (#1941) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b94a1cb896b7..cb7a713916c5 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d7c4132b315c..c644ee3c4a17 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.127.0 + 1.127.1 From 95e93a0be9afee4d9de7e764030d77ca5bd67dda Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Mar 2024 19:25:42 +0100 Subject: [PATCH 1726/2363] test(deps): update dependency com.google.truth:truth to v1.4.2 (#1928) --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 08e7b3c076ff..70b26ce4a665 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.4.1 + 1.4.2 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c644ee3c4a17..ca4bb38b6249 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.4.1 + 1.4.2 test diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 93d38c764181..54ff2245329c 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.4.1 + 1.4.2 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1d48c6e7c2e5..4070f7cf67fc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.4.1 + 1.4.2 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2c9d39079063..572a18e0b4d8 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.4.1 + 1.4.2 test From 6368842b5a224c1344fb0d9c9fd465e27d1d78fa Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Mar 2024 19:25:50 +0100 Subject: [PATCH 1727/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.35.0 (#1942) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ca4bb38b6249..907219d8b658 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.34.0 + 2.35.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4070f7cf67fc..f531d8d51b3d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.34.0 + 2.35.0 From 3beeb70cef4c90c086d27bc988d7add092196e7f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Mar 2024 19:26:22 +0100 Subject: [PATCH 1728/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.38.1 (#1944) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 907219d8b658..1e9b582c7d8b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.38.0 + 2.38.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f531d8d51b3d..00c8bbded82b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.38.0 + 2.38.1 com.google.cloud From b6ea5242532960d454b1a01e4bfdba0b49d86e79 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Mar 2024 20:01:47 +0100 Subject: [PATCH 1729/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.35.0 (#1946) From 67444f2c967662762ea0e5fe5f71d34c05f9e911 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sun, 10 Mar 2024 22:30:42 +0100 Subject: [PATCH 1730/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.34.0 (#1948) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.34.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index cb7a713916c5..ccdfe42967cb 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.33.0 + 26.34.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.33.0') +implementation platform('com.google.cloud:libraries-bom:26.34.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 54ff2245329c..9c3e31530e96 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.33.0 + 26.34.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 572a18e0b4d8..06c30c2030fd 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.33.0 + 26.34.0 pom import From 143aedcbc7f172be063bd55b67b69441ee4f6eca Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sun, 10 Mar 2024 23:43:04 -0400 Subject: [PATCH 1731/2363] chore(main): release 1.127.2 (#1945) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 14 ++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index afd36bfec124..6b05ff1bdc40 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.127.2](https://github.com/googleapis/java-pubsub/compare/v1.127.1...v1.127.2) (2024-03-10) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.37.0 ([#1938](https://github.com/googleapis/java-pubsub/issues/1938)) ([1435c4e](https://github.com/googleapis/java-pubsub/commit/1435c4e4d25d789fadbfc2c54c2f90b138693b40)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.38.1 ([#1944](https://github.com/googleapis/java-pubsub/issues/1944)) ([76317e1](https://github.com/googleapis/java-pubsub/commit/76317e1fe60467b4bbe9b4867d0a29e983ce687f)) +* Update dependency com.google.cloud:google-cloud-storage to v2.35.0 ([#1942](https://github.com/googleapis/java-pubsub/issues/1942)) ([989f7ba](https://github.com/googleapis/java-pubsub/commit/989f7bac5bada7ac5d6e68c742af0290cb757e4b)) +* Update dependency com.google.cloud:google-cloud-storage to v2.35.0 ([#1946](https://github.com/googleapis/java-pubsub/issues/1946)) ([b94989d](https://github.com/googleapis/java-pubsub/commit/b94989df6c5ae6f62e648016cef2e008a3b9ed05)) + ## [1.127.1](https://github.com/googleapis/java-pubsub/compare/v1.127.0...v1.127.1) (2024-03-04) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ab0076423a81..a46409e24c55 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.2-SNAPSHOT + 1.127.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.2-SNAPSHOT + 1.127.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1ee822317913..086988a45c96 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.2-SNAPSHOT + 1.127.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.2-SNAPSHOT + 1.127.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2590e388b549..f87f0df9182f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.2-SNAPSHOT + 1.127.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 70b26ce4a665..c2f753a0a4c3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.2-SNAPSHOT + 1.127.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 com.google.cloud google-cloud-pubsub - 1.127.2-SNAPSHOT + 1.127.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a8388438172a..3d92eb24b76a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2-SNAPSHOT + 1.109.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.2-SNAPSHOT + 1.127.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 00c8bbded82b..1db26815c9aa 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.2-SNAPSHOT + 1.127.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 32abe1742b3f..3564d176c878 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.1:1.127.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.109.1:1.109.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.109.1:1.109.2-SNAPSHOT +google-cloud-pubsub:1.127.2:1.127.2 +grpc-google-cloud-pubsub-v1:1.109.2:1.109.2 +proto-google-cloud-pubsub-v1:1.109.2:1.109.2 From ac977356c3ca2645f041168662d268480d861c89 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 03:58:17 +0000 Subject: [PATCH 1732/2363] chore(main): release 1.127.3-SNAPSHOT (#1949) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a46409e24c55..eba10745fe9f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.2 + 1.127.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 086988a45c96..24140677286f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.2 + 1.127.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f87f0df9182f..2238f0d542d4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.2 + 1.127.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c2f753a0a4c3..6f21aadb3e28 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.2 + 1.127.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3d92eb24b76a..509101f6dd34 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.2 + 1.109.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.2 + 1.127.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1db26815c9aa..01ce3c8e7ff7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3564d176c878..722ecb457818 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.2:1.127.2 -grpc-google-cloud-pubsub-v1:1.109.2:1.109.2 -proto-google-cloud-pubsub-v1:1.109.2:1.109.2 +google-cloud-pubsub:1.127.2:1.127.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.109.2:1.109.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.109.2:1.109.3-SNAPSHOT From 1fc333416b12fe6e56ab7a7cdfc592af6ae78ff3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Mar 2024 15:43:17 +0100 Subject: [PATCH 1733/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.2 (#1950) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ccdfe42967cb..9dbc0de33ccf 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.127.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.127.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.2" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1e9b582c7d8b..d1ed4a285ae1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.127.1 + 1.127.2 From 80d6043b6135ee5dc993491bf145a23db4dd62cc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Mar 2024 15:56:39 +0100 Subject: [PATCH 1734/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 (#1956) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 56db68092d21..6d7671930292 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.27.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.28.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 6283184778e7..61792471c1b5 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.27.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.28.0" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6f21aadb3e28..5f2f794d7c33 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.27.0 + 3.28.0 From 55169ece2f5aed3c636908357606e2e5ea10ff6a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 10:57:04 -0400 Subject: [PATCH 1735/2363] chore: update requirements.txt to address dependabot security alerts. (#1936) (#1953) Created by running: pip-compile requirements.in --generate-hashes --upgrade within synthtool/gcp/templates/java_library/.kokoro and synthtool/docker/owlbot/java/src/ Source-Link: https://github.com/googleapis/synthtool/commit/853dbcd49ea3598fd896007dc48dc97175ee88f1 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:084ad4c60551b075846bcb2405ec1c14b0d00ec1eb5503d4dd0d2a92cdc2d3e2 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index b49924db5515..db1099bec8e3 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:1fb09a3eb66af09221da69087fd1b4d075bc7c79e508d0708f5dc0f842069da2 -# created: 2024-02-05T19:43:08.106031548Z \ No newline at end of file + digest: sha256:084ad4c60551b075846bcb2405ec1c14b0d00ec1eb5503d4dd0d2a92cdc2d3e2 +# created: 2024-03-15T14:33:32.257974519Z From ecf9b48ae73007c6c91db1c3a4715e038f27b106 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Mar 2024 15:57:21 +0100 Subject: [PATCH 1736/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.5 (#1952) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index eba10745fe9f..2d5b3be5a9ed 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.7.4 + 1.7.5 Google Cloud pubsub BOM From 03b3fb6033a51145fe72fcc7ddf162892e4e1655 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Mar 2024 15:57:42 +0100 Subject: [PATCH 1737/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4 (#1951) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d1ed4a285ae1..ba830b96c94c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 3.25.3 + 4.26.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 01ce3c8e7ff7..56aabd95f5ba 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 3.25.3 + 4.26.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 06c30c2030fd..4a2bd5da0cfd 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 3.25.3 + 4.26.0 From 9b83651e6ce8a75af764e6c59f6db502f614aab1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Mar 2024 18:46:04 +0100 Subject: [PATCH 1738/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.36.0 (#1955) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.36.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ba830b96c94c..cb0697411365 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.35.0 + 2.36.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 56aabd95f5ba..59ca14a97ab1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.35.0 + 2.36.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4a2bd5da0cfd..00554120fc44 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.35.0 + 2.36.0 tests From 57fee258b4b7f388d86415a019e143ee543c8f66 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 20 Mar 2024 17:24:48 +0100 Subject: [PATCH 1739/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.36.0 (#1957) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-storage to v2.36.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index cb0697411365..8eb6dcd88418 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.35.0 + 2.36.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 59ca14a97ab1..f798db0f9c1e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.35.0 + 2.36.0 From eb9a7d69f45ebe634ed09883b6dc6a8266a249cb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 20 Mar 2024 17:24:57 +0100 Subject: [PATCH 1740/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.36.1 (#1962) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8eb6dcd88418..c394454f91a8 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.36.0 + 2.36.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f798db0f9c1e..2ec1b0c45bb0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.36.0 + 2.36.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 00554120fc44..d0a14bd264bd 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.36.0 + 2.36.1 tests From daa6e5c201171d76909d66bf37ab87ebe63ffa25 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 20 Mar 2024 17:25:04 +0100 Subject: [PATCH 1741/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.6 (#1961) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2d5b3be5a9ed..a28554564204 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.7.5 + 1.7.6 Google Cloud pubsub BOM From dbd4422198e1f644eed04ca2eb6e7681eaad89d1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 20 Mar 2024 17:25:34 +0100 Subject: [PATCH 1742/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 (#1960) --- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 6d7671930292..c2a88196e84d 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.28.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.28.1" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 61792471c1b5..94e00cbaa0a1 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.28.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.28.1" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5f2f794d7c33..525dae547c8a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.28.0 + 3.28.1 From fd73ca3144ddd787b8ec1647a4f3119f2bc9c107 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:46:16 +0000 Subject: [PATCH 1743/2363] chore(main): release 1.127.3 (#1959) :robot: I have created a release *beep* *boop* --- ## [1.127.3](https://togithub.com/googleapis/java-pubsub/compare/v1.127.2...v1.127.3) (2024-03-20) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.36.0 ([#1955](https://togithub.com/googleapis/java-pubsub/issues/1955)) ([9b83651](https://togithub.com/googleapis/java-pubsub/commit/9b83651e6ce8a75af764e6c59f6db502f614aab1)) * Update dependency com.google.cloud:google-cloud-core to v2.36.1 ([#1962](https://togithub.com/googleapis/java-pubsub/issues/1962)) ([eb9a7d6](https://togithub.com/googleapis/java-pubsub/commit/eb9a7d69f45ebe634ed09883b6dc6a8266a249cb)) * Update dependency com.google.cloud:google-cloud-storage to v2.36.0 ([#1957](https://togithub.com/googleapis/java-pubsub/issues/1957)) ([57fee25](https://togithub.com/googleapis/java-pubsub/commit/57fee258b4b7f388d86415a019e143ee543c8f66)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 ([#1956](https://togithub.com/googleapis/java-pubsub/issues/1956)) ([80d6043](https://togithub.com/googleapis/java-pubsub/commit/80d6043b6135ee5dc993491bf145a23db4dd62cc)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#1960](https://togithub.com/googleapis/java-pubsub/issues/1960)) ([dbd4422](https://togithub.com/googleapis/java-pubsub/commit/dbd4422198e1f644eed04ca2eb6e7681eaad89d1)) * Update dependency com.google.protobuf:protobuf-java-util to v4 ([#1951](https://togithub.com/googleapis/java-pubsub/issues/1951)) ([03b3fb6](https://togithub.com/googleapis/java-pubsub/commit/03b3fb6033a51145fe72fcc7ddf162892e4e1655)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 6b05ff1bdc40..68581690dbff 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.127.3](https://github.com/googleapis/java-pubsub/compare/v1.127.2...v1.127.3) (2024-03-20) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.36.0 ([#1955](https://github.com/googleapis/java-pubsub/issues/1955)) ([d25d14a](https://github.com/googleapis/java-pubsub/commit/d25d14ad4694c5a914f9d07018cb0f6b9af4f9aa)) +* Update dependency com.google.cloud:google-cloud-core to v2.36.1 ([#1962](https://github.com/googleapis/java-pubsub/issues/1962)) ([96c1c97](https://github.com/googleapis/java-pubsub/commit/96c1c971fa4dced85cb2ed4e9db3e3fb47eb82c6)) +* Update dependency com.google.cloud:google-cloud-storage to v2.36.0 ([#1957](https://github.com/googleapis/java-pubsub/issues/1957)) ([0d8c182](https://github.com/googleapis/java-pubsub/commit/0d8c182653ea1ffd429465e91075760c1501eb34)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 ([#1956](https://github.com/googleapis/java-pubsub/issues/1956)) ([183df2c](https://github.com/googleapis/java-pubsub/commit/183df2caeed8e0df53ef9668232e4949ec4719a9)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#1960](https://github.com/googleapis/java-pubsub/issues/1960)) ([faa45a4](https://github.com/googleapis/java-pubsub/commit/faa45a4efeaee5b45f9a4cc89dc2917f56a66797)) +* Update dependency com.google.protobuf:protobuf-java-util to v4 ([#1951](https://github.com/googleapis/java-pubsub/issues/1951)) ([243ec9a](https://github.com/googleapis/java-pubsub/commit/243ec9ab47212bbe701b16882c92a9b3d5d4aeaa)) + ## [1.127.2](https://github.com/googleapis/java-pubsub/compare/v1.127.1...v1.127.2) (2024-03-10) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a28554564204..33edff3a9151 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.3-SNAPSHOT + 1.127.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.3-SNAPSHOT + 1.127.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 24140677286f..d7cf97351aae 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.3-SNAPSHOT + 1.127.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.3-SNAPSHOT + 1.127.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2238f0d542d4..1805c4e142f2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.3-SNAPSHOT + 1.127.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 525dae547c8a..215476329185 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.3-SNAPSHOT + 1.127.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 com.google.cloud google-cloud-pubsub - 1.127.3-SNAPSHOT + 1.127.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 509101f6dd34..9a79ebaffaa2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3-SNAPSHOT + 1.109.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.3-SNAPSHOT + 1.127.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2ec1b0c45bb0..e0b4e56f4e88 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.3-SNAPSHOT + 1.127.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 722ecb457818..448f60b814fd 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.2:1.127.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.109.2:1.109.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.109.2:1.109.3-SNAPSHOT +google-cloud-pubsub:1.127.3:1.127.3 +grpc-google-cloud-pubsub-v1:1.109.3:1.109.3 +proto-google-cloud-pubsub-v1:1.109.3:1.109.3 From dcb353cf1ecf4414ac52b4194113793ad36528ed Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:00:20 +0000 Subject: [PATCH 1744/2363] chore(main): release 1.127.4-SNAPSHOT (#1964) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 33edff3a9151..c306409f1129 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.3 + 1.127.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.3 + 1.127.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d7cf97351aae..b1766243f0f6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.3 + 1.127.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.3 + 1.127.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1805c4e142f2..8a15fef01e38 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.3 + 1.127.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 215476329185..10dc42a8b04d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.3 + 1.127.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.127.3 + 1.127.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9a79ebaffaa2..e19772765603 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.3 + 1.109.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.3 + 1.127.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e0b4e56f4e88..c98fcf26f8f3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.3 + 1.127.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 448f60b814fd..15b2b7d00e73 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.3:1.127.3 -grpc-google-cloud-pubsub-v1:1.109.3:1.109.3 -proto-google-cloud-pubsub-v1:1.109.3:1.109.3 +google-cloud-pubsub:1.127.3:1.127.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.109.3:1.109.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.109.3:1.109.4-SNAPSHOT From bb5908d1ad838921fb81ca67544137eba4f2095b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 21 Mar 2024 16:41:36 +0100 Subject: [PATCH 1745/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.3 (#1966) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.127.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 9dbc0de33ccf..7169cd7add90 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.127.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.127.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.3" ``` @@ -409,7 +409,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c394454f91a8..275714ca6971 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.127.2 + 1.127.3 From 46dd3bdfcda5587680e7e8b8bd313c2645d489bb Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 21 Mar 2024 13:21:35 -0400 Subject: [PATCH 1746/2363] docs: Add Kinesis ingestion samples (#1947) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Adding samples for creating and updating Kinesis ingestion topics * style: Format AdmitIT * style: Re-format AdmitIT * docs: Fix ingestion topic deletion in test * docs: Add test for updating existing ingestion settings and verify the actual results of topic creation and updating * docs: Use response to verify ingestion settings update * style: fix formatting in tests * docs: Update AdminIT test to check for correct topic name * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 + ...reateTopicWithKinesisIngestionExample.java | 74 ++++++++++++++++ .../java/pubsub/UpdateTopicTypeExample.java | 86 +++++++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 50 +++++++++++ 4 files changed, 212 insertions(+) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7169cd7add90..62f999a1ec05 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -257,6 +257,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | +| Create Topic With Kinesis Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | | Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | | Create Unwrapped Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | @@ -307,6 +308,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | | Update Push Configuration Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | | Update Topic Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | +| Update Topic Type Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java) | | Use Pub Sub Emulator Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | | State | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/State.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/State.java) | | State Proto | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/StateProto.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/StateProto.java) | diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java new file mode 100644 index 000000000000..6f79ef6b7c3f --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java @@ -0,0 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_kinesis_ingestion] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithKinesisIngestionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Kinesis ingestion settings. + String streamArn = "stream-arn"; + String consumerArn = "consumer-arn"; + String awsRoleArn = "aws-role-arn"; + String gcpServiceAccount = "gcp-service-account"; + + createTopicWithKinesisIngestionExample( + projectId, topicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); + } + + public static void createTopicWithKinesisIngestionExample( + String projectId, + String topicId, + String streamArn, + String consumerArn, + String awsRoleArn, + String gcpServiceAccount) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + + IngestionDataSourceSettings.AwsKinesis awsKinesis = + IngestionDataSourceSettings.AwsKinesis.newBuilder() + .setStreamArn(streamArn) + .setConsumerArn(consumerArn) + .setAwsRoleArn(awsRoleArn) + .setGcpServiceAccount(gcpServiceAccount) + .build(); + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder().setAwsKinesis(awsKinesis).build(); + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build()); + + System.out.println("Created topic with Kinesis ingestion settings: " + topic.getAllFields()); + } + } +} +// [END pubsub_create_topic_with_kinesis_ingestion] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java new file mode 100644 index 000000000000..6b8497ea71c4 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java @@ -0,0 +1,86 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_update_topic_type] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import com.google.pubsub.v1.UpdateTopicRequest; +import java.io.IOException; + +public class UpdateTopicTypeExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Kinesis ingestion settings. + String streamArn = "stream-arn"; + String consumerArn = "consumer-arn"; + String awsRoleArn = "aws-role-arn"; + String gcpServiceAccount = "gcp-service-account"; + + UpdateTopicTypeExample.updateTopicTypeExample( + projectId, topicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); + } + + public static void updateTopicTypeExample( + String projectId, + String topicId, + String streamArn, + String consumerArn, + String awsRoleArn, + String gcpServiceAccount) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + + IngestionDataSourceSettings.AwsKinesis awsKinesis = + IngestionDataSourceSettings.AwsKinesis.newBuilder() + .setStreamArn(streamArn) + .setConsumerArn(consumerArn) + .setAwsRoleArn(awsRoleArn) + .setGcpServiceAccount(gcpServiceAccount) + .build(); + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder().setAwsKinesis(awsKinesis).build(); + + // Construct the topic with Kinesis ingestion settings. + Topic topic = + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build(); + + // Construct a field mask to indicate which field to update in the topic. + FieldMask updateMask = + FieldMask.newBuilder().addPaths("ingestion_data_source_settings").build(); + + UpdateTopicRequest request = + UpdateTopicRequest.newBuilder().setTopic(topic).setUpdateMask(updateMask).build(); + + Topic response = topicAdminClient.updateTopic(request); + + System.out.println( + "Updated topic with Kinesis ingestion settings: " + response.getAllFields()); + } + } +} +// [END pubsub_update_topic_type] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index e42c8129015d..a2eb7ebfdb4f 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -52,6 +52,7 @@ public class AdminIT { private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String _suffix = UUID.randomUUID().toString(); private static final String topicId = "iam-topic-" + _suffix; + private static final String ingestionTopicId = "ingestion-topic-" + _suffix; private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; @@ -63,8 +64,20 @@ public class AdminIT { "java_samples_data_set" + _suffix.replace("-", "_"); private static final String bigquerySubscriptionId = "iam-bigquery-subscription-" + _suffix; private static final String bigqueryTableId = "java_samples_table_" + _suffix; + private static final String streamArn = + "arn:aws:kinesis:us-west-2:111111111111:stream/fake-stream-name"; + private static final String consumerArn = + "arn:aws:kinesis:us-west-2:111111111111:stream/fake-stream-name/" + + "consumer/consumer-1:1111111111"; + private static final String consumerArn2 = + "arn:aws:kinesis:us-west-2:111111111111:stream/fake-stream-name/" + + "consumer/consumer-2:2222222222"; + private static final String awsRoleArn = "arn:aws:iam::111111111111:role/fake-role-name"; + private static final String gcpServiceAccount = + "fake-service-account@fake-gcp-project.iam.gserviceaccount.com"; private static final TopicName topicName = TopicName.of(projectId, topicId); + private static final TopicName ingestionTopicName = TopicName.of(projectId, ingestionTopicId); private static final SubscriptionName pullSubscriptionName = SubscriptionName.of(projectId, pullSubscriptionId); private static final SubscriptionName pushSubscriptionName = @@ -273,9 +286,46 @@ public void testAdmin() throws Exception { DeleteSubscriptionExample.deleteSubscriptionExample(projectId, bigquerySubscriptionId); assertThat(bout.toString()).contains("Deleted subscription."); + bout.reset(); + // Update topic type to Kinesis ingestion. + UpdateTopicTypeExample.updateTopicTypeExample( + projectId, topicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); + assertThat(bout.toString()).contains("google.pubsub.v1.Topic.name=" + topicName.toString()); + assertThat(bout.toString()).contains(streamArn); + assertThat(bout.toString()).contains(consumerArn); + assertThat(bout.toString()).contains(awsRoleArn); + assertThat(bout.toString()).contains(gcpServiceAccount); + bout.reset(); // Test delete topic. DeleteTopicExample.deleteTopicExample(projectId, topicId); assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with Kinesis ingestion settings. + CreateTopicWithKinesisIngestionExample.createTopicWithKinesisIngestionExample( + projectId, ingestionTopicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + ingestionTopicName.toString()); + assertThat(bout.toString()).contains(streamArn); + assertThat(bout.toString()).contains(consumerArn); + assertThat(bout.toString()).contains(awsRoleArn); + assertThat(bout.toString()).contains(gcpServiceAccount); + + bout.reset(); + // Test update existing Kinesis ingestion settings. + UpdateTopicTypeExample.updateTopicTypeExample( + projectId, ingestionTopicId, streamArn, consumerArn2, awsRoleArn, gcpServiceAccount); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + ingestionTopicName.toString()); + assertThat(bout.toString()).contains(streamArn); + assertThat(bout.toString()).contains(consumerArn2); + assertThat(bout.toString()).contains(awsRoleArn); + assertThat(bout.toString()).contains(gcpServiceAccount); + + bout.reset(); + // Test delete Kinesis ingestion topic. + DeleteTopicExample.deleteTopicExample(projectId, ingestionTopicId); + assertThat(bout.toString()).contains("Deleted topic."); } } From 949ad88631c54bd2626bf99ae93114b7d7b8cc1e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 20:59:06 -0400 Subject: [PATCH 1747/2363] chore: add regex to match unmanaged dependency check (#1941) (#1969) Source-Link: https://github.com/googleapis/synthtool/commit/ca7a71650b000f900236f54a0f9bd322fd1b2adf Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:cecae6152a85d55c932a64515643cf2e32a1f1b6e17503080eb07744b2177f28 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/renovate.json | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index db1099bec8e3..d7b8a2d87b15 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:084ad4c60551b075846bcb2405ec1c14b0d00ec1eb5503d4dd0d2a92cdc2d3e2 -# created: 2024-03-15T14:33:32.257974519Z + digest: sha256:cecae6152a85d55c932a64515643cf2e32a1f1b6e17503080eb07744b2177f28 +# created: 2024-03-25T17:31:37.187420732Z diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index bd4ed7ef1365..6d24ffd87d3a 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -23,6 +23,15 @@ "matchStrings": ["value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\""], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", "datasourceTemplate": "maven" + }, + { + "customType": "regex", + "fileMatch": [ + "^.github/workflows/unmanaged_dependency_check.yaml$" + ], + "matchStrings": ["uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?.+?)\\n"], + "depNameTemplate": "com.google.cloud:sdk-platform-java-config", + "datasourceTemplate": "maven" } ], "packageRules": [ From a85113db5998e140e658327df3e8a6986d5655e5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 26 Mar 2024 02:01:22 +0100 Subject: [PATCH 1748/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.36.1 (#1968) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 275714ca6971..8f2ba2e4a89a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.36.0 + 2.36.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c98fcf26f8f3..2bb6b7d8a135 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.36.0 + 2.36.1 From 0e4cb489d7671293b6ff4b1d0c893cb0e92d6953 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 26 Mar 2024 02:36:45 +0100 Subject: [PATCH 1749/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.38.2 (#1965) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.38.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8f2ba2e4a89a..d84d3c3de04e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.38.1 + 2.38.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2bb6b7d8a135..a1429a46e79b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.38.1 + 2.38.2 com.google.cloud From ceef290926dfc2579611882076ddfe6ff9715737 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 26 Mar 2024 13:13:00 -0400 Subject: [PATCH 1750/2363] feat: add custom datetime format for Cloud Storage subscriptions (#1970) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add custom datetime format for Cloud Storage subscriptions PiperOrigin-RevId: 619178723 Source-Link: https://github.com/googleapis/googleapis/commit/811a857dd5e5a500127d0470f16c2caca366435d Source-Link: https://github.com/googleapis/googleapis-gen/commit/768fb44d4daaea946a291f6795a50af26a515488 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzY4ZmI0NGQ0ZGFhZWE5NDZhMjkxZjY3OTVhNTBhZjI2YTUxNTQ4OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/pubsub/v1/CloudStorageConfig.java | 232 ++++++++- .../v1/CloudStorageConfigOrBuilder.java | 29 ++ .../v1/IngestionDataSourceSettings.java | 4 +- .../com/google/pubsub/v1/PubsubProto.java | 442 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 7 +- 7 files changed, 478 insertions(+), 246 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index def2b0461d2b..1d1cbaf1889a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -42,6 +42,7 @@ private CloudStorageConfig() { bucket_ = ""; filenamePrefix_ = ""; filenameSuffix_ = ""; + filenameDatetimeFormat_ = ""; state_ = 0; } @@ -1478,6 +1479,61 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { } } + public static final int FILENAME_DATETIME_FORMAT_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object filenameDatetimeFormat_ = ""; + /** + * + * + *

    +   * Optional. User-provided format string specifying how to represent datetimes
    +   * in Cloud Storage filenames. See the [datetime format
    +   * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
    +   * 
    + * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filenameDatetimeFormat. + */ + @java.lang.Override + public java.lang.String getFilenameDatetimeFormat() { + java.lang.Object ref = filenameDatetimeFormat_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filenameDatetimeFormat_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. User-provided format string specifying how to represent datetimes
    +   * in Cloud Storage filenames. See the [datetime format
    +   * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
    +   * 
    + * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filenameDatetimeFormat. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilenameDatetimeFormatBytes() { + java.lang.Object ref = filenameDatetimeFormat_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filenameDatetimeFormat_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TEXT_CONFIG_FIELD_NUMBER = 4; /** * @@ -1752,6 +1808,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameDatetimeFormat_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, filenameDatetimeFormat_); + } getUnknownFields().writeTo(output); } @@ -1789,6 +1848,9 @@ public int getSerializedSize() { if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameDatetimeFormat_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, filenameDatetimeFormat_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1807,6 +1869,7 @@ public boolean equals(final java.lang.Object obj) { if (!getBucket().equals(other.getBucket())) return false; if (!getFilenamePrefix().equals(other.getFilenamePrefix())) return false; if (!getFilenameSuffix().equals(other.getFilenameSuffix())) return false; + if (!getFilenameDatetimeFormat().equals(other.getFilenameDatetimeFormat())) return false; if (hasMaxDuration() != other.hasMaxDuration()) return false; if (hasMaxDuration()) { if (!getMaxDuration().equals(other.getMaxDuration())) return false; @@ -1841,6 +1904,8 @@ public int hashCode() { hash = (53 * hash) + getFilenamePrefix().hashCode(); hash = (37 * hash) + FILENAME_SUFFIX_FIELD_NUMBER; hash = (53 * hash) + getFilenameSuffix().hashCode(); + hash = (37 * hash) + FILENAME_DATETIME_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getFilenameDatetimeFormat().hashCode(); if (hasMaxDuration()) { hash = (37 * hash) + MAX_DURATION_FIELD_NUMBER; hash = (53 * hash) + getMaxDuration().hashCode(); @@ -2012,6 +2077,7 @@ public Builder clear() { bucket_ = ""; filenamePrefix_ = ""; filenameSuffix_ = ""; + filenameDatetimeFormat_ = ""; if (textConfigBuilder_ != null) { textConfigBuilder_.clear(); } @@ -2073,16 +2139,19 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.filenameSuffix_ = filenameSuffix_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filenameDatetimeFormat_ = filenameDatetimeFormat_; + } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.maxDuration_ = maxDurationBuilder_ == null ? maxDuration_ : maxDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.maxBytes_ = maxBytes_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.state_ = state_; } result.bitField0_ |= to_bitField0_; @@ -2159,6 +2228,11 @@ public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig other) { bitField0_ |= 0x00000004; onChanged(); } + if (!other.getFilenameDatetimeFormat().isEmpty()) { + filenameDatetimeFormat_ = other.filenameDatetimeFormat_; + bitField0_ |= 0x00000008; + onChanged(); + } if (other.hasMaxDuration()) { mergeMaxDuration(other.getMaxDuration()); } @@ -2243,21 +2317,27 @@ public Builder mergeFrom( case 50: { input.readMessage(getMaxDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 56: { maxBytes_ = input.readInt64(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 56 case 72: { state_ = input.readEnum(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 72 + case 82: + { + filenameDatetimeFormat_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2639,6 +2719,122 @@ public Builder setFilenameSuffixBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filenameDatetimeFormat_ = ""; + /** + * + * + *
    +     * Optional. User-provided format string specifying how to represent datetimes
    +     * in Cloud Storage filenames. See the [datetime format
    +     * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
    +     * 
    + * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filenameDatetimeFormat. + */ + public java.lang.String getFilenameDatetimeFormat() { + java.lang.Object ref = filenameDatetimeFormat_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filenameDatetimeFormat_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. User-provided format string specifying how to represent datetimes
    +     * in Cloud Storage filenames. See the [datetime format
    +     * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
    +     * 
    + * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filenameDatetimeFormat. + */ + public com.google.protobuf.ByteString getFilenameDatetimeFormatBytes() { + java.lang.Object ref = filenameDatetimeFormat_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filenameDatetimeFormat_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. User-provided format string specifying how to represent datetimes
    +     * in Cloud Storage filenames. See the [datetime format
    +     * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
    +     * 
    + * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filenameDatetimeFormat to set. + * @return This builder for chaining. + */ + public Builder setFilenameDatetimeFormat(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filenameDatetimeFormat_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. User-provided format string specifying how to represent datetimes
    +     * in Cloud Storage filenames. See the [datetime format
    +     * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
    +     * 
    + * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilenameDatetimeFormat() { + filenameDatetimeFormat_ = getDefaultInstance().getFilenameDatetimeFormat(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. User-provided format string specifying how to represent datetimes
    +     * in Cloud Storage filenames. See the [datetime format
    +     * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
    +     * 
    + * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filenameDatetimeFormat to set. + * @return This builder for chaining. + */ + public Builder setFilenameDatetimeFormatBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filenameDatetimeFormat_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.CloudStorageConfig.TextConfig, com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, @@ -3134,7 +3330,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig * @return Whether the maxDuration field is set. */ public boolean hasMaxDuration() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -3180,7 +3376,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { } else { maxDurationBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3202,7 +3398,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal } else { maxDurationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3220,7 +3416,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal */ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { if (maxDurationBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && maxDuration_ != null && maxDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMaxDurationBuilder().mergeFrom(value); @@ -3231,7 +3427,7 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { maxDurationBuilder_.mergeFrom(value); } if (maxDuration_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -3249,7 +3445,7 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { *
    */ public Builder clearMaxDuration() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); maxDuration_ = null; if (maxDurationBuilder_ != null) { maxDurationBuilder_.dispose(); @@ -3271,7 +3467,7 @@ public Builder clearMaxDuration() { *
    */ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getMaxDurationFieldBuilder().getBuilder(); } @@ -3360,7 +3556,7 @@ public long getMaxBytes() { public Builder setMaxBytes(long value) { maxBytes_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3378,7 +3574,7 @@ public Builder setMaxBytes(long value) { * @return This builder for chaining. */ public Builder clearMaxBytes() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); maxBytes_ = 0L; onChanged(); return this; @@ -3420,7 +3616,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3463,7 +3659,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; state_ = value.getNumber(); onChanged(); return this; @@ -3483,7 +3679,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); state_ = 0; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 8b561caf3162..d643ff50ae2b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -111,6 +111,35 @@ public interface CloudStorageConfigOrBuilder */ com.google.protobuf.ByteString getFilenameSuffixBytes(); + /** + * + * + *
    +   * Optional. User-provided format string specifying how to represent datetimes
    +   * in Cloud Storage filenames. See the [datetime format
    +   * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
    +   * 
    + * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filenameDatetimeFormat. + */ + java.lang.String getFilenameDatetimeFormat(); + /** + * + * + *
    +   * Optional. User-provided format string specifying how to represent datetimes
    +   * in Cloud Storage filenames. See the [datetime format
    +   * guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
    +   * 
    + * + * string filename_datetime_format = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filenameDatetimeFormat. + */ + com.google.protobuf.ByteString getFilenameDatetimeFormatBytes(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 1e2f25b46c8d..ec2faf3c1bde 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -310,7 +310,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
            * Permission denied encountered while publishing to the topic. This can
    -       * happen due to Pub/Sub SA has not been granted the [appropriate publish
    +       * happen if the Pub/Sub SA has not been granted the [appropriate publish
            * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
            * 
    * @@ -383,7 +383,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * *
            * Permission denied encountered while publishing to the topic. This can
    -       * happen due to Pub/Sub SA has not been granted the [appropriate publish
    +       * happen if the Pub/Sub SA has not been granted the [appropriate publish
            * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
            * 
    * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 68742839540e..84afba3bf66c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -426,229 +426,230 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIE" + "D\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r" + "\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN" - + "_TRANSIT_LOCATION_RESTRICTION\020\005\"\316\004\n\022Clou" + + "_TRANSIT_LOCATION_RESTRICTION\020\005\"\365\004\n\022Clou" + "dStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017f" + "ilename_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_su" - + "ffix\030\003 \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.g" - + "oogle.pubsub.v1.CloudStorageConfig.TextC" - + "onfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.goog" - + "le.pubsub.v1.CloudStorageConfig.AvroConf" - + "igB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google" - + ".protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001" - + "(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v" - + "1.CloudStorageConfig.StateB\003\340A\003\032\014\n\nTextC" - + "onfig\032)\n\nAvroConfig\022\033\n\016write_metadata\030\001 " - + "\001(\010B\003\340A\001\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" - + "\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tN" - + "OT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RESTRI" - + "CTION\020\004B\017\n\routput_format\"|\n\017ReceivedMess" - + "age\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(" - + "\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022" - + "\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSub" - + "scriptionRequest\022@\n\014subscription\030\001 \001(\tB*" - + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" - + "on\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subs" - + "cription\030\001 \001(\0132\036.google.pubsub.v1.Subscr" - + "iptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscr" - + "iptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n" - + "+cloudresourcemanager.googleapis.com/Pro" - + "ject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok" - + "en\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRespon" - + "se\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsu" - + "b.v1.SubscriptionB\003\340A\001\022\034\n\017next_page_toke" - + "n\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionReques" - + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\"\223\001\n\027ModifyPu" - + "shConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "ffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_for" + + "mat\030\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.go" + + "ogle.pubsub.v1.CloudStorageConfig.TextCo" + + "nfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.googl" + + "e.pubsub.v1.CloudStorageConfig.AvroConfi" + + "gB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google." + + "protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(" + + "\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1" + + ".CloudStorageConfig.StateB\003\340A\003\032\014\n\nTextCo" + + "nfig\032)\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" + + "(\010B\003\340A\001\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" + + "T_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RESTRIC" + + "TION\020\004B\017\n\routput_format\"|\n\017ReceivedMessa" + + "ge\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\013" + + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035" + + "\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubs" + + "criptionRequest\022@\n\014subscription\030\001 \001(\tB*\340" + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\0226\n\013push_config\030\002 \001(\0132\034.google.pubsub.v" - + "1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014sub" - + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\022!\n\022return_immediatel" - + "y\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A" - + "\002\"Q\n\014PullResponse\022A\n\021received_messages\030\001" - + " \003(\0132!.google.pubsub.v1.ReceivedMessageB" - + "\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014sub" - + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A" - + "\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022" - + "AcknowledgeRequest\022@\n\014subscription\030\001 \001(\t" - + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" - + "tion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024Streaming" - + "PullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A" - + "$\n\"pubsub.googleapis.com/Subscription\022\024\n" - + "\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_s" - + "econds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack" - + "_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_s" - + "econds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A" - + "\001\022%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001" - + "\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n" - + "\025StreamingPullResponse\022A\n\021received_messa" - + "ges\030\001 \003(\0132!.google.pubsub.v1.ReceivedMes" - + "sageB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 " - + "\001(\0132?.google.pubsub.v1.StreamingPullResp" - + "onse.AcknowledgeConfirmationB\003\340A\001\022t\n mod" - + "ify_ack_deadline_confirmation\030\003 \001(\0132E.go" - + "ogle.pubsub.v1.StreamingPullResponse.Mod" - + "ifyAckDeadlineConfirmationB\003\340A\001\022d\n\027subsc" - + "ription_properties\030\004 \001(\0132>.google.pubsub" - + ".v1.StreamingPullResponse.SubscriptionPr" - + "opertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmatio" - + "n\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_i" - + "ds\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\t" - + "B\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB" - + "\003\340A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n" - + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002" - + " \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 " - + "\003(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035ex" - + "actly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%" - + "\n\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002" - + "\n\025CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340" - + "A\002\372A \n\036pubsub.googleapis.com/Snapshot\022@\n" - + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.goog" - + "leapis.com/Subscription\022H\n\006labels\030\003 \003(\0132" - + "3.google.pubsub.v1.CreateSnapshotRequest" - + ".LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnaps" - + "hotRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pu" - + "bsub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010" - + "Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001" - + "(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\022" - + "4\n\013expire_time\030\003 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.p" - + "ubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001:L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'" - + "projects/{project}/snapshots/{snapshot}\"" - + "N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB" - + "&\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"" - + "\215\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001(" - + "\tB3\340A\002\372A-\n+cloudresourcemanager.googleap" - + "is.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" - + "\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshots" - + "Response\0222\n\tsnapshots\030\001 \003(\0132\032.google.pub" - + "sub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_token\030" - + "\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010s" - + "napshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis" - + ".com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014subscri" - + "ption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.c" - + "om/Subscription\022/\n\004time\030\002 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001" - + "(\tB&\340A\001\372A \n\036pubsub.googleapis.com/Snapsh" - + "otH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPubli" - + "sher\022q\n\013CreateTopic\022\027.google.pubsub.v1.T" - + "opic\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323" - + "\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022" - + "\221\001\n\013UpdateTopic\022$.google.pubsub.v1.Updat" - + "eTopicRequest\032\027.google.pubsub.v1.Topic\"C" - + "\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{topic.n" - + "ame=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022" - + " .google.pubsub.v1.PublishRequest\032!.goog" - + "le.pubsub.v1.PublishResponse\"C\332A\016topic,m" - + "essages\202\323\344\223\002,\"\'/v1/{topic=projects/*/top" - + "ics/*}:publish:\001*\022w\n\010GetTopic\022!.google.p" - + "ubsub.v1.GetTopicRequest\032\027.google.pubsub" - + ".v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=pr" - + "ojects/*/topics/*}\022\212\001\n\nListTopics\022#.goog" - + "le.pubsub.v1.ListTopicsRequest\032$.google." - + "pubsub.v1.ListTopicsResponse\"1\332A\007project" - + "\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022" - + "\272\001\n\026ListTopicSubscriptions\022/.google.pubs" - + "ub.v1.ListTopicSubscriptionsRequest\0320.go" - + "ogle.pubsub.v1.ListTopicSubscriptionsRes" - + "ponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projec" - + "ts/*/topics/*}/subscriptions\022\252\001\n\022ListTop" - + "icSnapshots\022+.google.pubsub.v1.ListTopic" - + "SnapshotsRequest\032,.google.pubsub.v1.List" - + "TopicSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)" - + "/v1/{topic=projects/*/topics/*}/snapshot" - + "s\022|\n\013DeleteTopic\022$.google.pubsub.v1.Dele" - + "teTopicRequest\032\026.google.protobuf.Empty\"/" - + "\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/to" - + "pics/*}\022\255\001\n\022DetachSubscription\022+.google." - + "pubsub.v1.DetachSubscriptionRequest\032,.go" - + "ogle.pubsub.v1.DetachSubscriptionRespons" - + "e\"<\202\323\344\223\0026\"4/v1/{subscription=projects/*/" - + "subscriptions/*}:detach\032p\312A\025pubsub.googl" - + "eapis.com\322AUhttps://www.googleapis.com/a" - + "uth/cloud-platform,https://www.googleapi" - + "s.com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Cre" - + "ateSubscription\022\036.google.pubsub.v1.Subsc" - + "ription\032\036.google.pubsub.v1.Subscription\"" - + "^\332A+name,topic,push_config,ack_deadline_" - + "seconds\202\323\344\223\002*\032%/v1/{name=projects/*/subs" - + "criptions/*}:\001*\022\241\001\n\017GetSubscription\022(.go" - + "ogle.pubsub.v1.GetSubscriptionRequest\032\036." - + "google.pubsub.v1.Subscription\"D\332A\014subscr" - + "iption\202\323\344\223\002/\022-/v1/{subscription=projects" - + "/*/subscriptions/*}\022\273\001\n\022UpdateSubscripti" - + "on\022+.google.pubsub.v1.UpdateSubscription" - + "Request\032\036.google.pubsub.v1.Subscription\"" - + "X\332A\030subscription,update_mask\202\323\344\223\002722/v1/" - + "{subscription.name=projects/*/subscripti" - + "ons/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google" - + ".pubsub.v1.ListSubscriptionsRequest\032+.go" - + "ogle.pubsub.v1.ListSubscriptionsResponse" - + "\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=project" - + "s/*}/subscriptions\022\237\001\n\022DeleteSubscriptio" - + "n\022+.google.pubsub.v1.DeleteSubscriptionR" - + "equest\032\026.google.protobuf.Empty\"D\332A\014subsc" - + "ription\202\323\344\223\002/*-/v1/{subscription=project" - + "s/*/subscriptions/*}\022\317\001\n\021ModifyAckDeadli" - + "ne\022*.google.pubsub.v1.ModifyAckDeadlineR" - + "equest\032\026.google.protobuf.Empty\"v\332A)subsc" - + "ription,ack_ids,ack_deadline_seconds\202\323\344\223" - + "\002D\"?/v1/{subscription=projects/*/subscri" - + "ptions/*}:modifyAckDeadline:\001*\022\250\001\n\013Ackno" - + "wledge\022$.google.pubsub.v1.AcknowledgeReq" - + "uest\032\026.google.protobuf.Empty\"[\332A\024subscri" - + "ption,ack_ids\202\323\344\223\002>\"9/v1/{subscription=p" - + "rojects/*/subscriptions/*}:acknowledge:\001" - + "*\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullReques" - + "t\032\036.google.pubsub.v1.PullResponse\"\210\001\332A,s" - + "ubscription,return_immediately,max_messa" - + "ges\332A\031subscription,max_messages\202\323\344\223\0027\"2/" - + "v1/{subscription=projects/*/subscription" - + "s/*}:pull:\001*\022f\n\rStreamingPull\022&.google.p" - + "ubsub.v1.StreamingPullRequest\032\'.google.p" - + "ubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" - + "\020ModifyPushConfig\022).google.pubsub.v1.Mod" - + "ifyPushConfigRequest\032\026.google.protobuf.E" - + "mpty\"d\332A\030subscription,push_config\202\323\344\223\002C\"" - + ">/v1/{subscription=projects/*/subscripti" - + "ons/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapsh" - + "ot\022$.google.pubsub.v1.GetSnapshotRequest" - + "\032\032.google.pubsub.v1.Snapshot\"8\332A\010snapsho" - + "t\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsh" - + "ots/*}\022\226\001\n\rListSnapshots\022&.google.pubsub" - + ".v1.ListSnapshotsRequest\032\'.google.pubsub" - + ".v1.ListSnapshotsResponse\"4\332A\007project\202\323\344" - + "\223\002$\022\"/v1/{project=projects/*}/snapshots\022" - + "\227\001\n\016CreateSnapshot\022\'.google.pubsub.v1.Cr" - + "eateSnapshotRequest\032\032.google.pubsub.v1.S" - + "napshot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1" - + "/{name=projects/*/snapshots/*}:\001*\022\243\001\n\016Up" - + "dateSnapshot\022\'.google.pubsub.v1.UpdateSn" - + "apshotRequest\032\032.google.pubsub.v1.Snapsho" - + "t\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{s" - + "napshot.name=projects/*/snapshots/*}:\001*\022" - + "\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.De" - + "leteSnapshotRequest\032\026.google.protobuf.Em" - + "pty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=pr" - + "ojects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google." - + "pubsub.v1.SeekRequest\032\036.google.pubsub.v1" - + ".SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscription" - + "=projects/*/subscriptions/*}:seek:\001*\032p\312A" - + "\025pubsub.googleapis.com\322AUhttps://www.goo" - + "gleapis.com/auth/cloud-platform,https://" - + "www.googleapis.com/auth/pubsubB\252\001\n\024com.g" - + "oogle.pubsub.v1B\013PubsubProtoP\001Z2cloud.go" - + "ogle.com/go/pubsub/apiv1/pubsubpb;pubsub" - + "pb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\" - + "Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub:" - + ":V1b\006proto3" + + "n\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subsc" + + "ription\030\001 \001(\0132\036.google.pubsub.v1.Subscri" + + "ptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscri" + + "ptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+" + + "cloudresourcemanager.googleapis.com/Proj" + + "ect\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRespons" + + "e\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub" + + ".v1.SubscriptionB\003\340A\001\022\034\n\017next_page_token" + + "\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRequest" + + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" + + "oogleapis.com/Subscription\"\223\001\n\027ModifyPus" + + "hConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\0226\n\013push_config\030\002 \001(\0132\034.google.pubsub.v1" + + ".PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subs" + + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + + "s.com/Subscription\022!\n\022return_immediately" + + "\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002" + + "\"Q\n\014PullResponse\022A\n\021received_messages\030\001 " + + "\003(\0132!.google.pubsub.v1.ReceivedMessageB\003" + + "\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subs" + + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + + "s.com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002" + + "\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022A" + + "cknowledgeRequest\022@\n\014subscription\030\001 \001(\tB" + + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" + + "ion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingP" + + "ullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" + + "\n\"pubsub.googleapis.com/Subscription\022\024\n\007" + + "ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_se" + + "conds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack_" + + "ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_se" + + "conds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001" + + "\022%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022" + + "\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025" + + "StreamingPullResponse\022A\n\021received_messag" + + "es\030\001 \003(\0132!.google.pubsub.v1.ReceivedMess" + + "ageB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 \001" + + "(\0132?.google.pubsub.v1.StreamingPullRespo" + + "nse.AcknowledgeConfirmationB\003\340A\001\022t\n modi" + + "fy_ack_deadline_confirmation\030\003 \001(\0132E.goo" + + "gle.pubsub.v1.StreamingPullResponse.Modi" + + "fyAckDeadlineConfirmationB\003\340A\001\022d\n\027subscr" + + "iption_properties\030\004 \001(\0132>.google.pubsub." + + "v1.StreamingPullResponse.SubscriptionPro" + + "pertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmation" + + "\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_id" + + "s\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB" + + "\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB\003" + + "\340A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n\007" + + "ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 " + + "\003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 \003" + + "(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035exa" + + "ctly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" + + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n" + + "\025CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A" + + "\002\372A \n\036pubsub.googleapis.com/Snapshot\022@\n\014" + + "subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googl" + + "eapis.com/Subscription\022H\n\006labels\030\003 \003(\01323" + + ".google.pubsub.v1.CreateSnapshotRequest." + + "LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapsh" + + "otRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pub" + + "sub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010S" + + "napshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(" + + "\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\0224" + + "\n\013expire_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pu" + + "bsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'p" + + "rojects/{project}/snapshots/{snapshot}\"N" + + "\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&" + + "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\215" + + "\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsR" + + "esponse\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubs" + + "ub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002" + + " \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010sn" + + "apshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis." + + "com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014subscrip" + + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\022/\n\004time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(" + + "\tB&\340A\001\372A \n\036pubsub.googleapis.com/Snapsho" + + "tH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublis" + + "her\022q\n\013CreateTopic\022\027.google.pubsub.v1.To" + + "pic\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323\344" + + "\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221" + + "\001\n\013UpdateTopic\022$.google.pubsub.v1.Update" + + "TopicRequest\032\027.google.pubsub.v1.Topic\"C\332" + + "A\021topic,update_mask\202\323\344\223\002)2$/v1/{topic.na" + + "me=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 " + + ".google.pubsub.v1.PublishRequest\032!.googl" + + "e.pubsub.v1.PublishResponse\"C\332A\016topic,me" + + "ssages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topi" + + "cs/*}:publish:\001*\022w\n\010GetTopic\022!.google.pu" + + "bsub.v1.GetTopicRequest\032\027.google.pubsub." + + "v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=pro" + + "jects/*/topics/*}\022\212\001\n\nListTopics\022#.googl" + + "e.pubsub.v1.ListTopicsRequest\032$.google.p" + + "ubsub.v1.ListTopicsResponse\"1\332A\007project\202" + + "\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272" + + "\001\n\026ListTopicSubscriptions\022/.google.pubsu" + + "b.v1.ListTopicSubscriptionsRequest\0320.goo" + + "gle.pubsub.v1.ListTopicSubscriptionsResp" + + "onse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=project" + + "s/*/topics/*}/subscriptions\022\252\001\n\022ListTopi" + + "cSnapshots\022+.google.pubsub.v1.ListTopicS" + + "napshotsRequest\032,.google.pubsub.v1.ListT" + + "opicSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/" + + "v1/{topic=projects/*/topics/*}/snapshots" + + "\022|\n\013DeleteTopic\022$.google.pubsub.v1.Delet" + + "eTopicRequest\032\026.google.protobuf.Empty\"/\332" + + "A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/top" + + "ics/*}\022\255\001\n\022DetachSubscription\022+.google.p" + + "ubsub.v1.DetachSubscriptionRequest\032,.goo" + + "gle.pubsub.v1.DetachSubscriptionResponse" + + "\"<\202\323\344\223\0026\"4/v1/{subscription=projects/*/s" + + "ubscriptions/*}:detach\032p\312A\025pubsub.google" + + "apis.com\322AUhttps://www.googleapis.com/au" + + "th/cloud-platform,https://www.googleapis" + + ".com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Crea" + + "teSubscription\022\036.google.pubsub.v1.Subscr" + + "iption\032\036.google.pubsub.v1.Subscription\"^" + + "\332A+name,topic,push_config,ack_deadline_s" + + "econds\202\323\344\223\002*\032%/v1/{name=projects/*/subsc" + + "riptions/*}:\001*\022\241\001\n\017GetSubscription\022(.goo" + + "gle.pubsub.v1.GetSubscriptionRequest\032\036.g" + + "oogle.pubsub.v1.Subscription\"D\332A\014subscri" + + "ption\202\323\344\223\002/\022-/v1/{subscription=projects/" + + "*/subscriptions/*}\022\273\001\n\022UpdateSubscriptio" + + "n\022+.google.pubsub.v1.UpdateSubscriptionR" + + "equest\032\036.google.pubsub.v1.Subscription\"X" + + "\332A\030subscription,update_mask\202\323\344\223\002722/v1/{" + + "subscription.name=projects/*/subscriptio" + + "ns/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google." + + "pubsub.v1.ListSubscriptionsRequest\032+.goo" + + "gle.pubsub.v1.ListSubscriptionsResponse\"" + + "8\332A\007project\202\323\344\223\002(\022&/v1/{project=projects" + + "/*}/subscriptions\022\237\001\n\022DeleteSubscription" + + "\022+.google.pubsub.v1.DeleteSubscriptionRe" + + "quest\032\026.google.protobuf.Empty\"D\332A\014subscr" + + "iption\202\323\344\223\002/*-/v1/{subscription=projects" + + "/*/subscriptions/*}\022\317\001\n\021ModifyAckDeadlin" + + "e\022*.google.pubsub.v1.ModifyAckDeadlineRe" + + "quest\032\026.google.protobuf.Empty\"v\332A)subscr" + + "iption,ack_ids,ack_deadline_seconds\202\323\344\223\002" + + "D\"?/v1/{subscription=projects/*/subscrip" + + "tions/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknow" + + "ledge\022$.google.pubsub.v1.AcknowledgeRequ" + + "est\032\026.google.protobuf.Empty\"[\332A\024subscrip" + + "tion,ack_ids\202\323\344\223\002>\"9/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:acknowledge:\001*" + + "\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullRequest" + + "\032\036.google.pubsub.v1.PullResponse\"\210\001\332A,su" + + "bscription,return_immediately,max_messag" + + "es\332A\031subscription,max_messages\202\323\344\223\0027\"2/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}:pull:\001*\022f\n\rStreamingPull\022&.google.pu" + + "bsub.v1.StreamingPullRequest\032\'.google.pu" + + "bsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020" + + "ModifyPushConfig\022).google.pubsub.v1.Modi" + + "fyPushConfigRequest\032\026.google.protobuf.Em" + + "pty\"d\332A\030subscription,push_config\202\323\344\223\002C\">" + + "/v1/{subscription=projects/*/subscriptio" + + "ns/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapsho" + + "t\022$.google.pubsub.v1.GetSnapshotRequest\032" + + "\032.google.pubsub.v1.Snapshot\"8\332A\010snapshot" + + "\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsho" + + "ts/*}\022\226\001\n\rListSnapshots\022&.google.pubsub." + + "v1.ListSnapshotsRequest\032\'.google.pubsub." + + "v1.ListSnapshotsResponse\"4\332A\007project\202\323\344\223" + + "\002$\022\"/v1/{project=projects/*}/snapshots\022\227" + + "\001\n\016CreateSnapshot\022\'.google.pubsub.v1.Cre" + + "ateSnapshotRequest\032\032.google.pubsub.v1.Sn" + + "apshot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/" + + "{name=projects/*/snapshots/*}:\001*\022\243\001\n\016Upd" + + "ateSnapshot\022\'.google.pubsub.v1.UpdateSna" + + "pshotRequest\032\032.google.pubsub.v1.Snapshot" + + "\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{sn" + + "apshot.name=projects/*/snapshots/*}:\001*\022\213" + + "\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.Del" + + "eteSnapshotRequest\032\026.google.protobuf.Emp" + + "ty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=pro" + + "jects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.p" + + "ubsub.v1.SeekRequest\032\036.google.pubsub.v1." + + "SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=" + + "projects/*/subscriptions/*}:seek:\001*\032p\312A\025" + + "pubsub.googleapis.com\322AUhttps://www.goog" + + "leapis.com/auth/cloud-platform,https://w" + + "ww.googleapis.com/auth/pubsubB\252\001\n\024com.go" + + "ogle.pubsub.v1B\013PubsubProtoP\001Z2cloud.goo" + + "gle.com/go/pubsub/apiv1/pubsubpb;pubsubp" + + "b\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\C" + + "loud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::" + + "V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -962,6 +963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bucket", "FilenamePrefix", "FilenameSuffix", + "FilenameDatetimeFormat", "TextConfig", "AvroConfig", "MaxDuration", diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 49e0f1204090..37e6cb3137ba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1358 + * google/pubsub/v1/pubsub.proto;l=1363 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1358 + * google/pubsub/v1/pubsub.proto;l=1363 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1358 + * google/pubsub/v1/pubsub.proto;l=1363 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1358 + * google/pubsub/v1/pubsub.proto;l=1363 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index bcc0846fab10..93dce1877d2c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1358 + * google/pubsub/v1/pubsub.proto;l=1363 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 93e1e84a77a8..c3a90cd401af 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -203,7 +203,7 @@ message IngestionDataSourceSettings { KINESIS_PERMISSION_DENIED = 2; // Permission denied encountered while publishing to the topic. This can - // happen due to Pub/Sub SA has not been granted the [appropriate publish + // happen if the Pub/Sub SA has not been granted the [appropriate publish // permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher) PUBLISH_PERMISSION_DENIED = 3; @@ -1197,6 +1197,11 @@ message CloudStorageConfig { // Must not end in "/". string filename_suffix = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. User-provided format string specifying how to represent datetimes + // in Cloud Storage filenames. See the [datetime format + // guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names). + string filename_datetime_format = 10 [(google.api.field_behavior) = OPTIONAL]; + // Defaults to text format. oneof output_format { // Optional. If set, message data will be written to Cloud Storage in text From a52208d52640ff59641658ce801ffe87f21d271d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 4 Apr 2024 00:11:12 +0200 Subject: [PATCH 1751/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.26.1 (#1972) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d84d3c3de04e..741044ca5210 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.26.0 + 4.26.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a1429a46e79b..360d9bc58100 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.26.0 + 4.26.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d0a14bd264bd..396be5afbe81 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.26.0 + 4.26.1 From 44a6b062c68518a8fb6c834dfa9a90cca4e67555 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 4 Apr 2024 00:11:34 +0200 Subject: [PATCH 1752/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.35.0 (#1973) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.35.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 62f999a1ec05..55226890568b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.34.0 + 26.35.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.34.0') +implementation platform('com.google.cloud:libraries-bom:26.35.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 9c3e31530e96..2d623770fd66 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.34.0 + 26.35.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 396be5afbe81..2fd97a0d1d2d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.34.0 + 26.35.0 pom import From 0c4cbb879177b648023d545ae2c40592100b0b35 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 18:11:53 -0400 Subject: [PATCH 1753/2363] chore: update ignore paths in renovate config (#1945) (#1971) Source-Link: https://github.com/googleapis/synthtool/commit/571a0916913e0aff0f66ca513514072893d534eb Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:81c3ec554428c8ff6c92f0d58668b7ef52265d053a82284c97a326745e786949 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/renovate.json | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index d7b8a2d87b15..6167135e9534 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:cecae6152a85d55c932a64515643cf2e32a1f1b6e17503080eb07744b2177f28 -# created: 2024-03-25T17:31:37.187420732Z + digest: sha256:81c3ec554428c8ff6c92f0d58668b7ef52265d053a82284c97a326745e786949 +# created: 2024-03-27T17:59:25.436353226Z diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 6d24ffd87d3a..58c97664ecce 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -12,7 +12,10 @@ ], "ignorePaths": [ ".kokoro/requirements.txt", - ".github/workflows/**" + ".github/workflows/approve-readme.yaml", + ".github/workflows/ci.yaml", + ".github/workflows/renovate_config_check.yaml", + ".github/workflows/samples.yaml" ], "customManagers": [ { From 674b4a0a48a4e467dbecd3861775ad2a6b10d840 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 3 Apr 2024 19:56:34 -0400 Subject: [PATCH 1754/2363] chore(main): release 1.128.0 (#1967) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 1.128.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- java-pubsub/CHANGELOG.md | 19 +++++++++++++++++++ java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- .../samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 11 files changed, 41 insertions(+), 22 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 68581690dbff..9497564bd6c2 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.128.0](https://github.com/googleapis/java-pubsub/compare/v1.127.3...v1.128.0) (2024-04-03) + + +### Features + +* Add custom datetime format for Cloud Storage subscriptions ([#1970](https://github.com/googleapis/java-pubsub/issues/1970)) ([7113f06](https://github.com/googleapis/java-pubsub/commit/7113f065973bb8b56ab811e0589ffb7975873679)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.38.2 ([#1965](https://github.com/googleapis/java-pubsub/issues/1965)) ([ec3b386](https://github.com/googleapis/java-pubsub/commit/ec3b38665ddc6336f975d597d27c4aa25732c474)) +* Update dependency com.google.cloud:google-cloud-storage to v2.36.1 ([#1968](https://github.com/googleapis/java-pubsub/issues/1968)) ([524109c](https://github.com/googleapis/java-pubsub/commit/524109c1afc5118c79fd97769e194a1325322107)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.26.1 ([#1972](https://github.com/googleapis/java-pubsub/issues/1972)) ([53c1120](https://github.com/googleapis/java-pubsub/commit/53c112033dc721cf91aceddfc1eeb3c6daddb45e)) + + +### Documentation + +* Add Kinesis ingestion samples ([#1947](https://github.com/googleapis/java-pubsub/issues/1947)) ([5b5c14b](https://github.com/googleapis/java-pubsub/commit/5b5c14ba31636c037c2b8d6a166bd48670e23688)) + ## [1.127.3](https://github.com/googleapis/java-pubsub/compare/v1.127.2...v1.127.3) (2024-03-20) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 55226890568b..069947cbfc7e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.35.0 + 26.34.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.35.0') +implementation platform('com.google.cloud:libraries-bom:26.36.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c306409f1129..ee13a6f05e4e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.127.4-SNAPSHOT + 1.128.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.127.4-SNAPSHOT + 1.128.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b1766243f0f6..f1c57e859da1 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.127.4-SNAPSHOT + 1.128.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.127.4-SNAPSHOT + 1.128.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8a15fef01e38..99490c619d83 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.4-SNAPSHOT + 1.128.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 10dc42a8b04d..9c10f67c6fa0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.127.4-SNAPSHOT + 1.128.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0 com.google.cloud google-cloud-pubsub - 1.127.4-SNAPSHOT + 1.128.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e19772765603..3b1dc1da2d1e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.109.4-SNAPSHOT + 1.110.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.127.4-SNAPSHOT + 1.128.0 diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 2d623770fd66..9c3e31530e96 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.35.0 + 26.34.0 pom import diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 360d9bc58100..28b930472681 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.127.4-SNAPSHOT + 1.128.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2fd97a0d1d2d..396be5afbe81 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.35.0 + 26.34.0 pom import diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 15b2b7d00e73..2851c93c4a23 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.127.3:1.127.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.109.3:1.109.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.109.3:1.109.4-SNAPSHOT +google-cloud-pubsub:1.128.0:1.128.0 +grpc-google-cloud-pubsub-v1:1.110.0:1.110.0 +proto-google-cloud-pubsub-v1:1.110.0:1.110.0 From 2c5779c24ec2358849ee3e0134d0c68e49865853 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 00:12:16 +0000 Subject: [PATCH 1755/2363] chore(main): release 1.128.1-SNAPSHOT (#1979) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ee13a6f05e4e..c08a1914a1b1 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.128.0 + 1.128.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f1c57e859da1..dd26d5082f07 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.128.0 + 1.128.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 99490c619d83..3dee4d32c734 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.0 + 1.128.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9c10f67c6fa0..32bf26597be7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.128.0 + 1.128.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3b1dc1da2d1e..16d41d1350be 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.0 + 1.110.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.0 + 1.128.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 28b930472681..925ea64c93a7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 2851c93c4a23..f6bc47ca3662 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.128.0:1.128.0 -grpc-google-cloud-pubsub-v1:1.110.0:1.110.0 -proto-google-cloud-pubsub-v1:1.110.0:1.110.0 +google-cloud-pubsub:1.128.0:1.128.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.110.0:1.110.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.110.0:1.110.1-SNAPSHOT From 20c8d842e3d3c59fd7a03ba97a47ccc5b2042ec3 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:26:46 +0000 Subject: [PATCH 1756/2363] chore: change version of unmanaged dependency check (#1982) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: change version of unmanaged dependency check * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 62c5fa4a0887..a29e78535194 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@unmanaged-dependencies-check-latest + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.28.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 069947cbfc7e..b4ed5d367ba9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.127.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.128.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.127.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.128.0" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.127.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.128.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From 6fc17f288e40d12110ce8daeddb48daf1389115d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Apr 2024 00:58:27 +0200 Subject: [PATCH 1757/2363] deps: update actions/checkout action to v4 (#1975) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update actions/checkout action to v4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index a29e78535194..9bddc366353e 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -5,7 +5,7 @@ jobs: unmanaged_dependency_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-java@v3 with: distribution: temurin From e6b8d63a68f39e939aad12db762746aeb0f66c77 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Apr 2024 01:05:59 +0200 Subject: [PATCH 1758/2363] deps: update actions/github-script action to v7 (#1976) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update actions/github-script action to v7 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/workflows/auto-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index 7a106d007edf..18d92e5a28dd 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true From db09d8045e050be7c5988d6f03f15ed2a0dcc2a8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 19:07:55 -0400 Subject: [PATCH 1759/2363] chore: owlbot-java adding the Docker tag in images section (#1949) (#1983) Source-Link: https://github.com/googleapis/synthtool/commit/4b49307944160a308513a34f73dbd6b00b6617d2 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:25b384ee1674eda3984ec41c15b514a63bbeb5eda4d57c73c7e6f5adef2fd2f1 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 6167135e9534..6983bb263479 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:81c3ec554428c8ff6c92f0d58668b7ef52265d053a82284c97a326745e786949 -# created: 2024-03-27T17:59:25.436353226Z + digest: sha256:25b384ee1674eda3984ec41c15b514a63bbeb5eda4d57c73c7e6f5adef2fd2f1 +# created: 2024-04-05T19:12:34.133475268Z diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b4ed5d367ba9..710dccef5adb 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.36.0') +implementation platform('com.google.cloud:libraries-bom:26.37.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` From 08993fd1202653b6fce11a0a4fdbbbd852bc5893 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Apr 2024 01:08:23 +0200 Subject: [PATCH 1760/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.37.0 (#1977) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.37.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 710dccef5adb..7a01ab08112f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.34.0 + 26.37.0 pom import diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 9c3e31530e96..8f67bcb4be36 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.34.0 + 26.37.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 396be5afbe81..d74d3d3c4972 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.34.0 + 26.37.0 pom import From 02fa6b811f657ac6f9628ce8c873da1ad0543907 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Apr 2024 01:09:56 +0200 Subject: [PATCH 1761/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.128.0 (#1980) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.128.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7a01ab08112f..d03aa337b070 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.127.3 + 1.128.0 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 741044ca5210..662208e90e70 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.127.3 + 1.128.0 From bf1631cb4cb26e12f25a5f87f5a9a98c43bdf301 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 23:22:16 +0000 Subject: [PATCH 1762/2363] chore(main): release 1.128.1 (#1985) :robot: I have created a release *beep* *boop* --- ## [1.128.1](https://togithub.com/googleapis/java-pubsub/compare/v1.128.0...v1.128.1) (2024-04-10) ### Dependencies * Update actions/checkout action to v4 ([#1975](https://togithub.com/googleapis/java-pubsub/issues/1975)) ([6fc17f2](https://togithub.com/googleapis/java-pubsub/commit/6fc17f288e40d12110ce8daeddb48daf1389115d)) * Update actions/github-script action to v7 ([#1976](https://togithub.com/googleapis/java-pubsub/issues/1976)) ([e6b8d63](https://togithub.com/googleapis/java-pubsub/commit/e6b8d63a68f39e939aad12db762746aeb0f66c77)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 9497564bd6c2..4d43870f519c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.128.1](https://github.com/googleapis/java-pubsub/compare/v1.128.0...v1.128.1) (2024-04-10) + + +### Dependencies + +* Update actions/checkout action to v4 ([#1975](https://github.com/googleapis/java-pubsub/issues/1975)) ([618abdd](https://github.com/googleapis/java-pubsub/commit/618abdd44dd9670a5d6a1ca3c923e3d0621c6248)) +* Update actions/github-script action to v7 ([#1976](https://github.com/googleapis/java-pubsub/issues/1976)) ([c836172](https://github.com/googleapis/java-pubsub/commit/c8361722544ec4170b94651e77b02634938c7883)) + ## [1.128.0](https://github.com/googleapis/java-pubsub/compare/v1.127.3...v1.128.0) (2024-04-03) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c08a1914a1b1..8852d7925b87 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.128.1-SNAPSHOT + 1.128.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.128.1-SNAPSHOT + 1.128.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index dd26d5082f07..8a9725bf12bd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.128.1-SNAPSHOT + 1.128.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.128.1-SNAPSHOT + 1.128.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3dee4d32c734..42b35b97fe14 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.1-SNAPSHOT + 1.128.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 32bf26597be7..599808adc1fa 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.128.1-SNAPSHOT + 1.128.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 com.google.cloud google-cloud-pubsub - 1.128.1-SNAPSHOT + 1.128.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 16d41d1350be..d2a2c7fc1ac3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1-SNAPSHOT + 1.110.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.1-SNAPSHOT + 1.128.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 925ea64c93a7..4c0cf630131f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.128.1-SNAPSHOT + 1.128.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f6bc47ca3662..09a7d537fd95 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.128.0:1.128.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.110.0:1.110.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.110.0:1.110.1-SNAPSHOT +google-cloud-pubsub:1.128.1:1.128.1 +grpc-google-cloud-pubsub-v1:1.110.1:1.110.1 +proto-google-cloud-pubsub-v1:1.110.1:1.110.1 From 53397e488c442d579d375e9c3ac480cafd3e19d1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 23:36:16 +0000 Subject: [PATCH 1763/2363] chore(main): release 1.128.2-SNAPSHOT (#1986) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8852d7925b87..bc5527b59b8b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.128.1 + 1.128.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.128.1 + 1.128.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8a9725bf12bd..42c1c7ce2168 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.128.1 + 1.128.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.128.1 + 1.128.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 42b35b97fe14..2ff39998df3f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.1 + 1.128.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 599808adc1fa..3ad44b12b140 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.128.1 + 1.128.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.128.1 + 1.128.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d2a2c7fc1ac3..92eed2238838 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.1 + 1.110.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.1 + 1.128.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4c0cf630131f..c784b1204b09 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.128.1 + 1.128.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 09a7d537fd95..f582e1cf9c59 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.128.1:1.128.1 -grpc-google-cloud-pubsub-v1:1.110.1:1.110.1 -proto-google-cloud-pubsub-v1:1.110.1:1.110.1 +google-cloud-pubsub:1.128.1:1.128.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.110.1:1.110.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.110.1:1.110.2-SNAPSHOT From 2c6c7b45ed35d8822171bcdaf5d9c2e10c5ce238 Mon Sep 17 00:00:00 2001 From: Alice <65933803+alicejli@users.noreply.github.com> Date: Wed, 17 Apr 2024 11:44:22 -0400 Subject: [PATCH 1764/2363] chore: include recommended_package in repo-metadata.json (#1991) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: include recommended_package in repo-metadata.json * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.repo-metadata.json | 3 ++- java-pubsub/README.md | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 6cb07ab00942..f30706ceb7ba 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -14,5 +14,6 @@ "codeowner_team": "@googleapis/api-pubsub", "api_id": "pubsub.googleapis.com", "library_type": "GAPIC_COMBO", - "requires_billing": true + "requires_billing": true, + "recommended_package": "com.google.cloud.pubsub.v1" } \ No newline at end of file diff --git a/java-pubsub/README.md b/java-pubsub/README.md index d03aa337b070..2d051fe2adb9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.128.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.128.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.128.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.128.1" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.128.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.128.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From fe00e958013876f98f3f827edc4160f5b8262aab Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 17 Apr 2024 23:31:00 +0200 Subject: [PATCH 1765/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.128.1 (#1987) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.128.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2d051fe2adb9..ff535f0712ea 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 662208e90e70..a440be51f584 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.128.0 + 1.128.1 From ae17901981eefb32274bd2c2f0a90e0c48c5c105 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:31:08 -0400 Subject: [PATCH 1766/2363] build: Update protobuf to 25.3 in WORKSPACE (#1989) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build: Update protobuf to 25.3 in WORKSPACE PiperOrigin-RevId: 624989428 Source-Link: https://github.com/googleapis/googleapis/commit/caf600abae856335abbfcfa6d978bca051c2bc8c Source-Link: https://github.com/googleapis/googleapis-gen/commit/cc580b8ea4c07f774093d0f8c4afedd2eae6e856 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2M1ODBiOGVhNGMwN2Y3NzQwOTNkMGY4YzRhZmVkZDJlYWU2ZTg1NiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/CloudStorageConfig.java | 2 +- .../java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/CreateSnapshotRequest.java | 2 +- .../com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java | 2 +- .../google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Encoding.java | 2 +- .../src/main/java/com/google/pubsub/v1/ExpirationPolicy.java | 2 +- .../java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/GetSchemaRequest.java | 2 +- .../java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/GetSubscriptionRequest.java | 2 +- .../com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/IngestionDataSourceSettings.java | 2 +- .../google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java | 2 +- .../google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/ListSchemasRequest.java | 2 +- .../java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/ListSchemasResponse.java | 2 +- .../java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ListSnapshotsRequest.java | 2 +- .../com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ListSnapshotsResponse.java | 2 +- .../com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicSubscriptionsRequest.java | 2 +- .../pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicSubscriptionsResponse.java | 2 +- .../pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/ListTopicsRequest.java | 2 +- .../java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/ListTopicsResponse.java | 2 +- .../java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/MessageStoragePolicy.java | 2 +- .../com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PublishRequest.java | 2 +- .../main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PublishResponse.java | 2 +- .../java/com/google/pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PubsubMessage.java | 2 +- .../main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PubsubProto.java | 2 +- .../src/main/java/com/google/pubsub/v1/PullRequest.java | 2 +- .../main/java/com/google/pubsub/v1/PullRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PullResponse.java | 2 +- .../main/java/com/google/pubsub/v1/PullResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/PushConfig.java | 2 +- .../src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/RetryPolicy.java | 2 +- .../main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/RollbackSchemaRequest.java | 2 +- .../com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Schema.java | 2 +- .../src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/SchemaProto.java | 2 +- .../src/main/java/com/google/pubsub/v1/SchemaSettings.java | 2 +- .../main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/SchemaView.java | 2 +- .../src/main/java/com/google/pubsub/v1/SeekRequest.java | 2 +- .../main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/SeekResponse.java | 2 +- .../main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Snapshot.java | 2 +- .../src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/StreamingPullRequest.java | 2 +- .../com/google/pubsub/v1/StreamingPullRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/StreamingPullResponse.java | 2 +- .../com/google/pubsub/v1/StreamingPullResponseOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Subscription.java | 2 +- .../main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Topic.java | 2 +- .../src/main/java/com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ValidateMessageRequest.java | 2 +- .../com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ValidateMessageResponse.java | 2 +- .../com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ValidateSchemaRequest.java | 2 +- .../com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/ValidateSchemaResponse.java | 2 +- .../com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java | 2 +- 128 files changed, 128 insertions(+), 128 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 7d02c1dae369..668794506623 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 47b7ef171d3f..c63597264e97 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface AcknowledgeRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 4ada7989654f..67b06239da39 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 1162f9931a68..a2420175d6fc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface BigQueryConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 1d1cbaf1889a..5d3704a7dea8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index d643ff50ae2b..19eab21aba50 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface CloudStorageConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index b0cd6869168e..cdad41598db7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 638f15d9862d..cfa087dc3db8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface CommitSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index ab23cc3db87d..76fd2dae715d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index b72efe40c3ec..a23e7a3b7e3d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface CreateSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 48f0131c225c..3c7da99ab816 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index ecd2d5d2f06e..74ddf59105af 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface CreateSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index a5b1e01329ad..57afeb96a7af 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index ef589a2a79f7..4a1978e9b0fd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeadLetterPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index d6b1e3c5808b..c0ea4a8a5194 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 9faabb2bcb64..076450f415fa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeleteSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 5d17ea9f2ecf..6ac40de589e4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index c795a1e1d989..722f7dd48899 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeleteSchemaRevisionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 6ce385f7ec8f..96ede82bd914 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index fa454e7356e4..9663ebc9508b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeleteSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 6dd19306310d..2cd4d03f22e4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 22525f2bd325..17ceb01cba9a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeleteSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 6691a8e02717..60dc14c0206c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 236ae63cca76..4d2c3f90d732 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DeleteTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index ed63937e3b17..91f13786ddac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 0fa26b570bc3..fe853552a88d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DetachSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 8974d658affa..159c368d395c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 0d50e273cddd..1bc2d75a29e1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface DetachSubscriptionResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 5fa8f2e584dd..546992aeeebe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index cf5dfe323ab7..3af85ffe3c5d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 39d5d21b79b6..14c7afe7dfb7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ExpirationPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index a849d24bc0be..e7ecb8c7efd3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 09647ffcebfd..efa1fed5b5cf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface GetSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 5e453d1f7bcb..781abb305b53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 24afcaa926db..325bb59bb567 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface GetSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index b46914346304..496f0a16340d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index b9fd18e9c35d..c314020a8a23 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface GetSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 237a2210720e..1ac15ed4b52d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 423d0053c4e0..b1ea21ae5e83 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface GetTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index ec2faf3c1bde..b56f85ee0cc0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index 7191edd93bba..bb6b772b6451 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface IngestionDataSourceSettingsOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 3c3ae0b53f3a..a6642f7529e2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 9fc4c67719b4..8204f3f74847 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSchemaRevisionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index f48aabaef01e..9dd8d251a2af 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 03a233f0b918..2641ad810c67 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSchemaRevisionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index cea16a7e6b26..fe78eaca6190 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 0b8eb8c94b42..ac55a2d81470 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSchemasRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index eb6b7c8cd4e7..4cb9c7f3f769 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 4a7c6da09d37..320b026c728b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSchemasResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index e375b23129ef..648cca2f0470 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 6add8724c391..f8d56aa72aa0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSnapshotsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 5fa3caa84fc6..811a06f7650c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 3a0fc2f18cf2..13e8472343a8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSnapshotsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 0d1033830660..9a5ca2f39a03 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index cf0a23a85610..cfaa15b95044 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSubscriptionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 38bcdaa7b864..257a763d0ecc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 9702ee6a8529..02232e020376 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListSubscriptionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 04d59ac071f6..c7777e1237cf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index ed7e3b6ba35e..6d92bdbfb35f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicSnapshotsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 9e0ddfe5a4ee..520b7a7c8382 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index d8fa52928961..22d4796389ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicSnapshotsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 1cd0ec4d9388..cc1c7ba0ef5b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index f566e81cfe58..cb3a4e419127 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicSubscriptionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 3b1394a941f8..2750b4256842 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index b1d983699d62..f884bb44b3cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicSubscriptionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 49f2b04d779d..355aef97b949 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 2207da516ac1..87b88fc6390f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 1ddab4ffe8c5..30120c6ec9a1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index fa0fc598b13e..fdeff7d8475f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ListTopicsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 8b59c4383ee7..fbf890547a19 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 50763bc80c8a..e836d0653c44 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface MessageStoragePolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 58c76b3cb037..297e93e50bad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 3286db14ce52..19520abd3fe4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ModifyAckDeadlineRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 8cb3d6f3b548..8f8a5dceb9c3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 15f80a19be3b..341a6ff831ac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ModifyPushConfigRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 0c0b2828ae3f..dfbe0db2cb53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 46faa9c9301c..8c91821c1eb6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PublishRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 2d8fc0182a21..ca6ed68ddf05 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 1d7365285b44..c59d86e61c0f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PublishResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 493f01ccec87..9ac71c1b2131 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 1509232e73a7..0f829d666586 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PubsubMessageOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 84afba3bf66c..8fff960ed2d4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public final class PubsubProto { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 37e6cb3137ba..9d0f93c99a20 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 93dce1877d2c..08a7576aaf53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PullRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index f63d9e26be85..ad8af343648c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index dd54132aab25..be0759de0e45 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PullResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 01c977f883d0..f8ab6fe90afe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 6fa337bfdcc4..1959de88a14c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface PushConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index c29968fa1235..2e3758f8a5a3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index c264dbcffba2..76d5c48332e7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ReceivedMessageOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 1d732b864693..aad00e99991c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 243fada307ce..ffb8b81ca523 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface RetryPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index c35c26333314..7e03f82b9ea8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 4ee8574d4224..3e7d175668d8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface RollbackSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 3966a39d4fd6..162fe2c5598a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 10e502b3370e..d37cbd04305c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SchemaOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index a9aa772115ea..c37d55563684 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public final class SchemaProto { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 6542c6f6aaf6..0b80c5d0051f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 22df58e9df75..9bb24f70e31f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SchemaSettingsOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 83354637bc60..6e1d01c15039 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 732adf8b5d96..dcf3bc41a33c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 0b5968b3e142..57ba5547f1bc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SeekRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index e7ff73bf51ef..38470cccac77 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 78d0e1c4c130..bfddc8482ff7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SeekResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 61ed093bc3d1..7b19973736d3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index d304660a839a..7475a57bbb53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SnapshotOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index fb0b8c4cd963..c86a6f3717fc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 392a3b401879..f745c1ce90ae 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface StreamingPullRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index fc79cb7f82bb..43fb79840c08 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 38c37b680b39..e088dd987719 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface StreamingPullResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 8aae021aaddd..111ce505fd72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 6b57f92f865c..15a06889d250 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface SubscriptionOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index e8ecc6fd255b..e02ddfb68d89 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 0e44025b451d..5b06555e37c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface TopicOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 69e80a8385d7..7a906c423ca1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index daf1d090a9e1..45d85d1522de 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface UpdateSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 7f71bf3ace52..b91bfd8aa793 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 9904952bf69e..02025fe17ec2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface UpdateSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 5ce3a927d4cc..356606555097 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 024f90ccc628..1767d2f3d971 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface UpdateTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 8b0bc262a53c..fe2e281e2bee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 18436cb2db0b..99e1e670ced5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ValidateMessageRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 77c2d1c4d99b..ed1c7f8d5818 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index 2cb87b7fe67e..331fb646519a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ValidateMessageResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index d4f978e33c34..2f62e4de3dbc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 0f3cf4413512..f73e4b74b2f3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ValidateSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 3d801baa386f..8b925641019d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index f31accde5e52..4d673913d223 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.2 +// Protobuf Java Version: 3.25.3 package com.google.pubsub.v1; public interface ValidateSchemaResponseOrBuilder From d263f88e79d6c43cf8a0de85b8c74ba68b84a577 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 17 Apr 2024 23:31:17 +0200 Subject: [PATCH 1767/2363] deps: update actions/setup-java action to v4 (#1978) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update actions/setup-java action to v4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 9bddc366353e..b0843491c190 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 11 From a8da14d32c84cc17fcb64b296bf6b865864c9015 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:31:30 -0400 Subject: [PATCH 1768/2363] feat: add `libraries_bom_version` in metadata (#1956) (#1990) * feat: add libraries_bom_version * add unit tests * remove isfile * add tempdir * restore * add current dir * restore template * remove unit test * restore templates Source-Link: https://github.com/googleapis/synthtool/commit/63cc541da2c45fcfca2136c43e638da1fbae174d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:dc11e2119c854b57b7f7ed9962391decf002454700020a52b5d0d46c40b80a7e Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 6983bb263479..291f8e29cac6 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:25b384ee1674eda3984ec41c15b514a63bbeb5eda4d57c73c7e6f5adef2fd2f1 -# created: 2024-04-05T19:12:34.133475268Z + digest: sha256:dc11e2119c854b57b7f7ed9962391decf002454700020a52b5d0d46c40b80a7e +# created: 2024-04-15T22:37:28.944513098Z From 69656e1a73aa47393baeadd09153d12d602ecdb8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 21:46:16 +0000 Subject: [PATCH 1769/2363] chore(main): release 1.129.0 (#1993) :robot: I have created a release *beep* *boop* --- ## [1.129.0](https://togithub.com/googleapis/java-pubsub/compare/v1.128.1...v1.129.0) (2024-04-17) ### Features * Add `libraries_bom_version` in metadata ([#1956](https://togithub.com/googleapis/java-pubsub/issues/1956)) ([#1990](https://togithub.com/googleapis/java-pubsub/issues/1990)) ([a8da14d](https://togithub.com/googleapis/java-pubsub/commit/a8da14d32c84cc17fcb64b296bf6b865864c9015)) ### Dependencies * Update actions/setup-java action to v4 ([#1978](https://togithub.com/googleapis/java-pubsub/issues/1978)) ([d263f88](https://togithub.com/googleapis/java-pubsub/commit/d263f88e79d6c43cf8a0de85b8c74ba68b84a577)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 30 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 4d43870f519c..590fed1c1227 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.129.0](https://github.com/googleapis/java-pubsub/compare/v1.128.1...v1.129.0) (2024-04-17) + + +### Features + +* Add `libraries_bom_version` in metadata ([#1956](https://github.com/googleapis/java-pubsub/issues/1956)) ([#1990](https://github.com/googleapis/java-pubsub/issues/1990)) ([18cfa73](https://github.com/googleapis/java-pubsub/commit/18cfa73208bdf9b6a1a597bac740056abfcb03ef)) + + +### Dependencies + +* Update actions/setup-java action to v4 ([#1978](https://github.com/googleapis/java-pubsub/issues/1978)) ([64a0df3](https://github.com/googleapis/java-pubsub/commit/64a0df337c91f965e4d8960801e10f90f78c46cd)) + ## [1.128.1](https://github.com/googleapis/java-pubsub/compare/v1.128.0...v1.128.1) (2024-04-10) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index bc5527b59b8b..343fa290ceeb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.128.2-SNAPSHOT + 1.129.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.128.2-SNAPSHOT + 1.129.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 42c1c7ce2168..440cba5f2753 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.128.2-SNAPSHOT + 1.129.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.128.2-SNAPSHOT + 1.129.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2ff39998df3f..79a5dfb4cfcc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.2-SNAPSHOT + 1.129.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3ad44b12b140..6b96e1405c1a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.128.2-SNAPSHOT + 1.129.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 com.google.cloud google-cloud-pubsub - 1.128.2-SNAPSHOT + 1.129.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 92eed2238838..cd799665183c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.110.2-SNAPSHOT + 1.111.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.128.2-SNAPSHOT + 1.129.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c784b1204b09..af54fc4b7ecc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.128.2-SNAPSHOT + 1.129.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f582e1cf9c59..d72169f8b01a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.128.1:1.128.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.110.1:1.110.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.110.1:1.110.2-SNAPSHOT +google-cloud-pubsub:1.129.0:1.129.0 +grpc-google-cloud-pubsub-v1:1.111.0:1.111.0 +proto-google-cloud-pubsub-v1:1.111.0:1.111.0 From c4b1eb734b07330ae5b991bd3a0bb64aadf89f08 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 22:02:16 +0000 Subject: [PATCH 1770/2363] chore(main): release 1.129.1-SNAPSHOT (#1994) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 343fa290ceeb..c1f9b53e144b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.0 + 1.129.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 440cba5f2753..410eb0ae4c4a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.0 + 1.129.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 79a5dfb4cfcc..b028cbc526f7 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.0 + 1.129.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6b96e1405c1a..8944b02f9948 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.0 + 1.129.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index cd799665183c..8b526fcf615b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.0 + 1.111.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.0 + 1.129.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index af54fc4b7ecc..03976f281b05 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d72169f8b01a..c6d6b5e55cc2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.0:1.129.0 -grpc-google-cloud-pubsub-v1:1.111.0:1.111.0 -proto-google-cloud-pubsub-v1:1.111.0:1.111.0 +google-cloud-pubsub:1.129.0:1.129.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.0:1.111.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.0:1.111.1-SNAPSHOT From 4c6f5f02f29e56fab9d5981e18fbdc242682d4cb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Apr 2024 16:46:54 +0200 Subject: [PATCH 1771/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.37.0 (#1999) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-storage to v2.37.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ff535f0712ea..bef6ff00a5a6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.128.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.128.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.0" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.128.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a440be51f584..36354334be72 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.36.1 + 2.37.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 03976f281b05..c1676cdd01f1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.36.1 + 2.37.0 From 766901c346cf4cf11eb476dc6633401753bd3a76 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:47:05 -0400 Subject: [PATCH 1772/2363] fix(deps): Update the Java code generator (gapic-generator-java) to 2.39.0 (#2000) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(deps): Update the Java code generator (gapic-generator-java) to 2.39.0 PiperOrigin-RevId: 626430774 Source-Link: https://github.com/googleapis/googleapis/commit/835b84ebfc4974ab5dcd9b31ad66c01ef3455475 Source-Link: https://github.com/googleapis/googleapis-gen/commit/43f369d90f19d09ac18720151ab106042beb811b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDNmMzY5ZDkwZjE5ZDA5YWMxODcyMDE1MWFiMTA2MDQyYmViODExYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../pubsub/v1/stub/PublisherStubSettings.java | 18 ------------------ .../v1/stub/SchemaServiceStubSettings.java | 18 ------------------ .../pubsub/v1/stub/SubscriberStubSettings.java | 18 ------------------ 3 files changed, 54 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 11c0eadd7dda..40f03dd7f561 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -480,15 +480,6 @@ public PublisherStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -946,15 +937,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public PublisherStubSettings build() throws IOException { return new PublisherStubSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index e63ac6d7c4f7..9d68b251e995 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -340,15 +340,6 @@ public SchemaServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -775,15 +766,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public SchemaServiceStubSettings build() throws IOException { return new SchemaServiceStubSettings(this); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 85c2a53d776e..30803382af94 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -385,15 +385,6 @@ public SubscriberStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -959,15 +950,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public SubscriberStubSettings build() throws IOException { return new SubscriberStubSettings(this); From c0ab5eb0f70a2494030d974ff23deb1dad7f9898 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Apr 2024 16:47:34 +0200 Subject: [PATCH 1773/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.37.0 (#1997) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.37.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 36354334be72..2b8b3cae5039 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.36.1 + 2.37.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c1676cdd01f1..b9cf2bd6b3b1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.36.1 + 2.37.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d74d3d3c4972..3cc8e85361a2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.36.1 + 2.37.0 tests From b20429db337cb44b56e4291c6343278bf89701eb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Apr 2024 16:47:45 +0200 Subject: [PATCH 1774/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 (#1998) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index b0843491c190..ae38d2d7c075 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.28.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.29.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index c2a88196e84d..326361c6b5e3 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.28.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.29.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 94e00cbaa0a1..1b1d4c4bfe36 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.28.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.29.0" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8944b02f9948..50aa1cd6a3aa 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.28.1 + 3.29.0 From f69f70f33f862c8b6fa3651150eb0b64178e9379 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Apr 2024 16:48:05 +0200 Subject: [PATCH 1775/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.7.7 (#1992) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c1f9b53e144b..0d5d9cba28f7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.7.6 + 1.7.7 Google Cloud pubsub BOM From 64bf4aa364fa24eb068fca3f9e8a2bd0b04bddd4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Apr 2024 16:48:18 +0200 Subject: [PATCH 1776/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.0 (#1995) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bef6ff00a5a6..1729742d5de8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.128.1 + 1.129.0 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2b8b3cae5039..af36e3377037 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.128.1 + 1.129.0 From ba56bf1b90bd560142adc7c842d021c8a92994c3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 25 Apr 2024 22:07:40 +0200 Subject: [PATCH 1777/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 (#2002) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index af36e3377037..8bc5b37b743f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.38.2 + 2.39.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b9cf2bd6b3b1..85a4bab8d97f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.38.2 + 2.39.0 com.google.cloud From 21bc3030a6b04fe89d16e83f7d6df9cd986846ef Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 20:46:16 +0000 Subject: [PATCH 1778/2363] chore(main): release 1.129.1 (#2001) :robot: I have created a release *beep* *boop* --- ## [1.129.1](https://togithub.com/googleapis/java-pubsub/compare/v1.129.0...v1.129.1) (2024-04-25) ### Bug Fixes * **deps:** Update the Java code generator (gapic-generator-java) to 2.39.0 ([#2000](https://togithub.com/googleapis/java-pubsub/issues/2000)) ([766901c](https://togithub.com/googleapis/java-pubsub/commit/766901c346cf4cf11eb476dc6633401753bd3a76)) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 ([#2002](https://togithub.com/googleapis/java-pubsub/issues/2002)) ([ba56bf1](https://togithub.com/googleapis/java-pubsub/commit/ba56bf1b90bd560142adc7c842d021c8a92994c3)) * Update dependency com.google.cloud:google-cloud-core to v2.37.0 ([#1997](https://togithub.com/googleapis/java-pubsub/issues/1997)) ([c0ab5eb](https://togithub.com/googleapis/java-pubsub/commit/c0ab5eb0f70a2494030d974ff23deb1dad7f9898)) * Update dependency com.google.cloud:google-cloud-storage to v2.37.0 ([#1999](https://togithub.com/googleapis/java-pubsub/issues/1999)) ([4c6f5f0](https://togithub.com/googleapis/java-pubsub/commit/4c6f5f02f29e56fab9d5981e18fbdc242682d4cb)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 ([#1998](https://togithub.com/googleapis/java-pubsub/issues/1998)) ([b20429d](https://togithub.com/googleapis/java-pubsub/commit/b20429db337cb44b56e4291c6343278bf89701eb)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 15 +++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 33 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 590fed1c1227..a47d76dfce0a 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.129.1](https://github.com/googleapis/java-pubsub/compare/v1.129.0...v1.129.1) (2024-04-25) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.39.0 ([#2000](https://github.com/googleapis/java-pubsub/issues/2000)) ([09ee49a](https://github.com/googleapis/java-pubsub/commit/09ee49a8304089f4388cfbde58127d46fe07a5a1)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 ([#2002](https://github.com/googleapis/java-pubsub/issues/2002)) ([88517fe](https://github.com/googleapis/java-pubsub/commit/88517fe69a7a9577aa79b693957bf56a56d0980c)) +* Update dependency com.google.cloud:google-cloud-core to v2.37.0 ([#1997](https://github.com/googleapis/java-pubsub/issues/1997)) ([b4573ae](https://github.com/googleapis/java-pubsub/commit/b4573ae6c93ca47bc802616ae3715fc10163bf2e)) +* Update dependency com.google.cloud:google-cloud-storage to v2.37.0 ([#1999](https://github.com/googleapis/java-pubsub/issues/1999)) ([cff6d6a](https://github.com/googleapis/java-pubsub/commit/cff6d6a5fc297eb5254a409d495bda458dfebcd6)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 ([#1998](https://github.com/googleapis/java-pubsub/issues/1998)) ([bb80924](https://github.com/googleapis/java-pubsub/commit/bb80924e55bc97db82650d4ae2bdebf406c68f98)) + ## [1.129.0](https://github.com/googleapis/java-pubsub/compare/v1.128.1...v1.129.0) (2024-04-17) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0d5d9cba28f7..d76a23929777 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.1-SNAPSHOT + 1.129.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.1-SNAPSHOT + 1.129.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 410eb0ae4c4a..8e92a2378819 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.1-SNAPSHOT + 1.129.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.1-SNAPSHOT + 1.129.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b028cbc526f7..5aafa312cfee 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.1-SNAPSHOT + 1.129.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 50aa1cd6a3aa..05b5b42440a6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.1-SNAPSHOT + 1.129.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 com.google.cloud google-cloud-pubsub - 1.129.1-SNAPSHOT + 1.129.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 8b526fcf615b..9a612fb82a62 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1-SNAPSHOT + 1.111.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.1-SNAPSHOT + 1.129.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 85a4bab8d97f..88ef681ddba0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.1-SNAPSHOT + 1.129.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c6d6b5e55cc2..b211c5ee9a96 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.0:1.129.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.0:1.111.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.0:1.111.1-SNAPSHOT +google-cloud-pubsub:1.129.1:1.129.1 +grpc-google-cloud-pubsub-v1:1.111.1:1.111.1 +proto-google-cloud-pubsub-v1:1.111.1:1.111.1 From a0578f34134f0f59525a80caf517f4945e0bb2f1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 21:00:21 +0000 Subject: [PATCH 1779/2363] chore(main): release 1.129.2-SNAPSHOT (#2003) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d76a23929777..4b1f4e8d439a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.1 + 1.129.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8e92a2378819..a49aa0fb03a5 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.1 + 1.129.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5aafa312cfee..86e2b94c871d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.1 + 1.129.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 05b5b42440a6..ab830b7ccb59 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.1 + 1.129.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9a612fb82a62..b99a365f7b6e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.1 + 1.111.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.1 + 1.129.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 88ef681ddba0..e05b734417bd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b211c5ee9a96..38497cdd1fb9 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.1:1.129.1 -grpc-google-cloud-pubsub-v1:1.111.1:1.111.1 -proto-google-cloud-pubsub-v1:1.111.1:1.111.1 +google-cloud-pubsub:1.129.1:1.129.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.1:1.111.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.1:1.111.2-SNAPSHOT From dbdb8042805c49efd622623cdd7b26020d355c8a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Apr 2024 17:30:37 +0200 Subject: [PATCH 1780/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 (#2006) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-bigquery](https://togithub.com/googleapis/java-bigquery) | `2.39.0` -> `2.39.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-bigquery/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-bigquery/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-bigquery/2.39.0/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-bigquery/2.39.0/2.39.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-bigquery (com.google.cloud:google-cloud-bigquery) ### [`v2.39.1`](https://togithub.com/googleapis/java-bigquery/blob/HEAD/CHANGELOG.md#2391-2024-04-29) ##### Bug Fixes - [@​Nullable](https://togithub.com/Nullable) annotations on builder methods ([#​3222](https://togithub.com/googleapis/java-bigquery/issues/3222)) ([0c5eed1](https://togithub.com/googleapis/java-bigquery/commit/0c5eed1a18409f120a1243bd5da1db2aa4f9c206)) ##### Dependencies - Update actions/checkout action ([#​3267](https://togithub.com/googleapis/java-bigquery/issues/3267)) ([c297ed2](https://togithub.com/googleapis/java-bigquery/commit/c297ed2c77e36257451b5c12e4988f3293cdbb88)) - Update actions/upload-artifact action to v4.3.3 ([#​3258](https://togithub.com/googleapis/java-bigquery/issues/3258)) ([5215235](https://togithub.com/googleapis/java-bigquery/commit/52152350a2a6218b51ebf3d7dd6beb2699064a3c)) - Update dependency com.google.api.grpc:proto-google-cloud-bigqueryconnection-v1 to v2.44.0 ([#​3270](https://togithub.com/googleapis/java-bigquery/issues/3270)) ([ee09ab6](https://togithub.com/googleapis/java-bigquery/commit/ee09ab68ea2be824aaf4e3d08b67e3bfbab2977f)) - Update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v3.5.0 ([e7c6201](https://togithub.com/googleapis/java-bigquery/commit/e7c620119321b673c19b99adb79247cd3c52cd67)) - Update dependency com.google.cloud:google-cloud-datacatalog-bom to v1.48.0 ([#​3271](https://togithub.com/googleapis/java-bigquery/issues/3271)) ([3b6e0d5](https://togithub.com/googleapis/java-bigquery/commit/3b6e0d5e3d26b8e2de412aa926a638d72562d4a0)) - Update github/codeql-action action to v2.25.2 ([#​3260](https://togithub.com/googleapis/java-bigquery/issues/3260)) ([3302dc4](https://togithub.com/googleapis/java-bigquery/commit/3302dc46e3e2c6a173798ef7f1642d3d4cb20332)) - Update github/codeql-action action to v2.25.3 ([#​3268](https://togithub.com/googleapis/java-bigquery/issues/3268)) ([1cf2377](https://togithub.com/googleapis/java-bigquery/commit/1cf237702e16952029741c306aa57cb3558a663f))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 1729742d5de8..ab2939ab25cf 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.1" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8bc5b37b743f..7408d52bda4e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.39.0 + 2.39.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e05b734417bd..635885ae6554 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.39.0 + 2.39.1 com.google.cloud From 39a8a08c093b40d209639c00e88c415f95d3cf58 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Apr 2024 17:32:32 +0200 Subject: [PATCH 1781/2363] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.2 (#2005) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-deploy-plugin](https://maven.apache.org/plugins/) | `3.1.1` -> `3.1.2` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.apache.maven.plugins:maven-deploy-plugin/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.apache.maven.plugins:maven-deploy-plugin/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.apache.maven.plugins:maven-deploy-plugin/3.1.1/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.apache.maven.plugins:maven-deploy-plugin/3.1.1/3.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 678328275588..62bf27316d8d 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -54,7 +54,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.1 + 3.1.2 true From 8c5aef8b9bc1986b0a32d8b0a8b71f8ea4f57833 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:44:24 +0000 Subject: [PATCH 1782/2363] chore(main): release 1.129.2 (#2007) :robot: I have created a release *beep* *boop* --- ## [1.129.2](https://togithub.com/googleapis/java-pubsub/compare/v1.129.1...v1.129.2) (2024-04-30) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 ([#2006](https://togithub.com/googleapis/java-pubsub/issues/2006)) ([dbdb804](https://togithub.com/googleapis/java-pubsub/commit/dbdb8042805c49efd622623cdd7b26020d355c8a)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index a47d76dfce0a..e50b6f84a7b4 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.129.2](https://github.com/googleapis/java-pubsub/compare/v1.129.1...v1.129.2) (2024-04-30) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 ([#2006](https://github.com/googleapis/java-pubsub/issues/2006)) ([a7f4afb](https://github.com/googleapis/java-pubsub/commit/a7f4afbc870536a7964594bc1d5b9a2eb5076cce)) + ## [1.129.1](https://github.com/googleapis/java-pubsub/compare/v1.129.0...v1.129.1) (2024-04-25) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4b1f4e8d439a..9382cefdaca3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.2-SNAPSHOT + 1.129.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.2-SNAPSHOT + 1.129.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index a49aa0fb03a5..42a6d78b7b35 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.2-SNAPSHOT + 1.129.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.2-SNAPSHOT + 1.129.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 86e2b94c871d..d5ac8063e53d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.2-SNAPSHOT + 1.129.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ab830b7ccb59..4122773aad4e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.2-SNAPSHOT + 1.129.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2 com.google.cloud google-cloud-pubsub - 1.129.2-SNAPSHOT + 1.129.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b99a365f7b6e..0e606ba466c3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2-SNAPSHOT + 1.111.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.2-SNAPSHOT + 1.129.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 635885ae6554..64b30b5a3728 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.2-SNAPSHOT + 1.129.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 38497cdd1fb9..785b30761f93 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.1:1.129.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.1:1.111.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.1:1.111.2-SNAPSHOT +google-cloud-pubsub:1.129.2:1.129.2 +grpc-google-cloud-pubsub-v1:1.111.2:1.111.2 +proto-google-cloud-pubsub-v1:1.111.2:1.111.2 From ce72bcbeee51421c90002abd904081995f10aac0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:00:39 +0000 Subject: [PATCH 1783/2363] chore(main): release 1.129.3-SNAPSHOT (#2008) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ab2939ab25cf..994ce8f66ee0 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.37.0') +implementation platform('com.google.cloud:libraries-bom:26.38.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9382cefdaca3..d22f2c1abeae 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.2 + 1.129.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 42a6d78b7b35..c7e5453a5d34 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.2 + 1.129.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d5ac8063e53d..22a6c1ac3c19 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.2 + 1.129.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4122773aad4e..07f3f4bd77b0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.2 + 1.129.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0e606ba466c3..91f26af757db 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.2 + 1.111.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.2 + 1.129.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 64b30b5a3728..a2ffe347571f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 785b30761f93..5dc95ceed3c7 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.2:1.129.2 -grpc-google-cloud-pubsub-v1:1.111.2:1.111.2 -proto-google-cloud-pubsub-v1:1.111.2:1.111.2 +google-cloud-pubsub:1.129.2:1.129.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.2:1.111.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.2:1.111.3-SNAPSHOT From 3288ad340dc081c46158ceae64a7c38a772d92a5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Apr 2024 19:02:21 +0200 Subject: [PATCH 1784/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.1 (#2004) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.129.0` -> `1.129.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.129.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.129.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.129.0/1.129.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.129.0/1.129.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub) ### [`v1.129.1`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#11291-2024-04-25) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.129.0...v1.129.1) ##### Bug Fixes - **deps:** Update the Java code generator (gapic-generator-java) to 2.39.0 ([#​2000](https://togithub.com/googleapis/java-pubsub/issues/2000)) ([766901c](https://togithub.com/googleapis/java-pubsub/commit/766901c346cf4cf11eb476dc6633401753bd3a76)) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 ([#​2002](https://togithub.com/googleapis/java-pubsub/issues/2002)) ([ba56bf1](https://togithub.com/googleapis/java-pubsub/commit/ba56bf1b90bd560142adc7c842d021c8a92994c3)) - Update dependency com.google.cloud:google-cloud-core to v2.37.0 ([#​1997](https://togithub.com/googleapis/java-pubsub/issues/1997)) ([c0ab5eb](https://togithub.com/googleapis/java-pubsub/commit/c0ab5eb0f70a2494030d974ff23deb1dad7f9898)) - Update dependency com.google.cloud:google-cloud-storage to v2.37.0 ([#​1999](https://togithub.com/googleapis/java-pubsub/issues/1999)) ([4c6f5f0](https://togithub.com/googleapis/java-pubsub/commit/4c6f5f02f29e56fab9d5981e18fbdc242682d4cb)) - Update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 ([#​1998](https://togithub.com/googleapis/java-pubsub/issues/1998)) ([b20429d](https://togithub.com/googleapis/java-pubsub/commit/b20429db337cb44b56e4291c6343278bf89701eb))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 994ce8f66ee0..8424b67806d8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7408d52bda4e..06041d919377 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.0 + 1.129.1 From 6a446180f1af6007b246ed1f1deaf7dffc07fbd3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Apr 2024 22:04:21 +0200 Subject: [PATCH 1785/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.38.0 (#2009) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.37.0` -> `26.38.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:libraries-bom/26.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:libraries-bom/26.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:libraries-bom/26.37.0/26.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:libraries-bom/26.37.0/26.38.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-cloud-bom (com.google.cloud:libraries-bom) ### [`v26.38.0`](https://togithub.com/googleapis/java-cloud-bom/blob/HEAD/CHANGELOG.md#26380-2024-04-30) [Compare Source](https://togithub.com/googleapis/java-cloud-bom/compare/v26.37.0...v26.38.0) ##### Dependencies - update actions/checkout action to v4 ([#​6507](https://togithub.com/googleapis/java-cloud-bom/issues/6507)) ([5a9e817](https://togithub.com/googleapis/java-cloud-bom/commit/5a9e817b73209e40d2b55abce451d668143839c8)) - update actions/github-script action to v7 ([#​6508](https://togithub.com/googleapis/java-cloud-bom/issues/6508)) ([e2f9c9f](https://togithub.com/googleapis/java-cloud-bom/commit/e2f9c9ff3bf95206945b6aac26dd00ce0d1cf9fc)) - update actions/setup-java action to v4 ([#​6509](https://togithub.com/googleapis/java-cloud-bom/issues/6509)) ([8aae14e](https://togithub.com/googleapis/java-cloud-bom/commit/8aae14ea4fa7a113541307a2e417a1e0ed6c5001)) - update actions/setup-node action to v4 ([#​6510](https://togithub.com/googleapis/java-cloud-bom/issues/6510)) ([a20788d](https://togithub.com/googleapis/java-cloud-bom/commit/a20788dfe145e5f477d60d1ed8ea39bded1d1bfc)) - update dependency com.google.cloud:first-party-dependencies to v3.29.0 ([#​6540](https://togithub.com/googleapis/java-cloud-bom/issues/6540)) ([938cd30](https://togithub.com/googleapis/java-cloud-bom/commit/938cd303d70557abdc100cd72f33c6037a2cd62a)) - update dependency com.google.cloud:gapic-libraries-bom to v1.36.0 ([#​6549](https://togithub.com/googleapis/java-cloud-bom/issues/6549)) ([64ec4b5](https://togithub.com/googleapis/java-cloud-bom/commit/64ec4b5f8534ecf82dfca76ad0ed0e5ec88fa675)) - update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 ([#​6541](https://togithub.com/googleapis/java-cloud-bom/issues/6541)) ([a5798fc](https://togithub.com/googleapis/java-cloud-bom/commit/a5798fc611f95d3a80d45b6e8fd4c1bf47197e4e)) - update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 ([#​6554](https://togithub.com/googleapis/java-cloud-bom/issues/6554)) ([075716c](https://togithub.com/googleapis/java-cloud-bom/commit/075716c35b9471f00cca38bf74dfc275a54ef0dc)) - update dependency com.google.cloud:google-cloud-bigquerystorage-bom to v3.5.0 ([#​6551](https://togithub.com/googleapis/java-cloud-bom/issues/6551)) ([d4a55af](https://togithub.com/googleapis/java-cloud-bom/commit/d4a55afbce06fdd3a02d606ec6704886a7b551cf)) - update dependency com.google.cloud:google-cloud-bigtable-bom to v2.39.0 ([#​6543](https://togithub.com/googleapis/java-cloud-bom/issues/6543)) ([107b178](https://togithub.com/googleapis/java-cloud-bom/commit/107b1780898577c56f416b38f45b93fc43c2008f)) - update dependency com.google.cloud:google-cloud-datastore-bom to v2.19.1 ([#​6536](https://togithub.com/googleapis/java-cloud-bom/issues/6536)) ([4bd9f22](https://togithub.com/googleapis/java-cloud-bom/commit/4bd9f22483b648c1d9f8246a8a61f0589172d562)) - update dependency com.google.cloud:google-cloud-firestore-bom to v3.20.2 ([#​6537](https://togithub.com/googleapis/java-cloud-bom/issues/6537)) ([5d4e4bf](https://togithub.com/googleapis/java-cloud-bom/commit/5d4e4bf0a45dfc613959767fb6f2786cb4daf0aa)) - update dependency com.google.cloud:google-cloud-firestore-bom to v3.21.0 ([#​6550](https://togithub.com/googleapis/java-cloud-bom/issues/6550)) ([a497e07](https://togithub.com/googleapis/java-cloud-bom/commit/a497e07f39b6d5babc038cedb4db146c3653f3d5)) - update dependency com.google.cloud:google-cloud-logging-bom to v3.17.0 ([#​6544](https://togithub.com/googleapis/java-cloud-bom/issues/6544)) ([9b4fd06](https://togithub.com/googleapis/java-cloud-bom/commit/9b4fd06c039334a4c4657e08b52f6108dfcd3586)) - update dependency com.google.cloud:google-cloud-logging-logback to v0.131.5-alpha ([#​6542](https://togithub.com/googleapis/java-cloud-bom/issues/6542)) ([8f5603b](https://togithub.com/googleapis/java-cloud-bom/commit/8f5603b9d4799a335923a871897302232f91cff9)) - update dependency com.google.cloud:google-cloud-nio to v0.127.16 ([#​6538](https://togithub.com/googleapis/java-cloud-bom/issues/6538)) ([cd70cb1](https://togithub.com/googleapis/java-cloud-bom/commit/cd70cb17201994cddada81ed4087563df5135114)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.129.0 ([#​6524](https://togithub.com/googleapis/java-cloud-bom/issues/6524)) ([c3fcf29](https://togithub.com/googleapis/java-cloud-bom/commit/c3fcf29562c4c9559adc60e3e985bb828187a447)) - update dependency com.google.cloud:google-cloud-pubsub-bom to v1.129.1 ([#​6539](https://togithub.com/googleapis/java-cloud-bom/issues/6539)) ([952991e](https://togithub.com/googleapis/java-cloud-bom/commit/952991e5855cb5360f5080df7c4a78153a44b38b)) - update dependency com.google.cloud:google-cloud-pubsublite-bom to v1.13.3 ([#​6548](https://togithub.com/googleapis/java-cloud-bom/issues/6548)) ([20d3ebd](https://togithub.com/googleapis/java-cloud-bom/commit/20d3ebd081b431b08e1ce038cd01416ed73a8efc)) - update dependency com.google.cloud:google-cloud-spanner-bom to v6.65.0 ([#​6517](https://togithub.com/googleapis/java-cloud-bom/issues/6517)) ([c18e4a1](https://togithub.com/googleapis/java-cloud-bom/commit/c18e4a15f10046440f2b00ccf7dcfc477a4c825c)) - update dependency com.google.cloud:google-cloud-spanner-bom to v6.65.1 ([#​6555](https://togithub.com/googleapis/java-cloud-bom/issues/6555)) ([f48df36](https://togithub.com/googleapis/java-cloud-bom/commit/f48df3617749a7306b6478136c34340875c1ec47)) - update dependency com.google.cloud:google-cloud-spanner-jdbc to v2.17.0 ([#​6545](https://togithub.com/googleapis/java-cloud-bom/issues/6545)) ([4daf874](https://togithub.com/googleapis/java-cloud-bom/commit/4daf874c8cf7d94af80e08fbcfcbf8a84f236e9e)) - update dependency com.google.cloud:google-cloud-storage-bom to v2.37.0 ([#​6546](https://togithub.com/googleapis/java-cloud-bom/issues/6546)) ([fa3d6b7](https://togithub.com/googleapis/java-cloud-bom/commit/fa3d6b7afd4986c02b1b554d6aa9ee92273e6b5d)) - update dependency com.google.googlejavaformat:google-java-format to v1.22.0 ([#​6518](https://togithub.com/googleapis/java-cloud-bom/issues/6518)) ([dcdaf2a](https://togithub.com/googleapis/java-cloud-bom/commit/dcdaf2a88075e1c7d8660d1fbb5180b7a23d723f)) - update dependency commons-cli:commons-cli to v1.7.0 ([#​6547](https://togithub.com/googleapis/java-cloud-bom/issues/6547)) ([7e20379](https://togithub.com/googleapis/java-cloud-bom/commit/7e203796880b9f241effdc38aae1231935c48445)) - update dependency commons-io:commons-io to v2.16.1 ([#​6513](https://togithub.com/googleapis/java-cloud-bom/issues/6513)) ([a9d7444](https://togithub.com/googleapis/java-cloud-bom/commit/a9d7444eb810d98cff1e1d5da62c7996143f5ad2))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8424b67806d8..2a55cd07fe0e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.37.0 + 26.38.0 pom import @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.2" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 8f67bcb4be36..6be0ef7f8c4e 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.37.0 + 26.38.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 3cc8e85361a2..f58b1b62c5b0 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.37.0 + 26.38.0 pom import From f491ab631e7bf0b96bae092d4d061175a0d4d050 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Apr 2024 22:04:25 +0200 Subject: [PATCH 1786/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.2 (#2010) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.129.1` -> `1.129.2` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.129.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.129.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.129.1/1.129.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.129.1/1.129.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
    googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub) ### [`v1.129.2`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#11292-2024-04-30) [Compare Source](https://togithub.com/googleapis/java-pubsub/compare/v1.129.1...v1.129.2) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 ([#​2006](https://togithub.com/googleapis/java-pubsub/issues/2006)) ([dbdb804](https://togithub.com/googleapis/java-pubsub/commit/dbdb8042805c49efd622623cdd7b26020d355c8a))
    --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2a55cd07fe0e..2eaff9f4f1c2 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 06041d919377..73962fed6063 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.1 + 1.129.2 From ed2b28f989ce04d8d47bb1ddcd69dc80d7953d67 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 May 2024 17:01:49 +0200 Subject: [PATCH 1787/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.38.0 (#2011) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 73962fed6063..b9a3677445c5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.37.0 + 2.38.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a2ffe347571f..7d2976d90665 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.37.0 + 2.38.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f58b1b62c5b0..d3cbd8593de6 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.37.0 + 2.38.0 tests From b9acea11f1213357e4322e444cfff32172891e1e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 May 2024 17:02:22 +0200 Subject: [PATCH 1788/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.30.0 (#2012) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index ae38d2d7c075..c7a54af2b3e1 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.29.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.30.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 326361c6b5e3..b20ec8ff3525 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.29.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 1b1d4c4bfe36..aad0db97859a 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.29.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.0" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 07f3f4bd77b0..b096d6692d6d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.29.0 + 3.30.0 From f7c7f4f128573b0d71c7d48ae23d21c7b7e42211 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 15:16:17 +0000 Subject: [PATCH 1789/2363] chore(main): release 1.129.3 (#2013) :robot: I have created a release *beep* *boop* --- ## [1.129.3](https://togithub.com/googleapis/java-pubsub/compare/v1.129.2...v1.129.3) (2024-05-06) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.38.0 ([#2011](https://togithub.com/googleapis/java-pubsub/issues/2011)) ([ed2b28f](https://togithub.com/googleapis/java-pubsub/commit/ed2b28f989ce04d8d47bb1ddcd69dc80d7953d67)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.30.0 ([#2012](https://togithub.com/googleapis/java-pubsub/issues/2012)) ([b9acea1](https://togithub.com/googleapis/java-pubsub/commit/b9acea11f1213357e4322e444cfff32172891e1e)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index e50b6f84a7b4..ca945a7715d5 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.129.3](https://github.com/googleapis/java-pubsub/compare/v1.129.2...v1.129.3) (2024-05-06) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.38.0 ([#2011](https://github.com/googleapis/java-pubsub/issues/2011)) ([4a547d0](https://github.com/googleapis/java-pubsub/commit/4a547d08d02f3abaf23bfb8e5ed65e40c131bb94)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.30.0 ([#2012](https://github.com/googleapis/java-pubsub/issues/2012)) ([811d0e6](https://github.com/googleapis/java-pubsub/commit/811d0e609b5eb6eaf9c921828255407d9db68293)) + ## [1.129.2](https://github.com/googleapis/java-pubsub/compare/v1.129.1...v1.129.2) (2024-04-30) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d22f2c1abeae..2f33de814445 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.3-SNAPSHOT + 1.129.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.3-SNAPSHOT + 1.129.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c7e5453a5d34..8476bea108dd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.3-SNAPSHOT + 1.129.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.3-SNAPSHOT + 1.129.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 22a6c1ac3c19..969734fad516 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.3-SNAPSHOT + 1.129.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b096d6692d6d..9e5454562767 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.3-SNAPSHOT + 1.129.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3 com.google.cloud google-cloud-pubsub - 1.129.3-SNAPSHOT + 1.129.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 91f26af757db..4b5c1bd99c04 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3-SNAPSHOT + 1.111.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.3-SNAPSHOT + 1.129.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7d2976d90665..c3d86983878d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.3-SNAPSHOT + 1.129.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 5dc95ceed3c7..9ecc0b412250 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.2:1.129.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.2:1.111.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.2:1.111.3-SNAPSHOT +google-cloud-pubsub:1.129.3:1.129.3 +grpc-google-cloud-pubsub-v1:1.111.3:1.111.3 +proto-google-cloud-pubsub-v1:1.111.3:1.111.3 From f89c0ea9748942eeb728c671d7e93d353b466dda Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 15:30:17 +0000 Subject: [PATCH 1790/2363] chore(main): release 1.129.4-SNAPSHOT (#2014) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2f33de814445..3856a9f7973b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.3 + 1.129.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8476bea108dd..70364b669048 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.3 + 1.129.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 969734fad516..c7fd436e0181 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.3 + 1.129.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9e5454562767..c9e2c6cc541d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.3 + 1.129.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4b5c1bd99c04..eaf576f0331a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.3 + 1.111.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.3 + 1.129.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c3d86983878d..6aa63955e60c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9ecc0b412250..0dd77f862dc6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.3:1.129.3 -grpc-google-cloud-pubsub-v1:1.111.3:1.111.3 -proto-google-cloud-pubsub-v1:1.111.3:1.111.3 +google-cloud-pubsub:1.129.3:1.129.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.3:1.111.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.3:1.111.4-SNAPSHOT From d7505c510ce35f85d700c685ddebd45284817a4b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 14:09:25 -0400 Subject: [PATCH 1791/2363] fix!: chore: autogen updates (#2017) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: An existing method `UpdateVehicleLocation` is removed from service `VehicleService` fix: An existing method `SearchFuzzedVehicles` is removed from service `VehicleService` fix: An existing message `UpdateVehicleLocationRequest` is removed PiperOrigin-RevId: 631557549 Source-Link: https://github.com/googleapis/googleapis/commit/3d50414a7ff3f0b8ffe8ad7858257396e4f18131 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5ce63d4e636a975175bde2d16c15e70dd5a81ff4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWNlNjNkNGU2MzZhOTc1MTc1YmRlMmQxNmMxNWU3MGRkNWE4MWZmNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- .../src/main/proto/google/pubsub/v1/pubsub.proto | 2 +- .../src/main/proto/google/pubsub/v1/schema.proto | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2eaff9f4f1c2..bf766c9027ec 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.3" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index c3a90cd401af..2e606060dfd0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index bd17cf0f892c..d52c678c5953 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 0d1a4b128af44382038c299f51a96ebeb5f3fb2a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 9 May 2024 20:49:38 +0200 Subject: [PATCH 1792/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.3 (#2015) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bf766c9027ec..17145cd37f0f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b9a3677445c5..11c82c27cb4d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.2 + 1.129.3 From e35b5d05f94aebf0972b481430258695e1c74332 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 9 May 2024 20:49:51 +0200 Subject: [PATCH 1793/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.0 (#2016) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 11c82c27cb4d..ff139feacc5d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.39.1 + 2.40.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 6aa63955e60c..59448905c2dd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.39.1 + 2.40.0 com.google.cloud From ad739927c33e392f49b863d73899b32e397fb9ab Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 15:07:30 -0400 Subject: [PATCH 1794/2363] chore: update dependency versions in java templates (#1964) (#2018) * chore: update dependency versions in java templates * update other templates Source-Link: https://github.com/googleapis/synthtool/commit/0b86c72fe652dd7e52ba05a63f61bc1399ad5d65 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 +-- .../.github/workflows/approve-readme.yaml | 2 +- java-pubsub/.github/workflows/ci.yaml | 30 +++++++++---------- .../workflows/renovate_config_check.yaml | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 291f8e29cac6..5db36a5f7d8e 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:dc11e2119c854b57b7f7ed9962391decf002454700020a52b5d0d46c40b80a7e -# created: 2024-04-15T22:37:28.944513098Z + digest: sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e +# created: 2024-05-09T16:31:37.168667071Z diff --git a/java-pubsub/.github/workflows/approve-readme.yaml b/java-pubsub/.github/workflows/approve-readme.yaml index f5fc7d5169eb..59f00b8eb6e6 100644 --- a/java-pubsub/.github/workflows/approve-readme.yaml +++ b/java-pubsub/.github/workflows/approve-readme.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index ae66b1973b17..b91fa381f56b 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -27,8 +27,8 @@ jobs: matrix: java: [11, 17, 21] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: ${{matrix.java}} @@ -41,8 +41,8 @@ jobs: name: "units (8)" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: java-version: 8 distribution: temurin @@ -51,7 +51,7 @@ jobs: # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV shell: bash - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: java-version: 17 distribution: temurin @@ -63,8 +63,8 @@ jobs: steps: - name: Support longpaths run: git config --system core.longpaths true - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 8 @@ -78,8 +78,8 @@ jobs: matrix: java: [17] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: ${{matrix.java}} @@ -88,8 +88,8 @@ jobs: javadoc: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 17 @@ -100,8 +100,8 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 11 @@ -112,8 +112,8 @@ jobs: clirr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin java-version: 8 diff --git a/java-pubsub/.github/workflows/renovate_config_check.yaml b/java-pubsub/.github/workflows/renovate_config_check.yaml index 87d8eb2be8cd..7c5ec7865e11 100644 --- a/java-pubsub/.github/workflows/renovate_config_check.yaml +++ b/java-pubsub/.github/workflows/renovate_config_check.yaml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '20' From 799893bc31b95cc8202b079676ec325a6b47b9cc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 9 May 2024 21:08:03 +0200 Subject: [PATCH 1795/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.38.0 (#2019) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-storage to v2.38.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ff139feacc5d..7ec99fabf86f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.37.0 + 2.38.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 59448905c2dd..42fb2c531c6c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.37.0 + 2.38.0 From 446845d416a8d99c1ce3bb0516ff8988803973fa Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 9 May 2024 21:39:43 +0200 Subject: [PATCH 1796/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.1 (#2021) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7ec99fabf86f..5e7e1bf8c8ae 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.40.0 + 2.40.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 42fb2c531c6c..ae21db424e01 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.40.0 + 2.40.1 com.google.cloud From 5fa3752a1759c5ec0c171a90075c4d8fd3fced6d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 10 May 2024 05:13:00 +0200 Subject: [PATCH 1797/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.39.0 (#2022) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.39.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 17145cd37f0f..f53076790d09 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.38.0 + 26.39.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.38.0') +implementation platform('com.google.cloud:libraries-bom:26.39.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 6be0ef7f8c4e..9be5d698b84d 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.38.0 + 26.39.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d3cbd8593de6..0abb8a5272a3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.38.0 + 26.39.0 pom import From 4eeb44a2c91435102ad11ef30ae3cd008d2fd03c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 23:59:36 -0400 Subject: [PATCH 1798/2363] chore(main): release 1.129.4 (#2020) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index ca945a7715d5..0ff1624f8074 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.129.4](https://github.com/googleapis/java-pubsub/compare/v1.129.3...v1.129.4) (2024-05-10) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.40.0 ([#2016](https://github.com/googleapis/java-pubsub/issues/2016)) ([beee523](https://github.com/googleapis/java-pubsub/commit/beee523ffc501a33b99a4ee82ccdb04b83391403)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.40.1 ([#2021](https://github.com/googleapis/java-pubsub/issues/2021)) ([0873594](https://github.com/googleapis/java-pubsub/commit/0873594c000f470c6193ebe8b4d091701670ef06)) +* Update dependency com.google.cloud:google-cloud-storage to v2.38.0 ([#2019](https://github.com/googleapis/java-pubsub/issues/2019)) ([ba3dffc](https://github.com/googleapis/java-pubsub/commit/ba3dffc3ac8cf173362307c24bc46e815c64db40)) + ## [1.129.3](https://github.com/googleapis/java-pubsub/compare/v1.129.2...v1.129.3) (2024-05-06) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3856a9f7973b..5c6c22c7a180 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.4-SNAPSHOT + 1.129.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.4-SNAPSHOT + 1.129.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 70364b669048..ee2ec348e739 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.4-SNAPSHOT + 1.129.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.4-SNAPSHOT + 1.129.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c7fd436e0181..5f3eb8fa6e11 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.4-SNAPSHOT + 1.129.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c9e2c6cc541d..887ae5072982 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.4-SNAPSHOT + 1.129.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 com.google.cloud google-cloud-pubsub - 1.129.4-SNAPSHOT + 1.129.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index eaf576f0331a..2708ba9d8820 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4-SNAPSHOT + 1.111.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.4-SNAPSHOT + 1.129.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ae21db424e01..2a9352c08757 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.4-SNAPSHOT + 1.129.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0dd77f862dc6..d94e9ac5e88c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.3:1.129.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.3:1.111.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.3:1.111.4-SNAPSHOT +google-cloud-pubsub:1.129.4:1.129.4 +grpc-google-cloud-pubsub-v1:1.111.4:1.111.4 +proto-google-cloud-pubsub-v1:1.111.4:1.111.4 From aee155c058cdca981cfd180e19ba2f39f1ff580e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 04:12:17 +0000 Subject: [PATCH 1799/2363] chore(main): release 1.129.5-SNAPSHOT (#2023) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5c6c22c7a180..4505076d0818 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.4 + 1.129.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ee2ec348e739..854d7f8ee7cc 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.4 + 1.129.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 5f3eb8fa6e11..a65f439c40cc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.4 + 1.129.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 887ae5072982..85369933c2d4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.4 + 1.129.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2708ba9d8820..611bb72d1e8c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.4 + 1.111.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.4 + 1.129.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2a9352c08757..858801d5071c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d94e9ac5e88c..1ff82af9a5ba 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.4:1.129.4 -grpc-google-cloud-pubsub-v1:1.111.4:1.111.4 -proto-google-cloud-pubsub-v1:1.111.4:1.111.4 +google-cloud-pubsub:1.129.4:1.129.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.4:1.111.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.4:1.111.5-SNAPSHOT From fb5aeb20601d59479d795a7b0d92565eca7b0869 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 16 May 2024 22:28:40 +0200 Subject: [PATCH 1800/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.4 (#2024) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.4 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f53076790d09..209e04d03674 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.4" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5e7e1bf8c8ae..801d0a8d02e8 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.3 + 1.129.4 From e0a2cc344dcd1440be3eaff4c4ceb09076c1b145 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 16 May 2024 22:52:49 +0200 Subject: [PATCH 1801/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.30.1 (#2028) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index c7a54af2b3e1..ebaa54bab6a5 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.30.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.30.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index b20ec8ff3525..532f888ecbb9 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.1" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index aad0db97859a..1292cf163b17 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.1" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 85369933c2d4..abb9c586847d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.30.0 + 3.30.1 From f7127b57320dff05c096f4ca0bc4ecb0516b6eff Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 16 May 2024 22:53:20 +0200 Subject: [PATCH 1802/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.38.1 (#2027) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 801d0a8d02e8..aca7ad857fc5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.38.0 + 2.38.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 858801d5071c..91f855bf2c4d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.38.0 + 2.38.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 0abb8a5272a3..d61fbb200673 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.38.0 + 2.38.1 tests From 87579b6d504ca8e53d19cc8e721a6328fa5e1a59 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 16 May 2024 21:08:17 +0000 Subject: [PATCH 1803/2363] chore(main): release 1.129.5 (#2029) :robot: I have created a release *beep* *boop* --- ## [1.129.5](https://togithub.com/googleapis/java-pubsub/compare/v1.129.4...v1.129.5) (2024-05-16) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.38.1 ([#2027](https://togithub.com/googleapis/java-pubsub/issues/2027)) ([f7127b5](https://togithub.com/googleapis/java-pubsub/commit/f7127b57320dff05c096f4ca0bc4ecb0516b6eff)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.30.1 ([#2028](https://togithub.com/googleapis/java-pubsub/issues/2028)) ([e0a2cc3](https://togithub.com/googleapis/java-pubsub/commit/e0a2cc344dcd1440be3eaff4c4ceb09076c1b145)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 0ff1624f8074..82292bbdf19f 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.129.5](https://github.com/googleapis/java-pubsub/compare/v1.129.4...v1.129.5) (2024-05-16) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.38.1 ([#2027](https://github.com/googleapis/java-pubsub/issues/2027)) ([535edf6](https://github.com/googleapis/java-pubsub/commit/535edf6496700bc5c5fb0b5cfa1cac6be5d62875)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.30.1 ([#2028](https://github.com/googleapis/java-pubsub/issues/2028)) ([aedcffd](https://github.com/googleapis/java-pubsub/commit/aedcffdaedbaa30627c96f96bfa5430bd4666cf0)) + ## [1.129.4](https://github.com/googleapis/java-pubsub/compare/v1.129.3...v1.129.4) (2024-05-10) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4505076d0818..b78628e9a847 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.5-SNAPSHOT + 1.129.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.5-SNAPSHOT + 1.129.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 854d7f8ee7cc..cbbe43bbabff 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.5-SNAPSHOT + 1.129.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.5-SNAPSHOT + 1.129.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a65f439c40cc..cd7cf1543fcf 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.5-SNAPSHOT + 1.129.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index abb9c586847d..f5ce4e879f11 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.5-SNAPSHOT + 1.129.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 com.google.cloud google-cloud-pubsub - 1.129.5-SNAPSHOT + 1.129.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 611bb72d1e8c..035d3c1a93c9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5-SNAPSHOT + 1.111.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.5-SNAPSHOT + 1.129.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 91f855bf2c4d..30eff75fc29a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.5-SNAPSHOT + 1.129.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1ff82af9a5ba..a60a4ba33630 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.4:1.129.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.4:1.111.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.4:1.111.5-SNAPSHOT +google-cloud-pubsub:1.129.5:1.129.5 +grpc-google-cloud-pubsub-v1:1.111.5:1.111.5 +proto-google-cloud-pubsub-v1:1.111.5:1.111.5 From 6c307ee0d060de0fecde35a77e6e33573bc30bcc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 04:24:17 +0000 Subject: [PATCH 1804/2363] chore(main): release 1.129.6-SNAPSHOT (#2030) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b78628e9a847..4b69d2da0647 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.5 + 1.129.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cbbe43bbabff..447eb24cf5eb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.5 + 1.129.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index cd7cf1543fcf..7c1ae3c3731a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.5 + 1.129.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f5ce4e879f11..b0e924702c10 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.5 + 1.129.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 035d3c1a93c9..3ee04ae74108 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.5 + 1.111.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.5 + 1.129.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 30eff75fc29a..712efd45981b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a60a4ba33630..f3e265d3e382 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.5:1.129.5 -grpc-google-cloud-pubsub-v1:1.111.5:1.111.5 -proto-google-cloud-pubsub-v1:1.111.5:1.111.5 +google-cloud-pubsub:1.129.5:1.129.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.5:1.111.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.5:1.111.6-SNAPSHOT From 077753517ef3b72b1b9fc7356226704d0b6ef2bc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 May 2024 04:16:35 +0200 Subject: [PATCH 1805/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.5 (#2031) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 209e04d03674..ccb4826f9859 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.5" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.5 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index aca7ad857fc5..c1ffbc839c46 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.4 + 1.129.5 From 1ef08d704b395f8c9c7673acc63a58f65147cf46 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 May 2024 04:16:47 +0200 Subject: [PATCH 1806/2363] test(deps): update dependency org.graalvm.buildtools:junit-platform-native to v0.10.2 (#2036) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test(deps): update dependency org.graalvm.buildtools:junit-platform-native to v0.10.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 9be5d698b84d..8f7b14d9c58a 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -113,7 +113,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools junit-platform-native - 0.10.1 + 0.10.2 test From 60bcde2ab13987bc34454e031083326757bbc130 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 May 2024 04:16:54 +0200 Subject: [PATCH 1807/2363] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.0 (#2037) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c1ffbc839c46..ccf790fcceb1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -101,7 +101,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.5.0 + 3.6.0 add-snippets-source diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 712efd45981b..673c928a6f8a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -100,7 +100,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.5.0 + 3.6.0 add-snippets-source From 7a91acb5f9c99922f5ad2fd43800c0f82adc2d27 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 May 2024 04:18:16 +0200 Subject: [PATCH 1808/2363] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 (#2035) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 8f7b14d9c58a..4bef2579fc28 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -134,7 +134,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.graalvm.buildtools native-maven-plugin - 0.10.1 + 0.10.2 true pubsub.NativeImagePubSubSample From f07839f08bcf2af76609a2da9e039d1a9ca73d56 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 May 2024 16:10:28 +0200 Subject: [PATCH 1809/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.39.0 (#2040) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-storage to v2.39.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ccf790fcceb1..ea1c0901edf9 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.38.0 + 2.39.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 673c928a6f8a..31f105380d2a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.38.0 + 2.39.0 From f24226843553b78f30ca59aed3e18c6db54b9403 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 23 May 2024 14:26:16 +0000 Subject: [PATCH 1810/2363] chore(main): release 1.129.6 (#2041) :robot: I have created a release *beep* *boop* --- ## [1.129.6](https://togithub.com/googleapis/java-pubsub/compare/v1.129.5...v1.129.6) (2024-05-23) ### Dependencies * Update dependency com.google.cloud:google-cloud-storage to v2.39.0 ([#2040](https://togithub.com/googleapis/java-pubsub/issues/2040)) ([f07839f](https://togithub.com/googleapis/java-pubsub/commit/f07839f08bcf2af76609a2da9e039d1a9ca73d56)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 ([#2035](https://togithub.com/googleapis/java-pubsub/issues/2035)) ([7a91acb](https://togithub.com/googleapis/java-pubsub/commit/7a91acb5f9c99922f5ad2fd43800c0f82adc2d27)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 26 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 82292bbdf19f..9c0c0d576f68 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.129.6](https://github.com/googleapis/java-pubsub/compare/v1.129.5...v1.129.6) (2024-05-23) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-storage to v2.39.0 ([#2040](https://github.com/googleapis/java-pubsub/issues/2040)) ([eb6bd9c](https://github.com/googleapis/java-pubsub/commit/eb6bd9c559073429d8338b9d8fa83e0e3f61b8e9)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 ([#2035](https://github.com/googleapis/java-pubsub/issues/2035)) ([40fdd7a](https://github.com/googleapis/java-pubsub/commit/40fdd7a71aa07d6c64ac6f96d7c6642af3563280)) + ## [1.129.5](https://github.com/googleapis/java-pubsub/compare/v1.129.4...v1.129.5) (2024-05-16) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4b69d2da0647..fad38102ead0 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.6-SNAPSHOT + 1.129.6 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.6-SNAPSHOT + 1.129.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 447eb24cf5eb..becffa2d0ec9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.6-SNAPSHOT + 1.129.6 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.6-SNAPSHOT + 1.129.6 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7c1ae3c3731a..06b30a1e4e60 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.6-SNAPSHOT + 1.129.6 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b0e924702c10..bf4f13acccb9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.6-SNAPSHOT + 1.129.6 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 com.google.cloud google-cloud-pubsub - 1.129.6-SNAPSHOT + 1.129.6 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3ee04ae74108..0d73bc5777e7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6-SNAPSHOT + 1.111.6 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.6-SNAPSHOT + 1.129.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 31f105380d2a..51a1064abf6a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.6-SNAPSHOT + 1.129.6 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f3e265d3e382..5a4d01c1f7ce 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.5:1.129.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.5:1.111.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.5:1.111.6-SNAPSHOT +google-cloud-pubsub:1.129.6:1.129.6 +grpc-google-cloud-pubsub-v1:1.111.6:1.111.6 +proto-google-cloud-pubsub-v1:1.111.6:1.111.6 From ff19ac7bc891da8b6758930dda44a31a5e516d49 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 23 May 2024 14:40:17 +0000 Subject: [PATCH 1811/2363] chore(main): release 1.129.7-SNAPSHOT (#2042) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fad38102ead0..7b871ca1fd8d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.6 + 1.129.7-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index becffa2d0ec9..45e874ef7a26 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.6 + 1.129.7-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 06b30a1e4e60..0fc166f13a7d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.6 + 1.129.7-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bf4f13acccb9..6e5bdb7ce2f8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.6 + 1.129.7-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0d73bc5777e7..4b3698a057f8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.6 + 1.111.7-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.6 + 1.129.7-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 51a1064abf6a..7937fd713e1d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 5a4d01c1f7ce..adda55808304 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.6:1.129.6 -grpc-google-cloud-pubsub-v1:1.111.6:1.111.6 -proto-google-cloud-pubsub-v1:1.111.6:1.111.6 +google-cloud-pubsub:1.129.6:1.129.7-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.6:1.111.7-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.6:1.111.7-SNAPSHOT From 54d809ca76d3a4e60e75f53caad18c900032f06f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 29 May 2024 18:03:54 +0200 Subject: [PATCH 1812/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.2 (#2046) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ccb4826f9859..df03e0e509ab 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.6" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.5 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.6 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ea1c0901edf9..ed21de338b71 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.40.1 + 2.40.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7937fd713e1d..aaa44b9ff1d3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.40.1 + 2.40.2 com.google.cloud From 85b14b559ab547f05de7d3d4a63b350b5ec7418b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 29 May 2024 18:07:09 +0200 Subject: [PATCH 1813/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.6 (#2043) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index df03e0e509ab..3c1249f40394 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ed21de338b71..41352cc5b930 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.5 + 1.129.6 From af1492648d91cc081c8a4795bce5f818e7c543c3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 29 May 2024 18:20:26 +0200 Subject: [PATCH 1814/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.40.0 (#2049) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.40.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3c1249f40394..e50b18a444fc 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.39.0 + 26.40.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.39.0') +implementation platform('com.google.cloud:libraries-bom:26.40.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 4bef2579fc28..f39c1e935018 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.39.0 + 26.40.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d61fbb200673..de6db6acbfab 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.39.0 + 26.40.0 pom import From 38dd07c5031b9faf3140c7de583f3ccc5c2b0ec9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 29 May 2024 18:23:49 +0200 Subject: [PATCH 1815/2363] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.14 (#2047) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.14 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 62bf27316d8d..e7195fc46461 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -62,7 +62,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.13 + 1.6.14 true From 30382eff3fbf37caf3d849823b4ab00c803cb4a6 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Wed, 29 May 2024 14:11:51 -0400 Subject: [PATCH 1816/2363] deps: Change scope of grpc-inprocess dependency from runtime to test (#2038) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: Change scope of grpc-inprocess dependency from runtime to test * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * deps: Change scope of grpc-inprocess dependency from runtime to test --------- Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 45e874ef7a26..02552356539d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -85,7 +85,7 @@ io.grpc grpc-inprocess - runtime + test com.google.errorprone From 1623962cc5e37e5c661291635b97ff7ae6ba1c30 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 29 May 2024 20:12:22 +0200 Subject: [PATCH 1817/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.0 (#2044) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 41352cc5b930..598c44487a95 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.26.1 + 4.27.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index aaa44b9ff1d3..b62712e18bcc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.26.1 + 4.27.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index de6db6acbfab..69fbf0214b8b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.26.1 + 4.27.0 From c294118d67a4fe2522b739924c116ca93676485b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 18:26:19 +0000 Subject: [PATCH 1818/2363] chore(main): release 1.129.7 (#2050) :robot: I have created a release *beep* *boop* --- ## [1.129.7](https://togithub.com/googleapis/java-pubsub/compare/v1.129.6...v1.129.7) (2024-05-29) ### Dependencies * Change scope of grpc-inprocess dependency from runtime to test ([#2038](https://togithub.com/googleapis/java-pubsub/issues/2038)) ([30382ef](https://togithub.com/googleapis/java-pubsub/commit/30382eff3fbf37caf3d849823b4ab00c803cb4a6)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.40.2 ([#2046](https://togithub.com/googleapis/java-pubsub/issues/2046)) ([54d809c](https://togithub.com/googleapis/java-pubsub/commit/54d809ca76d3a4e60e75f53caad18c900032f06f)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.0 ([#2044](https://togithub.com/googleapis/java-pubsub/issues/2044)) ([1623962](https://togithub.com/googleapis/java-pubsub/commit/1623962cc5e37e5c661291635b97ff7ae6ba1c30)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 9c0c0d576f68..907ab21fa9fd 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.129.7](https://github.com/googleapis/java-pubsub/compare/v1.129.6...v1.129.7) (2024-05-29) + + +### Dependencies + +* Change scope of grpc-inprocess dependency from runtime to test ([#2038](https://github.com/googleapis/java-pubsub/issues/2038)) ([1ab45c9](https://github.com/googleapis/java-pubsub/commit/1ab45c9eaee35d4bfeb332244c74f1253b77c166)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.40.2 ([#2046](https://github.com/googleapis/java-pubsub/issues/2046)) ([f81c5e1](https://github.com/googleapis/java-pubsub/commit/f81c5e1b977e6da19aac6a40c1389ddcc4643e3c)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.27.0 ([#2044](https://github.com/googleapis/java-pubsub/issues/2044)) ([37e94ce](https://github.com/googleapis/java-pubsub/commit/37e94ce13a2998b5e3f69e9ad3d4ab68af108d64)) + ## [1.129.6](https://github.com/googleapis/java-pubsub/compare/v1.129.5...v1.129.6) (2024-05-23) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7b871ca1fd8d..eb18ef1e3b8a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.7-SNAPSHOT + 1.129.7 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.7-SNAPSHOT + 1.129.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 02552356539d..cf405e867d8e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.7-SNAPSHOT + 1.129.7 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.7-SNAPSHOT + 1.129.7 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0fc166f13a7d..0a67d13058be 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.7-SNAPSHOT + 1.129.7 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6e5bdb7ce2f8..b039c2615cc1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.7-SNAPSHOT + 1.129.7 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 com.google.cloud google-cloud-pubsub - 1.129.7-SNAPSHOT + 1.129.7 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4b3698a057f8..c14d0d9ee258 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7-SNAPSHOT + 1.111.7 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.7-SNAPSHOT + 1.129.7 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b62712e18bcc..1d9292d4b1d9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.7-SNAPSHOT + 1.129.7 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index adda55808304..6302bd7deb37 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.6:1.129.7-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.6:1.111.7-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.6:1.111.7-SNAPSHOT +google-cloud-pubsub:1.129.7:1.129.7 +grpc-google-cloud-pubsub-v1:1.111.7:1.111.7 +proto-google-cloud-pubsub-v1:1.111.7:1.111.7 From 418c4f0317b483697963408bd46d869063d876b8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 18:42:17 +0000 Subject: [PATCH 1819/2363] chore(main): release 1.129.8-SNAPSHOT (#2052) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index eb18ef1e3b8a..f47fdeb83263 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.7 + 1.129.8-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.7 + 1.129.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cf405e867d8e..d5f60a8c62ff 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.7 + 1.129.8-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.7 + 1.129.8-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0a67d13058be..e35ee126cd03 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.7 + 1.129.8-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b039c2615cc1..9cb49b601b7b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.7 + 1.129.8-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.129.7 + 1.129.8-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c14d0d9ee258..d8acd8edb22a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.7 + 1.111.8-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.7 + 1.129.8-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1d9292d4b1d9..17303ca2b3c7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.7 + 1.129.8-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6302bd7deb37..1b69d7dcf26b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.7:1.129.7 -grpc-google-cloud-pubsub-v1:1.111.7:1.111.7 -proto-google-cloud-pubsub-v1:1.111.7:1.111.7 +google-cloud-pubsub:1.129.7:1.129.8-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.111.7:1.111.8-SNAPSHOT +proto-google-cloud-pubsub-v1:1.111.7:1.111.8-SNAPSHOT From 393cc29aa301cf3ac96b20edd9c3ea69c0bc5e00 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 16:33:50 -0400 Subject: [PATCH 1820/2363] feat: [java] allow passing libraries_bom_version from env (#1967) (#2033) * feat: [java] allow passing libraries_bom_version from env * reformat Source-Link: https://github.com/googleapis/synthtool/commit/e36d2f164ca698f0264fb6f79ddc4b0fa024a940 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:31aa2ef27b071c2e7844b0eb1d5a24254daff06615b1b138b994dd6345c0b0ea Co-authored-by: Owl Bot Co-authored-by: Mike Prieto --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index 5db36a5f7d8e..f817c5f44999 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:68ba5f5164a4b55529d358bb262feaa000536a0c62980727dd05a91bbb47ea5e -# created: 2024-05-09T16:31:37.168667071Z + digest: sha256:31aa2ef27b071c2e7844b0eb1d5a24254daff06615b1b138b994dd6345c0b0ea +# created: 2024-05-17T15:15:57.6714113Z From 9679e09d6b2c2e209c4b7a15ad4bc825e123105a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Jun 2024 17:08:29 +0200 Subject: [PATCH 1821/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.7 (#2053) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.129.7 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 8 ++++---- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e50b18a444fc..9ff4b1d04e6d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.6' +implementation 'com.google.cloud:google-cloud-pubsub:1.129.7' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.6" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.7" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.6 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.7 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 598c44487a95..a13e3fe9641b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.6 + 1.129.7 From 025f7add384c996801e00f8eb0a2e13efbebfd9b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 11:10:32 -0400 Subject: [PATCH 1822/2363] feat: add service_account_email for export subscriptions (#2054) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add service_account_email for export subscriptions PiperOrigin-RevId: 638641437 Source-Link: https://github.com/googleapis/googleapis/commit/a3016a877a58aee3bef1e93871542ef79993daf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2001c330aee62a9d4e8a9852d8e5bf2662818ad4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjAwMWMzMzBhZWU2MmE5ZDRlOGE5ODUyZDhlNWJmMjY2MjgxOGFkNCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../com/google/pubsub/v1/BigQueryConfig.java | 217 +++++++++ .../pubsub/v1/BigQueryConfigOrBuilder.java | 35 ++ .../google/pubsub/v1/CloudStorageConfig.java | 217 +++++++++ .../v1/CloudStorageConfigOrBuilder.java | 35 ++ .../com/google/pubsub/v1/PubsubProto.java | 456 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 16 + 8 files changed, 755 insertions(+), 231 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 67b06239da39..66323e6af56a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -41,6 +41,7 @@ private BigQueryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder private BigQueryConfig() { table_ = ""; state_ = 0; + serviceAccountEmail_ = ""; } @java.lang.Override @@ -477,6 +478,67 @@ public boolean getUseTableSchema() { return useTableSchema_; } + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
    +   * Optional. The service account to use to write to BigQuery. The subscription
    +   * creator or updater that specifies this field must have
    +   * `iam.serviceAccounts.actAs` permission on the service account. If not
    +   * specified, the Pub/Sub [service
    +   * agent](https://cloud.google.com/iam/docs/service-agents),
    +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +   * 
    + * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + @java.lang.Override + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The service account to use to write to BigQuery. The subscription
    +   * creator or updater that specifies this field must have
    +   * `iam.serviceAccounts.actAs` permission on the service account. If not
    +   * specified, the Pub/Sub [service
    +   * agent](https://cloud.google.com/iam/docs/service-agents),
    +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +   * 
    + * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -509,6 +571,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (useTableSchema_ != false) { output.writeBool(6, useTableSchema_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serviceAccountEmail_); + } getUnknownFields().writeTo(output); } @@ -536,6 +601,9 @@ public int getSerializedSize() { if (useTableSchema_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, useTableSchema_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceAccountEmail_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -557,6 +625,7 @@ public boolean equals(final java.lang.Object obj) { if (getDropUnknownFields() != other.getDropUnknownFields()) return false; if (state_ != other.state_) return false; if (getUseTableSchema() != other.getUseTableSchema()) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -580,6 +649,8 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + USE_TABLE_SCHEMA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTableSchema()); + hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -724,6 +795,7 @@ public Builder clear() { dropUnknownFields_ = false; state_ = 0; useTableSchema_ = false; + serviceAccountEmail_ = ""; return this; } @@ -777,6 +849,9 @@ private void buildPartial0(com.google.pubsub.v1.BigQueryConfig result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.useTableSchema_ = useTableSchema_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.serviceAccountEmail_ = serviceAccountEmail_; + } } @java.lang.Override @@ -844,6 +919,11 @@ public Builder mergeFrom(com.google.pubsub.v1.BigQueryConfig other) { if (other.getUseTableSchema() != false) { setUseTableSchema(other.getUseTableSchema()); } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -906,6 +986,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1389,6 +1475,137 @@ public Builder clearUseTableSchema() { return this; } + private java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
    +     * Optional. The service account to use to write to BigQuery. The subscription
    +     * creator or updater that specifies this field must have
    +     * `iam.serviceAccounts.actAs` permission on the service account. If not
    +     * specified, the Pub/Sub [service
    +     * agent](https://cloud.google.com/iam/docs/service-agents),
    +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +     * 
    + * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The service account to use to write to BigQuery. The subscription
    +     * creator or updater that specifies this field must have
    +     * `iam.serviceAccounts.actAs` permission on the service account. If not
    +     * specified, the Pub/Sub [service
    +     * agent](https://cloud.google.com/iam/docs/service-agents),
    +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +     * 
    + * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The service account to use to write to BigQuery. The subscription
    +     * creator or updater that specifies this field must have
    +     * `iam.serviceAccounts.actAs` permission on the service account. If not
    +     * specified, the Pub/Sub [service
    +     * agent](https://cloud.google.com/iam/docs/service-agents),
    +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +     * 
    + * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountEmail_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The service account to use to write to BigQuery. The subscription
    +     * creator or updater that specifies this field must have
    +     * `iam.serviceAccounts.actAs` permission on the service account. If not
    +     * specified, the Pub/Sub [service
    +     * agent](https://cloud.google.com/iam/docs/service-agents),
    +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +     * 
    + * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountEmail() { + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The service account to use to write to BigQuery. The subscription
    +     * creator or updater that specifies this field must have
    +     * `iam.serviceAccounts.actAs` permission on the service account. If not
    +     * specified, the Pub/Sub [service
    +     * agent](https://cloud.google.com/iam/docs/service-agents),
    +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +     * 
    + * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index a2420175d6fc..958a634f2a7a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -145,4 +145,39 @@ public interface BigQueryConfigOrBuilder * @return The useTableSchema. */ boolean getUseTableSchema(); + + /** + * + * + *
    +   * Optional. The service account to use to write to BigQuery. The subscription
    +   * creator or updater that specifies this field must have
    +   * `iam.serviceAccounts.actAs` permission on the service account. If not
    +   * specified, the Pub/Sub [service
    +   * agent](https://cloud.google.com/iam/docs/service-agents),
    +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +   * 
    + * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + java.lang.String getServiceAccountEmail(); + /** + * + * + *
    +   * Optional. The service account to use to write to BigQuery. The subscription
    +   * creator or updater that specifies this field must have
    +   * `iam.serviceAccounts.actAs` permission on the service account. If not
    +   * specified, the Pub/Sub [service
    +   * agent](https://cloud.google.com/iam/docs/service-agents),
    +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +   * 
    + * + * string service_account_email = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString getServiceAccountEmailBytes(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 5d3704a7dea8..4f98b34b110b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -44,6 +44,7 @@ private CloudStorageConfig() { filenameSuffix_ = ""; filenameDatetimeFormat_ = ""; state_ = 0; + serviceAccountEmail_ = ""; } @java.lang.Override @@ -1770,6 +1771,67 @@ public com.google.pubsub.v1.CloudStorageConfig.State getState() { return result == null ? com.google.pubsub.v1.CloudStorageConfig.State.UNRECOGNIZED : result; } + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
    +   * Optional. The service account to use to write to Cloud Storage. The
    +   * subscription creator or updater that specifies this field must have
    +   * `iam.serviceAccounts.actAs` permission on the service account. If not
    +   * specified, the Pub/Sub
    +   * [service agent](https://cloud.google.com/iam/docs/service-agents),
    +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +   * 
    + * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + @java.lang.Override + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } + } + /** + * + * + *
    +   * Optional. The service account to use to write to Cloud Storage. The
    +   * subscription creator or updater that specifies this field must have
    +   * `iam.serviceAccounts.actAs` permission on the service account. If not
    +   * specified, the Pub/Sub
    +   * [service agent](https://cloud.google.com/iam/docs/service-agents),
    +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +   * 
    + * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1811,6 +1873,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameDatetimeFormat_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, filenameDatetimeFormat_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceAccountEmail_); + } getUnknownFields().writeTo(output); } @@ -1851,6 +1916,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameDatetimeFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, filenameDatetimeFormat_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceAccountEmail_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1876,6 +1944,7 @@ public boolean equals(final java.lang.Object obj) { } if (getMaxBytes() != other.getMaxBytes()) return false; if (state_ != other.state_) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getOutputFormatCase().equals(other.getOutputFormatCase())) return false; switch (outputFormatCase_) { case 4: @@ -1914,6 +1983,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBytes()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); switch (outputFormatCase_) { case 4: hash = (37 * hash) + TEXT_CONFIG_FIELD_NUMBER; @@ -2091,6 +2162,7 @@ public Builder clear() { } maxBytes_ = 0L; state_ = 0; + serviceAccountEmail_ = ""; outputFormatCase_ = 0; outputFormat_ = null; return this; @@ -2154,6 +2226,9 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { if (((from_bitField0_ & 0x00000100) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.serviceAccountEmail_ = serviceAccountEmail_; + } result.bitField0_ |= to_bitField0_; } @@ -2242,6 +2317,11 @@ public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + bitField0_ |= 0x00000200; + onChanged(); + } switch (other.getOutputFormatCase()) { case TEXT_CONFIG: { @@ -2338,6 +2418,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 82 + case 90: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3685,6 +3771,137 @@ public Builder clearState() { return this; } + private java.lang.Object serviceAccountEmail_ = ""; + /** + * + * + *
    +     * Optional. The service account to use to write to Cloud Storage. The
    +     * subscription creator or updater that specifies this field must have
    +     * `iam.serviceAccounts.actAs` permission on the service account. If not
    +     * specified, the Pub/Sub
    +     * [service agent](https://cloud.google.com/iam/docs/service-agents),
    +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +     * 
    + * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Optional. The service account to use to write to Cloud Storage. The
    +     * subscription creator or updater that specifies this field must have
    +     * `iam.serviceAccounts.actAs` permission on the service account. If not
    +     * specified, the Pub/Sub
    +     * [service agent](https://cloud.google.com/iam/docs/service-agents),
    +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +     * 
    + * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Optional. The service account to use to write to Cloud Storage. The
    +     * subscription creator or updater that specifies this field must have
    +     * `iam.serviceAccounts.actAs` permission on the service account. If not
    +     * specified, the Pub/Sub
    +     * [service agent](https://cloud.google.com/iam/docs/service-agents),
    +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +     * 
    + * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountEmail_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The service account to use to write to Cloud Storage. The
    +     * subscription creator or updater that specifies this field must have
    +     * `iam.serviceAccounts.actAs` permission on the service account. If not
    +     * specified, the Pub/Sub
    +     * [service agent](https://cloud.google.com/iam/docs/service-agents),
    +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +     * 
    + * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountEmail() { + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The service account to use to write to Cloud Storage. The
    +     * subscription creator or updater that specifies this field must have
    +     * `iam.serviceAccounts.actAs` permission on the service account. If not
    +     * specified, the Pub/Sub
    +     * [service agent](https://cloud.google.com/iam/docs/service-agents),
    +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +     * 
    + * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 19eab21aba50..11d3fa787f2f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -318,5 +318,40 @@ public interface CloudStorageConfigOrBuilder */ com.google.pubsub.v1.CloudStorageConfig.State getState(); + /** + * + * + *
    +   * Optional. The service account to use to write to Cloud Storage. The
    +   * subscription creator or updater that specifies this field must have
    +   * `iam.serviceAccounts.actAs` permission on the service account. If not
    +   * specified, the Pub/Sub
    +   * [service agent](https://cloud.google.com/iam/docs/service-agents),
    +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +   * 
    + * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + java.lang.String getServiceAccountEmail(); + /** + * + * + *
    +   * Optional. The service account to use to write to Cloud Storage. The
    +   * subscription creator or updater that specifies this field must have
    +   * `iam.serviceAccounts.actAs` permission on the service account. If not
    +   * specified, the Pub/Sub
    +   * [service agent](https://cloud.google.com/iam/docs/service-agents),
    +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
    +   * 
    + * + * string service_account_email = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.pubsub.v1.CloudStorageConfig.OutputFormatCase getOutputFormatCase(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 8fff960ed2d4..4ef81ddb70bc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -417,239 +417,241 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032\017\n\rPubsubWrapper\032(\n\tNoWrapper\022\033\n\016write_" + "metadata\030\001 \001(\010B\003\340A\001\0321\n\017AttributesEntry\022\013" + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authen" - + "tication_methodB\t\n\007wrapper\"\352\002\n\016BigQueryC" + + "tication_methodB\t\n\007wrapper\"\216\003\n\016BigQueryC" + "onfig\022\022\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_topic_s" + "chema\030\002 \001(\010B\003\340A\001\022\033\n\016write_metadata\030\003 \001(\010" + "B\003\340A\001\022 \n\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022" + ":\n\005state\030\005 \001(\0162&.google.pubsub.v1.BigQue" + "ryConfig.StateB\003\340A\003\022\035\n\020use_table_schema\030" - + "\006 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r" - + "\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN" - + "_TRANSIT_LOCATION_RESTRICTION\020\005\"\365\004\n\022Clou" - + "dStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017f" - + "ilename_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_su" - + "ffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_for" - + "mat\030\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.go" - + "ogle.pubsub.v1.CloudStorageConfig.TextCo" - + "nfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.googl" - + "e.pubsub.v1.CloudStorageConfig.AvroConfi" - + "gB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google." - + "protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(" - + "\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1" - + ".CloudStorageConfig.StateB\003\340A\003\032\014\n\nTextCo" - + "nfig\032)\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" - + "(\010B\003\340A\001\"u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\006 \001(\010B\003\340A\001\022\"\n\025service_account_email\030\007 \001(" + + "\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" - + "T_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RESTRIC" - + "TION\020\004B\017\n\routput_format\"|\n\017ReceivedMessa" - + "ge\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\013" - + "2\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035" - + "\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubs" - + "criptionRequest\022@\n\014subscription\030\001 \001(\tB*\340" - + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subsc" - + "ription\030\001 \001(\0132\036.google.pubsub.v1.Subscri" - + "ptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscri" - + "ptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+" - + "cloudresourcemanager.googleapis.com/Proj" - + "ect\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" - + "n\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRespons" - + "e\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub" - + ".v1.SubscriptionB\003\340A\001\022\034\n\017next_page_token" - + "\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRequest" - + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\"\223\001\n\027ModifyPus" - + "hConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340A" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\0226\n\013push_config\030\002 \001(\0132\034.google.pubsub.v1" - + ".PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subs" + + "T_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRA" + + "NSIT_LOCATION_RESTRICTION\020\005\"\231\005\n\022CloudSto" + + "rageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filen" + + "ame_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix" + + "\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_format\030" + + "\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.google" + + ".pubsub.v1.CloudStorageConfig.TextConfig" + + "B\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.google.pu" + + "bsub.v1.CloudStorageConfig.AvroConfigB\003\340" + + "A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google.prot" + + "obuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340" + + "A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1.Clo" + + "udStorageConfig.StateB\003\340A\003\022\"\n\025service_ac" + + "count_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032)\n\n" + + "AvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\"" + + "u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" + + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004B\017" + + "\n\routput_format\"|\n\017ReceivedMessage\022\023\n\006ac" + + "k_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.googl" + + "e.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n\020delive" + + "ry_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscription" + + "Request\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"p" + + "ubsub.googleapis.com/Subscription\"\214\001\n\031Up" + + "dateSubscriptionRequest\0229\n\014subscription\030" + + "\001 \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRe" + + "quest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudres" + + "ourcemanager.googleapis.com/Project\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" + + "\003\340A\001\"u\n\031ListSubscriptionsResponse\022:\n\rsub" + + "scriptions\030\001 \003(\0132\036.google.pubsub.v1.Subs" + + "criptionB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" + + "\340A\001\"]\n\031DeleteSubscriptionRequest\022@\n\014subs" + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\022!\n\022return_immediately" - + "\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002" - + "\"Q\n\014PullResponse\022A\n\021received_messages\030\001 " - + "\003(\0132!.google.pubsub.v1.ReceivedMessageB\003" - + "\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subs" - + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002" - + "\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022A" - + "cknowledgeRequest\022@\n\014subscription\030\001 \001(\tB" - + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" - + "ion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingP" - + "ullRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" - + "\n\"pubsub.googleapis.com/Subscription\022\024\n\007" - + "ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_se" - + "conds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack_" - + "ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_se" - + "conds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001" - + "\022%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022" - + "\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025" - + "StreamingPullResponse\022A\n\021received_messag" - + "es\030\001 \003(\0132!.google.pubsub.v1.ReceivedMess" - + "ageB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 \001" - + "(\0132?.google.pubsub.v1.StreamingPullRespo" - + "nse.AcknowledgeConfirmationB\003\340A\001\022t\n modi" - + "fy_ack_deadline_confirmation\030\003 \001(\0132E.goo" - + "gle.pubsub.v1.StreamingPullResponse.Modi" - + "fyAckDeadlineConfirmationB\003\340A\001\022d\n\027subscr" - + "iption_properties\030\004 \001(\0132>.google.pubsub." - + "v1.StreamingPullResponse.SubscriptionPro" - + "pertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmation" - + "\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_id" - + "s\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB" - + "\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB\003" - + "\340A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n\007" - + "ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 " - + "\003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 \003" - + "(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035exa" - + "ctly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" - + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n" - + "\025CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A" - + "\002\372A \n\036pubsub.googleapis.com/Snapshot\022@\n\014" - + "subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\022H\n\006labels\030\003 \003(\01323" - + ".google.pubsub.v1.CreateSnapshotRequest." - + "LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapsh" - + "otRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pub" - + "sub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010S" - + "napshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(" - + "\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\0224" - + "\n\013expire_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pu" - + "bsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + ":L\352AI\n\036pubsub.googleapis.com/Snapshot\022\'p" - + "rojects/{project}/snapshots/{snapshot}\"N" - + "\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&" - + "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\215" - + "\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 \001(\t" - + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" - + "s.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsR" - + "esponse\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubs" - + "ub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002" - + " \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010sn" - + "apshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis." - + "com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014subscrip" - + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\022/\n\004time\030\002 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(" - + "\tB&\340A\001\372A \n\036pubsub.googleapis.com/Snapsho" - + "tH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublis" - + "her\022q\n\013CreateTopic\022\027.google.pubsub.v1.To" - + "pic\032\027.google.pubsub.v1.Topic\"0\332A\004name\202\323\344" - + "\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221" - + "\001\n\013UpdateTopic\022$.google.pubsub.v1.Update" - + "TopicRequest\032\027.google.pubsub.v1.Topic\"C\332" - + "A\021topic,update_mask\202\323\344\223\002)2$/v1/{topic.na" - + "me=projects/*/topics/*}:\001*\022\223\001\n\007Publish\022 " - + ".google.pubsub.v1.PublishRequest\032!.googl" - + "e.pubsub.v1.PublishResponse\"C\332A\016topic,me" - + "ssages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topi" - + "cs/*}:publish:\001*\022w\n\010GetTopic\022!.google.pu" - + "bsub.v1.GetTopicRequest\032\027.google.pubsub." - + "v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=pro" - + "jects/*/topics/*}\022\212\001\n\nListTopics\022#.googl" - + "e.pubsub.v1.ListTopicsRequest\032$.google.p" - + "ubsub.v1.ListTopicsResponse\"1\332A\007project\202" - + "\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272" - + "\001\n\026ListTopicSubscriptions\022/.google.pubsu" - + "b.v1.ListTopicSubscriptionsRequest\0320.goo" - + "gle.pubsub.v1.ListTopicSubscriptionsResp" - + "onse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=project" - + "s/*/topics/*}/subscriptions\022\252\001\n\022ListTopi" - + "cSnapshots\022+.google.pubsub.v1.ListTopicS" - + "napshotsRequest\032,.google.pubsub.v1.ListT" - + "opicSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/" - + "v1/{topic=projects/*/topics/*}/snapshots" - + "\022|\n\013DeleteTopic\022$.google.pubsub.v1.Delet" - + "eTopicRequest\032\026.google.protobuf.Empty\"/\332" - + "A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/top" - + "ics/*}\022\255\001\n\022DetachSubscription\022+.google.p" - + "ubsub.v1.DetachSubscriptionRequest\032,.goo" - + "gle.pubsub.v1.DetachSubscriptionResponse" - + "\"<\202\323\344\223\0026\"4/v1/{subscription=projects/*/s" - + "ubscriptions/*}:detach\032p\312A\025pubsub.google" - + "apis.com\322AUhttps://www.googleapis.com/au" - + "th/cloud-platform,https://www.googleapis" - + ".com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022Crea" - + "teSubscription\022\036.google.pubsub.v1.Subscr" - + "iption\032\036.google.pubsub.v1.Subscription\"^" - + "\332A+name,topic,push_config,ack_deadline_s" - + "econds\202\323\344\223\002*\032%/v1/{name=projects/*/subsc" - + "riptions/*}:\001*\022\241\001\n\017GetSubscription\022(.goo" - + "gle.pubsub.v1.GetSubscriptionRequest\032\036.g" - + "oogle.pubsub.v1.Subscription\"D\332A\014subscri" - + "ption\202\323\344\223\002/\022-/v1/{subscription=projects/" - + "*/subscriptions/*}\022\273\001\n\022UpdateSubscriptio" - + "n\022+.google.pubsub.v1.UpdateSubscriptionR" - + "equest\032\036.google.pubsub.v1.Subscription\"X" - + "\332A\030subscription,update_mask\202\323\344\223\002722/v1/{" - + "subscription.name=projects/*/subscriptio" - + "ns/*}:\001*\022\246\001\n\021ListSubscriptions\022*.google." - + "pubsub.v1.ListSubscriptionsRequest\032+.goo" - + "gle.pubsub.v1.ListSubscriptionsResponse\"" - + "8\332A\007project\202\323\344\223\002(\022&/v1/{project=projects" - + "/*}/subscriptions\022\237\001\n\022DeleteSubscription" - + "\022+.google.pubsub.v1.DeleteSubscriptionRe" - + "quest\032\026.google.protobuf.Empty\"D\332A\014subscr" - + "iption\202\323\344\223\002/*-/v1/{subscription=projects" - + "/*/subscriptions/*}\022\317\001\n\021ModifyAckDeadlin" - + "e\022*.google.pubsub.v1.ModifyAckDeadlineRe" - + "quest\032\026.google.protobuf.Empty\"v\332A)subscr" - + "iption,ack_ids,ack_deadline_seconds\202\323\344\223\002" - + "D\"?/v1/{subscription=projects/*/subscrip" - + "tions/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknow" - + "ledge\022$.google.pubsub.v1.AcknowledgeRequ" - + "est\032\026.google.protobuf.Empty\"[\332A\024subscrip" - + "tion,ack_ids\202\323\344\223\002>\"9/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:acknowledge:\001*" - + "\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullRequest" - + "\032\036.google.pubsub.v1.PullResponse\"\210\001\332A,su" - + "bscription,return_immediately,max_messag" - + "es\332A\031subscription,max_messages\202\323\344\223\0027\"2/v" - + "1/{subscription=projects/*/subscriptions" - + "/*}:pull:\001*\022f\n\rStreamingPull\022&.google.pu" - + "bsub.v1.StreamingPullRequest\032\'.google.pu" - + "bsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020" - + "ModifyPushConfig\022).google.pubsub.v1.Modi" - + "fyPushConfigRequest\032\026.google.protobuf.Em" - + "pty\"d\332A\030subscription,push_config\202\323\344\223\002C\">" - + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnapsho" - + "t\022$.google.pubsub.v1.GetSnapshotRequest\032" - + "\032.google.pubsub.v1.Snapshot\"8\332A\010snapshot" - + "\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapsho" - + "ts/*}\022\226\001\n\rListSnapshots\022&.google.pubsub." - + "v1.ListSnapshotsRequest\032\'.google.pubsub." - + "v1.ListSnapshotsResponse\"4\332A\007project\202\323\344\223" - + "\002$\022\"/v1/{project=projects/*}/snapshots\022\227" - + "\001\n\016CreateSnapshot\022\'.google.pubsub.v1.Cre" - + "ateSnapshotRequest\032\032.google.pubsub.v1.Sn" - + "apshot\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/" - + "{name=projects/*/snapshots/*}:\001*\022\243\001\n\016Upd" - + "ateSnapshot\022\'.google.pubsub.v1.UpdateSna" - + "pshotRequest\032\032.google.pubsub.v1.Snapshot" - + "\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/{sn" - + "apshot.name=projects/*/snapshots/*}:\001*\022\213" - + "\001\n\016DeleteSnapshot\022\'.google.pubsub.v1.Del" - + "eteSnapshotRequest\032\026.google.protobuf.Emp" - + "ty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=pro" - + "jects/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.p" - + "ubsub.v1.SeekRequest\032\036.google.pubsub.v1." - + "SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscription=" - + "projects/*/subscriptions/*}:seek:\001*\032p\312A\025" - + "pubsub.googleapis.com\322AUhttps://www.goog" - + "leapis.com/auth/cloud-platform,https://w" - + "ww.googleapis.com/auth/pubsubB\252\001\n\024com.go" - + "ogle.pubsub.v1B\013PubsubProtoP\001Z2cloud.goo" - + "gle.com/go/pubsub/apiv1/pubsubpb;pubsubp" - + "b\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Google\\C" - + "loud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::" - + "V1b\006proto3" + + "s.com/Subscription\"\223\001\n\027ModifyPushConfigR" + + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" + + "bsub.googleapis.com/Subscription\0226\n\013push" + + "_config\030\002 \001(\0132\034.google.pubsub.v1.PushCon" + + "figB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022!\n\022return_immediately\030\002 \001(\010B\005" + + "\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014Pull" + + "Response\022A\n\021received_messages\030\001 \003(\0132!.go" + + "ogle.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030" + + "ModifyAckDeadlineRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_" + + "deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowled" + + "geRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" + + "ck_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullReque" + + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" + + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" + + "\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_seconds\030\003 " + + "\003(\005B\003\340A\001\022$\n\027modify_deadline_ack_ids\030\004 \003(" + + "\tB\003\340A\001\022(\n\033stream_ack_deadline_seconds\030\005 " + + "\001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_" + + "outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_o" + + "utstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025Streamin" + + "gPullResponse\022A\n\021received_messages\030\001 \003(\013" + + "2!.google.pubsub.v1.ReceivedMessageB\003\340A\001" + + "\022f\n\030acknowledge_confirmation\030\005 \001(\0132?.goo" + + "gle.pubsub.v1.StreamingPullResponse.Ackn" + + "owledgeConfirmationB\003\340A\001\022t\n modify_ack_d" + + "eadline_confirmation\030\003 \001(\0132E.google.pubs" + + "ub.v1.StreamingPullResponse.ModifyAckDea" + + "dlineConfirmationB\003\340A\001\022d\n\027subscription_p" + + "roperties\030\004 \001(\0132>.google.pubsub.v1.Strea" + + "mingPullResponse.SubscriptionPropertiesB" + + "\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022\024\n\007ack_" + + "ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB" + + "\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030" + + "temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035M" + + "odifyAckDeadlineConfirmation\022\024\n\007ack_ids\030" + + "\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001" + + "\022%\n\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032" + + "k\n\026SubscriptionProperties\022*\n\035exactly_onc" + + "e_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message" + + "_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateS" + + "napshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pu" + + "bsub.googleapis.com/Snapshot\022@\n\014subscrip" + + "tion\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\022H\n\006labels\030\003 \003(\01323.google." + + "pubsub.v1.CreateSnapshotRequest.LabelsEn" + + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotReques" + + "t\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.S" + + "napshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A" + + "\035\n\033pubsub.googleapis.com/Topic\0224\n\013expire" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pubsub.v1." + + "Snapshot.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036p" + + "ubsub.googleapis.com/Snapshot\022\'projects/" + + "{project}/snapshots/{snapshot}\"N\n\022GetSna" + + "pshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036" + + "pubsub.googleapis.com/Snapshot\"\215\001\n\024ListS" + + "napshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-" + + "\n+cloudresourcemanager.googleapis.com/Pr" + + "oject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\022" + + "2\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" + + "apshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" + + "\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030\001" + + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" + + "shot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001 \001" + + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" + + "iption\022/\n\004time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A" + + " \n\036pubsub.googleapis.com/SnapshotH\000B\010\n\006t" + + "arget\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013C" + + "reateTopic\022\027.google.pubsub.v1.Topic\032\027.go" + + "ogle.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1" + + "/{name=projects/*/topics/*}:\001*\022\221\001\n\013Updat" + + "eTopic\022$.google.pubsub.v1.UpdateTopicReq" + + "uest\032\027.google.pubsub.v1.Topic\"C\332A\021topic," + + "update_mask\202\323\344\223\002)2$/v1/{topic.name=proje" + + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google." + + "pubsub.v1.PublishRequest\032!.google.pubsub" + + ".v1.PublishResponse\"C\332A\016topic,messages\202\323" + + "\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:pu" + + "blish:\001*\022w\n\010GetTopic\022!.google.pubsub.v1." + + "GetTopicRequest\032\027.google.pubsub.v1.Topic" + + "\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/" + + "topics/*}\022\212\001\n\nListTopics\022#.google.pubsub" + + ".v1.ListTopicsRequest\032$.google.pubsub.v1" + + ".ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/" + + "v1/{project=projects/*}/topics\022\272\001\n\026ListT" + + "opicSubscriptions\022/.google.pubsub.v1.Lis" + + "tTopicSubscriptionsRequest\0320.google.pubs" + + "ub.v1.ListTopicSubscriptionsResponse\"=\332A" + + "\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/topi" + + "cs/*}/subscriptions\022\252\001\n\022ListTopicSnapsho" + + "ts\022+.google.pubsub.v1.ListTopicSnapshots" + + "Request\032,.google.pubsub.v1.ListTopicSnap" + + "shotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topi" + + "c=projects/*/topics/*}/snapshots\022|\n\013Dele" + + "teTopic\022$.google.pubsub.v1.DeleteTopicRe" + + "quest\032\026.google.protobuf.Empty\"/\332A\005topic\202" + + "\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255" + + "\001\n\022DetachSubscription\022+.google.pubsub.v1" + + ".DetachSubscriptionRequest\032,.google.pubs" + + "ub.v1.DetachSubscriptionResponse\"<\202\323\344\223\0026" + + "\"4/v1/{subscription=projects/*/subscript" + + "ions/*}:detach\032p\312A\025pubsub.googleapis.com" + + "\322AUhttps://www.googleapis.com/auth/cloud" + + "-platform,https://www.googleapis.com/aut" + + "h/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscr" + + "iption\022\036.google.pubsub.v1.Subscription\032\036" + + ".google.pubsub.v1.Subscription\"^\332A+name," + + "topic,push_config,ack_deadline_seconds\202\323" + + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" + + "/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pubs" + + "ub.v1.GetSubscriptionRequest\032\036.google.pu" + + "bsub.v1.Subscription\"D\332A\014subscription\202\323\344" + + "\223\002/\022-/v1/{subscription=projects/*/subscr" + + "iptions/*}\022\273\001\n\022UpdateSubscription\022+.goog" + + "le.pubsub.v1.UpdateSubscriptionRequest\032\036" + + ".google.pubsub.v1.Subscription\"X\332A\030subsc" + + "ription,update_mask\202\323\344\223\002722/v1/{subscrip" + + "tion.name=projects/*/subscriptions/*}:\001*" + + "\022\246\001\n\021ListSubscriptions\022*.google.pubsub.v" + + "1.ListSubscriptionsRequest\032+.google.pubs" + + "ub.v1.ListSubscriptionsResponse\"8\332A\007proj" + + "ect\202\323\344\223\002(\022&/v1/{project=projects/*}/subs" + + "criptions\022\237\001\n\022DeleteSubscription\022+.googl" + + "e.pubsub.v1.DeleteSubscriptionRequest\032\026." + + "google.protobuf.Empty\"D\332A\014subscription\202\323" + + "\344\223\002/*-/v1/{subscription=projects/*/subsc" + + "riptions/*}\022\317\001\n\021ModifyAckDeadline\022*.goog" + + "le.pubsub.v1.ModifyAckDeadlineRequest\032\026." + + "google.protobuf.Empty\"v\332A)subscription,a" + + "ck_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{" + + "subscription=projects/*/subscriptions/*}" + + ":modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022$." + + "google.pubsub.v1.AcknowledgeRequest\032\026.go" + + "ogle.protobuf.Empty\"[\332A\024subscription,ack" + + "_ids\202\323\344\223\002>\"9/v1/{subscription=projects/*" + + "/subscriptions/*}:acknowledge:\001*\022\320\001\n\004Pul" + + "l\022\035.google.pubsub.v1.PullRequest\032\036.googl" + + "e.pubsub.v1.PullResponse\"\210\001\332A,subscripti" + + "on,return_immediately,max_messages\332A\031sub" + + "scription,max_messages\202\323\344\223\0027\"2/v1/{subsc" + + "ription=projects/*/subscriptions/*}:pull" + + ":\001*\022f\n\rStreamingPull\022&.google.pubsub.v1." + + "StreamingPullRequest\032\'.google.pubsub.v1." + + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu" + + "shConfig\022).google.pubsub.v1.ModifyPushCo" + + "nfigRequest\032\026.google.protobuf.Empty\"d\332A\030" + + "subscription,push_config\202\323\344\223\002C\">/v1/{sub" + + "scription=projects/*/subscriptions/*}:mo" + + "difyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.goog" + + "le.pubsub.v1.GetSnapshotRequest\032\032.google" + + ".pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%" + + "/v1/{snapshot=projects/*/snapshots/*}\022\226\001" + + "\n\rListSnapshots\022&.google.pubsub.v1.ListS" + + "napshotsRequest\032\'.google.pubsub.v1.ListS" + + "napshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/" + + "{project=projects/*}/snapshots\022\227\001\n\016Creat" + + "eSnapshot\022\'.google.pubsub.v1.CreateSnaps" + + "hotRequest\032\032.google.pubsub.v1.Snapshot\"@" + + "\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=pr" + + "ojects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnaps" + + "hot\022\'.google.pubsub.v1.UpdateSnapshotReq" + + "uest\032\032.google.pubsub.v1.Snapshot\"L\332A\024sna" + + "pshot,update_mask\202\323\344\223\002/2*/v1/{snapshot.n" + + "ame=projects/*/snapshots/*}:\001*\022\213\001\n\016Delet" + + "eSnapshot\022\'.google.pubsub.v1.DeleteSnaps" + + "hotRequest\032\026.google.protobuf.Empty\"8\332A\010s" + + "napshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/" + + "snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1" + + ".SeekRequest\032\036.google.pubsub.v1.SeekResp" + + "onse\"=\202\323\344\223\0027\"2/v1/{subscription=projects" + + "/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub.g" + + "oogleapis.com\322AUhttps://www.googleapis.c" + + "om/auth/cloud-platform,https://www.googl" + + "eapis.com/auth/pubsubB\252\001\n\024com.google.pub" + + "sub.v1B\013PubsubProtoP\001Z2cloud.google.com/" + + "go/pubsub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026G" + + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" + + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -953,6 +955,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DropUnknownFields", "State", "UseTableSchema", + "ServiceAccountEmail", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = getDescriptor().getMessageTypes().get(24); @@ -969,6 +972,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxDuration", "MaxBytes", "State", + "ServiceAccountEmail", "OutputFormat", }); internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor = diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 9d0f93c99a20..5341666eb189 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1363 + * google/pubsub/v1/pubsub.proto;l=1379 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1363 + * google/pubsub/v1/pubsub.proto;l=1379 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1363 + * google/pubsub/v1/pubsub.proto;l=1379 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1363 + * google/pubsub/v1/pubsub.proto;l=1379 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 08a7576aaf53..2dc2208a40ce 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1363 + * google/pubsub/v1/pubsub.proto;l=1379 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 2e606060dfd0..8546dacf952f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1141,6 +1141,14 @@ message BigQueryConfig { // write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be // enabled at the same time. bool use_table_schema = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The service account to use to write to BigQuery. The subscription + // creator or updater that specifies this field must have + // `iam.serviceAccounts.actAs` permission on the service account. If not + // specified, the Pub/Sub [service + // agent](https://cloud.google.com/iam/docs/service-agents), + // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. + string service_account_email = 7 [(google.api.field_behavior) = OPTIONAL]; } // Configuration for a Cloud Storage subscription. @@ -1227,6 +1235,14 @@ message CloudStorageConfig { // Output only. An output-only field that indicates whether or not the // subscription can receive messages. State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The service account to use to write to Cloud Storage. The + // subscription creator or updater that specifies this field must have + // `iam.serviceAccounts.actAs` permission on the service account. If not + // specified, the Pub/Sub + // [service agent](https://cloud.google.com/iam/docs/service-agents), + // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. + string service_account_email = 11 [(google.api.field_behavior) = OPTIONAL]; } // A message and its corresponding acknowledgment ID. From ec164cc030ae5ec04c2c89b418e289ffef2ff7cf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Jun 2024 17:11:01 +0200 Subject: [PATCH 1823/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.8.0 (#2055) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.8.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f47fdeb83263..400c5caa6f23 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.7.7 + 1.8.0 Google Cloud pubsub BOM From e6439f622cbd85d2c5aa6555053c4c1976c8cfe6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Jun 2024 17:17:56 +0200 Subject: [PATCH 1824/2363] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.7.0 (#2051) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.7.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index e7195fc46461..742838b206cf 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -62,7 +62,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.14 + 1.7.0 true From 2c5da97ce48abfb552b1b410bacfa3d3e40cf677 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Jun 2024 17:53:32 +0200 Subject: [PATCH 1825/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.31.0 (#2058) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:sdk-platform-java-config to v3.31.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index ebaa54bab6a5..ca6fff38861c 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.30.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.31.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 532f888ecbb9..aeafc31812f2 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.30.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.31.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 1292cf163b17..047ec1b678bd 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.30.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.31.0" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9cb49b601b7b..b42ef30513c1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.30.1 + 3.31.0 From 42c6629fa6588bc6ec58714d94e9ba5d9220bcb9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Jun 2024 17:53:52 +0200 Subject: [PATCH 1826/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.39.0 (#2057) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-core to v2.39.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a13e3fe9641b..3bb3a9c93957 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.38.1 + 2.39.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 17303ca2b3c7..2e9522627e45 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.38.1 + 2.39.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 69fbf0214b8b..72467b06108b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.38.1 + 2.39.0 tests From b84f55a97a1e3c9c6c0de58eb84134214a1dfa14 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:06:02 -0400 Subject: [PATCH 1827/2363] chore(main): release 1.130.0 (#2056) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 14 ++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 32 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 907ab21fa9fd..4bc039c8ccad 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.130.0](https://github.com/googleapis/java-pubsub/compare/v1.129.7...v1.130.0) (2024-06-03) + + +### Features + +* [java] allow passing libraries_bom_version from env ([#1967](https://github.com/googleapis/java-pubsub/issues/1967)) ([#2033](https://github.com/googleapis/java-pubsub/issues/2033)) ([825c5f8](https://github.com/googleapis/java-pubsub/commit/825c5f83e0fd2fd6b1f4856b9c555d71110a03e1)) +* Add service_account_email for export subscriptions ([#2054](https://github.com/googleapis/java-pubsub/issues/2054)) ([670db3e](https://github.com/googleapis/java-pubsub/commit/670db3e1b665e6f5aec3cd7bf3639e9242f20151)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.39.0 ([#2057](https://github.com/googleapis/java-pubsub/issues/2057)) ([43446d2](https://github.com/googleapis/java-pubsub/commit/43446d22ad2140f1b18fd1dde5dab03a901580bc)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.31.0 ([#2058](https://github.com/googleapis/java-pubsub/issues/2058)) ([a998ef5](https://github.com/googleapis/java-pubsub/commit/a998ef5359942486ea47bfd50f154314ae37be33)) + ## [1.129.7](https://github.com/googleapis/java-pubsub/compare/v1.129.6...v1.129.7) (2024-05-29) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 400c5caa6f23..ad1e15e066eb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.129.8-SNAPSHOT + 1.130.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.129.8-SNAPSHOT + 1.130.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d5f60a8c62ff..bf301efc3eff 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.129.8-SNAPSHOT + 1.130.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.129.8-SNAPSHOT + 1.130.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e35ee126cd03..3c29bf3d6714 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.8-SNAPSHOT + 1.130.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b42ef30513c1..445072cb0763 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.129.8-SNAPSHOT + 1.130.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0 com.google.cloud google-cloud-pubsub - 1.129.8-SNAPSHOT + 1.130.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d8acd8edb22a..ff3df5c1b012 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.111.8-SNAPSHOT + 1.112.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.129.8-SNAPSHOT + 1.130.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2e9522627e45..fcae4946ef72 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.129.8-SNAPSHOT + 1.130.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1b69d7dcf26b..bf9867a870e7 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.129.7:1.129.8-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.111.7:1.111.8-SNAPSHOT -proto-google-cloud-pubsub-v1:1.111.7:1.111.8-SNAPSHOT +google-cloud-pubsub:1.130.0:1.130.0 +grpc-google-cloud-pubsub-v1:1.112.0:1.112.0 +proto-google-cloud-pubsub-v1:1.112.0:1.112.0 From 0ebe03cb0f060154d8452e82e1663664808efa77 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 20:24:41 +0000 Subject: [PATCH 1828/2363] chore(main): release 1.130.1-SNAPSHOT (#2059) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ad1e15e066eb..d22e2aec314a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.130.0 + 1.130.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index bf301efc3eff..c9f5d11cd3d1 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.130.0 + 1.130.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3c29bf3d6714..f26b3cd13988 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.0 + 1.130.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 445072cb0763..b7c2dd5c72b2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.130.0 + 1.130.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ff3df5c1b012..e9222f58214e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.0 + 1.112.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.0 + 1.130.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fcae4946ef72..b621c2f64fdd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index bf9867a870e7..59c5e2e25eff 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.130.0:1.130.0 -grpc-google-cloud-pubsub-v1:1.112.0:1.112.0 -proto-google-cloud-pubsub-v1:1.112.0:1.112.0 +google-cloud-pubsub:1.130.0:1.130.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.112.0:1.112.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.112.0:1.112.1-SNAPSHOT From 6239d8877b31ab9bb91e35f79a231ee27b47ff1f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 7 Jun 2024 03:10:21 +0200 Subject: [PATCH 1829/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.1 (#2065) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 6 +++--- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 9ff4b1d04e6d..68ec570934a9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.129.7' +implementation 'com.google.cloud:google-cloud-pubsub:1.130.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.129.7" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.130.0" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.129.7 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.130.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3bb3a9c93957..fb6b56203295 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.27.0 + 4.27.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b621c2f64fdd..c0045060cd85 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.27.0 + 4.27.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 72467b06108b..bde2a8430561 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.27.0 + 4.27.1 From dec8bcf38bc97e8836272b4041469d0d9de59124 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 7 Jun 2024 03:10:44 +0200 Subject: [PATCH 1830/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.130.0 (#2060) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.130.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 68ec570934a9..a2ac8ae9309e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.129.7 + 1.130.0 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fb6b56203295..ba32ac9d39e8 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.129.7 + 1.130.0 From 6c2b3e8f6b0a73cdb84790ba14700b6e03c26ab9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 6 Jun 2024 21:16:19 -0400 Subject: [PATCH 1831/2363] ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#2064) Source-Link: https://github.com/googleapis/synthtool/commit/bd2bae89f70bad380da47fab9ec25985dfb87d67 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:72f0d373307d128b2cb720c5cb4d90b31f0e86529dd138c632710ae0c69efae3 Co-authored-by: Owl Bot --- java-pubsub/.github/.OwlBot.lock.yaml | 4 ++-- java-pubsub/.github/trusted-contribution.yml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml index f817c5f44999..359fe71c1964 100644 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ b/java-pubsub/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:31aa2ef27b071c2e7844b0eb1d5a24254daff06615b1b138b994dd6345c0b0ea -# created: 2024-05-17T15:15:57.6714113Z + digest: sha256:72f0d373307d128b2cb720c5cb4d90b31f0e86529dd138c632710ae0c69efae3 +# created: 2024-06-05T18:32:21.724930324Z diff --git a/java-pubsub/.github/trusted-contribution.yml b/java-pubsub/.github/trusted-contribution.yml index a0ba1f7d9078..88d3ac9bf1a7 100644 --- a/java-pubsub/.github/trusted-contribution.yml +++ b/java-pubsub/.github/trusted-contribution.yml @@ -1,3 +1,9 @@ trustedContributors: - renovate-bot - gcf-owl-bot[bot] + +annotations: +- type: comment + text: "/gcbrun" +- type: label + text: "kokoro:force-run" From 699bbc946ed20a24bfef5ba36803ca1f11c23fd3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Jun 2024 17:54:50 +0200 Subject: [PATCH 1832/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.40.0 (#2066) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ba32ac9d39e8..ed16489876ef 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.39.0 + 2.40.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c0045060cd85..235f3c4c7ee8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.39.0 + 2.40.0 From 5c53fd804879cc126007784557046639566bbd25 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Jun 2024 17:55:09 +0200 Subject: [PATCH 1833/2363] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.4.0 (#2062) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.4.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 742838b206cf..6d05e41e2adb 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -75,7 +75,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.3.1 + 3.4.0 checkstyle-suppressions.xml From 87f1f68f34446159d234c19f6c2de2108b80ab0e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Jun 2024 18:30:04 +0200 Subject: [PATCH 1834/2363] build(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.7.0 (#2070) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index f39c1e935018..9a8db303cbf2 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -79,7 +79,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-dependency-plugin - 3.6.1 + 3.7.0 copy-dependencies From dae3ce5ecb8137ae79e87514a5de64e9ca865cfa Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Jun 2024 04:49:05 +0200 Subject: [PATCH 1835/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.40.3 (#2071) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ed16489876ef..d518d420e676 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.40.2 + 2.40.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 235f3c4c7ee8..cee53ba3642e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.40.2 + 2.40.3 com.google.cloud From c1a4f8eecd07dc6cc11b125f78b6400f9498c0a7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Jun 2024 06:32:00 +0200 Subject: [PATCH 1836/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.41.0 (#2072) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.41.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 4 ++-- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a2ac8ae9309e..a2d5b8622759 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.41.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.40.0') +implementation platform('com.google.cloud:libraries-bom:26.41.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 9a8db303cbf2..0d30f984d1f7 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.40.0 + 26.41.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index bde2a8430561..60f425d5482a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.40.0 + 26.41.0 pom import From d737417ca78836ed68d015aa0eeebc9882995d9e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 07:59:09 -0400 Subject: [PATCH 1837/2363] chore(main): release 1.130.1 (#2067) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 1.130.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- java-pubsub/CHANGELOG.md | 9 +++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 4bc039c8ccad..43e5ac4cd667 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [1.130.1](https://github.com/googleapis/java-pubsub/compare/v1.130.0...v1.130.1) (2024-06-13) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.40.3 ([#2071](https://github.com/googleapis/java-pubsub/issues/2071)) ([0844bfb](https://github.com/googleapis/java-pubsub/commit/0844bfb0a500ae0b4a0f63fcb45ffffeaf609e3d)) +* Update dependency com.google.cloud:google-cloud-storage to v2.40.0 ([#2066](https://github.com/googleapis/java-pubsub/issues/2066)) ([dfcaeb5](https://github.com/googleapis/java-pubsub/commit/dfcaeb5b59466d86ac5b5bf74655ce359e7d5713)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.27.1 ([#2065](https://github.com/googleapis/java-pubsub/issues/2065)) ([6baf69a](https://github.com/googleapis/java-pubsub/commit/6baf69a99adb75fba49c2289bca3ffd08720f8f4)) + ## [1.130.0](https://github.com/googleapis/java-pubsub/compare/v1.129.7...v1.130.0) (2024-06-03) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d22e2aec314a..03e5f79ed0de 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.130.1-SNAPSHOT + 1.130.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.130.1-SNAPSHOT + 1.130.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c9f5d11cd3d1..76752a980e71 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.130.1-SNAPSHOT + 1.130.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.130.1-SNAPSHOT + 1.130.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f26b3cd13988..0d215dcb374d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.1-SNAPSHOT + 1.130.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b7c2dd5c72b2..a865beac3b69 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.130.1-SNAPSHOT + 1.130.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 com.google.cloud google-cloud-pubsub - 1.130.1-SNAPSHOT + 1.130.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e9222f58214e..942d1913f959 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1-SNAPSHOT + 1.112.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.1-SNAPSHOT + 1.130.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cee53ba3642e..d98c293e8658 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.130.1-SNAPSHOT + 1.130.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 59c5e2e25eff..b0f5a70669e4 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.130.0:1.130.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.112.0:1.112.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.112.0:1.112.1-SNAPSHOT +google-cloud-pubsub:1.130.1:1.130.1 +grpc-google-cloud-pubsub-v1:1.112.1:1.112.1 +proto-google-cloud-pubsub-v1:1.112.1:1.112.1 From ba726be7ecbe7c7bba6d9616dfdc6b8ac3fe2b3b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:14:19 +0000 Subject: [PATCH 1838/2363] chore(main): release 1.130.2-SNAPSHOT (#2073) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 03e5f79ed0de..e5342faaabf4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.130.1 + 1.130.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.130.1 + 1.130.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 76752a980e71..7a5d972eacbb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.130.1 + 1.130.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.130.1 + 1.130.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0d215dcb374d..59c094048e41 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.1 + 1.130.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a865beac3b69..92be8d86e0cc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.130.1 + 1.130.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.130.1 + 1.130.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 942d1913f959..cc739747b379 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.1 + 1.112.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.1 + 1.130.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d98c293e8658..afc37ce64178 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.130.1 + 1.130.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b0f5a70669e4..7b80e922bbf9 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.130.1:1.130.1 -grpc-google-cloud-pubsub-v1:1.112.1:1.112.1 -proto-google-cloud-pubsub-v1:1.112.1:1.112.1 +google-cloud-pubsub:1.130.1:1.130.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.112.1:1.112.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.112.1:1.112.2-SNAPSHOT From 05a0b295eaf0111137865c68388fd337db9fe680 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 21 Jun 2024 17:06:16 +0200 Subject: [PATCH 1839/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.42.0 (#2081) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26.42.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 10 +++++----- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a2d5b8622759..61ebb1cb4f72 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.41.0 + 26.42.0 pom import @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.41.0') +implementation platform('com.google.cloud:libraries-bom:26.42.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.130.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.130.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.130.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.130.1" ``` @@ -411,7 +411,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.130.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.130.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 0d30f984d1f7..76a88ddbfbd0 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.41.0 + 26.42.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 60f425d5482a..912a95a47efa 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.41.0 + 26.42.0 pom import From 6ce27666bc3e4c57bd0aa9d87141504c0da798a1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 21 Jun 2024 11:06:37 -0400 Subject: [PATCH 1840/2363] feat: add use_topic_schema for Cloud Storage Subscriptions (#2082) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add use_topic_schema for Cloud Storage Subscriptions PiperOrigin-RevId: 643385701 Source-Link: https://github.com/googleapis/googleapis/commit/f29a82a206156fd665eaa01cb7987170ac0250f0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f8f3f60ad2ab4e81fe024368ad0430900174e82b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjhmM2Y2MGFkMmFiNGU4MWZlMDI0MzY4YWQwNDMwOTAwMTc0ZTgyYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- .../google/pubsub/v1/CloudStorageConfig.java | 135 ++++++ .../com/google/pubsub/v1/PubsubProto.java | 425 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 8 + 5 files changed, 361 insertions(+), 217 deletions(-) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 4f98b34b110b..f847f91d63c7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -130,6 +130,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * IN_TRANSIT_LOCATION_RESTRICTION = 4; */ IN_TRANSIT_LOCATION_RESTRICTION(4), + /** + * + * + *
    +     * Cannot write to the Cloud Storage bucket due to an incompatibility
    +     * between the topic schema and subscription settings.
    +     * 
    + * + * SCHEMA_MISMATCH = 5; + */ + SCHEMA_MISMATCH(5), UNRECOGNIZED(-1), ; @@ -185,6 +196,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * IN_TRANSIT_LOCATION_RESTRICTION = 4; */ public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 4; + /** + * + * + *
    +     * Cannot write to the Cloud Storage bucket due to an incompatibility
    +     * between the topic schema and subscription settings.
    +     * 
    + * + * SCHEMA_MISMATCH = 5; + */ + public static final int SCHEMA_MISMATCH_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -220,6 +242,8 @@ public static State forNumber(int value) { return NOT_FOUND; case 4: return IN_TRANSIT_LOCATION_RESTRICTION; + case 5: + return SCHEMA_MISMATCH; default: return null; } @@ -721,6 +745,20 @@ public interface AvroConfigOrBuilder * @return The writeMetadata. */ boolean getWriteMetadata(); + + /** + * + * + *
    +     * Optional. When true, the output Cloud Storage file will be serialized
    +     * using the topic schema, if it exists.
    +     * 
    + * + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useTopicSchema. + */ + boolean getUseTopicSchema(); } /** * @@ -788,6 +826,25 @@ public boolean getWriteMetadata() { return writeMetadata_; } + public static final int USE_TOPIC_SCHEMA_FIELD_NUMBER = 2; + private boolean useTopicSchema_ = false; + /** + * + * + *
    +     * Optional. When true, the output Cloud Storage file will be serialized
    +     * using the topic schema, if it exists.
    +     * 
    + * + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useTopicSchema. + */ + @java.lang.Override + public boolean getUseTopicSchema() { + return useTopicSchema_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -805,6 +862,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (writeMetadata_ != false) { output.writeBool(1, writeMetadata_); } + if (useTopicSchema_ != false) { + output.writeBool(2, useTopicSchema_); + } getUnknownFields().writeTo(output); } @@ -817,6 +877,9 @@ public int getSerializedSize() { if (writeMetadata_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, writeMetadata_); } + if (useTopicSchema_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useTopicSchema_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -834,6 +897,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.pubsub.v1.CloudStorageConfig.AvroConfig) obj; if (getWriteMetadata() != other.getWriteMetadata()) return false; + if (getUseTopicSchema() != other.getUseTopicSchema()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -847,6 +911,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WRITE_METADATA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWriteMetadata()); + hash = (37 * hash) + USE_TOPIC_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseTopicSchema()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -990,6 +1056,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; writeMetadata_ = false; + useTopicSchema_ = false; return this; } @@ -1029,6 +1096,9 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig.AvroConfig re if (((from_bitField0_ & 0x00000001) != 0)) { result.writeMetadata_ = writeMetadata_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.useTopicSchema_ = useTopicSchema_; + } } @java.lang.Override @@ -1082,6 +1152,9 @@ public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig.AvroConfig othe if (other.getWriteMetadata() != false) { setWriteMetadata(other.getWriteMetadata()); } + if (other.getUseTopicSchema() != false) { + setUseTopicSchema(other.getUseTopicSchema()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1114,6 +1187,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: + { + useTopicSchema_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1201,6 +1280,62 @@ public Builder clearWriteMetadata() { return this; } + private boolean useTopicSchema_; + /** + * + * + *
    +       * Optional. When true, the output Cloud Storage file will be serialized
    +       * using the topic schema, if it exists.
    +       * 
    + * + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The useTopicSchema. + */ + @java.lang.Override + public boolean getUseTopicSchema() { + return useTopicSchema_; + } + /** + * + * + *
    +       * Optional. When true, the output Cloud Storage file will be serialized
    +       * using the topic schema, if it exists.
    +       * 
    + * + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The useTopicSchema to set. + * @return This builder for chaining. + */ + public Builder setUseTopicSchema(boolean value) { + + useTopicSchema_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. When true, the output Cloud Storage file will be serialized
    +       * using the topic schema, if it exists.
    +       * 
    + * + * bool use_topic_schema = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUseTopicSchema() { + bitField0_ = (bitField0_ & ~0x00000002); + useTopicSchema_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 4ef81ddb70bc..a80aaa209a7b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -427,7 +427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" + "T_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRA" - + "NSIT_LOCATION_RESTRICTION\020\005\"\231\005\n\022CloudSto" + + "NSIT_LOCATION_RESTRICTION\020\005\"\316\005\n\022CloudSto" + "rageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filen" + "ame_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix" + "\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_format\030" @@ -439,219 +439,220 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "obuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340" + "A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1.Clo" + "udStorageConfig.StateB\003\340A\003\022\"\n\025service_ac" - + "count_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032)\n\n" - + "AvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\"" - + "u\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" - + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" - + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004B\017" - + "\n\routput_format\"|\n\017ReceivedMessage\022\023\n\006ac" - + "k_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.googl" - + "e.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n\020delive" - + "ry_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscription" - + "Request\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"p" - + "ubsub.googleapis.com/Subscription\"\214\001\n\031Up" - + "dateSubscriptionRequest\0229\n\014subscription\030" - + "\001 \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340" - + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRe" - + "quest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudres" - + "ourcemanager.googleapis.com/Project\022\026\n\tp" - + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" - + "\003\340A\001\"u\n\031ListSubscriptionsResponse\022:\n\rsub" - + "scriptions\030\001 \003(\0132\036.google.pubsub.v1.Subs" - + "criptionB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" - + "\340A\001\"]\n\031DeleteSubscriptionRequest\022@\n\014subs" - + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\"\223\001\n\027ModifyPushConfigR" - + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" - + "bsub.googleapis.com/Subscription\0226\n\013push" - + "_config\030\002 \001(\0132\034.google.pubsub.v1.PushCon" - + "figB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\022!\n\022return_immediately\030\002 \001(\010B\005" - + "\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014Pull" - + "Response\022A\n\021received_messages\030\001 \003(\0132!.go" - + "ogle.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030" - + "ModifyAckDeadlineRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_" - + "deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowled" - + "geRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" - + "ck_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullReque" - + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" - + "\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_seconds\030\003 " - + "\003(\005B\003\340A\001\022$\n\027modify_deadline_ack_ids\030\004 \003(" - + "\tB\003\340A\001\022(\n\033stream_ack_deadline_seconds\030\005 " - + "\001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_" - + "outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_o" - + "utstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025Streamin" - + "gPullResponse\022A\n\021received_messages\030\001 \003(\013" - + "2!.google.pubsub.v1.ReceivedMessageB\003\340A\001" - + "\022f\n\030acknowledge_confirmation\030\005 \001(\0132?.goo" - + "gle.pubsub.v1.StreamingPullResponse.Ackn" - + "owledgeConfirmationB\003\340A\001\022t\n modify_ack_d" - + "eadline_confirmation\030\003 \001(\0132E.google.pubs" - + "ub.v1.StreamingPullResponse.ModifyAckDea" - + "dlineConfirmationB\003\340A\001\022d\n\027subscription_p" - + "roperties\030\004 \001(\0132>.google.pubsub.v1.Strea" - + "mingPullResponse.SubscriptionPropertiesB" - + "\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022\024\n\007ack_" - + "ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB" - + "\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030" - + "temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035M" - + "odifyAckDeadlineConfirmation\022\024\n\007ack_ids\030" - + "\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001" - + "\022%\n\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032" - + "k\n\026SubscriptionProperties\022*\n\035exactly_onc" - + "e_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message" - + "_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateS" - + "napshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pu" - + "bsub.googleapis.com/Snapshot\022@\n\014subscrip" - + "tion\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\022H\n\006labels\030\003 \003(\01323.google." - + "pubsub.v1.CreateSnapshotRequest.LabelsEn" - + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotReques" - + "t\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.S" - + "napshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A" - + "\035\n\033pubsub.googleapis.com/Topic\0224\n\013expire" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pubsub.v1." - + "Snapshot.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036p" - + "ubsub.googleapis.com/Snapshot\022\'projects/" - + "{project}/snapshots/{snapshot}\"N\n\022GetSna" - + "pshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036" - + "pubsub.googleapis.com/Snapshot\"\215\001\n\024ListS" - + "napshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-" - + "\n+cloudresourcemanager.googleapis.com/Pr" - + "oject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\022" - + "2\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" - + "apshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" - + "\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030\001" - + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" - + "shot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001 \001" + + "count_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\n" + + "AvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\022" + + "\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021P" + + "ERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_" + + "TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n\017SCHEMA" + + "_MISMATCH\020\005B\017\n\routput_format\"|\n\017Received" + + "Message\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030" + + "\002 \001(\0132\037.google.pubsub.v1.PubsubMessageB\003" + + "\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026Ge" + + "tSubscriptionRequest\022@\n\014subscription\030\001 \001" + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" - + "iption\022/\n\004time\030\002 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A" - + " \n\036pubsub.googleapis.com/SnapshotH\000B\010\n\006t" - + "arget\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013C" - + "reateTopic\022\027.google.pubsub.v1.Topic\032\027.go" - + "ogle.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1" - + "/{name=projects/*/topics/*}:\001*\022\221\001\n\013Updat" - + "eTopic\022$.google.pubsub.v1.UpdateTopicReq" - + "uest\032\027.google.pubsub.v1.Topic\"C\332A\021topic," - + "update_mask\202\323\344\223\002)2$/v1/{topic.name=proje" - + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google." - + "pubsub.v1.PublishRequest\032!.google.pubsub" - + ".v1.PublishResponse\"C\332A\016topic,messages\202\323" - + "\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:pu" - + "blish:\001*\022w\n\010GetTopic\022!.google.pubsub.v1." - + "GetTopicRequest\032\027.google.pubsub.v1.Topic" - + "\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/" - + "topics/*}\022\212\001\n\nListTopics\022#.google.pubsub" - + ".v1.ListTopicsRequest\032$.google.pubsub.v1" - + ".ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/" - + "v1/{project=projects/*}/topics\022\272\001\n\026ListT" - + "opicSubscriptions\022/.google.pubsub.v1.Lis" - + "tTopicSubscriptionsRequest\0320.google.pubs" - + "ub.v1.ListTopicSubscriptionsResponse\"=\332A" - + "\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/topi" - + "cs/*}/subscriptions\022\252\001\n\022ListTopicSnapsho" - + "ts\022+.google.pubsub.v1.ListTopicSnapshots" - + "Request\032,.google.pubsub.v1.ListTopicSnap" - + "shotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topi" - + "c=projects/*/topics/*}/snapshots\022|\n\013Dele" - + "teTopic\022$.google.pubsub.v1.DeleteTopicRe" - + "quest\032\026.google.protobuf.Empty\"/\332A\005topic\202" - + "\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255" - + "\001\n\022DetachSubscription\022+.google.pubsub.v1" - + ".DetachSubscriptionRequest\032,.google.pubs" - + "ub.v1.DetachSubscriptionResponse\"<\202\323\344\223\0026" - + "\"4/v1/{subscription=projects/*/subscript" - + "ions/*}:detach\032p\312A\025pubsub.googleapis.com" - + "\322AUhttps://www.googleapis.com/auth/cloud" - + "-platform,https://www.googleapis.com/aut" - + "h/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscr" - + "iption\022\036.google.pubsub.v1.Subscription\032\036" - + ".google.pubsub.v1.Subscription\"^\332A+name," - + "topic,push_config,ack_deadline_seconds\202\323" - + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" - + "/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pubs" - + "ub.v1.GetSubscriptionRequest\032\036.google.pu" - + "bsub.v1.Subscription\"D\332A\014subscription\202\323\344" - + "\223\002/\022-/v1/{subscription=projects/*/subscr" - + "iptions/*}\022\273\001\n\022UpdateSubscription\022+.goog" - + "le.pubsub.v1.UpdateSubscriptionRequest\032\036" - + ".google.pubsub.v1.Subscription\"X\332A\030subsc" - + "ription,update_mask\202\323\344\223\002722/v1/{subscrip" - + "tion.name=projects/*/subscriptions/*}:\001*" - + "\022\246\001\n\021ListSubscriptions\022*.google.pubsub.v" - + "1.ListSubscriptionsRequest\032+.google.pubs" - + "ub.v1.ListSubscriptionsResponse\"8\332A\007proj" - + "ect\202\323\344\223\002(\022&/v1/{project=projects/*}/subs" - + "criptions\022\237\001\n\022DeleteSubscription\022+.googl" - + "e.pubsub.v1.DeleteSubscriptionRequest\032\026." - + "google.protobuf.Empty\"D\332A\014subscription\202\323" - + "\344\223\002/*-/v1/{subscription=projects/*/subsc" - + "riptions/*}\022\317\001\n\021ModifyAckDeadline\022*.goog" - + "le.pubsub.v1.ModifyAckDeadlineRequest\032\026." - + "google.protobuf.Empty\"v\332A)subscription,a" - + "ck_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{" - + "subscription=projects/*/subscriptions/*}" - + ":modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022$." - + "google.pubsub.v1.AcknowledgeRequest\032\026.go" - + "ogle.protobuf.Empty\"[\332A\024subscription,ack" - + "_ids\202\323\344\223\002>\"9/v1/{subscription=projects/*" - + "/subscriptions/*}:acknowledge:\001*\022\320\001\n\004Pul" - + "l\022\035.google.pubsub.v1.PullRequest\032\036.googl" - + "e.pubsub.v1.PullResponse\"\210\001\332A,subscripti" - + "on,return_immediately,max_messages\332A\031sub" - + "scription,max_messages\202\323\344\223\0027\"2/v1/{subsc" - + "ription=projects/*/subscriptions/*}:pull" - + ":\001*\022f\n\rStreamingPull\022&.google.pubsub.v1." - + "StreamingPullRequest\032\'.google.pubsub.v1." - + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu" - + "shConfig\022).google.pubsub.v1.ModifyPushCo" - + "nfigRequest\032\026.google.protobuf.Empty\"d\332A\030" - + "subscription,push_config\202\323\344\223\002C\">/v1/{sub" - + "scription=projects/*/subscriptions/*}:mo" - + "difyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.goog" - + "le.pubsub.v1.GetSnapshotRequest\032\032.google" - + ".pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%" - + "/v1/{snapshot=projects/*/snapshots/*}\022\226\001" - + "\n\rListSnapshots\022&.google.pubsub.v1.ListS" - + "napshotsRequest\032\'.google.pubsub.v1.ListS" - + "napshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/" - + "{project=projects/*}/snapshots\022\227\001\n\016Creat" - + "eSnapshot\022\'.google.pubsub.v1.CreateSnaps" - + "hotRequest\032\032.google.pubsub.v1.Snapshot\"@" - + "\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=pr" - + "ojects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnaps" - + "hot\022\'.google.pubsub.v1.UpdateSnapshotReq" - + "uest\032\032.google.pubsub.v1.Snapshot\"L\332A\024sna" - + "pshot,update_mask\202\323\344\223\002/2*/v1/{snapshot.n" - + "ame=projects/*/snapshots/*}:\001*\022\213\001\n\016Delet" - + "eSnapshot\022\'.google.pubsub.v1.DeleteSnaps" - + "hotRequest\032\026.google.protobuf.Empty\"8\332A\010s" - + "napshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/" - + "snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1" - + ".SeekRequest\032\036.google.pubsub.v1.SeekResp" - + "onse\"=\202\323\344\223\0027\"2/v1/{subscription=projects" - + "/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub.g" + + "iption\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014" + + "subscription\030\001 \001(\0132\036.google.pubsub.v1.Su" + + "bscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSu" + + "bscriptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002" + + "\372A-\n+cloudresourcemanager.googleapis.com" + + "/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRe" + + "sponse\022:\n\rsubscriptions\030\001 \003(\0132\036.google.p" + + "ubsub.v1.SubscriptionB\003\340A\001\022\034\n\017next_page_" + + "token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\"\223\001\n\027Modi" + + "fyPushConfigRequest\022@\n\014subscription\030\001 \001(" + + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" + + "ption\0226\n\013push_config\030\002 \001(\0132\034.google.pubs" + + "ub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" + + "leapis.com/Subscription\022!\n\022return_immedi" + + "ately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005" + + "B\003\340A\002\"Q\n\014PullResponse\022A\n\021received_messag" + + "es\030\001 \003(\0132!.google.pubsub.v1.ReceivedMess" + + "ageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" + + "leapis.com/Subscription\022\024\n\007ack_ids\030\004 \003(\t" + + "B\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002" + + "\"l\n\022AcknowledgeRequest\022@\n\014subscription\030\001" + + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" + + "cription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024Strea" + + "mingPullRequest\022@\n\014subscription\030\001 \001(\tB*\340" + + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" + + "n\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadli" + + "ne_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline" + + "_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadli" + + "ne_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\t" + + "B\003\340A\001\022%\n\030max_outstanding_messages\030\007 \001(\003B" + + "\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001" + + "\"\236\006\n\025StreamingPullResponse\022A\n\021received_m" + + "essages\030\001 \003(\0132!.google.pubsub.v1.Receive" + + "dMessageB\003\340A\001\022f\n\030acknowledge_confirmatio" + + "n\030\005 \001(\0132?.google.pubsub.v1.StreamingPull" + + "Response.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132" + + "E.google.pubsub.v1.StreamingPullResponse" + + ".ModifyAckDeadlineConfirmationB\003\340A\001\022d\n\027s" + + "ubscription_properties\030\004 \001(\0132>.google.pu" + + "bsub.v1.StreamingPullResponse.Subscripti" + + "onPropertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirm" + + "ation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_a" + + "ck_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003" + + " \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 " + + "\003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineConfirmatio" + + "n\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_i" + + "ds\030\002 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_id" + + "s\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*" + + "\n\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340" + + "A\001\022%\n\030message_ordering_enabled\030\002 \001(\010B\003\340A" + + "\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004name\030\001 \001(" + + "\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snapsho" + + "t\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\022H\n\006labels\030\003 " + + "\003(\01323.google.pubsub.v1.CreateSnapshotReq" + + "uest.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateS" + + "napshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.googl" + + "e.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"" + + "\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic" + + "\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/To" + + "pic\0224\n\013expire_time\030\003 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.goog" + + "le.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Snapsh" + + "ot\022\'projects/{project}/snapshots/{snapsh" + + "ot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 " + + "\001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snaps" + + "hot\"\215\001\n\024ListSnapshotsRequest\022D\n\007project\030" + + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340" + + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnaps" + + "hotsResponse\0222\n\tsnapshots\030\001 \003(\0132\032.google" + + ".pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_to" + + "ken\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\022" + + "8\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.google" + + "apis.com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014sub" + + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" + + "is.com/Subscription\022/\n\004time\030\002 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot" + + "\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapis.com/Sn" + + "apshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tP" + + "ublisher\022q\n\013CreateTopic\022\027.google.pubsub." + + "v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A\004na" + + "me\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}" + + ":\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v1.U" + + "pdateTopicRequest\032\027.google.pubsub.v1.Top" + + "ic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{top" + + "ic.name=projects/*/topics/*}:\001*\022\223\001\n\007Publ" + + "ish\022 .google.pubsub.v1.PublishRequest\032!." + + "google.pubsub.v1.PublishResponse\"C\332A\016top" + + "ic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*" + + "/topics/*}:publish:\001*\022w\n\010GetTopic\022!.goog" + + "le.pubsub.v1.GetTopicRequest\032\027.google.pu" + + "bsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topi" + + "c=projects/*/topics/*}\022\212\001\n\nListTopics\022#." + + "google.pubsub.v1.ListTopicsRequest\032$.goo" + + "gle.pubsub.v1.ListTopicsResponse\"1\332A\007pro" + + "ject\202\323\344\223\002!\022\037/v1/{project=projects/*}/top" + + "ics\022\272\001\n\026ListTopicSubscriptions\022/.google." + + "pubsub.v1.ListTopicSubscriptionsRequest\032" + + "0.google.pubsub.v1.ListTopicSubscription" + + "sResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=pr" + + "ojects/*/topics/*}/subscriptions\022\252\001\n\022Lis" + + "tTopicSnapshots\022+.google.pubsub.v1.ListT" + + "opicSnapshotsRequest\032,.google.pubsub.v1." + + "ListTopicSnapshotsResponse\"9\332A\005topic\202\323\344\223" + + "\002+\022)/v1/{topic=projects/*/topics/*}/snap" + + "shots\022|\n\013DeleteTopic\022$.google.pubsub.v1." + + "DeleteTopicRequest\032\026.google.protobuf.Emp" + + "ty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/" + + "*/topics/*}\022\255\001\n\022DetachSubscription\022+.goo" + + "gle.pubsub.v1.DetachSubscriptionRequest\032" + + ",.google.pubsub.v1.DetachSubscriptionRes" + + "ponse\"<\202\323\344\223\0026\"4/v1/{subscription=project" + + "s/*/subscriptions/*}:detach\032p\312A\025pubsub.g" + "oogleapis.com\322AUhttps://www.googleapis.c" + "om/auth/cloud-platform,https://www.googl" - + "eapis.com/auth/pubsubB\252\001\n\024com.google.pub" - + "sub.v1B\013PubsubProtoP\001Z2cloud.google.com/" - + "go/pubsub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026G" - + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" - + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" - + "o3" + + "eapis.com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n" + + "\022CreateSubscription\022\036.google.pubsub.v1.S" + + "ubscription\032\036.google.pubsub.v1.Subscript" + + "ion\"^\332A+name,topic,push_config,ack_deadl" + + "ine_seconds\202\323\344\223\002*\032%/v1/{name=projects/*/" + + "subscriptions/*}:\001*\022\241\001\n\017GetSubscription\022" + + "(.google.pubsub.v1.GetSubscriptionReques" + + "t\032\036.google.pubsub.v1.Subscription\"D\332A\014su" + + "bscription\202\323\344\223\002/\022-/v1/{subscription=proj" + + "ects/*/subscriptions/*}\022\273\001\n\022UpdateSubscr" + + "iption\022+.google.pubsub.v1.UpdateSubscrip" + + "tionRequest\032\036.google.pubsub.v1.Subscript" + + "ion\"X\332A\030subscription,update_mask\202\323\344\223\002722" + + "/v1/{subscription.name=projects/*/subscr" + + "iptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*.go" + + "ogle.pubsub.v1.ListSubscriptionsRequest\032" + + "+.google.pubsub.v1.ListSubscriptionsResp" + + "onse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=pro" + + "jects/*}/subscriptions\022\237\001\n\022DeleteSubscri" + + "ption\022+.google.pubsub.v1.DeleteSubscript" + + "ionRequest\032\026.google.protobuf.Empty\"D\332A\014s" + + "ubscription\202\323\344\223\002/*-/v1/{subscription=pro" + + "jects/*/subscriptions/*}\022\317\001\n\021ModifyAckDe" + + "adline\022*.google.pubsub.v1.ModifyAckDeadl" + + "ineRequest\032\026.google.protobuf.Empty\"v\332A)s" + + "ubscription,ack_ids,ack_deadline_seconds" + + "\202\323\344\223\002D\"?/v1/{subscription=projects/*/sub" + + "scriptions/*}:modifyAckDeadline:\001*\022\250\001\n\013A" + + "cknowledge\022$.google.pubsub.v1.Acknowledg" + + "eRequest\032\026.google.protobuf.Empty\"[\332A\024sub" + + "scription,ack_ids\202\323\344\223\002>\"9/v1/{subscripti" + + "on=projects/*/subscriptions/*}:acknowled" + + "ge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullRe" + + "quest\032\036.google.pubsub.v1.PullResponse\"\210\001" + + "\332A,subscription,return_immediately,max_m" + + "essages\332A\031subscription,max_messages\202\323\344\223\002" + + "7\"2/v1/{subscription=projects/*/subscrip" + + "tions/*}:pull:\001*\022f\n\rStreamingPull\022&.goog" + + "le.pubsub.v1.StreamingPullRequest\032\'.goog" + + "le.pubsub.v1.StreamingPullResponse\"\000(\0010\001" + + "\022\273\001\n\020ModifyPushConfig\022).google.pubsub.v1" + + ".ModifyPushConfigRequest\032\026.google.protob" + + "uf.Empty\"d\332A\030subscription,push_config\202\323\344" + + "\223\002C\">/v1/{subscription=projects/*/subscr" + + "iptions/*}:modifyPushConfig:\001*\022\211\001\n\013GetSn" + + "apshot\022$.google.pubsub.v1.GetSnapshotReq" + + "uest\032\032.google.pubsub.v1.Snapshot\"8\332A\010sna" + + "pshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/sn" + + "apshots/*}\022\226\001\n\rListSnapshots\022&.google.pu" + + "bsub.v1.ListSnapshotsRequest\032\'.google.pu" + + "bsub.v1.ListSnapshotsResponse\"4\332A\007projec" + + "t\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapsh" + + "ots\022\227\001\n\016CreateSnapshot\022\'.google.pubsub.v" + + "1.CreateSnapshotRequest\032\032.google.pubsub." + + "v1.Snapshot\"@\332A\021name,subscription\202\323\344\223\002&\032" + + "!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001" + + "\n\016UpdateSnapshot\022\'.google.pubsub.v1.Upda" + + "teSnapshotRequest\032\032.google.pubsub.v1.Sna" + + "pshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v" + + "1/{snapshot.name=projects/*/snapshots/*}" + + ":\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v" + + "1.DeleteSnapshotRequest\032\026.google.protobu" + + "f.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapsho" + + "t=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.goo" + + "gle.pubsub.v1.SeekRequest\032\036.google.pubsu" + + "b.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscrip" + + "tion=projects/*/subscriptions/*}:seek:\001*" + + "\032p\312A\025pubsub.googleapis.com\322AUhttps://www" + + ".googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/pubsubB\252\001\n\024c" + + "om.google.pubsub.v1B\013PubsubProtoP\001Z2clou" + + "d.google.com/go/pubsub/apiv1/pubsubpb;pu" + + "bsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Goo" + + "gle\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::Pub" + + "Sub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -987,7 +988,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor, new java.lang.String[] { - "WriteMetadata", + "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = getDescriptor().getMessageTypes().get(25); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 5341666eb189..a26effb789a9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1379 + * google/pubsub/v1/pubsub.proto;l=1387 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1379 + * google/pubsub/v1/pubsub.proto;l=1387 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1379 + * google/pubsub/v1/pubsub.proto;l=1387 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1379 + * google/pubsub/v1/pubsub.proto;l=1387 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 2dc2208a40ce..94c2e0c108ca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1379 + * google/pubsub/v1/pubsub.proto;l=1387 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 8546dacf952f..b70bda11a33d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1168,6 +1168,10 @@ message CloudStorageConfig { // data (for example, an ordering_key, if present) are added as entries in // the attributes map. bool write_metadata = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When true, the output Cloud Storage file will be serialized + // using the topic schema, if it exists. + bool use_topic_schema = 2 [(google.api.field_behavior) = OPTIONAL]; } // Possible states for a Cloud Storage subscription. @@ -1188,6 +1192,10 @@ message CloudStorageConfig { // Cannot write to the destination because enforce_in_transit is set to true // and the destination locations are not in the allowed regions. IN_TRANSIT_LOCATION_RESTRICTION = 4; + + // Cannot write to the Cloud Storage bucket due to an incompatibility + // between the topic schema and subscription settings. + SCHEMA_MISMATCH = 5; } // Required. User-provided name for the Cloud Storage bucket. From 5c7df092c3135edc837d7d93bf753bcf51203e8a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 21 Jun 2024 17:07:19 +0200 Subject: [PATCH 1841/2363] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.3.0 (#2079) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.3.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 76a88ddbfbd0..76119feb88a6 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.2.5 + 3.3.0 **/*IT From b3df59df49e7357f9df99c8607044e0a6287f90a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 21 Jun 2024 17:46:48 +0200 Subject: [PATCH 1842/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.130.1 (#2077) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.130.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 61ebb1cb4f72..55d7650485e1 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d518d420e676..303760aa2b6e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.130.0 + 1.130.1 From fb7ad0b5671e2f67354b5158598e548703234728 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 21 Jun 2024 17:47:09 +0200 Subject: [PATCH 1843/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.0 (#2080) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 92be8d86e0cc..5c6de0bc351a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.5.0 + 3.6.0 From 659685c803b6c773e79e54b47c6db882c717a596 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 24 Jun 2024 18:34:39 +0200 Subject: [PATCH 1844/2363] build(deps): update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.7.1 (#2084) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 76119feb88a6..2a16d366170f 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -79,7 +79,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-dependency-plugin - 3.7.0 + 3.7.1 copy-dependencies From edf4c75547b7b4d8de3ef3a16c081b968e4c011a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 18:46:50 +0200 Subject: [PATCH 1845/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.8.1 (#2085) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e5342faaabf4..b91f40480767 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.8.0 + 1.8.1 Google Cloud pubsub BOM From 6c30977989b8f6596ebabd4bcf9f4163daa4d130 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 20:12:17 +0200 Subject: [PATCH 1846/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.32.0 (#2088) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index ca6fff38861c..de006d9e21c5 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.31.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.32.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index aeafc31812f2..7d5ab3a25c4c 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 047ec1b678bd..519c2e3ce370 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5c6de0bc351a..4e5cc8478c1f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.31.0 + 3.32.0 From e81e2d8575ee277f1aa34c1e2ba8dc7d2caaf811 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 20:12:39 +0200 Subject: [PATCH 1847/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.40.0 (#2087) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 303760aa2b6e..bdb85eb83fe5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.39.0 + 2.40.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index afc37ce64178..9b9a0e6bc346 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.39.0 + 2.40.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 912a95a47efa..6e44621f643b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.39.0 + 2.40.0 tests From a1c4676bfec8eab5f1198f11a001350ced099b68 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 15:36:29 -0400 Subject: [PATCH 1848/2363] chore(main): release 1.131.0 (#2083) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 31 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 43e5ac4cd667..89626575a5ea 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.131.0](https://github.com/googleapis/java-pubsub/compare/v1.130.1...v1.131.0) (2024-06-25) + + +### Features + +* Add use_topic_schema for Cloud Storage Subscriptions ([#2082](https://github.com/googleapis/java-pubsub/issues/2082)) ([11d67d4](https://github.com/googleapis/java-pubsub/commit/11d67d44152ccca008dda071683d9932c59af41d)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.40.0 ([#2087](https://github.com/googleapis/java-pubsub/issues/2087)) ([26b01c9](https://github.com/googleapis/java-pubsub/commit/26b01c921f2700947a1653702be0234cf84cccef)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.32.0 ([#2088](https://github.com/googleapis/java-pubsub/issues/2088)) ([aebc3ed](https://github.com/googleapis/java-pubsub/commit/aebc3ed779e0847077742dedc7c2c0a9d8a1ab10)) + ## [1.130.1](https://github.com/googleapis/java-pubsub/compare/v1.130.0...v1.130.1) (2024-06-13) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b91f40480767..f989772bad1c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.130.2-SNAPSHOT + 1.131.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.130.2-SNAPSHOT + 1.131.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7a5d972eacbb..785c76c06f78 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.130.2-SNAPSHOT + 1.131.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.130.2-SNAPSHOT + 1.131.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 59c094048e41..efb30593118a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.2-SNAPSHOT + 1.131.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4e5cc8478c1f..21f3ee292754 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.130.2-SNAPSHOT + 1.131.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0 com.google.cloud google-cloud-pubsub - 1.130.2-SNAPSHOT + 1.131.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index cc739747b379..c08a7bb30090 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.112.2-SNAPSHOT + 1.113.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.130.2-SNAPSHOT + 1.131.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9b9a0e6bc346..db54cec31bb3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.130.2-SNAPSHOT + 1.131.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7b80e922bbf9..af4a53006da9 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.130.1:1.130.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.112.1:1.112.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.112.1:1.112.2-SNAPSHOT +google-cloud-pubsub:1.131.0:1.131.0 +grpc-google-cloud-pubsub-v1:1.113.0:1.113.0 +proto-google-cloud-pubsub-v1:1.113.0:1.113.0 From 93f09283936b579b05cdefc6735cf2cbffec38b4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 19:50:43 +0000 Subject: [PATCH 1849/2363] chore(main): release 1.131.1-SNAPSHOT (#2089) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f989772bad1c..295c7717ec20 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.131.0 + 1.131.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.131.0 + 1.131.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 785c76c06f78..af2d034e5eb3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.131.0 + 1.131.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.131.0 + 1.131.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index efb30593118a..9b5e7af10bd3 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.131.0 + 1.131.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 21f3ee292754..a8b0281d9984 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.131.0 + 1.131.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.131.0 + 1.131.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c08a7bb30090..4d6605394c2c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.0 + 1.113.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.131.0 + 1.131.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index db54cec31bb3..632adef76ca9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.131.0 + 1.131.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index af4a53006da9..cdd8b1243dd6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.131.0:1.131.0 -grpc-google-cloud-pubsub-v1:1.113.0:1.113.0 -proto-google-cloud-pubsub-v1:1.113.0:1.113.0 +google-cloud-pubsub:1.131.0:1.131.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.113.0:1.113.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.113.0:1.113.1-SNAPSHOT From 35e04c3c5c15b8fa1c0ef3ca321b619dba64702c Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 1 Jul 2024 11:25:55 -0400 Subject: [PATCH 1850/2363] docs(samples): Optimistic subscribe sample (#2063) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(samples): Add code sample for optimistic subscribe * docs(samples): Fix formatting on test * docs(samples): Use an error listener instead of catching an exception for the OptimisticSubscribeExample * test: Add exception handler to OptimisticSubscribeExample * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 7 +- .../pubsub/OptimisticSubscribeExample.java | 103 ++++++++++++++++++ .../src/test/java/pubsub/SubscriberIT.java | 19 ++++ 3 files changed, 126 insertions(+), 3 deletions(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 55d7650485e1..195200dba8f2 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.130.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.131.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.130.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.131.0" ``` @@ -275,6 +275,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | | List Subscriptions In Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | | List Topics Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | +| Optimistic Subscribe Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | | Publish Avro Records Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | | Publish Protobuf Messages Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | | Publish With Batch Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | @@ -411,7 +412,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.130.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.131.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java new file mode 100644 index 000000000000..fbc9a183b535 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_optimistic_subscribe] + +import com.google.api.gax.rpc.NotFoundException; +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.PushConfig; +import com.google.pubsub.v1.Subscription; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class OptimisticSubscribeExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + String topicId = "your-topic-id"; + + optimisticSubscribeExample(projectId, subscriptionId, topicId); + } + + public static void optimisticSubscribeExample( + String projectId, String subscriptionId, String topicId) throws IOException { + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + // Handle incoming message, then ack the received message. + System.out.println("Id: " + message.getMessageId()); + System.out.println("Data: " + message.getData().toStringUtf8()); + consumer.ack(); + }; + + Subscriber subscriber = null; + try { + subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); + + // Listen for resource NOT_FOUND errors and rebuild the subscriber and restart subscribing + // when the current subscriber encounters these errors. + subscriber.addListener( + new Subscriber.Listener() { + public void failed(Subscriber.State from, Throwable failure) { + System.out.println(failure.getStackTrace()); + if (failure instanceof NotFoundException) { + try (SubscriptionAdminClient subscriptionAdminClient = + SubscriptionAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + // Create a pull subscription with default acknowledgement deadline of 10 seconds. + // The client library will automatically extend acknowledgement deadlines. + Subscription subscription = + subscriptionAdminClient.createSubscription( + subscriptionName, topicName, PushConfig.getDefaultInstance(), 10); + System.out.println("Created pull subscription: " + subscription.getName()); + optimisticSubscribeExample(projectId, subscriptionId, topicId); + } catch (IOException err) { + System.out.println("Failed to create pull subscription: " + err.getMessage()); + } + } + } + }, + MoreExecutors.directExecutor()); + + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (IllegalStateException e) { + // Prevent an exception from being thrown if it is the expected NotFoundException + if (!(subscriber.failureCause() instanceof NotFoundException)) { + throw e; + } + } catch (TimeoutException e) { + subscriber.stopAsync(); + } + } +} + +// [END pubsub_optimistic_subscribe] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java index ee4e03068727..3f91a2a31c38 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -56,12 +56,16 @@ public class SubscriberIT { private static final String subscriptionId = "subscriber-test-subscription-" + _suffix; // For a subscription with exactly once delivery enabled. private static final String subscriptionEodId = "subscriber-test-subscription-eod" + _suffix; + private static final String subscriptionOptimisticId = + "subscriber-test-subscription-optimistic" + _suffix; private static final TopicName topicName = TopicName.of(projectId, topicId); private static final TopicName topicNameEod = TopicName.of(projectId, topicIdEod); private static final ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subscriptionId); private static final ProjectSubscriptionName subscriptionEodName = ProjectSubscriptionName.of(projectId, subscriptionEodId); + private static final ProjectSubscriptionName subscriptionOptimisticName = + ProjectSubscriptionName.of(projectId, subscriptionOptimisticId); private static void requireEnvVar(String varName) { assertNotNull( @@ -163,6 +167,11 @@ public void tearDown() throws Exception { try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { subscriptionAdminClient.deleteSubscription(subscriptionName.toString()); subscriptionAdminClient.deleteSubscription(subscriptionEodName.toString()); + try { + subscriptionAdminClient.deleteSubscription(subscriptionOptimisticName.toString()); + } catch (Exception e) { + // Ignore exception. + } } try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { @@ -240,4 +249,14 @@ public void testSubscriberExactlyOnceDelivery() throws Exception { assertThat(bout.toString()).contains("Message successfully acked: " + messageId); } } + + @Test + public void testOptimisticSubscriber() throws Exception { + bout.reset(); + OptimisticSubscribeExample.optimisticSubscribeExample( + projectId, subscriptionOptimisticId, topicId); + assertThat( + bout.toString() + .contains("Created pull subscription: " + subscriptionOptimisticName.toString())); + } } From 9822675d75c2880f504fd664a2314f3ef1695adb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:09:39 +0200 Subject: [PATCH 1851/2363] test(deps): update dependency com.google.truth:truth to v1.4.3 (#2097) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test(deps): update dependency com.google.truth:truth to v1.4.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a8b0281d9984..2db6e33670e7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.4.2 + 1.4.3 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bdb85eb83fe5..708d713e7c2c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.4.2 + 1.4.3 test diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 2a16d366170f..558d6ff53517 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -56,7 +56,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.truth truth - 1.4.2 + 1.4.3 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 632adef76ca9..849271280976 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.4.2 + 1.4.3 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6e44621f643b..c9a0eb790941 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.4.2 + 1.4.3 test From b1d352c6c1fb950b9aab932fb7d7015e1255b45e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:09:47 +0200 Subject: [PATCH 1852/2363] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.10.3 (#2096) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency org.junit.vintage:junit-vintage-engine to v5.10.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 558d6ff53517..91bfe85e4c00 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -107,7 +107,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.junit.vintage junit-vintage-engine - 5.10.2 + 5.10.3 test From 3e810d8db5834972b42e95185b617b4e1dab9556 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:09:54 +0200 Subject: [PATCH 1853/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.40.1 (#2095) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-storage to v2.40.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 708d713e7c2c..667b6933618a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.40.0 + 2.40.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 849271280976..133bf05f0ed9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.40.0 + 2.40.1 From 9f9d5d501ff0adf728def603840a8d881b352eb2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:10:13 +0200 Subject: [PATCH 1854/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.1 (#2094) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2db6e33670e7..42b2ec00d4b3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.6.0 + 3.6.1 From 56966440e34db707c23f5fae3b89495d35f22a20 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:10:22 +0200 Subject: [PATCH 1855/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.41.0 (#2093) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.cloud:google-cloud-bigquery to v2.41.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 667b6933618a..c4ab3b6298a9 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.40.3 + 2.41.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 133bf05f0ed9..93f8e019f274 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.40.3 + 2.41.0 com.google.cloud From 10a291e68db7d16775373b3d3690542542065477 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:58:38 +0200 Subject: [PATCH 1856/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.131.0 (#2092) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.131.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/README.md | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 195200dba8f2..eb350d3d07b8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.130.1 + 1.131.0 ``` diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c4ab3b6298a9..4e588aeb48a5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.130.1 + 1.131.0 From 9bce765d01e6daacd0bbd7bb0102129f6b1ac004 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 1 Jul 2024 18:58:52 +0200 Subject: [PATCH 1857/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.2 (#2091) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4e588aeb48a5..13fd9af3a91c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.27.1 + 4.27.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 93f8e019f274..5bf9d6093b6c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.27.1 + 4.27.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c9a0eb790941..5f9cf65b9eb7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.27.1 + 4.27.2 From 70a3f9f1a432566113a385a016d2094447168dd8 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Tue, 2 Jul 2024 20:11:20 -0400 Subject: [PATCH 1858/2363] feat: enable hermetic library generation (#2048) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: enable hermetic library generation * fix config yaml syntax * do not map runners home folder * try dummy proto_path * use copyright update comittish * correct proto_path * update protoc * preserve pr_description * update gapic_generator_version to 2.41.0 * infer image tag from config yaml * correct workflow name * update config scripts and yamls * remove old update_googleapis_committish workflow * sync config structure with that of google-cloud-java * remove quotes from config yamls * fix typo in update_generation_config.yaml * correct * quote codeowners_team in generation config * update generator version * fix library info * retrigger jobs * fix path to hermetic_library_generation * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fixes to hermetic_library_generation --------- Co-authored-by: Owl Bot --- .../{.OwlBot.yaml => .OwlBot-hermetic.yaml} | 0 .../scripts/hermetic_library_generation.sh | 117 +++++++++++++++++ .../scripts/update_generation_config.sh | 121 ++++++++++++++++++ .../hermetic_library_generation.yaml | 40 ++++++ .../workflows/update_generation_config.yaml | 42 ++++++ java-pubsub/generation_config.yaml | 23 ++++ 6 files changed, 343 insertions(+) rename java-pubsub/.github/{.OwlBot.yaml => .OwlBot-hermetic.yaml} (100%) create mode 100644 java-pubsub/.github/scripts/hermetic_library_generation.sh create mode 100644 java-pubsub/.github/scripts/update_generation_config.sh create mode 100644 java-pubsub/.github/workflows/hermetic_library_generation.yaml create mode 100644 java-pubsub/.github/workflows/update_generation_config.yaml create mode 100644 java-pubsub/generation_config.yaml diff --git a/java-pubsub/.github/.OwlBot.yaml b/java-pubsub/.github/.OwlBot-hermetic.yaml similarity index 100% rename from java-pubsub/.github/.OwlBot.yaml rename to java-pubsub/.github/.OwlBot-hermetic.yaml diff --git a/java-pubsub/.github/scripts/hermetic_library_generation.sh b/java-pubsub/.github/scripts/hermetic_library_generation.sh new file mode 100644 index 000000000000..6c3f22d8f9e7 --- /dev/null +++ b/java-pubsub/.github/scripts/hermetic_library_generation.sh @@ -0,0 +1,117 @@ +#!/bin/bash +set -e +# This script should be run at the root of the repository. +# This script is used to, when a pull request changes the generation +# configuration (generation_config.yaml by default): +# 1. Find whether the last commit in this pull request contains changes to +# the generation configuration and exit early if it doesn't have such a change +# since the generation result would be the same. +# 2. Compare generation configurations in the current branch (with which the +# pull request associated) and target branch (into which the pull request is +# merged); +# 3. Generate changed libraries using library_generation image; +# 4. Commit the changes to the pull request, if any. +# 5. Edit the PR body with generated pull request description, if applicable. + +# The following commands need to be installed before running the script: +# 1. git +# 2. gh +# 3. docker + +# The parameters of this script is: +# 1. target_branch, the branch into which the pull request is merged. +# 2. current_branch, the branch with which the pull request is associated. +# 3. [optional] generation_config, the path to the generation configuration, +# the default value is generation_config.yaml in the repository root. +while [[ $# -gt 0 ]]; do +key="$1" +case "${key}" in + --target_branch) + target_branch="$2" + shift + ;; + --current_branch) + current_branch="$2" + shift + ;; + --generation_config) + generation_config="$2" + shift + ;; + *) + echo "Invalid option: [$1]" + exit 1 + ;; +esac +shift +done + +if [ -z "${target_branch}" ]; then + echo "missing required argument --target_branch" + exit 1 +fi + +if [ -z "${current_branch}" ]; then + echo "missing required argument --current_branch" + exit 1 +fi + +if [ -z "${generation_config}" ]; then + generation_config=generation_config.yaml + echo "Using default generation config: ${generation_config}" +fi + +workspace_name="/workspace" +baseline_generation_config="baseline_generation_config.yaml" +message="chore: generate libraries at $(date)" + +git checkout "${target_branch}" +git checkout "${current_branch}" +# if the last commit doesn't contain changes to generation configuration, +# do not generate again as the result will be the same. +change_of_last_commit="$(git diff-tree --no-commit-id --name-only HEAD~1..HEAD -r)" +if [[ ! ("${change_of_last_commit}" == *"${generation_config}"*) ]]; then + echo "The last commit doesn't contain any changes to the generation_config.yaml, skipping the whole generation process." || true + exit 0 +fi +# copy generation configuration from target branch to current branch. +git show "${target_branch}":"${generation_config}" > "${baseline_generation_config}" +config_diff=$(diff "${generation_config}" "${baseline_generation_config}" || true) + +# parse image tag from the generation configuration. +image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) + +# run hermetic code generation docker image. +docker run \ + --rm \ + -u "$(id -u):$(id -g)" \ + -v "$(pwd):${workspace_name}" \ + gcr.io/cloud-devrel-public-resources/java-library-generation:"${image_tag}" \ + --baseline-generation-config-path="${workspace_name}/${baseline_generation_config}" \ + --current-generation-config-path="${workspace_name}/${generation_config}" + + +# commit the change to the pull request. +if [[ $(basename $(pwd)) == "google-cloud-java" ]]; then + git add java-* pom.xml gapic-libraries-bom/pom.xml versions.txt +else + # The image leaves intermediate folders and files it works with. Here we remove them + rm -rdf output googleapis "${baseline_generation_config}" + git add --all -- ':!pr_description.txt' +fi +changed_files=$(git diff --cached --name-only) +if [[ "${changed_files}" == "" ]]; then + echo "There is no generated code change with the generation config change ${config_diff}." + echo "Skip committing to the pull request." + exit 0 +fi + +echo "Configuration diff:" +echo "${config_diff}" +git commit -m "${message}" +git push +# set pr body if pr_description.txt is generated. +if [[ -f "pr_description.txt" ]]; then + pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") + gh pr edit "${pr_num}" --body "$(cat pr_description.txt)" +fi diff --git a/java-pubsub/.github/scripts/update_generation_config.sh b/java-pubsub/.github/scripts/update_generation_config.sh new file mode 100644 index 000000000000..561a313040f3 --- /dev/null +++ b/java-pubsub/.github/scripts/update_generation_config.sh @@ -0,0 +1,121 @@ +#!/bin/bash +set -e +# This script should be run at the root of the repository. +# This script is used to update googleapis_commitish, gapic_generator_version, +# and libraries_bom_version in generation configuration at the time of running +# and create a pull request. + +# The following commands need to be installed before running the script: +# 1. git +# 2. gh +# 3. jq + +# Utility functions +# Get the latest released version of a Maven artifact. +function get_latest_released_version() { + local group_id=$1 + local artifact_id=$2 + latest=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json" | jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' | sort -V | tail -n 1) + echo "${latest}" +} + +# Update a key to a new value in the generation config. +function update_config() { + local key_word=$1 + local new_value=$2 + local file=$3 + echo "Update ${key_word} to ${new_value} in ${file}" + sed -i -e "s/^${key_word}.*$/${key_word}: ${new_value}/" "${file}" +} + +# The parameters of this script is: +# 1. base_branch, the base branch of the result pull request. +# 2. repo, organization/repo-name, e.g., googleapis/google-cloud-java +# 3. [optional] generation_config, the path to the generation configuration, +# the default value is generation_config.yaml in the repository root. +while [[ $# -gt 0 ]]; do +key="$1" +case "${key}" in + --base_branch) + base_branch="$2" + shift + ;; + --repo) + repo="$2" + shift + ;; + --generation_config) + generation_config="$2" + shift + ;; + *) + echo "Invalid option: [$1]" + exit 1 + ;; +esac +shift +done + +if [ -z "${base_branch}" ]; then + echo "missing required argument --base_branch" + exit 1 +fi + +if [ -z "${repo}" ]; then + echo "missing required argument --repo" + exit 1 +fi + +if [ -z "${generation_config}" ]; then + generation_config="generation_config.yaml" + echo "Use default generation config: ${generation_config}" +fi + +current_branch="generate-libraries-${base_branch}" +title="chore: Update generation configuration at $(date)" + +# try to find a open pull request associated with the branch +pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") +# create a branch if there's no open pull request associated with the +# branch; otherwise checkout the pull request. +if [ -z "${pr_num}" ]; then + git checkout -b "${current_branch}" +else + gh pr checkout "${pr_num}" +fi + +mkdir tmp-googleapis +# use partial clone because only commit history is needed. +git clone --filter=blob:none https://github.com/googleapis/googleapis.git tmp-googleapis +pushd tmp-googleapis +git pull +latest_commit=$(git rev-parse HEAD) +popd +rm -rf tmp-googleapis +update_config "googleapis_commitish" "${latest_commit}" "${generation_config}" + +# update gapic-generator-java version to the latest +latest_version=$(get_latest_released_version "com.google.api" "gapic-generator-java") +update_config "gapic_generator_version" "${latest_version}" "${generation_config}" + +# update libraries-bom version to the latest +latest_version=$(get_latest_released_version "com.google.cloud" "libraries-bom") +update_config "libraries_bom_version" "${latest_version}" "${generation_config}" + +git add "${generation_config}" +changed_files=$(git diff --cached --name-only) +if [[ "${changed_files}" == "" ]]; then + echo "The latest generation config is not changed." + echo "Skip committing to the pull request." + exit 0 +fi +git commit -m "${title}" +if [ -z "${pr_num}" ]; then + git remote add remote_repo https://cloud-java-bot:"${GH_TOKEN}@github.com/${repo}.git" + git fetch -q --unshallow remote_repo + git push -f remote_repo "${current_branch}" + gh pr create --title "${title}" --head "${current_branch}" --body "${title}" --base "${base_branch}" +else + git push + gh pr edit "${pr_num}" --title "${title}" --body "${title}" +fi diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml new file mode 100644 index 000000000000..7146cc3dc1ca --- /dev/null +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -0,0 +1,40 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# GitHub action job to test core java library features on +# downstream client libraries before they are released. +name: Hermetic library generation upon generation config change through pull requests +on: + pull_request: + +jobs: + library_generation: + # skip pull requests coming from a forked repository + if: github.event.pull_request.head.repo.full_name == github.repository + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + - name: Generate changed libraries + shell: bash + run: | + set -x + [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" + [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" + bash .github/scripts/hermetic_library_generation.sh \ + --target_branch ${{ github.base_ref }} \ + --current_branch ${{ github.head_ref }} + env: + GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml new file mode 100644 index 000000000000..3cf773992644 --- /dev/null +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -0,0 +1,42 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# GitHub action job to test core java library features on +# downstream client libraries before they are released. +name: Update generation configuration +on: + schedule: + - cron: '0 2 * * *' + workflow_dispatch: + +jobs: + update-generation-config: + runs-on: ubuntu-22.04 + env: + # the branch into which the pull request is merged + base_branch: main + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + - name: Update params in generation config to latest + shell: bash + run: | + set -x + [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" + [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" + bash .github/scripts/update_generation_config.sh \ + --base_branch "${base_branch}"\ + --repo ${{ github.repository }} + env: + GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml new file mode 100644 index 000000000000..e7b53b6d9b55 --- /dev/null +++ b/java-pubsub/generation_config.yaml @@ -0,0 +1,23 @@ +gapic_generator_version: 2.42.0 +googleapis_commitish: 6f289d775912966eb0cf04bda91e5e355c998d30 +libraries_bom_version: 26.38.0 +libraries: + - api_shortname: pubsub + name_pretty: Cloud Pub/Sub + api_reference: https://cloud.google.com/pubsub/ + product_documentation: https://cloud.google.com/pubsub/docs/ + client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history + api_description: is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications. + issue_tracker: https://issuetracker.google.com/savedsearches/559741 + release_level: stable + language: java + repo: googleapis/java-pubsub + repo_short: java-pubsub + distribution_name: com.google.cloud:google-cloud-pubsub + codeowner_team: '@googleapis/api-pubsub' + api_id: pubsub.googleapis.com + library_type: GAPIC_COMBO + requires_billing: true + recommended_package: com.google.cloud.pubsub.v1 + GAPICs: + - proto_path: google/pubsub/v1 From 3d7c1220e479e2e4e38aa55d091ef31d6da477e6 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:15:07 -0400 Subject: [PATCH 1859/2363] chore: Update generation configuration at Fri Jul 5 02:16:12 UTC 2024 (#2103) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Update generation configuration at Wed Jul 3 00:13:55 UTC 2024 * chore: generate libraries at Wed Jul 3 00:14:23 UTC 2024 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update generation configuration at Thu Jul 4 02:16:36 UTC 2024 * chore: generate libraries at Thu Jul 4 02:16:59 UTC 2024 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update generation configuration at Fri Jul 5 02:16:12 UTC 2024 * chore: generate libraries at Fri Jul 5 02:16:34 UTC 2024 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-pubsub/.repo-metadata.json | 9 +++++---- java-pubsub/README.md | 4 ++++ java-pubsub/generation_config.yaml | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index f30706ceb7ba..0c8364b051b4 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -1,19 +1,20 @@ { "api_shortname": "pubsub", "name_pretty": "Cloud Pub/Sub", - "api_reference": "https://cloud.google.com/pubsub/", "product_documentation": "https://cloud.google.com/pubsub/docs/", - "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history", "api_description": "is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications.", - "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history", "release_level": "stable", + "transport": "both", "language": "java", "repo": "googleapis/java-pubsub", "repo_short": "java-pubsub", "distribution_name": "com.google.cloud:google-cloud-pubsub", - "codeowner_team": "@googleapis/api-pubsub", "api_id": "pubsub.googleapis.com", "library_type": "GAPIC_COMBO", "requires_billing": true, + "api_reference": "https://cloud.google.com/pubsub/", + "codeowner_team": "@googleapis/api-pubsub", + "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", "recommended_package": "com.google.cloud.pubsub.v1" } \ No newline at end of file diff --git a/java-pubsub/README.md b/java-pubsub/README.md index eb350d3d07b8..b446529b4ba8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -320,6 +320,10 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. +## Transport + +Cloud Pub/Sub uses both gRPC and HTTP/JSON for the transport layer. + ## Supported Java Versions Java 8 or above is required for using this client. diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index e7b53b6d9b55..7f9f93bd9cef 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.42.0 -googleapis_commitish: 6f289d775912966eb0cf04bda91e5e355c998d30 -libraries_bom_version: 26.38.0 +googleapis_commitish: 7976ffadc0f21ee9149708c0c97ef000e15de1eb +libraries_bom_version: 26.42.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 4f30be3f806446d533b3a0e4ee72c0a95aa7ef62 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 8 Jul 2024 12:57:50 -0400 Subject: [PATCH 1860/2363] chore: make the owlbot postprocessor check non-required (#2104) We will soon disable the Owlbot postprocessor. This is part of the effort to enable hermetic generation in this repo ([context](https://docs.google.com/document/d/1wrpyBtphdenM3BNelcnpBKGADYrGJUo686HXvSA0h-0/edit?pli=1&tab=t.0#bookmark=kix.914gcjvdwt3u)) --- java-pubsub/.github/sync-repo-settings.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 875095277335..80d26801c525 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -15,7 +15,6 @@ branchProtectionRules: - units (11) - 'Kokoro - Test: Integration' - cla/google - - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc @@ -34,7 +33,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - pattern: java7 isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -50,7 +48,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - pattern: 1.114.x isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -66,7 +63,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - pattern: 1.116.x isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -82,7 +78,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - pattern: 1.117.x isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -98,7 +93,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - pattern: 1.120.x isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -114,7 +108,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - pattern: 1.121.x @@ -132,7 +125,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - pattern: 1.123.x @@ -149,7 +141,6 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - Kokoro - Against Pub/Sub Lite samples - cla/google - - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - pattern: 1.125.x @@ -165,7 +156,6 @@ branchProtectionRules: - units (11) - 'Kokoro - Test: Integration' - cla/google - - OwlBot Post Processor - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc From f9877725bae6e31f2b3bbfe10714d19f470444af Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 8 Jul 2024 13:00:31 -0400 Subject: [PATCH 1861/2363] chore: disable the Owl Bot post-processor (#2102) --- java-pubsub/.github/.OwlBot.lock.yaml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 java-pubsub/.github/.OwlBot.lock.yaml diff --git a/java-pubsub/.github/.OwlBot.lock.yaml b/java-pubsub/.github/.OwlBot.lock.yaml deleted file mode 100644 index 359fe71c1964..000000000000 --- a/java-pubsub/.github/.OwlBot.lock.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2024 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:72f0d373307d128b2cb720c5cb4d90b31f0e86529dd138c632710ae0c69efae3 -# created: 2024-06-05T18:32:21.724930324Z From de00b006b6a1ec2b16d25e5720a448d64d16187e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 8 Jul 2024 23:09:52 +0200 Subject: [PATCH 1862/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.43.0 (#2107) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index 91bfe85e4c00..c182ae0b9fcf 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -30,7 +30,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> com.google.cloud libraries-bom - 26.42.0 + 26.43.0 pom import diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5f9cf65b9eb7..5d4261825c46 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.42.0 + 26.43.0 pom import From 740e65dbcd7e811949df63e624724da073dc45bc Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:44:54 -0400 Subject: [PATCH 1863/2363] chore: Update generation configuration at Wed Jul 10 02:17:03 UTC 2024 (#2109) * chore: Update generation configuration at Tue Jul 9 02:17:13 UTC 2024 * chore: Update generation configuration at Wed Jul 10 02:17:03 UTC 2024 * chore: generate libraries at Wed Jul 10 02:17:23 UTC 2024 --- java-pubsub/README.md | 4 ++-- java-pubsub/generation_config.yaml | 4 ++-- java-pubsub/renovate.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b446529b4ba8..6166c789334a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.42.0 + 26.43.0 pom import @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.42.0') +implementation platform('com.google.cloud:libraries-bom:26.43.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 7f9f93bd9cef..c644ddddee42 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.42.0 -googleapis_commitish: 7976ffadc0f21ee9149708c0c97ef000e15de1eb -libraries_bom_version: 26.42.0 +googleapis_commitish: 3ce84c2ca3f3e453e62bbb9bffb62f3f8ec3f016 +libraries_bom_version: 26.43.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 58c97664ecce..df71c3b5aa72 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -20,7 +20,7 @@ "customManagers": [ { "customType": "regex", - "fileMatch": [ + "fileMatch": [ "^.kokoro/presubmit/graalvm-native.*.cfg$" ], "matchStrings": ["value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\""], @@ -30,7 +30,7 @@ { "customType": "regex", "fileMatch": [ - "^.github/workflows/unmanaged_dependency_check.yaml$" + "^.github/workflows/unmanaged_dependency_check.yaml$" ], "matchStrings": ["uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?.+?)\\n"], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", From 6c547160981097dddcbf2d8ed58fcacd879e1d15 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 12 Jul 2024 09:10:11 -0400 Subject: [PATCH 1864/2363] chore: Update generation configuration at Thu Jul 11 02:18:01 UTC 2024 (#2112) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index c644ddddee42..c98375b66b15 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.42.0 -googleapis_commitish: 3ce84c2ca3f3e453e62bbb9bffb62f3f8ec3f016 +googleapis_commitish: 19577edb4d439db98d2fb1f6f48f2e1b29fba099 libraries_bom_version: 26.43.0 libraries: - api_shortname: pubsub From 87ed02a08b1e59f7ab374c5d123ac640fa70d73e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 15 Jul 2024 17:55:00 +0200 Subject: [PATCH 1865/2363] build(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.3.1 (#2111) --- java-pubsub/samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml index c182ae0b9fcf..6f6f56c0f4a3 100644 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ b/java-pubsub/samples/native-image-sample/pom.xml @@ -124,7 +124,7 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - 3.3.0 + 3.3.1 **/*IT From 9b0552aa8f98eed42872f9dba40f3d25b8495704 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Mon, 15 Jul 2024 12:52:25 -0400 Subject: [PATCH 1866/2363] chore: remove native image sample in favor of sample hosted in google-cloud-java (#2105) * chore: remove native image sample in favor of sample hosted in google-cloud-java --- java-pubsub/README.md | 2 - .../samples/native-image-sample/README.md | 77 ---- .../samples/native-image-sample/pom.xml | 169 -------- .../java/pubsub/NativeImagePubSubSample.java | 385 ------------------ .../java/utilities/PublishOperations.java | 159 -------- .../pubsub/NativeImagePubSubSampleIT.java | 139 ------- java-pubsub/samples/pom.xml | 1 - 7 files changed, 932 deletions(-) delete mode 100644 java-pubsub/samples/native-image-sample/README.md delete mode 100644 java-pubsub/samples/native-image-sample/pom.xml delete mode 100644 java-pubsub/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java delete mode 100644 java-pubsub/samples/native-image-sample/src/main/java/utilities/PublishOperations.java delete mode 100644 java-pubsub/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6166c789334a..7bba02421eaf 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -242,8 +242,6 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Native Image Pub Sub Sample | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java) | -| Publish Operations | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/native-image-sample/src/main/java/utilities/PublishOperations.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/native-image-sample/src/main/java/utilities/PublishOperations.java) | | Commit Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java) | | Commit Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | | Create Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | diff --git a/java-pubsub/samples/native-image-sample/README.md b/java-pubsub/samples/native-image-sample/README.md deleted file mode 100644 index 5f0cd31e9fab..000000000000 --- a/java-pubsub/samples/native-image-sample/README.md +++ /dev/null @@ -1,77 +0,0 @@ -# Pub/Sub Sample Application with Native Image - -The Pub/Sub sample application demonstrates some common operations with Pub/Sub and is compatible with Native Image compilation. - -## Setup Instructions - -You will need to follow these prerequisite steps in order to run the samples: - -1. If you have not already, [create a Google Cloud Platform Project](https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project). - -2. Install the [Google Cloud SDK](https://cloud.google.com/sdk/) which will allow you to run the sample with your project's credentials. - - Once installed, log in with Application Default Credentials using the following command: - - ``` - gcloud auth application-default login - ``` - - **Note:** Authenticating with Application Default Credentials is convenient to use during development, but we recommend [alternate methods of authentication](https://cloud.google.com/docs/authentication/production) during production use. - -3. Install the native image compiler. - - You can follow the [official installation instructions](https://www.graalvm.org/docs/getting-started/#install-graalvm). - After following the instructions, ensure that you install the native image extension installed by running: - - ``` - gu install native-image - ``` - - Once you finish following the instructions, verify that the default version of Java is set to the correct version by running `java -version` in a terminal. - - You will see something similar to the below output: - - ``` - $ java -version - - openjdk version "17.0.3" 2022-04-19 - OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06) - OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing) - ``` - -4. [Enable the Pub/Sub APIs](https://console.cloud.google.com/apis/api/pubsub.googleapis.com). - -### Sample - -Navigate to this directory in a new terminal. - -1. Compile the application using the Native Image Compiler. This step may take a few minutes. - - ``` - mvn package -P native -DskipTests - ``` - -2. Run the application: - - ``` - ./target/native-image-sample - ``` - -3. The application will create a new Pub/Sub topic, send and receive a message from it, and then delete the topic. - - ``` - Created topic: projects/YOUR_PROJECT_ID/topics/graal-pubsub-test-00e72640-4e36-4aff-84d2-13b7569b2289 under project: YOUR_PROJECT_ID - Created pull subscription: projects/YOUR_PROJECT_ID/subscriptions/graal-pubsub-test-sub2fb5e3f3-cb26-439b-b88c-9cb0cfca9e45 - Published message with ID: 457327433078420 - Received Payload: Pub/Sub Native Image Test published message at timestamp: 2020-09-23T19:45:42.746514Z - Deleted topic projects/YOUR_PROJECT_ID/topics/graal-pubsub-test-00e72640-4e36-4aff-84d2-13b7569b2289 - Deleted subscription projects/YOUR_PROJECT_ID/subscriptions/graal-pubsub-test-sub2fb5e3f3-cb26-439b-b88c-9cb0cfca9e45 - ``` - -## Sample Integration Test with native Image Support - -In order to run the sample integration test as a native image, call the following command: - - ``` - mvn test -Pnative - ``` diff --git a/java-pubsub/samples/native-image-sample/pom.xml b/java-pubsub/samples/native-image-sample/pom.xml deleted file mode 100644 index 6f6f56c0f4a3..000000000000 --- a/java-pubsub/samples/native-image-sample/pom.xml +++ /dev/null @@ -1,169 +0,0 @@ - - - 4.0.0 - com.google.cloud - native-image-sample - Native Image Sample - https://github.com/googleapis/java-pubsub - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.cloud - libraries-bom - 26.43.0 - pom - import - - - - - - - com.google.cloud - google-cloud-core - - - com.google.cloud - google-cloud-pubsub - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.4.3 - test - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - true - dependency-jars/ - pubsub.NativeImagePubSubSample - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 3.7.1 - - - copy-dependencies - package - - copy-dependencies - - - - ${project.build.directory}/dependency-jars/ - - - - - - - - - - - - native - - - - org.junit.vintage - junit-vintage-engine - 5.10.3 - test - - - org.graalvm.buildtools - junit-platform-native - 0.10.2 - test - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - 3.3.1 - - - **/*IT - - - - - org.graalvm.buildtools - native-maven-plugin - 0.10.2 - true - - pubsub.NativeImagePubSubSample - - - --no-fallback - --no-server - - - - - build-native - - build - test - - package - - - test-native - - test - - test - - - - - - - - \ No newline at end of file diff --git a/java-pubsub/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java b/java-pubsub/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java deleted file mode 100644 index 2e96091a65c0..000000000000 --- a/java-pubsub/samples/native-image-sample/src/main/java/pubsub/NativeImagePubSubSample.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package pubsub; - -import com.google.api.gax.rpc.NotFoundException; -import com.google.cloud.ServiceOptions; -import com.google.cloud.pubsub.v1.AckReplyConsumer; -import com.google.cloud.pubsub.v1.MessageReceiver; -import com.google.cloud.pubsub.v1.Subscriber; -import com.google.cloud.pubsub.v1.SubscriptionAdminClient; -import com.google.cloud.pubsub.v1.TopicAdminClient; -import com.google.cloud.pubsub.v1.stub.GrpcSubscriberStub; -import com.google.cloud.pubsub.v1.stub.SubscriberStub; -import com.google.cloud.pubsub.v1.stub.SubscriberStubSettings; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.FieldMask; -import com.google.pubsub.v1.AcknowledgeRequest; -import com.google.pubsub.v1.DeadLetterPolicy; -import com.google.pubsub.v1.DetachSubscriptionRequest; -import com.google.pubsub.v1.ProjectName; -import com.google.pubsub.v1.ProjectSubscriptionName; -import com.google.pubsub.v1.ProjectTopicName; -import com.google.pubsub.v1.PubsubMessage; -import com.google.pubsub.v1.PullRequest; -import com.google.pubsub.v1.PullResponse; -import com.google.pubsub.v1.PushConfig; -import com.google.pubsub.v1.ReceivedMessage; -import com.google.pubsub.v1.Subscription; -import com.google.pubsub.v1.Topic; -import com.google.pubsub.v1.TopicName; -import com.google.pubsub.v1.UpdateSubscriptionRequest; -import java.io.IOException; -import java.time.Duration; -import java.time.Instant; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; -import utilities.PublishOperations; - -/** Pub/Sub sample application compiled with Native Image. */ -public class NativeImagePubSubSample { - - /** Driver for the Pub/Sub Sample application which publishes a message to a specified topic. */ - public static void main(String[] args) throws Exception { - Instant startTime = Instant.now(); - String projectId = ServiceOptions.getDefaultProjectId(); - - String topicId = "native-pubsub-test-" + UUID.randomUUID().toString(); - String pullSubId = "native-pubsub-test-sub" + UUID.randomUUID().toString(); - String pushSubId = "native-pubsub-test-sub" + UUID.randomUUID().toString(); - - try { - // Topic management operations - createTopic(projectId, topicId); - createPullSubscription(projectId, pullSubId, topicId); - createPushSubscription(projectId, pushSubId, topicId); - detachSubscription(projectId, pushSubId); - getTopicPolicy(projectId, topicId); - getSubscriptionPolicy(projectId, pullSubId); - listSubscriptionInProject(projectId); - listSubscriptionInTopic(projectId, topicId); - listTopics(projectId); - updateSubscriptionDeadLetterTopic(projectId, pushSubId, topicId, topicId); - testTopicPermissions(projectId, topicId); - testSubscriptionPermissions(projectId, pushSubId); - - // Publish Operations - PublishOperations.publishMessage(projectId, topicId); - PublishOperations.publishWithBatchSettings(projectId, topicId); - PublishOperations.publishWithCustomAttributes(projectId, topicId); - PublishOperations.publishWithErrorHandler(projectId, topicId); - - // Receive messages - subscribeSync(projectId, pullSubId); - receiveMessagesWithDeliveryAttempts(projectId, pullSubId); - } finally { - deleteTopic(projectId, topicId); - deleteSubscription(projectId, pullSubId); - deleteSubscription(projectId, pushSubId); - } - Instant endTime = Instant.now(); - Duration duration = Duration.between(startTime, endTime); - System.out.println("Duration: " + duration.toString()); - } - - static void createTopic(String projectId, String topicId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - Topic topic = topicAdminClient.createTopic(topicName); - System.out.println("Created topic: " + topic.getName() + " under project: " + projectId); - } - } - - static void createPullSubscription(String projectId, String subscriptionId, String topicId) - throws IOException { - - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - Subscription subscription = - subscriptionAdminClient.createSubscription( - subscriptionName, topicName, PushConfig.getDefaultInstance(), 10); - System.out.println("Created pull subscription: " + subscription.getName()); - } - } - - static void createPushSubscription(String projectId, String subscriptionId, String topicId) - throws IOException { - - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - - // Intentionally set pushEndpoint empty just to exercise API call - PushConfig pushConfig = PushConfig.newBuilder().setPushEndpoint("").build(); - - Subscription subscription = - subscriptionAdminClient.createSubscription(subscriptionName, topicName, pushConfig, 10); - System.out.println("Created push subscription: " + subscription.getName()); - } - } - - static void detachSubscription(String projectId, String subscriptionId) throws IOException { - - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - topicAdminClient.detachSubscription( - DetachSubscriptionRequest.newBuilder() - .setSubscription(subscriptionName.toString()) - .build()); - } - - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - Subscription subscription = subscriptionAdminClient.getSubscription(subscriptionName); - if (subscription.getDetached()) { - System.out.println("Subscription is detached."); - } else { - throw new RuntimeException("Subscription detachment was not successful."); - } - } - } - - static void getSubscriptionPolicy(String projectId, String subscriptionId) throws IOException { - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - GetIamPolicyRequest getIamPolicyRequest = - GetIamPolicyRequest.newBuilder().setResource(subscriptionName.toString()).build(); - Policy policy = subscriptionAdminClient.getIamPolicy(getIamPolicyRequest); - System.out.println("Subscription policy: " + policy.toString().trim()); - } - } - - static void getTopicPolicy(String projectId, String topicId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - GetIamPolicyRequest getIamPolicyRequest = - GetIamPolicyRequest.newBuilder().setResource(topicName.toString()).build(); - Policy policy = topicAdminClient.getIamPolicy(getIamPolicyRequest); - System.out.println("Topic policy: " + policy.toString().trim()); - } - } - - static void listSubscriptionInProject(String projectId) throws IOException { - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - ProjectName projectName = ProjectName.of(projectId); - int count = 0; - for (Subscription subscription : - subscriptionAdminClient.listSubscriptions(projectName).iterateAll()) { - count += 1; - } - System.out.println("Subscriptions in project count: " + count); - } - } - - static void listSubscriptionInTopic(String projectId, String topicId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - int count = 0; - for (String subscription : topicAdminClient.listTopicSubscriptions(topicName).iterateAll()) { - count += 1; - } - System.out.println("Subscriptions under topic: " + count); - } - } - - static void listTopics(String projectId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - ProjectName projectName = ProjectName.of(projectId); - int count = 0; - for (Topic topic : topicAdminClient.listTopics(projectName).iterateAll()) { - count += 1; - } - System.out.println("Topic count under project: " + count); - } - } - - static void receiveMessagesWithDeliveryAttempts(String projectId, String subscriptionId) { - - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - - // Instantiate an asynchronous message receiver. - MessageReceiver receiver = - new MessageReceiver() { - @Override - public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { - consumer.ack(); - } - }; - - Subscriber subscriber = null; - try { - subscriber = Subscriber.newBuilder(subscriptionName, receiver).build(); - // Start the subscriber. - subscriber.startAsync().awaitRunning(); - System.out.println("Successfully started an async message receiver."); - } finally { - // Shut down the subscriber after 10s. Stop receiving messages. - subscriber.stopAsync(); - } - } - - static void subscribeSync(String projectId, String subscriptionId) throws IOException { - SubscriberStubSettings subscriberStubSettings = - SubscriberStubSettings.newBuilder() - .setTransportChannelProvider( - SubscriberStubSettings.defaultGrpcTransportProviderBuilder() - .setMaxInboundMessageSize(20 * 1024 * 1024) // 20MB (maximum message size). - .build()) - .build(); - - try (SubscriberStub subscriber = GrpcSubscriberStub.create(subscriberStubSettings)) { - String subscriptionName = ProjectSubscriptionName.format(projectId, subscriptionId); - PullRequest pullRequest = - PullRequest.newBuilder().setMaxMessages(1).setSubscription(subscriptionName).build(); - - PullResponse pullResponse = subscriber.pullCallable().call(pullRequest); - List ackIds = new ArrayList<>(); - for (ReceivedMessage message : pullResponse.getReceivedMessagesList()) { - String payload = message.getMessage().getData().toStringUtf8(); - ackIds.add(message.getAckId()); - System.out.println("Received Payload: " + payload); - } - - AcknowledgeRequest acknowledgeRequest = - AcknowledgeRequest.newBuilder() - .setSubscription(subscriptionName) - .addAllAckIds(ackIds) - .build(); - - subscriber.acknowledgeCallable().call(acknowledgeRequest); - } - } - - static void updateSubscriptionDeadLetterTopic( - String projectId, String subscriptionId, String topicId, String deadLetterTopicId) - throws IOException { - - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - - TopicName topicName = TopicName.of(projectId, topicId); - TopicName deadLetterTopicName = TopicName.of(projectId, deadLetterTopicId); - - DeadLetterPolicy deadLetterPolicy = - DeadLetterPolicy.newBuilder() - .setDeadLetterTopic(deadLetterTopicName.toString()) - .setMaxDeliveryAttempts(20) - .build(); - - Subscription subscription = - Subscription.newBuilder() - .setName(subscriptionName.toString()) - .setTopic(topicName.toString()) - .setDeadLetterPolicy(deadLetterPolicy) - .build(); - - FieldMask updateMask = FieldMask.newBuilder().addPaths("dead_letter_policy").build(); - - UpdateSubscriptionRequest request = - UpdateSubscriptionRequest.newBuilder() - .setSubscription(subscription) - .setUpdateMask(updateMask) - .build(); - - Subscription response = subscriptionAdminClient.updateSubscription(request); - System.out.println("Updated subscription " + response.getName()); - } - } - - static void testSubscriptionPermissions(String projectId, String subscriptionId) - throws IOException { - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - - List permissions = new ArrayList<>(); - permissions.add("pubsub.subscriptions.consume"); - permissions.add("pubsub.subscriptions.update"); - - TestIamPermissionsRequest testIamPermissionsRequest = - TestIamPermissionsRequest.newBuilder() - .setResource(subscriptionName.toString()) - .addAllPermissions(permissions) - .build(); - - TestIamPermissionsResponse testedPermissionsResponse = - subscriptionAdminClient.testIamPermissions(testIamPermissionsRequest); - - System.out.println( - "Tested PubSub subscription permissions\n" + testedPermissionsResponse.toString().trim()); - } - } - - static void testTopicPermissions(String projectId, String topicId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); - - List permissions = new ArrayList<>(); - permissions.add("pubsub.topics.attachSubscription"); - permissions.add("pubsub.topics.publish"); - permissions.add("pubsub.topics.update"); - - TestIamPermissionsRequest testIamPermissionsRequest = - TestIamPermissionsRequest.newBuilder() - .setResource(topicName.toString()) - .addAllPermissions(permissions) - .build(); - - TestIamPermissionsResponse testedPermissionsResponse = - topicAdminClient.testIamPermissions(testIamPermissionsRequest); - - System.out.println( - "Tested topic permissions\n" + testedPermissionsResponse.toString().trim()); - } - } - - static void deleteTopic(String projectId, String topicId) throws IOException { - try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { - TopicName topicName = TopicName.of(projectId, topicId); - try { - topicAdminClient.deleteTopic(topicName); - System.out.println("Deleted topic " + topicName); - } catch (NotFoundException e) { - System.out.println(e.getMessage()); - } - } - } - - static void deleteSubscription(String projectId, String subscriptionId) throws IOException { - try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { - ProjectSubscriptionName subscriptionName = - ProjectSubscriptionName.of(projectId, subscriptionId); - try { - subscriptionAdminClient.deleteSubscription(subscriptionName); - System.out.println("Deleted subscription " + subscriptionName); - } catch (NotFoundException e) { - System.out.println(e.getMessage()); - } - } - } -} diff --git a/java-pubsub/samples/native-image-sample/src/main/java/utilities/PublishOperations.java b/java-pubsub/samples/native-image-sample/src/main/java/utilities/PublishOperations.java deleted file mode 100644 index 068312025a52..000000000000 --- a/java-pubsub/samples/native-image-sample/src/main/java/utilities/PublishOperations.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package utilities; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutureCallback; -import com.google.api.core.ApiFutures; -import com.google.api.gax.rpc.ApiException; -import com.google.cloud.pubsub.v1.Publisher; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.protobuf.ByteString; -import com.google.pubsub.v1.PubsubMessage; -import com.google.pubsub.v1.TopicName; -import java.io.IOException; -import java.time.Instant; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -import java.util.concurrent.ExecutionException; - -/** Sample methods for Publishing messages to a topic in Pub/Sub. */ -public class PublishOperations { - - public static void publishMessage(String projectId, String topicId) throws Exception { - - Publisher publisher = Publisher.newBuilder(TopicName.of(projectId, topicId)).build(); - - try { - String message = "Pub/Sub Native Image Test published message at timestamp: " + Instant.now(); - ByteString data = ByteString.copyFromUtf8(message); - PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); - - publisher.publish(pubsubMessage); - - ApiFuture messageIdFuture = publisher.publish(pubsubMessage); - String messageId = messageIdFuture.get(); - - System.out.println("Published message with ID: " + messageId); - } finally { - publisher.shutdown(); - } - } - - public static void publishWithCustomAttributes(String projectId, String topicId) - throws Exception { - - TopicName topicName = TopicName.of(projectId, topicId); - Publisher publisher = Publisher.newBuilder(topicName).build(); - - try { - String message = "first message"; - ByteString data = ByteString.copyFromUtf8(message); - PubsubMessage pubsubMessage = - PubsubMessage.newBuilder() - .setData(data) - .putAllAttributes(Collections.singletonMap("year", "2020")) - .build(); - - // Once published, returns a server-assigned message id (unique within the topic) - ApiFuture messageIdFuture = publisher.publish(pubsubMessage); - String messageId = messageIdFuture.get(); - System.out.println("Published a message with custom attributes: " + messageId); - } finally { - publisher.shutdown(); - } - } - - public static void publishWithBatchSettings(String projectId, String topicId) - throws IOException, ExecutionException, InterruptedException { - - TopicName topicName = TopicName.of(projectId, topicId); - Publisher publisher = Publisher.newBuilder(topicName).build(); - List> messageIdFutures = new ArrayList<>(); - - try { - // schedule publishing one message at a time : messages get automatically batched - for (int i = 0; i < 100; i++) { - String message = "message " + i; - ByteString data = ByteString.copyFromUtf8(message); - PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); - - // Once published, returns a server-assigned message id (unique within the topic) - ApiFuture messageIdFuture = publisher.publish(pubsubMessage); - messageIdFutures.add(messageIdFuture); - } - } finally { - // Wait on any pending publish requests. - List messageIds = ApiFutures.allAsList(messageIdFutures).get(); - System.out.println("Published " + messageIds.size() + " messages with batch settings."); - - publisher.shutdown(); - } - } - - public static void publishWithErrorHandler(String projectId, String topicId) throws IOException { - - TopicName topicName = TopicName.of(projectId, topicId); - Publisher publisher = null; - - try { - // Create a publisher instance with default settings bound to the topic - publisher = Publisher.newBuilder(topicName).build(); - - List messages = Arrays.asList("first message", "second message"); - - for (final String message : messages) { - ByteString data = ByteString.copyFromUtf8(message); - PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); - - // Once published, returns a server-assigned message id (unique within the topic) - ApiFuture future = publisher.publish(pubsubMessage); - - // Add an asynchronous callback to handle success / failure - ApiFutures.addCallback( - future, - new ApiFutureCallback() { - - @Override - public void onFailure(Throwable throwable) { - if (throwable instanceof ApiException) { - ApiException apiException = ((ApiException) throwable); - // details on the API exception - System.out.println(apiException.getStatusCode().getCode()); - System.out.println(apiException.isRetryable()); - } - System.out.println("Error publishing message : " + message); - } - - @Override - public void onSuccess(String messageId) { - // Once published, returns server-assigned message ids (unique within the topic) - System.out.println("Success Callback: Published message " + messageId); - } - }, - MoreExecutors.directExecutor()); - } - } finally { - if (publisher != null) { - // When finished with the publisher, shutdown to free up resources. - publisher.shutdown(); - } - } - } -} diff --git a/java-pubsub/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java b/java-pubsub/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java deleted file mode 100644 index c221d735ae06..000000000000 --- a/java-pubsub/samples/native-image-sample/src/test/java/pubsub/NativeImagePubSubSampleIT.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package pubsub; - -import static com.google.common.truth.Truth.assertThat; - -import com.google.cloud.ServiceOptions; -import com.google.pubsub.v1.SubscriptionName; -import com.google.pubsub.v1.TopicName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import utilities.PublishOperations; - -public class NativeImagePubSubSampleIT { - - private static String TOPIC_ID = "native-pubsub-test-" + UUID.randomUUID(); - private static String PULL_SUB_ID = "native-pubsub-test-sub" + UUID.randomUUID(); - private static String PUSH_SUB_ID = "native-pubsub-test-sub" + UUID.randomUUID(); - private static String PROJECT_ID = ServiceOptions.getDefaultProjectId(); - private static final TopicName TOPIC_NAME = TopicName.of(PROJECT_ID, TOPIC_ID); - private static final SubscriptionName PULL_SUBSCRIPTION_NAME = - SubscriptionName.of(PROJECT_ID, PULL_SUB_ID); - private static final SubscriptionName PUSH_SUBSCRIPTION_NAME = - SubscriptionName.of(PROJECT_ID, PUSH_SUB_ID); - - private ByteArrayOutputStream bout; - private PrintStream out; - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - System.setOut(out); - } - - @After - public void cleanUp() throws IOException { - NativeImagePubSubSample.deleteTopic(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.deleteSubscription(PROJECT_ID, PULL_SUB_ID); - NativeImagePubSubSample.deleteSubscription(PROJECT_ID, PUSH_SUB_ID); - } - - @Test - public void testRunTopicManagementOperations() throws IOException { - // Topic management operations - NativeImagePubSubSample.createTopic(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.createPullSubscription(PROJECT_ID, PULL_SUB_ID, TOPIC_ID); - NativeImagePubSubSample.createPushSubscription(PROJECT_ID, PUSH_SUB_ID, TOPIC_ID); - NativeImagePubSubSample.detachSubscription(PROJECT_ID, PUSH_SUB_ID); - NativeImagePubSubSample.getTopicPolicy(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.getSubscriptionPolicy(PROJECT_ID, PULL_SUB_ID); - NativeImagePubSubSample.listSubscriptionInProject(PROJECT_ID); - NativeImagePubSubSample.listSubscriptionInTopic(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.listTopics(PROJECT_ID); - NativeImagePubSubSample.updateSubscriptionDeadLetterTopic( - PROJECT_ID, PUSH_SUB_ID, TOPIC_ID, TOPIC_ID); - NativeImagePubSubSample.testTopicPermissions(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.testSubscriptionPermissions(PROJECT_ID, PUSH_SUB_ID); - - // Verify create topic and subscriptions - assertThat(bout.toString()) - .contains("Created topic: " + TOPIC_NAME.toString() + " under project: " + PROJECT_ID); - assertThat(bout.toString()) - .contains("Created pull subscription: " + PULL_SUBSCRIPTION_NAME.toString()); - assertThat(bout.toString()) - .contains("Created push subscription: " + PUSH_SUBSCRIPTION_NAME.toString()); - - // Verify detach subscription - assertThat(bout.toString()).contains("Subscription is detached"); - - // Verify topic and subscription IAM policy - assertThat(bout.toString()).contains("Topic policy: etag: \"\\000 \\001"); - assertThat(bout.toString()).contains("Subscription policy: etag: \"\\000 \\001\""); - - // Verify listing of subscriptions and topics - assertThat(bout.toString()).contains("Subscriptions in project count:"); - assertThat(bout.toString()).contains("Subscriptions under topic:"); - assertThat(bout.toString()).contains("Topic count under project:"); - - // Verify update of subscription - assertThat(bout.toString()).contains("Updated subscription " + PUSH_SUBSCRIPTION_NAME); - - // Verify topic permissions - assertThat(bout.toString()).contains("Tested topic permissions"); - assertThat(bout.toString()).contains("permissions: \"pubsub.topics.attachSubscription\""); - assertThat(bout.toString()).contains("permissions: \"pubsub.topics.publish\""); - assertThat(bout.toString()).contains("permissions: \"pubsub.topics.update\""); - - // Verify subscription permissions - assertThat(bout.toString()).contains("Tested PubSub subscription permissions"); - assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.consume\""); - assertThat(bout.toString()).contains("permissions: \"pubsub.subscriptions.update\""); - } - - @Test - public void testPublishAndSubscribe() throws Exception { - NativeImagePubSubSample.createTopic(PROJECT_ID, TOPIC_ID); - NativeImagePubSubSample.createPullSubscription(PROJECT_ID, PULL_SUB_ID, TOPIC_ID); - - bout.reset(); - - // Publish - PublishOperations.publishMessage(PROJECT_ID, TOPIC_ID); - PublishOperations.publishWithBatchSettings(PROJECT_ID, TOPIC_ID); - PublishOperations.publishWithCustomAttributes(PROJECT_ID, TOPIC_ID); - PublishOperations.publishWithErrorHandler(PROJECT_ID, TOPIC_ID); - - // Subscribe - NativeImagePubSubSample.subscribeSync(PROJECT_ID, PULL_SUB_ID); - NativeImagePubSubSample.receiveMessagesWithDeliveryAttempts(PROJECT_ID, PULL_SUB_ID); - - assertThat(bout.toString()).contains("Published message with ID"); - assertThat(bout.toString()).contains("Published 100 messages with batch settings."); - assertThat(bout.toString()).contains("Published a message with custom attributes"); - assertThat(bout.toString()).contains("Success Callback: Published message"); - assertThat(bout.toString()).contains("Success Callback: Published message"); - assertThat(bout.toString()).contains("Received Payload"); - assertThat(bout.toString()).contains("Successfully started an async message receiver"); - } -} diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 6d05e41e2adb..3f092679cb5f 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -46,7 +46,6 @@ install-without-bom snapshot snippets - native-image-sample From 4ba9e09cb1a1c93de07914c1222e14084ea330d0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 15 Jul 2024 19:42:36 +0200 Subject: [PATCH 1867/2363] test(deps): update dependency com.google.truth:truth to v1.4.4 (#2114) --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 42b2ec00d4b3..e9042b5c447f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.4.3 + 1.4.4 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 13fd9af3a91c..591ff0ee5f7d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.4.3 + 1.4.4 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5bf9d6093b6c..4bb65df74498 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.4.3 + 1.4.4 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5d4261825c46..b15119c883a8 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -92,7 +92,7 @@ com.google.truth truth - 1.4.3 + 1.4.4 test From c9e722b1e27679248f13c043ff5327b9981855fe Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 16 Jul 2024 21:05:06 +0200 Subject: [PATCH 1868/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.2 (#2115) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e9042b5c447f..4ecd37b68e20 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.6.1 + 3.6.2 From 885534d3aea2c35277ca8e3002adad7aa3ffdca0 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 23 Jul 2024 14:00:18 -0400 Subject: [PATCH 1869/2363] chore: Update generation configuration at Tue Jul 23 02:17:28 UTC 2024 (#2118) * chore: Update generation configuration at Tue Jul 23 02:17:28 UTC 2024 * chore: generate libraries at Tue Jul 23 02:17:50 UTC 2024 --- java-pubsub/generation_config.yaml | 2 +- .../google/pubsub/v1/CloudStorageConfig.java | 117 ++++- .../v1/CloudStorageConfigOrBuilder.java | 14 + .../com/google/pubsub/v1/PubsubProto.java | 430 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 4 + 7 files changed, 347 insertions(+), 230 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index c98375b66b15..ba697aea4507 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.42.0 -googleapis_commitish: 19577edb4d439db98d2fb1f6f48f2e1b29fba099 +googleapis_commitish: d44c3001960c430bc60ac1e1736cebfd8fd45e77 libraries_bom_version: 26.43.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index f847f91d63c7..69560d392b9a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -1865,6 +1865,25 @@ public long getMaxBytes() { return maxBytes_; } + public static final int MAX_MESSAGES_FIELD_NUMBER = 8; + private long maxMessages_ = 0L; + /** + * + * + *
    +   * Optional. The maximum number of messages that can be written to a Cloud
    +   * Storage file before a new file is created. Min 1000 messages.
    +   * 
    + * + * int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxMessages. + */ + @java.lang.Override + public long getMaxMessages() { + return maxMessages_; + } + public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; /** @@ -2002,6 +2021,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxBytes_ != 0L) { output.writeInt64(7, maxBytes_); } + if (maxMessages_ != 0L) { + output.writeInt64(8, maxMessages_); + } if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } @@ -2045,6 +2067,9 @@ public int getSerializedSize() { if (maxBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxBytes_); } + if (maxMessages_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, maxMessages_); + } if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } @@ -2078,6 +2103,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMaxDuration().equals(other.getMaxDuration())) return false; } if (getMaxBytes() != other.getMaxBytes()) return false; + if (getMaxMessages() != other.getMaxMessages()) return false; if (state_ != other.state_) return false; if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getOutputFormatCase().equals(other.getOutputFormatCase())) return false; @@ -2116,6 +2142,8 @@ public int hashCode() { } hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBytes()); + hash = (37 * hash) + MAX_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxMessages()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; @@ -2296,6 +2324,7 @@ public Builder clear() { maxDurationBuilder_ = null; } maxBytes_ = 0L; + maxMessages_ = 0L; state_ = 0; serviceAccountEmail_ = ""; outputFormatCase_ = 0; @@ -2359,9 +2388,12 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) { result.maxBytes_ = maxBytes_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.state_ = state_; + result.maxMessages_ = maxMessages_; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.serviceAccountEmail_ = serviceAccountEmail_; } result.bitField0_ |= to_bitField0_; @@ -2449,12 +2481,15 @@ public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig other) { if (other.getMaxBytes() != 0L) { setMaxBytes(other.getMaxBytes()); } + if (other.getMaxMessages() != 0L) { + setMaxMessages(other.getMaxMessages()); + } if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (!other.getServiceAccountEmail().isEmpty()) { serviceAccountEmail_ = other.serviceAccountEmail_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } switch (other.getOutputFormatCase()) { @@ -2541,10 +2576,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 56 + case 64: + { + maxMessages_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 64 case 72: { state_ = input.readEnum(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 72 case 82: @@ -2556,7 +2597,7 @@ public Builder mergeFrom( case 90: { serviceAccountEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 90 default: @@ -3801,6 +3842,62 @@ public Builder clearMaxBytes() { return this; } + private long maxMessages_; + /** + * + * + *
    +     * Optional. The maximum number of messages that can be written to a Cloud
    +     * Storage file before a new file is created. Min 1000 messages.
    +     * 
    + * + * int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxMessages. + */ + @java.lang.Override + public long getMaxMessages() { + return maxMessages_; + } + /** + * + * + *
    +     * Optional. The maximum number of messages that can be written to a Cloud
    +     * Storage file before a new file is created. Min 1000 messages.
    +     * 
    + * + * int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxMessages to set. + * @return This builder for chaining. + */ + public Builder setMaxMessages(long value) { + + maxMessages_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The maximum number of messages that can be written to a Cloud
    +     * Storage file before a new file is created. Min 1000 messages.
    +     * 
    + * + * int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxMessages() { + bitField0_ = (bitField0_ & ~0x00000100); + maxMessages_ = 0L; + onChanged(); + return this; + } + private int state_ = 0; /** * @@ -3837,7 +3934,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3880,7 +3977,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; state_ = value.getNumber(); onChanged(); return this; @@ -3900,7 +3997,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); state_ = 0; onChanged(); return this; @@ -3983,7 +4080,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { throw new NullPointerException(); } serviceAccountEmail_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4005,7 +4102,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { */ public Builder clearServiceAccountEmail() { serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4032,7 +4129,7 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); serviceAccountEmail_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 11d3fa787f2f..22e01385e914 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -287,6 +287,20 @@ public interface CloudStorageConfigOrBuilder */ long getMaxBytes(); + /** + * + * + *
    +   * Optional. The maximum number of messages that can be written to a Cloud
    +   * Storage file before a new file is created. Min 1000 messages.
    +   * 
    + * + * int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxMessages. + */ + long getMaxMessages(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index a80aaa209a7b..f0d1612a33bb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -427,7 +427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" + "T_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRA" - + "NSIT_LOCATION_RESTRICTION\020\005\"\316\005\n\022CloudSto" + + "NSIT_LOCATION_RESTRICTION\020\005\"\351\005\n\022CloudSto" + "rageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filen" + "ame_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix" + "\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_format\030" @@ -437,222 +437,223 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "bsub.v1.CloudStorageConfig.AvroConfigB\003\340" + "A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google.prot" + "obuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340" - + "A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1.Clo" - + "udStorageConfig.StateB\003\340A\003\022\"\n\025service_ac" - + "count_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\n" - + "AvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\022" - + "\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021P" - + "ERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_" - + "TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n\017SCHEMA" - + "_MISMATCH\020\005B\017\n\routput_format\"|\n\017Received" - + "Message\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030" - + "\002 \001(\0132\037.google.pubsub.v1.PubsubMessageB\003" - + "\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026Ge" - + "tSubscriptionRequest\022@\n\014subscription\030\001 \001" + + "A\001\022\031\n\014max_messages\030\010 \001(\003B\003\340A\001\022>\n\005state\030\t" + + " \001(\0162*.google.pubsub.v1.CloudStorageConf" + + "ig.StateB\003\340A\003\022\"\n\025service_account_email\030\013" + + " \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\nAvroConfig\022\033\n" + + "\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use_topic_" + + "schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DEN" + + "IED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCAT" + + "ION_RESTRICTION\020\004\022\023\n\017SCHEMA_MISMATCH\020\005B\017" + + "\n\routput_format\"|\n\017ReceivedMessage\022\023\n\006ac" + + "k_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.googl" + + "e.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n\020delive" + + "ry_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscription" + + "Request\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"p" + + "ubsub.googleapis.com/Subscription\"\214\001\n\031Up" + + "dateSubscriptionRequest\0229\n\014subscription\030" + + "\001 \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRe" + + "quest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudres" + + "ourcemanager.googleapis.com/Project\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" + + "\003\340A\001\"u\n\031ListSubscriptionsResponse\022:\n\rsub" + + "scriptions\030\001 \003(\0132\036.google.pubsub.v1.Subs" + + "criptionB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" + + "\340A\001\"]\n\031DeleteSubscriptionRequest\022@\n\014subs" + + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" + + "s.com/Subscription\"\223\001\n\027ModifyPushConfigR" + + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" + + "bsub.googleapis.com/Subscription\0226\n\013push" + + "_config\030\002 \001(\0132\034.google.pubsub.v1.PushCon" + + "figB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022!\n\022return_immediately\030\002 \001(\010B\005" + + "\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014Pull" + + "Response\022A\n\021received_messages\030\001 \003(\0132!.go" + + "ogle.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030" + + "ModifyAckDeadlineRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_" + + "deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowled" + + "geRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" + + "ck_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullReque" + + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" + + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" + + "\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_seconds\030\003 " + + "\003(\005B\003\340A\001\022$\n\027modify_deadline_ack_ids\030\004 \003(" + + "\tB\003\340A\001\022(\n\033stream_ack_deadline_seconds\030\005 " + + "\001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_" + + "outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_o" + + "utstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025Streamin" + + "gPullResponse\022A\n\021received_messages\030\001 \003(\013" + + "2!.google.pubsub.v1.ReceivedMessageB\003\340A\001" + + "\022f\n\030acknowledge_confirmation\030\005 \001(\0132?.goo" + + "gle.pubsub.v1.StreamingPullResponse.Ackn" + + "owledgeConfirmationB\003\340A\001\022t\n modify_ack_d" + + "eadline_confirmation\030\003 \001(\0132E.google.pubs" + + "ub.v1.StreamingPullResponse.ModifyAckDea" + + "dlineConfirmationB\003\340A\001\022d\n\027subscription_p" + + "roperties\030\004 \001(\0132>.google.pubsub.v1.Strea" + + "mingPullResponse.SubscriptionPropertiesB" + + "\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022\024\n\007ack_" + + "ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB" + + "\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030" + + "temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035M" + + "odifyAckDeadlineConfirmation\022\024\n\007ack_ids\030" + + "\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001" + + "\022%\n\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032" + + "k\n\026SubscriptionProperties\022*\n\035exactly_onc" + + "e_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message" + + "_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateS" + + "napshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pu" + + "bsub.googleapis.com/Snapshot\022@\n\014subscrip" + + "tion\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\022H\n\006labels\030\003 \003(\01323.google." + + "pubsub.v1.CreateSnapshotRequest.LabelsEn" + + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotReques" + + "t\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.S" + + "napshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A" + + "\035\n\033pubsub.googleapis.com/Topic\0224\n\013expire" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pubsub.v1." + + "Snapshot.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036p" + + "ubsub.googleapis.com/Snapshot\022\'projects/" + + "{project}/snapshots/{snapshot}\"N\n\022GetSna" + + "pshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036" + + "pubsub.googleapis.com/Snapshot\"\215\001\n\024ListS" + + "napshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-" + + "\n+cloudresourcemanager.googleapis.com/Pr" + + "oject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\022" + + "2\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" + + "apshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" + + "\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030\001" + + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" + + "shot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001 \001" + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" - + "iption\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014" - + "subscription\030\001 \001(\0132\036.google.pubsub.v1.Su" - + "bscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSu" - + "bscriptionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002" - + "\372A-\n+cloudresourcemanager.googleapis.com" - + "/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsRe" - + "sponse\022:\n\rsubscriptions\030\001 \003(\0132\036.google.p" - + "ubsub.v1.SubscriptionB\003\340A\001\022\034\n\017next_page_" - + "token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\"\223\001\n\027Modi" - + "fyPushConfigRequest\022@\n\014subscription\030\001 \001(" - + "\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscri" - + "ption\0226\n\013push_config\030\002 \001(\0132\034.google.pubs" - + "ub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" - + "leapis.com/Subscription\022!\n\022return_immedi" - + "ately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005" - + "B\003\340A\002\"Q\n\014PullResponse\022A\n\021received_messag" - + "es\030\001 \003(\0132!.google.pubsub.v1.ReceivedMess" - + "ageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" - + "leapis.com/Subscription\022\024\n\007ack_ids\030\004 \003(\t" - + "B\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002" - + "\"l\n\022AcknowledgeRequest\022@\n\014subscription\030\001" - + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" - + "cription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024Strea" - + "mingPullRequest\022@\n\014subscription\030\001 \001(\tB*\340" - + "A\002\372A$\n\"pubsub.googleapis.com/Subscriptio" - + "n\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadli" - + "ne_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline" - + "_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadli" - + "ne_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\t" - + "B\003\340A\001\022%\n\030max_outstanding_messages\030\007 \001(\003B" - + "\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001" - + "\"\236\006\n\025StreamingPullResponse\022A\n\021received_m" - + "essages\030\001 \003(\0132!.google.pubsub.v1.Receive" - + "dMessageB\003\340A\001\022f\n\030acknowledge_confirmatio" - + "n\030\005 \001(\0132?.google.pubsub.v1.StreamingPull" - + "Response.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132" - + "E.google.pubsub.v1.StreamingPullResponse" - + ".ModifyAckDeadlineConfirmationB\003\340A\001\022d\n\027s" - + "ubscription_properties\030\004 \001(\0132>.google.pu" - + "bsub.v1.StreamingPullResponse.Subscripti" - + "onPropertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirm" - + "ation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_a" - + "ck_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003" - + " \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\004 " - + "\003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineConfirmatio" - + "n\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_i" - + "ds\030\002 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_id" - + "s\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProperties\022*" - + "\n\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340" - + "A\001\022%\n\030message_ordering_enabled\030\002 \001(\010B\003\340A" - + "\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004name\030\001 \001(" - + "\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snapsho" - + "t\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\022H\n\006labels\030\003 " - + "\003(\01323.google.pubsub.v1.CreateSnapshotReq" - + "uest.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateS" - + "napshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.googl" - + "e.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_mask" - + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"" - + "\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic" - + "\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com/To" - + "pic\0224\n\013expire_time\030\003 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.goog" - + "le.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-" - + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Snapsh" - + "ot\022\'projects/{project}/snapshots/{snapsh" - + "ot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 " - + "\001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snaps" - + "hot\"\215\001\n\024ListSnapshotsRequest\022D\n\007project\030" - + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" - + "leapis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnaps" - + "hotsResponse\0222\n\tsnapshots\030\001 \003(\0132\032.google" - + ".pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_to" - + "ken\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\022" - + "8\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.google" - + "apis.com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014sub" - + "scription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleap" - + "is.com/Subscription\022/\n\004time\030\002 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot" - + "\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapis.com/Sn" - + "apshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tP" - + "ublisher\022q\n\013CreateTopic\022\027.google.pubsub." - + "v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A\004na" - + "me\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}" - + ":\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v1.U" - + "pdateTopicRequest\032\027.google.pubsub.v1.Top" - + "ic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{top" - + "ic.name=projects/*/topics/*}:\001*\022\223\001\n\007Publ" - + "ish\022 .google.pubsub.v1.PublishRequest\032!." - + "google.pubsub.v1.PublishResponse\"C\332A\016top" - + "ic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*" - + "/topics/*}:publish:\001*\022w\n\010GetTopic\022!.goog" - + "le.pubsub.v1.GetTopicRequest\032\027.google.pu" - + "bsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topi" - + "c=projects/*/topics/*}\022\212\001\n\nListTopics\022#." - + "google.pubsub.v1.ListTopicsRequest\032$.goo" - + "gle.pubsub.v1.ListTopicsResponse\"1\332A\007pro" - + "ject\202\323\344\223\002!\022\037/v1/{project=projects/*}/top" - + "ics\022\272\001\n\026ListTopicSubscriptions\022/.google." - + "pubsub.v1.ListTopicSubscriptionsRequest\032" - + "0.google.pubsub.v1.ListTopicSubscription" - + "sResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=pr" - + "ojects/*/topics/*}/subscriptions\022\252\001\n\022Lis" - + "tTopicSnapshots\022+.google.pubsub.v1.ListT" - + "opicSnapshotsRequest\032,.google.pubsub.v1." - + "ListTopicSnapshotsResponse\"9\332A\005topic\202\323\344\223" - + "\002+\022)/v1/{topic=projects/*/topics/*}/snap" - + "shots\022|\n\013DeleteTopic\022$.google.pubsub.v1." - + "DeleteTopicRequest\032\026.google.protobuf.Emp" - + "ty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/" - + "*/topics/*}\022\255\001\n\022DetachSubscription\022+.goo" - + "gle.pubsub.v1.DetachSubscriptionRequest\032" - + ",.google.pubsub.v1.DetachSubscriptionRes" - + "ponse\"<\202\323\344\223\0026\"4/v1/{subscription=project" - + "s/*/subscriptions/*}:detach\032p\312A\025pubsub.g" + + "iption\022/\n\004time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A" + + " \n\036pubsub.googleapis.com/SnapshotH\000B\010\n\006t" + + "arget\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013C" + + "reateTopic\022\027.google.pubsub.v1.Topic\032\027.go" + + "ogle.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1" + + "/{name=projects/*/topics/*}:\001*\022\221\001\n\013Updat" + + "eTopic\022$.google.pubsub.v1.UpdateTopicReq" + + "uest\032\027.google.pubsub.v1.Topic\"C\332A\021topic," + + "update_mask\202\323\344\223\002)2$/v1/{topic.name=proje" + + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google." + + "pubsub.v1.PublishRequest\032!.google.pubsub" + + ".v1.PublishResponse\"C\332A\016topic,messages\202\323" + + "\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:pu" + + "blish:\001*\022w\n\010GetTopic\022!.google.pubsub.v1." + + "GetTopicRequest\032\027.google.pubsub.v1.Topic" + + "\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/" + + "topics/*}\022\212\001\n\nListTopics\022#.google.pubsub" + + ".v1.ListTopicsRequest\032$.google.pubsub.v1" + + ".ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/" + + "v1/{project=projects/*}/topics\022\272\001\n\026ListT" + + "opicSubscriptions\022/.google.pubsub.v1.Lis" + + "tTopicSubscriptionsRequest\0320.google.pubs" + + "ub.v1.ListTopicSubscriptionsResponse\"=\332A" + + "\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/topi" + + "cs/*}/subscriptions\022\252\001\n\022ListTopicSnapsho" + + "ts\022+.google.pubsub.v1.ListTopicSnapshots" + + "Request\032,.google.pubsub.v1.ListTopicSnap" + + "shotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topi" + + "c=projects/*/topics/*}/snapshots\022|\n\013Dele" + + "teTopic\022$.google.pubsub.v1.DeleteTopicRe" + + "quest\032\026.google.protobuf.Empty\"/\332A\005topic\202" + + "\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255" + + "\001\n\022DetachSubscription\022+.google.pubsub.v1" + + ".DetachSubscriptionRequest\032,.google.pubs" + + "ub.v1.DetachSubscriptionResponse\"<\202\323\344\223\0026" + + "\"4/v1/{subscription=projects/*/subscript" + + "ions/*}:detach\032p\312A\025pubsub.googleapis.com" + + "\322AUhttps://www.googleapis.com/auth/cloud" + + "-platform,https://www.googleapis.com/aut" + + "h/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscr" + + "iption\022\036.google.pubsub.v1.Subscription\032\036" + + ".google.pubsub.v1.Subscription\"^\332A+name," + + "topic,push_config,ack_deadline_seconds\202\323" + + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" + + "/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pubs" + + "ub.v1.GetSubscriptionRequest\032\036.google.pu" + + "bsub.v1.Subscription\"D\332A\014subscription\202\323\344" + + "\223\002/\022-/v1/{subscription=projects/*/subscr" + + "iptions/*}\022\273\001\n\022UpdateSubscription\022+.goog" + + "le.pubsub.v1.UpdateSubscriptionRequest\032\036" + + ".google.pubsub.v1.Subscription\"X\332A\030subsc" + + "ription,update_mask\202\323\344\223\002722/v1/{subscrip" + + "tion.name=projects/*/subscriptions/*}:\001*" + + "\022\246\001\n\021ListSubscriptions\022*.google.pubsub.v" + + "1.ListSubscriptionsRequest\032+.google.pubs" + + "ub.v1.ListSubscriptionsResponse\"8\332A\007proj" + + "ect\202\323\344\223\002(\022&/v1/{project=projects/*}/subs" + + "criptions\022\237\001\n\022DeleteSubscription\022+.googl" + + "e.pubsub.v1.DeleteSubscriptionRequest\032\026." + + "google.protobuf.Empty\"D\332A\014subscription\202\323" + + "\344\223\002/*-/v1/{subscription=projects/*/subsc" + + "riptions/*}\022\317\001\n\021ModifyAckDeadline\022*.goog" + + "le.pubsub.v1.ModifyAckDeadlineRequest\032\026." + + "google.protobuf.Empty\"v\332A)subscription,a" + + "ck_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{" + + "subscription=projects/*/subscriptions/*}" + + ":modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022$." + + "google.pubsub.v1.AcknowledgeRequest\032\026.go" + + "ogle.protobuf.Empty\"[\332A\024subscription,ack" + + "_ids\202\323\344\223\002>\"9/v1/{subscription=projects/*" + + "/subscriptions/*}:acknowledge:\001*\022\320\001\n\004Pul" + + "l\022\035.google.pubsub.v1.PullRequest\032\036.googl" + + "e.pubsub.v1.PullResponse\"\210\001\332A,subscripti" + + "on,return_immediately,max_messages\332A\031sub" + + "scription,max_messages\202\323\344\223\0027\"2/v1/{subsc" + + "ription=projects/*/subscriptions/*}:pull" + + ":\001*\022f\n\rStreamingPull\022&.google.pubsub.v1." + + "StreamingPullRequest\032\'.google.pubsub.v1." + + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu" + + "shConfig\022).google.pubsub.v1.ModifyPushCo" + + "nfigRequest\032\026.google.protobuf.Empty\"d\332A\030" + + "subscription,push_config\202\323\344\223\002C\">/v1/{sub" + + "scription=projects/*/subscriptions/*}:mo" + + "difyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.goog" + + "le.pubsub.v1.GetSnapshotRequest\032\032.google" + + ".pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%" + + "/v1/{snapshot=projects/*/snapshots/*}\022\226\001" + + "\n\rListSnapshots\022&.google.pubsub.v1.ListS" + + "napshotsRequest\032\'.google.pubsub.v1.ListS" + + "napshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/" + + "{project=projects/*}/snapshots\022\227\001\n\016Creat" + + "eSnapshot\022\'.google.pubsub.v1.CreateSnaps" + + "hotRequest\032\032.google.pubsub.v1.Snapshot\"@" + + "\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=pr" + + "ojects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnaps" + + "hot\022\'.google.pubsub.v1.UpdateSnapshotReq" + + "uest\032\032.google.pubsub.v1.Snapshot\"L\332A\024sna" + + "pshot,update_mask\202\323\344\223\002/2*/v1/{snapshot.n" + + "ame=projects/*/snapshots/*}:\001*\022\213\001\n\016Delet" + + "eSnapshot\022\'.google.pubsub.v1.DeleteSnaps" + + "hotRequest\032\026.google.protobuf.Empty\"8\332A\010s" + + "napshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/" + + "snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1" + + ".SeekRequest\032\036.google.pubsub.v1.SeekResp" + + "onse\"=\202\323\344\223\0027\"2/v1/{subscription=projects" + + "/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub.g" + "oogleapis.com\322AUhttps://www.googleapis.c" + "om/auth/cloud-platform,https://www.googl" - + "eapis.com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n" - + "\022CreateSubscription\022\036.google.pubsub.v1.S" - + "ubscription\032\036.google.pubsub.v1.Subscript" - + "ion\"^\332A+name,topic,push_config,ack_deadl" - + "ine_seconds\202\323\344\223\002*\032%/v1/{name=projects/*/" - + "subscriptions/*}:\001*\022\241\001\n\017GetSubscription\022" - + "(.google.pubsub.v1.GetSubscriptionReques" - + "t\032\036.google.pubsub.v1.Subscription\"D\332A\014su" - + "bscription\202\323\344\223\002/\022-/v1/{subscription=proj" - + "ects/*/subscriptions/*}\022\273\001\n\022UpdateSubscr" - + "iption\022+.google.pubsub.v1.UpdateSubscrip" - + "tionRequest\032\036.google.pubsub.v1.Subscript" - + "ion\"X\332A\030subscription,update_mask\202\323\344\223\002722" - + "/v1/{subscription.name=projects/*/subscr" - + "iptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*.go" - + "ogle.pubsub.v1.ListSubscriptionsRequest\032" - + "+.google.pubsub.v1.ListSubscriptionsResp" - + "onse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=pro" - + "jects/*}/subscriptions\022\237\001\n\022DeleteSubscri" - + "ption\022+.google.pubsub.v1.DeleteSubscript" - + "ionRequest\032\026.google.protobuf.Empty\"D\332A\014s" - + "ubscription\202\323\344\223\002/*-/v1/{subscription=pro" - + "jects/*/subscriptions/*}\022\317\001\n\021ModifyAckDe" - + "adline\022*.google.pubsub.v1.ModifyAckDeadl" - + "ineRequest\032\026.google.protobuf.Empty\"v\332A)s" - + "ubscription,ack_ids,ack_deadline_seconds" - + "\202\323\344\223\002D\"?/v1/{subscription=projects/*/sub" - + "scriptions/*}:modifyAckDeadline:\001*\022\250\001\n\013A" - + "cknowledge\022$.google.pubsub.v1.Acknowledg" - + "eRequest\032\026.google.protobuf.Empty\"[\332A\024sub" - + "scription,ack_ids\202\323\344\223\002>\"9/v1/{subscripti" - + "on=projects/*/subscriptions/*}:acknowled" - + "ge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullRe" - + "quest\032\036.google.pubsub.v1.PullResponse\"\210\001" - + "\332A,subscription,return_immediately,max_m" - + "essages\332A\031subscription,max_messages\202\323\344\223\002" - + "7\"2/v1/{subscription=projects/*/subscrip" - + "tions/*}:pull:\001*\022f\n\rStreamingPull\022&.goog" - + "le.pubsub.v1.StreamingPullRequest\032\'.goog" - + "le.pubsub.v1.StreamingPullResponse\"\000(\0010\001" - + "\022\273\001\n\020ModifyPushConfig\022).google.pubsub.v1" - + ".ModifyPushConfigRequest\032\026.google.protob" - + "uf.Empty\"d\332A\030subscription,push_config\202\323\344" - + "\223\002C\">/v1/{subscription=projects/*/subscr" - + "iptions/*}:modifyPushConfig:\001*\022\211\001\n\013GetSn" - + "apshot\022$.google.pubsub.v1.GetSnapshotReq" - + "uest\032\032.google.pubsub.v1.Snapshot\"8\332A\010sna" - + "pshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/sn" - + "apshots/*}\022\226\001\n\rListSnapshots\022&.google.pu" - + "bsub.v1.ListSnapshotsRequest\032\'.google.pu" - + "bsub.v1.ListSnapshotsResponse\"4\332A\007projec" - + "t\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapsh" - + "ots\022\227\001\n\016CreateSnapshot\022\'.google.pubsub.v" - + "1.CreateSnapshotRequest\032\032.google.pubsub." - + "v1.Snapshot\"@\332A\021name,subscription\202\323\344\223\002&\032" - + "!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001" - + "\n\016UpdateSnapshot\022\'.google.pubsub.v1.Upda" - + "teSnapshotRequest\032\032.google.pubsub.v1.Sna" - + "pshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v" - + "1/{snapshot.name=projects/*/snapshots/*}" - + ":\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v" - + "1.DeleteSnapshotRequest\032\026.google.protobu" - + "f.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapsho" - + "t=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.goo" - + "gle.pubsub.v1.SeekRequest\032\036.google.pubsu" - + "b.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscrip" - + "tion=projects/*/subscriptions/*}:seek:\001*" - + "\032p\312A\025pubsub.googleapis.com\322AUhttps://www" - + ".googleapis.com/auth/cloud-platform,http" - + "s://www.googleapis.com/auth/pubsubB\252\001\n\024c" - + "om.google.pubsub.v1B\013PubsubProtoP\001Z2clou" - + "d.google.com/go/pubsub/apiv1/pubsubpb;pu" - + "bsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026Goo" - + "gle\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::Pub" - + "Sub::V1b\006proto3" + + "eapis.com/auth/pubsubB\252\001\n\024com.google.pub" + + "sub.v1B\013PubsubProtoP\001Z2cloud.google.com/" + + "go/pubsub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026G" + + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" + + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -972,6 +973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AvroConfig", "MaxDuration", "MaxBytes", + "MaxMessages", "State", "ServiceAccountEmail", "OutputFormat", diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index a26effb789a9..d108f51ffdc3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1387 + * google/pubsub/v1/pubsub.proto;l=1391 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1387 + * google/pubsub/v1/pubsub.proto;l=1391 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1387 + * google/pubsub/v1/pubsub.proto;l=1391 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1387 + * google/pubsub/v1/pubsub.proto;l=1391 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 94c2e0c108ca..d293e9ac1d3b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1387 + * google/pubsub/v1/pubsub.proto;l=1391 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b70bda11a33d..b5092087a379 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1240,6 +1240,10 @@ message CloudStorageConfig { // be exceeded in cases where messages are larger than the limit. int64 max_bytes = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The maximum number of messages that can be written to a Cloud + // Storage file before a new file is created. Min 1000 messages. + int64 max_messages = 8 [(google.api.field_behavior) = OPTIONAL]; + // Output only. An output-only field that indicates whether or not the // subscription can receive messages. State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; From b108074372d1c202833eb29d39ed7a6aa56f0c80 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 29 Jul 2024 21:30:18 -0400 Subject: [PATCH 1870/2363] chore: Update generation configuration at Sat Jul 27 02:16:29 UTC 2024 (#2119) * chore: Update generation configuration at Wed Jul 24 02:17:25 UTC 2024 * chore: Update generation configuration at Thu Jul 25 02:17:32 UTC 2024 * chore: Update generation configuration at Fri Jul 26 02:17:25 UTC 2024 * chore: Update generation configuration at Sat Jul 27 02:16:29 UTC 2024 * chore: generate libraries at Sat Jul 27 02:16:53 UTC 2024 --- java-pubsub/generation_config.yaml | 4 ++-- .../google/cloud/pubsub/v1/stub/PublisherStubSettings.java | 2 ++ .../cloud/pubsub/v1/stub/SchemaServiceStubSettings.java | 2 ++ .../google/cloud/pubsub/v1/stub/SubscriberStubSettings.java | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index ba697aea4507..a9b459e57381 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.42.0 -googleapis_commitish: d44c3001960c430bc60ac1e1736cebfd8fd45e77 +gapic_generator_version: 2.43.0 +googleapis_commitish: 0fa9ce880be5ea7c3027015849cd4fbfb04812c5 libraries_bom_version: 26.43.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 40f03dd7f561..bc169972dd8e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -23,6 +23,7 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; import com.google.api.gax.batching.BatchingSettings; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; @@ -492,6 +493,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "pubsub.googleapis.com:443"; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 9d68b251e995..1ab1f310a42b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -22,6 +22,7 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -352,6 +353,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "pubsub.googleapis.com:443"; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 30803382af94..40d5a4b5488a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -22,6 +22,7 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; @@ -397,6 +398,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild } /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { return "pubsub.googleapis.com:443"; } From ef7378329e0581189bf6438bc4d2d2d9768e4f52 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Jul 2024 03:30:32 +0200 Subject: [PATCH 1871/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.33.0 (#2121) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index de006d9e21c5..96fde5ee48c3 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.32.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.33.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 7d5ab3a25c4c..7008a7215676 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.33.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 519c2e3ce370..931f9bb00528 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.33.0" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4ecd37b68e20..4419d74238b8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.32.0 + 3.33.0 From 1ce8432ba242bac2035206ed36e99499be81292d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Jul 2024 03:30:47 +0200 Subject: [PATCH 1872/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.42.0 (#2124) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 591ff0ee5f7d..7e3007543613 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.41.0 + 2.42.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4bb65df74498..8fd69b0dc11c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.41.0 + 2.42.0 com.google.cloud From d805a23c1d9775ca55ea65b590adaee2e2eb1f89 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 30 Jul 2024 04:38:43 +0200 Subject: [PATCH 1873/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.41.0 (#2120) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7e3007543613..e24cff6cf33b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.40.0 + 2.41.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8fd69b0dc11c..ed24807f2bba 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.40.0 + 2.41.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b15119c883a8..67ab4d9e949b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.40.0 + 2.41.0 tests From e139db3a273cac0561bce876a0352bbe2678126f Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Wed, 31 Jul 2024 16:56:06 -0400 Subject: [PATCH 1874/2363] chore: setup 1.129.x lts branch (#2128) --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 43fa6c78aebc..dae3c7e8a250 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -38,3 +38,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.125.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.129.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 80d26801c525..8f2999f823d0 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -159,6 +159,22 @@ branchProtectionRules: - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc + - pattern: 1.129.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (17) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' + - javadoc permissionRules: - team: yoshi-admins permission: admin From 3abcadd08235d24dee0cd42b01cbeb33969727da Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 1 Aug 2024 00:57:06 -0400 Subject: [PATCH 1875/2363] chore: Update generation configuration at Thu Aug 1 02:21:32 UTC 2024 (#2125) * chore: Update generation configuration at Tue Jul 30 02:17:27 UTC 2024 * chore: Update generation configuration at Wed Jul 31 02:05:30 UTC 2024 * chore: Update generation configuration at Thu Aug 1 02:21:32 UTC 2024 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index a9b459e57381..8f790ad7e886 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.43.0 -googleapis_commitish: 0fa9ce880be5ea7c3027015849cd4fbfb04812c5 +googleapis_commitish: 24c5ee09178ac7d1387dfa2d6053be2fb93c8dc4 libraries_bom_version: 26.43.0 libraries: - api_shortname: pubsub From fcd5bf5e3e02cc461c9f3c777bf8256415498fa1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 1 Aug 2024 22:16:21 +0200 Subject: [PATCH 1876/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.41.0 (#2129) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e24cff6cf33b..23e234307341 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.40.1 + 2.41.0
    diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ed24807f2bba..e447ef75efae 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.40.1 + 2.41.0
    From 55ccb4c30c250486eb0bbcf0a0364568255ba02c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 1 Aug 2024 22:17:03 +0200 Subject: [PATCH 1877/2363] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.9.1 (#2110) --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 295c7717ec20..cb218c15023d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.8.1 + 1.9.1 Google Cloud pubsub BOM From a8335d09e62c341da38bc349adaeda373aac6517 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:38:15 -0400 Subject: [PATCH 1878/2363] chore(main): release 1.132.0 (#2098) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 24 +++++++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 8 files changed, 42 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 89626575a5ea..4f35da2d83ab 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [1.132.0](https://github.com/googleapis/java-pubsub/compare/v1.131.0...v1.132.0) (2024-08-01) + + +### Features + +* Enable hermetic library generation ([#2048](https://github.com/googleapis/java-pubsub/issues/2048)) ([283a5e8](https://github.com/googleapis/java-pubsub/commit/283a5e89837071678f8dd94b8b8adfad91a6766c)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.41.0 ([#2093](https://github.com/googleapis/java-pubsub/issues/2093)) ([217b8a3](https://github.com/googleapis/java-pubsub/commit/217b8a3f5419f80402d349b8873d7302eeb35e3f)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.42.0 ([#2124](https://github.com/googleapis/java-pubsub/issues/2124)) ([24ebe24](https://github.com/googleapis/java-pubsub/commit/24ebe2402fe6278348d87b5a4259c365a819877f)) +* Update dependency com.google.cloud:google-cloud-core to v2.41.0 ([#2120](https://github.com/googleapis/java-pubsub/issues/2120)) ([1f6428a](https://github.com/googleapis/java-pubsub/commit/1f6428a8b79369a239664b9ea7cd38e024db9724)) +* Update dependency com.google.cloud:google-cloud-storage to v2.40.1 ([#2095](https://github.com/googleapis/java-pubsub/issues/2095)) ([0d64d6c](https://github.com/googleapis/java-pubsub/commit/0d64d6cf7799a176297ceaa1475b7cb29a64bebc)) +* Update dependency com.google.cloud:google-cloud-storage to v2.41.0 ([#2129](https://github.com/googleapis/java-pubsub/issues/2129)) ([2348d20](https://github.com/googleapis/java-pubsub/commit/2348d2022bc400b7f187d3db7f43aff94d8884a8)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.33.0 ([#2121](https://github.com/googleapis/java-pubsub/issues/2121)) ([7fbea6d](https://github.com/googleapis/java-pubsub/commit/7fbea6d0c922dd3485f19eafccc42869efd0e5ed)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.27.2 ([#2091](https://github.com/googleapis/java-pubsub/issues/2091)) ([9859f11](https://github.com/googleapis/java-pubsub/commit/9859f1181a12bc683eaf4a6345bf2528a5463c59)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.3 ([#2096](https://github.com/googleapis/java-pubsub/issues/2096)) ([42f12ed](https://github.com/googleapis/java-pubsub/commit/42f12ed3270e66beae316deb729b445c94dcb1a8)) + + +### Documentation + +* **samples:** Optimistic subscribe sample ([#2063](https://github.com/googleapis/java-pubsub/issues/2063)) ([53a4844](https://github.com/googleapis/java-pubsub/commit/53a4844f09eace777142b8cdcd06bc07cef0b432)) + ## [1.131.0](https://github.com/googleapis/java-pubsub/compare/v1.130.1...v1.131.0) (2024-06-25) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index cb218c15023d..184a61cd419c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.131.1-SNAPSHOT + 1.132.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.131.1-SNAPSHOT + 1.132.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index af2d034e5eb3..6b20a22fa304 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.131.1-SNAPSHOT + 1.132.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.131.1-SNAPSHOT + 1.132.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9b5e7af10bd3..fe238a5d945d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.131.1-SNAPSHOT + 1.132.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4419d74238b8..4988583c14c3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.131.1-SNAPSHOT + 1.132.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0 com.google.cloud google-cloud-pubsub - 1.131.1-SNAPSHOT + 1.132.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4d6605394c2c..3b697ce7134f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.113.1-SNAPSHOT + 1.114.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.131.1-SNAPSHOT + 1.132.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e447ef75efae..bba30cd51636 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.131.1-SNAPSHOT + 1.132.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index cdd8b1243dd6..6a4c448a6dea 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.131.0:1.131.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.113.0:1.113.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.113.0:1.113.1-SNAPSHOT +google-cloud-pubsub:1.132.0:1.132.0 +grpc-google-cloud-pubsub-v1:1.114.0:1.114.0 +proto-google-cloud-pubsub-v1:1.114.0:1.114.0 From 4dc0be41c716d2b3061fc83cbf5f5a87fb3a8fa0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 22:57:31 +0000 Subject: [PATCH 1879/2363] chore(main): release 1.132.1-SNAPSHOT (#2131) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 184a61cd419c..9faf2d71e9a8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.0 + 1.132.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6b20a22fa304..65f673bf4298 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.0 + 1.132.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fe238a5d945d..7c3c1ec3588a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.0 + 1.132.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4988583c14c3..e40a2b282175 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.0 + 1.132.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3b697ce7134f..eae0f5a09d49 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.0 + 1.114.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.0 + 1.132.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bba30cd51636..c7b67e8075fc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6a4c448a6dea..e5df1af3914a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.0:1.132.0 -grpc-google-cloud-pubsub-v1:1.114.0:1.114.0 -proto-google-cloud-pubsub-v1:1.114.0:1.114.0 +google-cloud-pubsub:1.132.0:1.132.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.114.0:1.114.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.114.0:1.114.1-SNAPSHOT From b117f4975f301d5d34d92dceebeabb9e1cc41d04 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Aug 2024 05:19:23 +0200 Subject: [PATCH 1880/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.132.0 (#2132) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 23e234307341..057e72c9c5d4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.131.0 + 1.132.0 From 516c3bcc1253ad325a3260f9feebf2ddf52a3f90 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Aug 2024 05:19:45 +0200 Subject: [PATCH 1881/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.3 (#2127) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 057e72c9c5d4..af54eb16d6bc 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.27.2 + 4.27.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c7b67e8075fc..73858389a3dd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.27.2 + 4.27.3 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 67ab4d9e949b..9fb6e5d7d799 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.27.2 + 4.27.3 From b5284191fc24583dd2b6b20fc6c56d3df887aec0 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 13 Aug 2024 23:27:51 -0400 Subject: [PATCH 1882/2363] chore: Update generation configuration at Wed Aug 14 02:18:24 UTC 2024 (#2133) * chore: Update generation configuration at Fri Aug 2 02:17:37 UTC 2024 * chore: Update generation configuration at Sat Aug 3 02:16:40 UTC 2024 * chore: Update generation configuration at Tue Aug 6 02:17:49 UTC 2024 * chore: Update generation configuration at Wed Aug 7 02:18:42 UTC 2024 * chore: Update generation configuration at Thu Aug 8 02:18:03 UTC 2024 * chore: Update generation configuration at Fri Aug 9 02:18:41 UTC 2024 * chore: Update generation configuration at Sat Aug 10 02:18:09 UTC 2024 * chore: generate libraries at Sat Aug 10 02:18:30 UTC 2024 * chore: Update generation configuration at Tue Aug 13 02:18:54 UTC 2024 * chore: Update generation configuration at Wed Aug 14 02:18:24 UTC 2024 --- java-pubsub/README.md | 8 ++++---- java-pubsub/generation_config.yaml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7bba02421eaf..c5e03e11c896 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.43.0') +implementation platform('com.google.cloud:libraries-bom:26.44.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.131.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.132.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.131.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.0" ``` @@ -414,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.131.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 8f790ad7e886..2c8133fa25c9 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.43.0 -googleapis_commitish: 24c5ee09178ac7d1387dfa2d6053be2fb93c8dc4 -libraries_bom_version: 26.43.0 +googleapis_commitish: 906736032699b7e943ef2155edbda05470723647 +libraries_bom_version: 26.44.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From e0ecc18795b796a1cdbb4f947693e5e88cc86f70 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Aug 2024 05:51:48 +0200 Subject: [PATCH 1883/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.44.0 (#2136) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9fb6e5d7d799..820cd3d586c5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.43.0 + 26.44.0 pom import From fb5a10057e4884ec48ce7761cead176d4c1e581e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 14 Aug 2024 05:51:55 +0200 Subject: [PATCH 1884/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.6 (#2135) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index af54eb16d6bc..36cb5a4a13a3 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.5 + 1.1.10.6 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 73858389a3dd..844c4d49f537 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.5 + 1.1.10.6 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 820cd3d586c5..fc03e7381e26 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -75,7 +75,7 @@ org.xerial.snappy snappy-java - 1.1.10.5 + 1.1.10.6 com.google.protobuf From 0e603939ef14d96d4d23b6f8d241fc3b90fba83b Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:31:35 -0400 Subject: [PATCH 1885/2363] chore: Update generation configuration at Sun Aug 18 02:19:28 UTC 2024 (#2139) * chore: Update generation configuration at Thu Aug 15 02:15:24 UTC 2024 * chore: Update generation configuration at Fri Aug 16 02:18:12 UTC 2024 * chore: Update generation configuration at Sat Aug 17 02:16:55 UTC 2024 * chore: Update generation configuration at Sun Aug 18 02:19:28 UTC 2024 * chore: generate libraries at Sun Aug 18 02:19:49 UTC 2024 --- java-pubsub/README.md | 4 ++-- java-pubsub/generation_config.yaml | 4 ++-- .../com/google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../pubsub/v1/AcknowledgeRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/CloudStorageConfig.java | 2 +- .../pubsub/v1/CloudStorageConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../pubsub/v1/CommitSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../pubsub/v1/CreateSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSnapshotRequest.java | 2 +- .../v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../pubsub/v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSchemaRevisionRequest.java | 2 +- .../v1/DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../v1/DeleteSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../pubsub/v1/DeleteTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../v1/DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../v1/DetachSubscriptionResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Encoding.java | 2 +- .../com/google/pubsub/v1/ExpirationPolicy.java | 2 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetSchemaRequest.java | 2 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../pubsub/v1/GetSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSubscriptionRequest.java | 2 +- .../v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/IngestionDataSourceSettings.java | 2 +- .../v1/IngestionDataSourceSettingsOrBuilder.java | 2 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../v1/ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSchemaRevisionsResponse.java | 2 +- .../v1/ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListSchemasRequest.java | 2 +- .../pubsub/v1/ListSchemasRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasResponse.java | 2 +- .../pubsub/v1/ListSchemasResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSnapshotsRequest.java | 2 +- .../pubsub/v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSnapshotsResponse.java | 2 +- .../v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../v1/ListSubscriptionsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../v1/ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../v1/ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSubscriptionsRequest.java | 2 +- .../ListTopicSubscriptionsRequestOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsResponse.java | 2 +- .../ListTopicSubscriptionsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicsRequest.java | 2 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicsResponse.java | 2 +- .../pubsub/v1/ListTopicsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/MessageStoragePolicy.java | 2 +- .../pubsub/v1/MessageStoragePolicyOrBuilder.java | 2 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 2 +- .../pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishResponse.java | 2 +- .../pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PubsubMessage.java | 2 +- .../google/pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PubsubProto.java | 2 +- .../java/com/google/pubsub/v1/PullRequest.java | 2 +- .../google/pubsub/v1/PullRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PullResponse.java | 2 +- .../google/pubsub/v1/PullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PushConfig.java | 2 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/RetryPolicy.java | 2 +- .../google/pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/RollbackSchemaRequest.java | 2 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Schema.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SchemaProto.java | 2 +- .../com/google/pubsub/v1/SchemaSettings.java | 2 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SchemaView.java | 2 +- .../java/com/google/pubsub/v1/SeekRequest.java | 2 +- .../google/pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SeekResponse.java | 2 +- .../google/pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Snapshot.java | 2 +- .../com/google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../google/pubsub/v1/StreamingPullRequest.java | 2 +- .../pubsub/v1/StreamingPullRequestOrBuilder.java | 2 +- .../google/pubsub/v1/StreamingPullResponse.java | 2 +- .../v1/StreamingPullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Subscription.java | 2 +- .../google/pubsub/v1/SubscriptionOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Topic.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../v1/UpdateSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../pubsub/v1/UpdateTopicRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateMessageRequest.java | 2 +- .../v1/ValidateMessageRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageResponse.java | 2 +- .../v1/ValidateMessageResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateSchemaRequest.java | 2 +- .../v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateSchemaResponse.java | 2 +- .../v1/ValidateSchemaResponseOrBuilder.java | 2 +- java-pubsub/renovate.json | 16 +++++++++++----- 131 files changed, 143 insertions(+), 137 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c5e03e11c896..bdb7167a8db4 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.43.0 + 26.44.0 pom import @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.131.0 + 1.132.0 ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 2c8133fa25c9..46bf041204fa 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.43.0 -googleapis_commitish: 906736032699b7e943ef2155edbda05470723647 +gapic_generator_version: 2.44.0 +googleapis_commitish: 21c206f7370ed960b1c00418cb1edbdb81e3f999 libraries_bom_version: 26.44.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 668794506623..4f66e814625e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index c63597264e97..1d48237ec4cd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface AcknowledgeRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 66323e6af56a..8ed6a70c0945 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 958a634f2a7a..b11f601a0dc0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface BigQueryConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 69560d392b9a..03a1ff96d961 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 22e01385e914..bb76b4aa10b2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface CloudStorageConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index cdad41598db7..8af8ad8a1dc3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index cfa087dc3db8..3feee9c44ff5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface CommitSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 76fd2dae715d..19da2b62bbc8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index a23e7a3b7e3d..bc5cd73c5e54 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface CreateSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 3c7da99ab816..f75b1df94fbe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 74ddf59105af..bfe921c62178 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface CreateSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 57afeb96a7af..639fce2d9d90 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 4a1978e9b0fd..ad73317d280b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeadLetterPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index c0ea4a8a5194..8341b02b4e35 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 076450f415fa..018f05f724ef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeleteSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 6ac40de589e4..993b6fbc74be 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 722f7dd48899..659f15af1d02 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeleteSchemaRevisionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 96ede82bd914..01b9a533a34b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 9663ebc9508b..a44ce2bad2bd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeleteSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 2cd4d03f22e4..101dcfb2cba5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 17ceb01cba9a..a60aff79b162 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeleteSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 60dc14c0206c..ae7f1d5c7b6a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 4d2c3f90d732..9968722bd25b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DeleteTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 91f13786ddac..fefc483daadf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index fe853552a88d..7d15bd620027 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DetachSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 159c368d395c..f6be4bc4becd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 1bc2d75a29e1..0c5a283e4fa8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface DetachSubscriptionResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 546992aeeebe..bbab1ca1f6e9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 3af85ffe3c5d..b6d38a70032d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 14c7afe7dfb7..5e758a97ee8d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ExpirationPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index e7ecb8c7efd3..f1fa3abf3e08 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index efa1fed5b5cf..1557c9b320d6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface GetSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 781abb305b53..5ab32b1b720d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 325bb59bb567..e3cfbecaecd3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface GetSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 496f0a16340d..af067371c761 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index c314020a8a23..090018fc73fb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface GetSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 1ac15ed4b52d..2c88ff2d2955 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index b1ea21ae5e83..477adf413b83 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface GetTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index b56f85ee0cc0..8a3cfc182568 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index bb6b772b6451..c6692f6d79cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface IngestionDataSourceSettingsOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index a6642f7529e2..3541d809e8a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 8204f3f74847..ec720f4a09cf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSchemaRevisionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 9dd8d251a2af..5f0076d918ef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 2641ad810c67..73ca9e9d5eca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSchemaRevisionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index fe78eaca6190..228b2b8e7b2e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index ac55a2d81470..c8beb87f1e14 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSchemasRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 4cb9c7f3f769..e1985e768512 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 320b026c728b..10e0d8f72e7f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSchemasResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 648cca2f0470..383e5e1bf70f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index f8d56aa72aa0..311c46a9975f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSnapshotsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 811a06f7650c..4ee7a9731ad9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 13e8472343a8..b0aeb845139b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSnapshotsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 9a5ca2f39a03..1f2da3141415 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index cfaa15b95044..e61355550b8e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSubscriptionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 257a763d0ecc..378d586830f4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 02232e020376..35cb35bf227c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListSubscriptionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index c7777e1237cf..d4b4177c4e57 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 6d92bdbfb35f..8bab402b90cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicSnapshotsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 520b7a7c8382..1abe844067bb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 22d4796389ed..da03f0c90b70 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicSnapshotsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index cc1c7ba0ef5b..f69a0ddcedec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index cb3a4e419127..7a0b69c80fdb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicSubscriptionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 2750b4256842..1b4360644e72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index f884bb44b3cb..a4e5ea441e4e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicSubscriptionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 355aef97b949..c9c87d9ccdcc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 87b88fc6390f..95973fc946f1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 30120c6ec9a1..020257e5eb4c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index fdeff7d8475f..06f99a15515f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ListTopicsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index fbf890547a19..164d2c67c2a9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index e836d0653c44..60f6836e729c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface MessageStoragePolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 297e93e50bad..fc1736758a01 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 19520abd3fe4..231ad947124b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ModifyAckDeadlineRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 8f8a5dceb9c3..b02b89d0952d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 341a6ff831ac..ac09ebafa9c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ModifyPushConfigRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index dfbe0db2cb53..c49e55ce5fad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 8c91821c1eb6..cbf6e94e80ce 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PublishRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index ca6ed68ddf05..4f188d836811 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index c59d86e61c0f..550873767a07 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PublishResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 9ac71c1b2131..04dbbf6f64a9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 0f829d666586..f5bd6a3e2959 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PubsubMessageOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index f0d1612a33bb..2acb261792fb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public final class PubsubProto { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index d108f51ffdc3..aa05afd08f2e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index d293e9ac1d3b..4fb6915aa44c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PullRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index ad8af343648c..137ff8e9a4ec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index be0759de0e45..af3fa138aca6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PullResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index f8ab6fe90afe..7273fef24f47 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 1959de88a14c..2065ca62aade 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface PushConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 2e3758f8a5a3..682c8c48222e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 76d5c48332e7..dcc73e4491d8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ReceivedMessageOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index aad00e99991c..bff5aa7ef54f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index ffb8b81ca523..664f80bc4054 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface RetryPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 7e03f82b9ea8..0b0ee8797a45 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 3e7d175668d8..9d7f1e83dc17 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface RollbackSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 162fe2c5598a..1bf0ac5ad002 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index d37cbd04305c..12d4bb2fbc0f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SchemaOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index c37d55563684..e4ea222736c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public final class SchemaProto { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 0b80c5d0051f..c375beb9aded 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 9bb24f70e31f..4189cf811e60 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SchemaSettingsOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 6e1d01c15039..0a10fac7e4d5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index dcf3bc41a33c..a8393bb109c0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 57ba5547f1bc..a2788628c777 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SeekRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 38470cccac77..79b37b7bab7b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index bfddc8482ff7..c47b0596ee2a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SeekResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 7b19973736d3..bd753b6da3ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 7475a57bbb53..2840f7849d2e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SnapshotOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index c86a6f3717fc..eecbd908f5c2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index f745c1ce90ae..57c301ba9f6f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface StreamingPullRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 43fb79840c08..e571996f58e1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index e088dd987719..7c399b69e674 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface StreamingPullResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 111ce505fd72..5c5c8519fe48 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 15a06889d250..f0aec914b488 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface SubscriptionOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index e02ddfb68d89..34686b53a1e6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 5b06555e37c8..6d003e9f0445 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface TopicOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 7a906c423ca1..8e7ac0c43659 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 45d85d1522de..636f84656149 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface UpdateSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index b91bfd8aa793..b1e13a17030a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 02025fe17ec2..5fba8ab02411 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface UpdateSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 356606555097..f09ac147887e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 1767d2f3d971..967c56743cc4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface UpdateTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index fe2e281e2bee..0a0802f118fb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 99e1e670ced5..7645082b0ecd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ValidateMessageRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index ed1c7f8d5818..8db831a837c3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index 331fb646519a..c5dd245350f7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ValidateMessageResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 2f62e4de3dbc..f40b82c0ca25 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index f73e4b74b2f3..19bb6dfd0ddf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ValidateSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 8b925641019d..603a5d5c6f27 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index 4d673913d223..13217bd5fb7f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.3 +// Protobuf Java Version: 3.25.4 package com.google.pubsub.v1; public interface ValidateSchemaResponseOrBuilder diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index df71c3b5aa72..f67202e06d1e 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -1,4 +1,6 @@ + { + "extends": [ ":separateMajorReleases", ":combinePatchMinorReleases", @@ -20,19 +22,23 @@ "customManagers": [ { "customType": "regex", - "fileMatch": [ + "fileMatch": [ "^.kokoro/presubmit/graalvm-native.*.cfg$" ], - "matchStrings": ["value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\""], + "matchStrings": [ + "value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\"" + ], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", "datasourceTemplate": "maven" }, { "customType": "regex", "fileMatch": [ - "^.github/workflows/unmanaged_dependency_check.yaml$" + "^.github/workflows/unmanaged_dependency_check.yaml$" + ], + "matchStrings": [ + "uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?.+?)\\n" ], - "matchStrings": ["uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?.+?)\\n"], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", "datasourceTemplate": "maven" } @@ -99,4 +105,4 @@ ], "semanticCommits": true, "dependencyDashboard": true -} +} \ No newline at end of file From d46d222b857fdfd9ba0fada5bbfef912e8c4cf15 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 19 Aug 2024 18:09:06 +0200 Subject: [PATCH 1886/2363] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.3 (#2142) --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 3f092679cb5f..044ce66064b4 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -53,7 +53,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.2 + 3.1.3 true From 5754bb4454bbcb9c362d70d7a6acc3849cf0097c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 19 Aug 2024 18:49:07 +0200 Subject: [PATCH 1887/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.42.0 (#2140) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 36cb5a4a13a3..57310f585711 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.41.0 + 2.42.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 844c4d49f537..e95ee872ac01 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.41.0 + 2.42.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index fc03e7381e26..6979a3a79152 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.41.0 + 2.42.0 tests From eb986a86063c5ecab880f2787610586afe82b9ff Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 19 Aug 2024 16:50:18 -0400 Subject: [PATCH 1888/2363] chore: secure hermetic_library_generation workflow (#2143) Thanks to @diogoteles08 for the inspection on our repos. This PR inlines environment variables to avoid overriding script injections. --- .../.github/workflows/hermetic_library_generation.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 7146cc3dc1ca..ab23b9fec097 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -17,10 +17,14 @@ name: Hermetic library generation upon generation config change through pull req on: pull_request: +env: + HEAD_REF: ${{ github.head_ref }} + REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} + jobs: library_generation: # skip pull requests coming from a forked repository - if: github.event.pull_request.head.repo.full_name == github.repository + if: github.env.REPO_FULL_NAME == github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -30,11 +34,11 @@ jobs: - name: Generate changed libraries shell: bash run: | - set -x + set -ex [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" bash .github/scripts/hermetic_library_generation.sh \ --target_branch ${{ github.base_ref }} \ - --current_branch ${{ github.head_ref }} + --current_branch $HEAD_REF env: GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 0a25b0213d7c506f95be5b1bc05e46cbc07ac285 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:30:17 -0400 Subject: [PATCH 1889/2363] chore: use sdk-platform-java-config instead of java-shared-config (#2144) Missed updating this POM in https://togithub.com/googleapis/java-pubsub/pull/1895 Closes https://togithub.com/googleapis/java-pubsub/pull/2138 --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9faf2d71e9a8..84171f9f9a2c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -7,8 +7,8 @@ pom com.google.cloud - google-cloud-shared-config - 1.9.1 + sdk-platform-java-config + 3.34.0 Google Cloud pubsub BOM From ca3a4db5b59bb1a28452dbe4fd479ff8a742e22e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 20 Aug 2024 16:16:25 +0200 Subject: [PATCH 1890/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.34.0 (#2141) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 96fde5ee48c3..b2c99f91e010 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.33.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.34.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 7008a7215676..53cd15405a61 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.33.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.34.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 931f9bb00528..e211e47fc692 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.33.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.34.0" } env_vars: { diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e40a2b282175..87805d920705 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.33.0 + 3.34.0 From 3a1c540040cd9d0b905ce7338602739322487dd2 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 20 Aug 2024 10:32:56 -0400 Subject: [PATCH 1891/2363] chore: Update generation configuration at Tue Aug 20 02:18:11 UTC 2024 (#2146) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 46bf041204fa..9324e834085a 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.44.0 -googleapis_commitish: 21c206f7370ed960b1c00418cb1edbdb81e3f999 +googleapis_commitish: b678386866ca6ee40c84c9043beb70992309343e libraries_bom_version: 26.44.0 libraries: - api_shortname: pubsub From 44d6d055d1fddf297452443885279111c4b43661 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:18:11 -0400 Subject: [PATCH 1892/2363] chore(main): release 1.132.1 (#2137) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/CHANGELOG.md | 10 ++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 28 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 4f35da2d83ab..8f716500ca18 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## [1.132.1](https://github.com/googleapis/java-pubsub/compare/v1.132.0...v1.132.1) (2024-08-20) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.42.0 ([#2140](https://github.com/googleapis/java-pubsub/issues/2140)) ([80dca35](https://github.com/googleapis/java-pubsub/commit/80dca35cebb1061f3d2a852ff9929519e69283cc)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.34.0 ([#2141](https://github.com/googleapis/java-pubsub/issues/2141)) ([273fbf3](https://github.com/googleapis/java-pubsub/commit/273fbf3f752444a397b0e743c5c6de1a539291ea)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.27.3 ([#2127](https://github.com/googleapis/java-pubsub/issues/2127)) ([8523b4f](https://github.com/googleapis/java-pubsub/commit/8523b4f67f45ac219671c0d588bac7e9dc450dcb)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.6 ([#2135](https://github.com/googleapis/java-pubsub/issues/2135)) ([102ff84](https://github.com/googleapis/java-pubsub/commit/102ff844594687b3bbaca1ff92e650fe9e8d3f1e)) + ## [1.132.0](https://github.com/googleapis/java-pubsub/compare/v1.131.0...v1.132.0) (2024-08-01) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 84171f9f9a2c..3b511205620f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.1-SNAPSHOT + 1.132.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.1-SNAPSHOT + 1.132.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 65f673bf4298..faedf32c8b1e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.1-SNAPSHOT + 1.132.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.1-SNAPSHOT + 1.132.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7c3c1ec3588a..29e3db076eab 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.1-SNAPSHOT + 1.132.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 87805d920705..0257f703d8aa 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.1-SNAPSHOT + 1.132.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 com.google.cloud google-cloud-pubsub - 1.132.1-SNAPSHOT + 1.132.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index eae0f5a09d49..e630c47f4f3d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1-SNAPSHOT + 1.114.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.1-SNAPSHOT + 1.132.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e95ee872ac01..ca72ea15b576 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.1-SNAPSHOT + 1.132.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e5df1af3914a..f41b4a3640aa 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.0:1.132.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.114.0:1.114.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.114.0:1.114.1-SNAPSHOT +google-cloud-pubsub:1.132.1:1.132.1 +grpc-google-cloud-pubsub-v1:1.114.1:1.114.1 +proto-google-cloud-pubsub-v1:1.114.1:1.114.1 From 66822b2fd43820fdf34dc446e91cc32bdd91da12 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 Aug 2024 00:55:18 +0200 Subject: [PATCH 1893/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.42.0 (#2145) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 57310f585711..31bc07d54f50 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.41.0 + 2.42.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ca72ea15b576..e0c8ef87f9c8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.41.0 + 2.42.0 From 90af6637f3a41df0daf2d68fd53a472e48f5306a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 23 Aug 2024 04:47:27 +0200 Subject: [PATCH 1894/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.7.0 (#2150) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0257f703d8aa..1fae72d3dda3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.6.2 + 3.7.0 From 30a7ed97e5463641fbbae3e59410821025dafa1a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 23 Aug 2024 04:48:21 +0200 Subject: [PATCH 1895/2363] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.5.0 (#2151) --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 044ce66064b4..8a542617179d 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -74,7 +74,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.4.0 + 3.5.0 checkstyle-suppressions.xml From 3e22c1a380ece339cf8d5727deb819d26e7a7b45 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Aug 2024 16:02:18 +0200 Subject: [PATCH 1896/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.132.1 (#2148) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 31bc07d54f50..95ffd3215cda 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.1 From 2052c0aeea89d24f5c3f79534b2c9831dba9c1f2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Aug 2024 16:29:49 +0200 Subject: [PATCH 1897/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.27.4 (#2153) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 95ffd3215cda..1de50f528722 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.27.3 + 4.27.4 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e0c8ef87f9c8..0aba296e9cd2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.27.3 + 4.27.4 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6979a3a79152..1689cea94cab 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.27.3 + 4.27.4 From 6f1cca8ce1e9987b06a2169a6b757646cdf7f696 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Aug 2024 16:30:07 +0200 Subject: [PATCH 1898/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.45.0 (#2154) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1689cea94cab..5a0f186734c7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.44.0 + 26.45.0 pom import From 6f5ab5779fddb45d168c711fe9643912e02a214c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 28 Aug 2024 23:21:37 +0200 Subject: [PATCH 1899/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.42.1 (#2152) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1de50f528722..0d38d380989b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.42.0 + 2.42.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0aba296e9cd2..e3c42ecb2ce5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.42.0 + 2.42.1 com.google.cloud From cbc2130a34af431d3f456a2c18aad35fc129f301 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:21:49 -0400 Subject: [PATCH 1900/2363] chore: Update generation configuration at Wed Aug 28 02:20:05 UTC 2024 (#2149) * chore: Update generation configuration at Wed Aug 21 02:18:16 UTC 2024 * chore: Update generation configuration at Fri Aug 23 02:18:32 UTC 2024 * chore: Update generation configuration at Sat Aug 24 02:18:04 UTC 2024 * chore: Update generation configuration at Tue Aug 27 02:19:29 UTC 2024 * chore: Update generation configuration at Wed Aug 28 02:20:05 UTC 2024 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 9324e834085a..9db6c1b1f05e 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.44.0 -googleapis_commitish: b678386866ca6ee40c84c9043beb70992309343e +googleapis_commitish: a8f277295c12490d49c196b791e2101500864c30 libraries_bom_version: 26.44.0 libraries: - api_shortname: pubsub From 69f035fb107632d173e817c7add90a5572b8cf32 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 29 Aug 2024 13:31:34 -0400 Subject: [PATCH 1901/2363] chore: Regenerate us-states.proto to no longer reference removed methods (#2068) * chore: Regenerate us-states.proto to no longer reference removed methods * chore: Fix formatting for StateProto.java * chore: Change protobuf for StateProto.java version to 3.25.3 * chore: Reformat StateProto.java * chore: Regenerate us-states.proto with protobuf v27.4 * chore: Revert StateProto generation to use protobuf v25.4 --- .../src/main/java/utilities/StateProto.java | 480 +++++++++--------- 1 file changed, 232 insertions(+), 248 deletions(-) diff --git a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java index 60701da371b3..8c9ece5de96e 100644 --- a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java +++ b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,9 +14,6 @@ * limitations under the License. */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: us-states.proto - /** * This file is created using protoc. * @@ -27,59 +24,63 @@ *

    `protoc --proto_path=src/main/resources/ --java_out=src/main/java/ * src/main/resources/us-states.proto` */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: us-states.proto + +// Protobuf Java Version: 3.25.4 package utilities; public final class StateProto { private StateProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { } - public interface StateOrBuilder - extends + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface StateOrBuilder extends // @@protoc_insertion_point(interface_extends:utilities.State) com.google.protobuf.MessageOrBuilder { /** * string name = 1; - * * @return The name. */ java.lang.String getName(); /** * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** * string post_abbr = 2; - * * @return The postAbbr. */ java.lang.String getPostAbbr(); /** * string post_abbr = 2; - * * @return The bytes for postAbbr. */ - com.google.protobuf.ByteString getPostAbbrBytes(); + com.google.protobuf.ByteString + getPostAbbrBytes(); } - /** Protobuf type {@code utilities.State} */ - public static final class State extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code utilities.State} + */ + public static final class State extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:utilities.State) StateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use State.newBuilder() to construct. private State(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private State() { name_ = ""; postAbbr_ = ""; @@ -87,67 +88,13 @@ private State() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new State(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private State( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - postAbbr_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -160,10 +107,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * string name = 1; - * * @return The name. */ @java.lang.Override @@ -172,7 +119,8 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -180,15 +128,16 @@ public java.lang.String getName() { } /** * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -197,10 +146,10 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int POST_ABBR_FIELD_NUMBER = 2; - private volatile java.lang.Object postAbbr_; + @SuppressWarnings("serial") + private volatile java.lang.Object postAbbr_ = ""; /** * string post_abbr = 2; - * * @return The postAbbr. */ @java.lang.Override @@ -209,7 +158,8 @@ public java.lang.String getPostAbbr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postAbbr_ = s; return s; @@ -217,15 +167,16 @@ public java.lang.String getPostAbbr() { } /** * string post_abbr = 2; - * * @return The bytes for postAbbr. */ @java.lang.Override - public com.google.protobuf.ByteString getPostAbbrBytes() { + public com.google.protobuf.ByteString + getPostAbbrBytes() { java.lang.Object ref = postAbbr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postAbbr_ = b; return b; } else { @@ -234,7 +185,6 @@ public com.google.protobuf.ByteString getPostAbbrBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,14 +196,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getPostAbbrBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postAbbr_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, postAbbr_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -262,13 +213,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getPostAbbrBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postAbbr_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, postAbbr_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -276,16 +227,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof utilities.StateProto.State)) { return super.equals(obj); } utilities.StateProto.State other = (utilities.StateProto.State) obj; - if (!getName().equals(other.getName())) return false; - if (!getPostAbbr().equals(other.getPostAbbr())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPostAbbr() + .equals(other.getPostAbbr())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,98 +253,95 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + POST_ABBR_FIELD_NUMBER; hash = (53 * hash) + getPostAbbr().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static utilities.StateProto.State parseFrom(java.nio.ByteBuffer data) + public static utilities.StateProto.State parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static utilities.StateProto.State parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static utilities.StateProto.State parseFrom(com.google.protobuf.ByteString data) + public static utilities.StateProto.State parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static utilities.StateProto.State parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static utilities.StateProto.State parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static utilities.StateProto.State parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static utilities.StateProto.State parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static utilities.StateProto.State parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static utilities.StateProto.State parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static utilities.StateProto.State parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static utilities.StateProto.State parseFrom(com.google.protobuf.CodedInputStream input) + public static utilities.StateProto.State parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static utilities.StateProto.State parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(utilities.StateProto.State prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -400,13 +350,15 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code utilities.State} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code utilities.State} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:utilities.State) utilities.StateProto.StateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -420,30 +372,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using utilities.StateProto.State.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } - @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - postAbbr_ = ""; - return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -464,51 +412,57 @@ public utilities.StateProto.State build() { @java.lang.Override public utilities.StateProto.State buildPartial() { utilities.StateProto.State result = new utilities.StateProto.State(this); - result.name_ = name_; - result.postAbbr_ = postAbbr_; + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(utilities.StateProto.State result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.postAbbr_ = postAbbr_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof utilities.StateProto.State) { - return mergeFrom((utilities.StateProto.State) other); + return mergeFrom((utilities.StateProto.State)other); } else { super.mergeFrom(other); return this; @@ -519,13 +473,15 @@ public Builder mergeFrom(utilities.StateProto.State other) { if (other == utilities.StateProto.State.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getPostAbbr().isEmpty()) { postAbbr_ = other.postAbbr_; + bitField0_ |= 0x00000002; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -540,30 +496,54 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - utilities.StateProto.State parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + postAbbr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (utilities.StateProto.State) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -573,14 +553,15 @@ public java.lang.String getName() { } /** * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -589,43 +570,38 @@ public com.google.protobuf.ByteString getNameBytes() { } /** * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } /** * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,13 +609,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object postAbbr_ = ""; /** * string post_abbr = 2; - * * @return The postAbbr. */ public java.lang.String getPostAbbr() { java.lang.Object ref = postAbbr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postAbbr_ = s; return s; @@ -649,14 +625,15 @@ public java.lang.String getPostAbbr() { } /** * string post_abbr = 2; - * * @return The bytes for postAbbr. */ - public com.google.protobuf.ByteString getPostAbbrBytes() { + public com.google.protobuf.ByteString + getPostAbbrBytes() { java.lang.Object ref = postAbbr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); postAbbr_ = b; return b; } else { @@ -665,47 +642,41 @@ public com.google.protobuf.ByteString getPostAbbrBytes() { } /** * string post_abbr = 2; - * * @param value The postAbbr to set. * @return This builder for chaining. */ - public Builder setPostAbbr(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + public Builder setPostAbbr( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } postAbbr_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** * string post_abbr = 2; - * * @return This builder for chaining. */ public Builder clearPostAbbr() { - postAbbr_ = getDefaultInstance().getPostAbbr(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string post_abbr = 2; - * * @param value The bytes for postAbbr to set. * @return This builder for chaining. */ - public Builder setPostAbbrBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPostAbbrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - postAbbr_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -718,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:utilities.State) } // @@protoc_insertion_point(class_scope:utilities.State) private static final utilities.StateProto.State DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new utilities.StateProto.State(); } @@ -732,16 +703,27 @@ public static utilities.StateProto.State getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public State parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new State(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public State parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,35 +738,37 @@ public com.google.protobuf.Parser getParserForType() { public utilities.StateProto.State getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_utilities_State_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_utilities_State_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_utilities_State_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { - "\n\017us-states.proto\022\tutilities\"(\n\005State\022\014\n" - + "\004name\030\001 \001(\t\022\021\n\tpost_abbr\030\002 \001(\tB\014B\nStateP" - + "rotob\006proto3" + "\n\017us-states.proto\022\tutilities\"(\n\005State\022\014\n" + + "\004name\030\001 \001(\t\022\021\n\tpost_abbr\030\002 \001(\tB\014B\nStateP" + + "rotob\006proto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_utilities_State_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_utilities_State_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_utilities_State_descriptor, - new java.lang.String[] { - "Name", "PostAbbr", - }); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_utilities_State_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_utilities_State_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_utilities_State_descriptor, + new java.lang.String[] { "Name", "PostAbbr", }); } // @@protoc_insertion_point(outer_class_scope) From 8b68f207dc5a265963d4b3386d758234878d50d2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 29 Aug 2024 20:18:47 +0200 Subject: [PATCH 1902/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.28.0 (#2155) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0d38d380989b..3baaaaaba143 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.27.4 + 4.28.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e3c42ecb2ce5..c47b5070996a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.27.4 + 4.28.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5a0f186734c7..b5255702d26c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.27.4 + 4.28.0 From 47d5df8bdb0f073ac69f38f65b647a95ff71e2b1 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Thu, 5 Sep 2024 13:16:50 -0400 Subject: [PATCH 1903/2363] chore: remove unused image tag in .OwlBot-hermetic.yaml (#2160) This removes the unused image tag in this file. Part of the cleanup after enabling Hermetic Library generation in this repo. Newline at EOF automatically added - see [this SO](https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline). --- java-pubsub/.github/.OwlBot-hermetic.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/java-pubsub/.github/.OwlBot-hermetic.yaml b/java-pubsub/.github/.OwlBot-hermetic.yaml index d9ed293caf17..1757987e4305 100644 --- a/java-pubsub/.github/.OwlBot-hermetic.yaml +++ b/java-pubsub/.github/.OwlBot-hermetic.yaml @@ -11,10 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - -docker: - image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" - deep-remove-regex: - "/grpc-google-.*/src" - "/proto-google-.*/src" From f33becb56b24597698f092bdfaf959171d273877 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 6 Sep 2024 00:02:19 +0200 Subject: [PATCH 1904/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.42.2 (#2157) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3baaaaaba143..416f737a7788 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.42.1 + 2.42.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c47b5070996a..b25cbbc105d7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.42.1 + 2.42.2 com.google.cloud From 61545d5df4cae9c2bc9460ce576aa309a44228e7 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:49:18 -0400 Subject: [PATCH 1905/2363] chore: Update generation configuration at Tue Sep 10 02:23:16 UTC 2024 (#2156) * chore: Update generation configuration at Thu Aug 29 02:21:05 UTC 2024 * chore: Update generation configuration at Fri Aug 30 02:21:44 UTC 2024 * chore: Update generation configuration at Sat Aug 31 02:20:41 UTC 2024 * chore: Update generation configuration at Wed Sep 4 02:21:45 UTC 2024 * chore: Update generation configuration at Thu Sep 5 02:22:12 UTC 2024 * chore: Update generation configuration at Fri Sep 6 02:22:02 UTC 2024 * chore: Update generation configuration at Sat Sep 7 02:20:17 UTC 2024 * chore: Update generation configuration at Sun Sep 8 02:25:47 UTC 2024 * chore: Update generation configuration at Tue Sep 10 02:23:16 UTC 2024 --- java-pubsub/generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 9db6c1b1f05e..93004daf5253 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.44.0 -googleapis_commitish: a8f277295c12490d49c196b791e2101500864c30 -libraries_bom_version: 26.44.0 +googleapis_commitish: 32bc03653260356351854429bd7e2dfbf670d352 +libraries_bom_version: 26.45.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From d8678a21aff680d0358084f7ba72427b0740bb95 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:16:21 -0400 Subject: [PATCH 1906/2363] chore: Update generation configuration at Tue Sep 10 17:20:38 UTC 2024 (#2164) --- java-pubsub/generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 93004daf5253..090a13e62a93 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.44.0 -googleapis_commitish: 32bc03653260356351854429bd7e2dfbf670d352 +gapic_generator_version: 2.45.0 +googleapis_commitish: 02f62c8e241a9f95f0d183785354e90e35388cbd libraries_bom_version: 26.45.0 libraries: - api_shortname: pubsub From a25331bf283d4599a307c6df5538bcb8c267d30d Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 10 Sep 2024 15:28:01 -0400 Subject: [PATCH 1907/2363] samples: Add style check supressions for generated StateProto.java file (#2163) * samples: Add style check supressions for generated StateProto.java file * samples: Suppress all style checks for StateProto.java --- java-pubsub/samples/checkstyle-suppressions.xml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/java-pubsub/samples/checkstyle-suppressions.xml b/java-pubsub/samples/checkstyle-suppressions.xml index 2d134a8c210b..a1bfbb84ae12 100644 --- a/java-pubsub/samples/checkstyle-suppressions.xml +++ b/java-pubsub/samples/checkstyle-suppressions.xml @@ -20,15 +20,9 @@ "https://checkstyle.org/dtds/suppressions_1_2.dtd"> - - - - - - - - - + + - + + \ No newline at end of file From 30caf8bf8906f8ecbfe366c4674feb4d9a34fe8d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Sep 2024 04:45:18 +0200 Subject: [PATCH 1908/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.35.0 (#2162) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index b2c99f91e010..cef56c65d7f3 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.34.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.35.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 53cd15405a61..ec11dece6110 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.34.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.35.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index e211e47fc692..85ab5c49b1ee 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.34.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.35.0" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3b511205620f..390ffa5bb912 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.34.0 + 3.35.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1fae72d3dda3..932da888d986 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.34.0 + 3.35.0 From c6cbcb45459ab43015a1fa9df6614667aee12a2d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Sep 2024 04:51:18 +0200 Subject: [PATCH 1909/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.43.0 (#2161) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 416f737a7788..b32a1cc43bcc 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.42.0 + 2.43.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b25cbbc105d7..997575346f61 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.42.0 + 2.43.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index b5255702d26c..efb5ef9d1c3d 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.42.0 + 2.43.0 tests From 95b8ba4faf1e7c4a0f31b949b3edabd92afbcf52 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 10 Sep 2024 22:53:54 -0400 Subject: [PATCH 1910/2363] chore: Update generation configuration at Wed Sep 11 02:22:19 UTC 2024 (#2166) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 090a13e62a93..b554feb5c358 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.45.0 -googleapis_commitish: 02f62c8e241a9f95f0d183785354e90e35388cbd +googleapis_commitish: cbf696d38a963c5ab333f85fc9a910b5698ad415 libraries_bom_version: 26.45.0 libraries: - api_shortname: pubsub From 5cf4e449cd65769b568155746cd21ac035780862 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Sep 2024 21:07:46 +0200 Subject: [PATCH 1911/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.7 (#2165) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b32a1cc43bcc..29763d32a330 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.6 + 1.1.10.7 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 997575346f61..216c18a83332 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.6 + 1.1.10.7 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index efb5ef9d1c3d..a4b7a6efcf05 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -75,7 +75,7 @@ org.xerial.snappy snappy-java - 1.1.10.6 + 1.1.10.7 com.google.protobuf From d6dfc9fafb3ba19ed957713cb740f006d66fd4ae Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Sep 2024 22:13:01 +0200 Subject: [PATCH 1912/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.28.1 (#2167) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 29763d32a330..1db0c3551ec4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.28.0 + 4.28.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 216c18a83332..93fed750f2c1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.28.0 + 4.28.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a4b7a6efcf05..2e69ffa83ca6 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.28.0 + 4.28.1 From 7c24973a76542f19efa267c968884b261f9632dc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 17:05:02 -0400 Subject: [PATCH 1913/2363] chore(main): release 1.132.2-SNAPSHOT (#2147) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 390ffa5bb912..7fc72532254e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.1 + 1.132.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.1 + 1.132.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index faedf32c8b1e..200cb45f64d8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.1 + 1.132.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.1 + 1.132.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 29e3db076eab..3cd3de4d71fb 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.1 + 1.132.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 932da888d986..1c0ee1bedcc6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.1 + 1.132.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.132.1 + 1.132.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e630c47f4f3d..e714f90aa876 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.1 + 1.114.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.1 + 1.132.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 93fed750f2c1..25dbe21becda 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.1 + 1.132.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f41b4a3640aa..ebe6fdcb1e74 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.1:1.132.1 -grpc-google-cloud-pubsub-v1:1.114.1:1.114.1 -proto-google-cloud-pubsub-v1:1.114.1:1.114.1 +google-cloud-pubsub:1.132.1:1.132.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.114.1:1.114.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.114.1:1.114.2-SNAPSHOT From c1917395a3897a656659e03b6c633820e3ceb1ae Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 21:22:30 +0000 Subject: [PATCH 1914/2363] chore(main): release 1.132.2 (#2168) :robot: I have created a release *beep* *boop* --- ## [1.132.2](https://togithub.com/googleapis/java-pubsub/compare/v1.132.1...v1.132.2) (2024-09-11) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.1 ([#2152](https://togithub.com/googleapis/java-pubsub/issues/2152)) ([6f5ab57](https://togithub.com/googleapis/java-pubsub/commit/6f5ab5779fddb45d168c711fe9643912e02a214c)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.2 ([#2157](https://togithub.com/googleapis/java-pubsub/issues/2157)) ([f33becb](https://togithub.com/googleapis/java-pubsub/commit/f33becb56b24597698f092bdfaf959171d273877)) * Update dependency com.google.cloud:google-cloud-core to v2.43.0 ([#2161](https://togithub.com/googleapis/java-pubsub/issues/2161)) ([c6cbcb4](https://togithub.com/googleapis/java-pubsub/commit/c6cbcb45459ab43015a1fa9df6614667aee12a2d)) * Update dependency com.google.cloud:google-cloud-storage to v2.42.0 ([#2145](https://togithub.com/googleapis/java-pubsub/issues/2145)) ([66822b2](https://togithub.com/googleapis/java-pubsub/commit/66822b2fd43820fdf34dc446e91cc32bdd91da12)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.35.0 ([#2162](https://togithub.com/googleapis/java-pubsub/issues/2162)) ([30caf8b](https://togithub.com/googleapis/java-pubsub/commit/30caf8bf8906f8ecbfe366c4674feb4d9a34fe8d)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.4 ([#2153](https://togithub.com/googleapis/java-pubsub/issues/2153)) ([2052c0a](https://togithub.com/googleapis/java-pubsub/commit/2052c0aeea89d24f5c3f79534b2c9831dba9c1f2)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.0 ([#2155](https://togithub.com/googleapis/java-pubsub/issues/2155)) ([8b68f20](https://togithub.com/googleapis/java-pubsub/commit/8b68f207dc5a265963d4b3386d758234878d50d2)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.1 ([#2167](https://togithub.com/googleapis/java-pubsub/issues/2167)) ([d6dfc9f](https://togithub.com/googleapis/java-pubsub/commit/d6dfc9fafb3ba19ed957713cb740f006d66fd4ae)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.7 ([#2165](https://togithub.com/googleapis/java-pubsub/issues/2165)) ([5cf4e44](https://togithub.com/googleapis/java-pubsub/commit/5cf4e449cd65769b568155746cd21ac035780862)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 15 +++++++++++++++ java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 33 insertions(+), 18 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 8f716500ca18..4cd8af8d0d5f 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.132.2](https://github.com/googleapis/java-pubsub/compare/v1.132.1...v1.132.2) (2024-09-11) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.42.1 ([#2152](https://github.com/googleapis/java-pubsub/issues/2152)) ([1457489](https://github.com/googleapis/java-pubsub/commit/1457489cb51c12bc7ad8ab8ddcf2252a2f513a79)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.42.2 ([#2157](https://github.com/googleapis/java-pubsub/issues/2157)) ([d671347](https://github.com/googleapis/java-pubsub/commit/d671347004a68c53cdf3fdfb9d1a7ed992ee162f)) +* Update dependency com.google.cloud:google-cloud-core to v2.43.0 ([#2161](https://github.com/googleapis/java-pubsub/issues/2161)) ([05a37b7](https://github.com/googleapis/java-pubsub/commit/05a37b786686c24f87eec5e9919c16b2b67465be)) +* Update dependency com.google.cloud:google-cloud-storage to v2.42.0 ([#2145](https://github.com/googleapis/java-pubsub/issues/2145)) ([77c3e78](https://github.com/googleapis/java-pubsub/commit/77c3e78d34e894c05653371027cd2b1d12cea9d0)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.35.0 ([#2162](https://github.com/googleapis/java-pubsub/issues/2162)) ([27eaffd](https://github.com/googleapis/java-pubsub/commit/27eaffd5fa55789b456eaeba98f6800343f3685e)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.27.4 ([#2153](https://github.com/googleapis/java-pubsub/issues/2153)) ([32c78b3](https://github.com/googleapis/java-pubsub/commit/32c78b31e7a904fb6b6a2b55f81e7e3ab7525add)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.28.0 ([#2155](https://github.com/googleapis/java-pubsub/issues/2155)) ([5f61fe1](https://github.com/googleapis/java-pubsub/commit/5f61fe13f6fea1d30ab0e85be0221e70056369f6)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.28.1 ([#2167](https://github.com/googleapis/java-pubsub/issues/2167)) ([bb8ea71](https://github.com/googleapis/java-pubsub/commit/bb8ea717ed0234fdbb582f2915a016fd37657448)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.7 ([#2165](https://github.com/googleapis/java-pubsub/issues/2165)) ([e7fb60e](https://github.com/googleapis/java-pubsub/commit/e7fb60ecccb8bb9fbc6147210491a52ee0f5a817)) + ## [1.132.1](https://github.com/googleapis/java-pubsub/compare/v1.132.0...v1.132.1) (2024-08-20) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7fc72532254e..992115ba7fd9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.2-SNAPSHOT + 1.132.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.2-SNAPSHOT + 1.132.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 200cb45f64d8..e70609f2da90 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.2-SNAPSHOT + 1.132.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.2-SNAPSHOT + 1.132.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3cd3de4d71fb..47dd149d370d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.2-SNAPSHOT + 1.132.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1c0ee1bedcc6..7f12aa70468a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.2-SNAPSHOT + 1.132.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 com.google.cloud google-cloud-pubsub - 1.132.2-SNAPSHOT + 1.132.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e714f90aa876..3cb4f3bc0cec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2-SNAPSHOT + 1.114.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.2-SNAPSHOT + 1.132.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 25dbe21becda..d26f7a438579 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.2-SNAPSHOT + 1.132.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ebe6fdcb1e74..714f58fc6a5e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.1:1.132.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.114.1:1.114.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.114.1:1.114.2-SNAPSHOT +google-cloud-pubsub:1.132.2:1.132.2 +grpc-google-cloud-pubsub-v1:1.114.2:1.114.2 +proto-google-cloud-pubsub-v1:1.114.2:1.114.2 From 32b497fb730638f5f229a09d74a054e22b922c14 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 21:48:28 +0000 Subject: [PATCH 1915/2363] chore(main): release 1.132.3-SNAPSHOT (#2169) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 992115ba7fd9..49f8c69c327c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.2 + 1.132.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e70609f2da90..ed0eca8482c7 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.2 + 1.132.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 47dd149d370d..90a0a921a267 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.2 + 1.132.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7f12aa70468a..f9327b2dae37 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.2 + 1.132.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3cb4f3bc0cec..69eeaeeb0f52 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.2 + 1.114.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.2 + 1.132.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d26f7a438579..5aab3cf19f46 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 714f58fc6a5e..c859219132f2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.2:1.132.2 -grpc-google-cloud-pubsub-v1:1.114.2:1.114.2 -proto-google-cloud-pubsub-v1:1.114.2:1.114.2 +google-cloud-pubsub:1.132.2:1.132.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.114.2:1.114.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.114.2:1.114.3-SNAPSHOT From 408f2d0276191c74e3099b4e8c651a97d37caa68 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Thu, 12 Sep 2024 19:47:50 +0000 Subject: [PATCH 1916/2363] chore: Add Clirr exemptions for Protobuf 4.27.4+ runtime (#2172) --- .../clirr-ignored-differences.xml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml b/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml index 223719761f56..75ea618eaae2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/clirr-ignored-differences.xml @@ -16,4 +16,66 @@ com/google/pubsub/v1/*OrBuilder boolean has*(*) + + + + 7006 + com/google/pubsub/v1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/pubsub/v1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/pubsub/v1/** + * clear() + ** + + + 7006 + com/google/pubsub/v1/** + * clearField(*) + ** + + + 7006 + com/google/pubsub/v1/** + * clearOneof(*) + ** + + + 7006 + com/google/pubsub/v1/** + * clone() + ** + + + 7006 + com/google/pubsub/v1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/pubsub/v1/** + * setField(*) + ** + + + 7006 + com/google/pubsub/v1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/pubsub/v1/** + * setUnknownFields(*) + ** + From 4127d39622338eb4c1d078a094d8e044e44732db Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 18 Sep 2024 05:37:19 +0200 Subject: [PATCH 1917/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.132.2 (#2170) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1db0c3551ec4..1cabc63bcfcc 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.132.1 + 1.132.2 From 7621f47cfe3df81b7691c7798a6b8143fd6d522f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 18 Sep 2024 06:04:30 +0200 Subject: [PATCH 1918/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.42.3 (#2173) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1cabc63bcfcc..3a85a597ffb5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.42.2 + 2.42.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5aab3cf19f46..59142bdfe8a8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.42.2 + 2.42.3 com.google.cloud From e44917a9129eaf3b312ce8b1bc277106b89e5c0e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 18 Sep 2024 06:24:49 +0200 Subject: [PATCH 1919/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.46.0 (#2176) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2e69ffa83ca6..5ed61f6df254 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.45.0 + 26.46.0 pom import From e45d82137944bd06e3602e911007e8d43417efe3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 18 Sep 2024 06:25:02 +0200 Subject: [PATCH 1920/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.43.0 (#2174) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3a85a597ffb5..8f49b8c25a4a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.42.0 + 2.43.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 59142bdfe8a8..a07675f1ee63 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.42.0 + 2.43.0 From 6881763e9b864d79f7e190ac887f2d75ab4067c0 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 18 Sep 2024 00:25:25 -0400 Subject: [PATCH 1921/2363] chore: Update generation configuration at Wed Sep 18 02:23:27 UTC 2024 (#2171) * chore: Update generation configuration at Thu Sep 12 02:22:51 UTC 2024 * chore: Update generation configuration at Fri Sep 13 02:23:36 UTC 2024 * chore: Update generation configuration at Sat Sep 14 02:21:46 UTC 2024 * chore: Update generation configuration at Mon Sep 16 02:28:10 UTC 2024 * chore: Update generation configuration at Tue Sep 17 02:11:14 UTC 2024 * chore: Update generation configuration at Wed Sep 18 02:23:27 UTC 2024 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index b554feb5c358..77ea2c732697 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.45.0 -googleapis_commitish: cbf696d38a963c5ab333f85fc9a910b5698ad415 +googleapis_commitish: 42219196a8f02e2e17198ad88f4369324dfe1f09 libraries_bom_version: 26.45.0 libraries: - api_shortname: pubsub From 490033e45f987740f204596ae5188ed3d27e7405 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 19 Sep 2024 16:06:38 +0200 Subject: [PATCH 1922/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.47.0 (#2180) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5ed61f6df254..6f2fc3afc4ad 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.46.0 + 26.47.0 pom import From 551414818c61b6fc9800f29807b72b76f0f03331 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 19 Sep 2024 16:07:01 +0200 Subject: [PATCH 1923/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.28.2 (#2179) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8f49b8c25a4a..4c57cb7a1573 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.28.1 + 4.28.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a07675f1ee63..651e9f1b0993 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.28.1 + 4.28.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6f2fc3afc4ad..d410346b0c53 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ com.google.protobuf protobuf-java-util - 4.28.1 + 4.28.2 From ef7731627198e8ddf3ec1843aac6c237b182eddf Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:07:15 -0400 Subject: [PATCH 1924/2363] chore: Update generation configuration at Thu Sep 19 02:24:56 UTC 2024 (#2181) --- java-pubsub/generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 77ea2c732697..514c96d4b7c6 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.45.0 -googleapis_commitish: 42219196a8f02e2e17198ad88f4369324dfe1f09 -libraries_bom_version: 26.45.0 +googleapis_commitish: 607c2ae82620153880a66898bcbf0a46d38d7d10 +libraries_bom_version: 26.46.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 9664968d5230b4afd96f2208b52534d77cf5dbf5 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:40:50 -0400 Subject: [PATCH 1925/2363] chore: Update generation configuration at Sat Sep 21 02:27:55 UTC 2024 (#2182) * chore: Update generation configuration at Fri Sep 20 02:24:38 UTC 2024 * chore: Update generation configuration at Sat Sep 21 02:27:55 UTC 2024 --- java-pubsub/generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 514c96d4b7c6..37c2a59f14dd 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.45.0 -googleapis_commitish: 607c2ae82620153880a66898bcbf0a46d38d7d10 -libraries_bom_version: 26.46.0 +googleapis_commitish: a18d9b2c3563527b26c4b713469e795b92795271 +libraries_bom_version: 26.47.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From ae28abde1c44a65521b70116f95cae51a501a432 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 23 Sep 2024 21:41:14 +0200 Subject: [PATCH 1926/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.44.0 (#2184) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4c57cb7a1573..8b27dc121ec2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.43.0 + 2.44.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 651e9f1b0993..28146f4e3a85 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.43.0 + 2.44.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d410346b0c53..95cf2cb98a37 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.43.0 + 2.44.0 tests From 414e62b108a9ec7f642e1e4c7a708bd0ba124459 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 23 Sep 2024 21:41:31 +0200 Subject: [PATCH 1927/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.36.0 (#2185) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index cef56c65d7f3..721e0301f62e 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.35.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.36.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index ec11dece6110..1f52e93ed7ae 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.35.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.36.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 85ab5c49b1ee..bf7743f744f8 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.35.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.36.0" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 49f8c69c327c..af66a2f7eef6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.35.0 + 3.36.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f9327b2dae37..17973fd64908 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.35.0 + 3.36.0 From bd8efa1044866404a8205a2f7078f7e707a36f51 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:20:24 -0400 Subject: [PATCH 1928/2363] chore: Update generation configuration at Tue Sep 24 21:08:11 UTC 2024 (#2187) chore: Update generation configuration at Tue Sep 24 21:08:11 UTC 2024 --- java-pubsub/generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 37c2a59f14dd..66fd8ce270ad 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.45.0 -googleapis_commitish: a18d9b2c3563527b26c4b713469e795b92795271 +gapic_generator_version: 2.46.0 +googleapis_commitish: 69e9dff10df4fa1e338712d38dc26b46791a6e94 libraries_bom_version: 26.47.0 libraries: - api_shortname: pubsub From 033b514c1c45460f730bf18796ea76c2966e8f6e Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:58:41 -0400 Subject: [PATCH 1929/2363] chore: Update generation configuration at Wed Sep 25 02:27:20 UTC 2024 (#2188) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 66fd8ce270ad..166cf28a7ed4 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.46.0 -googleapis_commitish: 69e9dff10df4fa1e338712d38dc26b46791a6e94 +googleapis_commitish: 5c181aaf78bd1ae2e08c3a2971cd9e87b6e00986 libraries_bom_version: 26.47.0 libraries: - api_shortname: pubsub From fe24c4e02d2e297a0c34a5ecb26e234360163f05 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 26 Sep 2024 17:21:47 +0200 Subject: [PATCH 1930/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.44.1 (#2190) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8b27dc121ec2..44a881ea174e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.44.0 + 2.44.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 28146f4e3a85..4c41fb2d02df 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.44.0 + 2.44.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 95cf2cb98a37..608cef86472f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -98,7 +98,7 @@ com.google.cloud google-cloud-core - 2.44.0 + 2.44.1 tests From ff9f5e827323a2614e75864e2a4e98084e07503b Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:23:38 -0400 Subject: [PATCH 1931/2363] chore: Update generation configuration at Wed Sep 25 23:44:01 UTC 2024 (#2189) * chore: Update generation configuration at Wed Sep 25 23:44:01 UTC 2024 * update gen script * update gen workflow * chore: generate libraries at Wed Sep 25 23:48:28 UTC 2024 --------- Co-authored-by: Joe Wang --- .../scripts/hermetic_library_generation.sh | 45 +- .../hermetic_library_generation.yaml | 7 +- java-pubsub/README.md | 12 +- java-pubsub/generation_config.yaml | 2 +- .../pubsub/v1/SchemaServiceSettings.java | 17 +- .../pubsub/v1/SubscriptionAdminClient.java | 4 + .../pubsub/v1/SubscriptionAdminSettings.java | 17 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 17 +- .../pubsub/v1/stub/PublisherStubSettings.java | 29 +- .../v1/stub/SchemaServiceStubSettings.java | 25 +- .../v1/stub/SubscriberStubSettings.java | 25 +- .../reflect-config.json | 144 + .../SubscriptionAdminClientHttpJsonTest.java | 18 + .../v1/SubscriptionAdminClientTest.java | 14 + .../google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../v1/AcknowledgeRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CloudStorageConfig.java | 2 +- .../v1/CloudStorageConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../v1/CommitSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../v1/CreateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/CreateSnapshotRequest.java | 2 +- .../v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../v1/DeleteSchemaRevisionRequest.java | 2 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../DeleteSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../v1/DeleteTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../DetachSubscriptionResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Encoding.java | 2 +- .../google/pubsub/v1/ExpirationPolicy.java | 2 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/GetSchemaRequest.java | 2 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../v1/GetSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/GetSubscriptionRequest.java | 2 +- .../v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../v1/IngestionDataSourceSettings.java | 5519 ++++++++++++++++- .../IngestionDataSourceSettingsOrBuilder.java | 87 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../v1/ListSchemaRevisionsResponse.java | 2 +- .../ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasRequest.java | 2 +- .../v1/ListSchemasRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasResponse.java | 2 +- .../v1/ListSchemasResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsRequest.java | 2 +- .../v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsResponse.java | 2 +- .../v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../ListSubscriptionsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsRequest.java | 2 +- ...istTopicSubscriptionsRequestOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsResponse.java | 2 +- ...stTopicSubscriptionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsRequest.java | 2 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsResponse.java | 2 +- .../v1/ListTopicsResponseOrBuilder.java | 2 +- .../pubsub/v1/MessageStoragePolicy.java | 2 +- .../v1/MessageStoragePolicyOrBuilder.java | 2 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../pubsub/v1/PlatformLogsSettings.java | 833 +++ .../v1/PlatformLogsSettingsOrBuilder.java | 55 + .../com/google/pubsub/v1/PublishRequest.java | 2 +- .../pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishResponse.java | 2 +- .../pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubMessage.java | 2 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 906 +-- .../com/google/pubsub/v1/PullRequest.java | 10 +- .../pubsub/v1/PullRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/PullResponse.java | 2 +- .../pubsub/v1/PullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PushConfig.java | 2 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/RetryPolicy.java | 2 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../pubsub/v1/RollbackSchemaRequest.java | 2 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Schema.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 2 +- .../com/google/pubsub/v1/SchemaSettings.java | 2 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SchemaView.java | 2 +- .../com/google/pubsub/v1/SeekRequest.java | 2 +- .../pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/SeekResponse.java | 2 +- .../pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Snapshot.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullRequest.java | 2 +- .../v1/StreamingPullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 2 +- .../v1/StreamingPullResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 1245 +++- .../pubsub/v1/SubscriptionOrBuilder.java | 53 +- .../main/java/com/google/pubsub/v1/Topic.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../UpdateSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../v1/UpdateTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageRequest.java | 2 +- .../v1/ValidateMessageRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageResponse.java | 2 +- .../v1/ValidateMessageResponseOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaRequest.java | 2 +- .../v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaResponse.java | 2 +- .../v1/ValidateSchemaResponseOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 142 +- 145 files changed, 8750 insertions(+), 722 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java diff --git a/java-pubsub/.github/scripts/hermetic_library_generation.sh b/java-pubsub/.github/scripts/hermetic_library_generation.sh index 6c3f22d8f9e7..49a7414cf7e8 100644 --- a/java-pubsub/.github/scripts/hermetic_library_generation.sh +++ b/java-pubsub/.github/scripts/hermetic_library_generation.sh @@ -67,20 +67,24 @@ message="chore: generate libraries at $(date)" git checkout "${target_branch}" git checkout "${current_branch}" -# if the last commit doesn't contain changes to generation configuration, -# do not generate again as the result will be the same. -change_of_last_commit="$(git diff-tree --no-commit-id --name-only HEAD~1..HEAD -r)" -if [[ ! ("${change_of_last_commit}" == *"${generation_config}"*) ]]; then - echo "The last commit doesn't contain any changes to the generation_config.yaml, skipping the whole generation process." || true - exit 0 -fi + # copy generation configuration from target branch to current branch. git show "${target_branch}":"${generation_config}" > "${baseline_generation_config}" -config_diff=$(diff "${generation_config}" "${baseline_generation_config}" || true) # parse image tag from the generation configuration. image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) +repo_root_dir=$(pwd) +mkdir -p "${repo_root_dir}/output" +# download api definitions from googleapis repository +googleapis_commitish=$(grep googleapis_commitish "${generation_config}" | cut -d ":" -f 2 | xargs) +api_def_dir=$(mktemp -d) +git clone https://github.com/googleapis/googleapis.git "${api_def_dir}" +pushd "${api_def_dir}" +git checkout "${googleapis_commitish}" +cp -r google/ grafeas/ "${repo_root_dir}/output" +popd + # run hermetic code generation docker image. docker run \ --rm \ @@ -90,26 +94,21 @@ docker run \ --baseline-generation-config-path="${workspace_name}/${baseline_generation_config}" \ --current-generation-config-path="${workspace_name}/${generation_config}" +# remove api definitions after generation +rm -rf "${api_def_dir}" # commit the change to the pull request. -if [[ $(basename $(pwd)) == "google-cloud-java" ]]; then - git add java-* pom.xml gapic-libraries-bom/pom.xml versions.txt -else - # The image leaves intermediate folders and files it works with. Here we remove them - rm -rdf output googleapis "${baseline_generation_config}" - git add --all -- ':!pr_description.txt' -fi +rm -rdf output googleapis "${baseline_generation_config}" +git add --all -- ':!pr_description.txt' ':!hermetic_library_generation.sh' changed_files=$(git diff --cached --name-only) -if [[ "${changed_files}" == "" ]]; then - echo "There is no generated code change with the generation config change ${config_diff}." - echo "Skip committing to the pull request." - exit 0 +if [[ "${changed_files}" != "" ]]; then + echo "Commit changes..." + git commit -m "${message}" + git push +else + echo "There is no generated code change, skip commit." fi -echo "Configuration diff:" -echo "${config_diff}" -git commit -m "${message}" -git push # set pr body if pr_description.txt is generated. if [[ -f "pr_description.txt" ]]; then pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index ab23b9fec097..51a087f8e59f 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -20,11 +20,10 @@ on: env: HEAD_REF: ${{ github.head_ref }} REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} + GITHUB_REPOSITORY: ${{ github.repository }} jobs: library_generation: - # skip pull requests coming from a forked repository - if: github.env.REPO_FULL_NAME == github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -35,6 +34,10 @@ jobs: shell: bash run: | set -ex + if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then + echo "This PR comes from a fork. Generation will be skipped" + exit 0 + fi [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" bash .github/scripts/hermetic_library_generation.sh \ diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bdb7167a8db4..c2585d3b6100 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.44.0 + 26.47.0 pom import @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.132.0 + 1.132.2 ``` @@ -52,20 +52,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.44.0') +implementation platform('com.google.cloud:libraries-bom:26.47.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.132.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.132.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.2" ``` @@ -414,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 166cf28a7ed4..726eccc07ee9 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.46.0 -googleapis_commitish: 5c181aaf78bd1ae2e08c3a2971cd9e87b6e00986 +googleapis_commitish: 005df4681b89bd204a90b76168a6dc9d9e7bf4fe libraries_bom_version: 26.47.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index e2dd281e0dca..103dee29d303 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -72,7 +72,9 @@ *

    The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

    For example, to set the total timeout of createSchema to 30 seconds: + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createSchema: * *

    {@code
      * // This snippet has been automatically generated and should be regarded as a code template only.
    @@ -88,10 +90,21 @@
      *             .createSchemaSettings()
      *             .getRetrySettings()
      *             .toBuilder()
    - *             .setTotalTimeout(Duration.ofSeconds(30))
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
      *             .build());
      * SchemaServiceSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
      * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class SchemaServiceSettings extends ClientSettings { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 8f23232175ab..97d94c0e9653 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -878,6 +878,8 @@ public final Subscription createSubscription( * .setDetached(true) * .setEnableExactlyOnceDelivery(true) * .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + * .setAnalyticsHubSubscriptionInfo( + * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) * .build(); * Subscription response = subscriptionAdminClient.createSubscription(request); * } @@ -1141,6 +1143,8 @@ public final Subscription createSubscription( * .setDetached(true) * .setEnableExactlyOnceDelivery(true) * .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + * .setAnalyticsHubSubscriptionInfo( + * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) * .build(); * ApiFuture future = * subscriptionAdminClient.createSubscriptionCallable().futureCall(request); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 306237dcb738..c2c8d217d409 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -80,7 +80,9 @@ *

    The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

    For example, to set the total timeout of createSubscription to 30 seconds: + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createSubscription: * *

    {@code
      * // This snippet has been automatically generated and should be regarded as a code template only.
    @@ -97,10 +99,21 @@
      *             .createSubscriptionSettings()
      *             .getRetrySettings()
      *             .toBuilder()
    - *             .setTotalTimeout(Duration.ofSeconds(30))
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
      *             .build());
      * SubscriptionAdminSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
      * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class SubscriptionAdminSettings extends ClientSettings { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 9c82ebce0f4d..08c00b2d1554 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -73,7 +73,9 @@ *

    The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

    For example, to set the total timeout of createTopic to 30 seconds: + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createTopic: * *

    {@code
      * // This snippet has been automatically generated and should be regarded as a code template only.
    @@ -89,10 +91,21 @@
      *             .createTopicSettings()
      *             .getRetrySettings()
      *             .toBuilder()
    - *             .setTotalTimeout(Duration.ofSeconds(30))
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
      *             .build());
      * TopicAdminSettings topicAdminSettings = topicAdminSettingsBuilder.build();
      * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class TopicAdminSettings extends ClientSettings { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index bc169972dd8e..f8bb0b2cac23 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -100,7 +100,9 @@ *

    The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

    For example, to set the total timeout of createTopic to 30 seconds: + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createTopic: * *

    {@code
      * // This snippet has been automatically generated and should be regarded as a code template only.
    @@ -116,10 +118,21 @@
      *             .createTopicSettings()
      *             .getRetrySettings()
      *             .toBuilder()
    - *             .setTotalTimeout(Duration.ofSeconds(30))
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
      *             .build());
      * PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build();
      * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class PublisherStubSettings extends StubSettings { @@ -182,9 +195,7 @@ public String extractNextToken(ListTopicsResponse payload) { @Override public Iterable extractResources(ListTopicsResponse payload) { - return payload.getTopicsList() == null - ? ImmutableList.of() - : payload.getTopicsList(); + return payload.getTopicsList(); } }; @@ -224,9 +235,7 @@ public String extractNextToken(ListTopicSubscriptionsResponse payload) { @Override public Iterable extractResources(ListTopicSubscriptionsResponse payload) { - return payload.getSubscriptionsList() == null - ? ImmutableList.of() - : payload.getSubscriptionsList(); + return payload.getSubscriptionsList(); } }; @@ -263,9 +272,7 @@ public String extractNextToken(ListTopicSnapshotsResponse payload) { @Override public Iterable extractResources(ListTopicSnapshotsResponse payload) { - return payload.getSnapshotsList() == null - ? ImmutableList.of() - : payload.getSnapshotsList(); + return payload.getSnapshotsList(); } }; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 1ab1f310a42b..074f2b8f7e57 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -90,7 +90,9 @@ *

    The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

    For example, to set the total timeout of createSchema to 30 seconds: + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createSchema: * *

    {@code
      * // This snippet has been automatically generated and should be regarded as a code template only.
    @@ -107,10 +109,21 @@
      *             .createSchemaSettings()
      *             .getRetrySettings()
      *             .toBuilder()
    - *             .setTotalTimeout(Duration.ofSeconds(30))
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
      *             .build());
      * SchemaServiceStubSettings schemaServiceSettings = schemaServiceSettingsBuilder.build();
      * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class SchemaServiceStubSettings extends StubSettings { @@ -171,9 +184,7 @@ public String extractNextToken(ListSchemasResponse payload) { @Override public Iterable extractResources(ListSchemasResponse payload) { - return payload.getSchemasList() == null - ? ImmutableList.of() - : payload.getSchemasList(); + return payload.getSchemasList(); } }; @@ -211,9 +222,7 @@ public String extractNextToken(ListSchemaRevisionsResponse payload) { @Override public Iterable extractResources(ListSchemaRevisionsResponse payload) { - return payload.getSchemasList() == null - ? ImmutableList.of() - : payload.getSchemasList(); + return payload.getSchemasList(); } }; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 40d5a4b5488a..7677a796f810 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -98,7 +98,9 @@ *

    The builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *

    For example, to set the total timeout of createSubscription to 30 seconds: + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of createSubscription: * *

    {@code
      * // This snippet has been automatically generated and should be regarded as a code template only.
    @@ -115,10 +117,21 @@
      *             .createSubscriptionSettings()
      *             .getRetrySettings()
      *             .toBuilder()
    - *             .setTotalTimeout(Duration.ofSeconds(30))
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
      *             .build());
      * SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
      * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. */ @Generated("by gapic-generator-java") public class SubscriberStubSettings extends StubSettings { @@ -190,9 +203,7 @@ public String extractNextToken(ListSubscriptionsResponse payload) { @Override public Iterable extractResources(ListSubscriptionsResponse payload) { - return payload.getSubscriptionsList() == null - ? ImmutableList.of() - : payload.getSubscriptionsList(); + return payload.getSubscriptionsList(); } }; @@ -226,9 +237,7 @@ public String extractNextToken(ListSnapshotsResponse payload) { @Override public Iterable extractResources(ListSnapshotsResponse payload) { - return payload.getSnapshotsList() == null - ? ImmutableList.of() - : payload.getSnapshotsList(); + return payload.getSnapshotsList(); } }; diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index de5e1f2be5d0..97fb8db418b3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -305,6 +305,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.ResourceDescriptor", "queryAllDeclaredConstructors": true, @@ -1871,6 +1889,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$AvroFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$AvroFormat$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$PubSubAvroFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$PubSubAvroFormat$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$TextFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$CloudStorage$TextFormat$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", "queryAllDeclaredConstructors": true, @@ -2177,6 +2276,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.PlatformLogsSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PlatformLogsSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.PlatformLogsSettings$Severity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.PublishRequest", "queryAllDeclaredConstructors": true, @@ -2600,6 +2726,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.Subscription$AnalyticsHubSubscriptionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.Subscription$AnalyticsHubSubscriptionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.Subscription$Builder", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 1943554ac0a7..3c051683242f 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -131,6 +131,8 @@ public void createSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -198,6 +200,8 @@ public void createSubscriptionTest2() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -265,6 +269,8 @@ public void createSubscriptionTest3() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -332,6 +338,8 @@ public void createSubscriptionTest4() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -399,6 +407,8 @@ public void getSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -459,6 +469,8 @@ public void getSubscriptionTest2() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -519,6 +531,8 @@ public void updateSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -541,6 +555,8 @@ public void updateSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -589,6 +605,8 @@ public void updateSubscriptionExceptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSubscription(subscription, updateMask); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 470a2633464c..5136ecd1b66c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -157,6 +157,8 @@ public void createSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -221,6 +223,8 @@ public void createSubscriptionTest2() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -285,6 +289,8 @@ public void createSubscriptionTest3() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -349,6 +355,8 @@ public void createSubscriptionTest4() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -413,6 +421,8 @@ public void getSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -467,6 +477,8 @@ public void getSubscriptionTest2() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -521,6 +533,8 @@ public void updateSubscriptionTest() throws Exception { .setDetached(true) .setEnableExactlyOnceDelivery(true) .setTopicMessageRetentionDuration(Duration.newBuilder().build()) + .setAnalyticsHubSubscriptionInfo( + Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .build(); mockSubscriber.addResponse(expectedResponse); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 4f66e814625e..1f62eb3ede3c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 1d48237ec4cd..d68356fe18d2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface AcknowledgeRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 8ed6a70c0945..7e22cfa02250 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index b11f601a0dc0..f9c4eb555163 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface BigQueryConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 03a1ff96d961..a90d77109b32 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index bb76b4aa10b2..71eeb90b4e12 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface CloudStorageConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index 8af8ad8a1dc3..d6c14b342b9b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 3feee9c44ff5..99b6a5cd0bbf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface CommitSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 19da2b62bbc8..6192347472a4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index bc5cd73c5e54..244ba51609be 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface CreateSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index f75b1df94fbe..71be3fe160f2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index bfe921c62178..534be54bc7b7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface CreateSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 639fce2d9d90..b96e7ace6995 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index ad73317d280b..ed5509aab471 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeadLetterPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index 8341b02b4e35..f85adc58b365 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 018f05f724ef..513d1cc69412 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeleteSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 993b6fbc74be..d8a7dc8325a4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 659f15af1d02..1a7006cc6437 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeleteSchemaRevisionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 01b9a533a34b..d69f8530d296 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index a44ce2bad2bd..ecaa5ecc74d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeleteSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 101dcfb2cba5..6726b4fc3c51 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index a60aff79b162..e97be307112d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeleteSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index ae7f1d5c7b6a..cd5232d4e9d3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 9968722bd25b..2900017e29f4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DeleteTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index fefc483daadf..bfb983560c13 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 7d15bd620027..fb7690b35310 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DetachSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index f6be4bc4becd..69c19fac1659 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 0c5a283e4fa8..136f6e620fc0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface DetachSubscriptionResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index bbab1ca1f6e9..baf41676151b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index b6d38a70032d..17c3e07536d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 5e758a97ee8d..9a0d2e9d4888 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ExpirationPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index f1fa3abf3e08..5a80fc97ee92 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 1557c9b320d6..aca52209a526 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface GetSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 5ab32b1b720d..dc0fb2a57bfd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index e3cfbecaecd3..13775aea325f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface GetSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index af067371c761..8e40e7537b53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 090018fc73fb..0991d70f4e19 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface GetSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 2c88ff2d2955..514c24e3fcb4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 477adf413b83..23d05e8cb660 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface GetTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 8a3cfc182568..17e7384ee529 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** @@ -1836,6 +1836,4646 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getDefaultIns } } + public interface CloudStorageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Cloud
    +     * Storage ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Cloud
    +     * Storage ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State getState(); + + /** + * + * + *
    +     * Optional. Cloud Storage bucket. The bucket name must be without any
    +     * prefix like "gs://". See the [bucket naming requirements]
    +     * (https://cloud.google.com/storage/docs/buckets#naming).
    +     * 
    + * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + java.lang.String getBucket(); + /** + * + * + *
    +     * Optional. Cloud Storage bucket. The bucket name must be without any
    +     * prefix like "gs://". See the [bucket naming requirements]
    +     * (https://cloud.google.com/storage/docs/buckets#naming).
    +     * 
    + * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); + + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted as text.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the textFormat field is set. + */ + boolean hasTextFormat(); + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted as text.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textFormat. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat getTextFormat(); + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted as text.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder + getTextFormatOrBuilder(); + + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFormat field is set. + */ + boolean hasAvroFormat(); + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFormat. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat getAvroFormat(); + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder + getAvroFormatOrBuilder(); + + /** + * + * + *
    +     * Optional. It will be assumed data from Cloud Storage was written via
    +     * [Cloud Storage
    +     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pubsubAvroFormat field is set. + */ + boolean hasPubsubAvroFormat(); + /** + * + * + *
    +     * Optional. It will be assumed data from Cloud Storage was written via
    +     * [Cloud Storage
    +     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pubsubAvroFormat. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getPubsubAvroFormat(); + /** + * + * + *
    +     * Optional. It will be assumed data from Cloud Storage was written via
    +     * [Cloud Storage
    +     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder + getPubsubAvroFormatOrBuilder(); + + /** + * + * + *
    +     * Optional. Only objects with a larger or equal creation timestamp will be
    +     * ingested.
    +     * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the minimumObjectCreateTime field is set. + */ + boolean hasMinimumObjectCreateTime(); + /** + * + * + *
    +     * Optional. Only objects with a larger or equal creation timestamp will be
    +     * ingested.
    +     * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minimumObjectCreateTime. + */ + com.google.protobuf.Timestamp getMinimumObjectCreateTime(); + /** + * + * + *
    +     * Optional. Only objects with a larger or equal creation timestamp will be
    +     * ingested.
    +     * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilder(); + + /** + * + * + *
    +     * Optional. Glob pattern used to match objects that will be ingested. If
    +     * unset, all objects will be ingested. See the [supported
    +     * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
    +     * 
    + * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The matchGlob. + */ + java.lang.String getMatchGlob(); + /** + * + * + *
    +     * Optional. Glob pattern used to match objects that will be ingested. If
    +     * unset, all objects will be ingested. See the [supported
    +     * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
    +     * 
    + * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for matchGlob. + */ + com.google.protobuf.ByteString getMatchGlobBytes(); + + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.InputFormatCase + getInputFormatCase(); + } + /** + * + * + *
    +   * Ingestion settings for Cloud Storage.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} + */ + public static final class CloudStorage extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) + CloudStorageOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudStorage.newBuilder() to construct. + private CloudStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorage() { + state_ = 0; + bucket_ = ""; + matchGlob_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorage(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder.class); + } + + /** + * + * + *
    +     * Possible states for ingestion from Cloud Storage.
    +     * 
    + * + * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +       * Ingestion is active.
    +       * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +       * Permission denied encountered while calling the Cloud Storage API. This
    +       * can happen if the Pub/Sub SA has not been granted the
    +       * [appropriate
    +       * permissions](https://cloud.google.com/storage/docs/access-control/iam-permissions):
    +       * - storage.objects.list: to list the objects in a bucket.
    +       * - storage.objects.get: to read the objects in a bucket.
    +       * - storage.buckets.get: to verify the bucket exists.
    +       * 
    + * + * CLOUD_STORAGE_PERMISSION_DENIED = 2; + */ + CLOUD_STORAGE_PERMISSION_DENIED(2), + /** + * + * + *
    +       * Permission denied encountered while publishing to the topic. This can
    +       * happen if the Pub/Sub SA has not been granted the [appropriate publish
    +       * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
    +       * 
    + * + * PUBLISH_PERMISSION_DENIED = 3; + */ + PUBLISH_PERMISSION_DENIED(3), + /** + * + * + *
    +       * The provided Cloud Storage bucket doesn't exist.
    +       * 
    + * + * BUCKET_NOT_FOUND = 4; + */ + BUCKET_NOT_FOUND(4), + /** + * + * + *
    +       * The Cloud Storage bucket has too many objects, ingestion will be
    +       * paused.
    +       * 
    + * + * TOO_MANY_OBJECTS = 5; + */ + TOO_MANY_OBJECTS(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +       * Ingestion is active.
    +       * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +       * Permission denied encountered while calling the Cloud Storage API. This
    +       * can happen if the Pub/Sub SA has not been granted the
    +       * [appropriate
    +       * permissions](https://cloud.google.com/storage/docs/access-control/iam-permissions):
    +       * - storage.objects.list: to list the objects in a bucket.
    +       * - storage.objects.get: to read the objects in a bucket.
    +       * - storage.buckets.get: to verify the bucket exists.
    +       * 
    + * + * CLOUD_STORAGE_PERMISSION_DENIED = 2; + */ + public static final int CLOUD_STORAGE_PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
    +       * Permission denied encountered while publishing to the topic. This can
    +       * happen if the Pub/Sub SA has not been granted the [appropriate publish
    +       * permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
    +       * 
    + * + * PUBLISH_PERMISSION_DENIED = 3; + */ + public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** + * + * + *
    +       * The provided Cloud Storage bucket doesn't exist.
    +       * 
    + * + * BUCKET_NOT_FOUND = 4; + */ + public static final int BUCKET_NOT_FOUND_VALUE = 4; + /** + * + * + *
    +       * The Cloud Storage bucket has too many objects, ingestion will be
    +       * paused.
    +       * 
    + * + * TOO_MANY_OBJECTS = 5; + */ + public static final int TOO_MANY_OBJECTS_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CLOUD_STORAGE_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return BUCKET_NOT_FOUND; + case 5: + return TOO_MANY_OBJECTS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State) + } + + public interface TextFormatOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +       * Optional. When unset, '\n' is used.
    +       * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the delimiter field is set. + */ + boolean hasDelimiter(); + /** + * + * + *
    +       * Optional. When unset, '\n' is used.
    +       * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delimiter. + */ + java.lang.String getDelimiter(); + /** + * + * + *
    +       * Optional. When unset, '\n' is used.
    +       * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for delimiter. + */ + com.google.protobuf.ByteString getDelimiterBytes(); + } + /** + * + * + *
    +     * Configuration for reading Cloud Storage data in text format. Each line of
    +     * text as specified by the delimiter will be set to the `data` field of a
    +     * Pub/Sub message.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} + */ + public static final class TextFormat extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + TextFormatOrBuilder { + private static final long serialVersionUID = 0L; + // Use TextFormat.newBuilder() to construct. + private TextFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TextFormat() { + delimiter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TextFormat(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder + .class); + } + + private int bitField0_; + public static final int DELIMITER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object delimiter_ = ""; + /** + * + * + *
    +       * Optional. When unset, '\n' is used.
    +       * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the delimiter field is set. + */ + @java.lang.Override + public boolean hasDelimiter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +       * Optional. When unset, '\n' is used.
    +       * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delimiter. + */ + @java.lang.Override + public java.lang.String getDelimiter() { + java.lang.Object ref = delimiter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + delimiter_ = s; + return s; + } + } + /** + * + * + *
    +       * Optional. When unset, '\n' is used.
    +       * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for delimiter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDelimiterBytes() { + java.lang.Object ref = delimiter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + delimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delimiter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delimiter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat other = + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) obj; + + if (hasDelimiter() != other.hasDelimiter()) return false; + if (hasDelimiter()) { + if (!getDelimiter().equals(other.getDelimiter())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDelimiter()) { + hash = (37 * hash) + DELIMITER_FIELD_NUMBER; + hash = (53 * hash) + getDelimiter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +       * Configuration for reading Cloud Storage data in text format. Each line of
    +       * text as specified by the delimiter will be set to the `data` field of a
    +       * Pub/Sub message.
    +       * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + delimiter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat build() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat result = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.delimiter_ = delimiter_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) { + return mergeFrom( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance()) return this; + if (other.hasDelimiter()) { + delimiter_ = other.delimiter_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + delimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object delimiter_ = ""; + /** + * + * + *
    +         * Optional. When unset, '\n' is used.
    +         * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the delimiter field is set. + */ + public boolean hasDelimiter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +         * Optional. When unset, '\n' is used.
    +         * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The delimiter. + */ + public java.lang.String getDelimiter() { + java.lang.Object ref = delimiter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + delimiter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +         * Optional. When unset, '\n' is used.
    +         * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for delimiter. + */ + public com.google.protobuf.ByteString getDelimiterBytes() { + java.lang.Object ref = delimiter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + delimiter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +         * Optional. When unset, '\n' is used.
    +         * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The delimiter to set. + * @return This builder for chaining. + */ + public Builder setDelimiter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + delimiter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +         * Optional. When unset, '\n' is used.
    +         * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDelimiter() { + delimiter_ = getDefaultInstance().getDelimiter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +         * Optional. When unset, '\n' is used.
    +         * 
    + * + * optional string delimiter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for delimiter to set. + * @return This builder for chaining. + */ + public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + delimiter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AvroFormatOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +     * Configuration for reading Cloud Storage data in Avro binary format. The
    +     * bytes of each object will be set to the `data` field of a Pub/Sub
    +     * message.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} + */ + public static final class AvroFormat extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + AvroFormatOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvroFormat.newBuilder() to construct. + private AvroFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvroFormat() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvroFormat(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat other = + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +       * Configuration for reading Cloud Storage data in Avro binary format. The
    +       * bytes of each object will be set to the `data` field of a Pub/Sub
    +       * message.
    +       * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat build() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat result = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) { + return mergeFrom( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PubSubAvroFormatOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +     * Configuration for reading Cloud Storage data written via [Cloud Storage
    +     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). The
    +     * data and attributes fields of the originally exported Pub/Sub message
    +     * will be restored when publishing.
    +     * 
    + * + * Protobuf type {@code + * google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} + */ + public static final class PubSubAvroFormat extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + PubSubAvroFormatOrBuilder { + private static final long serialVersionUID = 0L; + // Use PubSubAvroFormat.newBuilder() to construct. + private PubSubAvroFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PubSubAvroFormat() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PubSubAvroFormat(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat other = + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +       * Configuration for reading Cloud Storage data written via [Cloud Storage
    +       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). The
    +       * data and attributes fields of the originally exported Pub/Sub message
    +       * will be restored when publishing.
    +       * 
    + * + * Protobuf type {@code + * google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + build() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat result = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat( + this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) { + return mergeFrom( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .PubSubAvroFormat + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PubSubAvroFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int inputFormatCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object inputFormat_; + + public enum InputFormatCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT_FORMAT(3), + AVRO_FORMAT(4), + PUBSUB_AVRO_FORMAT(5), + INPUTFORMAT_NOT_SET(0); + private final int value; + + private InputFormatCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InputFormatCase valueOf(int value) { + return forNumber(value); + } + + public static InputFormatCase forNumber(int value) { + switch (value) { + case 3: + return TEXT_FORMAT; + case 4: + return AVRO_FORMAT; + case 5: + return PUBSUB_AVRO_FORMAT; + case 0: + return INPUTFORMAT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InputFormatCase getInputFormatCase() { + return InputFormatCase.forNumber(inputFormatCase_); + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Cloud
    +     * Storage ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Cloud
    +     * Storage ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.UNRECOGNIZED + : result; + } + + public static final int BUCKET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + /** + * + * + *
    +     * Optional. Cloud Storage bucket. The bucket name must be without any
    +     * prefix like "gs://". See the [bucket naming requirements]
    +     * (https://cloud.google.com/storage/docs/buckets#naming).
    +     * 
    + * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. Cloud Storage bucket. The bucket name must be without any
    +     * prefix like "gs://". See the [bucket naming requirements]
    +     * (https://cloud.google.com/storage/docs/buckets#naming).
    +     * 
    + * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FORMAT_FIELD_NUMBER = 3; + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted as text.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the textFormat field is set. + */ + @java.lang.Override + public boolean hasTextFormat() { + return inputFormatCase_ == 3; + } + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted as text.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + getTextFormat() { + if (inputFormatCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted as text.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder + getTextFormatOrBuilder() { + if (inputFormatCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + + public static final int AVRO_FORMAT_FIELD_NUMBER = 4; + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFormat field is set. + */ + @java.lang.Override + public boolean hasAvroFormat() { + return inputFormatCase_ == 4; + } + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + getAvroFormat() { + if (inputFormatCase_ == 4) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder + getAvroFormatOrBuilder() { + if (inputFormatCase_ == 4) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + + public static final int PUBSUB_AVRO_FORMAT_FIELD_NUMBER = 5; + /** + * + * + *
    +     * Optional. It will be assumed data from Cloud Storage was written via
    +     * [Cloud Storage
    +     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pubsubAvroFormat field is set. + */ + @java.lang.Override + public boolean hasPubsubAvroFormat() { + return inputFormatCase_ == 5; + } + /** + * + * + *
    +     * Optional. It will be assumed data from Cloud Storage was written via
    +     * [Cloud Storage
    +     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pubsubAvroFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getPubsubAvroFormat() { + if (inputFormatCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. It will be assumed data from Cloud Storage was written via
    +     * [Cloud Storage
    +     * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder + getPubsubAvroFormatOrBuilder() { + if (inputFormatCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + + public static final int MINIMUM_OBJECT_CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp minimumObjectCreateTime_; + /** + * + * + *
    +     * Optional. Only objects with a larger or equal creation timestamp will be
    +     * ingested.
    +     * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the minimumObjectCreateTime field is set. + */ + @java.lang.Override + public boolean hasMinimumObjectCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
    +     * Optional. Only objects with a larger or equal creation timestamp will be
    +     * ingested.
    +     * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minimumObjectCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getMinimumObjectCreateTime() { + return minimumObjectCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumObjectCreateTime_; + } + /** + * + * + *
    +     * Optional. Only objects with a larger or equal creation timestamp will be
    +     * ingested.
    +     * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilder() { + return minimumObjectCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumObjectCreateTime_; + } + + public static final int MATCH_GLOB_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object matchGlob_ = ""; + /** + * + * + *
    +     * Optional. Glob pattern used to match objects that will be ingested. If
    +     * unset, all objects will be ingested. See the [supported
    +     * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
    +     * 
    + * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The matchGlob. + */ + @java.lang.Override + public java.lang.String getMatchGlob() { + java.lang.Object ref = matchGlob_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchGlob_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. Glob pattern used to match objects that will be ingested. If
    +     * unset, all objects will be ingested. See the [supported
    +     * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
    +     * 
    + * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for matchGlob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMatchGlobBytes() { + java.lang.Object ref = matchGlob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchGlob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bucket_); + } + if (inputFormatCase_ == 3) { + output.writeMessage( + 3, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_); + } + if (inputFormatCase_ == 4) { + output.writeMessage( + 4, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_); + } + if (inputFormatCase_ == 5) { + output.writeMessage( + 5, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getMinimumObjectCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchGlob_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, matchGlob_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucket_); + } + if (inputFormatCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_); + } + if (inputFormatCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_); + } + if (inputFormatCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getMinimumObjectCreateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchGlob_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, matchGlob_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage other = + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) obj; + + if (state_ != other.state_) return false; + if (!getBucket().equals(other.getBucket())) return false; + if (hasMinimumObjectCreateTime() != other.hasMinimumObjectCreateTime()) return false; + if (hasMinimumObjectCreateTime()) { + if (!getMinimumObjectCreateTime().equals(other.getMinimumObjectCreateTime())) return false; + } + if (!getMatchGlob().equals(other.getMatchGlob())) return false; + if (!getInputFormatCase().equals(other.getInputFormatCase())) return false; + switch (inputFormatCase_) { + case 3: + if (!getTextFormat().equals(other.getTextFormat())) return false; + break; + case 4: + if (!getAvroFormat().equals(other.getAvroFormat())) return false; + break; + case 5: + if (!getPubsubAvroFormat().equals(other.getPubsubAvroFormat())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + if (hasMinimumObjectCreateTime()) { + hash = (37 * hash) + MINIMUM_OBJECT_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getMinimumObjectCreateTime().hashCode(); + } + hash = (37 * hash) + MATCH_GLOB_FIELD_NUMBER; + hash = (53 * hash) + getMatchGlob().hashCode(); + switch (inputFormatCase_) { + case 3: + hash = (37 * hash) + TEXT_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getTextFormat().hashCode(); + break; + case 4: + hash = (37 * hash) + AVRO_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getAvroFormat().hashCode(); + break; + case 5: + hash = (37 * hash) + PUBSUB_AVRO_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getPubsubAvroFormat().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Ingestion settings for Cloud Storage.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.class, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMinimumObjectCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + bucket_ = ""; + if (textFormatBuilder_ != null) { + textFormatBuilder_.clear(); + } + if (avroFormatBuilder_ != null) { + avroFormatBuilder_.clear(); + } + if (pubsubAvroFormatBuilder_ != null) { + pubsubAvroFormatBuilder_.clear(); + } + minimumObjectCreateTime_ = null; + if (minimumObjectCreateTimeBuilder_ != null) { + minimumObjectCreateTimeBuilder_.dispose(); + minimumObjectCreateTimeBuilder_ = null; + } + matchGlob_ = ""; + inputFormatCase_ = 0; + inputFormat_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage build() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage result = + new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bucket_ = bucket_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.minimumObjectCreateTime_ = + minimumObjectCreateTimeBuilder_ == null + ? minimumObjectCreateTime_ + : minimumObjectCreateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.matchGlob_ = matchGlob_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage result) { + result.inputFormatCase_ = inputFormatCase_; + result.inputFormat_ = this.inputFormat_; + if (inputFormatCase_ == 3 && textFormatBuilder_ != null) { + result.inputFormat_ = textFormatBuilder_.build(); + } + if (inputFormatCase_ == 4 && avroFormatBuilder_ != null) { + result.inputFormat_ = avroFormatBuilder_.build(); + } + if (inputFormatCase_ == 5 && pubsubAvroFormatBuilder_ != null) { + result.inputFormat_ = pubsubAvroFormatBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMinimumObjectCreateTime()) { + mergeMinimumObjectCreateTime(other.getMinimumObjectCreateTime()); + } + if (!other.getMatchGlob().isEmpty()) { + matchGlob_ = other.matchGlob_; + bitField0_ |= 0x00000040; + onChanged(); + } + switch (other.getInputFormatCase()) { + case TEXT_FORMAT: + { + mergeTextFormat(other.getTextFormat()); + break; + } + case AVRO_FORMAT: + { + mergeAvroFormat(other.getAvroFormat()); + break; + } + case PUBSUB_AVRO_FORMAT: + { + mergePubsubAvroFormat(other.getPubsubAvroFormat()); + break; + } + case INPUTFORMAT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getTextFormatFieldBuilder().getBuilder(), extensionRegistry); + inputFormatCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getAvroFormatFieldBuilder().getBuilder(), extensionRegistry); + inputFormatCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getPubsubAvroFormatFieldBuilder().getBuilder(), extensionRegistry); + inputFormatCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getMinimumObjectCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 74: + { + matchGlob_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int inputFormatCase_ = 0; + private java.lang.Object inputFormat_; + + public InputFormatCase getInputFormatCase() { + return InputFormatCase.forNumber(inputFormatCase_); + } + + public Builder clearInputFormat() { + inputFormatCase_ = 0; + inputFormat_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Cloud
    +       * Storage ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Cloud
    +       * Storage ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Cloud
    +       * Storage ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Cloud
    +       * Storage ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Cloud
    +       * Storage ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object bucket_ = ""; + /** + * + * + *
    +       * Optional. Cloud Storage bucket. The bucket name must be without any
    +       * prefix like "gs://". See the [bucket naming requirements]
    +       * (https://cloud.google.com/storage/docs/buckets#naming).
    +       * 
    + * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. Cloud Storage bucket. The bucket name must be without any
    +       * prefix like "gs://". See the [bucket naming requirements]
    +       * (https://cloud.google.com/storage/docs/buckets#naming).
    +       * 
    + * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. Cloud Storage bucket. The bucket name must be without any
    +       * prefix like "gs://". See the [bucket naming requirements]
    +       * (https://cloud.google.com/storage/docs/buckets#naming).
    +       * 
    + * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Cloud Storage bucket. The bucket name must be without any
    +       * prefix like "gs://". See the [bucket naming requirements]
    +       * (https://cloud.google.com/storage/docs/buckets#naming).
    +       * 
    + * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Cloud Storage bucket. The bucket name must be without any
    +       * prefix like "gs://". See the [bucket naming requirements]
    +       * (https://cloud.google.com/storage/docs/buckets#naming).
    +       * 
    + * + * string bucket = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder> + textFormatBuilder_; + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted as text.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the textFormat field is set. + */ + @java.lang.Override + public boolean hasTextFormat() { + return inputFormatCase_ == 3; + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted as text.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The textFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + getTextFormat() { + if (textFormatBuilder_ == null) { + if (inputFormatCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } else { + if (inputFormatCase_ == 3) { + return textFormatBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted as text.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTextFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat value) { + if (textFormatBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputFormat_ = value; + onChanged(); + } else { + textFormatBuilder_.setMessage(value); + } + inputFormatCase_ = 3; + return this; + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted as text.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTextFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder + builderForValue) { + if (textFormatBuilder_ == null) { + inputFormat_ = builderForValue.build(); + onChanged(); + } else { + textFormatBuilder_.setMessage(builderForValue.build()); + } + inputFormatCase_ = 3; + return this; + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted as text.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTextFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat value) { + if (textFormatBuilder_ == null) { + if (inputFormatCase_ == 3 + && inputFormat_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance()) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_) + .mergeFrom(value) + .buildPartial(); + } else { + inputFormat_ = value; + } + onChanged(); + } else { + if (inputFormatCase_ == 3) { + textFormatBuilder_.mergeFrom(value); + } else { + textFormatBuilder_.setMessage(value); + } + } + inputFormatCase_ = 3; + return this; + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted as text.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTextFormat() { + if (textFormatBuilder_ == null) { + if (inputFormatCase_ == 3) { + inputFormatCase_ = 0; + inputFormat_ = null; + onChanged(); + } + } else { + if (inputFormatCase_ == 3) { + inputFormatCase_ = 0; + inputFormat_ = null; + } + textFormatBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted as text.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder + getTextFormatBuilder() { + return getTextFormatFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted as text.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder + getTextFormatOrBuilder() { + if ((inputFormatCase_ == 3) && (textFormatBuilder_ != null)) { + return textFormatBuilder_.getMessageOrBuilder(); + } else { + if (inputFormatCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted as text.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder> + getTextFormatFieldBuilder() { + if (textFormatBuilder_ == null) { + if (!(inputFormatCase_ == 3)) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat + .getDefaultInstance(); + } + textFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .TextFormatOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) + inputFormat_, + getParentForChildren(), + isClean()); + inputFormat_ = null; + } + inputFormatCase_ = 3; + onChanged(); + return textFormatBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder> + avroFormatBuilder_; + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFormat field is set. + */ + @java.lang.Override + public boolean hasAvroFormat() { + return inputFormatCase_ == 4; + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + getAvroFormat() { + if (avroFormatBuilder_ == null) { + if (inputFormatCase_ == 4) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } else { + if (inputFormatCase_ == 4) { + return avroFormatBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat value) { + if (avroFormatBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputFormat_ = value; + onChanged(); + } else { + avroFormatBuilder_.setMessage(value); + } + inputFormatCase_ = 4; + return this; + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder + builderForValue) { + if (avroFormatBuilder_ == null) { + inputFormat_ = builderForValue.build(); + onChanged(); + } else { + avroFormatBuilder_.setMessage(builderForValue.build()); + } + inputFormatCase_ = 4; + return this; + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat value) { + if (avroFormatBuilder_ == null) { + if (inputFormatCase_ == 4 + && inputFormat_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance()) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_) + .mergeFrom(value) + .buildPartial(); + } else { + inputFormat_ = value; + } + onChanged(); + } else { + if (inputFormatCase_ == 4) { + avroFormatBuilder_.mergeFrom(value); + } else { + avroFormatBuilder_.setMessage(value); + } + } + inputFormatCase_ = 4; + return this; + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAvroFormat() { + if (avroFormatBuilder_ == null) { + if (inputFormatCase_ == 4) { + inputFormatCase_ = 0; + inputFormat_ = null; + onChanged(); + } + } else { + if (inputFormatCase_ == 4) { + inputFormatCase_ = 0; + inputFormat_ = null; + } + avroFormatBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder + getAvroFormatBuilder() { + return getAvroFormatFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder + getAvroFormatOrBuilder() { + if ((inputFormatCase_ == 4) && (avroFormatBuilder_ != null)) { + return avroFormatBuilder_.getMessageOrBuilder(); + } else { + if (inputFormatCase_ == 4) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. Data from Cloud Storage will be interpreted in Avro format.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder> + getAvroFormatFieldBuilder() { + if (avroFormatBuilder_ == null) { + if (!(inputFormatCase_ == 4)) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat + .getDefaultInstance(); + } + avroFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .AvroFormatOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) + inputFormat_, + getParentForChildren(), + isClean()); + inputFormat_ = null; + } + inputFormatCase_ = 4; + onChanged(); + return avroFormatBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .PubSubAvroFormatOrBuilder> + pubsubAvroFormatBuilder_; + /** + * + * + *
    +       * Optional. It will be assumed data from Cloud Storage was written via
    +       * [Cloud Storage
    +       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pubsubAvroFormat field is set. + */ + @java.lang.Override + public boolean hasPubsubAvroFormat() { + return inputFormatCase_ == 5; + } + /** + * + * + *
    +       * Optional. It will be assumed data from Cloud Storage was written via
    +       * [Cloud Storage
    +       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pubsubAvroFormat. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + getPubsubAvroFormat() { + if (pubsubAvroFormatBuilder_ == null) { + if (inputFormatCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } else { + if (inputFormatCase_ == 5) { + return pubsubAvroFormatBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. It will be assumed data from Cloud Storage was written via
    +       * [Cloud Storage
    +       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPubsubAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat value) { + if (pubsubAvroFormatBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputFormat_ = value; + onChanged(); + } else { + pubsubAvroFormatBuilder_.setMessage(value); + } + inputFormatCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. It will be assumed data from Cloud Storage was written via
    +       * [Cloud Storage
    +       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPubsubAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.Builder + builderForValue) { + if (pubsubAvroFormatBuilder_ == null) { + inputFormat_ = builderForValue.build(); + onChanged(); + } else { + pubsubAvroFormatBuilder_.setMessage(builderForValue.build()); + } + inputFormatCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. It will be assumed data from Cloud Storage was written via
    +       * [Cloud Storage
    +       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePubsubAvroFormat( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat value) { + if (pubsubAvroFormatBuilder_ == null) { + if (inputFormatCase_ == 5 + && inputFormat_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance()) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .PubSubAvroFormat) + inputFormat_) + .mergeFrom(value) + .buildPartial(); + } else { + inputFormat_ = value; + } + onChanged(); + } else { + if (inputFormatCase_ == 5) { + pubsubAvroFormatBuilder_.mergeFrom(value); + } else { + pubsubAvroFormatBuilder_.setMessage(value); + } + } + inputFormatCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. It will be assumed data from Cloud Storage was written via
    +       * [Cloud Storage
    +       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPubsubAvroFormat() { + if (pubsubAvroFormatBuilder_ == null) { + if (inputFormatCase_ == 5) { + inputFormatCase_ = 0; + inputFormat_ = null; + onChanged(); + } + } else { + if (inputFormatCase_ == 5) { + inputFormatCase_ = 0; + inputFormat_ = null; + } + pubsubAvroFormatBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. It will be assumed data from Cloud Storage was written via
    +       * [Cloud Storage
    +       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.Builder + getPubsubAvroFormatBuilder() { + return getPubsubAvroFormatFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. It will be assumed data from Cloud Storage was written via
    +       * [Cloud Storage
    +       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder + getPubsubAvroFormatOrBuilder() { + if ((inputFormatCase_ == 5) && (pubsubAvroFormatBuilder_ != null)) { + return pubsubAvroFormatBuilder_.getMessageOrBuilder(); + } else { + if (inputFormatCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. It will be assumed data from Cloud Storage was written via
    +       * [Cloud Storage
    +       * subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .PubSubAvroFormatOrBuilder> + getPubsubAvroFormatFieldBuilder() { + if (pubsubAvroFormatBuilder_ == null) { + if (!(inputFormatCase_ == 5)) { + inputFormat_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .getDefaultInstance(); + } + pubsubAvroFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat + .Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .PubSubAvroFormatOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) + inputFormat_, + getParentForChildren(), + isClean()); + inputFormat_ = null; + } + inputFormatCase_ = 5; + onChanged(); + return pubsubAvroFormatBuilder_; + } + + private com.google.protobuf.Timestamp minimumObjectCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + minimumObjectCreateTimeBuilder_; + /** + * + * + *
    +       * Optional. Only objects with a larger or equal creation timestamp will be
    +       * ingested.
    +       * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the minimumObjectCreateTime field is set. + */ + public boolean hasMinimumObjectCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
    +       * Optional. Only objects with a larger or equal creation timestamp will be
    +       * ingested.
    +       * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The minimumObjectCreateTime. + */ + public com.google.protobuf.Timestamp getMinimumObjectCreateTime() { + if (minimumObjectCreateTimeBuilder_ == null) { + return minimumObjectCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumObjectCreateTime_; + } else { + return minimumObjectCreateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
    +       * Optional. Only objects with a larger or equal creation timestamp will be
    +       * ingested.
    +       * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMinimumObjectCreateTime(com.google.protobuf.Timestamp value) { + if (minimumObjectCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + minimumObjectCreateTime_ = value; + } else { + minimumObjectCreateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Only objects with a larger or equal creation timestamp will be
    +       * ingested.
    +       * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMinimumObjectCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (minimumObjectCreateTimeBuilder_ == null) { + minimumObjectCreateTime_ = builderForValue.build(); + } else { + minimumObjectCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Only objects with a larger or equal creation timestamp will be
    +       * ingested.
    +       * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMinimumObjectCreateTime(com.google.protobuf.Timestamp value) { + if (minimumObjectCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && minimumObjectCreateTime_ != null + && minimumObjectCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getMinimumObjectCreateTimeBuilder().mergeFrom(value); + } else { + minimumObjectCreateTime_ = value; + } + } else { + minimumObjectCreateTimeBuilder_.mergeFrom(value); + } + if (minimumObjectCreateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
    +       * Optional. Only objects with a larger or equal creation timestamp will be
    +       * ingested.
    +       * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMinimumObjectCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + minimumObjectCreateTime_ = null; + if (minimumObjectCreateTimeBuilder_ != null) { + minimumObjectCreateTimeBuilder_.dispose(); + minimumObjectCreateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Only objects with a larger or equal creation timestamp will be
    +       * ingested.
    +       * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getMinimumObjectCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getMinimumObjectCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. Only objects with a larger or equal creation timestamp will be
    +       * ingested.
    +       * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilder() { + if (minimumObjectCreateTimeBuilder_ != null) { + return minimumObjectCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return minimumObjectCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : minimumObjectCreateTime_; + } + } + /** + * + * + *
    +       * Optional. Only objects with a larger or equal creation timestamp will be
    +       * ingested.
    +       * 
    + * + * + * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getMinimumObjectCreateTimeFieldBuilder() { + if (minimumObjectCreateTimeBuilder_ == null) { + minimumObjectCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getMinimumObjectCreateTime(), getParentForChildren(), isClean()); + minimumObjectCreateTime_ = null; + } + return minimumObjectCreateTimeBuilder_; + } + + private java.lang.Object matchGlob_ = ""; + /** + * + * + *
    +       * Optional. Glob pattern used to match objects that will be ingested. If
    +       * unset, all objects will be ingested. See the [supported
    +       * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
    +       * 
    + * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The matchGlob. + */ + public java.lang.String getMatchGlob() { + java.lang.Object ref = matchGlob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchGlob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. Glob pattern used to match objects that will be ingested. If
    +       * unset, all objects will be ingested. See the [supported
    +       * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
    +       * 
    + * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for matchGlob. + */ + public com.google.protobuf.ByteString getMatchGlobBytes() { + java.lang.Object ref = matchGlob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchGlob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. Glob pattern used to match objects that will be ingested. If
    +       * unset, all objects will be ingested. See the [supported
    +       * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
    +       * 
    + * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The matchGlob to set. + * @return This builder for chaining. + */ + public Builder setMatchGlob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchGlob_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Glob pattern used to match objects that will be ingested. If
    +       * unset, all objects will be ingested. See the [supported
    +       * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
    +       * 
    + * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMatchGlob() { + matchGlob_ = getDefaultInstance().getMatchGlob(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Glob pattern used to match objects that will be ingested. If
    +       * unset, all objects will be ingested. See the [supported
    +       * patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
    +       * 
    + * + * string match_glob = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for matchGlob to set. + * @return This builder for chaining. + */ + public Builder setMatchGlobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchGlob_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; private int sourceCase_ = 0; @SuppressWarnings("serial") @@ -1846,6 +6486,7 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AWS_KINESIS(1), + CLOUD_STORAGE(2), SOURCE_NOT_SET(0); private final int value; @@ -1866,78 +6507,197 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return AWS_KINESIS; + case 2: + return CLOUD_STORAGE; case 0: return SOURCE_NOT_SET; default: return null; } } - - public int getNumber() { - return this.value; + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int AWS_KINESIS_FIELD_NUMBER = 1; + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + @java.lang.Override + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + + public static final int CLOUD_STORAGE_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Optional. Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorage field is set. + */ + @java.lang.Override + public boolean hasCloudStorage() { + return sourceCase_ == 2; + } + /** + * + * + *
    +   * Optional. Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorage. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder + getCloudStorageOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; } - }; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } - public static final int AWS_KINESIS_FIELD_NUMBER = 1; + public static final int PLATFORM_LOGS_SETTINGS_FIELD_NUMBER = 4; + private com.google.pubsub.v1.PlatformLogsSettings platformLogsSettings_; /** * * *
    -   * Optional. Amazon Kinesis Data Streams.
    +   * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +   * generated.
        * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the awsKinesis field is set. + * @return Whether the platformLogsSettings field is set. */ @java.lang.Override - public boolean hasAwsKinesis() { - return sourceCase_ == 1; + public boolean hasPlatformLogsSettings() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
    -   * Optional. Amazon Kinesis Data Streams.
    +   * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +   * generated.
        * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The awsKinesis. + * @return The platformLogsSettings. */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; - } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + public com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings() { + return platformLogsSettings_ == null + ? com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance() + : platformLogsSettings_; } /** * * *
    -   * Optional. Amazon Kinesis Data Streams.
    +   * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +   * generated.
        * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder - getAwsKinesisOrBuilder() { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; - } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + public com.google.pubsub.v1.PlatformLogsSettingsOrBuilder getPlatformLogsSettingsOrBuilder() { + return platformLogsSettings_ == null + ? com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance() + : platformLogsSettings_; } private byte memoizedIsInitialized = -1; @@ -1957,6 +6717,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 1) { output.writeMessage(1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); } + if (sourceCase_ == 2) { + output.writeMessage( + 2, (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getPlatformLogsSettings()); + } getUnknownFields().writeTo(output); } @@ -1971,6 +6738,15 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_); } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPlatformLogsSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1987,11 +6763,18 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.IngestionDataSourceSettings other = (com.google.pubsub.v1.IngestionDataSourceSettings) obj; + if (hasPlatformLogsSettings() != other.hasPlatformLogsSettings()) return false; + if (hasPlatformLogsSettings()) { + if (!getPlatformLogsSettings().equals(other.getPlatformLogsSettings())) return false; + } if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 1: if (!getAwsKinesis().equals(other.getAwsKinesis())) return false; break; + case 2: + if (!getCloudStorage().equals(other.getCloudStorage())) return false; + break; case 0: default: } @@ -2006,11 +6789,19 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPlatformLogsSettings()) { + hash = (37 * hash) + PLATFORM_LOGS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getPlatformLogsSettings().hashCode(); + } switch (sourceCase_) { case 1: hash = (37 * hash) + AWS_KINESIS_FIELD_NUMBER; hash = (53 * hash) + getAwsKinesis().hashCode(); break; + case 2: + hash = (37 * hash) + CLOUD_STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorage().hashCode(); + break; case 0: default: } @@ -2143,10 +6934,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPlatformLogsSettingsFieldBuilder(); + } } @java.lang.Override @@ -2156,6 +6956,14 @@ public Builder clear() { if (awsKinesisBuilder_ != null) { awsKinesisBuilder_.clear(); } + if (cloudStorageBuilder_ != null) { + cloudStorageBuilder_.clear(); + } + platformLogsSettings_ = null; + if (platformLogsSettingsBuilder_ != null) { + platformLogsSettingsBuilder_.dispose(); + platformLogsSettingsBuilder_ = null; + } sourceCase_ = 0; source_ = null; return this; @@ -2195,6 +7003,15 @@ public com.google.pubsub.v1.IngestionDataSourceSettings buildPartial() { private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.platformLogsSettings_ = + platformLogsSettingsBuilder_ == null + ? platformLogsSettings_ + : platformLogsSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings result) { @@ -2203,6 +7020,9 @@ private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings if (sourceCase_ == 1 && awsKinesisBuilder_ != null) { result.source_ = awsKinesisBuilder_.build(); } + if (sourceCase_ == 2 && cloudStorageBuilder_ != null) { + result.source_ = cloudStorageBuilder_.build(); + } } @java.lang.Override @@ -2251,12 +7071,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings other) { if (other == com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) return this; + if (other.hasPlatformLogsSettings()) { + mergePlatformLogsSettings(other.getPlatformLogsSettings()); + } switch (other.getSourceCase()) { case AWS_KINESIS: { mergeAwsKinesis(other.getAwsKinesis()); break; } + case CLOUD_STORAGE: + { + mergeCloudStorage(other.getCloudStorage()); + break; + } case SOURCE_NOT_SET: { break; @@ -2294,6 +7122,19 @@ public Builder mergeFrom( sourceCase_ = 1; break; } // case 10 + case 18: + { + input.readMessage(getCloudStorageFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 34: + { + input.readMessage( + getPlatformLogsSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2324,126 +7165,360 @@ public Builder clearSource() { onChanged(); return this; } - - private int bitField0_; - + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + awsKinesisBuilder_; + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + @java.lang.Override + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return awsKinesisBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + awsKinesisBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { + if (awsKinesisBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + awsKinesisBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + awsKinesisBuilder_.mergeFrom(value); + } else { + awsKinesisBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + awsKinesisBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder + getAwsKinesisBuilder() { + return getAwsKinesisFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { + return awsKinesisBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> - awsKinesisBuilder_; + getAwsKinesisFieldBuilder() { + if (awsKinesisBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + awsKinesisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return awsKinesisBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> + cloudStorageBuilder_; /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Cloud Storage.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the awsKinesis field is set. + * @return Whether the cloudStorage field is set. */ @java.lang.Override - public boolean hasAwsKinesis() { - return sourceCase_ == 1; + public boolean hasCloudStorage() { + return sourceCase_ == 2; } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Cloud Storage.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The awsKinesis. + * @return The cloudStorage. */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } else { - if (sourceCase_ == 1) { - return awsKinesisBuilder_.getMessage(); + if (sourceCase_ == 2) { + return cloudStorageBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Cloud Storage.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { - if (awsKinesisBuilder_ == null) { + public Builder setCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { + if (cloudStorageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - awsKinesisBuilder_.setMessage(value); + cloudStorageBuilder_.setMessage(value); } - sourceCase_ = 1; + sourceCase_ = 2; return this; } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Cloud Storage.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { - if (awsKinesisBuilder_ == null) { + public Builder setCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder builderForValue) { + if (cloudStorageBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - awsKinesisBuilder_.setMessage(builderForValue.build()); + cloudStorageBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 1; + sourceCase_ = 2; return this; } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Cloud Storage.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1 + public Builder mergeCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2 && source_ - != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage .getDefaultInstance()) { source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( - (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_) .mergeFrom(value) .buildPartial(); } else { @@ -2451,39 +7526,39 @@ public Builder mergeAwsKinesis( } onChanged(); } else { - if (sourceCase_ == 1) { - awsKinesisBuilder_.mergeFrom(value); + if (sourceCase_ == 2) { + cloudStorageBuilder_.mergeFrom(value); } else { - awsKinesisBuilder_.setMessage(value); + cloudStorageBuilder_.setMessage(value); } } - sourceCase_ = 1; + sourceCase_ = 2; return this; } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Cloud Storage.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearAwsKinesis() { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1) { + public Builder clearCloudStorage() { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 1) { + if (sourceCase_ == 2) { sourceCase_ = 0; source_ = null; } - awsKinesisBuilder_.clear(); + cloudStorageBuilder_.clear(); } return this; } @@ -2491,74 +7566,288 @@ public Builder clearAwsKinesis() { * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Cloud Storage.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder - getAwsKinesisBuilder() { - return getAwsKinesisFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder + getCloudStorageBuilder() { + return getCloudStorageFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Cloud Storage.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder - getAwsKinesisOrBuilder() { - if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { - return awsKinesisBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder + getCloudStorageOrBuilder() { + if ((sourceCase_ == 2) && (cloudStorageBuilder_ != null)) { + return cloudStorageBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Cloud Storage.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> - getAwsKinesisFieldBuilder() { - if (awsKinesisBuilder_ == null) { - if (!(sourceCase_ == 1)) { + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> + getCloudStorageFieldBuilder() { + if (cloudStorageBuilder_ == null) { + if (!(sourceCase_ == 2)) { source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } - awsKinesisBuilder_ = + cloudStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( - (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 1; + sourceCase_ = 2; onChanged(); - return awsKinesisBuilder_; + return cloudStorageBuilder_; + } + + private com.google.pubsub.v1.PlatformLogsSettings platformLogsSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PlatformLogsSettings, + com.google.pubsub.v1.PlatformLogsSettings.Builder, + com.google.pubsub.v1.PlatformLogsSettingsOrBuilder> + platformLogsSettingsBuilder_; + /** + * + * + *
    +     * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +     * generated.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the platformLogsSettings field is set. + */ + public boolean hasPlatformLogsSettings() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
    +     * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +     * generated.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The platformLogsSettings. + */ + public com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings() { + if (platformLogsSettingsBuilder_ == null) { + return platformLogsSettings_ == null + ? com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance() + : platformLogsSettings_; + } else { + return platformLogsSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +     * generated.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettings value) { + if (platformLogsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + platformLogsSettings_ = value; + } else { + platformLogsSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +     * generated.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPlatformLogsSettings( + com.google.pubsub.v1.PlatformLogsSettings.Builder builderForValue) { + if (platformLogsSettingsBuilder_ == null) { + platformLogsSettings_ = builderForValue.build(); + } else { + platformLogsSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +     * generated.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettings value) { + if (platformLogsSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && platformLogsSettings_ != null + && platformLogsSettings_ + != com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance()) { + getPlatformLogsSettingsBuilder().mergeFrom(value); + } else { + platformLogsSettings_ = value; + } + } else { + platformLogsSettingsBuilder_.mergeFrom(value); + } + if (platformLogsSettings_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +     * generated.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPlatformLogsSettings() { + bitField0_ = (bitField0_ & ~0x00000004); + platformLogsSettings_ = null; + if (platformLogsSettingsBuilder_ != null) { + platformLogsSettingsBuilder_.dispose(); + platformLogsSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +     * generated.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.PlatformLogsSettings.Builder getPlatformLogsSettingsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPlatformLogsSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +     * generated.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.PlatformLogsSettingsOrBuilder getPlatformLogsSettingsOrBuilder() { + if (platformLogsSettingsBuilder_ != null) { + return platformLogsSettingsBuilder_.getMessageOrBuilder(); + } else { + return platformLogsSettings_ == null + ? com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance() + : platformLogsSettings_; + } + } + /** + * + * + *
    +     * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +     * generated.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PlatformLogsSettings, + com.google.pubsub.v1.PlatformLogsSettings.Builder, + com.google.pubsub.v1.PlatformLogsSettingsOrBuilder> + getPlatformLogsSettingsFieldBuilder() { + if (platformLogsSettingsBuilder_ == null) { + platformLogsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.PlatformLogsSettings, + com.google.pubsub.v1.PlatformLogsSettings.Builder, + com.google.pubsub.v1.PlatformLogsSettingsOrBuilder>( + getPlatformLogsSettings(), getParentForChildren(), isClean()); + platformLogsSettings_ = null; + } + return platformLogsSettingsBuilder_; } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index c6692f6d79cb..28c04d6072bb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface IngestionDataSourceSettingsOrBuilder @@ -65,5 +65,90 @@ public interface IngestionDataSourceSettingsOrBuilder */ com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder getAwsKinesisOrBuilder(); + /** + * + * + *
    +   * Optional. Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorage field is set. + */ + boolean hasCloudStorage(); + /** + * + * + *
    +   * Optional. Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorage. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage(); + /** + * + * + *
    +   * Optional. Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder getCloudStorageOrBuilder(); + + /** + * + * + *
    +   * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +   * generated.
    +   * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the platformLogsSettings field is set. + */ + boolean hasPlatformLogsSettings(); + /** + * + * + *
    +   * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +   * generated.
    +   * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The platformLogsSettings. + */ + com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings(); + /** + * + * + *
    +   * Optional. Platform Logs settings. If unset, no Platform Logs will be
    +   * generated.
    +   * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.PlatformLogsSettingsOrBuilder getPlatformLogsSettingsOrBuilder(); + com.google.pubsub.v1.IngestionDataSourceSettings.SourceCase getSourceCase(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 3541d809e8a2..3d406f6bffd5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index ec720f4a09cf..2fa49de7d390 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSchemaRevisionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 5f0076d918ef..50e5dd19d3f9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 73ca9e9d5eca..cadb88f17f74 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSchemaRevisionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 228b2b8e7b2e..d1c082ca8a2b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index c8beb87f1e14..571e88b81bdf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSchemasRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index e1985e768512..581624bcc83e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 10e0d8f72e7f..b2145b6ac0ec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSchemasResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 383e5e1bf70f..7a1cf826a256 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 311c46a9975f..1fce5f0b0b21 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSnapshotsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 4ee7a9731ad9..74fed6e23bf2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index b0aeb845139b..d53121a32f9a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSnapshotsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 1f2da3141415..c2c66a388029 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index e61355550b8e..3dd31b9e75ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSubscriptionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 378d586830f4..c0ce6fc00ffa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 35cb35bf227c..20b021f93800 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListSubscriptionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index d4b4177c4e57..f39c3c4b64d5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 8bab402b90cb..6844d32f038f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicSnapshotsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 1abe844067bb..1a8092115baa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index da03f0c90b70..5b80ee609058 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicSnapshotsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index f69a0ddcedec..02163037924f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 7a0b69c80fdb..f25ea7858af7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicSubscriptionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 1b4360644e72..dcb6c60f474d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index a4e5ea441e4e..3f6ad98e1b30 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicSubscriptionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index c9c87d9ccdcc..c36f242a25f4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 95973fc946f1..267473b951d2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 020257e5eb4c..aca359bbfe24 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 06f99a15515f..29832578ed26 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ListTopicsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 164d2c67c2a9..59aa717bdb26 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 60f6836e729c..fb791a3306c9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface MessageStoragePolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index fc1736758a01..b9417cac9906 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 231ad947124b..c148ebc72a00 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ModifyAckDeadlineRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index b02b89d0952d..54cab839b9a5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index ac09ebafa9c8..29779beff5f5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ModifyPushConfigRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java new file mode 100644 index 000000000000..a63c3a4df038 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java @@ -0,0 +1,833 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +/** + * + * + *
    + * Settings for Platform Logs produced by Pub/Sub.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.PlatformLogsSettings} + */ +public final class PlatformLogsSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.PlatformLogsSettings) + PlatformLogsSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PlatformLogsSettings.newBuilder() to construct. + private PlatformLogsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PlatformLogsSettings() { + severity_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PlatformLogsSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PlatformLogsSettings.class, + com.google.pubsub.v1.PlatformLogsSettings.Builder.class); + } + + /** + * + * + *
    +   * Severity levels of Platform Logs.
    +   * 
    + * + * Protobuf enum {@code google.pubsub.v1.PlatformLogsSettings.Severity} + */ + public enum Severity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +     * Default value. Logs level is unspecified. Logs will be disabled.
    +     * 
    + * + * SEVERITY_UNSPECIFIED = 0; + */ + SEVERITY_UNSPECIFIED(0), + /** + * + * + *
    +     * Logs will be disabled.
    +     * 
    + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
    +     * Debug logs and higher-severity logs will be written.
    +     * 
    + * + * DEBUG = 2; + */ + DEBUG(2), + /** + * + * + *
    +     * Info logs and higher-severity logs will be written.
    +     * 
    + * + * INFO = 3; + */ + INFO(3), + /** + * + * + *
    +     * Warning logs and higher-severity logs will be written.
    +     * 
    + * + * WARNING = 4; + */ + WARNING(4), + /** + * + * + *
    +     * Only error logs will be written.
    +     * 
    + * + * ERROR = 5; + */ + ERROR(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +     * Default value. Logs level is unspecified. Logs will be disabled.
    +     * 
    + * + * SEVERITY_UNSPECIFIED = 0; + */ + public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +     * Logs will be disabled.
    +     * 
    + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
    +     * Debug logs and higher-severity logs will be written.
    +     * 
    + * + * DEBUG = 2; + */ + public static final int DEBUG_VALUE = 2; + /** + * + * + *
    +     * Info logs and higher-severity logs will be written.
    +     * 
    + * + * INFO = 3; + */ + public static final int INFO_VALUE = 3; + /** + * + * + *
    +     * Warning logs and higher-severity logs will be written.
    +     * 
    + * + * WARNING = 4; + */ + public static final int WARNING_VALUE = 4; + /** + * + * + *
    +     * Only error logs will be written.
    +     * 
    + * + * ERROR = 5; + */ + public static final int ERROR_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Severity valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Severity forNumber(int value) { + switch (value) { + case 0: + return SEVERITY_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return DEBUG; + case 3: + return INFO; + case 4: + return WARNING; + case 5: + return ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Severity findValueByNumber(int number) { + return Severity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.PlatformLogsSettings.getDescriptor().getEnumTypes().get(0); + } + + private static final Severity[] VALUES = values(); + + public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Severity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.PlatformLogsSettings.Severity) + } + + public static final int SEVERITY_FIELD_NUMBER = 1; + private int severity_ = 0; + /** + * + * + *
    +   * Optional. The minimum severity level of Platform Logs that will be written.
    +   * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
    +   * Optional. The minimum severity level of Platform Logs that will be written.
    +   * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings.Severity getSeverity() { + com.google.pubsub.v1.PlatformLogsSettings.Severity result = + com.google.pubsub.v1.PlatformLogsSettings.Severity.forNumber(severity_); + return result == null + ? com.google.pubsub.v1.PlatformLogsSettings.Severity.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (severity_ + != com.google.pubsub.v1.PlatformLogsSettings.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + output.writeEnum(1, severity_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (severity_ + != com.google.pubsub.v1.PlatformLogsSettings.Severity.SEVERITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, severity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.PlatformLogsSettings)) { + return super.equals(obj); + } + com.google.pubsub.v1.PlatformLogsSettings other = + (com.google.pubsub.v1.PlatformLogsSettings) obj; + + if (severity_ != other.severity_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.PlatformLogsSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Settings for Platform Logs produced by Pub/Sub.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.PlatformLogsSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PlatformLogsSettings) + com.google.pubsub.v1.PlatformLogsSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.PlatformLogsSettings.class, + com.google.pubsub.v1.PlatformLogsSettings.Builder.class); + } + + // Construct using com.google.pubsub.v1.PlatformLogsSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + severity_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings getDefaultInstanceForType() { + return com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings build() { + com.google.pubsub.v1.PlatformLogsSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings buildPartial() { + com.google.pubsub.v1.PlatformLogsSettings result = + new com.google.pubsub.v1.PlatformLogsSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.PlatformLogsSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.severity_ = severity_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.PlatformLogsSettings) { + return mergeFrom((com.google.pubsub.v1.PlatformLogsSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.PlatformLogsSettings other) { + if (other == com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance()) return this; + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int severity_ = 0; + /** + * + * + *
    +     * Optional. The minimum severity level of Platform Logs that will be written.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + /** + * + * + *
    +     * Optional. The minimum severity level of Platform Logs that will be written.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + severity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The minimum severity level of Platform Logs that will be written.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings.Severity getSeverity() { + com.google.pubsub.v1.PlatformLogsSettings.Severity result = + com.google.pubsub.v1.PlatformLogsSettings.Severity.forNumber(severity_); + return result == null + ? com.google.pubsub.v1.PlatformLogsSettings.Severity.UNRECOGNIZED + : result; + } + /** + * + * + *
    +     * Optional. The minimum severity level of Platform Logs that will be written.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity(com.google.pubsub.v1.PlatformLogsSettings.Severity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + severity_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. The minimum severity level of Platform Logs that will be written.
    +     * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000001); + severity_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PlatformLogsSettings) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.PlatformLogsSettings) + private static final com.google.pubsub.v1.PlatformLogsSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.PlatformLogsSettings(); + } + + public static com.google.pubsub.v1.PlatformLogsSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PlatformLogsSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.PlatformLogsSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java new file mode 100644 index 000000000000..fbaf39e0050d --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +public interface PlatformLogsSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PlatformLogsSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. The minimum severity level of Platform Logs that will be written.
    +   * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + /** + * + * + *
    +   * Optional. The minimum severity level of Platform Logs that will be written.
    +   * 
    + * + * + * .google.pubsub.v1.PlatformLogsSettings.Severity severity = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The severity. + */ + com.google.pubsub.v1.PlatformLogsSettings.Severity getSeverity(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index c49e55ce5fad..3d14d1cb70a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index cbf6e94e80ce..612be7a12cc8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PublishRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 4f188d836811..d9a71ff8bfba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 550873767a07..0b9a7179062b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PublishResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 04dbbf6f64a9..b97bf7147167 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index f5bd6a3e2959..763d033d3a5c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PubsubMessageOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 2acb261792fb..5a149347ffb9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public final class PubsubProto { @@ -44,6 +44,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -116,6 +136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_Subscription_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_Subscription_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -300,360 +324,392 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "apis.com/Schema\0221\n\010encoding\030\002 \001(\0162\032.goog" + "le.pubsub.v1.EncodingB\003\340A\001\022\036\n\021first_revi" + "sion_id\030\003 \001(\tB\003\340A\001\022\035\n\020last_revision_id\030\004" - + " \001(\tB\003\340A\001\"\352\003\n\033IngestionDataSourceSetting" + + " \001(\tB\003\340A\001\"\251\013\n\033IngestionDataSourceSetting" + "s\022T\n\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" + "1.IngestionDataSourceSettings.AwsKinesis" - + "B\003\340A\001H\000\032\352\002\n\nAwsKinesis\022R\n\005state\030\001 \001(\0162>." - + "google.pubsub.v1.IngestionDataSourceSett" - + "ings.AwsKinesis.StateB\003\340A\003\022\027\n\nstream_arn" - + "\030\002 \001(\tB\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031" - + "\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_service" - + "_account\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021STATE_U" - + "NSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINESIS_PERM" - + "ISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DE" - + "NIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022CONSUMER" - + "_NOT_FOUND\020\005B\010\n\006source\"\272\005\n\005Topic\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pub" - + "sub.v1.Topic.LabelsEntryB\003\340A\001\022K\n\026message" - + "_storage_policy\030\003 \001(\0132&.google.pubsub.v1" - + ".MessageStoragePolicyB\003\340A\001\022\031\n\014kms_key_na" - + "me\030\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 " - + ".google.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n" - + "\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_ret" - + "ention_duration\030\010 \001(\0132\031.google.protobuf." - + "DurationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pu" - + "bsub.v1.Topic.StateB\003\340A\003\022Z\n\036ingestion_da" - + "ta_source_settings\030\n \001(\0132-.google.pubsub" - + ".v1.IngestionDataSourceSettingsB\003\340A\001\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006A" - + "CTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:T\352" - + "AQ\n\033pubsub.googleapis.com/Topic\022!project" - + "s/{project}/topics/{topic}\022\017_deleted-top" - + "ic_\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001" - + "\022H\n\nattributes\030\002 \003(\0132/.google.pubsub.v1." - + "PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\nme" - + "ssage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022\031\n\014ordering_key" - + "\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicReques" - + "t\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googlea" - + "pis.com/Topic\"w\n\022UpdateTopicRequest\022+\n\005t" - + "opic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005topi" - + "c\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/T" - + "opic\0226\n\010messages\030\002 \003(\0132\037.google.pubsub.v" - + "1.PubsubMessageB\003\340A\002\"+\n\017PublishResponse\022" - + "\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopics" - + "Request\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudr" - + "esourcemanager.googleapis.com/Project\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(" - + "\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006topics\030\001" - + " \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n\017ne" - + "xt_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSu" - + "bscriptionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A" - + "\035\n\033pubsub.googleapis.com/Topic\022\026\n\tpage_s" + + "B\003\340A\001H\000\022X\n\rcloud_storage\030\002 \001(\0132:.google." + + "pubsub.v1.IngestionDataSourceSettings.Cl" + + "oudStorageB\003\340A\001H\000\022K\n\026platform_logs_setti" + + "ngs\030\004 \001(\0132&.google.pubsub.v1.PlatformLog" + + "sSettingsB\003\340A\001\032\352\002\n\nAwsKinesis\022R\n\005state\030\001" + + " \001(\0162>.google.pubsub.v1.IngestionDataSou" + + "rceSettings.AwsKinesis.StateB\003\340A\003\022\027\n\nstr" + + "eam_arn\030\002 \001(\tB\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\t" + + "B\003\340A\002\022\031\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_" + + "service_account\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINES" + + "IS_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMIS" + + "SION_DENIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022C" + + "ONSUMER_NOT_FOUND\020\005\032\225\006\n\014CloudStorage\022T\n\005" + + "state\030\001 \001(\0162@.google.pubsub.v1.Ingestion" + + "DataSourceSettings.CloudStorage.StateB\003\340" + + "A\003\022\023\n\006bucket\030\002 \001(\tB\003\340A\001\022a\n\013text_format\030\003" + + " \001(\0132E.google.pubsub.v1.IngestionDataSou" + + "rceSettings.CloudStorage.TextFormatB\003\340A\001" + + "H\000\022a\n\013avro_format\030\004 \001(\0132E.google.pubsub." + + "v1.IngestionDataSourceSettings.CloudStor" + + "age.AvroFormatB\003\340A\001H\000\022n\n\022pubsub_avro_for" + + "mat\030\005 \001(\0132K.google.pubsub.v1.IngestionDa" + + "taSourceSettings.CloudStorage.PubSubAvro" + + "FormatB\003\340A\001H\000\022C\n\032minimum_object_create_t" + + "ime\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\001\022\027\n\nmatch_glob\030\t \001(\tB\003\340A\001\0327\n\nTextForma" + + "t\022\033\n\tdelimiter\030\001 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n_delim" + + "iter\032\014\n\nAvroFormat\032\022\n\020PubSubAvroFormat\"\232" + + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022#\n\037CLOUD_STORAGE_PERMISSION_DENIED\020\002" + + "\022\035\n\031PUBLISH_PERMISSION_DENIED\020\003\022\024\n\020BUCKE" + + "T_NOT_FOUND\020\004\022\024\n\020TOO_MANY_OBJECTS\020\005B\016\n\014i" + + "nput_formatB\010\n\006source\"\277\001\n\024PlatformLogsSe" + + "ttings\022F\n\010severity\030\001 \001(\0162/.google.pubsub" + + ".v1.PlatformLogsSettings.SeverityB\003\340A\001\"_" + + "\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010" + + "DISABLED\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\013\n\007WARNI" + + "NG\020\004\022\t\n\005ERROR\020\005\"\272\005\n\005Topic\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pubsub.v1." + + "Topic.LabelsEntryB\003\340A\001\022K\n\026message_storag" + + "e_policy\030\003 \001(\0132&.google.pubsub.v1.Messag" + + "eStoragePolicyB\003\340A\001\022\031\n\014kms_key_name\030\005 \001(" + + "\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 .google" + + ".pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsatisf" + + "ies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_" + + "duration\030\010 \001(\0132\031.google.protobuf.Duratio" + + "nB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pubsub.v1" + + ".Topic.StateB\003\340A\003\022Z\n\036ingestion_data_sour" + + "ce_settings\030\n \001(\0132-.google.pubsub.v1.Ing" + + "estionDataSourceSettingsB\003\340A\001\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001" + + "\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:T\352AQ\n\033pub" + + "sub.googleapis.com/Topic\022!projects/{proj" + + "ect}/topics/{topic}\022\017_deleted-topic_\"\200\002\n" + + "\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001\022H\n\natt" + + "ributes\030\002 \003(\0132/.google.pubsub.v1.PubsubM" + + "essage.AttributesEntryB\003\340A\001\022\022\n\nmessage_i" + + "d\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022\031\n\014ordering_key\030\005 \001(\tB" + + "\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005to" + + "pic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" + + "/Topic\"w\n\022UpdateTopicRequest\022+\n\005topic\030\001 " + + "\001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001(\t" + + "B#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n" + + "\010messages\030\002 \003(\0132\037.google.pubsub.v1.Pubsu" + + "bMessageB\003\340A\002\"+\n\017PublishResponse\022\030\n\013mess" + + "age_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopicsRequest" + + "\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresource" + + "manager.googleapis.com/Project\022\026\n\tpage_s" + "ize\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"" - + "\201\001\n\036ListTopicSubscriptionsResponse\022A\n\rsu" - + "bscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.google" - + "apis.com/Subscription\022\034\n\017next_page_token" - + "\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsReques" + + "`\n\022ListTopicsResponse\022,\n\006topics\030\001 \003(\0132\027." + + "google.pubsub.v1.TopicB\003\340A\001\022\034\n\017next_page" + + "_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSubscript" + + "ionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubs" + + "ub.googleapis.com/Topic\022\026\n\tpage_size\030\002 \001" + + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\036Lis" + + "tTopicSubscriptionsResponse\022A\n\rsubscript" + + "ions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\022\034\n\017next_page_token\030\002 \001(\tB" + + "\003\340A\001\"\200\001\n\031ListTopicSnapshotsRequest\0222\n\005to" + + "pic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" + + "/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" + + "oken\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnapshotsRes" + + "ponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017next_pa" + + "ge_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopicReques" + "t\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googlea" - + "pis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnaps" - + "hotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017" - + "next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopi" - + "cRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub." - + "googleapis.com/Topic\"]\n\031DetachSubscripti" - + "onRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\"\034\n\032D" - + "etachSubscriptionResponse\"\357\010\n\014Subscripti" - + "on\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A" - + "\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\013pus" - + "h_config\030\004 \001(\0132\034.google.pubsub.v1.PushCo" - + "nfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132 .goo" - + "gle.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n\024clo" - + "ud_storage_config\030\026 \001(\0132$.google.pubsub." - + "v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_deadli" - + "ne_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_me" - + "ssages\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_d" - + "uration\030\010 \001(\0132\031.google.protobuf.Duration" - + "B\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubsub.v1" - + ".Subscription.LabelsEntryB\003\340A\001\022$\n\027enable" - + "_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021expirati" - + "on_policy\030\013 \001(\0132\".google.pubsub.v1.Expir" - + "ationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n" - + "\022dead_letter_policy\030\r \001(\0132\".google.pubsu" - + "b.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry_poli" - + "cy\030\016 \001(\0132\035.google.pubsub.v1.RetryPolicyB" - + "\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_ex" - + "actly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n topic_" - + "message_retention_duration\030\021 \001(\0132\031.googl" - + "e.protobuf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\0162" - + "$.google.pubsub.v1.Subscription.StateB\003\340" - + "A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020" - + "\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"" - + "pubsub.googleapis.com/Subscription\022/proj" - + "ects/{project}/subscriptions/{subscripti" - + "on}\"\177\n\013RetryPolicy\0227\n\017minimum_backoff\030\001 " - + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\0227\n\017m" - + "aximum_backoff\030\002 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\001\"V\n\020DeadLetterPolicy\022\036\n\021dead" - + "_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_delivery" - + "_attempts\030\002 \001(\005B\003\340A\001\"?\n\020ExpirationPolicy" - + "\022+\n\003ttl\030\001 \001(\0132\031.google.protobuf.Duration" - + "B\003\340A\001\"\232\004\n\nPushConfig\022\032\n\rpush_endpoint\030\001 " - + "\001(\tB\003\340A\001\022E\n\nattributes\030\002 \003(\0132,.google.pu" - + "bsub.v1.PushConfig.AttributesEntryB\003\340A\001\022" - + "A\n\noidc_token\030\003 \001(\0132&.google.pubsub.v1.P" - + "ushConfig.OidcTokenB\003\340A\001H\000\022I\n\016pubsub_wra" - + "pper\030\004 \001(\0132*.google.pubsub.v1.PushConfig" - + ".PubsubWrapperB\003\340A\001H\001\022A\n\nno_wrapper\030\005 \001(" - + "\0132&.google.pubsub.v1.PushConfig.NoWrappe" - + "rB\003\340A\001H\001\032F\n\tOidcToken\022\"\n\025service_account" - + "_email\030\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001(\tB\003\340A\001" - + "\032\017\n\rPubsubWrapper\032(\n\tNoWrapper\022\033\n\016write_" - + "metadata\030\001 \001(\010B\003\340A\001\0321\n\017AttributesEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authen" - + "tication_methodB\t\n\007wrapper\"\216\003\n\016BigQueryC" - + "onfig\022\022\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_topic_s" - + "chema\030\002 \001(\010B\003\340A\001\022\033\n\016write_metadata\030\003 \001(\010" - + "B\003\340A\001\022 \n\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022" - + ":\n\005state\030\005 \001(\0162&.google.pubsub.v1.BigQue" - + "ryConfig.StateB\003\340A\003\022\035\n\020use_table_schema\030" - + "\006 \001(\010B\003\340A\001\022\"\n\025service_account_email\030\007 \001(" - + "\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNO" - + "T_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRA" - + "NSIT_LOCATION_RESTRICTION\020\005\"\351\005\n\022CloudSto" - + "rageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filen" - + "ame_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix" - + "\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_format\030" - + "\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/.google" - + ".pubsub.v1.CloudStorageConfig.TextConfig" - + "B\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.google.pu" - + "bsub.v1.CloudStorageConfig.AvroConfigB\003\340" - + "A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.google.prot" - + "obuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340" - + "A\001\022\031\n\014max_messages\030\010 \001(\003B\003\340A\001\022>\n\005state\030\t" - + " \001(\0162*.google.pubsub.v1.CloudStorageConf" - + "ig.StateB\003\340A\003\022\"\n\025service_account_email\030\013" - + " \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\nAvroConfig\022\033\n" - + "\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use_topic_" - + "schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DEN" - + "IED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCAT" - + "ION_RESTRICTION\020\004\022\023\n\017SCHEMA_MISMATCH\020\005B\017" - + "\n\routput_format\"|\n\017ReceivedMessage\022\023\n\006ac" - + "k_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.googl" - + "e.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n\020delive" - + "ry_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscription" - + "Request\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"p" - + "ubsub.googleapis.com/Subscription\"\214\001\n\031Up" - + "dateSubscriptionRequest\0229\n\014subscription\030" - + "\001 \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340" - + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRe" - + "quest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudres" - + "ourcemanager.googleapis.com/Project\022\026\n\tp" - + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" - + "\003\340A\001\"u\n\031ListSubscriptionsResponse\022:\n\rsub" - + "scriptions\030\001 \003(\0132\036.google.pubsub.v1.Subs" - + "criptionB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" - + "\340A\001\"]\n\031DeleteSubscriptionRequest\022@\n\014subs" - + "cription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapi" - + "s.com/Subscription\"\223\001\n\027ModifyPushConfigR" - + "equest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pu" - + "bsub.googleapis.com/Subscription\0226\n\013push" - + "_config\030\002 \001(\0132\034.google.pubsub.v1.PushCon" - + "figB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\022!\n\022return_immediately\030\002 \001(\010B\005" - + "\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014Pull" - + "Response\022A\n\021received_messages\030\001 \003(\0132!.go" - + "ogle.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030" - + "ModifyAckDeadlineRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_" - + "deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Acknowled" - + "geRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" - + "ck_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullReque" + + "pis.com/Topic\"]\n\031DetachSubscriptionReque" + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" - + "\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_seconds\030\003 " - + "\003(\005B\003\340A\001\022$\n\027modify_deadline_ack_ids\030\004 \003(" - + "\tB\003\340A\001\022(\n\033stream_ack_deadline_seconds\030\005 " - + "\001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_" - + "outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_o" - + "utstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025Streamin" - + "gPullResponse\022A\n\021received_messages\030\001 \003(\013" - + "2!.google.pubsub.v1.ReceivedMessageB\003\340A\001" - + "\022f\n\030acknowledge_confirmation\030\005 \001(\0132?.goo" - + "gle.pubsub.v1.StreamingPullResponse.Ackn" - + "owledgeConfirmationB\003\340A\001\022t\n modify_ack_d" - + "eadline_confirmation\030\003 \001(\0132E.google.pubs" - + "ub.v1.StreamingPullResponse.ModifyAckDea" - + "dlineConfirmationB\003\340A\001\022d\n\027subscription_p" - + "roperties\030\004 \001(\0132>.google.pubsub.v1.Strea" - + "mingPullResponse.SubscriptionPropertiesB" - + "\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022\024\n\007ack_" - + "ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB" - + "\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030" - + "temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035M" - + "odifyAckDeadlineConfirmation\022\024\n\007ack_ids\030" - + "\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001" - + "\022%\n\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032" - + "k\n\026SubscriptionProperties\022*\n\035exactly_onc" - + "e_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message" - + "_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateS" - + "napshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pu" - + "bsub.googleapis.com/Snapshot\022@\n\014subscrip" - + "tion\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\022H\n\006labels\030\003 \003(\01323.google." - + "pubsub.v1.CreateSnapshotRequest.LabelsEn" - + "tryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotReques" - + "t\0221\n\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.S" - + "napshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A" - + "\035\n\033pubsub.googleapis.com/Topic\0224\n\013expire" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pubsub.v1." - + "Snapshot.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036p" - + "ubsub.googleapis.com/Snapshot\022\'projects/" - + "{project}/snapshots/{snapshot}\"N\n\022GetSna" - + "pshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036" - + "pubsub.googleapis.com/Snapshot\"\215\001\n\024ListS" - + "napshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-" - + "\n+cloudresourcemanager.googleapis.com/Pr" - + "oject\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\022" - + "2\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.Sn" - + "apshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" - + "\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot\030\001" - + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" - + "shot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001 \001" - + "(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subscr" - + "iption\022/\n\004time\030\002 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A" - + " \n\036pubsub.googleapis.com/SnapshotH\000B\010\n\006t" - + "arget\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013C" - + "reateTopic\022\027.google.pubsub.v1.Topic\032\027.go" - + "ogle.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1" - + "/{name=projects/*/topics/*}:\001*\022\221\001\n\013Updat" - + "eTopic\022$.google.pubsub.v1.UpdateTopicReq" - + "uest\032\027.google.pubsub.v1.Topic\"C\332A\021topic," - + "update_mask\202\323\344\223\002)2$/v1/{topic.name=proje" - + "cts/*/topics/*}:\001*\022\223\001\n\007Publish\022 .google." - + "pubsub.v1.PublishRequest\032!.google.pubsub" - + ".v1.PublishResponse\"C\332A\016topic,messages\202\323" - + "\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:pu" - + "blish:\001*\022w\n\010GetTopic\022!.google.pubsub.v1." - + "GetTopicRequest\032\027.google.pubsub.v1.Topic" - + "\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/" - + "topics/*}\022\212\001\n\nListTopics\022#.google.pubsub" - + ".v1.ListTopicsRequest\032$.google.pubsub.v1" - + ".ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/" - + "v1/{project=projects/*}/topics\022\272\001\n\026ListT" - + "opicSubscriptions\022/.google.pubsub.v1.Lis" - + "tTopicSubscriptionsRequest\0320.google.pubs" - + "ub.v1.ListTopicSubscriptionsResponse\"=\332A" - + "\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/topi" - + "cs/*}/subscriptions\022\252\001\n\022ListTopicSnapsho" - + "ts\022+.google.pubsub.v1.ListTopicSnapshots" - + "Request\032,.google.pubsub.v1.ListTopicSnap" - + "shotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topi" - + "c=projects/*/topics/*}/snapshots\022|\n\013Dele" - + "teTopic\022$.google.pubsub.v1.DeleteTopicRe" - + "quest\032\026.google.protobuf.Empty\"/\332A\005topic\202" - + "\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255" - + "\001\n\022DetachSubscription\022+.google.pubsub.v1" - + ".DetachSubscriptionRequest\032,.google.pubs" - + "ub.v1.DetachSubscriptionResponse\"<\202\323\344\223\0026" - + "\"4/v1/{subscription=projects/*/subscript" - + "ions/*}:detach\032p\312A\025pubsub.googleapis.com" - + "\322AUhttps://www.googleapis.com/auth/cloud" - + "-platform,https://www.googleapis.com/aut" - + "h/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscr" - + "iption\022\036.google.pubsub.v1.Subscription\032\036" - + ".google.pubsub.v1.Subscription\"^\332A+name," - + "topic,push_config,ack_deadline_seconds\202\323" - + "\344\223\002*\032%/v1/{name=projects/*/subscriptions" - + "/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pubs" - + "ub.v1.GetSubscriptionRequest\032\036.google.pu" - + "bsub.v1.Subscription\"D\332A\014subscription\202\323\344" - + "\223\002/\022-/v1/{subscription=projects/*/subscr" - + "iptions/*}\022\273\001\n\022UpdateSubscription\022+.goog" - + "le.pubsub.v1.UpdateSubscriptionRequest\032\036" - + ".google.pubsub.v1.Subscription\"X\332A\030subsc" - + "ription,update_mask\202\323\344\223\002722/v1/{subscrip" - + "tion.name=projects/*/subscriptions/*}:\001*" - + "\022\246\001\n\021ListSubscriptions\022*.google.pubsub.v" - + "1.ListSubscriptionsRequest\032+.google.pubs" - + "ub.v1.ListSubscriptionsResponse\"8\332A\007proj" - + "ect\202\323\344\223\002(\022&/v1/{project=projects/*}/subs" - + "criptions\022\237\001\n\022DeleteSubscription\022+.googl" - + "e.pubsub.v1.DeleteSubscriptionRequest\032\026." - + "google.protobuf.Empty\"D\332A\014subscription\202\323" - + "\344\223\002/*-/v1/{subscription=projects/*/subsc" - + "riptions/*}\022\317\001\n\021ModifyAckDeadline\022*.goog" - + "le.pubsub.v1.ModifyAckDeadlineRequest\032\026." - + "google.protobuf.Empty\"v\332A)subscription,a" - + "ck_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{" + + ".googleapis.com/Subscription\"\034\n\032DetachSu" + + "bscriptionResponse\"\253\n\n\014Subscription\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033p" + + "ubsub.googleapis.com/Topic\0226\n\013push_confi" + + "g\030\004 \001(\0132\034.google.pubsub.v1.PushConfigB\003\340" + + "A\001\022>\n\017bigquery_config\030\022 \001(\0132 .google.pub" + + "sub.v1.BigQueryConfigB\003\340A\001\022G\n\024cloud_stor" + + "age_config\030\026 \001(\0132$.google.pubsub.v1.Clou" + + "dStorageConfigB\003\340A\001\022!\n\024ack_deadline_seco" + + "nds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_messages\030" + + "\007 \001(\010B\003\340A\001\022B\n\032message_retention_duration" + + "\030\010 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?" + + "\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subscr" + + "iption.LabelsEntryB\003\340A\001\022$\n\027enable_messag" + + "e_ordering\030\n \001(\010B\003\340A\001\022B\n\021expiration_poli" + + "cy\030\013 \001(\0132\".google.pubsub.v1.ExpirationPo" + + "licyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n\022dead_l" + + "etter_policy\030\r \001(\0132\".google.pubsub.v1.De" + + "adLetterPolicyB\003\340A\001\0228\n\014retry_policy\030\016 \001(" + + "\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + + "\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_exactly_o" + + "nce_delivery\030\020 \001(\010B\003\340A\001\022H\n topic_message" + + "_retention_duration\030\021 \001(\0132\031.google.proto" + + "buf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\0162$.googl" + + "e.pubsub.v1.Subscription.StateB\003\340A\003\022i\n\037a" + + "nalytics_hub_subscription_info\030\027 \001(\0132;.g" + + "oogle.pubsub.v1.Subscription.AnalyticsHu" + + "bSubscriptionInfoB\003\340A\003\032O\n\034AnalyticsHubSu" + + "bscriptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014" + + "subscription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RE" + + "SOURCE_ERROR\020\002:X\352AU\n\"pubsub.googleapis.c" + + "om/Subscription\022/projects/{project}/subs" + + "criptions/{subscription}\"\177\n\013RetryPolicy\022" + + "7\n\017minimum_backoff\030\001 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001\"V\n\020Dea" + + "dLetterPolicy\022\036\n\021dead_letter_topic\030\001 \001(\t" + + "B\003\340A\001\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A" + + "\001\"?\n\020ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.goo" + + "gle.protobuf.DurationB\003\340A\001\"\232\004\n\nPushConfi" + + "g\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattribu" + + "tes\030\002 \003(\0132,.google.pubsub.v1.PushConfig." + + "AttributesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\013" + + "2&.google.pubsub.v1.PushConfig.OidcToken" + + "B\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google" + + ".pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001" + + "H\001\022A\n\nno_wrapper\030\005 \001(\0132&.google.pubsub.v" + + "1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcTok" + + "en\022\"\n\025service_account_email\030\001 \001(\tB\003\340A\001\022\025" + + "\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(" + + "\n\tNoWrapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001" + + "\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001B\027\n\025authentication_methodB\t\n\007" + + "wrapper\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(" + + "\tB\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unkno" + + "wn_fields\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.go" + + "ogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003" + + "\022\035\n\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025servi" + + "ce_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERM" + + "ISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA" + + "_MISMATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTR" + + "ICTION\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucke" + + "t\030\001 \001(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340" + + "A\001\022\034\n\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030file" + + "name_datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_" + + "config\030\004 \001(\0132/.google.pubsub.v1.CloudSto" + + "rageConfig.TextConfigB\003\340A\001H\000\022K\n\013avro_con" + + "fig\030\005 \001(\0132/.google.pubsub.v1.CloudStorag" + + "eConfig.AvroConfigB\003\340A\001H\000\0224\n\014max_duratio" + + "n\030\006 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022" + + "\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030" + + "\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsu" + + "b.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n\025se" + + "rvice_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextCo" + + "nfig\032H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" + + "(\010B\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212" + + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" + + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023" + + "\n\017SCHEMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017" + + "ReceivedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007" + + "message\030\002 \001(\0132\037.google.pubsub.v1.PubsubM" + + "essageB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340" + + "A\001\"Z\n\026GetSubscriptionRequest\022@\n\014subscrip" + + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\"\214\001\n\031UpdateSubscriptionReq" + + "uest\0229\n\014subscription\030\001 \001(\0132\036.google.pubs" + + "ub.v1.SubscriptionB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001" + + "\n\030ListSubscriptionsRequest\022D\n\007project\030\001 " + + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" + + "apis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" + + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscri" + + "ptionsResponse\022:\n\rsubscriptions\030\001 \003(\0132\036." + + "google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017ne" + + "xt_page_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscr" + + "iptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\"" + + "\223\001\n\027ModifyPushConfigRequest\022@\n\014subscript" + + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" + + "/Subscription\0226\n\013push_config\030\002 \001(\0132\034.goo" + + "gle.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\022!\n\022retur" + + "n_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messag" + + "es\030\003 \001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021receive" + + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" + + "ivedMessageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\022\024\n\007ack_i" + + "ds\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 " + + "\001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscr" + + "iption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis." + + "com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307" + + "\002\n\024StreamingPullRequest\022@\n\014subscription\030" + + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modif" + + "y_deadline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_" + + "deadline_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ac" + + "k_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_" + + "id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstanding_message" + + "s\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 " + + "\001(\003B\003\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021re" + + "ceived_messages\030\001 \003(\0132!.google.pubsub.v1" + + ".ReceivedMessageB\003\340A\001\022f\n\030acknowledge_con" + + "firmation\030\005 \001(\0132?.google.pubsub.v1.Strea" + + "mingPullResponse.AcknowledgeConfirmation" + + "B\003\340A\001\022t\n modify_ack_deadline_confirmatio" + + "n\030\003 \001(\0132E.google.pubsub.v1.StreamingPull" + + "Response.ModifyAckDeadlineConfirmationB\003" + + "\340A\001\022d\n\027subscription_properties\030\004 \001(\0132>.g" + + "oogle.pubsub.v1.StreamingPullResponse.Su" + + "bscriptionPropertiesB\003\340A\001\032\224\001\n\027Acknowledg" + + "eConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017i" + + "nvalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_a" + + "ck_ids\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ac" + + "k_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineCon" + + "firmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017inval" + + "id_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_faile" + + "d_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProp" + + "erties\022*\n\035exactly_once_delivery_enabled\030" + + "\001 \001(\010B\003\340A\001\022%\n\030message_ordering_enabled\030\002" + + " \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004n" + + "ame\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com" + + "/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022H\n\006l" + + "abels\030\003 \003(\01323.google.pubsub.v1.CreateSna" + + "pshotRequest.LabelsEntryB\003\340A\001\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n" + + "\025UpdateSnapshotRequest\0221\n\010snapshot\030\001 \001(\013" + + "2\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\002\"\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\022" + + "2\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapi" + + "s.com/Topic\0224\n\013expire_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(" + + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" + + "yB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.co" + + "m/Snapshot\022\'projects/{project}/snapshots" + + "/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010sna" + + "pshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" + + "om/Snapshot\"\215\001\n\024ListSnapshotsRequest\022D\n\007" + + "project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" + + "ger.googleapis.com/Project\022\026\n\tpage_size\030" + + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025L" + + "istSnapshotsResponse\0222\n\tsnapshots\030\001 \003(\0132" + + "\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next" + + "_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshot" + + "Request\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsu" + + "b.googleapis.com/Snapshot\"\306\001\n\013SeekReques" + + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." + + "googleapis.com/Subscription\022/\n\004time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n\010" + + "snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapi" + + "s.com/SnapshotH\000B\010\n\006target\"\016\n\014SeekRespon" + + "se2\270\013\n\tPublisher\022q\n\013CreateTopic\022\027.google" + + ".pubsub.v1.Topic\032\027.google.pubsub.v1.Topi" + + "c\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/t" + + "opics/*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pub" + + "sub.v1.UpdateTopicRequest\032\027.google.pubsu" + + "b.v1.Topic\"C\332A\021topic,update_mask\202\323\344\223\002)2$" + + "/v1/{topic.name=projects/*/topics/*}:\001*\022" + + "\223\001\n\007Publish\022 .google.pubsub.v1.PublishRe" + + "quest\032!.google.pubsub.v1.PublishResponse" + + "\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=pr" + + "ojects/*/topics/*}:publish:\001*\022w\n\010GetTopi" + + "c\022!.google.pubsub.v1.GetTopicRequest\032\027.g" + + "oogle.pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/" + + "v1/{topic=projects/*/topics/*}\022\212\001\n\nListT" + + "opics\022#.google.pubsub.v1.ListTopicsReque" + + "st\032$.google.pubsub.v1.ListTopicsResponse" + + "\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=project" + + "s/*}/topics\022\272\001\n\026ListTopicSubscriptions\022/" + + ".google.pubsub.v1.ListTopicSubscriptions" + + "Request\0320.google.pubsub.v1.ListTopicSubs" + + "criptionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{" + + "topic=projects/*/topics/*}/subscriptions" + + "\022\252\001\n\022ListTopicSnapshots\022+.google.pubsub." + + "v1.ListTopicSnapshotsRequest\032,.google.pu" + + "bsub.v1.ListTopicSnapshotsResponse\"9\332A\005t" + + "opic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics" + + "/*}/snapshots\022|\n\013DeleteTopic\022$.google.pu" + + "bsub.v1.DeleteTopicRequest\032\026.google.prot" + + "obuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=p" + + "rojects/*/topics/*}\022\255\001\n\022DetachSubscripti" + + "on\022+.google.pubsub.v1.DetachSubscription" + + "Request\032,.google.pubsub.v1.DetachSubscri" + + "ptionResponse\"<\202\323\344\223\0026\"4/v1/{subscription" + + "=projects/*/subscriptions/*}:detach\032p\312A\025" + + "pubsub.googleapis.com\322AUhttps://www.goog" + + "leapis.com/auth/cloud-platform,https://w" + + "ww.googleapis.com/auth/pubsub2\322\025\n\nSubscr" + + "iber\022\264\001\n\022CreateSubscription\022\036.google.pub" + + "sub.v1.Subscription\032\036.google.pubsub.v1.S" + + "ubscription\"^\332A+name,topic,push_config,a" + + "ck_deadline_seconds\202\323\344\223\002*\032%/v1/{name=pro" + + "jects/*/subscriptions/*}:\001*\022\241\001\n\017GetSubsc" + + "ription\022(.google.pubsub.v1.GetSubscripti" + + "onRequest\032\036.google.pubsub.v1.Subscriptio" + + "n\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{subscript" + + "ion=projects/*/subscriptions/*}\022\273\001\n\022Upda" + + "teSubscription\022+.google.pubsub.v1.Update" + + "SubscriptionRequest\032\036.google.pubsub.v1.S" + + "ubscription\"X\332A\030subscription,update_mask" + + "\202\323\344\223\002722/v1/{subscription.name=projects/" + + "*/subscriptions/*}:\001*\022\246\001\n\021ListSubscripti" + + "ons\022*.google.pubsub.v1.ListSubscriptions" + + "Request\032+.google.pubsub.v1.ListSubscript" + + "ionsResponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{pro" + + "ject=projects/*}/subscriptions\022\237\001\n\022Delet" + + "eSubscription\022+.google.pubsub.v1.DeleteS" + + "ubscriptionRequest\032\026.google.protobuf.Emp" + + "ty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{subscrip" + + "tion=projects/*/subscriptions/*}\022\317\001\n\021Mod" + + "ifyAckDeadline\022*.google.pubsub.v1.Modify" + + "AckDeadlineRequest\032\026.google.protobuf.Emp" + + "ty\"v\332A)subscription,ack_ids,ack_deadline" + + "_seconds\202\323\344\223\002D\"?/v1/{subscription=projec" + + "ts/*/subscriptions/*}:modifyAckDeadline:" + + "\001*\022\250\001\n\013Acknowledge\022$.google.pubsub.v1.Ac" + + "knowledgeRequest\032\026.google.protobuf.Empty" + + "\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9/v1/{su" + + "bscription=projects/*/subscriptions/*}:a" + + "cknowledge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v" + + "1.PullRequest\032\036.google.pubsub.v1.PullRes" + + "ponse\"\210\001\332A,subscription,return_immediate" + + "ly,max_messages\332A\031subscription,max_messa" + + "ges\202\323\344\223\0027\"2/v1/{subscription=projects/*/" + + "subscriptions/*}:pull:\001*\022f\n\rStreamingPul" + + "l\022&.google.pubsub.v1.StreamingPullReques" + + "t\032\'.google.pubsub.v1.StreamingPullRespon" + + "se\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).google.p" + + "ubsub.v1.ModifyPushConfigRequest\032\026.googl" + + "e.protobuf.Empty\"d\332A\030subscription,push_c" + + "onfig\202\323\344\223\002C\">/v1/{subscription=projects/" + + "*/subscriptions/*}:modifyPushConfig:\001*\022\211" + + "\001\n\013GetSnapshot\022$.google.pubsub.v1.GetSna" + + "pshotRequest\032\032.google.pubsub.v1.Snapshot" + + "\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=proje" + + "cts/*/snapshots/*}\022\226\001\n\rListSnapshots\022&.g" + + "oogle.pubsub.v1.ListSnapshotsRequest\032\'.g" + + "oogle.pubsub.v1.ListSnapshotsResponse\"4\332" + + "A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*" + + "}/snapshots\022\227\001\n\016CreateSnapshot\022\'.google." + + "pubsub.v1.CreateSnapshotRequest\032\032.google" + + ".pubsub.v1.Snapshot\"@\332A\021name,subscriptio" + + "n\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/" + + "*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.google.pubsub" + + ".v1.UpdateSnapshotRequest\032\032.google.pubsu" + + "b.v1.Snapshot\"L\332A\024snapshot,update_mask\202\323" + + "\344\223\002/2*/v1/{snapshot.name=projects/*/snap" + + "shots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google." + + "pubsub.v1.DeleteSnapshotRequest\032\026.google" + + ".protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/" + + "{snapshot=projects/*/snapshots/*}\022\204\001\n\004Se" + + "ek\022\035.google.pubsub.v1.SeekRequest\032\036.goog" + + "le.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{" + "subscription=projects/*/subscriptions/*}" - + ":modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022$." - + "google.pubsub.v1.AcknowledgeRequest\032\026.go" - + "ogle.protobuf.Empty\"[\332A\024subscription,ack" - + "_ids\202\323\344\223\002>\"9/v1/{subscription=projects/*" - + "/subscriptions/*}:acknowledge:\001*\022\320\001\n\004Pul" - + "l\022\035.google.pubsub.v1.PullRequest\032\036.googl" - + "e.pubsub.v1.PullResponse\"\210\001\332A,subscripti" - + "on,return_immediately,max_messages\332A\031sub" - + "scription,max_messages\202\323\344\223\0027\"2/v1/{subsc" - + "ription=projects/*/subscriptions/*}:pull" - + ":\001*\022f\n\rStreamingPull\022&.google.pubsub.v1." - + "StreamingPullRequest\032\'.google.pubsub.v1." - + "StreamingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPu" - + "shConfig\022).google.pubsub.v1.ModifyPushCo" - + "nfigRequest\032\026.google.protobuf.Empty\"d\332A\030" - + "subscription,push_config\202\323\344\223\002C\">/v1/{sub" - + "scription=projects/*/subscriptions/*}:mo" - + "difyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.goog" - + "le.pubsub.v1.GetSnapshotRequest\032\032.google" - + ".pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%" - + "/v1/{snapshot=projects/*/snapshots/*}\022\226\001" - + "\n\rListSnapshots\022&.google.pubsub.v1.ListS" - + "napshotsRequest\032\'.google.pubsub.v1.ListS" - + "napshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/" - + "{project=projects/*}/snapshots\022\227\001\n\016Creat" - + "eSnapshot\022\'.google.pubsub.v1.CreateSnaps" - + "hotRequest\032\032.google.pubsub.v1.Snapshot\"@" - + "\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=pr" - + "ojects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnaps" - + "hot\022\'.google.pubsub.v1.UpdateSnapshotReq" - + "uest\032\032.google.pubsub.v1.Snapshot\"L\332A\024sna" - + "pshot,update_mask\202\323\344\223\002/2*/v1/{snapshot.n" - + "ame=projects/*/snapshots/*}:\001*\022\213\001\n\016Delet" - + "eSnapshot\022\'.google.pubsub.v1.DeleteSnaps" - + "hotRequest\032\026.google.protobuf.Empty\"8\332A\010s" - + "napshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/" - + "snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1" - + ".SeekRequest\032\036.google.pubsub.v1.SeekResp" - + "onse\"=\202\323\344\223\0027\"2/v1/{subscription=projects" - + "/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub.g" - + "oogleapis.com\322AUhttps://www.googleapis.c" - + "om/auth/cloud-platform,https://www.googl" - + "eapis.com/auth/pubsubB\252\001\n\024com.google.pub" - + "sub.v1B\013PubsubProtoP\001Z2cloud.google.com/" - + "go/pubsub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026G" - + "oogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\Pub" - + "Sub\\V1\352\002\031Google::Cloud::PubSub::V1b\006prot" - + "o3" + + ":seek:\001*\032p\312A\025pubsub.googleapis.com\322AUhtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/pubs" + + "ubB\252\001\n\024com.google.pubsub.v1B\013PubsubProto" + + "P\001Z2cloud.google.com/go/pubsub/apiv1/pub" + + "subpb;pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.", + "V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cl" + "oud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -691,7 +747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor, new java.lang.String[] { - "AwsKinesis", "Source", + "AwsKinesis", "CloudStorage", "PlatformLogsSettings", "Source", }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor = internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor @@ -703,7 +759,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "State", "StreamArn", "ConsumerArn", "AwsRoleArn", "GcpServiceAccount", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(1); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor, + new java.lang.String[] { + "State", + "Bucket", + "TextFormat", + "AvroFormat", + "PubsubAvroFormat", + "MinimumObjectCreateTime", + "MatchGlob", + "InputFormat", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor + .getNestedTypes() + .get(0); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor, + new java.lang.String[] { + "Delimiter", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor + .getNestedTypes() + .get(1); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor + .getNestedTypes() + .get(2); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor, + new java.lang.String[] { + "Severity", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, @@ -727,7 +834,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -743,7 +850,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, @@ -751,7 +858,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, @@ -759,7 +866,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, @@ -767,7 +874,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, @@ -775,7 +882,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, @@ -783,7 +890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, @@ -791,7 +898,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, @@ -799,7 +906,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, @@ -807,7 +914,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, @@ -815,7 +922,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, @@ -823,7 +930,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, @@ -831,7 +938,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, @@ -839,13 +946,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -868,9 +975,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableExactlyOnceDelivery", "TopicMessageRetentionDuration", "State", + "AnalyticsHubSubscriptionInfo", }); - internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor, + new java.lang.String[] { + "Listing", "Subscription", + }); + internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = + internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(1); internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, @@ -878,7 +994,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -886,7 +1002,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -894,7 +1010,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -902,7 +1018,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -946,7 +1062,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, @@ -960,7 +1076,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccountEmail", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, @@ -993,7 +1109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -1001,7 +1117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -1009,7 +1125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -1017,7 +1133,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -1025,7 +1141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -1033,7 +1149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -1041,7 +1157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -1049,7 +1165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -1057,7 +1173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -1065,7 +1181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -1073,7 +1189,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -1081,7 +1197,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -1096,7 +1212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -1131,7 +1247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -1147,7 +1263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -1155,7 +1271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1171,7 +1287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1179,7 +1295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1187,7 +1303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1195,7 +1311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1203,7 +1319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1211,7 +1327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index aa05afd08f2e..339188193efc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1391 + * google/pubsub/v1/pubsub.proto;l=1531 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1391 + * google/pubsub/v1/pubsub.proto;l=1531 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1391 + * google/pubsub/v1/pubsub.proto;l=1531 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1391 + * google/pubsub/v1/pubsub.proto;l=1531 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 4fb6915aa44c..bbd1aadfb6c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PullRequestOrBuilder @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1391 + * google/pubsub/v1/pubsub.proto;l=1531 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 137ff8e9a4ec..b8c01469c62c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index af3fa138aca6..13591fc31852 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PullResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 7273fef24f47..c2b62ad7042c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 2065ca62aade..b3aec3d611b5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface PushConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 682c8c48222e..96e7b7c1975f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index dcc73e4491d8..f352ff532316 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ReceivedMessageOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index bff5aa7ef54f..ba9ea89529e7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 664f80bc4054..3437158f7591 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface RetryPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 0b0ee8797a45..cde07f4aa735 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 9d7f1e83dc17..d3be6be3c00f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface RollbackSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 1bf0ac5ad002..52357cf327fe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 12d4bb2fbc0f..6974c76634a8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SchemaOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index e4ea222736c1..4f028362abf9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public final class SchemaProto { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index c375beb9aded..834e3dbf20b5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 4189cf811e60..979132348943 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SchemaSettingsOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 0a10fac7e4d5..d2964ddc8d68 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index a8393bb109c0..ce9a015584cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index a2788628c777..70b5a13ae1ac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SeekRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 79b37b7bab7b..9a9f4c4a3e48 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index c47b0596ee2a..0b47b94e2f4c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SeekResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index bd753b6da3ed..36faa854dce8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 2840f7849d2e..2d406705bd37 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SnapshotOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index eecbd908f5c2..48afa860b8ac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 57c301ba9f6f..5c4af96cb5c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface StreamingPullRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index e571996f58e1..d262e7ca146b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 7c399b69e674..a20bf8572c4c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface StreamingPullResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 5c5c8519fe48..8554197d0a4e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** @@ -241,6 +241,902 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.pubsub.v1.Subscription.State) } + public interface AnalyticsHubSubscriptionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. The name of the associated Analytics Hub listing resource.
    +     * Pattern:
    +     * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
    +     * 
    + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The listing. + */ + java.lang.String getListing(); + /** + * + * + *
    +     * Optional. The name of the associated Analytics Hub listing resource.
    +     * Pattern:
    +     * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
    +     * 
    + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for listing. + */ + com.google.protobuf.ByteString getListingBytes(); + + /** + * + * + *
    +     * Optional. The name of the associated Analytics Hub subscription resource.
    +     * Pattern:
    +     * "projects/{project}/locations/{location}/subscriptions/{subscription}"
    +     * 
    + * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscription. + */ + java.lang.String getSubscription(); + /** + * + * + *
    +     * Optional. The name of the associated Analytics Hub subscription resource.
    +     * Pattern:
    +     * "projects/{project}/locations/{location}/subscriptions/{subscription}"
    +     * 
    + * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscription. + */ + com.google.protobuf.ByteString getSubscriptionBytes(); + } + /** + * + * + *
    +   * Information about an associated Analytics Hub subscription
    +   * (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} + */ + public static final class AnalyticsHubSubscriptionInfo + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) + AnalyticsHubSubscriptionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnalyticsHubSubscriptionInfo.newBuilder() to construct. + private AnalyticsHubSubscriptionInfo( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnalyticsHubSubscriptionInfo() { + listing_ = ""; + subscription_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnalyticsHubSubscriptionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.class, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder.class); + } + + public static final int LISTING_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object listing_ = ""; + /** + * + * + *
    +     * Optional. The name of the associated Analytics Hub listing resource.
    +     * Pattern:
    +     * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
    +     * 
    + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The listing. + */ + @java.lang.Override + public java.lang.String getListing() { + java.lang.Object ref = listing_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + listing_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The name of the associated Analytics Hub listing resource.
    +     * Pattern:
    +     * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
    +     * 
    + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for listing. + */ + @java.lang.Override + public com.google.protobuf.ByteString getListingBytes() { + java.lang.Object ref = listing_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + listing_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBSCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscription_ = ""; + /** + * + * + *
    +     * Optional. The name of the associated Analytics Hub subscription resource.
    +     * Pattern:
    +     * "projects/{project}/locations/{location}/subscriptions/{subscription}"
    +     * 
    + * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscription. + */ + @java.lang.Override + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The name of the associated Analytics Hub subscription resource.
    +     * Pattern:
    +     * "projects/{project}/locations/{location}/subscriptions/{subscription}"
    +     * 
    + * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(listing_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, listing_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(listing_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, listing_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo)) { + return super.equals(obj); + } + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo other = + (com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) obj; + + if (!getListing().equals(other.getListing())) return false; + if (!getSubscription().equals(other.getSubscription())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LISTING_FIELD_NUMBER; + hash = (53 * hash) + getListing().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSubscription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Information about an associated Analytics Hub subscription
    +     * (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.class, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder.class); + } + + // Construct using com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + listing_ = ""; + subscription_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + getDefaultInstanceForType() { + return com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo build() { + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo buildPartial() { + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo result = + new com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.listing_ = listing_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subscription_ = subscription_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) { + return mergeFrom((com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo other) { + if (other + == com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance()) + return this; + if (!other.getListing().isEmpty()) { + listing_ = other.listing_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSubscription().isEmpty()) { + subscription_ = other.subscription_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + listing_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + subscription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object listing_ = ""; + /** + * + * + *
    +       * Optional. The name of the associated Analytics Hub listing resource.
    +       * Pattern:
    +       * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
    +       * 
    + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The listing. + */ + public java.lang.String getListing() { + java.lang.Object ref = listing_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + listing_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the associated Analytics Hub listing resource.
    +       * Pattern:
    +       * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
    +       * 
    + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for listing. + */ + public com.google.protobuf.ByteString getListingBytes() { + java.lang.Object ref = listing_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + listing_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the associated Analytics Hub listing resource.
    +       * Pattern:
    +       * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
    +       * 
    + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The listing to set. + * @return This builder for chaining. + */ + public Builder setListing(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + listing_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the associated Analytics Hub listing resource.
    +       * Pattern:
    +       * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
    +       * 
    + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearListing() { + listing_ = getDefaultInstance().getListing(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the associated Analytics Hub listing resource.
    +       * Pattern:
    +       * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}"
    +       * 
    + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for listing to set. + * @return This builder for chaining. + */ + public Builder setListingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + listing_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object subscription_ = ""; + /** + * + * + *
    +       * Optional. The name of the associated Analytics Hub subscription resource.
    +       * Pattern:
    +       * "projects/{project}/locations/{location}/subscriptions/{subscription}"
    +       * 
    + * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscription. + */ + public java.lang.String getSubscription() { + java.lang.Object ref = subscription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the associated Analytics Hub subscription resource.
    +       * Pattern:
    +       * "projects/{project}/locations/{location}/subscriptions/{subscription}"
    +       * 
    + * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscription. + */ + public com.google.protobuf.ByteString getSubscriptionBytes() { + java.lang.Object ref = subscription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the associated Analytics Hub subscription resource.
    +       * Pattern:
    +       * "projects/{project}/locations/{location}/subscriptions/{subscription}"
    +       * 
    + * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subscription to set. + * @return This builder for chaining. + */ + public Builder setSubscription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subscription_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the associated Analytics Hub subscription resource.
    +       * Pattern:
    +       * "projects/{project}/locations/{location}/subscriptions/{subscription}"
    +       * 
    + * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubscription() { + subscription_ = getDefaultInstance().getSubscription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the associated Analytics Hub subscription resource.
    +       * Pattern:
    +       * "projects/{project}/locations/{location}/subscriptions/{subscription}"
    +       * 
    + * + * string subscription = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subscription to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscription_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) + private static final com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo(); + } + + public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalyticsHubSubscriptionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -602,7 +1498,7 @@ public boolean getRetainAckedMessages() { * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. *
    * * @@ -623,7 +1519,7 @@ public boolean hasMessageRetentionDuration() { * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. *
    * * @@ -646,7 +1542,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -1234,6 +2130,68 @@ public com.google.pubsub.v1.Subscription.State getState() { return result == null ? com.google.pubsub.v1.Subscription.State.UNRECOGNIZED : result; } + public static final int ANALYTICS_HUB_SUBSCRIPTION_INFO_FIELD_NUMBER = 23; + private com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + analyticsHubSubscriptionInfo_; + /** + * + * + *
    +   * Output only. Information about the associated Analytics Hub subscription.
    +   * Only set if the subscritpion is created by Analytics Hub.
    +   * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the analyticsHubSubscriptionInfo field is set. + */ + @java.lang.Override + public boolean hasAnalyticsHubSubscriptionInfo() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
    +   * Output only. Information about the associated Analytics Hub subscription.
    +   * Only set if the subscritpion is created by Analytics Hub.
    +   * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The analyticsHubSubscriptionInfo. + */ + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + getAnalyticsHubSubscriptionInfo() { + return analyticsHubSubscriptionInfo_ == null + ? com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance() + : analyticsHubSubscriptionInfo_; + } + /** + * + * + *
    +   * Output only. Information about the associated Analytics Hub subscription.
    +   * Only set if the subscritpion is created by Analytics Hub.
    +   * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder + getAnalyticsHubSubscriptionInfoOrBuilder() { + return analyticsHubSubscriptionInfo_ == null + ? com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance() + : analyticsHubSubscriptionInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1301,6 +2259,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(22, getCloudStorageConfig()); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(23, getAnalyticsHubSubscriptionInfo()); + } getUnknownFields().writeTo(output); } @@ -1375,6 +2336,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getCloudStorageConfig()); } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, getAnalyticsHubSubscriptionInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1434,6 +2400,11 @@ public boolean equals(final java.lang.Object obj) { return false; } if (state_ != other.state_) return false; + if (hasAnalyticsHubSubscriptionInfo() != other.hasAnalyticsHubSubscriptionInfo()) return false; + if (hasAnalyticsHubSubscriptionInfo()) { + if (!getAnalyticsHubSubscriptionInfo().equals(other.getAnalyticsHubSubscriptionInfo())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1499,6 +2470,10 @@ public int hashCode() { } hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + if (hasAnalyticsHubSubscriptionInfo()) { + hash = (37 * hash) + ANALYTICS_HUB_SUBSCRIPTION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAnalyticsHubSubscriptionInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1670,6 +2645,7 @@ private void maybeForceBuilderInitialization() { getDeadLetterPolicyFieldBuilder(); getRetryPolicyFieldBuilder(); getTopicMessageRetentionDurationFieldBuilder(); + getAnalyticsHubSubscriptionInfoFieldBuilder(); } } @@ -1727,6 +2703,11 @@ public Builder clear() { topicMessageRetentionDurationBuilder_ = null; } state_ = 0; + analyticsHubSubscriptionInfo_ = null; + if (analyticsHubSubscriptionInfoBuilder_ != null) { + analyticsHubSubscriptionInfoBuilder_.dispose(); + analyticsHubSubscriptionInfoBuilder_ = null; + } return this; } @@ -1839,6 +2820,13 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { if (((from_bitField0_ & 0x00020000) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.analyticsHubSubscriptionInfo_ = + analyticsHubSubscriptionInfoBuilder_ == null + ? analyticsHubSubscriptionInfo_ + : analyticsHubSubscriptionInfoBuilder_.build(); + to_bitField0_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; } @@ -1946,6 +2934,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.hasAnalyticsHubSubscriptionInfo()) { + mergeAnalyticsHubSubscriptionInfo(other.getAnalyticsHubSubscriptionInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2091,6 +3082,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 178 + case 186: + { + input.readMessage( + getAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 186 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3188,7 +4186,7 @@ public Builder clearRetainAckedMessages() { * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3208,7 +4206,7 @@ public boolean hasMessageRetentionDuration() { * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3234,7 +4232,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3262,7 +4260,7 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3288,7 +4286,7 @@ public Builder setMessageRetentionDuration( * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3321,7 +4319,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3346,7 +4344,7 @@ public Builder clearMessageRetentionDuration() { * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3366,7 +4364,7 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -3390,7 +4388,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -5063,6 +6061,227 @@ public Builder clearState() { return this; } + private com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + analyticsHubSubscriptionInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder> + analyticsHubSubscriptionInfoBuilder_; + /** + * + * + *
    +     * Output only. Information about the associated Analytics Hub subscription.
    +     * Only set if the subscritpion is created by Analytics Hub.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the analyticsHubSubscriptionInfo field is set. + */ + public boolean hasAnalyticsHubSubscriptionInfo() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * + * + *
    +     * Output only. Information about the associated Analytics Hub subscription.
    +     * Only set if the subscritpion is created by Analytics Hub.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The analyticsHubSubscriptionInfo. + */ + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + getAnalyticsHubSubscriptionInfo() { + if (analyticsHubSubscriptionInfoBuilder_ == null) { + return analyticsHubSubscriptionInfo_ == null + ? com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance() + : analyticsHubSubscriptionInfo_; + } else { + return analyticsHubSubscriptionInfoBuilder_.getMessage(); + } + } + /** + * + * + *
    +     * Output only. Information about the associated Analytics Hub subscription.
    +     * Only set if the subscritpion is created by Analytics Hub.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnalyticsHubSubscriptionInfo( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo value) { + if (analyticsHubSubscriptionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + analyticsHubSubscriptionInfo_ = value; + } else { + analyticsHubSubscriptionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Information about the associated Analytics Hub subscription.
    +     * Only set if the subscritpion is created by Analytics Hub.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnalyticsHubSubscriptionInfo( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder builderForValue) { + if (analyticsHubSubscriptionInfoBuilder_ == null) { + analyticsHubSubscriptionInfo_ = builderForValue.build(); + } else { + analyticsHubSubscriptionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Information about the associated Analytics Hub subscription.
    +     * Only set if the subscritpion is created by Analytics Hub.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAnalyticsHubSubscriptionInfo( + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo value) { + if (analyticsHubSubscriptionInfoBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && analyticsHubSubscriptionInfo_ != null + && analyticsHubSubscriptionInfo_ + != com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo + .getDefaultInstance()) { + getAnalyticsHubSubscriptionInfoBuilder().mergeFrom(value); + } else { + analyticsHubSubscriptionInfo_ = value; + } + } else { + analyticsHubSubscriptionInfoBuilder_.mergeFrom(value); + } + if (analyticsHubSubscriptionInfo_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + * + * + *
    +     * Output only. Information about the associated Analytics Hub subscription.
    +     * Only set if the subscritpion is created by Analytics Hub.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAnalyticsHubSubscriptionInfo() { + bitField0_ = (bitField0_ & ~0x00040000); + analyticsHubSubscriptionInfo_ = null; + if (analyticsHubSubscriptionInfoBuilder_ != null) { + analyticsHubSubscriptionInfoBuilder_.dispose(); + analyticsHubSubscriptionInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
    +     * Output only. Information about the associated Analytics Hub subscription.
    +     * Only set if the subscritpion is created by Analytics Hub.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder + getAnalyticsHubSubscriptionInfoBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Output only. Information about the associated Analytics Hub subscription.
    +     * Only set if the subscritpion is created by Analytics Hub.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder + getAnalyticsHubSubscriptionInfoOrBuilder() { + if (analyticsHubSubscriptionInfoBuilder_ != null) { + return analyticsHubSubscriptionInfoBuilder_.getMessageOrBuilder(); + } else { + return analyticsHubSubscriptionInfo_ == null + ? com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance() + : analyticsHubSubscriptionInfo_; + } + } + /** + * + * + *
    +     * Output only. Information about the associated Analytics Hub subscription.
    +     * Only set if the subscritpion is created by Analytics Hub.
    +     * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder> + getAnalyticsHubSubscriptionInfoFieldBuilder() { + if (analyticsHubSubscriptionInfoBuilder_ == null) { + analyticsHubSubscriptionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder>( + getAnalyticsHubSubscriptionInfo(), getParentForChildren(), isClean()); + analyticsHubSubscriptionInfo_ = null; + } + return analyticsHubSubscriptionInfoBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index f0aec914b488..51ea4432a310 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface SubscriptionOrBuilder @@ -279,7 +279,7 @@ public interface SubscriptionOrBuilder * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -297,7 +297,7 @@ public interface SubscriptionOrBuilder * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -315,7 +315,7 @@ public interface SubscriptionOrBuilder * 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. + * 7 days. Cannot be more than 31 days or less than 10 minutes. * * * @@ -743,4 +743,49 @@ java.lang.String getLabelsOrDefault( * @return The state. */ com.google.pubsub.v1.Subscription.State getState(); + + /** + * + * + *
    +   * Output only. Information about the associated Analytics Hub subscription.
    +   * Only set if the subscritpion is created by Analytics Hub.
    +   * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the analyticsHubSubscriptionInfo field is set. + */ + boolean hasAnalyticsHubSubscriptionInfo(); + /** + * + * + *
    +   * Output only. Information about the associated Analytics Hub subscription.
    +   * Only set if the subscritpion is created by Analytics Hub.
    +   * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The analyticsHubSubscriptionInfo. + */ + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo getAnalyticsHubSubscriptionInfo(); + /** + * + * + *
    +   * Output only. Information about the associated Analytics Hub subscription.
    +   * Only set if the subscritpion is created by Analytics Hub.
    +   * 
    + * + * + * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder + getAnalyticsHubSubscriptionInfoOrBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 34686b53a1e6..0f8477e86216 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 6d003e9f0445..38b54f234114 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface TopicOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 8e7ac0c43659..adae2a4007fb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 636f84656149..45bdef5dd95e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface UpdateSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index b1e13a17030a..8bf7d85d6bc8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 5fba8ab02411..469ccb8e5748 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface UpdateSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index f09ac147887e..fa2713ec6e48 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index 967c56743cc4..cbac7a5a5749 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface UpdateTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 0a0802f118fb..9941193249e7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 7645082b0ecd..3eb379d3def5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ValidateMessageRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 8db831a837c3..96999cf11717 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index c5dd245350f7..f66974da018c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ValidateMessageResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index f40b82c0ca25..60a92235feff 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 19bb6dfd0ddf..824700d69fe5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ValidateSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 603a5d5c6f27..afc2763c3555 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index 13217bd5fb7f..f9378438bc15 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.4 +// Protobuf Java Version: 3.25.5 package com.google.pubsub.v1; public interface ValidateSchemaResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b5092087a379..54b44b822178 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -237,11 +237,132 @@ message IngestionDataSourceSettings { string gcp_service_account = 5 [(google.api.field_behavior) = REQUIRED]; } + // Ingestion settings for Cloud Storage. + message CloudStorage { + // Possible states for ingestion from Cloud Storage. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Ingestion is active. + ACTIVE = 1; + + // Permission denied encountered while calling the Cloud Storage API. This + // can happen if the Pub/Sub SA has not been granted the + // [appropriate + // permissions](https://cloud.google.com/storage/docs/access-control/iam-permissions): + // - storage.objects.list: to list the objects in a bucket. + // - storage.objects.get: to read the objects in a bucket. + // - storage.buckets.get: to verify the bucket exists. + CLOUD_STORAGE_PERMISSION_DENIED = 2; + + // Permission denied encountered while publishing to the topic. This can + // happen if the Pub/Sub SA has not been granted the [appropriate publish + // permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher) + PUBLISH_PERMISSION_DENIED = 3; + + // The provided Cloud Storage bucket doesn't exist. + BUCKET_NOT_FOUND = 4; + + // The Cloud Storage bucket has too many objects, ingestion will be + // paused. + TOO_MANY_OBJECTS = 5; + } + + // Configuration for reading Cloud Storage data in text format. Each line of + // text as specified by the delimiter will be set to the `data` field of a + // Pub/Sub message. + message TextFormat { + // Optional. When unset, '\n' is used. + optional string delimiter = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for reading Cloud Storage data in Avro binary format. The + // bytes of each object will be set to the `data` field of a Pub/Sub + // message. + message AvroFormat {} + + // Configuration for reading Cloud Storage data written via [Cloud Storage + // subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). The + // data and attributes fields of the originally exported Pub/Sub message + // will be restored when publishing. + message PubSubAvroFormat {} + + // Output only. An output-only field that indicates the state of the Cloud + // Storage ingestion source. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Cloud Storage bucket. The bucket name must be without any + // prefix like "gs://". See the [bucket naming requirements] + // (https://cloud.google.com/storage/docs/buckets#naming). + string bucket = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Defaults to text format. + oneof input_format { + // Optional. Data from Cloud Storage will be interpreted as text. + TextFormat text_format = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Data from Cloud Storage will be interpreted in Avro format. + AvroFormat avro_format = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. It will be assumed data from Cloud Storage was written via + // [Cloud Storage + // subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). + PubSubAvroFormat pubsub_avro_format = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Only objects with a larger or equal creation timestamp will be + // ingested. + google.protobuf.Timestamp minimum_object_create_time = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Glob pattern used to match objects that will be ingested. If + // unset, all objects will be ingested. See the [supported + // patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob). + string match_glob = 9 [(google.api.field_behavior) = OPTIONAL]; + } + // Only one source type can have settings set. oneof source { // Optional. Amazon Kinesis Data Streams. AwsKinesis aws_kinesis = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Cloud Storage. + CloudStorage cloud_storage = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Platform Logs settings. If unset, no Platform Logs will be + // generated. + PlatformLogsSettings platform_logs_settings = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Settings for Platform Logs produced by Pub/Sub. +message PlatformLogsSettings { + // Severity levels of Platform Logs. + enum Severity { + // Default value. Logs level is unspecified. Logs will be disabled. + SEVERITY_UNSPECIFIED = 0; + + // Logs will be disabled. + DISABLED = 1; + + // Debug logs and higher-severity logs will be written. + DEBUG = 2; + + // Info logs and higher-severity logs will be written. + INFO = 3; + + // Warning logs and higher-severity logs will be written. + WARNING = 4; + + // Only error logs will be written. + ERROR = 5; } + + // Optional. The minimum severity level of Platform Logs that will be written. + Severity severity = 1 [(google.api.field_behavior) = OPTIONAL]; } // A topic resource. @@ -774,6 +895,20 @@ message Subscription { RESOURCE_ERROR = 2; } + // Information about an associated Analytics Hub subscription + // (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions). + message AnalyticsHubSubscriptionInfo { + // Optional. The name of the associated Analytics Hub listing resource. + // Pattern: + // "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" + string listing = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the associated Analytics Hub subscription resource. + // Pattern: + // "projects/{project}/locations/{location}/subscriptions/{subscription}" + string subscription = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // 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 @@ -837,7 +972,7 @@ message Subscription { // 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. + // 7 days. Cannot be more than 31 days or less than 10 minutes. google.protobuf.Duration message_retention_duration = 8 [(google.api.field_behavior) = OPTIONAL]; @@ -922,6 +1057,11 @@ message Subscription { // Output only. An output-only field indicating whether or not the // subscription can receive messages. State state = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Information about the associated Analytics Hub subscription. + // Only set if the subscritpion is created by Analytics Hub. + AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A policy that specifies how Pub/Sub retries message delivery. From e024fa45663790ce7c29c9c3f7a3fff412aa5d73 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 26 Sep 2024 17:34:59 +0200 Subject: [PATCH 1932/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.36.1 (#2191) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 721e0301f62e..664f10a28dd9 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.36.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.36.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 1f52e93ed7ae..0effa03c5227 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.36.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.36.1" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index bf7743f744f8..96a8059b9b9b 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.36.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.36.1" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index af66a2f7eef6..f06ab267c7f0 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.36.0 + 3.36.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 17973fd64908..189fba1534da 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.36.0 + 3.36.1 From f76965c795572d38f07b9b03b583757d18873ade Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:02:54 +0000 Subject: [PATCH 1933/2363] chore: use composite action (#2192) --- .../scripts/hermetic_library_generation.sh | 116 ------------------ .../hermetic_library_generation.yaml | 32 +++-- 2 files changed, 15 insertions(+), 133 deletions(-) delete mode 100644 java-pubsub/.github/scripts/hermetic_library_generation.sh diff --git a/java-pubsub/.github/scripts/hermetic_library_generation.sh b/java-pubsub/.github/scripts/hermetic_library_generation.sh deleted file mode 100644 index 49a7414cf7e8..000000000000 --- a/java-pubsub/.github/scripts/hermetic_library_generation.sh +++ /dev/null @@ -1,116 +0,0 @@ -#!/bin/bash -set -e -# This script should be run at the root of the repository. -# This script is used to, when a pull request changes the generation -# configuration (generation_config.yaml by default): -# 1. Find whether the last commit in this pull request contains changes to -# the generation configuration and exit early if it doesn't have such a change -# since the generation result would be the same. -# 2. Compare generation configurations in the current branch (with which the -# pull request associated) and target branch (into which the pull request is -# merged); -# 3. Generate changed libraries using library_generation image; -# 4. Commit the changes to the pull request, if any. -# 5. Edit the PR body with generated pull request description, if applicable. - -# The following commands need to be installed before running the script: -# 1. git -# 2. gh -# 3. docker - -# The parameters of this script is: -# 1. target_branch, the branch into which the pull request is merged. -# 2. current_branch, the branch with which the pull request is associated. -# 3. [optional] generation_config, the path to the generation configuration, -# the default value is generation_config.yaml in the repository root. -while [[ $# -gt 0 ]]; do -key="$1" -case "${key}" in - --target_branch) - target_branch="$2" - shift - ;; - --current_branch) - current_branch="$2" - shift - ;; - --generation_config) - generation_config="$2" - shift - ;; - *) - echo "Invalid option: [$1]" - exit 1 - ;; -esac -shift -done - -if [ -z "${target_branch}" ]; then - echo "missing required argument --target_branch" - exit 1 -fi - -if [ -z "${current_branch}" ]; then - echo "missing required argument --current_branch" - exit 1 -fi - -if [ -z "${generation_config}" ]; then - generation_config=generation_config.yaml - echo "Using default generation config: ${generation_config}" -fi - -workspace_name="/workspace" -baseline_generation_config="baseline_generation_config.yaml" -message="chore: generate libraries at $(date)" - -git checkout "${target_branch}" -git checkout "${current_branch}" - -# copy generation configuration from target branch to current branch. -git show "${target_branch}":"${generation_config}" > "${baseline_generation_config}" - -# parse image tag from the generation configuration. -image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) - -repo_root_dir=$(pwd) -mkdir -p "${repo_root_dir}/output" -# download api definitions from googleapis repository -googleapis_commitish=$(grep googleapis_commitish "${generation_config}" | cut -d ":" -f 2 | xargs) -api_def_dir=$(mktemp -d) -git clone https://github.com/googleapis/googleapis.git "${api_def_dir}" -pushd "${api_def_dir}" -git checkout "${googleapis_commitish}" -cp -r google/ grafeas/ "${repo_root_dir}/output" -popd - -# run hermetic code generation docker image. -docker run \ - --rm \ - -u "$(id -u):$(id -g)" \ - -v "$(pwd):${workspace_name}" \ - gcr.io/cloud-devrel-public-resources/java-library-generation:"${image_tag}" \ - --baseline-generation-config-path="${workspace_name}/${baseline_generation_config}" \ - --current-generation-config-path="${workspace_name}/${generation_config}" - -# remove api definitions after generation -rm -rf "${api_def_dir}" - -# commit the change to the pull request. -rm -rdf output googleapis "${baseline_generation_config}" -git add --all -- ':!pr_description.txt' ':!hermetic_library_generation.sh' -changed_files=$(git diff --cached --name-only) -if [[ "${changed_files}" != "" ]]; then - echo "Commit changes..." - git commit -m "${message}" - git push -else - echo "There is no generated code change, skip commit." -fi - -# set pr body if pr_description.txt is generated. -if [[ -f "pr_description.txt" ]]; then - pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") - gh pr edit "${pr_num}" --body "$(cat pr_description.txt)" -fi diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 51a087f8e59f..9f1a24bd6f88 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -18,30 +18,28 @@ on: pull_request: env: - HEAD_REF: ${{ github.head_ref }} REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} GITHUB_REPOSITORY: ${{ github.repository }} - jobs: library_generation: runs-on: ubuntu-latest steps: + - name: Determine whether the pull request comes from a fork + run: | + if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then + echo "This PR comes from a fork. Skip library generation." + echo "SHOULD_RUN=false" >> $GITHUB_ENV + else + echo "SHOULD_RUN=true" >> $GITHUB_ENV + fi - uses: actions/checkout@v4 + if: env.SHOULD_RUN == 'true' with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - name: Generate changed libraries - shell: bash - run: | - set -ex - if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then - echo "This PR comes from a fork. Generation will be skipped" - exit 0 - fi - [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" - [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" - bash .github/scripts/hermetic_library_generation.sh \ - --target_branch ${{ github.base_ref }} \ - --current_branch $HEAD_REF - env: - GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + - uses: googleapis/sdk-platform-java/.github/scripts@v2.46.1 + if: env.SHOULD_RUN == 'true' + with: + base_ref: ${{ github.base_ref }} + head_ref: ${{ github.head_ref }} + token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From c55dd737098dd35e351412556e4f0fe6a10d529f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2024 23:54:24 +0000 Subject: [PATCH 1934/2363] chore(main): release 1.132.3 (#2177) :robot: I have created a release *beep* *boop* --- ## [1.132.3](https://togithub.com/googleapis/java-pubsub/compare/v1.132.2...v1.132.3) (2024-09-26) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.3 ([#2173](https://togithub.com/googleapis/java-pubsub/issues/2173)) ([7621f47](https://togithub.com/googleapis/java-pubsub/commit/7621f47cfe3df81b7691c7798a6b8143fd6d522f)) * Update dependency com.google.cloud:google-cloud-core to v2.44.0 ([#2184](https://togithub.com/googleapis/java-pubsub/issues/2184)) ([ae28abd](https://togithub.com/googleapis/java-pubsub/commit/ae28abde1c44a65521b70116f95cae51a501a432)) * Update dependency com.google.cloud:google-cloud-core to v2.44.1 ([#2190](https://togithub.com/googleapis/java-pubsub/issues/2190)) ([fe24c4e](https://togithub.com/googleapis/java-pubsub/commit/fe24c4e02d2e297a0c34a5ecb26e234360163f05)) * Update dependency com.google.cloud:google-cloud-storage to v2.43.0 ([#2174](https://togithub.com/googleapis/java-pubsub/issues/2174)) ([e45d821](https://togithub.com/googleapis/java-pubsub/commit/e45d82137944bd06e3602e911007e8d43417efe3)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.36.0 ([#2185](https://togithub.com/googleapis/java-pubsub/issues/2185)) ([414e62b](https://togithub.com/googleapis/java-pubsub/commit/414e62b108a9ec7f642e1e4c7a708bd0ba124459)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.36.1 ([#2191](https://togithub.com/googleapis/java-pubsub/issues/2191)) ([e024fa4](https://togithub.com/googleapis/java-pubsub/commit/e024fa45663790ce7c29c9c3f7a3fff412aa5d73)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.2 ([#2179](https://togithub.com/googleapis/java-pubsub/issues/2179)) ([5514148](https://togithub.com/googleapis/java-pubsub/commit/551414818c61b6fc9800f29807b72b76f0f03331)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 34 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 4cd8af8d0d5f..6c02219c30f5 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.132.3](https://github.com/googleapis/java-pubsub/compare/v1.132.2...v1.132.3) (2024-09-26) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.42.3 ([#2173](https://github.com/googleapis/java-pubsub/issues/2173)) ([294d039](https://github.com/googleapis/java-pubsub/commit/294d03974ab236c2ee5d0e420e8913eb6fc65fc9)) +* Update dependency com.google.cloud:google-cloud-core to v2.44.0 ([#2184](https://github.com/googleapis/java-pubsub/issues/2184)) ([faecb3b](https://github.com/googleapis/java-pubsub/commit/faecb3b90cb259ae376b8481ec30511ce19279bf)) +* Update dependency com.google.cloud:google-cloud-core to v2.44.1 ([#2190](https://github.com/googleapis/java-pubsub/issues/2190)) ([9ea45dc](https://github.com/googleapis/java-pubsub/commit/9ea45dc13f11076890cfff35e7acf2eafc2af70a)) +* Update dependency com.google.cloud:google-cloud-storage to v2.43.0 ([#2174](https://github.com/googleapis/java-pubsub/issues/2174)) ([ae800d7](https://github.com/googleapis/java-pubsub/commit/ae800d7b3ffd19302b416f03fad8b20e93afce8f)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.36.0 ([#2185](https://github.com/googleapis/java-pubsub/issues/2185)) ([5ca2c7c](https://github.com/googleapis/java-pubsub/commit/5ca2c7c52497514af30e4522f0ae245d0f8d73ce)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.36.1 ([#2191](https://github.com/googleapis/java-pubsub/issues/2191)) ([555216e](https://github.com/googleapis/java-pubsub/commit/555216ee5bf9cfbba6664f133fc7cde1101f5f0b)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.28.2 ([#2179](https://github.com/googleapis/java-pubsub/issues/2179)) ([c9bbd2c](https://github.com/googleapis/java-pubsub/commit/c9bbd2cf3525e3ebdf9ce3af7fe50a16a87c9837)) + ## [1.132.2](https://github.com/googleapis/java-pubsub/compare/v1.132.1...v1.132.2) (2024-09-11) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c2585d3b6100..746c66da6e86 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.132.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.132.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.3" ``` @@ -414,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f06ab267c7f0..591e2ff18333 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.3-SNAPSHOT + 1.132.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.3-SNAPSHOT + 1.132.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ed0eca8482c7..1a6f44c1b5dd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.3-SNAPSHOT + 1.132.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.3-SNAPSHOT + 1.132.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 90a0a921a267..c8749517a871 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.3-SNAPSHOT + 1.132.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 189fba1534da..79a451290a33 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.3-SNAPSHOT + 1.132.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 com.google.cloud google-cloud-pubsub - 1.132.3-SNAPSHOT + 1.132.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 69eeaeeb0f52..d897a457698b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3-SNAPSHOT + 1.114.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.3-SNAPSHOT + 1.132.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4c41fb2d02df..b8ad099ccff0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.3-SNAPSHOT + 1.132.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c859219132f2..288d5b137a9d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.2:1.132.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.114.2:1.114.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.114.2:1.114.3-SNAPSHOT +google-cloud-pubsub:1.132.3:1.132.3 +grpc-google-cloud-pubsub-v1:1.114.3:1.114.3 +proto-google-cloud-pubsub-v1:1.114.3:1.114.3 From c8df00325ec559cca5dad69bdfe613136a2d65c0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 27 Sep 2024 23:09:59 +0200 Subject: [PATCH 1935/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.132.3 (#2197) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 44a881ea174e..f6f5e1d1554f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3 From ab742a2fb00e8acfbe7daf7167130dd4b52285a2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 27 Sep 2024 23:10:11 +0200 Subject: [PATCH 1936/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.43.1 (#2194) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f6f5e1d1554f..b522fb6f7a86 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.43.0 + 2.43.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b8ad099ccff0..3af572f3d2dd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.43.0 + 2.43.1 From 9d235422a1a30a64ca9db612aefe6df9deee30a3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 12:18:44 -0400 Subject: [PATCH 1937/2363] chore(main): release 1.132.4-SNAPSHOT (#2195) * chore(main): release 1.132.4-SNAPSHOT * chore: generate libraries at Fri Sep 27 22:43:16 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 746c66da6e86..c5729ff0e47c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.132.2 + 1.132.3 ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 591e2ff18333..ab43e8e8c823 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.3 + 1.132.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.3 + 1.132.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1a6f44c1b5dd..86f177b22d93 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.3 + 1.132.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.3 + 1.132.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c8749517a871..9b0403b5aa49 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.3 + 1.132.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 79a451290a33..e7472893fea9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.3 + 1.132.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.132.3 + 1.132.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d897a457698b..d72c279caa19 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.3 + 1.114.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.3 + 1.132.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3af572f3d2dd..3a70cfdde138 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.3 + 1.132.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 288d5b137a9d..731d1fdf7579 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.3:1.132.3 -grpc-google-cloud-pubsub-v1:1.114.3:1.114.3 -proto-google-cloud-pubsub-v1:1.114.3:1.114.3 +google-cloud-pubsub:1.132.3:1.132.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.114.3:1.114.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.114.3:1.114.4-SNAPSHOT From 477a5342b981fcc04fb40b71be5c1ab238703660 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 30 Sep 2024 18:22:20 +0200 Subject: [PATCH 1938/2363] deps: update dependency ubuntu to v24 (#2193) --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 3cf773992644..f15c807853d1 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -21,7 +21,7 @@ on: jobs: update-generation-config: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 env: # the branch into which the pull request is merged base_branch: main From ee9e0d8bdd8ac587811f98dc2b5f0a4ebb8bf786 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 30 Sep 2024 16:32:38 -0400 Subject: [PATCH 1939/2363] build: Update samples to use Java 11 (#2201) --- java-pubsub/.github/workflows/samples.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/samples.yaml b/java-pubsub/.github/workflows/samples.yaml index f1a27f81c575..3c00d025e90c 100644 --- a/java-pubsub/.github/workflows/samples.yaml +++ b/java-pubsub/.github/workflows/samples.yaml @@ -8,7 +8,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-java@v1 with: - java-version: 8 + java-version: 11 - name: Run checkstyle run: mvn -P lint --quiet --batch-mode checkstyle:check working-directory: samples From 126e27144ea660c665814d386f438f987d3963d2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 1 Oct 2024 01:25:11 +0200 Subject: [PATCH 1940/2363] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.2 (#2178) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b522fb6f7a86..604b622d3944 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.2.0 + 1.2.2 diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 8a542617179d..4a6ba6ed7f93 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -33,7 +33,7 @@ com.google.cloud.samples shared-configuration - 1.2.0 + 1.2.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3a70cfdde138..39209edf7bce 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.2.0 + 1.2.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 608cef86472f..8720ef2156f9 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -29,7 +29,7 @@ com.google.cloud.samples shared-configuration - 1.2.0 + 1.2.2 From 75ec9319033c856fa9ea9e273b0c57e9853155e8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 00:02:18 +0000 Subject: [PATCH 1941/2363] chore(main): release 1.132.4 (#2200) :robot: I have created a release *beep* *boop* --- ## [1.132.4](https://togithub.com/googleapis/java-pubsub/compare/v1.132.3...v1.132.4) (2024-09-30) ### Dependencies * Update dependency com.google.cloud:google-cloud-storage to v2.43.1 ([#2194](https://togithub.com/googleapis/java-pubsub/issues/2194)) ([ab742a2](https://togithub.com/googleapis/java-pubsub/commit/ab742a2fb00e8acfbe7daf7167130dd4b52285a2)) * Update dependency ubuntu to v24 ([#2193](https://togithub.com/googleapis/java-pubsub/issues/2193)) ([477a534](https://togithub.com/googleapis/java-pubsub/commit/477a5342b981fcc04fb40b71be5c1ab238703660)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 29 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 6c02219c30f5..fdd3242669a4 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.132.4](https://github.com/googleapis/java-pubsub/compare/v1.132.3...v1.132.4) (2024-09-30) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-storage to v2.43.1 ([#2194](https://github.com/googleapis/java-pubsub/issues/2194)) ([979e420](https://github.com/googleapis/java-pubsub/commit/979e420377327cf3843ac23151d8b44a7e5188c5)) +* Update dependency ubuntu to v24 ([#2193](https://github.com/googleapis/java-pubsub/issues/2193)) ([f295b01](https://github.com/googleapis/java-pubsub/commit/f295b01cb93fe26612c79c3d2ba0bb68f0404d7e)) + ## [1.132.3](https://github.com/googleapis/java-pubsub/compare/v1.132.2...v1.132.3) (2024-09-26) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c5729ff0e47c..14ab466a3a78 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.132.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.132.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.4" ``` @@ -414,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ab43e8e8c823..beff026aceb4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.4-SNAPSHOT + 1.132.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.4-SNAPSHOT + 1.132.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 86f177b22d93..2657c64af2aa 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.4-SNAPSHOT + 1.132.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.4-SNAPSHOT + 1.132.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9b0403b5aa49..8d4b1bf2f942 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.4-SNAPSHOT + 1.132.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e7472893fea9..33ba5296647b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.4-SNAPSHOT + 1.132.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 com.google.cloud google-cloud-pubsub - 1.132.4-SNAPSHOT + 1.132.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d72c279caa19..b8b27d3cd1a6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4-SNAPSHOT + 1.114.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.4-SNAPSHOT + 1.132.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 39209edf7bce..12bf9d92c7e4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.4-SNAPSHOT + 1.132.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 731d1fdf7579..56fa56c2c2f1 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.3:1.132.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.114.3:1.114.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.114.3:1.114.4-SNAPSHOT +google-cloud-pubsub:1.132.4:1.132.4 +grpc-google-cloud-pubsub-v1:1.114.4:1.114.4 +proto-google-cloud-pubsub-v1:1.114.4:1.114.4 From 5ba3234a4567b4089cc8c26c0eee49ba6f87a5a9 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 30 Sep 2024 20:04:22 -0400 Subject: [PATCH 1942/2363] feat: Add OpenTelemetry tracing to the Publisher and Subscriber (#2086) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Initial publish side Open Telemetry support * feat: Publish-side trace context injection * feat: Tests and improvements to publish side OTel tracing * feat: More tests and refactoring for publish-side OpenTelemetry * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Formatting files * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Publisher test changes * test: Fix OpenTelemetry test * Feat: Use OpenTelemetry semconv * test: Fix some dependency issues * feat: Test fix * feat: Add comment for setter in builder * Opentelemetry subscribe (#2100) * feat: Add OpenTelemetry tracing to the SubscriberClient * feat: Add link to publisher create span in the subscribe process span * feat: Add Ack/Nack/ModAck RPC spans to the subscribe * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Opentelemetry subscribe (#2101) * feat: Add OpenTelemetry tracing to the SubscriberClient * feat: Add link to publisher create span in the subscribe process span * feat: Add Ack/Nack/ModAck RPC spans to the subscribe * fix: Fix test errors caused by otel changes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: Fix build errors in Publisher * test: Ignore org.assertj:assertj-core which is required for OTel testing assertions * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * test: Add tests for subscriber OTel functions * feat: Changes to OpenTelemetry implementation to add links earlier and prevent methods from being exposed to users * feat: Refactor OpenTelemetry implementation to use a context aware wrapper for the tracer and a PubsubTracer interface * feat: Initialize default no-op PubsubTracer in Publisher and Subscriber * feat: Ensure SubscriberStreamingConnection and MessageDispatcher have default no-op tracers by default for tests * samples: Add OpenTelemetry publisher and subscriber samples * feat: Add additional sampling checks to the Otel implementation * samples: Update pom.xml for samples with Cloud Trace exporter * feat: Make OTel classes/methods package-private and remove non-generic PubsubTracer interface * feat: Lint fixes for Pub/Sub * feat: Use MessagingIncubatingAttributes for gcp_pubsub attribute names * feat: Format OTel changes * Revert "feat: Use MessagingIncubatingAttributes for gcp_pubsub attribute names" This reverts commit 305610e5a23f4f128c0750970a9b6f86540cbabe. * feat: trigger build * chore: generate libraries at Mon Sep 30 20:37:03 UTC 2024 * feat: trigger build * feat: Fix file overwrite from bad merge * chore: generate libraries at Mon Sep 30 20:49:40 UTC 2024 * Revert "chore: generate libraries at Mon Sep 30 20:49:40 UTC 2024" This reverts commit 5ebbbf933b79f7f3c56bba5da2b3c334f544dd4d. * chore: generate libraries at Mon Sep 30 21:03:31 UTC 2024 * Revert "chore: generate libraries at Mon Sep 30 21:03:31 UTC 2024" This reverts commit 23f3a70d64f0f72cf18dd3a7640125ff9027dec7. * chore: generate libraries at Mon Sep 30 21:14:11 UTC 2024 * feat: Prevent new files for OpenTelemetry from being overwritten * feat: Revert automated file deletion for OpenTelemetry changes * feat: Remove OpenTelemetry samples as the samples use a released library version to run * chore: generate libraries at Mon Sep 30 22:11:14 UTC 2024 --------- Co-authored-by: Owl Bot Co-authored-by: cloud-java-bot --- java-pubsub/.github/.OwlBot-hermetic.yaml | 3 + java-pubsub/google-cloud-pubsub/pom.xml | 28 + .../cloud/pubsub/v1/AckRequestData.java | 19 + .../cloud/pubsub/v1/MessageDispatcher.java | 92 ++- .../cloud/pubsub/v1/ModackRequestData.java | 10 + .../pubsub/v1/OpenTelemetryPubsubTracer.java | 460 ++++++++++++ .../com/google/cloud/pubsub/v1/Publisher.java | 87 ++- .../cloud/pubsub/v1/PubsubMessageWrapper.java | 430 +++++++++++ .../v1/StreamingSubscriberConnection.java | 102 ++- .../google/cloud/pubsub/v1/Subscriber.java | 43 ++ .../cloud/pubsub/v1/OpenTelemetryTest.java | 669 ++++++++++++++++++ .../cloud/pubsub/v1/PublisherImplTest.java | 75 ++ java-pubsub/pom.xml | 6 + .../samples/install-without-bom/pom.xml | 5 + java-pubsub/samples/snapshot/pom.xml | 5 + java-pubsub/samples/snippets/pom.xml | 5 + 16 files changed, 2008 insertions(+), 31 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java diff --git a/java-pubsub/.github/.OwlBot-hermetic.yaml b/java-pubsub/.github/.OwlBot-hermetic.yaml index 1757987e4305..8a75909c6884 100644 --- a/java-pubsub/.github/.OwlBot-hermetic.yaml +++ b/java-pubsub/.github/.OwlBot-hermetic.yaml @@ -33,6 +33,7 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDataMatcher.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" @@ -51,8 +52,10 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiverWithAckResponse.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2657c64af2aa..46fe71d26025 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -100,6 +100,18 @@ google-http-client runtime + + io.opentelemetry + opentelemetry-api + + + io.opentelemetry + opentelemetry-context + + + io.opentelemetry + opentelemetry-semconv + @@ -142,6 +154,21 @@ opencensus-impl test + + io.opentelemetry + opentelemetry-sdk-trace + test + + + io.opentelemetry + opentelemetry-sdk-testing + test + + + org.assertj + assertj-core + test + com.google.api @@ -174,6 +201,7 @@ com.google.auth:google-auth-library-oauth2-http:jar io.opencensus:opencensus-impl javax.annotation:javax.annotation-api + org.assertj:assertj-core diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java index 3b67ce21970d..5cab83f49394 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java @@ -22,10 +22,12 @@ public class AckRequestData { private final String ackId; private final Optional> messageFuture; + private PubsubMessageWrapper messageWrapper; protected AckRequestData(Builder builder) { this.ackId = builder.ackId; this.messageFuture = builder.messageFuture; + this.messageWrapper = builder.messageWrapper; } public String getAckId() { @@ -36,6 +38,17 @@ public SettableApiFuture getMessageFutureIfExists() { return this.messageFuture.orElse(null); } + /** + * Returns an empty PubsubMessageWrapper with OpenTelemetry tracing disabled. This allows methods + * that use this method to be unit tested. + */ + public PubsubMessageWrapper getMessageWrapper() { + if (this.messageWrapper == null) { + return PubsubMessageWrapper.newBuilder(null, null).build(); + } + return messageWrapper; + } + public AckRequestData setResponse(AckResponse ackResponse, boolean setResponseOnSuccess) { if (this.messageFuture.isPresent() && !this.messageFuture.get().isDone()) { switch (ackResponse) { @@ -68,6 +81,7 @@ public static Builder newBuilder(String ackId) { protected static final class Builder { private final String ackId; private Optional> messageFuture = Optional.empty(); + private PubsubMessageWrapper messageWrapper; protected Builder(String ackId) { this.ackId = ackId; @@ -78,6 +92,11 @@ public Builder setMessageFuture(SettableApiFuture messageFuture) { return this; } + public Builder setMessageWrapper(PubsubMessageWrapper messageWrapper) { + this.messageWrapper = messageWrapper; + return this; + } + public AckRequestData build() { return new AckRequestData(this); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 1810badd2453..860fcbcf9e15 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -104,6 +104,10 @@ class MessageDispatcher { // To keep track of number of seconds the receiver takes to process messages. private final Distribution ackLatencyDistribution; + private final String subscriptionName; + private final boolean enableOpenTelemetryTracing; + private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + /** Internal representation of a reply to a Pubsub message, to be sent back to the service. */ public enum AckReply { ACK, @@ -157,6 +161,7 @@ public void onFailure(Throwable t) { t); this.ackRequestData.setResponse(AckResponse.OTHER, false); pendingNacks.add(this.ackRequestData); + tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "nack"); forget(); } @@ -169,9 +174,11 @@ public void onSuccess(AckReply reply) { ackLatencyDistribution.record( Ints.saturatedCast( (long) Math.ceil((clock.millisTime() - receivedTimeMillis) / 1000D))); + tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "ack"); break; case NACK: pendingNacks.add(this.ackRequestData); + tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "nack"); break; default: throw new IllegalArgumentException(String.format("AckReply: %s not supported", reply)); @@ -217,6 +224,12 @@ private MessageDispatcher(Builder builder) { jobLock = new ReentrantLock(); messagesWaiter = new Waiter(); sequentialExecutor = new SequentialExecutorService.AutoExecutor(builder.executor); + + subscriptionName = builder.subscriptionName; + enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; + if (builder.tracer != null) { + tracer = builder.tracer; + } } private boolean shouldSetMessageFuture() { @@ -351,13 +364,15 @@ void setMessageOrderingEnabled(boolean messageOrderingEnabled) { } private static class OutstandingMessage { - private final ReceivedMessage receivedMessage; private final AckHandler ackHandler; - private OutstandingMessage(ReceivedMessage receivedMessage, AckHandler ackHandler) { - this.receivedMessage = receivedMessage; + private OutstandingMessage(AckHandler ackHandler) { this.ackHandler = ackHandler; } + + public PubsubMessageWrapper messageWrapper() { + return this.ackHandler.ackRequestData.getMessageWrapper(); + } } private static class ReceiptCompleteData { @@ -390,10 +405,20 @@ void processReceivedMessages(List messages) { if (shouldSetMessageFuture()) { builder.setMessageFuture(SettableApiFuture.create()); } + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder( + message.getMessage(), + subscriptionName, + message.getAckId(), + message.getDeliveryAttempt()) + .build(); + builder.setMessageWrapper(messageWrapper); + tracer.startSubscriberSpan(messageWrapper, this.exactlyOnceDeliveryEnabled.get()); + AckRequestData ackRequestData = builder.build(); AckHandler ackHandler = new AckHandler(ackRequestData, message.getMessage().getSerializedSize(), totalExpiration); - OutstandingMessage outstandingMessage = new OutstandingMessage(message, ackHandler); + OutstandingMessage outstandingMessage = new OutstandingMessage(ackHandler); if (this.exactlyOnceDeliveryEnabled.get()) { // For exactly once deliveries we don't add to outstanding batch because we first @@ -457,30 +482,40 @@ private void processBatch(List batch) { for (OutstandingMessage message : batch) { // This is a blocking flow controller. We have already incremented messagesWaiter, so // shutdown will block on processing of all these messages anyway. + tracer.startSubscribeConcurrencyControlSpan(message.messageWrapper()); try { - flowController.reserve(1, message.receivedMessage.getMessage().getSerializedSize()); + flowController.reserve(1, message.messageWrapper().getPubsubMessage().getSerializedSize()); + tracer.endSubscribeConcurrencyControlSpan(message.messageWrapper()); } catch (FlowControlException unexpectedException) { // This should be a blocking flow controller and never throw an exception. + tracer.setSubscribeConcurrencyControlSpanException( + message.messageWrapper(), unexpectedException); throw new IllegalStateException("Flow control unexpected exception", unexpectedException); } - processOutstandingMessage(addDeliveryInfoCount(message.receivedMessage), message.ackHandler); + addDeliveryInfoCount(message.messageWrapper()); + processOutstandingMessage(message.ackHandler); } } - private PubsubMessage addDeliveryInfoCount(ReceivedMessage receivedMessage) { - PubsubMessage originalMessage = receivedMessage.getMessage(); - int deliveryAttempt = receivedMessage.getDeliveryAttempt(); + private void addDeliveryInfoCount(PubsubMessageWrapper messageWrapper) { + PubsubMessage originalMessage = messageWrapper.getPubsubMessage(); + int deliveryAttempt = messageWrapper.getDeliveryAttempt(); // Delivery Attempt will be set to 0 if DeadLetterPolicy is not set on the subscription. In // this case, do not populate the PubsubMessage with the delivery attempt attribute. if (deliveryAttempt > 0) { - return PubsubMessage.newBuilder(originalMessage) - .putAttributes("googclient_deliveryattempt", Integer.toString(deliveryAttempt)) - .build(); + messageWrapper.setPubsubMessage( + PubsubMessage.newBuilder(originalMessage) + .putAttributes("googclient_deliveryattempt", Integer.toString(deliveryAttempt)) + .build()); } - return originalMessage; } - private void processOutstandingMessage(final PubsubMessage message, final AckHandler ackHandler) { + private void processOutstandingMessage(final AckHandler ackHandler) { + // Get the PubsubMessageWrapper and the PubsubMessage it wraps that are stored withing the + // AckHandler object. + PubsubMessageWrapper messageWrapper = ackHandler.ackRequestData.getMessageWrapper(); + PubsubMessage message = messageWrapper.getPubsubMessage(); + // This future is for internal bookkeeping to be sent to the StreamingSubscriberConnection // use below in the consumers SettableApiFuture ackReplySettableApiFuture = SettableApiFuture.create(); @@ -499,8 +534,10 @@ public void run() { // so it was probably sent to someone else. Don't work on it. // Don't nack it either, because we'd be nacking someone else's message. ackHandler.forget(); + tracer.setSubscriberSpanExpirationResult(messageWrapper); return; } + tracer.startSubscribeProcessSpan(messageWrapper); if (shouldSetMessageFuture()) { // This is the message future that is propagated to the user SettableApiFuture messageFuture = @@ -521,7 +558,9 @@ public void run() { if (!messageOrderingEnabled.get() || message.getOrderingKey().isEmpty()) { executor.execute(deliverMessageTask); } else { + tracer.startSubscribeSchedulerSpan(messageWrapper); sequentialExecutor.submit(message.getOrderingKey(), deliverMessageTask); + tracer.endSubscribeSchedulerSpan(messageWrapper); } } @@ -607,8 +646,10 @@ void processOutstandingOperations() { List ackRequestDataReceipts = new ArrayList(); pendingReceipts.drainTo(ackRequestDataReceipts); if (!ackRequestDataReceipts.isEmpty()) { - modackRequestData.add( - new ModackRequestData(this.getMessageDeadlineSeconds(), ackRequestDataReceipts)); + ModackRequestData receiptModack = + new ModackRequestData(this.getMessageDeadlineSeconds(), ackRequestDataReceipts); + receiptModack.setIsReceiptModack(true); + modackRequestData.add(receiptModack); } logger.log(Level.FINER, "Sending {0} receipts", ackRequestDataReceipts.size()); @@ -645,6 +686,10 @@ public static final class Builder { private ScheduledExecutorService systemExecutor; private ApiClock clock; + private String subscriptionName; + private boolean enableOpenTelemetryTracing; + private OpenTelemetryPubsubTracer tracer; + protected Builder(MessageReceiver receiver) { this.receiver = receiver; } @@ -715,6 +760,21 @@ public Builder setApiClock(ApiClock clock) { return this; } + public Builder setSubscriptionName(String subscriptionName) { + this.subscriptionName = subscriptionName; + return this; + } + + public Builder setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing) { + this.enableOpenTelemetryTracing = enableOpenTelemetryTracing; + return this; + } + + public Builder setTracer(OpenTelemetryPubsubTracer tracer) { + this.tracer = tracer; + return this; + } + public MessageDispatcher build() { return new MessageDispatcher(this); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java index b4d2dae0f6bf..54c7436af2b6 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java @@ -21,6 +21,7 @@ class ModackRequestData { private final int deadlineExtensionSeconds; private List ackRequestData; + private boolean isReceiptModack; ModackRequestData(int deadlineExtensionSeconds) { this.deadlineExtensionSeconds = deadlineExtensionSeconds; @@ -45,8 +46,17 @@ public List getAckRequestData() { return ackRequestData; } + public boolean getIsReceiptModack() { + return isReceiptModack; + } + public ModackRequestData addAckRequestData(AckRequestData ackRequestData) { this.ackRequestData.add(ackRequestData); return this; } + + public ModackRequestData setIsReceiptModack(boolean isReceiptModack) { + this.isReceiptModack = isReceiptModack; + return this; + } } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java new file mode 100644 index 000000000000..b946f44bf66e --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java @@ -0,0 +1,460 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.api.common.AttributesBuilder; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.SpanBuilder; +import io.opentelemetry.api.trace.SpanKind; +import io.opentelemetry.api.trace.StatusCode; +import io.opentelemetry.api.trace.Tracer; +import io.opentelemetry.context.Context; +import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; +import java.util.List; + +public class OpenTelemetryPubsubTracer { + private final Tracer tracer; + private boolean enabled = false; + + private static final String PUBLISH_FLOW_CONTROL_SPAN_NAME = "publisher flow control"; + private static final String PUBLISH_BATCHING_SPAN_NAME = "publisher batching"; + private static final String SUBSCRIBE_CONCURRENCY_CONTROL_SPAN_NAME = + "subscriber concurrency control"; + private static final String SUBSCRIBE_SCHEDULER_SPAN_NAME = "subscriber scheduler"; + + private static final String MESSAGE_SIZE_ATTR_KEY = "messaging.message.body.size"; + private static final String ORDERING_KEY_ATTR_KEY = "messaging.gcp_pubsub.message.ordering_key"; + private static final String MESSAGE_ACK_ID_ATTR_KEY = "messaging.gcp_pubsub.message.ack_id"; + private static final String MESSAGE_EXACTLY_ONCE_ATTR_KEY = + "messaging.gcp_pubsub.message.exactly_once_delivery"; + private static final String MESSAGE_DELIVERY_ATTEMPT_ATTR_KEY = + "messaging.gcp_pubsub.message.delivery_attempt"; + private static final String ACK_DEADLINE_ATTR_KEY = "messaging.gcp_pubsub.message.ack_deadline"; + private static final String RECEIPT_MODACK_ATTR_KEY = "messaging.gcp_pubsub.is_receipt_modack"; + private static final String PROJECT_ATTR_KEY = "gcp.project_id"; + private static final String PUBLISH_RPC_SPAN_SUFFIX = " publish"; + + private static final String MESSAGING_SYSTEM_VALUE = "gcp_pubsub"; + + OpenTelemetryPubsubTracer(Tracer tracer, boolean enableOpenTelemetry) { + this.tracer = tracer; + if (this.tracer != null && enableOpenTelemetry) { + this.enabled = true; + } + } + + /** Populates attributes that are common the publisher parent span and publish RPC span. */ + private static final AttributesBuilder createCommonSpanAttributesBuilder( + String destinationName, String projectName, String codeFunction, String operation) { + AttributesBuilder attributesBuilder = + Attributes.builder() + .put(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .put(SemanticAttributes.MESSAGING_DESTINATION_NAME, destinationName) + .put(PROJECT_ATTR_KEY, projectName) + .put(SemanticAttributes.CODE_FUNCTION, codeFunction); + if (operation != null) { + attributesBuilder.put(SemanticAttributes.MESSAGING_OPERATION, operation); + } + + return attributesBuilder; + } + + private Span startChildSpan(String name, Span parent) { + return tracer.spanBuilder(name).setParent(Context.current().with(parent)).startSpan(); + } + + /** + * Creates and starts the parent span with the appropriate span attributes and injects the span + * context into the {@link PubsubMessage} attributes. + */ + void startPublisherSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + AttributesBuilder attributesBuilder = + createCommonSpanAttributesBuilder( + message.getTopicName(), message.getTopicProject(), "publish", "create"); + + attributesBuilder.put(MESSAGE_SIZE_ATTR_KEY, message.getDataSize()); + if (!message.getOrderingKey().isEmpty()) { + attributesBuilder.put(ORDERING_KEY_ATTR_KEY, message.getOrderingKey()); + } + + Span publisherSpan = + tracer + .spanBuilder(message.getTopicName() + " create") + .setSpanKind(SpanKind.PRODUCER) + .setAllAttributes(attributesBuilder.build()) + .startSpan(); + + message.setPublisherSpan(publisherSpan); + if (publisherSpan.getSpanContext().isValid()) { + message.injectSpanContext(); + } + } + + void endPublisherSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endPublisherSpan(); + } + + void setPublisherMessageIdSpanAttribute(PubsubMessageWrapper message, String messageId) { + if (!enabled) { + return; + } + message.setPublisherMessageIdSpanAttribute(messageId); + } + + /** Creates a span for publish-side flow control as a child of the parent publisher span. */ + void startPublishFlowControlSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + Span publisherSpan = message.getPublisherSpan(); + if (publisherSpan != null) + message.setPublishFlowControlSpan( + startChildSpan(PUBLISH_FLOW_CONTROL_SPAN_NAME, publisherSpan)); + } + + void endPublishFlowControlSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endPublishFlowControlSpan(); + } + + void setPublishFlowControlSpanException(PubsubMessageWrapper message, Throwable t) { + if (!enabled) { + return; + } + message.setPublishFlowControlSpanException(t); + } + + /** Creates a span for publish message batching as a child of the parent publisher span. */ + void startPublishBatchingSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + Span publisherSpan = message.getPublisherSpan(); + if (publisherSpan != null) { + message.setPublishBatchingSpan(startChildSpan(PUBLISH_BATCHING_SPAN_NAME, publisherSpan)); + } + } + + void endPublishBatchingSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endPublishBatchingSpan(); + } + + /** + * Creates, starts, and returns a publish RPC span for the given message batch. Bi-directional + * links with the publisher parent span are created for sampled messages in the batch. + */ + Span startPublishRpcSpan(String topic, List messages) { + if (!enabled) { + return null; + } + TopicName topicName = TopicName.parse(topic); + Attributes attributes = + createCommonSpanAttributesBuilder( + topicName.getTopic(), topicName.getProject(), "publishCall", "publish") + .put(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messages.size()) + .build(); + SpanBuilder publishRpcSpanBuilder = + tracer + .spanBuilder(topicName.getTopic() + PUBLISH_RPC_SPAN_SUFFIX) + .setSpanKind(SpanKind.CLIENT) + .setAllAttributes(attributes); + Attributes linkAttributes = + Attributes.builder().put(SemanticAttributes.MESSAGING_OPERATION, "publish").build(); + for (PubsubMessageWrapper message : messages) { + if (message.getPublisherSpan().getSpanContext().isSampled()) + publishRpcSpanBuilder.addLink(message.getPublisherSpan().getSpanContext(), linkAttributes); + } + Span publishRpcSpan = publishRpcSpanBuilder.startSpan(); + + for (PubsubMessageWrapper message : messages) { + if (publishRpcSpan.getSpanContext().isSampled()) { + message.getPublisherSpan().addLink(publishRpcSpan.getSpanContext(), linkAttributes); + message.addPublishStartEvent(); + } + } + return publishRpcSpan; + } + + /** Ends the given publish RPC span if it exists. */ + void endPublishRpcSpan(Span publishRpcSpan) { + if (!enabled) { + return; + } + if (publishRpcSpan != null) { + publishRpcSpan.end(); + } + } + + /** + * Sets an error status and records an exception when an exception is thrown when publishing the + * message batch. + */ + void setPublishRpcSpanException(Span publishRpcSpan, Throwable t) { + if (!enabled) { + return; + } + if (publishRpcSpan != null) { + publishRpcSpan.setStatus(StatusCode.ERROR, "Exception thrown on publish RPC."); + publishRpcSpan.recordException(t); + publishRpcSpan.end(); + } + } + + void startSubscriberSpan(PubsubMessageWrapper message, boolean exactlyOnceDeliveryEnabled) { + if (!enabled) { + return; + } + AttributesBuilder attributesBuilder = + createCommonSpanAttributesBuilder( + message.getSubscriptionName(), message.getSubscriptionProject(), "onResponse", null); + + attributesBuilder + .put(SemanticAttributes.MESSAGING_MESSAGE_ID, message.getMessageId()) + .put(MESSAGE_SIZE_ATTR_KEY, message.getDataSize()) + .put(MESSAGE_ACK_ID_ATTR_KEY, message.getAckId()) + .put(MESSAGE_EXACTLY_ONCE_ATTR_KEY, exactlyOnceDeliveryEnabled); + if (!message.getOrderingKey().isEmpty()) { + attributesBuilder.put(ORDERING_KEY_ATTR_KEY, message.getOrderingKey()); + } + if (message.getDeliveryAttempt() > 0) { + attributesBuilder.put(MESSAGE_DELIVERY_ATTEMPT_ATTR_KEY, message.getDeliveryAttempt()); + } + Attributes attributes = attributesBuilder.build(); + Context publisherSpanContext = message.extractSpanContext(attributes); + message.setPublisherSpan(Span.fromContextOrNull(publisherSpanContext)); + message.setSubscriberSpan( + tracer + .spanBuilder(message.getSubscriptionName() + " subscribe") + .setSpanKind(SpanKind.CONSUMER) + .setParent(publisherSpanContext) + .setAllAttributes(attributes) + .startSpan()); + } + + void endSubscriberSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endSubscriberSpan(); + } + + void setSubscriberSpanExpirationResult(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.setSubscriberSpanExpirationResult(); + } + + void setSubscriberSpanException(PubsubMessageWrapper message, Throwable t, String exception) { + if (!enabled) { + return; + } + message.setSubscriberSpanException(t, exception); + } + + /** Creates a span for subscribe concurrency control as a child of the parent subscriber span. */ + void startSubscribeConcurrencyControlSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + Span subscriberSpan = message.getSubscriberSpan(); + if (subscriberSpan != null) { + message.setSubscribeConcurrencyControlSpan( + startChildSpan(SUBSCRIBE_CONCURRENCY_CONTROL_SPAN_NAME, subscriberSpan)); + } + } + + void endSubscribeConcurrencyControlSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endSubscribeConcurrencyControlSpan(); + } + + void setSubscribeConcurrencyControlSpanException(PubsubMessageWrapper message, Throwable t) { + if (!enabled) { + return; + } + message.setSubscribeConcurrencyControlSpanException(t); + } + + /** + * Creates a span for subscribe ordering key scheduling as a child of the parent subscriber span. + */ + void startSubscribeSchedulerSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + Span subscriberSpan = message.getSubscriberSpan(); + if (subscriberSpan != null) { + message.setSubscribeSchedulerSpan( + startChildSpan(SUBSCRIBE_SCHEDULER_SPAN_NAME, subscriberSpan)); + } + } + + void endSubscribeSchedulerSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + message.endSubscribeSchedulerSpan(); + } + + /** Creates a span for subscribe message processing as a child of the parent subscriber span. */ + void startSubscribeProcessSpan(PubsubMessageWrapper message) { + if (!enabled) { + return; + } + Span subscriberSpan = message.getSubscriberSpan(); + if (subscriberSpan != null) { + Span subscribeProcessSpan = + startChildSpan(message.getSubscriptionName() + " process", subscriberSpan); + subscribeProcessSpan.setAttribute( + SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE); + Span publisherSpan = message.getPublisherSpan(); + if (publisherSpan != null) { + subscribeProcessSpan.addLink(publisherSpan.getSpanContext()); + } + message.setSubscribeProcessSpan(subscribeProcessSpan); + } + } + + void endSubscribeProcessSpan(PubsubMessageWrapper message, String action) { + if (!enabled) { + return; + } + message.endSubscribeProcessSpan(action); + } + + /** + * Creates, starts, and returns spans for ModAck, Nack, and Ack RPC requests. Bi-directional links + * to parent subscribe span for sampled messages are added. + */ + Span startSubscribeRpcSpan( + String subscription, + String rpcOperation, + List messages, + int ackDeadline, + boolean isReceiptModack) { + if (!enabled) { + return null; + } + String codeFunction = rpcOperation == "ack" ? "sendAckOperations" : "sendModAckOperations"; + SubscriptionName subscriptionName = SubscriptionName.parse(subscription); + AttributesBuilder attributesBuilder = + createCommonSpanAttributesBuilder( + subscriptionName.getSubscription(), + subscriptionName.getProject(), + codeFunction, + rpcOperation) + .put(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messages.size()); + + // Ack deadline and receipt modack are specific to the modack operation + if (rpcOperation == "modack") { + attributesBuilder + .put(ACK_DEADLINE_ATTR_KEY, ackDeadline) + .put(RECEIPT_MODACK_ATTR_KEY, isReceiptModack); + } + + SpanBuilder rpcSpanBuilder = + tracer + .spanBuilder(subscriptionName.getSubscription() + " " + rpcOperation) + .setSpanKind(SpanKind.CLIENT) + .setAllAttributes(attributesBuilder.build()); + Attributes linkAttributes = + Attributes.builder().put(SemanticAttributes.MESSAGING_OPERATION, rpcOperation).build(); + for (PubsubMessageWrapper message : messages) { + if (message.getSubscriberSpan().getSpanContext().isSampled()) { + rpcSpanBuilder.addLink(message.getSubscriberSpan().getSpanContext(), linkAttributes); + } + } + Span rpcSpan = rpcSpanBuilder.startSpan(); + + for (PubsubMessageWrapper message : messages) { + if (rpcSpan.getSpanContext().isSampled()) { + message.getSubscriberSpan().addLink(rpcSpan.getSpanContext(), linkAttributes); + switch (rpcOperation) { + case "ack": + message.addAckStartEvent(); + break; + case "modack": + message.addModAckStartEvent(); + break; + case "nack": + message.addNackStartEvent(); + break; + } + } + } + return rpcSpan; + } + + /** Ends the given subscribe RPC span if it exists. */ + void endSubscribeRpcSpan(Span rpcSpan) { + if (!enabled) { + return; + } + if (rpcSpan != null) { + rpcSpan.end(); + } + } + + /** + * Sets an error status and records an exception when an exception is thrown when handling a + * subscribe-side RPC. + */ + void setSubscribeRpcSpanException(Span rpcSpan, boolean isModack, int ackDeadline, Throwable t) { + if (!enabled) { + return; + } + if (rpcSpan != null) { + String operation = !isModack ? "ack" : (ackDeadline == 0 ? "nack" : "modack"); + rpcSpan.setStatus(StatusCode.ERROR, "Exception thrown on " + operation + " RPC."); + rpcSpan.recordException(t); + rpcSpan.end(); + } + } + + /** Adds the appropriate subscribe-side RPC end event. */ + void addEndRpcEvent( + PubsubMessageWrapper message, boolean rpcSampled, boolean isModack, int ackDeadline) { + if (!enabled || !rpcSampled) { + return; + } + if (!isModack) { + message.addAckEndEvent(); + } else if (ackDeadline == 0) { + message.addNackEndEvent(); + } else { + message.addModAckEndEvent(); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index efaba6cf1e17..99d0be17b6eb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -52,6 +52,9 @@ import com.google.pubsub.v1.TopicName; import com.google.pubsub.v1.TopicNames; import io.grpc.CallOptions; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.Tracer; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; @@ -93,6 +96,8 @@ public class Publisher implements PublisherInterface { private static final String GZIP_COMPRESSION = "gzip"; + private static final String OPEN_TELEMETRY_TRACER_NAME = "com.google.cloud.pubsub.v1"; + private final String topicName; private final BatchingSettings batchingSettings; @@ -124,6 +129,10 @@ public class Publisher implements PublisherInterface { private final GrpcCallContext publishContext; private final GrpcCallContext publishContextWithCompression; + private final boolean enableOpenTelemetryTracing; + private final OpenTelemetry openTelemetry; + private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + /** The maximum number of messages in one request. Defined by the API. */ public static long getApiMaxRequestElementCount() { return 1000L; @@ -152,6 +161,15 @@ private Publisher(Builder builder) throws IOException { this.messageTransform = builder.messageTransform; this.enableCompression = builder.enableCompression; this.compressionBytesThreshold = builder.compressionBytesThreshold; + this.enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; + this.openTelemetry = builder.openTelemetry; + if (this.openTelemetry != null && this.enableOpenTelemetryTracing) { + Tracer openTelemetryTracer = builder.openTelemetry.getTracer(OPEN_TELEMETRY_TRACER_NAME); + if (openTelemetryTracer != null) { + this.tracer = + new OpenTelemetryPubsubTracer(openTelemetryTracer, this.enableOpenTelemetryTracing); + } + } messagesBatches = new HashMap<>(); messagesBatchLock = new ReentrantLock(); @@ -259,17 +277,23 @@ public ApiFuture publish(PubsubMessage message) { + "Publisher client. Please create a Publisher client with " + "setEnableMessageOrdering(true) in the builder."); - final OutstandingPublish outstandingPublish = - new OutstandingPublish(messageTransform.apply(message)); + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder(messageTransform.apply(message), topicName).build(); + tracer.startPublisherSpan(messageWrapper); + + final OutstandingPublish outstandingPublish = new OutstandingPublish(messageWrapper); if (flowController != null) { + tracer.startPublishFlowControlSpan(messageWrapper); try { flowController.acquire(outstandingPublish.messageSize); + tracer.endPublishFlowControlSpan(messageWrapper); } catch (FlowController.FlowControlException e) { if (!orderingKey.isEmpty()) { sequentialExecutor.stopPublish(orderingKey); } outstandingPublish.publishResult.setException(e); + tracer.setPublishFlowControlSpanException(messageWrapper, e); return outstandingPublish.publishResult; } } @@ -277,6 +301,7 @@ public ApiFuture publish(PubsubMessage message) { List batchesToSend; messagesBatchLock.lock(); try { + tracer.startPublishBatchingSpan(messageWrapper); if (!orderingKey.isEmpty() && sequentialExecutor.keyHasError(orderingKey)) { outstandingPublish.publishResult.setException( SequentialExecutorService.CallbackExecutor.CANCELLATION_EXCEPTION); @@ -452,12 +477,23 @@ private ApiFuture publishCall(OutstandingBatch outstandingBatch if (enableCompression && outstandingBatch.batchSizeBytes >= compressionBytesThreshold) { context = publishContextWithCompression; } + + int numMessagesInBatch = outstandingBatch.size(); + List pubsubMessagesList = new ArrayList(numMessagesInBatch); + List messageWrappers = outstandingBatch.getMessageWrappers(); + for (PubsubMessageWrapper messageWrapper : messageWrappers) { + tracer.endPublishBatchingSpan(messageWrapper); + pubsubMessagesList.add(messageWrapper.getPubsubMessage()); + } + + outstandingBatch.publishRpcSpan = tracer.startPublishRpcSpan(topicName, messageWrappers); + return publisherStub .publishCallable() .futureCall( PublishRequest.newBuilder() .setTopic(topicName) - .addAllMessages(outstandingBatch.getMessages()) + .addAllMessages(pubsubMessagesList) .build(), context); } @@ -541,6 +577,7 @@ private final class OutstandingBatch { int attempt; int batchSizeBytes; final String orderingKey; + Span publishRpcSpan; OutstandingBatch( List outstandingPublishes, int batchSizeBytes, String orderingKey) { @@ -555,24 +592,29 @@ int size() { return outstandingPublishes.size(); } - private List getMessages() { - List results = new ArrayList<>(outstandingPublishes.size()); + private List getMessageWrappers() { + List results = new ArrayList<>(outstandingPublishes.size()); for (OutstandingPublish outstandingPublish : outstandingPublishes) { - results.add(outstandingPublish.message); + results.add(outstandingPublish.messageWrapper); } return results; } private void onFailure(Throwable t) { + tracer.setPublishRpcSpanException(publishRpcSpan, t); + for (OutstandingPublish outstandingPublish : outstandingPublishes) { if (flowController != null) { flowController.release(outstandingPublish.messageSize); } outstandingPublish.publishResult.setException(t); + tracer.endPublisherSpan(outstandingPublish.messageWrapper); } } private void onSuccess(Iterable results) { + tracer.endPublishRpcSpan(publishRpcSpan); + Iterator messagesResultsIt = outstandingPublishes.iterator(); for (String messageId : results) { OutstandingPublish nextPublish = messagesResultsIt.next(); @@ -580,19 +622,21 @@ private void onSuccess(Iterable results) { flowController.release(nextPublish.messageSize); } nextPublish.publishResult.set(messageId); + tracer.setPublisherMessageIdSpanAttribute(nextPublish.messageWrapper, messageId); + tracer.endPublisherSpan(nextPublish.messageWrapper); } } } private static final class OutstandingPublish { final SettableApiFuture publishResult; - final PubsubMessage message; + final PubsubMessageWrapper messageWrapper; final int messageSize; - OutstandingPublish(PubsubMessage message) { + OutstandingPublish(PubsubMessageWrapper messageWrapper) { this.publishResult = SettableApiFuture.create(); - this.message = message; - this.messageSize = message.getSerializedSize(); + this.messageWrapper = messageWrapper; + this.messageSize = messageWrapper.getPubsubMessage().getSerializedSize(); } } @@ -749,6 +793,9 @@ public PubsubMessage apply(PubsubMessage input) { private boolean enableCompression = DEFAULT_ENABLE_COMPRESSION; private long compressionBytesThreshold = DEFAULT_COMPRESSION_BYTES_THRESHOLD; + private boolean enableOpenTelemetryTracing = false; + private OpenTelemetry openTelemetry = null; + private Builder(String topic) { this.topicName = Preconditions.checkNotNull(topic); } @@ -880,6 +927,26 @@ public Builder setCompressionBytesThreshold(long compressionBytesThreshold) { return this; } + /** + * OpenTelemetry will be enabled if setEnableOpenTelemetry is true and and instance of + * OpenTelemetry has been provied. Warning: traces are subject to change. The name and + * attributes of a span might change without notice. Only use run traces interactively. Don't + * use in automation. Running non-interactive traces can cause problems if the underlying trace + * architecture changes without notice. + */ + + /** Gives the ability to enable Open Telemetry Tracing */ + public Builder setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing) { + this.enableOpenTelemetryTracing = enableOpenTelemetryTracing; + return this; + } + + /** Sets the instance of OpenTelemetry for the Publisher class. */ + public Builder setOpenTelemetry(OpenTelemetry openTelemetry) { + this.openTelemetry = openTelemetry; + return this; + } + /** Returns the default BatchingSettings used by the client if settings are not provided. */ public static BatchingSettings getDefaultBatchingSettings() { return DEFAULT_BATCHING_SETTINGS; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java new file mode 100644 index 000000000000..94fd13085da8 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java @@ -0,0 +1,430 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.StatusCode; +import io.opentelemetry.api.trace.propagation.W3CTraceContextPropagator; +import io.opentelemetry.context.Context; +import io.opentelemetry.context.propagation.TextMapGetter; +import io.opentelemetry.context.propagation.TextMapSetter; +import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; + +/** + * A wrapper class for a {@link PubsubMessage} object that handles creation and tracking of + * OpenTelemetry {@link Span} objects for different operations that occur during publishing. + */ +public class PubsubMessageWrapper { + private PubsubMessage message; + + private final TopicName topicName; + private final SubscriptionName subscriptionName; + + // Attributes set only for messages received from a streaming pull response. + private final String ackId; + private final int deliveryAttempt; + + private static final String PUBLISH_START_EVENT = "publish start"; + private static final String PUBLISH_END_EVENT = "publish end"; + + private static final String MODACK_START_EVENT = "modack start"; + private static final String MODACK_END_EVENT = "modack end"; + private static final String NACK_START_EVENT = "nack start"; + private static final String NACK_END_EVENT = "nack end"; + private static final String ACK_START_EVENT = "ack start"; + private static final String ACK_END_EVENT = "ack end"; + + private static final String GOOGCLIENT_PREFIX = "googclient_"; + + private static final String MESSAGE_RESULT_ATTR_KEY = "messaging.gcp_pubsub.result"; + + private Span publisherSpan; + private Span publishFlowControlSpan; + private Span publishBatchingSpan; + + private Span subscriberSpan; + private Span subscribeConcurrencyControlSpan; + private Span subscribeSchedulerSpan; + private Span subscribeProcessSpan; + + private PubsubMessageWrapper(Builder builder) { + this.message = builder.message; + this.topicName = builder.topicName; + this.subscriptionName = builder.subscriptionName; + this.ackId = builder.ackId; + this.deliveryAttempt = builder.deliveryAttempt; + } + + static Builder newBuilder(PubsubMessage message, String topicName) { + return new Builder(message, topicName); + } + + static Builder newBuilder( + PubsubMessage message, String subscriptionName, String ackId, int deliveryAttempt) { + return new Builder(message, subscriptionName, ackId, deliveryAttempt); + } + + /** Returns the PubsubMessage associated with this wrapper. */ + PubsubMessage getPubsubMessage() { + return message; + } + + void setPubsubMessage(PubsubMessage message) { + this.message = message; + } + + /** Returns the TopicName for this wrapper as a string. */ + String getTopicName() { + if (topicName != null) { + return topicName.getTopic(); + } + return ""; + } + + String getTopicProject() { + if (topicName != null) { + return topicName.getProject(); + } + return ""; + } + + /** Returns the SubscriptionName for this wrapper as a string. */ + String getSubscriptionName() { + if (subscriptionName != null) { + return subscriptionName.getSubscription(); + } + return ""; + } + + String getSubscriptionProject() { + if (subscriptionName != null) { + return subscriptionName.getProject(); + } + return ""; + } + + String getMessageId() { + return message.getMessageId(); + } + + String getAckId() { + return ackId; + } + + int getDataSize() { + return message.getData().size(); + } + + String getOrderingKey() { + return message.getOrderingKey(); + } + + int getDeliveryAttempt() { + return deliveryAttempt; + } + + Span getPublisherSpan() { + return publisherSpan; + } + + void setPublisherSpan(Span span) { + this.publisherSpan = span; + } + + void setPublishFlowControlSpan(Span span) { + this.publishFlowControlSpan = span; + } + + void setPublishBatchingSpan(Span span) { + this.publishBatchingSpan = span; + } + + Span getSubscriberSpan() { + return subscriberSpan; + } + + void setSubscriberSpan(Span span) { + this.subscriberSpan = span; + } + + void setSubscribeConcurrencyControlSpan(Span span) { + this.subscribeConcurrencyControlSpan = span; + } + + void setSubscribeSchedulerSpan(Span span) { + this.subscribeSchedulerSpan = span; + } + + void setSubscribeProcessSpan(Span span) { + this.subscribeProcessSpan = span; + } + + /** Creates a publish start event that is tied to the publish RPC span time. */ + void addPublishStartEvent() { + if (publisherSpan != null) { + publisherSpan.addEvent(PUBLISH_START_EVENT); + } + } + + /** + * Sets the message ID attribute in the publisher parent span. This is called after the publish + * RPC returns with a message ID. + */ + void setPublisherMessageIdSpanAttribute(String messageId) { + if (publisherSpan != null) { + publisherSpan.setAttribute(SemanticAttributes.MESSAGING_MESSAGE_ID, messageId); + } + } + + /** Ends the publisher parent span if it exists. */ + void endPublisherSpan() { + if (publisherSpan != null) { + publisherSpan.addEvent(PUBLISH_END_EVENT); + publisherSpan.end(); + } + } + + /** Ends the publish flow control span if it exists. */ + void endPublishFlowControlSpan() { + if (publishFlowControlSpan != null) { + publishFlowControlSpan.end(); + } + } + + /** Ends the publish batching span if it exists. */ + void endPublishBatchingSpan() { + if (publishBatchingSpan != null) { + publishBatchingSpan.end(); + } + } + + /** + * Sets an error status and records an exception when an exception is thrown during flow control. + */ + void setPublishFlowControlSpanException(Throwable t) { + if (publishFlowControlSpan != null) { + publishFlowControlSpan.setStatus( + StatusCode.ERROR, "Exception thrown during publish flow control."); + publishFlowControlSpan.recordException(t); + endAllPublishSpans(); + } + } + + /** + * Creates start and end events for ModAcks, Nacks, and Acks that are tied to the corresponding + * RPC span start and end times. + */ + void addModAckStartEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(MODACK_START_EVENT); + } + } + + void addModAckEndEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(MODACK_END_EVENT); + } + } + + void addNackStartEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(NACK_START_EVENT); + } + } + + void addNackEndEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(NACK_END_EVENT); + } + } + + void addAckStartEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(ACK_START_EVENT); + } + } + + void addAckEndEvent() { + if (subscriberSpan != null) { + subscriberSpan.addEvent(ACK_END_EVENT); + } + } + + /** Ends the subscriber parent span if exists. */ + void endSubscriberSpan() { + if (subscriberSpan != null) { + subscriberSpan.end(); + } + } + + /** Ends the subscribe concurreny control span if exists. */ + void endSubscribeConcurrencyControlSpan() { + if (subscribeConcurrencyControlSpan != null) { + subscribeConcurrencyControlSpan.end(); + } + } + + /** Ends the subscribe scheduler span if exists. */ + void endSubscribeSchedulerSpan() { + if (subscribeSchedulerSpan != null) { + subscribeSchedulerSpan.end(); + } + } + + /** + * Ends the subscribe process span if it exists, creates an event with the appropriate result, and + * sets the result on the parent subscriber span. + */ + void endSubscribeProcessSpan(String action) { + if (subscribeProcessSpan != null) { + subscribeProcessSpan.addEvent(action + " called"); + subscribeProcessSpan.end(); + subscriberSpan.setAttribute(MESSAGE_RESULT_ATTR_KEY, action); + } + } + + /** Sets an exception on the subscriber span during Ack/ModAck/Nack failures */ + void setSubscriberSpanException(Throwable t, String exception) { + if (subscriberSpan != null) { + subscriberSpan.setStatus(StatusCode.ERROR, exception); + subscriberSpan.recordException(t); + endAllSubscribeSpans(); + } + } + + /** Sets result of the parent subscriber span to expired and ends its. */ + void setSubscriberSpanExpirationResult() { + if (subscriberSpan != null) { + subscriberSpan.setAttribute(MESSAGE_RESULT_ATTR_KEY, "expired"); + endSubscriberSpan(); + } + } + + /** + * Sets an error status and records an exception when an exception is thrown subscriber + * concurrency control. + */ + void setSubscribeConcurrencyControlSpanException(Throwable t) { + if (subscribeConcurrencyControlSpan != null) { + subscribeConcurrencyControlSpan.setStatus( + StatusCode.ERROR, "Exception thrown during subscribe concurrency control."); + subscribeConcurrencyControlSpan.recordException(t); + endAllSubscribeSpans(); + } + } + + /** Ends all publisher-side spans associated with this message wrapper. */ + private void endAllPublishSpans() { + endPublishFlowControlSpan(); + endPublishBatchingSpan(); + endPublisherSpan(); + } + + /** Ends all subscriber-side spans associated with this message wrapper. */ + private void endAllSubscribeSpans() { + endSubscribeConcurrencyControlSpan(); + endSubscribeSchedulerSpan(); + endSubscriberSpan(); + } + + /** + * Injects the span context into the attributes of a Pub/Sub message for propagation to the + * subscriber client. + */ + void injectSpanContext() { + TextMapSetter injectMessageAttributes = + new TextMapSetter() { + @Override + public void set(PubsubMessageWrapper carrier, String key, String value) { + PubsubMessage newMessage = + PubsubMessage.newBuilder(carrier.message) + .putAttributes(GOOGCLIENT_PREFIX + key, value) + .build(); + carrier.message = newMessage; + } + }; + W3CTraceContextPropagator.getInstance() + .inject(Context.current().with(publisherSpan), this, injectMessageAttributes); + } + + /** + * Extracts the span context from the attributes of a Pub/Sub message and creates the parent + * subscriber span using that context. + */ + Context extractSpanContext(Attributes attributes) { + TextMapGetter extractMessageAttributes = + new TextMapGetter() { + @Override + public String get(PubsubMessageWrapper carrier, String key) { + return carrier.message.getAttributesOrDefault(GOOGCLIENT_PREFIX + key, ""); + } + + public Iterable keys(PubsubMessageWrapper carrier) { + return carrier.message.getAttributesMap().keySet(); + } + }; + Context context = + W3CTraceContextPropagator.getInstance() + .extract(Context.current(), this, extractMessageAttributes); + return context; + } + + /** Builder of {@link PubsubMessageWrapper PubsubMessageWrapper}. */ + static final class Builder { + private PubsubMessage message = null; + private TopicName topicName = null; + private SubscriptionName subscriptionName = null; + private String ackId = null; + private int deliveryAttempt = 0; + + public Builder(PubsubMessage message, String topicName) { + this.message = message; + if (topicName != null) { + this.topicName = TopicName.parse(topicName); + } + } + + public Builder( + PubsubMessage message, String subscriptionName, String ackId, int deliveryAttempt) { + this.message = message; + if (subscriptionName != null) { + this.subscriptionName = SubscriptionName.parse(subscriptionName); + } + this.ackId = ackId; + this.deliveryAttempt = deliveryAttempt; + } + + public Builder( + PubsubMessage message, + SubscriptionName subscriptionName, + String ackId, + int deliveryAttempt) { + this.message = message; + this.subscriptionName = subscriptionName; + this.ackId = ackId; + this.deliveryAttempt = deliveryAttempt; + } + + public PubsubMessageWrapper build() { + return new PubsubMessageWrapper(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 7849bdb74df9..60da55cee239 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -50,6 +50,7 @@ import com.google.rpc.ErrorInfo; import io.grpc.Status; import io.grpc.protobuf.StatusProto; +import io.opentelemetry.api.trace.Span; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -118,6 +119,9 @@ final class StreamingSubscriberConnection extends AbstractApiService implements */ private final String clientId = UUID.randomUUID().toString(); + private final boolean enableOpenTelemetryTracing; + private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; systemExecutor = builder.systemExecutor; @@ -151,6 +155,11 @@ private StreamingSubscriberConnection(Builder builder) { messageDispatcherBuilder = MessageDispatcher.newBuilder(builder.receiverWithAckResponse); } + enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; + if (builder.tracer != null) { + tracer = builder.tracer; + } + messageDispatcher = messageDispatcherBuilder .setAckProcessor(this) @@ -165,6 +174,9 @@ private StreamingSubscriberConnection(Builder builder) { .setExecutor(builder.executor) .setSystemExecutor(builder.systemExecutor) .setApiClock(builder.clock) + .setSubscriptionName(subscription) + .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) + .setTracer(tracer) .build(); flowControlSettings = builder.flowControlSettings; @@ -432,15 +444,19 @@ private void sendAckOperations( for (List ackRequestDataInRequestList : Lists.partition(ackRequestDataList, MAX_PER_REQUEST_CHANGES)) { List ackIdsInRequest = new ArrayList<>(); + List messagesInRequest = new ArrayList<>(); for (AckRequestData ackRequestData : ackRequestDataInRequestList) { ackIdsInRequest.add(ackRequestData.getAckId()); + messagesInRequest.add(ackRequestData.getMessageWrapper()); if (ackRequestData.hasMessageFuture()) { // Add to our pending requests if we care about the response pendingRequests.add(ackRequestData); } } + // Creates an Ack span to be passed to the callback + Span rpcSpan = tracer.startSubscribeRpcSpan(subscription, "ack", messagesInRequest, 0, false); ApiFutureCallback callback = - getCallback(ackRequestDataInRequestList, 0, false, currentBackoffMillis); + getCallback(ackRequestDataInRequestList, 0, false, currentBackoffMillis, rpcSpan); ApiFuture ackFuture = subscriberStub .acknowledgeCallable() @@ -463,19 +479,32 @@ private void sendModackOperations( for (List ackRequestDataInRequestList : Lists.partition(modackRequestData.getAckRequestData(), MAX_PER_REQUEST_CHANGES)) { List ackIdsInRequest = new ArrayList<>(); + List messagesInRequest = new ArrayList<>(); for (AckRequestData ackRequestData : ackRequestDataInRequestList) { ackIdsInRequest.add(ackRequestData.getAckId()); + messagesInRequest.add(ackRequestData.getMessageWrapper()); if (ackRequestData.hasMessageFuture()) { // Add to our pending requests if we care about the response pendingRequests.add(ackRequestData); } } + int deadlineExtensionSeconds = modackRequestData.getDeadlineExtensionSeconds(); + String rpcOperation = deadlineExtensionSeconds == 0 ? "nack" : "modack"; + // Creates either a ModAck span or a Nack span depending on the given ack deadline + Span rpcSpan = + tracer.startSubscribeRpcSpan( + subscription, + rpcOperation, + messagesInRequest, + deadlineExtensionSeconds, + modackRequestData.getIsReceiptModack()); ApiFutureCallback callback = getCallback( modackRequestData.getAckRequestData(), - modackRequestData.getDeadlineExtensionSeconds(), + deadlineExtensionSeconds, true, - currentBackoffMillis); + currentBackoffMillis, + rpcSpan); ApiFuture modackFuture = subscriberStub .modifyAckDeadlineCallable() @@ -517,22 +546,36 @@ private ApiFutureCallback getCallback( List ackRequestDataList, int deadlineExtensionSeconds, boolean isModack, - long currentBackoffMillis) { + long currentBackoffMillis, + Span rpcSpan) { // This callback handles retries, and sets message futures // Check if ack or nack boolean setResponseOnSuccess = (!isModack || (deadlineExtensionSeconds == 0)) ? true : false; + boolean rpcSpanSampled = rpcSpan == null ? false : rpcSpan.getSpanContext().isSampled(); + return new ApiFutureCallback() { @Override public void onSuccess(Empty empty) { ackOperationsWaiter.incrementPendingCount(-1); + + tracer.endSubscribeRpcSpan(rpcSpan); + for (AckRequestData ackRequestData : ackRequestDataList) { // This will check if a response is needed, and if it has already been set ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); messageDispatcher.notifyAckSuccess(ackRequestData); // Remove from our pending operations pendingRequests.remove(ackRequestData); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + if (!isModack || deadlineExtensionSeconds == 0) { + tracer.endSubscriberSpan(ackRequestData.getMessageWrapper()); + } } } @@ -544,10 +587,23 @@ public void onFailure(Throwable t) { Level level = isAlive() ? Level.WARNING : Level.FINER; logger.log(level, "failed to send operations", t); + tracer.setSubscribeRpcSpanException(rpcSpan, isModack, deadlineExtensionSeconds, t); + if (!getExactlyOnceDeliveryEnabled()) { + if (enableOpenTelemetryTracing) { + for (AckRequestData ackRequestData : ackRequestDataList) { + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + if (!isModack || deadlineExtensionSeconds == 0) { + tracer.endSubscriberSpan(ackRequestData.getMessageWrapper()); + } + } + } return; } - List ackRequestDataArrayRetryList = new ArrayList<>(); try { Map metadataMap = getMetadataMapFromThrowable(t); @@ -569,14 +625,37 @@ public void onFailure(Throwable t) { errorMessage); ackRequestData.setResponse(AckResponse.INVALID, setResponseOnSuccess); messageDispatcher.notifyAckFailed(ackRequestData); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + tracer.setSubscriberSpanException( + ackRequestData.getMessageWrapper(), t, "Invalid ack ID"); } else { logger.log(Level.INFO, "Unknown error message, will not resend", errorMessage); ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); messageDispatcher.notifyAckFailed(ackRequestData); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + tracer.setSubscriberSpanException( + ackRequestData.getMessageWrapper(), t, "Unknown error message"); + ackRequestData + .getMessageWrapper() + .setSubscriberSpanException(t, "Unknown error message"); } } else { ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); messageDispatcher.notifyAckSuccess(ackRequestData); + tracer.endSubscriberSpan(ackRequestData.getMessageWrapper()); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); } // Remove from our pending pendingRequests.remove(ackRequestData); @@ -637,6 +716,9 @@ public static final class Builder { private ScheduledExecutorService systemExecutor; private ApiClock clock; + private boolean enableOpenTelemetryTracing; + private OpenTelemetryPubsubTracer tracer; + protected Builder(MessageReceiver receiver) { this.receiver = receiver; } @@ -727,6 +809,16 @@ public Builder setClock(ApiClock clock) { return this; } + public Builder setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing) { + this.enableOpenTelemetryTracing = enableOpenTelemetryTracing; + return this; + } + + public Builder setTracer(OpenTelemetryPubsubTracer tracer) { + this.tracer = tracer; + return this; + } + public StreamingSubscriberConnection build() { return new StreamingSubscriberConnection(this); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 1723c72b17ff..e9926fa58272 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -43,6 +43,8 @@ import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.google.pubsub.v1.ProjectSubscriptionName; import com.google.pubsub.v1.PubsubMessage; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.trace.Tracer; import java.io.IOException; import java.util.ArrayList; import java.util.List; @@ -117,6 +119,8 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private static final Logger logger = Logger.getLogger(Subscriber.class.getName()); + private static final String OPEN_TELEMETRY_TRACER_NAME = "com.google.cloud.pubsub.v1"; + private final String subscriptionName; private final FlowControlSettings flowControlSettings; private final boolean useLegacyFlowControl; @@ -145,6 +149,10 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final ApiClock clock; private final List backgroundResources = new ArrayList<>(); + private final boolean enableOpenTelemetryTracing; + private final OpenTelemetry openTelemetry; + private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + private Subscriber(Builder builder) { receiver = builder.receiver; receiverWithAckResponse = builder.receiverWithAckResponse; @@ -199,6 +207,16 @@ private Subscriber(Builder builder) { throw new IllegalStateException(e); } + this.enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; + this.openTelemetry = builder.openTelemetry; + if (this.openTelemetry != null && this.enableOpenTelemetryTracing) { + Tracer openTelemetryTracer = builder.openTelemetry.getTracer(OPEN_TELEMETRY_TRACER_NAME); + if (openTelemetryTracer != null) { + this.tracer = + new OpenTelemetryPubsubTracer(openTelemetryTracer, this.enableOpenTelemetryTracing); + } + } + streamingSubscriberConnections = new ArrayList(numPullers); // We regularly look up the distribution for a good subscription deadline. @@ -386,6 +404,8 @@ private void startStreamingConnections() { .setExecutor(executor) .setSystemExecutor(alarmsExecutor) .setClock(clock) + .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) + .setTracer(tracer) .build(); streamingSubscriberConnections.add(streamingSubscriberConnection); @@ -495,6 +515,9 @@ public static final class Builder { private String endpoint = null; private String universeDomain = null; + private boolean enableOpenTelemetryTracing = false; + private OpenTelemetry openTelemetry = null; + Builder(String subscription, MessageReceiver receiver) { this.subscription = subscription; this.receiver = receiver; @@ -684,6 +707,26 @@ Builder setClock(ApiClock clock) { return this; } + /** + * OpenTelemetry will be enabled if setEnableOpenTelemetry is true and and instance of + * OpenTelemetry has been provied. Warning: traces are subject to change. The name and + * attributes of a span might change without notice. Only use run traces interactively. Don't + * use in automation. Running non-interactive traces can cause problems if the underlying trace + * architecture changes without notice. + */ + + /** Gives the ability to enable Open Telemetry Tracing */ + public Builder setEnableOpenTelemetryTracing(boolean enableOpenTelemetryTracing) { + this.enableOpenTelemetryTracing = enableOpenTelemetryTracing; + return this; + } + + /** Sets the instance of OpenTelemetry for the Publisher class. */ + public Builder setOpenTelemetry(OpenTelemetry openTelemetry) { + this.openTelemetry = openTelemetry; + return this; + } + /** Returns the default FlowControlSettings used by the client if settings are not provided. */ public static FlowControlSettings getDefaultFlowControlSettings() { return DEFAULT_FLOW_CONTROL_SETTINGS; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java new file mode 100644 index 000000000000..b4433f41edc3 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java @@ -0,0 +1,669 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; + +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.SubscriptionName; +import com.google.pubsub.v1.TopicName; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.SpanKind; +import io.opentelemetry.api.trace.StatusCode; +import io.opentelemetry.api.trace.Tracer; +import io.opentelemetry.sdk.testing.assertj.AttributesAssert; +import io.opentelemetry.sdk.testing.assertj.EventDataAssert; +import io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions; +import io.opentelemetry.sdk.testing.assertj.SpanDataAssert; +import io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule; +import io.opentelemetry.sdk.trace.data.LinkData; +import io.opentelemetry.sdk.trace.data.SpanData; +import io.opentelemetry.sdk.trace.data.StatusData; +import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; +import java.util.Arrays; +import java.util.List; +import org.junit.Test; + +public class OpenTelemetryTest { + private static final TopicName FULL_TOPIC_NAME = + TopicName.parse("projects/test-project/topics/test-topic"); + private static final SubscriptionName FULL_SUBSCRIPTION_NAME = + SubscriptionName.parse("projects/test-project/subscriptions/test-sub"); + private static final String PROJECT_NAME = "test-project"; + private static final String ORDERING_KEY = "abc"; + private static final String MESSAGE_ID = "m0"; + private static final String ACK_ID = "def"; + private static final int DELIVERY_ATTEMPT = 1; + private static final int ACK_DEADLINE = 10; + private static final boolean EXACTLY_ONCE_ENABLED = true; + + private static final String PUBLISHER_SPAN_NAME = FULL_TOPIC_NAME.getTopic() + " create"; + private static final String PUBLISH_FLOW_CONTROL_SPAN_NAME = "publisher flow control"; + private static final String PUBLISH_BATCHING_SPAN_NAME = "publisher batching"; + private static final String PUBLISH_RPC_SPAN_NAME = FULL_TOPIC_NAME.getTopic() + " publish"; + private static final String PUBLISH_START_EVENT = "publish start"; + private static final String PUBLISH_END_EVENT = "publish end"; + + private static final String SUBSCRIBER_SPAN_NAME = + FULL_SUBSCRIPTION_NAME.getSubscription() + " subscribe"; + private static final String SUBSCRIBE_CONCURRENCY_CONTROL_SPAN_NAME = + "subscriber concurrency control"; + private static final String SUBSCRIBE_SCHEDULER_SPAN_NAME = "subscriber scheduler"; + private static final String SUBSCRIBE_PROCESS_SPAN_NAME = + FULL_SUBSCRIPTION_NAME.getSubscription() + " process"; + private static final String SUBSCRIBE_MODACK_RPC_SPAN_NAME = + FULL_SUBSCRIPTION_NAME.getSubscription() + " modack"; + private static final String SUBSCRIBE_ACK_RPC_SPAN_NAME = + FULL_SUBSCRIPTION_NAME.getSubscription() + " ack"; + private static final String SUBSCRIBE_NACK_RPC_SPAN_NAME = + FULL_SUBSCRIPTION_NAME.getSubscription() + " nack"; + + private static final String PROCESS_ACTION = "ack"; + private static final String MODACK_START_EVENT = "modack start"; + private static final String MODACK_END_EVENT = "modack end"; + private static final String NACK_START_EVENT = "nack start"; + private static final String NACK_END_EVENT = "nack end"; + private static final String ACK_START_EVENT = "ack start"; + private static final String ACK_END_EVENT = "ack end"; + + private static final String MESSAGING_SYSTEM_VALUE = "gcp_pubsub"; + private static final String PROJECT_ATTR_KEY = "gcp.project_id"; + private static final String MESSAGE_SIZE_ATTR_KEY = "messaging.message.body.size"; + private static final String ORDERING_KEY_ATTR_KEY = "messaging.gcp_pubsub.message.ordering_key"; + private static final String ACK_DEADLINE_ATTR_KEY = "messaging.gcp_pubsub.message.ack_deadline"; + private static final String RECEIPT_MODACK_ATTR_KEY = "messaging.gcp_pubsub.is_receipt_modack"; + private static final String MESSAGE_ACK_ID_ATTR_KEY = "messaging.gcp_pubsub.message.ack_id"; + private static final String MESSAGE_EXACTLY_ONCE_ATTR_KEY = + "messaging.gcp_pubsub.message.exactly_once_delivery"; + private static final String MESSAGE_RESULT_ATTR_KEY = "messaging.gcp_pubsub.result"; + private static final String MESSAGE_DELIVERY_ATTEMPT_ATTR_KEY = + "messaging.gcp_pubsub.message.delivery_attempt"; + + private static final String TRACEPARENT_ATTRIBUTE = "googclient_traceparent"; + + private static final OpenTelemetryRule openTelemetryTesting = OpenTelemetryRule.create(); + + @Test + public void testPublishSpansSuccess() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + List messageWrappers = Arrays.asList(messageWrapper); + + long messageSize = messageWrapper.getPubsubMessage().getData().size(); + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + // Call all span start/end methods in the expected order + tracer.startPublisherSpan(messageWrapper); + tracer.startPublishFlowControlSpan(messageWrapper); + tracer.endPublishFlowControlSpan(messageWrapper); + tracer.startPublishBatchingSpan(messageWrapper); + tracer.endPublishBatchingSpan(messageWrapper); + Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME.toString(), messageWrappers); + tracer.endPublishRpcSpan(publishRpcSpan); + tracer.setPublisherMessageIdSpanAttribute(messageWrapper, MESSAGE_ID); + tracer.endPublisherSpan(messageWrapper); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(4, allSpans.size()); + SpanData flowControlSpanData = allSpans.get(0); + SpanData batchingSpanData = allSpans.get(1); + SpanData publishRpcSpanData = allSpans.get(2); + SpanData publisherSpanData = allSpans.get(3); + + SpanDataAssert flowControlSpanDataAssert = + OpenTelemetryAssertions.assertThat(flowControlSpanData); + flowControlSpanDataAssert + .hasName(PUBLISH_FLOW_CONTROL_SPAN_NAME) + .hasParent(publisherSpanData) + .hasEnded(); + + SpanDataAssert batchingSpanDataAssert = OpenTelemetryAssertions.assertThat(batchingSpanData); + batchingSpanDataAssert + .hasName(PUBLISH_BATCHING_SPAN_NAME) + .hasParent(publisherSpanData) + .hasEnded(); + + // Check span data, links, and attributes for the publish RPC span + SpanDataAssert publishRpcSpanDataAssert = + OpenTelemetryAssertions.assertThat(publishRpcSpanData); + publishRpcSpanDataAssert + .hasName(PUBLISH_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasEnded(); + + List publishRpcLinks = publishRpcSpanData.getLinks(); + assertEquals(messageWrappers.size(), publishRpcLinks.size()); + assertEquals(publisherSpanData.getSpanContext(), publishRpcLinks.get(0).getSpanContext()); + + assertEquals(6, publishRpcSpanData.getAttributes().size()); + AttributesAssert publishRpcSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(publishRpcSpanData.getAttributes()); + publishRpcSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_TOPIC_NAME.getTopic()) + .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "publishCall") + .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "publish") + .containsEntry(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messageWrappers.size()); + + // Check span data, events, links, and attributes for the publisher create span + SpanDataAssert publisherSpanDataAssert = OpenTelemetryAssertions.assertThat(publisherSpanData); + publisherSpanDataAssert + .hasName(PUBLISHER_SPAN_NAME) + .hasKind(SpanKind.PRODUCER) + .hasNoParent() + .hasEnded(); + + assertEquals(2, publisherSpanData.getEvents().size()); + EventDataAssert startEventAssert = + OpenTelemetryAssertions.assertThat(publisherSpanData.getEvents().get(0)); + startEventAssert.hasName(PUBLISH_START_EVENT); + EventDataAssert endEventAssert = + OpenTelemetryAssertions.assertThat(publisherSpanData.getEvents().get(1)); + endEventAssert.hasName(PUBLISH_END_EVENT); + + List publisherLinks = publisherSpanData.getLinks(); + assertEquals(1, publisherLinks.size()); + assertEquals(publishRpcSpanData.getSpanContext(), publisherLinks.get(0).getSpanContext()); + + assertEquals(8, publisherSpanData.getAttributes().size()); + AttributesAssert publisherSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(publisherSpanData.getAttributes()); + publisherSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_TOPIC_NAME.getTopic()) + .containsEntry(PROJECT_ATTR_KEY, PROJECT_NAME) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "publish") + .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "create") + .containsEntry(ORDERING_KEY_ATTR_KEY, ORDERING_KEY) + .containsEntry(MESSAGE_SIZE_ATTR_KEY, messageSize) + .containsEntry(SemanticAttributes.MESSAGING_MESSAGE_ID, MESSAGE_ID); + + // Check that the message has the attribute containing the trace context. + PubsubMessage message = messageWrapper.getPubsubMessage(); + assertEquals(1, message.getAttributesMap().size()); + assertTrue(message.containsAttributes(TRACEPARENT_ATTRIBUTE)); + assertTrue( + message + .getAttributesOrDefault(TRACEPARENT_ATTRIBUTE, "") + .contains(publisherSpanData.getTraceId())); + assertTrue( + message + .getAttributesOrDefault(TRACEPARENT_ATTRIBUTE, "") + .contains(publisherSpanData.getSpanId())); + } + + @Test + public void testPublishFlowControlSpanFailure() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + tracer.startPublisherSpan(messageWrapper); + tracer.startPublishFlowControlSpan(messageWrapper); + + Exception e = new Exception("test-exception"); + tracer.setPublishFlowControlSpanException(messageWrapper, e); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(2, allSpans.size()); + SpanData flowControlSpanData = allSpans.get(0); + SpanData publisherSpanData = allSpans.get(1); + + SpanDataAssert flowControlSpanDataAssert = + OpenTelemetryAssertions.assertThat(flowControlSpanData); + StatusData expectedStatus = + StatusData.create(StatusCode.ERROR, "Exception thrown during publish flow control."); + flowControlSpanDataAssert + .hasName(PUBLISH_FLOW_CONTROL_SPAN_NAME) + .hasParent(publisherSpanData) + .hasStatus(expectedStatus) + .hasException(e) + .hasEnded(); + + SpanDataAssert publisherSpanDataAssert = OpenTelemetryAssertions.assertThat(publisherSpanData); + publisherSpanDataAssert + .hasName(PUBLISHER_SPAN_NAME) + .hasKind(SpanKind.PRODUCER) + .hasNoParent() + .hasEnded(); + } + + @Test + public void testPublishRpcSpanFailure() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + + List messageWrappers = Arrays.asList(messageWrapper); + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + tracer.startPublisherSpan(messageWrapper); + Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME.toString(), messageWrappers); + + Exception e = new Exception("test-exception"); + tracer.setPublishRpcSpanException(publishRpcSpan, e); + tracer.endPublisherSpan(messageWrapper); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(2, allSpans.size()); + SpanData rpcSpanData = allSpans.get(0); + SpanData publisherSpanData = allSpans.get(1); + + SpanDataAssert rpcSpanDataAssert = OpenTelemetryAssertions.assertThat(rpcSpanData); + StatusData expectedStatus = + StatusData.create(StatusCode.ERROR, "Exception thrown on publish RPC."); + rpcSpanDataAssert + .hasName(PUBLISH_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasStatus(expectedStatus) + .hasException(e) + .hasEnded(); + + SpanDataAssert publisherSpanDataAssert = OpenTelemetryAssertions.assertThat(publisherSpanData); + publisherSpanDataAssert + .hasName(PUBLISHER_SPAN_NAME) + .hasKind(SpanKind.PRODUCER) + .hasNoParent() + .hasEnded(); + } + + @Test + public void testSubscribeSpansSuccess() { + openTelemetryTesting.clearSpans(); + + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + PubsubMessageWrapper publishMessageWrapper = + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + // Initialize the Publisher span to inject the context in the message + tracer.startPublisherSpan(publishMessageWrapper); + tracer.endPublisherSpan(publishMessageWrapper); + + PubsubMessage publishedMessage = + publishMessageWrapper.getPubsubMessage().toBuilder().setMessageId(MESSAGE_ID).build(); + PubsubMessageWrapper subscribeMessageWrapper = + PubsubMessageWrapper.newBuilder( + publishedMessage, FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, 1) + .build(); + List subscribeMessageWrappers = Arrays.asList(subscribeMessageWrapper); + + long messageSize = subscribeMessageWrapper.getPubsubMessage().getData().size(); + + // Call all span start/end methods in the expected order + tracer.startSubscriberSpan(subscribeMessageWrapper, EXACTLY_ONCE_ENABLED); + tracer.startSubscribeConcurrencyControlSpan(subscribeMessageWrapper); + tracer.endSubscribeConcurrencyControlSpan(subscribeMessageWrapper); + tracer.startSubscribeSchedulerSpan(subscribeMessageWrapper); + tracer.endSubscribeSchedulerSpan(subscribeMessageWrapper); + tracer.startSubscribeProcessSpan(subscribeMessageWrapper); + tracer.endSubscribeProcessSpan(subscribeMessageWrapper, PROCESS_ACTION); + Span subscribeModackRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), + "modack", + subscribeMessageWrappers, + ACK_DEADLINE, + true); + tracer.endSubscribeRpcSpan(subscribeModackRpcSpan); + tracer.addEndRpcEvent(subscribeMessageWrapper, true, true, ACK_DEADLINE); + Span subscribeAckRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), "ack", subscribeMessageWrappers, 0, false); + tracer.endSubscribeRpcSpan(subscribeAckRpcSpan); + tracer.addEndRpcEvent(subscribeMessageWrapper, true, false, 0); + Span subscribeNackRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), "nack", subscribeMessageWrappers, 0, false); + tracer.endSubscribeRpcSpan(subscribeNackRpcSpan); + tracer.addEndRpcEvent(subscribeMessageWrapper, true, true, 0); + tracer.endSubscriberSpan(subscribeMessageWrapper); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(8, allSpans.size()); + + SpanData publisherSpanData = allSpans.get(0); + SpanData concurrencyControlSpanData = allSpans.get(1); + SpanData schedulerSpanData = allSpans.get(2); + SpanData processSpanData = allSpans.get(3); + SpanData modackRpcSpanData = allSpans.get(4); + SpanData ackRpcSpanData = allSpans.get(5); + SpanData nackRpcSpanData = allSpans.get(6); + SpanData subscriberSpanData = allSpans.get(7); + + SpanDataAssert concurrencyControlSpanDataAssert = + OpenTelemetryAssertions.assertThat(concurrencyControlSpanData); + concurrencyControlSpanDataAssert + .hasName(SUBSCRIBE_CONCURRENCY_CONTROL_SPAN_NAME) + .hasParent(subscriberSpanData) + .hasEnded(); + + SpanDataAssert schedulerSpanDataAssert = OpenTelemetryAssertions.assertThat(schedulerSpanData); + schedulerSpanDataAssert + .hasName(SUBSCRIBE_SCHEDULER_SPAN_NAME) + .hasParent(subscriberSpanData) + .hasEnded(); + + SpanDataAssert processSpanDataAssert = OpenTelemetryAssertions.assertThat(processSpanData); + processSpanDataAssert + .hasName(SUBSCRIBE_PROCESS_SPAN_NAME) + .hasParent(subscriberSpanData) + .hasEnded(); + + assertEquals(1, processSpanData.getEvents().size()); + EventDataAssert actionCalledEventAssert = + OpenTelemetryAssertions.assertThat(processSpanData.getEvents().get(0)); + actionCalledEventAssert.hasName(PROCESS_ACTION + " called"); + + // Check span data, links, and attributes for the modack RPC span + SpanDataAssert modackRpcSpanDataAssert = OpenTelemetryAssertions.assertThat(modackRpcSpanData); + modackRpcSpanDataAssert + .hasName(SUBSCRIBE_MODACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasEnded(); + + List modackRpcLinks = modackRpcSpanData.getLinks(); + assertEquals(subscribeMessageWrappers.size(), modackRpcLinks.size()); + assertEquals(subscriberSpanData.getSpanContext(), modackRpcLinks.get(0).getSpanContext()); + + assertEquals(8, modackRpcSpanData.getAttributes().size()); + AttributesAssert modackRpcSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(modackRpcSpanData.getAttributes()); + modackRpcSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry( + SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendModAckOperations") + .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "modack") + .containsEntry( + SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()) + .containsEntry(ACK_DEADLINE_ATTR_KEY, 10) + .containsEntry(RECEIPT_MODACK_ATTR_KEY, true); + + // Check span data, links, and attributes for the ack RPC span + SpanDataAssert ackRpcSpanDataAssert = OpenTelemetryAssertions.assertThat(ackRpcSpanData); + ackRpcSpanDataAssert + .hasName(SUBSCRIBE_ACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasEnded(); + + List ackRpcLinks = ackRpcSpanData.getLinks(); + assertEquals(subscribeMessageWrappers.size(), ackRpcLinks.size()); + assertEquals(subscriberSpanData.getSpanContext(), ackRpcLinks.get(0).getSpanContext()); + + assertEquals(6, ackRpcSpanData.getAttributes().size()); + AttributesAssert ackRpcSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(ackRpcSpanData.getAttributes()); + ackRpcSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry( + SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendAckOperations") + .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "ack") + .containsEntry( + SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()); + + // Check span data, links, and attributes for the nack RPC span + SpanDataAssert nackRpcSpanDataAssert = OpenTelemetryAssertions.assertThat(nackRpcSpanData); + nackRpcSpanDataAssert + .hasName(SUBSCRIBE_NACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasEnded(); + + List nackRpcLinks = nackRpcSpanData.getLinks(); + assertEquals(subscribeMessageWrappers.size(), nackRpcLinks.size()); + assertEquals(subscriberSpanData.getSpanContext(), nackRpcLinks.get(0).getSpanContext()); + + assertEquals(6, nackRpcSpanData.getAttributes().size()); + AttributesAssert nackRpcSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(nackRpcSpanData.getAttributes()); + nackRpcSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry( + SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendModAckOperations") + .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "nack") + .containsEntry( + SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()); + + // Check span data, events, links, and attributes for the publisher create span + SpanDataAssert subscriberSpanDataAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData); + subscriberSpanDataAssert + .hasName(SUBSCRIBER_SPAN_NAME) + .hasKind(SpanKind.CONSUMER) + .hasParent(publisherSpanData) + .hasEnded(); + + assertEquals(6, subscriberSpanData.getEvents().size()); + EventDataAssert startModackEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(0)); + startModackEventAssert.hasName(MODACK_START_EVENT); + EventDataAssert endModackEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(1)); + endModackEventAssert.hasName(MODACK_END_EVENT); + EventDataAssert startAckEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(2)); + startAckEventAssert.hasName(ACK_START_EVENT); + EventDataAssert endAckEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(3)); + endAckEventAssert.hasName(ACK_END_EVENT); + EventDataAssert startNackEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(4)); + startNackEventAssert.hasName(NACK_START_EVENT); + EventDataAssert endNackEventAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getEvents().get(5)); + endNackEventAssert.hasName(NACK_END_EVENT); + + List subscriberLinks = subscriberSpanData.getLinks(); + assertEquals(3, subscriberLinks.size()); + assertEquals(modackRpcSpanData.getSpanContext(), subscriberLinks.get(0).getSpanContext()); + assertEquals(ackRpcSpanData.getSpanContext(), subscriberLinks.get(1).getSpanContext()); + assertEquals(nackRpcSpanData.getSpanContext(), subscriberLinks.get(2).getSpanContext()); + + assertEquals(11, subscriberSpanData.getAttributes().size()); + AttributesAssert subscriberSpanAttributesAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData.getAttributes()); + subscriberSpanAttributesAssert + .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry( + SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + .containsEntry(PROJECT_ATTR_KEY, PROJECT_NAME) + .containsEntry(SemanticAttributes.CODE_FUNCTION, "onResponse") + .containsEntry(MESSAGE_SIZE_ATTR_KEY, messageSize) + .containsEntry(ORDERING_KEY_ATTR_KEY, ORDERING_KEY) + .containsEntry(MESSAGE_ACK_ID_ATTR_KEY, ACK_ID) + .containsEntry(MESSAGE_DELIVERY_ATTEMPT_ATTR_KEY, DELIVERY_ATTEMPT) + .containsEntry(MESSAGE_EXACTLY_ONCE_ATTR_KEY, EXACTLY_ONCE_ENABLED) + .containsEntry(MESSAGE_RESULT_ATTR_KEY, PROCESS_ACTION) + .containsEntry(SemanticAttributes.MESSAGING_MESSAGE_ID, MESSAGE_ID); + } + + @Test + public void testSubscribeConcurrencyControlSpanFailure() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder( + getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + .build(); + + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + tracer.startSubscriberSpan(messageWrapper, EXACTLY_ONCE_ENABLED); + tracer.startSubscribeConcurrencyControlSpan(messageWrapper); + + Exception e = new Exception("test-exception"); + tracer.setSubscribeConcurrencyControlSpanException(messageWrapper, e); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(2, allSpans.size()); + SpanData concurrencyControlSpanData = allSpans.get(0); + SpanData subscriberSpanData = allSpans.get(1); + + SpanDataAssert concurrencyControlSpanDataAssert = + OpenTelemetryAssertions.assertThat(concurrencyControlSpanData); + StatusData expectedStatus = + StatusData.create( + StatusCode.ERROR, "Exception thrown during subscribe concurrency control."); + concurrencyControlSpanDataAssert + .hasName(SUBSCRIBE_CONCURRENCY_CONTROL_SPAN_NAME) + .hasParent(subscriberSpanData) + .hasStatus(expectedStatus) + .hasException(e) + .hasEnded(); + + SpanDataAssert subscriberSpanDataAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData); + subscriberSpanDataAssert + .hasName(SUBSCRIBER_SPAN_NAME) + .hasKind(SpanKind.CONSUMER) + .hasNoParent() + .hasEnded(); + } + + @Test + public void testSubscriberSpanFailure() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder( + getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + .build(); + + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + tracer.startSubscriberSpan(messageWrapper, EXACTLY_ONCE_ENABLED); + + Exception e = new Exception("test-exception"); + tracer.setSubscriberSpanException(messageWrapper, e, "Test exception"); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(1, allSpans.size()); + SpanData subscriberSpanData = allSpans.get(0); + + StatusData expectedStatus = StatusData.create(StatusCode.ERROR, "Test exception"); + SpanDataAssert subscriberSpanDataAssert = + OpenTelemetryAssertions.assertThat(subscriberSpanData); + subscriberSpanDataAssert + .hasName(SUBSCRIBER_SPAN_NAME) + .hasKind(SpanKind.CONSUMER) + .hasNoParent() + .hasStatus(expectedStatus) + .hasException(e) + .hasEnded(); + } + + @Test + public void testSubscribeRpcSpanFailures() { + openTelemetryTesting.clearSpans(); + + PubsubMessageWrapper messageWrapper = + PubsubMessageWrapper.newBuilder( + getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + .build(); + List messageWrappers = Arrays.asList(messageWrapper); + + Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); + OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); + + tracer.startSubscriberSpan(messageWrapper, EXACTLY_ONCE_ENABLED); + Span subscribeModackRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), "modack", messageWrappers, ACK_DEADLINE, true); + Span subscribeAckRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), "ack", messageWrappers, 0, false); + Span subscribeNackRpcSpan = + tracer.startSubscribeRpcSpan( + FULL_SUBSCRIPTION_NAME.toString(), "nack", messageWrappers, 0, false); + + Exception e = new Exception("test-exception"); + tracer.setSubscribeRpcSpanException(subscribeModackRpcSpan, true, ACK_DEADLINE, e); + tracer.setSubscribeRpcSpanException(subscribeAckRpcSpan, false, 0, e); + tracer.setSubscribeRpcSpanException(subscribeNackRpcSpan, true, 0, e); + tracer.endSubscriberSpan(messageWrapper); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(4, allSpans.size()); + SpanData modackSpanData = allSpans.get(0); + SpanData ackSpanData = allSpans.get(1); + SpanData nackSpanData = allSpans.get(2); + SpanData subscriberSpanData = allSpans.get(3); + + StatusData expectedModackStatus = + StatusData.create(StatusCode.ERROR, "Exception thrown on modack RPC."); + SpanDataAssert modackSpanDataAssert = OpenTelemetryAssertions.assertThat(modackSpanData); + modackSpanDataAssert + .hasName(SUBSCRIBE_MODACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasStatus(expectedModackStatus) + .hasException(e) + .hasEnded(); + + StatusData expectedAckStatus = + StatusData.create(StatusCode.ERROR, "Exception thrown on ack RPC."); + SpanDataAssert ackSpanDataAssert = OpenTelemetryAssertions.assertThat(ackSpanData); + ackSpanDataAssert + .hasName(SUBSCRIBE_ACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasStatus(expectedAckStatus) + .hasException(e) + .hasEnded(); + + StatusData expectedNackStatus = + StatusData.create(StatusCode.ERROR, "Exception thrown on nack RPC."); + SpanDataAssert nackSpanDataAssert = OpenTelemetryAssertions.assertThat(nackSpanData); + nackSpanDataAssert + .hasName(SUBSCRIBE_NACK_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasStatus(expectedNackStatus) + .hasException(e) + .hasEnded(); + } + + private PubsubMessage getPubsubMessage() { + return PubsubMessage.newBuilder() + .setData(ByteString.copyFromUtf8("test-data")) + .setOrderingKey(ORDERING_KEY) + .build(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 9785b7716c29..fedd174362d7 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -48,6 +48,12 @@ import io.grpc.StatusException; import io.grpc.inprocess.InProcessChannelBuilder; import io.grpc.inprocess.InProcessServerBuilder; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.trace.SpanKind; +import io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions; +import io.opentelemetry.sdk.testing.assertj.SpanDataAssert; +import io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule; +import io.opentelemetry.sdk.trace.data.SpanData; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; @@ -74,6 +80,11 @@ public class PublisherImplTest { private static final TransportChannelProvider TEST_CHANNEL_PROVIDER = LocalChannelProvider.create("test-server"); + private static final String PUBLISHER_SPAN_NAME = TEST_TOPIC.getTopic() + " create"; + private static final String PUBLISH_FLOW_CONTROL_SPAN_NAME = "publisher flow control"; + private static final String PUBLISH_BATCHING_SPAN_NAME = "publisher batching"; + private static final String PUBLISH_RPC_SPAN_NAME = TEST_TOPIC.getTopic() + " publish"; + private FakeScheduledExecutorService fakeExecutor; private FakePublisherServiceImpl testPublisherServiceImpl; @@ -1304,6 +1315,70 @@ public void run() { publish4Completed.await(); } + @Test + public void testPublishOpenTelemetryTracing() throws Exception { + OpenTelemetryRule openTelemetryTesting = OpenTelemetryRule.create(); + OpenTelemetry openTelemetry = openTelemetryTesting.getOpenTelemetry(); + final Publisher publisher = + getTestPublisherBuilder() + .setBatchingSettings( + Publisher.Builder.DEFAULT_BATCHING_SETTINGS + .toBuilder() + .setElementCountThreshold(1L) + .setDelayThreshold(Duration.ofSeconds(5)) + .setFlowControlSettings( + FlowControlSettings.newBuilder() + .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) + .setMaxOutstandingElementCount(2L) + .setMaxOutstandingRequestBytes(100L) + .build()) + .build()) + .setOpenTelemetry(openTelemetry) + .setEnableOpenTelemetryTracing(true) + .build(); + + testPublisherServiceImpl.addPublishResponse(PublishResponse.newBuilder().addMessageIds("1")); + ApiFuture publishFuture = sendTestMessage(publisher, "A"); + fakeExecutor.advanceTime(Duration.ofSeconds(5)); + assertEquals("1", publishFuture.get()); + fakeExecutor.advanceTime(Duration.ofSeconds(5)); + + List allSpans = openTelemetryTesting.getSpans(); + assertEquals(4, allSpans.size()); + SpanData flowControlSpanData = allSpans.get(0); + SpanData batchingSpanData = allSpans.get(1); + SpanData publishRpcSpanData = allSpans.get(2); + SpanData publisherSpanData = allSpans.get(3); + + SpanDataAssert flowControlSpanDataAssert = + OpenTelemetryAssertions.assertThat(flowControlSpanData); + flowControlSpanDataAssert + .hasName(PUBLISH_FLOW_CONTROL_SPAN_NAME) + .hasParent(publisherSpanData) + .hasEnded(); + + SpanDataAssert batchingSpanDataAssert = OpenTelemetryAssertions.assertThat(batchingSpanData); + batchingSpanDataAssert + .hasName(PUBLISH_BATCHING_SPAN_NAME) + .hasParent(publisherSpanData) + .hasEnded(); + + SpanDataAssert publishRpcSpanDataAssert = + OpenTelemetryAssertions.assertThat(publishRpcSpanData); + publishRpcSpanDataAssert + .hasName(PUBLISH_RPC_SPAN_NAME) + .hasKind(SpanKind.CLIENT) + .hasNoParent() + .hasEnded(); + + SpanDataAssert publishSpanDataAssert = OpenTelemetryAssertions.assertThat(publisherSpanData); + publishSpanDataAssert + .hasName(PUBLISHER_SPAN_NAME) + .hasKind(SpanKind.PRODUCER) + .hasNoParent() + .hasEnded(); + } + private Builder getTestPublisherBuilder() { return Publisher.newBuilder(TEST_TOPIC) .setExecutorProvider(FixedExecutorProvider.create(fakeExecutor)) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 33ba5296647b..2c816aabf953 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -113,6 +113,12 @@ + + org.assertj + assertj-core + 3.26.0 + test + diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 604b622d3944..6196121dd134 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -93,6 +93,11 @@ google-cloud-storage 2.43.1 + + com.google.cloud.opentelemetry + exporter-trace + 0.31.0 + diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 12bf9d92c7e4..3e5f9e9d5a4a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -92,6 +92,11 @@ google-cloud-storage 2.43.1 + + com.google.cloud.opentelemetry + exporter-trace + 0.31.0 + diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 8720ef2156f9..ba6fb65d944f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -67,6 +67,11 @@ com.google.cloud google-cloud-storage + + com.google.cloud.opentelemetry + exporter-trace + 0.31.0 + org.apache.avro avro From 8511c19e9bc1ec5efef5ca3f193731f2ee834ed7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 1 Oct 2024 03:02:01 +0200 Subject: [PATCH 1943/2363] deps: update dependency org.assertj:assertj-core to v3.26.3 (#2204) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2c816aabf953..9a225a9814a9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.26.0 + 3.26.3 test From 9305ee51e0216010b689347f3bc29f9a2ad6a439 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 1 Oct 2024 03:02:15 +0200 Subject: [PATCH 1944/2363] deps: update dependency com.google.cloud.opentelemetry:exporter-trace to v0.32.0 (#2205) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6196121dd134..da0ac10b18db 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -96,7 +96,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.31.0 + 0.32.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3e5f9e9d5a4a..ab9ef7c4750f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -95,7 +95,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.31.0 + 0.32.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index ba6fb65d944f..ec07da956b12 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -70,7 +70,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.31.0 + 0.32.0 org.apache.avro From ac61486d6c500bb4d9969852f0f2eac4309fc1f2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:40:06 -0400 Subject: [PATCH 1945/2363] chore(main): release 1.132.5-SNAPSHOT (#2203) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index beff026aceb4..ae20af5935a6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.4 + 1.132.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.4 + 1.132.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 46fe71d26025..bce1d9e5afb3 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.4 + 1.132.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.4 + 1.132.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8d4b1bf2f942..40ac5c98cf41 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.4 + 1.132.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9a225a9814a9..fef252580648 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.4 + 1.132.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.132.4 + 1.132.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b8b27d3cd1a6..9620d51879fe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.4 + 1.114.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.4 + 1.132.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ab9ef7c4750f..3ee0f74d69de 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.4 + 1.132.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 56fa56c2c2f1..3ae78d30eecb 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.4:1.132.4 -grpc-google-cloud-pubsub-v1:1.114.4:1.114.4 -proto-google-cloud-pubsub-v1:1.114.4:1.114.4 +google-cloud-pubsub:1.132.4:1.132.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.114.4:1.114.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.114.4:1.114.5-SNAPSHOT From 1180af9d3ccd10ecc0d04bed58de36898ab59db4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 22:56:24 +0000 Subject: [PATCH 1946/2363] chore(main): release 1.133.0 (#2206) :robot: I have created a release *beep* *boop* --- ## [1.133.0](https://togithub.com/googleapis/java-pubsub/compare/v1.132.4...v1.133.0) (2024-10-01) ### Features * [java] allow passing libraries_bom_version from env ([#1967](https://togithub.com/googleapis/java-pubsub/issues/1967)) ([#2033](https://togithub.com/googleapis/java-pubsub/issues/2033)) ([393cc29](https://togithub.com/googleapis/java-pubsub/commit/393cc29aa301cf3ac96b20edd9c3ea69c0bc5e00)) * Add `libraries_bom_version` in metadata ([#1956](https://togithub.com/googleapis/java-pubsub/issues/1956)) ([#1990](https://togithub.com/googleapis/java-pubsub/issues/1990)) ([a8da14d](https://togithub.com/googleapis/java-pubsub/commit/a8da14d32c84cc17fcb64b296bf6b865864c9015)) * Add `use_table_schema` field to BigQueryConfig ([#1838](https://togithub.com/googleapis/java-pubsub/issues/1838)) ([26d3a52](https://togithub.com/googleapis/java-pubsub/commit/26d3a52613bc67622b2a78490ad1f5e94614e3b0)) * Add an API method for reordering firewall policies ([#1868](https://togithub.com/googleapis/java-pubsub/issues/1868)) ([ca6643f](https://togithub.com/googleapis/java-pubsub/commit/ca6643fb19b3d754481b90c61792c2c8a58d68eb)) * Add custom datetime format for Cloud Storage subscriptions ([#1970](https://togithub.com/googleapis/java-pubsub/issues/1970)) ([ceef290](https://togithub.com/googleapis/java-pubsub/commit/ceef290926dfc2579611882076ddfe6ff9715737)) * Add OpenTelemetry tracing to the Publisher and Subscriber ([#2086](https://togithub.com/googleapis/java-pubsub/issues/2086)) ([5ba3234](https://togithub.com/googleapis/java-pubsub/commit/5ba3234a4567b4089cc8c26c0eee49ba6f87a5a9)) * Add service_account_email for export subscriptions ([#2054](https://togithub.com/googleapis/java-pubsub/issues/2054)) ([025f7ad](https://togithub.com/googleapis/java-pubsub/commit/025f7add384c996801e00f8eb0a2e13efbebfd9b)) * Add universe domain support for Java ([#1904](https://togithub.com/googleapis/java-pubsub/issues/1904)) ([a31f145](https://togithub.com/googleapis/java-pubsub/commit/a31f145ae9e6ca3badca0e30e0f405627580e0a1)) * Add use_topic_schema for Cloud Storage Subscriptions ([#2082](https://togithub.com/googleapis/java-pubsub/issues/2082)) ([6ce2766](https://togithub.com/googleapis/java-pubsub/commit/6ce27666bc3e4c57bd0aa9d87141504c0da798a1)) * Enable hermetic library generation ([#2048](https://togithub.com/googleapis/java-pubsub/issues/2048)) ([70a3f9f](https://togithub.com/googleapis/java-pubsub/commit/70a3f9f1a432566113a385a016d2094447168dd8)) * Receipt modack ([#1540](https://togithub.com/googleapis/java-pubsub/issues/1540)) ([bcf385c](https://togithub.com/googleapis/java-pubsub/commit/bcf385ce14eef7add8d02168ef5cc634710d378b)) * Setup 1.123.x lts branch ([#1676](https://togithub.com/googleapis/java-pubsub/issues/1676)) ([8e91028](https://togithub.com/googleapis/java-pubsub/commit/8e910289b99b9bb8edf2dca6769a3593f2333d71)) ### Bug Fixes * Concurrent modification of processing receievd messages ([#1807](https://togithub.com/googleapis/java-pubsub/issues/1807)) ([0bba0f3](https://togithub.com/googleapis/java-pubsub/commit/0bba0f34bee2b0807504fcb6bb310f4c02a3a901)) * **deps:** Update the Java code generator (gapic-generator-java) to 2.31.0 ([#1855](https://togithub.com/googleapis/java-pubsub/issues/1855)) ([73e5029](https://togithub.com/googleapis/java-pubsub/commit/73e5029d0360e7257e2a36f5bd6f9fee9620057c)) * **deps:** Update the Java code generator (gapic-generator-java) to 2.32.0 ([#1875](https://togithub.com/googleapis/java-pubsub/issues/1875)) ([6dace93](https://togithub.com/googleapis/java-pubsub/commit/6dace930c83521bc154d168d900c12e87df0f762)) * **deps:** Update the Java code generator (gapic-generator-java) to 2.37.0 ([#1938](https://togithub.com/googleapis/java-pubsub/issues/1938)) ([48800fa](https://togithub.com/googleapis/java-pubsub/commit/48800fa81a4c34415d8df2e6cab191d1e2603f1d)) * **deps:** Update the Java code generator (gapic-generator-java) to 2.39.0 ([#2000](https://togithub.com/googleapis/java-pubsub/issues/2000)) ([766901c](https://togithub.com/googleapis/java-pubsub/commit/766901c346cf4cf11eb476dc6633401753bd3a76)) * Make retry policy back off more aggressively for RPCs that retry RESOURCE_EXHAUSTD ([#1704](https://togithub.com/googleapis/java-pubsub/issues/1704)) ([44a5be5](https://togithub.com/googleapis/java-pubsub/commit/44a5be53899820d82c59c3f87dbf8fabeb77616c)) * Message ordering fix for [#1889](https://togithub.com/googleapis/java-pubsub/issues/1889) ([#1903](https://togithub.com/googleapis/java-pubsub/issues/1903)) ([fcd31ea](https://togithub.com/googleapis/java-pubsub/commit/fcd31eaf8d965bbe4c62e426e556b03be5c83467)) * Swap writer and reader schema to correct places in sample ([#1849](https://togithub.com/googleapis/java-pubsub/issues/1849)) ([3d53252](https://togithub.com/googleapis/java-pubsub/commit/3d53252b696b763c0181ce2d44f86a55434d43e1)) * Temporarily remove publisher tests causing timeouts ([#1860](https://togithub.com/googleapis/java-pubsub/issues/1860)) ([7159ad0](https://togithub.com/googleapis/java-pubsub/commit/7159ad0cabd39a04a8de76c0d1983bd771683abe)) * Update Publish retry backoff settings ([#1686](https://togithub.com/googleapis/java-pubsub/issues/1686)) ([b29ca82](https://togithub.com/googleapis/java-pubsub/commit/b29ca828a73c895cec4031ade2c5a32254d03f60)) * Use message ordering enabled property that comes with streaming pull responses ([#1851](https://togithub.com/googleapis/java-pubsub/issues/1851)) ([04d45bc](https://togithub.com/googleapis/java-pubsub/commit/04d45bcbd8c4ead872c9bf6b4c63b41e231f943d)) ### Dependencies * Change scope of grpc-inprocess dependency from runtime to test ([#2038](https://togithub.com/googleapis/java-pubsub/issues/2038)) ([30382ef](https://togithub.com/googleapis/java-pubsub/commit/30382eff3fbf37caf3d849823b4ab00c803cb4a6)) * Update actions/checkout action to v4 - abandoned ([#1719](https://togithub.com/googleapis/java-pubsub/issues/1719)) ([141d823](https://togithub.com/googleapis/java-pubsub/commit/141d823f0c3a1b614e83a37e8b1dfaaf294e7c7e)) * Update actions/checkout action to v4 ([#1712](https://togithub.com/googleapis/java-pubsub/issues/1712)) ([616eeac](https://togithub.com/googleapis/java-pubsub/commit/616eeac69dfaf9c960ebc0f59d8f1b0e7ce3590d)) * Update actions/checkout action to v4 ([#1975](https://togithub.com/googleapis/java-pubsub/issues/1975)) ([6fc17f2](https://togithub.com/googleapis/java-pubsub/commit/6fc17f288e40d12110ce8daeddb48daf1389115d)) * Update actions/github-script action to v7 ([#1976](https://togithub.com/googleapis/java-pubsub/issues/1976)) ([e6b8d63](https://togithub.com/googleapis/java-pubsub/commit/e6b8d63a68f39e939aad12db762746aeb0f66c77)) * Update actions/setup-java action to v4 ([#1978](https://togithub.com/googleapis/java-pubsub/issues/1978)) ([d263f88](https://togithub.com/googleapis/java-pubsub/commit/d263f88e79d6c43cf8a0de85b8c74ba68b84a577)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.29.0 ([#1633](https://togithub.com/googleapis/java-pubsub/issues/1633)) ([e25be5a](https://togithub.com/googleapis/java-pubsub/commit/e25be5a6ccc286003f51a65c9e67fe89b32d4c0b)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.30.1 ([#1656](https://togithub.com/googleapis/java-pubsub/issues/1656)) ([15d7ffe](https://togithub.com/googleapis/java-pubsub/commit/15d7ffe46df78ec400839e601864bc955c5ea20e)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.31.0 ([#1671](https://togithub.com/googleapis/java-pubsub/issues/1671)) ([cd4c8b5](https://togithub.com/googleapis/java-pubsub/commit/cd4c8b51b3f1a328fedcd98cc562cbe04f275ab5)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.31.1 ([#1697](https://togithub.com/googleapis/java-pubsub/issues/1697)) ([68f20fd](https://togithub.com/googleapis/java-pubsub/commit/68f20fd014e316eeea91975fe45973b6b40bc187)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.31.2 ([#1713](https://togithub.com/googleapis/java-pubsub/issues/1713)) ([7ae8831](https://togithub.com/googleapis/java-pubsub/commit/7ae88314517ccc74285a09c901587cb4094be26c)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.32.0 ([#1725](https://togithub.com/googleapis/java-pubsub/issues/1725)) ([f035c18](https://togithub.com/googleapis/java-pubsub/commit/f035c18a87c0ac78d3d708b904e7faa02707ff83)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.33.0 ([#1750](https://togithub.com/googleapis/java-pubsub/issues/1750)) ([6cb1f0a](https://togithub.com/googleapis/java-pubsub/commit/6cb1f0a2149cee327ec25466117389be0f0828fe)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.33.1 ([#1756](https://togithub.com/googleapis/java-pubsub/issues/1756)) ([5f0ca06](https://togithub.com/googleapis/java-pubsub/commit/5f0ca06acc5e966ef9c0a55c72b6d6a68f46d1d6)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.33.2 ([#1770](https://togithub.com/googleapis/java-pubsub/issues/1770)) ([064492d](https://togithub.com/googleapis/java-pubsub/commit/064492ddac12e94403e9cbdfec2eca6529db27e4)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.34.0 ([#1795](https://togithub.com/googleapis/java-pubsub/issues/1795)) ([dbfbc4f](https://togithub.com/googleapis/java-pubsub/commit/dbfbc4fd1ca872409119476bfd1feff8af25bc4b)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.34.2 ([#1821](https://togithub.com/googleapis/java-pubsub/issues/1821)) ([8d53682](https://togithub.com/googleapis/java-pubsub/commit/8d536828aa31029c80662205bdb8cad7ca409be6)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.36.0 ([#1840](https://togithub.com/googleapis/java-pubsub/issues/1840)) ([384bd69](https://togithub.com/googleapis/java-pubsub/commit/384bd698e5e2788851035030aa546c355e3b1a49)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.37.0 ([#1878](https://togithub.com/googleapis/java-pubsub/issues/1878)) ([820be6f](https://togithub.com/googleapis/java-pubsub/commit/820be6f386d9b837880d2b26cecbacfd32b7b1a2)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.37.1 ([#1898](https://togithub.com/googleapis/java-pubsub/issues/1898)) ([5602698](https://togithub.com/googleapis/java-pubsub/commit/56026980404470c4ac109d3c67d1d73ec84b9008)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.37.2 ([#1918](https://togithub.com/googleapis/java-pubsub/issues/1918)) ([e89dfea](https://togithub.com/googleapis/java-pubsub/commit/e89dfea408f5f142bec6a74f4966952f8594af65)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.38.0 ([#1931](https://togithub.com/googleapis/java-pubsub/issues/1931)) ([5ef3e22](https://togithub.com/googleapis/java-pubsub/commit/5ef3e22531c75fc39a55f6d3d3e54094d265d7e0)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.38.1 ([#1944](https://togithub.com/googleapis/java-pubsub/issues/1944)) ([3beeb70](https://togithub.com/googleapis/java-pubsub/commit/3beeb70cef4c90c086d27bc988d7add092196e7f)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.38.2 ([#1965](https://togithub.com/googleapis/java-pubsub/issues/1965)) ([0e4cb48](https://togithub.com/googleapis/java-pubsub/commit/0e4cb489d7671293b6ff4b1d0c893cb0e92d6953)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.39.0 ([#2002](https://togithub.com/googleapis/java-pubsub/issues/2002)) ([ba56bf1](https://togithub.com/googleapis/java-pubsub/commit/ba56bf1b90bd560142adc7c842d021c8a92994c3)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.39.1 ([#2006](https://togithub.com/googleapis/java-pubsub/issues/2006)) ([dbdb804](https://togithub.com/googleapis/java-pubsub/commit/dbdb8042805c49efd622623cdd7b26020d355c8a)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.40.0 ([#2016](https://togithub.com/googleapis/java-pubsub/issues/2016)) ([e35b5d0](https://togithub.com/googleapis/java-pubsub/commit/e35b5d05f94aebf0972b481430258695e1c74332)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.40.1 ([#2021](https://togithub.com/googleapis/java-pubsub/issues/2021)) ([446845d](https://togithub.com/googleapis/java-pubsub/commit/446845d416a8d99c1ce3bb0516ff8988803973fa)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.40.2 ([#2046](https://togithub.com/googleapis/java-pubsub/issues/2046)) ([54d809c](https://togithub.com/googleapis/java-pubsub/commit/54d809ca76d3a4e60e75f53caad18c900032f06f)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.40.3 ([#2071](https://togithub.com/googleapis/java-pubsub/issues/2071)) ([dae3ce5](https://togithub.com/googleapis/java-pubsub/commit/dae3ce5ecb8137ae79e87514a5de64e9ca865cfa)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.41.0 ([#2093](https://togithub.com/googleapis/java-pubsub/issues/2093)) ([5696644](https://togithub.com/googleapis/java-pubsub/commit/56966440e34db707c23f5fae3b89495d35f22a20)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.0 ([#2124](https://togithub.com/googleapis/java-pubsub/issues/2124)) ([1ce8432](https://togithub.com/googleapis/java-pubsub/commit/1ce8432ba242bac2035206ed36e99499be81292d)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.1 ([#2152](https://togithub.com/googleapis/java-pubsub/issues/2152)) ([6f5ab57](https://togithub.com/googleapis/java-pubsub/commit/6f5ab5779fddb45d168c711fe9643912e02a214c)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.2 ([#2157](https://togithub.com/googleapis/java-pubsub/issues/2157)) ([f33becb](https://togithub.com/googleapis/java-pubsub/commit/f33becb56b24597698f092bdfaf959171d273877)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.42.3 ([#2173](https://togithub.com/googleapis/java-pubsub/issues/2173)) ([7621f47](https://togithub.com/googleapis/java-pubsub/commit/7621f47cfe3df81b7691c7798a6b8143fd6d522f)) * Update dependency com.google.cloud:google-cloud-core to v2.20.0 ([#1629](https://togithub.com/googleapis/java-pubsub/issues/1629)) ([1e45e4a](https://togithub.com/googleapis/java-pubsub/commit/1e45e4aba2a7e57eb9aac36ba5b614bd3b2a2ad1)) * Update dependency com.google.cloud:google-cloud-core to v2.21.0 ([#1650](https://togithub.com/googleapis/java-pubsub/issues/1650)) ([3c0ef15](https://togithub.com/googleapis/java-pubsub/commit/3c0ef155e6a94de554a4ac3162992493591db13a)) * Update dependency com.google.cloud:google-cloud-core to v2.21.1 ([#1662](https://togithub.com/googleapis/java-pubsub/issues/1662)) ([5d06218](https://togithub.com/googleapis/java-pubsub/commit/5d062187ed1fd463d122491a4b4747383c67faca)) * Update dependency com.google.cloud:google-cloud-core to v2.22.0 ([#1687](https://togithub.com/googleapis/java-pubsub/issues/1687)) ([b7d6cf2](https://togithub.com/googleapis/java-pubsub/commit/b7d6cf251603e4de56929c632f6ce6f4cfd516f1)) * Update dependency com.google.cloud:google-cloud-core to v2.23.0 ([#1717](https://togithub.com/googleapis/java-pubsub/issues/1717)) ([ace61cc](https://togithub.com/googleapis/java-pubsub/commit/ace61cc39c0cab8a2f67e9362d7659ecb73ed765)) * Update dependency com.google.cloud:google-cloud-core to v2.24.1 ([#1737](https://togithub.com/googleapis/java-pubsub/issues/1737)) ([f715d43](https://togithub.com/googleapis/java-pubsub/commit/f715d4370b6d0cf216c495c8f16a969da9331deb)) * Update dependency com.google.cloud:google-cloud-core to v2.25.0 ([#1764](https://togithub.com/googleapis/java-pubsub/issues/1764)) ([c754094](https://togithub.com/googleapis/java-pubsub/commit/c7540943da1c4bfda2bdfe3f6bffebc8ad217c70)) * Update dependency com.google.cloud:google-cloud-core to v2.26.0 ([#1780](https://togithub.com/googleapis/java-pubsub/issues/1780)) ([b8b91dc](https://togithub.com/googleapis/java-pubsub/commit/b8b91dc9d122c56a18e4d2bec448e639afbbbd80)) * Update dependency com.google.cloud:google-cloud-core to v2.27.0 ([#1810](https://togithub.com/googleapis/java-pubsub/issues/1810)) ([3c90c24](https://togithub.com/googleapis/java-pubsub/commit/3c90c24554c06ced61d0324cf7fe8254b1c2db87)) * Update dependency com.google.cloud:google-cloud-core to v2.28.0 ([#1830](https://togithub.com/googleapis/java-pubsub/issues/1830)) ([3b92f0a](https://togithub.com/googleapis/java-pubsub/commit/3b92f0ad197abf563323623f6a1d1c169370d5a2)) * Update dependency com.google.cloud:google-cloud-core to v2.30.0 ([#1853](https://togithub.com/googleapis/java-pubsub/issues/1853)) ([04e240f](https://togithub.com/googleapis/java-pubsub/commit/04e240fa07eacb9bec4fea395974f27ece1d66b3)) * Update dependency com.google.cloud:google-cloud-core to v2.31.0 ([#1872](https://togithub.com/googleapis/java-pubsub/issues/1872)) ([5b43841](https://togithub.com/googleapis/java-pubsub/commit/5b43841f6562031a83583ce3f1ca2fa59604e9da)) * Update dependency com.google.cloud:google-cloud-core to v2.32.0 ([#1885](https://togithub.com/googleapis/java-pubsub/issues/1885)) ([3adecdc](https://togithub.com/googleapis/java-pubsub/commit/3adecdc069388b46bb4c54e1fd91d4e0f342be2c)) * Update dependency com.google.cloud:google-cloud-core to v2.33.0 ([#1912](https://togithub.com/googleapis/java-pubsub/issues/1912)) ([b96c32d](https://togithub.com/googleapis/java-pubsub/commit/b96c32d2ea813eb911f58efe95fae00b42eedff7)) * Update dependency com.google.cloud:google-cloud-core to v2.35.0 ([#1936](https://togithub.com/googleapis/java-pubsub/issues/1936)) ([f5a1df8](https://togithub.com/googleapis/java-pubsub/commit/f5a1df89b574ef8a0841ef42bb186dbd1f5abf33)) * Update dependency com.google.cloud:google-cloud-core to v2.36.0 ([#1955](https://togithub.com/googleapis/java-pubsub/issues/1955)) ([9b83651](https://togithub.com/googleapis/java-pubsub/commit/9b83651e6ce8a75af764e6c59f6db502f614aab1)) * Update dependency com.google.cloud:google-cloud-core to v2.36.1 ([#1962](https://togithub.com/googleapis/java-pubsub/issues/1962)) ([eb9a7d6](https://togithub.com/googleapis/java-pubsub/commit/eb9a7d69f45ebe634ed09883b6dc6a8266a249cb)) * Update dependency com.google.cloud:google-cloud-core to v2.37.0 ([#1997](https://togithub.com/googleapis/java-pubsub/issues/1997)) ([c0ab5eb](https://togithub.com/googleapis/java-pubsub/commit/c0ab5eb0f70a2494030d974ff23deb1dad7f9898)) * Update dependency com.google.cloud:google-cloud-core to v2.38.0 ([#2011](https://togithub.com/googleapis/java-pubsub/issues/2011)) ([ed2b28f](https://togithub.com/googleapis/java-pubsub/commit/ed2b28f989ce04d8d47bb1ddcd69dc80d7953d67)) * Update dependency com.google.cloud:google-cloud-core to v2.38.1 ([#2027](https://togithub.com/googleapis/java-pubsub/issues/2027)) ([f7127b5](https://togithub.com/googleapis/java-pubsub/commit/f7127b57320dff05c096f4ca0bc4ecb0516b6eff)) * Update dependency com.google.cloud:google-cloud-core to v2.39.0 ([#2057](https://togithub.com/googleapis/java-pubsub/issues/2057)) ([42c6629](https://togithub.com/googleapis/java-pubsub/commit/42c6629fa6588bc6ec58714d94e9ba5d9220bcb9)) * Update dependency com.google.cloud:google-cloud-core to v2.40.0 ([#2087](https://togithub.com/googleapis/java-pubsub/issues/2087)) ([e81e2d8](https://togithub.com/googleapis/java-pubsub/commit/e81e2d8575ee277f1aa34c1e2ba8dc7d2caaf811)) * Update dependency com.google.cloud:google-cloud-core to v2.41.0 ([#2120](https://togithub.com/googleapis/java-pubsub/issues/2120)) ([d805a23](https://togithub.com/googleapis/java-pubsub/commit/d805a23c1d9775ca55ea65b590adaee2e2eb1f89)) * Update dependency com.google.cloud:google-cloud-core to v2.42.0 ([#2140](https://togithub.com/googleapis/java-pubsub/issues/2140)) ([5754bb4](https://togithub.com/googleapis/java-pubsub/commit/5754bb4454bbcb9c362d70d7a6acc3849cf0097c)) * Update dependency com.google.cloud:google-cloud-core to v2.43.0 ([#2161](https://togithub.com/googleapis/java-pubsub/issues/2161)) ([c6cbcb4](https://togithub.com/googleapis/java-pubsub/commit/c6cbcb45459ab43015a1fa9df6614667aee12a2d)) * Update dependency com.google.cloud:google-cloud-core to v2.44.0 ([#2184](https://togithub.com/googleapis/java-pubsub/issues/2184)) ([ae28abd](https://togithub.com/googleapis/java-pubsub/commit/ae28abde1c44a65521b70116f95cae51a501a432)) * Update dependency com.google.cloud:google-cloud-core to v2.44.1 ([#2190](https://togithub.com/googleapis/java-pubsub/issues/2190)) ([fe24c4e](https://togithub.com/googleapis/java-pubsub/commit/fe24c4e02d2e297a0c34a5ecb26e234360163f05)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.12.0 ([#1630](https://togithub.com/googleapis/java-pubsub/issues/1630)) ([64d158c](https://togithub.com/googleapis/java-pubsub/commit/64d158c1e0ccc3caeedac5a49dfd1b3d216c322f)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.0 ([#1651](https://togithub.com/googleapis/java-pubsub/issues/1651)) ([e2146c4](https://togithub.com/googleapis/java-pubsub/commit/e2146c47f650a643150824ee5f13a8cd765577c2)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.1 ([#1663](https://togithub.com/googleapis/java-pubsub/issues/1663)) ([f677004](https://togithub.com/googleapis/java-pubsub/commit/f67700468e3975665f8544c90663714f73dd3471)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.14.0 ([#1688](https://togithub.com/googleapis/java-pubsub/issues/1688)) ([990aeb5](https://togithub.com/googleapis/java-pubsub/commit/990aeb530608ab2341f3a567169db647d02c46c8)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.15.0 ([#1718](https://togithub.com/googleapis/java-pubsub/issues/1718)) ([1bc53c8](https://togithub.com/googleapis/java-pubsub/commit/1bc53c8d6a783d0a37bc693b3d40ad9fab414c38)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.16.1 ([#1738](https://togithub.com/googleapis/java-pubsub/issues/1738)) ([595e9a9](https://togithub.com/googleapis/java-pubsub/commit/595e9a92ad15ed9b57c2cb592bb41cacc95a862f)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#1765](https://togithub.com/googleapis/java-pubsub/issues/1765)) ([5736205](https://togithub.com/googleapis/java-pubsub/commit/57362054a8f13668bc0054f75f99b8a633229547)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 ([#1781](https://togithub.com/googleapis/java-pubsub/issues/1781)) ([d532b63](https://togithub.com/googleapis/java-pubsub/commit/d532b6358d80f75711ddf821ab110374568f9396)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.19.0 ([#1811](https://togithub.com/googleapis/java-pubsub/issues/1811)) ([d582478](https://togithub.com/googleapis/java-pubsub/commit/d58247800fa0de661a69d7d1c836a5fb2d98ec1c)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.20.0 ([#1831](https://togithub.com/googleapis/java-pubsub/issues/1831)) ([38d81bf](https://togithub.com/googleapis/java-pubsub/commit/38d81bf11dbf7a8bb8389dbe2e2e496431acc3f4)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.21.0 ([#1854](https://togithub.com/googleapis/java-pubsub/issues/1854)) ([a380ece](https://togithub.com/googleapis/java-pubsub/commit/a380ece6398204b0d6adaf3075decc3cc48a613b)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.22.0 ([#1865](https://togithub.com/googleapis/java-pubsub/issues/1865)) ([c373705](https://togithub.com/googleapis/java-pubsub/commit/c37370552cb1634cddc438cfe3b2f02e5c634795)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.23.0 ([#1873](https://togithub.com/googleapis/java-pubsub/issues/1873)) ([2cc03f4](https://togithub.com/googleapis/java-pubsub/commit/2cc03f4425318eee36c6ba95c0fb7a47b1713a8b)) * Update dependency com.google.cloud:google-cloud-storage to v2.29.0 ([#1800](https://togithub.com/googleapis/java-pubsub/issues/1800)) ([e98e29e](https://togithub.com/googleapis/java-pubsub/commit/e98e29eb4ccb636cfdbfa28c17c915dbc40b1ca8)) * Update dependency com.google.cloud:google-cloud-storage to v2.29.1 ([#1817](https://togithub.com/googleapis/java-pubsub/issues/1817)) ([ba9e44d](https://togithub.com/googleapis/java-pubsub/commit/ba9e44d1b1c6c48ef108670333c991c70a1f676e)) * Update dependency com.google.cloud:google-cloud-storage to v2.30.1 ([#1841](https://togithub.com/googleapis/java-pubsub/issues/1841)) ([cf1675f](https://togithub.com/googleapis/java-pubsub/commit/cf1675ffc25f562b8ea64af5c639a614e7a7c85e)) * Update dependency com.google.cloud:google-cloud-storage to v2.32.0 ([#1857](https://togithub.com/googleapis/java-pubsub/issues/1857)) ([81cd1f1](https://togithub.com/googleapis/java-pubsub/commit/81cd1f1dca0c826594e55b6e533c0bf52a026dc8)) * Update dependency com.google.cloud:google-cloud-storage to v2.32.1 ([#1874](https://togithub.com/googleapis/java-pubsub/issues/1874)) ([3a99a5b](https://togithub.com/googleapis/java-pubsub/commit/3a99a5b61e4d6f384d35f460b7fbb47417cf8c9b)) * Update dependency com.google.cloud:google-cloud-storage to v2.33.0 ([#1900](https://togithub.com/googleapis/java-pubsub/issues/1900)) ([4c7fa7d](https://togithub.com/googleapis/java-pubsub/commit/4c7fa7d74637a1a3b608ecf230eb79dd0626c2be)) * Update dependency com.google.cloud:google-cloud-storage to v2.34.0 ([#1917](https://togithub.com/googleapis/java-pubsub/issues/1917)) ([1ebb78b](https://togithub.com/googleapis/java-pubsub/commit/1ebb78b42b8174ee26cbbda6b3db1b8a43514144)) * Update dependency com.google.cloud:google-cloud-storage to v2.35.0 ([#1942](https://togithub.com/googleapis/java-pubsub/issues/1942)) ([6368842](https://togithub.com/googleapis/java-pubsub/commit/6368842b5a224c1344fb0d9c9fd465e27d1d78fa)) * Update dependency com.google.cloud:google-cloud-storage to v2.35.0 ([#1946](https://togithub.com/googleapis/java-pubsub/issues/1946)) ([b6ea524](https://togithub.com/googleapis/java-pubsub/commit/b6ea5242532960d454b1a01e4bfdba0b49d86e79)) * Update dependency com.google.cloud:google-cloud-storage to v2.36.0 ([#1957](https://togithub.com/googleapis/java-pubsub/issues/1957)) ([57fee25](https://togithub.com/googleapis/java-pubsub/commit/57fee258b4b7f388d86415a019e143ee543c8f66)) * Update dependency com.google.cloud:google-cloud-storage to v2.36.1 ([#1968](https://togithub.com/googleapis/java-pubsub/issues/1968)) ([a85113d](https://togithub.com/googleapis/java-pubsub/commit/a85113db5998e140e658327df3e8a6986d5655e5)) * Update dependency com.google.cloud:google-cloud-storage to v2.37.0 ([#1999](https://togithub.com/googleapis/java-pubsub/issues/1999)) ([4c6f5f0](https://togithub.com/googleapis/java-pubsub/commit/4c6f5f02f29e56fab9d5981e18fbdc242682d4cb)) * Update dependency com.google.cloud:google-cloud-storage to v2.38.0 ([#2019](https://togithub.com/googleapis/java-pubsub/issues/2019)) ([799893b](https://togithub.com/googleapis/java-pubsub/commit/799893bc31b95cc8202b079676ec325a6b47b9cc)) * Update dependency com.google.cloud:google-cloud-storage to v2.39.0 ([#2040](https://togithub.com/googleapis/java-pubsub/issues/2040)) ([f07839f](https://togithub.com/googleapis/java-pubsub/commit/f07839f08bcf2af76609a2da9e039d1a9ca73d56)) * Update dependency com.google.cloud:google-cloud-storage to v2.40.0 ([#2066](https://togithub.com/googleapis/java-pubsub/issues/2066)) ([699bbc9](https://togithub.com/googleapis/java-pubsub/commit/699bbc946ed20a24bfef5ba36803ca1f11c23fd3)) * Update dependency com.google.cloud:google-cloud-storage to v2.40.1 ([#2095](https://togithub.com/googleapis/java-pubsub/issues/2095)) ([3e810d8](https://togithub.com/googleapis/java-pubsub/commit/3e810d8db5834972b42e95185b617b4e1dab9556)) * Update dependency com.google.cloud:google-cloud-storage to v2.41.0 ([#2129](https://togithub.com/googleapis/java-pubsub/issues/2129)) ([fcd5bf5](https://togithub.com/googleapis/java-pubsub/commit/fcd5bf5e3e02cc461c9f3c777bf8256415498fa1)) * Update dependency com.google.cloud:google-cloud-storage to v2.42.0 ([#2145](https://togithub.com/googleapis/java-pubsub/issues/2145)) ([66822b2](https://togithub.com/googleapis/java-pubsub/commit/66822b2fd43820fdf34dc446e91cc32bdd91da12)) * Update dependency com.google.cloud:google-cloud-storage to v2.43.0 ([#2174](https://togithub.com/googleapis/java-pubsub/issues/2174)) ([e45d821](https://togithub.com/googleapis/java-pubsub/commit/e45d82137944bd06e3602e911007e8d43417efe3)) * Update dependency com.google.cloud:google-cloud-storage to v2.43.1 ([#2194](https://togithub.com/googleapis/java-pubsub/issues/2194)) ([ab742a2](https://togithub.com/googleapis/java-pubsub/commit/ab742a2fb00e8acfbe7daf7167130dd4b52285a2)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.25.0 ([#1913](https://togithub.com/googleapis/java-pubsub/issues/1913)) ([7ecece7](https://togithub.com/googleapis/java-pubsub/commit/7ecece72a60a7db95b3c424ce4780bd2ce76e1d9)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.27.0 ([#1937](https://togithub.com/googleapis/java-pubsub/issues/1937)) ([7efe4ad](https://togithub.com/googleapis/java-pubsub/commit/7efe4ad40ebda37dc2ee954cc88f5d20411dd5f0)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.28.0 ([#1956](https://togithub.com/googleapis/java-pubsub/issues/1956)) ([80d6043](https://togithub.com/googleapis/java-pubsub/commit/80d6043b6135ee5dc993491bf145a23db4dd62cc)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.28.1 ([#1960](https://togithub.com/googleapis/java-pubsub/issues/1960)) ([dbd4422](https://togithub.com/googleapis/java-pubsub/commit/dbd4422198e1f644eed04ca2eb6e7681eaad89d1)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.29.0 ([#1998](https://togithub.com/googleapis/java-pubsub/issues/1998)) ([b20429d](https://togithub.com/googleapis/java-pubsub/commit/b20429db337cb44b56e4291c6343278bf89701eb)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.30.0 ([#2012](https://togithub.com/googleapis/java-pubsub/issues/2012)) ([b9acea1](https://togithub.com/googleapis/java-pubsub/commit/b9acea11f1213357e4322e444cfff32172891e1e)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.30.1 ([#2028](https://togithub.com/googleapis/java-pubsub/issues/2028)) ([e0a2cc3](https://togithub.com/googleapis/java-pubsub/commit/e0a2cc344dcd1440be3eaff4c4ceb09076c1b145)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.31.0 ([#2058](https://togithub.com/googleapis/java-pubsub/issues/2058)) ([2c5da97](https://togithub.com/googleapis/java-pubsub/commit/2c5da97ce48abfb552b1b410bacfa3d3e40cf677)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.32.0 ([#2088](https://togithub.com/googleapis/java-pubsub/issues/2088)) ([6c30977](https://togithub.com/googleapis/java-pubsub/commit/6c30977989b8f6596ebabd4bcf9f4163daa4d130)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.33.0 ([#2121](https://togithub.com/googleapis/java-pubsub/issues/2121)) ([ef73783](https://togithub.com/googleapis/java-pubsub/commit/ef7378329e0581189bf6438bc4d2d2d9768e4f52)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.34.0 ([#2141](https://togithub.com/googleapis/java-pubsub/issues/2141)) ([ca3a4db](https://togithub.com/googleapis/java-pubsub/commit/ca3a4db5b59bb1a28452dbe4fd479ff8a742e22e)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.35.0 ([#2162](https://togithub.com/googleapis/java-pubsub/issues/2162)) ([30caf8b](https://togithub.com/googleapis/java-pubsub/commit/30caf8bf8906f8ecbfe366c4674feb4d9a34fe8d)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.36.0 ([#2185](https://togithub.com/googleapis/java-pubsub/issues/2185)) ([414e62b](https://togithub.com/googleapis/java-pubsub/commit/414e62b108a9ec7f642e1e4c7a708bd0ba124459)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.36.1 ([#2191](https://togithub.com/googleapis/java-pubsub/issues/2191)) ([e024fa4](https://togithub.com/googleapis/java-pubsub/commit/e024fa45663790ce7c29c9c3f7a3fff412aa5d73)) * Update dependency com.google.cloud.opentelemetry:exporter-trace to v0.32.0 ([#2205](https://togithub.com/googleapis/java-pubsub/issues/2205)) ([9305ee5](https://togithub.com/googleapis/java-pubsub/commit/9305ee51e0216010b689347f3bc29f9a2ad6a439)) * Update dependency com.google.protobuf:protobuf-java-util to v3.23.3 ([#1634](https://togithub.com/googleapis/java-pubsub/issues/1634)) ([c1d1c4d](https://togithub.com/googleapis/java-pubsub/commit/c1d1c4d8c46f0040f3de7028503389809a6a2cbb)) * Update dependency com.google.protobuf:protobuf-java-util to v3.23.4 ([#1649](https://togithub.com/googleapis/java-pubsub/issues/1649)) ([009e5b2](https://togithub.com/googleapis/java-pubsub/commit/009e5b23b9a6a97e899b36cd2a33c06f652fad43)) * Update dependency com.google.protobuf:protobuf-java-util to v3.24.3 ([#1698](https://togithub.com/googleapis/java-pubsub/issues/1698)) ([c960434](https://togithub.com/googleapis/java-pubsub/commit/c9604345a625b59264e3731b761b1c0bdfce514b)) * Update dependency com.google.protobuf:protobuf-java-util to v3.24.4 ([#1760](https://togithub.com/googleapis/java-pubsub/issues/1760)) ([5ac83d6](https://togithub.com/googleapis/java-pubsub/commit/5ac83d6ca19ba8c3cebce86ede4d302f21c8f3d6)) * Update dependency com.google.protobuf:protobuf-java-util to v3.25.1 ([#1816](https://togithub.com/googleapis/java-pubsub/issues/1816)) ([092df3a](https://togithub.com/googleapis/java-pubsub/commit/092df3a35194b569f40260a1b73b63d46240ad9b)) * Update dependency com.google.protobuf:protobuf-java-util to v3.25.2 ([#1858](https://togithub.com/googleapis/java-pubsub/issues/1858)) ([587ee7e](https://togithub.com/googleapis/java-pubsub/commit/587ee7e2ed6de36d1d7078b6d7fd9556681a2bb0)) * Update dependency com.google.protobuf:protobuf-java-util to v3.25.3 ([#1919](https://togithub.com/googleapis/java-pubsub/issues/1919)) ([a4f5737](https://togithub.com/googleapis/java-pubsub/commit/a4f5737531eb18347a39fec5b33137e5af687f7d)) * Update dependency com.google.protobuf:protobuf-java-util to v4 ([#1951](https://togithub.com/googleapis/java-pubsub/issues/1951)) ([03b3fb6](https://togithub.com/googleapis/java-pubsub/commit/03b3fb6033a51145fe72fcc7ddf162892e4e1655)) * Update dependency com.google.protobuf:protobuf-java-util to v4.26.1 ([#1972](https://togithub.com/googleapis/java-pubsub/issues/1972)) ([a52208d](https://togithub.com/googleapis/java-pubsub/commit/a52208d52640ff59641658ce801ffe87f21d271d)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.0 ([#2044](https://togithub.com/googleapis/java-pubsub/issues/2044)) ([1623962](https://togithub.com/googleapis/java-pubsub/commit/1623962cc5e37e5c661291635b97ff7ae6ba1c30)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.1 ([#2065](https://togithub.com/googleapis/java-pubsub/issues/2065)) ([6239d88](https://togithub.com/googleapis/java-pubsub/commit/6239d8877b31ab9bb91e35f79a231ee27b47ff1f)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.2 ([#2091](https://togithub.com/googleapis/java-pubsub/issues/2091)) ([9bce765](https://togithub.com/googleapis/java-pubsub/commit/9bce765d01e6daacd0bbd7bb0102129f6b1ac004)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.3 ([#2127](https://togithub.com/googleapis/java-pubsub/issues/2127)) ([516c3bc](https://togithub.com/googleapis/java-pubsub/commit/516c3bcc1253ad325a3260f9feebf2ddf52a3f90)) * Update dependency com.google.protobuf:protobuf-java-util to v4.27.4 ([#2153](https://togithub.com/googleapis/java-pubsub/issues/2153)) ([2052c0a](https://togithub.com/googleapis/java-pubsub/commit/2052c0aeea89d24f5c3f79534b2c9831dba9c1f2)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.0 ([#2155](https://togithub.com/googleapis/java-pubsub/issues/2155)) ([8b68f20](https://togithub.com/googleapis/java-pubsub/commit/8b68f207dc5a265963d4b3386d758234878d50d2)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.1 ([#2167](https://togithub.com/googleapis/java-pubsub/issues/2167)) ([d6dfc9f](https://togithub.com/googleapis/java-pubsub/commit/d6dfc9fafb3ba19ed957713cb740f006d66fd4ae)) * Update dependency com.google.protobuf:protobuf-java-util to v4.28.2 ([#2179](https://togithub.com/googleapis/java-pubsub/issues/2179)) ([5514148](https://togithub.com/googleapis/java-pubsub/commit/551414818c61b6fc9800f29807b72b76f0f03331)) * Update dependency org.apache.avro:avro to v1.11.2 ([#1646](https://togithub.com/googleapis/java-pubsub/issues/1646)) ([bcacb5c](https://togithub.com/googleapis/java-pubsub/commit/bcacb5c64b13bd6f03543b54e89d2cd17654acaf)) * Update dependency org.apache.avro:avro to v1.11.3 ([#1740](https://togithub.com/googleapis/java-pubsub/issues/1740)) ([3cf5bca](https://togithub.com/googleapis/java-pubsub/commit/3cf5bcac8467b8a481bfbd08e343090ca7d12951)) * Update dependency org.assertj:assertj-core to v3.26.3 ([#2204](https://togithub.com/googleapis/java-pubsub/issues/2204)) ([8511c19](https://togithub.com/googleapis/java-pubsub/commit/8511c19e9bc1ec5efef5ca3f193731f2ee834ed7)) * Update dependency org.easymock:easymock to v5.2.0 ([#1711](https://togithub.com/googleapis/java-pubsub/issues/1711)) ([ffdca81](https://togithub.com/googleapis/java-pubsub/commit/ffdca812118d527be77ae214094c031c4bab984c)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.10.0 ([#1887](https://togithub.com/googleapis/java-pubsub/issues/1887)) ([4902fc5](https://togithub.com/googleapis/java-pubsub/commit/4902fc50edb2dfb7490ecba69fc84f003ec56de3)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.24 ([#1695](https://togithub.com/googleapis/java-pubsub/issues/1695)) ([e64b133](https://togithub.com/googleapis/java-pubsub/commit/e64b1330757220182a30f735f0ca4c92561312e4)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.25 ([#1709](https://togithub.com/googleapis/java-pubsub/issues/1709)) ([2bab56c](https://togithub.com/googleapis/java-pubsub/commit/2bab56ca02916c58a6f3a8b03a65ea181fa99839)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.26 ([#1715](https://togithub.com/googleapis/java-pubsub/issues/1715)) ([f1df0e3](https://togithub.com/googleapis/java-pubsub/commit/f1df0e343c56e8540181541f32fa1878a1b53460)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.27 ([#1730](https://togithub.com/googleapis/java-pubsub/issues/1730)) ([565f262](https://togithub.com/googleapis/java-pubsub/commit/565f262132c031d5d36169584e6d96f6801317cf)) * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.28 ([#1782](https://togithub.com/googleapis/java-pubsub/issues/1782)) ([9c6e645](https://togithub.com/googleapis/java-pubsub/commit/9c6e6458d3e336688ab6ecc9f3d4d3c97f9da496)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.0 ([#1888](https://togithub.com/googleapis/java-pubsub/issues/1888)) ([bd158b4](https://togithub.com/googleapis/java-pubsub/commit/bd158b44fa69b62c2262dea603528f156051897f)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.1 ([#1923](https://togithub.com/googleapis/java-pubsub/issues/1923)) ([21b4b07](https://togithub.com/googleapis/java-pubsub/commit/21b4b079161720e673e82e6040c4748921af32f4)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 ([#2035](https://togithub.com/googleapis/java-pubsub/issues/2035)) ([7a91acb](https://togithub.com/googleapis/java-pubsub/commit/7a91acb5f9c99922f5ad2fd43800c0f82adc2d27)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.23 ([#1624](https://togithub.com/googleapis/java-pubsub/issues/1624)) ([badf65c](https://togithub.com/googleapis/java-pubsub/commit/badf65c33f2b18581a1e1607e656e9d6c01d2e53)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.24 ([#1696](https://togithub.com/googleapis/java-pubsub/issues/1696)) ([6447202](https://togithub.com/googleapis/java-pubsub/commit/64472023d9683344ed9c2789f46df000f927ee81)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.25 ([#1710](https://togithub.com/googleapis/java-pubsub/issues/1710)) ([e79f846](https://togithub.com/googleapis/java-pubsub/commit/e79f846975a0e9e2046a9af3a1f113e1e2c5004f)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.26 ([#1716](https://togithub.com/googleapis/java-pubsub/issues/1716)) ([9c1c8e4](https://togithub.com/googleapis/java-pubsub/commit/9c1c8e4357bbb8b5c43827b1d4207f86c1de2ded)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.27 ([#1731](https://togithub.com/googleapis/java-pubsub/issues/1731)) ([a4adf5a](https://togithub.com/googleapis/java-pubsub/commit/a4adf5af09510e61b6709ddb986fc14cdc099d0b)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.28 ([#1783](https://togithub.com/googleapis/java-pubsub/issues/1783)) ([fc1c910](https://togithub.com/googleapis/java-pubsub/commit/fc1c9109a2b0daa6f981aaabbab40d7bbb9834ae)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.0 ([#1666](https://togithub.com/googleapis/java-pubsub/issues/1666)) ([47f8a34](https://togithub.com/googleapis/java-pubsub/commit/47f8a3465a81228aebe02486c5edffa3f89ac59f)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.1 ([#1819](https://togithub.com/googleapis/java-pubsub/issues/1819)) ([00dbcf7](https://togithub.com/googleapis/java-pubsub/commit/00dbcf7b42361f4ec3968b493deb4f569804ee93)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#1891](https://togithub.com/googleapis/java-pubsub/issues/1891)) ([9eba07a](https://togithub.com/googleapis/java-pubsub/commit/9eba07a988a12362bea63303644981d0125c4eed)) * Update dependency org.junit.vintage:junit-vintage-engine to v5.10.3 ([#2096](https://togithub.com/googleapis/java-pubsub/issues/2096)) ([b1d352c](https://togithub.com/googleapis/java-pubsub/commit/b1d352c6c1fb950b9aab932fb7d7015e1255b45e)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.1 - abandoned ([#1616](https://togithub.com/googleapis/java-pubsub/issues/1616)) ([0901a4d](https://togithub.com/googleapis/java-pubsub/commit/0901a4d27c9ac4aac38f7e2ccf3d69b325b48afe)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.2 ([#1654](https://togithub.com/googleapis/java-pubsub/issues/1654)) ([bdeee55](https://togithub.com/googleapis/java-pubsub/commit/bdeee55c2de5d81c8a7dcdb28f05db15d7b0e5f7)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.3 ([#1665](https://togithub.com/googleapis/java-pubsub/issues/1665)) ([c557254](https://togithub.com/googleapis/java-pubsub/commit/c55725449952461d975ef36e3bf0dd7f51bab64f)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.4 [security] ([#1742](https://togithub.com/googleapis/java-pubsub/issues/1742)) ([caeaa6c](https://togithub.com/googleapis/java-pubsub/commit/caeaa6c1f8f354b93a65af518289a326856b388c)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.5 ([#1746](https://togithub.com/googleapis/java-pubsub/issues/1746)) ([e49ec3b](https://togithub.com/googleapis/java-pubsub/commit/e49ec3b7a7c442df168f03f5cc7b4427378ea295)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.6 ([#2135](https://togithub.com/googleapis/java-pubsub/issues/2135)) ([fb5a100](https://togithub.com/googleapis/java-pubsub/commit/fb5a10057e4884ec48ce7761cead176d4c1e581e)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.7 ([#2165](https://togithub.com/googleapis/java-pubsub/issues/2165)) ([5cf4e44](https://togithub.com/googleapis/java-pubsub/commit/5cf4e449cd65769b568155746cd21ac035780862)) * Update dependency ubuntu to v24 ([#2193](https://togithub.com/googleapis/java-pubsub/issues/2193)) ([477a534](https://togithub.com/googleapis/java-pubsub/commit/477a5342b981fcc04fb40b71be5c1ab238703660)) * Update gapic-generator-java to 2.26.0 ([0b7697a](https://togithub.com/googleapis/java-pubsub/commit/0b7697a690dc2344ccfadc4100375156a18d4dad)) ### Documentation * Add Kinesis ingestion samples ([#1947](https://togithub.com/googleapis/java-pubsub/issues/1947)) ([46dd3bd](https://togithub.com/googleapis/java-pubsub/commit/46dd3bdfcda5587680e7e8b8bd313c2645d489bb)) * Adding a GCS subscription example ([#1762](https://togithub.com/googleapis/java-pubsub/issues/1762)) ([67fa9f4](https://togithub.com/googleapis/java-pubsub/commit/67fa9f48bac347425e7721c85d3c365d1c8770ad)) * Clarified where ordering_key will be written if write_metadata is set ([#1675](https://togithub.com/googleapis/java-pubsub/issues/1675)) ([bda6ed5](https://togithub.com/googleapis/java-pubsub/commit/bda6ed53f1c5db02aa472d6c8aaf6a0081ccad66)) * Modified some descriptions ([#1773](https://togithub.com/googleapis/java-pubsub/issues/1773)) ([d1dae17](https://togithub.com/googleapis/java-pubsub/commit/d1dae17d46730a07558ee097747f481cdb35f6f4)) * Renaming the CreateUnwrappedPushSubscription File ([#1794](https://togithub.com/googleapis/java-pubsub/issues/1794)) ([0f1c35c](https://togithub.com/googleapis/java-pubsub/commit/0f1c35c46102839e0424de93163092564db8a787)) * **samples:** Optimistic subscribe sample ([#2063](https://togithub.com/googleapis/java-pubsub/issues/2063)) ([35e04c3](https://togithub.com/googleapis/java-pubsub/commit/35e04c3c5c15b8fa1c0ef3ca321b619dba64702c)) * Tightened requirements on cloud storage subscription filename suffixes ([#1639](https://togithub.com/googleapis/java-pubsub/issues/1639)) ([3e38a13](https://togithub.com/googleapis/java-pubsub/commit/3e38a1389ac4cc041de77e1efc61f19ad30263ee)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 34 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index fdd3242669a4..d3d69cddc79b 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.133.0](https://github.com/googleapis/java-pubsub/compare/v1.132.4...v1.133.0) (2024-10-01) + + +### Features + +* Add OpenTelemetry tracing to the Publisher and Subscriber ([#2086](https://github.com/googleapis/java-pubsub/issues/2086)) ([db522b6](https://github.com/googleapis/java-pubsub/commit/db522b60f1bbec9cc1bfa0c37477044fd2f807c7)) + + +### Dependencies + +* Update dependency com.google.cloud.opentelemetry:exporter-trace to v0.32.0 ([#2205](https://github.com/googleapis/java-pubsub/issues/2205)) ([76f17e4](https://github.com/googleapis/java-pubsub/commit/76f17e4149bf369f2be12fe9d316a23a7f49f137)) +* Update dependency org.assertj:assertj-core to v3.26.3 ([#2204](https://github.com/googleapis/java-pubsub/issues/2204)) ([71c2e76](https://github.com/googleapis/java-pubsub/commit/71c2e762e94895c465c4e737ed8bf7bc583a9c14)) + ## [1.132.4](https://github.com/googleapis/java-pubsub/compare/v1.132.3...v1.132.4) (2024-09-30) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 14ab466a3a78..718a40bc5ff4 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.132.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.133.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.132.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.133.0" ``` @@ -414,7 +414,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.132.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.133.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ae20af5935a6..de45a10b4e55 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.132.5-SNAPSHOT + 1.133.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.132.5-SNAPSHOT + 1.133.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index bce1d9e5afb3..467f489aa62c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.132.5-SNAPSHOT + 1.133.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.132.5-SNAPSHOT + 1.133.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 40ac5c98cf41..6f4ab603301e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.5-SNAPSHOT + 1.133.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index fef252580648..f8e73d5a5777 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.132.5-SNAPSHOT + 1.133.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 com.google.cloud google-cloud-pubsub - 1.132.5-SNAPSHOT + 1.133.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9620d51879fe..eed834a951f6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.114.5-SNAPSHOT + 1.115.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.132.5-SNAPSHOT + 1.133.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3ee0f74d69de..56c7c619e0c6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.132.5-SNAPSHOT + 1.133.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3ae78d30eecb..3074b8f25a35 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.132.4:1.132.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.114.4:1.114.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.114.4:1.114.5-SNAPSHOT +google-cloud-pubsub:1.133.0:1.133.0 +grpc-google-cloud-pubsub-v1:1.115.0:1.115.0 +proto-google-cloud-pubsub-v1:1.115.0:1.115.0 From 948127169d84f88c4c62456288c430bb1db2b39d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 2 Oct 2024 15:52:56 +0200 Subject: [PATCH 1947/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.133.0 (#2207) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index da0ac10b18db..965d7300fb43 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.132.3 + 1.133.0 From 22af41fa503a5d1f5d69d68be1b79658dfba4ae9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 3 Oct 2024 18:56:52 +0200 Subject: [PATCH 1948/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.48.0 (#2210) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index ec07da956b12..a6bcbd09642c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.47.0 + 26.48.0 pom import From 50111d2a010abfbe19dab7bcc7b106eb3a0de225 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 3 Oct 2024 13:20:59 -0400 Subject: [PATCH 1949/2363] docs: Update emulator sample to create a topic and publish to it (#2039) * deps: Change scope of grpc-inprocess dependency from runtime to test * docs: Update emulator sample to create a topic and publish to it * docs: Small wording update to emulator sample --- .../java/pubsub/UsePubSubEmulatorExample.java | 40 +++++++++++++------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java index f4c69eac45ca..5da0bd7f8d09 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java @@ -16,6 +16,15 @@ package pubsub; +/** + * Snippet that demonstrates creating Pub/Sub clients using the Google Cloud Pub/Sub emulator. + * + *

    Note: clients cannot start/stop the emulator. + */ + +// [START pubsub_use_emulator] + +import com.google.api.core.ApiFuture; import com.google.api.gax.core.CredentialsProvider; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GrpcTransportChannel; @@ -24,20 +33,16 @@ import com.google.cloud.pubsub.v1.Publisher; import com.google.cloud.pubsub.v1.TopicAdminClient; import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; import java.io.IOException; -/** - * Snippet that demonstrates creating Pub/Sub clients using the Google Cloud Pub/Sub emulator. - * - *

    Note: clients cannot start/stop the emulator. - */ public class UsePubSubEmulatorExample { - - public static void main(String... args) throws IOException { - // [START pubsub_use_emulator] + public static void main(String... args) throws Exception { String hostport = System.getenv("PUBSUB_EMULATOR_HOST"); ManagedChannel channel = ManagedChannelBuilder.forTarget(hostport).usePlaintext().build(); try { @@ -46,8 +51,8 @@ public static void main(String... args) throws IOException { CredentialsProvider credentialsProvider = NoCredentialsProvider.create(); // Set the channel and credentials provider when creating a `TopicAdminClient`. - // Similarly for SubscriptionAdminClient - TopicAdminClient topicClient = + // Can be done similarly for a `SubscriptionAdminClient`. + TopicAdminClient topicAdminClient = TopicAdminClient.create( TopicAdminSettings.newBuilder() .setTransportChannelProvider(channelProvider) @@ -55,16 +60,27 @@ public static void main(String... args) throws IOException { .build()); TopicName topicName = TopicName.of("my-project-id", "my-topic-id"); + Topic topic = topicAdminClient.createTopic(topicName); + System.out.println("Created topic: " + topic.getName()); + // Set the channel and credentials provider when creating a `Publisher`. - // Similarly for Subscriber + // Can be done similarly for a `Subscriber`. Publisher publisher = Publisher.newBuilder(topicName) .setChannelProvider(channelProvider) .setCredentialsProvider(credentialsProvider) .build(); + + String message = "Hello World!"; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + String messageId = messageIdFuture.get(); + System.out.println("Published message ID: " + messageId); } finally { channel.shutdown(); } - // [END pubsub_use_emulator] } } +// [END pubsub_use_emulator] \ No newline at end of file From d338f486a1d5a416937dc0a575c581de6c0927d5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 7 Oct 2024 21:51:19 +0200 Subject: [PATCH 1950/2363] deps: update googleapis/sdk-platform-java action to v2.47.0 (#2212) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 9f1a24bd6f88..9399ebef235b 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.46.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.47.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From dadf2ffdfc53a003fc5f796460c9c884a5ea147b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 7 Oct 2024 21:51:35 +0200 Subject: [PATCH 1951/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.37.0 (#2214) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 664f10a28dd9..9cd0e30373e5 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.36.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.37.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 0effa03c5227..0f8b919c91f6 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.36.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.37.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 96a8059b9b9b..e6553bd6e418 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.36.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.37.0" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index de45a10b4e55..beba7d0a848d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.36.1 + 3.37.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f8e73d5a5777..6fd32bde2da7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.36.1 + 3.37.0 From 6624a3c517bc45356935d4faa3577c1c6c20446d Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 7 Oct 2024 15:53:39 -0400 Subject: [PATCH 1952/2363] docs: Add ingestion from GCS sample (#2211) * docs: Add ingestion from GCS Java sample * docs: Add ingestion from GCS sample * docs: Add test for GCS ingestion * docs: Move topicName declaration to satisfy style check * docs: Update bucket for Cloud Storage ingestion sample test --- ...TopicWithCloudStorageIngestionExample.java | 109 ++++++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 48 ++++++-- 2 files changed, 150 insertions(+), 7 deletions(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java new file mode 100644 index 000000000000..d795cdc2856e --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java @@ -0,0 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_cloud_storage_ingestion] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.util.Timestamps; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; +import java.text.ParseException; + +public class CreateTopicWithCloudStorageIngestionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Cloud Storage ingestion settings. + // bucket and inputFormat are required arguments. + String bucket = "your-bucket"; + String inputFormat = "text"; + String textDelimiter = "\n"; + String matchGlob = "**.txt"; + String minimumObjectCreateTime = "YYYY-MM-DDThh:mm:ssZ"; + + createTopicWithCloudStorageIngestionExample( + projectId, topicId, bucket, inputFormat, textDelimiter, matchGlob, minimumObjectCreateTime); + } + + public static void createTopicWithCloudStorageIngestionExample( + String projectId, + String topicId, + String bucket, + String inputFormat, + String textDelimiter, + String matchGlob, + String minimumObjectCreateTime) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + IngestionDataSourceSettings.CloudStorage.Builder cloudStorageBuilder = + IngestionDataSourceSettings.CloudStorage.newBuilder().setBucket(bucket); + switch (inputFormat) { + case "text": + cloudStorageBuilder.setTextFormat( + IngestionDataSourceSettings.CloudStorage.TextFormat.newBuilder() + .setDelimiter(textDelimiter) + .build()); + break; + case "avro": + cloudStorageBuilder.setAvroFormat( + IngestionDataSourceSettings.CloudStorage.AvroFormat.getDefaultInstance()); + break; + case "pubsub_avro": + cloudStorageBuilder.setPubsubAvroFormat( + IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.getDefaultInstance()); + break; + default: + throw new IllegalArgumentException( + "inputFormat must be in ('text', 'avro', 'pubsub_avro'); got value: " + inputFormat); + } + + if (matchGlob != null && !matchGlob.isEmpty()) { + cloudStorageBuilder.setMatchGlob(matchGlob); + } + + if (minimumObjectCreateTime != null && !minimumObjectCreateTime.isEmpty()) { + try { + cloudStorageBuilder.setMinimumObjectCreateTime(Timestamps.parse(minimumObjectCreateTime)); + } catch (ParseException e) { + System.err.println("Unable to parse timestamp: " + minimumObjectCreateTime); + } + } + + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder() + .setCloudStorage(cloudStorageBuilder.build()) + .build(); + + TopicName topicName = TopicName.of(projectId, topicId); + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build()); + + System.out.println( + "Created topic with Cloud Storage ingestion settings: " + topic.getAllFields()); + } + } +} +// [END pubsub_create_topic_with_cloud_storage_ingestion] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index a2eb7ebfdb4f..fcfa74981c95 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -52,7 +52,9 @@ public class AdminIT { private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String _suffix = UUID.randomUUID().toString(); private static final String topicId = "iam-topic-" + _suffix; - private static final String ingestionTopicId = "ingestion-topic-" + _suffix; + private static final String kinesisIngestionTopicId = "kinesis-ingestion-topic-" + _suffix; + private static final String cloudStorageIngestionTopicId = + "cloud-storage-ingestion-topic-" + _suffix; private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; @@ -75,9 +77,18 @@ public class AdminIT { private static final String awsRoleArn = "arn:aws:iam::111111111111:role/fake-role-name"; private static final String gcpServiceAccount = "fake-service-account@fake-gcp-project.iam.gserviceaccount.com"; + private static final String cloudStorageBucket = "pubsub-cloud-storage-bucket"; + private static final String cloudStorageInputFormat = "text"; + private static final String cloudStorageTextDelimiter = ","; + private static final String cloudStorageMatchGlob = "**.txt"; + private static final String cloudStorageMinimumObjectCreateTime = "1970-01-01T00:00:00Z"; + private static final String cloudStorageMinimumObjectCreateTimeSeconds = "0"; private static final TopicName topicName = TopicName.of(projectId, topicId); - private static final TopicName ingestionTopicName = TopicName.of(projectId, ingestionTopicId); + private static final TopicName kinesisIngestionTopicName = + TopicName.of(projectId, kinesisIngestionTopicId); + private static final TopicName cloudStorageIngestionTopicName = + TopicName.of(projectId, cloudStorageIngestionTopicId); private static final SubscriptionName pullSubscriptionName = SubscriptionName.of(projectId, pullSubscriptionId); private static final SubscriptionName pushSubscriptionName = @@ -304,9 +315,9 @@ public void testAdmin() throws Exception { bout.reset(); // Test create topic with Kinesis ingestion settings. CreateTopicWithKinesisIngestionExample.createTopicWithKinesisIngestionExample( - projectId, ingestionTopicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); + projectId, kinesisIngestionTopicId, streamArn, consumerArn, awsRoleArn, gcpServiceAccount); assertThat(bout.toString()) - .contains("google.pubsub.v1.Topic.name=" + ingestionTopicName.toString()); + .contains("google.pubsub.v1.Topic.name=" + kinesisIngestionTopicName.toString()); assertThat(bout.toString()).contains(streamArn); assertThat(bout.toString()).contains(consumerArn); assertThat(bout.toString()).contains(awsRoleArn); @@ -315,9 +326,9 @@ public void testAdmin() throws Exception { bout.reset(); // Test update existing Kinesis ingestion settings. UpdateTopicTypeExample.updateTopicTypeExample( - projectId, ingestionTopicId, streamArn, consumerArn2, awsRoleArn, gcpServiceAccount); + projectId, kinesisIngestionTopicId, streamArn, consumerArn2, awsRoleArn, gcpServiceAccount); assertThat(bout.toString()) - .contains("google.pubsub.v1.Topic.name=" + ingestionTopicName.toString()); + .contains("google.pubsub.v1.Topic.name=" + kinesisIngestionTopicName.toString()); assertThat(bout.toString()).contains(streamArn); assertThat(bout.toString()).contains(consumerArn2); assertThat(bout.toString()).contains(awsRoleArn); @@ -325,7 +336,30 @@ public void testAdmin() throws Exception { bout.reset(); // Test delete Kinesis ingestion topic. - DeleteTopicExample.deleteTopicExample(projectId, ingestionTopicId); + DeleteTopicExample.deleteTopicExample(projectId, kinesisIngestionTopicId); + assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with Cloud Storage ingestion settings. + CreateTopicWithCloudStorageIngestionExample.createTopicWithCloudStorageIngestionExample( + projectId, + cloudStorageIngestionTopicId, + cloudStorageBucket, + cloudStorageInputFormat, + cloudStorageTextDelimiter, + cloudStorageMatchGlob, + cloudStorageMinimumObjectCreateTime); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + cloudStorageIngestionTopicName.toString()); + assertThat(bout.toString()).contains(cloudStorageBucket); + assertThat(bout.toString()).contains(cloudStorageInputFormat); + assertThat(bout.toString()).contains(cloudStorageTextDelimiter); + assertThat(bout.toString()).contains(cloudStorageMatchGlob); + assertThat(bout.toString()).contains(cloudStorageMinimumObjectCreateTimeSeconds); + + bout.reset(); + // Test delete Cloud Storage ingestion topic. + DeleteTopicExample.deleteTopicExample(projectId, cloudStorageIngestionTopicId); assertThat(bout.toString()).contains("Deleted topic."); } } From a386c01b33ba7df258dad63112a968d75e18140e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 7 Oct 2024 21:54:50 +0200 Subject: [PATCH 1953/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.45.0 (#2213) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 965d7300fb43..554ce23e0912 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.44.1 + 2.45.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 56c7c619e0c6..9caa9ec0736e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.44.1 + 2.45.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a6bcbd09642c..9e84bb4197a2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.44.1 + 2.45.0 tests From 96e4f1f37ddd817c37728d636cb85729e6905c51 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:48:24 +0000 Subject: [PATCH 1954/2363] chore(main): release 1.133.1-SNAPSHOT (#2209) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/README.md | 5 +++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 21 insertions(+), 20 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 718a40bc5ff4..70c4f07481c6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.47.0 + 26.48.0 pom import @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.132.3 + 1.133.0 ``` @@ -255,6 +255,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | +| Create Topic With Cloud Storage Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | | Create Topic With Kinesis Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | | Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index beba7d0a848d..6f92bfa6a345 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.133.0 + 1.133.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 467f489aa62c..32a6b6d72aba 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.133.0 + 1.133.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6f4ab603301e..d5014c2842fe 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.0 + 1.133.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6fd32bde2da7..0c5d2362ce4f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.133.0 + 1.133.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index eed834a951f6..01ddfa21b65c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.0 + 1.115.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.0 + 1.133.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9caa9ec0736e..2b2c8b925087 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 3074b8f25a35..85cfe1c94763 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.133.0:1.133.0 -grpc-google-cloud-pubsub-v1:1.115.0:1.115.0 -proto-google-cloud-pubsub-v1:1.115.0:1.115.0 +google-cloud-pubsub:1.133.0:1.133.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.115.0:1.115.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.115.0:1.115.1-SNAPSHOT From 9b4f19f40836623ddab30beea84b3e68fc577a1f Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:05:48 -0400 Subject: [PATCH 1955/2363] chore: Update generation configuration at Sun Oct 6 02:28:51 UTC 2024 (#2196) * chore: Update generation configuration at Fri Sep 27 02:26:54 UTC 2024 * chore: Update generation configuration at Sat Sep 28 02:25:28 UTC 2024 * chore: Update generation configuration at Tue Oct 1 02:30:17 UTC 2024 * chore: Update generation configuration at Wed Oct 2 02:26:30 UTC 2024 * chore: Update generation configuration at Thu Oct 3 02:26:41 UTC 2024 * chore: Update generation configuration at Fri Oct 4 02:26:51 UTC 2024 * chore: generate libraries at Fri Oct 4 02:27:14 UTC 2024 * chore: Update generation configuration at Sat Oct 5 02:25:14 UTC 2024 * chore: Update generation configuration at Sun Oct 6 02:28:51 UTC 2024 * chore: generate libraries at Sun Oct 6 02:29:15 UTC 2024 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 6 +++--- java-pubsub/renovate.json | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 70c4f07481c6..61cd87fedc6d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.47.0') +implementation platform('com.google.cloud:libraries-bom:26.48.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 726eccc07ee9..d83d36916042 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.46.0 -googleapis_commitish: 005df4681b89bd204a90b76168a6dc9d9e7bf4fe -libraries_bom_version: 26.47.0 +gapic_generator_version: 2.47.0 +googleapis_commitish: 1f8352cf46df74d7db6fd544181655c590689b8c +libraries_bom_version: 26.48.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index f67202e06d1e..9afb4c0bf7ce 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -41,6 +41,16 @@ ], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", "datasourceTemplate": "maven" + }, + { + "fileMatch": [ + "^.github/workflows/hermetic_library_generation.yaml$" + ], + "matchStrings": [ + "uses: googleapis/sdk-platform-java/.github/scripts@v(?.+?)\\n" + ], + "depNameTemplate": "com.google.api:gapic-generator-java", + "datasourceTemplate": "maven" } ], "packageRules": [ @@ -101,6 +111,13 @@ "^com.fasterxml.jackson.core" ], "groupName": "jackson dependencies" + }, + { + "matchPackagePatterns": [ + "^com.google.api:gapic-generator-java", + "^com.google.cloud:sdk-platform-java-config" + ], + "groupName": "SDK platform Java dependencies" } ], "semanticCommits": true, From 56dce2dc7ec22671ba01b5d2fbb5117646cce248 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:38:23 -0400 Subject: [PATCH 1956/2363] chore(main): release 1.133.1 (#2215) * chore(main): release 1.133.1 * chore: generate libraries at Mon Oct 7 21:06:29 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 20 +++++++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 41 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index d3d69cddc79b..980d2335ad13 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [1.133.1](https://github.com/googleapis/java-pubsub/compare/v1.133.0...v1.133.1) (2024-10-07) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.47.0 ([ccd23af](https://github.com/googleapis/java-pubsub/commit/ccd23afd99e7cb5a28747b06d0a97d1cb8163391)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-core to v2.45.0 ([#2213](https://github.com/googleapis/java-pubsub/issues/2213)) ([5ee969b](https://github.com/googleapis/java-pubsub/commit/5ee969bb9ed873073895881062ec72f419bbc837)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.37.0 ([#2214](https://github.com/googleapis/java-pubsub/issues/2214)) ([d938709](https://github.com/googleapis/java-pubsub/commit/d93870934f610cffb705837ed8391eb276a18c05)) +* Update googleapis/sdk-platform-java action to v2.47.0 ([#2212](https://github.com/googleapis/java-pubsub/issues/2212)) ([6a9723d](https://github.com/googleapis/java-pubsub/commit/6a9723d2872c82bbb525119cac7471d1a2f3b7cd)) + + +### Documentation + +* Add ingestion from GCS sample ([#2211](https://github.com/googleapis/java-pubsub/issues/2211)) ([ddb7391](https://github.com/googleapis/java-pubsub/commit/ddb739113b38d4e2f4617a105cd0ab071f21d4de)) +* Update emulator sample to create a topic and publish to it ([#2039](https://github.com/googleapis/java-pubsub/issues/2039)) ([21d5cfc](https://github.com/googleapis/java-pubsub/commit/21d5cfc3b9484ffc2c1a0084b8bc2f6f76b6bf62)) + ## [1.133.0](https://github.com/googleapis/java-pubsub/compare/v1.132.4...v1.133.0) (2024-10-01) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 61cd87fedc6d..c3bb6365b3c9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.133.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.133.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.133.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.133.1" ``` @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.133.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.133.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6f92bfa6a345..06cf1c5cb393 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.133.1-SNAPSHOT + 1.133.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.133.1-SNAPSHOT + 1.133.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 32a6b6d72aba..6fd4137040e5 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.133.1-SNAPSHOT + 1.133.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.133.1-SNAPSHOT + 1.133.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d5014c2842fe..523d9fbb8b35 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.1-SNAPSHOT + 1.133.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0c5d2362ce4f..6bec01496a0b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.133.1-SNAPSHOT + 1.133.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 com.google.cloud google-cloud-pubsub - 1.133.1-SNAPSHOT + 1.133.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 01ddfa21b65c..81e833e884e5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1-SNAPSHOT + 1.115.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.1-SNAPSHOT + 1.133.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2b2c8b925087..185dda2d0da8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.133.1-SNAPSHOT + 1.133.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 85cfe1c94763..0a4b0ca10588 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.133.0:1.133.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.115.0:1.115.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.115.0:1.115.1-SNAPSHOT +google-cloud-pubsub:1.133.1:1.133.1 +grpc-google-cloud-pubsub-v1:1.115.1:1.115.1 +proto-google-cloud-pubsub-v1:1.115.1:1.115.1 From e5f32417c2572a9d7412b9b893639934f6d99292 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 7 Oct 2024 23:43:44 -0400 Subject: [PATCH 1957/2363] docs: Add OpenTelemetry samples (#2208) * docs: Add OpenTelemetry samples * docs: Fix sample file naming --- .../pubsub/OpenTelemetryPublisherExample.java | 99 +++++++++++++++++ .../OpenTelemetrySubscriberExample.java | 100 ++++++++++++++++++ 2 files changed, 199 insertions(+) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java new file mode 100644 index 000000000000..606c6fe36a79 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_publish_otel_tracing] + +import com.google.api.core.ApiFuture; +import com.google.cloud.opentelemetry.trace.TraceConfiguration; +import com.google.cloud.opentelemetry.trace.TraceExporter; +import com.google.cloud.pubsub.v1.Publisher; +import com.google.protobuf.ByteString; +import com.google.pubsub.v1.PubsubMessage; +import com.google.pubsub.v1.TopicName; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.sdk.OpenTelemetrySdk; +import io.opentelemetry.sdk.resources.Resource; +import io.opentelemetry.sdk.trace.SdkTracerProvider; +import io.opentelemetry.sdk.trace.export.SimpleSpanProcessor; +import io.opentelemetry.sdk.trace.export.SpanExporter; +import io.opentelemetry.sdk.trace.samplers.Sampler; +import io.opentelemetry.semconv.ResourceAttributes; +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; + +public class OpenTelemetryPublisherExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + openTelemetryPublisherExample(projectId, topicId); + } + + public static void openTelemetryPublisherExample(String projectId, String topicId) + throws IOException, ExecutionException, InterruptedException { + Resource resource = + Resource.getDefault().toBuilder() + .put(ResourceAttributes.SERVICE_NAME, "publisher-example") + .build(); + + // Creates a Cloud Trace exporter. + SpanExporter traceExporter = + TraceExporter.createWithConfiguration( + TraceConfiguration.builder().setProjectId(projectId).build()); + + SdkTracerProvider sdkTracerProvider = + SdkTracerProvider.builder() + .setResource(resource) + .addSpanProcessor(SimpleSpanProcessor.create(traceExporter)) + .setSampler(Sampler.alwaysOn()) + .build(); + + OpenTelemetry openTelemetry = + OpenTelemetrySdk.builder().setTracerProvider(sdkTracerProvider).buildAndRegisterGlobal(); + + TopicName topicName = TopicName.of(projectId, topicId); + + Publisher publisher = null; + try { + // Create a publisher instance with the created OpenTelemetry object and enabling tracing. + publisher = + Publisher.newBuilder(topicName) + .setOpenTelemetry(openTelemetry) + .setEnableOpenTelemetryTracing(true) + .build(); + + String message = "Hello World!"; + ByteString data = ByteString.copyFromUtf8(message); + PubsubMessage pubsubMessage = PubsubMessage.newBuilder().setData(data).build(); + + // Once published, returns a server-assigned message id (unique within the topic) + ApiFuture messageIdFuture = publisher.publish(pubsubMessage); + String messageId = messageIdFuture.get(); + System.out.println("Published message ID: " + messageId); + } finally { + if (publisher != null) { + // When finished with the publisher, shutdown to free up resources. + publisher.shutdown(); + publisher.awaitTermination(1, TimeUnit.MINUTES); + } + } + } +} +// [END pubsub_publish_otel_tracing] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java new file mode 100644 index 000000000000..f78c38d198a5 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java @@ -0,0 +1,100 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_subscribe_otel_tracing] + +import com.google.cloud.opentelemetry.trace.TraceConfiguration; +import com.google.cloud.opentelemetry.trace.TraceExporter; +import com.google.cloud.pubsub.v1.AckReplyConsumer; +import com.google.cloud.pubsub.v1.MessageReceiver; +import com.google.cloud.pubsub.v1.Subscriber; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.PubsubMessage; +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.sdk.OpenTelemetrySdk; +import io.opentelemetry.sdk.resources.Resource; +import io.opentelemetry.sdk.trace.SdkTracerProvider; +import io.opentelemetry.sdk.trace.export.SimpleSpanProcessor; +import io.opentelemetry.sdk.trace.export.SpanExporter; +import io.opentelemetry.sdk.trace.samplers.Sampler; +import io.opentelemetry.semconv.ResourceAttributes; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; + +public class OpenTelemetrySubscriberExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String subscriptionId = "your-subscription-id"; + + openTelemetrySubscriberExample(projectId, subscriptionId); + } + + public static void openTelemetrySubscriberExample(String projectId, String subscriptionId) { + Resource resource = + Resource.getDefault().toBuilder() + .put(ResourceAttributes.SERVICE_NAME, "subscriber-example") + .build(); + + // Creates a Cloud Trace exporter. + SpanExporter traceExporter = + TraceExporter.createWithConfiguration( + TraceConfiguration.builder().setProjectId(projectId).build()); + + SdkTracerProvider sdkTracerProvider = + SdkTracerProvider.builder() + .setResource(resource) + .addSpanProcessor(SimpleSpanProcessor.create(traceExporter)) + .setSampler(Sampler.alwaysOn()) + .build(); + + OpenTelemetry openTelemetry = + OpenTelemetrySdk.builder().setTracerProvider(sdkTracerProvider).buildAndRegisterGlobal(); + + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + // Instantiate an asynchronous message receiver. + MessageReceiver receiver = + (PubsubMessage message, AckReplyConsumer consumer) -> { + // Handle incoming message, then ack the received message. + System.out.println("Id: " + message.getMessageId()); + System.out.println("Data: " + message.getData().toStringUtf8()); + consumer.ack(); + }; + + Subscriber subscriber = null; + try { + subscriber = + Subscriber.newBuilder(subscriptionName, receiver) + .setOpenTelemetry(openTelemetry) + .setEnableOpenTelemetryTracing(true) + .build(); + + // Start the subscriber. + subscriber.startAsync().awaitRunning(); + System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); + // Allow the subscriber to run for 30s unless an unrecoverable error occurs. + subscriber.awaitTerminated(30, TimeUnit.SECONDS); + } catch (TimeoutException timeoutException) { + // Shut down the subscriber after 30s. Stop receiving messages. + subscriber.stopAsync(); + } + } +} + // [END pubsub_subscribe_otel_tracing] From 8946aa081ee9950c1efa86ac4b551e9c930e74e8 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 8 Oct 2024 12:21:38 -0400 Subject: [PATCH 1958/2363] test: Fix flaky tests (#2221) * test: Add logs to flaky OpenTelemetry test * test: Ensure publisher is shutdown before checking spans in test * test: Remove logs from test * test: Check that subscription is created in subscriber samples test * test: Use err to log for testing * test: Only setup and teardown before and after the entire test suite for SubscriberIT * test: Remove logs from test * test: Import AfterClass class * test: Fix errors in test * test: Add small change to GCS ingestion test --- .../google/cloud/pubsub/v1/PublisherImplTest.java | 1 + .../snippets/src/test/java/pubsub/AdminIT.java | 4 ++-- .../snippets/src/test/java/pubsub/SubscriberIT.java | 13 +++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index fedd174362d7..219326db5aa3 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -1342,6 +1342,7 @@ public void testPublishOpenTelemetryTracing() throws Exception { fakeExecutor.advanceTime(Duration.ofSeconds(5)); assertEquals("1", publishFuture.get()); fakeExecutor.advanceTime(Duration.ofSeconds(5)); + shutdownTestPublisher(publisher); List allSpans = openTelemetryTesting.getSpans(); assertEquals(4, allSpans.size()); diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index fcfa74981c95..e0c45e8e1370 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -81,8 +81,8 @@ public class AdminIT { private static final String cloudStorageInputFormat = "text"; private static final String cloudStorageTextDelimiter = ","; private static final String cloudStorageMatchGlob = "**.txt"; - private static final String cloudStorageMinimumObjectCreateTime = "1970-01-01T00:00:00Z"; - private static final String cloudStorageMinimumObjectCreateTimeSeconds = "0"; + private static final String cloudStorageMinimumObjectCreateTime = "1970-01-01T00:00:01Z"; + private static final String cloudStorageMinimumObjectCreateTimeSeconds = "seconds: 1"; private static final TopicName topicName = TopicName.of(projectId, topicId); private static final TopicName kinesisIngestionTopicName = diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java index 3f91a2a31c38..b1c827d50ffc 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -39,6 +39,7 @@ import java.util.List; import java.util.UUID; import org.junit.After; +import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Rule; @@ -46,8 +47,8 @@ import org.junit.rules.Timeout; public class SubscriberIT { - private ByteArrayOutputStream bout; - private PrintStream out; + private static ByteArrayOutputStream bout; + private static PrintStream out; private static final String projectId = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String _suffix = UUID.randomUUID().toString(); @@ -129,8 +130,8 @@ public static void checkRequirements() { requireEnvVar("GOOGLE_CLOUD_PROJECT"); } - @Before - public void setUp() throws Exception { + @BeforeClass + public static void setUp() throws Exception { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); System.setOut(out); @@ -162,8 +163,8 @@ public void setUp() throws Exception { } } - @After - public void tearDown() throws Exception { + @AfterClass + public static void tearDown() throws Exception { try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { subscriptionAdminClient.deleteSubscription(subscriptionName.toString()); subscriptionAdminClient.deleteSubscription(subscriptionEodName.toString()); From f4bc0ed067a3fe04223af8c2e60c3eab891e89af Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 8 Oct 2024 18:22:38 +0200 Subject: [PATCH 1959/2363] deps: update dependency org.apache.avro:avro to v1.11.4 [security] (#2223) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 554ce23e0912..8499374fff53 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -51,7 +51,7 @@ org.apache.avro avro - 1.11.3 + 1.11.4 compile diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 185dda2d0da8..9708d76e7c30 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -50,7 +50,7 @@ org.apache.avro avro - 1.11.3 + 1.11.4 compile diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9e84bb4197a2..dca65a4c7ffe 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -75,7 +75,7 @@ org.apache.avro avro - 1.11.3 + 1.11.4 org.xerial.snappy From 3815fc3ae494405265ee3b0a6e339a6a94ea529d Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 8 Oct 2024 23:57:37 -0400 Subject: [PATCH 1960/2363] chore: Update generation configuration at Wed Oct 9 02:26:41 UTC 2024 (#2218) * chore: Update generation configuration at Tue Oct 8 02:28:09 UTC 2024 * chore: Update generation configuration at Wed Oct 9 02:26:41 UTC 2024 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index d83d36916042..01aee22850ab 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: 1f8352cf46df74d7db6fd544181655c590689b8c +googleapis_commitish: 8692273ae7e0ef95d264e1bb8bcb900fa950674f libraries_bom_version: 26.48.0 libraries: - api_shortname: pubsub From 9eedaa2545721a128e3d539bf44f86d9652fdb58 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Oct 2024 05:58:58 +0200 Subject: [PATCH 1961/2363] deps: update dependency com.google.cloud.opentelemetry:exporter-trace to v0.33.0 (#2225) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8499374fff53..1c59653be886 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -96,7 +96,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.32.0 + 0.33.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9708d76e7c30..f4780ddac034 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -95,7 +95,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.32.0 + 0.33.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index dca65a4c7ffe..f0b396364079 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -70,7 +70,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.32.0 + 0.33.0 org.apache.avro From 9059ad862c790a125722fc31ad280e716044841e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Oct 2024 06:20:50 +0200 Subject: [PATCH 1962/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.43.2 (#2226) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1c59653be886..b847b02d699f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.43.1 + 2.43.2 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f4780ddac034..10e226ac73ff 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.43.1 + 2.43.2 com.google.cloud.opentelemetry From d3a86ad561ac8fbf0cd4d2ab1175da368450e673 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Oct 2024 06:20:58 +0200 Subject: [PATCH 1963/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.133.1 (#2219) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b847b02d699f..5a812c85e419 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1 From f07e695e8fc0f078afed02ecda4e33ded3f7b2ec Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Oct 2024 06:21:37 +0200 Subject: [PATCH 1964/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.43.1 (#2202) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5a812c85e419..388009d839a4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.42.3 + 2.43.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 10e226ac73ff..74eb7c5c0de7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.42.3 + 2.43.1 com.google.cloud From 6cd09ad89b19d6fc3a3beb6a348ad9c2a96361be Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:48:31 +0000 Subject: [PATCH 1965/2363] chore(main): release 1.133.2-SNAPSHOT (#2216) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/README.md | 4 +++- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 21 insertions(+), 19 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c3bb6365b3c9..c6678934113a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.133.0 + 1.133.1 ``` @@ -274,6 +274,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | | List Subscriptions In Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | | List Topics Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | +| Open Telemetry Publisher Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java) | +| Open Telemetry Subscriber Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java) | | Optimistic Subscribe Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | | Publish Avro Records Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | | Publish Protobuf Messages Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 06cf1c5cb393..29750bbfd977 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.133.1 + 1.133.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.133.1 + 1.133.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6fd4137040e5..600a997e307e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.133.1 + 1.133.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.133.1 + 1.133.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 523d9fbb8b35..3598f8f502ea 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.1 + 1.133.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6bec01496a0b..9dc5c8da6732 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.133.1 + 1.133.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.133.1 + 1.133.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 81e833e884e5..ef4e86cc3dae 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.1 + 1.115.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.1 + 1.133.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 74eb7c5c0de7..8b7a9f9c9e5b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.133.1 + 1.133.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0a4b0ca10588..4335d336b542 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.133.1:1.133.1 -grpc-google-cloud-pubsub-v1:1.115.1:1.115.1 -proto-google-cloud-pubsub-v1:1.115.1:1.115.1 +google-cloud-pubsub:1.133.1:1.133.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.115.1:1.115.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.115.1:1.115.2-SNAPSHOT From 6f799dcc035d7fd45eaf9f6db756627c5063bfdd Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 9 Oct 2024 23:15:28 -0400 Subject: [PATCH 1966/2363] chore: Update generation configuration at Thu Oct 10 02:26:42 UTC 2024 (#2229) * chore: Update generation configuration at Thu Oct 10 02:26:42 UTC 2024 * chore: generate libraries at Thu Oct 10 02:27:09 UTC 2024 --- java-pubsub/generation_config.yaml | 2 +- .../reflect-config.json | 72 + .../pubsub/v1/IngestionFailureEvent.java | 3913 +++++++++++++++++ .../v1/IngestionFailureEventOrBuilder.java | 122 + .../com/google/pubsub/v1/PubsubProto.java | 837 ++-- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 57 + 8 files changed, 4620 insertions(+), 393 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 01aee22850ab..34111da5835a 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: 8692273ae7e0ef95d264e1bb8bcb900fa950674f +googleapis_commitish: 10b8dc3b54c9a609dcfda8060b8c4c734a942e8c libraries_bom_version: 26.48.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 97fb8db418b3..e63fd836fae3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -1970,6 +1970,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$ApiViolationReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$ApiViolationReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AvroFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AvroFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$CloudStorageFailure", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$CloudStorageFailure$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java new file mode 100644 index 000000000000..98eefa8aa361 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -0,0 +1,3913 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +/** + * + * + *

    + * Payload of the Platform Log entry sent when a failure is encountered while
    + * ingesting.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent} + */ +public final class IngestionFailureEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent) + IngestionFailureEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use IngestionFailureEvent.newBuilder() to construct. + private IngestionFailureEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IngestionFailureEvent() { + topic_ = ""; + errorMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IngestionFailureEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.class, + com.google.pubsub.v1.IngestionFailureEvent.Builder.class); + } + + public interface ApiViolationReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Specifies the reason why some data may have been left out of
    +   * the desired Pub/Sub message due to the API message limits
    +   * (https://cloud.google.com/pubsub/quotas#resource_limits). For example,
    +   * when the number of attributes is larger than 100, the number of
    +   * attributes is truncated to 100 to respect the limit on the attribute count.
    +   * Other attribute limits are treated similarly. When the size of the desired
    +   * message would've been larger than 10MB, the message won't be published at
    +   * all, and ingestion of the subsequent messages will proceed as normal.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} + */ + public static final class ApiViolationReason extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) + ApiViolationReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApiViolationReason.newBuilder() to construct. + private ApiViolationReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApiViolationReason() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApiViolationReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason other = + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Specifies the reason why some data may have been left out of
    +     * the desired Pub/Sub message due to the API message limits
    +     * (https://cloud.google.com/pubsub/quotas#resource_limits). For example,
    +     * when the number of attributes is larger than 100, the number of
    +     * attributes is truncated to 100 to respect the limit on the attribute count.
    +     * Other attribute limits are treated similarly. When the size of the desired
    +     * message would've been larger than 10MB, the message won't be published at
    +     * all, and ingestion of the subsequent messages will proceed as normal.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason build() { + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason result = + new com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiViolationReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AvroFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
    +   * Set when an Avro file is unsupported or its format is not valid. When this
    +   * occurs, one or more Avro objects won't be ingested.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} + */ + public static final class AvroFailureReason extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) + AvroFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use AvroFailureReason.newBuilder() to construct. + private AvroFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AvroFailureReason() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AvroFailureReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Set when an Avro file is unsupported or its format is not valid. When this
    +     * occurs, one or more Avro objects won't be ingested.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CloudStorageFailureOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + java.lang.String getBucket(); + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); + + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + java.lang.String getObjectName(); + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + com.google.protobuf.ByteString getObjectNameBytes(); + + /** + * + * + *
    +     * Optional. Generation of the Cloud Storage object which contained the
    +     * section that couldn't be ingested.
    +     * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + long getObjectGeneration(); + + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + boolean hasAvroFailureReason(); + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason(); + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder(); + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); + } + /** + * + * + *
    +   * Failure when ingesting from a Cloud Storage source.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + */ + public static final class CloudStorageFailure extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + CloudStorageFailureOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudStorageFailure.newBuilder() to construct. + private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorageFailure() { + bucket_ = ""; + objectName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorageFailure(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + } + + private int reasonCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reason_; + + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AVRO_FAILURE_REASON(5), + API_VIOLATION_REASON(6), + REASON_NOT_SET(0); + private final int value; + + private ReasonCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return AVRO_FAILURE_REASON; + case 6: + return API_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. Name of the Cloud Storage bucket used for ingestion.
    +     * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object objectName_ = ""; + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + @java.lang.Override + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. Name of the Cloud Storage object which contained the section
    +     * that couldn't be ingested.
    +     * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_GENERATION_FIELD_NUMBER = 3; + private long objectGeneration_ = 0L; + /** + * + * + *
    +     * Optional. Generation of the Cloud Storage object which contained the
    +     * section that couldn't be ingested.
    +     * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + @java.lang.Override + public long getObjectGeneration() { + return objectGeneration_; + } + + public static final int AVRO_FAILURE_REASON_FIELD_NUMBER = 5; + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + @java.lang.Override + public boolean hasAvroFailureReason() { + return reasonCase_ == 5; + } + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. Failure encountered when parsing an Avro file.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); + } + if (objectGeneration_ != 0L) { + output.writeInt64(3, objectGeneration_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); + } + if (objectGeneration_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, objectGeneration_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other = + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) obj; + + if (!getBucket().equals(other.getBucket())) return false; + if (!getObjectName().equals(other.getObjectName())) return false; + if (getObjectGeneration() != other.getObjectGeneration()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getAvroFailureReason().equals(other.getAvroFailureReason())) return false; + break; + case 6: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getObjectName().hashCode(); + hash = (37 * hash) + OBJECT_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectGeneration()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + AVRO_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getAvroFailureReason().hashCode(); + break; + case 6: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Failure when ingesting from a Cloud Storage source.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucket_ = ""; + objectName_ = ""; + objectGeneration_ = 0L; + if (avroFailureReasonBuilder_ != null) { + avroFailureReasonBuilder_.clear(); + } + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = + new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucket_ = bucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectName_ = objectName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.objectGeneration_ = objectGeneration_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && avroFailureReasonBuilder_ != null) { + result.reason_ = avroFailureReasonBuilder_.build(); + } + if (reasonCase_ == 6 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance()) + return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getObjectName().isEmpty()) { + objectName_ = other.objectName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getObjectGeneration() != 0L) { + setObjectGeneration(other.getObjectGeneration()); + } + switch (other.getReasonCase()) { + case AVRO_FAILURE_REASON: + { + mergeAvroFailureReason(other.getAvroFailureReason()); + break; + } + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + objectName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + objectGeneration_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: + { + input.readMessage( + getAvroFailureReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object bucket_ = ""; + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Name of the Cloud Storage bucket used for ingestion.
    +       * 
    + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object objectName_ = ""; + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + objectName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObjectName() { + objectName_ = getDefaultInstance().getObjectName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Name of the Cloud Storage object which contained the section
    +       * that couldn't be ingested.
    +       * 
    + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + objectName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long objectGeneration_; + /** + * + * + *
    +       * Optional. Generation of the Cloud Storage object which contained the
    +       * section that couldn't be ingested.
    +       * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + @java.lang.Override + public long getObjectGeneration() { + return objectGeneration_; + } + /** + * + * + *
    +       * Optional. Generation of the Cloud Storage object which contained the
    +       * section that couldn't be ingested.
    +       * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The objectGeneration to set. + * @return This builder for chaining. + */ + public Builder setObjectGeneration(long value) { + + objectGeneration_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Generation of the Cloud Storage object which contained the
    +       * section that couldn't be ingested.
    +       * 
    + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObjectGeneration() { + bitField0_ = (bitField0_ & ~0x00000004); + objectGeneration_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> + avroFailureReasonBuilder_; + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + @java.lang.Override + public boolean hasAvroFailureReason() { + return reasonCase_ == 5; + } + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return avroFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { + if (avroFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + avroFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder builderForValue) { + if (avroFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + avroFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + avroFailureReasonBuilder_.mergeFrom(value); + } else { + avroFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAvroFailureReason() { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + avroFailureReasonBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder + getAvroFailureReasonBuilder() { + return getAvroFailureReasonFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder() { + if ((reasonCase_ == 5) && (avroFailureReasonBuilder_ != null)) { + return avroFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. Failure encountered when parsing an Avro file.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> + getAvroFailureReasonFieldBuilder() { + if (avroFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + avroFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return avroFailureReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 6; + onChanged(); + return apiViolationReasonBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + private static final com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageFailure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int failureCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object failure_; + + public enum FailureCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUD_STORAGE_FAILURE(3), + FAILURE_NOT_SET(0); + private final int value; + + private FailureCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FailureCase valueOf(int value) { + return forNumber(value); + } + + public static FailureCase forNumber(int value) { + switch (value) { + case 3: + return CLOUD_STORAGE_FAILURE; + case 0: + return FAILURE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FailureCase getFailureCase() { + return FailureCase.forNumber(failureCase_); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + * + * + *
    +   * Required. Name of the import topic. Format is:
    +   * projects/{project_name}/topics/{topic_name}.
    +   * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Name of the import topic. Format is:
    +   * projects/{project_name}/topics/{topic_name}.
    +   * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + /** + * + * + *
    +   * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +   * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +   * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_STORAGE_FAILURE_FIELD_NUMBER = 3; + /** + * + * + *
    +   * Optional. Failure when ingesting from Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageFailure field is set. + */ + @java.lang.Override + public boolean hasCloudStorageFailure() { + return failureCase_ == 3; + } + /** + * + * + *
    +   * Optional. Failure when ingesting from Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Failure when ingesting from Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder + getCloudStorageFailureOrBuilder() { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); + } + if (failureCase_ == 3) { + output.writeMessage( + 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); + } + if (failureCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent other = + (com.google.pubsub.v1.IngestionFailureEvent) obj; + + if (!getTopic().equals(other.getTopic())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getFailureCase().equals(other.getFailureCase())) return false; + switch (failureCase_) { + case 3: + if (!getCloudStorageFailure().equals(other.getCloudStorageFailure())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + switch (failureCase_) { + case 3: + hash = (37 * hash) + CLOUD_STORAGE_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageFailure().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.IngestionFailureEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Payload of the Platform Log entry sent when a failure is encountered while
    +   * ingesting.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent) + com.google.pubsub.v1.IngestionFailureEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.class, + com.google.pubsub.v1.IngestionFailureEvent.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + topic_ = ""; + errorMessage_ = ""; + if (cloudStorageFailureBuilder_ != null) { + cloudStorageFailureBuilder_.clear(); + } + failureCase_ = 0; + failure_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent build() { + com.google.pubsub.v1.IngestionFailureEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent result = + new com.google.pubsub.v1.IngestionFailureEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.IngestionFailureEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.IngestionFailureEvent result) { + result.failureCase_ = failureCase_; + result.failure_ = this.failure_; + if (failureCase_ == 3 && cloudStorageFailureBuilder_ != null) { + result.failure_ = cloudStorageFailureBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent other) { + if (other == com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getFailureCase()) { + case CLOUD_STORAGE_FAILURE: + { + mergeCloudStorageFailure(other.getCloudStorageFailure()); + break; + } + case FAILURE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCloudStorageFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int failureCase_ = 0; + private java.lang.Object failure_; + + public FailureCase getFailureCase() { + return FailureCase.forNumber(failureCase_); + } + + public Builder clearFailure() { + failureCase_ = 0; + failure_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object topic_ = ""; + /** + * + * + *
    +     * Required. Name of the import topic. Format is:
    +     * projects/{project_name}/topics/{topic_name}.
    +     * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Name of the import topic. Format is:
    +     * projects/{project_name}/topics/{topic_name}.
    +     * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Name of the import topic. Format is:
    +     * projects/{project_name}/topics/{topic_name}.
    +     * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Name of the import topic. Format is:
    +     * projects/{project_name}/topics/{topic_name}.
    +     * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Name of the import topic. Format is:
    +     * projects/{project_name}/topics/{topic_name}.
    +     * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + * + * + *
    +     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> + cloudStorageFailureBuilder_; + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageFailure field is set. + */ + @java.lang.Override + public boolean hasCloudStorageFailure() { + return failureCase_ == 3; + } + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } else { + if (failureCase_ == 3) { + return cloudStorageFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { + if (cloudStorageFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; + onChanged(); + } else { + cloudStorageFailureBuilder_.setMessage(value); + } + failureCase_ = 3; + return this; + } + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder builderForValue) { + if (cloudStorageFailureBuilder_ == null) { + failure_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageFailureBuilder_.setMessage(builderForValue.build()); + } + failureCase_ = 3; + return this; + } + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } + onChanged(); + } else { + if (failureCase_ == 3) { + cloudStorageFailureBuilder_.mergeFrom(value); + } else { + cloudStorageFailureBuilder_.setMessage(value); + } + } + failureCase_ = 3; + return this; + } + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudStorageFailure() { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } + } else { + if (failureCase_ == 3) { + failureCase_ = 0; + failure_ = null; + } + cloudStorageFailureBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder + getCloudStorageFailureBuilder() { + return getCloudStorageFailureFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder + getCloudStorageFailureOrBuilder() { + if ((failureCase_ == 3) && (cloudStorageFailureBuilder_ != null)) { + return cloudStorageFailureBuilder_.getMessageOrBuilder(); + } else { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> + getCloudStorageFailureFieldBuilder() { + if (cloudStorageFailureBuilder_ == null) { + if (!(failureCase_ == 3)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + cloudStorageFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_, + getParentForChildren(), + isClean()); + failure_ = null; + } + failureCase_ = 3; + onChanged(); + return cloudStorageFailureBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent) + private static final com.google.pubsub.v1.IngestionFailureEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestionFailureEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java new file mode 100644 index 000000000000..af081e3d72e9 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +public interface IngestionFailureEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Name of the import topic. Format is:
    +   * projects/{project_name}/topics/{topic_name}.
    +   * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
    +   * Required. Name of the import topic. Format is:
    +   * projects/{project_name}/topics/{topic_name}.
    +   * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
    +   * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +   * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + * + * + *
    +   * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +   * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); + + /** + * + * + *
    +   * Optional. Failure when ingesting from Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageFailure field is set. + */ + boolean hasCloudStorageFailure(); + /** + * + * + *
    +   * Optional. Failure when ingesting from Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure(); + /** + * + * + *
    +   * Optional. Failure when ingesting from Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder + getCloudStorageFailureOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.FailureCase getFailureCase(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 5a149347ffb9..28c7f6b27e68 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -64,6 +64,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -365,351 +381,365 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v1.PlatformLogsSettings.SeverityB\003\340A\001\"_" + "\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010" + "DISABLED\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\013\n\007WARNI" - + "NG\020\004\022\t\n\005ERROR\020\005\"\272\005\n\005Topic\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pubsub.v1." - + "Topic.LabelsEntryB\003\340A\001\022K\n\026message_storag" - + "e_policy\030\003 \001(\0132&.google.pubsub.v1.Messag" - + "eStoragePolicyB\003\340A\001\022\031\n\014kms_key_name\030\005 \001(" - + "\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 .google" - + ".pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsatisf" - + "ies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_" - + "duration\030\010 \001(\0132\031.google.protobuf.Duratio" - + "nB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pubsub.v1" - + ".Topic.StateB\003\340A\003\022Z\n\036ingestion_data_sour" - + "ce_settings\030\n \001(\0132-.google.pubsub.v1.Ing" - + "estionDataSourceSettingsB\003\340A\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001" - + "\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:T\352AQ\n\033pub" - + "sub.googleapis.com/Topic\022!projects/{proj" - + "ect}/topics/{topic}\022\017_deleted-topic_\"\200\002\n" - + "\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001\022H\n\natt" - + "ributes\030\002 \003(\0132/.google.pubsub.v1.PubsubM" - + "essage.AttributesEntryB\003\340A\001\022\022\n\nmessage_i" - + "d\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022\031\n\014ordering_key\030\005 \001(\tB" - + "\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005to" - + "pic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" - + "/Topic\"w\n\022UpdateTopicRequest\022+\n\005topic\030\001 " - + "\001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001(\t" - + "B#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n" - + "\010messages\030\002 \003(\0132\037.google.pubsub.v1.Pubsu" - + "bMessageB\003\340A\002\"+\n\017PublishResponse\022\030\n\013mess" - + "age_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopicsRequest" - + "\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresource" - + "manager.googleapis.com/Project\022\026\n\tpage_s" - + "ize\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"" - + "`\n\022ListTopicsResponse\022,\n\006topics\030\001 \003(\0132\027." - + "google.pubsub.v1.TopicB\003\340A\001\022\034\n\017next_page" - + "_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSubscript" - + "ionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubs" - + "ub.googleapis.com/Topic\022\026\n\tpage_size\030\002 \001" - + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\036Lis" - + "tTopicSubscriptionsResponse\022A\n\rsubscript" - + "ions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\022\034\n\017next_page_token\030\002 \001(\tB" - + "\003\340A\001\"\200\001\n\031ListTopicSnapshotsRequest\0222\n\005to" - + "pic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com" - + "/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" - + "oken\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnapshotsRes" - + "ponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017next_pa" - + "ge_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopicReques" - + "t\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googlea" - + "pis.com/Topic\"]\n\031DetachSubscriptionReque" + + "NG\020\004\022\t\n\005ERROR\020\005\"\221\004\n\025IngestionFailureEven" + + "t\022\022\n\005topic\030\001 \001(\tB\003\340A\002\022\032\n\rerror_message\030\002" + + " \001(\tB\003\340A\002\022a\n\025cloud_storage_failure\030\003 \001(\013" + + "2;.google.pubsub.v1.IngestionFailureEven" + + "t.CloudStorageFailureB\003\340A\001H\000\032\024\n\022ApiViola" + + "tionReason\032\023\n\021AvroFailureReason\032\256\002\n\023Clou" + + "dStorageFailure\022\023\n\006bucket\030\001 \001(\tB\003\340A\001\022\030\n\013" + + "object_name\030\002 \001(\tB\003\340A\001\022\036\n\021object_generat" + + "ion\030\003 \001(\003B\003\340A\001\022]\n\023avro_failure_reason\030\005 " + + "\001(\01329.google.pubsub.v1.IngestionFailureE" + + "vent.AvroFailureReasonB\003\340A\001H\000\022_\n\024api_vio" + + "lation_reason\030\006 \001(\0132:.google.pubsub.v1.I" + + "ngestionFailureEvent.ApiViolationReasonB" + + "\003\340A\001H\000B\010\n\006reasonB\t\n\007failure\"\272\005\n\005Topic\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.googl" + + "e.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n\026me" + + "ssage_storage_policy\030\003 \001(\0132&.google.pubs" + + "ub.v1.MessageStoragePolicyB\003\340A\001\022\031\n\014kms_k" + + "ey_name\030\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 " + + "\001(\0132 .google.pubsub.v1.SchemaSettingsB\003\340" + + "A\001\022\032\n\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032messag" + + "e_retention_duration\030\010 \001(\0132\031.google.prot" + + "obuf.DurationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.goog" + + "le.pubsub.v1.Topic.StateB\003\340A\003\022Z\n\036ingesti" + + "on_data_source_settings\030\n \001(\0132-.google.p" + + "ubsub.v1.IngestionDataSourceSettingsB\003\340A" + + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" + + "\022\n\n\006ACTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR" + + "\020\002:T\352AQ\n\033pubsub.googleapis.com/Topic\022!pr" + + "ojects/{project}/topics/{topic}\022\017_delete" + + "d-topic_\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014" + + "B\003\340A\001\022H\n\nattributes\030\002 \003(\0132/.google.pubsu" + + "b.v1.PubsubMessage.AttributesEntryB\003\340A\001\022" + + "\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(" + + "\0132\032.google.protobuf.Timestamp\022\031\n\014orderin" + + "g_key\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicR" + + "equest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.go" + + "ogleapis.com/Topic\"w\n\022UpdateTopicRequest" + + "\022+\n\005topic\030\001 \001(\0132\027.google.pubsub.v1.Topic" + + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis." + + "com/Topic\0226\n\010messages\030\002 \003(\0132\037.google.pub" + + "sub.v1.PubsubMessageB\003\340A\002\"+\n\017PublishResp" + + "onse\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListT" + + "opicsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" + + "\030\003 \001(\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006top" + + "ics\030\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022" + + "\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTo" + + "picSubscriptionsRequest\0222\n\005topic\030\001 \001(\tB#" + + "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022\026\n\tp" + + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" + + "\003\340A\001\"\201\001\n\036ListTopicSubscriptionsResponse\022" + + "A\n\rsubscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.g" + + "oogleapis.com/Subscription\022\034\n\017next_page_" + + "token\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsR" + + "equest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.go" + + "ogleapis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340" + + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopic" + + "SnapshotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A" + + "\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022Delet" + + "eTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" + + "bsub.googleapis.com/Topic\"]\n\031DetachSubsc" + + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\"\034\n\032DetachSubscriptionResponse\"\253\n\n\014Subsc" + + "ription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(" + + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226" + + "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" + + "ushConfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132" + + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G" + + "\n\024cloud_storage_config\030\026 \001(\0132$.google.pu" + + "bsub.v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_d" + + "eadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_ack" + + "ed_messages\030\007 \001(\010B\003\340A\001\022B\n\032message_retent" + + "ion_duration\030\010 \001(\0132\031.google.protobuf.Dur" + + "ationB\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubs" + + "ub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n\027e" + + "nable_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021exp" + + "iration_policy\030\013 \001(\0132\".google.pubsub.v1." + + "ExpirationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340" + + "A\001\022C\n\022dead_letter_policy\030\r \001(\0132\".google." + + "pubsub.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry" + + "_policy\030\016 \001(\0132\035.google.pubsub.v1.RetryPo" + + "licyB\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enab" + + "le_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n t" + + "opic_message_retention_duration\030\021 \001(\0132\031." + + "google.protobuf.DurationB\003\340A\003\0228\n\005state\030\023" + + " \001(\0162$.google.pubsub.v1.Subscription.Sta" + + "teB\003\340A\003\022i\n\037analytics_hub_subscription_in" + + "fo\030\027 \001(\0132;.google.pubsub.v1.Subscription" + + ".AnalyticsHubSubscriptionInfoB\003\340A\003\032O\n\034An" + + "alyticsHubSubscriptionInfo\022\024\n\007listing\030\001 " + + "\001(\tB\003\340A\001\022\031\n\014subscription\030\002 \001(\tB\003\340A\001\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006AC" + + "TIVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub." + + "googleapis.com/Subscription\022/projects/{p" + + "roject}/subscriptions/{subscription}\"\177\n\013" + + "RetryPolicy\0227\n\017minimum_backoff\030\001 \001(\0132\031.g" + + "oogle.protobuf.DurationB\003\340A\001\0227\n\017maximum_" + + "backoff\030\002 \001(\0132\031.google.protobuf.Duration" + + "B\003\340A\001\"V\n\020DeadLetterPolicy\022\036\n\021dead_letter" + + "_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_delivery_attemp" + + "ts\030\002 \001(\005B\003\340A\001\"?\n\020ExpirationPolicy\022+\n\003ttl" + + "\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232" + + "\004\n\nPushConfig\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A" + + "\001\022E\n\nattributes\030\002 \003(\0132,.google.pubsub.v1" + + ".PushConfig.AttributesEntryB\003\340A\001\022A\n\noidc" + + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" + + "ig.OidcTokenB\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 " + + "\001(\0132*.google.pubsub.v1.PushConfig.Pubsub" + + "WrapperB\003\340A\001H\001\022A\n\nno_wrapper\030\005 \001(\0132&.goo" + + "gle.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H" + + "\001\032F\n\tOidcToken\022\"\n\025service_account_email\030" + + "\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPub" + + "subWrapper\032(\n\tNoWrapper\022\033\n\016write_metadat" + + "a\030\001 \001(\010B\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authenticatio" + + "n_methodB\t\n\007wrapper\"\216\003\n\016BigQueryConfig\022\022" + + "\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_topic_schema\030\002" + + " \001(\010B\003\340A\001\022\033\n\016write_metadata\030\003 \001(\010B\003\340A\001\022 " + + "\n\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n\005stat" + + "e\030\005 \001(\0162&.google.pubsub.v1.BigQueryConfi" + + "g.StateB\003\340A\003\022\035\n\020use_table_schema\030\006 \001(\010B\003" + + "\340A\001\022\"\n\025service_account_email\030\007 \001(\tB\003\340A\001\"" + + "\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTI" + + "VE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND" + + "\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRANSIT_LO" + + "CATION_RESTRICTION\020\005\"\351\005\n\022CloudStorageCon" + + "fig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filename_pre" + + "fix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix\030\003 \001(\tB" + + "\003\340A\001\022%\n\030filename_datetime_format\030\n \001(\tB\003" + + "\340A\001\022K\n\013text_config\030\004 \001(\0132/.google.pubsub" + + ".v1.CloudStorageConfig.TextConfigB\003\340A\001H\000" + + "\022K\n\013avro_config\030\005 \001(\0132/.google.pubsub.v1" + + ".CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\014max_duration\030\006 \001(\0132\031.google.protobuf.Du" + + "rationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014m" + + "ax_messages\030\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*." + + "google.pubsub.v1.CloudStorageConfig.Stat" + + "eB\003\340A\003\022\"\n\025service_account_email\030\013 \001(\tB\003\340" + + "A\001\032\014\n\nTextConfig\032H\n\nAvroConfig\022\033\n\016write_" + + "metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use_topic_schema\030" + + "\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r" + + "\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RES" + + "TRICTION\020\004\022\023\n\017SCHEMA_MISMATCH\020\005B\017\n\routpu" + + "t_format\"|\n\017ReceivedMessage\022\023\n\006ack_id\030\001 " + + "\001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.google.pubsu" + + "b.v1.PubsubMessageB\003\340A\001\022\035\n\020delivery_atte" + + "mpt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscriptionRequest" + + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" + + "oogleapis.com/Subscription\"\214\001\n\031UpdateSub" + + "scriptionRequest\0229\n\014subscription\030\001 \001(\0132\036" + + ".google.pubsub.v1.SubscriptionB\003\340A\002\0224\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRequest\022D" + + "\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n" + + "\031ListSubscriptionsResponse\022:\n\rsubscripti" + + "ons\030\001 \003(\0132\036.google.pubsub.v1.Subscriptio" + + "nB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n\031" + + "DeleteSubscriptionRequest\022@\n\014subscriptio" + + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S" + + "ubscription\"\223\001\n\027ModifyPushConfigRequest\022" + + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" + + "ogleapis.com/Subscription\0226\n\013push_config" + + "\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A" + + "\002\"\215\001\n\013PullRequest\022@\n\014subscription\030\001 \001(\tB" + + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" + + "ion\022!\n\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031" + + "\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014PullRespons" + + "e\022A\n\021received_messages\030\001 \003(\0132!.google.pu" + + "bsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030ModifyA" + + "ckDeadlineRequest\022@\n\014subscription\030\001 \001(\tB" + + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" + + "ion\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadlin" + + "e_seconds\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeReque" + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\"\034\n\032DetachSu" - + "bscriptionResponse\"\253\n\n\014Subscription\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033p" - + "ubsub.googleapis.com/Topic\0226\n\013push_confi" - + "g\030\004 \001(\0132\034.google.pubsub.v1.PushConfigB\003\340" - + "A\001\022>\n\017bigquery_config\030\022 \001(\0132 .google.pub" - + "sub.v1.BigQueryConfigB\003\340A\001\022G\n\024cloud_stor" - + "age_config\030\026 \001(\0132$.google.pubsub.v1.Clou" - + "dStorageConfigB\003\340A\001\022!\n\024ack_deadline_seco" - + "nds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_messages\030" - + "\007 \001(\010B\003\340A\001\022B\n\032message_retention_duration" - + "\030\010 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?" - + "\n\006labels\030\t \003(\0132*.google.pubsub.v1.Subscr" - + "iption.LabelsEntryB\003\340A\001\022$\n\027enable_messag" - + "e_ordering\030\n \001(\010B\003\340A\001\022B\n\021expiration_poli" - + "cy\030\013 \001(\0132\".google.pubsub.v1.ExpirationPo" - + "licyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n\022dead_l" - + "etter_policy\030\r \001(\0132\".google.pubsub.v1.De" - + "adLetterPolicyB\003\340A\001\0228\n\014retry_policy\030\016 \001(" - + "\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" - + "\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_exactly_o" - + "nce_delivery\030\020 \001(\010B\003\340A\001\022H\n topic_message" - + "_retention_duration\030\021 \001(\0132\031.google.proto" - + "buf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\0162$.googl" - + "e.pubsub.v1.Subscription.StateB\003\340A\003\022i\n\037a" - + "nalytics_hub_subscription_info\030\027 \001(\0132;.g" - + "oogle.pubsub.v1.Subscription.AnalyticsHu" - + "bSubscriptionInfoB\003\340A\003\032O\n\034AnalyticsHubSu" - + "bscriptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014" - + "subscription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022" - + "\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RE" - + "SOURCE_ERROR\020\002:X\352AU\n\"pubsub.googleapis.c" - + "om/Subscription\022/projects/{project}/subs" - + "criptions/{subscription}\"\177\n\013RetryPolicy\022" - + "7\n\017minimum_backoff\030\001 \001(\0132\031.google.protob" - + "uf.DurationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(" - + "\0132\031.google.protobuf.DurationB\003\340A\001\"V\n\020Dea" - + "dLetterPolicy\022\036\n\021dead_letter_topic\030\001 \001(\t" - + "B\003\340A\001\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A" - + "\001\"?\n\020ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.goo" - + "gle.protobuf.DurationB\003\340A\001\"\232\004\n\nPushConfi" - + "g\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattribu" - + "tes\030\002 \003(\0132,.google.pubsub.v1.PushConfig." - + "AttributesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\013" - + "2&.google.pubsub.v1.PushConfig.OidcToken" - + "B\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google" - + ".pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001" - + "H\001\022A\n\nno_wrapper\030\005 \001(\0132&.google.pubsub.v" - + "1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcTok" - + "en\022\"\n\025service_account_email\030\001 \001(\tB\003\340A\001\022\025" - + "\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(" - + "\n\tNoWrapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001" - + "\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001B\027\n\025authentication_methodB\t\n\007" - + "wrapper\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(" - + "\tB\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" - + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unkno" - + "wn_fields\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.go" - + "ogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003" - + "\022\035\n\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025servi" - + "ce_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERM" - + "ISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA" - + "_MISMATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTR" - + "ICTION\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucke" - + "t\030\001 \001(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340" - + "A\001\022\034\n\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030file" - + "name_datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_" - + "config\030\004 \001(\0132/.google.pubsub.v1.CloudSto" - + "rageConfig.TextConfigB\003\340A\001H\000\022K\n\013avro_con" - + "fig\030\005 \001(\0132/.google.pubsub.v1.CloudStorag" - + "eConfig.AvroConfigB\003\340A\001H\000\0224\n\014max_duratio" - + "n\030\006 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022" - + "\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030" - + "\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsu" - + "b.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n\025se" - + "rvice_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextCo" - + "nfig\032H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" - + "(\010B\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212" - + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" - + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" - + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023" - + "\n\017SCHEMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017" - + "ReceivedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007" - + "message\030\002 \001(\0132\037.google.pubsub.v1.PubsubM" - + "essageB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340" - + "A\001\"Z\n\026GetSubscriptionRequest\022@\n\014subscrip" - + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\"\214\001\n\031UpdateSubscriptionReq" - + "uest\0229\n\014subscription\030\001 \001(\0132\036.google.pubs" - + "ub.v1.SubscriptionB\003\340A\002\0224\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001" - + "\n\030ListSubscriptionsRequest\022D\n\007project\030\001 " - + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" - + "apis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" - + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscri" - + "ptionsResponse\022:\n\rsubscriptions\030\001 \003(\0132\036." - + "google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017ne" - + "xt_page_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscr" - + "iptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\"" - + "\223\001\n\027ModifyPushConfigRequest\022@\n\014subscript" - + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" - + "/Subscription\0226\n\013push_config\030\002 \001(\0132\034.goo" - + "gle.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\022!\n\022retur" - + "n_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messag" - + "es\030\003 \001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021receive" - + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" - + "ivedMessageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\022\024\n\007ack_i" - + "ds\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 " - + "\001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscr" - + "iption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis." - + "com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307" - + "\002\n\024StreamingPullRequest\022@\n\014subscription\030" - + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modif" - + "y_deadline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_" - + "deadline_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ac" - + "k_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_" - + "id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstanding_message" - + "s\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 " - + "\001(\003B\003\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021re" - + "ceived_messages\030\001 \003(\0132!.google.pubsub.v1" - + ".ReceivedMessageB\003\340A\001\022f\n\030acknowledge_con" - + "firmation\030\005 \001(\0132?.google.pubsub.v1.Strea" - + "mingPullResponse.AcknowledgeConfirmation" - + "B\003\340A\001\022t\n modify_ack_deadline_confirmatio" - + "n\030\003 \001(\0132E.google.pubsub.v1.StreamingPull" - + "Response.ModifyAckDeadlineConfirmationB\003" - + "\340A\001\022d\n\027subscription_properties\030\004 \001(\0132>.g" - + "oogle.pubsub.v1.StreamingPullResponse.Su" - + "bscriptionPropertiesB\003\340A\001\032\224\001\n\027Acknowledg" - + "eConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017i" - + "nvalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_a" - + "ck_ids\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ac" - + "k_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineCon" - + "firmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017inval" - + "id_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_faile" - + "d_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProp" - + "erties\022*\n\035exactly_once_delivery_enabled\030" - + "\001 \001(\010B\003\340A\001\022%\n\030message_ordering_enabled\030\002" - + " \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004n" - + "ame\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com" - + "/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022H\n\006l" - + "abels\030\003 \003(\01323.google.pubsub.v1.CreateSna" - + "pshotRequest.LabelsEntryB\003\340A\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n" - + "\025UpdateSnapshotRequest\0221\n\010snapshot\030\001 \001(\013" - + "2\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\002\"\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\022" - + "2\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapi" - + "s.com/Topic\0224\n\013expire_time\030\003 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(" - + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" - + "yB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.co" - + "m/Snapshot\022\'projects/{project}/snapshots" - + "/{snapshot}\"N\n\022GetSnapshotRequest\0228\n\010sna" - + "pshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.c" - + "om/Snapshot\"\215\001\n\024ListSnapshotsRequest\022D\n\007" - + "project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" - + "ger.googleapis.com/Project\022\026\n\tpage_size\030" - + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025L" - + "istSnapshotsResponse\0222\n\tsnapshots\030\001 \003(\0132" - + "\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next" - + "_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshot" - + "Request\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsu" - + "b.googleapis.com/Snapshot\"\306\001\n\013SeekReques" - + "t\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub." - + "googleapis.com/Subscription\022/\n\004time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n\010" - + "snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapi" - + "s.com/SnapshotH\000B\010\n\006target\"\016\n\014SeekRespon" - + "se2\270\013\n\tPublisher\022q\n\013CreateTopic\022\027.google" - + ".pubsub.v1.Topic\032\027.google.pubsub.v1.Topi" - + "c\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/t" - + "opics/*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pub" - + "sub.v1.UpdateTopicRequest\032\027.google.pubsu" - + "b.v1.Topic\"C\332A\021topic,update_mask\202\323\344\223\002)2$" - + "/v1/{topic.name=projects/*/topics/*}:\001*\022" - + "\223\001\n\007Publish\022 .google.pubsub.v1.PublishRe" - + "quest\032!.google.pubsub.v1.PublishResponse" - + "\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=pr" - + "ojects/*/topics/*}:publish:\001*\022w\n\010GetTopi" - + "c\022!.google.pubsub.v1.GetTopicRequest\032\027.g" - + "oogle.pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/" - + "v1/{topic=projects/*/topics/*}\022\212\001\n\nListT" - + "opics\022#.google.pubsub.v1.ListTopicsReque" - + "st\032$.google.pubsub.v1.ListTopicsResponse" - + "\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=project" - + "s/*}/topics\022\272\001\n\026ListTopicSubscriptions\022/" - + ".google.pubsub.v1.ListTopicSubscriptions" - + "Request\0320.google.pubsub.v1.ListTopicSubs" - + "criptionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{" - + "topic=projects/*/topics/*}/subscriptions" - + "\022\252\001\n\022ListTopicSnapshots\022+.google.pubsub." - + "v1.ListTopicSnapshotsRequest\032,.google.pu" - + "bsub.v1.ListTopicSnapshotsResponse\"9\332A\005t" - + "opic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics" - + "/*}/snapshots\022|\n\013DeleteTopic\022$.google.pu" - + "bsub.v1.DeleteTopicRequest\032\026.google.prot" - + "obuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=p" - + "rojects/*/topics/*}\022\255\001\n\022DetachSubscripti" - + "on\022+.google.pubsub.v1.DetachSubscription" - + "Request\032,.google.pubsub.v1.DetachSubscri" - + "ptionResponse\"<\202\323\344\223\0026\"4/v1/{subscription" - + "=projects/*/subscriptions/*}:detach\032p\312A\025" - + "pubsub.googleapis.com\322AUhttps://www.goog" - + "leapis.com/auth/cloud-platform,https://w" - + "ww.googleapis.com/auth/pubsub2\322\025\n\nSubscr" - + "iber\022\264\001\n\022CreateSubscription\022\036.google.pub" - + "sub.v1.Subscription\032\036.google.pubsub.v1.S" - + "ubscription\"^\332A+name,topic,push_config,a" - + "ck_deadline_seconds\202\323\344\223\002*\032%/v1/{name=pro" - + "jects/*/subscriptions/*}:\001*\022\241\001\n\017GetSubsc" - + "ription\022(.google.pubsub.v1.GetSubscripti" - + "onRequest\032\036.google.pubsub.v1.Subscriptio" - + "n\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{subscript" - + "ion=projects/*/subscriptions/*}\022\273\001\n\022Upda" - + "teSubscription\022+.google.pubsub.v1.Update" - + "SubscriptionRequest\032\036.google.pubsub.v1.S" - + "ubscription\"X\332A\030subscription,update_mask" - + "\202\323\344\223\002722/v1/{subscription.name=projects/" - + "*/subscriptions/*}:\001*\022\246\001\n\021ListSubscripti" - + "ons\022*.google.pubsub.v1.ListSubscriptions" - + "Request\032+.google.pubsub.v1.ListSubscript" - + "ionsResponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{pro" - + "ject=projects/*}/subscriptions\022\237\001\n\022Delet" - + "eSubscription\022+.google.pubsub.v1.DeleteS" - + "ubscriptionRequest\032\026.google.protobuf.Emp" - + "ty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{subscrip" - + "tion=projects/*/subscriptions/*}\022\317\001\n\021Mod" - + "ifyAckDeadline\022*.google.pubsub.v1.Modify" - + "AckDeadlineRequest\032\026.google.protobuf.Emp" - + "ty\"v\332A)subscription,ack_ids,ack_deadline" - + "_seconds\202\323\344\223\002D\"?/v1/{subscription=projec" - + "ts/*/subscriptions/*}:modifyAckDeadline:" - + "\001*\022\250\001\n\013Acknowledge\022$.google.pubsub.v1.Ac" - + "knowledgeRequest\032\026.google.protobuf.Empty" - + "\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9/v1/{su" - + "bscription=projects/*/subscriptions/*}:a" - + "cknowledge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v" - + "1.PullRequest\032\036.google.pubsub.v1.PullRes" - + "ponse\"\210\001\332A,subscription,return_immediate" - + "ly,max_messages\332A\031subscription,max_messa" - + "ges\202\323\344\223\0027\"2/v1/{subscription=projects/*/" - + "subscriptions/*}:pull:\001*\022f\n\rStreamingPul" - + "l\022&.google.pubsub.v1.StreamingPullReques" - + "t\032\'.google.pubsub.v1.StreamingPullRespon" - + "se\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).google.p" - + "ubsub.v1.ModifyPushConfigRequest\032\026.googl" - + "e.protobuf.Empty\"d\332A\030subscription,push_c" - + "onfig\202\323\344\223\002C\">/v1/{subscription=projects/" - + "*/subscriptions/*}:modifyPushConfig:\001*\022\211" - + "\001\n\013GetSnapshot\022$.google.pubsub.v1.GetSna" - + "pshotRequest\032\032.google.pubsub.v1.Snapshot" - + "\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=proje" - + "cts/*/snapshots/*}\022\226\001\n\rListSnapshots\022&.g" - + "oogle.pubsub.v1.ListSnapshotsRequest\032\'.g" - + "oogle.pubsub.v1.ListSnapshotsResponse\"4\332" - + "A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*" - + "}/snapshots\022\227\001\n\016CreateSnapshot\022\'.google." - + "pubsub.v1.CreateSnapshotRequest\032\032.google" - + ".pubsub.v1.Snapshot\"@\332A\021name,subscriptio" - + "n\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/" - + "*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.google.pubsub" - + ".v1.UpdateSnapshotRequest\032\032.google.pubsu" - + "b.v1.Snapshot\"L\332A\024snapshot,update_mask\202\323" - + "\344\223\002/2*/v1/{snapshot.name=projects/*/snap" - + "shots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google." - + "pubsub.v1.DeleteSnapshotRequest\032\026.google" - + ".protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/" - + "{snapshot=projects/*/snapshots/*}\022\204\001\n\004Se" - + "ek\022\035.google.pubsub.v1.SeekRequest\032\036.goog" - + "le.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{" + + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" + + "\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullRequest\022@\n\014s" + + "ubscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.google" + + "apis.com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003" + + "\340A\001\022$\n\027modify_deadline_seconds\030\003 \003(\005B\003\340A" + + "\001\022$\n\027modify_deadline_ack_ids\030\004 \003(\tB\003\340A\001\022" + + "(\n\033stream_ack_deadline_seconds\030\005 \001(\005B\003\340A" + + "\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstan" + + "ding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstand" + + "ing_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025StreamingPullRe" + + "sponse\022A\n\021received_messages\030\001 \003(\0132!.goog" + + "le.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n\030ack" + + "nowledge_confirmation\030\005 \001(\0132?.google.pub" + + "sub.v1.StreamingPullResponse.Acknowledge" + + "ConfirmationB\003\340A\001\022t\n modify_ack_deadline" + + "_confirmation\030\003 \001(\0132E.google.pubsub.v1.S" + + "treamingPullResponse.ModifyAckDeadlineCo" + + "nfirmationB\003\340A\001\022d\n\027subscription_properti" + + "es\030\004 \001(\0132>.google.pubsub.v1.StreamingPul" + + "lResponse.SubscriptionPropertiesB\003\340A\001\032\224\001" + + "\n\027AcknowledgeConfirmation\022\024\n\007ack_ids\030\001 \003" + + "(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" + + "\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030tempora" + + "ry_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAc" + + "kDeadlineConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003" + + "\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030tem" + + "porary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026Subs" + + "criptionProperties\022*\n\035exactly_once_deliv" + + "ery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message_orderi" + + "ng_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshot" + + "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.go" + + "ogleapis.com/Snapshot\022@\n\014subscription\030\002 " + + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" + + "ription\022H\n\006labels\030\003 \003(\01323.google.pubsub." + + "v1.CreateSnapshotRequest.LabelsEntryB\003\340A" + + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010sn" + + "apshot\030\001 \001(\0132\032.google.pubsub.v1.Snapshot" + + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubs" + + "ub.googleapis.com/Topic\0224\n\013expire_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" + + "\006labels\030\004 \003(\0132&.google.pubsub.v1.Snapsho" + + "t.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.g" + + "oogleapis.com/Snapshot\022\'projects/{projec" + + "t}/snapshots/{snapshot}\"N\n\022GetSnapshotRe" + + "quest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub." + + "googleapis.com/Snapshot\"\215\001\n\024ListSnapshot" + + "sRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloud" + + "resourcemanager.googleapis.com/Project\022\026" + + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + + "(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\0222\n\tsnap" + + "shots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB" + + "\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025De" + + "leteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340" + + "A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\306\001" + + "\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "/\n\004time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubs" + + "ub.googleapis.com/SnapshotH\000B\010\n\006target\"\016" + + "\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013CreateTo" + + "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu" + + "bsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=" + + "projects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022" + + "$.google.pubsub.v1.UpdateTopicRequest\032\027." + + "google.pubsub.v1.Topic\"C\332A\021topic,update_" + + "mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/t" + + "opics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub." + + "v1.PublishRequest\032!.google.pubsub.v1.Pub" + + "lishResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/" + + "v1/{topic=projects/*/topics/*}:publish:\001" + + "*\022w\n\010GetTopic\022!.google.pubsub.v1.GetTopi" + + "cRequest\032\027.google.pubsub.v1.Topic\"/\332A\005to" + + "pic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/" + + "*}\022\212\001\n\nListTopics\022#.google.pubsub.v1.Lis" + + "tTopicsRequest\032$.google.pubsub.v1.ListTo" + + "picsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{pro" + + "ject=projects/*}/topics\022\272\001\n\026ListTopicSub" + + "scriptions\022/.google.pubsub.v1.ListTopicS" + + "ubscriptionsRequest\0320.google.pubsub.v1.L" + + "istTopicSubscriptionsResponse\"=\332A\005topic\202" + + "\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/s" + + "ubscriptions\022\252\001\n\022ListTopicSnapshots\022+.go" + + "ogle.pubsub.v1.ListTopicSnapshotsRequest" + + "\032,.google.pubsub.v1.ListTopicSnapshotsRe" + + "sponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=proje" + + "cts/*/topics/*}/snapshots\022|\n\013DeleteTopic" + + "\022$.google.pubsub.v1.DeleteTopicRequest\032\026" + + ".google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037" + + "/v1/{topic=projects/*/topics/*}\022\255\001\n\022Deta" + + "chSubscription\022+.google.pubsub.v1.Detach" + + "SubscriptionRequest\032,.google.pubsub.v1.D" + + "etachSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{" + "subscription=projects/*/subscriptions/*}" - + ":seek:\001*\032p\312A\025pubsub.googleapis.com\322AUhtt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm,https://www.googleapis.com/auth/pubs" - + "ubB\252\001\n\024com.google.pubsub.v1B\013PubsubProto" - + "P\001Z2cloud.google.com/go/pubsub/apiv1/pub" - + "subpb;pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.", - "V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cl" + "oud::PubSub::V1b\006proto3" + + ":detach\032p\312A\025pubsub.googleapis.com\322AUhttp" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rm,https://www.googleapis.com/auth/pubsu" + + "b2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022" + + "\036.google.pubsub.v1.Subscription\032\036.google" + + ".pubsub.v1.Subscription\"^\332A+name,topic,p" + + "ush_config,ack_deadline_seconds\202\323\344\223\002*\032%/" + + "v1/{name=projects/*/subscriptions/*}:\001*\022" + + "\241\001\n\017GetSubscription\022(.google.pubsub.v1.G" + + "etSubscriptionRequest\032\036.google.pubsub.v1" + + ".Subscription\"D\332A\014subscription\202\323\344\223\002/\022-/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}\022\273\001\n\022UpdateSubscription\022+.google.pubs" + + "ub.v1.UpdateSubscriptionRequest\032\036.google" + + ".pubsub.v1.Subscription\"X\332A\030subscription" + + ",update_mask\202\323\344\223\002722/v1/{subscription.na" + + "me=projects/*/subscriptions/*}:\001*\022\246\001\n\021Li" + + "stSubscriptions\022*.google.pubsub.v1.ListS" + + "ubscriptionsRequest\032+.google.pubsub.v1.L" + + "istSubscriptionsResponse\"8\332A\007project\202\323\344\223" + + "\002(\022&/v1/{project=projects/*}/subscriptio" + + "ns\022\237\001\n\022DeleteSubscription\022+.google.pubsu" + + "b.v1.DeleteSubscriptionRequest\032\026.google." + + "protobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/" + + "v1/{subscription=projects/*/subscription" + + "s/*}\022\317\001\n\021ModifyAckDeadline\022*.google.pubs" + + "ub.v1.ModifyAckDeadlineRequest\032\026.google." + + "protobuf.Empty\"v\332A)subscription,ack_ids," + + "ack_deadline_seconds\202\323\344\223\002D\"?/v1/{subscri" + + "ption=projects/*/subscriptions/*}:modify" + + "AckDeadline:\001*\022\250\001\n\013Acknowledge\022$.google." + + "pubsub.v1.AcknowledgeRequest\032\026.google.pr" + + "otobuf.Empty\"[\332A\024subscription,ack_ids\202\323\344" + + "\223\002>\"9/v1/{subscription=projects/*/subscr" + + "iptions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.goo" + + "gle.pubsub.v1.PullRequest\032\036.google.pubsu" + + "b.v1.PullResponse\"\210\001\332A,subscription,retu" + + "rn_immediately,max_messages\332A\031subscripti" + + "on,max_messages\202\323\344\223\0027\"2/v1/{subscription" + + "=projects/*/subscriptions/*}:pull:\001*\022f\n\r" + + "StreamingPull\022&.google.pubsub.v1.Streami" + + "ngPullRequest\032\'.google.pubsub.v1.Streami" + + "ngPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfi" + + "g\022).google.pubsub.v1.ModifyPushConfigReq" + + "uest\032\026.google.protobuf.Empty\"d\332A\030subscri" + + "ption,push_config\202\323\344\223\002C\">/v1/{subscripti" + + "on=projects/*/subscriptions/*}:modifyPus" + + "hConfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubs" + + "ub.v1.GetSnapshotRequest\032\032.google.pubsub" + + ".v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{sn" + + "apshot=projects/*/snapshots/*}\022\226\001\n\rListS" + + "napshots\022&.google.pubsub.v1.ListSnapshot" + + "sRequest\032\'.google.pubsub.v1.ListSnapshot" + + "sResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{projec" + + "t=projects/*}/snapshots\022\227\001\n\016CreateSnapsh" + + "ot\022\'.google.pubsub.v1.CreateSnapshotRequ" + + "est\032\032.google.pubsub.v1.Snapshot\"@\332A\021name" + + ",subscription\202\323\344\223\002&\032!/v1/{name=projects/" + + "*/snapshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.g" + + "oogle.pubsub.v1.UpdateSnapshotRequest\032\032." + + "google.pubsub.v1.Snapshot\"L\332A\024snapshot,u" + + "pdate_mask\202\323\344\223\002/2*/v1/{snapshot.name=pro", + "jects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapsh" + + "ot\022\'.google.pubsub.v1.DeleteSnapshotRequ" + + "est\032\026.google.protobuf.Empty\"8\332A\010snapshot" + + "\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsho" + + "ts/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRe" + + "quest\032\036.google.pubsub.v1.SeekResponse\"=\202" + + "\323\344\223\0027\"2/v1/{subscription=projects/*/subs" + + "criptions/*}:seek:\001*\032p\312A\025pubsub.googleap" + + "is.com\322AUhttps://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/pubsubB\252\001\n\024com.google.pubsub.v1B" + + "\013PubsubProtoP\001Z2cloud.google.com/go/pubs" + + "ub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026Google.C" + + "loud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352" + + "\002\031Google::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -810,7 +840,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Severity", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor, + new java.lang.String[] { + "Topic", "ErrorMessage", "CloudStorageFailure", "Failure", + }); + internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor, + new java.lang.String[] { + "Bucket", + "ObjectName", + "ObjectGeneration", + "AvroFailureReason", + "ApiViolationReason", + "Reason", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, @@ -834,7 +897,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -850,7 +913,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, @@ -858,7 +921,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, @@ -866,7 +929,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, @@ -874,7 +937,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, @@ -882,7 +945,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, @@ -890,7 +953,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, @@ -898,7 +961,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, @@ -906,7 +969,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, @@ -914,7 +977,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, @@ -922,7 +985,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, @@ -930,7 +993,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, @@ -938,7 +1001,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, @@ -946,13 +1009,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -994,7 +1057,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -1002,7 +1065,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -1010,7 +1073,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -1018,7 +1081,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -1062,7 +1125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, @@ -1076,7 +1139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccountEmail", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, @@ -1109,7 +1172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -1117,7 +1180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -1125,7 +1188,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -1133,7 +1196,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -1141,7 +1204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -1149,7 +1212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -1157,7 +1220,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -1165,7 +1228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -1173,7 +1236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -1181,7 +1244,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -1189,7 +1252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -1197,7 +1260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -1212,7 +1275,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -1247,7 +1310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -1263,7 +1326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -1271,7 +1334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1287,7 +1350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1295,7 +1358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1303,7 +1366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1311,7 +1374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1319,7 +1382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1327,7 +1390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 339188193efc..ed976fea0088 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1531 + * google/pubsub/v1/pubsub.proto;l=1588 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1531 + * google/pubsub/v1/pubsub.proto;l=1588 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1531 + * google/pubsub/v1/pubsub.proto;l=1588 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1531 + * google/pubsub/v1/pubsub.proto;l=1588 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index bbd1aadfb6c1..6c5f66a36d38 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder *
    * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1531 + * google/pubsub/v1/pubsub.proto;l=1588 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 54b44b822178..0f269f5252ab 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -365,6 +365,63 @@ message PlatformLogsSettings { Severity severity = 1 [(google.api.field_behavior) = OPTIONAL]; } +// Payload of the Platform Log entry sent when a failure is encountered while +// ingesting. +message IngestionFailureEvent { + // Specifies the reason why some data may have been left out of + // the desired Pub/Sub message due to the API message limits + // (https://cloud.google.com/pubsub/quotas#resource_limits). For example, + // when the number of attributes is larger than 100, the number of + // attributes is truncated to 100 to respect the limit on the attribute count. + // Other attribute limits are treated similarly. When the size of the desired + // message would've been larger than 10MB, the message won't be published at + // all, and ingestion of the subsequent messages will proceed as normal. + message ApiViolationReason {} + + // Set when an Avro file is unsupported or its format is not valid. When this + // occurs, one or more Avro objects won't be ingested. + message AvroFailureReason {} + + // Failure when ingesting from a Cloud Storage source. + message CloudStorageFailure { + // Optional. Name of the Cloud Storage bucket used for ingestion. + string bucket = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Name of the Cloud Storage object which contained the section + // that couldn't be ingested. + string object_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Generation of the Cloud Storage object which contained the + // section that couldn't be ingested. + int64 object_generation = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified object. + oneof reason { + // Optional. Failure encountered when parsing an Avro file. + AvroFailureReason avro_failure_reason = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub API limits prevented the desired message from + // being published. + ApiViolationReason api_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Required. Name of the import topic. Format is: + // projects/{project_name}/topics/{topic_name}. + string topic = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Error details explaining why ingestion to Pub/Sub has failed. + string error_message = 2 [(google.api.field_behavior) = REQUIRED]; + + oneof failure { + // Optional. Failure when ingesting from Cloud Storage. + CloudStorageFailure cloud_storage_failure = 3 + [(google.api.field_behavior) = OPTIONAL]; + } +} + // A topic resource. message Topic { option (google.api.resource) = { From 2688fa91f6e018f6c7e6b245cbf3e6e99fce0385 Mon Sep 17 00:00:00 2001 From: Steven van Rossum Date: Sat, 12 Oct 2024 01:10:18 +0200 Subject: [PATCH 1967/2363] feat: track batch size using serialized size of PublishRequest (#2113) * feat: track batch size using serialized size of PublishRequest * fix: compare against batchedBytes instead of messageSize in flush condition * fix: also count static overhead in flow control * fix: adjust thresholds in tests * fix: clean up merge issue * fix: revert use of topicNameSize in MessageFlowController * fix: store topicNameSize as initialBatchedBytes in MessagesBatch --------- Co-authored-by: Mike Prieto --- .../com/google/cloud/pubsub/v1/Publisher.java | 21 ++++++++++++++----- .../cloud/pubsub/v1/PublisherImplTest.java | 8 +++---- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 99d0be17b6eb..3713cf69b341 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -46,6 +46,7 @@ import com.google.cloud.pubsub.v1.stub.PublisherStub; import com.google.cloud.pubsub.v1.stub.PublisherStubSettings; import com.google.common.base.Preconditions; +import com.google.protobuf.CodedOutputStream; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; @@ -99,6 +100,7 @@ public class Publisher implements PublisherInterface { private static final String OPEN_TELEMETRY_TRACER_NAME = "com.google.cloud.pubsub.v1"; private final String topicName; + private final int topicNameSize; private final BatchingSettings batchingSettings; private final boolean enableMessageOrdering; @@ -145,6 +147,8 @@ public static long getApiMaxRequestBytes() { private Publisher(Builder builder) throws IOException { topicName = builder.topicName; + topicNameSize = + CodedOutputStream.computeStringSize(PublishRequest.TOPIC_FIELD_NUMBER, this.topicName); this.batchingSettings = builder.batchingSettings; FlowControlSettings flowControl = this.batchingSettings.getFlowControlSettings(); @@ -309,7 +313,7 @@ public ApiFuture publish(PubsubMessage message) { } MessagesBatch messagesBatch = messagesBatches.get(orderingKey); if (messagesBatch == null) { - messagesBatch = new MessagesBatch(batchingSettings, orderingKey); + messagesBatch = new MessagesBatch(batchingSettings, topicNameSize, orderingKey); messagesBatches.put(orderingKey, messagesBatch); } @@ -636,7 +640,9 @@ private static final class OutstandingPublish { OutstandingPublish(PubsubMessageWrapper messageWrapper) { this.publishResult = SettableApiFuture.create(); this.messageWrapper = messageWrapper; - this.messageSize = messageWrapper.getPubsubMessage().getSerializedSize(); + this.messageSize = + CodedOutputStream.computeMessageSize( + PublishRequest.MESSAGES_FIELD_NUMBER, messageWrapper.getPubsubMessage()); } } @@ -1093,12 +1099,15 @@ void release(long messageSize) { private class MessagesBatch { private List messages; + private int initialBatchedBytes; private int batchedBytes; private String orderingKey; private final BatchingSettings batchingSettings; - private MessagesBatch(BatchingSettings batchingSettings, String orderingKey) { + private MessagesBatch( + BatchingSettings batchingSettings, int initialBatchedBytes, String orderingKey) { this.batchingSettings = batchingSettings; + this.initialBatchedBytes = initialBatchedBytes; this.orderingKey = orderingKey; reset(); } @@ -1111,7 +1120,7 @@ private OutstandingBatch popOutstandingBatch() { private void reset() { messages = new LinkedList<>(); - batchedBytes = 0; + batchedBytes = initialBatchedBytes; } private boolean isEmpty() { @@ -1150,7 +1159,9 @@ && getBatchedBytes() + outstandingPublish.messageSize >= getMaxBatchBytes()) { // immediately. // Alternatively if after adding the message we have reached the batch max messages then we // have a batch to send. - if ((hasBatchingBytes() && outstandingPublish.messageSize >= getMaxBatchBytes()) + // Note that exceeding {@link Publisher#getApiMaxRequestBytes()} will result in failed + // publishes without compression and may yet fail if a request is not sufficiently compressed. + if ((hasBatchingBytes() && getBatchedBytes() >= getMaxBatchBytes()) || getMessagesCount() == batchingSettings.getElementCountThreshold()) { batchesToSend.add(popOutstandingBatch()); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 219326db5aa3..411b61d154fa 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -447,7 +447,7 @@ public void testLargeMessagesDoNotReorderBatches() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(10L) - .setRequestByteThreshold(20L) + .setRequestByteThreshold(64L) .setDelayThreshold(Duration.ofSeconds(100)) .build()) .setEnableMessageOrdering(true) @@ -1150,7 +1150,7 @@ public void testPublishFlowControl_throwException() throws Exception { .setLimitExceededBehavior( FlowController.LimitExceededBehavior.ThrowException) .setMaxOutstandingElementCount(1L) - .setMaxOutstandingRequestBytes(10L) + .setMaxOutstandingRequestBytes(13L) .build()) .build()) .build(); @@ -1192,7 +1192,7 @@ public void testPublishFlowControl_throwExceptionWithOrderingKey() throws Except .setLimitExceededBehavior( FlowController.LimitExceededBehavior.ThrowException) .setMaxOutstandingElementCount(1L) - .setMaxOutstandingRequestBytes(10L) + .setMaxOutstandingRequestBytes(13L) .build()) .build()) .setEnableMessageOrdering(true) @@ -1238,7 +1238,7 @@ public void testPublishFlowControl_block() throws Exception { FlowControlSettings.newBuilder() .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) .setMaxOutstandingElementCount(2L) - .setMaxOutstandingRequestBytes(10L) + .setMaxOutstandingRequestBytes(13L) .build()) .build()) .build(); From af55f8b02a4d62cabadc12f4b91819f2ecc2ef67 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:02:47 -0400 Subject: [PATCH 1968/2363] chore: Update generation configuration at Tue Oct 15 02:27:24 UTC 2024 (#2230) * chore: Update generation configuration at Fri Oct 11 02:26:15 UTC 2024 * chore: generate libraries at Fri Oct 11 02:26:38 UTC 2024 * chore: Update generation configuration at Sat Oct 12 02:24:17 UTC 2024 * chore: generate libraries at Sat Oct 12 02:24:38 UTC 2024 * chore: Update generation configuration at Sun Oct 13 02:28:28 UTC 2024 * chore: Update generation configuration at Tue Oct 15 02:27:24 UTC 2024 --- java-pubsub/README.md | 2 - java-pubsub/generation_config.yaml | 2 +- .../pubsub/OpenTelemetryPublisherExample.java | 3 +- .../OpenTelemetrySubscriberExample.java | 3 +- .../java/pubsub/UsePubSubEmulatorExample.java | 3 +- .../src/main/java/utilities/StateProto.java | 376 +++++++++--------- .../src/test/java/pubsub/SubscriberIT.java | 2 - 7 files changed, 199 insertions(+), 192 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c6678934113a..ab047b1b02c2 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -38,7 +38,6 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: If you are using Maven without the BOM, add this to your dependencies: - ```xml @@ -67,7 +66,6 @@ If you are using SBT, add this to your dependencies: ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.133.1" ``` - ## Authentication diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 34111da5835a..724bb0b0f434 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: 10b8dc3b54c9a609dcfda8060b8c4c734a942e8c +googleapis_commitish: f78cd2f7943b9a2eb9734e56a8f3428da75917e2 libraries_bom_version: 26.48.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java index 606c6fe36a79..c812eed1685d 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java @@ -49,7 +49,8 @@ public static void main(String... args) throws Exception { public static void openTelemetryPublisherExample(String projectId, String topicId) throws IOException, ExecutionException, InterruptedException { Resource resource = - Resource.getDefault().toBuilder() + Resource.getDefault() + .toBuilder() .put(ResourceAttributes.SERVICE_NAME, "publisher-example") .build(); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java index f78c38d198a5..d46900b9b111 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java @@ -47,7 +47,8 @@ public static void main(String... args) throws Exception { public static void openTelemetrySubscriberExample(String projectId, String subscriptionId) { Resource resource = - Resource.getDefault().toBuilder() + Resource.getDefault() + .toBuilder() .put(ResourceAttributes.SERVICE_NAME, "subscriber-example") .build(); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java index 5da0bd7f8d09..c73aca098414 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java @@ -39,7 +39,6 @@ import com.google.pubsub.v1.TopicName; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; -import java.io.IOException; public class UsePubSubEmulatorExample { public static void main(String... args) throws Exception { @@ -83,4 +82,4 @@ public static void main(String... args) throws Exception { } } } -// [END pubsub_use_emulator] \ No newline at end of file +// [END pubsub_use_emulator] diff --git a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java index 8c9ece5de96e..f43d6e092b47 100644 --- a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java +++ b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java @@ -32,55 +32,55 @@ public final class StateProto { private StateProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public interface StateOrBuilder extends + + public interface StateOrBuilder + extends // @@protoc_insertion_point(interface_extends:utilities.State) com.google.protobuf.MessageOrBuilder { /** * string name = 1; + * * @return The name. */ java.lang.String getName(); /** * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** * string post_abbr = 2; + * * @return The postAbbr. */ java.lang.String getPostAbbr(); /** * string post_abbr = 2; + * * @return The bytes for postAbbr. */ - com.google.protobuf.ByteString - getPostAbbrBytes(); + com.google.protobuf.ByteString getPostAbbrBytes(); } - /** - * Protobuf type {@code utilities.State} - */ - public static final class State extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code utilities.State} */ + public static final class State extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:utilities.State) StateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use State.newBuilder() to construct. private State(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private State() { name_ = ""; postAbbr_ = ""; @@ -88,13 +88,11 @@ private State() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new State(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -107,10 +105,12 @@ protected java.lang.Object newInstance( } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 1; + * * @return The name. */ @java.lang.Override @@ -119,8 +119,7 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -128,16 +127,15 @@ public java.lang.String getName() { } /** * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -146,10 +144,12 @@ public java.lang.String getName() { } public static final int POST_ABBR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object postAbbr_ = ""; /** * string post_abbr = 2; + * * @return The postAbbr. */ @java.lang.Override @@ -158,8 +158,7 @@ public java.lang.String getPostAbbr() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postAbbr_ = s; return s; @@ -167,16 +166,15 @@ public java.lang.String getPostAbbr() { } /** * string post_abbr = 2; + * * @return The bytes for postAbbr. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostAbbrBytes() { + public com.google.protobuf.ByteString getPostAbbrBytes() { java.lang.Object ref = postAbbr_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postAbbr_ = b; return b; } else { @@ -185,6 +183,7 @@ public java.lang.String getPostAbbr() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,8 +195,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -227,17 +225,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof utilities.StateProto.State)) { return super.equals(obj); } utilities.StateProto.State other = (utilities.StateProto.State) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPostAbbr() - .equals(other.getPostAbbr())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPostAbbr().equals(other.getPostAbbr())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,90 +254,93 @@ public int hashCode() { return hash; } - public static utilities.StateProto.State parseFrom( - java.nio.ByteBuffer data) + public static utilities.StateProto.State parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static utilities.StateProto.State parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static utilities.StateProto.State parseFrom( - com.google.protobuf.ByteString data) + + public static utilities.StateProto.State parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static utilities.StateProto.State parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static utilities.StateProto.State parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static utilities.StateProto.State parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static utilities.StateProto.State parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static utilities.StateProto.State parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static utilities.StateProto.State parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static utilities.StateProto.State parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static utilities.StateProto.State parseFrom( - com.google.protobuf.CodedInputStream input) + + public static utilities.StateProto.State parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static utilities.StateProto.State parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(utilities.StateProto.State prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -350,15 +349,13 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code utilities.State} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code utilities.State} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:utilities.State) utilities.StateProto.StateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -371,15 +368,12 @@ public static final class Builder extends } // Construct using utilities.StateProto.State.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -390,8 +384,7 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return utilities.StateProto.internal_static_utilities_State_descriptor; } @@ -412,7 +405,9 @@ public utilities.StateProto.State build() { @java.lang.Override public utilities.StateProto.State buildPartial() { utilities.StateProto.State result = new utilities.StateProto.State(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -431,38 +426,41 @@ private void buildPartial0(utilities.StateProto.State result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof utilities.StateProto.State) { - return mergeFrom((utilities.StateProto.State)other); + return mergeFrom((utilities.StateProto.State) other); } else { super.mergeFrom(other); return this; @@ -507,22 +505,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - postAbbr_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + postAbbr_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,18 +533,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -553,15 +555,14 @@ public java.lang.String getName() { } /** * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -570,12 +571,14 @@ public java.lang.String getName() { } /** * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); @@ -583,6 +586,7 @@ public Builder setName( } /** * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -593,12 +597,14 @@ public Builder clearName() { } /** * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,13 +615,13 @@ public Builder setNameBytes( private java.lang.Object postAbbr_ = ""; /** * string post_abbr = 2; + * * @return The postAbbr. */ public java.lang.String getPostAbbr() { java.lang.Object ref = postAbbr_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postAbbr_ = s; return s; @@ -625,15 +631,14 @@ public java.lang.String getPostAbbr() { } /** * string post_abbr = 2; + * * @return The bytes for postAbbr. */ - public com.google.protobuf.ByteString - getPostAbbrBytes() { + public com.google.protobuf.ByteString getPostAbbrBytes() { java.lang.Object ref = postAbbr_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); postAbbr_ = b; return b; } else { @@ -642,12 +647,14 @@ public java.lang.String getPostAbbr() { } /** * string post_abbr = 2; + * * @param value The postAbbr to set. * @return This builder for chaining. */ - public Builder setPostAbbr( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPostAbbr(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } postAbbr_ = value; bitField0_ |= 0x00000002; onChanged(); @@ -655,6 +662,7 @@ public Builder setPostAbbr( } /** * string post_abbr = 2; + * * @return This builder for chaining. */ public Builder clearPostAbbr() { @@ -665,18 +673,21 @@ public Builder clearPostAbbr() { } /** * string post_abbr = 2; + * * @param value The bytes for postAbbr to set. * @return This builder for chaining. */ - public Builder setPostAbbrBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPostAbbrBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); postAbbr_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -689,12 +700,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:utilities.State) } // @@protoc_insertion_point(class_scope:utilities.State) private static final utilities.StateProto.State DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new utilities.StateProto.State(); } @@ -703,27 +714,28 @@ public static utilities.StateProto.State getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public State parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public State parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,37 +750,35 @@ public com.google.protobuf.Parser getParserForType() { public utilities.StateProto.State getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_utilities_State_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_utilities_State_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_utilities_State_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { java.lang.String[] descriptorData = { - "\n\017us-states.proto\022\tutilities\"(\n\005State\022\014\n" + - "\004name\030\001 \001(\t\022\021\n\tpost_abbr\030\002 \001(\tB\014B\nStateP" + - "rotob\006proto3" + "\n\017us-states.proto\022\tutilities\"(\n\005State\022\014\n" + + "\004name\030\001 \001(\t\022\021\n\tpost_abbr\030\002 \001(\tB\014B\nStateP" + + "rotob\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_utilities_State_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_utilities_State_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_utilities_State_descriptor, - new java.lang.String[] { "Name", "PostAbbr", }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_utilities_State_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_utilities_State_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_utilities_State_descriptor, + new java.lang.String[] { + "Name", "PostAbbr", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java index b1c827d50ffc..dc4bf0f7b211 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SubscriberIT.java @@ -38,9 +38,7 @@ import java.util.HashSet; import java.util.List; import java.util.UUID; -import org.junit.After; import org.junit.AfterClass; -import org.junit.Before; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; From 1d5b4a56ee3ef9916a3f75dfb555a0428bb12cbc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 15 Oct 2024 19:38:47 +0200 Subject: [PATCH 1969/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.49.0 (#2231) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f0b396364079..2eae4754e7a6 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import From 6b3463e0a6c039ccab2c1444f9fba5ce114e98e8 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:58:32 -0400 Subject: [PATCH 1970/2363] chore: Update generation configuration at Sat Oct 19 02:25:30 UTC 2024 (#2232) * chore: Update generation configuration at Wed Oct 16 02:27:51 UTC 2024 * chore: generate libraries at Wed Oct 16 02:28:13 UTC 2024 * chore: Update generation configuration at Thu Oct 17 02:26:59 UTC 2024 * chore: generate libraries at Thu Oct 17 02:27:22 UTC 2024 * chore: Update generation configuration at Fri Oct 18 02:27:26 UTC 2024 * chore: Update generation configuration at Sat Oct 19 02:25:30 UTC 2024 --- java-pubsub/README.md | 4 ++-- java-pubsub/generation_config.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ab047b1b02c2..5f4d18613cac 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.48.0 + 26.49.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.48.0') +implementation platform('com.google.cloud:libraries-bom:26.49.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 724bb0b0f434..b57c1c1c5eb4 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: f78cd2f7943b9a2eb9734e56a8f3428da75917e2 -libraries_bom_version: 26.48.0 +googleapis_commitish: 211a72fa5cd90bfbfe2d86d4e8163eee23171687 +libraries_bom_version: 26.49.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From f0cc7d8f250df767ed12a5bf12a57e418e5c5ff7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 22 Oct 2024 00:00:59 +0200 Subject: [PATCH 1971/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.8.0 (#2233) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9dc5c8da6732..1b52d791a29b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -151,7 +151,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.7.0 + 3.8.0 From cde2ccbdbe23d121287b62d35eff9338fa3716f6 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:01:41 -0400 Subject: [PATCH 1972/2363] chore: Update generation configuration at Tue Oct 22 02:27:16 UTC 2024 (#2234) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index b57c1c1c5eb4..2fd8b678d08a 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: 211a72fa5cd90bfbfe2d86d4e8163eee23171687 +googleapis_commitish: beea48a164c2a8cc8485185c3a4f56c587090e1a libraries_bom_version: 26.49.0 libraries: - api_shortname: pubsub From ddc5a12a7892a32ddb5b0bbace9ba62172e36579 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Oct 2024 23:07:13 +0200 Subject: [PATCH 1973/2363] deps: update sdk platform java dependencies (#2239) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 9399ebef235b..4943e3e93ee1 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.47.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.48.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 9cd0e30373e5..bfcdca700e5c 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.37.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.38.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 0f8b919c91f6..9a49f7df62e7 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.37.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.38.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index e6553bd6e418..e434ee684728 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.37.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.38.0" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 29750bbfd977..08501116c575 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.37.0 + 3.38.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1b52d791a29b..33a1d8225de1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.37.0 + 3.38.0 From 2254171b5d97381382744b374c82df40c1643d27 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:07:35 -0400 Subject: [PATCH 1974/2363] chore: Update generation configuration at Wed Oct 23 02:26:52 UTC 2024 (#2236) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 2fd8b678d08a..b4be543567d1 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.47.0 -googleapis_commitish: beea48a164c2a8cc8485185c3a4f56c587090e1a +googleapis_commitish: 099f913ac825d05776acbe656d44069b302d2345 libraries_bom_version: 26.49.0 libraries: - api_shortname: pubsub From f29e61f85e10793bc4481aeab27f3fb851c62e03 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Oct 2024 23:08:41 +0200 Subject: [PATCH 1975/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.46.0 (#2238) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 388009d839a4..fab6de6d318b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.45.0 + 2.46.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8b7a9f9c9e5b..882dc32c9855 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.45.0 + 2.46.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2eae4754e7a6..93db4d4bdcd3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.45.0 + 2.46.0 tests From 675e060efe0c1cca6de29f76e49093818dd31a4f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Oct 2024 23:11:13 +0200 Subject: [PATCH 1976/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.28.3 (#2237) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fab6de6d318b..ca64c4a222df 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.28.2 + 4.28.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 882dc32c9855..91e094996474 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.28.2 + 4.28.3 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 93db4d4bdcd3..94b5e3ee8662 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.28.2 + 4.28.3 From fed73adc1d503a1cf8982a2eae21d39897dfc169 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:25:04 -0400 Subject: [PATCH 1977/2363] chore(main): release 1.134.0 (#2228) * chore(main): release 1.134.0 * chore: generate libraries at Wed Oct 23 21:12:54 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 24 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 45 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 980d2335ad13..82b486058a3d 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [1.134.0](https://github.com/googleapis/java-pubsub/compare/v1.133.1...v1.134.0) (2024-10-23) + + +### Features + +* Add IngestionFailureEvent to the external proto ([6c67798](https://github.com/googleapis/java-pubsub/commit/6c67798c6b7442d77eb30fbba874344f32a926b4)) +* Track batch size using serialized size of PublishRequest ([#2113](https://github.com/googleapis/java-pubsub/issues/2113)) ([be78e64](https://github.com/googleapis/java-pubsub/commit/be78e64f9fdfc9ddf0790189311fac673754e219)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.43.1 ([#2202](https://github.com/googleapis/java-pubsub/issues/2202)) ([acaf5f2](https://github.com/googleapis/java-pubsub/commit/acaf5f2e3686a939d4b972c73a4d039142f753df)) +* Update dependency com.google.cloud:google-cloud-core to v2.46.0 ([#2238](https://github.com/googleapis/java-pubsub/issues/2238)) ([dc06d54](https://github.com/googleapis/java-pubsub/commit/dc06d5456ab6fe8d94b7b845ca9159391949517f)) +* Update dependency com.google.cloud:google-cloud-storage to v2.43.2 ([#2226](https://github.com/googleapis/java-pubsub/issues/2226)) ([eb87c04](https://github.com/googleapis/java-pubsub/commit/eb87c04619f7bdaf59ce2b562a96b8c25d3c8196)) +* Update dependency com.google.cloud.opentelemetry:exporter-trace to v0.33.0 ([#2225](https://github.com/googleapis/java-pubsub/issues/2225)) ([cc1b072](https://github.com/googleapis/java-pubsub/commit/cc1b0726009524ddee3c2ce7f1446608dd3bc752)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.28.3 ([#2237](https://github.com/googleapis/java-pubsub/issues/2237)) ([75abe83](https://github.com/googleapis/java-pubsub/commit/75abe83a9b14c2e5cc3f136ff97b5340bfa904db)) +* Update dependency org.apache.avro:avro to v1.11.4 [security] ([#2223](https://github.com/googleapis/java-pubsub/issues/2223)) ([31f276b](https://github.com/googleapis/java-pubsub/commit/31f276b10a96c53ecbd828972a9e3457c0c7c700)) +* Update sdk platform java dependencies ([#2239](https://github.com/googleapis/java-pubsub/issues/2239)) ([8f4f855](https://github.com/googleapis/java-pubsub/commit/8f4f8556414aaef731a7226dcbffe59d91819775)) + + +### Documentation + +* Add OpenTelemetry samples ([#2208](https://github.com/googleapis/java-pubsub/issues/2208)) ([c447fe5](https://github.com/googleapis/java-pubsub/commit/c447fe500ba48ba4fde27d97f10ef7664d09363b)) + ## [1.133.1](https://github.com/googleapis/java-pubsub/compare/v1.133.0...v1.133.1) (2024-10-07) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5f4d18613cac..ff46e520d179 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.133.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.134.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.133.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.0" ``` ## Authentication @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.133.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 08501116c575..0e5d1576ddc9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.133.2-SNAPSHOT + 1.134.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.133.2-SNAPSHOT + 1.134.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 600a997e307e..ce35866692d2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.133.2-SNAPSHOT + 1.134.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.133.2-SNAPSHOT + 1.134.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3598f8f502ea..68ee5ba6bbb6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.2-SNAPSHOT + 1.134.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 33a1d8225de1..f913cddb2a50 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.133.2-SNAPSHOT + 1.134.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 com.google.cloud google-cloud-pubsub - 1.133.2-SNAPSHOT + 1.134.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ef4e86cc3dae..577ec7095069 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.115.2-SNAPSHOT + 1.116.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.133.2-SNAPSHOT + 1.134.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 91e094996474..bf16a43cfc97 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.133.2-SNAPSHOT + 1.134.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4335d336b542..33b8d64d5982 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.133.1:1.133.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.115.1:1.115.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.115.1:1.115.2-SNAPSHOT +google-cloud-pubsub:1.134.0:1.134.0 +grpc-google-cloud-pubsub-v1:1.116.0:1.116.0 +proto-google-cloud-pubsub-v1:1.116.0:1.116.0 From fd0e5e505f1752c6d1111eae9104a0258873d8b0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 26 Oct 2024 01:00:25 +0200 Subject: [PATCH 1978/2363] deps: update googleapis/sdk-platform-java action to v2.49.0 (#2250) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 4943e3e93ee1..46b80edc1c7f 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.48.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.49.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 9c243adf91543740363b03a0de7fdc290ea4516a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 19:00:44 -0400 Subject: [PATCH 1979/2363] chore(main): release 1.134.1-SNAPSHOT (#2243) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0e5d1576ddc9..28401db525ff 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.0 + 1.134.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ce35866692d2..94981d829eab 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.0 + 1.134.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 68ee5ba6bbb6..3e6dd844d83e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.0 + 1.134.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f913cddb2a50..2bd8c7f309f7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.0 + 1.134.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 577ec7095069..d151cf1108b3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.0 + 1.116.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.0 + 1.134.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bf16a43cfc97..3c9b7782e65c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 33b8d64d5982..77a00b612363 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.0:1.134.0 -grpc-google-cloud-pubsub-v1:1.116.0:1.116.0 -proto-google-cloud-pubsub-v1:1.116.0:1.116.0 +google-cloud-pubsub:1.134.0:1.134.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.116.0:1.116.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.116.0:1.116.1-SNAPSHOT From 31e18db7a096b12eb862cfb6f8eebd1c95f7a647 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 25 Oct 2024 21:16:16 -0400 Subject: [PATCH 1980/2363] chore: Update generation configuration at Fri Oct 25 02:27:23 UTC 2024 (#2241) * chore: Update generation configuration at Thu Oct 24 02:26:45 UTC 2024 * chore: generate libraries at Thu Oct 24 02:27:12 UTC 2024 * chore: Update generation configuration at Fri Oct 25 02:27:23 UTC 2024 --- java-pubsub/generation_config.yaml | 4 ++-- .../reflect-config.json | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index b4be543567d1..e461a523d523 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.47.0 -googleapis_commitish: 099f913ac825d05776acbe656d44069b302d2345 +gapic_generator_version: 2.48.0 +googleapis_commitish: 537fd482f6bb8afb3a146d9b21673a8eb27958bd libraries_bom_version: 26.49.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index e63fd836fae3..87835ca4be6e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v1.AuditConfig", "queryAllDeclaredConstructors": true, From c5240be9679ace1f3a793a58dd02b33b096cdba9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 26 Oct 2024 03:16:36 +0200 Subject: [PATCH 1981/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.134.0 (#2245) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ca64c4a222df..b8a346ccb041 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.133.1 + 1.134.0 From 7f9a3d9e992b04f58561d9f6f51d981a04d7e079 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sat, 26 Oct 2024 03:17:42 +0200 Subject: [PATCH 1982/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.39.0 (#2251) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index bfcdca700e5c..9c438d076776 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.38.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.39.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 9a49f7df62e7..5f84dd393a1b 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.38.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.39.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index e434ee684728..418a399b7599 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.38.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.39.0" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 28401db525ff..36e1217d867d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.38.0 + 3.39.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2bd8c7f309f7..fb72d0f39214 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.38.0 + 3.39.0 From 773b4e514a2f688bcad95e7a4919a723c7f08349 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 21:48:37 -0400 Subject: [PATCH 1983/2363] chore(main): release 1.134.1 (#2252) * chore(main): release 1.134.1 * chore: generate libraries at Sat Oct 26 01:18:46 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 8 ++++++++ java-pubsub/README.md | 8 ++++---- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 30 insertions(+), 22 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 82b486058a3d..c6d61b177fa9 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.134.1](https://github.com/googleapis/java-pubsub/compare/v1.134.0...v1.134.1) (2024-10-26) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.39.0 ([#2251](https://github.com/googleapis/java-pubsub/issues/2251)) ([083cc7c](https://github.com/googleapis/java-pubsub/commit/083cc7c930fa2728d2322c1343b0fc025f9e255d)) +* Update googleapis/sdk-platform-java action to v2.49.0 ([#2250](https://github.com/googleapis/java-pubsub/issues/2250)) ([af0f194](https://github.com/googleapis/java-pubsub/commit/af0f194369d4a9f16dd14378aa90280adc194d98)) + ## [1.134.0](https://github.com/googleapis/java-pubsub/compare/v1.133.1...v1.134.0) (2024-10-23) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ff46e520d179..467308471e84 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.133.1 + 1.134.0 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.134.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.134.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.1" ``` ## Authentication @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 36e1217d867d..2569276da8e3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.1-SNAPSHOT + 1.134.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.1-SNAPSHOT + 1.134.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 94981d829eab..e977d28318f2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.1-SNAPSHOT + 1.134.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.1-SNAPSHOT + 1.134.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 3e6dd844d83e..fe956336e9e2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.1-SNAPSHOT + 1.134.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index fb72d0f39214..e97c81359625 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.1-SNAPSHOT + 1.134.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 com.google.cloud google-cloud-pubsub - 1.134.1-SNAPSHOT + 1.134.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d151cf1108b3..6d103a3e6be1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1-SNAPSHOT + 1.116.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.1-SNAPSHOT + 1.134.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3c9b7782e65c..f605e3e8f70c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.1-SNAPSHOT + 1.134.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 77a00b612363..875d0755b2eb 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.0:1.134.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.116.0:1.116.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.116.0:1.116.1-SNAPSHOT +google-cloud-pubsub:1.134.1:1.134.1 +grpc-google-cloud-pubsub-v1:1.116.1:1.116.1 +proto-google-cloud-pubsub-v1:1.116.1:1.116.1 From ea4397cc5f9d7d35c4bd305b2381aa14142525a9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 31 Oct 2024 04:31:00 +0100 Subject: [PATCH 1984/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.43.3 (#2256) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b8a346ccb041..fa40300ab3a2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.43.1 + 2.43.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f605e3e8f70c..5f3667637c21 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.43.1 + 2.43.3 com.google.cloud From dffafd2302b6ffd83f5e287f1d2438d29daace1b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 31 Oct 2024 04:31:18 +0100 Subject: [PATCH 1985/2363] build(deps): update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.6.0 (#2247) --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 4a6ba6ed7f93..521e6a914b3d 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -74,7 +74,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 3.5.0 + 3.6.0 checkstyle-suppressions.xml From aef543abcd668abd01c440680fd96da21ff6901e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 31 Oct 2024 04:31:29 +0100 Subject: [PATCH 1986/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.134.1 (#2255) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fa40300ab3a2..0d086b789ef1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1 From d5d9ebf7d6234c1c3c71ff3816dae4d49837c384 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 31 Oct 2024 04:31:41 +0100 Subject: [PATCH 1987/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.44.1 (#2240) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0d086b789ef1..3906a8a4f96d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.43.2 + 2.44.1 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5f3667637c21..e0685bbdcaad 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.43.2 + 2.44.1 com.google.cloud.opentelemetry From 89f8fb2de0ec56240b1ca3a499247a30fd3525c9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 6 Nov 2024 18:18:09 +0100 Subject: [PATCH 1988/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.47.0 (#2249) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3906a8a4f96d..2c8bbd5b4b81 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.46.0 + 2.47.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e0685bbdcaad..af02a49d2547 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.46.0 + 2.47.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 94b5e3ee8662..a8bdc638ffe9 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.46.0 + 2.47.0 tests From 950590b3e225b1bbc7015da7f26fd2871f6ec16e Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:18:52 -0500 Subject: [PATCH 1989/2363] chore: Update generation configuration at Wed Nov 6 02:24:47 UTC 2024 (#2254) * chore: Update generation configuration at Sat Oct 26 02:24:29 UTC 2024 * chore: Update generation configuration at Sun Oct 27 02:29:11 UTC 2024 * chore: Update generation configuration at Tue Oct 29 02:27:44 UTC 2024 * chore: Update generation configuration at Wed Oct 30 02:27:20 UTC 2024 * chore: Update generation configuration at Thu Oct 31 02:27:54 UTC 2024 * chore: Update generation configuration at Fri Nov 1 02:30:31 UTC 2024 * chore: Update generation configuration at Sat Nov 2 02:25:12 UTC 2024 * chore: generate libraries at Sat Nov 2 02:25:54 UTC 2024 * chore: Update generation configuration at Tue Nov 5 02:25:23 UTC 2024 * chore: Update generation configuration at Wed Nov 6 02:24:47 UTC 2024 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 467308471e84..9e74e499335d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.49.0') +implementation platform('com.google.cloud:libraries-bom:26.50.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index e461a523d523..3418d0efbb3f 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.48.0 -googleapis_commitish: 537fd482f6bb8afb3a146d9b21673a8eb27958bd -libraries_bom_version: 26.49.0 +gapic_generator_version: 2.49.0 +googleapis_commitish: 5e306b977beaf42766855a4a26ebe1f2dd133d92 +libraries_bom_version: 26.50.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 10f7ee05a66427ae09be58936ce317740e89495a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 7 Nov 2024 19:40:57 +0100 Subject: [PATCH 1990/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.50.0 (#2258) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a8bdc638ffe9..1396e7ccc9df 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.49.0 + 26.50.0 pom import From e986fd645f569f8a197e7d12022a522e0ef6e978 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 7 Nov 2024 13:41:27 -0500 Subject: [PATCH 1991/2363] chore: Update generation configuration at Thu Nov 7 02:25:25 UTC 2024 (#2259) * chore: Update generation configuration at Thu Nov 7 02:25:25 UTC 2024 * chore: generate libraries at Thu Nov 7 02:26:09 UTC 2024 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 9e74e499335d..af01730342cc 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.134.0 + 1.134.1 ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 3418d0efbb3f..698706c115b4 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.49.0 -googleapis_commitish: 5e306b977beaf42766855a4a26ebe1f2dd133d92 +googleapis_commitish: 69c246d6fb31a16c2a23c62753117773cd6c57c8 libraries_bom_version: 26.50.0 libraries: - api_shortname: pubsub From 2f191bb0e6f46c117d7abca4a48cadaa36494a93 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 15 Nov 2024 16:20:58 +0100 Subject: [PATCH 1992/2363] deps: update googleapis/sdk-platform-java action to v2.50.0 (#2261) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 46b80edc1c7f..35aa3b151d65 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.49.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.50.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 474e11c2d5a6725d8b68eb43891616ded611eac5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 15 Nov 2024 18:44:47 +0100 Subject: [PATCH 1993/2363] deps: update sdk platform java dependencies (#2262) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 9c438d076776..1834e52e136a 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.39.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.40.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 5f84dd393a1b..82ed3a43e49b 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.39.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.40.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 418a399b7599..a836c97f04bd 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.39.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.40.0" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2569276da8e3..ff63c3f56ba2 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.39.0 + 3.40.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e97c81359625..52a0c7108db8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.39.0 + 3.40.0 From ddb53d0ef18868385daaa4b7f5b9c1610c8222fc Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:41:24 -0500 Subject: [PATCH 1994/2363] chore: Update generation configuration at Fri Nov 15 02:29:39 UTC 2024 (#2260) * chore: Update generation configuration at Fri Nov 8 02:25:44 UTC 2024 * chore: generate libraries at Fri Nov 8 02:26:26 UTC 2024 * chore: Update generation configuration at Sat Nov 9 02:22:26 UTC 2024 * chore: Update generation configuration at Tue Nov 12 02:24:14 UTC 2024 * chore: Update generation configuration at Wed Nov 13 02:26:04 UTC 2024 * chore: Update generation configuration at Thu Nov 14 02:26:28 UTC 2024 * chore: Update generation configuration at Fri Nov 15 02:29:39 UTC 2024 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index af01730342cc..9a04a2556543 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.49.0 + 26.50.0 pom import diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 698706c115b4..936ad16a3fce 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.49.0 -googleapis_commitish: 69c246d6fb31a16c2a23c62753117773cd6c57c8 +googleapis_commitish: 14e5759e6036ea42178a7e9cf2490d72cb6813a2 libraries_bom_version: 26.50.0 libraries: - api_shortname: pubsub From 7b6b7a27e2331534f371e2b89c197cbc891b2857 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:31:23 -0500 Subject: [PATCH 1995/2363] chore(main): release 1.134.2-SNAPSHOT (#2253) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ff63c3f56ba2..db2d62348ae6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.1 + 1.134.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e977d28318f2..cb7ff2bcd117 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.1 + 1.134.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fe956336e9e2..a39a50a2bf12 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.1 + 1.134.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 52a0c7108db8..2745b8319cdc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.1 + 1.134.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6d103a3e6be1..b0a5435b619d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.1 + 1.116.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.1 + 1.134.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index af02a49d2547..c9e008cf6795 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 875d0755b2eb..66b7108e3ee8 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.1:1.134.1 -grpc-google-cloud-pubsub-v1:1.116.1:1.116.1 -proto-google-cloud-pubsub-v1:1.116.1:1.116.1 +google-cloud-pubsub:1.134.1:1.134.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.116.1:1.116.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.116.1:1.116.2-SNAPSHOT From 8a04a565fd2cc7730474805e5bf7515f2589a213 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:10:57 -0500 Subject: [PATCH 1996/2363] chore: Update generation configuration at Mon Nov 18 02:30:38 UTC 2024 (#2265) * chore: Update generation configuration at Sat Nov 16 02:28:19 UTC 2024 * chore: generate libraries at Sat Nov 16 02:28:59 UTC 2024 * chore: Update generation configuration at Mon Nov 18 02:30:38 UTC 2024 --- java-pubsub/generation_config.yaml | 4 +- .../pubsub/v1/stub/PublisherStubSettings.java | 34 +++++++-------- .../v1/stub/SchemaServiceStubSettings.java | 12 +++--- .../v1/stub/SubscriberStubSettings.java | 42 +++++++++---------- 4 files changed, 46 insertions(+), 46 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 936ad16a3fce..1cd5e6971c81 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.49.0 -googleapis_commitish: 14e5759e6036ea42178a7e9cf2490d72cb6813a2 +gapic_generator_version: 2.50.0 +googleapis_commitish: 0b5613ee74c9558dd284aa2b01a585ce297c0045 libraries_bom_version: 26.50.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index f8bb0b2cac23..d1640b7aaeff 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -79,11 +79,11 @@ import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.UpdateTopicRequest; import java.io.IOException; +import java.time.Duration; import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.annotation.Generated; -import org.threeten.bp.Duration; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -655,35 +655,35 @@ public static class Builder extends StubSettings.Builder Date: Mon, 18 Nov 2024 14:24:15 -0500 Subject: [PATCH 1997/2363] chore(main): release 1.134.2 (#2264) * chore(main): release 1.134.2 * chore: generate libraries at Mon Nov 18 17:11:53 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 17 +++++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 38 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index c6d61b177fa9..82d9f118d2d4 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.134.2](https://github.com/googleapis/java-pubsub/compare/v1.134.1...v1.134.2) (2024-11-18) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.49.0 ([77546e0](https://github.com/googleapis/java-pubsub/commit/77546e0548e72e331523fb4f30edd1577b5fe6ea)) +* **deps:** Update the Java code generator (gapic-generator-java) to 2.50.0 ([3f21af3](https://github.com/googleapis/java-pubsub/commit/3f21af3e3fbc6ef49ecbe80712350d8712133c59)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.43.3 ([#2256](https://github.com/googleapis/java-pubsub/issues/2256)) ([f7fbc6c](https://github.com/googleapis/java-pubsub/commit/f7fbc6c7e4f7d8a8b31d4778d2cd8c55efcb9be1)) +* Update dependency com.google.cloud:google-cloud-core to v2.47.0 ([#2249](https://github.com/googleapis/java-pubsub/issues/2249)) ([3df5729](https://github.com/googleapis/java-pubsub/commit/3df572918523738e8f2f28299efa811aa23e297b)) +* Update dependency com.google.cloud:google-cloud-storage to v2.44.1 ([#2240](https://github.com/googleapis/java-pubsub/issues/2240)) ([f8dae4d](https://github.com/googleapis/java-pubsub/commit/f8dae4d68c1835930d4e39522a354cdfcc4cdd84)) +* Update googleapis/sdk-platform-java action to v2.50.0 ([#2261](https://github.com/googleapis/java-pubsub/issues/2261)) ([d0aab7d](https://github.com/googleapis/java-pubsub/commit/d0aab7d157c628ff5b8787b8c75dfaedc7a7305f)) +* Update sdk platform java dependencies ([#2262](https://github.com/googleapis/java-pubsub/issues/2262)) ([b689fe2](https://github.com/googleapis/java-pubsub/commit/b689fe262b3a4c90264669ec87408bfeb6dc7659)) + ## [1.134.1](https://github.com/googleapis/java-pubsub/compare/v1.134.0...v1.134.1) (2024-10-26) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 9a04a2556543..fc05a067d6ee 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.134.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.134.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.2" ``` ## Authentication @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index db2d62348ae6..fd4ab205c72d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.2-SNAPSHOT + 1.134.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.2-SNAPSHOT + 1.134.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index cb7ff2bcd117..34ccd6268019 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.2-SNAPSHOT + 1.134.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.2-SNAPSHOT + 1.134.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a39a50a2bf12..dea977515eca 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.2-SNAPSHOT + 1.134.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2745b8319cdc..6407100a6db5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.2-SNAPSHOT + 1.134.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 com.google.cloud google-cloud-pubsub - 1.134.2-SNAPSHOT + 1.134.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b0a5435b619d..fa506eee8bc2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2-SNAPSHOT + 1.116.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.2-SNAPSHOT + 1.134.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c9e008cf6795..5e487e769b20 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.2-SNAPSHOT + 1.134.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 66b7108e3ee8..83ccf2fa96cf 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.1:1.134.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.116.1:1.116.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.116.1:1.116.2-SNAPSHOT +google-cloud-pubsub:1.134.2:1.134.2 +grpc-google-cloud-pubsub-v1:1.116.2:1.116.2 +proto-google-cloud-pubsub-v1:1.116.2:1.116.2 From f46be715d66f6d3189b2c1c239a166cfa4e4d80d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 21 Nov 2024 16:43:59 +0100 Subject: [PATCH 1998/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.48.0 (#2263) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2c8bbd5b4b81..0b935d6cc05f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.47.0 + 2.48.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5e487e769b20..832ed3825b29 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.47.0 + 2.48.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1396e7ccc9df..fc08b048be16 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.47.0 + 2.48.0 tests From 8f36fa7d951607b52ff03b547190bda4aa38b8db Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 21 Nov 2024 16:44:08 +0100 Subject: [PATCH 1999/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.45.0 (#2268) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0b935d6cc05f..281a79c56232 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.44.1 + 2.45.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 832ed3825b29..15d9e8385982 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.44.1 + 2.45.0 com.google.cloud.opentelemetry From 27c3089854ea924be9dd9f5c557736f64c6b8a58 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 21 Nov 2024 16:44:17 +0100 Subject: [PATCH 2000/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.134.2 (#2269) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 281a79c56232..722fb8789729 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2 From ede648ddb80af3f8a92f7f384a6d0d6753fd3b4c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 21 Nov 2024 16:44:26 +0100 Subject: [PATCH 2001/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.44.0 (#2270) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 722fb8789729..d04a0348c5fb 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.43.3 + 2.44.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 15d9e8385982..64cbe30412db 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.43.3 + 2.44.0 com.google.cloud From 9ff7676c6548771b36974aff563f91d448e26796 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Thu, 21 Nov 2024 13:19:53 -0500 Subject: [PATCH 2002/2363] feat: introduce `java.time` variables and methods (#2271) * feat: introduce `java.time` variables and methods * ignore package private public interface changes --- .../clirr-ignored-differences.xml | 14 +++ .../cloud/pubsub/v1/MessageDispatcher.java | 6 +- .../com/google/cloud/pubsub/v1/Publisher.java | 20 ++--- .../v1/StreamingSubscriberConnection.java | 2 +- .../google/cloud/pubsub/v1/Subscriber.java | 88 ++++++++++++++----- .../pubsub/v1/FakePublisherServiceImpl.java | 2 +- .../v1/FakeScheduledExecutorService.java | 4 +- .../pubsub/v1/MessageDispatcherTest.java | 2 +- .../cloud/pubsub/v1/PublisherImplTest.java | 74 ++++++++-------- .../v1/StreamingSubscriberConnectionTest.java | 2 +- .../cloud/pubsub/v1/SubscriberTest.java | 11 ++- 11 files changed, 145 insertions(+), 80 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml index fc73daacd1b9..866962660901 100644 --- a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml +++ b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml @@ -1,4 +1,18 @@ + + 7005 + + com/google/cloud/pubsub/v1/MessageDispatcher$Builder + *(org.threeten.bp.Duration) + *(java.time.Duration) + + + 7005 + + com/google/cloud/pubsub/v1/StreamingSubscriberConnection$Builder + *(org.threeten.bp.Duration) + *(java.time.Duration) + diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 860fcbcf9e15..7112d4c02e67 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -28,6 +28,9 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.ReceivedMessage; +import java.time.Duration; +import java.time.Instant; +import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; @@ -48,9 +51,6 @@ import java.util.concurrent.locks.ReentrantLock; import java.util.logging.Level; import java.util.logging.Logger; -import org.threeten.bp.Duration; -import org.threeten.bp.Instant; -import org.threeten.bp.temporal.ChronoUnit; /** * Dispatches messages to a message receiver while handling the messages acking and lease diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 3713cf69b341..af7a5747123b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -57,6 +57,7 @@ import io.opentelemetry.api.trace.Span; import io.opentelemetry.api.trace.Tracer; import java.io.IOException; +import java.time.Duration; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; @@ -73,7 +74,6 @@ import java.util.concurrent.locks.ReentrantLock; import java.util.logging.Level; import java.util.logging.Logger; -import org.threeten.bp.Duration; /** * A Cloud Pub/Sub publisher, that is @@ -198,7 +198,7 @@ private Publisher(Builder builder) throws IOException { // key? retrySettingsBuilder .setMaxAttempts(Integer.MAX_VALUE) - .setTotalTimeout(Duration.ofNanos(Long.MAX_VALUE)); + .setTotalTimeoutDuration(Duration.ofNanos(Long.MAX_VALUE)); } PublisherStubSettings.Builder stubSettings = @@ -740,7 +740,7 @@ public static final class Builder { private static final double DEFAULT_MULTIPLIER = 4; static final BatchingSettings DEFAULT_BATCHING_SETTINGS = BatchingSettings.newBuilder() - .setDelayThreshold(DEFAULT_DELAY_THRESHOLD) + .setDelayThresholdDuration(DEFAULT_DELAY_THRESHOLD) .setRequestByteThreshold(DEFAULT_REQUEST_BYTES_THRESHOLD) .setElementCountThreshold(DEFAULT_ELEMENT_COUNT_THRESHOLD) .setFlowControlSettings( @@ -750,13 +750,13 @@ public static final class Builder { .build(); static final RetrySettings DEFAULT_RETRY_SETTINGS = RetrySettings.newBuilder() - .setTotalTimeout(DEFAULT_TOTAL_TIMEOUT) - .setInitialRetryDelay(DEFAULT_INITIAL_RETRY_DELAY) + .setTotalTimeoutDuration(DEFAULT_TOTAL_TIMEOUT) + .setInitialRetryDelayDuration(DEFAULT_INITIAL_RETRY_DELAY) .setRetryDelayMultiplier(DEFAULT_MULTIPLIER) - .setMaxRetryDelay(DEFAULT_MAX_RETRY_DELAY) - .setInitialRpcTimeout(DEFAULT_INITIAL_RPC_TIMEOUT) + .setMaxRetryDelayDuration(DEFAULT_MAX_RETRY_DELAY) + .setInitialRpcTimeoutDuration(DEFAULT_INITIAL_RPC_TIMEOUT) .setRpcTimeoutMultiplier(DEFAULT_MULTIPLIER) - .setMaxRpcTimeout(DEFAULT_MAX_RPC_TIMEOUT) + .setMaxRpcTimeoutDuration(DEFAULT_MAX_RPC_TIMEOUT) .build(); static final boolean DEFAULT_ENABLE_MESSAGE_ORDERING = false; private static final int THREADS_PER_CPU = 5; @@ -876,9 +876,9 @@ public Builder setBatchingSettings(BatchingSettings batchingSettings) { /** Configures the Publisher's retry parameters. */ public Builder setRetrySettings(RetrySettings retrySettings) { Preconditions.checkArgument( - retrySettings.getTotalTimeout().compareTo(MIN_TOTAL_TIMEOUT) >= 0); + retrySettings.getTotalTimeoutDuration().compareTo(MIN_TOTAL_TIMEOUT) >= 0); Preconditions.checkArgument( - retrySettings.getInitialRpcTimeout().compareTo(MIN_RPC_TIMEOUT) >= 0); + retrySettings.getInitialRpcTimeoutDuration().compareTo(MIN_RPC_TIMEOUT) >= 0); this.retrySettings = retrySettings; return this; } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 60da55cee239..3ad124f80ca8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -51,6 +51,7 @@ import io.grpc.Status; import io.grpc.protobuf.StatusProto; import io.opentelemetry.api.trace.Span; +import java.time.Duration; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; @@ -68,7 +69,6 @@ import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.Nullable; -import org.threeten.bp.Duration; /** Implementation of {@link AckProcessor} based on Cloud Pub/Sub streaming pull. */ final class StreamingSubscriberConnection extends AbstractApiService implements AckProcessor { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index e9926fa58272..4b9ea3825631 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -16,12 +16,15 @@ package com.google.cloud.pubsub.v1; +import static com.google.api.gax.util.TimeConversionUtils.toJavaTimeDuration; + import com.google.api.core.AbstractApiService; import com.google.api.core.ApiClock; import com.google.api.core.ApiService; import com.google.api.core.BetaApi; import com.google.api.core.CurrentMillisClock; import com.google.api.core.InternalApi; +import com.google.api.core.ObsoleteApi; import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; import com.google.api.gax.batching.FlowController.LimitExceededBehavior; @@ -55,7 +58,6 @@ import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.Nullable; -import org.threeten.bp.Duration; /** * A Cloud Pub/Sub subscriber that is @@ -98,24 +100,37 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private static final int MAX_INBOUND_METADATA_SIZE = 4 * 1024 * 1024; // 4MB API maximum metadata size - @InternalApi static final Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); + @InternalApi + static final java.time.Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = + java.time.Duration.ofMinutes(60); @InternalApi - static final Duration DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY = - Duration.ofMinutes(1); + static final java.time.Duration DEFAULT_MIN_ACK_DEADLINE_EXTENSION_EXACTLY_ONCE_DELIVERY = + java.time.Duration.ofMinutes(1); - @InternalApi static final Duration DEFAULT_MIN_ACK_DEADLINE_EXTENSION = Duration.ofMinutes(0); - @InternalApi static final Duration DEFAULT_MAX_ACK_DEADLINE_EXTENSION = Duration.ofSeconds(0); + @InternalApi + static final java.time.Duration DEFAULT_MIN_ACK_DEADLINE_EXTENSION = + java.time.Duration.ofMinutes(0); - @InternalApi static final Duration MIN_STREAM_ACK_DEADLINE = Duration.ofSeconds(10); - @InternalApi static final Duration MAX_STREAM_ACK_DEADLINE = Duration.ofSeconds(600); + @InternalApi + static final java.time.Duration DEFAULT_MAX_ACK_DEADLINE_EXTENSION = + java.time.Duration.ofSeconds(0); - @InternalApi static final Duration STREAM_ACK_DEADLINE_DEFAULT = Duration.ofSeconds(60); + @InternalApi + static final java.time.Duration MIN_STREAM_ACK_DEADLINE = java.time.Duration.ofSeconds(10); @InternalApi - static final Duration STREAM_ACK_DEADLINE_EXACTLY_ONCE_DELIVERY_DEFAULT = Duration.ofSeconds(60); + static final java.time.Duration MAX_STREAM_ACK_DEADLINE = java.time.Duration.ofSeconds(600); - @InternalApi static final Duration ACK_EXPIRATION_PADDING_DEFAULT = Duration.ofSeconds(5); + @InternalApi + static final java.time.Duration STREAM_ACK_DEADLINE_DEFAULT = java.time.Duration.ofSeconds(60); + + @InternalApi + static final java.time.Duration STREAM_ACK_DEADLINE_EXACTLY_ONCE_DELIVERY_DEFAULT = + java.time.Duration.ofSeconds(60); + + @InternalApi + static final java.time.Duration ACK_EXPIRATION_PADDING_DEFAULT = java.time.Duration.ofSeconds(5); private static final Logger logger = Logger.getLogger(Subscriber.class.getName()); @@ -124,10 +139,10 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final String subscriptionName; private final FlowControlSettings flowControlSettings; private final boolean useLegacyFlowControl; - private final Duration maxAckExtensionPeriod; - private final Duration maxDurationPerAckExtension; + private final java.time.Duration maxAckExtensionPeriod; + private final java.time.Duration maxDurationPerAckExtension; private final boolean maxDurationPerAckExtensionDefaultUsed; - private final Duration minDurationPerAckExtension; + private final java.time.Duration minDurationPerAckExtension; private final boolean minDurationPerAckExtensionDefaultUsed; // The ExecutorProvider used to generate executors for processing messages. @@ -490,10 +505,10 @@ public static final class Builder { private MessageReceiver receiver; private MessageReceiverWithAckResponse receiverWithAckResponse; - private Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; - private Duration minDurationPerAckExtension = DEFAULT_MIN_ACK_DEADLINE_EXTENSION; + private java.time.Duration maxAckExtensionPeriod = DEFAULT_MAX_ACK_EXTENSION_PERIOD; + private java.time.Duration minDurationPerAckExtension = DEFAULT_MIN_ACK_DEADLINE_EXTENSION; private boolean minDurationPerAckExtensionDefaultUsed = true; - private Duration maxDurationPerAckExtension = DEFAULT_MAX_ACK_DEADLINE_EXTENSION; + private java.time.Duration maxDurationPerAckExtension = DEFAULT_MAX_ACK_DEADLINE_EXTENSION; private boolean maxDurationPerAckExtensionDefaultUsed = true; private boolean useLegacyFlowControl = false; @@ -505,7 +520,7 @@ public static final class Builder { SubscriptionAdminSettings.defaultGrpcTransportProviderBuilder() .setMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE) .setMaxInboundMetadataSize(MAX_INBOUND_METADATA_SIZE) - .setKeepAliveTime(Duration.ofMinutes(5)) + .setKeepAliveTimeDuration(java.time.Duration.ofMinutes(5)) .build(); private HeaderProvider headerProvider = new NoHeaderProvider(); private CredentialsProvider credentialsProvider = @@ -596,6 +611,15 @@ public Builder setUseLegacyFlowControl(boolean value) { return this; } + /** + * This method is obsolete. Use {@link #setMaxAckExtensionPeriodDuration(java.time.Duration)} + * instead. + */ + @ObsoleteApi("Use setMaxAckExtensionPeriodDuration(java.time.Duration) instead") + public Builder setMaxAckExtensionPeriod(org.threeten.bp.Duration maxAckExtensionPeriod) { + return setMaxAckExtensionPeriodDuration(toJavaTimeDuration(maxAckExtensionPeriod)); + } + /** * Set the maximum period a message ack deadline will be extended. Defaults to one hour. * @@ -605,12 +629,22 @@ public Builder setUseLegacyFlowControl(boolean value) { * *

    A zero duration effectively disables auto deadline extensions. */ - public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { + public Builder setMaxAckExtensionPeriodDuration(java.time.Duration maxAckExtensionPeriod) { Preconditions.checkArgument(maxAckExtensionPeriod.toMillis() >= 0); this.maxAckExtensionPeriod = maxAckExtensionPeriod; return this; } + /** + * This method is obsolete. Use {@link + * #setMaxDurationPerAckExtensionDuration(java.time.Duration)} instead. + */ + @ObsoleteApi("Use setMaxDurationPerAckExtensionDuration(java.time.Duration) instead") + public Builder setMaxDurationPerAckExtension( + org.threeten.bp.Duration maxDurationPerAckExtension) { + return setMaxDurationPerAckExtensionDuration(toJavaTimeDuration(maxDurationPerAckExtension)); + } + /** * Set the upper bound for a single mod ack extention period. * @@ -621,7 +655,8 @@ public Builder setMaxAckExtensionPeriod(Duration maxAckExtensionPeriod) { * *

    MaxDurationPerAckExtension configuration can be disabled by specifying a zero duration. */ - public Builder setMaxDurationPerAckExtension(Duration maxDurationPerAckExtension) { + public Builder setMaxDurationPerAckExtensionDuration( + java.time.Duration maxDurationPerAckExtension) { // If a non-default min is set, make sure min is less than max Preconditions.checkArgument( maxDurationPerAckExtension.toMillis() >= 0 @@ -633,6 +668,16 @@ public Builder setMaxDurationPerAckExtension(Duration maxDurationPerAckExtension return this; } + /** + * This method is obsolete. Use {@link + * #setMinDurationPerAckExtensionDuration(java.time.Duration)} instead. + */ + @ObsoleteApi("Use setMinDurationPerAckExtensionDuration(java.time.Duration) instead") + public Builder setMinDurationPerAckExtension( + org.threeten.bp.Duration minDurationPerAckExtension) { + return setMinDurationPerAckExtensionDuration(toJavaTimeDuration(minDurationPerAckExtension)); + } + /** * Set the lower bound for a single mod ack extention period. * @@ -643,7 +688,8 @@ public Builder setMaxDurationPerAckExtension(Duration maxDurationPerAckExtension * *

    MinDurationPerAckExtension configuration can be disabled by specifying a zero duration. */ - public Builder setMinDurationPerAckExtension(Duration minDurationPerAckExtension) { + public Builder setMinDurationPerAckExtensionDuration( + java.time.Duration minDurationPerAckExtension) { // If a non-default max is set, make sure min is less than max Preconditions.checkArgument( minDurationPerAckExtension.toMillis() >= 0 diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java index 23817f558391..9ab1dec73471 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java @@ -21,13 +21,13 @@ import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PublisherGrpc.PublisherImplBase; import io.grpc.stub.StreamObserver; +import java.time.Duration; import java.util.ArrayList; import java.util.List; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; -import org.threeten.bp.Duration; /** * A fake implementation of {@link PublisherImplBase}, that can be used to test clients of a Cloud diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java index cf067e2da1ec..65e199e92e94 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java @@ -18,6 +18,8 @@ import com.google.common.primitives.Ints; import com.google.common.util.concurrent.SettableFuture; +import java.time.Duration; +import java.time.Instant; import java.util.ArrayList; import java.util.Deque; import java.util.LinkedList; @@ -32,8 +34,6 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import java.util.concurrent.atomic.AtomicBoolean; -import org.threeten.bp.Duration; -import org.threeten.bp.Instant; /** * Fake implementation of {@link ScheduledExecutorService} that allows tests control the reference diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index c608ee8d5c1a..bd3dccccfd5c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -26,13 +26,13 @@ import com.google.protobuf.ByteString; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.ReceivedMessage; +import java.time.Duration; import java.util.*; import java.util.concurrent.*; import org.junit.Before; import org.junit.Test; import org.mockito.invocation.InvocationOnMock; import org.mockito.stubbing.Answer; -import org.threeten.bp.Duration; public class MessageDispatcherTest { private static final ByteString MESSAGE_DATA = ByteString.copyFromUtf8("message-data"); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index 411b61d154fa..cdefa84f7727 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -54,6 +54,7 @@ import io.opentelemetry.sdk.testing.assertj.SpanDataAssert; import io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule; import io.opentelemetry.sdk.trace.data.SpanData; +import java.time.Duration; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; @@ -66,7 +67,6 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -import org.threeten.bp.Duration; @RunWith(JUnit4.class) public class PublisherImplTest { @@ -120,7 +120,7 @@ public void testPublishByDuration() throws Exception { .setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setElementCountThreshold(10L) .build()) .build(); @@ -151,7 +151,7 @@ public void testPublishByNumBatchedMessages() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(2L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .build(); @@ -190,7 +190,7 @@ public void testSinglePublishByNumBytes() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(2L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .build(); @@ -225,7 +225,7 @@ public void testPublishByShutdown() throws Exception { .setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .setElementCountThreshold(10L) .build()) .build(); @@ -259,7 +259,7 @@ public void testPublishMixedSizeAndDuration() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(2L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) .build(); @@ -300,7 +300,7 @@ public void testPublishWithCompression() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(2L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .setEnableCompression(true) .setCompressionBytesThreshold(100) @@ -331,7 +331,7 @@ public void testBatchedMessagesWithOrderingKeyByNum() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(3L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .setEnableMessageOrdering(true) .build(); @@ -384,7 +384,7 @@ public void testBatchedMessagesWithOrderingKeyByDuration() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(10L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .setEnableMessageOrdering(true) .build(); @@ -448,7 +448,7 @@ public void testLargeMessagesDoNotReorderBatches() throws Exception { .toBuilder() .setElementCountThreshold(10L) .setRequestByteThreshold(64L) - .setDelayThreshold(Duration.ofSeconds(100)) + .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) .setEnableMessageOrdering(true) .build(); @@ -490,7 +490,7 @@ public void testEnableMessageOrdering_overwritesMaxAttempts() throws Exception { .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(1) .build()) .setEnableMessageOrdering(true) @@ -613,7 +613,7 @@ public void testPublishThrowExceptionForUnsubmittedOrderingKeyMessage() throws E Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(2L) - .setDelayThreshold(Duration.ofSeconds(500)) + .setDelayThresholdDuration(Duration.ofSeconds(500)) .build()) .setEnableMessageOrdering(true) .build(); @@ -674,7 +674,7 @@ public void testErrorPropagation() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) .build(); testPublisherServiceImpl.addPublishError(Status.DATA_LOSS.asException()); @@ -695,7 +695,7 @@ public void testPublishFailureRetries() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) .build(); // To demonstrate that reaching duration will trigger publish @@ -718,7 +718,7 @@ public void testPublishFailureRetries_retriesDisabled() throws Exception { .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(1) .build()) .build(); @@ -743,7 +743,7 @@ public void testPublishFailureRetries_maxRetriesSetup() throws Exception { .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(3) .build()) .build(); @@ -768,7 +768,7 @@ public void testPublishFailureRetries_maxRetriesSetUnlimited() throws Exception .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(0) .build()) .build(); @@ -794,13 +794,13 @@ public void testPublishFailureRetries_nonRetryableFailsImmediately() throws Exce .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .build()) .setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) .build(); // To demonstrate that reaching duration will trigger publish @@ -825,7 +825,7 @@ public void testPublisherGetters() throws Exception { builder.setBatchingSettings( BatchingSettings.newBuilder() .setRequestByteThreshold(10L) - .setDelayThreshold(Duration.ofMillis(11)) + .setDelayThresholdDuration(Duration.ofMillis(11)) .setElementCountThreshold(12L) .build()); builder.setCredentialsProvider(NoCredentialsProvider.create()); @@ -833,7 +833,8 @@ public void testPublisherGetters() throws Exception { assertEquals(TEST_TOPIC, publisher.getTopicName()); assertEquals(10, (long) publisher.getBatchingSettings().getRequestByteThreshold()); - assertEquals(Duration.ofMillis(11), publisher.getBatchingSettings().getDelayThreshold()); + assertEquals( + Duration.ofMillis(11), publisher.getBatchingSettings().getDelayThresholdDuration()); assertEquals(12, (long) publisher.getBatchingSettings().getElementCountThreshold()); publisher.shutdown(); assertTrue(publisher.awaitTermination(1, TimeUnit.MINUTES)); @@ -848,7 +849,8 @@ public void testBuilderParametersAndDefaults() { Publisher.Builder.DEFAULT_REQUEST_BYTES_THRESHOLD, builder.batchingSettings.getRequestByteThreshold().longValue()); assertEquals( - Publisher.Builder.DEFAULT_DELAY_THRESHOLD, builder.batchingSettings.getDelayThreshold()); + Publisher.Builder.DEFAULT_DELAY_THRESHOLD, + builder.batchingSettings.getDelayThresholdDuration()); assertEquals( Publisher.Builder.DEFAULT_ELEMENT_COUNT_THRESHOLD, builder.batchingSettings.getElementCountThreshold().longValue()); @@ -906,7 +908,7 @@ public void testBuilderInvalidArguments() { builder.setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() - .setDelayThreshold(Duration.ofMillis(1)) + .setDelayThresholdDuration(Duration.ofMillis(1)) .build()); try { builder.setBatchingSettings( @@ -919,7 +921,7 @@ public void testBuilderInvalidArguments() { builder.setBatchingSettings( Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() - .setDelayThreshold(Duration.ofMillis(-1)) + .setDelayThresholdDuration(Duration.ofMillis(-1)) .build()); fail("Should have thrown an IllegalArgumentException"); } catch (IllegalArgumentException expected) { @@ -965,13 +967,13 @@ public void testBuilderInvalidArguments() { builder.setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setInitialRpcTimeout(Publisher.Builder.MIN_RPC_TIMEOUT) + .setInitialRpcTimeoutDuration(Publisher.Builder.MIN_RPC_TIMEOUT) .build()); try { builder.setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setInitialRpcTimeout(Publisher.Builder.MIN_RPC_TIMEOUT.minusMillis(1)) + .setInitialRpcTimeoutDuration(Publisher.Builder.MIN_RPC_TIMEOUT.minusMillis(1)) .build()); fail("Should have thrown an IllegalArgumentException"); } catch (IllegalArgumentException expected) { @@ -980,13 +982,13 @@ public void testBuilderInvalidArguments() { builder.setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Publisher.Builder.MIN_TOTAL_TIMEOUT) + .setTotalTimeoutDuration(Publisher.Builder.MIN_TOTAL_TIMEOUT) .build()); try { builder.setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Publisher.Builder.MIN_TOTAL_TIMEOUT.minusMillis(1)) + .setTotalTimeoutDuration(Publisher.Builder.MIN_TOTAL_TIMEOUT.minusMillis(1)) .build()); fail("Should have thrown an IllegalArgumentException"); } catch (IllegalArgumentException expected) { @@ -1031,7 +1033,7 @@ public void testAwaitTermination() throws Exception { .setRetrySettings( Publisher.Builder.DEFAULT_RETRY_SETTINGS .toBuilder() - .setTotalTimeout(Duration.ofSeconds(10)) + .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(0) .build()) .build(); @@ -1066,7 +1068,7 @@ public void invalidFlowControlBytes_throwException() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior( @@ -1091,7 +1093,7 @@ public void invalidFlowControlElementCount_throwException() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior( @@ -1116,7 +1118,7 @@ public void testMessageExceedsFlowControlLimits_throwException() throws Exceptio Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) @@ -1144,7 +1146,7 @@ public void testPublishFlowControl_throwException() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior( @@ -1186,7 +1188,7 @@ public void testPublishFlowControl_throwExceptionWithOrderingKey() throws Except Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior( @@ -1233,7 +1235,7 @@ public void testPublishFlowControl_block() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) @@ -1325,7 +1327,7 @@ public void testPublishOpenTelemetryTracing() throws Exception { Publisher.Builder.DEFAULT_BATCHING_SETTINGS .toBuilder() .setElementCountThreshold(1L) - .setDelayThreshold(Duration.ofSeconds(5)) + .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( FlowControlSettings.newBuilder() .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Block) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 95f8897a4b86..412dd2ad86b4 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -34,6 +34,7 @@ import com.google.rpc.Status; import io.grpc.StatusException; import io.grpc.protobuf.StatusProto; +import java.time.Duration; import java.util.*; import java.util.concurrent.ExecutionException; import org.junit.After; @@ -41,7 +42,6 @@ import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; -import org.threeten.bp.Duration; /** Tests for {@link StreamingSubscriberConnection}. */ public class StreamingSubscriberConnectionTest { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 612c244fe49c..679d37e40362 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -35,13 +35,13 @@ import io.grpc.StatusException; import io.grpc.inprocess.InProcessChannelBuilder; import io.grpc.inprocess.InProcessServerBuilder; +import java.time.Duration; import java.util.concurrent.*; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; -import org.threeten.bp.Duration; /** Tests for {@link Subscriber}. */ public class SubscriberTest { @@ -241,7 +241,8 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { Subscriber subscriber = startSubscriber( getTestSubscriberBuilder(testReceiver) - .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + .setMaxDurationPerAckExtensionDuration( + Duration.ofSeconds(maxDurationPerAckExtension))); assertEquals( expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); assertEquals( @@ -255,7 +256,8 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { subscriber = startSubscriber( getTestSubscriberBuilder(testReceiver) - .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + .setMaxDurationPerAckExtensionDuration( + Duration.ofSeconds(maxDurationPerAckExtension))); assertEquals( expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); assertEquals( @@ -269,7 +271,8 @@ public void testStreamAckDeadlineIsSetCorrectly() throws Exception { subscriber = startSubscriber( getTestSubscriberBuilder(testReceiver) - .setMaxDurationPerAckExtension(Duration.ofSeconds(maxDurationPerAckExtension))); + .setMaxDurationPerAckExtensionDuration( + Duration.ofSeconds(maxDurationPerAckExtension))); assertEquals( expectedChannelCount, fakeSubscriberServiceImpl.waitForOpenedStreams(expectedChannelCount)); assertEquals( From ac7377ca8a496c804b178ccb6bfa503cb1215dc4 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Wed, 27 Nov 2024 20:22:40 +0000 Subject: [PATCH 2003/2363] chore: make library generation required (#2274) * chore: make library generation required * chore: generate libraries at Wed Nov 27 20:07:36 UTC 2024 --------- Co-authored-by: cloud-java-bot --- java-pubsub/.github/sync-repo-settings.yaml | 1 + java-pubsub/README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 8f2999f823d0..491be19e7483 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -18,6 +18,7 @@ branchProtectionRules: - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc + - library_generation - pattern: 1.111.0-sp isAdminEnforced: true requiredApprovingReviewCount: 1 diff --git a/java-pubsub/README.md b/java-pubsub/README.md index fc05a067d6ee..de4683403239 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.134.1 + 1.134.2 ``` From db8f5706e328cd3c79ac15190ce63686adc2a1fb Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 28 Nov 2024 07:42:26 -0500 Subject: [PATCH 2004/2363] chore: mark the unmanaged dependency check required (#2275) b/326247198 --- java-pubsub/.github/sync-repo-settings.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 491be19e7483..9908bfe3885f 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -19,6 +19,7 @@ branchProtectionRules: - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc - library_generation + - unmanaged_dependency_check - pattern: 1.111.0-sp isAdminEnforced: true requiredApprovingReviewCount: 1 From 525a1b1e8c3c611ffe07e4a54839f0df7dc6eb1f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 5 Dec 2024 00:54:48 +0100 Subject: [PATCH 2005/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.51.0 (#2278) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index fc08b048be16..e1b5be620f32 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import From bdbe63f7ffcc1e3cf92323127aef42f0a0aab3f3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 5 Dec 2024 00:55:05 +0100 Subject: [PATCH 2006/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.29.0 (#2276) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d04a0348c5fb..aa16633cea25 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.28.3 + 4.29.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 64cbe30412db..a22da39b0529 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.28.3 + 4.29.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e1b5be620f32..6aa3fa562301 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.28.3 + 4.29.0 From 139454fe502ddffceec54fcee4644be0219f6da6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:54:28 -0500 Subject: [PATCH 2007/2363] chore(main): release 1.134.3-SNAPSHOT (#2266) * chore(main): release 1.134.3-SNAPSHOT * chore: generate libraries at Wed Dec 4 23:56:04 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index de4683403239..da72489ca831 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.50.0 + 26.51.0 pom import diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fd4ab205c72d..7c453327204d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.2 + 1.134.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.2 + 1.134.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 34ccd6268019..81df2d440d8e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.2 + 1.134.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.2 + 1.134.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index dea977515eca..a216915ef2f5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.2 + 1.134.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6407100a6db5..8ff9d06ebbac 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.2 + 1.134.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.134.2 + 1.134.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index fa506eee8bc2..beac4e05e271 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.2 + 1.116.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.2 + 1.134.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a22da39b0529..a78025dc9d78 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.2 + 1.134.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 83ccf2fa96cf..d397e309f858 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.2:1.134.2 -grpc-google-cloud-pubsub-v1:1.116.2:1.116.2 -proto-google-cloud-pubsub-v1:1.116.2:1.116.2 +google-cloud-pubsub:1.134.2:1.134.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.116.2:1.116.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.116.2:1.116.3-SNAPSHOT From d62511ce528d9defc79d3c1da3aaca8405f330d2 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Fri, 6 Dec 2024 10:18:07 -0500 Subject: [PATCH 2008/2363] docs: Fix repository URL in samples README (#2280) --- java-pubsub/samples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/README.md b/java-pubsub/samples/README.md index 5656f6f4df52..4390e7ea69fc 100644 --- a/java-pubsub/samples/README.md +++ b/java-pubsub/samples/README.md @@ -2,7 +2,7 @@ 1. Clone this repo and navigate to the `snippets` directory. ```shell - git clone https://github.com/googlepis/java-pubsub + git clone https://github.com/googleapis/java-pubsub cd java-pubsub/samples/snippets ``` From 4eaeeefd958a82e209da49388b2f74fb948c4042 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 6 Dec 2024 21:45:47 +0100 Subject: [PATCH 2009/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.29.1 (#2279) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index aa16633cea25..be35be28225a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.29.0 + 4.29.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a78025dc9d78..330d1642369f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.29.0 + 4.29.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6aa3fa562301..63e037941abf 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.29.0 + 4.29.1 From f45148fd703176182e2f37a9f62710895c340c23 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 6 Dec 2024 15:46:05 -0500 Subject: [PATCH 2010/2363] chore: Update generation configuration at Fri Dec 6 02:31:00 UTC 2024 (#2267) * chore: Update generation configuration at Tue Nov 19 02:29:41 UTC 2024 * chore: Update generation configuration at Wed Nov 20 02:29:07 UTC 2024 * chore: Update generation configuration at Thu Nov 21 02:28:56 UTC 2024 * chore: Update generation configuration at Fri Nov 22 02:29:33 UTC 2024 * chore: Update generation configuration at Sat Nov 23 02:27:22 UTC 2024 * chore: Update generation configuration at Tue Nov 26 02:29:47 UTC 2024 * chore: Update generation configuration at Wed Nov 27 02:30:44 UTC 2024 * chore: Update generation configuration at Thu Nov 28 02:30:34 UTC 2024 * chore: Update generation configuration at Fri Nov 29 02:30:35 UTC 2024 * chore: Update generation configuration at Tue Dec 3 02:31:16 UTC 2024 * chore: Update generation configuration at Wed Dec 4 02:31:23 UTC 2024 * chore: Update generation configuration at Thu Dec 5 02:31:38 UTC 2024 * chore: Update generation configuration at Fri Dec 6 02:31:00 UTC 2024 * chore: generate libraries at Fri Dec 6 02:31:31 UTC 2024 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index da72489ca831..3f0f73f52cef 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.50.0') +implementation platform('com.google.cloud:libraries-bom:26.51.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 1cd5e6971c81..7dac230ffe82 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.50.0 -googleapis_commitish: 0b5613ee74c9558dd284aa2b01a585ce297c0045 -libraries_bom_version: 26.50.0 +googleapis_commitish: 3be31fed1e19de78da8ae8a7f074ecaae5d1db60 +libraries_bom_version: 26.51.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 6cccdd4b43fed0df371c4738843ec9b8277901f8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 12 Dec 2024 20:04:27 +0100 Subject: [PATCH 2011/2363] deps: update googleapis/sdk-platform-java action to v2.51.0 (#2284) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 35aa3b151d65..604b674bad98 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.50.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.51.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 2963eb46e87f1ee895124a8c69b988c2edb9df78 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 12 Dec 2024 20:12:31 +0100 Subject: [PATCH 2012/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.49.0 (#2285) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index be35be28225a..c9853204f8bc 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.48.0 + 2.49.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 330d1642369f..84b375212ccd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.48.0 + 2.49.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 63e037941abf..c74d17651b5b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.48.0 + 2.49.0 tests From 6978152681328434f0471e2f548367c593e08fa5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 12 Dec 2024 20:17:12 +0100 Subject: [PATCH 2013/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.41.0 (#2286) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 1834e52e136a..c1918a2b721b 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.40.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.41.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 82ed3a43e49b..76ca3ee6dafa 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.40.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.41.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index a836c97f04bd..644bb62ce7d3 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.40.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.41.0" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7c453327204d..a69c639907dc 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.40.0 + 3.41.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8ff9d06ebbac..d4dc1c90bfd8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.40.0 + 3.41.0 From 3098d1008652f1acc2e362cfa511fd45ce240b3a Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:48:26 -0500 Subject: [PATCH 2014/2363] chore: Update generation configuration at Thu Dec 12 19:17:58 UTC 2024 (#2287) * chore: Update generation configuration at Thu Dec 12 19:17:58 UTC 2024 * update renovate.json * update generator version in config * update workflow script --------- Co-authored-by: JoeWang1127 --- .../scripts/update_generation_config.sh | 63 ++++++++++++++++--- java-pubsub/generation_config.yaml | 4 +- java-pubsub/renovate.json | 17 ----- 3 files changed, 57 insertions(+), 27 deletions(-) diff --git a/java-pubsub/.github/scripts/update_generation_config.sh b/java-pubsub/.github/scripts/update_generation_config.sh index 561a313040f3..91434688cc5c 100644 --- a/java-pubsub/.github/scripts/update_generation_config.sh +++ b/java-pubsub/.github/scripts/update_generation_config.sh @@ -28,11 +28,23 @@ function update_config() { sed -i -e "s/^${key_word}.*$/${key_word}: ${new_value}/" "${file}" } +# Update an action to a new version in GitHub action. +function update_action() { + local key_word=$1 + local new_value=$2 + local file=$3 + echo "Update ${key_word} to ${new_value} in ${file}" + # use a different delimiter because the key_word contains "/". + sed -i -e "s|${key_word}@v.*$|${key_word}@v${new_value}|" "${file}" +} + # The parameters of this script is: # 1. base_branch, the base branch of the result pull request. # 2. repo, organization/repo-name, e.g., googleapis/google-cloud-java # 3. [optional] generation_config, the path to the generation configuration, # the default value is generation_config.yaml in the repository root. +# 4. [optional] workflow, the library generation workflow file, +# the default value is .github/workflows/hermetic_library_generation.yaml. while [[ $# -gt 0 ]]; do key="$1" case "${key}" in @@ -48,6 +60,10 @@ case "${key}" in generation_config="$2" shift ;; + --workflow) + workflow="$2" + shift + ;; *) echo "Invalid option: [$1]" exit 1 @@ -71,21 +87,34 @@ if [ -z "${generation_config}" ]; then echo "Use default generation config: ${generation_config}" fi +if [ -z "${workflow}" ]; then + workflow=".github/workflows/hermetic_library_generation.yaml" + echo "Use default library generation workflow file: ${workflow}" +fi + current_branch="generate-libraries-${base_branch}" title="chore: Update generation configuration at $(date)" -# try to find a open pull request associated with the branch +git checkout "${base_branch}" +# Try to find a open pull request associated with the branch pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") -# create a branch if there's no open pull request associated with the +# Create a branch if there's no open pull request associated with the # branch; otherwise checkout the pull request. if [ -z "${pr_num}" ]; then git checkout -b "${current_branch}" + # Push the current branch to remote so that we can + # compare the commits later. + git push -u origin "${current_branch}" else gh pr checkout "${pr_num}" fi +# Only allow fast-forward merging; exit with non-zero result if there's merging +# conflict. +git merge -m "chore: merge ${base_branch} into ${current_branch}" "${base_branch}" + mkdir tmp-googleapis -# use partial clone because only commit history is needed. +# Use partial clone because only commit history is needed. git clone --filter=blob:none https://github.com/googleapis/googleapis.git tmp-googleapis pushd tmp-googleapis git pull @@ -94,25 +123,43 @@ popd rm -rf tmp-googleapis update_config "googleapis_commitish" "${latest_commit}" "${generation_config}" -# update gapic-generator-java version to the latest +# Update gapic-generator-java version to the latest latest_version=$(get_latest_released_version "com.google.api" "gapic-generator-java") update_config "gapic_generator_version" "${latest_version}" "${generation_config}" -# update libraries-bom version to the latest +# Update composite action version to latest gapic-generator-java version +update_action "googleapis/sdk-platform-java/.github/scripts" \ + "${latest_version}" \ + "${workflow}" + +# Update libraries-bom version to the latest latest_version=$(get_latest_released_version "com.google.cloud" "libraries-bom") update_config "libraries_bom_version" "${latest_version}" "${generation_config}" -git add "${generation_config}" +git add "${generation_config}" "${workflow}" changed_files=$(git diff --cached --name-only) if [[ "${changed_files}" == "" ]]; then echo "The latest generation config is not changed." echo "Skip committing to the pull request." +else + git commit -m "${title}" +fi + +# There are potentially at most two commits: merge commit and change commit. +# We want to exit the script if no commit happens (otherwise this will be an +# infinite loop). +# `git cherry` is a way to find whether the local branch has commits that are +# not in the remote branch. +# If we find any such commit, push them to remote branch. +unpushed_commit=$(git cherry -v "origin/${current_branch}" | wc -l) +if [[ "${unpushed_commit}" -eq 0 ]]; then + echo "No unpushed commits, exit" exit 0 fi -git commit -m "${title}" + if [ -z "${pr_num}" ]; then git remote add remote_repo https://cloud-java-bot:"${GH_TOKEN}@github.com/${repo}.git" - git fetch -q --unshallow remote_repo + git fetch -q remote_repo git push -f remote_repo "${current_branch}" gh pr create --title "${title}" --head "${current_branch}" --body "${title}" --base "${base_branch}" else diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 7dac230ffe82..a1f95639c70c 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.50.0 -googleapis_commitish: 3be31fed1e19de78da8ae8a7f074ecaae5d1db60 +gapic_generator_version: 2.51.0 +googleapis_commitish: 7d0c6bee2517d77635beb2a1dd6d6e7d4d943512 libraries_bom_version: 26.51.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 9afb4c0bf7ce..f67202e06d1e 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -41,16 +41,6 @@ ], "depNameTemplate": "com.google.cloud:sdk-platform-java-config", "datasourceTemplate": "maven" - }, - { - "fileMatch": [ - "^.github/workflows/hermetic_library_generation.yaml$" - ], - "matchStrings": [ - "uses: googleapis/sdk-platform-java/.github/scripts@v(?.+?)\\n" - ], - "depNameTemplate": "com.google.api:gapic-generator-java", - "datasourceTemplate": "maven" } ], "packageRules": [ @@ -111,13 +101,6 @@ "^com.fasterxml.jackson.core" ], "groupName": "jackson dependencies" - }, - { - "matchPackagePatterns": [ - "^com.google.api:gapic-generator-java", - "^com.google.cloud:sdk-platform-java-config" - ], - "groupName": "SDK platform Java dependencies" } ], "semanticCommits": true, From 847508151bcb2202b09494ca8ec15f85bcd75173 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:14:04 -0500 Subject: [PATCH 2015/2363] chore(main): release 1.135.0 (#2281) * chore(main): release 1.135.0 * chore: generate libraries at Thu Dec 12 20:49:16 UTC 2024 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 29 +++++++++++++++++++ java-pubsub/README.md | 6 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 ++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++-- 9 files changed, 50 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 82d9f118d2d4..2aebaf6bbd06 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## [1.135.0](https://github.com/googleapis/java-pubsub/compare/v1.134.2...v1.135.0) (2024-12-12) + + +### Features + +* Introduce `java.time` variables and methods ([#2271](https://github.com/googleapis/java-pubsub/issues/2271)) ([7edfd9c](https://github.com/googleapis/java-pubsub/commit/7edfd9c315405c7703509fb9b7bc4f0d2686d870)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.51.0 ([0b0d52c](https://github.com/googleapis/java-pubsub/commit/0b0d52c8fca179a913a8b04d76b44748f1886f45)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.44.0 ([#2270](https://github.com/googleapis/java-pubsub/issues/2270)) ([a5f70a9](https://github.com/googleapis/java-pubsub/commit/a5f70a9c2397a2c8f4642729922b742a3df01ed6)) +* Update dependency com.google.cloud:google-cloud-core to v2.48.0 ([#2263](https://github.com/googleapis/java-pubsub/issues/2263)) ([d7e5588](https://github.com/googleapis/java-pubsub/commit/d7e55886b62826f54f0bb12a6bfa4ef67dee6521)) +* Update dependency com.google.cloud:google-cloud-core to v2.49.0 ([#2285](https://github.com/googleapis/java-pubsub/issues/2285)) ([cd94a19](https://github.com/googleapis/java-pubsub/commit/cd94a1987271eea4d7744286a7daeb071bb9456a)) +* Update dependency com.google.cloud:google-cloud-storage to v2.45.0 ([#2268](https://github.com/googleapis/java-pubsub/issues/2268)) ([80a09e6](https://github.com/googleapis/java-pubsub/commit/80a09e69111229080c413eff8426bd0b3d50458d)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.41.0 ([#2286](https://github.com/googleapis/java-pubsub/issues/2286)) ([0c0a1b9](https://github.com/googleapis/java-pubsub/commit/0c0a1b9231953e5c9878e0dfcf5a55d01794f6c4)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.29.0 ([#2276](https://github.com/googleapis/java-pubsub/issues/2276)) ([54ef88d](https://github.com/googleapis/java-pubsub/commit/54ef88d7f822d8130717e3be9bcf7fe9901d6cb0)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.29.1 ([#2279](https://github.com/googleapis/java-pubsub/issues/2279)) ([de3c9e1](https://github.com/googleapis/java-pubsub/commit/de3c9e1c7f2fe6413d0ae7a18955f16611df95c6)) +* Update googleapis/sdk-platform-java action to v2.51.0 ([#2284](https://github.com/googleapis/java-pubsub/issues/2284)) ([0be820e](https://github.com/googleapis/java-pubsub/commit/0be820e2044253bf484d88d703ce2dfade7aa137)) + + +### Documentation + +* Fix repository URL in samples README ([#2280](https://github.com/googleapis/java-pubsub/issues/2280)) ([8aeff1a](https://github.com/googleapis/java-pubsub/commit/8aeff1a375f3aa989d2c4bde0ed3dd2f329601fc)) + ## [1.134.2](https://github.com/googleapis/java-pubsub/compare/v1.134.1...v1.134.2) (2024-11-18) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3f0f73f52cef..682f9ea4da8c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.134.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.135.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.134.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.135.0" ``` ## Authentication @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.134.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.135.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a69c639907dc..44b72d4e45f8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.134.3-SNAPSHOT + 1.135.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.134.3-SNAPSHOT + 1.135.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 81df2d440d8e..7547d60f8c0e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.134.3-SNAPSHOT + 1.135.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.134.3-SNAPSHOT + 1.135.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a216915ef2f5..c6109ceaac98 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.3-SNAPSHOT + 1.135.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d4dc1c90bfd8..7dd3d73a52dd 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.134.3-SNAPSHOT + 1.135.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 com.google.cloud google-cloud-pubsub - 1.134.3-SNAPSHOT + 1.135.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index beac4e05e271..dcd873c0226c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.116.3-SNAPSHOT + 1.117.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.134.3-SNAPSHOT + 1.135.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 84b375212ccd..e5625cdb9200 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.134.3-SNAPSHOT + 1.135.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index d397e309f858..ee35354e82dc 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.134.2:1.134.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.116.2:1.116.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.116.2:1.116.3-SNAPSHOT +google-cloud-pubsub:1.135.0:1.135.0 +grpc-google-cloud-pubsub-v1:1.117.0:1.117.0 +proto-google-cloud-pubsub-v1:1.117.0:1.117.0 From e5e38f23afec64e8ffb3ceb33b5f9be3d21c3aa0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 19:39:30 -0500 Subject: [PATCH 2016/2363] chore(main): release 1.135.1-SNAPSHOT (#2288) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 44b72d4e45f8..c13eb6d3875d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.135.0 + 1.135.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.135.0 + 1.135.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7547d60f8c0e..45b4eb493a06 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.135.0 + 1.135.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.135.0 + 1.135.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c6109ceaac98..654c3e430ab3 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.135.0 + 1.135.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7dd3d73a52dd..00fb220c2b9f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.135.0 + 1.135.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.135.0 + 1.135.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index dcd873c0226c..8e099b5227d0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.0 + 1.117.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.135.0 + 1.135.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e5625cdb9200..2b4d9a69a750 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.135.0 + 1.135.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ee35354e82dc..4cb9431673e2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.135.0:1.135.0 -grpc-google-cloud-pubsub-v1:1.117.0:1.117.0 -proto-google-cloud-pubsub-v1:1.117.0:1.117.0 +google-cloud-pubsub:1.135.0:1.135.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.117.0:1.117.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.117.0:1.117.1-SNAPSHOT From f88d4c1f7024635a9b007ce32a7ad453b34b4ae6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Jan 2025 16:31:18 +0100 Subject: [PATCH 2017/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.29.2 (#2294) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c9853204f8bc..f763d324fef9 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.29.1 + 4.29.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2b4d9a69a750..1f699649917e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.29.1 + 4.29.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c74d17651b5b..7453dca7aa64 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.29.1 + 4.29.2 From cff6cfa8c418f094d141c40594d0708e8b58465b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Jan 2025 16:31:32 +0100 Subject: [PATCH 2018/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.52.0 (#2293) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 7453dca7aa64..df9a7ab0b7f7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.51.0 + 26.52.0 pom import From 58e48ef00c3300c34097169875990255a69b9e2f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Jan 2025 16:31:45 +0100 Subject: [PATCH 2019/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.45.0 (#2292) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f763d324fef9..72e67a59fac5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.44.0 + 2.45.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1f699649917e..07d739b4d747 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.44.0 + 2.45.0 com.google.cloud From a44cc84a2f6acbe56c2d7230f3ea554f9dd2f9f4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Jan 2025 16:31:59 +0100 Subject: [PATCH 2020/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.46.0 (#2291) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 72e67a59fac5..8ca567557d0e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.45.0 + 2.46.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 07d739b4d747..55e9d7dd6a5e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.45.0 + 2.46.0 com.google.cloud.opentelemetry From 99001c13a1559be8ad32575ace1b2bec9241d467 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Jan 2025 16:32:13 +0100 Subject: [PATCH 2021/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.135.0 (#2290) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8ca567557d0e..c4e1df71b3ae 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.134.2 + 1.135.0 From 6732ddf6d17ed589f8a89d2aba6c349b11db00cc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 7 Jan 2025 21:24:22 +0100 Subject: [PATCH 2022/2363] deps: update dependency org.assertj:assertj-core to v3.27.2 (#2296) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 00fb220c2b9f..c0389875e5b5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.26.3 + 3.27.2 test From 131848c7af9f4e445a2361f46b6c5a335b5671b5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 8 Jan 2025 19:35:48 +0100 Subject: [PATCH 2023/2363] deps: update googleapis/sdk-platform-java action to v2.51.1 (#2298) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 604b674bad98..c1be8aca557b 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.51.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.51.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From c8b4e1e042ddd426aa80014b1e4bb75d74ea3ebc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 8 Jan 2025 22:40:06 +0100 Subject: [PATCH 2024/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.41.1 (#2301) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index c1918a2b721b..a09089f865df 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.41.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.41.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 76ca3ee6dafa..9705694f8348 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.41.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.41.1" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 644bb62ce7d3..b070666b48ed 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.41.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.41.1" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c13eb6d3875d..25e977e8053e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.41.0 + 3.41.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c0389875e5b5..1e144d4f96af 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.41.0 + 3.41.1 From 652fdbf8dda67664b1576e70ff527f0775dde0d3 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:43:32 -0500 Subject: [PATCH 2025/2363] chore: Update generation configuration at Wed Jan 8 17:05:08 UTC 2025 (#2299) * chore: Update generation configuration at Wed Jan 8 17:05:08 UTC 2025 * chore: generate libraries at Wed Jan 8 17:05:53 UTC 2025 --- java-pubsub/README.md | 6 +- java-pubsub/generation_config.yaml | 4 +- .../cloud/pubsub/v1/SchemaServiceClient.java | 2 +- .../pubsub/v1/SchemaServiceSettings.java | 2 +- .../pubsub/v1/SubscriptionAdminClient.java | 2 +- .../pubsub/v1/SubscriptionAdminSettings.java | 2 +- .../cloud/pubsub/v1/TopicAdminClient.java | 2 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 2 +- .../google/cloud/pubsub/v1/package-info.java | 2 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../GrpcSchemaServiceCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 2 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 2 +- .../HttpJsonPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/HttpJsonPublisherStub.java | 2 +- .../HttpJsonSchemaServiceCallableFactory.java | 2 +- .../v1/stub/HttpJsonSchemaServiceStub.java | 2 +- .../HttpJsonSubscriberCallableFactory.java | 2 +- .../v1/stub/HttpJsonSubscriberStub.java | 2 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../pubsub/v1/stub/PublisherStubSettings.java | 2 +- .../pubsub/v1/stub/SchemaServiceStub.java | 2 +- .../v1/stub/SchemaServiceStubSettings.java | 2 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../v1/stub/SubscriberStubSettings.java | 2 +- .../reflect-config.json | 135 + .../google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../cloud/pubsub/v1/MockSchemaService.java | 2 +- .../pubsub/v1/MockSchemaServiceImpl.java | 2 +- .../cloud/pubsub/v1/MockSubscriber.java | 2 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../v1/SchemaServiceClientHttpJsonTest.java | 2 +- .../pubsub/v1/SchemaServiceClientTest.java | 2 +- .../SubscriptionAdminClientHttpJsonTest.java | 2 +- .../v1/SubscriptionAdminClientTest.java | 2 +- .../v1/TopicAdminClientHttpJsonTest.java | 2 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 2 +- .../com/google/pubsub/v1/PublisherGrpc.java | 2 +- .../google/pubsub/v1/SchemaServiceGrpc.java | 2 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 2 +- .../google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../v1/AcknowledgeRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CloudStorageConfig.java | 2 +- .../v1/CloudStorageConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../v1/CommitSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../v1/CreateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/CreateSnapshotRequest.java | 2 +- .../v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../v1/DeleteSchemaRevisionRequest.java | 2 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../DeleteSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../v1/DeleteTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../DetachSubscriptionResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Encoding.java | 2 +- .../google/pubsub/v1/ExpirationPolicy.java | 2 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/GetSchemaRequest.java | 2 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../v1/GetSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/GetSubscriptionRequest.java | 2 +- .../v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../v1/IngestionDataSourceSettings.java | 8102 ++++++++++++++++- .../IngestionDataSourceSettingsOrBuilder.java | 127 +- .../pubsub/v1/IngestionFailureEvent.java | 7154 +++++++++++++-- .../v1/IngestionFailureEventOrBuilder.java | 128 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../v1/ListSchemaRevisionsResponse.java | 2 +- .../ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasRequest.java | 2 +- .../v1/ListSchemasRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasResponse.java | 2 +- .../v1/ListSchemasResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsRequest.java | 2 +- .../v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsResponse.java | 2 +- .../v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../ListSubscriptionsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsRequest.java | 2 +- ...istTopicSubscriptionsRequestOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsResponse.java | 2 +- ...stTopicSubscriptionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsRequest.java | 2 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsResponse.java | 2 +- .../v1/ListTopicsResponseOrBuilder.java | 2 +- .../pubsub/v1/MessageStoragePolicy.java | 2 +- .../v1/MessageStoragePolicyOrBuilder.java | 2 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../pubsub/v1/PlatformLogsSettings.java | 2 +- .../v1/PlatformLogsSettingsOrBuilder.java | 2 +- .../com/google/pubsub/v1/ProjectName.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 2 +- .../pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PublishResponse.java | 2 +- .../pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubMessage.java | 2 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 955 +- .../com/google/pubsub/v1/PullRequest.java | 10 +- .../pubsub/v1/PullRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/PullResponse.java | 2 +- .../pubsub/v1/PullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PushConfig.java | 2 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/RetryPolicy.java | 2 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../pubsub/v1/RollbackSchemaRequest.java | 2 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Schema.java | 2 +- .../java/com/google/pubsub/v1/SchemaName.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 2 +- .../com/google/pubsub/v1/SchemaSettings.java | 2 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SchemaView.java | 2 +- .../com/google/pubsub/v1/SeekRequest.java | 2 +- .../pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/SeekResponse.java | 2 +- .../pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Snapshot.java | 2 +- .../com/google/pubsub/v1/SnapshotName.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullRequest.java | 2 +- .../v1/StreamingPullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 2 +- .../v1/StreamingPullResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 2 +- .../google/pubsub/v1/SubscriptionName.java | 2 +- .../pubsub/v1/SubscriptionOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Topic.java | 2 +- .../java/com/google/pubsub/v1/TopicName.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../UpdateSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../v1/UpdateTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageRequest.java | 2 +- .../v1/ValidateMessageRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageResponse.java | 2 +- .../v1/ValidateMessageResponseOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaRequest.java | 2 +- .../v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaResponse.java | 2 +- .../v1/ValidateSchemaResponseOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 252 + 183 files changed, 15395 insertions(+), 1826 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 682f9ea4da8c..477dccc0d1cc 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.51.0 + 26.52.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.134.2 + 1.135.0 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.51.0') +implementation platform('com.google.cloud:libraries-bom:26.52.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index a1f95639c70c..1bf7d40fa003 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.51.0 -googleapis_commitish: 7d0c6bee2517d77635beb2a1dd6d6e7d4d943512 -libraries_bom_version: 26.51.0 +googleapis_commitish: 3322b91056db2735074b230c926e6ef3a958aa53 +libraries_bom_version: 26.52.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index ae7ee1af2af0..6c0fc95fee8a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 103dee29d303..5482df5766c4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 97d94c0e9653..544f5e247cce 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index c2c8d217d409..ccbf48885fb0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 6449c2f8ca3d..28b77c12bd8b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 08c00b2d1554..927b61b2c3fa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 70eed8c36c4c..28c492a1597d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index 0ca66bdc8ed1..c6ed494805b1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 3ea32264e91a..7d44f29bf2fc 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java index e2728094e85e..c1cce2d8e710 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index d3fbc1d67a61..655027011424 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 8b12c81c0f64..fe083befe73f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index b3c3e671b620..740dec3578c7 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java index 3d2309c69de3..8a3a1c5770e3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java index 3c129b6ed707..fb668a667bb6 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java index c4dedadb0cc5..14136bdc58ec 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java index 1d797dc71761..8816b63adc56 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java index ec35b3dfe781..336a8bdefaf2 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index 53559f580a05..9cda4b2234a4 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 011ad51e2152..1d8945a237b0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index d1640b7aaeff..8f039bbe970e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java index b36f779af747..2bfcab794be7 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 9a1ed164b502..8964e9c422fa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index 94b56c5a1b1f..9152cd6a26c7 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 81a585537cf4..0824d628bcf8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 87835ca4be6e..a818e377dcb3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -1898,6 +1898,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsMsk", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsMsk$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AwsMsk$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AzureEventHubs", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AzureEventHubs$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$AzureEventHubs$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionDataSourceSettings$Builder", "queryAllDeclaredConstructors": true, @@ -1988,6 +2042,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$ConfluentCloud", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$ConfluentCloud$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionDataSourceSettings$ConfluentCloud$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionFailureEvent", "queryAllDeclaredConstructors": true, @@ -2033,6 +2114,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsMskFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsMskFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AzureEventHubsFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AzureEventHubsFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionFailureEvent$Builder", "queryAllDeclaredConstructors": true, @@ -2060,6 +2177,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$ConfluentCloudFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$ConfluentCloudFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java index 9b682f478ebc..ee510a051ead 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index f65568ec0ec0..f686ce75c535 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java index adb60419dad6..239ed0369012 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 75c254dc5d92..5b2148c36dc6 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java index 2073458cc22b..838d5fbc689e 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java index f49e2cc45609..c2324f0b7101 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java index 33c80a1110f5..067dcd86157a 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index d2d89203163d..e466178eb9f0 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java index 06df1993b200..a8fcaedc65ff 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java index a33b9c5bd6db..7e354bf49866 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 3c051683242f..59adc7841036 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 5136ecd1b66c..005b32b9c0b8 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index 821411d6d115..fd1ac7c907b6 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index fa7e7bd06eb3..775b937504d9 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 18d2202b118c..851a577453de 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index ab612d2c509c..076e1f798095 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 3bf65b4e3c6a..b4b3b94715bc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 1f62eb3ede3c..7a24cea04990 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index d68356fe18d2..9f3f8bd605fd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 7e22cfa02250..7508d48173e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index f9c4eb555163..1856e1631f2e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index a90d77109b32..c2743bc508e6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 71eeb90b4e12..d01518bda1c4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index d6c14b342b9b..c2c5e3623c01 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 99b6a5cd0bbf..1edbdf9f7bb3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 6192347472a4..dc1cfd98df27 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index 244ba51609be..bd5833c538e6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 71be3fe160f2..33156b71338c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 534be54bc7b7..4e3005b50fcf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index b96e7ace6995..f69e9df571a6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index ed5509aab471..dd07b59c0025 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index f85adc58b365..acef5dad6716 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 513d1cc69412..2a41af559b21 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index d8a7dc8325a4..d92256e6f124 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 1a7006cc6437..b5cf5e11095f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index d69f8530d296..42ed4e16e955 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index ecaa5ecc74d7..27df98b2d5f0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 6726b4fc3c51..fc6c3429b73d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index e97be307112d..1d6385c58feb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index cd5232d4e9d3..9279189c5536 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 2900017e29f4..74e0aac50284 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index bfb983560c13..b4d6d6a73e74 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index fb7690b35310..16b220074e50 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 69c19fac1659..808576ae5803 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 136f6e620fc0..3765fe52532a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index baf41676151b..1ae5ecf81e26 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 17c3e07536d1..c26db78ba099 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 9a0d2e9d4888..d61c44494818 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 5a80fc97ee92..10ca7ae56c35 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index aca52209a526..ff5c589a5fe1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index dc0fb2a57bfd..87620b557022 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 13775aea325f..7e9d9a514af9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 8e40e7537b53..70a2388eb0b8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 0991d70f4e19..f77a5594eec1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 514c24e3fcb4..3400ff350519 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 23d05e8cb660..dc6bdd088ecf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 17e7384ee529..ba7ce4fc2a9c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -6475,170 +6475,6486 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - private int sourceCase_ = 0; + public interface AzureEventHubsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private java.lang.Object source_; + /** + * + * + *

    +     * Output only. An output-only field that indicates the state of the Event
    +     * Hubs ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Event
    +     * Hubs ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State getState(); - public enum SourceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AWS_KINESIS(1), - CLOUD_STORAGE(2), - SOURCE_NOT_SET(0); - private final int value; + /** + * + * + *
    +     * Optional. Name of the resource group within the azure subscription.
    +     * 
    + * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The resourceGroup. + */ + java.lang.String getResourceGroup(); + /** + * + * + *
    +     * Optional. Name of the resource group within the azure subscription.
    +     * 
    + * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for resourceGroup. + */ + com.google.protobuf.ByteString getResourceGroupBytes(); - private SourceCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
    +     * Optional. The name of the Event Hubs namespace.
    +     * 
    + * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. */ - @java.lang.Deprecated - public static SourceCase valueOf(int value) { - return forNumber(value); - } + java.lang.String getNamespace(); + /** + * + * + *
    +     * Optional. The name of the Event Hubs namespace.
    +     * 
    + * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + com.google.protobuf.ByteString getNamespaceBytes(); - public static SourceCase forNumber(int value) { - switch (value) { - case 1: - return AWS_KINESIS; - case 2: - return CLOUD_STORAGE; - case 0: - return SOURCE_NOT_SET; - default: - return null; - } - } + /** + * + * + *
    +     * Optional. The name of the Event Hub.
    +     * 
    + * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + java.lang.String getEventHub(); + /** + * + * + *
    +     * Optional. The name of the Event Hub.
    +     * 
    + * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + com.google.protobuf.ByteString getEventHubBytes(); - public int getNumber() { - return this.value; - } - }; + /** + * + * + *
    +     * Optional. The client id of the Azure application that is being used to
    +     * authenticate Pub/Sub.
    +     * 
    + * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + /** + * + * + *
    +     * Optional. The client id of the Azure application that is being used to
    +     * authenticate Pub/Sub.
    +     * 
    + * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); - } + /** + * + * + *
    +     * Optional. The tenant id of the Azure application that is being used to
    +     * authenticate Pub/Sub.
    +     * 
    + * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tenantId. + */ + java.lang.String getTenantId(); + /** + * + * + *
    +     * Optional. The tenant id of the Azure application that is being used to
    +     * authenticate Pub/Sub.
    +     * 
    + * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tenantId. + */ + com.google.protobuf.ByteString getTenantIdBytes(); - public static final int AWS_KINESIS_FIELD_NUMBER = 1; - /** - * - * - *
    -   * Optional. Amazon Kinesis Data Streams.
    -   * 
    - * - * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the awsKinesis field is set. - */ - @java.lang.Override - public boolean hasAwsKinesis() { - return sourceCase_ == 1; + /** + * + * + *
    +     * Optional. The Azure subscription id.
    +     * 
    + * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscriptionId. + */ + java.lang.String getSubscriptionId(); + /** + * + * + *
    +     * Optional. The Azure subscription id.
    +     * 
    + * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscriptionId. + */ + com.google.protobuf.ByteString getSubscriptionIdBytes(); + + /** + * + * + *
    +     * Optional. The GCP service account to be used for Federated Identity
    +     * authentication.
    +     * 
    + * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpServiceAccount. + */ + java.lang.String getGcpServiceAccount(); + /** + * + * + *
    +     * Optional. The GCP service account to be used for Federated Identity
    +     * authentication.
    +     * 
    + * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpServiceAccount. + */ + com.google.protobuf.ByteString getGcpServiceAccountBytes(); } /** * * *
    -   * Optional. Amazon Kinesis Data Streams.
    +   * Ingestion settings for Azure Event Hubs.
        * 
    * - * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The awsKinesis. + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs} */ - @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + public static final class AzureEventHubs extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) + AzureEventHubsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AzureEventHubs.newBuilder() to construct. + private AzureEventHubs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); - } - /** - * - * - *
    -   * Optional. Amazon Kinesis Data Streams.
    -   * 
    - * - * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder - getAwsKinesisOrBuilder() { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + + private AzureEventHubs() { + state_ = 0; + resourceGroup_ = ""; + namespace_ = ""; + eventHub_ = ""; + clientId_ = ""; + tenantId_ = ""; + subscriptionId_ = ""; + gcpServiceAccount_ = ""; } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); - } - public static final int CLOUD_STORAGE_FIELD_NUMBER = 2; - /** - * - * - *
    -   * Optional. Cloud Storage.
    -   * 
    - * - * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the cloudStorage field is set. - */ - @java.lang.Override - public boolean hasCloudStorage() { - return sourceCase_ == 2; - } - /** - * - * - *
    +    @java.lang.Override
    +    @SuppressWarnings({"unused"})
    +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    +      return new AzureEventHubs();
    +    }
    +
    +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor;
    +    }
    +
    +    @java.lang.Override
    +    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
    +        internalGetFieldAccessorTable() {
    +      return com.google.pubsub.v1.PubsubProto
    +          .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable
    +          .ensureFieldAccessorsInitialized(
    +              com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.class,
    +              com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder.class);
    +    }
    +
    +    /**
    +     *
    +     *
    +     * 
    +     * Possible states for managed ingestion from Event Hubs.
    +     * 
    + * + * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +       * Ingestion is active.
    +       * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +       * Permission denied encountered while consuming data from Event Hubs.
    +       * This can happen when `client_id`, or `tenant_id` are invalid. Or the
    +       * right permissions haven't been granted.
    +       * 
    + * + * EVENT_HUBS_PERMISSION_DENIED = 2; + */ + EVENT_HUBS_PERMISSION_DENIED(2), + /** + * + * + *
    +       * Permission denied encountered while publishing to the topic.
    +       * 
    + * + * PUBLISH_PERMISSION_DENIED = 3; + */ + PUBLISH_PERMISSION_DENIED(3), + /** + * + * + *
    +       * The provided Event Hubs namespace couldn't be found.
    +       * 
    + * + * NAMESPACE_NOT_FOUND = 4; + */ + NAMESPACE_NOT_FOUND(4), + /** + * + * + *
    +       * The provided Event Hub couldn't be found.
    +       * 
    + * + * EVENT_HUB_NOT_FOUND = 5; + */ + EVENT_HUB_NOT_FOUND(5), + /** + * + * + *
    +       * The provided Event Hubs subscription couldn't be found.
    +       * 
    + * + * SUBSCRIPTION_NOT_FOUND = 6; + */ + SUBSCRIPTION_NOT_FOUND(6), + /** + * + * + *
    +       * The provided Event Hubs resource group couldn't be found.
    +       * 
    + * + * RESOURCE_GROUP_NOT_FOUND = 7; + */ + RESOURCE_GROUP_NOT_FOUND(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +       * Ingestion is active.
    +       * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +       * Permission denied encountered while consuming data from Event Hubs.
    +       * This can happen when `client_id`, or `tenant_id` are invalid. Or the
    +       * right permissions haven't been granted.
    +       * 
    + * + * EVENT_HUBS_PERMISSION_DENIED = 2; + */ + public static final int EVENT_HUBS_PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
    +       * Permission denied encountered while publishing to the topic.
    +       * 
    + * + * PUBLISH_PERMISSION_DENIED = 3; + */ + public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** + * + * + *
    +       * The provided Event Hubs namespace couldn't be found.
    +       * 
    + * + * NAMESPACE_NOT_FOUND = 4; + */ + public static final int NAMESPACE_NOT_FOUND_VALUE = 4; + /** + * + * + *
    +       * The provided Event Hub couldn't be found.
    +       * 
    + * + * EVENT_HUB_NOT_FOUND = 5; + */ + public static final int EVENT_HUB_NOT_FOUND_VALUE = 5; + /** + * + * + *
    +       * The provided Event Hubs subscription couldn't be found.
    +       * 
    + * + * SUBSCRIPTION_NOT_FOUND = 6; + */ + public static final int SUBSCRIPTION_NOT_FOUND_VALUE = 6; + /** + * + * + *
    +       * The provided Event Hubs resource group couldn't be found.
    +       * 
    + * + * RESOURCE_GROUP_NOT_FOUND = 7; + */ + public static final int RESOURCE_GROUP_NOT_FOUND_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return EVENT_HUBS_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return NAMESPACE_NOT_FOUND; + case 5: + return EVENT_HUB_NOT_FOUND; + case 6: + return SUBSCRIPTION_NOT_FOUND; + case 7: + return RESOURCE_GROUP_NOT_FOUND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Event
    +     * Hubs ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Event
    +     * Hubs ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.UNRECOGNIZED + : result; + } + + public static final int RESOURCE_GROUP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceGroup_ = ""; + /** + * + * + *
    +     * Optional. Name of the resource group within the azure subscription.
    +     * 
    + * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The resourceGroup. + */ + @java.lang.Override + public java.lang.String getResourceGroup() { + java.lang.Object ref = resourceGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceGroup_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. Name of the resource group within the azure subscription.
    +     * 
    + * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for resourceGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceGroupBytes() { + java.lang.Object ref = resourceGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMESPACE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object namespace_ = ""; + /** + * + * + *
    +     * Optional. The name of the Event Hubs namespace.
    +     * 
    + * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + @java.lang.Override + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The name of the Event Hubs namespace.
    +     * 
    + * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_HUB_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventHub_ = ""; + /** + * + * + *
    +     * Optional. The name of the Event Hub.
    +     * 
    + * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + @java.lang.Override + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventHub_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The name of the Event Hub.
    +     * 
    + * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventHub_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + /** + * + * + *
    +     * Optional. The client id of the Azure application that is being used to
    +     * authenticate Pub/Sub.
    +     * 
    + * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The client id of the Azure application that is being used to
    +     * authenticate Pub/Sub.
    +     * 
    + * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenantId_ = ""; + /** + * + * + *
    +     * Optional. The tenant id of the Azure application that is being used to
    +     * authenticate Pub/Sub.
    +     * 
    + * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tenantId. + */ + @java.lang.Override + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantId_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The tenant id of the Azure application that is being used to
    +     * authenticate Pub/Sub.
    +     * 
    + * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tenantId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBSCRIPTION_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object subscriptionId_ = ""; + /** + * + * + *
    +     * Optional. The Azure subscription id.
    +     * 
    + * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscriptionId. + */ + @java.lang.Override + public java.lang.String getSubscriptionId() { + java.lang.Object ref = subscriptionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscriptionId_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The Azure subscription id.
    +     * 
    + * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscriptionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubscriptionIdBytes() { + java.lang.Object ref = subscriptionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscriptionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_SERVICE_ACCOUNT_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
    +     * Optional. The GCP service account to be used for Federated Identity
    +     * authentication.
    +     * 
    + * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpServiceAccount. + */ + @java.lang.Override + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The GCP service account to be used for Federated Identity
    +     * authentication.
    +     * 
    + * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, eventHub_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tenantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, subscriptionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gcpServiceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, eventHub_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, clientId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tenantId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, subscriptionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gcpServiceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs other = + (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) obj; + + if (state_ != other.state_) return false; + if (!getResourceGroup().equals(other.getResourceGroup())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getEventHub().equals(other.getEventHub())) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getTenantId().equals(other.getTenantId())) return false; + if (!getSubscriptionId().equals(other.getSubscriptionId())) return false; + if (!getGcpServiceAccount().equals(other.getGcpServiceAccount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + RESOURCE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getResourceGroup().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + hash = (37 * hash) + EVENT_HUB_FIELD_NUMBER; + hash = (53 * hash) + getEventHub().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + TENANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getTenantId().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSubscriptionId().hashCode(); + hash = (37 * hash) + GCP_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getGcpServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Ingestion settings for Azure Event Hubs.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + resourceGroup_ = ""; + namespace_ = ""; + eventHub_ = ""; + clientId_ = ""; + tenantId_ = ""; + subscriptionId_ = ""; + gcpServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs build() { + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs result = + new com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resourceGroup_ = resourceGroup_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.namespace_ = namespace_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.eventHub_ = eventHub_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tenantId_ = tenantId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.subscriptionId_ = subscriptionId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.gcpServiceAccount_ = gcpServiceAccount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getResourceGroup().isEmpty()) { + resourceGroup_ = other.resourceGroup_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getEventHub().isEmpty()) { + eventHub_ = other.eventHub_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getTenantId().isEmpty()) { + tenantId_ = other.tenantId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getSubscriptionId().isEmpty()) { + subscriptionId_ = other.subscriptionId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getGcpServiceAccount().isEmpty()) { + gcpServiceAccount_ = other.gcpServiceAccount_; + bitField0_ |= 0x00000080; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + resourceGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + namespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + eventHub_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + tenantId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + subscriptionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + gcpServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Event
    +       * Hubs ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Event
    +       * Hubs ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Event
    +       * Hubs ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Event
    +       * Hubs ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Event
    +       * Hubs ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object resourceGroup_ = ""; + /** + * + * + *
    +       * Optional. Name of the resource group within the azure subscription.
    +       * 
    + * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The resourceGroup. + */ + public java.lang.String getResourceGroup() { + java.lang.Object ref = resourceGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. Name of the resource group within the azure subscription.
    +       * 
    + * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for resourceGroup. + */ + public com.google.protobuf.ByteString getResourceGroupBytes() { + java.lang.Object ref = resourceGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. Name of the resource group within the azure subscription.
    +       * 
    + * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The resourceGroup to set. + * @return This builder for chaining. + */ + public Builder setResourceGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Name of the resource group within the azure subscription.
    +       * 
    + * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearResourceGroup() { + resourceGroup_ = getDefaultInstance().getResourceGroup(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. Name of the resource group within the azure subscription.
    +       * 
    + * + * string resource_group = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for resourceGroup to set. + * @return This builder for chaining. + */ + public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceGroup_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object namespace_ = ""; + /** + * + * + *
    +       * Optional. The name of the Event Hubs namespace.
    +       * 
    + * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the Event Hubs namespace.
    +       * 
    + * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the Event Hubs namespace.
    +       * 
    + * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + namespace_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the Event Hubs namespace.
    +       * 
    + * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the Event Hubs namespace.
    +       * 
    + * + * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object eventHub_ = ""; + /** + * + * + *
    +       * Optional. The name of the Event Hub.
    +       * 
    + * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventHub_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the Event Hub.
    +       * 
    + * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventHub_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the Event Hub.
    +       * 
    + * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The eventHub to set. + * @return This builder for chaining. + */ + public Builder setEventHub(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventHub_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the Event Hub.
    +       * 
    + * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEventHub() { + eventHub_ = getDefaultInstance().getEventHub(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the Event Hub.
    +       * 
    + * + * string event_hub = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for eventHub to set. + * @return This builder for chaining. + */ + public Builder setEventHubBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventHub_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + /** + * + * + *
    +       * Optional. The client id of the Azure application that is being used to
    +       * authenticate Pub/Sub.
    +       * 
    + * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The client id of the Azure application that is being used to
    +       * authenticate Pub/Sub.
    +       * 
    + * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The client id of the Azure application that is being used to
    +       * authenticate Pub/Sub.
    +       * 
    + * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The client id of the Azure application that is being used to
    +       * authenticate Pub/Sub.
    +       * 
    + * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The client id of the Azure application that is being used to
    +       * authenticate Pub/Sub.
    +       * 
    + * + * string client_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object tenantId_ = ""; + /** + * + * + *
    +       * Optional. The tenant id of the Azure application that is being used to
    +       * authenticate Pub/Sub.
    +       * 
    + * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tenantId. + */ + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The tenant id of the Azure application that is being used to
    +       * authenticate Pub/Sub.
    +       * 
    + * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tenantId. + */ + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The tenant id of the Azure application that is being used to
    +       * authenticate Pub/Sub.
    +       * 
    + * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenantId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The tenant id of the Azure application that is being used to
    +       * authenticate Pub/Sub.
    +       * 
    + * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTenantId() { + tenantId_ = getDefaultInstance().getTenantId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The tenant id of the Azure application that is being used to
    +       * authenticate Pub/Sub.
    +       * 
    + * + * string tenant_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenantId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object subscriptionId_ = ""; + /** + * + * + *
    +       * Optional. The Azure subscription id.
    +       * 
    + * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscriptionId. + */ + public java.lang.String getSubscriptionId() { + java.lang.Object ref = subscriptionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subscriptionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The Azure subscription id.
    +       * 
    + * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subscriptionId. + */ + public com.google.protobuf.ByteString getSubscriptionIdBytes() { + java.lang.Object ref = subscriptionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subscriptionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The Azure subscription id.
    +       * 
    + * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subscriptionId to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subscriptionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The Azure subscription id.
    +       * 
    + * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubscriptionId() { + subscriptionId_ = getDefaultInstance().getSubscriptionId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The Azure subscription id.
    +       * 
    + * + * string subscription_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subscriptionId to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subscriptionId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
    +       * Optional. The GCP service account to be used for Federated Identity
    +       * authentication.
    +       * 
    + * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcpServiceAccount. + */ + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The GCP service account to be used for Federated Identity
    +       * authentication.
    +       * 
    + * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcpServiceAccount. + */ + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The GCP service account to be used for Federated Identity
    +       * authentication.
    +       * 
    + * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpServiceAccount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The GCP service account to be used for Federated Identity
    +       * authentication.
    +       * 
    + * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcpServiceAccount() { + gcpServiceAccount_ = getDefaultInstance().getGcpServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The GCP service account to be used for Federated Identity
    +       * authentication.
    +       * 
    + * + * string gcp_service_account = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureEventHubs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AwsMskOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Amazon
    +     * MSK ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Amazon
    +     * MSK ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State getState(); + + /** + * + * + *
    +     * Required. The Amazon Resource Name (ARN) that uniquely identifies the
    +     * cluster.
    +     * 
    + * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterArn. + */ + java.lang.String getClusterArn(); + /** + * + * + *
    +     * Required. The Amazon Resource Name (ARN) that uniquely identifies the
    +     * cluster.
    +     * 
    + * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterArn. + */ + com.google.protobuf.ByteString getClusterArnBytes(); + + /** + * + * + *
    +     * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
    +     * will import from.
    +     * 
    + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
    +     * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
    +     * will import from.
    +     * 
    + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
    +     * Required. AWS role ARN to be used for Federated Identity authentication
    +     * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
    +     * the required permissions that need to be attached to it.
    +     * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + java.lang.String getAwsRoleArn(); + /** + * + * + *
    +     * Required. AWS role ARN to be used for Federated Identity authentication
    +     * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
    +     * the required permissions that need to be attached to it.
    +     * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + com.google.protobuf.ByteString getAwsRoleArnBytes(); + + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
    +     * for the provided role). The `aws_role_arn` must be set up with
    +     * `accounts.google.com:sub` equals to this service account number.
    +     * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + java.lang.String getGcpServiceAccount(); + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
    +     * for the provided role). The `aws_role_arn` must be set up with
    +     * `accounts.google.com:sub` equals to this service account number.
    +     * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + com.google.protobuf.ByteString getGcpServiceAccountBytes(); + } + /** + * + * + *
    +   * Ingestion settings for Amazon MSK.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsMsk} + */ + public static final class AwsMsk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) + AwsMskOrBuilder { + private static final long serialVersionUID = 0L; + // Use AwsMsk.newBuilder() to construct. + private AwsMsk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AwsMsk() { + state_ = 0; + clusterArn_ = ""; + topic_ = ""; + awsRoleArn_ = ""; + gcpServiceAccount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsMsk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder.class); + } + + /** + * + * + *
    +     * Possible states for managed ingestion from Amazon MSK.
    +     * 
    + * + * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +       * Ingestion is active.
    +       * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +       * Permission denied encountered while consuming data from Amazon MSK.
    +       * 
    + * + * MSK_PERMISSION_DENIED = 2; + */ + MSK_PERMISSION_DENIED(2), + /** + * + * + *
    +       * Permission denied encountered while publishing to the topic.
    +       * 
    + * + * PUBLISH_PERMISSION_DENIED = 3; + */ + PUBLISH_PERMISSION_DENIED(3), + /** + * + * + *
    +       * The provided MSK cluster wasn't found.
    +       * 
    + * + * CLUSTER_NOT_FOUND = 4; + */ + CLUSTER_NOT_FOUND(4), + /** + * + * + *
    +       * The provided topic wasn't found.
    +       * 
    + * + * TOPIC_NOT_FOUND = 5; + */ + TOPIC_NOT_FOUND(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +       * Ingestion is active.
    +       * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +       * Permission denied encountered while consuming data from Amazon MSK.
    +       * 
    + * + * MSK_PERMISSION_DENIED = 2; + */ + public static final int MSK_PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
    +       * Permission denied encountered while publishing to the topic.
    +       * 
    + * + * PUBLISH_PERMISSION_DENIED = 3; + */ + public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** + * + * + *
    +       * The provided MSK cluster wasn't found.
    +       * 
    + * + * CLUSTER_NOT_FOUND = 4; + */ + public static final int CLUSTER_NOT_FOUND_VALUE = 4; + /** + * + * + *
    +       * The provided topic wasn't found.
    +       * 
    + * + * TOPIC_NOT_FOUND = 5; + */ + public static final int TOPIC_NOT_FOUND_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return MSK_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return CLUSTER_NOT_FOUND; + case 5: + return TOPIC_NOT_FOUND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Amazon
    +     * MSK ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the Amazon
    +     * MSK ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.UNRECOGNIZED + : result; + } + + public static final int CLUSTER_ARN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterArn_ = ""; + /** + * + * + *
    +     * Required. The Amazon Resource Name (ARN) that uniquely identifies the
    +     * cluster.
    +     * 
    + * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterArn. + */ + @java.lang.Override + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterArn_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The Amazon Resource Name (ARN) that uniquely identifies the
    +     * cluster.
    +     * 
    + * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOPIC_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + * + * + *
    +     * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
    +     * will import from.
    +     * 
    + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
    +     * will import from.
    +     * 
    + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AWS_ROLE_ARN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object awsRoleArn_ = ""; + /** + * + * + *
    +     * Required. AWS role ARN to be used for Federated Identity authentication
    +     * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
    +     * the required permissions that need to be attached to it.
    +     * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + @java.lang.Override + public java.lang.String getAwsRoleArn() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + awsRoleArn_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. AWS role ARN to be used for Federated Identity authentication
    +     * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
    +     * the required permissions that need to be attached to it.
    +     * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAwsRoleArnBytes() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + awsRoleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_SERVICE_ACCOUNT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
    +     * for the provided role). The `aws_role_arn` must be set up with
    +     * `accounts.google.com:sub` equals to this service account number.
    +     * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + @java.lang.Override + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
    +     * for the provided role). The `aws_role_arn` must be set up with
    +     * `accounts.google.com:sub` equals to this service account number.
    +     * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, awsRoleArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, gcpServiceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, awsRoleArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, gcpServiceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk other = + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) obj; + + if (state_ != other.state_) return false; + if (!getClusterArn().equals(other.getClusterArn())) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (!getAwsRoleArn().equals(other.getAwsRoleArn())) return false; + if (!getGcpServiceAccount().equals(other.getGcpServiceAccount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + CLUSTER_ARN_FIELD_NUMBER; + hash = (53 * hash) + getClusterArn().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + AWS_ROLE_ARN_FIELD_NUMBER; + hash = (53 * hash) + getAwsRoleArn().hashCode(); + hash = (37 * hash) + GCP_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getGcpServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Ingestion settings for Amazon MSK.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsMsk} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.class, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + clusterArn_ = ""; + topic_ = ""; + awsRoleArn_ = ""; + gcpServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk build() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk result = + new com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clusterArn_ = clusterArn_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.awsRoleArn_ = awsRoleArn_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.gcpServiceAccount_ = gcpServiceAccount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk other) { + if (other == com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getClusterArn().isEmpty()) { + clusterArn_ = other.clusterArn_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAwsRoleArn().isEmpty()) { + awsRoleArn_ = other.awsRoleArn_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGcpServiceAccount().isEmpty()) { + gcpServiceAccount_ = other.gcpServiceAccount_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + clusterArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + awsRoleArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + gcpServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Amazon
    +       * MSK ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Amazon
    +       * MSK ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Amazon
    +       * MSK ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Amazon
    +       * MSK ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the Amazon
    +       * MSK ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object clusterArn_ = ""; + /** + * + * + *
    +       * Required. The Amazon Resource Name (ARN) that uniquely identifies the
    +       * cluster.
    +       * 
    + * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterArn. + */ + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The Amazon Resource Name (ARN) that uniquely identifies the
    +       * cluster.
    +       * 
    + * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterArn. + */ + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The Amazon Resource Name (ARN) that uniquely identifies the
    +       * cluster.
    +       * 
    + * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterArn to set. + * @return This builder for chaining. + */ + public Builder setClusterArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterArn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The Amazon Resource Name (ARN) that uniquely identifies the
    +       * cluster.
    +       * 
    + * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterArn() { + clusterArn_ = getDefaultInstance().getClusterArn(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The Amazon Resource Name (ARN) that uniquely identifies the
    +       * cluster.
    +       * 
    + * + * string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterArn to set. + * @return This builder for chaining. + */ + public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterArn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object topic_ = ""; + /** + * + * + *
    +       * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
    +       * will import from.
    +       * 
    + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
    +       * will import from.
    +       * 
    + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
    +       * will import from.
    +       * 
    + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
    +       * will import from.
    +       * 
    + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
    +       * will import from.
    +       * 
    + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object awsRoleArn_ = ""; + /** + * + * + *
    +       * Required. AWS role ARN to be used for Federated Identity authentication
    +       * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
    +       * the required permissions that need to be attached to it.
    +       * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The awsRoleArn. + */ + public java.lang.String getAwsRoleArn() { + java.lang.Object ref = awsRoleArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + awsRoleArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. AWS role ARN to be used for Federated Identity authentication
    +       * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
    +       * the required permissions that need to be attached to it.
    +       * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for awsRoleArn. + */ + public com.google.protobuf.ByteString getAwsRoleArnBytes() { + java.lang.Object ref = awsRoleArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + awsRoleArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. AWS role ARN to be used for Federated Identity authentication
    +       * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
    +       * the required permissions that need to be attached to it.
    +       * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The awsRoleArn to set. + * @return This builder for chaining. + */ + public Builder setAwsRoleArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + awsRoleArn_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. AWS role ARN to be used for Federated Identity authentication
    +       * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
    +       * the required permissions that need to be attached to it.
    +       * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAwsRoleArn() { + awsRoleArn_ = getDefaultInstance().getAwsRoleArn(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. AWS role ARN to be used for Federated Identity authentication
    +       * with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
    +       * the required permissions that need to be attached to it.
    +       * 
    + * + * string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for awsRoleArn to set. + * @return This builder for chaining. + */ + public Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + awsRoleArn_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
    +       * for the provided role). The `aws_role_arn` must be set up with
    +       * `accounts.google.com:sub` equals to this service account number.
    +       * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
    +       * for the provided role). The `aws_role_arn` must be set up with
    +       * `accounts.google.com:sub` equals to this service account number.
    +       * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
    +       * for the provided role). The `aws_role_arn` must be set up with
    +       * `accounts.google.com:sub` equals to this service account number.
    +       * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpServiceAccount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
    +       * for the provided role). The `aws_role_arn` must be set up with
    +       * `accounts.google.com:sub` equals to this service account number.
    +       * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGcpServiceAccount() { + gcpServiceAccount_ = getDefaultInstance().getGcpServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
    +       * for the provided role). The `aws_role_arn` must be set up with
    +       * `accounts.google.com:sub` equals to this service account number.
    +       * 
    + * + * string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsMsk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConfluentCloudOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the
    +     * Confluent Cloud ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the
    +     * Confluent Cloud ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State getState(); + + /** + * + * + *
    +     * Required. The address of the bootstrap server. The format is url:port.
    +     * 
    + * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bootstrapServer. + */ + java.lang.String getBootstrapServer(); + /** + * + * + *
    +     * Required. The address of the bootstrap server. The format is url:port.
    +     * 
    + * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bootstrapServer. + */ + com.google.protobuf.ByteString getBootstrapServerBytes(); + + /** + * + * + *
    +     * Required. The id of the cluster.
    +     * 
    + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + /** + * + * + *
    +     * Required. The id of the cluster.
    +     * 
    + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
    +     * Required. The name of the topic in the Confluent Cloud cluster that
    +     * Pub/Sub will import from.
    +     * 
    + * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + java.lang.String getTopic(); + /** + * + * + *
    +     * Required. The name of the topic in the Confluent Cloud cluster that
    +     * Pub/Sub will import from.
    +     * 
    + * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + com.google.protobuf.ByteString getTopicBytes(); + + /** + * + * + *
    +     * Required. The id of the identity pool to be used for Federated Identity
    +     * authentication with Confluent Cloud. See
    +     * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
    +     * 
    + * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The identityPoolId. + */ + java.lang.String getIdentityPoolId(); + /** + * + * + *
    +     * Required. The id of the identity pool to be used for Federated Identity
    +     * authentication with Confluent Cloud. See
    +     * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
    +     * 
    + * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for identityPoolId. + */ + com.google.protobuf.ByteString getIdentityPoolIdBytes(); + + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with `identity_pool_id`.
    +     * 
    + * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + java.lang.String getGcpServiceAccount(); + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with `identity_pool_id`.
    +     * 
    + * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + com.google.protobuf.ByteString getGcpServiceAccountBytes(); + } + /** + * + * + *
    +   * Ingestion settings for Confluent Cloud.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud} + */ + public static final class ConfluentCloud extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) + ConfluentCloudOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfluentCloud.newBuilder() to construct. + private ConfluentCloud(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfluentCloud() { + state_ = 0; + bootstrapServer_ = ""; + clusterId_ = ""; + topic_ = ""; + identityPoolId_ = ""; + gcpServiceAccount_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfluentCloud(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.class, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder.class); + } + + /** + * + * + *
    +     * Possible states for managed ingestion from Confluent Cloud.
    +     * 
    + * + * Protobuf enum {@code google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
    +       * Ingestion is active.
    +       * 
    + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
    +       * Permission denied encountered while consuming data from Confluent
    +       * Cloud.
    +       * 
    + * + * CONFLUENT_CLOUD_PERMISSION_DENIED = 2; + */ + CONFLUENT_CLOUD_PERMISSION_DENIED(2), + /** + * + * + *
    +       * Permission denied encountered while publishing to the topic.
    +       * 
    + * + * PUBLISH_PERMISSION_DENIED = 3; + */ + PUBLISH_PERMISSION_DENIED(3), + /** + * + * + *
    +       * The provided bootstrap server address is unreachable.
    +       * 
    + * + * UNREACHABLE_BOOTSTRAP_SERVER = 4; + */ + UNREACHABLE_BOOTSTRAP_SERVER(4), + /** + * + * + *
    +       * The provided cluster wasn't found.
    +       * 
    + * + * CLUSTER_NOT_FOUND = 5; + */ + CLUSTER_NOT_FOUND(5), + /** + * + * + *
    +       * The provided topic wasn't found.
    +       * 
    + * + * TOPIC_NOT_FOUND = 6; + */ + TOPIC_NOT_FOUND(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
    +       * Default value. This value is unused.
    +       * 
    + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
    +       * Ingestion is active.
    +       * 
    + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + /** + * + * + *
    +       * Permission denied encountered while consuming data from Confluent
    +       * Cloud.
    +       * 
    + * + * CONFLUENT_CLOUD_PERMISSION_DENIED = 2; + */ + public static final int CONFLUENT_CLOUD_PERMISSION_DENIED_VALUE = 2; + /** + * + * + *
    +       * Permission denied encountered while publishing to the topic.
    +       * 
    + * + * PUBLISH_PERMISSION_DENIED = 3; + */ + public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** + * + * + *
    +       * The provided bootstrap server address is unreachable.
    +       * 
    + * + * UNREACHABLE_BOOTSTRAP_SERVER = 4; + */ + public static final int UNREACHABLE_BOOTSTRAP_SERVER_VALUE = 4; + /** + * + * + *
    +       * The provided cluster wasn't found.
    +       * 
    + * + * CLUSTER_NOT_FOUND = 5; + */ + public static final int CLUSTER_NOT_FOUND_VALUE = 5; + /** + * + * + *
    +       * The provided topic wasn't found.
    +       * 
    + * + * TOPIC_NOT_FOUND = 6; + */ + public static final int TOPIC_NOT_FOUND_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return CONFLUENT_CLOUD_PERMISSION_DENIED; + case 3: + return PUBLISH_PERMISSION_DENIED; + case 4: + return UNREACHABLE_BOOTSTRAP_SERVER; + case 5: + return CLUSTER_NOT_FOUND; + case 6: + return TOPIC_NOT_FOUND; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the
    +     * Confluent Cloud ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +     * Output only. An output-only field that indicates the state of the
    +     * Confluent Cloud ingestion source.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.UNRECOGNIZED + : result; + } + + public static final int BOOTSTRAP_SERVER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object bootstrapServer_ = ""; + /** + * + * + *
    +     * Required. The address of the bootstrap server. The format is url:port.
    +     * 
    + * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bootstrapServer. + */ + @java.lang.Override + public java.lang.String getBootstrapServer() { + java.lang.Object ref = bootstrapServer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootstrapServer_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The address of the bootstrap server. The format is url:port.
    +     * 
    + * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bootstrapServer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBootstrapServerBytes() { + java.lang.Object ref = bootstrapServer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootstrapServer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + * + * + *
    +     * Required. The id of the cluster.
    +     * 
    + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The id of the cluster.
    +     * 
    + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOPIC_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + * + * + *
    +     * Required. The name of the topic in the Confluent Cloud cluster that
    +     * Pub/Sub will import from.
    +     * 
    + * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The name of the topic in the Confluent Cloud cluster that
    +     * Pub/Sub will import from.
    +     * 
    + * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTITY_POOL_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object identityPoolId_ = ""; + /** + * + * + *
    +     * Required. The id of the identity pool to be used for Federated Identity
    +     * authentication with Confluent Cloud. See
    +     * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
    +     * 
    + * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The identityPoolId. + */ + @java.lang.Override + public java.lang.String getIdentityPoolId() { + java.lang.Object ref = identityPoolId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityPoolId_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The id of the identity pool to be used for Federated Identity
    +     * authentication with Confluent Cloud. See
    +     * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
    +     * 
    + * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for identityPoolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityPoolIdBytes() { + java.lang.Object ref = identityPoolId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityPoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_SERVICE_ACCOUNT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with `identity_pool_id`.
    +     * 
    + * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + @java.lang.Override + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } + } + /** + * + * + *
    +     * Required. The GCP service account to be used for Federated Identity
    +     * authentication with `identity_pool_id`.
    +     * 
    + * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootstrapServer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bootstrapServer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityPoolId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, identityPoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, gcpServiceAccount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootstrapServer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bootstrapServer_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityPoolId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, identityPoolId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, gcpServiceAccount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud other = + (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) obj; + + if (state_ != other.state_) return false; + if (!getBootstrapServer().equals(other.getBootstrapServer())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getTopic().equals(other.getTopic())) return false; + if (!getIdentityPoolId().equals(other.getIdentityPoolId())) return false; + if (!getGcpServiceAccount().equals(other.getGcpServiceAccount())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + BOOTSTRAP_SERVER_FIELD_NUMBER; + hash = (53 * hash) + getBootstrapServer().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + IDENTITY_POOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getIdentityPoolId().hashCode(); + hash = (37 * hash) + GCP_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getGcpServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Ingestion settings for Confluent Cloud.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.class, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + bootstrapServer_ = ""; + clusterId_ = ""; + topic_ = ""; + identityPoolId_ = ""; + gcpServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud build() { + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud result = + new com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bootstrapServer_ = bootstrapServer_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.identityPoolId_ = identityPoolId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.gcpServiceAccount_ = gcpServiceAccount_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud other) { + if (other + == com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getBootstrapServer().isEmpty()) { + bootstrapServer_ = other.bootstrapServer_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getIdentityPoolId().isEmpty()) { + identityPoolId_ = other.identityPoolId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getGcpServiceAccount().isEmpty()) { + gcpServiceAccount_ = other.gcpServiceAccount_; + bitField0_ |= 0x00000020; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + bootstrapServer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + identityPoolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + gcpServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int state_ = 0; + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the
    +       * Confluent Cloud ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the
    +       * Confluent Cloud ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the
    +       * Confluent Cloud ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State getState() { + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State result = + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.forNumber(state_); + return result == null + ? com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.UNRECOGNIZED + : result; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the
    +       * Confluent Cloud ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
    +       * Output only. An output-only field that indicates the state of the
    +       * Confluent Cloud ingestion source.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object bootstrapServer_ = ""; + /** + * + * + *
    +       * Required. The address of the bootstrap server. The format is url:port.
    +       * 
    + * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bootstrapServer. + */ + public java.lang.String getBootstrapServer() { + java.lang.Object ref = bootstrapServer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bootstrapServer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The address of the bootstrap server. The format is url:port.
    +       * 
    + * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bootstrapServer. + */ + public com.google.protobuf.ByteString getBootstrapServerBytes() { + java.lang.Object ref = bootstrapServer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bootstrapServer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The address of the bootstrap server. The format is url:port.
    +       * 
    + * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bootstrapServer to set. + * @return This builder for chaining. + */ + public Builder setBootstrapServer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bootstrapServer_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The address of the bootstrap server. The format is url:port.
    +       * 
    + * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBootstrapServer() { + bootstrapServer_ = getDefaultInstance().getBootstrapServer(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The address of the bootstrap server. The format is url:port.
    +       * 
    + * + * string bootstrap_server = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for bootstrapServer to set. + * @return This builder for chaining. + */ + public Builder setBootstrapServerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bootstrapServer_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
    +       * Required. The id of the cluster.
    +       * 
    + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The id of the cluster.
    +       * 
    + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The id of the cluster.
    +       * 
    + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The id of the cluster.
    +       * 
    + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The id of the cluster.
    +       * 
    + * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object topic_ = ""; + /** + * + * + *
    +       * Required. The name of the topic in the Confluent Cloud cluster that
    +       * Pub/Sub will import from.
    +       * 
    + * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The name of the topic in the Confluent Cloud cluster that
    +       * Pub/Sub will import from.
    +       * 
    + * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The name of the topic in the Confluent Cloud cluster that
    +       * Pub/Sub will import from.
    +       * 
    + * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The name of the topic in the Confluent Cloud cluster that
    +       * Pub/Sub will import from.
    +       * 
    + * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The name of the topic in the Confluent Cloud cluster that
    +       * Pub/Sub will import from.
    +       * 
    + * + * string topic = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object identityPoolId_ = ""; + /** + * + * + *
    +       * Required. The id of the identity pool to be used for Federated Identity
    +       * authentication with Confluent Cloud. See
    +       * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
    +       * 
    + * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The identityPoolId. + */ + public java.lang.String getIdentityPoolId() { + java.lang.Object ref = identityPoolId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityPoolId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The id of the identity pool to be used for Federated Identity
    +       * authentication with Confluent Cloud. See
    +       * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
    +       * 
    + * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for identityPoolId. + */ + public com.google.protobuf.ByteString getIdentityPoolIdBytes() { + java.lang.Object ref = identityPoolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityPoolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The id of the identity pool to be used for Federated Identity
    +       * authentication with Confluent Cloud. See
    +       * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
    +       * 
    + * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The identityPoolId to set. + * @return This builder for chaining. + */ + public Builder setIdentityPoolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + identityPoolId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The id of the identity pool to be used for Federated Identity
    +       * authentication with Confluent Cloud. See
    +       * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
    +       * 
    + * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearIdentityPoolId() { + identityPoolId_ = getDefaultInstance().getIdentityPoolId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The id of the identity pool to be used for Federated Identity
    +       * authentication with Confluent Cloud. See
    +       * https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools.
    +       * 
    + * + * string identity_pool_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for identityPoolId to set. + * @return This builder for chaining. + */ + public Builder setIdentityPoolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityPoolId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object gcpServiceAccount_ = ""; + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with `identity_pool_id`.
    +       * 
    + * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The gcpServiceAccount. + */ + public java.lang.String getGcpServiceAccount() { + java.lang.Object ref = gcpServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with `identity_pool_id`.
    +       * 
    + * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for gcpServiceAccount. + */ + public com.google.protobuf.ByteString getGcpServiceAccountBytes() { + java.lang.Object ref = gcpServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with `identity_pool_id`.
    +       * 
    + * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpServiceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with `identity_pool_id`.
    +       * 
    + * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGcpServiceAccount() { + gcpServiceAccount_ = getDefaultInstance().getGcpServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
    +       * Required. The GCP service account to be used for Federated Identity
    +       * authentication with `identity_pool_id`.
    +       * 
    + * + * string gcp_service_account = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for gcpServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) + private static final com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud(); + } + + public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfluentCloud parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AWS_KINESIS(1), + CLOUD_STORAGE(2), + AZURE_EVENT_HUBS(3), + AWS_MSK(5), + CONFLUENT_CLOUD(6), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 1: + return AWS_KINESIS; + case 2: + return CLOUD_STORAGE; + case 3: + return AZURE_EVENT_HUBS; + case 5: + return AWS_MSK; + case 6: + return CONFLUENT_CLOUD; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int AWS_KINESIS_FIELD_NUMBER = 1; + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ + @java.lang.Override + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Amazon Kinesis Data Streams.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + + public static final int CLOUD_STORAGE_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Optional. Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorage field is set. + */ + @java.lang.Override + public boolean hasCloudStorage() { + return sourceCase_ == 2; + } + /** + * + * + *
    +   * Optional. Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorage. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } + /** + * + * + *
        * Optional. Cloud Storage.
        * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder + getCloudStorageOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } + + public static final int AZURE_EVENT_HUBS_FIELD_NUMBER = 3; + /** + * + * + *
    +   * Optional. Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the azureEventHubs field is set. + */ + @java.lang.Override + public boolean hasAzureEventHubs() { + return sourceCase_ == 3; + } + /** + * + * + *
    +   * Optional. Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The azureEventHubs. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureEventHubs() { + if (sourceCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder + getAzureEventHubsOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); + } + + public static final int AWS_MSK_FIELD_NUMBER = 5; + /** + * + * + *
    +   * Optional. Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The cloudStorage. + * @return Whether the awsMsk field is set. */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { - if (sourceCase_ == 2) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + public boolean hasAwsMsk() { + return sourceCase_ == 5; + } + /** + * + * + *
    +   * Optional. Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsMsk. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk() { + if (sourceCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } /** * * *
    -   * Optional. Cloud Storage.
    +   * Optional. Amazon MSK.
        * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder - getCloudStorageOrBuilder() { - if (sourceCase_ == 2) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMskOrBuilder() { + if (sourceCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); + } + + public static final int CONFLUENT_CLOUD_FIELD_NUMBER = 6; + /** + * + * + *
    +   * Optional. Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confluentCloud field is set. + */ + @java.lang.Override + public boolean hasConfluentCloud() { + return sourceCase_ == 6; + } + /** + * + * + *
    +   * Optional. Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confluentCloud. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConfluentCloud() { + if (sourceCase_ == 6) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder + getConfluentCloudOrBuilder() { + if (sourceCase_ == 6) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } public static final int PLATFORM_LOGS_SETTINGS_FIELD_NUMBER = 4; @@ -6721,9 +13037,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 2, (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_); } + if (sourceCase_ == 3) { + output.writeMessage( + 3, (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_); + } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPlatformLogsSettings()); } + if (sourceCase_ == 5) { + output.writeMessage(5, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_); + } + if (sourceCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_); + } getUnknownFields().writeTo(output); } @@ -6743,10 +13070,25 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_); } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_); + } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPlatformLogsSettings()); } + if (sourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_); + } + if (sourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6775,6 +13117,15 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getCloudStorage().equals(other.getCloudStorage())) return false; break; + case 3: + if (!getAzureEventHubs().equals(other.getAzureEventHubs())) return false; + break; + case 5: + if (!getAwsMsk().equals(other.getAwsMsk())) return false; + break; + case 6: + if (!getConfluentCloud().equals(other.getConfluentCloud())) return false; + break; case 0: default: } @@ -6802,6 +13153,18 @@ public int hashCode() { hash = (37 * hash) + CLOUD_STORAGE_FIELD_NUMBER; hash = (53 * hash) + getCloudStorage().hashCode(); break; + case 3: + hash = (37 * hash) + AZURE_EVENT_HUBS_FIELD_NUMBER; + hash = (53 * hash) + getAzureEventHubs().hashCode(); + break; + case 5: + hash = (37 * hash) + AWS_MSK_FIELD_NUMBER; + hash = (53 * hash) + getAwsMsk().hashCode(); + break; + case 6: + hash = (37 * hash) + CONFLUENT_CLOUD_FIELD_NUMBER; + hash = (53 * hash) + getConfluentCloud().hashCode(); + break; case 0: default: } @@ -6924,367 +13287,1117 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionDataSourceSettings.class, - com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionDataSourceSettings.class, + com.google.pubsub.v1.IngestionDataSourceSettings.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPlatformLogsSettingsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (awsKinesisBuilder_ != null) { + awsKinesisBuilder_.clear(); + } + if (cloudStorageBuilder_ != null) { + cloudStorageBuilder_.clear(); + } + if (azureEventHubsBuilder_ != null) { + azureEventHubsBuilder_.clear(); + } + if (awsMskBuilder_ != null) { + awsMskBuilder_.clear(); + } + if (confluentCloudBuilder_ != null) { + confluentCloudBuilder_.clear(); + } + platformLogsSettings_ = null; + if (platformLogsSettingsBuilder_ != null) { + platformLogsSettingsBuilder_.dispose(); + platformLogsSettingsBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings build() { + com.google.pubsub.v1.IngestionDataSourceSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings buildPartial() { + com.google.pubsub.v1.IngestionDataSourceSettings result = + new com.google.pubsub.v1.IngestionDataSourceSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.platformLogsSettings_ = + platformLogsSettingsBuilder_ == null + ? platformLogsSettings_ + : platformLogsSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && awsKinesisBuilder_ != null) { + result.source_ = awsKinesisBuilder_.build(); + } + if (sourceCase_ == 2 && cloudStorageBuilder_ != null) { + result.source_ = cloudStorageBuilder_.build(); + } + if (sourceCase_ == 3 && azureEventHubsBuilder_ != null) { + result.source_ = azureEventHubsBuilder_.build(); + } + if (sourceCase_ == 5 && awsMskBuilder_ != null) { + result.source_ = awsMskBuilder_.build(); + } + if (sourceCase_ == 6 && confluentCloudBuilder_ != null) { + result.source_ = confluentCloudBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings) { + return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings other) { + if (other == com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) + return this; + if (other.hasPlatformLogsSettings()) { + mergePlatformLogsSettings(other.getPlatformLogsSettings()); + } + switch (other.getSourceCase()) { + case AWS_KINESIS: + { + mergeAwsKinesis(other.getAwsKinesis()); + break; + } + case CLOUD_STORAGE: + { + mergeCloudStorage(other.getCloudStorage()); + break; + } + case AZURE_EVENT_HUBS: + { + mergeAzureEventHubs(other.getAzureEventHubs()); + break; + } + case AWS_MSK: + { + mergeAwsMsk(other.getAwsMsk()); + break; + } + case CONFLUENT_CLOUD: + { + mergeConfluentCloud(other.getConfluentCloud()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAwsKinesisFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCloudStorageFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getAzureEventHubsFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getPlatformLogsSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + input.readMessage(getAwsMskFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getConfluentCloudFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPlatformLogsSettingsFieldBuilder(); - } + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; } + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + awsKinesisBuilder_; + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesis field is set. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (awsKinesisBuilder_ != null) { + public boolean hasAwsKinesis() { + return sourceCase_ == 1; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesis. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return awsKinesisBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + awsKinesisBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { + if (awsKinesisBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + awsKinesisBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsKinesis( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + awsKinesisBuilder_.mergeFrom(value); + } else { + awsKinesisBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsKinesis() { + if (awsKinesisBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } awsKinesisBuilder_.clear(); } - if (cloudStorageBuilder_ != null) { - cloudStorageBuilder_.clear(); - } - platformLogsSettings_ = null; - if (platformLogsSettingsBuilder_ != null) { - platformLogsSettingsBuilder_.dispose(); - platformLogsSettingsBuilder_ = null; - } - sourceCase_ = 0; - source_ = null; return this; } - + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder + getAwsKinesisBuilder() { + return getAwsKinesisFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder + getAwsKinesisOrBuilder() { + if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { + return awsKinesisBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Amazon Kinesis Data Streams.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> + getAwsKinesisFieldBuilder() { + if (awsKinesisBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + } + awsKinesisBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return awsKinesisBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> + cloudStorageBuilder_; + /** + * + * + *
    +     * Optional. Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorage field is set. + */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance(); + public boolean hasCloudStorage() { + return sourceCase_ == 2; } - + /** + * + * + *
    +     * Optional. Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorage. + */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings build() { - com.google.pubsub.v1.IngestionDataSourceSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return cloudStorageBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } - return result; } - - @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings buildPartial() { - com.google.pubsub.v1.IngestionDataSourceSettings result = - new com.google.pubsub.v1.IngestionDataSourceSettings(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
    +     * Optional. Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { + if (cloudStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + cloudStorageBuilder_.setMessage(value); } - buildPartialOneofs(result); - onBuilt(); - return result; + sourceCase_ = 2; + return this; } - - private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.platformLogsSettings_ = - platformLogsSettingsBuilder_ == null - ? platformLogsSettings_ - : platformLogsSettingsBuilder_.build(); - to_bitField0_ |= 0x00000001; + /** + * + * + *
    +     * Optional. Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder builderForValue) { + if (cloudStorageBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageBuilder_.setMessage(builderForValue.build()); } - result.bitField0_ |= to_bitField0_; + sourceCase_ = 2; + return this; } - - private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - if (sourceCase_ == 1 && awsKinesisBuilder_ != null) { - result.source_ = awsKinesisBuilder_.build(); + /** + * + * + *
    +     * Optional. Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudStorage( + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + cloudStorageBuilder_.mergeFrom(value); + } else { + cloudStorageBuilder_.setMessage(value); + } } - if (sourceCase_ == 2 && cloudStorageBuilder_ != null) { - result.source_ = cloudStorageBuilder_.build(); + sourceCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudStorage() { + if (cloudStorageBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + cloudStorageBuilder_.clear(); } + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
    +     * Optional. Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder + getCloudStorageBuilder() { + return getCloudStorageFieldBuilder().getBuilder(); } - + /** + * + * + *
    +     * Optional. Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder + getCloudStorageOrBuilder() { + if ((sourceCase_ == 2) && (cloudStorageBuilder_ != null)) { + return cloudStorageBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
    +     * Optional. Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> + getCloudStorageFieldBuilder() { + if (cloudStorageBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + } + cloudStorageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return cloudStorageBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder> + azureEventHubsBuilder_; + /** + * + * + *
    +     * Optional. Azure Event Hubs.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the azureEventHubs field is set. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public boolean hasAzureEventHubs() { + return sourceCase_ == 3; } - + /** + * + * + *
    +     * Optional. Azure Event Hubs.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The azureEventHubs. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings) { - return mergeFrom((com.google.pubsub.v1.IngestionDataSourceSettings) other); + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureEventHubs() { + if (azureEventHubsBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } else { - super.mergeFrom(other); - return this; + if (sourceCase_ == 3) { + return azureEventHubsBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } } - - public Builder mergeFrom(com.google.pubsub.v1.IngestionDataSourceSettings other) { - if (other == com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance()) - return this; - if (other.hasPlatformLogsSettings()) { - mergePlatformLogsSettings(other.getPlatformLogsSettings()); - } - switch (other.getSourceCase()) { - case AWS_KINESIS: - { - mergeAwsKinesis(other.getAwsKinesis()); - break; - } - case CLOUD_STORAGE: - { - mergeCloudStorage(other.getCloudStorage()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + /** + * + * + *
    +     * Optional. Azure Event Hubs.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAzureEventHubs( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs value) { + if (azureEventHubsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + azureEventHubsBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + sourceCase_ = 3; return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
    +     * Optional. Azure Event Hubs.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAzureEventHubs( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder builderForValue) { + if (azureEventHubsBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + azureEventHubsBuilder_.setMessage(builderForValue.build()); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getAwsKinesisFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCloudStorageFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 34: - { - input.readMessage( - getPlatformLogsSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + sourceCase_ = 3; + return this; + } + /** + * + * + *
    +     * Optional. Azure Event Hubs.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAzureEventHubs( + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs value) { + if (azureEventHubsBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs + .getDefaultInstance()) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } onChanged(); - } // finally + } else { + if (sourceCase_ == 3) { + azureEventHubsBuilder_.mergeFrom(value); + } else { + azureEventHubsBuilder_.setMessage(value); + } + } + sourceCase_ = 3; return this; } - - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); + /** + * + * + *
    +     * Optional. Azure Event Hubs.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAzureEventHubs() { + if (azureEventHubsBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + azureEventHubsBuilder_.clear(); + } + return this; } - - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + /** + * + * + *
    +     * Optional. Azure Event Hubs.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder + getAzureEventHubsBuilder() { + return getAzureEventHubsFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. Azure Event Hubs.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder + getAzureEventHubsOrBuilder() { + if ((sourceCase_ == 3) && (azureEventHubsBuilder_ != null)) { + return azureEventHubsBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_; + } + return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Azure Event Hubs.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder> + getAzureEventHubsFieldBuilder() { + if (azureEventHubsBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); + } + azureEventHubsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; onChanged(); - return this; + return azureEventHubsBuilder_; } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> - awsKinesisBuilder_; + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder> + awsMskBuilder_; /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Amazon MSK.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the awsKinesis field is set. + * @return Whether the awsMsk field is set. */ @java.lang.Override - public boolean hasAwsKinesis() { - return sourceCase_ == 1; + public boolean hasAwsMsk() { + return sourceCase_ == 5; } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Amazon MSK.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The awsKinesis. + * @return The awsMsk. */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis() { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk() { + if (awsMskBuilder_ == null) { + if (sourceCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } else { - if (sourceCase_ == 1) { - return awsKinesisBuilder_.getMessage(); + if (sourceCase_ == 5) { + return awsMskBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Amazon MSK.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { - if (awsKinesisBuilder_ == null) { + public Builder setAwsMsk(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk value) { + if (awsMskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - awsKinesisBuilder_.setMessage(value); + awsMskBuilder_.setMessage(value); } - sourceCase_ = 1; + sourceCase_ = 5; return this; } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Amazon MSK.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder builderForValue) { - if (awsKinesisBuilder_ == null) { + public Builder setAwsMsk( + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder builderForValue) { + if (awsMskBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - awsKinesisBuilder_.setMessage(builderForValue.build()); + awsMskBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 1; + sourceCase_ = 5; return this; } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Amazon MSK.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeAwsKinesis( - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis value) { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1 + public Builder mergeAwsMsk(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk value) { + if (awsMskBuilder_ == null) { + if (sourceCase_ == 5 && source_ - != com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis - .getDefaultInstance()) { + != com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance()) { source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder( - (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_) + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_) .mergeFrom(value) .buildPartial(); } else { @@ -7292,39 +14405,39 @@ public Builder mergeAwsKinesis( } onChanged(); } else { - if (sourceCase_ == 1) { - awsKinesisBuilder_.mergeFrom(value); + if (sourceCase_ == 5) { + awsMskBuilder_.mergeFrom(value); } else { - awsKinesisBuilder_.setMessage(value); + awsMskBuilder_.setMessage(value); } } - sourceCase_ = 1; + sourceCase_ = 5; return this; } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Amazon MSK.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearAwsKinesis() { - if (awsKinesisBuilder_ == null) { - if (sourceCase_ == 1) { + public Builder clearAwsMsk() { + if (awsMskBuilder_ == null) { + if (sourceCase_ == 5) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 1) { + if (sourceCase_ == 5) { sourceCase_ = 0; source_ = null; } - awsKinesisBuilder_.clear(); + awsMskBuilder_.clear(); } return this; } @@ -7332,193 +14445,190 @@ public Builder clearAwsKinesis() { * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Amazon MSK.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder - getAwsKinesisBuilder() { - return getAwsKinesisFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder getAwsMskBuilder() { + return getAwsMskFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Amazon MSK.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder - getAwsKinesisOrBuilder() { - if ((sourceCase_ == 1) && (awsKinesisBuilder_ != null)) { - return awsKinesisBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMskOrBuilder() { + if ((sourceCase_ == 5) && (awsMskBuilder_ != null)) { + return awsMskBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 1) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_; + if (sourceCase_ == 5) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } } /** * * *
    -     * Optional. Amazon Kinesis Data Streams.
    +     * Optional. Amazon MSK.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> - getAwsKinesisFieldBuilder() { - if (awsKinesisBuilder_ == null) { - if (!(sourceCase_ == 1)) { - source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); - } - awsKinesisBuilder_ = + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder> + getAwsMskFieldBuilder() { + if (awsMskBuilder_ == null) { + if (!(sourceCase_ == 5)) { + source_ = com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); + } + awsMskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( - (com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) source_, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 1; + sourceCase_ = 5; onChanged(); - return awsKinesisBuilder_; + return awsMskBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> - cloudStorageBuilder_; + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder> + confluentCloudBuilder_; /** * * *
    -     * Optional. Cloud Storage.
    +     * Optional. Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the cloudStorage field is set. + * @return Whether the confluentCloud field is set. */ @java.lang.Override - public boolean hasCloudStorage() { - return sourceCase_ == 2; + public boolean hasConfluentCloud() { + return sourceCase_ == 6; } /** * * *
    -     * Optional. Cloud Storage.
    +     * Optional. Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The cloudStorage. + * @return The confluentCloud. */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage() { - if (cloudStorageBuilder_ == null) { - if (sourceCase_ == 2) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConfluentCloud() { + if (confluentCloudBuilder_ == null) { + if (sourceCase_ == 6) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } else { - if (sourceCase_ == 2) { - return cloudStorageBuilder_.getMessage(); + if (sourceCase_ == 6) { + return confluentCloudBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } } /** * * *
    -     * Optional. Cloud Storage.
    +     * Optional. Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCloudStorage( - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { - if (cloudStorageBuilder_ == null) { + public Builder setConfluentCloud( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud value) { + if (confluentCloudBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - cloudStorageBuilder_.setMessage(value); + confluentCloudBuilder_.setMessage(value); } - sourceCase_ = 2; + sourceCase_ = 6; return this; } /** * * *
    -     * Optional. Cloud Storage.
    +     * Optional. Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCloudStorage( - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder builderForValue) { - if (cloudStorageBuilder_ == null) { + public Builder setConfluentCloud( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder builderForValue) { + if (confluentCloudBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - cloudStorageBuilder_.setMessage(builderForValue.build()); + confluentCloudBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 2; + sourceCase_ = 6; return this; } /** * * *
    -     * Optional. Cloud Storage.
    +     * Optional. Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCloudStorage( - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage value) { - if (cloudStorageBuilder_ == null) { - if (sourceCase_ == 2 + public Builder mergeConfluentCloud( + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud value) { + if (confluentCloudBuilder_ == null) { + if (sourceCase_ == 6 && source_ - != com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage + != com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud .getDefaultInstance()) { source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.newBuilder( - (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_) + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.newBuilder( + (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_) .mergeFrom(value) .buildPartial(); } else { @@ -7526,39 +14636,39 @@ public Builder mergeCloudStorage( } onChanged(); } else { - if (sourceCase_ == 2) { - cloudStorageBuilder_.mergeFrom(value); + if (sourceCase_ == 6) { + confluentCloudBuilder_.mergeFrom(value); } else { - cloudStorageBuilder_.setMessage(value); + confluentCloudBuilder_.setMessage(value); } } - sourceCase_ = 2; + sourceCase_ = 6; return this; } /** * * *
    -     * Optional. Cloud Storage.
    +     * Optional. Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCloudStorage() { - if (cloudStorageBuilder_ == null) { - if (sourceCase_ == 2) { + public Builder clearConfluentCloud() { + if (confluentCloudBuilder_ == null) { + if (sourceCase_ == 6) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 2) { + if (sourceCase_ == 6) { sourceCase_ = 0; source_ = null; } - cloudStorageBuilder_.clear(); + confluentCloudBuilder_.clear(); } return this; } @@ -7566,74 +14676,74 @@ public Builder clearCloudStorage() { * * *
    -     * Optional. Cloud Storage.
    +     * Optional. Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder - getCloudStorageBuilder() { - return getCloudStorageFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder + getConfluentCloudBuilder() { + return getConfluentCloudFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Cloud Storage.
    +     * Optional. Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder - getCloudStorageOrBuilder() { - if ((sourceCase_ == 2) && (cloudStorageBuilder_ != null)) { - return cloudStorageBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder + getConfluentCloudOrBuilder() { + if ((sourceCase_ == 6) && (confluentCloudBuilder_ != null)) { + return confluentCloudBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 2) { - return (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_; + if (sourceCase_ == 6) { + return (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_; } - return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } } /** * * *
    -     * Optional. Cloud Storage.
    +     * Optional. Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> - getCloudStorageFieldBuilder() { - if (cloudStorageBuilder_ == null) { - if (!(sourceCase_ == 2)) { + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder> + getConfluentCloudFieldBuilder() { + if (confluentCloudBuilder_ == null) { + if (!(sourceCase_ == 6)) { source_ = - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } - cloudStorageBuilder_ = + confluentCloudBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, - com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder>( - (com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) source_, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder>( + (com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 2; + sourceCase_ = 6; onChanged(); - return cloudStorageBuilder_; + return confluentCloudBuilder_; } private com.google.pubsub.v1.PlatformLogsSettings platformLogsSettings_; @@ -7657,7 +14767,7 @@ public Builder clearCloudStorage() { * @return Whether the platformLogsSettings field is set. */ public boolean hasPlatformLogsSettings() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -7703,7 +14813,7 @@ public Builder setPlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettings } else { platformLogsSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7726,7 +14836,7 @@ public Builder setPlatformLogsSettings( } else { platformLogsSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7744,7 +14854,7 @@ public Builder setPlatformLogsSettings( */ public Builder mergePlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettings value) { if (platformLogsSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000020) != 0) && platformLogsSettings_ != null && platformLogsSettings_ != com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance()) { @@ -7756,7 +14866,7 @@ public Builder mergePlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettin platformLogsSettingsBuilder_.mergeFrom(value); } if (platformLogsSettings_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -7774,7 +14884,7 @@ public Builder mergePlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettin * */ public Builder clearPlatformLogsSettings() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); platformLogsSettings_ = null; if (platformLogsSettingsBuilder_ != null) { platformLogsSettingsBuilder_.dispose(); @@ -7796,7 +14906,7 @@ public Builder clearPlatformLogsSettings() { * */ public com.google.pubsub.v1.PlatformLogsSettings.Builder getPlatformLogsSettingsBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return getPlatformLogsSettingsFieldBuilder().getBuilder(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index 28c04d6072bb..aba0b49cb97c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -106,6 +106,131 @@ public interface IngestionDataSourceSettingsOrBuilder */ com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder getCloudStorageOrBuilder(); + /** + * + * + *
    +   * Optional. Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the azureEventHubs field is set. + */ + boolean hasAzureEventHubs(); + /** + * + * + *
    +   * Optional. Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The azureEventHubs. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureEventHubs(); + /** + * + * + *
    +   * Optional. Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder + getAzureEventHubsOrBuilder(); + + /** + * + * + *
    +   * Optional. Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsMsk field is set. + */ + boolean hasAwsMsk(); + /** + * + * + *
    +   * Optional. Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsMsk. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk(); + /** + * + * + *
    +   * Optional. Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMskOrBuilder(); + + /** + * + * + *
    +   * Optional. Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confluentCloud field is set. + */ + boolean hasConfluentCloud(); + /** + * + * + *
    +   * Optional. Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confluentCloud. + */ + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConfluentCloud(); + /** + * + * + *
    +   * Optional. Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder + getConfluentCloudOrBuilder(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 98eefa8aa361..624ec551c408 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2754,985 +2754,6637 @@ public com.google.protobuf.Parser getParserForType() { } } - private int failureCase_ = 0; + public interface AwsMskFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private java.lang.Object failure_; + /** + * + * + *
    +     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * 
    + * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterArn. + */ + java.lang.String getClusterArn(); + /** + * + * + *
    +     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * 
    + * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterArn. + */ + com.google.protobuf.ByteString getClusterArnBytes(); - public enum FailureCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CLOUD_STORAGE_FAILURE(3), - FAILURE_NOT_SET(0); - private final int value; + /** + * + * + *
    +     * Optional. The name of the Kafka topic being ingested from.
    +     * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + java.lang.String getKafkaTopic(); + /** + * + * + *
    +     * Optional. The name of the Kafka topic being ingested from.
    +     * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + com.google.protobuf.ByteString getKafkaTopicBytes(); - private FailureCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
    +     * Optional. The partition ID of the message that failed to be ingested.
    +     * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. */ - @java.lang.Deprecated - public static FailureCase valueOf(int value) { - return forNumber(value); - } + long getPartitionId(); - public static FailureCase forNumber(int value) { - switch (value) { - case 3: - return CLOUD_STORAGE_FAILURE; - case 0: - return FAILURE_NOT_SET; - default: - return null; - } - } + /** + * + * + *
    +     * Optional. The offset within the partition of the message that failed to
    +     * be ingested.
    +     * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + long getOffset(); - public int getNumber() { - return this.value; - } - }; + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); - public FailureCase getFailureCase() { - return FailureCase.forNumber(failureCase_); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); } - - public static final int TOPIC_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object topic_ = ""; /** * * *
    -   * Required. Name of the import topic. Format is:
    -   * projects/{project_name}/topics/{topic_name}.
    +   * Failure when ingesting from an Amazon MSK source.
        * 
    * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The topic. + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} */ - @java.lang.Override - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; + public static final class AwsMskFailureReason extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + AwsMskFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use AwsMskFailureReason.newBuilder() to construct. + private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - /** - * - * - *
    -   * Required. Name of the import topic. Format is:
    -   * projects/{project_name}/topics/{topic_name}.
    -   * 
    - * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for topic. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + private AwsMskFailureReason() { + clusterArn_ = ""; + kafkaTopic_ = ""; } - } - public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AwsMskFailureReason(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object errorMessage_ = ""; - /** - * - * - *
    -   * Required. Error details explaining why ingestion to Pub/Sub has failed.
    -   * 
    - * - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The errorMessage. - */ - @java.lang.Override - public java.lang.String getErrorMessage() { - java.lang.Object ref = errorMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errorMessage_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } - } - /** - * - * - *
    -   * Required. Error details explaining why ingestion to Pub/Sub has failed.
    -   * 
    - * - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for errorMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { - java.lang.Object ref = errorMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - errorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); } - } - public static final int CLOUD_STORAGE_FAILURE_FIELD_NUMBER = 3; - /** - * - * - *
    -   * Optional. Failure when ingesting from Cloud Storage.
    -   * 
    - * - * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the cloudStorageFailure field is set. - */ - @java.lang.Override - public boolean hasCloudStorageFailure() { - return failureCase_ == 3; - } - /** - * - * - *
    -   * Optional. Failure when ingesting from Cloud Storage.
    -   * 
    - * - * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The cloudStorageFailure. - */ - @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { - if (failureCase_ == 3) { - return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; - } - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); - } - /** - * - * - *
    -   * Optional. Failure when ingesting from Cloud Storage.
    -   * 
    - * - * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder - getCloudStorageFailureOrBuilder() { - if (failureCase_ == 3) { - return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; - } - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); - } + private int reasonCase_ = 0; - private byte memoizedIsInitialized = -1; + @SuppressWarnings("serial") + private java.lang.Object reason_; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + API_VIOLATION_REASON(5), + REASON_NOT_SET(0); + private final int value; - memoizedIsInitialized = 1; - return true; - } + private ReasonCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); - } - if (failureCase_ == 3) { - output.writeMessage( - 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); - } - getUnknownFields().writeTo(output); - } + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return API_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public int getNumber() { + return this.value; + } + }; - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); - } - if (failureCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static final int CLUSTER_ARN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterArn_ = ""; + /** + * + * + *
    +     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * 
    + * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterArn. + */ + @java.lang.Override + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterArn_ = s; + return s; + } } - if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent)) { - return super.equals(obj); + /** + * + * + *
    +     * Optional. The ARN of the cluster of the topic being ingested from.
    +     * 
    + * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterArn. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - com.google.pubsub.v1.IngestionFailureEvent other = - (com.google.pubsub.v1.IngestionFailureEvent) obj; - if (!getTopic().equals(other.getTopic())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; - if (!getFailureCase().equals(other.getFailureCase())) return false; - switch (failureCase_) { - case 3: - if (!getCloudStorageFailure().equals(other.getCloudStorageFailure())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @SuppressWarnings("serial") + private volatile java.lang.Object kafkaTopic_ = ""; + /** + * + * + *
    +     * Optional. The name of the Kafka topic being ingested from.
    +     * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + @java.lang.Override + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kafkaTopic_ = s; + return s; + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getTopic().hashCode(); - hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getErrorMessage().hashCode(); - switch (failureCase_) { - case 3: - hash = (37 * hash) + CLOUD_STORAGE_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + getCloudStorageFailure().hashCode(); - break; - case 0: - default: + /** + * + * + *
    +     * Optional. The name of the Kafka topic being ingested from.
    +     * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kafkaTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int PARTITION_ID_FIELD_NUMBER = 3; + private long partitionId_ = 0L; + /** + * + * + *
    +     * Optional. The partition ID of the message that failed to be ingested.
    +     * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int OFFSET_FIELD_NUMBER = 4; + private long offset_ = 0L; + /** + * + * + *
    +     * Optional. The offset within the partition of the message that failed to
    +     * be ingested.
    +     * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private byte memoizedIsInitialized = -1; - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + } + if (partitionId_ != 0L) { + output.writeInt64(3, partitionId_); + } + if (offset_ != 0L) { + output.writeInt64(4, offset_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } - public static com.google.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterArn_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); + } + if (partitionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) obj; - public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + if (!getClusterArn().equals(other.getClusterArn())) return false; + if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; + if (getPartitionId() != other.getPartitionId()) return false; + if (getOffset() != other.getOffset()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_ARN_FIELD_NUMBER; + hash = (53 * hash) + getClusterArn().hashCode(); + hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getKafkaTopic().hashCode(); + hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static Builder newBuilder(com.google.pubsub.v1.IngestionFailureEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
    -   * Payload of the Platform Log entry sent when a failure is encountered while
    -   * ingesting.
    -   * 
    - * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent) - com.google.pubsub.v1.IngestionFailureEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.class, - com.google.pubsub.v1.IngestionFailureEvent.Builder.class); + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - // Construct using com.google.pubsub.v1.IngestionFailureEvent.newBuilder() - private Builder() {} + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - topic_ = ""; - errorMessage_ = ""; - if (cloudStorageFailureBuilder_ != null) { - cloudStorageFailureBuilder_.clear(); - } + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Failure when ingesting from an Amazon MSK source.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterArn_ = ""; + kafkaTopic_ = ""; + partitionId_ = 0L; + offset_ = 0L; + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterArn_ = clusterArn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kafkaTopic_ = kafkaTopic_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.partitionId_ = partitionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.offset_ = offset_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance()) + return this; + if (!other.getClusterArn().isEmpty()) { + clusterArn_ = other.clusterArn_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKafkaTopic().isEmpty()) { + kafkaTopic_ = other.kafkaTopic_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPartitionId() != 0L) { + setPartitionId(other.getPartitionId()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + switch (other.getReasonCase()) { + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clusterArn_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + kafkaTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + partitionId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object clusterArn_ = ""; + /** + * + * + *
    +       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * 
    + * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterArn. + */ + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterArn_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * 
    + * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterArn. + */ + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterArn_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * 
    + * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterArn to set. + * @return This builder for chaining. + */ + public Builder setClusterArn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterArn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * 
    + * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterArn() { + clusterArn_ = getDefaultInstance().getClusterArn(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The ARN of the cluster of the topic being ingested from.
    +       * 
    + * + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterArn to set. + * @return This builder for chaining. + */ + public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterArn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object kafkaTopic_ = ""; + /** + * + * + *
    +       * Optional. The name of the Kafka topic being ingested from.
    +       * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kafkaTopic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the Kafka topic being ingested from.
    +       * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kafkaTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the Kafka topic being ingested from.
    +       * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The kafkaTopic to set. + * @return This builder for chaining. + */ + public Builder setKafkaTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kafkaTopic_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the Kafka topic being ingested from.
    +       * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKafkaTopic() { + kafkaTopic_ = getDefaultInstance().getKafkaTopic(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the Kafka topic being ingested from.
    +       * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for kafkaTopic to set. + * @return This builder for chaining. + */ + public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kafkaTopic_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long partitionId_; + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The partitionId to set. + * @return This builder for chaining. + */ + public Builder setPartitionId(long value) { + + partitionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPartitionId() { + bitField0_ = (bitField0_ & ~0x00000004); + partitionId_ = 0L; + onChanged(); + return this; + } + + private long offset_; + /** + * + * + *
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
    +       * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + /** + * + * + *
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
    +       * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
    +       * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000008); + offset_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsMskFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AzureEventHubsFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. The namespace containing the event hub being ingested from.
    +     * 
    + * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + java.lang.String getNamespace(); + /** + * + * + *
    +     * Optional. The namespace containing the event hub being ingested from.
    +     * 
    + * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + com.google.protobuf.ByteString getNamespaceBytes(); + + /** + * + * + *
    +     * Optional. The name of the event hub being ingested from.
    +     * 
    + * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + java.lang.String getEventHub(); + /** + * + * + *
    +     * Optional. The name of the event hub being ingested from.
    +     * 
    + * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + com.google.protobuf.ByteString getEventHubBytes(); + + /** + * + * + *
    +     * Optional. The partition ID of the message that failed to be ingested.
    +     * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + long getPartitionId(); + + /** + * + * + *
    +     * Optional. The offset within the partition of the message that failed to
    +     * be ingested.
    +     * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + long getOffset(); + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase + getReasonCase(); + } + /** + * + * + *
    +   * Failure when ingesting from an Azure Event Hubs source.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} + */ + public static final class AzureEventHubsFailureReason + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + AzureEventHubsFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use AzureEventHubsFailureReason.newBuilder() to construct. + private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AzureEventHubsFailureReason() { + namespace_ = ""; + eventHub_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AzureEventHubsFailureReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder.class); + } + + private int reasonCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reason_; + + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + API_VIOLATION_REASON(5), + REASON_NOT_SET(0); + private final int value; + + private ReasonCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return API_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public static final int NAMESPACE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object namespace_ = ""; + /** + * + * + *
    +     * Optional. The namespace containing the event hub being ingested from.
    +     * 
    + * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + @java.lang.Override + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The namespace containing the event hub being ingested from.
    +     * 
    + * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_HUB_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventHub_ = ""; + /** + * + * + *
    +     * Optional. The name of the event hub being ingested from.
    +     * 
    + * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + @java.lang.Override + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventHub_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The name of the event hub being ingested from.
    +     * 
    + * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventHub_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTITION_ID_FIELD_NUMBER = 3; + private long partitionId_ = 0L; + /** + * + * + *
    +     * Optional. The partition ID of the message that failed to be ingested.
    +     * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + + public static final int OFFSET_FIELD_NUMBER = 4; + private long offset_ = 0L; + /** + * + * + *
    +     * Optional. The offset within the partition of the message that failed to
    +     * be ingested.
    +     * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventHub_); + } + if (partitionId_ != 0L) { + output.writeInt64(3, partitionId_); + } + if (offset_ != 0L) { + output.writeInt64(4, offset_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventHub_); + } + if (partitionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) obj; + + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getEventHub().equals(other.getEventHub())) return false; + if (getPartitionId() != other.getPartitionId()) return false; + if (getOffset() != other.getOffset()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + hash = (37 * hash) + EVENT_HUB_FIELD_NUMBER; + hash = (53 * hash) + getEventHub().hashCode(); + hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Failure when ingesting from an Azure Event Hubs source.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + namespace_ = ""; + eventHub_ = ""; + partitionId_ = 0L; + offset_ = 0L; + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.namespace_ = namespace_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventHub_ = eventHub_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.partitionId_ = partitionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.offset_ = offset_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance()) return this; + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEventHub().isEmpty()) { + eventHub_ = other.eventHub_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPartitionId() != 0L) { + setPartitionId(other.getPartitionId()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + switch (other.getReasonCase()) { + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + namespace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + eventHub_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + partitionId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object namespace_ = ""; + /** + * + * + *
    +       * Optional. The namespace containing the event hub being ingested from.
    +       * 
    + * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The namespace. + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + namespace_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The namespace containing the event hub being ingested from.
    +       * 
    + * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for namespace. + */ + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The namespace containing the event hub being ingested from.
    +       * 
    + * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + namespace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The namespace containing the event hub being ingested from.
    +       * 
    + * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The namespace containing the event hub being ingested from.
    +       * 
    + * + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for namespace to set. + * @return This builder for chaining. + */ + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object eventHub_ = ""; + /** + * + * + *
    +       * Optional. The name of the event hub being ingested from.
    +       * 
    + * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventHub. + */ + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventHub_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the event hub being ingested from.
    +       * 
    + * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventHub. + */ + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventHub_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the event hub being ingested from.
    +       * 
    + * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The eventHub to set. + * @return This builder for chaining. + */ + public Builder setEventHub(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventHub_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the event hub being ingested from.
    +       * 
    + * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEventHub() { + eventHub_ = getDefaultInstance().getEventHub(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the event hub being ingested from.
    +       * 
    + * + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for eventHub to set. + * @return This builder for chaining. + */ + public Builder setEventHubBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventHub_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long partitionId_; + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The partitionId to set. + * @return This builder for chaining. + */ + public Builder setPartitionId(long value) { + + partitionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPartitionId() { + bitField0_ = (bitField0_ & ~0x00000004); + partitionId_ = 0L; + onChanged(); + return this; + } + + private long offset_; + /** + * + * + *
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
    +       * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + /** + * + * + *
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
    +       * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
    +       * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000008); + offset_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureEventHubsFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConfluentCloudFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. The cluster ID containing the topic being ingested from.
    +     * 
    + * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + /** + * + * + *
    +     * Optional. The cluster ID containing the topic being ingested from.
    +     * 
    + * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
    +     * Optional. The name of the Kafka topic being ingested from.
    +     * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + java.lang.String getKafkaTopic(); + /** + * + * + *
    +     * Optional. The name of the Kafka topic being ingested from.
    +     * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + com.google.protobuf.ByteString getKafkaTopicBytes(); + + /** + * + * + *
    +     * Optional. The partition ID of the message that failed to be ingested.
    +     * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + long getPartitionId(); + + /** + * + * + *
    +     * Optional. The offset within the partition of the message that failed to
    +     * be ingested.
    +     * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + long getOffset(); + + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase + getReasonCase(); + } + /** + * + * + *
    +   * Failure when ingesting from a Confluent Cloud source.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} + */ + public static final class ConfluentCloudFailureReason + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + ConfluentCloudFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfluentCloudFailureReason.newBuilder() to construct. + private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfluentCloudFailureReason() { + clusterId_ = ""; + kafkaTopic_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfluentCloudFailureReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder.class); + } + + private int reasonCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reason_; + + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + API_VIOLATION_REASON(5), + REASON_NOT_SET(0); + private final int value; + + private ReasonCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return API_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + /** + * + * + *
    +     * Optional. The cluster ID containing the topic being ingested from.
    +     * 
    + * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The cluster ID containing the topic being ingested from.
    +     * 
    + * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object kafkaTopic_ = ""; + /** + * + * + *
    +     * Optional. The name of the Kafka topic being ingested from.
    +     * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + @java.lang.Override + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kafkaTopic_ = s; + return s; + } + } + /** + * + * + *
    +     * Optional. The name of the Kafka topic being ingested from.
    +     * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kafkaTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARTITION_ID_FIELD_NUMBER = 3; + private long partitionId_ = 0L; + /** + * + * + *
    +     * Optional. The partition ID of the message that failed to be ingested.
    +     * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + + public static final int OFFSET_FIELD_NUMBER = 4; + private long offset_ = 0L; + /** + * + * + *
    +     * Optional. The offset within the partition of the message that failed to
    +     * be ingested.
    +     * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + /** + * + * + *
    +     * Optional. The Pub/Sub API limits prevented the desired message from
    +     * being published.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + } + if (partitionId_ != 0L) { + output.writeInt64(3, partitionId_); + } + if (offset_ != 0L) { + output.writeInt64(4, offset_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); + } + if (partitionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) obj; + + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; + if (getPartitionId() != other.getPartitionId()) return false; + if (getOffset() != other.getOffset()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getKafkaTopic().hashCode(); + hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +     * Failure when ingesting from a Confluent Cloud source.
    +     * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder + .class); + } + + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clusterId_ = ""; + kafkaTopic_ = ""; + partitionId_ = 0L; + offset_ = 0L; + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kafkaTopic_ = kafkaTopic_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.partitionId_ = partitionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.offset_ = offset_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance()) return this; + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKafkaTopic().isEmpty()) { + kafkaTopic_ = other.kafkaTopic_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPartitionId() != 0L) { + setPartitionId(other.getPartitionId()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + switch (other.getReasonCase()) { + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + kafkaTopic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + partitionId_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object clusterId_ = ""; + /** + * + * + *
    +       * Optional. The cluster ID containing the topic being ingested from.
    +       * 
    + * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The cluster ID containing the topic being ingested from.
    +       * 
    + * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The cluster ID containing the topic being ingested from.
    +       * 
    + * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The cluster ID containing the topic being ingested from.
    +       * 
    + * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The cluster ID containing the topic being ingested from.
    +       * 
    + * + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object kafkaTopic_ = ""; + /** + * + * + *
    +       * Optional. The name of the Kafka topic being ingested from.
    +       * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kafkaTopic. + */ + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kafkaTopic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the Kafka topic being ingested from.
    +       * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kafkaTopic. + */ + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kafkaTopic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +       * Optional. The name of the Kafka topic being ingested from.
    +       * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The kafkaTopic to set. + * @return This builder for chaining. + */ + public Builder setKafkaTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kafkaTopic_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the Kafka topic being ingested from.
    +       * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKafkaTopic() { + kafkaTopic_ = getDefaultInstance().getKafkaTopic(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The name of the Kafka topic being ingested from.
    +       * 
    + * + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for kafkaTopic to set. + * @return This builder for chaining. + */ + public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kafkaTopic_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long partitionId_; + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The partitionId to set. + * @return This builder for chaining. + */ + public Builder setPartitionId(long value) { + + partitionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The partition ID of the message that failed to be ingested.
    +       * 
    + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPartitionId() { + bitField0_ = (bitField0_ & ~0x00000004); + partitionId_ = 0L; + onChanged(); + return this; + } + + private long offset_; + /** + * + * + *
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
    +       * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + /** + * + * + *
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
    +       * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
    +       * Optional. The offset within the partition of the message that failed to
    +       * be ingested.
    +       * 
    + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000008); + offset_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + /** + * + * + *
    +       * Optional. The Pub/Sub API limits prevented the desired message from
    +       * being published.
    +       * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfluentCloudFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int failureCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object failure_; + + public enum FailureCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUD_STORAGE_FAILURE(3), + AWS_MSK_FAILURE(4), + AZURE_EVENT_HUBS_FAILURE(5), + CONFLUENT_CLOUD_FAILURE(6), + FAILURE_NOT_SET(0); + private final int value; + + private FailureCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FailureCase valueOf(int value) { + return forNumber(value); + } + + public static FailureCase forNumber(int value) { + switch (value) { + case 3: + return CLOUD_STORAGE_FAILURE; + case 4: + return AWS_MSK_FAILURE; + case 5: + return AZURE_EVENT_HUBS_FAILURE; + case 6: + return CONFLUENT_CLOUD_FAILURE; + case 0: + return FAILURE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FailureCase getFailureCase() { + return FailureCase.forNumber(failureCase_); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object topic_ = ""; + /** + * + * + *
    +   * Required. Name of the import topic. Format is:
    +   * projects/{project_name}/topics/{topic_name}.
    +   * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + @java.lang.Override + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Name of the import topic. Format is:
    +   * projects/{project_name}/topics/{topic_name}.
    +   * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + /** + * + * + *
    +   * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +   * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +   * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOUD_STORAGE_FAILURE_FIELD_NUMBER = 3; + /** + * + * + *
    +   * Optional. Failure when ingesting from Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageFailure field is set. + */ + @java.lang.Override + public boolean hasCloudStorageFailure() { + return failureCase_ == 3; + } + /** + * + * + *
    +   * Optional. Failure when ingesting from Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Failure when ingesting from Cloud Storage.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder + getCloudStorageFailureOrBuilder() { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + + public static final int AWS_MSK_FAILURE_FIELD_NUMBER = 4; + /** + * + * + *
    +   * Optional. Failure when ingesting from Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsMskFailure field is set. + */ + @java.lang.Override + public boolean hasAwsMskFailure() { + return failureCase_ == 4; + } + /** + * + * + *
    +   * Optional. Failure when ingesting from Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsMskFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskFailure() { + if (failureCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Failure when ingesting from Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder + getAwsMskFailureOrBuilder() { + if (failureCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + } + + public static final int AZURE_EVENT_HUBS_FAILURE_FIELD_NUMBER = 5; + /** + * + * + *
    +   * Optional. Failure when ingesting from Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the azureEventHubsFailure field is set. + */ + @java.lang.Override + public boolean hasAzureEventHubsFailure() { + return failureCase_ == 5; + } + /** + * + * + *
    +   * Optional. Failure when ingesting from Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The azureEventHubsFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + getAzureEventHubsFailure() { + if (failureCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Failure when ingesting from Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder + getAzureEventHubsFailureOrBuilder() { + if (failureCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } + + public static final int CONFLUENT_CLOUD_FAILURE_FIELD_NUMBER = 6; + /** + * + * + *
    +   * Optional. Failure when ingesting from Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confluentCloudFailure field is set. + */ + @java.lang.Override + public boolean hasConfluentCloudFailure() { + return failureCase_ == 6; + } + /** + * + * + *
    +   * Optional. Failure when ingesting from Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confluentCloudFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + getConfluentCloudFailure() { + if (failureCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. Failure when ingesting from Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder + getConfluentCloudFailureOrBuilder() { + if (failureCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); + } + if (failureCase_ == 3) { + output.writeMessage( + 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); + } + if (failureCase_ == 4) { + output.writeMessage( + 4, (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_); + } + if (failureCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_); + } + if (failureCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); + } + if (failureCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_); + } + if (failureCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_); + } + if (failureCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_); + } + if (failureCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent other = + (com.google.pubsub.v1.IngestionFailureEvent) obj; + + if (!getTopic().equals(other.getTopic())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getFailureCase().equals(other.getFailureCase())) return false; + switch (failureCase_) { + case 3: + if (!getCloudStorageFailure().equals(other.getCloudStorageFailure())) return false; + break; + case 4: + if (!getAwsMskFailure().equals(other.getAwsMskFailure())) return false; + break; + case 5: + if (!getAzureEventHubsFailure().equals(other.getAzureEventHubsFailure())) return false; + break; + case 6: + if (!getConfluentCloudFailure().equals(other.getConfluentCloudFailure())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getTopic().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + switch (failureCase_) { + case 3: + hash = (37 * hash) + CLOUD_STORAGE_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageFailure().hashCode(); + break; + case 4: + hash = (37 * hash) + AWS_MSK_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getAwsMskFailure().hashCode(); + break; + case 5: + hash = (37 * hash) + AZURE_EVENT_HUBS_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getAzureEventHubsFailure().hashCode(); + break; + case 6: + hash = (37 * hash) + CONFLUENT_CLOUD_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getConfluentCloudFailure().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.IngestionFailureEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * Payload of the Platform Log entry sent when a failure is encountered while
    +   * ingesting.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent) + com.google.pubsub.v1.IngestionFailureEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.class, + com.google.pubsub.v1.IngestionFailureEvent.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + topic_ = ""; + errorMessage_ = ""; + if (cloudStorageFailureBuilder_ != null) { + cloudStorageFailureBuilder_.clear(); + } + if (awsMskFailureBuilder_ != null) { + awsMskFailureBuilder_.clear(); + } + if (azureEventHubsFailureBuilder_ != null) { + azureEventHubsFailureBuilder_.clear(); + } + if (confluentCloudFailureBuilder_ != null) { + confluentCloudFailureBuilder_.clear(); + } + failureCase_ = 0; + failure_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent build() { + com.google.pubsub.v1.IngestionFailureEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent result = + new com.google.pubsub.v1.IngestionFailureEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.IngestionFailureEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.topic_ = topic_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.IngestionFailureEvent result) { + result.failureCase_ = failureCase_; + result.failure_ = this.failure_; + if (failureCase_ == 3 && cloudStorageFailureBuilder_ != null) { + result.failure_ = cloudStorageFailureBuilder_.build(); + } + if (failureCase_ == 4 && awsMskFailureBuilder_ != null) { + result.failure_ = awsMskFailureBuilder_.build(); + } + if (failureCase_ == 5 && azureEventHubsFailureBuilder_ != null) { + result.failure_ = azureEventHubsFailureBuilder_.build(); + } + if (failureCase_ == 6 && confluentCloudFailureBuilder_ != null) { + result.failure_ = confluentCloudFailureBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent other) { + if (other == com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getFailureCase()) { + case CLOUD_STORAGE_FAILURE: + { + mergeCloudStorageFailure(other.getCloudStorageFailure()); + break; + } + case AWS_MSK_FAILURE: + { + mergeAwsMskFailure(other.getAwsMskFailure()); + break; + } + case AZURE_EVENT_HUBS_FAILURE: + { + mergeAzureEventHubsFailure(other.getAzureEventHubsFailure()); + break; + } + case CONFLUENT_CLOUD_FAILURE: + { + mergeConfluentCloudFailure(other.getConfluentCloudFailure()); + break; + } + case FAILURE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCloudStorageFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getAwsMskFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getAzureEventHubsFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getConfluentCloudFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int failureCase_ = 0; + private java.lang.Object failure_; + + public FailureCase getFailureCase() { + return FailureCase.forNumber(failureCase_); + } + + public Builder clearFailure() { failureCase_ = 0; failure_ = null; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; + private int bitField0_; + + private java.lang.Object topic_ = ""; + /** + * + * + *
    +     * Required. Name of the import topic. Format is:
    +     * projects/{project_name}/topics/{topic_name}.
    +     * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The topic. + */ + public java.lang.String getTopic() { + java.lang.Object ref = topic_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + topic_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Name of the import topic. Format is:
    +     * projects/{project_name}/topics/{topic_name}.
    +     * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for topic. + */ + public com.google.protobuf.ByteString getTopicBytes() { + java.lang.Object ref = topic_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + topic_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Name of the import topic. Format is:
    +     * projects/{project_name}/topics/{topic_name}.
    +     * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The topic to set. + * @return This builder for chaining. + */ + public Builder setTopic(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Name of the import topic. Format is:
    +     * projects/{project_name}/topics/{topic_name}.
    +     * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTopic() { + topic_ = getDefaultInstance().getTopic(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Name of the import topic. Format is:
    +     * projects/{project_name}/topics/{topic_name}.
    +     * 
    + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for topic to set. + * @return This builder for chaining. + */ + public Builder setTopicBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + topic_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + * + * + *
    +     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * 
    + * + * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> + cloudStorageFailureBuilder_; + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the cloudStorageFailure field is set. + */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance(); + public boolean hasCloudStorageFailure() { + return failureCase_ == 3; } - + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The cloudStorageFailure. + */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent build() { - com.google.pubsub.v1.IngestionFailureEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } else { + if (failureCase_ == 3) { + return cloudStorageFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); } - return result; } - - @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent result = - new com.google.pubsub.v1.IngestionFailureEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { + if (cloudStorageFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; + onChanged(); + } else { + cloudStorageFailureBuilder_.setMessage(value); } - buildPartialOneofs(result); - onBuilt(); - return result; + failureCase_ = 3; + return this; } - - private void buildPartial0(com.google.pubsub.v1.IngestionFailureEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.topic_ = topic_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.errorMessage_ = errorMessage_; + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder builderForValue) { + if (cloudStorageFailureBuilder_ == null) { + failure_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageFailureBuilder_.setMessage(builderForValue.build()); } + failureCase_ = 3; + return this; } - - private void buildPartialOneofs(com.google.pubsub.v1.IngestionFailureEvent result) { - result.failureCase_ = failureCase_; - result.failure_ = this.failure_; - if (failureCase_ == 3 && cloudStorageFailureBuilder_ != null) { - result.failure_ = cloudStorageFailureBuilder_.build(); + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCloudStorageFailure( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } + onChanged(); + } else { + if (failureCase_ == 3) { + cloudStorageFailureBuilder_.mergeFrom(value); + } else { + cloudStorageFailureBuilder_.setMessage(value); + } } + failureCase_ = 3; + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCloudStorageFailure() { + if (cloudStorageFailureBuilder_ == null) { + if (failureCase_ == 3) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } + } else { + if (failureCase_ == 3) { + failureCase_ = 0; + failure_ = null; + } + cloudStorageFailureBuilder_.clear(); + } + return this; } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder + getCloudStorageFailureBuilder() { + return getCloudStorageFailureFieldBuilder().getBuilder(); } - + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder + getCloudStorageFailureOrBuilder() { + if ((failureCase_ == 3) && (cloudStorageFailureBuilder_ != null)) { + return cloudStorageFailureBuilder_.getMessageOrBuilder(); + } else { + if (failureCase_ == 3) { + return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
    +     * Optional. Failure when ingesting from Cloud Storage.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> + getCloudStorageFailureFieldBuilder() { + if (cloudStorageFailureBuilder_ == null) { + if (!(failureCase_ == 3)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + cloudStorageFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_, + getParentForChildren(), + isClean()); + failure_ = null; + } + failureCase_ = 3; + onChanged(); + return cloudStorageFailureBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder> + awsMskFailureBuilder_; + /** + * + * + *
    +     * Optional. Failure when ingesting from Amazon MSK.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsMskFailure field is set. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public boolean hasAwsMskFailure() { + return failureCase_ == 4; } - + /** + * + * + *
    +     * Optional. Failure when ingesting from Amazon MSK.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsMskFailure. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.IngestionFailureEvent) { - return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent) other); + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskFailure() { + if (awsMskFailureBuilder_ == null) { + if (failureCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } else { - super.mergeFrom(other); - return this; + if (failureCase_ == 4) { + return awsMskFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } } - - public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent other) { - if (other == com.google.pubsub.v1.IngestionFailureEvent.getDefaultInstance()) return this; - if (!other.getTopic().isEmpty()) { - topic_ = other.topic_; - bitField0_ |= 0x00000001; + /** + * + * + *
    +     * Optional. Failure when ingesting from Amazon MSK.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsMskFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason value) { + if (awsMskFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; onChanged(); + } else { + awsMskFailureBuilder_.setMessage(value); } - if (!other.getErrorMessage().isEmpty()) { - errorMessage_ = other.errorMessage_; - bitField0_ |= 0x00000002; + failureCase_ = 4; + return this; + } + /** + * + * + *
    +     * Optional. Failure when ingesting from Amazon MSK.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsMskFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder builderForValue) { + if (awsMskFailureBuilder_ == null) { + failure_ = builderForValue.build(); onChanged(); + } else { + awsMskFailureBuilder_.setMessage(builderForValue.build()); } - switch (other.getFailureCase()) { - case CLOUD_STORAGE_FAILURE: - { - mergeCloudStorageFailure(other.getCloudStorageFailure()); - break; - } - case FAILURE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + failureCase_ = 4; return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - errorMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getCloudStorageFailureFieldBuilder().getBuilder(), extensionRegistry); - failureCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + /** + * + * + *
    +     * Optional. Failure when ingesting from Amazon MSK.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsMskFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason value) { + if (awsMskFailureBuilder_ == null) { + if (failureCase_ == 4 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } onChanged(); - } // finally + } else { + if (failureCase_ == 4) { + awsMskFailureBuilder_.mergeFrom(value); + } else { + awsMskFailureBuilder_.setMessage(value); + } + } + failureCase_ = 4; return this; } - - private int failureCase_ = 0; - private java.lang.Object failure_; - - public FailureCase getFailureCase() { - return FailureCase.forNumber(failureCase_); - } - - public Builder clearFailure() { - failureCase_ = 0; - failure_ = null; - onChanged(); + /** + * + * + *
    +     * Optional. Failure when ingesting from Amazon MSK.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsMskFailure() { + if (awsMskFailureBuilder_ == null) { + if (failureCase_ == 4) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } + } else { + if (failureCase_ == 4) { + failureCase_ = 0; + failure_ = null; + } + awsMskFailureBuilder_.clear(); + } return this; } - - private int bitField0_; - - private java.lang.Object topic_ = ""; /** * * *
    -     * Required. Name of the import topic. Format is:
    -     * projects/{project_name}/topics/{topic_name}.
    +     * Optional. Failure when ingesting from Amazon MSK.
          * 
    * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder + getAwsMskFailureBuilder() { + return getAwsMskFailureFieldBuilder().getBuilder(); + } + /** * - * @return The topic. + * + *
    +     * Optional. Failure when ingesting from Amazon MSK.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getTopic() { - java.lang.Object ref = topic_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - topic_ = s; - return s; + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder + getAwsMskFailureOrBuilder() { + if ((failureCase_ == 4) && (awsMskFailureBuilder_ != null)) { + return awsMskFailureBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + if (failureCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. Failure when ingesting from Amazon MSK.
    +     * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder> + getAwsMskFailureFieldBuilder() { + if (awsMskFailureBuilder_ == null) { + if (!(failureCase_ == 4)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + } + awsMskFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) failure_, + getParentForChildren(), + isClean()); + failure_ = null; } + failureCase_ = 4; + onChanged(); + return awsMskFailureBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder> + azureEventHubsFailureBuilder_; /** * * *
    -     * Required. Name of the import topic. Format is:
    -     * projects/{project_name}/topics/{topic_name}.
    +     * Optional. Failure when ingesting from Azure Event Hubs.
          * 
    * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for topic. + * @return Whether the azureEventHubsFailure field is set. */ - public com.google.protobuf.ByteString getTopicBytes() { - java.lang.Object ref = topic_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - topic_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public boolean hasAzureEventHubsFailure() { + return failureCase_ == 5; } /** * * *
    -     * Required. Name of the import topic. Format is:
    -     * projects/{project_name}/topics/{topic_name}.
    +     * Optional. Failure when ingesting from Azure Event Hubs.
          * 
    * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The topic to set. - * @return This builder for chaining. + * @return The azureEventHubsFailure. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + getAzureEventHubsFailure() { + if (azureEventHubsFailureBuilder_ == null) { + if (failureCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } else { + if (failureCase_ == 5) { + return azureEventHubsFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); } - topic_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } /** * * *
    -     * Required. Name of the import topic. Format is:
    -     * projects/{project_name}/topics/{topic_name}.
    +     * Optional. Failure when ingesting from Azure Event Hubs.
          * 
    * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearTopic() { - topic_ = getDefaultInstance().getTopic(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder setAzureEventHubsFailure( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason value) { + if (azureEventHubsFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; + onChanged(); + } else { + azureEventHubsFailureBuilder_.setMessage(value); + } + failureCase_ = 5; return this; } /** * * *
    -     * Required. Name of the import topic. Format is:
    -     * projects/{project_name}/topics/{topic_name}.
    +     * Optional. Failure when ingesting from Azure Event Hubs.
          * 
    * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for topic to set. - * @return This builder for chaining. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setAzureEventHubsFailure( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + builderForValue) { + if (azureEventHubsFailureBuilder_ == null) { + failure_ = builderForValue.build(); + onChanged(); + } else { + azureEventHubsFailureBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - topic_ = value; - bitField0_ |= 0x00000001; - onChanged(); + failureCase_ = 5; return this; } - - private java.lang.Object errorMessage_ = ""; /** * * *
    -     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * Optional. Failure when ingesting from Azure Event Hubs.
          * 
    * - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The errorMessage. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getErrorMessage() { - java.lang.Object ref = errorMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errorMessage_ = s; - return s; + public Builder mergeAzureEventHubsFailure( + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason value) { + if (azureEventHubsFailureBuilder_ == null) { + if (failureCase_ == 5 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } + onChanged(); } else { - return (java.lang.String) ref; + if (failureCase_ == 5) { + azureEventHubsFailureBuilder_.mergeFrom(value); + } else { + azureEventHubsFailureBuilder_.setMessage(value); + } } + failureCase_ = 5; + return this; } /** * * *
    -     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * Optional. Failure when ingesting from Azure Event Hubs.
          * 
    * - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for errorMessage. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getErrorMessageBytes() { - java.lang.Object ref = errorMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - errorMessage_ = b; - return b; + public Builder clearAzureEventHubsFailure() { + if (azureEventHubsFailureBuilder_ == null) { + if (failureCase_ == 5) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } } else { - return (com.google.protobuf.ByteString) ref; + if (failureCase_ == 5) { + failureCase_ = 0; + failure_ = null; + } + azureEventHubsFailureBuilder_.clear(); } + return this; } /** * * *
    -     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * Optional. Failure when ingesting from Azure Event Hubs.
          * 
    * - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The errorMessage to set. - * @return This builder for chaining. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setErrorMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - errorMessage_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + getAzureEventHubsFailureBuilder() { + return getAzureEventHubsFailureFieldBuilder().getBuilder(); } /** * * *
    -     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * Optional. Failure when ingesting from Azure Event Hubs.
          * 
    * - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearErrorMessage() { - errorMessage_ = getDefaultInstance().getErrorMessage(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder + getAzureEventHubsFailureOrBuilder() { + if ((failureCase_ == 5) && (azureEventHubsFailureBuilder_ != null)) { + return azureEventHubsFailureBuilder_.getMessageOrBuilder(); + } else { + if (failureCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } } /** * * *
    -     * Required. Error details explaining why ingestion to Pub/Sub has failed.
    +     * Optional. Failure when ingesting from Azure Event Hubs.
          * 
    * - * string error_message = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for errorMessage to set. - * @return This builder for chaining. + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder> + getAzureEventHubsFailureFieldBuilder() { + if (azureEventHubsFailureBuilder_ == null) { + if (!(failureCase_ == 5)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); + } + azureEventHubsFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) failure_, + getParentForChildren(), + isClean()); + failure_ = null; } - checkByteStringIsUtf8(value); - errorMessage_ = value; - bitField0_ |= 0x00000002; + failureCase_ = 5; onChanged(); - return this; + return azureEventHubsFailureBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> - cloudStorageFailureBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder> + confluentCloudFailureBuilder_; /** * * *
    -     * Optional. Failure when ingesting from Cloud Storage.
    +     * Optional. Failure when ingesting from Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the cloudStorageFailure field is set. + * @return Whether the confluentCloudFailure field is set. */ @java.lang.Override - public boolean hasCloudStorageFailure() { - return failureCase_ == 3; + public boolean hasConfluentCloudFailure() { + return failureCase_ == 6; } /** * * *
    -     * Optional. Failure when ingesting from Cloud Storage.
    +     * Optional. Failure when ingesting from Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The cloudStorageFailure. + * @return The confluentCloudFailure. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure() { - if (cloudStorageFailureBuilder_ == null) { - if (failureCase_ == 3) { - return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + getConfluentCloudFailure() { + if (confluentCloudFailureBuilder_ == null) { + if (failureCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_; } - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); } else { - if (failureCase_ == 3) { - return cloudStorageFailureBuilder_.getMessage(); + if (failureCase_ == 6) { + return confluentCloudFailureBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); } } /** * * *
    -     * Optional. Failure when ingesting from Cloud Storage.
    +     * Optional. Failure when ingesting from Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCloudStorageFailure( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { - if (cloudStorageFailureBuilder_ == null) { + public Builder setConfluentCloudFailure( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason value) { + if (confluentCloudFailureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failure_ = value; onChanged(); } else { - cloudStorageFailureBuilder_.setMessage(value); + confluentCloudFailureBuilder_.setMessage(value); } - failureCase_ = 3; + failureCase_ = 6; return this; } /** * * *
    -     * Optional. Failure when ingesting from Cloud Storage.
    +     * Optional. Failure when ingesting from Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCloudStorageFailure( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder builderForValue) { - if (cloudStorageFailureBuilder_ == null) { + public Builder setConfluentCloudFailure( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder + builderForValue) { + if (confluentCloudFailureBuilder_ == null) { failure_ = builderForValue.build(); onChanged(); } else { - cloudStorageFailureBuilder_.setMessage(builderForValue.build()); + confluentCloudFailureBuilder_.setMessage(builderForValue.build()); } - failureCase_ = 3; + failureCase_ = 6; return this; } /** * * *
    -     * Optional. Failure when ingesting from Cloud Storage.
    +     * Optional. Failure when ingesting from Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCloudStorageFailure( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure value) { - if (cloudStorageFailureBuilder_ == null) { - if (failureCase_ == 3 + public Builder mergeConfluentCloudFailure( + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason value) { + if (confluentCloudFailureBuilder_ == null) { + if (failureCase_ == 6 && failure_ - != com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + != com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason .getDefaultInstance()) { failure_ = - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_) + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + failure_) .mergeFrom(value) .buildPartial(); } else { @@ -3740,39 +9392,39 @@ public Builder mergeCloudStorageFailure( } onChanged(); } else { - if (failureCase_ == 3) { - cloudStorageFailureBuilder_.mergeFrom(value); + if (failureCase_ == 6) { + confluentCloudFailureBuilder_.mergeFrom(value); } else { - cloudStorageFailureBuilder_.setMessage(value); + confluentCloudFailureBuilder_.setMessage(value); } } - failureCase_ = 3; + failureCase_ = 6; return this; } /** * * *
    -     * Optional. Failure when ingesting from Cloud Storage.
    +     * Optional. Failure when ingesting from Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCloudStorageFailure() { - if (cloudStorageFailureBuilder_ == null) { - if (failureCase_ == 3) { + public Builder clearConfluentCloudFailure() { + if (confluentCloudFailureBuilder_ == null) { + if (failureCase_ == 6) { failureCase_ = 0; failure_ = null; onChanged(); } } else { - if (failureCase_ == 3) { + if (failureCase_ == 6) { failureCase_ = 0; failure_ = null; } - cloudStorageFailureBuilder_.clear(); + confluentCloudFailureBuilder_.clear(); } return this; } @@ -3780,74 +9432,76 @@ public Builder clearCloudStorageFailure() { * * *
    -     * Optional. Failure when ingesting from Cloud Storage.
    +     * Optional. Failure when ingesting from Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder - getCloudStorageFailureBuilder() { - return getCloudStorageFailureFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder + getConfluentCloudFailureBuilder() { + return getConfluentCloudFailureFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Failure when ingesting from Cloud Storage.
    +     * Optional. Failure when ingesting from Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder - getCloudStorageFailureOrBuilder() { - if ((failureCase_ == 3) && (cloudStorageFailureBuilder_ != null)) { - return cloudStorageFailureBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder + getConfluentCloudFailureOrBuilder() { + if ((failureCase_ == 6) && (confluentCloudFailureBuilder_ != null)) { + return confluentCloudFailureBuilder_.getMessageOrBuilder(); } else { - if (failureCase_ == 3) { - return (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_; + if (failureCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_; } - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); } } /** * * *
    -     * Optional. Failure when ingesting from Cloud Storage.
    +     * Optional. Failure when ingesting from Confluent Cloud.
          * 
    * * - * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> - getCloudStorageFailureFieldBuilder() { - if (cloudStorageFailureBuilder_ == null) { - if (!(failureCase_ == 3)) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder> + getConfluentCloudFailureFieldBuilder() { + if (confluentCloudFailureBuilder_ == null) { + if (!(failureCase_ == 6)) { failure_ = - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + .getDefaultInstance(); } - cloudStorageFailureBuilder_ = + confluentCloudFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) failure_, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_, getParentForChildren(), isClean()); failure_ = null; } - failureCase_ = 3; + failureCase_ = 6; onChanged(); - return cloudStorageFailureBuilder_; + return confluentCloudFailureBuilder_; } @java.lang.Override diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index af081e3d72e9..b488636cf8f8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -118,5 +118,131 @@ public interface IngestionFailureEventOrBuilder com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder getCloudStorageFailureOrBuilder(); + /** + * + * + *
    +   * Optional. Failure when ingesting from Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsMskFailure field is set. + */ + boolean hasAwsMskFailure(); + /** + * + * + *
    +   * Optional. Failure when ingesting from Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsMskFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskFailure(); + /** + * + * + *
    +   * Optional. Failure when ingesting from Amazon MSK.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder + getAwsMskFailureOrBuilder(); + + /** + * + * + *
    +   * Optional. Failure when ingesting from Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the azureEventHubsFailure field is set. + */ + boolean hasAzureEventHubsFailure(); + /** + * + * + *
    +   * Optional. Failure when ingesting from Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The azureEventHubsFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getAzureEventHubsFailure(); + /** + * + * + *
    +   * Optional. Failure when ingesting from Azure Event Hubs.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder + getAzureEventHubsFailureOrBuilder(); + + /** + * + * + *
    +   * Optional. Failure when ingesting from Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the confluentCloudFailure field is set. + */ + boolean hasConfluentCloudFailure(); + /** + * + * + *
    +   * Optional. Failure when ingesting from Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confluentCloudFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getConfluentCloudFailure(); + /** + * + * + *
    +   * Optional. Failure when ingesting from Confluent Cloud.
    +   * 
    + * + * + * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder + getConfluentCloudFailureOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.FailureCase getFailureCase(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 3d406f6bffd5..0ab2ac7a9923 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 2fa49de7d390..681c829bdfed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 50e5dd19d3f9..82638844890d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index cadb88f17f74..de9f891d811a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index d1c082ca8a2b..0c98c0d844a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 571e88b81bdf..050de522923f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 581624bcc83e..1ac5143e8d6d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index b2145b6ac0ec..dfe71b9a24a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 7a1cf826a256..55485115b7a4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 1fce5f0b0b21..e8711c1ef9e2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 74fed6e23bf2..bc58cb7c8c0c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index d53121a32f9a..5a20d8d2779a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index c2c66a388029..846b75ce1159 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 3dd31b9e75ed..ff862e1c3b00 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index c0ce6fc00ffa..0a3209dd1abf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 20b021f93800..579430360dbd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index f39c3c4b64d5..bf2ba67382d4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 6844d32f038f..6eddb25e0fd8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 1a8092115baa..c57f292fc08f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 5b80ee609058..c9cb3d6b1a70 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 02163037924f..d9420dffc6e6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index f25ea7858af7..d389accaffe8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index dcb6c60f474d..08dd87b28b40 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 3f6ad98e1b30..279a179a60f7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index c36f242a25f4..592003e4382a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 267473b951d2..6334aae4c59b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index aca359bbfe24..1c54ae35d89b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 29832578ed26..ef5341c96726 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 59aa717bdb26..5846d2918b6c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index fb791a3306c9..e0e236c5e1f0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index b9417cac9906..e03117116f39 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index c148ebc72a00..ede114b6e90b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 54cab839b9a5..74224f5d1179 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 29779beff5f5..8ac64d9d5014 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java index a63c3a4df038..6703c9690cb0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java index fbaf39e0050d..e03a44ad40e2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index 64195e3fcec1..4079c54b550d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 3d14d1cb70a0..b840d49fca3b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 612be7a12cc8..9a2d623ae6d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index d9a71ff8bfba..c39c3e5671b6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 0b9a7179062b..d5a3f1c93912 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index b97bf7147167..c2480df873aa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 763d033d3a5c..0e159683a21d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 28c7f6b27e68..57f1e97fc79a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -60,6 +60,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -80,6 +92,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -340,406 +364,471 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "apis.com/Schema\0221\n\010encoding\030\002 \001(\0162\032.goog" + "le.pubsub.v1.EncodingB\003\340A\001\022\036\n\021first_revi" + "sion_id\030\003 \001(\tB\003\340A\001\022\035\n\020last_revision_id\030\004" - + " \001(\tB\003\340A\001\"\251\013\n\033IngestionDataSourceSetting" + + " \001(\tB\003\340A\001\"\310\027\n\033IngestionDataSourceSetting" + "s\022T\n\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" + "1.IngestionDataSourceSettings.AwsKinesis" + "B\003\340A\001H\000\022X\n\rcloud_storage\030\002 \001(\0132:.google." + "pubsub.v1.IngestionDataSourceSettings.Cl" - + "oudStorageB\003\340A\001H\000\022K\n\026platform_logs_setti" - + "ngs\030\004 \001(\0132&.google.pubsub.v1.PlatformLog" - + "sSettingsB\003\340A\001\032\352\002\n\nAwsKinesis\022R\n\005state\030\001" - + " \001(\0162>.google.pubsub.v1.IngestionDataSou" - + "rceSettings.AwsKinesis.StateB\003\340A\003\022\027\n\nstr" - + "eam_arn\030\002 \001(\tB\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\t" - + "B\003\340A\002\022\031\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_" - + "service_account\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINES" - + "IS_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMIS" - + "SION_DENIED\020\003\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022C" - + "ONSUMER_NOT_FOUND\020\005\032\225\006\n\014CloudStorage\022T\n\005" - + "state\030\001 \001(\0162@.google.pubsub.v1.Ingestion" - + "DataSourceSettings.CloudStorage.StateB\003\340" - + "A\003\022\023\n\006bucket\030\002 \001(\tB\003\340A\001\022a\n\013text_format\030\003" - + " \001(\0132E.google.pubsub.v1.IngestionDataSou" - + "rceSettings.CloudStorage.TextFormatB\003\340A\001" - + "H\000\022a\n\013avro_format\030\004 \001(\0132E.google.pubsub." - + "v1.IngestionDataSourceSettings.CloudStor" - + "age.AvroFormatB\003\340A\001H\000\022n\n\022pubsub_avro_for" - + "mat\030\005 \001(\0132K.google.pubsub.v1.IngestionDa" - + "taSourceSettings.CloudStorage.PubSubAvro" - + "FormatB\003\340A\001H\000\022C\n\032minimum_object_create_t" - + "ime\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\001\022\027\n\nmatch_glob\030\t \001(\tB\003\340A\001\0327\n\nTextForma" - + "t\022\033\n\tdelimiter\030\001 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n_delim" - + "iter\032\014\n\nAvroFormat\032\022\n\020PubSubAvroFormat\"\232" - + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" - + "E\020\001\022#\n\037CLOUD_STORAGE_PERMISSION_DENIED\020\002" - + "\022\035\n\031PUBLISH_PERMISSION_DENIED\020\003\022\024\n\020BUCKE" - + "T_NOT_FOUND\020\004\022\024\n\020TOO_MANY_OBJECTS\020\005B\016\n\014i" - + "nput_formatB\010\n\006source\"\277\001\n\024PlatformLogsSe" - + "ttings\022F\n\010severity\030\001 \001(\0162/.google.pubsub" - + ".v1.PlatformLogsSettings.SeverityB\003\340A\001\"_" - + "\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010" - + "DISABLED\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\013\n\007WARNI" - + "NG\020\004\022\t\n\005ERROR\020\005\"\221\004\n\025IngestionFailureEven" - + "t\022\022\n\005topic\030\001 \001(\tB\003\340A\002\022\032\n\rerror_message\030\002" - + " \001(\tB\003\340A\002\022a\n\025cloud_storage_failure\030\003 \001(\013" - + "2;.google.pubsub.v1.IngestionFailureEven" - + "t.CloudStorageFailureB\003\340A\001H\000\032\024\n\022ApiViola" - + "tionReason\032\023\n\021AvroFailureReason\032\256\002\n\023Clou" - + "dStorageFailure\022\023\n\006bucket\030\001 \001(\tB\003\340A\001\022\030\n\013" - + "object_name\030\002 \001(\tB\003\340A\001\022\036\n\021object_generat" - + "ion\030\003 \001(\003B\003\340A\001\022]\n\023avro_failure_reason\030\005 " - + "\001(\01329.google.pubsub.v1.IngestionFailureE" - + "vent.AvroFailureReasonB\003\340A\001H\000\022_\n\024api_vio" - + "lation_reason\030\006 \001(\0132:.google.pubsub.v1.I" - + "ngestionFailureEvent.ApiViolationReasonB" - + "\003\340A\001H\000B\010\n\006reasonB\t\n\007failure\"\272\005\n\005Topic\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.googl" - + "e.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n\026me" - + "ssage_storage_policy\030\003 \001(\0132&.google.pubs" - + "ub.v1.MessageStoragePolicyB\003\340A\001\022\031\n\014kms_k" - + "ey_name\030\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 " - + "\001(\0132 .google.pubsub.v1.SchemaSettingsB\003\340" - + "A\001\022\032\n\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032messag" - + "e_retention_duration\030\010 \001(\0132\031.google.prot" - + "obuf.DurationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.goog" - + "le.pubsub.v1.Topic.StateB\003\340A\003\022Z\n\036ingesti" - + "on_data_source_settings\030\n \001(\0132-.google.p" - + "ubsub.v1.IngestionDataSourceSettingsB\003\340A" - + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" - + "\022\n\n\006ACTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR" - + "\020\002:T\352AQ\n\033pubsub.googleapis.com/Topic\022!pr" - + "ojects/{project}/topics/{topic}\022\017_delete" - + "d-topic_\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014" - + "B\003\340A\001\022H\n\nattributes\030\002 \003(\0132/.google.pubsu" - + "b.v1.PubsubMessage.AttributesEntryB\003\340A\001\022" - + "\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(" - + "\0132\032.google.protobuf.Timestamp\022\031\n\014orderin" - + "g_key\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicR" - + "equest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.go" - + "ogleapis.com/Topic\"w\n\022UpdateTopicRequest" - + "\022+\n\005topic\030\001 \001(\0132\027.google.pubsub.v1.Topic" - + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n" - + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis." - + "com/Topic\0226\n\010messages\030\002 \003(\0132\037.google.pub" - + "sub.v1.PubsubMessageB\003\340A\002\"+\n\017PublishResp" - + "onse\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListT" - + "opicsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" - + "loudresourcemanager.googleapis.com/Proje" - + "ct\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" - + "\030\003 \001(\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006top" - + "ics\030\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022" - + "\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTo" - + "picSubscriptionsRequest\0222\n\005topic\030\001 \001(\tB#" - + "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\022\026\n\tp" - + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" - + "\003\340A\001\"\201\001\n\036ListTopicSubscriptionsResponse\022" - + "A\n\rsubscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\022\034\n\017next_page_" - + "token\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsR" + + "oudStorageB\003\340A\001H\000\022]\n\020azure_event_hubs\030\003 " + + "\001(\0132<.google.pubsub.v1.IngestionDataSour" + + "ceSettings.AzureEventHubsB\003\340A\001H\000\022L\n\007aws_" + + "msk\030\005 \001(\01324.google.pubsub.v1.IngestionDa" + + "taSourceSettings.AwsMskB\003\340A\001H\000\022\\\n\017conflu" + + "ent_cloud\030\006 \001(\0132<.google.pubsub.v1.Inges" + + "tionDataSourceSettings.ConfluentCloudB\003\340" + + "A\001H\000\022K\n\026platform_logs_settings\030\004 \001(\0132&.g" + + "oogle.pubsub.v1.PlatformLogsSettingsB\003\340A" + + "\001\032\352\002\n\nAwsKinesis\022R\n\005state\030\001 \001(\0162>.google" + + ".pubsub.v1.IngestionDataSourceSettings.A" + + "wsKinesis.StateB\003\340A\003\022\027\n\nstream_arn\030\002 \001(\t" + + "B\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031\n\014aws_" + + "role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_service_accou" + + "nt\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINESIS_PERMISSION" + + "_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DENIED\020\003" + + "\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022CONSUMER_NOT_F" + + "OUND\020\005\032\225\006\n\014CloudStorage\022T\n\005state\030\001 \001(\0162@" + + ".google.pubsub.v1.IngestionDataSourceSet" + + "tings.CloudStorage.StateB\003\340A\003\022\023\n\006bucket\030" + + "\002 \001(\tB\003\340A\001\022a\n\013text_format\030\003 \001(\0132E.google" + + ".pubsub.v1.IngestionDataSourceSettings.C" + + "loudStorage.TextFormatB\003\340A\001H\000\022a\n\013avro_fo" + + "rmat\030\004 \001(\0132E.google.pubsub.v1.IngestionD" + + "ataSourceSettings.CloudStorage.AvroForma" + + "tB\003\340A\001H\000\022n\n\022pubsub_avro_format\030\005 \001(\0132K.g" + + "oogle.pubsub.v1.IngestionDataSourceSetti" + + "ngs.CloudStorage.PubSubAvroFormatB\003\340A\001H\000" + + "\022C\n\032minimum_object_create_time\030\006 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\001\022\027\n\nmatch_g" + + "lob\030\t \001(\tB\003\340A\001\0327\n\nTextFormat\022\033\n\tdelimite" + + "r\030\001 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n_delimiter\032\014\n\nAvroF" + + "ormat\032\022\n\020PubSubAvroFormat\"\232\001\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022#\n\037CLOUD_" + + "STORAGE_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_P" + + "ERMISSION_DENIED\020\003\022\024\n\020BUCKET_NOT_FOUND\020\004" + + "\022\024\n\020TOO_MANY_OBJECTS\020\005B\016\n\014input_format\032\377" + + "\003\n\016AzureEventHubs\022V\n\005state\030\001 \001(\0162B.googl" + + "e.pubsub.v1.IngestionDataSourceSettings." + + "AzureEventHubs.StateB\003\340A\003\022\033\n\016resource_gr" + + "oup\030\002 \001(\tB\003\340A\001\022\026\n\tnamespace\030\003 \001(\tB\003\340A\001\022\026" + + "\n\tevent_hub\030\004 \001(\tB\003\340A\001\022\026\n\tclient_id\030\005 \001(" + + "\tB\003\340A\001\022\026\n\ttenant_id\030\006 \001(\tB\003\340A\001\022\034\n\017subscr" + + "iption_id\030\007 \001(\tB\003\340A\001\022 \n\023gcp_service_acco" + + "unt\030\010 \001(\tB\003\340A\001\"\327\001\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\n\n\006ACTIVE\020\001\022 \n\034EVENT_HUBS_PERMIS" + + "SION_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DENI" + + "ED\020\003\022\027\n\023NAMESPACE_NOT_FOUND\020\004\022\027\n\023EVENT_H" + + "UB_NOT_FOUND\020\005\022\032\n\026SUBSCRIPTION_NOT_FOUND" + + "\020\006\022\034\n\030RESOURCE_GROUP_NOT_FOUND\020\007\032\326\002\n\006Aws" + + "Msk\022N\n\005state\030\001 \001(\0162:.google.pubsub.v1.In" + + "gestionDataSourceSettings.AwsMsk.StateB\003" + + "\340A\003\022\030\n\013cluster_arn\030\002 \001(\tB\003\340A\002\022\022\n\005topic\030\003" + + " \001(\tB\003\340A\002\022\031\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023" + + "gcp_service_account\030\005 \001(\tB\003\340A\002\"\220\001\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\031\n\025M" + + "SK_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMIS" + + "SION_DENIED\020\003\022\025\n\021CLUSTER_NOT_FOUND\020\004\022\023\n\017" + + "TOPIC_NOT_FOUND\020\005\032\266\003\n\016ConfluentCloud\022V\n\005" + + "state\030\001 \001(\0162B.google.pubsub.v1.Ingestion" + + "DataSourceSettings.ConfluentCloud.StateB" + + "\003\340A\003\022\035\n\020bootstrap_server\030\002 \001(\tB\003\340A\002\022\027\n\nc" + + "luster_id\030\003 \001(\tB\003\340A\002\022\022\n\005topic\030\004 \001(\tB\003\340A\002" + + "\022\035\n\020identity_pool_id\030\005 \001(\tB\003\340A\002\022 \n\023gcp_s" + + "ervice_account\030\006 \001(\tB\003\340A\002\"\276\001\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022%\n!CONFLU" + + "ENT_CLOUD_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH" + + "_PERMISSION_DENIED\020\003\022 \n\034UNREACHABLE_BOOT" + + "STRAP_SERVER\020\004\022\025\n\021CLUSTER_NOT_FOUND\020\005\022\023\n" + + "\017TOPIC_NOT_FOUND\020\006B\010\n\006source\"\277\001\n\024Platfor" + + "mLogsSettings\022F\n\010severity\030\001 \001(\0162/.google" + + ".pubsub.v1.PlatformLogsSettings.Severity" + + "B\003\340A\001\"_\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIE" + + "D\020\000\022\014\n\010DISABLED\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\013" + + "\n\007WARNING\020\004\022\t\n\005ERROR\020\005\"\211\014\n\025IngestionFail" + + "ureEvent\022\022\n\005topic\030\001 \001(\tB\003\340A\002\022\032\n\rerror_me" + + "ssage\030\002 \001(\tB\003\340A\002\022a\n\025cloud_storage_failur" + + "e\030\003 \001(\0132;.google.pubsub.v1.IngestionFail" + + "ureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n\017a" + + "ws_msk_failure\030\004 \001(\0132;.google.pubsub.v1." + + "IngestionFailureEvent.AwsMskFailureReaso" + + "nB\003\340A\001H\000\022l\n\030azure_event_hubs_failure\030\005 \001" + + "(\0132C.google.pubsub.v1.IngestionFailureEv" + + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k" + + "\n\027confluent_cloud_failure\030\006 \001(\0132C.google" + + ".pubsub.v1.IngestionFailureEvent.Conflue" + + "ntCloudFailureReasonB\003\340A\001H\000\032\024\n\022ApiViolat" + + "ionReason\032\023\n\021AvroFailureReason\032\256\002\n\023Cloud" + + "StorageFailure\022\023\n\006bucket\030\001 \001(\tB\003\340A\001\022\030\n\013o" + + "bject_name\030\002 \001(\tB\003\340A\001\022\036\n\021object_generati" + + "on\030\003 \001(\003B\003\340A\001\022]\n\023avro_failure_reason\030\005 \001" + + "(\01329.google.pubsub.v1.IngestionFailureEv" + + "ent.AvroFailureReasonB\003\340A\001H\000\022_\n\024api_viol" + + "ation_reason\030\006 \001(\0132:.google.pubsub.v1.In" + + "gestionFailureEvent.ApiViolationReasonB\003" + + "\340A\001H\000B\010\n\006reason\032\344\001\n\023AwsMskFailureReason\022" + + "\030\n\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n\013kafka_topic" + + "\030\002 \001(\tB\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023" + + "\n\006offset\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_rea" + + "son\030\005 \001(\0132:.google.pubsub.v1.IngestionFa" + + "ilureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n\006" + + "reason\032\350\001\n\033AzureEventHubsFailureReason\022\026" + + "\n\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n\tevent_hub\030\002 \001(" + + "\tB\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n\006off" + + "set\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_reason\030\005" + + " \001(\0132:.google.pubsub.v1.IngestionFailure" + + "Event.ApiViolationReasonB\003\340A\001H\000B\010\n\006reaso" + + "n\032\353\001\n\033ConfluentCloudFailureReason\022\027\n\nclu" + + "ster_id\030\001 \001(\tB\003\340A\001\022\030\n\013kafka_topic\030\002 \001(\tB" + + "\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n\006offse" + + "t\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_reason\030\005 \001" + + "(\0132:.google.pubsub.v1.IngestionFailureEv" + + "ent.ApiViolationReasonB\003\340A\001H\000B\010\n\006reasonB" + + "\t\n\007failure\"\272\005\n\005Topic\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" + + "8\n\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic" + + ".LabelsEntryB\003\340A\001\022K\n\026message_storage_pol" + + "icy\030\003 \001(\0132&.google.pubsub.v1.MessageStor" + + "agePolicyB\003\340A\001\022\031\n\014kms_key_name\030\005 \001(\tB\003\340A" + + "\001\022>\n\017schema_settings\030\006 \001(\0132 .google.pubs" + + "ub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsatisfies_p" + + "zs\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_durat" + + "ion\030\010 \001(\0132\031.google.protobuf.DurationB\003\340A" + + "\001\0221\n\005state\030\t \001(\0162\035.google.pubsub.v1.Topi" + + "c.StateB\003\340A\003\022Z\n\036ingestion_data_source_se" + + "ttings\030\n \001(\0132-.google.pubsub.v1.Ingestio" + + "nDataSourceSettingsB\003\340A\001\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030I" + + "NGESTION_RESOURCE_ERROR\020\002:T\352AQ\n\033pubsub.g" + + "oogleapis.com/Topic\022!projects/{project}/" + + "topics/{topic}\022\017_deleted-topic_\"\200\002\n\rPubs" + + "ubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001\022H\n\nattribut" + + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" + + "e.AttributesEntryB\003\340A\001\022\022\n\nmessage_id\030\003 \001" + + "(\t\0220\n\014publish_time\030\004 \001(\0132\032.google.protob" + + "uf.Timestamp\022\031\n\014ordering_key\030\005 \001(\tB\003\340A\001\032" + + "1\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005topic\030\001" + + " \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topi" + + "c\"w\n\022UpdateTopicRequest\022+\n\005topic\030\001 \001(\0132\027" + + ".google.pubsub.v1.TopicB\003\340A\002\0224\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002" + + "\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\010mess" + + "ages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMess" + + "ageB\003\340A\002\"+\n\017PublishResponse\022\030\n\013message_i" + + "ds\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopicsRequest\022D\n\007p" + + "roject\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanag" + + "er.googleapis.com/Project\022\026\n\tpage_size\030\002" + + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"`\n\022Li" + + "stTopicsResponse\022,\n\006topics\030\001 \003(\0132\027.googl" + + "e.pubsub.v1.TopicB\003\340A\001\022\034\n\017next_page_toke" + + "n\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSubscriptionsR" + "equest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.go" + "ogleapis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopic" - + "SnapshotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A" - + "\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022Delet" - + "eTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pu" - + "bsub.googleapis.com/Topic\"]\n\031DetachSubsc" - + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\"\034\n\032DetachSubscriptionResponse\"\253\n\n\014Subsc" - + "ription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(" - + "\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226" - + "\n\013push_config\030\004 \001(\0132\034.google.pubsub.v1.P" - + "ushConfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132" - + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G" - + "\n\024cloud_storage_config\030\026 \001(\0132$.google.pu" - + "bsub.v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_d" - + "eadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_ack" - + "ed_messages\030\007 \001(\010B\003\340A\001\022B\n\032message_retent" - + "ion_duration\030\010 \001(\0132\031.google.protobuf.Dur" - + "ationB\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubs" - + "ub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n\027e" - + "nable_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021exp" - + "iration_policy\030\013 \001(\0132\".google.pubsub.v1." - + "ExpirationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340" - + "A\001\022C\n\022dead_letter_policy\030\r \001(\0132\".google." - + "pubsub.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry" - + "_policy\030\016 \001(\0132\035.google.pubsub.v1.RetryPo" - + "licyB\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enab" - + "le_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n t" - + "opic_message_retention_duration\030\021 \001(\0132\031." - + "google.protobuf.DurationB\003\340A\003\0228\n\005state\030\023" - + " \001(\0162$.google.pubsub.v1.Subscription.Sta" - + "teB\003\340A\003\022i\n\037analytics_hub_subscription_in" - + "fo\030\027 \001(\0132;.google.pubsub.v1.Subscription" - + ".AnalyticsHubSubscriptionInfoB\003\340A\003\032O\n\034An" - + "alyticsHubSubscriptionInfo\022\024\n\007listing\030\001 " - + "\001(\tB\003\340A\001\022\031\n\014subscription\030\002 \001(\tB\003\340A\001\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006AC" - + "TIVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:X\352AU\n\"pubsub." - + "googleapis.com/Subscription\022/projects/{p" - + "roject}/subscriptions/{subscription}\"\177\n\013" - + "RetryPolicy\0227\n\017minimum_backoff\030\001 \001(\0132\031.g" - + "oogle.protobuf.DurationB\003\340A\001\0227\n\017maximum_" - + "backoff\030\002 \001(\0132\031.google.protobuf.Duration" - + "B\003\340A\001\"V\n\020DeadLetterPolicy\022\036\n\021dead_letter" - + "_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_delivery_attemp" - + "ts\030\002 \001(\005B\003\340A\001\"?\n\020ExpirationPolicy\022+\n\003ttl" - + "\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232" - + "\004\n\nPushConfig\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A" - + "\001\022E\n\nattributes\030\002 \003(\0132,.google.pubsub.v1" - + ".PushConfig.AttributesEntryB\003\340A\001\022A\n\noidc" - + "_token\030\003 \001(\0132&.google.pubsub.v1.PushConf" - + "ig.OidcTokenB\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 " - + "\001(\0132*.google.pubsub.v1.PushConfig.Pubsub" - + "WrapperB\003\340A\001H\001\022A\n\nno_wrapper\030\005 \001(\0132&.goo" - + "gle.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H" - + "\001\032F\n\tOidcToken\022\"\n\025service_account_email\030" - + "\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPub" - + "subWrapper\032(\n\tNoWrapper\022\033\n\016write_metadat" - + "a\030\001 \001(\010B\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n\025authenticatio" - + "n_methodB\t\n\007wrapper\"\216\003\n\016BigQueryConfig\022\022" - + "\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_topic_schema\030\002" - + " \001(\010B\003\340A\001\022\033\n\016write_metadata\030\003 \001(\010B\003\340A\001\022 " - + "\n\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n\005stat" - + "e\030\005 \001(\0162&.google.pubsub.v1.BigQueryConfi" - + "g.StateB\003\340A\003\022\035\n\020use_table_schema\030\006 \001(\010B\003" - + "\340A\001\022\"\n\025service_account_email\030\007 \001(\tB\003\340A\001\"" - + "\212\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTI" - + "VE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND" - + "\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n\037IN_TRANSIT_LO" - + "CATION_RESTRICTION\020\005\"\351\005\n\022CloudStorageCon" - + "fig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034\n\017filename_pre" - + "fix\030\002 \001(\tB\003\340A\001\022\034\n\017filename_suffix\030\003 \001(\tB" - + "\003\340A\001\022%\n\030filename_datetime_format\030\n \001(\tB\003" - + "\340A\001\022K\n\013text_config\030\004 \001(\0132/.google.pubsub" - + ".v1.CloudStorageConfig.TextConfigB\003\340A\001H\000" - + "\022K\n\013avro_config\030\005 \001(\0132/.google.pubsub.v1" - + ".CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" - + "\014max_duration\030\006 \001(\0132\031.google.protobuf.Du" - + "rationB\003\340A\001\022\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014m" - + "ax_messages\030\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*." - + "google.pubsub.v1.CloudStorageConfig.Stat" - + "eB\003\340A\003\022\"\n\025service_account_email\030\013 \001(\tB\003\340" - + "A\001\032\014\n\nTextConfig\032H\n\nAvroConfig\022\033\n\016write_" - + "metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use_topic_schema\030" - + "\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r" - + "\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSIT_LOCATION_RES" - + "TRICTION\020\004\022\023\n\017SCHEMA_MISMATCH\020\005B\017\n\routpu" - + "t_format\"|\n\017ReceivedMessage\022\023\n\006ack_id\030\001 " - + "\001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132\037.google.pubsu" - + "b.v1.PubsubMessageB\003\340A\001\022\035\n\020delivery_atte" - + "mpt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubscriptionRequest" + + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\036ListTopi" + + "cSubscriptionsResponse\022A\n\rsubscriptions\030" + + "\001 \003(\tB*\340A\001\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" + + "\200\001\n\031ListTopicSnapshotsRequest\0222\n\005topic\030\001" + + " \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topi" + + "c\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030" + + "\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnapshotsResponse" + + "\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017next_page_to" + + "ken\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopicRequest\0222\n\005" + + "topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" + + "om/Topic\"]\n\031DetachSubscriptionRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" + + "leapis.com/Subscription\"\034\n\032DetachSubscri" + + "ptionResponse\"\253\n\n\014Subscription\022\021\n\004name\030\001" + + " \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub" + + ".googleapis.com/Topic\0226\n\013push_config\030\004 \001" + + "(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + + "\017bigquery_config\030\022 \001(\0132 .google.pubsub.v" + + "1.BigQueryConfigB\003\340A\001\022G\n\024cloud_storage_c" + + "onfig\030\026 \001(\0132$.google.pubsub.v1.CloudStor" + + "ageConfigB\003\340A\001\022!\n\024ack_deadline_seconds\030\005" + + " \001(\005B\003\340A\001\022\"\n\025retain_acked_messages\030\007 \001(\010" + + "B\003\340A\001\022B\n\032message_retention_duration\030\010 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001\022?\n\006lab" + + "els\030\t \003(\0132*.google.pubsub.v1.Subscriptio" + + "n.LabelsEntryB\003\340A\001\022$\n\027enable_message_ord" + + "ering\030\n \001(\010B\003\340A\001\022B\n\021expiration_policy\030\013 " + + "\001(\0132\".google.pubsub.v1.ExpirationPolicyB" + + "\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n\022dead_letter" + + "_policy\030\r \001(\0132\".google.pubsub.v1.DeadLet" + + "terPolicyB\003\340A\001\0228\n\014retry_policy\030\016 \001(\0132\035.g" + + "oogle.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n\010deta" + + "ched\030\017 \001(\010B\003\340A\001\022)\n\034enable_exactly_once_d" + + "elivery\030\020 \001(\010B\003\340A\001\022H\n topic_message_rete" + + "ntion_duration\030\021 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\003\0228\n\005state\030\023 \001(\0162$.google.pub" + + "sub.v1.Subscription.StateB\003\340A\003\022i\n\037analyt" + + "ics_hub_subscription_info\030\027 \001(\0132;.google" + + ".pubsub.v1.Subscription.AnalyticsHubSubs" + + "criptionInfoB\003\340A\003\032O\n\034AnalyticsHubSubscri" + + "ptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014subsc" + + "ription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOURC" + + "E_ERROR\020\002:X\352AU\n\"pubsub.googleapis.com/Su" + + "bscription\022/projects/{project}/subscript" + + "ions/{subscription}\"\177\n\013RetryPolicy\0227\n\017mi" + + "nimum_backoff\030\001 \001(\0132\031.google.protobuf.Du" + + "rationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(\0132\031.g" + + "oogle.protobuf.DurationB\003\340A\001\"V\n\020DeadLett" + + "erPolicy\022\036\n\021dead_letter_topic\030\001 \001(\tB\003\340A\001" + + "\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A\001\"?\n\020" + + "ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.google.p" + + "rotobuf.DurationB\003\340A\001\"\232\004\n\nPushConfig\022\032\n\r" + + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattributes\030\002" + + " \003(\0132,.google.pubsub.v1.PushConfig.Attri" + + "butesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\0132&.go" + + "ogle.pubsub.v1.PushConfig.OidcTokenB\003\340A\001" + + "H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google.pubs" + + "ub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n" + + "\nno_wrapper\030\005 \001(\0132&.google.pubsub.v1.Pus" + + "hConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcToken\022\"\n" + + "\025service_account_email\030\001 \001(\tB\003\340A\001\022\025\n\010aud" + + "ience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(\n\tNoW" + + "rapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\0321\n\017A" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001B\027\n\025authentication_methodB\t\n\007wrapp" + + "er\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(\tB\003\340A" + + "\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n\016writ" + + "e_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unknown_fi" + + "elds\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.google." + + "pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n\020u" + + "se_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025service_ac" + + "count_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSIO" + + "N_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISM" + + "ATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTRICTIO" + + "N\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucket\030\001 \001" + + "(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n" + + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_" + + "datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_confi" + + "g\030\004 \001(\0132/.google.pubsub.v1.CloudStorageC" + + "onfig.TextConfigB\003\340A\001H\000\022K\n\013avro_config\030\005" + + " \001(\0132/.google.pubsub.v1.CloudStorageConf" + + "ig.AvroConfigB\003\340A\001H\000\0224\n\014max_duration\030\006 \001" + + "(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n\tma" + + "x_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030\010 \001(\003" + + "B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1." + + "CloudStorageConfig.StateB\003\340A\003\022\"\n\025service" + + "_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032" + + "H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340" + + "A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005St" + + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025" + + "\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037" + + "IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n\017SCH" + + "EMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017Recei" + + "vedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007messa" + + "ge\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessag" + + "eB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" + + "\026GetSubscriptionRequest\022@\n\014subscription\030" + + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\"\214\001\n\031UpdateSubscriptionRequest\022" + + "9\n\014subscription\030\001 \001(\0132\036.google.pubsub.v1" + + ".SubscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030Lis" + + "tSubscriptionsRequest\022D\n\007project\030\001 \001(\tB3" + + "\340A\002\372A-\n+cloudresourcemanager.googleapis." + + "com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" + + "age_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscription" + + "sResponse\022:\n\rsubscriptions\030\001 \003(\0132\036.googl" + + "e.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017next_pa" + + "ge_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptio" + + "nRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" + + "pubsub.googleapis.com/Subscription\"\223\001\n\027M" + + "odifyPushConfigRequest\022@\n\014subscription\030\001" + + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" + + "cription\0226\n\013push_config\030\002 \001(\0132\034.google.p" + + "ubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest" + + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" + + "oogleapis.com/Subscription\022!\n\022return_imm" + + "ediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 " + + "\001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021received_mes" + + "sages\030\001 \003(\0132!.google.pubsub.v1.ReceivedM" + + "essageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest" + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\"\214\001\n\031UpdateSub" - + "scriptionRequest\0229\n\014subscription\030\001 \001(\0132\036" - + ".google.pubsub.v1.SubscriptionB\003\340A\002\0224\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"\221\001\n\030ListSubscriptionsRequest\022D" - + "\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcema" - + "nager.googleapis.com/Project\022\026\n\tpage_siz" - + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n" - + "\031ListSubscriptionsResponse\022:\n\rsubscripti" - + "ons\030\001 \003(\0132\036.google.pubsub.v1.Subscriptio" - + "nB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n\031" - + "DeleteSubscriptionRequest\022@\n\014subscriptio" + + "oogleapis.com/Subscription\022\024\n\007ack_ids\030\004 " + + "\003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003" + + "\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscriptio" + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S" - + "ubscription\"\223\001\n\027ModifyPushConfigRequest\022" - + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" - + "ogleapis.com/Subscription\0226\n\013push_config" - + "\030\002 \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A" - + "\002\"\215\001\n\013PullRequest\022@\n\014subscription\030\001 \001(\tB" - + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" - + "ion\022!\n\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031" - + "\n\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n\014PullRespons" - + "e\022A\n\021received_messages\030\001 \003(\0132!.google.pu" - + "bsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n\030ModifyA" - + "ckDeadlineRequest\022@\n\014subscription\030\001 \001(\tB" - + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" - + "ion\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadlin" - + "e_seconds\030\003 \001(\005B\003\340A\002\"l\n\022AcknowledgeReque" - + "st\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub" - + ".googleapis.com/Subscription\022\024\n\007ack_ids\030" - + "\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPullRequest\022@\n\014s" - + "ubscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.google" - + "apis.com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003" - + "\340A\001\022$\n\027modify_deadline_seconds\030\003 \003(\005B\003\340A" - + "\001\022$\n\027modify_deadline_ack_ids\030\004 \003(\tB\003\340A\001\022" - + "(\n\033stream_ack_deadline_seconds\030\005 \001(\005B\003\340A" - + "\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstan" - + "ding_messages\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstand" - + "ing_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025StreamingPullRe" - + "sponse\022A\n\021received_messages\030\001 \003(\0132!.goog" - + "le.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n\030ack" - + "nowledge_confirmation\030\005 \001(\0132?.google.pub" - + "sub.v1.StreamingPullResponse.Acknowledge" - + "ConfirmationB\003\340A\001\022t\n modify_ack_deadline" - + "_confirmation\030\003 \001(\0132E.google.pubsub.v1.S" - + "treamingPullResponse.ModifyAckDeadlineCo" - + "nfirmationB\003\340A\001\022d\n\027subscription_properti" - + "es\030\004 \001(\0132>.google.pubsub.v1.StreamingPul" - + "lResponse.SubscriptionPropertiesB\003\340A\001\032\224\001" - + "\n\027AcknowledgeConfirmation\022\024\n\007ack_ids\030\001 \003" - + "(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" - + "\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030tempora" - + "ry_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAc" - + "kDeadlineConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003" - + "\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030tem" - + "porary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026Subs" - + "criptionProperties\022*\n\035exactly_once_deliv" - + "ery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030message_orderi" - + "ng_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshot" - + "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.go" - + "ogleapis.com/Snapshot\022@\n\014subscription\030\002 " - + "\001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subsc" - + "ription\022H\n\006labels\030\003 \003(\01323.google.pubsub." - + "v1.CreateSnapshotRequest.LabelsEntryB\003\340A" + + "ubscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024St" + + "reamingPullRequest\022@\n\014subscription\030\001 \001(\t" + + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" + + "tion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_dea" + + "dline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadl" + + "ine_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_dea" + + "dline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 " + + "\001(\tB\003\340A\001\022%\n\030max_outstanding_messages\030\007 \001" + + "(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003" + + "\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021receive" + + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" + + "ivedMessageB\003\340A\001\022f\n\030acknowledge_confirma" + + "tion\030\005 \001(\0132?.google.pubsub.v1.StreamingP" + + "ullResponse.AcknowledgeConfirmationB\003\340A\001" + + "\022t\n modify_ack_deadline_confirmation\030\003 \001" + + "(\0132E.google.pubsub.v1.StreamingPullRespo" + + "nse.ModifyAckDeadlineConfirmationB\003\340A\001\022d" + + "\n\027subscription_properties\030\004 \001(\0132>.google" + + ".pubsub.v1.StreamingPullResponse.Subscri" + + "ptionPropertiesB\003\340A\001\032\224\001\n\027AcknowledgeConf" + + "irmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invali" + + "d_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_id" + + "s\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids" + + "\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineConfirma" + + "tion\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ac" + + "k_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack" + + "_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionPropertie" + + "s\022*\n\035exactly_once_delivery_enabled\030\001 \001(\010" + + "B\003\340A\001\022%\n\030message_ordering_enabled\030\002 \001(\010B" + + "\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004name\030\001" + + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" + + "shot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubs" + + "ub.googleapis.com/Subscription\022H\n\006labels" + + "\030\003 \003(\01323.google.pubsub.v1.CreateSnapshot" + + "Request.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025Upda" + + "teSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.go" + + "ogle.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\002\"\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005to" + + "pic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com" + + "/Topic\0224\n\013expire_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.g" + + "oogle.pubsub.v1.Snapshot.LabelsEntryB\003\340A" + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010sn" - + "apshot\030\001 \001(\0132\032.google.pubsub.v1.Snapshot" - + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"\301\002\n\010Snapshot\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubs" - + "ub.googleapis.com/Topic\0224\n\013expire_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004 \003(\0132&.google.pubsub.v1.Snapsho" - + "t.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:L\352AI\n\036pubsub.g" - + "oogleapis.com/Snapshot\022\'projects/{projec" - + "t}/snapshots/{snapshot}\"N\n\022GetSnapshotRe" - + "quest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub." - + "googleapis.com/Snapshot\"\215\001\n\024ListSnapshot" - + "sRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloud" - + "resourcemanager.googleapis.com/Project\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" - + "(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\0222\n\tsnap" - + "shots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB" - + "\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025De" - + "leteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340" - + "A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\306\001" - + "\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "/\n\004time\030\002 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubs" - + "ub.googleapis.com/SnapshotH\000B\010\n\006target\"\016" - + "\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013CreateTo" - + "pic\022\027.google.pubsub.v1.Topic\032\027.google.pu" - + "bsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=" - + "projects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022" - + "$.google.pubsub.v1.UpdateTopicRequest\032\027." - + "google.pubsub.v1.Topic\"C\332A\021topic,update_" - + "mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/t" - + "opics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub." - + "v1.PublishRequest\032!.google.pubsub.v1.Pub" - + "lishResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/" - + "v1/{topic=projects/*/topics/*}:publish:\001" - + "*\022w\n\010GetTopic\022!.google.pubsub.v1.GetTopi" - + "cRequest\032\027.google.pubsub.v1.Topic\"/\332A\005to" - + "pic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/" - + "*}\022\212\001\n\nListTopics\022#.google.pubsub.v1.Lis" - + "tTopicsRequest\032$.google.pubsub.v1.ListTo" - + "picsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{pro" - + "ject=projects/*}/topics\022\272\001\n\026ListTopicSub" - + "scriptions\022/.google.pubsub.v1.ListTopicS" - + "ubscriptionsRequest\0320.google.pubsub.v1.L" - + "istTopicSubscriptionsResponse\"=\332A\005topic\202" - + "\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/s" - + "ubscriptions\022\252\001\n\022ListTopicSnapshots\022+.go" - + "ogle.pubsub.v1.ListTopicSnapshotsRequest" - + "\032,.google.pubsub.v1.ListTopicSnapshotsRe" - + "sponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=proje" - + "cts/*/topics/*}/snapshots\022|\n\013DeleteTopic" - + "\022$.google.pubsub.v1.DeleteTopicRequest\032\026" - + ".google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037" - + "/v1/{topic=projects/*/topics/*}\022\255\001\n\022Deta" - + "chSubscription\022+.google.pubsub.v1.Detach" - + "SubscriptionRequest\032,.google.pubsub.v1.D" - + "etachSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{" - + "subscription=projects/*/subscriptions/*}" - + ":detach\032p\312A\025pubsub.googleapis.com\322AUhttp" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm,https://www.googleapis.com/auth/pubsu" - + "b2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022" - + "\036.google.pubsub.v1.Subscription\032\036.google" - + ".pubsub.v1.Subscription\"^\332A+name,topic,p" - + "ush_config,ack_deadline_seconds\202\323\344\223\002*\032%/" - + "v1/{name=projects/*/subscriptions/*}:\001*\022" - + "\241\001\n\017GetSubscription\022(.google.pubsub.v1.G" - + "etSubscriptionRequest\032\036.google.pubsub.v1" - + ".Subscription\"D\332A\014subscription\202\323\344\223\002/\022-/v" - + "1/{subscription=projects/*/subscriptions" - + "/*}\022\273\001\n\022UpdateSubscription\022+.google.pubs" - + "ub.v1.UpdateSubscriptionRequest\032\036.google" - + ".pubsub.v1.Subscription\"X\332A\030subscription" - + ",update_mask\202\323\344\223\002722/v1/{subscription.na" - + "me=projects/*/subscriptions/*}:\001*\022\246\001\n\021Li" - + "stSubscriptions\022*.google.pubsub.v1.ListS" - + "ubscriptionsRequest\032+.google.pubsub.v1.L" - + "istSubscriptionsResponse\"8\332A\007project\202\323\344\223" - + "\002(\022&/v1/{project=projects/*}/subscriptio" - + "ns\022\237\001\n\022DeleteSubscription\022+.google.pubsu" - + "b.v1.DeleteSubscriptionRequest\032\026.google." - + "protobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/" - + "v1/{subscription=projects/*/subscription" - + "s/*}\022\317\001\n\021ModifyAckDeadline\022*.google.pubs" - + "ub.v1.ModifyAckDeadlineRequest\032\026.google." - + "protobuf.Empty\"v\332A)subscription,ack_ids," - + "ack_deadline_seconds\202\323\344\223\002D\"?/v1/{subscri" - + "ption=projects/*/subscriptions/*}:modify" - + "AckDeadline:\001*\022\250\001\n\013Acknowledge\022$.google." - + "pubsub.v1.AcknowledgeRequest\032\026.google.pr" - + "otobuf.Empty\"[\332A\024subscription,ack_ids\202\323\344" - + "\223\002>\"9/v1/{subscription=projects/*/subscr" - + "iptions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.goo" - + "gle.pubsub.v1.PullRequest\032\036.google.pubsu" - + "b.v1.PullResponse\"\210\001\332A,subscription,retu" - + "rn_immediately,max_messages\332A\031subscripti" - + "on,max_messages\202\323\344\223\0027\"2/v1/{subscription" - + "=projects/*/subscriptions/*}:pull:\001*\022f\n\r" - + "StreamingPull\022&.google.pubsub.v1.Streami" - + "ngPullRequest\032\'.google.pubsub.v1.Streami" - + "ngPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfi" - + "g\022).google.pubsub.v1.ModifyPushConfigReq" - + "uest\032\026.google.protobuf.Empty\"d\332A\030subscri" - + "ption,push_config\202\323\344\223\002C\">/v1/{subscripti" - + "on=projects/*/subscriptions/*}:modifyPus" - + "hConfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubs" - + "ub.v1.GetSnapshotRequest\032\032.google.pubsub" - + ".v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{sn" - + "apshot=projects/*/snapshots/*}\022\226\001\n\rListS" - + "napshots\022&.google.pubsub.v1.ListSnapshot" - + "sRequest\032\'.google.pubsub.v1.ListSnapshot" - + "sResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{projec" - + "t=projects/*}/snapshots\022\227\001\n\016CreateSnapsh" - + "ot\022\'.google.pubsub.v1.CreateSnapshotRequ" - + "est\032\032.google.pubsub.v1.Snapshot\"@\332A\021name" - + ",subscription\202\323\344\223\002&\032!/v1/{name=projects/" - + "*/snapshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.g" - + "oogle.pubsub.v1.UpdateSnapshotRequest\032\032." - + "google.pubsub.v1.Snapshot\"L\332A\024snapshot,u" - + "pdate_mask\202\323\344\223\002/2*/v1/{snapshot.name=pro", - "jects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapsh" - + "ot\022\'.google.pubsub.v1.DeleteSnapshotRequ" - + "est\032\026.google.protobuf.Empty\"8\332A\010snapshot" - + "\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsho" - + "ts/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRe" - + "quest\032\036.google.pubsub.v1.SeekResponse\"=\202" - + "\323\344\223\0027\"2/v1/{subscription=projects/*/subs" - + "criptions/*}:seek:\001*\032p\312A\025pubsub.googleap" - + "is.com\322AUhttps://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.c" - + "om/auth/pubsubB\252\001\n\024com.google.pubsub.v1B" - + "\013PubsubProtoP\001Z2cloud.google.com/go/pubs" - + "ub/apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026Google.C" - + "loud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352" - + "\002\031Google::Cloud::PubSub::V1b\006proto3" + + " \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Sna" + + "pshot\022\'projects/{project}/snapshots/{sna" + + "pshot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot" + + "\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sn" + + "apshot\"\215\001\n\024ListSnapshotsRequest\022D\n\007proje" + + "ct\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.g" + + "oogleapis.com/Project\022\026\n\tpage_size\030\002 \001(\005" + + "B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSn" + + "apshotsResponse\0222\n\tsnapshots\030\001 \003(\0132\032.goo" + + "gle.pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next_page" + + "_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotReque" + + "st\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.goo" + + "gleapis.com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014" + + "subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googl" + + "eapis.com/Subscription\022/\n\004time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\001H\000\022:\n\010snaps" + + "hot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapis.com" + + "/SnapshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013" + + "\n\tPublisher\022q\n\013CreateTopic\022\027.google.pubs" + + "ub.v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A" + + "\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics" + + "/*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v" + + "1.UpdateTopicRequest\032\027.google.pubsub.v1." + + "Topic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{" + + "topic.name=projects/*/topics/*}:\001*\022\223\001\n\007P" + + "ublish\022 .google.pubsub.v1.PublishRequest" + + "\032!.google.pubsub.v1.PublishResponse\"C\332A\016" + + "topic,messages\202\323\344\223\002,\"\'/v1/{topic=project" + + "s/*/topics/*}:publish:\001*\022w\n\010GetTopic\022!.g" + + "oogle.pubsub.v1.GetTopicRequest\032\027.google" + + ".pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{t" + + "opic=projects/*/topics/*}\022\212\001\n\nListTopics" + + "\022#.google.pubsub.v1.ListTopicsRequest\032$." + + "google.pubsub.v1.ListTopicsResponse\"1\332A\007" + + "project\202\323\344\223\002!\022\037/v1/{project=projects/*}/" + + "topics\022\272\001\n\026ListTopicSubscriptions\022/.goog" + + "le.pubsub.v1.ListTopicSubscriptionsReque" + + "st\0320.google.pubsub.v1.ListTopicSubscript" + + "ionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic" + + "=projects/*/topics/*}/subscriptions\022\252\001\n\022" + + "ListTopicSnapshots\022+.google.pubsub.v1.Li" + + "stTopicSnapshotsRequest\032,.google.pubsub." + + "v1.ListTopicSnapshotsResponse\"9\332A\005topic\202" + + "\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/s" + + "napshots\022|\n\013DeleteTopic\022$.google.pubsub." + + "v1.DeleteTopicRequest\032\026.google.protobuf." + + "Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projec" + + "ts/*/topics/*}\022\255\001\n\022DetachSubscription\022+." + + "google.pubsub.v1.DetachSubscriptionReque", + "st\032,.google.pubsub.v1.DetachSubscription" + + "Response\"<\202\323\344\223\0026\"4/v1/{subscription=proj" + + "ects/*/subscriptions/*}:detach\032p\312A\025pubsu" + + "b.googleapis.com\322AUhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/pubsub2\322\025\n\nSubscriber\022" + + "\264\001\n\022CreateSubscription\022\036.google.pubsub.v" + + "1.Subscription\032\036.google.pubsub.v1.Subscr" + + "iption\"^\332A+name,topic,push_config,ack_de" + + "adline_seconds\202\323\344\223\002*\032%/v1/{name=projects" + + "/*/subscriptions/*}:\001*\022\241\001\n\017GetSubscripti" + + "on\022(.google.pubsub.v1.GetSubscriptionReq" + + "uest\032\036.google.pubsub.v1.Subscription\"D\332A" + + "\014subscription\202\323\344\223\002/\022-/v1/{subscription=p" + + "rojects/*/subscriptions/*}\022\273\001\n\022UpdateSub" + + "scription\022+.google.pubsub.v1.UpdateSubsc" + + "riptionRequest\032\036.google.pubsub.v1.Subscr" + + "iption\"X\332A\030subscription,update_mask\202\323\344\223\002" + + "722/v1/{subscription.name=projects/*/sub" + + "scriptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*" + + ".google.pubsub.v1.ListSubscriptionsReque" + + "st\032+.google.pubsub.v1.ListSubscriptionsR" + + "esponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=" + + "projects/*}/subscriptions\022\237\001\n\022DeleteSubs" + + "cription\022+.google.pubsub.v1.DeleteSubscr" + + "iptionRequest\032\026.google.protobuf.Empty\"D\332" + + "A\014subscription\202\323\344\223\002/*-/v1/{subscription=" + + "projects/*/subscriptions/*}\022\317\001\n\021ModifyAc" + + "kDeadline\022*.google.pubsub.v1.ModifyAckDe" + + "adlineRequest\032\026.google.protobuf.Empty\"v\332" + + "A)subscription,ack_ids,ack_deadline_seco" + + "nds\202\323\344\223\002D\"?/v1/{subscription=projects/*/" + + "subscriptions/*}:modifyAckDeadline:\001*\022\250\001" + + "\n\013Acknowledge\022$.google.pubsub.v1.Acknowl" + + "edgeRequest\032\026.google.protobuf.Empty\"[\332A\024" + + "subscription,ack_ids\202\323\344\223\002>\"9/v1/{subscri" + + "ption=projects/*/subscriptions/*}:acknow" + + "ledge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.Pul" + + "lRequest\032\036.google.pubsub.v1.PullResponse" + + "\"\210\001\332A,subscription,return_immediately,ma" + + "x_messages\332A\031subscription,max_messages\202\323" + + "\344\223\0027\"2/v1/{subscription=projects/*/subsc" + + "riptions/*}:pull:\001*\022f\n\rStreamingPull\022&.g" + + "oogle.pubsub.v1.StreamingPullRequest\032\'.g" + + "oogle.pubsub.v1.StreamingPullResponse\"\000(" + + "\0010\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub" + + ".v1.ModifyPushConfigRequest\032\026.google.pro" + + "tobuf.Empty\"d\332A\030subscription,push_config" + + "\202\323\344\223\002C\">/v1/{subscription=projects/*/sub" + + "scriptions/*}:modifyPushConfig:\001*\022\211\001\n\013Ge" + + "tSnapshot\022$.google.pubsub.v1.GetSnapshot" + + "Request\032\032.google.pubsub.v1.Snapshot\"8\332A\010" + + "snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*" + + "/snapshots/*}\022\226\001\n\rListSnapshots\022&.google" + + ".pubsub.v1.ListSnapshotsRequest\032\'.google" + + ".pubsub.v1.ListSnapshotsResponse\"4\332A\007pro" + + "ject\202\323\344\223\002$\022\"/v1/{project=projects/*}/sna" + + "pshots\022\227\001\n\016CreateSnapshot\022\'.google.pubsu" + + "b.v1.CreateSnapshotRequest\032\032.google.pubs" + + "ub.v1.Snapshot\"@\332A\021name,subscription\202\323\344\223" + + "\002&\032!/v1/{name=projects/*/snapshots/*}:\001*" + + "\022\243\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.U" + + "pdateSnapshotRequest\032\032.google.pubsub.v1." + + "Snapshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2" + + "*/v1/{snapshot.name=projects/*/snapshots" + + "/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsu" + + "b.v1.DeleteSnapshotRequest\032\026.google.prot" + + "obuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snap" + + "shot=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035." + + "google.pubsub.v1.SeekRequest\032\036.google.pu" + + "bsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subsc" + + "ription=projects/*/subscriptions/*}:seek" + + ":\001*\032p\312A\025pubsub.googleapis.com\322AUhttps://" + + "www.googleapis.com/auth/cloud-platform,h" + + "ttps://www.googleapis.com/auth/pubsubB\252\001" + + "\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z2c" + + "loud.google.com/go/pubsub/apiv1/pubsubpb" + + ";pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026" + + "Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::" + + "PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -777,7 +866,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor, new java.lang.String[] { - "AwsKinesis", "CloudStorage", "PlatformLogsSettings", "Source", + "AwsKinesis", + "CloudStorage", + "AzureEventHubs", + "AwsMsk", + "ConfluentCloud", + "PlatformLogsSettings", + "Source", }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor = internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor @@ -832,6 +927,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor, new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(2); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor, + new java.lang.String[] { + "State", + "ResourceGroup", + "Namespace", + "EventHub", + "ClientId", + "TenantId", + "SubscriptionId", + "GcpServiceAccount", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(3); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor, + new java.lang.String[] { + "State", "ClusterArn", "Topic", "AwsRoleArn", "GcpServiceAccount", + }); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor = + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor + .getNestedTypes() + .get(4); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor, + new java.lang.String[] { + "State", + "BootstrapServer", + "ClusterId", + "Topic", + "IdentityPoolId", + "GcpServiceAccount", + }); internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable = @@ -846,7 +983,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor, new java.lang.String[] { - "Topic", "ErrorMessage", "CloudStorageFailure", "Failure", + "Topic", + "ErrorMessage", + "CloudStorageFailure", + "AwsMskFailure", + "AzureEventHubsFailure", + "ConfluentCloudFailure", + "Failure", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor = internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(0); @@ -873,6 +1016,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiViolationReason", "Reason", }); + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor, + new java.lang.String[] { + "ClusterArn", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", + }); + internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor, + new java.lang.String[] { + "Namespace", "EventHub", "PartitionId", "Offset", "ApiViolationReason", "Reason", + }); + internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); + internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor, + new java.lang.String[] { + "ClusterId", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", + }); internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index ed976fea0088..0fcf1b660895 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1588 + * google/pubsub/v1/pubsub.proto;l=1840 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1588 + * google/pubsub/v1/pubsub.proto;l=1840 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1588 + * google/pubsub/v1/pubsub.proto;l=1840 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1588 + * google/pubsub/v1/pubsub.proto;l=1840 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 6c5f66a36d38..6520bf9bd7ef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1588 + * google/pubsub/v1/pubsub.proto;l=1840 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index b8c01469c62c..9114f636f3b2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 13591fc31852..664f3de29181 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index c2b62ad7042c..4eda45f36afa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index b3aec3d611b5..38b1bc963625 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 96e7b7c1975f..99bf4f40b3ca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index f352ff532316..29e4bb6cb586 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index ba9ea89529e7..87c8b94e9444 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 3437158f7591..f49555336d08 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index cde07f4aa735..26df96db4066 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index d3be6be3c00f..de66b349e65c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 52357cf327fe..0b7f06f7a038 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java index d4bb6fa5fb70..c1199db1a6b9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 6974c76634a8..81907d0bce97 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index 4f028362abf9..debada97ac70 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 834e3dbf20b5..215c891582e2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 979132348943..b37d4d936d5a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index d2964ddc8d68..5234521c0367 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index ce9a015584cb..fabd51b78adc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 70b5a13ae1ac..359b6ae0ee0c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 9a9f4c4a3e48..247167769a03 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 0b47b94e2f4c..b951abc8fc25 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 36faa854dce8..781585a23676 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java index 4e3ee0846296..824bcd085069 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 2d406705bd37..a5606bb50ffb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 48afa860b8ac..478c321257a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 5c4af96cb5c1..b1de4d1b7602 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index d262e7ca146b..4a9fb25915de 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index a20bf8572c4c..40089d18c296 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 8554197d0a4e..423ae5a49363 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java index a8731d5c9433..747b856c470a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 51ea4432a310..46c75a2b50b1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 0f8477e86216..40872b062be7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 8fe96fcb8dc4..6c805af8821a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 38b54f234114..8f58e61bd13d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index adae2a4007fb..ee08197714dd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 45bdef5dd95e..29eace61f83d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 8bf7d85d6bc8..26db4ac40e14 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 469ccb8e5748..4e269b66b5a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index fa2713ec6e48..881978774dfe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index cbac7a5a5749..d8f1585fe35b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 9941193249e7..da740bab710e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 3eb379d3def5..73bde3da9999 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 96999cf11717..418a1494eea7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index f66974da018c..2c6a61e134bd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 60a92235feff..45232ef53d1b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 824700d69fe5..89e05a495f7b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index afc2763c3555..886a37801e19 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index f9378438bc15..8a202b5b774b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 Google LLC + * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 0f269f5252ab..6ed87cbba4cc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -323,6 +323,164 @@ message IngestionDataSourceSettings { string match_glob = 9 [(google.api.field_behavior) = OPTIONAL]; } + // Ingestion settings for Azure Event Hubs. + message AzureEventHubs { + // Possible states for managed ingestion from Event Hubs. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Ingestion is active. + ACTIVE = 1; + + // Permission denied encountered while consuming data from Event Hubs. + // This can happen when `client_id`, or `tenant_id` are invalid. Or the + // right permissions haven't been granted. + EVENT_HUBS_PERMISSION_DENIED = 2; + + // Permission denied encountered while publishing to the topic. + PUBLISH_PERMISSION_DENIED = 3; + + // The provided Event Hubs namespace couldn't be found. + NAMESPACE_NOT_FOUND = 4; + + // The provided Event Hub couldn't be found. + EVENT_HUB_NOT_FOUND = 5; + + // The provided Event Hubs subscription couldn't be found. + SUBSCRIPTION_NOT_FOUND = 6; + + // The provided Event Hubs resource group couldn't be found. + RESOURCE_GROUP_NOT_FOUND = 7; + } + + // Output only. An output-only field that indicates the state of the Event + // Hubs ingestion source. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Name of the resource group within the azure subscription. + string resource_group = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the Event Hubs namespace. + string namespace = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the Event Hub. + string event_hub = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The client id of the Azure application that is being used to + // authenticate Pub/Sub. + string client_id = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The tenant id of the Azure application that is being used to + // authenticate Pub/Sub. + string tenant_id = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Azure subscription id. + string subscription_id = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The GCP service account to be used for Federated Identity + // authentication. + string gcp_service_account = 8 [(google.api.field_behavior) = OPTIONAL]; + } + + // Ingestion settings for Amazon MSK. + message AwsMsk { + // Possible states for managed ingestion from Amazon MSK. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Ingestion is active. + ACTIVE = 1; + + // Permission denied encountered while consuming data from Amazon MSK. + MSK_PERMISSION_DENIED = 2; + + // Permission denied encountered while publishing to the topic. + PUBLISH_PERMISSION_DENIED = 3; + + // The provided MSK cluster wasn't found. + CLUSTER_NOT_FOUND = 4; + + // The provided topic wasn't found. + TOPIC_NOT_FOUND = 5; + } + + // Output only. An output-only field that indicates the state of the Amazon + // MSK ingestion source. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The Amazon Resource Name (ARN) that uniquely identifies the + // cluster. + string cluster_arn = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the topic in the Amazon MSK cluster that Pub/Sub + // will import from. + string topic = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. AWS role ARN to be used for Federated Identity authentication + // with Amazon MSK. Check the Pub/Sub docs for how to set up this role and + // the required permissions that need to be attached to it. + string aws_role_arn = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The GCP service account to be used for Federated Identity + // authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call + // for the provided role). The `aws_role_arn` must be set up with + // `accounts.google.com:sub` equals to this service account number. + string gcp_service_account = 5 [(google.api.field_behavior) = REQUIRED]; + } + + // Ingestion settings for Confluent Cloud. + message ConfluentCloud { + // Possible states for managed ingestion from Confluent Cloud. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // Ingestion is active. + ACTIVE = 1; + + // Permission denied encountered while consuming data from Confluent + // Cloud. + CONFLUENT_CLOUD_PERMISSION_DENIED = 2; + + // Permission denied encountered while publishing to the topic. + PUBLISH_PERMISSION_DENIED = 3; + + // The provided bootstrap server address is unreachable. + UNREACHABLE_BOOTSTRAP_SERVER = 4; + + // The provided cluster wasn't found. + CLUSTER_NOT_FOUND = 5; + + // The provided topic wasn't found. + TOPIC_NOT_FOUND = 6; + } + + // Output only. An output-only field that indicates the state of the + // Confluent Cloud ingestion source. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The address of the bootstrap server. The format is url:port. + string bootstrap_server = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The id of the cluster. + string cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the topic in the Confluent Cloud cluster that + // Pub/Sub will import from. + string topic = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The id of the identity pool to be used for Federated Identity + // authentication with Confluent Cloud. See + // https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/identity-pools.html#add-oauth-identity-pools. + string identity_pool_id = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. The GCP service account to be used for Federated Identity + // authentication with `identity_pool_id`. + string gcp_service_account = 6 [(google.api.field_behavior) = REQUIRED]; + } + // Only one source type can have settings set. oneof source { // Optional. Amazon Kinesis Data Streams. @@ -330,6 +488,16 @@ message IngestionDataSourceSettings { // Optional. Cloud Storage. CloudStorage cloud_storage = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Azure Event Hubs. + AzureEventHubs azure_event_hubs = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Amazon MSK. + AwsMsk aws_msk = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Confluent Cloud. + ConfluentCloud confluent_cloud = 6 [(google.api.field_behavior) = OPTIONAL]; } // Optional. Platform Logs settings. If unset, no Platform Logs will be @@ -408,6 +576,78 @@ message IngestionFailureEvent { } } + // Failure when ingesting from an Amazon MSK source. + message AwsMskFailureReason { + // Optional. The ARN of the cluster of the topic being ingested from. + string cluster_arn = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the Kafka topic being ingested from. + string kafka_topic = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The partition ID of the message that failed to be ingested. + int64 partition_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The offset within the partition of the message that failed to + // be ingested. + int64 offset = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified message. + oneof reason { + // Optional. The Pub/Sub API limits prevented the desired message from + // being published. + ApiViolationReason api_violation_reason = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Failure when ingesting from an Azure Event Hubs source. + message AzureEventHubsFailureReason { + // Optional. The namespace containing the event hub being ingested from. + string namespace = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the event hub being ingested from. + string event_hub = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The partition ID of the message that failed to be ingested. + int64 partition_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The offset within the partition of the message that failed to + // be ingested. + int64 offset = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified message. + oneof reason { + // Optional. The Pub/Sub API limits prevented the desired message from + // being published. + ApiViolationReason api_violation_reason = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Failure when ingesting from a Confluent Cloud source. + message ConfluentCloudFailureReason { + // Optional. The cluster ID containing the topic being ingested from. + string cluster_id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The name of the Kafka topic being ingested from. + string kafka_topic = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The partition ID of the message that failed to be ingested. + int64 partition_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The offset within the partition of the message that failed to + // be ingested. + int64 offset = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified message. + oneof reason { + // Optional. The Pub/Sub API limits prevented the desired message from + // being published. + ApiViolationReason api_violation_reason = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + } + // Required. Name of the import topic. Format is: // projects/{project_name}/topics/{topic_name}. string topic = 1 [(google.api.field_behavior) = REQUIRED]; @@ -419,6 +659,18 @@ message IngestionFailureEvent { // Optional. Failure when ingesting from Cloud Storage. CloudStorageFailure cloud_storage_failure = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure when ingesting from Amazon MSK. + AwsMskFailureReason aws_msk_failure = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure when ingesting from Azure Event Hubs. + AzureEventHubsFailureReason azure_event_hubs_failure = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure when ingesting from Confluent Cloud. + ConfluentCloudFailureReason confluent_cloud_failure = 6 + [(google.api.field_behavior) = OPTIONAL]; } } From e90cbb2f14682dbad7ac093b1a72d119a1ccb66f Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 10 Jan 2025 10:37:34 -0500 Subject: [PATCH 2026/2363] chore: Update generation configuration at Thu Jan 9 21:05:27 UTC 2025 (#2305) --- java-pubsub/generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 1bf7d40fa003..cbbdda62753f 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.51.0 -googleapis_commitish: 3322b91056db2735074b230c926e6ef3a958aa53 +gapic_generator_version: 2.51.1 +googleapis_commitish: d581bbe1a66ad2e47eda2beebf6200f23b766ca9 libraries_bom_version: 26.52.0 libraries: - api_shortname: pubsub From 7b6d637a86fb4c9ec6a1e31b518afb851c23afee Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:09:05 -0500 Subject: [PATCH 2027/2363] chore(main): release 1.136.0 (#2297) * chore(main): release 1.136.0 * chore: generate libraries at Fri Jan 10 15:38:30 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 22 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 43 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 2aebaf6bbd06..c3bbf925add1 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [1.136.0](https://github.com/googleapis/java-pubsub/compare/v1.135.0...v1.136.0) (2025-01-10) + + +### Features + +* Add Kafka-based sources to IngestionDataSourceSettings proto and IngestionFailureEvent proto ([2947169](https://github.com/googleapis/java-pubsub/commit/2947169c009fa553202bc1e44276cf5a7954cd96)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.51.1 ([9c166f7](https://github.com/googleapis/java-pubsub/commit/9c166f76db78b0c6b2e0218460d5c0336102717a)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.45.0 ([#2292](https://github.com/googleapis/java-pubsub/issues/2292)) ([79a8982](https://github.com/googleapis/java-pubsub/commit/79a89823c6cbcc9a718f44856040b1525863cab6)) +* Update dependency com.google.cloud:google-cloud-storage to v2.46.0 ([#2291](https://github.com/googleapis/java-pubsub/issues/2291)) ([7b60884](https://github.com/googleapis/java-pubsub/commit/7b60884cc4e17df616155f7530a056c4c5e3af29)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.41.1 ([#2301](https://github.com/googleapis/java-pubsub/issues/2301)) ([53c1a8a](https://github.com/googleapis/java-pubsub/commit/53c1a8abdd3114e0f432b3b6618133fb93e44636)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.29.2 ([#2294](https://github.com/googleapis/java-pubsub/issues/2294)) ([48d4ac1](https://github.com/googleapis/java-pubsub/commit/48d4ac1ab2f0b9f9005292977c288f55322dd16a)) +* Update dependency org.assertj:assertj-core to v3.27.2 ([#2296](https://github.com/googleapis/java-pubsub/issues/2296)) ([e5b68a5](https://github.com/googleapis/java-pubsub/commit/e5b68a563aa6ebb2bd69665624fc7fc6aef50b64)) +* Update googleapis/sdk-platform-java action to v2.51.1 ([#2298](https://github.com/googleapis/java-pubsub/issues/2298)) ([16e0144](https://github.com/googleapis/java-pubsub/commit/16e0144d83c149b60e7b8fca6c4e61546d93462f)) + ## [1.135.0](https://github.com/googleapis/java-pubsub/compare/v1.134.2...v1.135.0) (2024-12-12) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 477dccc0d1cc..db176eda514a 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.135.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.136.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.135.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.136.0" ``` ## Authentication @@ -415,7 +415,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.135.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.136.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 25e977e8053e..d4547c76af74 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.135.1-SNAPSHOT + 1.136.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.135.1-SNAPSHOT + 1.136.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 45b4eb493a06..8ed207df4c8c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.135.1-SNAPSHOT + 1.136.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.135.1-SNAPSHOT + 1.136.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 654c3e430ab3..ece04d79ce64 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.135.1-SNAPSHOT + 1.136.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1e144d4f96af..46c36b84ba0e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.135.1-SNAPSHOT + 1.136.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 com.google.cloud google-cloud-pubsub - 1.135.1-SNAPSHOT + 1.136.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 8e099b5227d0..d3c0ceaaa680 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.117.1-SNAPSHOT + 1.118.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.135.1-SNAPSHOT + 1.136.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 55e9d7dd6a5e..b88149f03464 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.135.1-SNAPSHOT + 1.136.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4cb9431673e2..1cf08e5311a3 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.135.0:1.135.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.117.0:1.117.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.117.0:1.117.1-SNAPSHOT +google-cloud-pubsub:1.136.0:1.136.0 +grpc-google-cloud-pubsub-v1:1.118.0:1.118.0 +proto-google-cloud-pubsub-v1:1.118.0:1.118.0 From 092265667bf4f1282707b1a9e8e2494fc21330a2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:11:35 +0100 Subject: [PATCH 2028/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.46.0 (#2309) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c4e1df71b3ae..d0abb9aab127 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.45.0 + 2.46.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b88149f03464..0c11e59d3f82 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.45.0 + 2.46.0 com.google.cloud From f9d7efa277c8ee42cad3bf9d70bff52e0b4e540f Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 23 Jan 2025 10:11:58 -0500 Subject: [PATCH 2029/2363] chore: Update generation configuration at Thu Jan 23 02:23:35 UTC 2025 (#2308) * chore: Update generation configuration at Sat Jan 11 02:26:06 UTC 2025 * chore: Update generation configuration at Sun Jan 12 02:29:41 UTC 2025 * chore: Update generation configuration at Mon Jan 13 02:29:17 UTC 2025 * chore: Update generation configuration at Tue Jan 14 02:22:16 UTC 2025 * chore: Update generation configuration at Wed Jan 15 02:23:55 UTC 2025 * chore: Update generation configuration at Thu Jan 16 02:22:55 UTC 2025 * chore: Update generation configuration at Fri Jan 17 02:22:36 UTC 2025 * chore: generate libraries at Fri Jan 17 02:23:09 UTC 2025 * chore: Update generation configuration at Sat Jan 18 02:20:32 UTC 2025 * chore: Update generation configuration at Tue Jan 21 02:23:43 UTC 2025 * chore: Update generation configuration at Wed Jan 22 02:25:18 UTC 2025 * chore: Update generation configuration at Thu Jan 23 02:23:35 UTC 2025 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index db176eda514a..cb50e4b4eadc 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.52.0') +implementation platform('com.google.cloud:libraries-bom:26.53.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index cbbdda62753f..e9de8268f1e5 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.51.1 -googleapis_commitish: d581bbe1a66ad2e47eda2beebf6200f23b766ca9 -libraries_bom_version: 26.52.0 +googleapis_commitish: 1a0e353ac4a372cf7016df4ce0a7d7e609f339b3 +libraries_bom_version: 26.53.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 031b6b7d446cec97d9b3ba50320c44417a805495 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:12:10 +0100 Subject: [PATCH 2030/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.136.0 (#2307) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d0abb9aab127..3b8555ae8ea0 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.135.0 + 1.136.0 From 60bdd0e0e76e322c129b9e12462be1d3ede37c10 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:12:55 +0100 Subject: [PATCH 2031/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.29.3 (#2302) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3b8555ae8ea0..bb80ca7f5e9e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.29.2 + 4.29.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0c11e59d3f82..959a249e23cd 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.29.2 + 4.29.3 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index df9a7ab0b7f7..eca3d72320a7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.29.2 + 4.29.3 From c21955e73ba5f21b4063d28ba886d6b3904f6187 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:13:03 +0100 Subject: [PATCH 2032/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.49.1 (#2300) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bb80ca7f5e9e..7bac19eaca8d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.49.0 + 2.49.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 959a249e23cd..dbbb8294619c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.49.0 + 2.49.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index eca3d72320a7..c946bb5c6bca 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.49.0 + 2.49.1 tests From c6c9d102d134e7a1eaf9f8a90930aec1e420ad02 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:13:50 +0100 Subject: [PATCH 2033/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.47.0 (#2303) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7bac19eaca8d..fe402f96ca2a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.46.0 + 2.47.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index dbbb8294619c..4f05c296036b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.46.0 + 2.47.0 com.google.cloud.opentelemetry From 2b85344015ad8acbc7763773425bad0779312fda Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 16:15:59 +0100 Subject: [PATCH 2034/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.53.0 (#2311) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c946bb5c6bca..9f6c6bea914f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.52.0 + 26.53.0 pom import From 42cf8ee24467af59280c9141b06d01c6705a2694 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 23 Jan 2025 17:43:08 +0100 Subject: [PATCH 2035/2363] deps: update dependency org.assertj:assertj-core to v3.27.3 (#2313) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 46c36b84ba0e..0fadcae5f59e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.27.2 + 3.27.3 test From e38aafd73f68c3f1d846dbec4e25f1e28a4be84d Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 23 Jan 2025 12:44:44 -0500 Subject: [PATCH 2036/2363] docs: Add samples and tests for ingestion from Kafka sources (#2315) * docs: Add samples and tests for ingestion from Kafka sources * docs: Styles fixes for samples/tests --- ...CreateTopicWithAwsMskIngestionExample.java | 75 +++++++++++++ ...picWithAzureEventHubsIngestionExample.java | 93 ++++++++++++++++ ...picWithConfluentCloudIngestionExample.java | 85 ++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 104 +++++++++++++++++- 4 files changed, 355 insertions(+), 2 deletions(-) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java new file mode 100644 index 000000000000..e04b41574fa5 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java @@ -0,0 +1,75 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_aws_msk_ingestion] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithAwsMskIngestionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // AWS MSK ingestion settings. + String clusterArn = "cluster-arn"; + String mskTopic = "msk-topic"; + String awsRoleArn = "aws-role-arn"; + String gcpServiceAccount = "gcp-service-account"; + + createTopicWithAwsMskIngestionExample( + projectId, topicId, clusterArn, mskTopic, awsRoleArn, gcpServiceAccount); + } + + public static void createTopicWithAwsMskIngestionExample( + String projectId, + String topicId, + String clusterArn, + String mskTopic, + String awsRoleArn, + String gcpServiceAccount) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + + IngestionDataSourceSettings.AwsMsk awsMsk = + IngestionDataSourceSettings.AwsMsk.newBuilder() + .setClusterArn(clusterArn) + .setTopic(mskTopic) + .setAwsRoleArn(awsRoleArn) + .setGcpServiceAccount(gcpServiceAccount) + .build(); + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder().setAwsMsk(awsMsk).build(); + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build()); + + System.out.println("Created topic with AWS MSK ingestion settings: " + topic.getAllFields()); + } + } +} +// [END pubsub_create_topic_with_aws_msk_ingestion] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java new file mode 100644 index 000000000000..29210b792f78 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java @@ -0,0 +1,93 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_azure_event_hubs_ingestion] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithAzureEventHubsIngestionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Azure Event Hubs ingestion settings. + String resourceGroup = "resource-group"; + String namespace = "namespace"; + String eventHub = "event-hub"; + String clientId = "client-id"; + String tenantId = "tenant-id"; + String subscriptionId = "subscription-id"; + String gcpServiceAccount = "gcp-service-account"; + + createTopicWithAzureEventHubsIngestionExample( + projectId, + topicId, + resourceGroup, + namespace, + eventHub, + clientId, + tenantId, + subscriptionId, + gcpServiceAccount); + } + + public static void createTopicWithAzureEventHubsIngestionExample( + String projectId, + String topicId, + String resourceGroup, + String namespace, + String eventHub, + String clientId, + String tenantId, + String subscriptionId, + String gcpServiceAccount) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + + IngestionDataSourceSettings.AzureEventHubs azureEventHubs = + IngestionDataSourceSettings.AzureEventHubs.newBuilder() + .setResourceGroup(resourceGroup) + .setNamespace(namespace) + .setEventHub(eventHub) + .setClientId(clientId) + .setTenantId(tenantId) + .setSubscriptionId(subscriptionId) + .setGcpServiceAccount(gcpServiceAccount) + .build(); + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder().setAzureEventHubs(azureEventHubs).build(); + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build()); + + System.out.println( + "Created topic with Azure Event Hubs ingestion settings: " + topic.getAllFields()); + } + } +} +// [END pubsub_create_topic_with_azure_event_hubs_ingestion] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java new file mode 100644 index 000000000000..e222b7ba00c7 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java @@ -0,0 +1,85 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_confluent_cloud_ingestion] + +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.cloud.pubsub.v1.TopicAdminSettings; +import com.google.pubsub.v1.IngestionDataSourceSettings; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithConfluentCloudIngestionExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + // Confluent Cloud ingestion settings. + String bootstrapServer = "bootstrap-server"; + String clusterId = "cluster-id"; + String confluentTopic = "confluent-topic"; + String identityPoolId = "identity-pool-id"; + String gcpServiceAccount = "gcp-service-account"; + + createTopicWithConfluentCloudIngestionExample( + projectId, + topicId, + bootstrapServer, + clusterId, + confluentTopic, + identityPoolId, + gcpServiceAccount); + } + + public static void createTopicWithConfluentCloudIngestionExample( + String projectId, + String topicId, + String bootstrapServer, + String clusterId, + String confluentTopic, + String identityPoolId, + String gcpServiceAccount) + throws IOException { + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + TopicName topicName = TopicName.of(projectId, topicId); + + IngestionDataSourceSettings.ConfluentCloud confluentCloud = + IngestionDataSourceSettings.ConfluentCloud.newBuilder() + .setBootstrapServer(bootstrapServer) + .setClusterId(clusterId) + .setTopic(confluentTopic) + .setIdentityPoolId(identityPoolId) + .setGcpServiceAccount(gcpServiceAccount) + .build(); + IngestionDataSourceSettings ingestionDataSourceSettings = + IngestionDataSourceSettings.newBuilder().setConfluentCloud(confluentCloud).build(); + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + .setIngestionDataSourceSettings(ingestionDataSourceSettings) + .build()); + + System.out.println( + "Created topic with Confluent Cloud ingestion settings: " + topic.getAllFields()); + } + } +} +// [END pubsub_create_topic_with_confluent_cloud_ingestion] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index e0c45e8e1370..23b24f917dc6 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -55,6 +55,11 @@ public class AdminIT { private static final String kinesisIngestionTopicId = "kinesis-ingestion-topic-" + _suffix; private static final String cloudStorageIngestionTopicId = "cloud-storage-ingestion-topic-" + _suffix; + private static final String awsMskIngestionTopicId = "aws-msk-ingestion-topic-" + _suffix; + private static final String confluentCloudIngestionTopicId = + "confluent-cloud-ingestion-topic-" + _suffix; + private static final String azureEventHubsIngestionTopicId = + "azure-event-hubs-ingestion-topic-" + _suffix; private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; @@ -66,6 +71,9 @@ public class AdminIT { "java_samples_data_set" + _suffix.replace("-", "_"); private static final String bigquerySubscriptionId = "iam-bigquery-subscription-" + _suffix; private static final String bigqueryTableId = "java_samples_table_" + _suffix; + private static final String gcpServiceAccount = + "fake-service-account@fake-gcp-project.iam.gserviceaccount.com"; + // AWS Kinesis ingestion settings. private static final String streamArn = "arn:aws:kinesis:us-west-2:111111111111:stream/fake-stream-name"; private static final String consumerArn = @@ -75,20 +83,41 @@ public class AdminIT { "arn:aws:kinesis:us-west-2:111111111111:stream/fake-stream-name/" + "consumer/consumer-2:2222222222"; private static final String awsRoleArn = "arn:aws:iam::111111111111:role/fake-role-name"; - private static final String gcpServiceAccount = - "fake-service-account@fake-gcp-project.iam.gserviceaccount.com"; + // GCS ingestion settings. private static final String cloudStorageBucket = "pubsub-cloud-storage-bucket"; private static final String cloudStorageInputFormat = "text"; private static final String cloudStorageTextDelimiter = ","; private static final String cloudStorageMatchGlob = "**.txt"; private static final String cloudStorageMinimumObjectCreateTime = "1970-01-01T00:00:01Z"; private static final String cloudStorageMinimumObjectCreateTimeSeconds = "seconds: 1"; + // AWS MSK ingestion settings. + String clusterArn = + "arn:aws:kafka:us-east-1:111111111111:cluster/fake-cluster-name/11111111-1111-1"; + String mskTopic = "fake-msk-topic-name"; + // Confluent Cloud ingestion settings. + String bootstrapServer = "fake-bootstrap-server-id.us-south1.gcp.confluent.cloud:9092"; + String clusterId = "fake-cluster-id"; + String confluentTopic = "fake-confluent-topic-name"; + String identityPoolId = "fake-pool-id"; + // Azure Event Hubs ingestion settings. + String resourceGroup = "fake-resource-group"; + String namespace = "fake-namespace"; + String eventHub = "fake-event-hub"; + String clientId = "11111111-1111-1111-1111-111111111111"; + String tenantId = "22222222-2222-2222-2222-222222222222"; + String subscriptionId = "33333333-3333-3333-3333-333333333333"; private static final TopicName topicName = TopicName.of(projectId, topicId); private static final TopicName kinesisIngestionTopicName = TopicName.of(projectId, kinesisIngestionTopicId); private static final TopicName cloudStorageIngestionTopicName = TopicName.of(projectId, cloudStorageIngestionTopicId); + private static final TopicName awsMskIngestionTopicName = + TopicName.of(projectId, awsMskIngestionTopicId); + private static final TopicName confluentCloudIngestionTopicName = + TopicName.of(projectId, confluentCloudIngestionTopicId); + private static final TopicName azureEventHubsIngestionTopicName = + TopicName.of(projectId, azureEventHubsIngestionTopicId); private static final SubscriptionName pullSubscriptionName = SubscriptionName.of(projectId, pullSubscriptionId); private static final SubscriptionName pushSubscriptionName = @@ -361,5 +390,76 @@ public void testAdmin() throws Exception { // Test delete Cloud Storage ingestion topic. DeleteTopicExample.deleteTopicExample(projectId, cloudStorageIngestionTopicId); assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with AWS MSK ingestion settings. + CreateTopicWithAwsMskIngestionExample.createTopicWithAwsMskIngestionExample( + projectId, + awsMskIngestionTopicId, + clusterArn, + mskTopic, + awsRoleArn, + gcpServiceAccount); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + awsMskIngestionTopicName.toString()); + assertThat(bout.toString()).contains(clusterArn); + assertThat(bout.toString()).contains(mskTopic); + assertThat(bout.toString()).contains(awsRoleArn); + assertThat(bout.toString()).contains(gcpServiceAccount); + + bout.reset(); + // Test delete AWS MSK ingestion topic. + DeleteTopicExample.deleteTopicExample(projectId, awsMskIngestionTopicId); + assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with Confluent Cloud ingestion settings. + CreateTopicWithConfluentCloudIngestionExample.createTopicWithConfluentCloudIngestionExample( + projectId, + confluentCloudIngestionTopicId, + bootstrapServer, + clusterId, + confluentTopic, + identityPoolId, + gcpServiceAccount); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + confluentCloudIngestionTopicName.toString()); + assertThat(bout.toString()).contains(bootstrapServer); + assertThat(bout.toString()).contains(clusterId); + assertThat(bout.toString()).contains(confluentTopic); + assertThat(bout.toString()).contains(identityPoolId); + assertThat(bout.toString()).contains(gcpServiceAccount); + + bout.reset(); + // Test delete Confluent Cloud ingestion topic. + DeleteTopicExample.deleteTopicExample(projectId, confluentCloudIngestionTopicId); + assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with Azure Event Hubs ingestion settings. + CreateTopicWithAzureEventHubsIngestionExample.createTopicWithAzureEventHubsIngestionExample( + projectId, + azureEventHubsIngestionTopicId, + resourceGroup, + namespace, + eventHub, + clientId, + tenantId, + subscriptionId, + gcpServiceAccount); + assertThat(bout.toString()).contains( + "google.pubsub.v1.Topic.name=" + azureEventHubsIngestionTopicName.toString()); + assertThat(bout.toString()).contains(resourceGroup); + assertThat(bout.toString()).contains(namespace); + assertThat(bout.toString()).contains(eventHub); + assertThat(bout.toString()).contains(clientId); + assertThat(bout.toString()).contains(tenantId); + assertThat(bout.toString()).contains(subscriptionId); + assertThat(bout.toString()).contains(gcpServiceAccount); + + bout.reset(); + // Test delete Azure Event Hubs ingestion topic. + DeleteTopicExample.deleteTopicExample(projectId, azureEventHubsIngestionTopicId); + assertThat(bout.toString()).contains("Deleted topic."); } } From ddc2a5213cfb47adbf36e1522c7f5cc61e8f10d7 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 24 Jan 2025 10:36:52 -0500 Subject: [PATCH 2037/2363] chore: Update generation configuration at Fri Jan 24 02:23:58 UTC 2025 (#2318) * chore: Update generation configuration at Fri Jan 24 02:23:58 UTC 2025 * chore: generate libraries at Fri Jan 24 02:24:33 UTC 2025 --- java-pubsub/README.md | 7 +++++-- java-pubsub/generation_config.yaml | 2 +- .../CreateTopicWithAwsMskIngestionExample.java | 1 - ...eateTopicWithAzureEventHubsIngestionExample.java | 1 - ...eateTopicWithConfluentCloudIngestionExample.java | 1 - .../snippets/src/test/java/pubsub/AdminIT.java | 13 ++++--------- 6 files changed, 10 insertions(+), 15 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index cb50e4b4eadc..886e75d37746 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.52.0 + 26.53.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.135.0 + 1.136.0 ``` @@ -253,7 +253,10 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | +| Create Topic With Aws Msk Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | +| Create Topic With Azure Event Hubs Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | | Create Topic With Cloud Storage Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | +| Create Topic With Confluent Cloud Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java) | | Create Topic With Kinesis Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | | Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index e9de8268f1e5..783ff1ff1dc8 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.51.1 -googleapis_commitish: 1a0e353ac4a372cf7016df4ce0a7d7e609f339b3 +googleapis_commitish: 08e6c4ec008d4a7924d4c507565e6f7da7e0c751 libraries_bom_version: 26.53.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java index e04b41574fa5..52aed57dd4e6 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java @@ -19,7 +19,6 @@ // [START pubsub_create_topic_with_aws_msk_ingestion] import com.google.cloud.pubsub.v1.TopicAdminClient; -import com.google.cloud.pubsub.v1.TopicAdminSettings; import com.google.pubsub.v1.IngestionDataSourceSettings; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java index 29210b792f78..fb72a3e1db30 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java @@ -19,7 +19,6 @@ // [START pubsub_create_topic_with_azure_event_hubs_ingestion] import com.google.cloud.pubsub.v1.TopicAdminClient; -import com.google.cloud.pubsub.v1.TopicAdminSettings; import com.google.pubsub.v1.IngestionDataSourceSettings; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java index e222b7ba00c7..cd27a0ac9f76 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java @@ -19,7 +19,6 @@ // [START pubsub_create_topic_with_confluent_cloud_ingestion] import com.google.cloud.pubsub.v1.TopicAdminClient; -import com.google.cloud.pubsub.v1.TopicAdminSettings; import com.google.pubsub.v1.IngestionDataSourceSettings; import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.TopicName; diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index 23b24f917dc6..accec5126698 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -92,7 +92,7 @@ public class AdminIT { private static final String cloudStorageMinimumObjectCreateTimeSeconds = "seconds: 1"; // AWS MSK ingestion settings. String clusterArn = - "arn:aws:kafka:us-east-1:111111111111:cluster/fake-cluster-name/11111111-1111-1"; + "arn:aws:kafka:us-east-1:111111111111:cluster/fake-cluster-name/11111111-1111-1"; String mskTopic = "fake-msk-topic-name"; // Confluent Cloud ingestion settings. String bootstrapServer = "fake-bootstrap-server-id.us-south1.gcp.confluent.cloud:9092"; @@ -394,12 +394,7 @@ public void testAdmin() throws Exception { bout.reset(); // Test create topic with AWS MSK ingestion settings. CreateTopicWithAwsMskIngestionExample.createTopicWithAwsMskIngestionExample( - projectId, - awsMskIngestionTopicId, - clusterArn, - mskTopic, - awsRoleArn, - gcpServiceAccount); + projectId, awsMskIngestionTopicId, clusterArn, mskTopic, awsRoleArn, gcpServiceAccount); assertThat(bout.toString()) .contains("google.pubsub.v1.Topic.name=" + awsMskIngestionTopicName.toString()); assertThat(bout.toString()).contains(clusterArn); @@ -447,8 +442,8 @@ public void testAdmin() throws Exception { tenantId, subscriptionId, gcpServiceAccount); - assertThat(bout.toString()).contains( - "google.pubsub.v1.Topic.name=" + azureEventHubsIngestionTopicName.toString()); + assertThat(bout.toString()) + .contains("google.pubsub.v1.Topic.name=" + azureEventHubsIngestionTopicName.toString()); assertThat(bout.toString()).contains(resourceGroup); assertThat(bout.toString()).contains(namespace); assertThat(bout.toString()).contains(eventHub); From 366b645a60acd208174120c8bc30923e7827bd56 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 27 Jan 2025 19:33:52 -0500 Subject: [PATCH 2038/2363] chore: Update generation configuration at Mon Jan 27 02:24:54 UTC 2025 (#2319) * chore: Update generation configuration at Sat Jan 25 02:20:07 UTC 2025 * chore: Update generation configuration at Mon Jan 27 02:24:54 UTC 2025 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 783ff1ff1dc8..2b2635fc1006 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.51.1 -googleapis_commitish: 08e6c4ec008d4a7924d4c507565e6f7da7e0c751 +googleapis_commitish: 8798ceff3f6fbcdce3186b67ce9339df337569d5 libraries_bom_version: 26.53.0 libraries: - api_shortname: pubsub From b43443c80efa509587f615600b9773ecabcba0b4 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 28 Jan 2025 12:10:31 -0500 Subject: [PATCH 2039/2363] chore: Update generation configuration at Tue Jan 28 02:23:29 UTC 2025 (#2323) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 2b2635fc1006..f51d8f5143d1 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.51.1 -googleapis_commitish: 8798ceff3f6fbcdce3186b67ce9339df337569d5 +googleapis_commitish: 27aa9d542f54ae1ea1277580550dd04aeb5b09f9 libraries_bom_version: 26.53.0 libraries: - api_shortname: pubsub From 846e0ed2174c4f0eb720bacc341690016346c9d4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Jan 2025 18:10:49 +0100 Subject: [PATCH 2040/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.48.0 (#2322) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fe402f96ca2a..fd1cb78b8850 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.47.0 + 2.48.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4f05c296036b..55ef746a8b7d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.47.0 + 2.48.0 com.google.cloud.opentelemetry From eaefa7eb10064ad39842876bca9cb1990723ed08 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Jan 2025 18:11:51 +0100 Subject: [PATCH 2041/2363] deps: update googleapis/sdk-platform-java action to v2.52.0 (#2320) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index c1be8aca557b..f7804e9d0263 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.51.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.52.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From ddd0a93f69ed4360710f138526d98753b6083bdc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Jan 2025 18:12:41 +0100 Subject: [PATCH 2042/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.50.0 (#2321) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index fd1cb78b8850..a83475703c68 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.49.1 + 2.50.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 55ef746a8b7d..bee44b922475 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.49.1 + 2.50.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 9f6c6bea914f..3c7fb6e48426 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.49.1 + 2.50.0 tests From 014cc046093a9e93f0ef076052c5556c2b20e9a4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 12:37:49 -0500 Subject: [PATCH 2043/2363] chore(main): release 1.136.1-SNAPSHOT (#2314) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d4547c76af74..7aed079516eb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.136.0 + 1.136.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8ed207df4c8c..f0ca5e0fe18d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.136.0 + 1.136.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index ece04d79ce64..adba6afdaad8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.0 + 1.136.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0fadcae5f59e..4ee5da72d3ad 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.136.0 + 1.136.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d3c0ceaaa680..1c60344cee57 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.0 + 1.118.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.0 + 1.136.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bee44b922475..98341f1294ca 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1cf08e5311a3..01c34839edd3 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.136.0:1.136.0 -grpc-google-cloud-pubsub-v1:1.118.0:1.118.0 -proto-google-cloud-pubsub-v1:1.118.0:1.118.0 +google-cloud-pubsub:1.136.0:1.136.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.118.0:1.118.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.118.0:1.118.1-SNAPSHOT From fead831cced3a794c98fab3a721de82544f330ec Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Jan 2025 18:38:00 +0100 Subject: [PATCH 2044/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.42.0 (#2324) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index a09089f865df..8246ed6b837e 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.41.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.42.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 9705694f8348..b78c82df571b 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.41.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.42.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index b070666b48ed..f08c4be3e00b 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.41.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.42.0" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7aed079516eb..43a94992bd12 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.41.1 + 3.42.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4ee5da72d3ad..cb32b19979ca 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.41.1 + 3.42.0 From 3c638300c1ea3251205e0adeb294f99316cb76ac Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 28 Jan 2025 13:59:38 -0500 Subject: [PATCH 2045/2363] chore: Update generation configuration at Tue Jan 28 18:31:09 UTC 2025 (#2327) * chore: Update generation configuration at Tue Jan 28 18:14:49 UTC 2025 * chore: Update generation configuration at Tue Jan 28 18:31:09 UTC 2025 --- java-pubsub/generation_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index f51d8f5143d1..00bdfd854455 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.51.1 -googleapis_commitish: 27aa9d542f54ae1ea1277580550dd04aeb5b09f9 +gapic_generator_version: 2.52.0 +googleapis_commitish: 0ce8062889f30daa64eed6810e3c124ccd89608f libraries_bom_version: 26.53.0 libraries: - api_shortname: pubsub From d99358c8db258beb45a73c53d3b0b65282d8d44d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 16:30:05 -0500 Subject: [PATCH 2046/2363] chore(main): release 1.136.1 (#2326) * chore(main): release 1.136.1 * chore: generate libraries at Tue Jan 28 19:00:34 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 25 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 +++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 46 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index c3bbf925add1..7410bd6c297b 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,30 @@ # Changelog +## [1.136.1](https://github.com/googleapis/java-pubsub/compare/v1.136.0...v1.136.1) (2025-01-28) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.52.0 ([0d8c8bf](https://github.com/googleapis/java-pubsub/commit/0d8c8bffc85804d5a64ec0d35893ad9e0062807e)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.46.0 ([#2309](https://github.com/googleapis/java-pubsub/issues/2309)) ([97bd44e](https://github.com/googleapis/java-pubsub/commit/97bd44e04c440320e45c2b4336677d8d266a39a2)) +* Update dependency com.google.cloud:google-cloud-core to v2.49.1 ([#2300](https://github.com/googleapis/java-pubsub/issues/2300)) ([cf2822b](https://github.com/googleapis/java-pubsub/commit/cf2822b7363e13e4730753cbb5ca3510c77f5f55)) +* Update dependency com.google.cloud:google-cloud-core to v2.50.0 ([#2321](https://github.com/googleapis/java-pubsub/issues/2321)) ([5c40bcd](https://github.com/googleapis/java-pubsub/commit/5c40bcd4d401d919b990e6a7d3151660ead76eb0)) +* Update dependency com.google.cloud:google-cloud-storage to v2.47.0 ([#2303](https://github.com/googleapis/java-pubsub/issues/2303)) ([707f842](https://github.com/googleapis/java-pubsub/commit/707f84271559dfe96fa11edffb307df145ceea47)) +* Update dependency com.google.cloud:google-cloud-storage to v2.48.0 ([#2322](https://github.com/googleapis/java-pubsub/issues/2322)) ([93b9419](https://github.com/googleapis/java-pubsub/commit/93b9419d210cedeab03f408dab4c74c9fcf18b59)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.42.0 ([#2324](https://github.com/googleapis/java-pubsub/issues/2324)) ([84e8562](https://github.com/googleapis/java-pubsub/commit/84e856250867b2441cceed2315c312bd661c353c)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.29.3 ([#2302](https://github.com/googleapis/java-pubsub/issues/2302)) ([9e90e2c](https://github.com/googleapis/java-pubsub/commit/9e90e2ca26b2aea48563859358dde84640eb40d0)) +* Update dependency org.assertj:assertj-core to v3.27.3 ([#2313](https://github.com/googleapis/java-pubsub/issues/2313)) ([5e80b57](https://github.com/googleapis/java-pubsub/commit/5e80b57d2ffd58e6a0bb9f5e0e78bb46d6fe2530)) +* Update googleapis/sdk-platform-java action to v2.52.0 ([#2320](https://github.com/googleapis/java-pubsub/issues/2320)) ([01dd3de](https://github.com/googleapis/java-pubsub/commit/01dd3deaef392aa51c60d28c1f3cbb81bff2a5cb)) + + +### Documentation + +* Add samples and tests for ingestion from Kafka sources ([#2315](https://github.com/googleapis/java-pubsub/issues/2315)) ([eea603b](https://github.com/googleapis/java-pubsub/commit/eea603ba3f05be85d58a69cd5c3469e2088a7446)) + ## [1.136.0](https://github.com/googleapis/java-pubsub/compare/v1.135.0...v1.136.0) (2025-01-10) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 886e75d37746..8eb21c15b8c6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.136.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.136.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.136.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.136.1" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.136.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.136.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 43a94992bd12..ade8e42bd001 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.136.1-SNAPSHOT + 1.136.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.136.1-SNAPSHOT + 1.136.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f0ca5e0fe18d..9f7f28b42560 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.136.1-SNAPSHOT + 1.136.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.136.1-SNAPSHOT + 1.136.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index adba6afdaad8..69ba89760fd4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.1-SNAPSHOT + 1.136.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index cb32b19979ca..1c0586f8b612 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.136.1-SNAPSHOT + 1.136.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 com.google.cloud google-cloud-pubsub - 1.136.1-SNAPSHOT + 1.136.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 1c60344cee57..46274994d168 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1-SNAPSHOT + 1.118.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.1-SNAPSHOT + 1.136.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 98341f1294ca..93d5ba383973 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.136.1-SNAPSHOT + 1.136.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 01c34839edd3..1ca89302a92b 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.136.0:1.136.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.118.0:1.118.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.118.0:1.118.1-SNAPSHOT +google-cloud-pubsub:1.136.1:1.136.1 +grpc-google-cloud-pubsub-v1:1.118.1:1.118.1 +proto-google-cloud-pubsub-v1:1.118.1:1.118.1 From b6cffa5d42250480c9c7c8ae399496853c9ba1be Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 10 Feb 2025 18:32:03 +0100 Subject: [PATCH 2047/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.136.1 (#2329) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a83475703c68..a60f6bce4081 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1 From 680a7c759e166b6b621e0eaa5f9dec4c5cb7d6ce Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 10 Feb 2025 12:32:53 -0500 Subject: [PATCH 2048/2363] chore: Update generation configuration at Sat Feb 8 02:22:18 UTC 2025 (#2330) * chore: Update generation configuration at Wed Jan 29 02:22:57 UTC 2025 * chore: Update generation configuration at Thu Jan 30 02:22:19 UTC 2025 * chore: Update generation configuration at Fri Jan 31 02:23:28 UTC 2025 * chore: generate libraries at Fri Jan 31 02:24:00 UTC 2025 * chore: Update generation configuration at Mon Feb 3 02:24:21 UTC 2025 * chore: Update generation configuration at Tue Feb 4 02:23:44 UTC 2025 * chore: Update generation configuration at Wed Feb 5 02:24:49 UTC 2025 * chore: generate libraries at Wed Feb 5 02:25:31 UTC 2025 * chore: Update generation configuration at Thu Feb 6 02:25:06 UTC 2025 * chore: Update generation configuration at Fri Feb 7 02:25:37 UTC 2025 * chore: Update generation configuration at Sat Feb 8 02:22:18 UTC 2025 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 4 +- .../pubsub/v1/SubscriptionAdminClient.java | 2 + .../cloud/pubsub/v1/TopicAdminClient.java | 2 + .../reflect-config.json | 36 + .../SubscriptionAdminClientHttpJsonTest.java | 10 + .../v1/SubscriptionAdminClientTest.java | 8 + .../v1/TopicAdminClientHttpJsonTest.java | 8 + .../cloud/pubsub/v1/TopicAdminClientTest.java | 6 + .../v1/DeleteSchemaRevisionRequest.java | 14 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/JavaScriptUDF.java | 1015 +++++++++++++++++ .../pubsub/v1/JavaScriptUDFOrBuilder.java | 136 +++ .../google/pubsub/v1/MessageTransform.java | 944 +++++++++++++++ .../pubsub/v1/MessageTransformOrBuilder.java | 86 ++ .../com/google/pubsub/v1/PubsubProto.java | 812 ++++++------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 8 +- .../com/google/pubsub/v1/Subscription.java | 576 +++++++++- .../pubsub/v1/SubscriptionOrBuilder.java | 67 ++ .../main/java/com/google/pubsub/v1/Topic.java | 568 +++++++++ .../com/google/pubsub/v1/TopicOrBuilder.java | 67 ++ .../main/proto/google/pubsub/v1/pubsub.proto | 75 +- .../main/proto/google/pubsub/v1/schema.proto | 1 - 25 files changed, 4044 insertions(+), 417 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8eb21c15b8c6..e8593c9e845b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.53.0') +implementation platform('com.google.cloud:libraries-bom:26.54.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 00bdfd854455..3a2e07ac089f 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.52.0 -googleapis_commitish: 0ce8062889f30daa64eed6810e3c124ccd89608f -libraries_bom_version: 26.53.0 +googleapis_commitish: 0a459af4362c0e41b9723dd4d7edc022c552db40 +libraries_bom_version: 26.54.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 544f5e247cce..c18683cf657e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -880,6 +880,7 @@ public final Subscription createSubscription( * .setTopicMessageRetentionDuration(Duration.newBuilder().build()) * .setAnalyticsHubSubscriptionInfo( * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + * .addAllMessageTransforms(new ArrayList()) * .build(); * Subscription response = subscriptionAdminClient.createSubscription(request); * } @@ -1145,6 +1146,7 @@ public final Subscription createSubscription( * .setTopicMessageRetentionDuration(Duration.newBuilder().build()) * .setAnalyticsHubSubscriptionInfo( * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + * .addAllMessageTransforms(new ArrayList()) * .build(); * ApiFuture future = * subscriptionAdminClient.createSubscriptionCallable().futureCall(request); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 28b77c12bd8b..2e635ba437b3 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -516,6 +516,7 @@ public final Topic createTopic(ProjectTopicName name) { * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + * .addAllMessageTransforms(new ArrayList()) * .build(); * Topic response = topicAdminClient.createTopic(request); * } @@ -552,6 +553,7 @@ public final Topic createTopic(Topic request) { * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + * .addAllMessageTransforms(new ArrayList()) * .build(); * ApiFuture future = topicAdminClient.createTopicCallable().futureCall(request); * // Do something. diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index a818e377dcb3..3c5de9478ead 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -2195,6 +2195,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.JavaScriptUDF", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.JavaScriptUDF$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ListSchemaRevisionsRequest", "queryAllDeclaredConstructors": true, @@ -2465,6 +2483,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.MessageTransform", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.MessageTransform$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.ModifyAckDeadlineRequest", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 59adc7841036..711c8da98533 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -49,6 +49,7 @@ import com.google.pubsub.v1.ExpirationPolicy; import com.google.pubsub.v1.ListSnapshotsResponse; import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.MessageTransform; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.PullResponse; import com.google.pubsub.v1.PushConfig; @@ -133,6 +134,7 @@ public void createSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -202,6 +204,7 @@ public void createSubscriptionTest2() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -271,6 +274,7 @@ public void createSubscriptionTest3() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -340,6 +344,7 @@ public void createSubscriptionTest4() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -409,6 +414,7 @@ public void getSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -471,6 +477,7 @@ public void getSubscriptionTest2() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -533,6 +540,7 @@ public void updateSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -557,6 +565,7 @@ public void updateSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -607,6 +616,7 @@ public void updateSubscriptionExceptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSubscription(subscription, updateMask); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 005b32b9c0b8..6df11d0a0eb2 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -59,6 +59,7 @@ import com.google.pubsub.v1.ListSnapshotsResponse; import com.google.pubsub.v1.ListSubscriptionsRequest; import com.google.pubsub.v1.ListSubscriptionsResponse; +import com.google.pubsub.v1.MessageTransform; import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.pubsub.v1.ModifyPushConfigRequest; import com.google.pubsub.v1.ProjectName; @@ -159,6 +160,7 @@ public void createSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -225,6 +227,7 @@ public void createSubscriptionTest2() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -291,6 +294,7 @@ public void createSubscriptionTest3() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -357,6 +361,7 @@ public void createSubscriptionTest4() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -423,6 +428,7 @@ public void getSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -479,6 +485,7 @@ public void getSubscriptionTest2() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -535,6 +542,7 @@ public void updateSubscriptionTest() throws Exception { .setTopicMessageRetentionDuration(Duration.newBuilder().build()) .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockSubscriber.addResponse(expectedResponse); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index fd1ac7c907b6..5a1e1e68a164 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -50,6 +50,7 @@ import com.google.pubsub.v1.ListTopicSubscriptionsResponse; import com.google.pubsub.v1.ListTopicsResponse; import com.google.pubsub.v1.MessageStoragePolicy; +import com.google.pubsub.v1.MessageTransform; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.PublishResponse; import com.google.pubsub.v1.PubsubMessage; @@ -117,6 +118,7 @@ public void createTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -168,6 +170,7 @@ public void createTopicTest2() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -219,6 +222,7 @@ public void updateTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -232,6 +236,7 @@ public void updateTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -271,6 +276,7 @@ public void updateTopicExceptionTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateTopic(topic, updateMask); @@ -380,6 +386,7 @@ public void getTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -431,6 +438,7 @@ public void getTopicTest2() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 775b937504d9..d1e05afde22e 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -53,6 +53,7 @@ import com.google.pubsub.v1.ListTopicsRequest; import com.google.pubsub.v1.ListTopicsResponse; import com.google.pubsub.v1.MessageStoragePolicy; +import com.google.pubsub.v1.MessageTransform; import com.google.pubsub.v1.ProjectName; import com.google.pubsub.v1.PublishRequest; import com.google.pubsub.v1.PublishResponse; @@ -131,6 +132,7 @@ public void createTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockPublisher.addResponse(expectedResponse); @@ -176,6 +178,7 @@ public void createTopicTest2() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockPublisher.addResponse(expectedResponse); @@ -221,6 +224,7 @@ public void updateTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockPublisher.addResponse(expectedResponse); @@ -347,6 +351,7 @@ public void getTopicTest() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockPublisher.addResponse(expectedResponse); @@ -392,6 +397,7 @@ public void getTopicTest2() throws Exception { .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) + .addAllMessageTransforms(new ArrayList()) .build(); mockPublisher.addResponse(expectedResponse); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index d92256e6f124..3d4db9d4c20a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -142,7 +142,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The revisionId. */ @java.lang.Override @@ -171,7 +171,7 @@ public java.lang.String getRevisionId() { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The bytes for revisionId. */ @java.lang.Override @@ -699,7 +699,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The revisionId. */ @java.lang.Deprecated @@ -727,7 +727,7 @@ public java.lang.String getRevisionId() { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The bytes for revisionId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @param value The revisionId to set. * @return This builder for chaining. */ @@ -782,7 +782,7 @@ public Builder setRevisionId(java.lang.String value) { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return This builder for chaining. */ @java.lang.Deprecated @@ -805,7 +805,7 @@ public Builder clearRevisionId() { * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @param value The bytes for revisionId to set. * @return This builder for chaining. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index b5cf5e11095f..b8d8f0620f4f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface DeleteSchemaRevisionRequestOrBuilder * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The revisionId. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface DeleteSchemaRevisionRequestOrBuilder * * * @deprecated google.pubsub.v1.DeleteSchemaRevisionRequest.revision_id is deprecated. See - * google/pubsub/v1/schema.proto;l=331 + * google/pubsub/v1/schema.proto;l=330 * @return The bytes for revisionId. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java new file mode 100644 index 000000000000..f5b467debfda --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java @@ -0,0 +1,1015 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +/** + * + * + *
    + * User-defined JavaScript function that can transform or filter a Pub/Sub
    + * message.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.JavaScriptUDF} + */ +public final class JavaScriptUDF extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.JavaScriptUDF) + JavaScriptUDFOrBuilder { + private static final long serialVersionUID = 0L; + // Use JavaScriptUDF.newBuilder() to construct. + private JavaScriptUDF(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private JavaScriptUDF() { + functionName_ = ""; + code_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new JavaScriptUDF(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.JavaScriptUDF.class, + com.google.pubsub.v1.JavaScriptUDF.Builder.class); + } + + public static final int FUNCTION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object functionName_ = ""; + /** + * + * + *
    +   * Required. Name of the JavasScript function that should applied to Pub/Sub
    +   * messages.
    +   * 
    + * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The functionName. + */ + @java.lang.Override + public java.lang.String getFunctionName() { + java.lang.Object ref = functionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + functionName_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. Name of the JavasScript function that should applied to Pub/Sub
    +   * messages.
    +   * 
    + * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for functionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFunctionNameBytes() { + java.lang.Object ref = functionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + functionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object code_ = ""; + /** + * + * + *
    +   * Required. JavaScript code that contains a function `function_name` with the
    +   * below signature:
    +   *
    +   * ```
    +   *   /**
    +   *   * Transforms a Pub/Sub message.
    +   *
    +   *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
    +   *   * filter a message, return `null`. To transform a message return a map
    +   *   * with the following keys:
    +   *   *   - (required) 'data' : {string}
    +   *   *   - (optional) 'attributes' : {Object<string, string>}
    +   *   * Returning empty `attributes` will remove all attributes from the
    +   *   * message.
    +   *   *
    +   *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
    +   *   * message. Keys:
    +   *   *   - (required) 'data' : {string}
    +   *   *   - (required) 'attributes' : {Object<string, string>}
    +   *   *
    +   *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
    +   *   * Keys:
    +   *   *   - (required) 'message_id'  : {string}
    +   *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
    +   *   *   - (optional) 'ordering_key': {string}
    +   *   */
    +   *
    +   *   function <function_name>(message, metadata) {
    +   *   }
    +   * ```
    +   * 
    + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + /** + * + * + *
    +   * Required. JavaScript code that contains a function `function_name` with the
    +   * below signature:
    +   *
    +   * ```
    +   *   /**
    +   *   * Transforms a Pub/Sub message.
    +   *
    +   *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
    +   *   * filter a message, return `null`. To transform a message return a map
    +   *   * with the following keys:
    +   *   *   - (required) 'data' : {string}
    +   *   *   - (optional) 'attributes' : {Object<string, string>}
    +   *   * Returning empty `attributes` will remove all attributes from the
    +   *   * message.
    +   *   *
    +   *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
    +   *   * message. Keys:
    +   *   *   - (required) 'data' : {string}
    +   *   *   - (required) 'attributes' : {Object<string, string>}
    +   *   *
    +   *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
    +   *   * Keys:
    +   *   *   - (required) 'message_id'  : {string}
    +   *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
    +   *   *   - (optional) 'ordering_key': {string}
    +   *   */
    +   *
    +   *   function <function_name>(message, metadata) {
    +   *   }
    +   * ```
    +   * 
    + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.JavaScriptUDF)) { + return super.equals(obj); + } + com.google.pubsub.v1.JavaScriptUDF other = (com.google.pubsub.v1.JavaScriptUDF) obj; + + if (!getFunctionName().equals(other.getFunctionName())) return false; + if (!getCode().equals(other.getCode())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFunctionName().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.JavaScriptUDF parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.JavaScriptUDF prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * User-defined JavaScript function that can transform or filter a Pub/Sub
    +   * message.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.JavaScriptUDF} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.JavaScriptUDF) + com.google.pubsub.v1.JavaScriptUDFOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.JavaScriptUDF.class, + com.google.pubsub.v1.JavaScriptUDF.Builder.class); + } + + // Construct using com.google.pubsub.v1.JavaScriptUDF.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + functionName_ = ""; + code_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF getDefaultInstanceForType() { + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF build() { + com.google.pubsub.v1.JavaScriptUDF result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF buildPartial() { + com.google.pubsub.v1.JavaScriptUDF result = new com.google.pubsub.v1.JavaScriptUDF(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.JavaScriptUDF result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.functionName_ = functionName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.JavaScriptUDF) { + return mergeFrom((com.google.pubsub.v1.JavaScriptUDF) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.JavaScriptUDF other) { + if (other == com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance()) return this; + if (!other.getFunctionName().isEmpty()) { + functionName_ = other.functionName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + functionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object functionName_ = ""; + /** + * + * + *
    +     * Required. Name of the JavasScript function that should applied to Pub/Sub
    +     * messages.
    +     * 
    + * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The functionName. + */ + public java.lang.String getFunctionName() { + java.lang.Object ref = functionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + functionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. Name of the JavasScript function that should applied to Pub/Sub
    +     * messages.
    +     * 
    + * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for functionName. + */ + public com.google.protobuf.ByteString getFunctionNameBytes() { + java.lang.Object ref = functionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + functionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. Name of the JavasScript function that should applied to Pub/Sub
    +     * messages.
    +     * 
    + * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The functionName to set. + * @return This builder for chaining. + */ + public Builder setFunctionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + functionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Name of the JavasScript function that should applied to Pub/Sub
    +     * messages.
    +     * 
    + * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFunctionName() { + functionName_ = getDefaultInstance().getFunctionName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. Name of the JavasScript function that should applied to Pub/Sub
    +     * messages.
    +     * 
    + * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for functionName to set. + * @return This builder for chaining. + */ + public Builder setFunctionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + functionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object code_ = ""; + /** + * + * + *
    +     * Required. JavaScript code that contains a function `function_name` with the
    +     * below signature:
    +     *
    +     * ```
    +     *   /**
    +     *   * Transforms a Pub/Sub message.
    +     *
    +     *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
    +     *   * filter a message, return `null`. To transform a message return a map
    +     *   * with the following keys:
    +     *   *   - (required) 'data' : {string}
    +     *   *   - (optional) 'attributes' : {Object<string, string>}
    +     *   * Returning empty `attributes` will remove all attributes from the
    +     *   * message.
    +     *   *
    +     *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
    +     *   * message. Keys:
    +     *   *   - (required) 'data' : {string}
    +     *   *   - (required) 'attributes' : {Object<string, string>}
    +     *   *
    +     *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
    +     *   * Keys:
    +     *   *   - (required) 'message_id'  : {string}
    +     *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
    +     *   *   - (optional) 'ordering_key': {string}
    +     *   */
    +     *
    +     *   function <function_name>(message, metadata) {
    +     *   }
    +     * ```
    +     * 
    + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
    +     * Required. JavaScript code that contains a function `function_name` with the
    +     * below signature:
    +     *
    +     * ```
    +     *   /**
    +     *   * Transforms a Pub/Sub message.
    +     *
    +     *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
    +     *   * filter a message, return `null`. To transform a message return a map
    +     *   * with the following keys:
    +     *   *   - (required) 'data' : {string}
    +     *   *   - (optional) 'attributes' : {Object<string, string>}
    +     *   * Returning empty `attributes` will remove all attributes from the
    +     *   * message.
    +     *   *
    +     *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
    +     *   * message. Keys:
    +     *   *   - (required) 'data' : {string}
    +     *   *   - (required) 'attributes' : {Object<string, string>}
    +     *   *
    +     *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
    +     *   * Keys:
    +     *   *   - (required) 'message_id'  : {string}
    +     *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
    +     *   *   - (optional) 'ordering_key': {string}
    +     *   */
    +     *
    +     *   function <function_name>(message, metadata) {
    +     *   }
    +     * ```
    +     * 
    + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
    +     * Required. JavaScript code that contains a function `function_name` with the
    +     * below signature:
    +     *
    +     * ```
    +     *   /**
    +     *   * Transforms a Pub/Sub message.
    +     *
    +     *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
    +     *   * filter a message, return `null`. To transform a message return a map
    +     *   * with the following keys:
    +     *   *   - (required) 'data' : {string}
    +     *   *   - (optional) 'attributes' : {Object<string, string>}
    +     *   * Returning empty `attributes` will remove all attributes from the
    +     *   * message.
    +     *   *
    +     *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
    +     *   * message. Keys:
    +     *   *   - (required) 'data' : {string}
    +     *   *   - (required) 'attributes' : {Object<string, string>}
    +     *   *
    +     *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
    +     *   * Keys:
    +     *   *   - (required) 'message_id'  : {string}
    +     *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
    +     *   *   - (optional) 'ordering_key': {string}
    +     *   */
    +     *
    +     *   function <function_name>(message, metadata) {
    +     *   }
    +     * ```
    +     * 
    + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + code_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. JavaScript code that contains a function `function_name` with the
    +     * below signature:
    +     *
    +     * ```
    +     *   /**
    +     *   * Transforms a Pub/Sub message.
    +     *
    +     *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
    +     *   * filter a message, return `null`. To transform a message return a map
    +     *   * with the following keys:
    +     *   *   - (required) 'data' : {string}
    +     *   *   - (optional) 'attributes' : {Object<string, string>}
    +     *   * Returning empty `attributes` will remove all attributes from the
    +     *   * message.
    +     *   *
    +     *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
    +     *   * message. Keys:
    +     *   *   - (required) 'data' : {string}
    +     *   *   - (required) 'attributes' : {Object<string, string>}
    +     *   *
    +     *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
    +     *   * Keys:
    +     *   *   - (required) 'message_id'  : {string}
    +     *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
    +     *   *   - (optional) 'ordering_key': {string}
    +     *   */
    +     *
    +     *   function <function_name>(message, metadata) {
    +     *   }
    +     * ```
    +     * 
    + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + code_ = getDefaultInstance().getCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
    +     * Required. JavaScript code that contains a function `function_name` with the
    +     * below signature:
    +     *
    +     * ```
    +     *   /**
    +     *   * Transforms a Pub/Sub message.
    +     *
    +     *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
    +     *   * filter a message, return `null`. To transform a message return a map
    +     *   * with the following keys:
    +     *   *   - (required) 'data' : {string}
    +     *   *   - (optional) 'attributes' : {Object<string, string>}
    +     *   * Returning empty `attributes` will remove all attributes from the
    +     *   * message.
    +     *   *
    +     *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
    +     *   * message. Keys:
    +     *   *   - (required) 'data' : {string}
    +     *   *   - (required) 'attributes' : {Object<string, string>}
    +     *   *
    +     *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
    +     *   * Keys:
    +     *   *   - (required) 'message_id'  : {string}
    +     *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
    +     *   *   - (optional) 'ordering_key': {string}
    +     *   */
    +     *
    +     *   function <function_name>(message, metadata) {
    +     *   }
    +     * ```
    +     * 
    + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for code to set. + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.JavaScriptUDF) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.JavaScriptUDF) + private static final com.google.pubsub.v1.JavaScriptUDF DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.JavaScriptUDF(); + } + + public static com.google.pubsub.v1.JavaScriptUDF getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JavaScriptUDF parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java new file mode 100644 index 000000000000..2be71ea24d57 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +public interface JavaScriptUDFOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.JavaScriptUDF) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Name of the JavasScript function that should applied to Pub/Sub
    +   * messages.
    +   * 
    + * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The functionName. + */ + java.lang.String getFunctionName(); + /** + * + * + *
    +   * Required. Name of the JavasScript function that should applied to Pub/Sub
    +   * messages.
    +   * 
    + * + * string function_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for functionName. + */ + com.google.protobuf.ByteString getFunctionNameBytes(); + + /** + * + * + *
    +   * Required. JavaScript code that contains a function `function_name` with the
    +   * below signature:
    +   *
    +   * ```
    +   *   /**
    +   *   * Transforms a Pub/Sub message.
    +   *
    +   *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
    +   *   * filter a message, return `null`. To transform a message return a map
    +   *   * with the following keys:
    +   *   *   - (required) 'data' : {string}
    +   *   *   - (optional) 'attributes' : {Object<string, string>}
    +   *   * Returning empty `attributes` will remove all attributes from the
    +   *   * message.
    +   *   *
    +   *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
    +   *   * message. Keys:
    +   *   *   - (required) 'data' : {string}
    +   *   *   - (required) 'attributes' : {Object<string, string>}
    +   *   *
    +   *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
    +   *   * Keys:
    +   *   *   - (required) 'message_id'  : {string}
    +   *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
    +   *   *   - (optional) 'ordering_key': {string}
    +   *   */
    +   *
    +   *   function <function_name>(message, metadata) {
    +   *   }
    +   * ```
    +   * 
    + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + java.lang.String getCode(); + /** + * + * + *
    +   * Required. JavaScript code that contains a function `function_name` with the
    +   * below signature:
    +   *
    +   * ```
    +   *   /**
    +   *   * Transforms a Pub/Sub message.
    +   *
    +   *   * @return {(Object<string, (string | Object<string, string>)>|null)} - To
    +   *   * filter a message, return `null`. To transform a message return a map
    +   *   * with the following keys:
    +   *   *   - (required) 'data' : {string}
    +   *   *   - (optional) 'attributes' : {Object<string, string>}
    +   *   * Returning empty `attributes` will remove all attributes from the
    +   *   * message.
    +   *   *
    +   *   * @param  {(Object<string, (string | Object<string, string>)>} Pub/Sub
    +   *   * message. Keys:
    +   *   *   - (required) 'data' : {string}
    +   *   *   - (required) 'attributes' : {Object<string, string>}
    +   *   *
    +   *   * @param  {Object<string, any>} metadata - Pub/Sub message metadata.
    +   *   * Keys:
    +   *   *   - (required) 'message_id'  : {string}
    +   *   *   - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format
    +   *   *   - (optional) 'ordering_key': {string}
    +   *   */
    +   *
    +   *   function <function_name>(message, metadata) {
    +   *   }
    +   * ```
    +   * 
    + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java new file mode 100644 index 000000000000..3e077aceab36 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -0,0 +1,944 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +/** + * + * + *
    + * All supported message transforms types.
    + * 
    + * + * Protobuf type {@code google.pubsub.v1.MessageTransform} + */ +public final class MessageTransform extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageTransform) + MessageTransformOrBuilder { + private static final long serialVersionUID = 0L; + // Use MessageTransform.newBuilder() to construct. + private MessageTransform(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MessageTransform() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageTransform(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageTransform_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.MessageTransform.class, + com.google.pubsub.v1.MessageTransform.Builder.class); + } + + private int transformCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object transform_; + + public enum TransformCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + JAVASCRIPT_UDF(2), + TRANSFORM_NOT_SET(0); + private final int value; + + private TransformCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TransformCase valueOf(int value) { + return forNumber(value); + } + + public static TransformCase forNumber(int value) { + switch (value) { + case 2: + return JAVASCRIPT_UDF; + case 0: + return TRANSFORM_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TransformCase getTransformCase() { + return TransformCase.forNumber(transformCase_); + } + + public static final int JAVASCRIPT_UDF_FIELD_NUMBER = 2; + /** + * + * + *
    +   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +   * are specified on a resource, each must have a unique `function_name`.
    +   * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the javascriptUdf field is set. + */ + @java.lang.Override + public boolean hasJavascriptUdf() { + return transformCase_ == 2; + } + /** + * + * + *
    +   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +   * are specified on a resource, each must have a unique `function_name`.
    +   * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The javascriptUdf. + */ + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf() { + if (transformCase_ == 2) { + return (com.google.pubsub.v1.JavaScriptUDF) transform_; + } + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + /** + * + * + *
    +   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +   * are specified on a resource, each must have a unique `function_name`.
    +   * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { + if (transformCase_ == 2) { + return (com.google.pubsub.v1.JavaScriptUDF) transform_; + } + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + + public static final int ENABLED_FIELD_NUMBER = 3; + private boolean enabled_ = false; + /** + * + * + *
    +   * Optional. If set to true, the transform is enabled. If false, the transform
    +   * is disabled and will not be applied to messages. Defaults to `true`.
    +   * 
    + * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (transformCase_ == 2) { + output.writeMessage(2, (com.google.pubsub.v1.JavaScriptUDF) transform_); + } + if (enabled_ != false) { + output.writeBool(3, enabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (transformCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.pubsub.v1.JavaScriptUDF) transform_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enabled_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.MessageTransform)) { + return super.equals(obj); + } + com.google.pubsub.v1.MessageTransform other = (com.google.pubsub.v1.MessageTransform) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getTransformCase().equals(other.getTransformCase())) return false; + switch (transformCase_) { + case 2: + if (!getJavascriptUdf().equals(other.getJavascriptUdf())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + switch (transformCase_) { + case 2: + hash = (37 * hash) + JAVASCRIPT_UDF_FIELD_NUMBER; + hash = (53 * hash) + getJavascriptUdf().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.MessageTransform parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.MessageTransform parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.MessageTransform parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.MessageTransform parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.MessageTransform prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
    +   * All supported message transforms types.
    +   * 
    + * + * Protobuf type {@code google.pubsub.v1.MessageTransform} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.MessageTransform) + com.google.pubsub.v1.MessageTransformOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageTransform_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.MessageTransform.class, + com.google.pubsub.v1.MessageTransform.Builder.class); + } + + // Construct using com.google.pubsub.v1.MessageTransform.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (javascriptUdfBuilder_ != null) { + javascriptUdfBuilder_.clear(); + } + enabled_ = false; + transformCase_ = 0; + transform_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_MessageTransform_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.MessageTransform getDefaultInstanceForType() { + return com.google.pubsub.v1.MessageTransform.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.MessageTransform build() { + com.google.pubsub.v1.MessageTransform result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.MessageTransform buildPartial() { + com.google.pubsub.v1.MessageTransform result = + new com.google.pubsub.v1.MessageTransform(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.MessageTransform result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enabled_ = enabled_; + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.MessageTransform result) { + result.transformCase_ = transformCase_; + result.transform_ = this.transform_; + if (transformCase_ == 2 && javascriptUdfBuilder_ != null) { + result.transform_ = javascriptUdfBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.MessageTransform) { + return mergeFrom((com.google.pubsub.v1.MessageTransform) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.MessageTransform other) { + if (other == com.google.pubsub.v1.MessageTransform.getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + switch (other.getTransformCase()) { + case JAVASCRIPT_UDF: + { + mergeJavascriptUdf(other.getJavascriptUdf()); + break; + } + case TRANSFORM_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage(getJavascriptUdfFieldBuilder().getBuilder(), extensionRegistry); + transformCase_ = 2; + break; + } // case 18 + case 24: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int transformCase_ = 0; + private java.lang.Object transform_; + + public TransformCase getTransformCase() { + return TransformCase.forNumber(transformCase_); + } + + public Builder clearTransform() { + transformCase_ = 0; + transform_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.JavaScriptUDF, + com.google.pubsub.v1.JavaScriptUDF.Builder, + com.google.pubsub.v1.JavaScriptUDFOrBuilder> + javascriptUdfBuilder_; + /** + * + * + *
    +     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +     * are specified on a resource, each must have a unique `function_name`.
    +     * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the javascriptUdf field is set. + */ + @java.lang.Override + public boolean hasJavascriptUdf() { + return transformCase_ == 2; + } + /** + * + * + *
    +     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +     * are specified on a resource, each must have a unique `function_name`.
    +     * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The javascriptUdf. + */ + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf() { + if (javascriptUdfBuilder_ == null) { + if (transformCase_ == 2) { + return (com.google.pubsub.v1.JavaScriptUDF) transform_; + } + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } else { + if (transformCase_ == 2) { + return javascriptUdfBuilder_.getMessage(); + } + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +     * are specified on a resource, each must have a unique `function_name`.
    +     * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF value) { + if (javascriptUdfBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transform_ = value; + onChanged(); + } else { + javascriptUdfBuilder_.setMessage(value); + } + transformCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +     * are specified on a resource, each must have a unique `function_name`.
    +     * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF.Builder builderForValue) { + if (javascriptUdfBuilder_ == null) { + transform_ = builderForValue.build(); + onChanged(); + } else { + javascriptUdfBuilder_.setMessage(builderForValue.build()); + } + transformCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +     * are specified on a resource, each must have a unique `function_name`.
    +     * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF value) { + if (javascriptUdfBuilder_ == null) { + if (transformCase_ == 2 + && transform_ != com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance()) { + transform_ = + com.google.pubsub.v1.JavaScriptUDF.newBuilder( + (com.google.pubsub.v1.JavaScriptUDF) transform_) + .mergeFrom(value) + .buildPartial(); + } else { + transform_ = value; + } + onChanged(); + } else { + if (transformCase_ == 2) { + javascriptUdfBuilder_.mergeFrom(value); + } else { + javascriptUdfBuilder_.setMessage(value); + } + } + transformCase_ = 2; + return this; + } + /** + * + * + *
    +     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +     * are specified on a resource, each must have a unique `function_name`.
    +     * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearJavascriptUdf() { + if (javascriptUdfBuilder_ == null) { + if (transformCase_ == 2) { + transformCase_ = 0; + transform_ = null; + onChanged(); + } + } else { + if (transformCase_ == 2) { + transformCase_ = 0; + transform_ = null; + } + javascriptUdfBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +     * are specified on a resource, each must have a unique `function_name`.
    +     * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.JavaScriptUDF.Builder getJavascriptUdfBuilder() { + return getJavascriptUdfFieldBuilder().getBuilder(); + } + /** + * + * + *
    +     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +     * are specified on a resource, each must have a unique `function_name`.
    +     * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { + if ((transformCase_ == 2) && (javascriptUdfBuilder_ != null)) { + return javascriptUdfBuilder_.getMessageOrBuilder(); + } else { + if (transformCase_ == 2) { + return (com.google.pubsub.v1.JavaScriptUDF) transform_; + } + return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + } + /** + * + * + *
    +     * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +     * are specified on a resource, each must have a unique `function_name`.
    +     * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.JavaScriptUDF, + com.google.pubsub.v1.JavaScriptUDF.Builder, + com.google.pubsub.v1.JavaScriptUDFOrBuilder> + getJavascriptUdfFieldBuilder() { + if (javascriptUdfBuilder_ == null) { + if (!(transformCase_ == 2)) { + transform_ = com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); + } + javascriptUdfBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.JavaScriptUDF, + com.google.pubsub.v1.JavaScriptUDF.Builder, + com.google.pubsub.v1.JavaScriptUDFOrBuilder>( + (com.google.pubsub.v1.JavaScriptUDF) transform_, getParentForChildren(), isClean()); + transform_ = null; + } + transformCase_ = 2; + onChanged(); + return javascriptUdfBuilder_; + } + + private boolean enabled_; + /** + * + * + *
    +     * Optional. If set to true, the transform is enabled. If false, the transform
    +     * is disabled and will not be applied to messages. Defaults to `true`.
    +     * 
    + * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
    +     * Optional. If set to true, the transform is enabled. If false, the transform
    +     * is disabled and will not be applied to messages. Defaults to `true`.
    +     * 
    + * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. If set to true, the transform is enabled. If false, the transform
    +     * is disabled and will not be applied to messages. Defaults to `true`.
    +     * 
    + * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + enabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.MessageTransform) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.MessageTransform) + private static final com.google.pubsub.v1.MessageTransform DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.MessageTransform(); + } + + public static com.google.pubsub.v1.MessageTransform getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageTransform parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.MessageTransform getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java new file mode 100644 index 000000000000..8744837b1dbf --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.5 +package com.google.pubsub.v1; + +public interface MessageTransformOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.MessageTransform) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +   * are specified on a resource, each must have a unique `function_name`.
    +   * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the javascriptUdf field is set. + */ + boolean hasJavascriptUdf(); + /** + * + * + *
    +   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +   * are specified on a resource, each must have a unique `function_name`.
    +   * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The javascriptUdf. + */ + com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf(); + /** + * + * + *
    +   * Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's
    +   * are specified on a resource, each must have a unique `function_name`.
    +   * 
    + * + * + * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder(); + + /** + * + * + *
    +   * Optional. If set to true, the transform is enabled. If false, the transform
    +   * is disabled and will not be applied to messages. Defaults to `true`.
    +   * 
    + * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + boolean getEnabled(); + + com.google.pubsub.v1.MessageTransform.TransformCase getTransformCase(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 57f1e97fc79a..e3124be2cee2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -104,6 +104,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_MessageTransform_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -483,352 +491,362 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "t\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_reason\030\005 \001" + "(\0132:.google.pubsub.v1.IngestionFailureEv" + "ent.ApiViolationReasonB\003\340A\001H\000B\010\n\006reasonB" - + "\t\n\007failure\"\272\005\n\005Topic\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" - + "8\n\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic" - + ".LabelsEntryB\003\340A\001\022K\n\026message_storage_pol" - + "icy\030\003 \001(\0132&.google.pubsub.v1.MessageStor" - + "agePolicyB\003\340A\001\022\031\n\014kms_key_name\030\005 \001(\tB\003\340A" - + "\001\022>\n\017schema_settings\030\006 \001(\0132 .google.pubs" - + "ub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsatisfies_p" - + "zs\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_durat" - + "ion\030\010 \001(\0132\031.google.protobuf.DurationB\003\340A" - + "\001\0221\n\005state\030\t \001(\0162\035.google.pubsub.v1.Topi" - + "c.StateB\003\340A\003\022Z\n\036ingestion_data_source_se" - + "ttings\030\n \001(\0132-.google.pubsub.v1.Ingestio" - + "nDataSourceSettingsB\003\340A\001\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030I" - + "NGESTION_RESOURCE_ERROR\020\002:T\352AQ\n\033pubsub.g" - + "oogleapis.com/Topic\022!projects/{project}/" - + "topics/{topic}\022\017_deleted-topic_\"\200\002\n\rPubs" - + "ubMessage\022\021\n\004data\030\001 \001(\014B\003\340A\001\022H\n\nattribut" - + "es\030\002 \003(\0132/.google.pubsub.v1.PubsubMessag" - + "e.AttributesEntryB\003\340A\001\022\022\n\nmessage_id\030\003 \001" - + "(\t\0220\n\014publish_time\030\004 \001(\0132\032.google.protob" - + "uf.Timestamp\022\031\n\014ordering_key\030\005 \001(\tB\003\340A\001\032" - + "1\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\"E\n\017GetTopicRequest\0222\n\005topic\030\001" - + " \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topi" - + "c\"w\n\022UpdateTopicRequest\022+\n\005topic\030\001 \001(\0132\027" - + ".google.pubsub.v1.TopicB\003\340A\002\0224\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\"|\n\016PublishRequest\0222\n\005topic\030\001 \001(\tB#\340A\002" - + "\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\010mess" - + "ages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMess" - + "ageB\003\340A\002\"+\n\017PublishResponse\022\030\n\013message_i" - + "ds\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopicsRequest\022D\n\007p" - + "roject\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanag" - + "er.googleapis.com/Project\022\026\n\tpage_size\030\002" - + " \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"`\n\022Li" - + "stTopicsResponse\022,\n\006topics\030\001 \003(\0132\027.googl" - + "e.pubsub.v1.TopicB\003\340A\001\022\034\n\017next_page_toke" - + "n\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicSubscriptionsR" - + "equest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.go" - + "ogleapis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\201\001\n\036ListTopi" - + "cSubscriptionsResponse\022A\n\rsubscriptions\030" - + "\001 \003(\tB*\340A\001\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" - + "\200\001\n\031ListTopicSnapshotsRequest\0222\n\005topic\030\001" - + " \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/Topi" - + "c\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030" - + "\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnapshotsResponse" - + "\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n\017next_page_to" - + "ken\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTopicRequest\0222\n\005" - + "topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" - + "om/Topic\"]\n\031DetachSubscriptionRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.goog" - + "leapis.com/Subscription\"\034\n\032DetachSubscri" - + "ptionResponse\"\253\n\n\014Subscription\022\021\n\004name\030\001" - + " \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub" - + ".googleapis.com/Topic\0226\n\013push_config\030\004 \001" - + "(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" - + "\017bigquery_config\030\022 \001(\0132 .google.pubsub.v" - + "1.BigQueryConfigB\003\340A\001\022G\n\024cloud_storage_c" - + "onfig\030\026 \001(\0132$.google.pubsub.v1.CloudStor" - + "ageConfigB\003\340A\001\022!\n\024ack_deadline_seconds\030\005" - + " \001(\005B\003\340A\001\022\"\n\025retain_acked_messages\030\007 \001(\010" - + "B\003\340A\001\022B\n\032message_retention_duration\030\010 \001(" - + "\0132\031.google.protobuf.DurationB\003\340A\001\022?\n\006lab" - + "els\030\t \003(\0132*.google.pubsub.v1.Subscriptio" - + "n.LabelsEntryB\003\340A\001\022$\n\027enable_message_ord" - + "ering\030\n \001(\010B\003\340A\001\022B\n\021expiration_policy\030\013 " - + "\001(\0132\".google.pubsub.v1.ExpirationPolicyB" - + "\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C\n\022dead_letter" - + "_policy\030\r \001(\0132\".google.pubsub.v1.DeadLet" - + "terPolicyB\003\340A\001\0228\n\014retry_policy\030\016 \001(\0132\035.g" - + "oogle.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n\010deta" - + "ched\030\017 \001(\010B\003\340A\001\022)\n\034enable_exactly_once_d" - + "elivery\030\020 \001(\010B\003\340A\001\022H\n topic_message_rete" - + "ntion_duration\030\021 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\003\0228\n\005state\030\023 \001(\0162$.google.pub" - + "sub.v1.Subscription.StateB\003\340A\003\022i\n\037analyt" - + "ics_hub_subscription_info\030\027 \001(\0132;.google" - + ".pubsub.v1.Subscription.AnalyticsHubSubs" - + "criptionInfoB\003\340A\003\032O\n\034AnalyticsHubSubscri" - + "ptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014subsc" - + "ription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOURC" - + "E_ERROR\020\002:X\352AU\n\"pubsub.googleapis.com/Su" - + "bscription\022/projects/{project}/subscript" - + "ions/{subscription}\"\177\n\013RetryPolicy\0227\n\017mi" - + "nimum_backoff\030\001 \001(\0132\031.google.protobuf.Du" - + "rationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(\0132\031.g" - + "oogle.protobuf.DurationB\003\340A\001\"V\n\020DeadLett" - + "erPolicy\022\036\n\021dead_letter_topic\030\001 \001(\tB\003\340A\001" - + "\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A\001\"?\n\020" - + "ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.google.p" - + "rotobuf.DurationB\003\340A\001\"\232\004\n\nPushConfig\022\032\n\r" - + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattributes\030\002" - + " \003(\0132,.google.pubsub.v1.PushConfig.Attri" - + "butesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\0132&.go" - + "ogle.pubsub.v1.PushConfig.OidcTokenB\003\340A\001" - + "H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google.pubs" - + "ub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n" - + "\nno_wrapper\030\005 \001(\0132&.google.pubsub.v1.Pus" - + "hConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcToken\022\"\n" - + "\025service_account_email\030\001 \001(\tB\003\340A\001\022\025\n\010aud" - + "ience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(\n\tNoW" - + "rapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\0321\n\017A" - + "ttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001B\027\n\025authentication_methodB\t\n\007wrapp" - + "er\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(\tB\003\340A" - + "\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n\016writ" - + "e_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unknown_fi" - + "elds\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.google." - + "pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n\020u" - + "se_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025service_ac" - + "count_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STAT" - + "E_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSIO" - + "N_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISM" - + "ATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTRICTIO" - + "N\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucket\030\001 \001" - + "(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n" - + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_" - + "datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_confi" - + "g\030\004 \001(\0132/.google.pubsub.v1.CloudStorageC" - + "onfig.TextConfigB\003\340A\001H\000\022K\n\013avro_config\030\005" - + " \001(\0132/.google.pubsub.v1.CloudStorageConf" - + "ig.AvroConfigB\003\340A\001H\000\0224\n\014max_duration\030\006 \001" - + "(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n\tma" - + "x_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030\010 \001(\003" - + "B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsub.v1." - + "CloudStorageConfig.StateB\003\340A\003\022\"\n\025service" - + "_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032" - + "H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340" - + "A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005St" - + "ate\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025" - + "\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037" - + "IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n\017SCH" - + "EMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017Recei" - + "vedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007messa" - + "ge\030\002 \001(\0132\037.google.pubsub.v1.PubsubMessag" - + "eB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" - + "\026GetSubscriptionRequest\022@\n\014subscription\030" - + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\"\214\001\n\031UpdateSubscriptionRequest\022" - + "9\n\014subscription\030\001 \001(\0132\036.google.pubsub.v1" - + ".SubscriptionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001\n\030Lis" - + "tSubscriptionsRequest\022D\n\007project\030\001 \001(\tB3" - + "\340A\002\372A-\n+cloudresourcemanager.googleapis." - + "com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" - + "age_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscription" - + "sResponse\022:\n\rsubscriptions\030\001 \003(\0132\036.googl" - + "e.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017next_pa" - + "ge_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptio" - + "nRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" - + "pubsub.googleapis.com/Subscription\"\223\001\n\027M" - + "odifyPushConfigRequest\022@\n\014subscription\030\001" - + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" - + "cription\0226\n\013push_config\030\002 \001(\0132\034.google.p" - + "ubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRequest" - + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\022!\n\022return_imm" - + "ediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 " - + "\001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021received_mes" - + "sages\030\001 \003(\0132!.google.pubsub.v1.ReceivedM" - + "essageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRequest" - + "\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.g" - + "oogleapis.com/Subscription\022\024\n\007ack_ids\030\004 " - + "\003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 \001(\005B\003" - + "\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscriptio" - + "n\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/S" - + "ubscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024St" - + "reamingPullRequest\022@\n\014subscription\030\001 \001(\t" - + "B*\340A\002\372A$\n\"pubsub.googleapis.com/Subscrip" - + "tion\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_dea" - + "dline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadl" - + "ine_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_dea" - + "dline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 " - + "\001(\tB\003\340A\001\022%\n\030max_outstanding_messages\030\007 \001" - + "(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 \001(\003B\003" - + "\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021receive" + + "\t\n\007failure\">\n\rJavaScriptUDF\022\032\n\rfunction_" + + "name\030\001 \001(\tB\003\340A\002\022\021\n\004code\030\002 \001(\tB\003\340A\002\"u\n\020Me" + + "ssageTransform\022>\n\016javascript_udf\030\002 \001(\0132\037" + + ".google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\024" + + "\n\007enabled\030\003 \001(\010B\003\340A\001B\013\n\ttransform\"\216\006\n\005To" + + "pic\022\021\n\004name\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#" + + ".google.pubsub.v1.Topic.LabelsEntryB\003\340A\001" + + "\022K\n\026message_storage_policy\030\003 \001(\0132&.googl" + + "e.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" + + "\014kms_key_name\030\005 \001(\tB\003\340A\001\022>\n\017schema_setti" + + "ngs\030\006 \001(\0132 .google.pubsub.v1.SchemaSetti" + + "ngsB\003\340A\001\022\032\n\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032" + + "message_retention_duration\030\010 \001(\0132\031.googl" + + "e.protobuf.DurationB\003\340A\001\0221\n\005state\030\t \001(\0162" + + "\035.google.pubsub.v1.Topic.StateB\003\340A\003\022Z\n\036i" + + "ngestion_data_source_settings\030\n \001(\0132-.go" + + "ogle.pubsub.v1.IngestionDataSourceSettin" + + "gsB\003\340A\001\022C\n\022message_transforms\030\r \003(\0132\".go" + + "ogle.pubsub.v1.MessageTransformB\003\340A\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006A" + + "CTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:c\352" + + "A`\n\033pubsub.googleapis.com/Topic\022!project" + + "s/{project}/topics/{topic}\022\017_deleted-top" + + "ic_*\006topics2\005topic\"\200\002\n\rPubsubMessage\022\021\n\004" + + "data\030\001 \001(\014B\003\340A\001\022H\n\nattributes\030\002 \003(\0132/.go" + + "ogle.pubsub.v1.PubsubMessage.AttributesE" + + "ntryB\003\340A\001\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish" + + "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022" + + "\031\n\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n\017Attributes" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n" + + "\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\"w\n\022UpdateTo" + + "picRequest\022+\n\005topic\030\001 \001(\0132\027.google.pubsu" + + "b.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\002\"|\n\016Publish" + + "Request\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.g" + + "oogleapis.com/Topic\0226\n\010messages\030\002 \003(\0132\037." + + "google.pubsub.v1.PubsubMessageB\003\340A\002\"+\n\017P" + + "ublishResponse\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001" + + "\"\212\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB" + + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" + + ".com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"`\n\022ListTopicsRespo" + + "nse\022,\n\006topics\030\001 \003(\0132\027.google.pubsub.v1.T" + + "opicB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" + + "\204\001\n\035ListTopicSubscriptionsRequest\0222\n\005top" + + "ic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/" + + "Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\"\201\001\n\036ListTopicSubscription" + + "sResponse\022A\n\rsubscriptions\030\001 \003(\tB*\340A\001\372A$" + + "\n\"pubsub.googleapis.com/Subscription\022\034\n\017" + + "next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopic" + + "SnapshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n" + + "\032ListTopicSnapshotsResponse\022\026\n\tsnapshots" + + "\030\001 \003(\tB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" + + "\001\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001 \001(\tB#" + + "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"]\n\031D" + + "etachSubscriptionRequest\022@\n\014subscription" + + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" + + "bscription\"\034\n\032DetachSubscriptionResponse" + + "\"\215\013\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005" + + "topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" + + "om/Topic\0226\n\013push_config\030\004 \001(\0132\034.google.p" + + "ubsub.v1.PushConfigB\003\340A\001\022>\n\017bigquery_con" + + "fig\030\022 \001(\0132 .google.pubsub.v1.BigQueryCon" + + "figB\003\340A\001\022G\n\024cloud_storage_config\030\026 \001(\0132$" + + ".google.pubsub.v1.CloudStorageConfigB\003\340A" + + "\001\022!\n\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025" + + "retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n\032mess" + + "age_retention_duration\030\010 \001(\0132\031.google.pr" + + "otobuf.DurationB\003\340A\001\022?\n\006labels\030\t \003(\0132*.g" + + "oogle.pubsub.v1.Subscription.LabelsEntry" + + "B\003\340A\001\022$\n\027enable_message_ordering\030\n \001(\010B\003" + + "\340A\001\022B\n\021expiration_policy\030\013 \001(\0132\".google." + + "pubsub.v1.ExpirationPolicyB\003\340A\001\022\023\n\006filte" + + "r\030\014 \001(\tB\003\340A\001\022C\n\022dead_letter_policy\030\r \001(\013" + + "2\".google.pubsub.v1.DeadLetterPolicyB\003\340A" + + "\001\0228\n\014retry_policy\030\016 \001(\0132\035.google.pubsub." + + "v1.RetryPolicyB\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340" + + "A\001\022)\n\034enable_exactly_once_delivery\030\020 \001(\010" + + "B\003\340A\001\022H\n topic_message_retention_duratio" + + "n\030\021 \001(\0132\031.google.protobuf.DurationB\003\340A\003\022" + + "8\n\005state\030\023 \001(\0162$.google.pubsub.v1.Subscr" + + "iption.StateB\003\340A\003\022i\n\037analytics_hub_subsc" + + "ription_info\030\027 \001(\0132;.google.pubsub.v1.Su" + + "bscription.AnalyticsHubSubscriptionInfoB" + + "\003\340A\003\022C\n\022message_transforms\030\031 \003(\0132\".googl" + + "e.pubsub.v1.MessageTransformB\003\340A\001\032O\n\034Ana" + + "lyticsHubSubscriptionInfo\022\024\n\007listing\030\001 \001" + + "(\tB\003\340A\001\022\031\n\014subscription\030\002 \001(\tB\003\340A\001\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" + + "IVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:u\352Ar\n\"pubsub.g" + + "oogleapis.com/Subscription\022/projects/{pr" + + "oject}/subscriptions/{subscription}*\rsub" + + "scriptions2\014subscription\"\177\n\013RetryPolicy\022" + + "7\n\017minimum_backoff\030\001 \001(\0132\031.google.protob" + + "uf.DurationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001\"V\n\020Dea" + + "dLetterPolicy\022\036\n\021dead_letter_topic\030\001 \001(\t" + + "B\003\340A\001\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A" + + "\001\"?\n\020ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.goo" + + "gle.protobuf.DurationB\003\340A\001\"\232\004\n\nPushConfi" + + "g\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattribu" + + "tes\030\002 \003(\0132,.google.pubsub.v1.PushConfig." + + "AttributesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\013" + + "2&.google.pubsub.v1.PushConfig.OidcToken" + + "B\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google" + + ".pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001" + + "H\001\022A\n\nno_wrapper\030\005 \001(\0132&.google.pubsub.v" + + "1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcTok" + + "en\022\"\n\025service_account_email\030\001 \001(\tB\003\340A\001\022\025" + + "\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(" + + "\n\tNoWrapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001" + + "\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001B\027\n\025authentication_methodB\t\n\007" + + "wrapper\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(" + + "\tB\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unkno" + + "wn_fields\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.go" + + "ogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003" + + "\022\035\n\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025servi" + + "ce_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERM" + + "ISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA" + + "_MISMATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTR" + + "ICTION\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucke" + + "t\030\001 \001(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340" + + "A\001\022\034\n\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030file" + + "name_datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_" + + "config\030\004 \001(\0132/.google.pubsub.v1.CloudSto" + + "rageConfig.TextConfigB\003\340A\001H\000\022K\n\013avro_con" + + "fig\030\005 \001(\0132/.google.pubsub.v1.CloudStorag" + + "eConfig.AvroConfigB\003\340A\001H\000\0224\n\014max_duratio" + + "n\030\006 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022" + + "\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030" + + "\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsu" + + "b.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n\025se" + + "rvice_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextCo" + + "nfig\032H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" + + "(\010B\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212" + + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" + + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023" + + "\n\017SCHEMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017" + + "ReceivedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007" + + "message\030\002 \001(\0132\037.google.pubsub.v1.PubsubM" + + "essageB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340" + + "A\001\"Z\n\026GetSubscriptionRequest\022@\n\014subscrip" + + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" + + "m/Subscription\"\214\001\n\031UpdateSubscriptionReq" + + "uest\0229\n\014subscription\030\001 \001(\0132\036.google.pubs" + + "ub.v1.SubscriptionB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001" + + "\n\030ListSubscriptionsRequest\022D\n\007project\030\001 " + + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" + + "apis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" + + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscri" + + "ptionsResponse\022:\n\rsubscriptions\030\001 \003(\0132\036." + + "google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017ne" + + "xt_page_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscr" + + "iptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\"" + + "\223\001\n\027ModifyPushConfigRequest\022@\n\014subscript" + + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" + + "/Subscription\0226\n\013push_config\030\002 \001(\0132\034.goo" + + "gle.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\022!\n\022retur" + + "n_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messag" + + "es\030\003 \001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021receive" + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" - + "ivedMessageB\003\340A\001\022f\n\030acknowledge_confirma" - + "tion\030\005 \001(\0132?.google.pubsub.v1.StreamingP" - + "ullResponse.AcknowledgeConfirmationB\003\340A\001" - + "\022t\n modify_ack_deadline_confirmation\030\003 \001" - + "(\0132E.google.pubsub.v1.StreamingPullRespo" - + "nse.ModifyAckDeadlineConfirmationB\003\340A\001\022d" - + "\n\027subscription_properties\030\004 \001(\0132>.google" - + ".pubsub.v1.StreamingPullResponse.Subscri" - + "ptionPropertiesB\003\340A\001\032\224\001\n\027AcknowledgeConf" - + "irmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invali" - + "d_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_id" - + "s\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids" - + "\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineConfirma" - + "tion\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ac" - + "k_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_failed_ack" - + "_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionPropertie" - + "s\022*\n\035exactly_once_delivery_enabled\030\001 \001(\010" - + "B\003\340A\001\022%\n\030message_ordering_enabled\030\002 \001(\010B" - + "\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004name\030\001" - + " \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snap" - + "shot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n\"pubs" - + "ub.googleapis.com/Subscription\022H\n\006labels" - + "\030\003 \003(\01323.google.pubsub.v1.CreateSnapshot" - + "Request.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025Upda" - + "teSnapshotRequest\0221\n\010snapshot\030\001 \001(\0132\032.go" - + "ogle.pubsub.v1.SnapshotB\003\340A\002\0224\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\"\301\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005to" - + "pic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapis.com" - + "/Topic\0224\n\013expire_time\030\003 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.g" - + "oogle.pubsub.v1.Snapshot.LabelsEntryB\003\340A" - + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001:L\352AI\n\036pubsub.googleapis.com/Sna" - + "pshot\022\'projects/{project}/snapshots/{sna" - + "pshot}\"N\n\022GetSnapshotRequest\0228\n\010snapshot" + + "ivedMessageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRe" + + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" + + "sub.googleapis.com/Subscription\022\024\n\007ack_i" + + "ds\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 " + + "\001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscr" + + "iption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis." + + "com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307" + + "\002\n\024StreamingPullRequest\022@\n\014subscription\030" + + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modif" + + "y_deadline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_" + + "deadline_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ac" + + "k_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_" + + "id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstanding_message" + + "s\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 " + + "\001(\003B\003\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021re" + + "ceived_messages\030\001 \003(\0132!.google.pubsub.v1" + + ".ReceivedMessageB\003\340A\001\022f\n\030acknowledge_con" + + "firmation\030\005 \001(\0132?.google.pubsub.v1.Strea" + + "mingPullResponse.AcknowledgeConfirmation" + + "B\003\340A\001\022t\n modify_ack_deadline_confirmatio" + + "n\030\003 \001(\0132E.google.pubsub.v1.StreamingPull" + + "Response.ModifyAckDeadlineConfirmationB\003" + + "\340A\001\022d\n\027subscription_properties\030\004 \001(\0132>.g" + + "oogle.pubsub.v1.StreamingPullResponse.Su" + + "bscriptionPropertiesB\003\340A\001\032\224\001\n\027Acknowledg" + + "eConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017i" + + "nvalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_a" + + "ck_ids\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ac" + + "k_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineCon" + + "firmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017inval" + + "id_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_faile" + + "d_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProp" + + "erties\022*\n\035exactly_once_delivery_enabled\030" + + "\001 \001(\010B\003\340A\001\022%\n\030message_ordering_enabled\030\002" + + " \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004n" + + "ame\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com" + + "/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022H\n\006l" + + "abels\030\003 \003(\01323.google.pubsub.v1.CreateSna" + + "pshotRequest.LabelsEntryB\003\340A\001\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n" + + "\025UpdateSnapshotRequest\0221\n\010snapshot\030\001 \001(\013" + + "2\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\002\"\326\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\022" + + "2\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapi" + + "s.com/Topic\0224\n\013expire_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(" + + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" + + "yB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001:a\352A^\n\036pubsub.googleapis.co" + + "m/Snapshot\022\'projects/{project}/snapshots" + + "/{snapshot}*\tsnapshots2\010snapshot\"N\n\022GetS" + + "napshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A " + + "\n\036pubsub.googleapis.com/Snapshot\"\215\001\n\024Lis" + + "tSnapshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372" + + "A-\n+cloudresourcemanager.googleapis.com/" + + "Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" + + "token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsRespons" + + "e\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1." + + "SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" + + "\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot" + "\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sn" - + "apshot\"\215\001\n\024ListSnapshotsRequest\022D\n\007proje" - + "ct\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.g" - + "oogleapis.com/Project\022\026\n\tpage_size\030\002 \001(\005" - + "B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSn" - + "apshotsResponse\0222\n\tsnapshots\030\001 \003(\0132\032.goo" - + "gle.pubsub.v1.SnapshotB\003\340A\001\022\034\n\017next_page" - + "_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotReque" - + "st\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.goo" - + "gleapis.com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014" - + "subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\022/\n\004time\030\002 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\001H\000\022:\n\010snaps" - + "hot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.googleapis.com" - + "/SnapshotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013" - + "\n\tPublisher\022q\n\013CreateTopic\022\027.google.pubs" - + "ub.v1.Topic\032\027.google.pubsub.v1.Topic\"0\332A" - + "\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics" - + "/*}:\001*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v" - + "1.UpdateTopicRequest\032\027.google.pubsub.v1." - + "Topic\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{" - + "topic.name=projects/*/topics/*}:\001*\022\223\001\n\007P" - + "ublish\022 .google.pubsub.v1.PublishRequest" - + "\032!.google.pubsub.v1.PublishResponse\"C\332A\016" - + "topic,messages\202\323\344\223\002,\"\'/v1/{topic=project" - + "s/*/topics/*}:publish:\001*\022w\n\010GetTopic\022!.g" - + "oogle.pubsub.v1.GetTopicRequest\032\027.google" - + ".pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{t" - + "opic=projects/*/topics/*}\022\212\001\n\nListTopics" - + "\022#.google.pubsub.v1.ListTopicsRequest\032$." - + "google.pubsub.v1.ListTopicsResponse\"1\332A\007" - + "project\202\323\344\223\002!\022\037/v1/{project=projects/*}/" - + "topics\022\272\001\n\026ListTopicSubscriptions\022/.goog" - + "le.pubsub.v1.ListTopicSubscriptionsReque" - + "st\0320.google.pubsub.v1.ListTopicSubscript" - + "ionsResponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic" - + "=projects/*/topics/*}/subscriptions\022\252\001\n\022" - + "ListTopicSnapshots\022+.google.pubsub.v1.Li" - + "stTopicSnapshotsRequest\032,.google.pubsub." - + "v1.ListTopicSnapshotsResponse\"9\332A\005topic\202" - + "\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/s" - + "napshots\022|\n\013DeleteTopic\022$.google.pubsub." - + "v1.DeleteTopicRequest\032\026.google.protobuf." - + "Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projec" - + "ts/*/topics/*}\022\255\001\n\022DetachSubscription\022+." - + "google.pubsub.v1.DetachSubscriptionReque", - "st\032,.google.pubsub.v1.DetachSubscription" - + "Response\"<\202\323\344\223\0026\"4/v1/{subscription=proj" - + "ects/*/subscriptions/*}:detach\032p\312A\025pubsu" - + "b.googleapis.com\322AUhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/pubsub2\322\025\n\nSubscriber\022" - + "\264\001\n\022CreateSubscription\022\036.google.pubsub.v" - + "1.Subscription\032\036.google.pubsub.v1.Subscr" - + "iption\"^\332A+name,topic,push_config,ack_de" - + "adline_seconds\202\323\344\223\002*\032%/v1/{name=projects" - + "/*/subscriptions/*}:\001*\022\241\001\n\017GetSubscripti" - + "on\022(.google.pubsub.v1.GetSubscriptionReq" - + "uest\032\036.google.pubsub.v1.Subscription\"D\332A" - + "\014subscription\202\323\344\223\002/\022-/v1/{subscription=p" - + "rojects/*/subscriptions/*}\022\273\001\n\022UpdateSub" - + "scription\022+.google.pubsub.v1.UpdateSubsc" - + "riptionRequest\032\036.google.pubsub.v1.Subscr" - + "iption\"X\332A\030subscription,update_mask\202\323\344\223\002" - + "722/v1/{subscription.name=projects/*/sub" - + "scriptions/*}:\001*\022\246\001\n\021ListSubscriptions\022*" - + ".google.pubsub.v1.ListSubscriptionsReque" - + "st\032+.google.pubsub.v1.ListSubscriptionsR" - + "esponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=" - + "projects/*}/subscriptions\022\237\001\n\022DeleteSubs" - + "cription\022+.google.pubsub.v1.DeleteSubscr" - + "iptionRequest\032\026.google.protobuf.Empty\"D\332" - + "A\014subscription\202\323\344\223\002/*-/v1/{subscription=" - + "projects/*/subscriptions/*}\022\317\001\n\021ModifyAc" - + "kDeadline\022*.google.pubsub.v1.ModifyAckDe" - + "adlineRequest\032\026.google.protobuf.Empty\"v\332" - + "A)subscription,ack_ids,ack_deadline_seco" - + "nds\202\323\344\223\002D\"?/v1/{subscription=projects/*/" - + "subscriptions/*}:modifyAckDeadline:\001*\022\250\001" - + "\n\013Acknowledge\022$.google.pubsub.v1.Acknowl" - + "edgeRequest\032\026.google.protobuf.Empty\"[\332A\024" - + "subscription,ack_ids\202\323\344\223\002>\"9/v1/{subscri" - + "ption=projects/*/subscriptions/*}:acknow" - + "ledge:\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.Pul" - + "lRequest\032\036.google.pubsub.v1.PullResponse" - + "\"\210\001\332A,subscription,return_immediately,ma" - + "x_messages\332A\031subscription,max_messages\202\323" - + "\344\223\0027\"2/v1/{subscription=projects/*/subsc" - + "riptions/*}:pull:\001*\022f\n\rStreamingPull\022&.g" - + "oogle.pubsub.v1.StreamingPullRequest\032\'.g" - + "oogle.pubsub.v1.StreamingPullResponse\"\000(" - + "\0010\001\022\273\001\n\020ModifyPushConfig\022).google.pubsub" - + ".v1.ModifyPushConfigRequest\032\026.google.pro" - + "tobuf.Empty\"d\332A\030subscription,push_config" - + "\202\323\344\223\002C\">/v1/{subscription=projects/*/sub" - + "scriptions/*}:modifyPushConfig:\001*\022\211\001\n\013Ge" - + "tSnapshot\022$.google.pubsub.v1.GetSnapshot" - + "Request\032\032.google.pubsub.v1.Snapshot\"8\332A\010" - + "snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*" - + "/snapshots/*}\022\226\001\n\rListSnapshots\022&.google" - + ".pubsub.v1.ListSnapshotsRequest\032\'.google" - + ".pubsub.v1.ListSnapshotsResponse\"4\332A\007pro" - + "ject\202\323\344\223\002$\022\"/v1/{project=projects/*}/sna" - + "pshots\022\227\001\n\016CreateSnapshot\022\'.google.pubsu" - + "b.v1.CreateSnapshotRequest\032\032.google.pubs" - + "ub.v1.Snapshot\"@\332A\021name,subscription\202\323\344\223" - + "\002&\032!/v1/{name=projects/*/snapshots/*}:\001*" - + "\022\243\001\n\016UpdateSnapshot\022\'.google.pubsub.v1.U" - + "pdateSnapshotRequest\032\032.google.pubsub.v1." - + "Snapshot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2" - + "*/v1/{snapshot.name=projects/*/snapshots" - + "/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsu" - + "b.v1.DeleteSnapshotRequest\032\026.google.prot" - + "obuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snap" - + "shot=projects/*/snapshots/*}\022\204\001\n\004Seek\022\035." - + "google.pubsub.v1.SeekRequest\032\036.google.pu" - + "bsub.v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subsc" - + "ription=projects/*/subscriptions/*}:seek" - + ":\001*\032p\312A\025pubsub.googleapis.com\322AUhttps://" - + "www.googleapis.com/auth/cloud-platform,h" - + "ttps://www.googleapis.com/auth/pubsubB\252\001" - + "\n\024com.google.pubsub.v1B\013PubsubProtoP\001Z2c" - + "loud.google.com/go/pubsub/apiv1/pubsubpb" - + ";pubsubpb\370\001\001\252\002\026Google.Cloud.PubSub.V1\312\002\026" - + "Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::" - + "PubSub::V1b\006proto3" + + "apshot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001" + + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" + + "cription\022/\n\004time\030\002 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001" + + "\372A \n\036pubsub.googleapis.com/SnapshotH\000B\010\n" + + "\006target\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027." + + "google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/" + + "v1/{name=projects/*/topics/*}:\001*\022\221\001\n\013Upd" + + "ateTopic\022$.google.pubsub.v1.UpdateTopicR" + + "equest\032\027.google.pubsub.v1.Topic\"C\332A\021topi" + + "c,update_mask\202\323\344\223\002)2$/v1/{topic.name=pro" + + "jects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .googl" + + "e.pubsub.v1.PublishRequest\032!.google.pubs" + + "ub.v1.PublishResponse\"C\332A\016topic,messages" + + "\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:" + + "publish:\001*\022w\n\010GetTopic\022!.google.pubsub.v" + + "1.GetTopicRequest\032\027.google.pubsub.v1.Top" + + "ic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/" + + "*/topics/*}\022\212\001\n\nListTopics\022#.google.pubs" + + "ub.v1.ListTopicsRequest\032$.google.pubsub." + + "v1.ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022" + + "\037/v1/{project=projects/*}/topics\022\272\001\n\026Lis" + + "tTopicSubscriptions\022/.google.pubsub.v1.L" + + "istTopicSubscriptionsRequest\0320.google.pu" + + "bsub.v1.ListTopicSubscriptionsResponse\"=" + + "\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/to", + "pics/*}/subscriptions\022\252\001\n\022ListTopicSnaps" + + "hots\022+.google.pubsub.v1.ListTopicSnapsho" + + "tsRequest\032,.google.pubsub.v1.ListTopicSn" + + "apshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{to" + + "pic=projects/*/topics/*}/snapshots\022|\n\013De" + + "leteTopic\022$.google.pubsub.v1.DeleteTopic" + + "Request\032\026.google.protobuf.Empty\"/\332A\005topi" + + "c\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}" + + "\022\255\001\n\022DetachSubscription\022+.google.pubsub." + + "v1.DetachSubscriptionRequest\032,.google.pu" + + "bsub.v1.DetachSubscriptionResponse\"<\202\323\344\223" + + "\0026\"4/v1/{subscription=projects/*/subscri" + + "ptions/*}:detach\032p\312A\025pubsub.googleapis.c" + + "om\322AUhttps://www.googleapis.com/auth/clo" + + "ud-platform,https://www.googleapis.com/a" + + "uth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubs" + + "cription\022\036.google.pubsub.v1.Subscription" + + "\032\036.google.pubsub.v1.Subscription\"^\332A+nam" + + "e,topic,push_config,ack_deadline_seconds" + + "\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptio" + + "ns/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pu" + + "bsub.v1.GetSubscriptionRequest\032\036.google." + + "pubsub.v1.Subscription\"D\332A\014subscription\202" + + "\323\344\223\002/\022-/v1/{subscription=projects/*/subs" + + "criptions/*}\022\273\001\n\022UpdateSubscription\022+.go" + + "ogle.pubsub.v1.UpdateSubscriptionRequest" + + "\032\036.google.pubsub.v1.Subscription\"X\332A\030sub" + + "scription,update_mask\202\323\344\223\002722/v1/{subscr" + + "iption.name=projects/*/subscriptions/*}:" + + "\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsub" + + ".v1.ListSubscriptionsRequest\032+.google.pu" + + "bsub.v1.ListSubscriptionsResponse\"8\332A\007pr" + + "oject\202\323\344\223\002(\022&/v1/{project=projects/*}/su" + + "bscriptions\022\237\001\n\022DeleteSubscription\022+.goo" + + "gle.pubsub.v1.DeleteSubscriptionRequest\032" + + "\026.google.protobuf.Empty\"D\332A\014subscription" + + "\202\323\344\223\002/*-/v1/{subscription=projects/*/sub" + + "scriptions/*}\022\317\001\n\021ModifyAckDeadline\022*.go" + + "ogle.pubsub.v1.ModifyAckDeadlineRequest\032" + + "\026.google.protobuf.Empty\"v\332A)subscription" + + ",ack_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1" + + "/{subscription=projects/*/subscriptions/" + + "*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022" + + "$.google.pubsub.v1.AcknowledgeRequest\032\026." + + "google.protobuf.Empty\"[\332A\024subscription,a" + + "ck_ids\202\323\344\223\002>\"9/v1/{subscription=projects" + + "/*/subscriptions/*}:acknowledge:\001*\022\320\001\n\004P" + + "ull\022\035.google.pubsub.v1.PullRequest\032\036.goo" + + "gle.pubsub.v1.PullResponse\"\210\001\332A,subscrip" + + "tion,return_immediately,max_messages\332A\031s" + + "ubscription,max_messages\202\323\344\223\0027\"2/v1/{sub" + + "scription=projects/*/subscriptions/*}:pu" + + "ll:\001*\022f\n\rStreamingPull\022&.google.pubsub.v" + + "1.StreamingPullRequest\032\'.google.pubsub.v" + + "1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Modify" + + "PushConfig\022).google.pubsub.v1.ModifyPush" + + "ConfigRequest\032\026.google.protobuf.Empty\"d\332" + + "A\030subscription,push_config\202\323\344\223\002C\">/v1/{s" + + "ubscription=projects/*/subscriptions/*}:" + + "modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.go" + + "ogle.pubsub.v1.GetSnapshotRequest\032\032.goog" + + "le.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'" + + "\022%/v1/{snapshot=projects/*/snapshots/*}\022" + + "\226\001\n\rListSnapshots\022&.google.pubsub.v1.Lis" + + "tSnapshotsRequest\032\'.google.pubsub.v1.Lis" + + "tSnapshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v" + + "1/{project=projects/*}/snapshots\022\227\001\n\016Cre" + + "ateSnapshot\022\'.google.pubsub.v1.CreateSna" + + "pshotRequest\032\032.google.pubsub.v1.Snapshot" + + "\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=" + + "projects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSna" + + "pshot\022\'.google.pubsub.v1.UpdateSnapshotR" + + "equest\032\032.google.pubsub.v1.Snapshot\"L\332A\024s" + + "napshot,update_mask\202\323\344\223\002/2*/v1/{snapshot" + + ".name=projects/*/snapshots/*}:\001*\022\213\001\n\016Del" + + "eteSnapshot\022\'.google.pubsub.v1.DeleteSna" + + "pshotRequest\032\026.google.protobuf.Empty\"8\332A" + + "\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=projects/" + + "*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub." + + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" + + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" + + "ts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub" + + ".googleapis.com\322AUhttps://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/pubsubB\247\001\n\024com.google.p" + + "ubsub.v1B\013PubsubProtoP\001Z2cloud.google.co" + + "m/go/pubsub/apiv1/pubsubpb;pubsubpb\252\002\026Go" + + "ogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubS" + + "ub\\V1\352\002\031Google::Cloud::PubSub::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1040,7 +1058,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ClusterId", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_JavaScriptUDF_descriptor, + new java.lang.String[] { + "FunctionName", "Code", + }); + internal_static_google_pubsub_v1_MessageTransform_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_MessageTransform_descriptor, + new java.lang.String[] { + "JavascriptUdf", "Enabled", "Transform", + }); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, @@ -1054,6 +1088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageRetentionDuration", "State", "IngestionDataSourceSettings", + "MessageTransforms", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); @@ -1064,7 +1099,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -1080,7 +1115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, @@ -1088,7 +1123,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, @@ -1096,7 +1131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, @@ -1104,7 +1139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, @@ -1112,7 +1147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, @@ -1120,7 +1155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, @@ -1128,7 +1163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, @@ -1136,7 +1171,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, @@ -1144,7 +1179,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, @@ -1152,7 +1187,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, @@ -1160,7 +1195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, @@ -1168,7 +1203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, @@ -1176,13 +1211,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -1206,6 +1241,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TopicMessageRetentionDuration", "State", "AnalyticsHubSubscriptionInfo", + "MessageTransforms", }); internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); @@ -1224,7 +1260,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -1232,7 +1268,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -1240,7 +1276,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -1248,7 +1284,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -1292,7 +1328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, @@ -1306,7 +1342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccountEmail", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, @@ -1339,7 +1375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -1347,7 +1383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -1355,7 +1391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -1363,7 +1399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -1371,7 +1407,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -1379,7 +1415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -1387,7 +1423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -1395,7 +1431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -1403,7 +1439,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -1411,7 +1447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -1419,7 +1455,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -1427,7 +1463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -1442,7 +1478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxOutstandingBytes", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -1477,7 +1513,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -1493,7 +1529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -1501,7 +1537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1517,7 +1553,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(45); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1525,7 +1561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(46); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1533,7 +1569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(47); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1541,7 +1577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(48); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1549,7 +1585,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(49); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1557,7 +1593,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(50); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 0fcf1b660895..7345e9613e81 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1840 + * google/pubsub/v1/pubsub.proto;l=1907 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1840 + * google/pubsub/v1/pubsub.proto;l=1907 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1840 + * google/pubsub/v1/pubsub.proto;l=1907 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1840 + * google/pubsub/v1/pubsub.proto;l=1907 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 6520bf9bd7ef..0d99d58e5f76 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1840 + * google/pubsub/v1/pubsub.proto;l=1907 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index debada97ac70..27f4675b1980 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -197,11 +197,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "alidateMessage:\001*\032p\312A\025pubsub.googleapis." + "com\322AUhttps://www.googleapis.com/auth/cl" + "oud-platform,https://www.googleapis.com/" - + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Sc" + + "auth/pubsubB\247\001\n\024com.google.pubsub.v1B\013Sc" + "hemaProtoP\001Z2cloud.google.com/go/pubsub/" - + "apiv1/pubsubpb;pubsubpb\370\001\001\252\002\026Google.Clou" - + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" - + "oogle::Cloud::PubSub::V1b\006proto3" + + "apiv1/pubsubpb;pubsubpb\252\002\026Google.Cloud.P" + + "ubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Goog" + + "le::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 423ae5a49363..31581f253f34 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -45,6 +45,7 @@ private Subscription() { topic_ = ""; filter_ = ""; state_ = 0; + messageTransforms_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -308,8 +309,8 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * * *
    -   * Information about an associated Analytics Hub subscription
    -   * (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
    +   * Information about an associated [Analytics Hub
    +   * subscription](https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
        * 
    * * Protobuf type {@code google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} @@ -636,8 +637,8 @@ protected Builder newBuilderForType( * * *
    -     * Information about an associated Analytics Hub subscription
    -     * (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
    +     * Information about an associated [Analytics Hub
    +     * subscription](https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions).
          * 
    * * Protobuf type {@code google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} @@ -2192,6 +2193,92 @@ public boolean hasAnalyticsHubSubscriptionInfo() { : analyticsHubSubscriptionInfo_; } + public static final int MESSAGE_TRANSFORMS_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private java.util.List messageTransforms_; + /** + * + * + *
    +   * Optional. Transforms to be applied to messages before they are delivered to
    +   * subscribers. Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMessageTransformsList() { + return messageTransforms_; + } + /** + * + * + *
    +   * Optional. Transforms to be applied to messages before they are delivered to
    +   * subscribers. Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMessageTransformsOrBuilderList() { + return messageTransforms_; + } + /** + * + * + *
    +   * Optional. Transforms to be applied to messages before they are delivered to
    +   * subscribers. Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMessageTransformsCount() { + return messageTransforms_.size(); + } + /** + * + * + *
    +   * Optional. Transforms to be applied to messages before they are delivered to
    +   * subscribers. Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { + return messageTransforms_.get(index); + } + /** + * + * + *
    +   * Optional. Transforms to be applied to messages before they are delivered to
    +   * subscribers. Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index) { + return messageTransforms_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2262,6 +2349,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(23, getAnalyticsHubSubscriptionInfo()); } + for (int i = 0; i < messageTransforms_.size(); i++) { + output.writeMessage(25, messageTransforms_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2341,6 +2431,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 23, getAnalyticsHubSubscriptionInfo()); } + for (int i = 0; i < messageTransforms_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(25, messageTransforms_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2405,6 +2499,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAnalyticsHubSubscriptionInfo().equals(other.getAnalyticsHubSubscriptionInfo())) return false; } + if (!getMessageTransformsList().equals(other.getMessageTransformsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2474,6 +2569,10 @@ public int hashCode() { hash = (37 * hash) + ANALYTICS_HUB_SUBSCRIPTION_INFO_FIELD_NUMBER; hash = (53 * hash) + getAnalyticsHubSubscriptionInfo().hashCode(); } + if (getMessageTransformsCount() > 0) { + hash = (37 * hash) + MESSAGE_TRANSFORMS_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2646,6 +2745,7 @@ private void maybeForceBuilderInitialization() { getRetryPolicyFieldBuilder(); getTopicMessageRetentionDurationFieldBuilder(); getAnalyticsHubSubscriptionInfoFieldBuilder(); + getMessageTransformsFieldBuilder(); } } @@ -2708,6 +2808,13 @@ public Builder clear() { analyticsHubSubscriptionInfoBuilder_.dispose(); analyticsHubSubscriptionInfoBuilder_ = null; } + if (messageTransformsBuilder_ == null) { + messageTransforms_ = java.util.Collections.emptyList(); + } else { + messageTransforms_ = null; + messageTransformsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00080000); return this; } @@ -2734,6 +2841,7 @@ public com.google.pubsub.v1.Subscription build() { @java.lang.Override public com.google.pubsub.v1.Subscription buildPartial() { com.google.pubsub.v1.Subscription result = new com.google.pubsub.v1.Subscription(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -2741,6 +2849,18 @@ public com.google.pubsub.v1.Subscription buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.pubsub.v1.Subscription result) { + if (messageTransformsBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0)) { + messageTransforms_ = java.util.Collections.unmodifiableList(messageTransforms_); + bitField0_ = (bitField0_ & ~0x00080000); + } + result.messageTransforms_ = messageTransforms_; + } else { + result.messageTransforms_ = messageTransformsBuilder_.build(); + } + } + private void buildPartial0(com.google.pubsub.v1.Subscription result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -2937,6 +3057,33 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasAnalyticsHubSubscriptionInfo()) { mergeAnalyticsHubSubscriptionInfo(other.getAnalyticsHubSubscriptionInfo()); } + if (messageTransformsBuilder_ == null) { + if (!other.messageTransforms_.isEmpty()) { + if (messageTransforms_.isEmpty()) { + messageTransforms_ = other.messageTransforms_; + bitField0_ = (bitField0_ & ~0x00080000); + } else { + ensureMessageTransformsIsMutable(); + messageTransforms_.addAll(other.messageTransforms_); + } + onChanged(); + } + } else { + if (!other.messageTransforms_.isEmpty()) { + if (messageTransformsBuilder_.isEmpty()) { + messageTransformsBuilder_.dispose(); + messageTransformsBuilder_ = null; + messageTransforms_ = other.messageTransforms_; + bitField0_ = (bitField0_ & ~0x00080000); + messageTransformsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessageTransformsFieldBuilder() + : null; + } else { + messageTransformsBuilder_.addAllMessages(other.messageTransforms_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3089,6 +3236,19 @@ public Builder mergeFrom( bitField0_ |= 0x00040000; break; } // case 186 + case 202: + { + com.google.pubsub.v1.MessageTransform m = + input.readMessage( + com.google.pubsub.v1.MessageTransform.parser(), extensionRegistry); + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(m); + } else { + messageTransformsBuilder_.addMessage(m); + } + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6282,6 +6442,414 @@ public Builder clearAnalyticsHubSubscriptionInfo() { return analyticsHubSubscriptionInfoBuilder_; } + private java.util.List messageTransforms_ = + java.util.Collections.emptyList(); + + private void ensureMessageTransformsIsMutable() { + if (!((bitField0_ & 0x00080000) != 0)) { + messageTransforms_ = + new java.util.ArrayList(messageTransforms_); + bitField0_ |= 0x00080000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder> + messageTransformsBuilder_; + + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMessageTransformsList() { + if (messageTransformsBuilder_ == null) { + return java.util.Collections.unmodifiableList(messageTransforms_); + } else { + return messageTransformsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMessageTransformsCount() { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.size(); + } else { + return messageTransformsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.get(index); + } else { + return messageTransformsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransforms(int index, com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.set(index, value); + onChanged(); + } else { + messageTransformsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransforms( + int index, com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.set(index, builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms(com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.add(value); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms(int index, com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.add(index, value); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms( + com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms( + int index, com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(index, builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMessageTransforms( + java.lang.Iterable values) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messageTransforms_); + onChanged(); + } else { + messageTransformsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessageTransforms() { + if (messageTransformsBuilder_ == null) { + messageTransforms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + } else { + messageTransformsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMessageTransforms(int index) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.remove(index); + onChanged(); + } else { + messageTransformsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder getMessageTransformsBuilder(int index) { + return getMessageTransformsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index) { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.get(index); + } else { + return messageTransformsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessageTransformsOrBuilderList() { + if (messageTransformsBuilder_ != null) { + return messageTransformsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messageTransforms_); + } + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder() { + return getMessageTransformsFieldBuilder() + .addBuilder(com.google.pubsub.v1.MessageTransform.getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder(int index) { + return getMessageTransformsFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.MessageTransform.getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages before they are delivered to
    +     * subscribers. Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessageTransformsBuilderList() { + return getMessageTransformsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder> + getMessageTransformsFieldBuilder() { + if (messageTransformsBuilder_ == null) { + messageTransformsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder>( + messageTransforms_, + ((bitField0_ & 0x00080000) != 0), + getParentForChildren(), + isClean()); + messageTransforms_ = null; + } + return messageTransformsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 46c75a2b50b1..8e9b3000c874 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -788,4 +788,71 @@ java.lang.String getLabelsOrDefault( */ com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder getAnalyticsHubSubscriptionInfoOrBuilder(); + + /** + * + * + *
    +   * Optional. Transforms to be applied to messages before they are delivered to
    +   * subscribers. Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMessageTransformsList(); + /** + * + * + *
    +   * Optional. Transforms to be applied to messages before they are delivered to
    +   * subscribers. Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.MessageTransform getMessageTransforms(int index); + /** + * + * + *
    +   * Optional. Transforms to be applied to messages before they are delivered to
    +   * subscribers. Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMessageTransformsCount(); + /** + * + * + *
    +   * Optional. Transforms to be applied to messages before they are delivered to
    +   * subscribers. Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMessageTransformsOrBuilderList(); + /** + * + * + *
    +   * Optional. Transforms to be applied to messages before they are delivered to
    +   * subscribers. Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 40872b062be7..5ee6a077246c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -42,6 +42,7 @@ private Topic() { name_ = ""; kmsKeyName_ = ""; state_ = 0; + messageTransforms_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -771,6 +772,92 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe : ingestionDataSourceSettings_; } + public static final int MESSAGE_TRANSFORMS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List messageTransforms_; + /** + * + * + *
    +   * Optional. Transforms to be applied to messages published to the topic.
    +   * Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMessageTransformsList() { + return messageTransforms_; + } + /** + * + * + *
    +   * Optional. Transforms to be applied to messages published to the topic.
    +   * Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMessageTransformsOrBuilderList() { + return messageTransforms_; + } + /** + * + * + *
    +   * Optional. Transforms to be applied to messages published to the topic.
    +   * Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMessageTransformsCount() { + return messageTransforms_.size(); + } + /** + * + * + *
    +   * Optional. Transforms to be applied to messages published to the topic.
    +   * Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { + return messageTransforms_.get(index); + } + /** + * + * + *
    +   * Optional. Transforms to be applied to messages published to the topic.
    +   * Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index) { + return messageTransforms_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -811,6 +898,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getIngestionDataSourceSettings()); } + for (int i = 0; i < messageTransforms_.size(); i++) { + output.writeMessage(13, messageTransforms_.get(i)); + } getUnknownFields().writeTo(output); } @@ -859,6 +949,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, getIngestionDataSourceSettings()); } + for (int i = 0; i < messageTransforms_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, messageTransforms_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -896,6 +990,7 @@ public boolean equals(final java.lang.Object obj) { if (!getIngestionDataSourceSettings().equals(other.getIngestionDataSourceSettings())) return false; } + if (!getMessageTransformsList().equals(other.getMessageTransformsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -935,6 +1030,10 @@ public int hashCode() { hash = (37 * hash) + INGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getIngestionDataSourceSettings().hashCode(); } + if (getMessageTransformsCount() > 0) { + hash = (37 * hash) + MESSAGE_TRANSFORMS_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1098,6 +1197,7 @@ private void maybeForceBuilderInitialization() { getSchemaSettingsFieldBuilder(); getMessageRetentionDurationFieldBuilder(); getIngestionDataSourceSettingsFieldBuilder(); + getMessageTransformsFieldBuilder(); } } @@ -1130,6 +1230,13 @@ public Builder clear() { ingestionDataSourceSettingsBuilder_.dispose(); ingestionDataSourceSettingsBuilder_ = null; } + if (messageTransformsBuilder_ == null) { + messageTransforms_ = java.util.Collections.emptyList(); + } else { + messageTransforms_ = null; + messageTransformsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); return this; } @@ -1155,6 +1262,7 @@ public com.google.pubsub.v1.Topic build() { @java.lang.Override public com.google.pubsub.v1.Topic buildPartial() { com.google.pubsub.v1.Topic result = new com.google.pubsub.v1.Topic(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1162,6 +1270,18 @@ public com.google.pubsub.v1.Topic buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.pubsub.v1.Topic result) { + if (messageTransformsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + messageTransforms_ = java.util.Collections.unmodifiableList(messageTransforms_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.messageTransforms_ = messageTransforms_; + } else { + result.messageTransforms_ = messageTransformsBuilder_.build(); + } + } + private void buildPartial0(com.google.pubsub.v1.Topic result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1285,6 +1405,33 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { if (other.hasIngestionDataSourceSettings()) { mergeIngestionDataSourceSettings(other.getIngestionDataSourceSettings()); } + if (messageTransformsBuilder_ == null) { + if (!other.messageTransforms_.isEmpty()) { + if (messageTransforms_.isEmpty()) { + messageTransforms_ = other.messageTransforms_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureMessageTransformsIsMutable(); + messageTransforms_.addAll(other.messageTransforms_); + } + onChanged(); + } + } else { + if (!other.messageTransforms_.isEmpty()) { + if (messageTransformsBuilder_.isEmpty()) { + messageTransformsBuilder_.dispose(); + messageTransformsBuilder_ = null; + messageTransforms_ = other.messageTransforms_; + bitField0_ = (bitField0_ & ~0x00000200); + messageTransformsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessageTransformsFieldBuilder() + : null; + } else { + messageTransformsBuilder_.addAllMessages(other.messageTransforms_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1374,6 +1521,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 82 + case 106: + { + com.google.pubsub.v1.MessageTransform m = + input.readMessage( + com.google.pubsub.v1.MessageTransform.parser(), extensionRegistry); + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(m); + } else { + messageTransformsBuilder_.addMessage(m); + } + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2876,6 +3036,414 @@ public Builder clearIngestionDataSourceSettings() { return ingestionDataSourceSettingsBuilder_; } + private java.util.List messageTransforms_ = + java.util.Collections.emptyList(); + + private void ensureMessageTransformsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + messageTransforms_ = + new java.util.ArrayList(messageTransforms_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder> + messageTransformsBuilder_; + + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMessageTransformsList() { + if (messageTransformsBuilder_ == null) { + return java.util.Collections.unmodifiableList(messageTransforms_); + } else { + return messageTransformsBuilder_.getMessageList(); + } + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMessageTransformsCount() { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.size(); + } else { + return messageTransformsBuilder_.getCount(); + } + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.get(index); + } else { + return messageTransformsBuilder_.getMessage(index); + } + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransforms(int index, com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.set(index, value); + onChanged(); + } else { + messageTransformsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransforms( + int index, com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.set(index, builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms(com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.add(value); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms(int index, com.google.pubsub.v1.MessageTransform value) { + if (messageTransformsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageTransformsIsMutable(); + messageTransforms_.add(index, value); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms( + com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessageTransforms( + int index, com.google.pubsub.v1.MessageTransform.Builder builderForValue) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.add(index, builderForValue.build()); + onChanged(); + } else { + messageTransformsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMessageTransforms( + java.lang.Iterable values) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messageTransforms_); + onChanged(); + } else { + messageTransformsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessageTransforms() { + if (messageTransformsBuilder_ == null) { + messageTransforms_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + messageTransformsBuilder_.clear(); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMessageTransforms(int index) { + if (messageTransformsBuilder_ == null) { + ensureMessageTransformsIsMutable(); + messageTransforms_.remove(index); + onChanged(); + } else { + messageTransformsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder getMessageTransformsBuilder(int index) { + return getMessageTransformsFieldBuilder().getBuilder(index); + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index) { + if (messageTransformsBuilder_ == null) { + return messageTransforms_.get(index); + } else { + return messageTransformsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessageTransformsOrBuilderList() { + if (messageTransformsBuilder_ != null) { + return messageTransformsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messageTransforms_); + } + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder() { + return getMessageTransformsFieldBuilder() + .addBuilder(com.google.pubsub.v1.MessageTransform.getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder(int index) { + return getMessageTransformsFieldBuilder() + .addBuilder(index, com.google.pubsub.v1.MessageTransform.getDefaultInstance()); + } + /** + * + * + *
    +     * Optional. Transforms to be applied to messages published to the topic.
    +     * Transforms are applied in the order specified.
    +     * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessageTransformsBuilderList() { + return getMessageTransformsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder> + getMessageTransformsFieldBuilder() { + if (messageTransformsBuilder_ == null) { + messageTransformsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.pubsub.v1.MessageTransform, + com.google.pubsub.v1.MessageTransform.Builder, + com.google.pubsub.v1.MessageTransformOrBuilder>( + messageTransforms_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + messageTransforms_ = null; + } + return messageTransformsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 8f58e61bd13d..3af29ee9f507 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -388,4 +388,71 @@ java.lang.String getLabelsOrDefault( */ com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder getIngestionDataSourceSettingsOrBuilder(); + + /** + * + * + *
    +   * Optional. Transforms to be applied to messages published to the topic.
    +   * Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMessageTransformsList(); + /** + * + * + *
    +   * Optional. Transforms to be applied to messages published to the topic.
    +   * Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.MessageTransform getMessageTransforms(int index); + /** + * + * + *
    +   * Optional. Transforms to be applied to messages published to the topic.
    +   * Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMessageTransformsCount(); + /** + * + * + *
    +   * Optional. Transforms to be applied to messages published to the topic.
    +   * Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMessageTransformsOrBuilderList(); + /** + * + * + *
    +   * Optional. Transforms to be applied to messages published to the topic.
    +   * Transforms are applied in the order specified.
    +   * 
    + * + * + * repeated .google.pubsub.v1.MessageTransform message_transforms = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 6ed87cbba4cc..b881f8fa3c33 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -26,7 +26,6 @@ import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/pubsub/v1/schema.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSub.V1"; option go_package = "cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb"; option java_multiple_files = true; @@ -674,12 +673,68 @@ message IngestionFailureEvent { } } +// User-defined JavaScript function that can transform or filter a Pub/Sub +// message. +message JavaScriptUDF { + // Required. Name of the JavasScript function that should applied to Pub/Sub + // messages. + string function_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. JavaScript code that contains a function `function_name` with the + // below signature: + // + // ``` + // /** + // * Transforms a Pub/Sub message. + // + // * @return {(Object)>|null)} - To + // * filter a message, return `null`. To transform a message return a map + // * with the following keys: + // * - (required) 'data' : {string} + // * - (optional) 'attributes' : {Object} + // * Returning empty `attributes` will remove all attributes from the + // * message. + // * + // * @param {(Object)>} Pub/Sub + // * message. Keys: + // * - (required) 'data' : {string} + // * - (required) 'attributes' : {Object} + // * + // * @param {Object} metadata - Pub/Sub message metadata. + // * Keys: + // * - (required) 'message_id' : {string} + // * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + // * - (optional) 'ordering_key': {string} + // */ + // + // function (message, metadata) { + // } + // ``` + string code = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// All supported message transforms types. +message MessageTransform { + // The type of transform to apply to messages. + oneof transform { + // Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's + // are specified on a resource, each must have a unique `function_name`. + JavaScriptUDF javascript_udf = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. If set to true, the transform is enabled. If false, the transform + // is disabled and will not be applied to messages. Defaults to `true`. + bool enabled = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // A topic resource. message Topic { option (google.api.resource) = { type: "pubsub.googleapis.com/Topic" pattern: "projects/{project}/topics/{topic}" pattern: "_deleted-topic_" + plural: "topics" + singular: "topic" }; // The state of the topic. @@ -745,6 +800,11 @@ message Topic { // Optional. Settings for ingestion from a data source into this topic. IngestionDataSourceSettings ingestion_data_source_settings = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Transforms to be applied to messages published to the topic. + // Transforms are applied in the order specified. + repeated MessageTransform message_transforms = 13 + [(google.api.field_behavior) = OPTIONAL]; } // A message that is published by publishers and consumed by subscribers. The @@ -1188,6 +1248,8 @@ message Subscription { option (google.api.resource) = { type: "pubsub.googleapis.com/Subscription" pattern: "projects/{project}/subscriptions/{subscription}" + plural: "subscriptions" + singular: "subscription" }; // Possible states for a subscription. @@ -1204,8 +1266,8 @@ message Subscription { RESOURCE_ERROR = 2; } - // Information about an associated Analytics Hub subscription - // (https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions). + // Information about an associated [Analytics Hub + // subscription](https://cloud.google.com/bigquery/docs/analytics-hub-manage-subscriptions). message AnalyticsHubSubscriptionInfo { // Optional. The name of the associated Analytics Hub listing resource. // Pattern: @@ -1371,6 +1433,11 @@ message Subscription { // Only set if the subscritpion is created by Analytics Hub. AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Transforms to be applied to messages before they are delivered to + // subscribers. Transforms are applied in the order specified. + repeated MessageTransform message_transforms = 25 + [(google.api.field_behavior) = OPTIONAL]; } // A policy that specifies how Pub/Sub retries message delivery. @@ -2109,6 +2176,8 @@ message Snapshot { option (google.api.resource) = { type: "pubsub.googleapis.com/Snapshot" pattern: "projects/{project}/snapshots/{snapshot}" + plural: "snapshots" + singular: "snapshot" }; // Optional. The name of the snapshot. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index d52c678c5953..81d56bd7f1fd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -23,7 +23,6 @@ import "google/api/resource.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; -option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSub.V1"; option go_package = "cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb"; option java_multiple_files = true; From add7fea91b928691c71e498c826880c9f05b74c3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 10 Feb 2025 20:46:28 +0100 Subject: [PATCH 2049/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.54.0 (#2333) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 3c7fb6e48426..5abef1c1da25 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.53.0 + 26.54.0 pom import From 24e2823b9285c1e0888ade6a1110945db1e92aa1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 10 Feb 2025 20:47:00 +0100 Subject: [PATCH 2050/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.48.1 (#2332) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index a60f6bce4081..08d5eb120cea 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.48.0 + 2.48.1 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 93d5ba383973..c06e5a2a8300 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.48.0 + 2.48.1 com.google.cloud.opentelemetry From 23c9635373fc1e9794d7657e571fdaec2b8582d2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 10 Feb 2025 20:47:11 +0100 Subject: [PATCH 2051/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.47.0 (#2331) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 08d5eb120cea..55a6b2110a53 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.46.0 + 2.47.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c06e5a2a8300..579fc35369c4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.46.0 + 2.47.0 com.google.cloud From 40eea63ccc29bc68309fbda967668adc10556029 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 11 Feb 2025 10:16:21 -0500 Subject: [PATCH 2052/2363] chore: Update generation configuration at Tue Feb 11 02:25:56 UTC 2025 (#2337) * chore: Update generation configuration at Tue Feb 11 02:25:56 UTC 2025 * chore: generate libraries at Tue Feb 11 02:26:32 UTC 2025 --- java-pubsub/README.md | 4 ++-- java-pubsub/generation_config.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e8593c9e845b..073bb5be9f79 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.53.0 + 26.54.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.136.0 + 1.136.1 ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 3a2e07ac089f..c837895bd11b 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.52.0 -googleapis_commitish: 0a459af4362c0e41b9723dd4d7edc022c552db40 +googleapis_commitish: 04132de0b952ee921d91a2583915dbd82d10cd3c libraries_bom_version: 26.54.0 libraries: - api_shortname: pubsub From 272e0038cdb22b7994f99c83a05f86b3c70a38ba Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 12 Feb 2025 11:33:26 -0500 Subject: [PATCH 2053/2363] chore: Update generation configuration at Wed Feb 12 02:25:06 UTC 2025 (#2339) --- .../.github/workflows/hermetic_library_generation.yaml | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index f7804e9d0263..545f190487a3 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.52.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.53.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index c837895bd11b..3fd390919ef0 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.52.0 -googleapis_commitish: 04132de0b952ee921d91a2583915dbd82d10cd3c +gapic_generator_version: 2.53.0 +googleapis_commitish: 9605bff3d36fbdb1227b26bce68258c5f00815e4 libraries_bom_version: 26.54.0 libraries: - api_shortname: pubsub From e539e5e41fe8bca95cffc7272b18cf1ca4f1c7b9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 12 Feb 2025 11:47:15 -0500 Subject: [PATCH 2054/2363] chore(main): release 1.136.2-SNAPSHOT (#2328) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ade8e42bd001..d745d15a297c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.136.1 + 1.136.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.136.1 + 1.136.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9f7f28b42560..da235f9cc517 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.136.1 + 1.136.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.136.1 + 1.136.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 69ba89760fd4..c5f62dccbe55 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.1 + 1.136.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 1c0586f8b612..809b197fc930 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.136.1 + 1.136.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.136.1 + 1.136.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 46274994d168..5aea8a9be2b8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.1 + 1.118.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.1 + 1.136.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 579fc35369c4..ef666f38e065 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.136.1 + 1.136.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1ca89302a92b..b8cf788fdecc 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.136.1:1.136.1 -grpc-google-cloud-pubsub-v1:1.118.1:1.118.1 -proto-google-cloud-pubsub-v1:1.118.1:1.118.1 +google-cloud-pubsub:1.136.1:1.136.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.118.1:1.118.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.118.1:1.118.2-SNAPSHOT From 0c6f6b7665dba331874a89b7fa0afef18abc99d3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Feb 2025 22:44:16 +0100 Subject: [PATCH 2055/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.51.0 (#2338) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 55a6b2110a53..0cdfb0725933 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.50.0 + 2.51.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ef666f38e065..fcd740630fcf 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.50.0 + 2.51.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5abef1c1da25..cfeb91d80ba7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.50.0 + 2.51.0 tests From 143065b27178f351aef81a31ff935fdaa21fe608 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Feb 2025 22:49:30 +0100 Subject: [PATCH 2056/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.43.0 (#2336) * deps: update dependency com.google.cloud:sdk-platform-java-config to v3.43.0 * add junit native config * move test config to proper folder --------- Co-authored-by: diegomarquezp --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- .../google-cloud-pubsub/native-image.properties | 1 + java-pubsub/pom.xml | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 8246ed6b837e..1cd399cd5b3c 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.42.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.43.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index b78c82df571b..8d3f11dc47e1 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.42.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.43.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index f08c4be3e00b..f78bafd26ecb 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.42.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.43.0" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d745d15a297c..8292221c68c0 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.42.0 + 3.43.0 Google Cloud pubsub BOM diff --git a/java-pubsub/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties b/java-pubsub/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties new file mode 100644 index 000000000000..d8c1957d8c2d --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties @@ -0,0 +1 @@ +Args=--initialize-at-build-time=org.junit.runners.model.FrameworkField diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 809b197fc930..9ed2af97a323 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.42.0 + 3.43.0 From 9334def369e0f7d4c7f35d9a0715ffc0c1aeb120 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 12 Feb 2025 22:57:06 +0100 Subject: [PATCH 2057/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.48.2 (#2341) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0cdfb0725933..317b001666df 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.48.1 + 2.48.2 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fcd740630fcf..37d9987ae656 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.48.1 + 2.48.2 com.google.cloud.opentelemetry From bdfda6f15f4c7a856d70d23c464bf5e5fb0f5210 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Feb 2025 00:07:57 -0500 Subject: [PATCH 2058/2363] chore(main): release 1.137.0 (#2340) * chore(main): release 1.137.0 * chore: generate libraries at Wed Feb 12 21:57:56 UTC 2025 * Revert "chore: generate libraries at Wed Feb 12 21:57:56 UTC 2025" This reverts commit 27bb6ba4743a540d119a9439d362a6e836a1bc93. * chore: generate libraries at Wed Feb 12 22:31:24 UTC 2025 * preserve test native-image config * restore test-scoped native-image.properties --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot Co-authored-by: Lawrence Qiu Co-authored-by: Diego Marquez --- java-pubsub/.github/.OwlBot-hermetic.yaml | 3 +++ java-pubsub/CHANGELOG.md | 26 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../native-image.properties | 2 +- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 +++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 11 files changed, 51 insertions(+), 22 deletions(-) diff --git a/java-pubsub/.github/.OwlBot-hermetic.yaml b/java-pubsub/.github/.OwlBot-hermetic.yaml index 8a75909c6884..219163820d42 100644 --- a/java-pubsub/.github/.OwlBot-hermetic.yaml +++ b/java-pubsub/.github/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/proto-google-.*/src" - "/google-.*/src" +#Args=--initialize-at-build-time=org.junit.runners.model.FrameworkField deep-preserve-regex: +- "/google-cloud-pubsub/src/test/resources/META-INF/native-image/.*" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" - "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 7410bd6c297b..c563c2077bcd 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,31 @@ # Changelog +## [1.137.0](https://github.com/googleapis/java-pubsub/compare/v1.136.1...v1.137.0) (2025-02-12) + + +### Features + +* Add support for message transforms to Topic and Subscription ([3889a05](https://github.com/googleapis/java-pubsub/commit/3889a05a5c5d7479d3cc6b6dc0b0c425d41efd5d)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.53.0 ([b952e58](https://github.com/googleapis/java-pubsub/commit/b952e5826748bc680936a79b14d75f5873e6db06)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.47.0 ([#2331](https://github.com/googleapis/java-pubsub/issues/2331)) ([216feef](https://github.com/googleapis/java-pubsub/commit/216feef976595cd03e282f8d8effa2ac8430c419)) +* Update dependency com.google.cloud:google-cloud-core to v2.51.0 ([#2338](https://github.com/googleapis/java-pubsub/issues/2338)) ([ac2403e](https://github.com/googleapis/java-pubsub/commit/ac2403ecd21aad0d44c5b06fce2853f9a433adbd)) +* Update dependency com.google.cloud:google-cloud-storage to v2.48.1 ([#2332](https://github.com/googleapis/java-pubsub/issues/2332)) ([23fd7a8](https://github.com/googleapis/java-pubsub/commit/23fd7a8f4ab2438b72f3a6da5613f5deb0ac307e)) +* Update dependency com.google.cloud:google-cloud-storage to v2.48.2 ([#2341](https://github.com/googleapis/java-pubsub/issues/2341)) ([eeb99a9](https://github.com/googleapis/java-pubsub/commit/eeb99a997fa2e7154dcc228b964ff47867738122)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.43.0 ([#2336](https://github.com/googleapis/java-pubsub/issues/2336)) ([996f4eb](https://github.com/googleapis/java-pubsub/commit/996f4ebdfa6b5cb38dbe37d4be981ca7d941bc0d)) + + +### Documentation + +* A comment for field `code` in message `.google.pubsub.v1.JavaScriptUDF` is changed ([3889a05](https://github.com/googleapis/java-pubsub/commit/3889a05a5c5d7479d3cc6b6dc0b0c425d41efd5d)) + ## [1.136.1](https://github.com/googleapis/java-pubsub/compare/v1.136.0...v1.136.1) (2025-01-28) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 073bb5be9f79..93dd1bcd2161 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.136.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.137.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.136.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.137.0" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.136.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.137.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8292221c68c0..730f031db2f2 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.136.2-SNAPSHOT + 1.137.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.136.2-SNAPSHOT + 1.137.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index da235f9cc517..6a6a0084ec5c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.136.2-SNAPSHOT + 1.137.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.136.2-SNAPSHOT + 1.137.0 google-cloud-pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties b/java-pubsub/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties index d8c1957d8c2d..b77dd433ad1c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties +++ b/java-pubsub/google-cloud-pubsub/src/test/resources/META-INF/native-image/com.google.cloud/google-cloud-pubsub/native-image.properties @@ -1 +1 @@ -Args=--initialize-at-build-time=org.junit.runners.model.FrameworkField +Args=--initialize-at-build-time=org.junit.runners.model.FrameworkField \ No newline at end of file diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c5f62dccbe55..be2875fd6bd6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.2-SNAPSHOT + 1.137.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9ed2af97a323..273de05c0f6d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.136.2-SNAPSHOT + 1.137.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 com.google.cloud google-cloud-pubsub - 1.136.2-SNAPSHOT + 1.137.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5aea8a9be2b8..dbcae7026c9e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.118.2-SNAPSHOT + 1.119.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.136.2-SNAPSHOT + 1.137.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 37d9987ae656..beebedca8521 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.136.2-SNAPSHOT + 1.137.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b8cf788fdecc..1c85bc926c54 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.136.1:1.136.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.118.1:1.118.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.118.1:1.118.2-SNAPSHOT +google-cloud-pubsub:1.137.0:1.137.0 +grpc-google-cloud-pubsub-v1:1.119.0:1.119.0 +proto-google-cloud-pubsub-v1:1.119.0:1.119.0 From 5e76e8650262d19f1d62b14155b460eb4e11028d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Feb 2025 19:43:01 +0100 Subject: [PATCH 2059/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.137.0 (#2345) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 317b001666df..ed1a7a09601b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.136.1 + 1.137.0 From a679e6630ba41047d9bd7668ce1465237cd835ef Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Feb 2025 19:43:22 +0100 Subject: [PATCH 2060/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.48.0 (#2343) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ed1a7a09601b..63a5c00da2f5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.47.0 + 2.48.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index beebedca8521..be84ca52d319 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.47.0 + 2.48.0 com.google.cloud From 3f83eaeadcb4d4b4a4e4f7c52db5336f26223c90 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 26 Feb 2025 10:16:44 -0500 Subject: [PATCH 2061/2363] chore(main): release 1.137.1-SNAPSHOT (#2344) * chore(main): release 1.137.1-SNAPSHOT * chore: generate libraries at Thu Feb 20 18:44:27 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 93dd1bcd2161..07ac80c10dc6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.136.1 + 1.137.0 ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 730f031db2f2..273bcfe050dd 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.137.0 + 1.137.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6a6a0084ec5c..7c837cd2951c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.137.0 + 1.137.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index be2875fd6bd6..a82607eb7fc8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.0 + 1.137.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 273de05c0f6d..f2d3e90ab6b0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.137.0 + 1.137.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index dbcae7026c9e..00effa24f5a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.0 + 1.119.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.0 + 1.137.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index be84ca52d319..19eae326694d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1c85bc926c54..c13a1dca3764 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.137.0:1.137.0 -grpc-google-cloud-pubsub-v1:1.119.0:1.119.0 -proto-google-cloud-pubsub-v1:1.119.0:1.119.0 +google-cloud-pubsub:1.137.0:1.137.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.119.0:1.119.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.119.0:1.119.1-SNAPSHOT From bd1b15b63b26000563adae6a3f1953be424c6da8 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 26 Feb 2025 16:37:07 +0100 Subject: [PATCH 2062/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.44.0 (#2349) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 1cd399cd5b3c..8e7b5948947d 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.43.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.44.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 8d3f11dc47e1..728751d048e9 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.43.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.44.0" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index f78bafd26ecb..39151469c784 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.43.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.44.0" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 273bcfe050dd..955cb3bf5214 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.43.0 + 3.44.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f2d3e90ab6b0..52784cc21da7 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.43.0 + 3.44.0 From e363628e1978b934a6f58b836cfbfc2751677181 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 26 Feb 2025 16:37:39 +0100 Subject: [PATCH 2063/2363] deps: update googleapis/sdk-platform-java action to v2.54.0 (#2347) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 545f190487a3..5ad2a254b92a 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.53.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.54.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 56b656bc3794d1883872e4ac9049f5a24f14bfff Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 26 Feb 2025 16:37:56 +0100 Subject: [PATCH 2064/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.52.0 (#2348) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 63a5c00da2f5..7dead4d2f24a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.51.0 + 2.52.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 19eae326694d..c48ba74b4beb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.51.0 + 2.52.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index cfeb91d80ba7..89af0b032f22 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.51.0 + 2.52.0 tests From c491b1a952fd5eb565551d3299e15963a554a28e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 26 Feb 2025 16:38:16 +0100 Subject: [PATCH 2065/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.55.0 (#2346) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 89af0b032f22..a2bc750b5c3e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.54.0 + 26.55.0 pom import From adfec3adee14f214583f348e52ee4f8a93d9b2cd Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 26 Feb 2025 10:52:34 -0500 Subject: [PATCH 2066/2363] chore: Update generation configuration at Wed Feb 26 15:38:51 UTC 2025 (#2351) * chore: Update generation configuration at Wed Feb 26 15:38:51 UTC 2025 * chore: generate libraries at Wed Feb 26 15:39:23 UTC 2025 --- java-pubsub/README.md | 4 ++-- java-pubsub/generation_config.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 07ac80c10dc6..a3e8dcf75896 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.54.0 + 26.55.0 pom import @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.54.0') +implementation platform('com.google.cloud:libraries-bom:26.55.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 3fd390919ef0..8f1735df2a5c 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.53.0 -googleapis_commitish: 9605bff3d36fbdb1227b26bce68258c5f00815e4 -libraries_bom_version: 26.54.0 +gapic_generator_version: 2.54.0 +googleapis_commitish: 4c84e9b22958827a02b761703d6fb431bc101adc +libraries_bom_version: 26.55.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From bb18b10815f6a14019b65bd0ea6a65d21f563b8a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 26 Feb 2025 11:21:36 -0500 Subject: [PATCH 2067/2363] chore(main): release 1.137.1 (#2350) * chore(main): release 1.137.1 * chore: generate libraries at Wed Feb 26 15:53:24 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 15 +++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 36 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index c563c2077bcd..21c22019dbc1 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.137.1](https://github.com/googleapis/java-pubsub/compare/v1.137.0...v1.137.1) (2025-02-26) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.54.0 ([ccf670f](https://github.com/googleapis/java-pubsub/commit/ccf670f9dc755770d40b9d1bf2c870c0452aa39e)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.48.0 ([#2343](https://github.com/googleapis/java-pubsub/issues/2343)) ([3bbd7e1](https://github.com/googleapis/java-pubsub/commit/3bbd7e1e812a7a00cfff36a0c1d8a5212d4e134a)) +* Update dependency com.google.cloud:google-cloud-core to v2.52.0 ([#2348](https://github.com/googleapis/java-pubsub/issues/2348)) ([f0977b4](https://github.com/googleapis/java-pubsub/commit/f0977b40479823ce5b7e90f864261f11115610ca)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.44.0 ([#2349](https://github.com/googleapis/java-pubsub/issues/2349)) ([90ed10b](https://github.com/googleapis/java-pubsub/commit/90ed10b474f7a59286365d8a6ad676d9a4f4113b)) +* Update googleapis/sdk-platform-java action to v2.54.0 ([#2347](https://github.com/googleapis/java-pubsub/issues/2347)) ([ac8db2d](https://github.com/googleapis/java-pubsub/commit/ac8db2dda6cd5f0bdf689052bb37cb2eaab08c46)) + ## [1.137.0](https://github.com/googleapis/java-pubsub/compare/v1.136.1...v1.137.0) (2025-02-12) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a3e8dcf75896..c9dd8fc958f8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.137.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.137.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.137.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.137.1" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.137.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.137.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 955cb3bf5214..fb07ca7076fe 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.137.1-SNAPSHOT + 1.137.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.137.1-SNAPSHOT + 1.137.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7c837cd2951c..1364c0662f9c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.137.1-SNAPSHOT + 1.137.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.137.1-SNAPSHOT + 1.137.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a82607eb7fc8..c61be81f2557 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.1-SNAPSHOT + 1.137.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 52784cc21da7..ce489f906353 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.137.1-SNAPSHOT + 1.137.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 com.google.cloud google-cloud-pubsub - 1.137.1-SNAPSHOT + 1.137.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 00effa24f5a0..30eb3b0a2eab 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1-SNAPSHOT + 1.119.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.1-SNAPSHOT + 1.137.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c48ba74b4beb..3ba048eda449 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.137.1-SNAPSHOT + 1.137.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c13a1dca3764..b19d254bdec6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.137.0:1.137.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.119.0:1.119.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.119.0:1.119.1-SNAPSHOT +google-cloud-pubsub:1.137.1:1.137.1 +grpc-google-cloud-pubsub-v1:1.119.1:1.119.1 +proto-google-cloud-pubsub-v1:1.119.1:1.119.1 From 27946b440d202102cc53f6710aab39be66532577 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 27 Feb 2025 10:18:50 -0500 Subject: [PATCH 2068/2363] chore: Update generation configuration at Thu Feb 27 02:27:53 UTC 2025 (#2355) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 8f1735df2a5c..3200b796dc90 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.54.0 -googleapis_commitish: 4c84e9b22958827a02b761703d6fb431bc101adc +googleapis_commitish: 554575ee8d01d277344ec704e0561e9abc7f57f3 libraries_bom_version: 26.55.0 libraries: - api_shortname: pubsub From d9158b13bb936c100ac3236d866357bfa050b977 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 27 Feb 2025 18:27:08 +0100 Subject: [PATCH 2069/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.49.0 (#2358) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7dead4d2f24a..e102f22787ba 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.48.2 + 2.49.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3ba048eda449..88bfd3f74bea 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.48.2 + 2.49.0 com.google.cloud.opentelemetry From dd8ee4c18eb4c21e1ab0c796eee6a9ad2e1997ed Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 27 Feb 2025 18:27:23 +0100 Subject: [PATCH 2070/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.48.1 (#2356) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e102f22787ba..5e179771e3e7 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.48.0 + 2.48.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 88bfd3f74bea..76112f52031b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.48.0 + 2.48.1 com.google.cloud From 0241bd9647dfa2f5612c8512c853850c3c6eb961 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 27 Feb 2025 15:00:22 -0500 Subject: [PATCH 2071/2363] fix: Prevent excessive string parsing when publishing and receiving messages to improve performance (#2317) * docs: Add samples and tests for ingestion from Kafka sources * docs: Styles fixes for samples/tests * fix: Prevent excessive string parsing when publishing and receiving messages to improve performance * test: Fix test to use proper subscription name * test: Fix MessageDispatcherTest * test: Add subscription name to all required builders in MessageDispatcherTest * fix: Fix formatting of test files * fix: Use TopicName instead of String for startPublishRpcSpan * fix: Use SubscriptionName instead of String for startSubscriberRpcSpan * fix: Removed unused subscriptionName string --- .../cloud/pubsub/v1/MessageDispatcher.java | 7 ++-- .../pubsub/v1/OpenTelemetryPubsubTracer.java | 6 +-- .../com/google/cloud/pubsub/v1/Publisher.java | 6 ++- .../cloud/pubsub/v1/PubsubMessageWrapper.java | 20 ++-------- .../v1/StreamingSubscriberConnection.java | 8 +++- .../pubsub/v1/MessageDispatcherTest.java | 7 ++++ .../cloud/pubsub/v1/OpenTelemetryTest.java | 39 ++++++++----------- .../v1/StreamingSubscriberConnectionTest.java | 3 +- 8 files changed, 45 insertions(+), 51 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 7112d4c02e67..34ef312f379c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -28,6 +28,7 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.pubsub.v1.PubsubMessage; import com.google.pubsub.v1.ReceivedMessage; +import com.google.pubsub.v1.SubscriptionName; import java.time.Duration; import java.time.Instant; import java.time.temporal.ChronoUnit; @@ -104,7 +105,7 @@ class MessageDispatcher { // To keep track of number of seconds the receiver takes to process messages. private final Distribution ackLatencyDistribution; - private final String subscriptionName; + private final SubscriptionName subscriptionNameObject; private final boolean enableOpenTelemetryTracing; private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); @@ -225,7 +226,7 @@ private MessageDispatcher(Builder builder) { messagesWaiter = new Waiter(); sequentialExecutor = new SequentialExecutorService.AutoExecutor(builder.executor); - subscriptionName = builder.subscriptionName; + subscriptionNameObject = SubscriptionName.parse(builder.subscriptionName); enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; if (builder.tracer != null) { tracer = builder.tracer; @@ -408,7 +409,7 @@ void processReceivedMessages(List messages) { PubsubMessageWrapper messageWrapper = PubsubMessageWrapper.newBuilder( message.getMessage(), - subscriptionName, + subscriptionNameObject, message.getAckId(), message.getDeliveryAttempt()) .build(); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java index b946f44bf66e..9ee75113561f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java @@ -172,11 +172,10 @@ void endPublishBatchingSpan(PubsubMessageWrapper message) { * Creates, starts, and returns a publish RPC span for the given message batch. Bi-directional * links with the publisher parent span are created for sampled messages in the batch. */ - Span startPublishRpcSpan(String topic, List messages) { + Span startPublishRpcSpan(TopicName topicName, List messages) { if (!enabled) { return null; } - TopicName topicName = TopicName.parse(topic); Attributes attributes = createCommonSpanAttributesBuilder( topicName.getTopic(), topicName.getProject(), "publishCall", "publish") @@ -359,7 +358,7 @@ void endSubscribeProcessSpan(PubsubMessageWrapper message, String action) { * to parent subscribe span for sampled messages are added. */ Span startSubscribeRpcSpan( - String subscription, + SubscriptionName subscriptionName, String rpcOperation, List messages, int ackDeadline, @@ -368,7 +367,6 @@ Span startSubscribeRpcSpan( return null; } String codeFunction = rpcOperation == "ack" ? "sendAckOperations" : "sendModAckOperations"; - SubscriptionName subscriptionName = SubscriptionName.parse(subscription); AttributesBuilder attributesBuilder = createCommonSpanAttributesBuilder( subscriptionName.getSubscription(), diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index af7a5747123b..113cbf932b43 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -101,6 +101,7 @@ public class Publisher implements PublisherInterface { private final String topicName; private final int topicNameSize; + private final TopicName topicNameObject; private final BatchingSettings batchingSettings; private final boolean enableMessageOrdering; @@ -149,6 +150,7 @@ private Publisher(Builder builder) throws IOException { topicName = builder.topicName; topicNameSize = CodedOutputStream.computeStringSize(PublishRequest.TOPIC_FIELD_NUMBER, this.topicName); + topicNameObject = TopicName.parse(this.topicName); this.batchingSettings = builder.batchingSettings; FlowControlSettings flowControl = this.batchingSettings.getFlowControlSettings(); @@ -282,7 +284,7 @@ public ApiFuture publish(PubsubMessage message) { + "setEnableMessageOrdering(true) in the builder."); PubsubMessageWrapper messageWrapper = - PubsubMessageWrapper.newBuilder(messageTransform.apply(message), topicName).build(); + PubsubMessageWrapper.newBuilder(messageTransform.apply(message), topicNameObject).build(); tracer.startPublisherSpan(messageWrapper); final OutstandingPublish outstandingPublish = new OutstandingPublish(messageWrapper); @@ -490,7 +492,7 @@ private ApiFuture publishCall(OutstandingBatch outstandingBatch pubsubMessagesList.add(messageWrapper.getPubsubMessage()); } - outstandingBatch.publishRpcSpan = tracer.startPublishRpcSpan(topicName, messageWrappers); + outstandingBatch.publishRpcSpan = tracer.startPublishRpcSpan(topicNameObject, messageWrappers); return publisherStub .publishCallable() diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java index 94fd13085da8..839eecf9182e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java @@ -73,12 +73,12 @@ private PubsubMessageWrapper(Builder builder) { this.deliveryAttempt = builder.deliveryAttempt; } - static Builder newBuilder(PubsubMessage message, String topicName) { + static Builder newBuilder(PubsubMessage message, TopicName topicName) { return new Builder(message, topicName); } static Builder newBuilder( - PubsubMessage message, String subscriptionName, String ackId, int deliveryAttempt) { + PubsubMessage message, SubscriptionName subscriptionName, String ackId, int deliveryAttempt) { return new Builder(message, subscriptionName, ackId, deliveryAttempt); } @@ -395,21 +395,9 @@ static final class Builder { private String ackId = null; private int deliveryAttempt = 0; - public Builder(PubsubMessage message, String topicName) { + public Builder(PubsubMessage message, TopicName topicName) { this.message = message; - if (topicName != null) { - this.topicName = TopicName.parse(topicName); - } - } - - public Builder( - PubsubMessage message, String subscriptionName, String ackId, int deliveryAttempt) { - this.message = message; - if (subscriptionName != null) { - this.subscriptionName = SubscriptionName.parse(subscriptionName); - } - this.ackId = ackId; - this.deliveryAttempt = deliveryAttempt; + this.topicName = topicName; } public Builder( diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 3ad124f80ca8..80ff2b4e1288 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -47,6 +47,7 @@ import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; +import com.google.pubsub.v1.SubscriptionName; import com.google.rpc.ErrorInfo; import io.grpc.Status; import io.grpc.protobuf.StatusProto; @@ -94,6 +95,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final SubscriberStub subscriberStub; private final int channelAffinity; private final String subscription; + private final SubscriptionName subscriptionNameObject; private final ScheduledExecutorService systemExecutor; private final MessageDispatcher messageDispatcher; @@ -124,6 +126,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; + subscriptionNameObject = SubscriptionName.parse(builder.subscription); systemExecutor = builder.systemExecutor; // We need to set the default stream ack deadline on the initial request, this will be @@ -454,7 +457,8 @@ private void sendAckOperations( } } // Creates an Ack span to be passed to the callback - Span rpcSpan = tracer.startSubscribeRpcSpan(subscription, "ack", messagesInRequest, 0, false); + Span rpcSpan = + tracer.startSubscribeRpcSpan(subscriptionNameObject, "ack", messagesInRequest, 0, false); ApiFutureCallback callback = getCallback(ackRequestDataInRequestList, 0, false, currentBackoffMillis, rpcSpan); ApiFuture ackFuture = @@ -493,7 +497,7 @@ private void sendModackOperations( // Creates either a ModAck span or a Nack span depending on the given ack deadline Span rpcSpan = tracer.startSubscribeRpcSpan( - subscription, + subscriptionNameObject, rpcOperation, messagesInRequest, deadlineExtensionSeconds, diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index bd3dccccfd5c..1de15693915c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -35,6 +35,8 @@ import org.mockito.stubbing.Answer; public class MessageDispatcherTest { + private static final String MOCK_SUBSCRIPTION_NAME = + "projects/MOCK-PROJECT/subscriptions/MOCK-SUBSCRIPTION"; private static final ByteString MESSAGE_DATA = ByteString.copyFromUtf8("message-data"); private static final int DELIVERY_INFO_COUNT = 3; private static final String ACK_ID = "ACK-ID"; @@ -462,6 +464,7 @@ public void testAckExtensionDefaultsExactlyOnceDeliveryDisabledThenEnabled() { .setMinDurationPerAckExtensionDefaultUsed(true) .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) .setMaxDurationPerAckExtensionDefaultUsed(true) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .build(); // ExactlyOnceDeliveryEnabled is turned off by default @@ -494,6 +497,7 @@ public void testAckExtensionDefaultsExactlyOnceDeliveryEnabledThenDisabled() { .setMinDurationPerAckExtensionDefaultUsed(true) .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) .setMaxDurationPerAckExtensionDefaultUsed(true) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .build(); // This would normally be set from the streaming pull response in the @@ -605,6 +609,7 @@ public void testAckExtensionCustomMinExactlyOnceDeliveryDisabledThenEnabled() { .setMinDurationPerAckExtensionDefaultUsed(false) .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) .setMaxDurationPerAckExtensionDefaultUsed(true) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .build(); // ExactlyOnceDeliveryEnabled is turned off by default @@ -634,6 +639,7 @@ public void testAckExtensionCustomMaxExactlyOnceDeliveryDisabledThenEnabled() { .setMinDurationPerAckExtensionDefaultUsed(true) .setMaxDurationPerAckExtension(Duration.ofSeconds(customMaxSeconds)) .setMaxDurationPerAckExtensionDefaultUsed(false) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .build(); // ExactlyOnceDeliveryEnabled is turned off by default @@ -704,6 +710,7 @@ private MessageDispatcher getMessageDispatcherFromBuilder( .setAckLatencyDistribution(mock(Distribution.class)) .setFlowController(mock(FlowController.class)) .setExecutor(executor) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .setSystemExecutor(systemExecutor) .setApiClock(clock) .build(); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java index b4433f41edc3..2297f84bf2b2 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java @@ -104,7 +104,7 @@ public void testPublishSpansSuccess() { openTelemetryTesting.clearSpans(); PubsubMessageWrapper messageWrapper = - PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME).build(); List messageWrappers = Arrays.asList(messageWrapper); long messageSize = messageWrapper.getPubsubMessage().getData().size(); @@ -117,7 +117,7 @@ public void testPublishSpansSuccess() { tracer.endPublishFlowControlSpan(messageWrapper); tracer.startPublishBatchingSpan(messageWrapper); tracer.endPublishBatchingSpan(messageWrapper); - Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME.toString(), messageWrappers); + Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME, messageWrappers); tracer.endPublishRpcSpan(publishRpcSpan); tracer.setPublisherMessageIdSpanAttribute(messageWrapper, MESSAGE_ID); tracer.endPublisherSpan(messageWrapper); @@ -218,7 +218,7 @@ public void testPublishFlowControlSpanFailure() { openTelemetryTesting.clearSpans(); PubsubMessageWrapper messageWrapper = - PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME).build(); Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); @@ -258,14 +258,14 @@ public void testPublishRpcSpanFailure() { openTelemetryTesting.clearSpans(); PubsubMessageWrapper messageWrapper = - PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME).build(); List messageWrappers = Arrays.asList(messageWrapper); Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); tracer.startPublisherSpan(messageWrapper); - Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME.toString(), messageWrappers); + Span publishRpcSpan = tracer.startPublishRpcSpan(FULL_TOPIC_NAME, messageWrappers); Exception e = new Exception("test-exception"); tracer.setPublishRpcSpanException(publishRpcSpan, e); @@ -302,7 +302,7 @@ public void testSubscribeSpansSuccess() { OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(openTelemetryTracer, true); PubsubMessageWrapper publishMessageWrapper = - PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME.toString()).build(); + PubsubMessageWrapper.newBuilder(getPubsubMessage(), FULL_TOPIC_NAME).build(); // Initialize the Publisher span to inject the context in the message tracer.startPublisherSpan(publishMessageWrapper); tracer.endPublisherSpan(publishMessageWrapper); @@ -310,8 +310,7 @@ public void testSubscribeSpansSuccess() { PubsubMessage publishedMessage = publishMessageWrapper.getPubsubMessage().toBuilder().setMessageId(MESSAGE_ID).build(); PubsubMessageWrapper subscribeMessageWrapper = - PubsubMessageWrapper.newBuilder( - publishedMessage, FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, 1) + PubsubMessageWrapper.newBuilder(publishedMessage, FULL_SUBSCRIPTION_NAME, ACK_ID, 1) .build(); List subscribeMessageWrappers = Arrays.asList(subscribeMessageWrapper); @@ -327,21 +326,17 @@ public void testSubscribeSpansSuccess() { tracer.endSubscribeProcessSpan(subscribeMessageWrapper, PROCESS_ACTION); Span subscribeModackRpcSpan = tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), - "modack", - subscribeMessageWrappers, - ACK_DEADLINE, - true); + FULL_SUBSCRIPTION_NAME, "modack", subscribeMessageWrappers, ACK_DEADLINE, true); tracer.endSubscribeRpcSpan(subscribeModackRpcSpan); tracer.addEndRpcEvent(subscribeMessageWrapper, true, true, ACK_DEADLINE); Span subscribeAckRpcSpan = tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), "ack", subscribeMessageWrappers, 0, false); + FULL_SUBSCRIPTION_NAME, "ack", subscribeMessageWrappers, 0, false); tracer.endSubscribeRpcSpan(subscribeAckRpcSpan); tracer.addEndRpcEvent(subscribeMessageWrapper, true, false, 0); Span subscribeNackRpcSpan = tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), "nack", subscribeMessageWrappers, 0, false); + FULL_SUBSCRIPTION_NAME, "nack", subscribeMessageWrappers, 0, false); tracer.endSubscribeRpcSpan(subscribeNackRpcSpan); tracer.addEndRpcEvent(subscribeMessageWrapper, true, true, 0); tracer.endSubscriberSpan(subscribeMessageWrapper); @@ -518,7 +513,7 @@ public void testSubscribeConcurrencyControlSpanFailure() { PubsubMessageWrapper messageWrapper = PubsubMessageWrapper.newBuilder( - getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + getPubsubMessage(), FULL_SUBSCRIPTION_NAME, ACK_ID, DELIVERY_ATTEMPT) .build(); Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); @@ -562,7 +557,7 @@ public void testSubscriberSpanFailure() { PubsubMessageWrapper messageWrapper = PubsubMessageWrapper.newBuilder( - getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + getPubsubMessage(), FULL_SUBSCRIPTION_NAME, ACK_ID, DELIVERY_ATTEMPT) .build(); Tracer openTelemetryTracer = openTelemetryTesting.getOpenTelemetry().getTracer("test"); @@ -595,7 +590,7 @@ public void testSubscribeRpcSpanFailures() { PubsubMessageWrapper messageWrapper = PubsubMessageWrapper.newBuilder( - getPubsubMessage(), FULL_SUBSCRIPTION_NAME.toString(), ACK_ID, DELIVERY_ATTEMPT) + getPubsubMessage(), FULL_SUBSCRIPTION_NAME, ACK_ID, DELIVERY_ATTEMPT) .build(); List messageWrappers = Arrays.asList(messageWrapper); @@ -605,13 +600,11 @@ public void testSubscribeRpcSpanFailures() { tracer.startSubscriberSpan(messageWrapper, EXACTLY_ONCE_ENABLED); Span subscribeModackRpcSpan = tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), "modack", messageWrappers, ACK_DEADLINE, true); + FULL_SUBSCRIPTION_NAME, "modack", messageWrappers, ACK_DEADLINE, true); Span subscribeAckRpcSpan = - tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), "ack", messageWrappers, 0, false); + tracer.startSubscribeRpcSpan(FULL_SUBSCRIPTION_NAME, "ack", messageWrappers, 0, false); Span subscribeNackRpcSpan = - tracer.startSubscribeRpcSpan( - FULL_SUBSCRIPTION_NAME.toString(), "nack", messageWrappers, 0, false); + tracer.startSubscribeRpcSpan(FULL_SUBSCRIPTION_NAME, "nack", messageWrappers, 0, false); Exception e = new Exception("test-exception"); tracer.setSubscribeRpcSpanException(subscribeModackRpcSpan, true, ACK_DEADLINE, e); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 412dd2ad86b4..8bf0113b5d5a 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -52,7 +52,8 @@ public class StreamingSubscriberConnectionTest { private FakeClock clock; private SubscriberStub mockSubscriberStub; - private static final String MOCK_SUBSCRIPTION_NAME = "MOCK-SUBSCRIPTION"; + private static final String MOCK_SUBSCRIPTION_NAME = + "projects/MOCK-PROJECT/subscriptions/MOCK-SUBSCRIPTION"; private static final String MOCK_ACK_ID_SUCCESS = "MOCK-ACK-ID-SUCCESS"; private static final String MOCK_ACK_ID_SUCCESS_2 = "MOCK-ACK-ID-SUCCESS-2"; private static final String MOCK_ACK_ID_NACK_SUCCESS = "MOCK-ACK-ID-NACK-SUCCESS"; From 3b9ef27a480b1ff8e85b6b8449757735951a2a95 Mon Sep 17 00:00:00 2001 From: ldetmer <1771267+ldetmer@users.noreply.github.com> Date: Fri, 28 Feb 2025 17:54:37 +0000 Subject: [PATCH 2072/2363] feat: next release from main branch is 1.138.0 (#2361) --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index dae3c7e8a250..c2b8a4cdba67 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -42,3 +42,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.129.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.137.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 9908bfe3885f..846e0ed3b998 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -177,6 +177,24 @@ branchProtectionRules: - 'Kokoro - Test: Java GraalVM Native Image' - 'Kokoro - Test: Java 17 GraalVM Native Image' - javadoc + - pattern: 1.137.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (17) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' + - javadoc + - library_generation + - unmanaged_dependency_check permissionRules: - team: yoshi-admins permission: admin From 87554ee574e1a193e3adb03f29e9fdcd7867f115 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Mar 2025 20:44:23 +0100 Subject: [PATCH 2073/2363] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.9.0 (#2357) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ce489f906353..dc3c1a01ebe2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -151,7 +151,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.8.0 + 3.9.0 From fcf9ee59f1c4cc35deec639301f6c9942099cfe9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 3 Mar 2025 20:44:31 +0100 Subject: [PATCH 2074/2363] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.4 (#2353) --- java-pubsub/samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/pom.xml b/java-pubsub/samples/pom.xml index 521e6a914b3d..b63314dd54af 100644 --- a/java-pubsub/samples/pom.xml +++ b/java-pubsub/samples/pom.xml @@ -53,7 +53,7 @@ org.apache.maven.plugins maven-deploy-plugin - 3.1.3 + 3.1.4 true From 64f3f7c86ef3dd1f63ba8426c92bb3db70e15d4e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 4 Mar 2025 00:11:34 +0100 Subject: [PATCH 2075/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.56.0 (#2362) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a2bc750b5c3e..0a152aa44542 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.55.0 + 26.56.0 pom import From 3d8ba1085cf05fc33fe4f7754109ee2b49a4bebe Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 3 Mar 2025 18:11:55 -0500 Subject: [PATCH 2076/2363] chore: Update generation configuration at Fri Feb 28 02:28:13 UTC 2025 (#2360) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 3200b796dc90..337eadb144fb 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.54.0 -googleapis_commitish: 554575ee8d01d277344ec704e0561e9abc7f57f3 +googleapis_commitish: 68b6376ca75f03094a65ec5bbbc868bd9f058ee3 libraries_bom_version: 26.55.0 libraries: - api_shortname: pubsub From 3df96cd382b0f2ce90d1fb0b27ad71bf282aad24 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 4 Mar 2025 00:12:17 +0100 Subject: [PATCH 2077/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.137.1 (#2354) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5e179771e3e7..b31e29cf1e8f 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1 From f275a26fbf10ccde19c6587944101e30fdd21e27 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Mar 2025 20:31:24 +0100 Subject: [PATCH 2078/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.45.1 (#2366) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 8e7b5948947d..c11991c37523 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.44.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.45.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg index 728751d048e9..07ae08a9807a 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.44.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1" } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg index 39151469c784..fb1979a33bab 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.44.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.45.1" } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fb07ca7076fe..10a00313a7ae 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.44.0 + 3.45.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index dc3c1a01ebe2..f19839331d7d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.44.0 + 3.45.1 From 4bd7fc23fd6490268d253972bf61624ce8773178 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Mar 2025 20:31:35 +0100 Subject: [PATCH 2079/2363] deps: update googleapis/sdk-platform-java action to v2.55.1 (#2367) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 5ad2a254b92a..ca1baea12a6d 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.54.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.55.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 6356ce8daab7390cc2c6d0349b4ba5f7bdf79605 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Mar 2025 22:18:24 -0400 Subject: [PATCH 2080/2363] chore(main): release 1.137.2-SNAPSHOT (#2352) * chore(main): release 1.137.2-SNAPSHOT * chore: generate libraries at Thu Mar 13 19:32:49 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c9dd8fc958f8..b4c8a5bb0f7b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.55.0 + 26.56.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.137.0 + 1.137.1 ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 10a00313a7ae..c79fe0f20d1a 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.137.1 + 1.137.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.137.1 + 1.137.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1364c0662f9c..bc78e9350f13 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.137.1 + 1.137.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.137.1 + 1.137.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c61be81f2557..d0aebc5fa5c6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.1 + 1.137.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f19839331d7d..35e19dbe578f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.137.1 + 1.137.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.137.1 + 1.137.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 30eb3b0a2eab..306129afb668 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.1 + 1.119.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.1 + 1.137.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 76112f52031b..7ddcb7938825 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.137.1 + 1.137.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b19d254bdec6..c50eab1b7b14 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.137.1:1.137.1 -grpc-google-cloud-pubsub-v1:1.119.1:1.119.1 -proto-google-cloud-pubsub-v1:1.119.1:1.119.1 +google-cloud-pubsub:1.137.1:1.137.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.119.1:1.119.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.119.1:1.119.2-SNAPSHOT From 4be8ec6ad2454285e0ea09a883d9d457bded4ea3 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 14 Mar 2025 14:01:13 -0400 Subject: [PATCH 2081/2363] chore: Update generation configuration at Fri Mar 14 02:21:49 UTC 2025 (#2370) * chore: Update generation configuration at Fri Mar 14 02:21:49 UTC 2025 * chore: generate libraries at Fri Mar 14 02:22:23 UTC 2025 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 6 +- .../google/pubsub/v1/MessageTransform.java | 133 +++- .../pubsub/v1/MessageTransformOrBuilder.java | 23 +- .../com/google/pubsub/v1/PubsubProto.java | 708 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 12 +- .../main/proto/google/pubsub/v1/schema.proto | 2 +- 9 files changed, 513 insertions(+), 383 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b4c8a5bb0f7b..16509a14f103 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.55.0') +implementation platform('com.google.cloud:libraries-bom:26.56.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 337eadb144fb..936aed5489f6 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.54.0 -googleapis_commitish: 68b6376ca75f03094a65ec5bbbc868bd9f058ee3 -libraries_bom_version: 26.55.0 +gapic_generator_version: 2.55.1 +googleapis_commitish: d0ba3ce0fafe1225ebda6b259a2e29dfe2934bb5 +libraries_bom_version: 26.56.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index 3e077aceab36..692b933598cb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -173,19 +173,41 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * * *
    -   * Optional. If set to true, the transform is enabled. If false, the transform
    -   * is disabled and will not be applied to messages. Defaults to `true`.
    +   * Optional. This field is deprecated, use the `disabled` field to disable
    +   * transforms.
        * 
    * - * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * + * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See + * google/pubsub/v1/pubsub.proto;l=726 * @return The enabled. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnabled() { return enabled_; } + public static final int DISABLED_FIELD_NUMBER = 4; + private boolean disabled_ = false; + /** + * + * + *
    +   * Optional. If true, the transform is disabled and will not be applied to
    +   * messages. Defaults to `false`.
    +   * 
    + * + * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -206,6 +228,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enabled_ != false) { output.writeBool(3, enabled_); } + if (disabled_ != false) { + output.writeBool(4, disabled_); + } getUnknownFields().writeTo(output); } @@ -223,6 +248,9 @@ public int getSerializedSize() { if (enabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enabled_); } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -239,6 +267,7 @@ public boolean equals(final java.lang.Object obj) { com.google.pubsub.v1.MessageTransform other = (com.google.pubsub.v1.MessageTransform) obj; if (getEnabled() != other.getEnabled()) return false; + if (getDisabled() != other.getDisabled()) return false; if (!getTransformCase().equals(other.getTransformCase())) return false; switch (transformCase_) { case 2: @@ -260,6 +289,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); switch (transformCase_) { case 2: hash = (37 * hash) + JAVASCRIPT_UDF_FIELD_NUMBER; @@ -410,6 +441,7 @@ public Builder clear() { javascriptUdfBuilder_.clear(); } enabled_ = false; + disabled_ = false; transformCase_ = 0; transform_ = null; return this; @@ -452,6 +484,9 @@ private void buildPartial0(com.google.pubsub.v1.MessageTransform result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.enabled_ = enabled_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disabled_ = disabled_; + } } private void buildPartialOneofs(com.google.pubsub.v1.MessageTransform result) { @@ -510,6 +545,9 @@ public Builder mergeFrom(com.google.pubsub.v1.MessageTransform other) { if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } switch (other.getTransformCase()) { case JAVASCRIPT_UDF: { @@ -559,6 +597,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 32: + { + disabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -830,15 +874,18 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * * *
    -     * Optional. If set to true, the transform is enabled. If false, the transform
    -     * is disabled and will not be applied to messages. Defaults to `true`.
    +     * Optional. This field is deprecated, use the `disabled` field to disable
    +     * transforms.
          * 
    * - * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * + * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See + * google/pubsub/v1/pubsub.proto;l=726 * @return The enabled. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnabled() { return enabled_; } @@ -846,15 +893,18 @@ public boolean getEnabled() { * * *
    -     * Optional. If set to true, the transform is enabled. If false, the transform
    -     * is disabled and will not be applied to messages. Defaults to `true`.
    +     * Optional. This field is deprecated, use the `disabled` field to disable
    +     * transforms.
          * 
    * - * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * + * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See + * google/pubsub/v1/pubsub.proto;l=726 * @param value The enabled to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setEnabled(boolean value) { enabled_ = value; @@ -866,14 +916,17 @@ public Builder setEnabled(boolean value) { * * *
    -     * Optional. If set to true, the transform is enabled. If false, the transform
    -     * is disabled and will not be applied to messages. Defaults to `true`.
    +     * Optional. This field is deprecated, use the `disabled` field to disable
    +     * transforms.
          * 
    * - * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * + * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See + * google/pubsub/v1/pubsub.proto;l=726 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearEnabled() { bitField0_ = (bitField0_ & ~0x00000002); enabled_ = false; @@ -881,6 +934,62 @@ public Builder clearEnabled() { return this; } + private boolean disabled_; + /** + * + * + *
    +     * Optional. If true, the transform is disabled and will not be applied to
    +     * messages. Defaults to `false`.
    +     * 
    + * + * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
    +     * Optional. If true, the transform is disabled and will not be applied to
    +     * messages. Defaults to `false`.
    +     * 
    + * + * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
    +     * Optional. If true, the transform is disabled and will not be applied to
    +     * messages. Defaults to `false`.
    +     * 
    + * + * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + bitField0_ = (bitField0_ & ~0x00000004); + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 8744837b1dbf..39dbe4062d51 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -72,15 +72,32 @@ public interface MessageTransformOrBuilder * * *
    -   * Optional. If set to true, the transform is enabled. If false, the transform
    -   * is disabled and will not be applied to messages. Defaults to `true`.
    +   * Optional. This field is deprecated, use the `disabled` field to disable
    +   * transforms.
        * 
    * - * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * + * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See + * google/pubsub/v1/pubsub.proto;l=726 * @return The enabled. */ + @java.lang.Deprecated boolean getEnabled(); + /** + * + * + *
    +   * Optional. If true, the transform is disabled and will not be applied to
    +   * messages. Defaults to `false`.
    +   * 
    + * + * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); + com.google.pubsub.v1.MessageTransform.TransformCase getTransformCase(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index e3124be2cee2..6a8d54f74543 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -492,361 +492,361 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\0132:.google.pubsub.v1.IngestionFailureEv" + "ent.ApiViolationReasonB\003\340A\001H\000B\010\n\006reasonB" + "\t\n\007failure\">\n\rJavaScriptUDF\022\032\n\rfunction_" - + "name\030\001 \001(\tB\003\340A\002\022\021\n\004code\030\002 \001(\tB\003\340A\002\"u\n\020Me" - + "ssageTransform\022>\n\016javascript_udf\030\002 \001(\0132\037" - + ".google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\024" - + "\n\007enabled\030\003 \001(\010B\003\340A\001B\013\n\ttransform\"\216\006\n\005To" - + "pic\022\021\n\004name\030\001 \001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#" - + ".google.pubsub.v1.Topic.LabelsEntryB\003\340A\001" - + "\022K\n\026message_storage_policy\030\003 \001(\0132&.googl" - + "e.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" - + "\014kms_key_name\030\005 \001(\tB\003\340A\001\022>\n\017schema_setti" - + "ngs\030\006 \001(\0132 .google.pubsub.v1.SchemaSetti" - + "ngsB\003\340A\001\022\032\n\rsatisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032" - + "message_retention_duration\030\010 \001(\0132\031.googl" - + "e.protobuf.DurationB\003\340A\001\0221\n\005state\030\t \001(\0162" - + "\035.google.pubsub.v1.Topic.StateB\003\340A\003\022Z\n\036i" - + "ngestion_data_source_settings\030\n \001(\0132-.go" - + "ogle.pubsub.v1.IngestionDataSourceSettin" - + "gsB\003\340A\001\022C\n\022message_transforms\030\r \003(\0132\".go" - + "ogle.pubsub.v1.MessageTransformB\003\340A\001\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"H\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006A" - + "CTIVE\020\001\022\034\n\030INGESTION_RESOURCE_ERROR\020\002:c\352" - + "A`\n\033pubsub.googleapis.com/Topic\022!project" - + "s/{project}/topics/{topic}\022\017_deleted-top" - + "ic_*\006topics2\005topic\"\200\002\n\rPubsubMessage\022\021\n\004" - + "data\030\001 \001(\014B\003\340A\001\022H\n\nattributes\030\002 \003(\0132/.go" - + "ogle.pubsub.v1.PubsubMessage.AttributesE" - + "ntryB\003\340A\001\022\022\n\nmessage_id\030\003 \001(\t\0220\n\014publish" - + "_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022" - + "\031\n\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n\017Attributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n" - + "\017GetTopicRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n" - + "\033pubsub.googleapis.com/Topic\"w\n\022UpdateTo" - + "picRequest\022+\n\005topic\030\001 \001(\0132\027.google.pubsu" - + "b.v1.TopicB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\003\340A\002\"|\n\016Publish" - + "Request\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.g" - + "oogleapis.com/Topic\0226\n\010messages\030\002 \003(\0132\037." - + "google.pubsub.v1.PubsubMessageB\003\340A\002\"+\n\017P" - + "ublishResponse\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001" - + "\"\212\001\n\021ListTopicsRequest\022D\n\007project\030\001 \001(\tB" - + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" - + ".com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"`\n\022ListTopicsRespo" - + "nse\022,\n\006topics\030\001 \003(\0132\027.google.pubsub.v1.T" - + "opicB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"" - + "\204\001\n\035ListTopicSubscriptionsRequest\0222\n\005top" + + "name\030\001 \001(\tB\003\340A\002\022\021\n\004code\030\002 \001(\tB\003\340A\002\"\216\001\n\020M" + + "essageTransform\022>\n\016javascript_udf\030\002 \001(\0132" + + "\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022" + + "\026\n\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n\010disabled\030\004 \001(" + + "\010B\003\340A\001B\013\n\ttransform\"\216\006\n\005Topic\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pubsub" + + ".v1.Topic.LabelsEntryB\003\340A\001\022K\n\026message_st" + + "orage_policy\030\003 \001(\0132&.google.pubsub.v1.Me" + + "ssageStoragePolicyB\003\340A\001\022\031\n\014kms_key_name\030" + + "\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 .go" + + "ogle.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsa" + + "tisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_retent" + + "ion_duration\030\010 \001(\0132\031.google.protobuf.Dur" + + "ationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pubsu" + + "b.v1.Topic.StateB\003\340A\003\022Z\n\036ingestion_data_" + + "source_settings\030\n \001(\0132-.google.pubsub.v1" + + ".IngestionDataSourceSettingsB\003\340A\001\022C\n\022mes" + + "sage_transforms\030\r \003(\0132\".google.pubsub.v1" + + ".MessageTransformB\003\340A\001\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030ING" + + "ESTION_RESOURCE_ERROR\020\002:c\352A`\n\033pubsub.goo" + + "gleapis.com/Topic\022!projects/{project}/to" + + "pics/{topic}\022\017_deleted-topic_*\006topics2\005t" + + "opic\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A" + + "\001\022H\n\nattributes\030\002 \003(\0132/.google.pubsub.v1" + + ".PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\nm" + + "essage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032." + + "google.protobuf.Timestamp\022\031\n\014ordering_ke" + + "y\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicReque" + + "st\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.google" + + "apis.com/Topic\"w\n\022UpdateTopicRequest\022+\n\005" + + "topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A" + + "\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005top" + "ic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/" - + "Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\"\201\001\n\036ListTopicSubscription" - + "sResponse\022A\n\rsubscriptions\030\001 \003(\tB*\340A\001\372A$" - + "\n\"pubsub.googleapis.com/Subscription\022\034\n\017" - + "next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopic" - + "SnapshotsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n" - + "\033pubsub.googleapis.com/Topic\022\026\n\tpage_siz" - + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n" - + "\032ListTopicSnapshotsResponse\022\026\n\tsnapshots" - + "\030\001 \003(\tB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A" - + "\001\"H\n\022DeleteTopicRequest\0222\n\005topic\030\001 \001(\tB#" - + "\340A\002\372A\035\n\033pubsub.googleapis.com/Topic\"]\n\031D" - + "etachSubscriptionRequest\022@\n\014subscription" - + "\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Su" - + "bscription\"\034\n\032DetachSubscriptionResponse" - + "\"\215\013\n\014Subscription\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005" - + "topic\030\002 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.c" - + "om/Topic\0226\n\013push_config\030\004 \001(\0132\034.google.p" - + "ubsub.v1.PushConfigB\003\340A\001\022>\n\017bigquery_con" - + "fig\030\022 \001(\0132 .google.pubsub.v1.BigQueryCon" - + "figB\003\340A\001\022G\n\024cloud_storage_config\030\026 \001(\0132$" - + ".google.pubsub.v1.CloudStorageConfigB\003\340A" - + "\001\022!\n\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025" - + "retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n\032mess" - + "age_retention_duration\030\010 \001(\0132\031.google.pr" - + "otobuf.DurationB\003\340A\001\022?\n\006labels\030\t \003(\0132*.g" - + "oogle.pubsub.v1.Subscription.LabelsEntry" - + "B\003\340A\001\022$\n\027enable_message_ordering\030\n \001(\010B\003" - + "\340A\001\022B\n\021expiration_policy\030\013 \001(\0132\".google." - + "pubsub.v1.ExpirationPolicyB\003\340A\001\022\023\n\006filte" - + "r\030\014 \001(\tB\003\340A\001\022C\n\022dead_letter_policy\030\r \001(\013" - + "2\".google.pubsub.v1.DeadLetterPolicyB\003\340A" - + "\001\0228\n\014retry_policy\030\016 \001(\0132\035.google.pubsub." - + "v1.RetryPolicyB\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340" - + "A\001\022)\n\034enable_exactly_once_delivery\030\020 \001(\010" - + "B\003\340A\001\022H\n topic_message_retention_duratio" - + "n\030\021 \001(\0132\031.google.protobuf.DurationB\003\340A\003\022" - + "8\n\005state\030\023 \001(\0162$.google.pubsub.v1.Subscr" - + "iption.StateB\003\340A\003\022i\n\037analytics_hub_subsc" - + "ription_info\030\027 \001(\0132;.google.pubsub.v1.Su" - + "bscription.AnalyticsHubSubscriptionInfoB" - + "\003\340A\003\022C\n\022message_transforms\030\031 \003(\0132\".googl" - + "e.pubsub.v1.MessageTransformB\003\340A\001\032O\n\034Ana" - + "lyticsHubSubscriptionInfo\022\024\n\007listing\030\001 \001" - + "(\tB\003\340A\001\022\031\n\014subscription\030\002 \001(\tB\003\340A\001\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\">\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACT" - + "IVE\020\001\022\022\n\016RESOURCE_ERROR\020\002:u\352Ar\n\"pubsub.g" - + "oogleapis.com/Subscription\022/projects/{pr" - + "oject}/subscriptions/{subscription}*\rsub" - + "scriptions2\014subscription\"\177\n\013RetryPolicy\022" - + "7\n\017minimum_backoff\030\001 \001(\0132\031.google.protob" - + "uf.DurationB\003\340A\001\0227\n\017maximum_backoff\030\002 \001(" - + "\0132\031.google.protobuf.DurationB\003\340A\001\"V\n\020Dea" - + "dLetterPolicy\022\036\n\021dead_letter_topic\030\001 \001(\t" - + "B\003\340A\001\022\"\n\025max_delivery_attempts\030\002 \001(\005B\003\340A" - + "\001\"?\n\020ExpirationPolicy\022+\n\003ttl\030\001 \001(\0132\031.goo" - + "gle.protobuf.DurationB\003\340A\001\"\232\004\n\nPushConfi" - + "g\022\032\n\rpush_endpoint\030\001 \001(\tB\003\340A\001\022E\n\nattribu" - + "tes\030\002 \003(\0132,.google.pubsub.v1.PushConfig." - + "AttributesEntryB\003\340A\001\022A\n\noidc_token\030\003 \001(\013" - + "2&.google.pubsub.v1.PushConfig.OidcToken" - + "B\003\340A\001H\000\022I\n\016pubsub_wrapper\030\004 \001(\0132*.google" - + ".pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001" - + "H\001\022A\n\nno_wrapper\030\005 \001(\0132&.google.pubsub.v" - + "1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n\tOidcTok" - + "en\022\"\n\025service_account_email\030\001 \001(\tB\003\340A\001\022\025" - + "\n\010audience\030\002 \001(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(" - + "\n\tNoWrapper\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001" - + "\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001B\027\n\025authentication_methodB\t\n\007" - + "wrapper\"\216\003\n\016BigQueryConfig\022\022\n\005table\030\001 \001(" - + "\tB\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" - + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n\023drop_unkno" - + "wn_fields\030\004 \001(\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.go" - + "ogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003" - + "\022\035\n\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n\025servi" - + "ce_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERM" - + "ISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA" - + "_MISMATCH\020\004\022#\n\037IN_TRANSIT_LOCATION_RESTR" - + "ICTION\020\005\"\351\005\n\022CloudStorageConfig\022\023\n\006bucke" - + "t\030\001 \001(\tB\003\340A\002\022\034\n\017filename_prefix\030\002 \001(\tB\003\340" - + "A\001\022\034\n\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n\030file" - + "name_datetime_format\030\n \001(\tB\003\340A\001\022K\n\013text_" - + "config\030\004 \001(\0132/.google.pubsub.v1.CloudSto" - + "rageConfig.TextConfigB\003\340A\001H\000\022K\n\013avro_con" - + "fig\030\005 \001(\0132/.google.pubsub.v1.CloudStorag" - + "eConfig.AvroConfigB\003\340A\001H\000\0224\n\014max_duratio" - + "n\030\006 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022" - + "\026\n\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n\014max_messages\030" - + "\010 \001(\003B\003\340A\001\022>\n\005state\030\t \001(\0162*.google.pubsu" - + "b.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n\025se" - + "rvice_account_email\030\013 \001(\tB\003\340A\001\032\014\n\nTextCo" - + "nfig\032H\n\nAvroConfig\022\033\n\016write_metadata\030\001 \001" - + "(\010B\003\340A\001\022\035\n\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212" - + "\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" - + "E\020\001\022\025\n\021PERMISSION_DENIED\020\002\022\r\n\tNOT_FOUND\020" - + "\003\022#\n\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023" - + "\n\017SCHEMA_MISMATCH\020\005B\017\n\routput_format\"|\n\017" - + "ReceivedMessage\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007" - + "message\030\002 \001(\0132\037.google.pubsub.v1.PubsubM" - + "essageB\003\340A\001\022\035\n\020delivery_attempt\030\003 \001(\005B\003\340" - + "A\001\"Z\n\026GetSubscriptionRequest\022@\n\014subscrip" - + "tion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.co" - + "m/Subscription\"\214\001\n\031UpdateSubscriptionReq" - + "uest\0229\n\014subscription\030\001 \001(\0132\036.google.pubs" - + "ub.v1.SubscriptionB\003\340A\002\0224\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001" - + "\n\030ListSubscriptionsRequest\022D\n\007project\030\001 " - + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" - + "apis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" - + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscri" - + "ptionsResponse\022:\n\rsubscriptions\030\001 \003(\0132\036." - + "google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n\017ne" - + "xt_page_token\030\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscr" - + "iptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\"" - + "\223\001\n\027ModifyPushConfigRequest\022@\n\014subscript" - + "ion\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com" - + "/Subscription\0226\n\013push_config\030\002 \001(\0132\034.goo" - + "gle.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n\013PullRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\022!\n\022retur" - + "n_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messag" - + "es\030\003 \001(\005B\003\340A\002\"Q\n\014PullResponse\022A\n\021receive" - + "d_messages\030\001 \003(\0132!.google.pubsub.v1.Rece" - + "ivedMessageB\003\340A\001\"\225\001\n\030ModifyAckDeadlineRe" - + "quest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pub" - + "sub.googleapis.com/Subscription\022\024\n\007ack_i" - + "ds\030\004 \003(\tB\003\340A\002\022!\n\024ack_deadline_seconds\030\003 " - + "\001(\005B\003\340A\002\"l\n\022AcknowledgeRequest\022@\n\014subscr" - + "iption\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis." - + "com/Subscription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307" - + "\002\n\024StreamingPullRequest\022@\n\014subscription\030" - + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n\027modif" - + "y_deadline_seconds\030\003 \003(\005B\003\340A\001\022$\n\027modify_" - + "deadline_ack_ids\030\004 \003(\tB\003\340A\001\022(\n\033stream_ac" - + "k_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_" - + "id\030\006 \001(\tB\003\340A\001\022%\n\030max_outstanding_message" - + "s\030\007 \001(\003B\003\340A\001\022\"\n\025max_outstanding_bytes\030\010 " - + "\001(\003B\003\340A\001\"\236\006\n\025StreamingPullResponse\022A\n\021re" - + "ceived_messages\030\001 \003(\0132!.google.pubsub.v1" - + ".ReceivedMessageB\003\340A\001\022f\n\030acknowledge_con" - + "firmation\030\005 \001(\0132?.google.pubsub.v1.Strea" - + "mingPullResponse.AcknowledgeConfirmation" - + "B\003\340A\001\022t\n modify_ack_deadline_confirmatio" - + "n\030\003 \001(\0132E.google.pubsub.v1.StreamingPull" - + "Response.ModifyAckDeadlineConfirmationB\003" - + "\340A\001\022d\n\027subscription_properties\030\004 \001(\0132>.g" - + "oogle.pubsub.v1.StreamingPullResponse.Su" - + "bscriptionPropertiesB\003\340A\001\032\224\001\n\027Acknowledg" - + "eConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017i" - + "nvalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_a" - + "ck_ids\030\003 \003(\tB\003\340A\001\022%\n\030temporary_failed_ac" - + "k_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDeadlineCon" - + "firmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017inval" - + "id_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030temporary_faile" - + "d_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026SubscriptionProp" - + "erties\022*\n\035exactly_once_delivery_enabled\030" - + "\001 \001(\010B\003\340A\001\022%\n\030message_ordering_enabled\030\002" - + " \001(\010B\003\340A\001\"\210\002\n\025CreateSnapshotRequest\0224\n\004n" - + "ame\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com" - + "/Snapshot\022@\n\014subscription\030\002 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022H\n\006l" - + "abels\030\003 \003(\01323.google.pubsub.v1.CreateSna" - + "pshotRequest.LabelsEntryB\003\340A\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n" - + "\025UpdateSnapshotRequest\0221\n\010snapshot\030\001 \001(\013" - + "2\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n\013upd" - + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\002\"\326\002\n\010Snapshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\022" - + "2\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub.googleapi" - + "s.com/Topic\0224\n\013expire_time\030\003 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\001\022;\n\006labels\030\004 \003(" - + "\0132&.google.pubsub.v1.Snapshot.LabelsEntr" - + "yB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:a\352A^\n\036pubsub.googleapis.co" - + "m/Snapshot\022\'projects/{project}/snapshots" - + "/{snapshot}*\tsnapshots2\010snapshot\"N\n\022GetS" + + "Topic\0226\n\010messages\030\002 \003(\0132\037.google.pubsub." + + "v1.PubsubMessageB\003\340A\002\"+\n\017PublishResponse" + + "\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopic" + + "sRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloud" + + "resourcemanager.googleapis.com/Project\022\026" + + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + + "(\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006topics\030" + + "\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n\017n" + + "ext_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicS" + + "ubscriptionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" + + "A\035\n\033pubsub.googleapis.com/Topic\022\026\n\tpage_" + + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + + "\"\201\001\n\036ListTopicSubscriptionsResponse\022A\n\rs" + + "ubscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.googl" + + "eapis.com/Subscription\022\034\n\017next_page_toke" + + "n\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsReque" + + "st\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.google" + + "apis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" + + "\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnap" + + "shotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTop" + + "icRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub" + + ".googleapis.com/Topic\"]\n\031DetachSubscript" + + "ionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" + + "\n\"pubsub.googleapis.com/Subscription\"\034\n\032" + + "DetachSubscriptionResponse\"\215\013\n\014Subscript" + + "ion\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340" + + "A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\013pu" + + "sh_config\030\004 \001(\0132\034.google.pubsub.v1.PushC" + + "onfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132 .go" + + "ogle.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n\024cl" + + "oud_storage_config\030\026 \001(\0132$.google.pubsub" + + ".v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_deadl" + + "ine_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_m" + + "essages\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_" + + "duration\030\010 \001(\0132\031.google.protobuf.Duratio" + + "nB\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubsub.v" + + "1.Subscription.LabelsEntryB\003\340A\001\022$\n\027enabl" + + "e_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021expirat" + + "ion_policy\030\013 \001(\0132\".google.pubsub.v1.Expi" + + "rationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C" + + "\n\022dead_letter_policy\030\r \001(\0132\".google.pubs" + + "ub.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry_pol" + + "icy\030\016 \001(\0132\035.google.pubsub.v1.RetryPolicy" + + "B\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_e" + + "xactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n topic" + + "_message_retention_duration\030\021 \001(\0132\031.goog" + + "le.protobuf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\016" + + "2$.google.pubsub.v1.Subscription.StateB\003" + + "\340A\003\022i\n\037analytics_hub_subscription_info\030\027" + + " \001(\0132;.google.pubsub.v1.Subscription.Ana" + + "lyticsHubSubscriptionInfoB\003\340A\003\022C\n\022messag" + + "e_transforms\030\031 \003(\0132\".google.pubsub.v1.Me" + + "ssageTransformB\003\340A\001\032O\n\034AnalyticsHubSubsc" + + "riptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014sub" + + "scription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOU" + + "RCE_ERROR\020\002:u\352Ar\n\"pubsub.googleapis.com/" + + "Subscription\022/projects/{project}/subscri" + + "ptions/{subscription}*\rsubscriptions2\014su" + + "bscription\"\177\n\013RetryPolicy\0227\n\017minimum_bac" + + "koff\030\001 \001(\0132\031.google.protobuf.DurationB\003\340" + + "A\001\0227\n\017maximum_backoff\030\002 \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\001\"V\n\020DeadLetterPolicy\022" + + "\036\n\021dead_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_d" + + "elivery_attempts\030\002 \001(\005B\003\340A\001\"?\n\020Expiratio" + + "nPolicy\022+\n\003ttl\030\001 \001(\0132\031.google.protobuf.D" + + "urationB\003\340A\001\"\232\004\n\nPushConfig\022\032\n\rpush_endp" + + "oint\030\001 \001(\tB\003\340A\001\022E\n\nattributes\030\002 \003(\0132,.go" + + "ogle.pubsub.v1.PushConfig.AttributesEntr" + + "yB\003\340A\001\022A\n\noidc_token\030\003 \001(\0132&.google.pubs" + + "ub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n\016pub" + + "sub_wrapper\030\004 \001(\0132*.google.pubsub.v1.Pus" + + "hConfig.PubsubWrapperB\003\340A\001H\001\022A\n\nno_wrapp" + + "er\030\005 \001(\0132&.google.pubsub.v1.PushConfig.N" + + "oWrapperB\003\340A\001H\001\032F\n\tOidcToken\022\"\n\025service_" + + "account_email\030\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001" + + "(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(\n\tNoWrapper\022\033\n" + + "\016write_metadata\030\001 \001(\010B\003\340A\001\0321\n\017Attributes" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" + + "\025authentication_methodB\t\n\007wrapper\"\216\003\n\016Bi" + + "gQueryConfig\022\022\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_" + + "topic_schema\030\002 \001(\010B\003\340A\001\022\033\n\016write_metadat" + + "a\030\003 \001(\010B\003\340A\001\022 \n\023drop_unknown_fields\030\004 \001(" + + "\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.google.pubsub.v1" + + ".BigQueryConfig.StateB\003\340A\003\022\035\n\020use_table_" + + "schema\030\006 \001(\010B\003\340A\001\022\"\n\025service_account_ema" + + "il\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020" + + "\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n" + + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\351\005\n\022C" + + "loudStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034" + + "\n\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename" + + "_suffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_" + + "format\030\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/" + + ".google.pubsub.v1.CloudStorageConfig.Tex" + + "tConfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.go" + + "ogle.pubsub.v1.CloudStorageConfig.AvroCo" + + "nfigB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.goog" + + "le.protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007" + + " \001(\003B\003\340A\001\022\031\n\014max_messages\030\010 \001(\003B\003\340A\001\022>\n\005" + + "state\030\t \001(\0162*.google.pubsub.v1.CloudStor" + + "ageConfig.StateB\003\340A\003\022\"\n\025service_account_" + + "email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\nAvroCo" + + "nfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use" + + "_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISS" + + "ION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSI" + + "T_LOCATION_RESTRICTION\020\004\022\023\n\017SCHEMA_MISMA" + + "TCH\020\005B\017\n\routput_format\"|\n\017ReceivedMessag" + + "e\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132" + + "\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubsc" + + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subscr" + + "iption\030\001 \001(\0132\036.google.pubsub.v1.Subscrip" + + "tionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscrip" + + "tionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" + + "\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsResponse" + + "\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub." + + "v1.SubscriptionB\003\340A\001\022\034\n\017next_page_token\030" + + "\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRequest\022" + + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" + + "ogleapis.com/Subscription\"\223\001\n\027ModifyPush" + + "ConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" + + "\372A$\n\"pubsub.googleapis.com/Subscription\022" + + "6\n\013push_config\030\002 \001(\0132\034.google.pubsub.v1." + + "PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subsc" + + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" + + ".com/Subscription\022!\n\022return_immediately\030" + + "\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"" + + "Q\n\014PullResponse\022A\n\021received_messages\030\001 \003" + + "(\0132!.google.pubsub.v1.ReceivedMessageB\003\340" + + "A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subsc" + + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" + + ".com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022" + + "!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Ac" + + "knowledgeRequest\022@\n\014subscription\030\001 \001(\tB*" + + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" + + "on\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPu" + + "llRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" + + "ck_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_sec" + + "onds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack_i" + + "ds\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_sec" + + "onds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022" + + "%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022\"" + + "\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025S" + + "treamingPullResponse\022A\n\021received_message" + + "s\030\001 \003(\0132!.google.pubsub.v1.ReceivedMessa" + + "geB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 \001(" + + "\0132?.google.pubsub.v1.StreamingPullRespon" + + "se.AcknowledgeConfirmationB\003\340A\001\022t\n modif" + + "y_ack_deadline_confirmation\030\003 \001(\0132E.goog" + + "le.pubsub.v1.StreamingPullResponse.Modif" + + "yAckDeadlineConfirmationB\003\340A\001\022d\n\027subscri" + + "ption_properties\030\004 \001(\0132>.google.pubsub.v" + + "1.StreamingPullResponse.SubscriptionProp" + + "ertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022" + + "\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids" + + "\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003" + + "\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB\003\340" + + "A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n\007a" + + "ck_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003" + + "(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 \003(" + + "\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035exac" + + "tly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030" + + "message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025" + + "CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002" + + "\372A \n\036pubsub.googleapis.com/Snapshot\022@\n\014s" + + "ubscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.google" + + "apis.com/Subscription\022H\n\006labels\030\003 \003(\01323." + + "google.pubsub.v1.CreateSnapshotRequest.L" + + "abelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapsho" + + "tRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pubs" + + "ub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\"\326\002\n\010Sn" + + "apshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\t" + + "B#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\0224\n" + + "\013expire_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pub" + + "sub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:" + + "a\352A^\n\036pubsub.googleapis.com/Snapshot\022\'pr" + + "ojects/{project}/snapshots/{snapshot}*\ts" + + "napshots2\010snapshot\"N\n\022GetSnapshotRequest" + + "\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googl" + + "eapis.com/Snapshot\"\215\001\n\024ListSnapshotsRequ" + + "est\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022\026\n\tpag" + + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" + + "A\001\"i\n\025ListSnapshotsResponse\0222\n\tsnapshots" + + "\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022" + + "\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteS" + "napshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A " - + "\n\036pubsub.googleapis.com/Snapshot\"\215\001\n\024Lis" - + "tSnapshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372" - + "A-\n+cloudresourcemanager.googleapis.com/" - + "Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" - + "token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsRespons" - + "e\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1." - + "SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003" - + "\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapshot" - + "\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/Sn" - + "apshot\"\306\001\n\013SeekRequest\022@\n\014subscription\030\001" - + " \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Subs" - + "cription\022/\n\004time\030\002 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001" - + "\372A \n\036pubsub.googleapis.com/SnapshotH\000B\010\n" - + "\006target\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027." - + "google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/" - + "v1/{name=projects/*/topics/*}:\001*\022\221\001\n\013Upd" - + "ateTopic\022$.google.pubsub.v1.UpdateTopicR" - + "equest\032\027.google.pubsub.v1.Topic\"C\332A\021topi" - + "c,update_mask\202\323\344\223\002)2$/v1/{topic.name=pro" - + "jects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .googl" - + "e.pubsub.v1.PublishRequest\032!.google.pubs" - + "ub.v1.PublishResponse\"C\332A\016topic,messages" - + "\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:" - + "publish:\001*\022w\n\010GetTopic\022!.google.pubsub.v" - + "1.GetTopicRequest\032\027.google.pubsub.v1.Top" - + "ic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/" - + "*/topics/*}\022\212\001\n\nListTopics\022#.google.pubs" - + "ub.v1.ListTopicsRequest\032$.google.pubsub." - + "v1.ListTopicsResponse\"1\332A\007project\202\323\344\223\002!\022" - + "\037/v1/{project=projects/*}/topics\022\272\001\n\026Lis" - + "tTopicSubscriptions\022/.google.pubsub.v1.L" - + "istTopicSubscriptionsRequest\0320.google.pu" - + "bsub.v1.ListTopicSubscriptionsResponse\"=" - + "\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/to", - "pics/*}/subscriptions\022\252\001\n\022ListTopicSnaps" - + "hots\022+.google.pubsub.v1.ListTopicSnapsho" - + "tsRequest\032,.google.pubsub.v1.ListTopicSn" - + "apshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{to" - + "pic=projects/*/topics/*}/snapshots\022|\n\013De" - + "leteTopic\022$.google.pubsub.v1.DeleteTopic" - + "Request\032\026.google.protobuf.Empty\"/\332A\005topi" - + "c\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}" - + "\022\255\001\n\022DetachSubscription\022+.google.pubsub." - + "v1.DetachSubscriptionRequest\032,.google.pu" - + "bsub.v1.DetachSubscriptionResponse\"<\202\323\344\223" - + "\0026\"4/v1/{subscription=projects/*/subscri" - + "ptions/*}:detach\032p\312A\025pubsub.googleapis.c" - + "om\322AUhttps://www.googleapis.com/auth/clo" - + "ud-platform,https://www.googleapis.com/a" - + "uth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubs" - + "cription\022\036.google.pubsub.v1.Subscription" - + "\032\036.google.pubsub.v1.Subscription\"^\332A+nam" - + "e,topic,push_config,ack_deadline_seconds" - + "\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptio" - + "ns/*}:\001*\022\241\001\n\017GetSubscription\022(.google.pu" - + "bsub.v1.GetSubscriptionRequest\032\036.google." - + "pubsub.v1.Subscription\"D\332A\014subscription\202" - + "\323\344\223\002/\022-/v1/{subscription=projects/*/subs" - + "criptions/*}\022\273\001\n\022UpdateSubscription\022+.go" - + "ogle.pubsub.v1.UpdateSubscriptionRequest" - + "\032\036.google.pubsub.v1.Subscription\"X\332A\030sub" - + "scription,update_mask\202\323\344\223\002722/v1/{subscr" - + "iption.name=projects/*/subscriptions/*}:" - + "\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsub" - + ".v1.ListSubscriptionsRequest\032+.google.pu" - + "bsub.v1.ListSubscriptionsResponse\"8\332A\007pr" - + "oject\202\323\344\223\002(\022&/v1/{project=projects/*}/su" - + "bscriptions\022\237\001\n\022DeleteSubscription\022+.goo" - + "gle.pubsub.v1.DeleteSubscriptionRequest\032" - + "\026.google.protobuf.Empty\"D\332A\014subscription" - + "\202\323\344\223\002/*-/v1/{subscription=projects/*/sub" - + "scriptions/*}\022\317\001\n\021ModifyAckDeadline\022*.go" - + "ogle.pubsub.v1.ModifyAckDeadlineRequest\032" - + "\026.google.protobuf.Empty\"v\332A)subscription" - + ",ack_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1" - + "/{subscription=projects/*/subscriptions/" - + "*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowledge\022" - + "$.google.pubsub.v1.AcknowledgeRequest\032\026." - + "google.protobuf.Empty\"[\332A\024subscription,a" - + "ck_ids\202\323\344\223\002>\"9/v1/{subscription=projects" - + "/*/subscriptions/*}:acknowledge:\001*\022\320\001\n\004P" - + "ull\022\035.google.pubsub.v1.PullRequest\032\036.goo" - + "gle.pubsub.v1.PullResponse\"\210\001\332A,subscrip" - + "tion,return_immediately,max_messages\332A\031s" - + "ubscription,max_messages\202\323\344\223\0027\"2/v1/{sub" - + "scription=projects/*/subscriptions/*}:pu" - + "ll:\001*\022f\n\rStreamingPull\022&.google.pubsub.v" - + "1.StreamingPullRequest\032\'.google.pubsub.v" - + "1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Modify" - + "PushConfig\022).google.pubsub.v1.ModifyPush" - + "ConfigRequest\032\026.google.protobuf.Empty\"d\332" - + "A\030subscription,push_config\202\323\344\223\002C\">/v1/{s" - + "ubscription=projects/*/subscriptions/*}:" - + "modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.go" - + "ogle.pubsub.v1.GetSnapshotRequest\032\032.goog" - + "le.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'" - + "\022%/v1/{snapshot=projects/*/snapshots/*}\022" - + "\226\001\n\rListSnapshots\022&.google.pubsub.v1.Lis" - + "tSnapshotsRequest\032\'.google.pubsub.v1.Lis" - + "tSnapshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v" - + "1/{project=projects/*}/snapshots\022\227\001\n\016Cre" - + "ateSnapshot\022\'.google.pubsub.v1.CreateSna" - + "pshotRequest\032\032.google.pubsub.v1.Snapshot" - + "\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name=" - + "projects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSna" - + "pshot\022\'.google.pubsub.v1.UpdateSnapshotR" - + "equest\032\032.google.pubsub.v1.Snapshot\"L\332A\024s" - + "napshot,update_mask\202\323\344\223\002/2*/v1/{snapshot" - + ".name=projects/*/snapshots/*}:\001*\022\213\001\n\016Del" - + "eteSnapshot\022\'.google.pubsub.v1.DeleteSna" - + "pshotRequest\032\026.google.protobuf.Empty\"8\332A" - + "\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=projects/" - + "*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub." - + "v1.SeekRequest\032\036.google.pubsub.v1.SeekRe" - + "sponse\"=\202\323\344\223\0027\"2/v1/{subscription=projec" - + "ts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsub" - + ".googleapis.com\322AUhttps://www.googleapis" - + ".com/auth/cloud-platform,https://www.goo" - + "gleapis.com/auth/pubsubB\247\001\n\024com.google.p" - + "ubsub.v1B\013PubsubProtoP\001Z2cloud.google.co" - + "m/go/pubsub/apiv1/pubsubpb;pubsubpb\252\002\026Go" - + "ogle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubS" - + "ub\\V1\352\002\031Google::Cloud::PubSub::V1b\006proto" - + "3" + + "\n\036pubsub.googleapis.com/Snapshot\"\306\001\n\013See" + + "kRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" + + "pubsub.googleapis.com/Subscription\022/\n\004ti" + + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.go" + + "ogleapis.com/SnapshotH\000B\010\n\006target\"\016\n\014See" + + "kResponse2\270\013\n\tPublisher\022q\n\013CreateTopic\022\027" + + ".google.pubsub.v1.Topic\032\027.google.pubsub." + + "v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=proje" + + "cts/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022$.goo" + + "gle.pubsub.v1.UpdateTopicRequest\032\027.googl" + + "e.pubsub.v1.Topic\"C\332A\021topic,update_mask\202" + + "\323\344\223\002)2$/v1/{topic.name=projects/*/topics" + + "/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1.Pu" + + "blishRequest\032!.google.pubsub.v1.PublishR" + + "esponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{t" + + "opic=projects/*/topics/*}:publish:\001*\022w\n\010" + + "GetTopic\022!.google.pubsub.v1.GetTopicRequ" + + "est\032\027.google.pubsub.v1.Topic\"/\332A\005topic\202\323" + + "\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001" + + "\n\nListTopics\022#.google.pubsub.v1.ListTopi" + + "csRequest\032$.google.pubsub.v1.ListTopicsR" + + "esponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=" + + "projects/*}/topics\022\272\001\n\026ListTopicSubscrip" + + "tions\022/.google.pubsub.v1.ListTopicSubscr" + + "iptionsRequest\0320.google.pubsub.v1.ListTo" + + "picSubscriptionsResponse\"=\332A\005topic\202\323\344\223\002/", + "\022-/v1/{topic=projects/*/topics/*}/subscr" + + "iptions\022\252\001\n\022ListTopicSnapshots\022+.google." + + "pubsub.v1.ListTopicSnapshotsRequest\032,.go" + + "ogle.pubsub.v1.ListTopicSnapshotsRespons" + + "e\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*" + + "/topics/*}/snapshots\022|\n\013DeleteTopic\022$.go" + + "ogle.pubsub.v1.DeleteTopicRequest\032\026.goog" + + "le.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{" + + "topic=projects/*/topics/*}\022\255\001\n\022DetachSub" + + "scription\022+.google.pubsub.v1.DetachSubsc" + + "riptionRequest\032,.google.pubsub.v1.Detach" + + "SubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{subsc" + + "ription=projects/*/subscriptions/*}:deta" + + "ch\032p\312A\025pubsub.googleapis.com\322AUhttps://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/pubsub2\322\025\n" + + "\nSubscriber\022\264\001\n\022CreateSubscription\022\036.goo" + + "gle.pubsub.v1.Subscription\032\036.google.pubs" + + "ub.v1.Subscription\"^\332A+name,topic,push_c" + + "onfig,ack_deadline_seconds\202\323\344\223\002*\032%/v1/{n" + + "ame=projects/*/subscriptions/*}:\001*\022\241\001\n\017G" + + "etSubscription\022(.google.pubsub.v1.GetSub" + + "scriptionRequest\032\036.google.pubsub.v1.Subs" + + "cription\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{su" + + "bscription=projects/*/subscriptions/*}\022\273" + + "\001\n\022UpdateSubscription\022+.google.pubsub.v1" + + ".UpdateSubscriptionRequest\032\036.google.pubs" + + "ub.v1.Subscription\"X\332A\030subscription,upda" + + "te_mask\202\323\344\223\002722/v1/{subscription.name=pr" + + "ojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSub" + + "scriptions\022*.google.pubsub.v1.ListSubscr" + + "iptionsRequest\032+.google.pubsub.v1.ListSu" + + "bscriptionsResponse\"8\332A\007project\202\323\344\223\002(\022&/" + + "v1/{project=projects/*}/subscriptions\022\237\001" + + "\n\022DeleteSubscription\022+.google.pubsub.v1." + + "DeleteSubscriptionRequest\032\026.google.proto" + + "buf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{s" + + "ubscription=projects/*/subscriptions/*}\022" + + "\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v1" + + ".ModifyAckDeadlineRequest\032\026.google.proto" + + "buf.Empty\"v\332A)subscription,ack_ids,ack_d" + + "eadline_seconds\202\323\344\223\002D\"?/v1/{subscription" + + "=projects/*/subscriptions/*}:modifyAckDe" + + "adline:\001*\022\250\001\n\013Acknowledge\022$.google.pubsu" + + "b.v1.AcknowledgeRequest\032\026.google.protobu" + + "f.Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9" + + "/v1/{subscription=projects/*/subscriptio" + + "ns/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.google.p" + + "ubsub.v1.PullRequest\032\036.google.pubsub.v1." + + "PullResponse\"\210\001\332A,subscription,return_im" + + "mediately,max_messages\332A\031subscription,ma" + + "x_messages\202\323\344\223\0027\"2/v1/{subscription=proj" + + "ects/*/subscriptions/*}:pull:\001*\022f\n\rStrea" + + "mingPull\022&.google.pubsub.v1.StreamingPul" + + "lRequest\032\'.google.pubsub.v1.StreamingPul" + + "lResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).g" + + "oogle.pubsub.v1.ModifyPushConfigRequest\032" + + "\026.google.protobuf.Empty\"d\332A\030subscription" + + ",push_config\202\323\344\223\002C\">/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:modifyPushConf" + + "ig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1" + + ".GetSnapshotRequest\032\032.google.pubsub.v1.S" + + "napshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapsho" + + "t=projects/*/snapshots/*}\022\226\001\n\rListSnapsh" + + "ots\022&.google.pubsub.v1.ListSnapshotsRequ" + + "est\032\'.google.pubsub.v1.ListSnapshotsResp" + + "onse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=pro" + + "jects/*}/snapshots\022\227\001\n\016CreateSnapshot\022\'." + + "google.pubsub.v1.CreateSnapshotRequest\032\032" + + ".google.pubsub.v1.Snapshot\"@\332A\021name,subs" + + "cription\202\323\344\223\002&\032!/v1/{name=projects/*/sna" + + "pshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.google" + + ".pubsub.v1.UpdateSnapshotRequest\032\032.googl" + + "e.pubsub.v1.Snapshot\"L\332A\024snapshot,update" + + "_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects" + + "/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'." + + "google.pubsub.v1.DeleteSnapshotRequest\032\026" + + ".google.protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002" + + "\'*%/v1/{snapshot=projects/*/snapshots/*}" + + "\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRequest" + + "\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027" + + "\"2/v1/{subscription=projects/*/subscript" + + "ions/*}:seek:\001*\032p\312A\025pubsub.googleapis.co" + + "m\322AUhttps://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/au" + + "th/pubsubB\247\001\n\024com.google.pubsub.v1B\013Pubs" + + "ubProtoP\001Z2cloud.google.com/go/pubsub/ap" + + "iv1/pubsubpb;pubsubpb\252\002\026Google.Cloud.Pub" + + "Sub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google" + + "::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1072,7 +1072,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_MessageTransform_descriptor, new java.lang.String[] { - "JavascriptUdf", "Enabled", "Transform", + "JavascriptUdf", "Enabled", "Disabled", "Transform", }); internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 7345e9613e81..1ad7fd33c948 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -137,7 +137,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1907 + * google/pubsub/v1/pubsub.proto;l=1911 * @return The returnImmediately. */ @java.lang.Override @@ -688,7 +688,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1907 + * google/pubsub/v1/pubsub.proto;l=1911 * @return The returnImmediately. */ @java.lang.Override @@ -714,7 +714,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1907 + * google/pubsub/v1/pubsub.proto;l=1911 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -744,7 +744,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1907 + * google/pubsub/v1/pubsub.proto;l=1911 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 0d99d58e5f76..0b296c5d5421 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1907 + * google/pubsub/v1/pubsub.proto;l=1911 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b881f8fa3c33..7ea1327fadcf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -722,9 +722,13 @@ message MessageTransform { JavaScriptUDF javascript_udf = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Optional. If set to true, the transform is enabled. If false, the transform - // is disabled and will not be applied to messages. Defaults to `true`. - bool enabled = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. This field is deprecated, use the `disabled` field to disable + // transforms. + bool enabled = 3 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the transform is disabled and will not be applied to + // messages. Defaults to `false`. + bool disabled = 4 [(google.api.field_behavior) = OPTIONAL]; } // A topic resource. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index 81d56bd7f1fd..08781bbfcd08 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 25b0ffe6ba908a7a1a43ff82fd925ff758145a78 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 14 Mar 2025 14:01:28 -0400 Subject: [PATCH 2082/2363] ci: the java team to merge auto-generated PRs (#2371) b/379670583 --- java-pubsub/.github/CODEOWNERS | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS index 125a152c83ac..1e8bea4c7ff8 100644 --- a/java-pubsub/.github/CODEOWNERS +++ b/java-pubsub/.github/CODEOWNERS @@ -10,6 +10,17 @@ # for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner **/*.java @googleapis/api-pubsub +# For generated Java code +proto-*/ @googleapis/yoshi-java @googleapis/api-pubsub +grpc-*/ @googleapis/yoshi-java @googleapis/api-pubsub +# Generated code pattern in google-cloud-pubsub +**/*Client.java @googleapis/yoshi-java @googleapis/api-pubsub +**/*Settings.java @googleapis/yoshi-java @googleapis/api-pubsub +**/*ClientHttpJsonTest.java @googleapis/yoshi-java @googleapis/api-pubsub +**/*ClientTest.java @googleapis/yoshi-java @googleapis/api-pubsub +google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/** @googleapis/yoshi-java @googleapis/api-pubsub +google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @googleapis/yoshi-java @googleapis/api-pubsub +google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/Mock* @googleapis/yoshi-java @googleapis/api-pubsub # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers From 8bad3ad6de9e349d39c123bbba681a027109dadd Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 14 Mar 2025 15:33:51 -0400 Subject: [PATCH 2083/2363] chore(main): release 1.138.0 (#2369) * chore(main): release 1.138.0 * chore: generate libraries at Fri Mar 14 18:02:14 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 22 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 43 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 21c22019dbc1..f77a4f9ebfdc 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [1.138.0](https://github.com/googleapis/java-pubsub/compare/v1.137.1...v1.138.0) (2025-03-14) + + +### Features + +* Deprecate `enabled` field for message transforms and add `disabled` field ([76b2a3d](https://github.com/googleapis/java-pubsub/commit/76b2a3dc1f001dfeb3f8974a4cc4de843b7383bc)) +* Next release from main branch is 1.138.0 ([#2361](https://github.com/googleapis/java-pubsub/issues/2361)) ([b6ba56c](https://github.com/googleapis/java-pubsub/commit/b6ba56c04619660d2660a660eaacbda7de9f8608)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.55.1 ([76b2a3d](https://github.com/googleapis/java-pubsub/commit/76b2a3dc1f001dfeb3f8974a4cc4de843b7383bc)) +* Prevent excessive string parsing when publishing and receiving messages to improve performance ([#2317](https://github.com/googleapis/java-pubsub/issues/2317)) ([07b1350](https://github.com/googleapis/java-pubsub/commit/07b135001b4726c9bafafe90c80d369f25f04956)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.48.1 ([#2356](https://github.com/googleapis/java-pubsub/issues/2356)) ([7d3d2e4](https://github.com/googleapis/java-pubsub/commit/7d3d2e4690539ebbe7ab521c2c345b06cba766ea)) +* Update dependency com.google.cloud:google-cloud-storage to v2.49.0 ([#2358](https://github.com/googleapis/java-pubsub/issues/2358)) ([81d3435](https://github.com/googleapis/java-pubsub/commit/81d34352d332ee9c4935e7908b6b9a2383d3a8ba)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.45.1 ([#2366](https://github.com/googleapis/java-pubsub/issues/2366)) ([15899d1](https://github.com/googleapis/java-pubsub/commit/15899d127131747c51c71c94d66ff581f70278f3)) +* Update googleapis/sdk-platform-java action to v2.55.1 ([#2367](https://github.com/googleapis/java-pubsub/issues/2367)) ([de6f84a](https://github.com/googleapis/java-pubsub/commit/de6f84a43a27e954c0dc635158c43c5db4d07dfa)) + ## [1.137.1](https://github.com/googleapis/java-pubsub/compare/v1.137.0...v1.137.1) (2025-02-26) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 16509a14f103..b4815f2d4fad 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.137.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.138.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.137.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.138.0" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.137.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.138.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c79fe0f20d1a..23974ed45170 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.137.2-SNAPSHOT + 1.138.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.137.2-SNAPSHOT + 1.138.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index bc78e9350f13..228dae29c0d6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.137.2-SNAPSHOT + 1.138.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.137.2-SNAPSHOT + 1.138.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d0aebc5fa5c6..380f1f5007d6 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.2-SNAPSHOT + 1.138.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 35e19dbe578f..d4edd2342930 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.137.2-SNAPSHOT + 1.138.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0 com.google.cloud google-cloud-pubsub - 1.137.2-SNAPSHOT + 1.138.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 306129afb668..33873694af5e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.119.2-SNAPSHOT + 1.120.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.137.2-SNAPSHOT + 1.138.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7ddcb7938825..dc6902be5dac 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.137.2-SNAPSHOT + 1.138.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c50eab1b7b14..5d89f2bf7208 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.137.1:1.137.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.119.1:1.119.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.119.1:1.119.2-SNAPSHOT +google-cloud-pubsub:1.138.0:1.138.0 +grpc-google-cloud-pubsub-v1:1.120.0:1.120.0 +proto-google-cloud-pubsub-v1:1.120.0:1.120.0 From e13a7b68fa9ace16b6122c5773842f9f8f8e0a99 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 18 Mar 2025 15:06:47 +0100 Subject: [PATCH 2084/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.50.0 (#2372) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b31e29cf1e8f..1235fd7825ac 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.49.0 + 2.50.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index dc6902be5dac..f594c6028bc7 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.49.0 + 2.50.0 com.google.cloud.opentelemetry From 802def16de79a710b5a5d4bee793c89c32ad4331 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 18 Mar 2025 15:07:05 +0100 Subject: [PATCH 2085/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.30.1 (#2364) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1235fd7825ac..80b6d9289817 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.29.3 + 4.30.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f594c6028bc7..3e751bdba602 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.29.3 + 4.30.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 0a152aa44542..5b15d95500cb 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.29.3 + 4.30.1 From 03fd81104be2d3ba2f409b1d18858c3adaaafce6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Mar 2025 15:01:35 +0100 Subject: [PATCH 2086/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.138.0 (#2374) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 80b6d9289817..b591f037e2aa 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.137.1 + 1.138.0 From 0537c6840cec9ee77864266bd8104526fa525729 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 20 Mar 2025 15:02:00 +0100 Subject: [PATCH 2087/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.53.1 (#2365) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b591f037e2aa..9dd49762f490 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.52.0 + 2.53.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3e751bdba602..fd3a94369769 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.52.0 + 2.53.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5b15d95500cb..5ad578adfa68 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.52.0 + 2.53.1 tests From cde298c426802290764a36d73eea438ec343b421 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Mar 2025 18:26:05 +0100 Subject: [PATCH 2088/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.49.0 (#2380) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 9dd49762f490..acb5ac6176bf 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.48.1 + 2.49.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fd3a94369769..24923e2de3b0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.48.1 + 2.49.0 com.google.cloud From 7262e1d2e62b89c17dea1e3e5fe49b9bb16e0fa6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Mar 2025 18:26:15 +0100 Subject: [PATCH 2089/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.57.0 (#2381) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5ad578adfa68..5e5d38a603e7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.56.0 + 26.57.0 pom import From 87d489b7c32228692a27d792cd48faf46767240d Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 27 Mar 2025 19:27:01 -0400 Subject: [PATCH 2090/2363] chore: Update generation configuration at Tue Mar 18 02:30:12 UTC 2025 (#2375) * chore: Update generation configuration at Sat Mar 15 02:27:31 UTC 2025 * chore: Update generation configuration at Mon Mar 17 02:30:47 UTC 2025 * chore: Update generation configuration at Tue Mar 18 02:30:12 UTC 2025 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 936aed5489f6..9855a797ca83 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.55.1 -googleapis_commitish: d0ba3ce0fafe1225ebda6b259a2e29dfe2934bb5 +googleapis_commitish: 6155d42e99f45ebf53100d492852be1561916137 libraries_bom_version: 26.56.0 libraries: - api_shortname: pubsub From a550ec18e7f9471cce65e0c72649d22413cd2743 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 28 Mar 2025 01:38:14 +0100 Subject: [PATCH 2091/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.30.2 (#2383) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index acb5ac6176bf..bd608c657d47 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.30.1 + 4.30.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 24923e2de3b0..daa2a4cc6872 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.30.1 + 4.30.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5e5d38a603e7..4b60d917e667 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.30.1 + 4.30.2 From d40dec56f16155f8ebd79ee96d8572652c195188 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 31 Mar 2025 10:40:49 -0400 Subject: [PATCH 2092/2363] fix: Add retries for ack and modack operations that don't return with a metadata map (#2385) * fix: Add retries for ack and modack operations that don't return with a metadata map * fix: Remove messages from pending requests if the ack/modack failure does not have a metadata map * fix: Forget ack IDs when ack/modacks fail with non-retryable errors --- .../cloud/pubsub/v1/MessageDispatcher.java | 15 ++ .../cloud/pubsub/v1/PubsubMessageWrapper.java | 4 + .../google/cloud/pubsub/v1/StatusUtil.java | 20 +++ .../v1/StreamingSubscriberConnection.java | 128 ++++++++++-------- .../v1/StreamingSubscriberConnectionTest.java | 62 +++++++++ 5 files changed, 174 insertions(+), 55 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 34ef312f379c..983844a62b2f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -476,6 +476,21 @@ void notifyAckFailed(AckRequestData ackRequestData) { synchronized (outstandingReceipts) { outstandingReceipts.remove(ackRequestData.getAckId()); } + + // When notifying that an ack/modack has failed, due to a non-retryable error, + // we attempt to remove the message from the pending messages and release it from the flow + // controller so that we no longer attempt to extend the message's ack deadline. + if (pendingMessages.remove(ackRequestData.getAckId()) == null) { + /* + * We're forgetting the message for the second time. This may occur on modacks because the message passed + * its total expiration and was forgotten and then the user finishes working on the message + * which forgets the message again. Additionally, when a failed ack occurs, we will have already forgotten + * the message, so we don't need to here. Turns the second forget into a no-op so we don't free twice. + */ + return; + } + flowController.release(1, ackRequestData.getMessageWrapper().getSerializedSize()); + messagesWaiter.incrementPendingCount(-1); } private void processBatch(List batch) { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java index 839eecf9182e..7067b0c1aa20 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java @@ -133,6 +133,10 @@ int getDataSize() { return message.getData().size(); } + int getSerializedSize() { + return message.getSerializedSize(); + } + String getOrderingKey() { return message.getOrderingKey(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java index a7b8e1faa5bf..56c19306d1a0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java @@ -25,6 +25,26 @@ private StatusUtil() { // Static class, not instantiable. } + static AckResponse getFailedAckResponse(Throwable t) { + if (!(t instanceof ApiException)) { + return AckResponse.OTHER; + } + + ApiException apiException = (ApiException) t; + AckResponse failedAckResponse; + switch (apiException.getStatusCode().getCode()) { + case FAILED_PRECONDITION: + failedAckResponse = AckResponse.FAILED_PRECONDITION; + break; + case PERMISSION_DENIED: + failedAckResponse = AckResponse.PERMISSION_DENIED; + break; + default: + failedAckResponse = AckResponse.OTHER; + } + return failedAckResponse; + } + static boolean isRetryable(Throwable error) { if (!(error instanceof ApiException)) { return true; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 80ff2b4e1288..26411942f9a9 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -408,21 +408,7 @@ private void setFailureFutureOutstandingMessages(Throwable t) { AckResponse ackResponse; if (getExactlyOnceDeliveryEnabled()) { - if (!(t instanceof ApiException)) { - ackResponse = AckResponse.OTHER; - } - - ApiException apiException = (ApiException) t; - switch (apiException.getStatusCode().getCode()) { - case FAILED_PRECONDITION: - ackResponse = AckResponse.FAILED_PRECONDITION; - break; - case PERMISSION_DENIED: - ackResponse = AckResponse.PERMISSION_DENIED; - break; - default: - ackResponse = AckResponse.OTHER; - } + ackResponse = StatusUtil.getFailedAckResponse(t); } else { // We should set success regardless if ExactlyOnceDelivery is not enabled ackResponse = AckResponse.SUCCESSFUL; @@ -504,7 +490,7 @@ private void sendModackOperations( modackRequestData.getIsReceiptModack()); ApiFutureCallback callback = getCallback( - modackRequestData.getAckRequestData(), + ackRequestDataInRequestList, deadlineExtensionSeconds, true, currentBackoffMillis, @@ -611,23 +597,14 @@ public void onFailure(Throwable t) { List ackRequestDataArrayRetryList = new ArrayList<>(); try { Map metadataMap = getMetadataMapFromThrowable(t); - ackRequestDataList.forEach( - ackRequestData -> { - String ackId = ackRequestData.getAckId(); - if (metadataMap.containsKey(ackId)) { - // An error occured - String errorMessage = metadataMap.get(ackId); - if (errorMessage.startsWith(TRANSIENT_FAILURE_METADATA_PREFIX)) { - // Retry all "TRANSIENT_*" error messages - do not set message future - logger.log(Level.INFO, "Transient error message, will resend", errorMessage); - ackRequestDataArrayRetryList.add(ackRequestData); - } else if (errorMessage.equals(PERMANENT_FAILURE_INVALID_ACK_ID_METADATA)) { - // Permanent failure, send - logger.log( - Level.INFO, - "Permanent error invalid ack id message, will not resend", - errorMessage); - ackRequestData.setResponse(AckResponse.INVALID, setResponseOnSuccess); + if (metadataMap.isEmpty()) { + String operation = isModack ? "ModifyAckDeadline" : "Acknowledge"; + if (!StatusUtil.isRetryable(t)) { + logger.log(Level.WARNING, "Un-retryable error on " + operation, t); + ackRequestDataList.forEach( + ackRequestData -> { + AckResponse failedAckResponse = StatusUtil.getFailedAckResponse(t); + ackRequestData.setResponse(failedAckResponse, setResponseOnSuccess); messageDispatcher.notifyAckFailed(ackRequestData); tracer.addEndRpcEvent( ackRequestData.getMessageWrapper(), @@ -635,35 +612,76 @@ public void onFailure(Throwable t) { isModack, deadlineExtensionSeconds); tracer.setSubscriberSpanException( - ackRequestData.getMessageWrapper(), t, "Invalid ack ID"); + ackRequestData.getMessageWrapper(), t, "Error with no metadata map"); + ackRequestData + .getMessageWrapper() + .setSubscriberSpanException(t, "Error with no metadata map"); + pendingRequests.remove(ackRequestData); + }); + } else { + logger.log(Level.INFO, "Retryable error on " + operation + ", will resend", t); + ackRequestDataArrayRetryList.addAll(ackRequestDataList); + ackRequestDataList.forEach( + ackRequestData -> { + pendingRequests.remove(ackRequestData); + }); + } + } else { + ackRequestDataList.forEach( + ackRequestData -> { + String ackId = ackRequestData.getAckId(); + if (metadataMap.containsKey(ackId)) { + // An error occured + String errorMessage = metadataMap.get(ackId); + if (errorMessage.startsWith(TRANSIENT_FAILURE_METADATA_PREFIX)) { + // Retry all "TRANSIENT_*" error messages - do not set message future + logger.log(Level.INFO, "Transient error message, will resend", errorMessage); + ackRequestDataArrayRetryList.add(ackRequestData); + } else if (errorMessage.equals(PERMANENT_FAILURE_INVALID_ACK_ID_METADATA)) { + // Permanent failure + logger.log( + Level.INFO, + "Permanent error invalid ack id message, will not resend", + errorMessage); + ackRequestData.setResponse(AckResponse.INVALID, setResponseOnSuccess); + messageDispatcher.notifyAckFailed(ackRequestData); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + tracer.setSubscriberSpanException( + ackRequestData.getMessageWrapper(), t, "Invalid ack ID"); + } else { + logger.log( + Level.INFO, "Unknown error message, will not resend", errorMessage); + ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); + messageDispatcher.notifyAckFailed(ackRequestData); + tracer.addEndRpcEvent( + ackRequestData.getMessageWrapper(), + rpcSpanSampled, + isModack, + deadlineExtensionSeconds); + tracer.setSubscriberSpanException( + ackRequestData.getMessageWrapper(), t, "Unknown error message"); + ackRequestData + .getMessageWrapper() + .setSubscriberSpanException(t, "Unknown error message"); + } } else { - logger.log(Level.INFO, "Unknown error message, will not resend", errorMessage); - ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); - messageDispatcher.notifyAckFailed(ackRequestData); + ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); + messageDispatcher.notifyAckSuccess(ackRequestData); + tracer.endSubscriberSpan(ackRequestData.getMessageWrapper()); tracer.addEndRpcEvent( ackRequestData.getMessageWrapper(), rpcSpanSampled, isModack, deadlineExtensionSeconds); - tracer.setSubscriberSpanException( - ackRequestData.getMessageWrapper(), t, "Unknown error message"); - ackRequestData - .getMessageWrapper() - .setSubscriberSpanException(t, "Unknown error message"); } - } else { - ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); - messageDispatcher.notifyAckSuccess(ackRequestData); - tracer.endSubscriberSpan(ackRequestData.getMessageWrapper()); - tracer.addEndRpcEvent( - ackRequestData.getMessageWrapper(), - rpcSpanSampled, - isModack, - deadlineExtensionSeconds); - } - // Remove from our pending - pendingRequests.remove(ackRequestData); - }); + // Remove from our pending + pendingRequests.remove(ackRequestData); + }); + } } catch (InvalidProtocolBufferException e) { // If we fail to parse out the errorInfo, we should retry all logger.log( diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 8bf0113b5d5a..335ccbdc3da9 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -17,6 +17,7 @@ package com.google.cloud.pubsub.v1; import static org.junit.Assert.*; +import static org.mockito.ArgumentMatchers.argThat; import static org.mockito.Mockito.*; import com.google.api.core.ApiFutures; @@ -24,6 +25,8 @@ import com.google.api.gax.batching.FlowControlSettings; import com.google.api.gax.batching.FlowController; import com.google.api.gax.core.Distribution; +import com.google.api.gax.grpc.GrpcStatusCode; +import com.google.api.gax.rpc.ApiException; import com.google.api.gax.rpc.StatusCode; import com.google.cloud.pubsub.v1.stub.SubscriberStub; import com.google.common.collect.Lists; @@ -32,6 +35,7 @@ import com.google.pubsub.v1.ModifyAckDeadlineRequest; import com.google.rpc.ErrorInfo; import com.google.rpc.Status; +import io.grpc.Status.Code; import io.grpc.StatusException; import io.grpc.protobuf.StatusProto; import java.time.Duration; @@ -65,6 +69,8 @@ public class StreamingSubscriberConnectionTest { "MOCK-ACK-ID-TRANSIENT-FAILURE-SERVICE-UNAVAILABLE-THEN-SUCCESS"; private static final String MOCK_ACK_ID_INVALID = "MOCK-ACK-ID-INVALID"; private static final String MOCK_ACK_ID_OTHER = "MOCK-ACK-ID-OTHER"; + private static final String MOCK_ACK_ID_NO_METADATA_MAP_INTERNAL_ERROR_THEN_PERMISSION_DENIED = + "MOCK-ACK-ID-NO-METADATA-MAP-INTERNAL-ERROR"; private static final String PERMANENT_FAILURE_INVALID_ACK_ID = "PERMANENT_FAILURE_INVALID_ACK_ID"; private static final String TRANSIENT_FAILURE_UNORDERED_ACK_ID = @@ -398,6 +404,62 @@ public void testSendAckOperationsExactlyOnceEnabledMessageFuturesAcks() { } } + @Test + public void testSendAckOperationsExactlyOnceEnabledErrorWithEmptyMetadataMap() { + // Setup + + // The list(s) of ackIds allows us to mock the grpc response(s) + List ackIdsRequest = new ArrayList<>(); + List ackRequestDataList = new ArrayList(); + + // Initial) INTERNAL error, retryable + // Retry) PERMISSION_DENIED, not retryable + SettableApiFuture messageInternalErrorThenPermissionDenied = + SettableApiFuture.create(); + ackRequestDataList.add( + AckRequestData.newBuilder(MOCK_ACK_ID_NO_METADATA_MAP_INTERNAL_ERROR_THEN_PERMISSION_DENIED) + .setMessageFuture(messageInternalErrorThenPermissionDenied) + .build()); + ackIdsRequest.add(MOCK_ACK_ID_NO_METADATA_MAP_INTERNAL_ERROR_THEN_PERMISSION_DENIED); + + // Build our request so we can set our mock responses + AcknowledgeRequest acknowledgeRequest = + AcknowledgeRequest.newBuilder() + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .addAllAckIds(ackIdsRequest) + .build(); + + ApiException internalError = + new ApiException("internal", null, GrpcStatusCode.of(Code.INTERNAL), true); + ApiException permissionDeniedError = + new ApiException( + "permission_denied", null, GrpcStatusCode.of(Code.PERMISSION_DENIED), false); + // Set mock grpc responses + when(mockSubscriberStub.acknowledgeCallable().futureCall(acknowledgeRequest)) + .thenReturn(ApiFutures.immediateFailedFuture(internalError)) + .thenReturn(ApiFutures.immediateFailedFuture(permissionDeniedError)); + + // Instantiate class and run operation(s) + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnection(true); + + streamingSubscriberConnection.sendAckOperations(ackRequestDataList); + + // Backoff + systemExecutor.advanceTime(Duration.ofMillis(200)); + + // Assert expected behavior; + verify(mockSubscriberStub.acknowledgeCallable(), times(2)).futureCall(acknowledgeRequest); + verify(mockSubscriberStub, never()).modifyAckDeadlineCallable(); + + try { + assertEquals(AckResponse.PERMISSION_DENIED, messageInternalErrorThenPermissionDenied.get()); + } catch (InterruptedException | ExecutionException e) { + // In case something goes wrong retrieving the futures + throw new AssertionError(); + } + } + @Test public void testSetFailureResponseOutstandingMessages() { // Setup From 054f2fb5e6299ee2015690372515ea0712b9a629 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 23 Apr 2025 13:11:57 -0400 Subject: [PATCH 2093/2363] chore: Update generation configuration at Sun Mar 30 02:33:11 UTC 2025 (#2386) * chore: Update generation configuration at Fri Mar 28 02:30:48 UTC 2025 * chore: generate libraries at Fri Mar 28 02:31:20 UTC 2025 * chore: Update generation configuration at Sat Mar 29 02:29:23 UTC 2025 * chore: generate libraries at Sat Mar 29 02:29:51 UTC 2025 * chore: Update generation configuration at Sun Mar 30 02:33:11 UTC 2025 * chore: generate libraries at Sun Mar 30 02:33:47 UTC 2025 --- java-pubsub/README.md | 6 +++--- java-pubsub/generation_config.yaml | 4 ++-- .../java/com/google/pubsub/v1/JavaScriptUDF.java | 14 +++++++------- .../google/pubsub/v1/JavaScriptUDFOrBuilder.java | 4 ++-- .../src/main/proto/google/pubsub/v1/pubsub.proto | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b4815f2d4fad..ea9463cd15d9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.56.0 + 26.57.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.137.1 + 1.138.0 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.56.0') +implementation platform('com.google.cloud:libraries-bom:26.58.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 9855a797ca83..ee80bf8b3eb8 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.55.1 -googleapis_commitish: 6155d42e99f45ebf53100d492852be1561916137 -libraries_bom_version: 26.56.0 +googleapis_commitish: 2b63b9276dca4d5046470fe5e1022bd982629f62 +libraries_bom_version: 26.58.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java index f5b467debfda..c205f528dc04 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getFunctionNameBytes() { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -200,7 +200,7 @@ public java.lang.String getCode() { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -728,7 +728,7 @@ public Builder setFunctionNameBytes(com.google.protobuf.ByteString value) { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -779,7 +779,7 @@ public java.lang.String getCode() { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -830,7 +830,7 @@ public com.google.protobuf.ByteString getCodeBytes() { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -880,7 +880,7 @@ public Builder setCode(java.lang.String value) { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -926,7 +926,7 @@ public Builder clearCode() { * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java index 2be71ea24d57..80ba75c77f66 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java @@ -77,7 +77,7 @@ public interface JavaScriptUDFOrBuilder * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ @@ -118,7 +118,7 @@ public interface JavaScriptUDFOrBuilder * * * * @param {Object<string, any>} metadata - Pub/Sub message metadata. * * Keys: - * * - (required) 'message_id' : {string} + * * - (optional) 'message_id' : {string} * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * * - (optional) 'ordering_key': {string} * */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 7ea1327fadcf..ed879ba88a0c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -702,7 +702,7 @@ message JavaScriptUDF { // * // * @param {Object} metadata - Pub/Sub message metadata. // * Keys: - // * - (required) 'message_id' : {string} + // * - (optional) 'message_id' : {string} // * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format // * - (optional) 'ordering_key': {string} // */ From 5c061caa4785dd9702de81dbb20f902badf521de Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 24 Apr 2025 12:47:23 -0400 Subject: [PATCH 2094/2363] chore: Update generation configuration at Thu Apr 24 02:32:32 UTC 2025 (#2395) * chore: Update generation configuration at Wed Apr 23 17:12:15 UTC 2025 * chore: generate libraries at Wed Apr 23 17:12:45 UTC 2025 * chore: Update generation configuration at Thu Apr 24 02:32:32 UTC 2025 * chore: manually update generation configuration * chore: generate libraries at Thu Apr 24 14:50:47 UTC 2025 * chore: manually update libraries bom version * chore: generate libraries at Thu Apr 24 14:59:23 UTC 2025 * chore: use spotify fmt plugin in build.sh * chore: remove old graalvm jobs --------- Co-authored-by: Diego Marquez --- java-pubsub/.github/generated-files-bot.yml | 1 + .../scripts/update_generation_config.sh | 11 +- java-pubsub/.github/sync-repo-settings.yaml | 5 +- java-pubsub/.github/workflows/ci.yaml | 2 +- .../hermetic_library_generation.yaml | 2 +- .../workflows/renovate_config_check.yaml | 4 +- .../workflows/update_generation_config.yaml | 4 +- java-pubsub/.kokoro/build.sh | 2 +- ...raalvm-native.cfg => graalvm-native-a.cfg} | 7 +- ...lvm-native-17.cfg => graalvm-native-b.cfg} | 9 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 38 + java-pubsub/CONTRIBUTING.md | 2 +- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 6 +- .../v1/AckReplyConsumerWithResponse.java | 3 +- .../google/cloud/pubsub/v1/Subscriber.java | 4 +- .../v1/stub/HttpJsonSubscriberStub.java | 3 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 3 +- .../pubsub/v1/MockSchemaServiceImpl.java | 3 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 3 +- .../cloud/pubsub/v1/PublisherImplTest.java | 120 +-- .../cloud/pubsub/v1/SubscriberTest.java | 6 +- .../com/google/pubsub/v1/PublisherGrpc.java | 161 +++ .../google/pubsub/v1/SchemaServiceGrpc.java | 162 +++ .../com/google/pubsub/v1/SubscriberGrpc.java | 318 ++++++ .../google/pubsub/v1/AcknowledgeRequest.java | 22 + .../v1/AcknowledgeRequestOrBuilder.java | 4 + .../com/google/pubsub/v1/BigQueryConfig.java | 44 + .../pubsub/v1/BigQueryConfigOrBuilder.java | 3 + .../google/pubsub/v1/CloudStorageConfig.java | 108 ++ .../v1/CloudStorageConfigOrBuilder.java | 12 + .../google/pubsub/v1/CommitSchemaRequest.java | 21 + .../v1/CommitSchemaRequestOrBuilder.java | 3 + .../google/pubsub/v1/CreateSchemaRequest.java | 28 + .../v1/CreateSchemaRequestOrBuilder.java | 4 + .../pubsub/v1/CreateSnapshotRequest.java | 30 + .../v1/CreateSnapshotRequestOrBuilder.java | 7 + .../google/pubsub/v1/DeadLetterPolicy.java | 13 + .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 1 + .../google/pubsub/v1/DeleteSchemaRequest.java | 9 + .../v1/DeleteSchemaRequestOrBuilder.java | 1 + .../v1/DeleteSchemaRevisionRequest.java | 16 + .../DeleteSchemaRevisionRequestOrBuilder.java | 2 + .../pubsub/v1/DeleteSnapshotRequest.java | 9 + .../v1/DeleteSnapshotRequestOrBuilder.java | 1 + .../pubsub/v1/DeleteSubscriptionRequest.java | 9 + .../DeleteSubscriptionRequestOrBuilder.java | 1 + .../google/pubsub/v1/DeleteTopicRequest.java | 9 + .../v1/DeleteTopicRequestOrBuilder.java | 1 + .../pubsub/v1/DetachSubscriptionRequest.java | 9 + .../DetachSubscriptionRequestOrBuilder.java | 1 + .../pubsub/v1/DetachSubscriptionResponse.java | 2 + .../java/com/google/pubsub/v1/Encoding.java | 2 + .../google/pubsub/v1/ExpirationPolicy.java | 14 + .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 + .../google/pubsub/v1/GetSchemaRequest.java | 16 + .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 + .../google/pubsub/v1/GetSnapshotRequest.java | 9 + .../v1/GetSnapshotRequestOrBuilder.java | 1 + .../pubsub/v1/GetSubscriptionRequest.java | 9 + .../v1/GetSubscriptionRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/GetTopicRequest.java | 9 + .../pubsub/v1/GetTopicRequestOrBuilder.java | 1 + .../v1/IngestionDataSourceSettings.java | 411 ++++++++ .../IngestionDataSourceSettingsOrBuilder.java | 12 + .../pubsub/v1/IngestionFailureEvent.java | 249 +++++ .../v1/IngestionFailureEventOrBuilder.java | 10 + .../com/google/pubsub/v1/JavaScriptUDF.java | 16 + .../pubsub/v1/JavaScriptUDFOrBuilder.java | 2 + .../pubsub/v1/ListSchemaRevisionsRequest.java | 27 + .../ListSchemaRevisionsRequestOrBuilder.java | 3 + .../v1/ListSchemaRevisionsResponse.java | 31 + .../ListSchemaRevisionsResponseOrBuilder.java | 5 + .../google/pubsub/v1/ListSchemasRequest.java | 27 + .../v1/ListSchemasRequestOrBuilder.java | 3 + .../google/pubsub/v1/ListSchemasResponse.java | 31 + .../v1/ListSchemasResponseOrBuilder.java | 5 + .../pubsub/v1/ListSnapshotsRequest.java | 20 + .../v1/ListSnapshotsRequestOrBuilder.java | 2 + .../pubsub/v1/ListSnapshotsResponse.java | 31 + .../v1/ListSnapshotsResponseOrBuilder.java | 5 + .../pubsub/v1/ListSubscriptionsRequest.java | 20 + .../v1/ListSubscriptionsRequestOrBuilder.java | 2 + .../pubsub/v1/ListSubscriptionsResponse.java | 31 + .../ListSubscriptionsResponseOrBuilder.java | 5 + .../pubsub/v1/ListTopicSnapshotsRequest.java | 20 + .../ListTopicSnapshotsRequestOrBuilder.java | 2 + .../pubsub/v1/ListTopicSnapshotsResponse.java | 22 + .../ListTopicSnapshotsResponseOrBuilder.java | 4 + .../v1/ListTopicSubscriptionsRequest.java | 20 + ...istTopicSubscriptionsRequestOrBuilder.java | 2 + .../v1/ListTopicSubscriptionsResponse.java | 22 + ...stTopicSubscriptionsResponseOrBuilder.java | 4 + .../google/pubsub/v1/ListTopicsRequest.java | 20 + .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 + .../google/pubsub/v1/ListTopicsResponse.java | 31 + .../v1/ListTopicsResponseOrBuilder.java | 5 + .../pubsub/v1/MessageStoragePolicy.java | 19 + .../v1/MessageStoragePolicyOrBuilder.java | 3 + .../google/pubsub/v1/MessageTransform.java | 23 + .../pubsub/v1/MessageTransformOrBuilder.java | 2 + .../pubsub/v1/ModifyAckDeadlineRequest.java | 26 + .../v1/ModifyAckDeadlineRequestOrBuilder.java | 4 + .../pubsub/v1/ModifyPushConfigRequest.java | 21 + .../v1/ModifyPushConfigRequestOrBuilder.java | 3 + .../pubsub/v1/PlatformLogsSettings.java | 14 + .../v1/PlatformLogsSettingsOrBuilder.java | 1 + .../com/google/pubsub/v1/PublishRequest.java | 31 + .../pubsub/v1/PublishRequestOrBuilder.java | 5 + .../com/google/pubsub/v1/PublishResponse.java | 15 + .../pubsub/v1/PublishResponseOrBuilder.java | 3 + .../com/google/pubsub/v1/PubsubMessage.java | 46 + .../pubsub/v1/PubsubMessageOrBuilder.java | 9 + .../com/google/pubsub/v1/PubsubProto.java | 925 ++++++++++-------- .../com/google/pubsub/v1/PullRequest.java | 17 + .../pubsub/v1/PullRequestOrBuilder.java | 1 + .../com/google/pubsub/v1/PullResponse.java | 24 + .../pubsub/v1/PullResponseOrBuilder.java | 4 + .../java/com/google/pubsub/v1/PushConfig.java | 90 ++ .../google/pubsub/v1/PushConfigOrBuilder.java | 12 + .../com/google/pubsub/v1/ReceivedMessage.java | 25 + .../pubsub/v1/ReceivedMessageOrBuilder.java | 3 + .../com/google/pubsub/v1/RetryPolicy.java | 26 + .../pubsub/v1/RetryPolicyOrBuilder.java | 4 + .../pubsub/v1/RollbackSchemaRequest.java | 16 + .../v1/RollbackSchemaRequestOrBuilder.java | 2 + .../java/com/google/pubsub/v1/Schema.java | 44 + .../com/google/pubsub/v1/SchemaOrBuilder.java | 6 + .../com/google/pubsub/v1/SchemaProto.java | 10 +- .../com/google/pubsub/v1/SchemaSettings.java | 30 + .../pubsub/v1/SchemaSettingsOrBuilder.java | 4 + .../java/com/google/pubsub/v1/SchemaView.java | 2 + .../com/google/pubsub/v1/SeekRequest.java | 30 + .../pubsub/v1/SeekRequestOrBuilder.java | 5 + .../com/google/pubsub/v1/SeekResponse.java | 2 + .../java/com/google/pubsub/v1/Snapshot.java | 42 + .../google/pubsub/v1/SnapshotOrBuilder.java | 9 + .../pubsub/v1/StreamingPullRequest.java | 64 ++ .../v1/StreamingPullRequestOrBuilder.java | 10 + .../pubsub/v1/StreamingPullResponse.java | 189 ++++ .../v1/StreamingPullResponseOrBuilder.java | 10 + .../com/google/pubsub/v1/Subscription.java | 215 ++++ .../pubsub/v1/SubscriptionOrBuilder.java | 31 + .../main/java/com/google/pubsub/v1/Topic.java | 113 +++ .../java/com/google/pubsub/v1/TopicName.java | 3 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 20 + .../pubsub/v1/UpdateSnapshotRequest.java | 26 + .../v1/UpdateSnapshotRequestOrBuilder.java | 4 + .../pubsub/v1/UpdateSubscriptionRequest.java | 26 + .../UpdateSubscriptionRequestOrBuilder.java | 4 + .../google/pubsub/v1/UpdateTopicRequest.java | 26 + .../v1/UpdateTopicRequestOrBuilder.java | 4 + .../pubsub/v1/ValidateMessageRequest.java | 41 + .../v1/ValidateMessageRequestOrBuilder.java | 6 + .../pubsub/v1/ValidateMessageResponse.java | 2 + .../pubsub/v1/ValidateSchemaRequest.java | 21 + .../v1/ValidateSchemaRequestOrBuilder.java | 3 + .../pubsub/v1/ValidateSchemaResponse.java | 2 + .../main/proto/google/pubsub/v1/pubsub.proto | 2 +- .../main/proto/google/pubsub/v1/schema.proto | 2 +- java-pubsub/renovate.json | 1 - .../pubsub/OpenTelemetryPublisherExample.java | 3 +- .../OpenTelemetrySubscriberExample.java | 3 +- .../pubsub/PublishAvroRecordsExample.java | 2 +- .../SubscribeWithAvroSchemaExample.java | 2 +- ...bscribeWithAvroSchemaRevisionsExample.java | 2 +- .../src/main/java/utilities/State.java | 10 +- .../src/main/java/utilities/StateProto.java | 19 + .../test/java/pubsub/DeadLetterQueueIT.java | 2 +- .../src/test/java/pubsub/SchemaIT.java | 2 +- 170 files changed, 4320 insertions(+), 527 deletions(-) rename java-pubsub/.kokoro/presubmit/{graalvm-native.cfg => graalvm-native-a.cfg} (77%) rename java-pubsub/.kokoro/presubmit/{graalvm-native-17.cfg => graalvm-native-b.cfg} (74%) create mode 100644 java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg diff --git a/java-pubsub/.github/generated-files-bot.yml b/java-pubsub/.github/generated-files-bot.yml index c644a24e1129..e58cdcbad65a 100644 --- a/java-pubsub/.github/generated-files-bot.yml +++ b/java-pubsub/.github/generated-files-bot.yml @@ -6,6 +6,7 @@ externalManifests: file: '.github/readme/synth.metadata/synth.metadata' jsonpath: '$.generatedFiles[*]' ignoreAuthors: +- 'cloud-java-bot' - 'renovate-bot' - 'yoshi-automation' - 'release-please[bot]' diff --git a/java-pubsub/.github/scripts/update_generation_config.sh b/java-pubsub/.github/scripts/update_generation_config.sh index 91434688cc5c..fff56bf5ddf3 100644 --- a/java-pubsub/.github/scripts/update_generation_config.sh +++ b/java-pubsub/.github/scripts/update_generation_config.sh @@ -15,8 +15,15 @@ set -e function get_latest_released_version() { local group_id=$1 local artifact_id=$2 - latest=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json" | jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' | sort -V | tail -n 1) - echo "${latest}" + json_content=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json") + latest=$(jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' <<< "${json_content}" | sort -V | tail -n 1) + if [[ -z "${latest}" ]]; then + echo "The latest version of ${group_id}:${artifact_id} is empty." + echo "The returned json from maven.org is invalid: ${json_content}" + exit 1 + else + echo "${latest}" + fi } # Update a key to a new value in the generation config. diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 846e0ed3b998..310f09976820 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -15,8 +15,9 @@ branchProtectionRules: - units (11) - 'Kokoro - Test: Integration' - cla/google - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' + - 'Kokoro - Test: Java GraalVM Native Image A' + - 'Kokoro - Test: Java GraalVM Native Image B' + - 'Kokoro - Test: Java GraalVM Native Image C' - javadoc - library_generation - unmanaged_dependency_check diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index b91fa381f56b..4dd9974f263f 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -104,7 +104,7 @@ jobs: - uses: actions/setup-java@v4 with: distribution: temurin - java-version: 11 + java-version: 17 - run: java -version - run: .kokoro/build.sh env: diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index ca1baea12a6d..6b856abdef3f 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.55.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.56.2 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/.github/workflows/renovate_config_check.yaml b/java-pubsub/.github/workflows/renovate_config_check.yaml index 7c5ec7865e11..47b9e87c98bb 100644 --- a/java-pubsub/.github/workflows/renovate_config_check.yaml +++ b/java-pubsub/.github/workflows/renovate_config_check.yaml @@ -7,7 +7,7 @@ on: jobs: renovate_bot_config_validation: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout code @@ -16,7 +16,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' - name: Install Renovate and Config Validator run: | diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index f15c807853d1..cd2d5fd5a8e4 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -28,6 +28,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - name: Update params in generation config to latest shell: bash @@ -36,7 +37,8 @@ jobs: [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" bash .github/scripts/update_generation_config.sh \ - --base_branch "${base_branch}"\ + --base_branch "${base_branch}" \ --repo ${{ github.repository }} env: GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh index 351d0d40c60b..41903cda1814 100755 --- a/java-pubsub/.kokoro/build.sh +++ b/java-pubsub/.kokoro/build.sh @@ -52,7 +52,7 @@ test) RETURN_CODE=$? ;; lint) - mvn com.coveo:fmt-maven-plugin:check + mvn com.spotify.fmt:fmt-maven-plugin:check RETURN_CODE=$? ;; javadoc) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg similarity index 77% rename from java-pubsub/.kokoro/presubmit/graalvm-native.cfg rename to java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index fb1979a33bab..d0c295213338 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.45.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { @@ -31,3 +31,8 @@ env_vars: { key: "SECRET_MANAGER_KEYS" value: "java-it-service-account" } + +env_vars: { + key: "IT_SERVICE_ACCOUNT_EMAIL" + value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" +} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg similarity index 74% rename from java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg rename to java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 07ae08a9807a..962c305ff7fb 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-17.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,12 +3,12 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.45.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { key: "JOB_TYPE" - value: "graalvm17" + value: "graalvm" } # TODO: remove this after we've migrated all tests and scripts @@ -30,4 +30,9 @@ env_vars: { env_vars: { key: "SECRET_MANAGER_KEYS" value: "java-it-service-account" +} + +env_vars: { + key: "IT_SERVICE_ACCOUNT_EMAIL" + value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" } \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg new file mode 100644 index 000000000000..87b5dff65a31 --- /dev/null +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -0,0 +1,38 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} + +env_vars: { + key: "IT_SERVICE_ACCOUNT_EMAIL" + value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" +} \ No newline at end of file diff --git a/java-pubsub/CONTRIBUTING.md b/java-pubsub/CONTRIBUTING.md index b65dd279c946..ff092b68e3fc 100644 --- a/java-pubsub/CONTRIBUTING.md +++ b/java-pubsub/CONTRIBUTING.md @@ -84,7 +84,7 @@ Code in this repo is formatted with [google-java-format](https://github.com/google/google-java-format). To run formatting on your project, you can run: ``` -mvn com.coveo:fmt-maven-plugin:format +mvn com.spotify.fmt:fmt-maven-plugin:format ``` [1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ea9463cd15d9..748acba71ce2 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.58.0') +implementation platform('com.google.cloud:libraries-bom:26.59.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index ee80bf8b3eb8..26559e519e84 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.55.1 -googleapis_commitish: 2b63b9276dca4d5046470fe5e1022bd982629f62 -libraries_bom_version: 26.58.0 +gapic_generator_version: 2.56.2 +googleapis_commitish: 261895f1d8ced9564f4cf872f7f4f9a1f4c615d3 +libraries_bom_version: 26.59.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java index 59ea25ae768f..445ba7287783 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java @@ -34,7 +34,8 @@ * processing code is idempotent, as you may receive any given message more than once. */ @BetaApi( - "This is a preview feature. For more details, see https://cloud.google.com/pubsub/docs/exactly-once-delivery.") + "This is a preview feature. For more details, see" + + " https://cloud.google.com/pubsub/docs/exactly-once-delivery.") public interface AckReplyConsumerWithResponse { /** * Acknowledges that the message has been successfully processed. The service will not send the diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 4b9ea3825631..36ec5dc364cb 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -185,9 +185,7 @@ private Subscriber(Builder builder) { flowController = new FlowController( - builder - .flowControlSettings - .toBuilder() + builder.flowControlSettings.toBuilder() .setLimitExceededBehavior(LimitExceededBehavior.Block) .build()); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index 9cda4b2234a4..3b6a28ee6c9e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -1223,7 +1223,8 @@ public UnaryCallable getIamPolicyCallable() { public BidiStreamingCallable streamingPullCallable() { throw new UnsupportedOperationException( - "Not implemented: streamingPullCallable(). REST transport is not implemented for this method yet."); + "Not implemented: streamingPullCallable(). REST transport is not implemented for this" + + " method yet."); } @Override diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index 5b2148c36dc6..e01c205a60dd 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -189,7 +189,8 @@ public void listTopicSubscriptions( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method ListTopicSubscriptions, expected %s or %s", + "Unrecognized response type %s for method ListTopicSubscriptions, expected %s or" + + " %s", response == null ? "null" : response.getClass().getName(), ListTopicSubscriptionsResponse.class.getName(), Exception.class.getName()))); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java index c2324f0b7101..71c5edb3416e 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -212,7 +212,8 @@ public void deleteSchemaRevision( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method DeleteSchemaRevision, expected %s or %s", + "Unrecognized response type %s for method DeleteSchemaRevision, expected %s or" + + " %s", response == null ? "null" : response.getClass().getName(), Schema.class.getName(), Exception.class.getName()))); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index e466178eb9f0..cd711d2a2a7c 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -265,7 +265,8 @@ public void onNext(StreamingPullRequest value) { responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method StreamingPull, expected %s or %s", + "Unrecognized response type %s for method StreamingPull, expected %s or" + + " %s", response == null ? "null" : response.getClass().getName(), StreamingPullResponse.class.getName(), Exception.class.getName()))); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java index cdefa84f7727..39155c848582 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java @@ -118,8 +118,7 @@ public void testPublishByDuration() throws Exception { getTestPublisherBuilder() // To demonstrate that reaching duration will trigger publish .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setDelayThresholdDuration(Duration.ofSeconds(5)) .setElementCountThreshold(10L) .build()) @@ -148,8 +147,7 @@ public void testPublishByNumBatchedMessages() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(2L) .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) @@ -187,8 +185,7 @@ public void testSinglePublishByNumBytes() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(2L) .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) @@ -223,8 +220,7 @@ public void testPublishByShutdown() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setDelayThresholdDuration(Duration.ofSeconds(100)) .setElementCountThreshold(10L) .build()) @@ -256,8 +252,7 @@ public void testPublishMixedSizeAndDuration() throws Exception { getTestPublisherBuilder() // To demonstrate that reaching duration will trigger publish .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(2L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) @@ -297,8 +292,7 @@ public void testPublishWithCompression() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(2L) .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) @@ -328,8 +322,7 @@ public void testBatchedMessagesWithOrderingKeyByNum() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(3L) .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) @@ -381,8 +374,7 @@ public void testBatchedMessagesWithOrderingKeyByDuration() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(10L) .setDelayThresholdDuration(Duration.ofSeconds(100)) .build()) @@ -444,8 +436,7 @@ public void testLargeMessagesDoNotReorderBatches() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(10L) .setRequestByteThreshold(64L) .setDelayThresholdDuration(Duration.ofSeconds(100)) @@ -488,8 +479,7 @@ public void testEnableMessageOrdering_overwritesMaxAttempts() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(1) .build()) @@ -671,8 +661,7 @@ public void testErrorPropagation() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) @@ -692,8 +681,7 @@ public void testPublishFailureRetries() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) @@ -716,8 +704,7 @@ public void testPublishFailureRetries_retriesDisabled() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(1) .build()) @@ -741,8 +728,7 @@ public void testPublishFailureRetries_maxRetriesSetup() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(3) .build()) @@ -766,8 +752,7 @@ public void testPublishFailureRetries_maxRetriesSetUnlimited() throws Exception getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(0) .build()) @@ -792,13 +777,11 @@ public void testPublishFailureRetries_nonRetryableFailsImmediately() throws Exce getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .build()) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .build()) @@ -876,8 +859,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setRequestByteThreshold(null) .build()); fail("Should have thrown an NullPointerException"); @@ -886,8 +868,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setRequestByteThreshold(0L) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -896,8 +877,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setRequestByteThreshold(-1L) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -906,8 +886,7 @@ public void testBuilderInvalidArguments() { } builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setDelayThresholdDuration(Duration.ofMillis(1)) .build()); try { @@ -919,8 +898,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setDelayThresholdDuration(Duration.ofMillis(-1)) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -929,14 +907,12 @@ public void testBuilderInvalidArguments() { } builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .build()); try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(null) .build()); fail("Should have thrown an NullPointerException"); @@ -945,8 +921,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(0L) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -955,8 +930,7 @@ public void testBuilderInvalidArguments() { } try { builder.setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(-1L) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -965,14 +939,12 @@ public void testBuilderInvalidArguments() { } builder.setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setInitialRpcTimeoutDuration(Publisher.Builder.MIN_RPC_TIMEOUT) .build()); try { builder.setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setInitialRpcTimeoutDuration(Publisher.Builder.MIN_RPC_TIMEOUT.minusMillis(1)) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -980,14 +952,12 @@ public void testBuilderInvalidArguments() { // Expected } builder.setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Publisher.Builder.MIN_TOTAL_TIMEOUT) .build()); try { builder.setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Publisher.Builder.MIN_TOTAL_TIMEOUT.minusMillis(1)) .build()); fail("Should have thrown an IllegalArgumentException"); @@ -1001,8 +971,7 @@ public void testPartialBatchingSettings() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.getDefaultBatchingSettings() - .toBuilder() + Publisher.Builder.getDefaultBatchingSettings().toBuilder() .setRequestByteThreshold(5000L) .build()) .build(); @@ -1014,8 +983,7 @@ public void testPartialBatchingSettings() throws Exception { publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.getDefaultBatchingSettings() - .toBuilder() + Publisher.Builder.getDefaultBatchingSettings().toBuilder() .setElementCountThreshold(500L) .build()) .build(); @@ -1031,8 +999,7 @@ public void testAwaitTermination() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setRetrySettings( - Publisher.Builder.DEFAULT_RETRY_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_RETRY_SETTINGS.toBuilder() .setTotalTimeoutDuration(Duration.ofSeconds(10)) .setMaxAttempts(0) .build()) @@ -1065,8 +1032,7 @@ public void invalidFlowControlBytes_throwException() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1090,8 +1056,7 @@ public void invalidFlowControlElementCount_throwException() throws Exception { Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1115,8 +1080,7 @@ public void testMessageExceedsFlowControlLimits_throwException() throws Exceptio getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1143,8 +1107,7 @@ public void testPublishFlowControl_throwException() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1185,8 +1148,7 @@ public void testPublishFlowControl_throwExceptionWithOrderingKey() throws Except getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1232,8 +1194,7 @@ public void testPublishFlowControl_block() throws Exception { getTestPublisherBuilder() .setExecutorProvider(SINGLE_THREAD_EXECUTOR) .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( @@ -1324,8 +1285,7 @@ public void testPublishOpenTelemetryTracing() throws Exception { final Publisher publisher = getTestPublisherBuilder() .setBatchingSettings( - Publisher.Builder.DEFAULT_BATCHING_SETTINGS - .toBuilder() + Publisher.Builder.DEFAULT_BATCHING_SETTINGS.toBuilder() .setElementCountThreshold(1L) .setDelayThresholdDuration(Duration.ofSeconds(5)) .setFlowControlSettings( diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 679d37e40362..253a91f73da4 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -297,8 +297,7 @@ public void testPartialFlowControlSettings() throws Exception { Subscriber subscriber = getTestSubscriberBuilder(testReceiver) .setFlowControlSettings( - Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS - .toBuilder() + Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS.toBuilder() .setMaxOutstandingElementCount(500L) .build()) .build(); @@ -310,8 +309,7 @@ public void testPartialFlowControlSettings() throws Exception { subscriber = getTestSubscriberBuilder(testReceiver) .setFlowControlSettings( - Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS - .toBuilder() + Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS.toBuilder() .setMaxOutstandingRequestBytes(5_000_000_000L) .build()) .build(); diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 851a577453de..a1b0a2b1cad8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -422,6 +422,19 @@ public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOp return PublisherStub.newStub(factory, channel); } + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static PublisherBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public PublisherBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PublisherBlockingV2Stub(channel, callOptions); + } + }; + return PublisherBlockingV2Stub.newStub(factory, channel); + } + /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ @@ -799,6 +812,154 @@ public void detachSubscription( * messages to a topic. *
    */ + public static final class PublisherBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private PublisherBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected PublisherBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new PublisherBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
    +     * Creates the given topic with the given name. See the [resource name rules]
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
    +     * 
    + */ + public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates an existing topic by updating the fields specified in the update
    +     * mask. Note that certain properties of a topic are not modifiable.
    +     * 
    + */ + public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
    +     * does not exist.
    +     * 
    + */ + public com.google.pubsub.v1.PublishResponse publish( + com.google.pubsub.v1.PublishRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPublishMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the configuration of a topic.
    +     * 
    + */ + public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists matching topics.
    +     * 
    + */ + public com.google.pubsub.v1.ListTopicsResponse listTopics( + com.google.pubsub.v1.ListTopicsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists the names of the attached subscriptions on this topic.
    +     * 
    + */ + public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists the names of the snapshots on this topic. Snapshots are used in
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
    +     * 
    + */ + public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( + com.google.pubsub.v1.ListTopicSnapshotsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTopicSnapshotsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * 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_`.
    +     * 
    + */ + public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTopicMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Detaches a subscription from this topic. All messages retained in the
    +     * subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
    +     * will return FAILED_PRECONDITION. If the subscription is a push
    +     * subscription, pushes to the endpoint will stop.
    +     * 
    + */ + public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription( + com.google.pubsub.v1.DetachSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDetachSubscriptionMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service Publisher. + * + *
    +   * The service that an application uses to manipulate topics, and to send
    +   * messages to a topic.
    +   * 
    + */ public static final class PublisherBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PublisherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index 076e1f798095..35c281c88ff5 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -467,6 +467,19 @@ public SchemaServiceStub newStub( return SchemaServiceStub.newStub(factory, channel); } + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static SchemaServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SchemaServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingV2Stub(channel, callOptions); + } + }; + return SchemaServiceBlockingV2Stub.newStub(factory, channel); + } + /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ @@ -848,6 +861,155 @@ public void validateMessage( * Service for doing schema-related operations. * */ + public static final class SchemaServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private SchemaServiceBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SchemaServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SchemaServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
    +     * Creates a schema.
    +     * 
    + */ + public com.google.pubsub.v1.Schema createSchema( + com.google.pubsub.v1.CreateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets a schema.
    +     * 
    + */ + public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists schemas in a project.
    +     * 
    + */ + public com.google.pubsub.v1.ListSchemasResponse listSchemas( + com.google.pubsub.v1.ListSchemasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemasMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists all schema revisions for the named schema.
    +     * 
    + */ + public com.google.pubsub.v1.ListSchemaRevisionsResponse listSchemaRevisions( + com.google.pubsub.v1.ListSchemaRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchemaRevisionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Commits a new schema revision to an existing schema.
    +     * 
    + */ + public com.google.pubsub.v1.Schema commitSchema( + com.google.pubsub.v1.CommitSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCommitSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a new schema revision that is a copy of the provided revision_id.
    +     * 
    + */ + public com.google.pubsub.v1.Schema rollbackSchema( + com.google.pubsub.v1.RollbackSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a specific schema revision.
    +     * 
    + */ + public com.google.pubsub.v1.Schema deleteSchemaRevision( + com.google.pubsub.v1.DeleteSchemaRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Deletes a schema.
    +     * 
    + */ + public com.google.protobuf.Empty deleteSchema( + com.google.pubsub.v1.DeleteSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Validates a schema.
    +     * 
    + */ + public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( + com.google.pubsub.v1.ValidateSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Validates a message against a schema.
    +     * 
    + */ + public com.google.pubsub.v1.ValidateMessageResponse validateMessage( + com.google.pubsub.v1.ValidateMessageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateMessageMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service SchemaService. + * + *
    +   * Service for doing schema-related operations.
    +   * 
    + */ public static final class SchemaServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private SchemaServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index b4b3b94715bc..531c82e20e0e 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -698,6 +698,19 @@ public SubscriberStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callO return SubscriberStub.newStub(factory, channel); } + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static SubscriberBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SubscriberBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SubscriberBlockingV2Stub(channel, callOptions); + } + }; + return SubscriberBlockingV2Stub.newStub(factory, channel); + } + /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ @@ -1408,6 +1421,311 @@ public void seek( * establishing a bi-directional stream using the `StreamingPull` method. * */ + public static final class SubscriberBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private SubscriberBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SubscriberBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SubscriberBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
    +     * Creates a subscription to a given topic. See the [resource name rules]
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
    +     * 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]
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
    +     * generated name is populated in the returned Subscription object. Note that
    +     * for REST API requests, you must specify a name in the request.
    +     * 
    + */ + public com.google.pubsub.v1.Subscription createSubscription( + com.google.pubsub.v1.Subscription request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the configuration details of a subscription.
    +     * 
    + */ + public com.google.pubsub.v1.Subscription getSubscription( + com.google.pubsub.v1.GetSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates an existing subscription by updating the fields specified in the
    +     * update mask. Note that certain properties of a subscription, such as its
    +     * topic, are not modifiable.
    +     * 
    + */ + public com.google.pubsub.v1.Subscription updateSubscription( + com.google.pubsub.v1.UpdateSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists matching subscriptions.
    +     * 
    + */ + public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( + com.google.pubsub.v1.ListSubscriptionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * 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.
    +     * 
    + */ + public com.google.protobuf.Empty deleteSubscription( + com.google.pubsub.v1.DeleteSubscriptionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * 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.
    +     * 
    + */ + public com.google.protobuf.Empty modifyAckDeadline( + com.google.pubsub.v1.ModifyAckDeadlineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getModifyAckDeadlineMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * 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.
    +     * 
    + */ + public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAcknowledgeMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Pulls messages from the server.
    +     * 
    + */ + public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPullMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * 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.
    +     * 
    + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.pubsub.v1.StreamingPullRequest, com.google.pubsub.v1.StreamingPullResponse> + streamingPull() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getStreamingPullMethod(), getCallOptions()); + } + + /** + * + * + *
    +     * Modifies the `PushConfig` for a specified subscription.
    +     * 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`.
    +     * 
    + */ + public com.google.protobuf.Empty modifyPushConfig( + com.google.pubsub.v1.ModifyPushConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getModifyPushConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Gets the configuration details of a snapshot. Snapshots are used in
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
    +     * 
    + */ + public com.google.pubsub.v1.Snapshot getSnapshot( + com.google.pubsub.v1.GetSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Lists the existing snapshots. Snapshots are used in [Seek](
    +     * https://cloud.google.com/pubsub/docs/replay-overview) 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.
    +     * 
    + */ + public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( + com.google.pubsub.v1.ListSnapshotsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSnapshotsMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Creates a snapshot from the requested subscription. Snapshots are used in
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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]
    +     * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
    +     * generated name is populated in the returned Snapshot object. Note that for
    +     * REST API requests, you must specify a name in the request.
    +     * 
    + */ + public com.google.pubsub.v1.Snapshot createSnapshot( + com.google.pubsub.v1.CreateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Updates an existing snapshot by updating the fields specified in the update
    +     * mask. Snapshots are used in
    +     * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.
    +     * 
    + */ + public com.google.pubsub.v1.Snapshot updateSnapshot( + com.google.pubsub.v1.UpdateSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Removes an existing snapshot. Snapshots are used in [Seek]
    +     * (https://cloud.google.com/pubsub/docs/replay-overview) 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.
    +     * When the snapshot is deleted, all messages retained in the snapshot
    +     * are immediately dropped. After a snapshot is deleted, a new one may be
    +     * created with the same name, but the new one has no association with the old
    +     * snapshot or its subscription, unless the same subscription is specified.
    +     * 
    + */ + public com.google.protobuf.Empty deleteSnapshot( + com.google.pubsub.v1.DeleteSnapshotRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Seeks an existing subscription to a point in time or to a given snapshot,
    +     * whichever is provided in the request. Snapshots are used in [Seek]
    +     * (https://cloud.google.com/pubsub/docs/replay-overview) 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. Note that both the subscription and the
    +     * snapshot must be on the same topic.
    +     * 
    + */ + public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSeekMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service Subscriber. + * + *
    +   * 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.
    +   * 
    + */ public static final class SubscriberBlockingStub extends io.grpc.stub.AbstractBlockingStub { private SubscriberBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 7a24cea04990..29832d367382 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -33,6 +33,7 @@ public final class AcknowledgeRequest extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.AcknowledgeRequest) AcknowledgeRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use AcknowledgeRequest.newBuilder() to construct. private AcknowledgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -126,6 +129,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -142,6 +146,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } + /** * * @@ -158,6 +163,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -175,6 +181,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -367,6 +374,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -572,6 +580,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -597,6 +606,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -622,6 +632,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -646,6 +657,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -666,6 +678,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -701,6 +714,7 @@ private void ensureAckIdsIsMutable() { } bitField0_ |= 0x00000002; } + /** * * @@ -718,6 +732,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } + /** * * @@ -734,6 +749,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -751,6 +767,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -768,6 +785,7 @@ public java.lang.String getAckIds(int index) { public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } + /** * * @@ -793,6 +811,7 @@ public Builder setAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -817,6 +836,7 @@ public Builder addAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -838,6 +858,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -858,6 +879,7 @@ public Builder clearAckIds() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 9f3f8bd605fd..ce9853a20cb0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface AcknowledgeRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -69,6 +70,7 @@ public interface AcknowledgeRequestOrBuilder * @return A list containing the ackIds. */ java.util.List getAckIdsList(); + /** * * @@ -83,6 +85,7 @@ public interface AcknowledgeRequestOrBuilder * @return The count of ackIds. */ int getAckIdsCount(); + /** * * @@ -98,6 +101,7 @@ public interface AcknowledgeRequestOrBuilder * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 7508d48173e0..abe0d01d69e2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -33,6 +33,7 @@ public final class BigQueryConfig extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.BigQueryConfig) BigQueryConfigOrBuilder { private static final long serialVersionUID = 0L; + // Use BigQueryConfig.newBuilder() to construct. private BigQueryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -154,6 +155,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -164,6 +166,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -179,6 +182,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PERMISSION_DENIED = 2; */ public static final int PERMISSION_DENIED_VALUE = 2; + /** * * @@ -189,6 +193,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * NOT_FOUND = 3; */ public static final int NOT_FOUND_VALUE = 3; + /** * * @@ -199,6 +204,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * SCHEMA_MISMATCH = 4; */ public static final int SCHEMA_MISMATCH_VALUE = 4; + /** * * @@ -304,6 +310,7 @@ private State(int value) { @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; + /** * * @@ -328,6 +335,7 @@ public java.lang.String getTable() { return s; } } + /** * * @@ -355,6 +363,7 @@ public com.google.protobuf.ByteString getTableBytes() { public static final int USE_TOPIC_SCHEMA_FIELD_NUMBER = 2; private boolean useTopicSchema_ = false; + /** * * @@ -375,6 +384,7 @@ public boolean getUseTopicSchema() { public static final int WRITE_METADATA_FIELD_NUMBER = 3; private boolean writeMetadata_ = false; + /** * * @@ -397,6 +407,7 @@ public boolean getWriteMetadata() { public static final int DROP_UNKNOWN_FIELDS_FIELD_NUMBER = 4; private boolean dropUnknownFields_ = false; + /** * * @@ -419,6 +430,7 @@ public boolean getDropUnknownFields() { public static final int STATE_FIELD_NUMBER = 5; private int state_ = 0; + /** * * @@ -437,6 +449,7 @@ public boolean getDropUnknownFields() { public int getStateValue() { return state_; } + /** * * @@ -460,6 +473,7 @@ public com.google.pubsub.v1.BigQueryConfig.State getState() { public static final int USE_TABLE_SCHEMA_FIELD_NUMBER = 6; private boolean useTableSchema_ = false; + /** * * @@ -482,6 +496,7 @@ public boolean getUseTableSchema() { @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -510,6 +525,7 @@ public java.lang.String getServiceAccountEmail() { return s; } } + /** * * @@ -750,6 +766,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -1012,6 +1029,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object table_ = ""; + /** * * @@ -1035,6 +1053,7 @@ public java.lang.String getTable() { return (java.lang.String) ref; } } + /** * * @@ -1058,6 +1077,7 @@ public com.google.protobuf.ByteString getTableBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1080,6 +1100,7 @@ public Builder setTable(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1098,6 +1119,7 @@ public Builder clearTable() { onChanged(); return this; } + /** * * @@ -1123,6 +1145,7 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { } private boolean useTopicSchema_; + /** * * @@ -1140,6 +1163,7 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { public boolean getUseTopicSchema() { return useTopicSchema_; } + /** * * @@ -1161,6 +1185,7 @@ public Builder setUseTopicSchema(boolean value) { onChanged(); return this; } + /** * * @@ -1182,6 +1207,7 @@ public Builder clearUseTopicSchema() { } private boolean writeMetadata_; + /** * * @@ -1201,6 +1227,7 @@ public Builder clearUseTopicSchema() { public boolean getWriteMetadata() { return writeMetadata_; } + /** * * @@ -1224,6 +1251,7 @@ public Builder setWriteMetadata(boolean value) { onChanged(); return this; } + /** * * @@ -1247,6 +1275,7 @@ public Builder clearWriteMetadata() { } private boolean dropUnknownFields_; + /** * * @@ -1266,6 +1295,7 @@ public Builder clearWriteMetadata() { public boolean getDropUnknownFields() { return dropUnknownFields_; } + /** * * @@ -1289,6 +1319,7 @@ public Builder setDropUnknownFields(boolean value) { onChanged(); return this; } + /** * * @@ -1312,6 +1343,7 @@ public Builder clearDropUnknownFields() { } private int state_ = 0; + /** * * @@ -1330,6 +1362,7 @@ public Builder clearDropUnknownFields() { public int getStateValue() { return state_; } + /** * * @@ -1351,6 +1384,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -1371,6 +1405,7 @@ public com.google.pubsub.v1.BigQueryConfig.State getState() { com.google.pubsub.v1.BigQueryConfig.State.forNumber(state_); return result == null ? com.google.pubsub.v1.BigQueryConfig.State.UNRECOGNIZED : result; } + /** * * @@ -1395,6 +1430,7 @@ public Builder setState(com.google.pubsub.v1.BigQueryConfig.State value) { onChanged(); return this; } + /** * * @@ -1417,6 +1453,7 @@ public Builder clearState() { } private boolean useTableSchema_; + /** * * @@ -1434,6 +1471,7 @@ public Builder clearState() { public boolean getUseTableSchema() { return useTableSchema_; } + /** * * @@ -1455,6 +1493,7 @@ public Builder setUseTableSchema(boolean value) { onChanged(); return this; } + /** * * @@ -1476,6 +1515,7 @@ public Builder clearUseTableSchema() { } private java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -1503,6 +1543,7 @@ public java.lang.String getServiceAccountEmail() { return (java.lang.String) ref; } } + /** * * @@ -1530,6 +1571,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1556,6 +1598,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1578,6 +1621,7 @@ public Builder clearServiceAccountEmail() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 1856e1631f2e..6631b9625570 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -37,6 +37,7 @@ public interface BigQueryConfigOrBuilder * @return The table. */ java.lang.String getTable(); + /** * * @@ -115,6 +116,7 @@ public interface BigQueryConfigOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -163,6 +165,7 @@ public interface BigQueryConfigOrBuilder * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index c2743bc508e6..6d4d9bbfb53f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -33,6 +33,7 @@ public final class CloudStorageConfig extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig) CloudStorageConfigOrBuilder { private static final long serialVersionUID = 0L; + // Use CloudStorageConfig.newBuilder() to construct. private CloudStorageConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -154,6 +155,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -164,6 +166,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -175,6 +178,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PERMISSION_DENIED = 2; */ public static final int PERMISSION_DENIED_VALUE = 2; + /** * * @@ -185,6 +189,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * NOT_FOUND = 3; */ public static final int NOT_FOUND_VALUE = 3; + /** * * @@ -196,6 +201,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * IN_TRANSIT_LOCATION_RESTRICTION = 4; */ public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 4; + /** * * @@ -301,6 +307,7 @@ public interface TextConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CloudStorageConfig.TextConfig) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -317,6 +324,7 @@ public static final class TextConfig extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig.TextConfig) TextConfigOrBuilder { private static final long serialVersionUID = 0L; + // Use TextConfig.newBuilder() to construct. private TextConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -496,6 +504,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -760,6 +769,7 @@ public interface AvroConfigOrBuilder */ boolean getUseTopicSchema(); } + /** * * @@ -775,6 +785,7 @@ public static final class AvroConfig extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig.AvroConfig) AvroConfigOrBuilder { private static final long serialVersionUID = 0L; + // Use AvroConfig.newBuilder() to construct. private AvroConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -805,6 +816,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int WRITE_METADATA_FIELD_NUMBER = 1; private boolean writeMetadata_ = false; + /** * * @@ -828,6 +840,7 @@ public boolean getWriteMetadata() { public static final int USE_TOPIC_SCHEMA_FIELD_NUMBER = 2; private boolean useTopicSchema_ = false; + /** * * @@ -1014,6 +1027,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1213,6 +1227,7 @@ public Builder mergeFrom( private int bitField0_; private boolean writeMetadata_; + /** * * @@ -1233,6 +1248,7 @@ public Builder mergeFrom( public boolean getWriteMetadata() { return writeMetadata_; } + /** * * @@ -1257,6 +1273,7 @@ public Builder setWriteMetadata(boolean value) { onChanged(); return this; } + /** * * @@ -1281,6 +1298,7 @@ public Builder clearWriteMetadata() { } private boolean useTopicSchema_; + /** * * @@ -1297,6 +1315,7 @@ public Builder clearWriteMetadata() { public boolean getUseTopicSchema() { return useTopicSchema_; } + /** * * @@ -1317,6 +1336,7 @@ public Builder setUseTopicSchema(boolean value) { onChanged(); return this; } + /** * * @@ -1418,6 +1438,7 @@ public enum OutputFormatCase private OutputFormatCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -1454,6 +1475,7 @@ public OutputFormatCase getOutputFormatCase() { @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; + /** * * @@ -1480,6 +1502,7 @@ public java.lang.String getBucket() { return s; } } + /** * * @@ -1511,6 +1534,7 @@ public com.google.protobuf.ByteString getBucketBytes() { @SuppressWarnings("serial") private volatile java.lang.Object filenamePrefix_ = ""; + /** * * @@ -1535,6 +1559,7 @@ public java.lang.String getFilenamePrefix() { return s; } } + /** * * @@ -1564,6 +1589,7 @@ public com.google.protobuf.ByteString getFilenamePrefixBytes() { @SuppressWarnings("serial") private volatile java.lang.Object filenameSuffix_ = ""; + /** * * @@ -1589,6 +1615,7 @@ public java.lang.String getFilenameSuffix() { return s; } } + /** * * @@ -1619,6 +1646,7 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { @SuppressWarnings("serial") private volatile java.lang.Object filenameDatetimeFormat_ = ""; + /** * * @@ -1644,6 +1672,7 @@ public java.lang.String getFilenameDatetimeFormat() { return s; } } + /** * * @@ -1671,6 +1700,7 @@ public com.google.protobuf.ByteString getFilenameDatetimeFormatBytes() { } public static final int TEXT_CONFIG_FIELD_NUMBER = 4; + /** * * @@ -1689,6 +1719,7 @@ public com.google.protobuf.ByteString getFilenameDatetimeFormatBytes() { public boolean hasTextConfig() { return outputFormatCase_ == 4; } + /** * * @@ -1710,6 +1741,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { } return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); } + /** * * @@ -1731,6 +1763,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig } public static final int AVRO_CONFIG_FIELD_NUMBER = 5; + /** * * @@ -1749,6 +1782,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig public boolean hasAvroConfig() { return outputFormatCase_ == 5; } + /** * * @@ -1770,6 +1804,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { } return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); } + /** * * @@ -1792,6 +1827,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig public static final int MAX_DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration maxDuration_; + /** * * @@ -1810,6 +1846,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig public boolean hasMaxDuration() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -1828,6 +1865,7 @@ public boolean hasMaxDuration() { public com.google.protobuf.Duration getMaxDuration() { return maxDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxDuration_; } + /** * * @@ -1847,6 +1885,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { public static final int MAX_BYTES_FIELD_NUMBER = 7; private long maxBytes_ = 0L; + /** * * @@ -1867,6 +1906,7 @@ public long getMaxBytes() { public static final int MAX_MESSAGES_FIELD_NUMBER = 8; private long maxMessages_ = 0L; + /** * * @@ -1886,6 +1926,7 @@ public long getMaxMessages() { public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; + /** * * @@ -1904,6 +1945,7 @@ public long getMaxMessages() { public int getStateValue() { return state_; } + /** * * @@ -1929,6 +1971,7 @@ public com.google.pubsub.v1.CloudStorageConfig.State getState() { @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -1957,6 +2000,7 @@ public java.lang.String getServiceAccountEmail() { return s; } } + /** * * @@ -2260,6 +2304,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -2634,6 +2679,7 @@ public Builder clearOutputFormat() { private int bitField0_; private java.lang.Object bucket_ = ""; + /** * * @@ -2659,6 +2705,7 @@ public java.lang.String getBucket() { return (java.lang.String) ref; } } + /** * * @@ -2684,6 +2731,7 @@ public com.google.protobuf.ByteString getBucketBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2708,6 +2756,7 @@ public Builder setBucket(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2728,6 +2777,7 @@ public Builder clearBucket() { onChanged(); return this; } + /** * * @@ -2755,6 +2805,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { } private java.lang.Object filenamePrefix_ = ""; + /** * * @@ -2778,6 +2829,7 @@ public java.lang.String getFilenamePrefix() { return (java.lang.String) ref; } } + /** * * @@ -2801,6 +2853,7 @@ public com.google.protobuf.ByteString getFilenamePrefixBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2823,6 +2876,7 @@ public Builder setFilenamePrefix(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2841,6 +2895,7 @@ public Builder clearFilenamePrefix() { onChanged(); return this; } + /** * * @@ -2866,6 +2921,7 @@ public Builder setFilenamePrefixBytes(com.google.protobuf.ByteString value) { } private java.lang.Object filenameSuffix_ = ""; + /** * * @@ -2890,6 +2946,7 @@ public java.lang.String getFilenameSuffix() { return (java.lang.String) ref; } } + /** * * @@ -2914,6 +2971,7 @@ public com.google.protobuf.ByteString getFilenameSuffixBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2937,6 +2995,7 @@ public Builder setFilenameSuffix(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2956,6 +3015,7 @@ public Builder clearFilenameSuffix() { onChanged(); return this; } + /** * * @@ -2982,6 +3042,7 @@ public Builder setFilenameSuffixBytes(com.google.protobuf.ByteString value) { } private java.lang.Object filenameDatetimeFormat_ = ""; + /** * * @@ -3006,6 +3067,7 @@ public java.lang.String getFilenameDatetimeFormat() { return (java.lang.String) ref; } } + /** * * @@ -3030,6 +3092,7 @@ public com.google.protobuf.ByteString getFilenameDatetimeFormatBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3053,6 +3116,7 @@ public Builder setFilenameDatetimeFormat(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3072,6 +3136,7 @@ public Builder clearFilenameDatetimeFormat() { onChanged(); return this; } + /** * * @@ -3102,6 +3167,7 @@ public Builder setFilenameDatetimeFormatBytes(com.google.protobuf.ByteString val com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder> textConfigBuilder_; + /** * * @@ -3120,6 +3186,7 @@ public Builder setFilenameDatetimeFormatBytes(com.google.protobuf.ByteString val public boolean hasTextConfig() { return outputFormatCase_ == 4; } + /** * * @@ -3148,6 +3215,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig() { return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); } } + /** * * @@ -3173,6 +3241,7 @@ public Builder setTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfig outputFormatCase_ = 4; return this; } + /** * * @@ -3196,6 +3265,7 @@ public Builder setTextConfig( outputFormatCase_ = 4; return this; } + /** * * @@ -3232,6 +3302,7 @@ public Builder mergeTextConfig(com.google.pubsub.v1.CloudStorageConfig.TextConfi outputFormatCase_ = 4; return this; } + /** * * @@ -3260,6 +3331,7 @@ public Builder clearTextConfig() { } return this; } + /** * * @@ -3275,6 +3347,7 @@ public Builder clearTextConfig() { public com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder getTextConfigBuilder() { return getTextConfigFieldBuilder().getBuilder(); } + /** * * @@ -3298,6 +3371,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig return com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); } } + /** * * @@ -3339,6 +3413,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder> avroConfigBuilder_; + /** * * @@ -3357,6 +3432,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig public boolean hasAvroConfig() { return outputFormatCase_ == 5; } + /** * * @@ -3385,6 +3461,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig() { return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); } } + /** * * @@ -3410,6 +3487,7 @@ public Builder setAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfig outputFormatCase_ = 5; return this; } + /** * * @@ -3433,6 +3511,7 @@ public Builder setAvroConfig( outputFormatCase_ = 5; return this; } + /** * * @@ -3469,6 +3548,7 @@ public Builder mergeAvroConfig(com.google.pubsub.v1.CloudStorageConfig.AvroConfi outputFormatCase_ = 5; return this; } + /** * * @@ -3497,6 +3577,7 @@ public Builder clearAvroConfig() { } return this; } + /** * * @@ -3512,6 +3593,7 @@ public Builder clearAvroConfig() { public com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder getAvroConfigBuilder() { return getAvroConfigFieldBuilder().getBuilder(); } + /** * * @@ -3535,6 +3617,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig return com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); } } + /** * * @@ -3577,6 +3660,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maxDurationBuilder_; + /** * * @@ -3594,6 +3678,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig public boolean hasMaxDuration() { return ((bitField0_ & 0x00000040) != 0); } + /** * * @@ -3617,6 +3702,7 @@ public com.google.protobuf.Duration getMaxDuration() { return maxDurationBuilder_.getMessage(); } } + /** * * @@ -3642,6 +3728,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -3664,6 +3751,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal onChanged(); return this; } + /** * * @@ -3694,6 +3782,7 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { } return this; } + /** * * @@ -3716,6 +3805,7 @@ public Builder clearMaxDuration() { onChanged(); return this; } + /** * * @@ -3733,6 +3823,7 @@ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { onChanged(); return getMaxDurationFieldBuilder().getBuilder(); } + /** * * @@ -3754,6 +3845,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { : maxDuration_; } } + /** * * @@ -3784,6 +3876,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { } private long maxBytes_; + /** * * @@ -3801,6 +3894,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { public long getMaxBytes() { return maxBytes_; } + /** * * @@ -3822,6 +3916,7 @@ public Builder setMaxBytes(long value) { onChanged(); return this; } + /** * * @@ -3843,6 +3938,7 @@ public Builder clearMaxBytes() { } private long maxMessages_; + /** * * @@ -3859,6 +3955,7 @@ public Builder clearMaxBytes() { public long getMaxMessages() { return maxMessages_; } + /** * * @@ -3879,6 +3976,7 @@ public Builder setMaxMessages(long value) { onChanged(); return this; } + /** * * @@ -3899,6 +3997,7 @@ public Builder clearMaxMessages() { } private int state_ = 0; + /** * * @@ -3917,6 +4016,7 @@ public Builder clearMaxMessages() { public int getStateValue() { return state_; } + /** * * @@ -3938,6 +4038,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -3958,6 +4059,7 @@ public com.google.pubsub.v1.CloudStorageConfig.State getState() { com.google.pubsub.v1.CloudStorageConfig.State.forNumber(state_); return result == null ? com.google.pubsub.v1.CloudStorageConfig.State.UNRECOGNIZED : result; } + /** * * @@ -3982,6 +4084,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) { onChanged(); return this; } + /** * * @@ -4004,6 +4107,7 @@ public Builder clearState() { } private java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -4031,6 +4135,7 @@ public java.lang.String getServiceAccountEmail() { return (java.lang.String) ref; } } + /** * * @@ -4058,6 +4163,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -4084,6 +4190,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { onChanged(); return this; } + /** * * @@ -4106,6 +4213,7 @@ public Builder clearServiceAccountEmail() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index d01518bda1c4..b4977dc74a3e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -39,6 +39,7 @@ public interface CloudStorageConfigOrBuilder * @return The bucket. */ java.lang.String getBucket(); + /** * * @@ -68,6 +69,7 @@ public interface CloudStorageConfigOrBuilder * @return The filenamePrefix. */ java.lang.String getFilenamePrefix(); + /** * * @@ -96,6 +98,7 @@ public interface CloudStorageConfigOrBuilder * @return The filenameSuffix. */ java.lang.String getFilenameSuffix(); + /** * * @@ -125,6 +128,7 @@ public interface CloudStorageConfigOrBuilder * @return The filenameDatetimeFormat. */ java.lang.String getFilenameDatetimeFormat(); + /** * * @@ -155,6 +159,7 @@ public interface CloudStorageConfigOrBuilder * @return Whether the textConfig field is set. */ boolean hasTextConfig(); + /** * * @@ -170,6 +175,7 @@ public interface CloudStorageConfigOrBuilder * @return The textConfig. */ com.google.pubsub.v1.CloudStorageConfig.TextConfig getTextConfig(); + /** * * @@ -199,6 +205,7 @@ public interface CloudStorageConfigOrBuilder * @return Whether the avroConfig field is set. */ boolean hasAvroConfig(); + /** * * @@ -214,6 +221,7 @@ public interface CloudStorageConfigOrBuilder * @return The avroConfig. */ com.google.pubsub.v1.CloudStorageConfig.AvroConfig getAvroConfig(); + /** * * @@ -243,6 +251,7 @@ public interface CloudStorageConfigOrBuilder * @return Whether the maxDuration field is set. */ boolean hasMaxDuration(); + /** * * @@ -258,6 +267,7 @@ public interface CloudStorageConfigOrBuilder * @return The maxDuration. */ com.google.protobuf.Duration getMaxDuration(); + /** * * @@ -316,6 +326,7 @@ public interface CloudStorageConfigOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -349,6 +360,7 @@ public interface CloudStorageConfigOrBuilder * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index c2c5e3623c01..413633f6e56a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -33,6 +33,7 @@ public final class CommitSchemaRequest extends com.google.protobuf.GeneratedMess // @@protoc_insertion_point(message_implements:google.pubsub.v1.CommitSchemaRequest) CommitSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use CommitSchemaRequest.newBuilder() to construct. private CommitSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; + /** * * @@ -138,6 +142,7 @@ public com.google.protobuf.ByteString getNameBytes() { public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -153,6 +158,7 @@ public boolean hasSchema() { public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } + /** * * @@ -339,6 +345,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -551,6 +558,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -576,6 +584,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -601,6 +610,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -625,6 +635,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -645,6 +656,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -677,6 +689,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + /** * * @@ -691,6 +704,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -709,6 +723,7 @@ public com.google.pubsub.v1.Schema getSchema() { return schemaBuilder_.getMessage(); } } + /** * * @@ -731,6 +746,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { onChanged(); return this; } + /** * * @@ -750,6 +766,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { onChanged(); return this; } + /** * * @@ -777,6 +794,7 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -796,6 +814,7 @@ public Builder clearSchema() { onChanged(); return this; } + /** * * @@ -810,6 +829,7 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { onChanged(); return getSchemaFieldBuilder().getBuilder(); } + /** * * @@ -826,6 +846,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 1edbdf9f7bb3..de5fa4e7ff43 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface CommitSchemaRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -67,6 +68,7 @@ public interface CommitSchemaRequestOrBuilder * @return Whether the schema field is set. */ boolean hasSchema(); + /** * * @@ -79,6 +81,7 @@ public interface CommitSchemaRequestOrBuilder * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index dc1cfd98df27..ddc3093a23a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -33,6 +33,7 @@ public final class CreateSchemaRequest extends com.google.protobuf.GeneratedMess // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSchemaRequest) CreateSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use CreateSchemaRequest.newBuilder() to construct. private CreateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; + /** * * @@ -95,6 +97,7 @@ public java.lang.String getParent() { return s; } } + /** * * @@ -124,6 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; + /** * * @@ -143,6 +147,7 @@ public com.google.protobuf.ByteString getParentBytes() { public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -162,6 +167,7 @@ public boolean hasSchema() { public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } + /** * * @@ -184,6 +190,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { @SuppressWarnings("serial") private volatile java.lang.Object schemaId_ = ""; + /** * * @@ -211,6 +218,7 @@ public java.lang.String getSchemaId() { return s; } } + /** * * @@ -420,6 +428,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -647,6 +656,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object parent_ = ""; + /** * * @@ -672,6 +682,7 @@ public java.lang.String getParent() { return (java.lang.String) ref; } } + /** * * @@ -697,6 +708,7 @@ public com.google.protobuf.ByteString getParentBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -721,6 +733,7 @@ public Builder setParent(java.lang.String value) { onChanged(); return this; } + /** * * @@ -741,6 +754,7 @@ public Builder clearParent() { onChanged(); return this; } + /** * * @@ -773,6 +787,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + /** * * @@ -791,6 +806,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -813,6 +829,7 @@ public com.google.pubsub.v1.Schema getSchema() { return schemaBuilder_.getMessage(); } } + /** * * @@ -839,6 +856,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { onChanged(); return this; } + /** * * @@ -862,6 +880,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { onChanged(); return this; } + /** * * @@ -893,6 +912,7 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -916,6 +936,7 @@ public Builder clearSchema() { onChanged(); return this; } + /** * * @@ -934,6 +955,7 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { onChanged(); return getSchemaFieldBuilder().getBuilder(); } + /** * * @@ -954,6 +976,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } } + /** * * @@ -985,6 +1008,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } private java.lang.Object schemaId_ = ""; + /** * * @@ -1011,6 +1035,7 @@ public java.lang.String getSchemaId() { return (java.lang.String) ref; } } + /** * * @@ -1037,6 +1062,7 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1062,6 +1088,7 @@ public Builder setSchemaId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1083,6 +1110,7 @@ public Builder clearSchemaId() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index bd5833c538e6..09db02945337 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface CreateSchemaRequestOrBuilder * @return The parent. */ java.lang.String getParent(); + /** * * @@ -71,6 +72,7 @@ public interface CreateSchemaRequestOrBuilder * @return Whether the schema field is set. */ boolean hasSchema(); + /** * * @@ -87,6 +89,7 @@ public interface CreateSchemaRequestOrBuilder * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); + /** * * @@ -118,6 +121,7 @@ public interface CreateSchemaRequestOrBuilder * @return The schemaId. */ java.lang.String getSchemaId(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 33156b71338c..f6c92ab39cbf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -33,6 +33,7 @@ public final class CreateSnapshotRequest extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSnapshotRequest) CreateSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use CreateSnapshotRequest.newBuilder() to construct. private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -80,6 +81,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -110,6 +112,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -145,6 +148,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -178,6 +182,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -238,6 +243,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -255,12 +261,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -275,6 +283,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -296,6 +305,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -503,6 +513,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -742,6 +753,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -771,6 +783,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -800,6 +813,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -828,6 +842,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -852,6 +867,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -883,6 +899,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object subscription_ = ""; + /** * * @@ -915,6 +932,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -947,6 +965,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -978,6 +997,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1005,6 +1025,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -1063,6 +1084,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -1080,12 +1102,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -1100,6 +1124,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -1121,6 +1146,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -1148,6 +1174,7 @@ public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } + /** * * @@ -1165,12 +1192,14 @@ public Builder removeLabels(java.lang.String key) { internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000004; return internalGetMutableLabels().getMutableMap(); } + /** * * @@ -1192,6 +1221,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000004; return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 4e3005b50fcf..1993fcb4536b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -43,6 +43,7 @@ public interface CreateSnapshotRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -85,6 +86,7 @@ public interface CreateSnapshotRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -119,6 +121,7 @@ public interface CreateSnapshotRequestOrBuilder * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); + /** * * @@ -130,9 +133,11 @@ public interface CreateSnapshotRequestOrBuilder * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); + /** * * @@ -144,6 +149,7 @@ public interface CreateSnapshotRequestOrBuilder * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); + /** * * @@ -159,6 +165,7 @@ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index f69e9df571a6..51009677c658 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -37,6 +37,7 @@ public final class DeadLetterPolicy extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeadLetterPolicy) DeadLetterPolicyOrBuilder { private static final long serialVersionUID = 0L; + // Use DeadLetterPolicy.newBuilder() to construct. private DeadLetterPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -71,6 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object deadLetterTopic_ = ""; + /** * * @@ -102,6 +104,7 @@ public java.lang.String getDeadLetterTopic() { return s; } } + /** * * @@ -136,6 +139,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { public static final int MAX_DELIVERY_ATTEMPTS_FIELD_NUMBER = 2; private int maxDeliveryAttempts_ = 0; + /** * * @@ -330,6 +334,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -530,6 +535,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object deadLetterTopic_ = ""; + /** * * @@ -560,6 +566,7 @@ public java.lang.String getDeadLetterTopic() { return (java.lang.String) ref; } } + /** * * @@ -590,6 +597,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -619,6 +627,7 @@ public Builder setDeadLetterTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -644,6 +653,7 @@ public Builder clearDeadLetterTopic() { onChanged(); return this; } + /** * * @@ -676,6 +686,7 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { } private int maxDeliveryAttempts_; + /** * * @@ -703,6 +714,7 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { public int getMaxDeliveryAttempts() { return maxDeliveryAttempts_; } + /** * * @@ -734,6 +746,7 @@ public Builder setMaxDeliveryAttempts(int value) { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index dd07b59c0025..e5f13f3db2f5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -44,6 +44,7 @@ public interface DeadLetterPolicyOrBuilder * @return The deadLetterTopic. */ java.lang.String getDeadLetterTopic(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index acef5dad6716..c941b2ddc064 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -33,6 +33,7 @@ public final class DeleteSchemaRequest extends com.google.protobuf.GeneratedMess // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRequest) DeleteSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DeleteSchemaRequest.newBuilder() to construct. private DeleteSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -278,6 +281,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -461,6 +465,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -486,6 +491,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -511,6 +517,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -535,6 +542,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -555,6 +563,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 2a41af559b21..833bb21c6dfd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface DeleteSchemaRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index 3d4db9d4c20a..a890e0ba2aba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -33,6 +33,7 @@ public final class DeleteSchemaRevisionRequest extends com.google.protobuf.Gener // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRevisionRequest) DeleteSchemaRevisionRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DeleteSchemaRevisionRequest.newBuilder() to construct. private DeleteSchemaRevisionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -96,6 +98,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -129,6 +132,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; + /** * * @@ -158,6 +162,7 @@ public java.lang.String getRevisionId() { return s; } } + /** * * @@ -356,6 +361,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -555,6 +561,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -582,6 +589,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -609,6 +617,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -635,6 +644,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -657,6 +667,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -686,6 +697,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object revisionId_ = ""; + /** * * @@ -714,6 +726,7 @@ public java.lang.String getRevisionId() { return (java.lang.String) ref; } } + /** * * @@ -742,6 +755,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -769,6 +783,7 @@ public Builder setRevisionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -792,6 +807,7 @@ public Builder clearRevisionId() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index b8d8f0620f4f..9c74f719827e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -41,6 +41,7 @@ public interface DeleteSchemaRevisionRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -77,6 +78,7 @@ public interface DeleteSchemaRevisionRequestOrBuilder */ @java.lang.Deprecated java.lang.String getRevisionId(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 42ed4e16e955..2a26c265de65 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -33,6 +33,7 @@ public final class DeleteSnapshotRequest extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSnapshotRequest) DeleteSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DeleteSnapshotRequest.newBuilder() to construct. private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object snapshot_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getSnapshot() { return s; } } + /** * * @@ -279,6 +282,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -462,6 +466,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object snapshot_ = ""; + /** * * @@ -487,6 +492,7 @@ public java.lang.String getSnapshot() { return (java.lang.String) ref; } } + /** * * @@ -512,6 +518,7 @@ public com.google.protobuf.ByteString getSnapshotBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -536,6 +543,7 @@ public Builder setSnapshot(java.lang.String value) { onChanged(); return this; } + /** * * @@ -556,6 +564,7 @@ public Builder clearSnapshot() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 27df98b2d5f0..c9c8a0192a59 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface DeleteSnapshotRequestOrBuilder * @return The snapshot. */ java.lang.String getSnapshot(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index fc6c3429b73d..6e9a70a2e392 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -33,6 +33,7 @@ public final class DeleteSubscriptionRequest extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSubscriptionRequest) DeleteSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DeleteSubscriptionRequest.newBuilder() to construct. private DeleteSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -279,6 +282,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -462,6 +466,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -487,6 +492,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -512,6 +518,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -536,6 +543,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -556,6 +564,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 1d6385c58feb..b4c9d0fe83a1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface DeleteSubscriptionRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 9279189c5536..1ff347e6ddc3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -33,6 +33,7 @@ public final class DeleteTopicRequest extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteTopicRequest) DeleteTopicRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DeleteTopicRequest.newBuilder() to construct. private DeleteTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -278,6 +281,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -461,6 +465,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -486,6 +491,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -511,6 +517,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -535,6 +542,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -555,6 +563,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 74e0aac50284..1eba5641a9fe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface DeleteTopicRequestOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index b4d6d6a73e74..3efea7ec1fd3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -33,6 +33,7 @@ public final class DetachSubscriptionRequest extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionRequest) DetachSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use DetachSubscriptionRequest.newBuilder() to construct. private DetachSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -279,6 +282,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -462,6 +466,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -487,6 +492,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -512,6 +518,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -536,6 +543,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -556,6 +564,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 16b220074e50..43b6725a5631 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface DetachSubscriptionRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 808576ae5803..9301cd215955 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -34,6 +34,7 @@ public final class DetachSubscriptionResponse extends com.google.protobuf.Genera // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionResponse) DetachSubscriptionResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use DetachSubscriptionResponse.newBuilder() to construct. private DetachSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -212,6 +213,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 1ae5ecf81e26..9ccc59dfee79 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -73,6 +73,7 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { * ENCODING_UNSPECIFIED = 0; */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; + /** * * @@ -83,6 +84,7 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { * JSON = 1; */ public static final int JSON_VALUE = 1; + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index c26db78ba099..cbcdfa760704 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -34,6 +34,7 @@ public final class ExpirationPolicy extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.ExpirationPolicy) ExpirationPolicyOrBuilder { private static final long serialVersionUID = 0L; + // Use ExpirationPolicy.newBuilder() to construct. private ExpirationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int TTL_FIELD_NUMBER = 1; private com.google.protobuf.Duration ttl_; + /** * * @@ -85,6 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasTtl() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -105,6 +108,7 @@ public boolean hasTtl() { public com.google.protobuf.Duration getTtl() { return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; } + /** * * @@ -286,6 +290,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -489,6 +494,7 @@ public Builder mergeFrom( com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; + /** * * @@ -508,6 +514,7 @@ public Builder mergeFrom( public boolean hasTtl() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -531,6 +538,7 @@ public com.google.protobuf.Duration getTtl() { return ttlBuilder_.getMessage(); } } + /** * * @@ -558,6 +566,7 @@ public Builder setTtl(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -582,6 +591,7 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) { onChanged(); return this; } + /** * * @@ -614,6 +624,7 @@ public Builder mergeTtl(com.google.protobuf.Duration value) { } return this; } + /** * * @@ -638,6 +649,7 @@ public Builder clearTtl() { onChanged(); return this; } + /** * * @@ -657,6 +669,7 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() { onChanged(); return getTtlFieldBuilder().getBuilder(); } + /** * * @@ -678,6 +691,7 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index d61c44494818..13d40370bcfc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -41,6 +41,7 @@ public interface ExpirationPolicyOrBuilder * @return Whether the ttl field is set. */ boolean hasTtl(); + /** * * @@ -58,6 +59,7 @@ public interface ExpirationPolicyOrBuilder * @return The ttl. */ com.google.protobuf.Duration getTtl(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 10ca7ae56c35..441892893018 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -33,6 +33,7 @@ public final class GetSchemaRequest extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSchemaRequest) GetSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use GetSchemaRequest.newBuilder() to construct. private GetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; + /** * * @@ -139,6 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { public int getViewValue() { return view_; } + /** * * @@ -323,6 +328,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -519,6 +525,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -544,6 +551,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -569,6 +577,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -593,6 +602,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -613,6 +623,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -640,6 +651,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private int view_ = 0; + /** * * @@ -656,6 +668,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { public int getViewValue() { return view_; } + /** * * @@ -675,6 +688,7 @@ public Builder setViewValue(int value) { onChanged(); return this; } + /** * * @@ -692,6 +706,7 @@ public com.google.pubsub.v1.SchemaView getView() { com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } + /** * * @@ -714,6 +729,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index ff5c589a5fe1..f90f40032b3c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface GetSchemaRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -68,6 +69,7 @@ public interface GetSchemaRequestOrBuilder * @return The enum numeric value on the wire for view. */ int getViewValue(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 87620b557022..f21acaa42345 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -33,6 +33,7 @@ public final class GetSnapshotRequest extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSnapshotRequest) GetSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use GetSnapshotRequest.newBuilder() to construct. private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object snapshot_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getSnapshot() { return s; } } + /** * * @@ -278,6 +281,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -461,6 +465,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object snapshot_ = ""; + /** * * @@ -486,6 +491,7 @@ public java.lang.String getSnapshot() { return (java.lang.String) ref; } } + /** * * @@ -511,6 +517,7 @@ public com.google.protobuf.ByteString getSnapshotBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -535,6 +542,7 @@ public Builder setSnapshot(java.lang.String value) { onChanged(); return this; } + /** * * @@ -555,6 +563,7 @@ public Builder clearSnapshot() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 7e9d9a514af9..17f4fd93f0f1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface GetSnapshotRequestOrBuilder * @return The snapshot. */ java.lang.String getSnapshot(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 70a2388eb0b8..1662b80d5a06 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -33,6 +33,7 @@ public final class GetSubscriptionRequest extends com.google.protobuf.GeneratedM // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSubscriptionRequest) GetSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use GetSubscriptionRequest.newBuilder() to construct. private GetSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -279,6 +282,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -462,6 +466,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -487,6 +492,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -512,6 +518,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -536,6 +543,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -556,6 +564,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index f77a5594eec1..7dde24ac7387 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface GetSubscriptionRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 3400ff350519..245c8e678e06 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -33,6 +33,7 @@ public final class GetTopicRequest extends com.google.protobuf.GeneratedMessageV // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetTopicRequest) GetTopicRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use GetTopicRequest.newBuilder() to construct. private GetTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -277,6 +280,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -459,6 +463,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -484,6 +489,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -509,6 +515,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -533,6 +540,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -553,6 +561,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index dc6bdd088ecf..8a0092a6e5b9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface GetTopicRequestOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index ba7ce4fc2a9c..a5d102910a32 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -33,6 +33,7 @@ public final class IngestionDataSourceSettings extends com.google.protobuf.Gener // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings) IngestionDataSourceSettingsOrBuilder { private static final long serialVersionUID = 0L; + // Use IngestionDataSourceSettings.newBuilder() to construct. private IngestionDataSourceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -81,6 +82,7 @@ public interface AwsKinesisOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -109,6 +111,7 @@ public interface AwsKinesisOrBuilder * @return The streamArn. */ java.lang.String getStreamArn(); + /** * * @@ -135,6 +138,7 @@ public interface AwsKinesisOrBuilder * @return The consumerArn. */ java.lang.String getConsumerArn(); + /** * * @@ -163,6 +167,7 @@ public interface AwsKinesisOrBuilder * @return The awsRoleArn. */ java.lang.String getAwsRoleArn(); + /** * * @@ -193,6 +198,7 @@ public interface AwsKinesisOrBuilder * @return The gcpServiceAccount. */ java.lang.String getGcpServiceAccount(); + /** * * @@ -209,6 +215,7 @@ public interface AwsKinesisOrBuilder */ com.google.protobuf.ByteString getGcpServiceAccountBytes(); } + /** * * @@ -223,6 +230,7 @@ public static final class AwsKinesis extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) AwsKinesisOrBuilder { private static final long serialVersionUID = 0L; + // Use AwsKinesis.newBuilder() to construct. private AwsKinesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -350,6 +358,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -360,6 +369,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -378,6 +388,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * KINESIS_PERMISSION_DENIED = 2; */ public static final int KINESIS_PERMISSION_DENIED_VALUE = 2; + /** * * @@ -390,6 +401,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PUBLISH_PERMISSION_DENIED = 3; */ public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** * * @@ -400,6 +412,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STREAM_NOT_FOUND = 4; */ public static final int STREAM_NOT_FOUND_VALUE = 4; + /** * * @@ -504,6 +517,7 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; + /** * * @@ -522,6 +536,7 @@ private State(int value) { public int getStateValue() { return state_; } + /** * * @@ -549,6 +564,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getStat @SuppressWarnings("serial") private volatile java.lang.Object streamArn_ = ""; + /** * * @@ -572,6 +588,7 @@ public java.lang.String getStreamArn() { return s; } } + /** * * @@ -600,6 +617,7 @@ public com.google.protobuf.ByteString getStreamArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object consumerArn_ = ""; + /** * * @@ -624,6 +642,7 @@ public java.lang.String getConsumerArn() { return s; } } + /** * * @@ -653,6 +672,7 @@ public com.google.protobuf.ByteString getConsumerArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object awsRoleArn_ = ""; + /** * * @@ -678,6 +698,7 @@ public java.lang.String getAwsRoleArn() { return s; } } + /** * * @@ -708,6 +729,7 @@ public com.google.protobuf.ByteString getAwsRoleArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -734,6 +756,7 @@ public java.lang.String getGcpServiceAccount() { return s; } } + /** * * @@ -962,6 +985,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1210,6 +1234,7 @@ public Builder mergeFrom( private int bitField0_; private int state_ = 0; + /** * * @@ -1228,6 +1253,7 @@ public Builder mergeFrom( public int getStateValue() { return state_; } + /** * * @@ -1249,6 +1275,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -1271,6 +1298,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State getStat ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State.UNRECOGNIZED : result; } + /** * * @@ -1296,6 +1324,7 @@ public Builder setState( onChanged(); return this; } + /** * * @@ -1318,6 +1347,7 @@ public Builder clearState() { } private java.lang.Object streamArn_ = ""; + /** * * @@ -1340,6 +1370,7 @@ public java.lang.String getStreamArn() { return (java.lang.String) ref; } } + /** * * @@ -1362,6 +1393,7 @@ public com.google.protobuf.ByteString getStreamArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1383,6 +1415,7 @@ public Builder setStreamArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1400,6 +1433,7 @@ public Builder clearStreamArn() { onChanged(); return this; } + /** * * @@ -1424,6 +1458,7 @@ public Builder setStreamArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object consumerArn_ = ""; + /** * * @@ -1447,6 +1482,7 @@ public java.lang.String getConsumerArn() { return (java.lang.String) ref; } } + /** * * @@ -1470,6 +1506,7 @@ public com.google.protobuf.ByteString getConsumerArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1492,6 +1529,7 @@ public Builder setConsumerArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1510,6 +1548,7 @@ public Builder clearConsumerArn() { onChanged(); return this; } + /** * * @@ -1535,6 +1574,7 @@ public Builder setConsumerArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object awsRoleArn_ = ""; + /** * * @@ -1559,6 +1599,7 @@ public java.lang.String getAwsRoleArn() { return (java.lang.String) ref; } } + /** * * @@ -1583,6 +1624,7 @@ public com.google.protobuf.ByteString getAwsRoleArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1606,6 +1648,7 @@ public Builder setAwsRoleArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1625,6 +1668,7 @@ public Builder clearAwsRoleArn() { onChanged(); return this; } + /** * * @@ -1651,6 +1695,7 @@ public Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -1676,6 +1721,7 @@ public java.lang.String getGcpServiceAccount() { return (java.lang.String) ref; } } + /** * * @@ -1701,6 +1747,7 @@ public com.google.protobuf.ByteString getGcpServiceAccountBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1725,6 +1772,7 @@ public Builder setGcpServiceAccount(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1745,6 +1793,7 @@ public Builder clearGcpServiceAccount() { onChanged(); return this; } + /** * * @@ -1856,6 +1905,7 @@ public interface CloudStorageOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -1886,6 +1936,7 @@ public interface CloudStorageOrBuilder * @return The bucket. */ java.lang.String getBucket(); + /** * * @@ -1915,6 +1966,7 @@ public interface CloudStorageOrBuilder * @return Whether the textFormat field is set. */ boolean hasTextFormat(); + /** * * @@ -1929,6 +1981,7 @@ public interface CloudStorageOrBuilder * @return The textFormat. */ com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat getTextFormat(); + /** * * @@ -1957,6 +2010,7 @@ public interface CloudStorageOrBuilder * @return Whether the avroFormat field is set. */ boolean hasAvroFormat(); + /** * * @@ -1971,6 +2025,7 @@ public interface CloudStorageOrBuilder * @return The avroFormat. */ com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat getAvroFormat(); + /** * * @@ -2001,6 +2056,7 @@ public interface CloudStorageOrBuilder * @return Whether the pubsubAvroFormat field is set. */ boolean hasPubsubAvroFormat(); + /** * * @@ -2018,6 +2074,7 @@ public interface CloudStorageOrBuilder */ com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat getPubsubAvroFormat(); + /** * * @@ -2049,6 +2106,7 @@ public interface CloudStorageOrBuilder * @return Whether the minimumObjectCreateTime field is set. */ boolean hasMinimumObjectCreateTime(); + /** * * @@ -2064,6 +2122,7 @@ public interface CloudStorageOrBuilder * @return The minimumObjectCreateTime. */ com.google.protobuf.Timestamp getMinimumObjectCreateTime(); + /** * * @@ -2092,6 +2151,7 @@ public interface CloudStorageOrBuilder * @return The matchGlob. */ java.lang.String getMatchGlob(); + /** * * @@ -2110,6 +2170,7 @@ public interface CloudStorageOrBuilder com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.InputFormatCase getInputFormatCase(); } + /** * * @@ -2124,6 +2185,7 @@ public static final class CloudStorage extends com.google.protobuf.GeneratedMess // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) CloudStorageOrBuilder { private static final long serialVersionUID = 0L; + // Use CloudStorage.newBuilder() to construct. private CloudStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -2248,6 +2310,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -2258,6 +2321,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -2274,6 +2338,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_STORAGE_PERMISSION_DENIED = 2; */ public static final int CLOUD_STORAGE_PERMISSION_DENIED_VALUE = 2; + /** * * @@ -2286,6 +2351,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PUBLISH_PERMISSION_DENIED = 3; */ public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** * * @@ -2296,6 +2362,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * BUCKET_NOT_FOUND = 4; */ public static final int BUCKET_NOT_FOUND_VALUE = 4; + /** * * @@ -2416,6 +2483,7 @@ public interface TextFormatOrBuilder * @return Whether the delimiter field is set. */ boolean hasDelimiter(); + /** * * @@ -2428,6 +2496,7 @@ public interface TextFormatOrBuilder * @return The delimiter. */ java.lang.String getDelimiter(); + /** * * @@ -2441,6 +2510,7 @@ public interface TextFormatOrBuilder */ com.google.protobuf.ByteString getDelimiterBytes(); } + /** * * @@ -2457,6 +2527,7 @@ public static final class TextFormat extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) TextFormatOrBuilder { private static final long serialVersionUID = 0L; + // Use TextFormat.newBuilder() to construct. private TextFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -2493,6 +2564,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object delimiter_ = ""; + /** * * @@ -2508,6 +2580,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasDelimiter() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -2531,6 +2604,7 @@ public java.lang.String getDelimiter() { return s; } } + /** * * @@ -2730,6 +2804,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -2933,6 +3008,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object delimiter_ = ""; + /** * * @@ -2947,6 +3023,7 @@ public Builder mergeFrom( public boolean hasDelimiter() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -2969,6 +3046,7 @@ public java.lang.String getDelimiter() { return (java.lang.String) ref; } } + /** * * @@ -2991,6 +3069,7 @@ public com.google.protobuf.ByteString getDelimiterBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3012,6 +3091,7 @@ public Builder setDelimiter(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3029,6 +3109,7 @@ public Builder clearDelimiter() { onChanged(); return this; } + /** * * @@ -3124,6 +3205,7 @@ public interface AvroFormatOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -3140,6 +3222,7 @@ public static final class AvroFormat extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) AvroFormatOrBuilder { private static final long serialVersionUID = 0L; + // Use AvroFormat.newBuilder() to construct. private AvroFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -3330,6 +3413,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -3575,6 +3659,7 @@ public interface PubSubAvroFormatOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -3593,6 +3678,7 @@ public static final class PubSubAvroFormat extends com.google.protobuf.Generated // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) PubSubAvroFormatOrBuilder { private static final long serialVersionUID = 0L; + // Use PubSubAvroFormat.newBuilder() to construct. private PubSubAvroFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -3786,6 +3872,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -4054,6 +4141,7 @@ public enum InputFormatCase private InputFormatCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -4090,6 +4178,7 @@ public InputFormatCase getInputFormatCase() { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; + /** * * @@ -4108,6 +4197,7 @@ public InputFormatCase getInputFormatCase() { public int getStateValue() { return state_; } + /** * * @@ -4135,6 +4225,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State getSt @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; + /** * * @@ -4160,6 +4251,7 @@ public java.lang.String getBucket() { return s; } } + /** * * @@ -4187,6 +4279,7 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int TEXT_FORMAT_FIELD_NUMBER = 3; + /** * * @@ -4204,6 +4297,7 @@ public com.google.protobuf.ByteString getBucketBytes() { public boolean hasTextFormat() { return inputFormatCase_ == 3; } + /** * * @@ -4227,6 +4321,7 @@ public boolean hasTextFormat() { return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat .getDefaultInstance(); } + /** * * @@ -4250,6 +4345,7 @@ public boolean hasTextFormat() { } public static final int AVRO_FORMAT_FIELD_NUMBER = 4; + /** * * @@ -4267,6 +4363,7 @@ public boolean hasTextFormat() { public boolean hasAvroFormat() { return inputFormatCase_ == 4; } + /** * * @@ -4290,6 +4387,7 @@ public boolean hasAvroFormat() { return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat .getDefaultInstance(); } + /** * * @@ -4313,6 +4411,7 @@ public boolean hasAvroFormat() { } public static final int PUBSUB_AVRO_FORMAT_FIELD_NUMBER = 5; + /** * * @@ -4332,6 +4431,7 @@ public boolean hasAvroFormat() { public boolean hasPubsubAvroFormat() { return inputFormatCase_ == 5; } + /** * * @@ -4357,6 +4457,7 @@ public boolean hasPubsubAvroFormat() { return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat .getDefaultInstance(); } + /** * * @@ -4383,6 +4484,7 @@ public boolean hasPubsubAvroFormat() { public static final int MINIMUM_OBJECT_CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp minimumObjectCreateTime_; + /** * * @@ -4401,6 +4503,7 @@ public boolean hasPubsubAvroFormat() { public boolean hasMinimumObjectCreateTime() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -4421,6 +4524,7 @@ public com.google.protobuf.Timestamp getMinimumObjectCreateTime() { ? com.google.protobuf.Timestamp.getDefaultInstance() : minimumObjectCreateTime_; } + /** * * @@ -4444,6 +4548,7 @@ public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilde @SuppressWarnings("serial") private volatile java.lang.Object matchGlob_ = ""; + /** * * @@ -4469,6 +4574,7 @@ public java.lang.String getMatchGlob() { return s; } } + /** * * @@ -4763,6 +4869,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -5096,6 +5203,7 @@ public Builder clearInputFormat() { private int bitField0_; private int state_ = 0; + /** * * @@ -5114,6 +5222,7 @@ public Builder clearInputFormat() { public int getStateValue() { return state_; } + /** * * @@ -5135,6 +5244,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -5157,6 +5267,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State getSt ? com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State.UNRECOGNIZED : result; } + /** * * @@ -5182,6 +5293,7 @@ public Builder setState( onChanged(); return this; } + /** * * @@ -5204,6 +5316,7 @@ public Builder clearState() { } private java.lang.Object bucket_ = ""; + /** * * @@ -5228,6 +5341,7 @@ public java.lang.String getBucket() { return (java.lang.String) ref; } } + /** * * @@ -5252,6 +5366,7 @@ public com.google.protobuf.ByteString getBucketBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -5275,6 +5390,7 @@ public Builder setBucket(java.lang.String value) { onChanged(); return this; } + /** * * @@ -5294,6 +5410,7 @@ public Builder clearBucket() { onChanged(); return this; } + /** * * @@ -5324,6 +5441,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder> textFormatBuilder_; + /** * * @@ -5341,6 +5459,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { public boolean hasTextFormat() { return inputFormatCase_ == 3; } + /** * * @@ -5372,6 +5491,7 @@ public boolean hasTextFormat() { .getDefaultInstance(); } } + /** * * @@ -5397,6 +5517,7 @@ public Builder setTextFormat( inputFormatCase_ = 3; return this; } + /** * * @@ -5420,6 +5541,7 @@ public Builder setTextFormat( inputFormatCase_ = 3; return this; } + /** * * @@ -5458,6 +5580,7 @@ public Builder mergeTextFormat( inputFormatCase_ = 3; return this; } + /** * * @@ -5485,6 +5608,7 @@ public Builder clearTextFormat() { } return this; } + /** * * @@ -5500,6 +5624,7 @@ public Builder clearTextFormat() { getTextFormatBuilder() { return getTextFormatFieldBuilder().getBuilder(); } + /** * * @@ -5525,6 +5650,7 @@ public Builder clearTextFormat() { .getDefaultInstance(); } } + /** * * @@ -5569,6 +5695,7 @@ public Builder clearTextFormat() { com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder> avroFormatBuilder_; + /** * * @@ -5586,6 +5713,7 @@ public Builder clearTextFormat() { public boolean hasAvroFormat() { return inputFormatCase_ == 4; } + /** * * @@ -5617,6 +5745,7 @@ public boolean hasAvroFormat() { .getDefaultInstance(); } } + /** * * @@ -5642,6 +5771,7 @@ public Builder setAvroFormat( inputFormatCase_ = 4; return this; } + /** * * @@ -5665,6 +5795,7 @@ public Builder setAvroFormat( inputFormatCase_ = 4; return this; } + /** * * @@ -5703,6 +5834,7 @@ public Builder mergeAvroFormat( inputFormatCase_ = 4; return this; } + /** * * @@ -5730,6 +5862,7 @@ public Builder clearAvroFormat() { } return this; } + /** * * @@ -5745,6 +5878,7 @@ public Builder clearAvroFormat() { getAvroFormatBuilder() { return getAvroFormatFieldBuilder().getBuilder(); } + /** * * @@ -5770,6 +5904,7 @@ public Builder clearAvroFormat() { .getDefaultInstance(); } } + /** * * @@ -5816,6 +5951,7 @@ public Builder clearAvroFormat() { com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage .PubSubAvroFormatOrBuilder> pubsubAvroFormatBuilder_; + /** * * @@ -5835,6 +5971,7 @@ public Builder clearAvroFormat() { public boolean hasPubsubAvroFormat() { return inputFormatCase_ == 5; } + /** * * @@ -5868,6 +6005,7 @@ public boolean hasPubsubAvroFormat() { .getDefaultInstance(); } } + /** * * @@ -5895,6 +6033,7 @@ public Builder setPubsubAvroFormat( inputFormatCase_ = 5; return this; } + /** * * @@ -5920,6 +6059,7 @@ public Builder setPubsubAvroFormat( inputFormatCase_ = 5; return this; } + /** * * @@ -5962,6 +6102,7 @@ public Builder mergePubsubAvroFormat( inputFormatCase_ = 5; return this; } + /** * * @@ -5991,6 +6132,7 @@ public Builder clearPubsubAvroFormat() { } return this; } + /** * * @@ -6008,6 +6150,7 @@ public Builder clearPubsubAvroFormat() { getPubsubAvroFormatBuilder() { return getPubsubAvroFormatFieldBuilder().getBuilder(); } + /** * * @@ -6035,6 +6178,7 @@ public Builder clearPubsubAvroFormat() { .getDefaultInstance(); } } + /** * * @@ -6085,6 +6229,7 @@ public Builder clearPubsubAvroFormat() { com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> minimumObjectCreateTimeBuilder_; + /** * * @@ -6102,6 +6247,7 @@ public Builder clearPubsubAvroFormat() { public boolean hasMinimumObjectCreateTime() { return ((bitField0_ & 0x00000020) != 0); } + /** * * @@ -6125,6 +6271,7 @@ public com.google.protobuf.Timestamp getMinimumObjectCreateTime() { return minimumObjectCreateTimeBuilder_.getMessage(); } } + /** * * @@ -6150,6 +6297,7 @@ public Builder setMinimumObjectCreateTime(com.google.protobuf.Timestamp value) { onChanged(); return this; } + /** * * @@ -6173,6 +6321,7 @@ public Builder setMinimumObjectCreateTime( onChanged(); return this; } + /** * * @@ -6203,6 +6352,7 @@ public Builder mergeMinimumObjectCreateTime(com.google.protobuf.Timestamp value) } return this; } + /** * * @@ -6225,6 +6375,7 @@ public Builder clearMinimumObjectCreateTime() { onChanged(); return this; } + /** * * @@ -6242,6 +6393,7 @@ public com.google.protobuf.Timestamp.Builder getMinimumObjectCreateTimeBuilder() onChanged(); return getMinimumObjectCreateTimeFieldBuilder().getBuilder(); } + /** * * @@ -6263,6 +6415,7 @@ public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilde : minimumObjectCreateTime_; } } + /** * * @@ -6293,6 +6446,7 @@ public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilde } private java.lang.Object matchGlob_ = ""; + /** * * @@ -6317,6 +6471,7 @@ public java.lang.String getMatchGlob() { return (java.lang.String) ref; } } + /** * * @@ -6341,6 +6496,7 @@ public com.google.protobuf.ByteString getMatchGlobBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -6364,6 +6520,7 @@ public Builder setMatchGlob(java.lang.String value) { onChanged(); return this; } + /** * * @@ -6383,6 +6540,7 @@ public Builder clearMatchGlob() { onChanged(); return this; } + /** * * @@ -6495,6 +6653,7 @@ public interface AzureEventHubsOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -6523,6 +6682,7 @@ public interface AzureEventHubsOrBuilder * @return The resourceGroup. */ java.lang.String getResourceGroup(); + /** * * @@ -6548,6 +6708,7 @@ public interface AzureEventHubsOrBuilder * @return The namespace. */ java.lang.String getNamespace(); + /** * * @@ -6573,6 +6734,7 @@ public interface AzureEventHubsOrBuilder * @return The eventHub. */ java.lang.String getEventHub(); + /** * * @@ -6599,6 +6761,7 @@ public interface AzureEventHubsOrBuilder * @return The clientId. */ java.lang.String getClientId(); + /** * * @@ -6626,6 +6789,7 @@ public interface AzureEventHubsOrBuilder * @return The tenantId. */ java.lang.String getTenantId(); + /** * * @@ -6652,6 +6816,7 @@ public interface AzureEventHubsOrBuilder * @return The subscriptionId. */ java.lang.String getSubscriptionId(); + /** * * @@ -6678,6 +6843,7 @@ public interface AzureEventHubsOrBuilder * @return The gcpServiceAccount. */ java.lang.String getGcpServiceAccount(); + /** * * @@ -6692,6 +6858,7 @@ public interface AzureEventHubsOrBuilder */ com.google.protobuf.ByteString getGcpServiceAccountBytes(); } + /** * * @@ -6706,6 +6873,7 @@ public static final class AzureEventHubs extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) AzureEventHubsOrBuilder { private static final long serialVersionUID = 0L; + // Use AzureEventHubs.newBuilder() to construct. private AzureEventHubs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -6848,6 +7016,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -6858,6 +7027,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -6870,6 +7040,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * EVENT_HUBS_PERMISSION_DENIED = 2; */ public static final int EVENT_HUBS_PERMISSION_DENIED_VALUE = 2; + /** * * @@ -6880,6 +7051,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PUBLISH_PERMISSION_DENIED = 3; */ public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** * * @@ -6890,6 +7062,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * NAMESPACE_NOT_FOUND = 4; */ public static final int NAMESPACE_NOT_FOUND_VALUE = 4; + /** * * @@ -6900,6 +7073,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * EVENT_HUB_NOT_FOUND = 5; */ public static final int EVENT_HUB_NOT_FOUND_VALUE = 5; + /** * * @@ -6910,6 +7084,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * SUBSCRIPTION_NOT_FOUND = 6; */ public static final int SUBSCRIPTION_NOT_FOUND_VALUE = 6; + /** * * @@ -7018,6 +7193,7 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; + /** * * @@ -7036,6 +7212,7 @@ private State(int value) { public int getStateValue() { return state_; } + /** * * @@ -7063,6 +7240,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State get @SuppressWarnings("serial") private volatile java.lang.Object resourceGroup_ = ""; + /** * * @@ -7086,6 +7264,7 @@ public java.lang.String getResourceGroup() { return s; } } + /** * * @@ -7114,6 +7293,7 @@ public com.google.protobuf.ByteString getResourceGroupBytes() { @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; + /** * * @@ -7137,6 +7317,7 @@ public java.lang.String getNamespace() { return s; } } + /** * * @@ -7165,6 +7346,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { @SuppressWarnings("serial") private volatile java.lang.Object eventHub_ = ""; + /** * * @@ -7188,6 +7370,7 @@ public java.lang.String getEventHub() { return s; } } + /** * * @@ -7216,6 +7399,7 @@ public com.google.protobuf.ByteString getEventHubBytes() { @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; + /** * * @@ -7240,6 +7424,7 @@ public java.lang.String getClientId() { return s; } } + /** * * @@ -7269,6 +7454,7 @@ public com.google.protobuf.ByteString getClientIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object tenantId_ = ""; + /** * * @@ -7293,6 +7479,7 @@ public java.lang.String getTenantId() { return s; } } + /** * * @@ -7322,6 +7509,7 @@ public com.google.protobuf.ByteString getTenantIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object subscriptionId_ = ""; + /** * * @@ -7345,6 +7533,7 @@ public java.lang.String getSubscriptionId() { return s; } } + /** * * @@ -7373,6 +7562,7 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -7397,6 +7587,7 @@ public java.lang.String getGcpServiceAccount() { return s; } } + /** * * @@ -7651,6 +7842,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -7946,6 +8138,7 @@ public Builder mergeFrom( private int bitField0_; private int state_ = 0; + /** * * @@ -7964,6 +8157,7 @@ public Builder mergeFrom( public int getStateValue() { return state_; } + /** * * @@ -7985,6 +8179,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -8007,6 +8202,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State get ? com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.State.UNRECOGNIZED : result; } + /** * * @@ -8032,6 +8228,7 @@ public Builder setState( onChanged(); return this; } + /** * * @@ -8054,6 +8251,7 @@ public Builder clearState() { } private java.lang.Object resourceGroup_ = ""; + /** * * @@ -8076,6 +8274,7 @@ public java.lang.String getResourceGroup() { return (java.lang.String) ref; } } + /** * * @@ -8098,6 +8297,7 @@ public com.google.protobuf.ByteString getResourceGroupBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8119,6 +8319,7 @@ public Builder setResourceGroup(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8136,6 +8337,7 @@ public Builder clearResourceGroup() { onChanged(); return this; } + /** * * @@ -8160,6 +8362,7 @@ public Builder setResourceGroupBytes(com.google.protobuf.ByteString value) { } private java.lang.Object namespace_ = ""; + /** * * @@ -8182,6 +8385,7 @@ public java.lang.String getNamespace() { return (java.lang.String) ref; } } + /** * * @@ -8204,6 +8408,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8225,6 +8430,7 @@ public Builder setNamespace(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8242,6 +8448,7 @@ public Builder clearNamespace() { onChanged(); return this; } + /** * * @@ -8266,6 +8473,7 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { } private java.lang.Object eventHub_ = ""; + /** * * @@ -8288,6 +8496,7 @@ public java.lang.String getEventHub() { return (java.lang.String) ref; } } + /** * * @@ -8310,6 +8519,7 @@ public com.google.protobuf.ByteString getEventHubBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8331,6 +8541,7 @@ public Builder setEventHub(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8348,6 +8559,7 @@ public Builder clearEventHub() { onChanged(); return this; } + /** * * @@ -8372,6 +8584,7 @@ public Builder setEventHubBytes(com.google.protobuf.ByteString value) { } private java.lang.Object clientId_ = ""; + /** * * @@ -8395,6 +8608,7 @@ public java.lang.String getClientId() { return (java.lang.String) ref; } } + /** * * @@ -8418,6 +8632,7 @@ public com.google.protobuf.ByteString getClientIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8440,6 +8655,7 @@ public Builder setClientId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8458,6 +8674,7 @@ public Builder clearClientId() { onChanged(); return this; } + /** * * @@ -8483,6 +8700,7 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object tenantId_ = ""; + /** * * @@ -8506,6 +8724,7 @@ public java.lang.String getTenantId() { return (java.lang.String) ref; } } + /** * * @@ -8529,6 +8748,7 @@ public com.google.protobuf.ByteString getTenantIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8551,6 +8771,7 @@ public Builder setTenantId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8569,6 +8790,7 @@ public Builder clearTenantId() { onChanged(); return this; } + /** * * @@ -8594,6 +8816,7 @@ public Builder setTenantIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object subscriptionId_ = ""; + /** * * @@ -8616,6 +8839,7 @@ public java.lang.String getSubscriptionId() { return (java.lang.String) ref; } } + /** * * @@ -8638,6 +8862,7 @@ public com.google.protobuf.ByteString getSubscriptionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8659,6 +8884,7 @@ public Builder setSubscriptionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8676,6 +8902,7 @@ public Builder clearSubscriptionId() { onChanged(); return this; } + /** * * @@ -8700,6 +8927,7 @@ public Builder setSubscriptionIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -8723,6 +8951,7 @@ public java.lang.String getGcpServiceAccount() { return (java.lang.String) ref; } } + /** * * @@ -8746,6 +8975,7 @@ public com.google.protobuf.ByteString getGcpServiceAccountBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8768,6 +8998,7 @@ public Builder setGcpServiceAccount(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8786,6 +9017,7 @@ public Builder clearGcpServiceAccount() { onChanged(); return this; } + /** * * @@ -8897,6 +9129,7 @@ public interface AwsMskOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -8926,6 +9159,7 @@ public interface AwsMskOrBuilder * @return The clusterArn. */ java.lang.String getClusterArn(); + /** * * @@ -8953,6 +9187,7 @@ public interface AwsMskOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -8981,6 +9216,7 @@ public interface AwsMskOrBuilder * @return The awsRoleArn. */ java.lang.String getAwsRoleArn(); + /** * * @@ -9011,6 +9247,7 @@ public interface AwsMskOrBuilder * @return The gcpServiceAccount. */ java.lang.String getGcpServiceAccount(); + /** * * @@ -9027,6 +9264,7 @@ public interface AwsMskOrBuilder */ com.google.protobuf.ByteString getGcpServiceAccountBytes(); } + /** * * @@ -9041,6 +9279,7 @@ public static final class AwsMsk extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) AwsMskOrBuilder { private static final long serialVersionUID = 0L; + // Use AwsMsk.newBuilder() to construct. private AwsMsk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -9158,6 +9397,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -9168,6 +9408,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -9178,6 +9419,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * MSK_PERMISSION_DENIED = 2; */ public static final int MSK_PERMISSION_DENIED_VALUE = 2; + /** * * @@ -9188,6 +9430,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PUBLISH_PERMISSION_DENIED = 3; */ public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** * * @@ -9198,6 +9441,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * CLUSTER_NOT_FOUND = 4; */ public static final int CLUSTER_NOT_FOUND_VALUE = 4; + /** * * @@ -9302,6 +9546,7 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; + /** * * @@ -9320,6 +9565,7 @@ private State(int value) { public int getStateValue() { return state_; } + /** * * @@ -9347,6 +9593,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State getState() @SuppressWarnings("serial") private volatile java.lang.Object clusterArn_ = ""; + /** * * @@ -9371,6 +9618,7 @@ public java.lang.String getClusterArn() { return s; } } + /** * * @@ -9400,6 +9648,7 @@ public com.google.protobuf.ByteString getClusterArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -9424,6 +9673,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -9453,6 +9703,7 @@ public com.google.protobuf.ByteString getTopicBytes() { @SuppressWarnings("serial") private volatile java.lang.Object awsRoleArn_ = ""; + /** * * @@ -9478,6 +9729,7 @@ public java.lang.String getAwsRoleArn() { return s; } } + /** * * @@ -9508,6 +9760,7 @@ public com.google.protobuf.ByteString getAwsRoleArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -9534,6 +9787,7 @@ public java.lang.String getGcpServiceAccount() { return s; } } + /** * * @@ -9762,6 +10016,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -10007,6 +10262,7 @@ public Builder mergeFrom( private int bitField0_; private int state_ = 0; + /** * * @@ -10025,6 +10281,7 @@ public Builder mergeFrom( public int getStateValue() { return state_; } + /** * * @@ -10046,6 +10303,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -10068,6 +10326,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State getState() ? com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State.UNRECOGNIZED : result; } + /** * * @@ -10092,6 +10351,7 @@ public Builder setState(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk. onChanged(); return this; } + /** * * @@ -10114,6 +10374,7 @@ public Builder clearState() { } private java.lang.Object clusterArn_ = ""; + /** * * @@ -10137,6 +10398,7 @@ public java.lang.String getClusterArn() { return (java.lang.String) ref; } } + /** * * @@ -10160,6 +10422,7 @@ public com.google.protobuf.ByteString getClusterArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -10182,6 +10445,7 @@ public Builder setClusterArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -10200,6 +10464,7 @@ public Builder clearClusterArn() { onChanged(); return this; } + /** * * @@ -10225,6 +10490,7 @@ public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object topic_ = ""; + /** * * @@ -10248,6 +10514,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -10271,6 +10538,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -10293,6 +10561,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -10311,6 +10580,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -10336,6 +10606,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private java.lang.Object awsRoleArn_ = ""; + /** * * @@ -10360,6 +10631,7 @@ public java.lang.String getAwsRoleArn() { return (java.lang.String) ref; } } + /** * * @@ -10384,6 +10656,7 @@ public com.google.protobuf.ByteString getAwsRoleArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -10407,6 +10680,7 @@ public Builder setAwsRoleArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -10426,6 +10700,7 @@ public Builder clearAwsRoleArn() { onChanged(); return this; } + /** * * @@ -10452,6 +10727,7 @@ public Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -10477,6 +10753,7 @@ public java.lang.String getGcpServiceAccount() { return (java.lang.String) ref; } } + /** * * @@ -10502,6 +10779,7 @@ public com.google.protobuf.ByteString getGcpServiceAccountBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -10526,6 +10804,7 @@ public Builder setGcpServiceAccount(java.lang.String value) { onChanged(); return this; } + /** * * @@ -10546,6 +10825,7 @@ public Builder clearGcpServiceAccount() { onChanged(); return this; } + /** * * @@ -10656,6 +10936,7 @@ public interface ConfluentCloudOrBuilder * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -10684,6 +10965,7 @@ public interface ConfluentCloudOrBuilder * @return The bootstrapServer. */ java.lang.String getBootstrapServer(); + /** * * @@ -10709,6 +10991,7 @@ public interface ConfluentCloudOrBuilder * @return The clusterId. */ java.lang.String getClusterId(); + /** * * @@ -10735,6 +11018,7 @@ public interface ConfluentCloudOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -10763,6 +11047,7 @@ public interface ConfluentCloudOrBuilder * @return The identityPoolId. */ java.lang.String getIdentityPoolId(); + /** * * @@ -10791,6 +11076,7 @@ public interface ConfluentCloudOrBuilder * @return The gcpServiceAccount. */ java.lang.String getGcpServiceAccount(); + /** * * @@ -10805,6 +11091,7 @@ public interface ConfluentCloudOrBuilder */ com.google.protobuf.ByteString getGcpServiceAccountBytes(); } + /** * * @@ -10819,6 +11106,7 @@ public static final class ConfluentCloud extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) ConfluentCloudOrBuilder { private static final long serialVersionUID = 0L; + // Use ConfluentCloud.newBuilder() to construct. private ConfluentCloud(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -10948,6 +11236,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -10958,6 +11247,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -10969,6 +11259,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * CONFLUENT_CLOUD_PERMISSION_DENIED = 2; */ public static final int CONFLUENT_CLOUD_PERMISSION_DENIED_VALUE = 2; + /** * * @@ -10979,6 +11270,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * PUBLISH_PERMISSION_DENIED = 3; */ public static final int PUBLISH_PERMISSION_DENIED_VALUE = 3; + /** * * @@ -10989,6 +11281,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * UNREACHABLE_BOOTSTRAP_SERVER = 4; */ public static final int UNREACHABLE_BOOTSTRAP_SERVER_VALUE = 4; + /** * * @@ -10999,6 +11292,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * CLUSTER_NOT_FOUND = 5; */ public static final int CLUSTER_NOT_FOUND_VALUE = 5; + /** * * @@ -11105,6 +11399,7 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; + /** * * @@ -11123,6 +11418,7 @@ private State(int value) { public int getStateValue() { return state_; } + /** * * @@ -11150,6 +11446,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State get @SuppressWarnings("serial") private volatile java.lang.Object bootstrapServer_ = ""; + /** * * @@ -11173,6 +11470,7 @@ public java.lang.String getBootstrapServer() { return s; } } + /** * * @@ -11201,6 +11499,7 @@ public com.google.protobuf.ByteString getBootstrapServerBytes() { @SuppressWarnings("serial") private volatile java.lang.Object clusterId_ = ""; + /** * * @@ -11224,6 +11523,7 @@ public java.lang.String getClusterId() { return s; } } + /** * * @@ -11252,6 +11552,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -11276,6 +11577,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -11305,6 +11607,7 @@ public com.google.protobuf.ByteString getTopicBytes() { @SuppressWarnings("serial") private volatile java.lang.Object identityPoolId_ = ""; + /** * * @@ -11330,6 +11633,7 @@ public java.lang.String getIdentityPoolId() { return s; } } + /** * * @@ -11360,6 +11664,7 @@ public com.google.protobuf.ByteString getIdentityPoolIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -11384,6 +11689,7 @@ public java.lang.String getGcpServiceAccount() { return s; } } + /** * * @@ -11620,6 +11926,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -11885,6 +12192,7 @@ public Builder mergeFrom( private int bitField0_; private int state_ = 0; + /** * * @@ -11903,6 +12211,7 @@ public Builder mergeFrom( public int getStateValue() { return state_; } + /** * * @@ -11924,6 +12233,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -11946,6 +12256,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State get ? com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.State.UNRECOGNIZED : result; } + /** * * @@ -11971,6 +12282,7 @@ public Builder setState( onChanged(); return this; } + /** * * @@ -11993,6 +12305,7 @@ public Builder clearState() { } private java.lang.Object bootstrapServer_ = ""; + /** * * @@ -12015,6 +12328,7 @@ public java.lang.String getBootstrapServer() { return (java.lang.String) ref; } } + /** * * @@ -12037,6 +12351,7 @@ public com.google.protobuf.ByteString getBootstrapServerBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -12058,6 +12373,7 @@ public Builder setBootstrapServer(java.lang.String value) { onChanged(); return this; } + /** * * @@ -12075,6 +12391,7 @@ public Builder clearBootstrapServer() { onChanged(); return this; } + /** * * @@ -12099,6 +12416,7 @@ public Builder setBootstrapServerBytes(com.google.protobuf.ByteString value) { } private java.lang.Object clusterId_ = ""; + /** * * @@ -12121,6 +12439,7 @@ public java.lang.String getClusterId() { return (java.lang.String) ref; } } + /** * * @@ -12143,6 +12462,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -12164,6 +12484,7 @@ public Builder setClusterId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -12181,6 +12502,7 @@ public Builder clearClusterId() { onChanged(); return this; } + /** * * @@ -12205,6 +12527,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object topic_ = ""; + /** * * @@ -12228,6 +12551,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -12251,6 +12575,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -12273,6 +12598,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -12291,6 +12617,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -12316,6 +12643,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private java.lang.Object identityPoolId_ = ""; + /** * * @@ -12340,6 +12668,7 @@ public java.lang.String getIdentityPoolId() { return (java.lang.String) ref; } } + /** * * @@ -12364,6 +12693,7 @@ public com.google.protobuf.ByteString getIdentityPoolIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -12387,6 +12717,7 @@ public Builder setIdentityPoolId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -12406,6 +12737,7 @@ public Builder clearIdentityPoolId() { onChanged(); return this; } + /** * * @@ -12432,6 +12764,7 @@ public Builder setIdentityPoolIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object gcpServiceAccount_ = ""; + /** * * @@ -12455,6 +12788,7 @@ public java.lang.String getGcpServiceAccount() { return (java.lang.String) ref; } } + /** * * @@ -12478,6 +12812,7 @@ public com.google.protobuf.ByteString getGcpServiceAccountBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -12500,6 +12835,7 @@ public Builder setGcpServiceAccount(java.lang.String value) { onChanged(); return this; } + /** * * @@ -12518,6 +12854,7 @@ public Builder clearGcpServiceAccount() { onChanged(); return this; } + /** * * @@ -12630,6 +12967,7 @@ public enum SourceCase private SourceCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -12669,6 +13007,7 @@ public SourceCase getSourceCase() { } public static final int AWS_KINESIS_FIELD_NUMBER = 1; + /** * * @@ -12686,6 +13025,7 @@ public SourceCase getSourceCase() { public boolean hasAwsKinesis() { return sourceCase_ == 1; } + /** * * @@ -12706,6 +13046,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis } return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } + /** * * @@ -12727,6 +13068,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis } public static final int CLOUD_STORAGE_FIELD_NUMBER = 2; + /** * * @@ -12744,6 +13086,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis public boolean hasCloudStorage() { return sourceCase_ == 2; } + /** * * @@ -12764,6 +13107,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudSto } return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } + /** * * @@ -12785,6 +13129,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudSto } public static final int AZURE_EVENT_HUBS_FIELD_NUMBER = 3; + /** * * @@ -12802,6 +13147,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudSto public boolean hasAzureEventHubs() { return sourceCase_ == 3; } + /** * * @@ -12822,6 +13168,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureE } return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } + /** * * @@ -12843,6 +13190,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureE } public static final int AWS_MSK_FIELD_NUMBER = 5; + /** * * @@ -12860,6 +13208,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureE public boolean hasAwsMsk() { return sourceCase_ == 5; } + /** * * @@ -12880,6 +13229,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk() { } return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } + /** * * @@ -12900,6 +13250,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs } public static final int CONFLUENT_CLOUD_FIELD_NUMBER = 6; + /** * * @@ -12917,6 +13268,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs public boolean hasConfluentCloud() { return sourceCase_ == 6; } + /** * * @@ -12937,6 +13289,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConflu } return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } + /** * * @@ -12959,6 +13312,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConflu public static final int PLATFORM_LOGS_SETTINGS_FIELD_NUMBER = 4; private com.google.pubsub.v1.PlatformLogsSettings platformLogsSettings_; + /** * * @@ -12977,6 +13331,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConflu public boolean hasPlatformLogsSettings() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -12997,6 +13352,7 @@ public com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings() { ? com.google.pubsub.v1.PlatformLogsSettings.getDefaultInstance() : platformLogsSettings_; } + /** * * @@ -13268,6 +13624,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -13587,6 +13944,7 @@ public Builder clearSource() { com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> awsKinesisBuilder_; + /** * * @@ -13604,6 +13962,7 @@ public Builder clearSource() { public boolean hasAwsKinesis() { return sourceCase_ == 1; } + /** * * @@ -13631,6 +13990,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } } + /** * * @@ -13656,6 +14016,7 @@ public Builder setAwsKinesis( sourceCase_ = 1; return this; } + /** * * @@ -13678,6 +14039,7 @@ public Builder setAwsKinesis( sourceCase_ = 1; return this; } + /** * * @@ -13715,6 +14077,7 @@ public Builder mergeAwsKinesis( sourceCase_ = 1; return this; } + /** * * @@ -13742,6 +14105,7 @@ public Builder clearAwsKinesis() { } return this; } + /** * * @@ -13757,6 +14121,7 @@ public Builder clearAwsKinesis() { getAwsKinesisBuilder() { return getAwsKinesisFieldBuilder().getBuilder(); } + /** * * @@ -13780,6 +14145,7 @@ public Builder clearAwsKinesis() { return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } } + /** * * @@ -13821,6 +14187,7 @@ public Builder clearAwsKinesis() { com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> cloudStorageBuilder_; + /** * * @@ -13838,6 +14205,7 @@ public Builder clearAwsKinesis() { public boolean hasCloudStorage() { return sourceCase_ == 2; } + /** * * @@ -13865,6 +14233,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudSto return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } } + /** * * @@ -13890,6 +14259,7 @@ public Builder setCloudStorage( sourceCase_ = 2; return this; } + /** * * @@ -13912,6 +14282,7 @@ public Builder setCloudStorage( sourceCase_ = 2; return this; } + /** * * @@ -13949,6 +14320,7 @@ public Builder mergeCloudStorage( sourceCase_ = 2; return this; } + /** * * @@ -13976,6 +14348,7 @@ public Builder clearCloudStorage() { } return this; } + /** * * @@ -13991,6 +14364,7 @@ public Builder clearCloudStorage() { getCloudStorageBuilder() { return getCloudStorageFieldBuilder().getBuilder(); } + /** * * @@ -14014,6 +14388,7 @@ public Builder clearCloudStorage() { return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } } + /** * * @@ -14055,6 +14430,7 @@ public Builder clearCloudStorage() { com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder> azureEventHubsBuilder_; + /** * * @@ -14072,6 +14448,7 @@ public Builder clearCloudStorage() { public boolean hasAzureEventHubs() { return sourceCase_ == 3; } + /** * * @@ -14099,6 +14476,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureE return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } } + /** * * @@ -14124,6 +14502,7 @@ public Builder setAzureEventHubs( sourceCase_ = 3; return this; } + /** * * @@ -14146,6 +14525,7 @@ public Builder setAzureEventHubs( sourceCase_ = 3; return this; } + /** * * @@ -14183,6 +14563,7 @@ public Builder mergeAzureEventHubs( sourceCase_ = 3; return this; } + /** * * @@ -14210,6 +14591,7 @@ public Builder clearAzureEventHubs() { } return this; } + /** * * @@ -14225,6 +14607,7 @@ public Builder clearAzureEventHubs() { getAzureEventHubsBuilder() { return getAzureEventHubsFieldBuilder().getBuilder(); } + /** * * @@ -14248,6 +14631,7 @@ public Builder clearAzureEventHubs() { return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } } + /** * * @@ -14289,6 +14673,7 @@ public Builder clearAzureEventHubs() { com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder> awsMskBuilder_; + /** * * @@ -14306,6 +14691,7 @@ public Builder clearAzureEventHubs() { public boolean hasAwsMsk() { return sourceCase_ == 5; } + /** * * @@ -14333,6 +14719,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk() { return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } } + /** * * @@ -14357,6 +14744,7 @@ public Builder setAwsMsk(com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk sourceCase_ = 5; return this; } + /** * * @@ -14379,6 +14767,7 @@ public Builder setAwsMsk( sourceCase_ = 5; return this; } + /** * * @@ -14414,6 +14803,7 @@ public Builder mergeAwsMsk(com.google.pubsub.v1.IngestionDataSourceSettings.AwsM sourceCase_ = 5; return this; } + /** * * @@ -14441,6 +14831,7 @@ public Builder clearAwsMsk() { } return this; } + /** * * @@ -14455,6 +14846,7 @@ public Builder clearAwsMsk() { public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder getAwsMskBuilder() { return getAwsMskFieldBuilder().getBuilder(); } + /** * * @@ -14477,6 +14869,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } } + /** * * @@ -14517,6 +14910,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder> confluentCloudBuilder_; + /** * * @@ -14534,6 +14928,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs public boolean hasConfluentCloud() { return sourceCase_ == 6; } + /** * * @@ -14561,6 +14956,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConflu return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } } + /** * * @@ -14586,6 +14982,7 @@ public Builder setConfluentCloud( sourceCase_ = 6; return this; } + /** * * @@ -14608,6 +15005,7 @@ public Builder setConfluentCloud( sourceCase_ = 6; return this; } + /** * * @@ -14645,6 +15043,7 @@ public Builder mergeConfluentCloud( sourceCase_ = 6; return this; } + /** * * @@ -14672,6 +15071,7 @@ public Builder clearConfluentCloud() { } return this; } + /** * * @@ -14687,6 +15087,7 @@ public Builder clearConfluentCloud() { getConfluentCloudBuilder() { return getConfluentCloudFieldBuilder().getBuilder(); } + /** * * @@ -14710,6 +15111,7 @@ public Builder clearConfluentCloud() { return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } } + /** * * @@ -14752,6 +15154,7 @@ public Builder clearConfluentCloud() { com.google.pubsub.v1.PlatformLogsSettings.Builder, com.google.pubsub.v1.PlatformLogsSettingsOrBuilder> platformLogsSettingsBuilder_; + /** * * @@ -14769,6 +15172,7 @@ public Builder clearConfluentCloud() { public boolean hasPlatformLogsSettings() { return ((bitField0_ & 0x00000020) != 0); } + /** * * @@ -14792,6 +15196,7 @@ public com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings() { return platformLogsSettingsBuilder_.getMessage(); } } + /** * * @@ -14817,6 +15222,7 @@ public Builder setPlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettings onChanged(); return this; } + /** * * @@ -14840,6 +15246,7 @@ public Builder setPlatformLogsSettings( onChanged(); return this; } + /** * * @@ -14871,6 +15278,7 @@ public Builder mergePlatformLogsSettings(com.google.pubsub.v1.PlatformLogsSettin } return this; } + /** * * @@ -14893,6 +15301,7 @@ public Builder clearPlatformLogsSettings() { onChanged(); return this; } + /** * * @@ -14910,6 +15319,7 @@ public com.google.pubsub.v1.PlatformLogsSettings.Builder getPlatformLogsSettings onChanged(); return getPlatformLogsSettingsFieldBuilder().getBuilder(); } + /** * * @@ -14931,6 +15341,7 @@ public com.google.pubsub.v1.PlatformLogsSettingsOrBuilder getPlatformLogsSetting : platformLogsSettings_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index aba0b49cb97c..84ef926a974e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -38,6 +38,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the awsKinesis field is set. */ boolean hasAwsKinesis(); + /** * * @@ -52,6 +53,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The awsKinesis. */ com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis getAwsKinesis(); + /** * * @@ -79,6 +81,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the cloudStorage field is set. */ boolean hasCloudStorage(); + /** * * @@ -93,6 +96,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The cloudStorage. */ com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage getCloudStorage(); + /** * * @@ -120,6 +124,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the azureEventHubs field is set. */ boolean hasAzureEventHubs(); + /** * * @@ -134,6 +139,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The azureEventHubs. */ com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs getAzureEventHubs(); + /** * * @@ -162,6 +168,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the awsMsk field is set. */ boolean hasAwsMsk(); + /** * * @@ -176,6 +183,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The awsMsk. */ com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk getAwsMsk(); + /** * * @@ -203,6 +211,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the confluentCloud field is set. */ boolean hasConfluentCloud(); + /** * * @@ -217,6 +226,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The confluentCloud. */ com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud getConfluentCloud(); + /** * * @@ -246,6 +256,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return Whether the platformLogsSettings field is set. */ boolean hasPlatformLogsSettings(); + /** * * @@ -261,6 +272,7 @@ public interface IngestionDataSourceSettingsOrBuilder * @return The platformLogsSettings. */ com.google.pubsub.v1.PlatformLogsSettings getPlatformLogsSettings(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 624ec551c408..206b6d9e9155 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -34,6 +34,7 @@ public final class IngestionFailureEvent extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent) IngestionFailureEventOrBuilder { private static final long serialVersionUID = 0L; + // Use IngestionFailureEvent.newBuilder() to construct. private IngestionFailureEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public interface ApiViolationReasonOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -90,6 +92,7 @@ public static final class ApiViolationReason extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) ApiViolationReasonOrBuilder { private static final long serialVersionUID = 0L; + // Use ApiViolationReason.newBuilder() to construct. private ApiViolationReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -270,6 +273,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -512,6 +516,7 @@ public interface AvroFailureReasonOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -527,6 +532,7 @@ public static final class AvroFailureReason extends com.google.protobuf.Generate // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) AvroFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + // Use AvroFailureReason.newBuilder() to construct. private AvroFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -707,6 +713,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -955,6 +962,7 @@ public interface CloudStorageFailureOrBuilder * @return The bucket. */ java.lang.String getBucket(); + /** * * @@ -981,6 +989,7 @@ public interface CloudStorageFailureOrBuilder * @return The objectName. */ java.lang.String getObjectName(); + /** * * @@ -1023,6 +1032,7 @@ public interface CloudStorageFailureOrBuilder * @return Whether the avroFailureReason field is set. */ boolean hasAvroFailureReason(); + /** * * @@ -1037,6 +1047,7 @@ public interface CloudStorageFailureOrBuilder * @return The avroFailureReason. */ com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason(); + /** * * @@ -1066,6 +1077,7 @@ public interface CloudStorageFailureOrBuilder * @return Whether the apiViolationReason field is set. */ boolean hasApiViolationReason(); + /** * * @@ -1081,6 +1093,7 @@ public interface CloudStorageFailureOrBuilder * @return The apiViolationReason. */ com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** * * @@ -1098,6 +1111,7 @@ public interface CloudStorageFailureOrBuilder com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); } + /** * * @@ -1112,6 +1126,7 @@ public static final class CloudStorageFailure extends com.google.protobuf.Genera // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) CloudStorageFailureOrBuilder { private static final long serialVersionUID = 0L; + // Use CloudStorageFailure.newBuilder() to construct. private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -1160,6 +1175,7 @@ public enum ReasonCase private ReasonCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -1196,6 +1212,7 @@ public ReasonCase getReasonCase() { @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; + /** * * @@ -1219,6 +1236,7 @@ public java.lang.String getBucket() { return s; } } + /** * * @@ -1247,6 +1265,7 @@ public com.google.protobuf.ByteString getBucketBytes() { @SuppressWarnings("serial") private volatile java.lang.Object objectName_ = ""; + /** * * @@ -1271,6 +1290,7 @@ public java.lang.String getObjectName() { return s; } } + /** * * @@ -1298,6 +1318,7 @@ public com.google.protobuf.ByteString getObjectNameBytes() { public static final int OBJECT_GENERATION_FIELD_NUMBER = 3; private long objectGeneration_ = 0L; + /** * * @@ -1316,6 +1337,7 @@ public long getObjectGeneration() { } public static final int AVRO_FAILURE_REASON_FIELD_NUMBER = 5; + /** * * @@ -1333,6 +1355,7 @@ public long getObjectGeneration() { public boolean hasAvroFailureReason() { return reasonCase_ == 5; } + /** * * @@ -1353,6 +1376,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu } return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); } + /** * * @@ -1374,6 +1398,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu } public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + /** * * @@ -1392,6 +1417,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu public boolean hasApiViolationReason() { return reasonCase_ == 6; } + /** * * @@ -1413,6 +1439,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola } return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + /** * * @@ -1654,6 +1681,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1938,6 +1966,7 @@ public Builder clearReason() { private int bitField0_; private java.lang.Object bucket_ = ""; + /** * * @@ -1960,6 +1989,7 @@ public java.lang.String getBucket() { return (java.lang.String) ref; } } + /** * * @@ -1982,6 +2012,7 @@ public com.google.protobuf.ByteString getBucketBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2003,6 +2034,7 @@ public Builder setBucket(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2020,6 +2052,7 @@ public Builder clearBucket() { onChanged(); return this; } + /** * * @@ -2044,6 +2077,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { } private java.lang.Object objectName_ = ""; + /** * * @@ -2067,6 +2101,7 @@ public java.lang.String getObjectName() { return (java.lang.String) ref; } } + /** * * @@ -2090,6 +2125,7 @@ public com.google.protobuf.ByteString getObjectNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2112,6 +2148,7 @@ public Builder setObjectName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2130,6 +2167,7 @@ public Builder clearObjectName() { onChanged(); return this; } + /** * * @@ -2155,6 +2193,7 @@ public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { } private long objectGeneration_; + /** * * @@ -2171,6 +2210,7 @@ public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { public long getObjectGeneration() { return objectGeneration_; } + /** * * @@ -2191,6 +2231,7 @@ public Builder setObjectGeneration(long value) { onChanged(); return this; } + /** * * @@ -2215,6 +2256,7 @@ public Builder clearObjectGeneration() { com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> avroFailureReasonBuilder_; + /** * * @@ -2232,6 +2274,7 @@ public Builder clearObjectGeneration() { public boolean hasAvroFailureReason() { return reasonCase_ == 5; } + /** * * @@ -2259,6 +2302,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); } } + /** * * @@ -2284,6 +2328,7 @@ public Builder setAvroFailureReason( reasonCase_ = 5; return this; } + /** * * @@ -2306,6 +2351,7 @@ public Builder setAvroFailureReason( reasonCase_ = 5; return this; } + /** * * @@ -2343,6 +2389,7 @@ public Builder mergeAvroFailureReason( reasonCase_ = 5; return this; } + /** * * @@ -2370,6 +2417,7 @@ public Builder clearAvroFailureReason() { } return this; } + /** * * @@ -2385,6 +2433,7 @@ public Builder clearAvroFailureReason() { getAvroFailureReasonBuilder() { return getAvroFailureReasonFieldBuilder().getBuilder(); } + /** * * @@ -2408,6 +2457,7 @@ public Builder clearAvroFailureReason() { return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); } } + /** * * @@ -2449,6 +2499,7 @@ public Builder clearAvroFailureReason() { com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> apiViolationReasonBuilder_; + /** * * @@ -2467,6 +2518,7 @@ public Builder clearAvroFailureReason() { public boolean hasApiViolationReason() { return reasonCase_ == 6; } + /** * * @@ -2495,6 +2547,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -2521,6 +2574,7 @@ public Builder setApiViolationReason( reasonCase_ = 6; return this; } + /** * * @@ -2544,6 +2598,7 @@ public Builder setApiViolationReason( reasonCase_ = 6; return this; } + /** * * @@ -2582,6 +2637,7 @@ public Builder mergeApiViolationReason( reasonCase_ = 6; return this; } + /** * * @@ -2610,6 +2666,7 @@ public Builder clearApiViolationReason() { } return this; } + /** * * @@ -2626,6 +2683,7 @@ public Builder clearApiViolationReason() { getApiViolationReasonBuilder() { return getApiViolationReasonFieldBuilder().getBuilder(); } + /** * * @@ -2650,6 +2708,7 @@ public Builder clearApiViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -2771,6 +2830,7 @@ public interface AwsMskFailureReasonOrBuilder * @return The clusterArn. */ java.lang.String getClusterArn(); + /** * * @@ -2796,6 +2856,7 @@ public interface AwsMskFailureReasonOrBuilder * @return The kafkaTopic. */ java.lang.String getKafkaTopic(); + /** * * @@ -2851,6 +2912,7 @@ public interface AwsMskFailureReasonOrBuilder * @return Whether the apiViolationReason field is set. */ boolean hasApiViolationReason(); + /** * * @@ -2866,6 +2928,7 @@ public interface AwsMskFailureReasonOrBuilder * @return The apiViolationReason. */ com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** * * @@ -2883,6 +2946,7 @@ public interface AwsMskFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); } + /** * * @@ -2897,6 +2961,7 @@ public static final class AwsMskFailureReason extends com.google.protobuf.Genera // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) AwsMskFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + // Use AwsMskFailureReason.newBuilder() to construct. private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -2944,6 +3009,7 @@ public enum ReasonCase private ReasonCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -2978,6 +3044,7 @@ public ReasonCase getReasonCase() { @SuppressWarnings("serial") private volatile java.lang.Object clusterArn_ = ""; + /** * * @@ -3001,6 +3068,7 @@ public java.lang.String getClusterArn() { return s; } } + /** * * @@ -3029,6 +3097,7 @@ public com.google.protobuf.ByteString getClusterArnBytes() { @SuppressWarnings("serial") private volatile java.lang.Object kafkaTopic_ = ""; + /** * * @@ -3052,6 +3121,7 @@ public java.lang.String getKafkaTopic() { return s; } } + /** * * @@ -3078,6 +3148,7 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_ = 0L; + /** * * @@ -3096,6 +3167,7 @@ public long getPartitionId() { public static final int OFFSET_FIELD_NUMBER = 4; private long offset_ = 0L; + /** * * @@ -3114,6 +3186,7 @@ public long getOffset() { } public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** * * @@ -3132,6 +3205,7 @@ public long getOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -3153,6 +3227,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola } return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + /** * * @@ -3387,6 +3462,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -3666,6 +3742,7 @@ public Builder clearReason() { private int bitField0_; private java.lang.Object clusterArn_ = ""; + /** * * @@ -3688,6 +3765,7 @@ public java.lang.String getClusterArn() { return (java.lang.String) ref; } } + /** * * @@ -3710,6 +3788,7 @@ public com.google.protobuf.ByteString getClusterArnBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3731,6 +3810,7 @@ public Builder setClusterArn(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3748,6 +3828,7 @@ public Builder clearClusterArn() { onChanged(); return this; } + /** * * @@ -3772,6 +3853,7 @@ public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { } private java.lang.Object kafkaTopic_ = ""; + /** * * @@ -3794,6 +3876,7 @@ public java.lang.String getKafkaTopic() { return (java.lang.String) ref; } } + /** * * @@ -3816,6 +3899,7 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3837,6 +3921,7 @@ public Builder setKafkaTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3854,6 +3939,7 @@ public Builder clearKafkaTopic() { onChanged(); return this; } + /** * * @@ -3878,6 +3964,7 @@ public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { } private long partitionId_; + /** * * @@ -3893,6 +3980,7 @@ public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { public long getPartitionId() { return partitionId_; } + /** * * @@ -3912,6 +4000,7 @@ public Builder setPartitionId(long value) { onChanged(); return this; } + /** * * @@ -3931,6 +4020,7 @@ public Builder clearPartitionId() { } private long offset_; + /** * * @@ -3947,6 +4037,7 @@ public Builder clearPartitionId() { public long getOffset() { return offset_; } + /** * * @@ -3967,6 +4058,7 @@ public Builder setOffset(long value) { onChanged(); return this; } + /** * * @@ -3991,6 +4083,7 @@ public Builder clearOffset() { com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> apiViolationReasonBuilder_; + /** * * @@ -4009,6 +4102,7 @@ public Builder clearOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -4037,6 +4131,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -4063,6 +4158,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -4086,6 +4182,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -4124,6 +4221,7 @@ public Builder mergeApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -4152,6 +4250,7 @@ public Builder clearApiViolationReason() { } return this; } + /** * * @@ -4168,6 +4267,7 @@ public Builder clearApiViolationReason() { getApiViolationReasonBuilder() { return getApiViolationReasonFieldBuilder().getBuilder(); } + /** * * @@ -4192,6 +4292,7 @@ public Builder clearApiViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -4313,6 +4414,7 @@ public interface AzureEventHubsFailureReasonOrBuilder * @return The namespace. */ java.lang.String getNamespace(); + /** * * @@ -4338,6 +4440,7 @@ public interface AzureEventHubsFailureReasonOrBuilder * @return The eventHub. */ java.lang.String getEventHub(); + /** * * @@ -4393,6 +4496,7 @@ public interface AzureEventHubsFailureReasonOrBuilder * @return Whether the apiViolationReason field is set. */ boolean hasApiViolationReason(); + /** * * @@ -4408,6 +4512,7 @@ public interface AzureEventHubsFailureReasonOrBuilder * @return The apiViolationReason. */ com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** * * @@ -4426,6 +4531,7 @@ public interface AzureEventHubsFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase getReasonCase(); } + /** * * @@ -4441,6 +4547,7 @@ public static final class AzureEventHubsFailureReason // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) AzureEventHubsFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + // Use AzureEventHubsFailureReason.newBuilder() to construct. private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -4488,6 +4595,7 @@ public enum ReasonCase private ReasonCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -4522,6 +4630,7 @@ public ReasonCase getReasonCase() { @SuppressWarnings("serial") private volatile java.lang.Object namespace_ = ""; + /** * * @@ -4545,6 +4654,7 @@ public java.lang.String getNamespace() { return s; } } + /** * * @@ -4573,6 +4683,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { @SuppressWarnings("serial") private volatile java.lang.Object eventHub_ = ""; + /** * * @@ -4596,6 +4707,7 @@ public java.lang.String getEventHub() { return s; } } + /** * * @@ -4622,6 +4734,7 @@ public com.google.protobuf.ByteString getEventHubBytes() { public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_ = 0L; + /** * * @@ -4640,6 +4753,7 @@ public long getPartitionId() { public static final int OFFSET_FIELD_NUMBER = 4; private long offset_ = 0L; + /** * * @@ -4658,6 +4772,7 @@ public long getOffset() { } public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** * * @@ -4676,6 +4791,7 @@ public long getOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -4697,6 +4813,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola } return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + /** * * @@ -4933,6 +5050,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -5218,6 +5336,7 @@ public Builder clearReason() { private int bitField0_; private java.lang.Object namespace_ = ""; + /** * * @@ -5240,6 +5359,7 @@ public java.lang.String getNamespace() { return (java.lang.String) ref; } } + /** * * @@ -5262,6 +5382,7 @@ public com.google.protobuf.ByteString getNamespaceBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -5283,6 +5404,7 @@ public Builder setNamespace(java.lang.String value) { onChanged(); return this; } + /** * * @@ -5300,6 +5422,7 @@ public Builder clearNamespace() { onChanged(); return this; } + /** * * @@ -5324,6 +5447,7 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { } private java.lang.Object eventHub_ = ""; + /** * * @@ -5346,6 +5470,7 @@ public java.lang.String getEventHub() { return (java.lang.String) ref; } } + /** * * @@ -5368,6 +5493,7 @@ public com.google.protobuf.ByteString getEventHubBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -5389,6 +5515,7 @@ public Builder setEventHub(java.lang.String value) { onChanged(); return this; } + /** * * @@ -5406,6 +5533,7 @@ public Builder clearEventHub() { onChanged(); return this; } + /** * * @@ -5430,6 +5558,7 @@ public Builder setEventHubBytes(com.google.protobuf.ByteString value) { } private long partitionId_; + /** * * @@ -5445,6 +5574,7 @@ public Builder setEventHubBytes(com.google.protobuf.ByteString value) { public long getPartitionId() { return partitionId_; } + /** * * @@ -5464,6 +5594,7 @@ public Builder setPartitionId(long value) { onChanged(); return this; } + /** * * @@ -5483,6 +5614,7 @@ public Builder clearPartitionId() { } private long offset_; + /** * * @@ -5499,6 +5631,7 @@ public Builder clearPartitionId() { public long getOffset() { return offset_; } + /** * * @@ -5519,6 +5652,7 @@ public Builder setOffset(long value) { onChanged(); return this; } + /** * * @@ -5543,6 +5677,7 @@ public Builder clearOffset() { com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> apiViolationReasonBuilder_; + /** * * @@ -5561,6 +5696,7 @@ public Builder clearOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -5589,6 +5725,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -5615,6 +5752,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -5638,6 +5776,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -5676,6 +5815,7 @@ public Builder mergeApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -5704,6 +5844,7 @@ public Builder clearApiViolationReason() { } return this; } + /** * * @@ -5720,6 +5861,7 @@ public Builder clearApiViolationReason() { getApiViolationReasonBuilder() { return getApiViolationReasonFieldBuilder().getBuilder(); } + /** * * @@ -5744,6 +5886,7 @@ public Builder clearApiViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -5866,6 +6009,7 @@ public interface ConfluentCloudFailureReasonOrBuilder * @return The clusterId. */ java.lang.String getClusterId(); + /** * * @@ -5891,6 +6035,7 @@ public interface ConfluentCloudFailureReasonOrBuilder * @return The kafkaTopic. */ java.lang.String getKafkaTopic(); + /** * * @@ -5946,6 +6091,7 @@ public interface ConfluentCloudFailureReasonOrBuilder * @return Whether the apiViolationReason field is set. */ boolean hasApiViolationReason(); + /** * * @@ -5961,6 +6107,7 @@ public interface ConfluentCloudFailureReasonOrBuilder * @return The apiViolationReason. */ com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + /** * * @@ -5979,6 +6126,7 @@ public interface ConfluentCloudFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase getReasonCase(); } + /** * * @@ -5994,6 +6142,7 @@ public static final class ConfluentCloudFailureReason // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) ConfluentCloudFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + // Use ConfluentCloudFailureReason.newBuilder() to construct. private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -6041,6 +6190,7 @@ public enum ReasonCase private ReasonCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -6075,6 +6225,7 @@ public ReasonCase getReasonCase() { @SuppressWarnings("serial") private volatile java.lang.Object clusterId_ = ""; + /** * * @@ -6098,6 +6249,7 @@ public java.lang.String getClusterId() { return s; } } + /** * * @@ -6126,6 +6278,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object kafkaTopic_ = ""; + /** * * @@ -6149,6 +6302,7 @@ public java.lang.String getKafkaTopic() { return s; } } + /** * * @@ -6175,6 +6329,7 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { public static final int PARTITION_ID_FIELD_NUMBER = 3; private long partitionId_ = 0L; + /** * * @@ -6193,6 +6348,7 @@ public long getPartitionId() { public static final int OFFSET_FIELD_NUMBER = 4; private long offset_ = 0L; + /** * * @@ -6211,6 +6367,7 @@ public long getOffset() { } public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + /** * * @@ -6229,6 +6386,7 @@ public long getOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -6250,6 +6408,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola } return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + /** * * @@ -6486,6 +6645,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -6771,6 +6931,7 @@ public Builder clearReason() { private int bitField0_; private java.lang.Object clusterId_ = ""; + /** * * @@ -6793,6 +6954,7 @@ public java.lang.String getClusterId() { return (java.lang.String) ref; } } + /** * * @@ -6815,6 +6977,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -6836,6 +6999,7 @@ public Builder setClusterId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -6853,6 +7017,7 @@ public Builder clearClusterId() { onChanged(); return this; } + /** * * @@ -6877,6 +7042,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object kafkaTopic_ = ""; + /** * * @@ -6899,6 +7065,7 @@ public java.lang.String getKafkaTopic() { return (java.lang.String) ref; } } + /** * * @@ -6921,6 +7088,7 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -6942,6 +7110,7 @@ public Builder setKafkaTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -6959,6 +7128,7 @@ public Builder clearKafkaTopic() { onChanged(); return this; } + /** * * @@ -6983,6 +7153,7 @@ public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { } private long partitionId_; + /** * * @@ -6998,6 +7169,7 @@ public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { public long getPartitionId() { return partitionId_; } + /** * * @@ -7017,6 +7189,7 @@ public Builder setPartitionId(long value) { onChanged(); return this; } + /** * * @@ -7036,6 +7209,7 @@ public Builder clearPartitionId() { } private long offset_; + /** * * @@ -7052,6 +7226,7 @@ public Builder clearPartitionId() { public long getOffset() { return offset_; } + /** * * @@ -7072,6 +7247,7 @@ public Builder setOffset(long value) { onChanged(); return this; } + /** * * @@ -7096,6 +7272,7 @@ public Builder clearOffset() { com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> apiViolationReasonBuilder_; + /** * * @@ -7114,6 +7291,7 @@ public Builder clearOffset() { public boolean hasApiViolationReason() { return reasonCase_ == 5; } + /** * * @@ -7142,6 +7320,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -7168,6 +7347,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -7191,6 +7371,7 @@ public Builder setApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -7229,6 +7410,7 @@ public Builder mergeApiViolationReason( reasonCase_ = 5; return this; } + /** * * @@ -7257,6 +7439,7 @@ public Builder clearApiViolationReason() { } return this; } + /** * * @@ -7273,6 +7456,7 @@ public Builder clearApiViolationReason() { getApiViolationReasonBuilder() { return getApiViolationReasonFieldBuilder().getBuilder(); } + /** * * @@ -7297,6 +7481,7 @@ public Builder clearApiViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } + /** * * @@ -7421,6 +7606,7 @@ public enum FailureCase private FailureCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -7461,6 +7647,7 @@ public FailureCase getFailureCase() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -7485,6 +7672,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -7514,6 +7702,7 @@ public com.google.protobuf.ByteString getTopicBytes() { @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; + /** * * @@ -7537,6 +7726,7 @@ public java.lang.String getErrorMessage() { return s; } } + /** * * @@ -7562,6 +7752,7 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } public static final int CLOUD_STORAGE_FAILURE_FIELD_NUMBER = 3; + /** * * @@ -7579,6 +7770,7 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { public boolean hasCloudStorageFailure() { return failureCase_ == 3; } + /** * * @@ -7599,6 +7791,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudSt } return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); } + /** * * @@ -7620,6 +7813,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudSt } public static final int AWS_MSK_FAILURE_FIELD_NUMBER = 4; + /** * * @@ -7637,6 +7831,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudSt public boolean hasAwsMskFailure() { return failureCase_ == 4; } + /** * * @@ -7657,6 +7852,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskF } return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } + /** * * @@ -7678,6 +7874,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskF } public static final int AZURE_EVENT_HUBS_FAILURE_FIELD_NUMBER = 5; + /** * * @@ -7695,6 +7892,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskF public boolean hasAzureEventHubsFailure() { return failureCase_ == 5; } + /** * * @@ -7717,6 +7915,7 @@ public boolean hasAzureEventHubsFailure() { return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason .getDefaultInstance(); } + /** * * @@ -7739,6 +7938,7 @@ public boolean hasAzureEventHubsFailure() { } public static final int CONFLUENT_CLOUD_FAILURE_FIELD_NUMBER = 6; + /** * * @@ -7756,6 +7956,7 @@ public boolean hasAzureEventHubsFailure() { public boolean hasConfluentCloudFailure() { return failureCase_ == 6; } + /** * * @@ -7778,6 +7979,7 @@ public boolean hasConfluentCloudFailure() { return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason .getDefaultInstance(); } + /** * * @@ -8040,6 +8242,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -8338,6 +8541,7 @@ public Builder clearFailure() { private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -8361,6 +8565,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -8384,6 +8589,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8406,6 +8612,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8424,6 +8631,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -8449,6 +8657,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private java.lang.Object errorMessage_ = ""; + /** * * @@ -8471,6 +8680,7 @@ public java.lang.String getErrorMessage() { return (java.lang.String) ref; } } + /** * * @@ -8493,6 +8703,7 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -8514,6 +8725,7 @@ public Builder setErrorMessage(java.lang.String value) { onChanged(); return this; } + /** * * @@ -8531,6 +8743,7 @@ public Builder clearErrorMessage() { onChanged(); return this; } + /** * * @@ -8559,6 +8772,7 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> cloudStorageFailureBuilder_; + /** * * @@ -8576,6 +8790,7 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { public boolean hasCloudStorageFailure() { return failureCase_ == 3; } + /** * * @@ -8603,6 +8818,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudSt return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); } } + /** * * @@ -8628,6 +8844,7 @@ public Builder setCloudStorageFailure( failureCase_ = 3; return this; } + /** * * @@ -8650,6 +8867,7 @@ public Builder setCloudStorageFailure( failureCase_ = 3; return this; } + /** * * @@ -8687,6 +8905,7 @@ public Builder mergeCloudStorageFailure( failureCase_ = 3; return this; } + /** * * @@ -8714,6 +8933,7 @@ public Builder clearCloudStorageFailure() { } return this; } + /** * * @@ -8729,6 +8949,7 @@ public Builder clearCloudStorageFailure() { getCloudStorageFailureBuilder() { return getCloudStorageFailureFieldBuilder().getBuilder(); } + /** * * @@ -8752,6 +8973,7 @@ public Builder clearCloudStorageFailure() { return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); } } + /** * * @@ -8793,6 +9015,7 @@ public Builder clearCloudStorageFailure() { com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder> awsMskFailureBuilder_; + /** * * @@ -8810,6 +9033,7 @@ public Builder clearCloudStorageFailure() { public boolean hasAwsMskFailure() { return failureCase_ == 4; } + /** * * @@ -8837,6 +9061,7 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskF return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } } + /** * * @@ -8862,6 +9087,7 @@ public Builder setAwsMskFailure( failureCase_ = 4; return this; } + /** * * @@ -8884,6 +9110,7 @@ public Builder setAwsMskFailure( failureCase_ = 4; return this; } + /** * * @@ -8921,6 +9148,7 @@ public Builder mergeAwsMskFailure( failureCase_ = 4; return this; } + /** * * @@ -8948,6 +9176,7 @@ public Builder clearAwsMskFailure() { } return this; } + /** * * @@ -8963,6 +9192,7 @@ public Builder clearAwsMskFailure() { getAwsMskFailureBuilder() { return getAwsMskFailureFieldBuilder().getBuilder(); } + /** * * @@ -8986,6 +9216,7 @@ public Builder clearAwsMskFailure() { return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } } + /** * * @@ -9027,6 +9258,7 @@ public Builder clearAwsMskFailure() { com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder> azureEventHubsFailureBuilder_; + /** * * @@ -9044,6 +9276,7 @@ public Builder clearAwsMskFailure() { public boolean hasAzureEventHubsFailure() { return failureCase_ == 5; } + /** * * @@ -9074,6 +9307,7 @@ public boolean hasAzureEventHubsFailure() { .getDefaultInstance(); } } + /** * * @@ -9099,6 +9333,7 @@ public Builder setAzureEventHubsFailure( failureCase_ = 5; return this; } + /** * * @@ -9122,6 +9357,7 @@ public Builder setAzureEventHubsFailure( failureCase_ = 5; return this; } + /** * * @@ -9160,6 +9396,7 @@ public Builder mergeAzureEventHubsFailure( failureCase_ = 5; return this; } + /** * * @@ -9187,6 +9424,7 @@ public Builder clearAzureEventHubsFailure() { } return this; } + /** * * @@ -9202,6 +9440,7 @@ public Builder clearAzureEventHubsFailure() { getAzureEventHubsFailureBuilder() { return getAzureEventHubsFailureFieldBuilder().getBuilder(); } + /** * * @@ -9226,6 +9465,7 @@ public Builder clearAzureEventHubsFailure() { .getDefaultInstance(); } } + /** * * @@ -9268,6 +9508,7 @@ public Builder clearAzureEventHubsFailure() { com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder> confluentCloudFailureBuilder_; + /** * * @@ -9285,6 +9526,7 @@ public Builder clearAzureEventHubsFailure() { public boolean hasConfluentCloudFailure() { return failureCase_ == 6; } + /** * * @@ -9315,6 +9557,7 @@ public boolean hasConfluentCloudFailure() { .getDefaultInstance(); } } + /** * * @@ -9340,6 +9583,7 @@ public Builder setConfluentCloudFailure( failureCase_ = 6; return this; } + /** * * @@ -9363,6 +9607,7 @@ public Builder setConfluentCloudFailure( failureCase_ = 6; return this; } + /** * * @@ -9401,6 +9646,7 @@ public Builder mergeConfluentCloudFailure( failureCase_ = 6; return this; } + /** * * @@ -9428,6 +9674,7 @@ public Builder clearConfluentCloudFailure() { } return this; } + /** * * @@ -9443,6 +9690,7 @@ public Builder clearConfluentCloudFailure() { getConfluentCloudFailureBuilder() { return getConfluentCloudFailureFieldBuilder().getBuilder(); } + /** * * @@ -9467,6 +9715,7 @@ public Builder clearConfluentCloudFailure() { .getDefaultInstance(); } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index b488636cf8f8..9fc268820945 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -37,6 +37,7 @@ public interface IngestionFailureEventOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -63,6 +64,7 @@ public interface IngestionFailureEventOrBuilder * @return The errorMessage. */ java.lang.String getErrorMessage(); + /** * * @@ -90,6 +92,7 @@ public interface IngestionFailureEventOrBuilder * @return Whether the cloudStorageFailure field is set. */ boolean hasCloudStorageFailure(); + /** * * @@ -104,6 +107,7 @@ public interface IngestionFailureEventOrBuilder * @return The cloudStorageFailure. */ com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure getCloudStorageFailure(); + /** * * @@ -132,6 +136,7 @@ public interface IngestionFailureEventOrBuilder * @return Whether the awsMskFailure field is set. */ boolean hasAwsMskFailure(); + /** * * @@ -146,6 +151,7 @@ public interface IngestionFailureEventOrBuilder * @return The awsMskFailure. */ com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getAwsMskFailure(); + /** * * @@ -174,6 +180,7 @@ public interface IngestionFailureEventOrBuilder * @return Whether the azureEventHubsFailure field is set. */ boolean hasAzureEventHubsFailure(); + /** * * @@ -188,6 +195,7 @@ public interface IngestionFailureEventOrBuilder * @return The azureEventHubsFailure. */ com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getAzureEventHubsFailure(); + /** * * @@ -216,6 +224,7 @@ public interface IngestionFailureEventOrBuilder * @return Whether the confluentCloudFailure field is set. */ boolean hasConfluentCloudFailure(); + /** * * @@ -230,6 +239,7 @@ public interface IngestionFailureEventOrBuilder * @return The confluentCloudFailure. */ com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getConfluentCloudFailure(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java index c205f528dc04..d4ab92c91f06 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java @@ -34,6 +34,7 @@ public final class JavaScriptUDF extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.JavaScriptUDF) JavaScriptUDFOrBuilder { private static final long serialVersionUID = 0L; + // Use JavaScriptUDF.newBuilder() to construct. private JavaScriptUDF(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object functionName_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getFunctionName() { return s; } } + /** * * @@ -122,6 +125,7 @@ public com.google.protobuf.ByteString getFunctionNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; + /** * * @@ -174,6 +178,7 @@ public java.lang.String getCode() { return s; } } + /** * * @@ -393,6 +398,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -591,6 +597,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object functionName_ = ""; + /** * * @@ -614,6 +621,7 @@ public java.lang.String getFunctionName() { return (java.lang.String) ref; } } + /** * * @@ -637,6 +645,7 @@ public com.google.protobuf.ByteString getFunctionNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -659,6 +668,7 @@ public Builder setFunctionName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -677,6 +687,7 @@ public Builder clearFunctionName() { onChanged(); return this; } + /** * * @@ -702,6 +713,7 @@ public Builder setFunctionNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object code_ = ""; + /** * * @@ -753,6 +765,7 @@ public java.lang.String getCode() { return (java.lang.String) ref; } } + /** * * @@ -804,6 +817,7 @@ public com.google.protobuf.ByteString getCodeBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -854,6 +868,7 @@ public Builder setCode(java.lang.String value) { onChanged(); return this; } + /** * * @@ -900,6 +915,7 @@ public Builder clearCode() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java index 80ba75c77f66..cb3ba0f4d989 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java @@ -37,6 +37,7 @@ public interface JavaScriptUDFOrBuilder * @return The functionName. */ java.lang.String getFunctionName(); + /** * * @@ -92,6 +93,7 @@ public interface JavaScriptUDFOrBuilder * @return The code. */ java.lang.String getCode(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 0ab2ac7a9923..4f7e414d83ba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -33,6 +33,7 @@ public final class ListSchemaRevisionsRequest extends com.google.protobuf.Genera // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsRequest) ListSchemaRevisionsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSchemaRevisionsRequest.newBuilder() to construct. private ListSchemaRevisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -122,6 +125,7 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; + /** * * @@ -139,6 +143,7 @@ public com.google.protobuf.ByteString getNameBytes() { public int getViewValue() { return view_; } + /** * * @@ -160,6 +165,7 @@ public com.google.pubsub.v1.SchemaView getView() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; + /** * * @@ -180,6 +186,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -204,6 +211,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -415,6 +423,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -640,6 +649,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -664,6 +674,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -688,6 +699,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -711,6 +723,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -730,6 +743,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -756,6 +770,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private int view_ = 0; + /** * * @@ -773,6 +788,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { public int getViewValue() { return view_; } + /** * * @@ -793,6 +809,7 @@ public Builder setViewValue(int value) { onChanged(); return this; } + /** * * @@ -811,6 +828,7 @@ public com.google.pubsub.v1.SchemaView getView() { com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } + /** * * @@ -834,6 +852,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { onChanged(); return this; } + /** * * @@ -855,6 +874,7 @@ public Builder clearView() { } private int pageSize_; + /** * * @@ -870,6 +890,7 @@ public Builder clearView() { public int getPageSize() { return pageSize_; } + /** * * @@ -889,6 +910,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -908,6 +930,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -931,6 +954,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -954,6 +978,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -976,6 +1001,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -994,6 +1020,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 681c829bdfed..812a4bfffaaa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -38,6 +38,7 @@ public interface ListSchemaRevisionsRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -67,6 +68,7 @@ public interface ListSchemaRevisionsRequestOrBuilder * @return The enum numeric value on the wire for view. */ int getViewValue(); + /** * * @@ -108,6 +110,7 @@ public interface ListSchemaRevisionsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 82638844890d..5774b60a79c2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -33,6 +33,7 @@ public final class ListSchemaRevisionsResponse extends com.google.protobuf.Gener // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsResponse) ListSchemaRevisionsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSchemaRevisionsResponse.newBuilder() to construct. private ListSchemaRevisionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List schemas_; + /** * * @@ -81,6 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getSchemasList() { return schemas_; } + /** * * @@ -94,6 +97,7 @@ public java.util.List getSchemasList() { public java.util.List getSchemasOrBuilderList() { return schemas_; } + /** * * @@ -107,6 +111,7 @@ public java.util.List getSchemas public int getSchemasCount() { return schemas_.size(); } + /** * * @@ -120,6 +125,7 @@ public int getSchemasCount() { public com.google.pubsub.v1.Schema getSchemas(int index) { return schemas_.get(index); } + /** * * @@ -138,6 +144,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -162,6 +169,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -357,6 +365,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -632,6 +641,7 @@ public java.util.List getSchemasList() { return schemasBuilder_.getMessageList(); } } + /** * * @@ -648,6 +658,7 @@ public int getSchemasCount() { return schemasBuilder_.getCount(); } } + /** * * @@ -664,6 +675,7 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { return schemasBuilder_.getMessage(index); } } + /** * * @@ -686,6 +698,7 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -705,6 +718,7 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builder } return this; } + /** * * @@ -727,6 +741,7 @@ public Builder addSchemas(com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -749,6 +764,7 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -768,6 +784,7 @@ public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { } return this; } + /** * * @@ -787,6 +804,7 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builder } return this; } + /** * * @@ -806,6 +824,7 @@ public Builder addAllSchemas(java.lang.Iterable getSchemasBuilderList } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -968,6 +995,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -991,6 +1019,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1013,6 +1042,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1031,6 +1061,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index de9f891d811a..01008b7a9fc8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -34,6 +34,7 @@ public interface ListSchemaRevisionsResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ java.util.List getSchemasList(); + /** * * @@ -44,6 +45,7 @@ public interface ListSchemaRevisionsResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ com.google.pubsub.v1.Schema getSchemas(int index); + /** * * @@ -54,6 +56,7 @@ public interface ListSchemaRevisionsResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ int getSchemasCount(); + /** * * @@ -64,6 +67,7 @@ public interface ListSchemaRevisionsResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ java.util.List getSchemasOrBuilderList(); + /** * * @@ -88,6 +92,7 @@ public interface ListSchemaRevisionsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index 0c98c0d844a0..bfc18011bea3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -33,6 +33,7 @@ public final class ListSchemasRequest extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasRequest) ListSchemasRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSchemasRequest.newBuilder() to construct. private ListSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; + /** * * @@ -95,6 +97,7 @@ public java.lang.String getParent() { return s; } } + /** * * @@ -124,6 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; + /** * * @@ -141,6 +145,7 @@ public com.google.protobuf.ByteString getParentBytes() { public int getViewValue() { return view_; } + /** * * @@ -162,6 +167,7 @@ public com.google.pubsub.v1.SchemaView getView() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; + /** * * @@ -182,6 +188,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -207,6 +214,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -418,6 +426,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -642,6 +651,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object parent_ = ""; + /** * * @@ -667,6 +677,7 @@ public java.lang.String getParent() { return (java.lang.String) ref; } } + /** * * @@ -692,6 +703,7 @@ public com.google.protobuf.ByteString getParentBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -716,6 +728,7 @@ public Builder setParent(java.lang.String value) { onChanged(); return this; } + /** * * @@ -736,6 +749,7 @@ public Builder clearParent() { onChanged(); return this; } + /** * * @@ -763,6 +777,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } private int view_ = 0; + /** * * @@ -780,6 +795,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { public int getViewValue() { return view_; } + /** * * @@ -800,6 +816,7 @@ public Builder setViewValue(int value) { onChanged(); return this; } + /** * * @@ -818,6 +835,7 @@ public com.google.pubsub.v1.SchemaView getView() { com.google.pubsub.v1.SchemaView result = com.google.pubsub.v1.SchemaView.forNumber(view_); return result == null ? com.google.pubsub.v1.SchemaView.UNRECOGNIZED : result; } + /** * * @@ -841,6 +859,7 @@ public Builder setView(com.google.pubsub.v1.SchemaView value) { onChanged(); return this; } + /** * * @@ -862,6 +881,7 @@ public Builder clearView() { } private int pageSize_; + /** * * @@ -877,6 +897,7 @@ public Builder clearView() { public int getPageSize() { return pageSize_; } + /** * * @@ -896,6 +917,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -915,6 +937,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -939,6 +962,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -963,6 +987,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -986,6 +1011,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1005,6 +1031,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 050de522923f..b02a46248311 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListSchemasRequestOrBuilder * @return The parent. */ java.lang.String getParent(); + /** * * @@ -69,6 +70,7 @@ public interface ListSchemasRequestOrBuilder * @return The enum numeric value on the wire for view. */ int getViewValue(); + /** * * @@ -111,6 +113,7 @@ public interface ListSchemasRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 1ac5143e8d6d..0295fbf55914 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -33,6 +33,7 @@ public final class ListSchemasResponse extends com.google.protobuf.GeneratedMess // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasResponse) ListSchemasResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSchemasResponse.newBuilder() to construct. private ListSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List schemas_; + /** * * @@ -81,6 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getSchemasList() { return schemas_; } + /** * * @@ -94,6 +97,7 @@ public java.util.List getSchemasList() { public java.util.List getSchemasOrBuilderList() { return schemas_; } + /** * * @@ -107,6 +111,7 @@ public java.util.List getSchemas public int getSchemasCount() { return schemas_.size(); } + /** * * @@ -120,6 +125,7 @@ public int getSchemasCount() { public com.google.pubsub.v1.Schema getSchemas(int index) { return schemas_.get(index); } + /** * * @@ -138,6 +144,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -162,6 +169,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -356,6 +364,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -629,6 +638,7 @@ public java.util.List getSchemasList() { return schemasBuilder_.getMessageList(); } } + /** * * @@ -645,6 +655,7 @@ public int getSchemasCount() { return schemasBuilder_.getCount(); } } + /** * * @@ -661,6 +672,7 @@ public com.google.pubsub.v1.Schema getSchemas(int index) { return schemasBuilder_.getMessage(index); } } + /** * * @@ -683,6 +695,7 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -702,6 +715,7 @@ public Builder setSchemas(int index, com.google.pubsub.v1.Schema.Builder builder } return this; } + /** * * @@ -724,6 +738,7 @@ public Builder addSchemas(com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -746,6 +761,7 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -765,6 +781,7 @@ public Builder addSchemas(com.google.pubsub.v1.Schema.Builder builderForValue) { } return this; } + /** * * @@ -784,6 +801,7 @@ public Builder addSchemas(int index, com.google.pubsub.v1.Schema.Builder builder } return this; } + /** * * @@ -803,6 +821,7 @@ public Builder addAllSchemas(java.lang.Iterable getSchemasBuilderList } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -965,6 +992,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -988,6 +1016,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1010,6 +1039,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1028,6 +1058,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index dfe71b9a24a0..4074b7a2c395 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -34,6 +34,7 @@ public interface ListSchemasResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ java.util.List getSchemasList(); + /** * * @@ -44,6 +45,7 @@ public interface ListSchemasResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ com.google.pubsub.v1.Schema getSchemas(int index); + /** * * @@ -54,6 +56,7 @@ public interface ListSchemasResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ int getSchemasCount(); + /** * * @@ -64,6 +67,7 @@ public interface ListSchemasResponseOrBuilder * repeated .google.pubsub.v1.Schema schemas = 1; */ java.util.List getSchemasOrBuilderList(); + /** * * @@ -88,6 +92,7 @@ public interface ListSchemasResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 55485115b7a4..eb72cc74f07a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -33,6 +33,7 @@ public final class ListSnapshotsRequest extends com.google.protobuf.GeneratedMes // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsRequest) ListSnapshotsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSnapshotsRequest.newBuilder() to construct. private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getProject() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; + /** * * @@ -143,6 +147,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -168,6 +173,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -371,6 +377,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -582,6 +589,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object project_ = ""; + /** * * @@ -607,6 +615,7 @@ public java.lang.String getProject() { return (java.lang.String) ref; } } + /** * * @@ -632,6 +641,7 @@ public com.google.protobuf.ByteString getProjectBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -656,6 +666,7 @@ public Builder setProject(java.lang.String value) { onChanged(); return this; } + /** * * @@ -676,6 +687,7 @@ public Builder clearProject() { onChanged(); return this; } + /** * * @@ -703,6 +715,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { } private int pageSize_; + /** * * @@ -718,6 +731,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { public int getPageSize() { return pageSize_; } + /** * * @@ -737,6 +751,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -756,6 +771,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -780,6 +796,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -804,6 +821,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -827,6 +845,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -846,6 +865,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index e8711c1ef9e2..ce1882a870ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListSnapshotsRequestOrBuilder * @return The project. */ java.lang.String getProject(); + /** * * @@ -82,6 +83,7 @@ public interface ListSnapshotsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index bc58cb7c8c0c..1f663f3bd0c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -33,6 +33,7 @@ public final class ListSnapshotsResponse extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsResponse) ListSnapshotsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSnapshotsResponse.newBuilder() to construct. private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List snapshots_; + /** * * @@ -83,6 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getSnapshotsList() { return snapshots_; } + /** * * @@ -99,6 +102,7 @@ public java.util.List getSnapshotsList() { getSnapshotsOrBuilderList() { return snapshots_; } + /** * * @@ -114,6 +118,7 @@ public java.util.List getSnapshotsList() { public int getSnapshotsCount() { return snapshots_.size(); } + /** * * @@ -129,6 +134,7 @@ public int getSnapshotsCount() { public com.google.pubsub.v1.Snapshot getSnapshots(int index) { return snapshots_.get(index); } + /** * * @@ -149,6 +155,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -174,6 +181,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -370,6 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -645,6 +654,7 @@ public java.util.List getSnapshotsList() { return snapshotsBuilder_.getMessageList(); } } + /** * * @@ -663,6 +673,7 @@ public int getSnapshotsCount() { return snapshotsBuilder_.getCount(); } } + /** * * @@ -681,6 +692,7 @@ public com.google.pubsub.v1.Snapshot getSnapshots(int index) { return snapshotsBuilder_.getMessage(index); } } + /** * * @@ -705,6 +717,7 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot value) { } return this; } + /** * * @@ -726,6 +739,7 @@ public Builder setSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui } return this; } + /** * * @@ -750,6 +764,7 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot value) { } return this; } + /** * * @@ -774,6 +789,7 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot value) { } return this; } + /** * * @@ -795,6 +811,7 @@ public Builder addSnapshots(com.google.pubsub.v1.Snapshot.Builder builderForValu } return this; } + /** * * @@ -816,6 +833,7 @@ public Builder addSnapshots(int index, com.google.pubsub.v1.Snapshot.Builder bui } return this; } + /** * * @@ -838,6 +856,7 @@ public Builder addAllSnapshots( } return this; } + /** * * @@ -859,6 +878,7 @@ public Builder clearSnapshots() { } return this; } + /** * * @@ -880,6 +900,7 @@ public Builder removeSnapshots(int index) { } return this; } + /** * * @@ -894,6 +915,7 @@ public Builder removeSnapshots(int index) { public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder().getBuilder(index); } + /** * * @@ -912,6 +934,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { return snapshotsBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -931,6 +954,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { return java.util.Collections.unmodifiableList(snapshots_); } } + /** * * @@ -946,6 +970,7 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { return getSnapshotsFieldBuilder() .addBuilder(com.google.pubsub.v1.Snapshot.getDefaultInstance()); } + /** * * @@ -961,6 +986,7 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { return getSnapshotsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Snapshot.getDefaultInstance()); } + /** * * @@ -994,6 +1020,7 @@ public java.util.List getSnapshotsBuilder } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -1018,6 +1045,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -1042,6 +1070,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1065,6 +1094,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1084,6 +1114,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 5a20d8d2779a..34b81ac66533 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -36,6 +36,7 @@ public interface ListSnapshotsResponseOrBuilder * */ java.util.List getSnapshotsList(); + /** * * @@ -48,6 +49,7 @@ public interface ListSnapshotsResponseOrBuilder * */ com.google.pubsub.v1.Snapshot getSnapshots(int index); + /** * * @@ -60,6 +62,7 @@ public interface ListSnapshotsResponseOrBuilder * */ int getSnapshotsCount(); + /** * * @@ -72,6 +75,7 @@ public interface ListSnapshotsResponseOrBuilder * */ java.util.List getSnapshotsOrBuilderList(); + /** * * @@ -99,6 +103,7 @@ public interface ListSnapshotsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 846b75ce1159..d3848c784ade 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -33,6 +33,7 @@ public final class ListSubscriptionsRequest extends com.google.protobuf.Generate // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsRequest) ListSubscriptionsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSubscriptionsRequest.newBuilder() to construct. private ListSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getProject() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; + /** * * @@ -143,6 +147,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -168,6 +173,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -371,6 +377,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -582,6 +589,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object project_ = ""; + /** * * @@ -607,6 +615,7 @@ public java.lang.String getProject() { return (java.lang.String) ref; } } + /** * * @@ -632,6 +641,7 @@ public com.google.protobuf.ByteString getProjectBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -656,6 +666,7 @@ public Builder setProject(java.lang.String value) { onChanged(); return this; } + /** * * @@ -676,6 +687,7 @@ public Builder clearProject() { onChanged(); return this; } + /** * * @@ -703,6 +715,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { } private int pageSize_; + /** * * @@ -718,6 +731,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { public int getPageSize() { return pageSize_; } + /** * * @@ -737,6 +751,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -756,6 +771,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -780,6 +796,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -804,6 +821,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -827,6 +845,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -846,6 +865,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index ff862e1c3b00..5532ede62926 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListSubscriptionsRequestOrBuilder * @return The project. */ java.lang.String getProject(); + /** * * @@ -82,6 +83,7 @@ public interface ListSubscriptionsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 0a3209dd1abf..c8a74e5d9206 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -33,6 +33,7 @@ public final class ListSubscriptionsResponse extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsResponse) ListSubscriptionsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListSubscriptionsResponse.newBuilder() to construct. private ListSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List subscriptions_; + /** * * @@ -83,6 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getSubscriptionsList() { return subscriptions_; } + /** * * @@ -99,6 +102,7 @@ public java.util.List getSubscriptionsList() getSubscriptionsOrBuilderList() { return subscriptions_; } + /** * * @@ -114,6 +118,7 @@ public java.util.List getSubscriptionsList() public int getSubscriptionsCount() { return subscriptions_.size(); } + /** * * @@ -129,6 +134,7 @@ public int getSubscriptionsCount() { public com.google.pubsub.v1.Subscription getSubscriptions(int index) { return subscriptions_.get(index); } + /** * * @@ -149,6 +155,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -174,6 +181,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -370,6 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -646,6 +655,7 @@ public java.util.List getSubscriptionsList() return subscriptionsBuilder_.getMessageList(); } } + /** * * @@ -664,6 +674,7 @@ public int getSubscriptionsCount() { return subscriptionsBuilder_.getCount(); } } + /** * * @@ -682,6 +693,7 @@ public com.google.pubsub.v1.Subscription getSubscriptions(int index) { return subscriptionsBuilder_.getMessage(index); } } + /** * * @@ -706,6 +718,7 @@ public Builder setSubscriptions(int index, com.google.pubsub.v1.Subscription val } return this; } + /** * * @@ -728,6 +741,7 @@ public Builder setSubscriptions( } return this; } + /** * * @@ -752,6 +766,7 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription value) { } return this; } + /** * * @@ -776,6 +791,7 @@ public Builder addSubscriptions(int index, com.google.pubsub.v1.Subscription val } return this; } + /** * * @@ -797,6 +813,7 @@ public Builder addSubscriptions(com.google.pubsub.v1.Subscription.Builder builde } return this; } + /** * * @@ -819,6 +836,7 @@ public Builder addSubscriptions( } return this; } + /** * * @@ -841,6 +859,7 @@ public Builder addAllSubscriptions( } return this; } + /** * * @@ -862,6 +881,7 @@ public Builder clearSubscriptions() { } return this; } + /** * * @@ -883,6 +903,7 @@ public Builder removeSubscriptions(int index) { } return this; } + /** * * @@ -897,6 +918,7 @@ public Builder removeSubscriptions(int index) { public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int index) { return getSubscriptionsFieldBuilder().getBuilder(index); } + /** * * @@ -915,6 +937,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int return subscriptionsBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -934,6 +957,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int return java.util.Collections.unmodifiableList(subscriptions_); } } + /** * * @@ -949,6 +973,7 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { return getSubscriptionsFieldBuilder() .addBuilder(com.google.pubsub.v1.Subscription.getDefaultInstance()); } + /** * * @@ -964,6 +989,7 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int ind return getSubscriptionsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Subscription.getDefaultInstance()); } + /** * * @@ -1000,6 +1026,7 @@ public java.util.List getSubscription } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -1024,6 +1051,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -1048,6 +1076,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1071,6 +1100,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1090,6 +1120,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 579430360dbd..253b956ad6e3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -36,6 +36,7 @@ public interface ListSubscriptionsResponseOrBuilder * */ java.util.List getSubscriptionsList(); + /** * * @@ -48,6 +49,7 @@ public interface ListSubscriptionsResponseOrBuilder * */ com.google.pubsub.v1.Subscription getSubscriptions(int index); + /** * * @@ -60,6 +62,7 @@ public interface ListSubscriptionsResponseOrBuilder * */ int getSubscriptionsCount(); + /** * * @@ -73,6 +76,7 @@ public interface ListSubscriptionsResponseOrBuilder */ java.util.List getSubscriptionsOrBuilderList(); + /** * * @@ -100,6 +104,7 @@ public interface ListSubscriptionsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index bf2ba67382d4..164ae38f78d8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -33,6 +33,7 @@ public final class ListTopicSnapshotsRequest extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsRequest) ListTopicSnapshotsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicSnapshotsRequest.newBuilder() to construct. private ListTopicSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; + /** * * @@ -143,6 +147,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -168,6 +173,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -371,6 +377,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -582,6 +589,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -607,6 +615,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -632,6 +641,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -656,6 +666,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -676,6 +687,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -703,6 +715,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private int pageSize_; + /** * * @@ -718,6 +731,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { public int getPageSize() { return pageSize_; } + /** * * @@ -737,6 +751,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -756,6 +771,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -780,6 +796,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -804,6 +821,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -827,6 +845,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -846,6 +865,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 6eddb25e0fd8..ef628af35ed1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListTopicSnapshotsRequestOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -82,6 +83,7 @@ public interface ListTopicSnapshotsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index c57f292fc08f..453f43f88479 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -33,6 +33,7 @@ public final class ListTopicSnapshotsResponse extends com.google.protobuf.Genera // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsResponse) ListTopicSnapshotsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicSnapshotsResponse.newBuilder() to construct. private ListTopicSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList snapshots_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -83,6 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getSnapshotsList() { return snapshots_; } + /** * * @@ -97,6 +100,7 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { public int getSnapshotsCount() { return snapshots_.size(); } + /** * * @@ -112,6 +116,7 @@ public int getSnapshotsCount() { public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } + /** * * @@ -132,6 +137,7 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -157,6 +163,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -358,6 +365,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -572,6 +580,7 @@ private void ensureSnapshotsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -587,6 +596,7 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { snapshots_.makeImmutable(); return snapshots_; } + /** * * @@ -601,6 +611,7 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { public int getSnapshotsCount() { return snapshots_.size(); } + /** * * @@ -616,6 +627,7 @@ public int getSnapshotsCount() { public java.lang.String getSnapshots(int index) { return snapshots_.get(index); } + /** * * @@ -631,6 +643,7 @@ public java.lang.String getSnapshots(int index) { public com.google.protobuf.ByteString getSnapshotsBytes(int index) { return snapshots_.getByteString(index); } + /** * * @@ -654,6 +667,7 @@ public Builder setSnapshots(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -676,6 +690,7 @@ public Builder addSnapshots(java.lang.String value) { onChanged(); return this; } + /** * * @@ -695,6 +710,7 @@ public Builder addAllSnapshots(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -713,6 +729,7 @@ public Builder clearSnapshots() { onChanged(); return this; } + /** * * @@ -738,6 +755,7 @@ public Builder addSnapshotsBytes(com.google.protobuf.ByteString value) { } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -762,6 +780,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -786,6 +805,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -809,6 +829,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -828,6 +849,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index c9cb3d6b1a70..9a7e4a3a4733 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -36,6 +36,7 @@ public interface ListTopicSnapshotsResponseOrBuilder * @return A list containing the snapshots. */ java.util.List getSnapshotsList(); + /** * * @@ -48,6 +49,7 @@ public interface ListTopicSnapshotsResponseOrBuilder * @return The count of snapshots. */ int getSnapshotsCount(); + /** * * @@ -61,6 +63,7 @@ public interface ListTopicSnapshotsResponseOrBuilder * @return The snapshots at the given index. */ java.lang.String getSnapshots(int index); + /** * * @@ -89,6 +92,7 @@ public interface ListTopicSnapshotsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index d9420dffc6e6..84af5e75c434 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -33,6 +33,7 @@ public final class ListTopicSubscriptionsRequest extends com.google.protobuf.Gen // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsRequest) ListTopicSubscriptionsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicSubscriptionsRequest.newBuilder() to construct. private ListTopicSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; + /** * * @@ -143,6 +147,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -168,6 +173,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -371,6 +377,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -583,6 +590,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -608,6 +616,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -633,6 +642,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -657,6 +667,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -677,6 +688,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -704,6 +716,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private int pageSize_; + /** * * @@ -719,6 +732,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { public int getPageSize() { return pageSize_; } + /** * * @@ -738,6 +752,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -757,6 +772,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -781,6 +797,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -805,6 +822,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -828,6 +846,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -847,6 +866,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index d389accaffe8..c8338efee729 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListTopicSubscriptionsRequestOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -82,6 +83,7 @@ public interface ListTopicSubscriptionsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 08dd87b28b40..d712636ba570 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -33,6 +33,7 @@ public final class ListTopicSubscriptionsResponse extends com.google.protobuf.Ge // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsResponse) ListTopicSubscriptionsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicSubscriptionsResponse.newBuilder() to construct. private ListTopicSubscriptionsResponse( com.google.protobuf.GeneratedMessageV3.Builder builder) { @@ -70,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList subscriptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -87,6 +89,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getSubscriptionsList() { return subscriptions_; } + /** * * @@ -104,6 +107,7 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { public int getSubscriptionsCount() { return subscriptions_.size(); } + /** * * @@ -122,6 +126,7 @@ public int getSubscriptionsCount() { public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } + /** * * @@ -145,6 +150,7 @@ public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -170,6 +176,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -371,6 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -585,6 +593,7 @@ private void ensureSubscriptionsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -603,6 +612,7 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { subscriptions_.makeImmutable(); return subscriptions_; } + /** * * @@ -620,6 +630,7 @@ public com.google.protobuf.ProtocolStringList getSubscriptionsList() { public int getSubscriptionsCount() { return subscriptions_.size(); } + /** * * @@ -638,6 +649,7 @@ public int getSubscriptionsCount() { public java.lang.String getSubscriptions(int index) { return subscriptions_.get(index); } + /** * * @@ -656,6 +668,7 @@ public java.lang.String getSubscriptions(int index) { public com.google.protobuf.ByteString getSubscriptionsBytes(int index) { return subscriptions_.getByteString(index); } + /** * * @@ -682,6 +695,7 @@ public Builder setSubscriptions(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -707,6 +721,7 @@ public Builder addSubscriptions(java.lang.String value) { onChanged(); return this; } + /** * * @@ -729,6 +744,7 @@ public Builder addAllSubscriptions(java.lang.Iterable values) onChanged(); return this; } + /** * * @@ -750,6 +766,7 @@ public Builder clearSubscriptions() { onChanged(); return this; } + /** * * @@ -778,6 +795,7 @@ public Builder addSubscriptionsBytes(com.google.protobuf.ByteString value) { } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -802,6 +820,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -826,6 +845,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -849,6 +869,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -868,6 +889,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 279a179a60f7..c39777756fd3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -39,6 +39,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * @return A list containing the subscriptions. */ java.util.List getSubscriptionsList(); + /** * * @@ -54,6 +55,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * @return The count of subscriptions. */ int getSubscriptionsCount(); + /** * * @@ -70,6 +72,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * @return The subscriptions at the given index. */ java.lang.String getSubscriptions(int index); + /** * * @@ -101,6 +104,7 @@ public interface ListTopicSubscriptionsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 592003e4382a..5e617e58173e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -33,6 +33,7 @@ public final class ListTopicsRequest extends com.google.protobuf.GeneratedMessag // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsRequest) ListTopicsRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicsRequest.newBuilder() to construct. private ListTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getProject() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; + /** * * @@ -143,6 +147,7 @@ public int getPageSize() { @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; + /** * * @@ -168,6 +173,7 @@ public java.lang.String getPageToken() { return s; } } + /** * * @@ -370,6 +376,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -581,6 +588,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object project_ = ""; + /** * * @@ -606,6 +614,7 @@ public java.lang.String getProject() { return (java.lang.String) ref; } } + /** * * @@ -631,6 +640,7 @@ public com.google.protobuf.ByteString getProjectBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -655,6 +665,7 @@ public Builder setProject(java.lang.String value) { onChanged(); return this; } + /** * * @@ -675,6 +686,7 @@ public Builder clearProject() { onChanged(); return this; } + /** * * @@ -702,6 +714,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { } private int pageSize_; + /** * * @@ -717,6 +730,7 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { public int getPageSize() { return pageSize_; } + /** * * @@ -736,6 +750,7 @@ public Builder setPageSize(int value) { onChanged(); return this; } + /** * * @@ -755,6 +770,7 @@ public Builder clearPageSize() { } private java.lang.Object pageToken_ = ""; + /** * * @@ -779,6 +795,7 @@ public java.lang.String getPageToken() { return (java.lang.String) ref; } } + /** * * @@ -803,6 +820,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -826,6 +844,7 @@ public Builder setPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -845,6 +864,7 @@ public Builder clearPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 6334aae4c59b..6c13f04400ad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ListTopicsRequestOrBuilder * @return The project. */ java.lang.String getProject(); + /** * * @@ -82,6 +83,7 @@ public interface ListTopicsRequestOrBuilder * @return The pageToken. */ java.lang.String getPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 1c54ae35d89b..2747f09435e4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -33,6 +33,7 @@ public final class ListTopicsResponse extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsResponse) ListTopicsResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ListTopicsResponse.newBuilder() to construct. private ListTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List topics_; + /** * * @@ -82,6 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getTopicsList() { return topics_; } + /** * * @@ -96,6 +99,7 @@ public java.util.List getTopicsList() { public java.util.List getTopicsOrBuilderList() { return topics_; } + /** * * @@ -110,6 +114,7 @@ public java.util.List getTopicsOr public int getTopicsCount() { return topics_.size(); } + /** * * @@ -124,6 +129,7 @@ public int getTopicsCount() { public com.google.pubsub.v1.Topic getTopics(int index) { return topics_.get(index); } + /** * * @@ -143,6 +149,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicsOrBuilder(int index) { @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; + /** * * @@ -167,6 +174,7 @@ public java.lang.String getNextPageToken() { return s; } } + /** * * @@ -361,6 +369,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -634,6 +643,7 @@ public java.util.List getTopicsList() { return topicsBuilder_.getMessageList(); } } + /** * * @@ -651,6 +661,7 @@ public int getTopicsCount() { return topicsBuilder_.getCount(); } } + /** * * @@ -668,6 +679,7 @@ public com.google.pubsub.v1.Topic getTopics(int index) { return topicsBuilder_.getMessage(index); } } + /** * * @@ -691,6 +703,7 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic value) { } return this; } + /** * * @@ -711,6 +724,7 @@ public Builder setTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo } return this; } + /** * * @@ -734,6 +748,7 @@ public Builder addTopics(com.google.pubsub.v1.Topic value) { } return this; } + /** * * @@ -757,6 +772,7 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic value) { } return this; } + /** * * @@ -777,6 +793,7 @@ public Builder addTopics(com.google.pubsub.v1.Topic.Builder builderForValue) { } return this; } + /** * * @@ -797,6 +814,7 @@ public Builder addTopics(int index, com.google.pubsub.v1.Topic.Builder builderFo } return this; } + /** * * @@ -817,6 +835,7 @@ public Builder addAllTopics(java.lang.Iterable getTopicsOr return java.util.Collections.unmodifiableList(topics_); } } + /** * * @@ -917,6 +941,7 @@ public java.util.List getTopicsOr public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { return getTopicsFieldBuilder().addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); } + /** * * @@ -931,6 +956,7 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { return getTopicsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Topic.getDefaultInstance()); } + /** * * @@ -963,6 +989,7 @@ public java.util.List getTopicsBuilderList() } private java.lang.Object nextPageToken_ = ""; + /** * * @@ -986,6 +1013,7 @@ public java.lang.String getNextPageToken() { return (java.lang.String) ref; } } + /** * * @@ -1009,6 +1037,7 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1031,6 +1060,7 @@ public Builder setNextPageToken(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1049,6 +1079,7 @@ public Builder clearNextPageToken() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index ef5341c96726..b1f27028ed4a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -35,6 +35,7 @@ public interface ListTopicsResponseOrBuilder * */ java.util.List getTopicsList(); + /** * * @@ -46,6 +47,7 @@ public interface ListTopicsResponseOrBuilder * */ com.google.pubsub.v1.Topic getTopics(int index); + /** * * @@ -57,6 +59,7 @@ public interface ListTopicsResponseOrBuilder * */ int getTopicsCount(); + /** * * @@ -68,6 +71,7 @@ public interface ListTopicsResponseOrBuilder * */ java.util.List getTopicsOrBuilderList(); + /** * * @@ -93,6 +97,7 @@ public interface ListTopicsResponseOrBuilder * @return The nextPageToken. */ java.lang.String getNextPageToken(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 5846d2918b6c..af6d1f8b55a7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -33,6 +33,7 @@ public final class MessageStoragePolicy extends com.google.protobuf.GeneratedMes // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageStoragePolicy) MessageStoragePolicyOrBuilder { private static final long serialVersionUID = 0L; + // Use MessageStoragePolicy.newBuilder() to construct. private MessageStoragePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -89,6 +91,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() { return allowedPersistenceRegions_; } + /** * * @@ -110,6 +113,7 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } + /** * * @@ -132,6 +136,7 @@ public int getAllowedPersistenceRegionsCount() { public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } + /** * * @@ -157,6 +162,7 @@ public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int inde public static final int ENFORCE_IN_TRANSIT_FIELD_NUMBER = 2; private boolean enforceInTransit_ = false; + /** * * @@ -354,6 +360,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -566,6 +573,7 @@ private void ensureAllowedPersistenceRegionsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -588,6 +596,7 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() allowedPersistenceRegions_.makeImmutable(); return allowedPersistenceRegions_; } + /** * * @@ -609,6 +618,7 @@ public com.google.protobuf.ProtocolStringList getAllowedPersistenceRegionsList() public int getAllowedPersistenceRegionsCount() { return allowedPersistenceRegions_.size(); } + /** * * @@ -631,6 +641,7 @@ public int getAllowedPersistenceRegionsCount() { public java.lang.String getAllowedPersistenceRegions(int index) { return allowedPersistenceRegions_.get(index); } + /** * * @@ -653,6 +664,7 @@ public java.lang.String getAllowedPersistenceRegions(int index) { public com.google.protobuf.ByteString getAllowedPersistenceRegionsBytes(int index) { return allowedPersistenceRegions_.getByteString(index); } + /** * * @@ -683,6 +695,7 @@ public Builder setAllowedPersistenceRegions(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -712,6 +725,7 @@ public Builder addAllowedPersistenceRegions(java.lang.String value) { onChanged(); return this; } + /** * * @@ -738,6 +752,7 @@ public Builder addAllAllowedPersistenceRegions(java.lang.Iterable getAllowedPersistenceRegionsList(); + /** * * @@ -62,6 +63,7 @@ public interface MessageStoragePolicyOrBuilder * @return The count of allowedPersistenceRegions. */ int getAllowedPersistenceRegionsCount(); + /** * * @@ -82,6 +84,7 @@ public interface MessageStoragePolicyOrBuilder * @return The allowedPersistenceRegions at the given index. */ java.lang.String getAllowedPersistenceRegions(int index); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index 692b933598cb..ff57a28b7041 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -33,6 +33,7 @@ public final class MessageTransform extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageTransform) MessageTransformOrBuilder { private static final long serialVersionUID = 0L; + // Use MessageTransform.newBuilder() to construct. private MessageTransform(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -77,6 +78,7 @@ public enum TransformCase private TransformCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -108,6 +110,7 @@ public TransformCase getTransformCase() { } public static final int JAVASCRIPT_UDF_FIELD_NUMBER = 2; + /** * * @@ -126,6 +129,7 @@ public TransformCase getTransformCase() { public boolean hasJavascriptUdf() { return transformCase_ == 2; } + /** * * @@ -147,6 +151,7 @@ public com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf() { } return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); } + /** * * @@ -169,6 +174,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { public static final int ENABLED_FIELD_NUMBER = 3; private boolean enabled_ = false; + /** * * @@ -191,6 +197,7 @@ public boolean getEnabled() { public static final int DISABLED_FIELD_NUMBER = 4; private boolean disabled_ = false; + /** * * @@ -398,6 +405,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -641,6 +649,7 @@ public Builder clearTransform() { com.google.pubsub.v1.JavaScriptUDF.Builder, com.google.pubsub.v1.JavaScriptUDFOrBuilder> javascriptUdfBuilder_; + /** * * @@ -659,6 +668,7 @@ public Builder clearTransform() { public boolean hasJavascriptUdf() { return transformCase_ == 2; } + /** * * @@ -687,6 +697,7 @@ public com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf() { return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); } } + /** * * @@ -712,6 +723,7 @@ public Builder setJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF value) { transformCase_ = 2; return this; } + /** * * @@ -734,6 +746,7 @@ public Builder setJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF.Builder build transformCase_ = 2; return this; } + /** * * @@ -769,6 +782,7 @@ public Builder mergeJavascriptUdf(com.google.pubsub.v1.JavaScriptUDF value) { transformCase_ = 2; return this; } + /** * * @@ -797,6 +811,7 @@ public Builder clearJavascriptUdf() { } return this; } + /** * * @@ -812,6 +827,7 @@ public Builder clearJavascriptUdf() { public com.google.pubsub.v1.JavaScriptUDF.Builder getJavascriptUdfBuilder() { return getJavascriptUdfFieldBuilder().getBuilder(); } + /** * * @@ -835,6 +851,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); } } + /** * * @@ -870,6 +887,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { } private boolean enabled_; + /** * * @@ -889,6 +907,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { public boolean getEnabled() { return enabled_; } + /** * * @@ -912,6 +931,7 @@ public Builder setEnabled(boolean value) { onChanged(); return this; } + /** * * @@ -935,6 +955,7 @@ public Builder clearEnabled() { } private boolean disabled_; + /** * * @@ -951,6 +972,7 @@ public Builder clearEnabled() { public boolean getDisabled() { return disabled_; } + /** * * @@ -971,6 +993,7 @@ public Builder setDisabled(boolean value) { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 39dbe4062d51..8970aabb5179 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -39,6 +39,7 @@ public interface MessageTransformOrBuilder * @return Whether the javascriptUdf field is set. */ boolean hasJavascriptUdf(); + /** * * @@ -54,6 +55,7 @@ public interface MessageTransformOrBuilder * @return The javascriptUdf. */ com.google.pubsub.v1.JavaScriptUDF getJavascriptUdf(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index e03117116f39..2da1f0f7c10a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -33,6 +33,7 @@ public final class ModifyAckDeadlineRequest extends com.google.protobuf.Generate // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyAckDeadlineRequest) ModifyAckDeadlineRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ModifyAckDeadlineRequest.newBuilder() to construct. private ModifyAckDeadlineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -126,6 +129,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -140,6 +144,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } + /** * * @@ -154,6 +159,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -169,6 +175,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -187,6 +194,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 3; private int ackDeadlineSeconds_ = 0; + /** * * @@ -395,6 +403,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -613,6 +622,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -638,6 +648,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -663,6 +674,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -687,6 +699,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -707,6 +720,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -742,6 +756,7 @@ private void ensureAckIdsIsMutable() { } bitField0_ |= 0x00000002; } + /** * * @@ -757,6 +772,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } + /** * * @@ -771,6 +787,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -786,6 +803,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -801,6 +819,7 @@ public java.lang.String getAckIds(int index) { public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } + /** * * @@ -824,6 +843,7 @@ public Builder setAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -846,6 +866,7 @@ public Builder addAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -865,6 +886,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -883,6 +905,7 @@ public Builder clearAckIds() { onChanged(); return this; } + /** * * @@ -908,6 +931,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { } private int ackDeadlineSeconds_; + /** * * @@ -931,6 +955,7 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } + /** * * @@ -958,6 +983,7 @@ public Builder setAckDeadlineSeconds(int value) { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index ede114b6e90b..40d4bd277961 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ModifyAckDeadlineRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -67,6 +68,7 @@ public interface ModifyAckDeadlineRequestOrBuilder * @return A list containing the ackIds. */ java.util.List getAckIdsList(); + /** * * @@ -79,6 +81,7 @@ public interface ModifyAckDeadlineRequestOrBuilder * @return The count of ackIds. */ int getAckIdsCount(); + /** * * @@ -92,6 +95,7 @@ public interface ModifyAckDeadlineRequestOrBuilder * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 74224f5d1179..e45a2e6b620e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -33,6 +33,7 @@ public final class ModifyPushConfigRequest extends com.google.protobuf.Generated // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyPushConfigRequest) ModifyPushConfigRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ModifyPushConfigRequest.newBuilder() to construct. private ModifyPushConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int PUSH_CONFIG_FIELD_NUMBER = 2; private com.google.pubsub.v1.PushConfig pushConfig_; + /** * * @@ -144,6 +148,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public boolean hasPushConfig() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -165,6 +170,7 @@ public boolean hasPushConfig() { public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } + /** * * @@ -358,6 +364,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -570,6 +577,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -595,6 +603,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -620,6 +629,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -644,6 +654,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -664,6 +675,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -696,6 +708,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_; + /** * * @@ -716,6 +729,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { public boolean hasPushConfig() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -742,6 +756,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfigBuilder_.getMessage(); } } + /** * * @@ -770,6 +785,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { onChanged(); return this; } + /** * * @@ -795,6 +811,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV onChanged(); return this; } + /** * * @@ -828,6 +845,7 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { } return this; } + /** * * @@ -853,6 +871,7 @@ public Builder clearPushConfig() { onChanged(); return this; } + /** * * @@ -873,6 +892,7 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { onChanged(); return getPushConfigFieldBuilder().getBuilder(); } + /** * * @@ -897,6 +917,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { : pushConfig_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 8ac64d9d5014..ac58d9a794af 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ModifyPushConfigRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -73,6 +74,7 @@ public interface ModifyPushConfigRequestOrBuilder * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); + /** * * @@ -91,6 +93,7 @@ public interface ModifyPushConfigRequestOrBuilder * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java index 6703c9690cb0..8d05cda1a26f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java @@ -33,6 +33,7 @@ public final class PlatformLogsSettings extends com.google.protobuf.GeneratedMes // @@protoc_insertion_point(message_implements:google.pubsub.v1.PlatformLogsSettings) PlatformLogsSettingsOrBuilder { private static final long serialVersionUID = 0L; + // Use PlatformLogsSettings.newBuilder() to construct. private PlatformLogsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -146,6 +147,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * SEVERITY_UNSPECIFIED = 0; */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; + /** * * @@ -156,6 +158,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * DISABLED = 1; */ public static final int DISABLED_VALUE = 1; + /** * * @@ -166,6 +169,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * DEBUG = 2; */ public static final int DEBUG_VALUE = 2; + /** * * @@ -176,6 +180,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * INFO = 3; */ public static final int INFO_VALUE = 3; + /** * * @@ -186,6 +191,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * WARNING = 4; */ public static final int WARNING_VALUE = 4; + /** * * @@ -288,6 +294,7 @@ private Severity(int value) { public static final int SEVERITY_FIELD_NUMBER = 1; private int severity_ = 0; + /** * * @@ -305,6 +312,7 @@ private Severity(int value) { public int getSeverityValue() { return severity_; } + /** * * @@ -488,6 +496,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -669,6 +678,7 @@ public Builder mergeFrom( private int bitField0_; private int severity_ = 0; + /** * * @@ -686,6 +696,7 @@ public Builder mergeFrom( public int getSeverityValue() { return severity_; } + /** * * @@ -706,6 +717,7 @@ public Builder setSeverityValue(int value) { onChanged(); return this; } + /** * * @@ -727,6 +739,7 @@ public com.google.pubsub.v1.PlatformLogsSettings.Severity getSeverity() { ? com.google.pubsub.v1.PlatformLogsSettings.Severity.UNRECOGNIZED : result; } + /** * * @@ -750,6 +763,7 @@ public Builder setSeverity(com.google.pubsub.v1.PlatformLogsSettings.Severity va onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java index e03a44ad40e2..0e28b70ffd6f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java @@ -38,6 +38,7 @@ public interface PlatformLogsSettingsOrBuilder * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index b840d49fca3b..7c829056ddc9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -33,6 +33,7 @@ public final class PublishRequest extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishRequest) PublishRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use PublishRequest.newBuilder() to construct. private PublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -125,6 +128,7 @@ public com.google.protobuf.ByteString getTopicBytes() { @SuppressWarnings("serial") private java.util.List messages_; + /** * * @@ -140,6 +144,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public java.util.List getMessagesList() { return messages_; } + /** * * @@ -156,6 +161,7 @@ public java.util.List getMessagesList() { getMessagesOrBuilderList() { return messages_; } + /** * * @@ -171,6 +177,7 @@ public java.util.List getMessagesList() { public int getMessagesCount() { return messages_.size(); } + /** * * @@ -186,6 +193,7 @@ public int getMessagesCount() { public com.google.pubsub.v1.PubsubMessage getMessages(int index) { return messages_.get(index); } + /** * * @@ -370,6 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -612,6 +621,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object topic_ = ""; + /** * * @@ -637,6 +647,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -662,6 +673,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -686,6 +698,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -706,6 +719,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -766,6 +780,7 @@ public java.util.List getMessagesList() { return messagesBuilder_.getMessageList(); } } + /** * * @@ -784,6 +799,7 @@ public int getMessagesCount() { return messagesBuilder_.getCount(); } } + /** * * @@ -802,6 +818,7 @@ public com.google.pubsub.v1.PubsubMessage getMessages(int index) { return messagesBuilder_.getMessage(index); } } + /** * * @@ -826,6 +843,7 @@ public Builder setMessages(int index, com.google.pubsub.v1.PubsubMessage value) } return this; } + /** * * @@ -848,6 +866,7 @@ public Builder setMessages( } return this; } + /** * * @@ -872,6 +891,7 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage value) { } return this; } + /** * * @@ -896,6 +916,7 @@ public Builder addMessages(int index, com.google.pubsub.v1.PubsubMessage value) } return this; } + /** * * @@ -917,6 +938,7 @@ public Builder addMessages(com.google.pubsub.v1.PubsubMessage.Builder builderFor } return this; } + /** * * @@ -939,6 +961,7 @@ public Builder addMessages( } return this; } + /** * * @@ -961,6 +984,7 @@ public Builder addAllMessages( } return this; } + /** * * @@ -982,6 +1006,7 @@ public Builder clearMessages() { } return this; } + /** * * @@ -1003,6 +1028,7 @@ public Builder removeMessages(int index) { } return this; } + /** * * @@ -1017,6 +1043,7 @@ public Builder removeMessages(int index) { public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder(int index) { return getMessagesFieldBuilder().getBuilder(index); } + /** * * @@ -1035,6 +1062,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int inde return messagesBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -1054,6 +1082,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int inde return java.util.Collections.unmodifiableList(messages_); } } + /** * * @@ -1069,6 +1098,7 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder() { return getMessagesFieldBuilder() .addBuilder(com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } + /** * * @@ -1084,6 +1114,7 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder(int index) return getMessagesFieldBuilder() .addBuilder(index, com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 9a2d623ae6d7..86816c3a1eb9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface PublishRequestOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -67,6 +68,7 @@ public interface PublishRequestOrBuilder * */ java.util.List getMessagesList(); + /** * * @@ -79,6 +81,7 @@ public interface PublishRequestOrBuilder * */ com.google.pubsub.v1.PubsubMessage getMessages(int index); + /** * * @@ -91,6 +94,7 @@ public interface PublishRequestOrBuilder * */ int getMessagesCount(); + /** * * @@ -103,6 +107,7 @@ public interface PublishRequestOrBuilder * */ java.util.List getMessagesOrBuilderList(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index c39c3e5671b6..82fdddcdcdeb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -33,6 +33,7 @@ public final class PublishResponse extends com.google.protobuf.GeneratedMessageV // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishResponse) PublishResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use PublishResponse.newBuilder() to construct. private PublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -84,6 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getMessageIdsList() { return messageIds_; } + /** * * @@ -100,6 +103,7 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { public int getMessageIdsCount() { return messageIds_.size(); } + /** * * @@ -117,6 +121,7 @@ public int getMessageIdsCount() { public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } + /** * * @@ -299,6 +304,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -496,6 +502,7 @@ private void ensureMessageIdsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -513,6 +520,7 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { messageIds_.makeImmutable(); return messageIds_; } + /** * * @@ -529,6 +537,7 @@ public com.google.protobuf.ProtocolStringList getMessageIdsList() { public int getMessageIdsCount() { return messageIds_.size(); } + /** * * @@ -546,6 +555,7 @@ public int getMessageIdsCount() { public java.lang.String getMessageIds(int index) { return messageIds_.get(index); } + /** * * @@ -563,6 +573,7 @@ public java.lang.String getMessageIds(int index) { public com.google.protobuf.ByteString getMessageIdsBytes(int index) { return messageIds_.getByteString(index); } + /** * * @@ -588,6 +599,7 @@ public Builder setMessageIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -612,6 +624,7 @@ public Builder addMessageIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -633,6 +646,7 @@ public Builder addAllMessageIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -653,6 +667,7 @@ public Builder clearMessageIds() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index d5a3f1c93912..a25181e58340 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -38,6 +38,7 @@ public interface PublishResponseOrBuilder * @return A list containing the messageIds. */ java.util.List getMessageIdsList(); + /** * * @@ -52,6 +53,7 @@ public interface PublishResponseOrBuilder * @return The count of messageIds. */ int getMessageIdsCount(); + /** * * @@ -67,6 +69,7 @@ public interface PublishResponseOrBuilder * @return The messageIds at the given index. */ java.lang.String getMessageIds(int index); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index c2480df873aa..0a8c645d9797 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -40,6 +40,7 @@ public final class PubsubMessage extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.PubsubMessage) PubsubMessageOrBuilder { private static final long serialVersionUID = 0L; + // Use PubsubMessage.newBuilder() to construct. private PubsubMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -87,6 +88,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** * * @@ -130,6 +132,7 @@ private com.google.protobuf.MapField interna public int getAttributesCount() { return internalGetAttributes().getMap().size(); } + /** * * @@ -149,12 +152,14 @@ public boolean containsAttributes(java.lang.String key) { } return internalGetAttributes().getMap().containsKey(key); } + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } + /** * * @@ -171,6 +176,7 @@ public java.util.Map getAttributes() { public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } + /** * * @@ -194,6 +200,7 @@ public java.util.Map getAttributesMap() { java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -222,6 +229,7 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { @SuppressWarnings("serial") private volatile java.lang.Object messageId_ = ""; + /** * * @@ -248,6 +256,7 @@ public java.lang.String getMessageId() { return s; } } + /** * * @@ -277,6 +286,7 @@ public com.google.protobuf.ByteString getMessageIdBytes() { public static final int PUBLISH_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp publishTime_; + /** * * @@ -294,6 +304,7 @@ public com.google.protobuf.ByteString getMessageIdBytes() { public boolean hasPublishTime() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -311,6 +322,7 @@ public boolean hasPublishTime() { public com.google.protobuf.Timestamp getPublishTime() { return publishTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : publishTime_; } + /** * * @@ -331,6 +343,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { @SuppressWarnings("serial") private volatile java.lang.Object orderingKey_ = ""; + /** * * @@ -361,6 +374,7 @@ public java.lang.String getOrderingKey() { return s; } } + /** * * @@ -598,6 +612,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -886,6 +901,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + /** * * @@ -902,6 +918,7 @@ public Builder mergeFrom( public com.google.protobuf.ByteString getData() { return data_; } + /** * * @@ -924,6 +941,7 @@ public Builder setData(com.google.protobuf.ByteString value) { onChanged(); return this; } + /** * * @@ -971,6 +989,7 @@ public Builder clearData() { public int getAttributesCount() { return internalGetAttributes().getMap().size(); } + /** * * @@ -990,12 +1009,14 @@ public boolean containsAttributes(java.lang.String key) { } return internalGetAttributes().getMap().containsKey(key); } + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } + /** * * @@ -1012,6 +1033,7 @@ public java.util.Map getAttributes() { public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } + /** * * @@ -1035,6 +1057,7 @@ public java.util.Map getAttributesMap() { java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -1064,6 +1087,7 @@ public Builder clearAttributes() { internalGetMutableAttributes().getMutableMap().clear(); return this; } + /** * * @@ -1083,12 +1107,14 @@ public Builder removeAttributes(java.lang.String key) { internalGetMutableAttributes().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000002; return internalGetMutableAttributes().getMutableMap(); } + /** * * @@ -1112,6 +1138,7 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000002; return this; } + /** * * @@ -1131,6 +1158,7 @@ public Builder putAllAttributes(java.util.Map publishTimeBuilder_; + /** * * @@ -1273,6 +1306,7 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { public boolean hasPublishTime() { return ((bitField0_ & 0x00000008) != 0); } + /** * * @@ -1295,6 +1329,7 @@ public com.google.protobuf.Timestamp getPublishTime() { return publishTimeBuilder_.getMessage(); } } + /** * * @@ -1319,6 +1354,7 @@ public Builder setPublishTime(com.google.protobuf.Timestamp value) { onChanged(); return this; } + /** * * @@ -1340,6 +1376,7 @@ public Builder setPublishTime(com.google.protobuf.Timestamp.Builder builderForVa onChanged(); return this; } + /** * * @@ -1369,6 +1406,7 @@ public Builder mergePublishTime(com.google.protobuf.Timestamp value) { } return this; } + /** * * @@ -1390,6 +1428,7 @@ public Builder clearPublishTime() { onChanged(); return this; } + /** * * @@ -1406,6 +1445,7 @@ public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() { onChanged(); return getPublishTimeFieldBuilder().getBuilder(); } + /** * * @@ -1426,6 +1466,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { : publishTime_; } } + /** * * @@ -1455,6 +1496,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { } private java.lang.Object orderingKey_ = ""; + /** * * @@ -1484,6 +1526,7 @@ public java.lang.String getOrderingKey() { return (java.lang.String) ref; } } + /** * * @@ -1513,6 +1556,7 @@ public com.google.protobuf.ByteString getOrderingKeyBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1541,6 +1585,7 @@ public Builder setOrderingKey(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1565,6 +1610,7 @@ public Builder clearOrderingKey() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 0e159683a21d..aaa6bb857aae 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -51,6 +51,7 @@ public interface PubsubMessageOrBuilder * */ int getAttributesCount(); + /** * * @@ -64,9 +65,11 @@ public interface PubsubMessageOrBuilder * */ boolean containsAttributes(java.lang.String key); + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getAttributes(); + /** * * @@ -80,6 +83,7 @@ public interface PubsubMessageOrBuilder * */ java.util.Map getAttributesMap(); + /** * * @@ -97,6 +101,7 @@ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * @@ -126,6 +131,7 @@ java.lang.String getAttributesOrDefault( * @return The messageId. */ java.lang.String getMessageId(); + /** * * @@ -156,6 +162,7 @@ java.lang.String getAttributesOrDefault( * @return Whether the publishTime field is set. */ boolean hasPublishTime(); + /** * * @@ -170,6 +177,7 @@ java.lang.String getAttributesOrDefault( * @return The publishTime. */ com.google.protobuf.Timestamp getPublishTime(); + /** * * @@ -202,6 +210,7 @@ java.lang.String getAttributesOrDefault( * @return The orderingKey. */ java.lang.String getOrderingKey(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 6a8d54f74543..22c1a66bb48b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -357,404 +357,533 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n\035google/pubsub/v1/pubsub.proto\022\020google." + "\n" + + "\035google/pubsub/v1/pubsub.proto\022\020google." + "pubsub.v1\032\034google/api/annotations.proto\032" + "\027google/api/client.proto\032\037google/api/fie" + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\032\036google/protobuf/duration.proto\032\033go" - + "ogle/protobuf/empty.proto\032 google/protob" - + "uf/field_mask.proto\032\037google/protobuf/tim" - + "estamp.proto\032\035google/pubsub/v1/schema.pr" - + "oto\"a\n\024MessageStoragePolicy\022(\n\033allowed_p" - + "ersistence_regions\030\001 \003(\tB\003\340A\001\022\037\n\022enforce" - + "_in_transit\030\002 \001(\010B\003\340A\001\"\270\001\n\016SchemaSetting" - + "s\0224\n\006schema\030\001 \001(\tB$\340A\002\372A\036\n\034pubsub.google" - + "apis.com/Schema\0221\n\010encoding\030\002 \001(\0162\032.goog" - + "le.pubsub.v1.EncodingB\003\340A\001\022\036\n\021first_revi" - + "sion_id\030\003 \001(\tB\003\340A\001\022\035\n\020last_revision_id\030\004" - + " \001(\tB\003\340A\001\"\310\027\n\033IngestionDataSourceSetting" - + "s\022T\n\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" - + "1.IngestionDataSourceSettings.AwsKinesis" - + "B\003\340A\001H\000\022X\n\rcloud_storage\030\002 \001(\0132:.google." - + "pubsub.v1.IngestionDataSourceSettings.Cl" - + "oudStorageB\003\340A\001H\000\022]\n\020azure_event_hubs\030\003 " - + "\001(\0132<.google.pubsub.v1.IngestionDataSour" - + "ceSettings.AzureEventHubsB\003\340A\001H\000\022L\n\007aws_" - + "msk\030\005 \001(\01324.google.pubsub.v1.IngestionDa" - + "taSourceSettings.AwsMskB\003\340A\001H\000\022\\\n\017conflu" - + "ent_cloud\030\006 \001(\0132<.google.pubsub.v1.Inges" - + "tionDataSourceSettings.ConfluentCloudB\003\340" - + "A\001H\000\022K\n\026platform_logs_settings\030\004 \001(\0132&.g" - + "oogle.pubsub.v1.PlatformLogsSettingsB\003\340A" - + "\001\032\352\002\n\nAwsKinesis\022R\n\005state\030\001 \001(\0162>.google" - + ".pubsub.v1.IngestionDataSourceSettings.A" - + "wsKinesis.StateB\003\340A\003\022\027\n\nstream_arn\030\002 \001(\t" - + "B\003\340A\002\022\031\n\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031\n\014aws_" - + "role_arn\030\004 \001(\tB\003\340A\002\022 \n\023gcp_service_accou" - + "nt\030\005 \001(\tB\003\340A\002\"\226\001\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\035\n\031KINESIS_PERMISSION" - + "_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DENIED\020\003" - + "\022\024\n\020STREAM_NOT_FOUND\020\004\022\026\n\022CONSUMER_NOT_F" - + "OUND\020\005\032\225\006\n\014CloudStorage\022T\n\005state\030\001 \001(\0162@" - + ".google.pubsub.v1.IngestionDataSourceSet" - + "tings.CloudStorage.StateB\003\340A\003\022\023\n\006bucket\030" - + "\002 \001(\tB\003\340A\001\022a\n\013text_format\030\003 \001(\0132E.google" - + ".pubsub.v1.IngestionDataSourceSettings.C" - + "loudStorage.TextFormatB\003\340A\001H\000\022a\n\013avro_fo" - + "rmat\030\004 \001(\0132E.google.pubsub.v1.IngestionD" - + "ataSourceSettings.CloudStorage.AvroForma" - + "tB\003\340A\001H\000\022n\n\022pubsub_avro_format\030\005 \001(\0132K.g" - + "oogle.pubsub.v1.IngestionDataSourceSetti" - + "ngs.CloudStorage.PubSubAvroFormatB\003\340A\001H\000" - + "\022C\n\032minimum_object_create_time\030\006 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\001\022\027\n\nmatch_g" - + "lob\030\t \001(\tB\003\340A\001\0327\n\nTextFormat\022\033\n\tdelimite" - + "r\030\001 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n_delimiter\032\014\n\nAvroF" - + "ormat\032\022\n\020PubSubAvroFormat\"\232\001\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022#\n\037CLOUD_" - + "STORAGE_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_P" - + "ERMISSION_DENIED\020\003\022\024\n\020BUCKET_NOT_FOUND\020\004" - + "\022\024\n\020TOO_MANY_OBJECTS\020\005B\016\n\014input_format\032\377" - + "\003\n\016AzureEventHubs\022V\n\005state\030\001 \001(\0162B.googl" - + "e.pubsub.v1.IngestionDataSourceSettings." - + "AzureEventHubs.StateB\003\340A\003\022\033\n\016resource_gr" - + "oup\030\002 \001(\tB\003\340A\001\022\026\n\tnamespace\030\003 \001(\tB\003\340A\001\022\026" - + "\n\tevent_hub\030\004 \001(\tB\003\340A\001\022\026\n\tclient_id\030\005 \001(" - + "\tB\003\340A\001\022\026\n\ttenant_id\030\006 \001(\tB\003\340A\001\022\034\n\017subscr" - + "iption_id\030\007 \001(\tB\003\340A\001\022 \n\023gcp_service_acco" - + "unt\030\010 \001(\tB\003\340A\001\"\327\001\n\005State\022\025\n\021STATE_UNSPEC" - + "IFIED\020\000\022\n\n\006ACTIVE\020\001\022 \n\034EVENT_HUBS_PERMIS" - + "SION_DENIED\020\002\022\035\n\031PUBLISH_PERMISSION_DENI" - + "ED\020\003\022\027\n\023NAMESPACE_NOT_FOUND\020\004\022\027\n\023EVENT_H" - + "UB_NOT_FOUND\020\005\022\032\n\026SUBSCRIPTION_NOT_FOUND" - + "\020\006\022\034\n\030RESOURCE_GROUP_NOT_FOUND\020\007\032\326\002\n\006Aws" - + "Msk\022N\n\005state\030\001 \001(\0162:.google.pubsub.v1.In" - + "gestionDataSourceSettings.AwsMsk.StateB\003" - + "\340A\003\022\030\n\013cluster_arn\030\002 \001(\tB\003\340A\002\022\022\n\005topic\030\003" - + " \001(\tB\003\340A\002\022\031\n\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n\023" - + "gcp_service_account\030\005 \001(\tB\003\340A\002\"\220\001\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\031\n\025M" - + "SK_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH_PERMIS" - + "SION_DENIED\020\003\022\025\n\021CLUSTER_NOT_FOUND\020\004\022\023\n\017" - + "TOPIC_NOT_FOUND\020\005\032\266\003\n\016ConfluentCloud\022V\n\005" - + "state\030\001 \001(\0162B.google.pubsub.v1.Ingestion" - + "DataSourceSettings.ConfluentCloud.StateB" - + "\003\340A\003\022\035\n\020bootstrap_server\030\002 \001(\tB\003\340A\002\022\027\n\nc" - + "luster_id\030\003 \001(\tB\003\340A\002\022\022\n\005topic\030\004 \001(\tB\003\340A\002" - + "\022\035\n\020identity_pool_id\030\005 \001(\tB\003\340A\002\022 \n\023gcp_s" - + "ervice_account\030\006 \001(\tB\003\340A\002\"\276\001\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022%\n!CONFLU" - + "ENT_CLOUD_PERMISSION_DENIED\020\002\022\035\n\031PUBLISH" - + "_PERMISSION_DENIED\020\003\022 \n\034UNREACHABLE_BOOT" - + "STRAP_SERVER\020\004\022\025\n\021CLUSTER_NOT_FOUND\020\005\022\023\n" - + "\017TOPIC_NOT_FOUND\020\006B\010\n\006source\"\277\001\n\024Platfor" - + "mLogsSettings\022F\n\010severity\030\001 \001(\0162/.google" - + ".pubsub.v1.PlatformLogsSettings.Severity" - + "B\003\340A\001\"_\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIE" - + "D\020\000\022\014\n\010DISABLED\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\013" - + "\n\007WARNING\020\004\022\t\n\005ERROR\020\005\"\211\014\n\025IngestionFail" - + "ureEvent\022\022\n\005topic\030\001 \001(\tB\003\340A\002\022\032\n\rerror_me" - + "ssage\030\002 \001(\tB\003\340A\002\022a\n\025cloud_storage_failur" - + "e\030\003 \001(\0132;.google.pubsub.v1.IngestionFail" - + "ureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n\017a" - + "ws_msk_failure\030\004 \001(\0132;.google.pubsub.v1." - + "IngestionFailureEvent.AwsMskFailureReaso" - + "nB\003\340A\001H\000\022l\n\030azure_event_hubs_failure\030\005 \001" - + "(\0132C.google.pubsub.v1.IngestionFailureEv" - + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k" - + "\n\027confluent_cloud_failure\030\006 \001(\0132C.google" - + ".pubsub.v1.IngestionFailureEvent.Conflue" - + "ntCloudFailureReasonB\003\340A\001H\000\032\024\n\022ApiViolat" - + "ionReason\032\023\n\021AvroFailureReason\032\256\002\n\023Cloud" - + "StorageFailure\022\023\n\006bucket\030\001 \001(\tB\003\340A\001\022\030\n\013o" - + "bject_name\030\002 \001(\tB\003\340A\001\022\036\n\021object_generati" - + "on\030\003 \001(\003B\003\340A\001\022]\n\023avro_failure_reason\030\005 \001" - + "(\01329.google.pubsub.v1.IngestionFailureEv" - + "ent.AvroFailureReasonB\003\340A\001H\000\022_\n\024api_viol" - + "ation_reason\030\006 \001(\0132:.google.pubsub.v1.In" - + "gestionFailureEvent.ApiViolationReasonB\003" - + "\340A\001H\000B\010\n\006reason\032\344\001\n\023AwsMskFailureReason\022" - + "\030\n\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n\013kafka_topic" - + "\030\002 \001(\tB\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023" - + "\n\006offset\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_rea" - + "son\030\005 \001(\0132:.google.pubsub.v1.IngestionFa" - + "ilureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n\006" - + "reason\032\350\001\n\033AzureEventHubsFailureReason\022\026" - + "\n\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n\tevent_hub\030\002 \001(" - + "\tB\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n\006off" - + "set\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_reason\030\005" - + " \001(\0132:.google.pubsub.v1.IngestionFailure" - + "Event.ApiViolationReasonB\003\340A\001H\000B\010\n\006reaso" - + "n\032\353\001\n\033ConfluentCloudFailureReason\022\027\n\nclu" - + "ster_id\030\001 \001(\tB\003\340A\001\022\030\n\013kafka_topic\030\002 \001(\tB" - + "\003\340A\001\022\031\n\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n\006offse" - + "t\030\004 \001(\003B\003\340A\001\022_\n\024api_violation_reason\030\005 \001" - + "(\0132:.google.pubsub.v1.IngestionFailureEv" - + "ent.ApiViolationReasonB\003\340A\001H\000B\010\n\006reasonB" - + "\t\n\007failure\">\n\rJavaScriptUDF\022\032\n\rfunction_" - + "name\030\001 \001(\tB\003\340A\002\022\021\n\004code\030\002 \001(\tB\003\340A\002\"\216\001\n\020M" - + "essageTransform\022>\n\016javascript_udf\030\002 \001(\0132" - + "\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022" - + "\026\n\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n\010disabled\030\004 \001(" - + "\010B\003\340A\001B\013\n\ttransform\"\216\006\n\005Topic\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\002\0228\n\006labels\030\002 \003(\0132#.google.pubsub" - + ".v1.Topic.LabelsEntryB\003\340A\001\022K\n\026message_st" - + "orage_policy\030\003 \001(\0132&.google.pubsub.v1.Me" - + "ssageStoragePolicyB\003\340A\001\022\031\n\014kms_key_name\030" - + "\005 \001(\tB\003\340A\001\022>\n\017schema_settings\030\006 \001(\0132 .go" - + "ogle.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\rsa" - + "tisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n\032message_retent" - + "ion_duration\030\010 \001(\0132\031.google.protobuf.Dur" - + "ationB\003\340A\001\0221\n\005state\030\t \001(\0162\035.google.pubsu" - + "b.v1.Topic.StateB\003\340A\003\022Z\n\036ingestion_data_" - + "source_settings\030\n \001(\0132-.google.pubsub.v1" - + ".IngestionDataSourceSettingsB\003\340A\001\022C\n\022mes" - + "sage_transforms\030\r \003(\0132\".google.pubsub.v1" - + ".MessageTransformB\003\340A\001\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"H\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\034\n\030ING" - + "ESTION_RESOURCE_ERROR\020\002:c\352A`\n\033pubsub.goo" - + "gleapis.com/Topic\022!projects/{project}/to" - + "pics/{topic}\022\017_deleted-topic_*\006topics2\005t" - + "opic\"\200\002\n\rPubsubMessage\022\021\n\004data\030\001 \001(\014B\003\340A" - + "\001\022H\n\nattributes\030\002 \003(\0132/.google.pubsub.v1" - + ".PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\nm" - + "essage_id\030\003 \001(\t\0220\n\014publish_time\030\004 \001(\0132\032." - + "google.protobuf.Timestamp\022\031\n\014ordering_ke" - + "y\030\005 \001(\tB\003\340A\001\0321\n\017AttributesEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"E\n\017GetTopicReque" - + "st\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.google" - + "apis.com/Topic\"w\n\022UpdateTopicRequest\022+\n\005" - + "topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A" - + "\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" - + ".FieldMaskB\003\340A\002\"|\n\016PublishRequest\0222\n\005top" - + "ic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.googleapis.com/" - + "Topic\0226\n\010messages\030\002 \003(\0132\037.google.pubsub." - + "v1.PubsubMessageB\003\340A\002\"+\n\017PublishResponse" - + "\022\030\n\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n\021ListTopic" - + "sRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloud" - + "resourcemanager.googleapis.com/Project\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" - + "(\tB\003\340A\001\"`\n\022ListTopicsResponse\022,\n\006topics\030" - + "\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n\017n" - + "ext_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n\035ListTopicS" - + "ubscriptionsRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372" - + "A\035\n\033pubsub.googleapis.com/Topic\022\026\n\tpage_" - + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" - + "\"\201\001\n\036ListTopicSubscriptionsResponse\022A\n\rs" - + "ubscriptions\030\001 \003(\tB*\340A\001\372A$\n\"pubsub.googl" - + "eapis.com/Subscription\022\034\n\017next_page_toke" - + "n\030\002 \001(\tB\003\340A\001\"\200\001\n\031ListTopicSnapshotsReque" - + "st\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub.google" - + "apis.com/Topic\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027" - + "\n\npage_token\030\003 \001(\tB\003\340A\001\"R\n\032ListTopicSnap" - + "shotsResponse\022\026\n\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n\022DeleteTop" - + "icRequest\0222\n\005topic\030\001 \001(\tB#\340A\002\372A\035\n\033pubsub" - + ".googleapis.com/Topic\"]\n\031DetachSubscript" - + "ionRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$" - + "\n\"pubsub.googleapis.com/Subscription\"\034\n\032" - + "DetachSubscriptionResponse\"\215\013\n\014Subscript" - + "ion\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\005topic\030\002 \001(\tB#\340" - + "A\002\372A\035\n\033pubsub.googleapis.com/Topic\0226\n\013pu" - + "sh_config\030\004 \001(\0132\034.google.pubsub.v1.PushC" - + "onfigB\003\340A\001\022>\n\017bigquery_config\030\022 \001(\0132 .go" - + "ogle.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n\024cl" - + "oud_storage_config\030\026 \001(\0132$.google.pubsub" - + ".v1.CloudStorageConfigB\003\340A\001\022!\n\024ack_deadl" - + "ine_seconds\030\005 \001(\005B\003\340A\001\022\"\n\025retain_acked_m" - + "essages\030\007 \001(\010B\003\340A\001\022B\n\032message_retention_" - + "duration\030\010 \001(\0132\031.google.protobuf.Duratio" - + "nB\003\340A\001\022?\n\006labels\030\t \003(\0132*.google.pubsub.v" - + "1.Subscription.LabelsEntryB\003\340A\001\022$\n\027enabl" - + "e_message_ordering\030\n \001(\010B\003\340A\001\022B\n\021expirat" - + "ion_policy\030\013 \001(\0132\".google.pubsub.v1.Expi" - + "rationPolicyB\003\340A\001\022\023\n\006filter\030\014 \001(\tB\003\340A\001\022C" - + "\n\022dead_letter_policy\030\r \001(\0132\".google.pubs" - + "ub.v1.DeadLetterPolicyB\003\340A\001\0228\n\014retry_pol" - + "icy\030\016 \001(\0132\035.google.pubsub.v1.RetryPolicy" - + "B\003\340A\001\022\025\n\010detached\030\017 \001(\010B\003\340A\001\022)\n\034enable_e" - + "xactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n topic" - + "_message_retention_duration\030\021 \001(\0132\031.goog" - + "le.protobuf.DurationB\003\340A\003\0228\n\005state\030\023 \001(\016" - + "2$.google.pubsub.v1.Subscription.StateB\003" - + "\340A\003\022i\n\037analytics_hub_subscription_info\030\027" - + " \001(\0132;.google.pubsub.v1.Subscription.Ana" - + "lyticsHubSubscriptionInfoB\003\340A\003\022C\n\022messag" - + "e_transforms\030\031 \003(\0132\".google.pubsub.v1.Me" - + "ssageTransformB\003\340A\001\032O\n\034AnalyticsHubSubsc" - + "riptionInfo\022\024\n\007listing\030\001 \001(\tB\003\340A\001\022\031\n\014sub" - + "scription\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\">\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\022\n\016RESOU" - + "RCE_ERROR\020\002:u\352Ar\n\"pubsub.googleapis.com/" - + "Subscription\022/projects/{project}/subscri" - + "ptions/{subscription}*\rsubscriptions2\014su" - + "bscription\"\177\n\013RetryPolicy\0227\n\017minimum_bac" - + "koff\030\001 \001(\0132\031.google.protobuf.DurationB\003\340" - + "A\001\0227\n\017maximum_backoff\030\002 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\001\"V\n\020DeadLetterPolicy\022" - + "\036\n\021dead_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n\025max_d" - + "elivery_attempts\030\002 \001(\005B\003\340A\001\"?\n\020Expiratio" - + "nPolicy\022+\n\003ttl\030\001 \001(\0132\031.google.protobuf.D" - + "urationB\003\340A\001\"\232\004\n\nPushConfig\022\032\n\rpush_endp" - + "oint\030\001 \001(\tB\003\340A\001\022E\n\nattributes\030\002 \003(\0132,.go" - + "ogle.pubsub.v1.PushConfig.AttributesEntr" - + "yB\003\340A\001\022A\n\noidc_token\030\003 \001(\0132&.google.pubs" - + "ub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n\016pub" - + "sub_wrapper\030\004 \001(\0132*.google.pubsub.v1.Pus" - + "hConfig.PubsubWrapperB\003\340A\001H\001\022A\n\nno_wrapp" - + "er\030\005 \001(\0132&.google.pubsub.v1.PushConfig.N" - + "oWrapperB\003\340A\001H\001\032F\n\tOidcToken\022\"\n\025service_" - + "account_email\030\001 \001(\tB\003\340A\001\022\025\n\010audience\030\002 \001" - + "(\tB\003\340A\001\032\017\n\rPubsubWrapper\032(\n\tNoWrapper\022\033\n" - + "\016write_metadata\030\001 \001(\010B\003\340A\001\0321\n\017Attributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\027\n" - + "\025authentication_methodB\t\n\007wrapper\"\216\003\n\016Bi" - + "gQueryConfig\022\022\n\005table\030\001 \001(\tB\003\340A\001\022\035\n\020use_" - + "topic_schema\030\002 \001(\010B\003\340A\001\022\033\n\016write_metadat" - + "a\030\003 \001(\010B\003\340A\001\022 \n\023drop_unknown_fields\030\004 \001(" - + "\010B\003\340A\001\022:\n\005state\030\005 \001(\0162&.google.pubsub.v1" - + ".BigQueryConfig.StateB\003\340A\003\022\035\n\020use_table_" - + "schema\030\006 \001(\010B\003\340A\001\022\"\n\025service_account_ema" - + "il\030\007 \001(\tB\003\340A\001\"\212\001\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISSION_DENIED\020" - + "\002\022\r\n\tNOT_FOUND\020\003\022\023\n\017SCHEMA_MISMATCH\020\004\022#\n" - + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\351\005\n\022C" - + "loudStorageConfig\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\034" - + "\n\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n\017filename" - + "_suffix\030\003 \001(\tB\003\340A\001\022%\n\030filename_datetime_" - + "format\030\n \001(\tB\003\340A\001\022K\n\013text_config\030\004 \001(\0132/" - + ".google.pubsub.v1.CloudStorageConfig.Tex" - + "tConfigB\003\340A\001H\000\022K\n\013avro_config\030\005 \001(\0132/.go" - + "ogle.pubsub.v1.CloudStorageConfig.AvroCo" - + "nfigB\003\340A\001H\000\0224\n\014max_duration\030\006 \001(\0132\031.goog" - + "le.protobuf.DurationB\003\340A\001\022\026\n\tmax_bytes\030\007" - + " \001(\003B\003\340A\001\022\031\n\014max_messages\030\010 \001(\003B\003\340A\001\022>\n\005" - + "state\030\t \001(\0162*.google.pubsub.v1.CloudStor" - + "ageConfig.StateB\003\340A\003\022\"\n\025service_account_" - + "email\030\013 \001(\tB\003\340A\001\032\014\n\nTextConfig\032H\n\nAvroCo" - + "nfig\022\033\n\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n\020use" - + "_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\025\n\021PERMISS" - + "ION_DENIED\020\002\022\r\n\tNOT_FOUND\020\003\022#\n\037IN_TRANSI" - + "T_LOCATION_RESTRICTION\020\004\022\023\n\017SCHEMA_MISMA" - + "TCH\020\005B\017\n\routput_format\"|\n\017ReceivedMessag" - + "e\022\023\n\006ack_id\030\001 \001(\tB\003\340A\001\0225\n\007message\030\002 \001(\0132" - + "\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" - + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n\026GetSubsc" - + "riptionRequest\022@\n\014subscription\030\001 \001(\tB*\340A" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\"\214\001\n\031UpdateSubscriptionRequest\0229\n\014subscr" - + "iption\030\001 \001(\0132\036.google.pubsub.v1.Subscrip" - + "tionB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\"\221\001\n\030ListSubscrip" - + "tionsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+c" - + "loudresourcemanager.googleapis.com/Proje" - + "ct\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" - + "\030\003 \001(\tB\003\340A\001\"u\n\031ListSubscriptionsResponse" - + "\022:\n\rsubscriptions\030\001 \003(\0132\036.google.pubsub." - + "v1.SubscriptionB\003\340A\001\022\034\n\017next_page_token\030" - + "\002 \001(\tB\003\340A\001\"]\n\031DeleteSubscriptionRequest\022" - + "@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.go" - + "ogleapis.com/Subscription\"\223\001\n\027ModifyPush" - + "ConfigRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002" - + "\372A$\n\"pubsub.googleapis.com/Subscription\022" - + "6\n\013push_config\030\002 \001(\0132\034.google.pubsub.v1." - + "PushConfigB\003\340A\002\"\215\001\n\013PullRequest\022@\n\014subsc" - + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" - + ".com/Subscription\022!\n\022return_immediately\030" - + "\002 \001(\010B\005\030\001\340A\001\022\031\n\014max_messages\030\003 \001(\005B\003\340A\002\"" - + "Q\n\014PullResponse\022A\n\021received_messages\030\001 \003" - + "(\0132!.google.pubsub.v1.ReceivedMessageB\003\340" - + "A\001\"\225\001\n\030ModifyAckDeadlineRequest\022@\n\014subsc" - + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" - + ".com/Subscription\022\024\n\007ack_ids\030\004 \003(\tB\003\340A\002\022" - + "!\n\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n\022Ac" - + "knowledgeRequest\022@\n\014subscription\030\001 \001(\tB*" - + "\340A\002\372A$\n\"pubsub.googleapis.com/Subscripti" - + "on\022\024\n\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n\024StreamingPu" - + "llRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022\024\n\007a" - + "ck_ids\030\002 \003(\tB\003\340A\001\022$\n\027modify_deadline_sec" - + "onds\030\003 \003(\005B\003\340A\001\022$\n\027modify_deadline_ack_i" - + "ds\030\004 \003(\tB\003\340A\001\022(\n\033stream_ack_deadline_sec" - + "onds\030\005 \001(\005B\003\340A\002\022\026\n\tclient_id\030\006 \001(\tB\003\340A\001\022" - + "%\n\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022\"" - + "\n\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n\025S" - + "treamingPullResponse\022A\n\021received_message" - + "s\030\001 \003(\0132!.google.pubsub.v1.ReceivedMessa" - + "geB\003\340A\001\022f\n\030acknowledge_confirmation\030\005 \001(" - + "\0132?.google.pubsub.v1.StreamingPullRespon" - + "se.AcknowledgeConfirmationB\003\340A\001\022t\n modif" - + "y_ack_deadline_confirmation\030\003 \001(\0132E.goog" - + "le.pubsub.v1.StreamingPullResponse.Modif" - + "yAckDeadlineConfirmationB\003\340A\001\022d\n\027subscri" - + "ption_properties\030\004 \001(\0132>.google.pubsub.v" - + "1.StreamingPullResponse.SubscriptionProp" - + "ertiesB\003\340A\001\032\224\001\n\027AcknowledgeConfirmation\022" - + "\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids" - + "\030\002 \003(\tB\003\340A\001\022\036\n\021unordered_ack_ids\030\003 \003(\tB\003" - + "\340A\001\022%\n\030temporary_failed_ack_ids\030\004 \003(\tB\003\340" - + "A\001\032z\n\035ModifyAckDeadlineConfirmation\022\024\n\007a" - + "ck_ids\030\001 \003(\tB\003\340A\001\022\034\n\017invalid_ack_ids\030\002 \003" - + "(\tB\003\340A\001\022%\n\030temporary_failed_ack_ids\030\003 \003(" - + "\tB\003\340A\001\032k\n\026SubscriptionProperties\022*\n\035exac" - + "tly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n\030" - + "message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n\025" - + "CreateSnapshotRequest\0224\n\004name\030\001 \001(\tB&\340A\002" - + "\372A \n\036pubsub.googleapis.com/Snapshot\022@\n\014s" - + "ubscription\030\002 \001(\tB*\340A\002\372A$\n\"pubsub.google" - + "apis.com/Subscription\022H\n\006labels\030\003 \003(\01323." - + "google.pubsub.v1.CreateSnapshotRequest.L" - + "abelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\025UpdateSnapsho" - + "tRequest\0221\n\010snapshot\030\001 \001(\0132\032.google.pubs" - + "ub.v1.SnapshotB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\002\"\326\002\n\010Sn" - + "apshot\022\021\n\004name\030\001 \001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\t" - + "B#\340A\001\372A\035\n\033pubsub.googleapis.com/Topic\0224\n" - + "\013expire_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\001\022;\n\006labels\030\004 \003(\0132&.google.pub" - + "sub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:" - + "a\352A^\n\036pubsub.googleapis.com/Snapshot\022\'pr" - + "ojects/{project}/snapshots/{snapshot}*\ts" - + "napshots2\010snapshot\"N\n\022GetSnapshotRequest" - + "\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googl" - + "eapis.com/Snapshot\"\215\001\n\024ListSnapshotsRequ" - + "est\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" - + "rcemanager.googleapis.com/Project\022\026\n\tpag" - + "e_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340" - + "A\001\"i\n\025ListSnapshotsResponse\0222\n\tsnapshots" - + "\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022" - + "\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteS" - + "napshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A " - + "\n\036pubsub.googleapis.com/Snapshot\"\306\001\n\013See" - + "kRequest\022@\n\014subscription\030\001 \001(\tB*\340A\002\372A$\n\"" - + "pubsub.googleapis.com/Subscription\022/\n\004ti" - + "me\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pubsub.go" - + "ogleapis.com/SnapshotH\000B\010\n\006target\"\016\n\014See" - + "kResponse2\270\013\n\tPublisher\022q\n\013CreateTopic\022\027" - + ".google.pubsub.v1.Topic\032\027.google.pubsub." - + "v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=proje" - + "cts/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022$.goo" - + "gle.pubsub.v1.UpdateTopicRequest\032\027.googl" + + "roto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/tim" + + "estamp.proto\032\035google/pubsub/v1/schema.proto\"a\n" + + "\024MessageStoragePolicy\022(\n" + + "\033allowed_persistence_regions\030\001 \003(\tB\003\340A\001\022\037\n" + + "\022enforce_in_transit\030\002 \001(\010B\003\340A\001\"\270\001\n" + + "\016SchemaSettings\0224\n" + + "\006schema\030\001 \001(\tB$\340A\002\372A\036\n" + + "\034pubsub.googleapis.com/Schema\0221\n" + + "\010encoding\030\002 \001(\0162\032.google.pubsub.v1.EncodingB\003\340A\001\022\036\n" + + "\021first_revision_id\030\003 \001(\tB\003\340A\001\022\035\n" + + "\020last_revision_id\030\004 \001(\tB\003\340A\001\"\310\027\n" + + "\033IngestionDataSourceSettings\022T\n" + + "\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" + + "1.IngestionDataSourceSettings.AwsKinesisB\003\340A\001H\000\022X\n\r" + + "cloud_storage\030\002 \001(\0132:.google." + + "pubsub.v1.IngestionDataSourceSettings.CloudStorageB\003\340A\001H\000\022]\n" + + "\020azure_event_hubs\030\003 " + + "\001(\0132<.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsB\003\340A\001H\000\022L\n" + + "\007aws_msk\030\005" + + " \001(\01324.google.pubsub.v1.IngestionDataSourceSettings.AwsMskB\003\340A\001H\000\022\\\n" + + "\017confluent_cloud\030\006 \001(\0132<.google.pubsub.v1.Inges" + + "tionDataSourceSettings.ConfluentCloudB\003\340A\001H\000\022K\n" + + "\026platform_logs_settings\030\004 \001(\0132&.g" + + "oogle.pubsub.v1.PlatformLogsSettingsB\003\340A\001\032\352\002\n\n" + + "AwsKinesis\022R\n" + + "\005state\030\001 \001(\0162>.google" + + ".pubsub.v1.IngestionDataSourceSettings.AwsKinesis.StateB\003\340A\003\022\027\n\n" + + "stream_arn\030\002 \001(\tB\003\340A\002\022\031\n" + + "\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031\n" + + "\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n" + + "\023gcp_service_account\030\005 \001(\tB\003\340A\002\"\226\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\035\n" + + "\031KINESIS_PERMISSION_DENIED\020\002\022\035\n" + + "\031PUBLISH_PERMISSION_DENIED\020\003\022\024\n" + + "\020STREAM_NOT_FOUND\020\004\022\026\n" + + "\022CONSUMER_NOT_FOUND\020\005\032\225\006\n" + + "\014CloudStorage\022T\n" + + "\005state\030\001 \001(\0162@" + + ".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.StateB\003\340A\003\022\023\n" + + "\006bucket\030\002 \001(\tB\003\340A\001\022a\n" + + "\013text_format\030\003 \001(\0132E.google" + + ".pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatB\003\340A\001H\000\022a\n" + + "\013avro_format\030\004 \001(\0132E.google.pubsub.v1.IngestionD" + + "ataSourceSettings.CloudStorage.AvroFormatB\003\340A\001H\000\022n\n" + + "\022pubsub_avro_format\030\005 \001(\0132K.google.pubsub.v1.IngestionDataSourceSetti" + + "ngs.CloudStorage.PubSubAvroFormatB\003\340A\001H\000\022C\n" + + "\032minimum_object_create_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022\027\n\n" + + "match_glob\030\t \001(\tB\003\340A\001\0327\n\n" + + "TextFormat\022\033\n" + + "\tdelimiter\030\001 \001(\tB\003\340A\001H\000\210\001\001B\014\n\n" + + "_delimiter\032\014\n\n" + + "AvroFormat\032\022\n" + + "\020PubSubAvroFormat\"\232\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022#\n" + + "\037CLOUD_STORAGE_PERMISSION_DENIED\020\002\022\035\n" + + "\031PUBLISH_PERMISSION_DENIED\020\003\022\024\n" + + "\020BUCKET_NOT_FOUND\020\004\022\024\n" + + "\020TOO_MANY_OBJECTS\020\005B\016\n" + + "\014input_format\032\377\003\n" + + "\016AzureEventHubs\022V\n" + + "\005state\030\001 \001(\0162B.googl" + + "e.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.StateB\003\340A\003\022\033\n" + + "\016resource_group\030\002 \001(\tB\003\340A\001\022\026\n" + + "\tnamespace\030\003 \001(\tB\003\340A\001\022\026\n" + + "\tevent_hub\030\004 \001(\tB\003\340A\001\022\026\n" + + "\tclient_id\030\005 \001(\tB\003\340A\001\022\026\n" + + "\ttenant_id\030\006 \001(\tB\003\340A\001\022\034\n" + + "\017subscription_id\030\007 \001(\tB\003\340A\001\022 \n" + + "\023gcp_service_account\030\010 \001(\tB\003\340A\001\"\327\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022 \n" + + "\034EVENT_HUBS_PERMISSION_DENIED\020\002\022\035\n" + + "\031PUBLISH_PERMISSION_DENIED\020\003\022\027\n" + + "\023NAMESPACE_NOT_FOUND\020\004\022\027\n" + + "\023EVENT_HUB_NOT_FOUND\020\005\022\032\n" + + "\026SUBSCRIPTION_NOT_FOUND\020\006\022\034\n" + + "\030RESOURCE_GROUP_NOT_FOUND\020\007\032\326\002\n" + + "\006AwsMsk\022N\n" + + "\005state\030\001 \001(\0162:.google.pubsub.v1.In" + + "gestionDataSourceSettings.AwsMsk.StateB\003\340A\003\022\030\n" + + "\013cluster_arn\030\002 \001(\tB\003\340A\002\022\022\n" + + "\005topic\030\003 \001(\tB\003\340A\002\022\031\n" + + "\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n" + + "\023gcp_service_account\030\005 \001(\tB\003\340A\002\"\220\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\031\n" + + "\025MSK_PERMISSION_DENIED\020\002\022\035\n" + + "\031PUBLISH_PERMISSION_DENIED\020\003\022\025\n" + + "\021CLUSTER_NOT_FOUND\020\004\022\023\n" + + "\017TOPIC_NOT_FOUND\020\005\032\266\003\n" + + "\016ConfluentCloud\022V\n" + + "\005state\030\001 \001(\0162B.google.pubsub.v1.Ingestion" + + "DataSourceSettings.ConfluentCloud.StateB\003\340A\003\022\035\n" + + "\020bootstrap_server\030\002 \001(\tB\003\340A\002\022\027\n\n" + + "cluster_id\030\003 \001(\tB\003\340A\002\022\022\n" + + "\005topic\030\004 \001(\tB\003\340A\002\022\035\n" + + "\020identity_pool_id\030\005 \001(\tB\003\340A\002\022 \n" + + "\023gcp_service_account\030\006 \001(\tB\003\340A\002\"\276\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022%\n" + + "!CONFLUENT_CLOUD_PERMISSION_DENIED\020\002\022\035\n" + + "\031PUBLISH_PERMISSION_DENIED\020\003\022 \n" + + "\034UNREACHABLE_BOOTSTRAP_SERVER\020\004\022\025\n" + + "\021CLUSTER_NOT_FOUND\020\005\022\023\n" + + "\017TOPIC_NOT_FOUND\020\006B\010\n" + + "\006source\"\277\001\n" + + "\024PlatformLogsSettings\022F\n" + + "\010severity\030\001 \001(\0162/.google" + + ".pubsub.v1.PlatformLogsSettings.SeverityB\003\340A\001\"_\n" + + "\010Severity\022\030\n" + + "\024SEVERITY_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\t\n" + + "\005DEBUG\020\002\022\010\n" + + "\004INFO\020\003\022\013\n" + + "\007WARNING\020\004\022\t\n" + + "\005ERROR\020\005\"\211\014\n" + + "\025IngestionFailureEvent\022\022\n" + + "\005topic\030\001 \001(\tB\003\340A\002\022\032\n\r" + + "error_message\030\002 \001(\tB\003\340A\002\022a\n" + + "\025cloud_storage_failure\030\003" + + " \001(\0132;.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n" + + "\017aws_msk_failure\030\004 \001(\0132;.google.pubsub.v1." + + "IngestionFailureEvent.AwsMskFailureReasonB\003\340A\001H\000\022l\n" + + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubsub.v1.IngestionFailureEv" + + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" + + "\027confluent_cloud_failure\030\006 \001(\0132C.google" + + ".pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\032\024\n" + + "\022ApiViolationReason\032\023\n" + + "\021AvroFailureReason\032\256\002\n" + + "\023CloudStorageFailure\022\023\n" + + "\006bucket\030\001 \001(\tB\003\340A\001\022\030\n" + + "\013object_name\030\002 \001(\tB\003\340A\001\022\036\n" + + "\021object_generation\030\003 \001(\003B\003\340A\001\022]\n" + + "\023avro_failure_reason\030\005 \001" + + "(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v1.In" + + "gestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\344\001\n" + + "\023AwsMskFailureReason\022\030\n" + + "\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n" + + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" + + "\024api_violation_reason\030\005" + + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\350\001\n" + + "\033AzureEventHubsFailureReason\022\026\n" + + "\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n" + + "\tevent_hub\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" + + "\024api_violation_reason\030\005" + + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\353\001\n" + + "\033ConfluentCloudFailureReason\022\027\n\n" + + "cluster_id\030\001 \001(\tB\003\340A\001\022\030\n" + + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" + + "\024api_violation_reason\030\005 \001" + + "(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\006reasonB\t\n" + + "\007failure\">\n\r" + + "JavaScriptUDF\022\032\n\r" + + "function_name\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004code\030\002 \001(\tB\003\340A\002\"\216\001\n" + + "\020MessageTransform\022>\n" + + "\016javascript_udf\030\002 \001(\0132" + + "\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" + + "\ttransform\"\216\006\n" + + "\005Topic\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\0228\n" + + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n" + + "\026message_storage_policy\030\003" + + " \001(\0132&.google.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" + + "\014kms_key_name\030\005 \001(\tB\003\340A\001\022>\n" + + "\017schema_settings\030\006 \001(\0132" + + " .google.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\r" + + "satisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n" + + "\032message_retention_duration\030\010" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0221\n" + + "\005state\030\t \001(\0162\035.google.pubsub.v1.Topic.StateB\003\340A\003\022Z\n" + + "\036ingestion_data_source_settings\030\n" + + " \001(\0132-.google.pubsub.v1.IngestionDataSourceSettingsB\003\340A\001\022C\n" + + "\022message_transforms\030\r" + + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"H\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\034\n" + + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" + + "\033pubsub.googleapis.com/Topic\022!projects/{project}/to" + + "pics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "PubsubMessage\022\021\n" + + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" + + "attributes\030\002" + + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + + "message_id\030\003 \001(\t\0220\n" + + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" + + "\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"E\n" + + "\017GetTopicRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\"w\n" + + "\022UpdateTopicRequest\022+\n" + + "\005topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"|\n" + + "\016PublishRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\0226\n" + + "\010messages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"+\n" + + "\017PublishResponse\022\030\n" + + "\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n" + + "\021ListTopicsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"`\n" + + "\022ListTopicsResponse\022,\n" + + "\006topics\030\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\204\001\n" + + "\035ListTopicSubscriptionsRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\201\001\n" + + "\036ListTopicSubscriptionsResponse\022A\n\r" + + "subscriptions\030\001 \003(\tB*\340A\001\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n" + + "\031ListTopicSnapshotsRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"R\n" + + "\032ListTopicSnapshotsResponse\022\026\n" + + "\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n" + + "\022DeleteTopicRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\"]\n" + + "\031DetachSubscriptionRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\"\034\n" + + "\032DetachSubscriptionResponse\"\215\013\n" + + "\014Subscription\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\0222\n" + + "\005topic\030\002 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\0226\n" + + "\013push_config\030\004" + + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + + "\017bigquery_config\030\022 \001(\0132" + + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n" + + "\024cloud_storage_config\030\026" + + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + + "\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n" + + "\025retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n" + + "\032message_retention_duration\030\010" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?\n" + + "\006labels\030\t" + + " \003(\0132*.google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + + "\027enable_message_ordering\030\n" + + " \001(\010B\003\340A\001\022B\n" + + "\021expiration_policy\030\013" + + " \001(\0132\".google.pubsub.v1.ExpirationPolicyB\003\340A\001\022\023\n" + + "\006filter\030\014 \001(\tB\003\340A\001\022C\n" + + "\022dead_letter_policy\030\r" + + " \001(\0132\".google.pubsub.v1.DeadLetterPolicyB\003\340A\001\0228\n" + + "\014retry_policy\030\016" + + " \001(\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + + "\010detached\030\017 \001(\010B\003\340A\001\022)\n" + + "\034enable_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n" + + " topic_message_retention_duration\030\021" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228\n" + + "\005state\030\023 \001(\0162$.google.pubsub.v1.Subscription.StateB\003\340A\003\022i\n" + + "\037analytics_hub_subscription_info\030\027" + + " \001(\0132;.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + + "\022message_transforms\030\031" + + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\032O\n" + + "\034AnalyticsHubSubscriptionInfo\022\024\n" + + "\007listing\030\001 \001(\tB\003\340A\001\022\031\n" + + "\014subscription\030\002 \001(\tB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\">\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\022\n" + + "\016RESOURCE_ERROR\020\002:u\352Ar\n" + + "\"pubsub.googleapis.com/" + + "Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + + "subscriptions2\014subscription\"\177\n" + + "\013RetryPolicy\0227\n" + + "\017minimum_backoff\030\001" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0227\n" + + "\017maximum_backoff\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"V\n" + + "\020DeadLetterPolicy\022\036\n" + + "\021dead_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n" + + "\025max_delivery_attempts\030\002 \001(\005B\003\340A\001\"?\n" + + "\020ExpirationPolicy\022+\n" + + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + + "PushConfig\022\032\n\r" + + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" + + "attributes\030\002 \003(\0132,.go" + + "ogle.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "oidc_token\030\003" + + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + + "\016pubsub_wrapper\030\004" + + " \001(\0132*.google.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + + "no_wrapper\030\005" + + " \001(\0132&.google.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n" + + "\tOidcToken\022\"\n" + + "\025service_account_email\030\001 \001(\tB\003\340A\001\022\025\n" + + "\010audience\030\002 \001(\tB\003\340A\001\032\017\n\r" + + "PubsubWrapper\032(\n" + + "\tNoWrapper\022\033\n" + + "\016write_metadata\030\001 \001(\010B\003\340A\001\0321\n" + + "\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\027\n" + + "\025authentication_methodB\t\n" + + "\007wrapper\"\216\003\n" + + "\016BigQueryConfig\022\022\n" + + "\005table\030\001 \001(\tB\003\340A\001\022\035\n" + + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n" + + "\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n" + + "\005state\030\005" + + " \001(\0162&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" + + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\025\n" + + "\021PERMISSION_DENIED\020\002\022\r\n" + + "\tNOT_FOUND\020\003\022\023\n" + + "\017SCHEMA_MISMATCH\020\004\022#\n" + + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\351\005\n" + + "\022CloudStorageConfig\022\023\n" + + "\006bucket\030\001 \001(\tB\003\340A\002\022\034\n" + + "\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n" + + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + + "\030filename_datetime_format\030\n" + + " \001(\tB\003\340A\001\022K\n" + + "\013text_config\030\004 \001(\0132/" + + ".google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005 \001(\0132/.go" + + "ogle.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\014max_duration\030\006" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" + + "\014max_messages\030\010 \001(\003B\003\340A\001\022>\n" + + "\005state\030\t" + + " \001(\0162*.google.pubsub.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n" + + "\025service_account_email\030\013 \001(\tB\003\340A\001\032\014\n\n" + + "TextConfig\032H\n\n" + + "AvroConfig\022\033\n" + + "\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n" + + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\025\n" + + "\021PERMISSION_DENIED\020\002\022\r\n" + + "\tNOT_FOUND\020\003\022#\n" + + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n" + + "\017SCHEMA_MISMATCH\020\005B\017\n\r" + + "output_format\"|\n" + + "\017ReceivedMessage\022\023\n" + + "\006ack_id\030\001 \001(\tB\003\340A\001\0225\n" + + "\007message\030\002" + + " \001(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" + + "\026GetSubscriptionRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\"\214\001\n" + + "\031UpdateSubscriptionRequest\0229\n" + + "\014subscription\030\001" + + " \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001\n" + + "\030ListSubscriptionsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + + "\031ListSubscriptionsResponse\022:\n\r" + + "subscriptions\030\001" + + " \003(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n" + + "\031DeleteSubscriptionRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\"\223\001\n" + + "\027ModifyPushConfigRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\0226\n" + + "\013push_config\030\002" + + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\002\"\215\001\n" + + "\013PullRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022!\n" + + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n" + + "\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n" + + "\014PullResponse\022A\n" + + "\021received_messages\030\001 \003" + + "(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n" + + "\030ModifyAckDeadlineRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n" + + "\007ack_ids\030\004 \003(\tB\003\340A\002\022!\n" + + "\024ack_deadline_seconds\030\003 \001(\005B\003\340A\002\"l\n" + + "\022AcknowledgeRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n" + + "\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n" + + "\024StreamingPullRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022\024\n" + + "\007ack_ids\030\002 \003(\tB\003\340A\001\022$\n" + + "\027modify_deadline_seconds\030\003 \003(\005B\003\340A\001\022$\n" + + "\027modify_deadline_ack_ids\030\004 \003(\tB\003\340A\001\022(\n" + + "\033stream_ack_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n" + + "\tclient_id\030\006 \001(\tB\003\340A\001\022%\n" + + "\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n" + + "\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n" + + "\025StreamingPullResponse\022A\n" + + "\021received_messages\030\001" + + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" + + "\030acknowledge_confirmation\030\005 \001(" + + "\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.goog" + + "le.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v" + + "1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\027AcknowledgeConfirmation\022\024\n" + + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" + + "\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n" + + "\030temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n" + + "\035ModifyAckDeadlineConfirmation\022\024\n" + + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022%\n" + + "\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n" + + "\026SubscriptionProperties\022*\n" + + "\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" + + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n" + + "\025CreateSnapshotRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\022@\n" + + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022H\n" + + "\006labels\030\003 \003(\01323." + + "google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" + + "\025UpdateSnapshotRequest\0221\n" + + "\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\326\002\n" + + "\010Snapshot\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\001\0222\n" + + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + + "\033pubsub.googleapis.com/Topic\0224\n" + + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" + + "\006labels\030\004" + + " \003(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" + + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" + + "\tsnapshots2\010snapshot\"N\n" + + "\022GetSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\215\001\n" + + "\024ListSnapshotsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"i\n" + + "\025ListSnapshotsResponse\0222\n" + + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n" + + "\025DeleteSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\306\001\n" + + "\013SeekRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022/\n" + + "\004time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n" + + "\010snapshot\030\003 \001(\tB&\340A\001\372A \n" + + "\036pubsub.googleapis.com/SnapshotH\000B\010\n" + + "\006target\"\016\n" + + "\014SeekResponse2\270\013\n" + + "\tPublisher\022q\n" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsub." + + "v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicRequest\032\027.googl" + "e.pubsub.v1.Topic\"C\332A\021topic,update_mask\202" - + "\323\344\223\002)2$/v1/{topic.name=projects/*/topics" - + "/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1.Pu" - + "blishRequest\032!.google.pubsub.v1.PublishR" - + "esponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{t" - + "opic=projects/*/topics/*}:publish:\001*\022w\n\010" - + "GetTopic\022!.google.pubsub.v1.GetTopicRequ" + + "\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" + + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1.PublishR" + + "esponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" + + "\010GetTopic\022!.google.pubsub.v1.GetTopicRequ" + "est\032\027.google.pubsub.v1.Topic\"/\332A\005topic\202\323" - + "\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001" - + "\n\nListTopics\022#.google.pubsub.v1.ListTopi" - + "csRequest\032$.google.pubsub.v1.ListTopicsR" - + "esponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=" - + "projects/*}/topics\022\272\001\n\026ListTopicSubscrip" - + "tions\022/.google.pubsub.v1.ListTopicSubscr" + + "\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" + + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.ListTopicsR" + + "esponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTopicSubscr" + "iptionsRequest\0320.google.pubsub.v1.ListTo" + "picSubscriptionsResponse\"=\332A\005topic\202\323\344\223\002/", "\022-/v1/{topic=projects/*/topics/*}/subscr" @@ -842,11 +971,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ions/*}:seek:\001*\032p\312A\025pubsub.googleapis.co" + "m\322AUhttps://www.googleapis.com/auth/clou" + "d-platform,https://www.googleapis.com/au" - + "th/pubsubB\247\001\n\024com.google.pubsub.v1B\013Pubs" - + "ubProtoP\001Z2cloud.google.com/go/pubsub/ap" - + "iv1/pubsubpb;pubsubpb\252\002\026Google.Cloud.Pub" - + "Sub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google" - + "::Cloud::PubSub::V1b\006proto3" + + "th/pubsubB\252\001\n\024com.google.pubsub.v1B\013Pubs" + + "ubProtoP\001Z5cloud.google.com/go/pubsub/v2" + + "/apiv1/pubsubpb;pubsubpb\252\002\026Google.Cloud." + + "PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Goo" + + "gle::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 1ad7fd33c948..7db45411e611 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -33,6 +33,7 @@ public final class PullRequest extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullRequest) PullRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use PullRequest.newBuilder() to construct. private PullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -91,6 +93,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -120,6 +123,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public static final int RETURN_IMMEDIATELY_FIELD_NUMBER = 2; private boolean returnImmediately_ = false; + /** * * @@ -148,6 +152,7 @@ public boolean getReturnImmediately() { public static final int MAX_MESSAGES_FIELD_NUMBER = 3; private int maxMessages_ = 0; + /** * * @@ -341,6 +346,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -549,6 +555,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -574,6 +581,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -599,6 +607,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -623,6 +632,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -643,6 +653,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -670,6 +681,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { } private boolean returnImmediately_; + /** * * @@ -696,6 +708,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { public boolean getReturnImmediately() { return returnImmediately_; } + /** * * @@ -726,6 +739,7 @@ public Builder setReturnImmediately(boolean value) { onChanged(); return this; } + /** * * @@ -756,6 +770,7 @@ public Builder clearReturnImmediately() { } private int maxMessages_; + /** * * @@ -773,6 +788,7 @@ public Builder clearReturnImmediately() { public int getMaxMessages() { return maxMessages_; } + /** * * @@ -794,6 +810,7 @@ public Builder setMaxMessages(int value) { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 0b296c5d5421..bee10d2e95f2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface PullRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 9114f636f3b2..e65fd1ebffa6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -33,6 +33,7 @@ public final class PullResponse extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullResponse) PullResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use PullResponse.newBuilder() to construct. private PullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -67,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private java.util.List receivedMessages_; + /** * * @@ -86,6 +88,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public java.util.List getReceivedMessagesList() { return receivedMessages_; } + /** * * @@ -106,6 +109,7 @@ public java.util.List getReceivedMessagesL getReceivedMessagesOrBuilderList() { return receivedMessages_; } + /** * * @@ -125,6 +129,7 @@ public java.util.List getReceivedMessagesL public int getReceivedMessagesCount() { return receivedMessages_.size(); } + /** * * @@ -144,6 +149,7 @@ public int getReceivedMessagesCount() { public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } + /** * * @@ -323,6 +329,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -588,6 +595,7 @@ public java.util.List getReceivedMessagesL return receivedMessagesBuilder_.getMessageList(); } } + /** * * @@ -610,6 +618,7 @@ public int getReceivedMessagesCount() { return receivedMessagesBuilder_.getCount(); } } + /** * * @@ -632,6 +641,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessagesBuilder_.getMessage(index); } } + /** * * @@ -660,6 +670,7 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa } return this; } + /** * * @@ -686,6 +697,7 @@ public Builder setReceivedMessages( } return this; } + /** * * @@ -714,6 +726,7 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { } return this; } + /** * * @@ -742,6 +755,7 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa } return this; } + /** * * @@ -768,6 +782,7 @@ public Builder addReceivedMessages( } return this; } + /** * * @@ -794,6 +809,7 @@ public Builder addReceivedMessages( } return this; } + /** * * @@ -820,6 +836,7 @@ public Builder addAllReceivedMessages( } return this; } + /** * * @@ -845,6 +862,7 @@ public Builder clearReceivedMessages() { } return this; } + /** * * @@ -870,6 +888,7 @@ public Builder removeReceivedMessages(int index) { } return this; } + /** * * @@ -888,6 +907,7 @@ public Builder removeReceivedMessages(int index) { public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); } + /** * * @@ -910,6 +930,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde return receivedMessagesBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -933,6 +954,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde return java.util.Collections.unmodifiableList(receivedMessages_); } } + /** * * @@ -952,6 +974,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() return getReceivedMessagesFieldBuilder() .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } + /** * * @@ -971,6 +994,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i return getReceivedMessagesFieldBuilder() .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 664f3de29181..d22ff6c8f857 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -40,6 +40,7 @@ public interface PullResponseOrBuilder * */ java.util.List getReceivedMessagesList(); + /** * * @@ -56,6 +57,7 @@ public interface PullResponseOrBuilder * */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); + /** * * @@ -72,6 +74,7 @@ public interface PullResponseOrBuilder * */ int getReceivedMessagesCount(); + /** * * @@ -89,6 +92,7 @@ public interface PullResponseOrBuilder */ java.util.List getReceivedMessagesOrBuilderList(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 4eda45f36afa..fc509ebb9115 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -33,6 +33,7 @@ public final class PushConfig extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig) PushConfigOrBuilder { private static final long serialVersionUID = 0L; + // Use PushConfig.newBuilder() to construct. private PushConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -94,6 +95,7 @@ public interface OidcTokenOrBuilder * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); + /** * * @@ -129,6 +131,7 @@ public interface OidcTokenOrBuilder * @return The audience. */ java.lang.String getAudience(); + /** * * @@ -148,6 +151,7 @@ public interface OidcTokenOrBuilder */ com.google.protobuf.ByteString getAudienceBytes(); } + /** * * @@ -164,6 +168,7 @@ public static final class OidcToken extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.OidcToken) OidcTokenOrBuilder { private static final long serialVersionUID = 0L; + // Use OidcToken.newBuilder() to construct. private OidcToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -199,6 +204,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -226,6 +232,7 @@ public java.lang.String getServiceAccountEmail() { return s; } } + /** * * @@ -258,6 +265,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { @SuppressWarnings("serial") private volatile java.lang.Object audience_ = ""; + /** * * @@ -287,6 +295,7 @@ public java.lang.String getAudience() { return s; } } + /** * * @@ -486,6 +495,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -689,6 +699,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object serviceAccountEmail_ = ""; + /** * * @@ -715,6 +726,7 @@ public java.lang.String getServiceAccountEmail() { return (java.lang.String) ref; } } + /** * * @@ -741,6 +753,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -766,6 +779,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { onChanged(); return this; } + /** * * @@ -787,6 +801,7 @@ public Builder clearServiceAccountEmail() { onChanged(); return this; } + /** * * @@ -815,6 +830,7 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) } private java.lang.Object audience_ = ""; + /** * * @@ -843,6 +859,7 @@ public java.lang.String getAudience() { return (java.lang.String) ref; } } + /** * * @@ -871,6 +888,7 @@ public com.google.protobuf.ByteString getAudienceBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -898,6 +916,7 @@ public Builder setAudience(java.lang.String value) { onChanged(); return this; } + /** * * @@ -921,6 +940,7 @@ public Builder clearAudience() { onChanged(); return this; } + /** * * @@ -1018,6 +1038,7 @@ public interface PubsubWrapperOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig.PubsubWrapper) com.google.protobuf.MessageOrBuilder {} + /** * * @@ -1034,6 +1055,7 @@ public static final class PubsubWrapper extends com.google.protobuf.GeneratedMes // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.PubsubWrapper) PubsubWrapperOrBuilder { private static final long serialVersionUID = 0L; + // Use PubsubWrapper.newBuilder() to construct. private PubsubWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -1213,6 +1235,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1460,6 +1483,7 @@ public interface NoWrapperOrBuilder */ boolean getWriteMetadata(); } + /** * * @@ -1474,6 +1498,7 @@ public static final class NoWrapper extends com.google.protobuf.GeneratedMessage // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.NoWrapper) NoWrapperOrBuilder { private static final long serialVersionUID = 0L; + // Use NoWrapper.newBuilder() to construct. private NoWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -1504,6 +1529,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int WRITE_METADATA_FIELD_NUMBER = 1; private boolean writeMetadata_ = false; + /** * * @@ -1682,6 +1708,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1866,6 +1893,7 @@ public Builder mergeFrom( private int bitField0_; private boolean writeMetadata_; + /** * * @@ -1883,6 +1911,7 @@ public Builder mergeFrom( public boolean getWriteMetadata() { return writeMetadata_; } + /** * * @@ -1904,6 +1933,7 @@ public Builder setWriteMetadata(boolean value) { onChanged(); return this; } + /** * * @@ -2004,6 +2034,7 @@ public enum AuthenticationMethodCase private AuthenticationMethodCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -2051,6 +2082,7 @@ public enum WrapperCase private WrapperCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -2087,6 +2119,7 @@ public WrapperCase getWrapperCase() { @SuppressWarnings("serial") private volatile java.lang.Object pushEndpoint_ = ""; + /** * * @@ -2111,6 +2144,7 @@ public java.lang.String getPushEndpoint() { return s; } } + /** * * @@ -2162,6 +2196,7 @@ private com.google.protobuf.MapField interna public int getAttributesCount() { return internalGetAttributes().getMap().size(); } + /** * * @@ -2199,12 +2234,14 @@ public boolean containsAttributes(java.lang.String key) { } return internalGetAttributes().getMap().containsKey(key); } + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } + /** * * @@ -2239,6 +2276,7 @@ public java.util.Map getAttributes() { public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } + /** * * @@ -2280,6 +2318,7 @@ public java.util.Map getAttributesMap() { java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -2323,6 +2362,7 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { } public static final int OIDC_TOKEN_FIELD_NUMBER = 3; + /** * * @@ -2342,6 +2382,7 @@ public java.lang.String getAttributesOrThrow(java.lang.String key) { public boolean hasOidcToken() { return authenticationMethodCase_ == 3; } + /** * * @@ -2364,6 +2405,7 @@ public com.google.pubsub.v1.PushConfig.OidcToken getOidcToken() { } return com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); } + /** * * @@ -2386,6 +2428,7 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( } public static final int PUBSUB_WRAPPER_FIELD_NUMBER = 4; + /** * * @@ -2405,6 +2448,7 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( public boolean hasPubsubWrapper() { return wrapperCase_ == 4; } + /** * * @@ -2427,6 +2471,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { } return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); } + /** * * @@ -2449,6 +2494,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr } public static final int NO_WRAPPER_FIELD_NUMBER = 5; + /** * * @@ -2466,6 +2512,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr public boolean hasNoWrapper() { return wrapperCase_ == 5; } + /** * * @@ -2486,6 +2533,7 @@ public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { } return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); } + /** * * @@ -2742,6 +2790,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -3067,6 +3116,7 @@ public Builder clearWrapper() { private int bitField0_; private java.lang.Object pushEndpoint_ = ""; + /** * * @@ -3090,6 +3140,7 @@ public java.lang.String getPushEndpoint() { return (java.lang.String) ref; } } + /** * * @@ -3113,6 +3164,7 @@ public com.google.protobuf.ByteString getPushEndpointBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3135,6 +3187,7 @@ public Builder setPushEndpoint(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3153,6 +3206,7 @@ public Builder clearPushEndpoint() { onChanged(); return this; } + /** * * @@ -3205,6 +3259,7 @@ public Builder setPushEndpointBytes(com.google.protobuf.ByteString value) { public int getAttributesCount() { return internalGetAttributes().getMap().size(); } + /** * * @@ -3242,12 +3297,14 @@ public boolean containsAttributes(java.lang.String key) { } return internalGetAttributes().getMap().containsKey(key); } + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAttributes() { return getAttributesMap(); } + /** * * @@ -3282,6 +3339,7 @@ public java.util.Map getAttributes() { public java.util.Map getAttributesMap() { return internalGetAttributes().getMap(); } + /** * * @@ -3323,6 +3381,7 @@ public java.util.Map getAttributesMap() { java.util.Map map = internalGetAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -3370,6 +3429,7 @@ public Builder clearAttributes() { internalGetMutableAttributes().getMutableMap().clear(); return this; } + /** * * @@ -3407,12 +3467,14 @@ public Builder removeAttributes(java.lang.String key) { internalGetMutableAttributes().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributes() { bitField0_ |= 0x00000002; return internalGetMutableAttributes().getMutableMap(); } + /** * * @@ -3454,6 +3516,7 @@ public Builder putAttributes(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000002; return this; } + /** * * @@ -3495,6 +3558,7 @@ public Builder putAllAttributes(java.util.Map oidcTokenBuilder_; + /** * * @@ -3514,6 +3578,7 @@ public Builder putAllAttributes(java.util.Map pubsubWrapperBuilder_; + /** * * @@ -3759,6 +3832,7 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( public boolean hasPubsubWrapper() { return wrapperCase_ == 4; } + /** * * @@ -3788,6 +3862,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper() { return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); } } + /** * * @@ -3814,6 +3889,7 @@ public Builder setPubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper va wrapperCase_ = 4; return this; } + /** * * @@ -3838,6 +3914,7 @@ public Builder setPubsubWrapper( wrapperCase_ = 4; return this; } + /** * * @@ -3874,6 +3951,7 @@ public Builder mergePubsubWrapper(com.google.pubsub.v1.PushConfig.PubsubWrapper wrapperCase_ = 4; return this; } + /** * * @@ -3903,6 +3981,7 @@ public Builder clearPubsubWrapper() { } return this; } + /** * * @@ -3919,6 +3998,7 @@ public Builder clearPubsubWrapper() { public com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder getPubsubWrapperBuilder() { return getPubsubWrapperFieldBuilder().getBuilder(); } + /** * * @@ -3943,6 +4023,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr return com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); } } + /** * * @@ -3985,6 +4066,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr com.google.pubsub.v1.PushConfig.NoWrapper.Builder, com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder> noWrapperBuilder_; + /** * * @@ -4002,6 +4084,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr public boolean hasNoWrapper() { return wrapperCase_ == 5; } + /** * * @@ -4029,6 +4112,7 @@ public com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper() { return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); } } + /** * * @@ -4053,6 +4137,7 @@ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { wrapperCase_ = 5; return this; } + /** * * @@ -4074,6 +4159,7 @@ public Builder setNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper.Builder bu wrapperCase_ = 5; return this; } + /** * * @@ -4108,6 +4194,7 @@ public Builder mergeNoWrapper(com.google.pubsub.v1.PushConfig.NoWrapper value) { wrapperCase_ = 5; return this; } + /** * * @@ -4135,6 +4222,7 @@ public Builder clearNoWrapper() { } return this; } + /** * * @@ -4149,6 +4237,7 @@ public Builder clearNoWrapper() { public com.google.pubsub.v1.PushConfig.NoWrapper.Builder getNoWrapperBuilder() { return getNoWrapperFieldBuilder().getBuilder(); } + /** * * @@ -4171,6 +4260,7 @@ public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder( return com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 38b1bc963625..784239904503 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -37,6 +37,7 @@ public interface PushConfigOrBuilder * @return The pushEndpoint. */ java.lang.String getPushEndpoint(); + /** * * @@ -82,6 +83,7 @@ public interface PushConfigOrBuilder * */ int getAttributesCount(); + /** * * @@ -113,9 +115,11 @@ public interface PushConfigOrBuilder * */ boolean containsAttributes(java.lang.String key); + /** Use {@link #getAttributesMap()} instead. */ @java.lang.Deprecated java.util.Map getAttributes(); + /** * * @@ -147,6 +151,7 @@ public interface PushConfigOrBuilder * */ java.util.Map getAttributesMap(); + /** * * @@ -182,6 +187,7 @@ java.lang.String getAttributesOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * @@ -230,6 +236,7 @@ java.lang.String getAttributesOrDefault( * @return Whether the oidcToken field is set. */ boolean hasOidcToken(); + /** * * @@ -246,6 +253,7 @@ java.lang.String getAttributesOrDefault( * @return The oidcToken. */ com.google.pubsub.v1.PushConfig.OidcToken getOidcToken(); + /** * * @@ -277,6 +285,7 @@ java.lang.String getAttributesOrDefault( * @return Whether the pubsubWrapper field is set. */ boolean hasPubsubWrapper(); + /** * * @@ -293,6 +302,7 @@ java.lang.String getAttributesOrDefault( * @return The pubsubWrapper. */ com.google.pubsub.v1.PushConfig.PubsubWrapper getPubsubWrapper(); + /** * * @@ -322,6 +332,7 @@ java.lang.String getAttributesOrDefault( * @return Whether the noWrapper field is set. */ boolean hasNoWrapper(); + /** * * @@ -336,6 +347,7 @@ java.lang.String getAttributesOrDefault( * @return The noWrapper. */ com.google.pubsub.v1.PushConfig.NoWrapper getNoWrapper(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 99bf4f40b3ca..bf67f45dec5c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -33,6 +33,7 @@ public final class ReceivedMessage extends com.google.protobuf.GeneratedMessageV // @@protoc_insertion_point(message_implements:google.pubsub.v1.ReceivedMessage) ReceivedMessageOrBuilder { private static final long serialVersionUID = 0L; + // Use ReceivedMessage.newBuilder() to construct. private ReceivedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object ackId_ = ""; + /** * * @@ -91,6 +93,7 @@ public java.lang.String getAckId() { return s; } } + /** * * @@ -117,6 +120,7 @@ public com.google.protobuf.ByteString getAckIdBytes() { public static final int MESSAGE_FIELD_NUMBER = 2; private com.google.pubsub.v1.PubsubMessage message_; + /** * * @@ -133,6 +137,7 @@ public com.google.protobuf.ByteString getAckIdBytes() { public boolean hasMessage() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -149,6 +154,7 @@ public boolean hasMessage() { public com.google.pubsub.v1.PubsubMessage getMessage() { return message_ == null ? com.google.pubsub.v1.PubsubMessage.getDefaultInstance() : message_; } + /** * * @@ -166,6 +172,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { public static final int DELIVERY_ATTEMPT_FIELD_NUMBER = 3; private int deliveryAttempt_ = 0; + /** * * @@ -377,6 +384,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -601,6 +609,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object ackId_ = ""; + /** * * @@ -623,6 +632,7 @@ public java.lang.String getAckId() { return (java.lang.String) ref; } } + /** * * @@ -645,6 +655,7 @@ public com.google.protobuf.ByteString getAckIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -666,6 +677,7 @@ public Builder setAckId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -683,6 +695,7 @@ public Builder clearAckId() { onChanged(); return this; } + /** * * @@ -712,6 +725,7 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> messageBuilder_; + /** * * @@ -727,6 +741,7 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { public boolean hasMessage() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -748,6 +763,7 @@ public com.google.pubsub.v1.PubsubMessage getMessage() { return messageBuilder_.getMessage(); } } + /** * * @@ -771,6 +787,7 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage value) { onChanged(); return this; } + /** * * @@ -791,6 +808,7 @@ public Builder setMessage(com.google.pubsub.v1.PubsubMessage.Builder builderForV onChanged(); return this; } + /** * * @@ -819,6 +837,7 @@ public Builder mergeMessage(com.google.pubsub.v1.PubsubMessage value) { } return this; } + /** * * @@ -839,6 +858,7 @@ public Builder clearMessage() { onChanged(); return this; } + /** * * @@ -854,6 +874,7 @@ public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { onChanged(); return getMessageFieldBuilder().getBuilder(); } + /** * * @@ -873,6 +894,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { : message_; } } + /** * * @@ -901,6 +923,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { } private int deliveryAttempt_; + /** * * @@ -931,6 +954,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { public int getDeliveryAttempt() { return deliveryAttempt_; } + /** * * @@ -965,6 +989,7 @@ public Builder setDeliveryAttempt(int value) { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 29e4bb6cb586..186a843ca477 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -36,6 +36,7 @@ public interface ReceivedMessageOrBuilder * @return The ackId. */ java.lang.String getAckId(); + /** * * @@ -62,6 +63,7 @@ public interface ReceivedMessageOrBuilder * @return Whether the message field is set. */ boolean hasMessage(); + /** * * @@ -75,6 +77,7 @@ public interface ReceivedMessageOrBuilder * @return The message. */ com.google.pubsub.v1.PubsubMessage getMessage(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 87c8b94e9444..ada2ba66b747 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -43,6 +43,7 @@ public final class RetryPolicy extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.RetryPolicy) RetryPolicyOrBuilder { private static final long serialVersionUID = 0L; + // Use RetryPolicy.newBuilder() to construct. private RetryPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -72,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int MINIMUM_BACKOFF_FIELD_NUMBER = 1; private com.google.protobuf.Duration minimumBackoff_; + /** * * @@ -89,6 +91,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasMinimumBackoff() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -108,6 +111,7 @@ public com.google.protobuf.Duration getMinimumBackoff() { ? com.google.protobuf.Duration.getDefaultInstance() : minimumBackoff_; } + /** * * @@ -128,6 +132,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { public static final int MAXIMUM_BACKOFF_FIELD_NUMBER = 2; private com.google.protobuf.Duration maximumBackoff_; + /** * * @@ -146,6 +151,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { public boolean hasMaximumBackoff() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -166,6 +172,7 @@ public com.google.protobuf.Duration getMaximumBackoff() { ? com.google.protobuf.Duration.getDefaultInstance() : maximumBackoff_; } + /** * * @@ -361,6 +368,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -593,6 +601,7 @@ public Builder mergeFrom( com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> minimumBackoffBuilder_; + /** * * @@ -610,6 +619,7 @@ public Builder mergeFrom( public boolean hasMinimumBackoff() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -633,6 +643,7 @@ public com.google.protobuf.Duration getMinimumBackoff() { return minimumBackoffBuilder_.getMessage(); } } + /** * * @@ -658,6 +669,7 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -680,6 +692,7 @@ public Builder setMinimumBackoff(com.google.protobuf.Duration.Builder builderFor onChanged(); return this; } + /** * * @@ -710,6 +723,7 @@ public Builder mergeMinimumBackoff(com.google.protobuf.Duration value) { } return this; } + /** * * @@ -732,6 +746,7 @@ public Builder clearMinimumBackoff() { onChanged(); return this; } + /** * * @@ -749,6 +764,7 @@ public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() { onChanged(); return getMinimumBackoffFieldBuilder().getBuilder(); } + /** * * @@ -770,6 +786,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { : minimumBackoff_; } } + /** * * @@ -805,6 +822,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> maximumBackoffBuilder_; + /** * * @@ -823,6 +841,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { public boolean hasMaximumBackoff() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -847,6 +866,7 @@ public com.google.protobuf.Duration getMaximumBackoff() { return maximumBackoffBuilder_.getMessage(); } } + /** * * @@ -873,6 +893,7 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -896,6 +917,7 @@ public Builder setMaximumBackoff(com.google.protobuf.Duration.Builder builderFor onChanged(); return this; } + /** * * @@ -927,6 +949,7 @@ public Builder mergeMaximumBackoff(com.google.protobuf.Duration value) { } return this; } + /** * * @@ -950,6 +973,7 @@ public Builder clearMaximumBackoff() { onChanged(); return this; } + /** * * @@ -968,6 +992,7 @@ public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() { onChanged(); return getMaximumBackoffFieldBuilder().getBuilder(); } + /** * * @@ -990,6 +1015,7 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { : maximumBackoff_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index f49555336d08..5df0c7f6bdea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -38,6 +38,7 @@ public interface RetryPolicyOrBuilder * @return Whether the minimumBackoff field is set. */ boolean hasMinimumBackoff(); + /** * * @@ -52,6 +53,7 @@ public interface RetryPolicyOrBuilder * @return The minimumBackoff. */ com.google.protobuf.Duration getMinimumBackoff(); + /** * * @@ -80,6 +82,7 @@ public interface RetryPolicyOrBuilder * @return Whether the maximumBackoff field is set. */ boolean hasMaximumBackoff(); + /** * * @@ -95,6 +98,7 @@ public interface RetryPolicyOrBuilder * @return The maximumBackoff. */ com.google.protobuf.Duration getMaximumBackoff(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 26df96db4066..cefb591a582f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -33,6 +33,7 @@ public final class RollbackSchemaRequest extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.RollbackSchemaRequest) RollbackSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use RollbackSchemaRequest.newBuilder() to construct. private RollbackSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -93,6 +95,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; + /** * * @@ -149,6 +153,7 @@ public java.lang.String getRevisionId() { return s; } } + /** * * @@ -344,6 +349,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -542,6 +548,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -566,6 +573,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -590,6 +598,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -613,6 +622,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -632,6 +642,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -658,6 +669,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object revisionId_ = ""; + /** * * @@ -683,6 +695,7 @@ public java.lang.String getRevisionId() { return (java.lang.String) ref; } } + /** * * @@ -708,6 +721,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -732,6 +746,7 @@ public Builder setRevisionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -752,6 +767,7 @@ public Builder clearRevisionId() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index de66b349e65c..ba89f7dbf277 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -38,6 +38,7 @@ public interface RollbackSchemaRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -68,6 +69,7 @@ public interface RollbackSchemaRequestOrBuilder * @return The revisionId. */ java.lang.String getRevisionId(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 0b7f06f7a038..806544f74ad6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -33,6 +33,7 @@ public final class Schema extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.Schema) SchemaOrBuilder { private static final long serialVersionUID = 0L; + // Use Schema.newBuilder() to construct. private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -117,6 +118,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * TYPE_UNSPECIFIED = 0; */ public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** * * @@ -127,6 +129,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * PROTOCOL_BUFFER = 1; */ public static final int PROTOCOL_BUFFER_VALUE = 1; + /** * * @@ -226,6 +229,7 @@ private Type(int value) { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -250,6 +254,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -277,6 +282,7 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; + /** * * @@ -292,6 +298,7 @@ public com.google.protobuf.ByteString getNameBytes() { public int getTypeValue() { return type_; } + /** * * @@ -313,6 +320,7 @@ public com.google.pubsub.v1.Schema.Type getType() { @SuppressWarnings("serial") private volatile java.lang.Object definition_ = ""; + /** * * @@ -338,6 +346,7 @@ public java.lang.String getDefinition() { return s; } } + /** * * @@ -368,6 +377,7 @@ public com.google.protobuf.ByteString getDefinitionBytes() { @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; + /** * * @@ -393,6 +403,7 @@ public java.lang.String getRevisionId() { return s; } } + /** * * @@ -421,6 +432,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp revisionCreateTime_; + /** * * @@ -438,6 +450,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { public boolean hasRevisionCreateTime() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -457,6 +470,7 @@ public com.google.protobuf.Timestamp getRevisionCreateTime() { ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; } + /** * * @@ -673,6 +687,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -928,6 +943,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -951,6 +967,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -974,6 +991,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -996,6 +1014,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1014,6 +1033,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -1039,6 +1059,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private int type_ = 0; + /** * * @@ -1054,6 +1075,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { public int getTypeValue() { return type_; } + /** * * @@ -1072,6 +1094,7 @@ public Builder setTypeValue(int value) { onChanged(); return this; } + /** * * @@ -1088,6 +1111,7 @@ public com.google.pubsub.v1.Schema.Type getType() { com.google.pubsub.v1.Schema.Type result = com.google.pubsub.v1.Schema.Type.forNumber(type_); return result == null ? com.google.pubsub.v1.Schema.Type.UNRECOGNIZED : result; } + /** * * @@ -1109,6 +1133,7 @@ public Builder setType(com.google.pubsub.v1.Schema.Type value) { onChanged(); return this; } + /** * * @@ -1128,6 +1153,7 @@ public Builder clearType() { } private java.lang.Object definition_ = ""; + /** * * @@ -1152,6 +1178,7 @@ public java.lang.String getDefinition() { return (java.lang.String) ref; } } + /** * * @@ -1176,6 +1203,7 @@ public com.google.protobuf.ByteString getDefinitionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1199,6 +1227,7 @@ public Builder setDefinition(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1218,6 +1247,7 @@ public Builder clearDefinition() { onChanged(); return this; } + /** * * @@ -1244,6 +1274,7 @@ public Builder setDefinitionBytes(com.google.protobuf.ByteString value) { } private java.lang.Object revisionId_ = ""; + /** * * @@ -1268,6 +1299,7 @@ public java.lang.String getRevisionId() { return (java.lang.String) ref; } } + /** * * @@ -1292,6 +1324,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1315,6 +1348,7 @@ public Builder setRevisionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1334,6 +1368,7 @@ public Builder clearRevisionId() { onChanged(); return this; } + /** * * @@ -1365,6 +1400,7 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revisionCreateTimeBuilder_; + /** * * @@ -1381,6 +1417,7 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { public boolean hasRevisionCreateTime() { return ((bitField0_ & 0x00000010) != 0); } + /** * * @@ -1403,6 +1440,7 @@ public com.google.protobuf.Timestamp getRevisionCreateTime() { return revisionCreateTimeBuilder_.getMessage(); } } + /** * * @@ -1427,6 +1465,7 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { onChanged(); return this; } + /** * * @@ -1448,6 +1487,7 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder build onChanged(); return this; } + /** * * @@ -1477,6 +1517,7 @@ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { } return this; } + /** * * @@ -1498,6 +1539,7 @@ public Builder clearRevisionCreateTime() { onChanged(); return this; } + /** * * @@ -1514,6 +1556,7 @@ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { onChanged(); return getRevisionCreateTimeFieldBuilder().getBuilder(); } + /** * * @@ -1534,6 +1577,7 @@ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { : revisionCreateTime_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 81907d0bce97..87d31f491cd0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -37,6 +37,7 @@ public interface SchemaOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -63,6 +64,7 @@ public interface SchemaOrBuilder * @return The enum numeric value on the wire for type. */ int getTypeValue(); + /** * * @@ -90,6 +92,7 @@ public interface SchemaOrBuilder * @return The definition. */ java.lang.String getDefinition(); + /** * * @@ -119,6 +122,7 @@ public interface SchemaOrBuilder * @return The revisionId. */ java.lang.String getRevisionId(); + /** * * @@ -148,6 +152,7 @@ public interface SchemaOrBuilder * @return Whether the revisionCreateTime field is set. */ boolean hasRevisionCreateTime(); + /** * * @@ -162,6 +167,7 @@ public interface SchemaOrBuilder * @return The revisionCreateTime. */ com.google.protobuf.Timestamp getRevisionCreateTime(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index 27f4675b1980..b1879310ce4a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -197,11 +197,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "alidateMessage:\001*\032p\312A\025pubsub.googleapis." + "com\322AUhttps://www.googleapis.com/auth/cl" + "oud-platform,https://www.googleapis.com/" - + "auth/pubsubB\247\001\n\024com.google.pubsub.v1B\013Sc" - + "hemaProtoP\001Z2cloud.google.com/go/pubsub/" - + "apiv1/pubsubpb;pubsubpb\252\002\026Google.Cloud.P" - + "ubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Goog" - + "le::Cloud::PubSub::V1b\006proto3" + + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Sc" + + "hemaProtoP\001Z5cloud.google.com/go/pubsub/" + + "v2/apiv1/pubsubpb;pubsubpb\252\002\026Google.Clou" + + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" + + "oogle::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 215c891582e2..17410973faaf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -33,6 +33,7 @@ public final class SchemaSettings extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.SchemaSettings) SchemaSettingsOrBuilder { private static final long serialVersionUID = 0L; + // Use SchemaSettings.newBuilder() to construct. private SchemaSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -70,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; + /** * * @@ -98,6 +100,7 @@ public java.lang.String getSchema() { return s; } } + /** * * @@ -129,6 +132,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { public static final int ENCODING_FIELD_NUMBER = 2; private int encoding_ = 0; + /** * * @@ -144,6 +148,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { public int getEncodingValue() { return encoding_; } + /** * * @@ -165,6 +170,7 @@ public com.google.pubsub.v1.Encoding getEncoding() { @SuppressWarnings("serial") private volatile java.lang.Object firstRevisionId_ = ""; + /** * * @@ -190,6 +196,7 @@ public java.lang.String getFirstRevisionId() { return s; } } + /** * * @@ -220,6 +227,7 @@ public com.google.protobuf.ByteString getFirstRevisionIdBytes() { @SuppressWarnings("serial") private volatile java.lang.Object lastRevisionId_ = ""; + /** * * @@ -245,6 +253,7 @@ public java.lang.String getLastRevisionId() { return s; } } + /** * * @@ -455,6 +464,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -680,6 +690,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object schema_ = ""; + /** * * @@ -707,6 +718,7 @@ public java.lang.String getSchema() { return (java.lang.String) ref; } } + /** * * @@ -734,6 +746,7 @@ public com.google.protobuf.ByteString getSchemaBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -760,6 +773,7 @@ public Builder setSchema(java.lang.String value) { onChanged(); return this; } + /** * * @@ -782,6 +796,7 @@ public Builder clearSchema() { onChanged(); return this; } + /** * * @@ -811,6 +826,7 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { } private int encoding_ = 0; + /** * * @@ -827,6 +843,7 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { public int getEncodingValue() { return encoding_; } + /** * * @@ -846,6 +863,7 @@ public Builder setEncodingValue(int value) { onChanged(); return this; } + /** * * @@ -863,6 +881,7 @@ public com.google.pubsub.v1.Encoding getEncoding() { com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.forNumber(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } + /** * * @@ -885,6 +904,7 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { onChanged(); return this; } + /** * * @@ -905,6 +925,7 @@ public Builder clearEncoding() { } private java.lang.Object firstRevisionId_ = ""; + /** * * @@ -929,6 +950,7 @@ public java.lang.String getFirstRevisionId() { return (java.lang.String) ref; } } + /** * * @@ -953,6 +975,7 @@ public com.google.protobuf.ByteString getFirstRevisionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -976,6 +999,7 @@ public Builder setFirstRevisionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -995,6 +1019,7 @@ public Builder clearFirstRevisionId() { onChanged(); return this; } + /** * * @@ -1021,6 +1046,7 @@ public Builder setFirstRevisionIdBytes(com.google.protobuf.ByteString value) { } private java.lang.Object lastRevisionId_ = ""; + /** * * @@ -1045,6 +1071,7 @@ public java.lang.String getLastRevisionId() { return (java.lang.String) ref; } } + /** * * @@ -1069,6 +1096,7 @@ public com.google.protobuf.ByteString getLastRevisionIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1092,6 +1120,7 @@ public Builder setLastRevisionId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1111,6 +1140,7 @@ public Builder clearLastRevisionId() { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index b37d4d936d5a..8c63c701b299 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -41,6 +41,7 @@ public interface SchemaSettingsOrBuilder * @return The schema. */ java.lang.String getSchema(); + /** * * @@ -71,6 +72,7 @@ public interface SchemaSettingsOrBuilder * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); + /** * * @@ -98,6 +100,7 @@ public interface SchemaSettingsOrBuilder * @return The firstRevisionId. */ java.lang.String getFirstRevisionId(); + /** * * @@ -127,6 +130,7 @@ public interface SchemaSettingsOrBuilder * @return The lastRevisionId. */ java.lang.String getLastRevisionId(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 5234521c0367..5161ad85d648 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -74,6 +74,7 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { * SCHEMA_VIEW_UNSPECIFIED = 0; */ public static final int SCHEMA_VIEW_UNSPECIFIED_VALUE = 0; + /** * * @@ -84,6 +85,7 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { * BASIC = 1; */ public static final int BASIC_VALUE = 1; + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index fabd51b78adc..d15e4efb20f6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -33,6 +33,7 @@ public final class SeekRequest extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekRequest) SeekRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use SeekRequest.newBuilder() to construct. private SeekRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -78,6 +79,7 @@ public enum TargetCase private TargetCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -114,6 +116,7 @@ public TargetCase getTargetCase() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -139,6 +142,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -166,6 +170,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { } public static final int TIME_FIELD_NUMBER = 2; + /** * * @@ -191,6 +196,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public boolean hasTime() { return targetCase_ == 2; } + /** * * @@ -219,6 +225,7 @@ public com.google.protobuf.Timestamp getTime() { } return com.google.protobuf.Timestamp.getDefaultInstance(); } + /** * * @@ -247,6 +254,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { } public static final int SNAPSHOT_FIELD_NUMBER = 3; + /** * * @@ -265,6 +273,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { public boolean hasSnapshot() { return targetCase_ == 3; } + /** * * @@ -296,6 +305,7 @@ public java.lang.String getSnapshot() { return s; } } + /** * * @@ -522,6 +532,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -763,6 +774,7 @@ public Builder clearTarget() { private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -787,6 +799,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -811,6 +824,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -834,6 +848,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -853,6 +868,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -883,6 +899,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; + /** * * @@ -908,6 +925,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { public boolean hasTime() { return targetCase_ == 2; } + /** * * @@ -943,6 +961,7 @@ public com.google.protobuf.Timestamp getTime() { return com.google.protobuf.Timestamp.getDefaultInstance(); } } + /** * * @@ -975,6 +994,7 @@ public Builder setTime(com.google.protobuf.Timestamp value) { targetCase_ = 2; return this; } + /** * * @@ -1004,6 +1024,7 @@ public Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue) { targetCase_ = 2; return this; } + /** * * @@ -1044,6 +1065,7 @@ public Builder mergeTime(com.google.protobuf.Timestamp value) { targetCase_ = 2; return this; } + /** * * @@ -1079,6 +1101,7 @@ public Builder clearTime() { } return this; } + /** * * @@ -1101,6 +1124,7 @@ public Builder clearTime() { public com.google.protobuf.Timestamp.Builder getTimeBuilder() { return getTimeFieldBuilder().getBuilder(); } + /** * * @@ -1131,6 +1155,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return com.google.protobuf.Timestamp.getDefaultInstance(); } } + /** * * @@ -1191,6 +1216,7 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { public boolean hasSnapshot() { return targetCase_ == 3; } + /** * * @@ -1223,6 +1249,7 @@ public java.lang.String getSnapshot() { return (java.lang.String) ref; } } + /** * * @@ -1255,6 +1282,7 @@ public com.google.protobuf.ByteString getSnapshotBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1280,6 +1308,7 @@ public Builder setSnapshot(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1303,6 +1332,7 @@ public Builder clearSnapshot() { } return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index 359b6ae0ee0c..b42511c05cf7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -38,6 +38,7 @@ public interface SeekRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -75,6 +76,7 @@ public interface SeekRequestOrBuilder * @return Whether the time field is set. */ boolean hasTime(); + /** * * @@ -97,6 +99,7 @@ public interface SeekRequestOrBuilder * @return The time. */ com.google.protobuf.Timestamp getTime(); + /** * * @@ -134,6 +137,7 @@ public interface SeekRequestOrBuilder * @return Whether the snapshot field is set. */ boolean hasSnapshot(); + /** * * @@ -150,6 +154,7 @@ public interface SeekRequestOrBuilder * @return The snapshot. */ java.lang.String getSnapshot(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 247167769a03..3170e5b2cc5d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -33,6 +33,7 @@ public final class SeekResponse extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekResponse) SeekResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use SeekResponse.newBuilder() to construct. private SeekResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -209,6 +210,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 781585a23676..d06ea822f523 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -37,6 +37,7 @@ public final class Snapshot extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.Snapshot) SnapshotOrBuilder { private static final long serialVersionUID = 0L; + // Use Snapshot.newBuilder() to construct. private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -83,6 +84,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -106,6 +108,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -134,6 +137,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -160,6 +164,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -189,6 +194,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; + /** * * @@ -214,6 +220,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public boolean hasExpireTime() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -239,6 +246,7 @@ public boolean hasExpireTime() { public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } + /** * * @@ -289,6 +297,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -306,12 +315,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -326,6 +337,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -347,6 +359,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -566,6 +579,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -834,6 +848,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -856,6 +871,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -878,6 +894,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -899,6 +916,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -916,6 +934,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -940,6 +959,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object topic_ = ""; + /** * * @@ -965,6 +985,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -990,6 +1011,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1014,6 +1036,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1034,6 +1057,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -1066,6 +1090,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + /** * * @@ -1090,6 +1115,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { public boolean hasExpireTime() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -1120,6 +1146,7 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTimeBuilder_.getMessage(); } } + /** * * @@ -1152,6 +1179,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { onChanged(); return this; } + /** * * @@ -1181,6 +1209,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal onChanged(); return this; } + /** * * @@ -1218,6 +1247,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } return this; } + /** * * @@ -1247,6 +1277,7 @@ public Builder clearExpireTime() { onChanged(); return this; } + /** * * @@ -1271,6 +1302,7 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } + /** * * @@ -1299,6 +1331,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { : expireTime_; } } + /** * * @@ -1360,6 +1393,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -1377,12 +1411,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -1397,6 +1433,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -1418,6 +1455,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -1445,6 +1483,7 @@ public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } + /** * * @@ -1462,12 +1501,14 @@ public Builder removeLabels(java.lang.String key) { internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } + /** * * @@ -1489,6 +1530,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000008; return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index a5606bb50ffb..b24d9441657a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -36,6 +36,7 @@ public interface SnapshotOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -64,6 +65,7 @@ public interface SnapshotOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -102,6 +104,7 @@ public interface SnapshotOrBuilder * @return Whether the expireTime field is set. */ boolean hasExpireTime(); + /** * * @@ -124,6 +127,7 @@ public interface SnapshotOrBuilder * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); + /** * * @@ -156,6 +160,7 @@ public interface SnapshotOrBuilder * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); + /** * * @@ -167,9 +172,11 @@ public interface SnapshotOrBuilder * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); + /** * * @@ -181,6 +188,7 @@ public interface SnapshotOrBuilder * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); + /** * * @@ -196,6 +204,7 @@ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 478c321257a0..017b0d91204c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -35,6 +35,7 @@ public final class StreamingPullRequest extends com.google.protobuf.GeneratedMes // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullRequest) StreamingPullRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use StreamingPullRequest.newBuilder() to construct. private StreamingPullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -73,6 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -101,6 +103,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -135,6 +138,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -154,6 +158,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } + /** * * @@ -173,6 +178,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -193,6 +199,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -218,6 +225,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList modifyDeadlineSeconds_ = emptyIntList(); + /** * * @@ -244,6 +252,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { public java.util.List getModifyDeadlineSecondsList() { return modifyDeadlineSeconds_; } + /** * * @@ -269,6 +278,7 @@ public java.util.List getModifyDeadlineSecondsList() { public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } + /** * * @@ -303,6 +313,7 @@ public int getModifyDeadlineSeconds(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList modifyDeadlineAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -322,6 +333,7 @@ public int getModifyDeadlineSeconds(int index) { public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { return modifyDeadlineAckIds_; } + /** * * @@ -341,6 +353,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } + /** * * @@ -361,6 +374,7 @@ public int getModifyDeadlineAckIdsCount() { public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } + /** * * @@ -384,6 +398,7 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { public static final int STREAM_ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; private int streamAckDeadlineSeconds_ = 0; + /** * * @@ -407,6 +422,7 @@ public int getStreamAckDeadlineSeconds() { @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; + /** * * @@ -435,6 +451,7 @@ public java.lang.String getClientId() { return s; } } + /** * * @@ -466,6 +483,7 @@ public com.google.protobuf.ByteString getClientIdBytes() { public static final int MAX_OUTSTANDING_MESSAGES_FIELD_NUMBER = 7; private long maxOutstandingMessages_ = 0L; + /** * * @@ -492,6 +510,7 @@ public long getMaxOutstandingMessages() { public static final int MAX_OUTSTANDING_BYTES_FIELD_NUMBER = 8; private long maxOutstandingBytes_ = 0L; + /** * * @@ -771,6 +790,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -1088,6 +1108,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object subscription_ = ""; + /** * * @@ -1115,6 +1136,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -1142,6 +1164,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1168,6 +1191,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1190,6 +1214,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -1227,6 +1252,7 @@ private void ensureAckIdsIsMutable() { } bitField0_ |= 0x00000002; } + /** * * @@ -1247,6 +1273,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } + /** * * @@ -1266,6 +1293,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -1286,6 +1314,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -1306,6 +1335,7 @@ public java.lang.String getAckIds(int index) { public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } + /** * * @@ -1334,6 +1364,7 @@ public Builder setAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1361,6 +1392,7 @@ public Builder addAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1385,6 +1417,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -1408,6 +1441,7 @@ public Builder clearAckIds() { onChanged(); return this; } + /** * * @@ -1445,6 +1479,7 @@ private void ensureModifyDeadlineSecondsIsMutable() { } bitField0_ |= 0x00000004; } + /** * * @@ -1471,6 +1506,7 @@ public java.util.List getModifyDeadlineSecondsList() { modifyDeadlineSeconds_.makeImmutable(); return modifyDeadlineSeconds_; } + /** * * @@ -1496,6 +1532,7 @@ public java.util.List getModifyDeadlineSecondsList() { public int getModifyDeadlineSecondsCount() { return modifyDeadlineSeconds_.size(); } + /** * * @@ -1522,6 +1559,7 @@ public int getModifyDeadlineSecondsCount() { public int getModifyDeadlineSeconds(int index) { return modifyDeadlineSeconds_.getInt(index); } + /** * * @@ -1554,6 +1592,7 @@ public Builder setModifyDeadlineSeconds(int index, int value) { onChanged(); return this; } + /** * * @@ -1585,6 +1624,7 @@ public Builder addModifyDeadlineSeconds(int value) { onChanged(); return this; } + /** * * @@ -1616,6 +1656,7 @@ public Builder addAllModifyDeadlineSeconds( onChanged(); return this; } + /** * * @@ -1654,6 +1695,7 @@ private void ensureModifyDeadlineAckIdsIsMutable() { } bitField0_ |= 0x00000008; } + /** * * @@ -1674,6 +1716,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { modifyDeadlineAckIds_.makeImmutable(); return modifyDeadlineAckIds_; } + /** * * @@ -1693,6 +1736,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() { public int getModifyDeadlineAckIdsCount() { return modifyDeadlineAckIds_.size(); } + /** * * @@ -1713,6 +1757,7 @@ public int getModifyDeadlineAckIdsCount() { public java.lang.String getModifyDeadlineAckIds(int index) { return modifyDeadlineAckIds_.get(index); } + /** * * @@ -1733,6 +1778,7 @@ public java.lang.String getModifyDeadlineAckIds(int index) { public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) { return modifyDeadlineAckIds_.getByteString(index); } + /** * * @@ -1761,6 +1807,7 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1788,6 +1835,7 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1812,6 +1860,7 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v onChanged(); return this; } + /** * * @@ -1835,6 +1884,7 @@ public Builder clearModifyDeadlineAckIds() { onChanged(); return this; } + /** * * @@ -1865,6 +1915,7 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value } private int streamAckDeadlineSeconds_; + /** * * @@ -1883,6 +1934,7 @@ public Builder addModifyDeadlineAckIdsBytes(com.google.protobuf.ByteString value public int getStreamAckDeadlineSeconds() { return streamAckDeadlineSeconds_; } + /** * * @@ -1905,6 +1957,7 @@ public Builder setStreamAckDeadlineSeconds(int value) { onChanged(); return this; } + /** * * @@ -1927,6 +1980,7 @@ public Builder clearStreamAckDeadlineSeconds() { } private java.lang.Object clientId_ = ""; + /** * * @@ -1954,6 +2008,7 @@ public java.lang.String getClientId() { return (java.lang.String) ref; } } + /** * * @@ -1981,6 +2036,7 @@ public com.google.protobuf.ByteString getClientIdBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2007,6 +2063,7 @@ public Builder setClientId(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2029,6 +2086,7 @@ public Builder clearClientId() { onChanged(); return this; } + /** * * @@ -2058,6 +2116,7 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { } private long maxOutstandingMessages_; + /** * * @@ -2081,6 +2140,7 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { public long getMaxOutstandingMessages() { return maxOutstandingMessages_; } + /** * * @@ -2108,6 +2168,7 @@ public Builder setMaxOutstandingMessages(long value) { onChanged(); return this; } + /** * * @@ -2135,6 +2196,7 @@ public Builder clearMaxOutstandingMessages() { } private long maxOutstandingBytes_; + /** * * @@ -2158,6 +2220,7 @@ public Builder clearMaxOutstandingMessages() { public long getMaxOutstandingBytes() { return maxOutstandingBytes_; } + /** * * @@ -2185,6 +2248,7 @@ public Builder setMaxOutstandingBytes(long value) { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index b1de4d1b7602..675fc7532dbf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -41,6 +41,7 @@ public interface StreamingPullRequestOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -76,6 +77,7 @@ public interface StreamingPullRequestOrBuilder * @return A list containing the ackIds. */ java.util.List getAckIdsList(); + /** * * @@ -93,6 +95,7 @@ public interface StreamingPullRequestOrBuilder * @return The count of ackIds. */ int getAckIdsCount(); + /** * * @@ -111,6 +114,7 @@ public interface StreamingPullRequestOrBuilder * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); + /** * * @@ -153,6 +157,7 @@ public interface StreamingPullRequestOrBuilder * @return A list containing the modifyDeadlineSeconds. */ java.util.List getModifyDeadlineSecondsList(); + /** * * @@ -176,6 +181,7 @@ public interface StreamingPullRequestOrBuilder * @return The count of modifyDeadlineSeconds. */ int getModifyDeadlineSecondsCount(); + /** * * @@ -218,6 +224,7 @@ public interface StreamingPullRequestOrBuilder * @return A list containing the modifyDeadlineAckIds. */ java.util.List getModifyDeadlineAckIdsList(); + /** * * @@ -235,6 +242,7 @@ public interface StreamingPullRequestOrBuilder * @return The count of modifyDeadlineAckIds. */ int getModifyDeadlineAckIdsCount(); + /** * * @@ -253,6 +261,7 @@ public interface StreamingPullRequestOrBuilder * @return The modifyDeadlineAckIds at the given index. */ java.lang.String getModifyDeadlineAckIds(int index); + /** * * @@ -305,6 +314,7 @@ public interface StreamingPullRequestOrBuilder * @return The clientId. */ java.lang.String getClientId(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 4a9fb25915de..229d1456fe15 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -34,6 +34,7 @@ public final class StreamingPullResponse extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse) StreamingPullResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use StreamingPullResponse.newBuilder() to construct. private StreamingPullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -81,6 +82,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return A list containing the ackIds. */ java.util.List getAckIdsList(); + /** * * @@ -93,6 +95,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The count of ackIds. */ int getAckIdsCount(); + /** * * @@ -106,6 +109,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); + /** * * @@ -133,6 +137,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return A list containing the invalidAckIds. */ java.util.List getInvalidAckIdsList(); + /** * * @@ -146,6 +151,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The count of invalidAckIds. */ int getInvalidAckIdsCount(); + /** * * @@ -160,6 +166,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The invalidAckIds at the given index. */ java.lang.String getInvalidAckIds(int index); + /** * * @@ -187,6 +194,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return A list containing the unorderedAckIds. */ java.util.List getUnorderedAckIdsList(); + /** * * @@ -199,6 +207,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The count of unorderedAckIds. */ int getUnorderedAckIdsCount(); + /** * * @@ -212,6 +221,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The unorderedAckIds at the given index. */ java.lang.String getUnorderedAckIds(int index); + /** * * @@ -240,6 +250,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return A list containing the temporaryFailedAckIds. */ java.util.List getTemporaryFailedAckIdsList(); + /** * * @@ -254,6 +265,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The count of temporaryFailedAckIds. */ int getTemporaryFailedAckIdsCount(); + /** * * @@ -269,6 +281,7 @@ public interface AcknowledgeConfirmationOrBuilder * @return The temporaryFailedAckIds at the given index. */ java.lang.String getTemporaryFailedAckIds(int index); + /** * * @@ -285,6 +298,7 @@ public interface AcknowledgeConfirmationOrBuilder */ com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index); } + /** * * @@ -300,6 +314,7 @@ public static final class AcknowledgeConfirmation extends com.google.protobuf.Ge // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) AcknowledgeConfirmationOrBuilder { private static final long serialVersionUID = 0L; + // Use AcknowledgeConfirmation.newBuilder() to construct. private AcknowledgeConfirmation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -338,6 +353,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -352,6 +368,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } + /** * * @@ -366,6 +383,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -381,6 +399,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -402,6 +421,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -417,6 +437,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { return invalidAckIds_; } + /** * * @@ -432,6 +453,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } + /** * * @@ -448,6 +470,7 @@ public int getInvalidAckIdsCount() { public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } + /** * * @@ -470,6 +493,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -484,6 +508,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { return unorderedAckIds_; } + /** * * @@ -498,6 +523,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { public int getUnorderedAckIdsCount() { return unorderedAckIds_.size(); } + /** * * @@ -513,6 +539,7 @@ public int getUnorderedAckIdsCount() { public java.lang.String getUnorderedAckIds(int index) { return unorderedAckIds_.get(index); } + /** * * @@ -534,6 +561,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -550,6 +578,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { return temporaryFailedAckIds_; } + /** * * @@ -566,6 +595,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } + /** * * @@ -583,6 +613,7 @@ public int getTemporaryFailedAckIdsCount() { public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } + /** * * @@ -820,6 +851,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -1096,6 +1128,7 @@ private void ensureAckIdsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -1111,6 +1144,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } + /** * * @@ -1125,6 +1159,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -1140,6 +1175,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -1155,6 +1191,7 @@ public java.lang.String getAckIds(int index) { public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } + /** * * @@ -1178,6 +1215,7 @@ public Builder setAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1200,6 +1238,7 @@ public Builder addAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1219,6 +1258,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -1237,6 +1277,7 @@ public Builder clearAckIds() { onChanged(); return this; } + /** * * @@ -1270,6 +1311,7 @@ private void ensureInvalidAckIdsIsMutable() { } bitField0_ |= 0x00000002; } + /** * * @@ -1286,6 +1328,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { invalidAckIds_.makeImmutable(); return invalidAckIds_; } + /** * * @@ -1301,6 +1344,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } + /** * * @@ -1317,6 +1361,7 @@ public int getInvalidAckIdsCount() { public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } + /** * * @@ -1333,6 +1378,7 @@ public java.lang.String getInvalidAckIds(int index) { public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { return invalidAckIds_.getByteString(index); } + /** * * @@ -1357,6 +1403,7 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1380,6 +1427,7 @@ public Builder addInvalidAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1400,6 +1448,7 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) onChanged(); return this; } + /** * * @@ -1419,6 +1468,7 @@ public Builder clearInvalidAckIds() { onChanged(); return this; } + /** * * @@ -1453,6 +1503,7 @@ private void ensureUnorderedAckIdsIsMutable() { } bitField0_ |= 0x00000004; } + /** * * @@ -1469,6 +1520,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { unorderedAckIds_.makeImmutable(); return unorderedAckIds_; } + /** * * @@ -1484,6 +1536,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { public int getUnorderedAckIdsCount() { return unorderedAckIds_.size(); } + /** * * @@ -1500,6 +1553,7 @@ public int getUnorderedAckIdsCount() { public java.lang.String getUnorderedAckIds(int index) { return unorderedAckIds_.get(index); } + /** * * @@ -1516,6 +1570,7 @@ public java.lang.String getUnorderedAckIds(int index) { public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { return unorderedAckIds_.getByteString(index); } + /** * * @@ -1540,6 +1595,7 @@ public Builder setUnorderedAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1563,6 +1619,7 @@ public Builder addUnorderedAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1583,6 +1640,7 @@ public Builder addAllUnorderedAckIds(java.lang.Iterable values onChanged(); return this; } + /** * * @@ -1602,6 +1660,7 @@ public Builder clearUnorderedAckIds() { onChanged(); return this; } + /** * * @@ -1637,6 +1696,7 @@ private void ensureTemporaryFailedAckIdsIsMutable() { } bitField0_ |= 0x00000008; } + /** * * @@ -1655,6 +1715,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { temporaryFailedAckIds_.makeImmutable(); return temporaryFailedAckIds_; } + /** * * @@ -1672,6 +1733,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } + /** * * @@ -1690,6 +1752,7 @@ public int getTemporaryFailedAckIdsCount() { public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } + /** * * @@ -1708,6 +1771,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { return temporaryFailedAckIds_.getByteString(index); } + /** * * @@ -1734,6 +1798,7 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -1759,6 +1824,7 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1781,6 +1847,7 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable onChanged(); return this; } + /** * * @@ -1802,6 +1869,7 @@ public Builder clearTemporaryFailedAckIds() { onChanged(); return this; } + /** * * @@ -1913,6 +1981,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return A list containing the ackIds. */ java.util.List getAckIdsList(); + /** * * @@ -1925,6 +1994,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The count of ackIds. */ int getAckIdsCount(); + /** * * @@ -1938,6 +2008,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The ackIds at the given index. */ java.lang.String getAckIds(int index); + /** * * @@ -1965,6 +2036,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return A list containing the invalidAckIds. */ java.util.List getInvalidAckIdsList(); + /** * * @@ -1978,6 +2050,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The count of invalidAckIds. */ int getInvalidAckIdsCount(); + /** * * @@ -1992,6 +2065,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The invalidAckIds at the given index. */ java.lang.String getInvalidAckIds(int index); + /** * * @@ -2021,6 +2095,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return A list containing the temporaryFailedAckIds. */ java.util.List getTemporaryFailedAckIdsList(); + /** * * @@ -2035,6 +2110,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The count of temporaryFailedAckIds. */ int getTemporaryFailedAckIdsCount(); + /** * * @@ -2050,6 +2126,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * @return The temporaryFailedAckIds at the given index. */ java.lang.String getTemporaryFailedAckIds(int index); + /** * * @@ -2066,6 +2143,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder */ com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index); } + /** * * @@ -2082,6 +2160,7 @@ public static final class ModifyAckDeadlineConfirmation // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) ModifyAckDeadlineConfirmationOrBuilder { private static final long serialVersionUID = 0L; + // Use ModifyAckDeadlineConfirmation.newBuilder() to construct. private ModifyAckDeadlineConfirmation( com.google.protobuf.GeneratedMessageV3.Builder builder) { @@ -2121,6 +2200,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -2135,6 +2215,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public com.google.protobuf.ProtocolStringList getAckIdsList() { return ackIds_; } + /** * * @@ -2149,6 +2230,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -2164,6 +2246,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -2185,6 +2268,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -2200,6 +2284,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { return invalidAckIds_; } + /** * * @@ -2215,6 +2300,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } + /** * * @@ -2231,6 +2317,7 @@ public int getInvalidAckIdsCount() { public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } + /** * * @@ -2253,6 +2340,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** * * @@ -2269,6 +2357,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { return temporaryFailedAckIds_; } + /** * * @@ -2285,6 +2374,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } + /** * * @@ -2302,6 +2392,7 @@ public int getTemporaryFailedAckIdsCount() { public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } + /** * * @@ -2529,6 +2620,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -2787,6 +2879,7 @@ private void ensureAckIdsIsMutable() { } bitField0_ |= 0x00000001; } + /** * * @@ -2802,6 +2895,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { ackIds_.makeImmutable(); return ackIds_; } + /** * * @@ -2816,6 +2910,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { public int getAckIdsCount() { return ackIds_.size(); } + /** * * @@ -2831,6 +2926,7 @@ public int getAckIdsCount() { public java.lang.String getAckIds(int index) { return ackIds_.get(index); } + /** * * @@ -2846,6 +2942,7 @@ public java.lang.String getAckIds(int index) { public com.google.protobuf.ByteString getAckIdsBytes(int index) { return ackIds_.getByteString(index); } + /** * * @@ -2869,6 +2966,7 @@ public Builder setAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -2891,6 +2989,7 @@ public Builder addAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2910,6 +3009,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { onChanged(); return this; } + /** * * @@ -2928,6 +3028,7 @@ public Builder clearAckIds() { onChanged(); return this; } + /** * * @@ -2961,6 +3062,7 @@ private void ensureInvalidAckIdsIsMutable() { } bitField0_ |= 0x00000002; } + /** * * @@ -2977,6 +3079,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { invalidAckIds_.makeImmutable(); return invalidAckIds_; } + /** * * @@ -2992,6 +3095,7 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { public int getInvalidAckIdsCount() { return invalidAckIds_.size(); } + /** * * @@ -3008,6 +3112,7 @@ public int getInvalidAckIdsCount() { public java.lang.String getInvalidAckIds(int index) { return invalidAckIds_.get(index); } + /** * * @@ -3024,6 +3129,7 @@ public java.lang.String getInvalidAckIds(int index) { public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { return invalidAckIds_.getByteString(index); } + /** * * @@ -3048,6 +3154,7 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -3071,6 +3178,7 @@ public Builder addInvalidAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3091,6 +3199,7 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) onChanged(); return this; } + /** * * @@ -3110,6 +3219,7 @@ public Builder clearInvalidAckIds() { onChanged(); return this; } + /** * * @@ -3145,6 +3255,7 @@ private void ensureTemporaryFailedAckIdsIsMutable() { } bitField0_ |= 0x00000004; } + /** * * @@ -3163,6 +3274,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { temporaryFailedAckIds_.makeImmutable(); return temporaryFailedAckIds_; } + /** * * @@ -3180,6 +3292,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { public int getTemporaryFailedAckIdsCount() { return temporaryFailedAckIds_.size(); } + /** * * @@ -3198,6 +3311,7 @@ public int getTemporaryFailedAckIdsCount() { public java.lang.String getTemporaryFailedAckIds(int index) { return temporaryFailedAckIds_.get(index); } + /** * * @@ -3216,6 +3330,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { return temporaryFailedAckIds_.getByteString(index); } + /** * * @@ -3242,6 +3357,7 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { onChanged(); return this; } + /** * * @@ -3267,6 +3383,7 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3289,6 +3406,7 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable onChanged(); return this; } + /** * * @@ -3310,6 +3428,7 @@ public Builder clearTemporaryFailedAckIds() { onChanged(); return this; } + /** * * @@ -3438,6 +3557,7 @@ public interface SubscriptionPropertiesOrBuilder */ boolean getMessageOrderingEnabled(); } + /** * * @@ -3452,6 +3572,7 @@ public static final class SubscriptionProperties extends com.google.protobuf.Gen // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) SubscriptionPropertiesOrBuilder { private static final long serialVersionUID = 0L; + // Use SubscriptionProperties.newBuilder() to construct. private SubscriptionProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -3482,6 +3603,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int EXACTLY_ONCE_DELIVERY_ENABLED_FIELD_NUMBER = 1; private boolean exactlyOnceDeliveryEnabled_ = false; + /** * * @@ -3502,6 +3624,7 @@ public boolean getExactlyOnceDeliveryEnabled() { public static final int MESSAGE_ORDERING_ENABLED_FIELD_NUMBER = 2; private boolean messageOrderingEnabled_ = false; + /** * * @@ -3691,6 +3814,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -3896,6 +4020,7 @@ public Builder mergeFrom( private int bitField0_; private boolean exactlyOnceDeliveryEnabled_; + /** * * @@ -3913,6 +4038,7 @@ public Builder mergeFrom( public boolean getExactlyOnceDeliveryEnabled() { return exactlyOnceDeliveryEnabled_; } + /** * * @@ -3934,6 +4060,7 @@ public Builder setExactlyOnceDeliveryEnabled(boolean value) { onChanged(); return this; } + /** * * @@ -3955,6 +4082,7 @@ public Builder clearExactlyOnceDeliveryEnabled() { } private boolean messageOrderingEnabled_; + /** * * @@ -3970,6 +4098,7 @@ public Builder clearExactlyOnceDeliveryEnabled() { public boolean getMessageOrderingEnabled() { return messageOrderingEnabled_; } + /** * * @@ -3989,6 +4118,7 @@ public Builder setMessageOrderingEnabled(boolean value) { onChanged(); return this; } + /** * * @@ -4079,6 +4209,7 @@ public com.google.protobuf.Parser getParserForType() { @SuppressWarnings("serial") private java.util.List receivedMessages_; + /** * * @@ -4094,6 +4225,7 @@ public com.google.protobuf.Parser getParserForType() { public java.util.List getReceivedMessagesList() { return receivedMessages_; } + /** * * @@ -4110,6 +4242,7 @@ public java.util.List getReceivedMessagesL getReceivedMessagesOrBuilderList() { return receivedMessages_; } + /** * * @@ -4125,6 +4258,7 @@ public java.util.List getReceivedMessagesL public int getReceivedMessagesCount() { return receivedMessages_.size(); } + /** * * @@ -4140,6 +4274,7 @@ public int getReceivedMessagesCount() { public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessages_.get(index); } + /** * * @@ -4159,6 +4294,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde public static final int ACKNOWLEDGE_CONFIRMATION_FIELD_NUMBER = 5; private com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledgeConfirmation_; + /** * * @@ -4177,6 +4313,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde public boolean hasAcknowledgeConfirmation() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -4198,6 +4335,7 @@ public boolean hasAcknowledgeConfirmation() { ? com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.getDefaultInstance() : acknowledgeConfirmation_; } + /** * * @@ -4221,6 +4359,7 @@ public boolean hasAcknowledgeConfirmation() { public static final int MODIFY_ACK_DEADLINE_CONFIRMATION_FIELD_NUMBER = 3; private com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modifyAckDeadlineConfirmation_; + /** * * @@ -4239,6 +4378,7 @@ public boolean hasAcknowledgeConfirmation() { public boolean hasModifyAckDeadlineConfirmation() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -4261,6 +4401,7 @@ public boolean hasModifyAckDeadlineConfirmation() { .getDefaultInstance() : modifyAckDeadlineConfirmation_; } + /** * * @@ -4284,6 +4425,7 @@ public boolean hasModifyAckDeadlineConfirmation() { public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER = 4; private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscriptionProperties_; + /** * * @@ -4301,6 +4443,7 @@ public boolean hasModifyAckDeadlineConfirmation() { public boolean hasSubscriptionProperties() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -4321,6 +4464,7 @@ public boolean hasSubscriptionProperties() { ? com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.getDefaultInstance() : subscriptionProperties_; } + /** * * @@ -4549,6 +4693,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -4892,6 +5037,7 @@ public java.util.List getReceivedMessagesL return receivedMessagesBuilder_.getMessageList(); } } + /** * * @@ -4910,6 +5056,7 @@ public int getReceivedMessagesCount() { return receivedMessagesBuilder_.getCount(); } } + /** * * @@ -4928,6 +5075,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { return receivedMessagesBuilder_.getMessage(index); } } + /** * * @@ -4952,6 +5100,7 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa } return this; } + /** * * @@ -4974,6 +5123,7 @@ public Builder setReceivedMessages( } return this; } + /** * * @@ -4998,6 +5148,7 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { } return this; } + /** * * @@ -5022,6 +5173,7 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa } return this; } + /** * * @@ -5044,6 +5196,7 @@ public Builder addReceivedMessages( } return this; } + /** * * @@ -5066,6 +5219,7 @@ public Builder addReceivedMessages( } return this; } + /** * * @@ -5088,6 +5242,7 @@ public Builder addAllReceivedMessages( } return this; } + /** * * @@ -5109,6 +5264,7 @@ public Builder clearReceivedMessages() { } return this; } + /** * * @@ -5130,6 +5286,7 @@ public Builder removeReceivedMessages(int index) { } return this; } + /** * * @@ -5144,6 +5301,7 @@ public Builder removeReceivedMessages(int index) { public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { return getReceivedMessagesFieldBuilder().getBuilder(index); } + /** * * @@ -5162,6 +5320,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde return receivedMessagesBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -5181,6 +5340,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde return java.util.Collections.unmodifiableList(receivedMessages_); } } + /** * * @@ -5196,6 +5356,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() return getReceivedMessagesFieldBuilder() .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } + /** * * @@ -5211,6 +5372,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i return getReceivedMessagesFieldBuilder() .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } + /** * * @@ -5254,6 +5416,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder> acknowledgeConfirmationBuilder_; + /** * * @@ -5271,6 +5434,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i public boolean hasAcknowledgeConfirmation() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -5296,6 +5460,7 @@ public boolean hasAcknowledgeConfirmation() { return acknowledgeConfirmationBuilder_.getMessage(); } } + /** * * @@ -5322,6 +5487,7 @@ public Builder setAcknowledgeConfirmation( onChanged(); return this; } + /** * * @@ -5346,6 +5512,7 @@ public Builder setAcknowledgeConfirmation( onChanged(); return this; } + /** * * @@ -5379,6 +5546,7 @@ public Builder mergeAcknowledgeConfirmation( } return this; } + /** * * @@ -5401,6 +5569,7 @@ public Builder clearAcknowledgeConfirmation() { onChanged(); return this; } + /** * * @@ -5419,6 +5588,7 @@ public Builder clearAcknowledgeConfirmation() { onChanged(); return getAcknowledgeConfirmationFieldBuilder().getBuilder(); } + /** * * @@ -5442,6 +5612,7 @@ public Builder clearAcknowledgeConfirmation() { : acknowledgeConfirmation_; } } + /** * * @@ -5478,6 +5649,7 @@ public Builder clearAcknowledgeConfirmation() { com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder> modifyAckDeadlineConfirmationBuilder_; + /** * * @@ -5495,6 +5667,7 @@ public Builder clearAcknowledgeConfirmation() { public boolean hasModifyAckDeadlineConfirmation() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -5520,6 +5693,7 @@ public boolean hasModifyAckDeadlineConfirmation() { return modifyAckDeadlineConfirmationBuilder_.getMessage(); } } + /** * * @@ -5546,6 +5720,7 @@ public Builder setModifyAckDeadlineConfirmation( onChanged(); return this; } + /** * * @@ -5570,6 +5745,7 @@ public Builder setModifyAckDeadlineConfirmation( onChanged(); return this; } + /** * * @@ -5603,6 +5779,7 @@ public Builder mergeModifyAckDeadlineConfirmation( } return this; } + /** * * @@ -5625,6 +5802,7 @@ public Builder clearModifyAckDeadlineConfirmation() { onChanged(); return this; } + /** * * @@ -5643,6 +5821,7 @@ public Builder clearModifyAckDeadlineConfirmation() { onChanged(); return getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(); } + /** * * @@ -5666,6 +5845,7 @@ public Builder clearModifyAckDeadlineConfirmation() { : modifyAckDeadlineConfirmation_; } } + /** * * @@ -5702,6 +5882,7 @@ public Builder clearModifyAckDeadlineConfirmation() { com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> subscriptionPropertiesBuilder_; + /** * * @@ -5718,6 +5899,7 @@ public Builder clearModifyAckDeadlineConfirmation() { public boolean hasSubscriptionProperties() { return ((bitField0_ & 0x00000008) != 0); } + /** * * @@ -5741,6 +5923,7 @@ public boolean hasSubscriptionProperties() { return subscriptionPropertiesBuilder_.getMessage(); } } + /** * * @@ -5766,6 +5949,7 @@ public Builder setSubscriptionProperties( onChanged(); return this; } + /** * * @@ -5788,6 +5972,7 @@ public Builder setSubscriptionProperties( onChanged(); return this; } + /** * * @@ -5820,6 +6005,7 @@ public Builder mergeSubscriptionProperties( } return this; } + /** * * @@ -5841,6 +6027,7 @@ public Builder clearSubscriptionProperties() { onChanged(); return this; } + /** * * @@ -5858,6 +6045,7 @@ public Builder clearSubscriptionProperties() { onChanged(); return getSubscriptionPropertiesFieldBuilder().getBuilder(); } + /** * * @@ -5879,6 +6067,7 @@ public Builder clearSubscriptionProperties() { : subscriptionProperties_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 40089d18c296..a547f4e59bf8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -36,6 +36,7 @@ public interface StreamingPullResponseOrBuilder * */ java.util.List getReceivedMessagesList(); + /** * * @@ -48,6 +49,7 @@ public interface StreamingPullResponseOrBuilder * */ com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index); + /** * * @@ -60,6 +62,7 @@ public interface StreamingPullResponseOrBuilder * */ int getReceivedMessagesCount(); + /** * * @@ -73,6 +76,7 @@ public interface StreamingPullResponseOrBuilder */ java.util.List getReceivedMessagesOrBuilderList(); + /** * * @@ -101,6 +105,7 @@ public interface StreamingPullResponseOrBuilder * @return Whether the acknowledgeConfirmation field is set. */ boolean hasAcknowledgeConfirmation(); + /** * * @@ -116,6 +121,7 @@ public interface StreamingPullResponseOrBuilder * @return The acknowledgeConfirmation. */ com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation(); + /** * * @@ -146,6 +152,7 @@ public interface StreamingPullResponseOrBuilder * @return Whether the modifyAckDeadlineConfirmation field is set. */ boolean hasModifyAckDeadlineConfirmation(); + /** * * @@ -162,6 +169,7 @@ public interface StreamingPullResponseOrBuilder */ com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation(); + /** * * @@ -191,6 +199,7 @@ public interface StreamingPullResponseOrBuilder * @return Whether the subscriptionProperties field is set. */ boolean hasSubscriptionProperties(); + /** * * @@ -205,6 +214,7 @@ public interface StreamingPullResponseOrBuilder * @return The subscriptionProperties. */ com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties getSubscriptionProperties(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 31581f253f34..fb8d9a7167f1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -35,6 +35,7 @@ public final class Subscription extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription) SubscriptionOrBuilder { private static final long serialVersionUID = 0L; + // Use Subscription.newBuilder() to construct. private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -136,6 +137,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -146,6 +148,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -261,6 +264,7 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * @return The listing. */ java.lang.String getListing(); + /** * * @@ -290,6 +294,7 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * @return The subscription. */ java.lang.String getSubscription(); + /** * * @@ -305,6 +310,7 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder */ com.google.protobuf.ByteString getSubscriptionBytes(); } + /** * * @@ -321,6 +327,7 @@ public static final class AnalyticsHubSubscriptionInfo // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) AnalyticsHubSubscriptionInfoOrBuilder { private static final long serialVersionUID = 0L; + // Use AnalyticsHubSubscriptionInfo.newBuilder() to construct. private AnalyticsHubSubscriptionInfo( com.google.protobuf.GeneratedMessageV3.Builder builder) { @@ -357,6 +364,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object listing_ = ""; + /** * * @@ -382,6 +390,7 @@ public java.lang.String getListing() { return s; } } + /** * * @@ -412,6 +421,7 @@ public com.google.protobuf.ByteString getListingBytes() { @SuppressWarnings("serial") private volatile java.lang.Object subscription_ = ""; + /** * * @@ -437,6 +447,7 @@ public java.lang.String getSubscription() { return s; } } + /** * * @@ -633,6 +644,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** * * @@ -840,6 +852,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object listing_ = ""; + /** * * @@ -864,6 +877,7 @@ public java.lang.String getListing() { return (java.lang.String) ref; } } + /** * * @@ -888,6 +902,7 @@ public com.google.protobuf.ByteString getListingBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -911,6 +926,7 @@ public Builder setListing(java.lang.String value) { onChanged(); return this; } + /** * * @@ -930,6 +946,7 @@ public Builder clearListing() { onChanged(); return this; } + /** * * @@ -956,6 +973,7 @@ public Builder setListingBytes(com.google.protobuf.ByteString value) { } private java.lang.Object subscription_ = ""; + /** * * @@ -980,6 +998,7 @@ public java.lang.String getSubscription() { return (java.lang.String) ref; } } + /** * * @@ -1004,6 +1023,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1027,6 +1047,7 @@ public Builder setSubscription(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1046,6 +1067,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -1143,6 +1165,7 @@ public com.google.protobuf.Parser getParserForType @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -1171,6 +1194,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -1204,6 +1228,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; + /** * * @@ -1231,6 +1256,7 @@ public java.lang.String getTopic() { return s; } } + /** * * @@ -1261,6 +1287,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public static final int PUSH_CONFIG_FIELD_NUMBER = 4; private com.google.pubsub.v1.PushConfig pushConfig_; + /** * * @@ -1278,6 +1305,7 @@ public com.google.protobuf.ByteString getTopicBytes() { public boolean hasPushConfig() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -1295,6 +1323,7 @@ public boolean hasPushConfig() { public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfig_ == null ? com.google.pubsub.v1.PushConfig.getDefaultInstance() : pushConfig_; } + /** * * @@ -1313,6 +1342,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { public static final int BIGQUERY_CONFIG_FIELD_NUMBER = 18; private com.google.pubsub.v1.BigQueryConfig bigqueryConfig_; + /** * * @@ -1331,6 +1361,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { public boolean hasBigqueryConfig() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -1351,6 +1382,7 @@ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { ? com.google.pubsub.v1.BigQueryConfig.getDefaultInstance() : bigqueryConfig_; } + /** * * @@ -1372,6 +1404,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() public static final int CLOUD_STORAGE_CONFIG_FIELD_NUMBER = 22; private com.google.pubsub.v1.CloudStorageConfig cloudStorageConfig_; + /** * * @@ -1390,6 +1423,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() public boolean hasCloudStorageConfig() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -1410,6 +1444,7 @@ public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { ? com.google.pubsub.v1.CloudStorageConfig.getDefaultInstance() : cloudStorageConfig_; } + /** * * @@ -1431,6 +1466,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; private int ackDeadlineSeconds_ = 0; + /** * * @@ -1468,6 +1504,7 @@ public int getAckDeadlineSeconds() { public static final int RETAIN_ACKED_MESSAGES_FIELD_NUMBER = 7; private boolean retainAckedMessages_ = false; + /** * * @@ -1491,6 +1528,7 @@ public boolean getRetainAckedMessages() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; + /** * * @@ -1512,6 +1550,7 @@ public boolean getRetainAckedMessages() { public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000008) != 0); } + /** * * @@ -1535,6 +1574,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; } + /** * * @@ -1583,6 +1623,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -1600,12 +1641,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -1620,6 +1663,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -1641,6 +1685,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -1665,6 +1710,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int ENABLE_MESSAGE_ORDERING_FIELD_NUMBER = 10; private boolean enableMessageOrdering_ = false; + /** * * @@ -1686,6 +1732,7 @@ public boolean getEnableMessageOrdering() { public static final int EXPIRATION_POLICY_FIELD_NUMBER = 11; private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; + /** * * @@ -1709,6 +1756,7 @@ public boolean getEnableMessageOrdering() { public boolean hasExpirationPolicy() { return ((bitField0_ & 0x00000010) != 0); } + /** * * @@ -1734,6 +1782,7 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { ? com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance() : expirationPolicy_; } + /** * * @@ -1762,6 +1811,7 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; + /** * * @@ -1789,6 +1839,7 @@ public java.lang.String getFilter() { return s; } } + /** * * @@ -1819,6 +1870,7 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int DEAD_LETTER_POLICY_FIELD_NUMBER = 13; private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; + /** * * @@ -1843,6 +1895,7 @@ public com.google.protobuf.ByteString getFilterBytes() { public boolean hasDeadLetterPolicy() { return ((bitField0_ & 0x00000020) != 0); } + /** * * @@ -1869,6 +1922,7 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { ? com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance() : deadLetterPolicy_; } + /** * * @@ -1896,6 +1950,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild public static final int RETRY_POLICY_FIELD_NUMBER = 14; private com.google.pubsub.v1.RetryPolicy retryPolicy_; + /** * * @@ -1919,6 +1974,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild public boolean hasRetryPolicy() { return ((bitField0_ & 0x00000040) != 0); } + /** * * @@ -1944,6 +2000,7 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { ? com.google.pubsub.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; } + /** * * @@ -1970,6 +2027,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { public static final int DETACHED_FIELD_NUMBER = 15; private boolean detached_ = false; + /** * * @@ -1992,6 +2050,7 @@ public boolean getDetached() { public static final int ENABLE_EXACTLY_ONCE_DELIVERY_FIELD_NUMBER = 16; private boolean enableExactlyOnceDelivery_ = false; + /** * * @@ -2021,6 +2080,7 @@ public boolean getEnableExactlyOnceDelivery() { public static final int TOPIC_MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 17; private com.google.protobuf.Duration topicMessageRetentionDuration_; + /** * * @@ -2043,6 +2103,7 @@ public boolean getEnableExactlyOnceDelivery() { public boolean hasTopicMessageRetentionDuration() { return ((bitField0_ & 0x00000080) != 0); } + /** * * @@ -2067,6 +2128,7 @@ public com.google.protobuf.Duration getTopicMessageRetentionDuration() { ? com.google.protobuf.Duration.getDefaultInstance() : topicMessageRetentionDuration_; } + /** * * @@ -2092,6 +2154,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB public static final int STATE_FIELD_NUMBER = 19; private int state_ = 0; + /** * * @@ -2110,6 +2173,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB public int getStateValue() { return state_; } + /** * * @@ -2134,6 +2198,7 @@ public com.google.pubsub.v1.Subscription.State getState() { public static final int ANALYTICS_HUB_SUBSCRIPTION_INFO_FIELD_NUMBER = 23; private com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analyticsHubSubscriptionInfo_; + /** * * @@ -2152,6 +2217,7 @@ public com.google.pubsub.v1.Subscription.State getState() { public boolean hasAnalyticsHubSubscriptionInfo() { return ((bitField0_ & 0x00000100) != 0); } + /** * * @@ -2173,6 +2239,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { ? com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.getDefaultInstance() : analyticsHubSubscriptionInfo_; } + /** * * @@ -2197,6 +2264,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { @SuppressWarnings("serial") private java.util.List messageTransforms_; + /** * * @@ -2213,6 +2281,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { public java.util.List getMessageTransformsList() { return messageTransforms_; } + /** * * @@ -2230,6 +2299,7 @@ public java.util.List getMessageTransform getMessageTransformsOrBuilderList() { return messageTransforms_; } + /** * * @@ -2246,6 +2316,7 @@ public java.util.List getMessageTransform public int getMessageTransformsCount() { return messageTransforms_.size(); } + /** * * @@ -2262,6 +2333,7 @@ public int getMessageTransformsCount() { public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { return messageTransforms_.get(index); } + /** * * @@ -2672,6 +2744,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -3269,6 +3342,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -3296,6 +3370,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -3323,6 +3398,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3349,6 +3425,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3371,6 +3448,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -3400,6 +3478,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object topic_ = ""; + /** * * @@ -3426,6 +3505,7 @@ public java.lang.String getTopic() { return (java.lang.String) ref; } } + /** * * @@ -3452,6 +3532,7 @@ public com.google.protobuf.ByteString getTopicBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -3477,6 +3558,7 @@ public Builder setTopic(java.lang.String value) { onChanged(); return this; } + /** * * @@ -3498,6 +3580,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -3531,6 +3614,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> pushConfigBuilder_; + /** * * @@ -3547,6 +3631,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { public boolean hasPushConfig() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -3569,6 +3654,7 @@ public com.google.pubsub.v1.PushConfig getPushConfig() { return pushConfigBuilder_.getMessage(); } } + /** * * @@ -3593,6 +3679,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig value) { onChanged(); return this; } + /** * * @@ -3614,6 +3701,7 @@ public Builder setPushConfig(com.google.pubsub.v1.PushConfig.Builder builderForV onChanged(); return this; } + /** * * @@ -3643,6 +3731,7 @@ public Builder mergePushConfig(com.google.pubsub.v1.PushConfig value) { } return this; } + /** * * @@ -3664,6 +3753,7 @@ public Builder clearPushConfig() { onChanged(); return this; } + /** * * @@ -3680,6 +3770,7 @@ public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { onChanged(); return getPushConfigFieldBuilder().getBuilder(); } + /** * * @@ -3700,6 +3791,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { : pushConfig_; } } + /** * * @@ -3734,6 +3826,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { com.google.pubsub.v1.BigQueryConfig.Builder, com.google.pubsub.v1.BigQueryConfigOrBuilder> bigqueryConfigBuilder_; + /** * * @@ -3751,6 +3844,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { public boolean hasBigqueryConfig() { return ((bitField0_ & 0x00000008) != 0); } + /** * * @@ -3774,6 +3868,7 @@ public com.google.pubsub.v1.BigQueryConfig getBigqueryConfig() { return bigqueryConfigBuilder_.getMessage(); } } + /** * * @@ -3799,6 +3894,7 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { onChanged(); return this; } + /** * * @@ -3821,6 +3917,7 @@ public Builder setBigqueryConfig(com.google.pubsub.v1.BigQueryConfig.Builder bui onChanged(); return this; } + /** * * @@ -3851,6 +3948,7 @@ public Builder mergeBigqueryConfig(com.google.pubsub.v1.BigQueryConfig value) { } return this; } + /** * * @@ -3873,6 +3971,7 @@ public Builder clearBigqueryConfig() { onChanged(); return this; } + /** * * @@ -3890,6 +3989,7 @@ public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { onChanged(); return getBigqueryConfigFieldBuilder().getBuilder(); } + /** * * @@ -3911,6 +4011,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() : bigqueryConfig_; } } + /** * * @@ -3946,6 +4047,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() com.google.pubsub.v1.CloudStorageConfig.Builder, com.google.pubsub.v1.CloudStorageConfigOrBuilder> cloudStorageConfigBuilder_; + /** * * @@ -3963,6 +4065,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() public boolean hasCloudStorageConfig() { return ((bitField0_ & 0x00000010) != 0); } + /** * * @@ -3986,6 +4089,7 @@ public com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig() { return cloudStorageConfigBuilder_.getMessage(); } } + /** * * @@ -4011,6 +4115,7 @@ public Builder setCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig val onChanged(); return this; } + /** * * @@ -4034,6 +4139,7 @@ public Builder setCloudStorageConfig( onChanged(); return this; } + /** * * @@ -4065,6 +4171,7 @@ public Builder mergeCloudStorageConfig(com.google.pubsub.v1.CloudStorageConfig v } return this; } + /** * * @@ -4087,6 +4194,7 @@ public Builder clearCloudStorageConfig() { onChanged(); return this; } + /** * * @@ -4104,6 +4212,7 @@ public com.google.pubsub.v1.CloudStorageConfig.Builder getCloudStorageConfigBuil onChanged(); return getCloudStorageConfigFieldBuilder().getBuilder(); } + /** * * @@ -4125,6 +4234,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB : cloudStorageConfig_; } } + /** * * @@ -4155,6 +4265,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB } private int ackDeadlineSeconds_; + /** * * @@ -4189,6 +4300,7 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB public int getAckDeadlineSeconds() { return ackDeadlineSeconds_; } + /** * * @@ -4227,6 +4339,7 @@ public Builder setAckDeadlineSeconds(int value) { onChanged(); return this; } + /** * * @@ -4265,6 +4378,7 @@ public Builder clearAckDeadlineSeconds() { } private boolean retainAckedMessages_; + /** * * @@ -4285,6 +4399,7 @@ public Builder clearAckDeadlineSeconds() { public boolean getRetainAckedMessages() { return retainAckedMessages_; } + /** * * @@ -4309,6 +4424,7 @@ public Builder setRetainAckedMessages(boolean value) { onChanged(); return this; } + /** * * @@ -4338,6 +4454,7 @@ public Builder clearRetainAckedMessages() { com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> messageRetentionDurationBuilder_; + /** * * @@ -4358,6 +4475,7 @@ public Builder clearRetainAckedMessages() { public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000080) != 0); } + /** * * @@ -4384,6 +4502,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { return messageRetentionDurationBuilder_.getMessage(); } } + /** * * @@ -4412,6 +4531,7 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -4438,6 +4558,7 @@ public Builder setMessageRetentionDuration( onChanged(); return this; } + /** * * @@ -4471,6 +4592,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) } return this; } + /** * * @@ -4496,6 +4618,7 @@ public Builder clearMessageRetentionDuration() { onChanged(); return this; } + /** * * @@ -4516,6 +4639,7 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() onChanged(); return getMessageRetentionDurationFieldBuilder().getBuilder(); } + /** * * @@ -4540,6 +4664,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde : messageRetentionDuration_; } } + /** * * @@ -4597,6 +4722,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -4614,12 +4740,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -4634,6 +4762,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -4655,6 +4784,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -4682,6 +4812,7 @@ public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } + /** * * @@ -4699,12 +4830,14 @@ public Builder removeLabels(java.lang.String key) { internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } + /** * * @@ -4726,6 +4859,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000100; return this; } + /** * * @@ -4743,6 +4877,7 @@ public Builder putAllLabels(java.util.Map va } private boolean enableMessageOrdering_; + /** * * @@ -4761,6 +4896,7 @@ public Builder putAllLabels(java.util.Map va public boolean getEnableMessageOrdering() { return enableMessageOrdering_; } + /** * * @@ -4783,6 +4919,7 @@ public Builder setEnableMessageOrdering(boolean value) { onChanged(); return this; } + /** * * @@ -4810,6 +4947,7 @@ public Builder clearEnableMessageOrdering() { com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> expirationPolicyBuilder_; + /** * * @@ -4832,6 +4970,7 @@ public Builder clearEnableMessageOrdering() { public boolean hasExpirationPolicy() { return ((bitField0_ & 0x00000400) != 0); } + /** * * @@ -4860,6 +4999,7 @@ public com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy() { return expirationPolicyBuilder_.getMessage(); } } + /** * * @@ -4890,6 +5030,7 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) onChanged(); return this; } + /** * * @@ -4918,6 +5059,7 @@ public Builder setExpirationPolicy( onChanged(); return this; } + /** * * @@ -4953,6 +5095,7 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value } return this; } + /** * * @@ -4980,6 +5123,7 @@ public Builder clearExpirationPolicy() { onChanged(); return this; } + /** * * @@ -5002,6 +5146,7 @@ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder( onChanged(); return getExpirationPolicyFieldBuilder().getBuilder(); } + /** * * @@ -5028,6 +5173,7 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild : expirationPolicy_; } } + /** * * @@ -5063,6 +5209,7 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild } private java.lang.Object filter_ = ""; + /** * * @@ -5089,6 +5236,7 @@ public java.lang.String getFilter() { return (java.lang.String) ref; } } + /** * * @@ -5115,6 +5263,7 @@ public com.google.protobuf.ByteString getFilterBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -5140,6 +5289,7 @@ public Builder setFilter(java.lang.String value) { onChanged(); return this; } + /** * * @@ -5161,6 +5311,7 @@ public Builder clearFilter() { onChanged(); return this; } + /** * * @@ -5194,6 +5345,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder> deadLetterPolicyBuilder_; + /** * * @@ -5217,6 +5369,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { public boolean hasDeadLetterPolicy() { return ((bitField0_ & 0x00001000) != 0); } + /** * * @@ -5246,6 +5399,7 @@ public com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy() { return deadLetterPolicyBuilder_.getMessage(); } } + /** * * @@ -5277,6 +5431,7 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) onChanged(); return this; } + /** * * @@ -5306,6 +5461,7 @@ public Builder setDeadLetterPolicy( onChanged(); return this; } + /** * * @@ -5342,6 +5498,7 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value } return this; } + /** * * @@ -5370,6 +5527,7 @@ public Builder clearDeadLetterPolicy() { onChanged(); return this; } + /** * * @@ -5393,6 +5551,7 @@ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder( onChanged(); return getDeadLetterPolicyFieldBuilder().getBuilder(); } + /** * * @@ -5420,6 +5579,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild : deadLetterPolicy_; } } + /** * * @@ -5461,6 +5621,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder> retryPolicyBuilder_; + /** * * @@ -5483,6 +5644,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild public boolean hasRetryPolicy() { return ((bitField0_ & 0x00002000) != 0); } + /** * * @@ -5511,6 +5673,7 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { return retryPolicyBuilder_.getMessage(); } } + /** * * @@ -5541,6 +5704,7 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { onChanged(); return this; } + /** * * @@ -5568,6 +5732,7 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo onChanged(); return this; } + /** * * @@ -5603,6 +5768,7 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { } return this; } + /** * * @@ -5630,6 +5796,7 @@ public Builder clearRetryPolicy() { onChanged(); return this; } + /** * * @@ -5652,6 +5819,7 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { onChanged(); return getRetryPolicyFieldBuilder().getBuilder(); } + /** * * @@ -5678,6 +5846,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { : retryPolicy_; } } + /** * * @@ -5713,6 +5882,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { } private boolean detached_; + /** * * @@ -5732,6 +5902,7 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { public boolean getDetached() { return detached_; } + /** * * @@ -5755,6 +5926,7 @@ public Builder setDetached(boolean value) { onChanged(); return this; } + /** * * @@ -5778,6 +5950,7 @@ public Builder clearDetached() { } private boolean enableExactlyOnceDelivery_; + /** * * @@ -5805,6 +5978,7 @@ public Builder clearDetached() { public boolean getEnableExactlyOnceDelivery() { return enableExactlyOnceDelivery_; } + /** * * @@ -5836,6 +6010,7 @@ public Builder setEnableExactlyOnceDelivery(boolean value) { onChanged(); return this; } + /** * * @@ -5872,6 +6047,7 @@ public Builder clearEnableExactlyOnceDelivery() { com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> topicMessageRetentionDurationBuilder_; + /** * * @@ -5893,6 +6069,7 @@ public Builder clearEnableExactlyOnceDelivery() { public boolean hasTopicMessageRetentionDuration() { return ((bitField0_ & 0x00010000) != 0); } + /** * * @@ -5920,6 +6097,7 @@ public com.google.protobuf.Duration getTopicMessageRetentionDuration() { return topicMessageRetentionDurationBuilder_.getMessage(); } } + /** * * @@ -5949,6 +6127,7 @@ public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration val onChanged(); return this; } + /** * * @@ -5976,6 +6155,7 @@ public Builder setTopicMessageRetentionDuration( onChanged(); return this; } + /** * * @@ -6011,6 +6191,7 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v } return this; } + /** * * @@ -6037,6 +6218,7 @@ public Builder clearTopicMessageRetentionDuration() { onChanged(); return this; } + /** * * @@ -6058,6 +6240,7 @@ public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuil onChanged(); return getTopicMessageRetentionDurationFieldBuilder().getBuilder(); } + /** * * @@ -6083,6 +6266,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB : topicMessageRetentionDuration_; } } + /** * * @@ -6117,6 +6301,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB } private int state_ = 0; + /** * * @@ -6135,6 +6320,7 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB public int getStateValue() { return state_; } + /** * * @@ -6156,6 +6342,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -6176,6 +6363,7 @@ public com.google.pubsub.v1.Subscription.State getState() { com.google.pubsub.v1.Subscription.State.forNumber(state_); return result == null ? com.google.pubsub.v1.Subscription.State.UNRECOGNIZED : result; } + /** * * @@ -6200,6 +6388,7 @@ public Builder setState(com.google.pubsub.v1.Subscription.State value) { onChanged(); return this; } + /** * * @@ -6228,6 +6417,7 @@ public Builder clearState() { com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder> analyticsHubSubscriptionInfoBuilder_; + /** * * @@ -6245,6 +6435,7 @@ public Builder clearState() { public boolean hasAnalyticsHubSubscriptionInfo() { return ((bitField0_ & 0x00040000) != 0); } + /** * * @@ -6269,6 +6460,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { return analyticsHubSubscriptionInfoBuilder_.getMessage(); } } + /** * * @@ -6295,6 +6487,7 @@ public Builder setAnalyticsHubSubscriptionInfo( onChanged(); return this; } + /** * * @@ -6318,6 +6511,7 @@ public Builder setAnalyticsHubSubscriptionInfo( onChanged(); return this; } + /** * * @@ -6351,6 +6545,7 @@ public Builder mergeAnalyticsHubSubscriptionInfo( } return this; } + /** * * @@ -6373,6 +6568,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { onChanged(); return this; } + /** * * @@ -6391,6 +6587,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { onChanged(); return getAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(); } + /** * * @@ -6413,6 +6610,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { : analyticsHubSubscriptionInfo_; } } + /** * * @@ -6478,6 +6676,7 @@ public java.util.List getMessageTransform return messageTransformsBuilder_.getMessageList(); } } + /** * * @@ -6497,6 +6696,7 @@ public int getMessageTransformsCount() { return messageTransformsBuilder_.getCount(); } } + /** * * @@ -6516,6 +6716,7 @@ public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { return messageTransformsBuilder_.getMessage(index); } } + /** * * @@ -6541,6 +6742,7 @@ public Builder setMessageTransforms(int index, com.google.pubsub.v1.MessageTrans } return this; } + /** * * @@ -6564,6 +6766,7 @@ public Builder setMessageTransforms( } return this; } + /** * * @@ -6589,6 +6792,7 @@ public Builder addMessageTransforms(com.google.pubsub.v1.MessageTransform value) } return this; } + /** * * @@ -6614,6 +6818,7 @@ public Builder addMessageTransforms(int index, com.google.pubsub.v1.MessageTrans } return this; } + /** * * @@ -6637,6 +6842,7 @@ public Builder addMessageTransforms( } return this; } + /** * * @@ -6660,6 +6866,7 @@ public Builder addMessageTransforms( } return this; } + /** * * @@ -6683,6 +6890,7 @@ public Builder addAllMessageTransforms( } return this; } + /** * * @@ -6705,6 +6913,7 @@ public Builder clearMessageTransforms() { } return this; } + /** * * @@ -6727,6 +6936,7 @@ public Builder removeMessageTransforms(int index) { } return this; } + /** * * @@ -6742,6 +6952,7 @@ public Builder removeMessageTransforms(int index) { public com.google.pubsub.v1.MessageTransform.Builder getMessageTransformsBuilder(int index) { return getMessageTransformsFieldBuilder().getBuilder(index); } + /** * * @@ -6761,6 +6972,7 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return messageTransformsBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -6781,6 +6993,7 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return java.util.Collections.unmodifiableList(messageTransforms_); } } + /** * * @@ -6797,6 +7010,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return getMessageTransformsFieldBuilder() .addBuilder(com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } + /** * * @@ -6813,6 +7027,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return getMessageTransformsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 8e9b3000c874..6723327cea8b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -41,6 +41,7 @@ public interface SubscriptionOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -75,6 +76,7 @@ public interface SubscriptionOrBuilder * @return The topic. */ java.lang.String getTopic(); + /** * * @@ -106,6 +108,7 @@ public interface SubscriptionOrBuilder * @return Whether the pushConfig field is set. */ boolean hasPushConfig(); + /** * * @@ -120,6 +123,7 @@ public interface SubscriptionOrBuilder * @return The pushConfig. */ com.google.pubsub.v1.PushConfig getPushConfig(); + /** * * @@ -148,6 +152,7 @@ public interface SubscriptionOrBuilder * @return Whether the bigqueryConfig field is set. */ boolean hasBigqueryConfig(); + /** * * @@ -163,6 +168,7 @@ public interface SubscriptionOrBuilder * @return The bigqueryConfig. */ com.google.pubsub.v1.BigQueryConfig getBigqueryConfig(); + /** * * @@ -192,6 +198,7 @@ public interface SubscriptionOrBuilder * @return Whether the cloudStorageConfig field is set. */ boolean hasCloudStorageConfig(); + /** * * @@ -207,6 +214,7 @@ public interface SubscriptionOrBuilder * @return The cloudStorageConfig. */ com.google.pubsub.v1.CloudStorageConfig getCloudStorageConfig(); + /** * * @@ -289,6 +297,7 @@ public interface SubscriptionOrBuilder * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); + /** * * @@ -307,6 +316,7 @@ public interface SubscriptionOrBuilder * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); + /** * * @@ -335,6 +345,7 @@ public interface SubscriptionOrBuilder * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); + /** * * @@ -346,9 +357,11 @@ public interface SubscriptionOrBuilder * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); + /** * * @@ -360,6 +373,7 @@ public interface SubscriptionOrBuilder * map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); + /** * * @@ -375,6 +389,7 @@ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * @@ -423,6 +438,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the expirationPolicy field is set. */ boolean hasExpirationPolicy(); + /** * * @@ -443,6 +459,7 @@ java.lang.String getLabelsOrDefault( * @return The expirationPolicy. */ com.google.pubsub.v1.ExpirationPolicy getExpirationPolicy(); + /** * * @@ -478,6 +495,7 @@ java.lang.String getLabelsOrDefault( * @return The filter. */ java.lang.String getFilter(); + /** * * @@ -516,6 +534,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the deadLetterPolicy field is set. */ boolean hasDeadLetterPolicy(); + /** * * @@ -537,6 +556,7 @@ java.lang.String getLabelsOrDefault( * @return The deadLetterPolicy. */ com.google.pubsub.v1.DeadLetterPolicy getDeadLetterPolicy(); + /** * * @@ -577,6 +597,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); + /** * * @@ -597,6 +618,7 @@ java.lang.String getLabelsOrDefault( * @return The retryPolicy. */ com.google.pubsub.v1.RetryPolicy getRetryPolicy(); + /** * * @@ -676,6 +698,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the topicMessageRetentionDuration field is set. */ boolean hasTopicMessageRetentionDuration(); + /** * * @@ -695,6 +718,7 @@ java.lang.String getLabelsOrDefault( * @return The topicMessageRetentionDuration. */ com.google.protobuf.Duration getTopicMessageRetentionDuration(); + /** * * @@ -728,6 +752,7 @@ java.lang.String getLabelsOrDefault( * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -759,6 +784,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the analyticsHubSubscriptionInfo field is set. */ boolean hasAnalyticsHubSubscriptionInfo(); + /** * * @@ -774,6 +800,7 @@ java.lang.String getLabelsOrDefault( * @return The analyticsHubSubscriptionInfo. */ com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo getAnalyticsHubSubscriptionInfo(); + /** * * @@ -802,6 +829,7 @@ java.lang.String getLabelsOrDefault( * */ java.util.List getMessageTransformsList(); + /** * * @@ -815,6 +843,7 @@ java.lang.String getLabelsOrDefault( * */ com.google.pubsub.v1.MessageTransform getMessageTransforms(int index); + /** * * @@ -828,6 +857,7 @@ java.lang.String getLabelsOrDefault( * */ int getMessageTransformsCount(); + /** * * @@ -842,6 +872,7 @@ java.lang.String getLabelsOrDefault( */ java.util.List getMessageTransformsOrBuilderList(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 5ee6a077246c..5ab4f70cf327 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -33,6 +33,7 @@ public final class Topic extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(message_implements:google.pubsub.v1.Topic) TopicOrBuilder { private static final long serialVersionUID = 0L; + // Use Topic.newBuilder() to construct. private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -131,6 +132,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; + /** * * @@ -141,6 +143,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * ACTIVE = 1; */ public static final int ACTIVE_VALUE = 1; + /** * * @@ -242,6 +245,7 @@ private State(int value) { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * * @@ -270,6 +274,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -325,6 +330,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -342,12 +348,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -362,6 +370,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -383,6 +392,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -407,6 +417,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int MESSAGE_STORAGE_POLICY_FIELD_NUMBER = 3; private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_; + /** * * @@ -426,6 +437,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public boolean hasMessageStoragePolicy() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -447,6 +459,7 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { ? com.google.pubsub.v1.MessageStoragePolicy.getDefaultInstance() : messageStoragePolicy_; } + /** * * @@ -471,6 +484,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; + /** * * @@ -497,6 +511,7 @@ public java.lang.String getKmsKeyName() { return s; } } + /** * * @@ -526,6 +541,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public static final int SCHEMA_SETTINGS_FIELD_NUMBER = 6; private com.google.pubsub.v1.SchemaSettings schemaSettings_; + /** * * @@ -543,6 +559,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public boolean hasSchemaSettings() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -562,6 +579,7 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { ? com.google.pubsub.v1.SchemaSettings.getDefaultInstance() : schemaSettings_; } + /** * * @@ -582,6 +600,7 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() public static final int SATISFIES_PZS_FIELD_NUMBER = 7; private boolean satisfiesPzs_ = false; + /** * * @@ -601,6 +620,7 @@ public boolean getSatisfiesPzs() { public static final int MESSAGE_RETENTION_DURATION_FIELD_NUMBER = 8; private com.google.protobuf.Duration messageRetentionDuration_; + /** * * @@ -626,6 +646,7 @@ public boolean getSatisfiesPzs() { public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -653,6 +674,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { ? com.google.protobuf.Duration.getDefaultInstance() : messageRetentionDuration_; } + /** * * @@ -681,6 +703,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde public static final int STATE_FIELD_NUMBER = 9; private int state_ = 0; + /** * * @@ -697,6 +720,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde public int getStateValue() { return state_; } + /** * * @@ -717,6 +741,7 @@ public com.google.pubsub.v1.Topic.State getState() { public static final int INGESTION_DATA_SOURCE_SETTINGS_FIELD_NUMBER = 10; private com.google.pubsub.v1.IngestionDataSourceSettings ingestionDataSourceSettings_; + /** * * @@ -734,6 +759,7 @@ public com.google.pubsub.v1.Topic.State getState() { public boolean hasIngestionDataSourceSettings() { return ((bitField0_ & 0x00000008) != 0); } + /** * * @@ -753,6 +779,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe ? com.google.pubsub.v1.IngestionDataSourceSettings.getDefaultInstance() : ingestionDataSourceSettings_; } + /** * * @@ -776,6 +803,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe @SuppressWarnings("serial") private java.util.List messageTransforms_; + /** * * @@ -792,6 +820,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe public java.util.List getMessageTransformsList() { return messageTransforms_; } + /** * * @@ -809,6 +838,7 @@ public java.util.List getMessageTransform getMessageTransformsOrBuilderList() { return messageTransforms_; } + /** * * @@ -825,6 +855,7 @@ public java.util.List getMessageTransform public int getMessageTransformsCount() { return messageTransforms_.size(); } + /** * * @@ -841,6 +872,7 @@ public int getMessageTransformsCount() { public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { return messageTransforms_.get(index); } + /** * * @@ -1133,6 +1165,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -1554,6 +1587,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * * @@ -1581,6 +1615,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -1608,6 +1643,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1634,6 +1670,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1656,6 +1693,7 @@ public Builder clearName() { onChanged(); return this; } + /** * * @@ -1709,6 +1747,7 @@ private com.google.protobuf.MapField interna public int getLabelsCount() { return internalGetLabels().getMap().size(); } + /** * * @@ -1726,12 +1765,14 @@ public boolean containsLabels(java.lang.String key) { } return internalGetLabels().getMap().containsKey(key); } + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } + /** * * @@ -1746,6 +1787,7 @@ public java.util.Map getLabels() { public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } + /** * * @@ -1767,6 +1809,7 @@ public java.util.Map getLabelsMap() { java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } + /** * * @@ -1794,6 +1837,7 @@ public Builder clearLabels() { internalGetMutableLabels().getMutableMap().clear(); return this; } + /** * * @@ -1811,12 +1855,14 @@ public Builder removeLabels(java.lang.String key) { internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { bitField0_ |= 0x00000002; return internalGetMutableLabels().getMutableMap(); } + /** * * @@ -1838,6 +1884,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { bitField0_ |= 0x00000002; return this; } + /** * * @@ -1860,6 +1907,7 @@ public Builder putAllLabels(java.util.Map va com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> messageStoragePolicyBuilder_; + /** * * @@ -1878,6 +1926,7 @@ public Builder putAllLabels(java.util.Map va public boolean hasMessageStoragePolicy() { return ((bitField0_ & 0x00000004) != 0); } + /** * * @@ -1902,6 +1951,7 @@ public com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy() { return messageStoragePolicyBuilder_.getMessage(); } } + /** * * @@ -1928,6 +1978,7 @@ public Builder setMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePolicy onChanged(); return this; } + /** * * @@ -1952,6 +2003,7 @@ public Builder setMessageStoragePolicy( onChanged(); return this; } + /** * * @@ -1984,6 +2036,7 @@ public Builder mergeMessageStoragePolicy(com.google.pubsub.v1.MessageStoragePoli } return this; } + /** * * @@ -2007,6 +2060,7 @@ public Builder clearMessageStoragePolicy() { onChanged(); return this; } + /** * * @@ -2025,6 +2079,7 @@ public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicy onChanged(); return getMessageStoragePolicyFieldBuilder().getBuilder(); } + /** * * @@ -2047,6 +2102,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic : messageStoragePolicy_; } } + /** * * @@ -2078,6 +2134,7 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic } private java.lang.Object kmsKeyName_ = ""; + /** * * @@ -2103,6 +2160,7 @@ public java.lang.String getKmsKeyName() { return (java.lang.String) ref; } } + /** * * @@ -2128,6 +2186,7 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -2152,6 +2211,7 @@ public Builder setKmsKeyName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -2172,6 +2232,7 @@ public Builder clearKmsKeyName() { onChanged(); return this; } + /** * * @@ -2204,6 +2265,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder> schemaSettingsBuilder_; + /** * * @@ -2220,6 +2282,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { public boolean hasSchemaSettings() { return ((bitField0_ & 0x00000010) != 0); } + /** * * @@ -2242,6 +2305,7 @@ public com.google.pubsub.v1.SchemaSettings getSchemaSettings() { return schemaSettingsBuilder_.getMessage(); } } + /** * * @@ -2266,6 +2330,7 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { onChanged(); return this; } + /** * * @@ -2287,6 +2352,7 @@ public Builder setSchemaSettings(com.google.pubsub.v1.SchemaSettings.Builder bui onChanged(); return this; } + /** * * @@ -2316,6 +2382,7 @@ public Builder mergeSchemaSettings(com.google.pubsub.v1.SchemaSettings value) { } return this; } + /** * * @@ -2337,6 +2404,7 @@ public Builder clearSchemaSettings() { onChanged(); return this; } + /** * * @@ -2353,6 +2421,7 @@ public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { onChanged(); return getSchemaSettingsFieldBuilder().getBuilder(); } + /** * * @@ -2373,6 +2442,7 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() : schemaSettings_; } } + /** * * @@ -2402,6 +2472,7 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() } private boolean satisfiesPzs_; + /** * * @@ -2418,6 +2489,7 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() public boolean getSatisfiesPzs() { return satisfiesPzs_; } + /** * * @@ -2438,6 +2510,7 @@ public Builder setSatisfiesPzs(boolean value) { onChanged(); return this; } + /** * * @@ -2463,6 +2536,7 @@ public Builder clearSatisfiesPzs() { com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> messageRetentionDurationBuilder_; + /** * * @@ -2487,6 +2561,7 @@ public Builder clearSatisfiesPzs() { public boolean hasMessageRetentionDuration() { return ((bitField0_ & 0x00000040) != 0); } + /** * * @@ -2517,6 +2592,7 @@ public com.google.protobuf.Duration getMessageRetentionDuration() { return messageRetentionDurationBuilder_.getMessage(); } } + /** * * @@ -2549,6 +2625,7 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { onChanged(); return this; } + /** * * @@ -2579,6 +2656,7 @@ public Builder setMessageRetentionDuration( onChanged(); return this; } + /** * * @@ -2616,6 +2694,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) } return this; } + /** * * @@ -2645,6 +2724,7 @@ public Builder clearMessageRetentionDuration() { onChanged(); return this; } + /** * * @@ -2669,6 +2749,7 @@ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() onChanged(); return getMessageRetentionDurationFieldBuilder().getBuilder(); } + /** * * @@ -2697,6 +2778,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde : messageRetentionDuration_; } } + /** * * @@ -2734,6 +2816,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde } private int state_ = 0; + /** * * @@ -2750,6 +2833,7 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde public int getStateValue() { return state_; } + /** * * @@ -2769,6 +2853,7 @@ public Builder setStateValue(int value) { onChanged(); return this; } + /** * * @@ -2786,6 +2871,7 @@ public com.google.pubsub.v1.Topic.State getState() { com.google.pubsub.v1.Topic.State result = com.google.pubsub.v1.Topic.State.forNumber(state_); return result == null ? com.google.pubsub.v1.Topic.State.UNRECOGNIZED : result; } + /** * * @@ -2808,6 +2894,7 @@ public Builder setState(com.google.pubsub.v1.Topic.State value) { onChanged(); return this; } + /** * * @@ -2833,6 +2920,7 @@ public Builder clearState() { com.google.pubsub.v1.IngestionDataSourceSettings.Builder, com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> ingestionDataSourceSettingsBuilder_; + /** * * @@ -2849,6 +2937,7 @@ public Builder clearState() { public boolean hasIngestionDataSourceSettings() { return ((bitField0_ & 0x00000100) != 0); } + /** * * @@ -2871,6 +2960,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSe return ingestionDataSourceSettingsBuilder_.getMessage(); } } + /** * * @@ -2896,6 +2986,7 @@ public Builder setIngestionDataSourceSettings( onChanged(); return this; } + /** * * @@ -2918,6 +3009,7 @@ public Builder setIngestionDataSourceSettings( onChanged(); return this; } + /** * * @@ -2949,6 +3041,7 @@ public Builder mergeIngestionDataSourceSettings( } return this; } + /** * * @@ -2970,6 +3063,7 @@ public Builder clearIngestionDataSourceSettings() { onChanged(); return this; } + /** * * @@ -2987,6 +3081,7 @@ public Builder clearIngestionDataSourceSettings() { onChanged(); return getIngestionDataSourceSettingsFieldBuilder().getBuilder(); } + /** * * @@ -3008,6 +3103,7 @@ public Builder clearIngestionDataSourceSettings() { : ingestionDataSourceSettings_; } } + /** * * @@ -3072,6 +3168,7 @@ public java.util.List getMessageTransform return messageTransformsBuilder_.getMessageList(); } } + /** * * @@ -3091,6 +3188,7 @@ public int getMessageTransformsCount() { return messageTransformsBuilder_.getCount(); } } + /** * * @@ -3110,6 +3208,7 @@ public com.google.pubsub.v1.MessageTransform getMessageTransforms(int index) { return messageTransformsBuilder_.getMessage(index); } } + /** * * @@ -3135,6 +3234,7 @@ public Builder setMessageTransforms(int index, com.google.pubsub.v1.MessageTrans } return this; } + /** * * @@ -3158,6 +3258,7 @@ public Builder setMessageTransforms( } return this; } + /** * * @@ -3183,6 +3284,7 @@ public Builder addMessageTransforms(com.google.pubsub.v1.MessageTransform value) } return this; } + /** * * @@ -3208,6 +3310,7 @@ public Builder addMessageTransforms(int index, com.google.pubsub.v1.MessageTrans } return this; } + /** * * @@ -3231,6 +3334,7 @@ public Builder addMessageTransforms( } return this; } + /** * * @@ -3254,6 +3358,7 @@ public Builder addMessageTransforms( } return this; } + /** * * @@ -3277,6 +3382,7 @@ public Builder addAllMessageTransforms( } return this; } + /** * * @@ -3299,6 +3405,7 @@ public Builder clearMessageTransforms() { } return this; } + /** * * @@ -3321,6 +3428,7 @@ public Builder removeMessageTransforms(int index) { } return this; } + /** * * @@ -3336,6 +3444,7 @@ public Builder removeMessageTransforms(int index) { public com.google.pubsub.v1.MessageTransform.Builder getMessageTransformsBuilder(int index) { return getMessageTransformsFieldBuilder().getBuilder(index); } + /** * * @@ -3355,6 +3464,7 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return messageTransformsBuilder_.getMessageOrBuilder(index); } } + /** * * @@ -3375,6 +3485,7 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return java.util.Collections.unmodifiableList(messageTransforms_); } } + /** * * @@ -3391,6 +3502,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return getMessageTransformsFieldBuilder() .addBuilder(com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } + /** * * @@ -3407,6 +3519,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return getMessageTransformsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index 6c805af8821a..aec5434316e4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -217,7 +217,8 @@ public Builder setTopic(String topic) { private Builder(TopicName topicName) { Preconditions.checkArgument( Objects.equals(topicName.pathTemplate, PROJECT_TOPIC), - "toBuilder is only supported when TopicName has the pattern of projects/{project}/topics/{topic}"); + "toBuilder is only supported when TopicName has the pattern of" + + " projects/{project}/topics/{topic}"); this.project = topicName.project; this.topic = topicName.topic; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 3af29ee9f507..3614d1be5e0b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -41,6 +41,7 @@ public interface TopicOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -70,6 +71,7 @@ public interface TopicOrBuilder * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); + /** * * @@ -81,9 +83,11 @@ public interface TopicOrBuilder * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); + /** * * @@ -95,6 +99,7 @@ public interface TopicOrBuilder * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); + /** * * @@ -110,6 +115,7 @@ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); + /** * * @@ -138,6 +144,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the messageStoragePolicy field is set. */ boolean hasMessageStoragePolicy(); + /** * * @@ -154,6 +161,7 @@ java.lang.String getLabelsOrDefault( * @return The messageStoragePolicy. */ com.google.pubsub.v1.MessageStoragePolicy getMessageStoragePolicy(); + /** * * @@ -184,6 +192,7 @@ java.lang.String getLabelsOrDefault( * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); + /** * * @@ -214,6 +223,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the schemaSettings field is set. */ boolean hasSchemaSettings(); + /** * * @@ -228,6 +238,7 @@ java.lang.String getLabelsOrDefault( * @return The schemaSettings. */ com.google.pubsub.v1.SchemaSettings getSchemaSettings(); + /** * * @@ -277,6 +288,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the messageRetentionDuration field is set. */ boolean hasMessageRetentionDuration(); + /** * * @@ -299,6 +311,7 @@ java.lang.String getLabelsOrDefault( * @return The messageRetentionDuration. */ com.google.protobuf.Duration getMessageRetentionDuration(); + /** * * @@ -333,6 +346,7 @@ java.lang.String getLabelsOrDefault( * @return The enum numeric value on the wire for state. */ int getStateValue(); + /** * * @@ -361,6 +375,7 @@ java.lang.String getLabelsOrDefault( * @return Whether the ingestionDataSourceSettings field is set. */ boolean hasIngestionDataSourceSettings(); + /** * * @@ -375,6 +390,7 @@ java.lang.String getLabelsOrDefault( * @return The ingestionDataSourceSettings. */ com.google.pubsub.v1.IngestionDataSourceSettings getIngestionDataSourceSettings(); + /** * * @@ -402,6 +418,7 @@ java.lang.String getLabelsOrDefault( * */ java.util.List getMessageTransformsList(); + /** * * @@ -415,6 +432,7 @@ java.lang.String getLabelsOrDefault( * */ com.google.pubsub.v1.MessageTransform getMessageTransforms(int index); + /** * * @@ -428,6 +446,7 @@ java.lang.String getLabelsOrDefault( * */ int getMessageTransformsCount(); + /** * * @@ -442,6 +461,7 @@ java.lang.String getLabelsOrDefault( */ java.util.List getMessageTransformsOrBuilderList(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index ee08197714dd..6873bc0ffe0a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -33,6 +33,7 @@ public final class UpdateSnapshotRequest extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSnapshotRequest) UpdateSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use UpdateSnapshotRequest.newBuilder() to construct. private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int SNAPSHOT_FIELD_NUMBER = 1; private com.google.pubsub.v1.Snapshot snapshot_; + /** * * @@ -79,6 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasSnapshot() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -94,6 +97,7 @@ public boolean hasSnapshot() { public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } + /** * * @@ -110,6 +114,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; + /** * * @@ -127,6 +132,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -144,6 +150,7 @@ public boolean hasUpdateMask() { public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } + /** * * @@ -338,6 +345,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -559,6 +567,7 @@ public Builder mergeFrom( com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> snapshotBuilder_; + /** * * @@ -574,6 +583,7 @@ public Builder mergeFrom( public boolean hasSnapshot() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -593,6 +603,7 @@ public com.google.pubsub.v1.Snapshot getSnapshot() { return snapshotBuilder_.getMessage(); } } + /** * * @@ -616,6 +627,7 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot value) { onChanged(); return this; } + /** * * @@ -636,6 +648,7 @@ public Builder setSnapshot(com.google.pubsub.v1.Snapshot.Builder builderForValue onChanged(); return this; } + /** * * @@ -664,6 +677,7 @@ public Builder mergeSnapshot(com.google.pubsub.v1.Snapshot value) { } return this; } + /** * * @@ -684,6 +698,7 @@ public Builder clearSnapshot() { onChanged(); return this; } + /** * * @@ -699,6 +714,7 @@ public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { onChanged(); return getSnapshotFieldBuilder().getBuilder(); } + /** * * @@ -716,6 +732,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { return snapshot_ == null ? com.google.pubsub.v1.Snapshot.getDefaultInstance() : snapshot_; } } + /** * * @@ -749,6 +766,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** * * @@ -765,6 +783,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -787,6 +806,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMaskBuilder_.getMessage(); } } + /** * * @@ -811,6 +831,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { onChanged(); return this; } + /** * * @@ -832,6 +853,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal onChanged(); return this; } + /** * * @@ -861,6 +883,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } return this; } + /** * * @@ -882,6 +905,7 @@ public Builder clearUpdateMask() { onChanged(); return this; } + /** * * @@ -898,6 +922,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } + /** * * @@ -918,6 +943,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { : updateMask_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 29eace61f83d..8f693411c8a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -36,6 +36,7 @@ public interface UpdateSnapshotRequestOrBuilder * @return Whether the snapshot field is set. */ boolean hasSnapshot(); + /** * * @@ -48,6 +49,7 @@ public interface UpdateSnapshotRequestOrBuilder * @return The snapshot. */ com.google.pubsub.v1.Snapshot getSnapshot(); + /** * * @@ -73,6 +75,7 @@ public interface UpdateSnapshotRequestOrBuilder * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); + /** * * @@ -87,6 +90,7 @@ public interface UpdateSnapshotRequestOrBuilder * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 26db4ac40e14..e1d91cdb6159 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -33,6 +33,7 @@ public final class UpdateSubscriptionRequest extends com.google.protobuf.Generat // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSubscriptionRequest) UpdateSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use UpdateSubscriptionRequest.newBuilder() to construct. private UpdateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int SUBSCRIPTION_FIELD_NUMBER = 1; private com.google.pubsub.v1.Subscription subscription_; + /** * * @@ -81,6 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -100,6 +103,7 @@ public com.google.pubsub.v1.Subscription getSubscription() { ? com.google.pubsub.v1.Subscription.getDefaultInstance() : subscription_; } + /** * * @@ -120,6 +124,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; + /** * * @@ -137,6 +142,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -154,6 +160,7 @@ public boolean hasUpdateMask() { public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } + /** * * @@ -348,6 +355,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -570,6 +578,7 @@ public Builder mergeFrom( com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> subscriptionBuilder_; + /** * * @@ -586,6 +595,7 @@ public Builder mergeFrom( public boolean hasSubscription() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -608,6 +618,7 @@ public com.google.pubsub.v1.Subscription getSubscription() { return subscriptionBuilder_.getMessage(); } } + /** * * @@ -632,6 +643,7 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription value) { onChanged(); return this; } + /** * * @@ -653,6 +665,7 @@ public Builder setSubscription(com.google.pubsub.v1.Subscription.Builder builder onChanged(); return this; } + /** * * @@ -682,6 +695,7 @@ public Builder mergeSubscription(com.google.pubsub.v1.Subscription value) { } return this; } + /** * * @@ -703,6 +717,7 @@ public Builder clearSubscription() { onChanged(); return this; } + /** * * @@ -719,6 +734,7 @@ public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { onChanged(); return getSubscriptionFieldBuilder().getBuilder(); } + /** * * @@ -739,6 +755,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { : subscription_; } } + /** * * @@ -773,6 +790,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** * * @@ -789,6 +807,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -811,6 +830,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMaskBuilder_.getMessage(); } } + /** * * @@ -835,6 +855,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { onChanged(); return this; } + /** * * @@ -856,6 +877,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal onChanged(); return this; } + /** * * @@ -885,6 +907,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } return this; } + /** * * @@ -906,6 +929,7 @@ public Builder clearUpdateMask() { onChanged(); return this; } + /** * * @@ -922,6 +946,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } + /** * * @@ -942,6 +967,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { : updateMask_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 4e269b66b5a0..b11c76dbc8b1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -38,6 +38,7 @@ public interface UpdateSubscriptionRequestOrBuilder * @return Whether the subscription field is set. */ boolean hasSubscription(); + /** * * @@ -52,6 +53,7 @@ public interface UpdateSubscriptionRequestOrBuilder * @return The subscription. */ com.google.pubsub.v1.Subscription getSubscription(); + /** * * @@ -79,6 +81,7 @@ public interface UpdateSubscriptionRequestOrBuilder * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); + /** * * @@ -93,6 +96,7 @@ public interface UpdateSubscriptionRequestOrBuilder * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 881978774dfe..9ac03519fa5d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -33,6 +33,7 @@ public final class UpdateTopicRequest extends com.google.protobuf.GeneratedMessa // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateTopicRequest) UpdateTopicRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use UpdateTopicRequest.newBuilder() to construct. private UpdateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -64,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int bitField0_; public static final int TOPIC_FIELD_NUMBER = 1; private com.google.pubsub.v1.Topic topic_; + /** * * @@ -79,6 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -94,6 +97,7 @@ public boolean hasTopic() { public com.google.pubsub.v1.Topic getTopic() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } + /** * * @@ -110,6 +114,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; + /** * * @@ -130,6 +135,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -150,6 +156,7 @@ public boolean hasUpdateMask() { public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } + /** * * @@ -346,6 +353,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -567,6 +575,7 @@ public Builder mergeFrom( com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> topicBuilder_; + /** * * @@ -581,6 +590,7 @@ public Builder mergeFrom( public boolean hasTopic() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -599,6 +609,7 @@ public com.google.pubsub.v1.Topic getTopic() { return topicBuilder_.getMessage(); } } + /** * * @@ -621,6 +632,7 @@ public Builder setTopic(com.google.pubsub.v1.Topic value) { onChanged(); return this; } + /** * * @@ -640,6 +652,7 @@ public Builder setTopic(com.google.pubsub.v1.Topic.Builder builderForValue) { onChanged(); return this; } + /** * * @@ -667,6 +680,7 @@ public Builder mergeTopic(com.google.pubsub.v1.Topic value) { } return this; } + /** * * @@ -686,6 +700,7 @@ public Builder clearTopic() { onChanged(); return this; } + /** * * @@ -700,6 +715,7 @@ public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { onChanged(); return getTopicFieldBuilder().getBuilder(); } + /** * * @@ -716,6 +732,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { return topic_ == null ? com.google.pubsub.v1.Topic.getDefaultInstance() : topic_; } } + /** * * @@ -747,6 +764,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + /** * * @@ -766,6 +784,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -791,6 +810,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMaskBuilder_.getMessage(); } } + /** * * @@ -818,6 +838,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { onChanged(); return this; } + /** * * @@ -842,6 +863,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal onChanged(); return this; } + /** * * @@ -874,6 +896,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { } return this; } + /** * * @@ -898,6 +921,7 @@ public Builder clearUpdateMask() { onChanged(); return this; } + /** * * @@ -917,6 +941,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } + /** * * @@ -940,6 +965,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { : updateMask_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index d8f1585fe35b..c5824230184f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -36,6 +36,7 @@ public interface UpdateTopicRequestOrBuilder * @return Whether the topic field is set. */ boolean hasTopic(); + /** * * @@ -48,6 +49,7 @@ public interface UpdateTopicRequestOrBuilder * @return The topic. */ com.google.pubsub.v1.Topic getTopic(); + /** * * @@ -76,6 +78,7 @@ public interface UpdateTopicRequestOrBuilder * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); + /** * * @@ -93,6 +96,7 @@ public interface UpdateTopicRequestOrBuilder * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index da740bab710e..5211f514fbe7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -33,6 +33,7 @@ public final class ValidateMessageRequest extends com.google.protobuf.GeneratedM // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageRequest) ValidateMessageRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ValidateMessageRequest.newBuilder() to construct. private ValidateMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -82,6 +83,7 @@ public enum SchemaSpecCase private SchemaSpecCase(int value) { this.value = value; } + /** * @param value The number of the enum to look for. * @return The enum associated with the given number. @@ -118,6 +120,7 @@ public SchemaSpecCase getSchemaSpecCase() { @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; + /** * * @@ -144,6 +147,7 @@ public java.lang.String getParent() { return s; } } + /** * * @@ -172,6 +176,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int NAME_FIELD_NUMBER = 2; + /** * * @@ -188,6 +193,7 @@ public com.google.protobuf.ByteString getParentBytes() { public boolean hasName() { return schemaSpecCase_ == 2; } + /** * * @@ -217,6 +223,7 @@ public java.lang.String getName() { return s; } } + /** * * @@ -248,6 +255,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SCHEMA_FIELD_NUMBER = 3; + /** * * @@ -263,6 +271,7 @@ public com.google.protobuf.ByteString getNameBytes() { public boolean hasSchema() { return schemaSpecCase_ == 3; } + /** * * @@ -281,6 +290,7 @@ public com.google.pubsub.v1.Schema getSchema() { } return com.google.pubsub.v1.Schema.getDefaultInstance(); } + /** * * @@ -300,6 +310,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { public static final int MESSAGE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; + /** * * @@ -318,6 +329,7 @@ public com.google.protobuf.ByteString getMessage() { public static final int ENCODING_FIELD_NUMBER = 5; private int encoding_ = 0; + /** * * @@ -333,6 +345,7 @@ public com.google.protobuf.ByteString getMessage() { public int getEncodingValue() { return encoding_; } + /** * * @@ -564,6 +577,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -832,6 +846,7 @@ public Builder clearSchemaSpec() { private int bitField0_; private java.lang.Object parent_ = ""; + /** * * @@ -857,6 +872,7 @@ public java.lang.String getParent() { return (java.lang.String) ref; } } + /** * * @@ -882,6 +898,7 @@ public com.google.protobuf.ByteString getParentBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -906,6 +923,7 @@ public Builder setParent(java.lang.String value) { onChanged(); return this; } + /** * * @@ -926,6 +944,7 @@ public Builder clearParent() { onChanged(); return this; } + /** * * @@ -969,6 +988,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { public boolean hasName() { return schemaSpecCase_ == 2; } + /** * * @@ -999,6 +1019,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * * @@ -1029,6 +1050,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -1052,6 +1074,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * * @@ -1073,6 +1096,7 @@ public Builder clearName() { } return this; } + /** * * @@ -1103,6 +1127,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + /** * * @@ -1118,6 +1143,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { public boolean hasSchema() { return schemaSpecCase_ == 3; } + /** * * @@ -1143,6 +1169,7 @@ public com.google.pubsub.v1.Schema getSchema() { return com.google.pubsub.v1.Schema.getDefaultInstance(); } } + /** * * @@ -1165,6 +1192,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { schemaSpecCase_ = 3; return this; } + /** * * @@ -1184,6 +1212,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { schemaSpecCase_ = 3; return this; } + /** * * @@ -1215,6 +1244,7 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { schemaSpecCase_ = 3; return this; } + /** * * @@ -1240,6 +1270,7 @@ public Builder clearSchema() { } return this; } + /** * * @@ -1252,6 +1283,7 @@ public Builder clearSchema() { public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { return getSchemaFieldBuilder().getBuilder(); } + /** * * @@ -1272,6 +1304,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { return com.google.pubsub.v1.Schema.getDefaultInstance(); } } + /** * * @@ -1304,6 +1337,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { } private com.google.protobuf.ByteString message_ = com.google.protobuf.ByteString.EMPTY; + /** * * @@ -1319,6 +1353,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { public com.google.protobuf.ByteString getMessage() { return message_; } + /** * * @@ -1340,6 +1375,7 @@ public Builder setMessage(com.google.protobuf.ByteString value) { onChanged(); return this; } + /** * * @@ -1359,6 +1395,7 @@ public Builder clearMessage() { } private int encoding_ = 0; + /** * * @@ -1374,6 +1411,7 @@ public Builder clearMessage() { public int getEncodingValue() { return encoding_; } + /** * * @@ -1392,6 +1430,7 @@ public Builder setEncodingValue(int value) { onChanged(); return this; } + /** * * @@ -1408,6 +1447,7 @@ public com.google.pubsub.v1.Encoding getEncoding() { com.google.pubsub.v1.Encoding result = com.google.pubsub.v1.Encoding.forNumber(encoding_); return result == null ? com.google.pubsub.v1.Encoding.UNRECOGNIZED : result; } + /** * * @@ -1429,6 +1469,7 @@ public Builder setEncoding(com.google.pubsub.v1.Encoding value) { onChanged(); return this; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 73bde3da9999..2d4102c26df9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ValidateMessageRequestOrBuilder * @return The parent. */ java.lang.String getParent(); + /** * * @@ -69,6 +70,7 @@ public interface ValidateMessageRequestOrBuilder * @return Whether the name field is set. */ boolean hasName(); + /** * * @@ -83,6 +85,7 @@ public interface ValidateMessageRequestOrBuilder * @return The name. */ java.lang.String getName(); + /** * * @@ -110,6 +113,7 @@ public interface ValidateMessageRequestOrBuilder * @return Whether the schema field is set. */ boolean hasSchema(); + /** * * @@ -122,6 +126,7 @@ public interface ValidateMessageRequestOrBuilder * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); + /** * * @@ -158,6 +163,7 @@ public interface ValidateMessageRequestOrBuilder * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 418a1494eea7..afc1a70f6271 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -34,6 +34,7 @@ public final class ValidateMessageResponse extends com.google.protobuf.Generated // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageResponse) ValidateMessageResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ValidateMessageResponse.newBuilder() to construct. private ValidateMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -212,6 +213,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 45232ef53d1b..de152babbcb4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -33,6 +33,7 @@ public final class ValidateSchemaRequest extends com.google.protobuf.GeneratedMe // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaRequest) ValidateSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + // Use ValidateSchemaRequest.newBuilder() to construct. private ValidateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -68,6 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; + /** * * @@ -94,6 +96,7 @@ public java.lang.String getParent() { return s; } } + /** * * @@ -123,6 +126,7 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SCHEMA_FIELD_NUMBER = 2; private com.google.pubsub.v1.Schema schema_; + /** * * @@ -138,6 +142,7 @@ public com.google.protobuf.ByteString getParentBytes() { public boolean hasSchema() { return ((bitField0_ & 0x00000001) != 0); } + /** * * @@ -153,6 +158,7 @@ public boolean hasSchema() { public com.google.pubsub.v1.Schema getSchema() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } + /** * * @@ -340,6 +346,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * @@ -552,6 +559,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object parent_ = ""; + /** * * @@ -577,6 +585,7 @@ public java.lang.String getParent() { return (java.lang.String) ref; } } + /** * * @@ -602,6 +611,7 @@ public com.google.protobuf.ByteString getParentBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * * @@ -626,6 +636,7 @@ public Builder setParent(java.lang.String value) { onChanged(); return this; } + /** * * @@ -646,6 +657,7 @@ public Builder clearParent() { onChanged(); return this; } + /** * * @@ -678,6 +690,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> schemaBuilder_; + /** * * @@ -692,6 +705,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { public boolean hasSchema() { return ((bitField0_ & 0x00000002) != 0); } + /** * * @@ -710,6 +724,7 @@ public com.google.pubsub.v1.Schema getSchema() { return schemaBuilder_.getMessage(); } } + /** * * @@ -732,6 +747,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema value) { onChanged(); return this; } + /** * * @@ -751,6 +767,7 @@ public Builder setSchema(com.google.pubsub.v1.Schema.Builder builderForValue) { onChanged(); return this; } + /** * * @@ -778,6 +795,7 @@ public Builder mergeSchema(com.google.pubsub.v1.Schema value) { } return this; } + /** * * @@ -797,6 +815,7 @@ public Builder clearSchema() { onChanged(); return this; } + /** * * @@ -811,6 +830,7 @@ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { onChanged(); return getSchemaFieldBuilder().getBuilder(); } + /** * * @@ -827,6 +847,7 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { return schema_ == null ? com.google.pubsub.v1.Schema.getDefaultInstance() : schema_; } } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 89e05a495f7b..69266da41af6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -39,6 +39,7 @@ public interface ValidateSchemaRequestOrBuilder * @return The parent. */ java.lang.String getParent(); + /** * * @@ -67,6 +68,7 @@ public interface ValidateSchemaRequestOrBuilder * @return Whether the schema field is set. */ boolean hasSchema(); + /** * * @@ -79,6 +81,7 @@ public interface ValidateSchemaRequestOrBuilder * @return The schema. */ com.google.pubsub.v1.Schema getSchema(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 886a37801e19..56773fd343ca 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -34,6 +34,7 @@ public final class ValidateSchemaResponse extends com.google.protobuf.GeneratedM // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaResponse) ValidateSchemaResponseOrBuilder { private static final long serialVersionUID = 0L; + // Use ValidateSchemaResponse.newBuilder() to construct. private ValidateSchemaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -212,6 +213,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index ed879ba88a0c..516b7faef67d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; import "google/pubsub/v1/schema.proto"; option csharp_namespace = "Google.Cloud.PubSub.V1"; -option go_package = "cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb"; +option go_package = "cloud.google.com/go/pubsub/v2/apiv1/pubsubpb;pubsubpb"; option java_multiple_files = true; option java_outer_classname = "PubsubProto"; option java_package = "com.google.pubsub.v1"; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index 08781bbfcd08..37fd2f461c08 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -24,7 +24,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.PubSub.V1"; -option go_package = "cloud.google.com/go/pubsub/apiv1/pubsubpb;pubsubpb"; +option go_package = "cloud.google.com/go/pubsub/v2/apiv1/pubsubpb;pubsubpb"; option java_multiple_files = true; option java_outer_classname = "SchemaProto"; option java_package = "com.google.pubsub.v1"; diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index f67202e06d1e..a604dc8378d4 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -63,7 +63,6 @@ "^org.jacoco:", "^org.codehaus.mojo:", "^org.sonatype.plugins:", - "^com.coveo:", "^com.google.cloud:google-cloud-shared-config" ], "semanticCommitType": "build", diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java index c812eed1685d..606c6fe36a79 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java @@ -49,8 +49,7 @@ public static void main(String... args) throws Exception { public static void openTelemetryPublisherExample(String projectId, String topicId) throws IOException, ExecutionException, InterruptedException { Resource resource = - Resource.getDefault() - .toBuilder() + Resource.getDefault().toBuilder() .put(ResourceAttributes.SERVICE_NAME, "publisher-example") .build(); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java index d46900b9b111..f78c38d198a5 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java @@ -47,8 +47,7 @@ public static void main(String... args) throws Exception { public static void openTelemetrySubscriberExample(String projectId, String subscriptionId) { Resource resource = - Resource.getDefault() - .toBuilder() + Resource.getDefault().toBuilder() .put(ResourceAttributes.SERVICE_NAME, "subscriber-example") .build(); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java index aa7d571c9164..763882d65f36 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java @@ -74,7 +74,7 @@ public static void publishAvroRecordsExample(String projectId, String topicId) switch (encoding) { case BINARY: System.out.println("Preparing a BINARY encoder..."); - encoder = EncoderFactory.get().directBinaryEncoder(byteStream, /*reuse=*/ null); + encoder = EncoderFactory.get().directBinaryEncoder(byteStream, /* reuse= */ null); break; case JSON: diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java index 65b1937b8f09..68880d1d307f 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java @@ -72,7 +72,7 @@ public static void subscribeWithAvroSchemaExample(String projectId, String subsc try { switch (encoding) { case "BINARY": - decoder = DecoderFactory.get().directBinaryDecoder(inputStream, /*reuse=*/ null); + decoder = DecoderFactory.get().directBinaryDecoder(inputStream, /* reuse= */ null); System.out.println("Receiving a binary-encoded message:"); break; case "JSON": diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java index 20486700634a..9498bd0204bd 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java @@ -118,7 +118,7 @@ public static void subscribeWithAvroSchemaRevisionsExample( try { switch (encoding) { case "BINARY": - decoder = DecoderFactory.get().directBinaryDecoder(inputStream, /*reuse=*/ null); + decoder = DecoderFactory.get().directBinaryDecoder(inputStream, /* reuse= */ null); System.out.println("Receiving a binary-encoded message:"); break; case "JSON": diff --git a/java-pubsub/samples/snippets/src/main/java/utilities/State.java b/java-pubsub/samples/snippets/src/main/java/utilities/State.java index 503acf61f4f3..60d869e23b7d 100644 --- a/java-pubsub/samples/snippets/src/main/java/utilities/State.java +++ b/java-pubsub/samples/snippets/src/main/java/utilities/State.java @@ -46,7 +46,12 @@ public class State extends org.apache.avro.specific.SpecificRecordBase public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser() .parse( - "{\"type\":\"record\",\"name\":\"State\",\"namespace\":\"utilities\",\"doc\":\"A list of states in the United States of America.\",\"fields\":[{\"name\":\"name\",\"type\":\"string\",\"doc\":\"The common name of the state.\"},{\"name\":\"post_abbr\",\"type\":\"string\",\"doc\":\"The postal code abbreviation of the state.\"}]}"); + "{\"type\":\"record\",\"name\":\"State\",\"namespace\":\"utilities\",\"doc\":\"A list" + + " of states in the United States of" + + " America.\",\"fields\":[{\"name\":\"name\",\"type\":\"string\",\"doc\":\"The" + + " common name of the" + + " state.\"},{\"name\":\"post_abbr\",\"type\":\"string\",\"doc\":\"The postal" + + " code abbreviation of the state.\"}]}"); public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; @@ -113,6 +118,7 @@ public static State fromByteBuffer(java.nio.ByteBuffer b) throws java.io.IOExcep /** The common name of the state. */ private java.lang.CharSequence name; + /** The postal code abbreviation of the state. */ private java.lang.CharSequence post_abbr; @@ -140,6 +146,7 @@ public org.apache.avro.specific.SpecificData getSpecificData() { public org.apache.avro.Schema getSchema() { return SCHEMA$; } + // Used by DatumWriter. Applications should not call. public java.lang.Object get(int field$) { switch (field$) { @@ -247,6 +254,7 @@ public static class Builder extends org.apache.avro.specific.SpecificRecordBuild /** The common name of the state. */ private java.lang.CharSequence name; + /** The postal code abbreviation of the state. */ private java.lang.CharSequence post_abbr; diff --git a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java index f43d6e092b47..388ba9b973cf 100644 --- a/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java +++ b/java-pubsub/samples/snippets/src/main/java/utilities/StateProto.java @@ -50,6 +50,7 @@ public interface StateOrBuilder * @return The name. */ java.lang.String getName(); + /** * string name = 1; * @@ -63,6 +64,7 @@ public interface StateOrBuilder * @return The postAbbr. */ java.lang.String getPostAbbr(); + /** * string post_abbr = 2; * @@ -70,12 +72,14 @@ public interface StateOrBuilder */ com.google.protobuf.ByteString getPostAbbrBytes(); } + /** Protobuf type {@code utilities.State} */ public static final class State extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:utilities.State) StateOrBuilder { private static final long serialVersionUID = 0L; + // Use State.newBuilder() to construct. private State(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -108,6 +112,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; + /** * string name = 1; * @@ -125,6 +130,7 @@ public java.lang.String getName() { return s; } } + /** * string name = 1; * @@ -147,6 +153,7 @@ public com.google.protobuf.ByteString getNameBytes() { @SuppressWarnings("serial") private volatile java.lang.Object postAbbr_ = ""; + /** * string post_abbr = 2; * @@ -164,6 +171,7 @@ public java.lang.String getPostAbbr() { return s; } } + /** * string post_abbr = 2; * @@ -349,6 +357,7 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } + /** Protobuf type {@code utilities.State} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder @@ -537,6 +546,7 @@ public Builder mergeFrom( private int bitField0_; private java.lang.Object name_ = ""; + /** * string name = 1; * @@ -553,6 +563,7 @@ public java.lang.String getName() { return (java.lang.String) ref; } } + /** * string name = 1; * @@ -569,6 +580,7 @@ public com.google.protobuf.ByteString getNameBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * string name = 1; * @@ -584,6 +596,7 @@ public Builder setName(java.lang.String value) { onChanged(); return this; } + /** * string name = 1; * @@ -595,6 +608,7 @@ public Builder clearName() { onChanged(); return this; } + /** * string name = 1; * @@ -613,6 +627,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private java.lang.Object postAbbr_ = ""; + /** * string post_abbr = 2; * @@ -629,6 +644,7 @@ public java.lang.String getPostAbbr() { return (java.lang.String) ref; } } + /** * string post_abbr = 2; * @@ -645,6 +661,7 @@ public com.google.protobuf.ByteString getPostAbbrBytes() { return (com.google.protobuf.ByteString) ref; } } + /** * string post_abbr = 2; * @@ -660,6 +677,7 @@ public Builder setPostAbbr(java.lang.String value) { onChanged(); return this; } + /** * string post_abbr = 2; * @@ -671,6 +689,7 @@ public Builder clearPostAbbr() { onChanged(); return this; } + /** * string post_abbr = 2; * diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java index 8a97d25f5907..d85c27ad87b4 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/DeadLetterQueueIT.java @@ -68,7 +68,7 @@ private static void publishSomeMessages() throws Exception { } @Rule public Timeout globalTimeout = Timeout.seconds(300); // 5 minute timeout - @Rule public MultipleAttemptsRule retryRule = new MultipleAttemptsRule(/*maxAttemptCount=*/ 3); + @Rule public MultipleAttemptsRule retryRule = new MultipleAttemptsRule(/* maxAttemptCount= */ 3); @BeforeClass public static void checkRequirements() { diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java index 2874ae519bd9..342a42c616ac 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/SchemaIT.java @@ -79,7 +79,7 @@ private static void requireEnvVar(String varName) { } @Rule public Timeout globalTimeout = Timeout.seconds(600); // 10 minute timeout - @Rule public MultipleAttemptsRule retryRule = new MultipleAttemptsRule(/*maxAttemptCount=*/ 3); + @Rule public MultipleAttemptsRule retryRule = new MultipleAttemptsRule(/* maxAttemptCount= */ 3); @Before public void setUp() { From 27b460b88bf7055389e15f3fcbdafecdf5687795 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 01:34:35 -0400 Subject: [PATCH 2095/2363] chore(main): release 1.138.1-SNAPSHOT (#2373) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 23974ed45170..ce833b4b4075 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.138.0 + 1.138.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.138.0 + 1.138.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT
    diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 228dae29c0d6..895870e10b01 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.138.0 + 1.138.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.138.0 + 1.138.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 380f1f5007d6..590dd1521ade 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.138.0 + 1.138.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d4edd2342930..d3430613cfda 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.138.0 + 1.138.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.138.0 + 1.138.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 33873694af5e..47b2bbdbe6a5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.0 + 1.120.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.138.0 + 1.138.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index daa2a4cc6872..1d093d8a31bb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.138.0 + 1.138.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 5d89f2bf7208..1044d035b799 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.138.0:1.138.0 -grpc-google-cloud-pubsub-v1:1.120.0:1.120.0 -proto-google-cloud-pubsub-v1:1.120.0:1.120.0 +google-cloud-pubsub:1.138.0:1.138.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.120.0:1.120.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.120.0:1.120.1-SNAPSHOT From 0f87cefa0a38b8baf9a8ddffb6d26b7e347a651f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 10:45:33 -0400 Subject: [PATCH 2096/2363] chore(main): release 1.139.0 (#2398) * chore(main): release 1.139.0 * chore: generate libraries at Fri Apr 25 05:36:49 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 27 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 +++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 48 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index f77a4f9ebfdc..1f7b6979f30e 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +## [1.139.0](https://github.com/googleapis/java-pubsub/compare/v1.138.0...v1.139.0) (2025-04-25) + + +### Features + +* Generate renamed go pubsub admin clients ([4472d7b](https://github.com/googleapis/java-pubsub/commit/4472d7baff4894a7c5cf0efc7eadd83ec8801d7a)) + + +### Bug Fixes + +* Add retries for ack and modack operations that don't return with a metadata map ([#2385](https://github.com/googleapis/java-pubsub/issues/2385)) ([00070b7](https://github.com/googleapis/java-pubsub/commit/00070b74e54fcb62b91a4d72a88d3b20b2425a94)) +* **deps:** Update the Java code generator (gapic-generator-java) to 2.56.2 ([4472d7b](https://github.com/googleapis/java-pubsub/commit/4472d7baff4894a7c5cf0efc7eadd83ec8801d7a)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.49.0 ([#2380](https://github.com/googleapis/java-pubsub/issues/2380)) ([405e485](https://github.com/googleapis/java-pubsub/commit/405e485bbe503357a0616ec72de8fea00cb91c9c)) +* Update dependency com.google.cloud:google-cloud-core to v2.53.1 ([#2365](https://github.com/googleapis/java-pubsub/issues/2365)) ([748058f](https://github.com/googleapis/java-pubsub/commit/748058fc018e3a36dedd576404037bf8c016c794)) +* Update dependency com.google.cloud:google-cloud-storage to v2.50.0 ([#2372](https://github.com/googleapis/java-pubsub/issues/2372)) ([b81164a](https://github.com/googleapis/java-pubsub/commit/b81164aa5682c8046ebfa44e1e47579e4c3fcd28)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.30.1 ([#2364](https://github.com/googleapis/java-pubsub/issues/2364)) ([05eb9c0](https://github.com/googleapis/java-pubsub/commit/05eb9c0ce5179ff9e8656544258adc02a59336e5)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.30.2 ([#2383](https://github.com/googleapis/java-pubsub/issues/2383)) ([4119cc0](https://github.com/googleapis/java-pubsub/commit/4119cc03895873f94ddef10850753fb59384a8fc)) + + +### Documentation + +* Update documentation for JavaScriptUDF to indicate that the `message_id` metadata field is optional instead of required ([f904786](https://github.com/googleapis/java-pubsub/commit/f904786f87e80cdc09bba947cd53e42dffb7132e)) + ## [1.138.0](https://github.com/googleapis/java-pubsub/compare/v1.137.1...v1.138.0) (2025-03-14) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 748acba71ce2..ba60d62ce661 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.138.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.139.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.138.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.0" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.138.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ce833b4b4075..700bd07986d8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.138.1-SNAPSHOT + 1.139.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.138.1-SNAPSHOT + 1.139.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 895870e10b01..c1a84679f112 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.138.1-SNAPSHOT + 1.139.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.138.1-SNAPSHOT + 1.139.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 590dd1521ade..20aa99fd2c40 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.138.1-SNAPSHOT + 1.139.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d3430613cfda..e9c2daf781da 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.138.1-SNAPSHOT + 1.139.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 com.google.cloud google-cloud-pubsub - 1.138.1-SNAPSHOT + 1.139.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 47b2bbdbe6a5..3e5b3874a54f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.120.1-SNAPSHOT + 1.121.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.138.1-SNAPSHOT + 1.139.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1d093d8a31bb..e1d2279be2da 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.138.1-SNAPSHOT + 1.139.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1044d035b799..280395fca644 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.138.0:1.138.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.120.0:1.120.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.120.0:1.120.1-SNAPSHOT +google-cloud-pubsub:1.139.0:1.139.0 +grpc-google-cloud-pubsub-v1:1.121.0:1.121.0 +proto-google-cloud-pubsub-v1:1.121.0:1.121.0 From 221c8bccfcdbacc4e5689b068f0bf5944dc2c436 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 25 Apr 2025 16:57:30 +0100 Subject: [PATCH 2097/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.46.2 (#2394) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index c11991c37523..3b60a3ee4f2b 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.45.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.46.2 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 700bd07986d8..c9735d041375 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.45.1 + 3.46.2 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e9c2daf781da..e4407a94729f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.45.1 + 3.46.2 From 5f50c4a3c4a0c52583e607f7293747bd821d0736 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 12:51:32 -0400 Subject: [PATCH 2098/2363] chore(main): release 1.139.1-SNAPSHOT (#2400) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c9735d041375..4607f9115c25 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.0 + 1.139.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.0 + 1.139.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c1a84679f112..569664683bc2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.0 + 1.139.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.0 + 1.139.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 20aa99fd2c40..4ee2db2ab820 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.0 + 1.139.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e4407a94729f..ffbcdecbee51 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.0 + 1.139.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.0 + 1.139.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 3e5b3874a54f..037a9db73b85 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.0 + 1.121.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.0 + 1.139.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e1d2279be2da..c2bc2754d123 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.0 + 1.139.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 280395fca644..fc9b8fb5ac3a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.0:1.139.0 -grpc-google-cloud-pubsub-v1:1.121.0:1.121.0 -proto-google-cloud-pubsub-v1:1.121.0:1.121.0 +google-cloud-pubsub:1.139.0:1.139.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.0:1.121.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.0:1.121.1-SNAPSHOT From 9b10b74929fd3169c6175486cc68ac539f7b5001 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 25 Apr 2025 16:37:56 -0400 Subject: [PATCH 2099/2363] chore(main): release 1.139.1 (#2402) * chore(main): release 1.139.1 * chore: generate libraries at Fri Apr 25 16:52:23 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 28 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 1f7b6979f30e..38533e987587 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.139.1](https://github.com/googleapis/java-pubsub/compare/v1.139.0...v1.139.1) (2025-04-25) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.46.2 ([#2394](https://github.com/googleapis/java-pubsub/issues/2394)) ([17f7fd7](https://github.com/googleapis/java-pubsub/commit/17f7fd77553a7ccd55029edb74829f1fe86a680c)) + ## [1.139.0](https://github.com/googleapis/java-pubsub/compare/v1.138.0...v1.139.0) (2025-04-25) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ba60d62ce661..72d31c217365 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.139.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.1" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4607f9115c25..f23a7e683c53 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.1-SNAPSHOT + 1.139.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.1-SNAPSHOT + 1.139.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 569664683bc2..2fe492ba484c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.1-SNAPSHOT + 1.139.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.1-SNAPSHOT + 1.139.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 4ee2db2ab820..cb87cb6425fb 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.1-SNAPSHOT + 1.139.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ffbcdecbee51..2fe71b3a10ee 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.1-SNAPSHOT + 1.139.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 com.google.cloud google-cloud-pubsub - 1.139.1-SNAPSHOT + 1.139.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 037a9db73b85..74592a4f1c96 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1-SNAPSHOT + 1.121.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.1-SNAPSHOT + 1.139.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index c2bc2754d123..924dd7370dd1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.1-SNAPSHOT + 1.139.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index fc9b8fb5ac3a..da51bc44452d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.0:1.139.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.0:1.121.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.0:1.121.1-SNAPSHOT +google-cloud-pubsub:1.139.1:1.139.1 +grpc-google-cloud-pubsub-v1:1.121.1:1.121.1 +proto-google-cloud-pubsub-v1:1.121.1:1.121.1 From 3f1675208be0520157e3c487983b19cca21dc0fc Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 16:48:33 +0200 Subject: [PATCH 2100/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.59.0 (#2387) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4b60d917e667..d04c35924636 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.57.0 + 26.59.0 pom import From a9e97a5abf1f1f8853280e3289d5121a76012832 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 5 May 2025 10:49:22 -0400 Subject: [PATCH 2101/2363] chore: Update generation configuration at Sun May 4 02:35:46 UTC 2025 (#2397) * chore: Update generation configuration at Fri Apr 25 02:32:33 UTC 2025 * chore: Update generation configuration at Sat Apr 26 02:30:25 UTC 2025 * chore: Update generation configuration at Sun Apr 27 02:33:21 UTC 2025 * chore: Update generation configuration at Tue Apr 29 02:32:31 UTC 2025 * chore: Update generation configuration at Wed Apr 30 02:32:26 UTC 2025 * chore: Update generation configuration at Thu May 1 02:35:32 UTC 2025 * chore: Update generation configuration at Fri May 2 02:32:47 UTC 2025 * chore: Update generation configuration at Sat May 3 02:31:23 UTC 2025 * chore: Update generation configuration at Sun May 4 02:35:46 UTC 2025 * chore: generate libraries at Sun May 4 02:36:20 UTC 2025 --- .../.github/workflows/hermetic_library_generation.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 6b856abdef3f..2ab56cd24a59 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.56.2 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.56.3 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index d0c295213338..eab7259dc83d 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 962c305ff7fb..90b98e715f57 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 87b5dff65a31..b2291db97f5d 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 26559e519e84..4ebe3e637839 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.56.2 -googleapis_commitish: 261895f1d8ced9564f4cf872f7f4f9a1f4c615d3 +gapic_generator_version: 2.56.3 +googleapis_commitish: 7ab5d0f5e87ed25778eeb8318e89cdad4d67ed6c libraries_bom_version: 26.59.0 libraries: - api_shortname: pubsub From 4168c66915b810a65aafee6fd872bafc1ec66389 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 17:20:37 +0200 Subject: [PATCH 2102/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.46.3 (#2406) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 3b60a3ee4f2b..3dbe105d3ab6 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.46.2 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.46.3 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f23a7e683c53..06b0b1303c7e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.46.2 + 3.46.3 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2fe71b3a10ee..61c6ffb1e4f8 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.46.2 + 3.46.3 From 4bacdcdafbe2933a3a4d7f69da55b579f09b30d4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 12:11:41 -0400 Subject: [PATCH 2103/2363] chore(main): release 1.139.2-SNAPSHOT (#2403) * chore(main): release 1.139.2-SNAPSHOT * chore: generate libraries at Mon May 5 15:21:27 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 72d31c217365..50f35bc36531 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.57.0 + 26.59.0 pom import diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 06b0b1303c7e..9961090ad25e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.1 + 1.139.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2fe492ba484c..b5edc2ee7763 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.1 + 1.139.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index cb87cb6425fb..0b8c747b78a3 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.1 + 1.139.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 61c6ffb1e4f8..86fe3f518494 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.1 + 1.139.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 74592a4f1c96..9ed43c46ceb1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.1 + 1.121.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.1 + 1.139.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 924dd7370dd1..d2a4c1afb418 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index da51bc44452d..075292f227bd 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.1:1.139.1 -grpc-google-cloud-pubsub-v1:1.121.1:1.121.1 -proto-google-cloud-pubsub-v1:1.121.1:1.121.1 +google-cloud-pubsub:1.139.1:1.139.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.1:1.121.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.1:1.121.2-SNAPSHOT From 58b3658f36e2f0bf7f120c3569dfd6a94337f4a9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 18:59:02 +0200 Subject: [PATCH 2104/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.139.1 (#2401) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bd608c657d47..27c7b862323c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.138.0 + 1.139.1 From 666bd9bcfcac8b78b9c0c0c54976d45cc6c26f89 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 20:11:37 +0200 Subject: [PATCH 2105/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.49.2 (#2399) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 27c7b862323c..f45c8c063a37 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.49.0 + 2.49.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d2a4c1afb418..129433a18434 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.49.0 + 2.49.2 com.google.cloud From 510e756a86f8b1b44b380f24ef6b245c8b354cb0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 20:11:46 +0200 Subject: [PATCH 2106/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.52.1 (#2396) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f45c8c063a37..660d0b6ff388 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.50.0 + 2.52.1 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 129433a18434..8600ee235e79 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.50.0 + 2.52.1 com.google.cloud.opentelemetry From 7ec15f9795ae5eb14024499d420a8df9a3600d6b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 5 May 2025 20:11:57 +0200 Subject: [PATCH 2107/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.54.3 (#2393) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 660d0b6ff388..2c150fbdbc42 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.53.1 + 2.54.3 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8600ee235e79..8539d01b135d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.53.1 + 2.54.3 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index d04c35924636..4b5c90716fff 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.53.1 + 2.54.3 tests From 5e057b7fce7bc15c0e621021d790da94292d7cb4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 14:53:37 -0400 Subject: [PATCH 2108/2363] chore(main): release 1.139.2 (#2408) * chore(main): release 1.139.2 * chore: generate libraries at Mon May 5 18:12:47 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 15 +++++++++++++++ java-pubsub/README.md | 8 ++++---- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 37 insertions(+), 22 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 38533e987587..8758f1ccdede 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.139.2](https://github.com/googleapis/java-pubsub/compare/v1.139.1...v1.139.2) (2025-05-05) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.56.3 ([2b928a8](https://github.com/googleapis/java-pubsub/commit/2b928a8a946ebf84470bd2e2bb064b52c4f11ea2)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.49.2 ([#2399](https://github.com/googleapis/java-pubsub/issues/2399)) ([ff48708](https://github.com/googleapis/java-pubsub/commit/ff4870815864a6216a1ce4b606fcec3df7f58fd4)) +* Update dependency com.google.cloud:google-cloud-core to v2.54.3 ([#2393](https://github.com/googleapis/java-pubsub/issues/2393)) ([0ffa26a](https://github.com/googleapis/java-pubsub/commit/0ffa26ac3abceabcfba5d57cdb36f27f5a164ce3)) +* Update dependency com.google.cloud:google-cloud-storage to v2.52.1 ([#2396](https://github.com/googleapis/java-pubsub/issues/2396)) ([283a6e1](https://github.com/googleapis/java-pubsub/commit/283a6e14f61764c210ed23f4ada23ad21bbdb306)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.46.3 ([#2406](https://github.com/googleapis/java-pubsub/issues/2406)) ([8963ed0](https://github.com/googleapis/java-pubsub/commit/8963ed0acbe8bf3a110a05ced27979f102cd3035)) + ## [1.139.1](https://github.com/googleapis/java-pubsub/compare/v1.139.0...v1.139.1) (2025-04-25) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 50f35bc36531..fe7f327e4f37 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.138.0 + 1.139.1 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.139.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.2" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9961090ad25e..950e13c0ea4f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.2-SNAPSHOT + 1.139.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.2-SNAPSHOT + 1.139.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b5edc2ee7763..023cc4833410 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.2-SNAPSHOT + 1.139.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.2-SNAPSHOT + 1.139.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 0b8c747b78a3..20731fff6af4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.2-SNAPSHOT + 1.139.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 86fe3f518494..93f64afd5cf0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.2-SNAPSHOT + 1.139.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 com.google.cloud google-cloud-pubsub - 1.139.2-SNAPSHOT + 1.139.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 9ed43c46ceb1..e39ab19c008e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2-SNAPSHOT + 1.121.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.2-SNAPSHOT + 1.139.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8539d01b135d..58736179840d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.2-SNAPSHOT + 1.139.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 075292f227bd..c4431dbaf917 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.1:1.139.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.1:1.121.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.1:1.121.2-SNAPSHOT +google-cloud-pubsub:1.139.2:1.139.2 +grpc-google-cloud-pubsub-v1:1.121.2:1.121.2 +proto-google-cloud-pubsub-v1:1.121.2:1.121.2 From c17055b950970802dc589c6aed95cb7a7c388ec7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 5 May 2025 15:17:49 -0400 Subject: [PATCH 2109/2363] chore(main): release 1.139.3-SNAPSHOT (#2410) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 950e13c0ea4f..662fa7136082 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.2 + 1.139.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.2 + 1.139.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 023cc4833410..fd083e926175 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.2 + 1.139.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.2 + 1.139.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 20731fff6af4..465552b2aeb8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.2 + 1.139.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 93f64afd5cf0..60e133ab27c1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.2 + 1.139.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.2 + 1.139.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index e39ab19c008e..c67396a09f41 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.2 + 1.121.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.2 + 1.139.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 58736179840d..4ae4674fb461 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.2 + 1.139.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c4431dbaf917..ae949c9c2fe0 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.2:1.139.2 -grpc-google-cloud-pubsub-v1:1.121.2:1.121.2 -proto-google-cloud-pubsub-v1:1.121.2:1.121.2 +google-cloud-pubsub:1.139.2:1.139.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.2:1.121.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.2:1.121.3-SNAPSHOT From 8181cb94210cefa53a0ca330c99e24475f2b72da Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 6 May 2025 17:00:27 +0200 Subject: [PATCH 2110/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.47.0 (#2414) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 3dbe105d3ab6..006d4eecbc46 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.46.3 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.47.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index eab7259dc83d..24e5053a5b7e 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 90b98e715f57..ae35f6cb21f9 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index b2291db97f5d..660f1ee7eaec 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 662fa7136082..9befbf1be1dd 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.46.3 + 3.47.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 60e133ab27c1..6dffaa5391ee 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.46.3 + 3.47.0 From abbd7038a03e375918ac87cc9cf45c0798a6b1ad Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 6 May 2025 17:00:36 +0200 Subject: [PATCH 2111/2363] deps: update googleapis/sdk-platform-java action to v2.57.0 (#2415) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 2ab56cd24a59..f0b1369c88b8 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.56.3 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.57.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From b34920f151c883f45139ec08ffd575a41d51bd31 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 6 May 2025 17:00:58 +0200 Subject: [PATCH 2112/2363] chore(config): migrate config renovate.json (#2409) --- java-pubsub/renovate.json | 87 +++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 45 deletions(-) diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index a604dc8378d4..9f06ab96a924 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -1,6 +1,4 @@ - { - "extends": [ ":separateMajorReleases", ":combinePatchMinorReleases", @@ -9,8 +7,7 @@ ":updateNotScheduled", ":automergeDisabled", ":ignoreModulesAndTests", - ":maintainLockFilesDisabled", - ":autodetectPinVersions" + ":maintainLockFilesDisabled" ], "ignorePaths": [ ".kokoro/requirements.txt", @@ -45,63 +42,63 @@ ], "packageRules": [ { - "packagePatterns": [ - "^com.google.guava:" - ], - "versionScheme": "docker" + "versioning": "docker", + "matchPackageNames": [ + "/^com.google.guava:/" + ] }, { - "packagePatterns": [ - "*" - ], "semanticCommitType": "deps", - "semanticCommitScope": null + "semanticCommitScope": null, + "matchPackageNames": [ + "*" + ] }, { - "packagePatterns": [ - "^org.apache.maven", - "^org.jacoco:", - "^org.codehaus.mojo:", - "^org.sonatype.plugins:", - "^com.google.cloud:google-cloud-shared-config" - ], "semanticCommitType": "build", - "semanticCommitScope": "deps" + "semanticCommitScope": "deps", + "matchPackageNames": [ + "/^org.apache.maven/", + "/^org.jacoco:/", + "/^org.codehaus.mojo:/", + "/^org.sonatype.plugins:/", + "/^com.google.cloud:google-cloud-shared-config/" + ] }, { - "packagePatterns": [ - "^com.google.cloud:google-cloud-pubsub", - "^com.google.cloud:libraries-bom", - "^com.google.cloud.samples:shared-configuration" - ], "semanticCommitType": "chore", - "semanticCommitScope": "deps" + "semanticCommitScope": "deps", + "matchPackageNames": [ + "/^com.google.cloud:google-cloud-pubsub/", + "/^com.google.cloud:libraries-bom/", + "/^com.google.cloud.samples:shared-configuration/" + ] }, { - "packagePatterns": [ - "^junit:junit", - "^com.google.truth:truth", - "^org.mockito:mockito-core", - "^org.objenesis:objenesis", - "^com.google.cloud:google-cloud-conformance-tests", - "^org.graalvm.buildtools:junit-platform-native" - ], "semanticCommitType": "test", - "semanticCommitScope": "deps" + "semanticCommitScope": "deps", + "matchPackageNames": [ + "/^junit:junit/", + "/^com.google.truth:truth/", + "/^org.mockito:mockito-core/", + "/^org.objenesis:objenesis/", + "/^com.google.cloud:google-cloud-conformance-tests/", + "/^org.graalvm.buildtools:junit-platform-native/" + ] }, { - "packagePatterns": [ - "^com.google.cloud:google-cloud-" - ], - "ignoreUnstable": false + "ignoreUnstable": false, + "matchPackageNames": [ + "/^com.google.cloud:google-cloud-/" + ] }, { - "packagePatterns": [ - "^com.fasterxml.jackson.core" - ], - "groupName": "jackson dependencies" + "groupName": "jackson dependencies", + "matchPackageNames": [ + "/^com.fasterxml.jackson.core/" + ] } ], - "semanticCommits": true, + "semanticCommits": "enabled", "dependencyDashboard": true -} \ No newline at end of file +} From b2a5925a1d5bd546a760ec0cc39eaf8288d0b138 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 May 2025 12:36:58 -0400 Subject: [PATCH 2113/2363] chore(main): release 1.139.3 (#2416) * chore(main): release 1.139.3 * chore: generate libraries at Tue May 6 15:01:24 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .../.kokoro/presubmit/graalvm-native-a.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-b.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/CHANGELOG.md | 8 ++ java-pubsub/README.md | 6 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +- java-pubsub/google-cloud-pubsub/pom.xml | 4 +- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +- java-pubsub/pom.xml | 8 +- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +- java-pubsub/renovate.json | 87 ++++++++++--------- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +- 13 files changed, 77 insertions(+), 66 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 24e5053a5b7e..eab7259dc83d 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index ae35f6cb21f9..90b98e715f57 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 660f1ee7eaec..b2291db97f5d 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 8758f1ccdede..39b977b057a1 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [1.139.3](https://github.com/googleapis/java-pubsub/compare/v1.139.2...v1.139.3) (2025-05-06) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.47.0 ([#2414](https://github.com/googleapis/java-pubsub/issues/2414)) ([d78823f](https://github.com/googleapis/java-pubsub/commit/d78823ffc93307c14f44e992cf13e926880fbe94)) +* Update googleapis/sdk-platform-java action to v2.57.0 ([#2415](https://github.com/googleapis/java-pubsub/issues/2415)) ([1ddf9b8](https://github.com/googleapis/java-pubsub/commit/1ddf9b81e432aeb9af9e6b8bb2d2e9786159faba)) + ## [1.139.2](https://github.com/googleapis/java-pubsub/compare/v1.139.1...v1.139.2) (2025-05-05) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index fe7f327e4f37..236dd11f4a9c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.139.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.3" ``` ## Authentication @@ -418,7 +418,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 9befbf1be1dd..2751af946b34 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.3-SNAPSHOT + 1.139.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.3-SNAPSHOT + 1.139.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index fd083e926175..247d4d388aa9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.3-SNAPSHOT + 1.139.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.3-SNAPSHOT + 1.139.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 465552b2aeb8..6f4c9040b87b 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.3-SNAPSHOT + 1.139.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6dffaa5391ee..e64114d54713 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.3-SNAPSHOT + 1.139.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 com.google.cloud google-cloud-pubsub - 1.139.3-SNAPSHOT + 1.139.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c67396a09f41..250da2b16adc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3-SNAPSHOT + 1.121.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.3-SNAPSHOT + 1.139.3 diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 9f06ab96a924..a604dc8378d4 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -1,4 +1,6 @@ + { + "extends": [ ":separateMajorReleases", ":combinePatchMinorReleases", @@ -7,7 +9,8 @@ ":updateNotScheduled", ":automergeDisabled", ":ignoreModulesAndTests", - ":maintainLockFilesDisabled" + ":maintainLockFilesDisabled", + ":autodetectPinVersions" ], "ignorePaths": [ ".kokoro/requirements.txt", @@ -42,63 +45,63 @@ ], "packageRules": [ { - "versioning": "docker", - "matchPackageNames": [ - "/^com.google.guava:/" - ] + "packagePatterns": [ + "^com.google.guava:" + ], + "versionScheme": "docker" }, { - "semanticCommitType": "deps", - "semanticCommitScope": null, - "matchPackageNames": [ + "packagePatterns": [ "*" - ] + ], + "semanticCommitType": "deps", + "semanticCommitScope": null }, { + "packagePatterns": [ + "^org.apache.maven", + "^org.jacoco:", + "^org.codehaus.mojo:", + "^org.sonatype.plugins:", + "^com.google.cloud:google-cloud-shared-config" + ], "semanticCommitType": "build", - "semanticCommitScope": "deps", - "matchPackageNames": [ - "/^org.apache.maven/", - "/^org.jacoco:/", - "/^org.codehaus.mojo:/", - "/^org.sonatype.plugins:/", - "/^com.google.cloud:google-cloud-shared-config/" - ] + "semanticCommitScope": "deps" }, { + "packagePatterns": [ + "^com.google.cloud:google-cloud-pubsub", + "^com.google.cloud:libraries-bom", + "^com.google.cloud.samples:shared-configuration" + ], "semanticCommitType": "chore", - "semanticCommitScope": "deps", - "matchPackageNames": [ - "/^com.google.cloud:google-cloud-pubsub/", - "/^com.google.cloud:libraries-bom/", - "/^com.google.cloud.samples:shared-configuration/" - ] + "semanticCommitScope": "deps" }, { + "packagePatterns": [ + "^junit:junit", + "^com.google.truth:truth", + "^org.mockito:mockito-core", + "^org.objenesis:objenesis", + "^com.google.cloud:google-cloud-conformance-tests", + "^org.graalvm.buildtools:junit-platform-native" + ], "semanticCommitType": "test", - "semanticCommitScope": "deps", - "matchPackageNames": [ - "/^junit:junit/", - "/^com.google.truth:truth/", - "/^org.mockito:mockito-core/", - "/^org.objenesis:objenesis/", - "/^com.google.cloud:google-cloud-conformance-tests/", - "/^org.graalvm.buildtools:junit-platform-native/" - ] + "semanticCommitScope": "deps" }, { - "ignoreUnstable": false, - "matchPackageNames": [ - "/^com.google.cloud:google-cloud-/" - ] + "packagePatterns": [ + "^com.google.cloud:google-cloud-" + ], + "ignoreUnstable": false }, { - "groupName": "jackson dependencies", - "matchPackageNames": [ - "/^com.fasterxml.jackson.core/" - ] + "packagePatterns": [ + "^com.fasterxml.jackson.core" + ], + "groupName": "jackson dependencies" } ], - "semanticCommits": "enabled", + "semanticCommits": true, "dependencyDashboard": true -} +} \ No newline at end of file diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4ae4674fb461..83aa5078d870 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.3-SNAPSHOT + 1.139.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ae949c9c2fe0..67620086fb37 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.2:1.139.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.2:1.121.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.2:1.121.3-SNAPSHOT +google-cloud-pubsub:1.139.3:1.139.3 +grpc-google-cloud-pubsub-v1:1.121.3:1.121.3 +proto-google-cloud-pubsub-v1:1.121.3:1.121.3 From b2fe0a387fca55445f29ddf886d49ef2e63ad434 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 6 May 2025 18:56:16 +0200 Subject: [PATCH 2114/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.47.0 (#2418) --- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index eab7259dc83d..24e5053a5b7e 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 90b98e715f57..ae35f6cb21f9 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index b2291db97f5d..660f1ee7eaec 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { From dd066e5eddb2b61cd6199899f93633c8f79a77ef Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 6 May 2025 13:16:26 -0400 Subject: [PATCH 2115/2363] chore(main): release 1.139.4-SNAPSHOT (#2417) * chore(main): release 1.139.4-SNAPSHOT * chore: generate libraries at Tue May 6 16:57:07 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 24e5053a5b7e..eab7259dc83d 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index ae35f6cb21f9..90b98e715f57 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 660f1ee7eaec..b2291db97f5d 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2751af946b34..5ae411b79216 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.3 + 1.139.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 247d4d388aa9..9dc3ec1c9c2a 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.3 + 1.139.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6f4c9040b87b..9555436c06fc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.3 + 1.139.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index e64114d54713..2a8f7a47e548 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.3 + 1.139.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 250da2b16adc..d56dcc5c6c2e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.3 + 1.121.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.3 + 1.139.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 83aa5078d870..488862fd4b6a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 67620086fb37..429229b08c00 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.3:1.139.3 -grpc-google-cloud-pubsub-v1:1.121.3:1.121.3 -proto-google-cloud-pubsub-v1:1.121.3:1.121.3 +google-cloud-pubsub:1.139.3:1.139.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.3:1.121.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.3:1.121.4-SNAPSHOT From 8eb5aac7ea8e5aadda04b687fec10ffd159731b7 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 7 May 2025 17:21:28 -0400 Subject: [PATCH 2116/2363] chore: Update generation configuration at Wed May 7 02:33:33 UTC 2025 (#2412) * chore: Update generation configuration at Tue May 6 02:33:08 UTC 2025 * chore: Update generation configuration at Wed May 7 02:33:33 UTC 2025 * chore: generate libraries at Wed May 7 02:34:02 UTC 2025 --- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index eab7259dc83d..24e5053a5b7e 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 90b98e715f57..ae35f6cb21f9 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index b2291db97f5d..660f1ee7eaec 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.46.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 4ebe3e637839..23a6cda88835 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.56.3 -googleapis_commitish: 7ab5d0f5e87ed25778eeb8318e89cdad4d67ed6c +gapic_generator_version: 2.57.0 +googleapis_commitish: f84c6ceca37b57906efcb606527a40d4585ba860 libraries_bom_version: 26.59.0 libraries: - api_shortname: pubsub From 2825ba226323da26ccdb8b22a0a3beb0b9034bae Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 May 2025 18:42:02 +0200 Subject: [PATCH 2117/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.50.0 (#2422) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2c150fbdbc42..8483004c28cf 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.49.2 + 2.50.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 488862fd4b6a..4471a09ab842 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.49.2 + 2.50.0 com.google.cloud From 5c263f3cc505b336294bd27aaf56f84a5f6cef7f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 May 2025 18:42:13 +0200 Subject: [PATCH 2118/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.52.2 (#2421) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8483004c28cf..6aefc2a92959 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.52.1 + 2.52.2 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4471a09ab842..44475fbad2d8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.52.1 + 2.52.2 com.google.cloud.opentelemetry From 0ff9725efbd37f7b51815049e8bc30d2ab7fb61a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 May 2025 18:42:22 +0200 Subject: [PATCH 2119/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.55.0 (#2413) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 6aefc2a92959..01c8b5f8b280 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.54.3 + 2.55.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 44475fbad2d8..2aa889bbdbbb 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.54.3 + 2.55.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4b5c90716fff..93fc738fd230 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.54.3 + 2.55.0 tests From 355e027a2fced705bf021906a31b8b3813796582 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 8 May 2025 18:42:30 +0200 Subject: [PATCH 2120/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.139.3 (#2411) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 01c8b5f8b280..7d952e5922c9 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.3 From 622f46d9f702538323dc2005557a3fc31ba10931 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Sun, 11 May 2025 15:10:28 -0400 Subject: [PATCH 2121/2363] chore: Update generation configuration at Sun May 11 02:34:28 UTC 2025 (#2423) * chore: Update generation configuration at Thu May 8 02:33:47 UTC 2025 * chore: Update generation configuration at Fri May 9 02:33:27 UTC 2025 * chore: generate libraries at Fri May 9 02:33:55 UTC 2025 * chore: Update generation configuration at Sat May 10 02:31:30 UTC 2025 * chore: Update generation configuration at Sun May 11 02:34:28 UTC 2025 * chore: generate libraries at Sun May 11 02:34:56 UTC 2025 --- java-pubsub/README.md | 4 ++-- java-pubsub/generation_config.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 236dd11f4a9c..f57d6ce4177b 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.139.1 + 1.139.3 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.59.0') +implementation platform('com.google.cloud:libraries-bom:26.60.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 23a6cda88835..21f7b6d3ccae 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.57.0 -googleapis_commitish: f84c6ceca37b57906efcb606527a40d4585ba860 -libraries_bom_version: 26.59.0 +googleapis_commitish: 4e9e9d240fbf2471f135caa3a416b231f9070962 +libraries_bom_version: 26.60.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 2a8703cb36057d77f57f63f292e9012c8e1952a2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 12 May 2025 21:12:57 +0200 Subject: [PATCH 2122/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.60.0 (#2425) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 93fc738fd230..1da41eead16e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.59.0 + 26.60.0 pom import From 9f099548aa41458144b95e64b28f5e34b93a2097 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 15 May 2025 10:47:22 -0400 Subject: [PATCH 2123/2363] chore: Update generation configuration at Thu May 15 02:33:12 UTC 2025 (#2426) * chore: Update generation configuration at Tue May 13 02:33:49 UTC 2025 * chore: generate libraries at Tue May 13 02:34:16 UTC 2025 * chore: Update generation configuration at Wed May 14 02:33:21 UTC 2025 * chore: Update generation configuration at Thu May 15 02:33:12 UTC 2025 * chore: generate libraries at Thu May 15 02:33:38 UTC 2025 --- .../.github/workflows/hermetic_library_generation.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index f0b1369c88b8..336ac2c8cab6 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.57.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.58.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 24e5053a5b7e..d72ed3f0e3b0 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index ae35f6cb21f9..f2e296b84759 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 660f1ee7eaec..68512fbff55c 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.47.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f57d6ce4177b..5687de39eb01 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.59.0 + 26.60.0 pom import diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 21f7b6d3ccae..93466f8b5d73 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.57.0 -googleapis_commitish: 4e9e9d240fbf2471f135caa3a416b231f9070962 +gapic_generator_version: 2.58.0 +googleapis_commitish: f319bbc88abd22cd8c39c349e776cf3dc2722214 libraries_bom_version: 26.60.0 libraries: - api_shortname: pubsub From f5c8b3e188d0b2f184aa47c767cc368affd38532 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 May 2025 16:47:28 +0200 Subject: [PATCH 2124/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.56.0 (#2427) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7d952e5922c9..aeec27feaa3e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.55.0 + 2.56.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2aa889bbdbbb..e63971b621c9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.55.0 + 2.56.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1da41eead16e..1db0d6cb2e2e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.55.0 + 2.56.0 tests From e6a066112c9d7436a101508d72a71b467437a09e Mon Sep 17 00:00:00 2001 From: Kamal Aboul-Hosn Date: Thu, 15 May 2025 10:48:33 -0400 Subject: [PATCH 2125/2363] docs(sample): Add samples for topic and subscription SMTs (#2388) * docs(sample): Add samples for topic and subscription SMTs * docs(sample): Add samples for topic and subscription SMTs * Fix missing paren * Formatting fixes --- .../CreateSubscriptionWithSmtExample.java | 74 +++++++++++++++++++ .../pubsub/CreateTopicWithSmtExample.java | 72 ++++++++++++++++++ .../src/test/java/pubsub/AdminIT.java | 24 ++++++ 3 files changed, 170 insertions(+) create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java create mode 100644 java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java new file mode 100644 index 000000000000..38ded51baeb8 --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java @@ -0,0 +1,74 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_subscription_with_smt] +import com.google.cloud.pubsub.v1.SubscriptionAdminClient; +import com.google.pubsub.v1.JavaScriptUDF; +import com.google.pubsub.v1.MessageTransform; +import com.google.pubsub.v1.ProjectSubscriptionName; +import com.google.pubsub.v1.ProjectTopicName; +import com.google.pubsub.v1.Subscription; +import java.io.IOException; + +public class CreateSubscriptionWithSmtExample { + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + String subscriptionId = "your-subscription-id"; + + createSubscriptionWithSmtExample(projectId, topicId, subscriptionId); + } + + public static void createSubscriptionWithSmtExample( + String projectId, String topicId, String subscriptionId) throws IOException { + + // UDF that removes the 'ssn' field, if present + String code = + "function redactSSN(message, metadata) {" + + " const data = JSON.parse(message.data);" + + " delete data['ssn'];" + + " message.data = JSON.stringify(data);" + + " return message;" + + "}"; + String functionName = "redactSSN"; + + JavaScriptUDF udf = + JavaScriptUDF.newBuilder().setCode(code).setFunctionName(functionName).build(); + MessageTransform transform = MessageTransform.newBuilder().setJavascriptUdf(udf).build(); + + try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) { + + ProjectTopicName topicName = ProjectTopicName.of(projectId, topicId); + ProjectSubscriptionName subscriptionName = + ProjectSubscriptionName.of(projectId, subscriptionId); + + Subscription subscription = + subscriptionAdminClient.createSubscription( + Subscription.newBuilder() + .setName(subscriptionName.toString()) + .setTopic(topicName.toString()) + // Add the UDF message transform + .addMessageTransforms(transform) + .build()); + + System.out.println("Created subscription with SMT: " + subscription.getAllFields()); + } + } +} +// [END pubsub_create_subscription_with_smt] \ No newline at end of file diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java new file mode 100644 index 000000000000..e784e135af2f --- /dev/null +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java @@ -0,0 +1,72 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package pubsub; + +// [START pubsub_create_topic_with_smt] + +import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.pubsub.v1.JavaScriptUDF; +import com.google.pubsub.v1.MessageTransform; +import com.google.pubsub.v1.Topic; +import com.google.pubsub.v1.TopicName; +import java.io.IOException; + +public class CreateTopicWithSmtExample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String topicId = "your-topic-id"; + + createTopicWithSmtExample(projectId, topicId); + } + + public static void createTopicWithSmtExample(String projectId, String topicId) + throws IOException { + TopicName topicName = TopicName.of(projectId, topicId); + + // UDF that removes the 'ssn' field, if present + String code = + "function redactSSN(message, metadata) {" + + " const data = JSON.parse(message.data);" + + " delete data['ssn'];" + + " message.data = JSON.stringify(data);" + + " return message;" + + "}"; + String functionName = "redactSSN"; + + JavaScriptUDF udf = + JavaScriptUDF.newBuilder().setCode(code).setFunctionName(functionName).build(); + MessageTransform transform = MessageTransform.newBuilder().setJavascriptUdf(udf).build(); + try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { + + Topic topic = + topicAdminClient.createTopic( + Topic.newBuilder() + .setName(topicName.toString()) + // Add the UDF message transform + .addMessageTransforms(transform) + .build()); + + System.out.println("Created topic with SMT: " + topic.getName()); + } catch (AlreadyExistsException e) { + System.out.println(topicName + "already exists."); + } + } +} + // [END pubsub_create_topic_with_smt] \ No newline at end of file diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index accec5126698..caefdcb0867a 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -60,10 +60,12 @@ public class AdminIT { "confluent-cloud-ingestion-topic-" + _suffix; private static final String azureEventHubsIngestionTopicId = "azure-event-hubs-ingestion-topic-" + _suffix; + private static final String smtTopicId = "smt-topic-" + _suffix; private static final String pullSubscriptionId = "iam-pull-subscription-" + _suffix; private static final String pushSubscriptionId = "iam-push-subscription-" + _suffix; private static final String orderedSubscriptionId = "iam-ordered-subscription-" + _suffix; private static final String filteredSubscriptionId = "iam-filtered-subscription-" + _suffix; + private static final String smtSubscriptionId = "smt-subscription-" + _suffix; private static final String exactlyOnceSubscriptionId = "iam-exactly-once-subscription-" + _suffix; private static final String pushEndpoint = "https://my-test-project.appspot.com/push"; @@ -118,6 +120,8 @@ public class AdminIT { TopicName.of(projectId, confluentCloudIngestionTopicId); private static final TopicName azureEventHubsIngestionTopicName = TopicName.of(projectId, azureEventHubsIngestionTopicId); + private static final TopicName smtTopicName = + TopicName.of(projectId, smtTopicId); private static final SubscriptionName pullSubscriptionName = SubscriptionName.of(projectId, pullSubscriptionId); private static final SubscriptionName pushSubscriptionName = @@ -128,6 +132,8 @@ public class AdminIT { SubscriptionName.of(projectId, filteredSubscriptionId); private static final SubscriptionName exactlyOnceSubscriptionName = SubscriptionName.of(projectId, exactlyOnceSubscriptionId); + private static final SubscriptionName smtSubscriptionName = + SubscriptionName.of(projectId, smtSubscriptionId); private static void requireEnvVar(String varName) { assertNotNull( @@ -456,5 +462,23 @@ public void testAdmin() throws Exception { // Test delete Azure Event Hubs ingestion topic. DeleteTopicExample.deleteTopicExample(projectId, azureEventHubsIngestionTopicId); assertThat(bout.toString()).contains("Deleted topic."); + + bout.reset(); + // Test create topic with an SMT. + CreateTopicWithSmtExample.createTopicWithSmtExample( + projectId, smtTopicId); + assertThat(bout.toString()) + .contains("Created topic with SMT: " + smtTopicName.toString()); + + bout.reset(); + // Test create topic with an SMT. + CreateSubscriptionWithSmtExample.createSubscriptionWithSmtExample( + projectId, smtTopicId, smtSubscriptionId); + assertThat(bout.toString()) + .contains("Created subscription with SMT"); + assertThat(bout.toString()).contains(smtSubscriptionName.toString()); + assertThat(bout.toString()).contains("redactSSN"); + DeleteSubscriptionExample.deleteSubscriptionExample(projectId, smtSubscriptionId); + DeleteTopicExample.deleteTopicExample(projectId, smtTopicId); } } From 482de7d1d0cf644a1f1217ba654013dc91ed0c7b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 May 2025 16:48:55 +0200 Subject: [PATCH 2126/2363] deps: update dependency com.google.cloud.opentelemetry:exporter-trace to v0.34.0 (#2376) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index aeec27feaa3e..b73774790ddb 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -96,7 +96,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.33.0 + 0.34.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e63971b621c9..b72918687191 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -95,7 +95,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.33.0 + 0.34.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1db0d6cb2e2e..c5877a62ef9b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -70,7 +70,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.33.0 + 0.34.0 org.apache.avro From cd796d3b9aaefb8aaa09ac57d153f3b782f60b72 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 May 2025 21:35:25 +0200 Subject: [PATCH 2127/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.48.0 (#2428) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 006d4eecbc46..704e6180703d 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.47.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.48.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5ae411b79216..1e7d1643f414 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.47.0 + 3.48.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2a8f7a47e548..b6ab84c299c1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.47.0 + 3.48.0 From 8d9688c90f5946ce75f292f049d442f072cb2e68 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 May 2025 11:09:11 -0400 Subject: [PATCH 2128/2363] chore(main): release 1.139.4 (#2419) * chore(main): release 1.139.4 * chore: generate libraries at Thu May 15 19:36:21 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 24 +++++++++++++++++++ java-pubsub/README.md | 8 ++++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- .../CreateSubscriptionWithSmtExample.java | 2 +- .../pubsub/CreateTopicWithSmtExample.java | 2 +- .../src/test/java/pubsub/AdminIT.java | 12 ++++------ java-pubsub/versions.txt | 6 ++--- 12 files changed, 53 insertions(+), 31 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 39b977b057a1..6657c106573f 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [1.139.4](https://github.com/googleapis/java-pubsub/compare/v1.139.3...v1.139.4) (2025-05-15) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.57.0 ([017eb0f](https://github.com/googleapis/java-pubsub/commit/017eb0f78423fde3edd42a07677df49512085633)) +* **deps:** Update the Java code generator (gapic-generator-java) to 2.58.0 ([3713edb](https://github.com/googleapis/java-pubsub/commit/3713edb9420f792b7c7ad4e430ca05b5942656ff)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.50.0 ([#2422](https://github.com/googleapis/java-pubsub/issues/2422)) ([993b2d0](https://github.com/googleapis/java-pubsub/commit/993b2d06ce6b45bb72faa9d6959cddc14a9cf60e)) +* Update dependency com.google.cloud:google-cloud-core to v2.55.0 ([#2413](https://github.com/googleapis/java-pubsub/issues/2413)) ([3e181e7](https://github.com/googleapis/java-pubsub/commit/3e181e7c4469eadcf6f148ee0a30aae1cfa825f3)) +* Update dependency com.google.cloud:google-cloud-core to v2.56.0 ([#2427](https://github.com/googleapis/java-pubsub/issues/2427)) ([b2a3e35](https://github.com/googleapis/java-pubsub/commit/b2a3e35ced2d1715c37207f98740889635326dc1)) +* Update dependency com.google.cloud:google-cloud-storage to v2.52.2 ([#2421](https://github.com/googleapis/java-pubsub/issues/2421)) ([1224ee5](https://github.com/googleapis/java-pubsub/commit/1224ee51da27e447560076b0d51ba90515566bd9)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.47.0 ([#2418](https://github.com/googleapis/java-pubsub/issues/2418)) ([5f87661](https://github.com/googleapis/java-pubsub/commit/5f876612eb4a54faec3af2c9043aec0adf51e2ec)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.48.0 ([#2428](https://github.com/googleapis/java-pubsub/issues/2428)) ([cfa91fa](https://github.com/googleapis/java-pubsub/commit/cfa91fa0e85f3f1e517627da3e5befcd46f0803a)) +* Update dependency com.google.cloud.opentelemetry:exporter-trace to v0.34.0 ([#2376](https://github.com/googleapis/java-pubsub/issues/2376)) ([06768cd](https://github.com/googleapis/java-pubsub/commit/06768cd1ac86ae7ae7b91b020cc174b4423e1b9a)) + + +### Documentation + +* **sample:** Add samples for topic and subscription SMTs ([#2388](https://github.com/googleapis/java-pubsub/issues/2388)) ([f35de28](https://github.com/googleapis/java-pubsub/commit/f35de28396fda595e6ea68c1755a4253d6b097d6)) + ## [1.139.3](https://github.com/googleapis/java-pubsub/compare/v1.139.2...v1.139.3) (2025-05-06) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5687de39eb01..b266a65efb3e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.139.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.4" ``` ## Authentication @@ -252,6 +252,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Subscription With Exactly Once Delivery | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | | Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | | Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | +| Create Subscription With Smt Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java) | | Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | | Create Topic With Aws Msk Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | | Create Topic With Azure Event Hubs Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | @@ -260,6 +261,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/m | Create Topic With Kinesis Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | | Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | | Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | +| Create Topic With Smt Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java) | | Create Unwrapped Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | | Delete Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | | Delete Schema Revision Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | @@ -418,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1e7d1643f414..1edcb15cb991 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.4-SNAPSHOT + 1.139.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.4-SNAPSHOT + 1.139.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 9dc3ec1c9c2a..dd5fe6a55494 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.4-SNAPSHOT + 1.139.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.4-SNAPSHOT + 1.139.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9555436c06fc..c44258fb180d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.4-SNAPSHOT + 1.139.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b6ab84c299c1..92ec4902e090 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.4-SNAPSHOT + 1.139.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 com.google.cloud google-cloud-pubsub - 1.139.4-SNAPSHOT + 1.139.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d56dcc5c6c2e..0586560ae2ef 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4-SNAPSHOT + 1.121.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.4-SNAPSHOT + 1.139.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b72918687191..267ff17f2aae 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.4-SNAPSHOT + 1.139.4 diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java index 38ded51baeb8..53516c54099c 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java @@ -71,4 +71,4 @@ public static void createSubscriptionWithSmtExample( } } } -// [END pubsub_create_subscription_with_smt] \ No newline at end of file +// [END pubsub_create_subscription_with_smt] diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java index e784e135af2f..c96322015381 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java @@ -69,4 +69,4 @@ public static void createTopicWithSmtExample(String projectId, String topicId) } } } - // [END pubsub_create_topic_with_smt] \ No newline at end of file + // [END pubsub_create_topic_with_smt] diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index caefdcb0867a..60c85f340820 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -120,8 +120,7 @@ public class AdminIT { TopicName.of(projectId, confluentCloudIngestionTopicId); private static final TopicName azureEventHubsIngestionTopicName = TopicName.of(projectId, azureEventHubsIngestionTopicId); - private static final TopicName smtTopicName = - TopicName.of(projectId, smtTopicId); + private static final TopicName smtTopicName = TopicName.of(projectId, smtTopicId); private static final SubscriptionName pullSubscriptionName = SubscriptionName.of(projectId, pullSubscriptionId); private static final SubscriptionName pushSubscriptionName = @@ -465,17 +464,14 @@ public void testAdmin() throws Exception { bout.reset(); // Test create topic with an SMT. - CreateTopicWithSmtExample.createTopicWithSmtExample( - projectId, smtTopicId); - assertThat(bout.toString()) - .contains("Created topic with SMT: " + smtTopicName.toString()); + CreateTopicWithSmtExample.createTopicWithSmtExample(projectId, smtTopicId); + assertThat(bout.toString()).contains("Created topic with SMT: " + smtTopicName.toString()); bout.reset(); // Test create topic with an SMT. CreateSubscriptionWithSmtExample.createSubscriptionWithSmtExample( projectId, smtTopicId, smtSubscriptionId); - assertThat(bout.toString()) - .contains("Created subscription with SMT"); + assertThat(bout.toString()).contains("Created subscription with SMT"); assertThat(bout.toString()).contains(smtSubscriptionName.toString()); assertThat(bout.toString()).contains("redactSSN"); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, smtSubscriptionId); diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 429229b08c00..891e99e9b4f8 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.3:1.139.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.3:1.121.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.3:1.121.4-SNAPSHOT +google-cloud-pubsub:1.139.4:1.139.4 +grpc-google-cloud-pubsub-v1:1.121.4:1.121.4 +proto-google-cloud-pubsub-v1:1.121.4:1.121.4 From 325493d850cd1258d1b300f6d9b04023c164f966 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 16 May 2025 17:46:54 +0200 Subject: [PATCH 2129/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.31.0 (#2430) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b73774790ddb..2dc9b7d089b4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.30.2 + 4.31.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 267ff17f2aae..21f0d23a70b5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.30.2 + 4.31.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c5877a62ef9b..414e4c7039ff 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.30.2 + 4.31.0 From fb40c61310f1d9895c6fa881b8fc601d7b7ae1b7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 May 2025 17:23:01 +0200 Subject: [PATCH 2130/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.50.1 (#2435) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 2dc9b7d089b4..892b13e3a6cf 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.50.0 + 2.50.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 21f0d23a70b5..3bbeee0075c4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.50.0 + 2.50.1 com.google.cloud From 6555801527273742c6b26c0da8a5590bd8083a6f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 21 May 2025 17:23:10 +0200 Subject: [PATCH 2131/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.52.3 (#2436) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 892b13e3a6cf..615922d94a54 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.52.2 + 2.52.3 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3bbeee0075c4..ca7eae922a1e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.52.2 + 2.52.3 com.google.cloud.opentelemetry From bd8d9b1fc2a7343c5324446b8d655fcd8952c629 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 22 May 2025 00:14:44 +0200 Subject: [PATCH 2132/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.139.4 (#2434) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 615922d94a54..364fccb9c268 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4 From 0b671f423f454cbf200a39bc60aea2e2cf74607d Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 22 May 2025 09:56:54 -0400 Subject: [PATCH 2133/2363] chore: Update generation configuration at Thu May 22 02:33:49 UTC 2025 (#2432) * chore: Update generation configuration at Fri May 16 02:34:07 UTC 2025 * chore: generate libraries at Fri May 16 02:34:49 UTC 2025 * chore: Update generation configuration at Sat May 17 02:32:21 UTC 2025 * chore: Update generation configuration at Tue May 20 02:34:14 UTC 2025 * chore: Update generation configuration at Wed May 21 02:34:06 UTC 2025 * chore: Update generation configuration at Thu May 22 02:33:49 UTC 2025 * chore: generate libraries at Thu May 22 02:34:17 UTC 2025 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 2 +- .../pubsub/v1/SubscriptionAdminClient.java | 4 +- .../reflect-config.json | 36 + .../com/google/pubsub/v1/SubscriberGrpc.java | 6 +- .../google/pubsub/v1/CloudStorageConfig.java | 24 +- .../v1/CloudStorageConfigOrBuilder.java | 6 +- .../google/pubsub/v1/DeadLetterPolicy.java | 8 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../pubsub/v1/IngestionFailureEvent.java | 6815 +++++++++++++---- .../v1/IngestionFailureEventOrBuilder.java | 44 + .../google/pubsub/v1/MessageTransform.java | 8 +- .../pubsub/v1/MessageTransformOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 375 +- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/RetryPolicy.java | 4 +- .../pubsub/v1/StreamingPullRequest.java | 121 +- .../v1/StreamingPullRequestOrBuilder.java | 36 +- .../pubsub/v1/StreamingPullResponse.java | 314 +- .../com/google/pubsub/v1/Subscription.java | 56 +- .../pubsub/v1/SubscriptionOrBuilder.java | 14 +- .../main/proto/google/pubsub/v1/pubsub.proto | 90 +- 23 files changed, 6037 insertions(+), 1942 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b266a65efb3e..fe7b35eeeb22 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.139.3 + 1.139.4 ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 93466f8b5d73..4e87f268b244 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.58.0 -googleapis_commitish: f319bbc88abd22cd8c39c349e776cf3dc2722214 +googleapis_commitish: 488c8cc0d41aca4b4f33748ab6166129edcfd836 libraries_bom_version: 26.60.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index c18683cf657e..61b93520fcae 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -266,7 +266,7 @@ * *
    * - * + * *
    MethodsMethods
    MethodDescriptionMethod Variants
    CreateTopic

    CreateTopic

    Creates the given topic with the given name. See the [resource name rules] (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • createTopic(Topic request) + *
    • createTopic(Topic request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • createTopic(TopicName name) - *
    • createTopic(String name) + *
    • createTopic(TopicName name) + *

    • createTopic(String name) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • createTopicCallable() + *
    • createTopicCallable() *

    *
    UpdateTopic

    Updates an existing topic. Note that certain properties of a topic are not modifiable.

    UpdateTopic

    Updates an existing topic by updating the fields specified in the update mask. Note that certain properties of a topic are not modifiable.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • updateTopic(UpdateTopicRequest request) + *
    • updateTopic(UpdateTopicRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • updateTopic(Topic topic, FieldMask updateMask) + *
    • updateTopic(Topic topic, FieldMask updateMask) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • updateTopicCallable() + *
    • updateTopicCallable() *

    *
    Publish

    Publish

    Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does not exist.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • publish(PublishRequest request) + *
    • publish(PublishRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • publish(TopicName topic, List<PubsubMessage> messages) - *
    • publish(String topic, List<PubsubMessage> messages) + *
    • publish(TopicName topic, List<PubsubMessage> messages) + *

    • publish(String topic, List<PubsubMessage> messages) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • publishCallable() + *
    • publishCallable() *

    *
    GetTopic

    GetTopic

    Gets the configuration of a topic.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • getTopic(GetTopicRequest request) + *
    • getTopic(GetTopicRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • getTopic(TopicName topic) - *
    • getTopic(String topic) + *
    • getTopic(TopicName topic) + *

    • getTopic(String topic) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • getTopicCallable() + *
    • getTopicCallable() *

    *
    ListTopics

    ListTopics

    Lists matching topics.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • listTopics(ListTopicsRequest request) + *
    • listTopics(ListTopicsRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • listTopics(ProjectName project) - *
    • listTopics(String project) + *
    • listTopics(ProjectName project) + *

    • listTopics(String project) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • listTopicsPagedCallable() - *
    • listTopicsCallable() + *
    • listTopicsPagedCallable() + *

    • listTopicsCallable() *

    *
    ListTopicSubscriptions

    ListTopicSubscriptions

    Lists the names of the attached subscriptions on this topic.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • listTopicSubscriptions(ListTopicSubscriptionsRequest request) + *
    • listTopicSubscriptions(ListTopicSubscriptionsRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • listTopicSubscriptions(TopicName topic) - *
    • listTopicSubscriptions(String topic) + *
    • listTopicSubscriptions(TopicName topic) + *

    • listTopicSubscriptions(String topic) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • listTopicSubscriptionsPagedCallable() - *
    • listTopicSubscriptionsCallable() + *
    • listTopicSubscriptionsPagedCallable() + *

    • listTopicSubscriptionsCallable() *

    *
    ListTopicSnapshots

    ListTopicSnapshots

    Lists the names of the snapshots on this topic. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • listTopicSnapshots(ListTopicSnapshotsRequest request) + *
    • listTopicSnapshots(ListTopicSnapshotsRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • listTopicSnapshots(TopicName topic) - *
    • listTopicSnapshots(String topic) + *
    • listTopicSnapshots(TopicName topic) + *

    • listTopicSnapshots(String topic) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • listTopicSnapshotsPagedCallable() - *
    • listTopicSnapshotsCallable() + *
    • listTopicSnapshotsPagedCallable() + *

    • listTopicSnapshotsCallable() *

    *
    DeleteTopic

    DeleteTopic

    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_`.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • deleteTopic(DeleteTopicRequest request) + *
    • deleteTopic(DeleteTopicRequest request) *

    *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    *
      - *
    • deleteTopic(TopicName topic) - *
    • deleteTopic(String topic) + *
    • deleteTopic(TopicName topic) + *

    • deleteTopic(String topic) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • deleteTopicCallable() + *
    • deleteTopicCallable() *

    *
    DetachSubscription

    DetachSubscription

    Detaches a subscription from this topic. All messages retained in the subscription are dropped. Subsequent `Pull` and `StreamingPull` requests will return FAILED_PRECONDITION. If the subscription is a push subscription, pushes to the endpoint will stop.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • detachSubscription(DetachSubscriptionRequest request) + *
    • detachSubscription(DetachSubscriptionRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • detachSubscriptionCallable() + *
    • detachSubscriptionCallable() *

    *
    SetIamPolicy

    SetIamPolicy

    Sets the access control policy on the specified resource. Replacesany existing policy. *

    Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • setIamPolicy(SetIamPolicyRequest request) + *
    • setIamPolicy(SetIamPolicyRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • setIamPolicyCallable() + *
    • setIamPolicyCallable() *

    *
    GetIamPolicy

    GetIamPolicy

    Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • getIamPolicy(GetIamPolicyRequest request) + *
    • getIamPolicy(GetIamPolicyRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • getIamPolicyCallable() + *
    • getIamPolicyCallable() *

    *
    TestIamPermissions

    TestIamPermissions

    Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. *

    Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

    *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      - *
    • testIamPermissions(TestIamPermissionsRequest request) + *
    • testIamPermissions(TestIamPermissionsRequest request) *

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      - *
    • testIamPermissionsCallable() + *
    • testIamPermissionsCallable() *

    *

    StreamingPull

    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.

    Establishes a stream with the server, which sends messages down to the client. The client streams acknowledgments 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.

    *

    Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

    *
      @@ -2379,7 +2379,7 @@ public final UnaryCallable pullCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 + * streams acknowledgments 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 diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 3c5de9478ead..f0c86a2e7b48 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -2114,6 +2114,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsKinesisFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsKinesisFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionFailureEvent$AwsMskFailureReason", "queryAllDeclaredConstructors": true, @@ -2195,6 +2213,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$SchemaViolationReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$SchemaViolationReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.JavaScriptUDF", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 531c82e20e0e..2a8fc9299956 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -891,7 +891,7 @@ default void pull( * *
            * Establishes a stream with the server, which sends messages down to the
      -     * client. The client streams acknowledgements and ack deadline modifications
      +     * client. The client streams acknowledgments 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
      @@ -1241,7 +1241,7 @@ public void pull(
            *
            * 
            * Establishes a stream with the server, which sends messages down to the
      -     * client. The client streams acknowledgements and ack deadline modifications
      +     * client. The client streams acknowledgments 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
      @@ -1564,7 +1564,7 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r
            *
            * 
            * Establishes a stream with the server, which sends messages down to the
      -     * client. The client streams acknowledgements and ack deadline modifications
      +     * client. The client streams acknowledgments 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
      diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java
      index 6d4d9bbfb53f..601c178e638e 100644
      --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java
      +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java
      @@ -1834,7 +1834,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig
          * 
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -   * exceed the subscription's acknowledgement deadline.
      +   * exceed the subscription's acknowledgment deadline.
          * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1853,7 +1853,7 @@ public boolean hasMaxDuration() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -   * exceed the subscription's acknowledgement deadline.
      +   * exceed the subscription's acknowledgment deadline.
          * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1872,7 +1872,7 @@ public com.google.protobuf.Duration getMaxDuration() { *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -   * exceed the subscription's acknowledgement deadline.
      +   * exceed the subscription's acknowledgment deadline.
          * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3667,7 +3667,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig *
            * Optional. The maximum duration that can elapse before a new Cloud Storage
            * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -     * exceed the subscription's acknowledgement deadline.
      +     * exceed the subscription's acknowledgment deadline.
            * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3685,7 +3685,7 @@ public boolean hasMaxDuration() { *
            * Optional. The maximum duration that can elapse before a new Cloud Storage
            * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -     * exceed the subscription's acknowledgement deadline.
      +     * exceed the subscription's acknowledgment deadline.
            * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3709,7 +3709,7 @@ public com.google.protobuf.Duration getMaxDuration() { *
            * Optional. The maximum duration that can elapse before a new Cloud Storage
            * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -     * exceed the subscription's acknowledgement deadline.
      +     * exceed the subscription's acknowledgment deadline.
            * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3735,7 +3735,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration value) { *
            * Optional. The maximum duration that can elapse before a new Cloud Storage
            * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -     * exceed the subscription's acknowledgement deadline.
      +     * exceed the subscription's acknowledgment deadline.
            * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3758,7 +3758,7 @@ public Builder setMaxDuration(com.google.protobuf.Duration.Builder builderForVal *
            * Optional. The maximum duration that can elapse before a new Cloud Storage
            * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -     * exceed the subscription's acknowledgement deadline.
      +     * exceed the subscription's acknowledgment deadline.
            * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3789,7 +3789,7 @@ public Builder mergeMaxDuration(com.google.protobuf.Duration value) { *
            * Optional. The maximum duration that can elapse before a new Cloud Storage
            * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -     * exceed the subscription's acknowledgement deadline.
      +     * exceed the subscription's acknowledgment deadline.
            * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3812,7 +3812,7 @@ public Builder clearMaxDuration() { *
            * Optional. The maximum duration that can elapse before a new Cloud Storage
            * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -     * exceed the subscription's acknowledgement deadline.
      +     * exceed the subscription's acknowledgment deadline.
            * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3830,7 +3830,7 @@ public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { *
            * Optional. The maximum duration that can elapse before a new Cloud Storage
            * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -     * exceed the subscription's acknowledgement deadline.
      +     * exceed the subscription's acknowledgment deadline.
            * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -3852,7 +3852,7 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { *
            * Optional. The maximum duration that can elapse before a new Cloud Storage
            * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -     * exceed the subscription's acknowledgement deadline.
      +     * exceed the subscription's acknowledgment deadline.
            * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index b4977dc74a3e..d3bbad2428fa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -242,7 +242,7 @@ public interface CloudStorageConfigOrBuilder *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -   * exceed the subscription's acknowledgement deadline.
      +   * exceed the subscription's acknowledgment deadline.
          * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -258,7 +258,7 @@ public interface CloudStorageConfigOrBuilder *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -   * exceed the subscription's acknowledgement deadline.
      +   * exceed the subscription's acknowledgment deadline.
          * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -274,7 +274,7 @@ public interface CloudStorageConfigOrBuilder *
          * Optional. The maximum duration that can elapse before a new Cloud Storage
          * file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
      -   * exceed the subscription's acknowledgement deadline.
      +   * exceed the subscription's acknowledgment deadline.
          * 
      * * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 51009677c658..eb42e460216b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -695,7 +695,7 @@ public Builder setDeadLetterTopicBytes(com.google.protobuf.ByteString value) { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -723,7 +723,7 @@ public int getMaxDeliveryAttempts() { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -755,7 +755,7 @@ public Builder setMaxDeliveryAttempts(int value) { * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index e5f13f3db2f5..29f9d6536456 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -74,7 +74,7 @@ public interface DeadLetterPolicyOrBuilder * value must be between 5 and 100. * * The number of delivery attempts is defined as 1 + (the sum of number of - * NACKs and number of times the acknowledgement deadline has been exceeded + * NACKs and number of times the acknowledgment deadline has been exceeded * for the message). * * A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 206b6d9e9155..b423b901da5b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -945,122 +945,2819 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface SchemaViolationReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
      +   * Set when a Pub/Sub message fails to get published due to a schema
      +   * validation violation.
      +   * 
      + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} + */ + public static final class SchemaViolationReason extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + SchemaViolationReasonOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SchemaViolationReason.newBuilder() to construct. + private SchemaViolationReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SchemaViolationReason() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SchemaViolationReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.class, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason other = + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Set when a Pub/Sub message fails to get published due to a schema
      +     * validation violation.
      +     * 
      + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.class, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason build() { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason result = + new com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchemaViolationReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface CloudStorageFailureOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. Name of the Cloud Storage bucket used for ingestion.
      +     * 
      + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + java.lang.String getBucket(); + + /** + * + * + *
      +     * Optional. Name of the Cloud Storage bucket used for ingestion.
      +     * 
      + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); + + /** + * + * + *
      +     * Optional. Name of the Cloud Storage object which contained the section
      +     * that couldn't be ingested.
      +     * 
      + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + java.lang.String getObjectName(); + + /** + * + * + *
      +     * Optional. Name of the Cloud Storage object which contained the section
      +     * that couldn't be ingested.
      +     * 
      + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + com.google.protobuf.ByteString getObjectNameBytes(); + + /** + * + * + *
      +     * Optional. Generation of the Cloud Storage object which contained the
      +     * section that couldn't be ingested.
      +     * 
      + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + long getObjectGeneration(); + + /** + * + * + *
      +     * Optional. Failure encountered when parsing an Avro file.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + boolean hasAvroFailureReason(); + + /** + * + * + *
      +     * Optional. Failure encountered when parsing an Avro file.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason(); + + /** + * + * + *
      +     * Optional. Failure encountered when parsing an Avro file.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder(); + + /** + * + * + *
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + + /** + * + * + *
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + + /** + * + * + *
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); + } + + /** + * + * + *
      +   * Failure when ingesting from a Cloud Storage source.
      +   * 
      + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + */ + public static final class CloudStorageFailure extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + CloudStorageFailureOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudStorageFailure.newBuilder() to construct. + private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorageFailure() { + bucket_ = ""; + objectName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorageFailure(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + } + + private int reasonCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reason_; + + public enum ReasonCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AVRO_FAILURE_REASON(5), + API_VIOLATION_REASON(6), + SCHEMA_VIOLATION_REASON(7), + REASON_NOT_SET(0); + private final int value; + + private ReasonCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReasonCase valueOf(int value) { + return forNumber(value); + } + + public static ReasonCase forNumber(int value) { + switch (value) { + case 5: + return AVRO_FAILURE_REASON; + case 6: + return API_VIOLATION_REASON; + case 7: + return SCHEMA_VIOLATION_REASON; + case 0: + return REASON_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + + /** + * + * + *
      +     * Optional. Name of the Cloud Storage bucket used for ingestion.
      +     * 
      + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. Name of the Cloud Storage bucket used for ingestion.
      +     * 
      + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object objectName_ = ""; + + /** + * + * + *
      +     * Optional. Name of the Cloud Storage object which contained the section
      +     * that couldn't be ingested.
      +     * 
      + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + @java.lang.Override + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } + } + + /** + * + * + *
      +     * Optional. Name of the Cloud Storage object which contained the section
      +     * that couldn't be ingested.
      +     * 
      + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_GENERATION_FIELD_NUMBER = 3; + private long objectGeneration_ = 0L; + + /** + * + * + *
      +     * Optional. Generation of the Cloud Storage object which contained the
      +     * section that couldn't be ingested.
      +     * 
      + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + @java.lang.Override + public long getObjectGeneration() { + return objectGeneration_; + } + + public static final int AVRO_FAILURE_REASON_FIELD_NUMBER = 5; + + /** + * + * + *
      +     * Optional. Failure encountered when parsing an Avro file.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + @java.lang.Override + public boolean hasAvroFailureReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
      +     * Optional. Failure encountered when parsing an Avro file.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. Failure encountered when parsing an Avro file.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 7; + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); + } + if (objectGeneration_ != 0L) { + output.writeInt64(3, objectGeneration_); + } + if (reasonCase_ == 5) { + output.writeMessage( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + if (reasonCase_ == 7) { + output.writeMessage( + 7, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); + } + if (objectGeneration_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, objectGeneration_); + } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + if (reasonCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other = + (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) obj; + + if (!getBucket().equals(other.getBucket())) return false; + if (!getObjectName().equals(other.getObjectName())) return false; + if (getObjectGeneration() != other.getObjectGeneration()) return false; + if (!getReasonCase().equals(other.getReasonCase())) return false; + switch (reasonCase_) { + case 5: + if (!getAvroFailureReason().equals(other.getAvroFailureReason())) return false; + break; + case 6: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; + case 7: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getObjectName().hashCode(); + hash = (37 * hash) + OBJECT_GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectGeneration()); + switch (reasonCase_) { + case 5: + hash = (37 * hash) + AVRO_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getAvroFailureReason().hashCode(); + break; + case 6: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; + case 7: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Failure when ingesting from a Cloud Storage source.
      +     * 
      + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + } + + // Construct using com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucket_ = ""; + objectName_ = ""; + objectGeneration_ = 0L; + if (avroFailureReasonBuilder_ != null) { + avroFailureReasonBuilder_.clear(); + } + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } + reasonCase_ = 0; + reason_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = + new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucket_ = bucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.objectName_ = objectName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.objectGeneration_ = objectGeneration_; + } + } + + private void buildPartialOneofs( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + result.reasonCase_ = reasonCase_; + result.reason_ = this.reason_; + if (reasonCase_ == 5 && avroFailureReasonBuilder_ != null) { + result.reason_ = avroFailureReasonBuilder_.build(); + } + if (reasonCase_ == 6 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } + if (reasonCase_ == 7 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance()) + return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getObjectName().isEmpty()) { + objectName_ = other.objectName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getObjectGeneration() != 0L) { + setObjectGeneration(other.getObjectGeneration()); + } + switch (other.getReasonCase()) { + case AVRO_FAILURE_REASON: + { + mergeAvroFailureReason(other.getAvroFailureReason()); + break; + } + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } + case SCHEMA_VIOLATION_REASON: + { + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } + case REASON_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + objectName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + objectGeneration_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: + { + input.readMessage( + getAvroFailureReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 7; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int reasonCase_ = 0; + private java.lang.Object reason_; + + public ReasonCase getReasonCase() { + return ReasonCase.forNumber(reasonCase_); + } + + public Builder clearReason() { + reasonCase_ = 0; + reason_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object bucket_ = ""; + + /** + * + * + *
      +       * Optional. Name of the Cloud Storage bucket used for ingestion.
      +       * 
      + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. Name of the Cloud Storage bucket used for ingestion.
      +       * 
      + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. Name of the Cloud Storage bucket used for ingestion.
      +       * 
      + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Name of the Cloud Storage bucket used for ingestion.
      +       * 
      + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Name of the Cloud Storage bucket used for ingestion.
      +       * 
      + * + * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object objectName_ = ""; + + /** + * + * + *
      +       * Optional. Name of the Cloud Storage object which contained the section
      +       * that couldn't be ingested.
      +       * 
      + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectName. + */ + public java.lang.String getObjectName() { + java.lang.Object ref = objectName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + objectName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +       * Optional. Name of the Cloud Storage object which contained the section
      +       * that couldn't be ingested.
      +       * 
      + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for objectName. + */ + public com.google.protobuf.ByteString getObjectNameBytes() { + java.lang.Object ref = objectName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + objectName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +       * Optional. Name of the Cloud Storage object which contained the section
      +       * that couldn't be ingested.
      +       * 
      + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + objectName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Name of the Cloud Storage object which contained the section
      +       * that couldn't be ingested.
      +       * 
      + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObjectName() { + objectName_ = getDefaultInstance().getObjectName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Name of the Cloud Storage object which contained the section
      +       * that couldn't be ingested.
      +       * 
      + * + * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for objectName to set. + * @return This builder for chaining. + */ + public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + objectName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long objectGeneration_; + + /** + * + * + *
      +       * Optional. Generation of the Cloud Storage object which contained the
      +       * section that couldn't be ingested.
      +       * 
      + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The objectGeneration. + */ + @java.lang.Override + public long getObjectGeneration() { + return objectGeneration_; + } + + /** + * + * + *
      +       * Optional. Generation of the Cloud Storage object which contained the
      +       * section that couldn't be ingested.
      +       * 
      + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The objectGeneration to set. + * @return This builder for chaining. + */ + public Builder setObjectGeneration(long value) { + + objectGeneration_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. Generation of the Cloud Storage object which contained the
      +       * section that couldn't be ingested.
      +       * 
      + * + * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObjectGeneration() { + bitField0_ = (bitField0_ & ~0x00000004); + objectGeneration_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> + avroFailureReasonBuilder_; + + /** + * + * + *
      +       * Optional. Failure encountered when parsing an Avro file.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the avroFailureReason field is set. + */ + @java.lang.Override + public boolean hasAvroFailureReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
      +       * Optional. Failure encountered when parsing an Avro file.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The avroFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return avroFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Failure encountered when parsing an Avro file.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { + if (avroFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + avroFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when parsing an Avro file.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder builderForValue) { + if (avroFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + avroFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when parsing an Avro file.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAvroFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + avroFailureReasonBuilder_.mergeFrom(value); + } else { + avroFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when parsing an Avro file.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAvroFailureReason() { + if (avroFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + avroFailureReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when parsing an Avro file.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder + getAvroFailureReasonBuilder() { + return getAvroFailureReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. Failure encountered when parsing an Avro file.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder + getAvroFailureReasonOrBuilder() { + if ((reasonCase_ == 5) && (avroFailureReasonBuilder_ != null)) { + return avroFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Failure encountered when parsing an Avro file.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> + getAvroFailureReasonFieldBuilder() { + if (avroFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + } + avroFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return avroFailureReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 6; + onChanged(); + return apiViolationReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 7) { + return schemaViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 7 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 7) { + schemaViolationReasonBuilder_.mergeFrom(value); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + } + schemaViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 7) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 7)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + schemaViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 7; + onChanged(); + return schemaViolationReasonBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + private static final com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageFailure parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AwsMskFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
      -     * Optional. Name of the Cloud Storage bucket used for ingestion.
      +     * Optional. The ARN of the cluster of the topic being ingested from.
            * 
      * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bucket. + * @return The clusterArn. */ - java.lang.String getBucket(); + java.lang.String getClusterArn(); /** * * *
      -     * Optional. Name of the Cloud Storage bucket used for ingestion.
      +     * Optional. The ARN of the cluster of the topic being ingested from.
            * 
      * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for bucket. + * @return The bytes for clusterArn. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString getClusterArnBytes(); /** * * *
      -     * Optional. Name of the Cloud Storage object which contained the section
      -     * that couldn't be ingested.
      +     * Optional. The name of the Kafka topic being ingested from.
            * 
      * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectName. + * @return The kafkaTopic. */ - java.lang.String getObjectName(); + java.lang.String getKafkaTopic(); /** * * *
      -     * Optional. Name of the Cloud Storage object which contained the section
      -     * that couldn't be ingested.
      +     * Optional. The name of the Kafka topic being ingested from.
            * 
      * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for objectName. + * @return The bytes for kafkaTopic. */ - com.google.protobuf.ByteString getObjectNameBytes(); + com.google.protobuf.ByteString getKafkaTopicBytes(); /** * * *
      -     * Optional. Generation of the Cloud Storage object which contained the
      -     * section that couldn't be ingested.
      +     * Optional. The partition ID of the message that failed to be ingested.
            * 
      * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectGeneration. + * @return The partitionId. */ - long getObjectGeneration(); + long getPartitionId(); /** * * *
      -     * Optional. Failure encountered when parsing an Avro file.
      +     * Optional. The offset within the partition of the message that failed to
      +     * be ingested.
            * 
      * - * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @return Whether the avroFailureReason field is set. + * @return The offset. */ - boolean hasAvroFailureReason(); + long getOffset(); /** * * *
      -     * Optional. Failure encountered when parsing an Avro file.
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The avroFailureReason. + * @return Whether the apiViolationReason field is set. */ - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason(); + boolean hasApiViolationReason(); /** * * *
      -     * Optional. Failure encountered when parsing an Avro file.
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The apiViolationReason. */ - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder - getAvroFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); /** * @@ -1071,91 +3768,103 @@ public interface CloudStorageFailureOrBuilder *
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + + /** * - * @return Whether the apiViolationReason field is set. + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. */ - boolean hasApiViolationReason(); + boolean hasSchemaViolationReason(); /** * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); /** * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); } /** * * *
      -   * Failure when ingesting from a Cloud Storage source.
      +   * Failure when ingesting from an Amazon MSK source.
          * 
      * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} */ - public static final class CloudStorageFailure extends com.google.protobuf.GeneratedMessageV3 + public static final class AwsMskFailureReason extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) - CloudStorageFailureOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + AwsMskFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use CloudStorageFailure.newBuilder() to construct. - private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AwsMskFailureReason.newBuilder() to construct. + private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudStorageFailure() { - bucket_ = ""; - objectName_ = ""; + private AwsMskFailureReason() { + clusterArn_ = ""; + kafkaTopic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CloudStorageFailure(); + return new AwsMskFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -1167,8 +3876,8 @@ public enum ReasonCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AVRO_FAILURE_REASON(5), - API_VIOLATION_REASON(6), + API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -1189,9 +3898,9 @@ public static ReasonCase valueOf(int value) { public static ReasonCase forNumber(int value) { switch (value) { case 5: - return AVRO_FAILURE_REASON; - case 6: return API_VIOLATION_REASON; + case 6: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -1208,31 +3917,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int BUCKET_FIELD_NUMBER = 1; + public static final int CLUSTER_ARN_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object bucket_ = ""; + private volatile java.lang.Object clusterArn_ = ""; /** * * *
      -     * Optional. Name of the Cloud Storage bucket used for ingestion.
      +     * Optional. The ARN of the cluster of the topic being ingested from.
            * 
      * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bucket. + * @return The clusterArn. */ @java.lang.Override - public java.lang.String getBucket() { - java.lang.Object ref = bucket_; + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - bucket_ = s; + clusterArn_ = s; return s; } } @@ -1241,52 +3950,51 @@ public java.lang.String getBucket() { * * *
      -     * Optional. Name of the Cloud Storage bucket used for ingestion.
      +     * Optional. The ARN of the cluster of the topic being ingested from.
            * 
      * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for bucket. + * @return The bytes for clusterArn. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { - java.lang.Object ref = bucket_; + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bucket_ = b; + clusterArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int OBJECT_NAME_FIELD_NUMBER = 2; + public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object objectName_ = ""; + private volatile java.lang.Object kafkaTopic_ = ""; /** * * *
      -     * Optional. Name of the Cloud Storage object which contained the section
      -     * that couldn't be ingested.
      +     * Optional. The name of the Kafka topic being ingested from.
            * 
      * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectName. + * @return The kafkaTopic. */ @java.lang.Override - public java.lang.String getObjectName() { - java.lang.Object ref = objectName_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - objectName_ = s; + kafkaTopic_ = s; return s; } } @@ -1295,64 +4003,83 @@ public java.lang.String getObjectName() { * * *
      -     * Optional. Name of the Cloud Storage object which contained the section
      -     * that couldn't be ingested.
      +     * Optional. The name of the Kafka topic being ingested from.
            * 
      * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for objectName. + * @return The bytes for kafkaTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectNameBytes() { - java.lang.Object ref = objectName_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - objectName_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int OBJECT_GENERATION_FIELD_NUMBER = 3; - private long objectGeneration_ = 0L; + public static final int PARTITION_ID_FIELD_NUMBER = 3; + private long partitionId_ = 0L; /** * * *
      -     * Optional. Generation of the Cloud Storage object which contained the
      -     * section that couldn't be ingested.
      +     * Optional. The partition ID of the message that failed to be ingested.
            * 
      * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectGeneration. + * @return The partitionId. */ @java.lang.Override - public long getObjectGeneration() { - return objectGeneration_; + public long getPartitionId() { + return partitionId_; } - public static final int AVRO_FAILURE_REASON_FIELD_NUMBER = 5; + public static final int OFFSET_FIELD_NUMBER = 4; + private long offset_ = 0L; /** * * *
      -     * Optional. Failure encountered when parsing an Avro file.
      +     * Optional. The offset within the partition of the message that failed to
      +     * be ingested.
      +     * 
      + * + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + + /** + * + * + *
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the avroFailureReason field is set. + * @return Whether the apiViolationReason field is set. */ @java.lang.Override - public boolean hasAvroFailureReason() { + public boolean hasApiViolationReason() { return reasonCase_ == 5; } @@ -1360,61 +4087,62 @@ public boolean hasAvroFailureReason() { * * *
      -     * Optional. Failure encountered when parsing an Avro file.
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The avroFailureReason. + * @return The apiViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } /** * * *
      -     * Optional. Failure encountered when parsing an Avro file.
      +     * Optional. The Pub/Sub API limits prevented the desired message from
      +     * being published.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder - getAvroFailureReasonOrBuilder() { + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } - public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 6; /** * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { + public boolean hasSchemaViolationReason() { return reasonCase_ == 6; } @@ -1422,43 +4150,42 @@ public boolean hasApiViolationReason() { * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } /** * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -1475,22 +4202,25 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); } - if (objectGeneration_ != 0L) { - output.writeInt64(3, objectGeneration_); + if (partitionId_ != 0L) { + output.writeInt64(3, partitionId_); + } + if (offset_ != 0L) { + output.writeInt64(4, offset_); } if (reasonCase_ == 5) { output.writeMessage( - 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } if (reasonCase_ == 6) { output.writeMessage( - 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } getUnknownFields().writeTo(output); } @@ -1501,24 +4231,27 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); } - if (objectGeneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, objectGeneration_); + if (partitionId_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); } if (reasonCase_ == 5) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_); + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } if (reasonCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1530,22 +4263,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure)) { + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other = - (com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) obj; + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (!getObjectName().equals(other.getObjectName())) return false; - if (getObjectGeneration() != other.getObjectGeneration()) return false; + if (!getClusterArn().equals(other.getClusterArn())) return false; + if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; + if (getPartitionId() != other.getPartitionId()) return false; + if (getOffset() != other.getOffset()) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; switch (reasonCase_) { case 5: - if (!getAvroFailureReason().equals(other.getAvroFailureReason())) return false; + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; break; case 6: - if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; case 0: default: @@ -1561,21 +4295,23 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BUCKET_FIELD_NUMBER; - hash = (53 * hash) + getBucket().hashCode(); - hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getObjectName().hashCode(); - hash = (37 * hash) + OBJECT_GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectGeneration()); + hash = (37 * hash) + CLUSTER_ARN_FIELD_NUMBER; + hash = (53 * hash) + getClusterArn().hashCode(); + hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getKafkaTopic().hashCode(); + hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); switch (reasonCase_) { case 5: - hash = (37 * hash) + AVRO_FAILURE_REASON_FIELD_NUMBER; - hash = (53 * hash) + getAvroFailureReason().hashCode(); - break; - case 6: hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getApiViolationReason().hashCode(); break; + case 6: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; case 0: default: } @@ -1584,71 +4320,71 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1666,7 +4402,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure prototype) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -1686,32 +4422,32 @@ protected Builder newBuilderForType( * * *
      -     * Failure when ingesting from a Cloud Storage source.
      +     * Failure when ingesting from an Amazon MSK source.
            * 
      * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.class, - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); } - // Construct using com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder() + // Construct using com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -1720,17 +4456,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { - super.clear(); - bitField0_ = 0; - bucket_ = ""; - objectName_ = ""; - objectGeneration_ = 0L; - if (avroFailureReasonBuilder_ != null) { - avroFailureReasonBuilder_.clear(); - } + super.clear(); + bitField0_ = 0; + clusterArn_ = ""; + kafkaTopic_ = ""; + partitionId_ = 0L; + offset_ = 0L; if (apiViolationReasonBuilder_ != null) { apiViolationReasonBuilder_.clear(); } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -1739,18 +4476,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = buildPartial(); + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1758,9 +4495,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure build() { } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result = - new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(this); + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -1770,29 +4507,32 @@ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure buildParti } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.bucket_ = bucket_; + result.clusterArn_ = clusterArn_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.objectName_ = objectName_; + result.kafkaTopic_ = kafkaTopic_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectGeneration_ = objectGeneration_; + result.partitionId_ = partitionId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.offset_ = offset_; } } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; - if (reasonCase_ == 5 && avroFailureReasonBuilder_ != null) { - result.reason_ = avroFailureReasonBuilder_.build(); - } - if (reasonCase_ == 6 && apiViolationReasonBuilder_ != null) { + if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { result.reason_ = apiViolationReasonBuilder_.build(); } + if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -1832,8 +4572,8 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) { - return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) other); + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) { + return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) other); } else { super.mergeFrom(other); return this; @@ -1841,32 +4581,35 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure other) { + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance()) + == com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance()) return this; - if (!other.getBucket().isEmpty()) { - bucket_ = other.bucket_; + if (!other.getClusterArn().isEmpty()) { + clusterArn_ = other.clusterArn_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getObjectName().isEmpty()) { - objectName_ = other.objectName_; + if (!other.getKafkaTopic().isEmpty()) { + kafkaTopic_ = other.kafkaTopic_; bitField0_ |= 0x00000002; onChanged(); } - if (other.getObjectGeneration() != 0L) { - setObjectGeneration(other.getObjectGeneration()); + if (other.getPartitionId() != 0L) { + setPartitionId(other.getPartitionId()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); } switch (other.getReasonCase()) { - case AVRO_FAILURE_REASON: + case API_VIOLATION_REASON: { - mergeAvroFailureReason(other.getAvroFailureReason()); + mergeApiViolationReason(other.getApiViolationReason()); break; } - case API_VIOLATION_REASON: + case SCHEMA_VIOLATION_REASON: { - mergeApiViolationReason(other.getApiViolationReason()); + mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } case REASON_NOT_SET: @@ -1902,33 +4645,39 @@ public Builder mergeFrom( break; case 10: { - bucket_ = input.readStringRequireUtf8(); + clusterArn_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - objectName_ = input.readStringRequireUtf8(); + kafkaTopic_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { - objectGeneration_ = input.readInt64(); + partitionId_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 + case 32: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 case 42: { input.readMessage( - getAvroFailureReasonFieldBuilder().getBuilder(), extensionRegistry); + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 5; break; } // case 42 case 50: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 6; break; } // case 50 @@ -1965,25 +4714,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object bucket_ = ""; + private java.lang.Object clusterArn_ = ""; /** * * *
      -       * Optional. Name of the Cloud Storage bucket used for ingestion.
      +       * Optional. The ARN of the cluster of the topic being ingested from.
              * 
      * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bucket. + * @return The clusterArn. */ - public java.lang.String getBucket() { - java.lang.Object ref = bucket_; + public java.lang.String getClusterArn() { + java.lang.Object ref = clusterArn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - bucket_ = s; + clusterArn_ = s; return s; } else { return (java.lang.String) ref; @@ -1994,19 +4743,19 @@ public java.lang.String getBucket() { * * *
      -       * Optional. Name of the Cloud Storage bucket used for ingestion.
      +       * Optional. The ARN of the cluster of the topic being ingested from.
              * 
      * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for bucket. + * @return The bytes for clusterArn. */ - public com.google.protobuf.ByteString getBucketBytes() { - java.lang.Object ref = bucket_; + public com.google.protobuf.ByteString getClusterArnBytes() { + java.lang.Object ref = clusterArn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bucket_ = b; + clusterArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2017,19 +4766,19 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
      -       * Optional. Name of the Cloud Storage bucket used for ingestion.
      +       * Optional. The ARN of the cluster of the topic being ingested from.
              * 
      * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bucket to set. + * @param value The clusterArn to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { + public Builder setClusterArn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bucket_ = value; + clusterArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -2039,15 +4788,15 @@ public Builder setBucket(java.lang.String value) { * * *
      -       * Optional. Name of the Cloud Storage bucket used for ingestion.
      +       * Optional. The ARN of the cluster of the topic being ingested from.
              * 
      * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearBucket() { - bucket_ = getDefaultInstance().getBucket(); + public Builder clearClusterArn() { + clusterArn_ = getDefaultInstance().getClusterArn(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -2057,45 +4806,44 @@ public Builder clearBucket() { * * *
      -       * Optional. Name of the Cloud Storage bucket used for ingestion.
      +       * Optional. The ARN of the cluster of the topic being ingested from.
              * 
      * - * string bucket = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for bucket to set. + * @param value The bytes for clusterArn to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { + public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - bucket_ = value; + clusterArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object objectName_ = ""; + private java.lang.Object kafkaTopic_ = ""; /** * * *
      -       * Optional. Name of the Cloud Storage object which contained the section
      -       * that couldn't be ingested.
      +       * Optional. The name of the Kafka topic being ingested from.
              * 
      * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectName. + * @return The kafkaTopic. */ - public java.lang.String getObjectName() { - java.lang.Object ref = objectName_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - objectName_ = s; + kafkaTopic_ = s; return s; } else { return (java.lang.String) ref; @@ -2106,20 +4854,19 @@ public java.lang.String getObjectName() { * * *
      -       * Optional. Name of the Cloud Storage object which contained the section
      -       * that couldn't be ingested.
      +       * Optional. The name of the Kafka topic being ingested from.
              * 
      * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for objectName. + * @return The bytes for kafkaTopic. */ - public com.google.protobuf.ByteString getObjectNameBytes() { - java.lang.Object ref = objectName_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - objectName_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2130,20 +4877,19 @@ public com.google.protobuf.ByteString getObjectNameBytes() { * * *
      -       * Optional. Name of the Cloud Storage object which contained the section
      -       * that couldn't be ingested.
      +       * Optional. The name of the Kafka topic being ingested from.
              * 
      * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The objectName to set. + * @param value The kafkaTopic to set. * @return This builder for chaining. */ - public Builder setObjectName(java.lang.String value) { + public Builder setKafkaTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - objectName_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -2153,16 +4899,15 @@ public Builder setObjectName(java.lang.String value) { * * *
      -       * Optional. Name of the Cloud Storage object which contained the section
      -       * that couldn't be ingested.
      +       * Optional. The name of the Kafka topic being ingested from.
              * 
      * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearObjectName() { - objectName_ = getDefaultInstance().getObjectName(); + public Builder clearKafkaTopic() { + kafkaTopic_ = getDefaultInstance().getKafkaTopic(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -2172,62 +4917,117 @@ public Builder clearObjectName() { * * *
      -       * Optional. Name of the Cloud Storage object which contained the section
      -       * that couldn't be ingested.
      +       * Optional. The name of the Kafka topic being ingested from.
              * 
      * - * string object_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for objectName to set. + * @param value The bytes for kafkaTopic to set. * @return This builder for chaining. */ - public Builder setObjectNameBytes(com.google.protobuf.ByteString value) { + public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - objectName_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - private long objectGeneration_; + private long partitionId_; + + /** + * + * + *
      +       * Optional. The partition ID of the message that failed to be ingested.
      +       * 
      + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The partitionId. + */ + @java.lang.Override + public long getPartitionId() { + return partitionId_; + } + + /** + * + * + *
      +       * Optional. The partition ID of the message that failed to be ingested.
      +       * 
      + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The partitionId to set. + * @return This builder for chaining. + */ + public Builder setPartitionId(long value) { + + partitionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. The partition ID of the message that failed to be ingested.
      +       * 
      + * + * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPartitionId() { + bitField0_ = (bitField0_ & ~0x00000004); + partitionId_ = 0L; + onChanged(); + return this; + } + + private long offset_; /** * * *
      -       * Optional. Generation of the Cloud Storage object which contained the
      -       * section that couldn't be ingested.
      +       * Optional. The offset within the partition of the message that failed to
      +       * be ingested.
              * 
      * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The objectGeneration. + * @return The offset. */ @java.lang.Override - public long getObjectGeneration() { - return objectGeneration_; + public long getOffset() { + return offset_; } /** * * *
      -       * Optional. Generation of the Cloud Storage object which contained the
      -       * section that couldn't be ingested.
      +       * Optional. The offset within the partition of the message that failed to
      +       * be ingested.
              * 
      * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The objectGeneration to set. + * @param value The offset to set. * @return This builder for chaining. */ - public Builder setObjectGeneration(long value) { + public Builder setOffset(long value) { - objectGeneration_ = value; - bitField0_ |= 0x00000004; + offset_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2236,42 +5036,43 @@ public Builder setObjectGeneration(long value) { * * *
      -       * Optional. Generation of the Cloud Storage object which contained the
      -       * section that couldn't be ingested.
      +       * Optional. The offset within the partition of the message that failed to
      +       * be ingested.
              * 
      * - * int64 object_generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearObjectGeneration() { - bitField0_ = (bitField0_ & ~0x00000004); - objectGeneration_ = 0L; + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000008); + offset_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> - avroFailureReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; /** * * *
      -       * Optional. Failure encountered when parsing an Avro file.
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the avroFailureReason field is set. + * @return Whether the apiViolationReason field is set. */ @java.lang.Override - public boolean hasAvroFailureReason() { + public boolean hasApiViolationReason() { return reasonCase_ == 5; } @@ -2279,27 +5080,28 @@ public boolean hasAvroFailureReason() { * * *
      -       * Optional. Failure encountered when parsing an Avro file.
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The avroFailureReason. + * @return The apiViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailureReason() { - if (avroFailureReasonBuilder_ == null) { + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } else { if (reasonCase_ == 5) { - return avroFailureReasonBuilder_.getMessage(); + return apiViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } @@ -2307,23 +5109,24 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason getAvroFailu * * *
      -       * Optional. Failure encountered when parsing an Avro file.
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAvroFailureReason( - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { - if (avroFailureReasonBuilder_ == null) { + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - avroFailureReasonBuilder_.setMessage(value); + apiViolationReasonBuilder_.setMessage(value); } reasonCase_ = 5; return this; @@ -2333,20 +5136,21 @@ public Builder setAvroFailureReason( * * *
      -       * Optional. Failure encountered when parsing an Avro file.
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setAvroFailureReason( - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder builderForValue) { - if (avroFailureReasonBuilder_ == null) { + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - avroFailureReasonBuilder_.setMessage(builderForValue.build()); + apiViolationReasonBuilder_.setMessage(builderForValue.build()); } reasonCase_ = 5; return this; @@ -2356,23 +5160,24 @@ public Builder setAvroFailureReason( * * *
      -       * Optional. Failure encountered when parsing an Avro file.
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeAvroFailureReason( - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason value) { - if (avroFailureReasonBuilder_ == null) { + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { if (reasonCase_ == 5 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -2381,9 +5186,9 @@ public Builder mergeAvroFailureReason( onChanged(); } else { if (reasonCase_ == 5) { - avroFailureReasonBuilder_.mergeFrom(value); + apiViolationReasonBuilder_.mergeFrom(value); } else { - avroFailureReasonBuilder_.setMessage(value); + apiViolationReasonBuilder_.setMessage(value); } } reasonCase_ = 5; @@ -2394,15 +5199,16 @@ public Builder mergeAvroFailureReason( * * *
      -       * Optional. Failure encountered when parsing an Avro file.
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearAvroFailureReason() { - if (avroFailureReasonBuilder_ == null) { + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { if (reasonCase_ == 5) { reasonCase_ = 0; reason_ = null; @@ -2413,7 +5219,7 @@ public Builder clearAvroFailureReason() { reasonCase_ = 0; reason_ = null; } - avroFailureReasonBuilder_.clear(); + apiViolationReasonBuilder_.clear(); } return this; } @@ -2422,39 +5228,41 @@ public Builder clearAvroFailureReason() { * * *
      -       * Optional. Failure encountered when parsing an Avro file.
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder - getAvroFailureReasonBuilder() { - return getAvroFailureReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); } /** * * *
      -       * Optional. Failure encountered when parsing an Avro file.
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder - getAvroFailureReasonOrBuilder() { - if ((reasonCase_ == 5) && (avroFailureReasonBuilder_ != null)) { - return avroFailureReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); } else { if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } } @@ -2462,60 +5270,60 @@ public Builder clearAvroFailureReason() { * * *
      -       * Optional. Failure encountered when parsing an Avro file.
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> - getAvroFailureReasonFieldBuilder() { - if (avroFailureReasonBuilder_ == null) { + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } - avroFailureReasonBuilder_ = + apiViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } reasonCase_ = 5; onChanged(); - return avroFailureReasonBuilder_; + return apiViolationReasonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - apiViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; /** * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { + public boolean hasSchemaViolationReason() { return reasonCase_ == 6; } @@ -2523,28 +5331,30 @@ public boolean hasApiViolationReason() { * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } else { if (reasonCase_ == 6) { - return apiViolationReasonBuilder_.getMessage(); + return schemaViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -2552,24 +5362,23 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } reasonCase_ = 6; return this; @@ -2579,21 +5388,21 @@ public Builder setApiViolationReason( * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - apiViolationReasonBuilder_.setMessage(builderForValue.build()); + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); } reasonCase_ = 6; return this; @@ -2603,24 +5412,23 @@ public Builder setApiViolationReason( * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (reasonCase_ == 6 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -2629,9 +5437,9 @@ public Builder mergeApiViolationReason( onChanged(); } else { if (reasonCase_ == 6) { - apiViolationReasonBuilder_.mergeFrom(value); + schemaViolationReasonBuilder_.mergeFrom(value); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } } reasonCase_ = 6; @@ -2642,16 +5450,15 @@ public Builder mergeApiViolationReason( * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; @@ -2662,7 +5469,7 @@ public Builder clearApiViolationReason() { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -2671,41 +5478,40 @@ public Builder clearApiViolationReason() { * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 6) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + *
      + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -2713,37 +5519,37 @@ public Builder clearApiViolationReason() { * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { if (!(reasonCase_ == 6)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -2758,26 +5564,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) - private static final com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure(); + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public CloudStorageFailure parsePartialFrom( + public AwsMskFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2797,78 +5603,78 @@ public CloudStorageFailure parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure + public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AwsMskFailureReasonOrBuilder + public interface AzureEventHubsFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
      -     * Optional. The ARN of the cluster of the topic being ingested from.
      +     * Optional. The namespace containing the event hub being ingested from.
            * 
      * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterArn. + * @return The namespace. */ - java.lang.String getClusterArn(); + java.lang.String getNamespace(); /** * * *
      -     * Optional. The ARN of the cluster of the topic being ingested from.
      +     * Optional. The namespace containing the event hub being ingested from.
            * 
      * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterArn. + * @return The bytes for namespace. */ - com.google.protobuf.ByteString getClusterArnBytes(); + com.google.protobuf.ByteString getNamespaceBytes(); /** * * *
      -     * Optional. The name of the Kafka topic being ingested from.
      +     * Optional. The name of the event hub being ingested from.
            * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The eventHub. */ - java.lang.String getKafkaTopic(); + java.lang.String getEventHub(); /** * * *
      -     * Optional. The name of the Kafka topic being ingested from.
      +     * Optional. The name of the event hub being ingested from.
            * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for eventHub. */ - com.google.protobuf.ByteString getKafkaTopicBytes(); + com.google.protobuf.ByteString getEventHubBytes(); /** * @@ -2944,53 +5750,99 @@ public interface AwsMskFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder getApiViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase + getReasonCase(); } /** * * *
      -   * Failure when ingesting from an Amazon MSK source.
      +   * Failure when ingesting from an Azure Event Hubs source.
          * 
      * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} */ - public static final class AwsMskFailureReason extends com.google.protobuf.GeneratedMessageV3 + public static final class AzureEventHubsFailureReason + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) - AwsMskFailureReasonOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + AzureEventHubsFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use AwsMskFailureReason.newBuilder() to construct. - private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AzureEventHubsFailureReason.newBuilder() to construct. + private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AwsMskFailureReason() { - clusterArn_ = ""; - kafkaTopic_ = ""; + private AzureEventHubsFailureReason() { + namespace_ = ""; + eventHub_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AwsMskFailureReason(); + return new AzureEventHubsFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -3003,6 +5855,7 @@ public enum ReasonCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -3024,6 +5877,8 @@ public static ReasonCase forNumber(int value) { switch (value) { case 5: return API_VIOLATION_REASON; + case 6: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -3040,31 +5895,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int CLUSTER_ARN_FIELD_NUMBER = 1; + public static final int NAMESPACE_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object clusterArn_ = ""; + private volatile java.lang.Object namespace_ = ""; /** * * *
      -     * Optional. The ARN of the cluster of the topic being ingested from.
      +     * Optional. The namespace containing the event hub being ingested from.
            * 
      * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterArn. + * @return The namespace. */ @java.lang.Override - public java.lang.String getClusterArn() { - java.lang.Object ref = clusterArn_; + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterArn_ = s; + namespace_ = s; return s; } } @@ -3073,51 +5928,51 @@ public java.lang.String getClusterArn() { * * *
      -     * Optional. The ARN of the cluster of the topic being ingested from.
      +     * Optional. The namespace containing the event hub being ingested from.
            * 
      * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterArn. + * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterArnBytes() { - java.lang.Object ref = clusterArn_; + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterArn_ = b; + namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; + public static final int EVENT_HUB_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object kafkaTopic_ = ""; + private volatile java.lang.Object eventHub_ = ""; /** * * *
      -     * Optional. The name of the Kafka topic being ingested from.
      +     * Optional. The name of the event hub being ingested from.
            * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The eventHub. */ @java.lang.Override - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + eventHub_ = s; return s; } } @@ -3126,20 +5981,20 @@ public java.lang.String getKafkaTopic() { * * *
      -     * Optional. The name of the Kafka topic being ingested from.
      +     * Optional. The name of the event hub being ingested from.
            * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for eventHub. */ @java.lang.Override - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + eventHub_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3249,6 +6104,68 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3263,11 +6180,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterArn_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventHub_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); @@ -3277,7 +6194,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } if (reasonCase_ == 5) { output.writeMessage( - 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } getUnknownFields().writeTo(output); } @@ -3288,11 +6209,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterArn_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventHub_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); @@ -3305,6 +6226,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3315,14 +6241,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason)) { + if (!(obj + instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other = - (com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) obj; + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) obj; - if (!getClusterArn().equals(other.getClusterArn())) return false; - if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getEventHub().equals(other.getEventHub())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (getOffset() != other.getOffset()) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; @@ -3330,6 +6257,9 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; break; + case 6: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; + break; case 0: default: } @@ -3344,10 +6274,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_ARN_FIELD_NUMBER; - hash = (53 * hash) + getClusterArn().hashCode(); - hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getKafkaTopic().hashCode(); + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + hash = (37 * hash) + EVENT_HUB_FIELD_NUMBER; + hash = (53 * hash) + getEventHub().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); hash = (37 * hash) + OFFSET_FIELD_NUMBER; @@ -3357,6 +6287,10 @@ public int hashCode() { hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getApiViolationReason().hashCode(); break; + case 6: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; case 0: default: } @@ -3365,71 +6299,72 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3447,7 +6382,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason prototype) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3467,32 +6402,34 @@ protected Builder newBuilderForType( * * *
      -     * Failure when ingesting from an Amazon MSK source.
      +     * Failure when ingesting from an Azure Event Hubs source.
            * 
      * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + .class); } - // Construct using com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder() + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -3503,13 +6440,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - clusterArn_ = ""; - kafkaTopic_ = ""; + namespace_ = ""; + eventHub_ = ""; partitionId_ = 0L; offset_ = 0L; if (apiViolationReasonBuilder_ != null) { apiViolationReasonBuilder_.clear(); } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -3518,18 +6458,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = buildPartial(); + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3537,9 +6479,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason build() { } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result = - new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(this); + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -3549,13 +6491,13 @@ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason buildParti } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterArn_ = clusterArn_; + result.namespace_ = namespace_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.kafkaTopic_ = kafkaTopic_; + result.eventHub_ = eventHub_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionId_ = partitionId_; @@ -3566,12 +6508,15 @@ private void buildPartial0( } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { result.reason_ = apiViolationReasonBuilder_.build(); } + if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -3611,8 +6556,10 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) { - return mergeFrom((com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) other); + if (other + instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) other); } else { super.mergeFrom(other); return this; @@ -3620,17 +6567,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason other) { + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance()) - return this; - if (!other.getClusterArn().isEmpty()) { - clusterArn_ = other.clusterArn_; + == com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + .getDefaultInstance()) return this; + if (!other.getNamespace().isEmpty()) { + namespace_ = other.namespace_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getKafkaTopic().isEmpty()) { - kafkaTopic_ = other.kafkaTopic_; + if (!other.getEventHub().isEmpty()) { + eventHub_ = other.eventHub_; bitField0_ |= 0x00000002; onChanged(); } @@ -3646,6 +6593,11 @@ public Builder mergeFrom( mergeApiViolationReason(other.getApiViolationReason()); break; } + case SCHEMA_VIOLATION_REASON: + { + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } case REASON_NOT_SET: { break; @@ -3679,13 +6631,13 @@ public Builder mergeFrom( break; case 10: { - clusterArn_ = input.readStringRequireUtf8(); + namespace_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - kafkaTopic_ = input.readStringRequireUtf8(); + eventHub_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -3708,6 +6660,13 @@ public Builder mergeFrom( reasonCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3741,25 +6700,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object clusterArn_ = ""; + private java.lang.Object namespace_ = ""; /** * * *
      -       * Optional. The ARN of the cluster of the topic being ingested from.
      +       * Optional. The namespace containing the event hub being ingested from.
              * 
      * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterArn. + * @return The namespace. */ - public java.lang.String getClusterArn() { - java.lang.Object ref = clusterArn_; + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterArn_ = s; + namespace_ = s; return s; } else { return (java.lang.String) ref; @@ -3770,19 +6729,19 @@ public java.lang.String getClusterArn() { * * *
      -       * Optional. The ARN of the cluster of the topic being ingested from.
      +       * Optional. The namespace containing the event hub being ingested from.
              * 
      * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterArn. + * @return The bytes for namespace. */ - public com.google.protobuf.ByteString getClusterArnBytes() { - java.lang.Object ref = clusterArn_; + public com.google.protobuf.ByteString getNamespaceBytes() { + java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterArn_ = b; + namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3793,19 +6752,19 @@ public com.google.protobuf.ByteString getClusterArnBytes() { * * *
      -       * Optional. The ARN of the cluster of the topic being ingested from.
      +       * Optional. The namespace containing the event hub being ingested from.
              * 
      * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The clusterArn to set. + * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setClusterArn(java.lang.String value) { + public Builder setNamespace(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clusterArn_ = value; + namespace_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -3815,15 +6774,15 @@ public Builder setClusterArn(java.lang.String value) { * * *
      -       * Optional. The ARN of the cluster of the topic being ingested from.
      +       * Optional. The namespace containing the event hub being ingested from.
              * 
      * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearClusterArn() { - clusterArn_ = getDefaultInstance().getClusterArn(); + public Builder clearNamespace() { + namespace_ = getDefaultInstance().getNamespace(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -3833,44 +6792,44 @@ public Builder clearClusterArn() { * * *
      -       * Optional. The ARN of the cluster of the topic being ingested from.
      +       * Optional. The namespace containing the event hub being ingested from.
              * 
      * - * string cluster_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for clusterArn to set. + * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clusterArn_ = value; + namespace_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object kafkaTopic_ = ""; + private java.lang.Object eventHub_ = ""; /** * * *
      -       * Optional. The name of the Kafka topic being ingested from.
      +       * Optional. The name of the event hub being ingested from.
              * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The eventHub. */ - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getEventHub() { + java.lang.Object ref = eventHub_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + eventHub_ = s; return s; } else { return (java.lang.String) ref; @@ -3881,19 +6840,19 @@ public java.lang.String getKafkaTopic() { * * *
      -       * Optional. The name of the Kafka topic being ingested from.
      +       * Optional. The name of the event hub being ingested from.
              * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for eventHub. */ - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getEventHubBytes() { + java.lang.Object ref = eventHub_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + eventHub_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -3904,19 +6863,19 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { * * *
      -       * Optional. The name of the Kafka topic being ingested from.
      +       * Optional. The name of the event hub being ingested from.
              * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The kafkaTopic to set. + * @param value The eventHub to set. * @return This builder for chaining. */ - public Builder setKafkaTopic(java.lang.String value) { + public Builder setEventHub(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - kafkaTopic_ = value; + eventHub_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -3926,15 +6885,15 @@ public Builder setKafkaTopic(java.lang.String value) { * * *
      -       * Optional. The name of the Kafka topic being ingested from.
      +       * Optional. The name of the event hub being ingested from.
              * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearKafkaTopic() { - kafkaTopic_ = getDefaultInstance().getKafkaTopic(); + public Builder clearEventHub() { + eventHub_ = getDefaultInstance().getEventHub(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -3944,20 +6903,20 @@ public Builder clearKafkaTopic() { * * *
      -       * Optional. The name of the Kafka topic being ingested from.
      +       * Optional. The name of the event hub being ingested from.
              * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for kafkaTopic to set. + * @param value The bytes for eventHub to set. * @return This builder for chaining. */ - public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { + public Builder setEventHubBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kafkaTopic_ = value; + eventHub_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -4075,60 +7034,313 @@ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000008); offset_ = 0L; onChanged(); - return this; + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - apiViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; /** * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { - return reasonCase_ == 5; + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; } /** * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } else { - if (reasonCase_ == 5) { - return apiViolationReasonBuilder_.getMessage(); + if (reasonCase_ == 6) { + return schemaViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -4136,26 +7348,25 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } - reasonCase_ = 5; + reasonCase_ = 6; return this; } @@ -4163,23 +7374,23 @@ public Builder setApiViolationReason( * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - apiViolationReasonBuilder_.setMessage(builderForValue.build()); + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); } - reasonCase_ = 5; + reasonCase_ = 6; return this; } @@ -4187,24 +7398,23 @@ public Builder setApiViolationReason( * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5 + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -4212,13 +7422,13 @@ public Builder mergeApiViolationReason( } onChanged(); } else { - if (reasonCase_ == 5) { - apiViolationReasonBuilder_.mergeFrom(value); + if (reasonCase_ == 6) { + schemaViolationReasonBuilder_.mergeFrom(value); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } } - reasonCase_ = 5; + reasonCase_ = 6; return this; } @@ -4226,27 +7436,26 @@ public Builder mergeApiViolationReason( * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 5) { + if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -4255,41 +7464,40 @@ public Builder clearApiViolationReason() { * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -4297,37 +7505,37 @@ public Builder clearApiViolationReason() { * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 5)) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -4342,26 +7550,27 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) - private static final com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason(); + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public AwsMskFailureReason parsePartialFrom( + public AzureEventHubsFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4381,78 +7590,78 @@ public AwsMskFailureReason parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AzureEventHubsFailureReasonOrBuilder + public interface ConfluentCloudFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
      -     * Optional. The namespace containing the event hub being ingested from.
      +     * Optional. The cluster ID containing the topic being ingested from.
            * 
      * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The namespace. + * @return The clusterId. */ - java.lang.String getNamespace(); + java.lang.String getClusterId(); /** * * *
      -     * Optional. The namespace containing the event hub being ingested from.
      +     * Optional. The cluster ID containing the topic being ingested from.
            * 
      * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for namespace. + * @return The bytes for clusterId. */ - com.google.protobuf.ByteString getNamespaceBytes(); + com.google.protobuf.ByteString getClusterIdBytes(); /** * * *
      -     * Optional. The name of the event hub being ingested from.
      +     * Optional. The name of the Kafka topic being ingested from.
            * 
      * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The eventHub. + * @return The kafkaTopic. */ - java.lang.String getEventHub(); + java.lang.String getKafkaTopic(); /** * * *
      -     * Optional. The name of the event hub being ingested from.
      +     * Optional. The name of the Kafka topic being ingested from.
            * 
      * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for eventHub. + * @return The bytes for kafkaTopic. */ - com.google.protobuf.ByteString getEventHubBytes(); + com.google.protobuf.ByteString getKafkaTopicBytes(); /** * @@ -4528,7 +7737,51 @@ public interface AzureEventHubsFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder getApiViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase getReasonCase(); } @@ -4536,47 +7789,47 @@ public interface AzureEventHubsFailureReasonOrBuilder * * *
      -   * Failure when ingesting from an Azure Event Hubs source.
      +   * Failure when ingesting from a Confluent Cloud source.
          * 
      * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} */ - public static final class AzureEventHubsFailureReason + public static final class ConfluentCloudFailureReason extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) - AzureEventHubsFailureReasonOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + ConfluentCloudFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use AzureEventHubsFailureReason.newBuilder() to construct. - private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ConfluentCloudFailureReason.newBuilder() to construct. + private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AzureEventHubsFailureReason() { - namespace_ = ""; - eventHub_ = ""; + private ConfluentCloudFailureReason() { + clusterId_ = ""; + kafkaTopic_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AzureEventHubsFailureReason(); + return new ConfluentCloudFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -4589,6 +7842,7 @@ public enum ReasonCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -4610,6 +7864,8 @@ public static ReasonCase forNumber(int value) { switch (value) { case 5: return API_VIOLATION_REASON; + case 6: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -4626,31 +7882,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int NAMESPACE_FIELD_NUMBER = 1; + public static final int CLUSTER_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object namespace_ = ""; + private volatile java.lang.Object clusterId_ = ""; /** * * *
      -     * Optional. The namespace containing the event hub being ingested from.
      +     * Optional. The cluster ID containing the topic being ingested from.
            * 
      * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The namespace. + * @return The clusterId. */ @java.lang.Override - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - namespace_ = s; + clusterId_ = s; return s; } } @@ -4659,51 +7915,51 @@ public java.lang.String getNamespace() { * * *
      -     * Optional. The namespace containing the event hub being ingested from.
      +     * Optional. The cluster ID containing the topic being ingested from.
            * 
      * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for namespace. + * @return The bytes for clusterId. */ @java.lang.Override - public com.google.protobuf.ByteString getNamespaceBytes() { - java.lang.Object ref = namespace_; + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - namespace_ = b; + clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int EVENT_HUB_FIELD_NUMBER = 2; + public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object eventHub_ = ""; + private volatile java.lang.Object kafkaTopic_ = ""; /** * * *
      -     * Optional. The name of the event hub being ingested from.
      +     * Optional. The name of the Kafka topic being ingested from.
            * 
      * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The eventHub. + * @return The kafkaTopic. */ @java.lang.Override - public java.lang.String getEventHub() { - java.lang.Object ref = eventHub_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - eventHub_ = s; + kafkaTopic_ = s; return s; } } @@ -4712,20 +7968,20 @@ public java.lang.String getEventHub() { * * *
      -     * Optional. The name of the event hub being ingested from.
      +     * Optional. The name of the Kafka topic being ingested from.
            * 
      * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for eventHub. + * @return The bytes for kafkaTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getEventHubBytes() { - java.lang.Object ref = eventHub_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventHub_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -4835,6 +8091,68 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4849,11 +8167,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventHub_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); @@ -4865,6 +8183,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } getUnknownFields().writeTo(output); } @@ -4874,11 +8196,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventHub_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); @@ -4891,6 +8213,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4902,14 +8229,14 @@ public boolean equals(final java.lang.Object obj) { return true; } if (!(obj - instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason)) { + instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other = - (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) obj; + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) obj; - if (!getNamespace().equals(other.getNamespace())) return false; - if (!getEventHub().equals(other.getEventHub())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; if (getPartitionId() != other.getPartitionId()) return false; if (getOffset() != other.getOffset()) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; @@ -4917,6 +8244,9 @@ public boolean equals(final java.lang.Object obj) { case 5: if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; break; + case 6: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; + break; case 0: default: } @@ -4931,10 +8261,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getNamespace().hashCode(); - hash = (37 * hash) + EVENT_HUB_FIELD_NUMBER; - hash = (53 * hash) + getEventHub().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; + hash = (53 * hash) + getKafkaTopic().hashCode(); hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); hash = (37 * hash) + OFFSET_FIELD_NUMBER; @@ -4944,6 +8274,10 @@ public int hashCode() { hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getApiViolationReason().hashCode(); break; + case 6: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); + break; case 0: default: } @@ -4952,59 +8286,59 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5012,12 +8346,12 @@ public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureRe PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -5035,7 +8369,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason prototype) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -5055,34 +8389,34 @@ protected Builder newBuilderForType( * * *
      -     * Failure when ingesting from an Azure Event Hubs source.
      +     * Failure when ingesting from a Confluent Cloud source.
            * 
      * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder .class); } // Construct using - // com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder() + // com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -5093,13 +8427,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - namespace_ = ""; - eventHub_ = ""; + clusterId_ = ""; + kafkaTopic_ = ""; partitionId_ = 0L; offset_ = 0L; if (apiViolationReasonBuilder_ != null) { apiViolationReasonBuilder_.clear(); } + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -5108,19 +8445,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason .getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason build() { - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -5129,9 +8466,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason bu } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result = - new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(this); + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -5141,13 +8478,13 @@ public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason bu } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.namespace_ = namespace_; + result.clusterId_ = clusterId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventHub_ = eventHub_; + result.kafkaTopic_ = kafkaTopic_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.partitionId_ = partitionId_; @@ -5158,12 +8495,15 @@ private void buildPartial0( } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { result.reason_ = apiViolationReasonBuilder_.build(); } + if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -5204,9 +8544,9 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other - instanceof com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) { + instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) { return mergeFrom( - (com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) other); + (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) other); } else { super.mergeFrom(other); return this; @@ -5214,17 +8554,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason other) { + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + == com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason .getDefaultInstance()) return this; - if (!other.getNamespace().isEmpty()) { - namespace_ = other.namespace_; + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getEventHub().isEmpty()) { - eventHub_ = other.eventHub_; + if (!other.getKafkaTopic().isEmpty()) { + kafkaTopic_ = other.kafkaTopic_; bitField0_ |= 0x00000002; onChanged(); } @@ -5240,6 +8580,11 @@ public Builder mergeFrom( mergeApiViolationReason(other.getApiViolationReason()); break; } + case SCHEMA_VIOLATION_REASON: + { + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } case REASON_NOT_SET: { break; @@ -5273,13 +8618,13 @@ public Builder mergeFrom( break; case 10: { - namespace_ = input.readStringRequireUtf8(); + clusterId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - eventHub_ = input.readStringRequireUtf8(); + kafkaTopic_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -5302,6 +8647,13 @@ public Builder mergeFrom( reasonCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5335,25 +8687,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object namespace_ = ""; + private java.lang.Object clusterId_ = ""; /** * * *
      -       * Optional. The namespace containing the event hub being ingested from.
      +       * Optional. The cluster ID containing the topic being ingested from.
              * 
      * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The namespace. + * @return The clusterId. */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - namespace_ = s; + clusterId_ = s; return s; } else { return (java.lang.String) ref; @@ -5364,19 +8716,19 @@ public java.lang.String getNamespace() { * * *
      -       * Optional. The namespace containing the event hub being ingested from.
      +       * Optional. The cluster ID containing the topic being ingested from.
              * 
      * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for namespace. + * @return The bytes for clusterId. */ - public com.google.protobuf.ByteString getNamespaceBytes() { - java.lang.Object ref = namespace_; + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - namespace_ = b; + clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -5387,19 +8739,19 @@ public com.google.protobuf.ByteString getNamespaceBytes() { * * *
      -       * Optional. The namespace containing the event hub being ingested from.
      +       * Optional. The cluster ID containing the topic being ingested from.
              * 
      * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The namespace to set. + * @param value The clusterId to set. * @return This builder for chaining. */ - public Builder setNamespace(java.lang.String value) { + public Builder setClusterId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - namespace_ = value; + clusterId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -5409,15 +8761,15 @@ public Builder setNamespace(java.lang.String value) { * * *
      -       * Optional. The namespace containing the event hub being ingested from.
      +       * Optional. The cluster ID containing the topic being ingested from.
              * 
      * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearNamespace() { - namespace_ = getDefaultInstance().getNamespace(); + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -5427,44 +8779,44 @@ public Builder clearNamespace() { * * *
      -       * Optional. The namespace containing the event hub being ingested from.
      +       * Optional. The cluster ID containing the topic being ingested from.
              * 
      * - * string namespace = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for namespace to set. + * @param value The bytes for clusterId to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - namespace_ = value; + clusterId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object eventHub_ = ""; + private java.lang.Object kafkaTopic_ = ""; /** * * *
      -       * Optional. The name of the event hub being ingested from.
      +       * Optional. The name of the Kafka topic being ingested from.
              * 
      * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The eventHub. + * @return The kafkaTopic. */ - public java.lang.String getEventHub() { - java.lang.Object ref = eventHub_; + public java.lang.String getKafkaTopic() { + java.lang.Object ref = kafkaTopic_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - eventHub_ = s; + kafkaTopic_ = s; return s; } else { return (java.lang.String) ref; @@ -5475,19 +8827,19 @@ public java.lang.String getEventHub() { * * *
      -       * Optional. The name of the event hub being ingested from.
      +       * Optional. The name of the Kafka topic being ingested from.
              * 
      * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for eventHub. + * @return The bytes for kafkaTopic. */ - public com.google.protobuf.ByteString getEventHubBytes() { - java.lang.Object ref = eventHub_; + public com.google.protobuf.ByteString getKafkaTopicBytes() { + java.lang.Object ref = kafkaTopic_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventHub_ = b; + kafkaTopic_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -5498,19 +8850,19 @@ public com.google.protobuf.ByteString getEventHubBytes() { * * *
      -       * Optional. The name of the event hub being ingested from.
      +       * Optional. The name of the Kafka topic being ingested from.
              * 
      * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The eventHub to set. + * @param value The kafkaTopic to set. * @return This builder for chaining. */ - public Builder setEventHub(java.lang.String value) { + public Builder setKafkaTopic(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - eventHub_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -5520,15 +8872,15 @@ public Builder setEventHub(java.lang.String value) { * * *
      -       * Optional. The name of the event hub being ingested from.
      +       * Optional. The name of the Kafka topic being ingested from.
              * 
      * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearEventHub() { - eventHub_ = getDefaultInstance().getEventHub(); + public Builder clearKafkaTopic() { + kafkaTopic_ = getDefaultInstance().getKafkaTopic(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -5538,20 +8890,20 @@ public Builder clearEventHub() { * * *
      -       * Optional. The name of the event hub being ingested from.
      +       * Optional. The name of the Kafka topic being ingested from.
              * 
      * - * string event_hub = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for eventHub to set. + * @param value The bytes for kafkaTopic to set. * @return This builder for chaining. */ - public Builder setEventHubBytes(com.google.protobuf.ByteString value) { + public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - eventHub_ = value; + kafkaTopic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -5907,21 +9259,270 @@ public Builder clearApiViolationReason() { if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return schemaViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + schemaViolationReasonBuilder_.mergeFrom(value); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + schemaViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -5936,27 +9537,27 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) - private static final com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason(); + new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public AzureEventHubsFailureReason parsePartialFrom( + public ConfluentCloudFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -5976,202 +9577,197 @@ public AzureEventHubsFailureReason parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ConfluentCloudFailureReasonOrBuilder + public interface AwsKinesisFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) com.google.protobuf.MessageOrBuilder { /** * * *
      -     * Optional. The cluster ID containing the topic being ingested from.
      +     * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
      * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterId. + * @return The streamArn. */ - java.lang.String getClusterId(); + java.lang.String getStreamArn(); /** * * *
      -     * Optional. The cluster ID containing the topic being ingested from.
      +     * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
      * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterId. + * @return The bytes for streamArn. */ - com.google.protobuf.ByteString getClusterIdBytes(); + com.google.protobuf.ByteString getStreamArnBytes(); /** * * *
      -     * Optional. The name of the Kafka topic being ingested from.
      +     * Optional. The partition key of the message that failed to be ingested.
            * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The partitionKey. */ - java.lang.String getKafkaTopic(); + java.lang.String getPartitionKey(); /** * * *
      -     * Optional. The name of the Kafka topic being ingested from.
      +     * Optional. The partition key of the message that failed to be ingested.
            * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for partitionKey. */ - com.google.protobuf.ByteString getKafkaTopicBytes(); + com.google.protobuf.ByteString getPartitionKeyBytes(); /** * * *
      -     * Optional. The partition ID of the message that failed to be ingested.
      +     * Optional. The sequence number of the message that failed to be ingested.
            * 
      * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partitionId. + * @return The sequenceNumber. */ - long getPartitionId(); + java.lang.String getSequenceNumber(); /** * * *
      -     * Optional. The offset within the partition of the message that failed to
      -     * be ingested.
      +     * Optional. The sequence number of the message that failed to be ingested.
            * 
      * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The offset. + * @return The bytes for sequenceNumber. */ - long getOffset(); + com.google.protobuf.ByteString getSequenceNumberBytes(); /** * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ - boolean hasApiViolationReason(); + boolean hasSchemaViolationReason(); /** * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); /** * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase - getReasonCase(); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.ReasonCase getReasonCase(); } /** * * *
      -   * Failure when ingesting from a Confluent Cloud source.
      +   * Failure when ingesting from an AWS Kinesis source.
          * 
      * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} */ - public static final class ConfluentCloudFailureReason - extends com.google.protobuf.GeneratedMessageV3 + public static final class AwsKinesisFailureReason extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) - ConfluentCloudFailureReasonOrBuilder { + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) + AwsKinesisFailureReasonOrBuilder { private static final long serialVersionUID = 0L; - // Use ConfluentCloudFailureReason.newBuilder() to construct. - private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AwsKinesisFailureReason.newBuilder() to construct. + private AwsKinesisFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfluentCloudFailureReason() { - clusterId_ = ""; - kafkaTopic_ = ""; + private AwsKinesisFailureReason() { + streamArn_ = ""; + partitionKey_ = ""; + sequenceNumber_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfluentCloudFailureReason(); + return new AwsKinesisFailureReason(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder.class); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder.class); } private int reasonCase_ = 0; @@ -6183,7 +9779,7 @@ public enum ReasonCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - API_VIOLATION_REASON(5), + SCHEMA_VIOLATION_REASON(4), REASON_NOT_SET(0); private final int value; @@ -6203,8 +9799,8 @@ public static ReasonCase valueOf(int value) { public static ReasonCase forNumber(int value) { switch (value) { - case 5: - return API_VIOLATION_REASON; + case 4: + return SCHEMA_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -6221,31 +9817,31 @@ public ReasonCase getReasonCase() { return ReasonCase.forNumber(reasonCase_); } - public static final int CLUSTER_ID_FIELD_NUMBER = 1; + public static final int STREAM_ARN_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object clusterId_ = ""; + private volatile java.lang.Object streamArn_ = ""; /** * * *
      -     * Optional. The cluster ID containing the topic being ingested from.
      +     * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
      * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterId. + * @return The streamArn. */ @java.lang.Override - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; + public java.lang.String getStreamArn() { + java.lang.Object ref = streamArn_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; + streamArn_ = s; return s; } } @@ -6254,51 +9850,51 @@ public java.lang.String getClusterId() { * * *
      -     * Optional. The cluster ID containing the topic being ingested from.
      +     * Optional. The stream ARN of the Kinesis stream being ingested from.
            * 
      * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterId. + * @return The bytes for streamArn. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; + public com.google.protobuf.ByteString getStreamArnBytes() { + java.lang.Object ref = streamArn_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; + streamArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int KAFKA_TOPIC_FIELD_NUMBER = 2; + public static final int PARTITION_KEY_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object kafkaTopic_ = ""; + private volatile java.lang.Object partitionKey_ = ""; /** * * *
      -     * Optional. The name of the Kafka topic being ingested from.
      +     * Optional. The partition key of the message that failed to be ingested.
            * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The partitionKey. */ @java.lang.Override - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getPartitionKey() { + java.lang.Object ref = partitionKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + partitionKey_ = s; return s; } } @@ -6307,127 +9903,139 @@ public java.lang.String getKafkaTopic() { * * *
      -     * Optional. The name of the Kafka topic being ingested from.
      +     * Optional. The partition key of the message that failed to be ingested.
            * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for partitionKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getPartitionKeyBytes() { + java.lang.Object ref = partitionKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + partitionKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PARTITION_ID_FIELD_NUMBER = 3; - private long partitionId_ = 0L; + public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sequenceNumber_ = ""; /** * * *
      -     * Optional. The partition ID of the message that failed to be ingested.
      +     * Optional. The sequence number of the message that failed to be ingested.
            * 
      * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partitionId. + * @return The sequenceNumber. */ @java.lang.Override - public long getPartitionId() { - return partitionId_; + public java.lang.String getSequenceNumber() { + java.lang.Object ref = sequenceNumber_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sequenceNumber_ = s; + return s; + } } - public static final int OFFSET_FIELD_NUMBER = 4; - private long offset_ = 0L; - /** * * *
      -     * Optional. The offset within the partition of the message that failed to
      -     * be ingested.
      +     * Optional. The sequence number of the message that failed to be ingested.
            * 
      * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The offset. + * @return The bytes for sequenceNumber. */ @java.lang.Override - public long getOffset() { - return offset_; + public com.google.protobuf.ByteString getSequenceNumberBytes() { + java.lang.Object ref = sequenceNumber_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sequenceNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int API_VIOLATION_REASON_FIELD_NUMBER = 5; + public static final int SCHEMA_VIOLATION_REASON_FIELD_NUMBER = 4; /** * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { - return reasonCase_ == 5; + public boolean hasSchemaViolationReason() { + return reasonCase_ == 4; } /** * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } /** * * *
      -     * Optional. The Pub/Sub API limits prevented the desired message from
      -     * being published.
      +     * Optional. The Pub/Sub message failed schema validation.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -6444,21 +10052,18 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, streamArn_); } - if (partitionId_ != 0L) { - output.writeInt64(3, partitionId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partitionKey_); } - if (offset_ != 0L) { - output.writeInt64(4, offset_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceNumber_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sequenceNumber_); } - if (reasonCase_ == 5) { + if (reasonCase_ == 4) { output.writeMessage( - 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 4, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } getUnknownFields().writeTo(output); } @@ -6469,22 +10074,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, streamArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); - } - if (partitionId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partitionKey_); } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, offset_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceNumber_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sequenceNumber_); } - if (reasonCase_ == 5) { + if (reasonCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + 4, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6496,21 +10098,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj - instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason)) { + if (!(obj instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason)) { return super.equals(obj); } - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other = - (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) obj; + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) obj; - if (!getClusterId().equals(other.getClusterId())) return false; - if (!getKafkaTopic().equals(other.getKafkaTopic())) return false; - if (getPartitionId() != other.getPartitionId()) return false; - if (getOffset() != other.getOffset()) return false; + if (!getStreamArn().equals(other.getStreamArn())) return false; + if (!getPartitionKey().equals(other.getPartitionKey())) return false; + if (!getSequenceNumber().equals(other.getSequenceNumber())) return false; if (!getReasonCase().equals(other.getReasonCase())) return false; switch (reasonCase_) { - case 5: - if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + case 4: + if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; case 0: default: @@ -6526,18 +10126,16 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; - hash = (53 * hash) + getClusterId().hashCode(); - hash = (37 * hash) + KAFKA_TOPIC_FIELD_NUMBER; - hash = (53 * hash) + getKafkaTopic().hashCode(); - hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionId()); - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (37 * hash) + STREAM_ARN_FIELD_NUMBER; + hash = (53 * hash) + getStreamArn().hashCode(); + hash = (37 * hash) + PARTITION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPartitionKey().hashCode(); + hash = (37 * hash) + SEQUENCE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getSequenceNumber().hashCode(); switch (reasonCase_) { - case 5: - hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; - hash = (53 * hash) + getApiViolationReason().hashCode(); + case 4: + hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; case 0: default: @@ -6547,59 +10145,59 @@ public int hashCode() { return hash; } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6607,12 +10205,12 @@ public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureRe PARSER, input, extensionRegistry); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -6630,7 +10228,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason prototype) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -6650,34 +10248,33 @@ protected Builder newBuilderForType( * * *
      -     * Failure when ingesting from a Confluent Cloud source.
      +     * Failure when ingesting from an AWS Kinesis source.
            * 
      * - * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder { + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.class, - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder - .class); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder.class); } // Construct using - // com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder() + // com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -6685,15 +10282,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - clusterId_ = ""; - kafkaTopic_ = ""; - partitionId_ = 0L; - offset_ = 0L; - if (apiViolationReasonBuilder_ != null) { - apiViolationReasonBuilder_.clear(); + public Builder clear() { + super.clear(); + bitField0_ = 0; + streamArn_ = ""; + partitionKey_ = ""; + sequenceNumber_ = ""; + if (schemaViolationReasonBuilder_ != null) { + schemaViolationReasonBuilder_.clear(); } reasonCase_ = 0; reason_ = null; @@ -6703,20 +10299,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.pubsub.v1.PubsubProto - .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; + .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getDefaultInstanceForType() { - return com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason .getDefaultInstance(); } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason build() { - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = - buildPartial(); + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6724,9 +10319,9 @@ public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason bu } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason buildPartial() { - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result = - new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(this); + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -6736,28 +10331,25 @@ public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason bu } private void buildPartial0( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.clusterId_ = clusterId_; + result.streamArn_ = streamArn_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.kafkaTopic_ = kafkaTopic_; + result.partitionKey_ = partitionKey_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.partitionId_ = partitionId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.offset_ = offset_; + result.sequenceNumber_ = sequenceNumber_; } } private void buildPartialOneofs( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason result) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason result) { result.reasonCase_ = reasonCase_; result.reason_ = this.reason_; - if (reasonCase_ == 5 && apiViolationReasonBuilder_ != null) { - result.reason_ = apiViolationReasonBuilder_.build(); + if (reasonCase_ == 4 && schemaViolationReasonBuilder_ != null) { + result.reason_ = schemaViolationReasonBuilder_.build(); } } @@ -6798,10 +10390,9 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) { + if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) { return mergeFrom( - (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) other); + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) other); } else { super.mergeFrom(other); return this; @@ -6809,30 +10400,29 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason other) { + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason other) { if (other - == com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + == com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason .getDefaultInstance()) return this; - if (!other.getClusterId().isEmpty()) { - clusterId_ = other.clusterId_; + if (!other.getStreamArn().isEmpty()) { + streamArn_ = other.streamArn_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getKafkaTopic().isEmpty()) { - kafkaTopic_ = other.kafkaTopic_; + if (!other.getPartitionKey().isEmpty()) { + partitionKey_ = other.partitionKey_; bitField0_ |= 0x00000002; onChanged(); } - if (other.getPartitionId() != 0L) { - setPartitionId(other.getPartitionId()); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); + if (!other.getSequenceNumber().isEmpty()) { + sequenceNumber_ = other.sequenceNumber_; + bitField0_ |= 0x00000004; + onChanged(); } switch (other.getReasonCase()) { - case API_VIOLATION_REASON: + case SCHEMA_VIOLATION_REASON: { - mergeApiViolationReason(other.getApiViolationReason()); + mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } case REASON_NOT_SET: @@ -6868,35 +10458,29 @@ public Builder mergeFrom( break; case 10: { - clusterId_ = input.readStringRequireUtf8(); + streamArn_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - kafkaTopic_ = input.readStringRequireUtf8(); + partitionKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 - case 24: + case 26: { - partitionId_ = input.readInt64(); + sequenceNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; - } // case 24 - case 32: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: + } // case 26 + case 34: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); - reasonCase_ = 5; + getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 4; break; - } // case 42 + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6930,25 +10514,25 @@ public Builder clearReason() { private int bitField0_; - private java.lang.Object clusterId_ = ""; + private java.lang.Object streamArn_ = ""; /** * * *
      -       * Optional. The cluster ID containing the topic being ingested from.
      +       * Optional. The stream ARN of the Kinesis stream being ingested from.
              * 
      * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The clusterId. + * @return The streamArn. */ - public java.lang.String getClusterId() { - java.lang.Object ref = clusterId_; + public java.lang.String getStreamArn() { + java.lang.Object ref = streamArn_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - clusterId_ = s; + streamArn_ = s; return s; } else { return (java.lang.String) ref; @@ -6959,19 +10543,19 @@ public java.lang.String getClusterId() { * * *
      -       * Optional. The cluster ID containing the topic being ingested from.
      +       * Optional. The stream ARN of the Kinesis stream being ingested from.
              * 
      * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for clusterId. + * @return The bytes for streamArn. */ - public com.google.protobuf.ByteString getClusterIdBytes() { - java.lang.Object ref = clusterId_; + public com.google.protobuf.ByteString getStreamArnBytes() { + java.lang.Object ref = streamArn_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - clusterId_ = b; + streamArn_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -6982,19 +10566,19 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
      -       * Optional. The cluster ID containing the topic being ingested from.
      +       * Optional. The stream ARN of the Kinesis stream being ingested from.
              * 
      * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The clusterId to set. + * @param value The streamArn to set. * @return This builder for chaining. */ - public Builder setClusterId(java.lang.String value) { + public Builder setStreamArn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - clusterId_ = value; + streamArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -7004,15 +10588,15 @@ public Builder setClusterId(java.lang.String value) { * * *
      -       * Optional. The cluster ID containing the topic being ingested from.
      +       * Optional. The stream ARN of the Kinesis stream being ingested from.
              * 
      * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearClusterId() { - clusterId_ = getDefaultInstance().getClusterId(); + public Builder clearStreamArn() { + streamArn_ = getDefaultInstance().getStreamArn(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -7022,44 +10606,44 @@ public Builder clearClusterId() { * * *
      -       * Optional. The cluster ID containing the topic being ingested from.
      +       * Optional. The stream ARN of the Kinesis stream being ingested from.
              * 
      * - * string cluster_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string stream_arn = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for clusterId to set. + * @param value The bytes for streamArn to set. * @return This builder for chaining. */ - public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + public Builder setStreamArnBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - clusterId_ = value; + streamArn_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object kafkaTopic_ = ""; + private java.lang.Object partitionKey_ = ""; /** * * *
      -       * Optional. The name of the Kafka topic being ingested from.
      +       * Optional. The partition key of the message that failed to be ingested.
              * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The kafkaTopic. + * @return The partitionKey. */ - public java.lang.String getKafkaTopic() { - java.lang.Object ref = kafkaTopic_; + public java.lang.String getPartitionKey() { + java.lang.Object ref = partitionKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - kafkaTopic_ = s; + partitionKey_ = s; return s; } else { return (java.lang.String) ref; @@ -7070,19 +10654,19 @@ public java.lang.String getKafkaTopic() { * * *
      -       * Optional. The name of the Kafka topic being ingested from.
      +       * Optional. The partition key of the message that failed to be ingested.
              * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for kafkaTopic. + * @return The bytes for partitionKey. */ - public com.google.protobuf.ByteString getKafkaTopicBytes() { - java.lang.Object ref = kafkaTopic_; + public com.google.protobuf.ByteString getPartitionKeyBytes() { + java.lang.Object ref = partitionKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - kafkaTopic_ = b; + partitionKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -7093,19 +10677,19 @@ public com.google.protobuf.ByteString getKafkaTopicBytes() { * * *
      -       * Optional. The name of the Kafka topic being ingested from.
      +       * Optional. The partition key of the message that failed to be ingested.
              * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The kafkaTopic to set. + * @param value The partitionKey to set. * @return This builder for chaining. */ - public Builder setKafkaTopic(java.lang.String value) { + public Builder setPartitionKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - kafkaTopic_ = value; + partitionKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -7115,15 +10699,15 @@ public Builder setKafkaTopic(java.lang.String value) { * * *
      -       * Optional. The name of the Kafka topic being ingested from.
      +       * Optional. The partition key of the message that failed to be ingested.
              * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearKafkaTopic() { - kafkaTopic_ = getDefaultInstance().getKafkaTopic(); + public Builder clearPartitionKey() { + partitionKey_ = getDefaultInstance().getPartitionKey(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -7133,117 +10717,109 @@ public Builder clearKafkaTopic() { * * *
      -       * Optional. The name of the Kafka topic being ingested from.
      +       * Optional. The partition key of the message that failed to be ingested.
              * 
      * - * string kafka_topic = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string partition_key = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for kafkaTopic to set. + * @param value The bytes for partitionKey to set. * @return This builder for chaining. */ - public Builder setKafkaTopicBytes(com.google.protobuf.ByteString value) { + public Builder setPartitionKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - kafkaTopic_ = value; + partitionKey_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - private long partitionId_; + private java.lang.Object sequenceNumber_ = ""; /** * * *
      -       * Optional. The partition ID of the message that failed to be ingested.
      +       * Optional. The sequence number of the message that failed to be ingested.
              * 
      * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partitionId. + * @return The sequenceNumber. */ - @java.lang.Override - public long getPartitionId() { - return partitionId_; + public java.lang.String getSequenceNumber() { + java.lang.Object ref = sequenceNumber_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sequenceNumber_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
      -       * Optional. The partition ID of the message that failed to be ingested.
      +       * Optional. The sequence number of the message that failed to be ingested.
              * 
      * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The partitionId to set. - * @return This builder for chaining. + * @return The bytes for sequenceNumber. */ - public Builder setPartitionId(long value) { - - partitionId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.protobuf.ByteString getSequenceNumberBytes() { + java.lang.Object ref = sequenceNumber_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sequenceNumber_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
      -       * Optional. The partition ID of the message that failed to be ingested.
      +       * Optional. The sequence number of the message that failed to be ingested.
              * 
      * - * int64 partition_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The sequenceNumber to set. * @return This builder for chaining. */ - public Builder clearPartitionId() { - bitField0_ = (bitField0_ & ~0x00000004); - partitionId_ = 0L; + public Builder setSequenceNumber(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sequenceNumber_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private long offset_; - - /** - * - * - *
      -       * Optional. The offset within the partition of the message that failed to
      -       * be ingested.
      -       * 
      - * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - /** * * *
      -       * Optional. The offset within the partition of the message that failed to
      -       * be ingested.
      +       * Optional. The sequence number of the message that failed to be ingested.
              * 
      * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The offset to set. * @return This builder for chaining. */ - public Builder setOffset(long value) { - - offset_ = value; - bitField0_ |= 0x00000008; + public Builder clearSequenceNumber() { + sequenceNumber_ = getDefaultInstance().getSequenceNumber(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -7252,72 +10828,77 @@ public Builder setOffset(long value) { * * *
      -       * Optional. The offset within the partition of the message that failed to
      -       * be ingested.
      +       * Optional. The sequence number of the message that failed to be ingested.
              * 
      * - * int64 offset = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string sequence_number = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The bytes for sequenceNumber to set. * @return This builder for chaining. */ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000008); - offset_ = 0L; + public Builder setSequenceNumberBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sequenceNumber_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - apiViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; /** * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the apiViolationReason field is set. + * @return Whether the schemaViolationReason field is set. */ @java.lang.Override - public boolean hasApiViolationReason() { - return reasonCase_ == 5; + public boolean hasSchemaViolationReason() { + return reasonCase_ == 4; } /** * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The apiViolationReason. + * @return The schemaViolationReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } else { - if (reasonCase_ == 5) { - return apiViolationReasonBuilder_.getMessage(); + if (reasonCase_ == 4) { + return schemaViolationReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -7325,26 +10906,25 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViola * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } - reasonCase_ = 5; + reasonCase_ = 4; return this; } @@ -7352,23 +10932,23 @@ public Builder setApiViolationReason( * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { - if (apiViolationReasonBuilder_ == null) { + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - apiViolationReasonBuilder_.setMessage(builderForValue.build()); + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); } - reasonCase_ = 5; + reasonCase_ = 4; return this; } @@ -7376,24 +10956,23 @@ public Builder setApiViolationReason( * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeApiViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5 + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 4 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) .mergeFrom(value) .buildPartial(); } else { @@ -7401,13 +10980,13 @@ public Builder mergeApiViolationReason( } onChanged(); } else { - if (reasonCase_ == 5) { - apiViolationReasonBuilder_.mergeFrom(value); + if (reasonCase_ == 4) { + schemaViolationReasonBuilder_.mergeFrom(value); } else { - apiViolationReasonBuilder_.setMessage(value); + schemaViolationReasonBuilder_.setMessage(value); } } - reasonCase_ = 5; + reasonCase_ = 4; return this; } @@ -7415,27 +10994,26 @@ public Builder mergeApiViolationReason( * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 4) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 5) { + if (reasonCase_ == 4) { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -7444,41 +11022,40 @@ public Builder clearApiViolationReason() { * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 4) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + if (reasonCase_ == 4) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -7486,37 +11063,37 @@ public Builder clearApiViolationReason() { * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 5)) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 4)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 4; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } @java.lang.Override @@ -7531,27 +11108,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) } - // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) - private static final com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason(); + DEFAULT_INSTANCE = new com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason(); } - public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ConfluentCloudFailureReason parsePartialFrom( + public AwsKinesisFailureReason parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -7571,17 +11147,17 @@ public ConfluentCloudFailureReason parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -7600,6 +11176,7 @@ public enum FailureCase AWS_MSK_FAILURE(4), AZURE_EVENT_HUBS_FAILURE(5), CONFLUENT_CLOUD_FAILURE(6), + AWS_KINESIS_FAILURE(7), FAILURE_NOT_SET(0); private final int value; @@ -7627,6 +11204,8 @@ public static FailureCase forNumber(int value) { return AZURE_EVENT_HUBS_FAILURE; case 6: return CONFLUENT_CLOUD_FAILURE; + case 7: + return AWS_KINESIS_FAILURE; case 0: return FAILURE_NOT_SET; default: @@ -8001,6 +11580,67 @@ public boolean hasConfluentCloudFailure() { .getDefaultInstance(); } + public static final int AWS_KINESIS_FAILURE_FIELD_NUMBER = 7; + + /** + * + * + *
      +   * Optional. Failure when ingesting from AWS Kinesis.
      +   * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesisFailure field is set. + */ + @java.lang.Override + public boolean hasAwsKinesisFailure() { + return failureCase_ == 7; + } + + /** + * + * + *
      +   * Optional. Failure when ingesting from AWS Kinesis.
      +   * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesisFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getAwsKinesisFailure() { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Failure when ingesting from AWS Kinesis.
      +   * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder + getAwsKinesisFailureOrBuilder() { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8037,6 +11677,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 6, (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_); } + if (failureCase_ == 7) { + output.writeMessage( + 7, (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_); + } getUnknownFields().writeTo(output); } @@ -8072,6 +11716,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) failure_); } + if (failureCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8104,6 +11753,9 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getConfluentCloudFailure().equals(other.getConfluentCloudFailure())) return false; break; + case 7: + if (!getAwsKinesisFailure().equals(other.getAwsKinesisFailure())) return false; + break; case 0: default: } @@ -8139,6 +11791,10 @@ public int hashCode() { hash = (37 * hash) + CONFLUENT_CLOUD_FAILURE_FIELD_NUMBER; hash = (53 * hash) + getConfluentCloudFailure().hashCode(); break; + case 7: + hash = (37 * hash) + AWS_KINESIS_FAILURE_FIELD_NUMBER; + hash = (53 * hash) + getAwsKinesisFailure().hashCode(); + break; case 0: default: } @@ -8297,6 +11953,9 @@ public Builder clear() { if (confluentCloudFailureBuilder_ != null) { confluentCloudFailureBuilder_.clear(); } + if (awsKinesisFailureBuilder_ != null) { + awsKinesisFailureBuilder_.clear(); + } failureCase_ = 0; failure_ = null; return this; @@ -8359,6 +12018,9 @@ private void buildPartialOneofs(com.google.pubsub.v1.IngestionFailureEvent resul if (failureCase_ == 6 && confluentCloudFailureBuilder_ != null) { result.failure_ = confluentCloudFailureBuilder_.build(); } + if (failureCase_ == 7 && awsKinesisFailureBuilder_ != null) { + result.failure_ = awsKinesisFailureBuilder_.build(); + } } @java.lang.Override @@ -8437,6 +12099,11 @@ public Builder mergeFrom(com.google.pubsub.v1.IngestionFailureEvent other) { mergeConfluentCloudFailure(other.getConfluentCloudFailure()); break; } + case AWS_KINESIS_FAILURE: + { + mergeAwsKinesisFailure(other.getAwsKinesisFailure()); + break; + } case FAILURE_NOT_SET: { break; @@ -8507,6 +12174,13 @@ public Builder mergeFrom( failureCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getAwsKinesisFailureFieldBuilder().getBuilder(), extensionRegistry); + failureCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9753,6 +13427,255 @@ public Builder clearConfluentCloudFailure() { return confluentCloudFailureBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder> + awsKinesisFailureBuilder_; + + /** + * + * + *
      +     * Optional. Failure when ingesting from AWS Kinesis.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesisFailure field is set. + */ + @java.lang.Override + public boolean hasAwsKinesisFailure() { + return failureCase_ == 7; + } + + /** + * + * + *
      +     * Optional. Failure when ingesting from AWS Kinesis.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesisFailure. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + getAwsKinesisFailure() { + if (awsKinesisFailureBuilder_ == null) { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } else { + if (failureCase_ == 7) { + return awsKinesisFailureBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Failure when ingesting from AWS Kinesis.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesisFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason value) { + if (awsKinesisFailureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + failure_ = value; + onChanged(); + } else { + awsKinesisFailureBuilder_.setMessage(value); + } + failureCase_ = 7; + return this; + } + + /** + * + * + *
      +     * Optional. Failure when ingesting from AWS Kinesis.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAwsKinesisFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder + builderForValue) { + if (awsKinesisFailureBuilder_ == null) { + failure_ = builderForValue.build(); + onChanged(); + } else { + awsKinesisFailureBuilder_.setMessage(builderForValue.build()); + } + failureCase_ = 7; + return this; + } + + /** + * + * + *
      +     * Optional. Failure when ingesting from AWS Kinesis.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAwsKinesisFailure( + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason value) { + if (awsKinesisFailureBuilder_ == null) { + if (failureCase_ == 7 + && failure_ + != com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance()) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_) + .mergeFrom(value) + .buildPartial(); + } else { + failure_ = value; + } + onChanged(); + } else { + if (failureCase_ == 7) { + awsKinesisFailureBuilder_.mergeFrom(value); + } else { + awsKinesisFailureBuilder_.setMessage(value); + } + } + failureCase_ = 7; + return this; + } + + /** + * + * + *
      +     * Optional. Failure when ingesting from AWS Kinesis.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAwsKinesisFailure() { + if (awsKinesisFailureBuilder_ == null) { + if (failureCase_ == 7) { + failureCase_ = 0; + failure_ = null; + onChanged(); + } + } else { + if (failureCase_ == 7) { + failureCase_ = 0; + failure_ = null; + } + awsKinesisFailureBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Failure when ingesting from AWS Kinesis.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder + getAwsKinesisFailureBuilder() { + return getAwsKinesisFailureFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Failure when ingesting from AWS Kinesis.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder + getAwsKinesisFailureOrBuilder() { + if ((failureCase_ == 7) && (awsKinesisFailureBuilder_ != null)) { + return awsKinesisFailureBuilder_.getMessageOrBuilder(); + } else { + if (failureCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_; + } + return com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Failure when ingesting from AWS Kinesis.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder> + getAwsKinesisFailureFieldBuilder() { + if (awsKinesisFailureBuilder_ == null) { + if (!(failureCase_ == 7)) { + failure_ = + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason + .getDefaultInstance(); + } + awsKinesisFailureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) failure_, + getParentForChildren(), + isClean()); + failure_ = null; + } + failureCase_ = 7; + onChanged(); + return awsKinesisFailureBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index 9fc268820945..762da6810513 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -254,5 +254,49 @@ public interface IngestionFailureEventOrBuilder com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder getConfluentCloudFailureOrBuilder(); + /** + * + * + *
      +   * Optional. Failure when ingesting from AWS Kinesis.
      +   * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the awsKinesisFailure field is set. + */ + boolean hasAwsKinesisFailure(); + + /** + * + * + *
      +   * Optional. Failure when ingesting from AWS Kinesis.
      +   * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The awsKinesisFailure. + */ + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason getAwsKinesisFailure(); + + /** + * + * + *
      +   * Optional. Failure when ingesting from AWS Kinesis.
      +   * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder + getAwsKinesisFailureOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.FailureCase getFailureCase(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index ff57a28b7041..8d94f89b2299 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -186,7 +186,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return The enabled. */ @java.lang.Override @@ -899,7 +899,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return The enabled. */ @java.lang.Override @@ -919,7 +919,7 @@ public boolean getEnabled() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @param value The enabled to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 8970aabb5179..aa3c6fd1461d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -81,7 +81,7 @@ public interface MessageTransformOrBuilder * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=726 + * google/pubsub/v1/pubsub.proto;l=769 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 22c1a66bb48b..deae19db653e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -88,6 +88,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -104,6 +108,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -486,7 +494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DEBUG\020\002\022\010\n" + "\004INFO\020\003\022\013\n" + "\007WARNING\020\004\022\t\n" - + "\005ERROR\020\005\"\211\014\n" + + "\005ERROR\020\005\"\203\022\n" + "\025IngestionFailureEvent\022\022\n" + "\005topic\030\001 \001(\tB\003\340A\002\022\032\n\r" + "error_message\030\002 \001(\tB\003\340A\002\022a\n" @@ -497,49 +505,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubsub.v1.IngestionFailureEv" + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" + "\027confluent_cloud_failure\030\006 \001(\0132C.google" - + ".pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\032\024\n" + + ".pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\022c\n" + + "\023aws_kinesis_failure\030\007 \001(\0132?.google.pubsub.v1.Inge" + + "stionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + "\022ApiViolationReason\032\023\n" - + "\021AvroFailureReason\032\256\002\n" + + "\021AvroFailureReason\032\027\n" + + "\025SchemaViolationReason\032\225\003\n" + "\023CloudStorageFailure\022\023\n" + "\006bucket\030\001 \001(\tB\003\340A\001\022\030\n" + "\013object_name\030\002 \001(\tB\003\340A\001\022\036\n" + "\021object_generation\030\003 \001(\003B\003\340A\001\022]\n" - + "\023avro_failure_reason\030\005 \001" - + "(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" - + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v1.In" - + "gestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\344\001\n" + + "\023avro_failure_reason\030\005" + + " \001(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub" + + ".v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\007" + + " \001(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\313\002\n" + "\023AwsMskFailureReason\022\030\n" + "\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005" - + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\350\001\n" + + "\024api_violation_reason\030\005 \001(\0132:" + + ".google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.In" + + "gestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\317\002\n" + "\033AzureEventHubsFailureReason\022\026\n" + "\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n" + "\tevent_hub\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005" - + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\353\001\n" + + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1.Inge" + + "stionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.g" + + "oogle.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\322\002\n" + "\033ConfluentCloudFailureReason\022\027\n\n" + "cluster_id\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001" - + "(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\024api_violation_reason\030\005 \001(\0132:." + + "google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Ing" + + "estionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\335\001\n" + + "\027AwsKinesisFailureReason\022\027\n\n" + + "stream_arn\030\001 \001(\tB\003\340A\001\022\032\n\r" + + "partition_key\030\002 \001(\tB\003\340A\001\022\034\n" + + "\017sequence_number\030\003 \001(\tB\003\340A\001\022e\n" + + "\027schema_violation_reason\030\004 \001(" + + "\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + "\006reasonB\t\n" + "\007failure\">\n\r" + "JavaScriptUDF\022\032\n\r" + "function_name\030\001 \001(\tB\003\340A\002\022\021\n" + "\004code\030\002 \001(\tB\003\340A\002\"\216\001\n" + "\020MessageTransform\022>\n" - + "\016javascript_udf\030\002 \001(\0132" - + "\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + + "\016javascript_udf\030\002 \001(" + + "\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" + "\ttransform\"\216\006\n" @@ -566,12 +592,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\034\n" + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" - + "\033pubsub.googleapis.com/Topic\022!projects/{project}/to" - + "pics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "\033pubsub.googleapis.com/Topic\022!projects/{project}/" + + "topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + "PubsubMessage\022\021\n" + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" + "attributes\030\002" - + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n" + + "\n" + "message_id\030\003 \001(\t\0220\n" + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" @@ -603,7 +630,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033pubsub.googleapis.com/Topic\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\201\001\n" - + "\036ListTopicSubscriptionsResponse\022A\n\r" + + "\036ListTopicSubscriptionsResponse\022A\n" + + "\r" + "subscriptions\030\001 \003(\tB*\340A\001\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n" @@ -666,8 +694,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub.googleapis.com/" - + "Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub.googleapis.co" + + "m/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" @@ -680,8 +708,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + "PushConfig\022\032\n\r" + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" - + "attributes\030\002 \003(\0132,.go" - + "ogle.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "attributes\030\002 \003(\0132,." + + "google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + "oidc_token\030\003" + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + "\016pubsub_wrapper\030\004" @@ -721,10 +749,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + "\030filename_datetime_format\030\n" + " \001(\tB\003\340A\001\022K\n" - + "\013text_config\030\004 \001(\0132/" - + ".google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" - + "\013avro_config\030\005 \001(\0132/.go" - + "ogle.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\013text_config\030\004 \001(\013" + + "2/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005 \001(\0132/." + + "google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + "\014max_duration\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" @@ -746,8 +774,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "output_format\"|\n" + "\017ReceivedMessage\022\023\n" + "\006ack_id\030\001 \001(\tB\003\340A\001\0225\n" - + "\007message\030\002" - + " \001(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + + "\007message\030\002 \001(" + + "\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" + "\026GetSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -780,8 +808,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022return_immediately\030\002 \001(\010B\005\030\001\340A\001\022\031\n" + "\014max_messages\030\003 \001(\005B\003\340A\002\"Q\n" + "\014PullResponse\022A\n" - + "\021received_messages\030\001 \003" - + "(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n" + + "\021received_messages\030\001" + + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\"\225\001\n" + "\030ModifyAckDeadlineRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\024\n" @@ -804,12 +832,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 \001(" - + "\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132E.goog" - + "le.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v" - + "1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\030acknowledge_confirmation\030\005 " + + "\001(\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.go" + + "ogle.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pubsub" + + ".v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -827,8 +855,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 \003(\01323." - + "google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\003 \003(\0132" + + "3.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" @@ -871,111 +899,116 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006target\"\016\n" + "\014SeekResponse2\270\013\n" + "\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsub." - + "v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicRequest\032\027.googl" - + "e.pubsub.v1.Topic\"C\332A\021topic,update_mask\202" - + "\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" - + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1.PublishR" - + "esponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" - + "\010GetTopic\022!.google.pubsub.v1.GetTopicRequ" - + "est\032\027.google.pubsub.v1.Topic\"/\332A\005topic\202\323" - + "\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" - + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.ListTopicsR" - + "esponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTopicSubscr" - + "iptionsRequest\0320.google.pubsub.v1.ListTo" - + "picSubscriptionsResponse\"=\332A\005topic\202\323\344\223\002/", - "\022-/v1/{topic=projects/*/topics/*}/subscr" - + "iptions\022\252\001\n\022ListTopicSnapshots\022+.google." - + "pubsub.v1.ListTopicSnapshotsRequest\032,.go" - + "ogle.pubsub.v1.ListTopicSnapshotsRespons" - + "e\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*" - + "/topics/*}/snapshots\022|\n\013DeleteTopic\022$.go" - + "ogle.pubsub.v1.DeleteTopicRequest\032\026.goog" - + "le.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{" - + "topic=projects/*/topics/*}\022\255\001\n\022DetachSub" - + "scription\022+.google.pubsub.v1.DetachSubsc" - + "riptionRequest\032,.google.pubsub.v1.Detach" - + "SubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{subsc" - + "ription=projects/*/subscriptions/*}:deta" - + "ch\032p\312A\025pubsub.googleapis.com\322AUhttps://w" - + "ww.googleapis.com/auth/cloud-platform,ht" - + "tps://www.googleapis.com/auth/pubsub2\322\025\n" - + "\nSubscriber\022\264\001\n\022CreateSubscription\022\036.goo" - + "gle.pubsub.v1.Subscription\032\036.google.pubs" - + "ub.v1.Subscription\"^\332A+name,topic,push_c" - + "onfig,ack_deadline_seconds\202\323\344\223\002*\032%/v1/{n" - + "ame=projects/*/subscriptions/*}:\001*\022\241\001\n\017G" - + "etSubscription\022(.google.pubsub.v1.GetSub" - + "scriptionRequest\032\036.google.pubsub.v1.Subs" - + "cription\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{su" - + "bscription=projects/*/subscriptions/*}\022\273" - + "\001\n\022UpdateSubscription\022+.google.pubsub.v1" - + ".UpdateSubscriptionRequest\032\036.google.pubs" - + "ub.v1.Subscription\"X\332A\030subscription,upda" - + "te_mask\202\323\344\223\002722/v1/{subscription.name=pr" - + "ojects/*/subscriptions/*}:\001*\022\246\001\n\021ListSub" - + "scriptions\022*.google.pubsub.v1.ListSubscr" - + "iptionsRequest\032+.google.pubsub.v1.ListSu" - + "bscriptionsResponse\"8\332A\007project\202\323\344\223\002(\022&/" - + "v1/{project=projects/*}/subscriptions\022\237\001" - + "\n\022DeleteSubscription\022+.google.pubsub.v1." - + "DeleteSubscriptionRequest\032\026.google.proto" - + "buf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{s" - + "ubscription=projects/*/subscriptions/*}\022" - + "\317\001\n\021ModifyAckDeadline\022*.google.pubsub.v1" - + ".ModifyAckDeadlineRequest\032\026.google.proto" - + "buf.Empty\"v\332A)subscription,ack_ids,ack_d" - + "eadline_seconds\202\323\344\223\002D\"?/v1/{subscription" - + "=projects/*/subscriptions/*}:modifyAckDe" - + "adline:\001*\022\250\001\n\013Acknowledge\022$.google.pubsu" - + "b.v1.AcknowledgeRequest\032\026.google.protobu" - + "f.Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9" - + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.google.p" - + "ubsub.v1.PullRequest\032\036.google.pubsub.v1." - + "PullResponse\"\210\001\332A,subscription,return_im" - + "mediately,max_messages\332A\031subscription,ma" - + "x_messages\202\323\344\223\0027\"2/v1/{subscription=proj" - + "ects/*/subscriptions/*}:pull:\001*\022f\n\rStrea" - + "mingPull\022&.google.pubsub.v1.StreamingPul" - + "lRequest\032\'.google.pubsub.v1.StreamingPul" - + "lResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022).g" - + "oogle.pubsub.v1.ModifyPushConfigRequest\032" - + "\026.google.protobuf.Empty\"d\332A\030subscription" - + ",push_config\202\323\344\223\002C\">/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:modifyPushConf" - + "ig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubsub.v1" - + ".GetSnapshotRequest\032\032.google.pubsub.v1.S" - + "napshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapsho" - + "t=projects/*/snapshots/*}\022\226\001\n\rListSnapsh" - + "ots\022&.google.pubsub.v1.ListSnapshotsRequ" - + "est\032\'.google.pubsub.v1.ListSnapshotsResp" - + "onse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=pro" - + "jects/*}/snapshots\022\227\001\n\016CreateSnapshot\022\'." - + "google.pubsub.v1.CreateSnapshotRequest\032\032" - + ".google.pubsub.v1.Snapshot\"@\332A\021name,subs" - + "cription\202\323\344\223\002&\032!/v1/{name=projects/*/sna" - + "pshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.google" - + ".pubsub.v1.UpdateSnapshotRequest\032\032.googl" - + "e.pubsub.v1.Snapshot\"L\332A\024snapshot,update" - + "_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects" - + "/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022\'." - + "google.pubsub.v1.DeleteSnapshotRequest\032\026" - + ".google.protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002" - + "\'*%/v1/{snapshot=projects/*/snapshots/*}" - + "\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekRequest" - + "\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027" - + "\"2/v1/{subscription=projects/*/subscript" - + "ions/*}:seek:\001*\032p\312A\025pubsub.googleapis.co" - + "m\322AUhttps://www.googleapis.com/auth/clou" - + "d-platform,https://www.googleapis.com/au" - + "th/pubsubB\252\001\n\024com.google.pubsub.v1B\013Pubs" - + "ubProtoP\001Z5cloud.google.com/go/pubsub/v2" - + "/apiv1/pubsubpb;pubsubpb\252\002\026Google.Cloud." - + "PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Goo" - + "gle::Cloud::PubSub::V1b\006proto3" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsu", + "b.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=pro" + + "jects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022$.g" + + "oogle.pubsub.v1.UpdateTopicRequest\032\027.goo" + + "gle.pubsub.v1.Topic\"C\332A\021topic,update_mas" + + "k\202\323\344\223\002)2$/v1/{topic.name=projects/*/topi" + + "cs/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1." + + "PublishRequest\032!.google.pubsub.v1.Publis" + + "hResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/" + + "{topic=projects/*/topics/*}:publish:\001*\022w" + + "\n\010GetTopic\022!.google.pubsub.v1.GetTopicRe" + + "quest\032\027.google.pubsub.v1.Topic\"/\332A\005topic" + + "\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022" + + "\212\001\n\nListTopics\022#.google.pubsub.v1.ListTo" + + "picsRequest\032$.google.pubsub.v1.ListTopic" + + "sResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{projec" + + "t=projects/*}/topics\022\272\001\n\026ListTopicSubscr" + + "iptions\022/.google.pubsub.v1.ListTopicSubs" + + "criptionsRequest\0320.google.pubsub.v1.List" + + "TopicSubscriptionsResponse\"=\332A\005topic\202\323\344\223" + + "\002/\022-/v1/{topic=projects/*/topics/*}/subs" + + "criptions\022\252\001\n\022ListTopicSnapshots\022+.googl" + + "e.pubsub.v1.ListTopicSnapshotsRequest\032,." + + "google.pubsub.v1.ListTopicSnapshotsRespo" + + "nse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects" + + "/*/topics/*}/snapshots\022|\n\013DeleteTopic\022$." + + "google.pubsub.v1.DeleteTopicRequest\032\026.go" + + "ogle.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1" + + "/{topic=projects/*/topics/*}\022\255\001\n\022DetachS" + + "ubscription\022+.google.pubsub.v1.DetachSub" + + "scriptionRequest\032,.google.pubsub.v1.Deta" + + "chSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{sub" + + "scription=projects/*/subscriptions/*}:de" + + "tach\032p\312A\025pubsub.googleapis.com\322AUhttps:/" + + "/www.googleapis.com/auth/cloud-platform," + + "https://www.googleapis.com/auth/pubsub2\322" + + "\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036.g" + + "oogle.pubsub.v1.Subscription\032\036.google.pu" + + "bsub.v1.Subscription\"^\332A+name,topic,push" + + "_config,ack_deadline_seconds\202\323\344\223\002*\032%/v1/" + + "{name=projects/*/subscriptions/*}:\001*\022\241\001\n" + + "\017GetSubscription\022(.google.pubsub.v1.GetS" + + "ubscriptionRequest\032\036.google.pubsub.v1.Su" + + "bscription\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{" + + "subscription=projects/*/subscriptions/*}" + + "\022\273\001\n\022UpdateSubscription\022+.google.pubsub." + + "v1.UpdateSubscriptionRequest\032\036.google.pu" + + "bsub.v1.Subscription\"X\332A\030subscription,up" + + "date_mask\202\323\344\223\002722/v1/{subscription.name=" + + "projects/*/subscriptions/*}:\001*\022\246\001\n\021ListS" + + "ubscriptions\022*.google.pubsub.v1.ListSubs" + + "criptionsRequest\032+.google.pubsub.v1.List" + + "SubscriptionsResponse\"8\332A\007project\202\323\344\223\002(\022" + + "&/v1/{project=projects/*}/subscriptions\022" + + "\237\001\n\022DeleteSubscription\022+.google.pubsub.v" + + "1.DeleteSubscriptionRequest\032\026.google.pro" + + "tobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/" + + "{subscription=projects/*/subscriptions/*" + + "}\022\317\001\n\021ModifyAckDeadline\022*.google.pubsub." + + "v1.ModifyAckDeadlineRequest\032\026.google.pro" + + "tobuf.Empty\"v\332A)subscription,ack_ids,ack" + + "_deadline_seconds\202\323\344\223\002D\"?/v1/{subscripti" + + "on=projects/*/subscriptions/*}:modifyAck" + + "Deadline:\001*\022\250\001\n\013Acknowledge\022$.google.pub" + + "sub.v1.AcknowledgeRequest\032\026.google.proto" + + "buf.Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>" + + "\"9/v1/{subscription=projects/*/subscript" + + "ions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.google" + + ".pubsub.v1.PullRequest\032\036.google.pubsub.v" + + "1.PullResponse\"\210\001\332A,subscription,return_" + + "immediately,max_messages\332A\031subscription," + + "max_messages\202\323\344\223\0027\"2/v1/{subscription=pr" + + "ojects/*/subscriptions/*}:pull:\001*\022f\n\rStr" + + "eamingPull\022&.google.pubsub.v1.StreamingP" + + "ullRequest\032\'.google.pubsub.v1.StreamingP" + + "ullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022)" + + ".google.pubsub.v1.ModifyPushConfigReques" + + "t\032\026.google.protobuf.Empty\"d\332A\030subscripti" + + "on,push_config\202\323\344\223\002C\">/v1/{subscription=" + + "projects/*/subscriptions/*}:modifyPushCo" + + "nfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubsub." + + "v1.GetSnapshotRequest\032\032.google.pubsub.v1" + + ".Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snaps" + + "hot=projects/*/snapshots/*}\022\226\001\n\rListSnap" + + "shots\022&.google.pubsub.v1.ListSnapshotsRe" + + "quest\032\'.google.pubsub.v1.ListSnapshotsRe" + + "sponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=p" + + "rojects/*}/snapshots\022\227\001\n\016CreateSnapshot\022" + + "\'.google.pubsub.v1.CreateSnapshotRequest" + + "\032\032.google.pubsub.v1.Snapshot\"@\332A\021name,su" + + "bscription\202\323\344\223\002&\032!/v1/{name=projects/*/s" + + "napshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.goog" + + "le.pubsub.v1.UpdateSnapshotRequest\032\032.goo" + + "gle.pubsub.v1.Snapshot\"L\332A\024snapshot,upda" + + "te_mask\202\323\344\223\002/2*/v1/{snapshot.name=projec" + + "ts/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022" + + "\'.google.pubsub.v1.DeleteSnapshotRequest" + + "\032\026.google.protobuf.Empty\"8\332A\010snapshot\202\323\344" + + "\223\002\'*%/v1/{snapshot=projects/*/snapshots/" + + "*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReque" + + "st\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223" + + "\0027\"2/v1/{subscription=projects/*/subscri" + + "ptions/*}:seek:\001*\032p\312A\025pubsub.googleapis." + + "com\322AUhttps://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Pu" + + "bsubProtoP\001Z5cloud.google.com/go/pubsub/" + + "v2/apiv1/pubsubpb;pubsubpb\252\002\026Google.Clou" + + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" + + "oogle::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1136,6 +1169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AwsMskFailure", "AzureEventHubsFailure", "ConfluentCloudFailure", + "AwsKinesisFailure", "Failure", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor = @@ -1150,8 +1184,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor, new java.lang.String[] {}); - internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor = internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor, @@ -1161,31 +1201,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ObjectGeneration", "AvroFailureReason", "ApiViolationReason", + "SchemaViolationReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor, new java.lang.String[] { - "ClusterArn", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", + "ClusterArn", + "KafkaTopic", + "PartitionId", + "Offset", + "ApiViolationReason", + "SchemaViolationReason", + "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor, new java.lang.String[] { - "Namespace", "EventHub", "PartitionId", "Offset", "ApiViolationReason", "Reason", + "Namespace", + "EventHub", + "PartitionId", + "Offset", + "ApiViolationReason", + "SchemaViolationReason", + "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(6); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor, new java.lang.String[] { - "ClusterId", "KafkaTopic", "PartitionId", "Offset", "ApiViolationReason", "Reason", + "ClusterId", + "KafkaTopic", + "PartitionId", + "Offset", + "ApiViolationReason", + "SchemaViolationReason", + "Reason", + }); + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(7); + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor, + new java.lang.String[] { + "StreamArn", "PartitionKey", "SequenceNumber", "SchemaViolationReason", "Reason", }); internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = getDescriptor().getMessageTypes().get(5); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 7db45411e611..cdc16574f72c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
      * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return The returnImmediately. */ @java.lang.Override @@ -727,7 +727,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -758,7 +758,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index bee10d2e95f2..8b2bd98a7fda 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1911 + * google/pubsub/v1/pubsub.proto;l=1954 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index ada2ba66b747..fa6ea9d518b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -28,7 +28,7 @@ * Retry delay will be exponential based on provided minimum and maximum * backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. * - * RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded * events for a given message. * * Retry Policy is implemented on a best effort basis. At times, the delay @@ -378,7 +378,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Retry delay will be exponential based on provided minimum and maximum * backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. * - * RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded * events for a given message. * * Retry Policy is implemented on a best effort basis. At times, the delay diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 017b0d91204c..f40cc4e62757 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -24,7 +24,7 @@ * *
        * Request for the `StreamingPull` streaming RPC method. This request is used to
      - * establish the initial stream as well as to stream acknowledgements and ack
      + * establish the initial stream as well as to stream acknowledgments and ack
        * deadline modifications from the client to the server.
        * 
      * @@ -143,12 +143,11 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
      -   * Optional. List of acknowledgement IDs for acknowledging previously received
      +   * Optional. List of acknowledgment 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`.
      +   * a message more than once will not result in an error. If the acknowledgment
      +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -163,12 +162,11 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
      -   * Optional. List of acknowledgement IDs for acknowledging previously received
      +   * Optional. List of acknowledgment 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`.
      +   * a message more than once will not result in an error. If the acknowledgment
      +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -183,12 +181,11 @@ public int getAckIdsCount() { * * *
      -   * Optional. List of acknowledgement IDs for acknowledging previously received
      +   * Optional. List of acknowledgment 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`.
      +   * a message more than once will not result in an error. If the acknowledgment
      +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -204,12 +201,11 @@ public java.lang.String getAckIds(int index) { * * *
      -   * Optional. List of acknowledgement IDs for acknowledging previously received
      +   * Optional. List of acknowledgment 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`.
      +   * a message more than once will not result in an error. If the acknowledgment
      +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -318,7 +314,7 @@ public int getModifyDeadlineSeconds(int index) { * * *
      -   * Optional. List of acknowledgement IDs whose deadline will be modified based
      +   * Optional. List of acknowledgment 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
      @@ -338,7 +334,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
          *
          *
          * 
      -   * Optional. List of acknowledgement IDs whose deadline will be modified based
      +   * Optional. List of acknowledgment 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
      @@ -358,7 +354,7 @@ public int getModifyDeadlineAckIdsCount() {
          *
          *
          * 
      -   * Optional. List of acknowledgement IDs whose deadline will be modified based
      +   * Optional. List of acknowledgment 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
      @@ -379,7 +375,7 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
          *
          *
          * 
      -   * Optional. List of acknowledgement IDs whose deadline will be modified based
      +   * Optional. List of acknowledgment 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
      @@ -796,7 +792,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
          *
          * 
          * Request for the `StreamingPull` streaming RPC method. This request is used to
      -   * establish the initial stream as well as to stream acknowledgements and ack
      +   * establish the initial stream as well as to stream acknowledgments and ack
          * deadline modifications from the client to the server.
          * 
      * @@ -1257,12 +1253,11 @@ private void ensureAckIdsIsMutable() { * * *
      -     * Optional. List of acknowledgement IDs for acknowledging previously received
      +     * Optional. List of acknowledgment 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`.
      +     * a message more than once will not result in an error. If the acknowledgment
      +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
            * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1278,12 +1273,11 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
      -     * Optional. List of acknowledgement IDs for acknowledging previously received
      +     * Optional. List of acknowledgment 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`.
      +     * a message more than once will not result in an error. If the acknowledgment
      +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
            * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1298,12 +1292,11 @@ public int getAckIdsCount() { * * *
      -     * Optional. List of acknowledgement IDs for acknowledging previously received
      +     * Optional. List of acknowledgment 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`.
      +     * a message more than once will not result in an error. If the acknowledgment
      +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
            * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1319,12 +1312,11 @@ public java.lang.String getAckIds(int index) { * * *
      -     * Optional. List of acknowledgement IDs for acknowledging previously received
      +     * Optional. List of acknowledgment 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`.
      +     * a message more than once will not result in an error. If the acknowledgment
      +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
            * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1340,12 +1332,11 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
      -     * Optional. List of acknowledgement IDs for acknowledging previously received
      +     * Optional. List of acknowledgment 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`.
      +     * a message more than once will not result in an error. If the acknowledgment
      +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
            * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1369,12 +1360,11 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
      -     * Optional. List of acknowledgement IDs for acknowledging previously received
      +     * Optional. List of acknowledgment 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`.
      +     * a message more than once will not result in an error. If the acknowledgment
      +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
            * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1397,12 +1387,11 @@ public Builder addAckIds(java.lang.String value) { * * *
      -     * Optional. List of acknowledgement IDs for acknowledging previously received
      +     * Optional. List of acknowledgment 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`.
      +     * a message more than once will not result in an error. If the acknowledgment
      +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
            * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1422,12 +1411,11 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
      -     * Optional. List of acknowledgement IDs for acknowledging previously received
      +     * Optional. List of acknowledgment 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`.
      +     * a message more than once will not result in an error. If the acknowledgment
      +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
            * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1446,12 +1434,11 @@ public Builder clearAckIds() { * * *
      -     * Optional. List of acknowledgement IDs for acknowledging previously received
      +     * Optional. List of acknowledgment 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`.
      +     * a message more than once will not result in an error. If the acknowledgment
      +     * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
            * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1700,7 +1687,7 @@ private void ensureModifyDeadlineAckIdsIsMutable() { * * *
      -     * Optional. List of acknowledgement IDs whose deadline will be modified based
      +     * Optional. List of acknowledgment 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
      @@ -1721,7 +1708,7 @@ public com.google.protobuf.ProtocolStringList getModifyDeadlineAckIdsList() {
            *
            *
            * 
      -     * Optional. List of acknowledgement IDs whose deadline will be modified based
      +     * Optional. List of acknowledgment 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
      @@ -1741,7 +1728,7 @@ public int getModifyDeadlineAckIdsCount() {
            *
            *
            * 
      -     * Optional. List of acknowledgement IDs whose deadline will be modified based
      +     * Optional. List of acknowledgment 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
      @@ -1762,7 +1749,7 @@ public java.lang.String getModifyDeadlineAckIds(int index) {
            *
            *
            * 
      -     * Optional. List of acknowledgement IDs whose deadline will be modified based
      +     * Optional. List of acknowledgment 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
      @@ -1783,7 +1770,7 @@ public com.google.protobuf.ByteString getModifyDeadlineAckIdsBytes(int index) {
            *
            *
            * 
      -     * Optional. List of acknowledgement IDs whose deadline will be modified based
      +     * Optional. List of acknowledgment 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
      @@ -1812,7 +1799,7 @@ public Builder setModifyDeadlineAckIds(int index, java.lang.String value) {
            *
            *
            * 
      -     * Optional. List of acknowledgement IDs whose deadline will be modified based
      +     * Optional. List of acknowledgment 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
      @@ -1840,7 +1827,7 @@ public Builder addModifyDeadlineAckIds(java.lang.String value) {
            *
            *
            * 
      -     * Optional. List of acknowledgement IDs whose deadline will be modified based
      +     * Optional. List of acknowledgment 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
      @@ -1865,7 +1852,7 @@ public Builder addAllModifyDeadlineAckIds(java.lang.Iterable v
            *
            *
            * 
      -     * Optional. List of acknowledgement IDs whose deadline will be modified based
      +     * Optional. List of acknowledgment 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
      @@ -1889,7 +1876,7 @@ public Builder clearModifyDeadlineAckIds() {
            *
            *
            * 
      -     * Optional. List of acknowledgement IDs whose deadline will be modified based
      +     * Optional. List of acknowledgment 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
      diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
      index 675fc7532dbf..0af7d5da6073 100644
      --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
      +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java
      @@ -64,12 +64,11 @@ public interface StreamingPullRequestOrBuilder
          *
          *
          * 
      -   * Optional. List of acknowledgement IDs for acknowledging previously received
      +   * Optional. List of acknowledgment 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`.
      +   * a message more than once will not result in an error. If the acknowledgment
      +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -82,12 +81,11 @@ public interface StreamingPullRequestOrBuilder * * *
      -   * Optional. List of acknowledgement IDs for acknowledging previously received
      +   * Optional. List of acknowledgment 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`.
      +   * a message more than once will not result in an error. If the acknowledgment
      +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -100,12 +98,11 @@ public interface StreamingPullRequestOrBuilder * * *
      -   * Optional. List of acknowledgement IDs for acknowledging previously received
      +   * Optional. List of acknowledgment 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`.
      +   * a message more than once will not result in an error. If the acknowledgment
      +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -119,12 +116,11 @@ public interface StreamingPullRequestOrBuilder * * *
      -   * Optional. List of acknowledgement IDs for acknowledging previously received
      +   * Optional. List of acknowledgment 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`.
      +   * a message more than once will not result in an error. If the acknowledgment
      +   * ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`.
          * 
      * * repeated string ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -211,7 +207,7 @@ public interface StreamingPullRequestOrBuilder * * *
      -   * Optional. List of acknowledgement IDs whose deadline will be modified based
      +   * Optional. List of acknowledgment 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
      @@ -229,7 +225,7 @@ public interface StreamingPullRequestOrBuilder
          *
          *
          * 
      -   * Optional. List of acknowledgement IDs whose deadline will be modified based
      +   * Optional. List of acknowledgment 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
      @@ -247,7 +243,7 @@ public interface StreamingPullRequestOrBuilder
          *
          *
          * 
      -   * Optional. List of acknowledgement IDs whose deadline will be modified based
      +   * Optional. List of acknowledgment 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
      @@ -266,7 +262,7 @@ public interface StreamingPullRequestOrBuilder
          *
          *
          * 
      -   * Optional. List of acknowledgement IDs whose deadline will be modified based
      +   * Optional. List of acknowledgment 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
      diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
      index 229d1456fe15..2d7aac604e9e 100644
      --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
      +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java
      @@ -74,7 +74,7 @@ public interface AcknowledgeConfirmationOrBuilder
            *
            *
            * 
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -87,7 +87,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -100,7 +100,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -114,7 +114,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -128,8 +128,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -142,8 +142,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -156,8 +156,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -171,8 +171,8 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -186,7 +186,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were out of order.
      +     * Optional. List of acknowledgment IDs that were out of order.
            * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -199,7 +199,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were out of order.
      +     * Optional. List of acknowledgment IDs that were out of order.
            * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -212,7 +212,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were out of order.
      +     * Optional. List of acknowledgment IDs that were out of order.
            * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -226,7 +226,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were out of order.
      +     * Optional. List of acknowledgment IDs that were out of order.
            * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -240,7 +240,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -255,7 +255,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -270,7 +270,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -286,7 +286,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -303,7 +303,7 @@ public interface AcknowledgeConfirmationOrBuilder * * *
      -   * Acknowledgement IDs sent in one or more previous requests to acknowledge a
      +   * Acknowledgment IDs sent in one or more previous requests to acknowledge a
          * previously received message.
          * 
      * @@ -358,7 +358,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -373,7 +373,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -388,7 +388,7 @@ public int getAckIdsCount() { * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -404,7 +404,7 @@ public java.lang.String getAckIds(int index) { * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -426,8 +426,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -442,8 +442,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -458,8 +458,8 @@ public int getInvalidAckIdsCount() { * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -475,8 +475,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -498,7 +498,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
      -     * Optional. List of acknowledgement IDs that were out of order.
      +     * Optional. List of acknowledgment IDs that were out of order.
            * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -513,7 +513,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * * *
      -     * Optional. List of acknowledgement IDs that were out of order.
      +     * Optional. List of acknowledgment IDs that were out of order.
            * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -528,7 +528,7 @@ public int getUnorderedAckIdsCount() { * * *
      -     * Optional. List of acknowledgement IDs that were out of order.
      +     * Optional. List of acknowledgment IDs that were out of order.
            * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -544,7 +544,7 @@ public java.lang.String getUnorderedAckIds(int index) { * * *
      -     * Optional. List of acknowledgement IDs that were out of order.
      +     * Optional. List of acknowledgment IDs that were out of order.
            * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -566,7 +566,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -583,7 +583,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -600,7 +600,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -618,7 +618,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -856,7 +856,7 @@ protected Builder newBuilderForType( * * *
      -     * Acknowledgement IDs sent in one or more previous requests to acknowledge a
      +     * Acknowledgment IDs sent in one or more previous requests to acknowledge a
            * previously received message.
            * 
      * @@ -1133,7 +1133,7 @@ private void ensureAckIdsIsMutable() { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1149,7 +1149,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1164,7 +1164,7 @@ public int getAckIdsCount() { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1180,7 +1180,7 @@ public java.lang.String getAckIds(int index) { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1196,7 +1196,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1220,7 +1220,7 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1243,7 +1243,7 @@ public Builder addAckIds(java.lang.String value) { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1263,7 +1263,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1282,7 +1282,7 @@ public Builder clearAckIds() { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1316,8 +1316,8 @@ private void ensureInvalidAckIdsIsMutable() { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1333,8 +1333,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1349,8 +1349,8 @@ public int getInvalidAckIdsCount() { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1366,8 +1366,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1383,8 +1383,8 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1408,8 +1408,8 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1432,8 +1432,8 @@ public Builder addInvalidAckIds(java.lang.String value) { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1453,8 +1453,8 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1473,8 +1473,8 @@ public Builder clearInvalidAckIds() { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1508,7 +1508,7 @@ private void ensureUnorderedAckIdsIsMutable() { * * *
      -       * Optional. List of acknowledgement IDs that were out of order.
      +       * Optional. List of acknowledgment IDs that were out of order.
              * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1525,7 +1525,7 @@ public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() { * * *
      -       * Optional. List of acknowledgement IDs that were out of order.
      +       * Optional. List of acknowledgment IDs that were out of order.
              * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1541,7 +1541,7 @@ public int getUnorderedAckIdsCount() { * * *
      -       * Optional. List of acknowledgement IDs that were out of order.
      +       * Optional. List of acknowledgment IDs that were out of order.
              * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1558,7 +1558,7 @@ public java.lang.String getUnorderedAckIds(int index) { * * *
      -       * Optional. List of acknowledgement IDs that were out of order.
      +       * Optional. List of acknowledgment IDs that were out of order.
              * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1575,7 +1575,7 @@ public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) { * * *
      -       * Optional. List of acknowledgement IDs that were out of order.
      +       * Optional. List of acknowledgment IDs that were out of order.
              * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1600,7 +1600,7 @@ public Builder setUnorderedAckIds(int index, java.lang.String value) { * * *
      -       * Optional. List of acknowledgement IDs that were out of order.
      +       * Optional. List of acknowledgment IDs that were out of order.
              * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1624,7 +1624,7 @@ public Builder addUnorderedAckIds(java.lang.String value) { * * *
      -       * Optional. List of acknowledgement IDs that were out of order.
      +       * Optional. List of acknowledgment IDs that were out of order.
              * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1645,7 +1645,7 @@ public Builder addAllUnorderedAckIds(java.lang.Iterable values * * *
      -       * Optional. List of acknowledgement IDs that were out of order.
      +       * Optional. List of acknowledgment IDs that were out of order.
              * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1665,7 +1665,7 @@ public Builder clearUnorderedAckIds() { * * *
      -       * Optional. List of acknowledgement IDs that were out of order.
      +       * Optional. List of acknowledgment IDs that were out of order.
              * 
      * * repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1701,7 +1701,7 @@ private void ensureTemporaryFailedAckIdsIsMutable() { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -1720,7 +1720,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -1738,7 +1738,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -1757,7 +1757,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -1776,7 +1776,7 @@ public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -1803,7 +1803,7 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -1829,7 +1829,7 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -1852,7 +1852,7 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -1874,7 +1874,7 @@ public Builder clearTemporaryFailedAckIds() { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -1973,7 +1973,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1986,7 +1986,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1999,7 +1999,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2013,7 +2013,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2027,8 +2027,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2041,8 +2041,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2055,8 +2055,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2070,8 +2070,8 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2085,7 +2085,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -2100,7 +2100,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -2115,7 +2115,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -2131,7 +2131,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -2148,7 +2148,7 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * * *
      -   * Acknowledgement IDs sent in one or more previous requests to modify the
      +   * Acknowledgment IDs sent in one or more previous requests to modify the
          * deadline for a specific message.
          * 
      * @@ -2205,7 +2205,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2220,7 +2220,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2235,7 +2235,7 @@ public int getAckIdsCount() { * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2251,7 +2251,7 @@ public java.lang.String getAckIds(int index) { * * *
      -     * Optional. Successfully processed acknowledgement IDs.
      +     * Optional. Successfully processed acknowledgment IDs.
            * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2273,8 +2273,8 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2289,8 +2289,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2305,8 +2305,8 @@ public int getInvalidAckIdsCount() { * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2322,8 +2322,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
      -     * Optional. List of acknowledgement IDs that were malformed or whose
      -     * acknowledgement deadline has expired.
      +     * Optional. List of acknowledgment IDs that were malformed or whose
      +     * acknowledgment deadline has expired.
            * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2345,7 +2345,7 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -2362,7 +2362,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -2379,7 +2379,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -2397,7 +2397,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
      -     * Optional. List of acknowledgement IDs that failed processing with
      +     * Optional. List of acknowledgment IDs that failed processing with
            * temporary issues.
            * 
      * @@ -2625,7 +2625,7 @@ protected Builder newBuilderForType( * * *
      -     * Acknowledgement IDs sent in one or more previous requests to modify the
      +     * Acknowledgment IDs sent in one or more previous requests to modify the
            * deadline for a specific message.
            * 
      * @@ -2884,7 +2884,7 @@ private void ensureAckIdsIsMutable() { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2900,7 +2900,7 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2915,7 +2915,7 @@ public int getAckIdsCount() { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2931,7 +2931,7 @@ public java.lang.String getAckIds(int index) { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2947,7 +2947,7 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2971,7 +2971,7 @@ public Builder setAckIds(int index, java.lang.String value) { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -2994,7 +2994,7 @@ public Builder addAckIds(java.lang.String value) { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3014,7 +3014,7 @@ public Builder addAllAckIds(java.lang.Iterable values) { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3033,7 +3033,7 @@ public Builder clearAckIds() { * * *
      -       * Optional. Successfully processed acknowledgement IDs.
      +       * Optional. Successfully processed acknowledgment IDs.
              * 
      * * repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -3067,8 +3067,8 @@ private void ensureInvalidAckIdsIsMutable() { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3084,8 +3084,8 @@ public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3100,8 +3100,8 @@ public int getInvalidAckIdsCount() { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3117,8 +3117,8 @@ public java.lang.String getInvalidAckIds(int index) { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3134,8 +3134,8 @@ public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3159,8 +3159,8 @@ public Builder setInvalidAckIds(int index, java.lang.String value) { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3183,8 +3183,8 @@ public Builder addInvalidAckIds(java.lang.String value) { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3204,8 +3204,8 @@ public Builder addAllInvalidAckIds(java.lang.Iterable values) * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3224,8 +3224,8 @@ public Builder clearInvalidAckIds() { * * *
      -       * Optional. List of acknowledgement IDs that were malformed or whose
      -       * acknowledgement deadline has expired.
      +       * Optional. List of acknowledgment IDs that were malformed or whose
      +       * acknowledgment deadline has expired.
              * 
      * * repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -3260,7 +3260,7 @@ private void ensureTemporaryFailedAckIdsIsMutable() { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -3279,7 +3279,7 @@ public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -3297,7 +3297,7 @@ public int getTemporaryFailedAckIdsCount() { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -3316,7 +3316,7 @@ public java.lang.String getTemporaryFailedAckIds(int index) { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -3335,7 +3335,7 @@ public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -3362,7 +3362,7 @@ public Builder setTemporaryFailedAckIds(int index, java.lang.String value) { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -3388,7 +3388,7 @@ public Builder addTemporaryFailedAckIds(java.lang.String value) { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -3411,7 +3411,7 @@ public Builder addAllTemporaryFailedAckIds(java.lang.Iterable * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * @@ -3433,7 +3433,7 @@ public Builder clearTemporaryFailedAckIds() { * * *
      -       * Optional. List of acknowledgement IDs that failed processing with
      +       * Optional. List of acknowledgment IDs that failed processing with
              * temporary issues.
              * 
      * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index fb8d9a7167f1..ea54863d8abd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1960,8 +1960,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -1984,8 +1984,8 @@ public boolean hasRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -2010,8 +2010,8 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -2060,7 +2060,7 @@ public boolean getDetached() { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message @@ -5631,8 +5631,8 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -5654,8 +5654,8 @@ public boolean hasRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -5683,8 +5683,8 @@ public com.google.pubsub.v1.RetryPolicy getRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -5714,8 +5714,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -5742,8 +5742,8 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -5778,8 +5778,8 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -5806,8 +5806,8 @@ public Builder clearRetryPolicy() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -5829,8 +5829,8 @@ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -5856,8 +5856,8 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -5960,7 +5960,7 @@ public Builder clearDetached() { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message @@ -5988,7 +5988,7 @@ public boolean getEnableExactlyOnceDelivery() { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message @@ -6020,7 +6020,7 @@ public Builder setEnableExactlyOnceDelivery(boolean value) { * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 6723327cea8b..da905d00c5f9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -586,8 +586,8 @@ java.lang.String getLabelsOrDefault( * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -607,8 +607,8 @@ java.lang.String getLabelsOrDefault( * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -628,8 +628,8 @@ java.lang.String getLabelsOrDefault( * * If not set, the default retry policy is applied. This generally implies * that messages will be retried as soon as possible for healthy subscribers. - * RetryPolicy will be triggered on NACKs or acknowledgement deadline - * exceeded events for a given message. + * RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + * events for a given message. *
      * * @@ -664,7 +664,7 @@ java.lang.String getLabelsOrDefault( * subscription: * * * The message sent to a subscriber is guaranteed not to be resent - * before the message's acknowledgement deadline expires. + * before the message's acknowledgment deadline expires. * * An acknowledged message will not be resent to a subscriber. * * Note that subscribers may still receive multiple copies of a message diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 516b7faef67d..2792133a4eaa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -549,6 +549,10 @@ message IngestionFailureEvent { // occurs, one or more Avro objects won't be ingested. message AvroFailureReason {} + // Set when a Pub/Sub message fails to get published due to a schema + // validation violation. + message SchemaViolationReason {} + // Failure when ingesting from a Cloud Storage source. message CloudStorageFailure { // Optional. Name of the Cloud Storage bucket used for ingestion. @@ -572,6 +576,10 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 7 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -596,6 +604,10 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -620,6 +632,10 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -644,6 +660,29 @@ message IngestionFailureEvent { // being published. ApiViolationReason api_violation_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + } + + // Failure when ingesting from an AWS Kinesis source. + message AwsKinesisFailureReason { + // Optional. The stream ARN of the Kinesis stream being ingested from. + string stream_arn = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The partition key of the message that failed to be ingested. + string partition_key = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sequence number of the message that failed to be ingested. + string sequence_number = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Reason why ingestion failed for the specified message. + oneof reason { + // Optional. The Pub/Sub message failed schema validation. + SchemaViolationReason schema_violation_reason = 4 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -670,6 +709,10 @@ message IngestionFailureEvent { // Optional. Failure when ingesting from Confluent Cloud. ConfluentCloudFailureReason confluent_cloud_failure = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure when ingesting from AWS Kinesis. + AwsKinesisFailureReason aws_kinesis_failure = 7 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -1128,7 +1171,7 @@ service Subscriber { } // Establishes a stream with the server, which sends messages down to the - // client. The client streams acknowledgements and ack deadline modifications + // client. The client streams acknowledgments 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 @@ -1394,8 +1437,8 @@ message Subscription { // // If not set, the default retry policy is applied. This generally implies // that messages will be retried as soon as possible for healthy subscribers. - // RetryPolicy will be triggered on NACKs or acknowledgement deadline - // exceeded events for a given message. + // RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded + // events for a given message. RetryPolicy retry_policy = 14 [(google.api.field_behavior) = OPTIONAL]; // Optional. Indicates whether the subscription is detached from its topic. @@ -1410,7 +1453,7 @@ message Subscription { // subscription: // // * The message sent to a subscriber is guaranteed not to be resent - // before the message's acknowledgement deadline expires. + // before the message's acknowledgment deadline expires. // * An acknowledged message will not be resent to a subscriber. // // Note that subscribers may still receive multiple copies of a message @@ -1449,7 +1492,7 @@ message Subscription { // Retry delay will be exponential based on provided minimum and maximum // backoffs. https://en.wikipedia.org/wiki/Exponential_backoff. // -// RetryPolicy will be triggered on NACKs or acknowledgement deadline exceeded +// RetryPolicy will be triggered on NACKs or acknowledgment deadline exceeded // events for a given message. // // Retry Policy is implemented on a best effort basis. At times, the delay @@ -1489,7 +1532,7 @@ message DeadLetterPolicy { // value must be between 5 and 100. // // The number of delivery attempts is defined as 1 + (the sum of number of - // NACKs and number of times the acknowledgement deadline has been exceeded + // NACKs and number of times the acknowledgment deadline has been exceeded // for the message). // // A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that @@ -1751,7 +1794,7 @@ message CloudStorageConfig { // Optional. The maximum duration that can elapse before a new Cloud Storage // file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not - // exceed the subscription's acknowledgement deadline. + // exceed the subscription's acknowledgment deadline. google.protobuf.Duration max_duration = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -1973,7 +2016,7 @@ message AcknowledgeRequest { } // Request for the `StreamingPull` streaming RPC method. This request is used to -// establish the initial stream as well as to stream acknowledgements and ack +// establish the initial stream as well as to stream acknowledgments and ack // deadline modifications from the client to the server. message StreamingPullRequest { // Required. The subscription for which to initialize the new stream. This @@ -1987,12 +2030,11 @@ message StreamingPullRequest { } ]; - // Optional. List of acknowledgement IDs for acknowledging previously received + // Optional. List of acknowledgment 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`. + // a message more than once will not result in an error. If the acknowledgment + // ID is malformed, the stream will be aborted with status `INVALID_ARGUMENT`. repeated string ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The list of new ack deadlines for the IDs listed in @@ -2009,7 +2051,7 @@ message StreamingPullRequest { repeated int32 modify_deadline_seconds = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs whose deadline will be modified based + // Optional. List of acknowledgment 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 @@ -2058,39 +2100,39 @@ message StreamingPullRequest { // Response for the `StreamingPull` method. This response is used to stream // messages from the server to the client. message StreamingPullResponse { - // Acknowledgement IDs sent in one or more previous requests to acknowledge a + // Acknowledgment IDs sent in one or more previous requests to acknowledge a // previously received message. message AcknowledgeConfirmation { - // Optional. Successfully processed acknowledgement IDs. + // Optional. Successfully processed acknowledgment IDs. repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that were malformed or whose - // acknowledgement deadline has expired. + // Optional. List of acknowledgment IDs that were malformed or whose + // acknowledgment deadline has expired. repeated string invalid_ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that were out of order. + // Optional. List of acknowledgment IDs that were out of order. repeated string unordered_ack_ids = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that failed processing with + // Optional. List of acknowledgment IDs that failed processing with // temporary issues. repeated string temporary_failed_ack_ids = 4 [(google.api.field_behavior) = OPTIONAL]; } - // Acknowledgement IDs sent in one or more previous requests to modify the + // Acknowledgment IDs sent in one or more previous requests to modify the // deadline for a specific message. message ModifyAckDeadlineConfirmation { - // Optional. Successfully processed acknowledgement IDs. + // Optional. Successfully processed acknowledgment IDs. repeated string ack_ids = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that were malformed or whose - // acknowledgement deadline has expired. + // Optional. List of acknowledgment IDs that were malformed or whose + // acknowledgment deadline has expired. repeated string invalid_ack_ids = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of acknowledgement IDs that failed processing with + // Optional. List of acknowledgment IDs that failed processing with // temporary issues. repeated string temporary_failed_ack_ids = 3 [(google.api.field_behavior) = OPTIONAL]; From bc8c696d65d59196a33bd0b49cae4f4110b70633 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 22 May 2025 14:37:57 -0400 Subject: [PATCH 2134/2363] docs(sample): Update the subscribe with error listener and subscribe with exactly-once samples (#2437) * docs(sample): Update SubscribeWithErrorListener sample to not rebuild the subscriber * docs(sample): Add locational endpoint for exactly-once subscriber sample * docs(sample): Add comment explaining reasoning for locational endpoint --- .../java/pubsub/SubscribeWithErrorListenerExample.java | 8 ++------ ...scribeWithExactlyOnceConsumerWithResponseExample.java | 9 ++++++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java index a03c867a80be..1e17afe684c8 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java @@ -62,15 +62,11 @@ public static void subscribeWithErrorListenerExample(String projectId, String su .setExecutorProvider(executorProvider) .build(); - // Listen for unrecoverable failures. Rebuild a subscriber and restart subscribing - // when the current subscriber encounters permanent errors. + // Listen for unrecoverable failures. subscriber.addListener( new Subscriber.Listener() { public void failed(Subscriber.State from, Throwable failure) { - System.out.println(failure.getStackTrace()); - if (!executorProvider.getExecutor().isShutdown()) { - subscribeWithErrorListenerExample(projectId, subscriptionId); - } + System.out.println("Unrecoverable subscriber failure:" + failure.getStackTrace()); } }, MoreExecutors.directExecutor()); diff --git a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java index 8c85364c058c..cf5ed324833e 100644 --- a/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java +++ b/java-pubsub/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java @@ -95,7 +95,14 @@ public static void subscribeWithExactlyOnceConsumerWithResponseExample( Subscriber subscriber = null; try { - subscriber = Subscriber.newBuilder(subscriptionName, receiverWithResponse).build(); + // Pub/Sub's exactly once delivery guarantee only applies when subscribers connect to the + // service in the same region. + // For list of locational endpoints for Pub/Sub, see + // https://cloud.google.com/pubsub/docs/reference/service_apis_overview#list_of_locational_endpoints + subscriber = + Subscriber.newBuilder(subscriptionName, receiverWithResponse) + .setEndpoint("us-west1-pubsub.googleapis.com:443") + .build(); // Start the subscriber. subscriber.startAsync().awaitRunning(); System.out.printf("Listening for messages on %s:\n", subscriptionName.toString()); From 717cb38bdee1b1119ba872dfad0891c6ba24af0e Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 27 May 2025 10:52:13 -0400 Subject: [PATCH 2135/2363] chore: Update generation configuration at Tue May 27 02:33:50 UTC 2025 (#2439) * chore: Update generation configuration at Fri May 23 02:33:50 UTC 2025 * chore: Update generation configuration at Sat May 24 02:32:02 UTC 2025 * chore: generate libraries at Sat May 24 02:32:35 UTC 2025 * chore: Update generation configuration at Tue May 27 02:33:50 UTC 2025 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index fe7b35eeeb22..a7c519706609 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.60.0') +implementation platform('com.google.cloud:libraries-bom:26.61.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 4e87f268b244..3b45141a7132 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.58.0 -googleapis_commitish: 488c8cc0d41aca4b4f33748ab6166129edcfd836 -libraries_bom_version: 26.60.0 +googleapis_commitish: 9bed6f077867e387960082891ec0e1b8bb254a47 +libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 732aef909363f65ec72599bda42bfa506483706f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 May 2025 17:35:52 +0200 Subject: [PATCH 2136/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.61.0 (#2438) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 414e4c7039ff..5a6844896072 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.60.0 + 26.61.0 pom import From 3f21786df7c78c85b07661447914a97bb646f2b1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 2 Jun 2025 21:37:01 +0200 Subject: [PATCH 2137/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 (#2444) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 704e6180703d..8d8e12cb11fe 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.48.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.49.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index d72ed3f0e3b0..5cc939cf9090 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index f2e296b84759..fd00159184a1 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 68512fbff55c..424494b02e02 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1edcb15cb991..cd49eff83827 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.48.0 + 3.49.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 92ec4902e090..4f1cd065b4a3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.48.0 + 3.49.0 From a4ccf1afeecbe1e682abe9c98a54332b0fdd1794 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 3 Jun 2025 20:09:28 +0200 Subject: [PATCH 2138/2363] deps: update googleapis/sdk-platform-java action to v2.59.0 (#2445) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 336ac2c8cab6..c01f3faec3af 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.58.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 4ee446454ec6969e1f12ceb86240b12607124ff3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 14:10:04 -0400 Subject: [PATCH 2139/2363] chore(main): release 1.139.5-SNAPSHOT (#2433) * chore(main): release 1.139.5-SNAPSHOT * chore: generate libraries at Mon Jun 2 19:45:44 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 5cc939cf9090..d72ed3f0e3b0 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index fd00159184a1..f2e296b84759 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 424494b02e02..68512fbff55c 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a7c519706609..b023a93a6991 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.60.0 + 26.61.0 pom import diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index cd49eff83827..07209107869b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.4 + 1.139.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index dd5fe6a55494..680e89219b02 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.4 + 1.139.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c44258fb180d..287e0afb66d9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4f1cd065b4a3..0700ea85cafd 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.4 + 1.139.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0586560ae2ef..86de777c69e7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.4 + 1.121.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ca7eae922a1e..4a254d46b697 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.4 + 1.139.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 891e99e9b4f8..a05e9f2286e6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.4:1.139.4 -grpc-google-cloud-pubsub-v1:1.121.4:1.121.4 -proto-google-cloud-pubsub-v1:1.121.4:1.121.4 +google-cloud-pubsub:1.139.4:1.139.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT From 7545824e61176c58287c369680b07edfe543f79b Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 3 Jun 2025 14:10:54 -0400 Subject: [PATCH 2140/2363] chore: Update generation configuration at Tue Jun 3 02:34:37 UTC 2025 (#2441) * chore: Update generation configuration at Wed May 28 02:34:10 UTC 2025 * chore: generate libraries at Wed May 28 02:34:40 UTC 2025 * chore: Update generation configuration at Thu May 29 02:34:15 UTC 2025 * chore: Update generation configuration at Sat May 31 02:32:59 UTC 2025 * chore: Update generation configuration at Sun Jun 1 02:46:12 UTC 2025 * chore: Update generation configuration at Tue Jun 3 02:34:37 UTC 2025 * chore: generate libraries at Tue Jun 3 02:35:10 UTC 2025 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 3b45141a7132..3c12b87050e8 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.58.0 -googleapis_commitish: 9bed6f077867e387960082891ec0e1b8bb254a47 +googleapis_commitish: 5e49af896d45b0a0aa06de04354db58c05c79aca libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From 8ea9d93da1b9af8b9c0cbcbf7d6193ed1e90675b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 3 Jun 2025 20:30:26 +0200 Subject: [PATCH 2141/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 (#2446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:sdk-platform-java-config](https://redirect.github.com/googleapis/java-shared-config) | `3.48.0` -> `3.49.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:sdk-platform-java-config/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:sdk-platform-java-config/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:sdk-platform-java-config/3.48.0/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:sdk-platform-java-config/3.48.0/3.49.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index d72ed3f0e3b0..5cc939cf9090 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index f2e296b84759..fd00159184a1 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 68512fbff55c..424494b02e02 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { From 174c0349f19c202022f91b609e37e67e1e500e45 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 21:02:24 +0000 Subject: [PATCH 2142/2363] chore(main): release 1.140.0 (#2447) :robot: I have created a release *beep* *boop* --- ## [1.140.0](https://togithub.com/googleapis/java-pubsub/compare/v1.139.4...v1.140.0) (2025-06-03) ### Features * Add SchemaViolationReason to IngestionFailureEvent ([0b671f4](https://togithub.com/googleapis/java-pubsub/commit/0b671f423f454cbf200a39bc60aea2e2cf74607d)) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.50.1 ([#2435](https://togithub.com/googleapis/java-pubsub/issues/2435)) ([fb40c61](https://togithub.com/googleapis/java-pubsub/commit/fb40c61310f1d9895c6fa881b8fc601d7b7ae1b7)) * Update dependency com.google.cloud:google-cloud-storage to v2.52.3 ([#2436](https://togithub.com/googleapis/java-pubsub/issues/2436)) ([6555801](https://togithub.com/googleapis/java-pubsub/commit/6555801527273742c6b26c0da8a5590bd8083a6f)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2444](https://togithub.com/googleapis/java-pubsub/issues/2444)) ([3f21786](https://togithub.com/googleapis/java-pubsub/commit/3f21786df7c78c85b07661447914a97bb646f2b1)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2446](https://togithub.com/googleapis/java-pubsub/issues/2446)) ([8ea9d93](https://togithub.com/googleapis/java-pubsub/commit/8ea9d93da1b9af8b9c0cbcbf7d6193ed1e90675b)) * Update dependency com.google.protobuf:protobuf-java-util to v4.31.0 ([#2430](https://togithub.com/googleapis/java-pubsub/issues/2430)) ([325493d](https://togithub.com/googleapis/java-pubsub/commit/325493d850cd1258d1b300f6d9b04023c164f966)) * Update googleapis/sdk-platform-java action to v2.59.0 ([#2445](https://togithub.com/googleapis/java-pubsub/issues/2445)) ([a4ccf1a](https://togithub.com/googleapis/java-pubsub/commit/a4ccf1afeecbe1e682abe9c98a54332b0fdd1794)) ### Documentation * **sample:** Update the subscribe with error listener and subscribe with exactly-once samples ([#2437](https://togithub.com/googleapis/java-pubsub/issues/2437)) ([bc8c696](https://togithub.com/googleapis/java-pubsub/commit/bc8c696d65d59196a33bd0b49cae4f4110b70633)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- .../.kokoro/presubmit/graalvm-native-a.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-b.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/CHANGELOG.md | 22 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 12 files changed, 46 insertions(+), 24 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 5cc939cf9090..d72ed3f0e3b0 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index fd00159184a1..f2e296b84759 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 424494b02e02..68512fbff55c 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 6657c106573f..519bd13961be 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [1.140.0](https://github.com/googleapis/java-pubsub/compare/v1.139.4...v1.140.0) (2025-06-03) + + +### Features + +* Add SchemaViolationReason to IngestionFailureEvent ([21cc376](https://github.com/googleapis/java-pubsub/commit/21cc3764aaa6fc05eb4a5078a72dae30694fba91)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.50.1 ([#2435](https://github.com/googleapis/java-pubsub/issues/2435)) ([b37c557](https://github.com/googleapis/java-pubsub/commit/b37c5573e1d0d7eada4ce4ec6a052521ea11cff1)) +* Update dependency com.google.cloud:google-cloud-storage to v2.52.3 ([#2436](https://github.com/googleapis/java-pubsub/issues/2436)) ([4f309d1](https://github.com/googleapis/java-pubsub/commit/4f309d151d4bd584a33a0bb8882d0614a1b9d533)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2444](https://github.com/googleapis/java-pubsub/issues/2444)) ([a59135c](https://github.com/googleapis/java-pubsub/commit/a59135c6859d0aa5c247a6a1f60872c959123cc7)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2446](https://github.com/googleapis/java-pubsub/issues/2446)) ([6434be1](https://github.com/googleapis/java-pubsub/commit/6434be16560fdc8797b7c930b06df38c0972c96c)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.31.0 ([#2430](https://github.com/googleapis/java-pubsub/issues/2430)) ([232fac1](https://github.com/googleapis/java-pubsub/commit/232fac1c47e0d3680dcc8d56b69d65ed0d379dde)) +* Update googleapis/sdk-platform-java action to v2.59.0 ([#2445](https://github.com/googleapis/java-pubsub/issues/2445)) ([12d4cfb](https://github.com/googleapis/java-pubsub/commit/12d4cfb7d67dbb163b3a545ea2ebae450e88283d)) + + +### Documentation + +* **sample:** Update the subscribe with error listener and subscribe with exactly-once samples ([#2437](https://github.com/googleapis/java-pubsub/issues/2437)) ([17c142b](https://github.com/googleapis/java-pubsub/commit/17c142b20efb79f9c71fc6306cb3ee4e15c5e06f)) + ## [1.139.4](https://github.com/googleapis/java-pubsub/compare/v1.139.3...v1.139.4) (2025-05-15) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b023a93a6991..93784c26075d 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.139.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.140.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.139.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.139.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 07209107869b..526ebcb86a55 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.139.5-SNAPSHOT + 1.140.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 680e89219b02..d3b6571fa9af 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.139.5-SNAPSHOT + 1.140.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 287e0afb66d9..4ccc3ff567f3 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0700ea85cafd..df246878898c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.139.5-SNAPSHOT + 1.140.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 86de777c69e7..954dc1f81ee0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.121.5-SNAPSHOT + 1.122.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4a254d46b697..2daaae281a78 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.139.5-SNAPSHOT + 1.140.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index a05e9f2286e6..bd172824c699 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.139.4:1.139.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.121.4:1.121.5-SNAPSHOT +google-cloud-pubsub:1.140.0:1.140.0 +grpc-google-cloud-pubsub-v1:1.122.0:1.122.0 +proto-google-cloud-pubsub-v1:1.122.0:1.122.0 From f12a21831ab99ae59c366bb9d6f10926cf765670 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:52:31 +0000 Subject: [PATCH 2143/2363] chore(main): release 1.140.1-SNAPSHOT (#2449) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 526ebcb86a55..49c2b097049b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.0 + 1.140.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.0 + 1.140.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d3b6571fa9af..2e0e8a28a47f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.0 + 1.140.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.0 + 1.140.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 4ccc3ff567f3..4e65b4f2e44a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.0 + 1.140.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index df246878898c..92b58edab335 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.0 + 1.140.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.140.0 + 1.140.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 954dc1f81ee0..62bc2174498a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.0 + 1.122.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.0 + 1.140.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2daaae281a78..a137a0fac98d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.0 + 1.140.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index bd172824c699..62eb596e5f6d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.0:1.140.0 -grpc-google-cloud-pubsub-v1:1.122.0:1.122.0 -proto-google-cloud-pubsub-v1:1.122.0:1.122.0 +google-cloud-pubsub:1.140.0:1.140.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.122.0:1.122.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.122.0:1.122.1-SNAPSHOT From db6b406466fda9b5fd9b449a65aa8703b806b111 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 5 Jun 2025 04:02:47 +0200 Subject: [PATCH 2144/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 (#2448) --- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index d72ed3f0e3b0..5cc939cf9090 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index f2e296b84759..fd00159184a1 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 68512fbff55c..424494b02e02 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.48.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { From be52cd0454045fe3e317cdb4a794e54579d4eb83 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 5 Jun 2025 16:17:04 -0400 Subject: [PATCH 2145/2363] chore: Update generation configuration at Thu Jun 5 02:34:31 UTC 2025 (#2451) * chore: Update generation configuration at Wed Jun 4 02:34:46 UTC 2025 * chore: generate libraries at Wed Jun 4 02:35:14 UTC 2025 * upgrade easymock to newest for jdk24 support. * Revert "upgrade easymock to newest for jdk24 support." This reverts commit 47aae6241d1de2c433b4401b145467c214d2cd04. * chore: Update generation configuration at Thu Jun 5 02:34:31 UTC 2025 --------- Co-authored-by: Min Zhu --- java-pubsub/.github/workflows/ci.yaml | 2 +- java-pubsub/generation_config.yaml | 4 ++-- .../com/google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../pubsub/v1/AcknowledgeRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/BigQueryConfig.java | 2 +- .../google/pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/CloudStorageConfig.java | 2 +- .../pubsub/v1/CloudStorageConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../pubsub/v1/CommitSchemaRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../pubsub/v1/CreateSchemaRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/CreateSnapshotRequest.java | 2 +- .../pubsub/v1/CreateSnapshotRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../google/pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../pubsub/v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSchemaRevisionRequest.java | 2 +- .../v1/DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeleteSnapshotRequest.java | 2 +- .../pubsub/v1/DeleteSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSubscriptionRequest.java | 2 +- .../v1/DeleteSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/DeleteTopicRequest.java | 2 +- .../pubsub/v1/DeleteTopicRequestOrBuilder.java | 2 +- .../google/pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../v1/DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../v1/DetachSubscriptionResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Encoding.java | 2 +- .../java/com/google/pubsub/v1/ExpirationPolicy.java | 2 +- .../google/pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/GetSchemaRequest.java | 2 +- .../google/pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/GetSnapshotRequest.java | 2 +- .../pubsub/v1/GetSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSubscriptionRequest.java | 2 +- .../pubsub/v1/GetSubscriptionRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/GetTopicRequest.java | 2 +- .../google/pubsub/v1/GetTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/IngestionDataSourceSettings.java | 2 +- .../v1/IngestionDataSourceSettingsOrBuilder.java | 2 +- .../com/google/pubsub/v1/IngestionFailureEvent.java | 2 +- .../pubsub/v1/IngestionFailureEventOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/JavaScriptUDF.java | 2 +- .../google/pubsub/v1/JavaScriptUDFOrBuilder.java | 2 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../v1/ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListSchemaRevisionsResponse.java | 2 +- .../v1/ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListSchemasRequest.java | 2 +- .../pubsub/v1/ListSchemasRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListSchemasResponse.java | 2 +- .../pubsub/v1/ListSchemasResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListSnapshotsRequest.java | 2 +- .../pubsub/v1/ListSnapshotsRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListSnapshotsResponse.java | 2 +- .../pubsub/v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSubscriptionsRequest.java | 2 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../v1/ListSubscriptionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../v1/ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../v1/ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSubscriptionsRequest.java | 2 +- .../v1/ListTopicSubscriptionsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSubscriptionsResponse.java | 2 +- .../v1/ListTopicSubscriptionsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicsRequest.java | 2 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/ListTopicsResponse.java | 2 +- .../pubsub/v1/ListTopicsResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/MessageStoragePolicy.java | 2 +- .../pubsub/v1/MessageStoragePolicyOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/MessageTransform.java | 2 +- .../google/pubsub/v1/MessageTransformOrBuilder.java | 2 +- .../google/pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../pubsub/v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/PlatformLogsSettings.java | 2 +- .../pubsub/v1/PlatformLogsSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PublishRequest.java | 2 +- .../google/pubsub/v1/PublishRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PublishResponse.java | 2 +- .../google/pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PubsubMessage.java | 2 +- .../google/pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/PubsubProto.java | 2 +- .../main/java/com/google/pubsub/v1/PullRequest.java | 2 +- .../com/google/pubsub/v1/PullRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PullResponse.java | 2 +- .../com/google/pubsub/v1/PullResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/PushConfig.java | 2 +- .../com/google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../google/pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/RetryPolicy.java | 2 +- .../com/google/pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../com/google/pubsub/v1/RollbackSchemaRequest.java | 2 +- .../pubsub/v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Schema.java | 2 +- .../java/com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/SchemaProto.java | 2 +- .../java/com/google/pubsub/v1/SchemaSettings.java | 2 +- .../google/pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/SchemaView.java | 2 +- .../main/java/com/google/pubsub/v1/SeekRequest.java | 2 +- .../com/google/pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SeekResponse.java | 2 +- .../com/google/pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../main/java/com/google/pubsub/v1/Snapshot.java | 2 +- .../com/google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../com/google/pubsub/v1/StreamingPullRequest.java | 2 +- .../pubsub/v1/StreamingPullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/StreamingPullResponse.java | 2 +- .../pubsub/v1/StreamingPullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Subscription.java | 2 +- .../com/google/pubsub/v1/SubscriptionOrBuilder.java | 2 +- .../src/main/java/com/google/pubsub/v1/Topic.java | 2 +- .../java/com/google/pubsub/v1/TopicOrBuilder.java | 2 +- .../com/google/pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../pubsub/v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../v1/UpdateSubscriptionRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../pubsub/v1/UpdateTopicRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateMessageRequest.java | 2 +- .../pubsub/v1/ValidateMessageRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateMessageResponse.java | 2 +- .../pubsub/v1/ValidateMessageResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/ValidateSchemaRequest.java | 2 +- .../pubsub/v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ValidateSchemaResponse.java | 2 +- .../pubsub/v1/ValidateSchemaResponseOrBuilder.java | 2 +- java-pubsub/renovate.json | 13 +------------ 139 files changed, 140 insertions(+), 151 deletions(-) diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 4dd9974f263f..10acf46ac7d7 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - java: [11, 17, 21] + java: [11, 17, 21, 24] steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 3c12b87050e8..0603f69af480 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.58.0 -googleapis_commitish: 5e49af896d45b0a0aa06de04354db58c05c79aca +gapic_generator_version: 2.59.0 +googleapis_commitish: de157ca34fa487ce248eb9130293d630b501e4ad libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 29832d367382..219fba089a9f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index ce9853a20cb0..db4488150e10 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface AcknowledgeRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index abe0d01d69e2..95239f904f08 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 6631b9625570..eaa9abaaa8c5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface BigQueryConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 601c178e638e..3f2ecd9dbdec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index d3bbad2428fa..207a691d7757 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface CloudStorageConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index 413633f6e56a..25d739ae3bbc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index de5fa4e7ff43..47dbb75e3e2f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface CommitSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index ddc3093a23a0..1f3ad6468e4e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index 09db02945337..37e0d388c7cc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface CreateSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index f6c92ab39cbf..079f3344b019 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 1993fcb4536b..25f5c59d12ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface CreateSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index eb42e460216b..b9b9f3a19dcf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 29f9d6536456..2978a0510f6b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeadLetterPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index c941b2ddc064..bd3f5758e416 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 833bb21c6dfd..6c37bc269839 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeleteSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index a890e0ba2aba..f0e5a1f76a2b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index 9c74f719827e..f3a1d7ea3a62 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeleteSchemaRevisionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 2a26c265de65..bc2fc7206db8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index c9c8a0192a59..192a33e82bf5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeleteSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 6e9a70a2e392..80800c659a2e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index b4c9d0fe83a1..2eb5138ee1c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeleteSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 1ff347e6ddc3..fafde03a2861 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 1eba5641a9fe..065d4a790873 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DeleteTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 3efea7ec1fd3..8e3a863ce1bc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 43b6725a5631..49afe024065e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DetachSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 9301cd215955..53c87d21df70 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 3765fe52532a..b9e42c7cdaed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface DetachSubscriptionResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 9ccc59dfee79..12f4a8105fce 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index cbcdfa760704..708cc8ceca71 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 13d40370bcfc..2ae8cef699eb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ExpirationPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 441892893018..8888f0179ba9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index f90f40032b3c..5b662fa6c4cc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface GetSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index f21acaa42345..401c8cd4c616 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 17f4fd93f0f1..a4728d85ad6f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface GetSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 1662b80d5a06..0553b1f91f29 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 7dde24ac7387..c51df2737cb4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface GetSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 245c8e678e06..e8e01add6e8e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 8a0092a6e5b9..e22bc60e3f41 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface GetTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index a5d102910a32..73f44578d31b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index 84ef926a974e..68377e256661 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface IngestionDataSourceSettingsOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index b423b901da5b..e678aa647ae1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index 762da6810513..c7ceeb108928 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface IngestionFailureEventOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java index d4ab92c91f06..e38b55f095c7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java index cb3ba0f4d989..c59c0fc1f655 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface JavaScriptUDFOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 4f7e414d83ba..cc48d7020a76 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 812a4bfffaaa..272eff598761 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSchemaRevisionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 5774b60a79c2..e7cf1c68b2ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 01008b7a9fc8..b899094e8b25 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSchemaRevisionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index bfc18011bea3..d58779ce28ab 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index b02a46248311..3a55412f2b3c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSchemasRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 0295fbf55914..fbf04d02be27 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 4074b7a2c395..0ccc17195f9f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSchemasResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index eb72cc74f07a..73672588ef48 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index ce1882a870ed..8fff6c2e5e06 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSnapshotsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 1f663f3bd0c6..30b4f8be522f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 34b81ac66533..209c12a8cab9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSnapshotsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index d3848c784ade..24fe6dae96a4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 5532ede62926..fedfd324d496 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSubscriptionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index c8a74e5d9206..27bd5f4209d8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index 253b956ad6e3..b28f6c50b086 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListSubscriptionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index 164ae38f78d8..ffb40874355e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index ef628af35ed1..9929a918f431 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicSnapshotsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 453f43f88479..4536d9f60c7d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 9a7e4a3a4733..4623e163f500 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicSnapshotsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 84af5e75c434..326990d9a637 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index c8338efee729..f783267cb4d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicSubscriptionsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index d712636ba570..7c17b9b01557 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index c39777756fd3..dcd6704273ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicSubscriptionsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 5e617e58173e..99b028c30c4e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 6c13f04400ad..b39fe3f1268b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicsRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 2747f09435e4..1a968a78b775 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index b1f27028ed4a..1cb84179a2ec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ListTopicsResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index af6d1f8b55a7..03c29b8091af 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 7036cb508424..eaebad923ffa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface MessageStoragePolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index 8d94f89b2299..adf9eb067732 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index aa3c6fd1461d..b70b613ece34 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface MessageTransformOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 2da1f0f7c10a..36c66e8e98c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 40d4bd277961..28da06beeebe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ModifyAckDeadlineRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index e45a2e6b620e..300fe08dd008 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index ac58d9a794af..55cd8ab49ada 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ModifyPushConfigRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java index 8d05cda1a26f..6252ee593ef5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java index 0e28b70ffd6f..967517e6883b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PlatformLogsSettingsOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 7c829056ddc9..9187ab532361 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 86816c3a1eb9..1718c594e372 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PublishRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index 82fdddcdcdeb..f1a59cbb6018 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index a25181e58340..6ae74fb82b0c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PublishResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 0a8c645d9797..ef9370d9ae62 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index aaa6bb857aae..da2d4b6e3a69 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PubsubMessageOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index deae19db653e..f60b3eab7636 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public final class PubsubProto { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index cdc16574f72c..a687600cc8f9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 8b2bd98a7fda..12a8c09bb588 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PullRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index e65fd1ebffa6..9c451fad3e63 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index d22ff6c8f857..3cdb5f54b39b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PullResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index fc509ebb9115..5a1b2985ffe5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 784239904503..77f4f69a1367 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface PushConfigOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index bf67f45dec5c..6d9320a05cc4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 186a843ca477..75d446b0dc72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ReceivedMessageOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index fa6ea9d518b4..f693b46a0ab4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 5df0c7f6bdea..1e52a739da38 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface RetryPolicyOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index cefb591a582f..23d85bd5f8d4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index ba89f7dbf277..03006247f89c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface RollbackSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 806544f74ad6..d597284076aa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 87d31f491cd0..4dd47945e479 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SchemaOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index b1879310ce4a..88776c194311 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public final class SchemaProto { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 17410973faaf..eed46924c3d5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 8c63c701b299..928da4bd36a5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SchemaSettingsOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index 5161ad85d648..d896d54002a8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index d15e4efb20f6..d4c4155bd234 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index b42511c05cf7..a912d7eeba39 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SeekRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 3170e5b2cc5d..804b7792b354 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index b951abc8fc25..80a4ce8e8ba6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SeekResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index d06ea822f523..4c03d1272127 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index b24d9441657a..2d5b3ad628d1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SnapshotOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index f40cc4e62757..9a68de42df7c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 0af7d5da6073..0e7f069b4082 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface StreamingPullRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 2d7aac604e9e..1a67990a5eff 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index a547f4e59bf8..7d885e2578de 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface StreamingPullResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index ea54863d8abd..e70130399e02 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index da905d00c5f9..40c9a735db4d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface SubscriptionOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 5ab4f70cf327..234faa309a17 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 3614d1be5e0b..875b6e81a73a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface TopicOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index 6873bc0ffe0a..d96367623f66 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 8f693411c8a2..03b116d81a62 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface UpdateSnapshotRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index e1d91cdb6159..7dbdcfa97a99 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index b11c76dbc8b1..f03c11261342 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface UpdateSubscriptionRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 9ac03519fa5d..85b634b70499 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index c5824230184f..a0425706b1dd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/pubsub.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface UpdateTopicRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 5211f514fbe7..6db4d37c84bb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 2d4102c26df9..65e62e5164a4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ValidateMessageRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index afc1a70f6271..589f4cdd06f2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index 2c6a61e134bd..9db53fcc8d20 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ValidateMessageResponseOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index de152babbcb4..99b28411067d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 69266da41af6..c0f8e1e24d0c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ValidateSchemaRequestOrBuilder diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 56773fd343ca..b195c89c845e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index 8a202b5b774b..c7aaac7e94e4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/pubsub/v1/schema.proto -// Protobuf Java Version: 3.25.5 +// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; public interface ValidateSchemaResponseOrBuilder diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index a604dc8378d4..2f2c18108568 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -20,17 +20,6 @@ ".github/workflows/samples.yaml" ], "customManagers": [ - { - "customType": "regex", - "fileMatch": [ - "^.kokoro/presubmit/graalvm-native.*.cfg$" - ], - "matchStrings": [ - "value: \"gcr.io/cloud-devrel-public-resources/graalvm.*:(?.*?)\"" - ], - "depNameTemplate": "com.google.cloud:sdk-platform-java-config", - "datasourceTemplate": "maven" - }, { "customType": "regex", "fileMatch": [ @@ -104,4 +93,4 @@ ], "semanticCommits": true, "dependencyDashboard": true -} \ No newline at end of file +} From 369b7af35f4bd98aaeb6a0b22409618612b574db Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:02:33 -0400 Subject: [PATCH 2146/2363] chore(main): release 1.140.1 (#2454) * chore(main): release 1.140.1 * chore: generate libraries at Thu Jun 5 20:17:58 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 33 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 519bd13961be..2af20bc0d104 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.140.1](https://github.com/googleapis/java-pubsub/compare/v1.140.0...v1.140.1) (2025-06-05) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.59.0 ([0eece50](https://github.com/googleapis/java-pubsub/commit/0eece5012fbaf887a5c062beba433dbb30edbf43)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#2448](https://github.com/googleapis/java-pubsub/issues/2448)) ([d89a14d](https://github.com/googleapis/java-pubsub/commit/d89a14d6569fc914d877cc24d66c42684a812eba)) + ## [1.140.0](https://github.com/googleapis/java-pubsub/compare/v1.139.4...v1.140.0) (2025-06-03) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 93784c26075d..5821bf3e0de7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.140.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.140.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.1" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 49c2b097049b..e77c7f1d7646 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.1-SNAPSHOT + 1.140.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.1-SNAPSHOT + 1.140.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2e0e8a28a47f..194753734269 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.1-SNAPSHOT + 1.140.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.1-SNAPSHOT + 1.140.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 4e65b4f2e44a..26999c386267 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.1-SNAPSHOT + 1.140.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 92b58edab335..3904b799a85c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.1-SNAPSHOT + 1.140.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 com.google.cloud google-cloud-pubsub - 1.140.1-SNAPSHOT + 1.140.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 62bc2174498a..f0b6fede0816 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1-SNAPSHOT + 1.122.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.1-SNAPSHOT + 1.140.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index a137a0fac98d..d0b22c85450a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.1-SNAPSHOT + 1.140.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 62eb596e5f6d..e22d26f77b4f 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.0:1.140.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.122.0:1.122.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.122.0:1.122.1-SNAPSHOT +google-cloud-pubsub:1.140.1:1.140.1 +grpc-google-cloud-pubsub-v1:1.122.1:1.122.1 +proto-google-cloud-pubsub-v1:1.122.1:1.122.1 From 8ad13c43a97c703312227bff899c99cf240a5e68 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 02:02:27 +0000 Subject: [PATCH 2147/2363] chore(main): release 1.140.2-SNAPSHOT (#2455) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e77c7f1d7646..99b0bbbc3ed8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.1 + 1.140.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 194753734269..2c6ed772b218 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.1 + 1.140.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 26999c386267..e5b303f56451 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.1 + 1.140.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3904b799a85c..5ed35d5770a0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.1 + 1.140.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index f0b6fede0816..8527118a963e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.1 + 1.122.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.1 + 1.140.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d0b22c85450a..9ec2ef7358f2 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e22d26f77b4f..0cab85816816 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.1:1.140.1 -grpc-google-cloud-pubsub-v1:1.122.1:1.122.1 -proto-google-cloud-pubsub-v1:1.122.1:1.122.1 +google-cloud-pubsub:1.140.1:1.140.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.122.1:1.122.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.122.1:1.122.2-SNAPSHOT From 941fd0973dbf311aeddf3049a06438cc5fb3214c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Jun 2025 21:28:41 +0200 Subject: [PATCH 2148/2363] deps: update dependency org.easymock:easymock to v5.6.0 (#2069) * deps: update dependency org.easymock:easymock to v5.6.0 * chore: run dependency tree * chore: give easymock's transitive dependencies precedence over mockito's --------- Co-authored-by: Diego Marquez --- java-pubsub/google-cloud-pubsub/pom.xml | 12 +++++++----- java-pubsub/pom.xml | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2c6ed772b218..4b91056aa2fd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -114,11 +114,6 @@ - - org.mockito - mockito-core - test - junit junit @@ -133,6 +128,13 @@ org.easymock easymock test + + + + org.mockito + mockito-core + test com.google.cloud diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 5ed35d5770a0..7211f7348d17 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -98,7 +98,7 @@ org.easymock easymock - 5.2.0 + 5.6.0 test From 808e244c65b933bf1247c06ddc7669ae9f8ba46e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 18:31:10 +0200 Subject: [PATCH 2149/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.31.1 (#2442) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 364fccb9c268..34ed776d7c18 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.31.0 + 4.31.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9ec2ef7358f2..0934a91fa88f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.31.0 + 4.31.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 5a6844896072..0dbbafa04f42 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.31.0 + 4.31.1 From af5eca808a2fd83b3e08f2bd52855846d2ecd796 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 24 Jun 2025 12:33:23 -0400 Subject: [PATCH 2150/2363] chore: Update generation configuration at Sat Jun 21 02:33:51 UTC 2025 (#2456) * chore: Update generation configuration at Fri Jun 6 02:34:28 UTC 2025 * chore: Update generation configuration at Sat Jun 7 02:33:49 UTC 2025 * chore: Update generation configuration at Tue Jun 10 02:35:41 UTC 2025 * chore: Update generation configuration at Wed Jun 11 02:34:58 UTC 2025 * chore: Update generation configuration at Thu Jun 12 02:34:35 UTC 2025 * chore: Update generation configuration at Fri Jun 13 02:34:54 UTC 2025 * chore: Update generation configuration at Sat Jun 14 02:33:28 UTC 2025 * chore: Update generation configuration at Tue Jun 17 02:35:22 UTC 2025 * chore: Update generation configuration at Wed Jun 18 02:34:55 UTC 2025 * chore: Update generation configuration at Thu Jun 19 02:35:37 UTC 2025 * chore: Update generation configuration at Fri Jun 20 02:34:58 UTC 2025 * chore: Update generation configuration at Sat Jun 21 02:33:51 UTC 2025 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 0603f69af480..dfae7fb40f9b 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: de157ca34fa487ce248eb9130293d630b501e4ad +googleapis_commitish: 34b323e7ee72888dd9337cce8b24233ae078f23b libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From a601a9081f383b04644a59bf7e64505d676674d1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:05 +0200 Subject: [PATCH 2151/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.50.0 (#2461) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 8d8e12cb11fe..895aae407845 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.49.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 99b0bbbc3ed8..c3c00331d4e7 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.49.0 + 3.50.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7211f7348d17..04b9470b33f2 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.49.0 + 3.50.0 From 308c515cb262f8b7bf2eb747f19caa065cec0d20 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:13 +0200 Subject: [PATCH 2152/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.51.0 (#2457) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 34ed776d7c18..4b472747101b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.50.1 + 2.51.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0934a91fa88f..748eb1972f93 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.50.1 + 2.51.0 com.google.cloud From 0fb07c763a0302d6b9d4d8d752105157470d1c61 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:22 +0200 Subject: [PATCH 2153/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.53.1 (#2452) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4b472747101b..edc0ba8bfc32 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.52.3 + 2.53.1 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 748eb1972f93..28f75e5a4845 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.52.3 + 2.53.1 com.google.cloud.opentelemetry From 291988d670f59558205796f102c1a5a419943bcf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:31 +0200 Subject: [PATCH 2154/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.140.1 (#2450) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index edc0ba8bfc32..95e581f6fb8b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.139.4 + 1.140.1 From 76c8ea0bb8eaccb115d098f767430087dc7b21bf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:41 +0200 Subject: [PATCH 2155/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.58.0 (#2443) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 95e581f6fb8b..206b1a393417 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.56.0 + 2.58.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 28f75e5a4845..270495144bed 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.56.0 + 2.58.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 0dbbafa04f42..f908ae7fffa6 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.56.0 + 2.58.0 tests From 06a4e8980a16e41d574c00f25cfa7373b4c156d2 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:38:49 +0200 Subject: [PATCH 2156/2363] deps: update dependency com.google.cloud.opentelemetry:exporter-trace to v0.36.0 (#2440) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 206b1a393417..eb05a482a3ee 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -96,7 +96,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.34.0 + 0.36.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 270495144bed..67b30d9fbd0b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -95,7 +95,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.34.0 + 0.36.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f908ae7fffa6..84afef8cd678 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -70,7 +70,7 @@ com.google.cloud.opentelemetry exporter-trace - 0.34.0 + 0.36.0 org.apache.avro From 8785ecf9621d51b8d2293e52ae36efa223082eb9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:39:24 +0200 Subject: [PATCH 2157/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.62.0 (#2459) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 84afef8cd678..75cc4aacd794 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.61.0 + 26.62.0 pom import From 3dc469f1a4a665a3af4a6bd251db8346f411cf47 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Jun 2025 22:39:41 +0200 Subject: [PATCH 2158/2363] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.6.1 (#2453) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index eb05a482a3ee..4da77cb860db 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -106,7 +106,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.6.0 + 3.6.1 add-snippets-source diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 67b30d9fbd0b..4154d9ddafc6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -105,7 +105,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.6.0 + 3.6.1 add-snippets-source From 3eecd68c08438c258ae93cc8276b902169be8e63 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 25 Jun 2025 03:49:17 +0200 Subject: [PATCH 2159/2363] deps: update googleapis/sdk-platform-java action to v2.60.0 (#2462) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index c01f3faec3af..7838b82ee38c 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 0134792e4c4760e889652fb9aa620e9e83d0cc6e Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 25 Jun 2025 10:59:27 -0400 Subject: [PATCH 2160/2363] chore: Update generation configuration at Wed Jun 25 02:36:30 UTC 2025 (#2463) * chore: Update generation configuration at Wed Jun 25 02:36:30 UTC 2025 * chore: generate libraries at Wed Jun 25 02:37:04 UTC 2025 --- .../.github/workflows/hermetic_library_generation.yaml | 2 +- java-pubsub/README.md | 4 ++-- java-pubsub/generation_config.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 7838b82ee38c..c01f3faec3af 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5821bf3e0de7..ecb5073a8273 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.61.0 + 26.62.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.139.4 + 1.140.1 ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index dfae7fb40f9b..d8e6dfe51901 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: 34b323e7ee72888dd9337cce8b24233ae078f23b +googleapis_commitish: 8a883235bc76e941ef745a5b5465878dadc9c440 libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From edf387abb999226fa2858cc568044234c48ff850 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 25 Jun 2025 17:16:52 +0200 Subject: [PATCH 2161/2363] deps: update googleapis/sdk-platform-java action to v2.60.0 (#2464) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index c01f3faec3af..7838b82ee38c 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 488b73f7ca7c19a6b2881f72132fb1340ccbbd70 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 25 Jun 2025 13:20:07 -0400 Subject: [PATCH 2162/2363] chore(main): release 1.140.2 (#2458) * chore(main): release 1.140.2 * chore: generate libraries at Wed Jun 25 15:17:43 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 15 +++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 36 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 2af20bc0d104..e739db5075be 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.140.2](https://github.com/googleapis/java-pubsub/compare/v1.140.1...v1.140.2) (2025-06-25) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.51.0 ([#2457](https://github.com/googleapis/java-pubsub/issues/2457)) ([d74215a](https://github.com/googleapis/java-pubsub/commit/d74215a6f1e641ba75997e2e43bef348fb9c4a3c)) +* Update dependency com.google.cloud:google-cloud-core to v2.58.0 ([#2443](https://github.com/googleapis/java-pubsub/issues/2443)) ([d4599d9](https://github.com/googleapis/java-pubsub/commit/d4599d93b780b6ef20ad44582aeb8c1cd35f99d4)) +* Update dependency com.google.cloud:google-cloud-storage to v2.53.1 ([#2452](https://github.com/googleapis/java-pubsub/issues/2452)) ([b4af237](https://github.com/googleapis/java-pubsub/commit/b4af2370bb875ee8d0047f67a72e8c6d62547a12)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.50.0 ([#2461](https://github.com/googleapis/java-pubsub/issues/2461)) ([715916a](https://github.com/googleapis/java-pubsub/commit/715916aeedbe696b9c4b922e4fb2bbf76f8b201a)) +* Update dependency com.google.cloud.opentelemetry:exporter-trace to v0.36.0 ([#2440](https://github.com/googleapis/java-pubsub/issues/2440)) ([50a3eb9](https://github.com/googleapis/java-pubsub/commit/50a3eb9276b4711b8161a021d055238abc0e20de)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.31.1 ([#2442](https://github.com/googleapis/java-pubsub/issues/2442)) ([a0be1bb](https://github.com/googleapis/java-pubsub/commit/a0be1bbe601575f05fb00f6d616b51de8f23238d)) +* Update dependency org.easymock:easymock to v5.6.0 ([#2069](https://github.com/googleapis/java-pubsub/issues/2069)) ([5f144a4](https://github.com/googleapis/java-pubsub/commit/5f144a461c6749ec7e2cf900399f386094451244)) +* Update googleapis/sdk-platform-java action to v2.60.0 ([#2462](https://github.com/googleapis/java-pubsub/issues/2462)) ([ee8e5c7](https://github.com/googleapis/java-pubsub/commit/ee8e5c7166f2ac4eb706241e42f4ce84afcc2668)) +* Update googleapis/sdk-platform-java action to v2.60.0 ([#2464](https://github.com/googleapis/java-pubsub/issues/2464)) ([7a0af37](https://github.com/googleapis/java-pubsub/commit/7a0af37c01e747d8f40145b7b4438eaadab9e01a)) + ## [1.140.1](https://github.com/googleapis/java-pubsub/compare/v1.140.0...v1.140.1) (2025-06-05) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ecb5073a8273..e95c7dac3cd9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.140.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.140.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.2" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c3c00331d4e7..8c13ed2e429f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.2-SNAPSHOT + 1.140.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.2-SNAPSHOT + 1.140.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 4b91056aa2fd..2259f5aff95c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.2-SNAPSHOT + 1.140.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.2-SNAPSHOT + 1.140.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index e5b303f56451..6e53bdc889ee 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.2-SNAPSHOT + 1.140.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 04b9470b33f2..a46a71466ed4 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.2-SNAPSHOT + 1.140.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 com.google.cloud google-cloud-pubsub - 1.140.2-SNAPSHOT + 1.140.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 8527118a963e..757b7e5d1bf2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2-SNAPSHOT + 1.122.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.2-SNAPSHOT + 1.140.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4154d9ddafc6..f19d599a2a77 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.2-SNAPSHOT + 1.140.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 0cab85816816..9086137950fe 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.1:1.140.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.122.1:1.122.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.122.1:1.122.2-SNAPSHOT +google-cloud-pubsub:1.140.2:1.140.2 +grpc-google-cloud-pubsub-v1:1.122.2:1.122.2 +proto-google-cloud-pubsub-v1:1.122.2:1.122.2 From 499f4a55d75436392cc4bfd6e98c7a1ce67a3ba3 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 27 Jun 2025 15:15:04 -0400 Subject: [PATCH 2163/2363] chore: Update generation configuration at Fri Jun 27 02:36:05 UTC 2025 (#2468) * chore: Update generation configuration at Thu Jun 26 02:35:43 UTC 2025 * chore: Update generation configuration at Fri Jun 27 02:36:05 UTC 2025 * chore: generate libraries at Fri Jun 27 02:36:34 UTC 2025 --- .../hermetic_library_generation.yaml | 2 +- java-pubsub/generation_config.yaml | 2 +- .../reflect-config.json | 18 + .../pubsub/v1/IngestionFailureEvent.java | 3126 +++++++++++++++-- .../google/pubsub/v1/MessageTransform.java | 8 +- .../pubsub/v1/MessageTransformOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 437 +-- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 48 +- .../v1/StreamingPullResponseOrBuilder.java | 12 +- .../main/proto/google/pubsub/v1/pubsub.proto | 33 +- 12 files changed, 3187 insertions(+), 511 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 7838b82ee38c..c01f3faec3af 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index d8e6dfe51901..b6e7827d2b49 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: 8a883235bc76e941ef745a5b5465878dadc9c440 +googleapis_commitish: 9ae4ee8191efa397c23f8ec13deb5d8e9bc69f02 libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index f0c86a2e7b48..fb920745f187 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -2213,6 +2213,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$MessageTransformationFailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.IngestionFailureEvent$MessageTransformationFailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.IngestionFailureEvent$SchemaViolationReason", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index e678aa647ae1..640c8f154ce8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -1383,6 +1383,463 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface MessageTransformationFailureReasonOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
      +   * Set when a Pub/Sub message fails to get published due to a message
      +   * transformation error.
      +   * 
      + * + * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason} + */ + public static final class MessageTransformationFailureReason + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + MessageTransformationFailureReasonOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MessageTransformationFailureReason.newBuilder() to construct. + private MessageTransformationFailureReason( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MessageTransformationFailureReason() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MessageTransformationFailureReason(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason)) { + return super.equals(obj); + } + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason other = + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Set when a Pub/Sub message fails to get published due to a message
      +     * transformation error.
      +     * 
      + * + * Protobuf type {@code + * google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.class, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder.class); + } + + // Construct using + // com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getDefaultInstanceForType() { + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason build() { + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + buildPartial() { + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason result = + new com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) { + return mergeFrom( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason other) { + if (other + == com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + private static final com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason(); + } + + public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MessageTransformationFailureReason parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface CloudStorageFailureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) @@ -1591,6 +2048,54 @@ public interface CloudStorageFailureOrBuilder com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder getSchemaViolationReasonOrBuilder(); + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + boolean hasMessageTransformationFailureReason(); + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason(); + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.ReasonCase getReasonCase(); } @@ -1652,6 +2157,7 @@ public enum ReasonCase AVRO_FAILURE_REASON(5), API_VIOLATION_REASON(6), SCHEMA_VIOLATION_REASON(7), + MESSAGE_TRANSFORMATION_FAILURE_REASON(8), REASON_NOT_SET(0); private final int value; @@ -1677,6 +2183,8 @@ public static ReasonCase forNumber(int value) { return API_VIOLATION_REASON; case 7: return SCHEMA_VIOLATION_REASON; + case 8: + return MESSAGE_TRANSFORMATION_FAILURE_REASON; case 0: return REASON_NOT_SET; default: @@ -2008,6 +2516,75 @@ public boolean hasSchemaViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } + public static final int MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER = 8; + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 8; + } + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (reasonCase_ == 8) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if (reasonCase_ == 8) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2043,6 +2620,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 7, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 8) { + output.writeMessage( + 8, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } getUnknownFields().writeTo(output); } @@ -2076,6 +2659,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2106,6 +2696,10 @@ public boolean equals(final java.lang.Object obj) { case 7: if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; + case 8: + if (!getMessageTransformationFailureReason() + .equals(other.getMessageTransformationFailureReason())) return false; + break; case 0: default: } @@ -2139,6 +2733,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; + case 8: + hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); + break; case 0: default: } @@ -2297,6 +2895,9 @@ public Builder clear() { if (schemaViolationReasonBuilder_ != null) { schemaViolationReasonBuilder_.clear(); } + if (messageTransformationFailureReasonBuilder_ != null) { + messageTransformationFailureReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -2362,6 +2963,9 @@ private void buildPartialOneofs( if (reasonCase_ == 7 && schemaViolationReasonBuilder_ != null) { result.reason_ = schemaViolationReasonBuilder_.build(); } + if (reasonCase_ == 8 && messageTransformationFailureReasonBuilder_ != null) { + result.reason_ = messageTransformationFailureReasonBuilder_.build(); + } } @java.lang.Override @@ -2443,6 +3047,12 @@ public Builder mergeFrom( mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } + case MESSAGE_TRANSFORMATION_FAILURE_REASON: + { + mergeMessageTransformationFailureReason( + other.getMessageTransformationFailureReason()); + break; + } case REASON_NOT_SET: { break; @@ -2512,7 +3122,15 @@ public Builder mergeFrom( getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 7; break; - } // case 58 + } // case 58 + case 66: + { + input.readMessage( + getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3576,6 +4194,274 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + messageTransformationFailureReasonBuilder_; + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 8; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 8) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 8) { + return messageTransformationFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 8; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + builderForValue) { + if (messageTransformationFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 8; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 8 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason) + reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 8) { + messageTransformationFailureReasonBuilder_.mergeFrom(value); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 8; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 8) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 8) { + reasonCase_ = 0; + reason_ = null; + } + messageTransformationFailureReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + getMessageTransformationFailureReasonBuilder() { + return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if ((reasonCase_ == 8) && (messageTransformationFailureReasonBuilder_ != null)) { + return messageTransformationFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 8) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + getMessageTransformationFailureReasonFieldBuilder() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 8)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + messageTransformationFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 8; + onChanged(); + return messageTransformationFailureReasonBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3818,6 +4704,54 @@ public interface AwsMskFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder getSchemaViolationReasonOrBuilder(); + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + boolean hasMessageTransformationFailureReason(); + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason(); + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.ReasonCase getReasonCase(); } @@ -3878,6 +4812,7 @@ public enum ReasonCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), SCHEMA_VIOLATION_REASON(6), + MESSAGE_TRANSFORMATION_FAILURE_REASON(7), REASON_NOT_SET(0); private final int value; @@ -3901,6 +4836,8 @@ public static ReasonCase forNumber(int value) { return API_VIOLATION_REASON; case 6: return SCHEMA_VIOLATION_REASON; + case 7: + return MESSAGE_TRANSFORMATION_FAILURE_REASON; case 0: return REASON_NOT_SET; default: @@ -4188,6 +5125,75 @@ public boolean hasSchemaViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } + public static final int MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER = 7; + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4222,6 +5228,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + output.writeMessage( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } getUnknownFields().writeTo(output); } @@ -4253,6 +5265,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4281,6 +5300,10 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; + case 7: + if (!getMessageTransformationFailureReason() + .equals(other.getMessageTransformationFailureReason())) return false; + break; case 0: default: } @@ -4312,6 +5335,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; + case 7: + hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); + break; case 0: default: } @@ -4468,6 +5495,9 @@ public Builder clear() { if (schemaViolationReasonBuilder_ != null) { schemaViolationReasonBuilder_.clear(); } + if (messageTransformationFailureReasonBuilder_ != null) { + messageTransformationFailureReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -4533,6 +5563,9 @@ private void buildPartialOneofs( if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { result.reason_ = schemaViolationReasonBuilder_.build(); } + if (reasonCase_ == 7 && messageTransformationFailureReasonBuilder_ != null) { + result.reason_ = messageTransformationFailureReasonBuilder_.build(); + } } @java.lang.Override @@ -4612,6 +5645,12 @@ public Builder mergeFrom( mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } + case MESSAGE_TRANSFORMATION_FAILURE_REASON: + { + mergeMessageTransformationFailureReason( + other.getMessageTransformationFailureReason()); + break; + } case REASON_NOT_SET: { break; @@ -4681,6 +5720,14 @@ public Builder mergeFrom( reasonCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5233,36 +6280,285 @@ public Builder clearApiViolationReason() { *
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return schemaViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + schemaViolationReasonBuilder_.mergeFrom(value); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + schemaViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -5270,90 +6566,94 @@ public Builder clearApiViolationReason() { * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 5)) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - schemaViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + messageTransformationFailureReasonBuilder_; /** * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the schemaViolationReason field is set. + * @return Whether the messageTransformationFailureReason field is set. */ @java.lang.Override - public boolean hasSchemaViolationReason() { - return reasonCase_ == 6; + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; } /** * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The schemaViolationReason. + * @return The messageTransformationFailureReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason - getSchemaViolationReason() { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } else { - if (reasonCase_ == 6) { - return schemaViolationReasonBuilder_.getMessage(); + if (reasonCase_ == 7) { + return messageTransformationFailureReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } } @@ -5362,25 +6662,26 @@ public boolean hasSchemaViolationReason() { * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { - if (schemaViolationReasonBuilder_ == null) { + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - schemaViolationReasonBuilder_.setMessage(value); + messageTransformationFailureReasonBuilder_.setMessage(value); } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -5388,23 +6689,24 @@ public Builder setSchemaViolationReason( * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder builderForValue) { - if (schemaViolationReasonBuilder_ == null) { + if (messageTransformationFailureReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + messageTransformationFailureReasonBuilder_.setMessage(builderForValue.build()); } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -5412,23 +6714,27 @@ public Builder setSchemaViolationReason( * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6 + public Builder mergeMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason) + reason_) .mergeFrom(value) .buildPartial(); } else { @@ -5436,13 +6742,13 @@ public Builder mergeSchemaViolationReason( } onChanged(); } else { - if (reasonCase_ == 6) { - schemaViolationReasonBuilder_.mergeFrom(value); + if (reasonCase_ == 7) { + messageTransformationFailureReasonBuilder_.mergeFrom(value); } else { - schemaViolationReasonBuilder_.setMessage(value); + messageTransformationFailureReasonBuilder_.setMessage(value); } } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -5450,26 +6756,27 @@ public Builder mergeSchemaViolationReason( * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearSchemaViolationReason() { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6) { + public Builder clearMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 6) { + if (reasonCase_ == 7) { reasonCase_ = 0; reason_ = null; } - schemaViolationReasonBuilder_.clear(); + messageTransformationFailureReasonBuilder_.clear(); } return this; } @@ -5478,39 +6785,42 @@ public Builder clearSchemaViolationReason() { * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder - getSchemaViolationReasonBuilder() { - return getSchemaViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + getMessageTransformationFailureReasonBuilder() { + return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); } /** * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder - getSchemaViolationReasonOrBuilder() { - if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { - return schemaViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if ((reasonCase_ == 7) && (messageTransformationFailureReasonBuilder_ != null)) { + return messageTransformationFailureReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } } @@ -5519,37 +6829,42 @@ public Builder clearSchemaViolationReason() { * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - getSchemaViolationReasonFieldBuilder() { - if (schemaViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 6)) { + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + getMessageTransformationFailureReasonFieldBuilder() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 7)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } - schemaViolationReasonBuilder_ = + messageTransformationFailureReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 6; + reasonCase_ = 7; onChanged(); - return schemaViolationReasonBuilder_; + return messageTransformationFailureReasonBuilder_; } @java.lang.Override @@ -5794,6 +7109,54 @@ public interface AzureEventHubsFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder getSchemaViolationReasonOrBuilder(); + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + boolean hasMessageTransformationFailureReason(); + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason(); + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.ReasonCase getReasonCase(); } @@ -5856,6 +7219,7 @@ public enum ReasonCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), SCHEMA_VIOLATION_REASON(6), + MESSAGE_TRANSFORMATION_FAILURE_REASON(7), REASON_NOT_SET(0); private final int value; @@ -5879,6 +7243,8 @@ public static ReasonCase forNumber(int value) { return API_VIOLATION_REASON; case 6: return SCHEMA_VIOLATION_REASON; + case 7: + return MESSAGE_TRANSFORMATION_FAILURE_REASON; case 0: return REASON_NOT_SET; default: @@ -6166,6 +7532,75 @@ public boolean hasSchemaViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } + public static final int MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER = 7; + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6200,6 +7635,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + output.writeMessage( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } getUnknownFields().writeTo(output); } @@ -6231,6 +7672,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6260,6 +7708,10 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; + case 7: + if (!getMessageTransformationFailureReason() + .equals(other.getMessageTransformationFailureReason())) return false; + break; case 0: default: } @@ -6291,6 +7743,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; + case 7: + hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); + break; case 0: default: } @@ -6450,6 +7906,9 @@ public Builder clear() { if (schemaViolationReasonBuilder_ != null) { schemaViolationReasonBuilder_.clear(); } + if (messageTransformationFailureReasonBuilder_ != null) { + messageTransformationFailureReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -6517,6 +7976,9 @@ private void buildPartialOneofs( if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { result.reason_ = schemaViolationReasonBuilder_.build(); } + if (reasonCase_ == 7 && messageTransformationFailureReasonBuilder_ != null) { + result.reason_ = messageTransformationFailureReasonBuilder_.build(); + } } @java.lang.Override @@ -6595,7 +8057,13 @@ public Builder mergeFrom( } case SCHEMA_VIOLATION_REASON: { - mergeSchemaViolationReason(other.getSchemaViolationReason()); + mergeSchemaViolationReason(other.getSchemaViolationReason()); + break; + } + case MESSAGE_TRANSFORMATION_FAILURE_REASON: + { + mergeMessageTransformationFailureReason( + other.getMessageTransformationFailureReason()); break; } case REASON_NOT_SET: @@ -6667,6 +8135,14 @@ public Builder mergeFrom( reasonCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7190,22 +8666,272 @@ public Builder mergeApiViolationReason( *
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub API limits prevented the desired message from
      +       * being published.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return apiViolationReasonBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + schemaViolationReasonBuilder_; + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + @java.lang.Override + public boolean hasSchemaViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + getSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return schemaViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + builderForValue) { + if (schemaViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchemaViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + schemaViolationReasonBuilder_.mergeFrom(value); + } else { + schemaViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The Pub/Sub message failed schema validation.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearApiViolationReason() { - if (apiViolationReasonBuilder_ == null) { - if (reasonCase_ == 5) { + public Builder clearSchemaViolationReason() { + if (schemaViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 5) { + if (reasonCase_ == 6) { reasonCase_ = 0; reason_ = null; } - apiViolationReasonBuilder_.clear(); + schemaViolationReasonBuilder_.clear(); } return this; } @@ -7214,41 +8940,40 @@ public Builder clearApiViolationReason() { * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder - getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + getSchemaViolationReasonBuilder() { + return getSchemaViolationReasonFieldBuilder().getBuilder(); } /** * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder - getApiViolationReasonOrBuilder() { - if ((reasonCase_ == 5) && (apiViolationReasonBuilder_ != null)) { - return apiViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { + return schemaViolationReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 5) { - return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } } @@ -7256,90 +8981,94 @@ public Builder clearApiViolationReason() { * * *
      -       * Optional. The Pub/Sub API limits prevented the desired message from
      -       * being published.
      +       * Optional. The Pub/Sub message failed schema validation.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { - if (apiViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 5)) { + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> + getSchemaViolationReasonFieldBuilder() { + if (schemaViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + .getDefaultInstance(); } - apiViolationReasonBuilder_ = + schemaViolationReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 5; + reasonCase_ = 6; onChanged(); - return apiViolationReasonBuilder_; + return schemaViolationReasonBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - schemaViolationReasonBuilder_; + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + messageTransformationFailureReasonBuilder_; /** * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the schemaViolationReason field is set. + * @return Whether the messageTransformationFailureReason field is set. */ @java.lang.Override - public boolean hasSchemaViolationReason() { - return reasonCase_ == 6; + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; } /** * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The schemaViolationReason. + * @return The messageTransformationFailureReason. */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason - getSchemaViolationReason() { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } else { - if (reasonCase_ == 6) { - return schemaViolationReasonBuilder_.getMessage(); + if (reasonCase_ == 7) { + return messageTransformationFailureReasonBuilder_.getMessage(); } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } } @@ -7348,25 +9077,26 @@ public boolean hasSchemaViolationReason() { * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { - if (schemaViolationReasonBuilder_ == null) { + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); } else { - schemaViolationReasonBuilder_.setMessage(value); + messageTransformationFailureReasonBuilder_.setMessage(value); } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -7374,23 +9104,24 @@ public Builder setSchemaViolationReason( * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder builderForValue) { - if (schemaViolationReasonBuilder_ == null) { + if (messageTransformationFailureReasonBuilder_ == null) { reason_ = builderForValue.build(); onChanged(); } else { - schemaViolationReasonBuilder_.setMessage(builderForValue.build()); + messageTransformationFailureReasonBuilder_.setMessage(builderForValue.build()); } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -7398,23 +9129,27 @@ public Builder setSchemaViolationReason( * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeSchemaViolationReason( - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason value) { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6 + public Builder mergeMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7 && reason_ - != com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + != com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance()) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder( - (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_) + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason) + reason_) .mergeFrom(value) .buildPartial(); } else { @@ -7422,13 +9157,13 @@ public Builder mergeSchemaViolationReason( } onChanged(); } else { - if (reasonCase_ == 6) { - schemaViolationReasonBuilder_.mergeFrom(value); + if (reasonCase_ == 7) { + messageTransformationFailureReasonBuilder_.mergeFrom(value); } else { - schemaViolationReasonBuilder_.setMessage(value); + messageTransformationFailureReasonBuilder_.setMessage(value); } } - reasonCase_ = 6; + reasonCase_ = 7; return this; } @@ -7436,26 +9171,27 @@ public Builder mergeSchemaViolationReason( * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearSchemaViolationReason() { - if (schemaViolationReasonBuilder_ == null) { - if (reasonCase_ == 6) { + public Builder clearMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { reasonCase_ = 0; reason_ = null; onChanged(); } } else { - if (reasonCase_ == 6) { + if (reasonCase_ == 7) { reasonCase_ = 0; reason_ = null; } - schemaViolationReasonBuilder_.clear(); + messageTransformationFailureReasonBuilder_.clear(); } return this; } @@ -7464,39 +9200,42 @@ public Builder clearSchemaViolationReason() { * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder - getSchemaViolationReasonBuilder() { - return getSchemaViolationReasonFieldBuilder().getBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + getMessageTransformationFailureReasonBuilder() { + return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); } /** * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder - getSchemaViolationReasonOrBuilder() { - if ((reasonCase_ == 6) && (schemaViolationReasonBuilder_ != null)) { - return schemaViolationReasonBuilder_.getMessageOrBuilder(); + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if ((reasonCase_ == 7) && (messageTransformationFailureReasonBuilder_ != null)) { + return messageTransformationFailureReasonBuilder_.getMessageOrBuilder(); } else { - if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } } @@ -7505,37 +9244,42 @@ public Builder clearSchemaViolationReason() { * * *
      -       * Optional. The Pub/Sub message failed schema validation.
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
              * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - getSchemaViolationReasonFieldBuilder() { - if (schemaViolationReasonBuilder_ == null) { - if (!(reasonCase_ == 6)) { + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + getMessageTransformationFailureReasonFieldBuilder() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 7)) { reason_ = - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .getDefaultInstance(); } - schemaViolationReasonBuilder_ = + messageTransformationFailureReasonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( - (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_, getParentForChildren(), isClean()); reason_ = null; } - reasonCase_ = 6; + reasonCase_ = 7; onChanged(); - return schemaViolationReasonBuilder_; + return messageTransformationFailureReasonBuilder_; } @java.lang.Override @@ -7781,6 +9525,54 @@ public interface ConfluentCloudFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder getSchemaViolationReasonOrBuilder(); + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + boolean hasMessageTransformationFailureReason(); + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason(); + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.ReasonCase getReasonCase(); } @@ -7843,6 +9635,7 @@ public enum ReasonCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { API_VIOLATION_REASON(5), SCHEMA_VIOLATION_REASON(6), + MESSAGE_TRANSFORMATION_FAILURE_REASON(7), REASON_NOT_SET(0); private final int value; @@ -7866,6 +9659,8 @@ public static ReasonCase forNumber(int value) { return API_VIOLATION_REASON; case 6: return SCHEMA_VIOLATION_REASON; + case 7: + return MESSAGE_TRANSFORMATION_FAILURE_REASON; case 0: return REASON_NOT_SET; default: @@ -8130,27 +9925,96 @@ public boolean hasSchemaViolationReason() { if (reasonCase_ == 6) { return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + } + + public static final int MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER = 7; + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); } /** * * *
      -     * Optional. The Pub/Sub message failed schema validation.
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder - getSchemaViolationReasonOrBuilder() { - if (reasonCase_ == 6) { - return (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_; + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; } - return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -8187,6 +10051,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + output.writeMessage( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } getUnknownFields().writeTo(output); } @@ -8218,6 +10088,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8247,6 +10124,10 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; + case 7: + if (!getMessageTransformationFailureReason() + .equals(other.getMessageTransformationFailureReason())) return false; + break; case 0: default: } @@ -8278,6 +10159,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; + case 7: + hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); + break; case 0: default: } @@ -8437,6 +10322,9 @@ public Builder clear() { if (schemaViolationReasonBuilder_ != null) { schemaViolationReasonBuilder_.clear(); } + if (messageTransformationFailureReasonBuilder_ != null) { + messageTransformationFailureReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -8504,6 +10392,9 @@ private void buildPartialOneofs( if (reasonCase_ == 6 && schemaViolationReasonBuilder_ != null) { result.reason_ = schemaViolationReasonBuilder_.build(); } + if (reasonCase_ == 7 && messageTransformationFailureReasonBuilder_ != null) { + result.reason_ = messageTransformationFailureReasonBuilder_.build(); + } } @java.lang.Override @@ -8585,6 +10476,12 @@ public Builder mergeFrom( mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } + case MESSAGE_TRANSFORMATION_FAILURE_REASON: + { + mergeMessageTransformationFailureReason( + other.getMessageTransformationFailureReason()); + break; + } case REASON_NOT_SET: { break; @@ -8654,6 +10551,14 @@ public Builder mergeFrom( reasonCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 7; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9525,6 +11430,274 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + messageTransformationFailureReasonBuilder_; + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 7; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 7) { + return messageTransformationFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + builderForValue) { + if (messageTransformationFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason) + reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 7) { + messageTransformationFailureReasonBuilder_.mergeFrom(value); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 7; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 7) { + reasonCase_ = 0; + reason_ = null; + } + messageTransformationFailureReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + getMessageTransformationFailureReasonBuilder() { + return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if ((reasonCase_ == 7) && (messageTransformationFailureReasonBuilder_ != null)) { + return messageTransformationFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 7) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + getMessageTransformationFailureReasonFieldBuilder() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 7)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + messageTransformationFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 7; + onChanged(); + return messageTransformationFailureReasonBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9680,45 +11853,93 @@ public interface AwsKinesisFailureReasonOrBuilder * * *
      -     * Optional. The Pub/Sub message failed schema validation.
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schemaViolationReason field is set. + */ + boolean hasSchemaViolationReason(); + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schemaViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + + /** + * + * + *
      +     * Optional. The Pub/Sub message failed schema validation.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder + getSchemaViolationReasonOrBuilder(); + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the schemaViolationReason field is set. + * @return Whether the messageTransformationFailureReason field is set. */ - boolean hasSchemaViolationReason(); + boolean hasMessageTransformationFailureReason(); /** * * *
      -     * Optional. The Pub/Sub message failed schema validation.
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The schemaViolationReason. + * @return The messageTransformationFailureReason. */ - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason getSchemaViolationReason(); + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason(); /** * * *
      -     * Optional. The Pub/Sub message failed schema validation.
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
            * 
      * * - * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder - getSchemaViolationReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder(); com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.ReasonCase getReasonCase(); } @@ -9780,6 +12001,7 @@ public enum ReasonCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SCHEMA_VIOLATION_REASON(4), + MESSAGE_TRANSFORMATION_FAILURE_REASON(5), REASON_NOT_SET(0); private final int value; @@ -9801,6 +12023,8 @@ public static ReasonCase forNumber(int value) { switch (value) { case 4: return SCHEMA_VIOLATION_REASON; + case 5: + return MESSAGE_TRANSFORMATION_FAILURE_REASON; case 0: return REASON_NOT_SET; default: @@ -10038,6 +12262,75 @@ public boolean hasSchemaViolationReason() { return com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.getDefaultInstance(); } + public static final int MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER = 5; + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. Failure encountered when applying a message transformation to
      +     * the Pub/Sub message.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10065,6 +12358,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 4, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 5) { + output.writeMessage( + 5, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } getUnknownFields().writeTo(output); } @@ -10088,6 +12387,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) reason_); } + if (reasonCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10112,6 +12418,10 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getSchemaViolationReason().equals(other.getSchemaViolationReason())) return false; break; + case 5: + if (!getMessageTransformationFailureReason() + .equals(other.getMessageTransformationFailureReason())) return false; + break; case 0: default: } @@ -10137,6 +12447,10 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_VIOLATION_REASON_FIELD_NUMBER; hash = (53 * hash) + getSchemaViolationReason().hashCode(); break; + case 5: + hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); + break; case 0: default: } @@ -10291,6 +12605,9 @@ public Builder clear() { if (schemaViolationReasonBuilder_ != null) { schemaViolationReasonBuilder_.clear(); } + if (messageTransformationFailureReasonBuilder_ != null) { + messageTransformationFailureReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -10351,6 +12668,9 @@ private void buildPartialOneofs( if (reasonCase_ == 4 && schemaViolationReasonBuilder_ != null) { result.reason_ = schemaViolationReasonBuilder_.build(); } + if (reasonCase_ == 5 && messageTransformationFailureReasonBuilder_ != null) { + result.reason_ = messageTransformationFailureReasonBuilder_.build(); + } } @java.lang.Override @@ -10425,6 +12745,12 @@ public Builder mergeFrom( mergeSchemaViolationReason(other.getSchemaViolationReason()); break; } + case MESSAGE_TRANSFORMATION_FAILURE_REASON: + { + mergeMessageTransformationFailureReason( + other.getMessageTransformationFailureReason()); + break; + } case REASON_NOT_SET: { break; @@ -10481,6 +12807,14 @@ public Builder mergeFrom( reasonCase_ = 4; break; } // case 34 + case 42: + { + input.readMessage( + getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + extensionRegistry); + reasonCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11096,6 +13430,274 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + messageTransformationFailureReasonBuilder_; + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the messageTransformationFailureReason field is set. + */ + @java.lang.Override + public boolean hasMessageTransformationFailureReason() { + return reasonCase_ == 5; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The messageTransformationFailureReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + getMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } else { + if (reasonCase_ == 5) { + return messageTransformationFailureReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + builderForValue) { + if (messageTransformationFailureReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + messageTransformationFailureReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMessageTransformationFailureReason( + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason value) { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 5 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReason) + reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 5) { + messageTransformationFailureReasonBuilder_.mergeFrom(value); + } else { + messageTransformationFailureReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 5; + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessageTransformationFailureReason() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 5) { + reasonCase_ = 0; + reason_ = null; + } + messageTransformationFailureReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder + getMessageTransformationFailureReasonBuilder() { + return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder + getMessageTransformationFailureReasonOrBuilder() { + if ((reasonCase_ == 5) && (messageTransformationFailureReasonBuilder_ != null)) { + return messageTransformationFailureReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 5) { + return (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. Failure encountered when applying a message transformation to
      +       * the Pub/Sub message.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder> + getMessageTransformationFailureReasonFieldBuilder() { + if (messageTransformationFailureReasonBuilder_ == null) { + if (!(reasonCase_ == 5)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .getDefaultInstance(); + } + messageTransformationFailureReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, + com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason + .Builder, + com.google.pubsub.v1.IngestionFailureEvent + .MessageTransformationFailureReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) + reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 5; + onChanged(); + return messageTransformationFailureReasonBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index adf9eb067732..0456c10b4a33 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -186,7 +186,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=769 + * google/pubsub/v1/pubsub.proto;l=798 * @return The enabled. */ @java.lang.Override @@ -899,7 +899,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=769 + * google/pubsub/v1/pubsub.proto;l=798 * @return The enabled. */ @java.lang.Override @@ -919,7 +919,7 @@ public boolean getEnabled() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=769 + * google/pubsub/v1/pubsub.proto;l=798 * @param value The enabled to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=769 + * google/pubsub/v1/pubsub.proto;l=798 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index b70b613ece34..324cf524a070 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -81,7 +81,7 @@ public interface MessageTransformOrBuilder * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=769 + * google/pubsub/v1/pubsub.proto;l=798 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index f60b3eab7636..6d51da2db41f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -92,6 +92,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -494,7 +498,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DEBUG\020\002\022\010\n" + "\004INFO\020\003\022\013\n" + "\007WARNING\020\004\022\t\n" - + "\005ERROR\020\005\"\203\022\n" + + "\005ERROR\020\005\"\270\027\n" + "\025IngestionFailureEvent\022\022\n" + "\005topic\030\001 \001(\tB\003\340A\002\022\032\n\r" + "error_message\030\002 \001(\tB\003\340A\002\022a\n" @@ -510,70 +514,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "stionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + "\022ApiViolationReason\032\023\n" + "\021AvroFailureReason\032\027\n" - + "\025SchemaViolationReason\032\225\003\n" + + "\025SchemaViolationReason\032$\n" + + "\"MessageTransformationFailureReason\032\230\004\n" + "\023CloudStorageFailure\022\023\n" + "\006bucket\030\001 \001(\tB\003\340A\001\022\030\n" + "\013object_name\030\002 \001(\tB\003\340A\001\022\036\n" + "\021object_generation\030\003 \001(\003B\003\340A\001\022]\n" + "\023avro_failure_reason\030\005" + " \001(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" - + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub" - + ".v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\007" - + " \001(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\313\002\n" + + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v" + + "1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\007 \001" + + "(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\010 \001(\013" + + "2J.google.pubsub.v1.IngestionFailureEven" + + "t.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\316\003\n" + "\023AwsMskFailureReason\022\030\n" + "\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:" - + ".google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.In" - + "gestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\317\002\n" + + "\024api_violation_reason\030\005" + + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pub" + + "sub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132J.google.pubsu" + + "b.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\322\003\n" + "\033AzureEventHubsFailureReason\022\026\n" + "\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n" + "\tevent_hub\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1.Inge" - + "stionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.g" - + "oogle.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\322\002\n" + + "\024api_violation_reason\030\005 \001(\0132:.g" + + "oogle.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Inge" + + "stionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132J.google.pubsub.v1.Ingest" + + "ionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\325\003\n" + "\033ConfluentCloudFailureReason\022\027\n\n" + "cluster_id\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:." - + "google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Ing" - + "estionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\335\001\n" + + "\024api_violation_reason\030\005 \001(\0132:.google.pu" + + "bsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.IngestionFai" + + "lureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007" + + " \001(\0132J.google.pubsub.v1.IngestionFailu" + + "reEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\340\002\n" + "\027AwsKinesisFailureReason\022\027\n\n" + "stream_arn\030\001 \001(\tB\003\340A\001\022\032\n\r" + "partition_key\030\002 \001(\tB\003\340A\001\022\034\n" + "\017sequence_number\030\003 \001(\tB\003\340A\001\022e\n" - + "\027schema_violation_reason\030\004 \001(" - + "\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000B\010\n" + + "\027schema_violation_reason\030\004 " + + "\001(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\005 \001(" + + "\0132J.google.pubsub.v1.IngestionFailureEve" + + "nt.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reasonB\t\n" + "\007failure\">\n\r" + "JavaScriptUDF\022\032\n\r" + "function_name\030\001 \001(\tB\003\340A\002\022\021\n" + "\004code\030\002 \001(\tB\003\340A\002\"\216\001\n" + "\020MessageTransform\022>\n" - + "\016javascript_udf\030\002 \001(" - + "\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + + "\016javascript_udf\030\002" + + " \001(\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" + "\ttransform\"\216\006\n" + "\005Topic\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\0228\n" + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n" - + "\026message_storage_policy\030\003" - + " \001(\0132&.google.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" + + "\026message_storage_policy\030\003 \001(\0132&.goog" + + "le.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" + "\014kms_key_name\030\005 \001(\tB\003\340A\001\022>\n" + "\017schema_settings\030\006 \001(\0132" + " .google.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\r" @@ -592,13 +610,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\034\n" + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" - + "\033pubsub.googleapis.com/Topic\022!projects/{project}/" - + "topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "\033pubsub.googleapis.com/Topic\022!projec" + + "ts/{project}/topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + "PubsubMessage\022\021\n" + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" - + "attributes\030\002" - + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n" - + "\n" + + "attributes\030\002 \003(\0132/.g" + + "oogle.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + "message_id\030\003 \001(\t\0220\n" + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" @@ -620,7 +637,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ListTopicsRequest\022D\n" + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + "page_token\030\003 \001(\tB\003\340A\001\"`\n" + "\022ListTopicsResponse\022,\n" + "\006topics\030\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n" @@ -630,8 +648,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033pubsub.googleapis.com/Topic\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\201\001\n" - + "\036ListTopicSubscriptionsResponse\022A\n" - + "\r" + + "\036ListTopicSubscriptionsResponse\022A\n\r" + "subscriptions\030\001 \003(\tB*\340A\001\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\200\001\n" @@ -658,14 +675,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + "\017bigquery_config\030\022 \001(\0132" + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n" - + "\024cloud_storage_config\030\026" - + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + + "\024cloud_storage_config\030\026 \001(\0132" + + "$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + "\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n" + "\025retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n" + "\032message_retention_duration\030\010" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?\n" - + "\006labels\030\t" - + " \003(\0132*.google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + + "\006labels\030\t \003(\0132*." + + "google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + "\027enable_message_ordering\030\n" + " \001(\010B\003\340A\001\022B\n" + "\021expiration_policy\030\013" @@ -680,8 +697,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " topic_message_retention_duration\030\021" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228\n" + "\005state\030\023 \001(\0162$.google.pubsub.v1.Subscription.StateB\003\340A\003\022i\n" - + "\037analytics_hub_subscription_info\030\027" - + " \001(\0132;.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + + "\037analytics_hub_subscription_info\030\027 \001(\0132;.google.pubsub.v1.S" + + "ubscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + "\022message_transforms\030\031" + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\032O\n" + "\034AnalyticsHubSubscriptionInfo\022\024\n" @@ -694,8 +711,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub.googleapis.co" - + "m/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub." + + "googleapis.com/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" @@ -708,12 +725,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + "PushConfig\022\032\n\r" + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" - + "attributes\030\002 \003(\0132,." - + "google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" - + "oidc_token\030\003" - + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" - + "\016pubsub_wrapper\030\004" - + " \001(\0132*.google.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + + "attributes\030\002" + + " \003(\0132,.google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "oidc_token\030\003 \001(" + + "\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + + "\016pubsub_wrapper\030\004 \001(\0132*.googl" + + "e.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + "no_wrapper\030\005" + " \001(\0132&.google.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n" + "\tOidcToken\022\"\n" @@ -732,8 +749,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n" + "\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n" - + "\005state\030\005" - + " \001(\0162&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + + "\005state\030\005 \001(\0162&.g" + + "oogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n" + "\005State\022\025\n" @@ -749,10 +766,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + "\030filename_datetime_format\030\n" + " \001(\tB\003\340A\001\022K\n" - + "\013text_config\030\004 \001(\013" - + "2/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" - + "\013avro_config\030\005 \001(\0132/." - + "google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\013text_config\030\004" + + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005" + + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + "\014max_duration\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" @@ -774,8 +791,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "output_format\"|\n" + "\017ReceivedMessage\022\023\n" + "\006ack_id\030\001 \001(\tB\003\340A\001\0225\n" - + "\007message\030\002 \001(" - + "\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + + "\007message\030\002" + + " \001(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" + "\026GetSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -832,12 +849,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 " - + "\001(\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132E.go" - + "ogle.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google.pubsub" - + ".v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\030acknowledge_confirmation\030\005 \001(\0132?.google.pubsub.v1.Stre" + + "amingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.google.pubsub.v1.StreamingPul" + + "lResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>." + + "google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -855,8 +872,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 \003(\0132" - + "3.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\003" + + " \003(\01323.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" @@ -869,146 +886,141 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + "\033pubsub.googleapis.com/Topic\0224\n" + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004" - + " \003(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004 \003" + + "(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" + "\tsnapshots2\010snapshot\"N\n" - + "\022GetSnapshotRequest\0228\n" - + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" - + "\036pubsub.googleapis.com/Snapshot\"\215\001\n" - + "\024ListSnapshotsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n" - + "+cloudresourcemanager.googleapis.com/Project\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"i\n" - + "\025ListSnapshotsResponse\0222\n" - + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n" - + "\025DeleteSnapshotRequest\0228\n" - + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" - + "\036pubsub.googleapis.com/Snapshot\"\306\001\n" - + "\013SeekRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022/\n" - + "\004time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n" - + "\010snapshot\030\003 \001(\tB&\340A\001\372A \n" - + "\036pubsub.googleapis.com/SnapshotH\000B\010\n" - + "\006target\"\016\n" - + "\014SeekResponse2\270\013\n" - + "\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsu", - "b.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=pro" - + "jects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic\022$.g" - + "oogle.pubsub.v1.UpdateTopicRequest\032\027.goo" - + "gle.pubsub.v1.Topic\"C\332A\021topic,update_mas" - + "k\202\323\344\223\002)2$/v1/{topic.name=projects/*/topi" - + "cs/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub.v1." - + "PublishRequest\032!.google.pubsub.v1.Publis" - + "hResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/" - + "{topic=projects/*/topics/*}:publish:\001*\022w" - + "\n\010GetTopic\022!.google.pubsub.v1.GetTopicRe" - + "quest\032\027.google.pubsub.v1.Topic\"/\332A\005topic" - + "\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022" - + "\212\001\n\nListTopics\022#.google.pubsub.v1.ListTo" - + "picsRequest\032$.google.pubsub.v1.ListTopic" - + "sResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{projec" - + "t=projects/*}/topics\022\272\001\n\026ListTopicSubscr" - + "iptions\022/.google.pubsub.v1.ListTopicSubs" - + "criptionsRequest\0320.google.pubsub.v1.List" - + "TopicSubscriptionsResponse\"=\332A\005topic\202\323\344\223" - + "\002/\022-/v1/{topic=projects/*/topics/*}/subs" - + "criptions\022\252\001\n\022ListTopicSnapshots\022+.googl" - + "e.pubsub.v1.ListTopicSnapshotsRequest\032,." - + "google.pubsub.v1.ListTopicSnapshotsRespo" - + "nse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects" - + "/*/topics/*}/snapshots\022|\n\013DeleteTopic\022$." - + "google.pubsub.v1.DeleteTopicRequest\032\026.go" - + "ogle.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1" - + "/{topic=projects/*/topics/*}\022\255\001\n\022DetachS" - + "ubscription\022+.google.pubsub.v1.DetachSub" - + "scriptionRequest\032,.google.pubsub.v1.Deta" - + "chSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/{sub" - + "scription=projects/*/subscriptions/*}:de" - + "tach\032p\312A\025pubsub.googleapis.com\322AUhttps:/" - + "/www.googleapis.com/auth/cloud-platform," - + "https://www.googleapis.com/auth/pubsub2\322" - + "\025\n\nSubscriber\022\264\001\n\022CreateSubscription\022\036.g" - + "oogle.pubsub.v1.Subscription\032\036.google.pu" - + "bsub.v1.Subscription\"^\332A+name,topic,push" - + "_config,ack_deadline_seconds\202\323\344\223\002*\032%/v1/" - + "{name=projects/*/subscriptions/*}:\001*\022\241\001\n" - + "\017GetSubscription\022(.google.pubsub.v1.GetS" - + "ubscriptionRequest\032\036.google.pubsub.v1.Su" - + "bscription\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{" - + "subscription=projects/*/subscriptions/*}" - + "\022\273\001\n\022UpdateSubscription\022+.google.pubsub." - + "v1.UpdateSubscriptionRequest\032\036.google.pu" - + "bsub.v1.Subscription\"X\332A\030subscription,up" - + "date_mask\202\323\344\223\002722/v1/{subscription.name=" - + "projects/*/subscriptions/*}:\001*\022\246\001\n\021ListS" - + "ubscriptions\022*.google.pubsub.v1.ListSubs" - + "criptionsRequest\032+.google.pubsub.v1.List" - + "SubscriptionsResponse\"8\332A\007project\202\323\344\223\002(\022" - + "&/v1/{project=projects/*}/subscriptions\022" - + "\237\001\n\022DeleteSubscription\022+.google.pubsub.v" - + "1.DeleteSubscriptionRequest\032\026.google.pro" - + "tobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/" - + "{subscription=projects/*/subscriptions/*" - + "}\022\317\001\n\021ModifyAckDeadline\022*.google.pubsub." - + "v1.ModifyAckDeadlineRequest\032\026.google.pro" - + "tobuf.Empty\"v\332A)subscription,ack_ids,ack" - + "_deadline_seconds\202\323\344\223\002D\"?/v1/{subscripti" - + "on=projects/*/subscriptions/*}:modifyAck" - + "Deadline:\001*\022\250\001\n\013Acknowledge\022$.google.pub" - + "sub.v1.AcknowledgeRequest\032\026.google.proto" - + "buf.Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>" - + "\"9/v1/{subscription=projects/*/subscript" - + "ions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.google" - + ".pubsub.v1.PullRequest\032\036.google.pubsub.v" - + "1.PullResponse\"\210\001\332A,subscription,return_" - + "immediately,max_messages\332A\031subscription," - + "max_messages\202\323\344\223\0027\"2/v1/{subscription=pr" - + "ojects/*/subscriptions/*}:pull:\001*\022f\n\rStr" - + "eamingPull\022&.google.pubsub.v1.StreamingP" - + "ullRequest\032\'.google.pubsub.v1.StreamingP" - + "ullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConfig\022)" - + ".google.pubsub.v1.ModifyPushConfigReques" - + "t\032\026.google.protobuf.Empty\"d\332A\030subscripti" - + "on,push_config\202\323\344\223\002C\">/v1/{subscription=" - + "projects/*/subscriptions/*}:modifyPushCo" - + "nfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pubsub." - + "v1.GetSnapshotRequest\032\032.google.pubsub.v1" - + ".Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snaps" - + "hot=projects/*/snapshots/*}\022\226\001\n\rListSnap" - + "shots\022&.google.pubsub.v1.ListSnapshotsRe" - + "quest\032\'.google.pubsub.v1.ListSnapshotsRe" - + "sponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=p" - + "rojects/*}/snapshots\022\227\001\n\016CreateSnapshot\022" - + "\'.google.pubsub.v1.CreateSnapshotRequest" - + "\032\032.google.pubsub.v1.Snapshot\"@\332A\021name,su" - + "bscription\202\323\344\223\002&\032!/v1/{name=projects/*/s" - + "napshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'.goog" - + "le.pubsub.v1.UpdateSnapshotRequest\032\032.goo" - + "gle.pubsub.v1.Snapshot\"L\332A\024snapshot,upda" - + "te_mask\202\323\344\223\002/2*/v1/{snapshot.name=projec" - + "ts/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnapshot\022" - + "\'.google.pubsub.v1.DeleteSnapshotRequest" - + "\032\026.google.protobuf.Empty\"8\332A\010snapshot\202\323\344" - + "\223\002\'*%/v1/{snapshot=projects/*/snapshots/" - + "*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekReque" - + "st\032\036.google.pubsub.v1.SeekResponse\"=\202\323\344\223" - + "\0027\"2/v1/{subscription=projects/*/subscri" - + "ptions/*}:seek:\001*\032p\312A\025pubsub.googleapis." + + "\022Get", + "SnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A" + + " \n\036pubsub.googleapis.com/Snapshot\"\215\001\n\024Li" + + "stSnapshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002" + + "\372A-\n+cloudresourcemanager.googleapis.com" + + "/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsRespon" + + "se\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1" + + ".SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB" + + "\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapsho" + + "t\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/S" + + "napshot\"\306\001\n\013SeekRequest\022@\n\014subscription\030" + + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" + + "scription\022/\n\004time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A" + + "\001\372A \n\036pubsub.googleapis.com/SnapshotH\000B\010" + + "\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q" + + "\n\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027" + + ".google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036" + + "/v1/{name=projects/*/topics/*}:\001*\022\221\001\n\013Up" + + "dateTopic\022$.google.pubsub.v1.UpdateTopic" + + "Request\032\027.google.pubsub.v1.Topic\"C\332A\021top" + + "ic,update_mask\202\323\344\223\002)2$/v1/{topic.name=pr" + + "ojects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .goog" + + "le.pubsub.v1.PublishRequest\032!.google.pub" + + "sub.v1.PublishResponse\"C\332A\016topic,message" + + "s\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}" + + ":publish:\001*\022w\n\010GetTopic\022!.google.pubsub." + + "v1.GetTopicRequest\032\027.google.pubsub.v1.To" + + "pic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects" + + "/*/topics/*}\022\212\001\n\nListTopics\022#.google.pub" + + "sub.v1.ListTopicsRequest\032$.google.pubsub" + + ".v1.ListTopicsResponse\"1\332A\007project\202\323\344\223\002!" + + "\022\037/v1/{project=projects/*}/topics\022\272\001\n\026Li" + + "stTopicSubscriptions\022/.google.pubsub.v1." + + "ListTopicSubscriptionsRequest\0320.google.p" + + "ubsub.v1.ListTopicSubscriptionsResponse\"" + + "=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/t" + + "opics/*}/subscriptions\022\252\001\n\022ListTopicSnap" + + "shots\022+.google.pubsub.v1.ListTopicSnapsh" + + "otsRequest\032,.google.pubsub.v1.ListTopicS" + + "napshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{t" + + "opic=projects/*/topics/*}/snapshots\022|\n\013D" + + "eleteTopic\022$.google.pubsub.v1.DeleteTopi" + + "cRequest\032\026.google.protobuf.Empty\"/\332A\005top" + + "ic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*" + + "}\022\255\001\n\022DetachSubscription\022+.google.pubsub" + + ".v1.DetachSubscriptionRequest\032,.google.p" + + "ubsub.v1.DetachSubscriptionResponse\"<\202\323\344" + + "\223\0026\"4/v1/{subscription=projects/*/subscr" + + "iptions/*}:detach\032p\312A\025pubsub.googleapis." + "com\322AUhttps://www.googleapis.com/auth/cl" + "oud-platform,https://www.googleapis.com/" - + "auth/pubsubB\252\001\n\024com.google.pubsub.v1B\013Pu" - + "bsubProtoP\001Z5cloud.google.com/go/pubsub/" - + "v2/apiv1/pubsubpb;pubsubpb\252\002\026Google.Clou" - + "d.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031G" - + "oogle::Cloud::PubSub::V1b\006proto3" + + "auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSub" + + "scription\022\036.google.pubsub.v1.Subscriptio" + + "n\032\036.google.pubsub.v1.Subscription\"^\332A+na" + + "me,topic,push_config,ack_deadline_second" + + "s\202\323\344\223\002*\032%/v1/{name=projects/*/subscripti" + + "ons/*}:\001*\022\241\001\n\017GetSubscription\022(.google.p" + + "ubsub.v1.GetSubscriptionRequest\032\036.google" + + ".pubsub.v1.Subscription\"D\332A\014subscription" + + "\202\323\344\223\002/\022-/v1/{subscription=projects/*/sub" + + "scriptions/*}\022\273\001\n\022UpdateSubscription\022+.g" + + "oogle.pubsub.v1.UpdateSubscriptionReques" + + "t\032\036.google.pubsub.v1.Subscription\"X\332A\030su" + + "bscription,update_mask\202\323\344\223\002722/v1/{subsc" + + "ription.name=projects/*/subscriptions/*}" + + ":\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsu" + + "b.v1.ListSubscriptionsRequest\032+.google.p" + + "ubsub.v1.ListSubscriptionsResponse\"8\332A\007p" + + "roject\202\323\344\223\002(\022&/v1/{project=projects/*}/s" + + "ubscriptions\022\237\001\n\022DeleteSubscription\022+.go" + + "ogle.pubsub.v1.DeleteSubscriptionRequest" + + "\032\026.google.protobuf.Empty\"D\332A\014subscriptio" + + "n\202\323\344\223\002/*-/v1/{subscription=projects/*/su" + + "bscriptions/*}\022\317\001\n\021ModifyAckDeadline\022*.g" + + "oogle.pubsub.v1.ModifyAckDeadlineRequest" + + "\032\026.google.protobuf.Empty\"v\332A)subscriptio" + + "n,ack_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v" + + "1/{subscription=projects/*/subscriptions" + + "/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowledge" + + "\022$.google.pubsub.v1.AcknowledgeRequest\032\026" + + ".google.protobuf.Empty\"[\332A\024subscription," + + "ack_ids\202\323\344\223\002>\"9/v1/{subscription=project" + + "s/*/subscriptions/*}:acknowledge:\001*\022\320\001\n\004" + + "Pull\022\035.google.pubsub.v1.PullRequest\032\036.go" + + "ogle.pubsub.v1.PullResponse\"\210\001\332A,subscri" + + "ption,return_immediately,max_messages\332A\031" + + "subscription,max_messages\202\323\344\223\0027\"2/v1/{su" + + "bscription=projects/*/subscriptions/*}:p" + + "ull:\001*\022f\n\rStreamingPull\022&.google.pubsub." + + "v1.StreamingPullRequest\032\'.google.pubsub." + + "v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Modif" + + "yPushConfig\022).google.pubsub.v1.ModifyPus" + + "hConfigRequest\032\026.google.protobuf.Empty\"d" + + "\332A\030subscription,push_config\202\323\344\223\002C\">/v1/{" + + "subscription=projects/*/subscriptions/*}" + + ":modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.g" + + "oogle.pubsub.v1.GetSnapshotRequest\032\032.goo" + + "gle.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002" + + "\'\022%/v1/{snapshot=projects/*/snapshots/*}" + + "\022\226\001\n\rListSnapshots\022&.google.pubsub.v1.Li" + + "stSnapshotsRequest\032\'.google.pubsub.v1.Li" + + "stSnapshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/" + + "v1/{project=projects/*}/snapshots\022\227\001\n\016Cr" + + "eateSnapshot\022\'.google.pubsub.v1.CreateSn" + + "apshotRequest\032\032.google.pubsub.v1.Snapsho" + + "t\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name" + + "=projects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSn" + + "apshot\022\'.google.pubsub.v1.UpdateSnapshot" + + "Request\032\032.google.pubsub.v1.Snapshot\"L\332A\024" + + "snapshot,update_mask\202\323\344\223\002/2*/v1/{snapsho" + + "t.name=projects/*/snapshots/*}:\001*\022\213\001\n\016De" + + "leteSnapshot\022\'.google.pubsub.v1.DeleteSn" + + "apshotRequest\032\026.google.protobuf.Empty\"8\332" + + "A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=projects" + + "/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub" + + ".v1.SeekRequest\032\036.google.pubsub.v1.SeekR" + + "esponse\"=\202\323\344\223\0027\"2/v1/{subscription=proje" + + "cts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsu" + + "b.googleapis.com\322AUhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/pubsubB\252\001\n\024com.google." + + "pubsub.v1B\013PubsubProtoP\001Z5cloud.google.c" + + "om/go/pubsub/v2/apiv1/pubsubpb;pubsubpb\252" + + "\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Cloud\\" + + "PubSub\\V1\352\002\031Google::Cloud::PubSub::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1190,8 +1202,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor, new java.lang.String[] {}); - internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor = internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); + internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor, + new java.lang.String[] {}); + internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor, @@ -1202,10 +1220,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AvroFailureReason", "ApiViolationReason", "SchemaViolationReason", + "MessageTransformationFailureReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor, @@ -1216,10 +1235,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offset", "ApiViolationReason", "SchemaViolationReason", + "MessageTransformationFailureReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(6); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor, @@ -1230,10 +1250,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offset", "ApiViolationReason", "SchemaViolationReason", + "MessageTransformationFailureReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(6); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(7); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor, @@ -1244,15 +1265,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Offset", "ApiViolationReason", "SchemaViolationReason", + "MessageTransformationFailureReason", "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(7); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(8); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor, new java.lang.String[] { - "StreamArn", "PartitionKey", "SequenceNumber", "SchemaViolationReason", "Reason", + "StreamArn", + "PartitionKey", + "SequenceNumber", + "SchemaViolationReason", + "MessageTransformationFailureReason", + "Reason", }); internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = getDescriptor().getMessageTypes().get(5); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index a687600cc8f9..330b0ece6e25 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
      * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1954 + * google/pubsub/v1/pubsub.proto;l=1983 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { *
      * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1954 + * google/pubsub/v1/pubsub.proto;l=1983 * @return The returnImmediately. */ @java.lang.Override @@ -727,7 +727,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1954 + * google/pubsub/v1/pubsub.proto;l=1983 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -758,7 +758,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1954 + * google/pubsub/v1/pubsub.proto;l=1983 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 12a8c09bb588..4f1cb824e045 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1954 + * google/pubsub/v1/pubsub.proto;l=1983 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 1a67990a5eff..677345113220 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -4300,7 +4300,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -4319,7 +4319,7 @@ public boolean hasAcknowledgeConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -4341,7 +4341,7 @@ public boolean hasAcknowledgeConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -4365,7 +4365,7 @@ public boolean hasAcknowledgeConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -4384,7 +4384,7 @@ public boolean hasModifyAckDeadlineConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -4407,7 +4407,7 @@ public boolean hasModifyAckDeadlineConfirmation() { * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -5422,7 +5422,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5440,7 +5440,7 @@ public boolean hasAcknowledgeConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5466,7 +5466,7 @@ public boolean hasAcknowledgeConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5493,7 +5493,7 @@ public Builder setAcknowledgeConfirmation( * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5518,7 +5518,7 @@ public Builder setAcknowledgeConfirmation( * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5552,7 +5552,7 @@ public Builder mergeAcknowledgeConfirmation( * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5575,7 +5575,7 @@ public Builder clearAcknowledgeConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5594,7 +5594,7 @@ public Builder clearAcknowledgeConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5618,7 +5618,7 @@ public Builder clearAcknowledgeConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5655,7 +5655,7 @@ public Builder clearAcknowledgeConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5673,7 +5673,7 @@ public boolean hasModifyAckDeadlineConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5699,7 +5699,7 @@ public boolean hasModifyAckDeadlineConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5726,7 +5726,7 @@ public Builder setModifyAckDeadlineConfirmation( * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5751,7 +5751,7 @@ public Builder setModifyAckDeadlineConfirmation( * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5785,7 +5785,7 @@ public Builder mergeModifyAckDeadlineConfirmation( * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5808,7 +5808,7 @@ public Builder clearModifyAckDeadlineConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5827,7 +5827,7 @@ public Builder clearModifyAckDeadlineConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * @@ -5851,7 +5851,7 @@ public Builder clearModifyAckDeadlineConfirmation() { * *
            * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -     * set to `true`.
      +     * set to `true` and is not guaranteed to be populated.
            * 
      * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 7d885e2578de..1a6fedfa83ff 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -95,7 +95,7 @@ public interface StreamingPullResponseOrBuilder * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -111,7 +111,7 @@ public interface StreamingPullResponseOrBuilder * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -127,7 +127,7 @@ public interface StreamingPullResponseOrBuilder * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -142,7 +142,7 @@ public interface StreamingPullResponseOrBuilder * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -158,7 +158,7 @@ public interface StreamingPullResponseOrBuilder * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * @@ -175,7 +175,7 @@ public interface StreamingPullResponseOrBuilder * *
          * Optional. This field will only be set if `enable_exactly_once_delivery` is
      -   * set to `true`.
      +   * set to `true` and is not guaranteed to be populated.
          * 
      * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 2792133a4eaa..5a8bb0768745 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -553,6 +553,10 @@ message IngestionFailureEvent { // validation violation. message SchemaViolationReason {} + // Set when a Pub/Sub message fails to get published due to a message + // transformation error. + message MessageTransformationFailureReason {} + // Failure when ingesting from a Cloud Storage source. message CloudStorageFailure { // Optional. Name of the Cloud Storage bucket used for ingestion. @@ -580,6 +584,11 @@ message IngestionFailureEvent { // Optional. The Pub/Sub message failed schema validation. SchemaViolationReason schema_violation_reason = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure encountered when applying a message transformation to + // the Pub/Sub message. + MessageTransformationFailureReason message_transformation_failure_reason = + 8 [(google.api.field_behavior) = OPTIONAL]; } } @@ -608,6 +617,11 @@ message IngestionFailureEvent { // Optional. The Pub/Sub message failed schema validation. SchemaViolationReason schema_violation_reason = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure encountered when applying a message transformation to + // the Pub/Sub message. + MessageTransformationFailureReason message_transformation_failure_reason = + 7 [(google.api.field_behavior) = OPTIONAL]; } } @@ -636,6 +650,11 @@ message IngestionFailureEvent { // Optional. The Pub/Sub message failed schema validation. SchemaViolationReason schema_violation_reason = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure encountered when applying a message transformation to + // the Pub/Sub message. + MessageTransformationFailureReason message_transformation_failure_reason = + 7 [(google.api.field_behavior) = OPTIONAL]; } } @@ -664,6 +683,11 @@ message IngestionFailureEvent { // Optional. The Pub/Sub message failed schema validation. SchemaViolationReason schema_violation_reason = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure encountered when applying a message transformation to + // the Pub/Sub message. + MessageTransformationFailureReason message_transformation_failure_reason = + 7 [(google.api.field_behavior) = OPTIONAL]; } } @@ -683,6 +707,11 @@ message IngestionFailureEvent { // Optional. The Pub/Sub message failed schema validation. SchemaViolationReason schema_violation_reason = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Failure encountered when applying a message transformation to + // the Pub/Sub message. + MessageTransformationFailureReason message_transformation_failure_reason = + 5 [(google.api.field_behavior) = OPTIONAL]; } } @@ -2154,12 +2183,12 @@ message StreamingPullResponse { [(google.api.field_behavior) = OPTIONAL]; // Optional. This field will only be set if `enable_exactly_once_delivery` is - // set to `true`. + // set to `true` and is not guaranteed to be populated. AcknowledgeConfirmation acknowledge_confirmation = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. This field will only be set if `enable_exactly_once_delivery` is - // set to `true`. + // set to `true` and is not guaranteed to be populated. ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(google.api.field_behavior) = OPTIONAL]; From 134f3a802448a22705983cf66c36a8485fa77798 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 2 Jul 2025 20:25:05 +0200 Subject: [PATCH 2164/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.52.0 (#2467) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4da77cb860db..cca86d8b6499 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.51.0 + 2.52.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f19d599a2a77..85c6bff9b86e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.51.0 + 2.52.0 com.google.cloud From bb32884d995a429bf55e1eb9512ca2d3906027c7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 2 Jul 2025 20:25:12 +0200 Subject: [PATCH 2165/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.53.2 (#2469) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index cca86d8b6499..8ab514c00926 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.53.1 + 2.53.2 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 85c6bff9b86e..1fd3ad923882 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.53.1 + 2.53.2 com.google.cloud.opentelemetry From 0370c1b3c8662f4e3b26bb5d75e4a1c635a836c0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 7 Jul 2025 17:36:17 +0200 Subject: [PATCH 2166/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.63.0 (#2473) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 75cc4aacd794..07d1ef433117 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.62.0 + 26.63.0 pom import From 7c2ef7ef918274e9dc56c6716879e9030902c607 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 7 Jul 2025 11:36:41 -0400 Subject: [PATCH 2167/2363] chore: Update generation configuration at Fri Jul 4 02:35:50 UTC 2025 (#2472) * chore: Update generation configuration at Sat Jun 28 02:34:06 UTC 2025 * chore: Update generation configuration at Sun Jun 29 02:43:28 UTC 2025 * chore: Update generation configuration at Tue Jul 1 02:44:51 UTC 2025 * chore: Update generation configuration at Wed Jul 2 02:36:11 UTC 2025 * chore: Update generation configuration at Thu Jul 3 02:37:02 UTC 2025 * chore: Update generation configuration at Fri Jul 4 02:35:50 UTC 2025 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index b6e7827d2b49..0f336310913f 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: 9ae4ee8191efa397c23f8ec13deb5d8e9bc69f02 +googleapis_commitish: f9d6fe4a6ad9ed89dfc315f284124d2104377940 libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From 98d5a057f21d700c928d0ef8c59fee9e2dfb6b6c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 7 Jul 2025 17:37:06 +0200 Subject: [PATCH 2168/2363] deps: update googleapis/sdk-platform-java action to v2.60.0 (#2471) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index c01f3faec3af..7838b82ee38c 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 0e800c4e7d1589827911973b02d245e899c08335 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 8 Jul 2025 09:33:15 -0400 Subject: [PATCH 2169/2363] chore: Update generation configuration at Tue Jul 8 02:36:59 UTC 2025 (#2474) * chore: Update generation configuration at Tue Jul 8 02:36:59 UTC 2025 * chore: generate libraries at Tue Jul 8 02:37:28 UTC 2025 --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 7838b82ee38c..c01f3faec3af 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/README.md b/java-pubsub/README.md index e95c7dac3cd9..cf7f4e7ee301 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.62.0 + 26.63.0 pom import diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 0f336310913f..af9df72e2c20 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.59.0 -googleapis_commitish: f9d6fe4a6ad9ed89dfc315f284124d2104377940 +googleapis_commitish: cd7fed30706c129f2bca11d5b2ef18f4ad18a7ac libraries_bom_version: 26.61.0 libraries: - api_shortname: pubsub From e3b3430f1144280a59b417b9924c1ea2259f0151 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Jul 2025 15:50:51 +0200 Subject: [PATCH 2170/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 (#2477) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 895aae407845..5885bfef4a53 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8c13ed2e429f..c3d39cc9ed93 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.50.0 + 3.50.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a46a71466ed4..c98d64031910 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.50.0 + 3.50.1 From 68e96c3bd407f61e8b600570257c347d615162f7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Jul 2025 15:52:50 +0200 Subject: [PATCH 2171/2363] deps: update googleapis/sdk-platform-java action to v2.60.1 (#2475) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index c01f3faec3af..f611b78e296d 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.59.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From db6a0ab7c649df55cc6483ea73872dbe7c470664 Mon Sep 17 00:00:00 2001 From: Jin Seop Kim Date: Thu, 10 Jul 2025 11:42:07 -0700 Subject: [PATCH 2172/2363] feat: next release from main branch is 1.141.0 (#2481) --- java-pubsub/.github/release-please.yml | 4 ++++ java-pubsub/.github/sync-repo-settings.yaml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index c2b8a4cdba67..c71b9317fbd5 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -46,3 +46,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.137.x + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.140.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 310f09976820..3e4d39bcd69b 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -196,6 +196,25 @@ branchProtectionRules: - javadoc - library_generation - unmanaged_dependency_check + - pattern: 1.140.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (17) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - 'Kokoro - Test: Java GraalVM Native Image A' + - 'Kokoro - Test: Java GraalVM Native Image B' + - 'Kokoro - Test: Java GraalVM Native Image C' + - javadoc + - library_generation + - unmanaged_dependency_check permissionRules: - team: yoshi-admins permission: admin From 010bcd233289b889398b5cce95db7ba0ba1e5664 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 10 Jul 2025 21:32:10 +0200 Subject: [PATCH 2173/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.58.1 (#2476) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8ab514c00926..7776eaf3786e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.58.0 + 2.58.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1fd3ad923882..83f3492a8843 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.58.0 + 2.58.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 07d1ef433117..bd0290e2abbd 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.58.0 + 2.58.1 tests From 9100951418b41143bbd300521ed8013d25938e50 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 10 Jul 2025 21:35:34 +0200 Subject: [PATCH 2174/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.140.2 (#2466) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7776eaf3786e..1aeb7a45f5ed 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2 From e8aeb750bbdd4503767f820e00faba421d46b7b0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 11:17:50 -0400 Subject: [PATCH 2175/2363] chore(main): release 1.140.3-SNAPSHOT (#2465) * chore(main): release 1.140.3-SNAPSHOT * chore: generate libraries at Thu Jul 10 19:36:19 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index cf7f4e7ee301..91582a3df473 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.140.1 + 1.140.2 ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index c3d39cc9ed93..75527a324def 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.2 + 1.140.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.2 + 1.140.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2259f5aff95c..f582aeafb2cd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.2 + 1.140.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.2 + 1.140.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6e53bdc889ee..fc88dc2f82b8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.2 + 1.140.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c98d64031910..c03041a97f54 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.2 + 1.140.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.140.2 + 1.140.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 757b7e5d1bf2..6a14fcb4f15e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.2 + 1.122.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.2 + 1.140.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 83f3492a8843..1c4668c33602 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.2 + 1.140.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9086137950fe..30a1ce2fa5e6 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.2:1.140.2 -grpc-google-cloud-pubsub-v1:1.122.2:1.122.2 -proto-google-cloud-pubsub-v1:1.122.2:1.122.2 +google-cloud-pubsub:1.140.2:1.140.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.122.2:1.122.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.122.2:1.122.3-SNAPSHOT From d14a3add2fc84190e2eb361028540abc33ed95c3 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Fri, 11 Jul 2025 16:52:42 -0400 Subject: [PATCH 2176/2363] chore: update generator config to 2.60.1 (#2485) * chore: update generator config to 2.60.1 * chore: generate libraries at Fri Jul 11 20:03:15 UTC 2025 --------- Co-authored-by: cloud-java-bot --- java-pubsub/.github/scripts/update_generation_config.sh | 6 ++++-- java-pubsub/.github/workflows/update_generation_config.yaml | 3 +++ java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/generation_config.yaml | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/java-pubsub/.github/scripts/update_generation_config.sh b/java-pubsub/.github/scripts/update_generation_config.sh index fff56bf5ddf3..3b890a76b24e 100644 --- a/java-pubsub/.github/scripts/update_generation_config.sh +++ b/java-pubsub/.github/scripts/update_generation_config.sh @@ -15,8 +15,10 @@ set -e function get_latest_released_version() { local group_id=$1 local artifact_id=$2 - json_content=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json") - latest=$(jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' <<< "${json_content}" | sort -V | tail -n 1) + group_id_url_path="$(sed 's|\.|/|g' <<< "${group_id}")" + url="https://repo1.maven.org/maven2/${group_id_url_path}/${artifact_id}/maven-metadata.xml" + xml_content=$(curl -s --fail "${url}") + latest=$(xmllint --xpath 'metadata/versioning/latest/text()' - <<< "${xml_content}") if [[ -z "${latest}" ]]; then echo "The latest version of ${group_id}:${artifact_id} is empty." echo "The returned json from maven.org is invalid: ${json_content}" diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index cd2d5fd5a8e4..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -30,6 +30,9 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + - name: Install Dependencies + shell: bash + run: sudo apt-get update && sudo apt-get install -y libxml2-utils - name: Update params in generation config to latest shell: bash run: | diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 5cc939cf9090..a094c860ad5b 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index fd00159184a1..67607b066063 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 424494b02e02..657b13dfd381 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.49.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index af9df72e2c20..ddf4fab9314e 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,4 +1,4 @@ -gapic_generator_version: 2.59.0 +gapic_generator_version: 2.60.1 googleapis_commitish: cd7fed30706c129f2bca11d5b2ef18f4ad18a7ac libraries_bom_version: 26.61.0 libraries: From af0db7ab82dbc1adfab25215eaa852b46d40b26f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 10:51:53 -0400 Subject: [PATCH 2177/2363] chore(main): release 1.141.0 (#2483) * chore(main): release 1.141.0 * chore: generate libraries at Fri Jul 11 20:53:39 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 23 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 44 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index e739db5075be..a0a8988592b9 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## [1.141.0](https://github.com/googleapis/java-pubsub/compare/v1.140.2...v1.141.0) (2025-07-11) + + +### Features + +* Add MessageTransformationFailureReason to IngestionFailureEvent ([8271399](https://github.com/googleapis/java-pubsub/commit/8271399cc6348f69ba034b676cce2aa7592122a4)) +* Next release from main branch is 1.141.0 ([#2481](https://github.com/googleapis/java-pubsub/issues/2481)) ([bd9f385](https://github.com/googleapis/java-pubsub/commit/bd9f3850efa77ce759b4f281aecd9645666cb0f7)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.60.1 ([c9ef2cd](https://github.com/googleapis/java-pubsub/commit/c9ef2cda2c6ad20d5e57fe3ccf69f845f7ef36b7)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.52.0 ([#2467](https://github.com/googleapis/java-pubsub/issues/2467)) ([fe08a6f](https://github.com/googleapis/java-pubsub/commit/fe08a6f1f6ee18e97c752f82786016999f6ab12c)) +* Update dependency com.google.cloud:google-cloud-core to v2.58.1 ([#2476](https://github.com/googleapis/java-pubsub/issues/2476)) ([96a2354](https://github.com/googleapis/java-pubsub/commit/96a23544fce609c7b19a00638a767926c304d3f8)) +* Update dependency com.google.cloud:google-cloud-storage to v2.53.2 ([#2469](https://github.com/googleapis/java-pubsub/issues/2469)) ([fa51a01](https://github.com/googleapis/java-pubsub/commit/fa51a01ed39393b7cad25fb39a1c87099def830a)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#2477](https://github.com/googleapis/java-pubsub/issues/2477)) ([e1657cb](https://github.com/googleapis/java-pubsub/commit/e1657cbeae5f2c3c9680ef6b5ff2b1ea5549f4ba)) +* Update googleapis/sdk-platform-java action to v2.60.0 ([#2471](https://github.com/googleapis/java-pubsub/issues/2471)) ([2b0e8e0](https://github.com/googleapis/java-pubsub/commit/2b0e8e0b58432f0975c15d0d01f185dc81de6caf)) +* Update googleapis/sdk-platform-java action to v2.60.1 ([#2475](https://github.com/googleapis/java-pubsub/issues/2475)) ([e7c0b5d](https://github.com/googleapis/java-pubsub/commit/e7c0b5d44f0ad53adfac6ec26572baad54d04dee)) + ## [1.140.2](https://github.com/googleapis/java-pubsub/compare/v1.140.1...v1.140.2) (2025-06-25) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 91582a3df473..4376c27f8bc7 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.140.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.140.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.140.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 75527a324def..96581e244392 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.140.3-SNAPSHOT + 1.141.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.140.3-SNAPSHOT + 1.141.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f582aeafb2cd..1106a8f22f6c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.140.3-SNAPSHOT + 1.141.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.140.3-SNAPSHOT + 1.141.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fc88dc2f82b8..cd6845fcc4a9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.3-SNAPSHOT + 1.141.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index c03041a97f54..9d0517a256eb 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.140.3-SNAPSHOT + 1.141.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 com.google.cloud google-cloud-pubsub - 1.140.3-SNAPSHOT + 1.141.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6a14fcb4f15e..47bf9bf7437b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.122.3-SNAPSHOT + 1.123.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.140.3-SNAPSHOT + 1.141.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1c4668c33602..169936011770 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.140.3-SNAPSHOT + 1.141.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 30a1ce2fa5e6..8c6b2355dee0 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.140.2:1.140.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.122.2:1.122.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.122.2:1.122.3-SNAPSHOT +google-cloud-pubsub:1.141.0:1.141.0 +grpc-google-cloud-pubsub-v1:1.123.0:1.123.0 +proto-google-cloud-pubsub-v1:1.123.0:1.123.0 From d4611c0dd7490ffe14f01f2e5a2ede9ede38be12 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 15 Jul 2025 19:18:08 +0200 Subject: [PATCH 2178/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.53.3 (#2486) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1aeb7a45f5ed..f7c7284b5132 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.53.2 + 2.53.3 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 169936011770..3f03825c50b6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.53.2 + 2.53.3 com.google.cloud.opentelemetry From 458d29a9f6c8beb41521a3e4e4ff8877dafaeff1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 15 Jul 2025 19:18:16 +0200 Subject: [PATCH 2179/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.141.0 (#2488) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f7c7284b5132..f5b505b168c1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.140.2 + 1.141.0 From 106b9ebc80808837b397ef18be4767c224e0c44e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 15 Jul 2025 19:18:55 +0200 Subject: [PATCH 2180/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.53.0 (#2489) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f5b505b168c1..4d198d92387a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.52.0 + 2.53.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3f03825c50b6..caff894c6443 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.52.0 + 2.53.0 com.google.cloud From 1139c0b28cb5dad99696f7f1722ddb3e42055037 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Jul 2025 00:00:42 +0200 Subject: [PATCH 2181/2363] deps: update dependency org.xerial.snappy:snappy-java to v1.1.10.8 (#2492) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4d198d92387a..5f793dfc0786 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -57,7 +57,7 @@ org.xerial.snappy snappy-java - 1.1.10.7 + 1.1.10.8 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index caff894c6443..dd5afff073d5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ org.xerial.snappy snappy-java - 1.1.10.7 + 1.1.10.8 com.google.protobuf diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index bd0290e2abbd..73d85124eadd 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -80,7 +80,7 @@ org.xerial.snappy snappy-java - 1.1.10.7 + 1.1.10.8 com.google.protobuf From f13c058b7c55217163580ccd12869aa78e826413 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Jul 2025 00:57:01 +0200 Subject: [PATCH 2182/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.50.2 (#2494) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 5885bfef4a53..789bdc741736 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.2 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 96581e244392..52641e4855af 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.50.1 + 3.50.2 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9d0517a256eb..b95acbf73673 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.50.1 + 3.50.2 From 5f77e622c4651b09a79a1ee8f7965216a2a96d33 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 23 Jul 2025 00:57:12 +0200 Subject: [PATCH 2183/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.58.2 (#2493) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5f793dfc0786..ad822e1cb1c6 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.58.1 + 2.58.2 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index dd5afff073d5..4b0d47ddeef6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.58.1 + 2.58.2 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 73d85124eadd..a14bffb2c552 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.58.1 + 2.58.2 tests From 319ca2f0c3d2dbc00b56f4d81d2841c6dc1107d3 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Mon, 28 Jul 2025 12:01:58 -0400 Subject: [PATCH 2184/2363] chore: manual update of update_generation_config.sh (#2496) * chore: manual update of update_generation_config.sh * chore: generate libraries at Thu Jul 24 18:22:47 UTC 2025 * Revert "chore: generate libraries at Thu Jul 24 18:22:47 UTC 2025" This reverts commit f0eb4602c2bb0009467e65e7479f6a676e32bcc8. --------- Co-authored-by: cloud-java-bot --- java-pubsub/.github/scripts/update_generation_config.sh | 4 ++-- java-pubsub/.github/workflows/update_generation_config.yaml | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/scripts/update_generation_config.sh b/java-pubsub/.github/scripts/update_generation_config.sh index 3b890a76b24e..a0b95de6c0df 100644 --- a/java-pubsub/.github/scripts/update_generation_config.sh +++ b/java-pubsub/.github/scripts/update_generation_config.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -ex # This script should be run at the root of the repository. # This script is used to update googleapis_commitish, gapic_generator_version, # and libraries_bom_version in generation configuration at the time of running @@ -174,4 +174,4 @@ if [ -z "${pr_num}" ]; then else git push gh pr edit "${pr_num}" --title "${title}" --body "${title}" -fi +fi \ No newline at end of file diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..7b14069ced81 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -18,7 +18,6 @@ on: schedule: - cron: '0 2 * * *' workflow_dispatch: - jobs: update-generation-config: runs-on: ubuntu-24.04 @@ -43,5 +42,4 @@ jobs: --base_branch "${base_branch}" \ --repo ${{ github.repository }} env: - GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - + GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} \ No newline at end of file From 7b96b47e0ade30bc842af593d545688b6df8f5ad Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 28 Jul 2025 18:03:39 +0200 Subject: [PATCH 2185/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.64.0 (#2491) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a14bffb2c552..bca088753966 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.63.0 + 26.64.0 pom import From bbc4e3cd43d8d3f6bada03bbd1617f1ab930de9b Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 28 Jul 2025 12:37:43 -0400 Subject: [PATCH 2186/2363] chore: Update generation configuration at Mon Jul 28 16:03:32 UTC 2025 (#2497) * chore: Update generation configuration at Thu Jul 24 18:23:31 UTC 2025 * chore: generate libraries at Thu Jul 24 18:23:58 UTC 2025 * chore: Update generation configuration at Sat Jul 26 02:39:49 UTC 2025 * chore: Update generation configuration at Mon Jul 28 16:03:32 UTC 2025 * chore: generate libraries at Mon Jul 28 16:23:28 UTC 2025 --- java-pubsub/.github/scripts/update_generation_config.sh | 4 ++-- .../.github/workflows/hermetic_library_generation.yaml | 2 +- java-pubsub/.github/workflows/update_generation_config.yaml | 4 +++- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 4 ++-- java-pubsub/generation_config.yaml | 6 +++--- 8 files changed, 14 insertions(+), 12 deletions(-) diff --git a/java-pubsub/.github/scripts/update_generation_config.sh b/java-pubsub/.github/scripts/update_generation_config.sh index a0b95de6c0df..3b890a76b24e 100644 --- a/java-pubsub/.github/scripts/update_generation_config.sh +++ b/java-pubsub/.github/scripts/update_generation_config.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -ex +set -e # This script should be run at the root of the repository. # This script is used to update googleapis_commitish, gapic_generator_version, # and libraries_bom_version in generation configuration at the time of running @@ -174,4 +174,4 @@ if [ -z "${pr_num}" ]; then else git push gh pr edit "${pr_num}" --title "${title}" --body "${title}" -fi \ No newline at end of file +fi diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index f611b78e296d..5912d6f06913 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.2 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 7b14069ced81..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -18,6 +18,7 @@ on: schedule: - cron: '0 2 * * *' workflow_dispatch: + jobs: update-generation-config: runs-on: ubuntu-24.04 @@ -42,4 +43,5 @@ jobs: --base_branch "${base_branch}" \ --repo ${{ github.repository }} env: - GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} \ No newline at end of file + GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index a094c860ad5b..96b4fed86fbc 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 67607b066063..76f048331494 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 657b13dfd381..277aa2338dd3 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4376c27f8bc7..b63b19479377 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.140.2 + 1.141.0 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.61.0') +implementation platform('com.google.cloud:libraries-bom:26.64.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index ddf4fab9314e..5002d12faea5 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.60.1 -googleapis_commitish: cd7fed30706c129f2bca11d5b2ef18f4ad18a7ac -libraries_bom_version: 26.61.0 +gapic_generator_version: 2.60.2 +googleapis_commitish: 6588689155df35bb46974c477505990f0034f569 +libraries_bom_version: 26.64.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 262431041a8ee7197646da5acca0aab7d95a508c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 13:50:31 -0400 Subject: [PATCH 2187/2363] chore(main): release 1.141.1-SNAPSHOT (#2487) * chore(main): release 1.141.1-SNAPSHOT * chore: generate libraries at Mon Jul 28 16:38:47 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b63b19479377..dff26b3ca185 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.63.0 + 26.64.0 pom import diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 52641e4855af..f8e69eedccae 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.0 + 1.141.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1106a8f22f6c..205240028e52 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.0 + 1.141.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index cd6845fcc4a9..fac3b0a8b208 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.0 + 1.141.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b95acbf73673..f216bf329102 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.0 + 1.141.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 47bf9bf7437b..6be699868d2c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.0 + 1.123.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.0 + 1.141.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4b0d47ddeef6..ebe2705b3a44 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8c6b2355dee0..b8fca6711c9f 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.0:1.141.0 -grpc-google-cloud-pubsub-v1:1.123.0:1.123.0 -proto-google-cloud-pubsub-v1:1.123.0:1.123.0 +google-cloud-pubsub:1.141.0:1.141.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.0:1.123.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.0:1.123.1-SNAPSHOT From 4c2587e4b40fe8be982b76e3dbfdc21722f0d517 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 18:08:27 +0000 Subject: [PATCH 2188/2363] chore(main): release 1.141.1 (#2499) :robot: I have created a release *beep* *boop* --- ## [1.141.1](https://togithub.com/googleapis/java-pubsub/compare/v1.141.0...v1.141.1) (2025-07-28) ### Bug Fixes * **deps:** Update the Java code generator (gapic-generator-java) to 2.60.2 ([bbc4e3c](https://togithub.com/googleapis/java-pubsub/commit/bbc4e3cd43d8d3f6bada03bbd1617f1ab930de9b)) * Remove element_count_limit and request_byte_limit from pubsub_gapic.yaml ([bbc4e3c](https://togithub.com/googleapis/java-pubsub/commit/bbc4e3cd43d8d3f6bada03bbd1617f1ab930de9b)) ### Dependencies * Update dependency com.google.cloud:google-cloud-bigquery to v2.53.0 ([#2489](https://togithub.com/googleapis/java-pubsub/issues/2489)) ([106b9eb](https://togithub.com/googleapis/java-pubsub/commit/106b9ebc80808837b397ef18be4767c224e0c44e)) * Update dependency com.google.cloud:google-cloud-core to v2.58.2 ([#2493](https://togithub.com/googleapis/java-pubsub/issues/2493)) ([5f77e62](https://togithub.com/googleapis/java-pubsub/commit/5f77e622c4651b09a79a1ee8f7965216a2a96d33)) * Update dependency com.google.cloud:google-cloud-storage to v2.53.3 ([#2486](https://togithub.com/googleapis/java-pubsub/issues/2486)) ([d4611c0](https://togithub.com/googleapis/java-pubsub/commit/d4611c0dd7490ffe14f01f2e5a2ede9ede38be12)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.50.2 ([#2494](https://togithub.com/googleapis/java-pubsub/issues/2494)) ([f13c058](https://togithub.com/googleapis/java-pubsub/commit/f13c058b7c55217163580ccd12869aa78e826413)) * Update dependency org.xerial.snappy:snappy-java to v1.1.10.8 ([#2492](https://togithub.com/googleapis/java-pubsub/issues/2492)) ([1139c0b](https://togithub.com/googleapis/java-pubsub/commit/1139c0b28cb5dad99696f7f1722ddb3e42055037)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 17 +++++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 38 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index a0a8988592b9..def6aea7c3a0 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.141.1](https://github.com/googleapis/java-pubsub/compare/v1.141.0...v1.141.1) (2025-07-28) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.60.2 ([7afae21](https://github.com/googleapis/java-pubsub/commit/7afae21e5e3df16742646363ca199ec14c42bc21)) +* Remove element_count_limit and request_byte_limit from pubsub_gapic.yaml ([7afae21](https://github.com/googleapis/java-pubsub/commit/7afae21e5e3df16742646363ca199ec14c42bc21)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.53.0 ([#2489](https://github.com/googleapis/java-pubsub/issues/2489)) ([5a454b9](https://github.com/googleapis/java-pubsub/commit/5a454b9c36419dcfaf79edb1ec1d066b20836f87)) +* Update dependency com.google.cloud:google-cloud-core to v2.58.2 ([#2493](https://github.com/googleapis/java-pubsub/issues/2493)) ([9a1c17e](https://github.com/googleapis/java-pubsub/commit/9a1c17e50e5fc9a807532d289a7f6e8b5d412f59)) +* Update dependency com.google.cloud:google-cloud-storage to v2.53.3 ([#2486](https://github.com/googleapis/java-pubsub/issues/2486)) ([9416cc9](https://github.com/googleapis/java-pubsub/commit/9416cc99f826b80412b0e5eba0068a35b82390c6)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.50.2 ([#2494](https://github.com/googleapis/java-pubsub/issues/2494)) ([9f73ef0](https://github.com/googleapis/java-pubsub/commit/9f73ef0dcaabb4a536741336eb6cfc6601b75f65)) +* Update dependency org.xerial.snappy:snappy-java to v1.1.10.8 ([#2492](https://github.com/googleapis/java-pubsub/issues/2492)) ([a55e214](https://github.com/googleapis/java-pubsub/commit/a55e214ffad8371eb82a1d49b8b1eadcacf15392)) + ## [1.141.0](https://github.com/googleapis/java-pubsub/compare/v1.140.2...v1.141.0) (2025-07-11) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index dff26b3ca185..3534c8cc5dfc 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.1" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f8e69eedccae..e257d934808f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.1-SNAPSHOT + 1.141.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.1-SNAPSHOT + 1.141.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 205240028e52..d53aaf336c7f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.1-SNAPSHOT + 1.141.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.1-SNAPSHOT + 1.141.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fac3b0a8b208..d75ed328a52f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.1-SNAPSHOT + 1.141.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f216bf329102..b982b08a13e9 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.1-SNAPSHOT + 1.141.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 com.google.cloud google-cloud-pubsub - 1.141.1-SNAPSHOT + 1.141.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6be699868d2c..5e2df1ebf884 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1-SNAPSHOT + 1.123.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.1-SNAPSHOT + 1.141.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ebe2705b3a44..228218e16a8d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.1-SNAPSHOT + 1.141.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b8fca6711c9f..14dda3573c1a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.0:1.141.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.0:1.123.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.0:1.123.1-SNAPSHOT +google-cloud-pubsub:1.141.1:1.141.1 +grpc-google-cloud-pubsub-v1:1.123.1:1.123.1 +proto-google-cloud-pubsub-v1:1.123.1:1.123.1 From fb18490644775ee40e83e79c14a773ef60cdd070 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 17:24:24 -0400 Subject: [PATCH 2189/2363] chore(main): release 1.141.2-SNAPSHOT (#2500) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e257d934808f..824e7922edce 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.1 + 1.141.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d53aaf336c7f..15c3e04846a6 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.1 + 1.141.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index d75ed328a52f..bf458a0edd80 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.1 + 1.141.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b982b08a13e9..7c62cb508dcd 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.1 + 1.141.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5e2df1ebf884..5fd4c8522a41 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.1 + 1.123.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.1 + 1.141.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 228218e16a8d..0e889e14d6d0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 14dda3573c1a..506d47cbed51 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.1:1.141.1 -grpc-google-cloud-pubsub-v1:1.123.1:1.123.1 -proto-google-cloud-pubsub-v1:1.123.1:1.123.1 +google-cloud-pubsub:1.141.1:1.141.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.1:1.123.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.1:1.123.2-SNAPSHOT From b9115cabb61c173f2b58662e19a849959c3d35a9 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 4 Aug 2025 17:49:15 -0400 Subject: [PATCH 2190/2363] chore: Update generation configuration at Sat Aug 2 02:39:40 UTC 2025 (#2501) * chore: Update generation configuration at Tue Jul 29 02:50:28 UTC 2025 * chore: Update generation configuration at Wed Jul 30 02:45:20 UTC 2025 * chore: Update generation configuration at Thu Jul 31 02:45:14 UTC 2025 * chore: Update generation configuration at Fri Aug 1 02:51:36 UTC 2025 * chore: Update generation configuration at Sat Aug 2 02:39:40 UTC 2025 * chore: generate libraries at Sat Aug 2 02:40:16 UTC 2025 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3534c8cc5dfc..023476b891b9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.64.0') +implementation platform('com.google.cloud:libraries-bom:26.65.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 5002d12faea5..0e634acc8d1d 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.60.2 -googleapis_commitish: 6588689155df35bb46974c477505990f0034f569 -libraries_bom_version: 26.64.0 +googleapis_commitish: efe27dbe161b24710f4e95415e8f38922ae6f453 +libraries_bom_version: 26.65.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 7f1b126faafa9adf6fcde4347be9a342f086a1d0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 4 Aug 2025 23:53:11 +0200 Subject: [PATCH 2191/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.65.0 (#2504) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index bca088753966..f68fdf60650c 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.64.0 + 26.65.0 pom import From 25932a20f7b1981351551ebcecb523dd5d85b159 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 5 Aug 2025 08:42:10 -0400 Subject: [PATCH 2192/2363] fix: Use a separate cached thread pool for handling ack and modack response callback for EOD-enabled subscriptions (#2505) --- .../v1/StreamingSubscriberConnection.java | 21 +++++++++++++++++-- .../google/cloud/pubsub/v1/Subscriber.java | 14 +++++++++++++ .../v1/StreamingSubscriberConnectionTest.java | 1 + 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 26411942f9a9..6a53b0206a6d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -61,6 +61,8 @@ import java.util.Set; import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.Executor; +import java.util.concurrent.ExecutorService; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; @@ -97,6 +99,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final String subscription; private final SubscriptionName subscriptionNameObject; private final ScheduledExecutorService systemExecutor; + private final ExecutorService eodAckCallbackExecutor; private final MessageDispatcher messageDispatcher; private final FlowControlSettings flowControlSettings; @@ -128,6 +131,7 @@ private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; subscriptionNameObject = SubscriptionName.parse(builder.subscription); systemExecutor = builder.systemExecutor; + eodAckCallbackExecutor = builder.eodAckCallbackExecutor; // We need to set the default stream ack deadline on the initial request, this will be // updated by modack requests in the message dispatcher @@ -455,7 +459,7 @@ private void sendAckOperations( .setSubscription(subscription) .addAllAckIds(ackIdsInRequest) .build()); - ApiFutures.addCallback(ackFuture, callback, directExecutor()); + ApiFutures.addCallback(ackFuture, callback, getCallbackExecutor()); pendingOperations++; } ackOperationsWaiter.incrementPendingCount(pendingOperations); @@ -504,7 +508,7 @@ private void sendModackOperations( .addAllAckIds(ackIdsInRequest) .setAckDeadlineSeconds(modackRequestData.getDeadlineExtensionSeconds()) .build()); - ApiFutures.addCallback(modackFuture, callback, directExecutor()); + ApiFutures.addCallback(modackFuture, callback, getCallbackExecutor()); pendingOperations++; } } @@ -716,6 +720,13 @@ public void run() { }; } + private Executor getCallbackExecutor() { + if (!getExactlyOnceDeliveryEnabled()) { + return directExecutor(); + } + return eodAckCallbackExecutor; + } + /** Builder of {@link StreamingSubscriberConnection StreamingSubscriberConnections}. */ public static final class Builder { private MessageReceiver receiver; @@ -736,6 +747,7 @@ public static final class Builder { private boolean useLegacyFlowControl; private ScheduledExecutorService executor; private ScheduledExecutorService systemExecutor; + private ExecutorService eodAckCallbackExecutor; private ApiClock clock; private boolean enableOpenTelemetryTracing; @@ -826,6 +838,11 @@ public Builder setSystemExecutor(ScheduledExecutorService systemExecutor) { return this; } + public Builder setEodAckCallbackExecutor(ExecutorService eodAckCallbackExecutor) { + this.eodAckCallbackExecutor = eodAckCallbackExecutor; + return this; + } + public Builder setClock(ApiClock clock) { this.clock = clock; return this; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 36ec5dc364cb..49f8098552aa 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -51,6 +51,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; +import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ThreadFactory; @@ -150,6 +151,9 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac // An instantiation of the SystemExecutorProvider used for processing acks // and other system actions. @Nullable private final ScheduledExecutorService alarmsExecutor; + // An executor used for handling ack and modack callbacks when exactly-once delivery is enabled. + private final ExecutorService eodAckCallbackExecutor; + private final Distribution ackLatencyDistribution = new Distribution(Math.toIntExact(MAX_STREAM_ACK_DEADLINE.getSeconds()) + 1); @@ -200,6 +204,15 @@ private Subscriber(Builder builder) { backgroundResources.add(new ExecutorAsBackgroundResource((alarmsExecutor))); } + // A cached thread pool will create new threads as needed but can reuse previously constructed + // threads when available, which helps to improve performance. + ThreadFactory eodAckCallbackThreadFactory = + new ThreadFactoryBuilder() + .setDaemon(true) + .setNameFormat("Subscriber-EOD-CallbackExecutor-%d") + .build(); + eodAckCallbackExecutor = Executors.newCachedThreadPool(eodAckCallbackThreadFactory); + TransportChannelProvider channelProvider = builder.channelProvider; if (channelProvider.acceptsPoolSize()) { channelProvider = channelProvider.withPoolSize(numPullers); @@ -416,6 +429,7 @@ private void startStreamingConnections() { .setUseLegacyFlowControl(useLegacyFlowControl) .setExecutor(executor) .setSystemExecutor(alarmsExecutor) + .setEodAckCallbackExecutor(eodAckCallbackExecutor) .setClock(clock) .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) .setTracer(tracer) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 335ccbdc3da9..559b72822349 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -587,6 +587,7 @@ private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilde .setFlowController(mock(FlowController.class)) .setExecutor(executor) .setSystemExecutor(systemExecutor) + .setEodAckCallbackExecutor(systemExecutor) .setClock(clock) .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) .setMinDurationPerAckExtensionDefaultUsed(true) From c7eb036c254be8883c3ef27672a42b6430d093ee Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 14:43:21 +0200 Subject: [PATCH 2193/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.54.0 (#2506) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ad822e1cb1c6..ffa4bd4d71d7 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.53.0 + 2.54.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0e889e14d6d0..67201e13265a 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.53.0 + 2.54.0 com.google.cloud From dfd3e697336ad189fba63eaa1067e9c87cc2dc8c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 14:43:31 +0200 Subject: [PATCH 2194/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.51.0 (#2508) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 789bdc741736..518bef3c00df 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.50.2 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.51.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 824e7922edce..93390c862379 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.50.2 + 3.51.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7c62cb508dcd..2ef396c0a903 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.50.2 + 3.51.0 From 881d480d98449856bdee8e4b12ca6f26c4a4d317 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 14:43:43 +0200 Subject: [PATCH 2195/2363] deps: update googleapis/sdk-platform-java action to v2.61.0 (#2509) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 5912d6f06913..5a97a438023b 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.60.2 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.61.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From d21c3e95ea4372031644dcc47d6dd1c22f40bd53 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 14:45:04 +0200 Subject: [PATCH 2196/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.59.0 (#2507) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ffa4bd4d71d7..b122d5d4f2f5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.58.2 + 2.59.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 67201e13265a..524e441a711d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.58.2 + 2.59.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index f68fdf60650c..ab18a0351ab1 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.58.2 + 2.59.0 tests From 5c7d09ce072560abd12bae3a489b69f18ed92df3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 15:51:15 +0200 Subject: [PATCH 2197/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.54.0 (#2510) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b122d5d4f2f5..0bc96b562b36 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.53.3 + 2.54.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 524e441a711d..554f39cb7755 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.53.3 + 2.54.0 com.google.cloud.opentelemetry From 7f3cac6702c19390e95448544017f84f5730075d Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 5 Aug 2025 09:51:23 -0400 Subject: [PATCH 2198/2363] chore: Update generation configuration at Tue Aug 5 02:48:03 UTC 2025 (#2511) * chore: Update generation configuration at Tue Aug 5 02:48:03 UTC 2025 * chore: generate libraries at Tue Aug 5 02:48:35 UTC 2025 --- java-pubsub/.github/scripts/update_generation_config.sh | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.github/scripts/update_generation_config.sh b/java-pubsub/.github/scripts/update_generation_config.sh index 3b890a76b24e..92efcf881914 100644 --- a/java-pubsub/.github/scripts/update_generation_config.sh +++ b/java-pubsub/.github/scripts/update_generation_config.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -e +set -ex # This script should be run at the root of the repository. # This script is used to update googleapis_commitish, gapic_generator_version, # and libraries_bom_version in generation configuration at the time of running diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 96b4fed86fbc..783727ef0104 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 76f048331494..83c7afee079c 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 277aa2338dd3..3a9bbf8c3ab9 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.50.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 023476b891b9..5a0554615025 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.64.0 + 26.65.0 pom import diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 0e634acc8d1d..dd5aa2fb7433 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.60.2 -googleapis_commitish: efe27dbe161b24710f4e95415e8f38922ae6f453 +gapic_generator_version: 2.61.0 +googleapis_commitish: 8c74a4f9ad52cfd7a7d1f6427fa0a0511377a395 libraries_bom_version: 26.65.0 libraries: - api_shortname: pubsub From 3f482a4257bbc0b08ed784b1d4a515bd921129fd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 5 Aug 2025 16:34:28 +0200 Subject: [PATCH 2199/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.141.1 (#2503) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-pubsub](https://redirect.github.com/googleapis/java-pubsub) | `1.141.0` -> `1.141.1` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.141.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.141.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.141.0/1.141.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.141.0/1.141.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
      googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub) ### [`v1.141.1`](https://redirect.github.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#11411-2025-07-28) [Compare Source](https://redirect.github.com/googleapis/java-pubsub/compare/v1.141.0...v1.141.1) ##### Bug Fixes - **deps:** Update the Java code generator (gapic-generator-java) to 2.60.2 ([bbc4e3c](https://redirect.github.com/googleapis/java-pubsub/commit/bbc4e3cd43d8d3f6bada03bbd1617f1ab930de9b)) - Remove element\_count\_limit and request\_byte\_limit from pubsub\_gapic.yaml ([bbc4e3c](https://redirect.github.com/googleapis/java-pubsub/commit/bbc4e3cd43d8d3f6bada03bbd1617f1ab930de9b)) ##### Dependencies - Update dependency com.google.cloud:google-cloud-bigquery to v2.53.0 ([#​2489](https://redirect.github.com/googleapis/java-pubsub/issues/2489)) ([106b9eb](https://redirect.github.com/googleapis/java-pubsub/commit/106b9ebc80808837b397ef18be4767c224e0c44e)) - Update dependency com.google.cloud:google-cloud-core to v2.58.2 ([#​2493](https://redirect.github.com/googleapis/java-pubsub/issues/2493)) ([5f77e62](https://redirect.github.com/googleapis/java-pubsub/commit/5f77e622c4651b09a79a1ee8f7965216a2a96d33)) - Update dependency com.google.cloud:google-cloud-storage to v2.53.3 ([#​2486](https://redirect.github.com/googleapis/java-pubsub/issues/2486)) ([d4611c0](https://redirect.github.com/googleapis/java-pubsub/commit/d4611c0dd7490ffe14f01f2e5a2ede9ede38be12)) - Update dependency com.google.cloud:sdk-platform-java-config to v3.50.2 ([#​2494](https://redirect.github.com/googleapis/java-pubsub/issues/2494)) ([f13c058](https://redirect.github.com/googleapis/java-pubsub/commit/f13c058b7c55217163580ccd12869aa78e826413)) - Update dependency org.xerial.snappy:snappy-java to v1.1.10.8 ([#​2492](https://redirect.github.com/googleapis/java-pubsub/issues/2492)) ([1139c0b](https://redirect.github.com/googleapis/java-pubsub/commit/1139c0b28cb5dad99696f7f1722ddb3e42055037))
      --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0bc96b562b36..1607800bc0cb 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1 From 18ee5766ef2ae8f92d65b039c60f72370db06635 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 13:42:46 -0400 Subject: [PATCH 2200/2363] chore(main): release 1.141.2 (#2512) * chore(main): release 1.141.2 * chore: generate libraries at Tue Aug 5 13:52:07 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 17 +++++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 38 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index def6aea7c3a0..58b8e5f1a153 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.141.2](https://github.com/googleapis/java-pubsub/compare/v1.141.1...v1.141.2) (2025-08-05) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.61.0 ([42eb599](https://github.com/googleapis/java-pubsub/commit/42eb5992557457a5ae4512334267113266c220ac)) +* Use a separate cached thread pool for handling ack and modack response callback for EOD-enabled subscriptions ([#2505](https://github.com/googleapis/java-pubsub/issues/2505)) ([224c269](https://github.com/googleapis/java-pubsub/commit/224c269e3bd0ae4cfc4b24ac85495911b8e2b90c)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.54.0 ([#2506](https://github.com/googleapis/java-pubsub/issues/2506)) ([6bf8e62](https://github.com/googleapis/java-pubsub/commit/6bf8e62b1144568292e832dc8031a70a2c5b9ad7)) +* Update dependency com.google.cloud:google-cloud-core to v2.59.0 ([#2507](https://github.com/googleapis/java-pubsub/issues/2507)) ([070cf07](https://github.com/googleapis/java-pubsub/commit/070cf07b1d529c34d4f633b37ce1d35d14768325)) +* Update dependency com.google.cloud:google-cloud-storage to v2.54.0 ([#2510](https://github.com/googleapis/java-pubsub/issues/2510)) ([0fd589e](https://github.com/googleapis/java-pubsub/commit/0fd589e2ee80730b442f569b770fe16208feb4ba)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.51.0 ([#2508](https://github.com/googleapis/java-pubsub/issues/2508)) ([a7be2a7](https://github.com/googleapis/java-pubsub/commit/a7be2a74327499b1acb2fe159e6f7465d6c8f798)) +* Update googleapis/sdk-platform-java action to v2.61.0 ([#2509](https://github.com/googleapis/java-pubsub/issues/2509)) ([32df6b6](https://github.com/googleapis/java-pubsub/commit/32df6b694f9aee2cf7132c2d817f9736d69060f3)) + ## [1.141.1](https://github.com/googleapis/java-pubsub/compare/v1.141.0...v1.141.1) (2025-07-28) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5a0554615025..079fa2627b37 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.2" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 93390c862379..d0d84a48c7c9 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.2-SNAPSHOT + 1.141.2 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.2-SNAPSHOT + 1.141.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2
      diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 15c3e04846a6..1b8eb53bafc7 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.2-SNAPSHOT + 1.141.2 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.2-SNAPSHOT + 1.141.2 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bf458a0edd80..8ca5debdf1de 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.2-SNAPSHOT + 1.141.2 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 2ef396c0a903..af9faf125d47 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.2-SNAPSHOT + 1.141.2 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2 com.google.cloud google-cloud-pubsub - 1.141.2-SNAPSHOT + 1.141.2 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5fd4c8522a41..2aaa7f1ba838 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2-SNAPSHOT + 1.123.2 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.2-SNAPSHOT + 1.141.2 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 554f39cb7755..ba0abd057018 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.2-SNAPSHOT + 1.141.2 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 506d47cbed51..8e8325a1ce0d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.1:1.141.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.1:1.123.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.1:1.123.2-SNAPSHOT +google-cloud-pubsub:1.141.2:1.141.2 +grpc-google-cloud-pubsub-v1:1.123.2:1.123.2 +proto-google-cloud-pubsub-v1:1.123.2:1.123.2 From 3828f702eebd4e66ec9fc258a9bc869b62f73d52 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 18:54:24 +0000 Subject: [PATCH 2201/2363] chore(main): release 1.141.3-SNAPSHOT (#2513) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 079fa2627b37..62378f340117 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.141.0 + 1.141.1 ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index d0d84a48c7c9..6d1e67bfecc3 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.2 + 1.141.3-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1b8eb53bafc7..e4d72b6cad3f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.3-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.2 + 1.141.3-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8ca5debdf1de..15c550c04486 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.2 + 1.141.3-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index af9faf125d47..9a4b49b59ea6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.2 + 1.141.3-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.3-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2aaa7f1ba838..5fe483fb2817 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.2 + 1.123.3-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.2 + 1.141.3-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ba0abd057018..7f6ae9026081 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.3-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8e8325a1ce0d..8daa0cfae2d5 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.2:1.141.2 -grpc-google-cloud-pubsub-v1:1.123.2:1.123.2 -proto-google-cloud-pubsub-v1:1.123.2:1.123.2 +google-cloud-pubsub:1.141.2:1.141.3-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.2:1.123.3-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.2:1.123.3-SNAPSHOT From 13ad6c1072ae47ae0c796b2f84dc761bec6a0c1f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 6 Aug 2025 23:11:33 +0200 Subject: [PATCH 2202/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.141.2 (#2514) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 1607800bc0cb..7776439af94a 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2 From c966689efc05fc1a2a558531b2d24a2b25561684 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Wed, 6 Aug 2025 17:46:31 -0400 Subject: [PATCH 2203/2363] test: Add test for CreateCloudStorageSubscriptionExample (#2516) --- .../src/test/java/pubsub/AdminIT.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java index 60c85f340820..2d31e17f7b76 100644 --- a/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java +++ b/java-pubsub/samples/snippets/src/test/java/pubsub/AdminIT.java @@ -33,6 +33,7 @@ import com.google.cloud.bigquery.TableInfo; import com.google.cloud.pubsub.v1.SubscriptionAdminClient; import com.google.cloud.pubsub.v1.TopicAdminClient; +import com.google.protobuf.Duration; import com.google.pubsub.v1.SubscriptionName; import com.google.pubsub.v1.TopicName; import java.io.ByteArrayOutputStream; @@ -73,6 +74,12 @@ public class AdminIT { "java_samples_data_set" + _suffix.replace("-", "_"); private static final String bigquerySubscriptionId = "iam-bigquery-subscription-" + _suffix; private static final String bigqueryTableId = "java_samples_table_" + _suffix; + private static final String cloudStorageSubscriptionId = + "iam-cloud-storage-subscription-" + _suffix; + private static final String cloudStorageFilenamePrefix = "log_events_"; + private static final String cloudStorageFilenameSuffix = ".txt"; + private static final Duration cloudStorageMaxDuration = + Duration.newBuilder().setSeconds(300).build(); private static final String gcpServiceAccount = "fake-service-account@fake-gcp-project.iam.gserviceaccount.com"; // AWS Kinesis ingestion settings. @@ -322,6 +329,22 @@ public void testAdmin() throws Exception { assertThat(bout.toString()).contains("Created a BigQuery subscription:"); assertThat(bout.toString()).contains(bigqueryTablePath); + bout.reset(); + // Test create a Cloud Storage subscription. + CreateCloudStorageSubscriptionExample.createCloudStorageSubscription( + projectId, + topicId, + cloudStorageSubscriptionId, + cloudStorageBucket, + cloudStorageFilenamePrefix, + cloudStorageFilenameSuffix, + cloudStorageMaxDuration); + assertThat(bout.toString()).contains("Created a CloudStorage subscription:"); + assertThat(bout.toString()).contains(cloudStorageBucket); + assertThat(bout.toString()).contains(cloudStorageFilenamePrefix); + assertThat(bout.toString()).contains(cloudStorageFilenameSuffix); + assertThat(bout.toString()).contains(Long.toString(cloudStorageMaxDuration.getSeconds())); + bout.reset(); // Test delete subscription. DeleteSubscriptionExample.deleteSubscriptionExample(projectId, pullSubscriptionId); @@ -329,6 +352,7 @@ public void testAdmin() throws Exception { DeleteSubscriptionExample.deleteSubscriptionExample(projectId, orderedSubscriptionId); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, exactlyOnceSubscriptionId); DeleteSubscriptionExample.deleteSubscriptionExample(projectId, bigquerySubscriptionId); + DeleteSubscriptionExample.deleteSubscriptionExample(projectId, cloudStorageSubscriptionId); assertThat(bout.toString()).contains("Deleted subscription."); bout.reset(); From a8fd7d732c68419e89dfd8f4b86adee7722e541a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 11 Aug 2025 21:35:42 +0200 Subject: [PATCH 2204/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.55.0 (#2517) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7776439af94a..8b7a1d0a435e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.54.0 + 2.55.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7f6ae9026081..e127c01c1753 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.54.0 + 2.55.0 com.google.cloud.opentelemetry From 25f6e241af73a09d68f59e26abc2221aa3642040 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 11 Aug 2025 15:35:56 -0400 Subject: [PATCH 2205/2363] chore: Update generation configuration at Mon Aug 11 02:45:37 UTC 2025 (#2515) * chore: Update generation configuration at Wed Aug 6 02:45:51 UTC 2025 * chore: Update generation configuration at Thu Aug 7 02:47:11 UTC 2025 * chore: generate libraries at Thu Aug 7 02:47:42 UTC 2025 * chore: Update generation configuration at Fri Aug 8 02:45:46 UTC 2025 * chore: Update generation configuration at Sat Aug 9 02:37:14 UTC 2025 * chore: Update generation configuration at Sun Aug 10 02:47:41 UTC 2025 * chore: Update generation configuration at Mon Aug 11 02:45:37 UTC 2025 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 62378f340117..cde790fe079e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.141.1 + 1.141.2 ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index dd5aa2fb7433..1656f749df1c 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.61.0 -googleapis_commitish: 8c74a4f9ad52cfd7a7d1f6427fa0a0511377a395 +googleapis_commitish: f4902d9b4168b4d1b162f5c5bcf149086579fa26 libraries_bom_version: 26.65.0 libraries: - api_shortname: pubsub From 031002d0a7a19d2560dae3a9a7cd3cd8fe3927b7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 12 Aug 2025 00:11:02 +0200 Subject: [PATCH 2206/2363] deps: update dependency org.assertj:assertj-core to v3.27.4 (#2518) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9a4b49b59ea6..0a4456a715dc 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.27.3 + 3.27.4 test From 789f75e5a4ae80969125f5c0c5b3222f45fe33e5 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 12 Aug 2025 00:11:17 +0200 Subject: [PATCH 2207/2363] deps: update actions/checkout action to v5 (#2520) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 5a97a438023b..a243eaedd360 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -32,7 +32,7 @@ jobs: else echo "SHOULD_RUN=true" >> $GITHUB_ENV fi - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 if: env.SHOULD_RUN == 'true' with: fetch-depth: 0 diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 518bef3c00df..f2522b214f7f 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -5,7 +5,7 @@ jobs: unmanaged_dependency_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions/setup-java@v4 with: distribution: temurin diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..59e39834dd05 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 373be0d72b0b7c5048497516d620a6057903badb Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 19 Aug 2025 16:10:49 -0400 Subject: [PATCH 2208/2363] fix: Use the system executor instead of a separate thread pool for EOD ack/modack callbacks (#2526) * fix: Use the system executor instead of a separate thread pool for EOD ack/modack callbacks * fix: Add obsolete method to clirr ignored file * fix: Update clirr ignore rule --- .../clirr-ignored-differences.xml | 6 ++++++ .../pubsub/v1/StreamingSubscriberConnection.java | 14 ++++---------- .../com/google/cloud/pubsub/v1/Subscriber.java | 13 ------------- .../v1/StreamingSubscriberConnectionTest.java | 1 - 4 files changed, 10 insertions(+), 24 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml index 866962660901..e4629e32e63d 100644 --- a/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml +++ b/java-pubsub/google-cloud-pubsub/clirr-ignored-differences.xml @@ -15,4 +15,10 @@ *(org.threeten.bp.Duration) *(java.time.Duration) + + 7002 + + com/google/cloud/pubsub/v1/StreamingSubscriberConnection$Builder + * setEodAckCallbackExecutor(*) + diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 6a53b0206a6d..baf96f3858e0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -62,7 +62,6 @@ import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executor; -import java.util.concurrent.ExecutorService; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; @@ -99,7 +98,6 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final String subscription; private final SubscriptionName subscriptionNameObject; private final ScheduledExecutorService systemExecutor; - private final ExecutorService eodAckCallbackExecutor; private final MessageDispatcher messageDispatcher; private final FlowControlSettings flowControlSettings; @@ -131,7 +129,6 @@ private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; subscriptionNameObject = SubscriptionName.parse(builder.subscription); systemExecutor = builder.systemExecutor; - eodAckCallbackExecutor = builder.eodAckCallbackExecutor; // We need to set the default stream ack deadline on the initial request, this will be // updated by modack requests in the message dispatcher @@ -720,11 +717,14 @@ public void run() { }; } + // If exactly-once is enabled, we hold a lock for the ack/modack response callback, so we want to + // avoid using the directExecutor() which runs the callback on the invoking thread. Instead, we + // want to schedule the callback to be run on a different thread. private Executor getCallbackExecutor() { if (!getExactlyOnceDeliveryEnabled()) { return directExecutor(); } - return eodAckCallbackExecutor; + return systemExecutor; } /** Builder of {@link StreamingSubscriberConnection StreamingSubscriberConnections}. */ @@ -747,7 +747,6 @@ public static final class Builder { private boolean useLegacyFlowControl; private ScheduledExecutorService executor; private ScheduledExecutorService systemExecutor; - private ExecutorService eodAckCallbackExecutor; private ApiClock clock; private boolean enableOpenTelemetryTracing; @@ -838,11 +837,6 @@ public Builder setSystemExecutor(ScheduledExecutorService systemExecutor) { return this; } - public Builder setEodAckCallbackExecutor(ExecutorService eodAckCallbackExecutor) { - this.eodAckCallbackExecutor = eodAckCallbackExecutor; - return this; - } - public Builder setClock(ApiClock clock) { this.clock = clock; return this; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 49f8098552aa..b149bed378a0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -51,7 +51,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ThreadFactory; @@ -151,8 +150,6 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac // An instantiation of the SystemExecutorProvider used for processing acks // and other system actions. @Nullable private final ScheduledExecutorService alarmsExecutor; - // An executor used for handling ack and modack callbacks when exactly-once delivery is enabled. - private final ExecutorService eodAckCallbackExecutor; private final Distribution ackLatencyDistribution = new Distribution(Math.toIntExact(MAX_STREAM_ACK_DEADLINE.getSeconds()) + 1); @@ -204,15 +201,6 @@ private Subscriber(Builder builder) { backgroundResources.add(new ExecutorAsBackgroundResource((alarmsExecutor))); } - // A cached thread pool will create new threads as needed but can reuse previously constructed - // threads when available, which helps to improve performance. - ThreadFactory eodAckCallbackThreadFactory = - new ThreadFactoryBuilder() - .setDaemon(true) - .setNameFormat("Subscriber-EOD-CallbackExecutor-%d") - .build(); - eodAckCallbackExecutor = Executors.newCachedThreadPool(eodAckCallbackThreadFactory); - TransportChannelProvider channelProvider = builder.channelProvider; if (channelProvider.acceptsPoolSize()) { channelProvider = channelProvider.withPoolSize(numPullers); @@ -429,7 +417,6 @@ private void startStreamingConnections() { .setUseLegacyFlowControl(useLegacyFlowControl) .setExecutor(executor) .setSystemExecutor(alarmsExecutor) - .setEodAckCallbackExecutor(eodAckCallbackExecutor) .setClock(clock) .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) .setTracer(tracer) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 559b72822349..335ccbdc3da9 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -587,7 +587,6 @@ private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilde .setFlowController(mock(FlowController.class)) .setExecutor(executor) .setSystemExecutor(systemExecutor) - .setEodAckCallbackExecutor(systemExecutor) .setClock(clock) .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) .setMinDurationPerAckExtensionDefaultUsed(true) From ff4074b6ed7ed938861713dda8d488c03cfa22c1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Aug 2025 22:11:19 +0200 Subject: [PATCH 2209/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.32.0 (#2524) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 8b7a1d0a435e..24afd4fa66ff 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.31.1 + 4.32.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e127c01c1753..1c1459c10f10 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.31.1 + 4.32.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index ab18a0351ab1..848b7b4e1555 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.31.1 + 4.32.0 From cb74c0de928f5ec5961eda77eb8d548f7d62ce23 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 19 Aug 2025 16:11:51 -0400 Subject: [PATCH 2210/2363] chore: Update generation configuration at Sat Aug 16 02:35:28 UTC 2025 (#2522) * chore: Update generation configuration at Tue Aug 12 02:36:25 UTC 2025 * chore: generate libraries at Tue Aug 12 02:37:05 UTC 2025 * chore: Update generation configuration at Wed Aug 13 02:37:07 UTC 2025 * chore: Update generation configuration at Thu Aug 14 02:38:18 UTC 2025 * chore: Update generation configuration at Fri Aug 15 02:39:14 UTC 2025 * chore: Update generation configuration at Sat Aug 16 02:35:28 UTC 2025 * chore: generate libraries at Sat Aug 16 02:35:59 UTC 2025 --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 59e39834dd05..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/README.md b/java-pubsub/README.md index cde790fe079e..33e35185e0e9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.65.0') +implementation platform('com.google.cloud:libraries-bom:26.66.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 1656f749df1c..c649bc0e2f39 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.61.0 -googleapis_commitish: f4902d9b4168b4d1b162f5c5bcf149086579fa26 -libraries_bom_version: 26.65.0 +googleapis_commitish: d869249c5d3da60af39dc7968140468ef7d1fdd6 +libraries_bom_version: 26.66.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From 7334cc0a8df897a5c139b6cb02eb105c6aae574b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Aug 2025 22:16:27 +0200 Subject: [PATCH 2211/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.66.0 (#2525) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 848b7b4e1555..47044183a0d2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.65.0 + 26.66.0 pom import From dfd4b2b65efb8c63afdbd18fcc68296fde86d82c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Aug 2025 22:16:43 +0200 Subject: [PATCH 2212/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.54.1 (#2523) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 24afd4fa66ff..feec89011eb9 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.54.0 + 2.54.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1c1459c10f10..e6378272ad82 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.54.0 + 2.54.1 com.google.cloud From 3b2e9a2a5d453830e9ca20d7216151a199a4c6e6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Aug 2025 22:39:50 +0200 Subject: [PATCH 2213/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.52.0 (#2528) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index f2522b214f7f..a22902fda64a 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.51.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 6d1e67bfecc3..7971699e534b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.51.0 + 3.52.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 0a4456a715dc..8742f6dfa70e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.51.0 + 3.52.0 From 8d1769def983c70c001bac4fe494b3592937a78f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 19 Aug 2025 22:42:36 +0200 Subject: [PATCH 2214/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.60.0 (#2527) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index feec89011eb9..50d75d8ff2b4 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.59.0 + 2.60.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e6378272ad82..89058c51fb4e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.59.0 + 2.60.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 47044183a0d2..387d075244c2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.59.0 + 2.60.0 tests From 4252ba7d08cb7d8067fbc56b224224602e6e2358 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 20 Aug 2025 12:55:31 -0400 Subject: [PATCH 2215/2363] chore: Update generation configuration at Wed Aug 20 02:34:22 UTC 2025 (#2529) * chore: Update generation configuration at Wed Aug 20 02:34:22 UTC 2025 * chore: generate libraries at Wed Aug 20 02:34:51 UTC 2025 --- .../hermetic_library_generation.yaml | 2 +- .../.kokoro/presubmit/graalvm-native-a.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-b.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 4 ++-- .../pubsub/v1/stub/GrpcPublisherStub.java | 12 ++++++++++++ .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 13 +++++++++++++ .../pubsub/v1/stub/GrpcSubscriberStub.java | 19 +++++++++++++++++++ 9 files changed, 51 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index a243eaedd360..9cdd9a056a82 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.61.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 783727ef0104..5816d6107330 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 83c7afee079c..7986fd67310e 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 3a9bbf8c3ab9..acecfce1bfb7 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.51.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 33e35185e0e9..7e17d415b999 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.65.0 + 26.66.0 pom import diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index c649bc0e2f39..afd0df121932 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.61.0 -googleapis_commitish: d869249c5d3da60af39dc7968140468ef7d1fdd6 +gapic_generator_version: 2.62.0 +googleapis_commitish: 3b2a2ae91db23a9c879b2b725d6a5de6bd64a800 libraries_bom_version: 26.66.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 7d44f29bf2fc..df360653ce50 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -68,6 +68,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/CreateTopic") .setRequestMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor updateTopicMethodDescriptor = @@ -76,6 +77,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/UpdateTopic") .setRequestMarshaller(ProtoUtils.marshaller(UpdateTopicRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor publishMethodDescriptor = @@ -84,6 +86,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/Publish") .setRequestMarshaller(ProtoUtils.marshaller(PublishRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(PublishResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getTopicMethodDescriptor = @@ -92,6 +95,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/GetTopic") .setRequestMarshaller(ProtoUtils.marshaller(GetTopicRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Topic.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -101,6 +105,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/ListTopics") .setRequestMarshaller(ProtoUtils.marshaller(ListTopicsRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(ListTopicsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor< @@ -114,6 +119,7 @@ public class GrpcPublisherStub extends PublisherStub { ProtoUtils.marshaller(ListTopicSubscriptionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListTopicSubscriptionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -125,6 +131,7 @@ public class GrpcPublisherStub extends PublisherStub { ProtoUtils.marshaller(ListTopicSnapshotsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListTopicSnapshotsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor deleteTopicMethodDescriptor = @@ -133,6 +140,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.pubsub.v1.Publisher/DeleteTopic") .setRequestMarshaller(ProtoUtils.marshaller(DeleteTopicRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -144,6 +152,7 @@ public class GrpcPublisherStub extends PublisherStub { ProtoUtils.marshaller(DetachSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(DetachSubscriptionResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = @@ -152,6 +161,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getIamPolicyMethodDescriptor = @@ -160,6 +170,7 @@ public class GrpcPublisherStub extends PublisherStub { .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -171,6 +182,7 @@ public class GrpcPublisherStub extends PublisherStub { ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private final UnaryCallable createTopicCallable; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index 655027011424..592a17bf52ee 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -68,6 +68,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.pubsub.v1.SchemaService/CreateSchema") .setRequestMarshaller(ProtoUtils.marshaller(CreateSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getSchemaMethodDescriptor = @@ -76,6 +77,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.pubsub.v1.SchemaService/GetSchema") .setRequestMarshaller(ProtoUtils.marshaller(GetSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -86,6 +88,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setRequestMarshaller(ProtoUtils.marshaller(ListSchemasRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSchemasResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -97,6 +100,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { ProtoUtils.marshaller(ListSchemaRevisionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSchemaRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor commitSchemaMethodDescriptor = @@ -105,6 +109,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.pubsub.v1.SchemaService/CommitSchema") .setRequestMarshaller(ProtoUtils.marshaller(CommitSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -115,6 +120,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setRequestMarshaller( ProtoUtils.marshaller(RollbackSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -125,6 +131,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setRequestMarshaller( ProtoUtils.marshaller(DeleteSchemaRevisionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Schema.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor deleteSchemaMethodDescriptor = @@ -133,6 +140,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.pubsub.v1.SchemaService/DeleteSchema") .setRequestMarshaller(ProtoUtils.marshaller(DeleteSchemaRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -144,6 +152,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { ProtoUtils.marshaller(ValidateSchemaRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ValidateSchemaResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -155,6 +164,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { ProtoUtils.marshaller(ValidateMessageRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ValidateMessageResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = @@ -163,6 +173,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getIamPolicyMethodDescriptor = @@ -171,6 +182,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -182,6 +194,7 @@ public class GrpcSchemaServiceStub extends SchemaServiceStub { ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private final UnaryCallable createSchemaCallable; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index 740dec3578c7..8c08d2ad39de 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -77,6 +77,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.pubsub.v1.Subscriber/CreateSubscription") .setRequestMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -87,6 +88,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(GetSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -97,6 +99,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(UpdateSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -108,6 +111,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(ListSubscriptionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSubscriptionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -118,6 +122,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(DeleteSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -128,6 +133,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(ModifyAckDeadlineRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor acknowledgeMethodDescriptor = @@ -136,6 +142,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.pubsub.v1.Subscriber/Acknowledge") .setRequestMarshaller(ProtoUtils.marshaller(AcknowledgeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor pullMethodDescriptor = @@ -144,6 +151,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.pubsub.v1.Subscriber/Pull") .setRequestMarshaller(ProtoUtils.marshaller(PullRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(PullResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -155,6 +163,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(StreamingPullRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(StreamingPullResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -165,6 +174,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(ModifyPushConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getSnapshotMethodDescriptor = @@ -173,6 +183,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.pubsub.v1.Subscriber/GetSnapshot") .setRequestMarshaller(ProtoUtils.marshaller(GetSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -184,6 +195,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(ListSnapshotsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSnapshotsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -194,6 +206,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(CreateSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -204,6 +217,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(UpdateSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -214,6 +228,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setRequestMarshaller( ProtoUtils.marshaller(DeleteSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor seekMethodDescriptor = @@ -222,6 +237,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.pubsub.v1.Subscriber/Seek") .setRequestMarshaller(ProtoUtils.marshaller(SeekRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SeekResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = @@ -230,6 +246,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor getIamPolicyMethodDescriptor = @@ -238,6 +255,7 @@ public class GrpcSubscriberStub extends SubscriberStub { .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private static final MethodDescriptor @@ -249,6 +267,7 @@ public class GrpcSubscriberStub extends SubscriberStub { ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) .build(); private final UnaryCallable createSubscriptionCallable; From 6219dfee9d8f2c799d9e4bb34ac8d697f8ad2cb5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 20 Aug 2025 12:55:51 -0400 Subject: [PATCH 2216/2363] chore(main): release 1.141.3 (#2521) * chore(main): release 1.141.3 * chore: generate libraries at Tue Aug 19 20:43:27 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 18 ++++++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 39 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 58b8e5f1a153..8199928999a6 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## [1.141.3](https://github.com/googleapis/java-pubsub/compare/v1.141.2...v1.141.3) (2025-08-19) + + +### Bug Fixes + +* Use the system executor instead of a separate thread pool for EOD ack/modack callbacks ([#2526](https://github.com/googleapis/java-pubsub/issues/2526)) ([ffeb017](https://github.com/googleapis/java-pubsub/commit/ffeb017a58ca486688105738f180d70df33a74de)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2520](https://github.com/googleapis/java-pubsub/issues/2520)) ([409398a](https://github.com/googleapis/java-pubsub/commit/409398a40f71866d5a84b4542d582777ee240a08)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.54.1 ([#2523](https://github.com/googleapis/java-pubsub/issues/2523)) ([0678a74](https://github.com/googleapis/java-pubsub/commit/0678a74dc22f73cd8ec8c4893c1a8dd60449b128)) +* Update dependency com.google.cloud:google-cloud-core to v2.60.0 ([#2527](https://github.com/googleapis/java-pubsub/issues/2527)) ([0166e21](https://github.com/googleapis/java-pubsub/commit/0166e21012f0bc2ccb2e832d6f27e60ad3382456)) +* Update dependency com.google.cloud:google-cloud-storage to v2.55.0 ([#2517](https://github.com/googleapis/java-pubsub/issues/2517)) ([b67acf1](https://github.com/googleapis/java-pubsub/commit/b67acf1294249be308568f49f287897ae55ced08)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.0 ([#2528](https://github.com/googleapis/java-pubsub/issues/2528)) ([e424d11](https://github.com/googleapis/java-pubsub/commit/e424d11ffe0fbe242c59dec44ac1af2f9bd80173)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.32.0 ([#2524](https://github.com/googleapis/java-pubsub/issues/2524)) ([44ff087](https://github.com/googleapis/java-pubsub/commit/44ff0873171f8fe2e7cd79b4550f8ec94ea2c99a)) +* Update dependency org.assertj:assertj-core to v3.27.4 ([#2518](https://github.com/googleapis/java-pubsub/issues/2518)) ([67695bc](https://github.com/googleapis/java-pubsub/commit/67695bc50eafc475866eb6c300b3359083ecfe00)) + ## [1.141.2](https://github.com/googleapis/java-pubsub/compare/v1.141.1...v1.141.2) (2025-08-05) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7e17d415b999..6eb40a178154 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.2' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.2" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.3" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.2 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.3 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7971699e534b..e4ee94db3d75 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.3-SNAPSHOT + 1.141.3 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.3-SNAPSHOT + 1.141.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index e4d72b6cad3f..c66d625995dd 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.3-SNAPSHOT + 1.141.3 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.3-SNAPSHOT + 1.141.3 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 15c550c04486..2f7a440ec3f4 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.3-SNAPSHOT + 1.141.3 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8742f6dfa70e..58167a983464 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.3-SNAPSHOT + 1.141.3 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 com.google.cloud google-cloud-pubsub - 1.141.3-SNAPSHOT + 1.141.3 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5fe483fb2817..faabcab1c345 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3-SNAPSHOT + 1.123.3 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.3-SNAPSHOT + 1.141.3 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 89058c51fb4e..293119b7880b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.3-SNAPSHOT + 1.141.3 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8daa0cfae2d5..9f2f9ca64e3f 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.2:1.141.3-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.2:1.123.3-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.2:1.123.3-SNAPSHOT +google-cloud-pubsub:1.141.3:1.141.3 +grpc-google-cloud-pubsub-v1:1.123.3:1.123.3 +proto-google-cloud-pubsub-v1:1.123.3:1.123.3 From b6a0cd7123ddc71394dd08f7c7c66a853ceffedb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 20 Aug 2025 19:17:09 +0200 Subject: [PATCH 2217/2363] deps: update actions/checkout action to v5 (#2531) --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..59e39834dd05 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From d20823d2ba033b66e6bdf2227e03ba0b970d76cf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Aug 2025 15:40:30 +0200 Subject: [PATCH 2218/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.54.2 (#2538) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 50d75d8ff2b4..79b3b0502031 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.54.1 + 2.54.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 293119b7880b..fe9beee318c6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.54.1 + 2.54.2 com.google.cloud From 9f747ba02146e332ff07e52b387d74947892ee67 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Aug 2025 15:40:38 +0200 Subject: [PATCH 2219/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.56.0 (#2536) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 79b3b0502031..5a0bc4c10990 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.55.0 + 2.56.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fe9beee318c6..8bdfe392b082 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.55.0 + 2.56.0 com.google.cloud.opentelemetry From 43656f9bbce2010db53a52522136493387429027 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 27 Aug 2025 15:40:42 +0200 Subject: [PATCH 2220/2363] deps: update actions/setup-java action to v5 (#2535) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index a22902fda64a..d3a81f6f1adf 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - uses: actions/setup-java@v4 + - uses: actions/setup-java@v5 with: distribution: temurin java-version: 11 From 5b746d35db5a8bae12ee05fd92a0e1cd5770727c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 27 Aug 2025 13:56:22 +0000 Subject: [PATCH 2221/2363] chore(main): release 1.141.4-SNAPSHOT (#2532) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- .../.github/workflows/update_generation_config.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 59e39834dd05..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e4ee94db3d75..ec321a47865d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.3 + 1.141.4-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.3 + 1.141.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c66d625995dd..51e224519d11 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.3 + 1.141.4-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.3 + 1.141.4-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2f7a440ec3f4..44f4f1e7810f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.3 + 1.141.4-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 58167a983464..a49704741f12 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.3 + 1.141.4-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.3 + 1.141.4-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index faabcab1c345..0a9099b2ce23 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.3 + 1.123.4-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.3 + 1.141.4-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8bdfe392b082..aa40f731f320 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.3 + 1.141.4-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9f2f9ca64e3f..af4604c0fb71 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.3:1.141.3 -grpc-google-cloud-pubsub-v1:1.123.3:1.123.3 -proto-google-cloud-pubsub-v1:1.123.3:1.123.3 +google-cloud-pubsub:1.141.3:1.141.4-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.3:1.123.4-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.3:1.123.4-SNAPSHOT From 8ad32a2fbcfac18b04cbd468546060442fecc0d8 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 27 Aug 2025 10:05:03 -0400 Subject: [PATCH 2222/2363] chore: Update generation configuration at Wed Aug 27 02:32:56 UTC 2025 (#2534) * chore: Update generation configuration at Thu Aug 21 02:35:32 UTC 2025 * chore: generate libraries at Thu Aug 21 02:36:01 UTC 2025 * chore: Update generation configuration at Fri Aug 22 02:33:50 UTC 2025 * chore: Update generation configuration at Sat Aug 23 02:32:45 UTC 2025 * chore: Update generation configuration at Tue Aug 26 02:34:56 UTC 2025 * chore: Update generation configuration at Wed Aug 27 02:32:56 UTC 2025 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index afd0df121932..69b799df9103 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.62.0 -googleapis_commitish: 3b2a2ae91db23a9c879b2b725d6a5de6bd64a800 +googleapis_commitish: bf317d7c0066ba9ad66b880f5a9a060673db8cb4 libraries_bom_version: 26.66.0 libraries: - api_shortname: pubsub From 4b1cec784ea836807d280f8659f5a5608551f417 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 9 Sep 2025 23:31:45 +0200 Subject: [PATCH 2223/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.52.1 (#2544) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index d3a81f6f1adf..b2d77ff318c8 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ec321a47865d..ad6324532611 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.52.0 + 3.52.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index a49704741f12..596c733c2ef1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.52.0 + 3.52.1 From 8716a852e3d019eaa49cb8f175ecc6ef98d0ffe0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 9 Sep 2025 23:36:33 +0200 Subject: [PATCH 2224/2363] deps: update googleapis/sdk-platform-java action to v2.62.1 (#2545) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [googleapis/sdk-platform-java](https://redirect.github.com/googleapis/sdk-platform-java) | action | patch | `v2.62.0` -> `v2.62.1` | --- ### Release Notes
      googleapis/sdk-platform-java (googleapis/sdk-platform-java) ### [`v2.62.1`](https://redirect.github.com/googleapis/sdk-platform-java/releases/tag/v2.62.1) [Compare Source](https://redirect.github.com/googleapis/sdk-platform-java/compare/v2.62.0...v2.62.1) ##### Dependencies - Update auth to 1.39.0 ([#​3898](https://redirect.github.com/googleapis/sdk-platform-java/issues/3898)) ([9a8443d](https://redirect.github.com/googleapis/sdk-platform-java/commit/9a8443d71cdbdb7a693b6da08db72edb85490807))
      --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/java-pubsub). --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 9cdd9a056a82..17d664a6b24a 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 90d24b8ea8114bc94448f31bee6a5bca37cd779c Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 9 Sep 2025 17:41:11 -0400 Subject: [PATCH 2225/2363] chore: Update generation configuration at Tue Sep 9 02:33:07 UTC 2025 (#2540) --- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 5816d6107330..a562a6398be0 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 7986fd67310e..2257ccce678a 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index acecfce1bfb7..a9294de35ab0 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6eb40a178154..ffe7c1a0c4c9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.66.0') +implementation platform('com.google.cloud:libraries-bom:26.67.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 69b799df9103..f314957415cd 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.62.0 -googleapis_commitish: bf317d7c0066ba9ad66b880f5a9a060673db8cb4 -libraries_bom_version: 26.66.0 +gapic_generator_version: 2.62.1 +googleapis_commitish: 2585041b27d424ed4496d163671a95a7e1af4c31 +libraries_bom_version: 26.67.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From e2fc6680bcb4db4bcfeaf129b63abe5d6f0c54d5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Sep 2025 12:13:21 -0400 Subject: [PATCH 2226/2363] chore(main): release 1.141.4 (#2549) * chore(main): release 1.141.4 * chore: generate libraries at Thu Sep 11 15:18:13 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 17 +++++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 38 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 8199928999a6..cee972fa9634 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [1.141.4](https://github.com/googleapis/java-pubsub/compare/v1.141.3...v1.141.4) (2025-09-11) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.62.1 ([ac08d5f](https://github.com/googleapis/java-pubsub/commit/ac08d5f6ead8071ab0e068e32fd5ae0ae2731c34)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2531](https://github.com/googleapis/java-pubsub/issues/2531)) ([f687f11](https://github.com/googleapis/java-pubsub/commit/f687f117fc435ee8b1f15b8802ecc989f1e2747e)) +* Update actions/setup-java action to v5 ([#2535](https://github.com/googleapis/java-pubsub/issues/2535)) ([2ed87d2](https://github.com/googleapis/java-pubsub/commit/2ed87d2b7e28af99cfda00b4b69fb5cb2f448584)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.54.2 ([#2538](https://github.com/googleapis/java-pubsub/issues/2538)) ([10a8283](https://github.com/googleapis/java-pubsub/commit/10a8283292e58b0c73b9c57ff36ddd71b8b83467)) +* Update dependency com.google.cloud:google-cloud-storage to v2.56.0 ([#2536](https://github.com/googleapis/java-pubsub/issues/2536)) ([80d9ca1](https://github.com/googleapis/java-pubsub/commit/80d9ca10d3a2656852422858f032bb6629102cfb)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.1 ([#2544](https://github.com/googleapis/java-pubsub/issues/2544)) ([9fe7550](https://github.com/googleapis/java-pubsub/commit/9fe75506eedf42f31b95ddf2699cf332334caf0d)) +* Update googleapis/sdk-platform-java action to v2.62.1 ([#2545](https://github.com/googleapis/java-pubsub/issues/2545)) ([17f28ef](https://github.com/googleapis/java-pubsub/commit/17f28ef853a21303346a305e4d8e9b63a916edc7)) + ## [1.141.3](https://github.com/googleapis/java-pubsub/compare/v1.141.2...v1.141.3) (2025-08-19) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ffe7c1a0c4c9..c9f8d2e12bec 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.3' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.3" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.4" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.3 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.4 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index ad6324532611..076e560e6210 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.4-SNAPSHOT + 1.141.4 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.4-SNAPSHOT + 1.141.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4
      diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 51e224519d11..1039ec7b6b25 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.4-SNAPSHOT + 1.141.4 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.4-SNAPSHOT + 1.141.4 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 44f4f1e7810f..6ee8ef82b169 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.4-SNAPSHOT + 1.141.4 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 596c733c2ef1..129c68107d4e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.4-SNAPSHOT + 1.141.4 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4 com.google.cloud google-cloud-pubsub - 1.141.4-SNAPSHOT + 1.141.4 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 0a9099b2ce23..67c5eafd16d7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4-SNAPSHOT + 1.123.4 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.4-SNAPSHOT + 1.141.4 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index aa40f731f320..7f73989190a6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.4-SNAPSHOT + 1.141.4 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index af4604c0fb71..135801ac7212 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.3:1.141.4-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.3:1.123.4-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.3:1.123.4-SNAPSHOT +google-cloud-pubsub:1.141.4:1.141.4 +grpc-google-cloud-pubsub-v1:1.123.4:1.123.4 +proto-google-cloud-pubsub-v1:1.123.4:1.123.4 From d9617fd14afb8c81eaeb4502bb19e7eceae241ca Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Sep 2025 22:34:23 +0000 Subject: [PATCH 2227/2363] chore(main): release 1.141.5-SNAPSHOT (#2550) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 076e560e6210..783a9bf749b6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.4 + 1.141.5-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 1039ec7b6b25..2cf5cac72b29 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.4 + 1.141.5-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 6ee8ef82b169..c1ff71f770b9 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.4 + 1.141.5-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 129c68107d4e..621fdbe34b0d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.4 + 1.141.5-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 67c5eafd16d7..a40babe3b57b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.4 + 1.123.5-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.4 + 1.141.5-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7f73989190a6..d4cc0a75c3de 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 135801ac7212..e52c774a27ed 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.4:1.141.4 -grpc-google-cloud-pubsub-v1:1.123.4:1.123.4 -proto-google-cloud-pubsub-v1:1.123.4:1.123.4 +google-cloud-pubsub:1.141.4:1.141.5-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.4:1.123.5-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.4:1.123.5-SNAPSHOT From d3b2062f9ca722995f39576c5762f2d81ec60efa Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:19:26 +0200 Subject: [PATCH 2228/2363] deps: update actions/checkout action to v5 (#2539) --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..59e39834dd05 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From a10cb8f367534b2972ba2c09b1aae99fec07cf72 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:21:17 +0200 Subject: [PATCH 2229/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.57.0 (#2547) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5a0bc4c10990..3eaf2bc86f68 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.56.0 + 2.57.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d4cc0a75c3de..2948b63bce52 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.56.0 + 2.57.0 com.google.cloud.opentelemetry From 986bcc77c35f9bb9ccfb05ea16521656546cf359 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:25:18 +0200 Subject: [PATCH 2230/2363] test(deps): update dependency com.google.truth:truth to v1.4.5 (#2548) --- java-pubsub/pom.xml | 2 +- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 621fdbe34b0d..37acfcb155fb 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -104,7 +104,7 @@ com.google.truth truth - 1.4.4 + 1.4.5 test diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 3eaf2bc86f68..90940eb53515 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -69,7 +69,7 @@ com.google.truth truth - 1.4.4 + 1.4.5 test diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 2948b63bce52..4b8bc7f9dcec 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -73,7 +73,7 @@ com.google.truth truth - 1.4.4 + 1.4.5 test diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 387d075244c2..24eeccc2572e 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -97,7 +97,7 @@ com.google.truth truth - 1.4.4 + 1.4.5 test From 02cd9cfd61c8e07441359bf7a46a760a3d565a69 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:25:23 +0200 Subject: [PATCH 2231/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.32.1 (#2551) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 90940eb53515..ba68a60be007 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.32.0 + 4.32.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4b8bc7f9dcec..9d24e487ab10 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.32.0 + 4.32.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 24eeccc2572e..58bbbfbfdbd5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.32.0 + 4.32.1 From 86adf2eaf57c0eace8068e2ca887fe467fd106f0 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:25:27 +0200 Subject: [PATCH 2232/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.60.1 (#2543) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ba68a60be007..f597284b7bef 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.60.0 + 2.60.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 9d24e487ab10..979db5619201 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.60.0 + 2.60.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 58bbbfbfdbd5..0b722051d236 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.60.0 + 2.60.1 tests From 8882805da6a8d39c5741aa8c04f52687962728d4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:25:45 +0200 Subject: [PATCH 2233/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.67.0 (#2541) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 0b722051d236..701be0cc84f5 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.66.0 + 26.67.0 pom import From 99e6b3590d1f9d6461cd0fa8aa24a4c270320f0d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:26:02 +0200 Subject: [PATCH 2234/2363] deps: update actions/github-script action to v8 (#2542) --- java-pubsub/.github/workflows/auto-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml index 18d92e5a28dd..0cda6b04f722 100644 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ b/java-pubsub/.github/workflows/auto-release.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v7 + - uses: actions/github-script@v8 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true From 167e4c5ba095f6ff0de168320fe46d09731de487 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 12 Sep 2025 16:42:41 +0200 Subject: [PATCH 2235/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.141.4 (#2533) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f597284b7bef..d08e40f87eb5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.4 From ad3457feb74d62c85e578ff1fce23645f170c3ac Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 18 Sep 2025 17:42:52 +0200 Subject: [PATCH 2236/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.55.0 (#2553) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index d08e40f87eb5..7fdd3c558daa 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.54.2 + 2.55.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 979db5619201..24d6589d9352 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.54.2 + 2.55.0 com.google.cloud From f6a3e3891723c7f0c322aeb8a9f258d0b06bde5d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Sep 2025 21:41:53 +0200 Subject: [PATCH 2237/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.68.0 (#2554) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 701be0cc84f5..439d0dc651c8 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.67.0 + 26.68.0 pom import From d37899bc4725fa3db5c4bfab7483704c4ec49cea Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Sep 2025 21:49:52 +0200 Subject: [PATCH 2238/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.52.2 (#2558) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index b2d77ff318c8..e170e888e3df 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.2 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 783a9bf749b6..e077cf283728 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.52.1 + 3.52.2 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 37acfcb155fb..4ecad7774fd0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.52.1 + 3.52.2 From f48c4eed34cd3343ee16f2475816e36e99d49a16 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 22 Sep 2025 21:51:23 +0200 Subject: [PATCH 2239/2363] deps: update googleapis/sdk-platform-java action to v2.62.2 (#2559) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 17d664a6b24a..640f7bbd531c 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.2 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From 0171e465db91ed4076ee5401d8d1326c159b952b Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 24 Sep 2025 13:48:44 -0400 Subject: [PATCH 2240/2363] chore: Update generation configuration at Wed Sep 24 02:31:26 UTC 2025 (#2546) * chore: Update generation configuration at Wed Sep 10 02:29:46 UTC 2025 * chore: Update generation configuration at Thu Sep 11 02:32:09 UTC 2025 * chore: Update generation configuration at Fri Sep 12 02:29:42 UTC 2025 * chore: Update generation configuration at Sat Sep 13 02:24:06 UTC 2025 * chore: generate libraries at Sat Sep 13 02:24:35 UTC 2025 * chore: Update generation configuration at Sun Sep 14 02:33:57 UTC 2025 * chore: Update generation configuration at Mon Sep 15 02:33:36 UTC 2025 * chore: generate libraries at Mon Sep 15 02:34:02 UTC 2025 * chore: Update generation configuration at Tue Sep 16 02:29:24 UTC 2025 * chore: Update generation configuration at Wed Sep 17 02:29:11 UTC 2025 * chore: Update generation configuration at Thu Sep 18 02:30:55 UTC 2025 * chore: Update generation configuration at Fri Sep 19 02:32:28 UTC 2025 * chore: generate libraries at Fri Sep 19 02:33:07 UTC 2025 * chore: Update generation configuration at Sat Sep 20 02:29:08 UTC 2025 * chore: Update generation configuration at Tue Sep 23 02:29:57 UTC 2025 * chore: generate libraries at Tue Sep 23 02:30:33 UTC 2025 * chore: Update generation configuration at Wed Sep 24 02:31:26 UTC 2025 --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 6 +++--- java-pubsub/generation_config.yaml | 6 +++--- java-pubsub/renovate.json | 4 +++- 7 files changed, 13 insertions(+), 11 deletions(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 59e39834dd05..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index a562a6398be0..5554627daa98 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 2257ccce678a..1089437409ec 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index a9294de35ab0..5465e51923e0 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index c9f8d2e12bec..35188e7499da 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.66.0 + 26.68.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.141.2 + 1.141.4 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.67.0') +implementation platform('com.google.cloud:libraries-bom:26.68.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index f314957415cd..c49754bbee38 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.62.1 -googleapis_commitish: 2585041b27d424ed4496d163671a95a7e1af4c31 -libraries_bom_version: 26.67.0 +gapic_generator_version: 2.62.2 +googleapis_commitish: d4a9eb5869a1698d8887a68dd17e5bda9ec802d3 +libraries_bom_version: 26.68.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json index 2f2c18108568..7d5a289e6167 100644 --- a/java-pubsub/renovate.json +++ b/java-pubsub/renovate.json @@ -92,5 +92,7 @@ } ], "semanticCommits": true, - "dependencyDashboard": true + "dependencyDashboard": true, + "prConcurrentLimit": 0, + "prHourlyLimit": 0 } From 8e94c0c72723a4259e2d66c44cb328b662577371 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 24 Sep 2025 16:49:12 -0400 Subject: [PATCH 2241/2363] chore(main): release 1.141.5 (#2552) * chore(main): release 1.141.5 * chore: generate libraries at Wed Sep 24 17:49:42 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 19 +++++++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 40 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index cee972fa9634..f314a1985870 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.141.5](https://github.com/googleapis/java-pubsub/compare/v1.141.4...v1.141.5) (2025-09-24) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.62.2 ([c02d304](https://github.com/googleapis/java-pubsub/commit/c02d304f5213410eda5f26fe98c96a5c1d4bf9d8)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2539](https://github.com/googleapis/java-pubsub/issues/2539)) ([83144e6](https://github.com/googleapis/java-pubsub/commit/83144e6d4110fbe15f4357270a292cfcbcc35dd6)) +* Update actions/github-script action to v8 ([#2542](https://github.com/googleapis/java-pubsub/issues/2542)) ([0e6f0da](https://github.com/googleapis/java-pubsub/commit/0e6f0daccfdca248b3b80ef7dfb0bd7a4baa607c)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.55.0 ([#2553](https://github.com/googleapis/java-pubsub/issues/2553)) ([15b9e66](https://github.com/googleapis/java-pubsub/commit/15b9e66f27cd6e57b808b96f3e15f08b1f0d7727)) +* Update dependency com.google.cloud:google-cloud-core to v2.60.1 ([#2543](https://github.com/googleapis/java-pubsub/issues/2543)) ([fbb45ce](https://github.com/googleapis/java-pubsub/commit/fbb45cee9e3740f8ac94b5fbaa65b97b8db09b1e)) +* Update dependency com.google.cloud:google-cloud-storage to v2.57.0 ([#2547](https://github.com/googleapis/java-pubsub/issues/2547)) ([133f8c7](https://github.com/googleapis/java-pubsub/commit/133f8c7995880c2d1e75b69d61c50254d4f9fede)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.2 ([#2558](https://github.com/googleapis/java-pubsub/issues/2558)) ([0623ac5](https://github.com/googleapis/java-pubsub/commit/0623ac54f735b076ccee165fc59a4a088309766a)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.32.1 ([#2551](https://github.com/googleapis/java-pubsub/issues/2551)) ([49722cb](https://github.com/googleapis/java-pubsub/commit/49722cb65e3b7cad01cf4389e1cf716a6ac1eb03)) +* Update googleapis/sdk-platform-java action to v2.62.2 ([#2559](https://github.com/googleapis/java-pubsub/issues/2559)) ([3f1d901](https://github.com/googleapis/java-pubsub/commit/3f1d90186899efe035179363408979a372e85a56)) + ## [1.141.4](https://github.com/googleapis/java-pubsub/compare/v1.141.3...v1.141.4) (2025-09-11) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 35188e7499da..bb65306ab403 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.4' +implementation 'com.google.cloud:google-cloud-pubsub:1.141.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.4" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.5" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.4 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.5 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e077cf283728..2f0e7750152d 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.5-SNAPSHOT + 1.141.5 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.5-SNAPSHOT + 1.141.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 2cf5cac72b29..ee7a7a7a77f9 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.5-SNAPSHOT + 1.141.5 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.5-SNAPSHOT + 1.141.5 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index c1ff71f770b9..37d8851e6169 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.5-SNAPSHOT + 1.141.5 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 4ecad7774fd0..48e66901847b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.5-SNAPSHOT + 1.141.5 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 com.google.cloud google-cloud-pubsub - 1.141.5-SNAPSHOT + 1.141.5 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a40babe3b57b..641554ffe1d6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5-SNAPSHOT + 1.123.5 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.5-SNAPSHOT + 1.141.5 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 24d6589d9352..0021625ae3d5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.5-SNAPSHOT + 1.141.5 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e52c774a27ed..fe095e621ae5 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.4:1.141.5-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.4:1.123.5-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.4:1.123.5-SNAPSHOT +google-cloud-pubsub:1.141.5:1.141.5 +grpc-google-cloud-pubsub-v1:1.123.5:1.123.5 +proto-google-cloud-pubsub-v1:1.123.5:1.123.5 From fd3347781a299fdd30ee90a4a25dc4d93e794428 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:06:52 +0100 Subject: [PATCH 2242/2363] deps: update dependency org.assertj:assertj-core to v3.27.6 (#2560) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 48e66901847b..9bec0a2fd634 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.27.4 + 3.27.6 test From ff05aef81373389bff5d2c465f2edfba319a12d6 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 29 Sep 2025 12:07:09 -0400 Subject: [PATCH 2243/2363] chore: Update generation configuration at Sat Sep 27 02:29:08 UTC 2025 (#2565) * chore: Update generation configuration at Thu Sep 25 02:32:59 UTC 2025 * chore: Update generation configuration at Sat Sep 27 02:29:08 UTC 2025 --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index c49754bbee38..7743a7af9cbc 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.62.2 -googleapis_commitish: d4a9eb5869a1698d8887a68dd17e5bda9ec802d3 +googleapis_commitish: 31b413bc4feb03f6849c718048c2b9998561b5fa libraries_bom_version: 26.68.0 libraries: - api_shortname: pubsub From aec9bee0ea8c1440c80f62dac1f7dca3619c5356 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:10:36 +0100 Subject: [PATCH 2244/2363] deps: update actions/checkout action to v5 (#2562) --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..59e39834dd05 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From fcbe864453521254287e1e44835ae793e0eaa939 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:10:44 +0100 Subject: [PATCH 2245/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.60.2 (#2557) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 7fdd3c558daa..377f438593af 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.60.1 + 2.60.2 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0021625ae3d5..624aa1545776 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.60.1 + 2.60.2 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 439d0dc651c8..1387f3270e90 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.60.1 + 2.60.2 tests From 45bcbfc3ab0e9760fc8d0a069b9ccfa08b6bb04c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:10:54 +0100 Subject: [PATCH 2246/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.141.5 (#2564) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 377f438593af..4dbfc2387e6c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5 From 07e69f806737fbdf56323f30203deb0107938ca3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:11:03 +0100 Subject: [PATCH 2247/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.55.1 (#2566) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4dbfc2387e6c..e322cb931120 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.55.0 + 2.55.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 624aa1545776..8de329de66c9 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.55.0 + 2.55.1 com.google.cloud From c962a7efa01a1c2e61eb9e9404c37f3064d6708e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 29 Sep 2025 17:14:12 +0100 Subject: [PATCH 2248/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.58.0 (#2561) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e322cb931120..da07fe3c918b 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.57.0 + 2.58.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8de329de66c9..ed3ac9108f3d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.57.0 + 2.58.0 com.google.cloud.opentelemetry From 648cbb8c912be347f09a6ec30288c083103762a9 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Fri, 3 Oct 2025 16:40:43 -0400 Subject: [PATCH 2249/2363] chore: Update generation configuration at Fri Oct 3 02:29:13 UTC 2025 (#2568) * chore: Update generation configuration at Tue Sep 30 02:29:43 UTC 2025 * chore: generate libraries at Tue Sep 30 02:30:17 UTC 2025 * chore: Update generation configuration at Wed Oct 1 02:34:55 UTC 2025 * chore: Update generation configuration at Thu Oct 2 02:29:38 UTC 2025 * chore: Update generation configuration at Fri Oct 3 02:29:13 UTC 2025 * chore: generate libraries at Fri Oct 3 02:29:47 UTC 2025 --- java-pubsub/.github/workflows/ci.yaml | 2 +- .../hermetic_library_generation.yaml | 2 +- .../workflows/update_generation_config.yaml | 2 +- .../.kokoro/presubmit/graalvm-native-a.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-b.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 4 +- java-pubsub/generation_config.yaml | 6 +- .../pubsub/v1/SubscriptionAdminClient.java | 1 + .../v1/SubscriptionAdminClientTest.java | 2 + .../com/google/pubsub/v1/PubsubProto.java | 285 +++++++++--------- .../pubsub/v1/StreamingPullRequest.java | 105 +++++++ .../v1/StreamingPullRequestOrBuilder.java | 15 + .../main/proto/google/pubsub/v1/pubsub.proto | 5 + 14 files changed, 282 insertions(+), 153 deletions(-) diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml index 10acf46ac7d7..b9b8be0c36db 100644 --- a/java-pubsub/.github/workflows/ci.yaml +++ b/java-pubsub/.github/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - java: [11, 17, 21, 24] + java: [11, 17, 21, 25] steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 640f7bbd531c..0e85f80524f9 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.2 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.3 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 59e39834dd05..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 5554627daa98..b7567eeb7ddf 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 1089437409ec..c7205f0abd46 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 5465e51923e0..f6ab8976a57a 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index bb65306ab403..8b9d2beff844 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.141.4 + 1.141.5 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.68.0') +implementation platform('com.google.cloud:libraries-bom:26.69.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 7743a7af9cbc..b8c06cfa0b2b 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.62.2 -googleapis_commitish: 31b413bc4feb03f6849c718048c2b9998561b5fa -libraries_bom_version: 26.68.0 +gapic_generator_version: 2.62.3 +googleapis_commitish: 9070e63a1f574261c153ef6e94afc55677200337 +libraries_bom_version: 26.69.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 61b93520fcae..e0e70beb2d0f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -2406,6 +2406,7 @@ public final UnaryCallable pullCallable() { * .setClientId("clientId908408390") * .setMaxOutstandingMessages(-1315266996) * .setMaxOutstandingBytes(-2103098517) + * .setProtocolVersion(-1161610703) * .build(); * bidiStream.send(request); * for (StreamingPullResponse response : bidiStream) { diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 6df11d0a0eb2..c7d13c720949 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1074,6 +1074,7 @@ public void streamingPullTest() throws Exception { .setClientId("clientId908408390") .setMaxOutstandingMessages(-1315266996) .setMaxOutstandingBytes(-2103098517) + .setProtocolVersion(-1161610703) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -1105,6 +1106,7 @@ public void streamingPullExceptionTest() throws Exception { .setClientId("clientId908408390") .setMaxOutstandingMessages(-1315266996) .setMaxOutstandingBytes(-2103098517) + .setProtocolVersion(-1161610703) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 6d51da2db41f..0a9017c9b990 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -835,7 +835,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022AcknowledgeRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\024\n" - + "\007ack_ids\030\002 \003(\tB\003\340A\002\"\307\002\n" + + "\007ack_ids\030\002 \003(\tB\003\340A\002\"\346\002\n" + "\024StreamingPullRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022\024\n" @@ -845,16 +845,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033stream_ack_deadline_seconds\030\005 \001(\005B\003\340A\002\022\026\n" + "\tclient_id\030\006 \001(\tB\003\340A\001\022%\n" + "\030max_outstanding_messages\030\007 \001(\003B\003\340A\001\022\"\n" - + "\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\"\236\006\n" + + "\025max_outstanding_bytes\030\010 \001(\003B\003\340A\001\022\035\n" + + "\020protocol_version\030\n" + + " \001(\003B\003\340A\001\"\236\006\n" + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 \001(\0132?.google.pubsub.v1.Stre" - + "amingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132E.google.pubsub.v1.StreamingPul" - + "lResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>." - + "google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\030acknowledge_confirmation\030\005" + + " \001(\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132" + + "E.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pu" + + "bsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -872,8 +874,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003" - + " \003(\01323.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\003 " + + "\003(\01323.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" @@ -886,141 +888,139 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + "\033pubsub.googleapis.com/Topic\0224\n" + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004 \003" - + "(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004 \003(\0132&.goog" + + "le.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" - + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" - + "\tsnapshots2\010snapshot\"N\n" - + "\022Get", - "SnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A" - + " \n\036pubsub.googleapis.com/Snapshot\"\215\001\n\024Li" - + "stSnapshotsRequest\022D\n\007project\030\001 \001(\tB3\340A\002" - + "\372A-\n+cloudresourcemanager.googleapis.com" - + "/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapshotsRespon" - + "se\0222\n\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1" - + ".SnapshotB\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB" - + "\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n\010snapsho" - + "t\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleapis.com/S" - + "napshot\"\306\001\n\013SeekRequest\022@\n\014subscription\030" - + "\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis.com/Sub" - + "scription\022/\n\004time\030\002 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A" - + "\001\372A \n\036pubsub.googleapis.com/SnapshotH\000B\010" - + "\n\006target\"\016\n\014SeekResponse2\270\013\n\tPublisher\022q" - + "\n\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027" - + ".google.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036" - + "/v1/{name=projects/*/topics/*}:\001*\022\221\001\n\013Up" - + "dateTopic\022$.google.pubsub.v1.UpdateTopic" - + "Request\032\027.google.pubsub.v1.Topic\"C\332A\021top" - + "ic,update_mask\202\323\344\223\002)2$/v1/{topic.name=pr" - + "ojects/*/topics/*}:\001*\022\223\001\n\007Publish\022 .goog" - + "le.pubsub.v1.PublishRequest\032!.google.pub" - + "sub.v1.PublishResponse\"C\332A\016topic,message" - + "s\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}" - + ":publish:\001*\022w\n\010GetTopic\022!.google.pubsub." - + "v1.GetTopicRequest\032\027.google.pubsub.v1.To" - + "pic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects" - + "/*/topics/*}\022\212\001\n\nListTopics\022#.google.pub" - + "sub.v1.ListTopicsRequest\032$.google.pubsub" - + ".v1.ListTopicsResponse\"1\332A\007project\202\323\344\223\002!" - + "\022\037/v1/{project=projects/*}/topics\022\272\001\n\026Li" - + "stTopicSubscriptions\022/.google.pubsub.v1." - + "ListTopicSubscriptionsRequest\0320.google.p" - + "ubsub.v1.ListTopicSubscriptionsResponse\"" - + "=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=projects/*/t" - + "opics/*}/subscriptions\022\252\001\n\022ListTopicSnap" - + "shots\022+.google.pubsub.v1.ListTopicSnapsh" - + "otsRequest\032,.google.pubsub.v1.ListTopicS" - + "napshotsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{t" - + "opic=projects/*/topics/*}/snapshots\022|\n\013D" - + "eleteTopic\022$.google.pubsub.v1.DeleteTopi" - + "cRequest\032\026.google.protobuf.Empty\"/\332A\005top" - + "ic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*" - + "}\022\255\001\n\022DetachSubscription\022+.google.pubsub" - + ".v1.DetachSubscriptionRequest\032,.google.p" - + "ubsub.v1.DetachSubscriptionResponse\"<\202\323\344" - + "\223\0026\"4/v1/{subscription=projects/*/subscr" - + "iptions/*}:detach\032p\312A\025pubsub.googleapis." - + "com\322AUhttps://www.googleapis.com/auth/cl" - + "oud-platform,https://www.googleapis.com/" - + "auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022CreateSub" - + "scription\022\036.google.pubsub.v1.Subscriptio" - + "n\032\036.google.pubsub.v1.Subscription\"^\332A+na" - + "me,topic,push_config,ack_deadline_second" - + "s\202\323\344\223\002*\032%/v1/{name=projects/*/subscripti" - + "ons/*}:\001*\022\241\001\n\017GetSubscription\022(.google.p" - + "ubsub.v1.GetSubscriptionRequest\032\036.google" - + ".pubsub.v1.Subscription\"D\332A\014subscription" - + "\202\323\344\223\002/\022-/v1/{subscription=projects/*/sub" - + "scriptions/*}\022\273\001\n\022UpdateSubscription\022+.g" - + "oogle.pubsub.v1.UpdateSubscriptionReques" - + "t\032\036.google.pubsub.v1.Subscription\"X\332A\030su" - + "bscription,update_mask\202\323\344\223\002722/v1/{subsc" - + "ription.name=projects/*/subscriptions/*}" - + ":\001*\022\246\001\n\021ListSubscriptions\022*.google.pubsu" - + "b.v1.ListSubscriptionsRequest\032+.google.p" - + "ubsub.v1.ListSubscriptionsResponse\"8\332A\007p" - + "roject\202\323\344\223\002(\022&/v1/{project=projects/*}/s" - + "ubscriptions\022\237\001\n\022DeleteSubscription\022+.go" - + "ogle.pubsub.v1.DeleteSubscriptionRequest" - + "\032\026.google.protobuf.Empty\"D\332A\014subscriptio" - + "n\202\323\344\223\002/*-/v1/{subscription=projects/*/su" - + "bscriptions/*}\022\317\001\n\021ModifyAckDeadline\022*.g" - + "oogle.pubsub.v1.ModifyAckDeadlineRequest" - + "\032\026.google.protobuf.Empty\"v\332A)subscriptio" - + "n,ack_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v" - + "1/{subscription=projects/*/subscriptions" - + "/*}:modifyAckDeadline:\001*\022\250\001\n\013Acknowledge" - + "\022$.google.pubsub.v1.AcknowledgeRequest\032\026" - + ".google.protobuf.Empty\"[\332A\024subscription," - + "ack_ids\202\323\344\223\002>\"9/v1/{subscription=project" - + "s/*/subscriptions/*}:acknowledge:\001*\022\320\001\n\004" - + "Pull\022\035.google.pubsub.v1.PullRequest\032\036.go" - + "ogle.pubsub.v1.PullResponse\"\210\001\332A,subscri" - + "ption,return_immediately,max_messages\332A\031" - + "subscription,max_messages\202\323\344\223\0027\"2/v1/{su" - + "bscription=projects/*/subscriptions/*}:p" - + "ull:\001*\022f\n\rStreamingPull\022&.google.pubsub." - + "v1.StreamingPullRequest\032\'.google.pubsub." - + "v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n\020Modif" - + "yPushConfig\022).google.pubsub.v1.ModifyPus" - + "hConfigRequest\032\026.google.protobuf.Empty\"d" - + "\332A\030subscription,push_config\202\323\344\223\002C\">/v1/{" - + "subscription=projects/*/subscriptions/*}" - + ":modifyPushConfig:\001*\022\211\001\n\013GetSnapshot\022$.g" - + "oogle.pubsub.v1.GetSnapshotRequest\032\032.goo" - + "gle.pubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002" - + "\'\022%/v1/{snapshot=projects/*/snapshots/*}" - + "\022\226\001\n\rListSnapshots\022&.google.pubsub.v1.Li" - + "stSnapshotsRequest\032\'.google.pubsub.v1.Li" - + "stSnapshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/" - + "v1/{project=projects/*}/snapshots\022\227\001\n\016Cr" - + "eateSnapshot\022\'.google.pubsub.v1.CreateSn" - + "apshotRequest\032\032.google.pubsub.v1.Snapsho" - + "t\"@\332A\021name,subscription\202\323\344\223\002&\032!/v1/{name" - + "=projects/*/snapshots/*}:\001*\022\243\001\n\016UpdateSn" - + "apshot\022\'.google.pubsub.v1.UpdateSnapshot" - + "Request\032\032.google.pubsub.v1.Snapshot\"L\332A\024" - + "snapshot,update_mask\202\323\344\223\002/2*/v1/{snapsho" - + "t.name=projects/*/snapshots/*}:\001*\022\213\001\n\016De" - + "leteSnapshot\022\'.google.pubsub.v1.DeleteSn" - + "apshotRequest\032\026.google.protobuf.Empty\"8\332" - + "A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=projects" - + "/*/snapshots/*}\022\204\001\n\004Seek\022\035.google.pubsub" - + ".v1.SeekRequest\032\036.google.pubsub.v1.SeekR" - + "esponse\"=\202\323\344\223\0027\"2/v1/{subscription=proje" - + "cts/*/subscriptions/*}:seek:\001*\032p\312A\025pubsu" - + "b.googleapis.com\322AUhttps://www.googleapi" - + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/pubsubB\252\001\n\024com.google." - + "pubsub.v1B\013PubsubProtoP\001Z5cloud.google.c" - + "om/go/pubsub/v2/apiv1/pubsubpb;pubsubpb\252" - + "\002\026Google.Cloud.PubSub.V1\312\002\026Google\\Cloud\\" - + "PubSub\\V1\352\002\031Google::Cloud::PubSub::V1b\006p" - + "roto3" + + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapsh", + "ot}*\tsnapshots2\010snapshot\"N\n\022GetSnapshotR" + + "equest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub" + + ".googleapis.com/Snapshot\"\215\001\n\024ListSnapsho" + + "tsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+clou" + + "dresourcemanager.googleapis.com/Project\022" + + "\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 " + + "\001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\0222\n\tsna" + + "pshots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot" + + "B\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025D" + + "eleteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&" + + "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\306" + + "\001\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340A" + + "\002\372A$\n\"pubsub.googleapis.com/Subscription" + + "\022/\n\004time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pub" + + "sub.googleapis.com/SnapshotH\000B\010\n\006target\"" + + "\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013CreateT" + + "opic\022\027.google.pubsub.v1.Topic\032\027.google.p" + + "ubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name" + + "=projects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic" + + "\022$.google.pubsub.v1.UpdateTopicRequest\032\027" + + ".google.pubsub.v1.Topic\"C\332A\021topic,update" + + "_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/" + + "topics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub" + + ".v1.PublishRequest\032!.google.pubsub.v1.Pu" + + "blishResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'" + + "/v1/{topic=projects/*/topics/*}:publish:" + + "\001*\022w\n\010GetTopic\022!.google.pubsub.v1.GetTop" + + "icRequest\032\027.google.pubsub.v1.Topic\"/\332A\005t" + + "opic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics" + + "/*}\022\212\001\n\nListTopics\022#.google.pubsub.v1.Li" + + "stTopicsRequest\032$.google.pubsub.v1.ListT" + + "opicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{pr" + + "oject=projects/*}/topics\022\272\001\n\026ListTopicSu" + + "bscriptions\022/.google.pubsub.v1.ListTopic" + + "SubscriptionsRequest\0320.google.pubsub.v1." + + "ListTopicSubscriptionsResponse\"=\332A\005topic" + + "\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/" + + "subscriptions\022\252\001\n\022ListTopicSnapshots\022+.g" + + "oogle.pubsub.v1.ListTopicSnapshotsReques" + + "t\032,.google.pubsub.v1.ListTopicSnapshotsR" + + "esponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=proj" + + "ects/*/topics/*}/snapshots\022|\n\013DeleteTopi" + + "c\022$.google.pubsub.v1.DeleteTopicRequest\032" + + "\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*" + + "\037/v1/{topic=projects/*/topics/*}\022\255\001\n\022Det" + + "achSubscription\022+.google.pubsub.v1.Detac" + + "hSubscriptionRequest\032,.google.pubsub.v1." + + "DetachSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/" + + "{subscription=projects/*/subscriptions/*" + + "}:detach\032p\312A\025pubsub.googleapis.com\322AUhtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/pubs" + + "ub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscription" + + "\022\036.google.pubsub.v1.Subscription\032\036.googl" + + "e.pubsub.v1.Subscription\"^\332A+name,topic," + + "push_config,ack_deadline_seconds\202\323\344\223\002*\032%" + + "/v1/{name=projects/*/subscriptions/*}:\001*" + + "\022\241\001\n\017GetSubscription\022(.google.pubsub.v1." + + "GetSubscriptionRequest\032\036.google.pubsub.v" + + "1.Subscription\"D\332A\014subscription\202\323\344\223\002/\022-/" + + "v1/{subscription=projects/*/subscription" + + "s/*}\022\273\001\n\022UpdateSubscription\022+.google.pub" + + "sub.v1.UpdateSubscriptionRequest\032\036.googl" + + "e.pubsub.v1.Subscription\"X\332A\030subscriptio" + + "n,update_mask\202\323\344\223\002722/v1/{subscription.n" + + "ame=projects/*/subscriptions/*}:\001*\022\246\001\n\021L" + + "istSubscriptions\022*.google.pubsub.v1.List" + + "SubscriptionsRequest\032+.google.pubsub.v1." + + "ListSubscriptionsResponse\"8\332A\007project\202\323\344" + + "\223\002(\022&/v1/{project=projects/*}/subscripti" + + "ons\022\237\001\n\022DeleteSubscription\022+.google.pubs" + + "ub.v1.DeleteSubscriptionRequest\032\026.google" + + ".protobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-" + + "/v1/{subscription=projects/*/subscriptio" + + "ns/*}\022\317\001\n\021ModifyAckDeadline\022*.google.pub" + + "sub.v1.ModifyAckDeadlineRequest\032\026.google" + + ".protobuf.Empty\"v\332A)subscription,ack_ids" + + ",ack_deadline_seconds\202\323\344\223\002D\"?/v1/{subscr" + + "iption=projects/*/subscriptions/*}:modif" + + "yAckDeadline:\001*\022\250\001\n\013Acknowledge\022$.google" + + ".pubsub.v1.AcknowledgeRequest\032\026.google.p" + + "rotobuf.Empty\"[\332A\024subscription,ack_ids\202\323" + + "\344\223\002>\"9/v1/{subscription=projects/*/subsc" + + "riptions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.go" + + "ogle.pubsub.v1.PullRequest\032\036.google.pubs" + + "ub.v1.PullResponse\"\210\001\332A,subscription,ret" + + "urn_immediately,max_messages\332A\031subscript" + + "ion,max_messages\202\323\344\223\0027\"2/v1/{subscriptio" + + "n=projects/*/subscriptions/*}:pull:\001*\022f\n" + + "\rStreamingPull\022&.google.pubsub.v1.Stream" + + "ingPullRequest\032\'.google.pubsub.v1.Stream" + + "ingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConf" + + "ig\022).google.pubsub.v1.ModifyPushConfigRe" + + "quest\032\026.google.protobuf.Empty\"d\332A\030subscr" + + "iption,push_config\202\323\344\223\002C\">/v1/{subscript" + + "ion=projects/*/subscriptions/*}:modifyPu" + + "shConfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pub" + + "sub.v1.GetSnapshotRequest\032\032.google.pubsu" + + "b.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{s" + + "napshot=projects/*/snapshots/*}\022\226\001\n\rList" + + "Snapshots\022&.google.pubsub.v1.ListSnapsho" + + "tsRequest\032\'.google.pubsub.v1.ListSnapsho" + + "tsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{proje" + + "ct=projects/*}/snapshots\022\227\001\n\016CreateSnaps" + + "hot\022\'.google.pubsub.v1.CreateSnapshotReq" + + "uest\032\032.google.pubsub.v1.Snapshot\"@\332A\021nam" + + "e,subscription\202\323\344\223\002&\032!/v1/{name=projects" + + "/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'." + + "google.pubsub.v1.UpdateSnapshotRequest\032\032" + + ".google.pubsub.v1.Snapshot\"L\332A\024snapshot," + + "update_mask\202\323\344\223\002/2*/v1/{snapshot.name=pr" + + "ojects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnaps" + + "hot\022\'.google.pubsub.v1.DeleteSnapshotReq" + + "uest\032\026.google.protobuf.Empty\"8\332A\010snapsho" + + "t\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsh" + + "ots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekR" + + "equest\032\036.google.pubsub.v1.SeekResponse\"=" + + "\202\323\344\223\0027\"2/v1/{subscription=projects/*/sub" + + "scriptions/*}:seek:\001*\032p\312A\025pubsub.googlea" + + "pis.com\322AUhttps://www.googleapis.com/aut" + + "h/cloud-platform,https://www.googleapis." + + "com/auth/pubsubB\252\001\n\024com.google.pubsub.v1" + + "B\013PubsubProtoP\001Z5cloud.google.com/go/pub" + + "sub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Google." + + "Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1" + + "\352\002\031Google::Cloud::PubSub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1699,6 +1699,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ClientId", "MaxOutstandingMessages", "MaxOutstandingBytes", + "ProtocolVersion", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = getDescriptor().getMessageTypes().get(41); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index 9a68de42df7c..b24d3d92231c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -531,6 +531,27 @@ public long getMaxOutstandingBytes() { return maxOutstandingBytes_; } + public static final int PROTOCOL_VERSION_FIELD_NUMBER = 10; + private long protocolVersion_ = 0L; + + /** + * + * + *
      +   * Optional. The protocol version used by the client. This property can only
      +   * be set on the initial StreamingPullRequest. If it is set on a subsequent
      +   * request, the stream will be aborted with status `INVALID_ARGUMENT`.
      +   * 
      + * + * int64 protocol_version = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The protocolVersion. + */ + @java.lang.Override + public long getProtocolVersion() { + return protocolVersion_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -575,6 +596,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxOutstandingBytes_ != 0L) { output.writeInt64(8, maxOutstandingBytes_); } + if (protocolVersion_ != 0L) { + output.writeInt64(10, protocolVersion_); + } getUnknownFields().writeTo(output); } @@ -629,6 +653,9 @@ public int getSerializedSize() { if (maxOutstandingBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, maxOutstandingBytes_); } + if (protocolVersion_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, protocolVersion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -653,6 +680,7 @@ public boolean equals(final java.lang.Object obj) { if (!getClientId().equals(other.getClientId())) return false; if (getMaxOutstandingMessages() != other.getMaxOutstandingMessages()) return false; if (getMaxOutstandingBytes() != other.getMaxOutstandingBytes()) return false; + if (getProtocolVersion() != other.getProtocolVersion()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -686,6 +714,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingMessages()); hash = (37 * hash) + MAX_OUTSTANDING_BYTES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxOutstandingBytes()); + hash = (37 * hash) + PROTOCOL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProtocolVersion()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -836,6 +866,7 @@ public Builder clear() { clientId_ = ""; maxOutstandingMessages_ = 0L; maxOutstandingBytes_ = 0L; + protocolVersion_ = 0L; return this; } @@ -899,6 +930,9 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullRequest result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.maxOutstandingBytes_ = maxOutstandingBytes_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.protocolVersion_ = protocolVersion_; + } } @java.lang.Override @@ -996,6 +1030,9 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullRequest other) { if (other.getMaxOutstandingBytes() != 0L) { setMaxOutstandingBytes(other.getMaxOutstandingBytes()); } + if (other.getProtocolVersion() != 0L) { + setProtocolVersion(other.getProtocolVersion()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1084,6 +1121,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 64 + case 80: + { + protocolVersion_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2262,6 +2305,68 @@ public Builder clearMaxOutstandingBytes() { return this; } + private long protocolVersion_; + + /** + * + * + *
      +     * Optional. The protocol version used by the client. This property can only
      +     * be set on the initial StreamingPullRequest. If it is set on a subsequent
      +     * request, the stream will be aborted with status `INVALID_ARGUMENT`.
      +     * 
      + * + * int64 protocol_version = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The protocolVersion. + */ + @java.lang.Override + public long getProtocolVersion() { + return protocolVersion_; + } + + /** + * + * + *
      +     * Optional. The protocol version used by the client. This property can only
      +     * be set on the initial StreamingPullRequest. If it is set on a subsequent
      +     * request, the stream will be aborted with status `INVALID_ARGUMENT`.
      +     * 
      + * + * int64 protocol_version = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The protocolVersion to set. + * @return This builder for chaining. + */ + public Builder setProtocolVersion(long value) { + + protocolVersion_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The protocol version used by the client. This property can only
      +     * be set on the initial StreamingPullRequest. If it is set on a subsequent
      +     * request, the stream will be aborted with status `INVALID_ARGUMENT`.
      +     * 
      + * + * int64 protocol_version = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProtocolVersion() { + bitField0_ = (bitField0_ & ~0x00000100); + protocolVersion_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 0e7f069b4082..d23cb626e876 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -370,4 +370,19 @@ public interface StreamingPullRequestOrBuilder * @return The maxOutstandingBytes. */ long getMaxOutstandingBytes(); + + /** + * + * + *
      +   * Optional. The protocol version used by the client. This property can only
      +   * be set on the initial StreamingPullRequest. If it is set on a subsequent
      +   * request, the stream will be aborted with status `INVALID_ARGUMENT`.
      +   * 
      + * + * int64 protocol_version = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The protocolVersion. + */ + long getProtocolVersion(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 5a8bb0768745..125b907f6774 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -2124,6 +2124,11 @@ message StreamingPullRequest { // set on a subsequent request, the stream will be aborted with status // `INVALID_ARGUMENT`. int64 max_outstanding_bytes = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The protocol version used by the client. This property can only + // be set on the initial StreamingPullRequest. If it is set on a subsequent + // request, the stream will be aborted with status `INVALID_ARGUMENT`. + int64 protocol_version = 10 [(google.api.field_behavior) = OPTIONAL]; } // Response for the `StreamingPull` method. This response is used to stream From d899d3bd39abbb13324a16cea8a1be093d69337e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Sun, 5 Oct 2025 23:48:04 +0100 Subject: [PATCH 2250/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.52.3 (#2572) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index e170e888e3df..8d2d29b64c9e 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.2 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.3 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2f0e7750152d..2f70055f91ad 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.52.2 + 3.52.3 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 9bec0a2fd634..658be89f8e28 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.52.2 + 3.52.3 From 7f637dee56eb5898d6d30ddd499caed2eac92b4b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Oct 2025 17:17:59 +0100 Subject: [PATCH 2251/2363] deps: update actions/checkout action to v5 (#2573) --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..59e39834dd05 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 12f0d514ddd806e9ac98b09304d486d151d3a49a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Oct 2025 17:18:31 +0100 Subject: [PATCH 2252/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.60.3 (#2571) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index da07fe3c918b..5ed3a7985ae1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.60.2 + 2.60.3 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ed3ac9108f3d..063c92cd5820 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.60.2 + 2.60.3 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 1387f3270e90..64bcfe14903b 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.60.2 + 2.60.3 tests From 3067751815ce7e064ef9c38ff37a9336b4e41b7f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 6 Oct 2025 17:18:52 +0100 Subject: [PATCH 2253/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.69.0 (#2567) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 64bcfe14903b..305bbc16e612 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.68.0 + 26.69.0 pom import From 33f70c180873dd80b451fbc495ab0591efe75269 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 21:28:56 -0400 Subject: [PATCH 2254/2363] chore(main): release 1.141.6-SNAPSHOT (#2563) * chore(main): release 1.141.6-SNAPSHOT * chore: generate libraries at Mon Oct 6 16:19:48 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .../.github/workflows/update_generation_config.yaml | 2 +- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 59e39834dd05..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8b9d2beff844..8af5bb6a5965 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.68.0 + 26.69.0 pom import diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 2f70055f91ad..fb3c0cd5d286 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.5 + 1.141.6-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.5 + 1.141.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT
      diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index ee7a7a7a77f9..d2af88f0f2ae 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.5 + 1.141.6-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.5 + 1.141.6-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 37d8851e6169..1c7e7a61478c 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.5 + 1.141.6-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 658be89f8e28..b8ca52dfdc7f 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.5 + 1.141.6-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.141.5 + 1.141.6-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 641554ffe1d6..749caccd48fe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.5 + 1.123.6-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.5 + 1.141.6-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 063c92cd5820..e021e56cda4f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.5 + 1.141.6-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index fe095e621ae5..6e98820a1668 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.5:1.141.5 -grpc-google-cloud-pubsub-v1:1.123.5:1.123.5 -proto-google-cloud-pubsub-v1:1.123.5:1.123.5 +google-cloud-pubsub:1.141.5:1.141.6-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.123.5:1.123.6-SNAPSHOT +proto-google-cloud-pubsub-v1:1.123.5:1.123.6-SNAPSHOT From 81939dce9913f4c9039a64075efe1c86cbe3e059 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 6 Oct 2025 21:29:10 -0400 Subject: [PATCH 2255/2363] chore: Update generation configuration at Sat Oct 4 02:28:33 UTC 2025 (#2574) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index b8c06cfa0b2b..8073cf549bf5 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.62.3 -googleapis_commitish: 9070e63a1f574261c153ef6e94afc55677200337 +googleapis_commitish: 2193a2bfcecb92b92aad7a4d81baa428cafd7dfd libraries_bom_version: 26.69.0 libraries: - api_shortname: pubsub From ad8ec025620390bc0ca916f441138f604685c2cd Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 6 Oct 2025 23:20:22 -0400 Subject: [PATCH 2256/2363] chore: Update generation configuration at Tue Oct 7 02:30:12 UTC 2025 (#2577) --- java-pubsub/generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 8073cf549bf5..b70e279e653f 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.62.3 -googleapis_commitish: 2193a2bfcecb92b92aad7a4d81baa428cafd7dfd +googleapis_commitish: 6e79e73204aed17b11e724beebb9cf11f36ea57d libraries_bom_version: 26.69.0 libraries: - api_shortname: pubsub From b2a81a369292e76134c651a8795c58392f337070 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 7 Oct 2025 03:38:30 +0000 Subject: [PATCH 2257/2363] chore(main): release 1.142.0 (#2575) :robot: I have created a release *beep* *boop* --- ## [1.142.0](https://togithub.com/googleapis/java-pubsub/compare/v1.141.5...v1.142.0) (2025-10-07) ### Features * Support the protocol version in StreamingPullRequest ([648cbb8](https://togithub.com/googleapis/java-pubsub/commit/648cbb8c912be347f09a6ec30288c083103762a9)) ### Bug Fixes * **deps:** Update the Java code generator (gapic-generator-java) to 2.62.3 ([648cbb8](https://togithub.com/googleapis/java-pubsub/commit/648cbb8c912be347f09a6ec30288c083103762a9)) ### Dependencies * Update actions/checkout action to v5 ([#2562](https://togithub.com/googleapis/java-pubsub/issues/2562)) ([aec9bee](https://togithub.com/googleapis/java-pubsub/commit/aec9bee0ea8c1440c80f62dac1f7dca3619c5356)) * Update actions/checkout action to v5 ([#2573](https://togithub.com/googleapis/java-pubsub/issues/2573)) ([7f637de](https://togithub.com/googleapis/java-pubsub/commit/7f637dee56eb5898d6d30ddd499caed2eac92b4b)) * Update dependency com.google.cloud:google-cloud-bigquery to v2.55.1 ([#2566](https://togithub.com/googleapis/java-pubsub/issues/2566)) ([07e69f8](https://togithub.com/googleapis/java-pubsub/commit/07e69f806737fbdf56323f30203deb0107938ca3)) * Update dependency com.google.cloud:google-cloud-core to v2.60.2 ([#2557](https://togithub.com/googleapis/java-pubsub/issues/2557)) ([fcbe864](https://togithub.com/googleapis/java-pubsub/commit/fcbe864453521254287e1e44835ae793e0eaa939)) * Update dependency com.google.cloud:google-cloud-core to v2.60.3 ([#2571](https://togithub.com/googleapis/java-pubsub/issues/2571)) ([12f0d51](https://togithub.com/googleapis/java-pubsub/commit/12f0d514ddd806e9ac98b09304d486d151d3a49a)) * Update dependency com.google.cloud:google-cloud-storage to v2.58.0 ([#2561](https://togithub.com/googleapis/java-pubsub/issues/2561)) ([c962a7e](https://togithub.com/googleapis/java-pubsub/commit/c962a7efa01a1c2e61eb9e9404c37f3064d6708e)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.52.3 ([#2572](https://togithub.com/googleapis/java-pubsub/issues/2572)) ([d899d3b](https://togithub.com/googleapis/java-pubsub/commit/d899d3bd39abbb13324a16cea8a1be093d69337e)) * Update dependency org.assertj:assertj-core to v3.27.6 ([#2560](https://togithub.com/googleapis/java-pubsub/issues/2560)) ([fd33477](https://togithub.com/googleapis/java-pubsub/commit/fd3347781a299fdd30ee90a4a25dc4d93e794428)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/CHANGELOG.md | 24 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 45 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index f314a1985870..bb63149ef455 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [1.142.0](https://github.com/googleapis/java-pubsub/compare/v1.141.5...v1.142.0) (2025-10-07) + + +### Features + +* Support the protocol version in StreamingPullRequest ([af40810](https://github.com/googleapis/java-pubsub/commit/af40810ea0668ce4e8c4d69bdbb4b281073976d0)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.62.3 ([af40810](https://github.com/googleapis/java-pubsub/commit/af40810ea0668ce4e8c4d69bdbb4b281073976d0)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2562](https://github.com/googleapis/java-pubsub/issues/2562)) ([b7fa499](https://github.com/googleapis/java-pubsub/commit/b7fa49968e85dfeba8a84ea29f8ddf9d33ef22c5)) +* Update actions/checkout action to v5 ([#2573](https://github.com/googleapis/java-pubsub/issues/2573)) ([4153dba](https://github.com/googleapis/java-pubsub/commit/4153dbacb386b130780c8d1e5596e3502af8e32b)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.55.1 ([#2566](https://github.com/googleapis/java-pubsub/issues/2566)) ([66c9ec4](https://github.com/googleapis/java-pubsub/commit/66c9ec4a26b76ca384dce71a8ab6bce8cd34b8a3)) +* Update dependency com.google.cloud:google-cloud-core to v2.60.2 ([#2557](https://github.com/googleapis/java-pubsub/issues/2557)) ([460bcd9](https://github.com/googleapis/java-pubsub/commit/460bcd9158e7058f710f43200b7b7737eb47839c)) +* Update dependency com.google.cloud:google-cloud-core to v2.60.3 ([#2571](https://github.com/googleapis/java-pubsub/issues/2571)) ([ac2c85a](https://github.com/googleapis/java-pubsub/commit/ac2c85ad62525aee236af54f6b5c9b1eacf4d22a)) +* Update dependency com.google.cloud:google-cloud-storage to v2.58.0 ([#2561](https://github.com/googleapis/java-pubsub/issues/2561)) ([0189388](https://github.com/googleapis/java-pubsub/commit/0189388edb4d618d65f33718922ca1b11f71cb15)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.52.3 ([#2572](https://github.com/googleapis/java-pubsub/issues/2572)) ([0785ee4](https://github.com/googleapis/java-pubsub/commit/0785ee490e858c104c420046e0098d81154ae273)) +* Update dependency org.assertj:assertj-core to v3.27.6 ([#2560](https://github.com/googleapis/java-pubsub/issues/2560)) ([c82766a](https://github.com/googleapis/java-pubsub/commit/c82766a9efb2bb4df01fb7fdcb35259db39e05c7)) + ## [1.141.5](https://github.com/googleapis/java-pubsub/compare/v1.141.4...v1.141.5) (2025-09-24) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 8af5bb6a5965..5e43686c1bc2 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.141.5' +implementation 'com.google.cloud:google-cloud-pubsub:1.142.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.141.5" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.142.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.141.5 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.142.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fb3c0cd5d286..99a6172511f6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.141.6-SNAPSHOT + 1.142.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.141.6-SNAPSHOT + 1.142.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d2af88f0f2ae..381bf7cda83c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.141.6-SNAPSHOT + 1.142.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.141.6-SNAPSHOT + 1.142.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1c7e7a61478c..9c877b80ca92 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.6-SNAPSHOT + 1.142.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b8ca52dfdc7f..3493ec8a694a 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.141.6-SNAPSHOT + 1.142.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 com.google.cloud google-cloud-pubsub - 1.141.6-SNAPSHOT + 1.142.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 749caccd48fe..dd40d7622e31 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.123.6-SNAPSHOT + 1.124.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.141.6-SNAPSHOT + 1.142.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index e021e56cda4f..8e1b4df9ae37 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.141.6-SNAPSHOT + 1.142.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 6e98820a1668..dc8172577023 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.141.5:1.141.6-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.123.5:1.123.6-SNAPSHOT -proto-google-cloud-pubsub-v1:1.123.5:1.123.6-SNAPSHOT +google-cloud-pubsub:1.142.0:1.142.0 +grpc-google-cloud-pubsub-v1:1.124.0:1.124.0 +proto-google-cloud-pubsub-v1:1.124.0:1.124.0 From 560933a35e1e2363d30415ba3c254f99b6f305bd Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 7 Oct 2025 14:32:43 -0400 Subject: [PATCH 2258/2363] feat: Implement SubscriberShutdownSettings (#2569) * feat: Implement SubscriberShutdownSettings chore: Format and cleanup sample chore: Remove hardcoded version from samples pom.xml * fix: Fix typo in Subscriber class comments --- .../cloud/pubsub/v1/MessageDispatcher.java | 91 ++++++- .../v1/StreamingSubscriberConnection.java | 42 +++- .../google/cloud/pubsub/v1/Subscriber.java | 51 +++- .../pubsub/v1/SubscriberShutdownSettings.java | 102 ++++++++ .../com/google/cloud/pubsub/v1/Waiter.java | 27 ++ .../pubsub/v1/FakeSubscriberServiceImpl.java | 23 +- .../pubsub/v1/MessageDispatcherTest.java | 232 ++++++++++++++++++ .../v1/StreamingSubscriberConnectionTest.java | 129 ++++++++++ .../v1/SubscriberShutdownSettingsTest.java | 100 ++++++++ .../cloud/pubsub/v1/SubscriberTest.java | 98 ++++++++ .../google/cloud/pubsub/v1/WaiterTest.java | 46 ++++ 11 files changed, 916 insertions(+), 25 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java create mode 100644 java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 983844a62b2f..1a6dab2b240c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -62,6 +62,7 @@ class MessageDispatcher { @InternalApi static final double PERCENTILE_FOR_ACK_DEADLINE_UPDATES = 99.9; @InternalApi static final Duration PENDING_ACKS_SEND_DELAY = Duration.ofMillis(100); + @InternalApi static final long FINAL_NACK_TIMEOUT = Duration.ofSeconds(1).toMillis(); private final Executor executor; private final SequentialExecutorService.AutoExecutor sequentialExecutor; @@ -108,6 +109,8 @@ class MessageDispatcher { private final SubscriptionName subscriptionNameObject; private final boolean enableOpenTelemetryTracing; private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + private final SubscriberShutdownSettings subscriberShutdownSettings; + private final AtomicBoolean nackImmediatelyShutdownInProgress = new AtomicBoolean(false); /** Internal representation of a reply to a Pubsub message, to be sent back to the service. */ public enum AckReply { @@ -170,12 +173,18 @@ public void onFailure(Throwable t) { public void onSuccess(AckReply reply) { switch (reply) { case ACK: - pendingAcks.add(this.ackRequestData); - // Record the latency rounded to the next closest integer. - ackLatencyDistribution.record( - Ints.saturatedCast( - (long) Math.ceil((clock.millisTime() - receivedTimeMillis) / 1000D))); - tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "ack"); + if (nackImmediatelyShutdownInProgress.get() && exactlyOnceDeliveryEnabled.get()) { + this.ackRequestData.setResponse(AckResponse.OTHER, true); + tracer.endSubscribeProcessSpan( + this.ackRequestData.getMessageWrapper(), "ack failed_with_nack_immediately"); + } else { + pendingAcks.add(this.ackRequestData); + // Record the latency rounded to the next closest integer. + ackLatencyDistribution.record( + Ints.saturatedCast( + (long) Math.ceil((clock.millisTime() - receivedTimeMillis) / 1000D))); + tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "ack"); + } break; case NACK: pendingNacks.add(this.ackRequestData); @@ -231,6 +240,7 @@ private MessageDispatcher(Builder builder) { if (builder.tracer != null) { tracer = builder.tracer; } + this.subscriberShutdownSettings = builder.subscriberShutdownSettings; } private boolean shouldSetMessageFuture() { @@ -294,8 +304,60 @@ public void run() { } } + private void nackAllOutstandingMessages() { + nackImmediatelyShutdownInProgress.set(true); + List handlersToNack = new ArrayList<>(pendingMessages.values()); + for (AckHandler ackHandler : handlersToNack) { + pendingNacks.add(ackHandler.getAckRequestData()); + ackHandler.forget(); // This removes from pendingMessages, releases flow control, etc. + } + } + void stop() { - messagesWaiter.waitComplete(); + switch (subscriberShutdownSettings.getMode()) { + case WAIT_FOR_PROCESSING: + logger.log( + Level.FINE, + "WAIT_FOR_PROCESSING shutdown mode: Waiting for outstanding messages to complete processing."); + java.time.Duration timeout = subscriberShutdownSettings.getTimeout(); + if (timeout.isNegative()) { + // Indefinite wait use existing blocking wait + messagesWaiter.waitComplete(); + } else { + // Wait for (timeout - 1 second) for messages to complete + long gracePeriodMillis = Math.max(0, timeout.toMillis() - FINAL_NACK_TIMEOUT); + boolean completedWait = messagesWaiter.tryWait(gracePeriodMillis, clock); + if (!completedWait) { + logger.log( + Level.WARNING, + "Grace period expired for WAIT_FOR_PROCESSING shutdown. Nacking remaining messages."); + // Switch to NACK_IMMEDIATELY behavior for remaining messages + nackAllOutstandingMessages(); + } + } + cancelBackgroundJob(); + processOutstandingOperations(); // Send any remaining acks/nacks. + break; + + case NACK_IMMEDIATELY: + logger.log(Level.FINE, "NACK_IMMEDIATELY shutdown mode: Nacking all outstanding messages."); + // Stop extending deadlines immediately. + cancelBackgroundJob(); + nackAllOutstandingMessages(); + processOutstandingOperations(); // Send all pending nacks. + break; + + default: + logger.log(Level.WARNING, "Unknown shutdown mode: " + subscriberShutdownSettings.getMode()); + // Default to WAIT_FOR_PROCESSING behavior + messagesWaiter.waitComplete(); + cancelBackgroundJob(); + processOutstandingOperations(); + break; + } + } + + private void cancelBackgroundJob() { jobLock.lock(); try { if (backgroundJob != null) { @@ -309,7 +371,6 @@ void stop() { } finally { jobLock.unlock(); } - processOutstandingOperations(); } @InternalApi @@ -364,6 +425,11 @@ void setMessageOrderingEnabled(boolean messageOrderingEnabled) { this.messageOrderingEnabled.set(messageOrderingEnabled); } + @InternalApi + boolean getNackImmediatelyShutdownInProgress() { + return nackImmediatelyShutdownInProgress.get(); + } + private static class OutstandingMessage { private final AckHandler ackHandler; @@ -661,7 +727,7 @@ void processOutstandingOperations() { List ackRequestDataReceipts = new ArrayList(); pendingReceipts.drainTo(ackRequestDataReceipts); - if (!ackRequestDataReceipts.isEmpty()) { + if (!ackRequestDataReceipts.isEmpty() && !getNackImmediatelyShutdownInProgress()) { ModackRequestData receiptModack = new ModackRequestData(this.getMessageDeadlineSeconds(), ackRequestDataReceipts); receiptModack.setIsReceiptModack(true); @@ -705,6 +771,7 @@ public static final class Builder { private String subscriptionName; private boolean enableOpenTelemetryTracing; private OpenTelemetryPubsubTracer tracer; + private SubscriberShutdownSettings subscriberShutdownSettings; protected Builder(MessageReceiver receiver) { this.receiver = receiver; @@ -791,6 +858,12 @@ public Builder setTracer(OpenTelemetryPubsubTracer tracer) { return this; } + public Builder setSubscriberShutdownSettings( + SubscriberShutdownSettings subscriberShutdownSettings) { + this.subscriberShutdownSettings = subscriberShutdownSettings; + return this; + } + public MessageDispatcher build() { return new MessageDispatcher(this); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index baf96f3858e0..319dd31f5e3f 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -98,6 +98,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final String subscription; private final SubscriptionName subscriptionNameObject; private final ScheduledExecutorService systemExecutor; + private final ApiClock clock; private final MessageDispatcher messageDispatcher; private final FlowControlSettings flowControlSettings; @@ -124,11 +125,13 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final boolean enableOpenTelemetryTracing; private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + private final SubscriberShutdownSettings subscriberShutdownSettings; private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; subscriptionNameObject = SubscriptionName.parse(builder.subscription); systemExecutor = builder.systemExecutor; + clock = builder.clock; // We need to set the default stream ack deadline on the initial request, this will be // updated by modack requests in the message dispatcher @@ -163,6 +166,7 @@ private StreamingSubscriberConnection(Builder builder) { if (builder.tracer != null) { tracer = builder.tracer; } + this.subscriberShutdownSettings = builder.subscriberShutdownSettings; messageDispatcher = messageDispatcherBuilder @@ -181,6 +185,7 @@ private StreamingSubscriberConnection(Builder builder) { .setSubscriptionName(subscription) .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) .setTracer(tracer) + .setSubscriberShutdownSettings(subscriberShutdownSettings) .build(); flowControlSettings = builder.flowControlSettings; @@ -218,8 +223,21 @@ protected void doStop() { } private void runShutdown() { + java.time.Duration timeout = subscriberShutdownSettings.getTimeout(); + if (timeout.isZero()) { + return; + } + messageDispatcher.stop(); - ackOperationsWaiter.waitComplete(); + if (timeout.isNegative()) { + ackOperationsWaiter.waitComplete(); + } else { + boolean completedWait = ackOperationsWaiter.tryWait(timeout.toMillis(), clock); + if (!completedWait) { + logger.log( + Level.WARNING, "Timeout exceeded while waiting for ACK/NACK operations to complete."); + } + } } private class StreamingPullResponseObserver implements ResponseObserver { @@ -554,9 +572,18 @@ public void onSuccess(Empty empty) { tracer.endSubscribeRpcSpan(rpcSpan); for (AckRequestData ackRequestData : ackRequestDataList) { - // This will check if a response is needed, and if it has already been set - ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); - messageDispatcher.notifyAckSuccess(ackRequestData); + // If we are in NACK_IMMEDIATELY shutdown mode, we will set failures on acks/nack so that + // an error is surfaced if the user + // manually acks or nacks in their callback. + if (setResponseOnSuccess + && getExactlyOnceDeliveryEnabled() + && messageDispatcher.getNackImmediatelyShutdownInProgress()) { + ackRequestData.setResponse(AckResponse.OTHER, setResponseOnSuccess); + messageDispatcher.notifyAckFailed(ackRequestData); + } else { + ackRequestData.setResponse(AckResponse.SUCCESSFUL, setResponseOnSuccess); + messageDispatcher.notifyAckSuccess(ackRequestData); + } // Remove from our pending operations pendingRequests.remove(ackRequestData); tracer.addEndRpcEvent( @@ -751,6 +778,7 @@ public static final class Builder { private boolean enableOpenTelemetryTracing; private OpenTelemetryPubsubTracer tracer; + private SubscriberShutdownSettings subscriberShutdownSettings; protected Builder(MessageReceiver receiver) { this.receiver = receiver; @@ -852,6 +880,12 @@ public Builder setTracer(OpenTelemetryPubsubTracer tracer) { return this; } + public Builder setSubscriberShutdownSettings( + SubscriberShutdownSettings subscriberShutdownSettings) { + this.subscriberShutdownSettings = subscriberShutdownSettings; + return this; + } + public StreamingSubscriberConnection build() { return new StreamingSubscriberConnection(this); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index b149bed378a0..28ba62d8e59b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -168,6 +168,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final boolean enableOpenTelemetryTracing; private final OpenTelemetry openTelemetry; private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); + private final SubscriberShutdownSettings subscriberShutdownSettings; private Subscriber(Builder builder) { receiver = builder.receiver; @@ -223,6 +224,7 @@ private Subscriber(Builder builder) { this.enableOpenTelemetryTracing = builder.enableOpenTelemetryTracing; this.openTelemetry = builder.openTelemetry; + this.subscriberShutdownSettings = builder.subscriberShutdownSettings; if (this.openTelemetry != null && this.enableOpenTelemetryTracing) { Tracer openTelemetryTracer = builder.openTelemetry.getTracer(OPEN_TELEMETRY_TRACER_NAME); if (openTelemetryTracer != null) { @@ -366,7 +368,6 @@ protected void doStop() { @Override public void run() { try { - // stop connection is no-op if connections haven't been started. runShutdown(); notifyStopped(); } catch (Exception e) { @@ -378,7 +379,13 @@ public void run() { } private void runShutdown() { - stopAllStreamingConnections(); + java.time.Duration timeout = subscriberShutdownSettings.getTimeout(); + long deadlineMillis = -1; + if (!timeout.isNegative()) { + deadlineMillis = clock.millisTime() + timeout.toMillis(); + } + + stopAllStreamingConnections(deadlineMillis); shutdownBackgroundResources(); subscriberStub.shutdownNow(); } @@ -420,6 +427,7 @@ private void startStreamingConnections() { .setClock(clock) .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) .setTracer(tracer) + .setSubscriberShutdownSettings(subscriberShutdownSettings) .build(); streamingSubscriberConnections.add(streamingSubscriberConnection); @@ -445,8 +453,8 @@ public void failed(State from, Throwable failure) { } } - private void stopAllStreamingConnections() { - stopConnections(streamingSubscriberConnections); + private void stopAllStreamingConnections(long deadlineMillis) { + stopConnections(streamingSubscriberConnections, deadlineMillis); } private void shutdownBackgroundResources() { @@ -466,7 +474,7 @@ private void startConnections( } } - private void stopConnections(List connections) { + private void stopConnections(List connections, long deadlineMillis) { ArrayList liveConnections; synchronized (connections) { liveConnections = new ArrayList(connections); @@ -477,11 +485,19 @@ private void stopConnections(List connections) { } for (ApiService subscriber : liveConnections) { try { - subscriber.awaitTerminated(); - } catch (IllegalStateException e) { - // If the service fails, awaitTerminated will throw an exception. - // However, we could be stopping services because at least one - // has already failed, so we just ignore this exception. + if (deadlineMillis < 0) { + // Wait indefinitely + subscriber.awaitTerminated(); + } else { + long remaining = deadlineMillis - clock.millisTime(); + if (remaining < 0) { + remaining = 0; + } + subscriber.awaitTerminated(remaining, java.util.concurrent.TimeUnit.MILLISECONDS); + } + } catch (Exception e) { + logger.log(Level.FINE, "Exception while waiting for a connection to terminate", e); + break; // Stop waiting for other connections. } } } @@ -532,6 +548,9 @@ public static final class Builder { private boolean enableOpenTelemetryTracing = false; private OpenTelemetry openTelemetry = null; + private SubscriberShutdownSettings subscriberShutdownSettings = + SubscriberShutdownSettings.newBuilder().build(); + Builder(String subscription, MessageReceiver receiver) { this.subscription = subscription; this.receiver = receiver; @@ -772,6 +791,18 @@ public Builder setOpenTelemetry(OpenTelemetry openTelemetry) { return this; } + /** + * Sets the shutdown settings for the subscriber. Defaults to {@link + * SubscriberShutdownSettings#newBuilder() default settings}. + */ + @BetaApi( + "The surface for SubscriberShutdownSettings is not stable yet and may be changed in the future.") + public Builder setSubscriberShutdownSettings( + SubscriberShutdownSettings subscriberShutdownSettings) { + this.subscriberShutdownSettings = Preconditions.checkNotNull(subscriberShutdownSettings); + return this; + } + /** Returns the default FlowControlSettings used by the client if settings are not provided. */ public static FlowControlSettings getDefaultFlowControlSettings() { return DEFAULT_FLOW_CONTROL_SETTINGS; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java new file mode 100644 index 000000000000..efd8e10db809 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.common.base.Preconditions; +import java.time.Duration; + +/** + * Settings for configuring the shutdown behavior of a {@link Subscriber}. + * + *

      This class allows customization of how the subscriber handles outstanding messages during + * shutdown, including whether to wait for processing to complete or to immediately nack messages, + * and an optional timeout for the shutdown process. + */ +public final class SubscriberShutdownSettings { + + /** Defines the behavior for handling outstanding messages during subscriber shutdown. */ + public enum ShutdownMode { + /** + * The subscriber will wait for all outstanding messages to be processed (acked or nacked by the + * user's message receiver) before completing the shutdown. + */ + WAIT_FOR_PROCESSING, + /** + * The subscriber will immediately nack all outstanding messages and attempt to shut down as + * quickly as possible. Messages delivered to the user callback but not yet acked/nacked will + * also be nacked. + */ + NACK_IMMEDIATELY + } + + private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(-1); // Indicates no timeout + private static final ShutdownMode DEFAULT_MODE = ShutdownMode.WAIT_FOR_PROCESSING; + + private final ShutdownMode mode; + private final Duration timeout; + + private SubscriberShutdownSettings(Builder builder) { + this.mode = builder.mode; + this.timeout = builder.timeout; + } + + /** Returns the configured shutdown mode. */ + public ShutdownMode getMode() { + return mode; + } + + /** Returns the configured shutdown timeout. A negative duration indicates no timeout. */ + public Duration getTimeout() { + return timeout; + } + + /** Returns a new builder for {@code SubscriberShutdownSettings}. */ + public static Builder newBuilder() { + return new Builder(); + } + + /** Builder for {@code SubscriberShutdownSettings}. */ + public static final class Builder { + private ShutdownMode mode = DEFAULT_MODE; + private Duration timeout = DEFAULT_TIMEOUT; + + private Builder() {} + + /** Sets the shutdown mode. Defaults to {@link ShutdownMode#WAIT_FOR_PROCESSING}. */ + public Builder setMode(ShutdownMode mode) { + this.mode = Preconditions.checkNotNull(mode); + return this; + } + + /** + * Sets the shutdown timeout. Defaults to a negative duration, indicating no timeout. + * + *

      A positive duration specifies the maximum time to wait for shutdown to complete. A + * duration of zero indicates an immediate, forceful shutdown. A negative duration indicates an + * indefinite wait. + */ + public Builder setTimeout(Duration timeout) { + this.timeout = Preconditions.checkNotNull(timeout); + return this; + } + + /** Builds an instance of {@code SubscriberShutdownSettings}. */ + public SubscriberShutdownSettings build() { + return new SubscriberShutdownSettings(this); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java index e22125feea9f..7221d5144eac 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java @@ -16,6 +16,7 @@ package com.google.cloud.pubsub.v1; +import com.google.api.core.ApiClock; import com.google.api.core.InternalApi; /** @@ -54,6 +55,32 @@ public synchronized void waitComplete() { } } + public synchronized boolean tryWait(long timeoutMilliseconds, ApiClock clock) { + long startTime = clock.millisTime(); + long remainingMilliseconds = timeoutMilliseconds; + boolean interrupted = false; + boolean completedWait = true; + try { + while (pendingCount > 0) { + if (remainingMilliseconds <= 0) { + completedWait = false; + break; + } + try { + wait(remainingMilliseconds); + } catch (InterruptedException e) { + interrupted = true; + } + remainingMilliseconds = timeoutMilliseconds - (clock.millisTime() - startTime); + } + } finally { + if (interrupted) { + Thread.currentThread().interrupt(); + } + } + return completedWait; + } + @InternalApi public int pendingCount() { return pendingCount; diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java index 173248041aec..3b2bd2f5d89a 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java @@ -24,6 +24,7 @@ import com.google.pubsub.v1.PublisherGrpc.PublisherImplBase; import com.google.pubsub.v1.PullRequest; import com.google.pubsub.v1.PullResponse; +import com.google.pubsub.v1.ReceivedMessage; import com.google.pubsub.v1.StreamingPullRequest; import com.google.pubsub.v1.StreamingPullResponse; import com.google.pubsub.v1.SubscriberGrpc.SubscriberImplBase; @@ -247,8 +248,26 @@ public void modifyAckDeadline( responseObserver.onCompleted(); } + public void sendMessages(int numMessages) throws InterruptedException { + waitForRegisteredSubscription(); + synchronized (openedStreams) { + waitForOpenedStreams(1); + Stream stream = openedStreams.get(getAndAdvanceCurrentStream()); + StreamingPullResponse.Builder response = StreamingPullResponse.newBuilder(); + for (int i = 0; i < numMessages; i++) { + response.addReceivedMessages( + ReceivedMessage.newBuilder() + .setAckId("ackid" + i) + .setMessage( + com.google.pubsub.v1.PubsubMessage.newBuilder().setMessageId("id" + i).build()) + .build()); + } + stream.responseObserver.onNext(response.build()); + } + } + public void sendError(Throwable error) throws InterruptedException { - waitForRegistedSubscription(); + waitForRegisteredSubscription(); synchronized (openedStreams) { waitForOpenedStreams(1); Stream stream = openedStreams.get(getAndAdvanceCurrentStream()); @@ -257,7 +276,7 @@ public void sendError(Throwable error) throws InterruptedException { } } - public String waitForRegistedSubscription() throws InterruptedException { + public String waitForRegisteredSubscription() throws InterruptedException { synchronized (subscriptionInitialized) { while (!subscriptionInitialized.get()) { subscriptionInitialized.wait(); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java index 1de15693915c..1285fadd5938 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java @@ -18,6 +18,9 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.*; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.argThat; +import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.*; import com.google.api.gax.batching.FlowController; @@ -713,9 +716,238 @@ private MessageDispatcher getMessageDispatcherFromBuilder( .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) .setSystemExecutor(systemExecutor) .setApiClock(clock) + .setSubscriberShutdownSettings(SubscriberShutdownSettings.newBuilder().build()) .build(); messageDispatcher.setMessageDeadlineSeconds(MIN_ACK_DEADLINE_SECONDS); return messageDispatcher; } + + private MessageDispatcher getMessageDispatcherFromBuilder( + MessageDispatcher.Builder builder, SubscriberShutdownSettings shutdownSettings) { + MessageDispatcher messageDispatcher = + builder + .setAckProcessor(mockAckProcessor) + .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT) + .setMaxAckExtensionPeriod(MAX_ACK_EXTENSION_PERIOD) + .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) + .setMinDurationPerAckExtensionDefaultUsed(true) + .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) + .setMaxDurationPerAckExtensionDefaultUsed(true) + .setAckLatencyDistribution(mock(Distribution.class)) + .setFlowController(mock(FlowController.class)) + .setExecutor(MoreExecutors.newDirectExecutorService()) + .setSubscriptionName(MOCK_SUBSCRIPTION_NAME) + .setSystemExecutor(systemExecutor) + .setApiClock(clock) + .setSubscriberShutdownSettings(shutdownSettings) + .build(); + + messageDispatcher.setMessageDeadlineSeconds(MIN_ACK_DEADLINE_SECONDS); + return messageDispatcher; + } + + @Test + public void testStop_waitForProcessing_indefinite() throws Exception { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(-1)) + .build(); + MessageDispatcher dispatcher = + getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiver), shutdownSettings); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + + Thread stopThread = new Thread(dispatcher::stop); + stopThread.start(); + + // Wait for the stop thread to block on the waiter. + Thread.sleep(100); + assertTrue(stopThread.isAlive()); + + // Ack the message, which should allow the stop thread to complete. + consumers.take().ack(); + + List ackRequestDataList = new ArrayList(); + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + ackRequestDataList.add(ackRequestData); + + stopThread.join(); + assertFalse(stopThread.isAlive()); + + verify(mockAckProcessor, times(1)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(ackRequestDataList))); + } + + @Test + public void testStop_waitForProcessing_withTimeout_success() { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(5)) + .build(); + MessageDispatcher dispatcher = + getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiver), shutdownSettings); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + + Thread stopThread = new Thread(dispatcher::stop); + stopThread.start(); + + // Ack the message before the timeout expires. + try { + consumers.take().ack(); + } catch (InterruptedException e) { + fail("Interrupted while taking consumer"); + } + + try { + stopThread.join(1000); + } catch (InterruptedException e) { + fail("Interrupted while joining stop thread"); + } + + List ackRequestDataList = new ArrayList(); + AckRequestData ackRequestData = AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + ackRequestDataList.add(ackRequestData); + + verify(mockAckProcessor, times(1)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(ackRequestDataList))); + assertFalse(stopThread.isAlive()); + } + + @Test + public void testStop_waitForProcessing_withTimeout_nackWithOneSecondLeft() { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(2)) + .build(); + MessageDispatcher dispatcher = + getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiver), shutdownSettings); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + Thread stopThread = new Thread(dispatcher::stop); + stopThread.start(); + + // Wait for the stop thread to block on the waiter. + try { + Thread.sleep(100); + } catch (InterruptedException e) { + fail("Interrupted while sleeping"); + } + + clock.advance(1500, TimeUnit.MILLISECONDS); + + try { + stopThread.join(); + } catch (InterruptedException e) { + fail("Interrupted while joining stop thread"); + } + // Assert expected behavior + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add( + new ModackRequestData(0, AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build())); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); + verify(mockAckProcessor, times(1)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(Collections.emptyList()))); + } + + @Test + public void testStop_nackImmediately() { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.NACK_IMMEDIATELY) + .build(); + MessageDispatcher dispatcher = + getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiver), shutdownSettings); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + dispatcher.stop(); + + // Assert expected behavior + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add( + new ModackRequestData(0, AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build())); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); + verify(mockAckProcessor, times(1)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(Collections.emptyList()))); + } + + @Test + public void testAckDuringNackImmediatelyShutdown() throws Exception { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.NACK_IMMEDIATELY) + .build(); + MessageDispatcher dispatcher = + getMessageDispatcherFromBuilder( + MessageDispatcher.newBuilder(messageReceiverWithAckResponse), shutdownSettings); + dispatcher.setExactlyOnceDeliveryEnabled(true); + + dispatcher.processReceivedMessages(Collections.singletonList(TEST_MESSAGE)); + dispatcher.processOutstandingOperations(); + + List receiptModackRequestDataList = new ArrayList(); + AckRequestData receiptModackRequestData = + AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build(); + receiptModackRequestDataList.add( + new ModackRequestData(MIN_ACK_DEADLINE_SECONDS, receiptModackRequestData)); + dispatcher.notifyAckSuccess(receiptModackRequestData); + + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher( + receiptModackRequestDataList))); + + Thread stopThread = + new Thread( + () -> { + dispatcher.stop(); + }); + stopThread.start(); + + // Wait for the stop process to start. + while (!dispatcher.getNackImmediatelyShutdownInProgress()) { + Thread.sleep(1); + } + + // Try to ack the message. + AckResponse reply = consumersWithResponse.take().ack().get(); + assertThat(reply.equals(AckResponse.OTHER)); + + stopThread.join(); + + // Assert expected behavior + List modackRequestDataList = new ArrayList(); + modackRequestDataList.add( + new ModackRequestData(0, AckRequestData.newBuilder(TEST_MESSAGE.getAckId()).build())); + + // The message should have been nacked, not acked. + verify(mockAckProcessor, times(1)) + .sendModackOperations( + argThat( + new CustomArgumentMatchers.ModackRequestDataListMatcher(modackRequestDataList))); + verify(mockAckProcessor, times(2)) + .sendAckOperations( + argThat(new CustomArgumentMatchers.AckRequestDataListMatcher(Collections.emptyList()))); + } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 335ccbdc3da9..f79825d85355 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -17,6 +17,7 @@ package com.google.cloud.pubsub.v1; import static org.junit.Assert.*; +import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.argThat; import static org.mockito.Mockito.*; @@ -41,6 +42,8 @@ import java.time.Duration; import java.util.*; import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; import org.junit.After; import org.junit.Before; import org.junit.Rule; @@ -106,6 +109,110 @@ public void testSetupAndTeardown() { streamingSubscriberConnection.awaitTerminated(); } + @Test + public void testRunShutdown_TimeoutMet() throws Exception { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder().setTimeout(Duration.ofSeconds(10)).build(); + StreamingSubscriberConnection.Builder builder = + StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class)); + builder.setSubscriberShutdownSettings(shutdownSettings); + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnectionFromBuilder(builder); + + streamingSubscriberConnection.startAsync().awaitRunning(); + streamingSubscriberConnection.stopAsync(); + + // Should terminate quickly as there are no outstanding messages. + streamingSubscriberConnection.awaitTerminated(1, TimeUnit.SECONDS); + } + + @Test + public void testRunShutdown_TimeoutExceeded() throws Exception { + final SettableApiFuture ackFuture = SettableApiFuture.create(); + when(mockSubscriberStub.acknowledgeCallable().futureCall(any(AcknowledgeRequest.class))) + .thenReturn(ackFuture); + + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder().setTimeout(Duration.ofSeconds(2)).build(); + StreamingSubscriberConnection.Builder builder = + StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class)); + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnectionFromBuilder(builder, shutdownSettings); + streamingSubscriberConnection.setExactlyOnceDeliveryEnabled(true); + + streamingSubscriberConnection.startAsync().awaitRunning(); + + // Send an ACK that will not complete. + SettableApiFuture messageFuture = SettableApiFuture.create(); + streamingSubscriberConnection.sendAckOperations( + Collections.singletonList( + AckRequestData.newBuilder("ack1").setMessageFuture(messageFuture).build())); + + Thread t = + new Thread( + () -> { + streamingSubscriberConnection.stopAsync(); + }); + t.start(); + + Thread t2 = + new Thread( + () -> { + try { + streamingSubscriberConnection.awaitTerminated(1, TimeUnit.SECONDS); + fail("Should have timed out"); + } catch (TimeoutException e) { + // expected + } + }); + t2.start(); + t2.join(); + + // Advance the clock past the shutdown timeout. + clock.advance(3, TimeUnit.SECONDS); + t.join(); + + // Now it should terminate. + streamingSubscriberConnection.awaitTerminated(); + assertFalse(streamingSubscriberConnection.isRunning()); + assertFalse(messageFuture.isDone()); + } + + @Test + public void testAckDuringNackImmediatelyShutdown() throws Exception { + SubscriberShutdownSettings shutdownSettings = + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.NACK_IMMEDIATELY) + .build(); + + MessageDispatcher mockMessageDispatcher = mock(MessageDispatcher.class); + when(mockMessageDispatcher.getNackImmediatelyShutdownInProgress()).thenReturn(true); + + StreamingSubscriberConnection.Builder builder = + StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class)); + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnectionFromBuilder(builder, shutdownSettings); + + // Use reflection to set the mock message dispatcher + java.lang.reflect.Field dispatcherField = + StreamingSubscriberConnection.class.getDeclaredField("messageDispatcher"); + dispatcherField.setAccessible(true); + dispatcherField.set(streamingSubscriberConnection, mockMessageDispatcher); + + streamingSubscriberConnection.setExactlyOnceDeliveryEnabled(true); + + SettableApiFuture messageFuture = SettableApiFuture.create(); + AckRequestData ackRequestData = + AckRequestData.newBuilder("ack1").setMessageFuture(messageFuture).build(); + + when(mockSubscriberStub.acknowledgeCallable().futureCall(any())) + .thenReturn(ApiFutures.immediateFuture(null)); + streamingSubscriberConnection.sendAckOperations(Collections.singletonList(ackRequestData)); + + verify(mockMessageDispatcher, times(1)).notifyAckFailed(ackRequestData); + assertEquals(AckResponse.OTHER, messageFuture.get()); + } + @Test public void testSendAckOperationsExactlyOnceDisabledNoMessageFutures() { // Setup mocks @@ -592,6 +699,28 @@ private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilde .setMinDurationPerAckExtensionDefaultUsed(true) .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) .setMaxDurationPerAckExtensionDefaultUsed(true) + .setSubscriberShutdownSettings(SubscriberShutdownSettings.newBuilder().build()) + .build(); + } + + private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilder( + StreamingSubscriberConnection.Builder builder, SubscriberShutdownSettings shutdownSettings) { + return builder + .setSubscription(MOCK_SUBSCRIPTION_NAME) + .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT_DURATION) + .setAckLatencyDistribution(mock(Distribution.class)) + .setSubscriberStub(mockSubscriberStub) + .setChannelAffinity(0) + .setFlowControlSettings(mock(FlowControlSettings.class)) + .setFlowController(mock(FlowController.class)) + .setExecutor(executor) + .setSystemExecutor(systemExecutor) + .setClock(clock) + .setMinDurationPerAckExtension(Subscriber.DEFAULT_MIN_ACK_DEADLINE_EXTENSION) + .setMinDurationPerAckExtensionDefaultUsed(true) + .setMaxDurationPerAckExtension(Subscriber.DEFAULT_MAX_ACK_DEADLINE_EXTENSION) + .setMaxDurationPerAckExtensionDefaultUsed(true) + .setSubscriberShutdownSettings(shutdownSettings) .build(); } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java new file mode 100644 index 000000000000..f829375825ea --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java @@ -0,0 +1,100 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; + +import com.google.cloud.pubsub.v1.SubscriberShutdownSettings.ShutdownMode; +import java.time.Duration; +import org.junit.Test; + +public class SubscriberShutdownSettingsTest { + + @Test + public void testDefaultSettings() { + SubscriberShutdownSettings settings = SubscriberShutdownSettings.newBuilder().build(); + + assertNotNull(settings); + assertEquals(ShutdownMode.WAIT_FOR_PROCESSING, settings.getMode()); + assertTrue(settings.getTimeout().isNegative()); // Indefinite timeout + } + + @Test + public void testWaitForProcessingWithCustomTimeout() { + Duration customTimeout = Duration.ofSeconds(30); + SubscriberShutdownSettings settings = + SubscriberShutdownSettings.newBuilder() + .setMode(ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(customTimeout) + .build(); + + assertNotNull(settings); + assertEquals(ShutdownMode.WAIT_FOR_PROCESSING, settings.getMode()); + assertEquals(customTimeout, settings.getTimeout()); + } + + @Test + public void testNackImmediatelyWithDefaultTimeout() { + SubscriberShutdownSettings settings = + SubscriberShutdownSettings.newBuilder().setMode(ShutdownMode.NACK_IMMEDIATELY).build(); + + assertNotNull(settings); + assertEquals(ShutdownMode.NACK_IMMEDIATELY, settings.getMode()); + assertTrue(settings.getTimeout().isNegative()); // Indefinite timeout + } + + @Test + public void testNackImmediatelyWithCustomTimeout() { + Duration customTimeout = Duration.ofSeconds(10); + SubscriberShutdownSettings settings = + SubscriberShutdownSettings.newBuilder() + .setMode(ShutdownMode.NACK_IMMEDIATELY) + .setTimeout(customTimeout) + .build(); + + assertNotNull(settings); + assertEquals(ShutdownMode.NACK_IMMEDIATELY, settings.getMode()); + assertEquals(customTimeout, settings.getTimeout()); + } + + @Test + public void testZeroTimeout() { + Duration zeroTimeout = Duration.ZERO; + SubscriberShutdownSettings settings = + SubscriberShutdownSettings.newBuilder() + .setMode(ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(zeroTimeout) + .build(); + + assertNotNull(settings); + assertEquals(ShutdownMode.WAIT_FOR_PROCESSING, settings.getMode()); + assertEquals(zeroTimeout, settings.getTimeout()); + assertTrue(settings.getTimeout().isZero()); + } + + @Test(expected = NullPointerException.class) + public void testNullModeThrowsException() { + SubscriberShutdownSettings.newBuilder().setMode(null).build(); + } + + @Test(expected = NullPointerException.class) + public void testNullTimeoutThrowsException() { + SubscriberShutdownSettings.newBuilder().setTimeout(null).build(); + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java index 253a91f73da4..649769d1c671 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java @@ -320,6 +320,104 @@ public void testPartialFlowControlSettings() throws Exception { Subscriber.Builder.DEFAULT_FLOW_CONTROL_SETTINGS.getMaxOutstandingElementCount()); } + @Test + public void testShutdown_waitForProcessing_indefinite() throws Exception { + final CountDownLatch messageReceived = new CountDownLatch(1); + final AckReplyConsumer[] consumer = new AckReplyConsumer[1]; + + MessageReceiver receiver = + new MessageReceiver() { + @Override + public void receiveMessage(PubsubMessage message, AckReplyConsumer c) { + consumer[0] = c; + messageReceived.countDown(); + } + }; + + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(receiver) + .setSubscriberShutdownSettings( + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(-1)) + .build())); + + // Send a message and wait for it to be received. + fakeSubscriberServiceImpl.sendMessages(1); + messageReceived.await(10, TimeUnit.SECONDS); + + subscriber.stopAsync(); + + try { + subscriber.awaitTerminated(1, TimeUnit.SECONDS); + fail("Subscriber should not have terminated yet."); + } catch (TimeoutException e) { + // Expected + } + + // Now, ack the message, which should allow the subscriber to terminate. + consumer[0].ack(); + subscriber.awaitTerminated(10, TimeUnit.SECONDS); + } + + @Test + public void testShutdown_waitForProcessing_withTimeout_success() throws Exception { + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setSubscriberShutdownSettings( + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(10)) + .build())); + subscriber.stopAsync(); + fakeExecutor.advanceTime(Duration.ofSeconds(5)); + subscriber.awaitTerminated(1, TimeUnit.SECONDS); // Should terminate quickly now + } + + @Test + public void testShutdown_waitForProcessing_withTimeout_failure() throws Exception { + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setSubscriberShutdownSettings( + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ofSeconds(5)) + .build())); + subscriber.stopAsync(); + fakeExecutor.advanceTime(Duration.ofSeconds(6)); + subscriber.awaitTerminated(1, TimeUnit.SECONDS); // Should have timed out and terminated + } + + @Test + public void testShutdown_waitForProcessing_zeroTimeout() throws Exception { + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setSubscriberShutdownSettings( + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING) + .setTimeout(Duration.ZERO) + .build())); + subscriber.stopAsync(); + subscriber.awaitTerminated(1, TimeUnit.SECONDS); // Should terminate almost immediately + } + + @Test + public void testShutdown_nackImmediately() throws Exception { + Subscriber subscriber = + startSubscriber( + getTestSubscriberBuilder(testReceiver) + .setSubscriberShutdownSettings( + SubscriberShutdownSettings.newBuilder() + .setMode(SubscriberShutdownSettings.ShutdownMode.NACK_IMMEDIATELY) + .build())); + subscriber.stopAsync(); + subscriber.awaitTerminated(1, TimeUnit.SECONDS); // Should terminate almost immediately + } + private Subscriber startSubscriber(Builder testSubscriberBuilder) { Subscriber subscriber = testSubscriberBuilder.build(); subscriber.startAsync().awaitRunning(); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java index ca8618378fd3..c9eed7e16357 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java @@ -17,7 +17,10 @@ package com.google.cloud.pubsub.v1; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; +import java.util.concurrent.TimeUnit; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -50,4 +53,47 @@ public void run() { assertEquals(0, waiter.pendingCount()); } + + @Test + public void testTryWait_Completes() { + final Waiter waiter = new Waiter(); + waiter.incrementPendingCount(1); + final FakeClock clock = new FakeClock(); + + Thread t = + new Thread( + () -> { + try { + Thread.sleep(100); + } catch (InterruptedException e) { + } + waiter.incrementPendingCount(-1); + }); + t.start(); + + assertTrue(waiter.tryWait(500, clock)); + } + + @Test + public void testTryWait_TimesOut() { + final Waiter waiter = new Waiter(); + waiter.incrementPendingCount(1); + final FakeClock clock = new FakeClock(); + + Thread t = + new Thread( + () -> { + clock.advance(100, TimeUnit.MILLISECONDS); + }); + t.start(); + + assertFalse(waiter.tryWait(100, clock)); + } + + @Test + public void testTryWait_NoPending() { + final Waiter waiter = new Waiter(); + final FakeClock clock = new FakeClock(); + assertTrue(waiter.tryWait(100, clock)); + } } From 67633f796a3094da0d1c4c2f82d589a86eee86eb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 8 Oct 2025 21:52:09 +0100 Subject: [PATCH 2259/2363] deps: update actions/checkout action to v5 (#2576) --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..59e39834dd05 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 7b04cec1ed7bc6ba6ddbdd8c66b87dc2835d0b7f Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 9 Oct 2025 11:39:09 -0400 Subject: [PATCH 2260/2363] fix: Update .OwlBot-hermetic.yaml to preserve SubscriberShutdownSettings files (#2583) * fix: Update .OwlBot-hermetic.yaml to preserve SubscriberShutdownSettings files * chore: generate libraries at Wed Oct 8 20:58:37 UTC 2025 --------- Co-authored-by: cloud-java-bot --- java-pubsub/.github/.OwlBot-hermetic.yaml | 2 ++ java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- .../java/com/google/cloud/pubsub/v1/MessageDispatcher.java | 6 ++++-- .../main/java/com/google/cloud/pubsub/v1/Subscriber.java | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/java-pubsub/.github/.OwlBot-hermetic.yaml b/java-pubsub/.github/.OwlBot-hermetic.yaml index 219163820d42..d426d10ea175 100644 --- a/java-pubsub/.github/.OwlBot-hermetic.yaml +++ b/java-pubsub/.github/.OwlBot-hermetic.yaml @@ -41,6 +41,7 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java" +- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" - "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java" @@ -64,6 +65,7 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java" diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 59e39834dd05..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 1a6dab2b240c..5ed36b9cd19e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -318,7 +318,8 @@ void stop() { case WAIT_FOR_PROCESSING: logger.log( Level.FINE, - "WAIT_FOR_PROCESSING shutdown mode: Waiting for outstanding messages to complete processing."); + "WAIT_FOR_PROCESSING shutdown mode: Waiting for outstanding messages to complete" + + " processing."); java.time.Duration timeout = subscriberShutdownSettings.getTimeout(); if (timeout.isNegative()) { // Indefinite wait use existing blocking wait @@ -330,7 +331,8 @@ void stop() { if (!completedWait) { logger.log( Level.WARNING, - "Grace period expired for WAIT_FOR_PROCESSING shutdown. Nacking remaining messages."); + "Grace period expired for WAIT_FOR_PROCESSING shutdown. Nacking remaining" + + " messages."); // Switch to NACK_IMMEDIATELY behavior for remaining messages nackAllOutstandingMessages(); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 28ba62d8e59b..c0779ff29de0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -796,7 +796,8 @@ public Builder setOpenTelemetry(OpenTelemetry openTelemetry) { * SubscriberShutdownSettings#newBuilder() default settings}. */ @BetaApi( - "The surface for SubscriberShutdownSettings is not stable yet and may be changed in the future.") + "The surface for SubscriberShutdownSettings is not stable yet and may be changed in the" + + " future.") public Builder setSubscriberShutdownSettings( SubscriberShutdownSettings subscriberShutdownSettings) { this.subscriberShutdownSettings = Preconditions.checkNotNull(subscriberShutdownSettings); From a39f44bafad2b39d2da059485956f4267fd459eb Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 14 Oct 2025 23:02:27 +0100 Subject: [PATCH 2261/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.142.0 (#2579) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 5ed3a7985ae1..526ad0895ea6 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.141.5 + 1.142.0 From 86ff6cef39cbb6207f30775de359e0ff7f30d733 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 14 Oct 2025 23:02:36 +0100 Subject: [PATCH 2262/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.58.1 (#2580) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 526ad0895ea6..b58bc0fd9cf7 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.58.0 + 2.58.1 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 8e1b4df9ae37..ca8299b563bc 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.58.0 + 2.58.1 com.google.cloud.opentelemetry From 00c26e8ed4426127ee3e9ff949e6168d052b6c15 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 14 Oct 2025 23:02:44 +0100 Subject: [PATCH 2263/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.55.2 (#2582) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index b58bc0fd9cf7..35331a6b09b1 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.55.1 + 2.55.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ca8299b563bc..3a9ab486b8e8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.55.1 + 2.55.2 com.google.cloud From 1b849a10339a77ca068e39ca75e4a02764b4b60d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 14 Oct 2025 23:19:09 +0100 Subject: [PATCH 2264/2363] deps: update actions/checkout action to v5 (#2584) --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..59e39834dd05 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 4e723e973142bcce3df7f84cb58edf2f7180c14e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 14 Oct 2025 23:19:20 +0100 Subject: [PATCH 2265/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.70.0 (#2585) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 305bbc16e612..c0b404f69955 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.69.0 + 26.70.0 pom import From b6bba4cbc61a340c74a12b2c738a48aac79b43cd Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 17 Oct 2025 12:32:28 -0400 Subject: [PATCH 2266/2363] chore(main): release 1.142.1-SNAPSHOT (#2578) * chore(main): release 1.142.1-SNAPSHOT * chore: generate libraries at Tue Oct 14 22:20:23 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .../.github/workflows/update_generation_config.yaml | 2 +- java-pubsub/README.md | 4 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 59e39834dd05..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5e43686c1bc2..4d9a3de6294f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.69.0 + 26.70.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.141.5 + 1.142.0 ``` diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 99a6172511f6..1c6b8a10428f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.142.0 + 1.142.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.142.0 + 1.142.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 381bf7cda83c..adbcb6edb30d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.142.0 + 1.142.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.142.0 + 1.142.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 9c877b80ca92..91701e5eed23 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.142.0 + 1.142.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 3493ec8a694a..129b5b061ef6 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.142.0 + 1.142.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.142.0 + 1.142.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index dd40d7622e31..89a797056157 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.0 + 1.124.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.142.0 + 1.142.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3a9ab486b8e8..3893f817cc22 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.142.0 + 1.142.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index dc8172577023..f14ecc920b8c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.142.0:1.142.0 -grpc-google-cloud-pubsub-v1:1.124.0:1.124.0 -proto-google-cloud-pubsub-v1:1.124.0:1.124.0 +google-cloud-pubsub:1.142.0:1.142.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.124.0:1.124.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.124.0:1.124.1-SNAPSHOT From 383225012728648e0bb504cd1404210bab51b375 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Mon, 20 Oct 2025 16:00:48 +0100 Subject: [PATCH 2267/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.53.0 (#2589) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 8d2d29b64c9e..118c3b50f56f 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.52.3 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.53.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1c6b8a10428f..7074cefc5f59 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.52.3 + 3.53.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 129b5b061ef6..b2ddf1f78ccb 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.52.3 + 3.53.0 From 059525eed5a773096a5762b98b45d5e030e9368c Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 20 Oct 2025 13:37:30 -0400 Subject: [PATCH 2268/2363] chore: Update generation configuration at Mon Oct 20 15:25:38 UTC 2025 (#2594) * chore: Update generation configuration at Mon Oct 20 15:25:38 UTC 2025 * chore: generate libraries at Mon Oct 20 15:26:21 UTC 2025 --- .../hermetic_library_generation.yaml | 2 +- .../.kokoro/presubmit/graalvm-native-a.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-b.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 6 +- .../pubsub/v1/SubscriptionAdminClient.java | 4 + .../cloud/pubsub/v1/TopicAdminClient.java | 10 +- .../SubscriptionAdminClientHttpJsonTest.java | 9 + .../v1/SubscriptionAdminClientTest.java | 7 + .../v1/TopicAdminClientHttpJsonTest.java | 36 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 26 +- .../pubsub/v1/CreateSnapshotRequest.java | 373 +++++++++++++ .../v1/CreateSnapshotRequestOrBuilder.java | 88 +++ .../com/google/pubsub/v1/CryptoKeyName.java | 261 +++++++++ .../google/pubsub/v1/DeadLetterPolicy.java | 28 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 8 +- .../v1/IngestionDataSourceSettings.java | 36 +- .../pubsub/v1/IngestionFailureEvent.java | 443 ++++++++++++++- .../v1/IngestionFailureEventOrBuilder.java | 8 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 52 +- .../ListTopicSnapshotsResponseOrBuilder.java | 16 +- .../google/pubsub/v1/MessageTransform.java | 8 +- .../pubsub/v1/MessageTransformOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 523 ++++++++++-------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 46 +- .../v1/StreamingPullResponseOrBuilder.java | 10 +- .../com/google/pubsub/v1/Subscription.java | 409 +++++++++++++- .../pubsub/v1/SubscriptionOrBuilder.java | 88 +++ .../main/java/com/google/pubsub/v1/Topic.java | 401 +++++++++++++- .../com/google/pubsub/v1/TopicOrBuilder.java | 96 +++- .../main/proto/google/pubsub/v1/pubsub.proto | 80 ++- 34 files changed, 2729 insertions(+), 365 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 0e85f80524f9..7023350ad0ac 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.62.3 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.63.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index b7567eeb7ddf..55c5543e2605 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index c7205f0abd46..5c981b984828 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index f6ab8976a57a..f2032499dff9 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.52.3" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 4d9a3de6294f..2e7f2aa59a77 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.69.0') +implementation platform('com.google.cloud:libraries-bom:26.70.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index b70e279e653f..0a9e75959539 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.62.3 -googleapis_commitish: 6e79e73204aed17b11e724beebb9cf11f36ea57d -libraries_bom_version: 26.69.0 +gapic_generator_version: 2.63.0 +googleapis_commitish: c288189b43c016dd3cf1ec73ce3cadee8b732f07 +libraries_bom_version: 26.70.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index e0e70beb2d0f..f22e3ec16e40 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -881,6 +881,7 @@ public final Subscription createSubscription( * .setAnalyticsHubSubscriptionInfo( * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) * .addAllMessageTransforms(new ArrayList()) + * .putAllTags(new HashMap()) * .build(); * Subscription response = subscriptionAdminClient.createSubscription(request); * } @@ -1147,6 +1148,7 @@ public final Subscription createSubscription( * .setAnalyticsHubSubscriptionInfo( * Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) * .addAllMessageTransforms(new ArrayList()) + * .putAllTags(new HashMap()) * .build(); * ApiFuture future = * subscriptionAdminClient.createSubscriptionCallable().futureCall(request); @@ -3181,6 +3183,7 @@ public final Snapshot createSnapshot(String name, String subscription) { * .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .putAllLabels(new HashMap()) + * .putAllTags(new HashMap()) * .build(); * Snapshot response = subscriptionAdminClient.createSnapshot(request); * } @@ -3373,6 +3376,7 @@ public final Snapshot createSnapshot(ProjectSnapshotName name, String subscripti * .setName(SnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString()) * .setSubscription(SubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString()) * .putAllLabels(new HashMap()) + * .putAllTags(new HashMap()) * .build(); * ApiFuture future = * subscriptionAdminClient.createSnapshotCallable().futureCall(request); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 2e635ba437b3..750f4da49210 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -511,12 +511,15 @@ public final Topic createTopic(ProjectTopicName name) { * .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) * .putAllLabels(new HashMap()) * .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - * .setKmsKeyName("kmsKeyName412586233") + * .setKmsKeyName( + * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + * .toString()) * .setSchemaSettings(SchemaSettings.newBuilder().build()) * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) * .addAllMessageTransforms(new ArrayList()) + * .putAllTags(new HashMap()) * .build(); * Topic response = topicAdminClient.createTopic(request); * } @@ -548,12 +551,15 @@ public final Topic createTopic(Topic request) { * .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) * .putAllLabels(new HashMap()) * .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - * .setKmsKeyName("kmsKeyName412586233") + * .setKmsKeyName( + * CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + * .toString()) * .setSchemaSettings(SchemaSettings.newBuilder().build()) * .setSatisfiesPzs(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) * .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) * .addAllMessageTransforms(new ArrayList()) + * .putAllTags(new HashMap()) * .build(); * ApiFuture future = topicAdminClient.createTopicCallable().futureCall(request); * // Do something. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 711c8da98533..860eb95ce525 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -135,6 +135,7 @@ public void createSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -205,6 +206,7 @@ public void createSubscriptionTest2() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -275,6 +277,7 @@ public void createSubscriptionTest3() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -345,6 +348,7 @@ public void createSubscriptionTest4() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -415,6 +419,7 @@ public void getSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -478,6 +483,7 @@ public void getSubscriptionTest2() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -541,6 +547,7 @@ public void updateSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -566,6 +573,7 @@ public void updateSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -617,6 +625,7 @@ public void updateSubscriptionExceptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSubscription(subscription, updateMask); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index c7d13c720949..480e7ceaa94f 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -161,6 +161,7 @@ public void createSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -228,6 +229,7 @@ public void createSubscriptionTest2() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -295,6 +297,7 @@ public void createSubscriptionTest3() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -362,6 +365,7 @@ public void createSubscriptionTest4() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -429,6 +433,7 @@ public void getSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -486,6 +491,7 @@ public void getSubscriptionTest2() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); @@ -543,6 +549,7 @@ public void updateSubscriptionTest() throws Exception { .setAnalyticsHubSubscriptionInfo( Subscription.AnalyticsHubSubscriptionInfo.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockSubscriber.addResponse(expectedResponse); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index 5a1e1e68a164..44488abc6d59 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -43,6 +43,7 @@ import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.CryptoKeyName; import com.google.pubsub.v1.DetachSubscriptionRequest; import com.google.pubsub.v1.DetachSubscriptionResponse; import com.google.pubsub.v1.IngestionDataSourceSettings; @@ -113,12 +114,15 @@ public void createTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -165,12 +169,15 @@ public void createTopicTest2() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -217,12 +224,15 @@ public void updateTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -231,12 +241,15 @@ public void updateTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -271,12 +284,15 @@ public void updateTopicExceptionTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateTopic(topic, updateMask); @@ -381,12 +397,15 @@ public void getTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -433,12 +452,15 @@ public void getTopicTest2() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index d1e05afde22e..2ad693de38a2 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -41,6 +41,7 @@ import com.google.protobuf.Duration; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.pubsub.v1.CryptoKeyName; import com.google.pubsub.v1.DeleteTopicRequest; import com.google.pubsub.v1.DetachSubscriptionRequest; import com.google.pubsub.v1.DetachSubscriptionResponse; @@ -127,12 +128,15 @@ public void createTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockPublisher.addResponse(expectedResponse); @@ -173,12 +177,15 @@ public void createTopicTest2() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockPublisher.addResponse(expectedResponse); @@ -219,12 +226,15 @@ public void updateTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockPublisher.addResponse(expectedResponse); @@ -346,12 +356,15 @@ public void getTopicTest() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockPublisher.addResponse(expectedResponse); @@ -392,12 +405,15 @@ public void getTopicTest2() throws Exception { .setName(TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString()) .putAllLabels(new HashMap()) .setMessageStoragePolicy(MessageStoragePolicy.newBuilder().build()) - .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) .setSchemaSettings(SchemaSettings.newBuilder().build()) .setSatisfiesPzs(true) .setMessageRetentionDuration(Duration.newBuilder().build()) .setIngestionDataSourceSettings(IngestionDataSourceSettings.newBuilder().build()) .addAllMessageTransforms(new ArrayList()) + .putAllTags(new HashMap()) .build(); mockPublisher.addResponse(expectedResponse); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 079f3344b019..e5d4f651c61e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -62,6 +62,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 3: return internalGetLabels(); + case 4: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -328,6 +330,133 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int TAGS_FIELD_NUMBER = 4; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *

      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -350,6 +479,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 4); getUnknownFields().writeTo(output); } @@ -375,6 +506,16 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__); } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, tags__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -394,6 +535,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getSubscription().equals(other.getSubscription())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetTags().equals(other.internalGetTags())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,6 +555,10 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -538,6 +684,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 3: return internalGetLabels(); + case 4: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -549,6 +697,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 3: return internalGetMutableLabels(); + case 4: + return internalGetMutableTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -578,6 +728,7 @@ public Builder clear() { name_ = ""; subscription_ = ""; internalGetMutableLabels().clear(); + internalGetMutableTags().clear(); return this; } @@ -624,6 +775,10 @@ private void buildPartial0(com.google.pubsub.v1.CreateSnapshotRequest result) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } } @java.lang.Override @@ -683,6 +838,8 @@ public Builder mergeFrom(com.google.pubsub.v1.CreateSnapshotRequest other) { } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000004; + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -733,6 +890,15 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1238,6 +1404,213 @@ public Builder putAllLabels(java.util.Map va return this; } + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00000008; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 25f5c59d12ed..80a1f76fc201 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -177,4 +177,92 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTagsCount(); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTagsMap(); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java new file mode 100644 index 000000000000..12a4c7312762 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java @@ -0,0 +1,261 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.pubsub.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CryptoKeyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_KEY_RING_CRYPTO_KEY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String keyRing; + private final String cryptoKey; + + @Deprecated + protected CryptoKeyName() { + project = null; + location = null; + keyRing = null; + cryptoKey = null; + } + + private CryptoKeyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + keyRing = Preconditions.checkNotNull(builder.getKeyRing()); + cryptoKey = Preconditions.checkNotNull(builder.getCryptoKey()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getKeyRing() { + return keyRing; + } + + public String getCryptoKey() { + return cryptoKey; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CryptoKeyName of( + String project, String location, String keyRing, String cryptoKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setKeyRing(keyRing) + .setCryptoKey(cryptoKey) + .build(); + } + + public static String format(String project, String location, String keyRing, String cryptoKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setKeyRing(keyRing) + .setCryptoKey(cryptoKey) + .build() + .toString(); + } + + public static CryptoKeyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.validatedMatch( + formattedString, "CryptoKeyName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("key_ring"), + matchMap.get("crypto_key")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CryptoKeyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (keyRing != null) { + fieldMapBuilder.put("key_ring", keyRing); + } + if (cryptoKey != null) { + fieldMapBuilder.put("crypto_key", cryptoKey); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.instantiate( + "project", project, "location", location, "key_ring", keyRing, "crypto_key", cryptoKey); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CryptoKeyName that = ((CryptoKeyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.keyRing, that.keyRing) + && Objects.equals(this.cryptoKey, that.cryptoKey); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(keyRing); + h *= 1000003; + h ^= Objects.hashCode(cryptoKey); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + */ + public static class Builder { + private String project; + private String location; + private String keyRing; + private String cryptoKey; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getKeyRing() { + return keyRing; + } + + public String getCryptoKey() { + return cryptoKey; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setKeyRing(String keyRing) { + this.keyRing = keyRing; + return this; + } + + public Builder setCryptoKey(String cryptoKey) { + this.cryptoKey = cryptoKey; + return this; + } + + private Builder(CryptoKeyName cryptoKeyName) { + this.project = cryptoKeyName.project; + this.location = cryptoKeyName.location; + this.keyRing = cryptoKeyName.keyRing; + this.cryptoKey = cryptoKeyName.cryptoKey; + } + + public CryptoKeyName build() { + return new CryptoKeyName(this); + } + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index b9b9f3a19dcf..d809e9d6b527 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -88,7 +88,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * since messages published to a topic with no subscriptions are lost. *
      * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The deadLetterTopic. */ @@ -120,7 +122,9 @@ public java.lang.String getDeadLetterTopic() { * since messages published to a topic with no subscriptions are lost. *
      * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for deadLetterTopic. */ @@ -551,7 +555,9 @@ public Builder mergeFrom( * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The deadLetterTopic. */ @@ -582,7 +588,9 @@ public java.lang.String getDeadLetterTopic() { * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for deadLetterTopic. */ @@ -613,7 +621,9 @@ public com.google.protobuf.ByteString getDeadLetterTopicBytes() { * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The deadLetterTopic to set. * @return This builder for chaining. @@ -643,7 +653,9 @@ public Builder setDeadLetterTopic(java.lang.String value) { * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -669,7 +681,9 @@ public Builder clearDeadLetterTopic() { * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for deadLetterTopic to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 2978a0510f6b..83159d59d87a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -39,7 +39,9 @@ public interface DeadLetterPolicyOrBuilder * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The deadLetterTopic. */ @@ -60,7 +62,9 @@ public interface DeadLetterPolicyOrBuilder * since messages published to a topic with no subscriptions are lost. * * - * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string dead_letter_topic = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for deadLetterTopic. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 73f44578d31b..d2c79575f42b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -9182,7 +9182,9 @@ public interface AwsMskOrBuilder * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -9196,7 +9198,9 @@ public interface AwsMskOrBuilder * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -9657,7 +9661,9 @@ public com.google.protobuf.ByteString getClusterArnBytes() { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -9682,7 +9688,9 @@ public java.lang.String getTopic() { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -10499,7 +10507,9 @@ public Builder setClusterArnBytes(com.google.protobuf.ByteString value) { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -10523,7 +10533,9 @@ public java.lang.String getTopic() { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -10547,7 +10559,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -10570,7 +10584,9 @@ public Builder setTopic(java.lang.String value) { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -10589,7 +10605,9 @@ public Builder clearTopic() { * will import from. * * - * string topic = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 640c8f154ce8..6f1455a19ad6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -11941,6 +11941,56 @@ public interface AwsKinesisFailureReasonOrBuilder com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder getMessageTransformationFailureReasonOrBuilder(); + /** + * + * + *
      +     * Optional. The message failed to be published due to an API violation.
      +     * This is only set when the size of the data field of the Kinesis record
      +     * is zero.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + boolean hasApiViolationReason(); + + /** + * + * + *
      +     * Optional. The message failed to be published due to an API violation.
      +     * This is only set when the size of the data field of the Kinesis record
      +     * is zero.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason(); + + /** + * + * + *
      +     * Optional. The message failed to be published due to an API violation.
      +     * This is only set when the size of the data field of the Kinesis record
      +     * is zero.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder(); + com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.ReasonCase getReasonCase(); } @@ -12002,6 +12052,7 @@ public enum ReasonCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { SCHEMA_VIOLATION_REASON(4), MESSAGE_TRANSFORMATION_FAILURE_REASON(5), + API_VIOLATION_REASON(6), REASON_NOT_SET(0); private final int value; @@ -12025,6 +12076,8 @@ public static ReasonCase forNumber(int value) { return SCHEMA_VIOLATION_REASON; case 5: return MESSAGE_TRANSFORMATION_FAILURE_REASON; + case 6: + return API_VIOLATION_REASON; case 0: return REASON_NOT_SET; default: @@ -12331,6 +12384,73 @@ public boolean hasMessageTransformationFailureReason() { .getDefaultInstance(); } + public static final int API_VIOLATION_REASON_FIELD_NUMBER = 6; + + /** + * + * + *
      +     * Optional. The message failed to be published due to an API violation.
      +     * This is only set when the size of the data field of the Kinesis record
      +     * is zero.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
      +     * Optional. The message failed to be published due to an API violation.
      +     * This is only set when the size of the data field of the Kinesis record
      +     * is zero.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + + /** + * + * + *
      +     * Optional. The message failed to be published due to an API violation.
      +     * This is only set when the size of the data field of the Kinesis record
      +     * is zero.
      +     * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -12364,6 +12484,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) reason_); } + if (reasonCase_ == 6) { + output.writeMessage( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } getUnknownFields().writeTo(output); } @@ -12394,6 +12518,11 @@ public int getSerializedSize() { (com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) reason_); } + if (reasonCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -12422,6 +12551,9 @@ public boolean equals(final java.lang.Object obj) { if (!getMessageTransformationFailureReason() .equals(other.getMessageTransformationFailureReason())) return false; break; + case 6: + if (!getApiViolationReason().equals(other.getApiViolationReason())) return false; + break; case 0: default: } @@ -12451,6 +12583,10 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_TRANSFORMATION_FAILURE_REASON_FIELD_NUMBER; hash = (53 * hash) + getMessageTransformationFailureReason().hashCode(); break; + case 6: + hash = (37 * hash) + API_VIOLATION_REASON_FIELD_NUMBER; + hash = (53 * hash) + getApiViolationReason().hashCode(); + break; case 0: default: } @@ -12608,6 +12744,9 @@ public Builder clear() { if (messageTransformationFailureReasonBuilder_ != null) { messageTransformationFailureReasonBuilder_.clear(); } + if (apiViolationReasonBuilder_ != null) { + apiViolationReasonBuilder_.clear(); + } reasonCase_ = 0; reason_ = null; return this; @@ -12671,6 +12810,9 @@ private void buildPartialOneofs( if (reasonCase_ == 5 && messageTransformationFailureReasonBuilder_ != null) { result.reason_ = messageTransformationFailureReasonBuilder_.build(); } + if (reasonCase_ == 6 && apiViolationReasonBuilder_ != null) { + result.reason_ = apiViolationReasonBuilder_.build(); + } } @java.lang.Override @@ -12751,6 +12893,11 @@ public Builder mergeFrom( other.getMessageTransformationFailureReason()); break; } + case API_VIOLATION_REASON: + { + mergeApiViolationReason(other.getApiViolationReason()); + break; + } case REASON_NOT_SET: { break; @@ -12815,6 +12962,13 @@ public Builder mergeFrom( reasonCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + reasonCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13698,6 +13852,267 @@ public Builder clearMessageTransformationFailureReason() { return messageTransformationFailureReasonBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + apiViolationReasonBuilder_; + + /** + * + * + *
      +       * Optional. The message failed to be published due to an API violation.
      +       * This is only set when the size of the data field of the Kinesis record
      +       * is zero.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the apiViolationReason field is set. + */ + @java.lang.Override + public boolean hasApiViolationReason() { + return reasonCase_ == 6; + } + + /** + * + * + *
      +       * Optional. The message failed to be published due to an API violation.
      +       * This is only set when the size of the data field of the Kinesis record
      +       * is zero.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The apiViolationReason. + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason getApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } else { + if (reasonCase_ == 6) { + return apiViolationReasonBuilder_.getMessage(); + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The message failed to be published due to an API violation.
      +       * This is only set when the size of the data field of the Kinesis record
      +       * is zero.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The message failed to be published due to an API violation.
      +       * This is only set when the size of the data field of the Kinesis record
      +       * is zero.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder builderForValue) { + if (apiViolationReasonBuilder_ == null) { + reason_ = builderForValue.build(); + onChanged(); + } else { + apiViolationReasonBuilder_.setMessage(builderForValue.build()); + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The message failed to be published due to an API violation.
      +       * This is only set when the size of the data field of the Kinesis record
      +       * is zero.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeApiViolationReason( + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason value) { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6 + && reason_ + != com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason + .getDefaultInstance()) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_) + .mergeFrom(value) + .buildPartial(); + } else { + reason_ = value; + } + onChanged(); + } else { + if (reasonCase_ == 6) { + apiViolationReasonBuilder_.mergeFrom(value); + } else { + apiViolationReasonBuilder_.setMessage(value); + } + } + reasonCase_ = 6; + return this; + } + + /** + * + * + *
      +       * Optional. The message failed to be published due to an API violation.
      +       * This is only set when the size of the data field of the Kinesis record
      +       * is zero.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearApiViolationReason() { + if (apiViolationReasonBuilder_ == null) { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + onChanged(); + } + } else { + if (reasonCase_ == 6) { + reasonCase_ = 0; + reason_ = null; + } + apiViolationReasonBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +       * Optional. The message failed to be published due to an API violation.
      +       * This is only set when the size of the data field of the Kinesis record
      +       * is zero.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder + getApiViolationReasonBuilder() { + return getApiViolationReasonFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. The message failed to be published due to an API violation.
      +       * This is only set when the size of the data field of the Kinesis record
      +       * is zero.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder + getApiViolationReasonOrBuilder() { + if ((reasonCase_ == 6) && (apiViolationReasonBuilder_ != null)) { + return apiViolationReasonBuilder_.getMessageOrBuilder(); + } else { + if (reasonCase_ == 6) { + return (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_; + } + return com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + } + + /** + * + * + *
      +       * Optional. The message failed to be published due to an API violation.
      +       * This is only set when the size of the data field of the Kinesis record
      +       * is zero.
      +       * 
      + * + * + * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> + getApiViolationReasonFieldBuilder() { + if (apiViolationReasonBuilder_ == null) { + if (!(reasonCase_ == 6)) { + reason_ = + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); + } + apiViolationReasonBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, + com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( + (com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) reason_, + getParentForChildren(), + isClean()); + reason_ = null; + } + reasonCase_ = 6; + onChanged(); + return apiViolationReasonBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13837,7 +14252,9 @@ public FailureCase getFailureCase() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -13862,7 +14279,9 @@ public java.lang.String getTopic() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -14826,7 +15245,9 @@ public Builder clearFailure() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -14850,7 +15271,9 @@ public java.lang.String getTopic() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -14874,7 +15297,9 @@ public com.google.protobuf.ByteString getTopicBytes() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -14897,7 +15322,9 @@ public Builder setTopic(java.lang.String value) { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -14916,7 +15343,9 @@ public Builder clearTopic() { * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index c7ceeb108928..49390d159546 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -32,7 +32,9 @@ public interface IngestionFailureEventOrBuilder * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -46,7 +48,9 @@ public interface IngestionFailureEventOrBuilder * projects/{project_name}/topics/{topic_name}. * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 4536d9f60c7d..387a4ef7e5a7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -78,7 +78,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the snapshots. */ @@ -93,7 +95,9 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of snapshots. */ @@ -108,7 +112,9 @@ public int getSnapshotsCount() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -124,7 +130,9 @@ public java.lang.String getSnapshots(int index) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. @@ -588,7 +596,9 @@ private void ensureSnapshotsIsMutable() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the snapshots. */ @@ -604,7 +614,9 @@ public com.google.protobuf.ProtocolStringList getSnapshotsList() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of snapshots. */ @@ -619,7 +631,9 @@ public int getSnapshotsCount() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -635,7 +649,9 @@ public java.lang.String getSnapshots(int index) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. @@ -651,7 +667,9 @@ public com.google.protobuf.ByteString getSnapshotsBytes(int index) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index to set the value at. * @param value The snapshots to set. @@ -675,7 +693,9 @@ public Builder setSnapshots(int index, java.lang.String value) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The snapshots to add. * @return This builder for chaining. @@ -698,7 +718,9 @@ public Builder addSnapshots(java.lang.String value) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param values The snapshots to add. * @return This builder for chaining. @@ -718,7 +740,9 @@ public Builder addAllSnapshots(java.lang.Iterable values) { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -737,7 +761,9 @@ public Builder clearSnapshots() { * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes of the snapshots to add. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index 4623e163f500..fd3eca1793c2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -31,7 +31,9 @@ public interface ListTopicSnapshotsResponseOrBuilder * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the snapshots. */ @@ -44,7 +46,9 @@ public interface ListTopicSnapshotsResponseOrBuilder * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of snapshots. */ @@ -57,7 +61,9 @@ public interface ListTopicSnapshotsResponseOrBuilder * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The snapshots at the given index. @@ -71,7 +77,9 @@ public interface ListTopicSnapshotsResponseOrBuilder * Optional. The names of the snapshots that match the request. * * - * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string snapshots = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the snapshots at the given index. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index 0456c10b4a33..573d42c33d02 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -186,7 +186,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=798 + * google/pubsub/v1/pubsub.proto;l=818 * @return The enabled. */ @java.lang.Override @@ -899,7 +899,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=798 + * google/pubsub/v1/pubsub.proto;l=818 * @return The enabled. */ @java.lang.Override @@ -919,7 +919,7 @@ public boolean getEnabled() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=798 + * google/pubsub/v1/pubsub.proto;l=818 * @param value The enabled to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=798 + * google/pubsub/v1/pubsub.proto;l=818 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 324cf524a070..24c73b06b502 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -81,7 +81,7 @@ public interface MessageTransformOrBuilder * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=798 + * google/pubsub/v1/pubsub.proto;l=818 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 0a9017c9b990..1b5e7d63401c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -132,6 +132,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Topic_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PubsubMessage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -204,6 +208,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_Subscription_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_RetryPolicy_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -324,6 +332,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -385,7 +397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034pubsub.googleapis.com/Schema\0221\n" + "\010encoding\030\002 \001(\0162\032.google.pubsub.v1.EncodingB\003\340A\001\022\036\n" + "\021first_revision_id\030\003 \001(\tB\003\340A\001\022\035\n" - + "\020last_revision_id\030\004 \001(\tB\003\340A\001\"\310\027\n" + + "\020last_revision_id\030\004 \001(\tB\003\340A\001\"\350\027\n" + "\033IngestionDataSourceSettings\022T\n" + "\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" + "1.IngestionDataSourceSettings.AwsKinesisB\003\340A\001H\000\022X\n\r" @@ -457,12 +469,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023NAMESPACE_NOT_FOUND\020\004\022\027\n" + "\023EVENT_HUB_NOT_FOUND\020\005\022\032\n" + "\026SUBSCRIPTION_NOT_FOUND\020\006\022\034\n" - + "\030RESOURCE_GROUP_NOT_FOUND\020\007\032\326\002\n" + + "\030RESOURCE_GROUP_NOT_FOUND\020\007\032\366\002\n" + "\006AwsMsk\022N\n" + "\005state\030\001 \001(\0162:.google.pubsub.v1.In" + "gestionDataSourceSettings.AwsMsk.StateB\003\340A\003\022\030\n" - + "\013cluster_arn\030\002 \001(\tB\003\340A\002\022\022\n" - + "\005topic\030\003 \001(\tB\003\340A\002\022\031\n" + + "\013cluster_arn\030\002 \001(\tB\003\340A\002\0222\n" + + "\005topic\030\003 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\031\n" + "\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n" + "\023gcp_service_account\030\005 \001(\tB\003\340A\002\"\220\001\n" + "\005State\022\025\n" @@ -473,8 +486,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CLUSTER_NOT_FOUND\020\004\022\023\n" + "\017TOPIC_NOT_FOUND\020\005\032\266\003\n" + "\016ConfluentCloud\022V\n" - + "\005state\030\001 \001(\0162B.google.pubsub.v1.Ingestion" - + "DataSourceSettings.ConfluentCloud.StateB\003\340A\003\022\035\n" + + "\005state\030\001 " + + "\001(\0162B.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.StateB\003\340A\003\022\035\n" + "\020bootstrap_server\030\002 \001(\tB\003\340A\002\022\027\n\n" + "cluster_id\030\003 \001(\tB\003\340A\002\022\022\n" + "\005topic\030\004 \001(\tB\003\340A\002\022\035\n" @@ -490,28 +503,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017TOPIC_NOT_FOUND\020\006B\010\n" + "\006source\"\277\001\n" + "\024PlatformLogsSettings\022F\n" - + "\010severity\030\001 \001(\0162/.google" - + ".pubsub.v1.PlatformLogsSettings.SeverityB\003\340A\001\"_\n" + + "\010severity\030\001" + + " \001(\0162/.google.pubsub.v1.PlatformLogsSettings.SeverityB\003\340A\001\"_\n" + "\010Severity\022\030\n" + "\024SEVERITY_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\t\n" + "\005DEBUG\020\002\022\010\n" + "\004INFO\020\003\022\013\n" + "\007WARNING\020\004\022\t\n" - + "\005ERROR\020\005\"\270\027\n" - + "\025IngestionFailureEvent\022\022\n" - + "\005topic\030\001 \001(\tB\003\340A\002\022\032\n\r" + + "\005ERROR\020\005\"\271\030\n" + + "\025IngestionFailureEvent\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\032\n\r" + "error_message\030\002 \001(\tB\003\340A\002\022a\n" - + "\025cloud_storage_failure\030\003" - + " \001(\0132;.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n" - + "\017aws_msk_failure\030\004 \001(\0132;.google.pubsub.v1." - + "IngestionFailureEvent.AwsMskFailureReasonB\003\340A\001H\000\022l\n" - + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubsub.v1.IngestionFailureEv" - + "ent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" - + "\027confluent_cloud_failure\030\006 \001(\0132C.google" - + ".pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\022c\n" - + "\023aws_kinesis_failure\030\007 \001(\0132?.google.pubsub.v1.Inge" - + "stionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + + "\025cloud_storage_failure\030\003 \001(\0132;.google" + + ".pubsub.v1.IngestionFailureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n" + + "\017aws_msk_failure\030\004" + + " \001(\0132;.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonB\003\340A\001H\000\022l\n" + + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubs" + + "ub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" + + "\027confluent_cloud_failure\030\006 \001(\0132C.google.pubsub.v1.Inges" + + "tionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\022c\n" + + "\023aws_kinesis_failure\030\007 \001(\013" + + "2?.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + "\022ApiViolationReason\032\023\n" + "\021AvroFailureReason\032\027\n" + "\025SchemaViolationReason\032$\n" @@ -520,62 +534,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006bucket\030\001 \001(\tB\003\340A\001\022\030\n" + "\013object_name\030\002 \001(\tB\003\340A\001\022\036\n" + "\021object_generation\030\003 \001(\003B\003\340A\001\022]\n" - + "\023avro_failure_reason\030\005" - + " \001(\01329.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" - + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v" - + "1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\007 \001" - + "(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\010 \001(\013" - + "2J.google.pubsub.v1.IngestionFailureEven" - + "t.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\023avro_failure_reason\030\005 \001(\01329.google." + + "pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006" + + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\007 \001(\0132=.google.pubs" + + "ub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\010 \001(\0132J.google.pubsub" + + ".v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reason\032\316\003\n" + "\023AwsMskFailureReason\022\030\n" + "\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005" - + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pub" - + "sub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\007 \001(\0132J.google.pubsu" - + "b.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\024api_violation_reason\030\005 \001(\0132:.google" + + ".pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Ingestion" + + "FailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007" + + " \001(\0132J.google.pubsub.v1.IngestionFa" + + "ilureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reason\032\322\003\n" + "\033AzureEventHubsFailureReason\022\026\n" + "\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n" + "\tevent_hub\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:.g" - + "oogle.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Inge" - + "stionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\007 \001(\0132J.google.pubsub.v1.Ingest" - + "ionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1." + + "IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\013" + + "2=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132J" + + ".google.pubsub.v1.IngestionFailureEvent." + + "MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reason\032\325\003\n" + "\033ConfluentCloudFailureReason\022\027\n\n" + "cluster_id\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:.google.pu" - + "bsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.IngestionFai" - + "lureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\007" - + " \001(\0132J.google.pubsub.v1.IngestionFailu" - + "reEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" - + "\006reason\032\340\002\n" + + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1.Ingestio" + + "nFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.googl" + + "e.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132J.google." + + "pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\006reason\032\301\003\n" + "\027AwsKinesisFailureReason\022\027\n\n" + "stream_arn\030\001 \001(\tB\003\340A\001\022\032\n\r" + "partition_key\030\002 \001(\tB\003\340A\001\022\034\n" + "\017sequence_number\030\003 \001(\tB\003\340A\001\022e\n" - + "\027schema_violation_reason\030\004 " - + "\001(\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\005 \001(" - + "\0132J.google.pubsub.v1.IngestionFailureEve" - + "nt.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\027schema_violation_reason\030\004 \001(\0132=.google.pub" + + "sub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\005 \001(\0132J.google.pubsu" + + "b.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v1.In" + + "gestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + "\006reasonB\t\n" + "\007failure\">\n\r" + "JavaScriptUDF\022\032\n\r" @@ -586,13 +601,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" - + "\ttransform\"\216\006\n" + + "\ttransform\"\235\007\n" + "\005Topic\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\0228\n" + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n" - + "\026message_storage_policy\030\003 \001(\0132&.goog" - + "le.pubsub.v1.MessageStoragePolicyB\003\340A\001\022\031\n" - + "\014kms_key_name\030\005 \001(\tB\003\340A\001\022>\n" + + "\026message_storage_policy\030\003 \001(\0132&.goo" + + "gle.pubsub.v1.MessageStoragePolicyB\003\340A\001\022?\n" + + "\014kms_key_name\030\005 \001(\tB)\340A\001\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022>\n" + "\017schema_settings\030\006 \001(\0132" + " .google.pubsub.v1.SchemaSettingsB\003\340A\001\022\032\n\r" + "satisfies_pzs\030\007 \001(\010B\003\340A\001\022B\n" @@ -602,20 +618,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036ingestion_data_source_settings\030\n" + " \001(\0132-.google.pubsub.v1.IngestionDataSourceSettingsB\003\340A\001\022C\n" + "\022message_transforms\030\r" - + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\032-\n" + + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\022:\n" + + "\004tags\030\016 \003(\0132!.google.pubsub.v1.Topic.TagsEntryB" + + "\t\340A\004\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"H\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\034\n" + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" - + "\033pubsub.googleapis.com/Topic\022!projec" - + "ts/{project}/topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "\033pubsub.googleapis.com/Topic\022!projects/{project}/top" + + "ics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + "PubsubMessage\022\021\n" + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" - + "attributes\030\002 \003(\0132/.g" - + "oogle.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + + "attributes\030\002" + + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + "message_id\030\003 \001(\t\0220\n" + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" @@ -637,8 +658,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ListTopicsRequest\022D\n" + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"`\n" + "\022ListTopicsResponse\022,\n" + "\006topics\030\001 \003(\0132\027.google.pubsub.v1.TopicB\003\340A\001\022\034\n" @@ -655,10 +675,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListTopicSnapshotsRequest\0222\n" + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"R\n" - + "\032ListTopicSnapshotsResponse\022\026\n" - + "\tsnapshots\030\001 \003(\tB\003\340A\001\022\034\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + + "\032ListTopicSnapshotsResponse\0229\n" + + "\tsnapshots\030\001 \003(\tB&\340A\001\372A \n" + + "\036pubsub.googleapis.com/Snapshot\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n" + "\022DeleteTopicRequest\0222\n" + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" @@ -666,7 +688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031DetachSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\034\n" - + "\032DetachSubscriptionResponse\"\215\013\n" + + "\032DetachSubscriptionResponse\"\245\014\n" + "\014Subscription\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\0222\n" + "\005topic\030\002 \001(\tB#\340A\002\372A\035\n" @@ -675,14 +697,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + "\017bigquery_config\030\022 \001(\0132" + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n" - + "\024cloud_storage_config\030\026 \001(\0132" - + "$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + + "\024cloud_storage_config\030\026" + + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + "\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n" + "\025retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n" + "\032message_retention_duration\030\010" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?\n" - + "\006labels\030\t \003(\0132*." - + "google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + + "\006labels\030\t" + + " \003(\0132*.google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + "\027enable_message_ordering\030\n" + " \001(\010B\003\340A\001\022B\n" + "\021expiration_policy\030\013" @@ -690,36 +712,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\014 \001(\tB\003\340A\001\022C\n" + "\022dead_letter_policy\030\r" + " \001(\0132\".google.pubsub.v1.DeadLetterPolicyB\003\340A\001\0228\n" - + "\014retry_policy\030\016" - + " \001(\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + + "\014retry_policy\030\016 " + + "\001(\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + "\010detached\030\017 \001(\010B\003\340A\001\022)\n" + "\034enable_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n" + " topic_message_retention_duration\030\021" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228\n" + "\005state\030\023 \001(\0162$.google.pubsub.v1.Subscription.StateB\003\340A\003\022i\n" - + "\037analytics_hub_subscription_info\030\027 \001(\0132;.google.pubsub.v1.S" - + "ubscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + + "\037analytics_hub_subscription_info\030\027 \001(\0132;" + + ".google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + "\022message_transforms\030\031" - + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\032O\n" - + "\034AnalyticsHubSubscriptionInfo\022\024\n" - + "\007listing\030\001 \001(\tB\003\340A\001\022\031\n" + + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\022A\n" + + "\004tags\030\032 \003(\0132(.google.pubsub.v1.Subscription.TagsEntryB" + + "\t\340A\004\340A\005\340A\001\032w\n" + + "\034AnalyticsHubSubscriptionInfo\022<\n" + + "\007listing\030\001 \001(\tB+\340A\001\372A%\n" + + "#analyticshub.googleapis.com/Listing\022\031\n" + "\014subscription\030\002 \001(\tB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\">\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub." - + "googleapis.com/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub.googleapis.com/Subscription\022/" + + "projects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0227\n" - + "\017maximum_backoff\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"V\n" - + "\020DeadLetterPolicy\022\036\n" - + "\021dead_letter_topic\030\001 \001(\tB\003\340A\001\022\"\n" + + "\017maximum_backoff\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"v\n" + + "\020DeadLetterPolicy\022>\n" + + "\021dead_letter_topic\030\001 \001(\tB#\340A\001\372A\035\n" + + "\033pubsub.googleapis.com/Topic\022\"\n" + "\025max_delivery_attempts\030\002 \001(\005B\003\340A\001\"?\n" + "\020ExpirationPolicy\022+\n" + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" @@ -727,10 +756,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" + "attributes\030\002" + " \003(\0132,.google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" - + "oidc_token\030\003 \001(" - + "\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" - + "\016pubsub_wrapper\030\004 \001(\0132*.googl" - + "e.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + + "oidc_token\030\003" + + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + + "\016pubsub_wrapper\030\004 \001(\0132*.go" + + "ogle.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + "no_wrapper\030\005" + " \001(\0132&.google.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n" + "\tOidcToken\022\"\n" @@ -749,8 +778,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n" + "\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n" - + "\005state\030\005 \001(\0162&.g" - + "oogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + + "\005state\030\005 \001(\0162" + + "&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n" + "\005State\022\025\n" @@ -774,8 +803,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" + "\014max_messages\030\010 \001(\003B\003\340A\001\022>\n" - + "\005state\030\t" - + " \001(\0162*.google.pubsub.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n" + + "\005state\030\t \001(\0162*.google.p" + + "ubsub.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n" + "\025service_account_email\030\013 \001(\tB\003\340A\001\032\014\n\n" + "TextConfig\032H\n\n" + "AvroConfig\022\033\n" @@ -808,8 +837,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + "\031ListSubscriptionsResponse\022:\n\r" - + "subscriptions\030\001" - + " \003(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" + + "subscriptions\030\001 \003(" + + "\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n" + "\031DeleteSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -851,12 +880,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005" - + " \001(\0132?.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132" - + "E.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google.pu" - + "bsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\030acknowledge_confirmation\030\005 \001(\0132?.google.pubsub.v1.StreamingP" + + "ullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001" + + "(\0132E.google.pubsub.v1.StreamingPullRespo" + + "nse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google" + + ".pubsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -868,16 +898,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n" + "\026SubscriptionProperties\022*\n" + "\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" - + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\210\002\n" + + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\201\003\n" + "\025CreateSnapshotRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 " - + "\003(\01323.google.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\003 \003(\01323.google.pubsub.v1.CreateSnapshot", + "Request.LabelsEntryB\003\340A\001\022J\n" + + "\004tags\030\004 \003(\01321.google.pubsub.v1.CreateSnapshotRequest.TagsEntryB" + + "\t\340A\004\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032+\n" + + "\tTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" + "\025UpdateSnapshotRequest\0221\n" + "\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n" @@ -888,139 +923,127 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + "\033pubsub.googleapis.com/Topic\0224\n" + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004 \003(\0132&.goog" - + "le.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004 \003(\0132&." + + "google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" - + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapsh", - "ot}*\tsnapshots2\010snapshot\"N\n\022GetSnapshotR" - + "equest\0228\n\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub" - + ".googleapis.com/Snapshot\"\215\001\n\024ListSnapsho" - + "tsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+clou" - + "dresourcemanager.googleapis.com/Project\022" - + "\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 " - + "\001(\tB\003\340A\001\"i\n\025ListSnapshotsResponse\0222\n\tsna" - + "pshots\030\001 \003(\0132\032.google.pubsub.v1.Snapshot" - + "B\003\340A\001\022\034\n\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n\025D" - + "eleteSnapshotRequest\0228\n\010snapshot\030\001 \001(\tB&" - + "\340A\002\372A \n\036pubsub.googleapis.com/Snapshot\"\306" - + "\001\n\013SeekRequest\022@\n\014subscription\030\001 \001(\tB*\340A" - + "\002\372A$\n\"pubsub.googleapis.com/Subscription" - + "\022/\n\004time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\001H\000\022:\n\010snapshot\030\003 \001(\tB&\340A\001\372A \n\036pub" - + "sub.googleapis.com/SnapshotH\000B\010\n\006target\"" - + "\016\n\014SeekResponse2\270\013\n\tPublisher\022q\n\013CreateT" - + "opic\022\027.google.pubsub.v1.Topic\032\027.google.p" - + "ubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name" - + "=projects/*/topics/*}:\001*\022\221\001\n\013UpdateTopic" - + "\022$.google.pubsub.v1.UpdateTopicRequest\032\027" - + ".google.pubsub.v1.Topic\"C\332A\021topic,update" - + "_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/" - + "topics/*}:\001*\022\223\001\n\007Publish\022 .google.pubsub" - + ".v1.PublishRequest\032!.google.pubsub.v1.Pu" - + "blishResponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'" - + "/v1/{topic=projects/*/topics/*}:publish:" - + "\001*\022w\n\010GetTopic\022!.google.pubsub.v1.GetTop" - + "icRequest\032\027.google.pubsub.v1.Topic\"/\332A\005t" - + "opic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics" - + "/*}\022\212\001\n\nListTopics\022#.google.pubsub.v1.Li" - + "stTopicsRequest\032$.google.pubsub.v1.ListT" - + "opicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{pr" - + "oject=projects/*}/topics\022\272\001\n\026ListTopicSu" - + "bscriptions\022/.google.pubsub.v1.ListTopic" - + "SubscriptionsRequest\0320.google.pubsub.v1." - + "ListTopicSubscriptionsResponse\"=\332A\005topic" - + "\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/" - + "subscriptions\022\252\001\n\022ListTopicSnapshots\022+.g" - + "oogle.pubsub.v1.ListTopicSnapshotsReques" - + "t\032,.google.pubsub.v1.ListTopicSnapshotsR" - + "esponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=proj" - + "ects/*/topics/*}/snapshots\022|\n\013DeleteTopi" - + "c\022$.google.pubsub.v1.DeleteTopicRequest\032" - + "\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*" - + "\037/v1/{topic=projects/*/topics/*}\022\255\001\n\022Det" - + "achSubscription\022+.google.pubsub.v1.Detac" - + "hSubscriptionRequest\032,.google.pubsub.v1." - + "DetachSubscriptionResponse\"<\202\323\344\223\0026\"4/v1/" - + "{subscription=projects/*/subscriptions/*" - + "}:detach\032p\312A\025pubsub.googleapis.com\322AUhtt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm,https://www.googleapis.com/auth/pubs" - + "ub2\322\025\n\nSubscriber\022\264\001\n\022CreateSubscription" - + "\022\036.google.pubsub.v1.Subscription\032\036.googl" - + "e.pubsub.v1.Subscription\"^\332A+name,topic," - + "push_config,ack_deadline_seconds\202\323\344\223\002*\032%" - + "/v1/{name=projects/*/subscriptions/*}:\001*" - + "\022\241\001\n\017GetSubscription\022(.google.pubsub.v1." - + "GetSubscriptionRequest\032\036.google.pubsub.v" - + "1.Subscription\"D\332A\014subscription\202\323\344\223\002/\022-/" - + "v1/{subscription=projects/*/subscription" - + "s/*}\022\273\001\n\022UpdateSubscription\022+.google.pub" - + "sub.v1.UpdateSubscriptionRequest\032\036.googl" - + "e.pubsub.v1.Subscription\"X\332A\030subscriptio" - + "n,update_mask\202\323\344\223\002722/v1/{subscription.n" - + "ame=projects/*/subscriptions/*}:\001*\022\246\001\n\021L" - + "istSubscriptions\022*.google.pubsub.v1.List" - + "SubscriptionsRequest\032+.google.pubsub.v1." - + "ListSubscriptionsResponse\"8\332A\007project\202\323\344" - + "\223\002(\022&/v1/{project=projects/*}/subscripti" - + "ons\022\237\001\n\022DeleteSubscription\022+.google.pubs" - + "ub.v1.DeleteSubscriptionRequest\032\026.google" - + ".protobuf.Empty\"D\332A\014subscription\202\323\344\223\002/*-" + + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" + + "\tsnapshots2\010snapshot\"N\n" + + "\022GetSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\215\001\n" + + "\024ListSnapshotsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"i\n" + + "\025ListSnapshotsResponse\0222\n" + + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n" + + "\025DeleteSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\306\001\n" + + "\013SeekRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\"pubsub.googleapis.com/Subscription\022/\n" + + "\004time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n" + + "\010snapshot\030\003 \001(\tB&\340A\001\372A \n" + + "\036pubsub.googleapis.com/SnapshotH\000B\010\n" + + "\006target\"\016\n" + + "\014SeekResponse2\270\013\n" + + "\tPublisher\022q\n" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.goog" + + "le.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicReque" + + "st\032\027.google.pubsub.v1.Topic\"C\332A\021topic,up" + + "date_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" + + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v" + + "1.PublishResponse\"C\332A\016topic,messages\202\323\344\223" + + "\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" + + "\010GetTopic\022!.google.pubsub.v1.GetTopicRequest\032\027.google.pubsub.v1.Topic\"/" + + "\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" + + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.L" + + "istTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListT" + + "opicSubscriptionsRequest\0320.google.pubsub" + + ".v1.ListTopicSubscriptionsResponse\"=\332A\005t" + + "opic\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" + + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsRe" + + "quest\032,.google.pubsub.v1.ListTopicSnapsh" + + "otsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" + + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicRequ" + + "est\032\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" + + "\022DetachSubscription\022+.google.pubsub.v1.D" + + "etachSubscriptionRequest\032,.google.pubsub" + + ".v1.DetachSubscriptionResponse\"<\202\323\344\223\0026\"4" + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}\022\317\001\n\021ModifyAckDeadline\022*.google.pub" - + "sub.v1.ModifyAckDeadlineRequest\032\026.google" - + ".protobuf.Empty\"v\332A)subscription,ack_ids" - + ",ack_deadline_seconds\202\323\344\223\002D\"?/v1/{subscr" - + "iption=projects/*/subscriptions/*}:modif" - + "yAckDeadline:\001*\022\250\001\n\013Acknowledge\022$.google" - + ".pubsub.v1.AcknowledgeRequest\032\026.google.p" - + "rotobuf.Empty\"[\332A\024subscription,ack_ids\202\323" - + "\344\223\002>\"9/v1/{subscription=projects/*/subsc" - + "riptions/*}:acknowledge:\001*\022\320\001\n\004Pull\022\035.go" - + "ogle.pubsub.v1.PullRequest\032\036.google.pubs" - + "ub.v1.PullResponse\"\210\001\332A,subscription,ret" - + "urn_immediately,max_messages\332A\031subscript" - + "ion,max_messages\202\323\344\223\0027\"2/v1/{subscriptio" - + "n=projects/*/subscriptions/*}:pull:\001*\022f\n" - + "\rStreamingPull\022&.google.pubsub.v1.Stream" - + "ingPullRequest\032\'.google.pubsub.v1.Stream" - + "ingPullResponse\"\000(\0010\001\022\273\001\n\020ModifyPushConf" - + "ig\022).google.pubsub.v1.ModifyPushConfigRe" - + "quest\032\026.google.protobuf.Empty\"d\332A\030subscr" - + "iption,push_config\202\323\344\223\002C\">/v1/{subscript" - + "ion=projects/*/subscriptions/*}:modifyPu" - + "shConfig:\001*\022\211\001\n\013GetSnapshot\022$.google.pub" - + "sub.v1.GetSnapshotRequest\032\032.google.pubsu" - + "b.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{s" - + "napshot=projects/*/snapshots/*}\022\226\001\n\rList" - + "Snapshots\022&.google.pubsub.v1.ListSnapsho" - + "tsRequest\032\'.google.pubsub.v1.ListSnapsho" - + "tsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{proje" - + "ct=projects/*}/snapshots\022\227\001\n\016CreateSnaps" - + "hot\022\'.google.pubsub.v1.CreateSnapshotReq" - + "uest\032\032.google.pubsub.v1.Snapshot\"@\332A\021nam" - + "e,subscription\202\323\344\223\002&\032!/v1/{name=projects" - + "/*/snapshots/*}:\001*\022\243\001\n\016UpdateSnapshot\022\'." - + "google.pubsub.v1.UpdateSnapshotRequest\032\032" - + ".google.pubsub.v1.Snapshot\"L\332A\024snapshot," - + "update_mask\202\323\344\223\002/2*/v1/{snapshot.name=pr" - + "ojects/*/snapshots/*}:\001*\022\213\001\n\016DeleteSnaps" - + "hot\022\'.google.pubsub.v1.DeleteSnapshotReq" - + "uest\032\026.google.protobuf.Empty\"8\332A\010snapsho" - + "t\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapsh" - + "ots/*}\022\204\001\n\004Seek\022\035.google.pubsub.v1.SeekR" - + "equest\032\036.google.pubsub.v1.SeekResponse\"=" - + "\202\323\344\223\0027\"2/v1/{subscription=projects/*/sub" - + "scriptions/*}:seek:\001*\032p\312A\025pubsub.googlea" - + "pis.com\322AUhttps://www.googleapis.com/aut" - + "h/cloud-platform,https://www.googleapis." - + "com/auth/pubsubB\252\001\n\024com.google.pubsub.v1" - + "B\013PubsubProtoP\001Z5cloud.google.com/go/pub" - + "sub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Google." - + "Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1" - + "\352\002\031Google::Cloud::PubSub::V1b\006proto3" + + "ns/*}:detach\032p\312A\025pubsub.googleapis.com\322A" + + "Uhttps://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/pubsub2\322\025\n\n" + + "Subscriber\022\264\001\n" + + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.g" + + "oogle.pubsub.v1.Subscription\"^\332A+name,to" + + "pic,push_config,ack_deadline_seconds\202\323\344\223" + + "\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" + + "\017GetSubscription\022(.google.pubsub.v1.GetSubscriptionRequest\032\036.google.pubs" + + "ub.v1.Subscription\"D\332A\014subscription\202\323\344\223\002" + + "/\022-/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" + + "\022UpdateSubscription\022+.google.pubsub.v1.UpdateSubscriptionRequest\032\036.g" + + "oogle.pubsub.v1.Subscription\"X\332A\030subscri" + + "ption,update_mask\202\323\344\223\002722/v1/{subscripti" + + "on.name=projects/*/subscriptions/*}:\001*\022\246\001\n" + + "\021ListSubscriptions\022*.google.pubsub.v1." + + "ListSubscriptionsRequest\032+.google.pubsub" + + ".v1.ListSubscriptionsResponse\"8\332A\007projec" + + "t\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" + + "\022DeleteSubscription\022+.google.pubsub.v1.DeleteSubscriptionRequest\032\026.go" + + "ogle.protobuf.Empty\"D\332A\014subscription\202\323\344\223" + + "\002/*-/v1/{subscription=projects/*/subscriptions/*}\022\317\001\n" + + "\021ModifyAckDeadline\022*.google.pubsub.v1.ModifyAckDeadlineRequest\032\026.go" + + "ogle.protobuf.Empty\"v\332A)subscription,ack" + + "_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{su" + + "bscription=projects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" + + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.goog" + + "le.protobuf.Empty\"[\332A\024subscription,ack_i" + + "ds\202\323\344\223\002>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" + + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google." + + "pubsub.v1.PullResponse\"\210\001\332A,subscription" + + ",return_immediately,max_messages\332A\031subsc" + + "ription,max_messages\202\323\344\223\0027\"2/v1/{subscri" + + "ption=projects/*/subscriptions/*}:pull:\001*\022f\n\r" + + "StreamingPull\022&.google.pubsub.v1.St" + + "reamingPullRequest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" + + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConf" + + "igRequest\032\026.google.protobuf.Empty\"d\332A\030su" + + "bscription,push_config\202\323\344\223\002C\">/v1/{subsc" + + "ription=projects/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" + + "\013GetSnapshot\022$.google.pubsub.v1.GetSnapshotRequest\032\032.google.p" + + "ubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" + + "ListSnapshots\022&.google.pubsub.v1.ListSna" + + "pshotsRequest\032\'.google.pubsub.v1.ListSna" + + "pshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" + + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapsho" + + "tRequest\032\032.google.pubsub.v1.Snapshot\"@\332A" + + "\021name,subscription\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" + + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotReque" + + "st\032\032.google.pubsub.v1.Snapshot\"L\332A\024snaps" + + "hot,update_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" + + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapsho" + + "tRequest\032\026.google.protobuf.Empty\"8\332A\010sna" + + "pshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" + + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036.google.pubsub.v1.SeekRespon" + + "se\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*" + + "/subscriptions/*}:seek:\001*\032p\312A\025pubsub.goo" + + "gleapis.com\322AUhttps://www.googleapis.com" + + "/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\247\003\n" + + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go" + + "/pubsub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Goo" + + "gle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects" + + "/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" + + "#analyticshub.googleapis.com/Listing\022Xprojects/{project}/locations/{location}/dat" + + "aExchanges/{data_exchange}/listings/{listing}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1279,6 +1302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SequenceNumber", "SchemaViolationReason", "MessageTransformationFailureReason", + "ApiViolationReason", "Reason", }); internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = @@ -1312,6 +1336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "IngestionDataSourceSettings", "MessageTransforms", + "Tags", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); @@ -1321,6 +1346,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor = + internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_Topic_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = @@ -1465,6 +1498,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "AnalyticsHubSubscriptionInfo", "MessageTransforms", + "Tags", }); internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor = internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); @@ -1482,6 +1516,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor = + internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_Subscription_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = @@ -1742,7 +1784,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, new java.lang.String[] { - "Name", "Subscription", "Labels", + "Name", "Subscription", "Labels", "Tags", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor = internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0); @@ -1752,6 +1794,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor = + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = @@ -1829,6 +1879,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 330b0ece6e25..c6dbf3f12765 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
      * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1983 + * google/pubsub/v1/pubsub.proto;l=2039 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { *
      * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1983 + * google/pubsub/v1/pubsub.proto;l=2039 * @return The returnImmediately. */ @java.lang.Override @@ -727,7 +727,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1983 + * google/pubsub/v1/pubsub.proto;l=2039 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -758,7 +758,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1983 + * google/pubsub/v1/pubsub.proto;l=2039 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 4f1cb824e045..15b70709e6b5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=1983 + * google/pubsub/v1/pubsub.proto;l=2039 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 677345113220..bf36bc06f405 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -4214,7 +4214,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
      -   * Optional. Received Pub/Sub messages. This will not be empty.
      +   * Optional. Received Pub/Sub messages.
          * 
      * * @@ -4230,7 +4230,7 @@ public java.util.List getReceivedMessagesL * * *
      -   * Optional. Received Pub/Sub messages. This will not be empty.
      +   * Optional. Received Pub/Sub messages.
          * 
      * * @@ -4247,7 +4247,7 @@ public java.util.List getReceivedMessagesL * * *
      -   * Optional. Received Pub/Sub messages. This will not be empty.
      +   * Optional. Received Pub/Sub messages.
          * 
      * * @@ -4263,7 +4263,7 @@ public int getReceivedMessagesCount() { * * *
      -   * Optional. Received Pub/Sub messages. This will not be empty.
      +   * Optional. Received Pub/Sub messages.
          * 
      * * @@ -4279,7 +4279,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
      -   * Optional. Received Pub/Sub messages. This will not be empty.
      +   * Optional. Received Pub/Sub messages.
          * 
      * * @@ -5023,7 +5023,7 @@ private void ensureReceivedMessagesIsMutable() { * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5042,7 +5042,7 @@ public java.util.List getReceivedMessagesL * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5061,7 +5061,7 @@ public int getReceivedMessagesCount() { * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5080,7 +5080,7 @@ public com.google.pubsub.v1.ReceivedMessage getReceivedMessages(int index) { * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5105,7 +5105,7 @@ public Builder setReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5128,7 +5128,7 @@ public Builder setReceivedMessages( * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5153,7 +5153,7 @@ public Builder addReceivedMessages(com.google.pubsub.v1.ReceivedMessage value) { * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5178,7 +5178,7 @@ public Builder addReceivedMessages(int index, com.google.pubsub.v1.ReceivedMessa * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5201,7 +5201,7 @@ public Builder addReceivedMessages( * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5224,7 +5224,7 @@ public Builder addReceivedMessages( * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5247,7 +5247,7 @@ public Builder addAllReceivedMessages( * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5269,7 +5269,7 @@ public Builder clearReceivedMessages() { * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5291,7 +5291,7 @@ public Builder removeReceivedMessages(int index) { * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5306,7 +5306,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(i * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5325,7 +5325,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5345,7 +5345,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5361,7 +5361,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * @@ -5377,7 +5377,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i * * *
      -     * Optional. Received Pub/Sub messages. This will not be empty.
      +     * Optional. Received Pub/Sub messages.
            * 
      * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 1a6fedfa83ff..516c56f47d19 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface StreamingPullResponseOrBuilder * * *
      -   * Optional. Received Pub/Sub messages. This will not be empty.
      +   * Optional. Received Pub/Sub messages.
          * 
      * * @@ -41,7 +41,7 @@ public interface StreamingPullResponseOrBuilder * * *
      -   * Optional. Received Pub/Sub messages. This will not be empty.
      +   * Optional. Received Pub/Sub messages.
          * 
      * * @@ -54,7 +54,7 @@ public interface StreamingPullResponseOrBuilder * * *
      -   * Optional. Received Pub/Sub messages. This will not be empty.
      +   * Optional. Received Pub/Sub messages.
          * 
      * * @@ -67,7 +67,7 @@ public interface StreamingPullResponseOrBuilder * * *
      -   * Optional. Received Pub/Sub messages. This will not be empty.
      +   * Optional. Received Pub/Sub messages.
          * 
      * * @@ -81,7 +81,7 @@ public interface StreamingPullResponseOrBuilder * * *
      -   * Optional. Received Pub/Sub messages. This will not be empty.
      +   * Optional. Received Pub/Sub messages.
          * 
      * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index e70130399e02..9e637b08e09b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -67,6 +67,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 9: return internalGetLabels(); + case 26: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -259,7 +261,9 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The listing. */ @@ -274,7 +278,9 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for listing. */ @@ -374,7 +380,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The listing. */ @@ -400,7 +408,9 @@ public java.lang.String getListing() { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for listing. */ @@ -862,7 +872,9 @@ public Builder mergeFrom( * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The listing. */ @@ -887,7 +899,9 @@ public java.lang.String getListing() { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for listing. */ @@ -912,7 +926,9 @@ public com.google.protobuf.ByteString getListingBytes() { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The listing to set. * @return This builder for chaining. @@ -936,7 +952,9 @@ public Builder setListing(java.lang.String value) { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -956,7 +974,9 @@ public Builder clearListing() { * "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" * * - * string listing = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string listing = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for listing to set. * @return This builder for chaining. @@ -2351,6 +2371,133 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return messageTransforms_.get(index); } + public static final int TAGS_FIELD_NUMBER = 26; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2424,6 +2571,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < messageTransforms_.size(); i++) { output.writeMessage(25, messageTransforms_.get(i)); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 26); getUnknownFields().writeTo(output); } @@ -2507,6 +2656,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, messageTransforms_.get(i)); } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, tags__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2572,6 +2731,7 @@ public boolean equals(final java.lang.Object obj) { return false; } if (!getMessageTransformsList().equals(other.getMessageTransformsList())) return false; + if (!internalGetTags().equals(other.internalGetTags())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2645,6 +2805,10 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_TRANSFORMS_FIELD_NUMBER; hash = (53 * hash) + getMessageTransformsList().hashCode(); } + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2771,6 +2935,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 9: return internalGetLabels(); + case 26: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -2782,6 +2948,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 9: return internalGetMutableLabels(); + case 26: + return internalGetMutableTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -2888,6 +3056,7 @@ public Builder clear() { messageTransformsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00080000); + internalGetMutableTags().clear(); return this; } @@ -3020,6 +3189,10 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { : analyticsHubSubscriptionInfoBuilder_.build(); to_bitField0_ |= 0x00000100; } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -3157,6 +3330,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { } } } + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00100000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3322,6 +3497,15 @@ public Builder mergeFrom( } break; } // case 202 + case 210: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00100000; + break; + } // case 210 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7065,6 +7249,213 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return messageTransformsBuilder_; } + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00100000; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00100000); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00100000; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00100000; + return this; + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00100000; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 40c9a735db4d..585c95c3e7a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -886,4 +886,92 @@ java.lang.String getLabelsOrDefault( *
      */ com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTagsCount(); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTagsMap(); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 26 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 234faa309a17..3719e7280cde 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -63,6 +63,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 2: return internalGetLabels(); + case 14: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -495,7 +497,9 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The kmsKeyName. */ @@ -522,7 +526,9 @@ public java.lang.String getKmsKeyName() { * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsKeyName. */ @@ -890,6 +896,133 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil return messageTransforms_.get(index); } + public static final int TAGS_FIELD_NUMBER = 14; + + private static final class TagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -933,6 +1066,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < messageTransforms_.size(); i++) { output.writeMessage(13, messageTransforms_.get(i)); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 14); getUnknownFields().writeTo(output); } @@ -985,6 +1120,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, messageTransforms_.get(i)); } + for (java.util.Map.Entry entry : + internalGetTags().getMap().entrySet()) { + com.google.protobuf.MapEntry tags__ = + TagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, tags__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1023,6 +1168,7 @@ public boolean equals(final java.lang.Object obj) { return false; } if (!getMessageTransformsList().equals(other.getMessageTransformsList())) return false; + if (!internalGetTags().equals(other.internalGetTags())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1066,6 +1212,10 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_TRANSFORMS_FIELD_NUMBER; hash = (53 * hash) + getMessageTransformsList().hashCode(); } + if (!internalGetTags().getMap().isEmpty()) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTags().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1189,6 +1339,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 2: return internalGetLabels(); + case 14: + return internalGetTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1200,6 +1352,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 2: return internalGetMutableLabels(); + case 14: + return internalGetMutableTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1270,6 +1424,7 @@ public Builder clear() { messageTransformsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); + internalGetMutableTags().clear(); return this; } @@ -1360,6 +1515,10 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { : ingestionDataSourceSettingsBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.tags_ = internalGetTags(); + result.tags_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -1465,6 +1624,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { } } } + internalGetMutableTags().mergeFrom(other.internalGetTags()); + bitField0_ |= 0x00000400; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1567,6 +1728,15 @@ public Builder mergeFrom( } break; } // case 106 + case 114: + { + com.google.protobuf.MapEntry tags__ = + input.readMessage( + TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2145,7 +2315,9 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The kmsKeyName. */ @@ -2171,7 +2343,9 @@ public java.lang.String getKmsKeyName() { * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsKeyName. */ @@ -2197,7 +2371,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The kmsKeyName to set. * @return This builder for chaining. @@ -2222,7 +2398,9 @@ public Builder setKmsKeyName(java.lang.String value) { * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -2243,7 +2421,9 @@ public Builder clearKmsKeyName() { * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. @@ -3557,6 +3737,213 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder return messageTransformsBuilder_; } + private com.google.protobuf.MapField tags_; + + private com.google.protobuf.MapField internalGetTags() { + if (tags_ == null) { + return com.google.protobuf.MapField.emptyMapField(TagsDefaultEntryHolder.defaultEntry); + } + return tags_; + } + + private com.google.protobuf.MapField + internalGetMutableTags() { + if (tags_ == null) { + tags_ = com.google.protobuf.MapField.newMapField(TagsDefaultEntryHolder.defaultEntry); + } + if (!tags_.isMutable()) { + tags_ = tags_.copy(); + } + bitField0_ |= 0x00000400; + onChanged(); + return tags_; + } + + public int getTagsCount() { + return internalGetTags().getMap().size(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTags().getMap().containsKey(key); + } + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTags() { + return getTagsMap(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTagsMap() { + return internalGetTags().getMap(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTags() { + bitField0_ = (bitField0_ & ~0x00000400); + internalGetMutableTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTags() { + bitField0_ |= 0x00000400; + return internalGetMutableTags().getMutableMap(); + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTags().getMutableMap().put(key, value); + bitField0_ |= 0x00000400; + return this; + } + + /** + * + * + *
      +     * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +     * resource. For example:
      +     *   "123/environment": "production",
      +     *   "123/costCenter": "marketing"
      +     * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllTags(java.util.Map values) { + internalGetMutableTags().getMutableMap().putAll(values); + bitField0_ |= 0x00000400; + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 875b6e81a73a..ea55bec4eba2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -187,7 +187,9 @@ java.lang.String getLabelsOrDefault( * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The kmsKeyName. */ @@ -203,7 +205,9 @@ java.lang.String getLabelsOrDefault( * The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. * * - * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * string kms_key_name = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsKeyName. */ @@ -475,4 +479,92 @@ java.lang.String getLabelsOrDefault( *
      */ com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuilder(int index); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTagsCount(); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTags(java.lang.String key); + + /** Use {@link #getTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTags(); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTagsMap(); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
      +   * Optional. Input only. Immutable. Tag keys/values directly bound to this
      +   * resource. For example:
      +   *   "123/environment": "production",
      +   *   "123/costCenter": "marketing"
      +   * 
      + * + * + * map<string, string> tags = 14 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTagsOrThrow(java.lang.String key); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 125b907f6774..b542351d9d67 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -33,6 +33,14 @@ option java_outer_classname = "PubsubProto"; option java_package = "com.google.pubsub.v1"; option php_namespace = "Google\\Cloud\\PubSub\\V1"; option ruby_package = "Google::Cloud::PubSub::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; +option (google.api.resource_definition) = { + type: "analyticshub.googleapis.com/Listing" + pattern: "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" +}; // The service that an application uses to manipulate topics, and to send // messages to a topic. @@ -415,7 +423,10 @@ message IngestionDataSourceSettings { // Required. The name of the topic in the Amazon MSK cluster that Pub/Sub // will import from. - string topic = 3 [(google.api.field_behavior) = REQUIRED]; + string topic = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + ]; // Required. AWS role ARN to be used for Federated Identity authentication // with Amazon MSK. Check the Pub/Sub docs for how to set up this role and @@ -712,12 +723,21 @@ message IngestionFailureEvent { // the Pub/Sub message. MessageTransformationFailureReason message_transformation_failure_reason = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The message failed to be published due to an API violation. + // This is only set when the size of the data field of the Kinesis record + // is zero. + ApiViolationReason api_violation_reason = 6 + [(google.api.field_behavior) = OPTIONAL]; } } // Required. Name of the import topic. Format is: // projects/{project_name}/topics/{topic_name}. - string topic = 1 [(google.api.field_behavior) = REQUIRED]; + string topic = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + ]; // Required. Error details explaining why ingestion to Pub/Sub has failed. string error_message = 2 [(google.api.field_behavior) = REQUIRED]; @@ -849,7 +869,12 @@ message Topic { // protect access to messages published on this topic. // // The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - string kms_key_name = 5 [(google.api.field_behavior) = OPTIONAL]; + string kms_key_name = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; // Optional. Settings for validating messages published against a schema. SchemaSettings schema_settings = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -881,6 +906,16 @@ message Topic { // Transforms are applied in the order specified. repeated MessageTransform message_transforms = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // "123/environment": "production", + // "123/costCenter": "marketing" + map tags = 14 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // A message that is published by publishers and consumed by subscribers. The @@ -1054,7 +1089,10 @@ message ListTopicSnapshotsRequest { // Response for the `ListTopicSnapshots` method. message ListTopicSnapshotsResponse { // Optional. The names of the snapshots that match the request. - repeated string snapshots = 1 [(google.api.field_behavior) = OPTIONAL]; + repeated string snapshots = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } + ]; // Optional. If not empty, indicates that there may be more snapshots that // match the request; this value should be passed in a new @@ -1348,7 +1386,12 @@ message Subscription { // Optional. The name of the associated Analytics Hub listing resource. // Pattern: // "projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}" - string listing = 1 [(google.api.field_behavior) = OPTIONAL]; + string listing = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "analyticshub.googleapis.com/Listing" + } + ]; // Optional. The name of the associated Analytics Hub subscription resource. // Pattern: @@ -1514,6 +1557,16 @@ message Subscription { // subscribers. Transforms are applied in the order specified. repeated MessageTransform message_transforms = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // "123/environment": "production", + // "123/costCenter": "marketing" + map tags = 26 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // A policy that specifies how Pub/Sub retries message delivery. @@ -1555,7 +1608,10 @@ message DeadLetterPolicy { // The operation will fail if the topic does not exist. // Users should ensure that there is a subscription attached to this topic // since messages published to a topic with no subscriptions are lost. - string dead_letter_topic = 1 [(google.api.field_behavior) = OPTIONAL]; + string dead_letter_topic = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } + ]; // Optional. The maximum number of delivery attempts for any message. The // value must be between 5 and 100. @@ -2183,7 +2239,7 @@ message StreamingPullResponse { bool message_ordering_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Optional. Received Pub/Sub messages. This will not be empty. + // Optional. Received Pub/Sub messages. repeated ReceivedMessage received_messages = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -2234,6 +2290,16 @@ message CreateSnapshotRequest { // Optional. See [Creating and managing // labels](https://cloud.google.com/pubsub/docs/labels). map labels = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Immutable. Tag keys/values directly bound to this + // resource. For example: + // "123/environment": "production", + // "123/costCenter": "marketing" + map tags = 4 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; } // Request for the UpdateSnapshot method. From 76a9e3efb63d25fd85cd42db485e4d1e5b0510e5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 15:18:35 -0400 Subject: [PATCH 2269/2363] chore(main): release 1.143.0 (#2591) * chore(main): release 1.143.0 * chore: generate libraries at Mon Oct 20 17:38:19 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 23 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 44 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index bb63149ef455..2df2a6eb3b8f 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## [1.143.0](https://github.com/googleapis/java-pubsub/compare/v1.142.0...v1.143.0) (2025-10-20) + + +### Features + +* Annotate some resource fields with their corresponding API types ([ab60afa](https://github.com/googleapis/java-pubsub/commit/ab60afa012bd3fc81977ba24c416205ce9280943)) +* Implement SubscriberShutdownSettings ([#2569](https://github.com/googleapis/java-pubsub/issues/2569)) ([8195f6f](https://github.com/googleapis/java-pubsub/commit/8195f6fd3bbd33a178535994a94a79822ae2d4d6)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.63.0 ([ab60afa](https://github.com/googleapis/java-pubsub/commit/ab60afa012bd3fc81977ba24c416205ce9280943)) +* Update .OwlBot-hermetic.yaml to preserve SubscriberShutdownSettings files ([#2583](https://github.com/googleapis/java-pubsub/issues/2583)) ([f3cf5e7](https://github.com/googleapis/java-pubsub/commit/f3cf5e725c12173ade0275fd0526885309dc553a)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2576](https://github.com/googleapis/java-pubsub/issues/2576)) ([1375f6d](https://github.com/googleapis/java-pubsub/commit/1375f6d9a71c78d973a71f1df449640a95bc0bc7)) +* Update actions/checkout action to v5 ([#2584](https://github.com/googleapis/java-pubsub/issues/2584)) ([25059ce](https://github.com/googleapis/java-pubsub/commit/25059ce001e3273fcec9d1c40e3b09c89ddf487e)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.55.2 ([#2582](https://github.com/googleapis/java-pubsub/issues/2582)) ([d0f9673](https://github.com/googleapis/java-pubsub/commit/d0f96737a74453c3db54ee59e98d4b6636cd55d4)) +* Update dependency com.google.cloud:google-cloud-storage to v2.58.1 ([#2580](https://github.com/googleapis/java-pubsub/issues/2580)) ([d156cdb](https://github.com/googleapis/java-pubsub/commit/d156cdb27a8d68b6fa8c97f558df7088e6634320)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.53.0 ([#2589](https://github.com/googleapis/java-pubsub/issues/2589)) ([ce7cb09](https://github.com/googleapis/java-pubsub/commit/ce7cb09ac5e86953815e2ead9ae9202e9b034ba6)) + ## [1.142.0](https://github.com/googleapis/java-pubsub/compare/v1.141.5...v1.142.0) (2025-10-07) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2e7f2aa59a77..615b42ea667c 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.142.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.143.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.142.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.143.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.142.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.143.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7074cefc5f59..39ad7f8742d8 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.142.1-SNAPSHOT + 1.143.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.142.1-SNAPSHOT + 1.143.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index adbcb6edb30d..35f33720971e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.142.1-SNAPSHOT + 1.143.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.142.1-SNAPSHOT + 1.143.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 91701e5eed23..7cb6e8fe26a1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.142.1-SNAPSHOT + 1.143.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b2ddf1f78ccb..8c63f6dc9f84 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.142.1-SNAPSHOT + 1.143.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 com.google.cloud google-cloud-pubsub - 1.142.1-SNAPSHOT + 1.143.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 89a797056157..ee3d27b32e38 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.124.1-SNAPSHOT + 1.125.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.142.1-SNAPSHOT + 1.143.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3893f817cc22..99a34318189d 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.142.1-SNAPSHOT + 1.143.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f14ecc920b8c..7092d2e59d3e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.142.0:1.142.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.124.0:1.124.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.124.0:1.124.1-SNAPSHOT +google-cloud-pubsub:1.143.0:1.143.0 +grpc-google-cloud-pubsub-v1:1.125.0:1.125.0 +proto-google-cloud-pubsub-v1:1.125.0:1.125.0 From 3efe851f068da0f5d2e37b7729e928eda662196a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 15:39:34 -0400 Subject: [PATCH 2270/2363] chore(main): release 1.143.1-SNAPSHOT (#2597) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 39ad7f8742d8..860224290dd6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.143.0 + 1.143.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 35f33720971e..f168157af4da 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.143.0 + 1.143.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7cb6e8fe26a1..f03dd6cd41a2 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.0 + 1.143.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 8c63f6dc9f84..6cb487d01fcf 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.143.0 + 1.143.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ee3d27b32e38..aba3441c9f82 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.0 + 1.125.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.0 + 1.143.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 99a34318189d..74d6d4cc68b5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7092d2e59d3e..b4c02f8d614c 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.143.0:1.143.0 -grpc-google-cloud-pubsub-v1:1.125.0:1.125.0 -proto-google-cloud-pubsub-v1:1.125.0:1.125.0 +google-cloud-pubsub:1.143.0:1.143.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.125.0:1.125.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.125.0:1.125.1-SNAPSHOT From b666cacc0b13eca743ba63671b1adcecbda8d6a9 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 21 Oct 2025 16:03:25 -0400 Subject: [PATCH 2271/2363] fix: Deflake WaiterTest (#2600) * chore: Deflake WaiterTest * chore: Update test * chore: Test specific case * fix: Update WaiterTest * fix: Fix flaky test * fix: Try more fixes * fix: Simplify WaiterTest logic and removing special testing on Kokoro config --- .../google/cloud/pubsub/v1/WaiterTest.java | 40 ++++++++++++++----- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java index c9eed7e16357..aaa39669086b 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java @@ -55,39 +55,61 @@ public void run() { } @Test - public void testTryWait_Completes() { + public void testTryWait_Completes() throws Exception { final Waiter waiter = new Waiter(); waiter.incrementPendingCount(1); final FakeClock clock = new FakeClock(); + final Thread mainThread = Thread.currentThread(); Thread t = new Thread( - () -> { - try { - Thread.sleep(100); - } catch (InterruptedException e) { + new Runnable() { + @Override + public void run() { + while (mainThread.getState() == Thread.State.NEW) { + Thread.yield(); + } + waiter.incrementPendingCount(-1); } - waiter.incrementPendingCount(-1); }); t.start(); assertTrue(waiter.tryWait(500, clock)); + t.join(); + + assertEquals(0, waiter.pendingCount()); } @Test - public void testTryWait_TimesOut() { + public void testTryWait_TimesOut() throws Exception { final Waiter waiter = new Waiter(); waiter.incrementPendingCount(1); final FakeClock clock = new FakeClock(); + final Thread mainThread = Thread.currentThread(); Thread t = new Thread( - () -> { - clock.advance(100, TimeUnit.MILLISECONDS); + new Runnable() { + @Override + public void run() { + while (mainThread.getState() == Thread.State.NEW) { + Thread.yield(); + } + try { + // Waits some additional time to ensure that the waiter is actually waiting. + Thread.sleep(100); + clock.advance(200, TimeUnit.MILLISECONDS); + } catch (InterruptedException e) { + // Ignored. + } + } }); t.start(); assertFalse(waiter.tryWait(100, clock)); + t.join(); + + assertEquals(1, waiter.pendingCount()); } @Test From 4ecf76e7c6ba477923f524fcd5187e8eaf9bf212 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 15:50:44 +0000 Subject: [PATCH 2272/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.59.0 (#2603) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 35331a6b09b1..f0e276c6815c 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.58.1 + 2.59.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 74d6d4cc68b5..fbd68b5c450c 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.58.1 + 2.59.0 com.google.cloud.opentelemetry From a1d035b0afa6fe2ff0bdad3961d6791549e8b437 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 28 Oct 2025 11:51:15 -0400 Subject: [PATCH 2273/2363] chore: Update generation configuration at Tue Oct 28 02:33:34 UTC 2025 (#2599) * chore: Update generation configuration at Tue Oct 21 02:34:51 UTC 2025 * chore: Update generation configuration at Wed Oct 22 02:34:52 UTC 2025 * chore: Update generation configuration at Thu Oct 23 02:32:41 UTC 2025 * chore: Update generation configuration at Fri Oct 24 02:31:09 UTC 2025 * chore: Update generation configuration at Sat Oct 25 02:33:27 UTC 2025 * chore: Update generation configuration at Tue Oct 28 02:33:34 UTC 2025 * chore: generate libraries at Tue Oct 28 02:34:04 UTC 2025 --- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 615b42ea667c..6f8ac9068402 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.70.0') +implementation platform('com.google.cloud:libraries-bom:26.71.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 0a9e75959539..626e36d32db8 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.63.0 -googleapis_commitish: c288189b43c016dd3cf1ec73ce3cadee8b732f07 -libraries_bom_version: 26.70.0 +googleapis_commitish: b1a9eefc2e1021fb9465bdac5e2984499451ae34 +libraries_bom_version: 26.71.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From f059208958de78559686ec52b49d16c0506fd482 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 15:58:55 +0000 Subject: [PATCH 2274/2363] deps: update actions/checkout action to v5 (#2592) --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..59e39834dd05 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From 6e0664b07ccba0ba19af1237acb198fa8938cf70 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 15:59:00 +0000 Subject: [PATCH 2275/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.55.3 (#2602) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f0e276c6815c..13ddb7c07ed2 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.55.2 + 2.55.3 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index fbd68b5c450c..3269fdc689a0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.55.2 + 2.55.3 com.google.cloud From e5c8faa9ef3ef370bf97a7a5cc236538d9510df1 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 16:00:07 +0000 Subject: [PATCH 2276/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.61.0 (#2588) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 13ddb7c07ed2..4099250e8737 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.60.3 + 2.61.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3269fdc689a0..94861b773b02 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.60.3 + 2.61.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index c0b404f69955..6952fd2de2b7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.60.3 + 2.61.0 tests From 4bc71649d5068d9af0aa7ccc1e24801d89583e88 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 16:06:41 +0000 Subject: [PATCH 2277/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.33.0 (#2587) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4099250e8737..90a69b9e5355 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.32.1 + 4.33.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 94861b773b02..5627d8080cb1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.32.1 + 4.33.0 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6952fd2de2b7..4123a7ad3be7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.32.1 + 4.33.0 From 106a9b5f3edca5caf39267b63f662a5ae318f4db Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 16:06:50 +0000 Subject: [PATCH 2278/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.71.0 (#2604) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 4123a7ad3be7..40d7fb8288cb 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import From b1862cdb8d4e4f4ea516c774fa00d485fba4b745 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 28 Oct 2025 16:12:03 +0000 Subject: [PATCH 2279/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.143.0 (#2598) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 90a69b9e5355..e9b2ee2b8051 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.142.0 + 1.143.0 From 72886580a5fc40b5ebc473f3cf42a192c22d032d Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Thu, 13 Nov 2025 11:58:52 -0500 Subject: [PATCH 2280/2363] deps: Remove OpenTelemetry semconv dependency (#2611) * deps: Remove OpenTelemetry semconv dependency * chore: Fix formatting --- java-pubsub/google-cloud-pubsub/pom.xml | 4 -- .../pubsub/v1/OpenTelemetryPubsubTracer.java | 29 ++++---- .../cloud/pubsub/v1/PubsubMessageWrapper.java | 4 +- .../cloud/pubsub/v1/OpenTelemetryTest.java | 69 ++++++++++--------- 4 files changed, 55 insertions(+), 51 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f168157af4da..6fb9d24734c0 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -108,10 +108,6 @@ io.opentelemetry opentelemetry-context - - io.opentelemetry - opentelemetry-semconv - diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java index 9ee75113561f..3de4484586d0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java @@ -27,7 +27,6 @@ import io.opentelemetry.api.trace.StatusCode; import io.opentelemetry.api.trace.Tracer; import io.opentelemetry.context.Context; -import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; import java.util.List; public class OpenTelemetryPubsubTracer { @@ -40,6 +39,13 @@ public class OpenTelemetryPubsubTracer { "subscriber concurrency control"; private static final String SUBSCRIBE_SCHEDULER_SPAN_NAME = "subscriber scheduler"; + private static final String MESSAGING_SYSTEM_ATTR_KEY = "messaging.system"; + private static final String MESSAGING_DESTINATION_NAME_ATTR_KEY = "messaging.destination.name"; + private static final String CODE_FUNCTION_ATTR_KEY = "code.function"; + private static final String MESSAGING_OPERATION_ATTR_KEY = "messaging.operation"; + private static final String MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY = + "messaging.batch.message_count"; + private static final String MESSAGING_MESSAGE_ID_ATTR_KEY = "messaging.message.id"; private static final String MESSAGE_SIZE_ATTR_KEY = "messaging.message.body.size"; private static final String ORDERING_KEY_ATTR_KEY = "messaging.gcp_pubsub.message.ordering_key"; private static final String MESSAGE_ACK_ID_ATTR_KEY = "messaging.gcp_pubsub.message.ack_id"; @@ -66,12 +72,12 @@ private static final AttributesBuilder createCommonSpanAttributesBuilder( String destinationName, String projectName, String codeFunction, String operation) { AttributesBuilder attributesBuilder = Attributes.builder() - .put(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) - .put(SemanticAttributes.MESSAGING_DESTINATION_NAME, destinationName) + .put(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) + .put(MESSAGING_DESTINATION_NAME_ATTR_KEY, destinationName) .put(PROJECT_ATTR_KEY, projectName) - .put(SemanticAttributes.CODE_FUNCTION, codeFunction); + .put(CODE_FUNCTION_ATTR_KEY, codeFunction); if (operation != null) { - attributesBuilder.put(SemanticAttributes.MESSAGING_OPERATION, operation); + attributesBuilder.put(MESSAGING_OPERATION_ATTR_KEY, operation); } return attributesBuilder; @@ -179,7 +185,7 @@ Span startPublishRpcSpan(TopicName topicName, List message Attributes attributes = createCommonSpanAttributesBuilder( topicName.getTopic(), topicName.getProject(), "publishCall", "publish") - .put(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messages.size()) + .put(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, messages.size()) .build(); SpanBuilder publishRpcSpanBuilder = tracer @@ -187,7 +193,7 @@ Span startPublishRpcSpan(TopicName topicName, List message .setSpanKind(SpanKind.CLIENT) .setAllAttributes(attributes); Attributes linkAttributes = - Attributes.builder().put(SemanticAttributes.MESSAGING_OPERATION, "publish").build(); + Attributes.builder().put(MESSAGING_OPERATION_ATTR_KEY, "publish").build(); for (PubsubMessageWrapper message : messages) { if (message.getPublisherSpan().getSpanContext().isSampled()) publishRpcSpanBuilder.addLink(message.getPublisherSpan().getSpanContext(), linkAttributes); @@ -237,7 +243,7 @@ void startSubscriberSpan(PubsubMessageWrapper message, boolean exactlyOnceDelive message.getSubscriptionName(), message.getSubscriptionProject(), "onResponse", null); attributesBuilder - .put(SemanticAttributes.MESSAGING_MESSAGE_ID, message.getMessageId()) + .put(MESSAGING_MESSAGE_ID_ATTR_KEY, message.getMessageId()) .put(MESSAGE_SIZE_ATTR_KEY, message.getDataSize()) .put(MESSAGE_ACK_ID_ATTR_KEY, message.getAckId()) .put(MESSAGE_EXACTLY_ONCE_ATTR_KEY, exactlyOnceDeliveryEnabled); @@ -336,8 +342,7 @@ void startSubscribeProcessSpan(PubsubMessageWrapper message) { if (subscriberSpan != null) { Span subscribeProcessSpan = startChildSpan(message.getSubscriptionName() + " process", subscriberSpan); - subscribeProcessSpan.setAttribute( - SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE); + subscribeProcessSpan.setAttribute(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE); Span publisherSpan = message.getPublisherSpan(); if (publisherSpan != null) { subscribeProcessSpan.addLink(publisherSpan.getSpanContext()); @@ -373,7 +378,7 @@ Span startSubscribeRpcSpan( subscriptionName.getProject(), codeFunction, rpcOperation) - .put(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messages.size()); + .put(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, messages.size()); // Ack deadline and receipt modack are specific to the modack operation if (rpcOperation == "modack") { @@ -388,7 +393,7 @@ Span startSubscribeRpcSpan( .setSpanKind(SpanKind.CLIENT) .setAllAttributes(attributesBuilder.build()); Attributes linkAttributes = - Attributes.builder().put(SemanticAttributes.MESSAGING_OPERATION, rpcOperation).build(); + Attributes.builder().put(MESSAGING_OPERATION_ATTR_KEY, rpcOperation).build(); for (PubsubMessageWrapper message : messages) { if (message.getSubscriberSpan().getSpanContext().isSampled()) { rpcSpanBuilder.addLink(message.getSubscriberSpan().getSpanContext(), linkAttributes); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java index 7067b0c1aa20..19864a26f5a1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java @@ -26,7 +26,6 @@ import io.opentelemetry.context.Context; import io.opentelemetry.context.propagation.TextMapGetter; import io.opentelemetry.context.propagation.TextMapSetter; -import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; /** * A wrapper class for a {@link PubsubMessage} object that handles creation and tracking of @@ -54,6 +53,7 @@ public class PubsubMessageWrapper { private static final String GOOGCLIENT_PREFIX = "googclient_"; + private static final String MESSAGING_MESSAGE_ID_ATTR_KEY = "messaging.message.id"; private static final String MESSAGE_RESULT_ATTR_KEY = "messaging.gcp_pubsub.result"; private Span publisherSpan; @@ -194,7 +194,7 @@ void addPublishStartEvent() { */ void setPublisherMessageIdSpanAttribute(String messageId) { if (publisherSpan != null) { - publisherSpan.setAttribute(SemanticAttributes.MESSAGING_MESSAGE_ID, messageId); + publisherSpan.setAttribute(MESSAGING_MESSAGE_ID_ATTR_KEY, messageId); } } diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java index 2297f84bf2b2..52351ddef466 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java @@ -35,7 +35,6 @@ import io.opentelemetry.sdk.trace.data.LinkData; import io.opentelemetry.sdk.trace.data.SpanData; import io.opentelemetry.sdk.trace.data.StatusData; -import io.opentelemetry.semconv.trace.attributes.SemanticAttributes; import java.util.Arrays; import java.util.List; import org.junit.Test; @@ -82,6 +81,13 @@ public class OpenTelemetryTest { private static final String ACK_START_EVENT = "ack start"; private static final String ACK_END_EVENT = "ack end"; + private static final String MESSAGING_SYSTEM_ATTR_KEY = "messaging.system"; + private static final String MESSAGING_DESTINATION_NAME_ATTR_KEY = "messaging.destination.name"; + private static final String CODE_FUNCTION_ATTR_KEY = "code.function"; + private static final String MESSAGING_OPERATION_ATTR_KEY = "messaging.operation"; + private static final String MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY = + "messaging.batch.message_count"; + private static final String MESSAGING_MESSAGE_ID_ATTR_KEY = "messaging.message.id"; private static final String MESSAGING_SYSTEM_VALUE = "gcp_pubsub"; private static final String PROJECT_ATTR_KEY = "gcp.project_id"; private static final String MESSAGE_SIZE_ATTR_KEY = "messaging.message.body.size"; @@ -159,12 +165,12 @@ public void testPublishSpansSuccess() { AttributesAssert publishRpcSpanAttributesAssert = OpenTelemetryAssertions.assertThat(publishRpcSpanData.getAttributes()); publishRpcSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) - .containsEntry(SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_TOPIC_NAME.getTopic()) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_TOPIC_NAME.getTopic()) .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "publishCall") - .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "publish") - .containsEntry(SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, messageWrappers.size()); + .containsEntry(CODE_FUNCTION_ATTR_KEY, "publishCall") + .containsEntry(MESSAGING_OPERATION_ATTR_KEY, "publish") + .containsEntry(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, messageWrappers.size()); // Check span data, events, links, and attributes for the publisher create span SpanDataAssert publisherSpanDataAssert = OpenTelemetryAssertions.assertThat(publisherSpanData); @@ -190,14 +196,14 @@ public void testPublishSpansSuccess() { AttributesAssert publisherSpanAttributesAssert = OpenTelemetryAssertions.assertThat(publisherSpanData.getAttributes()); publisherSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) - .containsEntry(SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_TOPIC_NAME.getTopic()) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_TOPIC_NAME.getTopic()) .containsEntry(PROJECT_ATTR_KEY, PROJECT_NAME) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "publish") - .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "create") + .containsEntry(CODE_FUNCTION_ATTR_KEY, "publish") + .containsEntry(MESSAGING_OPERATION_ATTR_KEY, "create") .containsEntry(ORDERING_KEY_ATTR_KEY, ORDERING_KEY) .containsEntry(MESSAGE_SIZE_ATTR_KEY, messageSize) - .containsEntry(SemanticAttributes.MESSAGING_MESSAGE_ID, MESSAGE_ID); + .containsEntry(MESSAGING_MESSAGE_ID_ATTR_KEY, MESSAGE_ID); // Check that the message has the attribute containing the trace context. PubsubMessage message = messageWrapper.getPubsubMessage(); @@ -393,14 +399,13 @@ public void testSubscribeSpansSuccess() { AttributesAssert modackRpcSpanAttributesAssert = OpenTelemetryAssertions.assertThat(modackRpcSpanData.getAttributes()); modackRpcSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) .containsEntry( - SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_SUBSCRIPTION_NAME.getSubscription()) .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendModAckOperations") - .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "modack") - .containsEntry( - SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()) + .containsEntry(CODE_FUNCTION_ATTR_KEY, "sendModAckOperations") + .containsEntry(MESSAGING_OPERATION_ATTR_KEY, "modack") + .containsEntry(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, subscribeMessageWrappers.size()) .containsEntry(ACK_DEADLINE_ATTR_KEY, 10) .containsEntry(RECEIPT_MODACK_ATTR_KEY, true); @@ -420,14 +425,13 @@ public void testSubscribeSpansSuccess() { AttributesAssert ackRpcSpanAttributesAssert = OpenTelemetryAssertions.assertThat(ackRpcSpanData.getAttributes()); ackRpcSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) .containsEntry( - SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_SUBSCRIPTION_NAME.getSubscription()) .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendAckOperations") - .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "ack") - .containsEntry( - SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()); + .containsEntry(CODE_FUNCTION_ATTR_KEY, "sendAckOperations") + .containsEntry(MESSAGING_OPERATION_ATTR_KEY, "ack") + .containsEntry(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, subscribeMessageWrappers.size()); // Check span data, links, and attributes for the nack RPC span SpanDataAssert nackRpcSpanDataAssert = OpenTelemetryAssertions.assertThat(nackRpcSpanData); @@ -445,14 +449,13 @@ public void testSubscribeSpansSuccess() { AttributesAssert nackRpcSpanAttributesAssert = OpenTelemetryAssertions.assertThat(nackRpcSpanData.getAttributes()); nackRpcSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) .containsEntry( - SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_SUBSCRIPTION_NAME.getSubscription()) .containsEntry(PROJECT_ATTR_KEY, FULL_TOPIC_NAME.getProject()) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "sendModAckOperations") - .containsEntry(SemanticAttributes.MESSAGING_OPERATION, "nack") - .containsEntry( - SemanticAttributes.MESSAGING_BATCH_MESSAGE_COUNT, subscribeMessageWrappers.size()); + .containsEntry(CODE_FUNCTION_ATTR_KEY, "sendModAckOperations") + .containsEntry(MESSAGING_OPERATION_ATTR_KEY, "nack") + .containsEntry(MESSAGING_BATCH_MESSAGE_COUNT_ATTR_KEY, subscribeMessageWrappers.size()); // Check span data, events, links, and attributes for the publisher create span SpanDataAssert subscriberSpanDataAssert = @@ -493,18 +496,18 @@ public void testSubscribeSpansSuccess() { AttributesAssert subscriberSpanAttributesAssert = OpenTelemetryAssertions.assertThat(subscriberSpanData.getAttributes()); subscriberSpanAttributesAssert - .containsEntry(SemanticAttributes.MESSAGING_SYSTEM, MESSAGING_SYSTEM_VALUE) + .containsEntry(MESSAGING_SYSTEM_ATTR_KEY, MESSAGING_SYSTEM_VALUE) .containsEntry( - SemanticAttributes.MESSAGING_DESTINATION_NAME, FULL_SUBSCRIPTION_NAME.getSubscription()) + MESSAGING_DESTINATION_NAME_ATTR_KEY, FULL_SUBSCRIPTION_NAME.getSubscription()) .containsEntry(PROJECT_ATTR_KEY, PROJECT_NAME) - .containsEntry(SemanticAttributes.CODE_FUNCTION, "onResponse") + .containsEntry(CODE_FUNCTION_ATTR_KEY, "onResponse") .containsEntry(MESSAGE_SIZE_ATTR_KEY, messageSize) .containsEntry(ORDERING_KEY_ATTR_KEY, ORDERING_KEY) .containsEntry(MESSAGE_ACK_ID_ATTR_KEY, ACK_ID) .containsEntry(MESSAGE_DELIVERY_ATTEMPT_ATTR_KEY, DELIVERY_ATTEMPT) .containsEntry(MESSAGE_EXACTLY_ONCE_ATTR_KEY, EXACTLY_ONCE_ENABLED) .containsEntry(MESSAGE_RESULT_ATTR_KEY, PROCESS_ACTION) - .containsEntry(SemanticAttributes.MESSAGING_MESSAGE_ID, MESSAGE_ID); + .containsEntry(MESSAGING_MESSAGE_ID_ATTR_KEY, MESSAGE_ID); } @Test From d02ffafa832d3c55a01a0458d417148830757857 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 17:27:44 +0000 Subject: [PATCH 2281/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.54.1 (#2609) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 118c3b50f56f..ba9ae7cf549a 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.53.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.54.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 860224290dd6..8cada16c86ce 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.53.0 + 3.54.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6cb487d01fcf..7338700d4a25 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.53.0 + 3.54.1 From a3dcbcac0554791114aab61d99d83b6e29f71964 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 13 Nov 2025 13:19:13 -0500 Subject: [PATCH 2282/2363] chore: Update generation configuration at Thu Nov 13 02:35:52 UTC 2025 (#2606) * chore: Update generation configuration at Wed Oct 29 02:36:04 UTC 2025 * chore: generate libraries at Wed Oct 29 02:36:40 UTC 2025 * chore: Update generation configuration at Thu Oct 30 02:35:08 UTC 2025 * chore: Update generation configuration at Fri Oct 31 02:36:01 UTC 2025 * chore: Update generation configuration at Sat Nov 1 02:35:35 UTC 2025 * chore: Update generation configuration at Tue Nov 4 02:36:23 UTC 2025 * chore: Update generation configuration at Wed Nov 5 02:35:14 UTC 2025 * chore: generate libraries at Wed Nov 5 02:35:46 UTC 2025 * chore: Update generation configuration at Thu Nov 6 02:35:50 UTC 2025 * chore: Update generation configuration at Fri Nov 7 02:34:52 UTC 2025 * chore: Update generation configuration at Sat Nov 8 02:31:55 UTC 2025 * chore: generate libraries at Sat Nov 8 02:32:23 UTC 2025 * chore: Update generation configuration at Tue Nov 11 02:35:53 UTC 2025 * chore: Update generation configuration at Wed Nov 12 02:34:52 UTC 2025 * chore: Update generation configuration at Thu Nov 13 02:35:52 UTC 2025 --------- Co-authored-by: Diego Marquez --- .../hermetic_library_generation.yaml | 2 +- .../workflows/update_generation_config.yaml | 2 +- .../.kokoro/presubmit/graalvm-native-a.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-b.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 4 +- java-pubsub/generation_config.yaml | 4 +- .../com/google/pubsub/v1/PublisherGrpc.java | 45 ++++++------- .../google/pubsub/v1/SchemaServiceGrpc.java | 46 +++++++------ .../com/google/pubsub/v1/SubscriberGrpc.java | 66 +++++++++---------- 10 files changed, 87 insertions(+), 88 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 7023350ad0ac..f61e4eb85240 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.63.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 59e39834dd05..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 55c5543e2605..b772eac66cd8 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 5c981b984828..baf136cf8233 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index f2032499dff9..2fb2fc87c418 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.53.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6f8ac9068402..f0b5c24b38ba 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.70.0 + 26.71.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.142.0 + 1.143.0 ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 626e36d32db8..744688ac17c2 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.63.0 -googleapis_commitish: b1a9eefc2e1021fb9465bdac5e2984499451ae34 +gapic_generator_version: 2.64.1 +googleapis_commitish: 5342712986262b93211b136eb4bd6fb79b3764af libraries_bom_version: 26.71.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index a1b0a2b1cad8..8ee09f14e3fe 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -25,9 +25,6 @@ * messages to a topic. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/pubsub/v1/pubsub.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PublisherGrpc { @@ -832,8 +829,9 @@ protected PublisherBlockingV2Stub build( * (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). * */ - public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateTopicMethod(), getCallOptions(), request); } @@ -845,8 +843,9 @@ public com.google.pubsub.v1.Topic createTopic(com.google.pubsub.v1.Topic request * mask. Note that certain properties of a topic are not modifiable. * */ - public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateTopicMethod(), getCallOptions(), request); } @@ -858,9 +857,9 @@ public com.google.pubsub.v1.Topic updateTopic(com.google.pubsub.v1.UpdateTopicRe * does not exist. * */ - public com.google.pubsub.v1.PublishResponse publish( - com.google.pubsub.v1.PublishRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.PublishResponse publish(com.google.pubsub.v1.PublishRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPublishMethod(), getCallOptions(), request); } @@ -871,8 +870,9 @@ public com.google.pubsub.v1.PublishResponse publish( * Gets the configuration of a topic. * */ - public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetTopicMethod(), getCallOptions(), request); } @@ -884,8 +884,8 @@ public com.google.pubsub.v1.Topic getTopic(com.google.pubsub.v1.GetTopicRequest * */ public com.google.pubsub.v1.ListTopicsResponse listTopics( - com.google.pubsub.v1.ListTopicsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListTopicsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTopicsMethod(), getCallOptions(), request); } @@ -897,8 +897,8 @@ public com.google.pubsub.v1.ListTopicsResponse listTopics( * */ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscriptions( - com.google.pubsub.v1.ListTopicSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListTopicSubscriptionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request); } @@ -914,8 +914,8 @@ public com.google.pubsub.v1.ListTopicSubscriptionsResponse listTopicSubscription * */ public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( - com.google.pubsub.v1.ListTopicSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListTopicSnapshotsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListTopicSnapshotsMethod(), getCallOptions(), request); } @@ -930,8 +930,9 @@ public com.google.pubsub.v1.ListTopicSnapshotsResponse listTopicSnapshots( * not deleted, but their `topic` field is set to `_deleted-topic_`. * */ - public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteTopicMethod(), getCallOptions(), request); } @@ -946,8 +947,8 @@ public com.google.protobuf.Empty deleteTopic(com.google.pubsub.v1.DeleteTopicReq * */ public com.google.pubsub.v1.DetachSubscriptionResponse detachSubscription( - com.google.pubsub.v1.DetachSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.DetachSubscriptionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDetachSubscriptionMethod(), getCallOptions(), request); } } diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index 35c281c88ff5..59fbec01b736 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -24,9 +24,6 @@ * Service for doing schema-related operations. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/pubsub/v1/schema.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SchemaServiceGrpc { @@ -881,8 +878,8 @@ protected SchemaServiceBlockingV2Stub build( * */ public com.google.pubsub.v1.Schema createSchema( - com.google.pubsub.v1.CreateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.CreateSchemaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSchemaMethod(), getCallOptions(), request); } @@ -893,8 +890,9 @@ public com.google.pubsub.v1.Schema createSchema( * Gets a schema. * */ - public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSchemaMethod(), getCallOptions(), request); } @@ -906,8 +904,8 @@ public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaReque * */ public com.google.pubsub.v1.ListSchemasResponse listSchemas( - com.google.pubsub.v1.ListSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListSchemasRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSchemasMethod(), getCallOptions(), request); } @@ -919,8 +917,8 @@ public com.google.pubsub.v1.ListSchemasResponse listSchemas( * */ public com.google.pubsub.v1.ListSchemaRevisionsResponse listSchemaRevisions( - com.google.pubsub.v1.ListSchemaRevisionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListSchemaRevisionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSchemaRevisionsMethod(), getCallOptions(), request); } @@ -932,8 +930,8 @@ public com.google.pubsub.v1.ListSchemaRevisionsResponse listSchemaRevisions( * */ public com.google.pubsub.v1.Schema commitSchema( - com.google.pubsub.v1.CommitSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.CommitSchemaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCommitSchemaMethod(), getCallOptions(), request); } @@ -945,8 +943,8 @@ public com.google.pubsub.v1.Schema commitSchema( * */ public com.google.pubsub.v1.Schema rollbackSchema( - com.google.pubsub.v1.RollbackSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.RollbackSchemaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getRollbackSchemaMethod(), getCallOptions(), request); } @@ -958,8 +956,8 @@ public com.google.pubsub.v1.Schema rollbackSchema( * */ public com.google.pubsub.v1.Schema deleteSchemaRevision( - com.google.pubsub.v1.DeleteSchemaRevisionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.DeleteSchemaRevisionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSchemaRevisionMethod(), getCallOptions(), request); } @@ -970,9 +968,9 @@ public com.google.pubsub.v1.Schema deleteSchemaRevision( * Deletes a schema. * */ - public com.google.protobuf.Empty deleteSchema( - com.google.pubsub.v1.DeleteSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); } @@ -984,8 +982,8 @@ public com.google.protobuf.Empty deleteSchema( * */ public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( - com.google.pubsub.v1.ValidateSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ValidateSchemaRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateSchemaMethod(), getCallOptions(), request); } @@ -997,8 +995,8 @@ public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( * */ public com.google.pubsub.v1.ValidateMessageResponse validateMessage( - com.google.pubsub.v1.ValidateMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ValidateMessageRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getValidateMessageMethod(), getCallOptions(), request); } } diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 2a8fc9299956..26003fb0e615 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -26,9 +26,6 @@ * establishing a bi-directional stream using the `StreamingPull` method. * */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/pubsub/v1/pubsub.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SubscriberGrpc { @@ -1450,8 +1447,8 @@ protected SubscriberBlockingV2Stub build( * */ public com.google.pubsub.v1.Subscription createSubscription( - com.google.pubsub.v1.Subscription request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.Subscription request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSubscriptionMethod(), getCallOptions(), request); } @@ -1463,8 +1460,8 @@ public com.google.pubsub.v1.Subscription createSubscription( * */ public com.google.pubsub.v1.Subscription getSubscription( - com.google.pubsub.v1.GetSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.GetSubscriptionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSubscriptionMethod(), getCallOptions(), request); } @@ -1478,8 +1475,8 @@ public com.google.pubsub.v1.Subscription getSubscription( * */ public com.google.pubsub.v1.Subscription updateSubscription( - com.google.pubsub.v1.UpdateSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.UpdateSubscriptionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSubscriptionMethod(), getCallOptions(), request); } @@ -1491,8 +1488,8 @@ public com.google.pubsub.v1.Subscription updateSubscription( * */ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( - com.google.pubsub.v1.ListSubscriptionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListSubscriptionsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSubscriptionsMethod(), getCallOptions(), request); } @@ -1508,8 +1505,8 @@ public com.google.pubsub.v1.ListSubscriptionsResponse listSubscriptions( * */ public com.google.protobuf.Empty deleteSubscription( - com.google.pubsub.v1.DeleteSubscriptionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.DeleteSubscriptionRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSubscriptionMethod(), getCallOptions(), request); } @@ -1525,8 +1522,8 @@ public com.google.protobuf.Empty deleteSubscription( * */ public com.google.protobuf.Empty modifyAckDeadline( - com.google.pubsub.v1.ModifyAckDeadlineRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ModifyAckDeadlineRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModifyAckDeadlineMethod(), getCallOptions(), request); } @@ -1542,8 +1539,9 @@ public com.google.protobuf.Empty modifyAckDeadline( * than once will not result in an error. * */ - public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getAcknowledgeMethod(), getCallOptions(), request); } @@ -1554,8 +1552,9 @@ public com.google.protobuf.Empty acknowledge(com.google.pubsub.v1.AcknowledgeReq * Pulls messages from the server. * */ - public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPullMethod(), getCallOptions(), request); } @@ -1592,8 +1591,8 @@ public com.google.pubsub.v1.PullResponse pull(com.google.pubsub.v1.PullRequest r * */ public com.google.protobuf.Empty modifyPushConfig( - com.google.pubsub.v1.ModifyPushConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ModifyPushConfigRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getModifyPushConfigMethod(), getCallOptions(), request); } @@ -1609,8 +1608,8 @@ public com.google.protobuf.Empty modifyPushConfig( * */ public com.google.pubsub.v1.Snapshot getSnapshot( - com.google.pubsub.v1.GetSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.GetSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetSnapshotMethod(), getCallOptions(), request); } @@ -1626,8 +1625,8 @@ public com.google.pubsub.v1.Snapshot getSnapshot( * */ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( - com.google.pubsub.v1.ListSnapshotsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.ListSnapshotsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListSnapshotsMethod(), getCallOptions(), request); } @@ -1654,8 +1653,8 @@ public com.google.pubsub.v1.ListSnapshotsResponse listSnapshots( * */ public com.google.pubsub.v1.Snapshot createSnapshot( - com.google.pubsub.v1.CreateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.CreateSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getCreateSnapshotMethod(), getCallOptions(), request); } @@ -1672,8 +1671,8 @@ public com.google.pubsub.v1.Snapshot createSnapshot( * */ public com.google.pubsub.v1.Snapshot updateSnapshot( - com.google.pubsub.v1.UpdateSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.UpdateSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateSnapshotMethod(), getCallOptions(), request); } @@ -1693,8 +1692,8 @@ public com.google.pubsub.v1.Snapshot updateSnapshot( * */ public com.google.protobuf.Empty deleteSnapshot( - com.google.pubsub.v1.DeleteSnapshotRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + com.google.pubsub.v1.DeleteSnapshotRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteSnapshotMethod(), getCallOptions(), request); } @@ -1711,8 +1710,9 @@ public com.google.protobuf.Empty deleteSnapshot( * snapshot must be on the same topic. * */ - public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( + public com.google.pubsub.v1.SeekResponse seek(com.google.pubsub.v1.SeekRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSeekMethod(), getCallOptions(), request); } } From 9507cde6a1ad52a2e9bddd20af9db6e2d324c54e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 Nov 2025 15:00:27 -0500 Subject: [PATCH 2283/2363] chore(main): release 1.143.1 (#2601) * chore(main): release 1.143.1 * chore: generate libraries at Thu Nov 13 18:20:07 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 19 +++++++++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 40 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 2df2a6eb3b8f..d16543734533 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [1.143.1](https://github.com/googleapis/java-pubsub/compare/v1.143.0...v1.143.1) (2025-11-13) + + +### Bug Fixes + +* Deflake WaiterTest ([#2600](https://github.com/googleapis/java-pubsub/issues/2600)) ([298c8db](https://github.com/googleapis/java-pubsub/commit/298c8db04616341da040935636b1a04ce5f022a0)) +* **deps:** Update the Java code generator (gapic-generator-java) to 2.64.1 ([b210251](https://github.com/googleapis/java-pubsub/commit/b2102516bf833c2704c85cb348b67bb7cbfdb3a6)) + + +### Dependencies + +* Remove OpenTelemetry semconv dependency ([#2611](https://github.com/googleapis/java-pubsub/issues/2611)) ([240fc37](https://github.com/googleapis/java-pubsub/commit/240fc3784db3860eb2668946fbf861beed2647d7)) +* Update actions/checkout action to v5 ([#2592](https://github.com/googleapis/java-pubsub/issues/2592)) ([6ca466d](https://github.com/googleapis/java-pubsub/commit/6ca466d382ddde9780ae1c8627092d731e314f90)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.55.3 ([#2602](https://github.com/googleapis/java-pubsub/issues/2602)) ([d14106c](https://github.com/googleapis/java-pubsub/commit/d14106cc278c98d3f954f959e2dd3764ebd20fc2)) +* Update dependency com.google.cloud:google-cloud-core to v2.61.0 ([#2588](https://github.com/googleapis/java-pubsub/issues/2588)) ([244cf75](https://github.com/googleapis/java-pubsub/commit/244cf758bf46f8431a17b1d8e76d1d90c494fc76)) +* Update dependency com.google.cloud:google-cloud-storage to v2.59.0 ([#2603](https://github.com/googleapis/java-pubsub/issues/2603)) ([d9d05bf](https://github.com/googleapis/java-pubsub/commit/d9d05bfa18580cdacdfa9378d30b56ce0ae0d4d2)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.54.1 ([#2609](https://github.com/googleapis/java-pubsub/issues/2609)) ([c99373f](https://github.com/googleapis/java-pubsub/commit/c99373f2d25c6b9f1bcb6aace3c6625375310a16)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.33.0 ([#2587](https://github.com/googleapis/java-pubsub/issues/2587)) ([33724ce](https://github.com/googleapis/java-pubsub/commit/33724cef79e3f7e798c5ef222ee7dff3565555f8)) + ## [1.143.0](https://github.com/googleapis/java-pubsub/compare/v1.142.0...v1.143.0) (2025-10-20) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index f0b5c24b38ba..b0672bc0007f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.143.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.143.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.143.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.143.1" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.143.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.143.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 8cada16c86ce..5281720c53df 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.143.1-SNAPSHOT + 1.143.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.143.1-SNAPSHOT + 1.143.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 6fb9d24734c0..8d31ef029e2f 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.143.1-SNAPSHOT + 1.143.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.143.1-SNAPSHOT + 1.143.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f03dd6cd41a2..fd03db4dbaf0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.1-SNAPSHOT + 1.143.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 7338700d4a25..f5fd9874df2c 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.143.1-SNAPSHOT + 1.143.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 com.google.cloud google-cloud-pubsub - 1.143.1-SNAPSHOT + 1.143.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index aba3441c9f82..012ad1784909 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1-SNAPSHOT + 1.125.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.1-SNAPSHOT + 1.143.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 5627d8080cb1..95a05609ca95 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.143.1-SNAPSHOT + 1.143.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index b4c02f8d614c..e51f1f34a0cc 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.143.0:1.143.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.125.0:1.125.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.125.0:1.125.1-SNAPSHOT +google-cloud-pubsub:1.143.1:1.143.1 +grpc-google-cloud-pubsub-v1:1.125.1:1.125.1 +proto-google-cloud-pubsub-v1:1.125.1:1.125.1 From c26b9a8007dd59768c31d43d5bf7af252d6c9d95 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 21:08:17 +0000 Subject: [PATCH 2284/2363] deps: update actions/checkout action to v5 (#2613) --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..59e39834dd05 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From bd5f9cb629dd5b71a340bb967cdc8bc5545d841a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 21:08:23 +0000 Subject: [PATCH 2285/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.60.0 (#2610) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index e9b2ee2b8051..4671d63bbd99 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.59.0 + 2.60.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 95a05609ca95..0591861bbee3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.59.0 + 2.60.0 com.google.cloud.opentelemetry From 3f15646c9a49f5a7090dc0ef5a83029572923960 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 21:08:27 +0000 Subject: [PATCH 2286/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.62.1 (#2608) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 4671d63bbd99..bba13db02702 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.61.0 + 2.62.1 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0591861bbee3..426e5d5d3505 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.61.0 + 2.62.1 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 40d7fb8288cb..dc4c6625039f 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.61.0 + 2.62.1 tests From d801a26ff909b18f701ed485ad5291e592bab385 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 21:46:30 +0000 Subject: [PATCH 2287/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.143.1 (#2615) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index bba13db02702..050ed8d2b5d5 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1 From ea8bb116eeb2d4ab01c72100c3aeb8b322d7c1e9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 13 Nov 2025 22:49:46 +0000 Subject: [PATCH 2288/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.33.1 (#2612) Co-authored-by: Mike Prieto --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 050ed8d2b5d5..ed71217f50c0 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.33.0 + 4.33.1 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 426e5d5d3505..addbfc8a2454 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.33.0 + 4.33.1 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index dc4c6625039f..6441845bd176 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.33.0 + 4.33.1 From a12e8f454e711cfc40525bb8d2bf51888529d2f2 Mon Sep 17 00:00:00 2001 From: Samuel Schaub <40373331+SamuelSchaub@users.noreply.github.com> Date: Mon, 1 Dec 2025 16:56:53 -0500 Subject: [PATCH 2289/2363] feat: add keepalive feature to tear down streams in their absence (#2605) * feat: add keepalive feature to tear down streams in their absence * fix: reset timer each time stream is opened * fix: update timings for server monitor to meet stream close time policy * fix: update initial delay vs period in fake scheduled executor and fix test cases --- .../v1/StreamingSubscriberConnection.java | 147 +++++++++++++++ .../google/cloud/pubsub/v1/Subscriber.java | 11 ++ .../v1/FakeScheduledExecutorService.java | 17 +- .../v1/StreamingSubscriberConnectionTest.java | 171 ++++++++++++++++++ 4 files changed, 342 insertions(+), 4 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 319dd31f5e3f..5c9f9e171be1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -63,6 +63,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Executor; import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicLong; @@ -95,6 +96,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private final SubscriberStub subscriberStub; private final int channelAffinity; + private final long protocolVersion; private final String subscription; private final SubscriptionName subscriptionNameObject; private final ScheduledExecutorService systemExecutor; @@ -127,6 +129,17 @@ final class StreamingSubscriberConnection extends AbstractApiService implements private OpenTelemetryPubsubTracer tracer = new OpenTelemetryPubsubTracer(null, false); private final SubscriberShutdownSettings subscriberShutdownSettings; + private final boolean enableKeepalive; + private static final long KEEP_ALIVE_SUPPORT_VERSION = 1; + private static final Duration CLIENT_PING_INTERVAL = Duration.ofSeconds(30); + private ScheduledFuture pingSchedulerHandle; + + private static final Duration SERVER_MONITOR_INTERVAL = Duration.ofSeconds(10); + private static final Duration SERVER_PING_TIMEOUT_DURATION = Duration.ofSeconds(15); + private final AtomicLong lastServerResponseTime; + private final AtomicLong lastClientPingTime; + private ScheduledFuture serverMonitorHandle; + private StreamingSubscriberConnection(Builder builder) { subscription = builder.subscription; subscriptionNameObject = SubscriptionName.parse(builder.subscription); @@ -154,6 +167,7 @@ private StreamingSubscriberConnection(Builder builder) { subscriberStub = builder.subscriberStub; channelAffinity = builder.channelAffinity; + protocolVersion = builder.protocolVersion; MessageDispatcher.Builder messageDispatcherBuilder; if (builder.receiver != null) { @@ -190,6 +204,9 @@ private StreamingSubscriberConnection(Builder builder) { flowControlSettings = builder.flowControlSettings; useLegacyFlowControl = builder.useLegacyFlowControl; + enableKeepalive = protocolVersion >= KEEP_ALIVE_SUPPORT_VERSION; + lastServerResponseTime = new AtomicLong(clock.nanoTime()); + lastClientPingTime = new AtomicLong(-1L); } public StreamingSubscriberConnection setExactlyOnceDeliveryEnabled( @@ -218,6 +235,12 @@ protected void doStop() { } finally { lock.unlock(); } + + if (enableKeepalive) { + stopClientPinger(); + stopServerMonitor(); + } + runShutdown(); notifyStopped(); } @@ -266,6 +289,10 @@ public void onStart(StreamController controller) { @Override public void onResponse(StreamingPullResponse response) { + if (enableKeepalive) { + lastServerResponseTime.set(clock.nanoTime()); + } + channelReconnectBackoffMillis.set(INITIAL_CHANNEL_RECONNECT_BACKOFF.toMillis()); boolean exactlyOnceDeliveryEnabledResponse = @@ -295,11 +322,19 @@ public void onResponse(StreamingPullResponse response) { @Override public void onError(Throwable t) { + if (enableKeepalive) { + stopClientPinger(); + stopServerMonitor(); + } errorFuture.setException(t); } @Override public void onComplete() { + if (enableKeepalive) { + stopClientPinger(); + stopServerMonitor(); + } logger.fine("Streaming pull terminated successfully!"); errorFuture.set(null); } @@ -336,6 +371,7 @@ private void initialize() { this.useLegacyFlowControl ? 0 : valueOrZero(flowControlSettings.getMaxOutstandingRequestBytes())) + .setProtocolVersion(protocolVersion) .build()); /** @@ -350,6 +386,13 @@ private void initialize() { lock.unlock(); } + if (enableKeepalive) { + lastServerResponseTime.set(clock.nanoTime()); + lastClientPingTime.set(-1L); + startClientPinger(); + startServerMonitor(); + } + ApiFutures.addCallback( errorFuture, new ApiFutureCallback() { @@ -366,6 +409,10 @@ public void onSuccess(@Nullable Void result) { @Override public void onFailure(Throwable cause) { + if (enableKeepalive) { + stopClientPinger(); + stopServerMonitor(); + } if (!isAlive()) { // we don't care about subscription failures when we're no longer running. logger.log(Level.FINE, "pull failure after service no longer running", cause); @@ -410,6 +457,100 @@ private boolean isAlive() { return state == State.RUNNING || state == State.STARTING; } + private void startClientPinger() { + if (pingSchedulerHandle != null) { + pingSchedulerHandle.cancel(false); + } + + pingSchedulerHandle = + systemExecutor.scheduleAtFixedRate( + () -> { + try { + lock.lock(); + try { + if (clientStream != null && isAlive()) { + clientStream.send(StreamingPullRequest.newBuilder().build()); + lastClientPingTime.set(clock.nanoTime()); + logger.log(Level.FINEST, "Sent client keepalive ping"); + } + } finally { + lock.unlock(); + } + } catch (Exception e) { + logger.log(Level.FINE, "Error sending client keepalive ping", e); + } + }, + 0, + CLIENT_PING_INTERVAL.getSeconds(), + TimeUnit.SECONDS); + } + + private void stopClientPinger() { + if (pingSchedulerHandle != null) { + pingSchedulerHandle.cancel(false); + pingSchedulerHandle = null; + } + } + + private void startServerMonitor() { + if (serverMonitorHandle != null) { + serverMonitorHandle.cancel(false); + } + + serverMonitorHandle = + systemExecutor.scheduleAtFixedRate( + () -> { + try { + if (!isAlive()) { + return; + } + + long now = clock.nanoTime(); + long lastResponse = lastServerResponseTime.get(); + long lastPing = lastClientPingTime.get(); + + if (lastPing <= lastResponse) { + return; + } + + Duration elapsedSincePing = Duration.ofNanos(now - lastPing); + if (elapsedSincePing.compareTo(SERVER_PING_TIMEOUT_DURATION) < 0) { + return; + } + + logger.log( + Level.WARNING, + "No response from server for {0} seconds since last ping. Closing stream.", + elapsedSincePing.getSeconds()); + + lock.lock(); + try { + if (clientStream != null) { + clientStream.closeSendWithError( + Status.UNAVAILABLE + .withDescription("Keepalive timeout with server") + .asException()); + } + } finally { + lock.unlock(); + } + stopServerMonitor(); + } catch (Exception e) { + logger.log(Level.FINE, "Error in server keepalive monitor", e); + } + }, + SERVER_MONITOR_INTERVAL.getSeconds(), + SERVER_MONITOR_INTERVAL.getSeconds(), + TimeUnit.SECONDS); + } + + private void stopServerMonitor() { + if (serverMonitorHandle != null) { + serverMonitorHandle.cancel(false); + serverMonitorHandle = null; + } + } + public void setResponseOutstandingMessages(AckResponse ackResponse) { // We will close the futures with ackResponse - if there are multiple references to the same // future they will be handled appropriately @@ -769,6 +910,7 @@ public static final class Builder { private Distribution ackLatencyDistribution; private SubscriberStub subscriberStub; private int channelAffinity; + private long protocolVersion; private FlowController flowController; private FlowControlSettings flowControlSettings; private boolean useLegacyFlowControl; @@ -840,6 +982,11 @@ public Builder setChannelAffinity(int channelAffinity) { return this; } + public Builder setProtocolVersion(long protocolVersion) { + this.protocolVersion = protocolVersion; + return this; + } + public Builder setFlowController(FlowController flowController) { this.flowController = flowController; return this; diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index c0779ff29de0..ce9bc6f15f7b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -144,6 +144,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final boolean maxDurationPerAckExtensionDefaultUsed; private final java.time.Duration minDurationPerAckExtension; private final boolean minDurationPerAckExtensionDefaultUsed; + private final long protocolVersion; // The ExecutorProvider used to generate executors for processing messages. private final ExecutorProvider executorProvider; @@ -182,6 +183,7 @@ private Subscriber(Builder builder) { maxDurationPerAckExtensionDefaultUsed = builder.maxDurationPerAckExtensionDefaultUsed; minDurationPerAckExtension = builder.minDurationPerAckExtension; minDurationPerAckExtensionDefaultUsed = builder.minDurationPerAckExtensionDefaultUsed; + protocolVersion = builder.protocolVersion; clock = builder.clock.isPresent() ? builder.clock.get() : CurrentMillisClock.getDefaultClock(); @@ -428,6 +430,7 @@ private void startStreamingConnections() { .setEnableOpenTelemetryTracing(enableOpenTelemetryTracing) .setTracer(tracer) .setSubscriberShutdownSettings(subscriberShutdownSettings) + .setProtocolVersion(protocolVersion) .build(); streamingSubscriberConnections.add(streamingSubscriberConnection); @@ -548,6 +551,8 @@ public static final class Builder { private boolean enableOpenTelemetryTracing = false; private OpenTelemetry openTelemetry = null; + private long protocolVersion = 0L; + private SubscriberShutdownSettings subscriberShutdownSettings = SubscriberShutdownSettings.newBuilder().build(); @@ -771,6 +776,12 @@ Builder setClock(ApiClock clock) { return this; } + /** Gives the ability to override the protocol version */ + public Builder setProtocolVersion(long protocolVersion) { + this.protocolVersion = protocolVersion; + return this; + } + /** * OpenTelemetry will be enabled if setEnableOpenTelemetry is true and and instance of * OpenTelemetry has been provied. Warning: traces are subject to change. The name and diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java index 65e199e92e94..b17eaddb01cf 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java @@ -55,14 +55,14 @@ public FakeClock getClock() { public ScheduledFuture schedule(Runnable command, long delay, TimeUnit unit) { return schedulePendingCallable( new PendingCallable<>( - Duration.ofMillis(unit.toMillis(delay)), command, PendingCallableType.NORMAL)); + Duration.ofMillis(unit.toMillis(delay)), command, null, PendingCallableType.NORMAL)); } @Override public ScheduledFuture schedule(Callable callable, long delay, TimeUnit unit) { return schedulePendingCallable( new PendingCallable<>( - Duration.ofMillis(unit.toMillis(delay)), callable, PendingCallableType.NORMAL)); + Duration.ofMillis(unit.toMillis(delay)), callable, null, PendingCallableType.NORMAL)); } @Override @@ -72,6 +72,7 @@ public ScheduledFuture scheduleAtFixedRate( new PendingCallable<>( Duration.ofMillis(unit.toMillis(initialDelay)), command, + Duration.ofMillis(unit.toMillis(period)), PendingCallableType.FIXED_RATE)); } @@ -82,6 +83,7 @@ public ScheduledFuture scheduleWithFixedDelay( new PendingCallable<>( Duration.ofMillis(unit.toMillis(initialDelay)), command, + Duration.ofMillis(unit.toMillis(delay)), PendingCallableType.FIXED_DELAY)); } @@ -212,13 +214,15 @@ enum PendingCallableType { class PendingCallable implements Comparable> { Instant creationTime = Instant.ofEpochMilli(clock.millisTime()); Duration delay; + Duration period; Callable pendingCallable; SettableFuture future = SettableFuture.create(); AtomicBoolean cancelled = new AtomicBoolean(false); AtomicBoolean done = new AtomicBoolean(false); PendingCallableType type; - PendingCallable(Duration delay, final Runnable runnable, PendingCallableType type) { + PendingCallable( + Duration delay, final Runnable runnable, Duration period, PendingCallableType type) { pendingCallable = new Callable() { @Override @@ -229,12 +233,15 @@ public T call() { }; this.type = type; this.delay = delay; + this.period = period; } - PendingCallable(Duration delay, Callable callable, PendingCallableType type) { + PendingCallable( + Duration delay, Callable callable, Duration period, PendingCallableType type) { pendingCallable = callable; this.type = type; this.delay = delay; + this.period = period; } private Instant getScheduledTime() { @@ -305,10 +312,12 @@ T call() { break; case FIXED_DELAY: this.creationTime = Instant.ofEpochMilli(clock.millisTime()); + this.delay = period; schedulePendingCallable(this); break; case FIXED_RATE: this.creationTime = this.creationTime.plus(delay); + this.delay = period; schedulePendingCallable(this); break; default: diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index f79825d85355..6979963a5d30 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -28,12 +28,18 @@ import com.google.api.gax.core.Distribution; import com.google.api.gax.grpc.GrpcStatusCode; import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientStream; +import com.google.api.gax.rpc.ResponseObserver; import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StreamController; import com.google.cloud.pubsub.v1.stub.SubscriberStub; import com.google.common.collect.Lists; import com.google.protobuf.Any; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.ModifyAckDeadlineRequest; +import com.google.pubsub.v1.StreamingPullRequest; +import com.google.pubsub.v1.StreamingPullResponse; import com.google.rpc.ErrorInfo; import com.google.rpc.Status; import io.grpc.Status.Code; @@ -44,11 +50,13 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; +import java.util.concurrent.atomic.AtomicInteger; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; +import org.mockito.ArgumentCaptor; /** Tests for {@link StreamingSubscriberConnection}. */ public class StreamingSubscriberConnectionTest { @@ -86,6 +94,10 @@ public class StreamingSubscriberConnectionTest { private static Duration ACK_EXPIRATION_PADDING_DEFAULT_DURATION = Duration.ofSeconds(10); private static int MAX_DURATION_PER_ACK_EXTENSION_DEFAULT_SECONDS = 10; + private static final long KEEP_ALIVE_SUPPORT_VERSION = 1; + private static final Duration CLIENT_PING_INTERVAL = Duration.ofSeconds(30); + private static final Duration MAX_ACK_EXTENSION_PERIOD = Duration.ofMinutes(60); + @Before public void setUp() { systemExecutor = new FakeScheduledExecutorService(); @@ -670,6 +682,155 @@ public void testMaxPerRequestChanges() { } } + @Test + public void testClientPinger_pingSent() { + BidiStreamingCallable mockStreamingCallable = + mock(BidiStreamingCallable.class); + ClientStream mockClientStream = mock(ClientStream.class); + when(mockSubscriberStub.streamingPullCallable()).thenReturn(mockStreamingCallable); + when(mockStreamingCallable.splitCall(any(ResponseObserver.class), any())) + .thenReturn(mockClientStream); + + StreamingSubscriberConnection streamingSubscriberConnection = + getKeepaliveStreamingSubscriberConnection(); + + streamingSubscriberConnection.startAsync(); + streamingSubscriberConnection.awaitRunning(); + + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + + ArgumentCaptor requestCaptor = + ArgumentCaptor.forClass(StreamingPullRequest.class); + // 1 initial request + 3 pings + verify(mockClientStream, times(4)).send(requestCaptor.capture()); + List requests = requestCaptor.getAllValues(); + + StreamingPullRequest initialRequest = requests.get(0); + assertEquals(MOCK_SUBSCRIPTION_NAME, initialRequest.getSubscription()); + assertEquals(KEEP_ALIVE_SUPPORT_VERSION, initialRequest.getProtocolVersion()); + assertEquals(0, initialRequest.getMaxOutstandingMessages()); + + StreamingPullRequest firstPing = requests.get(1); + assertEquals(StreamingPullRequest.getDefaultInstance(), firstPing); + + StreamingPullRequest secondPing = requests.get(2); + assertEquals(StreamingPullRequest.getDefaultInstance(), secondPing); + + streamingSubscriberConnection.stopAsync(); + streamingSubscriberConnection.awaitTerminated(); + + // No more pings + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + verify(mockClientStream, times(4)).send(any(StreamingPullRequest.class)); + } + + @Test + public void testClientPinger_pingsNotSentWhenDisabled() { + BidiStreamingCallable mockStreamingCallable = + mock(BidiStreamingCallable.class); + ClientStream mockClientStream = mock(ClientStream.class); + when(mockSubscriberStub.streamingPullCallable()).thenReturn(mockStreamingCallable); + when(mockStreamingCallable.splitCall(any(ResponseObserver.class), any())) + .thenReturn(mockClientStream); + + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnection(false); // keepalive disabled + + streamingSubscriberConnection.startAsync(); + streamingSubscriberConnection.awaitRunning(); + + // Initial request. + verify(mockClientStream, times(1)).send(any(StreamingPullRequest.class)); + + // No pings + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + + verify(mockClientStream, times(1)).send(any(StreamingPullRequest.class)); + } + + @Test + public void testServerMonitor_timesOut() { + BidiStreamingCallable mockStreamingCallable = + mock(BidiStreamingCallable.class); + ClientStream mockClientStream = mock(ClientStream.class); + ArgumentCaptor> observerCaptor = + ArgumentCaptor.forClass(ResponseObserver.class); + when(mockSubscriberStub.streamingPullCallable()).thenReturn(mockStreamingCallable); + when(mockStreamingCallable.splitCall(observerCaptor.capture(), any())) + .thenReturn(mockClientStream); + + // fail pings after the first one to ensure timeout occurs + AtomicInteger pingCount = new AtomicInteger(0); + doAnswer( + (invocation) -> { + StreamingPullRequest req = invocation.getArgument(0); + // Pings are empty requests + if (req.getSubscription().isEmpty()) { + if (pingCount.incrementAndGet() > 2) { // allow first 2 pings + throw new RuntimeException("ping failed"); + } + } + return null; + }) + .when(mockClientStream) + .send(any(StreamingPullRequest.class)); + + StreamingSubscriberConnection streamingSubscriberConnection = + getKeepaliveStreamingSubscriberConnection(); + + streamingSubscriberConnection.startAsync(); + streamingSubscriberConnection.awaitRunning(); + + ResponseObserver observer = observerCaptor.getValue(); + StreamController mockController = mock(StreamController.class); + observer.onStart(mockController); + + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + verify(mockClientStream, never()).closeSendWithError(any(Exception.class)); + + systemExecutor.advanceTime(CLIENT_PING_INTERVAL); + ArgumentCaptor exceptionCaptor = ArgumentCaptor.forClass(Exception.class); + verify(mockClientStream, times(1)).closeSendWithError(exceptionCaptor.capture()); + StatusException exception = (StatusException) exceptionCaptor.getValue(); + assertEquals(Code.UNAVAILABLE, exception.getStatus().getCode()); + assertEquals("Keepalive timeout with server", exception.getStatus().getDescription()); + } + + @Test + public void testServerMonitor_doesNotTimeOutIfResponseReceived() { + BidiStreamingCallable mockStreamingCallable = + mock(BidiStreamingCallable.class); + ClientStream mockClientStream = mock(ClientStream.class); + ArgumentCaptor> observerCaptor = + ArgumentCaptor.forClass(ResponseObserver.class); + when(mockSubscriberStub.streamingPullCallable()).thenReturn(mockStreamingCallable); + when(mockStreamingCallable.splitCall(observerCaptor.capture(), any())) + .thenReturn(mockClientStream); + + StreamingSubscriberConnection streamingSubscriberConnection = + getKeepaliveStreamingSubscriberConnection(); + + streamingSubscriberConnection.startAsync(); + streamingSubscriberConnection.awaitRunning(); + + ResponseObserver observer = observerCaptor.getValue(); + StreamController mockController = mock(StreamController.class); + observer.onStart(mockController); + + // t=30s: ping sent. + // t=40s: response received. + // t=45s: monitor check. lastPing=30, lastResponse=40. lastPing>lastResponse is false -> no + // timeout. + systemExecutor.advanceTime(Duration.ofSeconds(40)); + observer.onResponse(StreamingPullResponse.getDefaultInstance()); + systemExecutor.advanceTime(Duration.ofSeconds(20)); // to t=60s + observer.onResponse(StreamingPullResponse.getDefaultInstance()); + + verify(mockClientStream, never()).closeSendWithError(any(Exception.class)); + } + private StreamingSubscriberConnection getStreamingSubscriberConnection( boolean exactlyOnceDeliveryEnabled) { StreamingSubscriberConnection streamingSubscriberConnection = @@ -682,11 +843,21 @@ private StreamingSubscriberConnection getStreamingSubscriberConnection( return streamingSubscriberConnection; } + private StreamingSubscriberConnection getKeepaliveStreamingSubscriberConnection() { + StreamingSubscriberConnection streamingSubscriberConnection = + getStreamingSubscriberConnectionFromBuilder( + StreamingSubscriberConnection.newBuilder(mock(MessageReceiverWithAckResponse.class)) + .setProtocolVersion(KEEP_ALIVE_SUPPORT_VERSION)); + + return streamingSubscriberConnection; + } + private StreamingSubscriberConnection getStreamingSubscriberConnectionFromBuilder( StreamingSubscriberConnection.Builder builder) { return builder .setSubscription(MOCK_SUBSCRIPTION_NAME) .setAckExpirationPadding(ACK_EXPIRATION_PADDING_DEFAULT_DURATION) + .setMaxAckExtensionPeriod(MAX_ACK_EXTENSION_PERIOD) .setAckLatencyDistribution(mock(Distribution.class)) .setSubscriberStub(mockSubscriberStub) .setChannelAffinity(0) From 0e71e4f436cdcc4eaa65a5e513d5d4ac39e79080 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 4 Dec 2025 14:45:48 -0500 Subject: [PATCH 2290/2363] chore: Update generation configuration at Thu Dec 4 02:36:21 UTC 2025 (#2616) --- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- java-pubsub/README.md | 4 ++-- java-pubsub/generation_config.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index 59e39834dd05..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/README.md b/java-pubsub/README.md index b0672bc0007f..a503ceea7f45 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.143.0 + 1.143.1 ``` @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.71.0') +implementation platform('com.google.cloud:libraries-bom:26.72.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 744688ac17c2..5963f47a7889 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.64.1 -googleapis_commitish: 5342712986262b93211b136eb4bd6fb79b3764af -libraries_bom_version: 26.71.0 +googleapis_commitish: 4667f02b64f2259ef21249b026ced7bb4351c632 +libraries_bom_version: 26.72.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From f11b3d4f09bd0cd5c7f73967b10e4cd22429e4ab Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Fri, 5 Dec 2025 11:35:23 -0500 Subject: [PATCH 2291/2363] chore: add release-please config for protobuf-4.x (#2620) * chore: add release-please config for protobuf-4.x * chore: generate libraries at Wed Dec 3 19:03:35 UTC 2025 * Change release type from java-backport to java-yoshi * Refactor release-please.yml to remove redundancy Removed duplicate bumpMinorPreMajor setting for java-yoshi. --------- Co-authored-by: cloud-java-bot --- java-pubsub/.github/release-please.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index c71b9317fbd5..f4a05d1b9043 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -50,3 +50,7 @@ branches: handleGHRelease: true releaseType: java-backport branch: 1.140.x + - handleGHRelease: true + releaseType: java-yoshi + branch: protobuf-4.x-rc + manifest: true From 85f06151202ffe298fc4b3533368be341e0a9507 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Fri, 5 Dec 2025 12:23:27 -0500 Subject: [PATCH 2292/2363] feat: Make v1 the default protocolVersion (#2623) --- .../java/com/google/cloud/pubsub/v1/Subscriber.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index ce9bc6f15f7b..a2d4f3b38589 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -144,7 +144,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final boolean maxDurationPerAckExtensionDefaultUsed; private final java.time.Duration minDurationPerAckExtension; private final boolean minDurationPerAckExtensionDefaultUsed; - private final long protocolVersion; + private final long protocolVersion = 1L; // The ExecutorProvider used to generate executors for processing messages. private final ExecutorProvider executorProvider; @@ -183,7 +183,6 @@ private Subscriber(Builder builder) { maxDurationPerAckExtensionDefaultUsed = builder.maxDurationPerAckExtensionDefaultUsed; minDurationPerAckExtension = builder.minDurationPerAckExtension; minDurationPerAckExtensionDefaultUsed = builder.minDurationPerAckExtensionDefaultUsed; - protocolVersion = builder.protocolVersion; clock = builder.clock.isPresent() ? builder.clock.get() : CurrentMillisClock.getDefaultClock(); @@ -551,8 +550,6 @@ public static final class Builder { private boolean enableOpenTelemetryTracing = false; private OpenTelemetry openTelemetry = null; - private long protocolVersion = 0L; - private SubscriberShutdownSettings subscriberShutdownSettings = SubscriberShutdownSettings.newBuilder().build(); @@ -776,12 +773,6 @@ Builder setClock(ApiClock clock) { return this; } - /** Gives the ability to override the protocol version */ - public Builder setProtocolVersion(long protocolVersion) { - this.protocolVersion = protocolVersion; - return this; - } - /** * OpenTelemetry will be enabled if setEnableOpenTelemetry is true and and instance of * OpenTelemetry has been provied. Warning: traces are subject to change. The name and From 65bef7001c05165cc42e47b59f758571a6195a7a Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 17:00:54 +0000 Subject: [PATCH 2293/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.56.0 (#2617) Co-authored-by: Mike Prieto --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ed71217f50c0..ff444f0cc084 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.55.3 + 2.56.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index addbfc8a2454..0f4bfe7cb93f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.55.3 + 2.56.0 com.google.cloud From 56ba7ba6217060e652c5e230cb36b8fac4574fa6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 17:01:26 +0000 Subject: [PATCH 2294/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.72.0 (#2618) Co-authored-by: Mike Prieto --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 6441845bd176..3dd1de9942ab 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import From 629e63f3cf95ba22262024115de6c91ce1d19ddc Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 11 Dec 2025 12:01:58 -0500 Subject: [PATCH 2295/2363] chore: Update generation configuration at Thu Dec 11 02:39:02 UTC 2025 (#2621) * chore: Update generation configuration at Fri Dec 5 02:36:42 UTC 2025 * chore: Update generation configuration at Sat Dec 6 02:34:10 UTC 2025 * chore: generate libraries at Sat Dec 6 02:34:39 UTC 2025 * chore: Update generation configuration at Tue Dec 9 02:36:52 UTC 2025 * chore: Update generation configuration at Wed Dec 10 02:37:35 UTC 2025 * chore: Update generation configuration at Thu Dec 11 02:39:02 UTC 2025 * chore: generate libraries at Thu Dec 11 02:39:32 UTC 2025 --- .../hermetic_library_generation.yaml | 2 +- .../.kokoro/presubmit/graalvm-native-a.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-b.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/generation_config.yaml | 4 +- .../pubsub/v1/SubscriptionAdminClient.java | 76 ++-- .../cloud/pubsub/v1/TopicAdminClient.java | 24 +- .../pubsub/v1/CreateSnapshotRequest.java | 70 ++-- .../v1/CreateSnapshotRequestOrBuilder.java | 20 +- .../pubsub/v1/DeleteSnapshotRequest.java | 28 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 8 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 28 +- .../DeleteSubscriptionRequestOrBuilder.java | 8 +- .../google/pubsub/v1/DeleteTopicRequest.java | 28 +- .../v1/DeleteTopicRequestOrBuilder.java | 8 +- .../google/pubsub/v1/GetSnapshotRequest.java | 28 +- .../v1/GetSnapshotRequestOrBuilder.java | 8 +- .../pubsub/v1/GetSubscriptionRequest.java | 28 +- .../v1/GetSubscriptionRequestOrBuilder.java | 8 +- .../com/google/pubsub/v1/GetTopicRequest.java | 28 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 8 +- .../pubsub/v1/ListSnapshotsRequest.java | 28 +- .../v1/ListSnapshotsRequestOrBuilder.java | 8 +- .../pubsub/v1/ListSubscriptionsRequest.java | 42 +-- .../v1/ListSubscriptionsRequestOrBuilder.java | 12 +- .../google/pubsub/v1/ListTopicsRequest.java | 28 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 8 +- .../com/google/pubsub/v1/PublishRequest.java | 42 +-- .../pubsub/v1/PublishRequestOrBuilder.java | 12 +- .../com/google/pubsub/v1/PubsubProto.java | 349 +++++++++--------- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 42 ++- .../pubsub/v1/SubscriptionOrBuilder.java | 12 +- .../main/java/com/google/pubsub/v1/Topic.java | 42 ++- .../com/google/pubsub/v1/TopicOrBuilder.java | 12 +- .../main/proto/google/pubsub/v1/pubsub.proto | 57 ++- 37 files changed, 590 insertions(+), 532 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index f61e4eb85240..818024030c58 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.2 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index b772eac66cd8..406018c48a5f 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index baf136cf8233..60c82d4bf4fc 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 2fb2fc87c418..60982adf5a35 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.2" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 5963f47a7889..9e1744dd297e 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.64.1 -googleapis_commitish: 4667f02b64f2259ef21249b026ced7bb4351c632 +gapic_generator_version: 2.64.2 +googleapis_commitish: b32495a713a68dd0dff90cf0b24021debfca048a libraries_bom_version: 26.72.0 libraries: - api_shortname: pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index f22e3ec16e40..828bbea14835 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -588,7 +588,7 @@ public SubscriberStub getStub() { * } * } * - * @param name Required. The name of the subscription. It must have the format + * @param name Required. Identifier. 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 @@ -658,7 +658,7 @@ public final Subscription createSubscription( * } * } * - * @param name Required. The name of the subscription. It must have the format + * @param name Required. Identifier. 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 @@ -728,7 +728,7 @@ public final Subscription createSubscription( * } * } * - * @param name Required. The name of the subscription. It must have the format + * @param name Required. Identifier. 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 @@ -798,7 +798,7 @@ public final Subscription createSubscription( * } * } * - * @param name Required. The name of the subscription. It must have the format + * @param name Required. Identifier. 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 @@ -1179,7 +1179,7 @@ public final UnaryCallable createSubscriptionCallabl * } * } * - * @param subscription Required. The name of the subscription to get. Format is + * @param subscription Required. Identifier. The name of the subscription to get. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1209,7 +1209,7 @@ public final Subscription getSubscription(SubscriptionName subscription) { * } * } * - * @param subscription Required. The name of the subscription to get. Format is + * @param subscription Required. Identifier. The name of the subscription to get. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1416,8 +1416,8 @@ public final UnaryCallable updateSubscr * } * } * - * @param project Required. The name of the project in which to list subscriptions. Format is - * `projects/{project-id}`. + * @param project Required. Identifier. The name of the project in which to list subscriptions. + * Format is `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName project) { @@ -1448,8 +1448,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec * } * } * - * @param project Required. The name of the project in which to list subscriptions. Format is - * `projects/{project-id}`. + * @param project Required. Identifier. The name of the project in which to list subscriptions. + * Format is `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubscriptionsPagedResponse listSubscriptions(String project) { @@ -1584,7 +1584,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * } * } * - * @param subscription Required. The subscription to delete. Format is + * @param subscription Required. Identifier. The subscription to delete. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1617,7 +1617,7 @@ public final void deleteSubscription(SubscriptionName subscription) { * } * } * - * @param subscription Required. The subscription to delete. Format is + * @param subscription Required. Identifier. The subscription to delete. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2631,7 +2631,7 @@ public final UnaryCallable modifyPushConfigCalla * } * } * - * @param snapshot Required. The name of the snapshot to get. Format is + * @param snapshot Required. Identifier. The name of the snapshot to get. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2664,7 +2664,7 @@ public final Snapshot getSnapshot(SnapshotName snapshot) { * } * } * - * @param snapshot Required. The name of the snapshot to get. Format is + * @param snapshot Required. Identifier. The name of the snapshot to get. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2788,8 +2788,8 @@ public final UnaryCallable getSnapshotCallable() { * } * } * - * @param project Required. The name of the project in which to list snapshots. Format is - * `projects/{project-id}`. + * @param project Required. Identifier. The name of the project in which to list snapshots. Format + * is `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { @@ -2823,8 +2823,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { * } * } * - * @param project Required. The name of the project in which to list snapshots. Format is - * `projects/{project-id}`. + * @param project Required. Identifier. The name of the project in which to list snapshots. Format + * is `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSnapshotsPagedResponse listSnapshots(String project) { @@ -2975,10 +2975,11 @@ public final UnaryCallable listSnap * } * } * - * @param name 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3028,10 +3029,11 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri * } * } * - * @param name 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3081,10 +3083,11 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) { * } * } * - * @param name 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3134,10 +3137,11 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription) * } * } * - * @param name 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3510,7 +3514,7 @@ public final UnaryCallable updateSnapshotCallab * } * } * - * @param snapshot Required. The name of the snapshot to delete. Format is + * @param snapshot Required. Identifier. The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -3546,7 +3550,7 @@ public final void deleteSnapshot(SnapshotName snapshot) { * } * } * - * @param snapshot Required. The name of the snapshot to delete. Format is + * @param snapshot Required. Identifier. The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index 750f4da49210..d5433f8eedb9 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -420,7 +420,7 @@ public PublisherStub getStub() { * } * } * - * @param name Required. The name of the topic. It must have the format + * @param name Required. Identifier. 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 @@ -451,7 +451,7 @@ public final Topic createTopic(TopicName name) { * } * } * - * @param name Required. The name of the topic. It must have the format + * @param name Required. Identifier. 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 @@ -682,8 +682,8 @@ public final UnaryCallable updateTopicCallable() { * } * } * - * @param topic Required. The messages in the request will be published on this topic. Format is - * `projects/{project}/topics/{topic}`. + * @param topic Required. Identifier. The messages in the request will be published on this topic. + * Format is `projects/{project}/topics/{topic}`. * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -715,8 +715,8 @@ public final PublishResponse publish(TopicName topic, List messag * } * } * - * @param topic Required. The messages in the request will be published on this topic. Format is - * `projects/{project}/topics/{topic}`. + * @param topic Required. Identifier. The messages in the request will be published on this topic. + * Format is `projects/{project}/topics/{topic}`. * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -801,7 +801,7 @@ public final UnaryCallable publishCallable() { * } * } * - * @param topic Required. The name of the topic to get. Format is + * @param topic Required. Identifier. The name of the topic to get. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -829,7 +829,7 @@ public final Topic getTopic(TopicName topic) { * } * } * - * @param topic Required. The name of the topic to get. Format is + * @param topic Required. Identifier. The name of the topic to get. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -938,7 +938,7 @@ public final UnaryCallable getTopicCallable() { * } * } * - * @param project Required. The name of the project in which to list topics. Format is + * @param project Required. Identifier. The name of the project in which to list topics. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -970,7 +970,7 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) { * } * } * - * @param project Required. The name of the project in which to list topics. Format is + * @param project Required. Identifier. The name of the project in which to list topics. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1481,7 +1481,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * } * } * - * @param topic Required. Name of the topic to delete. Format is + * @param topic Required. Identifier. Name of the topic to delete. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1512,7 +1512,7 @@ public final void deleteTopic(TopicName topic) { * } * } * - * @param topic Required. Name of the topic to delete. Format is + * @param topic Required. Identifier. Name of the topic to delete. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index e5d4f651c61e..b8c5201cdbae 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -88,16 +88,16 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
      -   * 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
      +   * Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -119,16 +119,16 @@ public java.lang.String getName() { * * *
      -   * 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
      +   * Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -924,16 +924,16 @@ public Builder mergeFrom( * * *
      -     * 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
      +     * Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -954,16 +954,16 @@ public java.lang.String getName() { * * *
      -     * 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
      +     * Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -984,16 +984,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * 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
      +     * Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1013,16 +1013,16 @@ public Builder setName(java.lang.String value) { * * *
      -     * 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
      +     * Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1038,16 +1038,16 @@ public Builder clearName() { * * *
      -     * 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
      +     * Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 80a1f76fc201..0c18c014a8ff 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -28,16 +28,16 @@ public interface CreateSnapshotRequestOrBuilder * * *
      -   * 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
      +   * Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -48,16 +48,16 @@ public interface CreateSnapshotRequestOrBuilder * * *
      -   * 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
      +   * Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index bc2fc7206db8..47083fed1135 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The name of the snapshot to delete.
      +   * Required. Identifier. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -100,12 +100,12 @@ public java.lang.String getSnapshot() { * * *
      -   * Required. The name of the snapshot to delete.
      +   * Required. Identifier. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -471,12 +471,12 @@ public Builder mergeFrom( * * *
      -     * Required. The name of the snapshot to delete.
      +     * Required. Identifier. The name of the snapshot to delete.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -497,12 +497,12 @@ public java.lang.String getSnapshot() { * * *
      -     * Required. The name of the snapshot to delete.
      +     * Required. Identifier. The name of the snapshot to delete.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -523,12 +523,12 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * *
      -     * Required. The name of the snapshot to delete.
      +     * Required. Identifier. The name of the snapshot to delete.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The snapshot to set. @@ -548,12 +548,12 @@ public Builder setSnapshot(java.lang.String value) { * * *
      -     * Required. The name of the snapshot to delete.
      +     * Required. Identifier. The name of the snapshot to delete.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -569,12 +569,12 @@ public Builder clearSnapshot() { * * *
      -     * Required. The name of the snapshot to delete.
      +     * Required. Identifier. The name of the snapshot to delete.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for snapshot to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 192a33e82bf5..5a4dd6337872 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface DeleteSnapshotRequestOrBuilder * * *
      -   * Required. The name of the snapshot to delete.
      +   * Required. Identifier. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -44,12 +44,12 @@ public interface DeleteSnapshotRequestOrBuilder * * *
      -   * Required. The name of the snapshot to delete.
      +   * Required. Identifier. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 80800c659a2e..961fdf8a6a94 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The subscription to delete.
      +   * Required. Identifier. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -100,12 +100,12 @@ public java.lang.String getSubscription() { * * *
      -   * Required. The subscription to delete.
      +   * Required. Identifier. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -471,12 +471,12 @@ public Builder mergeFrom( * * *
      -     * Required. The subscription to delete.
      +     * Required. Identifier. The subscription to delete.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -497,12 +497,12 @@ public java.lang.String getSubscription() { * * *
      -     * Required. The subscription to delete.
      +     * Required. Identifier. The subscription to delete.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -523,12 +523,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
      -     * Required. The subscription to delete.
      +     * Required. Identifier. The subscription to delete.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The subscription to set. @@ -548,12 +548,12 @@ public Builder setSubscription(java.lang.String value) { * * *
      -     * Required. The subscription to delete.
      +     * Required. Identifier. The subscription to delete.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -569,12 +569,12 @@ public Builder clearSubscription() { * * *
      -     * Required. The subscription to delete.
      +     * Required. Identifier. The subscription to delete.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for subscription to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 2eb5138ee1c6..5ab0407d255e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface DeleteSubscriptionRequestOrBuilder * * *
      -   * Required. The subscription to delete.
      +   * Required. Identifier. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -44,12 +44,12 @@ public interface DeleteSubscriptionRequestOrBuilder * * *
      -   * Required. The subscription to delete.
      +   * Required. Identifier. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index fafde03a2861..7171ad93c764 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Name of the topic to delete.
      +   * Required. Identifier. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -100,12 +100,12 @@ public java.lang.String getTopic() { * * *
      -   * Required. Name of the topic to delete.
      +   * Required. Identifier. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -470,12 +470,12 @@ public Builder mergeFrom( * * *
      -     * Required. Name of the topic to delete.
      +     * Required. Identifier. Name of the topic to delete.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -496,12 +496,12 @@ public java.lang.String getTopic() { * * *
      -     * Required. Name of the topic to delete.
      +     * Required. Identifier. Name of the topic to delete.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -522,12 +522,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
      -     * Required. Name of the topic to delete.
      +     * Required. Identifier. Name of the topic to delete.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The topic to set. @@ -547,12 +547,12 @@ public Builder setTopic(java.lang.String value) { * * *
      -     * Required. Name of the topic to delete.
      +     * Required. Identifier. Name of the topic to delete.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -568,12 +568,12 @@ public Builder clearTopic() { * * *
      -     * Required. Name of the topic to delete.
      +     * Required. Identifier. Name of the topic to delete.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for topic to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 065d4a790873..a13a646fd8c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface DeleteTopicRequestOrBuilder * * *
      -   * Required. Name of the topic to delete.
      +   * Required. Identifier. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -44,12 +44,12 @@ public interface DeleteTopicRequestOrBuilder * * *
      -   * Required. Name of the topic to delete.
      +   * Required. Identifier. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 401c8cd4c616..716559f8b1fc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The name of the snapshot to get.
      +   * Required. Identifier. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -100,12 +100,12 @@ public java.lang.String getSnapshot() { * * *
      -   * Required. The name of the snapshot to get.
      +   * Required. Identifier. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -470,12 +470,12 @@ public Builder mergeFrom( * * *
      -     * Required. The name of the snapshot to get.
      +     * Required. Identifier. The name of the snapshot to get.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -496,12 +496,12 @@ public java.lang.String getSnapshot() { * * *
      -     * Required. The name of the snapshot to get.
      +     * Required. Identifier. The name of the snapshot to get.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -522,12 +522,12 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * *
      -     * Required. The name of the snapshot to get.
      +     * Required. Identifier. The name of the snapshot to get.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The snapshot to set. @@ -547,12 +547,12 @@ public Builder setSnapshot(java.lang.String value) { * * *
      -     * Required. The name of the snapshot to get.
      +     * Required. Identifier. The name of the snapshot to get.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -568,12 +568,12 @@ public Builder clearSnapshot() { * * *
      -     * Required. The name of the snapshot to get.
      +     * Required. Identifier. The name of the snapshot to get.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for snapshot to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index a4728d85ad6f..343c6867cfd4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface GetSnapshotRequestOrBuilder * * *
      -   * Required. The name of the snapshot to get.
      +   * Required. Identifier. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -44,12 +44,12 @@ public interface GetSnapshotRequestOrBuilder * * *
      -   * Required. The name of the snapshot to get.
      +   * Required. Identifier. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 0553b1f91f29..7b7e00da8313 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The name of the subscription to get.
      +   * Required. Identifier. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -100,12 +100,12 @@ public java.lang.String getSubscription() { * * *
      -   * Required. The name of the subscription to get.
      +   * Required. Identifier. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -471,12 +471,12 @@ public Builder mergeFrom( * * *
      -     * Required. The name of the subscription to get.
      +     * Required. Identifier. The name of the subscription to get.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -497,12 +497,12 @@ public java.lang.String getSubscription() { * * *
      -     * Required. The name of the subscription to get.
      +     * Required. Identifier. The name of the subscription to get.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -523,12 +523,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
      -     * Required. The name of the subscription to get.
      +     * Required. Identifier. The name of the subscription to get.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The subscription to set. @@ -548,12 +548,12 @@ public Builder setSubscription(java.lang.String value) { * * *
      -     * Required. The name of the subscription to get.
      +     * Required. Identifier. The name of the subscription to get.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -569,12 +569,12 @@ public Builder clearSubscription() { * * *
      -     * Required. The name of the subscription to get.
      +     * Required. Identifier. The name of the subscription to get.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for subscription to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index c51df2737cb4..4513defa85be 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface GetSubscriptionRequestOrBuilder * * *
      -   * Required. The name of the subscription to get.
      +   * Required. Identifier. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -44,12 +44,12 @@ public interface GetSubscriptionRequestOrBuilder * * *
      -   * Required. The name of the subscription to get.
      +   * Required. Identifier. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index e8e01add6e8e..7d1490c14abe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The name of the topic to get.
      +   * Required. Identifier. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -100,12 +100,12 @@ public java.lang.String getTopic() { * * *
      -   * Required. The name of the topic to get.
      +   * Required. Identifier. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -468,12 +468,12 @@ public Builder mergeFrom( * * *
      -     * Required. The name of the topic to get.
      +     * Required. Identifier. The name of the topic to get.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -494,12 +494,12 @@ public java.lang.String getTopic() { * * *
      -     * Required. The name of the topic to get.
      +     * Required. Identifier. The name of the topic to get.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -520,12 +520,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
      -     * Required. The name of the topic to get.
      +     * Required. Identifier. The name of the topic to get.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The topic to set. @@ -545,12 +545,12 @@ public Builder setTopic(java.lang.String value) { * * *
      -     * Required. The name of the topic to get.
      +     * Required. Identifier. The name of the topic to get.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -566,12 +566,12 @@ public Builder clearTopic() { * * *
      -     * Required. The name of the topic to get.
      +     * Required. Identifier. The name of the topic to get.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for topic to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index e22bc60e3f41..5b6281637417 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface GetTopicRequestOrBuilder * * *
      -   * Required. The name of the topic to get.
      +   * Required. Identifier. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -44,12 +44,12 @@ public interface GetTopicRequestOrBuilder * * *
      -   * Required. The name of the topic to get.
      +   * Required. Identifier. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 73672588ef48..869e380db214 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The name of the project in which to list snapshots.
      +   * Required. Identifier. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -101,12 +101,12 @@ public java.lang.String getProject() { * * *
      -   * Required. The name of the project in which to list snapshots.
      +   * Required. Identifier. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -594,12 +594,12 @@ public Builder mergeFrom( * * *
      -     * Required. The name of the project in which to list snapshots.
      +     * Required. Identifier. The name of the project in which to list snapshots.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -620,12 +620,12 @@ public java.lang.String getProject() { * * *
      -     * Required. The name of the project in which to list snapshots.
      +     * Required. Identifier. The name of the project in which to list snapshots.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -646,12 +646,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
      -     * Required. The name of the project in which to list snapshots.
      +     * Required. Identifier. The name of the project in which to list snapshots.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The project to set. @@ -671,12 +671,12 @@ public Builder setProject(java.lang.String value) { * * *
      -     * Required. The name of the project in which to list snapshots.
      +     * Required. Identifier. The name of the project in which to list snapshots.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -692,12 +692,12 @@ public Builder clearProject() { * * *
      -     * Required. The name of the project in which to list snapshots.
      +     * Required. Identifier. The name of the project in which to list snapshots.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for project to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 8fff6c2e5e06..ee2ba020c303 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface ListSnapshotsRequestOrBuilder * * *
      -   * Required. The name of the project in which to list snapshots.
      +   * Required. Identifier. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -44,12 +44,12 @@ public interface ListSnapshotsRequestOrBuilder * * *
      -   * Required. The name of the project in which to list snapshots.
      +   * Required. Identifier. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 24fe6dae96a4..2a3705cd71ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The name of the project in which to list subscriptions.
      -   * Format is `projects/{project-id}`.
      +   * Required. Identifier. The name of the project in which to list
      +   * subscriptions. Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -101,12 +101,12 @@ public java.lang.String getProject() { * * *
      -   * Required. The name of the project in which to list subscriptions.
      -   * Format is `projects/{project-id}`.
      +   * Required. Identifier. The name of the project in which to list
      +   * subscriptions. Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -594,12 +594,12 @@ public Builder mergeFrom( * * *
      -     * Required. The name of the project in which to list subscriptions.
      -     * Format is `projects/{project-id}`.
      +     * Required. Identifier. The name of the project in which to list
      +     * subscriptions. Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -620,12 +620,12 @@ public java.lang.String getProject() { * * *
      -     * Required. The name of the project in which to list subscriptions.
      -     * Format is `projects/{project-id}`.
      +     * Required. Identifier. The name of the project in which to list
      +     * subscriptions. Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -646,12 +646,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
      -     * Required. The name of the project in which to list subscriptions.
      -     * Format is `projects/{project-id}`.
      +     * Required. Identifier. The name of the project in which to list
      +     * subscriptions. Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The project to set. @@ -671,12 +671,12 @@ public Builder setProject(java.lang.String value) { * * *
      -     * Required. The name of the project in which to list subscriptions.
      -     * Format is `projects/{project-id}`.
      +     * Required. Identifier. The name of the project in which to list
      +     * subscriptions. Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -692,12 +692,12 @@ public Builder clearProject() { * * *
      -     * Required. The name of the project in which to list subscriptions.
      -     * Format is `projects/{project-id}`.
      +     * Required. Identifier. The name of the project in which to list
      +     * subscriptions. Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for project to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index fedfd324d496..d07523d10890 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface ListSubscriptionsRequestOrBuilder * * *
      -   * Required. The name of the project in which to list subscriptions.
      -   * Format is `projects/{project-id}`.
      +   * Required. Identifier. The name of the project in which to list
      +   * subscriptions. Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -44,12 +44,12 @@ public interface ListSubscriptionsRequestOrBuilder * * *
      -   * Required. The name of the project in which to list subscriptions.
      -   * Format is `projects/{project-id}`.
      +   * Required. Identifier. The name of the project in which to list
      +   * subscriptions. Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 99b028c30c4e..873b3f152202 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The name of the project in which to list topics.
      +   * Required. Identifier. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -101,12 +101,12 @@ public java.lang.String getProject() { * * *
      -   * Required. The name of the project in which to list topics.
      +   * Required. Identifier. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -593,12 +593,12 @@ public Builder mergeFrom( * * *
      -     * Required. The name of the project in which to list topics.
      +     * Required. Identifier. The name of the project in which to list topics.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -619,12 +619,12 @@ public java.lang.String getProject() { * * *
      -     * Required. The name of the project in which to list topics.
      +     * Required. Identifier. The name of the project in which to list topics.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -645,12 +645,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
      -     * Required. The name of the project in which to list topics.
      +     * Required. Identifier. The name of the project in which to list topics.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The project to set. @@ -670,12 +670,12 @@ public Builder setProject(java.lang.String value) { * * *
      -     * Required. The name of the project in which to list topics.
      +     * Required. Identifier. The name of the project in which to list topics.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -691,12 +691,12 @@ public Builder clearProject() { * * *
      -     * Required. The name of the project in which to list topics.
      +     * Required. Identifier. The name of the project in which to list topics.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for project to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index b39fe3f1268b..8b134adc0223 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface ListTopicsRequestOrBuilder * * *
      -   * Required. The name of the project in which to list topics.
      +   * Required. Identifier. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -44,12 +44,12 @@ public interface ListTopicsRequestOrBuilder * * *
      -   * Required. The name of the project in which to list topics.
      +   * Required. Identifier. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 9187ab532361..6f9f3ecf58a2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. The messages in the request will be published on this topic.
      -   * Format is `projects/{project}/topics/{topic}`.
      +   * Required. Identifier. The messages in the request will be published on this
      +   * topic. Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -101,12 +101,12 @@ public java.lang.String getTopic() { * * *
      -   * Required. The messages in the request will be published on this topic.
      -   * Format is `projects/{project}/topics/{topic}`.
      +   * Required. Identifier. The messages in the request will be published on this
      +   * topic. Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -626,12 +626,12 @@ public Builder mergeFrom( * * *
      -     * Required. The messages in the request will be published on this topic.
      -     * Format is `projects/{project}/topics/{topic}`.
      +     * Required. Identifier. The messages in the request will be published on this
      +     * topic. Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -652,12 +652,12 @@ public java.lang.String getTopic() { * * *
      -     * Required. The messages in the request will be published on this topic.
      -     * Format is `projects/{project}/topics/{topic}`.
      +     * Required. Identifier. The messages in the request will be published on this
      +     * topic. Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -678,12 +678,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
      -     * Required. The messages in the request will be published on this topic.
      -     * Format is `projects/{project}/topics/{topic}`.
      +     * Required. Identifier. The messages in the request will be published on this
      +     * topic. Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The topic to set. @@ -703,12 +703,12 @@ public Builder setTopic(java.lang.String value) { * * *
      -     * Required. The messages in the request will be published on this topic.
      -     * Format is `projects/{project}/topics/{topic}`.
      +     * Required. Identifier. The messages in the request will be published on this
      +     * topic. Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -724,12 +724,12 @@ public Builder clearTopic() { * * *
      -     * Required. The messages in the request will be published on this topic.
      -     * Format is `projects/{project}/topics/{topic}`.
      +     * Required. Identifier. The messages in the request will be published on this
      +     * topic. Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @param value The bytes for topic to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 1718c594e372..c3d8e7a172c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -28,12 +28,12 @@ public interface PublishRequestOrBuilder * * *
      -   * Required. The messages in the request will be published on this topic.
      -   * Format is `projects/{project}/topics/{topic}`.
      +   * Required. Identifier. The messages in the request will be published on this
      +   * topic. Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -44,12 +44,12 @@ public interface PublishRequestOrBuilder * * *
      -   * Required. The messages in the request will be published on this topic.
      -   * Format is `projects/{project}/topics/{topic}`.
      +   * Required. Identifier. The messages in the request will be published on this
      +   * topic. Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 1b5e7d63401c..fae7dfbc3ce0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -601,12 +601,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" - + "\ttransform\"\235\007\n" - + "\005Topic\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\0228\n" + + "\ttransform\"\240\007\n" + + "\005Topic\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0228\n" + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n" - + "\026message_storage_policy\030\003 \001(\0132&.goo" - + "gle.pubsub.v1.MessageStoragePolicyB\003\340A\001\022?\n" + + "\026message_storage_policy\030\003 \001(\0132&." + + "google.pubsub.v1.MessageStoragePolicyB\003\340A\001\022?\n" + "\014kms_key_name\030\005 \001(\tB)\340A\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022>\n" + "\017schema_settings\030\006 \001(\0132" @@ -631,32 +631,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\034\n" + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" - + "\033pubsub.googleapis.com/Topic\022!projects/{project}/top" - + "ics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "\033pubsub.googleapis.com/Topic\022!projects/{project}/" + + "topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + "PubsubMessage\022\021\n" + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" + "attributes\030\002" - + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n" + + "\n" + "message_id\030\003 \001(\t\0220\n" + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" + "\017AttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"E\n" - + "\017GetTopicRequest\0222\n" - + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\005value\030\002 \001(\t:\0028\001\"H\n" + + "\017GetTopicRequest\0225\n" + + "\005topic\030\001 \001(\tB&\340A\002\340A\010\372A\035\n" + "\033pubsub.googleapis.com/Topic\"w\n" + "\022UpdateTopicRequest\022+\n" + "\005topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"|\n" - + "\016PublishRequest\0222\n" - + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\177\n" + + "\016PublishRequest\0225\n" + + "\005topic\030\001 \001(\tB&\340A\002\340A\010\372A\035\n" + "\033pubsub.googleapis.com/Topic\0226\n" + "\010messages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"+\n" + "\017PublishResponse\022\030\n" - + "\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n" - + "\021ListTopicsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "\013message_ids\030\001 \003(\tB\003\340A\001\"\215\001\n" + + "\021ListTopicsRequest\022G\n" + + "\007project\030\001 \001(\tB6\340A\002\340A\010\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"`\n" @@ -675,36 +676,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListTopicSnapshotsRequest\0222\n" + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + "\032ListTopicSnapshotsResponse\0229\n" + "\tsnapshots\030\001 \003(\tB&\340A\001\372A \n" + "\036pubsub.googleapis.com/Snapshot\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n" - + "\022DeleteTopicRequest\0222\n" - + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"K\n" + + "\022DeleteTopicRequest\0225\n" + + "\005topic\030\001 \001(\tB&\340A\002\340A\010\372A\035\n" + "\033pubsub.googleapis.com/Topic\"]\n" + "\031DetachSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\034\n" - + "\032DetachSubscriptionResponse\"\245\014\n" - + "\014Subscription\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\0222\n" + + "\032DetachSubscriptionResponse\"\250\014\n" + + "\014Subscription\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0222\n" + "\005topic\030\002 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\0226\n" + "\013push_config\030\004" + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + "\017bigquery_config\030\022 \001(\0132" + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n" - + "\024cloud_storage_config\030\026" - + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + + "\024cloud_storage_config\030\026 \001(\0132$.g" + + "oogle.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + "\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n" + "\025retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n" + "\032message_retention_duration\030\010" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?\n" - + "\006labels\030\t" - + " \003(\0132*.google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + + "\006labels\030\t \003(\0132*.goo" + + "gle.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + "\027enable_message_ordering\030\n" + " \001(\010B\003\340A\001\022B\n" + "\021expiration_policy\030\013" @@ -712,15 +712,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\014 \001(\tB\003\340A\001\022C\n" + "\022dead_letter_policy\030\r" + " \001(\0132\".google.pubsub.v1.DeadLetterPolicyB\003\340A\001\0228\n" - + "\014retry_policy\030\016 " - + "\001(\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + + "\014retry_policy\030\016" + + " \001(\0132\035.google.pubsub.v1.RetryPolicyB\003\340A\001\022\025\n" + "\010detached\030\017 \001(\010B\003\340A\001\022)\n" + "\034enable_exactly_once_delivery\030\020 \001(\010B\003\340A\001\022H\n" + " topic_message_retention_duration\030\021" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228\n" + "\005state\030\023 \001(\0162$.google.pubsub.v1.Subscription.StateB\003\340A\003\022i\n" - + "\037analytics_hub_subscription_info\030\027 \001(\0132;" - + ".google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + + "\037analytics_hub_subscription_info\030\027 \001(\0132;.google.pubsub.v1.Subs" + + "cription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + "\022message_transforms\030\031" + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\022A\n" + "\004tags\030\032 \003(\0132(.google.pubsub.v1.Subscription.TagsEntryB" @@ -739,8 +739,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub.googleapis.com/Subscription\022/" - + "projects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub.googleapis." + + "com/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" @@ -754,12 +754,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + "PushConfig\022\032\n\r" + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" - + "attributes\030\002" - + " \003(\0132,.google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "attributes\030\002 \003(\0132,.google" + + ".pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + "oidc_token\030\003" + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" - + "\016pubsub_wrapper\030\004 \001(\0132*.go" - + "ogle.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + + "\016pubsub_wrapper\030\004" + + " \001(\0132*.google.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + "no_wrapper\030\005" + " \001(\0132&.google.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n" + "\tOidcToken\022\"\n" @@ -778,8 +778,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n" + "\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n" - + "\005state\030\005 \001(\0162" - + "&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + + "\005state\030\005" + + " \001(\0162&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n" + "\005State\022\025\n" @@ -795,16 +795,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + "\030filename_datetime_format\030\n" + " \001(\tB\003\340A\001\022K\n" - + "\013text_config\030\004" - + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" - + "\013avro_config\030\005" - + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\013text_config\030\004 \001(\0132/.goo" + + "gle.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005 \001(\0132/.google" + + ".pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + "\014max_duration\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" + "\014max_messages\030\010 \001(\003B\003\340A\001\022>\n" - + "\005state\030\t \001(\0162*.google.p" - + "ubsub.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n" + + "\005state\030\t" + + " \001(\0162*.google.pubsub.v1.CloudStorageConfig.StateB\003\340A\003\022\"\n" + "\025service_account_email\030\013 \001(\tB\003\340A\001\032\014\n\n" + "TextConfig\032H\n\n" + "AvroConfig\022\033\n" @@ -822,26 +822,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ack_id\030\001 \001(\tB\003\340A\001\0225\n" + "\007message\030\002" + " \001(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" - + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" - + "\026GetSubscriptionRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"]\n" + + "\026GetSubscriptionRequest\022C\n" + + "\014subscription\030\001 \001(\tB-\340A\002\340A\010\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\214\001\n" + "\031UpdateSubscriptionRequest\0229\n" + "\014subscription\030\001" + " \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001\n" - + "\030ListSubscriptionsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\224\001\n" + + "\030ListSubscriptionsRequest\022G\n" + + "\007project\030\001 \001(\tB6\340A\002\340A\010\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + "\031ListSubscriptionsResponse\022:\n\r" - + "subscriptions\030\001 \003(" - + "\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n" - + "\031DeleteSubscriptionRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + + "subscriptions\030\001" + + " \003(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"`\n" + + "\031DeleteSubscriptionRequest\022C\n" + + "\014subscription\030\001 \001(\tB-\340A\002\340A\010\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\223\001\n" + "\027ModifyPushConfigRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -878,15 +878,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020protocol_version\030\n" + " \001(\003B\003\340A\001\"\236\006\n" + "\025StreamingPullResponse\022A\n" - + "\021received_messages\030\001" - + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 \001(\0132?.google.pubsub.v1.StreamingP" - + "ullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001" - + "(\0132E.google.pubsub.v1.StreamingPullRespo" - + "nse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google" - + ".pubsub.v1.StreamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\021received_messages\030\001 " + + "\003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" + + "\030acknowledge_confirmation\030\005 \001(\0132?." + + "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.google.p" + + "ubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v1.St" + + "reamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" @@ -898,18 +897,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n" + "\026SubscriptionProperties\022*\n" + "\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" - + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\201\003\n" - + "\025CreateSnapshotRequest\0224\n" - + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\204\003\n" + + "\025CreateSnapshotRequest\0227\n" + + "\004name\030\001 \001(\tB)\340A\002\340A\010\372A \n" + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 \003(\01323.google.pubsub.v1.CreateSnapshot", - "Request.LabelsEntryB\003\340A\001\022J\n" + + "\006labels\030\003 \003(\01323.g", + "oogle.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\022J\n" + "\004tags\030\004 \003(\01321.google.pubsub.v1.CreateSnapshotRequest.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -923,26 +923,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + "\033pubsub.googleapis.com/Topic\0224\n" + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004 \003(\0132&." - + "google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + + "\006labels\030\004" + + " \003(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" - + "\tsnapshots2\010snapshot\"N\n" - + "\022GetSnapshotRequest\0228\n" - + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" - + "\036pubsub.googleapis.com/Snapshot\"\215\001\n" - + "\024ListSnapshotsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + + "\tsnapshots2\010snapshot\"Q\n" + + "\022GetSnapshotRequest\022;\n" + + "\010snapshot\030\001 \001(\tB)\340A\002\340A\010\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\220\001\n" + + "\024ListSnapshotsRequest\022G\n" + + "\007project\030\001 \001(\tB6\340A\002\340A\010\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"i\n" + "\025ListSnapshotsResponse\0222\n" + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n" - + "\025DeleteSnapshotRequest\0228\n" - + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"T\n" + + "\025DeleteSnapshotRequest\022;\n" + + "\010snapshot\030\001 \001(\tB)\340A\002\340A\010\372A \n" + "\036pubsub.googleapis.com/Snapshot\"\306\001\n" + "\013SeekRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -953,97 +953,98 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006target\"\016\n" + "\014SeekResponse2\270\013\n" + "\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.goog" - + "le.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicReque" - + "st\032\027.google.pubsub.v1.Topic\"C\332A\021topic,up" - + "date_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" - + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v" - + "1.PublishResponse\"C\332A\016topic,messages\202\323\344\223" - + "\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" - + "\010GetTopic\022!.google.pubsub.v1.GetTopicRequest\032\027.google.pubsub.v1.Topic\"/" - + "\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" - + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.L" - + "istTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListT" - + "opicSubscriptionsRequest\0320.google.pubsub" - + ".v1.ListTopicSubscriptionsResponse\"=\332A\005t" - + "opic\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" - + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsRe" - + "quest\032,.google.pubsub.v1.ListTopicSnapsh" - + "otsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" - + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicRequ" - + "est\032\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" - + "\022DetachSubscription\022+.google.pubsub.v1.D" - + "etachSubscriptionRequest\032,.google.pubsub" - + ".v1.DetachSubscriptionResponse\"<\202\323\344\223\0026\"4" - + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}:detach\032p\312A\025pubsub.googleapis.com\322A" - + "Uhttps://www.googleapis.com/auth/cloud-p" - + "latform,https://www.googleapis.com/auth/pubsub2\322\025\n\n" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.googl" + + "e.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicReques" + + "t\032\027.google.pubsub.v1.Topic\"C\332A\021topic,upd" + + "ate_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" + + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1" + + ".PublishResponse\"C\332A\016topic,messages\202\323\344\223\002" + + ",\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" + + "\010GetTopic\022!.google.pubsub.v1.Get" + + "TopicRequest\032\027.google.pubsub.v1.Topic\"/\332" + + "A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" + + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.Li" + + "stTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTo" + + "picSubscriptionsRequest\0320.google.pubsub." + + "v1.ListTopicSubscriptionsResponse\"=\332A\005to" + + "pic\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" + + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsReq" + + "uest\032,.google.pubsub.v1.ListTopicSnapsho" + + "tsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" + + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicReque" + + "st\032\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" + + "\022DetachSubscription\022+.google.pubsub.v1.De" + + "tachSubscriptionRequest\032,.google.pubsub." + + "v1.DetachSubscriptionResponse\"<\202\323\344\223\0026\"4/" + + "v1/{subscription=projects/*/subscription" + + "s/*}:detach\032p\312A\025pubsub.googleapis.com\322AU" + + "https://www.googleapis.com/auth/cloud-pl" + + "atform,https://www.googleapis.com/auth/pubsub2\322\025\n\n" + "Subscriber\022\264\001\n" - + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.g" - + "oogle.pubsub.v1.Subscription\"^\332A+name,to" - + "pic,push_config,ack_deadline_seconds\202\323\344\223" - + "\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" - + "\017GetSubscription\022(.google.pubsub.v1.GetSubscriptionRequest\032\036.google.pubs" - + "ub.v1.Subscription\"D\332A\014subscription\202\323\344\223\002" - + "/\022-/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" - + "\022UpdateSubscription\022+.google.pubsub.v1.UpdateSubscriptionRequest\032\036.g" - + "oogle.pubsub.v1.Subscription\"X\332A\030subscri" - + "ption,update_mask\202\323\344\223\002722/v1/{subscripti" - + "on.name=projects/*/subscriptions/*}:\001*\022\246\001\n" - + "\021ListSubscriptions\022*.google.pubsub.v1." - + "ListSubscriptionsRequest\032+.google.pubsub" - + ".v1.ListSubscriptionsResponse\"8\332A\007projec" - + "t\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" - + "\022DeleteSubscription\022+.google.pubsub.v1.DeleteSubscriptionRequest\032\026.go" - + "ogle.protobuf.Empty\"D\332A\014subscription\202\323\344\223" - + "\002/*-/v1/{subscription=projects/*/subscriptions/*}\022\317\001\n" - + "\021ModifyAckDeadline\022*.google.pubsub.v1.ModifyAckDeadlineRequest\032\026.go" - + "ogle.protobuf.Empty\"v\332A)subscription,ack" - + "_ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{su" - + "bscription=projects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" - + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.goog" - + "le.protobuf.Empty\"[\332A\024subscription,ack_i" - + "ds\202\323\344\223\002>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" - + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google." - + "pubsub.v1.PullResponse\"\210\001\332A,subscription" - + ",return_immediately,max_messages\332A\031subsc" - + "ription,max_messages\202\323\344\223\0027\"2/v1/{subscri" - + "ption=projects/*/subscriptions/*}:pull:\001*\022f\n\r" - + "StreamingPull\022&.google.pubsub.v1.St" - + "reamingPullRequest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" - + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConf" - + "igRequest\032\026.google.protobuf.Empty\"d\332A\030su" - + "bscription,push_config\202\323\344\223\002C\">/v1/{subsc" - + "ription=projects/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" - + "\013GetSnapshot\022$.google.pubsub.v1.GetSnapshotRequest\032\032.google.p" - + "ubsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" - + "ListSnapshots\022&.google.pubsub.v1.ListSna" - + "pshotsRequest\032\'.google.pubsub.v1.ListSna" - + "pshotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" - + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapsho" - + "tRequest\032\032.google.pubsub.v1.Snapshot\"@\332A" - + "\021name,subscription\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" - + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotReque" - + "st\032\032.google.pubsub.v1.Snapshot\"L\332A\024snaps" - + "hot,update_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" - + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapsho" - + "tRequest\032\026.google.protobuf.Empty\"8\332A\010sna" - + "pshot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" - + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036.google.pubsub.v1.SeekRespon" - + "se\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*" - + "/subscriptions/*}:seek:\001*\032p\312A\025pubsub.goo" - + "gleapis.com\322AUhttps://www.googleapis.com" - + "/auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\247\003\n" - + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go" - + "/pubsub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Goo" - + "gle.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects" - + "/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" - + "#analyticshub.googleapis.com/Listing\022Xprojects/{project}/locations/{location}/dat" - + "aExchanges/{data_exchange}/listings/{listing}b\006proto3" + + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.go" + + "ogle.pubsub.v1.Subscription\"^\332A+name,top" + + "ic,push_config,ack_deadline_seconds\202\323\344\223\002" + + "*\032%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" + + "\017GetSubscription\022(.google.pubsub.v1.GetSubscriptionRequest\032\036.google.pubsu" + + "b.v1.Subscription\"D\332A\014subscription\202\323\344\223\002/" + + "\022-/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" + + "\022UpdateSubscription\022+.google.pubsub.v1.UpdateSubscriptionRequest\032\036.go" + + "ogle.pubsub.v1.Subscription\"X\332A\030subscrip" + + "tion,update_mask\202\323\344\223\002722/v1/{subscriptio" + + "n.name=projects/*/subscriptions/*}:\001*\022\246\001\n" + + "\021ListSubscriptions\022*.google.pubsub.v1.L" + + "istSubscriptionsRequest\032+.google.pubsub." + + "v1.ListSubscriptionsResponse\"8\332A\007project" + + "\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" + + "\022DeleteSubscription\022+.google.pubsub.v1.DeleteSubscriptionRequest\032\026.goo" + + "gle.protobuf.Empty\"D\332A\014subscription\202\323\344\223\002" + + "/*-/v1/{subscription=projects/*/subscriptions/*}\022\317\001\n" + + "\021ModifyAckDeadline\022*.google.pubsub.v1.ModifyAckDeadlineRequest\032\026.goo" + + "gle.protobuf.Empty\"v\332A)subscription,ack_" + + "ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{sub" + + "scription=projects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" + + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.googl" + + "e.protobuf.Empty\"[\332A\024subscription,ack_id" + + "s\202\323\344\223\002>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" + + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google.p" + + "ubsub.v1.PullResponse\"\210\001\332A,subscription," + + "return_immediately,max_messages\332A\031subscr" + + "iption,max_messages\202\323\344\223\0027\"2/v1/{subscrip" + + "tion=projects/*/subscriptions/*}:pull:\001*\022f\n\r" + + "StreamingPull\022&.google.pubsub.v1.Str" + + "eamingPullRequest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" + + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConfi" + + "gRequest\032\026.google.protobuf.Empty\"d\332A\030sub" + + "scription,push_config\202\323\344\223\002C\">/v1/{subscr" + + "iption=projects/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" + + "\013GetSnapshot\022$.google.pubsub.v1.GetSnapshotRequest\032\032.google.pu" + + "bsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" + + "ListSnapshots\022&.google.pubsub.v1.ListSnap" + + "shotsRequest\032\'.google.pubsub.v1.ListSnap" + + "shotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" + + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapshot" + + "Request\032\032.google.pubsub.v1.Snapshot\"@\332A\021" + + "name,subscription\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" + + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotReques" + + "t\032\032.google.pubsub.v1.Snapshot\"L\332A\024snapsh" + + "ot,update_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" + + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapshot" + + "Request\032\026.google.protobuf.Empty\"8\332A\010snap" + + "shot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" + + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036.google.pubsub.v1.SeekRespons" + + "e\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/" + + "subscriptions/*}:seek:\001*\032p\312A\025pubsub.goog" + + "leapis.com\322AUhttps://www.googleapis.com/" + + "auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\247\003\n" + + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go/" + + "pubsub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Goog" + + "le.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/" + + "{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" + + "#analyticshub.googleapis.com/Listing\022Xprojects/{project}/locations/{location}/data" + + "Exchanges/{data_exchange}/listings/{listing}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index c6dbf3f12765..359811a333f8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2039 + * google/pubsub/v1/pubsub.proto;l=2052 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2039 + * google/pubsub/v1/pubsub.proto;l=2052 * @return The returnImmediately. */ @java.lang.Override @@ -727,7 +727,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2039 + * google/pubsub/v1/pubsub.proto;l=2052 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -758,7 +758,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2039 + * google/pubsub/v1/pubsub.proto;l=2052 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 15b70709e6b5..7c00e35b508c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2039 + * google/pubsub/v1/pubsub.proto;l=2052 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 9e637b08e09b..b36abdc68538 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1190,7 +1190,7 @@ public com.google.protobuf.Parser getParserForType * * *
      -   * Required. The name of the subscription. It must have the format
      +   * Required. Identifier. 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 (`~`),
      @@ -1198,7 +1198,9 @@ public com.google.protobuf.Parser getParserForType
          * in length, and it must not start with `"goog"`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -1219,7 +1221,7 @@ public java.lang.String getName() { * * *
      -   * Required. The name of the subscription. It must have the format
      +   * Required. Identifier. 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 (`~`),
      @@ -1227,7 +1229,9 @@ public java.lang.String getName() {
          * in length, and it must not start with `"goog"`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -3531,7 +3535,7 @@ public Builder mergeFrom( * * *
      -     * Required. The name of the subscription. It must have the format
      +     * Required. Identifier. 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 (`~`),
      @@ -3539,7 +3543,9 @@ public Builder mergeFrom(
            * in length, and it must not start with `"goog"`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -3559,7 +3565,7 @@ public java.lang.String getName() { * * *
      -     * Required. The name of the subscription. It must have the format
      +     * Required. Identifier. 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 (`~`),
      @@ -3567,7 +3573,9 @@ public java.lang.String getName() {
            * in length, and it must not start with `"goog"`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -3587,7 +3595,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Required. The name of the subscription. It must have the format
      +     * Required. Identifier. 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 (`~`),
      @@ -3595,7 +3603,9 @@ public com.google.protobuf.ByteString getNameBytes() {
            * in length, and it must not start with `"goog"`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -3614,7 +3624,7 @@ public Builder setName(java.lang.String value) { * * *
      -     * Required. The name of the subscription. It must have the format
      +     * Required. Identifier. 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 (`~`),
      @@ -3622,7 +3632,9 @@ public Builder setName(java.lang.String value) {
            * in length, and it must not start with `"goog"`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -3637,7 +3649,7 @@ public Builder clearName() { * * *
      -     * Required. The name of the subscription. It must have the format
      +     * Required. Identifier. 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 (`~`),
      @@ -3645,7 +3657,9 @@ public Builder clearName() {
            * in length, and it must not start with `"goog"`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 585c95c3e7a2..fb8459de7509 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -28,7 +28,7 @@ public interface SubscriptionOrBuilder * * *
      -   * Required. The name of the subscription. It must have the format
      +   * Required. Identifier. 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 (`~`),
      @@ -36,7 +36,9 @@ public interface SubscriptionOrBuilder
          * in length, and it must not start with `"goog"`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -46,7 +48,7 @@ public interface SubscriptionOrBuilder * * *
      -   * Required. The name of the subscription. It must have the format
      +   * Required. Identifier. 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 (`~`),
      @@ -54,7 +56,9 @@ public interface SubscriptionOrBuilder
          * in length, and it must not start with `"goog"`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 3719e7280cde..c1e75d4e4189 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -252,7 +252,7 @@ private State(int value) { * * *
      -   * Required. The name of the topic. It must have the format
      +   * Required. Identifier. 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
      @@ -260,7 +260,9 @@ private State(int value) {
          * must not start with `"goog"`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -281,7 +283,7 @@ public java.lang.String getName() { * * *
      -   * Required. The name of the topic. It must have the format
      +   * Required. Identifier. 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
      @@ -289,7 +291,9 @@ public java.lang.String getName() {
          * must not start with `"goog"`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1762,7 +1766,7 @@ public Builder mergeFrom( * * *
      -     * Required. The name of the topic. It must have the format
      +     * Required. Identifier. 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
      @@ -1770,7 +1774,9 @@ public Builder mergeFrom(
            * must not start with `"goog"`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -1790,7 +1796,7 @@ public java.lang.String getName() { * * *
      -     * Required. The name of the topic. It must have the format
      +     * Required. Identifier. 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
      @@ -1798,7 +1804,9 @@ public java.lang.String getName() {
            * must not start with `"goog"`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -1818,7 +1826,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Required. The name of the topic. It must have the format
      +     * Required. Identifier. 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
      @@ -1826,7 +1834,9 @@ public com.google.protobuf.ByteString getNameBytes() {
            * must not start with `"goog"`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The name to set. * @return This builder for chaining. @@ -1845,7 +1855,7 @@ public Builder setName(java.lang.String value) { * * *
      -     * Required. The name of the topic. It must have the format
      +     * Required. Identifier. 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
      @@ -1853,7 +1863,9 @@ public Builder setName(java.lang.String value) {
            * must not start with `"goog"`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return This builder for chaining. */ @@ -1868,7 +1880,7 @@ public Builder clearName() { * * *
      -     * Required. The name of the topic. It must have the format
      +     * Required. Identifier. 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
      @@ -1876,7 +1888,9 @@ public Builder clearName() {
            * must not start with `"goog"`.
            * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index ea55bec4eba2..60080e1674e3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -28,7 +28,7 @@ public interface TopicOrBuilder * * *
      -   * Required. The name of the topic. It must have the format
      +   * Required. Identifier. 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
      @@ -36,7 +36,9 @@ public interface TopicOrBuilder
          * must not start with `"goog"`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -46,7 +48,7 @@ public interface TopicOrBuilder * * *
      -   * Required. The name of the topic. It must have the format
      +   * Required. Identifier. 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
      @@ -54,7 +56,9 @@ public interface TopicOrBuilder
          * must not start with `"goog"`.
          * 
      * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index b542351d9d67..95dd7f829cea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -847,13 +847,16 @@ message Topic { INGESTION_RESOURCE_ERROR = 2; } - // Required. The name of the topic. It must have the format + // Required. Identifier. 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"`. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER + ]; // Optional. See [Creating and managing labels] // (https://cloud.google.com/pubsub/docs/labels). @@ -960,10 +963,11 @@ message PubsubMessage { // Request for the GetTopic method. message GetTopicRequest { - // Required. The name of the topic to get. + // Required. Identifier. The name of the topic to get. // Format is `projects/{project}/topics/{topic}`. string topic = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; } @@ -984,10 +988,11 @@ message UpdateTopicRequest { // Request for the Publish method. message PublishRequest { - // Required. The messages in the request will be published on this topic. - // Format is `projects/{project}/topics/{topic}`. + // Required. Identifier. The messages in the request will be published on this + // topic. Format is `projects/{project}/topics/{topic}`. string topic = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; @@ -1005,10 +1010,11 @@ message PublishResponse { // Request for the `ListTopics` method. message ListTopicsRequest { - // Required. The name of the project in which to list topics. + // Required. Identifier. The name of the project in which to list topics. // Format is `projects/{project-id}`. string project = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "cloudresourcemanager.googleapis.com/Project" } @@ -1102,10 +1108,11 @@ message ListTopicSnapshotsResponse { // Request for the `DeleteTopic` method. message DeleteTopicRequest { - // Required. Name of the topic to delete. + // Required. Identifier. Name of the topic to delete. // Format is `projects/{project}/topics/{topic}`. string topic = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; } @@ -1399,13 +1406,16 @@ message Subscription { string subscription = 2 [(google.api.field_behavior) = OPTIONAL]; } - // Required. The name of the subscription. It must have the format + // Required. Identifier. 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"`. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER + ]; // Required. The name of the topic from which this subscription is receiving // messages. Format is `projects/{project}/topics/{topic}`. The value of this @@ -1934,10 +1944,11 @@ message ReceivedMessage { // Request for the GetSubscription method. message GetSubscriptionRequest { - // Required. The name of the subscription to get. + // Required. Identifier. The name of the subscription to get. // Format is `projects/{project}/subscriptions/{sub}`. string subscription = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Subscription" } @@ -1957,10 +1968,11 @@ message UpdateSubscriptionRequest { // Request for the `ListSubscriptions` method. message ListSubscriptionsRequest { - // Required. The name of the project in which to list subscriptions. - // Format is `projects/{project-id}`. + // Required. Identifier. The name of the project in which to list + // subscriptions. Format is `projects/{project-id}`. string project = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "cloudresourcemanager.googleapis.com/Project" } @@ -1989,10 +2001,11 @@ message ListSubscriptionsResponse { // Request for the DeleteSubscription method. message DeleteSubscriptionRequest { - // Required. The subscription to delete. + // Required. Identifier. The subscription to delete. // Format is `projects/{project}/subscriptions/{sub}`. string subscription = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Subscription" } @@ -2260,14 +2273,15 @@ message StreamingPullResponse { // Request for the `CreateSnapshot` method. message CreateSnapshotRequest { - // 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 + // Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). // Format is `projects/{project}/snapshots/{snap}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } ]; @@ -2356,20 +2370,22 @@ message Snapshot { // Request for the GetSnapshot method. message GetSnapshotRequest { - // Required. The name of the snapshot to get. + // Required. Identifier. The name of the snapshot to get. // Format is `projects/{project}/snapshots/{snap}`. string snapshot = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } ]; } // Request for the `ListSnapshots` method. message ListSnapshotsRequest { - // Required. The name of the project in which to list snapshots. + // Required. Identifier. The name of the project in which to list snapshots. // Format is `projects/{project-id}`. string project = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "cloudresourcemanager.googleapis.com/Project" } @@ -2397,10 +2413,11 @@ message ListSnapshotsResponse { // Request for the `DeleteSnapshot` method. message DeleteSnapshotRequest { - // Required. The name of the snapshot to delete. + // Required. Identifier. The name of the snapshot to delete. // Format is `projects/{project}/snapshots/{snap}`. string snapshot = 1 [ (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } ]; } From 5291f6e1b745cbbba750935aa9943b0ef7a82459 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 17:02:07 +0000 Subject: [PATCH 2296/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.33.2 (#2625) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ff444f0cc084..c6f9b1bca753 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.33.1 + 4.33.2 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0f4bfe7cb93f..16920c23c055 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.33.1 + 4.33.2 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 3dd1de9942ab..faf6307818b3 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.33.1 + 4.33.2 From 57f53240665dd8568fcb421748d3e277897702b3 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 17:02:22 +0000 Subject: [PATCH 2297/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.62.2 (#2632) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c6f9b1bca753..f7b7098dab39 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.62.1 + 2.62.2 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 16920c23c055..1d278aa3d62e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.62.1 + 2.62.2 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index faf6307818b3..a80f9af05cd2 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.62.1 + 2.62.2 tests From 1a895dab708e7204eeabfbd8216340bac21b9aa4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 17:02:49 +0000 Subject: [PATCH 2298/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.54.2 (#2633) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index ba9ae7cf549a..396a49755446 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.54.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.54.2 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5281720c53df..e8d28eb8350b 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.54.1 + 3.54.2 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f5fd9874df2c..686c8b484781 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.54.1 + 3.54.2 From ea521117355ab5133f1bfca6994face2a6a245d6 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 11 Dec 2025 20:09:52 +0000 Subject: [PATCH 2299/2363] deps: update actions/checkout action to v6 (#2619) Co-authored-by: Mike Prieto --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/.github/workflows/update_generation_config.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 818024030c58..cda7bb36cc6e 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -32,7 +32,7 @@ jobs: else echo "SHOULD_RUN=true" >> $GITHUB_ENV fi - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 if: env.SHOULD_RUN == 'true' with: fetch-depth: 0 diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 396a49755446..24c84d214912 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -5,7 +5,7 @@ jobs: unmanaged_dependency_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - uses: actions/setup-java@v5 with: distribution: temurin diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..d343f233b963 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} From c2789b4ebbacc83ac3a29087623e6cc4c1139091 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Dec 2025 17:29:39 -0500 Subject: [PATCH 2300/2363] chore(main): release 1.143.2-SNAPSHOT (#2614) * chore(main): release 1.143.2-SNAPSHOT * chore: generate libraries at Thu Dec 11 20:10:46 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- .../.github/workflows/update_generation_config.yaml | 2 +- java-pubsub/README.md | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index d343f233b963..a7e14bb483c3 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -26,7 +26,7 @@ jobs: # the branch into which the pull request is merged base_branch: main steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/README.md b/java-pubsub/README.md index a503ceea7f45..32a73a37e611 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index e8d28eb8350b..4ee7f8d1adeb 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.143.1 + 1.143.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.143.1 + 1.143.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT
      diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8d31ef029e2f..12330b5e77fb 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.143.1 + 1.143.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.143.1 + 1.143.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index fd03db4dbaf0..7068bf3f22d8 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.1 + 1.143.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 686c8b484781..690ae576e67b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.143.1 + 1.143.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.143.1 + 1.143.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 012ad1784909..5762aa3e3ee1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.1 + 1.125.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.1 + 1.143.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1d278aa3d62e..ab388762cd7e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.143.1 + 1.143.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index e51f1f34a0cc..246517706c52 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.143.1:1.143.1 -grpc-google-cloud-pubsub-v1:1.125.1:1.125.1 -proto-google-cloud-pubsub-v1:1.125.1:1.125.1 +google-cloud-pubsub:1.143.1:1.143.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.125.1:1.125.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.125.1:1.125.2-SNAPSHOT From e951964205f7e3ad56e1ee28ff3aa180cd055a90 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Dec 2025 17:57:40 -0500 Subject: [PATCH 2301/2363] chore(main): release 1.144.0 (#2635) * chore(main): release 1.144.0 * chore: generate libraries at Thu Dec 11 22:30:31 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 31 +++++++++++++++++++ java-pubsub/README.md | 6 ++-- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++--- java-pubsub/google-cloud-pubsub/pom.xml | 4 +-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/pom.xml | 8 ++--- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++-- 9 files changed, 52 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index d16543734533..2793d5f9e89d 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,36 @@ # Changelog +## [1.144.0](https://github.com/googleapis/java-pubsub/compare/v1.143.1...v1.144.0) (2025-12-11) + + +### Features + +* Add keepalive feature to tear down streams in their absence ([#2605](https://github.com/googleapis/java-pubsub/issues/2605)) ([99aca4f](https://github.com/googleapis/java-pubsub/commit/99aca4f3fd1792b02da78320bed39e53dc8af23c)) +* Make v1 the default protocolVersion ([#2623](https://github.com/googleapis/java-pubsub/issues/2623)) ([12f014d](https://github.com/googleapis/java-pubsub/commit/12f014d9030b2472e508fa75a71f43e671a64583)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.64.2 ([b4b7f83](https://github.com/googleapis/java-pubsub/commit/b4b7f839b2be1ce003667018a10d9c460e4b63b1)) + + +### Dependencies + +* Update actions/checkout action to v5 ([#2613](https://github.com/googleapis/java-pubsub/issues/2613)) ([a69ffdd](https://github.com/googleapis/java-pubsub/commit/a69ffdd9ecb5dae557a847ae7ec5c1a06431bef7)) +* Update actions/checkout action to v6 ([#2619](https://github.com/googleapis/java-pubsub/issues/2619)) ([6cd2bb6](https://github.com/googleapis/java-pubsub/commit/6cd2bb6e9c927dd192833efc7c3549dfa9c84f57)) +* Update dependency com.google.cloud:google-cloud-bigquery to v2.56.0 ([#2617](https://github.com/googleapis/java-pubsub/issues/2617)) ([13d5e3d](https://github.com/googleapis/java-pubsub/commit/13d5e3d8e4069a0e94db3cf825eb821d06cc9345)) +* Update dependency com.google.cloud:google-cloud-core to v2.62.1 ([#2608](https://github.com/googleapis/java-pubsub/issues/2608)) ([fee0500](https://github.com/googleapis/java-pubsub/commit/fee0500bf6a0e309ca5f162810e22a2ca4c5b7eb)) +* Update dependency com.google.cloud:google-cloud-core to v2.62.2 ([#2632](https://github.com/googleapis/java-pubsub/issues/2632)) ([2d567d1](https://github.com/googleapis/java-pubsub/commit/2d567d16f7f546586156e2e2ee17c433fbec5fc2)) +* Update dependency com.google.cloud:google-cloud-storage to v2.60.0 ([#2610](https://github.com/googleapis/java-pubsub/issues/2610)) ([1cae247](https://github.com/googleapis/java-pubsub/commit/1cae247322fff1b6588a4b523e601e41a4284c64)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.54.2 ([#2633](https://github.com/googleapis/java-pubsub/issues/2633)) ([5081aac](https://github.com/googleapis/java-pubsub/commit/5081aac1fc26fcaca004c730982d0e56ed36e32f)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.33.1 ([#2612](https://github.com/googleapis/java-pubsub/issues/2612)) ([e92debc](https://github.com/googleapis/java-pubsub/commit/e92debccf9e87971c2d9fee34baffb4b534f24a3)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.33.2 ([#2625](https://github.com/googleapis/java-pubsub/issues/2625)) ([900783f](https://github.com/googleapis/java-pubsub/commit/900783ff8b135b42088c37b48cdc1a7ee44d4e08)) + + +### Documentation + +* Add the IDENTIFIER field behavior annotation to fields of Cloud Pub/Sub methods that represent a specific identity and need to be sourced with additional care ([b4b7f83](https://github.com/googleapis/java-pubsub/commit/b4b7f839b2be1ce003667018a10d9c460e4b63b1)) + ## [1.143.1](https://github.com/googleapis/java-pubsub/compare/v1.143.0...v1.143.1) (2025-11-13) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 32a73a37e611..ab3b726afe00 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.143.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.144.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.143.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.144.0" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.143.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.144.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 4ee7f8d1adeb..7379b0a8829c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.143.2-SNAPSHOT + 1.144.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.143.2-SNAPSHOT + 1.144.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 12330b5e77fb..01fabe3344c5 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.143.2-SNAPSHOT + 1.144.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.143.2-SNAPSHOT + 1.144.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 7068bf3f22d8..a4bd081fe316 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.2-SNAPSHOT + 1.144.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 690ae576e67b..caf1bba2e084 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.143.2-SNAPSHOT + 1.144.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 com.google.cloud google-cloud-pubsub - 1.143.2-SNAPSHOT + 1.144.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 5762aa3e3ee1..ac3984e7366b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.125.2-SNAPSHOT + 1.126.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.143.2-SNAPSHOT + 1.144.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ab388762cd7e..75794ce65a83 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.143.2-SNAPSHOT + 1.144.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 246517706c52..36b939a61232 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.143.1:1.143.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.125.1:1.125.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.125.1:1.125.2-SNAPSHOT +google-cloud-pubsub:1.144.0:1.144.0 +grpc-google-cloud-pubsub-v1:1.126.0:1.126.0 +proto-google-cloud-pubsub-v1:1.126.0:1.126.0 From ccdd22357adad0d75f1ddda6488cf5e3b2ad7763 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 12 Dec 2025 02:04:28 +0000 Subject: [PATCH 2302/2363] chore(main): release 1.144.1-SNAPSHOT (#2637) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 7379b0a8829c..b9c11a6925a5 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.144.0 + 1.144.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.144.0 + 1.144.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 01fabe3344c5..977a7250e270 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.144.0 + 1.144.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.144.0 + 1.144.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index a4bd081fe316..29b3dd9e0c89 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.0 + 1.144.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index caf1bba2e084..321d61450cf1 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.144.0 + 1.144.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.144.0 + 1.144.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ac3984e7366b..4918ef56998e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.0 + 1.126.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.0 + 1.144.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 75794ce65a83..34b28a2dc1ee 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.144.0 + 1.144.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 36b939a61232..7667c2b45e0e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.144.0:1.144.0 -grpc-google-cloud-pubsub-v1:1.126.0:1.126.0 -proto-google-cloud-pubsub-v1:1.126.0:1.126.0 +google-cloud-pubsub:1.144.0:1.144.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.126.0:1.126.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.126.0:1.126.1-SNAPSHOT From a5a96f806563106e6c96d30f9056bb67f928da12 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Mon, 22 Dec 2025 16:33:51 -0500 Subject: [PATCH 2303/2363] fix: Lower the Subscriber protocol version to disable the streaming pull keepalive feature (#2652) * feat: Make v1 the default protocolVersion * fix: Lower the Subscriber protocol version to disable the streaming pull keepalive feature * fix: Downgrade streaming pull keepalive close stream log from WARNING to FINE * fix: Change from FINE to INFO for ping monitor stream closure log --- .../google/cloud/pubsub/v1/StreamingSubscriberConnection.java | 2 +- .../src/main/java/com/google/cloud/pubsub/v1/Subscriber.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 5c9f9e171be1..2ee07759792d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -519,7 +519,7 @@ private void startServerMonitor() { } logger.log( - Level.WARNING, + Level.INFO, "No response from server for {0} seconds since last ping. Closing stream.", elapsedSincePing.getSeconds()); diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index a2d4f3b38589..37440ba407a0 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -144,7 +144,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final boolean maxDurationPerAckExtensionDefaultUsed; private final java.time.Duration minDurationPerAckExtension; private final boolean minDurationPerAckExtensionDefaultUsed; - private final long protocolVersion = 1L; + private final long protocolVersion = 0L; // The ExecutorProvider used to generate executors for processing messages. private final ExecutorProvider executorProvider; From 5fbc359745a9868b05ee30ea5f4bd68fd257290d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 17:05:19 -0500 Subject: [PATCH 2304/2363] chore(main): release 1.144.1 (#2654) * chore(main): release 1.144.1 * chore: generate libraries at Mon Dec 22 21:34:41 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 7 +++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 28 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 2793d5f9e89d..7019ced0fe9a 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.144.1](https://github.com/googleapis/java-pubsub/compare/v1.144.0...v1.144.1) (2025-12-22) + + +### Bug Fixes + +* Lower the Subscriber protocol version to disable the streaming pull keepalive feature ([#2652](https://github.com/googleapis/java-pubsub/issues/2652)) ([ca99c2a](https://github.com/googleapis/java-pubsub/commit/ca99c2a2cea8201ea6f71e7383bd6123ec32ebdc)) + ## [1.144.0](https://github.com/googleapis/java-pubsub/compare/v1.143.1...v1.144.0) (2025-12-11) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ab3b726afe00..5a62af019592 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.144.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.144.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.144.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.144.1" ``` ## Authentication @@ -420,7 +420,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.144.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.144.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b9c11a6925a5..bcb0818c0d70 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.144.1-SNAPSHOT + 1.144.1 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.144.1-SNAPSHOT + 1.144.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 977a7250e270..37c48b77be18 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.144.1-SNAPSHOT + 1.144.1 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.144.1-SNAPSHOT + 1.144.1 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 29b3dd9e0c89..8ab76948c9ed 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.1-SNAPSHOT + 1.144.1 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 321d61450cf1..11d3514f6a16 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.144.1-SNAPSHOT + 1.144.1 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 com.google.cloud google-cloud-pubsub - 1.144.1-SNAPSHOT + 1.144.1 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 4918ef56998e..93bdf6c5acdb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.1-SNAPSHOT + 1.126.1 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.1-SNAPSHOT + 1.144.1 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 34b28a2dc1ee..59fdadc95a47 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.144.1-SNAPSHOT + 1.144.1 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 7667c2b45e0e..c0a0d2f15da4 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.144.0:1.144.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.126.0:1.126.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.126.0:1.126.1-SNAPSHOT +google-cloud-pubsub:1.144.1:1.144.1 +grpc-google-cloud-pubsub-v1:1.126.1:1.126.1 +proto-google-cloud-pubsub-v1:1.126.1:1.126.1 From a1fff112d77cdd5470d23ac6f2ba49f9e7f8d843 Mon Sep 17 00:00:00 2001 From: Diego Marquez Date: Tue, 13 Jan 2026 15:58:39 -0500 Subject: [PATCH 2305/2363] chore: cleanup release-please config (#2624) * chore: cleanup release-please config - Remove redundant options already declared at the top level.\n- Remove bumpMinorPreMajor for repositories after the first major release. * chore: format release-please.yml --- java-pubsub/.github/release-please.yml | 77 +++++++++----------------- 1 file changed, 25 insertions(+), 52 deletions(-) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index f4a05d1b9043..94186875d74f 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -2,55 +2,28 @@ bumpMinorPreMajor: true handleGHRelease: true releaseType: java-yoshi branches: - - releaseType: java-lts - bumpMinorPreMajor: true - handleGHRelease: true - branch: 1.111.0-sp - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-yoshi - branch: java7 - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.114.x - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.116.x - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.117.x - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.120.x - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.121.x - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.123.x - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.125.x - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.129.x - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.137.x - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.140.x - - handleGHRelease: true - releaseType: java-yoshi - branch: protobuf-4.x-rc - manifest: true + - branch: 1.111.0-sp + releaseType: java-lts + - branch: java7 + - branch: 1.114.x + releaseType: java-backport + - branch: 1.116.x + releaseType: java-backport + - branch: 1.117.x + releaseType: java-backport + - branch: 1.120.x + releaseType: java-backport + - branch: 1.121.x + releaseType: java-backport + - branch: 1.123.x + releaseType: java-backport + - branch: 1.125.x + releaseType: java-backport + - branch: 1.129.x + releaseType: java-backport + - branch: 1.137.x + releaseType: java-backport + - branch: 1.140.x + releaseType: java-backport + - branch: protobuf-4.x-rc + manifest: true From 8c7909d06a13a86055b63a03398176645a7c111f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 Jan 2026 15:42:16 +0000 Subject: [PATCH 2306/2363] deps: update googleapis/sdk-platform-java action to v2.65.1 (#2657) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index cda7bb36cc6e..42c112db4dc8 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.2 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.65.1 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From d043552e937695a09ff55598d7caf8bf3d16af30 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 15 Jan 2026 15:42:41 +0000 Subject: [PATCH 2307/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.55.1 (#2658) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 24c84d214912..77d3c5ad2de2 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.54.2 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.55.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index bcb0818c0d70..cf72faf8f810 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.54.2 + 3.55.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 11d3514f6a16..af14ec4a7a60 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.54.2 + 3.55.1 From 4d69a924dd8fa1e08870ae139635747946ad35f1 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 15 Jan 2026 14:34:14 -0500 Subject: [PATCH 2308/2363] chore: Update generation configuration at Thu Jan 15 16:44:58 UTC 2026 (#2660) * chore: Update generation configuration at Thu Jan 15 16:44:58 UTC 2026 * chore: remove usage of GOOD_LICENSE This variable was removed in https://github.com/googleapis/sdk-platform-java/pull/4036 * chore: generate libraries at Thu Jan 15 16:59:29 UTC 2026 --------- Co-authored-by: Diego Marquez --- .../scripts/update_generation_config.sh | 12 +- .../.kokoro/presubmit/graalvm-native-a.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-b.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 21 +- java-pubsub/generation_config.yaml | 6 +- .../cloud/pubsub/v1/SchemaServiceClient.java | 2 +- .../pubsub/v1/SchemaServiceSettings.java | 6 +- .../pubsub/v1/SubscriptionAdminClient.java | 70 +- .../pubsub/v1/SubscriptionAdminSettings.java | 6 +- .../cloud/pubsub/v1/TopicAdminClient.java | 22 +- .../cloud/pubsub/v1/TopicAdminSettings.java | 6 +- .../google/cloud/pubsub/v1/package-info.java | 2 +- .../v1/stub/GrpcPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcPublisherStub.java | 2 +- .../GrpcSchemaServiceCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSchemaServiceStub.java | 2 +- .../stub/GrpcSubscriberCallableFactory.java | 2 +- .../pubsub/v1/stub/GrpcSubscriberStub.java | 2 +- .../HttpJsonPublisherCallableFactory.java | 2 +- .../pubsub/v1/stub/HttpJsonPublisherStub.java | 2 +- .../HttpJsonSchemaServiceCallableFactory.java | 2 +- .../v1/stub/HttpJsonSchemaServiceStub.java | 2 +- .../HttpJsonSubscriberCallableFactory.java | 2 +- .../v1/stub/HttpJsonSubscriberStub.java | 2 +- .../cloud/pubsub/v1/stub/PublisherStub.java | 2 +- .../pubsub/v1/stub/PublisherStubSettings.java | 6 +- .../pubsub/v1/stub/SchemaServiceStub.java | 2 +- .../v1/stub/SchemaServiceStubSettings.java | 6 +- .../cloud/pubsub/v1/stub/SubscriberStub.java | 2 +- .../v1/stub/SubscriberStubSettings.java | 6 +- .../reflect-config.json | 99 + .../google/cloud/pubsub/v1/MockIAMPolicy.java | 2 +- .../cloud/pubsub/v1/MockIAMPolicyImpl.java | 2 +- .../google/cloud/pubsub/v1/MockPublisher.java | 2 +- .../cloud/pubsub/v1/MockPublisherImpl.java | 2 +- .../cloud/pubsub/v1/MockSchemaService.java | 2 +- .../pubsub/v1/MockSchemaServiceImpl.java | 2 +- .../cloud/pubsub/v1/MockSubscriber.java | 2 +- .../cloud/pubsub/v1/MockSubscriberImpl.java | 2 +- .../v1/SchemaServiceClientHttpJsonTest.java | 2 +- .../pubsub/v1/SchemaServiceClientTest.java | 2 +- .../SubscriptionAdminClientHttpJsonTest.java | 2 +- .../v1/SubscriptionAdminClientTest.java | 2 +- .../v1/TopicAdminClientHttpJsonTest.java | 2 +- .../cloud/pubsub/v1/TopicAdminClientTest.java | 2 +- .../com/google/pubsub/v1/PublisherGrpc.java | 2 +- .../google/pubsub/v1/SchemaServiceGrpc.java | 2 +- .../com/google/pubsub/v1/SubscriberGrpc.java | 2 +- java-pubsub/owlbot.py | 5 - .../com/google/pubsub/v1/AIInference.java | 2101 +++++++++++++++++ .../pubsub/v1/AIInferenceOrBuilder.java | 140 ++ .../google/pubsub/v1/AcknowledgeRequest.java | 2 +- .../v1/AcknowledgeRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/BigQueryConfig.java | 29 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CloudStorageConfig.java | 29 +- .../v1/CloudStorageConfigOrBuilder.java | 2 +- .../google/pubsub/v1/CommitSchemaRequest.java | 2 +- .../v1/CommitSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/CreateSchemaRequest.java | 2 +- .../v1/CreateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/CreateSnapshotRequest.java | 94 +- .../v1/CreateSnapshotRequestOrBuilder.java | 32 +- .../com/google/pubsub/v1/CryptoKeyName.java | 2 +- .../google/pubsub/v1/DeadLetterPolicy.java | 2 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 2 +- .../v1/DeleteSchemaRequestOrBuilder.java | 2 +- .../v1/DeleteSchemaRevisionRequest.java | 2 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 2 +- .../pubsub/v1/DeleteSnapshotRequest.java | 30 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 10 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 30 +- .../DeleteSubscriptionRequestOrBuilder.java | 10 +- .../google/pubsub/v1/DeleteTopicRequest.java | 30 +- .../v1/DeleteTopicRequestOrBuilder.java | 10 +- .../pubsub/v1/DetachSubscriptionRequest.java | 2 +- .../DetachSubscriptionRequestOrBuilder.java | 2 +- .../pubsub/v1/DetachSubscriptionResponse.java | 2 +- .../DetachSubscriptionResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Encoding.java | 2 +- .../google/pubsub/v1/ExpirationPolicy.java | 2 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 2 +- .../google/pubsub/v1/GetSchemaRequest.java | 2 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 2 +- .../google/pubsub/v1/GetSnapshotRequest.java | 30 +- .../v1/GetSnapshotRequestOrBuilder.java | 10 +- .../pubsub/v1/GetSubscriptionRequest.java | 30 +- .../v1/GetSubscriptionRequestOrBuilder.java | 10 +- .../com/google/pubsub/v1/GetTopicRequest.java | 30 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 10 +- .../v1/IngestionDataSourceSettings.java | 2 +- .../IngestionDataSourceSettingsOrBuilder.java | 2 +- .../pubsub/v1/IngestionFailureEvent.java | 2 +- .../v1/IngestionFailureEventOrBuilder.java | 2 +- .../com/google/pubsub/v1/JavaScriptUDF.java | 2 +- .../pubsub/v1/JavaScriptUDFOrBuilder.java | 2 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 2 +- .../ListSchemaRevisionsRequestOrBuilder.java | 2 +- .../v1/ListSchemaRevisionsResponse.java | 2 +- .../ListSchemaRevisionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasRequest.java | 2 +- .../v1/ListSchemasRequestOrBuilder.java | 2 +- .../google/pubsub/v1/ListSchemasResponse.java | 2 +- .../v1/ListSchemasResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSnapshotsRequest.java | 30 +- .../v1/ListSnapshotsRequestOrBuilder.java | 10 +- .../pubsub/v1/ListSnapshotsResponse.java | 2 +- .../v1/ListSnapshotsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListSubscriptionsRequest.java | 44 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 14 +- .../pubsub/v1/ListSubscriptionsResponse.java | 2 +- .../ListSubscriptionsResponseOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 2 +- .../ListTopicSnapshotsRequestOrBuilder.java | 2 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 2 +- .../ListTopicSnapshotsResponseOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsRequest.java | 2 +- ...istTopicSubscriptionsRequestOrBuilder.java | 2 +- .../v1/ListTopicSubscriptionsResponse.java | 2 +- ...stTopicSubscriptionsResponseOrBuilder.java | 2 +- .../google/pubsub/v1/ListTopicsRequest.java | 30 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 10 +- .../google/pubsub/v1/ListTopicsResponse.java | 2 +- .../v1/ListTopicsResponseOrBuilder.java | 2 +- .../pubsub/v1/MessageStoragePolicy.java | 2 +- .../v1/MessageStoragePolicyOrBuilder.java | 2 +- .../google/pubsub/v1/MessageTransform.java | 375 ++- .../pubsub/v1/MessageTransformOrBuilder.java | 50 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 2 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 2 +- .../pubsub/v1/ModifyPushConfigRequest.java | 2 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 2 +- .../pubsub/v1/PlatformLogsSettings.java | 2 +- .../v1/PlatformLogsSettingsOrBuilder.java | 2 +- .../com/google/pubsub/v1/ProjectName.java | 2 +- .../com/google/pubsub/v1/PublishRequest.java | 44 +- .../pubsub/v1/PublishRequestOrBuilder.java | 14 +- .../com/google/pubsub/v1/PublishResponse.java | 2 +- .../pubsub/v1/PublishResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubMessage.java | 2 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/PubsubProto.java | 617 ++--- .../com/google/pubsub/v1/PullRequest.java | 10 +- .../pubsub/v1/PullRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/PullResponse.java | 2 +- .../pubsub/v1/PullResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/PushConfig.java | 2 +- .../google/pubsub/v1/PushConfigOrBuilder.java | 2 +- .../com/google/pubsub/v1/ReceivedMessage.java | 2 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 2 +- .../com/google/pubsub/v1/RetryPolicy.java | 2 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 2 +- .../pubsub/v1/RollbackSchemaRequest.java | 2 +- .../v1/RollbackSchemaRequestOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Schema.java | 2 +- .../java/com/google/pubsub/v1/SchemaName.java | 2 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 2 +- .../com/google/pubsub/v1/SchemaProto.java | 2 +- .../com/google/pubsub/v1/SchemaSettings.java | 2 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/SchemaView.java | 2 +- .../com/google/pubsub/v1/SeekRequest.java | 2 +- .../pubsub/v1/SeekRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/SeekResponse.java | 2 +- .../pubsub/v1/SeekResponseOrBuilder.java | 2 +- .../java/com/google/pubsub/v1/Snapshot.java | 2 +- .../com/google/pubsub/v1/SnapshotName.java | 2 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullRequest.java | 2 +- .../v1/StreamingPullRequestOrBuilder.java | 2 +- .../pubsub/v1/StreamingPullResponse.java | 2 +- .../v1/StreamingPullResponseOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 48 +- .../google/pubsub/v1/SubscriptionName.java | 2 +- .../pubsub/v1/SubscriptionOrBuilder.java | 18 +- .../main/java/com/google/pubsub/v1/Topic.java | 24 +- .../java/com/google/pubsub/v1/TopicName.java | 2 +- .../com/google/pubsub/v1/TopicOrBuilder.java | 12 +- .../pubsub/v1/UpdateSnapshotRequest.java | 2 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 2 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 2 +- .../UpdateSubscriptionRequestOrBuilder.java | 2 +- .../google/pubsub/v1/UpdateTopicRequest.java | 2 +- .../v1/UpdateTopicRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageRequest.java | 2 +- .../v1/ValidateMessageRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateMessageResponse.java | 2 +- .../v1/ValidateMessageResponseOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaRequest.java | 2 +- .../v1/ValidateSchemaRequestOrBuilder.java | 2 +- .../pubsub/v1/ValidateSchemaResponse.java | 2 +- .../v1/ValidateSchemaResponseOrBuilder.java | 2 +- .../main/proto/google/pubsub/v1/pubsub.proto | 102 +- .../main/proto/google/pubsub/v1/schema.proto | 2 +- 196 files changed, 3816 insertions(+), 870 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInference.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInferenceOrBuilder.java diff --git a/java-pubsub/.github/scripts/update_generation_config.sh b/java-pubsub/.github/scripts/update_generation_config.sh index 92efcf881914..74d0e6cc4105 100644 --- a/java-pubsub/.github/scripts/update_generation_config.sh +++ b/java-pubsub/.github/scripts/update_generation_config.sh @@ -18,7 +18,17 @@ function get_latest_released_version() { group_id_url_path="$(sed 's|\.|/|g' <<< "${group_id}")" url="https://repo1.maven.org/maven2/${group_id_url_path}/${artifact_id}/maven-metadata.xml" xml_content=$(curl -s --fail "${url}") - latest=$(xmllint --xpath 'metadata/versioning/latest/text()' - <<< "${xml_content}") + + # 1. Extract all version tags + # 2. Strip the XML tags to leave just the version numbers + # 3. Filter for strictly numbers.numbers.numbers (e.g., 2.54.0) + # 4. Sort by version (V) and take the last one (tail -n 1) + latest=$(echo "${xml_content}" \ + | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' \ + | sed -E 's/<[^>]+>//g' \ + | sort -V \ + | tail -n 1) + if [[ -z "${latest}" ]]; then echo "The latest version of ${group_id}:${artifact_id} is empty." echo "The returned json from maven.org is invalid: ${json_content}" diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 406018c48a5f..623fedf2040a 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.54.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.55.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 60c82d4bf4fc..bee69fa91d3e 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.54.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.55.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 60982adf5a35..b742f6ec44c7 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.54.2" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.55.1" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 5a62af019592..2b368903f5b1 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.72.0') +implementation platform('com.google.cloud:libraries-bom:26.74.0-rc2') implementation 'com.google.cloud:google-cloud-pubsub' ``` @@ -395,29 +395,10 @@ information. Apache 2.0 - See [LICENSE][license] for more information. -## CI Status - -Java Version | Status ------------- | ------ -Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] -Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] -Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] -Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] - Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://cloud.google.com/pubsub/docs/ [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history -[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.svg -[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java7.html -[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.svg -[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8.html -[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-osx.svg -[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-osx.html -[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-win.svg -[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java8-win.html -[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.svg -[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsub/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg [maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.144.1 diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 9e1744dd297e..9349681119df 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.64.2 -googleapis_commitish: b32495a713a68dd0dff90cf0b24021debfca048a -libraries_bom_version: 26.72.0 +gapic_generator_version: 2.65.1 +googleapis_commitish: 615bb9acb1d978c497cf2268450c6e6c3e8be049 +libraries_bom_version: 26.74.0-rc2 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 6c0fc95fee8a..74f1e9f1f71b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index 5482df5766c4..44585d85c7f5 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,8 +103,8 @@ * } * * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. */ @Generated("by gapic-generator-java") public class SchemaServiceSettings extends ClientSettings { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 828bbea14835..d82b6afa4d61 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1179,7 +1179,7 @@ public final UnaryCallable createSubscriptionCallabl * } * } * - * @param subscription Required. Identifier. The name of the subscription to get. Format is + * @param subscription Required. The name of the subscription to get. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1209,7 +1209,7 @@ public final Subscription getSubscription(SubscriptionName subscription) { * } * } * - * @param subscription Required. Identifier. The name of the subscription to get. Format is + * @param subscription Required. The name of the subscription to get. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1416,8 +1416,8 @@ public final UnaryCallable updateSubscr * } * } * - * @param project Required. Identifier. The name of the project in which to list subscriptions. - * Format is `projects/{project-id}`. + * @param project Required. The name of the project in which to list subscriptions. Format is + * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName project) { @@ -1448,8 +1448,8 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ProjectName projec * } * } * - * @param project Required. Identifier. The name of the project in which to list subscriptions. - * Format is `projects/{project-id}`. + * @param project Required. The name of the project in which to list subscriptions. Format is + * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSubscriptionsPagedResponse listSubscriptions(String project) { @@ -1584,7 +1584,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * } * } * - * @param subscription Required. Identifier. The subscription to delete. Format is + * @param subscription Required. The subscription to delete. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1617,7 +1617,7 @@ public final void deleteSubscription(SubscriptionName subscription) { * } * } * - * @param subscription Required. Identifier. The subscription to delete. Format is + * @param subscription Required. The subscription to delete. Format is * `projects/{project}/subscriptions/{sub}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2631,7 +2631,7 @@ public final UnaryCallable modifyPushConfigCalla * } * } * - * @param snapshot Required. Identifier. The name of the snapshot to get. Format is + * @param snapshot Required. The name of the snapshot to get. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2664,7 +2664,7 @@ public final Snapshot getSnapshot(SnapshotName snapshot) { * } * } * - * @param snapshot Required. Identifier. The name of the snapshot to get. Format is + * @param snapshot Required. The name of the snapshot to get. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2788,8 +2788,8 @@ public final UnaryCallable getSnapshotCallable() { * } * } * - * @param project Required. Identifier. The name of the project in which to list snapshots. Format - * is `projects/{project-id}`. + * @param project Required. The name of the project in which to list snapshots. Format is + * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { @@ -2823,8 +2823,8 @@ public final ListSnapshotsPagedResponse listSnapshots(ProjectName project) { * } * } * - * @param project Required. Identifier. The name of the project in which to list snapshots. Format - * is `projects/{project-id}`. + * @param project Required. The name of the project in which to list snapshots. Format is + * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSnapshotsPagedResponse listSnapshots(String project) { @@ -2975,11 +2975,10 @@ public final UnaryCallable listSnap * } * } * - * @param name Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3029,11 +3028,10 @@ public final Snapshot createSnapshot(SnapshotName name, SubscriptionName subscri * } * } * - * @param name Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3083,11 +3081,10 @@ public final Snapshot createSnapshot(SnapshotName name, String subscription) { * } * } * - * @param name Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3137,11 +3134,10 @@ public final Snapshot createSnapshot(String name, SubscriptionName subscription) * } * } * - * @param name Required. Identifier. 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is + * @param name 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). Format is * `projects/{project}/snapshots/{snap}`. * @param subscription Required. The subscription whose backlog the snapshot retains. * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the @@ -3514,7 +3510,7 @@ public final UnaryCallable updateSnapshotCallab * } * } * - * @param snapshot Required. Identifier. The name of the snapshot to delete. Format is + * @param snapshot Required. The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -3550,7 +3546,7 @@ public final void deleteSnapshot(SnapshotName snapshot) { * } * } * - * @param snapshot Required. Identifier. The name of the snapshot to delete. Format is + * @param snapshot Required. The name of the snapshot to delete. Format is * `projects/{project}/snapshots/{snap}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index ccbf48885fb0..8fe62a63f574 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -112,8 +112,8 @@ * } * * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. */ @Generated("by gapic-generator-java") public class SubscriptionAdminSettings extends ClientSettings { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java index d5433f8eedb9..91dfd103e688 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -682,8 +682,8 @@ public final UnaryCallable updateTopicCallable() { * } * } * - * @param topic Required. Identifier. The messages in the request will be published on this topic. - * Format is `projects/{project}/topics/{topic}`. + * @param topic Required. The messages in the request will be published on this topic. Format is + * `projects/{project}/topics/{topic}`. * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -715,8 +715,8 @@ public final PublishResponse publish(TopicName topic, List messag * } * } * - * @param topic Required. Identifier. The messages in the request will be published on this topic. - * Format is `projects/{project}/topics/{topic}`. + * @param topic Required. The messages in the request will be published on this topic. Format is + * `projects/{project}/topics/{topic}`. * @param messages Required. The messages to publish. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -801,7 +801,7 @@ public final UnaryCallable publishCallable() { * } * } * - * @param topic Required. Identifier. The name of the topic to get. Format is + * @param topic Required. The name of the topic to get. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -829,7 +829,7 @@ public final Topic getTopic(TopicName topic) { * } * } * - * @param topic Required. Identifier. The name of the topic to get. Format is + * @param topic Required. The name of the topic to get. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -938,7 +938,7 @@ public final UnaryCallable getTopicCallable() { * } * } * - * @param project Required. Identifier. The name of the project in which to list topics. Format is + * @param project Required. The name of the project in which to list topics. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -970,7 +970,7 @@ public final ListTopicsPagedResponse listTopics(ProjectName project) { * } * } * - * @param project Required. Identifier. The name of the project in which to list topics. Format is + * @param project Required. The name of the project in which to list topics. Format is * `projects/{project-id}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1481,7 +1481,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * } * } * - * @param topic Required. Identifier. Name of the topic to delete. Format is + * @param topic Required. Name of the topic to delete. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1512,7 +1512,7 @@ public final void deleteTopic(TopicName topic) { * } * } * - * @param topic Required. Identifier. Name of the topic to delete. Format is + * @param topic Required. Name of the topic to delete. Format is * `projects/{project}/topics/{topic}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java index 927b61b2c3fa..4928dd762597 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -104,8 +104,8 @@ * } * * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. */ @Generated("by gapic-generator-java") public class TopicAdminSettings extends ClientSettings { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java index 28c492a1597d..a85a38b2b423 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index c6ed494805b1..92adc0c86116 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index df360653ce50..aca63c6bca6d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java index c1cce2d8e710..16236bc4bd0d 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index 592a17bf52ee..403a90e192ed 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index fe083befe73f..8249a721942b 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index 8c08d2ad39de..7669b2cd6129 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java index 8a3a1c5770e3..f9da3ee7f673 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java index fb668a667bb6..09c5f83f8eaf 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonPublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java index 14136bdc58ec..b725059aaf2e 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java index 8816b63adc56..0b9a729a47ea 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java index 336a8bdefaf2..a719f85ef8f6 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java index 3b6a28ee6c9e..4bb0774b8c90 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/HttpJsonSubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 1d8945a237b0..5c7f9d6a89be 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 8f039bbe970e..f8f9d766a782 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -131,8 +131,8 @@ * } * * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. */ @Generated("by gapic-generator-java") public class PublisherStubSettings extends StubSettings { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java index 2bfcab794be7..a0335a4b1fed 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 8964e9c422fa..3f728307cf3c 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -122,8 +122,8 @@ * } * * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. */ @Generated("by gapic-generator-java") public class SchemaServiceStubSettings extends StubSettings { diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index 9152cd6a26c7..115a2f2c82ae 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 0824d628bcf8..e3489bb58079 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -130,8 +130,8 @@ * } * * Please refer to the [Client Side Retry - * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for - * additional support in setting retries. + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. */ @Generated("by gapic-generator-java") public class SubscriberStubSettings extends StubSettings { diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index fb920745f187..4aacf99cbcbe 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -1439,6 +1439,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Timestamp", "queryAllDeclaredConstructors": true, @@ -1457,6 +1502,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.AIInference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.AIInference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.AIInference$UnstructuredInference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.AIInference$UnstructuredInference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.AcknowledgeRequest", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java index ee510a051ead..3c447fc4f4fe 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java index f686ce75c535..9b3838e1f125 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockIAMPolicyImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java index 239ed0369012..f992f4bbab2d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisher.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java index e01c205a60dd..5e9ecad09837 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockPublisherImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java index 838d5fbc689e..e986b7ed54e8 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaService.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java index 71c5edb3416e..92c412f103c6 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSchemaServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java index 067dcd86157a..a0547f660e95 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriber.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java index cd711d2a2a7c..81d0ddef2333 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MockSubscriberImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java index a8fcaedc65ff..1d15eafde042 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java index 7e354bf49866..f17ef1366999 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SchemaServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 860eb95ce525..128e6e2f6c6a 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 480e7ceaa94f..552249455cae 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java index 44488abc6d59..70165e3a2b86 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientHttpJsonTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java index 2ad693de38a2..5774110a40e8 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java index 8ee09f14e3fe..16c28e9cc74d 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublisherGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java index 59fbec01b736..d08c72904fcc 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaServiceGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java index 26003fb0e615..8e3a8dc135c0 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriberGrpc.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/owlbot.py b/java-pubsub/owlbot.py index 1ef474bc49cf..cf50f5e65afe 100644 --- a/java-pubsub/owlbot.py +++ b/java-pubsub/owlbot.py @@ -1069,11 +1069,6 @@ r'setMaxInboundMessageSize\(Integer.MAX_VALUE\)', 'setMaxInboundMessageSize(20 << 20)' ) - s.replace( - f"proto-google-cloud-{service}-{version}/src/**/*.java", - java.BAD_LICENSE, - java.GOOD_LICENSE, - ) s.replace( '**/TopicAdminClient.java', diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInference.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInference.java new file mode 100644 index 000000000000..2bb8e168210c --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInference.java @@ -0,0 +1,2101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.pubsub.v1; + +/** + * + * + *
      + * Configuration for making inference requests against Vertex AI models.
      + * 
      + * + * Protobuf type {@code google.pubsub.v1.AIInference} + */ +public final class AIInference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.AIInference) + AIInferenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AIInference.newBuilder() to construct. + private AIInference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AIInference() { + endpoint_ = ""; + serviceAccountEmail_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AIInference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AIInference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AIInference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.AIInference.class, com.google.pubsub.v1.AIInference.Builder.class); + } + + public interface UnstructuredInferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.AIInference.UnstructuredInference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +     * Optional. A parameters object to be included in each inference request.
      +     * The parameters object is combined with the data field of the Pub/Sub
      +     * message to form the inference request.
      +     * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + boolean hasParameters(); + + /** + * + * + *
      +     * Optional. A parameters object to be included in each inference request.
      +     * The parameters object is combined with the data field of the Pub/Sub
      +     * message to form the inference request.
      +     * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + com.google.protobuf.Struct getParameters(); + + /** + * + * + *
      +     * Optional. A parameters object to be included in each inference request.
      +     * The parameters object is combined with the data field of the Pub/Sub
      +     * message to form the inference request.
      +     * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getParametersOrBuilder(); + } + + /** + * + * + *
      +   * Configuration for making inferences using arbitrary JSON payloads.
      +   * 
      + * + * Protobuf type {@code google.pubsub.v1.AIInference.UnstructuredInference} + */ + public static final class UnstructuredInference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.AIInference.UnstructuredInference) + UnstructuredInferenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UnstructuredInference.newBuilder() to construct. + private UnstructuredInference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnstructuredInference() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnstructuredInference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AIInference_UnstructuredInference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AIInference_UnstructuredInference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.AIInference.UnstructuredInference.class, + com.google.pubsub.v1.AIInference.UnstructuredInference.Builder.class); + } + + private int bitField0_; + public static final int PARAMETERS_FIELD_NUMBER = 1; + private com.google.protobuf.Struct parameters_; + + /** + * + * + *
      +     * Optional. A parameters object to be included in each inference request.
      +     * The parameters object is combined with the data field of the Pub/Sub
      +     * message to form the inference request.
      +     * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + @java.lang.Override + public boolean hasParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +     * Optional. A parameters object to be included in each inference request.
      +     * The parameters object is combined with the data field of the Pub/Sub
      +     * message to form the inference request.
      +     * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getParameters() { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + + /** + * + * + *
      +     * Optional. A parameters object to be included in each inference request.
      +     * The parameters object is combined with the data field of the Pub/Sub
      +     * message to form the inference request.
      +     * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getParameters()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.AIInference.UnstructuredInference)) { + return super.equals(obj); + } + com.google.pubsub.v1.AIInference.UnstructuredInference other = + (com.google.pubsub.v1.AIInference.UnstructuredInference) obj; + + if (hasParameters() != other.hasParameters()) return false; + if (hasParameters()) { + if (!getParameters().equals(other.getParameters())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasParameters()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.pubsub.v1.AIInference.UnstructuredInference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +     * Configuration for making inferences using arbitrary JSON payloads.
      +     * 
      + * + * Protobuf type {@code google.pubsub.v1.AIInference.UnstructuredInference} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.AIInference.UnstructuredInference) + com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AIInference_UnstructuredInference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AIInference_UnstructuredInference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.AIInference.UnstructuredInference.class, + com.google.pubsub.v1.AIInference.UnstructuredInference.Builder.class); + } + + // Construct using com.google.pubsub.v1.AIInference.UnstructuredInference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AIInference_UnstructuredInference_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.AIInference.UnstructuredInference getDefaultInstanceForType() { + return com.google.pubsub.v1.AIInference.UnstructuredInference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.AIInference.UnstructuredInference build() { + com.google.pubsub.v1.AIInference.UnstructuredInference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.AIInference.UnstructuredInference buildPartial() { + com.google.pubsub.v1.AIInference.UnstructuredInference result = + new com.google.pubsub.v1.AIInference.UnstructuredInference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.AIInference.UnstructuredInference result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameters_ = + parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.AIInference.UnstructuredInference) { + return mergeFrom((com.google.pubsub.v1.AIInference.UnstructuredInference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.AIInference.UnstructuredInference other) { + if (other == com.google.pubsub.v1.AIInference.UnstructuredInference.getDefaultInstance()) + return this; + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Struct parameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + parametersBuilder_; + + /** + * + * + *
      +       * Optional. A parameters object to be included in each inference request.
      +       * The parameters object is combined with the data field of the Pub/Sub
      +       * message to form the inference request.
      +       * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the parameters field is set. + */ + public boolean hasParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
      +       * Optional. A parameters object to be included in each inference request.
      +       * The parameters object is combined with the data field of the Pub/Sub
      +       * message to form the inference request.
      +       * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The parameters. + */ + public com.google.protobuf.Struct getParameters() { + if (parametersBuilder_ == null) { + return parameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : parameters_; + } else { + return parametersBuilder_.getMessage(); + } + } + + /** + * + * + *
      +       * Optional. A parameters object to be included in each inference request.
      +       * The parameters object is combined with the data field of the Pub/Sub
      +       * message to form the inference request.
      +       * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(com.google.protobuf.Struct value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameters_ = value; + } else { + parametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A parameters object to be included in each inference request.
      +       * The parameters object is combined with the data field of the Pub/Sub
      +       * message to form the inference request.
      +       * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (parametersBuilder_ == null) { + parameters_ = builderForValue.build(); + } else { + parametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A parameters object to be included in each inference request.
      +       * The parameters object is combined with the data field of the Pub/Sub
      +       * message to form the inference request.
      +       * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeParameters(com.google.protobuf.Struct value) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); + } else { + parameters_ = value; + } + } else { + parametersBuilder_.mergeFrom(value); + } + if (parameters_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
      +       * Optional. A parameters object to be included in each inference request.
      +       * The parameters object is combined with the data field of the Pub/Sub
      +       * message to form the inference request.
      +       * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000001); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); + parametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +       * Optional. A parameters object to be included in each inference request.
      +       * The parameters object is combined with the data field of the Pub/Sub
      +       * message to form the inference request.
      +       * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getParametersBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +       * Optional. A parameters object to be included in each inference request.
      +       * The parameters object is combined with the data field of the Pub/Sub
      +       * message to form the inference request.
      +       * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilder(); + } else { + return parameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : parameters_; + } + } + + /** + * + * + *
      +       * Optional. A parameters object to be included in each inference request.
      +       * The parameters object is combined with the data field of the Pub/Sub
      +       * message to form the inference request.
      +       * 
      + * + * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getParameters(), getParentForChildren(), isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.AIInference.UnstructuredInference) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.AIInference.UnstructuredInference) + private static final com.google.pubsub.v1.AIInference.UnstructuredInference DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.AIInference.UnstructuredInference(); + } + + public static com.google.pubsub.v1.AIInference.UnstructuredInference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnstructuredInference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.AIInference.UnstructuredInference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int inferenceModeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object inferenceMode_; + + public enum InferenceModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + UNSTRUCTURED_INFERENCE(2), + INFERENCEMODE_NOT_SET(0); + private final int value; + + private InferenceModeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InferenceModeCase valueOf(int value) { + return forNumber(value); + } + + public static InferenceModeCase forNumber(int value) { + switch (value) { + case 2: + return UNSTRUCTURED_INFERENCE; + case 0: + return INFERENCEMODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InferenceModeCase getInferenceModeCase() { + return InferenceModeCase.forNumber(inferenceModeCase_); + } + + public static final int ENDPOINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; + + /** + * + * + *
      +   * Required. An endpoint to a Vertex AI model of the form
      +   * `projects/{project}/locations/{location}/endpoints/{endpoint}` or
      +   * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
      +   * Vertex AI API requests will be sent to this endpoint.
      +   * 
      + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } + } + + /** + * + * + *
      +   * Required. An endpoint to a Vertex AI model of the form
      +   * `projects/{project}/locations/{location}/endpoints/{endpoint}` or
      +   * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
      +   * Vertex AI API requests will be sent to this endpoint.
      +   * 
      + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNSTRUCTURED_INFERENCE_FIELD_NUMBER = 2; + + /** + * + * + *
      +   * Optional. Requests and responses can be any arbitrary JSON object.
      +   * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unstructuredInference field is set. + */ + @java.lang.Override + public boolean hasUnstructuredInference() { + return inferenceModeCase_ == 2; + } + + /** + * + * + *
      +   * Optional. Requests and responses can be any arbitrary JSON object.
      +   * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unstructuredInference. + */ + @java.lang.Override + public com.google.pubsub.v1.AIInference.UnstructuredInference getUnstructuredInference() { + if (inferenceModeCase_ == 2) { + return (com.google.pubsub.v1.AIInference.UnstructuredInference) inferenceMode_; + } + return com.google.pubsub.v1.AIInference.UnstructuredInference.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. Requests and responses can be any arbitrary JSON object.
      +   * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder + getUnstructuredInferenceOrBuilder() { + if (inferenceModeCase_ == 2) { + return (com.google.pubsub.v1.AIInference.UnstructuredInference) inferenceMode_; + } + return com.google.pubsub.v1.AIInference.UnstructuredInference.getDefaultInstance(); + } + + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountEmail_ = ""; + + /** + * + * + *
      +   * Optional. The service account to use to make prediction requests against
      +   * endpoints. The resource creator or updater that specifies this field must
      +   * have `iam.serviceAccounts.actAs` permission on the service account. If not
      +   * specified, the Pub/Sub [service
      +   * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
      +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +   * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + @java.lang.Override + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The service account to use to make prediction requests against
      +   * endpoints. The resource creator or updater that specifies this field must
      +   * have `iam.serviceAccounts.actAs` permission on the service account. If not
      +   * specified, the Pub/Sub [service
      +   * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
      +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +   * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); + } + if (inferenceModeCase_ == 2) { + output.writeMessage( + 2, (com.google.pubsub.v1.AIInference.UnstructuredInference) inferenceMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountEmail_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); + } + if (inferenceModeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.pubsub.v1.AIInference.UnstructuredInference) inferenceMode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceAccountEmail_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.AIInference)) { + return super.equals(obj); + } + com.google.pubsub.v1.AIInference other = (com.google.pubsub.v1.AIInference) obj; + + if (!getEndpoint().equals(other.getEndpoint())) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (!getInferenceModeCase().equals(other.getInferenceModeCase())) return false; + switch (inferenceModeCase_) { + case 2: + if (!getUnstructuredInference().equals(other.getUnstructuredInference())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); + switch (inferenceModeCase_) { + case 2: + hash = (37 * hash) + UNSTRUCTURED_INFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getUnstructuredInference().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.AIInference parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.AIInference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.AIInference parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.AIInference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.AIInference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.AIInference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.AIInference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.AIInference parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.AIInference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.AIInference parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.AIInference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.AIInference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.AIInference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration for making inference requests against Vertex AI models.
      +   * 
      + * + * Protobuf type {@code google.pubsub.v1.AIInference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.AIInference) + com.google.pubsub.v1.AIInferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AIInference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AIInference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.AIInference.class, + com.google.pubsub.v1.AIInference.Builder.class); + } + + // Construct using com.google.pubsub.v1.AIInference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpoint_ = ""; + if (unstructuredInferenceBuilder_ != null) { + unstructuredInferenceBuilder_.clear(); + } + serviceAccountEmail_ = ""; + inferenceModeCase_ = 0; + inferenceMode_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_AIInference_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.AIInference getDefaultInstanceForType() { + return com.google.pubsub.v1.AIInference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.AIInference build() { + com.google.pubsub.v1.AIInference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.AIInference buildPartial() { + com.google.pubsub.v1.AIInference result = new com.google.pubsub.v1.AIInference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.AIInference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serviceAccountEmail_ = serviceAccountEmail_; + } + } + + private void buildPartialOneofs(com.google.pubsub.v1.AIInference result) { + result.inferenceModeCase_ = inferenceModeCase_; + result.inferenceMode_ = this.inferenceMode_; + if (inferenceModeCase_ == 2 && unstructuredInferenceBuilder_ != null) { + result.inferenceMode_ = unstructuredInferenceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.AIInference) { + return mergeFrom((com.google.pubsub.v1.AIInference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.AIInference other) { + if (other == com.google.pubsub.v1.AIInference.getDefaultInstance()) return this; + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getInferenceModeCase()) { + case UNSTRUCTURED_INFERENCE: + { + mergeUnstructuredInference(other.getUnstructuredInference()); + break; + } + case INFERENCEMODE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + endpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getUnstructuredInferenceFieldBuilder().getBuilder(), extensionRegistry); + inferenceModeCase_ = 2; + break; + } // case 18 + case 26: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int inferenceModeCase_ = 0; + private java.lang.Object inferenceMode_; + + public InferenceModeCase getInferenceModeCase() { + return InferenceModeCase.forNumber(inferenceModeCase_); + } + + public Builder clearInferenceMode() { + inferenceModeCase_ = 0; + inferenceMode_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object endpoint_ = ""; + + /** + * + * + *
      +     * Required. An endpoint to a Vertex AI model of the form
      +     * `projects/{project}/locations/{location}/endpoints/{endpoint}` or
      +     * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
      +     * Vertex AI API requests will be sent to this endpoint.
      +     * 
      + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Required. An endpoint to a Vertex AI model of the form
      +     * `projects/{project}/locations/{location}/endpoints/{endpoint}` or
      +     * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
      +     * Vertex AI API requests will be sent to this endpoint.
      +     * 
      + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Required. An endpoint to a Vertex AI model of the form
      +     * `projects/{project}/locations/{location}/endpoints/{endpoint}` or
      +     * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
      +     * Vertex AI API requests will be sent to this endpoint.
      +     * 
      + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. An endpoint to a Vertex AI model of the form
      +     * `projects/{project}/locations/{location}/endpoints/{endpoint}` or
      +     * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
      +     * Vertex AI API requests will be sent to this endpoint.
      +     * 
      + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Required. An endpoint to a Vertex AI model of the form
      +     * `projects/{project}/locations/{location}/endpoints/{endpoint}` or
      +     * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
      +     * Vertex AI API requests will be sent to this endpoint.
      +     * 
      + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.AIInference.UnstructuredInference, + com.google.pubsub.v1.AIInference.UnstructuredInference.Builder, + com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder> + unstructuredInferenceBuilder_; + + /** + * + * + *
      +     * Optional. Requests and responses can be any arbitrary JSON object.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unstructuredInference field is set. + */ + @java.lang.Override + public boolean hasUnstructuredInference() { + return inferenceModeCase_ == 2; + } + + /** + * + * + *
      +     * Optional. Requests and responses can be any arbitrary JSON object.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unstructuredInference. + */ + @java.lang.Override + public com.google.pubsub.v1.AIInference.UnstructuredInference getUnstructuredInference() { + if (unstructuredInferenceBuilder_ == null) { + if (inferenceModeCase_ == 2) { + return (com.google.pubsub.v1.AIInference.UnstructuredInference) inferenceMode_; + } + return com.google.pubsub.v1.AIInference.UnstructuredInference.getDefaultInstance(); + } else { + if (inferenceModeCase_ == 2) { + return unstructuredInferenceBuilder_.getMessage(); + } + return com.google.pubsub.v1.AIInference.UnstructuredInference.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Requests and responses can be any arbitrary JSON object.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUnstructuredInference( + com.google.pubsub.v1.AIInference.UnstructuredInference value) { + if (unstructuredInferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inferenceMode_ = value; + onChanged(); + } else { + unstructuredInferenceBuilder_.setMessage(value); + } + inferenceModeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Requests and responses can be any arbitrary JSON object.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUnstructuredInference( + com.google.pubsub.v1.AIInference.UnstructuredInference.Builder builderForValue) { + if (unstructuredInferenceBuilder_ == null) { + inferenceMode_ = builderForValue.build(); + onChanged(); + } else { + unstructuredInferenceBuilder_.setMessage(builderForValue.build()); + } + inferenceModeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Requests and responses can be any arbitrary JSON object.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUnstructuredInference( + com.google.pubsub.v1.AIInference.UnstructuredInference value) { + if (unstructuredInferenceBuilder_ == null) { + if (inferenceModeCase_ == 2 + && inferenceMode_ + != com.google.pubsub.v1.AIInference.UnstructuredInference.getDefaultInstance()) { + inferenceMode_ = + com.google.pubsub.v1.AIInference.UnstructuredInference.newBuilder( + (com.google.pubsub.v1.AIInference.UnstructuredInference) inferenceMode_) + .mergeFrom(value) + .buildPartial(); + } else { + inferenceMode_ = value; + } + onChanged(); + } else { + if (inferenceModeCase_ == 2) { + unstructuredInferenceBuilder_.mergeFrom(value); + } else { + unstructuredInferenceBuilder_.setMessage(value); + } + } + inferenceModeCase_ = 2; + return this; + } + + /** + * + * + *
      +     * Optional. Requests and responses can be any arbitrary JSON object.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUnstructuredInference() { + if (unstructuredInferenceBuilder_ == null) { + if (inferenceModeCase_ == 2) { + inferenceModeCase_ = 0; + inferenceMode_ = null; + onChanged(); + } + } else { + if (inferenceModeCase_ == 2) { + inferenceModeCase_ = 0; + inferenceMode_ = null; + } + unstructuredInferenceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. Requests and responses can be any arbitrary JSON object.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.AIInference.UnstructuredInference.Builder + getUnstructuredInferenceBuilder() { + return getUnstructuredInferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. Requests and responses can be any arbitrary JSON object.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder + getUnstructuredInferenceOrBuilder() { + if ((inferenceModeCase_ == 2) && (unstructuredInferenceBuilder_ != null)) { + return unstructuredInferenceBuilder_.getMessageOrBuilder(); + } else { + if (inferenceModeCase_ == 2) { + return (com.google.pubsub.v1.AIInference.UnstructuredInference) inferenceMode_; + } + return com.google.pubsub.v1.AIInference.UnstructuredInference.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. Requests and responses can be any arbitrary JSON object.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.AIInference.UnstructuredInference, + com.google.pubsub.v1.AIInference.UnstructuredInference.Builder, + com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder> + getUnstructuredInferenceFieldBuilder() { + if (unstructuredInferenceBuilder_ == null) { + if (!(inferenceModeCase_ == 2)) { + inferenceMode_ = + com.google.pubsub.v1.AIInference.UnstructuredInference.getDefaultInstance(); + } + unstructuredInferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.AIInference.UnstructuredInference, + com.google.pubsub.v1.AIInference.UnstructuredInference.Builder, + com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder>( + (com.google.pubsub.v1.AIInference.UnstructuredInference) inferenceMode_, + getParentForChildren(), + isClean()); + inferenceMode_ = null; + } + inferenceModeCase_ = 2; + onChanged(); + return unstructuredInferenceBuilder_; + } + + private java.lang.Object serviceAccountEmail_ = ""; + + /** + * + * + *
      +     * Optional. The service account to use to make prediction requests against
      +     * endpoints. The resource creator or updater that specifies this field must
      +     * have `iam.serviceAccounts.actAs` permission on the service account. If not
      +     * specified, the Pub/Sub [service
      +     * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
      +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +     * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The service account to use to make prediction requests against
      +     * endpoints. The resource creator or updater that specifies this field must
      +     * have `iam.serviceAccounts.actAs` permission on the service account. If not
      +     * specified, the Pub/Sub [service
      +     * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
      +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +     * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The service account to use to make prediction requests against
      +     * endpoints. The resource creator or updater that specifies this field must
      +     * have `iam.serviceAccounts.actAs` permission on the service account. If not
      +     * specified, the Pub/Sub [service
      +     * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
      +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +     * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountEmail_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The service account to use to make prediction requests against
      +     * endpoints. The resource creator or updater that specifies this field must
      +     * have `iam.serviceAccounts.actAs` permission on the service account. If not
      +     * specified, the Pub/Sub [service
      +     * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
      +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +     * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountEmail() { + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The service account to use to make prediction requests against
      +     * endpoints. The resource creator or updater that specifies this field must
      +     * have `iam.serviceAccounts.actAs` permission on the service account. If not
      +     * specified, the Pub/Sub [service
      +     * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
      +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +     * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.AIInference) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.AIInference) + private static final com.google.pubsub.v1.AIInference DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.AIInference(); + } + + public static com.google.pubsub.v1.AIInference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AIInference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.AIInference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInferenceOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInferenceOrBuilder.java new file mode 100644 index 000000000000..e153fe0f6c0a --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInferenceOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/pubsub/v1/pubsub.proto + +// Protobuf Java Version: 3.25.8 +package com.google.pubsub.v1; + +public interface AIInferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.AIInference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Required. An endpoint to a Vertex AI model of the form
      +   * `projects/{project}/locations/{location}/endpoints/{endpoint}` or
      +   * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
      +   * Vertex AI API requests will be sent to this endpoint.
      +   * 
      + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endpoint. + */ + java.lang.String getEndpoint(); + + /** + * + * + *
      +   * Required. An endpoint to a Vertex AI model of the form
      +   * `projects/{project}/locations/{location}/endpoints/{endpoint}` or
      +   * `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`.
      +   * Vertex AI API requests will be sent to this endpoint.
      +   * 
      + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for endpoint. + */ + com.google.protobuf.ByteString getEndpointBytes(); + + /** + * + * + *
      +   * Optional. Requests and responses can be any arbitrary JSON object.
      +   * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the unstructuredInference field is set. + */ + boolean hasUnstructuredInference(); + + /** + * + * + *
      +   * Optional. Requests and responses can be any arbitrary JSON object.
      +   * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The unstructuredInference. + */ + com.google.pubsub.v1.AIInference.UnstructuredInference getUnstructuredInference(); + + /** + * + * + *
      +   * Optional. Requests and responses can be any arbitrary JSON object.
      +   * 
      + * + * + * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder + getUnstructuredInferenceOrBuilder(); + + /** + * + * + *
      +   * Optional. The service account to use to make prediction requests against
      +   * endpoints. The resource creator or updater that specifies this field must
      +   * have `iam.serviceAccounts.actAs` permission on the service account. If not
      +   * specified, the Pub/Sub [service
      +   * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
      +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +   * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + java.lang.String getServiceAccountEmail(); + + /** + * + * + *
      +   * Optional. The service account to use to make prediction requests against
      +   * endpoints. The resource creator or updater that specifies this field must
      +   * have `iam.serviceAccounts.actAs` permission on the service account. If not
      +   * specified, the Pub/Sub [service
      +   * agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents),
      +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +   * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString getServiceAccountEmailBytes(); + + com.google.pubsub.v1.AIInference.InferenceModeCase getInferenceModeCase(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index 219fba089a9f..c099a7ebba9a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index db4488150e10..653d92ff4a0a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 95239f904f08..97fa9fb33658 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -142,6 +142,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * IN_TRANSIT_LOCATION_RESTRICTION = 5; */ IN_TRANSIT_LOCATION_RESTRICTION(5), + /** + * + * + *
      +     * Cannot write to the BigQuery table because the table is not in the same
      +     * location as where Vertex AI models used in `message_transform`s are
      +     * deployed.
      +     * 
      + * + * VERTEX_AI_LOCATION_RESTRICTION = 6; + */ + VERTEX_AI_LOCATION_RESTRICTION(6), UNRECOGNIZED(-1), ; @@ -217,6 +229,19 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 5; + /** + * + * + *
      +     * Cannot write to the BigQuery table because the table is not in the same
      +     * location as where Vertex AI models used in `message_transform`s are
      +     * deployed.
      +     * 
      + * + * VERTEX_AI_LOCATION_RESTRICTION = 6; + */ + public static final int VERTEX_AI_LOCATION_RESTRICTION_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -253,6 +278,8 @@ public static State forNumber(int value) { return SCHEMA_MISMATCH; case 5: return IN_TRANSIT_LOCATION_RESTRICTION; + case 6: + return VERTEX_AI_LOCATION_RESTRICTION; default: return null; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index eaa9abaaa8c5..1b2ea3fb4b1f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index 3f2ecd9dbdec..ee19860da960 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -142,6 +142,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * SCHEMA_MISMATCH = 5; */ SCHEMA_MISMATCH(5), + /** + * + * + *
      +     * Cannot write to the Cloud Storage bucket because the bucket is not in the
      +     * same location as where Vertex AI models used in `message_transform`s are
      +     * deployed.
      +     * 
      + * + * VERTEX_AI_LOCATION_RESTRICTION = 6; + */ + VERTEX_AI_LOCATION_RESTRICTION(6), UNRECOGNIZED(-1), ; @@ -214,6 +226,19 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCHEMA_MISMATCH_VALUE = 5; + /** + * + * + *
      +     * Cannot write to the Cloud Storage bucket because the bucket is not in the
      +     * same location as where Vertex AI models used in `message_transform`s are
      +     * deployed.
      +     * 
      + * + * VERTEX_AI_LOCATION_RESTRICTION = 6; + */ + public static final int VERTEX_AI_LOCATION_RESTRICTION_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -250,6 +275,8 @@ public static State forNumber(int value) { return IN_TRANSIT_LOCATION_RESTRICTION; case 5: return SCHEMA_MISMATCH; + case 6: + return VERTEX_AI_LOCATION_RESTRICTION; default: return null; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index 207a691d7757..f977fa4f27d4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index 25d739ae3bbc..1332c756e897 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 47dbb75e3e2f..56989d944d7a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index 1f3ad6468e4e..acd8930c88a1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index 37e0d388c7cc..ab00cb816cdd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index b8c5201cdbae..1154fdf71f58 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -88,16 +88,16 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
      -   * Required. Identifier. 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
      +   * 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -119,16 +119,16 @@ public java.lang.String getName() { * * *
      -   * Required. Identifier. 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
      +   * 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -365,6 +365,8 @@ public int getTagsCount() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -394,6 +396,8 @@ public java.util.Map getTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -413,6 +417,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -439,6 +445,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -924,16 +932,16 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. 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
      +     * 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -954,16 +962,16 @@ public java.lang.String getName() { * * *
      -     * Required. Identifier. 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
      +     * 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -984,16 +992,16 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Required. Identifier. 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
      +     * 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The name to set. @@ -1013,16 +1021,16 @@ public Builder setName(java.lang.String value) { * * *
      -     * Required. Identifier. 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
      +     * 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1038,16 +1046,16 @@ public Builder clearName() { * * *
      -     * Required. Identifier. 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
      +     * 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for name to set. @@ -1438,6 +1446,8 @@ public int getTagsCount() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -1467,6 +1477,8 @@ public java.util.Map getTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -1486,6 +1498,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -1512,6 +1526,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -1544,6 +1560,8 @@ public Builder clearTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -1573,6 +1591,8 @@ public java.util.Map getMutableTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -1599,6 +1619,8 @@ public Builder putTags(java.lang.String key, java.lang.String value) { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 0c18c014a8ff..64f44c881e64 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,16 +28,16 @@ public interface CreateSnapshotRequestOrBuilder * * *
      -   * Required. Identifier. 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
      +   * 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The name. @@ -48,16 +48,16 @@ public interface CreateSnapshotRequestOrBuilder * * *
      -   * Required. Identifier. 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
      +   * 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for name. @@ -186,6 +186,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -202,6 +204,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -222,6 +226,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -238,6 +244,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -258,6 +266,8 @@ java.lang.String getTagsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java index 12a4c7312762..c2b1411cbd9f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CryptoKeyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index d809e9d6b527..1cc3cc2b7b74 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index 83159d59d87a..d67fffe5cc28 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index bd3f5758e416..3d7b9763e042 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 6c37bc269839..593d0e55fbee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index f0e5a1f76a2b..a47dbc26f17a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index f3a1d7ea3a62..c235befb16f6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 47083fed1135..739cf2e31be6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Identifier. The name of the snapshot to delete.
      +   * Required. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -100,12 +100,12 @@ public java.lang.String getSnapshot() { * * *
      -   * Required. Identifier. The name of the snapshot to delete.
      +   * Required. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -471,12 +471,12 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. The name of the snapshot to delete.
      +     * Required. The name of the snapshot to delete.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -497,12 +497,12 @@ public java.lang.String getSnapshot() { * * *
      -     * Required. Identifier. The name of the snapshot to delete.
      +     * Required. The name of the snapshot to delete.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -523,12 +523,12 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * *
      -     * Required. Identifier. The name of the snapshot to delete.
      +     * Required. The name of the snapshot to delete.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The snapshot to set. @@ -548,12 +548,12 @@ public Builder setSnapshot(java.lang.String value) { * * *
      -     * Required. Identifier. The name of the snapshot to delete.
      +     * Required. The name of the snapshot to delete.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -569,12 +569,12 @@ public Builder clearSnapshot() { * * *
      -     * Required. Identifier. The name of the snapshot to delete.
      +     * Required. The name of the snapshot to delete.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for snapshot to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 5a4dd6337872..590889fafdac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,12 @@ public interface DeleteSnapshotRequestOrBuilder * * *
      -   * Required. Identifier. The name of the snapshot to delete.
      +   * Required. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -44,12 +44,12 @@ public interface DeleteSnapshotRequestOrBuilder * * *
      -   * Required. Identifier. The name of the snapshot to delete.
      +   * Required. The name of the snapshot to delete.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 961fdf8a6a94..29349f8eede4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Identifier. The subscription to delete.
      +   * Required. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -100,12 +100,12 @@ public java.lang.String getSubscription() { * * *
      -   * Required. Identifier. The subscription to delete.
      +   * Required. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -471,12 +471,12 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. The subscription to delete.
      +     * Required. The subscription to delete.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -497,12 +497,12 @@ public java.lang.String getSubscription() { * * *
      -     * Required. Identifier. The subscription to delete.
      +     * Required. The subscription to delete.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -523,12 +523,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
      -     * Required. Identifier. The subscription to delete.
      +     * Required. The subscription to delete.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The subscription to set. @@ -548,12 +548,12 @@ public Builder setSubscription(java.lang.String value) { * * *
      -     * Required. Identifier. The subscription to delete.
      +     * Required. The subscription to delete.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -569,12 +569,12 @@ public Builder clearSubscription() { * * *
      -     * Required. Identifier. The subscription to delete.
      +     * Required. The subscription to delete.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for subscription to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 5ab0407d255e..0e11fa038d3d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,12 @@ public interface DeleteSubscriptionRequestOrBuilder * * *
      -   * Required. Identifier. The subscription to delete.
      +   * Required. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -44,12 +44,12 @@ public interface DeleteSubscriptionRequestOrBuilder * * *
      -   * Required. Identifier. The subscription to delete.
      +   * Required. The subscription to delete.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index 7171ad93c764..a6745ae7c5bc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Identifier. Name of the topic to delete.
      +   * Required. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -100,12 +100,12 @@ public java.lang.String getTopic() { * * *
      -   * Required. Identifier. Name of the topic to delete.
      +   * Required. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -470,12 +470,12 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. Name of the topic to delete.
      +     * Required. Name of the topic to delete.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -496,12 +496,12 @@ public java.lang.String getTopic() { * * *
      -     * Required. Identifier. Name of the topic to delete.
      +     * Required. Name of the topic to delete.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -522,12 +522,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
      -     * Required. Identifier. Name of the topic to delete.
      +     * Required. Name of the topic to delete.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The topic to set. @@ -547,12 +547,12 @@ public Builder setTopic(java.lang.String value) { * * *
      -     * Required. Identifier. Name of the topic to delete.
      +     * Required. Name of the topic to delete.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -568,12 +568,12 @@ public Builder clearTopic() { * * *
      -     * Required. Identifier. Name of the topic to delete.
      +     * Required. Name of the topic to delete.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for topic to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index a13a646fd8c8..15c4f573091a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,12 @@ public interface DeleteTopicRequestOrBuilder * * *
      -   * Required. Identifier. Name of the topic to delete.
      +   * Required. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -44,12 +44,12 @@ public interface DeleteTopicRequestOrBuilder * * *
      -   * Required. Identifier. Name of the topic to delete.
      +   * Required. Name of the topic to delete.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 8e3a863ce1bc..917c4e858015 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 49afe024065e..6c11a7fe5cfc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 53c87d21df70..79c55299c1cf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index b9e42c7cdaed..682f9e1cb8fe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index 12f4a8105fce..d69de2a1234c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index 708cc8ceca71..befa7a2aaafa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 2ae8cef699eb..010a45a28403 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index 8888f0179ba9..de72f6621b2a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 5b662fa6c4cc..5080570bbf79 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 716559f8b1fc..6cffab76dd16 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Identifier. The name of the snapshot to get.
      +   * Required. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -100,12 +100,12 @@ public java.lang.String getSnapshot() { * * *
      -   * Required. Identifier. The name of the snapshot to get.
      +   * Required. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -470,12 +470,12 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. The name of the snapshot to get.
      +     * Required. The name of the snapshot to get.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -496,12 +496,12 @@ public java.lang.String getSnapshot() { * * *
      -     * Required. Identifier. The name of the snapshot to get.
      +     * Required. The name of the snapshot to get.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. @@ -522,12 +522,12 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * * *
      -     * Required. Identifier. The name of the snapshot to get.
      +     * Required. The name of the snapshot to get.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The snapshot to set. @@ -547,12 +547,12 @@ public Builder setSnapshot(java.lang.String value) { * * *
      -     * Required. Identifier. The name of the snapshot to get.
      +     * Required. The name of the snapshot to get.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -568,12 +568,12 @@ public Builder clearSnapshot() { * * *
      -     * Required. Identifier. The name of the snapshot to get.
      +     * Required. The name of the snapshot to get.
            * Format is `projects/{project}/snapshots/{snap}`.
            * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for snapshot to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 343c6867cfd4..4fa0b65b4f94 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,12 @@ public interface GetSnapshotRequestOrBuilder * * *
      -   * Required. Identifier. The name of the snapshot to get.
      +   * Required. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The snapshot. @@ -44,12 +44,12 @@ public interface GetSnapshotRequestOrBuilder * * *
      -   * Required. Identifier. The name of the snapshot to get.
      +   * Required. The name of the snapshot to get.
          * Format is `projects/{project}/snapshots/{snap}`.
          * 
      * * - * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string snapshot = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for snapshot. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index 7b7e00da8313..fe7907ec1e00 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Identifier. The name of the subscription to get.
      +   * Required. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -100,12 +100,12 @@ public java.lang.String getSubscription() { * * *
      -   * Required. Identifier. The name of the subscription to get.
      +   * Required. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -471,12 +471,12 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. The name of the subscription to get.
      +     * Required. The name of the subscription to get.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -497,12 +497,12 @@ public java.lang.String getSubscription() { * * *
      -     * Required. Identifier. The name of the subscription to get.
      +     * Required. The name of the subscription to get.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. @@ -523,12 +523,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
      -     * Required. Identifier. The name of the subscription to get.
      +     * Required. The name of the subscription to get.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The subscription to set. @@ -548,12 +548,12 @@ public Builder setSubscription(java.lang.String value) { * * *
      -     * Required. Identifier. The name of the subscription to get.
      +     * Required. The name of the subscription to get.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -569,12 +569,12 @@ public Builder clearSubscription() { * * *
      -     * Required. Identifier. The name of the subscription to get.
      +     * Required. The name of the subscription to get.
            * Format is `projects/{project}/subscriptions/{sub}`.
            * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for subscription to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index 4513defa85be..bd902c989930 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,12 @@ public interface GetSubscriptionRequestOrBuilder * * *
      -   * Required. Identifier. The name of the subscription to get.
      +   * Required. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The subscription. @@ -44,12 +44,12 @@ public interface GetSubscriptionRequestOrBuilder * * *
      -   * Required. Identifier. The name of the subscription to get.
      +   * Required. The name of the subscription to get.
          * Format is `projects/{project}/subscriptions/{sub}`.
          * 
      * * - * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for subscription. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 7d1490c14abe..99ccbd15bf64 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,12 +73,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Identifier. The name of the topic to get.
      +   * Required. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -100,12 +100,12 @@ public java.lang.String getTopic() { * * *
      -   * Required. Identifier. The name of the topic to get.
      +   * Required. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -468,12 +468,12 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. The name of the topic to get.
      +     * Required. The name of the topic to get.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -494,12 +494,12 @@ public java.lang.String getTopic() { * * *
      -     * Required. Identifier. The name of the topic to get.
      +     * Required. The name of the topic to get.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -520,12 +520,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
      -     * Required. Identifier. The name of the topic to get.
      +     * Required. The name of the topic to get.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The topic to set. @@ -545,12 +545,12 @@ public Builder setTopic(java.lang.String value) { * * *
      -     * Required. Identifier. The name of the topic to get.
      +     * Required. The name of the topic to get.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -566,12 +566,12 @@ public Builder clearTopic() { * * *
      -     * Required. Identifier. The name of the topic to get.
      +     * Required. The name of the topic to get.
            * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for topic to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 5b6281637417..8d6b67130ea4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,12 @@ public interface GetTopicRequestOrBuilder * * *
      -   * Required. Identifier. The name of the topic to get.
      +   * Required. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -44,12 +44,12 @@ public interface GetTopicRequestOrBuilder * * *
      -   * Required. Identifier. The name of the topic to get.
      +   * Required. The name of the topic to get.
          * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index d2c79575f42b..235ef5a589bf 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index 68377e256661..31f1058e2573 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 6f1455a19ad6..2df52b4a8ce1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index 49390d159546..d251ce95c60a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java index e38b55f095c7..89247115d379 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java index c59c0fc1f655..7a7ab67c5c67 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index cc48d7020a76..42838105b480 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index 272eff598761..c219edbf2cc8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index e7cf1c68b2ee..35ad88ea7b38 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index b899094e8b25..2cf0fb260ae1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index d58779ce28ab..f6ccfff1b0ad 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 3a55412f2b3c..90a678059b3c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index fbf04d02be27..78fd83151d01 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 0ccc17195f9f..8c3fba55a723 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index 869e380db214..d56a4a719db8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Identifier. The name of the project in which to list snapshots.
      +   * Required. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -101,12 +101,12 @@ public java.lang.String getProject() { * * *
      -   * Required. Identifier. The name of the project in which to list snapshots.
      +   * Required. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -594,12 +594,12 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. The name of the project in which to list snapshots.
      +     * Required. The name of the project in which to list snapshots.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -620,12 +620,12 @@ public java.lang.String getProject() { * * *
      -     * Required. Identifier. The name of the project in which to list snapshots.
      +     * Required. The name of the project in which to list snapshots.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -646,12 +646,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
      -     * Required. Identifier. The name of the project in which to list snapshots.
      +     * Required. The name of the project in which to list snapshots.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The project to set. @@ -671,12 +671,12 @@ public Builder setProject(java.lang.String value) { * * *
      -     * Required. Identifier. The name of the project in which to list snapshots.
      +     * Required. The name of the project in which to list snapshots.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -692,12 +692,12 @@ public Builder clearProject() { * * *
      -     * Required. Identifier. The name of the project in which to list snapshots.
      +     * Required. The name of the project in which to list snapshots.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for project to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index ee2ba020c303..47d596cba53c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,12 @@ public interface ListSnapshotsRequestOrBuilder * * *
      -   * Required. Identifier. The name of the project in which to list snapshots.
      +   * Required. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -44,12 +44,12 @@ public interface ListSnapshotsRequestOrBuilder * * *
      -   * Required. Identifier. The name of the project in which to list snapshots.
      +   * Required. The name of the project in which to list snapshots.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 30b4f8be522f..5600f79dc8e2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 209c12a8cab9..9e17810b94a6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index 2a3705cd71ee..e9bd5fcc9a75 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Identifier. The name of the project in which to list
      -   * subscriptions. Format is `projects/{project-id}`.
      +   * Required. The name of the project in which to list subscriptions.
      +   * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -101,12 +101,12 @@ public java.lang.String getProject() { * * *
      -   * Required. Identifier. The name of the project in which to list
      -   * subscriptions. Format is `projects/{project-id}`.
      +   * Required. The name of the project in which to list subscriptions.
      +   * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -594,12 +594,12 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. The name of the project in which to list
      -     * subscriptions. Format is `projects/{project-id}`.
      +     * Required. The name of the project in which to list subscriptions.
      +     * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -620,12 +620,12 @@ public java.lang.String getProject() { * * *
      -     * Required. Identifier. The name of the project in which to list
      -     * subscriptions. Format is `projects/{project-id}`.
      +     * Required. The name of the project in which to list subscriptions.
      +     * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -646,12 +646,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
      -     * Required. Identifier. The name of the project in which to list
      -     * subscriptions. Format is `projects/{project-id}`.
      +     * Required. The name of the project in which to list subscriptions.
      +     * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The project to set. @@ -671,12 +671,12 @@ public Builder setProject(java.lang.String value) { * * *
      -     * Required. Identifier. The name of the project in which to list
      -     * subscriptions. Format is `projects/{project-id}`.
      +     * Required. The name of the project in which to list subscriptions.
      +     * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -692,12 +692,12 @@ public Builder clearProject() { * * *
      -     * Required. Identifier. The name of the project in which to list
      -     * subscriptions. Format is `projects/{project-id}`.
      +     * Required. The name of the project in which to list subscriptions.
      +     * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for project to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index d07523d10890..61bbb606d436 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,12 @@ public interface ListSubscriptionsRequestOrBuilder * * *
      -   * Required. Identifier. The name of the project in which to list
      -   * subscriptions. Format is `projects/{project-id}`.
      +   * Required. The name of the project in which to list subscriptions.
      +   * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -44,12 +44,12 @@ public interface ListSubscriptionsRequestOrBuilder * * *
      -   * Required. Identifier. The name of the project in which to list
      -   * subscriptions. Format is `projects/{project-id}`.
      +   * Required. The name of the project in which to list subscriptions.
      +   * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index 27bd5f4209d8..ac7bfb9f2825 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index b28f6c50b086..a4db2bf03023 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index ffb40874355e..e30b2affc930 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index 9929a918f431..a82f8a690e05 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index 387a4ef7e5a7..ba7785807184 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index fd3eca1793c2..cb4cbbc6b771 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 326990d9a637..5ee6fbb1ea2d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index f783267cb4d7..05f476a4bc47 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index 7c17b9b01557..ab32db2f5199 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index dcd6704273ed..685626b41642 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 873b3f152202..75c711d16759 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Identifier. The name of the project in which to list topics.
      +   * Required. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -101,12 +101,12 @@ public java.lang.String getProject() { * * *
      -   * Required. Identifier. The name of the project in which to list topics.
      +   * Required. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -593,12 +593,12 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. The name of the project in which to list topics.
      +     * Required. The name of the project in which to list topics.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -619,12 +619,12 @@ public java.lang.String getProject() { * * *
      -     * Required. Identifier. The name of the project in which to list topics.
      +     * Required. The name of the project in which to list topics.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. @@ -645,12 +645,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
      -     * Required. Identifier. The name of the project in which to list topics.
      +     * Required. The name of the project in which to list topics.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The project to set. @@ -670,12 +670,12 @@ public Builder setProject(java.lang.String value) { * * *
      -     * Required. Identifier. The name of the project in which to list topics.
      +     * Required. The name of the project in which to list topics.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -691,12 +691,12 @@ public Builder clearProject() { * * *
      -     * Required. Identifier. The name of the project in which to list topics.
      +     * Required. The name of the project in which to list topics.
            * Format is `projects/{project-id}`.
            * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for project to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index 8b134adc0223..cb3a136a1967 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,12 @@ public interface ListTopicsRequestOrBuilder * * *
      -   * Required. Identifier. The name of the project in which to list topics.
      +   * Required. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The project. @@ -44,12 +44,12 @@ public interface ListTopicsRequestOrBuilder * * *
      -   * Required. Identifier. The name of the project in which to list topics.
      +   * Required. The name of the project in which to list topics.
          * Format is `projects/{project-id}`.
          * 
      * * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for project. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 1a968a78b775..2f1fc149c078 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 1cb84179a2ec..7f35ebf293d9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 03c29b8091af..5db66167e34d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index eaebad923ffa..5bbe0270e449 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index 573d42c33d02..74f22a393810 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -72,6 +72,7 @@ public enum TransformCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { JAVASCRIPT_UDF(2), + AI_INFERENCE(6), TRANSFORM_NOT_SET(0); private final int value; @@ -93,6 +94,8 @@ public static TransformCase forNumber(int value) { switch (value) { case 2: return JAVASCRIPT_UDF; + case 6: + return AI_INFERENCE; case 0: return TRANSFORM_NOT_SET; default: @@ -172,6 +175,69 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { return com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); } + public static final int AI_INFERENCE_FIELD_NUMBER = 6; + + /** + * + * + *
      +   * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +   * requests built from the Pub/Sub message data and provided parameters will
      +   * be sent to.
      +   * 
      + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aiInference field is set. + */ + @java.lang.Override + public boolean hasAiInference() { + return transformCase_ == 6; + } + + /** + * + * + *
      +   * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +   * requests built from the Pub/Sub message data and provided parameters will
      +   * be sent to.
      +   * 
      + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aiInference. + */ + @java.lang.Override + public com.google.pubsub.v1.AIInference getAiInference() { + if (transformCase_ == 6) { + return (com.google.pubsub.v1.AIInference) transform_; + } + return com.google.pubsub.v1.AIInference.getDefaultInstance(); + } + + /** + * + * + *
      +   * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +   * requests built from the Pub/Sub message data and provided parameters will
      +   * be sent to.
      +   * 
      + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.AIInferenceOrBuilder getAiInferenceOrBuilder() { + if (transformCase_ == 6) { + return (com.google.pubsub.v1.AIInference) transform_; + } + return com.google.pubsub.v1.AIInference.getDefaultInstance(); + } + public static final int ENABLED_FIELD_NUMBER = 3; private boolean enabled_ = false; @@ -186,7 +252,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=818 + * google/pubsub/v1/pubsub.proto;l=857 * @return The enabled. */ @java.lang.Override @@ -238,6 +304,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disabled_ != false) { output.writeBool(4, disabled_); } + if (transformCase_ == 6) { + output.writeMessage(6, (com.google.pubsub.v1.AIInference) transform_); + } getUnknownFields().writeTo(output); } @@ -258,6 +327,11 @@ public int getSerializedSize() { if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disabled_); } + if (transformCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.pubsub.v1.AIInference) transform_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -280,6 +354,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getJavascriptUdf().equals(other.getJavascriptUdf())) return false; break; + case 6: + if (!getAiInference().equals(other.getAiInference())) return false; + break; case 0: default: } @@ -303,6 +380,10 @@ public int hashCode() { hash = (37 * hash) + JAVASCRIPT_UDF_FIELD_NUMBER; hash = (53 * hash) + getJavascriptUdf().hashCode(); break; + case 6: + hash = (37 * hash) + AI_INFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getAiInference().hashCode(); + break; case 0: default: } @@ -448,6 +529,9 @@ public Builder clear() { if (javascriptUdfBuilder_ != null) { javascriptUdfBuilder_.clear(); } + if (aiInferenceBuilder_ != null) { + aiInferenceBuilder_.clear(); + } enabled_ = false; disabled_ = false; transformCase_ = 0; @@ -489,10 +573,10 @@ public com.google.pubsub.v1.MessageTransform buildPartial() { private void buildPartial0(com.google.pubsub.v1.MessageTransform result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.enabled_ = enabled_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.disabled_ = disabled_; } } @@ -503,6 +587,9 @@ private void buildPartialOneofs(com.google.pubsub.v1.MessageTransform result) { if (transformCase_ == 2 && javascriptUdfBuilder_ != null) { result.transform_ = javascriptUdfBuilder_.build(); } + if (transformCase_ == 6 && aiInferenceBuilder_ != null) { + result.transform_ = aiInferenceBuilder_.build(); + } } @java.lang.Override @@ -562,6 +649,11 @@ public Builder mergeFrom(com.google.pubsub.v1.MessageTransform other) { mergeJavascriptUdf(other.getJavascriptUdf()); break; } + case AI_INFERENCE: + { + mergeAiInference(other.getAiInference()); + break; + } case TRANSFORM_NOT_SET: { break; @@ -602,15 +694,21 @@ public Builder mergeFrom( case 24: { enabled_ = input.readBool(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 24 case 32: { disabled_ = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 32 + case 50: + { + input.readMessage(getAiInferenceFieldBuilder().getBuilder(), extensionRegistry); + transformCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -886,6 +984,257 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { return javascriptUdfBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.AIInference, + com.google.pubsub.v1.AIInference.Builder, + com.google.pubsub.v1.AIInferenceOrBuilder> + aiInferenceBuilder_; + + /** + * + * + *
      +     * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +     * requests built from the Pub/Sub message data and provided parameters will
      +     * be sent to.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aiInference field is set. + */ + @java.lang.Override + public boolean hasAiInference() { + return transformCase_ == 6; + } + + /** + * + * + *
      +     * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +     * requests built from the Pub/Sub message data and provided parameters will
      +     * be sent to.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aiInference. + */ + @java.lang.Override + public com.google.pubsub.v1.AIInference getAiInference() { + if (aiInferenceBuilder_ == null) { + if (transformCase_ == 6) { + return (com.google.pubsub.v1.AIInference) transform_; + } + return com.google.pubsub.v1.AIInference.getDefaultInstance(); + } else { + if (transformCase_ == 6) { + return aiInferenceBuilder_.getMessage(); + } + return com.google.pubsub.v1.AIInference.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +     * requests built from the Pub/Sub message data and provided parameters will
      +     * be sent to.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAiInference(com.google.pubsub.v1.AIInference value) { + if (aiInferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + transform_ = value; + onChanged(); + } else { + aiInferenceBuilder_.setMessage(value); + } + transformCase_ = 6; + return this; + } + + /** + * + * + *
      +     * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +     * requests built from the Pub/Sub message data and provided parameters will
      +     * be sent to.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAiInference(com.google.pubsub.v1.AIInference.Builder builderForValue) { + if (aiInferenceBuilder_ == null) { + transform_ = builderForValue.build(); + onChanged(); + } else { + aiInferenceBuilder_.setMessage(builderForValue.build()); + } + transformCase_ = 6; + return this; + } + + /** + * + * + *
      +     * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +     * requests built from the Pub/Sub message data and provided parameters will
      +     * be sent to.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAiInference(com.google.pubsub.v1.AIInference value) { + if (aiInferenceBuilder_ == null) { + if (transformCase_ == 6 + && transform_ != com.google.pubsub.v1.AIInference.getDefaultInstance()) { + transform_ = + com.google.pubsub.v1.AIInference.newBuilder( + (com.google.pubsub.v1.AIInference) transform_) + .mergeFrom(value) + .buildPartial(); + } else { + transform_ = value; + } + onChanged(); + } else { + if (transformCase_ == 6) { + aiInferenceBuilder_.mergeFrom(value); + } else { + aiInferenceBuilder_.setMessage(value); + } + } + transformCase_ = 6; + return this; + } + + /** + * + * + *
      +     * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +     * requests built from the Pub/Sub message data and provided parameters will
      +     * be sent to.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAiInference() { + if (aiInferenceBuilder_ == null) { + if (transformCase_ == 6) { + transformCase_ = 0; + transform_ = null; + onChanged(); + } + } else { + if (transformCase_ == 6) { + transformCase_ = 0; + transform_ = null; + } + aiInferenceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
      +     * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +     * requests built from the Pub/Sub message data and provided parameters will
      +     * be sent to.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.AIInference.Builder getAiInferenceBuilder() { + return getAiInferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +     * requests built from the Pub/Sub message data and provided parameters will
      +     * be sent to.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.AIInferenceOrBuilder getAiInferenceOrBuilder() { + if ((transformCase_ == 6) && (aiInferenceBuilder_ != null)) { + return aiInferenceBuilder_.getMessageOrBuilder(); + } else { + if (transformCase_ == 6) { + return (com.google.pubsub.v1.AIInference) transform_; + } + return com.google.pubsub.v1.AIInference.getDefaultInstance(); + } + } + + /** + * + * + *
      +     * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +     * requests built from the Pub/Sub message data and provided parameters will
      +     * be sent to.
      +     * 
      + * + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.AIInference, + com.google.pubsub.v1.AIInference.Builder, + com.google.pubsub.v1.AIInferenceOrBuilder> + getAiInferenceFieldBuilder() { + if (aiInferenceBuilder_ == null) { + if (!(transformCase_ == 6)) { + transform_ = com.google.pubsub.v1.AIInference.getDefaultInstance(); + } + aiInferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.pubsub.v1.AIInference, + com.google.pubsub.v1.AIInference.Builder, + com.google.pubsub.v1.AIInferenceOrBuilder>( + (com.google.pubsub.v1.AIInference) transform_, getParentForChildren(), isClean()); + transform_ = null; + } + transformCase_ = 6; + onChanged(); + return aiInferenceBuilder_; + } + private boolean enabled_; /** @@ -899,7 +1248,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=818 + * google/pubsub/v1/pubsub.proto;l=857 * @return The enabled. */ @java.lang.Override @@ -919,7 +1268,7 @@ public boolean getEnabled() { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=818 + * google/pubsub/v1/pubsub.proto;l=857 * @param value The enabled to set. * @return This builder for chaining. */ @@ -927,7 +1276,7 @@ public boolean getEnabled() { public Builder setEnabled(boolean value) { enabled_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -943,12 +1292,12 @@ public Builder setEnabled(boolean value) { * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=818 + * google/pubsub/v1/pubsub.proto;l=857 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); enabled_ = false; onChanged(); return this; @@ -989,7 +1338,7 @@ public boolean getDisabled() { public Builder setDisabled(boolean value) { disabled_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1007,7 +1356,7 @@ public Builder setDisabled(boolean value) { * @return This builder for chaining. */ public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); disabled_ = false; onChanged(); return this; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 24c73b06b502..85fe71dad841 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -70,6 +70,52 @@ public interface MessageTransformOrBuilder */ com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder(); + /** + * + * + *
      +   * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +   * requests built from the Pub/Sub message data and provided parameters will
      +   * be sent to.
      +   * 
      + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aiInference field is set. + */ + boolean hasAiInference(); + + /** + * + * + *
      +   * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +   * requests built from the Pub/Sub message data and provided parameters will
      +   * be sent to.
      +   * 
      + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aiInference. + */ + com.google.pubsub.v1.AIInference getAiInference(); + + /** + * + * + *
      +   * Optional. AI Inference. Specifies the Vertex AI endpoint that inference
      +   * requests built from the Pub/Sub message data and provided parameters will
      +   * be sent to.
      +   * 
      + * + * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.AIInferenceOrBuilder getAiInferenceOrBuilder(); + /** * * @@ -81,7 +127,7 @@ public interface MessageTransformOrBuilder * bool enabled = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.pubsub.v1.MessageTransform.enabled is deprecated. See - * google/pubsub/v1/pubsub.proto;l=818 + * google/pubsub/v1/pubsub.proto;l=857 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 36c66e8e98c8..64f101a1481b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 28da06beeebe..184107b003f0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 300fe08dd008..02d5a6095e1f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 55cd8ab49ada..80ce0456c6cd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java index 6252ee593ef5..fab452ea1c25 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java index 967517e6883b..c2165b68982a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java index 4079c54b550d..a4f599b17206 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 6f9f3ecf58a2..1a90a5f5bc53 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -74,12 +74,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Identifier. The messages in the request will be published on this
      -   * topic. Format is `projects/{project}/topics/{topic}`.
      +   * Required. The messages in the request will be published on this topic.
      +   * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -101,12 +101,12 @@ public java.lang.String getTopic() { * * *
      -   * Required. Identifier. The messages in the request will be published on this
      -   * topic. Format is `projects/{project}/topics/{topic}`.
      +   * Required. The messages in the request will be published on this topic.
      +   * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -626,12 +626,12 @@ public Builder mergeFrom( * * *
      -     * Required. Identifier. The messages in the request will be published on this
      -     * topic. Format is `projects/{project}/topics/{topic}`.
      +     * Required. The messages in the request will be published on this topic.
      +     * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -652,12 +652,12 @@ public java.lang.String getTopic() { * * *
      -     * Required. Identifier. The messages in the request will be published on this
      -     * topic. Format is `projects/{project}/topics/{topic}`.
      +     * Required. The messages in the request will be published on this topic.
      +     * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. @@ -678,12 +678,12 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
      -     * Required. Identifier. The messages in the request will be published on this
      -     * topic. Format is `projects/{project}/topics/{topic}`.
      +     * Required. The messages in the request will be published on this topic.
      +     * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The topic to set. @@ -703,12 +703,12 @@ public Builder setTopic(java.lang.String value) { * * *
      -     * Required. Identifier. The messages in the request will be published on this
      -     * topic. Format is `projects/{project}/topics/{topic}`.
      +     * Required. The messages in the request will be published on this topic.
      +     * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -724,12 +724,12 @@ public Builder clearTopic() { * * *
      -     * Required. Identifier. The messages in the request will be published on this
      -     * topic. Format is `projects/{project}/topics/{topic}`.
      +     * Required. The messages in the request will be published on this topic.
      +     * Format is `projects/{project}/topics/{topic}`.
            * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for topic to set. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index c3d8e7a172c6..21447e8e3953 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,12 +28,12 @@ public interface PublishRequestOrBuilder * * *
      -   * Required. Identifier. The messages in the request will be published on this
      -   * topic. Format is `projects/{project}/topics/{topic}`.
      +   * Required. The messages in the request will be published on this topic.
      +   * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The topic. @@ -44,12 +44,12 @@ public interface PublishRequestOrBuilder * * *
      -   * Required. Identifier. The messages in the request will be published on this
      -   * topic. Format is `projects/{project}/topics/{topic}`.
      +   * Required. The messages in the request will be published on this topic.
      +   * Format is `projects/{project}/topics/{topic}`.
          * 
      * * - * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } + * string topic = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for topic. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index f1a59cbb6018..e552f7bdd939 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 6ae74fb82b0c..18b8bc10ff08 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index ef9370d9ae62..198e1349fe1f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index da2d4b6e3a69..16fa1601f916 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index fae7dfbc3ce0..7706628458db 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -120,6 +120,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_AIInference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_AIInference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_AIInference_UnstructuredInference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_pubsub_v1_AIInference_UnstructuredInference_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_MessageTransform_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -387,8 +395,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027google/api/client.proto\032\037google/api/fie" + "ld_behavior.proto\032\031google/api/resource.p" + "roto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/tim" - + "estamp.proto\032\035google/pubsub/v1/schema.proto\"a\n" + + " google/protobuf/field_mask.proto\032\034google/protobuf/str" + + "uct.proto\032\037google/protobuf/timestamp.proto\032\035google/pubsub/v1/schema.proto\"a\n" + "\024MessageStoragePolicy\022(\n" + "\033allowed_persistence_regions\030\001 \003(\tB\003\340A\001\022\037\n" + "\022enforce_in_transit\030\002 \001(\010B\003\340A\001\"\270\001\n" @@ -399,21 +407,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021first_revision_id\030\003 \001(\tB\003\340A\001\022\035\n" + "\020last_revision_id\030\004 \001(\tB\003\340A\001\"\350\027\n" + "\033IngestionDataSourceSettings\022T\n" - + "\013aws_kinesis\030\001 \001(\01328.google.pubsub.v" - + "1.IngestionDataSourceSettings.AwsKinesisB\003\340A\001H\000\022X\n\r" - + "cloud_storage\030\002 \001(\0132:.google." - + "pubsub.v1.IngestionDataSourceSettings.CloudStorageB\003\340A\001H\000\022]\n" - + "\020azure_event_hubs\030\003 " - + "\001(\0132<.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsB\003\340A\001H\000\022L\n" - + "\007aws_msk\030\005" - + " \001(\01324.google.pubsub.v1.IngestionDataSourceSettings.AwsMskB\003\340A\001H\000\022\\\n" - + "\017confluent_cloud\030\006 \001(\0132<.google.pubsub.v1.Inges" - + "tionDataSourceSettings.ConfluentCloudB\003\340A\001H\000\022K\n" - + "\026platform_logs_settings\030\004 \001(\0132&.g" - + "oogle.pubsub.v1.PlatformLogsSettingsB\003\340A\001\032\352\002\n\n" + + "\013aws_kinesis\030\001" + + " \001(\01328.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisB\003\340A\001H\000\022X\n" + + "\r" + + "cloud_storage\030\002 \001(\0132:.google.pubsub.v1." + + "IngestionDataSourceSettings.CloudStorageB\003\340A\001H\000\022]\n" + + "\020azure_event_hubs\030\003 \001(\0132<.goog" + + "le.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsB\003\340A\001H\000\022L\n" + + "\007aws_msk\030\005 \001(\0132" + + "4.google.pubsub.v1.IngestionDataSourceSettings.AwsMskB\003\340A\001H\000\022\\\n" + + "\017confluent_cloud\030\006" + + " \001(\0132<.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudB\003\340A\001H\000\022K\n" + + "\026platform_logs_settings\030\004" + + " \001(\0132&.google.pubsub.v1.PlatformLogsSettingsB\003\340A\001\032\352\002\n\n" + "AwsKinesis\022R\n" - + "\005state\030\001 \001(\0162>.google" - + ".pubsub.v1.IngestionDataSourceSettings.AwsKinesis.StateB\003\340A\003\022\027\n\n" + + "\005state\030\001 \001(\0162>.google.pubsub.v1" + + ".IngestionDataSourceSettings.AwsKinesis.StateB\003\340A\003\022\027\n\n" + "stream_arn\030\002 \001(\tB\003\340A\002\022\031\n" + "\014consumer_arn\030\003 \001(\tB\003\340A\002\022\031\n" + "\014aws_role_arn\030\004 \001(\tB\003\340A\002\022 \n" @@ -426,15 +435,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020STREAM_NOT_FOUND\020\004\022\026\n" + "\022CONSUMER_NOT_FOUND\020\005\032\225\006\n" + "\014CloudStorage\022T\n" - + "\005state\030\001 \001(\0162@" - + ".google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.StateB\003\340A\003\022\023\n" + + "\005state\030\001 \001(\0162@.google.pu" + + "bsub.v1.IngestionDataSourceSettings.CloudStorage.StateB\003\340A\003\022\023\n" + "\006bucket\030\002 \001(\tB\003\340A\001\022a\n" - + "\013text_format\030\003 \001(\0132E.google" - + ".pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatB\003\340A\001H\000\022a\n" - + "\013avro_format\030\004 \001(\0132E.google.pubsub.v1.IngestionD" - + "ataSourceSettings.CloudStorage.AvroFormatB\003\340A\001H\000\022n\n" - + "\022pubsub_avro_format\030\005 \001(\0132K.google.pubsub.v1.IngestionDataSourceSetti" - + "ngs.CloudStorage.PubSubAvroFormatB\003\340A\001H\000\022C\n" + + "\013text_format\030\003 \001(\0132E.google.pubsub.v1" + + ".IngestionDataSourceSettings.CloudStorage.TextFormatB\003\340A\001H\000\022a\n" + + "\013avro_format\030\004 \001(\0132E.google.pubsub.v1.IngestionDataSourceS" + + "ettings.CloudStorage.AvroFormatB\003\340A\001H\000\022n\n" + + "\022pubsub_avro_format\030\005 \001(\0132K.google.pubs" + + "ub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatB\003\340A\001H\000\022C\n" + "\032minimum_object_create_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022\027\n\n" + "match_glob\030\t \001(\tB\003\340A\001\0327\n\n" @@ -452,8 +461,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020TOO_MANY_OBJECTS\020\005B\016\n" + "\014input_format\032\377\003\n" + "\016AzureEventHubs\022V\n" - + "\005state\030\001 \001(\0162B.googl" - + "e.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.StateB\003\340A\003\022\033\n" + + "\005state\030\001 \001(\0162B.google.pubsub.v" + + "1.IngestionDataSourceSettings.AzureEventHubs.StateB\003\340A\003\022\033\n" + "\016resource_group\030\002 \001(\tB\003\340A\001\022\026\n" + "\tnamespace\030\003 \001(\tB\003\340A\001\022\026\n" + "\tevent_hub\030\004 \001(\tB\003\340A\001\022\026\n" @@ -471,8 +480,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026SUBSCRIPTION_NOT_FOUND\020\006\022\034\n" + "\030RESOURCE_GROUP_NOT_FOUND\020\007\032\366\002\n" + "\006AwsMsk\022N\n" - + "\005state\030\001 \001(\0162:.google.pubsub.v1.In" - + "gestionDataSourceSettings.AwsMsk.StateB\003\340A\003\022\030\n" + + "\005state\030\001" + + " \001(\0162:.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.StateB\003\340A\003\022\030\n" + "\013cluster_arn\030\002 \001(\tB\003\340A\002\0222\n" + "\005topic\030\003 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\022\031\n" @@ -486,8 +495,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CLUSTER_NOT_FOUND\020\004\022\023\n" + "\017TOPIC_NOT_FOUND\020\005\032\266\003\n" + "\016ConfluentCloud\022V\n" - + "\005state\030\001 " - + "\001(\0162B.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.StateB\003\340A\003\022\035\n" + + "\005state\030\001 \001(\0162B.goog" + + "le.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.StateB\003\340A\003\022\035\n" + "\020bootstrap_server\030\002 \001(\tB\003\340A\002\022\027\n\n" + "cluster_id\030\003 \001(\tB\003\340A\002\022\022\n" + "\005topic\030\004 \001(\tB\003\340A\002\022\035\n" @@ -516,16 +525,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\022\032\n\r" + "error_message\030\002 \001(\tB\003\340A\002\022a\n" - + "\025cloud_storage_failure\030\003 \001(\0132;.google" - + ".pubsub.v1.IngestionFailureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n" - + "\017aws_msk_failure\030\004" - + " \001(\0132;.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonB\003\340A\001H\000\022l\n" - + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubs" - + "ub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" - + "\027confluent_cloud_failure\030\006 \001(\0132C.google.pubsub.v1.Inges" - + "tionFailureEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\022c\n" - + "\023aws_kinesis_failure\030\007 \001(\013" - + "2?.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + + "\025cloud_storage_failure\030\003 \001(\0132;.google.pubsub.v1" + + ".IngestionFailureEvent.CloudStorageFailureB\003\340A\001H\000\022[\n" + + "\017aws_msk_failure\030\004 \001(\0132;.goo" + + "gle.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonB\003\340A\001H\000\022l\n" + + "\030azure_event_hubs_failure\030\005 \001(\0132C.google.pubsub.v1.Inge" + + "stionFailureEvent.AzureEventHubsFailureReasonB\003\340A\001H\000\022k\n" + + "\027confluent_cloud_failure\030\006 \001(\0132C.google.pubsub.v1.IngestionFailur" + + "eEvent.ConfluentCloudFailureReasonB\003\340A\001H\000\022c\n" + + "\023aws_kinesis_failure\030\007 \001(\0132?.google." + + "pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonB\003\340A\001H\000\032\024\n" + "\022ApiViolationReason\032\023\n" + "\021AvroFailureReason\032\027\n" + "\025SchemaViolationReason\032$\n" @@ -534,79 +543,88 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006bucket\030\001 \001(\tB\003\340A\001\022\030\n" + "\013object_name\030\002 \001(\tB\003\340A\001\022\036\n" + "\021object_generation\030\003 \001(\003B\003\340A\001\022]\n" - + "\023avro_failure_reason\030\005 \001(\01329.google." - + "pubsub.v1.IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" - + "\024api_violation_reason\030\006" - + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\007 \001(\0132=.google.pubs" - + "ub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\010 \001(\0132J.google.pubsub" - + ".v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\023avro_failure_reason\030\005 \001(\01329.google.pubsub.v1." + + "IngestionFailureEvent.AvroFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006 \001(\0132:.g" + + "oogle.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\007 \001(\0132=.google.pubsub.v1.Inge" + + "stionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\010 \001(\0132J.google.pubsub.v1.Ingest" + + "ionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reason\032\316\003\n" + "\023AwsMskFailureReason\022\030\n" + "\013cluster_arn\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:.google" - + ".pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v1.Ingestion" - + "FailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\007" - + " \001(\0132J.google.pubsub.v1.IngestionFa" - + "ilureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1" + + ".IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(" + + "\0132=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132" + + "J.google.pubsub.v1.IngestionFailureEvent" + + ".MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reason\032\322\003\n" + "\033AzureEventHubsFailureReason\022\026\n" + "\tnamespace\030\001 \001(\tB\003\340A\001\022\026\n" + "\tevent_hub\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1." - + "IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\013" - + "2=.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\007 \001(\0132J" - + ".google.pubsub.v1.IngestionFailureEvent." - + "MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\024api_violation_reason\030\005" + + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google." + + "pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132J.google.pu" + + "bsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reason\032\325\003\n" + "\033ConfluentCloudFailureReason\022\027\n\n" + "cluster_id\030\001 \001(\tB\003\340A\001\022\030\n" + "\013kafka_topic\030\002 \001(\tB\003\340A\001\022\031\n" + "\014partition_id\030\003 \001(\003B\003\340A\001\022\023\n" + "\006offset\030\004 \001(\003B\003\340A\001\022_\n" - + "\024api_violation_reason\030\005 \001(\0132:.google.pubsub.v1.Ingestio" - + "nFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" - + "\027schema_violation_reason\030\006 \001(\0132=.googl" - + "e.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\007 \001(\0132J.google." - + "pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + + "\024api_violation_reason\030\005 \001" + + "(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000\022e\n" + + "\027schema_violation_reason\030\006 \001(\0132=.google.pubsub.v" + + "1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\007 \001(\0132J.google.pubsub.v1." + + "IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000B\010\n" + "\006reason\032\301\003\n" + "\027AwsKinesisFailureReason\022\027\n\n" + "stream_arn\030\001 \001(\tB\003\340A\001\022\032\n\r" + "partition_key\030\002 \001(\tB\003\340A\001\022\034\n" + "\017sequence_number\030\003 \001(\tB\003\340A\001\022e\n" - + "\027schema_violation_reason\030\004 \001(\0132=.google.pub" - + "sub.v1.IngestionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" - + "%message_transformation_failure_reason\030\005 \001(\0132J.google.pubsu" - + "b.v1.IngestionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000\022_\n" - + "\024api_violation_reason\030\006 \001(\0132:.google.pubsub.v1.In" - + "gestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + + "\027schema_violation_reason\030\004 \001(\0132=.google.pubsub.v1.Ing" + + "estionFailureEvent.SchemaViolationReasonB\003\340A\001H\000\022\200\001\n" + + "%message_transformation_failure_reason\030\005 \001(\0132J.google.pubsub.v1.Inges" + + "tionFailureEvent.MessageTransformationFailureReasonB\003\340A\001H\000\022_\n" + + "\024api_violation_reason\030\006" + + " \001(\0132:.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonB\003\340A\001H\000B\010\n" + "\006reasonB\t\n" + "\007failure\">\n\r" + "JavaScriptUDF\022\032\n\r" + "function_name\030\001 \001(\tB\003\340A\002\022\021\n" - + "\004code\030\002 \001(\tB\003\340A\002\"\216\001\n" + + "\004code\030\002 \001(\tB\003\340A\002\"\201\002\n" + + "\013AIInference\022\025\n" + + "\010endpoint\030\001 \001(\tB\003\340A\002\022Z\n" + + "\026unstructured_inference\030\002 \001(\01323.google" + + ".pubsub.v1.AIInference.UnstructuredInferenceB\003\340A\001H\000\022\"\n" + + "\025service_account_email\030\003 \001(\tB\003\340A\001\032I\n" + + "\025UnstructuredInference\0220\n\n" + + "parameters\030\001 \001(\0132\027.google.protobuf.StructB\003\340A\001B\020\n" + + "\016inference_mode\"\312\001\n" + "\020MessageTransform\022>\n" + "\016javascript_udf\030\002" - + " \001(\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022\026\n" + + " \001(\0132\037.google.pubsub.v1.JavaScriptUDFB\003\340A\001H\000\022:\n" + + "\014ai_inference\030\006" + + " \001(\0132\035.google.pubsub.v1.AIInferenceB\003\340A\001H\000\022\026\n" + "\007enabled\030\003 \001(\010B\005\030\001\340A\001\022\025\n" + "\010disabled\030\004 \001(\010B\003\340A\001B\013\n" + "\ttransform\"\240\007\n" + "\005Topic\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0228\n" + "\006labels\030\002 \003(\0132#.google.pubsub.v1.Topic.LabelsEntryB\003\340A\001\022K\n" - + "\026message_storage_policy\030\003 \001(\0132&." - + "google.pubsub.v1.MessageStoragePolicyB\003\340A\001\022?\n" + + "\026message_storage_policy\030\003" + + " \001(\0132&.google.pubsub.v1.MessageStoragePolicyB\003\340A\001\022?\n" + "\014kms_key_name\030\005 \001(\tB)\340A\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022>\n" + "\017schema_settings\030\006 \001(\0132" @@ -631,33 +649,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\034\n" + "\030INGESTION_RESOURCE_ERROR\020\002:c\352A`\n" - + "\033pubsub.googleapis.com/Topic\022!projects/{project}/" - + "topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n\r" + + "\033pubsub.googleapis." + + "com/Topic\022!projects/{project}/topics/{topic}\022\017_deleted-topic_*\006topics2\005topic\"\200\002\n" + + "\r" + "PubsubMessage\022\021\n" + "\004data\030\001 \001(\014B\003\340A\001\022H\n\n" + "attributes\030\002" - + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n" - + "\n" + + " \003(\0132/.google.pubsub.v1.PubsubMessage.AttributesEntryB\003\340A\001\022\022\n\n" + "message_id\030\003 \001(\t\0220\n" + "\014publish_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\014ordering_key\030\005 \001(\tB\003\340A\001\0321\n" + "\017AttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"H\n" - + "\017GetTopicRequest\0225\n" - + "\005topic\030\001 \001(\tB&\340A\002\340A\010\372A\035\n" + + "\005value\030\002 \001(\t:\0028\001\"E\n" + + "\017GetTopicRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\"w\n" + "\022UpdateTopicRequest\022+\n" + "\005topic\030\001 \001(\0132\027.google.pubsub.v1.TopicB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\177\n" - + "\016PublishRequest\0225\n" - + "\005topic\030\001 \001(\tB&\340A\002\340A\010\372A\035\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"|\n" + + "\016PublishRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\0226\n" + "\010messages\030\002 \003(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\002\"+\n" + "\017PublishResponse\022\030\n" - + "\013message_ids\030\001 \003(\tB\003\340A\001\"\215\001\n" - + "\021ListTopicsRequest\022G\n" - + "\007project\030\001 \001(\tB6\340A\002\340A\010\372A-\n" + + "\013message_ids\030\001 \003(\tB\003\340A\001\"\212\001\n" + + "\021ListTopicsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"`\n" @@ -681,9 +699,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032ListTopicSnapshotsResponse\0229\n" + "\tsnapshots\030\001 \003(\tB&\340A\001\372A \n" + "\036pubsub.googleapis.com/Snapshot\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"K\n" - + "\022DeleteTopicRequest\0225\n" - + "\005topic\030\001 \001(\tB&\340A\002\340A\010\372A\035\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"H\n" + + "\022DeleteTopicRequest\0222\n" + + "\005topic\030\001 \001(\tB#\340A\002\372A\035\n" + "\033pubsub.googleapis.com/Topic\"]\n" + "\031DetachSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -697,14 +715,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\034.google.pubsub.v1.PushConfigB\003\340A\001\022>\n" + "\017bigquery_config\030\022 \001(\0132" + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n" - + "\024cloud_storage_config\030\026 \001(\0132$.g" - + "oogle.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + + "\024cloud_storage_config\030\026" + + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + "\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n" + "\025retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n" + "\032message_retention_duration\030\010" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?\n" - + "\006labels\030\t \003(\0132*.goo" - + "gle.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + + "\006labels\030\t" + + " \003(\0132*.google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + "\027enable_message_ordering\030\n" + " \001(\010B\003\340A\001\022B\n" + "\021expiration_policy\030\013" @@ -719,8 +737,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " topic_message_retention_duration\030\021" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228\n" + "\005state\030\023 \001(\0162$.google.pubsub.v1.Subscription.StateB\003\340A\003\022i\n" - + "\037analytics_hub_subscription_info\030\027 \001(\0132;.google.pubsub.v1.Subs" - + "cription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + + "\037analytics_hub_subscription_info\030\027 \001(\0132;.goo" + + "gle.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + "\022message_transforms\030\031" + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\022A\n" + "\004tags\030\032 \003(\0132(.google.pubsub.v1.Subscription.TagsEntryB" @@ -739,8 +757,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub.googleapis." - + "com/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub.googleapis.com/Subscription\022/proj" + + "ects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" @@ -754,12 +772,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + "PushConfig\022\032\n\r" + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" - + "attributes\030\002 \003(\0132,.google" - + ".pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" - + "oidc_token\030\003" - + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" - + "\016pubsub_wrapper\030\004" - + " \001(\0132*.google.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + + "attributes\030\002" + + " \003(\0132,.google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "oidc_token\030\003 \001(\013" + + "2&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + + "\016pubsub_wrapper\030\004 \001(\0132*.google" + + ".pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + "no_wrapper\030\005" + " \001(\0132&.google.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n" + "\tOidcToken\022\"\n" @@ -772,33 +790,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\027\n" + "\025authentication_methodB\t\n" - + "\007wrapper\"\216\003\n" + + "\007wrapper\"\262\003\n" + "\016BigQueryConfig\022\022\n" + "\005table\030\001 \001(\tB\003\340A\001\022\035\n" + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n" + "\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n" - + "\005state\030\005" - + " \001(\0162&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + + "\005state\030\005 \001(\0162&.go" + + "ogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" - + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\212\001\n" + + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\256\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\025\n" + "\021PERMISSION_DENIED\020\002\022\r\n" + "\tNOT_FOUND\020\003\022\023\n" + "\017SCHEMA_MISMATCH\020\004\022#\n" - + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\"\351\005\n" + + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\022\"\n" + + "\036VERTEX_AI_LOCATION_RESTRICTION\020\006\"\215\006\n" + "\022CloudStorageConfig\022\023\n" + "\006bucket\030\001 \001(\tB\003\340A\002\022\034\n" + "\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n" + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + "\030filename_datetime_format\030\n" + " \001(\tB\003\340A\001\022K\n" - + "\013text_config\030\004 \001(\0132/.goo" - + "gle.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" - + "\013avro_config\030\005 \001(\0132/.google" - + ".pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\013text_config\030\004" + + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005" + + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + "\014max_duration\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" @@ -809,39 +828,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "TextConfig\032H\n\n" + "AvroConfig\022\033\n" + "\016write_metadata\030\001 \001(\010B\003\340A\001\022\035\n" - + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\212\001\n" + + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\"\256\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\025\n" + "\021PERMISSION_DENIED\020\002\022\r\n" + "\tNOT_FOUND\020\003\022#\n" + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\004\022\023\n" - + "\017SCHEMA_MISMATCH\020\005B\017\n\r" + + "\017SCHEMA_MISMATCH\020\005\022\"\n" + + "\036VERTEX_AI_LOCATION_RESTRICTION\020\006B\017\n\r" + "output_format\"|\n" + "\017ReceivedMessage\022\023\n" + "\006ack_id\030\001 \001(\tB\003\340A\001\0225\n" + "\007message\030\002" + " \001(\0132\037.google.pubsub.v1.PubsubMessageB\003\340A\001\022\035\n" - + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"]\n" - + "\026GetSubscriptionRequest\022C\n" - + "\014subscription\030\001 \001(\tB-\340A\002\340A\010\372A$\n" + + "\020delivery_attempt\030\003 \001(\005B\003\340A\001\"Z\n" + + "\026GetSubscriptionRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\214\001\n" + "\031UpdateSubscriptionRequest\0229\n" + "\014subscription\030\001" + " \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\224\001\n" - + "\030ListSubscriptionsRequest\022G\n" - + "\007project\030\001 \001(\tB6\340A\002\340A\010\372A-\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001\n" + + "\030ListSubscriptionsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"u\n" + "\031ListSubscriptionsResponse\022:\n\r" + "subscriptions\030\001" + " \003(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"`\n" - + "\031DeleteSubscriptionRequest\022C\n" - + "\014subscription\030\001 \001(\tB-\340A\002\340A\010\372A$\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"]\n" + + "\031DeleteSubscriptionRequest\022@\n" + + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\223\001\n" + "\027ModifyPushConfigRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -878,38 +898,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020protocol_version\030\n" + " \001(\003B\003\340A\001\"\236\006\n" + "\025StreamingPullResponse\022A\n" - + "\021received_messages\030\001 " - + "\003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 \001(\0132?." - + "google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132E.google.p" - + "ubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v1.St" - + "reamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + + "\021received_messages\030\001" + + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" + + "\030acknowledge_confirmation\030\005 \001(\0132?" + + ".google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" + + " modify_ack_deadline_confirmation\030\003 \001(\0132E.google." + + "pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" + + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v1.S" + + "treamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" + "\027AcknowledgeConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" + "\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n" - + "\030temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n" + + "\030temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032", + "z\n" + "\035ModifyAckDeadlineConfirmation\022\024\n" + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022%\n" + "\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n" + "\026SubscriptionProperties\022*\n" + "\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" - + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\204\003\n" - + "\025CreateSnapshotRequest\0227\n" - + "\004name\030\001 \001(\tB)\340A\002\340A\010\372A \n" + + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\201\003\n" + + "\025CreateSnapshotRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036pubsub.googleapis.com/Snapshot\022@\n" + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 \003(\01323.g", - "oogle.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\022J\n" + + "\006labels\030\003 \003(\01323.goo" + + "gle.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\022J\n" + "\004tags\030\004 \003(\01321.google.pubsub.v1.CreateSnapshotRequest.TagsEntryB" + "\t\340A\004\340A\005\340A\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -929,20 +949,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" - + "\tsnapshots2\010snapshot\"Q\n" - + "\022GetSnapshotRequest\022;\n" - + "\010snapshot\030\001 \001(\tB)\340A\002\340A\010\372A \n" - + "\036pubsub.googleapis.com/Snapshot\"\220\001\n" - + "\024ListSnapshotsRequest\022G\n" - + "\007project\030\001 \001(\tB6\340A\002\340A\010\372A-\n" + + "\tsnapshots2\010snapshot\"N\n" + + "\022GetSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + + "\036pubsub.googleapis.com/Snapshot\"\215\001\n" + + "\024ListSnapshotsRequest\022D\n" + + "\007project\030\001 \001(\tB3\340A\002\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"i\n" + "\025ListSnapshotsResponse\0222\n" + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"T\n" - + "\025DeleteSnapshotRequest\022;\n" - + "\010snapshot\030\001 \001(\tB)\340A\002\340A\010\372A \n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n" + + "\025DeleteSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" + "\036pubsub.googleapis.com/Snapshot\"\306\001\n" + "\013SeekRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" @@ -953,98 +973,95 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006target\"\016\n" + "\014SeekResponse2\270\013\n" + "\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.googl" - + "e.pubsub.v1.Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicReques" - + "t\032\027.google.pubsub.v1.Topic\"C\332A\021topic,upd" - + "ate_mask\202\323\344\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" - + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1" - + ".PublishResponse\"C\332A\016topic,messages\202\323\344\223\002" - + ",\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" - + "\010GetTopic\022!.google.pubsub.v1.Get" - + "TopicRequest\032\027.google.pubsub.v1.Topic\"/\332" - + "A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" - + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.Li" - + "stTopicsResponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTo" - + "picSubscriptionsRequest\0320.google.pubsub." - + "v1.ListTopicSubscriptionsResponse\"=\332A\005to" - + "pic\202\323\344\223\002/\022-/v1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" - + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsReq" - + "uest\032,.google.pubsub.v1.ListTopicSnapsho" - + "tsResponse\"9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" - + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicReque" - + "st\032\026.google.protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" - + "\022DetachSubscription\022+.google.pubsub.v1.De" - + "tachSubscriptionRequest\032,.google.pubsub." - + "v1.DetachSubscriptionResponse\"<\202\323\344\223\0026\"4/" - + "v1/{subscription=projects/*/subscription" - + "s/*}:detach\032p\312A\025pubsub.googleapis.com\322AU" - + "https://www.googleapis.com/auth/cloud-pl" - + "atform,https://www.googleapis.com/auth/pubsub2\322\025\n\n" + + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsub.v1" + + ".Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" + + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicRequest\032\027.google." + + "pubsub.v1.Topic\"C\332A\021topic,update_mask\202\323\344" + + "\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" + + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1.PublishRes" + + "ponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" + + "\010GetTopic\022!.google.pubsub.v1.GetTopicReques" + + "t\032\027.google.pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" + + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.ListTopicsRes" + + "ponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" + + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTopicSubscrip" + + "tionsRequest\0320.google.pubsub.v1.ListTopi" + + "cSubscriptionsResponse\"=\332A\005topic\202\323\344\223\002/\022-" + + "/v1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" + + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsRequest\032,.goog" + + "le.pubsub.v1.ListTopicSnapshotsResponse\"" + + "9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" + + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicRequest\032\026.google" + + ".protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" + + "\022DetachSubscription\022+.google.pubsub.v1.DetachSubscri" + + "ptionRequest\032,.google.pubsub.v1.DetachSu" + + "bscriptionResponse\"<\202\323\344\223\0026\"4/v1/{subscri" + + "ption=projects/*/subscriptions/*}:detach" + + "\032p\312A\025pubsub.googleapis.com\322AUhttps://www" + + ".googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub2\322\025\n\n" + "Subscriber\022\264\001\n" - + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.go" - + "ogle.pubsub.v1.Subscription\"^\332A+name,top" - + "ic,push_config,ack_deadline_seconds\202\323\344\223\002" - + "*\032%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" - + "\017GetSubscription\022(.google.pubsub.v1.GetSubscriptionRequest\032\036.google.pubsu" - + "b.v1.Subscription\"D\332A\014subscription\202\323\344\223\002/" - + "\022-/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" - + "\022UpdateSubscription\022+.google.pubsub.v1.UpdateSubscriptionRequest\032\036.go" - + "ogle.pubsub.v1.Subscription\"X\332A\030subscrip" - + "tion,update_mask\202\323\344\223\002722/v1/{subscriptio" - + "n.name=projects/*/subscriptions/*}:\001*\022\246\001\n" - + "\021ListSubscriptions\022*.google.pubsub.v1.L" - + "istSubscriptionsRequest\032+.google.pubsub." - + "v1.ListSubscriptionsResponse\"8\332A\007project" - + "\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" - + "\022DeleteSubscription\022+.google.pubsub.v1.DeleteSubscriptionRequest\032\026.goo" - + "gle.protobuf.Empty\"D\332A\014subscription\202\323\344\223\002" - + "/*-/v1/{subscription=projects/*/subscriptions/*}\022\317\001\n" - + "\021ModifyAckDeadline\022*.google.pubsub.v1.ModifyAckDeadlineRequest\032\026.goo" - + "gle.protobuf.Empty\"v\332A)subscription,ack_" - + "ids,ack_deadline_seconds\202\323\344\223\002D\"?/v1/{sub" - + "scription=projects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" - + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.googl" - + "e.protobuf.Empty\"[\332A\024subscription,ack_id" - + "s\202\323\344\223\002>\"9/v1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" - + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google.p" - + "ubsub.v1.PullResponse\"\210\001\332A,subscription," - + "return_immediately,max_messages\332A\031subscr" - + "iption,max_messages\202\323\344\223\0027\"2/v1/{subscrip" - + "tion=projects/*/subscriptions/*}:pull:\001*\022f\n\r" - + "StreamingPull\022&.google.pubsub.v1.Str" - + "eamingPullRequest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" - + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConfi" - + "gRequest\032\026.google.protobuf.Empty\"d\332A\030sub" - + "scription,push_config\202\323\344\223\002C\">/v1/{subscr" - + "iption=projects/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" - + "\013GetSnapshot\022$.google.pubsub.v1.GetSnapshotRequest\032\032.google.pu" - + "bsub.v1.Snapshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" - + "ListSnapshots\022&.google.pubsub.v1.ListSnap" - + "shotsRequest\032\'.google.pubsub.v1.ListSnap" - + "shotsResponse\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" - + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapshot" - + "Request\032\032.google.pubsub.v1.Snapshot\"@\332A\021" - + "name,subscription\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" - + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotReques" - + "t\032\032.google.pubsub.v1.Snapshot\"L\332A\024snapsh" - + "ot,update_mask\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" - + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapshot" - + "Request\032\026.google.protobuf.Empty\"8\332A\010snap" - + "shot\202\323\344\223\002\'*%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" - + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036.google.pubsub.v1.SeekRespons" - + "e\"=\202\323\344\223\0027\"2/v1/{subscription=projects/*/" - + "subscriptions/*}:seek:\001*\032p\312A\025pubsub.goog" - + "leapis.com\322AUhttps://www.googleapis.com/" - + "auth/cloud-platform,https://www.googleapis.com/auth/pubsubB\247\003\n" - + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go/" - + "pubsub/v2/apiv1/pubsubpb;pubsubpb\252\002\026Goog" - + "le.Cloud.PubSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/" - + "{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" - + "#analyticshub.googleapis.com/Listing\022Xprojects/{project}/locations/{location}/data" - + "Exchanges/{data_exchange}/listings/{listing}b\006proto3" + + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.google.pubsub" + + ".v1.Subscription\"^\332A+name,topic,push_con" + + "fig,ack_deadline_seconds\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" + + "\017GetSubscription\022(.google.pubsub.v1.GetSubsc" + + "riptionRequest\032\036.google.pubsub.v1.Subscr" + + "iption\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" + + "\022UpdateSubscription\022+.google.pubsub.v1.U" + + "pdateSubscriptionRequest\032\036.google.pubsub" + + ".v1.Subscription\"X\332A\030subscription,update" + + "_mask\202\323\344\223\002722/v1/{subscription.name=projects/*/subscriptions/*}:\001*\022\246\001\n" + + "\021ListSubscriptions\022*.google.pubsub.v1.ListSubscrip" + + "tionsRequest\032+.google.pubsub.v1.ListSubs" + + "criptionsResponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" + + "\022DeleteSubscription\022+.google.pubsub.v1.De" + + "leteSubscriptionRequest\032\026.google.protobu" + + "f.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{sub" + + "scription=projects/*/subscriptions/*}\022\317\001\n" + + "\021ModifyAckDeadline\022*.google.pubsub.v1.M" + + "odifyAckDeadlineRequest\032\026.google.protobu" + + "f.Empty\"v\332A)subscription,ack_ids,ack_dea" + + "dline_seconds\202\323\344\223\002D\"?/v1/{subscription=p" + + "rojects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" + + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.google.protobuf." + + "Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9/v" + + "1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" + + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google.pubsub.v1.Pu" + + "llResponse\"\210\001\332A,subscription,return_imme" + + "diately,max_messages\332A\031subscription,max_" + + "messages\202\323\344\223\0027\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\001*\022f\n\r" + + "StreamingPull\022&.google.pubsub.v1.StreamingPullR" + + "equest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" + + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConfigRequest\032\026." + + "google.protobuf.Empty\"d\332A\030subscription,p" + + "ush_config\202\323\344\223\002C\">/v1/{subscription=proj" + + "ects/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" + + "\013GetSnapshot\022$.google.pubsub.v1.GetSnapshotRequest\032\032.google.pubsub.v1.Sna" + + "pshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" + + "ListSnapshots\022&.google.pubsub.v1.ListSnapshotsReques" + + "t\032\'.google.pubsub.v1.ListSnapshotsRespon" + + "se\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" + + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapshotRequest\032\032.g" + + "oogle.pubsub.v1.Snapshot\"@\332A\021name,subscr" + + "iption\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" + + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotRequest\032\032.google." + + "pubsub.v1.Snapshot\"L\332A\024snapshot,update_m" + + "ask\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" + + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapshotRequest\032\026.g" + + "oogle.protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*" + + "%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" + + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036" + + ".google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2" + + "/v1/{subscription=projects/*/subscriptio" + + "ns/*}:seek:\001*\032p\312A\025pubsub.googleapis.com\322" + + "AUhttps://www.googleapis.com/auth/cloud-" + + "platform,https://www.googleapis.com/auth/pubsubB\247\003\n" + + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go/pubsub/v2/a" + + "piv1/pubsubpb;pubsubpb\252\002\026Google.Cloud.Pu" + + "bSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/l" + + "ocations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" + + "#analyticshub.googleapis.com/Listing\022Xprojects/{proje" + + "ct}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1057,6 +1074,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.pubsub.v1.SchemaProto.getDescriptor(), }); @@ -1314,15 +1332,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FunctionName", "Code", }); - internal_static_google_pubsub_v1_MessageTransform_descriptor = + internal_static_google_pubsub_v1_AIInference_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_AIInference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_AIInference_descriptor, + new java.lang.String[] { + "Endpoint", "UnstructuredInference", "ServiceAccountEmail", "InferenceMode", + }); + internal_static_google_pubsub_v1_AIInference_UnstructuredInference_descriptor = + internal_static_google_pubsub_v1_AIInference_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_AIInference_UnstructuredInference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_pubsub_v1_AIInference_UnstructuredInference_descriptor, + new java.lang.String[] { + "Parameters", + }); + internal_static_google_pubsub_v1_MessageTransform_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_MessageTransform_descriptor, new java.lang.String[] { - "JavascriptUdf", "Enabled", "Disabled", "Transform", + "JavascriptUdf", "AiInference", "Enabled", "Disabled", "Transform", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(7); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, @@ -1356,7 +1390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, @@ -1372,7 +1406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, @@ -1380,7 +1414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, @@ -1388,7 +1422,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "UpdateMask", }); internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, @@ -1396,7 +1430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, @@ -1404,7 +1438,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, @@ -1412,7 +1446,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, @@ -1420,7 +1454,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, @@ -1428,7 +1462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, @@ -1436,7 +1470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, @@ -1444,7 +1478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, @@ -1452,7 +1486,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, @@ -1460,7 +1494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, @@ -1468,13 +1502,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, @@ -1526,7 +1560,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, @@ -1534,7 +1568,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, @@ -1542,7 +1576,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, @@ -1550,7 +1584,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ttl", }); internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, @@ -1594,7 +1628,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, @@ -1608,7 +1642,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccountEmail", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, @@ -1641,7 +1675,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -1649,7 +1683,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -1657,7 +1691,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -1665,7 +1699,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -1673,7 +1707,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -1681,7 +1715,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -1689,7 +1723,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, @@ -1697,7 +1731,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "PushConfig", }); internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, @@ -1705,7 +1739,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "ReturnImmediately", "MaxMessages", }); internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -1713,7 +1747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -1721,7 +1755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -1729,7 +1763,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -1745,7 +1779,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProtocolVersion", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -1780,7 +1814,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -1804,7 +1838,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, @@ -1812,7 +1846,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", "UpdateMask", }); internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1828,7 +1862,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(46); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1836,7 +1870,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(47); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1844,7 +1878,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(48); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1852,7 +1886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(49); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, @@ -1860,7 +1894,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(50); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, @@ -1868,7 +1902,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Time", "Snapshot", "Target", }); internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(51); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); @@ -1891,6 +1925,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.pubsub.v1.SchemaProto.getDescriptor(); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 359811a333f8..aa9f8534ed52 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -141,7 +141,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
      * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2052 + * google/pubsub/v1/pubsub.proto;l=2098 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { *
      * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2052 + * google/pubsub/v1/pubsub.proto;l=2098 * @return The returnImmediately. */ @java.lang.Override @@ -727,7 +727,7 @@ public boolean getReturnImmediately() { *
      * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2052 + * google/pubsub/v1/pubsub.proto;l=2098 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -758,7 +758,7 @@ public Builder setReturnImmediately(boolean value) { *
      * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2052 + * google/pubsub/v1/pubsub.proto;l=2098 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 7c00e35b508c..4127d54a9aa6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,7 +73,7 @@ public interface PullRequestOrBuilder *
      * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2052 + * google/pubsub/v1/pubsub.proto;l=2098 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index 9c451fad3e63..b9e013d59f8f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index 3cdb5f54b39b..f5f2b68479b4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 5a1b2985ffe5..4165a9093d49 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 77f4f69a1367..0a6358afcfc4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index 6d9320a05cc4..f916be13ff26 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index 75d446b0dc72..ac4189647890 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index f693b46a0ab4..0f4fa3c7ef37 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 1e52a739da38..3685bcb546ea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index 23d85bd5f8d4..fa7078f6a1fc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index 03006247f89c..c21bfd90aac6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index d597284076aa..863a75fe9a72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java index c1199db1a6b9..b3eaa772f014 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index 4dd47945e479..b6d585d04ed5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index 88776c194311..c918247f897f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index eed46924c3d5..8dc989fab6dd 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 928da4bd36a5..5b6d7c1cf0a8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index d896d54002a8..aeecfa82f72a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index d4c4155bd234..20b1493f504e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index a912d7eeba39..c2dfb4a4ffd0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 804b7792b354..62873623c524 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 80a4ce8e8ba6..123ca3392f67 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 4c03d1272127..47e2309a9f64 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java index 824bcd085069..a3a2342396c2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 2d5b3ad628d1..0b8f450c376e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index b24d3d92231c..f052854be9c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index d23cb626e876..8f2b3b186f0f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index bf36bc06f405..83f04a1ab732 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 516c56f47d19..4802141688c6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index b36abdc68538..adccb455acf4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -2228,7 +2228,7 @@ public com.google.pubsub.v1.Subscription.State getState() { * *
          * Output only. Information about the associated Analytics Hub subscription.
      -   * Only set if the subscritpion is created by Analytics Hub.
      +   * Only set if the subscription is created by Analytics Hub.
          * 
      * * @@ -2247,7 +2247,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { * *
          * Output only. Information about the associated Analytics Hub subscription.
      -   * Only set if the subscritpion is created by Analytics Hub.
      +   * Only set if the subscription is created by Analytics Hub.
          * 
      * * @@ -2269,7 +2269,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { * *
          * Output only. Information about the associated Analytics Hub subscription.
      -   * Only set if the subscritpion is created by Analytics Hub.
      +   * Only set if the subscription is created by Analytics Hub.
          * 
      * * @@ -2410,6 +2410,8 @@ public int getTagsCount() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -2439,6 +2441,8 @@ public java.util.Map getTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -2458,6 +2462,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -2484,6 +2490,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -6621,7 +6629,7 @@ public Builder clearState() { * *
            * Output only. Information about the associated Analytics Hub subscription.
      -     * Only set if the subscritpion is created by Analytics Hub.
      +     * Only set if the subscription is created by Analytics Hub.
            * 
      * * @@ -6639,7 +6647,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { * *
            * Output only. Information about the associated Analytics Hub subscription.
      -     * Only set if the subscritpion is created by Analytics Hub.
      +     * Only set if the subscription is created by Analytics Hub.
            * 
      * * @@ -6664,7 +6672,7 @@ public boolean hasAnalyticsHubSubscriptionInfo() { * *
            * Output only. Information about the associated Analytics Hub subscription.
      -     * Only set if the subscritpion is created by Analytics Hub.
      +     * Only set if the subscription is created by Analytics Hub.
            * 
      * * @@ -6691,7 +6699,7 @@ public Builder setAnalyticsHubSubscriptionInfo( * *
            * Output only. Information about the associated Analytics Hub subscription.
      -     * Only set if the subscritpion is created by Analytics Hub.
      +     * Only set if the subscription is created by Analytics Hub.
            * 
      * * @@ -6715,7 +6723,7 @@ public Builder setAnalyticsHubSubscriptionInfo( * *
            * Output only. Information about the associated Analytics Hub subscription.
      -     * Only set if the subscritpion is created by Analytics Hub.
      +     * Only set if the subscription is created by Analytics Hub.
            * 
      * * @@ -6749,7 +6757,7 @@ public Builder mergeAnalyticsHubSubscriptionInfo( * *
            * Output only. Information about the associated Analytics Hub subscription.
      -     * Only set if the subscritpion is created by Analytics Hub.
      +     * Only set if the subscription is created by Analytics Hub.
            * 
      * * @@ -6772,7 +6780,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { * *
            * Output only. Information about the associated Analytics Hub subscription.
      -     * Only set if the subscritpion is created by Analytics Hub.
      +     * Only set if the subscription is created by Analytics Hub.
            * 
      * * @@ -6791,7 +6799,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { * *
            * Output only. Information about the associated Analytics Hub subscription.
      -     * Only set if the subscritpion is created by Analytics Hub.
      +     * Only set if the subscription is created by Analytics Hub.
            * 
      * * @@ -6814,7 +6822,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { * *
            * Output only. Information about the associated Analytics Hub subscription.
      -     * Only set if the subscritpion is created by Analytics Hub.
      +     * Only set if the subscription is created by Analytics Hub.
            * 
      * * @@ -7297,6 +7305,8 @@ public int getTagsCount() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -7326,6 +7336,8 @@ public java.util.Map getTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -7345,6 +7357,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -7371,6 +7385,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -7403,6 +7419,8 @@ public Builder clearTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -7432,6 +7450,8 @@ public java.util.Map getMutableTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -7458,6 +7478,8 @@ public Builder putTags(java.lang.String key, java.lang.String value) { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java index 747b856c470a..2c12a10dcde1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index fb8459de7509..371f05913de4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -778,7 +778,7 @@ java.lang.String getLabelsOrDefault( * *
          * Output only. Information about the associated Analytics Hub subscription.
      -   * Only set if the subscritpion is created by Analytics Hub.
      +   * Only set if the subscription is created by Analytics Hub.
          * 
      * * @@ -794,7 +794,7 @@ java.lang.String getLabelsOrDefault( * *
          * Output only. Information about the associated Analytics Hub subscription.
      -   * Only set if the subscritpion is created by Analytics Hub.
      +   * Only set if the subscription is created by Analytics Hub.
          * 
      * * @@ -810,7 +810,7 @@ java.lang.String getLabelsOrDefault( * *
          * Output only. Information about the associated Analytics Hub subscription.
      -   * Only set if the subscritpion is created by Analytics Hub.
      +   * Only set if the subscription is created by Analytics Hub.
          * 
      * * @@ -899,6 +899,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -915,6 +917,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -935,6 +939,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -951,6 +957,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -971,6 +979,8 @@ java.lang.String getTagsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index c1e75d4e4189..563a2feb5815 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -935,6 +935,8 @@ public int getTagsCount() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -964,6 +966,8 @@ public java.util.Map getTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -983,6 +987,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -1009,6 +1015,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -3785,6 +3793,8 @@ public int getTagsCount() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -3814,6 +3824,8 @@ public java.util.Map getTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -3833,6 +3845,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -3859,6 +3873,8 @@ public java.util.Map getTagsMap() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -3891,6 +3907,8 @@ public Builder clearTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -3920,6 +3938,8 @@ public java.util.Map getMutableTags() { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -3946,6 +3966,8 @@ public Builder putTags(java.lang.String key, java.lang.String value) { * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java index aec5434316e4..0a21c87d864e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 60080e1674e3..6ba83cf390c9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -492,6 +492,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -508,6 +510,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -528,6 +532,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -544,6 +550,8 @@ java.lang.String getLabelsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * @@ -564,6 +572,8 @@ java.lang.String getTagsOrDefault( * resource. For example: * "123/environment": "production", * "123/costCenter": "marketing" + * See https://docs.cloud.google.com/pubsub/docs/tags for more information on + * using tags with Pub/Sub resources. * * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index d96367623f66..dff4fc4fecc6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 03b116d81a62..1f2dde4090e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index 7dbdcfa97a99..fca247f1958a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index f03c11261342..6a180c218efe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index 85b634b70499..f6b0db9d5d47 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index a0425706b1dd..dc69ff6239c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 6db4d37c84bb..0c1d390feb03 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index 65e62e5164a4..cc528d1b8705 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index 589f4cdd06f2..adc83bf94a3f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index 9db53fcc8d20..a86e7459c79e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 99b28411067d..4bef8e405f8d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index c0f8e1e24d0c..3d7e744253af 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index b195c89c845e..485f584480ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index c7aaac7e94e4..9b0803ac422e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2025 Google LLC + * Copyright 2026 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 95dd7f829cea..9a24bc1d40a7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/pubsub/v1/schema.proto"; @@ -805,6 +806,39 @@ message JavaScriptUDF { string code = 2 [(google.api.field_behavior) = REQUIRED]; } +// Configuration for making inference requests against Vertex AI models. +message AIInference { + // Configuration for making inferences using arbitrary JSON payloads. + message UnstructuredInference { + // Optional. A parameters object to be included in each inference request. + // The parameters object is combined with the data field of the Pub/Sub + // message to form the inference request. + google.protobuf.Struct parameters = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. An endpoint to a Vertex AI model of the form + // `projects/{project}/locations/{location}/endpoints/{endpoint}` or + // `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`. + // Vertex AI API requests will be sent to this endpoint. + string endpoint = 1 [(google.api.field_behavior) = REQUIRED]; + + // The format of inference requests made to the endpoint. + oneof inference_mode { + // Optional. Requests and responses can be any arbitrary JSON object. + UnstructuredInference unstructured_inference = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The service account to use to make prediction requests against + // endpoints. The resource creator or updater that specifies this field must + // have `iam.serviceAccounts.actAs` permission on the service account. If not + // specified, the Pub/Sub [service + // agent]({$universe.dns_names.final_documentation_domain}/iam/docs/service-agents), + // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. + string service_account_email = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // All supported message transforms types. message MessageTransform { // The type of transform to apply to messages. @@ -812,6 +846,11 @@ message MessageTransform { // Optional. JavaScript User Defined Function. If multiple JavaScriptUDF's // are specified on a resource, each must have a unique `function_name`. JavaScriptUDF javascript_udf = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. AI Inference. Specifies the Vertex AI endpoint that inference + // requests built from the Pub/Sub message data and provided parameters will + // be sent to. + AIInference ai_inference = 6 [(google.api.field_behavior) = OPTIONAL]; } // Optional. This field is deprecated, use the `disabled` field to disable @@ -914,6 +953,8 @@ message Topic { // resource. For example: // "123/environment": "production", // "123/costCenter": "marketing" + // See https://docs.cloud.google.com/pubsub/docs/tags for more information on + // using tags with Pub/Sub resources. map tags = 14 [ (google.api.field_behavior) = INPUT_ONLY, (google.api.field_behavior) = IMMUTABLE, @@ -963,11 +1004,10 @@ message PubsubMessage { // Request for the GetTopic method. message GetTopicRequest { - // Required. Identifier. The name of the topic to get. + // Required. The name of the topic to get. // Format is `projects/{project}/topics/{topic}`. string topic = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; } @@ -988,11 +1028,10 @@ message UpdateTopicRequest { // Request for the Publish method. message PublishRequest { - // Required. Identifier. The messages in the request will be published on this - // topic. Format is `projects/{project}/topics/{topic}`. + // Required. The messages in the request will be published on this topic. + // Format is `projects/{project}/topics/{topic}`. string topic = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; @@ -1010,11 +1049,10 @@ message PublishResponse { // Request for the `ListTopics` method. message ListTopicsRequest { - // Required. Identifier. The name of the project in which to list topics. + // Required. The name of the project in which to list topics. // Format is `projects/{project-id}`. string project = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "cloudresourcemanager.googleapis.com/Project" } @@ -1108,11 +1146,10 @@ message ListTopicSnapshotsResponse { // Request for the `DeleteTopic` method. message DeleteTopicRequest { - // Required. Identifier. Name of the topic to delete. + // Required. Name of the topic to delete. // Format is `projects/{project}/topics/{topic}`. string topic = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; } @@ -1559,7 +1596,7 @@ message Subscription { State state = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Information about the associated Analytics Hub subscription. - // Only set if the subscritpion is created by Analytics Hub. + // Only set if the subscription is created by Analytics Hub. AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -1572,6 +1609,8 @@ message Subscription { // resource. For example: // "123/environment": "production", // "123/costCenter": "marketing" + // See https://docs.cloud.google.com/pubsub/docs/tags for more information on + // using tags with Pub/Sub resources. map tags = 26 [ (google.api.field_behavior) = INPUT_ONLY, (google.api.field_behavior) = IMMUTABLE, @@ -1766,6 +1805,11 @@ message BigQueryConfig { // Cannot write to the destination because enforce_in_transit is set to true // and the destination locations are not in the allowed regions. IN_TRANSIT_LOCATION_RESTRICTION = 5; + + // Cannot write to the BigQuery table because the table is not in the same + // location as where Vertex AI models used in `message_transform`s are + // deployed. + VERTEX_AI_LOCATION_RESTRICTION = 6; } // Optional. The name of the table to which to write data, of the form @@ -1854,6 +1898,11 @@ message CloudStorageConfig { // Cannot write to the Cloud Storage bucket due to an incompatibility // between the topic schema and subscription settings. SCHEMA_MISMATCH = 5; + + // Cannot write to the Cloud Storage bucket because the bucket is not in the + // same location as where Vertex AI models used in `message_transform`s are + // deployed. + VERTEX_AI_LOCATION_RESTRICTION = 6; } // Required. User-provided name for the Cloud Storage bucket. @@ -1944,11 +1993,10 @@ message ReceivedMessage { // Request for the GetSubscription method. message GetSubscriptionRequest { - // Required. Identifier. The name of the subscription to get. + // Required. The name of the subscription to get. // Format is `projects/{project}/subscriptions/{sub}`. string subscription = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Subscription" } @@ -1968,11 +2016,10 @@ message UpdateSubscriptionRequest { // Request for the `ListSubscriptions` method. message ListSubscriptionsRequest { - // Required. Identifier. The name of the project in which to list - // subscriptions. Format is `projects/{project-id}`. + // Required. The name of the project in which to list subscriptions. + // Format is `projects/{project-id}`. string project = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "cloudresourcemanager.googleapis.com/Project" } @@ -2001,11 +2048,10 @@ message ListSubscriptionsResponse { // Request for the DeleteSubscription method. message DeleteSubscriptionRequest { - // Required. Identifier. The subscription to delete. + // Required. The subscription to delete. // Format is `projects/{project}/subscriptions/{sub}`. string subscription = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Subscription" } @@ -2273,15 +2319,14 @@ message StreamingPullResponse { // Request for the `CreateSnapshot` method. message CreateSnapshotRequest { - // Required. Identifier. 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 + // 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](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). // Format is `projects/{project}/snapshots/{snap}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } ]; @@ -2309,6 +2354,8 @@ message CreateSnapshotRequest { // resource. For example: // "123/environment": "production", // "123/costCenter": "marketing" + // See https://docs.cloud.google.com/pubsub/docs/tags for more information on + // using tags with Pub/Sub resources. map tags = 4 [ (google.api.field_behavior) = INPUT_ONLY, (google.api.field_behavior) = IMMUTABLE, @@ -2370,22 +2417,20 @@ message Snapshot { // Request for the GetSnapshot method. message GetSnapshotRequest { - // Required. Identifier. The name of the snapshot to get. + // Required. The name of the snapshot to get. // Format is `projects/{project}/snapshots/{snap}`. string snapshot = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } ]; } // Request for the `ListSnapshots` method. message ListSnapshotsRequest { - // Required. Identifier. The name of the project in which to list snapshots. + // Required. The name of the project in which to list snapshots. // Format is `projects/{project-id}`. string project = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "cloudresourcemanager.googleapis.com/Project" } @@ -2413,11 +2458,10 @@ message ListSnapshotsResponse { // Request for the `DeleteSnapshot` method. message DeleteSnapshotRequest { - // Required. Identifier. The name of the snapshot to delete. + // Required. The name of the snapshot to delete. // Format is `projects/{project}/snapshots/{snap}`. string snapshot = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IDENTIFIER, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" } ]; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto index 37fd2f461c08..48a6b2aee3e1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/schema.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 0cde77f1f4e34b25adc070322ea4874c643492ca Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Jan 2026 14:48:16 -0500 Subject: [PATCH 2309/2363] chore(main): release 1.144.2-SNAPSHOT (#2655) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index cf72faf8f810..0aff9d9b5dad 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.144.1 + 1.144.2-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.144.1 + 1.144.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.1 + 1.126.2-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.1 + 1.126.2-SNAPSHOT
      diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 37c48b77be18..10a9373812ea 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.144.1 + 1.144.2-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.144.1 + 1.144.2-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 8ab76948c9ed..399b47aceebe 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.1 + 1.126.2-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.1 + 1.144.2-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index af14ec4a7a60..b0c3814a3e76 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.144.1 + 1.144.2-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.1 + 1.126.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.1 + 1.126.2-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.144.1 + 1.144.2-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 93bdf6c5acdb..d6a352de10c0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.1 + 1.126.2-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.1 + 1.144.2-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 59fdadc95a47..1cccc85a0db0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.144.1 + 1.144.2-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index c0a0d2f15da4..f8e3a9b4d3ee 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.144.1:1.144.1 -grpc-google-cloud-pubsub-v1:1.126.1:1.126.1 -proto-google-cloud-pubsub-v1:1.126.1:1.126.1 +google-cloud-pubsub:1.144.1:1.144.2-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.126.1:1.126.2-SNAPSHOT +proto-google-cloud-pubsub-v1:1.126.1:1.126.2-SNAPSHOT From 0f1e366206bc83eae879fd3c58e46fbae1ca02f2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Jan 2026 16:14:33 -0500 Subject: [PATCH 2310/2363] chore(main): release 1.145.0 (#2661) * chore(main): release 1.145.0 * chore: generate libraries at Thu Jan 15 19:49:21 UTC 2026 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 23 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 44 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 7019ced0fe9a..34f49328fccd 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## [1.145.0](https://github.com/googleapis/java-pubsub/compare/v1.144.1...v1.145.0) (2026-01-15) + + +### Features + +* Add AIInference MessageTransform type ([fe73614](https://github.com/googleapis/java-pubsub/commit/fe73614cdb6c2aca445c46e917c325cbfee3adfd)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.65.1 ([fe73614](https://github.com/googleapis/java-pubsub/commit/fe73614cdb6c2aca445c46e917c325cbfee3adfd)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.55.1 ([#2658](https://github.com/googleapis/java-pubsub/issues/2658)) ([1a11309](https://github.com/googleapis/java-pubsub/commit/1a1130914420b45d628553218a3fa4d477216143)) +* Update googleapis/sdk-platform-java action to v2.65.1 ([#2657](https://github.com/googleapis/java-pubsub/issues/2657)) ([72dd566](https://github.com/googleapis/java-pubsub/commit/72dd5668ab2e71a24bed66c55173ab9ff5093ced)) + + +### Documentation + +* Add tags documentation links to Pub/Sub resource tags fields ([fe73614](https://github.com/googleapis/java-pubsub/commit/fe73614cdb6c2aca445c46e917c325cbfee3adfd)) + ## [1.144.1](https://github.com/googleapis/java-pubsub/compare/v1.144.0...v1.144.1) (2025-12-22) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2b368903f5b1..14a3d50d8e85 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.144.1' +implementation 'com.google.cloud:google-cloud-pubsub:1.145.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.144.1" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.145.0" ``` ## Authentication @@ -401,7 +401,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.144.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.145.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0aff9d9b5dad..5e0f5e3407a6 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.144.2-SNAPSHOT + 1.145.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.144.2-SNAPSHOT + 1.145.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.2-SNAPSHOT + 1.127.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.2-SNAPSHOT + 1.127.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 10a9373812ea..b9a247b5ccfc 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.144.2-SNAPSHOT + 1.145.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.144.2-SNAPSHOT + 1.145.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 399b47aceebe..b5a2c7ad0e11 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.2-SNAPSHOT + 1.127.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.2-SNAPSHOT + 1.145.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b0c3814a3e76..6b474c9d1a87 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.144.2-SNAPSHOT + 1.145.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.2-SNAPSHOT + 1.127.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.126.2-SNAPSHOT + 1.127.0 com.google.cloud google-cloud-pubsub - 1.144.2-SNAPSHOT + 1.145.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index d6a352de10c0..2644a8333e46 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.126.2-SNAPSHOT + 1.127.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.144.2-SNAPSHOT + 1.145.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 1cccc85a0db0..70cc80a2349b 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.144.2-SNAPSHOT + 1.145.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index f8e3a9b4d3ee..9a8bb9ecb039 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.144.1:1.144.2-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.126.1:1.126.2-SNAPSHOT -proto-google-cloud-pubsub-v1:1.126.1:1.126.2-SNAPSHOT +google-cloud-pubsub:1.145.0:1.145.0 +grpc-google-cloud-pubsub-v1:1.127.0:1.127.0 +proto-google-cloud-pubsub-v1:1.127.0:1.127.0 From 9cdbf0ee810e2b956163e1775638ca71b9a2a09c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 23 Jan 2026 16:23:19 -0500 Subject: [PATCH 2311/2363] chore(main): release 1.145.1-SNAPSHOT (#2662) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 5e0f5e3407a6..0c8b33aa4d93 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.145.0 + 1.145.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.145.0 + 1.145.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.127.0 + 1.127.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.127.0 + 1.127.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index b9a247b5ccfc..7b005d873b3d 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.145.0 + 1.145.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.145.0 + 1.145.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index b5a2c7ad0e11..365f2268ebda 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.127.0 + 1.127.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.145.0 + 1.145.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6b474c9d1a87..d56a1624a9f3 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.145.0 + 1.145.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.127.0 + 1.127.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.127.0 + 1.127.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.145.0 + 1.145.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 2644a8333e46..6d0a89adcee7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.127.0 + 1.127.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.145.0 + 1.145.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 70cc80a2349b..d709c0207382 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.145.0 + 1.145.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 9a8bb9ecb039..8248cbd03d0d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.145.0:1.145.0 -grpc-google-cloud-pubsub-v1:1.127.0:1.127.0 -proto-google-cloud-pubsub-v1:1.127.0:1.127.0 +google-cloud-pubsub:1.145.0:1.145.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.127.0:1.127.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.127.0:1.127.1-SNAPSHOT From 61b55c3eb25f45c660ee841ba2cd011bce3f66af Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 23 Jan 2026 21:47:04 +0000 Subject: [PATCH 2312/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.56.0 (#2664) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 77d3c5ad2de2..8dc06537e660 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.55.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.56.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 0c8b33aa4d93..3bd6ad2c6042 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.55.1 + 3.56.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index d56a1624a9f3..123ae5b9d114 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.55.1 + 3.56.0 From b9594582640731e91bc9189313d0b8cb52d7817b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Fri, 23 Jan 2026 22:04:22 +0000 Subject: [PATCH 2313/2363] deps: update googleapis/sdk-platform-java action to v2.66.0 (#2665) Co-authored-by: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index 42c112db4dc8..d1a4b69f7aa0 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.65.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.66.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From c9df73e2f5a13f66cefa94983675390505746e0d Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 26 Jan 2026 11:19:00 -0500 Subject: [PATCH 2314/2363] chore: Update generation configuration at Mon Jan 26 16:02:26 UTC 2026 (#2668) * chore: Update generation configuration at Mon Jan 26 16:02:26 UTC 2026 * chore: generate libraries at Mon Jan 26 16:02:58 UTC 2026 --- .../workflows/update_generation_config.yaml | 4 +- .../.kokoro/presubmit/graalvm-native-a.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-b.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 6 +- .../reflect-config.json | 63 + .../com/google/pubsub/v1/AIInference.java | 226 +-- .../pubsub/v1/AIInferenceOrBuilder.java | 4 +- .../google/pubsub/v1/AcknowledgeRequest.java | 100 +- .../v1/AcknowledgeRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/BigQueryConfig.java | 118 +- .../pubsub/v1/BigQueryConfigOrBuilder.java | 4 +- .../google/pubsub/v1/CloudStorageConfig.java | 367 ++--- .../v1/CloudStorageConfigOrBuilder.java | 4 +- .../google/pubsub/v1/CommitSchemaRequest.java | 114 +- .../v1/CommitSchemaRequestOrBuilder.java | 4 +- .../google/pubsub/v1/CreateSchemaRequest.java | 122 +- .../v1/CreateSchemaRequestOrBuilder.java | 4 +- .../pubsub/v1/CreateSnapshotRequest.java | 238 ++- .../v1/CreateSnapshotRequestOrBuilder.java | 48 +- .../google/pubsub/v1/DeadLetterPolicy.java | 98 +- .../pubsub/v1/DeadLetterPolicyOrBuilder.java | 4 +- .../google/pubsub/v1/DeleteSchemaRequest.java | 98 +- .../v1/DeleteSchemaRequestOrBuilder.java | 4 +- .../v1/DeleteSchemaRevisionRequest.java | 106 +- .../DeleteSchemaRevisionRequestOrBuilder.java | 4 +- .../pubsub/v1/DeleteSnapshotRequest.java | 98 +- .../v1/DeleteSnapshotRequestOrBuilder.java | 4 +- .../pubsub/v1/DeleteSubscriptionRequest.java | 98 +- .../DeleteSubscriptionRequestOrBuilder.java | 4 +- .../google/pubsub/v1/DeleteTopicRequest.java | 98 +- .../v1/DeleteTopicRequestOrBuilder.java | 4 +- .../pubsub/v1/DetachSubscriptionRequest.java | 98 +- .../DetachSubscriptionRequestOrBuilder.java | 4 +- .../pubsub/v1/DetachSubscriptionResponse.java | 90 +- .../DetachSubscriptionResponseOrBuilder.java | 4 +- .../java/com/google/pubsub/v1/Encoding.java | 16 +- .../google/pubsub/v1/ExpirationPolicy.java | 106 +- .../pubsub/v1/ExpirationPolicyOrBuilder.java | 4 +- .../google/pubsub/v1/GetSchemaRequest.java | 98 +- .../pubsub/v1/GetSchemaRequestOrBuilder.java | 4 +- .../google/pubsub/v1/GetSnapshotRequest.java | 98 +- .../v1/GetSnapshotRequestOrBuilder.java | 4 +- .../pubsub/v1/GetSubscriptionRequest.java | 98 +- .../v1/GetSubscriptionRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/GetTopicRequest.java | 98 +- .../pubsub/v1/GetTopicRequestOrBuilder.java | 4 +- .../v1/IngestionDataSourceSettings.java | 1215 ++++++---------- .../IngestionDataSourceSettingsOrBuilder.java | 4 +- .../pubsub/v1/IngestionFailureEvent.java | 1273 ++++++----------- .../v1/IngestionFailureEventOrBuilder.java | 4 +- .../com/google/pubsub/v1/JavaScriptUDF.java | 448 +++--- .../pubsub/v1/JavaScriptUDFOrBuilder.java | 104 +- .../pubsub/v1/ListSchemaRevisionsRequest.java | 106 +- .../ListSchemaRevisionsRequestOrBuilder.java | 4 +- .../v1/ListSchemaRevisionsResponse.java | 119 +- .../ListSchemaRevisionsResponseOrBuilder.java | 4 +- .../google/pubsub/v1/ListSchemasRequest.java | 106 +- .../v1/ListSchemasRequestOrBuilder.java | 4 +- .../google/pubsub/v1/ListSchemasResponse.java | 119 +- .../v1/ListSchemasResponseOrBuilder.java | 4 +- .../pubsub/v1/ListSnapshotsRequest.java | 106 +- .../v1/ListSnapshotsRequestOrBuilder.java | 4 +- .../pubsub/v1/ListSnapshotsResponse.java | 118 +- .../v1/ListSnapshotsResponseOrBuilder.java | 4 +- .../pubsub/v1/ListSubscriptionsRequest.java | 106 +- .../v1/ListSubscriptionsRequestOrBuilder.java | 4 +- .../pubsub/v1/ListSubscriptionsResponse.java | 118 +- .../ListSubscriptionsResponseOrBuilder.java | 4 +- .../pubsub/v1/ListTopicSnapshotsRequest.java | 106 +- .../ListTopicSnapshotsRequestOrBuilder.java | 4 +- .../pubsub/v1/ListTopicSnapshotsResponse.java | 100 +- .../ListTopicSnapshotsResponseOrBuilder.java | 4 +- .../v1/ListTopicSubscriptionsRequest.java | 106 +- ...istTopicSubscriptionsRequestOrBuilder.java | 4 +- .../v1/ListTopicSubscriptionsResponse.java | 101 +- ...stTopicSubscriptionsResponseOrBuilder.java | 4 +- .../google/pubsub/v1/ListTopicsRequest.java | 106 +- .../pubsub/v1/ListTopicsRequestOrBuilder.java | 4 +- .../google/pubsub/v1/ListTopicsResponse.java | 119 +- .../v1/ListTopicsResponseOrBuilder.java | 4 +- .../pubsub/v1/MessageStoragePolicy.java | 92 +- .../v1/MessageStoragePolicyOrBuilder.java | 4 +- .../google/pubsub/v1/MessageTransform.java | 116 +- .../pubsub/v1/MessageTransformOrBuilder.java | 4 +- .../pubsub/v1/ModifyAckDeadlineRequest.java | 100 +- .../v1/ModifyAckDeadlineRequestOrBuilder.java | 4 +- .../pubsub/v1/ModifyPushConfigRequest.java | 115 +- .../v1/ModifyPushConfigRequestOrBuilder.java | 4 +- .../pubsub/v1/PlatformLogsSettings.java | 102 +- .../v1/PlatformLogsSettingsOrBuilder.java | 4 +- .../com/google/pubsub/v1/PublishRequest.java | 118 +- .../pubsub/v1/PublishRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/PublishResponse.java | 92 +- .../pubsub/v1/PublishResponseOrBuilder.java | 4 +- .../com/google/pubsub/v1/PubsubMessage.java | 127 +- .../pubsub/v1/PubsubMessageOrBuilder.java | 4 +- .../com/google/pubsub/v1/PubsubProto.java | 592 ++++---- .../com/google/pubsub/v1/PullRequest.java | 98 +- .../pubsub/v1/PullRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/PullResponse.java | 110 +- .../pubsub/v1/PullResponseOrBuilder.java | 4 +- .../java/com/google/pubsub/v1/PushConfig.java | 428 ++---- .../google/pubsub/v1/PushConfigOrBuilder.java | 4 +- .../com/google/pubsub/v1/ReceivedMessage.java | 114 +- .../pubsub/v1/ReceivedMessageOrBuilder.java | 4 +- .../com/google/pubsub/v1/RetryPolicy.java | 122 +- .../pubsub/v1/RetryPolicyOrBuilder.java | 4 +- .../pubsub/v1/RollbackSchemaRequest.java | 120 +- .../v1/RollbackSchemaRequestOrBuilder.java | 8 +- .../java/com/google/pubsub/v1/Schema.java | 142 +- .../com/google/pubsub/v1/SchemaOrBuilder.java | 4 +- .../com/google/pubsub/v1/SchemaProto.java | 119 +- .../com/google/pubsub/v1/SchemaSettings.java | 114 +- .../pubsub/v1/SchemaSettingsOrBuilder.java | 4 +- .../java/com/google/pubsub/v1/SchemaView.java | 16 +- .../com/google/pubsub/v1/SeekRequest.java | 114 +- .../pubsub/v1/SeekRequestOrBuilder.java | 4 +- .../com/google/pubsub/v1/SeekResponse.java | 90 +- .../pubsub/v1/SeekResponseOrBuilder.java | 4 +- .../java/com/google/pubsub/v1/Snapshot.java | 125 +- .../google/pubsub/v1/SnapshotOrBuilder.java | 4 +- .../pubsub/v1/StreamingPullRequest.java | 111 +- .../v1/StreamingPullRequestOrBuilder.java | 4 +- .../pubsub/v1/StreamingPullResponse.java | 447 ++---- .../v1/StreamingPullResponseOrBuilder.java | 4 +- .../com/google/pubsub/v1/Subscription.java | 438 +++--- .../pubsub/v1/SubscriptionOrBuilder.java | 24 +- .../main/java/com/google/pubsub/v1/Topic.java | 249 ++-- .../com/google/pubsub/v1/TopicOrBuilder.java | 24 +- .../pubsub/v1/UpdateSnapshotRequest.java | 122 +- .../v1/UpdateSnapshotRequestOrBuilder.java | 4 +- .../pubsub/v1/UpdateSubscriptionRequest.java | 122 +- .../UpdateSubscriptionRequestOrBuilder.java | 4 +- .../google/pubsub/v1/UpdateTopicRequest.java | 121 +- .../v1/UpdateTopicRequestOrBuilder.java | 4 +- .../pubsub/v1/ValidateMessageRequest.java | 116 +- .../v1/ValidateMessageRequestOrBuilder.java | 4 +- .../pubsub/v1/ValidateMessageResponse.java | 90 +- .../v1/ValidateMessageResponseOrBuilder.java | 4 +- .../pubsub/v1/ValidateSchemaRequest.java | 114 +- .../v1/ValidateSchemaRequestOrBuilder.java | 4 +- .../pubsub/v1/ValidateSchemaResponse.java | 90 +- .../v1/ValidateSchemaResponseOrBuilder.java | 4 +- 145 files changed, 4697 insertions(+), 8081 deletions(-) diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml index a7e14bb483c3..8de9d67eae71 100644 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ b/java-pubsub/.github/workflows/update_generation_config.yaml @@ -29,7 +29,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }} - name: Install Dependencies shell: bash run: sudo apt-get update && sudo apt-get install -y libxml2-utils @@ -43,5 +43,5 @@ jobs: --base_branch "${base_branch}" \ --repo ${{ github.repository }} env: - GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} + GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }} diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index 623fedf2040a..af4115f37ffd 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.55.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index bee69fa91d3e..33056bc06760 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.55.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.56.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index b742f6ec44c7..8a6c25f4954f 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.55.1" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.56.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 14a3d50d8e85..2a08eefb5c60 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.74.0-rc2') +implementation platform('com.google.cloud:libraries-bom:26.74.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 9349681119df..31ade0ccfa03 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.65.1 -googleapis_commitish: 615bb9acb1d978c497cf2268450c6e6c3e8be049 -libraries_bom_version: 26.74.0-rc2 +gapic_generator_version: 2.66.0 +googleapis_commitish: 2ac88973cbafba24e4fb6f31038e0c76174ae704 +libraries_bom_version: 26.74.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 4aacf99cbcbe..885e01e89ff8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -872,6 +872,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnforceNamingStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", "queryAllDeclaredConstructors": true, @@ -926,6 +935,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", "queryAllDeclaredConstructors": true, @@ -1043,6 +1079,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", "queryAllDeclaredConstructors": true, @@ -1349,6 +1403,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DescriptorProtos$SymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInference.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInference.java index 2bb8e168210c..82440715acb5 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInference.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInference.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.AIInference} */ -public final class AIInference extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class AIInference extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.AIInference) AIInferenceOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AIInference"); + } + // Use AIInference.newBuilder() to construct. - private AIInference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AIInference(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,18 +56,12 @@ private AIInference() { serviceAccountEmail_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AIInference(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_AIInference_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_AIInference_fieldAccessorTable @@ -124,32 +130,36 @@ public interface UnstructuredInferenceOrBuilder * * Protobuf type {@code google.pubsub.v1.AIInference.UnstructuredInference} */ - public static final class UnstructuredInference extends com.google.protobuf.GeneratedMessageV3 + public static final class UnstructuredInference extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.AIInference.UnstructuredInference) UnstructuredInferenceOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UnstructuredInference"); + } + // Use UnstructuredInference.newBuilder() to construct. - private UnstructuredInference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UnstructuredInference(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UnstructuredInference() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UnstructuredInference(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_AIInference_UnstructuredInference_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_AIInference_UnstructuredInference_fieldAccessorTable @@ -323,38 +333,38 @@ public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.AIInference.UnstructuredInference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.AIInference.UnstructuredInference parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.AIInference.UnstructuredInference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -378,8 +388,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -393,8 +402,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.AIInference.UnstructuredInference} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.AIInference.UnstructuredInference) com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder { @@ -404,7 +412,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_AIInference_UnstructuredInference_fieldAccessorTable @@ -418,14 +426,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getParametersFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetParametersFieldBuilder(); } } @@ -483,41 +491,6 @@ private void buildPartial0(com.google.pubsub.v1.AIInference.UnstructuredInferenc result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.AIInference.UnstructuredInference) { @@ -562,7 +535,8 @@ public Builder mergeFrom( break; case 10: { - input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetParametersFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 @@ -586,7 +560,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Struct parameters_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> @@ -752,7 +726,7 @@ public Builder clearParameters() { public com.google.protobuf.Struct.Builder getParametersBuilder() { bitField0_ |= 0x00000001; onChanged(); - return getParametersFieldBuilder().getBuilder(); + return internalGetParametersFieldBuilder().getBuilder(); } /** @@ -789,14 +763,14 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { * .google.protobuf.Struct parameters = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getParametersFieldBuilder() { + internalGetParametersFieldBuilder() { if (parametersBuilder_ == null) { parametersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( @@ -806,18 +780,6 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { return parametersBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.AIInference.UnstructuredInference) } @@ -1114,15 +1076,15 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(endpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, endpoint_); } if (inferenceModeCase_ == 2) { output.writeMessage( 2, (com.google.pubsub.v1.AIInference.UnstructuredInference) inferenceMode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountEmail_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, serviceAccountEmail_); } getUnknownFields().writeTo(output); } @@ -1133,16 +1095,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(endpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, endpoint_); } if (inferenceModeCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.pubsub.v1.AIInference.UnstructuredInference) inferenceMode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceAccountEmail_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, serviceAccountEmail_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1233,38 +1195,38 @@ public static com.google.pubsub.v1.AIInference parseFrom( public static com.google.pubsub.v1.AIInference parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.AIInference parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.AIInference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.AIInference parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.AIInference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.AIInference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -1287,7 +1249,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1301,7 +1263,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.AIInference} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.AIInference) com.google.pubsub.v1.AIInferenceOrBuilder { @@ -1311,7 +1273,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_AIInference_fieldAccessorTable @@ -1323,7 +1285,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.AIInference.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -1390,39 +1352,6 @@ private void buildPartialOneofs(com.google.pubsub.v1.AIInference result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.AIInference) { @@ -1491,7 +1420,7 @@ public Builder mergeFrom( case 18: { input.readMessage( - getUnstructuredInferenceFieldBuilder().getBuilder(), extensionRegistry); + internalGetUnstructuredInferenceFieldBuilder().getBuilder(), extensionRegistry); inferenceModeCase_ = 2; break; } // case 18 @@ -1660,7 +1589,7 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.AIInference.UnstructuredInference, com.google.pubsub.v1.AIInference.UnstructuredInference.Builder, com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder> @@ -1839,7 +1768,7 @@ public Builder clearUnstructuredInference() { */ public com.google.pubsub.v1.AIInference.UnstructuredInference.Builder getUnstructuredInferenceBuilder() { - return getUnstructuredInferenceFieldBuilder().getBuilder(); + return internalGetUnstructuredInferenceFieldBuilder().getBuilder(); } /** @@ -1877,18 +1806,18 @@ public Builder clearUnstructuredInference() { * .google.pubsub.v1.AIInference.UnstructuredInference unstructured_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.AIInference.UnstructuredInference, com.google.pubsub.v1.AIInference.UnstructuredInference.Builder, com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder> - getUnstructuredInferenceFieldBuilder() { + internalGetUnstructuredInferenceFieldBuilder() { if (unstructuredInferenceBuilder_ == null) { if (!(inferenceModeCase_ == 2)) { inferenceMode_ = com.google.pubsub.v1.AIInference.UnstructuredInference.getDefaultInstance(); } unstructuredInferenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.AIInference.UnstructuredInference, com.google.pubsub.v1.AIInference.UnstructuredInference.Builder, com.google.pubsub.v1.AIInference.UnstructuredInferenceOrBuilder>( @@ -2038,17 +1967,6 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.AIInference) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInferenceOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInferenceOrBuilder.java index e153fe0f6c0a..c7039d308042 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInferenceOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AIInferenceOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface AIInferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.AIInference) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java index c099a7ebba9a..392f45dc6942 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.AcknowledgeRequest} */ -public final class AcknowledgeRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class AcknowledgeRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.AcknowledgeRequest) AcknowledgeRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AcknowledgeRequest"); + } + // Use AcknowledgeRequest.newBuilder() to construct. - private AcknowledgeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AcknowledgeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private AcknowledgeRequest() { ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AcknowledgeRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable @@ -214,11 +220,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscription_); } for (int i = 0; i < ackIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ackIds_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 2, ackIds_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -229,8 +235,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscription_); } { int dataSize = 0; @@ -316,38 +322,38 @@ public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( public static com.google.pubsub.v1.AcknowledgeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.AcknowledgeRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.AcknowledgeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -370,7 +376,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -384,7 +390,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.AcknowledgeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.AcknowledgeRequest) com.google.pubsub.v1.AcknowledgeRequestOrBuilder { @@ -394,7 +400,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable @@ -406,7 +412,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.AcknowledgeRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -461,39 +467,6 @@ private void buildPartial0(com.google.pubsub.v1.AcknowledgeRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.AcknowledgeRequest) { @@ -906,17 +879,6 @@ public Builder addAckIdsBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.AcknowledgeRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java index 653d92ff4a0a..f74ab5d14f51 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/AcknowledgeRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface AcknowledgeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.AcknowledgeRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java index 97fa9fb33658..6dc42b7be876 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfig.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.BigQueryConfig} */ -public final class BigQueryConfig extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class BigQueryConfig extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.BigQueryConfig) BigQueryConfigOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BigQueryConfig"); + } + // Use BigQueryConfig.newBuilder() to construct. - private BigQueryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BigQueryConfig(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -45,19 +57,13 @@ private BigQueryConfig() { serviceAccountEmail_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BigQueryConfig(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_BigQueryConfig_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable @@ -157,6 +163,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + /** * * @@ -308,7 +324,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.BigQueryConfig.getDescriptor().getEnumTypes().get(0); } @@ -596,8 +612,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, table_); } if (useTopicSchema_ != false) { output.writeBool(2, useTopicSchema_); @@ -614,8 +630,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (useTableSchema_ != false) { output.writeBool(6, useTableSchema_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serviceAccountEmail_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, serviceAccountEmail_); } getUnknownFields().writeTo(output); } @@ -626,8 +642,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, table_); } if (useTopicSchema_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useTopicSchema_); @@ -644,8 +660,8 @@ public int getSerializedSize() { if (useTableSchema_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, useTableSchema_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceAccountEmail_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, serviceAccountEmail_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -735,38 +751,38 @@ public static com.google.pubsub.v1.BigQueryConfig parseFrom( public static com.google.pubsub.v1.BigQueryConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.BigQueryConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.BigQueryConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.BigQueryConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.BigQueryConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.BigQueryConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -789,7 +805,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -803,7 +819,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.BigQueryConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.BigQueryConfig) com.google.pubsub.v1.BigQueryConfigOrBuilder { @@ -813,7 +829,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable @@ -825,7 +841,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.BigQueryConfig.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -898,39 +914,6 @@ private void buildPartial0(com.google.pubsub.v1.BigQueryConfig result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.BigQueryConfig) { @@ -1677,17 +1660,6 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.BigQueryConfig) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java index 1b2ea3fb4b1f..250b87a57a10 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigQueryConfigOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface BigQueryConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.BigQueryConfig) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java index ee19860da960..b30b5926712b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfig.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.CloudStorageConfig} */ -public final class CloudStorageConfig extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class CloudStorageConfig extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig) CloudStorageConfigOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloudStorageConfig"); + } + // Use CloudStorageConfig.newBuilder() to construct. - private CloudStorageConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CloudStorageConfig(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -48,19 +60,13 @@ private CloudStorageConfig() { serviceAccountEmail_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CloudStorageConfig(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable @@ -157,6 +163,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + /** * * @@ -305,7 +321,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.CloudStorageConfig.getDescriptor().getEnumTypes().get(0); } @@ -346,32 +362,36 @@ public interface TextConfigOrBuilder * * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.TextConfig} */ - public static final class TextConfig extends com.google.protobuf.GeneratedMessageV3 + public static final class TextConfig extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig.TextConfig) TextConfigOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TextConfig"); + } + // Use TextConfig.newBuilder() to construct. - private TextConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextConfig(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TextConfig() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TextConfig(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable @@ -472,38 +492,38 @@ public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig.TextConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -526,8 +546,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -543,8 +562,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.TextConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CloudStorageConfig.TextConfig) com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder { @@ -554,7 +572,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable @@ -566,7 +584,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.CloudStorageConfig.TextConfig.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -604,41 +622,6 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfig buildPartial() { return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.CloudStorageConfig.TextConfig) { @@ -695,18 +678,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CloudStorageConfig.TextConfig) } @@ -807,32 +778,36 @@ public interface AvroConfigOrBuilder * * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.AvroConfig} */ - public static final class AvroConfig extends com.google.protobuf.GeneratedMessageV3 + public static final class AvroConfig extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CloudStorageConfig.AvroConfig) AvroConfigOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AvroConfig"); + } + // Use AvroConfig.newBuilder() to construct. - private AvroConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AvroConfig(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AvroConfig() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AvroConfig(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable @@ -995,38 +970,38 @@ public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig.AvroConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -1049,8 +1024,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1065,8 +1039,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.CloudStorageConfig.AvroConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CloudStorageConfig.AvroConfig) com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder { @@ -1076,7 +1049,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable @@ -1088,7 +1061,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.CloudStorageConfig.AvroConfig.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -1142,41 +1115,6 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig.AvroConfig re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.CloudStorageConfig.AvroConfig) { @@ -1383,18 +1321,6 @@ public Builder clearUseTopicSchema() { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CloudStorageConfig.AvroConfig) } @@ -2071,14 +1997,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, bucket_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenamePrefix_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filenamePrefix_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filenamePrefix_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, filenamePrefix_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameSuffix_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filenameSuffix_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filenameSuffix_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, filenameSuffix_); } if (outputFormatCase_ == 4) { output.writeMessage(4, (com.google.pubsub.v1.CloudStorageConfig.TextConfig) outputFormat_); @@ -2098,11 +2024,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(9, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameDatetimeFormat_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, filenameDatetimeFormat_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filenameDatetimeFormat_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, filenameDatetimeFormat_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceAccountEmail_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, serviceAccountEmail_); } getUnknownFields().writeTo(output); } @@ -2113,14 +2039,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, bucket_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenamePrefix_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filenamePrefix_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filenamePrefix_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filenamePrefix_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameSuffix_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filenameSuffix_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filenameSuffix_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, filenameSuffix_); } if (outputFormatCase_ == 4) { size += @@ -2144,11 +2070,11 @@ public int getSerializedSize() { if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filenameDatetimeFormat_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, filenameDatetimeFormat_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filenameDatetimeFormat_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, filenameDatetimeFormat_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceAccountEmail_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, serviceAccountEmail_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2273,38 +2199,38 @@ public static com.google.pubsub.v1.CloudStorageConfig parseFrom( public static com.google.pubsub.v1.CloudStorageConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CloudStorageConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CloudStorageConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CloudStorageConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -2327,7 +2253,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -2341,7 +2267,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.CloudStorageConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CloudStorageConfig) com.google.pubsub.v1.CloudStorageConfigOrBuilder { @@ -2351,7 +2277,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable @@ -2365,14 +2291,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMaxDurationFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMaxDurationFieldBuilder(); } } @@ -2482,39 +2408,6 @@ private void buildPartialOneofs(com.google.pubsub.v1.CloudStorageConfig result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.CloudStorageConfig) { @@ -2626,19 +2519,22 @@ public Builder mergeFrom( } // case 26 case 34: { - input.readMessage(getTextConfigFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetTextConfigFieldBuilder().getBuilder(), extensionRegistry); outputFormatCase_ = 4; break; } // case 34 case 42: { - input.readMessage(getAvroConfigFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetAvroConfigFieldBuilder().getBuilder(), extensionRegistry); outputFormatCase_ = 5; break; } // case 42 case 50: { - input.readMessage(getMaxDurationFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetMaxDurationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 50 @@ -3189,7 +3085,7 @@ public Builder setFilenameDatetimeFormatBytes(com.google.protobuf.ByteString val return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.CloudStorageConfig.TextConfig, com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder> @@ -3372,7 +3268,7 @@ public Builder clearTextConfig() { * */ public com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder getTextConfigBuilder() { - return getTextConfigFieldBuilder().getBuilder(); + return internalGetTextConfigFieldBuilder().getBuilder(); } /** @@ -3411,17 +3307,17 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig * .google.pubsub.v1.CloudStorageConfig.TextConfig text_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.CloudStorageConfig.TextConfig, com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder> - getTextConfigFieldBuilder() { + internalGetTextConfigFieldBuilder() { if (textConfigBuilder_ == null) { if (!(outputFormatCase_ == 4)) { outputFormat_ = com.google.pubsub.v1.CloudStorageConfig.TextConfig.getDefaultInstance(); } textConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.CloudStorageConfig.TextConfig, com.google.pubsub.v1.CloudStorageConfig.TextConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder>( @@ -3435,7 +3331,7 @@ public com.google.pubsub.v1.CloudStorageConfig.TextConfigOrBuilder getTextConfig return textConfigBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.CloudStorageConfig.AvroConfig, com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder> @@ -3618,7 +3514,7 @@ public Builder clearAvroConfig() { * */ public com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder getAvroConfigBuilder() { - return getAvroConfigFieldBuilder().getBuilder(); + return internalGetAvroConfigFieldBuilder().getBuilder(); } /** @@ -3657,17 +3553,17 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig * .google.pubsub.v1.CloudStorageConfig.AvroConfig avro_config = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.CloudStorageConfig.AvroConfig, com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder> - getAvroConfigFieldBuilder() { + internalGetAvroConfigFieldBuilder() { if (avroConfigBuilder_ == null) { if (!(outputFormatCase_ == 5)) { outputFormat_ = com.google.pubsub.v1.CloudStorageConfig.AvroConfig.getDefaultInstance(); } avroConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.CloudStorageConfig.AvroConfig, com.google.pubsub.v1.CloudStorageConfig.AvroConfig.Builder, com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder>( @@ -3682,7 +3578,7 @@ public com.google.pubsub.v1.CloudStorageConfig.AvroConfigOrBuilder getAvroConfig } private com.google.protobuf.Duration maxDuration_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> @@ -3848,7 +3744,7 @@ public Builder clearMaxDuration() { public com.google.protobuf.Duration.Builder getMaxDurationBuilder() { bitField0_ |= 0x00000040; onChanged(); - return getMaxDurationFieldBuilder().getBuilder(); + return internalGetMaxDurationFieldBuilder().getBuilder(); } /** @@ -3885,14 +3781,14 @@ public com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder() { * .google.protobuf.Duration max_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getMaxDurationFieldBuilder() { + internalGetMaxDurationFieldBuilder() { if (maxDurationBuilder_ == null) { maxDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( @@ -4269,17 +4165,6 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CloudStorageConfig) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java index f977fa4f27d4..2c2bc260b2e0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CloudStorageConfigOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface CloudStorageConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CloudStorageConfig) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java index 1332c756e897..1f8cc26bcbe4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.CommitSchemaRequest} */ -public final class CommitSchemaRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class CommitSchemaRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CommitSchemaRequest) CommitSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CommitSchemaRequest"); + } + // Use CommitSchemaRequest.newBuilder() to construct. - private CommitSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CommitSchemaRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private CommitSchemaRequest() { name_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CommitSchemaRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable @@ -187,8 +193,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSchema()); @@ -202,8 +208,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); @@ -287,38 +293,38 @@ public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( public static com.google.pubsub.v1.CommitSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CommitSchemaRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.CommitSchemaRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CommitSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -341,7 +347,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -355,7 +361,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.CommitSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CommitSchemaRequest) com.google.pubsub.v1.CommitSchemaRequestOrBuilder { @@ -365,7 +371,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable @@ -379,14 +385,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSchemaFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSchemaFieldBuilder(); } } @@ -447,39 +453,6 @@ private void buildPartial0(com.google.pubsub.v1.CommitSchemaRequest result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.CommitSchemaRequest) { @@ -534,7 +507,7 @@ public Builder mergeFrom( } // case 10 case 18: { - input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage(internalGetSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 @@ -684,7 +657,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } private com.google.pubsub.v1.Schema schema_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> @@ -827,7 +800,7 @@ public Builder clearSchema() { public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getSchemaFieldBuilder().getBuilder(); + return internalGetSchemaFieldBuilder().getBuilder(); } /** @@ -856,14 +829,14 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> - getSchemaFieldBuilder() { + internalGetSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( @@ -873,17 +846,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { return schemaBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CommitSchemaRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java index 56989d944d7a..b904f9d0e046 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CommitSchemaRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface CommitSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CommitSchemaRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java index acd8930c88a1..4db632921eb3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.CreateSchemaRequest} */ -public final class CreateSchemaRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class CreateSchemaRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSchemaRequest) CreateSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateSchemaRequest"); + } + // Use CreateSchemaRequest.newBuilder() to construct. - private CreateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateSchemaRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private CreateSchemaRequest() { schemaId_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateSchemaRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable @@ -261,14 +267,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSchema()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schemaId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schemaId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, schemaId_); } getUnknownFields().writeTo(output); } @@ -279,14 +285,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schemaId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schemaId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, schemaId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -370,38 +376,38 @@ public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( public static com.google.pubsub.v1.CreateSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CreateSchemaRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.CreateSchemaRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CreateSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -424,7 +430,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -438,7 +444,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.CreateSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CreateSchemaRequest) com.google.pubsub.v1.CreateSchemaRequestOrBuilder { @@ -448,7 +454,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable @@ -462,14 +468,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSchemaFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSchemaFieldBuilder(); } } @@ -534,39 +540,6 @@ private void buildPartial0(com.google.pubsub.v1.CreateSchemaRequest result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.CreateSchemaRequest) { @@ -626,7 +599,7 @@ public Builder mergeFrom( } // case 10 case 18: { - input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage(internalGetSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 @@ -782,7 +755,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } private com.google.pubsub.v1.Schema schema_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> @@ -953,7 +926,7 @@ public Builder clearSchema() { public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getSchemaFieldBuilder().getBuilder(); + return internalGetSchemaFieldBuilder().getBuilder(); } /** @@ -990,14 +963,14 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> - getSchemaFieldBuilder() { + internalGetSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( @@ -1138,17 +1111,6 @@ public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CreateSchemaRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java index ab00cb816cdd..4fa65546b8fa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSchemaRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface CreateSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CreateSchemaRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java index 1154fdf71f58..d911473d593b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} */ -public final class CreateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class CreateSnapshotRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.CreateSnapshotRequest) CreateSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateSnapshotRequest"); + } + // Use CreateSnapshotRequest.newBuilder() to construct. - private CreateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,12 +56,6 @@ private CreateSnapshotRequest() { subscription_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateSnapshotRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; @@ -70,7 +76,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable @@ -157,12 +163,12 @@ public com.google.protobuf.ByteString getNameBytes() { *
          * 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.
      +   * (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}`.
          * 
      * @@ -191,12 +197,12 @@ public java.lang.String getSubscription() { *
          * 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.
      +   * (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}`.
          * 
      * @@ -363,8 +369,8 @@ public int getTagsCount() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -394,8 +400,8 @@ public java.util.Map getTags() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -415,8 +421,8 @@ public java.util.Map getTagsMap() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -443,8 +449,8 @@ public java.util.Map getTagsMap() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -479,15 +485,15 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, subscription_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 4); getUnknownFields().writeTo(output); } @@ -498,11 +504,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, subscription_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { @@ -609,38 +615,38 @@ public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.CreateSnapshotRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.CreateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -663,7 +669,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -677,7 +683,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.CreateSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.CreateSnapshotRequest) com.google.pubsub.v1.CreateSnapshotRequestOrBuilder { @@ -713,7 +719,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable @@ -725,7 +731,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi // Construct using com.google.pubsub.v1.CreateSnapshotRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -789,39 +795,6 @@ private void buildPartial0(com.google.pubsub.v1.CreateSnapshotRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.CreateSnapshotRequest) { @@ -1080,12 +1053,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
            * 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.
      +     * (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}`.
            * 
      * @@ -1113,12 +1086,12 @@ public java.lang.String getSubscription() { *
            * 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.
      +     * (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}`.
            * 
      * @@ -1146,12 +1119,12 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { *
            * 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.
      +     * (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}`.
            * 
      * @@ -1178,12 +1151,12 @@ public Builder setSubscription(java.lang.String value) { *
            * 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.
      +     * (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}`.
            * 
      * @@ -1206,12 +1179,12 @@ public Builder clearSubscription() { *
            * 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.
      +     * (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}`.
            * 
      * @@ -1444,8 +1417,8 @@ public int getTagsCount() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -1475,8 +1448,8 @@ public java.util.Map getTags() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -1496,8 +1469,8 @@ public java.util.Map getTagsMap() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -1524,8 +1497,8 @@ public java.util.Map getTagsMap() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -1558,8 +1531,8 @@ public Builder clearTags() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -1589,8 +1562,8 @@ public java.util.Map getMutableTags() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -1617,8 +1590,8 @@ public Builder putTags(java.lang.String key, java.lang.String value) { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -1633,17 +1606,6 @@ public Builder putAllTags(java.util.Map valu return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.CreateSnapshotRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java index 64f44c881e64..2105ed01c27e 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/CreateSnapshotRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface CreateSnapshotRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.CreateSnapshotRequest) @@ -70,12 +72,12 @@ public interface CreateSnapshotRequestOrBuilder *
          * 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.
      +   * (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}`.
          * 
      * @@ -93,12 +95,12 @@ public interface CreateSnapshotRequestOrBuilder *
          * 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.
      +   * (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}`.
          * 
      * @@ -184,8 +186,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -202,8 +204,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -224,8 +226,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -242,8 +244,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -264,8 +266,8 @@ java.lang.String getTagsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java index 1cc3cc2b7b74..f6ba7bb82c4d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicy.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -32,14 +33,25 @@ * * Protobuf type {@code google.pubsub.v1.DeadLetterPolicy} */ -public final class DeadLetterPolicy extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class DeadLetterPolicy extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeadLetterPolicy) DeadLetterPolicyOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeadLetterPolicy"); + } + // Use DeadLetterPolicy.newBuilder() to construct. - private DeadLetterPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeadLetterPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -47,19 +59,13 @@ private DeadLetterPolicy() { deadLetterTopic_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeadLetterPolicy(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable @@ -186,8 +192,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deadLetterTopic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deadLetterTopic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, deadLetterTopic_); } if (maxDeliveryAttempts_ != 0) { output.writeInt32(2, maxDeliveryAttempts_); @@ -201,8 +207,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deadLetterTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deadLetterTopic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deadLetterTopic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, deadLetterTopic_); } if (maxDeliveryAttempts_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxDeliveryAttempts_); @@ -280,38 +286,38 @@ public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( public static com.google.pubsub.v1.DeadLetterPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeadLetterPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeadLetterPolicy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeadLetterPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -334,7 +340,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -352,7 +358,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.DeadLetterPolicy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeadLetterPolicy) com.google.pubsub.v1.DeadLetterPolicyOrBuilder { @@ -362,7 +368,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable @@ -374,7 +380,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.DeadLetterPolicy.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -428,39 +434,6 @@ private void buildPartial0(com.google.pubsub.v1.DeadLetterPolicy result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeadLetterPolicy) { @@ -791,17 +764,6 @@ public Builder clearMaxDeliveryAttempts() { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeadLetterPolicy) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java index d67fffe5cc28..9d8c2922373f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeadLetterPolicyOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface DeadLetterPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeadLetterPolicy) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java index 3d7b9763e042..12f52ffd1b96 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.DeleteSchemaRequest} */ -public final class DeleteSchemaRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class DeleteSchemaRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRequest) DeleteSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteSchemaRequest"); + } + // Use DeleteSchemaRequest.newBuilder() to construct. - private DeleteSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteSchemaRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private DeleteSchemaRequest() { name_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteSchemaRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable @@ -137,8 +143,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } getUnknownFields().writeTo(output); } @@ -149,8 +155,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,38 +229,38 @@ public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeleteSchemaRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSchemaRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -277,7 +283,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -291,7 +297,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.DeleteSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSchemaRequest) com.google.pubsub.v1.DeleteSchemaRequestOrBuilder { @@ -301,7 +307,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable @@ -313,7 +319,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.DeleteSchemaRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -363,39 +369,6 @@ private void buildPartial0(com.google.pubsub.v1.DeleteSchemaRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSchemaRequest) { @@ -590,17 +563,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSchemaRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java index 593d0e55fbee..0d665ae9d442 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface DeleteSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSchemaRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java index a47dbc26f17a..5065b30b9355 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.DeleteSchemaRevisionRequest} */ -public final class DeleteSchemaRevisionRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class DeleteSchemaRevisionRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSchemaRevisionRequest) DeleteSchemaRevisionRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteSchemaRevisionRequest"); + } + // Use DeleteSchemaRevisionRequest.newBuilder() to construct. - private DeleteSchemaRevisionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteSchemaRevisionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private DeleteSchemaRevisionRequest() { revisionId_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteSchemaRevisionRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable @@ -207,11 +213,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, revisionId_); } getUnknownFields().writeTo(output); } @@ -222,11 +228,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, revisionId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -303,38 +309,38 @@ public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSchemaRevisionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -357,7 +363,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -371,7 +377,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.DeleteSchemaRevisionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSchemaRevisionRequest) com.google.pubsub.v1.DeleteSchemaRevisionRequestOrBuilder { @@ -381,7 +387,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable @@ -393,7 +399,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.DeleteSchemaRevisionRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -447,39 +453,6 @@ private void buildPartial0(com.google.pubsub.v1.DeleteSchemaRevisionRequest resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSchemaRevisionRequest) { @@ -837,17 +810,6 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSchemaRevisionRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java index c235befb16f6..a116ea05eb69 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSchemaRevisionRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface DeleteSchemaRevisionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSchemaRevisionRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java index 739cf2e31be6..4fd1295402e7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} */ -public final class DeleteSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class DeleteSnapshotRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSnapshotRequest) DeleteSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteSnapshotRequest"); + } + // Use DeleteSnapshotRequest.newBuilder() to construct. - private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private DeleteSnapshotRequest() { snapshot_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteSnapshotRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable @@ -137,8 +143,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, snapshot_); } getUnknownFields().writeTo(output); } @@ -149,8 +155,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, snapshot_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -224,38 +230,38 @@ public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSnapshotRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -278,7 +284,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -292,7 +298,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.DeleteSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSnapshotRequest) com.google.pubsub.v1.DeleteSnapshotRequestOrBuilder { @@ -302,7 +308,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable @@ -314,7 +320,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.DeleteSnapshotRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -364,39 +370,6 @@ private void buildPartial0(com.google.pubsub.v1.DeleteSnapshotRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSnapshotRequest) { @@ -591,17 +564,6 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSnapshotRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java index 590889fafdac..aa0db9d68a98 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSnapshotRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface DeleteSnapshotRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSnapshotRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java index 29349f8eede4..0b55f9447d22 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.DeleteSubscriptionRequest} */ -public final class DeleteSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class DeleteSubscriptionRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteSubscriptionRequest) DeleteSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteSubscriptionRequest"); + } + // Use DeleteSubscriptionRequest.newBuilder() to construct. - private DeleteSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteSubscriptionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private DeleteSubscriptionRequest() { subscription_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteSubscriptionRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable @@ -137,8 +143,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscription_); } getUnknownFields().writeTo(output); } @@ -149,8 +155,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscription_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -224,38 +230,38 @@ public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSubscriptionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -278,7 +284,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -292,7 +298,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.DeleteSubscriptionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteSubscriptionRequest) com.google.pubsub.v1.DeleteSubscriptionRequestOrBuilder { @@ -302,7 +308,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable @@ -314,7 +320,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.DeleteSubscriptionRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -364,39 +370,6 @@ private void buildPartial0(com.google.pubsub.v1.DeleteSubscriptionRequest result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteSubscriptionRequest) { @@ -591,17 +564,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteSubscriptionRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java index 0e11fa038d3d..407ff8133eb8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteSubscriptionRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface DeleteSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteSubscriptionRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java index a6745ae7c5bc..2d2b3780186d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.DeleteTopicRequest} */ -public final class DeleteTopicRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class DeleteTopicRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DeleteTopicRequest) DeleteTopicRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteTopicRequest"); + } + // Use DeleteTopicRequest.newBuilder() to construct. - private DeleteTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteTopicRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private DeleteTopicRequest() { topic_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteTopicRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable @@ -137,8 +143,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, topic_); } getUnknownFields().writeTo(output); } @@ -149,8 +155,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, topic_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,38 +229,38 @@ public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( public static com.google.pubsub.v1.DeleteTopicRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteTopicRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DeleteTopicRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -277,7 +283,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -291,7 +297,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.DeleteTopicRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DeleteTopicRequest) com.google.pubsub.v1.DeleteTopicRequestOrBuilder { @@ -301,7 +307,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable @@ -313,7 +319,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.DeleteTopicRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -363,39 +369,6 @@ private void buildPartial0(com.google.pubsub.v1.DeleteTopicRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DeleteTopicRequest) { @@ -590,17 +563,6 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DeleteTopicRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java index 15c4f573091a..ba2de1ac4dac 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeleteTopicRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface DeleteTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DeleteTopicRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java index 917c4e858015..074171a8ecb8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.DetachSubscriptionRequest} */ -public final class DetachSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class DetachSubscriptionRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionRequest) DetachSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DetachSubscriptionRequest"); + } + // Use DetachSubscriptionRequest.newBuilder() to construct. - private DetachSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DetachSubscriptionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private DetachSubscriptionRequest() { subscription_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DetachSubscriptionRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable @@ -137,8 +143,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscription_); } getUnknownFields().writeTo(output); } @@ -149,8 +155,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscription_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -224,38 +230,38 @@ public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DetachSubscriptionRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DetachSubscriptionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DetachSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -278,7 +284,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -292,7 +298,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.DetachSubscriptionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DetachSubscriptionRequest) com.google.pubsub.v1.DetachSubscriptionRequestOrBuilder { @@ -302,7 +308,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable @@ -314,7 +320,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.DetachSubscriptionRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -364,39 +370,6 @@ private void buildPartial0(com.google.pubsub.v1.DetachSubscriptionRequest result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DetachSubscriptionRequest) { @@ -591,17 +564,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DetachSubscriptionRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java index 6c11a7fe5cfc..2980352a43f2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface DetachSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java index 79c55299c1cf..6cc5449ec172 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -29,32 +30,37 @@ * * Protobuf type {@code google.pubsub.v1.DetachSubscriptionResponse} */ -public final class DetachSubscriptionResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class DetachSubscriptionResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.DetachSubscriptionResponse) DetachSubscriptionResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DetachSubscriptionResponse"); + } + // Use DetachSubscriptionResponse.newBuilder() to construct. - private DetachSubscriptionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DetachSubscriptionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DetachSubscriptionResponse() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DetachSubscriptionResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable @@ -155,38 +161,38 @@ public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DetachSubscriptionResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.DetachSubscriptionResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.DetachSubscriptionResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -209,7 +215,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -224,7 +230,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.DetachSubscriptionResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.DetachSubscriptionResponse) com.google.pubsub.v1.DetachSubscriptionResponseOrBuilder { @@ -234,7 +240,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable @@ -246,7 +252,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.DetachSubscriptionResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -284,39 +290,6 @@ public com.google.pubsub.v1.DetachSubscriptionResponse buildPartial() { return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.DetachSubscriptionResponse) { @@ -373,17 +346,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.DetachSubscriptionResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java index 682f9e1cb8fe..52e34716c2f7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DetachSubscriptionResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface DetachSubscriptionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.DetachSubscriptionResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java index d69de2a1234c..3c03c8a9eca8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Encoding.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,6 +29,7 @@ * * Protobuf enum {@code google.pubsub.v1.Encoding} */ +@com.google.protobuf.Generated public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { /** * @@ -63,6 +65,16 @@ public enum Encoding implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Encoding"); + } + /** * * @@ -155,7 +167,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto.getDescriptor().getEnumTypes().get(1); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java index befa7a2aaafa..ef25fb02c486 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicy.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -29,32 +30,37 @@ * * Protobuf type {@code google.pubsub.v1.ExpirationPolicy} */ -public final class ExpirationPolicy extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ExpirationPolicy extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ExpirationPolicy) ExpirationPolicyOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExpirationPolicy"); + } + // Use ExpirationPolicy.newBuilder() to construct. - private ExpirationPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ExpirationPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ExpirationPolicy() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ExpirationPolicy(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable @@ -232,38 +238,38 @@ public static com.google.pubsub.v1.ExpirationPolicy parseFrom( public static com.google.pubsub.v1.ExpirationPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ExpirationPolicy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ExpirationPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ExpirationPolicy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ExpirationPolicy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ExpirationPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -286,7 +292,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -301,7 +307,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ExpirationPolicy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ExpirationPolicy) com.google.pubsub.v1.ExpirationPolicyOrBuilder { @@ -311,7 +317,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable @@ -325,14 +331,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTtlFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTtlFieldBuilder(); } } @@ -389,39 +395,6 @@ private void buildPartial0(com.google.pubsub.v1.ExpirationPolicy result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ExpirationPolicy) { @@ -465,7 +438,7 @@ public Builder mergeFrom( break; case 10: { - input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage(internalGetTtlFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 @@ -489,7 +462,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration ttl_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> @@ -667,7 +640,7 @@ public Builder clearTtl() { public com.google.protobuf.Duration.Builder getTtlBuilder() { bitField0_ |= 0x00000001; onChanged(); - return getTtlFieldBuilder().getBuilder(); + return internalGetTtlFieldBuilder().getBuilder(); } /** @@ -706,14 +679,14 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { * * .google.protobuf.Duration ttl = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTtlFieldBuilder() { + internalGetTtlFieldBuilder() { if (ttlBuilder_ == null) { ttlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(getTtl(), getParentForChildren(), isClean()); @@ -722,17 +695,6 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { return ttlBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ExpirationPolicy) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java index 010a45a28403..825d9c775c19 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ExpirationPolicyOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ExpirationPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ExpirationPolicy) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java index de72f6621b2a..691454cd0de1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.GetSchemaRequest} */ -public final class GetSchemaRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class GetSchemaRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSchemaRequest) GetSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetSchemaRequest"); + } + // Use GetSchemaRequest.newBuilder() to construct. - private GetSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetSchemaRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private GetSchemaRequest() { view_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetSchemaRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable @@ -176,8 +182,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, view_); @@ -191,8 +197,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); @@ -270,38 +276,38 @@ public static com.google.pubsub.v1.GetSchemaRequest parseFrom( public static com.google.pubsub.v1.GetSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSchemaRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.GetSchemaRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSchemaRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.GetSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -324,7 +330,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -338,7 +344,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.GetSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSchemaRequest) com.google.pubsub.v1.GetSchemaRequestOrBuilder { @@ -348,7 +354,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable @@ -360,7 +366,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.GetSchemaRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -414,39 +420,6 @@ private void buildPartial0(com.google.pubsub.v1.GetSchemaRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSchemaRequest) { @@ -749,17 +722,6 @@ public Builder clearView() { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSchemaRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java index 5080570bbf79..7f09aef117fa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSchemaRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface GetSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSchemaRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java index 6cffab76dd16..b8744fee068f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest} */ -public final class GetSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class GetSnapshotRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSnapshotRequest) GetSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetSnapshotRequest"); + } + // Use GetSnapshotRequest.newBuilder() to construct. - private GetSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private GetSnapshotRequest() { snapshot_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetSnapshotRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable @@ -137,8 +143,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, snapshot_); } getUnknownFields().writeTo(output); } @@ -149,8 +155,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snapshot_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, snapshot_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,38 +229,38 @@ public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( public static com.google.pubsub.v1.GetSnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSnapshotRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -277,7 +283,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -291,7 +297,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.GetSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSnapshotRequest) com.google.pubsub.v1.GetSnapshotRequestOrBuilder { @@ -301,7 +307,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable @@ -313,7 +319,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.GetSnapshotRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -363,39 +369,6 @@ private void buildPartial0(com.google.pubsub.v1.GetSnapshotRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSnapshotRequest) { @@ -590,17 +563,6 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSnapshotRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java index 4fa0b65b4f94..d818ff674091 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSnapshotRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface GetSnapshotRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSnapshotRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java index fe7907ec1e00..df1d38b06b55 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.GetSubscriptionRequest} */ -public final class GetSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class GetSubscriptionRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetSubscriptionRequest) GetSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetSubscriptionRequest"); + } + // Use GetSubscriptionRequest.newBuilder() to construct. - private GetSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetSubscriptionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private GetSubscriptionRequest() { subscription_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetSubscriptionRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable @@ -137,8 +143,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscription_); } getUnknownFields().writeTo(output); } @@ -149,8 +155,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscription_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -224,38 +230,38 @@ public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSubscriptionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -278,7 +284,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -292,7 +298,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.GetSubscriptionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetSubscriptionRequest) com.google.pubsub.v1.GetSubscriptionRequestOrBuilder { @@ -302,7 +308,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable @@ -314,7 +320,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.GetSubscriptionRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -364,39 +370,6 @@ private void buildPartial0(com.google.pubsub.v1.GetSubscriptionRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetSubscriptionRequest) { @@ -591,17 +564,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetSubscriptionRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java index bd902c989930..93a8ea4fa95c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetSubscriptionRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface GetSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetSubscriptionRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java index 99ccbd15bf64..215b1b7cee11 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.GetTopicRequest} */ -public final class GetTopicRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class GetTopicRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.GetTopicRequest) GetTopicRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetTopicRequest"); + } + // Use GetTopicRequest.newBuilder() to construct. - private GetTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GetTopicRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private GetTopicRequest() { topic_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetTopicRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetTopicRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable @@ -137,8 +143,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, topic_); } getUnknownFields().writeTo(output); } @@ -149,8 +155,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, topic_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,38 +228,38 @@ public static com.google.pubsub.v1.GetTopicRequest parseFrom( public static com.google.pubsub.v1.GetTopicRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetTopicRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.GetTopicRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetTopicRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.GetTopicRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.GetTopicRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -276,7 +282,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -290,7 +296,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.GetTopicRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.GetTopicRequest) com.google.pubsub.v1.GetTopicRequestOrBuilder { @@ -300,7 +306,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable @@ -312,7 +318,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.GetTopicRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -361,39 +367,6 @@ private void buildPartial0(com.google.pubsub.v1.GetTopicRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.GetTopicRequest) { @@ -588,17 +561,6 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.GetTopicRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java index 8d6b67130ea4..29713e8fcb0d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/GetTopicRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface GetTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.GetTopicRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java index 235ef5a589bf..2eb76d04be59 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettings.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,32 +29,37 @@ * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings} */ -public final class IngestionDataSourceSettings extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class IngestionDataSourceSettings extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings) IngestionDataSourceSettingsOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestionDataSourceSettings"); + } + // Use IngestionDataSourceSettings.newBuilder() to construct. - private IngestionDataSourceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IngestionDataSourceSettings(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private IngestionDataSourceSettings() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IngestionDataSourceSettings(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable @@ -225,14 +231,24 @@ public interface AwsKinesisOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} */ - public static final class AwsKinesis extends com.google.protobuf.GeneratedMessageV3 + public static final class AwsKinesis extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) AwsKinesisOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AwsKinesis"); + } + // Use AwsKinesis.newBuilder() to construct. - private AwsKinesis(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AwsKinesis(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -244,19 +260,13 @@ private AwsKinesis() { gcpServiceAccount_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AwsKinesis(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable @@ -301,13 +311,13 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { *
              * Permission denied encountered while consuming data from Kinesis.
              * This can happen if:
      -       *   - The provided `aws_role_arn` does not exist or does not have the
      -       *     appropriate permissions attached.
      -       *   - The provided `aws_role_arn` is not set up properly for Identity
      -       *     Federation using `gcp_service_account`.
      -       *   - The Pub/Sub SA is not granted the
      -       *     `iam.serviceAccounts.getOpenIdToken` permission on
      -       *     `gcp_service_account`.
      +       * - The provided `aws_role_arn` does not exist or does not have the
      +       * appropriate permissions attached.
      +       * - The provided `aws_role_arn` is not set up properly for Identity
      +       * Federation using `gcp_service_account`.
      +       * - The Pub/Sub SA is not granted the
      +       * `iam.serviceAccounts.getOpenIdToken` permission on
      +       * `gcp_service_account`.
              * 
      * * KINESIS_PERMISSION_DENIED = 2; @@ -348,6 +358,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + /** * * @@ -376,13 +396,13 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { *
              * Permission denied encountered while consuming data from Kinesis.
              * This can happen if:
      -       *   - The provided `aws_role_arn` does not exist or does not have the
      -       *     appropriate permissions attached.
      -       *   - The provided `aws_role_arn` is not set up properly for Identity
      -       *     Federation using `gcp_service_account`.
      -       *   - The Pub/Sub SA is not granted the
      -       *     `iam.serviceAccounts.getOpenIdToken` permission on
      -       *     `gcp_service_account`.
      +       * - The provided `aws_role_arn` does not exist or does not have the
      +       * appropriate permissions attached.
      +       * - The provided `aws_role_arn` is not set up properly for Identity
      +       * Federation using `gcp_service_account`.
      +       * - The Pub/Sub SA is not granted the
      +       * `iam.serviceAccounts.getOpenIdToken` permission on
      +       * `gcp_service_account`.
              * 
      * * KINESIS_PERMISSION_DENIED = 2; @@ -488,7 +508,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDescriptor() .getEnumTypes() .get(0); @@ -803,17 +823,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, streamArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(streamArn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, streamArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerArn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, consumerArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(consumerArn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, consumerArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, awsRoleArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(awsRoleArn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, awsRoleArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, gcpServiceAccount_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, gcpServiceAccount_); } getUnknownFields().writeTo(output); } @@ -829,17 +849,17 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(streamArn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, streamArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerArn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, consumerArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(consumerArn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, consumerArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, awsRoleArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(awsRoleArn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, awsRoleArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, gcpServiceAccount_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, gcpServiceAccount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -925,38 +945,38 @@ public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseF public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -980,8 +1000,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -995,8 +1014,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder { @@ -1006,7 +1024,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable @@ -1018,7 +1036,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -1086,41 +1104,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) { @@ -1820,18 +1803,6 @@ public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis) } @@ -2180,14 +2151,24 @@ public interface CloudStorageOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} */ - public static final class CloudStorage extends com.google.protobuf.GeneratedMessageV3 + public static final class CloudStorage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) CloudStorageOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloudStorage"); + } + // Use CloudStorage.newBuilder() to construct. - private CloudStorage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CloudStorage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -2197,19 +2178,13 @@ private CloudStorage() { matchGlob_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CloudStorage(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable @@ -2300,6 +2275,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + /** * * @@ -2439,7 +2424,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDescriptor() .getEnumTypes() .get(0); @@ -2522,14 +2507,24 @@ public interface TextFormatOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} */ - public static final class TextFormat extends com.google.protobuf.GeneratedMessageV3 + public static final class TextFormat extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) TextFormatOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TextFormat"); + } + // Use TextFormat.newBuilder() to construct. - private TextFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextFormat(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -2537,19 +2532,13 @@ private TextFormat() { delimiter_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TextFormat(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable @@ -2644,7 +2633,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, delimiter_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, delimiter_); } getUnknownFields().writeTo(output); } @@ -2656,7 +2645,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, delimiter_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, delimiter_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2739,7 +2728,7 @@ public int hashCode() { public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat @@ -2747,13 +2736,13 @@ public int hashCode() { java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat @@ -2761,13 +2750,13 @@ public int hashCode() { java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat @@ -2775,7 +2764,7 @@ public int hashCode() { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -2800,7 +2789,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -2817,7 +2806,7 @@ protected Builder newBuilderForType( * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat} */ public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder { @@ -2827,7 +2816,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable @@ -2841,7 +2830,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -2899,41 +2888,6 @@ private void buildPartial0( result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other @@ -3133,18 +3087,6 @@ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat) } @@ -3217,32 +3159,36 @@ public interface AvroFormatOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} */ - public static final class AvroFormat extends com.google.protobuf.GeneratedMessageV3 + public static final class AvroFormat extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) AvroFormatOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AvroFormat"); + } + // Use AvroFormat.newBuilder() to construct. - private AvroFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AvroFormat(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AvroFormat() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AvroFormat(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable @@ -3348,7 +3294,7 @@ public int hashCode() { public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat @@ -3356,13 +3302,13 @@ public int hashCode() { java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat @@ -3370,13 +3316,13 @@ public int hashCode() { java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat @@ -3384,7 +3330,7 @@ public int hashCode() { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -3409,7 +3355,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -3426,7 +3372,7 @@ protected Builder newBuilderForType( * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat} */ public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder { @@ -3436,7 +3382,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable @@ -3450,7 +3396,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -3492,41 +3438,6 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other @@ -3587,18 +3498,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat) } @@ -3673,32 +3572,36 @@ public interface PubSubAvroFormatOrBuilder * Protobuf type {@code * google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} */ - public static final class PubSubAvroFormat extends com.google.protobuf.GeneratedMessageV3 + public static final class PubSubAvroFormat extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) PubSubAvroFormatOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PubSubAvroFormat"); + } + // Use PubSubAvroFormat.newBuilder() to construct. - private PubSubAvroFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PubSubAvroFormat(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private PubSubAvroFormat() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PubSubAvroFormat(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable @@ -3806,7 +3709,7 @@ public int hashCode() { public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat @@ -3814,13 +3717,13 @@ public int hashCode() { java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat @@ -3828,13 +3731,13 @@ public int hashCode() { java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat @@ -3842,7 +3745,7 @@ public int hashCode() { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -3868,7 +3771,7 @@ public Builder toBuilder() { @java.lang.Override protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -3887,7 +3790,7 @@ protected Builder newBuilderForType( * google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat} */ public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormatOrBuilder { @@ -3897,7 +3800,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable @@ -3912,7 +3815,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -3956,41 +3859,6 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other @@ -4053,18 +3921,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat) } @@ -4620,8 +4476,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bucket_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, bucket_); } if (inputFormatCase_ == 3) { output.writeMessage( @@ -4644,8 +4500,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getMinimumObjectCreateTime()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchGlob_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, matchGlob_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(matchGlob_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, matchGlob_); } getUnknownFields().writeTo(output); } @@ -4661,8 +4517,8 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucket_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, bucket_); } if (inputFormatCase_ == 3) { size += @@ -4690,8 +4546,8 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, getMinimumObjectCreateTime()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchGlob_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, matchGlob_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(matchGlob_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, matchGlob_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4809,38 +4665,38 @@ public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage pars public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -4864,8 +4720,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -4879,8 +4734,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.CloudStorage} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder { @@ -4890,7 +4744,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable @@ -4904,14 +4758,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMinimumObjectCreateTimeFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMinimumObjectCreateTimeFieldBuilder(); } } @@ -5012,41 +4866,6 @@ private void buildPartialOneofs( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) { @@ -5139,27 +4958,30 @@ public Builder mergeFrom( } // case 18 case 26: { - input.readMessage(getTextFormatFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetTextFormatFieldBuilder().getBuilder(), extensionRegistry); inputFormatCase_ = 3; break; } // case 26 case 34: { - input.readMessage(getAvroFormatFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetAvroFormatFieldBuilder().getBuilder(), extensionRegistry); inputFormatCase_ = 4; break; } // case 34 case 42: { input.readMessage( - getPubsubAvroFormatFieldBuilder().getBuilder(), extensionRegistry); + internalGetPubsubAvroFormatFieldBuilder().getBuilder(), extensionRegistry); inputFormatCase_ = 5; break; } // case 42 case 50: { input.readMessage( - getMinimumObjectCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + internalGetMinimumObjectCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 @@ -5436,7 +5258,7 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder> @@ -5622,7 +5444,7 @@ public Builder clearTextFormat() { */ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder getTextFormatBuilder() { - return getTextFormatFieldBuilder().getBuilder(); + return internalGetTextFormatFieldBuilder().getBuilder(); } /** @@ -5662,11 +5484,11 @@ public Builder clearTextFormat() { * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat text_format = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormatOrBuilder> - getTextFormatFieldBuilder() { + internalGetTextFormatFieldBuilder() { if (textFormatBuilder_ == null) { if (!(inputFormatCase_ == 3)) { inputFormat_ = @@ -5674,7 +5496,7 @@ public Builder clearTextFormat() { .getDefaultInstance(); } textFormatBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage @@ -5690,7 +5512,7 @@ public Builder clearTextFormat() { return textFormatBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder> @@ -5876,7 +5698,7 @@ public Builder clearAvroFormat() { */ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder getAvroFormatBuilder() { - return getAvroFormatFieldBuilder().getBuilder(); + return internalGetAvroFormatFieldBuilder().getBuilder(); } /** @@ -5916,11 +5738,11 @@ public Builder clearAvroFormat() { * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat avro_format = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormatOrBuilder> - getAvroFormatFieldBuilder() { + internalGetAvroFormatFieldBuilder() { if (avroFormatBuilder_ == null) { if (!(inputFormatCase_ == 4)) { inputFormat_ = @@ -5928,7 +5750,7 @@ public Builder clearAvroFormat() { .getDefaultInstance(); } avroFormatBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage @@ -5944,7 +5766,7 @@ public Builder clearAvroFormat() { return avroFormatBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat .Builder, @@ -6148,7 +5970,7 @@ public Builder clearPubsubAvroFormat() { */ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.Builder getPubsubAvroFormatBuilder() { - return getPubsubAvroFormatFieldBuilder().getBuilder(); + return internalGetPubsubAvroFormatFieldBuilder().getBuilder(); } /** @@ -6192,13 +6014,13 @@ public Builder clearPubsubAvroFormat() { * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat pubsub_avro_format = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat .Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage .PubSubAvroFormatOrBuilder> - getPubsubAvroFormatFieldBuilder() { + internalGetPubsubAvroFormatFieldBuilder() { if (pubsubAvroFormatBuilder_ == null) { if (!(inputFormatCase_ == 5)) { inputFormat_ = @@ -6206,7 +6028,7 @@ public Builder clearPubsubAvroFormat() { .getDefaultInstance(); } pubsubAvroFormatBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat .Builder, @@ -6224,7 +6046,7 @@ public Builder clearPubsubAvroFormat() { } private com.google.protobuf.Timestamp minimumObjectCreateTime_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> @@ -6391,7 +6213,7 @@ public Builder clearMinimumObjectCreateTime() { public com.google.protobuf.Timestamp.Builder getMinimumObjectCreateTimeBuilder() { bitField0_ |= 0x00000020; onChanged(); - return getMinimumObjectCreateTimeFieldBuilder().getBuilder(); + return internalGetMinimumObjectCreateTimeFieldBuilder().getBuilder(); } /** @@ -6428,14 +6250,14 @@ public com.google.protobuf.TimestampOrBuilder getMinimumObjectCreateTimeOrBuilde * .google.protobuf.Timestamp minimum_object_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getMinimumObjectCreateTimeFieldBuilder() { + internalGetMinimumObjectCreateTimeFieldBuilder() { if (minimumObjectCreateTimeBuilder_ == null) { minimumObjectCreateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( @@ -6566,18 +6388,6 @@ public Builder setMatchGlobBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.CloudStorage) } @@ -6868,14 +6678,24 @@ public interface AzureEventHubsOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs} */ - public static final class AzureEventHubs extends com.google.protobuf.GeneratedMessageV3 + public static final class AzureEventHubs extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) AzureEventHubsOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AzureEventHubs"); + } + // Use AzureEventHubs.newBuilder() to construct. - private AzureEventHubs(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AzureEventHubs(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -6890,19 +6710,13 @@ private AzureEventHubs() { gcpServiceAccount_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AzureEventHubs(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable @@ -7006,6 +6820,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + /** * * @@ -7164,7 +6988,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDescriptor() .getEnumTypes() .get(0); @@ -7632,26 +7456,26 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroup_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceGroup_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceGroup_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, resourceGroup_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, namespace_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, eventHub_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventHub_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, eventHub_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, clientId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tenantId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenantId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, tenantId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, subscriptionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscriptionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, subscriptionId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, gcpServiceAccount_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, gcpServiceAccount_); } getUnknownFields().writeTo(output); } @@ -7667,26 +7491,26 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceGroup_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceGroup_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceGroup_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, resourceGroup_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, namespace_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, eventHub_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventHub_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, eventHub_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, clientId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, clientId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, tenantId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenantId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, tenantId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscriptionId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, subscriptionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscriptionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, subscriptionId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, gcpServiceAccount_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, gcpServiceAccount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7781,39 +7605,39 @@ public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs pa public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -7837,8 +7661,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -7852,8 +7675,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder { @@ -7863,7 +7685,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable @@ -7876,7 +7698,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -7956,41 +7778,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) { @@ -9042,18 +8829,6 @@ public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs) } @@ -9278,14 +9053,24 @@ public interface AwsMskOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsMsk} */ - public static final class AwsMsk extends com.google.protobuf.GeneratedMessageV3 + public static final class AwsMsk extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) AwsMskOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AwsMsk"); + } + // Use AwsMsk.newBuilder() to construct. - private AwsMsk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AwsMsk(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -9297,19 +9082,13 @@ private AwsMsk() { gcpServiceAccount_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AwsMsk(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable @@ -9391,6 +9170,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + /** * * @@ -9521,7 +9310,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDescriptor() .getEnumTypes() .get(0); @@ -9842,17 +9631,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clusterArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterArn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, clusterArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, topic_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, awsRoleArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(awsRoleArn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, awsRoleArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, gcpServiceAccount_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, gcpServiceAccount_); } getUnknownFields().writeTo(output); } @@ -9868,17 +9657,17 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterArn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, clusterArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, topic_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(awsRoleArn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, awsRoleArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(awsRoleArn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, awsRoleArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, gcpServiceAccount_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, gcpServiceAccount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9964,38 +9753,38 @@ public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -10019,8 +9808,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -10034,8 +9822,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.AwsMsk} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder { @@ -10045,7 +9832,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable @@ -10057,7 +9844,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -10123,41 +9910,6 @@ private void buildPartial0(com.google.pubsub.v1.IngestionDataSourceSettings.AwsM } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) { @@ -10870,18 +10622,6 @@ public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.AwsMsk) } @@ -11119,14 +10859,24 @@ public interface ConfluentCloudOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud} */ - public static final class ConfluentCloud extends com.google.protobuf.GeneratedMessageV3 + public static final class ConfluentCloud extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) ConfluentCloudOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConfluentCloud"); + } + // Use ConfluentCloud.newBuilder() to construct. - private ConfluentCloud(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ConfluentCloud(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -11139,19 +10889,13 @@ private ConfluentCloud() { gcpServiceAccount_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfluentCloud(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable @@ -11244,6 +10988,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + /** * * @@ -11388,7 +11142,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDescriptor() .getEnumTypes() .get(0); @@ -11752,20 +11506,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootstrapServer_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bootstrapServer_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bootstrapServer_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, bootstrapServer_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, clusterId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, topic_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityPoolId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, identityPoolId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityPoolId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, identityPoolId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, gcpServiceAccount_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcpServiceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, gcpServiceAccount_); } getUnknownFields().writeTo(output); } @@ -11781,20 +11535,20 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bootstrapServer_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bootstrapServer_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bootstrapServer_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, bootstrapServer_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, clusterId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, topic_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identityPoolId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, identityPoolId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityPoolId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, identityPoolId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, gcpServiceAccount_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcpServiceAccount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, gcpServiceAccount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -11883,39 +11637,39 @@ public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud pa public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -11939,8 +11693,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -11954,8 +11707,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder { @@ -11965,7 +11717,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable @@ -11978,7 +11730,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -12050,41 +11802,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) { @@ -12897,18 +12614,6 @@ public Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud) } @@ -13584,38 +13289,38 @@ public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionDataSourceSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -13638,7 +13343,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -13652,7 +13357,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.IngestionDataSourceSettings} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionDataSourceSettings) com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder { @@ -13662,7 +13367,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable @@ -13676,14 +13381,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPlatformLogsSettingsFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPlatformLogsSettingsFieldBuilder(); } } @@ -13781,39 +13486,6 @@ private void buildPartialOneofs(com.google.pubsub.v1.IngestionDataSourceSettings } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionDataSourceSettings) { @@ -13889,38 +13561,42 @@ public Builder mergeFrom( break; case 10: { - input.readMessage(getAwsKinesisFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetAwsKinesisFieldBuilder().getBuilder(), extensionRegistry); sourceCase_ = 1; break; } // case 10 case 18: { - input.readMessage(getCloudStorageFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetCloudStorageFieldBuilder().getBuilder(), extensionRegistry); sourceCase_ = 2; break; } // case 18 case 26: { - input.readMessage(getAzureEventHubsFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetAzureEventHubsFieldBuilder().getBuilder(), extensionRegistry); sourceCase_ = 3; break; } // case 26 case 34: { input.readMessage( - getPlatformLogsSettingsFieldBuilder().getBuilder(), extensionRegistry); + internalGetPlatformLogsSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 34 case 42: { - input.readMessage(getAwsMskFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage(internalGetAwsMskFieldBuilder().getBuilder(), extensionRegistry); sourceCase_ = 5; break; } // case 42 case 50: { - input.readMessage(getConfluentCloudFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetConfluentCloudFieldBuilder().getBuilder(), extensionRegistry); sourceCase_ = 6; break; } // case 50 @@ -13957,7 +13633,7 @@ public Builder clearSource() { private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> @@ -14137,7 +13813,7 @@ public Builder clearAwsKinesis() { */ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder getAwsKinesisBuilder() { - return getAwsKinesisFieldBuilder().getBuilder(); + return internalGetAwsKinesisFieldBuilder().getBuilder(); } /** @@ -14175,18 +13851,18 @@ public Builder clearAwsKinesis() { * .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis aws_kinesis = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder> - getAwsKinesisFieldBuilder() { + internalGetAwsKinesisFieldBuilder() { if (awsKinesisBuilder_ == null) { if (!(sourceCase_ == 1)) { source_ = com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.getDefaultInstance(); } awsKinesisBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsKinesisOrBuilder>( @@ -14200,7 +13876,7 @@ public Builder clearAwsKinesis() { return awsKinesisBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> @@ -14380,7 +14056,7 @@ public Builder clearCloudStorage() { */ public com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder getCloudStorageBuilder() { - return getCloudStorageFieldBuilder().getBuilder(); + return internalGetCloudStorageFieldBuilder().getBuilder(); } /** @@ -14418,18 +14094,18 @@ public Builder clearCloudStorage() { * .google.pubsub.v1.IngestionDataSourceSettings.CloudStorage cloud_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder> - getCloudStorageFieldBuilder() { + internalGetCloudStorageFieldBuilder() { if (cloudStorageBuilder_ == null) { if (!(sourceCase_ == 2)) { source_ = com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.getDefaultInstance(); } cloudStorageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.CloudStorageOrBuilder>( @@ -14443,7 +14119,7 @@ public Builder clearCloudStorage() { return cloudStorageBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs, com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder> @@ -14623,7 +14299,7 @@ public Builder clearAzureEventHubs() { */ public com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder getAzureEventHubsBuilder() { - return getAzureEventHubsFieldBuilder().getBuilder(); + return internalGetAzureEventHubsFieldBuilder().getBuilder(); } /** @@ -14661,18 +14337,18 @@ public Builder clearAzureEventHubs() { * .google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs azure_event_hubs = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs, com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder> - getAzureEventHubsFieldBuilder() { + internalGetAzureEventHubsFieldBuilder() { if (azureEventHubsBuilder_ == null) { if (!(sourceCase_ == 3)) { source_ = com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.getDefaultInstance(); } azureEventHubsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs, com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubs.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AzureEventHubsOrBuilder>( @@ -14686,7 +14362,7 @@ public Builder clearAzureEventHubs() { return azureEventHubsBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk, com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder> @@ -14862,7 +14538,7 @@ public Builder clearAwsMsk() { * */ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder getAwsMskBuilder() { - return getAwsMskFieldBuilder().getBuilder(); + return internalGetAwsMskFieldBuilder().getBuilder(); } /** @@ -14899,17 +14575,17 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs * .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk aws_msk = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk, com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder> - getAwsMskFieldBuilder() { + internalGetAwsMskFieldBuilder() { if (awsMskBuilder_ == null) { if (!(sourceCase_ == 5)) { source_ = com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.getDefaultInstance(); } awsMskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk, com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder>( @@ -14923,7 +14599,7 @@ public com.google.pubsub.v1.IngestionDataSourceSettings.AwsMskOrBuilder getAwsMs return awsMskBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud, com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder> @@ -15103,7 +14779,7 @@ public Builder clearConfluentCloud() { */ public com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder getConfluentCloudBuilder() { - return getConfluentCloudFieldBuilder().getBuilder(); + return internalGetConfluentCloudFieldBuilder().getBuilder(); } /** @@ -15141,18 +14817,18 @@ public Builder clearConfluentCloud() { * .google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud confluent_cloud = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud, com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder> - getConfluentCloudFieldBuilder() { + internalGetConfluentCloudFieldBuilder() { if (confluentCloudBuilder_ == null) { if (!(sourceCase_ == 6)) { source_ = com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.getDefaultInstance(); } confluentCloudBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud, com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloud.Builder, com.google.pubsub.v1.IngestionDataSourceSettings.ConfluentCloudOrBuilder>( @@ -15167,7 +14843,7 @@ public Builder clearConfluentCloud() { } private com.google.pubsub.v1.PlatformLogsSettings platformLogsSettings_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PlatformLogsSettings, com.google.pubsub.v1.PlatformLogsSettings.Builder, com.google.pubsub.v1.PlatformLogsSettingsOrBuilder> @@ -15335,7 +15011,7 @@ public Builder clearPlatformLogsSettings() { public com.google.pubsub.v1.PlatformLogsSettings.Builder getPlatformLogsSettingsBuilder() { bitField0_ |= 0x00000020; onChanged(); - return getPlatformLogsSettingsFieldBuilder().getBuilder(); + return internalGetPlatformLogsSettingsFieldBuilder().getBuilder(); } /** @@ -15372,14 +15048,14 @@ public com.google.pubsub.v1.PlatformLogsSettingsOrBuilder getPlatformLogsSetting * .google.pubsub.v1.PlatformLogsSettings platform_logs_settings = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PlatformLogsSettings, com.google.pubsub.v1.PlatformLogsSettings.Builder, com.google.pubsub.v1.PlatformLogsSettingsOrBuilder> - getPlatformLogsSettingsFieldBuilder() { + internalGetPlatformLogsSettingsFieldBuilder() { if (platformLogsSettingsBuilder_ == null) { platformLogsSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PlatformLogsSettings, com.google.pubsub.v1.PlatformLogsSettings.Builder, com.google.pubsub.v1.PlatformLogsSettingsOrBuilder>( @@ -15389,17 +15065,6 @@ public com.google.pubsub.v1.PlatformLogsSettingsOrBuilder getPlatformLogsSetting return platformLogsSettingsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionDataSourceSettings) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java index 31f1058e2573..9e641bb67302 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionDataSourceSettingsOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface IngestionDataSourceSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionDataSourceSettings) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java index 2df52b4a8ce1..6fde71fb17c3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEvent.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -29,14 +30,25 @@ * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent} */ -public final class IngestionFailureEvent extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class IngestionFailureEvent extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent) IngestionFailureEventOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestionFailureEvent"); + } + // Use IngestionFailureEvent.newBuilder() to construct. - private IngestionFailureEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private IngestionFailureEvent(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -45,19 +57,13 @@ private IngestionFailureEvent() { errorMessage_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new IngestionFailureEvent(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable @@ -87,32 +93,36 @@ public interface ApiViolationReasonOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} */ - public static final class ApiViolationReason extends com.google.protobuf.GeneratedMessageV3 + public static final class ApiViolationReason extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) ApiViolationReasonOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ApiViolationReason"); + } + // Use ApiViolationReason.newBuilder() to construct. - private ApiViolationReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ApiViolationReason(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ApiViolationReason() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ApiViolationReason(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable @@ -213,38 +223,38 @@ public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason pars public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -268,8 +278,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -290,8 +299,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ApiViolationReason} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder { @@ -301,7 +309,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable @@ -313,7 +321,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -352,41 +360,6 @@ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason buildPartia return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) { @@ -445,18 +418,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ApiViolationReason) } @@ -527,32 +488,36 @@ public interface AvroFailureReasonOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} */ - public static final class AvroFailureReason extends com.google.protobuf.GeneratedMessageV3 + public static final class AvroFailureReason extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) AvroFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AvroFailureReason"); + } + // Use AvroFailureReason.newBuilder() to construct. - private AvroFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AvroFailureReason(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AvroFailureReason() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AvroFailureReason(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable @@ -653,38 +618,38 @@ public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parse public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -708,8 +673,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -724,8 +688,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AvroFailureReason} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder { @@ -735,7 +698,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable @@ -747,7 +710,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -786,41 +749,6 @@ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason buildPartial return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) { @@ -878,18 +806,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AvroFailureReason) } @@ -960,32 +876,36 @@ public interface SchemaViolationReasonOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} */ - public static final class SchemaViolationReason extends com.google.protobuf.GeneratedMessageV3 + public static final class SchemaViolationReason extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) SchemaViolationReasonOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SchemaViolationReason"); + } + // Use SchemaViolationReason.newBuilder() to construct. - private SchemaViolationReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SchemaViolationReason(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SchemaViolationReason() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SchemaViolationReason(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable @@ -1086,39 +1006,39 @@ public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason p public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -1142,8 +1062,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1158,8 +1077,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder { @@ -1169,7 +1087,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable @@ -1182,7 +1100,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -1222,41 +1140,6 @@ public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason buildPar return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) { @@ -1316,18 +1199,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason) } @@ -1399,33 +1270,37 @@ public interface MessageTransformationFailureReasonOrBuilder * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason} */ public static final class MessageTransformationFailureReason - extends com.google.protobuf.GeneratedMessageV3 + extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) MessageTransformationFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MessageTransformationFailureReason"); + } + // Use MessageTransformationFailureReason.newBuilder() to construct. private MessageTransformationFailureReason( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageTransformationFailureReason() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MessageTransformationFailureReason(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable @@ -1532,33 +1407,33 @@ public int hashCode() { public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason @@ -1566,7 +1441,7 @@ public int hashCode() { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -1590,8 +1465,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1607,8 +1481,7 @@ protected Builder newBuilderForType( * Protobuf type {@code * google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReasonOrBuilder { @@ -1618,7 +1491,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable @@ -1632,7 +1505,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -1674,41 +1547,6 @@ public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureRe return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other @@ -1771,18 +1609,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason) } @@ -2108,14 +1934,24 @@ public interface CloudStorageFailureOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} */ - public static final class CloudStorageFailure extends com.google.protobuf.GeneratedMessageV3 + public static final class CloudStorageFailure extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) CloudStorageFailureOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloudStorageFailure"); + } + // Use CloudStorageFailure.newBuilder() to construct. - private CloudStorageFailure(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CloudStorageFailure(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -2124,19 +1960,13 @@ private CloudStorageFailure() { objectName_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CloudStorageFailure(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable @@ -2599,11 +2429,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, bucket_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectName_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(objectName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, objectName_); } if (objectGeneration_ != 0L) { output.writeInt64(3, objectGeneration_); @@ -2635,11 +2465,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, bucket_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectName_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(objectName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, objectName_); } if (objectGeneration_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, objectGeneration_); @@ -2782,38 +2612,38 @@ public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure par public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -2837,8 +2667,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -2852,8 +2681,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder { @@ -2863,7 +2691,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable @@ -2875,7 +2703,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -2968,41 +2796,6 @@ private void buildPartialOneofs( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) { @@ -3105,28 +2898,29 @@ public Builder mergeFrom( case 42: { input.readMessage( - getAvroFailureReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetAvroFailureReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 5; break; } // case 42 case 50: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 6; break; } // case 50 case 58: { input.readMessage( - getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetSchemaViolationReasonFieldBuilder().getBuilder(), + extensionRegistry); reasonCase_ = 7; break; } // case 58 case 66: { input.readMessage( - getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + internalGetMessageTransformationFailureReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 8; break; @@ -3450,7 +3244,7 @@ public Builder clearObjectGeneration() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> @@ -3630,7 +3424,7 @@ public Builder clearAvroFailureReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder getAvroFailureReasonBuilder() { - return getAvroFailureReasonFieldBuilder().getBuilder(); + return internalGetAvroFailureReasonFieldBuilder().getBuilder(); } /** @@ -3668,18 +3462,18 @@ public Builder clearAvroFailureReason() { * .google.pubsub.v1.IngestionFailureEvent.AvroFailureReason avro_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder> - getAvroFailureReasonFieldBuilder() { + internalGetAvroFailureReasonFieldBuilder() { if (avroFailureReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.getDefaultInstance(); } avroFailureReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AvroFailureReasonOrBuilder>( @@ -3693,7 +3487,7 @@ public Builder clearAvroFailureReason() { return avroFailureReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> @@ -3880,7 +3674,7 @@ public Builder clearApiViolationReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + return internalGetApiViolationReasonFieldBuilder().getBuilder(); } /** @@ -3920,18 +3714,18 @@ public Builder clearApiViolationReason() { * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { + internalGetApiViolationReasonFieldBuilder() { if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 6)) { reason_ = com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } apiViolationReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( @@ -3945,7 +3739,7 @@ public Builder clearApiViolationReason() { return apiViolationReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> @@ -4129,7 +3923,7 @@ public Builder clearSchemaViolationReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder getSchemaViolationReasonBuilder() { - return getSchemaViolationReasonFieldBuilder().getBuilder(); + return internalGetSchemaViolationReasonFieldBuilder().getBuilder(); } /** @@ -4168,11 +3962,11 @@ public Builder clearSchemaViolationReason() { * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - getSchemaViolationReasonFieldBuilder() { + internalGetSchemaViolationReasonFieldBuilder() { if (schemaViolationReasonBuilder_ == null) { if (!(reasonCase_ == 7)) { reason_ = @@ -4180,7 +3974,7 @@ public Builder clearSchemaViolationReason() { .getDefaultInstance(); } schemaViolationReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( @@ -4194,7 +3988,7 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent @@ -4390,7 +4184,7 @@ public Builder clearMessageTransformationFailureReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder getMessageTransformationFailureReasonBuilder() { - return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + return internalGetMessageTransformationFailureReasonFieldBuilder().getBuilder(); } /** @@ -4432,12 +4226,12 @@ public Builder clearMessageTransformationFailureReason() { * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent .MessageTransformationFailureReasonOrBuilder> - getMessageTransformationFailureReasonFieldBuilder() { + internalGetMessageTransformationFailureReasonFieldBuilder() { if (messageTransformationFailureReasonBuilder_ == null) { if (!(reasonCase_ == 8)) { reason_ = @@ -4445,7 +4239,7 @@ public Builder clearMessageTransformationFailureReason() { .getDefaultInstance(); } messageTransformationFailureReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .Builder, @@ -4462,18 +4256,6 @@ public Builder clearMessageTransformationFailureReason() { return messageTransformationFailureReasonBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure) } @@ -4764,14 +4546,24 @@ public interface AwsMskFailureReasonOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} */ - public static final class AwsMskFailureReason extends com.google.protobuf.GeneratedMessageV3 + public static final class AwsMskFailureReason extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) AwsMskFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AwsMskFailureReason"); + } + // Use AwsMskFailureReason.newBuilder() to construct. - private AwsMskFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AwsMskFailureReason(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -4780,19 +4572,13 @@ private AwsMskFailureReason() { kafkaTopic_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AwsMskFailureReason(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable @@ -5208,11 +4994,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterArn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clusterArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, kafkaTopic_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); @@ -5243,11 +5029,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterArn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterArn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clusterArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, kafkaTopic_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); @@ -5384,38 +5170,38 @@ public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason par public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -5439,8 +5225,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -5454,8 +5239,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder { @@ -5465,7 +5249,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable @@ -5477,7 +5261,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -5568,41 +5352,6 @@ private void buildPartialOneofs( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) { @@ -5709,21 +5458,22 @@ public Builder mergeFrom( case 42: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 5; break; } // case 42 case 50: { input.readMessage( - getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetSchemaViolationReasonFieldBuilder().getBuilder(), + extensionRegistry); reasonCase_ = 6; break; } // case 50 case 58: { input.readMessage( - getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + internalGetMessageTransformationFailureReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 7; break; @@ -6098,7 +5848,7 @@ public Builder clearOffset() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> @@ -6285,7 +6035,7 @@ public Builder clearApiViolationReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + return internalGetApiViolationReasonFieldBuilder().getBuilder(); } /** @@ -6325,18 +6075,18 @@ public Builder clearApiViolationReason() { * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { + internalGetApiViolationReasonFieldBuilder() { if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } apiViolationReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( @@ -6350,7 +6100,7 @@ public Builder clearApiViolationReason() { return apiViolationReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> @@ -6534,7 +6284,7 @@ public Builder clearSchemaViolationReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder getSchemaViolationReasonBuilder() { - return getSchemaViolationReasonFieldBuilder().getBuilder(); + return internalGetSchemaViolationReasonFieldBuilder().getBuilder(); } /** @@ -6573,11 +6323,11 @@ public Builder clearSchemaViolationReason() { * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - getSchemaViolationReasonFieldBuilder() { + internalGetSchemaViolationReasonFieldBuilder() { if (schemaViolationReasonBuilder_ == null) { if (!(reasonCase_ == 6)) { reason_ = @@ -6585,7 +6335,7 @@ public Builder clearSchemaViolationReason() { .getDefaultInstance(); } schemaViolationReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( @@ -6599,7 +6349,7 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent @@ -6795,7 +6545,7 @@ public Builder clearMessageTransformationFailureReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder getMessageTransformationFailureReasonBuilder() { - return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + return internalGetMessageTransformationFailureReasonFieldBuilder().getBuilder(); } /** @@ -6837,12 +6587,12 @@ public Builder clearMessageTransformationFailureReason() { * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent .MessageTransformationFailureReasonOrBuilder> - getMessageTransformationFailureReasonFieldBuilder() { + internalGetMessageTransformationFailureReasonFieldBuilder() { if (messageTransformationFailureReasonBuilder_ == null) { if (!(reasonCase_ == 7)) { reason_ = @@ -6850,7 +6600,7 @@ public Builder clearMessageTransformationFailureReason() { .getDefaultInstance(); } messageTransformationFailureReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .Builder, @@ -6867,18 +6617,6 @@ public Builder clearMessageTransformationFailureReason() { return messageTransformationFailureReasonBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason) } @@ -7170,15 +6908,24 @@ public interface AzureEventHubsFailureReasonOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} */ - public static final class AzureEventHubsFailureReason - extends com.google.protobuf.GeneratedMessageV3 + public static final class AzureEventHubsFailureReason extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) AzureEventHubsFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AzureEventHubsFailureReason"); + } + // Use AzureEventHubsFailureReason.newBuilder() to construct. - private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AzureEventHubsFailureReason(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -7187,19 +6934,13 @@ private AzureEventHubsFailureReason() { eventHub_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AzureEventHubsFailureReason(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable @@ -7615,11 +7356,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, namespace_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventHub_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventHub_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, eventHub_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); @@ -7650,11 +7391,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(namespace_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, namespace_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventHub_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventHub_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventHub_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, eventHub_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); @@ -7792,39 +7533,39 @@ public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureRe public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -7848,8 +7589,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -7863,8 +7603,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder { @@ -7874,7 +7613,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable @@ -7888,7 +7627,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -7981,41 +7720,6 @@ private void buildPartialOneofs( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other @@ -8124,21 +7828,22 @@ public Builder mergeFrom( case 42: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 5; break; } // case 42 case 50: { input.readMessage( - getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetSchemaViolationReasonFieldBuilder().getBuilder(), + extensionRegistry); reasonCase_ = 6; break; } // case 50 case 58: { input.readMessage( - getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + internalGetMessageTransformationFailureReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 7; break; @@ -8513,7 +8218,7 @@ public Builder clearOffset() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> @@ -8700,7 +8405,7 @@ public Builder clearApiViolationReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + return internalGetApiViolationReasonFieldBuilder().getBuilder(); } /** @@ -8740,18 +8445,18 @@ public Builder clearApiViolationReason() { * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { + internalGetApiViolationReasonFieldBuilder() { if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } apiViolationReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( @@ -8765,7 +8470,7 @@ public Builder clearApiViolationReason() { return apiViolationReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> @@ -8949,7 +8654,7 @@ public Builder clearSchemaViolationReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder getSchemaViolationReasonBuilder() { - return getSchemaViolationReasonFieldBuilder().getBuilder(); + return internalGetSchemaViolationReasonFieldBuilder().getBuilder(); } /** @@ -8988,11 +8693,11 @@ public Builder clearSchemaViolationReason() { * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - getSchemaViolationReasonFieldBuilder() { + internalGetSchemaViolationReasonFieldBuilder() { if (schemaViolationReasonBuilder_ == null) { if (!(reasonCase_ == 6)) { reason_ = @@ -9000,7 +8705,7 @@ public Builder clearSchemaViolationReason() { .getDefaultInstance(); } schemaViolationReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( @@ -9014,7 +8719,7 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent @@ -9210,7 +8915,7 @@ public Builder clearMessageTransformationFailureReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder getMessageTransformationFailureReasonBuilder() { - return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + return internalGetMessageTransformationFailureReasonFieldBuilder().getBuilder(); } /** @@ -9252,12 +8957,12 @@ public Builder clearMessageTransformationFailureReason() { * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent .MessageTransformationFailureReasonOrBuilder> - getMessageTransformationFailureReasonFieldBuilder() { + internalGetMessageTransformationFailureReasonFieldBuilder() { if (messageTransformationFailureReasonBuilder_ == null) { if (!(reasonCase_ == 7)) { reason_ = @@ -9265,7 +8970,7 @@ public Builder clearMessageTransformationFailureReason() { .getDefaultInstance(); } messageTransformationFailureReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .Builder, @@ -9282,18 +8987,6 @@ public Builder clearMessageTransformationFailureReason() { return messageTransformationFailureReasonBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason) } @@ -9586,15 +9279,24 @@ public interface ConfluentCloudFailureReasonOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} */ - public static final class ConfluentCloudFailureReason - extends com.google.protobuf.GeneratedMessageV3 + public static final class ConfluentCloudFailureReason extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) ConfluentCloudFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConfluentCloudFailureReason"); + } + // Use ConfluentCloudFailureReason.newBuilder() to construct. - private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ConfluentCloudFailureReason(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -9603,19 +9305,13 @@ private ConfluentCloudFailureReason() { kafkaTopic_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfluentCloudFailureReason(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable @@ -10031,11 +9727,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clusterId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kafkaTopic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, kafkaTopic_); } if (partitionId_ != 0L) { output.writeInt64(3, partitionId_); @@ -10066,11 +9762,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clusterId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kafkaTopic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kafkaTopic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kafkaTopic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, kafkaTopic_); } if (partitionId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, partitionId_); @@ -10208,39 +9904,39 @@ public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureRe public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -10264,8 +9960,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -10279,8 +9974,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder { @@ -10290,7 +9984,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable @@ -10304,7 +9998,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -10397,41 +10091,6 @@ private void buildPartialOneofs( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other @@ -10540,21 +10199,22 @@ public Builder mergeFrom( case 42: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 5; break; } // case 42 case 50: { input.readMessage( - getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetSchemaViolationReasonFieldBuilder().getBuilder(), + extensionRegistry); reasonCase_ = 6; break; } // case 50 case 58: { input.readMessage( - getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + internalGetMessageTransformationFailureReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 7; break; @@ -10929,7 +10589,7 @@ public Builder clearOffset() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> @@ -11116,7 +10776,7 @@ public Builder clearApiViolationReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + return internalGetApiViolationReasonFieldBuilder().getBuilder(); } /** @@ -11156,18 +10816,18 @@ public Builder clearApiViolationReason() { * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { + internalGetApiViolationReasonFieldBuilder() { if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } apiViolationReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( @@ -11181,7 +10841,7 @@ public Builder clearApiViolationReason() { return apiViolationReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> @@ -11365,7 +11025,7 @@ public Builder clearSchemaViolationReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder getSchemaViolationReasonBuilder() { - return getSchemaViolationReasonFieldBuilder().getBuilder(); + return internalGetSchemaViolationReasonFieldBuilder().getBuilder(); } /** @@ -11404,11 +11064,11 @@ public Builder clearSchemaViolationReason() { * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - getSchemaViolationReasonFieldBuilder() { + internalGetSchemaViolationReasonFieldBuilder() { if (schemaViolationReasonBuilder_ == null) { if (!(reasonCase_ == 6)) { reason_ = @@ -11416,7 +11076,7 @@ public Builder clearSchemaViolationReason() { .getDefaultInstance(); } schemaViolationReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( @@ -11430,7 +11090,7 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent @@ -11626,7 +11286,7 @@ public Builder clearMessageTransformationFailureReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder getMessageTransformationFailureReasonBuilder() { - return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + return internalGetMessageTransformationFailureReasonFieldBuilder().getBuilder(); } /** @@ -11668,12 +11328,12 @@ public Builder clearMessageTransformationFailureReason() { * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent .MessageTransformationFailureReasonOrBuilder> - getMessageTransformationFailureReasonFieldBuilder() { + internalGetMessageTransformationFailureReasonFieldBuilder() { if (messageTransformationFailureReasonBuilder_ == null) { if (!(reasonCase_ == 7)) { reason_ = @@ -11681,7 +11341,7 @@ public Builder clearMessageTransformationFailureReason() { .getDefaultInstance(); } messageTransformationFailureReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .Builder, @@ -11698,18 +11358,6 @@ public Builder clearMessageTransformationFailureReason() { return messageTransformationFailureReasonBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason) } @@ -12003,14 +11651,24 @@ public interface AwsKinesisFailureReasonOrBuilder * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} */ - public static final class AwsKinesisFailureReason extends com.google.protobuf.GeneratedMessageV3 + public static final class AwsKinesisFailureReason extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) AwsKinesisFailureReasonOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AwsKinesisFailureReason"); + } + // Use AwsKinesisFailureReason.newBuilder() to construct. - private AwsKinesisFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AwsKinesisFailureReason(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -12020,19 +11678,13 @@ private AwsKinesisFailureReason() { sequenceNumber_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AwsKinesisFailureReason(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable @@ -12465,14 +12117,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, streamArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(streamArn_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, streamArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partitionKey_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(partitionKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, partitionKey_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceNumber_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sequenceNumber_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sequenceNumber_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, sequenceNumber_); } if (reasonCase_ == 4) { output.writeMessage( @@ -12497,14 +12149,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamArn_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, streamArn_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(streamArn_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, streamArn_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partitionKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partitionKey_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(partitionKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, partitionKey_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sequenceNumber_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sequenceNumber_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sequenceNumber_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, sequenceNumber_); } if (reasonCase_ == 4) { size += @@ -12632,39 +12284,39 @@ public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -12688,8 +12340,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -12703,8 +12354,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder { @@ -12714,7 +12364,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable @@ -12727,7 +12377,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -12815,41 +12465,6 @@ private void buildPartialOneofs( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) { @@ -12950,14 +12565,15 @@ public Builder mergeFrom( case 34: { input.readMessage( - getSchemaViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetSchemaViolationReasonFieldBuilder().getBuilder(), + extensionRegistry); reasonCase_ = 4; break; } // case 34 case 42: { input.readMessage( - getMessageTransformationFailureReasonFieldBuilder().getBuilder(), + internalGetMessageTransformationFailureReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 5; break; @@ -12965,7 +12581,7 @@ public Builder mergeFrom( case 50: { input.readMessage( - getApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); + internalGetApiViolationReasonFieldBuilder().getBuilder(), extensionRegistry); reasonCase_ = 6; break; } // case 50 @@ -13335,7 +12951,7 @@ public Builder setSequenceNumberBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> @@ -13519,7 +13135,7 @@ public Builder clearSchemaViolationReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder getSchemaViolationReasonBuilder() { - return getSchemaViolationReasonFieldBuilder().getBuilder(); + return internalGetSchemaViolationReasonFieldBuilder().getBuilder(); } /** @@ -13558,11 +13174,11 @@ public Builder clearSchemaViolationReason() { * .google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason schema_violation_reason = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder> - getSchemaViolationReasonFieldBuilder() { + internalGetSchemaViolationReasonFieldBuilder() { if (schemaViolationReasonBuilder_ == null) { if (!(reasonCase_ == 4)) { reason_ = @@ -13570,7 +13186,7 @@ public Builder clearSchemaViolationReason() { .getDefaultInstance(); } schemaViolationReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.SchemaViolationReasonOrBuilder>( @@ -13584,7 +13200,7 @@ public Builder clearSchemaViolationReason() { return schemaViolationReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent @@ -13780,7 +13396,7 @@ public Builder clearMessageTransformationFailureReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder getMessageTransformationFailureReasonBuilder() { - return getMessageTransformationFailureReasonFieldBuilder().getBuilder(); + return internalGetMessageTransformationFailureReasonFieldBuilder().getBuilder(); } /** @@ -13822,12 +13438,12 @@ public Builder clearMessageTransformationFailureReason() { * .google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason message_transformation_failure_reason = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent .MessageTransformationFailureReasonOrBuilder> - getMessageTransformationFailureReasonFieldBuilder() { + internalGetMessageTransformationFailureReasonFieldBuilder() { if (messageTransformationFailureReasonBuilder_ == null) { if (!(reasonCase_ == 5)) { reason_ = @@ -13835,7 +13451,7 @@ public Builder clearMessageTransformationFailureReason() { .getDefaultInstance(); } messageTransformationFailureReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason, com.google.pubsub.v1.IngestionFailureEvent.MessageTransformationFailureReason .Builder, @@ -13852,7 +13468,7 @@ public Builder clearMessageTransformationFailureReason() { return messageTransformationFailureReasonBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> @@ -14046,7 +13662,7 @@ public Builder clearApiViolationReason() { */ public com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder getApiViolationReasonBuilder() { - return getApiViolationReasonFieldBuilder().getBuilder(); + return internalGetApiViolationReasonFieldBuilder().getBuilder(); } /** @@ -14088,18 +13704,18 @@ public Builder clearApiViolationReason() { * .google.pubsub.v1.IngestionFailureEvent.ApiViolationReason api_violation_reason = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder> - getApiViolationReasonFieldBuilder() { + internalGetApiViolationReasonFieldBuilder() { if (apiViolationReasonBuilder_ == null) { if (!(reasonCase_ == 6)) { reason_ = com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.getDefaultInstance(); } apiViolationReasonBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ApiViolationReasonOrBuilder>( @@ -14113,18 +13729,6 @@ public Builder clearApiViolationReason() { return apiViolationReasonBuilder_; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason) } @@ -14676,11 +14280,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, topic_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, errorMessage_); } if (failureCase_ == 3) { output.writeMessage( @@ -14711,11 +14315,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, topic_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, errorMessage_); } if (failureCase_ == 3) { size += @@ -14861,38 +14465,38 @@ public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( public static com.google.pubsub.v1.IngestionFailureEvent parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.IngestionFailureEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -14915,7 +14519,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -14930,7 +14534,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.IngestionFailureEvent} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.IngestionFailureEvent) com.google.pubsub.v1.IngestionFailureEventOrBuilder { @@ -14940,7 +14544,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable @@ -14952,7 +14556,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.IngestionFailureEvent.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -15044,39 +14648,6 @@ private void buildPartialOneofs(com.google.pubsub.v1.IngestionFailureEvent resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.IngestionFailureEvent) { @@ -15171,34 +14742,35 @@ public Builder mergeFrom( case 26: { input.readMessage( - getCloudStorageFailureFieldBuilder().getBuilder(), extensionRegistry); + internalGetCloudStorageFailureFieldBuilder().getBuilder(), extensionRegistry); failureCase_ = 3; break; } // case 26 case 34: { - input.readMessage(getAwsMskFailureFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetAwsMskFailureFieldBuilder().getBuilder(), extensionRegistry); failureCase_ = 4; break; } // case 34 case 42: { input.readMessage( - getAzureEventHubsFailureFieldBuilder().getBuilder(), extensionRegistry); + internalGetAzureEventHubsFailureFieldBuilder().getBuilder(), extensionRegistry); failureCase_ = 5; break; } // case 42 case 50: { input.readMessage( - getConfluentCloudFailureFieldBuilder().getBuilder(), extensionRegistry); + internalGetConfluentCloudFailureFieldBuilder().getBuilder(), extensionRegistry); failureCase_ = 6; break; } // case 50 case 58: { input.readMessage( - getAwsKinesisFailureFieldBuilder().getBuilder(), extensionRegistry); + internalGetAwsKinesisFailureFieldBuilder().getBuilder(), extensionRegistry); failureCase_ = 7; break; } // case 58 @@ -15472,7 +15044,7 @@ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> @@ -15652,7 +15224,7 @@ public Builder clearCloudStorageFailure() { */ public com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder getCloudStorageFailureBuilder() { - return getCloudStorageFailureFieldBuilder().getBuilder(); + return internalGetCloudStorageFailureFieldBuilder().getBuilder(); } /** @@ -15690,18 +15262,18 @@ public Builder clearCloudStorageFailure() { * .google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure cloud_storage_failure = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder> - getCloudStorageFailureFieldBuilder() { + internalGetCloudStorageFailureFieldBuilder() { if (cloudStorageFailureBuilder_ == null) { if (!(failureCase_ == 3)) { failure_ = com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.getDefaultInstance(); } cloudStorageFailureBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure, com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailure.Builder, com.google.pubsub.v1.IngestionFailureEvent.CloudStorageFailureOrBuilder>( @@ -15715,7 +15287,7 @@ public Builder clearCloudStorageFailure() { return cloudStorageFailureBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder> @@ -15895,7 +15467,7 @@ public Builder clearAwsMskFailure() { */ public com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder getAwsMskFailureBuilder() { - return getAwsMskFailureFieldBuilder().getBuilder(); + return internalGetAwsMskFailureFieldBuilder().getBuilder(); } /** @@ -15933,18 +15505,18 @@ public Builder clearAwsMskFailure() { * .google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason aws_msk_failure = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder> - getAwsMskFailureFieldBuilder() { + internalGetAwsMskFailureFieldBuilder() { if (awsMskFailureBuilder_ == null) { if (!(failureCase_ == 4)) { failure_ = com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.getDefaultInstance(); } awsMskFailureBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AwsMskFailureReasonOrBuilder>( @@ -15958,7 +15530,7 @@ public Builder clearAwsMskFailure() { return awsMskFailureBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder> @@ -16143,7 +15715,7 @@ public Builder clearAzureEventHubsFailure() { */ public com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder getAzureEventHubsFailureBuilder() { - return getAzureEventHubsFailureFieldBuilder().getBuilder(); + return internalGetAzureEventHubsFailureFieldBuilder().getBuilder(); } /** @@ -16182,11 +15754,11 @@ public Builder clearAzureEventHubsFailure() { * .google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason azure_event_hubs_failure = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder> - getAzureEventHubsFailureFieldBuilder() { + internalGetAzureEventHubsFailureFieldBuilder() { if (azureEventHubsFailureBuilder_ == null) { if (!(failureCase_ == 5)) { failure_ = @@ -16194,7 +15766,7 @@ public Builder clearAzureEventHubsFailure() { .getDefaultInstance(); } azureEventHubsFailureBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AzureEventHubsFailureReasonOrBuilder>( @@ -16208,7 +15780,7 @@ public Builder clearAzureEventHubsFailure() { return azureEventHubsFailureBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason, com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder> @@ -16393,7 +15965,7 @@ public Builder clearConfluentCloudFailure() { */ public com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder getConfluentCloudFailureBuilder() { - return getConfluentCloudFailureFieldBuilder().getBuilder(); + return internalGetConfluentCloudFailureFieldBuilder().getBuilder(); } /** @@ -16432,11 +16004,11 @@ public Builder clearConfluentCloudFailure() { * .google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason confluent_cloud_failure = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason, com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder> - getConfluentCloudFailureFieldBuilder() { + internalGetConfluentCloudFailureFieldBuilder() { if (confluentCloudFailureBuilder_ == null) { if (!(failureCase_ == 6)) { failure_ = @@ -16444,7 +16016,7 @@ public Builder clearConfluentCloudFailure() { .getDefaultInstance(); } confluentCloudFailureBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason, com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.ConfluentCloudFailureReasonOrBuilder>( @@ -16458,7 +16030,7 @@ public Builder clearConfluentCloudFailure() { return confluentCloudFailureBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder> @@ -16642,7 +16214,7 @@ public Builder clearAwsKinesisFailure() { */ public com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder getAwsKinesisFailureBuilder() { - return getAwsKinesisFailureFieldBuilder().getBuilder(); + return internalGetAwsKinesisFailureFieldBuilder().getBuilder(); } /** @@ -16681,11 +16253,11 @@ public Builder clearAwsKinesisFailure() { * .google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason aws_kinesis_failure = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder> - getAwsKinesisFailureFieldBuilder() { + internalGetAwsKinesisFailureFieldBuilder() { if (awsKinesisFailureBuilder_ == null) { if (!(failureCase_ == 7)) { failure_ = @@ -16693,7 +16265,7 @@ public Builder clearAwsKinesisFailure() { .getDefaultInstance(); } awsKinesisFailureBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason, com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReason.Builder, com.google.pubsub.v1.IngestionFailureEvent.AwsKinesisFailureReasonOrBuilder>( @@ -16707,17 +16279,6 @@ public Builder clearAwsKinesisFailure() { return awsKinesisFailureBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.IngestionFailureEvent) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java index d251ce95c60a..3fe15ccd9b04 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/IngestionFailureEventOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface IngestionFailureEventOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.IngestionFailureEvent) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java index 89247115d379..18ac95eb0449 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDF.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -29,14 +30,25 @@ * * Protobuf type {@code google.pubsub.v1.JavaScriptUDF} */ -public final class JavaScriptUDF extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class JavaScriptUDF extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.JavaScriptUDF) JavaScriptUDFOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "JavaScriptUDF"); + } + // Use JavaScriptUDF.newBuilder() to construct. - private JavaScriptUDF(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private JavaScriptUDF(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -45,19 +57,13 @@ private JavaScriptUDF() { code_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new JavaScriptUDF(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable @@ -134,31 +140,31 @@ public com.google.protobuf.ByteString getFunctionNameBytes() { * below signature: * * ``` - * /** - * * Transforms a Pub/Sub message. + * /** + * * Transforms a Pub/Sub message. * - * * @return {(Object<string, (string | Object<string, string>)>|null)} - To - * * filter a message, return `null`. To transform a message return a map - * * with the following keys: - * * - (required) 'data' : {string} - * * - (optional) 'attributes' : {Object<string, string>} - * * Returning empty `attributes` will remove all attributes from the - * * message. - * * - * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub - * * message. Keys: - * * - (required) 'data' : {string} - * * - (required) 'attributes' : {Object<string, string>} - * * - * * @param {Object<string, any>} metadata - Pub/Sub message metadata. - * * Keys: - * * - (optional) 'message_id' : {string} - * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format - * * - (optional) 'ordering_key': {string} - * */ + * * @return {(Object<string, (string | Object<string, string>)>|null)} - To + * * filter a message, return `null`. To transform a message return a map + * * with the following keys: + * * - (required) 'data' : {string} + * * - (optional) 'attributes' : {Object<string, string>} + * * Returning empty `attributes` will remove all attributes from the + * * message. + * * + * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub + * * message. Keys: + * * - (required) 'data' : {string} + * * - (required) 'attributes' : {Object<string, string>} + * * + * * @param {Object<string, any>} metadata - Pub/Sub message metadata. + * * Keys: + * * - (optional) 'message_id' : {string} + * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + * * - (optional) 'ordering_key': {string} + * */ * - * function <function_name>(message, metadata) { - * } + * function <function_name>(message, metadata) { + * } * ``` * * @@ -187,31 +193,31 @@ public java.lang.String getCode() { * below signature: * * ``` - * /** - * * Transforms a Pub/Sub message. + * /** + * * Transforms a Pub/Sub message. * - * * @return {(Object<string, (string | Object<string, string>)>|null)} - To - * * filter a message, return `null`. To transform a message return a map - * * with the following keys: - * * - (required) 'data' : {string} - * * - (optional) 'attributes' : {Object<string, string>} - * * Returning empty `attributes` will remove all attributes from the - * * message. - * * - * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub - * * message. Keys: - * * - (required) 'data' : {string} - * * - (required) 'attributes' : {Object<string, string>} - * * - * * @param {Object<string, any>} metadata - Pub/Sub message metadata. - * * Keys: - * * - (optional) 'message_id' : {string} - * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format - * * - (optional) 'ordering_key': {string} - * */ + * * @return {(Object<string, (string | Object<string, string>)>|null)} - To + * * filter a message, return `null`. To transform a message return a map + * * with the following keys: + * * - (required) 'data' : {string} + * * - (optional) 'attributes' : {Object<string, string>} + * * Returning empty `attributes` will remove all attributes from the + * * message. + * * + * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub + * * message. Keys: + * * - (required) 'data' : {string} + * * - (required) 'attributes' : {Object<string, string>} + * * + * * @param {Object<string, any>} metadata - Pub/Sub message metadata. + * * Keys: + * * - (optional) 'message_id' : {string} + * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + * * - (optional) 'ordering_key': {string} + * */ * - * function <function_name>(message, metadata) { - * } + * function <function_name>(message, metadata) { + * } * ``` * * @@ -246,11 +252,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionName_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(functionName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, functionName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, code_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, code_); } getUnknownFields().writeTo(output); } @@ -261,11 +267,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionName_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(functionName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, functionName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, code_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(code_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, code_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -340,38 +346,38 @@ public static com.google.pubsub.v1.JavaScriptUDF parseFrom( public static com.google.pubsub.v1.JavaScriptUDF parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.JavaScriptUDF parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.JavaScriptUDF parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.JavaScriptUDF parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.JavaScriptUDF parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.JavaScriptUDF parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -394,7 +400,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -409,7 +415,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.JavaScriptUDF} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.JavaScriptUDF) com.google.pubsub.v1.JavaScriptUDFOrBuilder { @@ -419,7 +425,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable @@ -431,7 +437,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.JavaScriptUDF.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -484,39 +490,6 @@ private void buildPartial0(com.google.pubsub.v1.JavaScriptUDF result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.JavaScriptUDF) { @@ -722,31 +695,31 @@ public Builder setFunctionNameBytes(com.google.protobuf.ByteString value) { * below signature: * * ``` - * /** - * * Transforms a Pub/Sub message. - * - * * @return {(Object<string, (string | Object<string, string>)>|null)} - To - * * filter a message, return `null`. To transform a message return a map - * * with the following keys: - * * - (required) 'data' : {string} - * * - (optional) 'attributes' : {Object<string, string>} - * * Returning empty `attributes` will remove all attributes from the - * * message. - * * - * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub - * * message. Keys: - * * - (required) 'data' : {string} - * * - (required) 'attributes' : {Object<string, string>} - * * - * * @param {Object<string, any>} metadata - Pub/Sub message metadata. - * * Keys: - * * - (optional) 'message_id' : {string} - * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format - * * - (optional) 'ordering_key': {string} - * */ - * - * function <function_name>(message, metadata) { - * } + * /** + * * Transforms a Pub/Sub message. + * + * * @return {(Object<string, (string | Object<string, string>)>|null)} - To + * * filter a message, return `null`. To transform a message return a map + * * with the following keys: + * * - (required) 'data' : {string} + * * - (optional) 'attributes' : {Object<string, string>} + * * Returning empty `attributes` will remove all attributes from the + * * message. + * * + * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub + * * message. Keys: + * * - (required) 'data' : {string} + * * - (required) 'attributes' : {Object<string, string>} + * * + * * @param {Object<string, any>} metadata - Pub/Sub message metadata. + * * Keys: + * * - (optional) 'message_id' : {string} + * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + * * - (optional) 'ordering_key': {string} + * */ + * + * function <function_name>(message, metadata) { + * } * ``` * * @@ -774,31 +747,31 @@ public java.lang.String getCode() { * below signature: * * ``` - * /** - * * Transforms a Pub/Sub message. - * - * * @return {(Object<string, (string | Object<string, string>)>|null)} - To - * * filter a message, return `null`. To transform a message return a map - * * with the following keys: - * * - (required) 'data' : {string} - * * - (optional) 'attributes' : {Object<string, string>} - * * Returning empty `attributes` will remove all attributes from the - * * message. - * * - * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub - * * message. Keys: - * * - (required) 'data' : {string} - * * - (required) 'attributes' : {Object<string, string>} - * * - * * @param {Object<string, any>} metadata - Pub/Sub message metadata. - * * Keys: - * * - (optional) 'message_id' : {string} - * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format - * * - (optional) 'ordering_key': {string} - * */ - * - * function <function_name>(message, metadata) { - * } + * /** + * * Transforms a Pub/Sub message. + * + * * @return {(Object<string, (string | Object<string, string>)>|null)} - To + * * filter a message, return `null`. To transform a message return a map + * * with the following keys: + * * - (required) 'data' : {string} + * * - (optional) 'attributes' : {Object<string, string>} + * * Returning empty `attributes` will remove all attributes from the + * * message. + * * + * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub + * * message. Keys: + * * - (required) 'data' : {string} + * * - (required) 'attributes' : {Object<string, string>} + * * + * * @param {Object<string, any>} metadata - Pub/Sub message metadata. + * * Keys: + * * - (optional) 'message_id' : {string} + * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + * * - (optional) 'ordering_key': {string} + * */ + * + * function <function_name>(message, metadata) { + * } * ``` * * @@ -826,31 +799,31 @@ public com.google.protobuf.ByteString getCodeBytes() { * below signature: * * ``` - * /** - * * Transforms a Pub/Sub message. - * - * * @return {(Object<string, (string | Object<string, string>)>|null)} - To - * * filter a message, return `null`. To transform a message return a map - * * with the following keys: - * * - (required) 'data' : {string} - * * - (optional) 'attributes' : {Object<string, string>} - * * Returning empty `attributes` will remove all attributes from the - * * message. - * * - * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub - * * message. Keys: - * * - (required) 'data' : {string} - * * - (required) 'attributes' : {Object<string, string>} - * * - * * @param {Object<string, any>} metadata - Pub/Sub message metadata. - * * Keys: - * * - (optional) 'message_id' : {string} - * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format - * * - (optional) 'ordering_key': {string} - * */ - * - * function <function_name>(message, metadata) { - * } + * /** + * * Transforms a Pub/Sub message. + * + * * @return {(Object<string, (string | Object<string, string>)>|null)} - To + * * filter a message, return `null`. To transform a message return a map + * * with the following keys: + * * - (required) 'data' : {string} + * * - (optional) 'attributes' : {Object<string, string>} + * * Returning empty `attributes` will remove all attributes from the + * * message. + * * + * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub + * * message. Keys: + * * - (required) 'data' : {string} + * * - (required) 'attributes' : {Object<string, string>} + * * + * * @param {Object<string, any>} metadata - Pub/Sub message metadata. + * * Keys: + * * - (optional) 'message_id' : {string} + * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + * * - (optional) 'ordering_key': {string} + * */ + * + * function <function_name>(message, metadata) { + * } * ``` * * @@ -877,31 +850,31 @@ public Builder setCode(java.lang.String value) { * below signature: * * ``` - * /** - * * Transforms a Pub/Sub message. - * - * * @return {(Object<string, (string | Object<string, string>)>|null)} - To - * * filter a message, return `null`. To transform a message return a map - * * with the following keys: - * * - (required) 'data' : {string} - * * - (optional) 'attributes' : {Object<string, string>} - * * Returning empty `attributes` will remove all attributes from the - * * message. - * * - * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub - * * message. Keys: - * * - (required) 'data' : {string} - * * - (required) 'attributes' : {Object<string, string>} - * * - * * @param {Object<string, any>} metadata - Pub/Sub message metadata. - * * Keys: - * * - (optional) 'message_id' : {string} - * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format - * * - (optional) 'ordering_key': {string} - * */ - * - * function <function_name>(message, metadata) { - * } + * /** + * * Transforms a Pub/Sub message. + * + * * @return {(Object<string, (string | Object<string, string>)>|null)} - To + * * filter a message, return `null`. To transform a message return a map + * * with the following keys: + * * - (required) 'data' : {string} + * * - (optional) 'attributes' : {Object<string, string>} + * * Returning empty `attributes` will remove all attributes from the + * * message. + * * + * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub + * * message. Keys: + * * - (required) 'data' : {string} + * * - (required) 'attributes' : {Object<string, string>} + * * + * * @param {Object<string, any>} metadata - Pub/Sub message metadata. + * * Keys: + * * - (optional) 'message_id' : {string} + * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + * * - (optional) 'ordering_key': {string} + * */ + * + * function <function_name>(message, metadata) { + * } * ``` * * @@ -924,31 +897,31 @@ public Builder clearCode() { * below signature: * * ``` - * /** - * * Transforms a Pub/Sub message. - * - * * @return {(Object<string, (string | Object<string, string>)>|null)} - To - * * filter a message, return `null`. To transform a message return a map - * * with the following keys: - * * - (required) 'data' : {string} - * * - (optional) 'attributes' : {Object<string, string>} - * * Returning empty `attributes` will remove all attributes from the - * * message. - * * - * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub - * * message. Keys: - * * - (required) 'data' : {string} - * * - (required) 'attributes' : {Object<string, string>} - * * - * * @param {Object<string, any>} metadata - Pub/Sub message metadata. - * * Keys: - * * - (optional) 'message_id' : {string} - * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format - * * - (optional) 'ordering_key': {string} - * */ - * - * function <function_name>(message, metadata) { - * } + * /** + * * Transforms a Pub/Sub message. + * + * * @return {(Object<string, (string | Object<string, string>)>|null)} - To + * * filter a message, return `null`. To transform a message return a map + * * with the following keys: + * * - (required) 'data' : {string} + * * - (optional) 'attributes' : {Object<string, string>} + * * Returning empty `attributes` will remove all attributes from the + * * message. + * * + * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub + * * message. Keys: + * * - (required) 'data' : {string} + * * - (required) 'attributes' : {Object<string, string>} + * * + * * @param {Object<string, any>} metadata - Pub/Sub message metadata. + * * Keys: + * * - (optional) 'message_id' : {string} + * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + * * - (optional) 'ordering_key': {string} + * */ + * + * function <function_name>(message, metadata) { + * } * ``` * * @@ -968,17 +941,6 @@ public Builder setCodeBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.JavaScriptUDF) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java index 7a7ab67c5c67..9e60471bffdb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/JavaScriptUDFOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface JavaScriptUDFOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.JavaScriptUDF) @@ -60,31 +62,31 @@ public interface JavaScriptUDFOrBuilder * below signature: * * ``` - * /** - * * Transforms a Pub/Sub message. - * - * * @return {(Object<string, (string | Object<string, string>)>|null)} - To - * * filter a message, return `null`. To transform a message return a map - * * with the following keys: - * * - (required) 'data' : {string} - * * - (optional) 'attributes' : {Object<string, string>} - * * Returning empty `attributes` will remove all attributes from the - * * message. - * * - * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub - * * message. Keys: - * * - (required) 'data' : {string} - * * - (required) 'attributes' : {Object<string, string>} - * * - * * @param {Object<string, any>} metadata - Pub/Sub message metadata. - * * Keys: - * * - (optional) 'message_id' : {string} - * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format - * * - (optional) 'ordering_key': {string} - * */ - * - * function <function_name>(message, metadata) { - * } + * /** + * * Transforms a Pub/Sub message. + * + * * @return {(Object<string, (string | Object<string, string>)>|null)} - To + * * filter a message, return `null`. To transform a message return a map + * * with the following keys: + * * - (required) 'data' : {string} + * * - (optional) 'attributes' : {Object<string, string>} + * * Returning empty `attributes` will remove all attributes from the + * * message. + * * + * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub + * * message. Keys: + * * - (required) 'data' : {string} + * * - (required) 'attributes' : {Object<string, string>} + * * + * * @param {Object<string, any>} metadata - Pub/Sub message metadata. + * * Keys: + * * - (optional) 'message_id' : {string} + * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + * * - (optional) 'ordering_key': {string} + * */ + * + * function <function_name>(message, metadata) { + * } * ``` * * @@ -102,31 +104,31 @@ public interface JavaScriptUDFOrBuilder * below signature: * * ``` - * /** - * * Transforms a Pub/Sub message. - * - * * @return {(Object<string, (string | Object<string, string>)>|null)} - To - * * filter a message, return `null`. To transform a message return a map - * * with the following keys: - * * - (required) 'data' : {string} - * * - (optional) 'attributes' : {Object<string, string>} - * * Returning empty `attributes` will remove all attributes from the - * * message. - * * - * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub - * * message. Keys: - * * - (required) 'data' : {string} - * * - (required) 'attributes' : {Object<string, string>} - * * - * * @param {Object<string, any>} metadata - Pub/Sub message metadata. - * * Keys: - * * - (optional) 'message_id' : {string} - * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format - * * - (optional) 'ordering_key': {string} - * */ - * - * function <function_name>(message, metadata) { - * } + * /** + * * Transforms a Pub/Sub message. + * + * * @return {(Object<string, (string | Object<string, string>)>|null)} - To + * * filter a message, return `null`. To transform a message return a map + * * with the following keys: + * * - (required) 'data' : {string} + * * - (optional) 'attributes' : {Object<string, string>} + * * Returning empty `attributes` will remove all attributes from the + * * message. + * * + * * @param {(Object<string, (string | Object<string, string>)>} Pub/Sub + * * message. Keys: + * * - (required) 'data' : {string} + * * - (required) 'attributes' : {Object<string, string>} + * * + * * @param {Object<string, any>} metadata - Pub/Sub message metadata. + * * Keys: + * * - (optional) 'message_id' : {string} + * * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format + * * - (optional) 'ordering_key': {string} + * */ + * + * function <function_name>(message, metadata) { + * } * ``` * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java index 42838105b480..f2a56f7b8bfc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsRequest} */ -public final class ListSchemaRevisionsRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListSchemaRevisionsRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsRequest) ListSchemaRevisionsRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSchemaRevisionsRequest"); + } + // Use ListSchemaRevisionsRequest.newBuilder() to construct. - private ListSchemaRevisionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSchemaRevisionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -45,19 +57,13 @@ private ListSchemaRevisionsRequest() { pageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListSchemaRevisionsRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable @@ -251,8 +257,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, view_); @@ -260,8 +266,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); } getUnknownFields().writeTo(output); } @@ -272,8 +278,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); @@ -281,8 +287,8 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -365,38 +371,38 @@ public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemaRevisionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -419,7 +425,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -433,7 +439,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemaRevisionsRequest) com.google.pubsub.v1.ListSchemaRevisionsRequestOrBuilder { @@ -443,7 +449,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable @@ -455,7 +461,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListSchemaRevisionsRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -517,39 +523,6 @@ private void buildPartial0(com.google.pubsub.v1.ListSchemaRevisionsRequest resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSchemaRevisionsRequest) { @@ -1045,17 +1018,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemaRevisionsRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java index c219edbf2cc8..5145cce90b7c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListSchemaRevisionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemaRevisionsRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java index 35ad88ea7b38..c9bda70eecb8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsResponse} */ -public final class ListSchemaRevisionsResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListSchemaRevisionsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemaRevisionsResponse) ListSchemaRevisionsResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSchemaRevisionsResponse"); + } + // Use ListSchemaRevisionsResponse.newBuilder() to construct. - private ListSchemaRevisionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSchemaRevisionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListSchemaRevisionsResponse() { nextPageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListSchemaRevisionsResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable @@ -212,8 +218,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < schemas_.size(); i++) { output.writeMessage(1, schemas_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); } getUnknownFields().writeTo(output); } @@ -227,8 +233,8 @@ public int getSerializedSize() { for (int i = 0; i < schemas_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -307,38 +313,38 @@ public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemaRevisionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -361,7 +367,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -375,7 +381,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListSchemaRevisionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemaRevisionsResponse) com.google.pubsub.v1.ListSchemaRevisionsResponseOrBuilder { @@ -385,7 +391,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable @@ -397,7 +403,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListSchemaRevisionsResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -468,39 +474,6 @@ private void buildPartial0(com.google.pubsub.v1.ListSchemaRevisionsResponse resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSchemaRevisionsResponse) { @@ -533,8 +506,8 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemaRevisionsResponse other) schemas_ = other.schemas_; bitField0_ = (bitField0_ & ~0x00000001); schemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSchemasFieldBuilder() + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSchemasFieldBuilder() : null; } else { schemasBuilder_.addAllMessages(other.schemas_); @@ -619,7 +592,7 @@ private void ensureSchemasIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> @@ -875,7 +848,7 @@ public Builder removeSchemas(int index) { * repeated .google.pubsub.v1.Schema schemas = 1; */ public com.google.pubsub.v1.Schema.Builder getSchemasBuilder(int index) { - return getSchemasFieldBuilder().getBuilder(index); + return internalGetSchemasFieldBuilder().getBuilder(index); } /** @@ -923,7 +896,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { * repeated .google.pubsub.v1.Schema schemas = 1; */ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder() { - return getSchemasFieldBuilder().addBuilder(com.google.pubsub.v1.Schema.getDefaultInstance()); + return internalGetSchemasFieldBuilder() + .addBuilder(com.google.pubsub.v1.Schema.getDefaultInstance()); } /** @@ -936,7 +910,7 @@ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder() { * repeated .google.pubsub.v1.Schema schemas = 1; */ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder(int index) { - return getSchemasFieldBuilder() + return internalGetSchemasFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Schema.getDefaultInstance()); } @@ -950,17 +924,17 @@ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder(int index) { * repeated .google.pubsub.v1.Schema schemas = 1; */ public java.util.List getSchemasBuilderList() { - return getSchemasFieldBuilder().getBuilderList(); + return internalGetSchemasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> - getSchemasFieldBuilder() { + internalGetSchemasFieldBuilder() { if (schemasBuilder_ == null) { schemasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< + new com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( @@ -1086,17 +1060,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemaRevisionsResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java index 2cf0fb260ae1..5e423029e431 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemaRevisionsResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListSchemaRevisionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemaRevisionsResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java index f6ccfff1b0ad..20c5c2c1d21b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListSchemasRequest} */ -public final class ListSchemasRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListSchemasRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasRequest) ListSchemasRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSchemasRequest"); + } + // Use ListSchemasRequest.newBuilder() to construct. - private ListSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSchemasRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -45,19 +57,13 @@ private ListSchemasRequest() { pageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListSchemasRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable @@ -255,8 +261,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, view_); @@ -264,8 +270,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); } getUnknownFields().writeTo(output); } @@ -276,8 +282,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); } if (view_ != com.google.pubsub.v1.SchemaView.SCHEMA_VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); @@ -285,8 +291,8 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -368,38 +374,38 @@ public static com.google.pubsub.v1.ListSchemasRequest parseFrom( public static com.google.pubsub.v1.ListSchemasRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemasRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSchemasRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemasRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSchemasRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemasRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -422,7 +428,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -436,7 +442,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListSchemasRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemasRequest) com.google.pubsub.v1.ListSchemasRequestOrBuilder { @@ -446,7 +452,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable @@ -458,7 +464,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListSchemasRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -520,39 +526,6 @@ private void buildPartial0(com.google.pubsub.v1.ListSchemasRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSchemasRequest) { @@ -1057,17 +1030,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemasRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java index 90a678059b3c..ae335367a0bb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListSchemasRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemasRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java index 78fd83151d01..1b34d265179f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListSchemasResponse} */ -public final class ListSchemasResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListSchemasResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSchemasResponse) ListSchemasResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSchemasResponse"); + } + // Use ListSchemasResponse.newBuilder() to construct. - private ListSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSchemasResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListSchemasResponse() { nextPageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListSchemasResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable @@ -212,8 +218,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < schemas_.size(); i++) { output.writeMessage(1, schemas_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); } getUnknownFields().writeTo(output); } @@ -227,8 +233,8 @@ public int getSerializedSize() { for (int i = 0; i < schemas_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemas_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,38 +312,38 @@ public static com.google.pubsub.v1.ListSchemasResponse parseFrom( public static com.google.pubsub.v1.ListSchemasResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemasResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSchemasResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemasResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSchemasResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSchemasResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -360,7 +366,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -374,7 +380,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListSchemasResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSchemasResponse) com.google.pubsub.v1.ListSchemasResponseOrBuilder { @@ -384,7 +390,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable @@ -396,7 +402,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListSchemasResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -466,39 +472,6 @@ private void buildPartial0(com.google.pubsub.v1.ListSchemasResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSchemasResponse) { @@ -530,8 +503,8 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSchemasResponse other) { schemas_ = other.schemas_; bitField0_ = (bitField0_ & ~0x00000001); schemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSchemasFieldBuilder() + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSchemasFieldBuilder() : null; } else { schemasBuilder_.addAllMessages(other.schemas_); @@ -616,7 +589,7 @@ private void ensureSchemasIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> @@ -872,7 +845,7 @@ public Builder removeSchemas(int index) { * repeated .google.pubsub.v1.Schema schemas = 1; */ public com.google.pubsub.v1.Schema.Builder getSchemasBuilder(int index) { - return getSchemasFieldBuilder().getBuilder(index); + return internalGetSchemasFieldBuilder().getBuilder(index); } /** @@ -920,7 +893,8 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemasOrBuilder(int index) { * repeated .google.pubsub.v1.Schema schemas = 1; */ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder() { - return getSchemasFieldBuilder().addBuilder(com.google.pubsub.v1.Schema.getDefaultInstance()); + return internalGetSchemasFieldBuilder() + .addBuilder(com.google.pubsub.v1.Schema.getDefaultInstance()); } /** @@ -933,7 +907,7 @@ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder() { * repeated .google.pubsub.v1.Schema schemas = 1; */ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder(int index) { - return getSchemasFieldBuilder() + return internalGetSchemasFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Schema.getDefaultInstance()); } @@ -947,17 +921,17 @@ public com.google.pubsub.v1.Schema.Builder addSchemasBuilder(int index) { * repeated .google.pubsub.v1.Schema schemas = 1; */ public java.util.List getSchemasBuilderList() { - return getSchemasFieldBuilder().getBuilderList(); + return internalGetSchemasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> - getSchemasFieldBuilder() { + internalGetSchemasFieldBuilder() { if (schemasBuilder_ == null) { schemasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< + new com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( @@ -1083,17 +1057,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSchemasResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java index 8c3fba55a723..5631cbf6ed5d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSchemasResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListSchemasResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSchemasResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java index d56a4a719db8..f25cd5e2ee8f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} */ -public final class ListSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListSnapshotsRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsRequest) ListSnapshotsRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSnapshotsRequest"); + } + // Use ListSnapshotsRequest.newBuilder() to construct. - private ListSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSnapshotsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListSnapshotsRequest() { pageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListSnapshotsRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable @@ -214,14 +220,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, project_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); } getUnknownFields().writeTo(output); } @@ -232,14 +238,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, project_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -319,38 +325,38 @@ public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSnapshotsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSnapshotsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -373,7 +379,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -387,7 +393,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListSnapshotsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSnapshotsRequest) com.google.pubsub.v1.ListSnapshotsRequestOrBuilder { @@ -397,7 +403,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable @@ -409,7 +415,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListSnapshotsRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -467,39 +473,6 @@ private void buildPartial0(com.google.pubsub.v1.ListSnapshotsRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSnapshotsRequest) { @@ -891,17 +864,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSnapshotsRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java index 47d596cba53c..b51ea89abdec 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListSnapshotsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java index 5600f79dc8e2..5c4719949f50 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} */ -public final class ListSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListSnapshotsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSnapshotsResponse) ListSnapshotsResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSnapshotsResponse"); + } + // Use ListSnapshotsResponse.newBuilder() to construct. - private ListSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSnapshotsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListSnapshotsResponse() { nextPageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListSnapshotsResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable @@ -225,8 +231,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < snapshots_.size(); i++) { output.writeMessage(1, snapshots_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); } getUnknownFields().writeTo(output); } @@ -240,8 +246,8 @@ public int getSerializedSize() { for (int i = 0; i < snapshots_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snapshots_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -320,38 +326,38 @@ public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSnapshotsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSnapshotsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -374,7 +380,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -388,7 +394,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListSnapshotsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSnapshotsResponse) com.google.pubsub.v1.ListSnapshotsResponseOrBuilder { @@ -398,7 +404,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable @@ -410,7 +416,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListSnapshotsResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -480,39 +486,6 @@ private void buildPartial0(com.google.pubsub.v1.ListSnapshotsResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSnapshotsResponse) { @@ -544,8 +517,8 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSnapshotsResponse other) { snapshots_ = other.snapshots_; bitField0_ = (bitField0_ & ~0x00000001); snapshotsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSnapshotsFieldBuilder() + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSnapshotsFieldBuilder() : null; } else { snapshotsBuilder_.addAllMessages(other.snapshots_); @@ -630,7 +603,7 @@ private void ensureSnapshotsIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> @@ -913,7 +886,7 @@ public Builder removeSnapshots(int index) { * */ public com.google.pubsub.v1.Snapshot.Builder getSnapshotsBuilder(int index) { - return getSnapshotsFieldBuilder().getBuilder(index); + return internalGetSnapshotsFieldBuilder().getBuilder(index); } /** @@ -967,7 +940,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotsOrBuilder(int index) { * */ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { - return getSnapshotsFieldBuilder() + return internalGetSnapshotsFieldBuilder() .addBuilder(com.google.pubsub.v1.Snapshot.getDefaultInstance()); } @@ -983,7 +956,7 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder() { * */ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { - return getSnapshotsFieldBuilder() + return internalGetSnapshotsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Snapshot.getDefaultInstance()); } @@ -999,17 +972,17 @@ public com.google.pubsub.v1.Snapshot.Builder addSnapshotsBuilder(int index) { * */ public java.util.List getSnapshotsBuilderList() { - return getSnapshotsFieldBuilder().getBuilderList(); + return internalGetSnapshotsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> - getSnapshotsFieldBuilder() { + internalGetSnapshotsFieldBuilder() { if (snapshotsBuilder_ == null) { snapshotsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< + new com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( @@ -1140,17 +1113,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSnapshotsResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java index 9e17810b94a6..ec4643a061b7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSnapshotsResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListSnapshotsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSnapshotsResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java index e9bd5fcc9a75..c1e4ddcb15b6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListSubscriptionsRequest} */ -public final class ListSubscriptionsRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListSubscriptionsRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsRequest) ListSubscriptionsRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSubscriptionsRequest"); + } + // Use ListSubscriptionsRequest.newBuilder() to construct. - private ListSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSubscriptionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListSubscriptionsRequest() { pageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListSubscriptionsRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable @@ -214,14 +220,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, project_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); } getUnknownFields().writeTo(output); } @@ -232,14 +238,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, project_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -319,38 +325,38 @@ public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSubscriptionsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSubscriptionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -373,7 +379,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -387,7 +393,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListSubscriptionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSubscriptionsRequest) com.google.pubsub.v1.ListSubscriptionsRequestOrBuilder { @@ -397,7 +403,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable @@ -409,7 +415,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListSubscriptionsRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -467,39 +473,6 @@ private void buildPartial0(com.google.pubsub.v1.ListSubscriptionsRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSubscriptionsRequest) { @@ -891,17 +864,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSubscriptionsRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java index 61bbb606d436..85908081b444 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListSubscriptionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSubscriptionsRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java index ac7bfb9f2825..44acf2f2d261 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListSubscriptionsResponse} */ -public final class ListSubscriptionsResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListSubscriptionsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListSubscriptionsResponse) ListSubscriptionsResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListSubscriptionsResponse"); + } + // Use ListSubscriptionsResponse.newBuilder() to construct. - private ListSubscriptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListSubscriptionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListSubscriptionsResponse() { nextPageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListSubscriptionsResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable @@ -225,8 +231,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < subscriptions_.size(); i++) { output.writeMessage(1, subscriptions_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); } getUnknownFields().writeTo(output); } @@ -240,8 +246,8 @@ public int getSerializedSize() { for (int i = 0; i < subscriptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, subscriptions_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -320,38 +326,38 @@ public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSubscriptionsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListSubscriptionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -374,7 +380,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -388,7 +394,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListSubscriptionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListSubscriptionsResponse) com.google.pubsub.v1.ListSubscriptionsResponseOrBuilder { @@ -398,7 +404,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable @@ -410,7 +416,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListSubscriptionsResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -480,39 +486,6 @@ private void buildPartial0(com.google.pubsub.v1.ListSubscriptionsResponse result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListSubscriptionsResponse) { @@ -544,8 +517,8 @@ public Builder mergeFrom(com.google.pubsub.v1.ListSubscriptionsResponse other) { subscriptions_ = other.subscriptions_; bitField0_ = (bitField0_ & ~0x00000001); subscriptionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSubscriptionsFieldBuilder() + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSubscriptionsFieldBuilder() : null; } else { subscriptionsBuilder_.addAllMessages(other.subscriptions_); @@ -631,7 +604,7 @@ private void ensureSubscriptionsIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> @@ -916,7 +889,7 @@ public Builder removeSubscriptions(int index) { * */ public com.google.pubsub.v1.Subscription.Builder getSubscriptionsBuilder(int index) { - return getSubscriptionsFieldBuilder().getBuilder(index); + return internalGetSubscriptionsFieldBuilder().getBuilder(index); } /** @@ -970,7 +943,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionsOrBuilder(int * */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { - return getSubscriptionsFieldBuilder() + return internalGetSubscriptionsFieldBuilder() .addBuilder(com.google.pubsub.v1.Subscription.getDefaultInstance()); } @@ -986,7 +959,7 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder() { * */ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int index) { - return getSubscriptionsFieldBuilder() + return internalGetSubscriptionsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Subscription.getDefaultInstance()); } @@ -1002,17 +975,17 @@ public com.google.pubsub.v1.Subscription.Builder addSubscriptionsBuilder(int ind * */ public java.util.List getSubscriptionsBuilderList() { - return getSubscriptionsFieldBuilder().getBuilderList(); + return internalGetSubscriptionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> - getSubscriptionsFieldBuilder() { + internalGetSubscriptionsFieldBuilder() { if (subscriptionsBuilder_ == null) { subscriptionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< + new com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( @@ -1146,17 +1119,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListSubscriptionsResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java index a4db2bf03023..55129e3017ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListSubscriptionsResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListSubscriptionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListSubscriptionsResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java index e30b2affc930..0293fb6de812 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest} */ -public final class ListTopicSnapshotsRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListTopicSnapshotsRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsRequest) ListTopicSnapshotsRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListTopicSnapshotsRequest"); + } + // Use ListTopicSnapshotsRequest.newBuilder() to construct. - private ListTopicSnapshotsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTopicSnapshotsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListTopicSnapshotsRequest() { pageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTopicSnapshotsRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable @@ -214,14 +220,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, topic_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); } getUnknownFields().writeTo(output); } @@ -232,14 +238,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, topic_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -319,38 +325,38 @@ public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSnapshotsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -373,7 +379,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -387,7 +393,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSnapshotsRequest) com.google.pubsub.v1.ListTopicSnapshotsRequestOrBuilder { @@ -397,7 +403,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable @@ -409,7 +415,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListTopicSnapshotsRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -467,39 +473,6 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicSnapshotsRequest result } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsRequest) { @@ -891,17 +864,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSnapshotsRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java index a82f8a690e05..bdddb1f3d5fe 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListTopicSnapshotsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSnapshotsRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java index ba7785807184..5f7ba185069b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse} */ -public final class ListTopicSnapshotsResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListTopicSnapshotsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSnapshotsResponse) ListTopicSnapshotsResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListTopicSnapshotsResponse"); + } + // Use ListTopicSnapshotsResponse.newBuilder() to construct. - private ListTopicSnapshotsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTopicSnapshotsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListTopicSnapshotsResponse() { nextPageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTopicSnapshotsResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable @@ -213,10 +219,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < snapshots_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshots_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, snapshots_.getRaw(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); } getUnknownFields().writeTo(output); } @@ -235,8 +241,8 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSnapshotsList().size(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -315,38 +321,38 @@ public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSnapshotsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -369,7 +375,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -383,7 +389,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListTopicSnapshotsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSnapshotsResponse) com.google.pubsub.v1.ListTopicSnapshotsResponseOrBuilder { @@ -393,7 +399,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable @@ -405,7 +411,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListTopicSnapshotsResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -460,39 +466,6 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicSnapshotsResponse resul } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSnapshotsResponse) { @@ -901,17 +874,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSnapshotsResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java index cb4cbbc6b771..25382f4f19a0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSnapshotsResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListTopicSnapshotsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSnapshotsResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java index 5ee6fbb1ea2d..be6c24a9955a 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsRequest} */ -public final class ListTopicSubscriptionsRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListTopicSubscriptionsRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsRequest) ListTopicSubscriptionsRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListTopicSubscriptionsRequest"); + } + // Use ListTopicSubscriptionsRequest.newBuilder() to construct. - private ListTopicSubscriptionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTopicSubscriptionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListTopicSubscriptionsRequest() { pageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTopicSubscriptionsRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable @@ -214,14 +220,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, topic_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); } getUnknownFields().writeTo(output); } @@ -232,14 +238,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, topic_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -319,38 +325,38 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSubscriptionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -373,7 +379,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -387,7 +393,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSubscriptionsRequest) com.google.pubsub.v1.ListTopicSubscriptionsRequestOrBuilder { @@ -397,7 +403,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable @@ -409,7 +415,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListTopicSubscriptionsRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -467,39 +473,6 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicSubscriptionsRequest re } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsRequest) { @@ -892,17 +865,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSubscriptionsRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java index 05f476a4bc47..07a1f61240a8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListTopicSubscriptionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSubscriptionsRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java index ab32db2f5199..ed115a4c5420 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,15 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsResponse} */ -public final class ListTopicSubscriptionsResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListTopicSubscriptionsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicSubscriptionsResponse) ListTopicSubscriptionsResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListTopicSubscriptionsResponse"); + } + // Use ListTopicSubscriptionsResponse.newBuilder() to construct. - private ListTopicSubscriptionsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTopicSubscriptionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -45,19 +56,13 @@ private ListTopicSubscriptionsResponse() { nextPageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTopicSubscriptionsResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable @@ -218,10 +223,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < subscriptions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscriptions_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscriptions_.getRaw(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); } getUnknownFields().writeTo(output); } @@ -240,8 +245,8 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSubscriptionsList().size(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -320,38 +325,38 @@ public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicSubscriptionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -374,7 +379,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -388,7 +393,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListTopicSubscriptionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicSubscriptionsResponse) com.google.pubsub.v1.ListTopicSubscriptionsResponseOrBuilder { @@ -398,7 +403,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable @@ -410,7 +415,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListTopicSubscriptionsResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -465,39 +470,6 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicSubscriptionsResponse r } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicSubscriptionsResponse) { @@ -915,17 +887,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicSubscriptionsResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java index 685626b41642..559bb08c2663 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicSubscriptionsResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListTopicSubscriptionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicSubscriptionsResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java index 75c711d16759..5db5c1454f72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListTopicsRequest} */ -public final class ListTopicsRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListTopicsRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsRequest) ListTopicsRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListTopicsRequest"); + } + // Use ListTopicsRequest.newBuilder() to construct. - private ListTopicsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTopicsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListTopicsRequest() { pageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTopicsRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable @@ -214,14 +220,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, project_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); } getUnknownFields().writeTo(output); } @@ -232,14 +238,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, project_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -318,38 +324,38 @@ public static com.google.pubsub.v1.ListTopicsRequest parseFrom( public static com.google.pubsub.v1.ListTopicsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -372,7 +378,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -386,7 +392,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListTopicsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicsRequest) com.google.pubsub.v1.ListTopicsRequestOrBuilder { @@ -396,7 +402,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable @@ -408,7 +414,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListTopicsRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -466,39 +472,6 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicsRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicsRequest) { @@ -890,17 +863,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicsRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java index cb3a136a1967..2b30c60b8600 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListTopicsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicsRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java index 2f1fc149c078..832ad62ae9a4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ListTopicsResponse} */ -public final class ListTopicsResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ListTopicsResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ListTopicsResponse) ListTopicsResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListTopicsResponse"); + } + // Use ListTopicsResponse.newBuilder() to construct. - private ListTopicsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListTopicsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ListTopicsResponse() { nextPageToken_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTopicsResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable @@ -217,8 +223,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < topics_.size(); i++) { output.writeMessage(1, topics_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); } getUnknownFields().writeTo(output); } @@ -232,8 +238,8 @@ public int getSerializedSize() { for (int i = 0; i < topics_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, topics_.get(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -311,38 +317,38 @@ public static com.google.pubsub.v1.ListTopicsResponse parseFrom( public static com.google.pubsub.v1.ListTopicsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicsResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicsResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ListTopicsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ListTopicsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -365,7 +371,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -379,7 +385,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ListTopicsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ListTopicsResponse) com.google.pubsub.v1.ListTopicsResponseOrBuilder { @@ -389,7 +395,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable @@ -401,7 +407,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ListTopicsResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -471,39 +477,6 @@ private void buildPartial0(com.google.pubsub.v1.ListTopicsResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ListTopicsResponse) { @@ -535,8 +508,8 @@ public Builder mergeFrom(com.google.pubsub.v1.ListTopicsResponse other) { topics_ = other.topics_; bitField0_ = (bitField0_ & ~0x00000001); topicsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTopicsFieldBuilder() + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTopicsFieldBuilder() : null; } else { topicsBuilder_.addAllMessages(other.topics_); @@ -620,7 +593,7 @@ private void ensureTopicsIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> @@ -889,7 +862,7 @@ public Builder removeTopics(int index) { * */ public com.google.pubsub.v1.Topic.Builder getTopicsBuilder(int index) { - return getTopicsFieldBuilder().getBuilder(index); + return internalGetTopicsFieldBuilder().getBuilder(index); } /** @@ -939,7 +912,8 @@ public java.util.List getTopicsOr * */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { - return getTopicsFieldBuilder().addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); + return internalGetTopicsFieldBuilder() + .addBuilder(com.google.pubsub.v1.Topic.getDefaultInstance()); } /** @@ -953,7 +927,7 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder() { * */ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { - return getTopicsFieldBuilder() + return internalGetTopicsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.Topic.getDefaultInstance()); } @@ -968,17 +942,17 @@ public com.google.pubsub.v1.Topic.Builder addTopicsBuilder(int index) { * */ public java.util.List getTopicsBuilderList() { - return getTopicsFieldBuilder().getBuilderList(); + return internalGetTopicsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> - getTopicsFieldBuilder() { + internalGetTopicsFieldBuilder() { if (topicsBuilder_ == null) { topicsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< + new com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>( @@ -1104,17 +1078,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ListTopicsResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java index 7f35ebf293d9..ff3026965aea 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ListTopicsResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ListTopicsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ListTopicsResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java index 5db66167e34d..c19f2e154303 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicy.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} */ -public final class MessageStoragePolicy extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class MessageStoragePolicy extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageStoragePolicy) MessageStoragePolicyOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MessageStoragePolicy"); + } + // Use MessageStoragePolicy.newBuilder() to construct. - private MessageStoragePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageStoragePolicy(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private MessageStoragePolicy() { allowedPersistenceRegions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MessageStoragePolicy(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable @@ -198,7 +204,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowedPersistenceRegions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( + com.google.protobuf.GeneratedMessage.writeString( output, 1, allowedPersistenceRegions_.getRaw(i)); } if (enforceInTransit_ != false) { @@ -302,38 +308,38 @@ public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( public static com.google.pubsub.v1.MessageStoragePolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.MessageStoragePolicy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.MessageStoragePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -356,7 +362,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -370,7 +376,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.MessageStoragePolicy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.MessageStoragePolicy) com.google.pubsub.v1.MessageStoragePolicyOrBuilder { @@ -380,7 +386,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable @@ -392,7 +398,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.MessageStoragePolicy.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -447,39 +453,6 @@ private void buildPartial0(com.google.pubsub.v1.MessageStoragePolicy result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.MessageStoragePolicy) { @@ -878,17 +851,6 @@ public Builder clearEnforceInTransit() { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.MessageStoragePolicy) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java index 5bbe0270e449..b023c895a446 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageStoragePolicyOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface MessageStoragePolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.MessageStoragePolicy) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java index 74f22a393810..64bffd9932bc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransform.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,32 +29,37 @@ * * Protobuf type {@code google.pubsub.v1.MessageTransform} */ -public final class MessageTransform extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class MessageTransform extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.MessageTransform) MessageTransformOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MessageTransform"); + } + // Use MessageTransform.newBuilder() to construct. - private MessageTransform(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private MessageTransform(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private MessageTransform() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MessageTransform(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_MessageTransform_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable @@ -428,38 +434,38 @@ public static com.google.pubsub.v1.MessageTransform parseFrom( public static com.google.pubsub.v1.MessageTransform parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.MessageTransform parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.MessageTransform parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.MessageTransform parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.MessageTransform parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.MessageTransform parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -482,7 +488,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -496,7 +502,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.MessageTransform} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.MessageTransform) com.google.pubsub.v1.MessageTransformOrBuilder { @@ -506,7 +512,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable @@ -518,7 +524,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.MessageTransform.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -592,39 +598,6 @@ private void buildPartialOneofs(com.google.pubsub.v1.MessageTransform result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.MessageTransform) { @@ -687,7 +660,8 @@ public Builder mergeFrom( break; case 18: { - input.readMessage(getJavascriptUdfFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetJavascriptUdfFieldBuilder().getBuilder(), extensionRegistry); transformCase_ = 2; break; } // case 18 @@ -705,7 +679,8 @@ public Builder mergeFrom( } // case 32 case 50: { - input.readMessage(getAiInferenceFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetAiInferenceFieldBuilder().getBuilder(), extensionRegistry); transformCase_ = 6; break; } // case 50 @@ -742,7 +717,7 @@ public Builder clearTransform() { private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.JavaScriptUDF, com.google.pubsub.v1.JavaScriptUDF.Builder, com.google.pubsub.v1.JavaScriptUDFOrBuilder> @@ -923,7 +898,7 @@ public Builder clearJavascriptUdf() { * */ public com.google.pubsub.v1.JavaScriptUDF.Builder getJavascriptUdfBuilder() { - return getJavascriptUdfFieldBuilder().getBuilder(); + return internalGetJavascriptUdfFieldBuilder().getBuilder(); } /** @@ -962,17 +937,17 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { * .google.pubsub.v1.JavaScriptUDF javascript_udf = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.JavaScriptUDF, com.google.pubsub.v1.JavaScriptUDF.Builder, com.google.pubsub.v1.JavaScriptUDFOrBuilder> - getJavascriptUdfFieldBuilder() { + internalGetJavascriptUdfFieldBuilder() { if (javascriptUdfBuilder_ == null) { if (!(transformCase_ == 2)) { transform_ = com.google.pubsub.v1.JavaScriptUDF.getDefaultInstance(); } javascriptUdfBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.JavaScriptUDF, com.google.pubsub.v1.JavaScriptUDF.Builder, com.google.pubsub.v1.JavaScriptUDFOrBuilder>( @@ -984,7 +959,7 @@ public com.google.pubsub.v1.JavaScriptUDFOrBuilder getJavascriptUdfOrBuilder() { return javascriptUdfBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.AIInference, com.google.pubsub.v1.AIInference.Builder, com.google.pubsub.v1.AIInferenceOrBuilder> @@ -1172,7 +1147,7 @@ public Builder clearAiInference() { * */ public com.google.pubsub.v1.AIInference.Builder getAiInferenceBuilder() { - return getAiInferenceFieldBuilder().getBuilder(); + return internalGetAiInferenceFieldBuilder().getBuilder(); } /** @@ -1213,17 +1188,17 @@ public com.google.pubsub.v1.AIInferenceOrBuilder getAiInferenceOrBuilder() { * .google.pubsub.v1.AIInference ai_inference = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.AIInference, com.google.pubsub.v1.AIInference.Builder, com.google.pubsub.v1.AIInferenceOrBuilder> - getAiInferenceFieldBuilder() { + internalGetAiInferenceFieldBuilder() { if (aiInferenceBuilder_ == null) { if (!(transformCase_ == 6)) { transform_ = com.google.pubsub.v1.AIInference.getDefaultInstance(); } aiInferenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.AIInference, com.google.pubsub.v1.AIInference.Builder, com.google.pubsub.v1.AIInferenceOrBuilder>( @@ -1362,17 +1337,6 @@ public Builder clearDisabled() { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.MessageTransform) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java index 85fe71dad841..9c31737d081b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/MessageTransformOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface MessageTransformOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.MessageTransform) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java index 64f101a1481b..383bd5c0e2b2 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ModifyAckDeadlineRequest} */ -public final class ModifyAckDeadlineRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ModifyAckDeadlineRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyAckDeadlineRequest) ModifyAckDeadlineRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModifyAckDeadlineRequest"); + } + // Use ModifyAckDeadlineRequest.newBuilder() to construct. - private ModifyAckDeadlineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ModifyAckDeadlineRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private ModifyAckDeadlineRequest() { ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ModifyAckDeadlineRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable @@ -233,14 +239,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscription_); } if (ackDeadlineSeconds_ != 0) { output.writeInt32(3, ackDeadlineSeconds_); } for (int i = 0; i < ackIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ackIds_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 4, ackIds_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -251,8 +257,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscription_); } if (ackDeadlineSeconds_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, ackDeadlineSeconds_); @@ -345,38 +351,38 @@ public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ModifyAckDeadlineRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -399,7 +405,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -413,7 +419,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ModifyAckDeadlineRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ModifyAckDeadlineRequest) com.google.pubsub.v1.ModifyAckDeadlineRequestOrBuilder { @@ -423,7 +429,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable @@ -435,7 +441,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ModifyAckDeadlineRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -494,39 +500,6 @@ private void buildPartial0(com.google.pubsub.v1.ModifyAckDeadlineRequest result) } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ModifyAckDeadlineRequest) { @@ -1010,17 +983,6 @@ public Builder clearAckDeadlineSeconds() { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyAckDeadlineRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java index 184107b003f0..56439946dcb8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyAckDeadlineRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ModifyAckDeadlineRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ModifyAckDeadlineRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java index 02d5a6095e1f..0a0181ec3683 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest} */ -public final class ModifyPushConfigRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ModifyPushConfigRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ModifyPushConfigRequest) ModifyPushConfigRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModifyPushConfigRequest"); + } + // Use ModifyPushConfigRequest.newBuilder() to construct. - private ModifyPushConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ModifyPushConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private ModifyPushConfigRequest() { subscription_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ModifyPushConfigRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable @@ -205,8 +211,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscription_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getPushConfig()); @@ -220,8 +226,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscription_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPushConfig()); @@ -306,38 +312,38 @@ public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ModifyPushConfigRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ModifyPushConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -360,7 +366,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -374,7 +380,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ModifyPushConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ModifyPushConfigRequest) com.google.pubsub.v1.ModifyPushConfigRequestOrBuilder { @@ -384,7 +390,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable @@ -398,14 +404,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPushConfigFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPushConfigFieldBuilder(); } } @@ -466,39 +472,6 @@ private void buildPartial0(com.google.pubsub.v1.ModifyPushConfigRequest result) result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ModifyPushConfigRequest) { @@ -553,7 +526,8 @@ public Builder mergeFrom( } // case 10 case 18: { - input.readMessage(getPushConfigFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetPushConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 @@ -703,7 +677,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { } private com.google.pubsub.v1.PushConfig pushConfig_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> @@ -890,7 +864,7 @@ public Builder clearPushConfig() { public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getPushConfigFieldBuilder().getBuilder(); + return internalGetPushConfigFieldBuilder().getBuilder(); } /** @@ -933,14 +907,14 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * .google.pubsub.v1.PushConfig push_config = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> - getPushConfigFieldBuilder() { + internalGetPushConfigFieldBuilder() { if (pushConfigBuilder_ == null) { pushConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder>( @@ -950,17 +924,6 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { return pushConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ModifyPushConfigRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java index 80ce0456c6cd..25f579d7460c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ModifyPushConfigRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ModifyPushConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ModifyPushConfigRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java index fab452ea1c25..1135d99de4ba 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettings.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.PlatformLogsSettings} */ -public final class PlatformLogsSettings extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class PlatformLogsSettings extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PlatformLogsSettings) PlatformLogsSettingsOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PlatformLogsSettings"); + } + // Use PlatformLogsSettings.newBuilder() to construct. - private PlatformLogsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PlatformLogsSettings(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private PlatformLogsSettings() { severity_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PlatformLogsSettings(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable @@ -137,6 +143,16 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Severity"); + } + /** * * @@ -267,7 +283,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.PlatformLogsSettings.getDescriptor().getEnumTypes().get(0); } @@ -438,38 +454,38 @@ public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( public static com.google.pubsub.v1.PlatformLogsSettings parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PlatformLogsSettings parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PlatformLogsSettings parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PlatformLogsSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -492,7 +508,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -506,7 +522,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.PlatformLogsSettings} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PlatformLogsSettings) com.google.pubsub.v1.PlatformLogsSettingsOrBuilder { @@ -516,7 +532,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable @@ -528,7 +544,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.PlatformLogsSettings.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -578,39 +594,6 @@ private void buildPartial0(com.google.pubsub.v1.PlatformLogsSettings result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PlatformLogsSettings) { @@ -784,17 +767,6 @@ public Builder clearSeverity() { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PlatformLogsSettings) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java index c2165b68982a..e01f7b068810 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PlatformLogsSettingsOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface PlatformLogsSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PlatformLogsSettings) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java index 1a90a5f5bc53..a98f3bd075ce 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.PublishRequest} */ -public final class PublishRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class PublishRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishRequest) PublishRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PublishRequest"); + } + // Use PublishRequest.newBuilder() to construct. - private PublishRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PublishRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private PublishRequest() { messages_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PublishRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PublishRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable @@ -224,8 +230,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, topic_); } for (int i = 0; i < messages_.size(); i++) { output.writeMessage(2, messages_.get(i)); @@ -239,8 +245,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, topic_); } for (int i = 0; i < messages_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, messages_.get(i)); @@ -320,38 +326,38 @@ public static com.google.pubsub.v1.PublishRequest parseFrom( public static com.google.pubsub.v1.PublishRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PublishRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PublishRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PublishRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PublishRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PublishRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -374,7 +380,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -388,7 +394,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.PublishRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PublishRequest) com.google.pubsub.v1.PublishRequestOrBuilder { @@ -398,7 +404,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable @@ -410,7 +416,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.PublishRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -479,39 +485,6 @@ private void buildPartial0(com.google.pubsub.v1.PublishRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PublishRequest) { @@ -548,8 +521,8 @@ public Builder mergeFrom(com.google.pubsub.v1.PublishRequest other) { messages_ = other.messages_; bitField0_ = (bitField0_ & ~0x00000002); messagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMessagesFieldBuilder() + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMessagesFieldBuilder() : null; } else { messagesBuilder_.addAllMessages(other.messages_); @@ -756,7 +729,7 @@ private void ensureMessagesIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> @@ -1041,7 +1014,7 @@ public Builder removeMessages(int index) { * */ public com.google.pubsub.v1.PubsubMessage.Builder getMessagesBuilder(int index) { - return getMessagesFieldBuilder().getBuilder(index); + return internalGetMessagesFieldBuilder().getBuilder(index); } /** @@ -1095,7 +1068,7 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessagesOrBuilder(int inde * */ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder() { - return getMessagesFieldBuilder() + return internalGetMessagesFieldBuilder() .addBuilder(com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } @@ -1111,7 +1084,7 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder() { * */ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder(int index) { - return getMessagesFieldBuilder() + return internalGetMessagesFieldBuilder() .addBuilder(index, com.google.pubsub.v1.PubsubMessage.getDefaultInstance()); } @@ -1127,17 +1100,17 @@ public com.google.pubsub.v1.PubsubMessage.Builder addMessagesBuilder(int index) * */ public java.util.List getMessagesBuilderList() { - return getMessagesFieldBuilder().getBuilderList(); + return internalGetMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> - getMessagesFieldBuilder() { + internalGetMessagesFieldBuilder() { if (messagesBuilder_ == null) { messagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< + new com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( @@ -1147,17 +1120,6 @@ public java.util.List getMessagesBui return messagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PublishRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java index 21447e8e3953..18f0e8e575fc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface PublishRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java index e552f7bdd939..d00cf0040240 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.PublishResponse} */ -public final class PublishResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class PublishResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PublishResponse) PublishResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PublishResponse"); + } + // Use PublishResponse.newBuilder() to construct. - private PublishResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PublishResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private PublishResponse() { messageIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PublishResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PublishResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable @@ -155,7 +161,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < messageIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, messageIds_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, messageIds_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -246,38 +252,38 @@ public static com.google.pubsub.v1.PublishResponse parseFrom( public static com.google.pubsub.v1.PublishResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PublishResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PublishResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PublishResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PublishResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PublishResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -300,7 +306,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -314,7 +320,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.PublishResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PublishResponse) com.google.pubsub.v1.PublishResponseOrBuilder { @@ -324,7 +330,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable @@ -336,7 +342,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.PublishResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -386,39 +392,6 @@ private void buildPartial0(com.google.pubsub.v1.PublishResponse result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PublishResponse) { @@ -694,17 +667,6 @@ public Builder addMessageIdsBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PublishResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java index 18b8bc10ff08..067a2b2641ed 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PublishResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface PublishResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PublishResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java index 198e1349fe1f..ef7fcebb901d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessage.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -35,14 +36,25 @@ * * Protobuf type {@code google.pubsub.v1.PubsubMessage} */ -public final class PubsubMessage extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class PubsubMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PubsubMessage) PubsubMessageOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PubsubMessage"); + } + // Use PubsubMessage.newBuilder() to construct. - private PubsubMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PubsubMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -52,12 +64,6 @@ private PubsubMessage() { orderingKey_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PubsubMessage(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PubsubMessage_descriptor; @@ -76,7 +82,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable @@ -423,16 +429,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!data_.isEmpty()) { output.writeBytes(1, data_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, messageId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(messageId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, messageId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPublishTime()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderingKey_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderingKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderingKey_); } getUnknownFields().writeTo(output); } @@ -456,14 +462,14 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attributes__); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(messageId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, messageId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(messageId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, messageId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPublishTime()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderingKey_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderingKey_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderingKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderingKey_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -554,38 +560,38 @@ public static com.google.pubsub.v1.PubsubMessage parseFrom( public static com.google.pubsub.v1.PubsubMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PubsubMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PubsubMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PubsubMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PubsubMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PubsubMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -608,7 +614,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -629,7 +635,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.PubsubMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PubsubMessage) com.google.pubsub.v1.PubsubMessageOrBuilder { @@ -661,7 +667,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable @@ -675,14 +681,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPublishTimeFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPublishTimeFieldBuilder(); } } @@ -756,39 +762,6 @@ private void buildPartial0(com.google.pubsub.v1.PubsubMessage result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PubsubMessage) { @@ -801,7 +774,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.pubsub.v1.PubsubMessage other) { if (other == com.google.pubsub.v1.PubsubMessage.getDefaultInstance()) return this; - if (other.getData() != com.google.protobuf.ByteString.EMPTY) { + if (!other.getData().isEmpty()) { setData(other.getData()); } internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); @@ -871,7 +844,8 @@ public Builder mergeFrom( } // case 26 case 34: { - input.readMessage(getPublishTimeFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetPublishTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 @@ -1284,7 +1258,7 @@ public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Timestamp publishTime_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> @@ -1443,7 +1417,7 @@ public Builder clearPublishTime() { public com.google.protobuf.Timestamp.Builder getPublishTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); - return getPublishTimeFieldBuilder().getBuilder(); + return internalGetPublishTimeFieldBuilder().getBuilder(); } /** @@ -1478,14 +1452,14 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() { * * .google.protobuf.Timestamp publish_time = 4; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getPublishTimeFieldBuilder() { + internalGetPublishTimeFieldBuilder() { if (publishTimeBuilder_ == null) { publishTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( @@ -1641,17 +1615,6 @@ public Builder setOrderingKeyBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PubsubMessage) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java index 16fa1601f916..801741079a47 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubMessageOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface PubsubMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PubsubMessage) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 7706628458db..4717d7ebf176 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -14,14 +14,26 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; -public final class PubsubProto { +@com.google.protobuf.Generated +public final class PubsubProto extends com.google.protobuf.GeneratedFile { private PubsubProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PubsubProto"); + } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { @@ -30,355 +42,355 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_SchemaSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_JavaScriptUDF_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_AIInference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_AIInference_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_AIInference_UnstructuredInference_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_AIInference_UnstructuredInference_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_MessageTransform_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_Topic_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_Topic_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PubsubMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_GetTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PublishRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PublishResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListTopicsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListTopicsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Subscription_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_Subscription_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_Subscription_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_RetryPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ExpirationPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PushConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_BigQueryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ReceivedMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PullRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_PullResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Snapshot_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_SeekRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_SeekResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -1079,25 +1091,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.pubsub.v1.SchemaProto.getDescriptor(), }); internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor = - getDescriptor().getMessageTypes().get(0); + getDescriptor().getMessageType(0); internal_static_google_pubsub_v1_MessageStoragePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_MessageStoragePolicy_descriptor, new java.lang.String[] { "AllowedPersistenceRegions", "EnforceInTransit", }); - internal_static_google_pubsub_v1_SchemaSettings_descriptor = - getDescriptor().getMessageTypes().get(1); + internal_static_google_pubsub_v1_SchemaSettings_descriptor = getDescriptor().getMessageType(1); internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_SchemaSettings_descriptor, new java.lang.String[] { "Schema", "Encoding", "FirstRevisionId", "LastRevisionId", }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageType(2); internal_static_google_pubsub_v1_IngestionDataSourceSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor, new java.lang.String[] { "AwsKinesis", @@ -1109,21 +1120,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Source", }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor = - internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor - .getNestedTypes() - .get(0); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor.getNestedType(0); internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsKinesis_descriptor, new java.lang.String[] { "State", "StreamArn", "ConsumerArn", "AwsRoleArn", "GcpServiceAccount", }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor = - internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor - .getNestedTypes() - .get(1); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor.getNestedType(1); internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor, new java.lang.String[] { "State", @@ -1137,36 +1144,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor = internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor - .getNestedTypes() - .get(0); + .getNestedType(0); internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_TextFormat_descriptor, new java.lang.String[] { "Delimiter", }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor = internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor - .getNestedTypes() - .get(1); + .getNestedType(1); internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_AvroFormat_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor = internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_descriptor - .getNestedTypes() - .get(2); + .getNestedType(2); internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor = - internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor - .getNestedTypes() - .get(2); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor.getNestedType(2); internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_AzureEventHubs_descriptor, new java.lang.String[] { "State", @@ -1179,21 +1181,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcpServiceAccount", }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor = - internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor - .getNestedTypes() - .get(3); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor.getNestedType(3); internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_AwsMsk_descriptor, new java.lang.String[] { "State", "ClusterArn", "Topic", "AwsRoleArn", "GcpServiceAccount", }); internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor = - internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor - .getNestedTypes() - .get(4); + internal_static_google_pubsub_v1_IngestionDataSourceSettings_descriptor.getNestedType(4); internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionDataSourceSettings_ConfluentCloud_descriptor, new java.lang.String[] { "State", @@ -1204,17 +1202,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcpServiceAccount", }); internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageType(3); internal_static_google_pubsub_v1_PlatformLogsSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PlatformLogsSettings_descriptor, new java.lang.String[] { "Severity", }); internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageType(4); internal_static_google_pubsub_v1_IngestionFailureEvent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor, new java.lang.String[] { "Topic", @@ -1227,33 +1225,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Failure", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedType(0); internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_ApiViolationReason_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedType(1); internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AvroFailureReason_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedType(2); internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_SchemaViolationReason_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(3); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedType(3); internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_MessageTransformationFailureReason_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(4); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedType(4); internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_CloudStorageFailure_descriptor, new java.lang.String[] { "Bucket", @@ -1266,9 +1264,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(5); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedType(5); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AwsMskFailureReason_descriptor, new java.lang.String[] { "ClusterArn", @@ -1281,9 +1279,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(6); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedType(6); internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AzureEventHubsFailureReason_descriptor, new java.lang.String[] { "Namespace", @@ -1296,9 +1294,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(7); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedType(7); internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_ConfluentCloudFailureReason_descriptor, new java.lang.String[] { "ClusterId", @@ -1311,9 +1309,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reason", }); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor = - internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedTypes().get(8); + internal_static_google_pubsub_v1_IngestionFailureEvent_descriptor.getNestedType(8); internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_IngestionFailureEvent_AwsKinesisFailureReason_descriptor, new java.lang.String[] { "StreamArn", @@ -1324,41 +1322,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiViolationReason", "Reason", }); - internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = - getDescriptor().getMessageTypes().get(5); + internal_static_google_pubsub_v1_JavaScriptUDF_descriptor = getDescriptor().getMessageType(5); internal_static_google_pubsub_v1_JavaScriptUDF_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_JavaScriptUDF_descriptor, new java.lang.String[] { "FunctionName", "Code", }); - internal_static_google_pubsub_v1_AIInference_descriptor = - getDescriptor().getMessageTypes().get(6); + internal_static_google_pubsub_v1_AIInference_descriptor = getDescriptor().getMessageType(6); internal_static_google_pubsub_v1_AIInference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_AIInference_descriptor, new java.lang.String[] { "Endpoint", "UnstructuredInference", "ServiceAccountEmail", "InferenceMode", }); internal_static_google_pubsub_v1_AIInference_UnstructuredInference_descriptor = - internal_static_google_pubsub_v1_AIInference_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_AIInference_descriptor.getNestedType(0); internal_static_google_pubsub_v1_AIInference_UnstructuredInference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_AIInference_UnstructuredInference_descriptor, new java.lang.String[] { "Parameters", }); internal_static_google_pubsub_v1_MessageTransform_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageType(7); internal_static_google_pubsub_v1_MessageTransform_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_MessageTransform_descriptor, new java.lang.String[] { "JavascriptUdf", "AiInference", "Enabled", "Disabled", "Transform", }); - internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageTypes().get(8); + internal_static_google_pubsub_v1_Topic_descriptor = getDescriptor().getMessageType(8); internal_static_google_pubsub_v1_Topic_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_descriptor, new java.lang.String[] { "Name", @@ -1374,143 +1370,140 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Tags", }); internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Topic_descriptor.getNestedType(0); internal_static_google_pubsub_v1_Topic_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor = - internal_static_google_pubsub_v1_Topic_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_Topic_descriptor.getNestedType(1); internal_static_google_pubsub_v1_Topic_TagsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Topic_TagsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_PubsubMessage_descriptor = - getDescriptor().getMessageTypes().get(9); + internal_static_google_pubsub_v1_PubsubMessage_descriptor = getDescriptor().getMessageType(9); internal_static_google_pubsub_v1_PubsubMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_descriptor, new java.lang.String[] { "Data", "Attributes", "MessageId", "PublishTime", "OrderingKey", }); internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor = - internal_static_google_pubsub_v1_PubsubMessage_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_PubsubMessage_descriptor.getNestedType(0); internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PubsubMessage_AttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_GetTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageType(10); internal_static_google_pubsub_v1_GetTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_GetTopicRequest_descriptor, new java.lang.String[] { "Topic", }); internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageType(11); internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor, new java.lang.String[] { "Topic", "UpdateMask", }); - internal_static_google_pubsub_v1_PublishRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + internal_static_google_pubsub_v1_PublishRequest_descriptor = getDescriptor().getMessageType(12); internal_static_google_pubsub_v1_PublishRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PublishRequest_descriptor, new java.lang.String[] { "Topic", "Messages", }); internal_static_google_pubsub_v1_PublishResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageType(13); internal_static_google_pubsub_v1_PublishResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PublishResponse_descriptor, new java.lang.String[] { "MessageIds", }); internal_static_google_pubsub_v1_ListTopicsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageType(14); internal_static_google_pubsub_v1_ListTopicsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsRequest_descriptor, new java.lang.String[] { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageType(15); internal_static_google_pubsub_v1_ListTopicsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicsResponse_descriptor, new java.lang.String[] { "Topics", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageType(16); internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsRequest_descriptor, new java.lang.String[] { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageType(17); internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSubscriptionsResponse_descriptor, new java.lang.String[] { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageType(18); internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsRequest_descriptor, new java.lang.String[] { "Topic", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageType(19); internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListTopicSnapshotsResponse_descriptor, new java.lang.String[] { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageType(20); internal_static_google_pubsub_v1_DeleteTopicRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteTopicRequest_descriptor, new java.lang.String[] { "Topic", }); internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageType(21); internal_static_google_pubsub_v1_DetachSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionRequest_descriptor, new java.lang.String[] { "Subscription", }); internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageType(22); internal_static_google_pubsub_v1_DetachSubscriptionResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_DetachSubscriptionResponse_descriptor, new java.lang.String[] {}); - internal_static_google_pubsub_v1_Subscription_descriptor = - getDescriptor().getMessageTypes().get(23); + internal_static_google_pubsub_v1_Subscription_descriptor = getDescriptor().getMessageType(23); internal_static_google_pubsub_v1_Subscription_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_descriptor, new java.lang.String[] { "Name", @@ -1536,57 +1529,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Tags", }); internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor = - internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Subscription_descriptor.getNestedType(0); internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor, new java.lang.String[] { "Listing", "Subscription", }); internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_Subscription_descriptor.getNestedType(1); internal_static_google_pubsub_v1_Subscription_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor = - internal_static_google_pubsub_v1_Subscription_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_Subscription_descriptor.getNestedType(2); internal_static_google_pubsub_v1_Subscription_TagsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Subscription_TagsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_RetryPolicy_descriptor = - getDescriptor().getMessageTypes().get(24); + internal_static_google_pubsub_v1_RetryPolicy_descriptor = getDescriptor().getMessageType(24); internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_RetryPolicy_descriptor, new java.lang.String[] { "MinimumBackoff", "MaximumBackoff", }); internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageType(25); internal_static_google_pubsub_v1_DeadLetterPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_DeadLetterPolicy_descriptor, new java.lang.String[] { "DeadLetterTopic", "MaxDeliveryAttempts", }); internal_static_google_pubsub_v1_ExpirationPolicy_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageType(26); internal_static_google_pubsub_v1_ExpirationPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ExpirationPolicy_descriptor, new java.lang.String[] { "Ttl", }); - internal_static_google_pubsub_v1_PushConfig_descriptor = - getDescriptor().getMessageTypes().get(27); + internal_static_google_pubsub_v1_PushConfig_descriptor = getDescriptor().getMessageType(27); internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_descriptor, new java.lang.String[] { "PushEndpoint", @@ -1598,39 +1589,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Wrapper", }); internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedType(0); internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor, new java.lang.String[] { "ServiceAccountEmail", "Audience", }); internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedType(1); internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedType(2); internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor, new java.lang.String[] { "WriteMetadata", }); internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor = - internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedTypes().get(3); + internal_static_google_pubsub_v1_PushConfig_descriptor.getNestedType(3); internal_static_google_pubsub_v1_PushConfig_AttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PushConfig_AttributesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_google_pubsub_v1_BigQueryConfig_descriptor = - getDescriptor().getMessageTypes().get(28); + internal_static_google_pubsub_v1_BigQueryConfig_descriptor = getDescriptor().getMessageType(28); internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_BigQueryConfig_descriptor, new java.lang.String[] { "Table", @@ -1642,9 +1632,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccountEmail", }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageType(29); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, new java.lang.String[] { "Bucket", @@ -1661,111 +1651,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OutputFormat", }); internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor = - internal_static_google_pubsub_v1_CloudStorageConfig_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor.getNestedType(0); internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_TextConfig_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor = - internal_static_google_pubsub_v1_CloudStorageConfig_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_CloudStorageConfig_descriptor.getNestedType(1); internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_AvroConfig_descriptor, new java.lang.String[] { "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageType(30); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, new java.lang.String[] { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageType(31); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, new java.lang.String[] { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageType(32); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, new java.lang.String[] { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageType(33); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, new java.lang.String[] { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageType(34); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, new java.lang.String[] { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageType(35); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, new java.lang.String[] { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageType(36); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, new java.lang.String[] { "Subscription", "PushConfig", }); - internal_static_google_pubsub_v1_PullRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + internal_static_google_pubsub_v1_PullRequest_descriptor = getDescriptor().getMessageType(37); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, new java.lang.String[] { "Subscription", "ReturnImmediately", "MaxMessages", }); - internal_static_google_pubsub_v1_PullResponse_descriptor = - getDescriptor().getMessageTypes().get(38); + internal_static_google_pubsub_v1_PullResponse_descriptor = getDescriptor().getMessageType(38); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, new java.lang.String[] { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageType(39); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, new java.lang.String[] { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageType(40); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, new java.lang.String[] { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageType(41); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, new java.lang.String[] { "Subscription", @@ -1779,9 +1767,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProtocolVersion", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageType(42); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, new java.lang.String[] { "ReceivedMessages", @@ -1790,122 +1778,130 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SubscriptionProperties", }); internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor = - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedType(0); internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor, new java.lang.String[] { "AckIds", "InvalidAckIds", "UnorderedAckIds", "TemporaryFailedAckIds", }); internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor = - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedType(1); internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor, new java.lang.String[] { "AckIds", "InvalidAckIds", "TemporaryFailedAckIds", }); internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor = - internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedTypes().get(2); + internal_static_google_pubsub_v1_StreamingPullResponse_descriptor.getNestedType(2); internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor, new java.lang.String[] { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageType(43); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, new java.lang.String[] { "Name", "Subscription", "Labels", "Tags", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedType(0); internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor = - internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedTypes().get(1); + internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor.getNestedType(1); internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_TagsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageType(44); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, new java.lang.String[] { "Snapshot", "UpdateMask", }); - internal_static_google_pubsub_v1_Snapshot_descriptor = - getDescriptor().getMessageTypes().get(45); + internal_static_google_pubsub_v1_Snapshot_descriptor = getDescriptor().getMessageType(45); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, new java.lang.String[] { "Name", "Topic", "ExpireTime", "Labels", }); internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor = - internal_static_google_pubsub_v1_Snapshot_descriptor.getNestedTypes().get(0); + internal_static_google_pubsub_v1_Snapshot_descriptor.getNestedType(0); internal_static_google_pubsub_v1_Snapshot_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageType(46); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, new java.lang.String[] { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageType(47); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, new java.lang.String[] { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageType(48); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, new java.lang.String[] { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageType(49); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, new java.lang.String[] { "Snapshot", }); - internal_static_google_pubsub_v1_SeekRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + internal_static_google_pubsub_v1_SeekRequest_descriptor = getDescriptor().getMessageType(50); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, new java.lang.String[] { "Subscription", "Time", "Snapshot", "Target", }); - internal_static_google_pubsub_v1_SeekResponse_descriptor = - getDescriptor().getMessageTypes().get(51); + internal_static_google_pubsub_v1_SeekResponse_descriptor = getDescriptor().getMessageType(51); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.pubsub.v1.SchemaProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -1918,16 +1914,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.pubsub.v1.SchemaProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index aa9f8534ed52..54de83b875a7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.PullRequest} */ -public final class PullRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class PullRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullRequest) PullRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PullRequest"); + } + // Use PullRequest.newBuilder() to construct. - private PullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PullRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,18 +55,12 @@ private PullRequest() { subscription_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PullRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PullRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable @@ -185,8 +191,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscription_); } if (returnImmediately_ != false) { output.writeBool(2, returnImmediately_); @@ -203,8 +209,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscription_); } if (returnImmediately_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, returnImmediately_); @@ -288,38 +294,38 @@ public static com.google.pubsub.v1.PullRequest parseFrom( public static com.google.pubsub.v1.PullRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PullRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PullRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PullRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PullRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PullRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -342,7 +348,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -356,7 +362,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.PullRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PullRequest) com.google.pubsub.v1.PullRequestOrBuilder { @@ -366,7 +372,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable @@ -378,7 +384,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.PullRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -435,39 +441,6 @@ private void buildPartial0(com.google.pubsub.v1.PullRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PullRequest) { @@ -831,17 +804,6 @@ public Builder clearMaxMessages() { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PullRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index 4127d54a9aa6..ab3fd9f9d60b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface PullRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PullRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java index b9e013d59f8f..cad6472f0f9c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.PullResponse} */ -public final class PullResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class PullResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PullResponse) PullResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PullResponse"); + } + // Use PullResponse.newBuilder() to construct. - private PullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PullResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private PullResponse() { receivedMessages_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PullResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PullResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable @@ -271,38 +277,38 @@ public static com.google.pubsub.v1.PullResponse parseFrom( public static com.google.pubsub.v1.PullResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PullResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PullResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PullResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PullResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PullResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -325,7 +331,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -339,7 +345,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.PullResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PullResponse) com.google.pubsub.v1.PullResponseOrBuilder { @@ -349,7 +355,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable @@ -361,7 +367,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.PullResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -426,39 +432,6 @@ private void buildPartial0(com.google.pubsub.v1.PullResponse result) { int from_bitField0_ = bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PullResponse) { @@ -490,8 +463,8 @@ public Builder mergeFrom(com.google.pubsub.v1.PullResponse other) { receivedMessages_ = other.receivedMessages_; bitField0_ = (bitField0_ & ~0x00000001); receivedMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReceivedMessagesFieldBuilder() + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetReceivedMessagesFieldBuilder() : null; } else { receivedMessagesBuilder_.addAllMessages(other.receivedMessages_); @@ -567,7 +540,7 @@ private void ensureReceivedMessagesIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> @@ -905,7 +878,7 @@ public Builder removeReceivedMessages(int index) { * */ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { - return getReceivedMessagesFieldBuilder().getBuilder(index); + return internalGetReceivedMessagesFieldBuilder().getBuilder(index); } /** @@ -971,7 +944,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { - return getReceivedMessagesFieldBuilder() + return internalGetReceivedMessagesFieldBuilder() .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } @@ -991,7 +964,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { - return getReceivedMessagesFieldBuilder() + return internalGetReceivedMessagesFieldBuilder() .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } @@ -1012,17 +985,17 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i */ public java.util.List getReceivedMessagesBuilderList() { - return getReceivedMessagesFieldBuilder().getBuilderList(); + return internalGetReceivedMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> - getReceivedMessagesFieldBuilder() { + internalGetReceivedMessagesFieldBuilder() { if (receivedMessagesBuilder_ == null) { receivedMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< + new com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>( @@ -1035,17 +1008,6 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i return receivedMessagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PullResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java index f5f2b68479b4..98cb9ba32b4b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface PullResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PullResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java index 4165a9093d49..304cd75ab2f0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfig.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.PushConfig} */ -public final class PushConfig extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class PushConfig extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig) PushConfigOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PushConfig"); + } + // Use PushConfig.newBuilder() to construct. - private PushConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PushConfig(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,12 +55,6 @@ private PushConfig() { pushEndpoint_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PushConfig(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_PushConfig_descriptor; } @@ -66,7 +72,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable @@ -163,14 +169,24 @@ public interface OidcTokenOrBuilder * * Protobuf type {@code google.pubsub.v1.PushConfig.OidcToken} */ - public static final class OidcToken extends com.google.protobuf.GeneratedMessageV3 + public static final class OidcToken extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.OidcToken) OidcTokenOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OidcToken"); + } + // Use OidcToken.newBuilder() to construct. - private OidcToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private OidcToken(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -179,19 +195,13 @@ private OidcToken() { audience_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OidcToken(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_OidcToken_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable @@ -340,11 +350,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, serviceAccountEmail_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(audience_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, audience_); } getUnknownFields().writeTo(output); } @@ -355,11 +365,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, serviceAccountEmail_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(audience_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, audience_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -436,38 +446,38 @@ public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PushConfig.OidcToken parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.OidcToken parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.OidcToken parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -490,8 +500,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -507,8 +516,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.PushConfig.OidcToken} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig.OidcToken) com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder { @@ -518,7 +526,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_OidcToken_fieldAccessorTable @@ -530,7 +538,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.PushConfig.OidcToken.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -584,41 +592,6 @@ private void buildPartial0(com.google.pubsub.v1.PushConfig.OidcToken result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PushConfig.OidcToken) { @@ -970,18 +943,6 @@ public Builder setAudienceBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig.OidcToken) } @@ -1050,32 +1011,36 @@ public interface PubsubWrapperOrBuilder * * Protobuf type {@code google.pubsub.v1.PushConfig.PubsubWrapper} */ - public static final class PubsubWrapper extends com.google.protobuf.GeneratedMessageV3 + public static final class PubsubWrapper extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.PubsubWrapper) PubsubWrapperOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PubsubWrapper"); + } + // Use PubsubWrapper.newBuilder() to construct. - private PubsubWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PubsubWrapper(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private PubsubWrapper() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PubsubWrapper(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable @@ -1176,38 +1141,38 @@ public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.PubsubWrapper parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -1230,8 +1195,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1247,8 +1211,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.PushConfig.PubsubWrapper} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig.PubsubWrapper) com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder { @@ -1258,7 +1221,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_PubsubWrapper_fieldAccessorTable @@ -1270,7 +1233,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.PushConfig.PubsubWrapper.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -1308,41 +1271,6 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapper buildPartial() { return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PushConfig.PubsubWrapper) { @@ -1399,18 +1327,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig.PubsubWrapper) } @@ -1493,32 +1409,36 @@ public interface NoWrapperOrBuilder * * Protobuf type {@code google.pubsub.v1.PushConfig.NoWrapper} */ - public static final class NoWrapper extends com.google.protobuf.GeneratedMessageV3 + public static final class NoWrapper extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.PushConfig.NoWrapper) NoWrapperOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NoWrapper"); + } + // Use NoWrapper.newBuilder() to construct. - private NoWrapper(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private NoWrapper(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private NoWrapper() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new NoWrapper(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_NoWrapper_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable @@ -1649,38 +1569,38 @@ public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PushConfig.NoWrapper parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.NoWrapper parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig.NoWrapper parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -1703,8 +1623,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1718,8 +1637,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.PushConfig.NoWrapper} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig.NoWrapper) com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder { @@ -1729,7 +1647,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_NoWrapper_fieldAccessorTable @@ -1741,7 +1659,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.PushConfig.NoWrapper.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -1791,41 +1709,6 @@ private void buildPartial0(com.google.pubsub.v1.PushConfig.NoWrapper result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PushConfig.NoWrapper) { @@ -1954,18 +1837,6 @@ public Builder clearWriteMetadata() { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig.NoWrapper) } @@ -2567,10 +2438,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pushEndpoint_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pushEndpoint_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pushEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, pushEndpoint_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 2); if (authenticationMethodCase_ == 3) { output.writeMessage(3, (com.google.pubsub.v1.PushConfig.OidcToken) authenticationMethod_); @@ -2590,8 +2461,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pushEndpoint_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pushEndpoint_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pushEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pushEndpoint_); } for (java.util.Map.Entry entry : internalGetAttributes().getMap().entrySet()) { @@ -2732,38 +2603,38 @@ public static com.google.pubsub.v1.PushConfig parseFrom( public static com.google.pubsub.v1.PushConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PushConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.PushConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.PushConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -2786,7 +2657,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -2800,7 +2671,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.PushConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.PushConfig) com.google.pubsub.v1.PushConfigOrBuilder { @@ -2832,7 +2703,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_PushConfig_fieldAccessorTable @@ -2843,7 +2714,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi // Construct using com.google.pubsub.v1.PushConfig.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -2927,39 +2798,6 @@ private void buildPartialOneofs(com.google.pubsub.v1.PushConfig result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.PushConfig) { @@ -3052,19 +2890,22 @@ public Builder mergeFrom( } // case 18 case 26: { - input.readMessage(getOidcTokenFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetOidcTokenFieldBuilder().getBuilder(), extensionRegistry); authenticationMethodCase_ = 3; break; } // case 26 case 34: { - input.readMessage(getPubsubWrapperFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetPubsubWrapperFieldBuilder().getBuilder(), extensionRegistry); wrapperCase_ = 4; break; } // case 34 case 42: { - input.readMessage(getNoWrapperFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetNoWrapperFieldBuilder().getBuilder(), extensionRegistry); wrapperCase_ = 5; break; } // case 42 @@ -3553,7 +3394,7 @@ public Builder putAllAttributes(java.util.Map @@ -3742,7 +3583,7 @@ public Builder clearOidcToken() { * */ public com.google.pubsub.v1.PushConfig.OidcToken.Builder getOidcTokenBuilder() { - return getOidcTokenFieldBuilder().getBuilder(); + return internalGetOidcTokenFieldBuilder().getBuilder(); } /** @@ -3783,17 +3624,17 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( * .google.pubsub.v1.PushConfig.OidcToken oidc_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig.OidcToken, com.google.pubsub.v1.PushConfig.OidcToken.Builder, com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder> - getOidcTokenFieldBuilder() { + internalGetOidcTokenFieldBuilder() { if (oidcTokenBuilder_ == null) { if (!(authenticationMethodCase_ == 3)) { authenticationMethod_ = com.google.pubsub.v1.PushConfig.OidcToken.getDefaultInstance(); } oidcTokenBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig.OidcToken, com.google.pubsub.v1.PushConfig.OidcToken.Builder, com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder>( @@ -3807,7 +3648,7 @@ public com.google.pubsub.v1.PushConfig.OidcTokenOrBuilder getOidcTokenOrBuilder( return oidcTokenBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig.PubsubWrapper, com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder> @@ -3996,7 +3837,7 @@ public Builder clearPubsubWrapper() { * */ public com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder getPubsubWrapperBuilder() { - return getPubsubWrapperFieldBuilder().getBuilder(); + return internalGetPubsubWrapperFieldBuilder().getBuilder(); } /** @@ -4037,17 +3878,17 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr * .google.pubsub.v1.PushConfig.PubsubWrapper pubsub_wrapper = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig.PubsubWrapper, com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder> - getPubsubWrapperFieldBuilder() { + internalGetPubsubWrapperFieldBuilder() { if (pubsubWrapperBuilder_ == null) { if (!(wrapperCase_ == 4)) { wrapper_ = com.google.pubsub.v1.PushConfig.PubsubWrapper.getDefaultInstance(); } pubsubWrapperBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig.PubsubWrapper, com.google.pubsub.v1.PushConfig.PubsubWrapper.Builder, com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder>( @@ -4061,7 +3902,7 @@ public com.google.pubsub.v1.PushConfig.PubsubWrapperOrBuilder getPubsubWrapperOr return pubsubWrapperBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig.NoWrapper, com.google.pubsub.v1.PushConfig.NoWrapper.Builder, com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder> @@ -4235,7 +4076,7 @@ public Builder clearNoWrapper() { * */ public com.google.pubsub.v1.PushConfig.NoWrapper.Builder getNoWrapperBuilder() { - return getNoWrapperFieldBuilder().getBuilder(); + return internalGetNoWrapperFieldBuilder().getBuilder(); } /** @@ -4272,17 +4113,17 @@ public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder( * .google.pubsub.v1.PushConfig.NoWrapper no_wrapper = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig.NoWrapper, com.google.pubsub.v1.PushConfig.NoWrapper.Builder, com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder> - getNoWrapperFieldBuilder() { + internalGetNoWrapperFieldBuilder() { if (noWrapperBuilder_ == null) { if (!(wrapperCase_ == 5)) { wrapper_ = com.google.pubsub.v1.PushConfig.NoWrapper.getDefaultInstance(); } noWrapperBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig.NoWrapper, com.google.pubsub.v1.PushConfig.NoWrapper.Builder, com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder>( @@ -4296,17 +4137,6 @@ public com.google.pubsub.v1.PushConfig.NoWrapperOrBuilder getNoWrapperOrBuilder( return noWrapperBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.PushConfig) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java index 0a6358afcfc4..c789fff48050 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PushConfigOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface PushConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.PushConfig) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java index f916be13ff26..116667ae5ee4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessage.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ReceivedMessage} */ -public final class ReceivedMessage extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ReceivedMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ReceivedMessage) ReceivedMessageOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ReceivedMessage"); + } + // Use ReceivedMessage.newBuilder() to construct. - private ReceivedMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ReceivedMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private ReceivedMessage() { ackId_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ReceivedMessage(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ReceivedMessage_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable @@ -218,8 +224,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ackId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, ackId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getMessage()); @@ -236,8 +242,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ackId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ackId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ackId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, ackId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMessage()); @@ -326,38 +332,38 @@ public static com.google.pubsub.v1.ReceivedMessage parseFrom( public static com.google.pubsub.v1.ReceivedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ReceivedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ReceivedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ReceivedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ReceivedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ReceivedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -380,7 +386,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -394,7 +400,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ReceivedMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ReceivedMessage) com.google.pubsub.v1.ReceivedMessageOrBuilder { @@ -404,7 +410,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable @@ -418,14 +424,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMessageFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMessageFieldBuilder(); } } @@ -489,39 +495,6 @@ private void buildPartial0(com.google.pubsub.v1.ReceivedMessage result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ReceivedMessage) { @@ -579,7 +552,7 @@ public Builder mergeFrom( } // case 10 case 18: { - input.readMessage(getMessageFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage(internalGetMessageFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 @@ -720,7 +693,7 @@ public Builder setAckIdBytes(com.google.protobuf.ByteString value) { } private com.google.pubsub.v1.PubsubMessage message_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> @@ -872,7 +845,7 @@ public Builder clearMessage() { public com.google.pubsub.v1.PubsubMessage.Builder getMessageBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getMessageFieldBuilder().getBuilder(); + return internalGetMessageFieldBuilder().getBuilder(); } /** @@ -905,14 +878,14 @@ public com.google.pubsub.v1.PubsubMessageOrBuilder getMessageOrBuilder() { * .google.pubsub.v1.PubsubMessage message = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder> - getMessageFieldBuilder() { + internalGetMessageFieldBuilder() { if (messageBuilder_ == null) { messageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PubsubMessage, com.google.pubsub.v1.PubsubMessage.Builder, com.google.pubsub.v1.PubsubMessageOrBuilder>( @@ -1023,17 +996,6 @@ public Builder clearDeliveryAttempt() { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ReceivedMessage) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java index ac4189647890..c5acfe765411 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ReceivedMessageOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ReceivedMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ReceivedMessage) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java index 0f4fa3c7ef37..bc68bddfc3a6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicy.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -38,31 +39,36 @@ * * Protobuf type {@code google.pubsub.v1.RetryPolicy} */ -public final class RetryPolicy extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class RetryPolicy extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.RetryPolicy) RetryPolicyOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RetryPolicy"); + } + // Use RetryPolicy.newBuilder() to construct. - private RetryPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RetryPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private RetryPolicy() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetryPolicy(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_RetryPolicy_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable @@ -310,38 +316,38 @@ public static com.google.pubsub.v1.RetryPolicy parseFrom( public static com.google.pubsub.v1.RetryPolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.RetryPolicy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.RetryPolicy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.RetryPolicy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.RetryPolicy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.RetryPolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -364,7 +370,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -388,7 +394,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.RetryPolicy} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.RetryPolicy) com.google.pubsub.v1.RetryPolicyOrBuilder { @@ -398,7 +404,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_RetryPolicy_fieldAccessorTable @@ -412,15 +418,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMinimumBackoffFieldBuilder(); - getMaximumBackoffFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMinimumBackoffFieldBuilder(); + internalGetMaximumBackoffFieldBuilder(); } } @@ -487,39 +493,6 @@ private void buildPartial0(com.google.pubsub.v1.RetryPolicy result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.RetryPolicy) { @@ -566,13 +539,15 @@ public Builder mergeFrom( break; case 10: { - input.readMessage(getMinimumBackoffFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetMinimumBackoffFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - input.readMessage(getMaximumBackoffFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetMaximumBackoffFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 @@ -596,7 +571,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.protobuf.Duration minimumBackoff_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> @@ -762,7 +737,7 @@ public Builder clearMinimumBackoff() { public com.google.protobuf.Duration.Builder getMinimumBackoffBuilder() { bitField0_ |= 0x00000001; onChanged(); - return getMinimumBackoffFieldBuilder().getBuilder(); + return internalGetMinimumBackoffFieldBuilder().getBuilder(); } /** @@ -799,14 +774,14 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { * .google.protobuf.Duration minimum_backoff = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getMinimumBackoffFieldBuilder() { + internalGetMinimumBackoffFieldBuilder() { if (minimumBackoffBuilder_ == null) { minimumBackoffBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( @@ -817,7 +792,7 @@ public com.google.protobuf.DurationOrBuilder getMinimumBackoffOrBuilder() { } private com.google.protobuf.Duration maximumBackoff_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> @@ -990,7 +965,7 @@ public Builder clearMaximumBackoff() { public com.google.protobuf.Duration.Builder getMaximumBackoffBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getMaximumBackoffFieldBuilder().getBuilder(); + return internalGetMaximumBackoffFieldBuilder().getBuilder(); } /** @@ -1029,14 +1004,14 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { * .google.protobuf.Duration maximum_backoff = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getMaximumBackoffFieldBuilder() { + internalGetMaximumBackoffFieldBuilder() { if (maximumBackoffBuilder_ == null) { maximumBackoffBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( @@ -1046,17 +1021,6 @@ public com.google.protobuf.DurationOrBuilder getMaximumBackoffOrBuilder() { return maximumBackoffBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.RetryPolicy) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java index 3685bcb546ea..1d458323120d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RetryPolicyOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface RetryPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.RetryPolicy) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java index fa7078f6a1fc..651e58a5aebb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.RollbackSchemaRequest} */ -public final class RollbackSchemaRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class RollbackSchemaRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.RollbackSchemaRequest) RollbackSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RollbackSchemaRequest"); + } + // Use RollbackSchemaRequest.newBuilder() to construct. - private RollbackSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RollbackSchemaRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private RollbackSchemaRequest() { revisionId_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RollbackSchemaRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable @@ -134,7 +140,7 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. The revision ID to roll back to. * It must be a revision of the same schema. * - * Example: c7cfa2a8 + * Example: c7cfa2a8 * * * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -161,7 +167,7 @@ public java.lang.String getRevisionId() { * Required. The revision ID to roll back to. * It must be a revision of the same schema. * - * Example: c7cfa2a8 + * Example: c7cfa2a8 * * * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -195,11 +201,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, revisionId_); } getUnknownFields().writeTo(output); } @@ -210,11 +216,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, revisionId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -291,38 +297,38 @@ public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.RollbackSchemaRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.RollbackSchemaRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.RollbackSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -345,7 +351,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -359,7 +365,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.RollbackSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.RollbackSchemaRequest) com.google.pubsub.v1.RollbackSchemaRequestOrBuilder { @@ -369,7 +375,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable @@ -381,7 +387,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.RollbackSchemaRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -435,39 +441,6 @@ private void buildPartial0(com.google.pubsub.v1.RollbackSchemaRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.RollbackSchemaRequest) { @@ -677,7 +650,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Required. The revision ID to roll back to. * It must be a revision of the same schema. * - * Example: c7cfa2a8 + * Example: c7cfa2a8 * * * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -703,7 +676,7 @@ public java.lang.String getRevisionId() { * Required. The revision ID to roll back to. * It must be a revision of the same schema. * - * Example: c7cfa2a8 + * Example: c7cfa2a8 * * * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -729,7 +702,7 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { * Required. The revision ID to roll back to. * It must be a revision of the same schema. * - * Example: c7cfa2a8 + * Example: c7cfa2a8 * * * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -754,7 +727,7 @@ public Builder setRevisionId(java.lang.String value) { * Required. The revision ID to roll back to. * It must be a revision of the same schema. * - * Example: c7cfa2a8 + * Example: c7cfa2a8 * * * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -775,7 +748,7 @@ public Builder clearRevisionId() { * Required. The revision ID to roll back to. * It must be a revision of the same schema. * - * Example: c7cfa2a8 + * Example: c7cfa2a8 * * * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -794,17 +767,6 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.RollbackSchemaRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java index c21bfd90aac6..3a99e5b045d0 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/RollbackSchemaRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface RollbackSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.RollbackSchemaRequest) @@ -61,7 +63,7 @@ public interface RollbackSchemaRequestOrBuilder * Required. The revision ID to roll back to. * It must be a revision of the same schema. * - * Example: c7cfa2a8 + * Example: c7cfa2a8 * * * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -77,7 +79,7 @@ public interface RollbackSchemaRequestOrBuilder * Required. The revision ID to roll back to. * It must be a revision of the same schema. * - * Example: c7cfa2a8 + * Example: c7cfa2a8 * * * string revision_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java index 863a75fe9a72..c5cf382ada72 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Schema.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.Schema} */ -public final class Schema extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class Schema extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.Schema) SchemaOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Schema"); + } + // Use Schema.newBuilder() to construct. - private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Schema(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -46,18 +58,12 @@ private Schema() { revisionId_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Schema(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto.internal_static_google_pubsub_v1_Schema_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_Schema_fieldAccessorTable @@ -108,6 +114,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + /** * * @@ -199,7 +215,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.Schema.getDescriptor().getEnumTypes().get(0); } @@ -503,17 +519,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (type_ != com.google.pubsub.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, definition_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(definition_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, definition_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, revisionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, revisionId_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getRevisionCreateTime()); @@ -527,17 +543,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (type_ != com.google.pubsub.v1.Schema.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(definition_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, definition_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(definition_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, definition_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(revisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, revisionId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRevisionCreateTime()); @@ -629,38 +645,38 @@ public static com.google.pubsub.v1.Schema parseFrom( public static com.google.pubsub.v1.Schema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.Schema parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Schema parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.Schema parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Schema parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.Schema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -683,7 +699,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -697,7 +713,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.Schema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Schema) com.google.pubsub.v1.SchemaOrBuilder { @@ -706,7 +722,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_Schema_fieldAccessorTable @@ -719,14 +735,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRevisionCreateTimeFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRevisionCreateTimeFieldBuilder(); } } @@ -800,39 +816,6 @@ private void buildPartial0(com.google.pubsub.v1.Schema result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Schema) { @@ -919,7 +902,7 @@ public Builder mergeFrom( case 50: { input.readMessage( - getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + internalGetRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 50 @@ -1395,7 +1378,7 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Timestamp revisionCreateTime_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> @@ -1554,7 +1537,7 @@ public Builder clearRevisionCreateTime() { public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); - return getRevisionCreateTimeFieldBuilder().getBuilder(); + return internalGetRevisionCreateTimeFieldBuilder().getBuilder(); } /** @@ -1589,14 +1572,14 @@ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { * .google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getRevisionCreateTimeFieldBuilder() { + internalGetRevisionCreateTimeFieldBuilder() { if (revisionCreateTimeBuilder_ == null) { revisionCreateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( @@ -1606,17 +1589,6 @@ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { return revisionCreateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Schema) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java index b6d585d04ed5..07b9739b1bf7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface SchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Schema) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java index c918247f897f..6964d4e1dea3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaProto.java @@ -14,14 +14,26 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; -public final class SchemaProto { +@com.google.protobuf.Generated +public final class SchemaProto extends com.google.protobuf.GeneratedFile { private SchemaProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SchemaProto"); + } + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { @@ -30,63 +42,63 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_Schema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_Schema_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_GetSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListSchemasRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListSchemasResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -214,121 +226,128 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_pubsub_v1_Schema_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_pubsub_v1_Schema_descriptor = getDescriptor().getMessageType(0); internal_static_google_pubsub_v1_Schema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Schema_descriptor, new java.lang.String[] { "Name", "Type", "Definition", "RevisionId", "RevisionCreateTime", }); internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageType(1); internal_static_google_pubsub_v1_CreateSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSchemaRequest_descriptor, new java.lang.String[] { "Parent", "Schema", "SchemaId", }); internal_static_google_pubsub_v1_GetSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageType(2); internal_static_google_pubsub_v1_GetSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_GetSchemaRequest_descriptor, new java.lang.String[] { "Name", "View", }); internal_static_google_pubsub_v1_ListSchemasRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageType(3); internal_static_google_pubsub_v1_ListSchemasRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSchemasRequest_descriptor, new java.lang.String[] { "Parent", "View", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSchemasResponse_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageType(4); internal_static_google_pubsub_v1_ListSchemasResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSchemasResponse_descriptor, new java.lang.String[] { "Schemas", "NextPageToken", }); internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageType(5); internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSchemaRevisionsRequest_descriptor, new java.lang.String[] { "Name", "View", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageType(6); internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSchemaRevisionsResponse_descriptor, new java.lang.String[] { "Schemas", "NextPageToken", }); internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageType(7); internal_static_google_pubsub_v1_CommitSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_CommitSchemaRequest_descriptor, new java.lang.String[] { "Name", "Schema", }); internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageType(8); internal_static_google_pubsub_v1_RollbackSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_RollbackSchemaRequest_descriptor, new java.lang.String[] { "Name", "RevisionId", }); internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageType(9); internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSchemaRevisionRequest_descriptor, new java.lang.String[] { "Name", "RevisionId", }); internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageType(10); internal_static_google_pubsub_v1_DeleteSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSchemaRequest_descriptor, new java.lang.String[] { "Name", }); internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageType(11); internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor, new java.lang.String[] { "Parent", "Schema", }); internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageType(12); internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor, new java.lang.String[] {}); internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageType(13); internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor, new java.lang.String[] { "Parent", "Name", "Schema", "Message", "Encoding", "SchemaSpec", }); internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageType(14); internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor, new java.lang.String[] {}); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -340,12 +359,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java index 8dc989fab6dd..b7f4a37ae583 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettings.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.SchemaSettings} */ -public final class SchemaSettings extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class SchemaSettings extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.SchemaSettings) SchemaSettingsOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SchemaSettings"); + } + // Use SchemaSettings.newBuilder() to construct. - private SchemaSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SchemaSettings(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -46,19 +58,13 @@ private SchemaSettings() { lastRevisionId_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SchemaSettings(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_SchemaSettings_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable @@ -294,17 +300,17 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schema_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, schema_); } if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(2, encoding_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firstRevisionId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, firstRevisionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(firstRevisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, firstRevisionId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastRevisionId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastRevisionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastRevisionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, lastRevisionId_); } getUnknownFields().writeTo(output); } @@ -315,17 +321,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(schema_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, schema_); } if (encoding_ != com.google.pubsub.v1.Encoding.ENCODING_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, encoding_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firstRevisionId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firstRevisionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(firstRevisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, firstRevisionId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastRevisionId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastRevisionId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastRevisionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, lastRevisionId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,38 +412,38 @@ public static com.google.pubsub.v1.SchemaSettings parseFrom( public static com.google.pubsub.v1.SchemaSettings parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.SchemaSettings parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.SchemaSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.SchemaSettings parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.SchemaSettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.SchemaSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -460,7 +466,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -474,7 +480,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.SchemaSettings} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SchemaSettings) com.google.pubsub.v1.SchemaSettingsOrBuilder { @@ -484,7 +490,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_SchemaSettings_fieldAccessorTable @@ -496,7 +502,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.SchemaSettings.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -557,39 +563,6 @@ private void buildPartial0(com.google.pubsub.v1.SchemaSettings result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.SchemaSettings) { @@ -1166,17 +1139,6 @@ public Builder setLastRevisionIdBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SchemaSettings) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java index 5b6d7c1cf0a8..a5f003482947 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaSettingsOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface SchemaSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SchemaSettings) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java index aeecfa82f72a..4a9a8232407f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaView.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,6 +29,7 @@ * * Protobuf enum {@code google.pubsub.v1.SchemaView} */ +@com.google.protobuf.Generated public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { /** * @@ -63,6 +65,16 @@ public enum SchemaView implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SchemaView"); + } + /** * * @@ -155,7 +167,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto.getDescriptor().getEnumTypes().get(0); } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java index 20b1493f504e..da4217b2ff3d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.SeekRequest} */ -public final class SeekRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class SeekRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekRequest) SeekRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SeekRequest"); + } + // Use SeekRequest.newBuilder() to construct. - private SeekRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SeekRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,18 +55,12 @@ private SeekRequest() { subscription_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SeekRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_SeekRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable @@ -352,14 +358,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscription_); } if (targetCase_ == 2) { output.writeMessage(2, (com.google.protobuf.Timestamp) target_); } if (targetCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); } getUnknownFields().writeTo(output); } @@ -370,8 +376,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscription_); } if (targetCase_ == 2) { size += @@ -379,7 +385,7 @@ public int getSerializedSize() { 2, (com.google.protobuf.Timestamp) target_); } if (targetCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -474,38 +480,38 @@ public static com.google.pubsub.v1.SeekRequest parseFrom( public static com.google.pubsub.v1.SeekRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.SeekRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.SeekRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.SeekRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.SeekRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.SeekRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -528,7 +534,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -542,7 +548,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.SeekRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SeekRequest) com.google.pubsub.v1.SeekRequestOrBuilder { @@ -552,7 +558,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable @@ -564,7 +570,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.SeekRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -627,39 +633,6 @@ private void buildPartialOneofs(com.google.pubsub.v1.SeekRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.SeekRequest) { @@ -729,7 +702,7 @@ public Builder mergeFrom( } // case 10 case 18: { - input.readMessage(getTimeFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage(internalGetTimeFieldBuilder().getBuilder(), extensionRegistry); targetCase_ = 2; break; } // case 18 @@ -894,7 +867,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> @@ -1122,7 +1095,7 @@ public Builder clearTime() { * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { - return getTimeFieldBuilder().getBuilder(); + return internalGetTimeFieldBuilder().getBuilder(); } /** @@ -1175,17 +1148,17 @@ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { * * .google.protobuf.Timestamp time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getTimeFieldBuilder() { + internalGetTimeFieldBuilder() { if (timeBuilder_ == null) { if (!(targetCase_ == 2)) { target_ = com.google.protobuf.Timestamp.getDefaultInstance(); } timeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( @@ -1360,17 +1333,6 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SeekRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java index c2dfb4a4ffd0..e597f2c528ee 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface SeekRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java index 62873623c524..882eb143a75f 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,32 +29,37 @@ * * Protobuf type {@code google.pubsub.v1.SeekResponse} */ -public final class SeekResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class SeekResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.SeekResponse) SeekResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SeekResponse"); + } + // Use SeekResponse.newBuilder() to construct. - private SeekResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SeekResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SeekResponse() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SeekResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_SeekResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable @@ -152,38 +158,38 @@ public static com.google.pubsub.v1.SeekResponse parseFrom( public static com.google.pubsub.v1.SeekResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.SeekResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.SeekResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.SeekResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.SeekResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.SeekResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -206,7 +212,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -220,7 +226,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.SeekResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.SeekResponse) com.google.pubsub.v1.SeekResponseOrBuilder { @@ -230,7 +236,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable @@ -242,7 +248,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.SeekResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -279,39 +285,6 @@ public com.google.pubsub.v1.SeekResponse buildPartial() { return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.SeekResponse) { @@ -367,17 +340,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.SeekResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java index 123ca3392f67..9d214afc7bcb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SeekResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface SeekResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.SeekResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java index 47e2309a9f64..b9179a72581d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Snapshot.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -32,14 +33,25 @@ * * Protobuf type {@code google.pubsub.v1.Snapshot} */ -public final class Snapshot extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class Snapshot extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.Snapshot) SnapshotOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Snapshot"); + } + // Use Snapshot.newBuilder() to construct. - private Snapshot(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Snapshot(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -48,12 +60,6 @@ private Snapshot() { topic_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Snapshot(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Snapshot_descriptor; } @@ -71,7 +77,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable @@ -396,16 +402,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, topic_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getExpireTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); getUnknownFields().writeTo(output); } @@ -416,11 +422,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, topic_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); @@ -521,38 +527,38 @@ public static com.google.pubsub.v1.Snapshot parseFrom( public static com.google.pubsub.v1.Snapshot parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.Snapshot parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Snapshot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.Snapshot parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Snapshot parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.Snapshot parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -575,7 +581,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -593,7 +599,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.Snapshot} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Snapshot) com.google.pubsub.v1.SnapshotOrBuilder { @@ -624,7 +630,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable @@ -637,14 +643,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getExpireTimeFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExpireTimeFieldBuilder(); } } @@ -712,39 +718,6 @@ private void buildPartial0(com.google.pubsub.v1.Snapshot result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Snapshot) { @@ -812,7 +785,8 @@ public Builder mergeFrom( } // case 18 case 26: { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetExpireTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 @@ -1085,7 +1059,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.Timestamp expireTime_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> @@ -1300,7 +1274,7 @@ public Builder clearExpireTime() { public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000004; onChanged(); - return getExpireTimeFieldBuilder().getBuilder(); + return internalGetExpireTimeFieldBuilder().getBuilder(); } /** @@ -1351,14 +1325,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpireTimeFieldBuilder() { + internalGetExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( @@ -1547,17 +1521,6 @@ public Builder putAllLabels(java.util.Map va return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Snapshot) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java index 0b8f450c376e..c84e5b505879 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface SnapshotOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Snapshot) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java index f052854be9c6..6187f41a0164 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -30,14 +31,25 @@ * * Protobuf type {@code google.pubsub.v1.StreamingPullRequest} */ -public final class StreamingPullRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class StreamingPullRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullRequest) StreamingPullRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StreamingPullRequest"); + } + // Use StreamingPullRequest.newBuilder() to construct. - private StreamingPullRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StreamingPullRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -49,19 +61,13 @@ private StreamingPullRequest() { clientId_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StreamingPullRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable @@ -567,11 +573,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, subscription_); } for (int i = 0; i < ackIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ackIds_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 2, ackIds_.getRaw(i)); } if (getModifyDeadlineSecondsList().size() > 0) { output.writeUInt32NoTag(26); @@ -581,14 +587,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt32NoTag(modifyDeadlineSeconds_.getInt(i)); } for (int i = 0; i < modifyDeadlineAckIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 4, modifyDeadlineAckIds_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 4, modifyDeadlineAckIds_.getRaw(i)); } if (streamAckDeadlineSeconds_ != 0) { output.writeInt32(5, streamAckDeadlineSeconds_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clientId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, clientId_); } if (maxOutstandingMessages_ != 0L) { output.writeInt64(7, maxOutstandingMessages_); @@ -608,8 +613,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subscription_); } { int dataSize = 0; @@ -644,8 +649,8 @@ public int getSerializedSize() { if (streamAckDeadlineSeconds_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, streamAckDeadlineSeconds_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clientId_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, clientId_); } if (maxOutstandingMessages_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxOutstandingMessages_); @@ -758,38 +763,38 @@ public static com.google.pubsub.v1.StreamingPullRequest parseFrom( public static com.google.pubsub.v1.StreamingPullRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -812,7 +817,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -828,7 +833,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.StreamingPullRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullRequest) com.google.pubsub.v1.StreamingPullRequestOrBuilder { @@ -838,7 +843,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable @@ -850,7 +855,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.StreamingPullRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -935,39 +940,6 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullRequest result) { } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullRequest) { @@ -2367,17 +2339,6 @@ public Builder clearProtocolVersion() { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java index 8f2b3b186f0f..6f4d94bcb2e6 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface StreamingPullRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java index 83f04a1ab732..2ec1bf15c470 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -29,14 +30,25 @@ * * Protobuf type {@code google.pubsub.v1.StreamingPullResponse} */ -public final class StreamingPullResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class StreamingPullResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse) StreamingPullResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StreamingPullResponse"); + } + // Use StreamingPullResponse.newBuilder() to construct. - private StreamingPullResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private StreamingPullResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -44,19 +56,13 @@ private StreamingPullResponse() { receivedMessages_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StreamingPullResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable @@ -309,14 +315,24 @@ public interface AcknowledgeConfirmationOrBuilder * * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation} */ - public static final class AcknowledgeConfirmation extends com.google.protobuf.GeneratedMessageV3 + public static final class AcknowledgeConfirmation extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) AcknowledgeConfirmationOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AcknowledgeConfirmation"); + } + // Use AcknowledgeConfirmation.newBuilder() to construct. - private AcknowledgeConfirmation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AcknowledgeConfirmation(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -327,19 +343,13 @@ private AcknowledgeConfirmation() { temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AcknowledgeConfirmation(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable @@ -647,16 +657,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < ackIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackIds_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, ackIds_.getRaw(i)); } for (int i = 0; i < invalidAckIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, invalidAckIds_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 2, invalidAckIds_.getRaw(i)); } for (int i = 0; i < unorderedAckIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unorderedAckIds_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 3, unorderedAckIds_.getRaw(i)); } for (int i = 0; i < temporaryFailedAckIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( + com.google.protobuf.GeneratedMessage.writeString( output, 4, temporaryFailedAckIds_.getRaw(i)); } getUnknownFields().writeTo(output); @@ -790,39 +800,39 @@ public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -846,8 +856,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -862,8 +871,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder { @@ -873,7 +881,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable @@ -886,7 +894,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -955,41 +963,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) { @@ -1897,18 +1870,6 @@ public Builder addTemporaryFailedAckIdsBytes(com.google.protobuf.ByteString valu return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) } @@ -2155,15 +2116,24 @@ public interface ModifyAckDeadlineConfirmationOrBuilder * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation} */ public static final class ModifyAckDeadlineConfirmation - extends com.google.protobuf.GeneratedMessageV3 + extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) ModifyAckDeadlineConfirmationOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModifyAckDeadlineConfirmation"); + } + // Use ModifyAckDeadlineConfirmation.newBuilder() to construct. - private ModifyAckDeadlineConfirmation( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ModifyAckDeadlineConfirmation(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -2173,19 +2143,13 @@ private ModifyAckDeadlineConfirmation() { temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ModifyAckDeadlineConfirmation(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable @@ -2426,13 +2390,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < ackIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackIds_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 1, ackIds_.getRaw(i)); } for (int i = 0; i < invalidAckIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, invalidAckIds_.getRaw(i)); + com.google.protobuf.GeneratedMessage.writeString(output, 2, invalidAckIds_.getRaw(i)); } for (int i = 0; i < temporaryFailedAckIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( + com.google.protobuf.GeneratedMessage.writeString( output, 3, temporaryFailedAckIds_.getRaw(i)); } getUnknownFields().writeTo(output); @@ -2557,33 +2521,33 @@ public int hashCode() { public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation @@ -2591,7 +2555,7 @@ public int hashCode() { com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -2615,8 +2579,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -2631,8 +2594,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder { @@ -2642,7 +2604,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable @@ -2656,7 +2618,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -2722,41 +2684,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other @@ -3456,18 +3383,6 @@ public Builder addTemporaryFailedAckIdsBytes(com.google.protobuf.ByteString valu return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) } @@ -3567,32 +3482,36 @@ public interface SubscriptionPropertiesOrBuilder * * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} */ - public static final class SubscriptionProperties extends com.google.protobuf.GeneratedMessageV3 + public static final class SubscriptionProperties extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) SubscriptionPropertiesOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SubscriptionProperties"); + } + // Use SubscriptionProperties.newBuilder() to construct. - private SubscriptionProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SubscriptionProperties(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private SubscriptionProperties() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SubscriptionProperties(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable @@ -3753,39 +3672,39 @@ public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -3809,8 +3728,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -3824,8 +3742,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.SubscriptionProperties} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder { @@ -3835,7 +3752,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_SubscriptionProperties_fieldAccessorTable @@ -3848,7 +3765,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -3905,41 +3822,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) { @@ -4137,18 +4019,6 @@ public Builder clearMessageOrderingEnabled() { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse.SubscriptionProperties) } @@ -4635,38 +4505,38 @@ public static com.google.pubsub.v1.StreamingPullResponse parseFrom( public static com.google.pubsub.v1.StreamingPullResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.StreamingPullResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.StreamingPullResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -4689,7 +4559,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -4704,7 +4574,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.StreamingPullResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse) com.google.pubsub.v1.StreamingPullResponseOrBuilder { @@ -4714,7 +4584,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable @@ -4728,17 +4598,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getReceivedMessagesFieldBuilder(); - getAcknowledgeConfirmationFieldBuilder(); - getModifyAckDeadlineConfirmationFieldBuilder(); - getSubscriptionPropertiesFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetReceivedMessagesFieldBuilder(); + internalGetAcknowledgeConfirmationFieldBuilder(); + internalGetModifyAckDeadlineConfirmationFieldBuilder(); + internalGetSubscriptionPropertiesFieldBuilder(); } } @@ -4842,39 +4712,6 @@ private void buildPartial0(com.google.pubsub.v1.StreamingPullResponse result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.StreamingPullResponse) { @@ -4906,8 +4743,8 @@ public Builder mergeFrom(com.google.pubsub.v1.StreamingPullResponse other) { receivedMessages_ = other.receivedMessages_; bitField0_ = (bitField0_ & ~0x00000001); receivedMessagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getReceivedMessagesFieldBuilder() + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetReceivedMessagesFieldBuilder() : null; } else { receivedMessagesBuilder_.addAllMessages(other.receivedMessages_); @@ -4965,21 +4802,24 @@ public Builder mergeFrom( case 26: { input.readMessage( - getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(), extensionRegistry); + internalGetModifyAckDeadlineConfirmationFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( - getSubscriptionPropertiesFieldBuilder().getBuilder(), extensionRegistry); + internalGetSubscriptionPropertiesFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( - getAcknowledgeConfirmationFieldBuilder().getBuilder(), extensionRegistry); + internalGetAcknowledgeConfirmationFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000002; break; } // case 42 @@ -5013,7 +4853,7 @@ private void ensureReceivedMessagesIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> @@ -5299,7 +5139,7 @@ public Builder removeReceivedMessages(int index) { * */ public com.google.pubsub.v1.ReceivedMessage.Builder getReceivedMessagesBuilder(int index) { - return getReceivedMessagesFieldBuilder().getBuilder(index); + return internalGetReceivedMessagesFieldBuilder().getBuilder(index); } /** @@ -5353,7 +5193,7 @@ public com.google.pubsub.v1.ReceivedMessageOrBuilder getReceivedMessagesOrBuilde * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() { - return getReceivedMessagesFieldBuilder() + return internalGetReceivedMessagesFieldBuilder() .addBuilder(com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } @@ -5369,7 +5209,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder() * */ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(int index) { - return getReceivedMessagesFieldBuilder() + return internalGetReceivedMessagesFieldBuilder() .addBuilder(index, com.google.pubsub.v1.ReceivedMessage.getDefaultInstance()); } @@ -5386,17 +5226,17 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i */ public java.util.List getReceivedMessagesBuilderList() { - return getReceivedMessagesFieldBuilder().getBuilderList(); + return internalGetReceivedMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder> - getReceivedMessagesFieldBuilder() { + internalGetReceivedMessagesFieldBuilder() { if (receivedMessagesBuilder_ == null) { receivedMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< + new com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.ReceivedMessage, com.google.pubsub.v1.ReceivedMessage.Builder, com.google.pubsub.v1.ReceivedMessageOrBuilder>( @@ -5411,7 +5251,7 @@ public com.google.pubsub.v1.ReceivedMessage.Builder addReceivedMessagesBuilder(i private com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledgeConfirmation_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder> @@ -5586,7 +5426,7 @@ public Builder clearAcknowledgeConfirmation() { getAcknowledgeConfirmationBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getAcknowledgeConfirmationFieldBuilder().getBuilder(); + return internalGetAcknowledgeConfirmationFieldBuilder().getBuilder(); } /** @@ -5625,14 +5465,14 @@ public Builder clearAcknowledgeConfirmation() { * .google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder> - getAcknowledgeConfirmationFieldBuilder() { + internalGetAcknowledgeConfirmationFieldBuilder() { if (acknowledgeConfirmationBuilder_ == null) { acknowledgeConfirmationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder>( @@ -5644,7 +5484,7 @@ public Builder clearAcknowledgeConfirmation() { private com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modifyAckDeadlineConfirmation_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder> @@ -5819,7 +5659,7 @@ public Builder clearModifyAckDeadlineConfirmation() { getModifyAckDeadlineConfirmationBuilder() { bitField0_ |= 0x00000004; onChanged(); - return getModifyAckDeadlineConfirmationFieldBuilder().getBuilder(); + return internalGetModifyAckDeadlineConfirmationFieldBuilder().getBuilder(); } /** @@ -5858,14 +5698,14 @@ public Builder clearModifyAckDeadlineConfirmation() { * .google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder> - getModifyAckDeadlineConfirmationFieldBuilder() { + internalGetModifyAckDeadlineConfirmationFieldBuilder() { if (modifyAckDeadlineConfirmationBuilder_ == null) { modifyAckDeadlineConfirmationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder, com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder>( @@ -5877,7 +5717,7 @@ public Builder clearModifyAckDeadlineConfirmation() { private com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscriptionProperties_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> @@ -6043,7 +5883,7 @@ public Builder clearSubscriptionProperties() { getSubscriptionPropertiesBuilder() { bitField0_ |= 0x00000008; onChanged(); - return getSubscriptionPropertiesFieldBuilder().getBuilder(); + return internalGetSubscriptionPropertiesFieldBuilder().getBuilder(); } /** @@ -6079,14 +5919,14 @@ public Builder clearSubscriptionProperties() { * .google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder> - getSubscriptionPropertiesFieldBuilder() { + internalGetSubscriptionPropertiesFieldBuilder() { if (subscriptionPropertiesBuilder_ == null) { subscriptionPropertiesBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties, com.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties.Builder, com.google.pubsub.v1.StreamingPullResponse.SubscriptionPropertiesOrBuilder>( @@ -6096,17 +5936,6 @@ public Builder clearSubscriptionProperties() { return subscriptionPropertiesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.StreamingPullResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java index 4802141688c6..6705ad05d1e8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/StreamingPullResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface StreamingPullResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index adccb455acf4..867496f2f823 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -30,14 +31,25 @@ * * Protobuf type {@code google.pubsub.v1.Subscription} */ -public final class Subscription extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class Subscription extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription) SubscriptionOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Subscription"); + } + // Use Subscription.newBuilder() to construct. - private Subscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Subscription(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -49,12 +61,6 @@ private Subscription() { messageTransforms_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Subscription(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Subscription_descriptor; @@ -75,7 +81,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Subscription_fieldAccessorTable @@ -129,6 +135,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + /** * * @@ -222,7 +238,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.Subscription.getDescriptor().getEnumTypes().get(0); } @@ -328,15 +344,24 @@ public interface AnalyticsHubSubscriptionInfoOrBuilder * Protobuf type {@code google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} */ public static final class AnalyticsHubSubscriptionInfo - extends com.google.protobuf.GeneratedMessageV3 + extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) AnalyticsHubSubscriptionInfoOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AnalyticsHubSubscriptionInfo"); + } + // Use AnalyticsHubSubscriptionInfo.newBuilder() to construct. - private AnalyticsHubSubscriptionInfo( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private AnalyticsHubSubscriptionInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -345,19 +370,13 @@ private AnalyticsHubSubscriptionInfo() { subscription_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AnalyticsHubSubscriptionInfo(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable @@ -498,11 +517,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(listing_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, listing_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(listing_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, listing_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, subscription_); } getUnknownFields().writeTo(output); } @@ -513,11 +532,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(listing_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, listing_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(listing_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, listing_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subscription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subscription_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subscription_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, subscription_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -594,38 +613,38 @@ public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo par public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -649,8 +668,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -665,8 +683,7 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder { @@ -676,7 +693,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Subscription_AnalyticsHubSubscriptionInfo_fieldAccessorTable @@ -688,7 +705,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -744,41 +761,6 @@ private void buildPartial0( } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) { @@ -1113,18 +1095,6 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { return this; } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo) } @@ -2408,8 +2378,8 @@ public int getTagsCount() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -2439,8 +2409,8 @@ public java.util.Map getTags() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -2460,8 +2430,8 @@ public java.util.Map getTagsMap() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -2488,8 +2458,8 @@ public java.util.Map getTagsMap() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -2524,11 +2494,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, topic_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPushConfig()); @@ -2542,7 +2512,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getMessageRetentionDuration()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 9); if (enableMessageOrdering_ != false) { output.writeBool(10, enableMessageOrdering_); @@ -2550,8 +2520,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(11, getExpirationPolicy()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, filter_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, filter_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(13, getDeadLetterPolicy()); @@ -2583,7 +2553,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < messageTransforms_.size(); i++) { output.writeMessage(25, messageTransforms_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 26); getUnknownFields().writeTo(output); } @@ -2594,11 +2564,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topic_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(topic_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, topic_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPushConfig()); @@ -2630,8 +2600,8 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, filter_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, filter_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeadLetterPolicy()); @@ -2862,38 +2832,38 @@ public static com.google.pubsub.v1.Subscription parseFrom( public static com.google.pubsub.v1.Subscription parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.Subscription parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Subscription parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.Subscription parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Subscription parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.Subscription parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -2916,7 +2886,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -2932,7 +2902,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.Subscription} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Subscription) com.google.pubsub.v1.SubscriptionOrBuilder { @@ -2968,7 +2938,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Subscription_fieldAccessorTable @@ -2982,23 +2952,23 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPushConfigFieldBuilder(); - getBigqueryConfigFieldBuilder(); - getCloudStorageConfigFieldBuilder(); - getMessageRetentionDurationFieldBuilder(); - getExpirationPolicyFieldBuilder(); - getDeadLetterPolicyFieldBuilder(); - getRetryPolicyFieldBuilder(); - getTopicMessageRetentionDurationFieldBuilder(); - getAnalyticsHubSubscriptionInfoFieldBuilder(); - getMessageTransformsFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPushConfigFieldBuilder(); + internalGetBigqueryConfigFieldBuilder(); + internalGetCloudStorageConfigFieldBuilder(); + internalGetMessageRetentionDurationFieldBuilder(); + internalGetExpirationPolicyFieldBuilder(); + internalGetDeadLetterPolicyFieldBuilder(); + internalGetRetryPolicyFieldBuilder(); + internalGetTopicMessageRetentionDurationFieldBuilder(); + internalGetAnalyticsHubSubscriptionInfoFieldBuilder(); + internalGetMessageTransformsFieldBuilder(); } } @@ -3208,39 +3178,6 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Subscription) { @@ -3334,8 +3271,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { messageTransforms_ = other.messageTransforms_; bitField0_ = (bitField0_ & ~0x00080000); messageTransformsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMessageTransformsFieldBuilder() + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMessageTransformsFieldBuilder() : null; } else { messageTransformsBuilder_.addAllMessages(other.messageTransforms_); @@ -3384,7 +3321,8 @@ public Builder mergeFrom( } // case 18 case 34: { - input.readMessage(getPushConfigFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetPushConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 34 @@ -3403,7 +3341,8 @@ public Builder mergeFrom( case 66: { input.readMessage( - getMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); + internalGetMessageRetentionDurationFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 @@ -3428,7 +3367,7 @@ public Builder mergeFrom( case 90: { input.readMessage( - getExpirationPolicyFieldBuilder().getBuilder(), extensionRegistry); + internalGetExpirationPolicyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 90 @@ -3441,13 +3380,14 @@ public Builder mergeFrom( case 106: { input.readMessage( - getDeadLetterPolicyFieldBuilder().getBuilder(), extensionRegistry); + internalGetDeadLetterPolicyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 106 case 114: { - input.readMessage(getRetryPolicyFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetRetryPolicyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 114 @@ -3466,13 +3406,15 @@ public Builder mergeFrom( case 138: { input.readMessage( - getTopicMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); + internalGetTopicMessageRetentionDurationFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00010000; break; } // case 138 case 146: { - input.readMessage(getBigqueryConfigFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetBigqueryConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 146 @@ -3485,14 +3427,15 @@ public Builder mergeFrom( case 178: { input.readMessage( - getCloudStorageConfigFieldBuilder().getBuilder(), extensionRegistry); + internalGetCloudStorageConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 178 case 186: { input.readMessage( - getAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(), extensionRegistry); + internalGetAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00040000; break; } // case 186 @@ -3815,7 +3758,7 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { } private com.google.pubsub.v1.PushConfig pushConfig_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> @@ -3974,7 +3917,7 @@ public Builder clearPushConfig() { public com.google.pubsub.v1.PushConfig.Builder getPushConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); - return getPushConfigFieldBuilder().getBuilder(); + return internalGetPushConfigFieldBuilder().getBuilder(); } /** @@ -4009,14 +3952,14 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { * .google.pubsub.v1.PushConfig push_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder> - getPushConfigFieldBuilder() { + internalGetPushConfigFieldBuilder() { if (pushConfigBuilder_ == null) { pushConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.PushConfig, com.google.pubsub.v1.PushConfig.Builder, com.google.pubsub.v1.PushConfigOrBuilder>( @@ -4027,7 +3970,7 @@ public com.google.pubsub.v1.PushConfigOrBuilder getPushConfigOrBuilder() { } private com.google.pubsub.v1.BigQueryConfig bigqueryConfig_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.BigQueryConfig, com.google.pubsub.v1.BigQueryConfig.Builder, com.google.pubsub.v1.BigQueryConfigOrBuilder> @@ -4193,7 +4136,7 @@ public Builder clearBigqueryConfig() { public com.google.pubsub.v1.BigQueryConfig.Builder getBigqueryConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); - return getBigqueryConfigFieldBuilder().getBuilder(); + return internalGetBigqueryConfigFieldBuilder().getBuilder(); } /** @@ -4230,14 +4173,14 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() * .google.pubsub.v1.BigQueryConfig bigquery_config = 18 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.BigQueryConfig, com.google.pubsub.v1.BigQueryConfig.Builder, com.google.pubsub.v1.BigQueryConfigOrBuilder> - getBigqueryConfigFieldBuilder() { + internalGetBigqueryConfigFieldBuilder() { if (bigqueryConfigBuilder_ == null) { bigqueryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.BigQueryConfig, com.google.pubsub.v1.BigQueryConfig.Builder, com.google.pubsub.v1.BigQueryConfigOrBuilder>( @@ -4248,7 +4191,7 @@ public com.google.pubsub.v1.BigQueryConfigOrBuilder getBigqueryConfigOrBuilder() } private com.google.pubsub.v1.CloudStorageConfig cloudStorageConfig_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.CloudStorageConfig, com.google.pubsub.v1.CloudStorageConfig.Builder, com.google.pubsub.v1.CloudStorageConfigOrBuilder> @@ -4416,7 +4359,7 @@ public Builder clearCloudStorageConfig() { public com.google.pubsub.v1.CloudStorageConfig.Builder getCloudStorageConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); - return getCloudStorageConfigFieldBuilder().getBuilder(); + return internalGetCloudStorageConfigFieldBuilder().getBuilder(); } /** @@ -4453,14 +4396,14 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB * .google.pubsub.v1.CloudStorageConfig cloud_storage_config = 22 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.CloudStorageConfig, com.google.pubsub.v1.CloudStorageConfig.Builder, com.google.pubsub.v1.CloudStorageConfigOrBuilder> - getCloudStorageConfigFieldBuilder() { + internalGetCloudStorageConfigFieldBuilder() { if (cloudStorageConfigBuilder_ == null) { cloudStorageConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.CloudStorageConfig, com.google.pubsub.v1.CloudStorageConfig.Builder, com.google.pubsub.v1.CloudStorageConfigOrBuilder>( @@ -4655,7 +4598,7 @@ public Builder clearRetainAckedMessages() { } private com.google.protobuf.Duration messageRetentionDuration_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> @@ -4843,7 +4786,7 @@ public Builder clearMessageRetentionDuration() { public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { bitField0_ |= 0x00000080; onChanged(); - return getMessageRetentionDurationFieldBuilder().getBuilder(); + return internalGetMessageRetentionDurationFieldBuilder().getBuilder(); } /** @@ -4886,14 +4829,14 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getMessageRetentionDurationFieldBuilder() { + internalGetMessageRetentionDurationFieldBuilder() { if (messageRetentionDurationBuilder_ == null) { messageRetentionDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( @@ -5148,7 +5091,7 @@ public Builder clearEnableMessageOrdering() { } private com.google.pubsub.v1.ExpirationPolicy expirationPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> @@ -5350,7 +5293,7 @@ public Builder clearExpirationPolicy() { public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() { bitField0_ |= 0x00000400; onChanged(); - return getExpirationPolicyFieldBuilder().getBuilder(); + return internalGetExpirationPolicyFieldBuilder().getBuilder(); } /** @@ -5397,14 +5340,14 @@ public com.google.pubsub.v1.ExpirationPolicyOrBuilder getExpirationPolicyOrBuild * .google.pubsub.v1.ExpirationPolicy expiration_policy = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder> - getExpirationPolicyFieldBuilder() { + internalGetExpirationPolicyFieldBuilder() { if (expirationPolicyBuilder_ == null) { expirationPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.ExpirationPolicy, com.google.pubsub.v1.ExpirationPolicy.Builder, com.google.pubsub.v1.ExpirationPolicyOrBuilder>( @@ -5546,7 +5489,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } private com.google.pubsub.v1.DeadLetterPolicy deadLetterPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.DeadLetterPolicy, com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder> @@ -5755,7 +5698,7 @@ public Builder clearDeadLetterPolicy() { public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() { bitField0_ |= 0x00001000; onChanged(); - return getDeadLetterPolicyFieldBuilder().getBuilder(); + return internalGetDeadLetterPolicyFieldBuilder().getBuilder(); } /** @@ -5804,14 +5747,14 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * .google.pubsub.v1.DeadLetterPolicy dead_letter_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.DeadLetterPolicy, com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder> - getDeadLetterPolicyFieldBuilder() { + internalGetDeadLetterPolicyFieldBuilder() { if (deadLetterPolicyBuilder_ == null) { deadLetterPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.DeadLetterPolicy, com.google.pubsub.v1.DeadLetterPolicy.Builder, com.google.pubsub.v1.DeadLetterPolicyOrBuilder>( @@ -5822,7 +5765,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild } private com.google.pubsub.v1.RetryPolicy retryPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.RetryPolicy, com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder> @@ -6023,7 +5966,7 @@ public Builder clearRetryPolicy() { public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { bitField0_ |= 0x00002000; onChanged(); - return getRetryPolicyFieldBuilder().getBuilder(); + return internalGetRetryPolicyFieldBuilder().getBuilder(); } /** @@ -6070,14 +6013,14 @@ public com.google.pubsub.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { * .google.pubsub.v1.RetryPolicy retry_policy = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.RetryPolicy, com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder> - getRetryPolicyFieldBuilder() { + internalGetRetryPolicyFieldBuilder() { if (retryPolicyBuilder_ == null) { retryPolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.RetryPolicy, com.google.pubsub.v1.RetryPolicy.Builder, com.google.pubsub.v1.RetryPolicyOrBuilder>( @@ -6248,7 +6191,7 @@ public Builder clearEnableExactlyOnceDelivery() { } private com.google.protobuf.Duration topicMessageRetentionDuration_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> @@ -6444,7 +6387,7 @@ public Builder clearTopicMessageRetentionDuration() { public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuilder() { bitField0_ |= 0x00010000; onChanged(); - return getTopicMessageRetentionDurationFieldBuilder().getBuilder(); + return internalGetTopicMessageRetentionDurationFieldBuilder().getBuilder(); } /** @@ -6489,14 +6432,14 @@ public com.google.protobuf.DurationOrBuilder getTopicMessageRetentionDurationOrB * .google.protobuf.Duration topic_message_retention_duration = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTopicMessageRetentionDurationFieldBuilder() { + internalGetTopicMessageRetentionDurationFieldBuilder() { if (topicMessageRetentionDurationBuilder_ == null) { topicMessageRetentionDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( @@ -6618,7 +6561,7 @@ public Builder clearState() { private com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analyticsHubSubscriptionInfo_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo, com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder> @@ -6791,7 +6734,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { getAnalyticsHubSubscriptionInfoBuilder() { bitField0_ |= 0x00040000; onChanged(); - return getAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(); + return internalGetAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(); } /** @@ -6829,14 +6772,14 @@ public Builder clearAnalyticsHubSubscriptionInfo() { * .google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo analytics_hub_subscription_info = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo, com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder> - getAnalyticsHubSubscriptionInfoFieldBuilder() { + internalGetAnalyticsHubSubscriptionInfoFieldBuilder() { if (analyticsHubSubscriptionInfoBuilder_ == null) { analyticsHubSubscriptionInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo, com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder, com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoOrBuilder>( @@ -6857,7 +6800,7 @@ private void ensureMessageTransformsIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.MessageTransform, com.google.pubsub.v1.MessageTransform.Builder, com.google.pubsub.v1.MessageTransformOrBuilder> @@ -7156,7 +7099,7 @@ public Builder removeMessageTransforms(int index) { * */ public com.google.pubsub.v1.MessageTransform.Builder getMessageTransformsBuilder(int index) { - return getMessageTransformsFieldBuilder().getBuilder(index); + return internalGetMessageTransformsFieldBuilder().getBuilder(index); } /** @@ -7213,7 +7156,7 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil * */ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder() { - return getMessageTransformsFieldBuilder() + return internalGetMessageTransformsFieldBuilder() .addBuilder(com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } @@ -7230,7 +7173,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder * */ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder(int index) { - return getMessageTransformsFieldBuilder() + return internalGetMessageTransformsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } @@ -7248,17 +7191,17 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder */ public java.util.List getMessageTransformsBuilderList() { - return getMessageTransformsFieldBuilder().getBuilderList(); + return internalGetMessageTransformsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.MessageTransform, com.google.pubsub.v1.MessageTransform.Builder, com.google.pubsub.v1.MessageTransformOrBuilder> - getMessageTransformsFieldBuilder() { + internalGetMessageTransformsFieldBuilder() { if (messageTransformsBuilder_ == null) { messageTransformsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< + new com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.MessageTransform, com.google.pubsub.v1.MessageTransform.Builder, com.google.pubsub.v1.MessageTransformOrBuilder>( @@ -7303,8 +7246,8 @@ public int getTagsCount() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -7334,8 +7277,8 @@ public java.util.Map getTags() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -7355,8 +7298,8 @@ public java.util.Map getTagsMap() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -7383,8 +7326,8 @@ public java.util.Map getTagsMap() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -7417,8 +7360,8 @@ public Builder clearTags() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -7448,8 +7391,8 @@ public java.util.Map getMutableTags() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -7476,8 +7419,8 @@ public Builder putTags(java.lang.String key, java.lang.String value) { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -7492,17 +7435,6 @@ public Builder putAllTags(java.util.Map valu return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Subscription) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 371f05913de4..3b693212802b 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface SubscriptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Subscription) @@ -897,8 +899,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -915,8 +917,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -937,8 +939,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -955,8 +957,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -977,8 +979,8 @@ java.lang.String getTagsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java index 563a2feb5815..52f12129f3bb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Topic.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.Topic} */ -public final class Topic extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class Topic extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.Topic) TopicOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Topic"); + } + // Use Topic.newBuilder() to construct. - private Topic(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private Topic(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -46,12 +58,6 @@ private Topic() { messageTransforms_ = java.util.Collections.emptyList(); } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Topic(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto.internal_static_google_pubsub_v1_Topic_descriptor; } @@ -71,7 +77,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Topic_fieldAccessorTable @@ -124,6 +130,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + /** * * @@ -217,7 +233,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.pubsub.v1.Topic.getDescriptor().getEnumTypes().get(0); } @@ -933,8 +949,8 @@ public int getTagsCount() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -964,8 +980,8 @@ public java.util.Map getTags() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -985,8 +1001,8 @@ public java.util.Map getTagsMap() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -1013,8 +1029,8 @@ public java.util.Map getTagsMap() { *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -1049,16 +1065,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getMessageStoragePolicy()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kmsKeyName_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, kmsKeyName_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getSchemaSettings()); @@ -1078,7 +1094,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < messageTransforms_.size(); i++) { output.writeMessage(13, messageTransforms_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 14); getUnknownFields().writeTo(output); } @@ -1089,8 +1105,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { @@ -1106,8 +1122,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMessageStoragePolicy()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, kmsKeyName_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, kmsKeyName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSchemaSettings()); @@ -1269,38 +1285,38 @@ public static com.google.pubsub.v1.Topic parseFrom( public static com.google.pubsub.v1.Topic parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.Topic parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Topic parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.Topic parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.Topic parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.Topic parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -1323,7 +1339,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -1337,7 +1353,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.Topic} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.Topic) com.google.pubsub.v1.TopicOrBuilder { @@ -1372,7 +1388,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_Topic_fieldAccessorTable @@ -1385,18 +1401,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getMessageStoragePolicyFieldBuilder(); - getSchemaSettingsFieldBuilder(); - getMessageRetentionDurationFieldBuilder(); - getIngestionDataSourceSettingsFieldBuilder(); - getMessageTransformsFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMessageStoragePolicyFieldBuilder(); + internalGetSchemaSettingsFieldBuilder(); + internalGetMessageRetentionDurationFieldBuilder(); + internalGetIngestionDataSourceSettingsFieldBuilder(); + internalGetMessageTransformsFieldBuilder(); } } @@ -1534,39 +1550,6 @@ private void buildPartial0(com.google.pubsub.v1.Topic result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.Topic) { @@ -1628,8 +1611,8 @@ public Builder mergeFrom(com.google.pubsub.v1.Topic other) { messageTransforms_ = other.messageTransforms_; bitField0_ = (bitField0_ & ~0x00000200); messageTransformsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMessageTransformsFieldBuilder() + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMessageTransformsFieldBuilder() : null; } else { messageTransformsBuilder_.addAllMessages(other.messageTransforms_); @@ -1685,7 +1668,7 @@ public Builder mergeFrom( case 26: { input.readMessage( - getMessageStoragePolicyFieldBuilder().getBuilder(), extensionRegistry); + internalGetMessageStoragePolicyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 @@ -1697,7 +1680,8 @@ public Builder mergeFrom( } // case 42 case 50: { - input.readMessage(getSchemaSettingsFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetSchemaSettingsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 50 @@ -1710,7 +1694,8 @@ public Builder mergeFrom( case 66: { input.readMessage( - getMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); + internalGetMessageRetentionDurationFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000040; break; } // case 66 @@ -1723,7 +1708,8 @@ public Builder mergeFrom( case 82: { input.readMessage( - getIngestionDataSourceSettingsFieldBuilder().getBuilder(), extensionRegistry); + internalGetIngestionDataSourceSettingsFieldBuilder().getBuilder(), + extensionRegistry); bitField0_ |= 0x00000100; break; } // case 82 @@ -2094,7 +2080,7 @@ public Builder putAllLabels(java.util.Map va } private com.google.pubsub.v1.MessageStoragePolicy messageStoragePolicy_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> @@ -2269,7 +2255,7 @@ public Builder clearMessageStoragePolicy() { public com.google.pubsub.v1.MessageStoragePolicy.Builder getMessageStoragePolicyBuilder() { bitField0_ |= 0x00000004; onChanged(); - return getMessageStoragePolicyFieldBuilder().getBuilder(); + return internalGetMessageStoragePolicyFieldBuilder().getBuilder(); } /** @@ -2308,14 +2294,14 @@ public com.google.pubsub.v1.MessageStoragePolicyOrBuilder getMessageStoragePolic * .google.pubsub.v1.MessageStoragePolicy message_storage_policy = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder> - getMessageStoragePolicyFieldBuilder() { + internalGetMessageStoragePolicyFieldBuilder() { if (messageStoragePolicyBuilder_ == null) { messageStoragePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.MessageStoragePolicy, com.google.pubsub.v1.MessageStoragePolicy.Builder, com.google.pubsub.v1.MessageStoragePolicyOrBuilder>( @@ -2462,7 +2448,7 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { } private com.google.pubsub.v1.SchemaSettings schemaSettings_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.SchemaSettings, com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder> @@ -2621,7 +2607,7 @@ public Builder clearSchemaSettings() { public com.google.pubsub.v1.SchemaSettings.Builder getSchemaSettingsBuilder() { bitField0_ |= 0x00000010; onChanged(); - return getSchemaSettingsFieldBuilder().getBuilder(); + return internalGetSchemaSettingsFieldBuilder().getBuilder(); } /** @@ -2656,14 +2642,14 @@ public com.google.pubsub.v1.SchemaSettingsOrBuilder getSchemaSettingsOrBuilder() * .google.pubsub.v1.SchemaSettings schema_settings = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.SchemaSettings, com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder> - getSchemaSettingsFieldBuilder() { + internalGetSchemaSettingsFieldBuilder() { if (schemaSettingsBuilder_ == null) { schemaSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.SchemaSettings, com.google.pubsub.v1.SchemaSettings.Builder, com.google.pubsub.v1.SchemaSettingsOrBuilder>( @@ -2733,7 +2719,7 @@ public Builder clearSatisfiesPzs() { } private com.google.protobuf.Duration messageRetentionDuration_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> @@ -2949,7 +2935,7 @@ public Builder clearMessageRetentionDuration() { public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { bitField0_ |= 0x00000040; onChanged(); - return getMessageRetentionDurationFieldBuilder().getBuilder(); + return internalGetMessageRetentionDurationFieldBuilder().getBuilder(); } /** @@ -3000,14 +2986,14 @@ public com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilde * .google.protobuf.Duration message_retention_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getMessageRetentionDurationFieldBuilder() { + internalGetMessageRetentionDurationFieldBuilder() { if (messageRetentionDurationBuilder_ == null) { messageRetentionDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( @@ -3117,7 +3103,7 @@ public Builder clearState() { } private com.google.pubsub.v1.IngestionDataSourceSettings ingestionDataSourceSettings_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings, com.google.pubsub.v1.IngestionDataSourceSettings.Builder, com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> @@ -3281,7 +3267,7 @@ public Builder clearIngestionDataSourceSettings() { getIngestionDataSourceSettingsBuilder() { bitField0_ |= 0x00000100; onChanged(); - return getIngestionDataSourceSettingsFieldBuilder().getBuilder(); + return internalGetIngestionDataSourceSettingsFieldBuilder().getBuilder(); } /** @@ -3317,14 +3303,14 @@ public Builder clearIngestionDataSourceSettings() { * .google.pubsub.v1.IngestionDataSourceSettings ingestion_data_source_settings = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings, com.google.pubsub.v1.IngestionDataSourceSettings.Builder, com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder> - getIngestionDataSourceSettingsFieldBuilder() { + internalGetIngestionDataSourceSettingsFieldBuilder() { if (ingestionDataSourceSettingsBuilder_ == null) { ingestionDataSourceSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.IngestionDataSourceSettings, com.google.pubsub.v1.IngestionDataSourceSettings.Builder, com.google.pubsub.v1.IngestionDataSourceSettingsOrBuilder>( @@ -3345,7 +3331,7 @@ private void ensureMessageTransformsIsMutable() { } } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.MessageTransform, com.google.pubsub.v1.MessageTransform.Builder, com.google.pubsub.v1.MessageTransformOrBuilder> @@ -3644,7 +3630,7 @@ public Builder removeMessageTransforms(int index) { * */ public com.google.pubsub.v1.MessageTransform.Builder getMessageTransformsBuilder(int index) { - return getMessageTransformsFieldBuilder().getBuilder(index); + return internalGetMessageTransformsFieldBuilder().getBuilder(index); } /** @@ -3701,7 +3687,7 @@ public com.google.pubsub.v1.MessageTransformOrBuilder getMessageTransformsOrBuil * */ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder() { - return getMessageTransformsFieldBuilder() + return internalGetMessageTransformsFieldBuilder() .addBuilder(com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } @@ -3718,7 +3704,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder * */ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder(int index) { - return getMessageTransformsFieldBuilder() + return internalGetMessageTransformsFieldBuilder() .addBuilder(index, com.google.pubsub.v1.MessageTransform.getDefaultInstance()); } @@ -3736,17 +3722,17 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder */ public java.util.List getMessageTransformsBuilderList() { - return getMessageTransformsFieldBuilder().getBuilderList(); + return internalGetMessageTransformsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< + private com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.MessageTransform, com.google.pubsub.v1.MessageTransform.Builder, com.google.pubsub.v1.MessageTransformOrBuilder> - getMessageTransformsFieldBuilder() { + internalGetMessageTransformsFieldBuilder() { if (messageTransformsBuilder_ == null) { messageTransformsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< + new com.google.protobuf.RepeatedFieldBuilder< com.google.pubsub.v1.MessageTransform, com.google.pubsub.v1.MessageTransform.Builder, com.google.pubsub.v1.MessageTransformOrBuilder>( @@ -3791,8 +3777,8 @@ public int getTagsCount() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -3822,8 +3808,8 @@ public java.util.Map getTags() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -3843,8 +3829,8 @@ public java.util.Map getTagsMap() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -3871,8 +3857,8 @@ public java.util.Map getTagsMap() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -3905,8 +3891,8 @@ public Builder clearTags() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -3936,8 +3922,8 @@ public java.util.Map getMutableTags() { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -3964,8 +3950,8 @@ public Builder putTags(java.lang.String key, java.lang.String value) { *
            * Optional. Input only. Immutable. Tag keys/values directly bound to this
            * resource. For example:
      -     *   "123/environment": "production",
      -     *   "123/costCenter": "marketing"
      +     * "123/environment": "production",
      +     * "123/costCenter": "marketing"
            * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
            * using tags with Pub/Sub resources.
            * 
      @@ -3980,17 +3966,6 @@ public Builder putAllTags(java.util.Map valu return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.Topic) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java index 6ba83cf390c9..4d3334471535 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface TopicOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.Topic) @@ -490,8 +492,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -508,8 +510,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -530,8 +532,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -548,8 +550,8 @@ java.lang.String getLabelsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      @@ -570,8 +572,8 @@ java.lang.String getTagsOrDefault( *
          * Optional. Input only. Immutable. Tag keys/values directly bound to this
          * resource. For example:
      -   *   "123/environment": "production",
      -   *   "123/costCenter": "marketing"
      +   * "123/environment": "production",
      +   * "123/costCenter": "marketing"
          * See https://docs.cloud.google.com/pubsub/docs/tags for more information on
          * using tags with Pub/Sub resources.
          * 
      diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java index dff4fc4fecc6..954a9f822602 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,32 +29,37 @@ * * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} */ -public final class UpdateSnapshotRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class UpdateSnapshotRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSnapshotRequest) UpdateSnapshotRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateSnapshotRequest"); + } + // Use UpdateSnapshotRequest.newBuilder() to construct. - private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateSnapshotRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UpdateSnapshotRequest() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateSnapshotRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable @@ -287,38 +293,38 @@ public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateSnapshotRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateSnapshotRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -341,7 +347,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -355,7 +361,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.UpdateSnapshotRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateSnapshotRequest) com.google.pubsub.v1.UpdateSnapshotRequestOrBuilder { @@ -365,7 +371,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable @@ -379,15 +385,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSnapshotFieldBuilder(); - getUpdateMaskFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnapshotFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); } } @@ -453,39 +459,6 @@ private void buildPartial0(com.google.pubsub.v1.UpdateSnapshotRequest result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateSnapshotRequest) { @@ -532,13 +505,15 @@ public Builder mergeFrom( break; case 10: { - input.readMessage(getSnapshotFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 @@ -562,7 +537,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.pubsub.v1.Snapshot snapshot_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> @@ -712,7 +687,7 @@ public Builder clearSnapshot() { public com.google.pubsub.v1.Snapshot.Builder getSnapshotBuilder() { bitField0_ |= 0x00000001; onChanged(); - return getSnapshotFieldBuilder().getBuilder(); + return internalGetSnapshotFieldBuilder().getBuilder(); } /** @@ -743,14 +718,14 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { * .google.pubsub.v1.Snapshot snapshot = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder> - getSnapshotFieldBuilder() { + internalGetSnapshotFieldBuilder() { if (snapshotBuilder_ == null) { snapshotBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Snapshot, com.google.pubsub.v1.Snapshot.Builder, com.google.pubsub.v1.SnapshotOrBuilder>( @@ -761,7 +736,7 @@ public com.google.pubsub.v1.SnapshotOrBuilder getSnapshotOrBuilder() { } private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> @@ -920,7 +895,7 @@ public Builder clearUpdateMask() { public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); } /** @@ -955,14 +930,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { + internalGetUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( @@ -972,17 +947,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateSnapshotRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java index 1f2dde4090e0..76a1b76dcba7 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSnapshotRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface UpdateSnapshotRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateSnapshotRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java index fca247f1958a..59183a696533 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,32 +29,37 @@ * * Protobuf type {@code google.pubsub.v1.UpdateSubscriptionRequest} */ -public final class UpdateSubscriptionRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class UpdateSubscriptionRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateSubscriptionRequest) UpdateSubscriptionRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateSubscriptionRequest"); + } + // Use UpdateSubscriptionRequest.newBuilder() to construct. - private UpdateSubscriptionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateSubscriptionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UpdateSubscriptionRequest() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateSubscriptionRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable @@ -297,38 +303,38 @@ public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateSubscriptionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateSubscriptionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -351,7 +357,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -365,7 +371,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.UpdateSubscriptionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateSubscriptionRequest) com.google.pubsub.v1.UpdateSubscriptionRequestOrBuilder { @@ -375,7 +381,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable @@ -389,15 +395,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSubscriptionFieldBuilder(); - getUpdateMaskFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSubscriptionFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); } } @@ -464,39 +470,6 @@ private void buildPartial0(com.google.pubsub.v1.UpdateSubscriptionRequest result result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateSubscriptionRequest) { @@ -543,13 +516,15 @@ public Builder mergeFrom( break; case 10: { - input.readMessage(getSubscriptionFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetSubscriptionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 @@ -573,7 +548,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.pubsub.v1.Subscription subscription_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> @@ -732,7 +707,7 @@ public Builder clearSubscription() { public com.google.pubsub.v1.Subscription.Builder getSubscriptionBuilder() { bitField0_ |= 0x00000001; onChanged(); - return getSubscriptionFieldBuilder().getBuilder(); + return internalGetSubscriptionFieldBuilder().getBuilder(); } /** @@ -767,14 +742,14 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { * .google.pubsub.v1.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder> - getSubscriptionFieldBuilder() { + internalGetSubscriptionFieldBuilder() { if (subscriptionBuilder_ == null) { subscriptionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Subscription, com.google.pubsub.v1.Subscription.Builder, com.google.pubsub.v1.SubscriptionOrBuilder>( @@ -785,7 +760,7 @@ public com.google.pubsub.v1.SubscriptionOrBuilder getSubscriptionOrBuilder() { } private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> @@ -944,7 +919,7 @@ public Builder clearUpdateMask() { public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); } /** @@ -979,14 +954,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { + internalGetUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( @@ -996,17 +971,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateSubscriptionRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java index 6a180c218efe..e54b29c99721 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateSubscriptionRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface UpdateSubscriptionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateSubscriptionRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java index f6b0db9d5d47..a504c1e61379 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,32 +29,37 @@ * * Protobuf type {@code google.pubsub.v1.UpdateTopicRequest} */ -public final class UpdateTopicRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class UpdateTopicRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.UpdateTopicRequest) UpdateTopicRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateTopicRequest"); + } + // Use UpdateTopicRequest.newBuilder() to construct. - private UpdateTopicRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateTopicRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private UpdateTopicRequest() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateTopicRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateTopicRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable @@ -295,38 +301,38 @@ public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( public static com.google.pubsub.v1.UpdateTopicRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateTopicRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.UpdateTopicRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -349,7 +355,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -363,7 +369,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.UpdateTopicRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.UpdateTopicRequest) com.google.pubsub.v1.UpdateTopicRequestOrBuilder { @@ -373,7 +379,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.PubsubProto .internal_static_google_pubsub_v1_UpdateTopicRequest_fieldAccessorTable @@ -387,15 +393,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTopicFieldBuilder(); - getUpdateMaskFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTopicFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); } } @@ -461,39 +467,6 @@ private void buildPartial0(com.google.pubsub.v1.UpdateTopicRequest result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.UpdateTopicRequest) { @@ -540,13 +513,14 @@ public Builder mergeFrom( break; case 10: { - input.readMessage(getTopicFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage(internalGetTopicFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 @@ -570,7 +544,7 @@ public Builder mergeFrom( private int bitField0_; private com.google.pubsub.v1.Topic topic_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> @@ -713,7 +687,7 @@ public Builder clearTopic() { public com.google.pubsub.v1.Topic.Builder getTopicBuilder() { bitField0_ |= 0x00000001; onChanged(); - return getTopicFieldBuilder().getBuilder(); + return internalGetTopicFieldBuilder().getBuilder(); } /** @@ -742,14 +716,14 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { * * .google.pubsub.v1.Topic topic = 1 [(.google.api.field_behavior) = REQUIRED]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder> - getTopicFieldBuilder() { + internalGetTopicFieldBuilder() { if (topicBuilder_ == null) { topicBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic.Builder, com.google.pubsub.v1.TopicOrBuilder>(getTopic(), getParentForChildren(), isClean()); @@ -759,7 +733,7 @@ public com.google.pubsub.v1.TopicOrBuilder getTopicOrBuilder() { } private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> @@ -939,7 +913,7 @@ public Builder clearUpdateMask() { public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); } /** @@ -980,14 +954,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { + internalGetUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( @@ -997,17 +971,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.UpdateTopicRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java index dc69ff6239c1..180f0b5b0213 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UpdateTopicRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface UpdateTopicRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.UpdateTopicRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java index 0c1d390feb03..2acb3165e7c8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ValidateMessageRequest} */ -public final class ValidateMessageRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ValidateMessageRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageRequest) ValidateMessageRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ValidateMessageRequest"); + } + // Use ValidateMessageRequest.newBuilder() to construct. - private ValidateMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ValidateMessageRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -45,19 +57,13 @@ private ValidateMessageRequest() { encoding_ = 0; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ValidateMessageRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateMessageRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable @@ -377,11 +383,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); } if (schemaSpecCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaSpec_); + com.google.protobuf.GeneratedMessage.writeString(output, 2, schemaSpec_); } if (schemaSpecCase_ == 3) { output.writeMessage(3, (com.google.pubsub.v1.Schema) schemaSpec_); @@ -401,11 +407,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); } if (schemaSpecCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaSpec_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, schemaSpec_); } if (schemaSpecCase_ == 3) { size += @@ -519,38 +525,38 @@ public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( public static com.google.pubsub.v1.ValidateMessageRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ValidateMessageRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateMessageRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateMessageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -573,7 +579,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -587,7 +593,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ValidateMessageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateMessageRequest) com.google.pubsub.v1.ValidateMessageRequestOrBuilder { @@ -597,7 +603,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateMessageRequest_fieldAccessorTable @@ -609,7 +615,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ValidateMessageRequest.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -681,39 +687,6 @@ private void buildPartialOneofs(com.google.pubsub.v1.ValidateMessageRequest resu } } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ValidateMessageRequest) { @@ -731,7 +704,7 @@ public Builder mergeFrom(com.google.pubsub.v1.ValidateMessageRequest other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getMessage() != com.google.protobuf.ByteString.EMPTY) { + if (!other.getMessage().isEmpty()) { setMessage(other.getMessage()); } if (other.encoding_ != 0) { @@ -796,7 +769,7 @@ public Builder mergeFrom( } // case 18 case 26: { - input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage(internalGetSchemaFieldBuilder().getBuilder(), extensionRegistry); schemaSpecCase_ = 3; break; } // case 26 @@ -1122,7 +1095,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> @@ -1281,7 +1254,7 @@ public Builder clearSchema() { * .google.pubsub.v1.Schema schema = 3; */ public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { - return getSchemaFieldBuilder().getBuilder(); + return internalGetSchemaFieldBuilder().getBuilder(); } /** @@ -1314,17 +1287,17 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * * .google.pubsub.v1.Schema schema = 3; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> - getSchemaFieldBuilder() { + internalGetSchemaFieldBuilder() { if (schemaBuilder_ == null) { if (!(schemaSpecCase_ == 3)) { schemaSpec_ = com.google.pubsub.v1.Schema.getDefaultInstance(); } schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( @@ -1488,17 +1461,6 @@ public Builder clearEncoding() { return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateMessageRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java index cc528d1b8705..5f00d2f91a2c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ValidateMessageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateMessageRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java index adc83bf94a3f..559ef7b70bb1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -29,32 +30,37 @@ * * Protobuf type {@code google.pubsub.v1.ValidateMessageResponse} */ -public final class ValidateMessageResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ValidateMessageResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateMessageResponse) ValidateMessageResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ValidateMessageResponse"); + } + // Use ValidateMessageResponse.newBuilder() to construct. - private ValidateMessageResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ValidateMessageResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ValidateMessageResponse() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ValidateMessageResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateMessageResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable @@ -155,38 +161,38 @@ public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( public static com.google.pubsub.v1.ValidateMessageResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ValidateMessageResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateMessageResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateMessageResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -209,7 +215,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -224,7 +230,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ValidateMessageResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateMessageResponse) com.google.pubsub.v1.ValidateMessageResponseOrBuilder { @@ -234,7 +240,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateMessageResponse_fieldAccessorTable @@ -246,7 +252,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ValidateMessageResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -284,39 +290,6 @@ public com.google.pubsub.v1.ValidateMessageResponse buildPartial() { return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ValidateMessageResponse) { @@ -372,17 +345,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateMessageResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java index a86e7459c79e..387ce625e061 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateMessageResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ValidateMessageResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateMessageResponse) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java index 4bef8e405f8d..27199f5c1201 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequest.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -28,14 +29,25 @@ * * Protobuf type {@code google.pubsub.v1.ValidateSchemaRequest} */ -public final class ValidateSchemaRequest extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ValidateSchemaRequest extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaRequest) ValidateSchemaRequestOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ValidateSchemaRequest"); + } + // Use ValidateSchemaRequest.newBuilder() to construct. - private ValidateSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ValidateSchemaRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } @@ -43,19 +55,13 @@ private ValidateSchemaRequest() { parent_ = ""; } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ValidateSchemaRequest(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateSchemaRequest_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable @@ -187,8 +193,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSchema()); @@ -202,8 +208,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSchema()); @@ -288,38 +294,38 @@ public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ValidateSchemaRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateSchemaRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateSchemaRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -342,7 +348,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -356,7 +362,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ValidateSchemaRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateSchemaRequest) com.google.pubsub.v1.ValidateSchemaRequestOrBuilder { @@ -366,7 +372,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateSchemaRequest_fieldAccessorTable @@ -380,14 +386,14 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSchemaFieldBuilder(); + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSchemaFieldBuilder(); } } @@ -448,39 +454,6 @@ private void buildPartial0(com.google.pubsub.v1.ValidateSchemaRequest result) { result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ValidateSchemaRequest) { @@ -535,7 +508,7 @@ public Builder mergeFrom( } // case 10 case 18: { - input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage(internalGetSchemaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 @@ -685,7 +658,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } private com.google.pubsub.v1.Schema schema_; - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> @@ -828,7 +801,7 @@ public Builder clearSchema() { public com.google.pubsub.v1.Schema.Builder getSchemaBuilder() { bitField0_ |= 0x00000002; onChanged(); - return getSchemaFieldBuilder().getBuilder(); + return internalGetSchemaFieldBuilder().getBuilder(); } /** @@ -857,14 +830,14 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { * * .google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; */ - private com.google.protobuf.SingleFieldBuilderV3< + private com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder> - getSchemaFieldBuilder() { + internalGetSchemaFieldBuilder() { if (schemaBuilder_ == null) { schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< + new com.google.protobuf.SingleFieldBuilder< com.google.pubsub.v1.Schema, com.google.pubsub.v1.Schema.Builder, com.google.pubsub.v1.SchemaOrBuilder>( @@ -874,17 +847,6 @@ public com.google.pubsub.v1.SchemaOrBuilder getSchemaOrBuilder() { return schemaBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateSchemaRequest) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java index 3d7e744253af..3ec527a91777 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaRequestOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ValidateSchemaRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaRequest) diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java index 485f584480ed..dda69a4135c1 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponse.java @@ -14,9 +14,10 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; /** @@ -29,32 +30,37 @@ * * Protobuf type {@code google.pubsub.v1.ValidateSchemaResponse} */ -public final class ValidateSchemaResponse extends com.google.protobuf.GeneratedMessageV3 +@com.google.protobuf.Generated +public final class ValidateSchemaResponse extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:google.pubsub.v1.ValidateSchemaResponse) ValidateSchemaResponseOrBuilder { private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ValidateSchemaResponse"); + } + // Use ValidateSchemaResponse.newBuilder() to construct. - private ValidateSchemaResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ValidateSchemaResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ValidateSchemaResponse() {} - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ValidateSchemaResponse(); - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateSchemaResponse_descriptor; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable @@ -155,38 +161,38 @@ public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ValidateSchemaResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateSchemaResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.pubsub.v1.ValidateSchemaResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -209,7 +215,7 @@ public Builder toBuilder() { } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } @@ -224,7 +230,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * Protobuf type {@code google.pubsub.v1.ValidateSchemaResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:google.pubsub.v1.ValidateSchemaResponse) com.google.pubsub.v1.ValidateSchemaResponseOrBuilder { @@ -234,7 +240,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.pubsub.v1.SchemaProto .internal_static_google_pubsub_v1_ValidateSchemaResponse_fieldAccessorTable @@ -246,7 +252,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using com.google.pubsub.v1.ValidateSchemaResponse.newBuilder() private Builder() {} - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @@ -284,39 +290,6 @@ public com.google.pubsub.v1.ValidateSchemaResponse buildPartial() { return result; } - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.pubsub.v1.ValidateSchemaResponse) { @@ -372,17 +345,6 @@ public Builder mergeFrom( return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - // @@protoc_insertion_point(builder_scope:google.pubsub.v1.ValidateSchemaResponse) } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java index 9b0803ac422e..cae8fc5fb51d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ValidateSchemaResponseOrBuilder.java @@ -14,11 +14,13 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE // source: google/pubsub/v1/schema.proto +// Protobuf Java Version: 4.33.2 -// Protobuf Java Version: 3.25.8 package com.google.pubsub.v1; +@com.google.protobuf.Generated public interface ValidateSchemaResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.pubsub.v1.ValidateSchemaResponse) From 6cf358827f423ab16bf87edb6b860ac88c33d031 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 13:11:30 -0500 Subject: [PATCH 2315/2363] chore(main): release 1.146.0 (#2666) * chore(main): release 1.146.0 * chore: generate libraries at Mon Jan 26 17:00:40 UTC 2026 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 13 +++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 34 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 34f49328fccd..c1669569f603 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [1.146.0](https://github.com/googleapis/java-pubsub/compare/v1.145.0...v1.146.0) (2026-01-26) + + +### Features + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.66.0 ([a7edd5b](https://github.com/googleapis/java-pubsub/commit/a7edd5b705557bcf72ca47dc8219677ba8595f8c)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.56.0 ([#2664](https://github.com/googleapis/java-pubsub/issues/2664)) ([6d44cf3](https://github.com/googleapis/java-pubsub/commit/6d44cf3b94e6fe8603e3d8bb9357643f0315fa4e)) +* Update googleapis/sdk-platform-java action to v2.66.0 ([#2665](https://github.com/googleapis/java-pubsub/issues/2665)) ([1f95f3a](https://github.com/googleapis/java-pubsub/commit/1f95f3ac56ef371b7eee05aa2d294e0e4ca6ad84)) + ## [1.145.0](https://github.com/googleapis/java-pubsub/compare/v1.144.1...v1.145.0) (2026-01-15) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2a08eefb5c60..6e5d5c56e437 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.145.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.146.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.145.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.146.0" ``` ## Authentication @@ -401,7 +401,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.145.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.146.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 3bd6ad2c6042..f279248419d0 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.145.1-SNAPSHOT + 1.146.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.145.1-SNAPSHOT + 1.146.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.127.1-SNAPSHOT + 1.128.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.127.1-SNAPSHOT + 1.128.0
      diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 7b005d873b3d..8ce8a0694182 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.145.1-SNAPSHOT + 1.146.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.145.1-SNAPSHOT + 1.146.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 365f2268ebda..1555c7efecd1 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.127.1-SNAPSHOT + 1.128.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.145.1-SNAPSHOT + 1.146.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 123ae5b9d114..791e3bf6ec28 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.145.1-SNAPSHOT + 1.146.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.127.1-SNAPSHOT + 1.128.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.127.1-SNAPSHOT + 1.128.0 com.google.cloud google-cloud-pubsub - 1.145.1-SNAPSHOT + 1.146.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 6d0a89adcee7..c4fa57fec4c3 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.127.1-SNAPSHOT + 1.128.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.145.1-SNAPSHOT + 1.146.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d709c0207382..072904022723 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.145.1-SNAPSHOT + 1.146.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 8248cbd03d0d..546a95b0d303 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.145.0:1.145.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.127.0:1.127.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.127.0:1.127.1-SNAPSHOT +google-cloud-pubsub:1.146.0:1.146.0 +grpc-google-cloud-pubsub-v1:1.128.0:1.128.0 +proto-google-cloud-pubsub-v1:1.128.0:1.128.0 From 09299f04dde7b07a6e368a90165529ce39332d85 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 13:43:20 -0500 Subject: [PATCH 2316/2363] chore(main): release 1.146.1-SNAPSHOT (#2669) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index f279248419d0..a4fe8e63a592 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.146.0 + 1.146.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.146.0 + 1.146.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.128.0 + 1.128.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.128.0 + 1.128.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 8ce8a0694182..0a295a36cf16 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.146.0 + 1.146.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.146.0 + 1.146.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1555c7efecd1..1d8b5e05d87f 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.128.0 + 1.128.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.146.0 + 1.146.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 791e3bf6ec28..bc965f1e6a8e 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.146.0 + 1.146.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.128.0 + 1.128.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.128.0 + 1.128.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.146.0 + 1.146.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c4fa57fec4c3..634d2155c1d9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.128.0 + 1.128.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.146.0 + 1.146.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 072904022723..b7bf96571ed6 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.146.0 + 1.146.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 546a95b0d303..ec58d73e431a 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.146.0:1.146.0 -grpc-google-cloud-pubsub-v1:1.128.0:1.128.0 -proto-google-cloud-pubsub-v1:1.128.0:1.128.0 +google-cloud-pubsub:1.146.0:1.146.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.128.0:1.128.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.128.0:1.128.1-SNAPSHOT From 0ca15a1be8bab7d0b6411e1c336ff36912a13340 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 Jan 2026 14:57:35 +0000 Subject: [PATCH 2317/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.146.0 (#2638) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index f7b7098dab39..0c66538229db 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.143.1 + 1.146.0 From 224fe4337e17ee749e7c086167554d8d1eacb5b4 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 Jan 2026 14:57:46 +0000 Subject: [PATCH 2318/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.58.0 (#2639) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 0c66538229db..11af82fa764d 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.56.0 + 2.58.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b7bf96571ed6..06098f5a7cbf 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.56.0 + 2.58.0 com.google.cloud From 57f347b4ea88f6a46269f7e32562075da5b1865e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 Jan 2026 14:57:59 +0000 Subject: [PATCH 2319/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.64.0 (#2641) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 11af82fa764d..c84f716e3dbd 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.62.2 + 2.64.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 06098f5a7cbf..ea11360714d3 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.62.2 + 2.64.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index a80f9af05cd2..2fe8fcf8d0f7 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.62.2 + 2.64.0 tests From 3829f60384c2b99ff444e120ee340075d783f615 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 Jan 2026 14:58:31 +0000 Subject: [PATCH 2320/2363] deps: update dependency org.assertj:assertj-core to v3.27.7 [security] (#2670) --- java-pubsub/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index bc965f1e6a8e..b58f194f4bf0 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -116,7 +116,7 @@ org.assertj assertj-core - 3.27.6 + 3.27.7 test From 24810bac612b2270ca204e91d47f061403d02f0b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 Jan 2026 15:29:17 +0000 Subject: [PATCH 2321/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.74.0 (#2647) Co-authored-by: Mike Prieto --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 2fe8fcf8d0f7..34c4b2aa1457 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.72.0 + 26.74.0 pom import From 73137012db31b98578e2dc71c0273b429fdcef04 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 Jan 2026 15:29:28 +0000 Subject: [PATCH 2322/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.33.4 (#2656) Co-authored-by: Mike Prieto --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index c84f716e3dbd..edb254c38829 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.33.2 + 4.33.4 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index ea11360714d3..89c5f4b713f5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.33.2 + 4.33.4 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 34c4b2aa1457..7c5e65b089f4 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.33.2 + 4.33.4 From 409c9f48f69946acce9d04bd3b3f4b0aeee1079a Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 27 Jan 2026 10:29:51 -0500 Subject: [PATCH 2323/2363] feat: Enable Subscriber StreamingPull keepalives by increasing the StreamingPull protocol version (#2672) --- .../src/main/java/com/google/cloud/pubsub/v1/Subscriber.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java index 37440ba407a0..a2d4f3b38589 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java @@ -144,7 +144,7 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac private final boolean maxDurationPerAckExtensionDefaultUsed; private final java.time.Duration minDurationPerAckExtension; private final boolean minDurationPerAckExtensionDefaultUsed; - private final long protocolVersion = 0L; + private final long protocolVersion = 1L; // The ExecutorProvider used to generate executors for processing messages. private final ExecutorProvider executorProvider; From 2f486b17ad22e81d4bdd7df6ee54d80cc44a2516 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 27 Jan 2026 15:35:41 +0000 Subject: [PATCH 2324/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.62.0 (#2643) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index edb254c38829..28ccba7f2037 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.60.0 + 2.62.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 89c5f4b713f5..4c09af4b4471 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.60.0 + 2.62.0 com.google.cloud.opentelemetry From 9d3ba16916aa6553d13d64866d8efb735e51962a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 27 Jan 2026 12:01:27 -0500 Subject: [PATCH 2325/2363] chore(main): release 1.147.0 (#2673) * chore(main): release 1.147.0 * chore: generate libraries at Tue Jan 27 15:36:37 UTC 2026 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 16 ++++++++++++++++ java-pubsub/README.md | 10 +++++----- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 39 insertions(+), 23 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index c1669569f603..28e8ac1b9481 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## [1.147.0](https://github.com/googleapis/java-pubsub/compare/v1.146.0...v1.147.0) (2026-01-27) + + +### Features + +* Enable Subscriber StreamingPull keepalives by increasing the StreamingPull protocol version ([#2672](https://github.com/googleapis/java-pubsub/issues/2672)) ([18a592d](https://github.com/googleapis/java-pubsub/commit/18a592d81971ca99fa8fac0b355b02c4c3646bf2)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.58.0 ([#2639](https://github.com/googleapis/java-pubsub/issues/2639)) ([afe27d8](https://github.com/googleapis/java-pubsub/commit/afe27d881379ad2564961b439176c61d0e9ce663)) +* Update dependency com.google.cloud:google-cloud-core to v2.64.0 ([#2641](https://github.com/googleapis/java-pubsub/issues/2641)) ([93368a3](https://github.com/googleapis/java-pubsub/commit/93368a3e9aec90e42a944d76e79559f3f35ac792)) +* Update dependency com.google.cloud:google-cloud-storage to v2.62.0 ([#2643](https://github.com/googleapis/java-pubsub/issues/2643)) ([6a4f059](https://github.com/googleapis/java-pubsub/commit/6a4f0595610e06ba1fa58fe916c7f5a1f09245ca)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.33.4 ([#2656](https://github.com/googleapis/java-pubsub/issues/2656)) ([0973b81](https://github.com/googleapis/java-pubsub/commit/0973b81b82493e7a7df1764e4f29435abe545d50)) +* Update dependency org.assertj:assertj-core to v3.27.7 [security] ([#2670](https://github.com/googleapis/java-pubsub/issues/2670)) ([32d75fd](https://github.com/googleapis/java-pubsub/commit/32d75fd9096bb56286c98636d5a8fa6a23508f60)) + ## [1.146.0](https://github.com/googleapis/java-pubsub/compare/v1.145.0...v1.146.0) (2026-01-26) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 6e5d5c56e437..7fc4786d2fc6 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.72.0 + 26.74.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.143.1 + 1.146.0 ``` @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.146.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.147.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.146.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.147.0" ``` ## Authentication @@ -401,7 +401,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.146.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.147.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a4fe8e63a592..a6f32b5c5bad 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.146.1-SNAPSHOT + 1.147.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.146.1-SNAPSHOT + 1.147.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.128.1-SNAPSHOT + 1.129.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.128.1-SNAPSHOT + 1.129.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 0a295a36cf16..f0bacee927b8 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.146.1-SNAPSHOT + 1.147.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.146.1-SNAPSHOT + 1.147.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 1d8b5e05d87f..89e17a19a59a 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.128.1-SNAPSHOT + 1.129.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.146.1-SNAPSHOT + 1.147.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index b58f194f4bf0..40409ef29553 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.146.1-SNAPSHOT + 1.147.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.128.1-SNAPSHOT + 1.129.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.128.1-SNAPSHOT + 1.129.0 com.google.cloud google-cloud-pubsub - 1.146.1-SNAPSHOT + 1.147.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 634d2155c1d9..fcddf43a2339 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.128.1-SNAPSHOT + 1.129.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.146.1-SNAPSHOT + 1.147.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 4c09af4b4471..cfc6d809b4ba 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.146.1-SNAPSHOT + 1.147.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index ec58d73e431a..61c00dc3d93d 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.146.0:1.146.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.128.0:1.128.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.128.0:1.128.1-SNAPSHOT +google-cloud-pubsub:1.147.0:1.147.0 +grpc-google-cloud-pubsub-v1:1.129.0:1.129.0 +proto-google-cloud-pubsub-v1:1.129.0:1.129.0 From 6f17de208c876010322d0d99db584416a0e543db Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 30 Jan 2026 14:14:31 -0500 Subject: [PATCH 2326/2363] chore: replace old java team with cloud-sdk-java-team (#2677) Replace old teams with new ones. b/479542582 --- java-pubsub/.github/CODEOWNERS | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS index 1e8bea4c7ff8..02da5de552f8 100644 --- a/java-pubsub/.github/CODEOWNERS +++ b/java-pubsub/.github/CODEOWNERS @@ -5,25 +5,25 @@ # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax # The @googleapis/api-pubsub is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/api-pubsub +* @googleapis/cloud-sdk-java-team @googleapis/api-pubsub # for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner **/*.java @googleapis/api-pubsub # For generated Java code -proto-*/ @googleapis/yoshi-java @googleapis/api-pubsub -grpc-*/ @googleapis/yoshi-java @googleapis/api-pubsub +proto-*/ @googleapis/cloud-sdk-java-team @googleapis/api-pubsub +grpc-*/ @googleapis/cloud-sdk-java-team @googleapis/api-pubsub # Generated code pattern in google-cloud-pubsub -**/*Client.java @googleapis/yoshi-java @googleapis/api-pubsub -**/*Settings.java @googleapis/yoshi-java @googleapis/api-pubsub -**/*ClientHttpJsonTest.java @googleapis/yoshi-java @googleapis/api-pubsub -**/*ClientTest.java @googleapis/yoshi-java @googleapis/api-pubsub -google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/** @googleapis/yoshi-java @googleapis/api-pubsub -google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @googleapis/yoshi-java @googleapis/api-pubsub -google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/Mock* @googleapis/yoshi-java @googleapis/api-pubsub +**/*Client.java @googleapis/cloud-sdk-java-team @googleapis/api-pubsub +**/*Settings.java @googleapis/cloud-sdk-java-team @googleapis/api-pubsub +**/*ClientHttpJsonTest.java @googleapis/cloud-sdk-java-team @googleapis/api-pubsub +**/*ClientTest.java @googleapis/cloud-sdk-java-team @googleapis/api-pubsub +google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/** @googleapis/cloud-sdk-java-team @googleapis/api-pubsub +google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @googleapis/cloud-sdk-java-team @googleapis/api-pubsub +google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/Mock* @googleapis/cloud-sdk-java-team @googleapis/api-pubsub # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers # Generated snippets should not be owned by samples reviewers -samples/snippets/generated/ @googleapis/yoshi-java +samples/snippets/generated/ @googleapis/cloud-sdk-java-team From 62317767a6674d5359f86bce8dcb3977eec64029 Mon Sep 17 00:00:00 2001 From: Blake Li Date: Tue, 10 Feb 2026 12:21:32 -0500 Subject: [PATCH 2327/2363] feat: next release from main branch is 1.148.0 (#2686) --- java-pubsub/.github/release-please.yml | 54 +++++++++++---------- java-pubsub/.github/sync-repo-settings.yaml | 19 ++++++++ 2 files changed, 48 insertions(+), 25 deletions(-) diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml index 94186875d74f..dd5ccf112eac 100644 --- a/java-pubsub/.github/release-please.yml +++ b/java-pubsub/.github/release-please.yml @@ -2,28 +2,32 @@ bumpMinorPreMajor: true handleGHRelease: true releaseType: java-yoshi branches: - - branch: 1.111.0-sp - releaseType: java-lts - - branch: java7 - - branch: 1.114.x - releaseType: java-backport - - branch: 1.116.x - releaseType: java-backport - - branch: 1.117.x - releaseType: java-backport - - branch: 1.120.x - releaseType: java-backport - - branch: 1.121.x - releaseType: java-backport - - branch: 1.123.x - releaseType: java-backport - - branch: 1.125.x - releaseType: java-backport - - branch: 1.129.x - releaseType: java-backport - - branch: 1.137.x - releaseType: java-backport - - branch: 1.140.x - releaseType: java-backport - - branch: protobuf-4.x-rc - manifest: true + - branch: 1.111.0-sp + releaseType: java-lts + - branch: java7 + - branch: 1.114.x + releaseType: java-backport + - branch: 1.116.x + releaseType: java-backport + - branch: 1.117.x + releaseType: java-backport + - branch: 1.120.x + releaseType: java-backport + - branch: 1.121.x + releaseType: java-backport + - branch: 1.123.x + releaseType: java-backport + - branch: 1.125.x + releaseType: java-backport + - branch: 1.129.x + releaseType: java-backport + - branch: 1.137.x + releaseType: java-backport + - branch: 1.140.x + releaseType: java-backport + - branch: protobuf-4.x-rc + manifest: true + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 1.147.x diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index 3e4d39bcd69b..ce658ac8dc49 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -215,6 +215,25 @@ branchProtectionRules: - javadoc - library_generation - unmanaged_dependency_check + - pattern: 1.147.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (17) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - 'Kokoro - Test: Java GraalVM Native Image A' + - 'Kokoro - Test: Java GraalVM Native Image B' + - 'Kokoro - Test: Java GraalVM Native Image C' + - javadoc + - library_generation + - unmanaged_dependency_check permissionRules: - team: yoshi-admins permission: admin From e3442ec9aa3f37e0d686bc0d7f530053df868307 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 11 Feb 2026 19:56:28 +0000 Subject: [PATCH 2328/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.56.1 (#2682) Co-authored-by: Jin Seop Kim --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index 8dc06537e660..f480e1e247ba 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.56.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.56.1 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index a6f32b5c5bad..de729c8e7441 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.56.0 + 3.56.1 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 40409ef29553..f1f99d24d2d5 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.56.0 + 3.56.1 From 4e13243cfb039d2e3f4334a28b45c46115397551 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Feb 2026 15:23:37 -0500 Subject: [PATCH 2329/2363] chore(main): release 1.147.1-SNAPSHOT (#2674) Merge pull request #2674 from googleapis/java-pubsub --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index de729c8e7441..b63882bfdce4 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.147.0 + 1.147.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.147.0 + 1.147.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.129.0 + 1.129.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.129.0 + 1.129.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index f0bacee927b8..595f3315cfb2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.147.0 + 1.147.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.147.0 + 1.147.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 89e17a19a59a..977db1d12025 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.129.0 + 1.129.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.147.0 + 1.147.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f1f99d24d2d5..eb75d32af849 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.147.0 + 1.147.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.129.0 + 1.129.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.129.0 + 1.129.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.147.0 + 1.147.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index fcddf43a2339..c82d960138a9 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.129.0 + 1.129.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.147.0 + 1.147.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index cfc6d809b4ba..f6c0b2d9938e 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.147.0 + 1.147.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 61c00dc3d93d..1c8a3555e9e2 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.147.0:1.147.0 -grpc-google-cloud-pubsub-v1:1.129.0:1.129.0 -proto-google-cloud-pubsub-v1:1.129.0:1.129.0 +google-cloud-pubsub:1.147.0:1.147.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.129.0:1.129.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.129.0:1.129.1-SNAPSHOT From efc5d061e5c03a16fb2e678f91cbecb4d2f23296 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Feb 2026 15:53:14 -0500 Subject: [PATCH 2330/2363] chore(main): release 1.148.0 (#2688) Merge pull request #2688 from googleapis/java-pubsub --- java-pubsub/CHANGELOG.md | 12 ++++++++++++ java-pubsub/README.md | 6 +++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 9 files changed, 33 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 28e8ac1b9481..4d4fa5fbd07c 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [1.148.0](https://github.com/googleapis/java-pubsub/compare/v1.147.0...v1.148.0) (2026-02-11) + + +### Features + +* Next release from main branch is 1.148.0 ([#2686](https://github.com/googleapis/java-pubsub/issues/2686)) ([6b133e8](https://github.com/googleapis/java-pubsub/commit/6b133e8277bba25ab8f91d970d8d79e8bdaaa7e7)) + + +### Dependencies + +* Update dependency com.google.cloud:sdk-platform-java-config to v3.56.1 ([#2682](https://github.com/googleapis/java-pubsub/issues/2682)) ([1a94be9](https://github.com/googleapis/java-pubsub/commit/1a94be982e291c8cbf1ac2ec4aa6a84a4dabd17d)) + ## [1.147.0](https://github.com/googleapis/java-pubsub/compare/v1.146.0...v1.147.0) (2026-01-27) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 7fc4786d2fc6..46a08b0bf35f 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.147.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.148.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.147.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.148.0" ``` ## Authentication @@ -401,7 +401,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.147.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.148.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b63882bfdce4..b48b9bbc6497 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.147.1-SNAPSHOT + 1.148.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.147.1-SNAPSHOT + 1.148.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.129.1-SNAPSHOT + 1.130.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.129.1-SNAPSHOT + 1.130.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 595f3315cfb2..3308cdcd1b84 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.147.1-SNAPSHOT + 1.148.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.147.1-SNAPSHOT + 1.148.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 977db1d12025..2550d1719488 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.129.1-SNAPSHOT + 1.130.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.147.1-SNAPSHOT + 1.148.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index eb75d32af849..55d3cdc6b11b 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.147.1-SNAPSHOT + 1.148.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.129.1-SNAPSHOT + 1.130.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.129.1-SNAPSHOT + 1.130.0 com.google.cloud google-cloud-pubsub - 1.147.1-SNAPSHOT + 1.148.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index c82d960138a9..b4fd8af4c1cc 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.129.1-SNAPSHOT + 1.130.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.147.1-SNAPSHOT + 1.148.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index f6c0b2d9938e..d19b2c592d6f 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.147.1-SNAPSHOT + 1.148.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 1c8a3555e9e2..4d5a1a8ff9ed 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.147.0:1.147.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.129.0:1.129.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.129.0:1.129.1-SNAPSHOT +google-cloud-pubsub:1.148.0:1.148.0 +grpc-google-cloud-pubsub-v1:1.130.0:1.130.0 +proto-google-cloud-pubsub-v1:1.130.0:1.130.0 From 2b11df7179a4d15de4ea66bb32ce7ebb6b0f9ec5 Mon Sep 17 00:00:00 2001 From: Samuel Schaub <40373331+SamuelSchaub@users.noreply.github.com> Date: Thu, 12 Feb 2026 14:03:50 -0500 Subject: [PATCH 2331/2363] feat: add client library debug logging * feat: add keepalive feature to tear down streams in their absence * fix: reset timer each time stream is opened * fix: update timings for server monitor to meet stream close time policy * fix: update initial delay vs period in fake scheduled executor and fix test cases * fix merging errors * feat: add client library debug logging * fix: formatting to previous version * fix: revert subscriber to original state * fix: create Logger objects for each sub-system tag * fix: ran formatter * fix: update LoggingUtil to house all subsytems * fix: typo, renaming, and using throwable on failure for logging util --- .../google/cloud/pubsub/v1/LoggingUtil.java | 146 ++++++++++++++++++ .../cloud/pubsub/v1/MessageDispatcher.java | 93 +++++++++-- .../com/google/cloud/pubsub/v1/Publisher.java | 8 + .../v1/StreamingSubscriberConnection.java | 5 + 4 files changed, 242 insertions(+), 10 deletions(-) create mode 100644 java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/LoggingUtil.java diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/LoggingUtil.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/LoggingUtil.java new file mode 100644 index 000000000000..dbc3a5d86e88 --- /dev/null +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/LoggingUtil.java @@ -0,0 +1,146 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.pubsub.v1; + +import com.google.pubsub.v1.PubsubMessage; +import java.util.logging.Level; +import java.util.logging.Logger; + +public final class LoggingUtil { + // Instantiate all loggers as static final fields to maintain strong references + + private static final Logger slowAckLogger = Logger.getLogger("slow-ack"); + private static final Logger callbackDeliveryLogger = Logger.getLogger("callback-delivery"); + private static final Logger expiryLogger = Logger.getLogger("expiry"); + private static final Logger callbackExceptionsLogger = Logger.getLogger("callback-exceptions"); + private static final Logger ackBatchLogger = Logger.getLogger("ack-batch"); + private static final Logger subscriberFlowControlLogger = + Logger.getLogger("subscriber-flow-control"); + private static final Logger ackNackLogger = Logger.getLogger("ack-nack"); + private static final Logger publishBatchLogger = Logger.getLogger("publish-batch"); + private static final Logger subscriberStreamsLogger = Logger.getLogger("subscriber-streams"); + + public enum SubSystem { + SLOW_ACK(slowAckLogger), + CALLBACK_DELIVERY(callbackDeliveryLogger), + EXPIRY(expiryLogger), + CALLBACK_EXCEPTIONS(callbackExceptionsLogger), + ACK_BATCH(ackBatchLogger), + SUBSCRIBER_FLOW_CONTROL(subscriberFlowControlLogger), + ACK_NACK(ackNackLogger), + PUBLISH_BATCH(publishBatchLogger), + SUBSCRIBER_STREAMS(subscriberStreamsLogger); + + private final Logger logger; + + SubSystem(Logger logger) { + this.logger = logger; + } + + public Logger getLogger() { + return logger; + } + } + + public LoggingUtil() {} + + private String getSubscriptionLogPrefix( + PubsubMessageWrapper messageWrapper, String ackId, boolean exactlyOnceDeliveryEnabled) { + if (messageWrapper == null || messageWrapper.getPubsubMessage() == null) { + return " Ack ID: " + + ackId + + ", Exactly Once Delivery: " + + exactlyOnceDeliveryEnabled + + " (Message details not available)"; + } + + PubsubMessage message = messageWrapper.getPubsubMessage(); + String messageId = message.getMessageId(); + String orderingKey = message.getOrderingKey(); + + StringBuilder sb = new StringBuilder(); + sb.append("Message ID: ").append(messageId); + sb.append(", Ack ID: ").append(ackId); + if (orderingKey != null && !orderingKey.isEmpty()) { + sb.append(", Ordering Key: ").append(orderingKey); + } + sb.append(", Exactly Once Delivery: ").append(exactlyOnceDeliveryEnabled); + return sb.toString(); + } + + private String getPublisherLogPrefix(PubsubMessageWrapper messageWrapper) { + if (messageWrapper == null || messageWrapper.getPubsubMessage() == null) { + return " (Message details not available)"; + } + + PubsubMessage message = messageWrapper.getPubsubMessage(); + String messageId = message.getMessageId(); + String orderingKey = message.getOrderingKey(); + + StringBuilder sb = new StringBuilder(); + sb.append("Message ID: ").append(messageId); + if (orderingKey != null && !orderingKey.isEmpty()) { + sb.append(", Ordering Key: ").append(orderingKey); + } + return sb.toString(); + } + + public void logSubscriber( + SubSystem subSystem, + Level level, + String msg, + PubsubMessageWrapper messageWrapper, + String ackId, + boolean exactlyOnceDeliveryEnabled) { + Logger logger = subSystem.getLogger(); + if (logger.isLoggable(level)) { + String prefix = getSubscriptionLogPrefix(messageWrapper, ackId, exactlyOnceDeliveryEnabled); + logger.log(level, prefix + " - " + msg); + } + } + + public void logSubscriberWithThrowable( + SubSystem subSystem, + Level level, + String msg, + PubsubMessageWrapper messageWrapper, + String ackId, + boolean exactlyOnceDeliveryEnabled, + Throwable throwable) { + Logger logger = subSystem.getLogger(); + if (logger.isLoggable(level)) { + String prefix = getSubscriptionLogPrefix(messageWrapper, ackId, exactlyOnceDeliveryEnabled); + logger.log(level, prefix + " - " + msg, throwable); + } + } + + public void logPublisher( + SubSystem subSystem, Level level, String msg, PubsubMessageWrapper messageWrapper) { + Logger logger = subSystem.getLogger(); + if (logger.isLoggable(level)) { + String prefix = getPublisherLogPrefix(messageWrapper); + logger.log(level, prefix + " - " + msg); + } + } + + public void logEvent(SubSystem subSystem, Level level, String msg, Object... params) { + Logger logger = subSystem.getLogger(); + if (logger.isLoggable(level)) { + logger.log(level, msg, params); + } + } +} diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java index 5ed36b9cd19e..f2f7cd2e7e61 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java @@ -59,6 +59,7 @@ */ class MessageDispatcher { private static final Logger logger = Logger.getLogger(MessageDispatcher.class.getName()); + private LoggingUtil loggingUtil = new LoggingUtil(); @InternalApi static final double PERCENTILE_FOR_ACK_DEADLINE_UPDATES = 99.9; @InternalApi static final Duration PENDING_ACKS_SEND_DELAY = Duration.ofMillis(100); @@ -112,6 +113,8 @@ class MessageDispatcher { private final SubscriberShutdownSettings subscriberShutdownSettings; private final AtomicBoolean nackImmediatelyShutdownInProgress = new AtomicBoolean(false); + private final double slowAckPercentile = 99.0; + /** Internal representation of a reply to a Pubsub message, to be sent back to the service. */ public enum AckReply { ACK, @@ -157,11 +160,13 @@ private void forget() { @Override public void onFailure(Throwable t) { - logger.log( + loggingUtil.logSubscriberWithThrowable( + LoggingUtil.SubSystem.CALLBACK_EXCEPTIONS, Level.WARNING, - "MessageReceiver failed to process ack ID: " - + this.ackRequestData.getAckId() - + ", the message will be nacked.", + "MessageReceiver exception.", + this.ackRequestData.getMessageWrapper(), + this.ackRequestData.getAckId(), + exactlyOnceDeliveryEnabled.get(), t); this.ackRequestData.setResponse(AckResponse.OTHER, false); pendingNacks.add(this.ackRequestData); @@ -171,6 +176,19 @@ public void onFailure(Throwable t) { @Override public void onSuccess(AckReply reply) { + int ackLatency = + Ints.saturatedCast((long) Math.ceil((clock.millisTime() - receivedTimeMillis) / 1000D)); + if (ackLatency >= ackLatencyDistribution.getPercentile(slowAckPercentile)) { + loggingUtil.logSubscriber( + LoggingUtil.SubSystem.SLOW_ACK, + Level.FINE, + String.format( + "Message ack duration of %d is higher than the p99 ack duration", ackLatency), + this.ackRequestData.getMessageWrapper(), + this.ackRequestData.getAckId(), + exactlyOnceDeliveryEnabled.get()); + } + switch (reply) { case ACK: if (nackImmediatelyShutdownInProgress.get() && exactlyOnceDeliveryEnabled.get()) { @@ -180,15 +198,27 @@ public void onSuccess(AckReply reply) { } else { pendingAcks.add(this.ackRequestData); // Record the latency rounded to the next closest integer. - ackLatencyDistribution.record( - Ints.saturatedCast( - (long) Math.ceil((clock.millisTime() - receivedTimeMillis) / 1000D))); + ackLatencyDistribution.record(ackLatency); tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "ack"); } + loggingUtil.logSubscriber( + LoggingUtil.SubSystem.ACK_NACK, + Level.FINE, + "Ack called on message.", + this.ackRequestData.getMessageWrapper(), + this.ackRequestData.getAckId(), + exactlyOnceDeliveryEnabled.get()); break; case NACK: pendingNacks.add(this.ackRequestData); tracer.endSubscribeProcessSpan(this.ackRequestData.getMessageWrapper(), "nack"); + loggingUtil.logSubscriber( + LoggingUtil.SubSystem.ACK_NACK, + Level.FINE, + "Nack called on message.", + this.ackRequestData.getMessageWrapper(), + this.ackRequestData.getAckId(), + exactlyOnceDeliveryEnabled.get()); break; default: throw new IllegalArgumentException(String.format("AckReply: %s not supported", reply)); @@ -568,10 +598,32 @@ private void processBatch(List batch) { // shutdown will block on processing of all these messages anyway. tracer.startSubscribeConcurrencyControlSpan(message.messageWrapper()); try { + loggingUtil.logSubscriber( + LoggingUtil.SubSystem.SUBSCRIBER_FLOW_CONTROL, + Level.FINE, + "Flow controller is blocking.", + message.messageWrapper(), + message.messageWrapper().getAckId(), + exactlyOnceDeliveryEnabled.get()); flowController.reserve(1, message.messageWrapper().getPubsubMessage().getSerializedSize()); + loggingUtil.logSubscriber( + LoggingUtil.SubSystem.SUBSCRIBER_FLOW_CONTROL, + Level.FINE, + "Flow controller is done blocking.", + message.messageWrapper(), + message.messageWrapper().getAckId(), + exactlyOnceDeliveryEnabled.get()); tracer.endSubscribeConcurrencyControlSpan(message.messageWrapper()); } catch (FlowControlException unexpectedException) { // This should be a blocking flow controller and never throw an exception. + loggingUtil.logSubscriberWithThrowable( + LoggingUtil.SubSystem.SUBSCRIBER_FLOW_CONTROL, + Level.FINE, + "Flow controller unexpected exception.", + message.messageWrapper(), + message.messageWrapper().getAckId(), + exactlyOnceDeliveryEnabled.get(), + unexpectedException); tracer.setSubscribeConcurrencyControlSpanException( message.messageWrapper(), unexpectedException); throw new IllegalStateException("Flow control unexpected exception", unexpectedException); @@ -619,9 +671,23 @@ public void run() { // Don't nack it either, because we'd be nacking someone else's message. ackHandler.forget(); tracer.setSubscriberSpanExpirationResult(messageWrapper); + loggingUtil.logSubscriber( + LoggingUtil.SubSystem.EXPIRY, + Level.FINE, + "Message expired.", + messageWrapper, + ackHandler.ackRequestData.getAckId(), + exactlyOnceDeliveryEnabled.get()); return; } tracer.startSubscribeProcessSpan(messageWrapper); + loggingUtil.logSubscriber( + LoggingUtil.SubSystem.CALLBACK_DELIVERY, + Level.FINE, + "Message delivered.", + messageWrapper, + ackHandler.ackRequestData.getAckId(), + exactlyOnceDeliveryEnabled.get()); if (shouldSetMessageFuture()) { // This is the message future that is propagated to the user SettableApiFuture messageFuture = @@ -725,7 +791,6 @@ void processOutstandingOperations() { if (!nackRequestDataList.isEmpty()) { modackRequestData.add(new ModackRequestData(0, nackRequestDataList)); } - logger.log(Level.FINER, "Sending {0} nacks", nackRequestDataList.size()); List ackRequestDataReceipts = new ArrayList(); pendingReceipts.drainTo(ackRequestDataReceipts); @@ -735,13 +800,21 @@ void processOutstandingOperations() { receiptModack.setIsReceiptModack(true); modackRequestData.add(receiptModack); } - logger.log(Level.FINER, "Sending {0} receipts", ackRequestDataReceipts.size()); ackProcessor.sendModackOperations(modackRequestData); List ackRequestDataList = new ArrayList(); pendingAcks.drainTo(ackRequestDataList); - logger.log(Level.FINER, "Sending {0} acks", ackRequestDataList.size()); + loggingUtil.logEvent( + LoggingUtil.SubSystem.ACK_BATCH, + Level.FINE, + "Sending {0} ACKs, {1} NACKs, {2} receipts. Exactly Once Delivery: {3}", + new Object[] { + ackRequestDataList.size(), + nackRequestDataList.size(), + ackRequestDataReceipts.size(), + exactlyOnceDeliveryEnabled.get() + }); ackProcessor.sendAckOperations(ackRequestDataList); } diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 113cbf932b43..43012bcfcc2a 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -94,6 +94,7 @@ */ public class Publisher implements PublisherInterface { private static final Logger logger = Logger.getLogger(Publisher.class.getName()); + private LoggingUtil loggingUtil = new LoggingUtil(); private static final String GZIP_COMPRESSION = "gzip"; @@ -509,6 +510,13 @@ private void publishOutstandingBatch(final OutstandingBatch outstandingBatch) { logger.log(Level.WARNING, "Attempted to publish batch with zero messages."); return; } + + loggingUtil.logPublisher( + LoggingUtil.SubSystem.PUBLISH_BATCH, + Level.FINE, + String.format("Attempting to batch publish %d messages", outstandingBatch.size()), + outstandingBatch.getMessageWrappers().get(0)); + final ApiFutureCallback futureCallback = new ApiFutureCallback() { @Override diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java index 2ee07759792d..24c580b6ce84 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java @@ -77,6 +77,7 @@ final class StreamingSubscriberConnection extends AbstractApiService implements AckProcessor { private static final Logger logger = Logger.getLogger(StreamingSubscriberConnection.class.getName()); + private LoggingUtil loggingUtil = new LoggingUtil(); private static final Duration INITIAL_CHANNEL_RECONNECT_BACKOFF = Duration.ofMillis(100); private static final Duration MAX_CHANNEL_RECONNECT_BACKOFF = Duration.ofSeconds(10); @@ -222,6 +223,8 @@ public boolean getExactlyOnceDeliveryEnabled() { @Override protected void doStart() { logger.config("Starting subscriber."); + loggingUtil.logEvent( + LoggingUtil.SubSystem.SUBSCRIBER_STREAMS, Level.FINE, "Opening stream.", ""); messageDispatcher.start(); initialize(); notifyStarted(); @@ -229,6 +232,8 @@ protected void doStart() { @Override protected void doStop() { + loggingUtil.logEvent( + LoggingUtil.SubSystem.SUBSCRIBER_STREAMS, Level.FINE, "Closing stream.", ""); lock.lock(); try { clientStream.closeSendWithError(Status.CANCELLED.asException()); From 109a741892ebe5c55dcfad7b7bcda9c8d7792380 Mon Sep 17 00:00:00 2001 From: Mike Prieto Date: Tue, 17 Feb 2026 11:27:17 -0500 Subject: [PATCH 2332/2363] fix: Do not use directExecutor() for the publish callback when ordering is enabled (#2693) --- .../src/main/java/com/google/cloud/pubsub/v1/Publisher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java index 43012bcfcc2a..56c920bcfdc1 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java @@ -66,6 +66,7 @@ import java.util.Map; import java.util.concurrent.Callable; import java.util.concurrent.CountDownLatch; +import java.util.concurrent.Executor; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; @@ -569,6 +570,7 @@ public void onFailure(Throwable t) { }; ApiFuture future; + Executor callbackExecutor = directExecutor(); if (outstandingBatch.orderingKey == null || outstandingBatch.orderingKey.isEmpty()) { future = publishCall(outstandingBatch); } else { @@ -581,8 +583,9 @@ public ApiFuture call() { return publishCall(outstandingBatch); } }); + callbackExecutor = this.executor; } - ApiFutures.addCallback(future, futureCallback, directExecutor()); + ApiFutures.addCallback(future, futureCallback, callbackExecutor); } private final class OutstandingBatch { From ca07f3ddfc9c6ed1159250ac18403075e4459d25 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Wed, 18 Feb 2026 16:22:41 -0500 Subject: [PATCH 2333/2363] chore: replace api-pubsub and yoshi-java with updated names (#2695) b/478003109 --- java-pubsub/.github/CODEOWNERS | 24 ++++++++++----------- java-pubsub/.github/sync-repo-settings.yaml | 2 +- java-pubsub/.repo-metadata.json | 2 +- java-pubsub/generation_config.yaml | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS index 02da5de552f8..3a6e0dbe408d 100644 --- a/java-pubsub/.github/CODEOWNERS +++ b/java-pubsub/.github/CODEOWNERS @@ -4,23 +4,23 @@ # For syntax help see: # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax -# The @googleapis/api-pubsub is the default owner for changes in this repo -* @googleapis/cloud-sdk-java-team @googleapis/api-pubsub +# The @googleapis/pubsub-team is the default owner for changes in this repo +* @googleapis/cloud-sdk-java-team @googleapis/pubsub-team # for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner -**/*.java @googleapis/api-pubsub +**/*.java @googleapis/pubsub-team # For generated Java code -proto-*/ @googleapis/cloud-sdk-java-team @googleapis/api-pubsub -grpc-*/ @googleapis/cloud-sdk-java-team @googleapis/api-pubsub +proto-*/ @googleapis/cloud-sdk-java-team @googleapis/pubsub-team +grpc-*/ @googleapis/cloud-sdk-java-team @googleapis/pubsub-team # Generated code pattern in google-cloud-pubsub -**/*Client.java @googleapis/cloud-sdk-java-team @googleapis/api-pubsub -**/*Settings.java @googleapis/cloud-sdk-java-team @googleapis/api-pubsub -**/*ClientHttpJsonTest.java @googleapis/cloud-sdk-java-team @googleapis/api-pubsub -**/*ClientTest.java @googleapis/cloud-sdk-java-team @googleapis/api-pubsub -google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/** @googleapis/cloud-sdk-java-team @googleapis/api-pubsub -google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @googleapis/cloud-sdk-java-team @googleapis/api-pubsub -google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/Mock* @googleapis/cloud-sdk-java-team @googleapis/api-pubsub +**/*Client.java @googleapis/cloud-sdk-java-team @googleapis/pubsub-team +**/*Settings.java @googleapis/cloud-sdk-java-team @googleapis/pubsub-team +**/*ClientHttpJsonTest.java @googleapis/cloud-sdk-java-team @googleapis/pubsub-team +**/*ClientTest.java @googleapis/cloud-sdk-java-team @googleapis/pubsub-team +google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/** @googleapis/cloud-sdk-java-team @googleapis/pubsub-team +google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @googleapis/cloud-sdk-java-team @googleapis/pubsub-team +google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/Mock* @googleapis/cloud-sdk-java-team @googleapis/pubsub-team # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml index ce658ac8dc49..1f09ebd600db 100644 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ b/java-pubsub/.github/sync-repo-settings.yaml @@ -239,5 +239,5 @@ permissionRules: permission: admin - team: yoshi-java-admins permission: admin - - team: yoshi-java + - team: cloud-sdk-java-team permission: push diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 0c8364b051b4..31cf00630cbd 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -14,7 +14,7 @@ "library_type": "GAPIC_COMBO", "requires_billing": true, "api_reference": "https://cloud.google.com/pubsub/", - "codeowner_team": "@googleapis/api-pubsub", + "codeowner_team": "@googleapis/pubsub-team", "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", "recommended_package": "com.google.cloud.pubsub.v1" } \ No newline at end of file diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index 31ade0ccfa03..cba64defffbe 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -14,7 +14,7 @@ libraries: repo: googleapis/java-pubsub repo_short: java-pubsub distribution_name: com.google.cloud:google-cloud-pubsub - codeowner_team: '@googleapis/api-pubsub' + codeowner_team: '@googleapis/pubsub-team' api_id: pubsub.googleapis.com library_type: GAPIC_COMBO requires_billing: true From 771e4bf3673fc5a4eafb7d076b5657b7251e4520 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Feb 2026 16:03:46 +0000 Subject: [PATCH 2334/2363] chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.148.0 (#2675) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 28ccba7f2037..01f474f4c12e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -44,7 +44,7 @@ com.google.cloud google-cloud-pubsub - 1.146.0 + 1.148.0 From 337e901503c96199b2c8a4302518ae73ca56a361 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Feb 2026 16:04:04 +0000 Subject: [PATCH 2335/2363] deps: update dependency com.google.cloud:google-cloud-storage to v2.63.0 (#2676) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 01f474f4c12e..ad751db1653e 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -91,7 +91,7 @@ com.google.cloud google-cloud-storage - 2.62.0 + 2.63.0 com.google.cloud.opentelemetry diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index d19b2c592d6f..bbce3aaba9f4 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -90,7 +90,7 @@ com.google.cloud google-cloud-storage - 2.62.0 + 2.63.0 com.google.cloud.opentelemetry From 7b158e80bcd60f3e42a1fb85d9d8eb12b4c6ed07 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Feb 2026 16:04:21 +0000 Subject: [PATCH 2336/2363] deps: update dependency com.google.protobuf:protobuf-java-util to v4.33.5 (#2678) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index ad751db1653e..637f340cd430 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -75,7 +75,7 @@ com.google.protobuf protobuf-java-util - 4.33.4 + 4.33.5 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index bbce3aaba9f4..0208724b32d5 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -61,7 +61,7 @@ com.google.protobuf protobuf-java-util - 4.33.4 + 4.33.5 diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index 7c5e65b089f4..e1366e700e55 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -85,7 +85,7 @@ com.google.protobuf protobuf-java-util - 4.33.4 + 4.33.5 From d1c58f79bc3f8f232fbc925771ffe977fc56f27c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Feb 2026 16:04:34 +0000 Subject: [PATCH 2337/2363] chore(deps): update dependency com.google.cloud:libraries-bom to v26.76.0 (#2679) --- java-pubsub/samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e1366e700e55..e3569da1cd92 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -45,7 +45,7 @@ com.google.cloud libraries-bom - 26.74.0 + 26.76.0 pom import From 875db0bf6c7bfadc4b64d3eaf55fc98a70c858dd Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Feb 2026 16:04:49 +0000 Subject: [PATCH 2338/2363] deps: update dependency com.google.cloud:google-cloud-core to v2.65.0 (#2681) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 637f340cd430..72593243d987 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -80,7 +80,7 @@ com.google.cloud google-cloud-core - 2.64.0 + 2.65.0 tests diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 0208724b32d5..7b6329efcf46 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -79,7 +79,7 @@ com.google.cloud google-cloud-core - 2.64.0 + 2.65.0 tests diff --git a/java-pubsub/samples/snippets/pom.xml b/java-pubsub/samples/snippets/pom.xml index e3569da1cd92..42f69ff4a90a 100644 --- a/java-pubsub/samples/snippets/pom.xml +++ b/java-pubsub/samples/snippets/pom.xml @@ -103,7 +103,7 @@ com.google.cloud google-cloud-core - 2.64.0 + 2.65.0 tests From c6c6331cd63ec415388e3509febd316bad1a0047 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Feb 2026 16:05:08 +0000 Subject: [PATCH 2339/2363] deps: update googleapis/sdk-platform-java action to v2.67.0 (#2683) --- java-pubsub/.github/workflows/hermetic_library_generation.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml index d1a4b69f7aa0..ef71d4f6a10c 100644 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ b/java-pubsub/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.66.0 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.67.0 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} From b4ce64a634eab27f32a80f8832a02e68150d6a57 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Feb 2026 16:05:31 +0000 Subject: [PATCH 2340/2363] deps: update dependency com.google.cloud:sdk-platform-java-config to v3.57.0 (#2696) --- java-pubsub/.github/workflows/unmanaged_dependency_check.yaml | 2 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 2 +- java-pubsub/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml index f480e1e247ba..87add3353c5f 100644 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml @@ -17,6 +17,6 @@ jobs: # repository .kokoro/build.sh - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.56.1 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.57.0 with: bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index b48b9bbc6497..bf8eeede2a3f 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud sdk-platform-java-config - 3.56.1 + 3.57.0 Google Cloud pubsub BOM diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 55d3cdc6b11b..f755e02f3e3d 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -14,7 +14,7 @@ com.google.cloud sdk-platform-java-config - 3.56.1 + 3.57.0 From f671e417ebd377ca227f6643eb3809d9501576ef Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 24 Feb 2026 16:05:44 +0000 Subject: [PATCH 2341/2363] deps: update dependency com.google.cloud:google-cloud-bigquery to v2.59.0 (#2690) --- java-pubsub/samples/install-without-bom/pom.xml | 2 +- java-pubsub/samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java-pubsub/samples/install-without-bom/pom.xml b/java-pubsub/samples/install-without-bom/pom.xml index 72593243d987..f5f4ee888991 100644 --- a/java-pubsub/samples/install-without-bom/pom.xml +++ b/java-pubsub/samples/install-without-bom/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-bigquery - 2.58.0 + 2.59.0 com.google.cloud diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 7b6329efcf46..770851b546a0 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -85,7 +85,7 @@ com.google.cloud google-cloud-bigquery - 2.58.0 + 2.59.0 com.google.cloud From bbdaf8b0c705c7c60f6176dc9c22ea166b030390 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Thu, 26 Feb 2026 14:24:10 -0500 Subject: [PATCH 2342/2363] chore: Add LoggingUtil.java to be preserved (#2698) * chore: Add LoggingUtil.java to be preserved * chore: generate libraries at Thu Feb 26 19:00:55 UTC 2026 --------- Co-authored-by: cloud-java-bot --- java-pubsub/.github/.OwlBot-hermetic.yaml | 1 + java-pubsub/README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java-pubsub/.github/.OwlBot-hermetic.yaml b/java-pubsub/.github/.OwlBot-hermetic.yaml index d426d10ea175..85ecbdeb5f6f 100644 --- a/java-pubsub/.github/.OwlBot-hermetic.yaml +++ b/java-pubsub/.github/.OwlBot-hermetic.yaml @@ -68,6 +68,7 @@ deep-preserve-regex: - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" - "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java" +- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/LoggingUtil.java" deep-copy-regex: - source: "/google/pubsub/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 46a08b0bf35f..0908ab37b6a8 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.74.0 + 26.76.0 pom import @@ -43,7 +43,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.146.0 + 1.148.0 ``` From a33b4223101224098924c3fd4c2c1876a3b1a780 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:03:12 -0500 Subject: [PATCH 2343/2363] chore(main): release 1.148.1-SNAPSHOT (#2689) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index bf8eeede2a3f..fc5b77f2358c 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.148.0 + 1.148.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.148.0 + 1.148.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.130.0 + 1.130.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.130.0 + 1.130.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 3308cdcd1b84..188f542af9c2 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.148.0 + 1.148.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.148.0 + 1.148.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 2550d1719488..962a25751325 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.130.0 + 1.130.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.148.0 + 1.148.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index f755e02f3e3d..484406659200 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.148.0 + 1.148.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.130.0 + 1.130.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.130.0 + 1.130.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.148.0 + 1.148.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index b4fd8af4c1cc..7814e2d2fceb 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.130.0 + 1.130.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.148.0 + 1.148.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 770851b546a0..08e9e6fdf058 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.148.0 + 1.148.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 4d5a1a8ff9ed..efe90b7fba4e 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.148.0:1.148.0 -grpc-google-cloud-pubsub-v1:1.130.0:1.130.0 -proto-google-cloud-pubsub-v1:1.130.0:1.130.0 +google-cloud-pubsub:1.148.0:1.148.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.130.0:1.130.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.130.0:1.130.1-SNAPSHOT From e1bfe8cf58afc6f5871c4eb557960362904c85fd Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 26 Feb 2026 15:58:36 -0500 Subject: [PATCH 2344/2363] chore: Update generation configuration at Thu Feb 26 20:11:10 UTC 2026 (#2671) * chore: Update generation configuration at Tue Jan 27 02:48:00 UTC 2026 * chore: Update generation configuration at Wed Jan 28 02:45:19 UTC 2026 * chore: Update generation configuration at Thu Jan 29 02:58:14 UTC 2026 * chore: Update generation configuration at Fri Jan 30 02:59:03 UTC 2026 * chore: Update generation configuration at Sat Jan 31 02:55:08 UTC 2026 * chore: generate libraries at Sat Jan 31 02:55:36 UTC 2026 * chore: Update generation configuration at Sun Feb 1 03:05:25 UTC 2026 * chore: Update generation configuration at Tue Feb 3 03:02:24 UTC 2026 * chore: Update generation configuration at Wed Feb 4 03:00:02 UTC 2026 * chore: Update generation configuration at Thu Feb 5 03:01:27 UTC 2026 * chore: generate libraries at Thu Feb 5 03:01:57 UTC 2026 * chore: Update generation configuration at Fri Feb 6 03:00:39 UTC 2026 * chore: Update generation configuration at Sat Feb 7 02:57:26 UTC 2026 * chore: Update generation configuration at Tue Feb 10 03:05:35 UTC 2026 * chore: Update generation configuration at Wed Feb 11 03:05:47 UTC 2026 * chore: Update generation configuration at Thu Feb 12 03:05:23 UTC 2026 * chore: Update generation configuration at Fri Feb 13 03:05:24 UTC 2026 * chore: generate libraries at Fri Feb 13 03:05:55 UTC 2026 * chore: Update generation configuration at Sat Feb 14 02:59:26 UTC 2026 * chore: Update generation configuration at Sun Feb 15 03:05:15 UTC 2026 * chore: generate libraries at Sun Feb 15 03:05:44 UTC 2026 * chore: Update generation configuration at Tue Feb 17 03:02:46 UTC 2026 * chore: Update generation configuration at Wed Feb 18 03:03:55 UTC 2026 * chore: Update generation configuration at Thu Feb 19 03:03:15 UTC 2026 * chore: Update generation configuration at Fri Feb 20 03:01:16 UTC 2026 * chore: generate libraries at Fri Feb 20 03:01:49 UTC 2026 * chore: Update generation configuration at Sat Feb 21 02:56:46 UTC 2026 * chore: Update generation configuration at Tue Feb 24 03:03:00 UTC 2026 * chore: Update generation configuration at Wed Feb 25 03:03:27 UTC 2026 * chore: generate libraries at Wed Feb 25 03:03:54 UTC 2026 * chore: Update generation configuration at Thu Feb 26 03:01:04 UTC 2026 * chore: Update generation configuration at Thu Feb 26 20:11:10 UTC 2026 * chore: Add deleted LoggingUtil class * chore: Fix lint issues --------- Co-authored-by: Lawrence Qiu --- java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg | 2 +- java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg | 2 +- java-pubsub/README.md | 2 +- java-pubsub/generation_config.yaml | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg index af4115f37ffd..b113cf7c79f6 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg index 33056bc06760..1f91aa67833e 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.56.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg index 8a6c25f4954f..53a7b7d63bc5 100644 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.56.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 0908ab37b6a8..2339aa3d76af 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.74.0') +implementation platform('com.google.cloud:libraries-bom:26.76.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml index cba64defffbe..86168938d691 100644 --- a/java-pubsub/generation_config.yaml +++ b/java-pubsub/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.66.0 -googleapis_commitish: 2ac88973cbafba24e4fb6f31038e0c76174ae704 -libraries_bom_version: 26.74.0 +gapic_generator_version: 2.67.0 +googleapis_commitish: 9637e50bc0ff6a5e8944980aaf6a2b7f34a90910 +libraries_bom_version: 26.76.0 libraries: - api_shortname: pubsub name_pretty: Cloud Pub/Sub From ff01641a332169684bb7a05eb69ee9827ea6ab00 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 26 Feb 2026 17:53:34 -0500 Subject: [PATCH 2345/2363] chore(main): release 1.149.0 (#2699) * chore(main): release 1.149.0 * chore: generate libraries at Thu Feb 26 20:59:24 UTC 2026 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot --- java-pubsub/CHANGELOG.md | 23 +++++++++++++++++++ java-pubsub/README.md | 6 ++--- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 +++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 +++---- .../proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 ++--- 9 files changed, 44 insertions(+), 21 deletions(-) diff --git a/java-pubsub/CHANGELOG.md b/java-pubsub/CHANGELOG.md index 4d4fa5fbd07c..7d86617e68ea 100644 --- a/java-pubsub/CHANGELOG.md +++ b/java-pubsub/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## [1.149.0](https://github.com/googleapis/java-pubsub/compare/v1.148.0...v1.149.0) (2026-02-26) + + +### Features + +* Add client library debug logging ([c4e10b9](https://github.com/googleapis/java-pubsub/commit/c4e10b95880d0db61b62e89c58d269c755d9e11e)) + + +### Bug Fixes + +* **deps:** Update the Java code generator (gapic-generator-java) to 2.67.0 ([c85f4ea](https://github.com/googleapis/java-pubsub/commit/c85f4eaaf2b28e7c0c544d5a4a92a197112e7723)) +* Do not use directExecutor() for the publish callback when ordering is enabled ([#2693](https://github.com/googleapis/java-pubsub/issues/2693)) ([c7ecd2b](https://github.com/googleapis/java-pubsub/commit/c7ecd2b5aac2719ca55a93d6bd5b9afc9aeb5a9c)) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-bigquery to v2.59.0 ([#2690](https://github.com/googleapis/java-pubsub/issues/2690)) ([bed9464](https://github.com/googleapis/java-pubsub/commit/bed94648ceede888a244d21082b7e403fbae0aaa)) +* Update dependency com.google.cloud:google-cloud-core to v2.65.0 ([#2681](https://github.com/googleapis/java-pubsub/issues/2681)) ([e291b0d](https://github.com/googleapis/java-pubsub/commit/e291b0d98d576f0beceb49af002fc501ad31683f)) +* Update dependency com.google.cloud:google-cloud-storage to v2.63.0 ([#2676](https://github.com/googleapis/java-pubsub/issues/2676)) ([2a1ebea](https://github.com/googleapis/java-pubsub/commit/2a1ebea9d101cc650e1276e30063f87193eb1f6e)) +* Update dependency com.google.cloud:sdk-platform-java-config to v3.57.0 ([#2696](https://github.com/googleapis/java-pubsub/issues/2696)) ([dd02393](https://github.com/googleapis/java-pubsub/commit/dd02393c586de6cfe7d91d9579a490533876c7f1)) +* Update dependency com.google.protobuf:protobuf-java-util to v4.33.5 ([#2678](https://github.com/googleapis/java-pubsub/issues/2678)) ([70b781c](https://github.com/googleapis/java-pubsub/commit/70b781c51dc82de76ff1417c1c0ab4b012cb7cc0)) +* Update googleapis/sdk-platform-java action to v2.67.0 ([#2683](https://github.com/googleapis/java-pubsub/issues/2683)) ([9d5fa5b](https://github.com/googleapis/java-pubsub/commit/9d5fa5b04c633879567b2025bc045ef2e6b48b59)) + ## [1.148.0](https://github.com/googleapis/java-pubsub/compare/v1.147.0...v1.148.0) (2026-02-11) diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 2339aa3d76af..3756b7602fe9 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -58,13 +58,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.148.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.149.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.148.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.149.0" ``` ## Authentication @@ -401,7 +401,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.148.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.149.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index fc5b77f2358c..1b9fae9f0d19 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.148.1-SNAPSHOT + 1.149.0 pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.148.1-SNAPSHOT + 1.149.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.130.1-SNAPSHOT + 1.131.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.130.1-SNAPSHOT + 1.131.0 diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 188f542af9c2..d6b1e963b164 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.148.1-SNAPSHOT + 1.149.0 jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.148.1-SNAPSHOT + 1.149.0 google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index 962a25751325..f9e5777ee0db 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.130.1-SNAPSHOT + 1.131.0 grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.148.1-SNAPSHOT + 1.149.0 diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 484406659200..6929c5e65219 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.148.1-SNAPSHOT + 1.149.0 Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.130.1-SNAPSHOT + 1.131.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.130.1-SNAPSHOT + 1.131.0 com.google.cloud google-cloud-pubsub - 1.148.1-SNAPSHOT + 1.149.0 diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index 7814e2d2fceb..ecbb177aefa8 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.130.1-SNAPSHOT + 1.131.0 proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.148.1-SNAPSHOT + 1.149.0 diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 08e9e6fdf058..b5fd7b23a7f8 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.148.1-SNAPSHOT + 1.149.0 diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index efe90b7fba4e..69040dab2ccb 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.148.0:1.148.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.130.0:1.130.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.130.0:1.130.1-SNAPSHOT +google-cloud-pubsub:1.149.0:1.149.0 +grpc-google-cloud-pubsub-v1:1.131.0:1.131.0 +proto-google-cloud-pubsub-v1:1.131.0:1.131.0 From 26cfa5d0f625c2798c8f2b0abf9c6670d544bb79 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 12:58:03 -0700 Subject: [PATCH 2346/2363] chore(main): release 1.149.1-SNAPSHOT (#2700) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 8 ++++---- java-pubsub/google-cloud-pubsub/pom.xml | 4 ++-- java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/pom.xml | 8 ++++---- java-pubsub/proto-google-cloud-pubsub-v1/pom.xml | 4 ++-- java-pubsub/samples/snapshot/pom.xml | 2 +- java-pubsub/versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 1b9fae9f0d19..02df40a4033e 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.149.0 + 1.149.1-SNAPSHOT pom com.google.cloud @@ -52,17 +52,17 @@ com.google.cloud google-cloud-pubsub - 1.149.0 + 1.149.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.131.0 + 1.131.1-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.131.0 + 1.131.1-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index d6b1e963b164..c7914ddef31e 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.149.0 + 1.149.1-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.149.0 + 1.149.1-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index f9e5777ee0db..aac991b79903 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.131.0 + 1.131.1-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.149.0 + 1.149.1-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 6929c5e65219..706b5ca7f397 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.149.0 + 1.149.1-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/java-pubsub @@ -69,17 +69,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.131.0 + 1.131.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.131.0 + 1.131.1-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.149.0 + 1.149.1-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index ecbb177aefa8..797014929e3c 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.131.0 + 1.131.1-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.149.0 + 1.149.1-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index b5fd7b23a7f8..b96ea4c331c1 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.149.0 + 1.149.1-SNAPSHOT diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt index 69040dab2ccb..56826c969dc8 100644 --- a/java-pubsub/versions.txt +++ b/java-pubsub/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-cloud-pubsub:1.149.0:1.149.0 -grpc-google-cloud-pubsub-v1:1.131.0:1.131.0 -proto-google-cloud-pubsub-v1:1.131.0:1.131.0 +google-cloud-pubsub:1.149.0:1.149.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.131.0:1.131.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.131.0:1.131.1-SNAPSHOT From 1ecf37339c42e59ff83830c526aec97bf53c98f3 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:51 +0000 Subject: [PATCH 2347/2363] chore(java-pubsub): create split GraalVM config --- .../logging-graalvm-native-presubmit.cfg | 16 ++++--- .../pubsub-graalvm-native-presubmit.cfg | 42 +++++++++++++++++++ 2 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 .kokoro/presubmit/pubsub-graalvm-native-presubmit.cfg diff --git a/.kokoro/presubmit/logging-graalvm-native-presubmit.cfg b/.kokoro/presubmit/logging-graalvm-native-presubmit.cfg index d16598bb817f..0cffee8cea7b 100644 --- a/.kokoro/presubmit/logging-graalvm-native-presubmit.cfg +++ b/.kokoro/presubmit/logging-graalvm-native-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.1" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { @@ -14,25 +14,29 @@ env_vars: { # TODO: remove this after we've migrated all tests and scripts env_vars: { key: "GCLOUD_PROJECT" - value: "cloud-java-ci-test" + value: "gcloud-devel" } env_vars: { key: "GOOGLE_CLOUD_PROJECT" - value: "cloud-java-ci-test" + value: "gcloud-devel" } env_vars: { key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/cloud-java-ci-it-service-account" + value: "secret_manager/java-it-service-account" } env_vars: { key: "SECRET_MANAGER_KEYS" - value: "cloud-java-ci-it-service-account, java-bigqueryconnection-samples-secrets" + value: "java-it-service-account" } +env_vars: { + key: "IT_SERVICE_ACCOUNT_EMAIL" + value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" +} env_vars: { key: "BUILD_SUBDIR" - value: "java-logging" + value: "java-pubsub" } diff --git a/.kokoro/presubmit/pubsub-graalvm-native-presubmit.cfg b/.kokoro/presubmit/pubsub-graalvm-native-presubmit.cfg new file mode 100644 index 000000000000..0cffee8cea7b --- /dev/null +++ b/.kokoro/presubmit/pubsub-graalvm-native-presubmit.cfg @@ -0,0 +1,42 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current} +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm-single" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} + +env_vars: { + key: "IT_SERVICE_ACCOUNT_EMAIL" + value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" +} +env_vars: { + key: "BUILD_SUBDIR" + value: "java-pubsub" +} From 5c89b4161a8f6d008e933f065567fdd5d8a6177e Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:51 +0000 Subject: [PATCH 2348/2363] chore(java-pubsub): add to excluded_modules in .kokoro/common.sh --- .kokoro/common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.kokoro/common.sh b/.kokoro/common.sh index c2db30296c22..c5a9190c36ad 100644 --- a/.kokoro/common.sh +++ b/.kokoro/common.sh @@ -23,6 +23,7 @@ excluded_modules=( 'java-bigquerystorage' 'java-datastore' 'java-logging-logback' + 'java-pubsub' ) function retry_with_backoff { From 7a3922f1b95725c5bfa6c3aae4dc20e8e14ba497 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:52 +0000 Subject: [PATCH 2349/2363] chore(java-pubsub): update .repo-metadata.json --- java-pubsub/.repo-metadata.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 31cf00630cbd..0d84f92f4e4f 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -7,8 +7,8 @@ "release_level": "stable", "transport": "both", "language": "java", - "repo": "googleapis/java-pubsub", - "repo_short": "java-pubsub", + "repo": "googleapis/google-cloud-java", + "repo_short": "google-cloud-java", "distribution_name": "com.google.cloud:google-cloud-pubsub", "api_id": "pubsub.googleapis.com", "library_type": "GAPIC_COMBO", @@ -17,4 +17,4 @@ "codeowner_team": "@googleapis/pubsub-team", "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", "recommended_package": "com.google.cloud.pubsub.v1" -} \ No newline at end of file +} From b128ed8310a42b2d92b91d971e692a4e63bee913 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:53 +0000 Subject: [PATCH 2350/2363] chore(java-pubsub): migrate java-pubsub into monorepo --- java-pubsub/.gitignore | 44 ---- java-pubsub/.kokoro/build.bat | 18 -- java-pubsub/.kokoro/build.sh | 171 --------------- java-pubsub/.kokoro/coerce_logs.sh | 37 ---- java-pubsub/.kokoro/common.cfg | 13 -- java-pubsub/.kokoro/common.sh | 60 ------ java-pubsub/.kokoro/continuous/common.cfg | 25 --- java-pubsub/.kokoro/continuous/java8.cfg | 12 -- .../.kokoro/continuous/propose_release.sh | 29 --- java-pubsub/.kokoro/dependencies.sh | 59 ----- java-pubsub/.kokoro/nightly/common.cfg | 25 --- java-pubsub/.kokoro/nightly/integration.cfg | 38 ---- .../.kokoro/nightly/java11-integration.cfg | 38 ---- java-pubsub/.kokoro/nightly/java11.cfg | 7 - java-pubsub/.kokoro/nightly/java7.cfg | 7 - java-pubsub/.kokoro/nightly/java8-osx.cfg | 3 - java-pubsub/.kokoro/nightly/java8-win.cfg | 3 - java-pubsub/.kokoro/nightly/java8.cfg | 12 -- java-pubsub/.kokoro/nightly/samples.cfg | 38 ---- java-pubsub/.kokoro/populate-secrets.sh | 43 ---- java-pubsub/.kokoro/presubmit/clirr.cfg | 13 -- java-pubsub/.kokoro/presubmit/common.cfg | 34 --- .../.kokoro/presubmit/dependencies.cfg | 12 -- .../.kokoro/presubmit/graalvm-native-a.cfg | 38 ---- .../.kokoro/presubmit/graalvm-native-b.cfg | 38 ---- .../.kokoro/presubmit/graalvm-native-c.cfg | 38 ---- java-pubsub/.kokoro/presubmit/integration.cfg | 34 --- java-pubsub/.kokoro/presubmit/java11.cfg | 7 - java-pubsub/.kokoro/presubmit/java7.cfg | 7 - java-pubsub/.kokoro/presubmit/java8-osx.cfg | 3 - java-pubsub/.kokoro/presubmit/java8-win.cfg | 3 - java-pubsub/.kokoro/presubmit/java8.cfg | 12 -- .../.kokoro/presubmit/linkage-monitor.cfg | 12 -- java-pubsub/.kokoro/presubmit/lint.cfg | 13 -- .../presubmit-against-pubsublite-samples.cfg | 38 ---- java-pubsub/.kokoro/presubmit/samples.cfg | 33 --- java-pubsub/.kokoro/readme.sh | 45 ---- java-pubsub/.kokoro/trampoline.sh | 26 --- java-pubsub/CODE_OF_CONDUCT.md | 94 -------- java-pubsub/CONTRIBUTING.md | 92 -------- java-pubsub/LICENSE | 201 ------------------ java-pubsub/SECURITY.md | 7 - java-pubsub/codecov.yaml | 4 - java-pubsub/java.header | 15 -- java-pubsub/license-checks.xml | 10 - java-pubsub/renovate.json | 98 --------- java-pubsub/synth.metadata | 37 ---- 47 files changed, 1646 deletions(-) delete mode 100644 java-pubsub/.gitignore delete mode 100644 java-pubsub/.kokoro/build.bat delete mode 100755 java-pubsub/.kokoro/build.sh delete mode 100755 java-pubsub/.kokoro/coerce_logs.sh delete mode 100644 java-pubsub/.kokoro/common.cfg delete mode 100644 java-pubsub/.kokoro/common.sh delete mode 100644 java-pubsub/.kokoro/continuous/common.cfg delete mode 100644 java-pubsub/.kokoro/continuous/java8.cfg delete mode 100755 java-pubsub/.kokoro/continuous/propose_release.sh delete mode 100755 java-pubsub/.kokoro/dependencies.sh delete mode 100644 java-pubsub/.kokoro/nightly/common.cfg delete mode 100644 java-pubsub/.kokoro/nightly/integration.cfg delete mode 100644 java-pubsub/.kokoro/nightly/java11-integration.cfg delete mode 100644 java-pubsub/.kokoro/nightly/java11.cfg delete mode 100644 java-pubsub/.kokoro/nightly/java7.cfg delete mode 100644 java-pubsub/.kokoro/nightly/java8-osx.cfg delete mode 100644 java-pubsub/.kokoro/nightly/java8-win.cfg delete mode 100644 java-pubsub/.kokoro/nightly/java8.cfg delete mode 100644 java-pubsub/.kokoro/nightly/samples.cfg delete mode 100755 java-pubsub/.kokoro/populate-secrets.sh delete mode 100644 java-pubsub/.kokoro/presubmit/clirr.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/common.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/dependencies.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/integration.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/java11.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/java7.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/java8-osx.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/java8-win.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/java8.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/linkage-monitor.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/lint.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/presubmit-against-pubsublite-samples.cfg delete mode 100644 java-pubsub/.kokoro/presubmit/samples.cfg delete mode 100755 java-pubsub/.kokoro/readme.sh delete mode 100644 java-pubsub/.kokoro/trampoline.sh delete mode 100644 java-pubsub/CODE_OF_CONDUCT.md delete mode 100644 java-pubsub/CONTRIBUTING.md delete mode 100644 java-pubsub/LICENSE delete mode 100644 java-pubsub/SECURITY.md delete mode 100644 java-pubsub/codecov.yaml delete mode 100644 java-pubsub/java.header delete mode 100644 java-pubsub/license-checks.xml delete mode 100644 java-pubsub/renovate.json delete mode 100644 java-pubsub/synth.metadata diff --git a/java-pubsub/.gitignore b/java-pubsub/.gitignore deleted file mode 100644 index dbde6a740b09..000000000000 --- a/java-pubsub/.gitignore +++ /dev/null @@ -1,44 +0,0 @@ -# Packages -dist -bin -var -sdist -target - -# Unit test / coverage reports -.coverage -.tox -nosetests.xml - -# Translations -*.mo - -# Mr Developer -.mr.developer.cfg - -.metadata -.project -.pydevproject -*.iml -.idea -.settings -.DS_Store -.classpath - -# Built documentation -docs/ - - -# Wheel directory used in Travis builds. -gcloud-java-wheels/ -src/test/resources/gcd-head.zip -src/test/resources/gcd-v1beta2-rev1-2.1.1.zip - -# API key file containing value of GOOGLE_API_KEY for integration tests -api_key - -# Python utilities -*.pyc -artman-genfiles - -.flattened-pom.xml diff --git a/java-pubsub/.kokoro/build.bat b/java-pubsub/.kokoro/build.bat deleted file mode 100644 index 067cf4a4c489..000000000000 --- a/java-pubsub/.kokoro/build.bat +++ /dev/null @@ -1,18 +0,0 @@ -:: Copyright 2022 Google LLC -:: -:: Licensed under the Apache License, Version 2.0 (the "License"); -:: you may not use this file except in compliance with the License. -:: You may obtain a copy of the License at -:: -:: http://www.apache.org/licenses/LICENSE-2.0 -:: -:: Unless required by applicable law or agreed to in writing, software -:: distributed under the License is distributed on an "AS IS" BASIS, -:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -:: See the License for the specific language governing permissions and -:: limitations under the License. -:: Github action job to test core java library features on -:: downstream client libraries before they are released. -:: See documentation in type-shell-output.bat - -"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/java-pubsub/.kokoro/build.sh b/java-pubsub/.kokoro/build.sh deleted file mode 100755 index 41903cda1814..000000000000 --- a/java-pubsub/.kokoro/build.sh +++ /dev/null @@ -1,171 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Maven & Java version -mvn -version -echo ${JOB_TYPE} - -# attempt to install 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true \ - -T 1C - -# if GOOGLE_APPLICATION_CREDENTIALS is specified as a relative path, prepend Kokoro root directory onto it -if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then - export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS}) -fi - -RETURN_CODE=0 -set +e - -case ${JOB_TYPE} in -test) - echo "SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT}" - mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true ${SUREFIRE_JVM_OPT} - RETURN_CODE=$? - ;; -lint) - mvn com.spotify.fmt:fmt-maven-plugin:check - RETURN_CODE=$? - ;; -javadoc) - mvn javadoc:javadoc javadoc:test-javadoc - RETURN_CODE=$? - ;; -integration) - mvn -B ${INTEGRATION_TEST_ARGS} \ - -ntp \ - -Penable-integration-tests \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - ;; -graalvm) - # Run Unit and Integration Tests with Native Image - mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test - RETURN_CODE=$? - ;; -graalvm17) - # Run Unit and Integration Tests with Native Image - mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test - RETURN_CODE=$? - ;; -samples) - SAMPLES_DIR=samples - # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. - if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]] - then - SAMPLES_DIR=samples/snapshot - fi - - if [[ -f ${SAMPLES_DIR}/pom.xml ]] - then - for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do - [[ -f "$FILE" ]] || continue - source "$FILE" - done - - pushd ${SAMPLES_DIR} - mvn -B \ - -Penable-samples \ - -ntp \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - popd - else - echo "no sample pom.xml found - skipping sample tests" - fi - ;; -presubmit-against-pubsublite-samples) - ## cd to the directory one level above the root of the repo - cd ${scriptDir}/../.. - git clone https://github.com/googleapis/java-pubsublite.git - pushd java-pubsublite/ - - SAMPLES_DIR=samples - # Only run ITs in in snippets/ on presubmit PRs. - if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]] - then - SAMPLES_DIR=samples/snippets - fi - - if [[ -f ${SAMPLES_DIR}/pom.xml ]] - then - for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do - [[ -f "$FILE" ]] || continue - source "$FILE" - done - - pushd ${SAMPLES_DIR} - mvn -B \ - -Penable-samples \ - -ntp \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - popd - else - echo "no sample pom.xml found - skipping sample tests" - fi - ;; -clirr) - mvn -B -Denforcer.skip=true clirr:check - RETURN_CODE=$? - ;; -*) - ;; -esac - -if [ "${REPORT_COVERAGE}" == "true" ] -then - bash ${KOKORO_GFILE_DIR}/codecov.sh -fi - -# fix output location of logs -bash .kokoro/coerce_logs.sh - -if [[ "${ENABLE_BUILD_COP}" == "true" ]] -then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot - ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-pubsub -fi - -echo "exiting with ${RETURN_CODE}" -exit ${RETURN_CODE} diff --git a/java-pubsub/.kokoro/coerce_logs.sh b/java-pubsub/.kokoro/coerce_logs.sh deleted file mode 100755 index 46edbf7f2fcd..000000000000 --- a/java-pubsub/.kokoro/coerce_logs.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This script finds and moves sponge logs so that they can be found by placer -# and are not flagged as flaky by sponge. - -set -eo pipefail - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -job=$(basename ${KOKORO_JOB_NAME}) - -echo "coercing sponge logs..." -for xml in `find . -name *-sponge_log.xml` -do - class=$(basename ${xml} | cut -d- -f2) - dir=$(dirname ${xml})/${job}/${class} - text=$(dirname ${xml})/${class}-sponge_log.txt - mkdir -p ${dir} - mv ${xml} ${dir}/sponge_log.xml - mv ${text} ${dir}/sponge_log.txt -done diff --git a/java-pubsub/.kokoro/common.cfg b/java-pubsub/.kokoro/common.cfg deleted file mode 100644 index 5b49e5f18aad..000000000000 --- a/java-pubsub/.kokoro/common.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# All builds use the trampoline script to run in docker. -build_file: "java-pubsub/.kokoro/trampoline.sh" - -# Tell the trampoline which build file to use. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/build.sh" -} diff --git a/java-pubsub/.kokoro/common.sh b/java-pubsub/.kokoro/common.sh deleted file mode 100644 index f8f957af1112..000000000000 --- a/java-pubsub/.kokoro/common.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -function retry_with_backoff { - attempts_left=$1 - sleep_seconds=$2 - shift 2 - command=$@ - - - # store current flag state - flags=$- - - # allow a failures to continue - set +e - ${command} - exit_code=$? - - # restore "e" flag - if [[ ${flags} =~ e ]] - then set -e - else set +e - fi - - if [[ $exit_code == 0 ]] - then - return 0 - fi - - # failure - if [[ ${attempts_left} > 0 ]] - then - echo "failure (${exit_code}), sleeping ${sleep_seconds}..." - sleep ${sleep_seconds} - new_attempts=$((${attempts_left} - 1)) - new_sleep=$((${sleep_seconds} * 2)) - retry_with_backoff ${new_attempts} ${new_sleep} ${command} - fi - - return $exit_code -} - -## Helper functionss -function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } -function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } - -## Helper comment to trigger updated repo dependency release \ No newline at end of file diff --git a/java-pubsub/.kokoro/continuous/common.cfg b/java-pubsub/.kokoro/continuous/common.cfg deleted file mode 100644 index 4fd0d8a4d68d..000000000000 --- a/java-pubsub/.kokoro/continuous/common.cfg +++ /dev/null @@ -1,25 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-pubsub/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} diff --git a/java-pubsub/.kokoro/continuous/java8.cfg b/java-pubsub/.kokoro/continuous/java8.cfg deleted file mode 100644 index 495cc7bacd63..000000000000 --- a/java-pubsub/.kokoro/continuous/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/java-pubsub/.kokoro/continuous/propose_release.sh b/java-pubsub/.kokoro/continuous/propose_release.sh deleted file mode 100755 index 7f66694b0b1a..000000000000 --- a/java-pubsub/.kokoro/continuous/propose_release.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -export NPM_CONFIG_PREFIX=/home/node/.npm-global - -if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then - # Groom the release PR as new commits are merged. - npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ - --repo-url=googleapis/java-pubsub \ - --package-name="pubsub" \ - --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ - --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ - --release-type=java-yoshi -fi diff --git a/java-pubsub/.kokoro/dependencies.sh b/java-pubsub/.kokoro/dependencies.sh deleted file mode 100755 index bd8960246f66..000000000000 --- a/java-pubsub/.kokoro/dependencies.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail -shopt -s nullglob - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Java -java -version -echo $JOB_TYPE - -function determineMavenOpts() { - local javaVersion=$( - # filter down to the version line, then pull out the version between quotes, - # then trim the version number down to its minimal number (removing any - # update or suffix number). - java -version 2>&1 | grep "version" \ - | sed -E 's/^.*"(.*?)".*$/\1/g' \ - | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' - ) - - if [[ $javaVersion == 17* ]] - then - # MaxPermSize is no longer supported as of jdk 17 - echo -n "-Xmx1024m" - else - echo -n "-Xmx1024m -XX:MaxPermSize=128m" - fi -} - -export MAVEN_OPTS=$(determineMavenOpts) - -# this should run maven enforcer -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dmaven.javadoc.skip=true \ - -Dclirr.skip=true - -mvn -B dependency:analyze -DfailOnWarning=true diff --git a/java-pubsub/.kokoro/nightly/common.cfg b/java-pubsub/.kokoro/nightly/common.cfg deleted file mode 100644 index 4fd0d8a4d68d..000000000000 --- a/java-pubsub/.kokoro/nightly/common.cfg +++ /dev/null @@ -1,25 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-pubsub/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} diff --git a/java-pubsub/.kokoro/nightly/integration.cfg b/java-pubsub/.kokoro/nightly/integration.cfg deleted file mode 100644 index 5a95c68284c4..000000000000 --- a/java-pubsub/.kokoro/nightly/integration.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "true" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} - diff --git a/java-pubsub/.kokoro/nightly/java11-integration.cfg b/java-pubsub/.kokoro/nightly/java11-integration.cfg deleted file mode 100644 index 6a6ef94eff28..000000000000 --- a/java-pubsub/.kokoro/nightly/java11-integration.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/java11014" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "true" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} - diff --git a/java-pubsub/.kokoro/nightly/java11.cfg b/java-pubsub/.kokoro/nightly/java11.cfg deleted file mode 100644 index 709f2b4c73db..000000000000 --- a/java-pubsub/.kokoro/nightly/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/java-pubsub/.kokoro/nightly/java7.cfg b/java-pubsub/.kokoro/nightly/java7.cfg deleted file mode 100644 index cb24f44eea3b..000000000000 --- a/java-pubsub/.kokoro/nightly/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/java-pubsub/.kokoro/nightly/java8-osx.cfg b/java-pubsub/.kokoro/nightly/java8-osx.cfg deleted file mode 100644 index a41d2bac4b09..000000000000 --- a/java-pubsub/.kokoro/nightly/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-pubsub/.kokoro/build.sh" diff --git a/java-pubsub/.kokoro/nightly/java8-win.cfg b/java-pubsub/.kokoro/nightly/java8-win.cfg deleted file mode 100644 index ea3671f20e1a..000000000000 --- a/java-pubsub/.kokoro/nightly/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-pubsub/.kokoro/build.bat" diff --git a/java-pubsub/.kokoro/nightly/java8.cfg b/java-pubsub/.kokoro/nightly/java8.cfg deleted file mode 100644 index 495cc7bacd63..000000000000 --- a/java-pubsub/.kokoro/nightly/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/java-pubsub/.kokoro/nightly/samples.cfg b/java-pubsub/.kokoro/nightly/samples.cfg deleted file mode 100644 index 9761fd8648cb..000000000000 --- a/java-pubsub/.kokoro/nightly/samples.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "true" -} diff --git a/java-pubsub/.kokoro/populate-secrets.sh b/java-pubsub/.kokoro/populate-secrets.sh deleted file mode 100755 index f52514257ef0..000000000000 --- a/java-pubsub/.kokoro/populate-secrets.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} -function msg { println "$*" >&2 ;} -function println { printf '%s\n' "$(now) $*" ;} - - -# Populates requested secrets set in SECRET_MANAGER_KEYS from service account: -# kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com -SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" -msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" -mkdir -p ${SECRET_LOCATION} -for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") -do - msg "Retrieving secret ${key}" - docker run --entrypoint=gcloud \ - --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ - gcr.io/google.com/cloudsdktool/cloud-sdk \ - secrets versions access latest \ - --project cloud-devrel-kokoro-resources \ - --secret ${key} > \ - "${SECRET_LOCATION}/${key}" - if [[ $? == 0 ]]; then - msg "Secret written to ${SECRET_LOCATION}/${key}" - else - msg "Error retrieving secret ${key}" - fi -done diff --git a/java-pubsub/.kokoro/presubmit/clirr.cfg b/java-pubsub/.kokoro/presubmit/clirr.cfg deleted file mode 100644 index ec572442e2e7..000000000000 --- a/java-pubsub/.kokoro/presubmit/clirr.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "clirr" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/common.cfg b/java-pubsub/.kokoro/presubmit/common.cfg deleted file mode 100644 index d505befa2f45..000000000000 --- a/java-pubsub/.kokoro/presubmit/common.cfg +++ /dev/null @@ -1,34 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-pubsub/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "dpebot_codecov_token" - } - } -} diff --git a/java-pubsub/.kokoro/presubmit/dependencies.cfg b/java-pubsub/.kokoro/presubmit/dependencies.cfg deleted file mode 100644 index 16bc14cd56df..000000000000 --- a/java-pubsub/.kokoro/presubmit/dependencies.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/dependencies.sh" -} diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg deleted file mode 100644 index b113cf7c79f6..000000000000 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-a.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current} -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} - -env_vars: { - key: "IT_SERVICE_ACCOUNT_EMAIL" - value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg deleted file mode 100644 index 1f91aa67833e..000000000000 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-b.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current} -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} - -env_vars: { - key: "IT_SERVICE_ACCOUNT_EMAIL" - value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg b/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg deleted file mode 100644 index 53a7b7d63bc5..000000000000 --- a/java-pubsub/.kokoro/presubmit/graalvm-native-c.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.57.0" # {x-version-update:google-cloud-shared-dependencies:current} -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} - -env_vars: { - key: "IT_SERVICE_ACCOUNT_EMAIL" - value: "it-service-account@gcloud-devel.iam.gserviceaccount.com" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/integration.cfg b/java-pubsub/.kokoro/presubmit/integration.cfg deleted file mode 100644 index 5864c603e5ad..000000000000 --- a/java-pubsub/.kokoro/presubmit/integration.cfg +++ /dev/null @@ -1,34 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} - diff --git a/java-pubsub/.kokoro/presubmit/java11.cfg b/java-pubsub/.kokoro/presubmit/java11.cfg deleted file mode 100644 index 709f2b4c73db..000000000000 --- a/java-pubsub/.kokoro/presubmit/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/java-pubsub/.kokoro/presubmit/java7.cfg b/java-pubsub/.kokoro/presubmit/java7.cfg deleted file mode 100644 index cb24f44eea3b..000000000000 --- a/java-pubsub/.kokoro/presubmit/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/java-pubsub/.kokoro/presubmit/java8-osx.cfg b/java-pubsub/.kokoro/presubmit/java8-osx.cfg deleted file mode 100644 index a41d2bac4b09..000000000000 --- a/java-pubsub/.kokoro/presubmit/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-pubsub/.kokoro/build.sh" diff --git a/java-pubsub/.kokoro/presubmit/java8-win.cfg b/java-pubsub/.kokoro/presubmit/java8-win.cfg deleted file mode 100644 index ea3671f20e1a..000000000000 --- a/java-pubsub/.kokoro/presubmit/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-pubsub/.kokoro/build.bat" diff --git a/java-pubsub/.kokoro/presubmit/java8.cfg b/java-pubsub/.kokoro/presubmit/java8.cfg deleted file mode 100644 index 495cc7bacd63..000000000000 --- a/java-pubsub/.kokoro/presubmit/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/java-pubsub/.kokoro/presubmit/linkage-monitor.cfg b/java-pubsub/.kokoro/presubmit/linkage-monitor.cfg deleted file mode 100644 index 85e1a502c58f..000000000000 --- a/java-pubsub/.kokoro/presubmit/linkage-monitor.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-pubsub/.kokoro/linkage-monitor.sh" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/lint.cfg b/java-pubsub/.kokoro/presubmit/lint.cfg deleted file mode 100644 index 6d323c8ae768..000000000000 --- a/java-pubsub/.kokoro/presubmit/lint.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "lint" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/presubmit-against-pubsublite-samples.cfg b/java-pubsub/.kokoro/presubmit/presubmit-against-pubsublite-samples.cfg deleted file mode 100644 index 7efa00b77184..000000000000 --- a/java-pubsub/.kokoro/presubmit/presubmit-against-pubsublite-samples.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} - -env_vars: { - key: "JOB_TYPE" - value: "presubmit-against-pubsublite-samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT_NUMBER" - value: "779844219229" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/presubmit/samples.cfg b/java-pubsub/.kokoro/presubmit/samples.cfg deleted file mode 100644 index 01e0960047b8..000000000000 --- a/java-pubsub/.kokoro/presubmit/samples.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} \ No newline at end of file diff --git a/java-pubsub/.kokoro/readme.sh b/java-pubsub/.kokoro/readme.sh deleted file mode 100755 index 6a3d816cacec..000000000000 --- a/java-pubsub/.kokoro/readme.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -cd ${KOKORO_ARTIFACTS_DIR}/github/java-pubsub - -# Disable buffering, so that the logs stream through. -export PYTHONUNBUFFERED=1 - -# Kokoro exposes this as a file, but the scripts expect just a plain variable. -export GITHUB_TOKEN=$(cat ${KOKORO_KEYSTORE_DIR}/73713_yoshi-automation-github-key) - -# Setup git credentials -echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials -git config --global credential.helper 'store --file ~/.git-credentials' - -python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool - -set +e -python3.6 -m autosynth.synth \ - --repository=googleapis/java-pubsub \ - --synth-file-name=.github/readme/synth.py \ - --metadata-path=.github/readme/synth.metadata \ - --pr-title="chore: regenerate README" \ - --branch-suffix="readme" - -# autosynth returns 28 to signal there are no changes -RETURN_CODE=$? -if [[ ${RETURN_CODE} -ne 0 && ${RETURN_CODE} -ne 28 ]] -then - exit ${RETURN_CODE} -fi diff --git a/java-pubsub/.kokoro/trampoline.sh b/java-pubsub/.kokoro/trampoline.sh deleted file mode 100644 index 8b69b793c9ec..000000000000 --- a/java-pubsub/.kokoro/trampoline.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -set -eo pipefail -# Always run the cleanup script, regardless of the success of bouncing into -# the container. -function cleanup() { - chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - echo "cleanup"; -} -trap cleanup EXIT - -$(dirname $0)/populate-secrets.sh # Secret Manager secrets. -python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/java-pubsub/CODE_OF_CONDUCT.md b/java-pubsub/CODE_OF_CONDUCT.md deleted file mode 100644 index 2add2547a812..000000000000 --- a/java-pubsub/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,94 +0,0 @@ - -# Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to making participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, gender identity and expression, level of -experience, education, socio-economic status, nationality, personal appearance, -race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or - advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject -comments, commits, code, wiki edits, issues, and other contributions that are -not aligned to this Code of Conduct, or to ban temporarily or permanently any -contributor for other behaviors that they deem inappropriate, threatening, -offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. Examples of -representing a project or community include using an official project e-mail -address, posting via an official social media account, or acting as an appointed -representative at an online or offline event. Representation of a project may be -further defined and clarified by project maintainers. - -This Code of Conduct also applies outside the project spaces when the Project -Steward has a reasonable belief that an individual's behavior may have a -negative impact on the project or its community. - -## Conflict Resolution - -We do not believe that all conflict is bad; healthy debate and disagreement -often yield positive results. However, it is never okay to be disrespectful or -to engage in behavior that violates the project’s code of conduct. - -If you see someone violating the code of conduct, you are encouraged to address -the behavior directly with those involved. Many issues can be resolved quickly -and easily, and this gives people more control over the outcome of their -dispute. If you are unable to resolve the matter for any reason, or if the -behavior is threatening or harassing, report it. We are dedicated to providing -an environment where participants feel welcome and safe. - -Reports should be directed to *googleapis-stewards@google.com*, the -Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to -receive and address reported violations of the code of conduct. They will then -work with a committee consisting of representatives from the Open Source -Programs Office and the Google Open Source Strategy team. If for any reason you -are uncomfortable reaching out to the Project Steward, please email -opensource@google.com. - -We will investigate every complaint, but you may not receive a direct response. -We will use our discretion in determining when and how to follow up on reported -incidents, which may range from not taking action to permanent expulsion from -the project and project-sponsored spaces. We will notify the accused of the -report and provide them an opportunity to discuss it before any action is taken. -The identity of the reporter will be omitted from the details of the report -supplied to the accused. In potentially harmful situations, such as ongoing -harassment or threats to anyone's safety, we may take action without notice. - -## Attribution - -This Code of Conduct is adapted from the Contributor Covenant, version 1.4, -available at -https://www.contributor-covenant.org/version/1/4/code-of-conduct.html \ No newline at end of file diff --git a/java-pubsub/CONTRIBUTING.md b/java-pubsub/CONTRIBUTING.md deleted file mode 100644 index ff092b68e3fc..000000000000 --- a/java-pubsub/CONTRIBUTING.md +++ /dev/null @@ -1,92 +0,0 @@ -# How to Contribute - -We'd love to accept your patches and contributions to this project. There are -just a few small guidelines you need to follow. - -## Contributor License Agreement - -Contributions to this project must be accompanied by a Contributor License -Agreement. You (or your employer) retain the copyright to your contribution; -this simply gives us permission to use and redistribute your contributions as -part of the project. Head over to to see -your current agreements on file or to sign a new one. - -You generally only need to submit a CLA once, so if you've already submitted one -(even if it was for a different project), you probably don't need to do it -again. - -## Code reviews - -All submissions, including submissions by project members, require review. We -use GitHub pull requests for this purpose. Consult -[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more -information on using pull requests. - -## Community Guidelines - -This project follows -[Google's Open Source Community Guidelines](https://opensource.google.com/conduct/). - -## Building the project - -To build, package, and run all unit tests run the command - -``` -mvn clean verify -``` - -### Running Integration tests - -To include integration tests when building the project, you need access to -a GCP Project with a valid service account. - -For instructions on how to generate a service account and corresponding -credentials JSON see: [Creating a Service Account][1]. - -Then run the following to build, package, run all unit tests and run all -integration tests. - -```bash -export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json -mvn -Penable-integration-tests clean verify -``` - -## Code Samples - -All code samples must be in compliance with the [java sample formatting guide][3]. -Code Samples must be bundled in separate Maven modules. - -The samples must be separate from the primary project for a few reasons: -1. Primary projects have a minimum Java version of Java 8 whereas samples can have - Java version of Java 11. Due to this we need the ability to - selectively exclude samples from a build run. -2. Many code samples depend on external GCP services and need - credentials to access the service. -3. Code samples are not released as Maven artifacts and must be excluded from - release builds. - -### Building - -```bash -mvn clean verify -``` - -Some samples require access to GCP services and require a service account: - -```bash -export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json -mvn clean verify -``` - -### Code Formatting - -Code in this repo is formatted with -[google-java-format](https://github.com/google/google-java-format). -To run formatting on your project, you can run: -``` -mvn com.spotify.fmt:fmt-maven-plugin:format -``` - -[1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account -[2]: https://maven.apache.org/settings.html#Active_Profiles -[3]: https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md \ No newline at end of file diff --git a/java-pubsub/LICENSE b/java-pubsub/LICENSE deleted file mode 100644 index 261eeb9e9f8b..000000000000 --- a/java-pubsub/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/java-pubsub/SECURITY.md b/java-pubsub/SECURITY.md deleted file mode 100644 index 8b58ae9c01ae..000000000000 --- a/java-pubsub/SECURITY.md +++ /dev/null @@ -1,7 +0,0 @@ -# Security Policy - -To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). - -The Google Security Team will respond within 5 working days of your report on g.co/vulnz. - -We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. diff --git a/java-pubsub/codecov.yaml b/java-pubsub/codecov.yaml deleted file mode 100644 index 5724ea9478d7..000000000000 --- a/java-pubsub/codecov.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -codecov: - ci: - - source.cloud.google.com diff --git a/java-pubsub/java.header b/java-pubsub/java.header deleted file mode 100644 index d0970ba7d375..000000000000 --- a/java-pubsub/java.header +++ /dev/null @@ -1,15 +0,0 @@ -^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ -^ \*$ -^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ -^ \* you may not use this file except in compliance with the License\.$ -^ \* You may obtain a copy of the License at$ -^ \*$ -^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ -^ \*$ -^ \* Unless required by applicable law or agreed to in writing, software$ -^ \* distributed under the License is distributed on an "AS IS" BASIS,$ -^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ -^ \* See the License for the specific language governing permissions and$ -^ \* limitations under the License\.$ -^ \*/$ diff --git a/java-pubsub/license-checks.xml b/java-pubsub/license-checks.xml deleted file mode 100644 index 6597fced808e..000000000000 --- a/java-pubsub/license-checks.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/java-pubsub/renovate.json b/java-pubsub/renovate.json deleted file mode 100644 index 7d5a289e6167..000000000000 --- a/java-pubsub/renovate.json +++ /dev/null @@ -1,98 +0,0 @@ - -{ - - "extends": [ - ":separateMajorReleases", - ":combinePatchMinorReleases", - ":ignoreUnstable", - ":prImmediately", - ":updateNotScheduled", - ":automergeDisabled", - ":ignoreModulesAndTests", - ":maintainLockFilesDisabled", - ":autodetectPinVersions" - ], - "ignorePaths": [ - ".kokoro/requirements.txt", - ".github/workflows/approve-readme.yaml", - ".github/workflows/ci.yaml", - ".github/workflows/renovate_config_check.yaml", - ".github/workflows/samples.yaml" - ], - "customManagers": [ - { - "customType": "regex", - "fileMatch": [ - "^.github/workflows/unmanaged_dependency_check.yaml$" - ], - "matchStrings": [ - "uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v(?.+?)\\n" - ], - "depNameTemplate": "com.google.cloud:sdk-platform-java-config", - "datasourceTemplate": "maven" - } - ], - "packageRules": [ - { - "packagePatterns": [ - "^com.google.guava:" - ], - "versionScheme": "docker" - }, - { - "packagePatterns": [ - "*" - ], - "semanticCommitType": "deps", - "semanticCommitScope": null - }, - { - "packagePatterns": [ - "^org.apache.maven", - "^org.jacoco:", - "^org.codehaus.mojo:", - "^org.sonatype.plugins:", - "^com.google.cloud:google-cloud-shared-config" - ], - "semanticCommitType": "build", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.cloud:google-cloud-pubsub", - "^com.google.cloud:libraries-bom", - "^com.google.cloud.samples:shared-configuration" - ], - "semanticCommitType": "chore", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^junit:junit", - "^com.google.truth:truth", - "^org.mockito:mockito-core", - "^org.objenesis:objenesis", - "^com.google.cloud:google-cloud-conformance-tests", - "^org.graalvm.buildtools:junit-platform-native" - ], - "semanticCommitType": "test", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.cloud:google-cloud-" - ], - "ignoreUnstable": false - }, - { - "packagePatterns": [ - "^com.fasterxml.jackson.core" - ], - "groupName": "jackson dependencies" - } - ], - "semanticCommits": true, - "dependencyDashboard": true, - "prConcurrentLimit": 0, - "prHourlyLimit": 0 -} diff --git a/java-pubsub/synth.metadata b/java-pubsub/synth.metadata deleted file mode 100644 index dae629feea07..000000000000 --- a/java-pubsub/synth.metadata +++ /dev/null @@ -1,37 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/hannahrogers-google/java-pubsub.git", - "sha": "e882af1abcd8f6d4efa4e97faeb613dd392ec982" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0b896069c16e32304f0289db165c16ee959ce35e", - "internalRef": "391849098" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "484b7ec7bdef3909589a83e3d763e7588cb8c37c" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "pubsub", - "apiVersion": "v1", - "language": "java", - "generator": "bazel" - } - } - ] -} \ No newline at end of file From 780f26a56ce7ac32f9cdbac80cae89410396bc03 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:53 +0000 Subject: [PATCH 2351/2363] chore(java-pubsub): add code owners for java-pubsub --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 678143b7f31e..f10ea00bc0a3 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -9,3 +9,4 @@ /java-vertexai/ @googleapis/vertexai-team @googleapis/cloud-sdk-java-team /java-bigquerystorage/ @googleapis/bigquery-team @googleapis/cloud-sdk-java-team /java-bigquery/ @googleapis/bigquery-team @googleapis/cloud-sdk-java-team +/java-pubsub/ @googleapis/pubsub-team @googleapis/cloud-sdk-java-team From 749f78ff7f2bbeca72a145abd7e350eb71fcff7b Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:54 +0000 Subject: [PATCH 2352/2363] chore(java-pubsub): add module to root pom.xml --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 76fbb03a2f1f..97b032c9cbda 100644 --- a/pom.xml +++ b/pom.xml @@ -183,6 +183,7 @@ java-privilegedaccessmanager java-profiler java-publicca + java-pubsub java-rapidmigrationassessment java-recaptchaenterprise java-recommendations-ai From 8ef6b8c703e39f66d0c7fa188182adb5e01d7d91 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:55 +0000 Subject: [PATCH 2353/2363] chore(java-pubsub): migrate and adapt GitHub Actions workflows --- java-pubsub/.github/.OwlBot-hermetic.yaml | 79 ------ java-pubsub/.github/CODEOWNERS | 29 --- .../.github/ISSUE_TEMPLATE/bug_report.md | 51 ---- .../.github/ISSUE_TEMPLATE/feature_request.md | 21 -- .../.github/ISSUE_TEMPLATE/support_request.md | 7 - java-pubsub/.github/PULL_REQUEST_TEMPLATE.md | 10 - java-pubsub/.github/auto-label.yaml | 15 -- java-pubsub/.github/blunderbuss.yml | 11 - java-pubsub/.github/dependabot.yml | 19 -- java-pubsub/.github/generated-files-bot.yml | 13 - java-pubsub/.github/release-please.yml | 33 --- java-pubsub/.github/release-trigger.yml | 2 - java-pubsub/.github/snippet-bot.yml | 0 java-pubsub/.github/sync-repo-settings.yaml | 243 ------------------ java-pubsub/.github/trusted-contribution.yml | 9 - .../.github/workflows/approve-readme.yaml | 69 ----- .../.github/workflows/auto-release.yaml | 103 -------- java-pubsub/.github/workflows/ci.yaml | 123 --------- .../hermetic_library_generation.yaml | 45 ---- .../workflows/renovate_config_check.yaml | 25 -- java-pubsub/.github/workflows/samples.yaml | 14 - .../workflows/unmanaged_dependency_check.yaml | 22 -- .../workflows/update_generation_config.yaml | 47 ---- 23 files changed, 990 deletions(-) delete mode 100644 java-pubsub/.github/.OwlBot-hermetic.yaml delete mode 100644 java-pubsub/.github/CODEOWNERS delete mode 100644 java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 java-pubsub/.github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 java-pubsub/.github/ISSUE_TEMPLATE/support_request.md delete mode 100644 java-pubsub/.github/PULL_REQUEST_TEMPLATE.md delete mode 100644 java-pubsub/.github/auto-label.yaml delete mode 100644 java-pubsub/.github/blunderbuss.yml delete mode 100644 java-pubsub/.github/dependabot.yml delete mode 100644 java-pubsub/.github/generated-files-bot.yml delete mode 100644 java-pubsub/.github/release-please.yml delete mode 100644 java-pubsub/.github/release-trigger.yml delete mode 100644 java-pubsub/.github/snippet-bot.yml delete mode 100644 java-pubsub/.github/sync-repo-settings.yaml delete mode 100644 java-pubsub/.github/trusted-contribution.yml delete mode 100644 java-pubsub/.github/workflows/approve-readme.yaml delete mode 100644 java-pubsub/.github/workflows/auto-release.yaml delete mode 100644 java-pubsub/.github/workflows/ci.yaml delete mode 100644 java-pubsub/.github/workflows/hermetic_library_generation.yaml delete mode 100644 java-pubsub/.github/workflows/renovate_config_check.yaml delete mode 100644 java-pubsub/.github/workflows/samples.yaml delete mode 100644 java-pubsub/.github/workflows/unmanaged_dependency_check.yaml delete mode 100644 java-pubsub/.github/workflows/update_generation_config.yaml diff --git a/java-pubsub/.github/.OwlBot-hermetic.yaml b/java-pubsub/.github/.OwlBot-hermetic.yaml deleted file mode 100644 index 85ecbdeb5f6f..000000000000 --- a/java-pubsub/.github/.OwlBot-hermetic.yaml +++ /dev/null @@ -1,79 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -deep-remove-regex: -- "/grpc-google-.*/src" -- "/proto-google-.*/src" -- "/google-.*/src" - -#Args=--initialize-at-build-time=org.junit.runners.model.FrameworkField -deep-preserve-regex: -- "/google-cloud-pubsub/src/test/resources/META-INF/native-image/.*" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java" -- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java" -- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java" -- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java" -- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java" -- "/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/CustomArgumentMatchers.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDataMatcher.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java" -- "/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerImpl.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckResponse.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiverWithAckResponse.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java" -- "/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/LoggingUtil.java" - -deep-copy-regex: -- source: "/google/pubsub/(v.*)/.*-java/proto-google-.*/src" - dest: "/owl-bot-staging/$1/proto-google-cloud-pubsub-$1/src" -- source: "/google/pubsub/(v.*)/.*-java/grpc-google-.*/src" - dest: "/owl-bot-staging/$1/grpc-google-cloud-pubsub-$1/src" -- source: "/google/pubsub/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/$1/google-cloud-pubsub/src" diff --git a/java-pubsub/.github/CODEOWNERS b/java-pubsub/.github/CODEOWNERS deleted file mode 100644 index 3a6e0dbe408d..000000000000 --- a/java-pubsub/.github/CODEOWNERS +++ /dev/null @@ -1,29 +0,0 @@ -# Code owners file. -# This file controls who is tagged for review for any given pull request. - -# For syntax help see: -# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax - -# The @googleapis/pubsub-team is the default owner for changes in this repo -* @googleapis/cloud-sdk-java-team @googleapis/pubsub-team - -# for handwritten libraries, keep codeowner_team in .repo-metadata.json as owner -**/*.java @googleapis/pubsub-team - -# For generated Java code -proto-*/ @googleapis/cloud-sdk-java-team @googleapis/pubsub-team -grpc-*/ @googleapis/cloud-sdk-java-team @googleapis/pubsub-team -# Generated code pattern in google-cloud-pubsub -**/*Client.java @googleapis/cloud-sdk-java-team @googleapis/pubsub-team -**/*Settings.java @googleapis/cloud-sdk-java-team @googleapis/pubsub-team -**/*ClientHttpJsonTest.java @googleapis/cloud-sdk-java-team @googleapis/pubsub-team -**/*ClientTest.java @googleapis/cloud-sdk-java-team @googleapis/pubsub-team -google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/** @googleapis/cloud-sdk-java-team @googleapis/pubsub-team -google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/package-info.java @googleapis/cloud-sdk-java-team @googleapis/pubsub-team -google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/Mock* @googleapis/cloud-sdk-java-team @googleapis/pubsub-team - -# The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers - -# Generated snippets should not be owned by samples reviewers -samples/snippets/generated/ @googleapis/cloud-sdk-java-team diff --git a/java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md b/java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 50c4b14987d7..000000000000 --- a/java-pubsub/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -Please run down the following list and make sure you've tried the usual "quick fixes": - - - Search the issues already opened: https://github.com/googleapis/java-pubsub/issues - - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform - -If you are still having issues, please include as much information as possible: - -#### Environment details - -1. Specify the API at the beginning of the title. For example, "BigQuery: ..."). - General, Core, and Other are also allowed as types -2. OS type and version: -3. Java version: -4. version(s): - -#### Steps to reproduce - - 1. ? - 2. ? - -#### Code example - -```java -// example -``` - -#### Stack trace -``` -Any relevant stacktrace here. -``` - -#### External references such as API reference guides - -- ? - -#### Any additional information below - - -Following these steps guarantees the quickest resolution possible. - -Thanks! diff --git a/java-pubsub/.github/ISSUE_TEMPLATE/feature_request.md b/java-pubsub/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 754e30c68a00..000000000000 --- a/java-pubsub/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this library - ---- - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -**Is your feature request related to a problem? Please describe.** -What the problem is. Example: I'm always frustrated when [...] - -**Describe the solution you'd like** -What you want to happen. - -**Describe alternatives you've considered** -Any alternative solutions or features you've considered. - -**Additional context** -Any other context or screenshots about the feature request. diff --git a/java-pubsub/.github/ISSUE_TEMPLATE/support_request.md b/java-pubsub/.github/ISSUE_TEMPLATE/support_request.md deleted file mode 100644 index 995869032125..000000000000 --- a/java-pubsub/.github/ISSUE_TEMPLATE/support_request.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: Support request -about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. - ---- - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md b/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 66a507f7e74a..000000000000 --- a/java-pubsub/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,10 +0,0 @@ -Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: -- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-pubsub/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea -- [ ] Ensure the tests and linter pass -- [ ] Code coverage does not decrease (if any source code was changed) -- [ ] Appropriate docs were updated (if necessary) - -Fixes # ☕️ - -If you write sample code, please follow the [samples format]( -https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). diff --git a/java-pubsub/.github/auto-label.yaml b/java-pubsub/.github/auto-label.yaml deleted file mode 100644 index 4caef688b745..000000000000 --- a/java-pubsub/.github/auto-label.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -requestsize: - enabled: true diff --git a/java-pubsub/.github/blunderbuss.yml b/java-pubsub/.github/blunderbuss.yml deleted file mode 100644 index 97998e463e04..000000000000 --- a/java-pubsub/.github/blunderbuss.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Configuration for the Blunderbuss GitHub app. For more info see -# https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss -assign_issues: - - michaelpri10 -assign_prs: - - michaelpri10 -assign_prs_by: -- labels: - - samples - to: - - googleapis/java-samples-reviewers \ No newline at end of file diff --git a/java-pubsub/.github/dependabot.yml b/java-pubsub/.github/dependabot.yml deleted file mode 100644 index 203f9eaccf13..000000000000 --- a/java-pubsub/.github/dependabot.yml +++ /dev/null @@ -1,19 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "maven" - directory: "/" - schedule: - interval: "daily" - # Disable version updates for Maven dependencies - # we use renovate-bot as well as shared-dependencies BOM to update maven dependencies. - ignore: - - dependency-name: "*" - - package-ecosystem: "pip" - directory: "/" - schedule: - interval: "daily" - # Disable version updates for pip dependencies - # If a security vulnerability comes in, we will be notified about - # it via template in the synthtool repository. - ignore: - - dependency-name: "*" diff --git a/java-pubsub/.github/generated-files-bot.yml b/java-pubsub/.github/generated-files-bot.yml deleted file mode 100644 index e58cdcbad65a..000000000000 --- a/java-pubsub/.github/generated-files-bot.yml +++ /dev/null @@ -1,13 +0,0 @@ -externalManifests: -- type: json - file: 'synth.metadata' - jsonpath: '$.generatedFiles[*]' -- type: json - file: '.github/readme/synth.metadata/synth.metadata' - jsonpath: '$.generatedFiles[*]' -ignoreAuthors: -- 'cloud-java-bot' -- 'renovate-bot' -- 'yoshi-automation' -- 'release-please[bot]' -- 'gcf-owl-bot[bot]' diff --git a/java-pubsub/.github/release-please.yml b/java-pubsub/.github/release-please.yml deleted file mode 100644 index dd5ccf112eac..000000000000 --- a/java-pubsub/.github/release-please.yml +++ /dev/null @@ -1,33 +0,0 @@ -bumpMinorPreMajor: true -handleGHRelease: true -releaseType: java-yoshi -branches: - - branch: 1.111.0-sp - releaseType: java-lts - - branch: java7 - - branch: 1.114.x - releaseType: java-backport - - branch: 1.116.x - releaseType: java-backport - - branch: 1.117.x - releaseType: java-backport - - branch: 1.120.x - releaseType: java-backport - - branch: 1.121.x - releaseType: java-backport - - branch: 1.123.x - releaseType: java-backport - - branch: 1.125.x - releaseType: java-backport - - branch: 1.129.x - releaseType: java-backport - - branch: 1.137.x - releaseType: java-backport - - branch: 1.140.x - releaseType: java-backport - - branch: protobuf-4.x-rc - manifest: true - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-backport - branch: 1.147.x diff --git a/java-pubsub/.github/release-trigger.yml b/java-pubsub/.github/release-trigger.yml deleted file mode 100644 index d8f21db7400b..000000000000 --- a/java-pubsub/.github/release-trigger.yml +++ /dev/null @@ -1,2 +0,0 @@ -enabled: true -multiScmName: java-pubsub diff --git a/java-pubsub/.github/snippet-bot.yml b/java-pubsub/.github/snippet-bot.yml deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/java-pubsub/.github/sync-repo-settings.yaml b/java-pubsub/.github/sync-repo-settings.yaml deleted file mode 100644 index 1f09ebd600db..000000000000 --- a/java-pubsub/.github/sync-repo-settings.yaml +++ /dev/null @@ -1,243 +0,0 @@ -rebaseMergeAllowed: false -squashMergeAllowed: true -mergeCommitAllowed: false -branchProtectionRules: - - pattern: main - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (17) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - 'Kokoro - Test: Java GraalVM Native Image A' - - 'Kokoro - Test: Java GraalVM Native Image B' - - 'Kokoro - Test: Java GraalVM Native Image C' - - javadoc - - library_generation - - unmanaged_dependency_check - - pattern: 1.111.0-sp - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - Kokoro - Against Pub/Sub Lite samples - - cla/google - - pattern: java7 - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - Kokoro - Against Pub/Sub Lite samples - - cla/google - - pattern: 1.114.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - Kokoro - Against Pub/Sub Lite samples - - cla/google - - pattern: 1.116.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - Kokoro - Against Pub/Sub Lite samples - - cla/google - - pattern: 1.117.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - Kokoro - Against Pub/Sub Lite samples - - cla/google - - pattern: 1.120.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - Kokoro - Against Pub/Sub Lite samples - - cla/google - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - pattern: 1.121.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - Kokoro - Against Pub/Sub Lite samples - - cla/google - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - pattern: 1.123.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (17) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - Kokoro - Against Pub/Sub Lite samples - - cla/google - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - pattern: 1.125.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (17) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - javadoc - - pattern: 1.129.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (17) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - javadoc - - pattern: 1.137.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (17) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - javadoc - - library_generation - - unmanaged_dependency_check - - pattern: 1.140.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (17) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - 'Kokoro - Test: Java GraalVM Native Image A' - - 'Kokoro - Test: Java GraalVM Native Image B' - - 'Kokoro - Test: Java GraalVM Native Image C' - - javadoc - - library_generation - - unmanaged_dependency_check - - pattern: 1.147.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (17) - - lint - - clirr - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - 'Kokoro - Test: Java GraalVM Native Image A' - - 'Kokoro - Test: Java GraalVM Native Image B' - - 'Kokoro - Test: Java GraalVM Native Image C' - - javadoc - - library_generation - - unmanaged_dependency_check -permissionRules: - - team: yoshi-admins - permission: admin - - team: yoshi-java-admins - permission: admin - - team: cloud-sdk-java-team - permission: push diff --git a/java-pubsub/.github/trusted-contribution.yml b/java-pubsub/.github/trusted-contribution.yml deleted file mode 100644 index 88d3ac9bf1a7..000000000000 --- a/java-pubsub/.github/trusted-contribution.yml +++ /dev/null @@ -1,9 +0,0 @@ -trustedContributors: -- renovate-bot -- gcf-owl-bot[bot] - -annotations: -- type: comment - text: "/gcbrun" -- type: label - text: "kokoro:force-run" diff --git a/java-pubsub/.github/workflows/approve-readme.yaml b/java-pubsub/.github/workflows/approve-readme.yaml deleted file mode 100644 index 59f00b8eb6e6..000000000000 --- a/java-pubsub/.github/workflows/approve-readme.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-merge-readme -jobs: - approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' - steps: - - uses: actions/github-script@v7 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - script: | - // only approve PRs from yoshi-automation - if (context.payload.pull_request.user.login !== "yoshi-automation") { - return; - } - - // only approve PRs like "chore: release " - if (!context.payload.pull_request.title === "chore: regenerate README") { - return; - } - - // only approve PRs with README.md and synth.metadata changes - const files = new Set( - ( - await github.paginate( - github.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }) - ) - ).map(file => file.filename) - ); - if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) { - return; - } - - // approve README regeneration PR - await github.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped PR!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach automerge label - await github.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['automerge'] - }); diff --git a/java-pubsub/.github/workflows/auto-release.yaml b/java-pubsub/.github/workflows/auto-release.yaml deleted file mode 100644 index 0cda6b04f722..000000000000 --- a/java-pubsub/.github/workflows/auto-release.yaml +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-release -jobs: - approve: - runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-please') - steps: - - uses: actions/github-script@v8 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - debug: true - script: | - // only approve PRs from release-please[bot] - if (context.payload.pull_request.user.login !== "release-please[bot]") { - return; - } - - // only approve PRs like "chore(main): release " - if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { - return; - } - - // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.rest.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }); - const changed_files = await github.paginate(filesPromise) - - if ( changed_files.length < 1 ) { - console.log( "Not proceeding since PR is empty!" ) - return; - } - - if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) { - console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" ) - return; - } - - // trigger auto-release when - // 1) it is a SNAPSHOT release (auto-generated post regular release) - // 2) there are dependency updates only - // 3) there are no open dependency update PRs in this repo (to avoid multiple releases) - if ( - context.payload.pull_request.body.includes("Fix") || - context.payload.pull_request.body.includes("Build") || - context.payload.pull_request.body.includes("Documentation") || - context.payload.pull_request.body.includes("BREAKING CHANGES") || - context.payload.pull_request.body.includes("Features") - ) { - console.log( "Not auto-releasing since it is not a dependency-update-only release." ); - return; - } - - const promise = github.rest.pulls.list.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open' - }); - const open_pulls = await github.paginate(promise) - - if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) { - for ( const pull of open_pulls ) { - if ( pull.title.startsWith("deps: update dependency") ) { - console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." ); - return; - } - } - } - - // approve release PR - await github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped release!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach kokoro:force-run and automerge labels - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['kokoro:force-run', 'automerge'] - }); diff --git a/java-pubsub/.github/workflows/ci.yaml b/java-pubsub/.github/workflows/ci.yaml deleted file mode 100644 index b9b8be0c36db..000000000000 --- a/java-pubsub/.github/workflows/ci.yaml +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - push: - branches: - - main - pull_request: -name: ci -jobs: - units: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - java: [11, 17, 21, 25] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: test - units-java8: - # Building using Java 17 and run the tests with Java 8 runtime - name: "units (8)" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - java-version: 8 - distribution: temurin - - name: "Set jvm system property environment variable for surefire plugin (unit tests)" - # Maven surefire plugin (unit tests) allows us to specify JVM to run the tests. - # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm - run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java" >> $GITHUB_ENV - shell: bash - - uses: actions/setup-java@v4 - with: - java-version: 17 - distribution: temurin - - run: .kokoro/build.sh - env: - JOB_TYPE: test - windows: - runs-on: windows-latest - steps: - - name: Support longpaths - run: git config --system core.longpaths true - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: 8 - - run: java -version - - run: .kokoro/build.bat - env: - JOB_TYPE: test - dependencies: - runs-on: ubuntu-latest - strategy: - matrix: - java: [17] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/dependencies.sh - javadoc: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: 17 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: javadoc - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: 17 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: lint - clirr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: 8 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: clirr diff --git a/java-pubsub/.github/workflows/hermetic_library_generation.yaml b/java-pubsub/.github/workflows/hermetic_library_generation.yaml deleted file mode 100644 index ef71d4f6a10c..000000000000 --- a/java-pubsub/.github/workflows/hermetic_library_generation.yaml +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2024 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# GitHub action job to test core java library features on -# downstream client libraries before they are released. -name: Hermetic library generation upon generation config change through pull requests -on: - pull_request: - -env: - REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} - GITHUB_REPOSITORY: ${{ github.repository }} -jobs: - library_generation: - runs-on: ubuntu-latest - steps: - - name: Determine whether the pull request comes from a fork - run: | - if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then - echo "This PR comes from a fork. Skip library generation." - echo "SHOULD_RUN=false" >> $GITHUB_ENV - else - echo "SHOULD_RUN=true" >> $GITHUB_ENV - fi - - uses: actions/checkout@v6 - if: env.SHOULD_RUN == 'true' - with: - fetch-depth: 0 - token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.67.0 - if: env.SHOULD_RUN == 'true' - with: - base_ref: ${{ github.base_ref }} - head_ref: ${{ github.head_ref }} - token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} diff --git a/java-pubsub/.github/workflows/renovate_config_check.yaml b/java-pubsub/.github/workflows/renovate_config_check.yaml deleted file mode 100644 index 47b9e87c98bb..000000000000 --- a/java-pubsub/.github/workflows/renovate_config_check.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Renovate Bot Config Validation - -on: - pull_request: - paths: - - 'renovate.json' - -jobs: - renovate_bot_config_validation: - runs-on: ubuntu-24.04 - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - - - name: Install Renovate and Config Validator - run: | - npm install -g npm@latest - npm install --global renovate - renovate-config-validator diff --git a/java-pubsub/.github/workflows/samples.yaml b/java-pubsub/.github/workflows/samples.yaml deleted file mode 100644 index 3c00d025e90c..000000000000 --- a/java-pubsub/.github/workflows/samples.yaml +++ /dev/null @@ -1,14 +0,0 @@ -on: - pull_request: -name: samples -jobs: - checkstyle: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Run checkstyle - run: mvn -P lint --quiet --batch-mode checkstyle:check - working-directory: samples diff --git a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml b/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml deleted file mode 100644 index 87add3353c5f..000000000000 --- a/java-pubsub/.github/workflows/unmanaged_dependency_check.yaml +++ /dev/null @@ -1,22 +0,0 @@ -on: - pull_request: -name: Unmanaged dependency check -jobs: - unmanaged_dependency_check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - uses: actions/setup-java@v5 - with: - distribution: temurin - java-version: 11 - - name: Install modules - shell: bash - run: | - # No argument to build.sh installs the modules in local Maven - # repository - .kokoro/build.sh - - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.57.0 - with: - bom-path: google-cloud-pubsub-bom/pom.xml diff --git a/java-pubsub/.github/workflows/update_generation_config.yaml b/java-pubsub/.github/workflows/update_generation_config.yaml deleted file mode 100644 index 8de9d67eae71..000000000000 --- a/java-pubsub/.github/workflows/update_generation_config.yaml +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 2024 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# GitHub action job to test core java library features on -# downstream client libraries before they are released. -name: Update generation configuration -on: - schedule: - - cron: '0 2 * * *' - workflow_dispatch: - -jobs: - update-generation-config: - runs-on: ubuntu-24.04 - env: - # the branch into which the pull request is merged - base_branch: main - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }} - - name: Install Dependencies - shell: bash - run: sudo apt-get update && sudo apt-get install -y libxml2-utils - - name: Update params in generation config to latest - shell: bash - run: | - set -x - [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" - [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" - bash .github/scripts/update_generation_config.sh \ - --base_branch "${base_branch}" \ - --repo ${{ github.repository }} - env: - GH_TOKEN: ${{ secrets.CLOUD_JAVA_BOT_GITHUB_TOKEN }} - From 1d9fe649e12b1014dfaf6c53242f32d23cdd0d07 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:56 +0000 Subject: [PATCH 2354/2363] chore(java-pubsub): add library to generation_config.yaml --- generation_config.yaml | 21 +++++++++++++++++++++ java-pubsub/generation_config.yaml | 23 ----------------------- 2 files changed, 21 insertions(+), 23 deletions(-) delete mode 100644 java-pubsub/generation_config.yaml diff --git a/generation_config.yaml b/generation_config.yaml index 0909dc1bc824..1310c174009e 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -2019,6 +2019,27 @@ libraries: GAPICs: - proto_path: google/cloud/security/publicca/v1beta1 - proto_path: google/cloud/security/publicca/v1 +- api_shortname: pubsub + name_pretty: Cloud Pub/Sub + api_reference: https://cloud.google.com/pubsub/ + product_documentation: https://cloud.google.com/pubsub/docs/ + client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history + api_description: is designed to provide reliable, many-to-many, asynchronous messaging + between applications. Publisher applications can send messages to a topic and + other applications can subscribe to that topic to receive the messages. By decoupling + senders and receivers, Google Cloud Pub/Sub allows developers to communicate between + independently written applications. + issue_tracker: https://issuetracker.google.com/savedsearches/559741 + release_level: stable + language: java + distribution_name: com.google.cloud:google-cloud-pubsub + codeowner_team: '@googleapis/pubsub-team' + api_id: pubsub.googleapis.com + library_type: GAPIC_COMBO + requires_billing: true + recommended_package: com.google.cloud.pubsub.v1 + GAPICs: + - proto_path: google/pubsub/v1 - api_shortname: rapidmigrationassessment name_pretty: Rapid Migration Assessment API product_documentation: https://cloud.google.com/migration-center/docs diff --git a/java-pubsub/generation_config.yaml b/java-pubsub/generation_config.yaml deleted file mode 100644 index 86168938d691..000000000000 --- a/java-pubsub/generation_config.yaml +++ /dev/null @@ -1,23 +0,0 @@ -gapic_generator_version: 2.67.0 -googleapis_commitish: 9637e50bc0ff6a5e8944980aaf6a2b7f34a90910 -libraries_bom_version: 26.76.0 -libraries: - - api_shortname: pubsub - name_pretty: Cloud Pub/Sub - api_reference: https://cloud.google.com/pubsub/ - product_documentation: https://cloud.google.com/pubsub/docs/ - client_documentation: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history - api_description: is designed to provide reliable, many-to-many, asynchronous messaging between applications. Publisher applications can send messages to a topic and other applications can subscribe to that topic to receive the messages. By decoupling senders and receivers, Google Cloud Pub/Sub allows developers to communicate between independently written applications. - issue_tracker: https://issuetracker.google.com/savedsearches/559741 - release_level: stable - language: java - repo: googleapis/java-pubsub - repo_short: java-pubsub - distribution_name: com.google.cloud:google-cloud-pubsub - codeowner_team: '@googleapis/pubsub-team' - api_id: pubsub.googleapis.com - library_type: GAPIC_COMBO - requires_billing: true - recommended_package: com.google.cloud.pubsub.v1 - GAPICs: - - proto_path: google/pubsub/v1 From 1b626ace37f97c9dff7d3ce3f5b2f7cbcc52ddff Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:57 +0000 Subject: [PATCH 2355/2363] chore(java-pubsub): add to exclusions in generation/check_non_release_please_versions.sh --- generation/check_non_release_please_versions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/generation/check_non_release_please_versions.sh b/generation/check_non_release_please_versions.sh index 14393d905915..36b73e389ef3 100755 --- a/generation/check_non_release_please_versions.sh +++ b/generation/check_non_release_please_versions.sh @@ -12,6 +12,7 @@ for pomFile in $(find . -mindepth 2 -name pom.xml | sort ); do [[ "${pomFile}" =~ .*java-datastore.* ]] || \ [[ "${pomFile}" =~ .*java-logging-logback.* ]] || \ [[ "${pomFile}" =~ .*java-bigquery.* ]] || \ + [[ "${pomFile}" =~ .*java-pubsub.* ]] || \ [[ "${pomFile}" =~ .*.github*. ]]; then continue fi From d7d63cb2c9b6a4a0d5250f829427a531a9eae865 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:58 +0000 Subject: [PATCH 2356/2363] chore(java-pubsub): consolidate versions.txt into root --- java-pubsub/versions.txt | 6 ------ versions.txt | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 java-pubsub/versions.txt diff --git a/java-pubsub/versions.txt b/java-pubsub/versions.txt deleted file mode 100644 index 56826c969dc8..000000000000 --- a/java-pubsub/versions.txt +++ /dev/null @@ -1,6 +0,0 @@ -# Format: -# module:released-version:current-version - -google-cloud-pubsub:1.149.0:1.149.1-SNAPSHOT -grpc-google-cloud-pubsub-v1:1.131.0:1.131.1-SNAPSHOT -proto-google-cloud-pubsub-v1:1.131.0:1.131.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 3edfa9233968..482809b6050e 100644 --- a/versions.txt +++ b/versions.txt @@ -976,3 +976,6 @@ proto-google-cloud-vectorsearch-v1:0.8.0:0.9.0-SNAPSHOT grpc-google-cloud-vectorsearch-v1:0.8.0:0.9.0-SNAPSHOT google-cloud-bigquery:2.61.0:2.62.0-SNAPSHOT google-cloud-bigquery-jdbc:0.5.0:0.6.0-SNAPSHOT +google-cloud-pubsub:1.149.0:1.149.1-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.131.0:1.131.1-SNAPSHOT +proto-google-cloud-pubsub-v1:1.131.0:1.131.1-SNAPSHOT From 368dc4873e7a9569218b1c0dce444140e711e5c9 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:58 +0000 Subject: [PATCH 2357/2363] chore(java-pubsub): migrate .OwlBot-hermetic.yaml --- java-pubsub/.OwlBot-hermetic.yaml | 77 +++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 java-pubsub/.OwlBot-hermetic.yaml diff --git a/java-pubsub/.OwlBot-hermetic.yaml b/java-pubsub/.OwlBot-hermetic.yaml new file mode 100644 index 000000000000..75c13c86d7aa --- /dev/null +++ b/java-pubsub/.OwlBot-hermetic.yaml @@ -0,0 +1,77 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +deep-remove-regex: +- /java-pubsub/grpc-google-.*/src +- /java-pubsub/proto-google-.*/src +- /java-pubsub/google-.*/src +deep-preserve-regex: +- /java-pubsub/google-cloud-pubsub/src/test/resources/META-INF/native-image/.* +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/.*/v.*/it/IT.*Test.java +- /java-pubsub/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java +- /java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/DeletedTopic.java +- /java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSnapshotName.java +- /java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectSubscriptionName.java +- /java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectTopicName.java +- /java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicNames.java +- /java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/UntypedTopicName.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/it/ITPubSubTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/CustomArgumentMatchers.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeClock.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakePublisherServiceImpl.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeSubscriberServiceImpl.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDataMatcher.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/MessageDispatcherTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenCensusUtilTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/OpenTelemetryTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/PublisherImplTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SequentialExecutorServiceTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StatusUtilTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettingsTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriberTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/TopicAdminSmokeTest.java +- /java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/WaiterTest.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumer.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerImpl.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponse.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckReplyConsumerWithResponseImpl.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckRequestData.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/AckResponse.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageDispatcher.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiver.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/MessageReceiverWithAckResponse.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/ModackRequestData.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenCensusUtil.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/OpenTelemetryPubsubTracer.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PublisherInterface.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/PubsubMessageWrapper.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SequentialExecutorService.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StatusUtil.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Subscriber.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberInterface.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberShutdownSettings.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriberStats.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Waiter.java +- /java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/LoggingUtil.java +deep-copy-regex: +- source: /google/pubsub/(v.*)/.*-java/proto-google-.*/src + dest: /owl-bot-staging/java-pubsub/$1/proto-google-cloud-pubsub-$1/src +- source: /google/pubsub/(v.*)/.*-java/grpc-google-.*/src + dest: /owl-bot-staging/java-pubsub/$1/grpc-google-cloud-pubsub-$1/src +- source: /google/pubsub/(v.*)/.*-java/gapic-google-.*/src + dest: /owl-bot-staging/java-pubsub/$1/google-cloud-pubsub/src From 798e9edaa9ce133e719341f40fbcf6148c4c0c17 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:08:59 +0000 Subject: [PATCH 2358/2363] chore(java-pubsub): migrate owlbot.py --- java-pubsub/owlbot.py | 1259 +++-------------------------------------- 1 file changed, 73 insertions(+), 1186 deletions(-) diff --git a/java-pubsub/owlbot.py b/java-pubsub/owlbot.py index cf50f5e65afe..bcd78edbc1e8 100644 --- a/java-pubsub/owlbot.py +++ b/java-pubsub/owlbot.py @@ -1,4 +1,4 @@ -# Copyright 2021 Google LLC +# Copyright 2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,1199 +15,86 @@ import synthtool as s from synthtool.languages import java - service = 'pubsub' version = 'v1' - -GET_IAM_POLICY_TOPIC = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. - * - *

      Sample code: - * - *

      
      -   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
      -   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);
      -   * }
      -   * 
      - * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. - */ - @Deprecated - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } -""" -GET_IAM_POLICY_SUBSCRIPTION = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. - * - *

      Sample code: - * - *

      
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
      -   *   Policy response = subscriptionAdminClient.getIamPolicy(formattedResource);
      -   * }
      -   * 
      - * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead. - */ - @Deprecated - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } -""" - -GET_IAM_POLICY_PREVIOUS = r'(\s+public final Policy getIamPolicy\(GetIamPolicyRequest request\) {\n\s+return .*\n\s+})' - -SET_IAM_POLICY_TOPIC = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - *

      Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED - * - *

      Sample code: - * - *

      
      -   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
      -   *   Policy policy = Policy.newBuilder().build();
      -   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);
      -   * }
      -   * 
      - * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param 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. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. - */ - @Deprecated - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } -""" -SET_IAM_POLICY_SUBSCRIPTION = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Sets the access control policy on the specified resource. Replaces any existing policy. - * - *

      Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED - * - *

      Sample code: - * - *

      
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
      -   *   Policy policy = Policy.newBuilder().build();
      -   *   Policy response = subscriptionAdminClient.setIamPolicy(formattedResource, policy);
      -   * }
      -   * 
      - * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param 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. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead. - */ - @Deprecated - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } -""" -SET_IAM_POLICY_PREVIOUS = r'(\s+public final Policy setIamPolicy\(SetIamPolicyRequest request\) {\n\s+return .*\n\s+})' - -TEST_IAM_PERMISSIONS_TOPIC = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. - * - *

      Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

      Sample code: - * - *

      
      -   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
      -   *   List<String> permissions = new ArrayList<>();
      -   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);
      -   * }
      -   * 
      - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. - */ - @Deprecated - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } -""" -TEST_IAM_PERMISSIONS_SUBSCRIPTION = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this will return an empty set of permissions, not a NOT_FOUND error. - * - *

      Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

      Sample code: - * - *

      
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");
      -   *   List<String> permissions = new ArrayList<>();
      -   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(formattedResource, permissions);
      -   * }
      -   * 
      - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions 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](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead. - */ - @Deprecated - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } -""" -TEST_IAM_PERMISSIONS_PREVIOUS = r'(\s+public final TestIamPermissionsResponse testIamPermissions\(TestIamPermissionsRequest request\) {\n\s+return .*\n\s+})' - -CREATE_TOPIC = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates the given topic with the given name. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. - * - *

      Sample code: - * - *

      
      -   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      -   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
      -   *   Topic response = topicAdminClient.createTopic(name);
      -   * }
      -   * 
      - * - * @param name 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"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #createTopic(TopicName)} instead. - */ - @Deprecated - public final Topic createTopic(ProjectTopicName name) { - Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build(); - return createTopic(request); - } -""" - -CREATE_TOPIC_PREVIOUS = r'(\s+public final Topic createTopic\(String name\) {\n\s+.*\n\s+return.*\n\s+})' - -DELETE_TOPIC = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * 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_`. - * - *

      Sample code: - * - *

      
      -   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
      -   *   topicAdminClient.deleteTopic(topic);
      -   * }
      -   * 
      - * - * @param topic Required. Name of the topic to delete. Format is - * `projects/{project}/topics/{topic}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #deleteTopic(TopicName)} instead. - */ - @Deprecated - public final void deleteTopic(ProjectTopicName topic) { - DeleteTopicRequest request = - DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); - deleteTopic(request); - } -""" - -GET_TOPIC_PREVIOUS = r'(\s+public final Topic getTopic\(String topic\) {\n\s+.*\n\s+return.*\n\s+})' - -GET_TOPIC = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Gets the configuration of a topic. - * - *

      Sample code: - * - *

      
      -   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
      -   *   Topic response = topicAdminClient.getTopic(topic);
      -   * }
      -   * 
      - * - * @param topic Required. The name of the topic to get. Format is - * `projects/{project}/topics/{topic}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #getTopic(TopicName)} instead. - */ - @Deprecated - public final Topic getTopic(ProjectTopicName topic) { - GetTopicRequest request = - GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build(); - return getTopic(request); - } -""" - -DELETE_TOPIC_PREVIOUS = r'(\s+public final void deleteTopic\(String topic\) {\n\s+.*\n\s+deleteTopic.*\n\s+})' - -LIST_TOPIC_SUBSCRIPTIONS = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Lists the names of the subscriptions on this topic. - * - *

      Sample code: - * - *

      
      -   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {
      -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
      -   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic).iterateAllAsProjectSubscriptionName()) {
      -   *     // doThingsWith(element);
      -   *   }
      -   * }
      -   * 
      - * - * @param topic Required. The name of the topic that subscriptions are attached to. Format is - * `projects/{project}/topics/{topic}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #listTopicSubscriptions(TopicName)} instead. - */ - @Deprecated - public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) { - ListTopicSubscriptionsRequest request = - ListTopicSubscriptionsRequest.newBuilder() - .setTopic(topic == null ? null : topic.toString()) - .build(); - return listTopicSubscriptions(request); - } -""" - -LIST_TOPIC_SUBSCRIPTIONS_PREVIOUS = r'(\s+public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions\(String topic\) {\n\s+.*\n\s+.*\n\s+return.*\n\s+})' - -CREATE_SUBSCRIPTION_PREVIOUS = r'(\s+public final Subscription createSubscription\(Subscription request\) {\n\s+return.*\n\s+})' - -CREATE_SUBSCRIPTION = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Creates a subscription to a given topic. See the <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. 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](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is - * populated in the returned Subscription object. Note that for REST API requests, you must - * specify a name in the request. - * - *

      Sample code: - * - *

      
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");
      -   *   PushConfig pushConfig = PushConfig.newBuilder().build();
      -   *   int ackDeadlineSeconds = 0;
      -   *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
      -   * }
      -   * 
      - * - * @param name 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"`. - * @param topic 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. - * @param 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. - * @param ackDeadlineSeconds 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 - * <i>outstanding</i>. 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. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #createSubscription(SubscriptionName, TopicName, PushConfig, int)} instead. - */ - @Deprecated - public final Subscription createSubscription( - ProjectSubscriptionName name, - ProjectTopicName topic, - PushConfig pushConfig, - int ackDeadlineSeconds) { - Subscription request = - Subscription.newBuilder() - .setName(name == null ? null : name.toString()) - .setTopic(topic == null ? null : topic.toString()) - .setPushConfig(pushConfig) - .setAckDeadlineSeconds(ackDeadlineSeconds) - .build(); - return createSubscription(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in - * the returned Subscription object. Note that for REST API requests, you must specify a name in - * the request. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();
      -   *   PushConfig pushConfig = PushConfig.newBuilder().build();
      -   *   int ackDeadlineSeconds = 2135351438;
      -   *   Subscription response =
      -   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
      -   * }
      -   * }
      - * - * @param name 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"`. - * @param topic 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. - * @param 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. - * @param ackDeadlineSeconds 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 - * <i>outstanding</i>. 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. - * @deprecated Use {@link #createSubscription(SubscriptionName, String, PushConfig, int)} instead. - */ - @Deprecated - public final Subscription createSubscription( - ProjectSubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) { - Subscription request = - Subscription.newBuilder() - .setName(name == null ? null : name.toString()) - .setTopic(topic) - .setPushConfig(pushConfig) - .setAckDeadlineSeconds(ackDeadlineSeconds) - .build(); - return createSubscription(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a subscription to a given topic. See the [resource name rules] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). 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] - * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in - * the returned Subscription object. Note that for REST API requests, you must specify a name in - * the request. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");
      -   *   PushConfig pushConfig = PushConfig.newBuilder().build();
      -   *   int ackDeadlineSeconds = 2135351438;
      -   *   Subscription response =
      -   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);
      -   * }
      -   * }
      - * - * @param name 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"`. - * @param topic 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. - * @param 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. - * @param ackDeadlineSeconds 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 - * <i>outstanding</i>. 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. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #createSubscription(SubscriptionName, TopicName, PushConfig, int)} instead. - */ - @Deprecated - public final Subscription createSubscription( - ProjectSubscriptionName name, - TopicName topic, - PushConfig pushConfig, - int ackDeadlineSeconds) { - Subscription request = - Subscription.newBuilder() - .setName(name == null ? null : name.toString()) - .setTopic(topic == null ? null : topic.toString()) - .setPushConfig(pushConfig) - .setAckDeadlineSeconds(ackDeadlineSeconds) - .build(); - return createSubscription(request); - } -""" - -GET_SUBSCRIPTION_PREVIOUS = r'(\s+public final Subscription getSubscription\(GetSubscriptionRequest request\) {\n\s+return.*\n\s+})' - -GET_SUBSCRIPTION = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the configuration details of a subscription. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   Subscription response = subscriptionAdminClient.getSubscription(subscription);
      -   * }
      -   * }
      - * - * @param subscription Required. The name of the subscription to get. Format is - * `projects/{project}/subscriptions/{sub}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #getSubscription(SubscriptionName)} instead. - */ - @Deprecated - public final Subscription getSubscription(ProjectSubscriptionName subscription) { - GetSubscriptionRequest request = - GetSubscriptionRequest.newBuilder() - .setSubscription(subscription == null ? null : subscription.toString()) - .build(); - return getSubscription(request); - } -""" - -DELETE_SUBSCRIPTION_PREVIOUS = r'(\s+public final void deleteSubscription\(DeleteSubscriptionRequest request\) {\n\s+deleteSubscription.*\n\s+})' - -DELETE_SUBSCRIPTION = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   subscriptionAdminClient.deleteSubscription(subscription);
      -   * }
      -   * }
      - * - * @param subscription Required. The subscription to delete. Format is - * `projects/{project}/subscriptions/{sub}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #deleteSubscription(SubscriptionName)} instead. - */ - @Deprecated - public final void deleteSubscription(ProjectSubscriptionName subscription) { - DeleteSubscriptionRequest request = - DeleteSubscriptionRequest.newBuilder() - .setSubscription(subscription == null ? null : subscription.toString()) - .build(); - deleteSubscription(request); - } -""" - -MODIFY_ACK_DEADLINE_PREVIOUS = r'(\s+public final void modifyAckDeadline\(ModifyAckDeadlineRequest request\) {\n\s+modifyAckDeadline.*\n\s+})' - -MODIFY_ACK_DEADLINE = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   List ackIds = new ArrayList<>();
      -   *   int ackDeadlineSeconds = 2135351438;
      -   *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);
      -   * }
      -   * }
      - * - * @param subscription Required. The name of the subscription. Format is - * `projects/{project}/subscriptions/{sub}`. - * @param ackIds Required. List of acknowledgment IDs. - * @param ackDeadlineSeconds 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). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #modifyAckDeadline(SubscriptionName, List, int)} instead. - */ - @Deprecated - final void modifyAckDeadline( - ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) { - ModifyAckDeadlineRequest request = - ModifyAckDeadlineRequest.newBuilder() - .setSubscription(subscription == null ? null : subscription.toString()) - .addAllAckIds(ackIds) - .setAckDeadlineSeconds(ackDeadlineSeconds) - .build(); - modifyAckDeadline(request); - } -""" - -ACKNOWLEDGE_PREVIOUS = r'(\s+public final void acknowledge\(AcknowledgeRequest request\) {\n\s+acknowledge.*\n\s+})' - -ACKNOWLEDGE = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * 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. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   List ackIds = new ArrayList<>();
      -   *   subscriptionAdminClient.acknowledge(subscription, ackIds);
      -   * }
      -   * }
      - * - * @param subscription Required. The subscription whose message is being acknowledged. Format is - * `projects/{project}/subscriptions/{sub}`. - * @param ackIds 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. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #acknowledge(SubscriptionName, List)} instead. - */ - @Deprecated - public final void acknowledge(ProjectSubscriptionName subscription, List ackIds) { - AcknowledgeRequest request = - AcknowledgeRequest.newBuilder() - .setSubscription(subscription == null ? null : subscription.toString()) - .addAllAckIds(ackIds) - .build(); - acknowledge(request); - } -""" - -PULL_PREVIOUS = r'(\s+public final PullResponse pull\(PullRequest request\) {\n\s+return.*\n\s+})' - -PULL = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many - * concurrent pull requests pending for the given subscription. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   int maxMessages = 496131527;
      -   *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);
      -   * }
      -   * }
      - * - * @param subscription Required. The subscription from which messages should be pulled. Format is - * `projects/{project}/subscriptions/{sub}`. - * @param maxMessages 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. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #pull(SubscriptionName, int)} instead. - */ - @Deprecated - public final PullResponse pull(ProjectSubscriptionName subscription, int maxMessages) { - PullRequest request = - PullRequest.newBuilder() - .setSubscription(subscription == null ? null : subscription.toString()) - .setMaxMessages(maxMessages) - .build(); - return pull(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many - * concurrent pull requests pending for the given subscription. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   boolean returnImmediately = true;
      -   *   int maxMessages = 496131527;
      -   *   PullResponse response =
      -   *       subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages);
      -   * }
      -   * }
      - * - * @param subscription Required. The subscription from which messages should be pulled. Format is - * `projects/{project}/subscriptions/{sub}`. - * @param returnImmediately 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. - * @param maxMessages 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. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #pull(SubscriptionName, boolean, int)} instead. - */ - @Deprecated - final PullResponse pull( - ProjectSubscriptionName subscription, boolean returnImmediately, int maxMessages) { - PullRequest request = - PullRequest.newBuilder() - .setSubscription(subscription == null ? null : subscription.toString()) - .setReturnImmediately(returnImmediately) - .setMaxMessages(maxMessages) - .build(); - return pull(request); - } -""" - -MODIFY_PUSH_CONFIG_PREVIOUS = r'(\s+public final void modifyPushConfig\(ModifyPushConfigRequest request\) {\n\s+modifyPushConfig.*\n\s+})' - -MODIFY_PUSH_CONFIG = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Modifies the `PushConfig` for a specified subscription. - * - *

      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`. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   PushConfig pushConfig = PushConfig.newBuilder().build();
      -   *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);
      -   * }
      -   * }
      - * - * @param subscription Required. The name of the subscription. Format is - * `projects/{project}/subscriptions/{sub}`. - * @param 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. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use {@link #modifyPushConfig(SubscriptionName, PushConfig)} instead. - */ - @Deprecated - public final void modifyPushConfig(ProjectSubscriptionName subscription, PushConfig pushConfig) { - ModifyPushConfigRequest request = - ModifyPushConfigRequest.newBuilder() - .setSubscription(subscription == null ? null : subscription.toString()) - .setPushConfig(pushConfig) - .build(); - modifyPushConfig(request); - } -""" - -CREATE_SNAPSHOT_PREVIOUS = r'(\s+public final Snapshot createSnapshot\(CreateSnapshotRequest request\) {\n\s+return.*\n\s+})' - -CREATE_SNAPSHOT = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a snapshot from the requested subscription. Snapshots are used in - * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The - * generated name is populated in the returned Snapshot object. Note that for REST API requests, - * you must specify a name in the request. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
      -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
      -   * }
      -   * }
      - * - * @param name 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. Format is `projects/{project}/snapshots/{snap}`. - * @param subscription 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}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use Use {@link #createSnapshot(SnapshotName, SubscriptionName)} instead. - */ - @Deprecated - public final Snapshot createSnapshot( - ProjectSnapshotName name, ProjectSubscriptionName subscription) { - CreateSnapshotRequest request = - CreateSnapshotRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setSubscription(subscription == null ? null : subscription.toString()) - .build(); - return createSnapshot(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a snapshot from the requested subscription. Snapshots are used in - * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The - * generated name is populated in the returned Snapshot object. Note that for REST API requests, - * you must specify a name in the request. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();
      -   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
      -   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
      -   * }
      -   * }
      - * - * @param name 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. Format is `projects/{project}/snapshots/{snap}`. - * @param subscription 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}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use Use {@link #createSnapshot(String, SubscriptionName)} instead. - */ - @Deprecated - public final Snapshot createSnapshot(String name, ProjectSubscriptionName subscription) { - CreateSnapshotRequest request = - CreateSnapshotRequest.newBuilder() - .setName(name) - .setSubscription(subscription == null ? null : subscription.toString()) - .build(); - return createSnapshot(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a snapshot from the requested subscription. Snapshots are used in - * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) 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] (https://cloud.google.com/pubsub/docs/admin#resource_names). The - * generated name is populated in the returned Snapshot object. Note that for REST API requests, - * you must specify a name in the request. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
      -   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();
      -   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);
      -   * }
      -   * }
      - * - * @param name 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 <a - * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name - * rules</a>. Format is `projects/{project}/snapshots/{snap}`. - * @param subscription 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}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use Use {@link #createSnapshot(SnapshotName, String)} instead. - */ - @Deprecated - public final Snapshot createSnapshot(ProjectSnapshotName name, String subscription) { - CreateSnapshotRequest request = - CreateSnapshotRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setSubscription(subscription) - .build(); - return createSnapshot(request); - } -""" - -DELETE_SNAPSHOT_PREVIOUS = r'(\s+public final void deleteSnapshot\(DeleteSnapshotRequest request\) {\n\s+deleteSnapshot.*\n\s+})' - -DELETE_SNAPSHOT = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Removes an existing snapshot. Snapshots are used in [Seek] - * (https://cloud.google.com/pubsub/docs/replay-overview) 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. When the snapshot is deleted, all - * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new - * one may be created with the same name, but the new one has no association with the old snapshot - * or its subscription, unless the same subscription is specified. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
      -   *   subscriptionAdminClient.deleteSnapshot(snapshot);
      -   * }
      -   * }
      - * - * @param snapshot Required. The name of the snapshot to delete. Format is - * `projects/{project}/snapshots/{snap}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use Use {@link #deleteSnapshot(SnapshotName)} instead. - */ - @Deprecated - public final void deleteSnapshot(ProjectSnapshotName snapshot) { - DeleteSnapshotRequest request = - DeleteSnapshotRequest.newBuilder() - .setSnapshot(snapshot == null ? null : snapshot.toString()) - .build(); - deleteSnapshot(request); - } -""" - -GET_SNAPSHOT_PREVIOUS = r'(\s+public final Snapshot getSnapshot\(GetSnapshotRequest request\) {\n\s+return.*\n\s+})' - -GET_SNAPSHOT = """ - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the configuration details of a snapshot. Snapshots are used in <a - * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> 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. - * - *

      Sample code: - * - *

      {@code
      -   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
      -   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");
      -   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);
      -   * }
      -   * }
      - * - * @param snapshot Required. The name of the snapshot to get. Format is - * `projects/{project}/snapshots/{snap}`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated Use Use {@link #getSnapshot(SnapshotName)} instead. - */ - @Deprecated - public final Snapshot getSnapshot(ProjectSnapshotName snapshot) { - GetSnapshotRequest request = - GetSnapshotRequest.newBuilder() - .setSnapshot(snapshot == null ? null : snapshot.toString()) - .build(); - return getSnapshot(request); - } -""" - +GET_IAM_POLICY_TOPIC = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Gets the access control policy for a resource. Returns an empty policy if the resource exists\n * and does not have a policy set.\n *\n *

      Sample code:\n *\n *

      \n   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {\n   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");\n   *   Policy response = topicAdminClient.getIamPolicy(formattedResource);\n   * }\n   * 
      \n *\n * @param resource REQUIRED: The resource for which the policy is being requested. See the\n * operation documentation for the appropriate value for this field.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead.\n */\n @Deprecated\n public final Policy getIamPolicy(String resource) {\n GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); \n return getIamPolicy(request);\n }\n' +GET_IAM_POLICY_SUBSCRIPTION = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Gets the access control policy for a resource. Returns an empty policy if the resource exists\n * and does not have a policy set.\n *\n *

      Sample code:\n *\n *

      \n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");\n   *   Policy response = subscriptionAdminClient.getIamPolicy(formattedResource);\n   * }\n   * 
      \n *\n * @param resource REQUIRED: The resource for which the policy is being requested. See the\n * operation documentation for the appropriate value for this field.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #getIamPolicy(GetIamPolicyRequest)} instead.\n */\n @Deprecated\n public final Policy getIamPolicy(String resource) {\n GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); \n return getIamPolicy(request);\n }\n' +GET_IAM_POLICY_PREVIOUS = '(\\s+public final Policy getIamPolicy\\(GetIamPolicyRequest request\\) {\\n\\s+return .*\\n\\s+})' +SET_IAM_POLICY_TOPIC = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Sets the access control policy on the specified resource. Replaces any existing policy.\n *\n *

      Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED\n *\n *

      Sample code:\n *\n *

      \n   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {\n   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");\n   *   Policy policy = Policy.newBuilder().build();\n   *   Policy response = topicAdminClient.setIamPolicy(formattedResource, policy);\n   * }\n   * 
      \n *\n * @param resource REQUIRED: The resource for which the policy is being specified. See the\n * operation documentation for the appropriate value for this field.\n * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the\n * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud\n * Platform services (such as Projects) might reject them.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead.\n */\n @Deprecated\n public final Policy setIamPolicy(String resource, Policy policy) { \n SetIamPolicyRequest request = \n SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); \n return setIamPolicy(request); \n }\n' +SET_IAM_POLICY_SUBSCRIPTION = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Sets the access control policy on the specified resource. Replaces any existing policy.\n *\n *

      Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED\n *\n *

      Sample code:\n *\n *

      \n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");\n   *   Policy policy = Policy.newBuilder().build();\n   *   Policy response = subscriptionAdminClient.setIamPolicy(formattedResource, policy);\n   * }\n   * 
      \n *\n * @param resource REQUIRED: The resource for which the policy is being specified. See the\n * operation documentation for the appropriate value for this field.\n * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the\n * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud\n * Platform services (such as Projects) might reject them.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #setIamPolicy(SetIamPolicyRequest)} instead.\n */\n @Deprecated\n public final Policy setIamPolicy(String resource, Policy policy) { \n SetIamPolicyRequest request = \n SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); \n return setIamPolicy(request); \n }\n' +SET_IAM_POLICY_PREVIOUS = '(\\s+public final Policy setIamPolicy\\(SetIamPolicyRequest request\\) {\\n\\s+return .*\\n\\s+})' +TEST_IAM_PERMISSIONS_TOPIC = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Returns permissions that a caller has on the specified resource. If the resource does not\n * exist, this will return an empty set of permissions, not a NOT_FOUND error.\n *\n *

      Note: This operation is designed to be used for building permission-aware UIs and\n * command-line tools, not for authorization checking. This operation may "fail open" without\n * warning.\n *\n *

      Sample code:\n *\n *

      \n   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {\n   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");\n   *   List<String> permissions = new ArrayList<>();\n   *   TestIamPermissionsResponse response = topicAdminClient.testIamPermissions(formattedResource, permissions);\n   * }\n   * 
      \n *\n * @param resource REQUIRED: The resource for which the policy detail is being requested. See the\n * operation documentation for the appropriate value for this field.\n * @param permissions The set of permissions to check for the `resource`. Permissions with\n * wildcards (such as \'*\' or \'storage.*\') are not allowed. For more information see\n * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead.\n */\n @Deprecated\n public final TestIamPermissionsResponse testIamPermissions( \n String resource, List permissions) { \n TestIamPermissionsRequest request = \n TestIamPermissionsRequest.newBuilder() \n .setResource(resource) \n .addAllPermissions(permissions) \n .build(); \n return testIamPermissions(request); \n }\n' +TEST_IAM_PERMISSIONS_SUBSCRIPTION = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Returns permissions that a caller has on the specified resource. If the resource does not\n * exist, this will return an empty set of permissions, not a NOT_FOUND error.\n *\n *

      Note: This operation is designed to be used for building permission-aware UIs and\n * command-line tools, not for authorization checking. This operation may "fail open" without\n * warning.\n *\n *

      Sample code:\n *\n *

      \n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   String formattedResource = ProjectTopicName.format("[PROJECT]", "[TOPIC]");\n   *   List<String> permissions = new ArrayList<>();\n   *   TestIamPermissionsResponse response = subscriptionAdminClient.testIamPermissions(formattedResource, permissions);\n   * }\n   * 
      \n *\n * @param resource REQUIRED: The resource for which the policy detail is being requested. See the\n * operation documentation for the appropriate value for this field.\n * @param permissions The set of permissions to check for the `resource`. Permissions with\n * wildcards (such as \'*\' or \'storage.*\') are not allowed. For more information see\n * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #testIamPermissions(TestIamPermissionsRequest)} instead.\n */\n @Deprecated\n public final TestIamPermissionsResponse testIamPermissions( \n String resource, List permissions) { \n TestIamPermissionsRequest request = \n TestIamPermissionsRequest.newBuilder() \n .setResource(resource) \n .addAllPermissions(permissions) \n .build(); \n return testIamPermissions(request); \n }\n' +TEST_IAM_PERMISSIONS_PREVIOUS = '(\\s+public final TestIamPermissionsResponse testIamPermissions\\(TestIamPermissionsRequest request\\) {\\n\\s+return .*\\n\\s+})' +CREATE_TOPIC = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Creates the given topic with the given name. See the <a\n * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name\n * rules</a>.\n *\n *

      Sample code:\n *\n *

      \n   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {\n   *   ProjectTopicName name = ProjectTopicName.of("[PROJECT]", "[TOPIC]");\n   *   Topic response = topicAdminClient.createTopic(name);\n   * }\n   * 
      \n *\n * @param name Required. The name of the topic. It must have the format\n * `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter, and contain only\n * letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`),\n * tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in\n * length, and it must not start with `"goog"`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #createTopic(TopicName)} instead.\n */\n @Deprecated\n public final Topic createTopic(ProjectTopicName name) {\n Topic request = Topic.newBuilder().setName(name == null ? null : name.toString()).build();\n return createTopic(request);\n }\n' +CREATE_TOPIC_PREVIOUS = '(\\s+public final Topic createTopic\\(String name\\) {\\n\\s+.*\\n\\s+return.*\\n\\s+})' +DELETE_TOPIC = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does not exist. After a\n * topic is deleted, a new topic may be created with the same name; this is an entirely new topic\n * with none of the old configuration or subscriptions. Existing subscriptions to this topic are\n * not deleted, but their `topic` field is set to `_deleted-topic_`.\n *\n *

      Sample code:\n *\n *

      \n   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {\n   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");\n   *   topicAdminClient.deleteTopic(topic);\n   * }\n   * 
      \n *\n * @param topic Required. Name of the topic to delete. Format is\n * `projects/{project}/topics/{topic}`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #deleteTopic(TopicName)} instead.\n */\n @Deprecated\n public final void deleteTopic(ProjectTopicName topic) {\n DeleteTopicRequest request =\n DeleteTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build();\n deleteTopic(request);\n }\n' +GET_TOPIC_PREVIOUS = '(\\s+public final Topic getTopic\\(String topic\\) {\\n\\s+.*\\n\\s+return.*\\n\\s+})' +GET_TOPIC = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Gets the configuration of a topic.\n *\n *

      Sample code:\n *\n *

      \n   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {\n   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");\n   *   Topic response = topicAdminClient.getTopic(topic);\n   * }\n   * 
      \n *\n * @param topic Required. The name of the topic to get. Format is\n * `projects/{project}/topics/{topic}`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #getTopic(TopicName)} instead.\n */\n @Deprecated\n public final Topic getTopic(ProjectTopicName topic) {\n GetTopicRequest request =\n GetTopicRequest.newBuilder().setTopic(topic == null ? null : topic.toString()).build();\n return getTopic(request);\n }\n' +DELETE_TOPIC_PREVIOUS = '(\\s+public final void deleteTopic\\(String topic\\) {\\n\\s+.*\\n\\s+deleteTopic.*\\n\\s+})' +LIST_TOPIC_SUBSCRIPTIONS = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Lists the names of the subscriptions on this topic.\n *\n *

      Sample code:\n *\n *

      \n   * try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) {\n   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");\n   *   for (ProjectSubscriptionName element : topicAdminClient.listTopicSubscriptions(topic).iterateAllAsProjectSubscriptionName()) {\n   *     // doThingsWith(element);\n   *   }\n   * }\n   * 
      \n *\n * @param topic Required. The name of the topic that subscriptions are attached to. Format is\n * `projects/{project}/topics/{topic}`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #listTopicSubscriptions(TopicName)} instead.\n */\n @Deprecated\n public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions(ProjectTopicName topic) {\n ListTopicSubscriptionsRequest request =\n ListTopicSubscriptionsRequest.newBuilder()\n .setTopic(topic == null ? null : topic.toString())\n .build();\n return listTopicSubscriptions(request);\n }\n' +LIST_TOPIC_SUBSCRIPTIONS_PREVIOUS = '(\\s+public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions\\(String topic\\) {\\n\\s+.*\\n\\s+.*\\n\\s+return.*\\n\\s+})' +CREATE_SUBSCRIPTION_PREVIOUS = '(\\s+public final Subscription createSubscription\\(Subscription request\\) {\\n\\s+return.*\\n\\s+})' +CREATE_SUBSCRIPTION = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD\n /**\n * Creates a subscription to a given topic. See the <a\n * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name\n * rules</a>. If the subscription already exists, returns `ALREADY_EXISTS`. If the\n * corresponding topic doesn\'t exist, returns `NOT_FOUND`.\n *\n *

      If the name is not provided in the request, the server will assign a random name for this\n * subscription on the same project as the topic, conforming to the [resource name\n * format](https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is\n * populated in the returned Subscription object. Note that for REST API requests, you must\n * specify a name in the request.\n *\n *

      Sample code:\n *\n *

      \n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   ProjectTopicName topic = ProjectTopicName.of("[PROJECT]", "[TOPIC]");\n   *   PushConfig pushConfig = PushConfig.newBuilder().build();\n   *   int ackDeadlineSeconds = 0;\n   *   Subscription response = subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);\n   * }\n   * 
      \n *\n * @param name Required. The name of the subscription. It must have the format\n * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a\n * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores\n * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3\n * and 255 characters in length, and it must not start with `"goog"`.\n * @param topic Required. The name of the topic from which this subscription is receiving\n * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be\n * `_deleted-topic_` if the topic has been deleted.\n * @param pushConfig If push delivery is used with this subscription, this field is used to\n * configure it. An empty `pushConfig` signifies that the subscriber will pull and ack\n * messages using API methods.\n * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits\n * for the subscriber to acknowledge receipt before resending the message. In the interval\n * after the message is delivered and before it is acknowledged, it is considered to be\n * <i>outstanding</i>. During that time period, the message will not be\n * redelivered (on a best-effort basis).\n *

      For pull subscriptions, this value is used as the initial value for the ack deadline. To\n * override this value for a given message, call `ModifyAckDeadline` with the corresponding\n * `ack_id` if using non-streaming pull or send the `ack_id` in a\n * `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline\n * you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds\n * (10 minutes). If this parameter is 0, a default value of 10 seconds is used.\n *

      For push delivery, this value is also used to set the request timeout for the call to\n * the push endpoint.\n *

      If the subscriber never acknowledges the message, the Pub/Sub system will eventually\n * redeliver the message.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #createSubscription(SubscriptionName, TopicName, PushConfig, int)} instead.\n */\n @Deprecated\n public final Subscription createSubscription(\n ProjectSubscriptionName name,\n ProjectTopicName topic,\n PushConfig pushConfig,\n int ackDeadlineSeconds) {\n Subscription request =\n Subscription.newBuilder()\n .setName(name == null ? null : name.toString())\n .setTopic(topic == null ? null : topic.toString())\n .setPushConfig(pushConfig)\n .setAckDeadlineSeconds(ackDeadlineSeconds)\n .build();\n return createSubscription(request);\n }\n \n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Creates a subscription to a given topic. See the [resource name rules]\n * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already\n * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn\'t exist, returns\n * `NOT_FOUND`.\n *\n *

      If the name is not provided in the request, the server will assign a random name for this\n * subscription on the same project as the topic, conforming to the [resource name format]\n * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in\n * the returned Subscription object. Note that for REST API requests, you must specify a name in\n * the request.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   String topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]").toString();\n   *   PushConfig pushConfig = PushConfig.newBuilder().build();\n   *   int ackDeadlineSeconds = 2135351438;\n   *   Subscription response =\n   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);\n   * }\n   * }
      \n *\n * @param name Required. The name of the subscription. It must have the format\n * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a\n * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores\n * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3\n * and 255 characters in length, and it must not start with `"goog"`.\n * @param topic Required. The name of the topic from which this subscription is receiving\n * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be\n * `_deleted-topic_` if the topic has been deleted.\n * @param pushConfig If push delivery is used with this subscription, this field is used to\n * configure it. An empty `pushConfig` signifies that the subscriber will pull and ack\n * messages using API methods.\n * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits\n * for the subscriber to acknowledge receipt before resending the message. In the interval\n * after the message is delivered and before it is acknowledged, it is considered to be\n * <i>outstanding</i>. During that time period, the message will not be\n * redelivered (on a best-effort basis).\n *

      For pull subscriptions, this value is used as the initial value for the ack deadline. To\n * override this value for a given message, call `ModifyAckDeadline` with the corresponding\n * `ack_id` if using non-streaming pull or send the `ack_id` in a\n * `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline\n * you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds\n * (10 minutes). If this parameter is 0, a default value of 10 seconds is used.\n *

      For push delivery, this value is also used to set the request timeout for the call to\n * the push endpoint.\n *

      If the subscriber never acknowledges the message, the Pub/Sub system will eventually\n * redeliver the message.\n * @deprecated Use {@link #createSubscription(SubscriptionName, String, PushConfig, int)} instead.\n */\n @Deprecated\n public final Subscription createSubscription(\n ProjectSubscriptionName name, String topic, PushConfig pushConfig, int ackDeadlineSeconds) {\n Subscription request =\n Subscription.newBuilder()\n .setName(name == null ? null : name.toString())\n .setTopic(topic)\n .setPushConfig(pushConfig)\n .setAckDeadlineSeconds(ackDeadlineSeconds)\n .build();\n return createSubscription(request);\n }\n \n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Creates a subscription to a given topic. See the [resource name rules]\n * (https://cloud.google.com/pubsub/docs/admin#resource_names). If the subscription already\n * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn\'t exist, returns\n * `NOT_FOUND`.\n *\n *

      If the name is not provided in the request, the server will assign a random name for this\n * subscription on the same project as the topic, conforming to the [resource name format]\n * (https://cloud.google.com/pubsub/docs/admin#resource_names). The generated name is populated in\n * the returned Subscription object. Note that for REST API requests, you must specify a name in\n * the request.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSubscriptionName name = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   TopicName topic = TopicName.ofProjectTopicName("[PROJECT]", "[TOPIC]");\n   *   PushConfig pushConfig = PushConfig.newBuilder().build();\n   *   int ackDeadlineSeconds = 2135351438;\n   *   Subscription response =\n   *       subscriptionAdminClient.createSubscription(name, topic, pushConfig, ackDeadlineSeconds);\n   * }\n   * }
      \n *\n * @param name Required. The name of the subscription. It must have the format\n * `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a\n * letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores\n * (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3\n * and 255 characters in length, and it must not start with `"goog"`.\n * @param topic Required. The name of the topic from which this subscription is receiving\n * messages. Format is `projects/{project}/topics/{topic}`. The value of this field will be\n * `_deleted-topic_` if the topic has been deleted.\n * @param pushConfig If push delivery is used with this subscription, this field is used to\n * configure it. An empty `pushConfig` signifies that the subscriber will pull and ack\n * messages using API methods.\n * @param ackDeadlineSeconds The approximate amount of time (on a best-effort basis) Pub/Sub waits\n * for the subscriber to acknowledge receipt before resending the message. In the interval\n * after the message is delivered and before it is acknowledged, it is considered to be\n * <i>outstanding</i>. During that time period, the message will not be\n * redelivered (on a best-effort basis).\n *

      For pull subscriptions, this value is used as the initial value for the ack deadline. To\n * override this value for a given message, call `ModifyAckDeadline` with the corresponding\n * `ack_id` if using non-streaming pull or send the `ack_id` in a\n * `StreamingModifyAckDeadlineRequest` if using streaming pull. The minimum custom deadline\n * you can specify is 10 seconds. The maximum custom deadline you can specify is 600 seconds\n * (10 minutes). If this parameter is 0, a default value of 10 seconds is used.\n *

      For push delivery, this value is also used to set the request timeout for the call to\n * the push endpoint.\n *

      If the subscriber never acknowledges the message, the Pub/Sub system will eventually\n * redeliver the message.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #createSubscription(SubscriptionName, TopicName, PushConfig, int)} instead.\n */\n @Deprecated\n public final Subscription createSubscription(\n ProjectSubscriptionName name,\n TopicName topic,\n PushConfig pushConfig,\n int ackDeadlineSeconds) {\n Subscription request =\n Subscription.newBuilder()\n .setName(name == null ? null : name.toString())\n .setTopic(topic == null ? null : topic.toString())\n .setPushConfig(pushConfig)\n .setAckDeadlineSeconds(ackDeadlineSeconds)\n .build();\n return createSubscription(request);\n }\n' +GET_SUBSCRIPTION_PREVIOUS = '(\\s+public final Subscription getSubscription\\(GetSubscriptionRequest request\\) {\\n\\s+return.*\\n\\s+})' +GET_SUBSCRIPTION = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Gets the configuration details of a subscription.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   Subscription response = subscriptionAdminClient.getSubscription(subscription);\n   * }\n   * }
      \n *\n * @param subscription Required. The name of the subscription to get. Format is\n * `projects/{project}/subscriptions/{sub}`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #getSubscription(SubscriptionName)} instead. \n */\n @Deprecated\n public final Subscription getSubscription(ProjectSubscriptionName subscription) {\n GetSubscriptionRequest request =\n GetSubscriptionRequest.newBuilder()\n .setSubscription(subscription == null ? null : subscription.toString())\n .build();\n return getSubscription(request);\n }\n' +DELETE_SUBSCRIPTION_PREVIOUS = '(\\s+public final void deleteSubscription\\(DeleteSubscriptionRequest request\\) {\\n\\s+deleteSubscription.*\\n\\s+})' +DELETE_SUBSCRIPTION = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Deletes an existing subscription. All messages retained in the subscription are immediately\n * dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is\n * deleted, a new one may be created with the same name, but the new one has no association with\n * the old subscription or its topic unless the same topic is specified.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   subscriptionAdminClient.deleteSubscription(subscription);\n   * }\n   * }
      \n *\n * @param subscription Required. The subscription to delete. Format is\n * `projects/{project}/subscriptions/{sub}`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #deleteSubscription(SubscriptionName)} instead.\n */\n @Deprecated\n public final void deleteSubscription(ProjectSubscriptionName subscription) {\n DeleteSubscriptionRequest request =\n DeleteSubscriptionRequest.newBuilder()\n .setSubscription(subscription == null ? null : subscription.toString())\n .build();\n deleteSubscription(request);\n }\n' +MODIFY_ACK_DEADLINE_PREVIOUS = '(\\s+public final void modifyAckDeadline\\(ModifyAckDeadlineRequest request\\) {\\n\\s+modifyAckDeadline.*\\n\\s+})' +MODIFY_ACK_DEADLINE = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Modifies the ack deadline for a specific message. This method is useful to indicate that more\n * time is needed to process a message by the subscriber, or to make the message available for\n * redelivery if the processing was interrupted. Note that this does not modify the\n * subscription-level `ackDeadlineSeconds` used for subsequent messages.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   List ackIds = new ArrayList<>();\n   *   int ackDeadlineSeconds = 2135351438;\n   *   subscriptionAdminClient.modifyAckDeadline(subscription, ackIds, ackDeadlineSeconds);\n   * }\n   * }
      \n *\n * @param subscription Required. The name of the subscription. Format is\n * `projects/{project}/subscriptions/{sub}`.\n * @param ackIds Required. List of acknowledgment IDs.\n * @param ackDeadlineSeconds Required. The new ack deadline with respect to the time this request\n * was sent to the Pub/Sub system. For example, if the value is 10, the new ack deadline will\n * expire 10 seconds after the `ModifyAckDeadline` call was made. Specifying zero might\n * immediately make the message available for delivery to another subscriber client. This\n * typically results in an increase in the rate of message redeliveries (that is, duplicates).\n * The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify is\n * 600 seconds (10 minutes).\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #modifyAckDeadline(SubscriptionName, List, int)} instead.\n */\n @Deprecated\n final void modifyAckDeadline(\n ProjectSubscriptionName subscription, List ackIds, int ackDeadlineSeconds) {\n ModifyAckDeadlineRequest request =\n ModifyAckDeadlineRequest.newBuilder()\n .setSubscription(subscription == null ? null : subscription.toString())\n .addAllAckIds(ackIds)\n .setAckDeadlineSeconds(ackDeadlineSeconds)\n .build();\n modifyAckDeadline(request);\n }\n' +ACKNOWLEDGE_PREVIOUS = '(\\s+public final void acknowledge\\(AcknowledgeRequest request\\) {\\n\\s+acknowledge.*\\n\\s+})' +ACKNOWLEDGE = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The\n * Pub/Sub system can remove the relevant messages from the subscription.\n *\n *

      Acknowledging a message whose ack deadline has expired may succeed, but such a message may\n * be redelivered later. Acknowledging a message more than once will not result in an error.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   List ackIds = new ArrayList<>();\n   *   subscriptionAdminClient.acknowledge(subscription, ackIds);\n   * }\n   * }
      \n *\n * @param subscription Required. The subscription whose message is being acknowledged. Format is\n * `projects/{project}/subscriptions/{sub}`.\n * @param ackIds Required. The acknowledgment ID for the messages being acknowledged that was\n * returned by the Pub/Sub system in the `Pull` response. Must not be empty.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #acknowledge(SubscriptionName, List)} instead.\n */\n @Deprecated\n public final void acknowledge(ProjectSubscriptionName subscription, List ackIds) {\n AcknowledgeRequest request =\n AcknowledgeRequest.newBuilder()\n .setSubscription(subscription == null ? null : subscription.toString())\n .addAllAckIds(ackIds)\n .build();\n acknowledge(request);\n }\n' +PULL_PREVIOUS = '(\\s+public final PullResponse pull\\(PullRequest request\\) {\\n\\s+return.*\\n\\s+})' +PULL = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many\n * concurrent pull requests pending for the given subscription.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   int maxMessages = 496131527;\n   *   PullResponse response = subscriptionAdminClient.pull(subscription, maxMessages);\n   * }\n   * }
      \n *\n * @param subscription Required. The subscription from which messages should be pulled. Format is\n * `projects/{project}/subscriptions/{sub}`.\n * @param maxMessages Required. The maximum number of messages to return for this request. Must be\n * a positive integer. The Pub/Sub system may return fewer than the number specified.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #pull(SubscriptionName, int)} instead.\n */\n @Deprecated\n public final PullResponse pull(ProjectSubscriptionName subscription, int maxMessages) {\n PullRequest request =\n PullRequest.newBuilder()\n .setSubscription(subscription == null ? null : subscription.toString())\n .setMaxMessages(maxMessages)\n .build();\n return pull(request);\n }\n \n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Pulls messages from the server. The server may return `UNAVAILABLE` if there are too many\n * concurrent pull requests pending for the given subscription.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   boolean returnImmediately = true;\n   *   int maxMessages = 496131527;\n   *   PullResponse response =\n   *       subscriptionAdminClient.pull(subscription, returnImmediately, maxMessages);\n   * }\n   * }
      \n *\n * @param subscription Required. The subscription from which messages should be pulled. Format is\n * `projects/{project}/subscriptions/{sub}`.\n * @param returnImmediately Optional. If this field set to true, the system will respond\n * immediately even if it there are no messages available to return in the `Pull` response.\n * Otherwise, the system may wait (for a bounded amount of time) until at least one message is\n * available, rather than returning no messages. Warning: setting this field to `true` is\n * discouraged because it adversely impacts the performance of `Pull` operations. We recommend\n * that users do not set this field.\n * @param maxMessages Required. The maximum number of messages to return for this request. Must be\n * a positive integer. The Pub/Sub system may return fewer than the number specified.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #pull(SubscriptionName, boolean, int)} instead.\n */\n @Deprecated\n final PullResponse pull(\n ProjectSubscriptionName subscription, boolean returnImmediately, int maxMessages) {\n PullRequest request =\n PullRequest.newBuilder()\n .setSubscription(subscription == null ? null : subscription.toString())\n .setReturnImmediately(returnImmediately)\n .setMaxMessages(maxMessages)\n .build();\n return pull(request);\n }\n' +MODIFY_PUSH_CONFIG_PREVIOUS = '(\\s+public final void modifyPushConfig\\(ModifyPushConfigRequest request\\) {\\n\\s+modifyPushConfig.*\\n\\s+})' +MODIFY_PUSH_CONFIG = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Modifies the `PushConfig` for a specified subscription.\n *\n *

      This may be used to change a push subscription to a pull one (signified by an empty\n * `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push\n * subscription. Messages will accumulate for delivery continuously through the call regardless of\n * changes to the `PushConfig`.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   PushConfig pushConfig = PushConfig.newBuilder().build();\n   *   subscriptionAdminClient.modifyPushConfig(subscription, pushConfig);\n   * }\n   * }
      \n *\n * @param subscription Required. The name of the subscription. Format is\n * `projects/{project}/subscriptions/{sub}`.\n * @param pushConfig Required. The push configuration for future deliveries.\n *

      An empty `pushConfig` indicates that the Pub/Sub system should stop pushing messages\n * from the given subscription and allow messages to be pulled and acknowledged - effectively\n * pausing the subscription if `Pull` or `StreamingPull` is not called.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use {@link #modifyPushConfig(SubscriptionName, PushConfig)} instead.\n */\n @Deprecated\n public final void modifyPushConfig(ProjectSubscriptionName subscription, PushConfig pushConfig) {\n ModifyPushConfigRequest request =\n ModifyPushConfigRequest.newBuilder()\n .setSubscription(subscription == null ? null : subscription.toString())\n .setPushConfig(pushConfig)\n .build();\n modifyPushConfig(request);\n }\n' +CREATE_SNAPSHOT_PREVIOUS = '(\\s+public final Snapshot createSnapshot\\(CreateSnapshotRequest request\\) {\\n\\s+return.*\\n\\s+})' +CREATE_SNAPSHOT = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Creates a snapshot from the requested subscription. Snapshots are used in\n * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to\n * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of\n * messages in an existing subscription to the state captured by a snapshot. If the snapshot\n * already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn\'t exist, returns\n * `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would\n * expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the\n * `Snapshot.expire_time` field. If the name is not provided in the request, the server will\n * assign a random name for this snapshot on the same project as the subscription, conforming to\n * the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The\n * generated name is populated in the returned Snapshot object. Note that for REST API requests,\n * you must specify a name in the request.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");\n   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);\n   * }\n   * }
      \n *\n * @param name Required. User-provided name for this snapshot. If the name is not provided in the\n * request, the server will assign a random name for this snapshot on the same project as the\n * subscription. Note that for REST API requests, you must specify a name. See the <a\n * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name\n * rules</a>. Format is `projects/{project}/snapshots/{snap}`.\n * @param subscription Required. The subscription whose backlog the snapshot retains.\n * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the\n * subscription. More precisely, this is defined as the messages in the subscription\'s backlog\n * that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as\n * well as: (b) Any messages published to the subscription\'s topic following the successful\n * completion of the CreateSnapshot request. Format is\n * `projects/{project}/subscriptions/{sub}`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use Use {@link #createSnapshot(SnapshotName, SubscriptionName)} instead.\n */\n @Deprecated\n public final Snapshot createSnapshot(\n ProjectSnapshotName name, ProjectSubscriptionName subscription) {\n CreateSnapshotRequest request =\n CreateSnapshotRequest.newBuilder()\n .setName(name == null ? null : name.toString())\n .setSubscription(subscription == null ? null : subscription.toString())\n .build();\n return createSnapshot(request);\n }\n \n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Creates a snapshot from the requested subscription. Snapshots are used in\n * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to\n * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of\n * messages in an existing subscription to the state captured by a snapshot. If the snapshot\n * already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn\'t exist, returns\n * `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would\n * expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the\n * `Snapshot.expire_time` field. If the name is not provided in the request, the server will\n * assign a random name for this snapshot on the same project as the subscription, conforming to\n * the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The\n * generated name is populated in the returned Snapshot object. Note that for REST API requests,\n * you must specify a name in the request.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   String name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]").toString();\n   *   ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");\n   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);\n   * }\n   * }
      \n *\n * @param name Required. User-provided name for this snapshot. If the name is not provided in the\n * request, the server will assign a random name for this snapshot on the same project as the\n * subscription. Note that for REST API requests, you must specify a name. See the <a\n * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name\n * rules</a>. Format is `projects/{project}/snapshots/{snap}`.\n * @param subscription Required. The subscription whose backlog the snapshot retains.\n * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the\n * subscription. More precisely, this is defined as the messages in the subscription\'s backlog\n * that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as\n * well as: (b) Any messages published to the subscription\'s topic following the successful\n * completion of the CreateSnapshot request. Format is\n * `projects/{project}/subscriptions/{sub}`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use Use {@link #createSnapshot(String, SubscriptionName)} instead.\n */\n @Deprecated\n public final Snapshot createSnapshot(String name, ProjectSubscriptionName subscription) {\n CreateSnapshotRequest request =\n CreateSnapshotRequest.newBuilder()\n .setName(name)\n .setSubscription(subscription == null ? null : subscription.toString())\n .build();\n return createSnapshot(request);\n }\n \n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Creates a snapshot from the requested subscription. Snapshots are used in\n * [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to\n * manage message acknowledgments in bulk. That is, you can set the acknowledgment state of\n * messages in an existing subscription to the state captured by a snapshot. If the snapshot\n * already exists, returns `ALREADY_EXISTS`. If the requested subscription doesn\'t exist, returns\n * `NOT_FOUND`. If the backlog in the subscription is too old -- and the resulting snapshot would\n * expire in less than 1 hour -- then `FAILED_PRECONDITION` is returned. See also the\n * `Snapshot.expire_time` field. If the name is not provided in the request, the server will\n * assign a random name for this snapshot on the same project as the subscription, conforming to\n * the [resource name format] (https://cloud.google.com/pubsub/docs/admin#resource_names). The\n * generated name is populated in the returned Snapshot object. Note that for REST API requests,\n * you must specify a name in the request.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSnapshotName name = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");\n   *   String subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]").toString();\n   *   Snapshot response = subscriptionAdminClient.createSnapshot(name, subscription);\n   * }\n   * }
      \n *\n * @param name Required. User-provided name for this snapshot. If the name is not provided in the\n * request, the server will assign a random name for this snapshot on the same project as the\n * subscription. Note that for REST API requests, you must specify a name. See the <a\n * href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource name\n * rules</a>. Format is `projects/{project}/snapshots/{snap}`.\n * @param subscription Required. The subscription whose backlog the snapshot retains.\n * Specifically, the created snapshot is guaranteed to retain: (a) The existing backlog on the\n * subscription. More precisely, this is defined as the messages in the subscription\'s backlog\n * that are unacknowledged upon the successful completion of the `CreateSnapshot` request; as\n * well as: (b) Any messages published to the subscription\'s topic following the successful\n * completion of the CreateSnapshot request. Format is\n * `projects/{project}/subscriptions/{sub}`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use Use {@link #createSnapshot(SnapshotName, String)} instead.\n */\n @Deprecated\n public final Snapshot createSnapshot(ProjectSnapshotName name, String subscription) {\n CreateSnapshotRequest request =\n CreateSnapshotRequest.newBuilder()\n .setName(name == null ? null : name.toString())\n .setSubscription(subscription)\n .build();\n return createSnapshot(request);\n }\n' +DELETE_SNAPSHOT_PREVIOUS = '(\\s+public final void deleteSnapshot\\(DeleteSnapshotRequest request\\) {\\n\\s+deleteSnapshot.*\\n\\s+})' +DELETE_SNAPSHOT = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Removes an existing snapshot. Snapshots are used in [Seek]\n * (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage\n * message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in\n * an existing subscription to the state captured by a snapshot. When the snapshot is deleted, all\n * messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new\n * one may be created with the same name, but the new one has no association with the old snapshot\n * or its subscription, unless the same subscription is specified.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");\n   *   subscriptionAdminClient.deleteSnapshot(snapshot);\n   * }\n   * }
      \n *\n * @param snapshot Required. The name of the snapshot to delete. Format is\n * `projects/{project}/snapshots/{snap}`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use Use {@link #deleteSnapshot(SnapshotName)} instead.\n */\n @Deprecated\n public final void deleteSnapshot(ProjectSnapshotName snapshot) {\n DeleteSnapshotRequest request =\n DeleteSnapshotRequest.newBuilder()\n .setSnapshot(snapshot == null ? null : snapshot.toString())\n .build();\n deleteSnapshot(request);\n }\n' +GET_SNAPSHOT_PREVIOUS = '(\\s+public final Snapshot getSnapshot\\(GetSnapshotRequest request\\) {\\n\\s+return.*\\n\\s+})' +GET_SNAPSHOT = '\n // AUTO-GENERATED DOCUMENTATION AND METHOD.\n /**\n * Gets the configuration details of a snapshot. Snapshots are used in <a\n * href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a> operations, which\n * allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment\n * state of messages in an existing subscription to the state captured by a snapshot.\n *\n *

      Sample code:\n *\n *

      {@code\n   * try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {\n   *   ProjectSnapshotName snapshot = ProjectSnapshotName.of("[PROJECT]", "[SNAPSHOT]");\n   *   Snapshot response = subscriptionAdminClient.getSnapshot(snapshot);\n   * }\n   * }
      \n *\n * @param snapshot Required. The name of the snapshot to get. Format is\n * `projects/{project}/snapshots/{snap}`.\n * @throws com.google.api.gax.rpc.ApiException if the remote call fails\n * @deprecated Use Use {@link #getSnapshot(SnapshotName)} instead.\n */\n @Deprecated\n public final Snapshot getSnapshot(ProjectSnapshotName snapshot) {\n GetSnapshotRequest request =\n GetSnapshotRequest.newBuilder()\n .setSnapshot(snapshot == null ? null : snapshot.toString())\n .build();\n return getSnapshot(request);\n } \n' PACKAGE = 'package com.google.cloud.pubsub.v1;' - IMPORT_PROJECT_TOPIC_NAME = 'import com.google.pubsub.v1.ProjectTopicName;' IMPORT_PROJECT_SUBSCRIPTION_NAME = 'import com.google.pubsub.v1.ProjectSubscriptionName;' IMPORT_PROJECT_SNAPSHOT_NAME = 'import com.google.pubsub.v1.ProjectSnapshotName;' for library in s.get_staging_dirs(): # put any special-case replacements here - s.replace( - '**/stub/SubscriberStubSettings.java', - r'setMaxInboundMessageSize\(Integer.MAX_VALUE\)', - 'setMaxInboundMessageSize(20 << 20)' - ) - - s.replace( - '**/TopicAdminClient.java', - GET_IAM_POLICY_PREVIOUS, - "\g<1>\n\n" + GET_IAM_POLICY_TOPIC - ) - - s.replace( - '**/TopicAdminClient.java', - SET_IAM_POLICY_PREVIOUS, - "\g<1>\n\n" + SET_IAM_POLICY_TOPIC - ) - - s.replace( - '**/TopicAdminClient.java', - TEST_IAM_PERMISSIONS_PREVIOUS, - "\g<1>\n\n" + TEST_IAM_PERMISSIONS_TOPIC - ) - - s.replace( - '**/SubscriptionAdminClient.java', - GET_IAM_POLICY_PREVIOUS, - "\g<1>\n\n" + GET_IAM_POLICY_SUBSCRIPTION - ) - - s.replace( - '**/SubscriptionAdminClient.java', - SET_IAM_POLICY_PREVIOUS, - "\g<1>\n\n" + SET_IAM_POLICY_SUBSCRIPTION - ) - - s.replace( - '**/SubscriptionAdminClient.java', - TEST_IAM_PERMISSIONS_PREVIOUS, - "\g<1>\n\n" + TEST_IAM_PERMISSIONS_SUBSCRIPTION - ) - - s.replace( - '**/TopicAdminClient.java', - CREATE_TOPIC_PREVIOUS, - "\g<1>\n\n" + CREATE_TOPIC - ) - - s.replace( - '**/TopicAdminClient.java', - DELETE_TOPIC_PREVIOUS, - "\g<1>\n\n" + DELETE_TOPIC - ) - - s.replace( - '**/TopicAdminClient.java', - LIST_TOPIC_SUBSCRIPTIONS_PREVIOUS, - "\g<1>\n\n" + LIST_TOPIC_SUBSCRIPTIONS - ) - - s.replace( - '**/TopicAdminClient.java', - GET_TOPIC_PREVIOUS, - "\g<1>\n\n" + GET_TOPIC - ) - - s.replace( - '**/SubscriptionAdminClient.java', - CREATE_SUBSCRIPTION_PREVIOUS, - "\g<1>\n\n" + CREATE_SUBSCRIPTION - ) - - s.replace( - '**/SubscriptionAdminClient.java', - DELETE_SUBSCRIPTION_PREVIOUS, - "\g<1>\n\n" + DELETE_SUBSCRIPTION - ) - - s.replace( - '**/SubscriptionAdminClient.java', - GET_SUBSCRIPTION_PREVIOUS, - "\g<1>\n\n" + GET_SUBSCRIPTION - ) - - s.replace( - '**/SubscriptionAdminClient.java', - MODIFY_ACK_DEADLINE_PREVIOUS, - "\g<1>\n\n" + MODIFY_ACK_DEADLINE - ) - - s.replace( - '**/SubscriptionAdminClient.java', - ACKNOWLEDGE_PREVIOUS, - "\g<1>\n\n" + ACKNOWLEDGE - ) - - s.replace( - '**/SubscriptionAdminClient.java', - PULL_PREVIOUS, - "\g<1>\n\n" + PULL - ) - - s.replace( - '**/SubscriptionAdminClient.java', - MODIFY_PUSH_CONFIG_PREVIOUS, - "\g<1>\n\n" + MODIFY_PUSH_CONFIG - ) - - s.replace( - '**/SubscriptionAdminClient.java', - CREATE_SNAPSHOT_PREVIOUS, - "\g<1>\n\n" + CREATE_SNAPSHOT - ) - - s.replace( - '**/SubscriptionAdminClient.java', - GET_SNAPSHOT_PREVIOUS, - "\g<1>\n\n" + GET_SNAPSHOT - ) - - s.replace( - '**/SubscriptionAdminClient.java', - DELETE_SNAPSHOT_PREVIOUS, - "\g<1>\n\n" + DELETE_SNAPSHOT - ) - - s.replace( - '**/*AdminClient.java', - PACKAGE, - PACKAGE + '\n\n' + IMPORT_PROJECT_TOPIC_NAME + '\n' + IMPORT_PROJECT_SUBSCRIPTION_NAME + '\n' + IMPORT_PROJECT_SNAPSHOT_NAME + '\n' - ) - + s.replace('**/stub/SubscriberStubSettings.java', 'setMaxInboundMessageSize\\(Integer.MAX_VALUE\\)', 'setMaxInboundMessageSize(20 << 20)') + s.replace('**/TopicAdminClient.java', GET_IAM_POLICY_PREVIOUS, '\\g<1>\n\n' + GET_IAM_POLICY_TOPIC) + s.replace('**/TopicAdminClient.java', SET_IAM_POLICY_PREVIOUS, '\\g<1>\n\n' + SET_IAM_POLICY_TOPIC) + s.replace('**/TopicAdminClient.java', TEST_IAM_PERMISSIONS_PREVIOUS, '\\g<1>\n\n' + TEST_IAM_PERMISSIONS_TOPIC) + s.replace('**/SubscriptionAdminClient.java', GET_IAM_POLICY_PREVIOUS, '\\g<1>\n\n' + GET_IAM_POLICY_SUBSCRIPTION) + s.replace('**/SubscriptionAdminClient.java', SET_IAM_POLICY_PREVIOUS, '\\g<1>\n\n' + SET_IAM_POLICY_SUBSCRIPTION) + s.replace('**/SubscriptionAdminClient.java', TEST_IAM_PERMISSIONS_PREVIOUS, '\\g<1>\n\n' + TEST_IAM_PERMISSIONS_SUBSCRIPTION) + s.replace('**/TopicAdminClient.java', CREATE_TOPIC_PREVIOUS, '\\g<1>\n\n' + CREATE_TOPIC) + s.replace('**/TopicAdminClient.java', DELETE_TOPIC_PREVIOUS, '\\g<1>\n\n' + DELETE_TOPIC) + s.replace('**/TopicAdminClient.java', LIST_TOPIC_SUBSCRIPTIONS_PREVIOUS, '\\g<1>\n\n' + LIST_TOPIC_SUBSCRIPTIONS) + s.replace('**/TopicAdminClient.java', GET_TOPIC_PREVIOUS, '\\g<1>\n\n' + GET_TOPIC) + s.replace('**/SubscriptionAdminClient.java', CREATE_SUBSCRIPTION_PREVIOUS, '\\g<1>\n\n' + CREATE_SUBSCRIPTION) + s.replace('**/SubscriptionAdminClient.java', DELETE_SUBSCRIPTION_PREVIOUS, '\\g<1>\n\n' + DELETE_SUBSCRIPTION) + s.replace('**/SubscriptionAdminClient.java', GET_SUBSCRIPTION_PREVIOUS, '\\g<1>\n\n' + GET_SUBSCRIPTION) + s.replace('**/SubscriptionAdminClient.java', MODIFY_ACK_DEADLINE_PREVIOUS, '\\g<1>\n\n' + MODIFY_ACK_DEADLINE) + s.replace('**/SubscriptionAdminClient.java', ACKNOWLEDGE_PREVIOUS, '\\g<1>\n\n' + ACKNOWLEDGE) + s.replace('**/SubscriptionAdminClient.java', PULL_PREVIOUS, '\\g<1>\n\n' + PULL) + s.replace('**/SubscriptionAdminClient.java', MODIFY_PUSH_CONFIG_PREVIOUS, '\\g<1>\n\n' + MODIFY_PUSH_CONFIG) + s.replace('**/SubscriptionAdminClient.java', CREATE_SNAPSHOT_PREVIOUS, '\\g<1>\n\n' + CREATE_SNAPSHOT) + s.replace('**/SubscriptionAdminClient.java', GET_SNAPSHOT_PREVIOUS, '\\g<1>\n\n' + GET_SNAPSHOT) + s.replace('**/SubscriptionAdminClient.java', DELETE_SNAPSHOT_PREVIOUS, '\\g<1>\n\n' + DELETE_SNAPSHOT) + s.replace('**/*AdminClient.java', PACKAGE, PACKAGE + '\n\n' + IMPORT_PROJECT_TOPIC_NAME + '\n' + IMPORT_PROJECT_SUBSCRIPTION_NAME + '\n' + IMPORT_PROJECT_SNAPSHOT_NAME + '\n') s.move(library) - s.remove_staging_dirs() -java.common_templates( - excludes=[ - ".github/workflows/samples.yaml", - ".kokoro/build.sh", - ".github/sync-repo-settings.yaml", - ".github/blunderbuss.yml", - '.kokoro/requirements.in', - '.kokoro/requirements.txt', - '.kokoro/presubmit/graalvm-native.cfg', - '.kokoro/presubmit/graalvm-native-17.cfg' - ] -) +java.common_templates(monorepo=True, excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore" +]) From 674d1109884ce59262105985f91a9deae30f30b0 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:09:05 +0000 Subject: [PATCH 2359/2363] chore(java-pubsub): modernize root pom.xml --- java-pubsub/pom.xml | 103 ++++---------------------------------------- 1 file changed, 8 insertions(+), 95 deletions(-) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 706b5ca7f397..553cd75f9f05 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -6,15 +6,16 @@ pom 1.149.1-SNAPSHOT Google Cloud Pub/Sub Parent - https://github.com/googleapis/java-pubsub + https://github.com/googleapis/google-cloud-java Java idiomatic client for Google Cloud Platform services. com.google.cloud - sdk-platform-java-config - 3.57.0 + google-cloud-jar-parent + 1.82.0-SNAPSHOT + ../google-cloud-jar-parent/pom.xml @@ -32,13 +33,13 @@ Google LLC - scm:git:git@github.com:googleapis/java-pubsub.git - scm:git:git@github.com:googleapis/java-pubsub.git - https://github.com/googleapis/java-pubsub + scm:git:git@github.com:googleapis/google-cloud-java.git + scm:git:git@github.com:googleapis/google-cloud-java.git + https://github.com/googleapis/google-cloud-java HEAD - https://github.com/googleapis/java-pubsub/issues + https://github.com/googleapis/google-cloud-java/issues GitHub Issues @@ -58,13 +59,6 @@ - - com.google.cloud - google-cloud-shared-dependencies - ${google-cloud-shared-dependencies.version} - pom - import - com.google.api.grpc @@ -82,19 +76,6 @@ 1.149.1-SNAPSHOT - - - org.mockito - mockito-core - 4.11.0 - test - - - junit - junit - 4.13.2 - test - org.easymock easymock @@ -146,72 +127,4 @@ google-cloud-pubsub-bom - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 3.9.0 - - - - index - dependency-info - team - ci-management - issue-management - licenses - scm - dependency-management - distribution-management - summary - modules - - - - - true - ${site.installationModule} - jar - - - - org.apache.maven.plugins - maven-javadoc-plugin - - - html - - aggregate - javadoc - - - - - none - protected - true - ${project.build.directory}/javadoc - - - Test helpers packages - com.google.cloud.testing - - - SPI packages - com.google.cloud.spi* - - - - - https://grpc.io/grpc-java/javadoc/ - https://developers.google.com/protocol-buffers/docs/reference/java/ - https://googleapis.dev/java/google-auth-library/latest/ - https://googleapis.dev/java/gax/latest/ - https://googleapis.github.io/api-common-java/ - - - - - From ff7319dadadb2a8ff65f6712fd1f08fc0e282105 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:09:10 +0000 Subject: [PATCH 2360/2363] chore(java-pubsub): modernize BOM pom.xml --- java-pubsub/google-cloud-pubsub-bom/pom.xml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 02df40a4033e..b73e7e57bc37 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -7,12 +7,13 @@ pom com.google.cloud - sdk-platform-java-config - 3.57.0 + google-cloud-pom-parent + 1.82.0-SNAPSHOT + ../../google-cloud-pom-parent/pom.xml Google Cloud pubsub BOM - https://github.com/googleapis/java-pubsub + https://github.com/googleapis/google-cloud-java BOM for Google Cloud Pub/Sub @@ -34,9 +35,9 @@ - scm:git:https://github.com/googleapis/java-pubsub.git - scm:git:git@github.com:googleapis/java-pubsub.git - https://github.com/googleapis/java-pubsub + scm:git:https://github.com/googleapis/google-cloud-java.git + scm:git:git@github.com:googleapis/google-cloud-java.git + https://github.com/googleapis/google-cloud-java From d1433aaeedaf3729c1301310400d5a31e96caaf1 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:09:29 +0000 Subject: [PATCH 2361/2363] chore(java-pubsub): modernize submodule pom.xml --- java-pubsub/google-cloud-pubsub/pom.xml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index c7914ddef31e..7f2d39455d40 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -6,7 +6,7 @@ 1.149.1-SNAPSHOT jar Google Cloud Pub/Sub - https://github.com/googleapis/java-pubsub + https://github.com/googleapis/google-cloud-java Java idiomatic client for Google Cloud Pub/Sub com.google.cloud @@ -109,7 +109,6 @@ opentelemetry-context
      - junit junit @@ -125,8 +124,6 @@ easymock test - org.mockito mockito-core @@ -167,7 +164,6 @@ assertj-core test - com.google.api gax From 931be450d7f8046b49c8d9ce86289769fa975544 Mon Sep 17 00:00:00 2001 From: chingor13 Date: Mon, 16 Mar 2026 20:11:37 +0000 Subject: [PATCH 2362/2363] manual changes --- .../scripts/update_generation_config.sh | 187 ------------------ 1 file changed, 187 deletions(-) delete mode 100644 java-pubsub/.github/scripts/update_generation_config.sh diff --git a/java-pubsub/.github/scripts/update_generation_config.sh b/java-pubsub/.github/scripts/update_generation_config.sh deleted file mode 100644 index 74d0e6cc4105..000000000000 --- a/java-pubsub/.github/scripts/update_generation_config.sh +++ /dev/null @@ -1,187 +0,0 @@ -#!/bin/bash -set -ex -# This script should be run at the root of the repository. -# This script is used to update googleapis_commitish, gapic_generator_version, -# and libraries_bom_version in generation configuration at the time of running -# and create a pull request. - -# The following commands need to be installed before running the script: -# 1. git -# 2. gh -# 3. jq - -# Utility functions -# Get the latest released version of a Maven artifact. -function get_latest_released_version() { - local group_id=$1 - local artifact_id=$2 - group_id_url_path="$(sed 's|\.|/|g' <<< "${group_id}")" - url="https://repo1.maven.org/maven2/${group_id_url_path}/${artifact_id}/maven-metadata.xml" - xml_content=$(curl -s --fail "${url}") - - # 1. Extract all version tags - # 2. Strip the XML tags to leave just the version numbers - # 3. Filter for strictly numbers.numbers.numbers (e.g., 2.54.0) - # 4. Sort by version (V) and take the last one (tail -n 1) - latest=$(echo "${xml_content}" \ - | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' \ - | sed -E 's/<[^>]+>//g' \ - | sort -V \ - | tail -n 1) - - if [[ -z "${latest}" ]]; then - echo "The latest version of ${group_id}:${artifact_id} is empty." - echo "The returned json from maven.org is invalid: ${json_content}" - exit 1 - else - echo "${latest}" - fi -} - -# Update a key to a new value in the generation config. -function update_config() { - local key_word=$1 - local new_value=$2 - local file=$3 - echo "Update ${key_word} to ${new_value} in ${file}" - sed -i -e "s/^${key_word}.*$/${key_word}: ${new_value}/" "${file}" -} - -# Update an action to a new version in GitHub action. -function update_action() { - local key_word=$1 - local new_value=$2 - local file=$3 - echo "Update ${key_word} to ${new_value} in ${file}" - # use a different delimiter because the key_word contains "/". - sed -i -e "s|${key_word}@v.*$|${key_word}@v${new_value}|" "${file}" -} - -# The parameters of this script is: -# 1. base_branch, the base branch of the result pull request. -# 2. repo, organization/repo-name, e.g., googleapis/google-cloud-java -# 3. [optional] generation_config, the path to the generation configuration, -# the default value is generation_config.yaml in the repository root. -# 4. [optional] workflow, the library generation workflow file, -# the default value is .github/workflows/hermetic_library_generation.yaml. -while [[ $# -gt 0 ]]; do -key="$1" -case "${key}" in - --base_branch) - base_branch="$2" - shift - ;; - --repo) - repo="$2" - shift - ;; - --generation_config) - generation_config="$2" - shift - ;; - --workflow) - workflow="$2" - shift - ;; - *) - echo "Invalid option: [$1]" - exit 1 - ;; -esac -shift -done - -if [ -z "${base_branch}" ]; then - echo "missing required argument --base_branch" - exit 1 -fi - -if [ -z "${repo}" ]; then - echo "missing required argument --repo" - exit 1 -fi - -if [ -z "${generation_config}" ]; then - generation_config="generation_config.yaml" - echo "Use default generation config: ${generation_config}" -fi - -if [ -z "${workflow}" ]; then - workflow=".github/workflows/hermetic_library_generation.yaml" - echo "Use default library generation workflow file: ${workflow}" -fi - -current_branch="generate-libraries-${base_branch}" -title="chore: Update generation configuration at $(date)" - -git checkout "${base_branch}" -# Try to find a open pull request associated with the branch -pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") -# Create a branch if there's no open pull request associated with the -# branch; otherwise checkout the pull request. -if [ -z "${pr_num}" ]; then - git checkout -b "${current_branch}" - # Push the current branch to remote so that we can - # compare the commits later. - git push -u origin "${current_branch}" -else - gh pr checkout "${pr_num}" -fi - -# Only allow fast-forward merging; exit with non-zero result if there's merging -# conflict. -git merge -m "chore: merge ${base_branch} into ${current_branch}" "${base_branch}" - -mkdir tmp-googleapis -# Use partial clone because only commit history is needed. -git clone --filter=blob:none https://github.com/googleapis/googleapis.git tmp-googleapis -pushd tmp-googleapis -git pull -latest_commit=$(git rev-parse HEAD) -popd -rm -rf tmp-googleapis -update_config "googleapis_commitish" "${latest_commit}" "${generation_config}" - -# Update gapic-generator-java version to the latest -latest_version=$(get_latest_released_version "com.google.api" "gapic-generator-java") -update_config "gapic_generator_version" "${latest_version}" "${generation_config}" - -# Update composite action version to latest gapic-generator-java version -update_action "googleapis/sdk-platform-java/.github/scripts" \ - "${latest_version}" \ - "${workflow}" - -# Update libraries-bom version to the latest -latest_version=$(get_latest_released_version "com.google.cloud" "libraries-bom") -update_config "libraries_bom_version" "${latest_version}" "${generation_config}" - -git add "${generation_config}" "${workflow}" -changed_files=$(git diff --cached --name-only) -if [[ "${changed_files}" == "" ]]; then - echo "The latest generation config is not changed." - echo "Skip committing to the pull request." -else - git commit -m "${title}" -fi - -# There are potentially at most two commits: merge commit and change commit. -# We want to exit the script if no commit happens (otherwise this will be an -# infinite loop). -# `git cherry` is a way to find whether the local branch has commits that are -# not in the remote branch. -# If we find any such commit, push them to remote branch. -unpushed_commit=$(git cherry -v "origin/${current_branch}" | wc -l) -if [[ "${unpushed_commit}" -eq 0 ]]; then - echo "No unpushed commits, exit" - exit 0 -fi - -if [ -z "${pr_num}" ]; then - git remote add remote_repo https://cloud-java-bot:"${GH_TOKEN}@github.com/${repo}.git" - git fetch -q remote_repo - git push -f remote_repo "${current_branch}" - gh pr create --title "${title}" --head "${current_branch}" --body "${title}" --base "${base_branch}" -else - git push - gh pr edit "${pr_num}" --title "${title}" --body "${title}" -fi From 4117a1abc223b3217f977ca5bb028777379a3055 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Mon, 16 Mar 2026 20:17:20 +0000 Subject: [PATCH 2363/2363] chore: generate libraries at Mon Mar 16 20:15:24 UTC 2026 --- gapic-libraries-bom/pom.xml | 7 + java-pubsub/.repo-metadata.json | 4 +- java-pubsub/README.md | 164 +- .../pubsub/v1/SubscriptionAdminClient.java | 2 + .../reflect-config.json | 27 + .../SubscriptionAdminClientHttpJsonTest.java | 10 + .../v1/SubscriptionAdminClientTest.java | 8 + java-pubsub/pom.xml | 2 +- .../com/google/pubsub/v1/BigtableConfig.java | 1650 +++++++++++++++++ .../pubsub/v1/BigtableConfigOrBuilder.java | 176 ++ .../com/google/pubsub/v1/PubsubProto.java | 457 ++--- .../com/google/pubsub/v1/PullRequest.java | 8 +- .../pubsub/v1/PullRequestOrBuilder.java | 2 +- .../com/google/pubsub/v1/Subscription.java | 584 ++++-- .../pubsub/v1/SubscriptionOrBuilder.java | 46 + .../main/proto/google/pubsub/v1/pubsub.proto | 82 + 16 files changed, 2798 insertions(+), 431 deletions(-) create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfig.java create mode 100644 java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfigOrBuilder.java diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 70790ff3c588..3b692f202f91 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -1074,6 +1074,13 @@ pom import + + com.google.cloud + google-cloud-pubsub-bom + 1.149.1-SNAPSHOT + pom + import + com.google.cloud google-cloud-rapidmigrationassessment-bom diff --git a/java-pubsub/.repo-metadata.json b/java-pubsub/.repo-metadata.json index 0d84f92f4e4f..08e23ec2102c 100644 --- a/java-pubsub/.repo-metadata.json +++ b/java-pubsub/.repo-metadata.json @@ -8,7 +8,7 @@ "transport": "both", "language": "java", "repo": "googleapis/google-cloud-java", - "repo_short": "google-cloud-java", + "repo_short": "java-pubsub", "distribution_name": "com.google.cloud:google-cloud-pubsub", "api_id": "pubsub.googleapis.com", "library_type": "GAPIC_COMBO", @@ -17,4 +17,4 @@ "codeowner_team": "@googleapis/pubsub-team", "issue_tracker": "https://issuetracker.google.com/savedsearches/559741", "recommended_package": "com.google.cloud.pubsub.v1" -} +} \ No newline at end of file diff --git a/java-pubsub/README.md b/java-pubsub/README.md index 3756b7602fe9..29d6feb94d5e 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.76.0') +implementation platform('com.google.cloud:libraries-bom:26.77.0') implementation 'com.google.cloud:google-cloud-pubsub' ``` @@ -236,87 +236,87 @@ In [CreateTopicAndPublishMessages.java](https://github.com/googleapis/google-clo ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/java-pubsub/tree/main/samples) directory. +Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-java/tree/main/samples) directory. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Commit Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java) | -| Commit Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | -| Create Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | -| Create Big Query Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | -| Create Cloud Storage Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java) | -| Create Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | -| Create Pull Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | -| Create Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | -| Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | -| Create Subscription With Exactly Once Delivery | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | -| Create Subscription With Filtering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | -| Create Subscription With Ordering | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | -| Create Subscription With Smt Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java) | -| Create Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | -| Create Topic With Aws Msk Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | -| Create Topic With Azure Event Hubs Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | -| Create Topic With Cloud Storage Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | -| Create Topic With Confluent Cloud Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java) | -| Create Topic With Kinesis Ingestion Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | -| Create Topic With Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | -| Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | -| Create Topic With Smt Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java) | -| Create Unwrapped Push Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | -| Delete Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | -| Delete Schema Revision Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | -| Delete Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | -| Delete Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | -| Detach Subscription Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | -| Get Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | -| Get Schema Revision Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetSchemaRevisionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSchemaRevisionExample.java) | -| Get Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | -| Get Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | -| List Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSchemaRevisionsExample.java) | -| List Schemas Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | -| List Subscriptions In Project Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | -| List Subscriptions In Topic Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | -| List Topics Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | -| Open Telemetry Publisher Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java) | -| Open Telemetry Subscriber Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java) | -| Optimistic Subscribe Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | -| Publish Avro Records Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | -| Publish Protobuf Messages Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | -| Publish With Batch Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | -| Publish With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | -| Publish With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | -| Publish With Error Handler Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | -| Publish With Flow Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | -| Publish With Grpc Compression Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java) | -| Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | -| Publish With Retry Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | -| Publisher Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/PublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublisherExample.java) | -| Receive Messages With Delivery Attempts Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | -| Remove Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | -| Resume Publish With Ordering Keys | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | -| Rollback Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/RollbackSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RollbackSchemaExample.java) | -| Set Subscription Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | -| Set Topic Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | -| Subscribe Async Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | -| Subscribe Sync Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | -| Subscribe Sync With Lease Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | -| Subscribe With Avro Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | -| Subscribe With Avro Schema Revisions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java) | -| Subscribe With Concurrency Control Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | -| Subscribe With Custom Attributes Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | -| Subscribe With Error Listener Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | -| Subscribe With Exactly Once Consumer With Response Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java) | -| Subscribe With Flow Control Settings Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | -| Subscribe With Proto Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | -| Test Subscription Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | -| Test Topic Permissions Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | -| Update Dead Letter Policy Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | -| Update Push Configuration Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | -| Update Topic Schema Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | -| Update Topic Type Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java) | -| Use Pub Sub Emulator Example | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | -| State | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/State.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/State.java) | -| State Proto | [source code](https://github.com/googleapis/java-pubsub/blob/main/samples/snippets/src/main/java/utilities/StateProto.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-pubsub&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/StateProto.java) | +| Commit Avro Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitAvroSchemaExample.java) | +| Commit Proto Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CommitProtoSchemaExample.java) | +| Create Avro Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateAvroSchemaExample.java) | +| Create Big Query Subscription Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateBigQuerySubscriptionExample.java) | +| Create Cloud Storage Subscription Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateCloudStorageSubscriptionExample.java) | +| Create Proto Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateProtoSchemaExample.java) | +| Create Pull Subscription Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePullSubscriptionExample.java) | +| Create Push Subscription Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreatePushSubscriptionExample.java) | +| Create Subscription With Dead Letter Policy Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithDeadLetterPolicyExample.java) | +| Create Subscription With Exactly Once Delivery | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithExactlyOnceDelivery.java) | +| Create Subscription With Filtering | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithFiltering.java) | +| Create Subscription With Ordering | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithOrdering.java) | +| Create Subscription With Smt Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateSubscriptionWithSmtExample.java) | +| Create Topic Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicExample.java) | +| Create Topic With Aws Msk Ingestion Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAwsMskIngestionExample.java) | +| Create Topic With Azure Event Hubs Ingestion Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithAzureEventHubsIngestionExample.java) | +| Create Topic With Cloud Storage Ingestion Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithCloudStorageIngestionExample.java) | +| Create Topic With Confluent Cloud Ingestion Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithConfluentCloudIngestionExample.java) | +| Create Topic With Kinesis Ingestion Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithKinesisIngestionExample.java) | +| Create Topic With Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaExample.java) | +| Create Topic With Schema Revisions Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSchemaRevisionsExample.java) | +| Create Topic With Smt Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateTopicWithSmtExample.java) | +| Create Unwrapped Push Subscription Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/CreateUnwrappedPushSubscriptionExample.java) | +| Delete Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaExample.java) | +| Delete Schema Revision Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSchemaRevisionExample.java) | +| Delete Subscription Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteSubscriptionExample.java) | +| Delete Topic Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DeleteTopicExample.java) | +| Detach Subscription Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/DetachSubscriptionExample.java) | +| Get Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSchemaExample.java) | +| Get Schema Revision Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/GetSchemaRevisionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSchemaRevisionExample.java) | +| Get Subscription Policy Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetSubscriptionPolicyExample.java) | +| Get Topic Policy Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/GetTopicPolicyExample.java) | +| List Schema Revisions Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/ListSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSchemaRevisionsExample.java) | +| List Schemas Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSchemasExample.java) | +| List Subscriptions In Project Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInProjectExample.java) | +| List Subscriptions In Topic Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListSubscriptionsInTopicExample.java) | +| List Topics Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ListTopicsExample.java) | +| Open Telemetry Publisher Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OpenTelemetryPublisherExample.java) | +| Open Telemetry Subscriber Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OpenTelemetrySubscriberExample.java) | +| Optimistic Subscribe Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/OptimisticSubscribeExample.java) | +| Publish Avro Records Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishAvroRecordsExample.java) | +| Publish Protobuf Messages Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishProtobufMessagesExample.java) | +| Publish With Batch Settings Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithBatchSettingsExample.java) | +| Publish With Concurrency Control Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithConcurrencyControlExample.java) | +| Publish With Custom Attributes Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithCustomAttributesExample.java) | +| Publish With Error Handler Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithErrorHandlerExample.java) | +| Publish With Flow Control Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithFlowControlExample.java) | +| Publish With Grpc Compression Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithGrpcCompressionExample.java) | +| Publish With Ordering Keys | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithOrderingKeys.java) | +| Publish With Retry Settings Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublishWithRetrySettingsExample.java) | +| Publisher Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/PublisherExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/PublisherExample.java) | +| Receive Messages With Delivery Attempts Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ReceiveMessagesWithDeliveryAttemptsExample.java) | +| Remove Dead Letter Policy Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RemoveDeadLetterPolicyExample.java) | +| Resume Publish With Ordering Keys | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/ResumePublishWithOrderingKeys.java) | +| Rollback Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/RollbackSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/RollbackSchemaExample.java) | +| Set Subscription Policy Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetSubscriptionPolicyExample.java) | +| Set Topic Policy Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SetTopicPolicyExample.java) | +| Subscribe Async Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeAsyncExample.java) | +| Subscribe Sync Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncExample.java) | +| Subscribe Sync With Lease Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeSyncWithLeaseExample.java) | +| Subscribe With Avro Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaExample.java) | +| Subscribe With Avro Schema Revisions Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithAvroSchemaRevisionsExample.java) | +| Subscribe With Concurrency Control Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithConcurrencyControlExample.java) | +| Subscribe With Custom Attributes Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithCustomAttributesExample.java) | +| Subscribe With Error Listener Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithErrorListenerExample.java) | +| Subscribe With Exactly Once Consumer With Response Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithExactlyOnceConsumerWithResponseExample.java) | +| Subscribe With Flow Control Settings Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithFlowControlSettingsExample.java) | +| Subscribe With Proto Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/SubscribeWithProtoSchemaExample.java) | +| Test Subscription Permissions Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestSubscriptionPermissionsExample.java) | +| Test Topic Permissions Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/TestTopicPermissionsExample.java) | +| Update Dead Letter Policy Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateDeadLetterPolicyExample.java) | +| Update Push Configuration Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdatePushConfigurationExample.java) | +| Update Topic Schema Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicSchemaExample.java) | +| Update Topic Type Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UpdateTopicTypeExample.java) | +| Use Pub Sub Emulator Example | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/pubsub/UsePubSubEmulatorExample.java) | +| State | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/utilities/State.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/State.java) | +| State Proto | [source code](https://github.com/googleapis/google-cloud-java/blob/main/samples/snippets/src/main/java/utilities/StateProto.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-java&page=editor&open_in_editor=samples/snippets/src/main/java/utilities/StateProto.java) | @@ -410,9 +410,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-cli]: https://cloud.google.com/cli [troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md -[contributing]: https://github.com/googleapis/java-pubsub/blob/main/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-pubsub/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-pubsub/blob/main/LICENSE +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE [enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=pubsub.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index d82b6afa4d61..26a764dab3bf 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -866,6 +866,7 @@ public final Subscription createSubscription( * .setPushConfig(PushConfig.newBuilder().build()) * .setBigqueryConfig(BigQueryConfig.newBuilder().build()) * .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + * .setBigtableConfig(BigtableConfig.newBuilder().build()) * .setAckDeadlineSeconds(2135351438) * .setRetainAckedMessages(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -1133,6 +1134,7 @@ public final Subscription createSubscription( * .setPushConfig(PushConfig.newBuilder().build()) * .setBigqueryConfig(BigQueryConfig.newBuilder().build()) * .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + * .setBigtableConfig(BigtableConfig.newBuilder().build()) * .setAckDeadlineSeconds(2135351438) * .setRetainAckedMessages(true) * .setMessageRetentionDuration(Duration.newBuilder().build()) diff --git a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json index 885e01e89ff8..e3938470a2d8 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json +++ b/java-pubsub/google-cloud-pubsub/src/main/resources/META-INF/native-image/com.google.cloud.pubsub.v1/reflect-config.json @@ -1664,6 +1664,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.pubsub.v1.BigtableConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.BigtableConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.pubsub.v1.BigtableConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.pubsub.v1.CloudStorageConfig", "queryAllDeclaredConstructors": true, diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java index 128e6e2f6c6a..8ec2cdfab25d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientHttpJsonTest.java @@ -44,6 +44,7 @@ import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import com.google.pubsub.v1.BigQueryConfig; +import com.google.pubsub.v1.BigtableConfig; import com.google.pubsub.v1.CloudStorageConfig; import com.google.pubsub.v1.DeadLetterPolicy; import com.google.pubsub.v1.ExpirationPolicy; @@ -120,6 +121,7 @@ public void createSubscriptionTest() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -191,6 +193,7 @@ public void createSubscriptionTest2() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -262,6 +265,7 @@ public void createSubscriptionTest3() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -333,6 +337,7 @@ public void createSubscriptionTest4() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -404,6 +409,7 @@ public void getSubscriptionTest() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -468,6 +474,7 @@ public void getSubscriptionTest2() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -532,6 +539,7 @@ public void updateSubscriptionTest() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -558,6 +566,7 @@ public void updateSubscriptionTest() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -610,6 +619,7 @@ public void updateSubscriptionExceptionTest() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java index 552249455cae..7df554b6d30d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/SubscriptionAdminClientTest.java @@ -47,6 +47,7 @@ import com.google.protobuf.Timestamp; import com.google.pubsub.v1.AcknowledgeRequest; import com.google.pubsub.v1.BigQueryConfig; +import com.google.pubsub.v1.BigtableConfig; import com.google.pubsub.v1.CloudStorageConfig; import com.google.pubsub.v1.CreateSnapshotRequest; import com.google.pubsub.v1.DeadLetterPolicy; @@ -146,6 +147,7 @@ public void createSubscriptionTest() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -214,6 +216,7 @@ public void createSubscriptionTest2() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -282,6 +285,7 @@ public void createSubscriptionTest3() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -350,6 +354,7 @@ public void createSubscriptionTest4() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -418,6 +423,7 @@ public void getSubscriptionTest() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -476,6 +482,7 @@ public void getSubscriptionTest2() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) @@ -534,6 +541,7 @@ public void updateSubscriptionTest() throws Exception { .setPushConfig(PushConfig.newBuilder().build()) .setBigqueryConfig(BigQueryConfig.newBuilder().build()) .setCloudStorageConfig(CloudStorageConfig.newBuilder().build()) + .setBigtableConfig(BigtableConfig.newBuilder().build()) .setAckDeadlineSeconds(2135351438) .setRetainAckedMessages(true) .setMessageRetentionDuration(Duration.newBuilder().build()) diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index 553cd75f9f05..befd4960d462 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -127,4 +127,4 @@ google-cloud-pubsub-bom - + diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfig.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfig.java new file mode 100644 index 000000000000..38cafb2e080b --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfig.java @@ -0,0 +1,1650 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 + +package com.google.pubsub.v1; + +/** + * + * + *
      + * Configuration for a Bigtable subscription. The Pub/Sub message will be
      + * written to a Bigtable row as follows:
      + * - row key: subscription name and message ID delimited by #.
      + * - columns: message bytes written to a single column family "data" with an
      + * empty-string column qualifier.
      + * - cell timestamp: the message publish timestamp.
      + * 
      + * + * Protobuf type {@code google.pubsub.v1.BigtableConfig} + */ +@com.google.protobuf.Generated +public final class BigtableConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.pubsub.v1.BigtableConfig) + BigtableConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BigtableConfig"); + } + + // Use BigtableConfig.newBuilder() to construct. + private BigtableConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BigtableConfig() { + table_ = ""; + appProfileId_ = ""; + serviceAccountEmail_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.BigtableConfig.class, + com.google.pubsub.v1.BigtableConfig.Builder.class); + } + + /** + * + * + *
      +   * Possible states for a Bigtable subscription.
      +   * Note: more states could be added in the future. Please code accordingly.
      +   * 
      + * + * Protobuf enum {@code google.pubsub.v1.BigtableConfig.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
      +     * Default value. This value is unused.
      +     * 
      + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
      +     * The subscription can actively send messages to Bigtable.
      +     * 
      + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
      +     * Cannot write to Bigtable because the instance, table, or app profile
      +     * does not exist.
      +     * 
      + * + * NOT_FOUND = 2; + */ + NOT_FOUND(2), + /** + * + * + *
      +     * Cannot write to Bigtable because the app profile is not configured for
      +     * single-cluster routing.
      +     * 
      + * + * APP_PROFILE_MISCONFIGURED = 3; + */ + APP_PROFILE_MISCONFIGURED(3), + /** + * + * + *
      +     * Cannot write to Bigtable because of permission denied errors.
      +     * This can happen if:
      +     * - The Pub/Sub service agent has not been granted the
      +     * [appropriate Bigtable IAM permission
      +     * bigtable.tables.mutateRows]({$universe.dns_names.final_documentation_domain}/bigtable/docs/access-control#permissions)
      +     * - The bigtable.googleapis.com API is not enabled for the project
      +     * ([instructions]({$universe.dns_names.final_documentation_domain}/service-usage/docs/enable-disable))
      +     * 
      + * + * PERMISSION_DENIED = 4; + */ + PERMISSION_DENIED(4), + /** + * + * + *
      +     * Cannot write to Bigtable because of a missing column family ("data") or
      +     * if there is no structured row key for the subscription name + message ID.
      +     * 
      + * + * SCHEMA_MISMATCH = 5; + */ + SCHEMA_MISMATCH(5), + /** + * + * + *
      +     * Cannot write to the destination because enforce_in_transit is set to true
      +     * and the destination locations are not in the allowed regions.
      +     * 
      + * + * IN_TRANSIT_LOCATION_RESTRICTION = 6; + */ + IN_TRANSIT_LOCATION_RESTRICTION(6), + /** + * + * + *
      +     * Cannot write to Bigtable because the table is not in the same location as
      +     * where Vertex AI models used in `message_transform`s are deployed.
      +     * 
      + * + * VERTEX_AI_LOCATION_RESTRICTION = 7; + */ + VERTEX_AI_LOCATION_RESTRICTION(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
      +     * Default value. This value is unused.
      +     * 
      + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
      +     * The subscription can actively send messages to Bigtable.
      +     * 
      + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
      +     * Cannot write to Bigtable because the instance, table, or app profile
      +     * does not exist.
      +     * 
      + * + * NOT_FOUND = 2; + */ + public static final int NOT_FOUND_VALUE = 2; + + /** + * + * + *
      +     * Cannot write to Bigtable because the app profile is not configured for
      +     * single-cluster routing.
      +     * 
      + * + * APP_PROFILE_MISCONFIGURED = 3; + */ + public static final int APP_PROFILE_MISCONFIGURED_VALUE = 3; + + /** + * + * + *
      +     * Cannot write to Bigtable because of permission denied errors.
      +     * This can happen if:
      +     * - The Pub/Sub service agent has not been granted the
      +     * [appropriate Bigtable IAM permission
      +     * bigtable.tables.mutateRows]({$universe.dns_names.final_documentation_domain}/bigtable/docs/access-control#permissions)
      +     * - The bigtable.googleapis.com API is not enabled for the project
      +     * ([instructions]({$universe.dns_names.final_documentation_domain}/service-usage/docs/enable-disable))
      +     * 
      + * + * PERMISSION_DENIED = 4; + */ + public static final int PERMISSION_DENIED_VALUE = 4; + + /** + * + * + *
      +     * Cannot write to Bigtable because of a missing column family ("data") or
      +     * if there is no structured row key for the subscription name + message ID.
      +     * 
      + * + * SCHEMA_MISMATCH = 5; + */ + public static final int SCHEMA_MISMATCH_VALUE = 5; + + /** + * + * + *
      +     * Cannot write to the destination because enforce_in_transit is set to true
      +     * and the destination locations are not in the allowed regions.
      +     * 
      + * + * IN_TRANSIT_LOCATION_RESTRICTION = 6; + */ + public static final int IN_TRANSIT_LOCATION_RESTRICTION_VALUE = 6; + + /** + * + * + *
      +     * Cannot write to Bigtable because the table is not in the same location as
      +     * where Vertex AI models used in `message_transform`s are deployed.
      +     * 
      + * + * VERTEX_AI_LOCATION_RESTRICTION = 7; + */ + public static final int VERTEX_AI_LOCATION_RESTRICTION_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return NOT_FOUND; + case 3: + return APP_PROFILE_MISCONFIGURED; + case 4: + return PERMISSION_DENIED; + case 5: + return SCHEMA_MISMATCH; + case 6: + return IN_TRANSIT_LOCATION_RESTRICTION; + case 7: + return VERTEX_AI_LOCATION_RESTRICTION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.pubsub.v1.BigtableConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.pubsub.v1.BigtableConfig.State) + } + + public static final int TABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object table_ = ""; + + /** + * + * + *
      +   * Optional. The unique name of the table to write messages to.
      +   *
      +   * Values are of the form
      +   * `projects/<project>/instances/<instance>/tables/<table>`.
      +   * 
      + * + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The unique name of the table to write messages to.
      +   *
      +   * Values are of the form
      +   * `projects/<project>/instances/<instance>/tables/<table>`.
      +   * 
      + * + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APP_PROFILE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appProfileId_ = ""; + + /** + * + * + *
      +   * Optional. The app profile to use for the Bigtable writes. If not specified,
      +   * the "default" application profile will be used. The app profile must use
      +   * single-cluster routing.
      +   * 
      + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appProfileId. + */ + @java.lang.Override + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The app profile to use for the Bigtable writes. If not specified,
      +   * the "default" application profile will be used. The app profile must use
      +   * single-cluster routing.
      +   * 
      + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appProfileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountEmail_ = ""; + + /** + * + * + *
      +   * Optional. The service account to use to write to Bigtable. The subscription
      +   * creator or updater that specifies this field must have
      +   * `iam.serviceAccounts.actAs` permission on the service account. If not
      +   * specified, the Pub/Sub [service
      +   * agent](https://cloud.google.com/iam/docs/service-agents),
      +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +   * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + @java.lang.Override + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } + } + + /** + * + * + *
      +   * Optional. The service account to use to write to Bigtable. The subscription
      +   * creator or updater that specifies this field must have
      +   * `iam.serviceAccounts.actAs` permission on the service account. If not
      +   * specified, the Pub/Sub [service
      +   * agent](https://cloud.google.com/iam/docs/service-agents),
      +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +   * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WRITE_METADATA_FIELD_NUMBER = 5; + private boolean writeMetadata_ = false; + + /** + * + * + *
      +   * Optional. When true, write the subscription name, message_id, publish_time,
      +   * attributes, and ordering_key to additional columns in the table under the
      +   * pubsub_metadata column family. The subscription name, message_id, and
      +   * publish_time fields are put in their own columns while all other message
      +   * properties (other than data) are written to a JSON object in the attributes
      +   * column.
      +   * 
      + * + * bool write_metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The writeMetadata. + */ + @java.lang.Override + public boolean getWriteMetadata() { + return writeMetadata_; + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
      +   * Output only. An output-only field that indicates whether or not the
      +   * subscription can receive messages.
      +   * 
      + * + * + * .google.pubsub.v1.BigtableConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
      +   * Output only. An output-only field that indicates whether or not the
      +   * subscription can receive messages.
      +   * 
      + * + * + * .google.pubsub.v1.BigtableConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.State getState() { + com.google.pubsub.v1.BigtableConfig.State result = + com.google.pubsub.v1.BigtableConfig.State.forNumber(state_); + return result == null ? com.google.pubsub.v1.BigtableConfig.State.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, table_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appProfileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appProfileId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, serviceAccountEmail_); + } + if (state_ != com.google.pubsub.v1.BigtableConfig.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, state_); + } + if (writeMetadata_ != false) { + output.writeBool(5, writeMetadata_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, table_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appProfileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appProfileId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, serviceAccountEmail_); + } + if (state_ != com.google.pubsub.v1.BigtableConfig.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (writeMetadata_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, writeMetadata_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.pubsub.v1.BigtableConfig)) { + return super.equals(obj); + } + com.google.pubsub.v1.BigtableConfig other = (com.google.pubsub.v1.BigtableConfig) obj; + + if (!getTable().equals(other.getTable())) return false; + if (!getAppProfileId().equals(other.getAppProfileId())) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (getWriteMetadata() != other.getWriteMetadata()) return false; + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + hash = (37 * hash) + APP_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getAppProfileId().hashCode(); + hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); + hash = (37 * hash) + WRITE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWriteMetadata()); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.pubsub.v1.BigtableConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.pubsub.v1.BigtableConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.pubsub.v1.BigtableConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.pubsub.v1.BigtableConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.pubsub.v1.BigtableConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
      +   * Configuration for a Bigtable subscription. The Pub/Sub message will be
      +   * written to a Bigtable row as follows:
      +   * - row key: subscription name and message ID delimited by #.
      +   * - columns: message bytes written to a single column family "data" with an
      +   * empty-string column qualifier.
      +   * - cell timestamp: the message publish timestamp.
      +   * 
      + * + * Protobuf type {@code google.pubsub.v1.BigtableConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.pubsub.v1.BigtableConfig) + com.google.pubsub.v1.BigtableConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.pubsub.v1.BigtableConfig.class, + com.google.pubsub.v1.BigtableConfig.Builder.class); + } + + // Construct using com.google.pubsub.v1.BigtableConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + table_ = ""; + appProfileId_ = ""; + serviceAccountEmail_ = ""; + writeMetadata_ = false; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.pubsub.v1.PubsubProto + .internal_static_google_pubsub_v1_BigtableConfig_descriptor; + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig getDefaultInstanceForType() { + return com.google.pubsub.v1.BigtableConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig build() { + com.google.pubsub.v1.BigtableConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig buildPartial() { + com.google.pubsub.v1.BigtableConfig result = new com.google.pubsub.v1.BigtableConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.pubsub.v1.BigtableConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.table_ = table_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appProfileId_ = appProfileId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serviceAccountEmail_ = serviceAccountEmail_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.writeMetadata_ = writeMetadata_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.pubsub.v1.BigtableConfig) { + return mergeFrom((com.google.pubsub.v1.BigtableConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.pubsub.v1.BigtableConfig other) { + if (other == com.google.pubsub.v1.BigtableConfig.getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppProfileId().isEmpty()) { + appProfileId_ = other.appProfileId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getWriteMetadata() != false) { + setWriteMetadata(other.getWriteMetadata()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: + { + writeMetadata_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object table_ = ""; + + /** + * + * + *
      +     * Optional. The unique name of the table to write messages to.
      +     *
      +     * Values are of the form
      +     * `projects/<project>/instances/<instance>/tables/<table>`.
      +     * 
      + * + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The unique name of the table to write messages to.
      +     *
      +     * Values are of the form
      +     * `projects/<project>/instances/<instance>/tables/<table>`.
      +     * 
      + * + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The unique name of the table to write messages to.
      +     *
      +     * Values are of the form
      +     * `projects/<project>/instances/<instance>/tables/<table>`.
      +     * 
      + * + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The unique name of the table to write messages to.
      +     *
      +     * Values are of the form
      +     * `projects/<project>/instances/<instance>/tables/<table>`.
      +     * 
      + * + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + table_ = getDefaultInstance().getTable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The unique name of the table to write messages to.
      +     *
      +     * Values are of the form
      +     * `projects/<project>/instances/<instance>/tables/<table>`.
      +     * 
      + * + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appProfileId_ = ""; + + /** + * + * + *
      +     * Optional. The app profile to use for the Bigtable writes. If not specified,
      +     * the "default" application profile will be used. The app profile must use
      +     * single-cluster routing.
      +     * 
      + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appProfileId. + */ + public java.lang.String getAppProfileId() { + java.lang.Object ref = appProfileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appProfileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The app profile to use for the Bigtable writes. If not specified,
      +     * the "default" application profile will be used. The app profile must use
      +     * single-cluster routing.
      +     * 
      + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appProfileId. + */ + public com.google.protobuf.ByteString getAppProfileIdBytes() { + java.lang.Object ref = appProfileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The app profile to use for the Bigtable writes. If not specified,
      +     * the "default" application profile will be used. The app profile must use
      +     * single-cluster routing.
      +     * 
      + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The app profile to use for the Bigtable writes. If not specified,
      +     * the "default" application profile will be used. The app profile must use
      +     * single-cluster routing.
      +     * 
      + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppProfileId() { + appProfileId_ = getDefaultInstance().getAppProfileId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The app profile to use for the Bigtable writes. If not specified,
      +     * the "default" application profile will be used. The app profile must use
      +     * single-cluster routing.
      +     * 
      + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for appProfileId to set. + * @return This builder for chaining. + */ + public Builder setAppProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appProfileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object serviceAccountEmail_ = ""; + + /** + * + * + *
      +     * Optional. The service account to use to write to Bigtable. The subscription
      +     * creator or updater that specifies this field must have
      +     * `iam.serviceAccounts.actAs` permission on the service account. If not
      +     * specified, the Pub/Sub [service
      +     * agent](https://cloud.google.com/iam/docs/service-agents),
      +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +     * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
      +     * Optional. The service account to use to write to Bigtable. The subscription
      +     * creator or updater that specifies this field must have
      +     * `iam.serviceAccounts.actAs` permission on the service account. If not
      +     * specified, the Pub/Sub [service
      +     * agent](https://cloud.google.com/iam/docs/service-agents),
      +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +     * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
      +     * Optional. The service account to use to write to Bigtable. The subscription
      +     * creator or updater that specifies this field must have
      +     * `iam.serviceAccounts.actAs` permission on the service account. If not
      +     * specified, the Pub/Sub [service
      +     * agent](https://cloud.google.com/iam/docs/service-agents),
      +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +     * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountEmail_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The service account to use to write to Bigtable. The subscription
      +     * creator or updater that specifies this field must have
      +     * `iam.serviceAccounts.actAs` permission on the service account. If not
      +     * specified, the Pub/Sub [service
      +     * agent](https://cloud.google.com/iam/docs/service-agents),
      +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +     * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountEmail() { + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. The service account to use to write to Bigtable. The subscription
      +     * creator or updater that specifies this field must have
      +     * `iam.serviceAccounts.actAs` permission on the service account. If not
      +     * specified, the Pub/Sub [service
      +     * agent](https://cloud.google.com/iam/docs/service-agents),
      +     * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +     * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean writeMetadata_; + + /** + * + * + *
      +     * Optional. When true, write the subscription name, message_id, publish_time,
      +     * attributes, and ordering_key to additional columns in the table under the
      +     * pubsub_metadata column family. The subscription name, message_id, and
      +     * publish_time fields are put in their own columns while all other message
      +     * properties (other than data) are written to a JSON object in the attributes
      +     * column.
      +     * 
      + * + * bool write_metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The writeMetadata. + */ + @java.lang.Override + public boolean getWriteMetadata() { + return writeMetadata_; + } + + /** + * + * + *
      +     * Optional. When true, write the subscription name, message_id, publish_time,
      +     * attributes, and ordering_key to additional columns in the table under the
      +     * pubsub_metadata column family. The subscription name, message_id, and
      +     * publish_time fields are put in their own columns while all other message
      +     * properties (other than data) are written to a JSON object in the attributes
      +     * column.
      +     * 
      + * + * bool write_metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The writeMetadata to set. + * @return This builder for chaining. + */ + public Builder setWriteMetadata(boolean value) { + + writeMetadata_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. When true, write the subscription name, message_id, publish_time,
      +     * attributes, and ordering_key to additional columns in the table under the
      +     * pubsub_metadata column family. The subscription name, message_id, and
      +     * publish_time fields are put in their own columns while all other message
      +     * properties (other than data) are written to a JSON object in the attributes
      +     * column.
      +     * 
      + * + * bool write_metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWriteMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + writeMetadata_ = false; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
      +     * Output only. An output-only field that indicates whether or not the
      +     * subscription can receive messages.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
      +     * Output only. An output-only field that indicates whether or not the
      +     * subscription can receive messages.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. An output-only field that indicates whether or not the
      +     * subscription can receive messages.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig.State getState() { + com.google.pubsub.v1.BigtableConfig.State result = + com.google.pubsub.v1.BigtableConfig.State.forNumber(state_); + return result == null ? com.google.pubsub.v1.BigtableConfig.State.UNRECOGNIZED : result; + } + + /** + * + * + *
      +     * Output only. An output-only field that indicates whether or not the
      +     * subscription can receive messages.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.pubsub.v1.BigtableConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
      +     * Output only. An output-only field that indicates whether or not the
      +     * subscription can receive messages.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.pubsub.v1.BigtableConfig) + } + + // @@protoc_insertion_point(class_scope:google.pubsub.v1.BigtableConfig) + private static final com.google.pubsub.v1.BigtableConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.pubsub.v1.BigtableConfig(); + } + + public static com.google.pubsub.v1.BigtableConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigtableConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfigOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfigOrBuilder.java new file mode 100644 index 000000000000..ef22565e23b7 --- /dev/null +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/BigtableConfigOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/pubsub/v1/pubsub.proto +// Protobuf Java Version: 4.33.2 + +package com.google.pubsub.v1; + +@com.google.protobuf.Generated +public interface BigtableConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.pubsub.v1.BigtableConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
      +   * Optional. The unique name of the table to write messages to.
      +   *
      +   * Values are of the form
      +   * `projects/<project>/instances/<instance>/tables/<table>`.
      +   * 
      + * + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The table. + */ + java.lang.String getTable(); + + /** + * + * + *
      +   * Optional. The unique name of the table to write messages to.
      +   *
      +   * Values are of the form
      +   * `projects/<project>/instances/<instance>/tables/<table>`.
      +   * 
      + * + * string table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + + /** + * + * + *
      +   * Optional. The app profile to use for the Bigtable writes. If not specified,
      +   * the "default" application profile will be used. The app profile must use
      +   * single-cluster routing.
      +   * 
      + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appProfileId. + */ + java.lang.String getAppProfileId(); + + /** + * + * + *
      +   * Optional. The app profile to use for the Bigtable writes. If not specified,
      +   * the "default" application profile will be used. The app profile must use
      +   * single-cluster routing.
      +   * 
      + * + * string app_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appProfileId. + */ + com.google.protobuf.ByteString getAppProfileIdBytes(); + + /** + * + * + *
      +   * Optional. The service account to use to write to Bigtable. The subscription
      +   * creator or updater that specifies this field must have
      +   * `iam.serviceAccounts.actAs` permission on the service account. If not
      +   * specified, the Pub/Sub [service
      +   * agent](https://cloud.google.com/iam/docs/service-agents),
      +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +   * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccountEmail. + */ + java.lang.String getServiceAccountEmail(); + + /** + * + * + *
      +   * Optional. The service account to use to write to Bigtable. The subscription
      +   * creator or updater that specifies this field must have
      +   * `iam.serviceAccounts.actAs` permission on the service account. If not
      +   * specified, the Pub/Sub [service
      +   * agent](https://cloud.google.com/iam/docs/service-agents),
      +   * service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
      +   * 
      + * + * string service_account_email = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString getServiceAccountEmailBytes(); + + /** + * + * + *
      +   * Optional. When true, write the subscription name, message_id, publish_time,
      +   * attributes, and ordering_key to additional columns in the table under the
      +   * pubsub_metadata column family. The subscription name, message_id, and
      +   * publish_time fields are put in their own columns while all other message
      +   * properties (other than data) are written to a JSON object in the attributes
      +   * column.
      +   * 
      + * + * bool write_metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The writeMetadata. + */ + boolean getWriteMetadata(); + + /** + * + * + *
      +   * Output only. An output-only field that indicates whether or not the
      +   * subscription can receive messages.
      +   * 
      + * + * + * .google.pubsub.v1.BigtableConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
      +   * Output only. An output-only field that indicates whether or not the
      +   * subscription can receive messages.
      +   * 
      + * + * + * .google.pubsub.v1.BigtableConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.pubsub.v1.BigtableConfig.State getState(); +} diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java index 4717d7ebf176..10ab7cdd2daa 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PubsubProto.java @@ -268,6 +268,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_pubsub_v1_BigQueryConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_pubsub_v1_BigQueryConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_pubsub_v1_BigtableConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_pubsub_v1_BigtableConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_pubsub_v1_CloudStorageConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -718,7 +722,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031DetachSubscriptionRequest\022@\n" + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\034\n" - + "\032DetachSubscriptionResponse\"\250\014\n" + + "\032DetachSubscriptionResponse\"\350\014\n" + "\014Subscription\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0222\n" + "\005topic\030\002 \001(\tB#\340A\002\372A\035\n" @@ -728,13 +732,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017bigquery_config\030\022 \001(\0132" + " .google.pubsub.v1.BigQueryConfigB\003\340A\001\022G\n" + "\024cloud_storage_config\030\026" - + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022!\n" + + " \001(\0132$.google.pubsub.v1.CloudStorageConfigB\003\340A\001\022>\n" + + "\017bigtable_config\030\033 \001(\0132" + + " .google.pubsub.v1.BigtableConfigB\003\340A\001\022!\n" + "\024ack_deadline_seconds\030\005 \001(\005B\003\340A\001\022\"\n" + "\025retain_acked_messages\030\007 \001(\010B\003\340A\001\022B\n" + "\032message_retention_duration\030\010" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022?\n" - + "\006labels\030\t" - + " \003(\0132*.google.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + + "\006labels\030\t \003(\0132*.g" + + "oogle.pubsub.v1.Subscription.LabelsEntryB\003\340A\001\022$\n" + "\027enable_message_ordering\030\n" + " \001(\010B\003\340A\001\022B\n" + "\021expiration_policy\030\013" @@ -749,8 +755,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " topic_message_retention_duration\030\021" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\0228\n" + "\005state\030\023 \001(\0162$.google.pubsub.v1.Subscription.StateB\003\340A\003\022i\n" - + "\037analytics_hub_subscription_info\030\027 \001(\0132;.goo" - + "gle.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + + "\037analytics_hub_subscription_info\030\027 \001(\0132;.google.pubsub.v1.Su" + + "bscription.AnalyticsHubSubscriptionInfoB\003\340A\003\022C\n" + "\022message_transforms\030\031" + " \003(\0132\".google.pubsub.v1.MessageTransformB\003\340A\001\022A\n" + "\004tags\030\032 \003(\0132(.google.pubsub.v1.Subscription.TagsEntryB" @@ -769,8 +775,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\022\n" + "\016RESOURCE_ERROR\020\002:u\352Ar\n" - + "\"pubsub.googleapis.com/Subscription\022/proj" - + "ects/{project}/subscriptions/{subscription}*\r" + + "\"pubsub.googleapi" + + "s.com/Subscription\022/projects/{project}/subscriptions/{subscription}*\r" + "subscriptions2\014subscription\"\177\n" + "\013RetryPolicy\0227\n" + "\017minimum_backoff\030\001" @@ -784,12 +790,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\232\004\n\n" + "PushConfig\022\032\n\r" + "push_endpoint\030\001 \001(\tB\003\340A\001\022E\n\n" - + "attributes\030\002" - + " \003(\0132,.google.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" - + "oidc_token\030\003 \001(\013" - + "2&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" - + "\016pubsub_wrapper\030\004 \001(\0132*.google" - + ".pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + + "attributes\030\002 \003(\0132,.goog" + + "le.pubsub.v1.PushConfig.AttributesEntryB\003\340A\001\022A\n\n" + + "oidc_token\030\003" + + " \001(\0132&.google.pubsub.v1.PushConfig.OidcTokenB\003\340A\001H\000\022I\n" + + "\016pubsub_wrapper\030\004" + + " \001(\0132*.google.pubsub.v1.PushConfig.PubsubWrapperB\003\340A\001H\001\022A\n\n" + "no_wrapper\030\005" + " \001(\0132&.google.pubsub.v1.PushConfig.NoWrapperB\003\340A\001H\001\032F\n" + "\tOidcToken\022\"\n" @@ -808,8 +814,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020use_topic_schema\030\002 \001(\010B\003\340A\001\022\033\n" + "\016write_metadata\030\003 \001(\010B\003\340A\001\022 \n" + "\023drop_unknown_fields\030\004 \001(\010B\003\340A\001\022:\n" - + "\005state\030\005 \001(\0162&.go" - + "ogle.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + + "\005state\030\005" + + " \001(\0162&.google.pubsub.v1.BigQueryConfig.StateB\003\340A\003\022\035\n" + "\020use_table_schema\030\006 \001(\010B\003\340A\001\022\"\n" + "\025service_account_email\030\007 \001(\tB\003\340A\001\"\256\001\n" + "\005State\022\025\n" @@ -819,17 +825,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tNOT_FOUND\020\003\022\023\n" + "\017SCHEMA_MISMATCH\020\004\022#\n" + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\005\022\"\n" - + "\036VERTEX_AI_LOCATION_RESTRICTION\020\006\"\215\006\n" + + "\036VERTEX_AI_LOCATION_RESTRICTION\020\006\"\216\003\n" + + "\016BigtableConfig\022\022\n" + + "\005table\030\001 \001(\tB\003\340A\001\022\033\n" + + "\016app_profile_id\030\002 \001(\tB\003\340A\001\022\"\n" + + "\025service_account_email\030\003 \001(\tB\003\340A\001\022\033\n" + + "\016write_metadata\030\005 \001(\010B\003\340A\001\022:\n" + + "\005state\030\004" + + " \001(\0162&.google.pubsub.v1.BigtableConfig.StateB\003\340A\003\"\315\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\r\n" + + "\tNOT_FOUND\020\002\022\035\n" + + "\031APP_PROFILE_MISCONFIGURED\020\003\022\025\n" + + "\021PERMISSION_DENIED\020\004\022\023\n" + + "\017SCHEMA_MISMATCH\020\005\022#\n" + + "\037IN_TRANSIT_LOCATION_RESTRICTION\020\006\022\"\n" + + "\036VERTEX_AI_LOCATION_RESTRICTION\020\007\"\215\006\n" + "\022CloudStorageConfig\022\023\n" + "\006bucket\030\001 \001(\tB\003\340A\002\022\034\n" + "\017filename_prefix\030\002 \001(\tB\003\340A\001\022\034\n" + "\017filename_suffix\030\003 \001(\tB\003\340A\001\022%\n" + "\030filename_datetime_format\030\n" + " \001(\tB\003\340A\001\022K\n" - + "\013text_config\030\004" - + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" - + "\013avro_config\030\005" - + " \001(\0132/.google.pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + + "\013text_config\030\004 \001(\0132/.goog" + + "le.pubsub.v1.CloudStorageConfig.TextConfigB\003\340A\001H\000\022K\n" + + "\013avro_config\030\005 \001(\0132/.google." + + "pubsub.v1.CloudStorageConfig.AvroConfigB\003\340A\001H\000\0224\n" + "\014max_duration\030\006" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tmax_bytes\030\007 \001(\003B\003\340A\001\022\031\n" @@ -859,8 +881,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" + "\"pubsub.googleapis.com/Subscription\"\214\001\n" + "\031UpdateSubscriptionRequest\0229\n" - + "\014subscription\030\001" - + " \001(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\002\0224\n" + + "\014subscription\030\001 " + + "\001(\0132\036.google.pubsub.v1.SubscriptionB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\221\001\n" + "\030ListSubscriptionsRequest\022D\n" @@ -912,168 +934,179 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025StreamingPullResponse\022A\n" + "\021received_messages\030\001" + " \003(\0132!.google.pubsub.v1.ReceivedMessageB\003\340A\001\022f\n" - + "\030acknowledge_confirmation\030\005 \001(\0132?" - + ".google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationB\003\340A\001\022t\n" - + " modify_ack_deadline_confirmation\030\003 \001(\0132E.google." - + "pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationB\003\340A\001\022d\n" - + "\027subscription_properties\030\004 \001(\0132>.google.pubsub.v1.S" - + "treamingPullResponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n" - + "\027AcknowledgeConfirmation\022\024\n" - + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" - + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n" - + "\021unordered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n" - + "\030temporary_failed_ack_ids\030\004 \003(\tB\003\340A\001\032", - "z\n" - + "\035ModifyAckDeadlineConfirmation\022\024\n" - + "\007ack_ids\030\001 \003(\tB\003\340A\001\022\034\n" - + "\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022%\n" - + "\030temporary_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n" - + "\026SubscriptionProperties\022*\n" - + "\035exactly_once_delivery_enabled\030\001 \001(\010B\003\340A\001\022%\n" - + "\030message_ordering_enabled\030\002 \001(\010B\003\340A\001\"\201\003\n" - + "\025CreateSnapshotRequest\0224\n" - + "\004name\030\001 \001(\tB&\340A\002\372A \n" - + "\036pubsub.googleapis.com/Snapshot\022@\n" - + "\014subscription\030\002 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022H\n" - + "\006labels\030\003 \003(\01323.goo" - + "gle.pubsub.v1.CreateSnapshotRequest.LabelsEntryB\003\340A\001\022J\n" - + "\004tags\030\004 \003(\01321.google.pubsub.v1.CreateSnapshotRequest.TagsEntryB" - + "\t\340A\004\340A\005\340A\001\032-\n" - + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\032+\n" - + "\tTagsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\200\001\n" - + "\025UpdateSnapshotRequest\0221\n" - + "\010snapshot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003\340A\002\0224\n" - + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\326\002\n" - + "\010Snapshot\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\001\0222\n" - + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" - + "\033pubsub.googleapis.com/Topic\0224\n" - + "\013expire_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" - + "\006labels\030\004" - + " \003(\0132&.google.pubsub.v1.Snapshot.LabelsEntryB\003\340A\001\032-\n" - + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001:a\352A^\n" - + "\036pubsub.googleapis.com/Snapshot\022\'projects/{project}/snapshots/{snapshot}*" - + "\tsnapshots2\010snapshot\"N\n" - + "\022GetSnapshotRequest\0228\n" - + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" - + "\036pubsub.googleapis.com/Snapshot\"\215\001\n" - + "\024ListSnapshotsRequest\022D\n" - + "\007project\030\001 \001(\tB3\340A\002\372A-\n" - + "+cloudresourcemanager.googleapis.com/Project\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"i\n" - + "\025ListSnapshotsResponse\0222\n" - + "\tsnapshots\030\001 \003(\0132\032.google.pubsub.v1.SnapshotB\003\340A\001\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"Q\n" - + "\025DeleteSnapshotRequest\0228\n" - + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n" - + "\036pubsub.googleapis.com/Snapshot\"\306\001\n" - + "\013SeekRequest\022@\n" - + "\014subscription\030\001 \001(\tB*\340A\002\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022/\n" - + "\004time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\000\022:\n" - + "\010snapshot\030\003 \001(\tB&\340A\001\372A \n" - + "\036pubsub.googleapis.com/SnapshotH\000B\010\n" - + "\006target\"\016\n" - + "\014SeekResponse2\270\013\n" - + "\tPublisher\022q\n" - + "\013CreateTopic\022\027.google.pubsub.v1.Topic\032\027.google.pubsub.v1" - + ".Topic\"0\332A\004name\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001*\022\221\001\n" - + "\013UpdateTopic\022$.google.pubsub.v1.UpdateTopicRequest\032\027.google." - + "pubsub.v1.Topic\"C\332A\021topic,update_mask\202\323\344" - + "\223\002)2$/v1/{topic.name=projects/*/topics/*}:\001*\022\223\001\n" - + "\007Publish\022 .google.pubsub.v1.PublishRequest\032!.google.pubsub.v1.PublishRes" - + "ponse\"C\332A\016topic,messages\202\323\344\223\002,\"\'/v1/{topic=projects/*/topics/*}:publish:\001*\022w\n" - + "\010GetTopic\022!.google.pubsub.v1.GetTopicReques" - + "t\032\027.google.pubsub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=projects/*/topics/*}\022\212\001\n\n" - + "ListTopics\022#.google.pubsub.v1.ListTopicsRequest\032$.google.pubsub.v1.ListTopicsRes" - + "ponse\"1\332A\007project\202\323\344\223\002!\022\037/v1/{project=projects/*}/topics\022\272\001\n" - + "\026ListTopicSubscriptions\022/.google.pubsub.v1.ListTopicSubscrip" - + "tionsRequest\0320.google.pubsub.v1.ListTopi" - + "cSubscriptionsResponse\"=\332A\005topic\202\323\344\223\002/\022-" - + "/v1/{topic=projects/*/topics/*}/subscriptions\022\252\001\n" - + "\022ListTopicSnapshots\022+.google.pubsub.v1.ListTopicSnapshotsRequest\032,.goog" - + "le.pubsub.v1.ListTopicSnapshotsResponse\"" - + "9\332A\005topic\202\323\344\223\002+\022)/v1/{topic=projects/*/topics/*}/snapshots\022|\n" - + "\013DeleteTopic\022$.google.pubsub.v1.DeleteTopicRequest\032\026.google" - + ".protobuf.Empty\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/topics/*}\022\255\001\n" - + "\022DetachSubscription\022+.google.pubsub.v1.DetachSubscri" - + "ptionRequest\032,.google.pubsub.v1.DetachSu" - + "bscriptionResponse\"<\202\323\344\223\0026\"4/v1/{subscri" - + "ption=projects/*/subscriptions/*}:detach" - + "\032p\312A\025pubsub.googleapis.com\322AUhttps://www" - + ".googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/pubsub2\322\025\n\n" - + "Subscriber\022\264\001\n" - + "\022CreateSubscription\022\036.google.pubsub.v1.Subscription\032\036.google.pubsub" - + ".v1.Subscription\"^\332A+name,topic,push_con" - + "fig,ack_deadline_seconds\202\323\344\223\002*\032%/v1/{name=projects/*/subscriptions/*}:\001*\022\241\001\n" - + "\017GetSubscription\022(.google.pubsub.v1.GetSubsc" - + "riptionRequest\032\036.google.pubsub.v1.Subscr" - + "iption\"D\332A\014subscription\202\323\344\223\002/\022-/v1/{subscription=projects/*/subscriptions/*}\022\273\001\n" - + "\022UpdateSubscription\022+.google.pubsub.v1.U" - + "pdateSubscriptionRequest\032\036.google.pubsub" - + ".v1.Subscription\"X\332A\030subscription,update" - + "_mask\202\323\344\223\002722/v1/{subscription.name=projects/*/subscriptions/*}:\001*\022\246\001\n" - + "\021ListSubscriptions\022*.google.pubsub.v1.ListSubscrip" - + "tionsRequest\032+.google.pubsub.v1.ListSubs" - + "criptionsResponse\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=projects/*}/subscriptions\022\237\001\n" - + "\022DeleteSubscription\022+.google.pubsub.v1.De" - + "leteSubscriptionRequest\032\026.google.protobu" - + "f.Empty\"D\332A\014subscription\202\323\344\223\002/*-/v1/{sub" - + "scription=projects/*/subscriptions/*}\022\317\001\n" - + "\021ModifyAckDeadline\022*.google.pubsub.v1.M" - + "odifyAckDeadlineRequest\032\026.google.protobu" - + "f.Empty\"v\332A)subscription,ack_ids,ack_dea" - + "dline_seconds\202\323\344\223\002D\"?/v1/{subscription=p" - + "rojects/*/subscriptions/*}:modifyAckDeadline:\001*\022\250\001\n" - + "\013Acknowledge\022$.google.pubsub.v1.AcknowledgeRequest\032\026.google.protobuf." - + "Empty\"[\332A\024subscription,ack_ids\202\323\344\223\002>\"9/v" - + "1/{subscription=projects/*/subscriptions/*}:acknowledge:\001*\022\320\001\n" - + "\004Pull\022\035.google.pubsub.v1.PullRequest\032\036.google.pubsub.v1.Pu" - + "llResponse\"\210\001\332A,subscription,return_imme" - + "diately,max_messages\332A\031subscription,max_" - + "messages\202\323\344\223\0027\"2/v1/{subscription=projects/*/subscriptions/*}:pull:\001*\022f\n\r" - + "StreamingPull\022&.google.pubsub.v1.StreamingPullR" - + "equest\032\'.google.pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273\001\n" - + "\020ModifyPushConfig\022).google.pubsub.v1.ModifyPushConfigRequest\032\026." - + "google.protobuf.Empty\"d\332A\030subscription,p" - + "ush_config\202\323\344\223\002C\">/v1/{subscription=proj" - + "ects/*/subscriptions/*}:modifyPushConfig:\001*\022\211\001\n" - + "\013GetSnapshot\022$.google.pubsub.v1.GetSnapshotRequest\032\032.google.pubsub.v1.Sna" - + "pshot\"8\332A\010snapshot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snapshots/*}\022\226\001\n\r" - + "ListSnapshots\022&.google.pubsub.v1.ListSnapshotsReques" - + "t\032\'.google.pubsub.v1.ListSnapshotsRespon" - + "se\"4\332A\007project\202\323\344\223\002$\022\"/v1/{project=projects/*}/snapshots\022\227\001\n" - + "\016CreateSnapshot\022\'.google.pubsub.v1.CreateSnapshotRequest\032\032.g" - + "oogle.pubsub.v1.Snapshot\"@\332A\021name,subscr" - + "iption\202\323\344\223\002&\032!/v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n" - + "\016UpdateSnapshot\022\'.google.pubsub.v1.UpdateSnapshotRequest\032\032.google." - + "pubsub.v1.Snapshot\"L\332A\024snapshot,update_m" - + "ask\202\323\344\223\002/2*/v1/{snapshot.name=projects/*/snapshots/*}:\001*\022\213\001\n" - + "\016DeleteSnapshot\022\'.google.pubsub.v1.DeleteSnapshotRequest\032\026.g" - + "oogle.protobuf.Empty\"8\332A\010snapshot\202\323\344\223\002\'*" - + "%/v1/{snapshot=projects/*/snapshots/*}\022\204\001\n" - + "\004Seek\022\035.google.pubsub.v1.SeekRequest\032\036" - + ".google.pubsub.v1.SeekResponse\"=\202\323\344\223\0027\"2" - + "/v1/{subscription=projects/*/subscriptio" - + "ns/*}:seek:\001*\032p\312A\025pubsub.googleapis.com\322" - + "AUhttps://www.googleapis.com/auth/cloud-" - + "platform,https://www.googleapis.com/auth/pubsubB\247\003\n" - + "\024com.google.pubsub.v1B\013PubsubProtoP\001Z5cloud.google.com/go/pubsub/v2/a" - + "piv1/pubsubpb;pubsubpb\252\002\026Google.Cloud.Pu" - + "bSub.V1\312\002\026Google\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSub::V1\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/l" - + "ocations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\177\n" - + "#analyticshub.googleapis.com/Listing\022Xprojects/{proje" - + "ct}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing}b\006proto3" + + "\030acknowl", + "edge_confirmation\030\005 \001(\0132?.google.pubsub." + + "v1.StreamingPullResponse.AcknowledgeConf" + + "irmationB\003\340A\001\022t\n modify_ack_deadline_con" + + "firmation\030\003 \001(\0132E.google.pubsub.v1.Strea" + + "mingPullResponse.ModifyAckDeadlineConfir" + + "mationB\003\340A\001\022d\n\027subscription_properties\030\004" + + " \001(\0132>.google.pubsub.v1.StreamingPullRes" + + "ponse.SubscriptionPropertiesB\003\340A\001\032\224\001\n\027Ac" + + "knowledgeConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003" + + "\340A\001\022\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022\036\n\021uno" + + "rdered_ack_ids\030\003 \003(\tB\003\340A\001\022%\n\030temporary_f" + + "ailed_ack_ids\030\004 \003(\tB\003\340A\001\032z\n\035ModifyAckDea" + + "dlineConfirmation\022\024\n\007ack_ids\030\001 \003(\tB\003\340A\001\022" + + "\034\n\017invalid_ack_ids\030\002 \003(\tB\003\340A\001\022%\n\030tempora" + + "ry_failed_ack_ids\030\003 \003(\tB\003\340A\001\032k\n\026Subscrip" + + "tionProperties\022*\n\035exactly_once_delivery_" + + "enabled\030\001 \001(\010B\003\340A\001\022%\n\030message_ordering_e" + + "nabled\030\002 \001(\010B\003\340A\001\"\201\003\n\025CreateSnapshotRequ" + + "est\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036pubsub.google" + + "apis.com/Snapshot\022@\n\014subscription\030\002 \001(\tB" + + "*\340A\002\372A$\n\"pubsub.googleapis.com/Subscript" + + "ion\022H\n\006labels\030\003 \003(\01323.google.pubsub.v1.C" + + "reateSnapshotRequest.LabelsEntryB\003\340A\001\022J\n" + + "\004tags\030\004 \003(\01321.google.pubsub.v1.CreateSna" + + "pshotRequest.TagsEntryB\t\340A\004\340A\005\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"\200\001\n\025UpdateSnapshotRequest\0221\n\010snaps" + + "hot\030\001 \001(\0132\032.google.pubsub.v1.SnapshotB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"\326\002\n\010Snapshot\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\001\0222\n\005topic\030\002 \001(\tB#\340A\001\372A\035\n\033pubsub." + + "googleapis.com/Topic\0224\n\013expire_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n\006la" + + "bels\030\004 \003(\0132&.google.pubsub.v1.Snapshot.L" + + "abelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:a\352A^\n\036pubsub.goog" + + "leapis.com/Snapshot\022\'projects/{project}/" + + "snapshots/{snapshot}*\tsnapshots2\010snapsho" + + "t\"N\n\022GetSnapshotRequest\0228\n\010snapshot\030\001 \001(" + + "\tB&\340A\002\372A \n\036pubsub.googleapis.com/Snapsho" + + "t\"\215\001\n\024ListSnapshotsRequest\022D\n\007project\030\001 " + + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" + + "apis.com/Project\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" + + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"i\n\025ListSnapsho" + + "tsResponse\0222\n\tsnapshots\030\001 \003(\0132\032.google.p" + + "ubsub.v1.SnapshotB\003\340A\001\022\034\n\017next_page_toke" + + "n\030\002 \001(\tB\003\340A\001\"Q\n\025DeleteSnapshotRequest\0228\n" + + "\010snapshot\030\001 \001(\tB&\340A\002\372A \n\036pubsub.googleap" + + "is.com/Snapshot\"\306\001\n\013SeekRequest\022@\n\014subsc" + + "ription\030\001 \001(\tB*\340A\002\372A$\n\"pubsub.googleapis" + + ".com/Subscription\022/\n\004time\030\002 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\001H\000\022:\n\010snapshot\030\003" + + " \001(\tB&\340A\001\372A \n\036pubsub.googleapis.com/Snap" + + "shotH\000B\010\n\006target\"\016\n\014SeekResponse2\270\013\n\tPub" + + "lisher\022q\n\013CreateTopic\022\027.google.pubsub.v1" + + ".Topic\032\027.google.pubsub.v1.Topic\"0\332A\004name" + + "\202\323\344\223\002#\032\036/v1/{name=projects/*/topics/*}:\001" + + "*\022\221\001\n\013UpdateTopic\022$.google.pubsub.v1.Upd" + + "ateTopicRequest\032\027.google.pubsub.v1.Topic" + + "\"C\332A\021topic,update_mask\202\323\344\223\002)2$/v1/{topic" + + ".name=projects/*/topics/*}:\001*\022\223\001\n\007Publis" + + "h\022 .google.pubsub.v1.PublishRequest\032!.go" + + "ogle.pubsub.v1.PublishResponse\"C\332A\016topic" + + ",messages\202\323\344\223\002,\"\'/v1/{topic=projects/*/t" + + "opics/*}:publish:\001*\022w\n\010GetTopic\022!.google" + + ".pubsub.v1.GetTopicRequest\032\027.google.pubs" + + "ub.v1.Topic\"/\332A\005topic\202\323\344\223\002!\022\037/v1/{topic=" + + "projects/*/topics/*}\022\212\001\n\nListTopics\022#.go" + + "ogle.pubsub.v1.ListTopicsRequest\032$.googl" + + "e.pubsub.v1.ListTopicsResponse\"1\332A\007proje" + + "ct\202\323\344\223\002!\022\037/v1/{project=projects/*}/topic" + + "s\022\272\001\n\026ListTopicSubscriptions\022/.google.pu" + + "bsub.v1.ListTopicSubscriptionsRequest\0320." + + "google.pubsub.v1.ListTopicSubscriptionsR" + + "esponse\"=\332A\005topic\202\323\344\223\002/\022-/v1/{topic=proj" + + "ects/*/topics/*}/subscriptions\022\252\001\n\022ListT" + + "opicSnapshots\022+.google.pubsub.v1.ListTop" + + "icSnapshotsRequest\032,.google.pubsub.v1.Li" + + "stTopicSnapshotsResponse\"9\332A\005topic\202\323\344\223\002+" + + "\022)/v1/{topic=projects/*/topics/*}/snapsh" + + "ots\022|\n\013DeleteTopic\022$.google.pubsub.v1.De" + + "leteTopicRequest\032\026.google.protobuf.Empty" + + "\"/\332A\005topic\202\323\344\223\002!*\037/v1/{topic=projects/*/" + + "topics/*}\022\255\001\n\022DetachSubscription\022+.googl" + + "e.pubsub.v1.DetachSubscriptionRequest\032,." + + "google.pubsub.v1.DetachSubscriptionRespo" + + "nse\"<\202\323\344\223\0026\"4/v1/{subscription=projects/" + + "*/subscriptions/*}:detach\032p\312A\025pubsub.goo" + + "gleapis.com\322AUhttps://www.googleapis.com" + + "/auth/cloud-platform,https://www.googlea" + + "pis.com/auth/pubsub2\322\025\n\nSubscriber\022\264\001\n\022C" + + "reateSubscription\022\036.google.pubsub.v1.Sub" + + "scription\032\036.google.pubsub.v1.Subscriptio" + + "n\"^\332A+name,topic,push_config,ack_deadlin" + + "e_seconds\202\323\344\223\002*\032%/v1/{name=projects/*/su" + + "bscriptions/*}:\001*\022\241\001\n\017GetSubscription\022(." + + "google.pubsub.v1.GetSubscriptionRequest\032" + + "\036.google.pubsub.v1.Subscription\"D\332A\014subs" + + "cription\202\323\344\223\002/\022-/v1/{subscription=projec" + + "ts/*/subscriptions/*}\022\273\001\n\022UpdateSubscrip" + + "tion\022+.google.pubsub.v1.UpdateSubscripti" + + "onRequest\032\036.google.pubsub.v1.Subscriptio" + + "n\"X\332A\030subscription,update_mask\202\323\344\223\002722/v" + + "1/{subscription.name=projects/*/subscrip" + + "tions/*}:\001*\022\246\001\n\021ListSubscriptions\022*.goog" + + "le.pubsub.v1.ListSubscriptionsRequest\032+." + + "google.pubsub.v1.ListSubscriptionsRespon" + + "se\"8\332A\007project\202\323\344\223\002(\022&/v1/{project=proje" + + "cts/*}/subscriptions\022\237\001\n\022DeleteSubscript" + + "ion\022+.google.pubsub.v1.DeleteSubscriptio" + + "nRequest\032\026.google.protobuf.Empty\"D\332A\014sub" + + "scription\202\323\344\223\002/*-/v1/{subscription=proje" + + "cts/*/subscriptions/*}\022\317\001\n\021ModifyAckDead" + + "line\022*.google.pubsub.v1.ModifyAckDeadlin" + + "eRequest\032\026.google.protobuf.Empty\"v\332A)sub" + + "scription,ack_ids,ack_deadline_seconds\202\323" + + "\344\223\002D\"?/v1/{subscription=projects/*/subsc" + + "riptions/*}:modifyAckDeadline:\001*\022\250\001\n\013Ack" + + "nowledge\022$.google.pubsub.v1.AcknowledgeR" + + "equest\032\026.google.protobuf.Empty\"[\332A\024subsc" + + "ription,ack_ids\202\323\344\223\002>\"9/v1/{subscription" + + "=projects/*/subscriptions/*}:acknowledge" + + ":\001*\022\320\001\n\004Pull\022\035.google.pubsub.v1.PullRequ" + + "est\032\036.google.pubsub.v1.PullResponse\"\210\001\332A" + + ",subscription,return_immediately,max_mes" + + "sages\332A\031subscription,max_messages\202\323\344\223\0027\"" + + "2/v1/{subscription=projects/*/subscripti" + + "ons/*}:pull:\001*\022f\n\rStreamingPull\022&.google" + + ".pubsub.v1.StreamingPullRequest\032\'.google" + + ".pubsub.v1.StreamingPullResponse\"\000(\0010\001\022\273" + + "\001\n\020ModifyPushConfig\022).google.pubsub.v1.M" + + "odifyPushConfigRequest\032\026.google.protobuf" + + ".Empty\"d\332A\030subscription,push_config\202\323\344\223\002" + + "C\">/v1/{subscription=projects/*/subscrip" + + "tions/*}:modifyPushConfig:\001*\022\211\001\n\013GetSnap" + + "shot\022$.google.pubsub.v1.GetSnapshotReque" + + "st\032\032.google.pubsub.v1.Snapshot\"8\332A\010snaps" + + "hot\202\323\344\223\002\'\022%/v1/{snapshot=projects/*/snap" + + "shots/*}\022\226\001\n\rListSnapshots\022&.google.pubs" + + "ub.v1.ListSnapshotsRequest\032\'.google.pubs" + + "ub.v1.ListSnapshotsResponse\"4\332A\007project\202" + + "\323\344\223\002$\022\"/v1/{project=projects/*}/snapshot" + + "s\022\227\001\n\016CreateSnapshot\022\'.google.pubsub.v1." + + "CreateSnapshotRequest\032\032.google.pubsub.v1" + + ".Snapshot\"@\332A\021name,subscription\202\323\344\223\002&\032!/" + + "v1/{name=projects/*/snapshots/*}:\001*\022\243\001\n\016" + + "UpdateSnapshot\022\'.google.pubsub.v1.Update" + + "SnapshotRequest\032\032.google.pubsub.v1.Snaps" + + "hot\"L\332A\024snapshot,update_mask\202\323\344\223\002/2*/v1/" + + "{snapshot.name=projects/*/snapshots/*}:\001" + + "*\022\213\001\n\016DeleteSnapshot\022\'.google.pubsub.v1." + + "DeleteSnapshotRequest\032\026.google.protobuf." + + "Empty\"8\332A\010snapshot\202\323\344\223\002\'*%/v1/{snapshot=" + + "projects/*/snapshots/*}\022\204\001\n\004Seek\022\035.googl" + + "e.pubsub.v1.SeekRequest\032\036.google.pubsub." + + "v1.SeekResponse\"=\202\323\344\223\0027\"2/v1/{subscripti" + + "on=projects/*/subscriptions/*}:seek:\001*\032p" + + "\312A\025pubsub.googleapis.com\322AUhttps://www.g" + + "oogleapis.com/auth/cloud-platform,https:" + + "//www.googleapis.com/auth/pubsubB\247\003\n\024com" + + ".google.pubsub.v1B\013PubsubProtoP\001Z5cloud." + + "google.com/go/pubsub/v2/apiv1/pubsubpb;p" + + "ubsubpb\252\002\026Google.Cloud.PubSub.V1\312\002\026Googl" + + "e\\Cloud\\PubSub\\V1\352\002\031Google::Cloud::PubSu" + + "b::V1\352Ax\n!cloudkms.googleapis.com/Crypto" + + "Key\022Sprojects/{project}/locations/{locat" + + "ion}/keyRings/{key_ring}/cryptoKeys/{cry" + + "pto_key}\352A\177\n#analyticshub.googleapis.com" + + "/Listing\022Xprojects/{project}/locations/{" + + "location}/dataExchanges/{data_exchange}/" + + "listings/{listing}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1511,6 +1544,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PushConfig", "BigqueryConfig", "CloudStorageConfig", + "BigtableConfig", "AckDeadlineSeconds", "RetainAckedMessages", "MessageRetentionDuration", @@ -1631,8 +1665,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UseTableSchema", "ServiceAccountEmail", }); + internal_static_google_pubsub_v1_BigtableConfig_descriptor = getDescriptor().getMessageType(29); + internal_static_google_pubsub_v1_BigtableConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_pubsub_v1_BigtableConfig_descriptor, + new java.lang.String[] { + "Table", "AppProfileId", "ServiceAccountEmail", "WriteMetadata", "State", + }); internal_static_google_pubsub_v1_CloudStorageConfig_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(30); internal_static_google_pubsub_v1_CloudStorageConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_CloudStorageConfig_descriptor, @@ -1665,7 +1706,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WriteMetadata", "UseTopicSchema", }); internal_static_google_pubsub_v1_ReceivedMessage_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(31); internal_static_google_pubsub_v1_ReceivedMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ReceivedMessage_descriptor, @@ -1673,7 +1714,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AckId", "Message", "DeliveryAttempt", }); internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(32); internal_static_google_pubsub_v1_GetSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_GetSubscriptionRequest_descriptor, @@ -1681,7 +1722,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(33); internal_static_google_pubsub_v1_UpdateSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSubscriptionRequest_descriptor, @@ -1689,7 +1730,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "UpdateMask", }); internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(34); internal_static_google_pubsub_v1_ListSubscriptionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsRequest_descriptor, @@ -1697,7 +1738,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(35); internal_static_google_pubsub_v1_ListSubscriptionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSubscriptionsResponse_descriptor, @@ -1705,7 +1746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscriptions", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(36); internal_static_google_pubsub_v1_DeleteSubscriptionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSubscriptionRequest_descriptor, @@ -1713,21 +1754,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", }); internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(37); internal_static_google_pubsub_v1_ModifyPushConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyPushConfigRequest_descriptor, new java.lang.String[] { "Subscription", "PushConfig", }); - internal_static_google_pubsub_v1_PullRequest_descriptor = getDescriptor().getMessageType(37); + internal_static_google_pubsub_v1_PullRequest_descriptor = getDescriptor().getMessageType(38); internal_static_google_pubsub_v1_PullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PullRequest_descriptor, new java.lang.String[] { "Subscription", "ReturnImmediately", "MaxMessages", }); - internal_static_google_pubsub_v1_PullResponse_descriptor = getDescriptor().getMessageType(38); + internal_static_google_pubsub_v1_PullResponse_descriptor = getDescriptor().getMessageType(39); internal_static_google_pubsub_v1_PullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_PullResponse_descriptor, @@ -1735,7 +1776,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReceivedMessages", }); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(40); internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ModifyAckDeadlineRequest_descriptor, @@ -1743,7 +1784,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", "AckDeadlineSeconds", }); internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(41); internal_static_google_pubsub_v1_AcknowledgeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_AcknowledgeRequest_descriptor, @@ -1751,7 +1792,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "AckIds", }); internal_static_google_pubsub_v1_StreamingPullRequest_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(42); internal_static_google_pubsub_v1_StreamingPullRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullRequest_descriptor, @@ -1767,7 +1808,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProtocolVersion", }); internal_static_google_pubsub_v1_StreamingPullResponse_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(43); internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_StreamingPullResponse_descriptor, @@ -1802,7 +1843,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactlyOnceDeliveryEnabled", "MessageOrderingEnabled", }); internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(44); internal_static_google_pubsub_v1_CreateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_CreateSnapshotRequest_descriptor, @@ -1826,14 +1867,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(45); internal_static_google_pubsub_v1_UpdateSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_UpdateSnapshotRequest_descriptor, new java.lang.String[] { "Snapshot", "UpdateMask", }); - internal_static_google_pubsub_v1_Snapshot_descriptor = getDescriptor().getMessageType(45); + internal_static_google_pubsub_v1_Snapshot_descriptor = getDescriptor().getMessageType(46); internal_static_google_pubsub_v1_Snapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_Snapshot_descriptor, @@ -1849,7 +1890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(47); internal_static_google_pubsub_v1_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_GetSnapshotRequest_descriptor, @@ -1857,7 +1898,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshot", }); internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(48); internal_static_google_pubsub_v1_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsRequest_descriptor, @@ -1865,7 +1906,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "PageSize", "PageToken", }); internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageType(48); + getDescriptor().getMessageType(49); internal_static_google_pubsub_v1_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_ListSnapshotsResponse_descriptor, @@ -1873,21 +1914,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageType(49); + getDescriptor().getMessageType(50); internal_static_google_pubsub_v1_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_DeleteSnapshotRequest_descriptor, new java.lang.String[] { "Snapshot", }); - internal_static_google_pubsub_v1_SeekRequest_descriptor = getDescriptor().getMessageType(50); + internal_static_google_pubsub_v1_SeekRequest_descriptor = getDescriptor().getMessageType(51); internal_static_google_pubsub_v1_SeekRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_SeekRequest_descriptor, new java.lang.String[] { "Subscription", "Time", "Snapshot", "Target", }); - internal_static_google_pubsub_v1_SeekResponse_descriptor = getDescriptor().getMessageType(51); + internal_static_google_pubsub_v1_SeekResponse_descriptor = getDescriptor().getMessageType(52); internal_static_google_pubsub_v1_SeekResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_pubsub_v1_SeekResponse_descriptor, new java.lang.String[] {}); diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java index 54de83b875a7..79c5b0775c19 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequest.java @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2098 + * google/pubsub/v1/pubsub.proto;l=2180 * @return The returnImmediately. */ @java.lang.Override @@ -673,7 +673,7 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2098 + * google/pubsub/v1/pubsub.proto;l=2180 * @return The returnImmediately. */ @java.lang.Override @@ -700,7 +700,7 @@ public boolean getReturnImmediately() { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2098 + * google/pubsub/v1/pubsub.proto;l=2180 * @param value The returnImmediately to set. * @return This builder for chaining. */ @@ -731,7 +731,7 @@ public Builder setReturnImmediately(boolean value) { * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2098 + * google/pubsub/v1/pubsub.proto;l=2180 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java index ab3fd9f9d60b..1346ad309c4d 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/PullRequestOrBuilder.java @@ -75,7 +75,7 @@ public interface PullRequestOrBuilder * * * @deprecated google.pubsub.v1.PullRequest.return_immediately is deprecated. See - * google/pubsub/v1/pubsub.proto;l=2098 + * google/pubsub/v1/pubsub.proto;l=2180 * @return The returnImmediately. */ @java.lang.Deprecated diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java index 867496f2f823..ab7ef789dfd4 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/Subscription.java @@ -1458,6 +1458,68 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB : cloudStorageConfig_; } + public static final int BIGTABLE_CONFIG_FIELD_NUMBER = 27; + private com.google.pubsub.v1.BigtableConfig bigtableConfig_; + + /** + * + * + *
      +   * Optional. If delivery to Bigtable is used with this subscription, this
      +   * field is used to configure it.
      +   * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigtableConfig field is set. + */ + @java.lang.Override + public boolean hasBigtableConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
      +   * Optional. If delivery to Bigtable is used with this subscription, this
      +   * field is used to configure it.
      +   * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigtableConfig. + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfig getBigtableConfig() { + return bigtableConfig_ == null + ? com.google.pubsub.v1.BigtableConfig.getDefaultInstance() + : bigtableConfig_; + } + + /** + * + * + *
      +   * Optional. If delivery to Bigtable is used with this subscription, this
      +   * field is used to configure it.
      +   * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.pubsub.v1.BigtableConfigOrBuilder getBigtableConfigOrBuilder() { + return bigtableConfig_ == null + ? com.google.pubsub.v1.BigtableConfig.getDefaultInstance() + : bigtableConfig_; + } + public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER = 5; private int ackDeadlineSeconds_ = 0; @@ -1542,7 +1604,7 @@ public boolean getRetainAckedMessages() { */ @java.lang.Override public boolean hasMessageRetentionDuration() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1748,7 +1810,7 @@ public boolean getEnableMessageOrdering() { */ @java.lang.Override public boolean hasExpirationPolicy() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1887,7 +1949,7 @@ public com.google.protobuf.ByteString getFilterBytes() { */ @java.lang.Override public boolean hasDeadLetterPolicy() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1966,7 +2028,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild */ @java.lang.Override public boolean hasRetryPolicy() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2095,7 +2157,7 @@ public boolean getEnableExactlyOnceDelivery() { */ @java.lang.Override public boolean hasTopicMessageRetentionDuration() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2209,7 +2271,7 @@ public com.google.pubsub.v1.Subscription.State getState() { */ @java.lang.Override public boolean hasAnalyticsHubSubscriptionInfo() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -2509,7 +2571,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (retainAckedMessages_ != false) { output.writeBool(7, retainAckedMessages_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(8, getMessageRetentionDuration()); } com.google.protobuf.GeneratedMessage.serializeStringMapTo( @@ -2517,16 +2579,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableMessageOrdering_ != false) { output.writeBool(10, enableMessageOrdering_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(11, getExpirationPolicy()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessage.writeString(output, 12, filter_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(13, getDeadLetterPolicy()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(14, getRetryPolicy()); } if (detached_ != false) { @@ -2535,7 +2597,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableExactlyOnceDelivery_ != false) { output.writeBool(16, enableExactlyOnceDelivery_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(17, getTopicMessageRetentionDuration()); } if (((bitField0_ & 0x00000002) != 0)) { @@ -2547,7 +2609,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(22, getCloudStorageConfig()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(23, getAnalyticsHubSubscriptionInfo()); } for (int i = 0; i < messageTransforms_.size(); i++) { @@ -2555,6 +2617,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 26); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(27, getBigtableConfig()); + } getUnknownFields().writeTo(output); } @@ -2579,7 +2644,7 @@ public int getSerializedSize() { if (retainAckedMessages_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, retainAckedMessages_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getMessageRetentionDuration()); @@ -2597,16 +2662,16 @@ public int getSerializedSize() { if (enableMessageOrdering_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enableMessageOrdering_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExpirationPolicy()); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(12, filter_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeadLetterPolicy()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getRetryPolicy()); } if (detached_ != false) { @@ -2615,7 +2680,7 @@ public int getSerializedSize() { if (enableExactlyOnceDelivery_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, enableExactlyOnceDelivery_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 17, getTopicMessageRetentionDuration()); @@ -2629,7 +2694,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getCloudStorageConfig()); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 23, getAnalyticsHubSubscriptionInfo()); @@ -2648,6 +2713,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, tags__); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getBigtableConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2677,6 +2745,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCloudStorageConfig()) { if (!getCloudStorageConfig().equals(other.getCloudStorageConfig())) return false; } + if (hasBigtableConfig() != other.hasBigtableConfig()) return false; + if (hasBigtableConfig()) { + if (!getBigtableConfig().equals(other.getBigtableConfig())) return false; + } if (getAckDeadlineSeconds() != other.getAckDeadlineSeconds()) return false; if (getRetainAckedMessages() != other.getRetainAckedMessages()) return false; if (hasMessageRetentionDuration() != other.hasMessageRetentionDuration()) return false; @@ -2741,6 +2813,10 @@ public int hashCode() { hash = (37 * hash) + CLOUD_STORAGE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCloudStorageConfig().hashCode(); } + if (hasBigtableConfig()) { + hash = (37 * hash) + BIGTABLE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBigtableConfig().hashCode(); + } hash = (37 * hash) + ACK_DEADLINE_SECONDS_FIELD_NUMBER; hash = (53 * hash) + getAckDeadlineSeconds(); hash = (37 * hash) + RETAIN_ACKED_MESSAGES_FIELD_NUMBER; @@ -2962,6 +3038,7 @@ private void maybeForceBuilderInitialization() { internalGetPushConfigFieldBuilder(); internalGetBigqueryConfigFieldBuilder(); internalGetCloudStorageConfigFieldBuilder(); + internalGetBigtableConfigFieldBuilder(); internalGetMessageRetentionDurationFieldBuilder(); internalGetExpirationPolicyFieldBuilder(); internalGetDeadLetterPolicyFieldBuilder(); @@ -2993,6 +3070,11 @@ public Builder clear() { cloudStorageConfigBuilder_.dispose(); cloudStorageConfigBuilder_ = null; } + bigtableConfig_ = null; + if (bigtableConfigBuilder_ != null) { + bigtableConfigBuilder_.dispose(); + bigtableConfigBuilder_ = null; + } ackDeadlineSeconds_ = 0; retainAckedMessages_ = false; messageRetentionDuration_ = null; @@ -3037,7 +3119,7 @@ public Builder clear() { messageTransforms_ = null; messageTransformsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); internalGetMutableTags().clear(); return this; } @@ -3075,9 +3157,9 @@ public com.google.pubsub.v1.Subscription buildPartial() { private void buildPartialRepeatedFields(com.google.pubsub.v1.Subscription result) { if (messageTransformsBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { messageTransforms_ = java.util.Collections.unmodifiableList(messageTransforms_); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); } result.messageTransforms_ = messageTransforms_; } else { @@ -3111,67 +3193,72 @@ private void buildPartial0(com.google.pubsub.v1.Subscription result) { to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.ackDeadlineSeconds_ = ackDeadlineSeconds_; + result.bigtableConfig_ = + bigtableConfigBuilder_ == null ? bigtableConfig_ : bigtableConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.retainAckedMessages_ = retainAckedMessages_; + result.ackDeadlineSeconds_ = ackDeadlineSeconds_; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.retainAckedMessages_ = retainAckedMessages_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.messageRetentionDuration_ = messageRetentionDurationBuilder_ == null ? messageRetentionDuration_ : messageRetentionDurationBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.enableMessageOrdering_ = enableMessageOrdering_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.expirationPolicy_ = expirationPolicyBuilder_ == null ? expirationPolicy_ : expirationPolicyBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.filter_ = filter_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.deadLetterPolicy_ = deadLetterPolicyBuilder_ == null ? deadLetterPolicy_ : deadLetterPolicyBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.retryPolicy_ = retryPolicyBuilder_ == null ? retryPolicy_ : retryPolicyBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.detached_ = detached_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.enableExactlyOnceDelivery_ = enableExactlyOnceDelivery_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.topicMessageRetentionDuration_ = topicMessageRetentionDurationBuilder_ == null ? topicMessageRetentionDuration_ : topicMessageRetentionDurationBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.analyticsHubSubscriptionInfo_ = analyticsHubSubscriptionInfoBuilder_ == null ? analyticsHubSubscriptionInfo_ : analyticsHubSubscriptionInfoBuilder_.build(); - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000200; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.tags_ = internalGetTags(); result.tags_.makeImmutable(); } @@ -3209,6 +3296,9 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (other.hasCloudStorageConfig()) { mergeCloudStorageConfig(other.getCloudStorageConfig()); } + if (other.hasBigtableConfig()) { + mergeBigtableConfig(other.getBigtableConfig()); + } if (other.getAckDeadlineSeconds() != 0) { setAckDeadlineSeconds(other.getAckDeadlineSeconds()); } @@ -3219,7 +3309,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { mergeMessageRetentionDuration(other.getMessageRetentionDuration()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; if (other.getEnableMessageOrdering() != false) { setEnableMessageOrdering(other.getEnableMessageOrdering()); } @@ -3228,7 +3318,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasDeadLetterPolicy()) { @@ -3256,7 +3346,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { if (!other.messageTransforms_.isEmpty()) { if (messageTransforms_.isEmpty()) { messageTransforms_ = other.messageTransforms_; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); } else { ensureMessageTransformsIsMutable(); messageTransforms_.addAll(other.messageTransforms_); @@ -3269,7 +3359,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { messageTransformsBuilder_.dispose(); messageTransformsBuilder_ = null; messageTransforms_ = other.messageTransforms_; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); messageTransformsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetMessageTransformsFieldBuilder() @@ -3280,7 +3370,7 @@ public Builder mergeFrom(com.google.pubsub.v1.Subscription other) { } } internalGetMutableTags().mergeFrom(other.internalGetTags()); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3329,13 +3419,13 @@ public Builder mergeFrom( case 40: { ackDeadlineSeconds_ = input.readInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 40 case 56: { retainAckedMessages_ = input.readBool(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 56 case 66: @@ -3343,7 +3433,7 @@ public Builder mergeFrom( input.readMessage( internalGetMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 case 74: @@ -3355,52 +3445,52 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 case 80: { enableMessageOrdering_ = input.readBool(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 80 case 90: { input.readMessage( internalGetExpirationPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 90 case 98: { filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 98 case 106: { input.readMessage( internalGetDeadLetterPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 106 case 114: { input.readMessage( internalGetRetryPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 114 case 120: { detached_ = input.readBool(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 120 case 128: { enableExactlyOnceDelivery_ = input.readBool(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 128 case 138: @@ -3408,7 +3498,7 @@ public Builder mergeFrom( input.readMessage( internalGetTopicMessageRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 138 case 146: @@ -3421,7 +3511,7 @@ public Builder mergeFrom( case 152: { state_ = input.readEnum(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 152 case 178: @@ -3436,7 +3526,7 @@ public Builder mergeFrom( input.readMessage( internalGetAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 186 case 202: @@ -3458,9 +3548,16 @@ public Builder mergeFrom( input.readMessage( TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableTags().getMutableMap().put(tags__.getKey(), tags__.getValue()); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 210 + case 218: + { + input.readMessage( + internalGetBigtableConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 218 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4413,6 +4510,227 @@ public com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrB return cloudStorageConfigBuilder_; } + private com.google.pubsub.v1.BigtableConfig bigtableConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig, + com.google.pubsub.v1.BigtableConfig.Builder, + com.google.pubsub.v1.BigtableConfigOrBuilder> + bigtableConfigBuilder_; + + /** + * + * + *
      +     * Optional. If delivery to Bigtable is used with this subscription, this
      +     * field is used to configure it.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigtableConfig field is set. + */ + public boolean hasBigtableConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
      +     * Optional. If delivery to Bigtable is used with this subscription, this
      +     * field is used to configure it.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigtableConfig. + */ + public com.google.pubsub.v1.BigtableConfig getBigtableConfig() { + if (bigtableConfigBuilder_ == null) { + return bigtableConfig_ == null + ? com.google.pubsub.v1.BigtableConfig.getDefaultInstance() + : bigtableConfig_; + } else { + return bigtableConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
      +     * Optional. If delivery to Bigtable is used with this subscription, this
      +     * field is used to configure it.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigtableConfig(com.google.pubsub.v1.BigtableConfig value) { + if (bigtableConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigtableConfig_ = value; + } else { + bigtableConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If delivery to Bigtable is used with this subscription, this
      +     * field is used to configure it.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBigtableConfig(com.google.pubsub.v1.BigtableConfig.Builder builderForValue) { + if (bigtableConfigBuilder_ == null) { + bigtableConfig_ = builderForValue.build(); + } else { + bigtableConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If delivery to Bigtable is used with this subscription, this
      +     * field is used to configure it.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBigtableConfig(com.google.pubsub.v1.BigtableConfig value) { + if (bigtableConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && bigtableConfig_ != null + && bigtableConfig_ != com.google.pubsub.v1.BigtableConfig.getDefaultInstance()) { + getBigtableConfigBuilder().mergeFrom(value); + } else { + bigtableConfig_ = value; + } + } else { + bigtableConfigBuilder_.mergeFrom(value); + } + if (bigtableConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
      +     * Optional. If delivery to Bigtable is used with this subscription, this
      +     * field is used to configure it.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBigtableConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + bigtableConfig_ = null; + if (bigtableConfigBuilder_ != null) { + bigtableConfigBuilder_.dispose(); + bigtableConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
      +     * Optional. If delivery to Bigtable is used with this subscription, this
      +     * field is used to configure it.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.BigtableConfig.Builder getBigtableConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetBigtableConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
      +     * Optional. If delivery to Bigtable is used with this subscription, this
      +     * field is used to configure it.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.pubsub.v1.BigtableConfigOrBuilder getBigtableConfigOrBuilder() { + if (bigtableConfigBuilder_ != null) { + return bigtableConfigBuilder_.getMessageOrBuilder(); + } else { + return bigtableConfig_ == null + ? com.google.pubsub.v1.BigtableConfig.getDefaultInstance() + : bigtableConfig_; + } + } + + /** + * + * + *
      +     * Optional. If delivery to Bigtable is used with this subscription, this
      +     * field is used to configure it.
      +     * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig, + com.google.pubsub.v1.BigtableConfig.Builder, + com.google.pubsub.v1.BigtableConfigOrBuilder> + internalGetBigtableConfigFieldBuilder() { + if (bigtableConfigBuilder_ == null) { + bigtableConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.pubsub.v1.BigtableConfig, + com.google.pubsub.v1.BigtableConfig.Builder, + com.google.pubsub.v1.BigtableConfigOrBuilder>( + getBigtableConfig(), getParentForChildren(), isClean()); + bigtableConfig_ = null; + } + return bigtableConfigBuilder_; + } + private int ackDeadlineSeconds_; /** @@ -4484,7 +4802,7 @@ public int getAckDeadlineSeconds() { public Builder setAckDeadlineSeconds(int value) { ackDeadlineSeconds_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4520,7 +4838,7 @@ public Builder setAckDeadlineSeconds(int value) { * @return This builder for chaining. */ public Builder clearAckDeadlineSeconds() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); ackDeadlineSeconds_ = 0; onChanged(); return this; @@ -4569,7 +4887,7 @@ public boolean getRetainAckedMessages() { public Builder setRetainAckedMessages(boolean value) { retainAckedMessages_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4591,7 +4909,7 @@ public Builder setRetainAckedMessages(boolean value) { * @return This builder for chaining. */ public Builder clearRetainAckedMessages() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); retainAckedMessages_ = false; onChanged(); return this; @@ -4622,7 +4940,7 @@ public Builder clearRetainAckedMessages() { * @return Whether the messageRetentionDuration field is set. */ public boolean hasMessageRetentionDuration() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -4676,7 +4994,7 @@ public Builder setMessageRetentionDuration(com.google.protobuf.Duration value) { } else { messageRetentionDurationBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4703,7 +5021,7 @@ public Builder setMessageRetentionDuration( } else { messageRetentionDurationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4725,7 +5043,7 @@ public Builder setMessageRetentionDuration( */ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) { if (messageRetentionDurationBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && messageRetentionDuration_ != null && messageRetentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { getMessageRetentionDurationBuilder().mergeFrom(value); @@ -4736,7 +5054,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) messageRetentionDurationBuilder_.mergeFrom(value); } if (messageRetentionDuration_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -4758,7 +5076,7 @@ public Builder mergeMessageRetentionDuration(com.google.protobuf.Duration value) * */ public Builder clearMessageRetentionDuration() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); messageRetentionDuration_ = null; if (messageRetentionDurationBuilder_ != null) { messageRetentionDurationBuilder_.dispose(); @@ -4784,7 +5102,7 @@ public Builder clearMessageRetentionDuration() { * */ public com.google.protobuf.Duration.Builder getMessageRetentionDurationBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return internalGetMessageRetentionDurationFieldBuilder().getBuilder(); } @@ -4863,7 +5181,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return labels_; } @@ -4957,7 +5275,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -4983,7 +5301,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return internalGetMutableLabels().getMutableMap(); } @@ -5005,7 +5323,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -5021,7 +5339,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -5064,7 +5382,7 @@ public boolean getEnableMessageOrdering() { public Builder setEnableMessageOrdering(boolean value) { enableMessageOrdering_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5084,7 +5402,7 @@ public Builder setEnableMessageOrdering(boolean value) { * @return This builder for chaining. */ public Builder clearEnableMessageOrdering() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); enableMessageOrdering_ = false; onChanged(); return this; @@ -5117,7 +5435,7 @@ public Builder clearEnableMessageOrdering() { * @return Whether the expirationPolicy field is set. */ public boolean hasExpirationPolicy() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -5175,7 +5493,7 @@ public Builder setExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) } else { expirationPolicyBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5204,7 +5522,7 @@ public Builder setExpirationPolicy( } else { expirationPolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5228,7 +5546,7 @@ public Builder setExpirationPolicy( */ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value) { if (expirationPolicyBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && expirationPolicy_ != null && expirationPolicy_ != com.google.pubsub.v1.ExpirationPolicy.getDefaultInstance()) { getExpirationPolicyBuilder().mergeFrom(value); @@ -5239,7 +5557,7 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value expirationPolicyBuilder_.mergeFrom(value); } if (expirationPolicy_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -5263,7 +5581,7 @@ public Builder mergeExpirationPolicy(com.google.pubsub.v1.ExpirationPolicy value * */ public Builder clearExpirationPolicy() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); expirationPolicy_ = null; if (expirationPolicyBuilder_ != null) { expirationPolicyBuilder_.dispose(); @@ -5291,7 +5609,7 @@ public Builder clearExpirationPolicy() { * */ public com.google.pubsub.v1.ExpirationPolicy.Builder getExpirationPolicyBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetExpirationPolicyFieldBuilder().getBuilder(); } @@ -5434,7 +5752,7 @@ public Builder setFilter(java.lang.String value) { throw new NullPointerException(); } filter_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5456,7 +5774,7 @@ public Builder setFilter(java.lang.String value) { */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -5483,7 +5801,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); filter_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5516,7 +5834,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * @return Whether the deadLetterPolicy field is set. */ public boolean hasDeadLetterPolicy() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -5576,7 +5894,7 @@ public Builder setDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) } else { deadLetterPolicyBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5606,7 +5924,7 @@ public Builder setDeadLetterPolicy( } else { deadLetterPolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5631,7 +5949,7 @@ public Builder setDeadLetterPolicy( */ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value) { if (deadLetterPolicyBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && deadLetterPolicy_ != null && deadLetterPolicy_ != com.google.pubsub.v1.DeadLetterPolicy.getDefaultInstance()) { getDeadLetterPolicyBuilder().mergeFrom(value); @@ -5642,7 +5960,7 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value deadLetterPolicyBuilder_.mergeFrom(value); } if (deadLetterPolicy_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5667,7 +5985,7 @@ public Builder mergeDeadLetterPolicy(com.google.pubsub.v1.DeadLetterPolicy value * */ public Builder clearDeadLetterPolicy() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); deadLetterPolicy_ = null; if (deadLetterPolicyBuilder_ != null) { deadLetterPolicyBuilder_.dispose(); @@ -5696,7 +6014,7 @@ public Builder clearDeadLetterPolicy() { * */ public com.google.pubsub.v1.DeadLetterPolicy.Builder getDeadLetterPolicyBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetDeadLetterPolicyFieldBuilder().getBuilder(); } @@ -5791,7 +6109,7 @@ public com.google.pubsub.v1.DeadLetterPolicyOrBuilder getDeadLetterPolicyOrBuild * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -5849,7 +6167,7 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { } else { retryPolicyBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5877,7 +6195,7 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo } else { retryPolicyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5901,7 +6219,7 @@ public Builder setRetryPolicy(com.google.pubsub.v1.RetryPolicy.Builder builderFo */ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { if (retryPolicyBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && retryPolicy_ != null && retryPolicy_ != com.google.pubsub.v1.RetryPolicy.getDefaultInstance()) { getRetryPolicyBuilder().mergeFrom(value); @@ -5912,7 +6230,7 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { retryPolicyBuilder_.mergeFrom(value); } if (retryPolicy_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -5936,7 +6254,7 @@ public Builder mergeRetryPolicy(com.google.pubsub.v1.RetryPolicy value) { * */ public Builder clearRetryPolicy() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); retryPolicy_ = null; if (retryPolicyBuilder_ != null) { retryPolicyBuilder_.dispose(); @@ -5964,7 +6282,7 @@ public Builder clearRetryPolicy() { * */ public com.google.pubsub.v1.RetryPolicy.Builder getRetryPolicyBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetRetryPolicyFieldBuilder().getBuilder(); } @@ -6071,7 +6389,7 @@ public boolean getDetached() { public Builder setDetached(boolean value) { detached_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6092,7 +6410,7 @@ public Builder setDetached(boolean value) { * @return This builder for chaining. */ public Builder clearDetached() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); detached_ = false; onChanged(); return this; @@ -6155,7 +6473,7 @@ public boolean getEnableExactlyOnceDelivery() { public Builder setEnableExactlyOnceDelivery(boolean value) { enableExactlyOnceDelivery_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6184,7 +6502,7 @@ public Builder setEnableExactlyOnceDelivery(boolean value) { * @return This builder for chaining. */ public Builder clearEnableExactlyOnceDelivery() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); enableExactlyOnceDelivery_ = false; onChanged(); return this; @@ -6216,7 +6534,7 @@ public Builder clearEnableExactlyOnceDelivery() { * @return Whether the topicMessageRetentionDuration field is set. */ public boolean hasTopicMessageRetentionDuration() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -6272,7 +6590,7 @@ public Builder setTopicMessageRetentionDuration(com.google.protobuf.Duration val } else { topicMessageRetentionDurationBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6300,7 +6618,7 @@ public Builder setTopicMessageRetentionDuration( } else { topicMessageRetentionDurationBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6323,7 +6641,7 @@ public Builder setTopicMessageRetentionDuration( */ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration value) { if (topicMessageRetentionDurationBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && topicMessageRetentionDuration_ != null && topicMessageRetentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { @@ -6335,7 +6653,7 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v topicMessageRetentionDurationBuilder_.mergeFrom(value); } if (topicMessageRetentionDuration_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -6358,7 +6676,7 @@ public Builder mergeTopicMessageRetentionDuration(com.google.protobuf.Duration v * */ public Builder clearTopicMessageRetentionDuration() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); topicMessageRetentionDuration_ = null; if (topicMessageRetentionDurationBuilder_ != null) { topicMessageRetentionDurationBuilder_.dispose(); @@ -6385,7 +6703,7 @@ public Builder clearTopicMessageRetentionDuration() { * */ public com.google.protobuf.Duration.Builder getTopicMessageRetentionDurationBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetTopicMessageRetentionDurationFieldBuilder().getBuilder(); } @@ -6487,7 +6805,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6532,7 +6850,7 @@ public Builder setState(com.google.pubsub.v1.Subscription.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; state_ = value.getNumber(); onChanged(); return this; @@ -6553,7 +6871,7 @@ public Builder setState(com.google.pubsub.v1.Subscription.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); state_ = 0; onChanged(); return this; @@ -6582,7 +6900,7 @@ public Builder clearState() { * @return Whether the analyticsHubSubscriptionInfo field is set. */ public boolean hasAnalyticsHubSubscriptionInfo() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -6632,7 +6950,7 @@ public Builder setAnalyticsHubSubscriptionInfo( } else { analyticsHubSubscriptionInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6656,7 +6974,7 @@ public Builder setAnalyticsHubSubscriptionInfo( } else { analyticsHubSubscriptionInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6676,7 +6994,7 @@ public Builder setAnalyticsHubSubscriptionInfo( public Builder mergeAnalyticsHubSubscriptionInfo( com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo value) { if (analyticsHubSubscriptionInfoBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00080000) != 0) && analyticsHubSubscriptionInfo_ != null && analyticsHubSubscriptionInfo_ != com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo @@ -6689,7 +7007,7 @@ public Builder mergeAnalyticsHubSubscriptionInfo( analyticsHubSubscriptionInfoBuilder_.mergeFrom(value); } if (analyticsHubSubscriptionInfo_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -6708,7 +7026,7 @@ public Builder mergeAnalyticsHubSubscriptionInfo( * */ public Builder clearAnalyticsHubSubscriptionInfo() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); analyticsHubSubscriptionInfo_ = null; if (analyticsHubSubscriptionInfoBuilder_ != null) { analyticsHubSubscriptionInfoBuilder_.dispose(); @@ -6732,7 +7050,7 @@ public Builder clearAnalyticsHubSubscriptionInfo() { */ public com.google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.Builder getAnalyticsHubSubscriptionInfoBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return internalGetAnalyticsHubSubscriptionInfoFieldBuilder().getBuilder(); } @@ -6793,10 +7111,10 @@ public Builder clearAnalyticsHubSubscriptionInfo() { java.util.Collections.emptyList(); private void ensureMessageTransformsIsMutable() { - if (!((bitField0_ & 0x00080000) != 0)) { + if (!((bitField0_ & 0x00100000) != 0)) { messageTransforms_ = new java.util.ArrayList(messageTransforms_); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; } } @@ -7055,7 +7373,7 @@ public Builder addAllMessageTransforms( public Builder clearMessageTransforms() { if (messageTransformsBuilder_ == null) { messageTransforms_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); } else { messageTransformsBuilder_.clear(); @@ -7206,7 +7524,7 @@ public com.google.pubsub.v1.MessageTransform.Builder addMessageTransformsBuilder com.google.pubsub.v1.MessageTransform.Builder, com.google.pubsub.v1.MessageTransformOrBuilder>( messageTransforms_, - ((bitField0_ & 0x00080000) != 0), + ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); messageTransforms_ = null; @@ -7231,7 +7549,7 @@ private com.google.protobuf.MapField interna if (!tags_.isMutable()) { tags_ = tags_.copy(); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return tags_; } @@ -7349,7 +7667,7 @@ public java.lang.String getTagsOrThrow(java.lang.String key) { } public Builder clearTags() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); internalGetMutableTags().getMutableMap().clear(); return this; } @@ -7381,7 +7699,7 @@ public Builder removeTags(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTags() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; return internalGetMutableTags().getMutableMap(); } @@ -7409,7 +7727,7 @@ public Builder putTags(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableTags().getMutableMap().put(key, value); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; return this; } @@ -7431,7 +7749,7 @@ public Builder putTags(java.lang.String key, java.lang.String value) { */ public Builder putAllTags(java.util.Map values) { internalGetMutableTags().getMutableMap().putAll(values); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; return this; } diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java index 3b693212802b..ebb45ec6a686 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionOrBuilder.java @@ -235,6 +235,52 @@ public interface SubscriptionOrBuilder */ com.google.pubsub.v1.CloudStorageConfigOrBuilder getCloudStorageConfigOrBuilder(); + /** + * + * + *
      +   * Optional. If delivery to Bigtable is used with this subscription, this
      +   * field is used to configure it.
      +   * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the bigtableConfig field is set. + */ + boolean hasBigtableConfig(); + + /** + * + * + *
      +   * Optional. If delivery to Bigtable is used with this subscription, this
      +   * field is used to configure it.
      +   * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bigtableConfig. + */ + com.google.pubsub.v1.BigtableConfig getBigtableConfig(); + + /** + * + * + *
      +   * Optional. If delivery to Bigtable is used with this subscription, this
      +   * field is used to configure it.
      +   * 
      + * + * + * .google.pubsub.v1.BigtableConfig bigtable_config = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.pubsub.v1.BigtableConfigOrBuilder getBigtableConfigOrBuilder(); + /** * * diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto index 9a24bc1d40a7..3f07ec45c9df 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto +++ b/java-pubsub/proto-google-cloud-pubsub-v1/src/main/proto/google/pubsub/v1/pubsub.proto @@ -1475,6 +1475,10 @@ message Subscription { CloudStorageConfig cloud_storage_config = 22 [(google.api.field_behavior) = OPTIONAL]; + // Optional. If delivery to Bigtable is used with this subscription, this + // field is used to configure it. + BigtableConfig bigtable_config = 27 [(google.api.field_behavior) = OPTIONAL]; + // Optional. 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 @@ -1853,6 +1857,84 @@ message BigQueryConfig { string service_account_email = 7 [(google.api.field_behavior) = OPTIONAL]; } +// Configuration for a Bigtable subscription. The Pub/Sub message will be +// written to a Bigtable row as follows: +// - row key: subscription name and message ID delimited by #. +// - columns: message bytes written to a single column family "data" with an +// empty-string column qualifier. +// - cell timestamp: the message publish timestamp. +message BigtableConfig { + // Possible states for a Bigtable subscription. + // Note: more states could be added in the future. Please code accordingly. + enum State { + // Default value. This value is unused. + STATE_UNSPECIFIED = 0; + + // The subscription can actively send messages to Bigtable. + ACTIVE = 1; + + // Cannot write to Bigtable because the instance, table, or app profile + // does not exist. + NOT_FOUND = 2; + + // Cannot write to Bigtable because the app profile is not configured for + // single-cluster routing. + APP_PROFILE_MISCONFIGURED = 3; + + // Cannot write to Bigtable because of permission denied errors. + // This can happen if: + // - The Pub/Sub service agent has not been granted the + // [appropriate Bigtable IAM permission + // bigtable.tables.mutateRows]({$universe.dns_names.final_documentation_domain}/bigtable/docs/access-control#permissions) + // - The bigtable.googleapis.com API is not enabled for the project + // ([instructions]({$universe.dns_names.final_documentation_domain}/service-usage/docs/enable-disable)) + PERMISSION_DENIED = 4; + + // Cannot write to Bigtable because of a missing column family ("data") or + // if there is no structured row key for the subscription name + message ID. + SCHEMA_MISMATCH = 5; + + // Cannot write to the destination because enforce_in_transit is set to true + // and the destination locations are not in the allowed regions. + IN_TRANSIT_LOCATION_RESTRICTION = 6; + + // Cannot write to Bigtable because the table is not in the same location as + // where Vertex AI models used in `message_transform`s are deployed. + VERTEX_AI_LOCATION_RESTRICTION = 7; + } + + // Optional. The unique name of the table to write messages to. + // + // Values are of the form + // `projects//instances//tables/`. + string table = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The app profile to use for the Bigtable writes. If not specified, + // the "default" application profile will be used. The app profile must use + // single-cluster routing. + string app_profile_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The service account to use to write to Bigtable. The subscription + // creator or updater that specifies this field must have + // `iam.serviceAccounts.actAs` permission on the service account. If not + // specified, the Pub/Sub [service + // agent](https://cloud.google.com/iam/docs/service-agents), + // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used. + string service_account_email = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When true, write the subscription name, message_id, publish_time, + // attributes, and ordering_key to additional columns in the table under the + // pubsub_metadata column family. The subscription name, message_id, and + // publish_time fields are put in their own columns while all other message + // properties (other than data) are written to a JSON object in the attributes + // column. + bool write_metadata = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. An output-only field that indicates whether or not the + // subscription can receive messages. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Configuration for a Cloud Storage subscription. message CloudStorageConfig { // Configuration for writing message data in text format.